hasting-swatchcart-module 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { AttributeValue } from '../../../swatches/model/types';
3
+ interface ISwatchesListItemProps {
4
+ val: AttributeValue;
5
+ onDelete: (arg: AttributeValue) => void;
6
+ }
7
+ declare const SwatchListItem: React.FC<ISwatchesListItemProps>;
8
+ export default SwatchListItem;
@@ -12,6 +12,7 @@ export declare const swatchesSlice: import('@reduxjs/toolkit').Slice<ISwatchesSl
12
12
  setAllMaterialsOptions: (state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<IMapUIData>) => void;
13
13
  setSelectedMaterial(state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<{
14
14
  selectedMaterial: AttributeValue;
15
+ limitCb?: () => void;
15
16
  }>): void;
16
17
  resetSelectedMaterials(state: import('immer').WritableDraft<ISwatchesSlice>): void;
17
18
  setSelectedProduct(state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<IProductListItem>): void;
@@ -23,4 +24,5 @@ export declare const setMaterialSelect: import('@reduxjs/toolkit').ActionCreator
23
24
  attributes: IAttributeAsset[];
24
25
  }, "swatches/setPanelFilter">, setSelectedMaterial: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
25
26
  selectedMaterial: AttributeValue;
27
+ limitCb?: () => void;
26
28
  }, "swatches/setSelectedMaterial">, clearMaterialFilter: import('@reduxjs/toolkit').ActionCreatorWithPayload<keyof IMaterialSelectState, "swatches/clearMaterialFilter">, clearAllMaterialFilters: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"swatches/clearAllMaterialFilters">, setSelectedProduct: import('@reduxjs/toolkit').ActionCreatorWithPayload<IProductListItem, "swatches/setSelectedProduct">, deleteSelectedProduct: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"swatches/deleteSelectedProduct">, setIsOpenMultiProductCart: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "swatches/setIsOpenMultiProductCart">, resetSelectedMaterials: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"swatches/resetSelectedMaterials">;
@@ -1,5 +1 @@
1
- interface IFiltersProps {
2
- containerStyles: string;
3
- }
4
- export declare const Filters: ({ containerStyles }: IFiltersProps) => import("react/jsx-runtime").JSX.Element;
5
- export {};
1
+ export declare const Filters: () => import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,9 @@ import { FC } from 'react';
2
2
  interface ModalProps {
3
3
  isOpen: boolean;
4
4
  onClose: () => void;
5
+ title?: string;
6
+ width?: number | string;
7
+ height?: number | string;
5
8
  children: React.ReactNode;
6
9
  }
7
10
  export declare const CustomModal: FC<ModalProps>;
@@ -3,7 +3,6 @@ type HintProps = {
3
3
  open: boolean;
4
4
  target: HTMLElement | null;
5
5
  children: ReactNode;
6
- side?: 'top' | 'bottom';
7
6
  offset?: number;
8
7
  maxWidthPx?: number;
9
8
  forceOverflowVisible?: boolean;
@@ -0,0 +1,7 @@
1
+ import { AttributeValue } from '../../../features/swatches/model/types';
2
+ interface IMaterialListItemProps {
3
+ val: AttributeValue;
4
+ onClick: (item: AttributeValue) => void;
5
+ }
6
+ export declare const MaterialListItem: ({ val, onClick }: IMaterialListItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ interface ISwatchLimitModalProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ }
5
+ export declare const SwatchLimitModal: ({ isOpen, onClose, }: ISwatchLimitModalProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};