@envive-ai/react-toolkit 0.1.4 → 0.1.6
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/Accordion/index.cjs +84 -0
- package/dist/Accordion/index.d.cts +13 -0
- package/dist/Accordion/index.d.ts +13 -0
- package/dist/Accordion/index.js +77 -0
- package/dist/ButtonBase/index.cjs +7 -0
- package/dist/ButtonBase/index.d.cts +43 -0
- package/dist/ButtonBase/index.d.ts +43 -0
- package/dist/ButtonBase/index.js +6 -0
- package/dist/{ButtonBase-C1rsL9gO.js → ButtonBase-BIAu5fIG.js} +5 -5
- package/dist/ButtonBase-BRfuPPzN.js +1 -0
- package/dist/ButtonBase-BleAVeo-.cjs +0 -0
- package/dist/{ButtonBase-a8uj6c2f.cjs → ButtonBase-DcyxOe2v.cjs} +11 -5
- package/dist/{AppliedFiltersScrollbar-BlcyhZkZ.cjs → DynamicFiltersScrollbar-BTopFhyl.cjs} +34 -2
- package/dist/{AppliedFiltersScrollbar-DFGzRemu.js → DynamicFiltersScrollbar-BmPTqym5.js} +29 -3
- package/dist/FilterScrollbar/index.cjs +6 -0
- package/dist/FilterScrollbar/index.d.cts +47 -0
- package/dist/FilterScrollbar/index.d.ts +47 -0
- package/dist/FilterScrollbar/index.js +5 -0
- package/dist/Headline/index.cjs +4 -0
- package/dist/{common/Headline/Headline.d.cts → Headline/index.d.cts} +3 -3
- package/dist/{common/Headline/Headline.d.ts → Headline/index.d.ts} +3 -3
- package/dist/Headline/index.js +4 -0
- package/dist/{Headline-8on6ZB9e.js → Headline-XpaAeTSR.js} +2 -2
- package/dist/{Headline-CcWn0w-a.cjs → Headline-iP_MckEO.cjs} +2 -2
- package/dist/ImageWithFallback/index.cjs +3 -0
- package/dist/{common/ImageWithFallback/ImageWithFallback.d.ts → ImageWithFallback/index.d.cts} +3 -3
- package/dist/{common/ImageWithFallback/ImageWithFallback.d.cts → ImageWithFallback/index.d.ts} +2 -2
- package/dist/ImageWithFallback/index.js +3 -0
- package/dist/{ImageWithFallback-ioeMFrTf.cjs → ImageWithFallback-1LqhQK1q.cjs} +3 -3
- package/dist/{ImageWithFallback-gN5HDS9L.js → ImageWithFallback-Ckwsmd8P.js} +2 -2
- package/dist/ProductCard/index.cjs +17 -0
- package/dist/ProductCard/index.d.cts +3 -0
- package/dist/ProductCard/index.d.ts +3 -0
- package/dist/ProductCard/index.js +8 -0
- package/dist/{ProductCard-C7WUShhN.cjs → ProductCard-DZZKutY-.cjs} +138 -12
- package/dist/{ProductCard-B5wnOeR9.js → ProductCard-SF8-lXlT.js} +92 -9
- package/dist/ProductGrid/index.cjs +10 -0
- package/dist/ProductGrid/index.d.cts +36 -0
- package/dist/ProductGrid/index.d.ts +36 -0
- package/dist/ProductGrid/index.js +9 -0
- package/dist/{ProductGrid-DZgwGPSQ.cjs → ProductGrid-BSSmPr7K.cjs} +56 -30
- package/dist/{ProductGrid-wnSc9bXT.js → ProductGrid-DTUhH219.js} +50 -30
- package/dist/SearchAutocomplete/index.cjs +3 -0
- package/dist/{search/SearchInputAutocomplete/SearchAutocomplete.d.cts → SearchAutocomplete/index.d.cts} +1 -1
- package/dist/{search/SearchInputAutocomplete/SearchAutocomplete.d.ts → SearchAutocomplete/index.d.ts} +1 -1
- package/dist/SearchAutocomplete/index.js +3 -0
- package/dist/{SearchAutocomplete-B8mO03Rr.js → SearchAutocomplete-BPjlo6qq.js} +4 -4
- package/dist/{SearchAutocomplete-BrF2SMoZ.cjs → SearchAutocomplete-BzaEXmRQ.cjs} +8 -8
- package/dist/SearchFilter/index.cjs +8 -0
- package/dist/SearchFilter/index.d.cts +2 -0
- package/dist/SearchFilter/index.d.ts +2 -0
- package/dist/SearchFilter/index.js +6 -0
- package/dist/SearchFilter-B15tybnV.cjs +134 -0
- package/dist/SearchFilter-D427M2UE.js +114 -0
- package/dist/SearchInput/index.cjs +7 -0
- package/dist/SearchInput/index.d.cts +33 -0
- package/dist/SearchInput/index.d.ts +33 -0
- package/dist/SearchInput/index.js +6 -0
- package/dist/{SearchInput-CzVUsUSb.js → SearchInput-C0wB4hSV.js} +8 -8
- package/dist/{SearchInput-mLPisqFO.cjs → SearchInput-D6UW79wT.cjs} +12 -12
- package/dist/{search/SearchInputForm/SearchInputForm.cjs → SearchInputForm/index.cjs} +9 -8
- package/dist/SearchInputForm/index.d.cts +2 -0
- package/dist/SearchInputForm/index.d.ts +2 -0
- package/dist/{search/SearchInputForm/SearchInputForm.js → SearchInputForm/index.js} +8 -7
- package/dist/{search/SearchResultsFilterSidebar/SearchResultsFilter.cjs → SearchResultsFilterSidebar/index.cjs} +15 -12
- package/dist/SearchResultsFilterSidebar/index.d.cts +3 -0
- package/dist/SearchResultsFilterSidebar/index.d.ts +3 -0
- package/dist/{search/SearchResultsFilterSidebar/SearchResultsFilter.js → SearchResultsFilterSidebar/index.js} +11 -10
- package/dist/SearchResultsStates/index.cjs +126 -0
- package/dist/SearchResultsStates/index.d.cts +73 -0
- package/dist/SearchResultsStates/index.d.ts +73 -0
- package/dist/SearchResultsStates/index.js +118 -0
- package/dist/SparkleAnimation/index.cjs +4 -0
- package/dist/SparkleAnimation/index.d.cts +23 -0
- package/dist/SparkleAnimation/index.d.ts +23 -0
- package/dist/SparkleAnimation/index.js +3 -0
- package/dist/{SparkleAnimation-Qs17S1rn.js → SparkleAnimation-BdOjC8l-.js} +5 -5
- package/dist/{SparkleAnimation-Ba5G4MIQ.cjs → SparkleAnimation-BhyeL26m.cjs} +12 -6
- package/dist/Spinner/index.cjs +3 -0
- package/dist/Spinner/index.d.cts +11 -0
- package/dist/Spinner/index.d.ts +11 -0
- package/dist/Spinner/index.js +3 -0
- package/dist/{Spinner-BZ-kTOpm.js → Spinner-BgGihEfJ.js} +1 -1
- package/dist/{Spinner-CfQ85Ajl.cjs → Spinner-DzdIkS6t.cjs} +1 -1
- package/dist/{common/SuggestionButton/SuggestionButton.cjs → SuggestionButton/index.cjs} +5 -5
- package/dist/{common/SuggestionButton/SuggestionButton.d.cts → SuggestionButton/index.d.cts} +6 -6
- package/dist/{common/SuggestionButton/SuggestionButton.d.ts → SuggestionButton/index.d.ts} +6 -6
- package/dist/{common/SuggestionButton/SuggestionButton.js → SuggestionButton/index.js} +4 -4
- package/dist/Text/index.cjs +10 -0
- package/dist/Text/index.d.cts +42 -0
- package/dist/Text/index.d.ts +42 -0
- package/dist/Text/index.js +5 -0
- package/dist/{Text-Bdv7F5-u.js → Text-BMg3d10t.js} +2 -2
- package/dist/Text-CV9pv8ds.js +10 -0
- package/dist/{Text-C04c4Z93.cjs → Text-CgOYTs8D.cjs} +2 -2
- package/dist/Text-DDT3sqY1.cjs +16 -0
- package/dist/TextInput/index.cjs +4 -0
- package/dist/TextInput/index.d.cts +12 -0
- package/dist/TextInput/index.d.ts +12 -0
- package/dist/TextInput/index.js +4 -0
- package/dist/{TextInput-BO80ixsV.cjs → TextInput-C6fF9cSB.cjs} +4 -4
- package/dist/{TextInput-CEGWfdPC.js → TextInput-CRMqBW3X.js} +3 -3
- package/dist/{colorsConfig-BKBZfFq1.js → colorsConfig-BQlaCfxi.js} +1 -1
- package/dist/{colorsConfig-vunsVTFC.cjs → colorsConfig-DCvy_dV4.cjs} +1 -1
- package/dist/index-B0oln9VD.d.ts +58 -0
- package/dist/index-B125udRj.d.cts +78 -0
- package/dist/{search/SearchInputForm/SearchInputForm.d.cts → index-BHNzU-Pc.d.ts} +10 -6
- package/dist/{search/SearchInputForm/SearchInputForm.d.ts → index-BNCrvswP.d.cts} +10 -6
- package/dist/index-CQlBDGTL.d.cts +58 -0
- package/dist/index-CcnuEYQN.d.ts +379 -0
- package/dist/index-DMXTg_9L.d.ts +78 -0
- package/dist/index-wYn2mEDm.d.cts +379 -0
- package/dist/{searchFilterSidebarVariants-eoyfoWA8.js → searchFilterSidebarVariants-BWQyiKwS.js} +2 -2
- package/dist/{searchFilterSidebarVariants-L1rn5Ift.cjs → searchFilterSidebarVariants-D08jyA7U.cjs} +2 -2
- package/dist/{textVariantClasses-Bhf4VY5z.cjs → textVariantClasses-BnV4wXaw.cjs} +1 -1
- package/dist/textVariantClasses-C8OCWZAw.d.ts +174 -0
- package/dist/textVariantClasses-Cdg-UUHi.d.cts +174 -0
- package/dist/{textVariantClasses-5t3OricK.js → textVariantClasses-CnjwO2Fv.js} +1 -1
- package/dist/types-BQYpWDJ4.d.cts +6 -0
- package/dist/types-BruEHw-X.d.ts +6 -0
- package/package.json +62 -84
- package/src/components/Accordion/Accordion.tsx +90 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +70 -0
- package/src/components/ButtonBase/index.ts +2 -0
- package/src/components/{common/ButtonBase → ButtonBase}/types.ts +1 -1
- package/src/components/{search/FilterScrollbar → DynamicFiltersScrollbar}/DynamicFiltersScrollbar.tsx +1 -1
- package/src/components/{search/FilterScrollbar → FilterScrollbar}/AppliedFiltersScrollbar.tsx +1 -1
- package/src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx +52 -0
- package/src/components/FilterScrollbar/index.ts +2 -0
- package/src/components/Headline/index.ts +1 -0
- package/src/components/ImageWithFallback/index.ts +1 -0
- package/src/components/{common/ProductCard → ProductCard}/ProductCard.tsx +34 -17
- package/src/components/ProductCard/index.ts +4 -0
- package/src/components/{common/ProductCard → ProductCard}/types.ts +1 -1
- package/src/components/ProductGrid/ProductGrid.tsx +73 -0
- package/src/components/ProductGrid/index.ts +2 -0
- package/src/components/{search/SearchInputAutocomplete → SearchAutocomplete}/SearchAutocomplete.tsx +1 -1
- package/src/components/SearchAutocomplete/index.ts +1 -0
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilter.tsx +2 -2
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilterHeader.tsx +1 -1
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilterItem.tsx +1 -1
- package/src/components/SearchFilter/index.ts +4 -0
- package/src/components/{search/SearchInput → SearchInput}/SearchInput.tsx +6 -6
- package/src/components/SearchInput/index.ts +2 -0
- package/src/components/{search/SearchInput → SearchInput}/searchInputVariants.ts +5 -5
- package/src/components/{search/SearchInputForm → SearchInputForm}/SearchInputForm.tsx +6 -4
- package/src/components/SearchInputForm/index.ts +2 -0
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +87 -0
- package/src/components/SearchResultsContent/utils.ts +28 -0
- package/src/components/{search/SearchResultsFilterSidebar → SearchResultsFilterSidebar}/SearchResultsFilter.tsx +5 -6
- package/src/components/SearchResultsFilterSidebar/index.ts +3 -0
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +58 -0
- package/src/components/SearchResultsFilterSidebar/types.ts +15 -0
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/NoSearchResultsFound.tsx +2 -2
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/SearchResultsGrid.tsx +14 -12
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/SearchResultsLoadingGrid.tsx +4 -5
- package/src/components/SearchResultsStates/index.ts +3 -0
- package/src/components/SparkleAnimation/index.ts +2 -0
- package/src/components/Spinner/index.ts +1 -0
- package/src/components/SuggestionButton/index.ts +2 -0
- package/src/components/Text/index.ts +3 -0
- package/src/components/TextInput/index.ts +1 -0
- package/dist/DynamicFiltersScrollbar-B2Rr1KnJ.cjs +0 -41
- package/dist/DynamicFiltersScrollbar-Dys6geP0.js +0 -32
- package/dist/ProductCardSkeleton-BPfp6IOp.js +0 -38
- package/dist/ProductCardSkeleton-BgvDlaty.cjs +0 -46
- package/dist/SearchFilter-D-2IdBKS.js +0 -62
- package/dist/SearchFilter-D0IzBlG5.cjs +0 -70
- package/dist/SearchFilterHeader-BQT0-ssS.js +0 -37
- package/dist/SearchFilterHeader-C3EklfoO.cjs +0 -45
- package/dist/SearchFilterItem-BodtWLoP.js +0 -26
- package/dist/SearchFilterItem-DmMkiqNC.cjs +0 -34
- package/dist/common/ButtonBase/ButtonBase.cjs +0 -5
- package/dist/common/ButtonBase/ButtonBase.d.cts +0 -35
- package/dist/common/ButtonBase/ButtonBase.d.ts +0 -35
- package/dist/common/ButtonBase/ButtonBase.js +0 -5
- package/dist/common/Headline/Headline.cjs +0 -4
- package/dist/common/Headline/Headline.js +0 -4
- package/dist/common/ImageWithFallback/ImageWithFallback.cjs +0 -3
- package/dist/common/ImageWithFallback/ImageWithFallback.js +0 -3
- package/dist/common/ProductCard/ProductCard.cjs +0 -11
- package/dist/common/ProductCard/ProductCard.d.cts +0 -91
- package/dist/common/ProductCard/ProductCard.d.ts +0 -91
- package/dist/common/ProductCard/ProductCard.js +0 -9
- package/dist/common/ProductCard/ProductCardSkeleton.cjs +0 -4
- package/dist/common/ProductCard/ProductCardSkeleton.d.cts +0 -12
- package/dist/common/ProductCard/ProductCardSkeleton.d.ts +0 -12
- package/dist/common/ProductCard/ProductCardSkeleton.js +0 -4
- package/dist/common/ProductGrid/ProductGrid.cjs +0 -11
- package/dist/common/ProductGrid/ProductGrid.d.cts +0 -26
- package/dist/common/ProductGrid/ProductGrid.d.ts +0 -26
- package/dist/common/ProductGrid/ProductGrid.js +0 -11
- package/dist/common/SparkleAnimation/SparkleAnimation.cjs +0 -3
- package/dist/common/SparkleAnimation/SparkleAnimation.d.cts +0 -15
- package/dist/common/SparkleAnimation/SparkleAnimation.d.ts +0 -15
- package/dist/common/SparkleAnimation/SparkleAnimation.js +0 -3
- package/dist/common/Spinner/Spinner.cjs +0 -3
- package/dist/common/Spinner/Spinner.d.cts +0 -11
- package/dist/common/Spinner/Spinner.d.ts +0 -11
- package/dist/common/Spinner/Spinner.js +0 -3
- package/dist/common/Text/Text.cjs +0 -4
- package/dist/common/Text/Text.d.cts +0 -28
- package/dist/common/Text/Text.d.ts +0 -28
- package/dist/common/Text/Text.js +0 -4
- package/dist/common/TextInput/TextInput.cjs +0 -4
- package/dist/common/TextInput/TextInput.d.cts +0 -98
- package/dist/common/TextInput/TextInput.d.ts +0 -98
- package/dist/common/TextInput/TextInput.js +0 -4
- package/dist/productCardVariants-C_QIZ-KF.js +0 -45
- package/dist/productCardVariants-Dd-wrJKP.cjs +0 -69
- package/dist/productGridVariants-BNX4YlRK.js +0 -20
- package/dist/productGridVariants-CsNV0ACt.cjs +0 -26
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.cjs +0 -5
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.d.cts +0 -22
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +0 -22
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.js +0 -5
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.cjs +0 -5
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.d.cts +0 -28
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +0 -28
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.js +0 -5
- package/dist/search/SearchFilter/SearchFilter.cjs +0 -7
- package/dist/search/SearchFilter/SearchFilter.d.cts +0 -18
- package/dist/search/SearchFilter/SearchFilter.d.ts +0 -18
- package/dist/search/SearchFilter/SearchFilter.js +0 -7
- package/dist/search/SearchFilter/SearchFilterHeader.cjs +0 -5
- package/dist/search/SearchFilter/SearchFilterHeader.d.cts +0 -12
- package/dist/search/SearchFilter/SearchFilterHeader.d.ts +0 -12
- package/dist/search/SearchFilter/SearchFilterHeader.js +0 -5
- package/dist/search/SearchFilter/SearchFilterItem.cjs +0 -5
- package/dist/search/SearchFilter/SearchFilterItem.d.cts +0 -13
- package/dist/search/SearchFilter/SearchFilterItem.d.ts +0 -13
- package/dist/search/SearchFilter/SearchFilterItem.js +0 -5
- package/dist/search/SearchInput/SearchInput.cjs +0 -6
- package/dist/search/SearchInput/SearchInput.d.cts +0 -20
- package/dist/search/SearchInput/SearchInput.d.ts +0 -20
- package/dist/search/SearchInput/SearchInput.js +0 -6
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.cjs +0 -3
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.js +0 -3
- package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +0 -28
- package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +0 -28
- package/dist/search/SearchResultsStates/NoSearchResultsFound.cjs +0 -30
- package/dist/search/SearchResultsStates/NoSearchResultsFound.d.cts +0 -17
- package/dist/search/SearchResultsStates/NoSearchResultsFound.d.ts +0 -17
- package/dist/search/SearchResultsStates/NoSearchResultsFound.js +0 -26
- package/dist/search/SearchResultsStates/SearchResultsGrid.cjs +0 -66
- package/dist/search/SearchResultsStates/SearchResultsGrid.d.cts +0 -41
- package/dist/search/SearchResultsStates/SearchResultsGrid.d.ts +0 -41
- package/dist/search/SearchResultsStates/SearchResultsGrid.js +0 -62
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.cjs +0 -52
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.d.cts +0 -15
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +0 -15
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.js +0 -49
- package/dist/types-53zIialA.d.ts +0 -35
- package/dist/types-B4BGZSlV.d.cts +0 -4
- package/dist/types-BQNqA5xL.d.ts +0 -46
- package/dist/types-BRLWwGMI.d.ts +0 -4
- package/dist/types-CImLkcNh.d.cts +0 -46
- package/dist/types-Cph97xkm.d.ts +0 -6
- package/dist/types-CpiJO5UH.d.ts +0 -4
- package/dist/types-Dy4_w6Cf.d.cts +0 -4
- package/dist/types-TYhhwWZw.d.cts +0 -6
- package/dist/types-aa4flfRE.d.cts +0 -35
- package/src/components/common/ProductGrid/ProductGrid.tsx +0 -73
- package/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +0 -45
- package/src/components/search/SearchResultsFilterSidebar/types.ts +0 -2
- package/src/components/search/types.ts +0 -5
- package/src/types/external.ts +0 -24
- /package/dist/{types-DFetqNL2.d.ts → types-Bm-qQyO3.d.ts} +0 -0
- /package/dist/{types-DaSkJnT_.d.cts → types-C-Jrlw5Z.d.cts} +0 -0
- /package/src/components/{common/ButtonBase → ButtonBase}/ButtonBase.tsx +0 -0
- /package/src/components/{common/Headline → Headline}/Headline.tsx +0 -0
- /package/src/components/{common/ImageWithFallback → ImageWithFallback}/ImageWithFallback.tsx +0 -0
- /package/src/components/{common/ProductCard → ProductCard}/ProductCardSkeleton.tsx +0 -0
- /package/src/components/{common/ProductCard → ProductCard}/productCardVariants.ts +0 -0
- /package/src/components/{common/ProductGrid → ProductGrid}/productGridVariants.ts +0 -0
- /package/src/components/{search/SearchFilter → SearchFilter}/types.ts +0 -0
- /package/src/components/{search/SearchInputForm → SearchInputForm}/types.ts +0 -0
- /package/src/components/{common/SparkleAnimation → SparkleAnimation}/SparkleAnimation.tsx +0 -0
- /package/src/components/{common/SparkleAnimation → SparkleAnimation}/types.ts +0 -0
- /package/src/components/{common/Spinner → Spinner}/Spinner.tsx +0 -0
- /package/src/components/{common/SuggestionButton → SuggestionButton}/SuggestionButton.tsx +0 -0
- /package/src/components/{common/SuggestionButton → SuggestionButton}/types.ts +0 -0
- /package/src/components/{common/Text → Text}/Text.tsx +0 -0
- /package/src/components/{common/Text → Text}/textVariantClasses.ts +0 -0
- /package/src/components/{common/Text → Text}/types.ts +0 -0
- /package/src/components/{common/TextInput → TextInput}/TextInput.tsx +0 -0
- /package/src/{components/models → models}/colorsConfig.ts +0 -0
- /package/src/{components/test → test}/types.ts +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
+
let framer_motion = require("framer-motion");
|
|
3
|
+
framer_motion = require_chunk.__toESM(framer_motion);
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_chunk.__toESM(react);
|
|
6
|
+
let classnames = require("classnames");
|
|
7
|
+
classnames = require_chunk.__toESM(classnames);
|
|
8
|
+
let __envive_ai_react_toolkit_Text = require("@envive-ai/react-toolkit/Text");
|
|
9
|
+
__envive_ai_react_toolkit_Text = require_chunk.__toESM(__envive_ai_react_toolkit_Text);
|
|
10
|
+
let __envive_ai_react_icons_ChevronDown = require("@envive-ai/react-icons/ChevronDown");
|
|
11
|
+
__envive_ai_react_icons_ChevronDown = require_chunk.__toESM(__envive_ai_react_icons_ChevronDown);
|
|
12
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
14
|
+
|
|
15
|
+
//#region src/components/Accordion/Accordion.tsx
|
|
16
|
+
const ANIMATION_DURATION = .3;
|
|
17
|
+
const Accordion = ({ title, content }) => {
|
|
18
|
+
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
19
|
+
const contentRef = (0, react.useRef)(null);
|
|
20
|
+
const titleWrapperClasses = (0, classnames.default)({
|
|
21
|
+
"spiffy-tw-border-b": true,
|
|
22
|
+
"spiffy-tw-border-[--spiffy-colors-border-light]": true,
|
|
23
|
+
"spiffy-tw-pb-2": true,
|
|
24
|
+
"spiffy-tw-flex": true,
|
|
25
|
+
"spiffy-tw-justify-between": true,
|
|
26
|
+
"spiffy-tw-items-center": true,
|
|
27
|
+
"spiffy-tw-w-full": true,
|
|
28
|
+
"spiffy-tw-group": true
|
|
29
|
+
});
|
|
30
|
+
const titleClasses = (0, classnames.default)({
|
|
31
|
+
"spiffy-tw-uppercase": true,
|
|
32
|
+
"spiffy-tw-text-[--spiffy-colors-text-primary]": true,
|
|
33
|
+
"!spiffy-tw-font-[400]": true,
|
|
34
|
+
"group-aria-expanded:!spiffy-tw-font-medium": true
|
|
35
|
+
});
|
|
36
|
+
const contentClasses = (0, classnames.default)({ "spiffy-tw-overflow-hidden": true });
|
|
37
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
38
|
+
"aria-expanded": isOpen,
|
|
39
|
+
type: "button",
|
|
40
|
+
className: titleWrapperClasses,
|
|
41
|
+
onClick: () => setIsOpen(!isOpen),
|
|
42
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_Text.Text, {
|
|
43
|
+
variant: "body4",
|
|
44
|
+
className: titleClasses,
|
|
45
|
+
children: title
|
|
46
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
47
|
+
variants: {
|
|
48
|
+
open: { rotate: 180 },
|
|
49
|
+
closed: { rotate: 360 }
|
|
50
|
+
},
|
|
51
|
+
animate: isOpen ? "open" : "closed",
|
|
52
|
+
transition: {
|
|
53
|
+
duration: ANIMATION_DURATION,
|
|
54
|
+
ease: "easeOut"
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_ChevronDown.default, {})
|
|
57
|
+
})]
|
|
58
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
59
|
+
variants: {
|
|
60
|
+
open: {
|
|
61
|
+
height: "auto",
|
|
62
|
+
marginTop: "24px",
|
|
63
|
+
marginBottom: "24px"
|
|
64
|
+
},
|
|
65
|
+
closed: {
|
|
66
|
+
height: "0px",
|
|
67
|
+
marginTop: "0px",
|
|
68
|
+
marginBottom: "0px"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
className: contentClasses,
|
|
72
|
+
initial: { height: 0 },
|
|
73
|
+
animate: isOpen ? "open" : "closed",
|
|
74
|
+
transition: {
|
|
75
|
+
duration: ANIMATION_DURATION,
|
|
76
|
+
ease: "easeOut"
|
|
77
|
+
},
|
|
78
|
+
ref: contentRef,
|
|
79
|
+
children: content
|
|
80
|
+
})] });
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
exports.Accordion = Accordion;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Accordion/Accordion.d.ts
|
|
4
|
+
interface AccordionProps {
|
|
5
|
+
title: string;
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const Accordion: ({
|
|
9
|
+
title,
|
|
10
|
+
content
|
|
11
|
+
}: AccordionProps) => react_jsx_runtime0.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Accordion };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Accordion/Accordion.d.ts
|
|
4
|
+
interface AccordionProps {
|
|
5
|
+
title: string;
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const Accordion: ({
|
|
9
|
+
title,
|
|
10
|
+
content
|
|
11
|
+
}: AccordionProps) => react_jsx_runtime7.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Accordion };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { motion } from "framer-motion";
|
|
2
|
+
import { useRef, useState } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { Text } from "@envive-ai/react-toolkit/Text";
|
|
5
|
+
import ChevronDown from "@envive-ai/react-icons/ChevronDown";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/Accordion/Accordion.tsx
|
|
9
|
+
const ANIMATION_DURATION = .3;
|
|
10
|
+
const Accordion = ({ title, content }) => {
|
|
11
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
12
|
+
const contentRef = useRef(null);
|
|
13
|
+
const titleWrapperClasses = classNames({
|
|
14
|
+
"spiffy-tw-border-b": true,
|
|
15
|
+
"spiffy-tw-border-[--spiffy-colors-border-light]": true,
|
|
16
|
+
"spiffy-tw-pb-2": true,
|
|
17
|
+
"spiffy-tw-flex": true,
|
|
18
|
+
"spiffy-tw-justify-between": true,
|
|
19
|
+
"spiffy-tw-items-center": true,
|
|
20
|
+
"spiffy-tw-w-full": true,
|
|
21
|
+
"spiffy-tw-group": true
|
|
22
|
+
});
|
|
23
|
+
const titleClasses = classNames({
|
|
24
|
+
"spiffy-tw-uppercase": true,
|
|
25
|
+
"spiffy-tw-text-[--spiffy-colors-text-primary]": true,
|
|
26
|
+
"!spiffy-tw-font-[400]": true,
|
|
27
|
+
"group-aria-expanded:!spiffy-tw-font-medium": true
|
|
28
|
+
});
|
|
29
|
+
const contentClasses = classNames({ "spiffy-tw-overflow-hidden": true });
|
|
30
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("button", {
|
|
31
|
+
"aria-expanded": isOpen,
|
|
32
|
+
type: "button",
|
|
33
|
+
className: titleWrapperClasses,
|
|
34
|
+
onClick: () => setIsOpen(!isOpen),
|
|
35
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
36
|
+
variant: "body4",
|
|
37
|
+
className: titleClasses,
|
|
38
|
+
children: title
|
|
39
|
+
}), /* @__PURE__ */ jsx(motion.div, {
|
|
40
|
+
variants: {
|
|
41
|
+
open: { rotate: 180 },
|
|
42
|
+
closed: { rotate: 360 }
|
|
43
|
+
},
|
|
44
|
+
animate: isOpen ? "open" : "closed",
|
|
45
|
+
transition: {
|
|
46
|
+
duration: ANIMATION_DURATION,
|
|
47
|
+
ease: "easeOut"
|
|
48
|
+
},
|
|
49
|
+
children: /* @__PURE__ */ jsx(ChevronDown, {})
|
|
50
|
+
})]
|
|
51
|
+
}), /* @__PURE__ */ jsx(motion.div, {
|
|
52
|
+
variants: {
|
|
53
|
+
open: {
|
|
54
|
+
height: "auto",
|
|
55
|
+
marginTop: "24px",
|
|
56
|
+
marginBottom: "24px"
|
|
57
|
+
},
|
|
58
|
+
closed: {
|
|
59
|
+
height: "0px",
|
|
60
|
+
marginTop: "0px",
|
|
61
|
+
marginBottom: "0px"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
className: contentClasses,
|
|
65
|
+
initial: { height: 0 },
|
|
66
|
+
animate: isOpen ? "open" : "closed",
|
|
67
|
+
transition: {
|
|
68
|
+
duration: ANIMATION_DURATION,
|
|
69
|
+
ease: "easeOut"
|
|
70
|
+
},
|
|
71
|
+
ref: contentRef,
|
|
72
|
+
children: content
|
|
73
|
+
})] });
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
export { Accordion };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const require_ButtonBase = require('../ButtonBase-DcyxOe2v.cjs');
|
|
2
|
+
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
3
|
+
require('../Text-CgOYTs8D.cjs');
|
|
4
|
+
require('../ButtonBase-BleAVeo-.cjs');
|
|
5
|
+
|
|
6
|
+
exports.ButtonBase = require_ButtonBase.ButtonBase;
|
|
7
|
+
exports.ButtonBaseOverrides = require_ButtonBase.ButtonBaseOverrides;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { TestProps } from "../types-BQYpWDJ4.cjs";
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
|
+
import { ButtonHTMLAttributes, CSSProperties } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ButtonBase/types.d.ts
|
|
6
|
+
interface ButtonHoverStyles extends CSSProperties {
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
}
|
|
10
|
+
interface ButtonBaseProps extends TestProps {
|
|
11
|
+
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
dataAttributes?: Record<string, string>;
|
|
14
|
+
buttonClass?: string;
|
|
15
|
+
text: string;
|
|
16
|
+
textClass?: string;
|
|
17
|
+
icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
18
|
+
iconClass?: string;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
disablePadding?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare enum ButtonBaseOverrides {
|
|
23
|
+
BUTTON = "spiffy-button-base-button",
|
|
24
|
+
BUTTON_TEXT = "spiffy-button-base-button-text",
|
|
25
|
+
BUTTON_ICON = "spiffy-button-base-button-icon",
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/ButtonBase/ButtonBase.d.ts
|
|
29
|
+
declare const ButtonBase: ({
|
|
30
|
+
type,
|
|
31
|
+
isDisabled,
|
|
32
|
+
dataAttributes,
|
|
33
|
+
buttonClass,
|
|
34
|
+
text,
|
|
35
|
+
textClass,
|
|
36
|
+
icon,
|
|
37
|
+
iconClass,
|
|
38
|
+
dataTestId,
|
|
39
|
+
onClick,
|
|
40
|
+
disablePadding
|
|
41
|
+
}: ButtonBaseProps) => react_jsx_runtime12.JSX.Element;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { TestProps } from "../types-BruEHw-X.js";
|
|
2
|
+
import { ButtonHTMLAttributes, CSSProperties } from "react";
|
|
3
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ButtonBase/types.d.ts
|
|
6
|
+
interface ButtonHoverStyles extends CSSProperties {
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
}
|
|
10
|
+
interface ButtonBaseProps extends TestProps {
|
|
11
|
+
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
dataAttributes?: Record<string, string>;
|
|
14
|
+
buttonClass?: string;
|
|
15
|
+
text: string;
|
|
16
|
+
textClass?: string;
|
|
17
|
+
icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
18
|
+
iconClass?: string;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
disablePadding?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare enum ButtonBaseOverrides {
|
|
23
|
+
BUTTON = "spiffy-button-base-button",
|
|
24
|
+
BUTTON_TEXT = "spiffy-button-base-button-text",
|
|
25
|
+
BUTTON_ICON = "spiffy-button-base-button-icon",
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/ButtonBase/ButtonBase.d.ts
|
|
29
|
+
declare const ButtonBase: ({
|
|
30
|
+
type,
|
|
31
|
+
isDisabled,
|
|
32
|
+
dataAttributes,
|
|
33
|
+
buttonClass,
|
|
34
|
+
text,
|
|
35
|
+
textClass,
|
|
36
|
+
icon,
|
|
37
|
+
iconClass,
|
|
38
|
+
dataTestId,
|
|
39
|
+
onClick,
|
|
40
|
+
disablePadding
|
|
41
|
+
}: ButtonBaseProps) => react_jsx_runtime5.JSX.Element;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Text } from "./Text-
|
|
2
|
-
import classNames from "classnames";
|
|
1
|
+
import { Text } from "./Text-BMg3d10t.js";
|
|
3
2
|
import { createElement, useEffect, useRef } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
|
-
//#region src/components/
|
|
6
|
+
//#region src/components/ButtonBase/types.ts
|
|
7
7
|
let ButtonBaseOverrides = /* @__PURE__ */ function(ButtonBaseOverrides$1) {
|
|
8
8
|
ButtonBaseOverrides$1["BUTTON"] = "spiffy-button-base-button";
|
|
9
9
|
ButtonBaseOverrides$1["BUTTON_TEXT"] = "spiffy-button-base-button-text";
|
|
@@ -12,7 +12,7 @@ let ButtonBaseOverrides = /* @__PURE__ */ function(ButtonBaseOverrides$1) {
|
|
|
12
12
|
}({});
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
|
-
//#region src/components/
|
|
15
|
+
//#region src/components/ButtonBase/ButtonBase.tsx
|
|
16
16
|
const ButtonBase = ({ type = "button", isDisabled = false, dataAttributes, buttonClass, text, textClass, icon, iconClass = "spiffy-tw-w-[21px] spiffy-tw-h-[21px]", dataTestId, onClick, disablePadding = false }) => {
|
|
17
17
|
const buttonRef = useRef(null);
|
|
18
18
|
const buttonClassName = classNames({
|
|
@@ -57,4 +57,4 @@ const ButtonBase = ({ type = "button", isDisabled = false, dataAttributes, butto
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
//#endregion
|
|
60
|
-
export { ButtonBase };
|
|
60
|
+
export { ButtonBase, ButtonBaseOverrides };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_Text = require('./Text-
|
|
3
|
-
let classnames = require("classnames");
|
|
4
|
-
classnames = require_chunk.__toESM(classnames);
|
|
2
|
+
const require_Text = require('./Text-CgOYTs8D.cjs');
|
|
5
3
|
let react = require("react");
|
|
6
4
|
react = require_chunk.__toESM(react);
|
|
5
|
+
let classnames = require("classnames");
|
|
6
|
+
classnames = require_chunk.__toESM(classnames);
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
9
9
|
|
|
10
|
-
//#region src/components/
|
|
10
|
+
//#region src/components/ButtonBase/types.ts
|
|
11
11
|
let ButtonBaseOverrides = /* @__PURE__ */ function(ButtonBaseOverrides$1) {
|
|
12
12
|
ButtonBaseOverrides$1["BUTTON"] = "spiffy-button-base-button";
|
|
13
13
|
ButtonBaseOverrides$1["BUTTON_TEXT"] = "spiffy-button-base-button-text";
|
|
@@ -16,7 +16,7 @@ let ButtonBaseOverrides = /* @__PURE__ */ function(ButtonBaseOverrides$1) {
|
|
|
16
16
|
}({});
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region src/components/
|
|
19
|
+
//#region src/components/ButtonBase/ButtonBase.tsx
|
|
20
20
|
const ButtonBase = ({ type = "button", isDisabled = false, dataAttributes, buttonClass, text, textClass, icon, iconClass = "spiffy-tw-w-[21px] spiffy-tw-h-[21px]", dataTestId, onClick, disablePadding = false }) => {
|
|
21
21
|
const buttonRef = (0, react.useRef)(null);
|
|
22
22
|
const buttonClassName = (0, classnames.default)({
|
|
@@ -66,4 +66,10 @@ Object.defineProperty(exports, 'ButtonBase', {
|
|
|
66
66
|
get: function () {
|
|
67
67
|
return ButtonBase;
|
|
68
68
|
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, 'ButtonBaseOverrides', {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return ButtonBaseOverrides;
|
|
74
|
+
}
|
|
69
75
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_Text = require('./Text-
|
|
2
|
+
const require_Text = require('./Text-CgOYTs8D.cjs');
|
|
3
3
|
let classnames = require("classnames");
|
|
4
4
|
classnames = require_chunk.__toESM(classnames);
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -7,7 +7,7 @@ react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
|
7
7
|
let react_indiana_drag_scroll = require("react-indiana-drag-scroll");
|
|
8
8
|
react_indiana_drag_scroll = require_chunk.__toESM(react_indiana_drag_scroll);
|
|
9
9
|
|
|
10
|
-
//#region src/components/
|
|
10
|
+
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx
|
|
11
11
|
const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses, onRemoveFilter }) => {
|
|
12
12
|
if (selectedFilterOptions.length === 0) return null;
|
|
13
13
|
const filterDefaultWithoutBg = filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim();
|
|
@@ -44,10 +44,42 @@ const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, f
|
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx
|
|
49
|
+
const DynamicFiltersScrollbar = ({ availableDynamicFilters, filterBarClassNames, filterDefaultClasses, filterHoverClasses, onToggleDynamicFilter }) => {
|
|
50
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_indiana_drag_scroll.default, {
|
|
51
|
+
className: filterBarClassNames,
|
|
52
|
+
hideScrollbars: true,
|
|
53
|
+
children: availableDynamicFilters.map(({ name, displayName }) => {
|
|
54
|
+
const buttonClasses = (0, classnames.default)("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses);
|
|
55
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
56
|
+
type: "button",
|
|
57
|
+
className: buttonClasses,
|
|
58
|
+
onClick: () => {
|
|
59
|
+
onToggleDynamicFilter({
|
|
60
|
+
filter: name,
|
|
61
|
+
dynamicFilterDisplayName: displayName
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
65
|
+
variant: "body3",
|
|
66
|
+
children: displayName
|
|
67
|
+
})
|
|
68
|
+
}, name);
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
47
73
|
//#endregion
|
|
48
74
|
Object.defineProperty(exports, 'AppliedFiltersScrollbar', {
|
|
49
75
|
enumerable: true,
|
|
50
76
|
get: function () {
|
|
51
77
|
return AppliedFiltersScrollbar;
|
|
52
78
|
}
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, 'DynamicFiltersScrollbar', {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () {
|
|
83
|
+
return DynamicFiltersScrollbar;
|
|
84
|
+
}
|
|
53
85
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Text } from "./Text-
|
|
1
|
+
import { Text } from "./Text-BMg3d10t.js";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import ScrollContainer from "react-indiana-drag-scroll";
|
|
5
5
|
|
|
6
|
-
//#region src/components/
|
|
6
|
+
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx
|
|
7
7
|
const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses, onRemoveFilter }) => {
|
|
8
8
|
if (selectedFilterOptions.length === 0) return null;
|
|
9
9
|
const filterDefaultWithoutBg = filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim();
|
|
@@ -41,4 +41,30 @@ const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, f
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
|
-
|
|
44
|
+
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx
|
|
45
|
+
const DynamicFiltersScrollbar = ({ availableDynamicFilters, filterBarClassNames, filterDefaultClasses, filterHoverClasses, onToggleDynamicFilter }) => {
|
|
46
|
+
return /* @__PURE__ */ jsx(ScrollContainer, {
|
|
47
|
+
className: filterBarClassNames,
|
|
48
|
+
hideScrollbars: true,
|
|
49
|
+
children: availableDynamicFilters.map(({ name, displayName }) => {
|
|
50
|
+
const buttonClasses = classNames("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses);
|
|
51
|
+
return /* @__PURE__ */ jsx("button", {
|
|
52
|
+
type: "button",
|
|
53
|
+
className: buttonClasses,
|
|
54
|
+
onClick: () => {
|
|
55
|
+
onToggleDynamicFilter({
|
|
56
|
+
filter: name,
|
|
57
|
+
dynamicFilterDisplayName: displayName
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
61
|
+
variant: "body3",
|
|
62
|
+
children: displayName
|
|
63
|
+
})
|
|
64
|
+
}, name);
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
2
|
+
require('../Text-CgOYTs8D.cjs');
|
|
3
|
+
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-BTopFhyl.cjs');
|
|
4
|
+
|
|
5
|
+
exports.AppliedFiltersScrollbar = require_DynamicFiltersScrollbar.AppliedFiltersScrollbar;
|
|
6
|
+
exports.DynamicFiltersScrollbar = require_DynamicFiltersScrollbar.DynamicFiltersScrollbar;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SelectedFilterOption } from "../types-C-Jrlw5Z.cjs";
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts
|
|
5
|
+
interface AppliedFiltersScrollbarProps {
|
|
6
|
+
selectedFilterOptions: SelectedFilterOption[];
|
|
7
|
+
filterBarClassNames: string;
|
|
8
|
+
filterDefaultClasses: string;
|
|
9
|
+
filterHoverClasses: string;
|
|
10
|
+
appliedFilterBackgroundClasses: string;
|
|
11
|
+
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const AppliedFiltersScrollbar: ({
|
|
14
|
+
selectedFilterOptions,
|
|
15
|
+
filterBarClassNames,
|
|
16
|
+
filterDefaultClasses,
|
|
17
|
+
filterHoverClasses,
|
|
18
|
+
appliedFilterBackgroundClasses,
|
|
19
|
+
onRemoveFilter
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime9.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts
|
|
23
|
+
interface DynamicFiltersScrollbarProps {
|
|
24
|
+
availableDynamicFilters: {
|
|
25
|
+
name: string;
|
|
26
|
+
displayName: string;
|
|
27
|
+
}[];
|
|
28
|
+
filterBarClassNames: string;
|
|
29
|
+
filterDefaultClasses: string;
|
|
30
|
+
filterHoverClasses: string;
|
|
31
|
+
onToggleDynamicFilter: ({
|
|
32
|
+
filter,
|
|
33
|
+
dynamicFilterDisplayName
|
|
34
|
+
}: {
|
|
35
|
+
filter: string;
|
|
36
|
+
dynamicFilterDisplayName: string;
|
|
37
|
+
}) => void;
|
|
38
|
+
}
|
|
39
|
+
declare const DynamicFiltersScrollbar: ({
|
|
40
|
+
availableDynamicFilters,
|
|
41
|
+
filterBarClassNames,
|
|
42
|
+
filterDefaultClasses,
|
|
43
|
+
filterHoverClasses,
|
|
44
|
+
onToggleDynamicFilter
|
|
45
|
+
}: DynamicFiltersScrollbarProps) => react_jsx_runtime9.JSX.Element;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SelectedFilterOption } from "../types-Bm-qQyO3.js";
|
|
2
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts
|
|
5
|
+
interface AppliedFiltersScrollbarProps {
|
|
6
|
+
selectedFilterOptions: SelectedFilterOption[];
|
|
7
|
+
filterBarClassNames: string;
|
|
8
|
+
filterDefaultClasses: string;
|
|
9
|
+
filterHoverClasses: string;
|
|
10
|
+
appliedFilterBackgroundClasses: string;
|
|
11
|
+
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const AppliedFiltersScrollbar: ({
|
|
14
|
+
selectedFilterOptions,
|
|
15
|
+
filterBarClassNames,
|
|
16
|
+
filterDefaultClasses,
|
|
17
|
+
filterHoverClasses,
|
|
18
|
+
appliedFilterBackgroundClasses,
|
|
19
|
+
onRemoveFilter
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime13.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts
|
|
23
|
+
interface DynamicFiltersScrollbarProps {
|
|
24
|
+
availableDynamicFilters: {
|
|
25
|
+
name: string;
|
|
26
|
+
displayName: string;
|
|
27
|
+
}[];
|
|
28
|
+
filterBarClassNames: string;
|
|
29
|
+
filterDefaultClasses: string;
|
|
30
|
+
filterHoverClasses: string;
|
|
31
|
+
onToggleDynamicFilter: ({
|
|
32
|
+
filter,
|
|
33
|
+
dynamicFilterDisplayName
|
|
34
|
+
}: {
|
|
35
|
+
filter: string;
|
|
36
|
+
dynamicFilterDisplayName: string;
|
|
37
|
+
}) => void;
|
|
38
|
+
}
|
|
39
|
+
declare const DynamicFiltersScrollbar: ({
|
|
40
|
+
availableDynamicFilters,
|
|
41
|
+
filterBarClassNames,
|
|
42
|
+
filterDefaultClasses,
|
|
43
|
+
filterHoverClasses,
|
|
44
|
+
onToggleDynamicFilter
|
|
45
|
+
}: DynamicFiltersScrollbarProps) => react_jsx_runtime13.JSX.Element;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
3
|
+
//#region src/components/Headline/Headline.d.ts
|
|
4
4
|
type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
5
5
|
type HeadlineProps = {
|
|
6
6
|
children: React.ReactNode;
|
|
@@ -16,6 +16,6 @@ declare const Headline: ({
|
|
|
16
16
|
style,
|
|
17
17
|
testId,
|
|
18
18
|
variant
|
|
19
|
-
}: HeadlineProps) =>
|
|
19
|
+
}: HeadlineProps) => react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { Headline, HeadlineProps, HeadlineVariant };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
3
|
+
//#region src/components/Headline/Headline.d.ts
|
|
4
4
|
type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
5
5
|
type HeadlineProps = {
|
|
6
6
|
children: React.ReactNode;
|
|
@@ -16,6 +16,6 @@ declare const Headline: ({
|
|
|
16
16
|
style,
|
|
17
17
|
testId,
|
|
18
18
|
variant
|
|
19
|
-
}: HeadlineProps) =>
|
|
19
|
+
}: HeadlineProps) => react_jsx_runtime1.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { Headline, HeadlineProps, HeadlineVariant };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HeadlineVariantMap } from "./textVariantClasses-
|
|
1
|
+
import { HeadlineVariantMap } from "./textVariantClasses-CnjwO2Fv.js";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
//#region src/components/
|
|
5
|
+
//#region src/components/Headline/Headline.tsx
|
|
6
6
|
const Headline = ({ children, className, style, testId, variant = "h1" }) => {
|
|
7
7
|
const variantClassNames = variant ? HeadlineVariantMap[variant] : {};
|
|
8
8
|
const textClassNames = classNames(className, variantClassNames, { "spiffy-tw-font-[Poppins,sans-serif]": true });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_textVariantClasses = require('./textVariantClasses-
|
|
2
|
+
const require_textVariantClasses = require('./textVariantClasses-BnV4wXaw.cjs');
|
|
3
3
|
let classnames = require("classnames");
|
|
4
4
|
classnames = require_chunk.__toESM(classnames);
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
7
7
|
|
|
8
|
-
//#region src/components/
|
|
8
|
+
//#region src/components/Headline/Headline.tsx
|
|
9
9
|
const Headline = ({ children, className, style, testId, variant = "h1" }) => {
|
|
10
10
|
const variantClassNames = variant ? require_textVariantClasses.HeadlineVariantMap[variant] : {};
|
|
11
11
|
const textClassNames = (0, classnames.default)(className, variantClassNames, { "spiffy-tw-font-[Poppins,sans-serif]": true });
|