2021-01-28 14:24:01 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2024-05-31 03:49:36 +00:00
|
|
|
import clsx from 'clsx';
|
2021-01-28 14:24:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2022-12-15 14:17:22 +00:00
|
|
|
import { createSlotFill } from '../../slot';
|
2021-01-28 14:24:01 +00:00
|
|
|
|
|
|
|
const slotName = '__experimentalOrderShippingPackages';
|
2021-02-08 11:37:55 +00:00
|
|
|
const {
|
|
|
|
Fill: ExperimentalOrderShippingPackages,
|
|
|
|
Slot: OrderShippingPackagesSlot,
|
|
|
|
} = createSlotFill( slotName );
|
2021-01-28 14:24:01 +00:00
|
|
|
|
2021-04-08 12:31:12 +00:00
|
|
|
const Slot = ( {
|
|
|
|
className,
|
|
|
|
noResultsMessage,
|
|
|
|
renderOption,
|
|
|
|
extensions,
|
|
|
|
cart,
|
|
|
|
components,
|
2022-02-22 09:33:52 +00:00
|
|
|
context,
|
2022-12-15 14:17:22 +00:00
|
|
|
collapsible,
|
|
|
|
showItems,
|
2021-04-08 12:31:12 +00:00
|
|
|
} ) => {
|
2021-01-28 14:24:01 +00:00
|
|
|
return (
|
|
|
|
<OrderShippingPackagesSlot
|
2024-05-31 03:49:36 +00:00
|
|
|
className={ clsx(
|
2021-01-28 14:24:01 +00:00
|
|
|
'wc-block-components-shipping-rates-control',
|
|
|
|
className
|
|
|
|
) }
|
|
|
|
fillProps={ {
|
2022-12-15 14:17:22 +00:00
|
|
|
collapse: collapsible,
|
2021-01-28 14:24:01 +00:00
|
|
|
collapsible,
|
2022-12-15 14:17:22 +00:00
|
|
|
showItems,
|
2021-01-28 14:24:01 +00:00
|
|
|
noResultsMessage,
|
|
|
|
renderOption,
|
|
|
|
extensions,
|
|
|
|
cart,
|
2021-04-08 12:31:12 +00:00
|
|
|
components,
|
2022-02-22 09:33:52 +00:00
|
|
|
context,
|
2021-01-28 14:24:01 +00:00
|
|
|
} }
|
|
|
|
/>
|
|
|
|
);
|
2021-02-08 11:37:55 +00:00
|
|
|
};
|
2021-01-28 14:24:01 +00:00
|
|
|
|
|
|
|
ExperimentalOrderShippingPackages.Slot = Slot;
|
|
|
|
|
|
|
|
export default ExperimentalOrderShippingPackages;
|