@envive-ai/react-widgets 0.1.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SearchResults/SearchResults.cjs +8 -12
- package/dist/SearchResults/SearchResults.js +4 -8
- package/dist/SearchResults/SearchResultsWidget.cjs +1 -1
- package/dist/SearchResults/SearchResultsWidget.d.cts +2 -2
- package/dist/SearchResults/SearchResultsWidget.js +1 -1
- package/dist/SearchResults/withSearchResults.cjs +1 -1
- package/dist/SearchResults/withSearchResults.js +1 -1
- package/dist/SearchZeroState/SearchIcon.cjs +2 -3
- package/dist/SearchZeroState/SearchIcon.js +1 -2
- package/dist/SearchZeroState/SearchZeroState.cjs +10 -14
- package/dist/SearchZeroState/SearchZeroState.js +5 -9
- package/dist/SearchZeroState/SearchZeroStateWidget.cjs +1 -1
- package/dist/SearchZeroState/SearchZeroStateWidget.d.cts +2 -2
- package/dist/SearchZeroState/SearchZeroStateWidget.d.ts +2 -2
- package/dist/SearchZeroState/SearchZeroStateWidget.js +1 -1
- package/dist/SearchZeroState/components/RecommendedProducts.cjs +5 -7
- package/dist/SearchZeroState/components/RecommendedProducts.js +3 -5
- package/dist/SearchZeroState/index.d.cts +2 -1
- package/dist/SearchZeroState/index.d.ts +2 -1
- package/dist/SearchZeroState/types.d.cts +2 -2
- package/dist/SearchZeroState/types.d.ts +2 -2
- package/dist/SuggestionBar/SuggestionBar.cjs +1 -1
- package/dist/SuggestionBar/SuggestionBar.d.cts +1 -1
- package/dist/SuggestionBar/SuggestionBar.d.ts +3 -3
- package/dist/SuggestionBar/SuggestionBar.js +2 -2
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.cjs +6 -7
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.js +2 -3
- package/dist/SuggestionButtonContainer/types.d.cts +2 -2
- package/dist/SuggestionButtonContainer/types.d.ts +2 -2
- package/dist/hooks/dist/contexts/types.d.cts +52 -0
- package/dist/hooks/dist/types/test-types.d.cts +8 -0
- package/dist/packages/hooks/dist/contexts/types.d.ts +52 -0
- package/dist/packages/hooks/dist/types/test-types.d.ts +8 -0
- package/package.json +3 -1
- package/dist/node_modules/react-icons/lib/iconBase.cjs +0 -121
- package/dist/node_modules/react-icons/lib/iconBase.js +0 -119
- package/dist/node_modules/react-icons/lib/iconContext.cjs +0 -17
- package/dist/node_modules/react-icons/lib/iconContext.js +0 -14
- package/dist/node_modules/react-icons/md/index.cjs +0 -35
- package/dist/node_modules/react-icons/md/index.js +0 -35
- package/dist/packages/components/dist/components/Accordion/Accordion.cjs +0 -80
- package/dist/packages/components/dist/components/Accordion/Accordion.js +0 -78
- package/dist/packages/components/dist/components/Accordion/index.cjs +0 -1
- package/dist/packages/components/dist/components/Accordion/index.js +0 -1
- package/dist/packages/components/dist/components/AnimatedChevron/AnimatedChevron.cjs +0 -30
- package/dist/packages/components/dist/components/AnimatedChevron/AnimatedChevron.js +0 -29
- package/dist/packages/components/dist/components/ButtonBase/ButtonBase.cjs +0 -56
- package/dist/packages/components/dist/components/ButtonBase/ButtonBase.js +0 -54
- package/dist/packages/components/dist/components/ButtonBase/index.cjs +0 -2
- package/dist/packages/components/dist/components/ButtonBase/index.js +0 -2
- package/dist/packages/components/dist/components/ButtonBase/types.cjs +0 -11
- package/dist/packages/components/dist/components/ButtonBase/types.js +0 -10
- package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.cjs +0 -45
- package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.js +0 -42
- package/dist/packages/components/dist/components/FilterScrollbar/DynamicFiltersScrollbar.cjs +0 -33
- package/dist/packages/components/dist/components/FilterScrollbar/DynamicFiltersScrollbar.js +0 -30
- package/dist/packages/components/dist/components/ImageWithFallback/ImageWithFallback.cjs +0 -45
- package/dist/packages/components/dist/components/ImageWithFallback/ImageWithFallback.js +0 -42
- package/dist/packages/components/dist/components/ImageWithFallback/index.cjs +0 -1
- package/dist/packages/components/dist/components/ImageWithFallback/index.js +0 -1
- package/dist/packages/components/dist/components/ModalSheet/ModalSheet.cjs +0 -30
- package/dist/packages/components/dist/components/ModalSheet/ModalSheet.js +0 -29
- package/dist/packages/components/dist/components/ModalSheet/desktop/desktopHeader.cjs +0 -26
- package/dist/packages/components/dist/components/ModalSheet/desktop/desktopHeader.js +0 -24
- package/dist/packages/components/dist/components/ModalSheet/desktop/index.cjs +0 -122
- package/dist/packages/components/dist/components/ModalSheet/desktop/index.js +0 -120
- package/dist/packages/components/dist/components/ModalSheet/index.cjs +0 -1
- package/dist/packages/components/dist/components/ModalSheet/index.js +0 -1
- package/dist/packages/components/dist/components/ModalSheet/mobile/index.cjs +0 -116
- package/dist/packages/components/dist/components/ModalSheet/mobile/index.js +0 -114
- package/dist/packages/components/dist/components/ModalSheet/mobile/mobileHeader.cjs +0 -38
- package/dist/packages/components/dist/components/ModalSheet/mobile/mobileHeader.js +0 -36
- package/dist/packages/components/dist/components/ProductCard/ProductCard.cjs +0 -153
- package/dist/packages/components/dist/components/ProductCard/ProductCard.js +0 -149
- package/dist/packages/components/dist/components/ProductCard/ProductCardSkeleton.cjs +0 -33
- package/dist/packages/components/dist/components/ProductCard/ProductCardSkeleton.js +0 -31
- package/dist/packages/components/dist/components/ProductCard/index.cjs +0 -4
- package/dist/packages/components/dist/components/ProductCard/index.js +0 -4
- package/dist/packages/components/dist/components/ProductCard/productCardVariants.cjs +0 -49
- package/dist/packages/components/dist/components/ProductCard/productCardVariants.js +0 -45
- package/dist/packages/components/dist/components/ProductCard/types.cjs +0 -10
- package/dist/packages/components/dist/components/ProductCard/types.js +0 -9
- package/dist/packages/components/dist/components/ProductGrid/ProductGrid.cjs +0 -43
- package/dist/packages/components/dist/components/ProductGrid/ProductGrid.js +0 -41
- package/dist/packages/components/dist/components/ProductGrid/index.cjs +0 -2
- package/dist/packages/components/dist/components/ProductGrid/index.js +0 -2
- package/dist/packages/components/dist/components/ProductGrid/productGridVariants.cjs +0 -21
- package/dist/packages/components/dist/components/ProductGrid/productGridVariants.js +0 -20
- package/dist/packages/components/dist/components/RadioButton/RadioButton.cjs +0 -74
- package/dist/packages/components/dist/components/RadioButton/RadioButton.js +0 -72
- package/dist/packages/components/dist/components/RadioButton/index.cjs +0 -1
- package/dist/packages/components/dist/components/RadioButton/index.js +0 -1
- package/dist/packages/components/dist/components/RadioButtonGroup/RadioButtonGroup.cjs +0 -42
- package/dist/packages/components/dist/components/RadioButtonGroup/RadioButtonGroup.js +0 -39
- package/dist/packages/components/dist/components/RadioButtonGroup/index.cjs +0 -1
- package/dist/packages/components/dist/components/RadioButtonGroup/index.js +0 -1
- package/dist/packages/components/dist/components/RecommendedProducts/RecommendedProducts.cjs +0 -53
- package/dist/packages/components/dist/components/RecommendedProducts/RecommendedProducts.js +0 -51
- package/dist/packages/components/dist/components/RecommendedProducts/index.cjs +0 -3
- package/dist/packages/components/dist/components/RecommendedProducts/index.js +0 -3
- package/dist/packages/components/dist/components/SearchAutocomplete/SearchAutocomplete.cjs +0 -72
- package/dist/packages/components/dist/components/SearchAutocomplete/SearchAutocomplete.js +0 -69
- package/dist/packages/components/dist/components/SearchAutocomplete/index.cjs +0 -1
- package/dist/packages/components/dist/components/SearchAutocomplete/index.js +0 -1
- package/dist/packages/components/dist/components/SearchFilter/SearchFilter.cjs +0 -134
- package/dist/packages/components/dist/components/SearchFilter/SearchFilter.js +0 -132
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterFooter.cjs +0 -48
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterFooter.js +0 -46
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterHeader.cjs +0 -42
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterHeader.js +0 -40
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterItem.cjs +0 -6
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterItem.js +0 -4
- package/dist/packages/components/dist/components/SearchFilter/index.cjs +0 -5
- package/dist/packages/components/dist/components/SearchFilter/index.js +0 -5
- package/dist/packages/components/dist/components/SearchFilter/useHasFilterStateChanged.cjs +0 -27
- package/dist/packages/components/dist/components/SearchFilter/useHasFilterStateChanged.js +0 -26
- package/dist/packages/components/dist/components/SearchFilter/utils.cjs +0 -11
- package/dist/packages/components/dist/components/SearchFilter/utils.js +0 -9
- package/dist/packages/components/dist/components/SearchInput/SearchInput.cjs +0 -81
- package/dist/packages/components/dist/components/SearchInput/SearchInput.js +0 -78
- package/dist/packages/components/dist/components/SearchInput/index.cjs +0 -2
- package/dist/packages/components/dist/components/SearchInput/index.js +0 -2
- package/dist/packages/components/dist/components/SearchInput/searchInputVariants.cjs +0 -15
- package/dist/packages/components/dist/components/SearchInput/searchInputVariants.js +0 -15
- package/dist/packages/components/dist/components/SearchInputForm/SearchInputForm.cjs +0 -57
- package/dist/packages/components/dist/components/SearchInputForm/SearchInputForm.js +0 -55
- package/dist/packages/components/dist/components/SearchInputForm/index.cjs +0 -1
- package/dist/packages/components/dist/components/SearchInputForm/index.js +0 -1
- package/dist/packages/components/dist/components/SearchResultsContent/SearchResultsContent.cjs +0 -52
- package/dist/packages/components/dist/components/SearchResultsContent/SearchResultsContent.js +0 -50
- package/dist/packages/components/dist/components/SearchResultsContent/index.cjs +0 -1
- package/dist/packages/components/dist/components/SearchResultsContent/index.js +0 -1
- package/dist/packages/components/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.cjs +0 -24
- package/dist/packages/components/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.js +0 -23
- package/dist/packages/components/dist/components/SearchResultsFilterButton/index.cjs +0 -3
- package/dist/packages/components/dist/components/SearchResultsFilterButton/index.js +0 -3
- package/dist/packages/components/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.cjs +0 -36
- package/dist/packages/components/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.js +0 -35
- package/dist/packages/components/dist/components/SearchResultsFilterModal/index.cjs +0 -3
- package/dist/packages/components/dist/components/SearchResultsFilterModal/index.js +0 -3
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.cjs +0 -9
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.js +0 -9
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/index.cjs +0 -2
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/index.js +0 -2
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.cjs +0 -34
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.js +0 -34
- package/dist/packages/components/dist/components/SearchResultsStates/NoSearchResultsFound.cjs +0 -56
- package/dist/packages/components/dist/components/SearchResultsStates/NoSearchResultsFound.js +0 -54
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsGrid.cjs +0 -53
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsGrid.js +0 -51
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs +0 -52
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js +0 -51
- package/dist/packages/components/dist/components/SearchResultsStates/index.cjs +0 -3
- package/dist/packages/components/dist/components/SearchResultsStates/index.js +0 -3
- package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.cjs +0 -60
- package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.js +0 -57
- package/dist/packages/components/dist/components/SearchResultsToolbar/index.cjs +0 -3
- package/dist/packages/components/dist/components/SearchResultsToolbar/index.js +0 -3
- package/dist/packages/components/dist/components/SparkleAnimation/SparkleAnimation.cjs +0 -77
- package/dist/packages/components/dist/components/SparkleAnimation/SparkleAnimation.js +0 -75
- package/dist/packages/components/dist/components/SparkleAnimation/index.cjs +0 -2
- package/dist/packages/components/dist/components/SparkleAnimation/index.js +0 -2
- package/dist/packages/components/dist/components/SparkleAnimation/types.cjs +0 -12
- package/dist/packages/components/dist/components/SparkleAnimation/types.js +0 -11
- package/dist/packages/components/dist/components/Spinner/Spinner.cjs +0 -40
- package/dist/packages/components/dist/components/Spinner/Spinner.js +0 -38
- package/dist/packages/components/dist/components/Spinner/index.cjs +0 -1
- package/dist/packages/components/dist/components/Spinner/index.js +0 -1
- package/dist/packages/components/dist/components/SuggestionButton/SuggestionButton.cjs +0 -193
- package/dist/packages/components/dist/components/SuggestionButton/SuggestionButton.js +0 -188
- package/dist/packages/components/dist/components/SuggestionButton/index.cjs +0 -1
- package/dist/packages/components/dist/components/SuggestionButton/index.js +0 -1
- package/dist/packages/components/dist/components/TextInput/TextInput.cjs +0 -34
- package/dist/packages/components/dist/components/TextInput/TextInput.js +0 -31
- package/dist/packages/components/dist/components/TextInput/index.cjs +0 -1
- package/dist/packages/components/dist/components/TextInput/index.js +0 -1
- package/dist/packages/components/dist/components/ToggleButton/ToggleButton.cjs +0 -63
- package/dist/packages/components/dist/components/ToggleButton/ToggleButton.js +0 -61
- package/dist/packages/components/dist/components/ToggleButton/index.cjs +0 -1
- package/dist/packages/components/dist/components/ToggleButton/index.js +0 -1
- package/dist/packages/components/dist/components/Typography/Typography.cjs +0 -53
- package/dist/packages/components/dist/components/Typography/Typography.js +0 -50
- package/dist/packages/components/dist/components/Typography/index.cjs +0 -2
- package/dist/packages/components/dist/components/Typography/index.js +0 -2
- package/dist/packages/components/dist/components/Typography/typographyVariantClasses.cjs +0 -99
- package/dist/packages/components/dist/components/Typography/typographyVariantClasses.js +0 -96
- package/dist/packages/components/dist/components/Typography/util.cjs +0 -10
- package/dist/packages/components/dist/components/Typography/util.js +0 -10
- package/dist/packages/components/dist/logging/logger.cjs +0 -20
- package/dist/packages/components/dist/logging/logger.js +0 -19
- package/dist/packages/components/dist/models/colorsConfig.cjs +0 -28
- package/dist/packages/components/dist/models/colorsConfig.js +0 -26
- package/dist/packages/components/dist/util/formatPrice.cjs +0 -14
- package/dist/packages/components/dist/util/formatPrice.js +0 -13
- package/dist/packages/components/dist/util/index.cjs +0 -3
- package/dist/packages/components/dist/util/index.js +0 -3
- package/dist/packages/components/dist/util/useScrollDirection.cjs +0 -39
- package/dist/packages/components/dist/util/useScrollDirection.js +0 -38
- package/dist/packages/components/dist/util/useStickyVisibility.cjs +0 -38
- package/dist/packages/components/dist/util/useStickyVisibility.js +0 -37
- package/dist/packages/icons/dist/ChevronDown.cjs +0 -23
- package/dist/packages/icons/dist/ChevronDown.js +0 -23
- package/dist/packages/icons/dist/FourPointStar.cjs +0 -22
- package/dist/packages/icons/dist/FourPointStar.js +0 -22
- package/dist/packages/icons/dist/IconClose.cjs +0 -26
- package/dist/packages/icons/dist/IconClose.js +0 -26
- package/dist/packages/icons/dist/MagnifyingGlassStarVariant.cjs +0 -39
- package/dist/packages/icons/dist/MagnifyingGlassStarVariant.js +0 -39
- package/dist/packages/icons/dist/OutlinedStar.cjs +0 -22
- package/dist/packages/icons/dist/OutlinedStar.js +0 -22
- package/dist/packages/icons/dist/SettingsVariant.cjs +0 -72
- package/dist/packages/icons/dist/SettingsVariant.js +0 -72
|
@@ -1,53 +0,0 @@
|
|
|
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;
|
|
@@ -1,51 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
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;
|
package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
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 };
|
|
@@ -1,77 +0,0 @@
|
|
|
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;
|
|
@@ -1,75 +0,0 @@
|
|
|
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 };
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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 };
|
|
@@ -1,40 +0,0 @@
|
|
|
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;
|
|
@@ -1,38 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_Spinner = require('./Spinner.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { Spinner } from "./Spinner.js";
|