@envive-ai/react-widgets 0.1.2 → 0.1.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/SearchResults/SearchResults.cjs +86 -0
- package/dist/SearchResults/SearchResults.js +84 -0
- package/dist/SearchResults/SearchResultsWidget.cjs +34 -0
- package/dist/SearchResults/SearchResultsWidget.js +33 -0
- package/dist/SearchResults/index.cjs +2 -122
- package/dist/SearchResults/index.d.cts +2 -0
- package/dist/SearchResults/index.d.ts +2 -0
- package/dist/SearchResults/index.js +1 -119
- package/dist/SearchResults/withSearchResults.cjs +18 -0
- package/dist/SearchResults/withSearchResults.js +17 -0
- package/dist/SearchZeroState/SearchIcon.cjs +48 -0
- package/dist/SearchZeroState/SearchIcon.js +45 -0
- package/dist/SearchZeroState/SearchOverlay.cjs +42 -0
- package/dist/SearchZeroState/SearchOverlay.js +39 -0
- package/dist/SearchZeroState/SearchZeroState.cjs +173 -0
- package/dist/SearchZeroState/SearchZeroState.d.cts +7 -0
- package/dist/SearchZeroState/SearchZeroState.d.ts +7 -0
- package/dist/SearchZeroState/SearchZeroState.js +171 -0
- package/dist/SearchZeroState/SearchZeroStateWidget.cjs +23 -0
- package/dist/SearchZeroState/SearchZeroStateWidget.d.cts +15 -0
- package/dist/SearchZeroState/SearchZeroStateWidget.d.ts +15 -0
- package/dist/SearchZeroState/SearchZeroStateWidget.js +22 -0
- package/dist/SearchZeroState/components/RecommendedProducts.cjs +74 -0
- package/dist/SearchZeroState/components/RecommendedProducts.js +72 -0
- package/dist/SearchZeroState/index.cjs +4 -3070
- package/dist/SearchZeroState/index.d.cts +4 -0
- package/dist/SearchZeroState/index.d.ts +4 -0
- package/dist/SearchZeroState/index.js +2 -3065
- package/dist/SearchZeroState/overlay/overlayHostLocator.cjs +21 -0
- package/dist/SearchZeroState/overlay/overlayHostLocator.js +20 -0
- package/dist/SearchZeroState/types.d.cts +10 -0
- package/dist/SearchZeroState/types.d.ts +10 -0
- package/dist/SearchZeroState/zeroStateSearchVariants.cjs +21 -0
- package/dist/SearchZeroState/zeroStateSearchVariants.js +20 -0
- package/dist/SuggestionBar/SuggestionBar.cjs +74 -0
- package/dist/SuggestionBar/{index-DZU9kbWS.d.cts → SuggestionBar.d.cts} +4 -9
- package/dist/SuggestionBar/{index-DyXd4-b7.d.ts → SuggestionBar.d.ts} +6 -11
- package/dist/{SuggestionBar-BHAXhgcd.js → SuggestionBar/SuggestionBar.js} +7 -59
- package/dist/SuggestionBar/index.cjs +3 -3
- package/dist/SuggestionBar/index.d.cts +3 -0
- package/dist/SuggestionBar/index.d.ts +3 -0
- package/dist/SuggestionBar/index.js +2 -2
- package/dist/SuggestionBar/types.cjs +10 -0
- package/dist/SuggestionBar/types.d.cts +7 -0
- package/dist/SuggestionBar/types.d.ts +7 -0
- package/dist/SuggestionBar/types.js +9 -0
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.cjs +76 -0
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.cts +6 -0
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.ts +6 -0
- package/dist/{SuggestionButtonContainer-s2e9YGW_.js → SuggestionButtonContainer/SuggestionButtonContainer.js} +6 -98
- package/dist/SuggestionButtonContainer/index.cjs +1 -1
- package/dist/SuggestionButtonContainer/index.d.cts +3 -0
- package/dist/SuggestionButtonContainer/index.d.ts +3 -0
- package/dist/SuggestionButtonContainer/index.js +1 -1
- package/dist/SuggestionButtonContainer/{index-B_X537jw.d.cts → types.d.cts} +1 -4
- package/dist/SuggestionButtonContainer/{index-vwelzDzM.d.ts → types.d.ts} +1 -4
- package/dist/{chunk-DSlc6foC.cjs → _virtual/rolldown_runtime.cjs} +2 -12
- package/dist/node_modules/react-icons/lib/iconBase.cjs +121 -0
- package/dist/node_modules/react-icons/lib/iconBase.js +119 -0
- package/dist/node_modules/react-icons/lib/iconContext.cjs +17 -0
- package/dist/node_modules/react-icons/lib/iconContext.js +14 -0
- package/dist/node_modules/react-icons/md/index.cjs +35 -0
- package/dist/node_modules/react-icons/md/index.js +35 -0
- package/dist/{SuggestionBar-CK5aU2bb.cjs → node_modules/react-indiana-drag-scroll/dist/index.cjs} +6 -132
- package/dist/node_modules/uuid/dist/native.js +6 -0
- package/dist/node_modules/uuid/dist/rng.js +13 -0
- package/dist/node_modules/uuid/dist/stringify.js +9 -0
- package/dist/node_modules/uuid/dist/v4.js +27 -0
- package/dist/node_modules/uuid/dist-node/native.cjs +8 -0
- package/dist/node_modules/uuid/dist-node/rng.cjs +16 -0
- package/dist/node_modules/uuid/dist-node/stringify.cjs +10 -0
- package/dist/node_modules/uuid/dist-node/v4.cjs +27 -0
- package/dist/packages/components/dist/components/Accordion/Accordion.cjs +80 -0
- package/dist/packages/components/dist/components/Accordion/Accordion.js +78 -0
- package/dist/packages/components/dist/components/Accordion/index.cjs +1 -0
- package/dist/packages/components/dist/components/Accordion/index.js +1 -0
- package/dist/packages/components/dist/components/AnimatedChevron/AnimatedChevron.cjs +30 -0
- package/dist/packages/components/dist/components/AnimatedChevron/AnimatedChevron.js +29 -0
- package/dist/packages/components/dist/components/ButtonBase/ButtonBase.cjs +56 -0
- package/dist/packages/components/dist/components/ButtonBase/ButtonBase.js +54 -0
- package/dist/packages/components/dist/components/ButtonBase/index.cjs +2 -0
- package/dist/packages/components/dist/components/ButtonBase/index.js +2 -0
- package/dist/packages/components/dist/components/ButtonBase/types.cjs +11 -0
- package/dist/packages/components/dist/components/ButtonBase/types.js +10 -0
- package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.cjs +45 -0
- package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.js +42 -0
- package/dist/packages/components/dist/components/FilterScrollbar/DynamicFiltersScrollbar.cjs +33 -0
- package/dist/packages/components/dist/components/FilterScrollbar/DynamicFiltersScrollbar.js +30 -0
- package/dist/packages/components/dist/components/ImageWithFallback/ImageWithFallback.cjs +45 -0
- package/dist/packages/components/dist/components/ImageWithFallback/ImageWithFallback.js +42 -0
- package/dist/packages/components/dist/components/ImageWithFallback/index.cjs +1 -0
- package/dist/packages/components/dist/components/ImageWithFallback/index.js +1 -0
- package/dist/packages/components/dist/components/ModalSheet/ModalSheet.cjs +30 -0
- package/dist/packages/components/dist/components/ModalSheet/ModalSheet.js +29 -0
- package/dist/packages/components/dist/components/ModalSheet/desktop/desktopHeader.cjs +26 -0
- package/dist/packages/components/dist/components/ModalSheet/desktop/desktopHeader.js +24 -0
- package/dist/packages/components/dist/components/ModalSheet/desktop/index.cjs +122 -0
- package/dist/packages/components/dist/components/ModalSheet/desktop/index.js +120 -0
- package/dist/packages/components/dist/components/ModalSheet/index.cjs +1 -0
- package/dist/packages/components/dist/components/ModalSheet/index.js +1 -0
- package/dist/packages/components/dist/components/ModalSheet/mobile/index.cjs +116 -0
- package/dist/packages/components/dist/components/ModalSheet/mobile/index.js +114 -0
- package/dist/packages/components/dist/components/ModalSheet/mobile/mobileHeader.cjs +38 -0
- package/dist/packages/components/dist/components/ModalSheet/mobile/mobileHeader.js +36 -0
- package/dist/packages/components/dist/components/ProductCard/ProductCard.cjs +153 -0
- package/dist/packages/components/dist/components/ProductCard/ProductCard.js +149 -0
- package/dist/packages/components/dist/components/ProductCard/ProductCardSkeleton.cjs +33 -0
- package/dist/packages/components/dist/components/ProductCard/ProductCardSkeleton.js +31 -0
- package/dist/packages/components/dist/components/ProductCard/index.cjs +4 -0
- package/dist/packages/components/dist/components/ProductCard/index.js +4 -0
- package/dist/packages/components/dist/components/ProductCard/productCardVariants.cjs +49 -0
- package/dist/packages/components/dist/components/ProductCard/productCardVariants.js +45 -0
- package/dist/packages/components/dist/components/ProductCard/types.cjs +10 -0
- package/dist/packages/components/dist/components/ProductCard/types.js +9 -0
- package/dist/packages/components/dist/components/ProductGrid/ProductGrid.cjs +43 -0
- package/dist/packages/components/dist/components/ProductGrid/ProductGrid.js +41 -0
- package/dist/packages/components/dist/components/ProductGrid/index.cjs +2 -0
- package/dist/packages/components/dist/components/ProductGrid/index.js +2 -0
- package/dist/packages/components/dist/components/ProductGrid/productGridVariants.cjs +21 -0
- package/dist/packages/components/dist/components/ProductGrid/productGridVariants.js +20 -0
- package/dist/packages/components/dist/components/RadioButton/RadioButton.cjs +74 -0
- package/dist/packages/components/dist/components/RadioButton/RadioButton.js +72 -0
- package/dist/packages/components/dist/components/RadioButton/index.cjs +1 -0
- package/dist/packages/components/dist/components/RadioButton/index.js +1 -0
- package/dist/packages/components/dist/components/RadioButtonGroup/RadioButtonGroup.cjs +42 -0
- package/dist/packages/components/dist/components/RadioButtonGroup/RadioButtonGroup.js +39 -0
- package/dist/packages/components/dist/components/RadioButtonGroup/index.cjs +1 -0
- package/dist/packages/components/dist/components/RadioButtonGroup/index.js +1 -0
- package/dist/packages/components/dist/components/RecommendedProducts/RecommendedProducts.cjs +53 -0
- package/dist/packages/components/dist/components/RecommendedProducts/RecommendedProducts.js +51 -0
- package/dist/packages/components/dist/components/RecommendedProducts/index.cjs +3 -0
- package/dist/packages/components/dist/components/RecommendedProducts/index.js +3 -0
- package/dist/packages/components/dist/components/SearchAutocomplete/SearchAutocomplete.cjs +72 -0
- package/dist/packages/components/dist/components/SearchAutocomplete/SearchAutocomplete.js +69 -0
- package/dist/packages/components/dist/components/SearchAutocomplete/index.cjs +1 -0
- package/dist/packages/components/dist/components/SearchAutocomplete/index.js +1 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilter.cjs +134 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilter.js +132 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterFooter.cjs +48 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterFooter.js +46 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterHeader.cjs +42 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterHeader.js +40 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterItem.cjs +6 -0
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterItem.js +4 -0
- package/dist/packages/components/dist/components/SearchFilter/index.cjs +5 -0
- package/dist/packages/components/dist/components/SearchFilter/index.js +5 -0
- package/dist/packages/components/dist/components/SearchFilter/useHasFilterStateChanged.cjs +27 -0
- package/dist/packages/components/dist/components/SearchFilter/useHasFilterStateChanged.js +26 -0
- package/dist/packages/components/dist/components/SearchFilter/utils.cjs +11 -0
- package/dist/packages/components/dist/components/SearchFilter/utils.js +9 -0
- package/dist/packages/components/dist/components/SearchInput/SearchInput.cjs +81 -0
- package/dist/packages/components/dist/components/SearchInput/SearchInput.js +78 -0
- package/dist/packages/components/dist/components/SearchInput/index.cjs +2 -0
- package/dist/packages/components/dist/components/SearchInput/index.js +2 -0
- package/dist/packages/components/dist/components/SearchInput/searchInputVariants.cjs +15 -0
- package/dist/packages/components/dist/components/SearchInput/searchInputVariants.js +15 -0
- package/dist/packages/components/dist/components/SearchInputForm/SearchInputForm.cjs +57 -0
- package/dist/packages/components/dist/components/SearchInputForm/SearchInputForm.js +55 -0
- package/dist/packages/components/dist/components/SearchInputForm/index.cjs +1 -0
- package/dist/packages/components/dist/components/SearchInputForm/index.js +1 -0
- package/dist/packages/components/dist/components/SearchResultsContent/SearchResultsContent.cjs +52 -0
- package/dist/packages/components/dist/components/SearchResultsContent/SearchResultsContent.js +50 -0
- package/dist/packages/components/dist/components/SearchResultsContent/index.cjs +1 -0
- package/dist/packages/components/dist/components/SearchResultsContent/index.js +1 -0
- package/dist/packages/components/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.cjs +24 -0
- package/dist/packages/components/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.js +23 -0
- package/dist/packages/components/dist/components/SearchResultsFilterButton/index.cjs +3 -0
- package/dist/packages/components/dist/components/SearchResultsFilterButton/index.js +3 -0
- package/dist/packages/components/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.cjs +36 -0
- package/dist/packages/components/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.js +35 -0
- package/dist/packages/components/dist/components/SearchResultsFilterModal/index.cjs +3 -0
- package/dist/packages/components/dist/components/SearchResultsFilterModal/index.js +3 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.cjs +9 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.js +9 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/index.cjs +2 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/index.js +2 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.cjs +34 -0
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.js +34 -0
- package/dist/packages/components/dist/components/SearchResultsStates/NoSearchResultsFound.cjs +56 -0
- package/dist/packages/components/dist/components/SearchResultsStates/NoSearchResultsFound.js +54 -0
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsGrid.cjs +53 -0
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsGrid.js +51 -0
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs +52 -0
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js +51 -0
- package/dist/packages/components/dist/components/SearchResultsStates/index.cjs +3 -0
- package/dist/packages/components/dist/components/SearchResultsStates/index.js +3 -0
- package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.cjs +60 -0
- package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.js +57 -0
- package/dist/packages/components/dist/components/SearchResultsToolbar/index.cjs +3 -0
- package/dist/packages/components/dist/components/SearchResultsToolbar/index.js +3 -0
- package/dist/packages/components/dist/components/SparkleAnimation/SparkleAnimation.cjs +77 -0
- package/dist/packages/components/dist/components/SparkleAnimation/SparkleAnimation.js +75 -0
- package/dist/packages/components/dist/components/SparkleAnimation/index.cjs +2 -0
- package/dist/packages/components/dist/components/SparkleAnimation/index.js +2 -0
- package/dist/packages/components/dist/components/SparkleAnimation/types.cjs +12 -0
- package/dist/packages/components/dist/components/SparkleAnimation/types.js +11 -0
- package/dist/packages/components/dist/components/Spinner/Spinner.cjs +40 -0
- package/dist/packages/components/dist/components/Spinner/Spinner.js +38 -0
- package/dist/packages/components/dist/components/Spinner/index.cjs +1 -0
- package/dist/packages/components/dist/components/Spinner/index.js +1 -0
- package/dist/packages/components/dist/components/SuggestionButton/SuggestionButton.cjs +193 -0
- package/dist/packages/components/dist/components/SuggestionButton/SuggestionButton.js +188 -0
- package/dist/packages/components/dist/components/SuggestionButton/index.cjs +1 -0
- package/dist/packages/components/dist/components/SuggestionButton/index.js +1 -0
- package/dist/packages/components/dist/components/TextInput/TextInput.cjs +34 -0
- package/dist/packages/components/dist/components/TextInput/TextInput.js +31 -0
- package/dist/packages/components/dist/components/TextInput/index.cjs +1 -0
- package/dist/packages/components/dist/components/TextInput/index.js +1 -0
- package/dist/packages/components/dist/components/ToggleButton/ToggleButton.cjs +63 -0
- package/dist/packages/components/dist/components/ToggleButton/ToggleButton.js +61 -0
- package/dist/packages/components/dist/components/ToggleButton/index.cjs +1 -0
- package/dist/packages/components/dist/components/ToggleButton/index.js +1 -0
- package/dist/packages/components/dist/components/Typography/Typography.cjs +53 -0
- package/dist/packages/components/dist/components/Typography/Typography.js +50 -0
- package/dist/packages/components/dist/components/Typography/index.cjs +2 -0
- package/dist/packages/components/dist/components/Typography/index.js +2 -0
- package/dist/packages/components/dist/components/Typography/typographyVariantClasses.cjs +99 -0
- package/dist/packages/components/dist/components/Typography/typographyVariantClasses.js +96 -0
- package/dist/packages/components/dist/components/Typography/util.cjs +10 -0
- package/dist/packages/components/dist/components/Typography/util.js +10 -0
- package/dist/packages/components/dist/logging/logger.cjs +20 -0
- package/dist/packages/components/dist/logging/logger.js +19 -0
- package/dist/packages/components/dist/models/colorsConfig.cjs +28 -0
- package/dist/packages/components/dist/models/colorsConfig.js +26 -0
- package/dist/packages/components/dist/util/formatPrice.cjs +14 -0
- package/dist/packages/components/dist/util/formatPrice.js +13 -0
- package/dist/packages/components/dist/util/index.cjs +3 -0
- package/dist/packages/components/dist/util/index.js +3 -0
- package/dist/packages/components/dist/util/useScrollDirection.cjs +39 -0
- package/dist/packages/components/dist/util/useScrollDirection.js +38 -0
- package/dist/packages/components/dist/util/useStickyVisibility.cjs +38 -0
- package/dist/packages/components/dist/util/useStickyVisibility.js +37 -0
- package/dist/packages/icons/dist/AiSearchBold.cjs +38 -0
- package/dist/packages/icons/dist/AiSearchBold.js +38 -0
- package/dist/packages/icons/dist/AiSearchThin.cjs +35 -0
- package/dist/packages/icons/dist/AiSearchThin.js +35 -0
- package/dist/packages/icons/dist/ChevronDown.cjs +23 -0
- package/dist/packages/icons/dist/ChevronDown.js +23 -0
- package/dist/packages/icons/dist/FourPointStar.cjs +22 -0
- package/dist/packages/icons/dist/FourPointStar.js +22 -0
- package/dist/packages/icons/dist/IconClose.cjs +26 -0
- package/dist/packages/icons/dist/IconClose.js +26 -0
- package/dist/packages/icons/dist/IconCloseVariant.cjs +22 -0
- package/dist/packages/icons/dist/IconCloseVariant.js +22 -0
- package/dist/packages/icons/dist/MagnifyingGlassStarVariant.cjs +39 -0
- package/dist/packages/icons/dist/MagnifyingGlassStarVariant.js +39 -0
- package/dist/packages/icons/dist/OutlinedStar.cjs +22 -0
- package/dist/packages/icons/dist/OutlinedStar.js +22 -0
- package/dist/packages/icons/dist/SettingsVariant.cjs +72 -0
- package/dist/packages/icons/dist/SettingsVariant.js +72 -0
- package/dist/packages/icons/dist/Sparkles.cjs +43 -0
- package/dist/packages/icons/dist/Sparkles.js +43 -0
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.js +27 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +696 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.js +696 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs +43 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +43 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.cjs +1528 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.js +1528 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.cjs +329 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.js +329 -0
- package/dist/packages/icons/dist/node_modules/react/index.cjs +13 -0
- package/dist/packages/icons/dist/node_modules/react/index.js +13 -0
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.cjs +13 -0
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.js +13 -0
- package/dist/util/useHorizontalScrollAnimation.cjs +88 -0
- package/dist/util/useHorizontalScrollAnimation.js +87 -0
- package/dist/util/useReducedMotionWithOverride.cjs +15 -0
- package/dist/util/useReducedMotionWithOverride.js +14 -0
- package/package.json +3 -5
- package/src/SearchZeroState/SearchZeroState.tsx +1 -1
- package/src/SuggestionBar/SuggestionBar.tsx +2 -2
- package/dist/SearchZeroState/index-DSFtalZR.d.ts +0 -27
- package/dist/SearchZeroState/index-bEcxYOSF.d.cts +0 -27
- package/dist/SuggestionButtonContainer-Dm38gJiJ.cjs +0 -173
- /package/dist/SearchResults/{index-DCTxvwmv.d.cts → SearchResultsWidget.d.cts} +0 -0
- /package/dist/SearchResults/{index-CYPV3XE0.d.ts → SearchResultsWidget.d.ts} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_ProductGrid = require('../ProductGrid/ProductGrid.cjs');
|
|
3
|
+
require('../ProductGrid/index.cjs');
|
|
4
|
+
const require_AppliedFiltersScrollbar = require('../FilterScrollbar/AppliedFiltersScrollbar.cjs');
|
|
5
|
+
const require_DynamicFiltersScrollbar = require('../FilterScrollbar/DynamicFiltersScrollbar.cjs');
|
|
6
|
+
const require_searchFilterSidebarVariants = require('../SearchResultsFilterSidebar/searchFilterSidebarVariants.cjs');
|
|
7
|
+
let classnames = require("classnames");
|
|
8
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
let framer_motion = require("framer-motion");
|
|
11
|
+
|
|
12
|
+
//#region ../components/dist/components/SearchResultsStates/SearchResultsGrid.js
|
|
13
|
+
const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter, onProductClick }) => {
|
|
14
|
+
const sharedFilterBarClasses = (0, classnames.default)("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
15
|
+
const filterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
16
|
+
const appliedFilterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
17
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
18
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
|
|
19
|
+
className: "spiffy-tw-w-full spiffy-tw-justify-center spiffy-tw-overflow-hidden",
|
|
20
|
+
initial: { opacity: 0 },
|
|
21
|
+
animate: { opacity: 1 },
|
|
22
|
+
exit: { opacity: 0 },
|
|
23
|
+
transition: { duration: .2 },
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AppliedFiltersScrollbar.AppliedFiltersScrollbar, {
|
|
26
|
+
selectedFilterOptions,
|
|
27
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
28
|
+
filterDefaultClasses,
|
|
29
|
+
filterHoverClasses,
|
|
30
|
+
appliedFilterBackgroundClasses,
|
|
31
|
+
onRemoveFilter
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_DynamicFiltersScrollbar.DynamicFiltersScrollbar, {
|
|
34
|
+
availableDynamicFilters,
|
|
35
|
+
filterBarClassNames: filterBarClasses,
|
|
36
|
+
filterDefaultClasses,
|
|
37
|
+
filterHoverClasses,
|
|
38
|
+
onToggleDynamicFilter
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductGrid.ProductGrid, {
|
|
41
|
+
productList,
|
|
42
|
+
productGridVariant,
|
|
43
|
+
productGridClasses,
|
|
44
|
+
productCardConfig,
|
|
45
|
+
merchantShortName,
|
|
46
|
+
onProductClick
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.SearchResultsGrid = SearchResultsGrid;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ProductGrid } from "../ProductGrid/ProductGrid.js";
|
|
2
|
+
import "../ProductGrid/index.js";
|
|
3
|
+
import { AppliedFiltersScrollbar } from "../FilterScrollbar/AppliedFiltersScrollbar.js";
|
|
4
|
+
import { DynamicFiltersScrollbar } from "../FilterScrollbar/DynamicFiltersScrollbar.js";
|
|
5
|
+
import { searchFilterSidebarVariantClasses } from "../SearchResultsFilterSidebar/searchFilterSidebarVariants.js";
|
|
6
|
+
import classNames from "classnames";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { motion } from "framer-motion";
|
|
9
|
+
|
|
10
|
+
//#region ../components/dist/components/SearchResultsStates/SearchResultsGrid.js
|
|
11
|
+
const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter, onProductClick }) => {
|
|
12
|
+
const sharedFilterBarClasses = classNames("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
13
|
+
const filterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
14
|
+
const appliedFilterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
15
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
16
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
17
|
+
className: "spiffy-tw-w-full spiffy-tw-justify-center spiffy-tw-overflow-hidden",
|
|
18
|
+
initial: { opacity: 0 },
|
|
19
|
+
animate: { opacity: 1 },
|
|
20
|
+
exit: { opacity: 0 },
|
|
21
|
+
transition: { duration: .2 },
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ jsx(AppliedFiltersScrollbar, {
|
|
24
|
+
selectedFilterOptions,
|
|
25
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
26
|
+
filterDefaultClasses,
|
|
27
|
+
filterHoverClasses,
|
|
28
|
+
appliedFilterBackgroundClasses,
|
|
29
|
+
onRemoveFilter
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ jsx(DynamicFiltersScrollbar, {
|
|
32
|
+
availableDynamicFilters,
|
|
33
|
+
filterBarClassNames: filterBarClasses,
|
|
34
|
+
filterDefaultClasses,
|
|
35
|
+
filterHoverClasses,
|
|
36
|
+
onToggleDynamicFilter
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ jsx(ProductGrid, {
|
|
39
|
+
productList,
|
|
40
|
+
productGridVariant,
|
|
41
|
+
productGridClasses,
|
|
42
|
+
productCardConfig,
|
|
43
|
+
merchantShortName,
|
|
44
|
+
onProductClick
|
|
45
|
+
})
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { SearchResultsGrid };
|
package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_Typography = require('../Typography/Typography.cjs');
|
|
3
|
+
require('../Typography/index.cjs');
|
|
4
|
+
const require_ProductCardSkeleton = require('../ProductCard/ProductCardSkeleton.cjs');
|
|
5
|
+
require('../ProductCard/index.cjs');
|
|
6
|
+
const require_productGridVariants = require('../ProductGrid/productGridVariants.cjs');
|
|
7
|
+
require('../ProductGrid/index.cjs');
|
|
8
|
+
const require_SparkleAnimation = require('../SparkleAnimation/SparkleAnimation.cjs');
|
|
9
|
+
require('../SparkleAnimation/index.cjs');
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
let framer_motion = require("framer-motion");
|
|
12
|
+
|
|
13
|
+
//#region ../components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js
|
|
14
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
15
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = require_productGridVariants.productGridVariantClasses[productGridVariant];
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
17
|
+
className: "spiffy-tw-w-full spiffy-tw-justify-center spiffy-tw-overflow-hidden",
|
|
18
|
+
initial: { opacity: 0 },
|
|
19
|
+
animate: { opacity: 1 },
|
|
20
|
+
exit: { opacity: 0 },
|
|
21
|
+
transition: { duration: .2 },
|
|
22
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
23
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
24
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
25
|
+
className: "spiffy-tw-mb-4 spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between",
|
|
26
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
27
|
+
className: "spiffy-tw-ml-[16px] spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 md:spiffy-tw-ml-[80px]",
|
|
28
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
29
|
+
className: "spiffy-tw-width-[24px]",
|
|
30
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SparkleAnimation.SparkleAnimation, {
|
|
31
|
+
color: sparkleIconColor,
|
|
32
|
+
animate: true
|
|
33
|
+
})
|
|
34
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
35
|
+
variant: "body2",
|
|
36
|
+
children: "Finding the best options for you..."
|
|
37
|
+
})]
|
|
38
|
+
})
|
|
39
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
40
|
+
className: productGridClasses,
|
|
41
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductCardSkeleton.ProductCardSkeleton, {
|
|
42
|
+
layoutVariant: productCardLayoutVariant,
|
|
43
|
+
aspectRatio: productCardImageAspectRatio,
|
|
44
|
+
growWithContainer: true
|
|
45
|
+
}, index))
|
|
46
|
+
})]
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
exports.SearchResultsLoadingGrid = SearchResultsLoadingGrid;
|
package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Typography } from "../Typography/Typography.js";
|
|
2
|
+
import "../Typography/index.js";
|
|
3
|
+
import { ProductCardSkeleton } from "../ProductCard/ProductCardSkeleton.js";
|
|
4
|
+
import "../ProductCard/index.js";
|
|
5
|
+
import { productGridVariantClasses } from "../ProductGrid/productGridVariants.js";
|
|
6
|
+
import "../ProductGrid/index.js";
|
|
7
|
+
import { SparkleAnimation } from "../SparkleAnimation/SparkleAnimation.js";
|
|
8
|
+
import "../SparkleAnimation/index.js";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { motion } from "framer-motion";
|
|
11
|
+
|
|
12
|
+
//#region ../components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js
|
|
13
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
14
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = productGridVariantClasses[productGridVariant];
|
|
15
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
16
|
+
className: "spiffy-tw-w-full spiffy-tw-justify-center spiffy-tw-overflow-hidden",
|
|
17
|
+
initial: { opacity: 0 },
|
|
18
|
+
animate: { opacity: 1 },
|
|
19
|
+
exit: { opacity: 0 },
|
|
20
|
+
transition: { duration: .2 },
|
|
21
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
22
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
23
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
24
|
+
className: "spiffy-tw-mb-4 spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between",
|
|
25
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
26
|
+
className: "spiffy-tw-ml-[16px] spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 md:spiffy-tw-ml-[80px]",
|
|
27
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
28
|
+
className: "spiffy-tw-width-[24px]",
|
|
29
|
+
children: /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
30
|
+
color: sparkleIconColor,
|
|
31
|
+
animate: true
|
|
32
|
+
})
|
|
33
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
34
|
+
variant: "body2",
|
|
35
|
+
children: "Finding the best options for you..."
|
|
36
|
+
})]
|
|
37
|
+
})
|
|
38
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
39
|
+
className: productGridClasses,
|
|
40
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ jsx(ProductCardSkeleton, {
|
|
41
|
+
layoutVariant: productCardLayoutVariant,
|
|
42
|
+
aspectRatio: productCardImageAspectRatio,
|
|
43
|
+
growWithContainer: true
|
|
44
|
+
}, index))
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { SearchResultsLoadingGrid };
|
package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.cjs
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_SearchInputForm = require('../SearchInputForm/SearchInputForm.cjs');
|
|
3
|
+
require('../SearchInputForm/index.cjs');
|
|
4
|
+
const require_SearchResultsFilterButton = require('../SearchResultsFilterButton/SearchResultsFilterButton.cjs');
|
|
5
|
+
require('../SearchResultsFilterButton/index.cjs');
|
|
6
|
+
let react = require("react");
|
|
7
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
8
|
+
let classnames = require("classnames");
|
|
9
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
|
|
12
|
+
//#region ../components/dist/components/SearchResultsToolbar/SearchResultsToolbar.js
|
|
13
|
+
const SearchResultsToolbar = ({ searchInputVariant, searchBoxPlaceholder, searchText, focusedIndex, focusedOptionId, autocompleteResults, filterButtonText, onKeyDown, onSearchInputChange, onSubmitSearch, onAutocompleteSelect, onSearchInputFocus, onSearchInputBlur, shouldShowAutocomplete, setIsFilterOpen, containerXPaddingClasses, toolbarRef, isVisible, className }) => {
|
|
14
|
+
const [hasZIndex, setHasZIndex] = react.default.useState(false);
|
|
15
|
+
const searchInputRef = (0, react.useRef)(null);
|
|
16
|
+
react.default.useEffect(() => {
|
|
17
|
+
let timer;
|
|
18
|
+
if (isVisible) {
|
|
19
|
+
timer = setTimeout(() => {
|
|
20
|
+
setHasZIndex(true);
|
|
21
|
+
}, 300);
|
|
22
|
+
return () => clearTimeout(timer);
|
|
23
|
+
}
|
|
24
|
+
setHasZIndex(false);
|
|
25
|
+
return () => clearTimeout(timer);
|
|
26
|
+
}, [isVisible]);
|
|
27
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
28
|
+
className: (0, classnames.default)("spiffy-tw-bg-white", "spiffy-tw-w-full", className, {
|
|
29
|
+
"spiffy-tw-z-10": hasZIndex,
|
|
30
|
+
"spiffy-tw-translate-y-0": isVisible,
|
|
31
|
+
"-spiffy-tw-translate-y-full": !isVisible
|
|
32
|
+
}),
|
|
33
|
+
ref: toolbarRef,
|
|
34
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
35
|
+
className: (0, classnames.default)("spiffy-tw-flex", containerXPaddingClasses),
|
|
36
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchInputForm.SearchInputForm, {
|
|
37
|
+
searchInputVariant,
|
|
38
|
+
searchText,
|
|
39
|
+
focusedIndex,
|
|
40
|
+
autocompleteResults,
|
|
41
|
+
searchBoxPlaceholder,
|
|
42
|
+
focusedOptionId,
|
|
43
|
+
onKeyDown,
|
|
44
|
+
onSearchInputChange,
|
|
45
|
+
onSearchInputFocus,
|
|
46
|
+
onSearchInputBlur,
|
|
47
|
+
shouldShowAutocomplete,
|
|
48
|
+
onSearchSubmit: onSubmitSearch,
|
|
49
|
+
onAutocompleteSelect,
|
|
50
|
+
searchInputRef
|
|
51
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchResultsFilterButton.SearchResultsFilterButton, {
|
|
52
|
+
setIsOpen: setIsFilterOpen,
|
|
53
|
+
filterButtonText
|
|
54
|
+
})]
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
exports.SearchResultsToolbar = SearchResultsToolbar;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { SearchInputForm } from "../SearchInputForm/SearchInputForm.js";
|
|
2
|
+
import "../SearchInputForm/index.js";
|
|
3
|
+
import { SearchResultsFilterButton } from "../SearchResultsFilterButton/SearchResultsFilterButton.js";
|
|
4
|
+
import "../SearchResultsFilterButton/index.js";
|
|
5
|
+
import React, { useRef } from "react";
|
|
6
|
+
import classNames from "classnames";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region ../components/dist/components/SearchResultsToolbar/SearchResultsToolbar.js
|
|
10
|
+
const SearchResultsToolbar = ({ searchInputVariant, searchBoxPlaceholder, searchText, focusedIndex, focusedOptionId, autocompleteResults, filterButtonText, onKeyDown, onSearchInputChange, onSubmitSearch, onAutocompleteSelect, onSearchInputFocus, onSearchInputBlur, shouldShowAutocomplete, setIsFilterOpen, containerXPaddingClasses, toolbarRef, isVisible, className }) => {
|
|
11
|
+
const [hasZIndex, setHasZIndex] = React.useState(false);
|
|
12
|
+
const searchInputRef = useRef(null);
|
|
13
|
+
React.useEffect(() => {
|
|
14
|
+
let timer;
|
|
15
|
+
if (isVisible) {
|
|
16
|
+
timer = setTimeout(() => {
|
|
17
|
+
setHasZIndex(true);
|
|
18
|
+
}, 300);
|
|
19
|
+
return () => clearTimeout(timer);
|
|
20
|
+
}
|
|
21
|
+
setHasZIndex(false);
|
|
22
|
+
return () => clearTimeout(timer);
|
|
23
|
+
}, [isVisible]);
|
|
24
|
+
return /* @__PURE__ */ jsx("div", {
|
|
25
|
+
className: classNames("spiffy-tw-bg-white", "spiffy-tw-w-full", className, {
|
|
26
|
+
"spiffy-tw-z-10": hasZIndex,
|
|
27
|
+
"spiffy-tw-translate-y-0": isVisible,
|
|
28
|
+
"-spiffy-tw-translate-y-full": !isVisible
|
|
29
|
+
}),
|
|
30
|
+
ref: toolbarRef,
|
|
31
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
32
|
+
className: classNames("spiffy-tw-flex", containerXPaddingClasses),
|
|
33
|
+
children: [/* @__PURE__ */ jsx(SearchInputForm, {
|
|
34
|
+
searchInputVariant,
|
|
35
|
+
searchText,
|
|
36
|
+
focusedIndex,
|
|
37
|
+
autocompleteResults,
|
|
38
|
+
searchBoxPlaceholder,
|
|
39
|
+
focusedOptionId,
|
|
40
|
+
onKeyDown,
|
|
41
|
+
onSearchInputChange,
|
|
42
|
+
onSearchInputFocus,
|
|
43
|
+
onSearchInputBlur,
|
|
44
|
+
shouldShowAutocomplete,
|
|
45
|
+
onSearchSubmit: onSubmitSearch,
|
|
46
|
+
onAutocompleteSelect,
|
|
47
|
+
searchInputRef
|
|
48
|
+
}), /* @__PURE__ */ jsx(SearchResultsFilterButton, {
|
|
49
|
+
setIsOpen: setIsFilterOpen,
|
|
50
|
+
filterButtonText
|
|
51
|
+
})]
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { SearchResultsToolbar };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_FourPointStar = require('../../../../icons/dist/FourPointStar.cjs');
|
|
3
|
+
const require_types = require('./types.cjs');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
let classnames = require("classnames");
|
|
6
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let framer_motion = require("framer-motion");
|
|
9
|
+
|
|
10
|
+
//#region ../components/dist/components/SparkleAnimation/SparkleAnimation.js
|
|
11
|
+
const ANIMATION_CYCLE_TIME = 1e3;
|
|
12
|
+
const STAR_DELAY_OFFSET = 250;
|
|
13
|
+
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
14
|
+
const [mainStarScale, setMainStarScale] = (0, react.useState)(animate ? 0 : 1);
|
|
15
|
+
const [smallStar1Scale, setSmallStar1Scale] = (0, react.useState)(animate ? 0 : 1);
|
|
16
|
+
const [smallStar2Scale, setSmallStar2Scale] = (0, react.useState)(animate ? 0 : 1);
|
|
17
|
+
const containerClasses = (0, classnames.default)(require_types.SparkleAnimationOverride.CONTAINER, "spiffy-tw-w-6 spiffy-tw-h-6 spiffy-tw-relative", className);
|
|
18
|
+
(0, react.useEffect)(() => {
|
|
19
|
+
if (!animate) {
|
|
20
|
+
setMainStarScale(1);
|
|
21
|
+
setSmallStar1Scale(1);
|
|
22
|
+
setSmallStar2Scale(1);
|
|
23
|
+
}
|
|
24
|
+
}, [animate]);
|
|
25
|
+
(0, react.useEffect)(() => {
|
|
26
|
+
if (!animate) return;
|
|
27
|
+
const newScale = mainStarScale === 1 ? 0 : 1;
|
|
28
|
+
setTimeout(() => setMainStarScale(newScale), ANIMATION_CYCLE_TIME);
|
|
29
|
+
setTimeout(() => setSmallStar1Scale(newScale), ANIMATION_CYCLE_TIME + STAR_DELAY_OFFSET);
|
|
30
|
+
setTimeout(() => setSmallStar2Scale(newScale), ANIMATION_CYCLE_TIME + 2 * STAR_DELAY_OFFSET);
|
|
31
|
+
}, [mainStarScale, animate]);
|
|
32
|
+
const starTransition = {
|
|
33
|
+
duration: .3,
|
|
34
|
+
ease: "easeOut"
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
37
|
+
className: containerClasses,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
40
|
+
className: (0, classnames.default)(require_types.SparkleAnimationOverride.STAR_ONE_CONTAINER, "spiffy-tw-left-0 spiffy-tw-absolute -spiffy-tw-top-[2px]"),
|
|
41
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
42
|
+
animate: { scale: mainStarScale },
|
|
43
|
+
transition: starTransition,
|
|
44
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FourPointStar.FourPointStar_default, {
|
|
45
|
+
fill: color,
|
|
46
|
+
className: "spiffy-tw-inline-block spiffy-tw-h-4 spiffy-tw-w-4"
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
51
|
+
className: (0, classnames.default)(require_types.SparkleAnimationOverride.STAR_TWO_CONTAINER, "spiffy-tw-absolute -spiffy-tw-top-[7px] spiffy-tw-left-[10px]"),
|
|
52
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
53
|
+
animate: { scale: smallStar1Scale },
|
|
54
|
+
transition: starTransition,
|
|
55
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FourPointStar.FourPointStar_default, {
|
|
56
|
+
fill: color,
|
|
57
|
+
className: "spiffy-tw-inline-block spiffy-tw-h-2 spiffy-tw-w-2"
|
|
58
|
+
})
|
|
59
|
+
})
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
62
|
+
className: (0, classnames.default)(require_types.SparkleAnimationOverride.STAR_THREE_CONTAINER, "spiffy-tw-absolute spiffy-tw-left-[12px] spiffy-tw-top-[1px]"),
|
|
63
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
64
|
+
animate: { scale: smallStar2Scale },
|
|
65
|
+
transition: starTransition,
|
|
66
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FourPointStar.FourPointStar_default, {
|
|
67
|
+
fill: color,
|
|
68
|
+
className: "spiffy-tw-inline-block spiffy-tw-h-2 spiffy-tw-w-2"
|
|
69
|
+
})
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
exports.SparkleAnimation = SparkleAnimation;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { FourPointStar_default } from "../../../../icons/dist/FourPointStar.js";
|
|
2
|
+
import { SparkleAnimationOverride } from "./types.js";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { motion } from "framer-motion";
|
|
7
|
+
|
|
8
|
+
//#region ../components/dist/components/SparkleAnimation/SparkleAnimation.js
|
|
9
|
+
const ANIMATION_CYCLE_TIME = 1e3;
|
|
10
|
+
const STAR_DELAY_OFFSET = 250;
|
|
11
|
+
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
12
|
+
const [mainStarScale, setMainStarScale] = useState(animate ? 0 : 1);
|
|
13
|
+
const [smallStar1Scale, setSmallStar1Scale] = useState(animate ? 0 : 1);
|
|
14
|
+
const [smallStar2Scale, setSmallStar2Scale] = useState(animate ? 0 : 1);
|
|
15
|
+
const containerClasses = classNames(SparkleAnimationOverride.CONTAINER, "spiffy-tw-w-6 spiffy-tw-h-6 spiffy-tw-relative", className);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (!animate) {
|
|
18
|
+
setMainStarScale(1);
|
|
19
|
+
setSmallStar1Scale(1);
|
|
20
|
+
setSmallStar2Scale(1);
|
|
21
|
+
}
|
|
22
|
+
}, [animate]);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (!animate) return;
|
|
25
|
+
const newScale = mainStarScale === 1 ? 0 : 1;
|
|
26
|
+
setTimeout(() => setMainStarScale(newScale), ANIMATION_CYCLE_TIME);
|
|
27
|
+
setTimeout(() => setSmallStar1Scale(newScale), ANIMATION_CYCLE_TIME + STAR_DELAY_OFFSET);
|
|
28
|
+
setTimeout(() => setSmallStar2Scale(newScale), ANIMATION_CYCLE_TIME + 2 * STAR_DELAY_OFFSET);
|
|
29
|
+
}, [mainStarScale, animate]);
|
|
30
|
+
const starTransition = {
|
|
31
|
+
duration: .3,
|
|
32
|
+
ease: "easeOut"
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
35
|
+
className: containerClasses,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: classNames(SparkleAnimationOverride.STAR_ONE_CONTAINER, "spiffy-tw-left-0 spiffy-tw-absolute -spiffy-tw-top-[2px]"),
|
|
39
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
40
|
+
animate: { scale: mainStarScale },
|
|
41
|
+
transition: starTransition,
|
|
42
|
+
children: /* @__PURE__ */ jsx(FourPointStar_default, {
|
|
43
|
+
fill: color,
|
|
44
|
+
className: "spiffy-tw-inline-block spiffy-tw-h-4 spiffy-tw-w-4"
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ jsx("div", {
|
|
49
|
+
className: classNames(SparkleAnimationOverride.STAR_TWO_CONTAINER, "spiffy-tw-absolute -spiffy-tw-top-[7px] spiffy-tw-left-[10px]"),
|
|
50
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
51
|
+
animate: { scale: smallStar1Scale },
|
|
52
|
+
transition: starTransition,
|
|
53
|
+
children: /* @__PURE__ */ jsx(FourPointStar_default, {
|
|
54
|
+
fill: color,
|
|
55
|
+
className: "spiffy-tw-inline-block spiffy-tw-h-2 spiffy-tw-w-2"
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ jsx("div", {
|
|
60
|
+
className: classNames(SparkleAnimationOverride.STAR_THREE_CONTAINER, "spiffy-tw-absolute spiffy-tw-left-[12px] spiffy-tw-top-[1px]"),
|
|
61
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
62
|
+
animate: { scale: smallStar2Scale },
|
|
63
|
+
transition: starTransition,
|
|
64
|
+
children: /* @__PURE__ */ jsx(FourPointStar_default, {
|
|
65
|
+
fill: color,
|
|
66
|
+
className: "spiffy-tw-inline-block spiffy-tw-h-2 spiffy-tw-w-2"
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
export { SparkleAnimation };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../components/dist/components/SparkleAnimation/types.js
|
|
3
|
+
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
4
|
+
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
5
|
+
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
6
|
+
SparkleAnimationOverride$1["STAR_TWO_CONTAINER"] = "spiffy-sparkle-animation-star-two-container";
|
|
7
|
+
SparkleAnimationOverride$1["STAR_THREE_CONTAINER"] = "spiffy-sparkle-animation-star-three-container";
|
|
8
|
+
return SparkleAnimationOverride$1;
|
|
9
|
+
}({});
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.SparkleAnimationOverride = SparkleAnimationOverride;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region ../components/dist/components/SparkleAnimation/types.js
|
|
2
|
+
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
3
|
+
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
4
|
+
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
5
|
+
SparkleAnimationOverride$1["STAR_TWO_CONTAINER"] = "spiffy-sparkle-animation-star-two-container";
|
|
6
|
+
SparkleAnimationOverride$1["STAR_THREE_CONTAINER"] = "spiffy-sparkle-animation-star-three-container";
|
|
7
|
+
return SparkleAnimationOverride$1;
|
|
8
|
+
}({});
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SparkleAnimationOverride };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let classnames = require("classnames");
|
|
3
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
|
|
6
|
+
//#region ../components/dist/components/Spinner/Spinner.js
|
|
7
|
+
const Spinner = ({ className }) => {
|
|
8
|
+
const svgClassnames = (0, classnames.default)({
|
|
9
|
+
"spiffy-tw-w-4": true,
|
|
10
|
+
"spiffy-tw-h-4": true,
|
|
11
|
+
"spiffy-tw-text-gray-200": true,
|
|
12
|
+
"spiffy-tw-animate-spin": true,
|
|
13
|
+
"spiffy-tw-dark:text-gray-600": true,
|
|
14
|
+
"spiffy-tw-fill-black": true
|
|
15
|
+
}, className);
|
|
16
|
+
const spanClassnames = (0, classnames.default)({ "spiffy-tw-sr-only": true });
|
|
17
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18
|
+
role: "status",
|
|
19
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
20
|
+
"aria-hidden": "true",
|
|
21
|
+
className: svgClassnames,
|
|
22
|
+
viewBox: "0 0 100 101",
|
|
23
|
+
fill: "none",
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
26
|
+
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
27
|
+
fill: "currentColor"
|
|
28
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
29
|
+
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
30
|
+
fill: "currentFill"
|
|
31
|
+
})]
|
|
32
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
33
|
+
className: spanClassnames,
|
|
34
|
+
children: "Loading..."
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.Spinner = Spinner;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import classNames from "classnames";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region ../components/dist/components/Spinner/Spinner.js
|
|
5
|
+
const Spinner = ({ className }) => {
|
|
6
|
+
const svgClassnames = classNames({
|
|
7
|
+
"spiffy-tw-w-4": true,
|
|
8
|
+
"spiffy-tw-h-4": true,
|
|
9
|
+
"spiffy-tw-text-gray-200": true,
|
|
10
|
+
"spiffy-tw-animate-spin": true,
|
|
11
|
+
"spiffy-tw-dark:text-gray-600": true,
|
|
12
|
+
"spiffy-tw-fill-black": true
|
|
13
|
+
}, className);
|
|
14
|
+
const spanClassnames = classNames({ "spiffy-tw-sr-only": true });
|
|
15
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
16
|
+
role: "status",
|
|
17
|
+
children: [/* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
"aria-hidden": "true",
|
|
19
|
+
className: svgClassnames,
|
|
20
|
+
viewBox: "0 0 100 101",
|
|
21
|
+
fill: "none",
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
24
|
+
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
25
|
+
fill: "currentColor"
|
|
26
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
27
|
+
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
28
|
+
fill: "currentFill"
|
|
29
|
+
})]
|
|
30
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: spanClassnames,
|
|
32
|
+
children: "Loading..."
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Spinner };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Spinner = require('./Spinner.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Spinner } from "./Spinner.js";
|