@soma-vertical-web/multi-lib 0.0.44 → 0.0.46
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/cms/ContentTypes/PDP/PDPContent.d.ts +3 -0
- package/cms/server.d.ts +1 -0
- package/contexts/contexts/cms/PDPContentContext.d.ts +6 -0
- package/contexts/contexts/plp/FilterContext.d.ts +6 -0
- package/contexts/contexts/plp/PLPNavigationContext.d.ts +6 -0
- package/contexts/index.d.ts +10 -0
- package/data/helpers/plp/index.d.ts +4 -0
- package/index.js +18 -18
- package/index.mjs +6485 -5769
- package/index2.js +1 -1
- package/index2.mjs +104 -81
- package/layout/index.d.ts +100 -0
- package/layout/team-component/Filter/Composite/Content.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Empty.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Colors.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Price/Label.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Price/Price.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Price/index.d.ts +1 -0
- package/layout/team-component/Filter/Composite/Item/Sizes.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Toggle.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/index.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Loading.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Modal.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Root.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Selected.d.ts +7 -0
- package/layout/team-component/Filter/Filter.d.ts +47 -0
- package/layout/team-component/Filter/helpers.d.ts +8 -0
- package/layout/team-component/Filter/index.d.ts +2 -0
- package/layout/team-component/PLPNavigation/Composite/BreadCrumb.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Content.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Filters.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Root.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/Item.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/Selected.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/index.d.ts +1 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/interfaces.d.ts +16 -0
- package/layout/team-component/PLPNavigation/Composite/Total.d.ts +5 -0
- package/layout/team-component/PLPNavigation/PLPNavigation.d.ts +31 -0
- package/layout/team-component/PLPNavigation/index.d.ts +1 -0
- package/layout/team-component/ProductVariationList/Composite/List.d.ts +7 -0
- package/layout/team-component/ProductVariationList/Composite/Option.d.ts +7 -0
- package/layout/team-component/ProductVariationList/Composite/Root.d.ts +7 -0
- package/layout/team-component/ProductVariationList/Composite/Title.d.ts +7 -0
- package/layout/team-component/ProductVariationList/ProductVariationList.d.ts +19 -0
- package/layout/team-component/ProductVariationList/index.d.ts +1 -0
- package/layout/team-component/Sort/Composite/Button.d.ts +4 -0
- package/layout/team-component/Sort/Composite/Item.d.ts +4 -0
- package/layout/team-component/Sort/Composite/List.d.ts +4 -0
- package/layout/team-component/Sort/Composite/ListWrapper.d.ts +4 -0
- package/layout/team-component/Sort/Composite/Root.d.ts +4 -0
- package/layout/team-component/Sort/Sort.d.ts +7 -0
- package/layout/team-component/Sort/index.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/PDP/index.d.ts +15 -0
- package/types/constants.d.ts +11 -0
- package/types/contexts/contexts/search.d.ts +1 -1
- package/types/layout/team-components/Filter/Item/index.d.ts +12 -0
- package/types/layout/team-components/Filter/index.d.ts +58 -4
- package/types/layout/team-components/PLPNavigation/index.d.ts +38 -0
- package/types/layout/team-components/ProductVariationList/index.d.ts +15 -0
- package/types/layout/team-components/Sort/index.d.ts +8 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Price';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SizeProps } from '../../../../../types/layout/team-components/Filter/Item';
|
|
2
|
+
|
|
3
|
+
declare const Sizes: {
|
|
4
|
+
({ onToggleFacet, values, PLP_SIZE_ORDER, ...props }: SizeProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Sizes;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FilterToggleProps } from '../../../../../types/layout/team-components/Filter';
|
|
2
|
+
|
|
3
|
+
declare const Toggle: {
|
|
4
|
+
({ columns, facetKey, onToggleFacet, values, ICONS, ...props }: FilterToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Toggle;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ItemProps } from '../../../../../types/layout/team-components/Filter/Item';
|
|
2
|
+
|
|
3
|
+
declare const Item: {
|
|
4
|
+
({ columns, facet, onToggleFacet, CONSTANTS, ...props }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Item;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FilterModalProps } from '../../../../types/layout/team-components/Filter';
|
|
2
|
+
|
|
3
|
+
declare const Modal: {
|
|
4
|
+
({ children, className, isMobile, CONSTANTS: { PLP_FILTERS_TITLE, ICONS } }: FilterModalProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Modal;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FilterProps } from '../../../../types/layout/team-components/Filter';
|
|
2
|
+
|
|
3
|
+
declare const Root: {
|
|
4
|
+
({ children, className, isMobile, CONSTANTS, ...props }: FilterProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Root;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FilterSelectedProps } from '../../../../types/layout/team-components/Filter';
|
|
2
|
+
|
|
3
|
+
declare const Selected: {
|
|
4
|
+
({ ICONS, PLP_FILTERS_COLORS, PLP_FILTERS }: FilterSelectedProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Selected;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const Filter: {
|
|
2
|
+
Colors: {
|
|
3
|
+
({ onToggleFacet, values, PLP_FILTERS, PLP_FILTERS_COLORS, ...props }: import('../../../types/layout/team-components/Filter/Item').BooleanFacetTypeProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
Content: {
|
|
7
|
+
({ columns, CONSTANTS, ...props }: import('../../../types/layout/team-components/Filter').FilterContentProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
Empty: {
|
|
11
|
+
({ PLP_FILTERS_EMPTY }: import('../../../types/layout/team-components/Filter').FilterEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
Modal: {
|
|
15
|
+
({ children, className, isMobile, CONSTANTS: { PLP_FILTERS_TITLE, ICONS } }: import('../../../types/layout/team-components/Filter').FilterModalProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
Item: {
|
|
19
|
+
({ columns, facet, onToggleFacet, CONSTANTS, ...props }: import('../../../types/layout/team-components/Filter/Item').ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
Root: {
|
|
23
|
+
({ children, className, isMobile, CONSTANTS, ...props }: import('../../../types/layout/team-components/Filter').FilterProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
Loading: {
|
|
27
|
+
({ ...props }: import('react').HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
Selected: {
|
|
31
|
+
({ ICONS, PLP_FILTERS_COLORS, PLP_FILTERS }: import('../../../types/layout/team-components/Filter').FilterSelectedProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
Price: {
|
|
35
|
+
({ facet, ...props }: import('../../../types/layout/team-components/Filter/Item/Price').PriceProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
Sizes: {
|
|
39
|
+
({ onToggleFacet, values, PLP_SIZE_ORDER, ...props }: import('../../../types/layout/team-components/Filter/Item').SizeProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
Toggle: {
|
|
43
|
+
({ columns, facetKey, onToggleFacet, values, ICONS, ...props }: import('../../../types/layout/team-components/Filter').FilterToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
displayName: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export default Filter;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CheckedColorProps, CreateTagPriceProps, GetAbsoluteMinMaxProps, GetColorProps, GetNameProps, GetOrderProps } from '../../../types/layout/team-components/Filter';
|
|
2
|
+
|
|
3
|
+
export declare const checkedColor: ({ key, PLP_FILTERS }: CheckedColorProps) => boolean;
|
|
4
|
+
export declare const getColor: ({ value, PLP_FILTERS_COLORS }: GetColorProps) => string;
|
|
5
|
+
export declare const getName: ({ key, PLP_FILTERS }: GetNameProps) => string | undefined;
|
|
6
|
+
export declare const getOrder: ({ key, PLP_FILTERS }: GetOrderProps) => number;
|
|
7
|
+
export declare const createTagPrice: ({ value }: CreateTagPriceProps) => string;
|
|
8
|
+
export declare const getAbsoluteMinMax: ({ items }: GetAbsoluteMinMaxProps) => number[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PLPContentProps } from '../../../../types/layout/team-components/PLPNavigation';
|
|
2
|
+
|
|
3
|
+
declare const Content: {
|
|
4
|
+
({ children, ICONS, PDC_NAVIGATION, searchParams, ...props }: PLPContentProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Content;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PLPNavigationFiltersProps } from '../../../../types/layout/team-components/PLPNavigation';
|
|
2
|
+
|
|
3
|
+
declare const Filters: {
|
|
4
|
+
({ ICONS, PDC_NAVIGATION, searchParams }: PLPNavigationFiltersProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Filters;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PLPRootProps } from '../../../../types/layout/team-components/PLPNavigation';
|
|
2
|
+
|
|
3
|
+
declare const Root: {
|
|
4
|
+
({ children, onSort, setOpenFilters, style, PDC_NAVIGATION, ICONS, searchParams, ...props }: PLPRootProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Root;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Selected';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ICONSType, PLP_FILTERS_COLORSType, PLP_FILTERSType } from '../../../../../types/constants';
|
|
2
|
+
import { FacetsContextProps } from '../../../../../types/contexts/contexts/search';
|
|
3
|
+
|
|
4
|
+
export type SelectedFacetProps = FacetsContextProps['selectedFacets'][0];
|
|
5
|
+
export interface SelectedItemProps {
|
|
6
|
+
facet: SelectedFacetProps;
|
|
7
|
+
callback(value: SelectedFacetProps, remove: boolean): void;
|
|
8
|
+
CONSTANTS: {
|
|
9
|
+
ICONS: ICONSType;
|
|
10
|
+
PLP_FILTERS: PLP_FILTERSType;
|
|
11
|
+
PLP_FILTERS_COLORS: PLP_FILTERS_COLORSType;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface SelectedProps extends Pick<SelectedItemProps, 'callback' | 'CONSTANTS'> {
|
|
15
|
+
selected: SelectedFacetProps[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const PLPNavigation: {
|
|
2
|
+
BreadCrumb: {
|
|
3
|
+
({ ICONS, ...props }: import('../../../types/layout/team-components/PLPNavigation').PLPBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
Content: {
|
|
7
|
+
({ children, ICONS, PDC_NAVIGATION, searchParams, ...props }: import('../../../types/layout/team-components/PLPNavigation').PLPContentProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
Filters: {
|
|
11
|
+
({ ICONS, PDC_NAVIGATION, searchParams }: import('../../../types/layout/team-components/PLPNavigation').PLPNavigationFiltersProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
Root: {
|
|
15
|
+
({ children, onSort, setOpenFilters, style, PDC_NAVIGATION, ICONS, searchParams, ...props }: import('../../../types/layout/team-components/PLPNavigation').PLPRootProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
Selected: {
|
|
19
|
+
({ callback, selected, CONSTANTS, ...props }: import('./Composite/Selected/interfaces').SelectedProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
SelectedItem: {
|
|
23
|
+
({ callback, facet, CONSTANTS }: import('./Composite/Selected/interfaces').SelectedItemProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
Total: {
|
|
27
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default PLPNavigation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PLPNavigation';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OptionProps } from '../../../../types/layout/team-components/ProductVariationList';
|
|
2
|
+
|
|
3
|
+
declare const Option: {
|
|
4
|
+
({ fill, src, type, text, ...props }: OptionProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Option;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProductVariationListProps } from '../../../../types/layout/team-components/ProductVariationList';
|
|
2
|
+
|
|
3
|
+
declare const Root: {
|
|
4
|
+
({ children, ...props }: ProductVariationListProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Root;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const ProductVariationList: {
|
|
2
|
+
List: {
|
|
3
|
+
({ children, ...props }: import('../../../types/layout/team-components/ProductVariationList').ListProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
Option: {
|
|
7
|
+
({ fill, src, type, text, ...props }: import('../../../types/layout/team-components/ProductVariationList').OptionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
Title: {
|
|
11
|
+
({ children, title, ...props }: import('../../../types/layout/team-components/ProductVariationList').TitleProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
Root: {
|
|
15
|
+
({ children, ...props }: import('../../../types/layout/team-components/ProductVariationList').ProductVariationListProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default ProductVariationList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ProductVariationList';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SortProps } from '../../../types/layout/team-components/Sort';
|
|
2
|
+
|
|
3
|
+
declare const Sort: {
|
|
4
|
+
({ handleSelectValue, sortListOpen, setSortListOpen, searchParams, CONSTANTS, ...props }: SortProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Sort;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Sort';
|