rl-react-components 0.0.0-stage → 2.4.1
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/LICENSE +21 -0
- package/README.md +90 -2
- package/dist/components/Button/Button.d.ts +8 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +28 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Container/Container.d.ts +12 -0
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/Markdown/Markdown.d.ts +11 -0
- package/dist/components/Markdown/index.d.ts +2 -0
- package/dist/components/MarkdownEditor/MarkdownEditor.d.ts +24 -0
- package/dist/components/MarkdownEditor/index.d.ts +2 -0
- package/dist/components/MatrixContainer/MatrixContainer.d.ts +54 -0
- package/dist/components/MatrixContainer/index.d.ts +4 -0
- package/dist/components/MatrixContainer/matrixConfig.d.ts +49 -0
- package/dist/components/OrbitalDots/OrbitalDots.d.ts +52 -0
- package/dist/components/OrbitalDots/index.d.ts +4 -0
- package/dist/components/OrbitalDots/orbitalDotsConfig.d.ts +54 -0
- package/dist/components/PageHero/PageHero.d.ts +10 -0
- package/dist/components/PageHero/index.d.ts +2 -0
- package/dist/components/PageTransition/PageTransition.d.ts +17 -0
- package/dist/components/PageTransition/index.d.ts +2 -0
- package/dist/components/Section/Section.d.ts +13 -0
- package/dist/components/Section/index.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +11 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/ShimmerImage/ShimmerImage.d.ts +11 -0
- package/dist/components/ShimmerImage/index.d.ts +2 -0
- package/dist/components/SideNav/SideNav.d.ts +43 -0
- package/dist/components/SideNav/index.d.ts +2 -0
- package/dist/components/Tag/Tag.d.ts +24 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/TagFilter/TagFilter.d.ts +10 -0
- package/dist/components/TagFilter/index.d.ts +2 -0
- package/dist/components/Text/Text.d.ts +37 -0
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/TextArea/TextArea.d.ts +5 -0
- package/dist/components/TextArea/index.d.ts +2 -0
- package/dist/components/TextInput/TextInput.d.ts +7 -0
- package/dist/components/TextInput/index.d.ts +2 -0
- package/dist/components/Toast/ToastProvider.d.ts +13 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/hooks/useDragReorder.d.ts +20 -0
- package/dist/hooks/useRotatingMessage.d.ts +10 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +1142 -0
- package/dist/styles.css +2 -0
- package/package.json +99 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,1142 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e, { createContext as t, useCallback as n, useContext as r, useEffect as i, useId as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
3
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
4
|
+
import d from "react-markdown";
|
|
5
|
+
import f from "remark-gfm";
|
|
6
|
+
var p = {
|
|
7
|
+
button: "_button_oxaxw_1",
|
|
8
|
+
content: "_content_oxaxw_37",
|
|
9
|
+
primary: "_primary_oxaxw_45",
|
|
10
|
+
secondary: "_secondary_oxaxw_56",
|
|
11
|
+
ghost: "_ghost_oxaxw_66",
|
|
12
|
+
danger: "_danger_oxaxw_76",
|
|
13
|
+
small: "_small_oxaxw_86",
|
|
14
|
+
large: "_large_oxaxw_91",
|
|
15
|
+
fullWidth: "_fullWidth_oxaxw_96"
|
|
16
|
+
};
|
|
17
|
+
// src/components/Button/Button.tsx
|
|
18
|
+
function m({ variant: e = "primary", size: t = "medium", fullWidth: n = !1, children: r, className: i, ...a }) {
|
|
19
|
+
let o = [
|
|
20
|
+
p.button,
|
|
21
|
+
p[e],
|
|
22
|
+
t !== "medium" && p[t],
|
|
23
|
+
n && p.fullWidth,
|
|
24
|
+
i
|
|
25
|
+
].filter(Boolean).join(" ");
|
|
26
|
+
return /* @__PURE__ */ l("button", {
|
|
27
|
+
className: o,
|
|
28
|
+
...a,
|
|
29
|
+
children: /* @__PURE__ */ l("span", {
|
|
30
|
+
className: p.content,
|
|
31
|
+
children: r
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
var h = {
|
|
36
|
+
card: "_card_vtakk_1",
|
|
37
|
+
link: "_link_vtakk_21",
|
|
38
|
+
arrow: "_arrow_vtakk_41",
|
|
39
|
+
icon: "_icon_vtakk_45",
|
|
40
|
+
description: "_description_vtakk_53",
|
|
41
|
+
top: "_top_vtakk_57",
|
|
42
|
+
eyebrow: "_eyebrow_vtakk_78",
|
|
43
|
+
title: "_title_vtakk_86"
|
|
44
|
+
};
|
|
45
|
+
// src/components/Card/Card.tsx
|
|
46
|
+
function g(e) {
|
|
47
|
+
let t = e.currentTarget, n = t.getBoundingClientRect();
|
|
48
|
+
t.style.setProperty("--spot-x", `${e.clientX - n.left}px`), t.style.setProperty("--spot-y", `${e.clientY - n.top}px`);
|
|
49
|
+
}
|
|
50
|
+
function _({ title: e, description: t, icon: n, eyebrow: r, href: i, target: o, rel: s, headingLevel: c, as: d, children: f, className: p, style: m, id: _ }) {
|
|
51
|
+
let v = a(), y = a(), b = i !== void 0, x = d ?? (b ? "a" : "div"), S = c ? `h${c}` : "span", C = [
|
|
52
|
+
h.card,
|
|
53
|
+
b && h.link,
|
|
54
|
+
p
|
|
55
|
+
].filter(Boolean).join(" ");
|
|
56
|
+
return /* @__PURE__ */ u(x, {
|
|
57
|
+
className: C,
|
|
58
|
+
style: m,
|
|
59
|
+
id: _,
|
|
60
|
+
...b ? {
|
|
61
|
+
href: i,
|
|
62
|
+
target: o,
|
|
63
|
+
rel: s,
|
|
64
|
+
onPointerMove: g,
|
|
65
|
+
"aria-labelledby": v,
|
|
66
|
+
"aria-describedby": t ? y : void 0
|
|
67
|
+
} : {},
|
|
68
|
+
children: [
|
|
69
|
+
(n || r) && /* @__PURE__ */ u("span", {
|
|
70
|
+
className: h.top,
|
|
71
|
+
children: [n && /* @__PURE__ */ l("span", {
|
|
72
|
+
className: h.icon,
|
|
73
|
+
"aria-hidden": "true",
|
|
74
|
+
children: n
|
|
75
|
+
}), r && /* @__PURE__ */ l("span", {
|
|
76
|
+
className: h.eyebrow,
|
|
77
|
+
children: r
|
|
78
|
+
})]
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ l(S, {
|
|
81
|
+
id: v,
|
|
82
|
+
className: h.title,
|
|
83
|
+
children: e
|
|
84
|
+
}),
|
|
85
|
+
t && /* @__PURE__ */ l("span", {
|
|
86
|
+
id: y,
|
|
87
|
+
className: h.description,
|
|
88
|
+
children: t
|
|
89
|
+
}),
|
|
90
|
+
f,
|
|
91
|
+
b && /* @__PURE__ */ l("svg", {
|
|
92
|
+
className: h.arrow,
|
|
93
|
+
width: 16,
|
|
94
|
+
height: 16,
|
|
95
|
+
viewBox: "0 0 24 24",
|
|
96
|
+
fill: "none",
|
|
97
|
+
stroke: "currentColor",
|
|
98
|
+
strokeWidth: 1.7,
|
|
99
|
+
strokeLinecap: "round",
|
|
100
|
+
strokeLinejoin: "round",
|
|
101
|
+
"aria-hidden": "true",
|
|
102
|
+
focusable: "false",
|
|
103
|
+
children: /* @__PURE__ */ l("path", { d: "M5 12h14M13 6l6 6-6 6" })
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
var v = {
|
|
109
|
+
container: "_container_12hys_1",
|
|
110
|
+
sm: "_sm_12hys_8",
|
|
111
|
+
md: "_md_12hys_12",
|
|
112
|
+
lg: "_lg_12hys_16",
|
|
113
|
+
xl: "_xl_12hys_20",
|
|
114
|
+
xxl: "_xxl_12hys_24"
|
|
115
|
+
};
|
|
116
|
+
// src/components/Container/Container.tsx
|
|
117
|
+
function y({ children: e, size: t = "xl", className: n, as: r = "div" }) {
|
|
118
|
+
let i = [
|
|
119
|
+
v.container,
|
|
120
|
+
v[t],
|
|
121
|
+
n
|
|
122
|
+
].filter(Boolean).join(" ");
|
|
123
|
+
return /* @__PURE__ */ l(r, {
|
|
124
|
+
className: i,
|
|
125
|
+
children: e
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
// src/components/Markdown/Markdown.tsx
|
|
129
|
+
function b({ node: e, ...t }) {
|
|
130
|
+
return /* @__PURE__ */ l("a", {
|
|
131
|
+
...t,
|
|
132
|
+
target: "_blank",
|
|
133
|
+
rel: "noopener noreferrer"
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
var x = { a: b }, S = [f];
|
|
137
|
+
function C({ children: e, className: t }) {
|
|
138
|
+
return /* @__PURE__ */ l("div", {
|
|
139
|
+
className: t,
|
|
140
|
+
children: /* @__PURE__ */ l(d, {
|
|
141
|
+
remarkPlugins: S,
|
|
142
|
+
components: x,
|
|
143
|
+
children: e
|
|
144
|
+
})
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
var w = {
|
|
148
|
+
editor: "_editor_spixg_1",
|
|
149
|
+
label: "_label_spixg_7",
|
|
150
|
+
toolbar: "_toolbar_spixg_15",
|
|
151
|
+
toolBtn: "_toolBtn_spixg_28",
|
|
152
|
+
separator: "_separator_spixg_50",
|
|
153
|
+
content: "_content_spixg_56",
|
|
154
|
+
textarea: "_textarea_spixg_69",
|
|
155
|
+
visuallyHidden: "_visuallyHidden_spixg_92",
|
|
156
|
+
previewSection: "_previewSection_spixg_104",
|
|
157
|
+
previewHeader: "_previewHeader_spixg_111",
|
|
158
|
+
previewDot: "_previewDot_spixg_125",
|
|
159
|
+
preview: "_preview_spixg_104"
|
|
160
|
+
}, ee = 200, T = " ", te = [
|
|
161
|
+
[
|
|
162
|
+
{
|
|
163
|
+
action: "bold",
|
|
164
|
+
icon: "B",
|
|
165
|
+
prefix: "**",
|
|
166
|
+
suffix: "**"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
action: "italic",
|
|
170
|
+
icon: "I",
|
|
171
|
+
prefix: "_",
|
|
172
|
+
suffix: "_"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
action: "strikethrough",
|
|
176
|
+
icon: "S",
|
|
177
|
+
prefix: "~~",
|
|
178
|
+
suffix: "~~"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
{
|
|
183
|
+
action: "heading1",
|
|
184
|
+
icon: "H1",
|
|
185
|
+
prefix: "# ",
|
|
186
|
+
suffix: "",
|
|
187
|
+
block: !0
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
action: "heading2",
|
|
191
|
+
icon: "H2",
|
|
192
|
+
prefix: "## ",
|
|
193
|
+
suffix: "",
|
|
194
|
+
block: !0
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
action: "heading3",
|
|
198
|
+
icon: "H3",
|
|
199
|
+
prefix: "### ",
|
|
200
|
+
suffix: "",
|
|
201
|
+
block: !0
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
[
|
|
205
|
+
{
|
|
206
|
+
action: "link",
|
|
207
|
+
icon: "🔗",
|
|
208
|
+
prefix: "[",
|
|
209
|
+
suffix: "](url)"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
action: "image",
|
|
213
|
+
icon: "🖼",
|
|
214
|
+
prefix: ""
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
action: "code",
|
|
219
|
+
icon: "</>",
|
|
220
|
+
prefix: "`",
|
|
221
|
+
suffix: "`"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
action: "bulletList",
|
|
225
|
+
icon: "•",
|
|
226
|
+
prefix: "- ",
|
|
227
|
+
suffix: "",
|
|
228
|
+
block: !0
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
action: "numberedList",
|
|
232
|
+
icon: "1.",
|
|
233
|
+
prefix: "1. ",
|
|
234
|
+
suffix: "",
|
|
235
|
+
block: !0
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
action: "quote",
|
|
239
|
+
icon: "\"",
|
|
240
|
+
prefix: "> ",
|
|
241
|
+
suffix: "",
|
|
242
|
+
block: !0
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
action: "codeBlock",
|
|
246
|
+
icon: "{ }",
|
|
247
|
+
prefix: "```\n",
|
|
248
|
+
suffix: "\n```",
|
|
249
|
+
block: !0
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
action: "horizontalRule",
|
|
253
|
+
icon: "―",
|
|
254
|
+
prefix: "\n---\n",
|
|
255
|
+
suffix: "",
|
|
256
|
+
block: !0
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
];
|
|
260
|
+
function ne({ value: t, onChange: r, labels: o, label: c, placeholder: d }) {
|
|
261
|
+
let f = s(null), p = s(!1), m = a(), h = a();
|
|
262
|
+
i(() => {
|
|
263
|
+
let e = f.current;
|
|
264
|
+
e && (e.style.height = "auto", e.style.height = `${Math.max(ee, e.scrollHeight)}px`);
|
|
265
|
+
}, [t]);
|
|
266
|
+
let g = n((e) => {
|
|
267
|
+
let t = f.current;
|
|
268
|
+
if (!t) return;
|
|
269
|
+
let [n, i] = e(t.selectionStart, t.selectionEnd);
|
|
270
|
+
r(n), requestAnimationFrame(() => {
|
|
271
|
+
t.focus(), t.setSelectionRange(i, i);
|
|
272
|
+
});
|
|
273
|
+
}, [r]), _ = (e) => g((n, r) => {
|
|
274
|
+
let i = t.substring(n, r);
|
|
275
|
+
if (e.block && !i) {
|
|
276
|
+
let r = t.substring(0, n).lastIndexOf("\n") + 1;
|
|
277
|
+
return [t.substring(0, r) + e.prefix + t.substring(r), r + e.prefix.length];
|
|
278
|
+
}
|
|
279
|
+
let a = i || o.sampleText;
|
|
280
|
+
return [t.substring(0, n) + e.prefix + a + e.suffix + t.substring(r), n + e.prefix.length + a.length];
|
|
281
|
+
});
|
|
282
|
+
return /* @__PURE__ */ u("div", {
|
|
283
|
+
className: w.editor,
|
|
284
|
+
children: [
|
|
285
|
+
/* @__PURE__ */ l("label", {
|
|
286
|
+
className: w.label,
|
|
287
|
+
htmlFor: m,
|
|
288
|
+
children: c
|
|
289
|
+
}),
|
|
290
|
+
/* @__PURE__ */ l("div", {
|
|
291
|
+
className: w.toolbar,
|
|
292
|
+
children: te.map((t, n) => /* @__PURE__ */ u(e.Fragment, { children: [n > 0 && /* @__PURE__ */ l("div", { className: w.separator }), t.map((e) => /* @__PURE__ */ l("button", {
|
|
293
|
+
className: w.toolBtn,
|
|
294
|
+
onClick: () => _(e),
|
|
295
|
+
title: o.actions[e.action],
|
|
296
|
+
"aria-label": o.actions[e.action],
|
|
297
|
+
type: "button",
|
|
298
|
+
children: e.icon
|
|
299
|
+
}, e.action))] }, n))
|
|
300
|
+
}),
|
|
301
|
+
/* @__PURE__ */ u("div", {
|
|
302
|
+
className: w.content,
|
|
303
|
+
children: [/* @__PURE__ */ l("textarea", {
|
|
304
|
+
id: m,
|
|
305
|
+
ref: f,
|
|
306
|
+
className: w.textarea,
|
|
307
|
+
value: t,
|
|
308
|
+
onChange: (e) => r(e.target.value),
|
|
309
|
+
onKeyDown: (e) => {
|
|
310
|
+
let n = p.current;
|
|
311
|
+
p.current = e.key === "Escape", !(e.key !== "Tab" || e.shiftKey || n) && (e.preventDefault(), g((e, n) => [t.substring(0, e) + T + t.substring(n), e + 2]));
|
|
312
|
+
},
|
|
313
|
+
onBlur: () => {
|
|
314
|
+
p.current = !1;
|
|
315
|
+
},
|
|
316
|
+
placeholder: d,
|
|
317
|
+
"aria-describedby": o.tabHint ? h : void 0
|
|
318
|
+
}), o.tabHint && /* @__PURE__ */ l("span", {
|
|
319
|
+
id: h,
|
|
320
|
+
className: w.visuallyHidden,
|
|
321
|
+
children: o.tabHint
|
|
322
|
+
})]
|
|
323
|
+
}),
|
|
324
|
+
t.trim() && /* @__PURE__ */ u("div", {
|
|
325
|
+
className: w.previewSection,
|
|
326
|
+
children: [/* @__PURE__ */ u("div", {
|
|
327
|
+
className: w.previewHeader,
|
|
328
|
+
children: [/* @__PURE__ */ l("span", { className: w.previewDot }), o.preview]
|
|
329
|
+
}), /* @__PURE__ */ l(C, {
|
|
330
|
+
className: w.preview,
|
|
331
|
+
children: t
|
|
332
|
+
})]
|
|
333
|
+
})
|
|
334
|
+
]
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
// src/components/MatrixContainer/matrixConfig.ts
|
|
338
|
+
var E = {
|
|
339
|
+
fontSize: 20,
|
|
340
|
+
columnDensity: .5,
|
|
341
|
+
trailLength: 10,
|
|
342
|
+
tickMs: 50,
|
|
343
|
+
color: "0, 255, 0",
|
|
344
|
+
headOpacity: 1,
|
|
345
|
+
trailOpacityMax: .8,
|
|
346
|
+
chars: Array.from("アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン0123456789")
|
|
347
|
+
}, re = {
|
|
348
|
+
drizzle: {
|
|
349
|
+
columnDensity: .15,
|
|
350
|
+
tickMs: 250,
|
|
351
|
+
trailLength: 6,
|
|
352
|
+
headOpacity: .35,
|
|
353
|
+
trailOpacityMax: .1
|
|
354
|
+
},
|
|
355
|
+
downpour: {
|
|
356
|
+
columnDensity: 1,
|
|
357
|
+
tickMs: 60,
|
|
358
|
+
trailLength: 10,
|
|
359
|
+
headOpacity: .2,
|
|
360
|
+
trailOpacityMax: .1
|
|
361
|
+
},
|
|
362
|
+
storm: {
|
|
363
|
+
columnDensity: .45,
|
|
364
|
+
tickMs: 100,
|
|
365
|
+
trailLength: 16,
|
|
366
|
+
headOpacity: .9,
|
|
367
|
+
trailOpacityMax: .8
|
|
368
|
+
}
|
|
369
|
+
}, D = {
|
|
370
|
+
dark: {
|
|
371
|
+
fontSize: 14,
|
|
372
|
+
columnDensity: 1,
|
|
373
|
+
tickMs: 60,
|
|
374
|
+
color: "210,255,120",
|
|
375
|
+
headOpacity: .2,
|
|
376
|
+
trailOpacityMax: .1
|
|
377
|
+
},
|
|
378
|
+
light: {
|
|
379
|
+
fontSize: 14,
|
|
380
|
+
columnDensity: 1,
|
|
381
|
+
tickMs: 60,
|
|
382
|
+
color: "56,142,0",
|
|
383
|
+
headOpacity: .42,
|
|
384
|
+
trailOpacityMax: .24
|
|
385
|
+
}
|
|
386
|
+
}, O = {
|
|
387
|
+
wrapper: "_wrapper_c93oc_1",
|
|
388
|
+
canvas: "_canvas_c93oc_6",
|
|
389
|
+
content: "_content_c93oc_16"
|
|
390
|
+
}, k = e.forwardRef(({ children: e, config: t, canvasOpacity: n = 1, paused: r = !1, className: a, style: o, id: c, as: d = "div" }, f) => {
|
|
391
|
+
let p = s(null), m = s(r), h = s({
|
|
392
|
+
...E,
|
|
393
|
+
...t
|
|
394
|
+
}), g = s(null);
|
|
395
|
+
i(() => {
|
|
396
|
+
let e = p.current;
|
|
397
|
+
if (!e) return;
|
|
398
|
+
let t = e.getContext("2d");
|
|
399
|
+
if (!t) return;
|
|
400
|
+
let n = h.current, r = typeof window.matchMedia == "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null, i = () => m.current || !!r?.matches, a = [], o = null, s = 0, c = () => Math.floor(e.width / n.fontSize), l = () => Math.floor(e.height / n.fontSize), u = (e, t) => {
|
|
401
|
+
a = Array.from({ length: e }, () => Math.random() < n.columnDensity ? t ? Math.floor(Math.random() * l()) : -Math.floor(Math.random() * l()) : -(n.trailLength + Math.floor(Math.random() * l() * 2)));
|
|
402
|
+
}, d = () => {
|
|
403
|
+
let r = n.fontSize, i = c(), o = e.height;
|
|
404
|
+
t.clearRect(0, 0, e.width, o), t.font = `${r}px monospace`;
|
|
405
|
+
for (let e = 0; e < i; e++) {
|
|
406
|
+
let i = a[e];
|
|
407
|
+
for (let a = 0; a < n.trailLength; a++) {
|
|
408
|
+
let s = i - a;
|
|
409
|
+
if (s < 0 || s * r > o) continue;
|
|
410
|
+
let c = a === 0, l = 1 - a / n.trailLength, u = c ? n.headOpacity : l * n.trailOpacityMax, d = n.chars[Math.floor(Math.random() * n.chars.length)];
|
|
411
|
+
t.fillStyle = `rgba(${n.color},${u.toFixed(3)})`, t.fillText(d, e * r, s * r);
|
|
412
|
+
}
|
|
413
|
+
if (a[e]++, (i - n.trailLength) * r > o) {
|
|
414
|
+
let t = Math.random() < n.columnDensity;
|
|
415
|
+
a[e] = t ? -Math.floor(Math.random() * n.trailLength) : -(n.trailLength + Math.floor(Math.random() * l()));
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}, f = (t = !1) => {
|
|
419
|
+
e.width = e.offsetWidth, e.height = e.offsetHeight, u(c(), t || i()), i() && d();
|
|
420
|
+
}, _ = (e) => {
|
|
421
|
+
o = requestAnimationFrame(_), !(e - s < n.tickMs) && (s = e, d());
|
|
422
|
+
}, v = () => {
|
|
423
|
+
i() ? (o !== null && cancelAnimationFrame(o), o = null) : o === null && (o = requestAnimationFrame(_));
|
|
424
|
+
};
|
|
425
|
+
f(), v(), g.current = {
|
|
426
|
+
regrid: f,
|
|
427
|
+
redraw: () => {
|
|
428
|
+
i() && d();
|
|
429
|
+
},
|
|
430
|
+
syncMotion: v
|
|
431
|
+
};
|
|
432
|
+
let y = new ResizeObserver(() => f());
|
|
433
|
+
return y.observe(e), r?.addEventListener("change", v), () => {
|
|
434
|
+
o !== null && cancelAnimationFrame(o), y.disconnect(), r?.removeEventListener("change", v), g.current = null;
|
|
435
|
+
};
|
|
436
|
+
}, []), i(() => {
|
|
437
|
+
let e = {
|
|
438
|
+
...E,
|
|
439
|
+
...t
|
|
440
|
+
}, n = e.fontSize !== h.current.fontSize || e.columnDensity !== h.current.columnDensity;
|
|
441
|
+
Object.assign(h.current, e), n ? g.current?.regrid(!0) : g.current?.redraw();
|
|
442
|
+
}, [t]), i(() => {
|
|
443
|
+
m.current = r, g.current?.syncMotion();
|
|
444
|
+
}, [r]);
|
|
445
|
+
let _ = [O.wrapper, a].filter(Boolean).join(" ");
|
|
446
|
+
return /* @__PURE__ */ u(d, {
|
|
447
|
+
ref: f,
|
|
448
|
+
className: _,
|
|
449
|
+
style: o,
|
|
450
|
+
id: c,
|
|
451
|
+
children: [/* @__PURE__ */ l("canvas", {
|
|
452
|
+
ref: p,
|
|
453
|
+
className: O.canvas,
|
|
454
|
+
"aria-hidden": "true",
|
|
455
|
+
style: n === 1 ? void 0 : { opacity: n }
|
|
456
|
+
}), /* @__PURE__ */ l("div", {
|
|
457
|
+
className: O.content,
|
|
458
|
+
children: e
|
|
459
|
+
})]
|
|
460
|
+
});
|
|
461
|
+
});
|
|
462
|
+
k.displayName = "MatrixContainer";
|
|
463
|
+
// src/components/OrbitalDots/orbitalDotsConfig.ts
|
|
464
|
+
var A = {
|
|
465
|
+
dotCount: 38,
|
|
466
|
+
maxLineDistance: 110,
|
|
467
|
+
dotMinRadius: 1.5,
|
|
468
|
+
dotMaxRadius: 4.5,
|
|
469
|
+
speed: .38,
|
|
470
|
+
lineOpacity: .28,
|
|
471
|
+
dotOpacityMin: .45,
|
|
472
|
+
glowBlur: 10,
|
|
473
|
+
showOrbitRing: !0,
|
|
474
|
+
orbitRingRadius: .27,
|
|
475
|
+
showSymbols: !0,
|
|
476
|
+
symbols: [
|
|
477
|
+
"{ }",
|
|
478
|
+
"[ ]",
|
|
479
|
+
"</ >",
|
|
480
|
+
"( )"
|
|
481
|
+
],
|
|
482
|
+
symbolFontScale: .035,
|
|
483
|
+
tickMs: 30,
|
|
484
|
+
color: "180,220,50"
|
|
485
|
+
}, j = {
|
|
486
|
+
wrapper: "_wrapper_c93oc_1",
|
|
487
|
+
canvas: "_canvas_c93oc_6",
|
|
488
|
+
content: "_content_c93oc_16"
|
|
489
|
+
}, M = e.forwardRef(({ children: e, config: t, canvasOpacity: n = 1, paused: r = !1, className: a, style: o, id: c, as: d = "div" }, f) => {
|
|
490
|
+
let p = s(null), m = s(r), h = s(null), g = s({
|
|
491
|
+
...A,
|
|
492
|
+
...t
|
|
493
|
+
});
|
|
494
|
+
i(() => {
|
|
495
|
+
let e = p.current;
|
|
496
|
+
if (!e) return;
|
|
497
|
+
let t = e.getContext("2d");
|
|
498
|
+
if (!t) return;
|
|
499
|
+
let n = g.current, [r, i, a] = n.color.split(",").map(Number), o = typeof window.matchMedia == "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null, s = () => m.current || !!o?.matches, c = [], l = [], u = null, d = 0, f = () => {
|
|
500
|
+
let t = e.width, r = e.height;
|
|
501
|
+
c = Array.from({ length: n.dotCount }, () => ({
|
|
502
|
+
x: Math.random() * t,
|
|
503
|
+
y: Math.random() * r,
|
|
504
|
+
vx: (Math.random() - .5) * 2 * n.speed,
|
|
505
|
+
vy: (Math.random() - .5) * 2 * n.speed,
|
|
506
|
+
radius: n.dotMinRadius + Math.random() * (n.dotMaxRadius - n.dotMinRadius),
|
|
507
|
+
opacity: n.dotOpacityMin + Math.random() * (1 - n.dotOpacityMin)
|
|
508
|
+
}));
|
|
509
|
+
}, _ = () => {
|
|
510
|
+
if (!n.showSymbols) {
|
|
511
|
+
l = [];
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
514
|
+
let e = [
|
|
515
|
+
{
|
|
516
|
+
nx: .14,
|
|
517
|
+
ny: .78
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
nx: .63,
|
|
521
|
+
ny: .85
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
nx: .75,
|
|
525
|
+
ny: .43
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
nx: .7,
|
|
529
|
+
ny: .16
|
|
530
|
+
}
|
|
531
|
+
];
|
|
532
|
+
l = n.symbols.map((t, n) => {
|
|
533
|
+
let r = e[n % e.length], i = .2 + Math.random() * .35;
|
|
534
|
+
return {
|
|
535
|
+
text: t,
|
|
536
|
+
nx: r.nx,
|
|
537
|
+
ny: r.ny,
|
|
538
|
+
opacity: i,
|
|
539
|
+
targetOpacity: .2 + Math.random() * .35,
|
|
540
|
+
fadeSpeed: .003 + Math.random() * .004
|
|
541
|
+
};
|
|
542
|
+
});
|
|
543
|
+
}, v = () => {
|
|
544
|
+
let o = e.width, s = e.height;
|
|
545
|
+
t.clearRect(0, 0, o, s);
|
|
546
|
+
for (let e of c) e.x += e.vx, e.y += e.vy, (e.x < e.radius || e.x > o - e.radius) && (e.vx *= -1), (e.y < e.radius || e.y > s - e.radius) && (e.vy *= -1), e.x = Math.max(e.radius, Math.min(o - e.radius, e.x)), e.y = Math.max(e.radius, Math.min(s - e.radius, e.y));
|
|
547
|
+
t.lineWidth = .6;
|
|
548
|
+
for (let e = 0; e < c.length; e++) for (let o = e + 1; o < c.length; o++) {
|
|
549
|
+
let s = c[e].x - c[o].x, l = c[e].y - c[o].y, u = Math.sqrt(s * s + l * l);
|
|
550
|
+
if (u < n.maxLineDistance) {
|
|
551
|
+
let s = (1 - u / n.maxLineDistance) * n.lineOpacity;
|
|
552
|
+
t.strokeStyle = `rgba(${r},${i},${a},${s.toFixed(3)})`, t.beginPath(), t.moveTo(c[e].x, c[e].y), t.lineTo(c[o].x, c[o].y), t.stroke();
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
if (n.showOrbitRing) {
|
|
556
|
+
let e = o / 2, c = s / 2, l = Math.min(o, s) * n.orbitRingRadius;
|
|
557
|
+
t.save(), t.setLineDash([3, 9]), t.lineWidth = .8, t.strokeStyle = `rgba(${r},${i},${a},0.10)`, t.beginPath(), t.arc(e, c, l, 0, Math.PI * 2), t.stroke(), t.setLineDash([]), t.restore();
|
|
558
|
+
}
|
|
559
|
+
t.shadowColor = `rgba(${r},${i},${a},0.55)`, t.shadowBlur = n.glowBlur;
|
|
560
|
+
for (let e of c) t.fillStyle = `rgba(${r},${i},${a},${e.opacity.toFixed(3)})`, t.beginPath(), t.arc(e.x, e.y, e.radius, 0, Math.PI * 2), t.fill();
|
|
561
|
+
if (t.shadowBlur = 0, n.showSymbols && l.length > 0) {
|
|
562
|
+
let e = Math.max(9, Math.round(Math.min(o, s) * n.symbolFontScale));
|
|
563
|
+
t.font = `${e}px monospace`, t.textAlign = "center";
|
|
564
|
+
for (let e of l) {
|
|
565
|
+
let n = e.targetOpacity - e.opacity;
|
|
566
|
+
Math.abs(n) <= e.fadeSpeed ? (e.opacity = e.targetOpacity, e.targetOpacity = .15 + Math.random() * .4) : e.opacity += n > 0 ? e.fadeSpeed : -e.fadeSpeed, t.fillStyle = `rgba(${r},${i},${a},${e.opacity.toFixed(3)})`, t.fillText(e.text, e.nx * o, e.ny * s);
|
|
567
|
+
}
|
|
568
|
+
t.textAlign = "start";
|
|
569
|
+
}
|
|
570
|
+
}, y = () => {
|
|
571
|
+
e.width = e.offsetWidth, e.height = e.offsetHeight, f(), _(), s() && v();
|
|
572
|
+
}, b = (e) => {
|
|
573
|
+
u = requestAnimationFrame(b), !(e - d < n.tickMs) && (d = e, v());
|
|
574
|
+
}, x = () => {
|
|
575
|
+
s() ? (u !== null && cancelAnimationFrame(u), u = null) : u === null && (u = requestAnimationFrame(b));
|
|
576
|
+
};
|
|
577
|
+
y(), x(), h.current = x;
|
|
578
|
+
let S = new ResizeObserver(y);
|
|
579
|
+
return S.observe(e), o?.addEventListener("change", x), () => {
|
|
580
|
+
u !== null && cancelAnimationFrame(u), S.disconnect(), o?.removeEventListener("change", x), h.current = null;
|
|
581
|
+
};
|
|
582
|
+
}, []), i(() => {
|
|
583
|
+
m.current = r, h.current?.();
|
|
584
|
+
}, [r]);
|
|
585
|
+
let _ = [j.wrapper, a].filter(Boolean).join(" ");
|
|
586
|
+
return /* @__PURE__ */ u(d, {
|
|
587
|
+
ref: f,
|
|
588
|
+
className: _,
|
|
589
|
+
style: o,
|
|
590
|
+
id: c,
|
|
591
|
+
children: [/* @__PURE__ */ l("canvas", {
|
|
592
|
+
ref: p,
|
|
593
|
+
className: j.canvas,
|
|
594
|
+
"aria-hidden": "true",
|
|
595
|
+
style: n === 1 ? void 0 : { opacity: n }
|
|
596
|
+
}), /* @__PURE__ */ l("div", {
|
|
597
|
+
className: j.content,
|
|
598
|
+
children: e
|
|
599
|
+
})]
|
|
600
|
+
});
|
|
601
|
+
});
|
|
602
|
+
M.displayName = "OrbitalDots";
|
|
603
|
+
var N = {
|
|
604
|
+
section: "_section_1tryt_1",
|
|
605
|
+
noPadding: "_noPadding_1tryt_11",
|
|
606
|
+
dark: "_dark_1tryt_15",
|
|
607
|
+
elevated: "_elevated_1tryt_19"
|
|
608
|
+
};
|
|
609
|
+
// src/components/Section/Section.tsx
|
|
610
|
+
function P({ children: e, variant: t = "dark", noPadding: n, className: r, id: i, "aria-labelledby": a, "aria-label": o }) {
|
|
611
|
+
let s = [
|
|
612
|
+
N.section,
|
|
613
|
+
N[t],
|
|
614
|
+
n && N.noPadding,
|
|
615
|
+
r
|
|
616
|
+
].filter(Boolean).join(" ");
|
|
617
|
+
return /* @__PURE__ */ l("section", {
|
|
618
|
+
className: s,
|
|
619
|
+
id: i,
|
|
620
|
+
"aria-labelledby": a,
|
|
621
|
+
"aria-label": o,
|
|
622
|
+
children: e
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
var F = {
|
|
626
|
+
hero: "_hero_1b7du_1",
|
|
627
|
+
heroInner: "_heroInner_1b7du_10",
|
|
628
|
+
heroEyebrow: "_heroEyebrow_1b7du_22",
|
|
629
|
+
heroCount: "_heroCount_1b7du_47",
|
|
630
|
+
countNum: "_countNum_1b7du_67",
|
|
631
|
+
countLabel: "_countLabel_1b7du_80",
|
|
632
|
+
heroTitle: "_heroTitle_1b7du_94",
|
|
633
|
+
heroLine: "_heroLine_1b7du_117",
|
|
634
|
+
lineGrow: "_lineGrow_1b7du_1",
|
|
635
|
+
heroSubtitle: "_heroSubtitle_1b7du_137"
|
|
636
|
+
};
|
|
637
|
+
// src/components/PageHero/PageHero.tsx
|
|
638
|
+
function ie({ eyebrow: e, title: t, subtitle: n, count: r, countLabel: i }) {
|
|
639
|
+
return /* @__PURE__ */ l(P, {
|
|
640
|
+
noPadding: !0,
|
|
641
|
+
children: /* @__PURE__ */ l("div", {
|
|
642
|
+
className: F.hero,
|
|
643
|
+
children: /* @__PURE__ */ l(y, { children: /* @__PURE__ */ u("div", {
|
|
644
|
+
className: F.heroInner,
|
|
645
|
+
children: [
|
|
646
|
+
/* @__PURE__ */ u("div", {
|
|
647
|
+
className: F.heroCount,
|
|
648
|
+
children: [/* @__PURE__ */ l("span", {
|
|
649
|
+
className: F.countNum,
|
|
650
|
+
children: r
|
|
651
|
+
}), /* @__PURE__ */ l("span", {
|
|
652
|
+
className: F.countLabel,
|
|
653
|
+
children: i
|
|
654
|
+
})]
|
|
655
|
+
}),
|
|
656
|
+
/* @__PURE__ */ l("span", {
|
|
657
|
+
className: F.heroEyebrow,
|
|
658
|
+
children: e
|
|
659
|
+
}),
|
|
660
|
+
/* @__PURE__ */ l("h1", {
|
|
661
|
+
className: F.heroTitle,
|
|
662
|
+
children: t
|
|
663
|
+
}),
|
|
664
|
+
/* @__PURE__ */ l("p", {
|
|
665
|
+
className: F.heroSubtitle,
|
|
666
|
+
children: n
|
|
667
|
+
}),
|
|
668
|
+
/* @__PURE__ */ l("div", { className: F.heroLine })
|
|
669
|
+
]
|
|
670
|
+
}) })
|
|
671
|
+
})
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
var I = {
|
|
675
|
+
wrapper: "_wrapper_1rdu6_1",
|
|
676
|
+
visible: "_visible_1rdu6_6"
|
|
677
|
+
};
|
|
678
|
+
// src/components/PageTransition/PageTransition.tsx
|
|
679
|
+
function L({ children: e, transitionKey: t, appear: n = !0 }) {
|
|
680
|
+
let [r, a] = c(!n), [o, s] = c(t);
|
|
681
|
+
return t !== o && (s(t), a(!1)), i(() => {
|
|
682
|
+
if (r) return;
|
|
683
|
+
let e, t = requestAnimationFrame(() => {
|
|
684
|
+
e = requestAnimationFrame(() => a(!0));
|
|
685
|
+
});
|
|
686
|
+
return () => {
|
|
687
|
+
cancelAnimationFrame(t), cancelAnimationFrame(e);
|
|
688
|
+
};
|
|
689
|
+
}, [r]), /* @__PURE__ */ l("div", {
|
|
690
|
+
className: `${I.wrapper} ${r ? I.visible : ""}`,
|
|
691
|
+
children: e
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
var R = {
|
|
695
|
+
wrapper: "_wrapper_2hx09_1",
|
|
696
|
+
label: "_label_2hx09_7",
|
|
697
|
+
select: "_select_2hx09_15"
|
|
698
|
+
};
|
|
699
|
+
// src/components/Select/Select.tsx
|
|
700
|
+
function z({ label: e, placeholder: t, options: n, className: r, id: i, ...o }) {
|
|
701
|
+
let s = a(), c = i ?? s;
|
|
702
|
+
return /* @__PURE__ */ u("div", {
|
|
703
|
+
className: `${R.wrapper} ${r || ""}`,
|
|
704
|
+
children: [e && /* @__PURE__ */ l("label", {
|
|
705
|
+
className: R.label,
|
|
706
|
+
htmlFor: c,
|
|
707
|
+
children: e
|
|
708
|
+
}), /* @__PURE__ */ u("select", {
|
|
709
|
+
id: c,
|
|
710
|
+
className: R.select,
|
|
711
|
+
...o,
|
|
712
|
+
children: [/* @__PURE__ */ l("option", {
|
|
713
|
+
value: "",
|
|
714
|
+
children: t
|
|
715
|
+
}), n.map((e) => /* @__PURE__ */ l("option", {
|
|
716
|
+
value: e.value,
|
|
717
|
+
children: e.label
|
|
718
|
+
}, e.value))]
|
|
719
|
+
})]
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
var B = {
|
|
723
|
+
frame: "_frame_btbpz_1",
|
|
724
|
+
shimmer: "_shimmer_btbpz_7",
|
|
725
|
+
sweep: "_sweep_btbpz_1",
|
|
726
|
+
reveal: "_reveal_btbpz_21",
|
|
727
|
+
image: "_image_btbpz_29",
|
|
728
|
+
loaded: "_loaded_btbpz_38"
|
|
729
|
+
};
|
|
730
|
+
// src/components/ShimmerImage/ShimmerImage.tsx
|
|
731
|
+
function V({ src: e, alt: t, className: n, ...r }) {
|
|
732
|
+
let [i, a] = c(null), o = i === e, s = (t) => {
|
|
733
|
+
t?.complete && t.naturalWidth > 0 && a(e);
|
|
734
|
+
};
|
|
735
|
+
return /* @__PURE__ */ u("div", {
|
|
736
|
+
className: `${B.frame} ${o ? B.loaded : ""}`,
|
|
737
|
+
children: [/* @__PURE__ */ l("div", { className: B.shimmer }), /* @__PURE__ */ l("div", {
|
|
738
|
+
className: B.reveal,
|
|
739
|
+
children: /* @__PURE__ */ l("img", {
|
|
740
|
+
...r,
|
|
741
|
+
ref: s,
|
|
742
|
+
src: e,
|
|
743
|
+
alt: t,
|
|
744
|
+
className: [B.image, n].filter(Boolean).join(" "),
|
|
745
|
+
onLoad: () => a(e)
|
|
746
|
+
})
|
|
747
|
+
})]
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
var H = {
|
|
751
|
+
sideNav: "_sideNav_1ljaj_1",
|
|
752
|
+
list: "_list_1ljaj_10",
|
|
753
|
+
group: "_group_1ljaj_16",
|
|
754
|
+
groupTitle: "_groupTitle_1ljaj_21",
|
|
755
|
+
link: "_link_1ljaj_33",
|
|
756
|
+
active: "_active_1ljaj_64",
|
|
757
|
+
icon: "_icon_1ljaj_76",
|
|
758
|
+
label: "_label_1ljaj_81"
|
|
759
|
+
}, U = 24;
|
|
760
|
+
function W(e) {
|
|
761
|
+
return "items" in e;
|
|
762
|
+
}
|
|
763
|
+
function G(e) {
|
|
764
|
+
let { body: t, documentElement: n } = e.ownerDocument;
|
|
765
|
+
for (let r = e.parentElement; r; r = r.parentElement) {
|
|
766
|
+
if (r === t || r === n) return null;
|
|
767
|
+
let { overflowY: e } = getComputedStyle(r);
|
|
768
|
+
if ((e === "auto" || e === "scroll" || e === "overlay") && r.scrollHeight > r.clientHeight) return r;
|
|
769
|
+
}
|
|
770
|
+
return null;
|
|
771
|
+
}
|
|
772
|
+
function K(e, t) {
|
|
773
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect().top + t.clientTop, i = n.top - r + t.scrollTop, a = i + n.height;
|
|
774
|
+
i - U < t.scrollTop ? t.scrollTo({ top: i - U }) : a + U > t.scrollTop + t.clientHeight && t.scrollTo({ top: a + U - t.clientHeight });
|
|
775
|
+
}
|
|
776
|
+
function ae({ label: e, items: t, activeHref: n, ariaCurrent: r = "page", keepActiveInView: o = !1, as: c = "a", onItemClick: d, className: f }) {
|
|
777
|
+
let p = a(), m = s(null);
|
|
778
|
+
i(() => {
|
|
779
|
+
let e = m.current;
|
|
780
|
+
if (!o || !e) return;
|
|
781
|
+
let t = e.querySelector("[aria-current]"), n = G(e);
|
|
782
|
+
t && n && K(t, n);
|
|
783
|
+
}, [n, o]);
|
|
784
|
+
let h = (e) => {
|
|
785
|
+
let t = e.href === n;
|
|
786
|
+
return /* @__PURE__ */ l("li", { children: /* @__PURE__ */ u(c, {
|
|
787
|
+
href: e.href,
|
|
788
|
+
className: [H.link, t && H.active].filter(Boolean).join(" "),
|
|
789
|
+
"aria-current": t ? r : void 0,
|
|
790
|
+
onClick: d ? (t) => d(e, t) : void 0,
|
|
791
|
+
children: [e.icon && /* @__PURE__ */ l("span", {
|
|
792
|
+
className: H.icon,
|
|
793
|
+
"aria-hidden": "true",
|
|
794
|
+
children: e.icon
|
|
795
|
+
}), /* @__PURE__ */ l("span", {
|
|
796
|
+
className: H.label,
|
|
797
|
+
children: e.label
|
|
798
|
+
})]
|
|
799
|
+
}) }, e.href);
|
|
800
|
+
};
|
|
801
|
+
return /* @__PURE__ */ l("nav", {
|
|
802
|
+
ref: m,
|
|
803
|
+
className: [H.sideNav, f].filter(Boolean).join(" "),
|
|
804
|
+
"aria-label": e,
|
|
805
|
+
children: /* @__PURE__ */ l("ul", {
|
|
806
|
+
className: H.list,
|
|
807
|
+
children: t.map((e, t) => {
|
|
808
|
+
if (!W(e)) return h(e);
|
|
809
|
+
let n = `${p}-group-${t}`;
|
|
810
|
+
return /* @__PURE__ */ u("li", {
|
|
811
|
+
className: H.group,
|
|
812
|
+
children: [/* @__PURE__ */ u("span", {
|
|
813
|
+
id: n,
|
|
814
|
+
className: H.groupTitle,
|
|
815
|
+
children: [e.icon && /* @__PURE__ */ l("span", {
|
|
816
|
+
className: H.icon,
|
|
817
|
+
"aria-hidden": "true",
|
|
818
|
+
children: e.icon
|
|
819
|
+
}), e.title]
|
|
820
|
+
}), /* @__PURE__ */ l("ul", {
|
|
821
|
+
className: H.list,
|
|
822
|
+
"aria-labelledby": n,
|
|
823
|
+
children: e.items.map(h)
|
|
824
|
+
})]
|
|
825
|
+
}, n);
|
|
826
|
+
})
|
|
827
|
+
})
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
var q = {
|
|
831
|
+
tag: "_tag_1tw86_1",
|
|
832
|
+
clickable: "_clickable_1tw86_20",
|
|
833
|
+
active: "_active_1tw86_29",
|
|
834
|
+
removable: "_removable_1tw86_40",
|
|
835
|
+
removeBtn: "_removeBtn_1tw86_44"
|
|
836
|
+
};
|
|
837
|
+
// src/components/Tag/Tag.tsx
|
|
838
|
+
function J({ label: e, active: t, onClick: n, onRemove: r, removeLabel: i }) {
|
|
839
|
+
let a = [
|
|
840
|
+
q.tag,
|
|
841
|
+
n && q.clickable,
|
|
842
|
+
t && q.active,
|
|
843
|
+
r && q.removable
|
|
844
|
+
].filter(Boolean).join(" ");
|
|
845
|
+
return n ? /* @__PURE__ */ l("button", {
|
|
846
|
+
type: "button",
|
|
847
|
+
className: a,
|
|
848
|
+
onClick: n,
|
|
849
|
+
"aria-pressed": !!t,
|
|
850
|
+
children: e
|
|
851
|
+
}) : /* @__PURE__ */ u("span", {
|
|
852
|
+
className: a,
|
|
853
|
+
children: [e, r && /* @__PURE__ */ l("button", {
|
|
854
|
+
type: "button",
|
|
855
|
+
className: q.removeBtn,
|
|
856
|
+
onClick: r,
|
|
857
|
+
"aria-label": i,
|
|
858
|
+
children: "×"
|
|
859
|
+
})]
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
var oe = { tagFilter: "_tagFilter_1mu0a_1" };
|
|
863
|
+
// src/components/TagFilter/TagFilter.tsx
|
|
864
|
+
function se({ tags: e, activeTag: t, onTagClick: n, allLabel: r, groupLabel: i }) {
|
|
865
|
+
return /* @__PURE__ */ u("div", {
|
|
866
|
+
className: oe.tagFilter,
|
|
867
|
+
role: i ? "group" : void 0,
|
|
868
|
+
"aria-label": i,
|
|
869
|
+
children: [/* @__PURE__ */ l(J, {
|
|
870
|
+
label: r,
|
|
871
|
+
active: t === null,
|
|
872
|
+
onClick: () => n(null)
|
|
873
|
+
}), e.map((e) => /* @__PURE__ */ l(J, {
|
|
874
|
+
label: e,
|
|
875
|
+
active: t === e,
|
|
876
|
+
onClick: () => n(e)
|
|
877
|
+
}, e))]
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
var Y = {
|
|
881
|
+
text: "_text_dq0aw_1",
|
|
882
|
+
body: "_body_dq0aw_13",
|
|
883
|
+
display: "_display_dq0aw_17",
|
|
884
|
+
label: "_label_dq0aw_24",
|
|
885
|
+
eyebrow: "_eyebrow_dq0aw_32",
|
|
886
|
+
mono: "_mono_dq0aw_41",
|
|
887
|
+
"size-xs": "_size-xs_dq0aw_45",
|
|
888
|
+
"size-sm": "_size-sm_dq0aw_49",
|
|
889
|
+
"size-base": "_size-base_dq0aw_53",
|
|
890
|
+
"size-md": "_size-md_dq0aw_57",
|
|
891
|
+
"size-lg": "_size-lg_dq0aw_61",
|
|
892
|
+
"size-xl": "_size-xl_dq0aw_65",
|
|
893
|
+
"size-2xl": "_size-2xl_dq0aw_69",
|
|
894
|
+
"size-3xl": "_size-3xl_dq0aw_73",
|
|
895
|
+
"size-4xl": "_size-4xl_dq0aw_77",
|
|
896
|
+
"size-5xl": "_size-5xl_dq0aw_81",
|
|
897
|
+
"weight-regular": "_weight-regular_dq0aw_85",
|
|
898
|
+
"weight-medium": "_weight-medium_dq0aw_89",
|
|
899
|
+
"weight-semibold": "_weight-semibold_dq0aw_93",
|
|
900
|
+
"weight-bold": "_weight-bold_dq0aw_97",
|
|
901
|
+
italic: "_italic_dq0aw_101",
|
|
902
|
+
"tone-default": "_tone-default_dq0aw_105",
|
|
903
|
+
"tone-secondary": "_tone-secondary_dq0aw_109",
|
|
904
|
+
"tone-muted": "_tone-muted_dq0aw_113",
|
|
905
|
+
"tone-accent": "_tone-accent_dq0aw_117",
|
|
906
|
+
"tone-danger": "_tone-danger_dq0aw_121",
|
|
907
|
+
"tone-success": "_tone-success_dq0aw_125",
|
|
908
|
+
"tone-warning": "_tone-warning_dq0aw_129",
|
|
909
|
+
"tone-info": "_tone-info_dq0aw_133",
|
|
910
|
+
"align-start": "_align-start_dq0aw_137",
|
|
911
|
+
"align-center": "_align-center_dq0aw_141",
|
|
912
|
+
"align-end": "_align-end_dq0aw_145",
|
|
913
|
+
truncate: "_truncate_dq0aw_149",
|
|
914
|
+
clamp: "_clamp_dq0aw_156"
|
|
915
|
+
};
|
|
916
|
+
// src/components/Text/Text.tsx
|
|
917
|
+
function ce({ as: e = "p", variant: t = "body", size: n, weight: r, italic: i = !1, tone: a, align: o, truncate: s, className: c, style: u, children: d, ...f }) {
|
|
918
|
+
let p = typeof s == "number" && s >= 1 ? Math.floor(s) : void 0, m = [
|
|
919
|
+
Y.text,
|
|
920
|
+
Y[t],
|
|
921
|
+
n && Y[`size-${n}`],
|
|
922
|
+
r && Y[`weight-${r}`],
|
|
923
|
+
i && Y.italic,
|
|
924
|
+
a && Y[`tone-${a}`],
|
|
925
|
+
o && Y[`align-${o}`],
|
|
926
|
+
s === !0 && Y.truncate,
|
|
927
|
+
p !== void 0 && Y.clamp,
|
|
928
|
+
c
|
|
929
|
+
].filter(Boolean).join(" "), h = p === void 0 ? u : {
|
|
930
|
+
...u,
|
|
931
|
+
"--text-lines": p
|
|
932
|
+
};
|
|
933
|
+
return /* @__PURE__ */ l(e, {
|
|
934
|
+
className: m,
|
|
935
|
+
style: h,
|
|
936
|
+
...f,
|
|
937
|
+
children: d
|
|
938
|
+
});
|
|
939
|
+
}
|
|
940
|
+
var X = {
|
|
941
|
+
wrapper: "_wrapper_12bvz_1",
|
|
942
|
+
label: "_label_12bvz_7",
|
|
943
|
+
textarea: "_textarea_12bvz_15"
|
|
944
|
+
};
|
|
945
|
+
// src/components/TextArea/TextArea.tsx
|
|
946
|
+
function le({ label: e, className: t, id: n, ...r }) {
|
|
947
|
+
let i = a(), o = n ?? i;
|
|
948
|
+
return /* @__PURE__ */ u("div", {
|
|
949
|
+
className: `${X.wrapper} ${t || ""}`,
|
|
950
|
+
children: [e && /* @__PURE__ */ l("label", {
|
|
951
|
+
className: X.label,
|
|
952
|
+
htmlFor: o,
|
|
953
|
+
children: e
|
|
954
|
+
}), /* @__PURE__ */ l("textarea", {
|
|
955
|
+
id: o,
|
|
956
|
+
className: X.textarea,
|
|
957
|
+
...r
|
|
958
|
+
})]
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
var Z = {
|
|
962
|
+
wrapper: "_wrapper_3ifhw_1",
|
|
963
|
+
label: "_label_3ifhw_7",
|
|
964
|
+
input: "_input_3ifhw_15",
|
|
965
|
+
error: "_error_3ifhw_37",
|
|
966
|
+
errorMessage: "_errorMessage_3ifhw_41"
|
|
967
|
+
};
|
|
968
|
+
// src/components/TextInput/TextInput.tsx
|
|
969
|
+
function ue({ label: e, error: t, className: n, id: r, "aria-describedby": i, "aria-invalid": o, ...s }) {
|
|
970
|
+
let c = a(), d = r ?? c, f = `${d}-error`, p = [i, t && f].filter(Boolean).join(" ") || void 0;
|
|
971
|
+
return /* @__PURE__ */ u("div", {
|
|
972
|
+
className: `${Z.wrapper} ${t ? Z.error : ""} ${n || ""}`,
|
|
973
|
+
children: [
|
|
974
|
+
e && /* @__PURE__ */ l("label", {
|
|
975
|
+
className: Z.label,
|
|
976
|
+
htmlFor: d,
|
|
977
|
+
children: e
|
|
978
|
+
}),
|
|
979
|
+
/* @__PURE__ */ l("input", {
|
|
980
|
+
id: d,
|
|
981
|
+
className: Z.input,
|
|
982
|
+
"aria-describedby": p,
|
|
983
|
+
"aria-invalid": t ? !0 : o,
|
|
984
|
+
...s
|
|
985
|
+
}),
|
|
986
|
+
t && /* @__PURE__ */ l("span", {
|
|
987
|
+
id: f,
|
|
988
|
+
className: Z.errorMessage,
|
|
989
|
+
children: t
|
|
990
|
+
})
|
|
991
|
+
]
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
var Q = {
|
|
995
|
+
container: "_container_m3x4i_1",
|
|
996
|
+
toast: "_toast_m3x4i_14",
|
|
997
|
+
slideIn: "_slideIn_m3x4i_1",
|
|
998
|
+
exiting: "_exiting_m3x4i_29",
|
|
999
|
+
slideOut: "_slideOut_m3x4i_1",
|
|
1000
|
+
fadeIn: "_fadeIn_m3x4i_1",
|
|
1001
|
+
fadeOut: "_fadeOut_m3x4i_1",
|
|
1002
|
+
success: "_success_m3x4i_89",
|
|
1003
|
+
error: "_error_m3x4i_94",
|
|
1004
|
+
warning: "_warning_m3x4i_99",
|
|
1005
|
+
info: "_info_m3x4i_104",
|
|
1006
|
+
icon: "_icon_m3x4i_109",
|
|
1007
|
+
message: "_message_m3x4i_128",
|
|
1008
|
+
close: "_close_m3x4i_135",
|
|
1009
|
+
progress: "_progress_m3x4i_153",
|
|
1010
|
+
toastInner: "_toastInner_m3x4i_181",
|
|
1011
|
+
toastBody: "_toastBody_m3x4i_187"
|
|
1012
|
+
}, de = 220, fe = {
|
|
1013
|
+
success: "✓",
|
|
1014
|
+
error: "✕",
|
|
1015
|
+
warning: "⚠",
|
|
1016
|
+
info: "ℹ"
|
|
1017
|
+
}, $ = t({ addToast: () => {} });
|
|
1018
|
+
function pe() {
|
|
1019
|
+
return r($);
|
|
1020
|
+
}
|
|
1021
|
+
function me({ dismissLabel: e, children: t }) {
|
|
1022
|
+
let [r, a] = c([]), d = s(0), f = s(/* @__PURE__ */ new Map());
|
|
1023
|
+
i(() => {
|
|
1024
|
+
let e = f.current;
|
|
1025
|
+
return () => e.forEach((e) => clearTimeout(e));
|
|
1026
|
+
}, []);
|
|
1027
|
+
let p = n((e) => {
|
|
1028
|
+
clearTimeout(f.current.get(e)), f.current.delete(e), a((t) => t.map((t) => t.id === e ? {
|
|
1029
|
+
...t,
|
|
1030
|
+
isExiting: !0
|
|
1031
|
+
} : t)), setTimeout(() => {
|
|
1032
|
+
a((t) => t.filter((t) => t.id !== e));
|
|
1033
|
+
}, de);
|
|
1034
|
+
}, []), m = n((e, t = "success", n = 4e3) => {
|
|
1035
|
+
let r = String(d.current++);
|
|
1036
|
+
a((i) => [...i, {
|
|
1037
|
+
id: r,
|
|
1038
|
+
message: e,
|
|
1039
|
+
variant: t,
|
|
1040
|
+
duration: n,
|
|
1041
|
+
isExiting: !1
|
|
1042
|
+
}]), f.current.set(r, setTimeout(() => p(r), n));
|
|
1043
|
+
}, [p]), h = o(() => ({ addToast: m }), [m]);
|
|
1044
|
+
return /* @__PURE__ */ u($.Provider, {
|
|
1045
|
+
value: h,
|
|
1046
|
+
children: [t, /* @__PURE__ */ l(he, {
|
|
1047
|
+
toasts: r,
|
|
1048
|
+
onDismiss: p,
|
|
1049
|
+
dismissLabel: e
|
|
1050
|
+
})]
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
function he({ toasts: e, onDismiss: t, dismissLabel: n }) {
|
|
1054
|
+
return /* @__PURE__ */ l("div", {
|
|
1055
|
+
className: Q.container,
|
|
1056
|
+
role: "status",
|
|
1057
|
+
"aria-atomic": "false",
|
|
1058
|
+
children: e.map((e) => /* @__PURE__ */ u("div", {
|
|
1059
|
+
className: `${Q.toast} ${Q[e.variant]} ${e.isExiting ? Q.exiting : ""}`,
|
|
1060
|
+
children: [
|
|
1061
|
+
/* @__PURE__ */ l("div", {
|
|
1062
|
+
className: Q.toastInner,
|
|
1063
|
+
children: /* @__PURE__ */ u("div", {
|
|
1064
|
+
className: Q.toastBody,
|
|
1065
|
+
children: [/* @__PURE__ */ l("span", {
|
|
1066
|
+
className: Q.icon,
|
|
1067
|
+
"aria-hidden": "true",
|
|
1068
|
+
children: fe[e.variant]
|
|
1069
|
+
}), /* @__PURE__ */ l("span", {
|
|
1070
|
+
className: Q.message,
|
|
1071
|
+
children: e.message
|
|
1072
|
+
})]
|
|
1073
|
+
})
|
|
1074
|
+
}),
|
|
1075
|
+
/* @__PURE__ */ l("button", {
|
|
1076
|
+
type: "button",
|
|
1077
|
+
className: Q.close,
|
|
1078
|
+
onClick: () => t(e.id),
|
|
1079
|
+
"aria-label": n,
|
|
1080
|
+
children: "×"
|
|
1081
|
+
}),
|
|
1082
|
+
/* @__PURE__ */ l("div", {
|
|
1083
|
+
className: Q.progress,
|
|
1084
|
+
style: { animationDuration: `${e.duration}ms` }
|
|
1085
|
+
})
|
|
1086
|
+
]
|
|
1087
|
+
}, e.id))
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
// src/hooks/useDragReorder.ts
|
|
1091
|
+
function ge(e, t) {
|
|
1092
|
+
let [n, r] = c(null), [i, a] = c(null), o = () => {
|
|
1093
|
+
r(null), a(null);
|
|
1094
|
+
}, s = (n, r) => {
|
|
1095
|
+
let i = (t) => t >= 0 && t < e.length;
|
|
1096
|
+
if (n === r || !i(n) || !i(r)) return;
|
|
1097
|
+
let a = [...e], [o] = a.splice(n, 1);
|
|
1098
|
+
a.splice(r, 0, o), t(a);
|
|
1099
|
+
};
|
|
1100
|
+
return {
|
|
1101
|
+
draggedIndex: n,
|
|
1102
|
+
overIndex: i,
|
|
1103
|
+
getItemProps: (e) => ({
|
|
1104
|
+
draggable: !0,
|
|
1105
|
+
onDragStart: (t) => {
|
|
1106
|
+
t.dataTransfer.effectAllowed = "move", r(e);
|
|
1107
|
+
},
|
|
1108
|
+
onDragOver: (t) => {
|
|
1109
|
+
t.preventDefault(), t.dataTransfer.dropEffect = "move", n !== null && n !== e && a(e);
|
|
1110
|
+
},
|
|
1111
|
+
onDragEnd: o,
|
|
1112
|
+
onDrop: (t) => {
|
|
1113
|
+
t.preventDefault(), n !== null && s(n, e), o();
|
|
1114
|
+
}
|
|
1115
|
+
}),
|
|
1116
|
+
moveItem: s
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
// src/hooks/useRotatingMessage.ts
|
|
1120
|
+
var _e = 300;
|
|
1121
|
+
function ve(e, t = 1e4, n = !1) {
|
|
1122
|
+
let [r, a] = c(0), [o, s] = c(!1);
|
|
1123
|
+
return i(() => {
|
|
1124
|
+
if (e.length <= 1 || n) return;
|
|
1125
|
+
let r, i = setInterval(() => {
|
|
1126
|
+
s(!0), r = setTimeout(() => {
|
|
1127
|
+
r = void 0, a((t) => (t + 1) % e.length), s(!1);
|
|
1128
|
+
}, _e);
|
|
1129
|
+
}, t);
|
|
1130
|
+
return () => {
|
|
1131
|
+
clearInterval(i), r !== void 0 && (clearTimeout(r), s(!1));
|
|
1132
|
+
};
|
|
1133
|
+
}, [
|
|
1134
|
+
e.length,
|
|
1135
|
+
t,
|
|
1136
|
+
n
|
|
1137
|
+
]), {
|
|
1138
|
+
message: e[r % e.length] ?? "",
|
|
1139
|
+
isFading: o
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
export { m as Button, _ as Card, y as Container, E as MATRIX_CONFIG, re as MATRIX_PRESETS, D as MATRIX_THEME_CONFIG, C as Markdown, ne as MarkdownEditor, k as MatrixContainer, A as ORBITAL_DOTS_CONFIG, M as OrbitalDots, ie as PageHero, L as PageTransition, P as Section, z as Select, V as ShimmerImage, ae as SideNav, J as Tag, se as TagFilter, ce as Text, le as TextArea, ue as TextInput, me as ToastProvider, ge as useDragReorder, ve as useRotatingMessage, pe as useToast };
|