@sonic-equipment/ui 0.0.30 → 0.0.32

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 (51) hide show
  1. package/dist/algolia/algolia-filter-section.d.ts +0 -1
  2. package/dist/buttons/add-to-cart-button/add-to-cart-button.d.ts +2 -1
  3. package/dist/buttons/add-to-cart-button/add-to-cart-button.stories.d.ts +6 -0
  4. package/dist/buttons/icon-button/icon-button.d.ts +0 -1
  5. package/dist/cards/product-card/product-card.stories.d.ts +0 -1
  6. package/dist/forms/input/input.stories.d.ts +0 -1
  7. package/dist/forms/select/select.d.ts +2 -2
  8. package/dist/forms/textarea/textarea.stories.d.ts +0 -1
  9. package/dist/global-search/global-search-provider/{global-search-provider.d.ts → algolia-search-provider.d.ts} +1 -1
  10. package/dist/global-search/global-search-provider/global-search-container.d.ts +7 -0
  11. package/dist/global-search/global-search-provider/{use-global-search.d.ts → use-algolia-search.d.ts} +1 -2
  12. package/dist/global-search/global-search-provider/use-search-disclosure.d.ts +4 -0
  13. package/dist/global-search/global-search.d.ts +7 -3
  14. package/dist/global-search/search-input/search-input.d.ts +3 -1
  15. package/dist/global-search/types.d.ts +0 -1
  16. package/dist/icons/arrows/chrevron-down-bold.d.ts +0 -1
  17. package/dist/icons/arrows/chrevron-down-slim.d.ts +0 -1
  18. package/dist/icons/arrows/left-arrow-filled-icon.d.ts +0 -1
  19. package/dist/icons/arrows/right-arrow-filled-icon.d.ts +0 -1
  20. package/dist/icons/arrows/text-aligned-arrow-icon.d.ts +0 -1
  21. package/dist/icons/cart/cart-filled-icon.d.ts +0 -1
  22. package/dist/icons/cart/cart-outlined-icon.d.ts +0 -1
  23. package/dist/icons/checkmark/checkmark-filled-icon.d.ts +0 -1
  24. package/dist/icons/chevrons/chevron-left-filled-icon.d.ts +0 -1
  25. package/dist/icons/chevrons/chevron-right-filled-icon.d.ts +0 -1
  26. package/dist/icons/close/close-filled-icon.d.ts +0 -1
  27. package/dist/icons/dehashed/dehashed-outlined-icon.d.ts +0 -1
  28. package/dist/icons/favorite/favorite-filled-icon.d.ts +0 -1
  29. package/dist/icons/favorite/favorite-outlined-icon.d.ts +0 -1
  30. package/dist/icons/filter/filter-outlined-icon.d.ts +0 -1
  31. package/dist/icons/hashed/hashed-outlined-icon.d.ts +0 -1
  32. package/dist/icons/home/home-filled-icon.d.ts +0 -1
  33. package/dist/icons/magnifying-glass/magnifying-glass-icon.d.ts +0 -1
  34. package/dist/icons/math/minus-filled-icon.d.ts +0 -1
  35. package/dist/icons/math/plus-filled-icon.d.ts +0 -1
  36. package/dist/icons/reset/reset-icon.d.ts +0 -1
  37. package/dist/icons/trash/trash-outlined-icon.d.ts +0 -1
  38. package/dist/index.d.ts +161 -9
  39. package/dist/index.js +215 -181
  40. package/dist/intl/intl-context.d.ts +0 -1
  41. package/dist/intl/intl-provider.d.ts +0 -1
  42. package/dist/intl/translation-id.d.ts +1 -1
  43. package/dist/overlay-background/overlay-background.d.ts +0 -1
  44. package/dist/pages/page-layout/page-layout.stories.d.ts +1 -2
  45. package/dist/pages/product-listing-page/product-listing-page-provider/product-listing-page-context.d.ts +0 -1
  46. package/dist/pages/product-listing-page/product-listing-page-provider/product-listing-page-provider.d.ts +0 -1
  47. package/dist/sidebar/sidebar-context.d.ts +0 -1
  48. package/dist/sidebar/sidebar.d.ts +0 -1
  49. package/dist/styles.css +95 -20
  50. package/dist/typography/heading/heading.d.ts +0 -1
  51. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface RefinementListItem {
3
2
  count: number;
4
3
  highlighted?: string;
@@ -1,8 +1,9 @@
1
1
  type AddToCartState = 'initial' | 'spinner' | 'manual-input';
2
2
  interface AddToCartButtonProps {
3
3
  initialState?: AddToCartState;
4
+ isDisabled?: boolean;
4
5
  onChange?: (quantity: number) => void;
5
6
  quantity: number;
6
7
  }
7
- export declare function AddToCartButton({ initialState, onChange, quantity, }: AddToCartButtonProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function AddToCartButton({ initialState, isDisabled, onChange, quantity, }: AddToCartButtonProps): import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -1,7 +1,13 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
2
  import { AddToCartButton } from './add-to-cart-button';
3
3
  declare const meta: {
4
+ argTypes: {
5
+ isDisabled: {
6
+ control: "boolean";
7
+ };
8
+ };
4
9
  args: {
10
+ isDisabled: false;
5
11
  onChange: import("@vitest/spy").Mock<[quantity: number], void>;
6
12
  quantity: number;
7
13
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IconButtonProps {
3
2
  children: React.ReactNode;
4
3
  className?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StoryObj } from '@storybook/react';
3
2
  import { ProductCard } from './product-card';
4
3
  declare const meta: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { StoryObj } from '@storybook/react';
3
2
  import { Input } from './input';
4
3
  declare const meta: {
@@ -1,9 +1,9 @@
1
1
  export interface SelectProps<T> {
2
- disabled?: boolean;
2
+ isDisabled?: boolean;
3
3
  label: string;
4
4
  onChange: (value: keyof T) => void;
5
5
  options: T;
6
6
  selectedOption?: keyof T;
7
7
  showLabel?: boolean;
8
8
  }
9
- export declare function Select<T extends object>({ disabled, label, onChange, options, selectedOption, showLabel, }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Select<T extends object>({ isDisabled, label, onChange, options, selectedOption, showLabel, }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { StoryObj } from '@storybook/react';
3
2
  import { TextArea } from './textarea';
4
3
  declare const meta: {
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
2
2
  import { SearchClient } from 'algoliasearch/lite';
3
3
  import { Autocomplete, GlobalSearchContextValue } from 'global-search/types';
4
4
  export declare const GlobalSearchContext: React.Context<GlobalSearchContextValue | null>;
5
- export declare function GlobalSearchProvider({ children, searchClient, }: {
5
+ export declare function AlgoliaSearchProvider({ children, searchClient, }: {
6
6
  children?: ReactNode | ((autocomplete: Autocomplete) => ReactNode);
7
7
  searchClient: SearchClient;
8
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export declare const GlobalSearchDisclosureContext: React.Context<{
2
+ isOpen: boolean;
3
+ toggle: VoidFunction;
4
+ } | null>;
5
+ export declare function GlobalSearchContainer({ children, }: {
6
+ children: React.ReactNode;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AutocompleteCollection } from '@algolia/autocomplete-core';
3
2
  import { CategoryHit } from 'global-search/plugins/categories-plugin';
4
3
  import { PopularCategoryHit } from 'global-search/plugins/popular-categories-plugin';
@@ -7,7 +6,7 @@ import { ProductHit } from 'global-search/plugins/products-plugin';
7
6
  import { QuerySuggestionHit } from 'global-search/plugins/query-suggestions-plugin';
8
7
  import { QuickAccessHit } from 'global-search/plugins/quick-access-plugin';
9
8
  import { RecentSearchHit } from 'global-search/plugins/recent-searches-plugin';
10
- export declare function useGlobalSearch(): {
9
+ export declare function useAlgoliaSearch(): {
11
10
  categories: AutocompleteCollection<CategoryHit> | undefined;
12
11
  hasResults: boolean;
13
12
  popularCategories: AutocompleteCollection<PopularCategoryHit> | undefined;
@@ -0,0 +1,4 @@
1
+ export declare const useGlobalSearchDisclosure: () => {
2
+ isOpen: boolean;
3
+ toggle: VoidFunction;
4
+ };
@@ -1,4 +1,9 @@
1
+ import { ReactNode } from 'react';
1
2
  import { SearchClient } from 'algoliasearch/lite';
3
+ interface GlobalSearchProps {
4
+ children: ReactNode;
5
+ searchClient: SearchClient;
6
+ }
2
7
  /**
3
8
  * Global search using algolia autocomplete with a custom renderer
4
9
  * https://www.algolia.com/doc/ui-libraries/autocomplete/guides/creating-a-renderer/
@@ -7,6 +12,5 @@ import { SearchClient } from 'algoliasearch/lite';
7
12
  * uses the autocomplete widgets
8
13
  * https://codesandbox.io/p/sandbox/github/algolia/autocomplete/tree/next/examples/two-column-layout
9
14
  */
10
- export declare function GlobalSearch(props: {
11
- searchClient: SearchClient;
12
- }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function GlobalSearch({ children, searchClient }: GlobalSearchProps): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -1,5 +1,7 @@
1
1
  import { Autocomplete } from 'global-search/types';
2
2
  export interface SearchInputProps {
3
3
  autocomplete?: Autocomplete;
4
+ formRef: React.RefObject<HTMLFormElement>;
5
+ inputRef: React.RefObject<HTMLInputElement>;
4
6
  }
5
- export declare function SearchInput({ autocomplete }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function SearchInput({ autocomplete, formRef, inputRef, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AutocompleteApi, AutocompleteState as _AutocompleteState } from '@algolia/autocomplete-core';
3
2
  import { SearchClient } from 'algoliasearch/lite';
4
3
  import { CategoryHit } from './plugins/categories-plugin';
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function ChevronDownBold(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function ChevronDownSlim(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function LeftArrowFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function RightArrowFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function TextAlignedArrowIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function CartFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function CartOutlinedIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function CheckmarkFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function ChevronLeftFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function ChevronRightFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function CloseFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function DehashedOutlinedIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function FavoriteFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function FavoriteOutlinedIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function FilterOutlinedIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function HashedOutlinedIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function HomeFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function MagnifyingGlassIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function MinusFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function PlusFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function ResetIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function TrashOutlinedIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
- /// <reference types="react" />
2
1
  import { ReactElement, MutableRefObject, ReactNode, HTMLAttributeAnchorTarget, MouseEvent, FormEventHandler, KeyboardEvent, ComponentType } from 'react';
3
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
3
  import { PressEvent } from 'react-aria-components';
4
+ import * as algoliasearch_lite from 'algoliasearch/lite';
5
5
  import { SearchClient } from 'algoliasearch/lite';
6
6
  import { RouterProps } from 'instantsearch.js/es/middlewares/createRouterMiddleware';
7
7
  import { UiState } from 'instantsearch.js/es/types';
8
+ import { AutocompleteApi, AutocompleteState as AutocompleteState$1, AutocompleteCollection } from '@algolia/autocomplete-core';
9
+ import { Hit } from '@algolia/client-search';
8
10
 
9
11
  declare const breakpoints: {
10
12
  readonly sm: 0;
@@ -148,7 +150,7 @@ interface Cart<T extends CartLine = CartLine> {
148
150
  cartLines?: T[] | null;
149
151
  }
150
152
 
151
- interface ProductHit {
153
+ interface ProductHit$3 {
152
154
  [key: string]: any;
153
155
  alternativeNumber: string;
154
156
  categories: string[];
@@ -243,10 +245,11 @@ declare function LinkButton({ children, className, href, isDisabled, onPress, ta
243
245
  type AddToCartState = 'initial' | 'spinner' | 'manual-input';
244
246
  interface AddToCartButtonProps {
245
247
  initialState?: AddToCartState;
248
+ isDisabled?: boolean;
246
249
  onChange?: (quantity: number) => void;
247
250
  quantity: number;
248
251
  }
249
- declare function AddToCartButton({ initialState, onChange, quantity, }: AddToCartButtonProps): react_jsx_runtime.JSX.Element;
252
+ declare function AddToCartButton({ initialState, isDisabled, onChange, quantity, }: AddToCartButtonProps): react_jsx_runtime.JSX.Element;
250
253
 
251
254
  interface Props {
252
255
  productId: string;
@@ -428,14 +431,14 @@ interface NumberFieldProps {
428
431
  declare function NumberField({ autoFocus, autoGrow, defaultValue, formatOptions, isDisabled, isInvalid, isReadOnly, isRequired, label, maxLength, maxValue, minValue, name, onChange, onInput, onKeyUp, placeholder, showLabel, size, value, withButtons, }: NumberFieldProps): react_jsx_runtime.JSX.Element;
429
432
 
430
433
  interface SelectProps<T> {
431
- disabled?: boolean;
434
+ isDisabled?: boolean;
432
435
  label: string;
433
436
  onChange: (value: keyof T) => void;
434
437
  options: T;
435
438
  selectedOption?: keyof T;
436
439
  showLabel?: boolean;
437
440
  }
438
- declare function Select<T extends object>({ disabled, label, onChange, options, selectedOption, showLabel, }: SelectProps<T>): react_jsx_runtime.JSX.Element;
441
+ declare function Select<T extends object>({ isDisabled, label, onChange, options, selectedOption, showLabel, }: SelectProps<T>): react_jsx_runtime.JSX.Element;
439
442
 
440
443
  interface TextFieldProps {
441
444
  autoFocus?: boolean;
@@ -482,7 +485,7 @@ declare function FavoriteOutlinedIcon(props: React.SVGProps<SVGSVGElement>): rea
482
485
 
483
486
  declare function HashedOutlinedIcon(props: React.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
484
487
 
485
- type TranslationId = 'Chosen filters' | 'Clear' | 'Clear filters' | 'Excl. VAT' | 'Hide filters' | 'Incl. VAT' | 'Show' | 'Show all' | 'Show filters' | 'Show less' | 'Sort' | 'Submit' | 'articles' | 'article' | 'of' | 'sort.relevance' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc';
488
+ type TranslationId = 'Chosen filters' | 'Clear' | 'Clear filters' | 'Excl. VAT' | 'Hide filters' | 'Incl. VAT' | 'Show' | 'Show all' | 'Show filters' | 'Show less' | 'Sort by' | 'Submit' | 'articles' | 'article' | 'of' | 'sort.relevance' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc';
486
489
 
487
490
  interface FormattedMessageProps {
488
491
  fallbackValue?: string;
@@ -609,6 +612,10 @@ declare function AlgoliaResultsCount(): string | null;
609
612
 
610
613
  declare function AlgoliaSortBy(): react_jsx_runtime.JSX.Element | null;
611
614
 
615
+ interface GlobalSearchProps {
616
+ children: ReactNode;
617
+ searchClient: SearchClient;
618
+ }
612
619
  /**
613
620
  * Global search using algolia autocomplete with a custom renderer
614
621
  * https://www.algolia.com/doc/ui-libraries/autocomplete/guides/creating-a-renderer/
@@ -617,8 +624,153 @@ declare function AlgoliaSortBy(): react_jsx_runtime.JSX.Element | null;
617
624
  * uses the autocomplete widgets
618
625
  * https://codesandbox.io/p/sandbox/github/algolia/autocomplete/tree/next/examples/two-column-layout
619
626
  */
620
- declare function GlobalSearch(props: {
621
- searchClient: SearchClient;
627
+ declare function GlobalSearch({ children, searchClient }: GlobalSearchProps): react_jsx_runtime.JSX.Element;
628
+
629
+ declare const GlobalSearchDisclosureContext: React.Context<{
630
+ isOpen: boolean;
631
+ toggle: VoidFunction;
632
+ } | null>;
633
+ declare function GlobalSearchContainer({ children, }: {
634
+ children: React.ReactNode;
622
635
  }): react_jsx_runtime.JSX.Element;
623
636
 
624
- export { Accordion, AddToCartButton, AlgoliaCategories, AlgoliaFilterPanel, type AlgoliaFilterPanelProps, AlgoliaFilterSection, AlgoliaMultiSelectFilterSection, AlgoliaPagination, AlgoliaProvider, AlgoliaResultsCount, AlgoliaSortBy, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, type Cart, CartFilledIcon, type CartLine, CartOutlinedIcon, CartProvider, CategoryCarousel, type CategoryCarouselProps, Checkbox, type CheckboxProps$1 as CheckboxProps, ColorCheckbox, type ColorCheckboxProps, ConnectedAddToCartButton, ConnectedBreadcrumb, DehashedOutlinedIcon, FavoriteButton, type FavoriteButtonProps, FavoriteFilledIcon, FavoriteOutlinedIcon, FavoriteProvider, type FilterOption, type Filters, FormattedMessage, type FormattedMessageFunction, type FormattedMessageProps, GlobalSearch, GlobalStateProvider, GlobalStateProviderContext, HashedOutlinedIcon, IconButton, type IconButtonProps, Image, IntlProvider, LeftArrowFilledIcon, LinkButton, type LinkButtonProps, MultiSelect, type MultiSelectProps, NumberField, type NumberFieldSize, Page, PageLayout, type PageProps, ProductCard, type ProductCardProps, type ProductHit, ProductListingPage, type ProductListingPageProps, ProductOverviewGrid, type ProductOverviewGridProps, ProductPrice, type ProductPriceProps, ProductSku, type ProductSkuProps, type RefinementListItem, RightArrowFilledIcon, Select, type SelectProps, ShowAll, type ShowAllProps, Sidebar, type SidebarProps, SidebarProvider, TextAlignedArrowIcon, TextField, createSonicSearchClient, useAlgolia, useBreakpoint, useCart, useDebouncedCallback, useDisclosure, useFavorite, useFormattedMessage, useGlobalState, useProductCartLine, useScrollLock };
637
+ type CategoryHit$1 = Hit<{
638
+ listCategories: string[];
639
+ }>;
640
+
641
+ type PopularCategoryHit$1 = Hit<{
642
+ count: number;
643
+ label: string;
644
+ }>;
645
+
646
+ type PopularSearchHit$1 = Hit<{
647
+ nb_words: number;
648
+ popularity: number;
649
+ query: string;
650
+ }>;
651
+
652
+ interface ProductHit$2 {
653
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
654
+ [key: string]: any
655
+ alternativeNumber: string
656
+ categories: string[]
657
+ categoryPageId: string[]
658
+ consumerPrice: number
659
+ discountedPrice: number
660
+ drawerQuantity: string
661
+ ean: string
662
+ height: number
663
+ hierarchicalCategories: {
664
+ lvl0: string
665
+ lvl1: string
666
+ }
667
+ id: string
668
+ images:
669
+ | {
670
+ quality: string
671
+ url: string
672
+ }[]
673
+ | undefined
674
+ isVatIncluded: boolean
675
+ labels: string[]
676
+ length: number
677
+ listPrice: number
678
+ moreInformation: string
679
+ name: string
680
+ originalPrice: number
681
+ price: number
682
+ relatedProducts: string
683
+ restrictionGroups: string[]
684
+ salePrice: number
685
+ slug: string
686
+ storefrontId: string
687
+ storefrontSlug: string
688
+ weight: number
689
+ width: number
690
+ }
691
+
692
+ type ProductHit$1 = Hit<ProductHit$2>;
693
+
694
+ type QuerySuggestionHit$1 = Hit<{
695
+ nb_words: number;
696
+ popularity: number;
697
+ query: string;
698
+ }>;
699
+
700
+ type QuickAccessHit$1 = Hit<{
701
+ id: number;
702
+ image: string;
703
+ title: string;
704
+ url: string;
705
+ }>;
706
+
707
+ type RecentSearchHit$1 = Hit<{
708
+ id: string;
709
+ label: string;
710
+ }>;
711
+
712
+ type AutocompleteItem = ProductHit$1 | QuerySuggestionHit$1 | PopularCategoryHit$1 | QuickAccessHit$1 | RecentSearchHit$1 | CategoryHit$1 | PopularSearchHit$1;
713
+ type Autocomplete = AutocompleteApi<AutocompleteItem, React.BaseSyntheticEvent, React.MouseEvent, React.KeyboardEvent>;
714
+ type AutocompleteState = AutocompleteState$1<AutocompleteItem>;
715
+
716
+ type CategoryHit = Hit<{
717
+ listCategories: string[]
718
+ }>
719
+
720
+ type PopularCategoryHit = Hit<{
721
+ count: number
722
+ label: string
723
+ }>
724
+
725
+ type PopularSearchHit = Hit<{
726
+ nb_words: number
727
+ popularity: number
728
+ query: string
729
+ }>
730
+
731
+ type ProductHit = Hit<ProductHit$2>
732
+
733
+ type QuerySuggestionHit = Hit<{
734
+ nb_words: number
735
+ popularity: number
736
+ query: string
737
+ }>
738
+
739
+ type QuickAccessHit = Hit<{
740
+ id: number
741
+ image: string
742
+ title: string
743
+ url: string
744
+ }>
745
+
746
+ type RecentSearchHit = Hit<{
747
+ id: string
748
+ label: string
749
+ }>
750
+
751
+ declare function useAlgoliaSearch(): {
752
+ categories: AutocompleteCollection<CategoryHit> | undefined;
753
+ hasResults: boolean;
754
+ popularCategories: AutocompleteCollection<PopularCategoryHit> | undefined;
755
+ popularSearches: AutocompleteCollection<PopularSearchHit> | undefined;
756
+ products: AutocompleteCollection<ProductHit> | undefined;
757
+ querySuggestions: AutocompleteCollection<QuerySuggestionHit> | undefined;
758
+ quickAccess: AutocompleteCollection<QuickAccessHit> | undefined;
759
+ recentSearches: AutocompleteCollection<RecentSearchHit> | undefined;
760
+ autocomplete: Autocomplete;
761
+ formRef: React.RefObject<HTMLFormElement>;
762
+ inputRef: React.RefObject<HTMLInputElement>;
763
+ panelRef: React.RefObject<HTMLDivElement>;
764
+ productsIndexName: string;
765
+ productsQuerySuggestionsIndexName: string;
766
+ searchClient: algoliasearch_lite.SearchClient;
767
+ setState: React.Dispatch<React.SetStateAction<AutocompleteState>>;
768
+ state: AutocompleteState;
769
+ };
770
+
771
+ declare const useGlobalSearchDisclosure: () => {
772
+ isOpen: boolean;
773
+ toggle: VoidFunction;
774
+ };
775
+
776
+ export { Accordion, AddToCartButton, AlgoliaCategories, AlgoliaFilterPanel, type AlgoliaFilterPanelProps, AlgoliaFilterSection, AlgoliaMultiSelectFilterSection, AlgoliaPagination, AlgoliaProvider, AlgoliaResultsCount, AlgoliaSortBy, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, type Cart, CartFilledIcon, type CartLine, CartOutlinedIcon, CartProvider, CategoryCarousel, type CategoryCarouselProps, Checkbox, type CheckboxProps$1 as CheckboxProps, ColorCheckbox, type ColorCheckboxProps, ConnectedAddToCartButton, ConnectedBreadcrumb, DehashedOutlinedIcon, FavoriteButton, type FavoriteButtonProps, FavoriteFilledIcon, FavoriteOutlinedIcon, FavoriteProvider, type FilterOption, type Filters, FormattedMessage, type FormattedMessageFunction, type FormattedMessageProps, GlobalSearch, GlobalSearchContainer, GlobalSearchDisclosureContext, GlobalStateProvider, GlobalStateProviderContext, HashedOutlinedIcon, IconButton, type IconButtonProps, Image, IntlProvider, LeftArrowFilledIcon, LinkButton, type LinkButtonProps, MultiSelect, type MultiSelectProps, NumberField, type NumberFieldSize, Page, PageLayout, type PageProps, ProductCard, type ProductCardProps, type ProductHit$3 as ProductHit, ProductListingPage, type ProductListingPageProps, ProductOverviewGrid, type ProductOverviewGridProps, ProductPrice, type ProductPriceProps, ProductSku, type ProductSkuProps, type RefinementListItem, RightArrowFilledIcon, Select, type SelectProps, ShowAll, type ShowAllProps, Sidebar, type SidebarProps, SidebarProvider, TextAlignedArrowIcon, TextField, createSonicSearchClient, useAlgolia, useAlgoliaSearch, useBreakpoint, useCart, useDebouncedCallback, useDisclosure, useFavorite, useFormattedMessage, useGlobalSearchDisclosure, useGlobalState, useProductCartLine, useScrollLock };