@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.
Files changed (62) hide show
  1. package/cms/ContentTypes/PDP/PDPContent.d.ts +3 -0
  2. package/cms/server.d.ts +1 -0
  3. package/contexts/contexts/cms/PDPContentContext.d.ts +6 -0
  4. package/contexts/contexts/plp/FilterContext.d.ts +6 -0
  5. package/contexts/contexts/plp/PLPNavigationContext.d.ts +6 -0
  6. package/contexts/index.d.ts +10 -0
  7. package/data/helpers/plp/index.d.ts +4 -0
  8. package/index.js +18 -18
  9. package/index.mjs +6485 -5769
  10. package/index2.js +1 -1
  11. package/index2.mjs +104 -81
  12. package/layout/index.d.ts +100 -0
  13. package/layout/team-component/Filter/Composite/Content.d.ts +7 -0
  14. package/layout/team-component/Filter/Composite/Empty.d.ts +7 -0
  15. package/layout/team-component/Filter/Composite/Item/Colors.d.ts +7 -0
  16. package/layout/team-component/Filter/Composite/Item/Price/Label.d.ts +7 -0
  17. package/layout/team-component/Filter/Composite/Item/Price/Price.d.ts +7 -0
  18. package/layout/team-component/Filter/Composite/Item/Price/index.d.ts +1 -0
  19. package/layout/team-component/Filter/Composite/Item/Sizes.d.ts +7 -0
  20. package/layout/team-component/Filter/Composite/Item/Toggle.d.ts +7 -0
  21. package/layout/team-component/Filter/Composite/Item/index.d.ts +7 -0
  22. package/layout/team-component/Filter/Composite/Loading.d.ts +7 -0
  23. package/layout/team-component/Filter/Composite/Modal.d.ts +7 -0
  24. package/layout/team-component/Filter/Composite/Root.d.ts +7 -0
  25. package/layout/team-component/Filter/Composite/Selected.d.ts +7 -0
  26. package/layout/team-component/Filter/Filter.d.ts +47 -0
  27. package/layout/team-component/Filter/helpers.d.ts +8 -0
  28. package/layout/team-component/Filter/index.d.ts +2 -0
  29. package/layout/team-component/PLPNavigation/Composite/BreadCrumb.d.ts +7 -0
  30. package/layout/team-component/PLPNavigation/Composite/Content.d.ts +7 -0
  31. package/layout/team-component/PLPNavigation/Composite/Filters.d.ts +7 -0
  32. package/layout/team-component/PLPNavigation/Composite/Root.d.ts +7 -0
  33. package/layout/team-component/PLPNavigation/Composite/Selected/Item.d.ts +7 -0
  34. package/layout/team-component/PLPNavigation/Composite/Selected/Selected.d.ts +7 -0
  35. package/layout/team-component/PLPNavigation/Composite/Selected/index.d.ts +1 -0
  36. package/layout/team-component/PLPNavigation/Composite/Selected/interfaces.d.ts +16 -0
  37. package/layout/team-component/PLPNavigation/Composite/Total.d.ts +5 -0
  38. package/layout/team-component/PLPNavigation/PLPNavigation.d.ts +31 -0
  39. package/layout/team-component/PLPNavigation/index.d.ts +1 -0
  40. package/layout/team-component/ProductVariationList/Composite/List.d.ts +7 -0
  41. package/layout/team-component/ProductVariationList/Composite/Option.d.ts +7 -0
  42. package/layout/team-component/ProductVariationList/Composite/Root.d.ts +7 -0
  43. package/layout/team-component/ProductVariationList/Composite/Title.d.ts +7 -0
  44. package/layout/team-component/ProductVariationList/ProductVariationList.d.ts +19 -0
  45. package/layout/team-component/ProductVariationList/index.d.ts +1 -0
  46. package/layout/team-component/Sort/Composite/Button.d.ts +4 -0
  47. package/layout/team-component/Sort/Composite/Item.d.ts +4 -0
  48. package/layout/team-component/Sort/Composite/List.d.ts +4 -0
  49. package/layout/team-component/Sort/Composite/ListWrapper.d.ts +4 -0
  50. package/layout/team-component/Sort/Composite/Root.d.ts +4 -0
  51. package/layout/team-component/Sort/Sort.d.ts +7 -0
  52. package/layout/team-component/Sort/index.d.ts +1 -0
  53. package/package.json +1 -1
  54. package/style.css +1 -1
  55. package/types/cms/ContentTypes/PDP/index.d.ts +15 -0
  56. package/types/constants.d.ts +11 -0
  57. package/types/contexts/contexts/search.d.ts +1 -1
  58. package/types/layout/team-components/Filter/Item/index.d.ts +12 -0
  59. package/types/layout/team-components/Filter/index.d.ts +58 -4
  60. package/types/layout/team-components/PLPNavigation/index.d.ts +38 -0
  61. package/types/layout/team-components/ProductVariationList/index.d.ts +15 -0
  62. 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 { HTMLAttributes } from 'react';
2
+
3
+ declare const Loading: {
4
+ ({ ...props }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Loading;
@@ -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,2 @@
1
+ export * as helpers from './helpers';
2
+ export { default } from './Filter';
@@ -0,0 +1,7 @@
1
+ import { PLPBreadcrumbProps } from '../../../../types/layout/team-components/PLPNavigation';
2
+
3
+ declare const BreadCrumb: {
4
+ ({ ICONS, ...props }: PLPBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default BreadCrumb;
@@ -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,7 @@
1
+ import { SelectedItemProps } from './interfaces';
2
+
3
+ declare const Item: {
4
+ ({ callback, facet, CONSTANTS }: SelectedItemProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Item;
@@ -0,0 +1,7 @@
1
+ import { SelectedProps } from './interfaces';
2
+
3
+ declare const Selected: {
4
+ ({ callback, selected, CONSTANTS, ...props }: SelectedProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Selected;
@@ -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,5 @@
1
+ declare const Total: {
2
+ (): import("react/jsx-runtime").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default Total;
@@ -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 { ListProps } from '../../../../types/layout/team-components/ProductVariationList';
2
+
3
+ declare const List: {
4
+ ({ children, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default List;
@@ -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,7 @@
1
+ import { TitleProps } from '../../../../types/layout/team-components/ProductVariationList';
2
+
3
+ declare const Title: {
4
+ ({ children, title, ...props }: TitleProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Title;
@@ -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,4 @@
1
+ import { SortButtonProps } from '../../../../types/layout/team-components/Sort';
2
+
3
+ declare const SortButton: ({ children, sortListOpen, btnAdornment, style, ...props }: SortButtonProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default SortButton;
@@ -0,0 +1,4 @@
1
+ import { RadioButtonProps } from '@soma-vertical-web/core-components/src/lib/RadioButton/interfaces';
2
+
3
+ declare const SortItem: (props: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default SortItem;
@@ -0,0 +1,4 @@
1
+ import { RadioGroupProps } from '@soma-vertical-web/core-components/src/lib/RadioButton/interfaces';
2
+
3
+ declare const SortList: ({ children, className, name, ...props }: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default SortList;
@@ -0,0 +1,4 @@
1
+ import { CardProps } from '@soma-vertical-web/core-components/src/lib/Card/interfaces';
2
+
3
+ declare const ListWrapper: ({ children, className, shadow, padding, height, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ListWrapper;
@@ -0,0 +1,4 @@
1
+ import { RootProps } from '../../../../types/layout/team-components/Sort';
2
+
3
+ export declare const Root: import('react').ForwardRefExoticComponent<RootProps & import('react').RefAttributes<HTMLDivElement>>;
4
+ export default Root;
@@ -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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soma-vertical-web/multi-lib",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {