rl-react-components 2.9.0 → 3.0.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/README.md +11 -11
- package/dist/components/LevelChip/LevelChip.d.ts +13 -0
- package/dist/components/LevelChip/index.d.ts +2 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +27 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/Slider/Slider.d.ts +28 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +26 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +595 -362
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import e, { createContext as t, useCallback as n, useContext as r, useEffect as i, useId as a,
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
var
|
|
2
|
+
import e, { createContext as t, useCallback as n, useContext as r, useEffect as i, useId as a, useImperativeHandle as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
3
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
4
|
+
import p from "react-markdown";
|
|
5
|
+
import m from "remark-gfm";
|
|
6
|
+
var h = {
|
|
7
7
|
accordion: "_accordion_1dh6o_1",
|
|
8
8
|
item: "_item_1dh6o_9",
|
|
9
9
|
summary: "_summary_1dh6o_32",
|
|
@@ -12,22 +12,22 @@ var m = {
|
|
|
12
12
|
content: "_content_1dh6o_73"
|
|
13
13
|
};
|
|
14
14
|
// src/components/Accordion/Accordion.tsx
|
|
15
|
-
function
|
|
16
|
-
let o = a(), [s] =
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
className: [
|
|
19
|
-
children: e.map((e) => /* @__PURE__ */
|
|
20
|
-
className:
|
|
15
|
+
function g({ items: e, defaultOpen: t = [], singleOpen: n = !1, headingLevel: r, className: i }) {
|
|
16
|
+
let o = a(), [s] = l(() => new Set(n ? t.slice(0, 1) : t)), c = r ? `h${r}` : "span";
|
|
17
|
+
return /* @__PURE__ */ d("div", {
|
|
18
|
+
className: [h.accordion, i].filter(Boolean).join(" "),
|
|
19
|
+
children: e.map((e) => /* @__PURE__ */ f("details", {
|
|
20
|
+
className: h.item,
|
|
21
21
|
name: n ? o : void 0,
|
|
22
22
|
open: s.has(e.id),
|
|
23
23
|
suppressHydrationWarning: !0,
|
|
24
|
-
children: [/* @__PURE__ */
|
|
25
|
-
className:
|
|
26
|
-
children: [/* @__PURE__ */
|
|
27
|
-
className:
|
|
24
|
+
children: [/* @__PURE__ */ f("summary", {
|
|
25
|
+
className: h.summary,
|
|
26
|
+
children: [/* @__PURE__ */ d(c, {
|
|
27
|
+
className: h.title,
|
|
28
28
|
children: e.title
|
|
29
|
-
}), /* @__PURE__ */
|
|
30
|
-
className:
|
|
29
|
+
}), /* @__PURE__ */ d("svg", {
|
|
30
|
+
className: h.chevron,
|
|
31
31
|
width: 18,
|
|
32
32
|
height: 18,
|
|
33
33
|
viewBox: "0 0 24 24",
|
|
@@ -38,41 +38,41 @@ function h({ items: e, defaultOpen: t = [], singleOpen: n = !1, headingLevel: r,
|
|
|
38
38
|
strokeLinejoin: "round",
|
|
39
39
|
"aria-hidden": "true",
|
|
40
40
|
focusable: "false",
|
|
41
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ d("path", { d: "M6 9l6 6 6-6" })
|
|
42
42
|
})]
|
|
43
|
-
}), /* @__PURE__ */
|
|
44
|
-
className:
|
|
43
|
+
}), /* @__PURE__ */ d("div", {
|
|
44
|
+
className: h.content,
|
|
45
45
|
children: e.content
|
|
46
46
|
})]
|
|
47
47
|
}, e.id))
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
button: "
|
|
52
|
-
content: "
|
|
53
|
-
primary: "
|
|
54
|
-
secondary: "
|
|
55
|
-
ghost: "
|
|
56
|
-
danger: "
|
|
57
|
-
small: "
|
|
58
|
-
large: "
|
|
59
|
-
fullWidth: "
|
|
60
|
-
link: "
|
|
50
|
+
var _ = {
|
|
51
|
+
button: "_button_1kl03_1",
|
|
52
|
+
content: "_content_1kl03_37",
|
|
53
|
+
primary: "_primary_1kl03_45",
|
|
54
|
+
secondary: "_secondary_1kl03_56",
|
|
55
|
+
ghost: "_ghost_1kl03_66",
|
|
56
|
+
danger: "_danger_1kl03_76",
|
|
57
|
+
small: "_small_1kl03_86",
|
|
58
|
+
large: "_large_1kl03_91",
|
|
59
|
+
fullWidth: "_fullWidth_1kl03_96",
|
|
60
|
+
link: "_link_1kl03_100"
|
|
61
61
|
};
|
|
62
62
|
// src/components/Button/Button.tsx
|
|
63
|
-
function
|
|
63
|
+
function v(e) {
|
|
64
64
|
return Object.fromEntries(Object.entries(e).filter(([e]) => !/^on[A-Z]/.test(e) && e !== "tabIndex"));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function y({ variant: e = "primary", size: t = "medium", fullWidth: n = !1, children: r, className: i, href: a, target: o, rel: s, as: c, type: l, disabled: u, onClick: f, ...p }) {
|
|
67
67
|
let m = a !== void 0, h = [
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
t !== "medium" &&
|
|
71
|
-
n &&
|
|
72
|
-
m &&
|
|
68
|
+
_.button,
|
|
69
|
+
_[e],
|
|
70
|
+
t !== "medium" && _[t],
|
|
71
|
+
n && _.fullWidth,
|
|
72
|
+
m && _.link,
|
|
73
73
|
i
|
|
74
|
-
].filter(Boolean).join(" "),
|
|
75
|
-
return b =
|
|
74
|
+
].filter(Boolean).join(" "), g = m && !!u, y = g ? "a" : c ?? (m ? "a" : "button"), b;
|
|
75
|
+
return b = g ? {
|
|
76
76
|
role: "link",
|
|
77
77
|
"aria-disabled": !0
|
|
78
78
|
} : m ? {
|
|
@@ -81,21 +81,21 @@ function v({ variant: e = "primary", size: t = "medium", fullWidth: n = !1, chil
|
|
|
81
81
|
rel: s
|
|
82
82
|
} : {
|
|
83
83
|
type: l,
|
|
84
|
-
disabled:
|
|
85
|
-
}, /* @__PURE__ */
|
|
84
|
+
disabled: u
|
|
85
|
+
}, /* @__PURE__ */ d(y, {
|
|
86
86
|
className: h,
|
|
87
|
-
...
|
|
87
|
+
...g ? v(p) : {
|
|
88
88
|
...p,
|
|
89
89
|
onClick: f
|
|
90
90
|
},
|
|
91
91
|
...b,
|
|
92
|
-
children: /* @__PURE__ */
|
|
93
|
-
className:
|
|
92
|
+
children: /* @__PURE__ */ d("span", {
|
|
93
|
+
className: _.content,
|
|
94
94
|
children: r
|
|
95
95
|
})
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
var
|
|
98
|
+
var b = {
|
|
99
99
|
card: "_card_vtakk_1",
|
|
100
100
|
link: "_link_vtakk_21",
|
|
101
101
|
arrow: "_arrow_vtakk_41",
|
|
@@ -106,17 +106,17 @@ var y = {
|
|
|
106
106
|
title: "_title_vtakk_86"
|
|
107
107
|
};
|
|
108
108
|
// src/components/Card/Card.tsx
|
|
109
|
-
function
|
|
109
|
+
function x(e) {
|
|
110
110
|
let t = e.currentTarget, n = t.getBoundingClientRect();
|
|
111
111
|
t.style.setProperty("--spot-x", `${e.clientX - n.left}px`), t.style.setProperty("--spot-y", `${e.clientY - n.top}px`);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
let g = a(), _ = a(), v = i !== void 0,
|
|
115
|
-
|
|
116
|
-
v &&
|
|
113
|
+
function S({ title: e, description: t, icon: n, eyebrow: r, href: i, target: o, rel: s, headingLevel: c, as: l, children: u, className: p, style: m, id: h }) {
|
|
114
|
+
let g = a(), _ = a(), v = i !== void 0, y = l ?? (v ? "a" : "div"), S = c ? `h${c}` : "span", C = [
|
|
115
|
+
b.card,
|
|
116
|
+
v && b.link,
|
|
117
117
|
p
|
|
118
118
|
].filter(Boolean).join(" ");
|
|
119
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ f(y, {
|
|
120
120
|
className: C,
|
|
121
121
|
style: m,
|
|
122
122
|
id: h,
|
|
@@ -124,35 +124,35 @@ function x({ title: e, description: t, icon: n, eyebrow: r, href: i, target: o,
|
|
|
124
124
|
href: i,
|
|
125
125
|
target: o,
|
|
126
126
|
rel: s,
|
|
127
|
-
onPointerMove:
|
|
127
|
+
onPointerMove: x,
|
|
128
128
|
"aria-labelledby": g,
|
|
129
129
|
"aria-describedby": t ? _ : void 0
|
|
130
130
|
} : {},
|
|
131
131
|
children: [
|
|
132
|
-
(n || r) && /* @__PURE__ */
|
|
133
|
-
className:
|
|
134
|
-
children: [n && /* @__PURE__ */
|
|
135
|
-
className:
|
|
132
|
+
(n || r) && /* @__PURE__ */ f("span", {
|
|
133
|
+
className: b.top,
|
|
134
|
+
children: [n && /* @__PURE__ */ d("span", {
|
|
135
|
+
className: b.icon,
|
|
136
136
|
"aria-hidden": "true",
|
|
137
137
|
children: n
|
|
138
|
-
}), r && /* @__PURE__ */
|
|
139
|
-
className:
|
|
138
|
+
}), r && /* @__PURE__ */ d("span", {
|
|
139
|
+
className: b.eyebrow,
|
|
140
140
|
children: r
|
|
141
141
|
})]
|
|
142
142
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ d(S, {
|
|
144
144
|
id: g,
|
|
145
|
-
className:
|
|
145
|
+
className: b.title,
|
|
146
146
|
children: e
|
|
147
147
|
}),
|
|
148
|
-
t && /* @__PURE__ */
|
|
148
|
+
t && /* @__PURE__ */ d("span", {
|
|
149
149
|
id: _,
|
|
150
|
-
className:
|
|
150
|
+
className: b.description,
|
|
151
151
|
children: t
|
|
152
152
|
}),
|
|
153
|
-
|
|
154
|
-
v && /* @__PURE__ */
|
|
155
|
-
className:
|
|
153
|
+
u,
|
|
154
|
+
v && /* @__PURE__ */ d("svg", {
|
|
155
|
+
className: b.arrow,
|
|
156
156
|
width: 16,
|
|
157
157
|
height: 16,
|
|
158
158
|
viewBox: "0 0 24 24",
|
|
@@ -163,29 +163,29 @@ function x({ title: e, description: t, icon: n, eyebrow: r, href: i, target: o,
|
|
|
163
163
|
strokeLinejoin: "round",
|
|
164
164
|
"aria-hidden": "true",
|
|
165
165
|
focusable: "false",
|
|
166
|
-
children: /* @__PURE__ */
|
|
166
|
+
children: /* @__PURE__ */ d("path", { d: "M5 12h14M13 6l6 6-6 6" })
|
|
167
167
|
})
|
|
168
168
|
]
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
var
|
|
171
|
+
var C = {
|
|
172
172
|
checkbox: "_checkbox_10gcb_2",
|
|
173
173
|
input: "_input_10gcb_9",
|
|
174
174
|
tile: "_tile_10gcb_22",
|
|
175
175
|
box: "_box_10gcb_44"
|
|
176
176
|
};
|
|
177
177
|
// src/components/Checkbox/Checkbox.tsx
|
|
178
|
-
function
|
|
179
|
-
return /* @__PURE__ */
|
|
180
|
-
className: `${
|
|
181
|
-
children: [/* @__PURE__ */
|
|
178
|
+
function ee({ label: e, className: t, ...n }) {
|
|
179
|
+
return /* @__PURE__ */ f("label", {
|
|
180
|
+
className: `${C.checkbox} ${t || ""}`,
|
|
181
|
+
children: [/* @__PURE__ */ d("input", {
|
|
182
182
|
...n,
|
|
183
183
|
type: "checkbox",
|
|
184
|
-
className:
|
|
185
|
-
}), /* @__PURE__ */
|
|
186
|
-
className:
|
|
187
|
-
children: [/* @__PURE__ */
|
|
188
|
-
className:
|
|
184
|
+
className: C.input
|
|
185
|
+
}), /* @__PURE__ */ f("span", {
|
|
186
|
+
className: C.tile,
|
|
187
|
+
children: [/* @__PURE__ */ d("span", {
|
|
188
|
+
className: C.box,
|
|
189
189
|
"aria-hidden": "true"
|
|
190
190
|
}), e]
|
|
191
191
|
})]
|
|
@@ -207,63 +207,63 @@ function T({ children: e, size: t, className: n, as: r = "div" }) {
|
|
|
207
207
|
i,
|
|
208
208
|
n
|
|
209
209
|
].filter(Boolean).join(" ");
|
|
210
|
-
return /* @__PURE__ */
|
|
210
|
+
return /* @__PURE__ */ d(r, {
|
|
211
211
|
className: a,
|
|
212
212
|
children: e
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
sun: /* @__PURE__ */
|
|
215
|
+
var E = { icon: "_icon_veg5e_1" }, D = {
|
|
216
|
+
sun: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("circle", {
|
|
217
217
|
cx: "12",
|
|
218
218
|
cy: "12",
|
|
219
219
|
r: "4"
|
|
220
|
-
}), /* @__PURE__ */
|
|
221
|
-
moon: /* @__PURE__ */
|
|
222
|
-
copy: /* @__PURE__ */
|
|
220
|
+
}), /* @__PURE__ */ d("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41" })] }),
|
|
221
|
+
moon: /* @__PURE__ */ d("path", { d: "M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5Z" }),
|
|
222
|
+
copy: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("rect", {
|
|
223
223
|
x: "9",
|
|
224
224
|
y: "9",
|
|
225
225
|
width: "12",
|
|
226
226
|
height: "12",
|
|
227
227
|
rx: "2"
|
|
228
|
-
}), /* @__PURE__ */
|
|
229
|
-
check: /* @__PURE__ */
|
|
230
|
-
arrowRight: /* @__PURE__ */
|
|
231
|
-
arrowUpRight: /* @__PURE__ */
|
|
232
|
-
code: /* @__PURE__ */
|
|
233
|
-
book: /* @__PURE__ */
|
|
234
|
-
layout: /* @__PURE__ */
|
|
228
|
+
}), /* @__PURE__ */ d("path", { d: "M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1" })] }),
|
|
229
|
+
check: /* @__PURE__ */ d("path", { d: "m5 12.5 4.5 4.5L19 7.5" }),
|
|
230
|
+
arrowRight: /* @__PURE__ */ d("path", { d: "M5 12h14M13 6l6 6-6 6" }),
|
|
231
|
+
arrowUpRight: /* @__PURE__ */ d("path", { d: "M7 17 17 7M8 7h9v9" }),
|
|
232
|
+
code: /* @__PURE__ */ d("path", { d: "m8 7-5 5 5 5M16 7l5 5-5 5M14 4l-4 16" }),
|
|
233
|
+
book: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5Z" }), /* @__PURE__ */ d("path", { d: "M4 20.5A2.5 2.5 0 0 0 6.5 23H20v-5" })] }),
|
|
234
|
+
layout: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("rect", {
|
|
235
235
|
x: "3",
|
|
236
236
|
y: "3",
|
|
237
237
|
width: "18",
|
|
238
238
|
height: "18",
|
|
239
239
|
rx: "2"
|
|
240
|
-
}), /* @__PURE__ */
|
|
241
|
-
compass: /* @__PURE__ */
|
|
240
|
+
}), /* @__PURE__ */ d("path", { d: "M3 9h18M9 9v12" })] }),
|
|
241
|
+
compass: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("circle", {
|
|
242
242
|
cx: "12",
|
|
243
243
|
cy: "12",
|
|
244
244
|
r: "9"
|
|
245
|
-
}), /* @__PURE__ */
|
|
246
|
-
input: /* @__PURE__ */
|
|
245
|
+
}), /* @__PURE__ */ d("path", { d: "m15.5 8.5-2 5-5 2 2-5Z" })] }),
|
|
246
|
+
input: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("rect", {
|
|
247
247
|
x: "3",
|
|
248
248
|
y: "6",
|
|
249
249
|
width: "18",
|
|
250
250
|
height: "12",
|
|
251
251
|
rx: "2"
|
|
252
|
-
}), /* @__PURE__ */
|
|
253
|
-
tag: /* @__PURE__ */
|
|
252
|
+
}), /* @__PURE__ */ d("path", { d: "M7 10v4" })] }),
|
|
253
|
+
tag: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9Z" }), /* @__PURE__ */ d("circle", {
|
|
254
254
|
cx: "8",
|
|
255
255
|
cy: "8",
|
|
256
256
|
r: "1.5"
|
|
257
257
|
})] }),
|
|
258
|
-
document: /* @__PURE__ */
|
|
259
|
-
bell: /* @__PURE__ */
|
|
260
|
-
sparkle: /* @__PURE__ */
|
|
261
|
-
braces: /* @__PURE__ */
|
|
262
|
-
type: /* @__PURE__ */
|
|
263
|
-
},
|
|
264
|
-
function
|
|
265
|
-
let r = [
|
|
266
|
-
return /* @__PURE__ */
|
|
258
|
+
document: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M6 2h9l5 5v15H6Z" }), /* @__PURE__ */ d("path", { d: "M14 2v6h6M9 13h7M9 17h5" })] }),
|
|
259
|
+
bell: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M6 16V11a6 6 0 0 1 12 0v5l2 2H4Z" }), /* @__PURE__ */ d("path", { d: "M10 21h4" })] }),
|
|
260
|
+
sparkle: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M12 3c.6 4.5 2.5 6.4 7 7-4.5.6-6.4 2.5-7 7-.6-4.5-2.5-6.4-7-7 4.5-.6 6.4-2.5 7-7Z" }), /* @__PURE__ */ d("path", { d: "M19 16c.2 1.6.9 2.3 2.5 2.5-1.6.2-2.3.9-2.5 2.5-.2-1.6-.9-2.3-2.5-2.5 1.6-.2 2.3-.9 2.5-2.5Z" })] }),
|
|
261
|
+
braces: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("path", { d: "M8 3H7a2 2 0 0 0-2 2v4a3 3 0 0 1-2 3 3 3 0 0 1 2 3v4a2 2 0 0 0 2 2h1" }), /* @__PURE__ */ d("path", { d: "M16 3h1a2 2 0 0 1 2 2v4a3 3 0 0 0 2 3 3 3 0 0 0-2 3v4a2 2 0 0 1-2 2h-1" })] }),
|
|
262
|
+
type: /* @__PURE__ */ d("path", { d: "M5 7V4h14v3M12 4v16M9 20h6" })
|
|
263
|
+
}, O = Object.keys(D);
|
|
264
|
+
function k({ name: e, size: t = 18, className: n }) {
|
|
265
|
+
let r = [E.icon, n].filter(Boolean).join(" ");
|
|
266
|
+
return /* @__PURE__ */ d("svg", {
|
|
267
267
|
className: r,
|
|
268
268
|
width: t,
|
|
269
269
|
height: t,
|
|
@@ -275,56 +275,81 @@ function ne({ name: e, size: t = 18, className: n }) {
|
|
|
275
275
|
strokeLinejoin: "round",
|
|
276
276
|
"aria-hidden": "true",
|
|
277
277
|
focusable: "false",
|
|
278
|
-
children:
|
|
278
|
+
children: D[e]
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var A = {
|
|
282
282
|
iconButton: "_iconButton_uxox6_1",
|
|
283
283
|
icon: "_icon_uxox6_1",
|
|
284
284
|
default: "_default_uxox6_25",
|
|
285
285
|
danger: "_danger_uxox6_30"
|
|
286
286
|
};
|
|
287
287
|
// src/components/IconButton/IconButton.tsx
|
|
288
|
-
function
|
|
288
|
+
function j({ label: e, icon: t, variant: n = "default", type: r = "button", title: i = e, className: a, ...o }) {
|
|
289
289
|
let s = [
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
A.iconButton,
|
|
291
|
+
A[n],
|
|
292
292
|
a
|
|
293
293
|
].filter(Boolean).join(" ");
|
|
294
|
-
return /* @__PURE__ */
|
|
294
|
+
return /* @__PURE__ */ d("button", {
|
|
295
295
|
...o,
|
|
296
296
|
type: r,
|
|
297
297
|
className: s,
|
|
298
298
|
"aria-label": e,
|
|
299
299
|
"aria-labelledby": void 0,
|
|
300
300
|
title: i,
|
|
301
|
-
children: /* @__PURE__ */
|
|
302
|
-
className:
|
|
301
|
+
children: /* @__PURE__ */ d("span", {
|
|
302
|
+
className: A.icon,
|
|
303
303
|
"aria-hidden": "true",
|
|
304
304
|
children: t
|
|
305
305
|
})
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
+
var M = {
|
|
309
|
+
levelChip: "_levelChip_9gobv_1",
|
|
310
|
+
label: "_label_9gobv_38",
|
|
311
|
+
dots: "_dots_9gobv_42",
|
|
312
|
+
dot: "_dot_9gobv_42",
|
|
313
|
+
filledDot: "_filledDot_9gobv_49"
|
|
314
|
+
};
|
|
315
|
+
// src/components/LevelChip/LevelChip.tsx
|
|
316
|
+
function te({ label: e, level: t, max: n = 5, levelLabel: r, className: i, ...a }) {
|
|
317
|
+
let o = Math.max(1, Math.floor(n)), s = Math.min(Math.max(Math.floor(t), 0), o);
|
|
318
|
+
return /* @__PURE__ */ f("span", {
|
|
319
|
+
...a,
|
|
320
|
+
className: [M.levelChip, i].filter(Boolean).join(" "),
|
|
321
|
+
children: [/* @__PURE__ */ d("span", {
|
|
322
|
+
className: M.label,
|
|
323
|
+
children: e
|
|
324
|
+
}), /* @__PURE__ */ d("span", {
|
|
325
|
+
className: M.dots,
|
|
326
|
+
role: "img",
|
|
327
|
+
"aria-label": r,
|
|
328
|
+
title: r,
|
|
329
|
+
children: Array.from({ length: o }, (e, t) => /* @__PURE__ */ d("span", { className: t < s ? M.filledDot : M.dot }, t))
|
|
330
|
+
})]
|
|
331
|
+
});
|
|
332
|
+
}
|
|
308
333
|
// src/components/Markdown/Markdown.tsx
|
|
309
|
-
function
|
|
310
|
-
return /* @__PURE__ */
|
|
334
|
+
function ne({ node: e, ...t }) {
|
|
335
|
+
return /* @__PURE__ */ d("a", {
|
|
311
336
|
...t,
|
|
312
337
|
target: "_blank",
|
|
313
338
|
rel: "noopener noreferrer"
|
|
314
339
|
});
|
|
315
340
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
318
|
-
return /* @__PURE__ */
|
|
341
|
+
var re = { a: ne }, ie = [m];
|
|
342
|
+
function ae({ children: e, className: t }) {
|
|
343
|
+
return /* @__PURE__ */ d("div", {
|
|
319
344
|
className: t,
|
|
320
|
-
children: /* @__PURE__ */
|
|
321
|
-
remarkPlugins:
|
|
322
|
-
components:
|
|
345
|
+
children: /* @__PURE__ */ d(p, {
|
|
346
|
+
remarkPlugins: ie,
|
|
347
|
+
components: re,
|
|
323
348
|
children: e
|
|
324
349
|
})
|
|
325
350
|
});
|
|
326
351
|
}
|
|
327
|
-
var
|
|
352
|
+
var N = {
|
|
328
353
|
editor: "_editor_spixg_1",
|
|
329
354
|
label: "_label_spixg_7",
|
|
330
355
|
toolbar: "_toolbar_spixg_15",
|
|
@@ -337,7 +362,7 @@ var k = {
|
|
|
337
362
|
previewHeader: "_previewHeader_spixg_111",
|
|
338
363
|
previewDot: "_previewDot_spixg_125",
|
|
339
364
|
preview: "_preview_spixg_104"
|
|
340
|
-
},
|
|
365
|
+
}, oe = 200, se = " ", ce = [
|
|
341
366
|
[
|
|
342
367
|
{
|
|
343
368
|
action: "bold",
|
|
@@ -437,14 +462,14 @@ var k = {
|
|
|
437
462
|
}
|
|
438
463
|
]
|
|
439
464
|
];
|
|
440
|
-
function
|
|
441
|
-
let
|
|
465
|
+
function le({ value: t, onChange: r, labels: o, label: s, placeholder: l }) {
|
|
466
|
+
let u = c(null), p = c(!1), m = a(), h = a();
|
|
442
467
|
i(() => {
|
|
443
|
-
let e =
|
|
444
|
-
e && (e.style.height = "auto", e.style.height = `${Math.max(
|
|
468
|
+
let e = u.current;
|
|
469
|
+
e && (e.style.height = "auto", e.style.height = `${Math.max(oe, e.scrollHeight)}px`);
|
|
445
470
|
}, [t]);
|
|
446
471
|
let g = n((e) => {
|
|
447
|
-
let t =
|
|
472
|
+
let t = u.current;
|
|
448
473
|
if (!t) return;
|
|
449
474
|
let [n, i] = e(t.selectionStart, t.selectionEnd);
|
|
450
475
|
r(n), requestAnimationFrame(() => {
|
|
@@ -459,18 +484,18 @@ function ue({ value: t, onChange: r, labels: o, label: c, placeholder: l }) {
|
|
|
459
484
|
let a = i || o.sampleText;
|
|
460
485
|
return [t.substring(0, n) + e.prefix + a + e.suffix + t.substring(r), n + e.prefix.length + a.length];
|
|
461
486
|
});
|
|
462
|
-
return /* @__PURE__ */
|
|
463
|
-
className:
|
|
487
|
+
return /* @__PURE__ */ f("div", {
|
|
488
|
+
className: N.editor,
|
|
464
489
|
children: [
|
|
465
|
-
/* @__PURE__ */
|
|
466
|
-
className:
|
|
490
|
+
/* @__PURE__ */ d("label", {
|
|
491
|
+
className: N.label,
|
|
467
492
|
htmlFor: m,
|
|
468
|
-
children:
|
|
493
|
+
children: s
|
|
469
494
|
}),
|
|
470
|
-
/* @__PURE__ */
|
|
471
|
-
className:
|
|
472
|
-
children:
|
|
473
|
-
className:
|
|
495
|
+
/* @__PURE__ */ d("div", {
|
|
496
|
+
className: N.toolbar,
|
|
497
|
+
children: ce.map((t, n) => /* @__PURE__ */ f(e.Fragment, { children: [n > 0 && /* @__PURE__ */ d("div", { className: N.separator }), t.map((e) => /* @__PURE__ */ d("button", {
|
|
498
|
+
className: N.toolBtn,
|
|
474
499
|
onClick: () => _(e),
|
|
475
500
|
title: o.actions[e.action],
|
|
476
501
|
"aria-label": o.actions[e.action],
|
|
@@ -478,36 +503,36 @@ function ue({ value: t, onChange: r, labels: o, label: c, placeholder: l }) {
|
|
|
478
503
|
children: e.icon
|
|
479
504
|
}, e.action))] }, n))
|
|
480
505
|
}),
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
-
className:
|
|
483
|
-
children: [/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ f("div", {
|
|
507
|
+
className: N.content,
|
|
508
|
+
children: [/* @__PURE__ */ d("textarea", {
|
|
484
509
|
id: m,
|
|
485
|
-
ref:
|
|
486
|
-
className:
|
|
510
|
+
ref: u,
|
|
511
|
+
className: N.textarea,
|
|
487
512
|
value: t,
|
|
488
513
|
onChange: (e) => r(e.target.value),
|
|
489
514
|
onKeyDown: (e) => {
|
|
490
515
|
let n = p.current;
|
|
491
|
-
p.current = e.key === "Escape", !(e.key !== "Tab" || e.shiftKey || n) && (e.preventDefault(), g((e, n) => [t.substring(0, e) +
|
|
516
|
+
p.current = e.key === "Escape", !(e.key !== "Tab" || e.shiftKey || n) && (e.preventDefault(), g((e, n) => [t.substring(0, e) + se + t.substring(n), e + 2]));
|
|
492
517
|
},
|
|
493
518
|
onBlur: () => {
|
|
494
519
|
p.current = !1;
|
|
495
520
|
},
|
|
496
521
|
placeholder: l,
|
|
497
522
|
"aria-describedby": o.tabHint ? h : void 0
|
|
498
|
-
}), o.tabHint && /* @__PURE__ */
|
|
523
|
+
}), o.tabHint && /* @__PURE__ */ d("span", {
|
|
499
524
|
id: h,
|
|
500
|
-
className:
|
|
525
|
+
className: N.visuallyHidden,
|
|
501
526
|
children: o.tabHint
|
|
502
527
|
})]
|
|
503
528
|
}),
|
|
504
|
-
t.trim() && /* @__PURE__ */
|
|
505
|
-
className:
|
|
506
|
-
children: [/* @__PURE__ */
|
|
507
|
-
className:
|
|
508
|
-
children: [/* @__PURE__ */
|
|
509
|
-
}), /* @__PURE__ */
|
|
510
|
-
className:
|
|
529
|
+
t.trim() && /* @__PURE__ */ f("div", {
|
|
530
|
+
className: N.previewSection,
|
|
531
|
+
children: [/* @__PURE__ */ f("div", {
|
|
532
|
+
className: N.previewHeader,
|
|
533
|
+
children: [/* @__PURE__ */ d("span", { className: N.previewDot }), o.preview]
|
|
534
|
+
}), /* @__PURE__ */ d(ae, {
|
|
535
|
+
className: N.preview,
|
|
511
536
|
children: t
|
|
512
537
|
})]
|
|
513
538
|
})
|
|
@@ -515,7 +540,7 @@ function ue({ value: t, onChange: r, labels: o, label: c, placeholder: l }) {
|
|
|
515
540
|
});
|
|
516
541
|
}
|
|
517
542
|
// src/components/MatrixContainer/matrixConfig.ts
|
|
518
|
-
var
|
|
543
|
+
var P = {
|
|
519
544
|
fontSize: 20,
|
|
520
545
|
columnDensity: .5,
|
|
521
546
|
trailLength: 10,
|
|
@@ -524,7 +549,7 @@ var A = {
|
|
|
524
549
|
headOpacity: 1,
|
|
525
550
|
trailOpacityMax: .8,
|
|
526
551
|
chars: Array.from("アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン0123456789")
|
|
527
|
-
},
|
|
552
|
+
}, ue = {
|
|
528
553
|
drizzle: {
|
|
529
554
|
columnDensity: .15,
|
|
530
555
|
tickMs: 250,
|
|
@@ -546,7 +571,7 @@ var A = {
|
|
|
546
571
|
headOpacity: .9,
|
|
547
572
|
trailOpacityMax: .8
|
|
548
573
|
}
|
|
549
|
-
},
|
|
574
|
+
}, de = {
|
|
550
575
|
dark: {
|
|
551
576
|
fontSize: 14,
|
|
552
577
|
columnDensity: 1,
|
|
@@ -563,15 +588,15 @@ var A = {
|
|
|
563
588
|
headOpacity: .42,
|
|
564
589
|
trailOpacityMax: .24
|
|
565
590
|
}
|
|
566
|
-
},
|
|
591
|
+
}, F = {
|
|
567
592
|
wrapper: "_wrapper_c93oc_1",
|
|
568
593
|
canvas: "_canvas_c93oc_6",
|
|
569
594
|
content: "_content_c93oc_16"
|
|
570
|
-
},
|
|
571
|
-
let p =
|
|
572
|
-
...
|
|
595
|
+
}, fe = e.forwardRef(({ children: e, config: t, canvasOpacity: n = 1, paused: r = !1, className: a, style: o, id: s, as: l = "div" }, u) => {
|
|
596
|
+
let p = c(null), m = c(r), h = c({
|
|
597
|
+
...P,
|
|
573
598
|
...t
|
|
574
|
-
}), g =
|
|
599
|
+
}), g = c(null);
|
|
575
600
|
i(() => {
|
|
576
601
|
let e = p.current;
|
|
577
602
|
if (!e) return;
|
|
@@ -615,33 +640,33 @@ var A = {
|
|
|
615
640
|
};
|
|
616
641
|
}, []), i(() => {
|
|
617
642
|
let e = {
|
|
618
|
-
...
|
|
643
|
+
...P,
|
|
619
644
|
...t
|
|
620
645
|
}, n = e.fontSize !== h.current.fontSize || e.columnDensity !== h.current.columnDensity;
|
|
621
646
|
Object.assign(h.current, e), n ? g.current?.regrid(!0) : g.current?.redraw();
|
|
622
647
|
}, [t]), i(() => {
|
|
623
648
|
m.current = r, g.current?.syncMotion();
|
|
624
649
|
}, [r]);
|
|
625
|
-
let _ = [
|
|
626
|
-
return /* @__PURE__ */
|
|
627
|
-
ref:
|
|
650
|
+
let _ = [F.wrapper, a].filter(Boolean).join(" ");
|
|
651
|
+
return /* @__PURE__ */ f(l, {
|
|
652
|
+
ref: u,
|
|
628
653
|
className: _,
|
|
629
654
|
style: o,
|
|
630
|
-
id:
|
|
631
|
-
children: [/* @__PURE__ */
|
|
655
|
+
id: s,
|
|
656
|
+
children: [/* @__PURE__ */ d("canvas", {
|
|
632
657
|
ref: p,
|
|
633
|
-
className:
|
|
658
|
+
className: F.canvas,
|
|
634
659
|
"aria-hidden": "true",
|
|
635
660
|
style: n === 1 ? void 0 : { opacity: n }
|
|
636
|
-
}), /* @__PURE__ */
|
|
637
|
-
className:
|
|
661
|
+
}), /* @__PURE__ */ d("div", {
|
|
662
|
+
className: F.content,
|
|
638
663
|
children: e
|
|
639
664
|
})]
|
|
640
665
|
});
|
|
641
666
|
});
|
|
642
|
-
|
|
667
|
+
fe.displayName = "MatrixContainer";
|
|
643
668
|
// src/components/OrbitalDots/orbitalDotsConfig.ts
|
|
644
|
-
var
|
|
669
|
+
var pe = {
|
|
645
670
|
dotCount: 38,
|
|
646
671
|
maxLineDistance: 110,
|
|
647
672
|
dotMinRadius: 1.5,
|
|
@@ -662,13 +687,13 @@ var N = {
|
|
|
662
687
|
symbolFontScale: .035,
|
|
663
688
|
tickMs: 30,
|
|
664
689
|
color: "180,220,50"
|
|
665
|
-
},
|
|
690
|
+
}, I = {
|
|
666
691
|
wrapper: "_wrapper_c93oc_1",
|
|
667
692
|
canvas: "_canvas_c93oc_6",
|
|
668
693
|
content: "_content_c93oc_16"
|
|
669
|
-
},
|
|
670
|
-
let p =
|
|
671
|
-
...
|
|
694
|
+
}, me = e.forwardRef(({ children: e, config: t, canvasOpacity: n = 1, paused: r = !1, className: a, style: o, id: s, as: l = "div" }, u) => {
|
|
695
|
+
let p = c(null), m = c(r), h = c(null), g = c({
|
|
696
|
+
...pe,
|
|
672
697
|
...t
|
|
673
698
|
});
|
|
674
699
|
i(() => {
|
|
@@ -762,39 +787,39 @@ var N = {
|
|
|
762
787
|
}, []), i(() => {
|
|
763
788
|
m.current = r, h.current?.();
|
|
764
789
|
}, [r]);
|
|
765
|
-
let _ = [
|
|
766
|
-
return /* @__PURE__ */
|
|
767
|
-
ref:
|
|
790
|
+
let _ = [I.wrapper, a].filter(Boolean).join(" ");
|
|
791
|
+
return /* @__PURE__ */ f(l, {
|
|
792
|
+
ref: u,
|
|
768
793
|
className: _,
|
|
769
794
|
style: o,
|
|
770
|
-
id:
|
|
771
|
-
children: [/* @__PURE__ */
|
|
795
|
+
id: s,
|
|
796
|
+
children: [/* @__PURE__ */ d("canvas", {
|
|
772
797
|
ref: p,
|
|
773
|
-
className:
|
|
798
|
+
className: I.canvas,
|
|
774
799
|
"aria-hidden": "true",
|
|
775
800
|
style: n === 1 ? void 0 : { opacity: n }
|
|
776
|
-
}), /* @__PURE__ */
|
|
777
|
-
className:
|
|
801
|
+
}), /* @__PURE__ */ d("div", {
|
|
802
|
+
className: I.content,
|
|
778
803
|
children: e
|
|
779
804
|
})]
|
|
780
805
|
});
|
|
781
806
|
});
|
|
782
|
-
|
|
783
|
-
var
|
|
807
|
+
me.displayName = "OrbitalDots";
|
|
808
|
+
var L = {
|
|
784
809
|
section: "_section_1tryt_1",
|
|
785
810
|
noPadding: "_noPadding_1tryt_11",
|
|
786
811
|
dark: "_dark_1tryt_15",
|
|
787
812
|
elevated: "_elevated_1tryt_19"
|
|
788
813
|
};
|
|
789
814
|
// src/components/Section/Section.tsx
|
|
790
|
-
function
|
|
815
|
+
function he({ children: e, variant: t = "dark", noPadding: n, className: r, id: i, "aria-labelledby": a, "aria-label": o }) {
|
|
791
816
|
let s = [
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
n &&
|
|
817
|
+
L.section,
|
|
818
|
+
L[t],
|
|
819
|
+
n && L.noPadding,
|
|
795
820
|
r
|
|
796
821
|
].filter(Boolean).join(" ");
|
|
797
|
-
return /* @__PURE__ */
|
|
822
|
+
return /* @__PURE__ */ d("section", {
|
|
798
823
|
className: s,
|
|
799
824
|
id: i,
|
|
800
825
|
"aria-labelledby": a,
|
|
@@ -815,49 +840,49 @@ var R = {
|
|
|
815
840
|
heroSubtitle: "_heroSubtitle_1b7du_137"
|
|
816
841
|
};
|
|
817
842
|
// src/components/PageHero/PageHero.tsx
|
|
818
|
-
function
|
|
819
|
-
return /* @__PURE__ */
|
|
843
|
+
function ge({ eyebrow: e, title: t, subtitle: n, count: r, countLabel: i }) {
|
|
844
|
+
return /* @__PURE__ */ d(he, {
|
|
820
845
|
noPadding: !0,
|
|
821
|
-
children: /* @__PURE__ */
|
|
846
|
+
children: /* @__PURE__ */ d("div", {
|
|
822
847
|
className: R.hero,
|
|
823
|
-
children: /* @__PURE__ */
|
|
848
|
+
children: /* @__PURE__ */ d(T, { children: /* @__PURE__ */ f("div", {
|
|
824
849
|
className: R.heroInner,
|
|
825
850
|
children: [
|
|
826
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ f("div", {
|
|
827
852
|
className: R.heroCount,
|
|
828
|
-
children: [/* @__PURE__ */
|
|
853
|
+
children: [/* @__PURE__ */ d("span", {
|
|
829
854
|
className: R.countNum,
|
|
830
855
|
children: r
|
|
831
|
-
}), /* @__PURE__ */
|
|
856
|
+
}), /* @__PURE__ */ d("span", {
|
|
832
857
|
className: R.countLabel,
|
|
833
858
|
children: i
|
|
834
859
|
})]
|
|
835
860
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ d("span", {
|
|
837
862
|
className: R.heroEyebrow,
|
|
838
863
|
children: e
|
|
839
864
|
}),
|
|
840
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ d("h1", {
|
|
841
866
|
className: R.heroTitle,
|
|
842
867
|
children: t
|
|
843
868
|
}),
|
|
844
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ d("p", {
|
|
845
870
|
className: R.heroSubtitle,
|
|
846
871
|
children: n
|
|
847
872
|
}),
|
|
848
|
-
/* @__PURE__ */
|
|
873
|
+
/* @__PURE__ */ d("div", { className: R.heroLine })
|
|
849
874
|
]
|
|
850
875
|
}) })
|
|
851
876
|
})
|
|
852
877
|
});
|
|
853
878
|
}
|
|
854
|
-
var
|
|
879
|
+
var _e = {
|
|
855
880
|
wrapper: "_wrapper_1rdu6_1",
|
|
856
881
|
visible: "_visible_1rdu6_6"
|
|
857
882
|
};
|
|
858
883
|
// src/components/PageTransition/PageTransition.tsx
|
|
859
|
-
function
|
|
860
|
-
let [r, a] =
|
|
884
|
+
function ve({ children: e, transitionKey: t, appear: n = !0 }) {
|
|
885
|
+
let [r, a] = l(!n), [o, s] = l(t);
|
|
861
886
|
return t !== o && (s(t), a(!1)), i(() => {
|
|
862
887
|
if (r) return;
|
|
863
888
|
let e, t = requestAnimationFrame(() => {
|
|
@@ -866,12 +891,50 @@ function B({ children: e, transitionKey: t, appear: n = !0 }) {
|
|
|
866
891
|
return () => {
|
|
867
892
|
cancelAnimationFrame(t), cancelAnimationFrame(e);
|
|
868
893
|
};
|
|
869
|
-
}, [r]), /* @__PURE__ */
|
|
870
|
-
className: `${
|
|
894
|
+
}, [r]), /* @__PURE__ */ d("div", {
|
|
895
|
+
className: `${_e.wrapper} ${r ? _e.visible : ""}`,
|
|
871
896
|
children: e
|
|
872
897
|
});
|
|
873
898
|
}
|
|
874
|
-
var
|
|
899
|
+
var z = {
|
|
900
|
+
segmentedControl: "_segmentedControl_unreu_1",
|
|
901
|
+
label: "_label_unreu_9",
|
|
902
|
+
hiddenLabel: "_hiddenLabel_unreu_20",
|
|
903
|
+
options: "_options_unreu_32",
|
|
904
|
+
segment: "_segment_unreu_1",
|
|
905
|
+
input: "_input_unreu_51",
|
|
906
|
+
option: "_option_unreu_32"
|
|
907
|
+
};
|
|
908
|
+
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
909
|
+
function ye({ label: e, hideLabel: t = !1, options: n, value: r, defaultValue: i, onChange: o, name: s, disabled: c, className: l }) {
|
|
910
|
+
let u = a();
|
|
911
|
+
return /* @__PURE__ */ f("fieldset", {
|
|
912
|
+
className: [z.segmentedControl, l].filter(Boolean).join(" "),
|
|
913
|
+
disabled: c,
|
|
914
|
+
children: [/* @__PURE__ */ d("legend", {
|
|
915
|
+
className: t ? z.hiddenLabel : z.label,
|
|
916
|
+
children: e
|
|
917
|
+
}), /* @__PURE__ */ d("div", {
|
|
918
|
+
className: z.options,
|
|
919
|
+
children: n.map((e) => /* @__PURE__ */ f("label", {
|
|
920
|
+
className: z.segment,
|
|
921
|
+
lang: e.lang,
|
|
922
|
+
children: [/* @__PURE__ */ d("input", {
|
|
923
|
+
type: "radio",
|
|
924
|
+
className: z.input,
|
|
925
|
+
name: s ?? u,
|
|
926
|
+
value: e.value,
|
|
927
|
+
...r === void 0 ? { defaultChecked: e.value === i } : { checked: e.value === r },
|
|
928
|
+
onChange: () => o?.(e.value)
|
|
929
|
+
}), /* @__PURE__ */ d("span", {
|
|
930
|
+
className: z.option,
|
|
931
|
+
children: e.label
|
|
932
|
+
})]
|
|
933
|
+
}, e.value))
|
|
934
|
+
})]
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
var B = {
|
|
875
938
|
wrapper: "_wrapper_19o1i_1",
|
|
876
939
|
label: "_label_19o1i_7",
|
|
877
940
|
hint: "_hint_19o1i_15",
|
|
@@ -879,42 +942,42 @@ var V = {
|
|
|
879
942
|
compact: "_compact_19o1i_50"
|
|
880
943
|
};
|
|
881
944
|
// src/components/Select/Select.tsx
|
|
882
|
-
function
|
|
883
|
-
let
|
|
884
|
-
return /* @__PURE__ */
|
|
945
|
+
function be({ label: e, hint: t, placeholder: n, options: r, compact: i = !1, className: o, id: s, "aria-describedby": c, ...l }) {
|
|
946
|
+
let u = a(), p = s ?? u, m = `${p}-hint`, h = [c, t && m].filter(Boolean).join(" ") || void 0;
|
|
947
|
+
return /* @__PURE__ */ f("div", {
|
|
885
948
|
className: [
|
|
886
|
-
|
|
887
|
-
i &&
|
|
949
|
+
B.wrapper,
|
|
950
|
+
i && B.compact,
|
|
888
951
|
o
|
|
889
952
|
].filter(Boolean).join(" "),
|
|
890
953
|
children: [
|
|
891
|
-
e && /* @__PURE__ */
|
|
892
|
-
className:
|
|
954
|
+
e && /* @__PURE__ */ d("label", {
|
|
955
|
+
className: B.label,
|
|
893
956
|
htmlFor: p,
|
|
894
957
|
children: e
|
|
895
958
|
}),
|
|
896
|
-
/* @__PURE__ */
|
|
959
|
+
/* @__PURE__ */ f("select", {
|
|
897
960
|
id: p,
|
|
898
|
-
className:
|
|
961
|
+
className: B.select,
|
|
899
962
|
"aria-describedby": h,
|
|
900
963
|
...l,
|
|
901
|
-
children: [n !== void 0 && /* @__PURE__ */
|
|
964
|
+
children: [n !== void 0 && /* @__PURE__ */ d("option", {
|
|
902
965
|
value: "",
|
|
903
966
|
children: n
|
|
904
|
-
}), r.map((e) => /* @__PURE__ */
|
|
967
|
+
}), r.map((e) => /* @__PURE__ */ d("option", {
|
|
905
968
|
value: e.value,
|
|
906
969
|
children: e.label
|
|
907
970
|
}, e.value))]
|
|
908
971
|
}),
|
|
909
|
-
t && /* @__PURE__ */
|
|
972
|
+
t && /* @__PURE__ */ d("span", {
|
|
910
973
|
id: m,
|
|
911
|
-
className:
|
|
974
|
+
className: B.hint,
|
|
912
975
|
children: t
|
|
913
976
|
})
|
|
914
977
|
]
|
|
915
978
|
});
|
|
916
979
|
}
|
|
917
|
-
var
|
|
980
|
+
var V = {
|
|
918
981
|
frame: "_frame_btbpz_1",
|
|
919
982
|
shimmer: "_shimmer_btbpz_7",
|
|
920
983
|
sweep: "_sweep_btbpz_1",
|
|
@@ -923,24 +986,24 @@ var H = {
|
|
|
923
986
|
loaded: "_loaded_btbpz_38"
|
|
924
987
|
};
|
|
925
988
|
// src/components/ShimmerImage/ShimmerImage.tsx
|
|
926
|
-
function
|
|
927
|
-
let [o, s] =
|
|
989
|
+
function xe({ src: e, alt: t, fallback: n, className: r, onError: i, ...a }) {
|
|
990
|
+
let [o, s] = l(null), c = o === e, [p, m] = l(null);
|
|
928
991
|
p !== null && p !== e && m(null);
|
|
929
992
|
let h = (t) => {
|
|
930
993
|
t?.complete && (t.naturalWidth > 0 ? s(e) : t.decode?.().then(() => s(e), () => {
|
|
931
994
|
n !== void 0 && m(e);
|
|
932
995
|
}));
|
|
933
996
|
};
|
|
934
|
-
return n !== void 0 && (!e || p === e) ? /* @__PURE__ */ u
|
|
935
|
-
className: `${
|
|
936
|
-
children: [/* @__PURE__ */
|
|
937
|
-
className:
|
|
938
|
-
children: /* @__PURE__ */
|
|
997
|
+
return n !== void 0 && (!e || p === e) ? /* @__PURE__ */ d(u, { children: n }) : /* @__PURE__ */ f("div", {
|
|
998
|
+
className: `${V.frame} ${c ? V.loaded : ""}`,
|
|
999
|
+
children: [/* @__PURE__ */ d("div", { className: V.shimmer }), /* @__PURE__ */ d("div", {
|
|
1000
|
+
className: V.reveal,
|
|
1001
|
+
children: /* @__PURE__ */ d("img", {
|
|
939
1002
|
...a,
|
|
940
1003
|
ref: h,
|
|
941
1004
|
src: e,
|
|
942
1005
|
alt: t,
|
|
943
|
-
className: [
|
|
1006
|
+
className: [V.image, r].filter(Boolean).join(" "),
|
|
944
1007
|
onLoad: () => s(e),
|
|
945
1008
|
onError: (t) => {
|
|
946
1009
|
m(e), i?.(t);
|
|
@@ -949,7 +1012,7 @@ function he({ src: e, alt: t, fallback: n, className: r, onError: i, ...a }) {
|
|
|
949
1012
|
})]
|
|
950
1013
|
});
|
|
951
1014
|
}
|
|
952
|
-
var
|
|
1015
|
+
var H = {
|
|
953
1016
|
sideNav: "_sideNav_1ljaj_1",
|
|
954
1017
|
list: "_list_1ljaj_10",
|
|
955
1018
|
group: "_group_1ljaj_16",
|
|
@@ -958,11 +1021,11 @@ var U = {
|
|
|
958
1021
|
active: "_active_1ljaj_64",
|
|
959
1022
|
icon: "_icon_1ljaj_76",
|
|
960
1023
|
label: "_label_1ljaj_81"
|
|
961
|
-
},
|
|
962
|
-
function
|
|
1024
|
+
}, U = 24;
|
|
1025
|
+
function Se(e) {
|
|
963
1026
|
return "items" in e;
|
|
964
1027
|
}
|
|
965
|
-
function
|
|
1028
|
+
function Ce(e) {
|
|
966
1029
|
let { body: t, documentElement: n } = e.ownerDocument;
|
|
967
1030
|
for (let r = e.parentElement; r; r = r.parentElement) {
|
|
968
1031
|
if (r === t || r === n) return null;
|
|
@@ -971,56 +1034,56 @@ function _e(e) {
|
|
|
971
1034
|
}
|
|
972
1035
|
return null;
|
|
973
1036
|
}
|
|
974
|
-
function
|
|
1037
|
+
function we(e, t) {
|
|
975
1038
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect().top + t.clientTop, i = n.top - r + t.scrollTop, a = i + n.height;
|
|
976
|
-
i -
|
|
1039
|
+
i - U < t.scrollTop ? t.scrollTo({ top: i - U }) : a + U > t.scrollTop + t.clientHeight && t.scrollTo({ top: a + U - t.clientHeight });
|
|
977
1040
|
}
|
|
978
|
-
function
|
|
979
|
-
let p = a(), m =
|
|
1041
|
+
function Te({ label: e, items: t, activeHref: n, ariaCurrent: r = "page", keepActiveInView: o = !1, as: s = "a", onItemClick: l, className: u }) {
|
|
1042
|
+
let p = a(), m = c(null);
|
|
980
1043
|
i(() => {
|
|
981
1044
|
let e = m.current;
|
|
982
1045
|
if (!o || !e) return;
|
|
983
|
-
let t = e.querySelector("[aria-current]"), n =
|
|
984
|
-
t && n &&
|
|
1046
|
+
let t = e.querySelector("[aria-current]"), n = Ce(e);
|
|
1047
|
+
t && n && we(t, n);
|
|
985
1048
|
}, [n, o]);
|
|
986
1049
|
let h = (e) => {
|
|
987
1050
|
let t = e.href === n;
|
|
988
|
-
return /* @__PURE__ */
|
|
1051
|
+
return /* @__PURE__ */ d("li", { children: /* @__PURE__ */ f(s, {
|
|
989
1052
|
href: e.href,
|
|
990
|
-
className: [
|
|
1053
|
+
className: [H.link, t && H.active].filter(Boolean).join(" "),
|
|
991
1054
|
"aria-current": t ? r : void 0,
|
|
992
1055
|
onClick: l ? (t) => l(e, t) : void 0,
|
|
993
|
-
children: [e.icon && /* @__PURE__ */
|
|
994
|
-
className:
|
|
1056
|
+
children: [e.icon && /* @__PURE__ */ d("span", {
|
|
1057
|
+
className: H.icon,
|
|
995
1058
|
"aria-hidden": "true",
|
|
996
1059
|
children: e.icon
|
|
997
|
-
}), /* @__PURE__ */
|
|
998
|
-
className:
|
|
1060
|
+
}), /* @__PURE__ */ d("span", {
|
|
1061
|
+
className: H.label,
|
|
999
1062
|
children: e.label
|
|
1000
1063
|
})]
|
|
1001
1064
|
}) }, e.href);
|
|
1002
1065
|
};
|
|
1003
|
-
return /* @__PURE__ */
|
|
1066
|
+
return /* @__PURE__ */ d("nav", {
|
|
1004
1067
|
ref: m,
|
|
1005
|
-
className: [
|
|
1068
|
+
className: [H.sideNav, u].filter(Boolean).join(" "),
|
|
1006
1069
|
"aria-label": e,
|
|
1007
|
-
children: /* @__PURE__ */
|
|
1008
|
-
className:
|
|
1070
|
+
children: /* @__PURE__ */ d("ul", {
|
|
1071
|
+
className: H.list,
|
|
1009
1072
|
children: t.map((e, t) => {
|
|
1010
|
-
if (!
|
|
1073
|
+
if (!Se(e)) return h(e);
|
|
1011
1074
|
let n = `${p}-group-${t}`;
|
|
1012
|
-
return /* @__PURE__ */
|
|
1013
|
-
className:
|
|
1014
|
-
children: [/* @__PURE__ */
|
|
1075
|
+
return /* @__PURE__ */ f("li", {
|
|
1076
|
+
className: H.group,
|
|
1077
|
+
children: [/* @__PURE__ */ f("span", {
|
|
1015
1078
|
id: n,
|
|
1016
|
-
className:
|
|
1017
|
-
children: [e.icon && /* @__PURE__ */
|
|
1018
|
-
className:
|
|
1079
|
+
className: H.groupTitle,
|
|
1080
|
+
children: [e.icon && /* @__PURE__ */ d("span", {
|
|
1081
|
+
className: H.icon,
|
|
1019
1082
|
"aria-hidden": "true",
|
|
1020
1083
|
children: e.icon
|
|
1021
1084
|
}), e.title]
|
|
1022
|
-
}), /* @__PURE__ */
|
|
1023
|
-
className:
|
|
1085
|
+
}), /* @__PURE__ */ d("ul", {
|
|
1086
|
+
className: H.list,
|
|
1024
1087
|
"aria-labelledby": n,
|
|
1025
1088
|
children: e.items.map(h)
|
|
1026
1089
|
})]
|
|
@@ -1029,7 +1092,177 @@ function ye({ label: e, items: t, activeHref: n, ariaCurrent: r = "page", keepAc
|
|
|
1029
1092
|
})
|
|
1030
1093
|
});
|
|
1031
1094
|
}
|
|
1095
|
+
var W = {
|
|
1096
|
+
slider: "_slider_17r1j_1",
|
|
1097
|
+
header: "_header_17r1j_10",
|
|
1098
|
+
label: "_label_17r1j_17",
|
|
1099
|
+
hiddenLabel: "_hiddenLabel_17r1j_25",
|
|
1100
|
+
value: "_value_17r1j_37",
|
|
1101
|
+
input: "_input_17r1j_51",
|
|
1102
|
+
marks: "_marks_17r1j_122",
|
|
1103
|
+
mark: "_mark_17r1j_122",
|
|
1104
|
+
hint: "_hint_17r1j_138"
|
|
1105
|
+
};
|
|
1106
|
+
// src/components/Slider/Slider.tsx
|
|
1107
|
+
function Ee(e, t, n, r) {
|
|
1108
|
+
let i = Math.min(Math.max(e, t), Math.max(t, n));
|
|
1109
|
+
if (!(r > 0)) return i;
|
|
1110
|
+
let a = t + Math.round((i - t) / r) * r;
|
|
1111
|
+
return a > n && (a -= r), Number(a.toFixed(10));
|
|
1112
|
+
}
|
|
1113
|
+
function De({ label: e, hideLabel: t = !1, value: n, defaultValue: r, min: s = 0, max: u = 100, step: p = 1, formatValue: m, showValue: h = !0, marks: g, hint: _, className: v, id: y, style: b, onChange: x, ref: S, "aria-describedby": C, "aria-valuetext": ee, ...w }) {
|
|
1114
|
+
let T = a(), E = y ?? T, D = `${E}-hint`, O = c(null);
|
|
1115
|
+
o(S, () => O.current, []);
|
|
1116
|
+
let [k] = l(() => Ee(r ?? s + (u - s) / 2, s, u, p)), [A, j] = l(k), M = Ee(n ?? A, s, u, p), te = u > s ? (M - s) / (u - s) : 0;
|
|
1117
|
+
return i(() => {
|
|
1118
|
+
let e = O.current, t = e?.form;
|
|
1119
|
+
if (!e || !t) return;
|
|
1120
|
+
let n, r = () => {
|
|
1121
|
+
n = setTimeout(() => j(Number(e.value)));
|
|
1122
|
+
};
|
|
1123
|
+
return t.addEventListener("reset", r), () => {
|
|
1124
|
+
clearTimeout(n), t.removeEventListener("reset", r);
|
|
1125
|
+
};
|
|
1126
|
+
}, []), /* @__PURE__ */ f("div", {
|
|
1127
|
+
className: [W.slider, v].filter(Boolean).join(" "),
|
|
1128
|
+
children: [
|
|
1129
|
+
/* @__PURE__ */ f("div", {
|
|
1130
|
+
className: W.header,
|
|
1131
|
+
children: [/* @__PURE__ */ d("label", {
|
|
1132
|
+
className: t ? W.hiddenLabel : W.label,
|
|
1133
|
+
htmlFor: E,
|
|
1134
|
+
children: e
|
|
1135
|
+
}), h && /* @__PURE__ */ d("span", {
|
|
1136
|
+
className: W.value,
|
|
1137
|
+
"aria-hidden": "true",
|
|
1138
|
+
children: m ? m(M) : M
|
|
1139
|
+
})]
|
|
1140
|
+
}),
|
|
1141
|
+
/* @__PURE__ */ d("input", {
|
|
1142
|
+
...w,
|
|
1143
|
+
ref: O,
|
|
1144
|
+
id: E,
|
|
1145
|
+
type: "range",
|
|
1146
|
+
className: W.input,
|
|
1147
|
+
min: s,
|
|
1148
|
+
max: u,
|
|
1149
|
+
step: p,
|
|
1150
|
+
...n === void 0 ? { defaultValue: k } : { value: n },
|
|
1151
|
+
onChange: (e) => {
|
|
1152
|
+
j(Number(e.target.value)), x?.(e);
|
|
1153
|
+
},
|
|
1154
|
+
"aria-valuetext": ee ?? m?.(M),
|
|
1155
|
+
"aria-describedby": [C, _ && D].filter(Boolean).join(" ") || void 0,
|
|
1156
|
+
style: {
|
|
1157
|
+
...b,
|
|
1158
|
+
"--slider-share": te
|
|
1159
|
+
}
|
|
1160
|
+
}),
|
|
1161
|
+
g && /* @__PURE__ */ d("div", {
|
|
1162
|
+
className: W.marks,
|
|
1163
|
+
"aria-hidden": "true",
|
|
1164
|
+
children: g.filter((e) => e >= s && e <= u).map((e) => /* @__PURE__ */ d("span", {
|
|
1165
|
+
className: W.mark,
|
|
1166
|
+
style: { "--mark-share": u > s ? (e - s) / (u - s) : 0 },
|
|
1167
|
+
children: e
|
|
1168
|
+
}, e))
|
|
1169
|
+
}),
|
|
1170
|
+
_ && /* @__PURE__ */ d("span", {
|
|
1171
|
+
id: D,
|
|
1172
|
+
className: W.hint,
|
|
1173
|
+
children: _
|
|
1174
|
+
})
|
|
1175
|
+
]
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1032
1178
|
var G = {
|
|
1179
|
+
switch: "_switch_1lve1_1",
|
|
1180
|
+
input: "_input_1lve1_10",
|
|
1181
|
+
track: "_track_1lve1_23",
|
|
1182
|
+
label: "_label_1lve1_47",
|
|
1183
|
+
hiddenLabel: "_hiddenLabel_1lve1_53"
|
|
1184
|
+
};
|
|
1185
|
+
// src/components/Switch/Switch.tsx
|
|
1186
|
+
function Oe({ label: e, hideLabel: t = !1, className: n, ...r }) {
|
|
1187
|
+
return /* @__PURE__ */ f("label", {
|
|
1188
|
+
className: [G.switch, n].filter(Boolean).join(" "),
|
|
1189
|
+
children: [
|
|
1190
|
+
/* @__PURE__ */ d("input", {
|
|
1191
|
+
...r,
|
|
1192
|
+
type: "checkbox",
|
|
1193
|
+
role: "switch",
|
|
1194
|
+
className: G.input
|
|
1195
|
+
}),
|
|
1196
|
+
/* @__PURE__ */ d("span", {
|
|
1197
|
+
className: G.track,
|
|
1198
|
+
"aria-hidden": "true"
|
|
1199
|
+
}),
|
|
1200
|
+
/* @__PURE__ */ d("span", {
|
|
1201
|
+
className: t ? G.hiddenLabel : G.label,
|
|
1202
|
+
children: e
|
|
1203
|
+
})
|
|
1204
|
+
]
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
1207
|
+
var K = {
|
|
1208
|
+
tabs: "_tabs_1qw8i_1",
|
|
1209
|
+
list: "_list_1qw8i_7",
|
|
1210
|
+
tab: "_tab_1qw8i_1",
|
|
1211
|
+
icon: "_icon_1qw8i_51",
|
|
1212
|
+
panel: "_panel_1qw8i_55"
|
|
1213
|
+
};
|
|
1214
|
+
// src/components/Tabs/Tabs.tsx
|
|
1215
|
+
function ke({ label: e, items: t, activeId: n, defaultActiveId: r, onChange: i, className: o }) {
|
|
1216
|
+
let s = a(), [c, u] = l(r), p = n ?? c, m = Math.max(0, t.findIndex((e) => e.id === p)), h = (e) => `${s}-tab-${e}`, g = (e) => `${s}-panel-${e}`, _ = (e) => {
|
|
1217
|
+
if (e === m) return;
|
|
1218
|
+
let { id: n } = t[e];
|
|
1219
|
+
u(n), i?.(n);
|
|
1220
|
+
};
|
|
1221
|
+
return /* @__PURE__ */ f("div", {
|
|
1222
|
+
className: [K.tabs, o].filter(Boolean).join(" "),
|
|
1223
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1224
|
+
className: K.list,
|
|
1225
|
+
role: "tablist",
|
|
1226
|
+
"aria-label": e,
|
|
1227
|
+
onKeyDown: (e) => {
|
|
1228
|
+
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return;
|
|
1229
|
+
let t = [...e.currentTarget.querySelectorAll("[role=\"tab\"]")], n = t.indexOf(e.target);
|
|
1230
|
+
if (n < 0) return;
|
|
1231
|
+
let r = {
|
|
1232
|
+
ArrowRight: (n + 1) % t.length,
|
|
1233
|
+
ArrowLeft: (n - 1 + t.length) % t.length,
|
|
1234
|
+
Home: 0,
|
|
1235
|
+
End: t.length - 1
|
|
1236
|
+
}[e.key];
|
|
1237
|
+
r !== void 0 && (e.preventDefault(), t[r].focus(), _(r));
|
|
1238
|
+
},
|
|
1239
|
+
children: t.map((e, t) => /* @__PURE__ */ f("button", {
|
|
1240
|
+
type: "button",
|
|
1241
|
+
role: "tab",
|
|
1242
|
+
id: h(t),
|
|
1243
|
+
className: K.tab,
|
|
1244
|
+
"aria-selected": t === m,
|
|
1245
|
+
"aria-controls": g(t),
|
|
1246
|
+
tabIndex: t === m ? 0 : -1,
|
|
1247
|
+
onClick: () => _(t),
|
|
1248
|
+
children: [e.icon && /* @__PURE__ */ d("span", {
|
|
1249
|
+
className: K.icon,
|
|
1250
|
+
"aria-hidden": "true",
|
|
1251
|
+
children: e.icon
|
|
1252
|
+
}), e.label]
|
|
1253
|
+
}, e.id))
|
|
1254
|
+
}), t.map((e, t) => /* @__PURE__ */ d("div", {
|
|
1255
|
+
role: "tabpanel",
|
|
1256
|
+
id: g(t),
|
|
1257
|
+
className: K.panel,
|
|
1258
|
+
"aria-labelledby": h(t),
|
|
1259
|
+
hidden: t !== m,
|
|
1260
|
+
tabIndex: 0,
|
|
1261
|
+
children: t === m && e.content
|
|
1262
|
+
}, e.id))]
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
var q = {
|
|
1033
1266
|
tag: "_tag_1tw86_1",
|
|
1034
1267
|
clickable: "_clickable_1tw86_20",
|
|
1035
1268
|
active: "_active_1tw86_29",
|
|
@@ -1037,66 +1270,66 @@ var G = {
|
|
|
1037
1270
|
removeBtn: "_removeBtn_1tw86_44"
|
|
1038
1271
|
};
|
|
1039
1272
|
// src/components/Tag/Tag.tsx
|
|
1040
|
-
function
|
|
1273
|
+
function J({ label: e, active: t, onClick: n, onRemove: r, removeLabel: i }) {
|
|
1041
1274
|
let a = [
|
|
1042
|
-
|
|
1043
|
-
n &&
|
|
1044
|
-
t &&
|
|
1045
|
-
r &&
|
|
1275
|
+
q.tag,
|
|
1276
|
+
n && q.clickable,
|
|
1277
|
+
t && q.active,
|
|
1278
|
+
r && q.removable
|
|
1046
1279
|
].filter(Boolean).join(" ");
|
|
1047
|
-
return n ? /* @__PURE__ */
|
|
1280
|
+
return n ? /* @__PURE__ */ d("button", {
|
|
1048
1281
|
type: "button",
|
|
1049
1282
|
className: a,
|
|
1050
1283
|
onClick: n,
|
|
1051
1284
|
"aria-pressed": !!t,
|
|
1052
1285
|
children: e
|
|
1053
|
-
}) : /* @__PURE__ */
|
|
1286
|
+
}) : /* @__PURE__ */ f("span", {
|
|
1054
1287
|
className: a,
|
|
1055
|
-
children: [e, r && /* @__PURE__ */
|
|
1288
|
+
children: [e, r && /* @__PURE__ */ d("button", {
|
|
1056
1289
|
type: "button",
|
|
1057
|
-
className:
|
|
1290
|
+
className: q.removeBtn,
|
|
1058
1291
|
onClick: r,
|
|
1059
1292
|
"aria-label": i,
|
|
1060
1293
|
children: "×"
|
|
1061
1294
|
})]
|
|
1062
1295
|
});
|
|
1063
1296
|
}
|
|
1064
|
-
var
|
|
1297
|
+
var Ae = { tagFilter: "_tagFilter_1mu0a_1" };
|
|
1065
1298
|
// src/components/TagFilter/TagFilter.tsx
|
|
1066
|
-
function
|
|
1067
|
-
return /* @__PURE__ */
|
|
1068
|
-
className:
|
|
1299
|
+
function je({ tags: e, activeTag: t, onTagClick: n, allLabel: r, groupLabel: i }) {
|
|
1300
|
+
return /* @__PURE__ */ f("div", {
|
|
1301
|
+
className: Ae.tagFilter,
|
|
1069
1302
|
role: i ? "group" : void 0,
|
|
1070
1303
|
"aria-label": i,
|
|
1071
|
-
children: [/* @__PURE__ */
|
|
1304
|
+
children: [/* @__PURE__ */ d(J, {
|
|
1072
1305
|
label: r,
|
|
1073
1306
|
active: t === null,
|
|
1074
1307
|
onClick: () => n(null)
|
|
1075
|
-
}), e.map((e) => /* @__PURE__ */
|
|
1308
|
+
}), e.map((e) => /* @__PURE__ */ d(J, {
|
|
1076
1309
|
label: e,
|
|
1077
1310
|
active: t === e,
|
|
1078
1311
|
onClick: () => n(e)
|
|
1079
1312
|
}, e))]
|
|
1080
1313
|
});
|
|
1081
1314
|
}
|
|
1082
|
-
var
|
|
1315
|
+
var Y = {
|
|
1083
1316
|
tagGroup: "_tagGroup_sens0_1",
|
|
1084
1317
|
label: "_label_sens0_9",
|
|
1085
1318
|
tags: "_tags_sens0_20"
|
|
1086
1319
|
};
|
|
1087
1320
|
// src/components/TagGroup/TagGroup.tsx
|
|
1088
|
-
function
|
|
1321
|
+
function Me(e) {
|
|
1089
1322
|
let { label: t, options: n, className: r } = e, i = (t) => e.selection === "single" ? e.selected === t : e.selected.includes(t), a = (t) => {
|
|
1090
1323
|
e.selection === "single" ? e.onChange(e.selected === t ? null : t) : e.onChange(e.selected.includes(t) ? e.selected.filter((e) => e !== t) : [...e.selected, t]);
|
|
1091
1324
|
};
|
|
1092
|
-
return /* @__PURE__ */
|
|
1093
|
-
className: [
|
|
1094
|
-
children: [/* @__PURE__ */
|
|
1095
|
-
className:
|
|
1325
|
+
return /* @__PURE__ */ f("fieldset", {
|
|
1326
|
+
className: [Y.tagGroup, r].filter(Boolean).join(" "),
|
|
1327
|
+
children: [/* @__PURE__ */ d("legend", {
|
|
1328
|
+
className: Y.label,
|
|
1096
1329
|
children: t
|
|
1097
|
-
}), /* @__PURE__ */
|
|
1098
|
-
className:
|
|
1099
|
-
children: n.map((e) => /* @__PURE__ */
|
|
1330
|
+
}), /* @__PURE__ */ d("div", {
|
|
1331
|
+
className: Y.tags,
|
|
1332
|
+
children: n.map((e) => /* @__PURE__ */ d(J, {
|
|
1100
1333
|
label: e.label,
|
|
1101
1334
|
active: i(e.value),
|
|
1102
1335
|
onClick: () => a(e.value)
|
|
@@ -1104,7 +1337,7 @@ function Se(e) {
|
|
|
1104
1337
|
})]
|
|
1105
1338
|
});
|
|
1106
1339
|
}
|
|
1107
|
-
var
|
|
1340
|
+
var X = {
|
|
1108
1341
|
text: "_text_dq0aw_1",
|
|
1109
1342
|
body: "_body_dq0aw_13",
|
|
1110
1343
|
display: "_display_dq0aw_17",
|
|
@@ -1141,61 +1374,61 @@ var J = {
|
|
|
1141
1374
|
clamp: "_clamp_dq0aw_156"
|
|
1142
1375
|
};
|
|
1143
1376
|
// src/components/Text/Text.tsx
|
|
1144
|
-
function
|
|
1377
|
+
function Ne({ as: e = "p", variant: t = "body", size: n, weight: r, italic: i = !1, tone: a, align: o, truncate: s, className: c, style: l, children: u, ...f }) {
|
|
1145
1378
|
let p = typeof s == "number" && s >= 1 ? Math.floor(s) : void 0, m = [
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
n &&
|
|
1149
|
-
r &&
|
|
1150
|
-
i &&
|
|
1151
|
-
a &&
|
|
1152
|
-
o &&
|
|
1153
|
-
s === !0 &&
|
|
1154
|
-
p !== void 0 &&
|
|
1379
|
+
X.text,
|
|
1380
|
+
X[t],
|
|
1381
|
+
n && X[`size-${n}`],
|
|
1382
|
+
r && X[`weight-${r}`],
|
|
1383
|
+
i && X.italic,
|
|
1384
|
+
a && X[`tone-${a}`],
|
|
1385
|
+
o && X[`align-${o}`],
|
|
1386
|
+
s === !0 && X.truncate,
|
|
1387
|
+
p !== void 0 && X.clamp,
|
|
1155
1388
|
c
|
|
1156
1389
|
].filter(Boolean).join(" "), h = p === void 0 ? l : {
|
|
1157
1390
|
...l,
|
|
1158
1391
|
"--text-lines": p
|
|
1159
1392
|
};
|
|
1160
|
-
return /* @__PURE__ */
|
|
1393
|
+
return /* @__PURE__ */ d(e, {
|
|
1161
1394
|
className: m,
|
|
1162
1395
|
style: h,
|
|
1163
1396
|
...f,
|
|
1164
|
-
children:
|
|
1397
|
+
children: u
|
|
1165
1398
|
});
|
|
1166
1399
|
}
|
|
1167
|
-
var
|
|
1400
|
+
var Z = {
|
|
1168
1401
|
wrapper: "_wrapper_m6u21_1",
|
|
1169
1402
|
label: "_label_m6u21_7",
|
|
1170
1403
|
hint: "_hint_m6u21_15",
|
|
1171
1404
|
textarea: "_textarea_m6u21_21"
|
|
1172
1405
|
};
|
|
1173
1406
|
// src/components/TextArea/TextArea.tsx
|
|
1174
|
-
function
|
|
1175
|
-
let s = a(), c = r ?? s, l = `${c}-hint`,
|
|
1176
|
-
return /* @__PURE__ */
|
|
1177
|
-
className: `${
|
|
1407
|
+
function Pe({ label: e, hint: t, className: n, id: r, "aria-describedby": i, ...o }) {
|
|
1408
|
+
let s = a(), c = r ?? s, l = `${c}-hint`, u = [i, t && l].filter(Boolean).join(" ") || void 0;
|
|
1409
|
+
return /* @__PURE__ */ f("div", {
|
|
1410
|
+
className: `${Z.wrapper} ${n || ""}`,
|
|
1178
1411
|
children: [
|
|
1179
|
-
e && /* @__PURE__ */
|
|
1180
|
-
className:
|
|
1412
|
+
e && /* @__PURE__ */ d("label", {
|
|
1413
|
+
className: Z.label,
|
|
1181
1414
|
htmlFor: c,
|
|
1182
1415
|
children: e
|
|
1183
1416
|
}),
|
|
1184
|
-
/* @__PURE__ */
|
|
1417
|
+
/* @__PURE__ */ d("textarea", {
|
|
1185
1418
|
id: c,
|
|
1186
|
-
className:
|
|
1187
|
-
"aria-describedby":
|
|
1419
|
+
className: Z.textarea,
|
|
1420
|
+
"aria-describedby": u,
|
|
1188
1421
|
...o
|
|
1189
1422
|
}),
|
|
1190
|
-
t && /* @__PURE__ */
|
|
1423
|
+
t && /* @__PURE__ */ d("span", {
|
|
1191
1424
|
id: l,
|
|
1192
|
-
className:
|
|
1425
|
+
className: Z.hint,
|
|
1193
1426
|
children: t
|
|
1194
1427
|
})
|
|
1195
1428
|
]
|
|
1196
1429
|
});
|
|
1197
1430
|
}
|
|
1198
|
-
var
|
|
1431
|
+
var Q = {
|
|
1199
1432
|
wrapper: "_wrapper_1y6l7_1",
|
|
1200
1433
|
label: "_label_1y6l7_7",
|
|
1201
1434
|
input: "_input_1y6l7_15",
|
|
@@ -1205,46 +1438,46 @@ var X = {
|
|
|
1205
1438
|
errorMessage: "_errorMessage_1y6l7_51"
|
|
1206
1439
|
};
|
|
1207
1440
|
// src/components/TextInput/TextInput.tsx
|
|
1208
|
-
function
|
|
1209
|
-
let
|
|
1441
|
+
function Fe({ label: e, hint: t, error: n, compact: r = !1, className: i, id: o, "aria-describedby": s, "aria-invalid": c, ...l }) {
|
|
1442
|
+
let u = a(), p = o ?? u, m = `${p}-hint`, h = `${p}-error`, g = [
|
|
1210
1443
|
s,
|
|
1211
1444
|
t && m,
|
|
1212
1445
|
n && h
|
|
1213
1446
|
].filter(Boolean).join(" ") || void 0;
|
|
1214
|
-
return /* @__PURE__ */
|
|
1447
|
+
return /* @__PURE__ */ f("div", {
|
|
1215
1448
|
className: [
|
|
1216
|
-
|
|
1217
|
-
r &&
|
|
1218
|
-
n &&
|
|
1449
|
+
Q.wrapper,
|
|
1450
|
+
r && Q.compact,
|
|
1451
|
+
n && Q.error,
|
|
1219
1452
|
i
|
|
1220
1453
|
].filter(Boolean).join(" "),
|
|
1221
1454
|
children: [
|
|
1222
|
-
e && /* @__PURE__ */
|
|
1223
|
-
className:
|
|
1455
|
+
e && /* @__PURE__ */ d("label", {
|
|
1456
|
+
className: Q.label,
|
|
1224
1457
|
htmlFor: p,
|
|
1225
1458
|
children: e
|
|
1226
1459
|
}),
|
|
1227
|
-
/* @__PURE__ */
|
|
1460
|
+
/* @__PURE__ */ d("input", {
|
|
1228
1461
|
id: p,
|
|
1229
|
-
className:
|
|
1462
|
+
className: Q.input,
|
|
1230
1463
|
"aria-describedby": g,
|
|
1231
1464
|
"aria-invalid": n ? !0 : c,
|
|
1232
1465
|
...l
|
|
1233
1466
|
}),
|
|
1234
|
-
t && /* @__PURE__ */
|
|
1467
|
+
t && /* @__PURE__ */ d("span", {
|
|
1235
1468
|
id: m,
|
|
1236
|
-
className:
|
|
1469
|
+
className: Q.hint,
|
|
1237
1470
|
children: t
|
|
1238
1471
|
}),
|
|
1239
|
-
n && /* @__PURE__ */
|
|
1472
|
+
n && /* @__PURE__ */ d("span", {
|
|
1240
1473
|
id: h,
|
|
1241
|
-
className:
|
|
1474
|
+
className: Q.errorMessage,
|
|
1242
1475
|
children: n
|
|
1243
1476
|
})
|
|
1244
1477
|
]
|
|
1245
1478
|
});
|
|
1246
1479
|
}
|
|
1247
|
-
var
|
|
1480
|
+
var $ = {
|
|
1248
1481
|
container: "_container_m3x4i_1",
|
|
1249
1482
|
toast: "_toast_m3x4i_14",
|
|
1250
1483
|
slideIn: "_slideIn_m3x4i_1",
|
|
@@ -1262,78 +1495,78 @@ var Z = {
|
|
|
1262
1495
|
progress: "_progress_m3x4i_153",
|
|
1263
1496
|
toastInner: "_toastInner_m3x4i_181",
|
|
1264
1497
|
toastBody: "_toastBody_m3x4i_187"
|
|
1265
|
-
},
|
|
1498
|
+
}, Ie = 220, Le = {
|
|
1266
1499
|
success: "✓",
|
|
1267
1500
|
error: "✕",
|
|
1268
1501
|
warning: "⚠",
|
|
1269
1502
|
info: "ℹ"
|
|
1270
|
-
},
|
|
1271
|
-
function
|
|
1272
|
-
return r(
|
|
1503
|
+
}, Re = t({ addToast: () => {} });
|
|
1504
|
+
function ze() {
|
|
1505
|
+
return r(Re);
|
|
1273
1506
|
}
|
|
1274
|
-
function
|
|
1275
|
-
let [r, a] =
|
|
1507
|
+
function Be({ dismissLabel: e, children: t }) {
|
|
1508
|
+
let [r, a] = l([]), o = c(0), u = c(/* @__PURE__ */ new Map());
|
|
1276
1509
|
i(() => {
|
|
1277
|
-
let e =
|
|
1510
|
+
let e = u.current;
|
|
1278
1511
|
return () => e.forEach((e) => clearTimeout(e));
|
|
1279
1512
|
}, []);
|
|
1280
1513
|
let p = n((e) => {
|
|
1281
|
-
clearTimeout(
|
|
1514
|
+
clearTimeout(u.current.get(e)), u.current.delete(e), a((t) => t.map((t) => t.id === e ? {
|
|
1282
1515
|
...t,
|
|
1283
1516
|
isExiting: !0
|
|
1284
1517
|
} : t)), setTimeout(() => {
|
|
1285
1518
|
a((t) => t.filter((t) => t.id !== e));
|
|
1286
|
-
},
|
|
1519
|
+
}, Ie);
|
|
1287
1520
|
}, []), m = n((e, t = "success", n = 4e3) => {
|
|
1288
|
-
let r = String(
|
|
1521
|
+
let r = String(o.current++);
|
|
1289
1522
|
a((i) => [...i, {
|
|
1290
1523
|
id: r,
|
|
1291
1524
|
message: e,
|
|
1292
1525
|
variant: t,
|
|
1293
1526
|
duration: n,
|
|
1294
1527
|
isExiting: !1
|
|
1295
|
-
}]),
|
|
1296
|
-
}, [p]), h =
|
|
1297
|
-
return /* @__PURE__ */
|
|
1528
|
+
}]), u.current.set(r, setTimeout(() => p(r), n));
|
|
1529
|
+
}, [p]), h = s(() => ({ addToast: m }), [m]);
|
|
1530
|
+
return /* @__PURE__ */ f(Re.Provider, {
|
|
1298
1531
|
value: h,
|
|
1299
|
-
children: [t, /* @__PURE__ */
|
|
1532
|
+
children: [t, /* @__PURE__ */ d(Ve, {
|
|
1300
1533
|
toasts: r,
|
|
1301
1534
|
onDismiss: p,
|
|
1302
1535
|
dismissLabel: e
|
|
1303
1536
|
})]
|
|
1304
1537
|
});
|
|
1305
1538
|
}
|
|
1306
|
-
function
|
|
1307
|
-
return /* @__PURE__ */
|
|
1308
|
-
className:
|
|
1539
|
+
function Ve({ toasts: e, onDismiss: t, dismissLabel: n }) {
|
|
1540
|
+
return /* @__PURE__ */ d("div", {
|
|
1541
|
+
className: $.container,
|
|
1309
1542
|
role: "status",
|
|
1310
1543
|
"aria-atomic": "false",
|
|
1311
|
-
children: e.map((e) => /* @__PURE__ */
|
|
1312
|
-
className: `${
|
|
1544
|
+
children: e.map((e) => /* @__PURE__ */ f("div", {
|
|
1545
|
+
className: `${$.toast} ${$[e.variant]} ${e.isExiting ? $.exiting : ""}`,
|
|
1313
1546
|
children: [
|
|
1314
|
-
/* @__PURE__ */
|
|
1315
|
-
className:
|
|
1316
|
-
children: /* @__PURE__ */
|
|
1317
|
-
className:
|
|
1318
|
-
children: [/* @__PURE__ */
|
|
1319
|
-
className:
|
|
1547
|
+
/* @__PURE__ */ d("div", {
|
|
1548
|
+
className: $.toastInner,
|
|
1549
|
+
children: /* @__PURE__ */ f("div", {
|
|
1550
|
+
className: $.toastBody,
|
|
1551
|
+
children: [/* @__PURE__ */ d("span", {
|
|
1552
|
+
className: $.icon,
|
|
1320
1553
|
"aria-hidden": "true",
|
|
1321
|
-
children:
|
|
1322
|
-
}), /* @__PURE__ */
|
|
1323
|
-
className:
|
|
1554
|
+
children: Le[e.variant]
|
|
1555
|
+
}), /* @__PURE__ */ d("span", {
|
|
1556
|
+
className: $.message,
|
|
1324
1557
|
children: e.message
|
|
1325
1558
|
})]
|
|
1326
1559
|
})
|
|
1327
1560
|
}),
|
|
1328
|
-
/* @__PURE__ */
|
|
1561
|
+
/* @__PURE__ */ d("button", {
|
|
1329
1562
|
type: "button",
|
|
1330
|
-
className:
|
|
1563
|
+
className: $.close,
|
|
1331
1564
|
onClick: () => t(e.id),
|
|
1332
1565
|
"aria-label": n,
|
|
1333
1566
|
children: "×"
|
|
1334
1567
|
}),
|
|
1335
|
-
/* @__PURE__ */
|
|
1336
|
-
className:
|
|
1568
|
+
/* @__PURE__ */ d("div", {
|
|
1569
|
+
className: $.progress,
|
|
1337
1570
|
style: { animationDuration: `${e.duration}ms` }
|
|
1338
1571
|
})
|
|
1339
1572
|
]
|
|
@@ -1341,8 +1574,8 @@ function ke({ toasts: e, onDismiss: t, dismissLabel: n }) {
|
|
|
1341
1574
|
});
|
|
1342
1575
|
}
|
|
1343
1576
|
// src/hooks/useDragReorder.ts
|
|
1344
|
-
function
|
|
1345
|
-
let [n, r] =
|
|
1577
|
+
function He(e, t) {
|
|
1578
|
+
let [n, r] = l(null), [i, a] = l(null), o = () => {
|
|
1346
1579
|
r(null), a(null);
|
|
1347
1580
|
}, s = (n, r) => {
|
|
1348
1581
|
let i = (t) => t >= 0 && t < e.length;
|
|
@@ -1370,15 +1603,15 @@ function Ae(e, t) {
|
|
|
1370
1603
|
};
|
|
1371
1604
|
}
|
|
1372
1605
|
// src/hooks/useRotatingMessage.ts
|
|
1373
|
-
var
|
|
1374
|
-
function
|
|
1375
|
-
let [r, a] =
|
|
1606
|
+
var Ue = 300;
|
|
1607
|
+
function We(e, t = 1e4, n = !1) {
|
|
1608
|
+
let [r, a] = l(0), [o, s] = l(!1);
|
|
1376
1609
|
return i(() => {
|
|
1377
1610
|
if (e.length <= 1 || n) return;
|
|
1378
1611
|
let r, i = setInterval(() => {
|
|
1379
1612
|
s(!0), r = setTimeout(() => {
|
|
1380
1613
|
r = void 0, a((t) => (t + 1) % e.length), s(!1);
|
|
1381
|
-
},
|
|
1614
|
+
}, Ue);
|
|
1382
1615
|
}, t);
|
|
1383
1616
|
return () => {
|
|
1384
1617
|
clearInterval(i), r !== void 0 && (clearTimeout(r), s(!1));
|
|
@@ -1392,4 +1625,4 @@ function Me(e, t = 1e4, n = !1) {
|
|
|
1392
1625
|
isFading: o
|
|
1393
1626
|
};
|
|
1394
1627
|
}
|
|
1395
|
-
export {
|
|
1628
|
+
export { g as Accordion, y as Button, S as Card, ee as Checkbox, T as Container, O as ICON_NAMES, k as Icon, j as IconButton, te as LevelChip, P as MATRIX_CONFIG, ue as MATRIX_PRESETS, de as MATRIX_THEME_CONFIG, ae as Markdown, le as MarkdownEditor, fe as MatrixContainer, pe as ORBITAL_DOTS_CONFIG, me as OrbitalDots, ge as PageHero, ve as PageTransition, he as Section, ye as SegmentedControl, be as Select, xe as ShimmerImage, Te as SideNav, De as Slider, Oe as Switch, ke as Tabs, J as Tag, je as TagFilter, Me as TagGroup, Ne as Text, Pe as TextArea, Fe as TextInput, Be as ToastProvider, He as useDragReorder, We as useRotatingMessage, ze as useToast };
|