@envive-ai/react-toolkit 0.1.8 → 0.1.10
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.d.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.cts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
- package/dist/ButtonBase/index.d.cts +2 -2
- package/dist/ButtonBase/index.d.ts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/FilterScrollbar/index.cjs +1 -1
- package/dist/FilterScrollbar/index.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- package/dist/FilterScrollbar/index.js +1 -1
- package/dist/Headline/index.cjs +1 -1
- package/dist/Headline/index.d.cts +2 -2
- package/dist/Headline/index.d.ts +2 -2
- package/dist/Headline/index.js +1 -1
- package/dist/ImageWithFallback/index.cjs +1 -1
- package/dist/ImageWithFallback/index.d.cts +2 -2
- package/dist/ImageWithFallback/index.js +1 -1
- 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-BYjPKgX3.cjs → ProductCard-CymUvJnC.cjs} +3 -3
- package/dist/{ProductCard-DCFMFwCH.js → ProductCard-Dkkhl9pk.js} +3 -3
- package/dist/ProductGrid/index.cjs +5 -5
- package/dist/ProductGrid/index.d.cts +3 -3
- package/dist/ProductGrid/index.d.ts +3 -3
- package/dist/ProductGrid/index.js +5 -5
- package/dist/{ProductGrid-BoJzUK_H.js → ProductGrid-B3Ypqh7j.js} +1 -1
- package/dist/{ProductGrid-CJmmGxBQ.cjs → ProductGrid-ZNRujkuN.cjs} +1 -1
- package/dist/SearchAutocomplete/index.cjs +1 -1
- package/dist/SearchAutocomplete/index.js +1 -1
- package/dist/SearchFilter/index.cjs +1 -1
- package/dist/SearchFilter/index.d.cts +4 -4
- package/dist/SearchFilter/index.d.ts +4 -4
- package/dist/SearchFilter/index.js +1 -1
- package/dist/SearchInput/index.cjs +3 -3
- package/dist/SearchInput/index.d.cts +1 -1
- package/dist/SearchInput/index.d.ts +1 -1
- package/dist/SearchInput/index.js +3 -3
- package/dist/{SearchInput-DxDC1mcq.js → SearchInput-BT1rrc4F.js} +2 -2
- package/dist/{SearchInput-BFlu_3iT.cjs → SearchInput-CdR_nsR3.cjs} +2 -2
- package/dist/SearchInputForm/index.cjs +4 -4
- package/dist/SearchInputForm/index.d.cts +1 -1
- package/dist/SearchInputForm/index.d.ts +1 -1
- package/dist/SearchInputForm/index.js +4 -4
- package/dist/SearchResultsContent/index.cjs +15 -29
- package/dist/SearchResultsContent/index.d.cts +5 -20
- package/dist/SearchResultsContent/index.d.ts +6 -21
- package/dist/SearchResultsContent/index.js +11 -24
- package/dist/SearchResultsFilterSidebar/index.cjs +3 -3
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +3 -3
- package/dist/SearchResultsStates/index.cjs +9 -9
- package/dist/SearchResultsStates/index.d.cts +5 -5
- package/dist/SearchResultsStates/index.d.ts +6 -6
- package/dist/SearchResultsStates/index.js +9 -9
- package/dist/{SearchResultsStates-CEi_RHna.js → SearchResultsStates-BxJphoL-.js} +4 -4
- package/dist/{SearchResultsStates-CJYgUA66.cjs → SearchResultsStates-ESlrrf20.cjs} +4 -4
- package/dist/SparkleAnimation/index.d.cts +2 -2
- package/dist/SparkleAnimation/index.d.ts +2 -2
- package/dist/Spinner/index.cjs +1 -1
- package/dist/Spinner/index.d.cts +2 -2
- package/dist/Spinner/index.d.ts +2 -2
- package/dist/Spinner/index.js +1 -1
- package/dist/Styles/index.cjs +274 -0
- package/dist/Styles/index.d.cts +258 -0
- package/dist/Styles/index.d.ts +258 -0
- package/dist/Styles/index.js +274 -0
- package/dist/SuggestionButton/index.d.cts +2 -2
- package/dist/SuggestionButton/index.d.ts +2 -2
- package/dist/Text/index.d.ts +2 -2
- package/dist/TextInput/index.cjs +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{index-B_tehqNH.d.ts → index-Bpjv4lP2.d.cts} +2 -2
- package/dist/{index-DO4ksBrm.d.ts → index-DggZTKvc.d.ts} +4 -4
- package/dist/{index-D8gHW7ox.d.ts → index-agU5rfIs.d.ts} +2 -2
- package/dist/{index-BCqBaFxm.d.cts → index-b4yAASuy.d.cts} +4 -4
- package/dist/{index-D4n-kZvz.d.cts → index-uU3sIiRx.d.ts} +2 -2
- package/dist/{searchFilterSidebarVariants-BWQyiKwS.js → searchFilterSidebarVariants-BnIcOVWR.js} +1 -1
- package/dist/{searchFilterSidebarVariants-D08jyA7U.cjs → searchFilterSidebarVariants-DVZ7wRlb.cjs} +1 -1
- package/package.json +13 -3
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +1 -1
- package/src/components/SearchResultsContent/index.ts +0 -1
- package/src/components/Styles/EnviveTailwindPreset.ts +285 -0
- package/src/components/Styles/index.ts +2 -0
- package/tailwind-preset.js +3 -0
- package/src/components/SearchResultsContent/utils.ts +0 -28
- /package/dist/{DynamicFiltersScrollbar-U9-CmTKd.cjs → DynamicFiltersScrollbar-ChvmEiPB.cjs} +0 -0
- /package/dist/{DynamicFiltersScrollbar-CCwh0QW4.js → DynamicFiltersScrollbar-Dev5vGsW.js} +0 -0
- /package/dist/{Headline-QpruZlcg.cjs → Headline-DSmu5Mg8.cjs} +0 -0
- /package/dist/{Headline-BkOW1lQj.js → Headline-DTaT30_m.js} +0 -0
- /package/dist/{ImageWithFallback-1LqhQK1q.cjs → ImageWithFallback-Cx-KNi-D.cjs} +0 -0
- /package/dist/{ImageWithFallback-Ckwsmd8P.js → ImageWithFallback-DqxjwO3i.js} +0 -0
- /package/dist/{SearchAutocomplete-BPjlo6qq.js → SearchAutocomplete-C4RY0IoT.js} +0 -0
- /package/dist/{SearchAutocomplete-BzaEXmRQ.cjs → SearchAutocomplete-hQDnKtwQ.cjs} +0 -0
- /package/dist/{SearchFilter-B8jliRly.cjs → SearchFilter-CLYCSNAa.cjs} +0 -0
- /package/dist/{SearchFilter-Da6SL9mU.js → SearchFilter-qQPpx-34.js} +0 -0
- /package/dist/{Spinner-BgGihEfJ.js → Spinner-BqTt55uu.js} +0 -0
- /package/dist/{Spinner-DzdIkS6t.cjs → Spinner-DjK8ts9E.cjs} +0 -0
- /package/dist/{TextInput-DLSgpP6b.cjs → TextInput-BJrdkZsM.cjs} +0 -0
- /package/dist/{TextInput-BFPXhSAY.js → TextInput-DIjjsSMg.js} +0 -0
- /package/dist/{colorsConfig-DCvy_dV4.cjs → colorsConfig-CJTKbJsm.cjs} +0 -0
- /package/dist/{colorsConfig-BQlaCfxi.js → colorsConfig-CYZ8f_gj.js} +0 -0
package/dist/{searchFilterSidebarVariants-D08jyA7U.cjs → searchFilterSidebarVariants-DVZ7wRlb.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_colorsConfig = require('./colorsConfig-
|
|
1
|
+
const require_colorsConfig = require('./colorsConfig-CJTKbJsm.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
|
|
4
4
|
const searchFilterSidebarVariantClasses = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envive-ai/react-toolkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "React component library for Envive services.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -17,15 +17,18 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist",
|
|
19
19
|
"src",
|
|
20
|
-
"!**/*.tsbuildinfo"
|
|
20
|
+
"!**/*.tsbuildinfo",
|
|
21
|
+
"tailwind-preset.js"
|
|
21
22
|
],
|
|
22
23
|
"scripts": {
|
|
23
24
|
"build": "tsdown",
|
|
25
|
+
"build:watch": "tsdown --watch",
|
|
24
26
|
"prepublish": "npm run build"
|
|
25
27
|
},
|
|
26
28
|
"dependencies": {
|
|
27
|
-
"@envive-ai/react-hooks": "^0.1.
|
|
29
|
+
"@envive-ai/react-hooks": "^0.1.5",
|
|
28
30
|
"@envive-ai/react-icons": "0.1.1",
|
|
31
|
+
"@tailwindcss/typography": "^0.5.15",
|
|
29
32
|
"classnames": "^2.5.1",
|
|
30
33
|
"framer-motion": "^12.23.12",
|
|
31
34
|
"react-icons": "^5.0.1",
|
|
@@ -36,7 +39,10 @@
|
|
|
36
39
|
"react-dom": "^18.3.1"
|
|
37
40
|
},
|
|
38
41
|
"devDependencies": {
|
|
42
|
+
"@types/node": "^24.3.2",
|
|
39
43
|
"@types/react": "^19.1.12",
|
|
44
|
+
"postcss": "^8.5.6",
|
|
45
|
+
"tailwindcss": "^3.4.17",
|
|
40
46
|
"tsdown": "^0.14.2",
|
|
41
47
|
"typescript": "~5.8.3"
|
|
42
48
|
},
|
|
@@ -113,6 +119,10 @@
|
|
|
113
119
|
"import": "./dist/Spinner/index.js",
|
|
114
120
|
"require": "./dist/Spinner/index.cjs"
|
|
115
121
|
},
|
|
122
|
+
"./Styles": {
|
|
123
|
+
"import": "./dist/Styles/index.js",
|
|
124
|
+
"require": "./dist/Styles/index.cjs"
|
|
125
|
+
},
|
|
116
126
|
"./SuggestionButton": {
|
|
117
127
|
"import": "./dist/SuggestionButton/index.js",
|
|
118
128
|
"require": "./dist/SuggestionButton/index.cjs"
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
SearchResultsGrid,
|
|
11
11
|
SearchResultsLoadingGrid,
|
|
12
12
|
} from '../SearchResultsStates';
|
|
13
|
-
import { SearchResultsState } from '
|
|
13
|
+
import { SearchResultsState } from '@envive-ai/react-hooks/hooks';
|
|
14
14
|
|
|
15
15
|
interface SearchResultsContentProps {
|
|
16
16
|
searchResultsState: SearchResultsState;
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
import typography from '@tailwindcss/typography';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Helper function to create content paths for the Envive React Toolkit
|
|
6
|
+
* This should be used in the consuming application's tailwind.config.js
|
|
7
|
+
*
|
|
8
|
+
* @param additionalPaths - Additional content paths to include
|
|
9
|
+
* @returns Array of content paths including the toolkit components
|
|
10
|
+
*/
|
|
11
|
+
export const createEnviveContentPaths = (additionalPaths: string[] = []): string[] => {
|
|
12
|
+
// Dynamically resolve the path to the toolkit's dist directory
|
|
13
|
+
let toolkitPath: string;
|
|
14
|
+
|
|
15
|
+
try {
|
|
16
|
+
// This will work in Node.js environments (build time)
|
|
17
|
+
if (typeof require !== 'undefined' && typeof require.resolve === 'function') {
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
19
|
+
const path = require('path');
|
|
20
|
+
toolkitPath = path.join(
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
22
|
+
path.dirname(require.resolve('@envive-ai/react-toolkit/package.json')),
|
|
23
|
+
'dist/**/*.{js,cjs}',
|
|
24
|
+
);
|
|
25
|
+
} else {
|
|
26
|
+
// Fallback for environments where require is not available
|
|
27
|
+
toolkitPath = './node_modules/@envive-ai/react-toolkit/dist/**/*.{js,cjs}';
|
|
28
|
+
}
|
|
29
|
+
} catch {
|
|
30
|
+
// Fallback if resolution fails
|
|
31
|
+
toolkitPath = './node_modules/@envive-ai/react-toolkit/dist/**/*.{js,cjs}';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return [
|
|
35
|
+
// Include the toolkit's built components
|
|
36
|
+
toolkitPath,
|
|
37
|
+
// Include any additional paths provided by the consuming application
|
|
38
|
+
...additionalPaths,
|
|
39
|
+
];
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @type {import('tailwindcss').Config} */
|
|
43
|
+
export const EnviveTailwindPreset = {
|
|
44
|
+
future: {
|
|
45
|
+
hoverOnlyWhenSupported: true,
|
|
46
|
+
},
|
|
47
|
+
prefix: 'spiffy-tw-',
|
|
48
|
+
theme: {
|
|
49
|
+
screens: {
|
|
50
|
+
sm: '480px',
|
|
51
|
+
md: '768px',
|
|
52
|
+
lg: '976px',
|
|
53
|
+
xl: '1440px',
|
|
54
|
+
},
|
|
55
|
+
fontFamily: {
|
|
56
|
+
sans: ['Inter Variable', 'Poppins', 'sans-serif'],
|
|
57
|
+
},
|
|
58
|
+
fontSize: {
|
|
59
|
+
xs: '12px',
|
|
60
|
+
sm: '14px',
|
|
61
|
+
md: '16px',
|
|
62
|
+
lg: '18px',
|
|
63
|
+
xl: '20px',
|
|
64
|
+
},
|
|
65
|
+
fontWeight: {
|
|
66
|
+
normal: 400,
|
|
67
|
+
medium: 500,
|
|
68
|
+
semibold: 600,
|
|
69
|
+
bold: 700,
|
|
70
|
+
},
|
|
71
|
+
spacing: {
|
|
72
|
+
px: '1px',
|
|
73
|
+
0.5: '2px',
|
|
74
|
+
1: '4px',
|
|
75
|
+
1.5: '6px',
|
|
76
|
+
2: '8px',
|
|
77
|
+
2.5: '10px',
|
|
78
|
+
3: '12px',
|
|
79
|
+
3.5: '14px',
|
|
80
|
+
4: '16px',
|
|
81
|
+
5: '20px',
|
|
82
|
+
6: '24px',
|
|
83
|
+
7: '28px',
|
|
84
|
+
8: '32px',
|
|
85
|
+
9: '36px',
|
|
86
|
+
10: '40px',
|
|
87
|
+
12: '48px',
|
|
88
|
+
14: '56px',
|
|
89
|
+
16: '64px',
|
|
90
|
+
20: '80px',
|
|
91
|
+
24: '96px',
|
|
92
|
+
28: '112px',
|
|
93
|
+
32: '128px',
|
|
94
|
+
36: '144px',
|
|
95
|
+
40: '160px',
|
|
96
|
+
44: '176px',
|
|
97
|
+
48: '192px',
|
|
98
|
+
52: '208px',
|
|
99
|
+
56: '224px',
|
|
100
|
+
60: '240px',
|
|
101
|
+
64: '256px',
|
|
102
|
+
72: '288px',
|
|
103
|
+
80: '320px',
|
|
104
|
+
96: '384px',
|
|
105
|
+
},
|
|
106
|
+
borderRadius: {
|
|
107
|
+
none: '0',
|
|
108
|
+
sm: '2px',
|
|
109
|
+
base: '4px',
|
|
110
|
+
md: '6px',
|
|
111
|
+
lg: '8px',
|
|
112
|
+
xl: '12px',
|
|
113
|
+
'2xl': '16px',
|
|
114
|
+
'3xl': '24px',
|
|
115
|
+
full: '9999px',
|
|
116
|
+
},
|
|
117
|
+
extend: {
|
|
118
|
+
keyframes: {
|
|
119
|
+
pulse: {
|
|
120
|
+
'0%': { borderColor: '#EDF2F7', background: '#EDF2F7' },
|
|
121
|
+
'50%': {},
|
|
122
|
+
'100%': { borderColor: '#A0AEC0', background: '#A0AEC0' },
|
|
123
|
+
},
|
|
124
|
+
ellipse_162_1_flow_1: {
|
|
125
|
+
from: {
|
|
126
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
127
|
+
transformOrigin: '8.5px 9.5px',
|
|
128
|
+
cy: '9.5px',
|
|
129
|
+
},
|
|
130
|
+
to: {
|
|
131
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
132
|
+
transformOrigin: '8.5px 7.5px',
|
|
133
|
+
cy: '7.5px',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
ellipse_162_1_flow_2: {
|
|
137
|
+
from: {
|
|
138
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
139
|
+
transformOrigin: '8.5px 7.5px',
|
|
140
|
+
cy: '7.5px',
|
|
141
|
+
},
|
|
142
|
+
to: {
|
|
143
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
144
|
+
transformOrigin: '8.5px 9.5px',
|
|
145
|
+
cy: '9.5px',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
ellipse_162_1_flow_5: {
|
|
149
|
+
from: {
|
|
150
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
151
|
+
transformOrigin: '8.5px 9.5px',
|
|
152
|
+
cy: '9.5px',
|
|
153
|
+
},
|
|
154
|
+
to: {
|
|
155
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
156
|
+
transformOrigin: '8.5px 7.5px',
|
|
157
|
+
cy: '7.5px',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
ellipse_162_1_flow_6: {
|
|
161
|
+
from: {
|
|
162
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
163
|
+
transformOrigin: '8.5px 7.5px',
|
|
164
|
+
cy: '7.5px',
|
|
165
|
+
},
|
|
166
|
+
to: {
|
|
167
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
168
|
+
transformOrigin: '8.5px 9.5px',
|
|
169
|
+
cy: '9.5px',
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
// Ellipse 163_2 animations
|
|
173
|
+
ellipse_163_2_flow_2: {
|
|
174
|
+
from: {
|
|
175
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
176
|
+
transformOrigin: '16.5px 9.5px',
|
|
177
|
+
cy: '9.5px',
|
|
178
|
+
},
|
|
179
|
+
to: {
|
|
180
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
181
|
+
transformOrigin: '16.5px 7.5px',
|
|
182
|
+
cy: '7.5px',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
ellipse_163_2_flow_3: {
|
|
186
|
+
from: {
|
|
187
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
188
|
+
transformOrigin: '16.5px 7.5px',
|
|
189
|
+
cy: '7.5px',
|
|
190
|
+
},
|
|
191
|
+
to: {
|
|
192
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
193
|
+
transformOrigin: '16.5px 9.5px',
|
|
194
|
+
cy: '9.5px',
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
ellipse_163_2_flow_6: {
|
|
198
|
+
from: {
|
|
199
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
200
|
+
transformOrigin: '16.5px 9.5px',
|
|
201
|
+
cy: '9.5px',
|
|
202
|
+
},
|
|
203
|
+
to: {
|
|
204
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
205
|
+
transformOrigin: '16.5px 7.5px',
|
|
206
|
+
cy: '7.5px',
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
ellipse_163_2_flow_7: {
|
|
210
|
+
from: {
|
|
211
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
212
|
+
transformOrigin: '16.5px 7.5px',
|
|
213
|
+
cy: '7.5px',
|
|
214
|
+
},
|
|
215
|
+
to: {
|
|
216
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
217
|
+
transformOrigin: '16.5px 9.5px',
|
|
218
|
+
cy: '9.5px',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
// Ellipse 164_3 animations
|
|
222
|
+
ellipse_164_3_flow_3: {
|
|
223
|
+
from: {
|
|
224
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
225
|
+
transformOrigin: '24.5px 9.5px',
|
|
226
|
+
cy: '9.5px',
|
|
227
|
+
},
|
|
228
|
+
to: {
|
|
229
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
230
|
+
transformOrigin: '24.5px 7.5px',
|
|
231
|
+
cy: '7.5px',
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
ellipse_164_3_flow_4: {
|
|
235
|
+
from: {
|
|
236
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
237
|
+
transformOrigin: '24.5px 7.5px',
|
|
238
|
+
cy: '7.5px',
|
|
239
|
+
},
|
|
240
|
+
to: {
|
|
241
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
242
|
+
transformOrigin: '24.5px 9.5px',
|
|
243
|
+
cy: '9.5px',
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
ellipse_164_3_flow_7: {
|
|
247
|
+
from: {
|
|
248
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
249
|
+
transformOrigin: '24.5px 9.5px',
|
|
250
|
+
cy: '9.5px',
|
|
251
|
+
},
|
|
252
|
+
to: {
|
|
253
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
254
|
+
transformOrigin: '24.5px 7.5px',
|
|
255
|
+
cy: '7.5px',
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
ellipse_164_3_flow_8: {
|
|
259
|
+
from: {
|
|
260
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
261
|
+
transformOrigin: '24.5px 7.5px',
|
|
262
|
+
cy: '7.5px',
|
|
263
|
+
},
|
|
264
|
+
to: {
|
|
265
|
+
transform: 'translate(0px, 0px) rotate(0deg)',
|
|
266
|
+
transformOrigin: '24.5px 9.5px',
|
|
267
|
+
cy: '9.5px',
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
animation: {
|
|
272
|
+
pulse: 'pulse 0.8s linear infinite alternate',
|
|
273
|
+
'ellipse-1-complete':
|
|
274
|
+
'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',
|
|
275
|
+
'ellipse-2-complete':
|
|
276
|
+
'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',
|
|
277
|
+
'ellipse-3-complete':
|
|
278
|
+
'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',
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
// Content should be defined by the consuming application
|
|
283
|
+
content: [createEnviveContentPaths(['./index.html', './src/**/*.{js,ts,jsx,tsx}'])],
|
|
284
|
+
plugins: [typography],
|
|
285
|
+
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SearchResponseProduct } from '@spiffy-ai/commerce-api-client';
|
|
2
|
-
|
|
3
|
-
export interface SearchResult {
|
|
4
|
-
products: SearchResponseProduct[]; // Flattened from all responses
|
|
5
|
-
filters: string[]; // Combined from all responses
|
|
6
|
-
generatedQuery?: string;
|
|
7
|
-
totalProductCount: number;
|
|
8
|
-
searchResponseId: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const enum SearchResultsState {
|
|
12
|
-
Loading,
|
|
13
|
-
Results,
|
|
14
|
-
NoResults,
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const getSearchResultsState = (
|
|
18
|
-
isLoadingSearch: boolean,
|
|
19
|
-
searchData: SearchResult | null,
|
|
20
|
-
): SearchResultsState => {
|
|
21
|
-
if (isLoadingSearch) {
|
|
22
|
-
return SearchResultsState.Loading;
|
|
23
|
-
}
|
|
24
|
-
if (searchData) {
|
|
25
|
-
return SearchResultsState.Results;
|
|
26
|
-
}
|
|
27
|
-
return SearchResultsState.NoResults;
|
|
28
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|