@soma-vertical-web/multi-lib 0.0.43 → 0.0.45
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/contexts/contexts/plp/FilterContext.d.ts +6 -0
- package/contexts/index.d.ts +4 -0
- package/index.js +20 -20
- package/index.mjs +7378 -7306
- package/layout/index.d.ts +70 -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/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/constants.d.ts +7 -0
- package/types/layout/team-components/Filter/Item/index.d.ts +12 -0
- package/types/layout/team-components/Filter/index.d.ts +57 -3
- package/types/layout/team-components/ProductVariationList/index.d.ts +15 -0
- package/types/layout/team-components/Sort/index.d.ts +9 -1
package/layout/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { helpers as FilterHelpers } from './team-component/Filter';
|
|
1
2
|
import * as pdp from './template/PDP';
|
|
2
3
|
export declare const layout: {
|
|
3
4
|
teamComponents: {
|
|
@@ -76,6 +77,28 @@ export declare const layout: {
|
|
|
76
77
|
};
|
|
77
78
|
helpers: typeof import("./team-component/ProductList/helpers");
|
|
78
79
|
};
|
|
80
|
+
ProductVariationList: {
|
|
81
|
+
List: {
|
|
82
|
+
({ children, ...props }: import('../types/layout/team-components/ProductVariationList').ListProps): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
85
|
+
Option: {
|
|
86
|
+
({ fill, src, type, text, ...props }: import('../types/layout/team-components/ProductVariationList').OptionProps): import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
displayName: string;
|
|
88
|
+
};
|
|
89
|
+
Title: {
|
|
90
|
+
({ children, title, ...props }: import('../types/layout/team-components/ProductVariationList').TitleProps): import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
displayName: string;
|
|
92
|
+
};
|
|
93
|
+
Root: {
|
|
94
|
+
({ children, ...props }: import('../types/layout/team-components/ProductVariationList').ProductVariationListProps): import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
displayName: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
Sort: {
|
|
99
|
+
({ handleSelectValue, sortListOpen, setSortListOpen, searchParams, CONSTANTS, ...props }: import('../types/layout/team-components/Sort').SortProps): import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
displayName: string;
|
|
101
|
+
};
|
|
79
102
|
UserMenu: {
|
|
80
103
|
(): import("react/jsx-runtime").JSX.Element;
|
|
81
104
|
displayName: string;
|
|
@@ -91,6 +114,53 @@ export declare const layout: {
|
|
|
91
114
|
};
|
|
92
115
|
BackToTop: ({ children, className, adornment, iconPosition, scrollToOptions, style, ...props }: import('../types/layout/team-components/BackToTop').BackToTopProps) => import("react/jsx-runtime").JSX.Element;
|
|
93
116
|
BuyPackage: ({ CONSTANTS, inView, products, innerRef, WishListToggle }: import('../types/layout/team-components/BuyPackage').BuyPackageProps) => import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
Filter: {
|
|
118
|
+
helpers: typeof FilterHelpers;
|
|
119
|
+
Colors: {
|
|
120
|
+
({ onToggleFacet, values, PLP_FILTERS, PLP_FILTERS_COLORS, ...props }: import('../types/layout/team-components/Filter/Item').BooleanFacetTypeProps): import("react/jsx-runtime").JSX.Element;
|
|
121
|
+
displayName: string;
|
|
122
|
+
};
|
|
123
|
+
Content: {
|
|
124
|
+
({ columns, CONSTANTS, ...props }: import('../types/layout/team-components/Filter').FilterContentProps): import("react/jsx-runtime").JSX.Element;
|
|
125
|
+
displayName: string;
|
|
126
|
+
};
|
|
127
|
+
Empty: {
|
|
128
|
+
({ PLP_FILTERS_EMPTY }: import('../types/layout/team-components/Filter').FilterEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
129
|
+
displayName: string;
|
|
130
|
+
};
|
|
131
|
+
Modal: {
|
|
132
|
+
({ children, className, isMobile, CONSTANTS: { PLP_FILTERS_TITLE, ICONS } }: import('../types/layout/team-components/Filter').FilterModalProps): import("react/jsx-runtime").JSX.Element;
|
|
133
|
+
displayName: string;
|
|
134
|
+
};
|
|
135
|
+
Item: {
|
|
136
|
+
({ columns, facet, onToggleFacet, CONSTANTS, ...props }: import('../types/layout/team-components/Filter/Item').ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
137
|
+
displayName: string;
|
|
138
|
+
};
|
|
139
|
+
Root: {
|
|
140
|
+
({ children, className, isMobile, CONSTANTS, ...props }: import('../types/layout/team-components/Filter').FilterProps): import("react/jsx-runtime").JSX.Element;
|
|
141
|
+
displayName: string;
|
|
142
|
+
};
|
|
143
|
+
Loading: {
|
|
144
|
+
({ ...props }: import('react').HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
145
|
+
displayName: string;
|
|
146
|
+
};
|
|
147
|
+
Selected: {
|
|
148
|
+
({ ICONS, PLP_FILTERS_COLORS, PLP_FILTERS }: import('../types/layout/team-components/Filter').FilterSelectedProps): import("react/jsx-runtime").JSX.Element;
|
|
149
|
+
displayName: string;
|
|
150
|
+
};
|
|
151
|
+
Price: {
|
|
152
|
+
({ facet, ...props }: import('../types/layout/team-components/Filter/Item/Price').PriceProps): import("react/jsx-runtime").JSX.Element;
|
|
153
|
+
displayName: string;
|
|
154
|
+
};
|
|
155
|
+
Sizes: {
|
|
156
|
+
({ onToggleFacet, values, PLP_SIZE_ORDER, ...props }: import('../types/layout/team-components/Filter/Item').SizeProps): import("react/jsx-runtime").JSX.Element;
|
|
157
|
+
displayName: string;
|
|
158
|
+
};
|
|
159
|
+
Toggle: {
|
|
160
|
+
({ columns, facetKey, onToggleFacet, values, ICONS, ...props }: import('../types/layout/team-components/Filter').FilterToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
161
|
+
displayName: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
94
164
|
};
|
|
95
165
|
template: {
|
|
96
166
|
pdp: typeof pdp;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BooleanFacetTypeProps } from '../../../../../types/layout/team-components/Filter/Item';
|
|
2
|
+
|
|
3
|
+
declare const Colors: {
|
|
4
|
+
({ onToggleFacet, values, PLP_FILTERS, PLP_FILTERS_COLORS, ...props }: BooleanFacetTypeProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default Colors;
|
|
@@ -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 { 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';
|