hasting-swatchcart-module 1.0.38 → 1.0.40

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.
Files changed (125) hide show
  1. package/dist/assets/index-CIv0ji-N.js +164 -0
  2. package/dist/assets/index-shLdPuto.css +1 -0
  3. package/dist/index.html +14 -0
  4. package/package.json +102 -102
  5. package/dist/assets/index.css +0 -3117
  6. package/dist/cdn/lib/components/SwatchesModule.d.ts +0 -11
  7. package/dist/cdn/lib/main.d.ts +0 -9
  8. package/dist/cdn/lib/store/LibraryProvider.d.ts +0 -4
  9. package/dist/cdn/lib/store/rootReducer.d.ts +0 -11
  10. package/dist/cdn/lib/store/store.d.ts +0 -25
  11. package/dist/cdn/lib/store/withStore.d.ts +0 -2
  12. package/dist/cdn/lib/vite-env.d.ts +0 -1
  13. package/dist/cdn/main.css +0 -3117
  14. package/dist/cdn/main.js +0 -31572
  15. package/dist/cdn/src/app/App.d.ts +0 -12
  16. package/dist/cdn/src/app/assets/svg/ArrowIconSVG.d.ts +0 -3
  17. package/dist/cdn/src/app/assets/svg/CheckMarkIconSVG.d.ts +0 -3
  18. package/dist/cdn/src/app/assets/svg/ChevronSVGIcon.d.ts +0 -3
  19. package/dist/cdn/src/app/assets/svg/CloseIconSVG.d.ts +0 -3
  20. package/dist/cdn/src/app/assets/svg/DarkWhiteIconSVG.d.ts +0 -1
  21. package/dist/cdn/src/app/assets/svg/MinusIconSVG.d.ts +0 -3
  22. package/dist/cdn/src/app/assets/svg/PlusIconSVG.d.ts +0 -3
  23. package/dist/cdn/src/app/assets/svg/SearchIconSVG.d.ts +0 -3
  24. package/dist/cdn/src/app/assets/svg/TrashIconSVG.d.ts +0 -3
  25. package/dist/cdn/src/app/assets/svg/WhiteWhiteIconSVG.d.ts +0 -1
  26. package/dist/cdn/src/app/main.d.ts +0 -0
  27. package/dist/cdn/src/app/providers/StoreProvider.d.ts +0 -6
  28. package/dist/cdn/src/app/store/rootReducer.d.ts +0 -11
  29. package/dist/cdn/src/app/store/storageMiddleware.d.ts +0 -7
  30. package/dist/cdn/src/app/store/store.d.ts +0 -24
  31. package/dist/cdn/src/features/Cart/lib/CartCervices.d.ts +0 -5
  32. package/dist/cdn/src/features/Cart/model/cartSlice.d.ts +0 -3
  33. package/dist/cdn/src/features/Cart/model/selectors.d.ts +0 -223
  34. package/dist/cdn/src/features/Cart/model/types.d.ts +0 -7
  35. package/dist/cdn/src/features/Cart/ui/CartHeader/CartHeader.d.ts +0 -31
  36. package/dist/cdn/src/features/Cart/ui/CartList/CartList.d.ts +0 -1
  37. package/dist/cdn/src/features/Cart/ui/CartListItem/CartListItem.d.ts +0 -10
  38. package/dist/cdn/src/features/Cart/ui/CartWrapper/CartWrapper.d.ts +0 -9
  39. package/dist/cdn/src/features/Cart/ui/Counter/Counter.d.ts +0 -9
  40. package/dist/cdn/src/features/DataAdapter/lib/DataAdapterServices.d.ts +0 -19
  41. package/dist/cdn/src/features/DataAdapter/utils/types.d.ts +0 -11
  42. package/dist/cdn/src/features/MultiProduct/lib/MultiProductCartServices.d.ts +0 -13
  43. package/dist/cdn/src/features/MultiProduct/model/API/api.d.ts +0 -7
  44. package/dist/cdn/src/features/MultiProduct/model/API/routes.d.ts +0 -7
  45. package/dist/cdn/src/features/MultiProduct/model/multiProductCartSlice.d.ts +0 -9
  46. package/dist/cdn/src/features/MultiProduct/model/selectors.d.ts +0 -38
  47. package/dist/cdn/src/features/MultiProduct/model/thunk.d.ts +0 -11
  48. package/dist/cdn/src/features/MultiProduct/model/types.d.ts +0 -71
  49. package/dist/cdn/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.d.ts +0 -1
  50. package/dist/cdn/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.d.ts +0 -1
  51. package/dist/cdn/src/features/MultiProduct/ui/MaterialMultiProductList/MaterialMultiProductList.d.ts +0 -42
  52. package/dist/cdn/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.d.ts +0 -5
  53. package/dist/cdn/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.d.ts +0 -25
  54. package/dist/cdn/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.d.ts +0 -6
  55. package/dist/cdn/src/features/MultiProduct/ui/ProductList/ProductList.d.ts +0 -14
  56. package/dist/cdn/src/features/MultiProduct/ui/ProductListItem/ProductListItem.d.ts +0 -6
  57. package/dist/cdn/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.d.ts +0 -1
  58. package/dist/cdn/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.d.ts +0 -15
  59. package/dist/cdn/src/features/MultiProduct/ui/SwatchListItem/SwatchListItem.d.ts +0 -41
  60. package/dist/cdn/src/features/MultiProduct/ui/SwatchesMultiProductList/SwatchesMultiProductList.d.ts +0 -29
  61. package/dist/cdn/src/features/MultiProduct/utils/constants.d.ts +0 -6
  62. package/dist/cdn/src/features/MultiProduct/utils/randomList.d.ts +0 -2
  63. package/dist/cdn/src/features/SwatchModule/SwatchModule/ui/SwatchModule.d.ts +0 -2
  64. package/dist/cdn/src/features/swatches/lib/AttributeHelper.d.ts +0 -7
  65. package/dist/cdn/src/features/swatches/lib/SwatchesServices.d.ts +0 -11
  66. package/dist/cdn/src/features/swatches/model/selectors.d.ts +0 -10
  67. package/dist/cdn/src/features/swatches/model/swatchesSlice.d.ts +0 -53
  68. package/dist/cdn/src/features/swatches/model/thunks.d.ts +0 -22
  69. package/dist/cdn/src/features/swatches/model/types.d.ts +0 -148
  70. package/dist/cdn/src/features/swatches/ui/Filters/ColorsFilter.d.ts +0 -1
  71. package/dist/cdn/src/features/swatches/ui/Filters/LooksFilter.d.ts +0 -1
  72. package/dist/cdn/src/features/swatches/ui/Filters/MaterialsFilter.d.ts +0 -1
  73. package/dist/cdn/src/features/swatches/ui/Filters/index.d.ts +0 -1
  74. package/dist/cdn/src/features/swatches/ui/HexGridZoom/HexGridZoom.d.ts +0 -3
  75. package/dist/cdn/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.d.ts +0 -3
  76. package/dist/cdn/src/features/swatches/ui/MaterialSingleProductList/MaterialSingleProductList.d.ts +0 -7
  77. package/dist/cdn/src/features/swatches/ui/ProductElement/index.d.ts +0 -28
  78. package/dist/cdn/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.d.ts +0 -8
  79. package/dist/cdn/src/features/swatches/ui/Swatches.d.ts +0 -2
  80. package/dist/cdn/src/features/swatches/ui/SwatchesList/SwatchesList.d.ts +0 -28
  81. package/dist/cdn/src/features/swatches/ui/SwatchesListWrapper/SwatchesListWrapper.d.ts +0 -1
  82. package/dist/cdn/src/features/swatches/utils/constants.d.ts +0 -3
  83. package/dist/cdn/src/features/swatches/utils/hooks/useCartCount.d.ts +0 -18
  84. package/dist/cdn/src/features/swatches/utils/types.d.ts +0 -22
  85. package/dist/cdn/src/shared/constants/constants.d.ts +0 -1
  86. package/dist/cdn/src/shared/constants/props.d.ts +0 -1058
  87. package/dist/cdn/src/shared/constants/select.d.ts +0 -4
  88. package/dist/cdn/src/shared/constants/selectedMaterials.d.ts +0 -1
  89. package/dist/cdn/src/shared/types/activeTab.d.ts +0 -5
  90. package/dist/cdn/src/shared/types/fetchData.d.ts +0 -41
  91. package/dist/cdn/src/shared/types/svg.d.ts +0 -3
  92. package/dist/cdn/src/shared/ui/CartPrice/CartPrice.d.ts +0 -7
  93. package/dist/cdn/src/shared/ui/Checkbox/Checkbox.d.ts +0 -4
  94. package/dist/cdn/src/shared/ui/CustomButton/CustomButton.d.ts +0 -6
  95. package/dist/cdn/src/shared/ui/CustomModal/CustomModal.d.ts +0 -11
  96. package/dist/cdn/src/shared/ui/CustomSidebar/CustomSidebar.d.ts +0 -8
  97. package/dist/cdn/src/shared/ui/Dialog/Dialog.d.ts +0 -19
  98. package/dist/cdn/src/shared/ui/Hint/Hint.d.ts +0 -60
  99. package/dist/cdn/src/shared/ui/Label/Label.d.ts +0 -7
  100. package/dist/cdn/src/shared/ui/Loader/Loader.d.ts +0 -10
  101. package/dist/cdn/src/shared/ui/Markdown/MDWithAccordion.d.ts +0 -10
  102. package/dist/cdn/src/shared/ui/MaterialItem/MaterialItem.d.ts +0 -8
  103. package/dist/cdn/src/shared/ui/MaterialListItem/MaterialListItem.d.ts +0 -8
  104. package/dist/cdn/src/shared/ui/MultiSelect/MultiSelect.d.ts +0 -20
  105. package/dist/cdn/src/shared/ui/PopoverTooltip/InfoIcon.d.ts +0 -1
  106. package/dist/cdn/src/shared/ui/PopoverTooltip/PopoverTooltip.d.ts +0 -11
  107. package/dist/cdn/src/shared/ui/SingleSelect/SingleSelect.d.ts +0 -18
  108. package/dist/cdn/src/shared/ui/Slider/Slider.d.ts +0 -11
  109. package/dist/cdn/src/shared/ui/SwatchLimitModal/SwatchLimitModal.d.ts +0 -6
  110. package/dist/cdn/src/shared/ui/popover.d.ts +0 -9
  111. package/dist/cdn/src/shared/utils/cn.d.ts +0 -2
  112. package/dist/cdn/src/shared/utils/storageService.d.ts +0 -38
  113. package/dist/cdn/src/shared/utils/toast.d.ts +0 -3
  114. package/dist/cdn/src/shared/utils/uniqueList.d.ts +0 -1
  115. package/dist/components/SwatchesModule.d.ts +0 -11
  116. package/dist/main.cjs +0 -158
  117. package/dist/main.cjs.map +0 -1
  118. package/dist/main.d.ts +0 -9
  119. package/dist/main.js +0 -24547
  120. package/dist/main.js.map +0 -1
  121. package/dist/store/LibraryProvider.d.ts +0 -4
  122. package/dist/store/rootReducer.d.ts +0 -11
  123. package/dist/store/store.d.ts +0 -25
  124. package/dist/store/withStore.d.ts +0 -2
  125. /package/dist/{cdn/vite.svg → vite.svg} +0 -0
@@ -1,4 +0,0 @@
1
- export declare const MOCK_SELECT_DATA: {
2
- value: string;
3
- label: string;
4
- }[];
@@ -1 +0,0 @@
1
- export declare const MAX_SLOTS = 5;
@@ -1,5 +0,0 @@
1
- export declare const EActiveTab: {
2
- readonly SWATCH: "swatch";
3
- readonly CART: "cart";
4
- };
5
- export type EActiveTab = (typeof EActiveTab)[keyof typeof EActiveTab];
@@ -1,41 +0,0 @@
1
- import { AttributeValue, IMaterialMetadata } from '../../features/swatches/model/types';
2
- export interface IValueLabel {
3
- value: string;
4
- label: string;
5
- }
6
- export interface IValueLabelMeta extends IValueLabel {
7
- metadata: IMaterialMetadata;
8
- }
9
- export interface ISection {
10
- section: string;
11
- sort: string;
12
- groups: IGroup[];
13
- }
14
- export interface IGroup {
15
- groupName: string;
16
- order: string;
17
- type: 'simple' | string;
18
- options: IOption[];
19
- }
20
- export interface IOption {
21
- option: string;
22
- label: string;
23
- optionName: string;
24
- order: string;
25
- type: 'simple' | string;
26
- typeComponent: 'material' | string;
27
- values: Record<string, string>;
28
- valuesArray: IValueLabel[];
29
- }
30
- export interface IMaterialOption {
31
- option: string;
32
- label: string;
33
- optionName: string;
34
- order: number;
35
- typeComponent: 'material' | string;
36
- valuesArray: IValueLabelMeta[];
37
- }
38
- export interface IFetchProductData {
39
- structure: ISection[];
40
- materials: AttributeValue[];
41
- }
@@ -1,3 +0,0 @@
1
- import { ComponentType, SVGProps } from 'react';
2
- export type SvgIconComponent = ComponentType<SVGProps<SVGSVGElement>>;
3
- export type SvgIconProps = SVGProps<SVGSVGElement>;
@@ -1,7 +0,0 @@
1
- import { ICartItem } from '../../../features/Cart/model/types';
2
- interface ICartPriceProps {
3
- materials: ICartItem[];
4
- containerStyles?: string;
5
- }
6
- export declare const CartPrice: ({ materials, containerStyles, }: ICartPriceProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
- declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- export { Checkbox };
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- interface CustomButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
- children: React.ReactNode;
4
- }
5
- export declare const CustomButton: React.FC<CustomButtonProps>;
6
- export {};
@@ -1,11 +0,0 @@
1
- import { FC } from 'react';
2
- interface ModalProps {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- title?: string;
6
- width?: number | string;
7
- height?: number | string;
8
- children: React.ReactNode;
9
- }
10
- export declare const CustomModal: FC<ModalProps>;
11
- export {};
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- type SidebarProps = {
3
- isOpen?: boolean;
4
- setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
5
- children: React.ReactNode;
6
- };
7
- declare const CustomSidebar: React.FC<SidebarProps>;
8
- export default CustomSidebar;
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import * as DialogPrimitive from '@radix-ui/react-dialog';
3
- declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
- declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
- declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
- declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- declare const DialogHeader: {
10
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
- displayName: string;
12
- };
13
- declare const DialogFooter: {
14
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
- displayName: string;
16
- };
17
- declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
- export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
@@ -1,60 +0,0 @@
1
- import { default as React, ReactNode } from 'react';
2
- type HintProps = {
3
- open: boolean;
4
- target: HTMLElement | null;
5
- children: ReactNode;
6
- offset?: number;
7
- maxWidthPx?: number;
8
- forceOverflowVisible?: boolean;
9
- };
10
- /**
11
- * Hint (Tooltip-like) component displayed in a portal above all UI layers.
12
- *
13
- * The component positions itself near the target element, supports dynamic
14
- * repositioning on scroll/resize, and ensures the target element can
15
- * overflow visibly when required. Includes an arrow that automatically aligns
16
- * with the target.
17
- *
18
- * The tooltip uses `useLayoutEffect` to measure its size before final placement
19
- * to avoid flickering or incorrect positioning.
20
- *
21
- * @component
22
- *
23
- * @param {boolean} open
24
- * Controls visibility of the hint. When `false`, nothing is rendered.
25
- *
26
- * @param {HTMLElement | null} target
27
- * The DOM element to which the hint is anchored. Required when open.
28
- *
29
- * @param {ReactNode} children
30
- * The content of the hint bubble.
31
- *
32
- * @param {number} [offset=12]
33
- * Vertical distance between the bubble and the target element.
34
- *
35
- * @param {number} [maxWidthPx=420]
36
- * Maximum width of the bubble in pixels before wrapping text.
37
- * The component also ensures the bubble fits inside the viewport.
38
- *
39
- * @param {boolean} [forceOverflowVisible=true]
40
- * When `true`, temporarily forces the target element's overflow to be `visible`
41
- * so that the hint can appear outside its bounds, improving usability inside
42
- * clipped containers.
43
- *
44
- * @description
45
- * - On mount, optionally modifies the target element's `position` and `overflow`
46
- * styles to allow the bubble to display outside its bounding box.
47
- * - Uses a combination of `useEffect`, `useLayoutEffect`, `ResizeObserver`, and
48
- * scroll/resize listeners to recalculate position whenever layout changes.
49
- * - The bubble is rendered via `createPortal` into `document.body`
50
- * to escape stacking contexts.
51
- *
52
- * @example
53
- * ```tsx
54
- * <Hint open={isHovered} target={ref.current}>
55
- * Some details about this item
56
- * </Hint>
57
- * ```
58
- */
59
- export declare const Hint: React.FC<HintProps>;
60
- export {};
@@ -1,7 +0,0 @@
1
- interface ILabelProps {
2
- text: string;
3
- isActive?: boolean;
4
- onClick?: () => void;
5
- }
6
- export declare const Label: ({ text, isActive, onClick }: ILabelProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- interface ILoaderProps {
3
- size?: number | string;
4
- trackClassName?: string;
5
- accentClassName?: string;
6
- className?: string;
7
- isOverlay?: boolean;
8
- }
9
- export declare const Loader: React.FC<ILoaderProps>;
10
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Markdown renderer with accordion support
3
- */
4
- interface IMDWithAccordion {
5
- children: React.ReactNode;
6
- className?: string;
7
- openFirst?: boolean;
8
- }
9
- export default function MDWithAccordion({ children, className, openFirst, }: IMDWithAccordion): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,8 +0,0 @@
1
- import { AttributeValue } from '../../../features/swatches/model/types';
2
- export interface IMaterialItemProps {
3
- val: AttributeValue;
4
- className?: string;
5
- isShowDeleteIcon?: boolean;
6
- handleSelect?: (arg: AttributeValue) => void;
7
- }
8
- export declare const MaterialItem: ({ val, className, isShowDeleteIcon, handleSelect, }: IMaterialItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { AttributeValue } from '../../../features/swatches/model/types';
2
- interface IMaterialListItemProps {
3
- val: AttributeValue;
4
- isSelected: boolean;
5
- onClick: (item: AttributeValue) => void;
6
- }
7
- export declare const MaterialListItem: ({ val, isSelected, onClick, }: IMaterialListItemProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- export interface IMultiSelectOption {
3
- value: string;
4
- label: string;
5
- count?: number;
6
- }
7
- interface MultiSelectProps {
8
- options: IMultiSelectOption[];
9
- values: string[];
10
- onValueChange: (values: string[]) => void;
11
- placeholder?: string;
12
- className?: string;
13
- dropdownWidth?: string;
14
- align?: 'start' | 'center' | 'end';
15
- getTooltipByMaterialAndSection?: (material: string, section: string) => any;
16
- sectionName?: string;
17
- }
18
- declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLButtonElement>>;
19
- export { MultiSelect };
20
- export type { MultiSelectProps };
@@ -1 +0,0 @@
1
- export default function InfoIcon(props: any): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- /**
2
- * PopoverTooltip — popover with Markdown + accordions.
3
- * @param {string} tooltipData — raw markdown with ~H~~ ~M~~ markers
4
- * @param {boolean} openFirst — whether to open the first accordion
5
- * @param {React.ReactNode} trigger — custom trigger (optional)
6
- */
7
- export declare const PopoverTooltip: ({ tooltipData, openFirst, trigger, }: {
8
- tooltipData: string;
9
- openFirst?: boolean;
10
- trigger?: React.ReactNode;
11
- }) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,18 +0,0 @@
1
- import { ISingleSelectOption } from '../../../features/MultiProduct/model/types';
2
- import * as React from 'react';
3
- interface SingleSelectProps {
4
- values: ISingleSelectOption[];
5
- value: string | null;
6
- onValueChange: (value: string | null) => void;
7
- placeholder?: string;
8
- title?: string;
9
- className?: string;
10
- dropdownWidth?: string;
11
- align?: 'start' | 'center' | 'end';
12
- showClear?: boolean;
13
- getTooltipByMaterialAndSection?: (material: string, section: string) => any;
14
- sectionName?: string;
15
- }
16
- declare const SingleSelect: React.ForwardRefExoticComponent<SingleSelectProps & React.RefAttributes<HTMLButtonElement>>;
17
- export { SingleSelect };
18
- export type { SingleSelectProps };
@@ -1,11 +0,0 @@
1
- import { default as React } from 'react';
2
- import { IProductCart, ISliderItem } from '../../../features/MultiProduct/model/types';
3
- interface ISliderProps {
4
- items: ISliderItem[] | IProductCart[];
5
- activeId?: ISliderItem['productId'] | IProductCart['productId'];
6
- onSelect: (item: ISliderItem | IProductCart) => void;
7
- className?: string;
8
- stepRatio?: number;
9
- }
10
- export declare const Slider: React.FC<ISliderProps>;
11
- export {};
@@ -1,6 +0,0 @@
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 {};
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import * as PopoverPrimitive from '@radix-ui/react-popover';
3
- declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function PopoverTrigger({ stopPropagation, onClick, ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger> & {
5
- stopPropagation?: boolean;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
8
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
9
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -1,2 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
- export declare function cn(...inputs: ClassValue[]): string;
@@ -1,38 +0,0 @@
1
- import { AttributeValue } from '../../features/swatches/model/types';
2
- import { IProductCart } from '../../features/MultiProduct/model/types';
3
- /**
4
- * Service for persisting and retrieving swatch selections from localStorage.
5
- * Data expires after 24 hours to prevent stale selections.
6
- */
7
- export declare const StorageService: {
8
- /**
9
- * Stores selected materials (single product mode) to localStorage.
10
- */
11
- setSelectedMaterials(materials: AttributeValue[]): void;
12
- /**
13
- * Retrieves selected materials from localStorage.
14
- * Returns empty array if data is expired or invalid.
15
- */
16
- getSelectedMaterials(): AttributeValue[];
17
- /**
18
- * Clears selected materials from localStorage.
19
- */
20
- clearSelectedMaterials(): void;
21
- /**
22
- * Stores multi-product cart items to localStorage.
23
- */
24
- setMultiProductItems(items: IProductCart[]): void;
25
- /**
26
- * Retrieves multi-product cart items from localStorage.
27
- * Returns empty array if data is expired or invalid.
28
- */
29
- getMultiProductItems(): IProductCart[];
30
- /**
31
- * Clears multi-product cart items from localStorage.
32
- */
33
- clearMultiProductItems(): void;
34
- /**
35
- * Clears all stored swatch selections.
36
- */
37
- clearAll(): void;
38
- };
@@ -1,3 +0,0 @@
1
- export declare const showSuccessToast: (message: string) => import('react-toastify').Id;
2
- export declare const showErrorToast: (message: string) => import('react-toastify').Id;
3
- export declare const showInfoToast: (message: string) => import('react-toastify').Id;
@@ -1 +0,0 @@
1
- export declare const uniqueList: (arr: string[]) => string[];
@@ -1,11 +0,0 @@
1
- import { EDataInputType } from '../../src/features/DataAdapter/utils/types';
2
- import { IAttributeAsset } from '../../src/features/swatches/model/types';
3
- export interface ISwatchesModuleProps {
4
- isOpen: boolean;
5
- uiDataType: EDataInputType;
6
- assetId?: string;
7
- data?: IAttributeAsset[] | any[];
8
- onToggleSidebar: () => void;
9
- onSendData: (data: unknown) => void;
10
- }
11
- export declare const SwatchModule: ({ isOpen, uiDataType, data, assetId, onToggleSidebar, onSendData, }: ISwatchesModuleProps) => import("react/jsx-runtime").JSX.Element;