@sonic-equipment/ui 208.0.0 → 209.0.0

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 (41) hide show
  1. package/dist/algolia/algolia-filter-panel.js +7 -10
  2. package/dist/algolia/algolia-filter-panel.module.css.js +1 -1
  3. package/dist/algolia/algolia-insights-provider.d.ts +1 -1
  4. package/dist/base.css +0 -10
  5. package/dist/breadcrumbs/breadcrumb.js +1 -1
  6. package/dist/buttons/button/button.d.ts +1 -1
  7. package/dist/buttons/button/button.module.css.js +1 -1
  8. package/dist/buttons/link/link.d.ts +1 -1
  9. package/dist/buttons/link/link.module.css.js +1 -1
  10. package/dist/carousel/carousel-navigation-button.d.ts +1 -1
  11. package/dist/carousel/pagination/pagination.js +2 -6
  12. package/dist/collapsables/accordion/accordion-item.js +2 -1
  13. package/dist/collapsables/accordion/accordion.module.css.js +1 -1
  14. package/dist/collapsables/cascading-component/cascading-component-container-context.d.ts +1 -1
  15. package/dist/collapsables/show-all/show-all.js +2 -2
  16. package/dist/collapsables/unmounter/unmounter.d.ts +1 -1
  17. package/dist/cookies/cookie-context.d.ts +1 -1
  18. package/dist/filters/multi-select/multi-select.js +2 -1
  19. package/dist/filters/pagination/pagination.js +1 -1
  20. package/dist/filters/pagination/pagination.module.css.js +1 -1
  21. package/dist/forms/fields/number-field/number-field.d.ts +1 -1
  22. package/dist/intl/intl-context.d.ts +1 -1
  23. package/dist/lists/menu-list/menu-list-provider.d.ts +1 -1
  24. package/dist/notifications/announcements/announcement.d.ts +1 -1
  25. package/dist/pages/product/product-listing-page/product-listing-page-provider/product-listing-page-context.d.ts +1 -1
  26. package/dist/pages/product/product-listing-page/product-listing-page.module.css.js +1 -1
  27. package/dist/pages/product/product-listing-page/product-listing.js +1 -1
  28. package/dist/shared/providers/global-state-provider.d.ts +1 -1
  29. package/dist/shared/routing/route-context.d.ts +1 -1
  30. package/dist/shared/routing/use-route-link-element.d.ts +1 -1
  31. package/dist/shared/routing/use-route-link.d.ts +1 -1
  32. package/dist/shared/routing/with-routing.d.ts +2 -2
  33. package/dist/sidebar/sidebar.d.ts +2 -1
  34. package/dist/sidebar/sidebar.js +4 -7
  35. package/dist/sidebar/sidebar.module.css.js +1 -1
  36. package/dist/styles.css +277 -317
  37. package/dist/table/elements/table-context.d.ts +1 -1
  38. package/dist/table/elements/table-row-context.d.ts +1 -1
  39. package/dist/toast/toast.d.ts +1 -1
  40. package/dist/typography/heading/heading.d.ts +2 -2
  41. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useDynamicWidgets } from 'react-instantsearch';
4
4
  import { Button } from '../buttons/button/button.js';
5
5
  import { FormattedMessage } from '../intl/formatted-message.js';
@@ -15,10 +15,6 @@ import styles from './algolia-filter-panel.module.css.js';
15
15
  const MULTISELECT_ATTRIBUTE_IGNORE_LIST = [
16
16
  'hierarchicalCategories.lvl0',
17
17
  ];
18
- function PanelCloseButton() {
19
- const { close } = useSidebarActions();
20
- return (jsx("div", { className: styles.button, children: jsxs(Button, { withArrow: true, onClick: close, size: "md", children: [jsx(FormattedMessage, { id: "Show" }), " ", jsx(AlgoliaResultsCount, {})] }) }));
21
- }
22
18
  function AlgoliaFilterPanel({ showActiveCategories = false, showCategoriesFilters = false, }) {
23
19
  /*
24
20
  * This hook will return the attributes that are available to be rendered.
@@ -32,11 +28,12 @@ function AlgoliaFilterPanel({ showActiveCategories = false, showCategoriesFilter
32
28
  facets: ['*'],
33
29
  maxValuesPerFacet: 100,
34
30
  });
35
- return (jsx("div", { className: styles['filter-panel'], children: jsxs("div", { className: styles['scroll-container'], children: [showActiveCategories && jsx(AlgoliaActiveCategories, {}), showCategoriesFilters && jsx(AlgoliaCategoriesFilters, {}), jsx(AlgoliaActiveFilters, {}), attributesToRender.length === 0 ? (jsx(AlgoliaDummyRefinementListConsumer, {})) : (jsx("section", { children: attributesToRender
36
- .filter(attribute => !MULTISELECT_ATTRIBUTE_IGNORE_LIST.includes(attribute))
37
- .map(attribute => {
38
- return (jsx(AlgoliaMultiSelectFilterSection, { attribute: attribute }, `attribute-${attribute}`));
39
- }) })), jsx(PanelCloseButton, {})] }) }));
31
+ const { close } = useSidebarActions();
32
+ return (jsxs("div", { className: styles['filter-panel'], children: [jsxs("div", { className: styles.content, children: [showActiveCategories && jsx(AlgoliaActiveCategories, {}), showCategoriesFilters && jsx(AlgoliaCategoriesFilters, {}), jsx(AlgoliaActiveFilters, {}), attributesToRender.length === 0 ? (jsx(AlgoliaDummyRefinementListConsumer, {})) : (jsx("section", { children: attributesToRender
33
+ .filter(attribute => !MULTISELECT_ATTRIBUTE_IGNORE_LIST.includes(attribute))
34
+ .map(attribute => {
35
+ return (jsx(AlgoliaMultiSelectFilterSection, { attribute: attribute }, `attribute-${attribute}`));
36
+ }) }))] }), jsx("div", { className: styles.footer, children: jsxs(Button, { withArrow: true, onClick: close, size: "md", children: [jsx(FormattedMessage, { id: "Show" }), " ", jsx(AlgoliaResultsCount, {})] }) })] }));
40
37
  }
41
38
 
42
39
  export { AlgoliaFilterPanel };
@@ -1,3 +1,3 @@
1
- var styles = {"filter-panel":"algolia-filter-panel-module-GfhOO","scroll-container":"algolia-filter-panel-module-4ubB1","category":"algolia-filter-panel-module-LKet3","is-active":"algolia-filter-panel-module-yf8kI","count":"algolia-filter-panel-module-uAHPx","button":"algolia-filter-panel-module-ABOYv"};
1
+ var styles = {"filter-panel":"algolia-filter-panel-module-GfhOO","content":"algolia-filter-panel-module-KFCCf","footer":"algolia-filter-panel-module--DfrD","category":"algolia-filter-panel-module-LKet3","is-active":"algolia-filter-panel-module-yf8kI","count":"algolia-filter-panel-module-uAHPx"};
2
2
 
3
3
  export { styles as default };
@@ -4,7 +4,7 @@ export interface AlgoliaInsightsProviderState extends AlgoliaInsightsProviderGlo
4
4
  objectId?: string | string[] | undefined;
5
5
  position?: number | number[] | undefined;
6
6
  }
7
- export declare const AlgoliaInsightsProviderContext: React.Context<AlgoliaInsightsProviderState>;
7
+ export declare const AlgoliaInsightsProviderContext: import("react").Context<AlgoliaInsightsProviderState>;
8
8
  export declare function AlgoliaInsightsProvider({ children, value, }: {
9
9
  children?: ReactNode;
10
10
  value?: AlgoliaInsightsProviderState;
package/dist/base.css CHANGED
@@ -38,16 +38,6 @@ h6 {
38
38
  font-weight: inherit;
39
39
  }
40
40
 
41
- button:focus {
42
- outline: none !important;
43
- outline-width: 0 !important;
44
- }
45
-
46
- a:focus {
47
- outline: none !important;
48
- outline-width: 0 !important;
49
- }
50
-
51
41
  input[type='number']::-webkit-outer-spin-button,
52
42
  input[type='number']::-webkit-inner-spin-button {
53
43
  opacity: 1;
@@ -21,7 +21,7 @@ function Breadcrumb({ links }) {
21
21
  return (jsxs(Breadcrumbs, { className: styles.breadcrumbs, children: [jsx(Breadcrumb$1, { className: clsx(styles.breadcrumb, styles.short), children: jsxs(Link, { className: styles.link, href: href, isDisabled: false, title: label, children: [jsx(GlyphsChevronsSlimLeftIcon, { className: styles.icon }), isHomeLink ? (jsx(SolidHomeIcon, { className: styles.icon })) : (jsx("span", { children: previousLink.label }))] }) }), jsx(Breadcrumb$1, { className: clsx(styles.breadcrumb, styles.long), children: jsx(Link, { className: styles.link, href: homeLink.href, title: homeLink.label, children: jsx(SolidHomeIcon, { className: clsx(styles['home-icon'], styles.icon) }) }) }), linksWithoutFirst.map((link, index) => (jsx(BreadcrumbLongItem, { index: index, isDisabled: linksWithoutFirst.length - 1 === index, link: link }, link.href + link.label || index)))] }));
22
22
  }
23
23
  function BreadcrumbLongItem({ index, isDisabled, link, }) {
24
- return (jsx(Breadcrumb$1, { className: clsx(styles.breadcrumb, styles.long), children: jsxs(Link, { className: styles.link, color: "secondary", href: link.href, isDisabled: isDisabled, title: link.label, children: [jsx(GlyphsChevronsSlimLeftIcon, { className: clsx(styles['previous-icon'], styles.icon) }), link.label] }) }, index));
24
+ return (jsx(Breadcrumb$1, { className: clsx(styles.breadcrumb, styles.long), children: jsxs(Link, { className: styles.link, color: "secondary", href: link.href, isDisabled: isDisabled, title: link.label, children: [jsx(GlyphsChevronsSlimLeftIcon, { className: clsx(styles.icon, styles['previous-icon']) }), link.label] }) }, index));
25
25
  }
26
26
 
27
27
  export { Breadcrumb };
@@ -25,4 +25,4 @@ export interface ButtonProps {
25
25
  variant?: 'solid' | 'outline' | 'ghost';
26
26
  withArrow?: boolean;
27
27
  }
28
- export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
28
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,3 +1,3 @@
1
- var buttonStyles = {"button":"button-module-V4meK","light":"button-module-fepAr","icon":"button-module-XaNWz","loading-uninformative":"button-module-LwuW2","loading-informative":"button-module-U5IxM","spinner":"button-module-13ndF","children":"button-module-vqRq-","right-arrow-icon":"button-module-ydQAo","primary":"button-module-tmyk8","secondary":"button-module--1bCH","sm":"button-module-Pbwz7","md":"button-module-GVTEW","condensed":"button-module-GKHQc","lg":"button-module-nyNY8","outline":"button-module-vq9GI","solid":"button-module-AjvlY","hover":"button-module-YzPAr","focus":"button-module--xzsY","active":"button-module-XMFzj","ghost":"button-module-f4UVe"};
1
+ var buttonStyles = {"button":"button-module-V4meK","light":"button-module-fepAr","icon":"button-module-XaNWz","loading-uninformative":"button-module-LwuW2","loading-informative":"button-module-U5IxM","spinner":"button-module-13ndF","children":"button-module-vqRq-","right-arrow-icon":"button-module-ydQAo","primary":"button-module-tmyk8","secondary":"button-module--1bCH","sm":"button-module-Pbwz7","md":"button-module-GVTEW","condensed":"button-module-GKHQc","lg":"button-module-nyNY8","outline":"button-module-vq9GI","solid":"button-module-AjvlY","hover":"button-module-YzPAr","active":"button-module-XMFzj","ghost":"button-module-f4UVe"};
2
2
 
3
3
  export { buttonStyles as default };
@@ -16,4 +16,4 @@ export interface LinkProps {
16
16
  target?: string;
17
17
  title?: string;
18
18
  }
19
- export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>>;
19
+ export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLElement>>;
@@ -1,3 +1,3 @@
1
- var styles = {"link":"link-module-xLqBn","hover":"link-module-HZbAL","has-underline":"link-module-UuCEp","secondary":"link-module-v31wH","primary":"link-module-bGD6u"};
1
+ var styles = {"link":"link-module-xLqBn","has-underline":"link-module-UuCEp","primary":"link-module-bGD6u","secondary":"link-module-v31wH"};
2
2
 
3
3
  export { styles as default };
@@ -4,5 +4,5 @@ interface CarouselNavigationButtonProps {
4
4
  direction: SwipeDirection;
5
5
  onClick?: (direction: SwipeDirection) => void;
6
6
  }
7
- export declare const CarouselNavigationButton: React.ForwardRefExoticComponent<CarouselNavigationButtonProps & React.RefAttributes<HTMLButtonElement>>;
7
+ export declare const CarouselNavigationButton: import("react").ForwardRefExoticComponent<CarouselNavigationButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
8
8
  export {};
@@ -28,13 +28,9 @@ function CarouselPagination({ contained, currentPage = 1, numberOfPages, onChang
28
28
  return;
29
29
  return (jsx("div", { className: clsx({
30
30
  [styles['contained']]: contained,
31
- }, styles['pagination-panel']), children: jsxs("div", { className: styles['content-container'], children: [jsx("div", { ref: animation.current.refButton, className: clsx(styles['active-page-button'], styles['page-button']), children: jsx("div", { ref: animation.current.refCircle, className: styles['circle'] }) }), Array.from({ length: numberOfPages }, (_, index) => (jsx("div", { ref: animation.current.refPaginationButton(index), className: clsx(styles['page-button']), onClick: () => {
31
+ }, styles['pagination-panel']), children: jsxs("div", { className: styles['content-container'], children: [jsx("div", { ref: animation.current.refButton, className: clsx(styles['active-page-button'], styles['page-button']), children: jsx("div", { ref: animation.current.refCircle, className: styles['circle'] }) }), Array.from({ length: numberOfPages }, (_, index) => (jsx("button", { ref: animation.current.refPaginationButton(index), className: clsx(styles['page-button']), onClick: () => {
32
32
  onChange?.(index + 1);
33
- }, onKeyPress: e => {
34
- if (e.key === 'Enter' || e.key === ' ') {
35
- onChange?.(index + 1);
36
- }
37
- }, role: "button", tabIndex: 0 }, index)))] }) }));
33
+ }, type: "button" }, index)))] }) }));
38
34
  }
39
35
 
40
36
  export { CarouselPagination, PaginationButton };
@@ -22,13 +22,14 @@ function AccordionItem({ _pseudo = 'none', allowCollapse = true, allowToggle = t
22
22
  const panelId = `panel-${id}`;
23
23
  return (jsxs("div", { suppressHydrationWarning: true, className: clsx(className, ...ensureArray(borderType).map(type => styles[`border-type-${type}`]), styles['accordion-item'], isDisabled && styles.disabled, {
24
24
  [styles['is-open']]: isOpen,
25
+ [styles['is-closed']]: !isOpen,
25
26
  [styles['allow-toggle']]: allowCollapse && allowToggle,
26
27
  }), "data-test-selector": dataTestSelector, children: [jsx(Heading, { className: styles.heading, tag: "h3", children: jsxs("button", { suppressHydrationWarning: true, "aria-controls": panelId, "aria-expanded": isOpen, className: clsx(styles.button, styles[_pseudo], {
27
28
  [styles['disable-collapse']]: !allowCollapse,
28
29
  }), disabled: isDisabled, id: id, onClick: () => {
29
30
  if (allowToggle && allowCollapse)
30
31
  toggle();
31
- }, tabIndex: allowToggle ? 0 : -1, type: "button", children: [title, jsx("span", { className: styles.icon, children: size === 'lg' ? (jsx(GlyphsChevronsBoldDownIcon, {})) : (jsx(GlyphsChevronsSlimDownIcon, {})) })] }) }), jsx("div", { "aria-labelledby": id, className: styles.panel, id: panelId, role: "region", children: jsx("div", { className: styles.content, children: children }) })] }));
32
+ }, tabIndex: allowToggle ? 0 : -1, type: "button", children: [title, jsx("span", { className: styles.icon, children: size === 'lg' ? (jsx(GlyphsChevronsBoldDownIcon, {})) : (jsx(GlyphsChevronsSlimDownIcon, {})) })] }) }), jsx("div", { "aria-hidden": !isOpen, "aria-labelledby": id, className: styles.panel, id: panelId, inert: isOpen ? undefined : '', role: "region", children: children })] }));
32
33
  }
33
34
 
34
35
  export { AccordionItem };
@@ -1,3 +1,3 @@
1
- var styles = {"accordion":"accordion-module-9WvAH","indented":"accordion-module-6CcEH","white":"accordion-module-CaVdG","accordion-item":"accordion-module-lf9d-","lg":"accordion-module-0qnae","with-seperators":"accordion-module-yOLrW","heading":"accordion-module-d-B4T","button":"accordion-module--Rwpb","icon":"accordion-module-Y50uq","focus":"accordion-module-M4BZs","allow-toggle":"accordion-module-QEO2d","panel":"accordion-module-KZjMo","content":"accordion-module-ejMH3","border-type-bottom":"accordion-module-oTdZK","border-type-top":"accordion-module-0mrLq","border-type-middle":"accordion-module-aAr-R","is-open":"accordion-module-W0F1z","border-type-middle-accentuated":"accordion-module-OB98a","disable-collapse":"accordion-module-RnNRT","select":"accordion-module-SAbiG","disabled":"accordion-module-ogvYX"};
1
+ var styles = {"accordion":"accordion-module-9WvAH","indented":"accordion-module-6CcEH","white":"accordion-module-CaVdG","accordion-item":"accordion-module-lf9d-","lg":"accordion-module-0qnae","with-seperators":"accordion-module-yOLrW","heading":"accordion-module-d-B4T","button":"accordion-module--Rwpb","icon":"accordion-module-Y50uq","focus":"accordion-module-M4BZs","allow-toggle":"accordion-module-QEO2d","panel":"accordion-module-KZjMo","border-type-bottom":"accordion-module-oTdZK","border-type-top":"accordion-module-0mrLq","border-type-middle":"accordion-module-aAr-R","is-open":"accordion-module-W0F1z","border-type-middle-accentuated":"accordion-module-OB98a","is-closed":"accordion-module-kYmoe","disable-collapse":"accordion-module-RnNRT","select":"accordion-module-SAbiG","disabled":"accordion-module-ogvYX"};
2
2
 
3
3
  export { styles as default };
@@ -1,2 +1,2 @@
1
1
  import { CascadingComponentContainerContextType } from './types';
2
- export declare const CascadingComponentContainerContext: React.Context<CascadingComponentContainerContextType | null>;
2
+ export declare const CascadingComponentContainerContext: import("react").Context<CascadingComponentContainerContextType | null>;
@@ -21,9 +21,9 @@ function ShowAll({ children, hasTransparency = true, initialHeight = 0, initialI
21
21
  return (jsxs("div", { ref: showAllRef, className: clsx(styles['show-all'], {
22
22
  [styles['content-fits']]: contentFits,
23
23
  [styles['is-open']]: isReallyOpen,
24
- }), style: contentFits ? undefined : { '--initital-height': `${initialHeight}px` }, children: [jsx("div", { className: styles.panel, children: jsx("div", { className: clsx(styles.content, {
24
+ }), style: contentFits ? undefined : { '--initial-height': `${initialHeight}px` }, children: [jsx("div", { className: styles.panel, children: jsx("div", { className: clsx(styles.content, {
25
25
  [styles['has-transparency']]: !contentFits && hasTransparency,
26
- }), children: jsx("div", { ref: ref, children: children }) }) }), !contentFits && (jsxs(Link, { className: styles.button, color: "secondary", onClick: () => {
26
+ }), children: jsx("div", { ref: ref, "aria-hidden": !isReallyOpen, inert: isReallyOpen ? undefined : '', children: children }) }) }), !contentFits && (jsxs(Link, { className: styles.button, color: "secondary", onClick: () => {
27
27
  if (isControlled)
28
28
  return onToggle(!isControlled);
29
29
  toggle();
@@ -4,7 +4,7 @@ export interface UnmounterContextType {
4
4
  unmount: boolean;
5
5
  unregisterChild: () => void;
6
6
  }
7
- export declare const UnmounterContext: React.Context<UnmounterContextType | null>;
7
+ export declare const UnmounterContext: import("react").Context<UnmounterContextType | null>;
8
8
  export declare function useUnmount(): UnmounterContextType | null;
9
9
  export declare function Unmounter({ children: children, onUnmounted, onUnmountReady, unmount: _unmount, }: {
10
10
  children: ReactNode;
@@ -1,2 +1,2 @@
1
1
  import { CookieContextValue } from './types';
2
- export declare const CookieContext: React.Context<CookieContextValue | undefined>;
2
+ export declare const CookieContext: import("react").Context<CookieContextValue | undefined>;
@@ -9,12 +9,13 @@ function MultiSelect({ amountShown = 3, onChange, options, render, }) {
9
9
  const shownOptions = options.slice(0, amountShown);
10
10
  const hiddenOptions = options.slice(amountShown);
11
11
  const hiddenSelectedOptions = hiddenOptions.filter(option => option.isSelected);
12
+ const hiddenOptionsMinusSelected = hiddenOptions.filter(option => !option.isSelected);
12
13
  const { isOpen, toggle } = useDisclosure();
13
14
  if (options.length < 2 &&
14
15
  options.filter(option => option.isSelected).length === 0) {
15
16
  return null;
16
17
  }
17
- return (jsxs("div", { className: styles['multi-select'], children: [jsx("div", { className: styles['filter-items'], children: [...shownOptions, ...(isOpen ? [] : hiddenSelectedOptions)].map(option => (jsxs("div", { className: styles['filter-item'], children: [render({ onChange: () => onChange(option), option }), jsxs("span", { children: ["(", option.amount, ")"] })] }, option.value))) }), hiddenOptions.length > 0 && (jsx(ShowAll, { hasTransparency: false, isOpen: isOpen, onToggle: toggle, children: jsx("div", { className: clsx(styles['filter-items'], styles['hidden']), children: hiddenOptions.map(option => (jsxs("div", { className: styles['filter-item'], children: [render({ onChange: () => onChange(option), option }), jsxs("span", { children: ["(", option.amount, ")"] })] }, option.value))) }) }))] }));
18
+ return (jsxs("div", { className: styles['multi-select'], children: [jsx("div", { className: styles['filter-items'], children: [...shownOptions, ...(isOpen ? [] : hiddenSelectedOptions)].map(option => (jsxs("div", { className: styles['filter-item'], children: [render({ onChange: () => onChange(option), option }), jsxs("span", { children: ["(", option.amount, ")"] })] }, option.value))) }), hiddenOptions.length > 0 && (jsx(ShowAll, { hasTransparency: false, isOpen: isOpen, onToggle: toggle, children: jsx("div", { className: clsx(styles['filter-items'], styles['hidden']), children: (isOpen ? hiddenOptions : hiddenOptionsMinusSelected).map(option => (jsxs("div", { className: styles['filter-item'], children: [render({ onChange: () => onChange(option), option }), jsxs("span", { children: ["(", option.amount, ")"] })] }, option.value))) }) }))] }));
18
19
  }
19
20
 
20
21
  export { MultiSelect };
@@ -10,7 +10,7 @@ import styles from './pagination.module.css.js';
10
10
 
11
11
  function Pagination({ currentPage, onChange, totalPages, }) {
12
12
  const t = useFormattedMessage();
13
- return (jsxs("div", { className: styles.pagination, children: [jsx(IconButton, { isDisabled: currentPage === 1, onClick: () => onChange(currentPage - 1), children: jsx(GlyphsChevronsSlimLeftIcon, { "aria-label": t('Previous') }) }), jsxs("div", { className: styles['page-number-container'], children: [jsx(NumberField, { autoGrow: true, label: t('Current page'), maxValue: totalPages, minValue: 1, onChange: onChange, size: "md", value: currentPage }), jsx(FormattedMessage, { id: "of" }), jsx("div", { children: totalPages })] }), jsx(IconButton, { isDisabled: currentPage >= totalPages, onClick: () => onChange(currentPage + 1), children: jsx(GlyphsChevronsSlimRightIcon, { "aria-label": t('Next') }) })] }));
13
+ return (jsxs("div", { className: styles.pagination, children: [jsx(IconButton, { className: styles['previous'], isDisabled: currentPage === 1, onClick: () => onChange(currentPage - 1), children: jsx(GlyphsChevronsSlimLeftIcon, { "aria-label": t('Previous') }) }), jsxs("div", { className: styles['page-number-container'], children: [jsx(NumberField, { autoGrow: true, label: t('Current page'), maxValue: totalPages, minValue: 1, onChange: onChange, size: "md", value: currentPage }), jsx(FormattedMessage, { id: "of" }), jsx("div", { children: totalPages })] }), jsx(IconButton, { className: styles['next'], isDisabled: currentPage >= totalPages, onClick: () => onChange(currentPage + 1), children: jsx(GlyphsChevronsSlimRightIcon, { "aria-label": t('Next') }) })] }));
14
14
  }
15
15
 
16
16
  export { Pagination };
@@ -1,3 +1,3 @@
1
- var styles = {"pagination":"pagination-module-k4OgY","page-number-container":"pagination-module-oq89A"};
1
+ var styles = {"pagination":"pagination-module-k4OgY","page-number-container":"pagination-module-oq89A","next":"pagination-module-cYO35","previous":"pagination-module-rljds"};
2
2
 
3
3
  export { styles as default };
@@ -31,4 +31,4 @@ export interface NumberFieldProps {
31
31
  value?: number;
32
32
  withButtons?: boolean;
33
33
  }
34
- export declare const NumberField: React.ForwardRefExoticComponent<NumberFieldProps & React.RefAttributes<HTMLInputElement>>;
34
+ export declare const NumberField: import("react").ForwardRefExoticComponent<NumberFieldProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -11,4 +11,4 @@ export interface IntlContextType {
11
11
  updateCultureCode?: UpdateCultureCode;
12
12
  updateCurrencyCode?: UpdateCurrencyCode;
13
13
  }
14
- export declare const IntlContext: React.Context<IntlContextType>;
14
+ export declare const IntlContext: import("react").Context<IntlContextType>;
@@ -3,7 +3,7 @@ export interface MenuListContextValue {
3
3
  canCollapse: boolean;
4
4
  registerCanCollapse: (canCollapse: boolean) => () => void;
5
5
  }
6
- export declare const MenuListContext: React.Context<MenuListContextValue | undefined>;
6
+ export declare const MenuListContext: import("react").Context<MenuListContextValue | undefined>;
7
7
  export declare function MenuListProvider({ children, }: {
8
8
  children: ReactNode | ((args: {
9
9
  canCollapse: boolean;
@@ -4,4 +4,4 @@ export interface AnnouncementProps {
4
4
  className?: string;
5
5
  onDismiss?: (id: string) => void;
6
6
  }
7
- export declare const Announcement: React.ForwardRefExoticComponent<AnnouncementProps & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const Announcement: import("react").ForwardRefExoticComponent<AnnouncementProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -5,4 +5,4 @@ export interface ProductListingPageContextType {
5
5
  isError?: boolean;
6
6
  isLoading?: boolean;
7
7
  }
8
- export declare const ProductListingPageContext: React.Context<ProductListingPageContextType>;
8
+ export declare const ProductListingPageContext: import("react").Context<ProductListingPageContextType>;
@@ -1,3 +1,3 @@
1
- var styles = {"product-listing":"product-listing-page-module-U0zLZ","promos":"product-listing-page-module-VvYG3","action-bar":"product-listing-page-module-jGACo","sidebar-toggle":"product-listing-page-module-qhR-J","sort":"product-listing-page-module-3LRKg","count":"product-listing-page-module-3Jtw-","categories":"product-listing-page-module-UwMEE","product-grid-container":"product-listing-page-module-cUe4a","product-grid":"product-listing-page-module-dtbXB","pagination":"product-listing-page-module-zKOQv"};
1
+ var styles = {"product-listing":"product-listing-page-module-U0zLZ","promos":"product-listing-page-module-VvYG3","action-bar":"product-listing-page-module-jGACo","sidebar-toggle":"product-listing-page-module-qhR-J","sort":"product-listing-page-module-3LRKg","count":"product-listing-page-module-3Jtw-","categories":"product-listing-page-module-UwMEE","product-grid-container":"product-listing-page-module-cUe4a","product-grid":"product-listing-page-module-dtbXB","pagination":"product-listing-page-module-zKOQv","sidebar":"product-listing-page-module-bIfdi"};
2
2
 
3
3
  export { styles as default };
@@ -39,7 +39,7 @@ function ProductListingPageContent({ currentCategoryPath, promoBanners, }) {
39
39
  const t = useFormattedMessage();
40
40
  return (jsxs(Fragment, { children: [isLoading !== false && !hasHits && jsx(LoadingPage, {}), isLoading === false && !hasHits && (jsx(NoResults, { content: jsxs("p", { children: [jsx(FormattedMessage, { id: "You could try exploring our products by category" }), ' ', jsx("br", {}), jsx(FormattedMessage, { id: "Try 'Search' and try to find the product you're looking for" })] }), title: t('Sorry, there are no products found') })), jsxs("div", { style: {
41
41
  display: hasHits ? undefined : 'none',
42
- }, children: [promoBanners?.length && (jsx("section", { className: styles.promos, children: jsx(PromoBanners, { promoBannersData: promoBanners }) })), jsx("section", { className: styles.categories, children: jsx(ProductListingPageCategoryCarousel, { currentCategoryPath: currentCategoryPath }) }), jsxs("section", { className: styles['action-bar'], children: [jsx("div", { className: styles['sidebar-toggle'], children: jsx(ToggleSidebarButton, {}) }), jsx("span", { className: styles.count, children: jsx(AlgoliaResultsCount, {}) }), jsx("div", { className: styles.sort, children: jsx(AlgoliaSortBy, {}) })] }), jsx("section", { children: jsxs("div", { className: styles['product-grid-container'], children: [jsx(Sidebar, { children: jsx(AlgoliaFilterPanel, { showActiveCategories: true }) }), jsxs("div", { className: styles['product-grid'], children: [jsx(ProductListingProductOverview, {}), jsx("div", { className: styles.pagination, children: jsx(AlgoliaPagination, { onChange: () => {
42
+ }, children: [promoBanners?.length && (jsx("section", { className: styles.promos, children: jsx(PromoBanners, { promoBannersData: promoBanners }) })), jsx("section", { className: styles.categories, children: jsx(ProductListingPageCategoryCarousel, { currentCategoryPath: currentCategoryPath }) }), jsxs("section", { className: styles['action-bar'], children: [jsx("div", { className: styles['sidebar-toggle'], children: jsx(ToggleSidebarButton, {}) }), jsx("span", { className: styles.count, children: jsx(AlgoliaResultsCount, {}) }), jsx("div", { className: styles.sort, children: jsx(AlgoliaSortBy, {}) })] }), jsx("section", { children: jsxs("div", { className: styles['product-grid-container'], children: [jsx(Sidebar, { className: styles['sidebar'], children: jsx(AlgoliaFilterPanel, { showActiveCategories: true }) }), jsxs("div", { className: styles['product-grid'], children: [jsx(ProductListingProductOverview, {}), jsx("div", { className: styles.pagination, children: jsx(AlgoliaPagination, { onChange: () => {
43
43
  setTimeout(() => {
44
44
  scrollToTop();
45
45
  }, 100);
@@ -15,7 +15,7 @@ declare class GlobalState {
15
15
  get<T>(key: string | symbol, initialState: T | undefined): State<T>;
16
16
  set<T>(key: string | symbol, state: State<T>): void;
17
17
  }
18
- export declare const GlobalStateProviderContext: React.Context<GlobalState>;
18
+ export declare const GlobalStateProviderContext: import("react").Context<GlobalState>;
19
19
  interface GlobalStateProviderProps {
20
20
  children: ReactNode;
21
21
  }
@@ -1,2 +1,2 @@
1
1
  import { RouteContextValue } from './types';
2
- export declare const RouteContext: React.Context<RouteContextValue | undefined>;
2
+ export declare const RouteContext: import("react").Context<RouteContextValue | undefined>;
@@ -1 +1 @@
1
- export declare function useRouteLinkElement(): React.ElementType<import("./types").RouteLinkElementProps>;
1
+ export declare function useRouteLinkElement(): import("react").ElementType<import("./types").RouteLinkElementProps>;
@@ -1,6 +1,6 @@
1
1
  import { NavigateOptions } from './types';
2
2
  export declare function useRouteLink(): {
3
- RouteLinkElement: React.ElementType<import("./types").RouteLinkElementProps>;
3
+ RouteLinkElement: import("react").ElementType<import("./types").RouteLinkElementProps>;
4
4
  getRouteLinkProps: (href: string, route?: NavigateOptions) => {
5
5
  href: string;
6
6
  onNavigate: () => void;
@@ -4,5 +4,5 @@ export interface WithRoutingProps {
4
4
  href?: string;
5
5
  route?: NavigateOptions;
6
6
  }
7
- export declare function withRouting(component: ElementType<RouteLinkElementProps>): React.FunctionComponent<RouteLinkElementProps>;
8
- export declare const FallbackRouteLink: React.FunctionComponent<RouteLinkElementProps>;
7
+ export declare function withRouting(component: ElementType<RouteLinkElementProps>): import("react").FunctionComponent<RouteLinkElementProps>;
8
+ export declare const FallbackRouteLink: import("react").FunctionComponent<RouteLinkElementProps>;
@@ -1,4 +1,5 @@
1
1
  export interface SidebarProps {
2
2
  children: React.ReactNode;
3
+ className?: string;
3
4
  }
4
- export declare function Sidebar({ children }: SidebarProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function Sidebar({ children, className }: SidebarProps): import("react/jsx-runtime").JSX.Element;
@@ -1,23 +1,20 @@
1
1
  "use client";
2
- import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import clsx from 'clsx';
4
4
  import { IconButton } from '../buttons/icon-button/icon-button.js';
5
5
  import { StrokeCloseboxIcon } from '../icons/stroke/stroke-closebox-icon.js';
6
6
  import { useSidebar } from './use-sidebar.js';
7
7
  import styles from './sidebar.module.css.js';
8
8
 
9
- function InnerSidebar({ children }) {
9
+ function Sidebar({ children, className }) {
10
10
  const { isDocked, isOpen, toggle, transition } = useSidebar();
11
- return (jsxs("aside", { className: clsx(styles.sidebar, {
11
+ return (jsxs("aside", { "aria-hidden": !isOpen, className: clsx(styles.sidebar, {
12
12
  [styles['transition']]: transition,
13
13
  [styles['is-open']]: isOpen,
14
14
  [styles['is-closed']]: !isOpen,
15
15
  [styles['is-docked']]: isDocked,
16
16
  [styles['is-not-docked']]: !isDocked,
17
- }), children: [jsx("div", { className: styles.close, children: jsx(IconButton, { color: "secondary", onClick: toggle, children: jsx(StrokeCloseboxIcon, {}) }) }), children] }));
18
- }
19
- function Sidebar({ children }) {
20
- return jsx(InnerSidebar, { children: children });
17
+ }, className), inert: isOpen ? undefined : '', children: [jsx(IconButton, { className: styles.close, color: "secondary", onClick: toggle, children: jsx(StrokeCloseboxIcon, {}) }), jsx("div", { className: styles['content'], children: children })] }));
21
18
  }
22
19
 
23
20
  export { Sidebar };
@@ -1,3 +1,3 @@
1
- var styles = {"sidebar":"sidebar-module-fSa9Q","is-docked":"sidebar-module-AIq0M","transition":"sidebar-module-LEZgg","is-open":"sidebar-module-lV7wp","is-closed":"sidebar-module-dGDrr","close":"sidebar-module-2puGC","is-not-docked":"sidebar-module-Scw7D"};
1
+ var styles = {"sidebar":"sidebar-module-fSa9Q","is-docked":"sidebar-module-AIq0M","transition":"sidebar-module-LEZgg","is-open":"sidebar-module-lV7wp","is-closed":"sidebar-module-dGDrr","close":"sidebar-module-2puGC","content":"sidebar-module-83z7V","is-not-docked":"sidebar-module-Scw7D"};
2
2
 
3
3
  export { styles as default };