@asantemedia-org/leybold-design-system 1.0.0 → 1.0.3
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/dist/.storybook/algoliaProvider.d.ts +42 -0
- package/dist/fonts/calibri.ttf +0 -0
- package/dist/fonts/calibrib.ttf +0 -0
- package/dist/fonts/calibril.ttf +0 -0
- package/dist/index.esm.js +1676 -47
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.scss +2598 -0
- package/dist/index.js +1702 -45
- package/dist/index.js.map +1 -1
- package/dist/index.scss +2598 -0
- package/dist/{app → src/app}/layout.d.ts +0 -1
- package/dist/{app → src/app}/page.d.ts +0 -1
- package/dist/{stories → src}/components/Button/Button.d.ts +1 -1
- package/dist/src/components/ContentCardHorizontal/ContentCardHorizontal.d.ts +3 -0
- package/dist/src/components/ContentCardHorizontal/ContentCardHorizontal.stories.d.ts +10 -0
- package/dist/src/components/ContentCardHorizontal/index.d.ts +2 -0
- package/dist/src/components/Filters/AppliedFilterTag.d.ts +27 -0
- package/dist/src/components/Filters/AppliedFilters.d.ts +24 -0
- package/dist/src/components/Filters/Filter.types.d.ts +176 -0
- package/dist/src/components/Filters/FilterAccordion.d.ts +6 -0
- package/dist/src/components/Filters/FilterItem.d.ts +6 -0
- package/dist/src/components/Filters/FilterSearch.d.ts +6 -0
- package/dist/src/components/Filters/Filters.stories.d.ts +24 -0
- package/dist/src/components/Filters/FiltersPanel.d.ts +6 -0
- package/dist/src/components/Filters/index.d.ts +7 -0
- package/dist/src/components/Image/Image.d.ts +4 -0
- package/dist/src/components/Image/Image.stories.d.ts +16 -0
- package/dist/src/components/Image/Image.types.d.ts +34 -0
- package/dist/src/components/Image/index.d.ts +2 -0
- package/dist/src/components/InstantResults/FederatedInstantResultsLayout.d.ts +3 -0
- package/dist/src/components/InstantResults/FederatedInstantResultsLayout.stories.d.ts +13 -0
- package/dist/src/components/InstantResults/index.d.ts +9 -0
- package/dist/src/components/Pagination/Pagination.d.ts +3 -0
- package/dist/src/components/Pagination/Pagination.stories.d.ts +16 -0
- package/dist/src/components/Pagination/Pagination.types.d.ts +98 -0
- package/dist/src/components/Pagination/PaginationButton.d.ts +3 -0
- package/dist/src/components/Pagination/PaginationEllipsis.d.ts +3 -0
- package/dist/src/components/Pagination/PaginationItem.d.ts +3 -0
- package/dist/src/components/Pagination/index.d.ts +5 -0
- package/dist/src/components/ProductCardDetails/ProductCardDetails.d.ts +4 -0
- package/dist/src/components/ProductCardDetails/ProductCardDetails.stories.d.ts +10 -0
- package/dist/src/components/ProductCardDetails/index.d.ts +2 -0
- package/dist/src/components/ProductCardHorizontal/ProductCardHorizontal.d.ts +4 -0
- package/dist/src/components/ProductCardHorizontal/ProductCardHorizontal.stories.d.ts +11 -0
- package/dist/src/components/ProductCardHorizontal/index.d.ts +2 -0
- package/dist/src/components/ResultsColumn/ResultsColumn.d.ts +3 -0
- package/dist/src/components/ResultsColumn/index.d.ts +2 -0
- package/dist/src/components/ResultsCount/ResultsCount.d.ts +7 -0
- package/dist/src/components/ResultsCount/index.d.ts +2 -0
- package/dist/src/components/ResultsView/FederatedResultsView.d.ts +3 -0
- package/dist/src/components/ResultsView/FederatedResultsView.stories.d.ts +11 -0
- package/dist/src/components/ResultsView/ResultsList.d.ts +3 -0
- package/dist/src/components/ResultsView/index.d.ts +3 -0
- package/dist/src/components/SearchBar/SearchBar.d.ts +3 -0
- package/dist/src/components/SearchBar/SearchBar.stories.d.ts +9 -0
- package/dist/src/components/SearchBar/SearchIcon.d.ts +5 -0
- package/dist/src/components/SearchBar/SearchInput.d.ts +10 -0
- package/dist/src/components/SearchBar/SearchSubmitButton.d.ts +9 -0
- package/dist/src/components/SearchBar/index.d.ts +8 -0
- package/dist/src/components/SearchModal/ModalCloseButton.d.ts +7 -0
- package/dist/src/components/SearchModal/SearchModal.d.ts +3 -0
- package/dist/src/components/SearchModal/SearchModal.stories.d.ts +8 -0
- package/dist/src/components/SearchModal/index.d.ts +4 -0
- package/dist/src/components/SearchTriggerButton/SearchTriggerButton.d.ts +3 -0
- package/dist/src/components/SearchTriggerButton/SearchTriggerButton.stories.d.ts +8 -0
- package/dist/src/components/SearchTriggerButton/index.d.ts +2 -0
- package/dist/src/components/SeeAllLinkButton/SeeAllLinkButton.d.ts +7 -0
- package/dist/src/components/SeeAllLinkButton/index.d.ts +2 -0
- package/dist/src/experience/algolia-dynamic-search/AlgoliaDynamicSearch.d.ts +3 -0
- package/dist/src/experience/algolia-dynamic-search/AlgoliaDynamicSearch.stories.d.ts +7 -0
- package/dist/src/experience/algolia-dynamic-search/index.d.ts +3 -0
- package/dist/src/experience/federated-search/FederatedSearchExperience.d.ts +39 -0
- package/dist/src/experience/federated-search/FederatedSearchExperience.stories.d.ts +10 -0
- package/dist/src/experience/federated-search/FederatedSearchWithAlgolia.stories.d.ts +7 -0
- package/dist/src/experience/federated-search/index.d.ts +2 -0
- package/dist/src/experience/qr-form-journey/QrFormJourney.d.ts +2 -0
- package/dist/src/experience/qr-form-journey/QrFormJourney.stories.d.ts +7 -0
- package/dist/src/experience/qr-form-journey/index.d.ts +1 -0
- package/dist/src/hooks/useFederatedSearchMock.d.ts +28 -0
- package/dist/src/index.d.ts +24 -0
- package/dist/src/types/buttons.d.ts +4 -0
- package/dist/src/types/cards.d.ts +47 -0
- package/dist/src/types/search.d.ts +128 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -12
- package/dist/index.css +0 -88
- package/dist/index.d.ts +0 -3
- package/dist/index.esm.css +0 -88
- /package/dist/{stories → src}/components/Button/Button.stories.d.ts +0 -0
- /package/dist/{stories → src}/components/Button/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/styles/index.d.ts +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Algolia Provider for Storybook ONLY
|
|
3
|
+
*
|
|
4
|
+
* This file provides real Algolia integration for Storybook stories.
|
|
5
|
+
* It will NOT be bundled into the production build.
|
|
6
|
+
*
|
|
7
|
+
* Usage: Only import this in .stories.tsx files, never in component files.
|
|
8
|
+
*/
|
|
9
|
+
import type { ProductResult, ContentResult, SearchView, SearchTab, Facet } from "../src/types/search";
|
|
10
|
+
/**
|
|
11
|
+
* Hook to use real Algolia search in Storybook
|
|
12
|
+
*
|
|
13
|
+
* This hook provides the same interface as useFederatedSearchMock
|
|
14
|
+
* but uses real Algolia API calls.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useAlgoliaSearchStorybook: () => {
|
|
17
|
+
isOpen: boolean;
|
|
18
|
+
onOpen: () => void;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
query: string;
|
|
21
|
+
onQueryChange: (value: string) => void;
|
|
22
|
+
onSearchSubmit: () => void;
|
|
23
|
+
products: ProductResult[];
|
|
24
|
+
contents: ContentResult[];
|
|
25
|
+
isLoadingProducts: boolean;
|
|
26
|
+
isLoadingContents: boolean;
|
|
27
|
+
productsError: string | undefined;
|
|
28
|
+
contentsError: string | undefined;
|
|
29
|
+
onSeeAllProducts: () => void;
|
|
30
|
+
onSeeAllContents: () => void;
|
|
31
|
+
onSeeAllCombined: () => void;
|
|
32
|
+
activeView: SearchView;
|
|
33
|
+
onChangeView: (view: SearchView) => void;
|
|
34
|
+
activeTab: SearchTab;
|
|
35
|
+
onTabChange: (tab: SearchTab) => void;
|
|
36
|
+
currentPage: number;
|
|
37
|
+
totalPages: number;
|
|
38
|
+
onPageChange: (page: number) => void;
|
|
39
|
+
facets: Facet[];
|
|
40
|
+
onFacetToggle: (attribute: string, value: string) => void;
|
|
41
|
+
isAlgoliaConfigured: string;
|
|
42
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|