@envive-ai/react-toolkit 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/index.cjs +3 -3
- package/dist/Accordion/index.d.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/Accordion/index.js +3 -3
- package/dist/{Accordion-DBZpiQe7.cjs → Accordion-D9gO9_y3.cjs} +1 -1
- package/dist/{Accordion-Cp3Hx2zm.js → Accordion-ZEdp99Ph.js} +1 -1
- package/dist/AppliedFiltersScrollbar/index.cjs +25 -27
- package/dist/AppliedFiltersScrollbar/index.d.cts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
- package/dist/AppliedFiltersScrollbar/index.js +25 -27
- package/dist/ButtonBase/index.cjs +3 -3
- package/dist/ButtonBase/index.d.cts +2 -3
- package/dist/ButtonBase/index.d.ts +2 -3
- package/dist/ButtonBase/index.js +3 -3
- package/dist/{ButtonBase-BAf-nlCm.js → ButtonBase-DgRupM53.js} +3 -3
- package/dist/{ButtonBase-Do88ndKa.cjs → ButtonBase-DrIwVGTR.cjs} +3 -3
- package/dist/DynamicFiltersScrollbar/index.cjs +23 -25
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/DynamicFiltersScrollbar/index.js +23 -25
- package/dist/DynamicFiltersScrollbar-B1j53y2q.cjs +81 -0
- package/dist/DynamicFiltersScrollbar-D7WYp6x9.js +66 -0
- package/dist/FilterScrollbar/index.cjs +3 -3
- package/dist/FilterScrollbar/index.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- package/dist/FilterScrollbar/index.js +3 -3
- package/dist/Headline/index.cjs +2 -2
- package/dist/Headline/index.d.cts +2 -2
- package/dist/Headline/index.d.ts +2 -2
- package/dist/Headline/index.js +2 -2
- package/dist/{Headline-DNEWF8ly.js → Headline-COv0Jbn8.js} +1 -1
- package/dist/{Headline-DTT4RSv2.cjs → Headline-Cp79THVF.cjs} +1 -1
- package/dist/ImageWithFallback/index.d.cts +2 -2
- package/dist/ImageWithFallback/index.d.ts +2 -2
- package/dist/ModalSheet/index.d.cts +2 -2
- package/dist/ModalSheet/index.d.ts +2 -2
- package/dist/ProductCard/index.cjs +4 -4
- package/dist/ProductCard/index.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductCard/index.js +4 -4
- package/dist/{ProductCard-C3MjnfZJ.js → ProductCard-CNwmHggx.js} +32 -32
- package/dist/{ProductCard-FDyIMnZs.cjs → ProductCard-EmdDy2af.cjs} +32 -32
- package/dist/ProductGrid/index.cjs +5 -5
- package/dist/ProductGrid/index.d.cts +4 -8
- package/dist/ProductGrid/index.d.ts +4 -8
- package/dist/ProductGrid/index.js +5 -5
- package/dist/{ProductGrid-TlntVJ6h.cjs → ProductGrid-CMoomZLc.cjs} +3 -7
- package/dist/{ProductGrid-C9OKsyB2.js → ProductGrid-nmWSp0qX.js} +3 -7
- package/dist/RadioButton/index.cjs +3 -3
- package/dist/RadioButton/index.d.cts +5 -3
- package/dist/RadioButton/index.d.ts +5 -3
- package/dist/RadioButton/index.js +3 -3
- package/dist/{RadioButton-DZ6QXkrN.cjs → RadioButton-BdKJRzLM.cjs} +17 -10
- package/dist/{RadioButton-Bf68dZl7.js → RadioButton-S5dALI2f.js} +18 -11
- package/dist/RadioButtonGroup/index.cjs +4 -4
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.js +4 -4
- package/dist/{RadioButtonGroup-8k7hkJYB.js → RadioButtonGroup-BipNsoHL.js} +2 -1
- package/dist/{RadioButtonGroup-Dc_n5amh.cjs → RadioButtonGroup-TAJMA1j_.cjs} +2 -1
- package/dist/SearchAutocomplete/index.cjs +56 -2
- package/dist/SearchAutocomplete/index.js +49 -1
- package/dist/SearchFilter/index.cjs +8 -8
- package/dist/SearchFilter/index.d.cts +4 -4
- package/dist/SearchFilter/index.d.ts +4 -4
- package/dist/SearchFilter/index.js +8 -8
- package/dist/{SearchFilter-CTVBi5s3.cjs → SearchFilter-BcLc0TMq.cjs} +26 -16
- package/dist/{SearchFilter-DvqBIXa1.js → SearchFilter-w-0s2YVu.js} +26 -16
- package/dist/SearchInput/index.cjs +96 -6
- package/dist/SearchInput/index.d.cts +1 -1
- package/dist/SearchInput/index.d.ts +2 -2
- package/dist/SearchInput/index.js +88 -4
- package/dist/SearchInputForm/index.cjs +0 -39
- package/dist/SearchInputForm/index.d.cts +2 -2
- package/dist/SearchInputForm/index.d.ts +2 -2
- package/dist/SearchInputForm/index.js +1 -37
- package/dist/SearchResultsContent/index.cjs +34 -37
- package/dist/SearchResultsContent/index.d.cts +4 -6
- package/dist/SearchResultsContent/index.d.ts +4 -6
- package/dist/SearchResultsContent/index.js +34 -37
- package/dist/SearchResultsFilterSidebar/index.cjs +10 -10
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +10 -10
- package/dist/SearchResultsStates/index.cjs +10 -10
- package/dist/SearchResultsStates/index.d.cts +6 -8
- package/dist/SearchResultsStates/index.d.ts +6 -8
- package/dist/SearchResultsStates/index.js +10 -10
- package/dist/{SearchResultsStates-iKz64Pd4.js → SearchResultsStates-DlZz14yy.js} +8 -10
- package/dist/{SearchResultsStates-CH4agenX.cjs → SearchResultsStates-DwcPrsdd.cjs} +8 -10
- package/dist/SparkleAnimation/index.cjs +1 -1
- package/dist/SparkleAnimation/index.d.cts +2 -2
- package/dist/SparkleAnimation/index.d.ts +2 -2
- package/dist/SparkleAnimation/index.js +1 -1
- package/dist/{SparkleAnimation-qi5WCJ9B.cjs → SparkleAnimation-CvGlWUqv.cjs} +0 -1
- package/dist/{SparkleAnimation-BLfNojLv.js → SparkleAnimation-paLhSu5E.js} +0 -1
- package/dist/Spinner/index.d.cts +2 -2
- package/dist/SuggestionButton/index.cjs +3 -3
- package/dist/SuggestionButton/index.d.cts +2 -2
- package/dist/SuggestionButton/index.d.ts +2 -2
- package/dist/SuggestionButton/index.js +3 -3
- package/dist/Text/index.cjs +2 -2
- package/dist/Text/index.d.cts +2 -2
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +2 -2
- package/dist/{Text-Bod4OMPk.js → Text-BLzNhX4H.js} +1 -1
- package/dist/{Text-MQjxqgZZ.cjs → Text-DllCE9_D.cjs} +1 -1
- package/dist/TextInput/index.cjs +2 -2
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +2 -2
- package/dist/{TextInput-DoM41M53.js → TextInput-DmsOxxPN.js} +1 -1
- package/dist/{TextInput-B3dTeD3q.cjs → TextInput-HMW0hxLI.cjs} +1 -1
- package/dist/ToggleButton/index.cjs +3 -3
- package/dist/ToggleButton/index.d.cts +2 -2
- package/dist/ToggleButton/index.d.ts +2 -2
- package/dist/ToggleButton/index.js +3 -3
- package/dist/{ToggleButton-CK_vkMvt.cjs → ToggleButton-DblAj4Cd.cjs} +1 -1
- package/dist/{ToggleButton-GIVd2-Z4.js → ToggleButton-r7Y7Kzzo.js} +1 -1
- package/dist/index-BKvXn5sj.d.ts +4 -0
- package/dist/{index-B8l3muO3.d.ts → index-Br1B7Jta.d.cts} +2 -3
- package/dist/{index-CFH3KUVw.d.cts → index-DADHwW6M.d.ts} +5 -9
- package/dist/{index-Vck3pox6.d.ts → index-DDp-fLgm.d.cts} +5 -9
- package/dist/{index-BMt66uqr.d.cts → index-Dh8rcWev.d.ts} +2 -3
- package/dist/index-W1wCDiw_.d.cts +4 -0
- package/dist/{searchFilterSidebarVariants-CI782ylo.js → searchFilterSidebarVariants-J0FJ8pck.js} +1 -1
- package/dist/{searchFilterSidebarVariants-DFfOTqjc.cjs → searchFilterSidebarVariants-kkTjYEIF.cjs} +1 -1
- package/dist/{textVariantClasses-Dgz7Zaql.cjs → textVariantClasses-CBre7vXv.cjs} +5 -7
- package/dist/{textVariantClasses-D77TGEy1.js → textVariantClasses-CRrTb43V.js} +5 -7
- package/package.json +2 -6
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +25 -27
- package/src/components/ButtonBase/ButtonBase.tsx +1 -2
- package/src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +26 -28
- package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +25 -27
- package/src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx +26 -28
- package/src/components/ModalSheet/ModalSheet.tsx +1 -1
- package/src/components/ModalSheet/common/closeIcon.tsx +2 -2
- package/src/components/ModalSheet/mobile/mobileHeader.tsx +1 -1
- package/src/components/ProductCard/ProductCard.tsx +5 -28
- package/src/components/ProductGrid/ProductGrid.tsx +3 -11
- package/src/components/RadioButton/RadioButton.tsx +15 -6
- package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
- package/src/components/SearchFilter/SearchFilter.tsx +2 -2
- package/src/components/SearchFilter/SearchFilterFooter.tsx +1 -1
- package/src/components/SearchFilter/SearchFilterHeader.tsx +6 -1
- package/src/components/SearchFilter/SearchFilterItem.tsx +17 -3
- package/src/components/SearchFilter/useHasFilterStateChanged.tsx +1 -0
- package/src/components/SearchFilter/utils.ts +4 -6
- package/src/components/SearchInput/SearchInput.tsx +2 -2
- package/src/components/SearchInputForm/index.ts +0 -1
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +33 -38
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -3
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +1 -1
- package/src/components/SearchResultsStates/SearchResultsGrid.tsx +4 -8
- package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +3 -3
- package/src/components/SparkleAnimation/SparkleAnimation.tsx +0 -1
- package/src/components/Spinner/Spinner.tsx +29 -14
- package/src/components/SuggestionButton/SuggestionButton.tsx +1 -1
- package/src/components/SuggestionButton/types.ts +1 -1
- package/src/components/Text/textVariantClasses.ts +12 -10
- package/src/components/TextInput/TextInput.tsx +1 -0
- package/src/util/camelCasedPropertiesDeep.ts +22 -22
- package/src/util/internal.ts +4 -2
- package/src/util/splitWords.ts +35 -31
- package/dist/DynamicFiltersScrollbar-C4kdNSJ9.js +0 -70
- package/dist/DynamicFiltersScrollbar-CVw1PINp.cjs +0 -85
- package/dist/SearchAutocomplete-BlpII8Xs.js +0 -51
- package/dist/SearchAutocomplete-DIEhLT4C.cjs +0 -62
- package/dist/SearchInput-CVaCPWCE.js +0 -89
- package/dist/SearchInput-vJMWoLzS.cjs +0 -106
- package/dist/Styles/index.cjs +0 -274
- package/dist/Styles/index.d.cts +0 -258
- package/dist/Styles/index.d.ts +0 -258
- package/dist/Styles/index.js +0 -274
- package/dist/index-H_9LhS_1.d.cts +0 -36
- package/dist/index-h-QwQNnu.d.ts +0 -36
- package/src/components/Styles/EnviveTailwindPreset.ts +0 -285
- package/src/components/Styles/index.ts +0 -2
- package/tailwind-preset.js +0 -3
- /package/dist/{colorsConfig-D-MZuBvt.cjs → colorsConfig-B3-SMUSx.cjs} +0 -0
- /package/dist/{colorsConfig-DEfiLHH0.js → colorsConfig-DZ-GSPWy.js} +0 -0
- /package/dist/{textVariantClasses-kyZtL8F5.d.ts → textVariantClasses-C8OCWZAw.d.ts} +0 -0
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_Text = require('./Text-MQjxqgZZ.cjs');
|
|
3
|
-
let classnames = require("classnames");
|
|
4
|
-
classnames = require_chunk.__toESM(classnames);
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
7
|
-
let react_indiana_drag_scroll = require("react-indiana-drag-scroll");
|
|
8
|
-
react_indiana_drag_scroll = require_chunk.__toESM(react_indiana_drag_scroll);
|
|
9
|
-
|
|
10
|
-
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx
|
|
11
|
-
const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses, onRemoveFilter }) => {
|
|
12
|
-
if (selectedFilterOptions.length === 0) return null;
|
|
13
|
-
const filterDefaultWithoutBg = filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim();
|
|
14
|
-
const buttonClasses = (0, classnames.default)(" spiffy-tw-flex spiffy-tw-items-center spiffy-tw-rounded-full spiffy-tw-px-[8px] spiffy-tw-py-[4px] spiffy-tw-whitespace-nowrap", filterHoverClasses, filterDefaultWithoutBg, appliedFilterBackgroundClasses);
|
|
15
|
-
const iconColor = "currentColor";
|
|
16
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_indiana_drag_scroll.default, {
|
|
17
|
-
className: filterBarClassNames,
|
|
18
|
-
hideScrollbars: true,
|
|
19
|
-
children: selectedFilterOptions.map((filter) => {
|
|
20
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
21
|
-
className: buttonClasses,
|
|
22
|
-
type: "button",
|
|
23
|
-
onClick: () => onRemoveFilter(filter),
|
|
24
|
-
"aria-label": `Remove filter: ${filter.displayName}`,
|
|
25
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
26
|
-
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-[8px]",
|
|
27
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
28
|
-
variant: "body3",
|
|
29
|
-
children: filter.displayName
|
|
30
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
31
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
-
width: "10",
|
|
33
|
-
height: "10",
|
|
34
|
-
viewBox: "0 0 10 10",
|
|
35
|
-
fill: "none",
|
|
36
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
37
|
-
d: "M4.59766 4.29297L8.48535 0.405273L9.19238 1.1123L5.30469 5L9.19238 8.8877L8.48535 9.59473L4.59766 5.70703L0.707031 9.59766L0 8.89062L3.89062 5L0 1.10938L0.707031 0.402344L4.59766 4.29297Z",
|
|
38
|
-
fill: iconColor
|
|
39
|
-
})
|
|
40
|
-
})]
|
|
41
|
-
})
|
|
42
|
-
}, filter.id);
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx
|
|
49
|
-
const DynamicFiltersScrollbar = ({ availableDynamicFilters, filterBarClassNames, filterDefaultClasses, filterHoverClasses, onToggleDynamicFilter }) => {
|
|
50
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_indiana_drag_scroll.default, {
|
|
51
|
-
className: filterBarClassNames,
|
|
52
|
-
hideScrollbars: true,
|
|
53
|
-
children: availableDynamicFilters.map(({ name, displayName }) => {
|
|
54
|
-
const buttonClasses = (0, classnames.default)("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses);
|
|
55
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
56
|
-
type: "button",
|
|
57
|
-
className: buttonClasses,
|
|
58
|
-
onClick: () => {
|
|
59
|
-
onToggleDynamicFilter({
|
|
60
|
-
filter: name,
|
|
61
|
-
dynamicFilterDisplayName: displayName
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
65
|
-
variant: "body3",
|
|
66
|
-
children: displayName
|
|
67
|
-
})
|
|
68
|
-
}, name);
|
|
69
|
-
})
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
//#endregion
|
|
74
|
-
Object.defineProperty(exports, 'AppliedFiltersScrollbar', {
|
|
75
|
-
enumerable: true,
|
|
76
|
-
get: function () {
|
|
77
|
-
return AppliedFiltersScrollbar;
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
Object.defineProperty(exports, 'DynamicFiltersScrollbar', {
|
|
81
|
-
enumerable: true,
|
|
82
|
-
get: function () {
|
|
83
|
-
return DynamicFiltersScrollbar;
|
|
84
|
-
}
|
|
85
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { motion } from "framer-motion";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import OutlinedStar from "@envive-ai/react-icons/OutlinedStar";
|
|
6
|
-
|
|
7
|
-
//#region src/components/SearchAutocomplete/SearchAutocomplete.tsx
|
|
8
|
-
const SearchAutocomplete = ({ id, results, focusedIndex, onSuggestionSelect, iconColor }) => {
|
|
9
|
-
if (results.length === 0) return null;
|
|
10
|
-
return /* @__PURE__ */ jsx(motion.div, {
|
|
11
|
-
className: "spiffy-tw-h-full",
|
|
12
|
-
initial: {
|
|
13
|
-
opacity: 0,
|
|
14
|
-
y: -10
|
|
15
|
-
},
|
|
16
|
-
animate: {
|
|
17
|
-
opacity: 1,
|
|
18
|
-
y: 0
|
|
19
|
-
},
|
|
20
|
-
exit: {
|
|
21
|
-
opacity: 0,
|
|
22
|
-
y: -10
|
|
23
|
-
},
|
|
24
|
-
transition: { duration: .2 },
|
|
25
|
-
children: /* @__PURE__ */ jsx("ul", {
|
|
26
|
-
id,
|
|
27
|
-
role: "listbox",
|
|
28
|
-
className: "spiffy-tw-mt-4 spiffy-tw-space-y-2",
|
|
29
|
-
children: results.map((result, index) => /* @__PURE__ */ jsxs("li", {
|
|
30
|
-
id: `option-${index}`,
|
|
31
|
-
role: "option",
|
|
32
|
-
"aria-selected": index === focusedIndex,
|
|
33
|
-
className: classNames("spiffy-tw-flex spiffy-tw-items-center spiffy-tw-cursor-pointer spiffy-tw-py-1", { "spiffy-tw-bg-neutral-200": index === focusedIndex }, "hover:spiffy-tw-bg-neutral-100"),
|
|
34
|
-
onClick: () => onSuggestionSelect(result, index),
|
|
35
|
-
onKeyDown: (event) => {
|
|
36
|
-
if (event.key === "Enter" || event.keyCode === 13) onSuggestionSelect(result, index);
|
|
37
|
-
},
|
|
38
|
-
children: [/* @__PURE__ */ jsx(OutlinedStar, {
|
|
39
|
-
className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-2",
|
|
40
|
-
fill: iconColor
|
|
41
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
42
|
-
className: "spiffy-tw-font-bold",
|
|
43
|
-
children: result
|
|
44
|
-
})]
|
|
45
|
-
}, index))
|
|
46
|
-
})
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
//#endregion
|
|
51
|
-
export { SearchAutocomplete };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
let framer_motion = require("framer-motion");
|
|
3
|
-
framer_motion = require_chunk.__toESM(framer_motion);
|
|
4
|
-
let react = require("react");
|
|
5
|
-
react = require_chunk.__toESM(react);
|
|
6
|
-
let classnames = require("classnames");
|
|
7
|
-
classnames = require_chunk.__toESM(classnames);
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
10
|
-
let __envive_ai_react_icons_OutlinedStar = require("@envive-ai/react-icons/OutlinedStar");
|
|
11
|
-
__envive_ai_react_icons_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_OutlinedStar);
|
|
12
|
-
|
|
13
|
-
//#region src/components/SearchAutocomplete/SearchAutocomplete.tsx
|
|
14
|
-
const SearchAutocomplete = ({ id, results, focusedIndex, onSuggestionSelect, iconColor }) => {
|
|
15
|
-
if (results.length === 0) return null;
|
|
16
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
17
|
-
className: "spiffy-tw-h-full",
|
|
18
|
-
initial: {
|
|
19
|
-
opacity: 0,
|
|
20
|
-
y: -10
|
|
21
|
-
},
|
|
22
|
-
animate: {
|
|
23
|
-
opacity: 1,
|
|
24
|
-
y: 0
|
|
25
|
-
},
|
|
26
|
-
exit: {
|
|
27
|
-
opacity: 0,
|
|
28
|
-
y: -10
|
|
29
|
-
},
|
|
30
|
-
transition: { duration: .2 },
|
|
31
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
32
|
-
id,
|
|
33
|
-
role: "listbox",
|
|
34
|
-
className: "spiffy-tw-mt-4 spiffy-tw-space-y-2",
|
|
35
|
-
children: results.map((result, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
|
|
36
|
-
id: `option-${index}`,
|
|
37
|
-
role: "option",
|
|
38
|
-
"aria-selected": index === focusedIndex,
|
|
39
|
-
className: (0, classnames.default)("spiffy-tw-flex spiffy-tw-items-center spiffy-tw-cursor-pointer spiffy-tw-py-1", { "spiffy-tw-bg-neutral-200": index === focusedIndex }, "hover:spiffy-tw-bg-neutral-100"),
|
|
40
|
-
onClick: () => onSuggestionSelect(result, index),
|
|
41
|
-
onKeyDown: (event) => {
|
|
42
|
-
if (event.key === "Enter" || event.keyCode === 13) onSuggestionSelect(result, index);
|
|
43
|
-
},
|
|
44
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_OutlinedStar.default, {
|
|
45
|
-
className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-2",
|
|
46
|
-
fill: iconColor
|
|
47
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
48
|
-
className: "spiffy-tw-font-bold",
|
|
49
|
-
children: result
|
|
50
|
-
})]
|
|
51
|
-
}, index))
|
|
52
|
-
})
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
//#endregion
|
|
57
|
-
Object.defineProperty(exports, 'SearchAutocomplete', {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () {
|
|
60
|
-
return SearchAutocomplete;
|
|
61
|
-
}
|
|
62
|
-
});
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { ColorNames, colorVar } from "./colorsConfig-DEfiLHH0.js";
|
|
2
|
-
import { TextInput } from "./TextInput-DoM41M53.js";
|
|
3
|
-
import React, { useImperativeHandle, useRef } from "react";
|
|
4
|
-
import classNames from "classnames";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import MagnifyingGlassStarVariant from "@envive-ai/react-icons/MagnifyingGlassStarVariant";
|
|
7
|
-
import { IconClose } from "@envive-ai/react-icons/src/index.js";
|
|
8
|
-
|
|
9
|
-
//#region src/components/SearchInput/searchInputVariants.ts
|
|
10
|
-
const searchInputVariantClasses = { standard: {
|
|
11
|
-
searchInputIconColor: "transparent",
|
|
12
|
-
searchInputBorderColor: "spiffy-tw-border-[--spiffy-colors-border-medium]",
|
|
13
|
-
searchInputCloseIconClasses: "[&>circle]:spiffy-tw-fill-[--spiffy-colors-text-secondary] [&>path]:spiffy-tw-fill-[#fff]",
|
|
14
|
-
searchInputActiveStarClasses: `first:[&>path]:spiffy-tw-stroke-[--spiffy-colors-accent-primary] first:[&>path]:spiffy-tw-fill-[--spiffy-colors-accent-primary]`,
|
|
15
|
-
autocompleteIconColor: colorVar(ColorNames.BackgroundPrimary),
|
|
16
|
-
searchInputClasses: "spiffy-tw-text-[--spiffy-colors-text-primary] placeholder:spiffy-tw-text-[--spiffy-colors-text-secondary] spiffy-tw-text-[16px] spiffy-tw-font-normal spiffy-tw-leading-[148%] placeholder:spiffy-tw-font-medium placeholder:spiffy-tw-leading-[124%]",
|
|
17
|
-
placeholderVariant: "h2"
|
|
18
|
-
} };
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/components/SearchInput/SearchInput.tsx
|
|
22
|
-
const SearchInput = React.forwardRef(({ searchInputVariant = "standard", value, placeholder, suggestions, className, dataTestId, ariaActivedescendant, onKeyDown, onChange, onFocus, onBlur }, ref) => {
|
|
23
|
-
const localInputRef = useRef(null);
|
|
24
|
-
const { searchInputClasses: inputClassName, searchInputIconColor: iconColor, searchInputBorderColor: borderColor, searchInputCloseIconClasses: closeIconClasses, searchInputActiveStarClasses, placeholderVariant } = searchInputVariantClasses[searchInputVariant];
|
|
25
|
-
useImperativeHandle(ref, () => localInputRef.current, []);
|
|
26
|
-
const magnifyingGlassClassesBase = [
|
|
27
|
-
"spiffy-tw-w-[24px]",
|
|
28
|
-
"spiffy-tw-h-[32px]",
|
|
29
|
-
"spiffy-tw-stroke-width-1",
|
|
30
|
-
"sm:spiffy-tw-w-[32px]"
|
|
31
|
-
];
|
|
32
|
-
const magnifyingGlassClassesInactive = classNames(magnifyingGlassClassesBase);
|
|
33
|
-
const magnifyingGlassClassesActive = classNames([...magnifyingGlassClassesBase, searchInputActiveStarClasses]);
|
|
34
|
-
const containerClasses = classNames("spiffy-global-search-input-container", "spiffy-tw-relative spiffy-tw-flex spiffy-tw-items-center", className);
|
|
35
|
-
const inputClasses = classNames("spiffy-global-search-input", "spiffy-tw-flex-grow spiffy-tw-p-2 spiffy-tw-px-[42px] sm:spiffy-tw-p-3 sm:spiffy-tw-px-[48px]", "spiffy-tw-border", "spiffy-tw-text-base", inputClassName);
|
|
36
|
-
const closeButtonIconClassName = classNames([
|
|
37
|
-
"spiffy-tw-w-[16px]",
|
|
38
|
-
"spiffy-tw-h-[16px]",
|
|
39
|
-
"sm:spiffy-tw-w-[24px]",
|
|
40
|
-
"sm:spiffy-tw-h-[24px]",
|
|
41
|
-
"spiffy-tw-cursor-pointer",
|
|
42
|
-
closeIconClasses
|
|
43
|
-
]);
|
|
44
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
45
|
-
className: containerClasses,
|
|
46
|
-
"data-testid": dataTestId,
|
|
47
|
-
children: [
|
|
48
|
-
/* @__PURE__ */ jsx("div", {
|
|
49
|
-
className: "spiffy-tw-absolute spiffy-tw-left-3 spiffy-tw-top-1/2 spiffy-tw--translate-y-1/2",
|
|
50
|
-
children: /* @__PURE__ */ jsx(MagnifyingGlassStarVariant, {
|
|
51
|
-
className: value.length > 0 ? magnifyingGlassClassesActive : magnifyingGlassClassesInactive,
|
|
52
|
-
stroke: iconColor,
|
|
53
|
-
strokeWidth: "1px"
|
|
54
|
-
})
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ jsx(TextInput, {
|
|
57
|
-
value,
|
|
58
|
-
onChange: (event) => onChange(event.target.value),
|
|
59
|
-
onFocus,
|
|
60
|
-
onBlur,
|
|
61
|
-
onKeyDown,
|
|
62
|
-
placeholder,
|
|
63
|
-
className: inputClasses,
|
|
64
|
-
placeholderVariant,
|
|
65
|
-
"aria-label": "Search",
|
|
66
|
-
"aria-autocomplete": "list",
|
|
67
|
-
"aria-expanded": !!suggestions && suggestions.length > 0,
|
|
68
|
-
"aria-controls": "autocomplete-results",
|
|
69
|
-
"aria-activedescendant": ariaActivedescendant,
|
|
70
|
-
borderRadius: "xl",
|
|
71
|
-
borderColorClass: borderColor,
|
|
72
|
-
ref: localInputRef
|
|
73
|
-
}),
|
|
74
|
-
value && /* @__PURE__ */ jsx("button", {
|
|
75
|
-
onClick: () => {
|
|
76
|
-
onChange("");
|
|
77
|
-
localInputRef.current?.focus();
|
|
78
|
-
},
|
|
79
|
-
className: "spiffy-tw-absolute spiffy-tw-right-5 spiffy-tw-top-1/2 spiffy-tw--translate-y-1/2 spiffy-tw-text-neutral-500 hover:spiffy-tw-text-neutral-700",
|
|
80
|
-
"aria-label": "Clear search input",
|
|
81
|
-
type: "button",
|
|
82
|
-
children: /* @__PURE__ */ jsx(IconClose, { className: closeButtonIconClassName })
|
|
83
|
-
})
|
|
84
|
-
]
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
//#endregion
|
|
89
|
-
export { SearchInput, searchInputVariantClasses };
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_colorsConfig = require('./colorsConfig-D-MZuBvt.cjs');
|
|
3
|
-
const require_TextInput = require('./TextInput-B3dTeD3q.cjs');
|
|
4
|
-
let react = require("react");
|
|
5
|
-
react = require_chunk.__toESM(react);
|
|
6
|
-
let classnames = require("classnames");
|
|
7
|
-
classnames = require_chunk.__toESM(classnames);
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
10
|
-
let __envive_ai_react_icons_MagnifyingGlassStarVariant = require("@envive-ai/react-icons/MagnifyingGlassStarVariant");
|
|
11
|
-
__envive_ai_react_icons_MagnifyingGlassStarVariant = require_chunk.__toESM(__envive_ai_react_icons_MagnifyingGlassStarVariant);
|
|
12
|
-
let __envive_ai_react_icons_src_index_js = require("@envive-ai/react-icons/src/index.js");
|
|
13
|
-
__envive_ai_react_icons_src_index_js = require_chunk.__toESM(__envive_ai_react_icons_src_index_js);
|
|
14
|
-
|
|
15
|
-
//#region src/components/SearchInput/searchInputVariants.ts
|
|
16
|
-
const searchInputVariantClasses = { standard: {
|
|
17
|
-
searchInputIconColor: "transparent",
|
|
18
|
-
searchInputBorderColor: "spiffy-tw-border-[--spiffy-colors-border-medium]",
|
|
19
|
-
searchInputCloseIconClasses: "[&>circle]:spiffy-tw-fill-[--spiffy-colors-text-secondary] [&>path]:spiffy-tw-fill-[#fff]",
|
|
20
|
-
searchInputActiveStarClasses: `first:[&>path]:spiffy-tw-stroke-[--spiffy-colors-accent-primary] first:[&>path]:spiffy-tw-fill-[--spiffy-colors-accent-primary]`,
|
|
21
|
-
autocompleteIconColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundPrimary),
|
|
22
|
-
searchInputClasses: "spiffy-tw-text-[--spiffy-colors-text-primary] placeholder:spiffy-tw-text-[--spiffy-colors-text-secondary] spiffy-tw-text-[16px] spiffy-tw-font-normal spiffy-tw-leading-[148%] placeholder:spiffy-tw-font-medium placeholder:spiffy-tw-leading-[124%]",
|
|
23
|
-
placeholderVariant: "h2"
|
|
24
|
-
} };
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/components/SearchInput/SearchInput.tsx
|
|
28
|
-
const SearchInput = react.default.forwardRef(({ searchInputVariant = "standard", value, placeholder, suggestions, className, dataTestId, ariaActivedescendant, onKeyDown, onChange, onFocus, onBlur }, ref) => {
|
|
29
|
-
const localInputRef = (0, react.useRef)(null);
|
|
30
|
-
const { searchInputClasses: inputClassName, searchInputIconColor: iconColor, searchInputBorderColor: borderColor, searchInputCloseIconClasses: closeIconClasses, searchInputActiveStarClasses, placeholderVariant } = searchInputVariantClasses[searchInputVariant];
|
|
31
|
-
(0, react.useImperativeHandle)(ref, () => localInputRef.current, []);
|
|
32
|
-
const magnifyingGlassClassesBase = [
|
|
33
|
-
"spiffy-tw-w-[24px]",
|
|
34
|
-
"spiffy-tw-h-[32px]",
|
|
35
|
-
"spiffy-tw-stroke-width-1",
|
|
36
|
-
"sm:spiffy-tw-w-[32px]"
|
|
37
|
-
];
|
|
38
|
-
const magnifyingGlassClassesInactive = (0, classnames.default)(magnifyingGlassClassesBase);
|
|
39
|
-
const magnifyingGlassClassesActive = (0, classnames.default)([...magnifyingGlassClassesBase, searchInputActiveStarClasses]);
|
|
40
|
-
const containerClasses = (0, classnames.default)("spiffy-global-search-input-container", "spiffy-tw-relative spiffy-tw-flex spiffy-tw-items-center", className);
|
|
41
|
-
const inputClasses = (0, classnames.default)("spiffy-global-search-input", "spiffy-tw-flex-grow spiffy-tw-p-2 spiffy-tw-px-[42px] sm:spiffy-tw-p-3 sm:spiffy-tw-px-[48px]", "spiffy-tw-border", "spiffy-tw-text-base", inputClassName);
|
|
42
|
-
const closeButtonIconClassName = (0, classnames.default)([
|
|
43
|
-
"spiffy-tw-w-[16px]",
|
|
44
|
-
"spiffy-tw-h-[16px]",
|
|
45
|
-
"sm:spiffy-tw-w-[24px]",
|
|
46
|
-
"sm:spiffy-tw-h-[24px]",
|
|
47
|
-
"spiffy-tw-cursor-pointer",
|
|
48
|
-
closeIconClasses
|
|
49
|
-
]);
|
|
50
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
51
|
-
className: containerClasses,
|
|
52
|
-
"data-testid": dataTestId,
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
55
|
-
className: "spiffy-tw-absolute spiffy-tw-left-3 spiffy-tw-top-1/2 spiffy-tw--translate-y-1/2",
|
|
56
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_MagnifyingGlassStarVariant.default, {
|
|
57
|
-
className: value.length > 0 ? magnifyingGlassClassesActive : magnifyingGlassClassesInactive,
|
|
58
|
-
stroke: iconColor,
|
|
59
|
-
strokeWidth: "1px"
|
|
60
|
-
})
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_TextInput.TextInput, {
|
|
63
|
-
value,
|
|
64
|
-
onChange: (event) => onChange(event.target.value),
|
|
65
|
-
onFocus,
|
|
66
|
-
onBlur,
|
|
67
|
-
onKeyDown,
|
|
68
|
-
placeholder,
|
|
69
|
-
className: inputClasses,
|
|
70
|
-
placeholderVariant,
|
|
71
|
-
"aria-label": "Search",
|
|
72
|
-
"aria-autocomplete": "list",
|
|
73
|
-
"aria-expanded": !!suggestions && suggestions.length > 0,
|
|
74
|
-
"aria-controls": "autocomplete-results",
|
|
75
|
-
"aria-activedescendant": ariaActivedescendant,
|
|
76
|
-
borderRadius: "xl",
|
|
77
|
-
borderColorClass: borderColor,
|
|
78
|
-
ref: localInputRef
|
|
79
|
-
}),
|
|
80
|
-
value && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
81
|
-
onClick: () => {
|
|
82
|
-
onChange("");
|
|
83
|
-
localInputRef.current?.focus();
|
|
84
|
-
},
|
|
85
|
-
className: "spiffy-tw-absolute spiffy-tw-right-5 spiffy-tw-top-1/2 spiffy-tw--translate-y-1/2 spiffy-tw-text-neutral-500 hover:spiffy-tw-text-neutral-700",
|
|
86
|
-
"aria-label": "Clear search input",
|
|
87
|
-
type: "button",
|
|
88
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_src_index_js.IconClose, { className: closeButtonIconClassName })
|
|
89
|
-
})
|
|
90
|
-
]
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
//#endregion
|
|
95
|
-
Object.defineProperty(exports, 'SearchInput', {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
get: function () {
|
|
98
|
-
return SearchInput;
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(exports, 'searchInputVariantClasses', {
|
|
102
|
-
enumerable: true,
|
|
103
|
-
get: function () {
|
|
104
|
-
return searchInputVariantClasses;
|
|
105
|
-
}
|
|
106
|
-
});
|
package/dist/Styles/index.cjs
DELETED
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
3
|
-
let __tailwindcss_typography = require("@tailwindcss/typography");
|
|
4
|
-
__tailwindcss_typography = require_chunk.__toESM(__tailwindcss_typography);
|
|
5
|
-
|
|
6
|
-
//#region src/components/Styles/EnviveTailwindPreset.ts
|
|
7
|
-
/**
|
|
8
|
-
* Helper function to create content paths for the Envive React Toolkit
|
|
9
|
-
* This should be used in the consuming application's tailwind.config.js
|
|
10
|
-
*
|
|
11
|
-
* @param additionalPaths - Additional content paths to include
|
|
12
|
-
* @returns Array of content paths including the toolkit components
|
|
13
|
-
*/
|
|
14
|
-
const createEnviveContentPaths = (additionalPaths = []) => {
|
|
15
|
-
let toolkitPath;
|
|
16
|
-
try {
|
|
17
|
-
if (typeof require !== "undefined" && typeof require.resolve === "function") {
|
|
18
|
-
const path = require("path");
|
|
19
|
-
toolkitPath = path.join(path.dirname(require.resolve("@envive-ai/react-toolkit/package.json")), "dist/**/*.{js,cjs}");
|
|
20
|
-
} else toolkitPath = "./node_modules/@envive-ai/react-toolkit/dist/**/*.{js,cjs}";
|
|
21
|
-
} catch {
|
|
22
|
-
toolkitPath = "./node_modules/@envive-ai/react-toolkit/dist/**/*.{js,cjs}";
|
|
23
|
-
}
|
|
24
|
-
return [toolkitPath, ...additionalPaths];
|
|
25
|
-
};
|
|
26
|
-
/** @type {import('tailwindcss').Config} */
|
|
27
|
-
const EnviveTailwindPreset = {
|
|
28
|
-
future: { hoverOnlyWhenSupported: true },
|
|
29
|
-
prefix: "spiffy-tw-",
|
|
30
|
-
theme: {
|
|
31
|
-
screens: {
|
|
32
|
-
sm: "480px",
|
|
33
|
-
md: "768px",
|
|
34
|
-
lg: "976px",
|
|
35
|
-
xl: "1440px"
|
|
36
|
-
},
|
|
37
|
-
fontFamily: { sans: [
|
|
38
|
-
"Inter Variable",
|
|
39
|
-
"Poppins",
|
|
40
|
-
"sans-serif"
|
|
41
|
-
] },
|
|
42
|
-
fontSize: {
|
|
43
|
-
xs: "12px",
|
|
44
|
-
sm: "14px",
|
|
45
|
-
md: "16px",
|
|
46
|
-
lg: "18px",
|
|
47
|
-
xl: "20px"
|
|
48
|
-
},
|
|
49
|
-
fontWeight: {
|
|
50
|
-
normal: 400,
|
|
51
|
-
medium: 500,
|
|
52
|
-
semibold: 600,
|
|
53
|
-
bold: 700
|
|
54
|
-
},
|
|
55
|
-
spacing: {
|
|
56
|
-
px: "1px",
|
|
57
|
-
.5: "2px",
|
|
58
|
-
1: "4px",
|
|
59
|
-
1.5: "6px",
|
|
60
|
-
2: "8px",
|
|
61
|
-
2.5: "10px",
|
|
62
|
-
3: "12px",
|
|
63
|
-
3.5: "14px",
|
|
64
|
-
4: "16px",
|
|
65
|
-
5: "20px",
|
|
66
|
-
6: "24px",
|
|
67
|
-
7: "28px",
|
|
68
|
-
8: "32px",
|
|
69
|
-
9: "36px",
|
|
70
|
-
10: "40px",
|
|
71
|
-
12: "48px",
|
|
72
|
-
14: "56px",
|
|
73
|
-
16: "64px",
|
|
74
|
-
20: "80px",
|
|
75
|
-
24: "96px",
|
|
76
|
-
28: "112px",
|
|
77
|
-
32: "128px",
|
|
78
|
-
36: "144px",
|
|
79
|
-
40: "160px",
|
|
80
|
-
44: "176px",
|
|
81
|
-
48: "192px",
|
|
82
|
-
52: "208px",
|
|
83
|
-
56: "224px",
|
|
84
|
-
60: "240px",
|
|
85
|
-
64: "256px",
|
|
86
|
-
72: "288px",
|
|
87
|
-
80: "320px",
|
|
88
|
-
96: "384px"
|
|
89
|
-
},
|
|
90
|
-
borderRadius: {
|
|
91
|
-
none: "0",
|
|
92
|
-
sm: "2px",
|
|
93
|
-
base: "4px",
|
|
94
|
-
md: "6px",
|
|
95
|
-
lg: "8px",
|
|
96
|
-
xl: "12px",
|
|
97
|
-
"2xl": "16px",
|
|
98
|
-
"3xl": "24px",
|
|
99
|
-
full: "9999px"
|
|
100
|
-
},
|
|
101
|
-
extend: {
|
|
102
|
-
keyframes: {
|
|
103
|
-
pulse: {
|
|
104
|
-
"0%": {
|
|
105
|
-
borderColor: "#EDF2F7",
|
|
106
|
-
background: "#EDF2F7"
|
|
107
|
-
},
|
|
108
|
-
"50%": {},
|
|
109
|
-
"100%": {
|
|
110
|
-
borderColor: "#A0AEC0",
|
|
111
|
-
background: "#A0AEC0"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
ellipse_162_1_flow_1: {
|
|
115
|
-
from: {
|
|
116
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
117
|
-
transformOrigin: "8.5px 9.5px",
|
|
118
|
-
cy: "9.5px"
|
|
119
|
-
},
|
|
120
|
-
to: {
|
|
121
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
122
|
-
transformOrigin: "8.5px 7.5px",
|
|
123
|
-
cy: "7.5px"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
ellipse_162_1_flow_2: {
|
|
127
|
-
from: {
|
|
128
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
129
|
-
transformOrigin: "8.5px 7.5px",
|
|
130
|
-
cy: "7.5px"
|
|
131
|
-
},
|
|
132
|
-
to: {
|
|
133
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
134
|
-
transformOrigin: "8.5px 9.5px",
|
|
135
|
-
cy: "9.5px"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
ellipse_162_1_flow_5: {
|
|
139
|
-
from: {
|
|
140
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
141
|
-
transformOrigin: "8.5px 9.5px",
|
|
142
|
-
cy: "9.5px"
|
|
143
|
-
},
|
|
144
|
-
to: {
|
|
145
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
146
|
-
transformOrigin: "8.5px 7.5px",
|
|
147
|
-
cy: "7.5px"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
ellipse_162_1_flow_6: {
|
|
151
|
-
from: {
|
|
152
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
153
|
-
transformOrigin: "8.5px 7.5px",
|
|
154
|
-
cy: "7.5px"
|
|
155
|
-
},
|
|
156
|
-
to: {
|
|
157
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
158
|
-
transformOrigin: "8.5px 9.5px",
|
|
159
|
-
cy: "9.5px"
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
ellipse_163_2_flow_2: {
|
|
163
|
-
from: {
|
|
164
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
165
|
-
transformOrigin: "16.5px 9.5px",
|
|
166
|
-
cy: "9.5px"
|
|
167
|
-
},
|
|
168
|
-
to: {
|
|
169
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
170
|
-
transformOrigin: "16.5px 7.5px",
|
|
171
|
-
cy: "7.5px"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
ellipse_163_2_flow_3: {
|
|
175
|
-
from: {
|
|
176
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
177
|
-
transformOrigin: "16.5px 7.5px",
|
|
178
|
-
cy: "7.5px"
|
|
179
|
-
},
|
|
180
|
-
to: {
|
|
181
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
182
|
-
transformOrigin: "16.5px 9.5px",
|
|
183
|
-
cy: "9.5px"
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
ellipse_163_2_flow_6: {
|
|
187
|
-
from: {
|
|
188
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
189
|
-
transformOrigin: "16.5px 9.5px",
|
|
190
|
-
cy: "9.5px"
|
|
191
|
-
},
|
|
192
|
-
to: {
|
|
193
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
194
|
-
transformOrigin: "16.5px 7.5px",
|
|
195
|
-
cy: "7.5px"
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
ellipse_163_2_flow_7: {
|
|
199
|
-
from: {
|
|
200
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
201
|
-
transformOrigin: "16.5px 7.5px",
|
|
202
|
-
cy: "7.5px"
|
|
203
|
-
},
|
|
204
|
-
to: {
|
|
205
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
206
|
-
transformOrigin: "16.5px 9.5px",
|
|
207
|
-
cy: "9.5px"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
ellipse_164_3_flow_3: {
|
|
211
|
-
from: {
|
|
212
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
213
|
-
transformOrigin: "24.5px 9.5px",
|
|
214
|
-
cy: "9.5px"
|
|
215
|
-
},
|
|
216
|
-
to: {
|
|
217
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
218
|
-
transformOrigin: "24.5px 7.5px",
|
|
219
|
-
cy: "7.5px"
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
ellipse_164_3_flow_4: {
|
|
223
|
-
from: {
|
|
224
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
225
|
-
transformOrigin: "24.5px 7.5px",
|
|
226
|
-
cy: "7.5px"
|
|
227
|
-
},
|
|
228
|
-
to: {
|
|
229
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
230
|
-
transformOrigin: "24.5px 9.5px",
|
|
231
|
-
cy: "9.5px"
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
ellipse_164_3_flow_7: {
|
|
235
|
-
from: {
|
|
236
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
237
|
-
transformOrigin: "24.5px 9.5px",
|
|
238
|
-
cy: "9.5px"
|
|
239
|
-
},
|
|
240
|
-
to: {
|
|
241
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
242
|
-
transformOrigin: "24.5px 7.5px",
|
|
243
|
-
cy: "7.5px"
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
ellipse_164_3_flow_8: {
|
|
247
|
-
from: {
|
|
248
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
249
|
-
transformOrigin: "24.5px 7.5px",
|
|
250
|
-
cy: "7.5px"
|
|
251
|
-
},
|
|
252
|
-
to: {
|
|
253
|
-
transform: "translate(0px, 0px) rotate(0deg)",
|
|
254
|
-
transformOrigin: "24.5px 9.5px",
|
|
255
|
-
cy: "9.5px"
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
animation: {
|
|
260
|
-
pulse: "pulse 0.8s linear infinite alternate",
|
|
261
|
-
"ellipse-1-complete": "ellipse_162_1_flow_1 0.3s ease-out 0s forwards, ellipse_162_1_flow_2 0.2s ease-out 0.3s forwards, ellipse_162_1_flow_5 0.2s ease-out 0.91s forwards, ellipse_162_1_flow_6 0.2s ease-out 1.11s forwards",
|
|
262
|
-
"ellipse-2-complete": "ellipse_163_2_flow_2 0.2s ease-out 0.3s forwards, ellipse_163_2_flow_3 0.2s ease-out 0.5s forwards, ellipse_163_2_flow_6 0.2s ease-out 1.11s forwards, ellipse_163_2_flow_7 0.2s ease-out 1.31s forwards",
|
|
263
|
-
"ellipse-3-complete": "ellipse_164_3_flow_3 0.2s ease-out 0.5s forwards, ellipse_164_3_flow_4 0.2s ease-out 0.7s forwards, ellipse_164_3_flow_7 0.2s ease-out 1.31s forwards, ellipse_164_3_flow_8 0.2s ease-out 1.51s forwards"
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
content: [createEnviveContentPaths(["./index.html", "./src/**/*.{js,ts,jsx,tsx}"])],
|
|
268
|
-
plugins: [__tailwindcss_typography.default]
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
//#endregion
|
|
272
|
-
exports.EnviveTailwindPreset = EnviveTailwindPreset;
|
|
273
|
-
exports.createEnviveContentPaths = createEnviveContentPaths;
|
|
274
|
-
exports.default = EnviveTailwindPreset;
|