rl-react-components 2.6.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/Accordion/Accordion.d.ts +19 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +10 -1
- package/dist/components/Container/Container.d.ts +3 -2
- package/dist/components/IconButton/IconButton.d.ts +9 -0
- package/dist/components/IconButton/index.d.ts +2 -0
- 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/Select/Select.d.ts +10 -3
- package/dist/components/ShimmerImage/ShimmerImage.d.ts +6 -1
- 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/components/TagGroup/TagGroup.d.ts +24 -0
- package/dist/components/TagGroup/index.d.ts +2 -0
- package/dist/components/TextArea/TextArea.d.ts +3 -1
- package/dist/components/TextInput/TextInput.d.ts +5 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.js +759 -362
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,38 +1,101 @@
|
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
accordion: "_accordion_1dh6o_1",
|
|
8
|
+
item: "_item_1dh6o_9",
|
|
9
|
+
summary: "_summary_1dh6o_32",
|
|
10
|
+
title: "_title_1dh6o_52",
|
|
11
|
+
chevron: "_chevron_1dh6o_62",
|
|
12
|
+
content: "_content_1dh6o_73"
|
|
13
|
+
};
|
|
14
|
+
// src/components/Accordion/Accordion.tsx
|
|
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
|
+
name: n ? o : void 0,
|
|
22
|
+
open: s.has(e.id),
|
|
23
|
+
suppressHydrationWarning: !0,
|
|
24
|
+
children: [/* @__PURE__ */ f("summary", {
|
|
25
|
+
className: h.summary,
|
|
26
|
+
children: [/* @__PURE__ */ d(c, {
|
|
27
|
+
className: h.title,
|
|
28
|
+
children: e.title
|
|
29
|
+
}), /* @__PURE__ */ d("svg", {
|
|
30
|
+
className: h.chevron,
|
|
31
|
+
width: 18,
|
|
32
|
+
height: 18,
|
|
33
|
+
viewBox: "0 0 24 24",
|
|
34
|
+
fill: "none",
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
strokeWidth: 1.7,
|
|
37
|
+
strokeLinecap: "round",
|
|
38
|
+
strokeLinejoin: "round",
|
|
39
|
+
"aria-hidden": "true",
|
|
40
|
+
focusable: "false",
|
|
41
|
+
children: /* @__PURE__ */ d("path", { d: "M6 9l6 6 6-6" })
|
|
42
|
+
})]
|
|
43
|
+
}), /* @__PURE__ */ d("div", {
|
|
44
|
+
className: h.content,
|
|
45
|
+
children: e.content
|
|
46
|
+
})]
|
|
47
|
+
}, e.id))
|
|
48
|
+
});
|
|
49
|
+
}
|
|
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"
|
|
16
61
|
};
|
|
17
62
|
// src/components/Button/Button.tsx
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
63
|
+
function v(e) {
|
|
64
|
+
return Object.fromEntries(Object.entries(e).filter(([e]) => !/^on[A-Z]/.test(e) && e !== "tabIndex"));
|
|
65
|
+
}
|
|
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
|
+
let m = a !== void 0, h = [
|
|
68
|
+
_.button,
|
|
69
|
+
_[e],
|
|
70
|
+
t !== "medium" && _[t],
|
|
71
|
+
n && _.fullWidth,
|
|
72
|
+
m && _.link,
|
|
24
73
|
i
|
|
25
|
-
].filter(Boolean).join(" ");
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
74
|
+
].filter(Boolean).join(" "), g = m && !!u, y = g ? "a" : c ?? (m ? "a" : "button"), b;
|
|
75
|
+
return b = g ? {
|
|
76
|
+
role: "link",
|
|
77
|
+
"aria-disabled": !0
|
|
78
|
+
} : m ? {
|
|
79
|
+
href: a,
|
|
80
|
+
target: o,
|
|
81
|
+
rel: s
|
|
82
|
+
} : {
|
|
83
|
+
type: l,
|
|
84
|
+
disabled: u
|
|
85
|
+
}, /* @__PURE__ */ d(y, {
|
|
86
|
+
className: h,
|
|
87
|
+
...g ? v(p) : {
|
|
88
|
+
...p,
|
|
89
|
+
onClick: f
|
|
90
|
+
},
|
|
91
|
+
...b,
|
|
92
|
+
children: /* @__PURE__ */ d("span", {
|
|
93
|
+
className: _.content,
|
|
31
94
|
children: r
|
|
32
95
|
})
|
|
33
96
|
});
|
|
34
97
|
}
|
|
35
|
-
var
|
|
98
|
+
var b = {
|
|
36
99
|
card: "_card_vtakk_1",
|
|
37
100
|
link: "_link_vtakk_21",
|
|
38
101
|
arrow: "_arrow_vtakk_41",
|
|
@@ -43,53 +106,53 @@ var g = {
|
|
|
43
106
|
title: "_title_vtakk_86"
|
|
44
107
|
};
|
|
45
108
|
// src/components/Card/Card.tsx
|
|
46
|
-
function
|
|
109
|
+
function x(e) {
|
|
47
110
|
let t = e.currentTarget, n = t.getBoundingClientRect();
|
|
48
111
|
t.style.setProperty("--spot-x", `${e.clientX - n.left}px`), t.style.setProperty("--spot-y", `${e.clientY - n.top}px`);
|
|
49
112
|
}
|
|
50
|
-
function
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
|
|
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,
|
|
54
117
|
p
|
|
55
118
|
].filter(Boolean).join(" ");
|
|
56
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ f(y, {
|
|
57
120
|
className: C,
|
|
58
121
|
style: m,
|
|
59
122
|
id: h,
|
|
60
|
-
...
|
|
123
|
+
...v ? {
|
|
61
124
|
href: i,
|
|
62
125
|
target: o,
|
|
63
126
|
rel: s,
|
|
64
|
-
onPointerMove:
|
|
65
|
-
"aria-labelledby":
|
|
66
|
-
"aria-describedby": t ?
|
|
127
|
+
onPointerMove: x,
|
|
128
|
+
"aria-labelledby": g,
|
|
129
|
+
"aria-describedby": t ? _ : void 0
|
|
67
130
|
} : {},
|
|
68
131
|
children: [
|
|
69
|
-
(n || r) && /* @__PURE__ */
|
|
70
|
-
className:
|
|
71
|
-
children: [n && /* @__PURE__ */
|
|
72
|
-
className:
|
|
132
|
+
(n || r) && /* @__PURE__ */ f("span", {
|
|
133
|
+
className: b.top,
|
|
134
|
+
children: [n && /* @__PURE__ */ d("span", {
|
|
135
|
+
className: b.icon,
|
|
73
136
|
"aria-hidden": "true",
|
|
74
137
|
children: n
|
|
75
|
-
}), r && /* @__PURE__ */
|
|
76
|
-
className:
|
|
138
|
+
}), r && /* @__PURE__ */ d("span", {
|
|
139
|
+
className: b.eyebrow,
|
|
77
140
|
children: r
|
|
78
141
|
})]
|
|
79
142
|
}),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
id:
|
|
82
|
-
className:
|
|
143
|
+
/* @__PURE__ */ d(S, {
|
|
144
|
+
id: g,
|
|
145
|
+
className: b.title,
|
|
83
146
|
children: e
|
|
84
147
|
}),
|
|
85
|
-
t && /* @__PURE__ */
|
|
86
|
-
id:
|
|
87
|
-
className:
|
|
148
|
+
t && /* @__PURE__ */ d("span", {
|
|
149
|
+
id: _,
|
|
150
|
+
className: b.description,
|
|
88
151
|
children: t
|
|
89
152
|
}),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
className:
|
|
153
|
+
u,
|
|
154
|
+
v && /* @__PURE__ */ d("svg", {
|
|
155
|
+
className: b.arrow,
|
|
93
156
|
width: 16,
|
|
94
157
|
height: 16,
|
|
95
158
|
viewBox: "0 0 24 24",
|
|
@@ -100,106 +163,107 @@ function v({ title: e, description: t, icon: n, eyebrow: r, href: i, target: o,
|
|
|
100
163
|
strokeLinejoin: "round",
|
|
101
164
|
"aria-hidden": "true",
|
|
102
165
|
focusable: "false",
|
|
103
|
-
children: /* @__PURE__ */
|
|
166
|
+
children: /* @__PURE__ */ d("path", { d: "M5 12h14M13 6l6 6-6 6" })
|
|
104
167
|
})
|
|
105
168
|
]
|
|
106
169
|
});
|
|
107
170
|
}
|
|
108
|
-
var
|
|
171
|
+
var C = {
|
|
109
172
|
checkbox: "_checkbox_10gcb_2",
|
|
110
173
|
input: "_input_10gcb_9",
|
|
111
174
|
tile: "_tile_10gcb_22",
|
|
112
175
|
box: "_box_10gcb_44"
|
|
113
176
|
};
|
|
114
177
|
// src/components/Checkbox/Checkbox.tsx
|
|
115
|
-
function
|
|
116
|
-
return /* @__PURE__ */
|
|
117
|
-
className: `${
|
|
118
|
-
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", {
|
|
119
182
|
...n,
|
|
120
183
|
type: "checkbox",
|
|
121
|
-
className:
|
|
122
|
-
}), /* @__PURE__ */
|
|
123
|
-
className:
|
|
124
|
-
children: [/* @__PURE__ */
|
|
125
|
-
className:
|
|
184
|
+
className: C.input
|
|
185
|
+
}), /* @__PURE__ */ f("span", {
|
|
186
|
+
className: C.tile,
|
|
187
|
+
children: [/* @__PURE__ */ d("span", {
|
|
188
|
+
className: C.box,
|
|
126
189
|
"aria-hidden": "true"
|
|
127
190
|
}), e]
|
|
128
191
|
})]
|
|
129
192
|
});
|
|
130
193
|
}
|
|
131
|
-
var
|
|
132
|
-
container: "
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
194
|
+
var w = {
|
|
195
|
+
container: "_container_1yk16_1",
|
|
196
|
+
pageWidth: "_pageWidth_1yk16_8",
|
|
197
|
+
sm: "_sm_1yk16_12",
|
|
198
|
+
md: "_md_1yk16_16",
|
|
199
|
+
lg: "_lg_1yk16_20",
|
|
200
|
+
xl: "_xl_1yk16_24",
|
|
201
|
+
xxl: "_xxl_1yk16_28"
|
|
138
202
|
};
|
|
139
203
|
// src/components/Container/Container.tsx
|
|
140
|
-
function
|
|
141
|
-
let i = [
|
|
142
|
-
|
|
143
|
-
|
|
204
|
+
function T({ children: e, size: t, className: n, as: r = "div" }) {
|
|
205
|
+
let i = t ? w[t] : w.pageWidth, a = [
|
|
206
|
+
w.container,
|
|
207
|
+
i,
|
|
144
208
|
n
|
|
145
209
|
].filter(Boolean).join(" ");
|
|
146
|
-
return /* @__PURE__ */
|
|
147
|
-
className:
|
|
210
|
+
return /* @__PURE__ */ d(r, {
|
|
211
|
+
className: a,
|
|
148
212
|
children: e
|
|
149
213
|
});
|
|
150
214
|
}
|
|
151
|
-
var
|
|
152
|
-
sun: /* @__PURE__ */
|
|
215
|
+
var E = { icon: "_icon_veg5e_1" }, D = {
|
|
216
|
+
sun: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("circle", {
|
|
153
217
|
cx: "12",
|
|
154
218
|
cy: "12",
|
|
155
219
|
r: "4"
|
|
156
|
-
}), /* @__PURE__ */
|
|
157
|
-
moon: /* @__PURE__ */
|
|
158
|
-
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", {
|
|
159
223
|
x: "9",
|
|
160
224
|
y: "9",
|
|
161
225
|
width: "12",
|
|
162
226
|
height: "12",
|
|
163
227
|
rx: "2"
|
|
164
|
-
}), /* @__PURE__ */
|
|
165
|
-
check: /* @__PURE__ */
|
|
166
|
-
arrowRight: /* @__PURE__ */
|
|
167
|
-
arrowUpRight: /* @__PURE__ */
|
|
168
|
-
code: /* @__PURE__ */
|
|
169
|
-
book: /* @__PURE__ */
|
|
170
|
-
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", {
|
|
171
235
|
x: "3",
|
|
172
236
|
y: "3",
|
|
173
237
|
width: "18",
|
|
174
238
|
height: "18",
|
|
175
239
|
rx: "2"
|
|
176
|
-
}), /* @__PURE__ */
|
|
177
|
-
compass: /* @__PURE__ */
|
|
240
|
+
}), /* @__PURE__ */ d("path", { d: "M3 9h18M9 9v12" })] }),
|
|
241
|
+
compass: /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("circle", {
|
|
178
242
|
cx: "12",
|
|
179
243
|
cy: "12",
|
|
180
244
|
r: "9"
|
|
181
|
-
}), /* @__PURE__ */
|
|
182
|
-
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", {
|
|
183
247
|
x: "3",
|
|
184
248
|
y: "6",
|
|
185
249
|
width: "18",
|
|
186
250
|
height: "12",
|
|
187
251
|
rx: "2"
|
|
188
|
-
}), /* @__PURE__ */
|
|
189
|
-
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", {
|
|
190
254
|
cx: "8",
|
|
191
255
|
cy: "8",
|
|
192
256
|
r: "1.5"
|
|
193
257
|
})] }),
|
|
194
|
-
document: /* @__PURE__ */
|
|
195
|
-
bell: /* @__PURE__ */
|
|
196
|
-
sparkle: /* @__PURE__ */
|
|
197
|
-
braces: /* @__PURE__ */
|
|
198
|
-
type: /* @__PURE__ */
|
|
199
|
-
},
|
|
200
|
-
function
|
|
201
|
-
let r = [
|
|
202
|
-
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", {
|
|
203
267
|
className: r,
|
|
204
268
|
width: t,
|
|
205
269
|
height: t,
|
|
@@ -211,29 +275,81 @@ function te({ name: e, size: t = 18, className: n }) {
|
|
|
211
275
|
strokeLinejoin: "round",
|
|
212
276
|
"aria-hidden": "true",
|
|
213
277
|
focusable: "false",
|
|
214
|
-
children:
|
|
278
|
+
children: D[e]
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
var A = {
|
|
282
|
+
iconButton: "_iconButton_uxox6_1",
|
|
283
|
+
icon: "_icon_uxox6_1",
|
|
284
|
+
default: "_default_uxox6_25",
|
|
285
|
+
danger: "_danger_uxox6_30"
|
|
286
|
+
};
|
|
287
|
+
// src/components/IconButton/IconButton.tsx
|
|
288
|
+
function j({ label: e, icon: t, variant: n = "default", type: r = "button", title: i = e, className: a, ...o }) {
|
|
289
|
+
let s = [
|
|
290
|
+
A.iconButton,
|
|
291
|
+
A[n],
|
|
292
|
+
a
|
|
293
|
+
].filter(Boolean).join(" ");
|
|
294
|
+
return /* @__PURE__ */ d("button", {
|
|
295
|
+
...o,
|
|
296
|
+
type: r,
|
|
297
|
+
className: s,
|
|
298
|
+
"aria-label": e,
|
|
299
|
+
"aria-labelledby": void 0,
|
|
300
|
+
title: i,
|
|
301
|
+
children: /* @__PURE__ */ d("span", {
|
|
302
|
+
className: A.icon,
|
|
303
|
+
"aria-hidden": "true",
|
|
304
|
+
children: t
|
|
305
|
+
})
|
|
306
|
+
});
|
|
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
|
+
})]
|
|
215
331
|
});
|
|
216
332
|
}
|
|
217
333
|
// src/components/Markdown/Markdown.tsx
|
|
218
|
-
function
|
|
219
|
-
return /* @__PURE__ */
|
|
334
|
+
function ne({ node: e, ...t }) {
|
|
335
|
+
return /* @__PURE__ */ d("a", {
|
|
220
336
|
...t,
|
|
221
337
|
target: "_blank",
|
|
222
338
|
rel: "noopener noreferrer"
|
|
223
339
|
});
|
|
224
340
|
}
|
|
225
|
-
var
|
|
226
|
-
function
|
|
227
|
-
return /* @__PURE__ */
|
|
341
|
+
var re = { a: ne }, ie = [m];
|
|
342
|
+
function ae({ children: e, className: t }) {
|
|
343
|
+
return /* @__PURE__ */ d("div", {
|
|
228
344
|
className: t,
|
|
229
|
-
children: /* @__PURE__ */
|
|
230
|
-
remarkPlugins:
|
|
231
|
-
components:
|
|
345
|
+
children: /* @__PURE__ */ d(p, {
|
|
346
|
+
remarkPlugins: ie,
|
|
347
|
+
components: re,
|
|
232
348
|
children: e
|
|
233
349
|
})
|
|
234
350
|
});
|
|
235
351
|
}
|
|
236
|
-
var
|
|
352
|
+
var N = {
|
|
237
353
|
editor: "_editor_spixg_1",
|
|
238
354
|
label: "_label_spixg_7",
|
|
239
355
|
toolbar: "_toolbar_spixg_15",
|
|
@@ -246,7 +362,7 @@ var O = {
|
|
|
246
362
|
previewHeader: "_previewHeader_spixg_111",
|
|
247
363
|
previewDot: "_previewDot_spixg_125",
|
|
248
364
|
preview: "_preview_spixg_104"
|
|
249
|
-
},
|
|
365
|
+
}, oe = 200, se = " ", ce = [
|
|
250
366
|
[
|
|
251
367
|
{
|
|
252
368
|
action: "bold",
|
|
@@ -346,14 +462,14 @@ var O = {
|
|
|
346
462
|
}
|
|
347
463
|
]
|
|
348
464
|
];
|
|
349
|
-
function
|
|
350
|
-
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();
|
|
351
467
|
i(() => {
|
|
352
|
-
let e =
|
|
353
|
-
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`);
|
|
354
470
|
}, [t]);
|
|
355
471
|
let g = n((e) => {
|
|
356
|
-
let t =
|
|
472
|
+
let t = u.current;
|
|
357
473
|
if (!t) return;
|
|
358
474
|
let [n, i] = e(t.selectionStart, t.selectionEnd);
|
|
359
475
|
r(n), requestAnimationFrame(() => {
|
|
@@ -368,18 +484,18 @@ function ae({ value: t, onChange: r, labels: o, label: c, placeholder: l }) {
|
|
|
368
484
|
let a = i || o.sampleText;
|
|
369
485
|
return [t.substring(0, n) + e.prefix + a + e.suffix + t.substring(r), n + e.prefix.length + a.length];
|
|
370
486
|
});
|
|
371
|
-
return /* @__PURE__ */
|
|
372
|
-
className:
|
|
487
|
+
return /* @__PURE__ */ f("div", {
|
|
488
|
+
className: N.editor,
|
|
373
489
|
children: [
|
|
374
|
-
/* @__PURE__ */
|
|
375
|
-
className:
|
|
490
|
+
/* @__PURE__ */ d("label", {
|
|
491
|
+
className: N.label,
|
|
376
492
|
htmlFor: m,
|
|
377
|
-
children:
|
|
493
|
+
children: s
|
|
378
494
|
}),
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
-
className:
|
|
381
|
-
children:
|
|
382
|
-
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,
|
|
383
499
|
onClick: () => _(e),
|
|
384
500
|
title: o.actions[e.action],
|
|
385
501
|
"aria-label": o.actions[e.action],
|
|
@@ -387,36 +503,36 @@ function ae({ value: t, onChange: r, labels: o, label: c, placeholder: l }) {
|
|
|
387
503
|
children: e.icon
|
|
388
504
|
}, e.action))] }, n))
|
|
389
505
|
}),
|
|
390
|
-
/* @__PURE__ */
|
|
391
|
-
className:
|
|
392
|
-
children: [/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ f("div", {
|
|
507
|
+
className: N.content,
|
|
508
|
+
children: [/* @__PURE__ */ d("textarea", {
|
|
393
509
|
id: m,
|
|
394
|
-
ref:
|
|
395
|
-
className:
|
|
510
|
+
ref: u,
|
|
511
|
+
className: N.textarea,
|
|
396
512
|
value: t,
|
|
397
513
|
onChange: (e) => r(e.target.value),
|
|
398
514
|
onKeyDown: (e) => {
|
|
399
515
|
let n = p.current;
|
|
400
|
-
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]));
|
|
401
517
|
},
|
|
402
518
|
onBlur: () => {
|
|
403
519
|
p.current = !1;
|
|
404
520
|
},
|
|
405
521
|
placeholder: l,
|
|
406
522
|
"aria-describedby": o.tabHint ? h : void 0
|
|
407
|
-
}), o.tabHint && /* @__PURE__ */
|
|
523
|
+
}), o.tabHint && /* @__PURE__ */ d("span", {
|
|
408
524
|
id: h,
|
|
409
|
-
className:
|
|
525
|
+
className: N.visuallyHidden,
|
|
410
526
|
children: o.tabHint
|
|
411
527
|
})]
|
|
412
528
|
}),
|
|
413
|
-
t.trim() && /* @__PURE__ */
|
|
414
|
-
className:
|
|
415
|
-
children: [/* @__PURE__ */
|
|
416
|
-
className:
|
|
417
|
-
children: [/* @__PURE__ */
|
|
418
|
-
}), /* @__PURE__ */
|
|
419
|
-
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,
|
|
420
536
|
children: t
|
|
421
537
|
})]
|
|
422
538
|
})
|
|
@@ -424,7 +540,7 @@ function ae({ value: t, onChange: r, labels: o, label: c, placeholder: l }) {
|
|
|
424
540
|
});
|
|
425
541
|
}
|
|
426
542
|
// src/components/MatrixContainer/matrixConfig.ts
|
|
427
|
-
var
|
|
543
|
+
var P = {
|
|
428
544
|
fontSize: 20,
|
|
429
545
|
columnDensity: .5,
|
|
430
546
|
trailLength: 10,
|
|
@@ -433,7 +549,7 @@ var A = {
|
|
|
433
549
|
headOpacity: 1,
|
|
434
550
|
trailOpacityMax: .8,
|
|
435
551
|
chars: Array.from("アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン0123456789")
|
|
436
|
-
},
|
|
552
|
+
}, ue = {
|
|
437
553
|
drizzle: {
|
|
438
554
|
columnDensity: .15,
|
|
439
555
|
tickMs: 250,
|
|
@@ -455,7 +571,7 @@ var A = {
|
|
|
455
571
|
headOpacity: .9,
|
|
456
572
|
trailOpacityMax: .8
|
|
457
573
|
}
|
|
458
|
-
},
|
|
574
|
+
}, de = {
|
|
459
575
|
dark: {
|
|
460
576
|
fontSize: 14,
|
|
461
577
|
columnDensity: 1,
|
|
@@ -472,15 +588,15 @@ var A = {
|
|
|
472
588
|
headOpacity: .42,
|
|
473
589
|
trailOpacityMax: .24
|
|
474
590
|
}
|
|
475
|
-
},
|
|
591
|
+
}, F = {
|
|
476
592
|
wrapper: "_wrapper_c93oc_1",
|
|
477
593
|
canvas: "_canvas_c93oc_6",
|
|
478
594
|
content: "_content_c93oc_16"
|
|
479
|
-
},
|
|
480
|
-
let p =
|
|
481
|
-
...
|
|
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,
|
|
482
598
|
...t
|
|
483
|
-
}), g =
|
|
599
|
+
}), g = c(null);
|
|
484
600
|
i(() => {
|
|
485
601
|
let e = p.current;
|
|
486
602
|
if (!e) return;
|
|
@@ -524,33 +640,33 @@ var A = {
|
|
|
524
640
|
};
|
|
525
641
|
}, []), i(() => {
|
|
526
642
|
let e = {
|
|
527
|
-
...
|
|
643
|
+
...P,
|
|
528
644
|
...t
|
|
529
645
|
}, n = e.fontSize !== h.current.fontSize || e.columnDensity !== h.current.columnDensity;
|
|
530
646
|
Object.assign(h.current, e), n ? g.current?.regrid(!0) : g.current?.redraw();
|
|
531
647
|
}, [t]), i(() => {
|
|
532
648
|
m.current = r, g.current?.syncMotion();
|
|
533
649
|
}, [r]);
|
|
534
|
-
let _ = [
|
|
535
|
-
return /* @__PURE__ */
|
|
536
|
-
ref:
|
|
650
|
+
let _ = [F.wrapper, a].filter(Boolean).join(" ");
|
|
651
|
+
return /* @__PURE__ */ f(l, {
|
|
652
|
+
ref: u,
|
|
537
653
|
className: _,
|
|
538
654
|
style: o,
|
|
539
|
-
id:
|
|
540
|
-
children: [/* @__PURE__ */
|
|
655
|
+
id: s,
|
|
656
|
+
children: [/* @__PURE__ */ d("canvas", {
|
|
541
657
|
ref: p,
|
|
542
|
-
className:
|
|
658
|
+
className: F.canvas,
|
|
543
659
|
"aria-hidden": "true",
|
|
544
660
|
style: n === 1 ? void 0 : { opacity: n }
|
|
545
|
-
}), /* @__PURE__ */
|
|
546
|
-
className:
|
|
661
|
+
}), /* @__PURE__ */ d("div", {
|
|
662
|
+
className: F.content,
|
|
547
663
|
children: e
|
|
548
664
|
})]
|
|
549
665
|
});
|
|
550
666
|
});
|
|
551
|
-
|
|
667
|
+
fe.displayName = "MatrixContainer";
|
|
552
668
|
// src/components/OrbitalDots/orbitalDotsConfig.ts
|
|
553
|
-
var
|
|
669
|
+
var pe = {
|
|
554
670
|
dotCount: 38,
|
|
555
671
|
maxLineDistance: 110,
|
|
556
672
|
dotMinRadius: 1.5,
|
|
@@ -571,13 +687,13 @@ var N = {
|
|
|
571
687
|
symbolFontScale: .035,
|
|
572
688
|
tickMs: 30,
|
|
573
689
|
color: "180,220,50"
|
|
574
|
-
},
|
|
690
|
+
}, I = {
|
|
575
691
|
wrapper: "_wrapper_c93oc_1",
|
|
576
692
|
canvas: "_canvas_c93oc_6",
|
|
577
693
|
content: "_content_c93oc_16"
|
|
578
|
-
},
|
|
579
|
-
let p =
|
|
580
|
-
...
|
|
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,
|
|
581
697
|
...t
|
|
582
698
|
});
|
|
583
699
|
i(() => {
|
|
@@ -671,39 +787,39 @@ var N = {
|
|
|
671
787
|
}, []), i(() => {
|
|
672
788
|
m.current = r, h.current?.();
|
|
673
789
|
}, [r]);
|
|
674
|
-
let _ = [
|
|
675
|
-
return /* @__PURE__ */
|
|
676
|
-
ref:
|
|
790
|
+
let _ = [I.wrapper, a].filter(Boolean).join(" ");
|
|
791
|
+
return /* @__PURE__ */ f(l, {
|
|
792
|
+
ref: u,
|
|
677
793
|
className: _,
|
|
678
794
|
style: o,
|
|
679
|
-
id:
|
|
680
|
-
children: [/* @__PURE__ */
|
|
795
|
+
id: s,
|
|
796
|
+
children: [/* @__PURE__ */ d("canvas", {
|
|
681
797
|
ref: p,
|
|
682
|
-
className:
|
|
798
|
+
className: I.canvas,
|
|
683
799
|
"aria-hidden": "true",
|
|
684
800
|
style: n === 1 ? void 0 : { opacity: n }
|
|
685
|
-
}), /* @__PURE__ */
|
|
686
|
-
className:
|
|
801
|
+
}), /* @__PURE__ */ d("div", {
|
|
802
|
+
className: I.content,
|
|
687
803
|
children: e
|
|
688
804
|
})]
|
|
689
805
|
});
|
|
690
806
|
});
|
|
691
|
-
|
|
692
|
-
var
|
|
807
|
+
me.displayName = "OrbitalDots";
|
|
808
|
+
var L = {
|
|
693
809
|
section: "_section_1tryt_1",
|
|
694
810
|
noPadding: "_noPadding_1tryt_11",
|
|
695
811
|
dark: "_dark_1tryt_15",
|
|
696
812
|
elevated: "_elevated_1tryt_19"
|
|
697
813
|
};
|
|
698
814
|
// src/components/Section/Section.tsx
|
|
699
|
-
function
|
|
815
|
+
function he({ children: e, variant: t = "dark", noPadding: n, className: r, id: i, "aria-labelledby": a, "aria-label": o }) {
|
|
700
816
|
let s = [
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
n &&
|
|
817
|
+
L.section,
|
|
818
|
+
L[t],
|
|
819
|
+
n && L.noPadding,
|
|
704
820
|
r
|
|
705
821
|
].filter(Boolean).join(" ");
|
|
706
|
-
return /* @__PURE__ */
|
|
822
|
+
return /* @__PURE__ */ d("section", {
|
|
707
823
|
className: s,
|
|
708
824
|
id: i,
|
|
709
825
|
"aria-labelledby": a,
|
|
@@ -724,49 +840,49 @@ var R = {
|
|
|
724
840
|
heroSubtitle: "_heroSubtitle_1b7du_137"
|
|
725
841
|
};
|
|
726
842
|
// src/components/PageHero/PageHero.tsx
|
|
727
|
-
function
|
|
728
|
-
return /* @__PURE__ */
|
|
843
|
+
function ge({ eyebrow: e, title: t, subtitle: n, count: r, countLabel: i }) {
|
|
844
|
+
return /* @__PURE__ */ d(he, {
|
|
729
845
|
noPadding: !0,
|
|
730
|
-
children: /* @__PURE__ */
|
|
846
|
+
children: /* @__PURE__ */ d("div", {
|
|
731
847
|
className: R.hero,
|
|
732
|
-
children: /* @__PURE__ */
|
|
848
|
+
children: /* @__PURE__ */ d(T, { children: /* @__PURE__ */ f("div", {
|
|
733
849
|
className: R.heroInner,
|
|
734
850
|
children: [
|
|
735
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ f("div", {
|
|
736
852
|
className: R.heroCount,
|
|
737
|
-
children: [/* @__PURE__ */
|
|
853
|
+
children: [/* @__PURE__ */ d("span", {
|
|
738
854
|
className: R.countNum,
|
|
739
855
|
children: r
|
|
740
|
-
}), /* @__PURE__ */
|
|
856
|
+
}), /* @__PURE__ */ d("span", {
|
|
741
857
|
className: R.countLabel,
|
|
742
858
|
children: i
|
|
743
859
|
})]
|
|
744
860
|
}),
|
|
745
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ d("span", {
|
|
746
862
|
className: R.heroEyebrow,
|
|
747
863
|
children: e
|
|
748
864
|
}),
|
|
749
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ d("h1", {
|
|
750
866
|
className: R.heroTitle,
|
|
751
867
|
children: t
|
|
752
868
|
}),
|
|
753
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ d("p", {
|
|
754
870
|
className: R.heroSubtitle,
|
|
755
871
|
children: n
|
|
756
872
|
}),
|
|
757
|
-
/* @__PURE__ */
|
|
873
|
+
/* @__PURE__ */ d("div", { className: R.heroLine })
|
|
758
874
|
]
|
|
759
875
|
}) })
|
|
760
876
|
})
|
|
761
877
|
});
|
|
762
878
|
}
|
|
763
|
-
var
|
|
879
|
+
var _e = {
|
|
764
880
|
wrapper: "_wrapper_1rdu6_1",
|
|
765
881
|
visible: "_visible_1rdu6_6"
|
|
766
882
|
};
|
|
767
883
|
// src/components/PageTransition/PageTransition.tsx
|
|
768
|
-
function
|
|
769
|
-
let [r, a] =
|
|
884
|
+
function ve({ children: e, transitionKey: t, appear: n = !0 }) {
|
|
885
|
+
let [r, a] = l(!n), [o, s] = l(t);
|
|
770
886
|
return t !== o && (s(t), a(!1)), i(() => {
|
|
771
887
|
if (r) return;
|
|
772
888
|
let e, t = requestAnimationFrame(() => {
|
|
@@ -775,40 +891,93 @@ function B({ children: e, transitionKey: t, appear: n = !0 }) {
|
|
|
775
891
|
return () => {
|
|
776
892
|
cancelAnimationFrame(t), cancelAnimationFrame(e);
|
|
777
893
|
};
|
|
778
|
-
}, [r]), /* @__PURE__ */
|
|
779
|
-
className: `${
|
|
894
|
+
}, [r]), /* @__PURE__ */ d("div", {
|
|
895
|
+
className: `${_e.wrapper} ${r ? _e.visible : ""}`,
|
|
780
896
|
children: e
|
|
781
897
|
});
|
|
782
898
|
}
|
|
783
|
-
var
|
|
784
|
-
|
|
785
|
-
label: "
|
|
786
|
-
|
|
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"
|
|
787
907
|
};
|
|
788
|
-
// src/components/
|
|
789
|
-
function
|
|
790
|
-
let
|
|
791
|
-
return /* @__PURE__ */
|
|
792
|
-
className:
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
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,
|
|
796
916
|
children: e
|
|
797
|
-
}), /* @__PURE__ */ d("
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
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))
|
|
808
934
|
})]
|
|
809
935
|
});
|
|
810
936
|
}
|
|
811
|
-
var
|
|
937
|
+
var B = {
|
|
938
|
+
wrapper: "_wrapper_19o1i_1",
|
|
939
|
+
label: "_label_19o1i_7",
|
|
940
|
+
hint: "_hint_19o1i_15",
|
|
941
|
+
select: "_select_19o1i_21",
|
|
942
|
+
compact: "_compact_19o1i_50"
|
|
943
|
+
};
|
|
944
|
+
// src/components/Select/Select.tsx
|
|
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", {
|
|
948
|
+
className: [
|
|
949
|
+
B.wrapper,
|
|
950
|
+
i && B.compact,
|
|
951
|
+
o
|
|
952
|
+
].filter(Boolean).join(" "),
|
|
953
|
+
children: [
|
|
954
|
+
e && /* @__PURE__ */ d("label", {
|
|
955
|
+
className: B.label,
|
|
956
|
+
htmlFor: p,
|
|
957
|
+
children: e
|
|
958
|
+
}),
|
|
959
|
+
/* @__PURE__ */ f("select", {
|
|
960
|
+
id: p,
|
|
961
|
+
className: B.select,
|
|
962
|
+
"aria-describedby": h,
|
|
963
|
+
...l,
|
|
964
|
+
children: [n !== void 0 && /* @__PURE__ */ d("option", {
|
|
965
|
+
value: "",
|
|
966
|
+
children: n
|
|
967
|
+
}), r.map((e) => /* @__PURE__ */ d("option", {
|
|
968
|
+
value: e.value,
|
|
969
|
+
children: e.label
|
|
970
|
+
}, e.value))]
|
|
971
|
+
}),
|
|
972
|
+
t && /* @__PURE__ */ d("span", {
|
|
973
|
+
id: m,
|
|
974
|
+
className: B.hint,
|
|
975
|
+
children: t
|
|
976
|
+
})
|
|
977
|
+
]
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
var V = {
|
|
812
981
|
frame: "_frame_btbpz_1",
|
|
813
982
|
shimmer: "_shimmer_btbpz_7",
|
|
814
983
|
sweep: "_sweep_btbpz_1",
|
|
@@ -817,26 +986,33 @@ var U = {
|
|
|
817
986
|
loaded: "_loaded_btbpz_38"
|
|
818
987
|
};
|
|
819
988
|
// src/components/ShimmerImage/ShimmerImage.tsx
|
|
820
|
-
function
|
|
821
|
-
let [
|
|
822
|
-
|
|
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);
|
|
991
|
+
p !== null && p !== e && m(null);
|
|
992
|
+
let h = (t) => {
|
|
993
|
+
t?.complete && (t.naturalWidth > 0 ? s(e) : t.decode?.().then(() => s(e), () => {
|
|
994
|
+
n !== void 0 && m(e);
|
|
995
|
+
}));
|
|
823
996
|
};
|
|
824
|
-
return /* @__PURE__ */ d("div", {
|
|
825
|
-
className: `${
|
|
826
|
-
children: [/* @__PURE__ */
|
|
827
|
-
className:
|
|
828
|
-
children: /* @__PURE__ */
|
|
829
|
-
...
|
|
830
|
-
ref:
|
|
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", {
|
|
1002
|
+
...a,
|
|
1003
|
+
ref: h,
|
|
831
1004
|
src: e,
|
|
832
1005
|
alt: t,
|
|
833
|
-
className: [
|
|
834
|
-
onLoad: () =>
|
|
1006
|
+
className: [V.image, r].filter(Boolean).join(" "),
|
|
1007
|
+
onLoad: () => s(e),
|
|
1008
|
+
onError: (t) => {
|
|
1009
|
+
m(e), i?.(t);
|
|
1010
|
+
}
|
|
835
1011
|
})
|
|
836
1012
|
})]
|
|
837
1013
|
});
|
|
838
1014
|
}
|
|
839
|
-
var
|
|
1015
|
+
var H = {
|
|
840
1016
|
sideNav: "_sideNav_1ljaj_1",
|
|
841
1017
|
list: "_list_1ljaj_10",
|
|
842
1018
|
group: "_group_1ljaj_16",
|
|
@@ -845,11 +1021,11 @@ var G = {
|
|
|
845
1021
|
active: "_active_1ljaj_64",
|
|
846
1022
|
icon: "_icon_1ljaj_76",
|
|
847
1023
|
label: "_label_1ljaj_81"
|
|
848
|
-
},
|
|
849
|
-
function
|
|
1024
|
+
}, U = 24;
|
|
1025
|
+
function Se(e) {
|
|
850
1026
|
return "items" in e;
|
|
851
1027
|
}
|
|
852
|
-
function
|
|
1028
|
+
function Ce(e) {
|
|
853
1029
|
let { body: t, documentElement: n } = e.ownerDocument;
|
|
854
1030
|
for (let r = e.parentElement; r; r = r.parentElement) {
|
|
855
1031
|
if (r === t || r === n) return null;
|
|
@@ -858,56 +1034,56 @@ function ue(e) {
|
|
|
858
1034
|
}
|
|
859
1035
|
return null;
|
|
860
1036
|
}
|
|
861
|
-
function
|
|
1037
|
+
function we(e, t) {
|
|
862
1038
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect().top + t.clientTop, i = n.top - r + t.scrollTop, a = i + n.height;
|
|
863
|
-
i -
|
|
1039
|
+
i - U < t.scrollTop ? t.scrollTo({ top: i - U }) : a + U > t.scrollTop + t.clientHeight && t.scrollTo({ top: a + U - t.clientHeight });
|
|
864
1040
|
}
|
|
865
|
-
function
|
|
866
|
-
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);
|
|
867
1043
|
i(() => {
|
|
868
1044
|
let e = m.current;
|
|
869
1045
|
if (!o || !e) return;
|
|
870
|
-
let t = e.querySelector("[aria-current]"), n =
|
|
871
|
-
t && n &&
|
|
1046
|
+
let t = e.querySelector("[aria-current]"), n = Ce(e);
|
|
1047
|
+
t && n && we(t, n);
|
|
872
1048
|
}, [n, o]);
|
|
873
1049
|
let h = (e) => {
|
|
874
1050
|
let t = e.href === n;
|
|
875
|
-
return /* @__PURE__ */
|
|
1051
|
+
return /* @__PURE__ */ d("li", { children: /* @__PURE__ */ f(s, {
|
|
876
1052
|
href: e.href,
|
|
877
|
-
className: [
|
|
1053
|
+
className: [H.link, t && H.active].filter(Boolean).join(" "),
|
|
878
1054
|
"aria-current": t ? r : void 0,
|
|
879
1055
|
onClick: l ? (t) => l(e, t) : void 0,
|
|
880
|
-
children: [e.icon && /* @__PURE__ */
|
|
881
|
-
className:
|
|
1056
|
+
children: [e.icon && /* @__PURE__ */ d("span", {
|
|
1057
|
+
className: H.icon,
|
|
882
1058
|
"aria-hidden": "true",
|
|
883
1059
|
children: e.icon
|
|
884
|
-
}), /* @__PURE__ */
|
|
885
|
-
className:
|
|
1060
|
+
}), /* @__PURE__ */ d("span", {
|
|
1061
|
+
className: H.label,
|
|
886
1062
|
children: e.label
|
|
887
1063
|
})]
|
|
888
1064
|
}) }, e.href);
|
|
889
1065
|
};
|
|
890
|
-
return /* @__PURE__ */
|
|
1066
|
+
return /* @__PURE__ */ d("nav", {
|
|
891
1067
|
ref: m,
|
|
892
|
-
className: [
|
|
1068
|
+
className: [H.sideNav, u].filter(Boolean).join(" "),
|
|
893
1069
|
"aria-label": e,
|
|
894
|
-
children: /* @__PURE__ */
|
|
895
|
-
className:
|
|
1070
|
+
children: /* @__PURE__ */ d("ul", {
|
|
1071
|
+
className: H.list,
|
|
896
1072
|
children: t.map((e, t) => {
|
|
897
|
-
if (!
|
|
1073
|
+
if (!Se(e)) return h(e);
|
|
898
1074
|
let n = `${p}-group-${t}`;
|
|
899
|
-
return /* @__PURE__ */
|
|
900
|
-
className:
|
|
901
|
-
children: [/* @__PURE__ */
|
|
1075
|
+
return /* @__PURE__ */ f("li", {
|
|
1076
|
+
className: H.group,
|
|
1077
|
+
children: [/* @__PURE__ */ f("span", {
|
|
902
1078
|
id: n,
|
|
903
|
-
className:
|
|
904
|
-
children: [e.icon && /* @__PURE__ */
|
|
905
|
-
className:
|
|
1079
|
+
className: H.groupTitle,
|
|
1080
|
+
children: [e.icon && /* @__PURE__ */ d("span", {
|
|
1081
|
+
className: H.icon,
|
|
906
1082
|
"aria-hidden": "true",
|
|
907
1083
|
children: e.icon
|
|
908
1084
|
}), e.title]
|
|
909
|
-
}), /* @__PURE__ */
|
|
910
|
-
className:
|
|
1085
|
+
}), /* @__PURE__ */ d("ul", {
|
|
1086
|
+
className: H.list,
|
|
911
1087
|
"aria-labelledby": n,
|
|
912
1088
|
children: e.items.map(h)
|
|
913
1089
|
})]
|
|
@@ -916,6 +1092,176 @@ function fe({ label: e, items: t, activeHref: n, ariaCurrent: r = "page", keepAc
|
|
|
916
1092
|
})
|
|
917
1093
|
});
|
|
918
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
|
+
}
|
|
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
|
+
}
|
|
919
1265
|
var q = {
|
|
920
1266
|
tag: "_tag_1tw86_1",
|
|
921
1267
|
clickable: "_clickable_1tw86_20",
|
|
@@ -931,15 +1277,15 @@ function J({ label: e, active: t, onClick: n, onRemove: r, removeLabel: i }) {
|
|
|
931
1277
|
t && q.active,
|
|
932
1278
|
r && q.removable
|
|
933
1279
|
].filter(Boolean).join(" ");
|
|
934
|
-
return n ? /* @__PURE__ */
|
|
1280
|
+
return n ? /* @__PURE__ */ d("button", {
|
|
935
1281
|
type: "button",
|
|
936
1282
|
className: a,
|
|
937
1283
|
onClick: n,
|
|
938
1284
|
"aria-pressed": !!t,
|
|
939
1285
|
children: e
|
|
940
|
-
}) : /* @__PURE__ */
|
|
1286
|
+
}) : /* @__PURE__ */ f("span", {
|
|
941
1287
|
className: a,
|
|
942
|
-
children: [e, r && /* @__PURE__ */
|
|
1288
|
+
children: [e, r && /* @__PURE__ */ d("button", {
|
|
943
1289
|
type: "button",
|
|
944
1290
|
className: q.removeBtn,
|
|
945
1291
|
onClick: r,
|
|
@@ -948,18 +1294,18 @@ function J({ label: e, active: t, onClick: n, onRemove: r, removeLabel: i }) {
|
|
|
948
1294
|
})]
|
|
949
1295
|
});
|
|
950
1296
|
}
|
|
951
|
-
var
|
|
1297
|
+
var Ae = { tagFilter: "_tagFilter_1mu0a_1" };
|
|
952
1298
|
// src/components/TagFilter/TagFilter.tsx
|
|
953
|
-
function
|
|
954
|
-
return /* @__PURE__ */
|
|
955
|
-
className:
|
|
1299
|
+
function je({ tags: e, activeTag: t, onTagClick: n, allLabel: r, groupLabel: i }) {
|
|
1300
|
+
return /* @__PURE__ */ f("div", {
|
|
1301
|
+
className: Ae.tagFilter,
|
|
956
1302
|
role: i ? "group" : void 0,
|
|
957
1303
|
"aria-label": i,
|
|
958
|
-
children: [/* @__PURE__ */
|
|
1304
|
+
children: [/* @__PURE__ */ d(J, {
|
|
959
1305
|
label: r,
|
|
960
1306
|
active: t === null,
|
|
961
1307
|
onClick: () => n(null)
|
|
962
|
-
}), e.map((e) => /* @__PURE__ */
|
|
1308
|
+
}), e.map((e) => /* @__PURE__ */ d(J, {
|
|
963
1309
|
label: e,
|
|
964
1310
|
active: t === e,
|
|
965
1311
|
onClick: () => n(e)
|
|
@@ -967,6 +1313,31 @@ function me({ tags: e, activeTag: t, onTagClick: n, allLabel: r, groupLabel: i }
|
|
|
967
1313
|
});
|
|
968
1314
|
}
|
|
969
1315
|
var Y = {
|
|
1316
|
+
tagGroup: "_tagGroup_sens0_1",
|
|
1317
|
+
label: "_label_sens0_9",
|
|
1318
|
+
tags: "_tags_sens0_20"
|
|
1319
|
+
};
|
|
1320
|
+
// src/components/TagGroup/TagGroup.tsx
|
|
1321
|
+
function Me(e) {
|
|
1322
|
+
let { label: t, options: n, className: r } = e, i = (t) => e.selection === "single" ? e.selected === t : e.selected.includes(t), a = (t) => {
|
|
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]);
|
|
1324
|
+
};
|
|
1325
|
+
return /* @__PURE__ */ f("fieldset", {
|
|
1326
|
+
className: [Y.tagGroup, r].filter(Boolean).join(" "),
|
|
1327
|
+
children: [/* @__PURE__ */ d("legend", {
|
|
1328
|
+
className: Y.label,
|
|
1329
|
+
children: t
|
|
1330
|
+
}), /* @__PURE__ */ d("div", {
|
|
1331
|
+
className: Y.tags,
|
|
1332
|
+
children: n.map((e) => /* @__PURE__ */ d(J, {
|
|
1333
|
+
label: e.label,
|
|
1334
|
+
active: i(e.value),
|
|
1335
|
+
onClick: () => a(e.value)
|
|
1336
|
+
}, e.value))
|
|
1337
|
+
})]
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
var X = {
|
|
970
1341
|
text: "_text_dq0aw_1",
|
|
971
1342
|
body: "_body_dq0aw_13",
|
|
972
1343
|
display: "_display_dq0aw_17",
|
|
@@ -1003,84 +1374,110 @@ var Y = {
|
|
|
1003
1374
|
clamp: "_clamp_dq0aw_156"
|
|
1004
1375
|
};
|
|
1005
1376
|
// src/components/Text/Text.tsx
|
|
1006
|
-
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 }) {
|
|
1007
1378
|
let p = typeof s == "number" && s >= 1 ? Math.floor(s) : void 0, m = [
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
n &&
|
|
1011
|
-
r &&
|
|
1012
|
-
i &&
|
|
1013
|
-
a &&
|
|
1014
|
-
o &&
|
|
1015
|
-
s === !0 &&
|
|
1016
|
-
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,
|
|
1017
1388
|
c
|
|
1018
1389
|
].filter(Boolean).join(" "), h = p === void 0 ? l : {
|
|
1019
1390
|
...l,
|
|
1020
1391
|
"--text-lines": p
|
|
1021
1392
|
};
|
|
1022
|
-
return /* @__PURE__ */
|
|
1393
|
+
return /* @__PURE__ */ d(e, {
|
|
1023
1394
|
className: m,
|
|
1024
1395
|
style: h,
|
|
1025
1396
|
...f,
|
|
1026
|
-
children:
|
|
1397
|
+
children: u
|
|
1027
1398
|
});
|
|
1028
1399
|
}
|
|
1029
|
-
var
|
|
1030
|
-
wrapper: "
|
|
1031
|
-
label: "
|
|
1032
|
-
|
|
1400
|
+
var Z = {
|
|
1401
|
+
wrapper: "_wrapper_m6u21_1",
|
|
1402
|
+
label: "_label_m6u21_7",
|
|
1403
|
+
hint: "_hint_m6u21_15",
|
|
1404
|
+
textarea: "_textarea_m6u21_21"
|
|
1033
1405
|
};
|
|
1034
1406
|
// src/components/TextArea/TextArea.tsx
|
|
1035
|
-
function
|
|
1036
|
-
let
|
|
1037
|
-
return /* @__PURE__ */
|
|
1038
|
-
className: `${
|
|
1039
|
-
children: [
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
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 || ""}`,
|
|
1411
|
+
children: [
|
|
1412
|
+
e && /* @__PURE__ */ d("label", {
|
|
1413
|
+
className: Z.label,
|
|
1414
|
+
htmlFor: c,
|
|
1415
|
+
children: e
|
|
1416
|
+
}),
|
|
1417
|
+
/* @__PURE__ */ d("textarea", {
|
|
1418
|
+
id: c,
|
|
1419
|
+
className: Z.textarea,
|
|
1420
|
+
"aria-describedby": u,
|
|
1421
|
+
...o
|
|
1422
|
+
}),
|
|
1423
|
+
t && /* @__PURE__ */ d("span", {
|
|
1424
|
+
id: l,
|
|
1425
|
+
className: Z.hint,
|
|
1426
|
+
children: t
|
|
1427
|
+
})
|
|
1428
|
+
]
|
|
1048
1429
|
});
|
|
1049
1430
|
}
|
|
1050
|
-
var
|
|
1051
|
-
wrapper: "
|
|
1052
|
-
label: "
|
|
1053
|
-
input: "
|
|
1054
|
-
error: "
|
|
1055
|
-
|
|
1431
|
+
var Q = {
|
|
1432
|
+
wrapper: "_wrapper_1y6l7_1",
|
|
1433
|
+
label: "_label_1y6l7_7",
|
|
1434
|
+
input: "_input_1y6l7_15",
|
|
1435
|
+
error: "_error_1y6l7_37",
|
|
1436
|
+
hint: "_hint_1y6l7_41",
|
|
1437
|
+
compact: "_compact_1y6l7_47",
|
|
1438
|
+
errorMessage: "_errorMessage_1y6l7_51"
|
|
1056
1439
|
};
|
|
1057
1440
|
// src/components/TextInput/TextInput.tsx
|
|
1058
|
-
function
|
|
1059
|
-
let
|
|
1060
|
-
|
|
1061
|
-
|
|
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 = [
|
|
1443
|
+
s,
|
|
1444
|
+
t && m,
|
|
1445
|
+
n && h
|
|
1446
|
+
].filter(Boolean).join(" ") || void 0;
|
|
1447
|
+
return /* @__PURE__ */ f("div", {
|
|
1448
|
+
className: [
|
|
1449
|
+
Q.wrapper,
|
|
1450
|
+
r && Q.compact,
|
|
1451
|
+
n && Q.error,
|
|
1452
|
+
i
|
|
1453
|
+
].filter(Boolean).join(" "),
|
|
1062
1454
|
children: [
|
|
1063
|
-
e && /* @__PURE__ */
|
|
1064
|
-
className:
|
|
1065
|
-
htmlFor:
|
|
1455
|
+
e && /* @__PURE__ */ d("label", {
|
|
1456
|
+
className: Q.label,
|
|
1457
|
+
htmlFor: p,
|
|
1066
1458
|
children: e
|
|
1067
1459
|
}),
|
|
1068
|
-
/* @__PURE__ */
|
|
1069
|
-
id:
|
|
1070
|
-
className:
|
|
1071
|
-
"aria-describedby":
|
|
1072
|
-
"aria-invalid":
|
|
1073
|
-
...
|
|
1460
|
+
/* @__PURE__ */ d("input", {
|
|
1461
|
+
id: p,
|
|
1462
|
+
className: Q.input,
|
|
1463
|
+
"aria-describedby": g,
|
|
1464
|
+
"aria-invalid": n ? !0 : c,
|
|
1465
|
+
...l
|
|
1074
1466
|
}),
|
|
1075
|
-
t && /* @__PURE__ */
|
|
1076
|
-
id:
|
|
1077
|
-
className:
|
|
1467
|
+
t && /* @__PURE__ */ d("span", {
|
|
1468
|
+
id: m,
|
|
1469
|
+
className: Q.hint,
|
|
1078
1470
|
children: t
|
|
1471
|
+
}),
|
|
1472
|
+
n && /* @__PURE__ */ d("span", {
|
|
1473
|
+
id: h,
|
|
1474
|
+
className: Q.errorMessage,
|
|
1475
|
+
children: n
|
|
1079
1476
|
})
|
|
1080
1477
|
]
|
|
1081
1478
|
});
|
|
1082
1479
|
}
|
|
1083
|
-
var
|
|
1480
|
+
var $ = {
|
|
1084
1481
|
container: "_container_m3x4i_1",
|
|
1085
1482
|
toast: "_toast_m3x4i_14",
|
|
1086
1483
|
slideIn: "_slideIn_m3x4i_1",
|
|
@@ -1098,78 +1495,78 @@ var Q = {
|
|
|
1098
1495
|
progress: "_progress_m3x4i_153",
|
|
1099
1496
|
toastInner: "_toastInner_m3x4i_181",
|
|
1100
1497
|
toastBody: "_toastBody_m3x4i_187"
|
|
1101
|
-
},
|
|
1498
|
+
}, Ie = 220, Le = {
|
|
1102
1499
|
success: "✓",
|
|
1103
1500
|
error: "✕",
|
|
1104
1501
|
warning: "⚠",
|
|
1105
1502
|
info: "ℹ"
|
|
1106
|
-
},
|
|
1107
|
-
function
|
|
1108
|
-
return r(
|
|
1503
|
+
}, Re = t({ addToast: () => {} });
|
|
1504
|
+
function ze() {
|
|
1505
|
+
return r(Re);
|
|
1109
1506
|
}
|
|
1110
|
-
function
|
|
1111
|
-
let [r, a] =
|
|
1507
|
+
function Be({ dismissLabel: e, children: t }) {
|
|
1508
|
+
let [r, a] = l([]), o = c(0), u = c(/* @__PURE__ */ new Map());
|
|
1112
1509
|
i(() => {
|
|
1113
|
-
let e =
|
|
1510
|
+
let e = u.current;
|
|
1114
1511
|
return () => e.forEach((e) => clearTimeout(e));
|
|
1115
1512
|
}, []);
|
|
1116
1513
|
let p = n((e) => {
|
|
1117
|
-
clearTimeout(
|
|
1514
|
+
clearTimeout(u.current.get(e)), u.current.delete(e), a((t) => t.map((t) => t.id === e ? {
|
|
1118
1515
|
...t,
|
|
1119
1516
|
isExiting: !0
|
|
1120
1517
|
} : t)), setTimeout(() => {
|
|
1121
1518
|
a((t) => t.filter((t) => t.id !== e));
|
|
1122
|
-
},
|
|
1519
|
+
}, Ie);
|
|
1123
1520
|
}, []), m = n((e, t = "success", n = 4e3) => {
|
|
1124
|
-
let r = String(
|
|
1521
|
+
let r = String(o.current++);
|
|
1125
1522
|
a((i) => [...i, {
|
|
1126
1523
|
id: r,
|
|
1127
1524
|
message: e,
|
|
1128
1525
|
variant: t,
|
|
1129
1526
|
duration: n,
|
|
1130
1527
|
isExiting: !1
|
|
1131
|
-
}]),
|
|
1132
|
-
}, [p]), h =
|
|
1133
|
-
return /* @__PURE__ */
|
|
1528
|
+
}]), u.current.set(r, setTimeout(() => p(r), n));
|
|
1529
|
+
}, [p]), h = s(() => ({ addToast: m }), [m]);
|
|
1530
|
+
return /* @__PURE__ */ f(Re.Provider, {
|
|
1134
1531
|
value: h,
|
|
1135
|
-
children: [t, /* @__PURE__ */
|
|
1532
|
+
children: [t, /* @__PURE__ */ d(Ve, {
|
|
1136
1533
|
toasts: r,
|
|
1137
1534
|
onDismiss: p,
|
|
1138
1535
|
dismissLabel: e
|
|
1139
1536
|
})]
|
|
1140
1537
|
});
|
|
1141
1538
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return /* @__PURE__ */
|
|
1144
|
-
className:
|
|
1539
|
+
function Ve({ toasts: e, onDismiss: t, dismissLabel: n }) {
|
|
1540
|
+
return /* @__PURE__ */ d("div", {
|
|
1541
|
+
className: $.container,
|
|
1145
1542
|
role: "status",
|
|
1146
1543
|
"aria-atomic": "false",
|
|
1147
|
-
children: e.map((e) => /* @__PURE__ */
|
|
1148
|
-
className: `${
|
|
1544
|
+
children: e.map((e) => /* @__PURE__ */ f("div", {
|
|
1545
|
+
className: `${$.toast} ${$[e.variant]} ${e.isExiting ? $.exiting : ""}`,
|
|
1149
1546
|
children: [
|
|
1150
|
-
/* @__PURE__ */
|
|
1151
|
-
className:
|
|
1152
|
-
children: /* @__PURE__ */
|
|
1153
|
-
className:
|
|
1154
|
-
children: [/* @__PURE__ */
|
|
1155
|
-
className:
|
|
1547
|
+
/* @__PURE__ */ d("div", {
|
|
1548
|
+
className: $.toastInner,
|
|
1549
|
+
children: /* @__PURE__ */ f("div", {
|
|
1550
|
+
className: $.toastBody,
|
|
1551
|
+
children: [/* @__PURE__ */ d("span", {
|
|
1552
|
+
className: $.icon,
|
|
1156
1553
|
"aria-hidden": "true",
|
|
1157
|
-
children:
|
|
1158
|
-
}), /* @__PURE__ */
|
|
1159
|
-
className:
|
|
1554
|
+
children: Le[e.variant]
|
|
1555
|
+
}), /* @__PURE__ */ d("span", {
|
|
1556
|
+
className: $.message,
|
|
1160
1557
|
children: e.message
|
|
1161
1558
|
})]
|
|
1162
1559
|
})
|
|
1163
1560
|
}),
|
|
1164
|
-
/* @__PURE__ */
|
|
1561
|
+
/* @__PURE__ */ d("button", {
|
|
1165
1562
|
type: "button",
|
|
1166
|
-
className:
|
|
1563
|
+
className: $.close,
|
|
1167
1564
|
onClick: () => t(e.id),
|
|
1168
1565
|
"aria-label": n,
|
|
1169
1566
|
children: "×"
|
|
1170
1567
|
}),
|
|
1171
|
-
/* @__PURE__ */
|
|
1172
|
-
className:
|
|
1568
|
+
/* @__PURE__ */ d("div", {
|
|
1569
|
+
className: $.progress,
|
|
1173
1570
|
style: { animationDuration: `${e.duration}ms` }
|
|
1174
1571
|
})
|
|
1175
1572
|
]
|
|
@@ -1177,8 +1574,8 @@ function Se({ toasts: e, onDismiss: t, dismissLabel: n }) {
|
|
|
1177
1574
|
});
|
|
1178
1575
|
}
|
|
1179
1576
|
// src/hooks/useDragReorder.ts
|
|
1180
|
-
function
|
|
1181
|
-
let [n, r] =
|
|
1577
|
+
function He(e, t) {
|
|
1578
|
+
let [n, r] = l(null), [i, a] = l(null), o = () => {
|
|
1182
1579
|
r(null), a(null);
|
|
1183
1580
|
}, s = (n, r) => {
|
|
1184
1581
|
let i = (t) => t >= 0 && t < e.length;
|
|
@@ -1206,15 +1603,15 @@ function Ce(e, t) {
|
|
|
1206
1603
|
};
|
|
1207
1604
|
}
|
|
1208
1605
|
// src/hooks/useRotatingMessage.ts
|
|
1209
|
-
var
|
|
1210
|
-
function
|
|
1211
|
-
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);
|
|
1212
1609
|
return i(() => {
|
|
1213
1610
|
if (e.length <= 1 || n) return;
|
|
1214
1611
|
let r, i = setInterval(() => {
|
|
1215
1612
|
s(!0), r = setTimeout(() => {
|
|
1216
1613
|
r = void 0, a((t) => (t + 1) % e.length), s(!1);
|
|
1217
|
-
},
|
|
1614
|
+
}, Ue);
|
|
1218
1615
|
}, t);
|
|
1219
1616
|
return () => {
|
|
1220
1617
|
clearInterval(i), r !== void 0 && (clearTimeout(r), s(!1));
|
|
@@ -1228,4 +1625,4 @@ function Te(e, t = 1e4, n = !1) {
|
|
|
1228
1625
|
isFading: o
|
|
1229
1626
|
};
|
|
1230
1627
|
}
|
|
1231
|
-
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 };
|