@udixio/ui-react 0.1.1 → 0.2.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/index.cjs +2 -2
- package/dist/index.js +1101 -1155
- package/dist/lib/components/Button.d.ts +4 -2
- package/dist/lib/components/Button.d.ts.map +1 -1
- package/dist/lib/components/Card.d.ts +5 -0
- package/dist/lib/components/Card.d.ts.map +1 -1
- package/dist/lib/components/Carousel.d.ts +6 -0
- package/dist/lib/components/Carousel.d.ts.map +1 -1
- package/dist/lib/components/CarouselItem.d.ts +4 -0
- package/dist/lib/components/CarouselItem.d.ts.map +1 -1
- package/dist/lib/components/{Divided.d.ts → Divider.d.ts} +6 -1
- package/dist/lib/components/Divider.d.ts.map +1 -0
- package/dist/lib/components/Fab.d.ts +5 -0
- package/dist/lib/components/Fab.d.ts.map +1 -1
- package/dist/lib/components/IconButton.d.ts +6 -1
- package/dist/lib/components/IconButton.d.ts.map +1 -1
- package/dist/lib/components/NavigationRail.d.ts +5 -0
- package/dist/lib/components/NavigationRail.d.ts.map +1 -1
- package/dist/lib/components/NavigationRailItem.d.ts +8 -0
- package/dist/lib/components/NavigationRailItem.d.ts.map +1 -1
- package/dist/lib/components/ProgressIndicator.d.ts +4 -0
- package/dist/lib/components/ProgressIndicator.d.ts.map +1 -1
- package/dist/lib/components/Slider.d.ts +5 -0
- package/dist/lib/components/Slider.d.ts.map +1 -1
- package/dist/lib/components/Snackbar.d.ts +5 -0
- package/dist/lib/components/Snackbar.d.ts.map +1 -1
- package/dist/lib/components/Switch.d.ts +5 -0
- package/dist/lib/components/Switch.d.ts.map +1 -1
- package/dist/lib/components/Tab.d.ts +4 -0
- package/dist/lib/components/Tab.d.ts.map +1 -1
- package/dist/lib/components/Tabs.d.ts +5 -0
- package/dist/lib/components/Tabs.d.ts.map +1 -1
- package/dist/lib/components/TextField.d.ts +5 -0
- package/dist/lib/components/TextField.d.ts.map +1 -1
- package/dist/lib/components/ToolTip.d.ts +5 -0
- package/dist/lib/components/ToolTip.d.ts.map +1 -1
- package/dist/lib/components/index.d.ts +1 -1
- package/dist/lib/effects/SyncedFixedWrapper.d.ts.map +1 -1
- package/dist/lib/interfaces/button.interface.d.ts +5 -0
- package/dist/lib/interfaces/button.interface.d.ts.map +1 -1
- package/dist/lib/interfaces/icon-button.interface.d.ts +1 -1
- package/dist/lib/interfaces/icon-button.interface.d.ts.map +1 -1
- package/dist/lib/styles/button.style.d.ts +14 -4
- package/dist/lib/styles/button.style.d.ts.map +1 -1
- package/dist/lib/styles/icon-button.style.d.ts +4 -4
- package/package.json +12 -3
- package/src/lib/components/Button.tsx +42 -15
- package/src/lib/components/Card.tsx +5 -0
- package/src/lib/components/Carousel.tsx +12 -6
- package/src/lib/components/CarouselItem.tsx +6 -1
- package/src/lib/components/{Divided.tsx → Divider.tsx} +5 -0
- package/src/lib/components/Fab.tsx +6 -1
- package/src/lib/components/IconButton.tsx +12 -7
- package/src/lib/components/NavigationRail.tsx +40 -41
- package/src/lib/components/NavigationRailItem.tsx +8 -0
- package/src/lib/components/ProgressIndicator.tsx +8 -2
- package/src/lib/components/Slider.tsx +5 -0
- package/src/lib/components/Snackbar.tsx +7 -2
- package/src/lib/components/Switch.tsx +5 -0
- package/src/lib/components/Tab.tsx +4 -0
- package/src/lib/components/Tabs.tsx +8 -3
- package/src/lib/components/TextField.tsx +8 -3
- package/src/lib/components/ToolTip.tsx +8 -8
- package/src/lib/components/index.ts +1 -1
- package/src/lib/effects/SyncedFixedWrapper.tsx +0 -2
- package/src/lib/interfaces/button.interface.ts +6 -0
- package/src/lib/interfaces/icon-button.interface.ts +1 -1
- package/src/lib/styles/button.style.ts +27 -48
- package/vite.config.ts +2 -0
- package/dist/lib/components/Divided.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
11
|
-
var l = e.length;
|
|
12
|
-
for (t = 0; t < l; t++) e[t] && (r = fe(e[t])) && (n && (n += " "), n += r);
|
|
13
|
-
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
14
|
-
return n;
|
|
15
|
-
}
|
|
16
|
-
function de() {
|
|
17
|
-
for (var e, t, r = 0, n = "", l = arguments.length; r < l; r++) (e = arguments[r]) && (t = fe(e)) && (n && (n += " "), n += t);
|
|
18
|
-
return n;
|
|
19
|
-
}
|
|
20
|
-
const me = xe({
|
|
1
|
+
import { jsx as i, jsxs as $, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as fe } from "clsx";
|
|
3
|
+
import { extendTailwindMerge as we } from "tailwind-merge";
|
|
4
|
+
import _, { useState as S, useEffect as W, useRef as P, useLayoutEffect as de, isValidElement as ee, cloneElement as le, useMemo as ve, Children as be, Fragment as Ne } from "react";
|
|
5
|
+
import { motion as U, AnimatePresence as z, useScroll as Le, useMotionValueEvent as se, motionValue as me, useTransform as oe } from "motion/react";
|
|
6
|
+
import { throttle as Ie } from "throttle-debounce";
|
|
7
|
+
import { createPortal as Ee } from "react-dom";
|
|
8
|
+
import ke from "react-textarea-autosize";
|
|
9
|
+
const pe = we({
|
|
21
10
|
override: {
|
|
22
11
|
classGroups: {
|
|
23
12
|
"text-color": [
|
|
@@ -43,45 +32,46 @@ const me = xe({
|
|
|
43
32
|
font: ["font"]
|
|
44
33
|
}
|
|
45
34
|
}
|
|
46
|
-
}), f = (...e) =>
|
|
47
|
-
function
|
|
35
|
+
}), f = (...e) => pe(fe(e)), Me = (...e) => pe(fe(e));
|
|
36
|
+
function Re(e) {
|
|
48
37
|
return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
49
38
|
}
|
|
50
|
-
const
|
|
39
|
+
const Se = (e) => {
|
|
51
40
|
const t = {};
|
|
52
|
-
e.classNameList.forEach((
|
|
53
|
-
var
|
|
54
|
-
if (
|
|
55
|
-
if (typeof
|
|
56
|
-
(t[
|
|
41
|
+
e.classNameList.forEach((l) => {
|
|
42
|
+
var n;
|
|
43
|
+
if (l)
|
|
44
|
+
if (typeof l == "string")
|
|
45
|
+
(t[n = e.default] ?? (t[n] = [])).push(l);
|
|
57
46
|
else {
|
|
58
|
-
const c =
|
|
59
|
-
Object.entries(c).map((
|
|
60
|
-
const [
|
|
61
|
-
(t[
|
|
47
|
+
const c = l(e.states);
|
|
48
|
+
Object.entries(c).map((s) => {
|
|
49
|
+
const [o, d] = s;
|
|
50
|
+
(t[o] ?? (t[o] = [])).push(d);
|
|
62
51
|
});
|
|
63
52
|
}
|
|
64
53
|
});
|
|
65
54
|
const r = t;
|
|
66
|
-
return Object.entries(t).map((
|
|
67
|
-
let [
|
|
68
|
-
c = c.reverse(),
|
|
55
|
+
return Object.entries(t).map((l) => {
|
|
56
|
+
let [n, c] = l;
|
|
57
|
+
c = c.reverse(), n == e.default && c.unshift("relative"), c.unshift(Re(n)), r[n] = Me(...c);
|
|
69
58
|
}), r;
|
|
70
|
-
},
|
|
59
|
+
}, q = (e, t) => (r) => Se({
|
|
71
60
|
classNameList: [r.className, t],
|
|
72
61
|
default: e,
|
|
73
62
|
states: r
|
|
74
|
-
}),
|
|
63
|
+
}), Ce = q(
|
|
75
64
|
"button",
|
|
76
65
|
({
|
|
77
66
|
variant: e,
|
|
78
67
|
disabled: t,
|
|
79
68
|
iconPosition: r,
|
|
80
|
-
icon:
|
|
81
|
-
|
|
82
|
-
|
|
69
|
+
icon: l,
|
|
70
|
+
isActive: n,
|
|
71
|
+
loading: c,
|
|
72
|
+
shape: s,
|
|
83
73
|
size: o,
|
|
84
|
-
allowShapeTransformation:
|
|
74
|
+
allowShapeTransformation: d
|
|
85
75
|
}) => ({
|
|
86
76
|
button: f(
|
|
87
77
|
"group flex items-center cursor-pointer",
|
|
@@ -99,35 +89,50 @@ const Me = (e) => {
|
|
|
99
89
|
o === "medium" && "text-title-medium px-6 py-4 gap-2",
|
|
100
90
|
o === "large" && "text-headline-small px-12 py-8 gap-3",
|
|
101
91
|
o === "xLarge" && "text-headline-large px-16 py-12 gap-4",
|
|
102
|
-
|
|
92
|
+
s === "rounded" && {
|
|
103
93
|
"rounded-[30px]": o === "xSmall" || o == "small",
|
|
104
94
|
"rounded-[40px]": o === "medium",
|
|
105
95
|
"rounded-[70px]": o === "large" || o == "xLarge"
|
|
106
96
|
},
|
|
107
|
-
|
|
97
|
+
s === "squared" && {
|
|
108
98
|
"rounded-[12px]": o === "xSmall" || o == "small",
|
|
109
99
|
"rounded-[16px]": o === "medium",
|
|
110
100
|
"rounded-[28px]": o === "large" || o == "xLarge"
|
|
111
101
|
},
|
|
112
|
-
|
|
102
|
+
d && !t && {
|
|
113
103
|
"group-active:rounded-[12px]": o === "xSmall" || o == "small",
|
|
114
104
|
"group-active:rounded-[16px]": o === "medium",
|
|
115
105
|
"group-active:rounded-[28px]": o === "large" || o == "xLarge"
|
|
116
106
|
},
|
|
107
|
+
d && n && {
|
|
108
|
+
"rounded-[12px]": o === "xSmall" || o == "small",
|
|
109
|
+
"rounded-[16px]": o === "medium",
|
|
110
|
+
"rounded-[28px]": o === "large" || o == "xLarge"
|
|
111
|
+
},
|
|
117
112
|
e === "elevated" && {
|
|
118
|
-
"
|
|
113
|
+
"shadow-1 hover:shadow-2": !t,
|
|
114
|
+
"bg-surface-container-low text-primary": !t && !n,
|
|
115
|
+
"bg-primary text-on-primary": !t && n,
|
|
116
|
+
"text-on-surface/[38%]": t
|
|
119
117
|
},
|
|
120
118
|
e === "filled" && {
|
|
121
|
-
"
|
|
119
|
+
"hover:shadow-1": !t,
|
|
120
|
+
"bg-surface-container text-on-surface-variant": !t && !n,
|
|
121
|
+
"bg-primary text-on-primary": !t && n,
|
|
122
|
+
"text-on-surface/[38%]": t
|
|
122
123
|
},
|
|
123
124
|
e === "filledTonal" && {
|
|
124
|
-
"
|
|
125
|
+
"hover:shadow-1": !t,
|
|
126
|
+
"bg-secondary-container text-on-secondary-container": !t && !n,
|
|
127
|
+
"bg-secondary text-on-secondary": !t && n,
|
|
128
|
+
"text-on-surface/[0.38]": t
|
|
125
129
|
},
|
|
126
130
|
e === "outlined" && [
|
|
127
131
|
" border",
|
|
128
132
|
{
|
|
129
|
-
"border-on-surface/[0.12]": t,
|
|
130
|
-
" border-outline focus:border-primary": !t
|
|
133
|
+
"border-on-surface/[0.12] text-on-surface/[0.38]": t,
|
|
134
|
+
"text-primary border-outline focus:border-primary": !t && !n,
|
|
135
|
+
"text-inverse-on-surface bg-inverse-surface border-inverse-surface": !t && n
|
|
131
136
|
}
|
|
132
137
|
],
|
|
133
138
|
e === "text" && [
|
|
@@ -169,59 +174,17 @@ const Me = (e) => {
|
|
|
169
174
|
"group-state-primary": !t
|
|
170
175
|
}
|
|
171
176
|
),
|
|
172
|
-
label: f(
|
|
173
|
-
{ invisible: l },
|
|
174
|
-
e === "elevated" && {
|
|
175
|
-
"text-primary": !t,
|
|
176
|
-
"text-on-surface/[38%]": t
|
|
177
|
-
},
|
|
178
|
-
e === "filled" && {
|
|
179
|
-
"text-on-primary": !t,
|
|
180
|
-
"text-on-surface/[38%]": t
|
|
181
|
-
},
|
|
182
|
-
e === "filledTonal" && {
|
|
183
|
-
"text-on-secondary-container": !t,
|
|
184
|
-
"text-on-surface/[0.38]": t
|
|
185
|
-
},
|
|
186
|
-
e === "outlined" && {
|
|
187
|
-
"text-primary": !t,
|
|
188
|
-
"text-on-surface/[0.38]": t
|
|
189
|
-
},
|
|
190
|
-
e === "text" && {
|
|
191
|
-
"text-primary": !t,
|
|
192
|
-
"text-on-surface/[0.38]": t
|
|
193
|
-
}
|
|
194
|
-
),
|
|
177
|
+
label: f({ invisible: c }),
|
|
195
178
|
icon: f(
|
|
196
|
-
{ invisible:
|
|
179
|
+
{ invisible: c },
|
|
197
180
|
o === "xSmall" && "size-5",
|
|
198
181
|
o === "small" && "size-5",
|
|
199
182
|
o === "medium" && "size-6",
|
|
200
183
|
o === "large" && "size-8",
|
|
201
|
-
o === "xLarge" && "size-10"
|
|
202
|
-
e === "elevated" && {
|
|
203
|
-
"text-primary": !t,
|
|
204
|
-
"text-on-surface/[38%]": t
|
|
205
|
-
},
|
|
206
|
-
e === "filled" && {
|
|
207
|
-
"text-on-primary": !t,
|
|
208
|
-
"text-on-surface/[38%]": t
|
|
209
|
-
},
|
|
210
|
-
e === "filledTonal" && {
|
|
211
|
-
"text-on-secondary-container": !t,
|
|
212
|
-
"text-on-surface/[0.38]": t
|
|
213
|
-
},
|
|
214
|
-
e === "outlined" && {
|
|
215
|
-
"text-primary": !t,
|
|
216
|
-
"text-on-surface/[0.38]": t
|
|
217
|
-
},
|
|
218
|
-
e === "text" && {
|
|
219
|
-
"text-primary": !t,
|
|
220
|
-
"text-on-surface/[0.38]": t
|
|
221
|
-
}
|
|
184
|
+
o === "xLarge" && "size-10"
|
|
222
185
|
)
|
|
223
186
|
})
|
|
224
|
-
),
|
|
187
|
+
), Be = q(
|
|
225
188
|
"card",
|
|
226
189
|
({ variant: e, isInteractive: t }) => ({
|
|
227
190
|
card: f(
|
|
@@ -238,12 +201,12 @@ const Me = (e) => {
|
|
|
238
201
|
}
|
|
239
202
|
])
|
|
240
203
|
})
|
|
241
|
-
),
|
|
204
|
+
), De = q(
|
|
242
205
|
"carouselItem",
|
|
243
206
|
() => ({
|
|
244
207
|
carouselItem: f("rounded-[28px] overflow-hidden flex-none")
|
|
245
208
|
})
|
|
246
|
-
), Ve =
|
|
209
|
+
), Ve = q(
|
|
247
210
|
"carousel",
|
|
248
211
|
() => ({
|
|
249
212
|
carousel: f(["w-full h-[400px]"]),
|
|
@@ -251,7 +214,7 @@ const Me = (e) => {
|
|
|
251
214
|
"grid grid-flow-col h-full transition-transform ease-out w-fit"
|
|
252
215
|
)
|
|
253
216
|
})
|
|
254
|
-
),
|
|
217
|
+
), We = q(
|
|
255
218
|
"divider",
|
|
256
219
|
({ orientation: e }) => ({
|
|
257
220
|
divider: f(
|
|
@@ -264,7 +227,7 @@ const Me = (e) => {
|
|
|
264
227
|
}
|
|
265
228
|
)
|
|
266
229
|
})
|
|
267
|
-
),
|
|
230
|
+
), $e = q(
|
|
268
231
|
"fab",
|
|
269
232
|
({ size: e, variant: t, isExtended: r }) => ({
|
|
270
233
|
fab: f(
|
|
@@ -309,17 +272,17 @@ const Me = (e) => {
|
|
|
309
272
|
t === "tertiary" && "text-on-tertiary-container"
|
|
310
273
|
)
|
|
311
274
|
})
|
|
312
|
-
),
|
|
275
|
+
), Pe = q(
|
|
313
276
|
"iconButton",
|
|
314
277
|
({
|
|
315
278
|
variant: e,
|
|
316
279
|
disabled: t,
|
|
317
280
|
onToggle: r,
|
|
318
|
-
isActive:
|
|
319
|
-
size:
|
|
281
|
+
isActive: l,
|
|
282
|
+
size: n,
|
|
320
283
|
width: c,
|
|
321
|
-
shape:
|
|
322
|
-
allowShapeTransformation:
|
|
284
|
+
shape: s,
|
|
285
|
+
allowShapeTransformation: o
|
|
323
286
|
}) => ({
|
|
324
287
|
iconButton: f(
|
|
325
288
|
"group min-h-12 flex items-center cursor-pointer",
|
|
@@ -329,43 +292,43 @@ const Me = (e) => {
|
|
|
329
292
|
),
|
|
330
293
|
container: f(
|
|
331
294
|
"rounded-full relative flex overflow-hidden transition-all duration-300",
|
|
332
|
-
(
|
|
333
|
-
"rounded-[30px]":
|
|
334
|
-
"rounded-[40px]":
|
|
335
|
-
"rounded-[70px]":
|
|
295
|
+
(s === "rounded" || s === "squared" && r && !t && l && o) && {
|
|
296
|
+
"rounded-[30px]": n === "xSmall" || n == "small",
|
|
297
|
+
"rounded-[40px]": n === "medium",
|
|
298
|
+
"rounded-[70px]": n === "large" || n == "xLarge"
|
|
336
299
|
},
|
|
337
|
-
(
|
|
338
|
-
"rounded-[12px]":
|
|
339
|
-
"rounded-[16px]":
|
|
340
|
-
"rounded-[28px]":
|
|
300
|
+
(s === "squared" || s === "rounded" && r && !t && l && o) && {
|
|
301
|
+
"rounded-[12px]": n === "xSmall" || n == "small",
|
|
302
|
+
"rounded-[16px]": n === "medium",
|
|
303
|
+
"rounded-[28px]": n === "large" || n == "xLarge"
|
|
341
304
|
},
|
|
342
|
-
|
|
343
|
-
"group-active:rounded-[12px]":
|
|
344
|
-
"group-active:rounded-[16px]":
|
|
345
|
-
"group-active:rounded-[28px]":
|
|
305
|
+
o && !t && {
|
|
306
|
+
"group-active:rounded-[12px]": n === "xSmall" || n == "small",
|
|
307
|
+
"group-active:rounded-[16px]": n === "medium",
|
|
308
|
+
"group-active:rounded-[28px]": n === "large" || n == "xLarge"
|
|
346
309
|
},
|
|
347
310
|
e === "filled" && [
|
|
348
311
|
!t && {
|
|
349
|
-
"bg-surface-container": !
|
|
350
|
-
"bg-primary":
|
|
312
|
+
"bg-surface-container": !l && !!r,
|
|
313
|
+
"bg-primary": l || !r
|
|
351
314
|
},
|
|
352
315
|
!!t && "bg-on-surface/[0.12]"
|
|
353
316
|
],
|
|
354
317
|
e === "tonal" && [
|
|
355
318
|
!t && {
|
|
356
|
-
"bg-surface-container": !
|
|
357
|
-
"bg-secondary-container":
|
|
319
|
+
"bg-surface-container": !l && !!r,
|
|
320
|
+
"bg-secondary-container": l || !r
|
|
358
321
|
},
|
|
359
322
|
!!t && "bg-on-surface/[0.12]"
|
|
360
323
|
],
|
|
361
324
|
e === "outlined" && [
|
|
362
325
|
!t && {
|
|
363
|
-
"border border-outline": !
|
|
364
|
-
"border border-transparent bg-inverse-surface":
|
|
326
|
+
"border border-outline": !l,
|
|
327
|
+
"border border-transparent bg-inverse-surface": l
|
|
365
328
|
},
|
|
366
329
|
!!t && {
|
|
367
|
-
"border border-on-surface/[0.12]": !
|
|
368
|
-
"border border-transparent bg-on-surface/[0.12]":
|
|
330
|
+
"border border-on-surface/[0.12]": !l,
|
|
331
|
+
"border border-transparent bg-on-surface/[0.12]": l
|
|
369
332
|
}
|
|
370
333
|
]
|
|
371
334
|
),
|
|
@@ -373,66 +336,66 @@ const Me = (e) => {
|
|
|
373
336
|
"absolute top-0 left-0 h-full w-full ",
|
|
374
337
|
!t && [
|
|
375
338
|
e === "standard" && {
|
|
376
|
-
"state-on-surface-variant": !
|
|
377
|
-
"state-primary":
|
|
339
|
+
"state-on-surface-variant": !l,
|
|
340
|
+
"state-primary": l
|
|
378
341
|
},
|
|
379
342
|
e === "filled" && {
|
|
380
|
-
"state-primary": !
|
|
381
|
-
"state-inverse-on-surface":
|
|
343
|
+
"state-primary": !l && !!r,
|
|
344
|
+
"state-inverse-on-surface": l || !r
|
|
382
345
|
},
|
|
383
346
|
e === "tonal" && {
|
|
384
|
-
"state-on-surface-variant": !
|
|
385
|
-
"state-on-secondary-container":
|
|
347
|
+
"state-on-surface-variant": !l && !!r,
|
|
348
|
+
"state-on-secondary-container": l || !r
|
|
386
349
|
},
|
|
387
350
|
e === "outlined" && {
|
|
388
|
-
"state-on-surface-variant": !
|
|
389
|
-
"state-on-primary":
|
|
351
|
+
"state-on-surface-variant": !l,
|
|
352
|
+
"state-on-primary": l
|
|
390
353
|
}
|
|
391
354
|
]
|
|
392
355
|
),
|
|
393
356
|
icon: f(
|
|
394
357
|
" transition-all duration-300",
|
|
395
|
-
{ "size-5 p-1.5":
|
|
396
|
-
{ "size-6 p-2":
|
|
397
|
-
{ "size-6 p-4":
|
|
398
|
-
{ "size-8 p-8":
|
|
399
|
-
{ "size-10 p-12":
|
|
358
|
+
{ "size-5 p-1.5": n === "xSmall" },
|
|
359
|
+
{ "size-6 p-2": n === "small" },
|
|
360
|
+
{ "size-6 p-4": n === "medium" },
|
|
361
|
+
{ "size-8 p-8": n === "large" },
|
|
362
|
+
{ "size-10 p-12": n === "xLarge" },
|
|
400
363
|
c == "narrow" && [
|
|
401
|
-
{ "px-1":
|
|
402
|
-
{ "px-1":
|
|
403
|
-
{ "px-3":
|
|
404
|
-
{ "px-4":
|
|
405
|
-
{ "px-8":
|
|
364
|
+
{ "px-1": n === "xSmall" },
|
|
365
|
+
{ "px-1": n === "small" },
|
|
366
|
+
{ "px-3": n === "medium" },
|
|
367
|
+
{ "px-4": n === "large" },
|
|
368
|
+
{ "px-8": n === "xLarge" }
|
|
406
369
|
],
|
|
407
370
|
c == "wide" && [
|
|
408
|
-
{ "px-2.5":
|
|
409
|
-
{ "px-3.5":
|
|
410
|
-
{ "px-6":
|
|
411
|
-
{ "px-12":
|
|
412
|
-
{ "px-[72px]":
|
|
371
|
+
{ "px-2.5": n === "xSmall" },
|
|
372
|
+
{ "px-3.5": n === "small" },
|
|
373
|
+
{ "px-6": n === "medium" },
|
|
374
|
+
{ "px-12": n === "large" },
|
|
375
|
+
{ "px-[72px]": n === "xLarge" }
|
|
413
376
|
],
|
|
414
377
|
!t && [
|
|
415
378
|
e === "standard" && {
|
|
416
|
-
"text-on-surface-variant": !
|
|
417
|
-
"text-primary":
|
|
379
|
+
"text-on-surface-variant": !l,
|
|
380
|
+
"text-primary": l
|
|
418
381
|
},
|
|
419
382
|
e === "filled" && {
|
|
420
|
-
"text-primary": !
|
|
421
|
-
"text-on-primary":
|
|
383
|
+
"text-primary": !l && !!r,
|
|
384
|
+
"text-on-primary": l || !r
|
|
422
385
|
},
|
|
423
386
|
e === "tonal" && {
|
|
424
|
-
"text-on-surface-variant": !
|
|
425
|
-
"text-on-secondary-container":
|
|
387
|
+
"text-on-surface-variant": !l && !!r,
|
|
388
|
+
"text-on-secondary-container": l || !r
|
|
426
389
|
},
|
|
427
390
|
e === "outlined" && {
|
|
428
|
-
"text-on-surface-variant": !
|
|
429
|
-
"text-inverse-on-surface":
|
|
391
|
+
"text-on-surface-variant": !l,
|
|
392
|
+
"text-inverse-on-surface": l
|
|
430
393
|
}
|
|
431
394
|
],
|
|
432
395
|
!!t && "text-on-surface/[0.38]"
|
|
433
396
|
)
|
|
434
397
|
})
|
|
435
|
-
),
|
|
398
|
+
), Ue = q(
|
|
436
399
|
"progressIndicator",
|
|
437
400
|
({ variant: e, isVisible: t }) => ({
|
|
438
401
|
progressIndicator: f(
|
|
@@ -451,7 +414,7 @@ const Me = (e) => {
|
|
|
451
414
|
),
|
|
452
415
|
stop: "absolute right-0 bg-primary rounded-full"
|
|
453
416
|
})
|
|
454
|
-
),
|
|
417
|
+
), je = q(
|
|
455
418
|
"slider",
|
|
456
419
|
({ isChanging: e }) => ({
|
|
457
420
|
slider: f([
|
|
@@ -474,7 +437,7 @@ const Me = (e) => {
|
|
|
474
437
|
"h-1 w-1 absolute transform -translate-y-1/2 -translate-x-1/2 top-1/2 rounded-full"
|
|
475
438
|
])
|
|
476
439
|
})
|
|
477
|
-
),
|
|
440
|
+
), Xe = q(
|
|
478
441
|
"snackbar",
|
|
479
442
|
() => ({
|
|
480
443
|
snackbar: f(" rounded bg-inverse-surface "),
|
|
@@ -484,7 +447,7 @@ const Me = (e) => {
|
|
|
484
447
|
supportingText: f("text-body-medium text-inverse-on-surface "),
|
|
485
448
|
icon: f(" ml-auto mr-0 text-inverse-on-surface block dark")
|
|
486
449
|
})
|
|
487
|
-
),
|
|
450
|
+
), Fe = q(
|
|
488
451
|
"switch",
|
|
489
452
|
({ isSelected: e, disabled: t, inactiveIcon: r }) => ({
|
|
490
453
|
switch: f(
|
|
@@ -527,66 +490,66 @@ const Me = (e) => {
|
|
|
527
490
|
{ "text-on-surface/[0.38]": t }
|
|
528
491
|
)
|
|
529
492
|
})
|
|
530
|
-
), Oe =
|
|
493
|
+
), Oe = q(
|
|
531
494
|
"tab",
|
|
532
|
-
({ isSelected: e, icon: t, label: r, variant:
|
|
495
|
+
({ isSelected: e, icon: t, label: r, variant: l }) => ({
|
|
533
496
|
tab: f(
|
|
534
497
|
"bg-surface flex-1 group outline-none flex px-4 justify-center items-center cursor-pointer",
|
|
535
498
|
{ "z-10": e },
|
|
536
|
-
!!(t && r) &&
|
|
537
|
-
!(t && r &&
|
|
499
|
+
!!(t && r) && l === "primary" && "h-16",
|
|
500
|
+
!(t && r && l === "primary") && "h-12"
|
|
538
501
|
),
|
|
539
502
|
stateLayer: f(
|
|
540
503
|
"absolute w-full h-full overflow-hidden left-1/2 top-1/2 transform -translate-y-1/2 -translate-x-1/2",
|
|
541
|
-
|
|
504
|
+
l === "primary" && {
|
|
542
505
|
"group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface": !e,
|
|
543
506
|
"group-hover:hover-state-primary group-focus-visible:focus-state-primary": e
|
|
544
507
|
},
|
|
545
|
-
|
|
508
|
+
l === "secondary" && "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface"
|
|
546
509
|
),
|
|
547
510
|
content: f(
|
|
548
511
|
"flex gap-0.5 h-full justify-center",
|
|
549
512
|
{
|
|
550
|
-
relative:
|
|
513
|
+
relative: l == "primary"
|
|
551
514
|
},
|
|
552
515
|
{
|
|
553
516
|
"": !!(r && !t)
|
|
554
517
|
},
|
|
555
|
-
|
|
556
|
-
|
|
518
|
+
l === "primary" && "flex-col items-center",
|
|
519
|
+
l === "secondary" && {
|
|
557
520
|
"flex-col items-center": !(r && t),
|
|
558
521
|
"flex-row items-center gap-2": !!(r && t)
|
|
559
522
|
}
|
|
560
523
|
),
|
|
561
524
|
icon: f(
|
|
562
525
|
"h-6 w-6 p-0.5 !box-border",
|
|
563
|
-
|
|
526
|
+
l === "primary" && {
|
|
564
527
|
"text-on-surface-variant": !e,
|
|
565
528
|
"text-primary": e
|
|
566
529
|
},
|
|
567
|
-
|
|
530
|
+
l === "secondary" && {
|
|
568
531
|
"text-on-surface-variant": !e,
|
|
569
532
|
"text-on-surface": e
|
|
570
533
|
}
|
|
571
534
|
),
|
|
572
535
|
label: f(
|
|
573
536
|
"text-title-small text-nowrap",
|
|
574
|
-
|
|
537
|
+
l === "primary" && {
|
|
575
538
|
"text-on-surface-variant": !e,
|
|
576
539
|
"text-primary": e
|
|
577
540
|
},
|
|
578
|
-
|
|
541
|
+
l === "secondary" && {
|
|
579
542
|
"text-on-surface-variant": !e,
|
|
580
543
|
"text-on-surface": e
|
|
581
544
|
}
|
|
582
545
|
),
|
|
583
546
|
underline: f(
|
|
584
547
|
"bg-primary absolute w-full left-0 bottom-0",
|
|
585
|
-
|
|
586
|
-
|
|
548
|
+
l === "primary" && "h-[3px] rounded-t",
|
|
549
|
+
l === "secondary" && "h-0.5"
|
|
587
550
|
)
|
|
588
551
|
})
|
|
589
|
-
),
|
|
552
|
+
), Ke = q(
|
|
590
553
|
"tabs",
|
|
591
554
|
({ scrollable: e }) => ({
|
|
592
555
|
tabs: f(
|
|
@@ -595,17 +558,17 @@ const Me = (e) => {
|
|
|
595
558
|
{ "overflow-x-auto": e }
|
|
596
559
|
)
|
|
597
560
|
})
|
|
598
|
-
),
|
|
561
|
+
), Ge = q(
|
|
599
562
|
"textField",
|
|
600
563
|
({
|
|
601
564
|
disabled: e,
|
|
602
565
|
leadingIcon: t,
|
|
603
566
|
trailingIcon: r,
|
|
604
|
-
variant:
|
|
605
|
-
errorText:
|
|
567
|
+
variant: l,
|
|
568
|
+
errorText: n,
|
|
606
569
|
isFocused: c,
|
|
607
|
-
value:
|
|
608
|
-
suffix:
|
|
570
|
+
value: s,
|
|
571
|
+
suffix: o,
|
|
609
572
|
textLine: d
|
|
610
573
|
}) => ({
|
|
611
574
|
textField: f({
|
|
@@ -615,17 +578,17 @@ const Me = (e) => {
|
|
|
615
578
|
"group transition-border duration-200 relative flex items-center ",
|
|
616
579
|
{ "h-14": d == "singleLine" },
|
|
617
580
|
{
|
|
618
|
-
"border-on-surface-variant": !(
|
|
619
|
-
"border-outline": !(
|
|
620
|
-
"border-primary": !(
|
|
621
|
-
"border-error": !!(
|
|
581
|
+
"border-on-surface-variant": !(n != null && n.length) && !c && l == "filled",
|
|
582
|
+
"border-outline": !(n != null && n.length) && !c && l == "outlined",
|
|
583
|
+
"border-primary": !(n != null && n.length) && c,
|
|
584
|
+
"border-error": !!(n != null && n.length)
|
|
622
585
|
},
|
|
623
586
|
{ "bg-on-surface/[0.04]": e },
|
|
624
|
-
|
|
587
|
+
l == "filled" && [
|
|
625
588
|
"rounded-t overflow-hidden border-b",
|
|
626
589
|
{ "bg-surface-container-highest": !e }
|
|
627
590
|
],
|
|
628
|
-
|
|
591
|
+
l == "outlined" && [
|
|
629
592
|
"border rounded box-border",
|
|
630
593
|
{
|
|
631
594
|
"border-[3px]": c
|
|
@@ -635,7 +598,7 @@ const Me = (e) => {
|
|
|
635
598
|
stateLayer: f(
|
|
636
599
|
"absolute -z-10 w-full h-full top-0 left-0",
|
|
637
600
|
{
|
|
638
|
-
hidden:
|
|
601
|
+
hidden: l == "outlined"
|
|
639
602
|
},
|
|
640
603
|
{
|
|
641
604
|
"group-state-on-surface": !e,
|
|
@@ -644,10 +607,10 @@ const Me = (e) => {
|
|
|
644
607
|
),
|
|
645
608
|
label: f(
|
|
646
609
|
"inline-flex outline-none whitespace-nowrap",
|
|
647
|
-
{ "text-on-surface-variant": !e && !(
|
|
610
|
+
{ "text-on-surface-variant": !e && !(n != null && n.length) },
|
|
648
611
|
{ "text-on-surface": e },
|
|
649
|
-
{ "text-error": !!(
|
|
650
|
-
{ "text-primary": !(
|
|
612
|
+
{ "text-error": !!(n != null && n.length) },
|
|
613
|
+
{ "text-primary": !(n != null && n.length) && c }
|
|
651
614
|
),
|
|
652
615
|
input: f(
|
|
653
616
|
"w-full resize-none px-4 text-body-large bg-[inherit] outline-none autofill:transition-colors autofill:duration-[5000000ms]",
|
|
@@ -656,41 +619,41 @@ const Me = (e) => {
|
|
|
656
619
|
"placeholder:text-on-surface text-on-surface": e
|
|
657
620
|
},
|
|
658
621
|
{
|
|
659
|
-
"pr-0": !!
|
|
622
|
+
"pr-0": !!o
|
|
660
623
|
},
|
|
661
|
-
|
|
662
|
-
|
|
624
|
+
l == "filled" && " pb-2 pt-6",
|
|
625
|
+
l == "outlined" && "py-4 relative z-10"
|
|
663
626
|
),
|
|
664
627
|
activeIndicator: f(
|
|
665
628
|
"absolute w-0 inset-x-0 border-rounded mx-auto bottom-0",
|
|
666
|
-
|
|
629
|
+
l == "filled" && [
|
|
667
630
|
"h-[2px] transition-all duration-300",
|
|
668
|
-
{ "bg-primary": !(
|
|
669
|
-
{ "bg-error": !!(
|
|
631
|
+
{ "bg-primary": !(n != null && n.length) },
|
|
632
|
+
{ "bg-error": !!(n != null && n.length) },
|
|
670
633
|
{ "!w-full": c }
|
|
671
634
|
]
|
|
672
635
|
),
|
|
673
636
|
supportingText: f(
|
|
674
637
|
" text-body-small px-4 pt-1",
|
|
675
|
-
{ "text-on-surface-variant": !e && !(
|
|
638
|
+
{ "text-on-surface-variant": !e && !(n != null && n.length) },
|
|
676
639
|
{ "text-on-surface": e },
|
|
677
640
|
{ "!w-full": c },
|
|
678
|
-
{ "text-error": !!(
|
|
641
|
+
{ "text-error": !!(n != null && n.length) }
|
|
679
642
|
),
|
|
680
643
|
leadingIcon: f([
|
|
681
644
|
"h-12 ml-3 flex items-center justify-center",
|
|
682
|
-
{ "cursor-text": !
|
|
645
|
+
{ "cursor-text": !_.isValidElement(t) }
|
|
683
646
|
]),
|
|
684
647
|
trailingIcon: f("h-12 w-12 flex items-center justify-center", {
|
|
685
|
-
"cursor-text": !
|
|
648
|
+
"cursor-text": !_.isValidElement(r)
|
|
686
649
|
}),
|
|
687
650
|
suffix: f(
|
|
688
651
|
"text-on-surface-variant pl-0 pr-4",
|
|
689
|
-
|
|
690
|
-
|
|
652
|
+
l == "filled" && " pb-2 pt-6",
|
|
653
|
+
l == "outlined" && "py-4 relative z-10"
|
|
691
654
|
)
|
|
692
655
|
})
|
|
693
|
-
),
|
|
656
|
+
), qe = q(
|
|
694
657
|
"toolTip",
|
|
695
658
|
({ position: e, variant: t }) => ({
|
|
696
659
|
toolTip: f(
|
|
@@ -721,8 +684,8 @@ const Me = (e) => {
|
|
|
721
684
|
),
|
|
722
685
|
supportingText: f("")
|
|
723
686
|
})
|
|
724
|
-
),
|
|
725
|
-
const { icon:
|
|
687
|
+
), Q = ({ icon: e, colors: t = [], className: r }) => {
|
|
688
|
+
const { icon: l } = e, [n, c, , , s] = l || [], o = (d) => {
|
|
726
689
|
switch (d.length) {
|
|
727
690
|
case 2:
|
|
728
691
|
return {
|
|
@@ -740,95 +703,95 @@ const Me = (e) => {
|
|
|
740
703
|
{
|
|
741
704
|
className: f("size-5 box-content", r),
|
|
742
705
|
style: {
|
|
743
|
-
...
|
|
706
|
+
...o(t)
|
|
744
707
|
},
|
|
745
708
|
xmlns: "http://www.w3.org/2000/svg",
|
|
746
|
-
viewBox: `0 0 ${
|
|
709
|
+
viewBox: `0 0 ${n} ${c}`,
|
|
747
710
|
role: "img",
|
|
748
711
|
"aria-hidden": "true",
|
|
749
|
-
children: typeof
|
|
712
|
+
children: typeof s == "string" ? /* @__PURE__ */ i("path", { className: "fill-current", d: s }) : s.map((d, u) => /* @__PURE__ */ i("path", { d }, u))
|
|
750
713
|
}
|
|
751
714
|
);
|
|
752
|
-
},
|
|
715
|
+
}, He = ({
|
|
753
716
|
variant: e = "linear-determinate",
|
|
754
717
|
minHeight: t = 4,
|
|
755
718
|
value: r = 0,
|
|
756
|
-
transitionDuration:
|
|
757
|
-
className:
|
|
719
|
+
transitionDuration: l = 1e3,
|
|
720
|
+
className: n,
|
|
758
721
|
...c
|
|
759
722
|
}) => {
|
|
760
|
-
const [
|
|
761
|
-
|
|
762
|
-
r > 100 && (r = 100), r < 0 && (r = 0),
|
|
723
|
+
const [s, o] = S(r), [d] = S(1.5);
|
|
724
|
+
W(() => {
|
|
725
|
+
r > 100 && (r = 100), r < 0 && (r = 0), o(r);
|
|
763
726
|
}, [r]);
|
|
764
|
-
const [
|
|
765
|
-
|
|
766
|
-
if ((e === "circular-indeterminate" || e === "linear-indeterminate") &&
|
|
767
|
-
const
|
|
768
|
-
|
|
769
|
-
},
|
|
770
|
-
return () => clearInterval(
|
|
727
|
+
const [u, x] = S(!0), y = () => u ? d : d * 0.5;
|
|
728
|
+
W(() => {
|
|
729
|
+
if ((e === "circular-indeterminate" || e === "linear-indeterminate") && s !== 100) {
|
|
730
|
+
const b = setInterval(() => {
|
|
731
|
+
o(u ? 10 : 90), x(!u);
|
|
732
|
+
}, y() * 1e3);
|
|
733
|
+
return () => clearInterval(b);
|
|
771
734
|
}
|
|
772
|
-
}, [e,
|
|
773
|
-
const [
|
|
774
|
-
|
|
775
|
-
if (
|
|
776
|
-
const
|
|
735
|
+
}, [e, u, s]);
|
|
736
|
+
const [a, v] = S(!1);
|
|
737
|
+
W(() => {
|
|
738
|
+
if (s >= 100) {
|
|
739
|
+
const b = setTimeout(() => {
|
|
777
740
|
v(!1);
|
|
778
|
-
},
|
|
741
|
+
}, l);
|
|
779
742
|
return () => {
|
|
780
|
-
clearTimeout(
|
|
743
|
+
clearTimeout(b);
|
|
781
744
|
};
|
|
782
745
|
} else
|
|
783
746
|
v(!0);
|
|
784
|
-
}, [
|
|
785
|
-
const
|
|
786
|
-
className:
|
|
747
|
+
}, [s, l]);
|
|
748
|
+
const g = Ue({
|
|
749
|
+
className: n,
|
|
787
750
|
variant: e,
|
|
788
751
|
value: r,
|
|
789
|
-
transitionDuration:
|
|
790
|
-
isVisible:
|
|
752
|
+
transitionDuration: l,
|
|
753
|
+
isVisible: a,
|
|
791
754
|
minHeight: t
|
|
792
755
|
});
|
|
793
|
-
return /* @__PURE__ */
|
|
794
|
-
(e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */
|
|
756
|
+
return /* @__PURE__ */ $(ne, { children: [
|
|
757
|
+
(e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ $(
|
|
795
758
|
"div",
|
|
796
759
|
{
|
|
797
760
|
style: { height: `${t}px` },
|
|
798
|
-
className:
|
|
761
|
+
className: g.progressIndicator,
|
|
799
762
|
...c,
|
|
800
763
|
children: [
|
|
801
764
|
/* @__PURE__ */ i(
|
|
802
765
|
"div",
|
|
803
766
|
{
|
|
804
767
|
style: {
|
|
805
|
-
height:
|
|
806
|
-
width: `${
|
|
807
|
-
transition: `width 1ms ease-in-out ${
|
|
768
|
+
height: a ? `${t}px` : "0px",
|
|
769
|
+
width: `${s}%`,
|
|
770
|
+
transition: `width 1ms ease-in-out ${s == 100 ? ", height 200ms 0.5s ease-in-out" : ""}`
|
|
808
771
|
},
|
|
809
|
-
className:
|
|
772
|
+
className: g.track
|
|
810
773
|
}
|
|
811
774
|
),
|
|
812
775
|
/* @__PURE__ */ i(
|
|
813
776
|
"div",
|
|
814
777
|
{
|
|
815
778
|
style: {
|
|
816
|
-
height:
|
|
817
|
-
marginLeft:
|
|
818
|
-
transition: `width ${
|
|
779
|
+
height: a ? `${t}px` : "0px",
|
|
780
|
+
marginLeft: s != 100 ? "6px" : "0px",
|
|
781
|
+
transition: `width ${l}ms ease-in-out ${s == 100 ? `, height 200ms 0.5s ease-in-out, margin-left ${l}ms ${l / 1.5}ms` : ""}`
|
|
819
782
|
},
|
|
820
|
-
className:
|
|
783
|
+
className: g.activeIndicator
|
|
821
784
|
}
|
|
822
785
|
),
|
|
823
786
|
/* @__PURE__ */ i(
|
|
824
787
|
"div",
|
|
825
788
|
{
|
|
826
789
|
style: {
|
|
827
|
-
height:
|
|
790
|
+
height: a ? `${t}px` : "0px",
|
|
828
791
|
width: `${t}px`,
|
|
829
|
-
transition: `width ${
|
|
792
|
+
transition: `width ${l}ms ease-in-out, height 200ms 0.5s ease-in-out`
|
|
830
793
|
},
|
|
831
|
-
className:
|
|
794
|
+
className: g.stop
|
|
832
795
|
}
|
|
833
796
|
)
|
|
834
797
|
]
|
|
@@ -844,46 +807,46 @@ const Me = (e) => {
|
|
|
844
807
|
animate: { rotate: 270 },
|
|
845
808
|
transition: {
|
|
846
809
|
repeat: 1 / 0,
|
|
847
|
-
duration:
|
|
810
|
+
duration: y(),
|
|
848
811
|
ease: "linear"
|
|
849
812
|
},
|
|
850
|
-
className:
|
|
813
|
+
className: g.progressIndicator,
|
|
851
814
|
...c,
|
|
852
815
|
children: /* @__PURE__ */ i(
|
|
853
816
|
U.circle,
|
|
854
817
|
{
|
|
855
818
|
cx: "50%",
|
|
856
819
|
cy: "50%",
|
|
857
|
-
r:
|
|
820
|
+
r: a ? "calc(50% - 2px)" : "50%",
|
|
858
821
|
style: {
|
|
859
822
|
strokeLinecap: "round"
|
|
860
823
|
},
|
|
861
824
|
initial: "hidden",
|
|
862
825
|
animate: "visible",
|
|
863
|
-
className:
|
|
826
|
+
className: g.activeIndicator,
|
|
864
827
|
variants: {
|
|
865
828
|
hidden: {
|
|
866
|
-
pathLength:
|
|
829
|
+
pathLength: u ? 10 / 100 : 90 / 100
|
|
867
830
|
},
|
|
868
831
|
visible: {
|
|
869
|
-
pathLength:
|
|
832
|
+
pathLength: u ? 90 / 100 : 10 / 100
|
|
870
833
|
}
|
|
871
834
|
},
|
|
872
835
|
transition: {
|
|
873
836
|
pathLength: {
|
|
874
837
|
type: "tween",
|
|
875
838
|
ease: "linear",
|
|
876
|
-
duration:
|
|
839
|
+
duration: y(),
|
|
877
840
|
bounce: 0
|
|
878
841
|
}
|
|
879
842
|
}
|
|
880
843
|
}
|
|
881
844
|
)
|
|
882
845
|
},
|
|
883
|
-
|
|
846
|
+
u + ""
|
|
884
847
|
)
|
|
885
848
|
] });
|
|
886
|
-
},
|
|
849
|
+
}, re = ({
|
|
887
850
|
colorName: e = "on-surface",
|
|
888
851
|
triggerRef: t
|
|
889
852
|
}) => {
|
|
@@ -904,36 +867,36 @@ const Me = (e) => {
|
|
|
904
867
|
borderRadius: { duration: 0.3, delay: 0.3 }
|
|
905
868
|
}
|
|
906
869
|
}
|
|
907
|
-
}, [
|
|
908
|
-
|
|
909
|
-
c && (
|
|
910
|
-
}, [c]),
|
|
870
|
+
}, [l, n] = S(!0), [c, s] = S(!1), [o, d] = S({ x: 0, y: 0 });
|
|
871
|
+
W(() => {
|
|
872
|
+
c && (n(!0), n(!1));
|
|
873
|
+
}, [c]), W(() => {
|
|
911
874
|
const a = t == null ? void 0 : t.current;
|
|
912
875
|
if (a)
|
|
913
|
-
return a.addEventListener("mousedown", u), a.addEventListener("mouseup",
|
|
914
|
-
a.removeEventListener("mousedown", u), a.removeEventListener("mouseup",
|
|
876
|
+
return a.addEventListener("mousedown", u), a.addEventListener("mouseup", y), a.addEventListener("mouseleave", x), () => {
|
|
877
|
+
a.removeEventListener("mousedown", u), a.removeEventListener("mouseup", y), a.removeEventListener("mouseleave", x);
|
|
915
878
|
};
|
|
916
879
|
}, [t]);
|
|
917
880
|
const u = (a) => {
|
|
918
|
-
const
|
|
919
|
-
|
|
920
|
-
x: (a.clientX -
|
|
921
|
-
y: (a.clientY -
|
|
881
|
+
const v = t == null ? void 0 : t.current, g = v.getBoundingClientRect();
|
|
882
|
+
s(!0), d({
|
|
883
|
+
x: (a.clientX - g.left) / v.clientWidth * 100,
|
|
884
|
+
y: (a.clientY - g.top) / v.clientHeight * 100
|
|
922
885
|
});
|
|
923
|
-
},
|
|
924
|
-
|
|
925
|
-
},
|
|
926
|
-
|
|
886
|
+
}, x = (a) => {
|
|
887
|
+
s(!1);
|
|
888
|
+
}, y = (a) => {
|
|
889
|
+
s(!1);
|
|
927
890
|
};
|
|
928
|
-
return /* @__PURE__ */ i(z, { mode: "wait", children: (c || !c && !
|
|
891
|
+
return /* @__PURE__ */ i(z, { mode: "wait", children: (c || !c && !l) && /* @__PURE__ */ i(
|
|
929
892
|
U.div,
|
|
930
893
|
{
|
|
931
894
|
style: {
|
|
932
895
|
position: "absolute",
|
|
933
896
|
width: "100%",
|
|
934
897
|
height: "100%",
|
|
935
|
-
top:
|
|
936
|
-
left:
|
|
898
|
+
top: o.y + "%",
|
|
899
|
+
left: o.x + "%",
|
|
937
900
|
background: `color-mix(in srgb, var(--color-${e}) 12%, transparent)`,
|
|
938
901
|
pointerEvents: "none"
|
|
939
902
|
},
|
|
@@ -941,37 +904,11 @@ const Me = (e) => {
|
|
|
941
904
|
initial: "initial",
|
|
942
905
|
animate: "animate",
|
|
943
906
|
exit: { opacity: 0, transition: { duration: 0 } },
|
|
944
|
-
onAnimationComplete: () =>
|
|
907
|
+
onAnimationComplete: () => n(!0),
|
|
945
908
|
className: "transform -translate-x-1/2 -translate-y-1/2"
|
|
946
909
|
}
|
|
947
910
|
) });
|
|
948
|
-
}
|
|
949
|
-
function qe(e, t, r) {
|
|
950
|
-
var n = {}, l = n.noTrailing, c = l === void 0 ? !1 : l, o = n.noLeading, s = o === void 0 ? !1 : o, d = n.debounceMode, u = d === void 0 ? void 0 : d, p, w = !1, a = 0;
|
|
951
|
-
function y() {
|
|
952
|
-
p && clearTimeout(p);
|
|
953
|
-
}
|
|
954
|
-
function v(L) {
|
|
955
|
-
var E = L || {}, m = E.upcomingOnly, N = m === void 0 ? !1 : m;
|
|
956
|
-
y(), w = !N;
|
|
957
|
-
}
|
|
958
|
-
function b() {
|
|
959
|
-
for (var L = arguments.length, E = new Array(L), m = 0; m < L; m++)
|
|
960
|
-
E[m] = arguments[m];
|
|
961
|
-
var N = this, I = Date.now() - a;
|
|
962
|
-
if (w)
|
|
963
|
-
return;
|
|
964
|
-
function k() {
|
|
965
|
-
a = Date.now(), t.apply(N, E);
|
|
966
|
-
}
|
|
967
|
-
function C() {
|
|
968
|
-
p = void 0;
|
|
969
|
-
}
|
|
970
|
-
!s && u && !p && k(), y(), u === void 0 && I > e ? s ? (a = Date.now(), c || (p = setTimeout(u ? C : k, e))) : k() : c !== !0 && (p = setTimeout(u ? C : k, u === void 0 ? e - I : e));
|
|
971
|
-
}
|
|
972
|
-
return b.cancel = v, b;
|
|
973
|
-
}
|
|
974
|
-
const He = H(
|
|
911
|
+
}, Ye = q(
|
|
975
912
|
"customScroll",
|
|
976
913
|
({ orientation: e, draggable: t, isDragging: r }) => ({
|
|
977
914
|
customScroll: f(
|
|
@@ -999,126 +936,126 @@ const He = H(
|
|
|
999
936
|
"top-0 w-full": e === "vertical"
|
|
1000
937
|
})
|
|
1001
938
|
})
|
|
1002
|
-
),
|
|
939
|
+
), he = ({
|
|
1003
940
|
children: e,
|
|
1004
941
|
orientation: t = "vertical",
|
|
1005
942
|
scrollSize: r,
|
|
1006
|
-
onScroll:
|
|
1007
|
-
className:
|
|
943
|
+
onScroll: l,
|
|
944
|
+
className: n,
|
|
1008
945
|
draggable: c = !1,
|
|
1009
|
-
throttleDuration:
|
|
946
|
+
throttleDuration: s = 75
|
|
1010
947
|
}) => {
|
|
1011
948
|
var V, X;
|
|
1012
|
-
const
|
|
949
|
+
const o = P(null), d = P(null), [u, x] = S({
|
|
1013
950
|
width: null,
|
|
1014
951
|
height: null
|
|
1015
952
|
});
|
|
1016
|
-
|
|
1017
|
-
if (!
|
|
1018
|
-
const
|
|
1019
|
-
for (const
|
|
1020
|
-
|
|
1021
|
-
width:
|
|
1022
|
-
height:
|
|
953
|
+
W(() => {
|
|
954
|
+
if (!o.current) return;
|
|
955
|
+
const k = new ResizeObserver((F) => {
|
|
956
|
+
for (const O of F)
|
|
957
|
+
O.target === o.current && x({
|
|
958
|
+
width: O.contentRect.width,
|
|
959
|
+
height: O.contentRect.height
|
|
1023
960
|
// On observe aussi la hauteur maintenant
|
|
1024
961
|
});
|
|
1025
962
|
});
|
|
1026
|
-
return
|
|
1027
|
-
|
|
963
|
+
return k.observe(o.current), () => {
|
|
964
|
+
k.disconnect();
|
|
1028
965
|
};
|
|
1029
|
-
}, [
|
|
1030
|
-
const
|
|
1031
|
-
const
|
|
1032
|
-
return
|
|
1033
|
-
width: r ??
|
|
1034
|
-
height: r ??
|
|
966
|
+
}, [o]);
|
|
967
|
+
const y = P(null), a = P(null), v = () => {
|
|
968
|
+
const k = d.current;
|
|
969
|
+
return k ? {
|
|
970
|
+
width: r ?? k.scrollWidth,
|
|
971
|
+
height: r ?? k.scrollHeight
|
|
1035
972
|
} : null;
|
|
1036
|
-
},
|
|
1037
|
-
const
|
|
1038
|
-
return
|
|
1039
|
-
width:
|
|
1040
|
-
height:
|
|
973
|
+
}, g = () => {
|
|
974
|
+
const k = o.current;
|
|
975
|
+
return k ? {
|
|
976
|
+
width: k.clientWidth,
|
|
977
|
+
height: k.clientHeight
|
|
1041
978
|
// Correction ici pour retourner la bonne hauteur
|
|
1042
979
|
} : null;
|
|
1043
|
-
}, { scrollYProgress: b, scrollXProgress:
|
|
1044
|
-
container:
|
|
1045
|
-
}),
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
(
|
|
1049
|
-
!a.current || !
|
|
1050
|
-
scrollProgress:
|
|
1051
|
-
scroll:
|
|
1052
|
-
scrollTotal:
|
|
980
|
+
}, { scrollYProgress: b, scrollXProgress: E } = Le({
|
|
981
|
+
container: o
|
|
982
|
+
}), M = P(null);
|
|
983
|
+
M.current || (M.current = Ie(
|
|
984
|
+
s,
|
|
985
|
+
(k, F) => {
|
|
986
|
+
!a.current || !y.current || l && (t === "horizontal" && F === "x" && l({
|
|
987
|
+
scrollProgress: k,
|
|
988
|
+
scroll: k * y.current.width,
|
|
989
|
+
scrollTotal: y.current.width,
|
|
1053
990
|
scrollVisible: a.current.width
|
|
1054
|
-
}), t === "vertical" && F === "y" &&
|
|
1055
|
-
scrollProgress:
|
|
1056
|
-
scroll:
|
|
1057
|
-
scrollTotal:
|
|
991
|
+
}), t === "vertical" && F === "y" && l({
|
|
992
|
+
scrollProgress: k,
|
|
993
|
+
scroll: k * y.current.height,
|
|
994
|
+
scrollTotal: y.current.height,
|
|
1058
995
|
scrollVisible: a.current.height
|
|
1059
996
|
}));
|
|
1060
997
|
}
|
|
1061
998
|
));
|
|
1062
|
-
const
|
|
1063
|
-
|
|
999
|
+
const w = (k, F) => {
|
|
1000
|
+
M.current && M.current(k, F);
|
|
1064
1001
|
};
|
|
1065
|
-
|
|
1066
|
-
u.width &&
|
|
1067
|
-
}, [u]),
|
|
1068
|
-
|
|
1069
|
-
}),
|
|
1070
|
-
|
|
1002
|
+
W(() => {
|
|
1003
|
+
u.width && w(E.get(), "x"), u.height && w(b.get(), "y");
|
|
1004
|
+
}, [u]), se(E, "change", (k) => {
|
|
1005
|
+
w(k, "x");
|
|
1006
|
+
}), se(b, "change", (k) => {
|
|
1007
|
+
w(k, "y");
|
|
1071
1008
|
});
|
|
1072
|
-
const [N,
|
|
1073
|
-
|
|
1074
|
-
N || !a.current || !
|
|
1009
|
+
const [N, R] = S(!1);
|
|
1010
|
+
de(() => {
|
|
1011
|
+
N || !a.current || !y.current || !l || (l({
|
|
1075
1012
|
scrollProgress: 0,
|
|
1076
1013
|
scroll: 0,
|
|
1077
|
-
scrollTotal: t == "vertical" ?
|
|
1014
|
+
scrollTotal: t == "vertical" ? y.current.height : y.current.width,
|
|
1078
1015
|
scrollVisible: t == "vertical" ? a.current.height : a.current.width
|
|
1079
|
-
}),
|
|
1080
|
-
}, [a,
|
|
1081
|
-
const [
|
|
1082
|
-
isDragging:
|
|
1016
|
+
}), R(!0));
|
|
1017
|
+
}, [a, y, l]), y.current = v(), a.current = g();
|
|
1018
|
+
const [L, C] = S(!1), D = Ye({
|
|
1019
|
+
isDragging: L,
|
|
1083
1020
|
children: e,
|
|
1084
|
-
className:
|
|
1085
|
-
onScroll:
|
|
1021
|
+
className: n,
|
|
1022
|
+
onScroll: l,
|
|
1086
1023
|
orientation: t,
|
|
1087
1024
|
scrollSize: r,
|
|
1088
1025
|
draggable: c,
|
|
1089
|
-
throttleDuration:
|
|
1090
|
-
}), [
|
|
1026
|
+
throttleDuration: s
|
|
1027
|
+
}), [B, I] = S(0), [m, j] = S(0), Y = (k) => {
|
|
1091
1028
|
if (!c) return;
|
|
1092
|
-
const F =
|
|
1093
|
-
if (!F ||
|
|
1094
|
-
const
|
|
1095
|
-
F.scrollLeft =
|
|
1096
|
-
},
|
|
1097
|
-
const F =
|
|
1098
|
-
F && (C(!0),
|
|
1099
|
-
},
|
|
1100
|
-
|
|
1101
|
-
},
|
|
1029
|
+
const F = o.current;
|
|
1030
|
+
if (!F || B == null) return;
|
|
1031
|
+
const J = (k.pageX - F.offsetLeft - B) * 1.5;
|
|
1032
|
+
F.scrollLeft = m - J;
|
|
1033
|
+
}, G = (k) => {
|
|
1034
|
+
const F = o.current;
|
|
1035
|
+
F && (C(!0), I(k.pageX - F.offsetLeft), j(F.scrollLeft));
|
|
1036
|
+
}, Z = (k) => {
|
|
1037
|
+
L && (k.preventDefault(), Y(k));
|
|
1038
|
+
}, K = () => {
|
|
1102
1039
|
C(!1);
|
|
1103
|
-
},
|
|
1040
|
+
}, A = () => {
|
|
1104
1041
|
C(!1);
|
|
1105
|
-
},
|
|
1106
|
-
|
|
1107
|
-
},
|
|
1108
|
-
return
|
|
1109
|
-
|
|
1110
|
-
}, []), /* @__PURE__ */
|
|
1042
|
+
}, h = (k) => {
|
|
1043
|
+
k.preventDefault();
|
|
1044
|
+
}, p = P(null);
|
|
1045
|
+
return W(() => () => {
|
|
1046
|
+
p.current && clearTimeout(p.current);
|
|
1047
|
+
}, []), /* @__PURE__ */ $(
|
|
1111
1048
|
"div",
|
|
1112
1049
|
{
|
|
1113
|
-
className:
|
|
1114
|
-
ref:
|
|
1115
|
-
onMouseDown:
|
|
1116
|
-
onMouseMove:
|
|
1117
|
-
onMouseUp:
|
|
1118
|
-
onMouseLeave:
|
|
1119
|
-
onDragStart:
|
|
1120
|
-
onScroll: (
|
|
1121
|
-
|
|
1050
|
+
className: D.customScroll,
|
|
1051
|
+
ref: o,
|
|
1052
|
+
onMouseDown: G,
|
|
1053
|
+
onMouseMove: Z,
|
|
1054
|
+
onMouseUp: K,
|
|
1055
|
+
onMouseLeave: A,
|
|
1056
|
+
onDragStart: h,
|
|
1057
|
+
onScroll: (k) => {
|
|
1058
|
+
L || (I(null), C(!0), p.current && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
1122
1059
|
C(!1);
|
|
1123
1060
|
}, 1e3));
|
|
1124
1061
|
},
|
|
@@ -1128,26 +1065,26 @@ const He = H(
|
|
|
1128
1065
|
{
|
|
1129
1066
|
ref: d,
|
|
1130
1067
|
style: t === "vertical" ? { height: ((V = a == null ? void 0 : a.current) == null ? void 0 : V.height) ?? "100%" } : { width: ((X = a == null ? void 0 : a.current) == null ? void 0 : X.width) ?? "100%" },
|
|
1131
|
-
className:
|
|
1068
|
+
className: D.track,
|
|
1132
1069
|
children: e
|
|
1133
1070
|
}
|
|
1134
1071
|
),
|
|
1135
|
-
a.current &&
|
|
1136
|
-
t === "vertical" &&
|
|
1072
|
+
a.current && y.current && /* @__PURE__ */ $(ne, { children: [
|
|
1073
|
+
t === "vertical" && y.current.height > a.current.height && /* @__PURE__ */ i(
|
|
1137
1074
|
U.div,
|
|
1138
1075
|
{
|
|
1139
1076
|
className: "flex-none",
|
|
1140
1077
|
style: {
|
|
1141
|
-
height:
|
|
1078
|
+
height: y.current.height - a.current.height
|
|
1142
1079
|
}
|
|
1143
1080
|
}
|
|
1144
1081
|
),
|
|
1145
|
-
t === "horizontal" &&
|
|
1082
|
+
t === "horizontal" && y.current.width > a.current.width && /* @__PURE__ */ i(
|
|
1146
1083
|
U.div,
|
|
1147
1084
|
{
|
|
1148
1085
|
className: "flex-none",
|
|
1149
1086
|
style: {
|
|
1150
|
-
width:
|
|
1087
|
+
width: y.current.width - a.current.width
|
|
1151
1088
|
}
|
|
1152
1089
|
}
|
|
1153
1090
|
)
|
|
@@ -1155,36 +1092,36 @@ const He = H(
|
|
|
1155
1092
|
]
|
|
1156
1093
|
}
|
|
1157
1094
|
);
|
|
1158
|
-
},
|
|
1095
|
+
}, yt = ({
|
|
1159
1096
|
children: e,
|
|
1160
1097
|
transition: t = ".5s",
|
|
1161
1098
|
orientation: r = "vertical",
|
|
1162
|
-
throttleDuration:
|
|
1163
|
-
...
|
|
1099
|
+
throttleDuration: l = 25,
|
|
1100
|
+
...n
|
|
1164
1101
|
}) => {
|
|
1165
|
-
const [c,
|
|
1166
|
-
|
|
1102
|
+
const [c, s] = S(null), o = me((c == null ? void 0 : c.scrollProgress) ?? 0), d = oe(
|
|
1103
|
+
o,
|
|
1167
1104
|
[0, 1],
|
|
1168
1105
|
[0, 1 - ((c == null ? void 0 : c.scrollVisible) ?? 0) / ((c == null ? void 0 : c.scrollTotal) ?? 0)]
|
|
1169
|
-
), u =
|
|
1106
|
+
), u = oe(
|
|
1170
1107
|
d,
|
|
1171
1108
|
(a) => `${-a * 100}%`
|
|
1172
|
-
),
|
|
1173
|
-
|
|
1174
|
-
},
|
|
1175
|
-
return
|
|
1176
|
-
const
|
|
1177
|
-
if (
|
|
1178
|
-
const
|
|
1179
|
-
console.log(`Delta temps : ${
|
|
1109
|
+
), x = (a) => {
|
|
1110
|
+
o.set(a.scrollProgress), a.scrollTotal > 0 && s(a);
|
|
1111
|
+
}, y = P(null);
|
|
1112
|
+
return se(u, "change", (a) => {
|
|
1113
|
+
const v = performance.now();
|
|
1114
|
+
if (y.current !== null) {
|
|
1115
|
+
const g = v - y.current;
|
|
1116
|
+
console.log(`Delta temps : ${g} ms`);
|
|
1180
1117
|
}
|
|
1181
|
-
|
|
1118
|
+
y.current = v, console.log(a);
|
|
1182
1119
|
}), /* @__PURE__ */ i(
|
|
1183
|
-
|
|
1120
|
+
he,
|
|
1184
1121
|
{
|
|
1185
|
-
onScroll:
|
|
1186
|
-
throttleDuration:
|
|
1187
|
-
...
|
|
1122
|
+
onScroll: x,
|
|
1123
|
+
throttleDuration: l,
|
|
1124
|
+
...n,
|
|
1188
1125
|
children: /* @__PURE__ */ i(
|
|
1189
1126
|
U.div,
|
|
1190
1127
|
{
|
|
@@ -1205,92 +1142,107 @@ const He = H(
|
|
|
1205
1142
|
targetRef: e,
|
|
1206
1143
|
children: t
|
|
1207
1144
|
}) => {
|
|
1208
|
-
const [r,
|
|
1209
|
-
const
|
|
1210
|
-
if (!
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1145
|
+
const [r, l] = S(null), n = P(null), c = () => {
|
|
1146
|
+
const s = e.current;
|
|
1147
|
+
if (!s) return;
|
|
1148
|
+
const o = s.getBoundingClientRect();
|
|
1149
|
+
l({
|
|
1213
1150
|
position: "fixed",
|
|
1214
|
-
top:
|
|
1215
|
-
left:
|
|
1216
|
-
width:
|
|
1217
|
-
height:
|
|
1151
|
+
top: o.top,
|
|
1152
|
+
left: o.left,
|
|
1153
|
+
width: o.width,
|
|
1154
|
+
height: o.height,
|
|
1218
1155
|
pointerEvents: "none",
|
|
1219
1156
|
// si le wrapper ne doit pas capter les events
|
|
1220
1157
|
zIndex: 999
|
|
1221
1158
|
// personnalise si besoin
|
|
1222
1159
|
});
|
|
1223
1160
|
};
|
|
1224
|
-
return
|
|
1225
|
-
const
|
|
1226
|
-
if (
|
|
1227
|
-
return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c),
|
|
1228
|
-
var
|
|
1229
|
-
window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), (
|
|
1161
|
+
return W(() => {
|
|
1162
|
+
const s = e.current;
|
|
1163
|
+
if (s)
|
|
1164
|
+
return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), n.current = new ResizeObserver(c), n.current.observe(s), () => {
|
|
1165
|
+
var o;
|
|
1166
|
+
window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), (o = n.current) == null || o.disconnect();
|
|
1230
1167
|
};
|
|
1231
|
-
}, [e]), r ?
|
|
1232
|
-
},
|
|
1168
|
+
}, [e]), r ? Ee(/* @__PURE__ */ i("div", { style: r, children: t }), document.body) : null;
|
|
1169
|
+
}, Ze = ({
|
|
1233
1170
|
variant: e = "filled",
|
|
1234
1171
|
disabled: t = !1,
|
|
1235
1172
|
icon: r,
|
|
1236
|
-
href:
|
|
1237
|
-
label:
|
|
1173
|
+
href: l,
|
|
1174
|
+
label: n,
|
|
1238
1175
|
className: c,
|
|
1239
|
-
iconPosition:
|
|
1240
|
-
loading:
|
|
1176
|
+
iconPosition: s = "left",
|
|
1177
|
+
loading: o = !1,
|
|
1241
1178
|
shape: d = "rounded",
|
|
1242
1179
|
onClick: u,
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1180
|
+
onToggle: x,
|
|
1181
|
+
activated: y,
|
|
1182
|
+
ref: a,
|
|
1183
|
+
size: v = "medium",
|
|
1184
|
+
allowShapeTransformation: g = !0,
|
|
1185
|
+
transition: b,
|
|
1186
|
+
children: E,
|
|
1187
|
+
...M
|
|
1248
1188
|
}) => {
|
|
1249
|
-
const
|
|
1250
|
-
|
|
1251
|
-
|
|
1189
|
+
const w = l ? "a" : "button", N = P(null), R = a || N, [L, C] = _.useState(y);
|
|
1190
|
+
W(() => {
|
|
1191
|
+
C(y);
|
|
1192
|
+
}, [y]), b = { duration: 0.3, ...b };
|
|
1193
|
+
let D;
|
|
1194
|
+
x ? x && (D = (m) => {
|
|
1195
|
+
t && m.preventDefault(), C(!L), x(!!L);
|
|
1196
|
+
}) : D = (m) => {
|
|
1197
|
+
t && m.preventDefault(), u && u(m);
|
|
1198
|
+
};
|
|
1199
|
+
const B = Ce({
|
|
1200
|
+
allowShapeTransformation: g,
|
|
1201
|
+
size: v,
|
|
1252
1202
|
shape: d,
|
|
1253
|
-
href:
|
|
1203
|
+
href: l,
|
|
1254
1204
|
disabled: t,
|
|
1255
1205
|
icon: r,
|
|
1256
|
-
iconPosition:
|
|
1257
|
-
label:
|
|
1258
|
-
loading:
|
|
1206
|
+
iconPosition: s,
|
|
1207
|
+
label: n,
|
|
1208
|
+
loading: o,
|
|
1259
1209
|
variant: e,
|
|
1260
|
-
transition:
|
|
1261
|
-
className: c
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1210
|
+
transition: b,
|
|
1211
|
+
className: c,
|
|
1212
|
+
isActive: L ?? !1,
|
|
1213
|
+
onToggle: x,
|
|
1214
|
+
activated: L
|
|
1215
|
+
}), I = r ? /* @__PURE__ */ i(Q, { icon: r, className: B.icon }) : /* @__PURE__ */ i(ne, {});
|
|
1216
|
+
return console.log("gfegrger", x), console.log("test", L, x, D), /* @__PURE__ */ i(
|
|
1217
|
+
w,
|
|
1265
1218
|
{
|
|
1266
|
-
ref:
|
|
1267
|
-
href:
|
|
1268
|
-
className:
|
|
1269
|
-
...
|
|
1270
|
-
onClick:
|
|
1271
|
-
t ? I.preventDefault() : u && u(I);
|
|
1272
|
-
},
|
|
1219
|
+
ref: R,
|
|
1220
|
+
href: l,
|
|
1221
|
+
className: B.button,
|
|
1222
|
+
...M,
|
|
1223
|
+
onClick: D,
|
|
1273
1224
|
disabled: t,
|
|
1274
|
-
|
|
1225
|
+
"aria-pressed": x ? L : void 0,
|
|
1226
|
+
children: /* @__PURE__ */ $(
|
|
1275
1227
|
"div",
|
|
1276
1228
|
{
|
|
1277
|
-
className:
|
|
1278
|
-
style: { transition:
|
|
1229
|
+
className: B.container,
|
|
1230
|
+
style: { transition: b.duration + "s" },
|
|
1279
1231
|
children: [
|
|
1280
|
-
/* @__PURE__ */ i("div", { className:
|
|
1281
|
-
|
|
1232
|
+
/* @__PURE__ */ i("div", { className: B.stateLayer, children: !t && /* @__PURE__ */ i(
|
|
1233
|
+
re,
|
|
1282
1234
|
{
|
|
1283
1235
|
colorName: e === "elevated" && "primary" || e === "filled" && "on-primary" || e === "filledTonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
|
|
1284
|
-
triggerRef:
|
|
1236
|
+
triggerRef: R
|
|
1285
1237
|
}
|
|
1286
1238
|
) }),
|
|
1287
|
-
|
|
1288
|
-
|
|
1239
|
+
s === "left" && I,
|
|
1240
|
+
o && /* @__PURE__ */ i(
|
|
1289
1241
|
"div",
|
|
1290
1242
|
{
|
|
1291
1243
|
className: "!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
|
|
1292
1244
|
children: /* @__PURE__ */ i(
|
|
1293
|
-
|
|
1245
|
+
He,
|
|
1294
1246
|
{
|
|
1295
1247
|
className: () => ({
|
|
1296
1248
|
progressIndicator: "h-6 w-6",
|
|
@@ -1322,47 +1274,47 @@ const He = H(
|
|
|
1322
1274
|
)
|
|
1323
1275
|
}
|
|
1324
1276
|
),
|
|
1325
|
-
/* @__PURE__ */ i("span", { className:
|
|
1326
|
-
|
|
1277
|
+
/* @__PURE__ */ i("span", { className: B.label, children: n ?? E }),
|
|
1278
|
+
s === "right" && I
|
|
1327
1279
|
]
|
|
1328
1280
|
}
|
|
1329
1281
|
)
|
|
1330
1282
|
}
|
|
1331
1283
|
);
|
|
1332
|
-
},
|
|
1284
|
+
}, xt = ({
|
|
1333
1285
|
variant: e = "outlined",
|
|
1334
1286
|
className: t,
|
|
1335
1287
|
children: r,
|
|
1336
|
-
isInteractive:
|
|
1337
|
-
ref:
|
|
1288
|
+
isInteractive: l = !1,
|
|
1289
|
+
ref: n,
|
|
1338
1290
|
...c
|
|
1339
1291
|
}) => {
|
|
1340
|
-
const
|
|
1341
|
-
return /* @__PURE__ */
|
|
1342
|
-
/* @__PURE__ */ i("div", { className:
|
|
1292
|
+
const s = Be({ className: t, isInteractive: l, variant: e }), o = P(null), d = n || o;
|
|
1293
|
+
return /* @__PURE__ */ $("div", { ...c, ref: d, className: s.card, children: [
|
|
1294
|
+
/* @__PURE__ */ i("div", { className: s.stateLayer, children: l && /* @__PURE__ */ i(re, { colorName: "on-surface", triggerRef: d }) }),
|
|
1343
1295
|
r
|
|
1344
1296
|
] });
|
|
1345
|
-
},
|
|
1346
|
-
const [
|
|
1347
|
-
return c + d * (
|
|
1348
|
-
},
|
|
1297
|
+
}, Je = (e, t, r = [0, 1]) => {
|
|
1298
|
+
const [l, n] = t, [c, s] = r, d = (Math.max(l, Math.min(e, n)) - l) / (n - l);
|
|
1299
|
+
return c + d * (s - c);
|
|
1300
|
+
}, Qe = ({
|
|
1349
1301
|
className: e,
|
|
1350
1302
|
children: t,
|
|
1351
1303
|
width: r = 1,
|
|
1352
|
-
index:
|
|
1353
|
-
ref:
|
|
1304
|
+
index: l = 0,
|
|
1305
|
+
ref: n,
|
|
1354
1306
|
...c
|
|
1355
1307
|
}) => {
|
|
1356
|
-
const
|
|
1308
|
+
const s = P(null), o = n || s, d = De({
|
|
1357
1309
|
className: e,
|
|
1358
|
-
index:
|
|
1310
|
+
index: l,
|
|
1359
1311
|
width: r,
|
|
1360
1312
|
children: t
|
|
1361
1313
|
});
|
|
1362
1314
|
return /* @__PURE__ */ i(
|
|
1363
1315
|
U.div,
|
|
1364
1316
|
{
|
|
1365
|
-
ref:
|
|
1317
|
+
ref: o,
|
|
1366
1318
|
animate: { width: r + "px" },
|
|
1367
1319
|
transition: {
|
|
1368
1320
|
duration: 0.5,
|
|
@@ -1373,248 +1325,248 @@ const He = H(
|
|
|
1373
1325
|
children: t
|
|
1374
1326
|
}
|
|
1375
1327
|
);
|
|
1376
|
-
},
|
|
1328
|
+
}, gt = ({
|
|
1377
1329
|
variant: e = "hero",
|
|
1378
1330
|
className: t,
|
|
1379
1331
|
children: r,
|
|
1380
|
-
ref:
|
|
1381
|
-
marginPourcent:
|
|
1332
|
+
ref: l,
|
|
1333
|
+
marginPourcent: n = 0,
|
|
1382
1334
|
inputRange: c = [0.21, 0.65],
|
|
1383
|
-
outputRange:
|
|
1384
|
-
gap:
|
|
1335
|
+
outputRange: s = [42, 300],
|
|
1336
|
+
gap: o = 8,
|
|
1385
1337
|
onChange: d,
|
|
1386
1338
|
scrollSensitivity: u = 1.25,
|
|
1387
|
-
...
|
|
1339
|
+
...x
|
|
1388
1340
|
}) => {
|
|
1389
|
-
var
|
|
1390
|
-
const
|
|
1341
|
+
var K, A;
|
|
1342
|
+
const y = P(null), a = l || y, v = Ve({
|
|
1391
1343
|
className: t,
|
|
1392
1344
|
children: r,
|
|
1393
1345
|
variant: e,
|
|
1394
1346
|
inputRange: c,
|
|
1395
|
-
outputRange:
|
|
1396
|
-
marginPourcent:
|
|
1347
|
+
outputRange: s,
|
|
1348
|
+
marginPourcent: n,
|
|
1397
1349
|
onChange: d,
|
|
1398
|
-
gap:
|
|
1350
|
+
gap: o,
|
|
1399
1351
|
scrollSensitivity: u
|
|
1400
|
-
}),
|
|
1401
|
-
(
|
|
1402
|
-
), b =
|
|
1352
|
+
}), g = _.Children.toArray(r).filter(
|
|
1353
|
+
(h) => _.isValidElement(h) && h.type === Qe
|
|
1354
|
+
), b = P(null), [E, M] = S([]), [w, N] = S(null), R = () => {
|
|
1403
1355
|
var F;
|
|
1404
|
-
if (!b.current || !a.current || !
|
|
1405
|
-
const { scrollVisible:
|
|
1406
|
-
function V(
|
|
1407
|
-
return
|
|
1408
|
-
(T) => (T -
|
|
1356
|
+
if (!b.current || !a.current || !w) return [];
|
|
1357
|
+
const { scrollVisible: h, scrollProgress: p } = w;
|
|
1358
|
+
function V(O, J) {
|
|
1359
|
+
return O.map(
|
|
1360
|
+
(T) => (T - J) / Math.abs(O[1] - O[0])
|
|
1409
1361
|
);
|
|
1410
1362
|
}
|
|
1411
|
-
let X =
|
|
1412
|
-
if (!
|
|
1413
|
-
let
|
|
1414
|
-
return
|
|
1363
|
+
let X = g.map((O, J) => {
|
|
1364
|
+
if (!L[J].current || !b.current) return 0;
|
|
1365
|
+
let te = J / (g.length - 1);
|
|
1366
|
+
return te > 1 && (te = 1), te < 0 && (te = 0), te;
|
|
1415
1367
|
});
|
|
1416
|
-
X = V(X,
|
|
1417
|
-
let
|
|
1418
|
-
return X.map((
|
|
1419
|
-
|
|
1420
|
-
let T =
|
|
1421
|
-
T <
|
|
1368
|
+
X = V(X, p);
|
|
1369
|
+
let k = ((((F = a.current) == null ? void 0 : F.clientWidth) ?? h) - (s[0] + o)) / (s[1] + o);
|
|
1370
|
+
return X.map((O, J) => ({ value: Math.abs(O), originalIndex: J })).sort((O, J) => O.value - J.value).forEach((O, J) => {
|
|
1371
|
+
J === 0 && D(O.originalIndex);
|
|
1372
|
+
let T = Je(k, [0, 1], [0, s[1]]);
|
|
1373
|
+
T < s[0] && (T = s[0]), k--, X[O.originalIndex] = T;
|
|
1422
1374
|
}), X;
|
|
1423
|
-
},
|
|
1424
|
-
|
|
1375
|
+
}, L = P([]).current, [C, D] = S(0);
|
|
1376
|
+
W(() => {
|
|
1425
1377
|
d && d(C);
|
|
1426
|
-
}, [C]),
|
|
1427
|
-
|
|
1378
|
+
}, [C]), L.length !== g.length && g.forEach((h, p) => {
|
|
1379
|
+
L[p] || (L[p] = _.createRef());
|
|
1428
1380
|
});
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1381
|
+
const B = g.map((h, p) => _.cloneElement(
|
|
1382
|
+
h,
|
|
1431
1383
|
{
|
|
1432
|
-
width:
|
|
1433
|
-
ref:
|
|
1434
|
-
key:
|
|
1435
|
-
index:
|
|
1384
|
+
width: E[p],
|
|
1385
|
+
ref: L[p],
|
|
1386
|
+
key: p,
|
|
1387
|
+
index: p
|
|
1436
1388
|
}
|
|
1437
|
-
)),
|
|
1438
|
-
|
|
1389
|
+
)), I = me((w == null ? void 0 : w.scrollProgress) ?? 0), m = oe(
|
|
1390
|
+
I,
|
|
1439
1391
|
[0, 1],
|
|
1440
1392
|
[
|
|
1441
1393
|
0,
|
|
1442
|
-
1 - (((
|
|
1394
|
+
1 - (((K = a.current) == null ? void 0 : K.clientWidth) ?? 0) / (((A = b == null ? void 0 : b.current) == null ? void 0 : A.clientWidth) ?? 0)
|
|
1443
1395
|
]
|
|
1444
|
-
), j =
|
|
1445
|
-
|
|
1446
|
-
(
|
|
1447
|
-
),
|
|
1448
|
-
|
|
1396
|
+
), j = oe(
|
|
1397
|
+
m,
|
|
1398
|
+
(h) => `${-h * 100}%`
|
|
1399
|
+
), Y = (h) => {
|
|
1400
|
+
h.scrollTotal > 0 && N(h);
|
|
1449
1401
|
};
|
|
1450
|
-
|
|
1451
|
-
const
|
|
1452
|
-
|
|
1453
|
-
}, [
|
|
1454
|
-
const [
|
|
1455
|
-
return
|
|
1456
|
-
let
|
|
1457
|
-
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
}, [a,
|
|
1461
|
-
|
|
1402
|
+
W(() => {
|
|
1403
|
+
const h = R();
|
|
1404
|
+
M(h);
|
|
1405
|
+
}, [w]);
|
|
1406
|
+
const [G, Z] = S(0);
|
|
1407
|
+
return de(() => {
|
|
1408
|
+
let h = s[1];
|
|
1409
|
+
w && h > w.scrollVisible && (h = w.scrollVisible);
|
|
1410
|
+
const p = (h + o) * B.length / u;
|
|
1411
|
+
Z(p);
|
|
1412
|
+
}, [a, L, w]), /* @__PURE__ */ i("div", { className: v.carousel, ref: a, ...x, children: /* @__PURE__ */ i(
|
|
1413
|
+
he,
|
|
1462
1414
|
{
|
|
1463
1415
|
draggable: !0,
|
|
1464
1416
|
orientation: "horizontal",
|
|
1465
|
-
onScroll:
|
|
1466
|
-
scrollSize:
|
|
1417
|
+
onScroll: Y,
|
|
1418
|
+
scrollSize: G,
|
|
1467
1419
|
children: /* @__PURE__ */ i(
|
|
1468
1420
|
U.div,
|
|
1469
1421
|
{
|
|
1470
|
-
className:
|
|
1422
|
+
className: v.track,
|
|
1471
1423
|
ref: b,
|
|
1472
1424
|
style: {
|
|
1473
1425
|
transitionDuration: "0.5s",
|
|
1474
1426
|
transitionTimingFunction: "ease-out",
|
|
1475
|
-
gap: `${
|
|
1427
|
+
gap: `${o}px`,
|
|
1476
1428
|
x: j
|
|
1477
1429
|
},
|
|
1478
|
-
children:
|
|
1430
|
+
children: B
|
|
1479
1431
|
}
|
|
1480
1432
|
)
|
|
1481
1433
|
}
|
|
1482
1434
|
) });
|
|
1483
|
-
},
|
|
1435
|
+
}, wt = ({
|
|
1484
1436
|
orientation: e = "horizontal",
|
|
1485
1437
|
className: t,
|
|
1486
1438
|
...r
|
|
1487
1439
|
}) => {
|
|
1488
|
-
const
|
|
1489
|
-
return /* @__PURE__ */ i("hr", { className:
|
|
1490
|
-
},
|
|
1440
|
+
const l = We({ orientation: e, className: t });
|
|
1441
|
+
return /* @__PURE__ */ i("hr", { className: l.divider, ...r });
|
|
1442
|
+
}, H = [];
|
|
1491
1443
|
for (let e = 0; e < 256; ++e)
|
|
1492
|
-
|
|
1493
|
-
function
|
|
1494
|
-
return (
|
|
1444
|
+
H.push((e + 256).toString(16).slice(1));
|
|
1445
|
+
function Ae(e, t = 0) {
|
|
1446
|
+
return (H[e[t + 0]] + H[e[t + 1]] + H[e[t + 2]] + H[e[t + 3]] + "-" + H[e[t + 4]] + H[e[t + 5]] + "-" + H[e[t + 6]] + H[e[t + 7]] + "-" + H[e[t + 8]] + H[e[t + 9]] + "-" + H[e[t + 10]] + H[e[t + 11]] + H[e[t + 12]] + H[e[t + 13]] + H[e[t + 14]] + H[e[t + 15]]).toLowerCase();
|
|
1495
1447
|
}
|
|
1496
|
-
let
|
|
1497
|
-
const
|
|
1498
|
-
function
|
|
1499
|
-
if (!
|
|
1448
|
+
let ae;
|
|
1449
|
+
const ze = new Uint8Array(16);
|
|
1450
|
+
function Te() {
|
|
1451
|
+
if (!ae) {
|
|
1500
1452
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1501
1453
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1502
|
-
|
|
1454
|
+
ae = crypto.getRandomValues.bind(crypto);
|
|
1503
1455
|
}
|
|
1504
|
-
return
|
|
1456
|
+
return ae(ze);
|
|
1505
1457
|
}
|
|
1506
|
-
const
|
|
1507
|
-
function
|
|
1508
|
-
var
|
|
1509
|
-
if (
|
|
1510
|
-
return
|
|
1458
|
+
const et = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ie = { randomUUID: et };
|
|
1459
|
+
function ce(e, t, r) {
|
|
1460
|
+
var n;
|
|
1461
|
+
if (ie.randomUUID && !e)
|
|
1462
|
+
return ie.randomUUID();
|
|
1511
1463
|
e = e || {};
|
|
1512
|
-
const
|
|
1513
|
-
if (
|
|
1464
|
+
const l = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Te();
|
|
1465
|
+
if (l.length < 16)
|
|
1514
1466
|
throw new Error("Random bytes length must be >= 16");
|
|
1515
|
-
return
|
|
1467
|
+
return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, Ae(l);
|
|
1516
1468
|
}
|
|
1517
|
-
const
|
|
1469
|
+
const ye = ({
|
|
1518
1470
|
variant: e = "plain",
|
|
1519
1471
|
buttons: t,
|
|
1520
1472
|
className: r,
|
|
1521
|
-
children:
|
|
1522
|
-
title:
|
|
1473
|
+
children: l,
|
|
1474
|
+
title: n,
|
|
1523
1475
|
text: c,
|
|
1524
|
-
position:
|
|
1525
|
-
targetRef:
|
|
1476
|
+
position: s,
|
|
1477
|
+
targetRef: o,
|
|
1526
1478
|
ref: d,
|
|
1527
1479
|
trigger: u = ["hover", "focus"],
|
|
1528
|
-
...
|
|
1480
|
+
...x
|
|
1529
1481
|
}) => {
|
|
1530
|
-
if (!
|
|
1482
|
+
if (!l && !o)
|
|
1531
1483
|
throw new Error("ToolTip must have a child or a targetRef");
|
|
1532
1484
|
Array.isArray(u) || (u = [u]), t && !Array.isArray(t) && (t = [t]);
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1535
|
-
const
|
|
1536
|
-
|
|
1485
|
+
const y = P(null), a = o || y, [v, g] = S(null), [b] = S(ce()), [E, M] = S(!1), w = P(null);
|
|
1486
|
+
W(() => {
|
|
1487
|
+
const m = (j) => {
|
|
1488
|
+
g(j.detail);
|
|
1537
1489
|
};
|
|
1538
|
-
return document.addEventListener("tooltip-update",
|
|
1490
|
+
return document.addEventListener("tooltip-update", m), () => {
|
|
1539
1491
|
document.removeEventListener(
|
|
1540
1492
|
"tooltip-update",
|
|
1541
|
-
|
|
1493
|
+
m
|
|
1542
1494
|
);
|
|
1543
1495
|
};
|
|
1544
|
-
}, []),
|
|
1545
|
-
|
|
1546
|
-
|
|
1496
|
+
}, []), W(() => {
|
|
1497
|
+
w.current && clearTimeout(w.current), v ? M(v === b) : w.current = setTimeout(() => {
|
|
1498
|
+
M(!1);
|
|
1547
1499
|
}, 1200);
|
|
1548
|
-
}, [
|
|
1500
|
+
}, [v, b]);
|
|
1549
1501
|
const N = () => {
|
|
1550
1502
|
if (u.includes("hover")) {
|
|
1551
|
-
const
|
|
1552
|
-
document.dispatchEvent(
|
|
1503
|
+
const m = new CustomEvent("tooltip-update", { detail: b });
|
|
1504
|
+
document.dispatchEvent(m);
|
|
1553
1505
|
}
|
|
1554
|
-
},
|
|
1506
|
+
}, R = () => {
|
|
1555
1507
|
if (u.includes("hover")) {
|
|
1556
|
-
const
|
|
1557
|
-
document.dispatchEvent(
|
|
1508
|
+
const m = new CustomEvent("tooltip-update", { detail: null });
|
|
1509
|
+
document.dispatchEvent(m);
|
|
1558
1510
|
}
|
|
1559
|
-
},
|
|
1511
|
+
}, L = () => {
|
|
1560
1512
|
if (u.includes("click")) {
|
|
1561
|
-
const
|
|
1562
|
-
detail:
|
|
1513
|
+
const m = new CustomEvent("tooltip-update", {
|
|
1514
|
+
detail: E ? null : b
|
|
1563
1515
|
});
|
|
1564
|
-
document.dispatchEvent(
|
|
1516
|
+
document.dispatchEvent(m);
|
|
1565
1517
|
}
|
|
1566
1518
|
}, C = () => {
|
|
1567
1519
|
if (u.includes("focus")) {
|
|
1568
|
-
const
|
|
1569
|
-
document.dispatchEvent(
|
|
1520
|
+
const m = new CustomEvent("tooltip-update", { detail: b });
|
|
1521
|
+
document.dispatchEvent(m);
|
|
1570
1522
|
}
|
|
1571
|
-
},
|
|
1523
|
+
}, D = () => {
|
|
1572
1524
|
if (u.includes("focus")) {
|
|
1573
|
-
const
|
|
1574
|
-
document.dispatchEvent(
|
|
1525
|
+
const m = new CustomEvent("tooltip-update", { detail: null });
|
|
1526
|
+
document.dispatchEvent(m);
|
|
1575
1527
|
}
|
|
1576
1528
|
};
|
|
1577
|
-
|
|
1529
|
+
W(() => {
|
|
1578
1530
|
if (a != null && a.current) {
|
|
1579
|
-
const
|
|
1580
|
-
return
|
|
1581
|
-
|
|
1531
|
+
const m = a.current;
|
|
1532
|
+
return m.addEventListener("mouseenter", N), m.addEventListener("mouseleave", R), m.addEventListener("click", L), m.addEventListener("focus", C), m.addEventListener("blur", D), () => {
|
|
1533
|
+
m.removeEventListener("mouseenter", N), m.removeEventListener("mouseleave", R), m.removeEventListener("click", L), m.removeEventListener("focus", C), m.removeEventListener("blur", D);
|
|
1582
1534
|
};
|
|
1583
1535
|
}
|
|
1584
|
-
}, [a, u, b,
|
|
1585
|
-
const
|
|
1586
|
-
if (!
|
|
1587
|
-
const
|
|
1588
|
-
e === "plain" ?
|
|
1536
|
+
}, [a, u, b, E]);
|
|
1537
|
+
const B = !o && ee(l) ? le(l, { ref: y }) : l;
|
|
1538
|
+
if (!s && typeof window < "u" && a != null && a.current && !s) {
|
|
1539
|
+
const m = a.current.getBoundingClientRect(), j = window.innerWidth, Y = window.innerHeight, G = m.left / j, Z = m.top / Y;
|
|
1540
|
+
e === "plain" ? G < 1 / 3 ? s = "right" : G > 2 / 3 ? s = "left" : s = Z > 0.5 ? "top" : "bottom" : G < 1 / 2 && Z < 1 / 2 ? s = "bottom-right" : G > 1 / 2 && Z < 1 / 2 ? s = "bottom-left" : G > 1 / 2 && Z > 1 / 2 ? s = "top-left" : G < 1 / 2 && Z > 1 / 2 && (s = "top-right");
|
|
1589
1541
|
}
|
|
1590
|
-
const
|
|
1542
|
+
const I = qe({
|
|
1591
1543
|
variant: e,
|
|
1592
1544
|
buttons: t,
|
|
1593
1545
|
className: r,
|
|
1594
|
-
title:
|
|
1546
|
+
title: n,
|
|
1595
1547
|
text: c,
|
|
1596
|
-
position:
|
|
1548
|
+
position: s,
|
|
1597
1549
|
trigger: u,
|
|
1598
|
-
targetRef:
|
|
1599
|
-
children:
|
|
1550
|
+
targetRef: o,
|
|
1551
|
+
children: l
|
|
1600
1552
|
});
|
|
1601
|
-
return /* @__PURE__ */
|
|
1602
|
-
|
|
1603
|
-
/* @__PURE__ */ i(z, { children:
|
|
1553
|
+
return /* @__PURE__ */ $(ne, { children: [
|
|
1554
|
+
B,
|
|
1555
|
+
/* @__PURE__ */ i(z, { children: E && /* @__PURE__ */ i(_e, { targetRef: a, children: /* @__PURE__ */ i(
|
|
1604
1556
|
U.div,
|
|
1605
1557
|
{
|
|
1606
|
-
initial: { opacity:
|
|
1558
|
+
initial: { opacity: v ? 1 : 0 },
|
|
1607
1559
|
animate: { opacity: 1 },
|
|
1608
|
-
transition: { duration:
|
|
1609
|
-
exit: { opacity:
|
|
1610
|
-
className:
|
|
1611
|
-
...
|
|
1560
|
+
transition: { duration: v ? 0 : 0.3 },
|
|
1561
|
+
exit: { opacity: v ? 1 : 0 },
|
|
1562
|
+
className: I.toolTip,
|
|
1563
|
+
...x,
|
|
1612
1564
|
onMouseEnter: N,
|
|
1613
|
-
onMouseLeave:
|
|
1614
|
-
children: /* @__PURE__ */
|
|
1565
|
+
onMouseLeave: R,
|
|
1566
|
+
children: /* @__PURE__ */ $(
|
|
1615
1567
|
U.div,
|
|
1616
1568
|
{
|
|
1617
|
-
className:
|
|
1569
|
+
className: I.container,
|
|
1618
1570
|
layoutId: "tool-tip",
|
|
1619
1571
|
transition: {
|
|
1620
1572
|
type: "spring",
|
|
@@ -1622,14 +1574,14 @@ const he = ({
|
|
|
1622
1574
|
damping: 20
|
|
1623
1575
|
},
|
|
1624
1576
|
children: [
|
|
1625
|
-
|
|
1626
|
-
/* @__PURE__ */ i("div", { className:
|
|
1627
|
-
t && /* @__PURE__ */ i("div", { className:
|
|
1628
|
-
|
|
1577
|
+
n && /* @__PURE__ */ i("div", { className: I.subHead, children: n }),
|
|
1578
|
+
/* @__PURE__ */ i("div", { className: I.supportingText, children: c }),
|
|
1579
|
+
t && /* @__PURE__ */ i("div", { className: I.actions, children: Array.isArray(t) && t.map((m, j) => /* @__PURE__ */ i(
|
|
1580
|
+
Ze,
|
|
1629
1581
|
{
|
|
1630
1582
|
size: "small",
|
|
1631
1583
|
variant: "text",
|
|
1632
|
-
...
|
|
1584
|
+
...m
|
|
1633
1585
|
},
|
|
1634
1586
|
j
|
|
1635
1587
|
)) })
|
|
@@ -1639,31 +1591,31 @@ const he = ({
|
|
|
1639
1591
|
}
|
|
1640
1592
|
) }) })
|
|
1641
1593
|
] });
|
|
1642
|
-
},
|
|
1594
|
+
}, ue = ({
|
|
1643
1595
|
className: e,
|
|
1644
1596
|
label: t,
|
|
1645
1597
|
variant: r = "primary",
|
|
1646
|
-
size:
|
|
1647
|
-
href:
|
|
1598
|
+
size: l = "medium",
|
|
1599
|
+
href: n,
|
|
1648
1600
|
type: c,
|
|
1649
|
-
icon:
|
|
1650
|
-
isExtended:
|
|
1601
|
+
icon: s,
|
|
1602
|
+
isExtended: o = !1,
|
|
1651
1603
|
ref: d,
|
|
1652
1604
|
transition: u,
|
|
1653
|
-
...
|
|
1605
|
+
...x
|
|
1654
1606
|
}) => {
|
|
1655
|
-
const
|
|
1656
|
-
href:
|
|
1657
|
-
icon:
|
|
1658
|
-
isExtended:
|
|
1607
|
+
const y = n ? "a" : "button", a = $e({
|
|
1608
|
+
href: n,
|
|
1609
|
+
icon: s,
|
|
1610
|
+
isExtended: o,
|
|
1659
1611
|
label: t,
|
|
1660
|
-
size:
|
|
1612
|
+
size: l,
|
|
1661
1613
|
variant: r,
|
|
1662
1614
|
className: e,
|
|
1663
1615
|
transition: u
|
|
1664
1616
|
});
|
|
1665
1617
|
u = { duration: 0.3, ...u };
|
|
1666
|
-
const
|
|
1618
|
+
const v = P(null), g = d || v, b = {
|
|
1667
1619
|
visible: {
|
|
1668
1620
|
width: "auto",
|
|
1669
1621
|
marginLeft: 12,
|
|
@@ -1689,25 +1641,25 @@ const he = ({
|
|
|
1689
1641
|
}
|
|
1690
1642
|
}
|
|
1691
1643
|
};
|
|
1692
|
-
return /* @__PURE__ */
|
|
1693
|
-
|
|
1644
|
+
return /* @__PURE__ */ $(
|
|
1645
|
+
y,
|
|
1694
1646
|
{
|
|
1695
|
-
...
|
|
1696
|
-
ref:
|
|
1697
|
-
href:
|
|
1698
|
-
"aria-label":
|
|
1647
|
+
...x,
|
|
1648
|
+
ref: g,
|
|
1649
|
+
href: n,
|
|
1650
|
+
"aria-label": o ? void 0 : t,
|
|
1699
1651
|
className: a.fab,
|
|
1700
1652
|
children: [
|
|
1701
1653
|
/* @__PURE__ */ i(
|
|
1702
|
-
|
|
1654
|
+
ye,
|
|
1703
1655
|
{
|
|
1704
|
-
trigger:
|
|
1656
|
+
trigger: o ? null : void 0,
|
|
1705
1657
|
text: t,
|
|
1706
|
-
targetRef:
|
|
1658
|
+
targetRef: g
|
|
1707
1659
|
}
|
|
1708
1660
|
),
|
|
1709
1661
|
/* @__PURE__ */ i("span", { className: a.stateLayer, children: /* @__PURE__ */ i(
|
|
1710
|
-
|
|
1662
|
+
re,
|
|
1711
1663
|
{
|
|
1712
1664
|
colorName: f({
|
|
1713
1665
|
primary: r == "surface",
|
|
@@ -1715,11 +1667,11 @@ const he = ({
|
|
|
1715
1667
|
"on-secondary-container": r == "secondary",
|
|
1716
1668
|
"on-tertiary-container": r == "tertiary"
|
|
1717
1669
|
}),
|
|
1718
|
-
triggerRef:
|
|
1670
|
+
triggerRef: g
|
|
1719
1671
|
}
|
|
1720
1672
|
) }),
|
|
1721
|
-
/* @__PURE__ */ i(
|
|
1722
|
-
/* @__PURE__ */ i(z, { children:
|
|
1673
|
+
/* @__PURE__ */ i(Q, { icon: s, className: a.icon }),
|
|
1674
|
+
/* @__PURE__ */ i(z, { children: o && /* @__PURE__ */ i(
|
|
1723
1675
|
U.span,
|
|
1724
1676
|
{
|
|
1725
1677
|
variants: b,
|
|
@@ -1733,83 +1685,83 @@ const he = ({
|
|
|
1733
1685
|
]
|
|
1734
1686
|
}
|
|
1735
1687
|
);
|
|
1736
|
-
},
|
|
1688
|
+
}, xe = ({
|
|
1737
1689
|
variant: e = "standard",
|
|
1738
1690
|
href: t,
|
|
1739
1691
|
disabled: r = !1,
|
|
1740
|
-
type:
|
|
1741
|
-
title:
|
|
1742
|
-
|
|
1743
|
-
onToggle:
|
|
1744
|
-
activated:
|
|
1692
|
+
type: l = "button",
|
|
1693
|
+
title: n,
|
|
1694
|
+
ariaLabel: c,
|
|
1695
|
+
onToggle: s,
|
|
1696
|
+
activated: o = !1,
|
|
1745
1697
|
onClick: d,
|
|
1746
1698
|
icon: u,
|
|
1747
|
-
size:
|
|
1748
|
-
iconSelected:
|
|
1699
|
+
size: x = "medium",
|
|
1700
|
+
iconSelected: y,
|
|
1749
1701
|
className: a,
|
|
1750
|
-
ref:
|
|
1751
|
-
width:
|
|
1702
|
+
ref: v,
|
|
1703
|
+
width: g = "default",
|
|
1752
1704
|
shape: b = "rounded",
|
|
1753
|
-
allowShapeTransformation:
|
|
1754
|
-
transition:
|
|
1755
|
-
...
|
|
1705
|
+
allowShapeTransformation: E = !0,
|
|
1706
|
+
transition: M,
|
|
1707
|
+
...w
|
|
1756
1708
|
}) => {
|
|
1757
|
-
|
|
1758
|
-
const [N,
|
|
1759
|
-
let
|
|
1760
|
-
|
|
1761
|
-
r &&
|
|
1762
|
-
}, u = N &&
|
|
1763
|
-
r &&
|
|
1764
|
-
},
|
|
1765
|
-
|
|
1766
|
-
}, [
|
|
1767
|
-
const C = t ? "a" : "button",
|
|
1768
|
-
transition:
|
|
1709
|
+
n || (n = c);
|
|
1710
|
+
const [N, R] = _.useState(o);
|
|
1711
|
+
let L;
|
|
1712
|
+
s ? s && (L = (m) => {
|
|
1713
|
+
r && m.preventDefault(), R(!N), s(!!N);
|
|
1714
|
+
}, u = N && y || u) : L = (m) => {
|
|
1715
|
+
r && m.preventDefault(), d && d(m);
|
|
1716
|
+
}, W(() => {
|
|
1717
|
+
R(o);
|
|
1718
|
+
}, [o]);
|
|
1719
|
+
const C = t ? "a" : "button", D = Pe({
|
|
1720
|
+
transition: M,
|
|
1769
1721
|
shape: b,
|
|
1770
|
-
allowShapeTransformation:
|
|
1771
|
-
width:
|
|
1722
|
+
allowShapeTransformation: E,
|
|
1723
|
+
width: g,
|
|
1772
1724
|
href: t,
|
|
1773
|
-
activated:
|
|
1774
|
-
|
|
1775
|
-
iconSelected:
|
|
1725
|
+
activated: N,
|
|
1726
|
+
ariaLabel: c,
|
|
1727
|
+
iconSelected: y,
|
|
1776
1728
|
isActive: N,
|
|
1777
|
-
onToggle:
|
|
1729
|
+
onToggle: s,
|
|
1778
1730
|
disabled: r,
|
|
1779
1731
|
icon: u,
|
|
1780
1732
|
variant: e,
|
|
1781
1733
|
className: a,
|
|
1782
|
-
size:
|
|
1783
|
-
...
|
|
1784
|
-
}),
|
|
1785
|
-
return
|
|
1734
|
+
size: x,
|
|
1735
|
+
...w
|
|
1736
|
+
}), B = P(null), I = v || B;
|
|
1737
|
+
return M = { duration: 0.3, ...M }, /* @__PURE__ */ $(
|
|
1786
1738
|
C,
|
|
1787
1739
|
{
|
|
1788
1740
|
disabled: r,
|
|
1789
1741
|
href: t,
|
|
1790
|
-
className:
|
|
1742
|
+
className: D.iconButton,
|
|
1791
1743
|
"aria-label": c,
|
|
1792
|
-
...
|
|
1744
|
+
...w,
|
|
1793
1745
|
title: void 0,
|
|
1794
|
-
onClick:
|
|
1795
|
-
ref:
|
|
1746
|
+
onClick: L,
|
|
1747
|
+
ref: I,
|
|
1796
1748
|
children: [
|
|
1797
1749
|
/* @__PURE__ */ i(
|
|
1798
|
-
|
|
1750
|
+
ye,
|
|
1799
1751
|
{
|
|
1800
|
-
targetRef:
|
|
1752
|
+
targetRef: I,
|
|
1801
1753
|
trigger: r ? null : void 0,
|
|
1802
|
-
text:
|
|
1754
|
+
text: n
|
|
1803
1755
|
}
|
|
1804
1756
|
),
|
|
1805
|
-
/* @__PURE__ */
|
|
1757
|
+
/* @__PURE__ */ $(
|
|
1806
1758
|
"div",
|
|
1807
1759
|
{
|
|
1808
|
-
style: { transition:
|
|
1809
|
-
className:
|
|
1760
|
+
style: { transition: M.duration + "s" },
|
|
1761
|
+
className: D.container,
|
|
1810
1762
|
children: [
|
|
1811
|
-
/* @__PURE__ */ i("div", { className:
|
|
1812
|
-
|
|
1763
|
+
/* @__PURE__ */ i("div", { className: D.stateLayer, children: !r && /* @__PURE__ */ i(
|
|
1764
|
+
re,
|
|
1813
1765
|
{
|
|
1814
1766
|
colorName: f(
|
|
1815
1767
|
e === "standard" && {
|
|
@@ -1817,37 +1769,37 @@ const he = ({
|
|
|
1817
1769
|
primary: N
|
|
1818
1770
|
},
|
|
1819
1771
|
e === "filled" && {
|
|
1820
|
-
primary: !N && !!
|
|
1821
|
-
"inverse-on-surface": N || !
|
|
1772
|
+
primary: !N && !!s,
|
|
1773
|
+
"inverse-on-surface": N || !s
|
|
1822
1774
|
},
|
|
1823
1775
|
e === "tonal" && {
|
|
1824
|
-
"on-surface-variant": !N && !!
|
|
1825
|
-
"on-secondary-container": N || !
|
|
1776
|
+
"on-surface-variant": !N && !!s,
|
|
1777
|
+
"on-secondary-container": N || !s
|
|
1826
1778
|
},
|
|
1827
1779
|
e === "outlined" && {
|
|
1828
1780
|
"on-surface-variant": !N,
|
|
1829
1781
|
"on-primary": N
|
|
1830
1782
|
}
|
|
1831
1783
|
),
|
|
1832
|
-
triggerRef:
|
|
1784
|
+
triggerRef: I
|
|
1833
1785
|
}
|
|
1834
1786
|
) }),
|
|
1835
|
-
u && /* @__PURE__ */ i(
|
|
1787
|
+
u && /* @__PURE__ */ i(Q, { icon: u, className: D.icon })
|
|
1836
1788
|
]
|
|
1837
1789
|
}
|
|
1838
1790
|
)
|
|
1839
1791
|
]
|
|
1840
1792
|
}
|
|
1841
1793
|
);
|
|
1842
|
-
},
|
|
1794
|
+
}, vt = ({
|
|
1843
1795
|
className: e,
|
|
1844
1796
|
valueFormatter: t,
|
|
1845
1797
|
step: r = 10,
|
|
1846
|
-
name:
|
|
1847
|
-
value:
|
|
1798
|
+
name: l,
|
|
1799
|
+
value: n = 0,
|
|
1848
1800
|
min: c = 0,
|
|
1849
|
-
max:
|
|
1850
|
-
marks:
|
|
1801
|
+
max: s = 100,
|
|
1802
|
+
marks: o = [
|
|
1851
1803
|
{
|
|
1852
1804
|
value: 0,
|
|
1853
1805
|
label: "0"
|
|
@@ -1859,97 +1811,97 @@ const he = ({
|
|
|
1859
1811
|
],
|
|
1860
1812
|
ref: d,
|
|
1861
1813
|
onChange: u,
|
|
1862
|
-
...
|
|
1814
|
+
...x
|
|
1863
1815
|
}) => {
|
|
1864
|
-
const
|
|
1865
|
-
const
|
|
1866
|
-
return
|
|
1867
|
-
}, a = (
|
|
1868
|
-
const
|
|
1869
|
-
return (a(!1) -
|
|
1870
|
-
}, [b,
|
|
1871
|
-
|
|
1872
|
-
},
|
|
1873
|
-
|
|
1816
|
+
const y = (h) => {
|
|
1817
|
+
const p = v(), V = a();
|
|
1818
|
+
return h === 1 / 0 ? 100 : h === -1 / 0 ? 0 : (h - p) / (V - p) * 100;
|
|
1819
|
+
}, a = (h = !1) => h ? s : s == 1 / 0 ? o[(o == null ? void 0 : o.length) - 1].value : s, v = (h = !1) => h ? c : c == -1 / 0 ? o[0].value : c, g = (h) => {
|
|
1820
|
+
const p = v(!1);
|
|
1821
|
+
return (a(!1) - p) * h / 100 + p;
|
|
1822
|
+
}, [b, E] = S(!1), M = P(null), w = d || M, [N, R] = S(n), [L, C] = S(y(n)), [D, B] = S(!1), I = (h) => {
|
|
1823
|
+
B(!0), E(!0), Y(h);
|
|
1824
|
+
}, m = () => {
|
|
1825
|
+
B(!1), E(!1);
|
|
1874
1826
|
};
|
|
1875
|
-
|
|
1876
|
-
window.removeEventListener("mouseup",
|
|
1877
|
-
}), [
|
|
1878
|
-
const j =
|
|
1827
|
+
W(() => (D ? (window.addEventListener("mouseup", m), window.addEventListener("mousemove", Y), window.addEventListener("touchend", m), window.addEventListener("touchmove", Y)) : (window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", Y), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", Y)), () => {
|
|
1828
|
+
window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", Y), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", Y);
|
|
1829
|
+
}), [D]);
|
|
1830
|
+
const j = je({
|
|
1879
1831
|
className: e,
|
|
1880
1832
|
isChanging: b,
|
|
1881
|
-
marks:
|
|
1882
|
-
max:
|
|
1833
|
+
marks: o,
|
|
1834
|
+
max: s,
|
|
1883
1835
|
min: c,
|
|
1884
|
-
name:
|
|
1836
|
+
name: l,
|
|
1885
1837
|
step: r,
|
|
1886
1838
|
value: N,
|
|
1887
1839
|
valueFormatter: t,
|
|
1888
1840
|
onChange: u
|
|
1889
|
-
}),
|
|
1890
|
-
const
|
|
1891
|
-
if (
|
|
1892
|
-
const V =
|
|
1893
|
-
|
|
1841
|
+
}), Y = (h) => {
|
|
1842
|
+
const p = w == null ? void 0 : w.current;
|
|
1843
|
+
if (p) {
|
|
1844
|
+
const V = p.getBoundingClientRect().left, k = ((h.type === "touchmove" || h.type === "touchstart" ? h.touches[0].clientX : h.clientX) - V) / p.offsetWidth * 100;
|
|
1845
|
+
G({ pourcent: k });
|
|
1894
1846
|
}
|
|
1895
|
-
},
|
|
1896
|
-
pourcent:
|
|
1897
|
-
value:
|
|
1847
|
+
}, G = ({
|
|
1848
|
+
pourcent: h,
|
|
1849
|
+
value: p
|
|
1898
1850
|
}) => {
|
|
1899
|
-
if (
|
|
1900
|
-
if (
|
|
1901
|
-
|
|
1851
|
+
if (h) {
|
|
1852
|
+
if (h >= 100) {
|
|
1853
|
+
R(a(!0)), C(100);
|
|
1902
1854
|
return;
|
|
1903
1855
|
}
|
|
1904
|
-
if (
|
|
1905
|
-
|
|
1856
|
+
if (h <= 0) {
|
|
1857
|
+
R(v(!0)), C(0);
|
|
1906
1858
|
return;
|
|
1907
1859
|
}
|
|
1908
|
-
|
|
1909
|
-
} else if (
|
|
1910
|
-
if (
|
|
1911
|
-
|
|
1860
|
+
p = g(h), p == v() && (p = v(!0)), p == a() && (p = a(!0));
|
|
1861
|
+
} else if (p != null) {
|
|
1862
|
+
if (p >= a()) {
|
|
1863
|
+
R(a(!0)), C(100);
|
|
1912
1864
|
return;
|
|
1913
1865
|
}
|
|
1914
|
-
if (
|
|
1915
|
-
|
|
1866
|
+
if (p <= v()) {
|
|
1867
|
+
R(v(!0)), C(0);
|
|
1916
1868
|
return;
|
|
1917
1869
|
}
|
|
1918
|
-
|
|
1870
|
+
h = y(p);
|
|
1919
1871
|
} else
|
|
1920
1872
|
return;
|
|
1921
|
-
r != null ?
|
|
1922
|
-
let F = X.value === 1 / 0 ? a() : X.value === -1 / 0 ?
|
|
1923
|
-
return F = Math.abs(F -
|
|
1924
|
-
}).value),
|
|
1925
|
-
}, [
|
|
1926
|
-
return
|
|
1927
|
-
const
|
|
1928
|
-
|
|
1873
|
+
r != null ? p = Math.round((p - v()) / r) * r + v() : o && (p = o.reduce((V, X, k) => {
|
|
1874
|
+
let F = X.value === 1 / 0 ? a() : X.value === -1 / 0 ? v() : X.value, O = V.value === 1 / 0 ? a() : V.value === -1 / 0 ? v() : V.value;
|
|
1875
|
+
return F = Math.abs(F - p), O = Math.abs(O - p), F < O ? X : V;
|
|
1876
|
+
}).value), p >= a() && (p = a(!0)), p <= v() && (p = v(!0)), h = y(p), R(p), C(h), u && u(p);
|
|
1877
|
+
}, [Z, K] = S(0);
|
|
1878
|
+
return W(() => {
|
|
1879
|
+
const h = () => {
|
|
1880
|
+
w.current && K(w.current.offsetWidth);
|
|
1929
1881
|
};
|
|
1930
|
-
return
|
|
1931
|
-
window.removeEventListener("resize",
|
|
1882
|
+
return h(), window.addEventListener("resize", h), () => {
|
|
1883
|
+
window.removeEventListener("resize", h);
|
|
1932
1884
|
};
|
|
1933
|
-
}, []), /* @__PURE__ */
|
|
1885
|
+
}, []), /* @__PURE__ */ $(
|
|
1934
1886
|
"div",
|
|
1935
1887
|
{
|
|
1936
1888
|
tabIndex: 0,
|
|
1937
|
-
onKeyDown: (
|
|
1938
|
-
switch (
|
|
1889
|
+
onKeyDown: (h) => {
|
|
1890
|
+
switch (h.key) {
|
|
1939
1891
|
case "ArrowRight":
|
|
1940
1892
|
if (r)
|
|
1941
|
-
|
|
1942
|
-
else if (
|
|
1943
|
-
const
|
|
1944
|
-
|
|
1893
|
+
G({ value: N + r });
|
|
1894
|
+
else if (o) {
|
|
1895
|
+
const p = o.find((V) => V.value > N);
|
|
1896
|
+
p && G({ value: p.value });
|
|
1945
1897
|
}
|
|
1946
1898
|
break;
|
|
1947
1899
|
case "ArrowLeft":
|
|
1948
1900
|
if (r)
|
|
1949
|
-
|
|
1950
|
-
else if (
|
|
1951
|
-
const
|
|
1952
|
-
|
|
1901
|
+
G({ value: N - r });
|
|
1902
|
+
else if (o) {
|
|
1903
|
+
const p = o.slice(0).reverse().find((V, X, k) => N === 1 / 0 ? X === 1 : V.value < N);
|
|
1904
|
+
p && G({ value: p.value });
|
|
1953
1905
|
}
|
|
1954
1906
|
break;
|
|
1955
1907
|
default:
|
|
@@ -1957,24 +1909,24 @@ const he = ({
|
|
|
1957
1909
|
}
|
|
1958
1910
|
},
|
|
1959
1911
|
role: "slider",
|
|
1960
|
-
"aria-valuemin":
|
|
1912
|
+
"aria-valuemin": v(!0),
|
|
1961
1913
|
"aria-valuemax": a(!0),
|
|
1962
1914
|
"aria-valuenow": N,
|
|
1963
1915
|
"aria-valuetext": N.toString(),
|
|
1964
1916
|
className: j.slider,
|
|
1965
|
-
onMouseDown:
|
|
1966
|
-
onClick:
|
|
1967
|
-
ref:
|
|
1968
|
-
onTouchStart:
|
|
1969
|
-
onDragStart: (
|
|
1970
|
-
...
|
|
1917
|
+
onMouseDown: I,
|
|
1918
|
+
onClick: Y,
|
|
1919
|
+
ref: w,
|
|
1920
|
+
onTouchStart: I,
|
|
1921
|
+
onDragStart: (h) => h.preventDefault(),
|
|
1922
|
+
...x,
|
|
1971
1923
|
children: [
|
|
1972
|
-
/* @__PURE__ */ i("input", { type: "hidden", name:
|
|
1924
|
+
/* @__PURE__ */ i("input", { type: "hidden", name: l, value: N }),
|
|
1973
1925
|
/* @__PURE__ */ i(
|
|
1974
1926
|
"div",
|
|
1975
1927
|
{
|
|
1976
1928
|
className: j.activeTrack,
|
|
1977
|
-
style: { flex:
|
|
1929
|
+
style: { flex: L / 100 }
|
|
1978
1930
|
}
|
|
1979
1931
|
),
|
|
1980
1932
|
/* @__PURE__ */ i("div", { className: j.handle, children: /* @__PURE__ */ i(z, { children: b && /* @__PURE__ */ i(
|
|
@@ -2001,17 +1953,17 @@ const he = ({
|
|
|
2001
1953
|
"div",
|
|
2002
1954
|
{
|
|
2003
1955
|
className: j.inactiveTrack,
|
|
2004
|
-
style: { flex: 1 -
|
|
1956
|
+
style: { flex: 1 - L / 100 }
|
|
2005
1957
|
}
|
|
2006
1958
|
),
|
|
2007
1959
|
/* @__PURE__ */ i(
|
|
2008
1960
|
"div",
|
|
2009
1961
|
{
|
|
2010
1962
|
className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
|
|
2011
|
-
children:
|
|
1963
|
+
children: o && o.map((h, p) => {
|
|
2012
1964
|
let V = null;
|
|
2013
|
-
const X = (b ? 9 : 10) /
|
|
2014
|
-
return
|
|
1965
|
+
const X = (b ? 9 : 10) / Z * 100, k = y(h.value);
|
|
1966
|
+
return k <= L - X ? V = !0 : k >= L + X && (V = !1), /* @__PURE__ */ i(
|
|
2015
1967
|
"div",
|
|
2016
1968
|
{
|
|
2017
1969
|
className: f(j.dot, {
|
|
@@ -2019,10 +1971,10 @@ const he = ({
|
|
|
2019
1971
|
"bg-primary": V != null && !V
|
|
2020
1972
|
}),
|
|
2021
1973
|
style: {
|
|
2022
|
-
left: `${
|
|
1974
|
+
left: `${y(h.value)}%`
|
|
2023
1975
|
}
|
|
2024
1976
|
},
|
|
2025
|
-
|
|
1977
|
+
p
|
|
2026
1978
|
);
|
|
2027
1979
|
})
|
|
2028
1980
|
}
|
|
@@ -2036,11 +1988,11 @@ const he = ({
|
|
|
2036
1988
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
2037
1989
|
* Copyright 2024 Fonticons, Inc.
|
|
2038
1990
|
*/
|
|
2039
|
-
const
|
|
1991
|
+
const tt = {
|
|
2040
1992
|
prefix: "fas",
|
|
2041
1993
|
iconName: "bars",
|
|
2042
1994
|
icon: [448, 512, ["navicon"], "f0c9", "M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]
|
|
2043
|
-
},
|
|
1995
|
+
}, nt = {
|
|
2044
1996
|
prefix: "fas",
|
|
2045
1997
|
iconName: "circle-exclamation",
|
|
2046
1998
|
icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]
|
|
@@ -2048,31 +2000,31 @@ const et = {
|
|
|
2048
2000
|
prefix: "fas",
|
|
2049
2001
|
iconName: "xmark",
|
|
2050
2002
|
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]
|
|
2051
|
-
},
|
|
2003
|
+
}, bt = ({
|
|
2052
2004
|
supportingText: e,
|
|
2053
2005
|
className: t,
|
|
2054
2006
|
duration: r,
|
|
2055
|
-
closeIcon:
|
|
2056
|
-
onClose:
|
|
2007
|
+
closeIcon: l = ge,
|
|
2008
|
+
onClose: n,
|
|
2057
2009
|
...c
|
|
2058
2010
|
}) => {
|
|
2059
|
-
const [
|
|
2011
|
+
const [s, o] = S(!0), d = Xe({
|
|
2060
2012
|
className: t,
|
|
2061
|
-
closeIcon:
|
|
2013
|
+
closeIcon: l,
|
|
2062
2014
|
duration: r,
|
|
2063
|
-
isVisible:
|
|
2064
|
-
onClose:
|
|
2015
|
+
isVisible: s,
|
|
2016
|
+
onClose: n,
|
|
2065
2017
|
supportingText: e
|
|
2066
2018
|
});
|
|
2067
|
-
|
|
2019
|
+
W(() => {
|
|
2068
2020
|
r && setTimeout(() => {
|
|
2069
2021
|
u();
|
|
2070
2022
|
}, r);
|
|
2071
2023
|
}, [r]);
|
|
2072
2024
|
const u = () => {
|
|
2073
|
-
|
|
2025
|
+
o(!1), n == null || n();
|
|
2074
2026
|
};
|
|
2075
|
-
return /* @__PURE__ */ i(z, { children:
|
|
2027
|
+
return /* @__PURE__ */ i(z, { children: s && /* @__PURE__ */ i(
|
|
2076
2028
|
U.div,
|
|
2077
2029
|
{
|
|
2078
2030
|
initial: { height: 0 },
|
|
@@ -2081,65 +2033,65 @@ const et = {
|
|
|
2081
2033
|
transition: { duration: 0.1 },
|
|
2082
2034
|
className: d.snackbar,
|
|
2083
2035
|
...c,
|
|
2084
|
-
children: /* @__PURE__ */
|
|
2036
|
+
children: /* @__PURE__ */ $("div", { className: d.container, children: [
|
|
2085
2037
|
/* @__PURE__ */ i("p", { className: d.supportingText, children: e }),
|
|
2086
2038
|
/* @__PURE__ */ i(
|
|
2087
|
-
|
|
2039
|
+
xe,
|
|
2088
2040
|
{
|
|
2089
2041
|
onClick: () => u(),
|
|
2090
2042
|
className: d.icon,
|
|
2091
|
-
icon:
|
|
2092
|
-
|
|
2043
|
+
icon: l,
|
|
2044
|
+
ariaLabel: "close the snackbar"
|
|
2093
2045
|
}
|
|
2094
2046
|
)
|
|
2095
2047
|
] })
|
|
2096
2048
|
}
|
|
2097
2049
|
) });
|
|
2098
|
-
},
|
|
2050
|
+
}, Nt = ({
|
|
2099
2051
|
selected: e = !1,
|
|
2100
2052
|
className: t,
|
|
2101
2053
|
activeIcon: r,
|
|
2102
|
-
disabled:
|
|
2103
|
-
inactiveIcon:
|
|
2054
|
+
disabled: l = !1,
|
|
2055
|
+
inactiveIcon: n,
|
|
2104
2056
|
onChange: c,
|
|
2105
|
-
onClick:
|
|
2106
|
-
onKeyDown:
|
|
2057
|
+
onClick: s,
|
|
2058
|
+
onKeyDown: o,
|
|
2107
2059
|
ref: d,
|
|
2108
2060
|
...u
|
|
2109
2061
|
}) => {
|
|
2110
|
-
const [
|
|
2111
|
-
|
|
2112
|
-
},
|
|
2113
|
-
|
|
2114
|
-
},
|
|
2115
|
-
|
|
2116
|
-
}, b =
|
|
2062
|
+
const [x, y] = S(e), a = (w) => {
|
|
2063
|
+
l || (g(), s && s(w));
|
|
2064
|
+
}, v = (w) => {
|
|
2065
|
+
l || ((w.key === " " || w.key === "Enter") && (w.preventDefault(), g()), o && o(w));
|
|
2066
|
+
}, g = () => {
|
|
2067
|
+
y(!x), c == null || c(!x);
|
|
2068
|
+
}, b = Fe({
|
|
2117
2069
|
className: t,
|
|
2118
|
-
isSelected:
|
|
2070
|
+
isSelected: x,
|
|
2119
2071
|
activeIcon: r,
|
|
2120
|
-
inactiveIcon:
|
|
2121
|
-
disabled:
|
|
2122
|
-
selected:
|
|
2072
|
+
inactiveIcon: n,
|
|
2073
|
+
disabled: l,
|
|
2074
|
+
selected: x,
|
|
2123
2075
|
onChange: c
|
|
2124
|
-
}),
|
|
2125
|
-
return /* @__PURE__ */
|
|
2076
|
+
}), E = P(null), M = d || E;
|
|
2077
|
+
return /* @__PURE__ */ $(
|
|
2126
2078
|
U.div,
|
|
2127
2079
|
{
|
|
2128
2080
|
role: "switch",
|
|
2129
|
-
"aria-checked":
|
|
2130
|
-
tabIndex:
|
|
2131
|
-
onKeyDown:
|
|
2081
|
+
"aria-checked": x,
|
|
2082
|
+
tabIndex: l ? -1 : 0,
|
|
2083
|
+
onKeyDown: v,
|
|
2132
2084
|
onClick: a,
|
|
2133
|
-
ref:
|
|
2085
|
+
ref: M,
|
|
2134
2086
|
className: b.switch,
|
|
2135
2087
|
...u,
|
|
2136
2088
|
children: [
|
|
2137
|
-
/* @__PURE__ */ i("input", { type: "hidden", value:
|
|
2138
|
-
/* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ i("input", { type: "hidden", value: x ? "1" : "0" }),
|
|
2090
|
+
/* @__PURE__ */ $(
|
|
2139
2091
|
U.div,
|
|
2140
2092
|
{
|
|
2141
2093
|
layout: !0,
|
|
2142
|
-
style: { translate:
|
|
2094
|
+
style: { translate: x ? "50%" : "-50%" },
|
|
2143
2095
|
transition: {
|
|
2144
2096
|
type: "spring",
|
|
2145
2097
|
stiffness: 700,
|
|
@@ -2147,11 +2099,11 @@ const et = {
|
|
|
2147
2099
|
},
|
|
2148
2100
|
className: b.handleContainer,
|
|
2149
2101
|
children: [
|
|
2150
|
-
/* @__PURE__ */ i("div", { className: b.handle, children: (
|
|
2151
|
-
|
|
2102
|
+
/* @__PURE__ */ i("div", { className: b.handle, children: (x ? r : n) && /* @__PURE__ */ i(
|
|
2103
|
+
Q,
|
|
2152
2104
|
{
|
|
2153
2105
|
className: b.icon,
|
|
2154
|
-
icon:
|
|
2106
|
+
icon: x ? r : n
|
|
2155
2107
|
}
|
|
2156
2108
|
) }),
|
|
2157
2109
|
/* @__PURE__ */ i("div", { className: b.handleStateLayer })
|
|
@@ -2161,78 +2113,78 @@ const et = {
|
|
|
2161
2113
|
]
|
|
2162
2114
|
}
|
|
2163
2115
|
);
|
|
2164
|
-
},
|
|
2116
|
+
}, rt = ({
|
|
2165
2117
|
className: e,
|
|
2166
2118
|
onClick: t,
|
|
2167
2119
|
label: r,
|
|
2168
|
-
variant:
|
|
2169
|
-
href:
|
|
2120
|
+
variant: l = "primary",
|
|
2121
|
+
href: n,
|
|
2170
2122
|
icon: c,
|
|
2171
|
-
selectedTab:
|
|
2172
|
-
setSelectedTab:
|
|
2123
|
+
selectedTab: s,
|
|
2124
|
+
setSelectedTab: o,
|
|
2173
2125
|
tabsId: d,
|
|
2174
2126
|
index: u,
|
|
2175
|
-
onTabSelected:
|
|
2176
|
-
scrollable:
|
|
2127
|
+
onTabSelected: x,
|
|
2128
|
+
scrollable: y = !1,
|
|
2177
2129
|
selected: a = !1,
|
|
2178
|
-
ref:
|
|
2179
|
-
...
|
|
2130
|
+
ref: v,
|
|
2131
|
+
...g
|
|
2180
2132
|
}) => {
|
|
2181
|
-
const b =
|
|
2182
|
-
|
|
2183
|
-
a &&
|
|
2184
|
-
}, [
|
|
2185
|
-
|
|
2186
|
-
ref:
|
|
2133
|
+
const b = P(null), E = v || b, [M, w] = S(a);
|
|
2134
|
+
W(() => {
|
|
2135
|
+
a && s == null ? w(!0) : w(s == u && u != null);
|
|
2136
|
+
}, [s]), W(() => {
|
|
2137
|
+
s == u && x && x({
|
|
2138
|
+
ref: E,
|
|
2187
2139
|
index: u || 0,
|
|
2188
2140
|
label: r,
|
|
2189
2141
|
icon: c
|
|
2190
2142
|
});
|
|
2191
|
-
}, [
|
|
2192
|
-
const N =
|
|
2193
|
-
|
|
2194
|
-
},
|
|
2143
|
+
}, [s]);
|
|
2144
|
+
const N = n ? "a" : "button", R = (C) => {
|
|
2145
|
+
o && o(u ?? null), t && t(C);
|
|
2146
|
+
}, L = Oe({
|
|
2195
2147
|
className: e,
|
|
2196
|
-
onTabSelected:
|
|
2197
|
-
scrollable:
|
|
2198
|
-
selectedTab:
|
|
2148
|
+
onTabSelected: x,
|
|
2149
|
+
scrollable: y,
|
|
2150
|
+
selectedTab: s,
|
|
2199
2151
|
index: u,
|
|
2200
2152
|
tabsId: d,
|
|
2201
|
-
selected:
|
|
2202
|
-
variant:
|
|
2153
|
+
selected: M,
|
|
2154
|
+
variant: l,
|
|
2203
2155
|
icon: c,
|
|
2204
2156
|
label: r,
|
|
2205
|
-
isSelected:
|
|
2206
|
-
setSelectedTab:
|
|
2207
|
-
href:
|
|
2157
|
+
isSelected: M,
|
|
2158
|
+
setSelectedTab: o,
|
|
2159
|
+
href: n
|
|
2208
2160
|
});
|
|
2209
|
-
return /* @__PURE__ */
|
|
2161
|
+
return /* @__PURE__ */ $(
|
|
2210
2162
|
N,
|
|
2211
2163
|
{
|
|
2212
|
-
...
|
|
2164
|
+
...g,
|
|
2213
2165
|
role: "tab",
|
|
2214
|
-
"aria-selected":
|
|
2215
|
-
ref:
|
|
2216
|
-
href:
|
|
2217
|
-
className:
|
|
2218
|
-
onClick:
|
|
2219
|
-
...
|
|
2166
|
+
"aria-selected": M,
|
|
2167
|
+
ref: E,
|
|
2168
|
+
href: n,
|
|
2169
|
+
className: L.tab,
|
|
2170
|
+
onClick: R,
|
|
2171
|
+
...g,
|
|
2220
2172
|
children: [
|
|
2221
|
-
/* @__PURE__ */ i("span", { className:
|
|
2222
|
-
|
|
2173
|
+
/* @__PURE__ */ i("span", { className: L.stateLayer, children: /* @__PURE__ */ i(
|
|
2174
|
+
re,
|
|
2223
2175
|
{
|
|
2224
|
-
colorName:
|
|
2225
|
-
triggerRef:
|
|
2176
|
+
colorName: l === "primary" && M ? "primary" : "on-surface",
|
|
2177
|
+
triggerRef: E
|
|
2226
2178
|
}
|
|
2227
2179
|
) }),
|
|
2228
|
-
/* @__PURE__ */
|
|
2229
|
-
c && /* @__PURE__ */ i(
|
|
2230
|
-
/* @__PURE__ */ i("span", { className:
|
|
2231
|
-
|
|
2180
|
+
/* @__PURE__ */ $("span", { className: L.content, children: [
|
|
2181
|
+
c && /* @__PURE__ */ i(Q, { icon: c, className: L.icon }),
|
|
2182
|
+
/* @__PURE__ */ i("span", { className: L.label, children: r }),
|
|
2183
|
+
M && /* @__PURE__ */ i(
|
|
2232
2184
|
U.span,
|
|
2233
2185
|
{
|
|
2234
2186
|
layoutId: `underline-${d}`,
|
|
2235
|
-
className:
|
|
2187
|
+
className: L.underline,
|
|
2236
2188
|
transition: { duration: 0.3 }
|
|
2237
2189
|
}
|
|
2238
2190
|
)
|
|
@@ -2240,129 +2192,129 @@ const et = {
|
|
|
2240
2192
|
]
|
|
2241
2193
|
}
|
|
2242
2194
|
);
|
|
2243
|
-
},
|
|
2195
|
+
}, Lt = ({
|
|
2244
2196
|
variant: e = "primary",
|
|
2245
2197
|
onTabSelected: t,
|
|
2246
2198
|
children: r,
|
|
2247
|
-
className:
|
|
2248
|
-
selectedTab:
|
|
2199
|
+
className: l,
|
|
2200
|
+
selectedTab: n,
|
|
2249
2201
|
setSelectedTab: c,
|
|
2250
|
-
scrollable:
|
|
2202
|
+
scrollable: s = !1
|
|
2251
2203
|
}) => {
|
|
2252
|
-
const [
|
|
2204
|
+
const [o, d] = S(
|
|
2253
2205
|
null
|
|
2254
2206
|
);
|
|
2255
2207
|
let u;
|
|
2256
|
-
|
|
2257
|
-
const
|
|
2258
|
-
(
|
|
2259
|
-
), a =
|
|
2260
|
-
if (t == null || t(
|
|
2261
|
-
const
|
|
2262
|
-
if (
|
|
2263
|
-
const N =
|
|
2264
|
-
|
|
2208
|
+
n == 0 || n != null ? u = n : u = o;
|
|
2209
|
+
const x = c || d, y = _.Children.toArray(r).filter(
|
|
2210
|
+
(E) => _.isValidElement(E) && E.type === rt
|
|
2211
|
+
), a = _.useRef(null), v = (E) => {
|
|
2212
|
+
if (t == null || t(E), s) {
|
|
2213
|
+
const M = a.current, w = E.ref.current;
|
|
2214
|
+
if (M && w) {
|
|
2215
|
+
const N = w.offsetLeft + w.offsetWidth / 2 - M.offsetWidth / 2;
|
|
2216
|
+
M.scrollTo({ left: N, behavior: "smooth" });
|
|
2265
2217
|
}
|
|
2266
2218
|
}
|
|
2267
|
-
},
|
|
2219
|
+
}, g = ve(() => ce(), []), b = Ke({
|
|
2268
2220
|
children: r,
|
|
2269
2221
|
onTabSelected: t,
|
|
2270
|
-
scrollable:
|
|
2222
|
+
scrollable: s,
|
|
2271
2223
|
selectedTab: u,
|
|
2272
|
-
setSelectedTab:
|
|
2273
|
-
className:
|
|
2224
|
+
setSelectedTab: x,
|
|
2225
|
+
className: l,
|
|
2274
2226
|
variant: e
|
|
2275
2227
|
});
|
|
2276
|
-
return /* @__PURE__ */ i("div", { ref: a, role: "tablist", className: b.tabs, children:
|
|
2277
|
-
key:
|
|
2278
|
-
index:
|
|
2228
|
+
return /* @__PURE__ */ i("div", { ref: a, role: "tablist", className: b.tabs, children: y.map((E, M) => _.cloneElement(E, {
|
|
2229
|
+
key: M,
|
|
2230
|
+
index: M,
|
|
2279
2231
|
variant: e,
|
|
2280
2232
|
selectedTab: u,
|
|
2281
|
-
setSelectedTab:
|
|
2282
|
-
tabsId:
|
|
2283
|
-
onTabSelected:
|
|
2284
|
-
scrollable:
|
|
2233
|
+
setSelectedTab: x,
|
|
2234
|
+
tabsId: g,
|
|
2235
|
+
onTabSelected: v,
|
|
2236
|
+
scrollable: s
|
|
2285
2237
|
})) });
|
|
2286
|
-
},
|
|
2238
|
+
}, It = ({
|
|
2287
2239
|
variant: e = "filled",
|
|
2288
2240
|
disabled: t = !1,
|
|
2289
2241
|
errorText: r,
|
|
2290
|
-
placeholder:
|
|
2291
|
-
suffix:
|
|
2242
|
+
placeholder: l,
|
|
2243
|
+
suffix: n,
|
|
2292
2244
|
name: c,
|
|
2293
|
-
label:
|
|
2294
|
-
className:
|
|
2245
|
+
label: s,
|
|
2246
|
+
className: o,
|
|
2295
2247
|
supportingText: d,
|
|
2296
2248
|
trailingIcon: u,
|
|
2297
|
-
leadingIcon:
|
|
2298
|
-
type:
|
|
2249
|
+
leadingIcon: x,
|
|
2250
|
+
type: y = "text",
|
|
2299
2251
|
textLine: a = "singleLine",
|
|
2300
|
-
autoComplete:
|
|
2301
|
-
onChange:
|
|
2252
|
+
autoComplete: v = "on",
|
|
2253
|
+
onChange: g,
|
|
2302
2254
|
value: b,
|
|
2303
|
-
showSupportingText:
|
|
2304
|
-
...
|
|
2255
|
+
showSupportingText: E = !1,
|
|
2256
|
+
...M
|
|
2305
2257
|
}) => {
|
|
2306
|
-
const [
|
|
2307
|
-
|
|
2258
|
+
const [w, N] = S(b ?? ""), [R, L] = S(!1), [C, D] = S(!1), [B, I] = S(
|
|
2259
|
+
E
|
|
2308
2260
|
);
|
|
2309
|
-
|
|
2261
|
+
W(() => {
|
|
2310
2262
|
N(b ?? "");
|
|
2311
|
-
}, [b]),
|
|
2312
|
-
r != null && r.length ?
|
|
2313
|
-
}, [r]),
|
|
2314
|
-
|
|
2315
|
-
}, [
|
|
2316
|
-
|
|
2317
|
-
}, [
|
|
2318
|
-
const
|
|
2319
|
-
|
|
2320
|
-
}, A = () => {
|
|
2321
|
-
k(!0);
|
|
2322
|
-
}, q = (V) => {
|
|
2323
|
-
const X = V.target.value;
|
|
2324
|
-
N(X), B(!1), typeof v == "function" && v(X);
|
|
2263
|
+
}, [b]), W(() => {
|
|
2264
|
+
r != null && r.length ? D(!0) : D(!1);
|
|
2265
|
+
}, [r]), W(() => {
|
|
2266
|
+
E ? I(E) : d != null && d.length ? I(!0) : I(!1);
|
|
2267
|
+
}, [B, d]), W(() => {
|
|
2268
|
+
R && D(!1);
|
|
2269
|
+
}, [R]);
|
|
2270
|
+
const m = _.useRef(null), j = () => {
|
|
2271
|
+
m.current && !R && m.current.focus();
|
|
2325
2272
|
}, Y = () => {
|
|
2326
|
-
|
|
2327
|
-
}, G =
|
|
2328
|
-
|
|
2329
|
-
|
|
2273
|
+
L(!0);
|
|
2274
|
+
}, G = (V) => {
|
|
2275
|
+
const X = V.target.value;
|
|
2276
|
+
N(X), D(!1), typeof g == "function" && g(X);
|
|
2277
|
+
}, Z = () => {
|
|
2278
|
+
L(!1);
|
|
2279
|
+
}, K = Ge({
|
|
2280
|
+
showSupportingText: B,
|
|
2281
|
+
isFocused: R,
|
|
2330
2282
|
showErrorIcon: C,
|
|
2331
2283
|
disabled: t,
|
|
2332
2284
|
name: c,
|
|
2333
|
-
label:
|
|
2334
|
-
autoComplete:
|
|
2335
|
-
className:
|
|
2336
|
-
onChange:
|
|
2337
|
-
placeholder:
|
|
2285
|
+
label: s,
|
|
2286
|
+
autoComplete: v,
|
|
2287
|
+
className: o,
|
|
2288
|
+
onChange: g,
|
|
2289
|
+
placeholder: l,
|
|
2338
2290
|
supportingText: d,
|
|
2339
|
-
type:
|
|
2340
|
-
leadingIcon:
|
|
2291
|
+
type: y,
|
|
2292
|
+
leadingIcon: x,
|
|
2341
2293
|
trailingIcon: u,
|
|
2342
2294
|
variant: e,
|
|
2343
2295
|
errorText: r,
|
|
2344
|
-
value:
|
|
2345
|
-
suffix:
|
|
2296
|
+
value: w,
|
|
2297
|
+
suffix: n,
|
|
2346
2298
|
textLine: a
|
|
2347
|
-
}), [
|
|
2348
|
-
let
|
|
2299
|
+
}), [A] = S(ce());
|
|
2300
|
+
let h, p;
|
|
2349
2301
|
switch (a) {
|
|
2350
2302
|
case "multiLine":
|
|
2351
|
-
|
|
2303
|
+
p = ke, h = {};
|
|
2352
2304
|
break;
|
|
2353
2305
|
case "textAreas":
|
|
2354
|
-
|
|
2306
|
+
p = "textarea", h = {};
|
|
2355
2307
|
break;
|
|
2356
2308
|
case "singleLine":
|
|
2357
2309
|
default:
|
|
2358
|
-
|
|
2310
|
+
p = "input", h = { type: y };
|
|
2359
2311
|
break;
|
|
2360
2312
|
}
|
|
2361
|
-
return /* @__PURE__ */
|
|
2362
|
-
/* @__PURE__ */
|
|
2363
|
-
/* @__PURE__ */ i("div", { className:
|
|
2364
|
-
|
|
2365
|
-
!(!
|
|
2313
|
+
return /* @__PURE__ */ $("div", { className: K.textField, ...M, children: [
|
|
2314
|
+
/* @__PURE__ */ $("fieldset", { onClick: j, className: K.content, children: [
|
|
2315
|
+
/* @__PURE__ */ i("div", { className: K.stateLayer }),
|
|
2316
|
+
x && /* @__PURE__ */ i("div", { className: K.leadingIcon, children: _.isValidElement(x) ? x : /* @__PURE__ */ i(Q, { className: "w-5 h-5", icon: x }) }),
|
|
2317
|
+
!(!R && !w.length || e == "filled") && /* @__PURE__ */ i(
|
|
2366
2318
|
U.legend,
|
|
2367
2319
|
{
|
|
2368
2320
|
variants: {
|
|
@@ -2370,118 +2322,118 @@ const et = {
|
|
|
2370
2322
|
visible: { width: "auto", padding: "0 8px" }
|
|
2371
2323
|
},
|
|
2372
2324
|
initial: "hidden",
|
|
2373
|
-
animate: !
|
|
2325
|
+
animate: !R && !w.length ? "hidden" : "visible",
|
|
2374
2326
|
className: "max-w-full ml-2 px-2 text-body-small h-0",
|
|
2375
2327
|
transition: { duration: 0.2 },
|
|
2376
2328
|
children: /* @__PURE__ */ i("span", { className: "transform inline-flex -translate-y-1/2", children: /* @__PURE__ */ i(
|
|
2377
2329
|
U.span,
|
|
2378
2330
|
{
|
|
2379
|
-
className:
|
|
2331
|
+
className: K.label,
|
|
2380
2332
|
transition: { duration: 0.3 },
|
|
2381
|
-
layoutId:
|
|
2382
|
-
children:
|
|
2333
|
+
layoutId: A,
|
|
2334
|
+
children: s
|
|
2383
2335
|
}
|
|
2384
2336
|
) })
|
|
2385
2337
|
}
|
|
2386
2338
|
),
|
|
2387
|
-
/* @__PURE__ */
|
|
2388
|
-
(!
|
|
2339
|
+
/* @__PURE__ */ $("div", { className: "flex-1 relative", children: [
|
|
2340
|
+
(!R && !w.length || e == "filled") && /* @__PURE__ */ i(
|
|
2389
2341
|
U.label,
|
|
2390
2342
|
{
|
|
2391
2343
|
htmlFor: c,
|
|
2392
2344
|
className: f(
|
|
2393
2345
|
"absolute left-4 transition-all duration-300",
|
|
2394
2346
|
{
|
|
2395
|
-
"text-body-small top-2": e == "filled" && !(!
|
|
2396
|
-
"text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!
|
|
2347
|
+
"text-body-small top-2": e == "filled" && !(!R && !w.length),
|
|
2348
|
+
"text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!R && !w.length))
|
|
2397
2349
|
}
|
|
2398
2350
|
),
|
|
2399
2351
|
transition: { duration: 0.3 },
|
|
2400
2352
|
children: /* @__PURE__ */ i(
|
|
2401
2353
|
U.span,
|
|
2402
2354
|
{
|
|
2403
|
-
className:
|
|
2355
|
+
className: K.label,
|
|
2404
2356
|
transition: { duration: 0.3 },
|
|
2405
|
-
layoutId: e == "outlined" ?
|
|
2406
|
-
children:
|
|
2357
|
+
layoutId: e == "outlined" ? A : void 0,
|
|
2358
|
+
children: s
|
|
2407
2359
|
}
|
|
2408
2360
|
)
|
|
2409
2361
|
}
|
|
2410
2362
|
),
|
|
2411
2363
|
/* @__PURE__ */ i(
|
|
2412
|
-
|
|
2364
|
+
p,
|
|
2413
2365
|
{
|
|
2414
|
-
ref:
|
|
2415
|
-
value:
|
|
2416
|
-
onChange:
|
|
2417
|
-
className:
|
|
2366
|
+
ref: m,
|
|
2367
|
+
value: w,
|
|
2368
|
+
onChange: G,
|
|
2369
|
+
className: K.input,
|
|
2418
2370
|
id: c,
|
|
2419
2371
|
name: c,
|
|
2420
|
-
placeholder:
|
|
2421
|
-
onFocus:
|
|
2422
|
-
onBlur:
|
|
2372
|
+
placeholder: R ? l ?? void 0 : "",
|
|
2373
|
+
onFocus: Y,
|
|
2374
|
+
onBlur: Z,
|
|
2423
2375
|
disabled: t,
|
|
2424
|
-
autoComplete:
|
|
2376
|
+
autoComplete: v,
|
|
2425
2377
|
"aria-invalid": !!(r != null && r.length),
|
|
2426
|
-
"aria-label":
|
|
2427
|
-
...
|
|
2378
|
+
"aria-label": s,
|
|
2379
|
+
...h
|
|
2428
2380
|
}
|
|
2429
2381
|
)
|
|
2430
2382
|
] }),
|
|
2431
|
-
/* @__PURE__ */ i("div", { className:
|
|
2432
|
-
!C && /* @__PURE__ */
|
|
2383
|
+
/* @__PURE__ */ i("div", { className: K.activeIndicator }),
|
|
2384
|
+
!C && /* @__PURE__ */ $(ne, { children: [
|
|
2433
2385
|
u && /* @__PURE__ */ i(
|
|
2434
2386
|
"div",
|
|
2435
2387
|
{
|
|
2436
2388
|
onClick: (V) => {
|
|
2437
2389
|
V.stopPropagation();
|
|
2438
2390
|
},
|
|
2439
|
-
className:
|
|
2440
|
-
children:
|
|
2391
|
+
className: K.trailingIcon,
|
|
2392
|
+
children: _.isValidElement(u) ? u : /* @__PURE__ */ i(Q, { className: "h-5", icon: u })
|
|
2441
2393
|
}
|
|
2442
2394
|
),
|
|
2443
|
-
!u &&
|
|
2395
|
+
!u && n && /* @__PURE__ */ i("span", { className: K.suffix, children: n })
|
|
2444
2396
|
] }),
|
|
2445
2397
|
C && /* @__PURE__ */ i(
|
|
2446
2398
|
"div",
|
|
2447
2399
|
{
|
|
2448
|
-
className: f(
|
|
2400
|
+
className: f(K.trailingIcon, {
|
|
2449
2401
|
" absolute right-0": !u
|
|
2450
2402
|
}),
|
|
2451
2403
|
children: /* @__PURE__ */ i(
|
|
2452
|
-
|
|
2404
|
+
Q,
|
|
2453
2405
|
{
|
|
2454
2406
|
className: "h-5 text-error",
|
|
2455
|
-
icon:
|
|
2407
|
+
icon: nt
|
|
2456
2408
|
}
|
|
2457
2409
|
)
|
|
2458
2410
|
}
|
|
2459
2411
|
)
|
|
2460
2412
|
] }),
|
|
2461
|
-
|
|
2413
|
+
B && /* @__PURE__ */ i("p", { className: K.supportingText, children: r != null && r.length ? r : d != null && d.length ? d : " " })
|
|
2462
2414
|
] });
|
|
2463
|
-
},
|
|
2415
|
+
}, lt = q(
|
|
2464
2416
|
"navigationRailItem",
|
|
2465
|
-
({ isSelected: e, icon: t, label: r, variant:
|
|
2417
|
+
({ isSelected: e, icon: t, label: r, variant: l }) => ({
|
|
2466
2418
|
navigationRailItem: f(" group flex flex-col pt-1 pb-1.5 cursor-pointer", {
|
|
2467
2419
|
"text-on-surface-variant": !e,
|
|
2468
2420
|
"text-on-secondary-container": e,
|
|
2469
|
-
"gap-2 h-[68px]":
|
|
2470
|
-
"gap-0 h-[66px]":
|
|
2421
|
+
"gap-2 h-[68px]": l == "vertical",
|
|
2422
|
+
"gap-0 h-[66px]": l == "horizontal"
|
|
2471
2423
|
}),
|
|
2472
2424
|
container: f(
|
|
2473
2425
|
" w-fit flex justify-center relative rounded-full items-center mx-5",
|
|
2474
2426
|
{
|
|
2475
2427
|
"bg-secondary-container overflow-hidden": e,
|
|
2476
|
-
"gap-2 ":
|
|
2477
|
-
"gap-0 ":
|
|
2428
|
+
"gap-2 ": l == "horizontal",
|
|
2429
|
+
"gap-0 ": l == "vertical",
|
|
2478
2430
|
"p-4": !r
|
|
2479
2431
|
},
|
|
2480
2432
|
r && [
|
|
2481
2433
|
"px-4",
|
|
2482
2434
|
{
|
|
2483
|
-
"py-1 ":
|
|
2484
|
-
"py-4 ":
|
|
2435
|
+
"py-1 ": l == "vertical",
|
|
2436
|
+
"py-4 ": l == "horizontal"
|
|
2485
2437
|
}
|
|
2486
2438
|
]
|
|
2487
2439
|
),
|
|
@@ -2494,100 +2446,100 @@ const et = {
|
|
|
2494
2446
|
),
|
|
2495
2447
|
icon: f("size-6 flex"),
|
|
2496
2448
|
label: f("w-fit mx-auto", {
|
|
2497
|
-
"text-label-large ":
|
|
2498
|
-
"text-label-medium":
|
|
2449
|
+
"text-label-large ": l == "horizontal",
|
|
2450
|
+
"text-label-medium": l == "vertical"
|
|
2499
2451
|
})
|
|
2500
2452
|
})
|
|
2501
|
-
),
|
|
2453
|
+
), ot = ({ label: e }) => /* @__PURE__ */ i("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ i("p", { className: "text-label-large text-on-surface-variant", children: e }) }), at = ({
|
|
2502
2454
|
className: e,
|
|
2503
2455
|
onClick: t,
|
|
2504
2456
|
label: r,
|
|
2505
|
-
variant:
|
|
2506
|
-
href:
|
|
2457
|
+
variant: l = "vertical",
|
|
2458
|
+
href: n,
|
|
2507
2459
|
icon: c,
|
|
2508
|
-
selectedItem:
|
|
2509
|
-
setSelectedItem:
|
|
2460
|
+
selectedItem: s,
|
|
2461
|
+
setSelectedItem: o,
|
|
2510
2462
|
index: d,
|
|
2511
2463
|
onItemSelected: u,
|
|
2512
|
-
selected:
|
|
2513
|
-
ref:
|
|
2464
|
+
selected: x = !1,
|
|
2465
|
+
ref: y,
|
|
2514
2466
|
transition: a,
|
|
2515
|
-
isExtended:
|
|
2516
|
-
iconSelected:
|
|
2467
|
+
isExtended: v,
|
|
2468
|
+
iconSelected: g,
|
|
2517
2469
|
style: b,
|
|
2518
|
-
extendedOnly:
|
|
2519
|
-
...
|
|
2470
|
+
extendedOnly: E,
|
|
2471
|
+
...M
|
|
2520
2472
|
}) => {
|
|
2521
|
-
const
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
}, [
|
|
2525
|
-
|
|
2473
|
+
const w = P(null), N = y || w, [R, L] = S(x);
|
|
2474
|
+
W(() => {
|
|
2475
|
+
x && s == null ? L(!0) : L(s == d && d != null);
|
|
2476
|
+
}, [s]), W(() => {
|
|
2477
|
+
s == d && u && u({
|
|
2526
2478
|
ref: N,
|
|
2527
2479
|
index: d || 0,
|
|
2528
2480
|
label: r,
|
|
2529
2481
|
icon: c
|
|
2530
2482
|
});
|
|
2531
|
-
}, [
|
|
2532
|
-
const C =
|
|
2533
|
-
|
|
2534
|
-
},
|
|
2535
|
-
isExtended:
|
|
2536
|
-
extendedOnly:
|
|
2483
|
+
}, [s]);
|
|
2484
|
+
const C = n ? "a" : "button", D = (I) => {
|
|
2485
|
+
o && o(d ?? null), t && t(I);
|
|
2486
|
+
}, B = lt({
|
|
2487
|
+
isExtended: v,
|
|
2488
|
+
extendedOnly: E,
|
|
2537
2489
|
className: e,
|
|
2538
2490
|
onItemSelected: u,
|
|
2539
|
-
selectedItem:
|
|
2491
|
+
selectedItem: s,
|
|
2540
2492
|
index: d,
|
|
2541
2493
|
transition: a,
|
|
2542
|
-
selected:
|
|
2543
|
-
variant:
|
|
2494
|
+
selected: R,
|
|
2495
|
+
variant: l,
|
|
2544
2496
|
icon: c,
|
|
2545
2497
|
label: r,
|
|
2546
|
-
isSelected:
|
|
2547
|
-
setSelectedItem:
|
|
2548
|
-
href:
|
|
2549
|
-
iconSelected:
|
|
2498
|
+
isSelected: R,
|
|
2499
|
+
setSelectedItem: o,
|
|
2500
|
+
href: n,
|
|
2501
|
+
iconSelected: g
|
|
2550
2502
|
});
|
|
2551
|
-
return a = { duration: 0.3, ...a },
|
|
2503
|
+
return a = { duration: 0.3, ...a }, E && !v ? null : (
|
|
2552
2504
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2553
2505
|
// @ts-expect-error
|
|
2554
|
-
/* @__PURE__ */
|
|
2506
|
+
/* @__PURE__ */ $(
|
|
2555
2507
|
C,
|
|
2556
2508
|
{
|
|
2557
|
-
...
|
|
2509
|
+
...M,
|
|
2558
2510
|
role: "tab",
|
|
2559
|
-
"aria-selected":
|
|
2511
|
+
"aria-selected": R,
|
|
2560
2512
|
ref: N,
|
|
2561
|
-
href:
|
|
2562
|
-
className:
|
|
2563
|
-
onClick:
|
|
2513
|
+
href: n,
|
|
2514
|
+
className: B.navigationRailItem,
|
|
2515
|
+
onClick: D,
|
|
2564
2516
|
style: { transition: a.duration + "s", ...b },
|
|
2565
2517
|
children: [
|
|
2566
|
-
/* @__PURE__ */
|
|
2518
|
+
/* @__PURE__ */ $(
|
|
2567
2519
|
U.div,
|
|
2568
2520
|
{
|
|
2569
2521
|
style: {
|
|
2570
|
-
transition:
|
|
2522
|
+
transition: l == "horizontal" ? a.duration + `s, gap ${a.duration / 2}s ${a.duration - a.duration / 2}s` : a.duration + `s, gap ${a.duration / 3}s ${a.duration - a.duration / 3}s`
|
|
2571
2523
|
},
|
|
2572
2524
|
transition: a,
|
|
2573
|
-
className:
|
|
2525
|
+
className: B.container,
|
|
2574
2526
|
children: [
|
|
2575
|
-
/* @__PURE__ */ i(U.div, { layout: !0, className:
|
|
2527
|
+
/* @__PURE__ */ i(U.div, { layout: !0, className: B.stateLayer }),
|
|
2576
2528
|
c && /* @__PURE__ */ i(
|
|
2577
|
-
|
|
2529
|
+
Q,
|
|
2578
2530
|
{
|
|
2579
|
-
icon:
|
|
2580
|
-
className:
|
|
2531
|
+
icon: R ? g : c,
|
|
2532
|
+
className: B.icon
|
|
2581
2533
|
}
|
|
2582
2534
|
),
|
|
2583
|
-
/* @__PURE__ */ i(z, { children:
|
|
2584
|
-
const
|
|
2535
|
+
/* @__PURE__ */ i(z, { children: l == "horizontal" && (() => {
|
|
2536
|
+
const I = {
|
|
2585
2537
|
width: 0,
|
|
2586
2538
|
opacity: 0,
|
|
2587
2539
|
transition: {
|
|
2588
2540
|
...a
|
|
2589
2541
|
}
|
|
2590
|
-
},
|
|
2542
|
+
}, m = {
|
|
2591
2543
|
width: "auto",
|
|
2592
2544
|
opacity: 1,
|
|
2593
2545
|
transition: {
|
|
@@ -2601,10 +2553,10 @@ const et = {
|
|
|
2601
2553
|
return /* @__PURE__ */ i(
|
|
2602
2554
|
U.span,
|
|
2603
2555
|
{
|
|
2604
|
-
initial:
|
|
2605
|
-
animate:
|
|
2606
|
-
exit:
|
|
2607
|
-
className:
|
|
2556
|
+
initial: I,
|
|
2557
|
+
animate: m,
|
|
2558
|
+
exit: I,
|
|
2559
|
+
className: B.label,
|
|
2608
2560
|
children: r
|
|
2609
2561
|
}
|
|
2610
2562
|
);
|
|
@@ -2612,8 +2564,8 @@ const et = {
|
|
|
2612
2564
|
]
|
|
2613
2565
|
}
|
|
2614
2566
|
),
|
|
2615
|
-
/* @__PURE__ */ i(z, { children:
|
|
2616
|
-
const
|
|
2567
|
+
/* @__PURE__ */ i(z, { children: l == "vertical" && (() => {
|
|
2568
|
+
const I = {
|
|
2617
2569
|
height: 0,
|
|
2618
2570
|
opacity: 0,
|
|
2619
2571
|
transition: {
|
|
@@ -2622,7 +2574,7 @@ const et = {
|
|
|
2622
2574
|
duration: 0
|
|
2623
2575
|
}
|
|
2624
2576
|
}
|
|
2625
|
-
},
|
|
2577
|
+
}, m = {
|
|
2626
2578
|
height: "auto",
|
|
2627
2579
|
opacity: 1,
|
|
2628
2580
|
transition: {
|
|
@@ -2636,10 +2588,10 @@ const et = {
|
|
|
2636
2588
|
return /* @__PURE__ */ i(
|
|
2637
2589
|
U.span,
|
|
2638
2590
|
{
|
|
2639
|
-
initial:
|
|
2640
|
-
animate:
|
|
2641
|
-
exit:
|
|
2642
|
-
className:
|
|
2591
|
+
initial: I,
|
|
2592
|
+
animate: m,
|
|
2593
|
+
exit: I,
|
|
2594
|
+
className: B.label,
|
|
2643
2595
|
transition: a,
|
|
2644
2596
|
children: r
|
|
2645
2597
|
}
|
|
@@ -2649,7 +2601,7 @@ const et = {
|
|
|
2649
2601
|
}
|
|
2650
2602
|
)
|
|
2651
2603
|
);
|
|
2652
|
-
},
|
|
2604
|
+
}, st = q(
|
|
2653
2605
|
"navigationRail",
|
|
2654
2606
|
({ isExtended: e, alignment: t }) => ({
|
|
2655
2607
|
navigationRail: f("flex flex-col left-0 h-full top-0 pt-11", {
|
|
@@ -2665,17 +2617,17 @@ const et = {
|
|
|
2665
2617
|
"w-fit items-start": e
|
|
2666
2618
|
})
|
|
2667
2619
|
})
|
|
2668
|
-
),
|
|
2620
|
+
), Et = ({
|
|
2669
2621
|
variant: e = "standard",
|
|
2670
2622
|
onItemSelected: t,
|
|
2671
2623
|
children: r,
|
|
2672
|
-
className:
|
|
2673
|
-
selectedItem:
|
|
2624
|
+
className: l,
|
|
2625
|
+
selectedItem: n,
|
|
2674
2626
|
extended: c,
|
|
2675
|
-
alignment:
|
|
2676
|
-
menu:
|
|
2627
|
+
alignment: s = "top",
|
|
2628
|
+
menu: o = {
|
|
2677
2629
|
closed: {
|
|
2678
|
-
icon:
|
|
2630
|
+
icon: tt,
|
|
2679
2631
|
label: "Open menu"
|
|
2680
2632
|
},
|
|
2681
2633
|
opened: {
|
|
@@ -2685,87 +2637,81 @@ const et = {
|
|
|
2685
2637
|
},
|
|
2686
2638
|
style: d,
|
|
2687
2639
|
onExtendedChange: u,
|
|
2688
|
-
transition:
|
|
2689
|
-
setSelectedItem:
|
|
2640
|
+
transition: x,
|
|
2641
|
+
setSelectedItem: y
|
|
2690
2642
|
}) => {
|
|
2691
|
-
const [a,
|
|
2692
|
-
let
|
|
2693
|
-
|
|
2694
|
-
const
|
|
2695
|
-
t == null || t(
|
|
2643
|
+
const [a, v] = S(null), [g, b] = S(c);
|
|
2644
|
+
let E;
|
|
2645
|
+
n == 0 || n != null ? E = n : E = a;
|
|
2646
|
+
const M = y || v, w = P(null), N = (I) => {
|
|
2647
|
+
t == null || t(I);
|
|
2696
2648
|
};
|
|
2697
|
-
function I
|
|
2698
|
-
const
|
|
2699
|
-
return
|
|
2700
|
-
|
|
2701
|
-
}),
|
|
2649
|
+
function R(I) {
|
|
2650
|
+
const m = [];
|
|
2651
|
+
return be.forEach(I, (j) => {
|
|
2652
|
+
ee(j) && j.type === Ne ? m.push(...R(j.props.children)) : m.push(j);
|
|
2653
|
+
}), m;
|
|
2702
2654
|
}
|
|
2703
|
-
const
|
|
2704
|
-
(
|
|
2705
|
-
),
|
|
2655
|
+
const L = R(r), C = L.filter(
|
|
2656
|
+
(I) => ee(I) && I.type === ue
|
|
2657
|
+
), D = st({
|
|
2706
2658
|
children: r,
|
|
2707
2659
|
onItemSelected: t,
|
|
2708
|
-
selectedItem:
|
|
2709
|
-
setSelectedItem:
|
|
2710
|
-
className:
|
|
2660
|
+
selectedItem: E,
|
|
2661
|
+
setSelectedItem: M,
|
|
2662
|
+
className: l,
|
|
2711
2663
|
variant: e,
|
|
2712
|
-
extended:
|
|
2713
|
-
isExtended:
|
|
2714
|
-
alignment:
|
|
2715
|
-
menu:
|
|
2716
|
-
transition:
|
|
2664
|
+
extended: g,
|
|
2665
|
+
isExtended: g,
|
|
2666
|
+
alignment: s,
|
|
2667
|
+
menu: o,
|
|
2668
|
+
transition: x,
|
|
2717
2669
|
onExtendedChange: u
|
|
2718
2670
|
});
|
|
2719
|
-
|
|
2720
|
-
const
|
|
2721
|
-
return
|
|
2722
|
-
u == null || u(
|
|
2723
|
-
}, [
|
|
2671
|
+
x = { duration: 0.3, ...x };
|
|
2672
|
+
const B = P(!1);
|
|
2673
|
+
return B.current = !1, W(() => {
|
|
2674
|
+
u == null || u(g ?? !1);
|
|
2675
|
+
}, [g]), /* @__PURE__ */ $(
|
|
2724
2676
|
"div",
|
|
2725
2677
|
{
|
|
2726
|
-
style: { transition:
|
|
2727
|
-
ref:
|
|
2728
|
-
className:
|
|
2678
|
+
style: { transition: x.duration + "s", ...d },
|
|
2679
|
+
ref: w,
|
|
2680
|
+
className: D.navigationRail,
|
|
2729
2681
|
children: [
|
|
2730
|
-
/* @__PURE__ */
|
|
2682
|
+
/* @__PURE__ */ $("div", { className: D.header, children: [
|
|
2731
2683
|
/* @__PURE__ */ i(
|
|
2732
|
-
|
|
2684
|
+
xe,
|
|
2733
2685
|
{
|
|
2734
|
-
onClick: () => b(!
|
|
2735
|
-
|
|
2736
|
-
className:
|
|
2737
|
-
icon:
|
|
2686
|
+
onClick: () => b(!g),
|
|
2687
|
+
ariaLabel: g ? o == null ? void 0 : o.opened.label : o == null ? void 0 : o.closed.label,
|
|
2688
|
+
className: D.menuIcon,
|
|
2689
|
+
icon: g ? o.opened.icon : o == null ? void 0 : o.closed.icon
|
|
2738
2690
|
}
|
|
2739
2691
|
),
|
|
2740
|
-
C.length > 0 &&
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
className: "!shadow-none mx-5 " + C[0].props.className
|
|
2746
|
-
}
|
|
2747
|
-
)
|
|
2692
|
+
C.length > 0 && le(C[0], {
|
|
2693
|
+
transition: x,
|
|
2694
|
+
isExtended: g,
|
|
2695
|
+
className: "!shadow-none mx-5 " + C[0].props.className
|
|
2696
|
+
})
|
|
2748
2697
|
] }),
|
|
2749
|
-
/* @__PURE__ */ i("div", { className:
|
|
2750
|
-
let
|
|
2751
|
-
return
|
|
2752
|
-
|
|
2698
|
+
/* @__PURE__ */ i("div", { className: D.segments, children: (() => {
|
|
2699
|
+
let I = 0;
|
|
2700
|
+
return L.map((m) => ee(m) && m.type === at ? le(
|
|
2701
|
+
m,
|
|
2753
2702
|
{
|
|
2754
|
-
key:
|
|
2755
|
-
index:
|
|
2703
|
+
key: I,
|
|
2704
|
+
index: I++,
|
|
2756
2705
|
// Utilise et incrémente le compteur dédié
|
|
2757
|
-
variant:
|
|
2758
|
-
selectedItem:
|
|
2759
|
-
setSelectedItem:
|
|
2706
|
+
variant: g ? "horizontal" : "vertical",
|
|
2707
|
+
selectedItem: E,
|
|
2708
|
+
setSelectedItem: M,
|
|
2760
2709
|
onItemSelected: N,
|
|
2761
|
-
transition:
|
|
2762
|
-
extendedOnly:
|
|
2763
|
-
isExtended:
|
|
2710
|
+
transition: x,
|
|
2711
|
+
extendedOnly: B.current,
|
|
2712
|
+
isExtended: g
|
|
2764
2713
|
}
|
|
2765
|
-
) :
|
|
2766
|
-
h,
|
|
2767
|
-
{}
|
|
2768
|
-
) : null) : h);
|
|
2714
|
+
) : ee(m) && m.type === ue ? null : ee(m) && m.type === ot ? (B.current = !0, g ? le(m, {}) : null) : m);
|
|
2769
2715
|
})() }),
|
|
2770
2716
|
/* @__PURE__ */ i("div", { className: "flex-1 max-h-[160px]" })
|
|
2771
2717
|
]
|
|
@@ -2773,48 +2719,48 @@ const et = {
|
|
|
2773
2719
|
);
|
|
2774
2720
|
};
|
|
2775
2721
|
export {
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2722
|
+
Ze as Button,
|
|
2723
|
+
xt as Card,
|
|
2724
|
+
gt as Carousel,
|
|
2725
|
+
Qe as CarouselItem,
|
|
2726
|
+
he as CustomScroll,
|
|
2727
|
+
wt as Divider,
|
|
2728
|
+
ue as Fab,
|
|
2729
|
+
Q as Icon,
|
|
2730
|
+
xe as IconButton,
|
|
2731
|
+
Et as NavigationRail,
|
|
2732
|
+
at as NavigationRailItem,
|
|
2733
|
+
ot as NavigationRailSection,
|
|
2734
|
+
He as ProgressIndicator,
|
|
2735
|
+
re as RippleEffect,
|
|
2736
|
+
vt as Slider,
|
|
2737
|
+
yt as SmoothScroll,
|
|
2738
|
+
bt as Snackbar,
|
|
2739
|
+
Nt as Switch,
|
|
2794
2740
|
_e as SyncedFixedWrapper,
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2741
|
+
rt as Tab,
|
|
2742
|
+
Lt as Tabs,
|
|
2743
|
+
It as TextField,
|
|
2744
|
+
ye as ToolTip,
|
|
2745
|
+
Ce as buttonStyle,
|
|
2746
|
+
Be as cardStyle,
|
|
2747
|
+
De as carouselItemStyle,
|
|
2802
2748
|
Ve as carouselStyle,
|
|
2803
2749
|
f as classNames,
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2750
|
+
Me as classnames,
|
|
2751
|
+
Ye as customScrollStyle,
|
|
2752
|
+
q as defaultClassNames,
|
|
2753
|
+
We as dividerStyle,
|
|
2754
|
+
$e as fabStyle,
|
|
2755
|
+
Se as getClassNames,
|
|
2756
|
+
Pe as iconButtonStyle,
|
|
2757
|
+
Je as normalize,
|
|
2758
|
+
Ue as progressIndicatorStyle,
|
|
2759
|
+
je as sliderStyle,
|
|
2760
|
+
Xe as snackbarStyle,
|
|
2761
|
+
Fe as switchStyle,
|
|
2816
2762
|
Oe as tabStyle,
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2763
|
+
Ke as tabsStyle,
|
|
2764
|
+
Ge as textFieldStyle,
|
|
2765
|
+
qe as toolStyle
|
|
2820
2766
|
};
|