hasting-swatchcart-module 1.0.25 → 1.0.27
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.
- package/dist/assets/index.css +1 -0
- package/dist/cdn/lib/components/SwatchesModule.d.ts +11 -0
- package/dist/cdn/lib/main.d.ts +9 -0
- package/dist/cdn/lib/store/LibraryProvider.d.ts +4 -0
- package/dist/cdn/lib/store/rootReducer.d.ts +11 -0
- package/dist/cdn/lib/store/store.d.ts +25 -0
- package/dist/cdn/lib/store/withStore.d.ts +2 -0
- package/dist/cdn/lib/vite-env.d.ts +1 -0
- package/dist/cdn/main.js +31443 -0
- package/dist/cdn/src/app/App.d.ts +2 -0
- package/dist/cdn/src/app/assets/svg/ArrowIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/CheckMarkIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/ChevronSVGIcon.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/CloseIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/DarkWhiteIconSVG.d.ts +1 -0
- package/dist/cdn/src/app/assets/svg/MinusIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/PlusIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/SearchIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/TrashIconSVG.d.ts +3 -0
- package/dist/cdn/src/app/assets/svg/WhiteWhiteIconSVG.d.ts +1 -0
- package/dist/cdn/src/app/main.d.ts +1 -0
- package/dist/cdn/src/app/providers/StoreProvider.d.ts +6 -0
- package/dist/cdn/src/app/store/rootReducer.d.ts +11 -0
- package/dist/cdn/src/app/store/store.d.ts +24 -0
- package/dist/cdn/src/features/Cart/lib/CartCervices.d.ts +5 -0
- package/dist/cdn/src/features/Cart/model/cartSlice.d.ts +13 -0
- package/dist/cdn/src/features/Cart/model/selectors.d.ts +223 -0
- package/dist/cdn/src/features/Cart/model/types.d.ts +7 -0
- package/dist/cdn/src/features/Cart/ui/CartHeader/CartHeader.d.ts +7 -0
- package/dist/cdn/src/features/Cart/ui/CartList/CartList.d.ts +1 -0
- package/dist/cdn/src/features/Cart/ui/CartListItem/CartListItem.d.ts +10 -0
- package/dist/cdn/src/features/Cart/ui/CartWrapper/CartWrapper.d.ts +9 -0
- package/dist/cdn/src/features/Cart/ui/Counter/Counter.d.ts +9 -0
- package/dist/cdn/src/features/DataAdapter/lib/DataAdapterServices.d.ts +14 -0
- package/dist/cdn/src/features/DataAdapter/utils/types.d.ts +11 -0
- package/dist/cdn/src/features/MultiProduct/lib/MultiProductCartServices.d.ts +13 -0
- package/dist/cdn/src/features/MultiProduct/model/API/api.d.ts +4 -0
- package/dist/cdn/src/features/MultiProduct/model/API/routes.d.ts +4 -0
- package/dist/cdn/src/features/MultiProduct/model/multiProductCartSlice.d.ts +9 -0
- package/dist/cdn/src/features/MultiProduct/model/selectors.d.ts +38 -0
- package/dist/cdn/src/features/MultiProduct/model/thunk.d.ts +11 -0
- package/dist/cdn/src/features/MultiProduct/model/types.d.ts +63 -0
- package/dist/cdn/src/features/MultiProduct/ui/CartSelectedProductList/CartSelectedProductList.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/ui/FiltersSelectedProductItem/FiltersSelectedProductItem.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/ui/MaterialMultiProductList/MaterialMultiProductList.d.ts +42 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductCartHeader/MultiProductCartHeader.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductItemCart/MultiProductItemCart.d.ts +5 -0
- package/dist/cdn/src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/ProductList/ProductList.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/ui/ProductListItem/ProductListItem.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/ui/SelectedProductItem/SelectedProductItem.d.ts +1 -0
- package/dist/cdn/src/features/MultiProduct/ui/SwatchContentContainer/SwatchContentContainer.d.ts +15 -0
- package/dist/cdn/src/features/MultiProduct/ui/SwatchListItem/SwatchListItem.d.ts +41 -0
- package/dist/cdn/src/features/MultiProduct/ui/SwatchesMultiProductList/SwatchesMultiProductList.d.ts +29 -0
- package/dist/cdn/src/features/MultiProduct/utils/constants.d.ts +6 -0
- package/dist/cdn/src/features/MultiProduct/utils/randomList.d.ts +2 -0
- package/dist/cdn/src/features/SwatchModule/SwatchModule/ui/SwatchModule.d.ts +2 -0
- package/dist/cdn/src/features/swatches/lib/AttributeHelper.d.ts +7 -0
- package/dist/cdn/src/features/swatches/lib/SwatchesServices.d.ts +11 -0
- package/dist/cdn/src/features/swatches/model/selectors.d.ts +10 -0
- package/dist/cdn/src/features/swatches/model/swatchesSlice.d.ts +28 -0
- package/dist/cdn/src/features/swatches/model/thunks.d.ts +12 -0
- package/dist/cdn/src/features/swatches/model/types.d.ts +147 -0
- package/dist/cdn/src/features/swatches/ui/Filters/ColorsFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/LooksFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/MaterialsFilter.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/Filters/index.d.ts +1 -0
- package/dist/cdn/src/features/swatches/ui/HexGridZoom/HexGridZoom.d.ts +3 -0
- package/dist/cdn/src/features/swatches/ui/ImageGridZoom/ImageGridZoom.d.ts +3 -0
- package/dist/cdn/src/features/swatches/ui/MaterialSingleProductList/MaterialSingleProductList.d.ts +7 -0
- package/dist/cdn/src/features/swatches/ui/ProductElement/index.d.ts +6 -0
- package/dist/cdn/src/features/swatches/ui/SwatchWrapper/SwatchWrapper.d.ts +8 -0
- package/dist/cdn/src/features/swatches/ui/Swatches.d.ts +2 -0
- package/dist/cdn/src/features/swatches/ui/SwatchesList/SwatchesList.d.ts +7 -0
- package/dist/cdn/src/features/swatches/ui/SwatchesListWrapper/SwatchesListWrapper.d.ts +1 -0
- package/dist/cdn/src/features/swatches/utils/constants.d.ts +3 -0
- package/dist/cdn/src/features/swatches/utils/types.d.ts +22 -0
- package/dist/cdn/src/shared/constants/constants.d.ts +1 -0
- package/dist/cdn/src/shared/constants/props.d.ts +1058 -0
- package/dist/cdn/src/shared/constants/select.d.ts +4 -0
- package/dist/cdn/src/shared/constants/selectedMaterials.d.ts +1 -0
- package/dist/cdn/src/shared/types/activeTab.d.ts +5 -0
- package/dist/cdn/src/shared/types/fetchData.d.ts +41 -0
- package/dist/cdn/src/shared/types/svg.d.ts +3 -0
- package/dist/cdn/src/shared/ui/CartPrice/CartPrice.d.ts +7 -0
- package/dist/cdn/src/shared/ui/Checkbox/Checkbox.d.ts +4 -0
- package/dist/cdn/src/shared/ui/CustomButton/CustomButton.d.ts +6 -0
- package/dist/cdn/src/shared/ui/CustomModal/CustomModal.d.ts +11 -0
- package/dist/cdn/src/shared/ui/CustomSidebar/CustomSidebar.d.ts +8 -0
- package/dist/cdn/src/shared/ui/Dialog/Dialog.d.ts +19 -0
- package/dist/cdn/src/shared/ui/Hint/Hint.d.ts +60 -0
- package/dist/cdn/src/shared/ui/Label/Label.d.ts +7 -0
- package/dist/cdn/src/shared/ui/Loader/Loader.d.ts +10 -0
- package/dist/cdn/src/shared/ui/Markdown/MDWithAccordion.d.ts +10 -0
- package/dist/cdn/src/shared/ui/MaterialItem/MaterialItem.d.ts +8 -0
- package/dist/cdn/src/shared/ui/MaterialListItem/MaterialListItem.d.ts +7 -0
- package/dist/cdn/src/shared/ui/MultiSelect/MultiSelect.d.ts +20 -0
- package/dist/cdn/src/shared/ui/PopoverTooltip/InfoIcon.d.ts +1 -0
- package/dist/cdn/src/shared/ui/PopoverTooltip/PopoverTooltip.d.ts +11 -0
- package/dist/cdn/src/shared/ui/SingleSelect/SingleSelect.d.ts +18 -0
- package/dist/cdn/src/shared/ui/Slider/Slider.d.ts +11 -0
- package/dist/cdn/src/shared/ui/SwatchLimitModal/SwatchLimitModal.d.ts +6 -0
- package/dist/cdn/src/shared/ui/popover.d.ts +9 -0
- package/dist/cdn/src/shared/utils/cn.d.ts +2 -0
- package/dist/cdn/src/shared/utils/uniqueList.d.ts +1 -0
- package/dist/components/SwatchesModule.d.ts +11 -0
- package/dist/main.cjs +150 -0
- package/dist/main.cjs.map +1 -0
- package/dist/main.d.ts +9 -0
- package/dist/main.js +24267 -0
- package/dist/main.js.map +1 -0
- package/dist/store/LibraryProvider.d.ts +4 -0
- package/dist/store/rootReducer.d.ts +11 -0
- package/dist/store/store.d.ts +25 -0
- package/dist/store/withStore.d.ts +2 -0
- package/package.json +1 -1
- package/dist/assets/header_image-BZoSlAHj.png +0 -0
- package/dist/assets/index-BO60QL3R.js +0 -156
- package/dist/assets/product_thumb-Bn1S8z9K.png +0 -0
- package/dist/index.html +0 -14
- /package/dist/{assets/index-BdUKWxPm.css → cdn/main.css} +0 -0
- /package/dist/{vite.svg → cdn/vite.svg} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MAX_SLOTS = 5;
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,19 @@
|
|
|
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, };
|
|
@@ -0,0 +1,60 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -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,20 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function InfoIcon(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const uniqueList: (arr: string[]) => string[];
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|