@agentatom/design-system 1.4.83 → 1.4.84
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 +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.d.ts +9 -0
- package/dist/index.es.js +371 -358
- package/dist/light.css +5 -0
- package/dist/tokens.css +6 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import X, { useMemo as ut, useContext as ae, createContext as De, useState as L, useRef as I, useEffect as z, useLayoutEffect as ft, forwardRef as rt, useCallback as de } from "react";
|
|
2
2
|
import { Check as Le, X as te, ChevronDown as we, Minus as mt, Plus as pt, XCircle as Pe, AlertTriangle as Me, CheckCircle as ze, Info as Fe, ChevronUp as ht, ChevronsUpDown as xt, ChevronLeft as vt, ChevronRight as bt, Copy as _t, Brain as jt, Loader as Nt, Paperclip as He, Square as gt, ArrowUp as wt, Zap as yt, Cpu as Ye, FileText as kt, ThumbsUp as Et, ThumbsDown as Tt } from "lucide-react";
|
|
3
3
|
import oe from "react-dom";
|
|
4
|
-
const
|
|
4
|
+
const U = {
|
|
5
5
|
1: 16,
|
|
6
6
|
2: 20,
|
|
7
7
|
3: 24,
|
|
@@ -63,24 +63,24 @@ function Rt() {
|
|
|
63
63
|
return "Fragment";
|
|
64
64
|
case y:
|
|
65
65
|
return "Profiler";
|
|
66
|
-
case
|
|
66
|
+
case w:
|
|
67
67
|
return "StrictMode";
|
|
68
68
|
case S:
|
|
69
69
|
return "Suspense";
|
|
70
70
|
case B:
|
|
71
71
|
return "SuspenseList";
|
|
72
|
-
case
|
|
72
|
+
case E:
|
|
73
73
|
return "Activity";
|
|
74
74
|
}
|
|
75
75
|
if (typeof m == "object")
|
|
76
76
|
switch (typeof m.tag == "number" && console.error(
|
|
77
77
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
78
78
|
), m.$$typeof) {
|
|
79
|
-
case
|
|
79
|
+
case N:
|
|
80
80
|
return "Portal";
|
|
81
|
-
case
|
|
81
|
+
case j:
|
|
82
82
|
return m.displayName || "Context";
|
|
83
|
-
case
|
|
83
|
+
case k:
|
|
84
84
|
return (m._context.displayName || "Context") + ".Consumer";
|
|
85
85
|
case b:
|
|
86
86
|
var x = m.render;
|
|
@@ -128,14 +128,14 @@ function Rt() {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
function r() {
|
|
131
|
-
var m =
|
|
131
|
+
var m = O.A;
|
|
132
132
|
return m === null ? null : m.getOwner();
|
|
133
133
|
}
|
|
134
134
|
function o() {
|
|
135
135
|
return Error("react-stack-top-frame");
|
|
136
136
|
}
|
|
137
137
|
function i(m) {
|
|
138
|
-
if (
|
|
138
|
+
if (G.call(m, "key")) {
|
|
139
139
|
var x = Object.getOwnPropertyDescriptor(m, "key").get;
|
|
140
140
|
if (x && x.isReactWarning) return !1;
|
|
141
141
|
}
|
|
@@ -205,12 +205,12 @@ function Rt() {
|
|
|
205
205
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
206
206
|
);
|
|
207
207
|
else p(H);
|
|
208
|
-
if (
|
|
208
|
+
if (G.call(x, "key")) {
|
|
209
209
|
H = t(m);
|
|
210
210
|
var Z = Object.keys(x).filter(function(_e) {
|
|
211
211
|
return _e !== "key";
|
|
212
212
|
});
|
|
213
|
-
F = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
213
|
+
F = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", C[H + F] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
214
214
|
`A props object containing a "key" prop is being spread into JSX:
|
|
215
215
|
let props = %s;
|
|
216
216
|
<%s {...props} />
|
|
@@ -221,7 +221,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
221
221
|
H,
|
|
222
222
|
Z,
|
|
223
223
|
H
|
|
224
|
-
),
|
|
224
|
+
), C[H + F] = !0);
|
|
225
225
|
}
|
|
226
226
|
if (H = null, R !== void 0 && (n(R), H = "" + R), i(x) && (n(x.key), H = "" + x.key), "key" in x) {
|
|
227
227
|
R = {};
|
|
@@ -246,7 +246,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
246
246
|
function h(m) {
|
|
247
247
|
return typeof m == "object" && m !== null && m.$$typeof === v;
|
|
248
248
|
}
|
|
249
|
-
var f =
|
|
249
|
+
var f = X, v = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), j = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), W = Symbol.for("react.lazy"), E = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), O = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, Y = Array.isArray, _ = console.createTask ? console.createTask : function() {
|
|
250
250
|
return null;
|
|
251
251
|
};
|
|
252
252
|
f = {
|
|
@@ -257,26 +257,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
257
257
|
var A, $ = {}, q = f.react_stack_bottom_frame.bind(
|
|
258
258
|
f,
|
|
259
259
|
o
|
|
260
|
-
)(), V =
|
|
260
|
+
)(), V = _(a(o)), C = {};
|
|
261
261
|
ge.Fragment = g, ge.jsx = function(m, x, R) {
|
|
262
|
-
var F = 1e4 >
|
|
262
|
+
var F = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
263
263
|
return d(
|
|
264
264
|
m,
|
|
265
265
|
x,
|
|
266
266
|
R,
|
|
267
267
|
!1,
|
|
268
268
|
F ? Error("react-stack-top-frame") : q,
|
|
269
|
-
F ?
|
|
269
|
+
F ? _(a(m)) : V
|
|
270
270
|
);
|
|
271
271
|
}, ge.jsxs = function(m, x, R) {
|
|
272
|
-
var F = 1e4 >
|
|
272
|
+
var F = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
273
273
|
return d(
|
|
274
274
|
m,
|
|
275
275
|
x,
|
|
276
276
|
R,
|
|
277
277
|
!0,
|
|
278
278
|
F ? Error("react-stack-top-frame") : q,
|
|
279
|
-
F ?
|
|
279
|
+
F ? _(a(m)) : V
|
|
280
280
|
);
|
|
281
281
|
};
|
|
282
282
|
}()), ge;
|
|
@@ -355,11 +355,11 @@ function bs({ strings: t, children: s }) {
|
|
|
355
355
|
function ye() {
|
|
356
356
|
return ae(We);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function K() {
|
|
359
359
|
return ae(We).strings;
|
|
360
360
|
}
|
|
361
361
|
function St({ size: t = "m", color: s = "default", className: n = "", "aria-label": a, ...r }) {
|
|
362
|
-
const o =
|
|
362
|
+
const o = K();
|
|
363
363
|
return /* @__PURE__ */ e.jsx(
|
|
364
364
|
"span",
|
|
365
365
|
{
|
|
@@ -379,59 +379,72 @@ function ce({
|
|
|
379
379
|
icon: r,
|
|
380
380
|
disabled: o = !1,
|
|
381
381
|
state: i = "idle",
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
382
|
+
/**
|
|
383
|
+
* Toggle-on / latched look (filters, view switch, toolbar).
|
|
384
|
+
* Sets data-active + aria-pressed (unless aria-pressed is passed explicitly).
|
|
385
|
+
* Distinct from momentary CSS :active press.
|
|
386
|
+
*/
|
|
387
|
+
active: l = !1,
|
|
388
|
+
/** Alias of `active` — same toggle-on style. */
|
|
389
|
+
pressed: c = !1,
|
|
390
|
+
onClick: u,
|
|
391
|
+
type: d = "button",
|
|
392
|
+
href: p,
|
|
393
|
+
"aria-label": h,
|
|
394
|
+
"aria-pressed": f,
|
|
395
|
+
className: v = "",
|
|
396
|
+
...N
|
|
388
397
|
}) {
|
|
389
|
-
const
|
|
398
|
+
const g = r && !t, w = i === "loading", y = i === "success", k = i === "error", j = w || y || k, b = !!(l || c), S = n === "xs" ? "s" : "m", B = s === "danger" ? "on-accent" : "default", D = At[n] ?? 16, W = w ? /* @__PURE__ */ e.jsx(St, { size: S, color: B }) : y ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(Le, { size: D, strokeWidth: 2.5 }) }) : k ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(te, { size: D, strokeWidth: 2.5 }) }) : null, E = [
|
|
390
399
|
"ds-button",
|
|
391
400
|
`ds-button--${s}`,
|
|
392
401
|
`ds-button--${n}`,
|
|
393
402
|
a && "ds-button--full",
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
].filter(Boolean).join(" "),
|
|
397
|
-
|
|
403
|
+
g && "ds-button--icon-only",
|
|
404
|
+
v
|
|
405
|
+
].filter(Boolean).join(" "), P = i !== "idle" ? i : void 0, O = f !== void 0 ? f : b ? !0 : void 0, G = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
406
|
+
j ? W : r && /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: r }),
|
|
398
407
|
t
|
|
399
408
|
] });
|
|
400
|
-
if (
|
|
401
|
-
const
|
|
402
|
-
if (o ||
|
|
403
|
-
|
|
409
|
+
if (p) {
|
|
410
|
+
const Y = (_) => {
|
|
411
|
+
if (o || w) {
|
|
412
|
+
_.preventDefault();
|
|
404
413
|
return;
|
|
405
414
|
}
|
|
406
|
-
|
|
415
|
+
_.metaKey || _.ctrlKey || _.button === 1 || (_.preventDefault(), u == null || u(_));
|
|
407
416
|
};
|
|
408
417
|
return /* @__PURE__ */ e.jsx(
|
|
409
418
|
"a",
|
|
410
419
|
{
|
|
411
|
-
className:
|
|
412
|
-
href: o ||
|
|
413
|
-
onClick:
|
|
414
|
-
"aria-label":
|
|
415
|
-
"aria-disabled": o ||
|
|
416
|
-
"aria-busy":
|
|
417
|
-
"
|
|
418
|
-
|
|
419
|
-
|
|
420
|
+
className: E,
|
|
421
|
+
href: o || w ? void 0 : p,
|
|
422
|
+
onClick: Y,
|
|
423
|
+
"aria-label": h,
|
|
424
|
+
"aria-disabled": o || w ? "true" : void 0,
|
|
425
|
+
"aria-busy": w ? "true" : void 0,
|
|
426
|
+
"aria-pressed": O,
|
|
427
|
+
"data-state": P,
|
|
428
|
+
"data-active": b ? "true" : void 0,
|
|
429
|
+
...N,
|
|
430
|
+
children: G
|
|
420
431
|
}
|
|
421
432
|
);
|
|
422
433
|
}
|
|
423
434
|
return /* @__PURE__ */ e.jsx(
|
|
424
435
|
"button",
|
|
425
436
|
{
|
|
426
|
-
type:
|
|
427
|
-
className:
|
|
437
|
+
type: d,
|
|
438
|
+
className: E,
|
|
428
439
|
disabled: o,
|
|
429
|
-
onClick:
|
|
430
|
-
"aria-label":
|
|
431
|
-
"aria-busy":
|
|
432
|
-
"
|
|
433
|
-
|
|
434
|
-
|
|
440
|
+
onClick: w ? void 0 : u,
|
|
441
|
+
"aria-label": h,
|
|
442
|
+
"aria-busy": w ? "true" : void 0,
|
|
443
|
+
"aria-pressed": O,
|
|
444
|
+
"data-state": P,
|
|
445
|
+
"data-active": b ? "true" : void 0,
|
|
446
|
+
...N,
|
|
447
|
+
children: G
|
|
435
448
|
}
|
|
436
449
|
);
|
|
437
450
|
}
|
|
@@ -449,7 +462,7 @@ function _s({
|
|
|
449
462
|
iconRightLabel: d,
|
|
450
463
|
...p
|
|
451
464
|
}) {
|
|
452
|
-
const h =
|
|
465
|
+
const h = K(), f = u || `input-${X.useId()}`, v = n ? `${f}-hint` : void 0, N = s ? `${f}-error` : void 0, g = N || v;
|
|
453
466
|
return /* @__PURE__ */ e.jsxs("div", { className: `ds-input-wrapper ${a ? "ds-input-wrapper--full" : ""} ${c ? "ds-input-wrapper--disabled" : ""} ${s ? "ds-input-wrapper--error" : ""}`, children: [
|
|
454
467
|
t && /* @__PURE__ */ e.jsx("label", { className: "ds-input-label", htmlFor: f, children: t }),
|
|
455
468
|
/* @__PURE__ */ e.jsxs("div", { className: "ds-input-container", children: [
|
|
@@ -478,7 +491,7 @@ function _s({
|
|
|
478
491
|
)
|
|
479
492
|
] }),
|
|
480
493
|
n && !s && /* @__PURE__ */ e.jsx("span", { id: v, className: "ds-input-hint", children: n }),
|
|
481
|
-
/* @__PURE__ */ e.jsx("div", { className: "ds-input-error-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-inner", children: s && /* @__PURE__ */ e.jsx("span", { id:
|
|
494
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-input-error-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-inner", children: s && /* @__PURE__ */ e.jsx("span", { id: N, className: "ds-input-error", role: "alert", children: s }) }) })
|
|
482
495
|
] });
|
|
483
496
|
}
|
|
484
497
|
function js({
|
|
@@ -493,7 +506,7 @@ function js({
|
|
|
493
506
|
rows: c = 3,
|
|
494
507
|
...u
|
|
495
508
|
}) {
|
|
496
|
-
const d = i || `textarea-${
|
|
509
|
+
const d = i || `textarea-${X.useId()}`, p = n ? `${d}-hint` : void 0, h = s ? `${d}-error` : void 0, f = h || p;
|
|
497
510
|
return /* @__PURE__ */ e.jsxs("div", { className: `ds-textarea-wrapper ${a ? "ds-textarea-wrapper--full" : ""} ${o ? "ds-textarea-wrapper--disabled" : ""}`, children: [
|
|
498
511
|
t && /* @__PURE__ */ e.jsx("label", { className: "ds-textarea-label", htmlFor: d, children: t }),
|
|
499
512
|
/* @__PURE__ */ e.jsx(
|
|
@@ -525,23 +538,23 @@ function Ns({
|
|
|
525
538
|
id: u,
|
|
526
539
|
...d
|
|
527
540
|
}) {
|
|
528
|
-
const p =
|
|
529
|
-
|
|
541
|
+
const p = K(), h = r ?? p.selectOption, [f, v] = L(!1), [N, g] = L(!1), [w, y] = L({}), [k, j] = L("down"), [b, S] = L(-1), B = I(null), D = I(null), W = I(null), E = I(null), P = u || `select-${X.useId()}`, O = `${P}-label`, G = o ? `${P}-error` : void 0, Y = 150, _ = (x = !1) => {
|
|
542
|
+
N || (g(!0), S(-1), E.current = setTimeout(() => {
|
|
530
543
|
var R;
|
|
531
544
|
v(!1), g(!1), x && ((R = W.current) == null || R.focus());
|
|
532
545
|
}, Y));
|
|
533
546
|
}, A = (x) => {
|
|
534
|
-
clearTimeout(
|
|
547
|
+
clearTimeout(E.current), g(!1);
|
|
535
548
|
const R = x !== void 0 ? x : Math.max(a.findIndex((F) => F.value === s), 0);
|
|
536
549
|
S(R), v(!0);
|
|
537
550
|
};
|
|
538
|
-
z(() => () => clearTimeout(
|
|
551
|
+
z(() => () => clearTimeout(E.current), []);
|
|
539
552
|
const $ = () => {
|
|
540
553
|
var Z;
|
|
541
554
|
const x = (Z = B.current) == null ? void 0 : Z.getBoundingClientRect();
|
|
542
555
|
if (!x) return;
|
|
543
556
|
const R = window.innerHeight, F = R - x.bottom, ee = x.top, H = F < 300 && ee > F;
|
|
544
|
-
|
|
557
|
+
j(H ? "up" : "down"), y(
|
|
545
558
|
H ? { bottom: R - x.top + 4, left: x.left, width: x.width } : { top: x.bottom + 4, left: x.left, width: x.width }
|
|
546
559
|
);
|
|
547
560
|
};
|
|
@@ -552,10 +565,10 @@ function Ns({
|
|
|
552
565
|
};
|
|
553
566
|
}, [f]), z(() => {
|
|
554
567
|
const x = (R) => {
|
|
555
|
-
B.current && !B.current.contains(R.target) && D.current && !D.current.contains(R.target) &&
|
|
568
|
+
B.current && !B.current.contains(R.target) && D.current && !D.current.contains(R.target) && _();
|
|
556
569
|
};
|
|
557
570
|
return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
558
|
-
}, [
|
|
571
|
+
}, [N]), z(() => {
|
|
559
572
|
var R;
|
|
560
573
|
if (!f || b < 0 || !D.current) return;
|
|
561
574
|
(R = D.current.querySelectorAll(".ds-select-option")[b]) == null || R.scrollIntoView({ block: "nearest" });
|
|
@@ -576,30 +589,30 @@ function Ns({
|
|
|
576
589
|
break;
|
|
577
590
|
case "Enter":
|
|
578
591
|
case " ":
|
|
579
|
-
x.preventDefault(), f ? b >= 0 && (n == null || n(a[b].value),
|
|
592
|
+
x.preventDefault(), f ? b >= 0 && (n == null || n(a[b].value), _(!0)) : A();
|
|
580
593
|
break;
|
|
581
594
|
case "Escape":
|
|
582
|
-
f && (x.preventDefault(),
|
|
595
|
+
f && (x.preventDefault(), _(!0));
|
|
583
596
|
break;
|
|
584
597
|
case "Tab":
|
|
585
|
-
f &&
|
|
598
|
+
f && _(!1);
|
|
586
599
|
break;
|
|
587
600
|
}
|
|
588
|
-
}, V = a.find((x) => x.value === s),
|
|
601
|
+
}, V = a.find((x) => x.value === s), C = l === "xs" ? U[1] : l === "small" ? U[2] : U[3], m = f && /* @__PURE__ */ e.jsx(
|
|
589
602
|
"div",
|
|
590
603
|
{
|
|
591
604
|
ref: D,
|
|
592
605
|
"data-ds-portal": "",
|
|
593
606
|
role: "listbox",
|
|
594
|
-
"aria-labelledby": t ?
|
|
607
|
+
"aria-labelledby": t ? O : void 0,
|
|
595
608
|
tabIndex: -1,
|
|
596
609
|
className: [
|
|
597
610
|
"ds-select-dropdown ds-scrollable",
|
|
598
611
|
`ds-select-dropdown--${l}`,
|
|
599
|
-
`ds-select-dropdown--${
|
|
600
|
-
|
|
612
|
+
`ds-select-dropdown--${k}`,
|
|
613
|
+
N && "ds-select-dropdown--closing"
|
|
601
614
|
].filter(Boolean).join(" "),
|
|
602
|
-
style:
|
|
615
|
+
style: w,
|
|
603
616
|
children: a.map((x, R) => /* @__PURE__ */ e.jsx(
|
|
604
617
|
"button",
|
|
605
618
|
{
|
|
@@ -615,7 +628,7 @@ function Ns({
|
|
|
615
628
|
R === b && "ds-select-option--active"
|
|
616
629
|
].filter(Boolean).join(" "),
|
|
617
630
|
onClick: () => {
|
|
618
|
-
n == null || n(x.value),
|
|
631
|
+
n == null || n(x.value), _(!0);
|
|
619
632
|
},
|
|
620
633
|
children: x.label
|
|
621
634
|
},
|
|
@@ -624,7 +637,7 @@ function Ns({
|
|
|
624
637
|
}
|
|
625
638
|
);
|
|
626
639
|
return /* @__PURE__ */ e.jsxs("div", { className: `ds-select-wrapper ${i ? "ds-select-wrapper--full" : ""} ${c ? "ds-select-wrapper--disabled" : ""}`, children: [
|
|
627
|
-
t && /* @__PURE__ */ e.jsx("label", { id:
|
|
640
|
+
t && /* @__PURE__ */ e.jsx("label", { id: O, className: "ds-select-label", children: t }),
|
|
628
641
|
/* @__PURE__ */ e.jsx("div", { className: "ds-select-container", ref: B, children: /* @__PURE__ */ e.jsxs(
|
|
629
642
|
"button",
|
|
630
643
|
{
|
|
@@ -635,12 +648,12 @@ function Ns({
|
|
|
635
648
|
"aria-haspopup": "listbox",
|
|
636
649
|
"aria-expanded": f,
|
|
637
650
|
"aria-activedescendant": f && b >= 0 ? `${P}-opt-${b}` : void 0,
|
|
638
|
-
"aria-labelledby": t ?
|
|
651
|
+
"aria-labelledby": t ? O : void 0,
|
|
639
652
|
"aria-invalid": o ? "true" : "false",
|
|
640
|
-
"aria-describedby":
|
|
653
|
+
"aria-describedby": G,
|
|
641
654
|
className: `ds-select-trigger ds-select-trigger--${l} ${o ? "ds-select-trigger--error" : ""}`,
|
|
642
655
|
onClick: () => {
|
|
643
|
-
c || (f ?
|
|
656
|
+
c || (f ? _() : A());
|
|
644
657
|
},
|
|
645
658
|
onKeyDown: q,
|
|
646
659
|
disabled: c,
|
|
@@ -650,16 +663,16 @@ function Ns({
|
|
|
650
663
|
/* @__PURE__ */ e.jsx(
|
|
651
664
|
we,
|
|
652
665
|
{
|
|
653
|
-
size:
|
|
666
|
+
size: C,
|
|
654
667
|
strokeWidth: 1.5,
|
|
655
|
-
className: `ds-select-icon ${f &&
|
|
668
|
+
className: `ds-select-icon ${f && k === "down" ? "ds-select-icon--open" : ""} ${f && k === "up" ? "ds-select-icon--up" : ""}`,
|
|
656
669
|
"aria-hidden": "true"
|
|
657
670
|
}
|
|
658
671
|
)
|
|
659
672
|
]
|
|
660
673
|
}
|
|
661
674
|
) }),
|
|
662
|
-
o && /* @__PURE__ */ e.jsx("span", { id:
|
|
675
|
+
o && /* @__PURE__ */ e.jsx("span", { id: G, className: "ds-select-error", role: "alert", children: o }),
|
|
663
676
|
typeof document < "u" && oe.createPortal(m, document.body)
|
|
664
677
|
] });
|
|
665
678
|
}
|
|
@@ -678,17 +691,17 @@ function gs({
|
|
|
678
691
|
increaseLabel: p,
|
|
679
692
|
...h
|
|
680
693
|
}) {
|
|
681
|
-
const f =
|
|
694
|
+
const f = K(), v = () => {
|
|
682
695
|
if (l) return;
|
|
683
|
-
const
|
|
684
|
-
n == null || n(
|
|
685
|
-
},
|
|
696
|
+
const j = Math.min(Number(s) + o, r);
|
|
697
|
+
n == null || n(j);
|
|
698
|
+
}, N = () => {
|
|
686
699
|
if (l) return;
|
|
687
|
-
const
|
|
688
|
-
n == null || n(
|
|
689
|
-
}, g = (
|
|
700
|
+
const j = Math.max(Number(s) - o, a);
|
|
701
|
+
n == null || n(j);
|
|
702
|
+
}, g = (j) => {
|
|
690
703
|
if (l) return;
|
|
691
|
-
const b =
|
|
704
|
+
const b = j.target.value;
|
|
692
705
|
if (b === "") {
|
|
693
706
|
n == null || n(a);
|
|
694
707
|
return;
|
|
@@ -698,7 +711,7 @@ function gs({
|
|
|
698
711
|
const B = Math.min(Math.max(S, a), r);
|
|
699
712
|
n == null || n(B);
|
|
700
713
|
}
|
|
701
|
-
},
|
|
714
|
+
}, w = [
|
|
702
715
|
"ds-stepper-wrapper",
|
|
703
716
|
l && "ds-stepper-wrapper--disabled",
|
|
704
717
|
u && "ds-stepper-wrapper--error"
|
|
@@ -706,8 +719,8 @@ function gs({
|
|
|
706
719
|
"ds-stepper",
|
|
707
720
|
`ds-stepper--${i}`,
|
|
708
721
|
l && "ds-stepper--disabled"
|
|
709
|
-
].filter(Boolean).join(" "),
|
|
710
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
722
|
+
].filter(Boolean).join(" "), k = i === "xs" ? U[1] : i === "small" ? U[2] : U[3];
|
|
723
|
+
return /* @__PURE__ */ e.jsxs("div", { className: w, children: [
|
|
711
724
|
t && /* @__PURE__ */ e.jsx("label", { className: "ds-stepper-label", children: t }),
|
|
712
725
|
/* @__PURE__ */ e.jsxs("div", { className: y, children: [
|
|
713
726
|
/* @__PURE__ */ e.jsx(
|
|
@@ -715,10 +728,10 @@ function gs({
|
|
|
715
728
|
{
|
|
716
729
|
type: "button",
|
|
717
730
|
className: "ds-stepper-button ds-stepper-button--minus",
|
|
718
|
-
onClick:
|
|
731
|
+
onClick: N,
|
|
719
732
|
disabled: l || s <= a,
|
|
720
733
|
"aria-label": d ?? f.decrease,
|
|
721
|
-
children: /* @__PURE__ */ e.jsx(mt, { size:
|
|
734
|
+
children: /* @__PURE__ */ e.jsx(mt, { size: k, strokeWidth: 1.5 })
|
|
722
735
|
}
|
|
723
736
|
),
|
|
724
737
|
/* @__PURE__ */ e.jsx(
|
|
@@ -743,7 +756,7 @@ function gs({
|
|
|
743
756
|
onClick: v,
|
|
744
757
|
disabled: l || s >= r,
|
|
745
758
|
"aria-label": p ?? f.increase,
|
|
746
|
-
children: /* @__PURE__ */ e.jsx(pt, { size:
|
|
759
|
+
children: /* @__PURE__ */ e.jsx(pt, { size: k, strokeWidth: 1.5 })
|
|
747
760
|
}
|
|
748
761
|
)
|
|
749
762
|
] }),
|
|
@@ -770,12 +783,12 @@ function ws({
|
|
|
770
783
|
l
|
|
771
784
|
].filter(Boolean).join(" ");
|
|
772
785
|
if (o) {
|
|
773
|
-
const v = (
|
|
786
|
+
const v = (N) => {
|
|
774
787
|
if (i) {
|
|
775
|
-
|
|
788
|
+
N.preventDefault();
|
|
776
789
|
return;
|
|
777
790
|
}
|
|
778
|
-
|
|
791
|
+
N.metaKey || N.ctrlKey || N.button === 1 || (N.preventDefault(), r == null || r(N));
|
|
779
792
|
};
|
|
780
793
|
return /* @__PURE__ */ e.jsx(
|
|
781
794
|
"a",
|
|
@@ -845,7 +858,7 @@ const Bt = {
|
|
|
845
858
|
success: ze,
|
|
846
859
|
warning: Me,
|
|
847
860
|
error: Pe
|
|
848
|
-
}, Rs =
|
|
861
|
+
}, Rs = X.forwardRef(function({
|
|
849
862
|
children: s,
|
|
850
863
|
variant: n = "info",
|
|
851
864
|
title: a,
|
|
@@ -854,9 +867,9 @@ const Bt = {
|
|
|
854
867
|
closeLabel: i,
|
|
855
868
|
...l
|
|
856
869
|
}, c) {
|
|
857
|
-
const u =
|
|
870
|
+
const u = K(), d = Bt[n], p = o || (n === "error" ? "alert" : "status");
|
|
858
871
|
return /* @__PURE__ */ e.jsxs("div", { ref: c, className: `ds-alert ds-alert--${n} ${a ? "" : "ds-alert--no-title"}`, role: p, ...l, children: [
|
|
859
|
-
d && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__icon", children: /* @__PURE__ */ e.jsx(d, { size:
|
|
872
|
+
d && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__icon", children: /* @__PURE__ */ e.jsx(d, { size: U[3], strokeWidth: 1.5 }) }),
|
|
860
873
|
/* @__PURE__ */ e.jsxs("div", { className: "ds-alert__content", children: [
|
|
861
874
|
a && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__title", children: a }),
|
|
862
875
|
s && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__message", children: s })
|
|
@@ -868,7 +881,7 @@ const Bt = {
|
|
|
868
881
|
className: "ds-alert__close",
|
|
869
882
|
onClick: r,
|
|
870
883
|
"aria-label": i ?? u.closeAlert,
|
|
871
|
-
children: /* @__PURE__ */ e.jsx(te, { size:
|
|
884
|
+
children: /* @__PURE__ */ e.jsx(te, { size: U[3], strokeWidth: 1.5 })
|
|
872
885
|
}
|
|
873
886
|
)
|
|
874
887
|
] });
|
|
@@ -883,24 +896,24 @@ function Ss({
|
|
|
883
896
|
closeLabel: i,
|
|
884
897
|
...l
|
|
885
898
|
}) {
|
|
886
|
-
const c =
|
|
899
|
+
const c = K(), u = I(null), d = X.useId(), [p, h] = L(!1), f = () => {
|
|
887
900
|
!n || p || (h(!0), setTimeout(() => {
|
|
888
901
|
h(!1), n();
|
|
889
902
|
}, Dt));
|
|
890
903
|
};
|
|
891
904
|
z(() => {
|
|
892
|
-
const y = (
|
|
893
|
-
|
|
894
|
-
},
|
|
905
|
+
const y = (j) => {
|
|
906
|
+
j.key === "Escape" && f();
|
|
907
|
+
}, k = (j) => {
|
|
895
908
|
var S, B, D;
|
|
896
|
-
const b = ((B = (S =
|
|
909
|
+
const b = ((B = (S = j.composedPath) == null ? void 0 : S.call(j)) == null ? void 0 : B[0]) ?? j.target;
|
|
897
910
|
u.current && !u.current.contains(b) && !((D = b.closest) != null && D.call(b, "[data-ds-portal]")) && f();
|
|
898
911
|
};
|
|
899
|
-
return document.addEventListener("keydown", y), document.addEventListener("mousedown",
|
|
900
|
-
document.removeEventListener("keydown", y), document.removeEventListener("mousedown",
|
|
912
|
+
return document.addEventListener("keydown", y), document.addEventListener("mousedown", k), () => {
|
|
913
|
+
document.removeEventListener("keydown", y), document.removeEventListener("mousedown", k);
|
|
901
914
|
};
|
|
902
915
|
}, [n, p]);
|
|
903
|
-
const v =
|
|
916
|
+
const v = X.Children.toArray(t), N = v.find((y) => (y == null ? void 0 : y.type) === xe), g = v.filter((y) => (y == null ? void 0 : y.type) !== xe), w = /* @__PURE__ */ e.jsx("div", { className: ["ds-modal-overlay", p && "ds-modal-overlay--closing"].filter(Boolean).join(" "), ...l, children: /* @__PURE__ */ e.jsxs(
|
|
904
917
|
"div",
|
|
905
918
|
{
|
|
906
919
|
className: [`ds-modal ds-modal--${a}`, r && "ds-modal--scrollable"].filter(Boolean).join(" "),
|
|
@@ -915,7 +928,7 @@ function Ss({
|
|
|
915
928
|
className: "ds-modal__close",
|
|
916
929
|
variant: "ghost",
|
|
917
930
|
size: "small",
|
|
918
|
-
icon: /* @__PURE__ */ e.jsx(te, { size:
|
|
931
|
+
icon: /* @__PURE__ */ e.jsx(te, { size: U[2], strokeWidth: 1.5 }),
|
|
919
932
|
onClick: f,
|
|
920
933
|
"aria-label": i ?? c.closeModal
|
|
921
934
|
}
|
|
@@ -925,14 +938,14 @@ function Ss({
|
|
|
925
938
|
o && /* @__PURE__ */ e.jsx("div", { className: "ds-modal__subheader", children: o })
|
|
926
939
|
] }),
|
|
927
940
|
/* @__PURE__ */ e.jsx("div", { className: "ds-modal__body ds-scrollable", children: g }),
|
|
928
|
-
|
|
941
|
+
N
|
|
929
942
|
]
|
|
930
943
|
}
|
|
931
944
|
) });
|
|
932
|
-
return typeof document > "u" ?
|
|
945
|
+
return typeof document > "u" ? w : oe.createPortal(w, document.body);
|
|
933
946
|
}
|
|
934
947
|
function xe({ children: t }) {
|
|
935
|
-
return !t ||
|
|
948
|
+
return !t || X.Children.count(t) === 0 ? null : /* @__PURE__ */ e.jsx("div", { className: "ds-modal__footer", children: t });
|
|
936
949
|
}
|
|
937
950
|
const Lt = 320;
|
|
938
951
|
function As({
|
|
@@ -943,7 +956,7 @@ function As({
|
|
|
943
956
|
closeLabel: r,
|
|
944
957
|
...o
|
|
945
958
|
}) {
|
|
946
|
-
const i =
|
|
959
|
+
const i = K(), l = I(null), c = X.useId(), [u, d] = L(!1), p = () => {
|
|
947
960
|
!n || u || (d(!0), setTimeout(() => {
|
|
948
961
|
d(!1), n();
|
|
949
962
|
}, Lt));
|
|
@@ -951,16 +964,16 @@ function As({
|
|
|
951
964
|
z(() => {
|
|
952
965
|
const g = (y) => {
|
|
953
966
|
y.key === "Escape" && p();
|
|
954
|
-
},
|
|
955
|
-
var
|
|
956
|
-
const
|
|
957
|
-
l.current && !l.current.contains(
|
|
967
|
+
}, w = (y) => {
|
|
968
|
+
var j, b, S;
|
|
969
|
+
const k = ((b = (j = y.composedPath) == null ? void 0 : j.call(y)) == null ? void 0 : b[0]) ?? y.target;
|
|
970
|
+
l.current && !l.current.contains(k) && !((S = k.closest) != null && S.call(k, "[data-ds-portal]")) && p();
|
|
958
971
|
};
|
|
959
|
-
return document.addEventListener("keydown", g), document.addEventListener("mousedown",
|
|
960
|
-
document.removeEventListener("keydown", g), document.removeEventListener("mousedown",
|
|
972
|
+
return document.addEventListener("keydown", g), document.addEventListener("mousedown", w), () => {
|
|
973
|
+
document.removeEventListener("keydown", g), document.removeEventListener("mousedown", w);
|
|
961
974
|
};
|
|
962
975
|
}, [n, u]);
|
|
963
|
-
const h =
|
|
976
|
+
const h = X.Children.toArray(t), f = h.find((g) => (g == null ? void 0 : g.type) === xe), v = h.filter((g) => (g == null ? void 0 : g.type) !== xe), N = /* @__PURE__ */ e.jsx(
|
|
964
977
|
"div",
|
|
965
978
|
{
|
|
966
979
|
className: ["ds-bottom-sheet-overlay", u && "ds-bottom-sheet-overlay--closing"].filter(Boolean).join(" "),
|
|
@@ -981,7 +994,7 @@ function As({
|
|
|
981
994
|
className: "ds-bottom-sheet__close",
|
|
982
995
|
variant: "ghost",
|
|
983
996
|
size: "small",
|
|
984
|
-
icon: /* @__PURE__ */ e.jsx(te, { size:
|
|
997
|
+
icon: /* @__PURE__ */ e.jsx(te, { size: U[2], strokeWidth: 1.5 }),
|
|
985
998
|
onClick: p,
|
|
986
999
|
"aria-label": r ?? i.close
|
|
987
1000
|
}
|
|
@@ -997,7 +1010,7 @@ function As({
|
|
|
997
1010
|
)
|
|
998
1011
|
}
|
|
999
1012
|
);
|
|
1000
|
-
return typeof document > "u" ?
|
|
1013
|
+
return typeof document > "u" ? N : oe.createPortal(N, document.body);
|
|
1001
1014
|
}
|
|
1002
1015
|
function Pt({
|
|
1003
1016
|
children: t,
|
|
@@ -1009,15 +1022,15 @@ function Pt({
|
|
|
1009
1022
|
className: i = "",
|
|
1010
1023
|
...l
|
|
1011
1024
|
}) {
|
|
1012
|
-
const c =
|
|
1025
|
+
const c = K(), u = s ?? c.code, [d, p] = L(n), h = a !== void 0, f = h ? a : d, v = () => {
|
|
1013
1026
|
h ? r == null || r(!a) : p((g) => !g);
|
|
1014
|
-
},
|
|
1027
|
+
}, N = [
|
|
1015
1028
|
"ds-code-accordion",
|
|
1016
1029
|
`ds-code-accordion--${o}`,
|
|
1017
1030
|
f && "ds-code-accordion--expanded",
|
|
1018
1031
|
i
|
|
1019
1032
|
].filter(Boolean).join(" ");
|
|
1020
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
1033
|
+
return /* @__PURE__ */ e.jsxs("div", { className: N, ...l, children: [
|
|
1021
1034
|
/* @__PURE__ */ e.jsxs(
|
|
1022
1035
|
"button",
|
|
1023
1036
|
{
|
|
@@ -1030,7 +1043,7 @@ function Pt({
|
|
|
1030
1043
|
/* @__PURE__ */ e.jsx(
|
|
1031
1044
|
we,
|
|
1032
1045
|
{
|
|
1033
|
-
size:
|
|
1046
|
+
size: U[2],
|
|
1034
1047
|
strokeWidth: 1.5,
|
|
1035
1048
|
className: `ds-code-accordion__icon ${f ? "ds-code-accordion__icon--expanded" : ""}`
|
|
1036
1049
|
}
|
|
@@ -1042,7 +1055,7 @@ function Pt({
|
|
|
1042
1055
|
] });
|
|
1043
1056
|
}
|
|
1044
1057
|
function Is({ children: t, block: s = !1, collapsible: n = !1, title: a, defaultExpanded: r = !1, ...o }) {
|
|
1045
|
-
const i =
|
|
1058
|
+
const i = K(), l = a ?? i.code;
|
|
1046
1059
|
return s ? n ? /* @__PURE__ */ e.jsx(Pt, { title: l, defaultExpanded: r, ...o, children: t }) : /* @__PURE__ */ e.jsx("pre", { className: "ds-code-block ds-scrollable", ...o, children: /* @__PURE__ */ e.jsx("code", { children: t }) }) : /* @__PURE__ */ e.jsx("code", { className: "ds-code-inline", ...o, children: t });
|
|
1047
1060
|
}
|
|
1048
1061
|
function Bs({ href: t, children: s, onClick: n, target: a, rel: r, ...o }) {
|
|
@@ -1061,7 +1074,7 @@ function Bs({ href: t, children: s, onClick: n, target: a, rel: r, ...o }) {
|
|
|
1061
1074
|
);
|
|
1062
1075
|
}
|
|
1063
1076
|
function Ds({ children: t, size: s = "m", variant: n = "ghost", ...a }) {
|
|
1064
|
-
return /* @__PURE__ */ e.jsx("div", { className: "ds-tabs", role: "tablist", ...a, children:
|
|
1077
|
+
return /* @__PURE__ */ e.jsx("div", { className: "ds-tabs", role: "tablist", ...a, children: X.Children.map(t, (r) => X.isValidElement(r) ? X.cloneElement(r, { size: s, variant: n }) : r) });
|
|
1065
1078
|
}
|
|
1066
1079
|
function Ls({ children: t, selected: s = !1, onClick: n, size: a = "m", variant: r = "ghost", disabled: o = !1, icon: i, href: l, ...c }) {
|
|
1067
1080
|
const u = i && !t, d = [
|
|
@@ -1114,13 +1127,13 @@ function Ps({ options: t, value: s, onChange: n, size: a = "m", disabled: r = !1
|
|
|
1114
1127
|
if (!o.current) return;
|
|
1115
1128
|
const f = o.current.querySelector(`[data-value="${s}"]`);
|
|
1116
1129
|
if (!f) return;
|
|
1117
|
-
const v = o.current.getBoundingClientRect(),
|
|
1118
|
-
i.current ? (i.current.style.transition = u.current ? "left var(--transition-normal), width var(--transition-normal)" : "none", i.current.style.left = g + "px", i.current.style.width =
|
|
1130
|
+
const v = o.current.getBoundingClientRect(), N = f.getBoundingClientRect(), g = N.left - v.left, w = N.width;
|
|
1131
|
+
i.current ? (i.current.style.transition = u.current ? "left var(--transition-normal), width var(--transition-normal)" : "none", i.current.style.left = g + "px", i.current.style.width = w + "px", u.current = !1) : (c(!0), requestAnimationFrame(() => {
|
|
1119
1132
|
if (!i.current || !o.current) return;
|
|
1120
1133
|
const y = o.current.querySelector(`[data-value="${s}"]`);
|
|
1121
1134
|
if (!y) return;
|
|
1122
|
-
const
|
|
1123
|
-
i.current.style.transition = "none", i.current.style.left =
|
|
1135
|
+
const k = o.current.getBoundingClientRect(), j = y.getBoundingClientRect();
|
|
1136
|
+
i.current.style.transition = "none", i.current.style.left = j.left - k.left + "px", i.current.style.width = j.width + "px";
|
|
1124
1137
|
}));
|
|
1125
1138
|
};
|
|
1126
1139
|
return p.current = h, ft(() => {
|
|
@@ -1200,7 +1213,7 @@ function Oe({
|
|
|
1200
1213
|
/* @__PURE__ */ e.jsx(
|
|
1201
1214
|
we,
|
|
1202
1215
|
{
|
|
1203
|
-
size:
|
|
1216
|
+
size: U[2],
|
|
1204
1217
|
strokeWidth: 1.5,
|
|
1205
1218
|
className: `ds-accordion__icon ${d ? "ds-accordion__icon--expanded" : ""}`
|
|
1206
1219
|
}
|
|
@@ -1246,28 +1259,28 @@ function zt(t, s, n) {
|
|
|
1246
1259
|
function Ce({ children: t, content: s, position: n, ...a }) {
|
|
1247
1260
|
const [r, o] = L(!1), [i, l] = L({ visibility: "hidden" }), [c, u] = L(n || "top"), d = I(null), p = I(null), h = I(!1), f = () => {
|
|
1248
1261
|
if (!d.current || !p.current) return;
|
|
1249
|
-
const
|
|
1250
|
-
u(
|
|
1262
|
+
const N = d.current.getBoundingClientRect(), g = p.current.getBoundingClientRect(), w = n || zt(N, g.height, g.width), { top: y, left: k, arrowOffset: j } = Mt(w, N, g);
|
|
1263
|
+
u(w), l({
|
|
1251
1264
|
position: "fixed",
|
|
1252
1265
|
top: y,
|
|
1253
|
-
left:
|
|
1266
|
+
left: k,
|
|
1254
1267
|
visibility: "visible",
|
|
1255
|
-
"--arrow-offset": `${
|
|
1268
|
+
"--arrow-offset": `${j}px`
|
|
1256
1269
|
});
|
|
1257
1270
|
};
|
|
1258
1271
|
if (z(() => {
|
|
1259
1272
|
if (!r) return;
|
|
1260
1273
|
l({ position: "fixed", visibility: "hidden" });
|
|
1261
|
-
const
|
|
1274
|
+
const N = requestAnimationFrame(f);
|
|
1262
1275
|
return window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), () => {
|
|
1263
|
-
cancelAnimationFrame(
|
|
1276
|
+
cancelAnimationFrame(N), window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
|
|
1264
1277
|
};
|
|
1265
1278
|
}, [r, n]), z(() => {
|
|
1266
1279
|
if (!r) return;
|
|
1267
|
-
const
|
|
1280
|
+
const N = (g) => {
|
|
1268
1281
|
d.current && !d.current.contains(g.target) && o(!1);
|
|
1269
1282
|
};
|
|
1270
|
-
return document.addEventListener("touchstart",
|
|
1283
|
+
return document.addEventListener("touchstart", N), () => document.removeEventListener("touchstart", N);
|
|
1271
1284
|
}, [r]), !s) return t;
|
|
1272
1285
|
const v = r && /* @__PURE__ */ e.jsx(
|
|
1273
1286
|
"div",
|
|
@@ -1292,7 +1305,7 @@ function Ce({ children: t, content: s, position: n, ...a }) {
|
|
|
1292
1305
|
h.current || o(!1);
|
|
1293
1306
|
},
|
|
1294
1307
|
onTouchStart: () => {
|
|
1295
|
-
h.current = !0, o((
|
|
1308
|
+
h.current = !0, o((N) => !N);
|
|
1296
1309
|
},
|
|
1297
1310
|
...a,
|
|
1298
1311
|
children: [
|
|
@@ -1311,7 +1324,7 @@ function Ms({
|
|
|
1311
1324
|
id: o,
|
|
1312
1325
|
...i
|
|
1313
1326
|
}) {
|
|
1314
|
-
const l = o || `toggle-${
|
|
1327
|
+
const l = o || `toggle-${X.useId()}`, c = [
|
|
1315
1328
|
"ds-toggle",
|
|
1316
1329
|
`ds-toggle--${n}`,
|
|
1317
1330
|
a && "ds-toggle--disabled"
|
|
@@ -1342,7 +1355,7 @@ function zs({
|
|
|
1342
1355
|
id: o,
|
|
1343
1356
|
...i
|
|
1344
1357
|
}) {
|
|
1345
|
-
const l = o || `checkbox-${
|
|
1358
|
+
const l = o || `checkbox-${X.useId()}`, c = [
|
|
1346
1359
|
"ds-checkbox",
|
|
1347
1360
|
`ds-checkbox--${n}`,
|
|
1348
1361
|
a && "ds-checkbox--disabled"
|
|
@@ -1382,7 +1395,7 @@ function Fs({
|
|
|
1382
1395
|
id: l,
|
|
1383
1396
|
...c
|
|
1384
1397
|
}) {
|
|
1385
|
-
const u = l || `radio-${
|
|
1398
|
+
const u = l || `radio-${X.useId()}`, d = [
|
|
1386
1399
|
"ds-radio",
|
|
1387
1400
|
`ds-radio--${n}`,
|
|
1388
1401
|
a && "ds-radio--disabled"
|
|
@@ -1594,7 +1607,7 @@ function Ks({
|
|
|
1594
1607
|
style: c,
|
|
1595
1608
|
...u
|
|
1596
1609
|
}) {
|
|
1597
|
-
const d =
|
|
1610
|
+
const d = X.useId(), p = o ?? d, h = `${p}-hint`, f = `${p}-error`;
|
|
1598
1611
|
return /* @__PURE__ */ e.jsxs(
|
|
1599
1612
|
"div",
|
|
1600
1613
|
{
|
|
@@ -1642,7 +1655,7 @@ function Js({
|
|
|
1642
1655
|
style: r,
|
|
1643
1656
|
...o
|
|
1644
1657
|
}) {
|
|
1645
|
-
const i =
|
|
1658
|
+
const i = K(), l = X.Children.toArray(t).filter(Boolean);
|
|
1646
1659
|
return /* @__PURE__ */ e.jsx(
|
|
1647
1660
|
"nav",
|
|
1648
1661
|
{
|
|
@@ -1669,7 +1682,7 @@ function Zs({
|
|
|
1669
1682
|
style: c,
|
|
1670
1683
|
...u
|
|
1671
1684
|
}) {
|
|
1672
|
-
const d =
|
|
1685
|
+
const d = K(), { t: p } = ye(), h = Ut(t, s, a);
|
|
1673
1686
|
return /* @__PURE__ */ e.jsxs(
|
|
1674
1687
|
"nav",
|
|
1675
1688
|
{
|
|
@@ -1736,24 +1749,24 @@ function Qs({
|
|
|
1736
1749
|
closeLabel: u,
|
|
1737
1750
|
...d
|
|
1738
1751
|
}) {
|
|
1739
|
-
const p =
|
|
1740
|
-
!n || v || (
|
|
1741
|
-
|
|
1752
|
+
const p = K(), h = I(null), f = X.useId(), [v, N] = L(!1), g = () => {
|
|
1753
|
+
!n || v || (N(!0), setTimeout(() => {
|
|
1754
|
+
N(!1), n();
|
|
1742
1755
|
}, Vt));
|
|
1743
1756
|
};
|
|
1744
1757
|
z(() => {
|
|
1745
1758
|
const b = (B) => {
|
|
1746
1759
|
B.key === "Escape" && g();
|
|
1747
1760
|
}, S = (B) => {
|
|
1748
|
-
var W,
|
|
1749
|
-
const D = ((
|
|
1750
|
-
(P = c == null ? void 0 : c.current) != null && P.contains(D) || h.current && !h.current.contains(D) && !((
|
|
1761
|
+
var W, E, P, O;
|
|
1762
|
+
const D = ((E = (W = B.composedPath) == null ? void 0 : W.call(B)) == null ? void 0 : E[0]) ?? B.target;
|
|
1763
|
+
(P = c == null ? void 0 : c.current) != null && P.contains(D) || h.current && !h.current.contains(D) && !((O = D.closest) != null && O.call(D, "[data-ds-portal]")) && g();
|
|
1751
1764
|
};
|
|
1752
1765
|
return document.addEventListener("keydown", b), document.addEventListener("mousedown", S), () => {
|
|
1753
1766
|
document.removeEventListener("keydown", b), document.removeEventListener("mousedown", S);
|
|
1754
1767
|
};
|
|
1755
1768
|
}, [n, v, c]);
|
|
1756
|
-
const
|
|
1769
|
+
const w = X.Children.toArray(t), y = w.find((b) => (b == null ? void 0 : b.type) === Ke || (b == null ? void 0 : b.type) === xe), k = w.filter((b) => (b == null ? void 0 : b.type) !== Ke && (b == null ? void 0 : b.type) !== xe), j = /* @__PURE__ */ e.jsx(
|
|
1757
1770
|
"div",
|
|
1758
1771
|
{
|
|
1759
1772
|
className: ["ds-side-page-overlay", v && "ds-side-page-overlay--closing"].filter(Boolean).join(" "),
|
|
@@ -1777,7 +1790,7 @@ function Qs({
|
|
|
1777
1790
|
className: "ds-side-page__close",
|
|
1778
1791
|
variant: "ghost",
|
|
1779
1792
|
size: "small",
|
|
1780
|
-
icon: /* @__PURE__ */ e.jsx(te, { size:
|
|
1793
|
+
icon: /* @__PURE__ */ e.jsx(te, { size: U[2], strokeWidth: 1.5 }),
|
|
1781
1794
|
onClick: g,
|
|
1782
1795
|
"aria-label": u ?? p.close
|
|
1783
1796
|
}
|
|
@@ -1786,17 +1799,17 @@ function Qs({
|
|
|
1786
1799
|
s && /* @__PURE__ */ e.jsx("h3", { id: f, className: "ds-side-page__title", children: s }),
|
|
1787
1800
|
a && /* @__PURE__ */ e.jsx("div", { className: "ds-side-page__subheader", children: a })
|
|
1788
1801
|
] }),
|
|
1789
|
-
/* @__PURE__ */ e.jsx("div", { className: "ds-side-page__body ds-scrollable", children:
|
|
1802
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-side-page__body ds-scrollable", children: k }),
|
|
1790
1803
|
y
|
|
1791
1804
|
]
|
|
1792
1805
|
}
|
|
1793
1806
|
)
|
|
1794
1807
|
}
|
|
1795
1808
|
);
|
|
1796
|
-
return typeof document > "u" ?
|
|
1809
|
+
return typeof document > "u" ? j : oe.createPortal(j, document.body);
|
|
1797
1810
|
}
|
|
1798
1811
|
function Ke({ children: t }) {
|
|
1799
|
-
return !t ||
|
|
1812
|
+
return !t || X.Children.count(t) === 0 ? null : /* @__PURE__ */ e.jsx("div", { className: "ds-side-page__footer", children: t });
|
|
1800
1813
|
}
|
|
1801
1814
|
const be = De({ collapsed: !1, side: "left" }), $e = De(!1), en = rt(function({
|
|
1802
1815
|
children: s,
|
|
@@ -1848,7 +1861,7 @@ function tn({
|
|
|
1848
1861
|
className: d = "",
|
|
1849
1862
|
...p
|
|
1850
1863
|
}) {
|
|
1851
|
-
const { collapsed: h, side: f } = ae(be), v = ae($e),
|
|
1864
|
+
const { collapsed: h, side: f } = ae(be), v = ae($e), w = {
|
|
1852
1865
|
className: [
|
|
1853
1866
|
"ds-nav-rail__item",
|
|
1854
1867
|
d
|
|
@@ -1865,7 +1878,7 @@ function tn({
|
|
|
1865
1878
|
"data-onboarding": u || void 0
|
|
1866
1879
|
},
|
|
1867
1880
|
...p
|
|
1868
|
-
}, y = i != null,
|
|
1881
|
+
}, y = i != null, k = f === "left" ? "right" : "left", j = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1869
1882
|
/* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__icon", "aria-hidden": "true", children: t }),
|
|
1870
1883
|
!h && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__label", children: s }),
|
|
1871
1884
|
!h && y && /* @__PURE__ */ e.jsx(
|
|
@@ -1879,8 +1892,8 @@ function tn({
|
|
|
1879
1892
|
!h && l && (!y || i === 0) && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__dot ds-nav-rail__dot--inline", "aria-hidden": "true" }),
|
|
1880
1893
|
h && y && i !== 0 && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__count-collapsed", "data-updated": l || void 0, children: i > 99 ? "99+" : i }),
|
|
1881
1894
|
h && l && (!y || i === 0) && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__dot", "aria-hidden": "true" })
|
|
1882
|
-
] }), b = r ? /* @__PURE__ */ e.jsx("a", { href: a ? void 0 : r, ...
|
|
1883
|
-
return h && !v ? /* @__PURE__ */ e.jsx(Ce, { content: s, position:
|
|
1895
|
+
] }), b = r ? /* @__PURE__ */ e.jsx("a", { href: a ? void 0 : r, ...w, children: j }) : /* @__PURE__ */ e.jsx("button", { type: "button", ...w, children: j });
|
|
1896
|
+
return h && !v ? /* @__PURE__ */ e.jsx(Ce, { content: s, position: k, children: b }) : b;
|
|
1884
1897
|
}
|
|
1885
1898
|
function sn({ children: t, className: s = "", ...n }) {
|
|
1886
1899
|
return /* @__PURE__ */ e.jsx("div", { className: ["ds-nav-rail__body", "ds-scrollable", s].filter(Boolean).join(" "), ...n, children: t });
|
|
@@ -1895,7 +1908,7 @@ function an({ className: t = "", ...s }) {
|
|
|
1895
1908
|
return /* @__PURE__ */ e.jsx("hr", { className: ["ds-nav-rail__divider", t].filter(Boolean).join(" "), ...s });
|
|
1896
1909
|
}
|
|
1897
1910
|
function on({ children: t, label: s, defaultOpen: n = !0, className: a = "", ...r }) {
|
|
1898
|
-
const { collapsed: o } = ae(be), i =
|
|
1911
|
+
const { collapsed: o } = ae(be), i = K(), l = s ?? i.recents, [c, u] = L(n);
|
|
1899
1912
|
return /* @__PURE__ */ e.jsxs("div", { className: ["ds-nav-rail__recents", a].filter(Boolean).join(" "), ...r, children: [
|
|
1900
1913
|
!o && /* @__PURE__ */ e.jsxs(
|
|
1901
1914
|
"button",
|
|
@@ -1959,8 +1972,8 @@ function cn({ avatar: t, label: s, selected: n = !1, disabled: a = !1, href: r,
|
|
|
1959
1972
|
}, v = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1960
1973
|
/* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__icon", "aria-hidden": "true", children: t }),
|
|
1961
1974
|
!c && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__label", children: s })
|
|
1962
|
-
] }),
|
|
1963
|
-
return c && !d ? /* @__PURE__ */ e.jsx(Ce, { content: s, position:
|
|
1975
|
+
] }), N = u === "left" ? "right" : "left", g = r ? /* @__PURE__ */ e.jsx("a", { href: a ? void 0 : r, ...f, children: v }) : /* @__PURE__ */ e.jsx("button", { type: "button", ...f, children: v });
|
|
1976
|
+
return c && !d ? /* @__PURE__ */ e.jsx(Ce, { content: s, position: N, children: g }) : g;
|
|
1964
1977
|
}
|
|
1965
1978
|
const Xe = 240, Je = 6, Ze = 8;
|
|
1966
1979
|
function dn({
|
|
@@ -1972,23 +1985,23 @@ function dn({
|
|
|
1972
1985
|
defaultOpen: o = !1,
|
|
1973
1986
|
closeLabel: i
|
|
1974
1987
|
}) {
|
|
1975
|
-
const l =
|
|
1988
|
+
const l = K(), { side: c } = ae(be), [u, d] = L(o), p = a !== void 0, h = p ? a : u, [f, v] = L(!1), N = I(null), g = I(null), [w, y] = L({}), k = de(() => {
|
|
1976
1989
|
p ? r == null || r(!0) : d(!0);
|
|
1977
|
-
}, [p, r]),
|
|
1990
|
+
}, [p, r]), j = de(() => {
|
|
1978
1991
|
p ? r == null || r(!1) : d(!1);
|
|
1979
|
-
}, [p, r]), b = de(() => h ?
|
|
1980
|
-
var
|
|
1981
|
-
const D =
|
|
1992
|
+
}, [p, r]), b = de(() => h ? j() : k(), [h, k, j]), S = de(() => {
|
|
1993
|
+
var G;
|
|
1994
|
+
const D = N.current;
|
|
1982
1995
|
if (!D) return;
|
|
1983
|
-
const W = D.getBoundingClientRect(),
|
|
1996
|
+
const W = D.getBoundingClientRect(), E = window.innerHeight, P = ((G = g.current) == null ? void 0 : G.offsetHeight) ?? 300, O = Math.max(Ze, Math.min(E - P - Ze, W.top));
|
|
1984
1997
|
y(c === "right" ? {
|
|
1985
1998
|
position: "fixed",
|
|
1986
|
-
top:
|
|
1999
|
+
top: O,
|
|
1987
2000
|
right: window.innerWidth - W.left + Je,
|
|
1988
2001
|
width: Xe
|
|
1989
2002
|
} : {
|
|
1990
2003
|
position: "fixed",
|
|
1991
|
-
top:
|
|
2004
|
+
top: O,
|
|
1992
2005
|
left: W.right + Je,
|
|
1993
2006
|
width: Xe
|
|
1994
2007
|
});
|
|
@@ -2003,16 +2016,16 @@ function dn({
|
|
|
2003
2016
|
};
|
|
2004
2017
|
}, [h, S]), z(() => {
|
|
2005
2018
|
if (!h) return;
|
|
2006
|
-
const D = (
|
|
2007
|
-
var P,
|
|
2008
|
-
!((P = g.current) != null && P.contains(
|
|
2009
|
-
}, W = (
|
|
2010
|
-
|
|
2019
|
+
const D = (E) => {
|
|
2020
|
+
var P, O;
|
|
2021
|
+
!((P = g.current) != null && P.contains(E.target)) && !((O = N.current) != null && O.contains(E.target)) && j();
|
|
2022
|
+
}, W = (E) => {
|
|
2023
|
+
E.key === "Escape" && j();
|
|
2011
2024
|
};
|
|
2012
2025
|
return document.addEventListener("mousedown", D), document.addEventListener("keydown", W), () => {
|
|
2013
2026
|
document.removeEventListener("mousedown", D), document.removeEventListener("keydown", W);
|
|
2014
2027
|
};
|
|
2015
|
-
}, [h,
|
|
2028
|
+
}, [h, j]);
|
|
2016
2029
|
const B = h && /* @__PURE__ */ e.jsxs(
|
|
2017
2030
|
"div",
|
|
2018
2031
|
{
|
|
@@ -2022,7 +2035,7 @@ function dn({
|
|
|
2022
2035
|
`ds-nav-rail-flyout--${c}`,
|
|
2023
2036
|
f && "ds-nav-rail-flyout--visible"
|
|
2024
2037
|
].filter(Boolean).join(" "),
|
|
2025
|
-
style:
|
|
2038
|
+
style: w,
|
|
2026
2039
|
"data-ds-portal": "",
|
|
2027
2040
|
role: "dialog",
|
|
2028
2041
|
"aria-modal": "false",
|
|
@@ -2034,7 +2047,7 @@ function dn({
|
|
|
2034
2047
|
{
|
|
2035
2048
|
type: "button",
|
|
2036
2049
|
className: "ds-nav-rail-flyout__close",
|
|
2037
|
-
onClick:
|
|
2050
|
+
onClick: j,
|
|
2038
2051
|
"aria-label": i ?? l.close,
|
|
2039
2052
|
children: /* @__PURE__ */ e.jsx(te, { size: 16, strokeWidth: 2 })
|
|
2040
2053
|
}
|
|
@@ -2045,7 +2058,7 @@ function dn({
|
|
|
2045
2058
|
}
|
|
2046
2059
|
);
|
|
2047
2060
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2048
|
-
/* @__PURE__ */ e.jsx($e.Provider, { value: h, children: /* @__PURE__ */ e.jsx("div", { ref:
|
|
2061
|
+
/* @__PURE__ */ e.jsx($e.Provider, { value: h, children: /* @__PURE__ */ e.jsx("div", { ref: N, onClick: b, style: { display: "flex", flexDirection: "column", width: "100%" }, children: t }) }),
|
|
2049
2062
|
typeof document < "u" && oe.createPortal(B, document.body)
|
|
2050
2063
|
] });
|
|
2051
2064
|
}
|
|
@@ -2065,7 +2078,7 @@ function un({
|
|
|
2065
2078
|
dismissLabel: i,
|
|
2066
2079
|
...l
|
|
2067
2080
|
}) {
|
|
2068
|
-
const c =
|
|
2081
|
+
const c = K(), u = Ht[s], d = o || (s === "error" ? "alert" : "status");
|
|
2069
2082
|
return /* @__PURE__ */ e.jsxs(
|
|
2070
2083
|
"div",
|
|
2071
2084
|
{
|
|
@@ -2073,7 +2086,7 @@ function un({
|
|
|
2073
2086
|
role: d,
|
|
2074
2087
|
...l,
|
|
2075
2088
|
children: [
|
|
2076
|
-
u && /* @__PURE__ */ e.jsx("span", { className: "ds-banner-icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(u, { size:
|
|
2089
|
+
u && /* @__PURE__ */ e.jsx("span", { className: "ds-banner-icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(u, { size: U[2], strokeWidth: 1.5 }) }),
|
|
2077
2090
|
/* @__PURE__ */ e.jsx("span", { className: "ds-banner-text", children: t }),
|
|
2078
2091
|
n && /* @__PURE__ */ e.jsx(
|
|
2079
2092
|
"button",
|
|
@@ -2091,7 +2104,7 @@ function un({
|
|
|
2091
2104
|
className: "ds-banner-dismiss",
|
|
2092
2105
|
onClick: r,
|
|
2093
2106
|
"aria-label": i ?? c.dismiss,
|
|
2094
|
-
children: /* @__PURE__ */ e.jsx(te, { size:
|
|
2107
|
+
children: /* @__PURE__ */ e.jsx(te, { size: U[2], strokeWidth: 1.5 })
|
|
2095
2108
|
}
|
|
2096
2109
|
)
|
|
2097
2110
|
]
|
|
@@ -2109,7 +2122,7 @@ function fn({
|
|
|
2109
2122
|
style: l,
|
|
2110
2123
|
...c
|
|
2111
2124
|
}) {
|
|
2112
|
-
const [u, d] = L(!1), [p, h] = L(!1), f = n !== void 0, v = f ? n : u,
|
|
2125
|
+
const [u, d] = L(!1), [p, h] = L(!1), f = n !== void 0, v = f ? n : u, N = I(null), g = I(null), w = I(null), y = I(null), [k, j] = L({}), b = I(null), S = 150, B = () => {
|
|
2113
2126
|
if (f)
|
|
2114
2127
|
a == null || a(!1);
|
|
2115
2128
|
else {
|
|
@@ -2119,19 +2132,19 @@ function fn({
|
|
|
2119
2132
|
}, S);
|
|
2120
2133
|
}
|
|
2121
2134
|
}, D = () => {
|
|
2122
|
-
const
|
|
2123
|
-
f ? a == null || a(
|
|
2135
|
+
const _ = !v;
|
|
2136
|
+
f ? a == null || a(_) : _ ? (clearTimeout(b.current), h(!1), d(!0)) : B();
|
|
2124
2137
|
}, W = () => {
|
|
2125
2138
|
v || (f ? a == null || a(!0) : (clearTimeout(b.current), h(!1), d(!0)));
|
|
2126
2139
|
};
|
|
2127
2140
|
z(() => () => clearTimeout(b.current), []), z(() => {
|
|
2128
2141
|
if (!v) return;
|
|
2129
|
-
const
|
|
2130
|
-
var
|
|
2131
|
-
const $ = (
|
|
2142
|
+
const _ = 300, A = () => {
|
|
2143
|
+
var C;
|
|
2144
|
+
const $ = (C = N.current) == null ? void 0 : C.getBoundingClientRect();
|
|
2132
2145
|
if (!$) return;
|
|
2133
|
-
const q = window.innerHeight - $.bottom, V = q <
|
|
2134
|
-
|
|
2146
|
+
const q = window.innerHeight - $.bottom, V = q < _ + 8 && $.top > q;
|
|
2147
|
+
j(
|
|
2135
2148
|
r === "right" ? V ? { bottom: window.innerHeight - $.top + 4, top: "auto", right: window.innerWidth - $.right } : { top: $.bottom + 4, bottom: "auto", right: window.innerWidth - $.right } : V ? { bottom: window.innerHeight - $.top + 4, top: "auto", left: $.left } : { top: $.bottom + 4, bottom: "auto", left: $.left }
|
|
2136
2149
|
);
|
|
2137
2150
|
};
|
|
@@ -2139,57 +2152,57 @@ function fn({
|
|
|
2139
2152
|
window.removeEventListener("scroll", A, !0), window.removeEventListener("resize", A);
|
|
2140
2153
|
};
|
|
2141
2154
|
}, [v, r]);
|
|
2142
|
-
const
|
|
2155
|
+
const E = () => {
|
|
2143
2156
|
var A;
|
|
2144
|
-
const
|
|
2157
|
+
const _ = (A = w.current) == null ? void 0 : A.querySelector(
|
|
2145
2158
|
'button:not([disabled]), [href], [tabindex]:not([tabindex="-1"]), input, select, textarea'
|
|
2146
2159
|
);
|
|
2147
|
-
|
|
2160
|
+
_ == null || _.focus();
|
|
2148
2161
|
};
|
|
2149
2162
|
z(() => {
|
|
2150
2163
|
if (!v) return;
|
|
2151
|
-
const
|
|
2164
|
+
const _ = ($) => {
|
|
2152
2165
|
var q, V;
|
|
2153
|
-
!((q =
|
|
2166
|
+
!((q = N.current) != null && q.contains($.target)) && !((V = g.current) != null && V.contains($.target)) && B();
|
|
2154
2167
|
}, A = ($) => {
|
|
2155
|
-
$.key === "Escape" && (B(),
|
|
2168
|
+
$.key === "Escape" && (B(), E());
|
|
2156
2169
|
};
|
|
2157
|
-
return document.addEventListener("mousedown",
|
|
2158
|
-
document.removeEventListener("mousedown",
|
|
2170
|
+
return document.addEventListener("mousedown", _), document.addEventListener("keydown", A), () => {
|
|
2171
|
+
document.removeEventListener("mousedown", _), document.removeEventListener("keydown", A);
|
|
2159
2172
|
};
|
|
2160
2173
|
}, [v]), z(() => {
|
|
2161
2174
|
if (!v || !y.current || !g.current) return;
|
|
2162
|
-
const
|
|
2175
|
+
const _ = P(), A = y.current === "last" ? _[_.length - 1] : _[0];
|
|
2163
2176
|
A == null || A.focus(), y.current = null;
|
|
2164
2177
|
}, [v]);
|
|
2165
2178
|
const P = () => g.current ? [...g.current.querySelectorAll(
|
|
2166
2179
|
'button:not([disabled]), a[href]:not([aria-disabled="true"]), [tabindex]:not([tabindex="-1"])'
|
|
2167
|
-
)] : [],
|
|
2180
|
+
)] : [], O = (_) => {
|
|
2168
2181
|
var A, $;
|
|
2169
|
-
if (
|
|
2170
|
-
|
|
2171
|
-
else if (
|
|
2172
|
-
if (
|
|
2182
|
+
if (_.key === "ArrowDown")
|
|
2183
|
+
_.preventDefault(), v ? (A = P()[0]) == null || A.focus() : (y.current = "first", W());
|
|
2184
|
+
else if (_.key === "ArrowUp")
|
|
2185
|
+
if (_.preventDefault(), !v)
|
|
2173
2186
|
y.current = "last", W();
|
|
2174
2187
|
else {
|
|
2175
2188
|
const q = P();
|
|
2176
2189
|
($ = q[q.length - 1]) == null || $.focus();
|
|
2177
2190
|
}
|
|
2178
|
-
},
|
|
2179
|
-
var q, V,
|
|
2191
|
+
}, G = (_) => {
|
|
2192
|
+
var q, V, C, m;
|
|
2180
2193
|
const A = P(), $ = A.findIndex((x) => x === document.activeElement);
|
|
2181
|
-
switch (
|
|
2194
|
+
switch (_.key) {
|
|
2182
2195
|
case "ArrowDown":
|
|
2183
|
-
|
|
2196
|
+
_.preventDefault(), (q = A[Math.min($ + 1, A.length - 1)]) == null || q.focus();
|
|
2184
2197
|
break;
|
|
2185
2198
|
case "ArrowUp":
|
|
2186
|
-
|
|
2199
|
+
_.preventDefault(), $ <= 0 ? E() : (V = A[$ - 1]) == null || V.focus();
|
|
2187
2200
|
break;
|
|
2188
2201
|
case "Home":
|
|
2189
|
-
|
|
2202
|
+
_.preventDefault(), (C = A[0]) == null || C.focus();
|
|
2190
2203
|
break;
|
|
2191
2204
|
case "End":
|
|
2192
|
-
|
|
2205
|
+
_.preventDefault(), (m = A[A.length - 1]) == null || m.focus();
|
|
2193
2206
|
break;
|
|
2194
2207
|
case "Tab":
|
|
2195
2208
|
B();
|
|
@@ -2206,34 +2219,34 @@ function fn({
|
|
|
2206
2219
|
`ds-dropdown__menu--${r}`,
|
|
2207
2220
|
p && "ds-dropdown__menu--closing"
|
|
2208
2221
|
].filter(Boolean).join(" "),
|
|
2209
|
-
style:
|
|
2210
|
-
onKeyDown:
|
|
2211
|
-
children: s.map((
|
|
2212
|
-
if (
|
|
2222
|
+
style: k,
|
|
2223
|
+
onKeyDown: G,
|
|
2224
|
+
children: s.map((_, A) => {
|
|
2225
|
+
if (_.separator)
|
|
2213
2226
|
return /* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__separator" }, A);
|
|
2214
|
-
if (
|
|
2227
|
+
if (_.type === "section")
|
|
2215
2228
|
return /* @__PURE__ */ e.jsxs("div", { className: "ds-dropdown__section", children: [
|
|
2216
|
-
|
|
2217
|
-
/* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__section-content", children:
|
|
2229
|
+
_.label && /* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__section-label", children: _.label }),
|
|
2230
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__section-content", children: _.content })
|
|
2218
2231
|
] }, A);
|
|
2219
|
-
const $ = !!
|
|
2232
|
+
const $ = !!_.href, q = $ ? "a" : "button", V = $ ? { href: _.disabled ? void 0 : _.href, "aria-disabled": _.disabled ? "true" : void 0 } : { type: "button", disabled: _.disabled };
|
|
2220
2233
|
return /* @__PURE__ */ e.jsxs(
|
|
2221
2234
|
q,
|
|
2222
2235
|
{
|
|
2223
2236
|
role: "menuitem",
|
|
2224
2237
|
className: [
|
|
2225
2238
|
"ds-dropdown__item",
|
|
2226
|
-
|
|
2239
|
+
_.danger && "ds-dropdown__item--danger"
|
|
2227
2240
|
].filter(Boolean).join(" "),
|
|
2228
2241
|
...V,
|
|
2229
2242
|
onClick: () => {
|
|
2230
|
-
var
|
|
2231
|
-
(
|
|
2243
|
+
var C;
|
|
2244
|
+
(C = _.onClick) == null || C.call(_), B();
|
|
2232
2245
|
},
|
|
2233
2246
|
children: [
|
|
2234
|
-
|
|
2235
|
-
/* @__PURE__ */ e.jsx("span", { className: "ds-dropdown__item-label", children:
|
|
2236
|
-
|
|
2247
|
+
_.icon && /* @__PURE__ */ e.jsx("span", { className: "ds-dropdown__item-icon", children: _.icon }),
|
|
2248
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-dropdown__item-label", children: _.label }),
|
|
2249
|
+
_.shortcut && /* @__PURE__ */ e.jsx("span", { className: "ds-dropdown__item-shortcut", children: _.shortcut })
|
|
2237
2250
|
]
|
|
2238
2251
|
},
|
|
2239
2252
|
A
|
|
@@ -2244,7 +2257,7 @@ function fn({
|
|
|
2244
2257
|
return /* @__PURE__ */ e.jsxs(
|
|
2245
2258
|
"div",
|
|
2246
2259
|
{
|
|
2247
|
-
ref:
|
|
2260
|
+
ref: N,
|
|
2248
2261
|
className: ["ds-dropdown", o && "ds-dropdown--full-width", i].filter(Boolean).join(" "),
|
|
2249
2262
|
style: l,
|
|
2250
2263
|
...c,
|
|
@@ -2252,10 +2265,10 @@ function fn({
|
|
|
2252
2265
|
/* @__PURE__ */ e.jsx(
|
|
2253
2266
|
"div",
|
|
2254
2267
|
{
|
|
2255
|
-
ref:
|
|
2268
|
+
ref: w,
|
|
2256
2269
|
className: "ds-dropdown__trigger",
|
|
2257
2270
|
onClick: D,
|
|
2258
|
-
onKeyDown:
|
|
2271
|
+
onKeyDown: O,
|
|
2259
2272
|
children: t
|
|
2260
2273
|
}
|
|
2261
2274
|
),
|
|
@@ -2389,7 +2402,7 @@ function xn() {
|
|
|
2389
2402
|
return t.success = (s, n) => t(s, { ...n, type: "success" }), t.error = (s, n) => t(s, { ...n, type: "error" }), t.warning = (s, n) => t(s, { ...n, type: "warning" }), { toast: t };
|
|
2390
2403
|
}
|
|
2391
2404
|
function Zt({ data: t, onDismiss: s }) {
|
|
2392
|
-
const n =
|
|
2405
|
+
const n = K(), [a, r] = L(!1), o = I(null);
|
|
2393
2406
|
z(() => (requestAnimationFrame(() => r(!0)), t.duration > 0 && (o.current = setTimeout(() => i(), t.duration)), () => clearTimeout(o.current)), []);
|
|
2394
2407
|
function i() {
|
|
2395
2408
|
r(!1), setTimeout(() => s(t.id), 250);
|
|
@@ -2406,7 +2419,7 @@ function Zt({ data: t, onDismiss: s }) {
|
|
|
2406
2419
|
role: t.type === "error" ? "alert" : "status",
|
|
2407
2420
|
"aria-live": "polite",
|
|
2408
2421
|
children: [
|
|
2409
|
-
/* @__PURE__ */ e.jsx("div", { className: "ds-toast__icon", children: /* @__PURE__ */ e.jsx(l, { size:
|
|
2422
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-toast__icon", children: /* @__PURE__ */ e.jsx(l, { size: U[3], strokeWidth: 1.5 }) }),
|
|
2410
2423
|
/* @__PURE__ */ e.jsx("span", { className: "ds-toast__message", children: t.message }),
|
|
2411
2424
|
/* @__PURE__ */ e.jsx(
|
|
2412
2425
|
"button",
|
|
@@ -2414,7 +2427,7 @@ function Zt({ data: t, onDismiss: s }) {
|
|
|
2414
2427
|
className: "ds-toast__close",
|
|
2415
2428
|
onClick: i,
|
|
2416
2429
|
"aria-label": n.close,
|
|
2417
|
-
children: /* @__PURE__ */ e.jsx(te, { size:
|
|
2430
|
+
children: /* @__PURE__ */ e.jsx(te, { size: U[3], strokeWidth: 1.5 })
|
|
2418
2431
|
}
|
|
2419
2432
|
)
|
|
2420
2433
|
]
|
|
@@ -2484,7 +2497,7 @@ function es({
|
|
|
2484
2497
|
"aria-label": a,
|
|
2485
2498
|
...r
|
|
2486
2499
|
}) {
|
|
2487
|
-
const o =
|
|
2500
|
+
const o = K(), [i, l] = L(!1), c = (u) => {
|
|
2488
2501
|
u.currentTarget.blur(), navigator.clipboard.writeText(t).then(() => {
|
|
2489
2502
|
l(!0), setTimeout(() => l(!1), n);
|
|
2490
2503
|
});
|
|
@@ -2495,7 +2508,7 @@ function es({
|
|
|
2495
2508
|
variant: "ghost",
|
|
2496
2509
|
size: s,
|
|
2497
2510
|
state: i ? "success" : "idle",
|
|
2498
|
-
icon: /* @__PURE__ */ e.jsx(_t, { size:
|
|
2511
|
+
icon: /* @__PURE__ */ e.jsx(_t, { size: U[1], strokeWidth: 1.5 }),
|
|
2499
2512
|
"aria-label": a ?? o.copyToClipboard,
|
|
2500
2513
|
onClick: c,
|
|
2501
2514
|
...r
|
|
@@ -2513,7 +2526,7 @@ function _n({ content: t, streaming: s = !1, ...n }) {
|
|
|
2513
2526
|
onToggle: r,
|
|
2514
2527
|
padding: "s",
|
|
2515
2528
|
title: /* @__PURE__ */ e.jsxs("div", { className: "ds-reasoning__title", children: [
|
|
2516
|
-
/* @__PURE__ */ e.jsx(jt, { size:
|
|
2529
|
+
/* @__PURE__ */ e.jsx(jt, { size: U[1], strokeWidth: 1.5, className: "ds-reasoning__icon" }),
|
|
2517
2530
|
/* @__PURE__ */ e.jsx(It, { secondary: !0, children: "Thinking" })
|
|
2518
2531
|
] }),
|
|
2519
2532
|
...n,
|
|
@@ -2534,10 +2547,10 @@ function jn({
|
|
|
2534
2547
|
"aria-label": i,
|
|
2535
2548
|
...l
|
|
2536
2549
|
}) {
|
|
2537
|
-
const c =
|
|
2550
|
+
const c = K(), { t: u } = ye();
|
|
2538
2551
|
return /* @__PURE__ */ e.jsxs("div", { className: ["ds-step-indicator", o].filter(Boolean).join(" "), ...l, children: [
|
|
2539
2552
|
/* @__PURE__ */ e.jsx("div", { className: "ds-step-indicator__dots", role: "tablist", "aria-label": i ?? c.steps, children: Array.from({ length: t }, (d, p) => {
|
|
2540
|
-
const h = p === s, f = n.includes(p) && !h, v = a && (p <= s || n.includes(p)),
|
|
2553
|
+
const h = p === s, f = n.includes(p) && !h, v = a && (p <= s || n.includes(p)), N = [
|
|
2541
2554
|
"ds-step-indicator__dot",
|
|
2542
2555
|
h && "ds-step-indicator__dot--active",
|
|
2543
2556
|
f && "ds-step-indicator__dot--done"
|
|
@@ -2546,7 +2559,7 @@ function jn({
|
|
|
2546
2559
|
"button",
|
|
2547
2560
|
{
|
|
2548
2561
|
type: "button",
|
|
2549
|
-
className:
|
|
2562
|
+
className: N,
|
|
2550
2563
|
role: "tab",
|
|
2551
2564
|
"aria-selected": h,
|
|
2552
2565
|
"aria-label": u("stepN", { n: p + 1 }),
|
|
@@ -2631,7 +2644,7 @@ function ts({
|
|
|
2631
2644
|
betweenTime: o = 380,
|
|
2632
2645
|
manualPauseMs: i = 5e3
|
|
2633
2646
|
}) {
|
|
2634
|
-
const [l, c] = L(0), [u, d] = L(""), p = I("typing"), h = I(0), f = I(0), v = I(null),
|
|
2647
|
+
const [l, c] = L(0), [u, d] = L(""), p = I("typing"), h = I(0), f = I(0), v = I(null), N = I(0);
|
|
2635
2648
|
z(() => {
|
|
2636
2649
|
f.current = l;
|
|
2637
2650
|
}, [l]), z(() => {
|
|
@@ -2639,25 +2652,25 @@ function ts({
|
|
|
2639
2652
|
d(""), h.current = 0, p.current = "typing";
|
|
2640
2653
|
return;
|
|
2641
2654
|
}
|
|
2642
|
-
const
|
|
2655
|
+
const j = () => {
|
|
2643
2656
|
const b = Date.now();
|
|
2644
|
-
if (
|
|
2645
|
-
v.current = setTimeout(
|
|
2657
|
+
if (N.current > b) {
|
|
2658
|
+
v.current = setTimeout(j, N.current - b);
|
|
2646
2659
|
return;
|
|
2647
2660
|
}
|
|
2648
2661
|
const S = t[f.current % t.length] ?? "";
|
|
2649
|
-
p.current === "typing" ? (h.current += 1, d(S.slice(0, h.current)), h.current >= S.length ? (p.current = "holding", v.current = setTimeout(
|
|
2662
|
+
p.current === "typing" ? (h.current += 1, d(S.slice(0, h.current)), h.current >= S.length ? (p.current = "holding", v.current = setTimeout(j, r)) : v.current = setTimeout(j, n + Math.random() * 28)) : p.current === "holding" ? (p.current = "erasing", v.current = setTimeout(j, a)) : (h.current = Math.max(0, h.current - 1), d(S.slice(0, h.current)), h.current <= 0 ? (p.current = "typing", f.current = (f.current + 1) % t.length, c(f.current), v.current = setTimeout(j, o)) : v.current = setTimeout(j, a));
|
|
2650
2663
|
};
|
|
2651
|
-
return v.current = setTimeout(
|
|
2664
|
+
return v.current = setTimeout(j, 260), () => {
|
|
2652
2665
|
v.current && clearTimeout(v.current);
|
|
2653
2666
|
};
|
|
2654
2667
|
}, [s, t, n, a, r, o]);
|
|
2655
|
-
const g = (
|
|
2668
|
+
const g = (j) => {
|
|
2656
2669
|
if (t.length === 0) return;
|
|
2657
|
-
const b = (
|
|
2658
|
-
f.current = b, h.current = S.length, p.current = "holding",
|
|
2659
|
-
},
|
|
2660
|
-
return { displayed: u, currentPrompt:
|
|
2670
|
+
const b = (j % t.length + t.length) % t.length, S = t[b];
|
|
2671
|
+
f.current = b, h.current = S.length, p.current = "holding", N.current = Date.now() + i, c(b), d(S);
|
|
2672
|
+
}, w = () => g(f.current + 1), y = () => g(f.current - 1), k = t[l % t.length] ?? "";
|
|
2673
|
+
return { displayed: u, currentPrompt: k, index: l, next: w, prev: y };
|
|
2661
2674
|
}
|
|
2662
2675
|
let ss = 0;
|
|
2663
2676
|
function yn({
|
|
@@ -2676,21 +2689,21 @@ function yn({
|
|
|
2676
2689
|
onAttachImages: h,
|
|
2677
2690
|
onRemoveAttachment: f,
|
|
2678
2691
|
onRemoveImage: v,
|
|
2679
|
-
acceptImage:
|
|
2692
|
+
acceptImage: N,
|
|
2680
2693
|
acceptFile: g,
|
|
2681
|
-
maxImages:
|
|
2694
|
+
maxImages: w,
|
|
2682
2695
|
maxImageSize: y,
|
|
2683
|
-
leftSlot:
|
|
2684
|
-
rightSlot:
|
|
2696
|
+
leftSlot: k,
|
|
2697
|
+
rightSlot: j,
|
|
2685
2698
|
className: b = "",
|
|
2686
2699
|
...S
|
|
2687
2700
|
}) {
|
|
2688
|
-
const B =
|
|
2701
|
+
const B = K(), { t: D } = ye(), W = I(null), E = I(null), P = I(0), [O, G] = L(!1), [Y, _] = L([]), A = l ?? B.promptPlaceholder, $ = (T) => {
|
|
2689
2702
|
const M = ++ss;
|
|
2690
|
-
|
|
2691
|
-
}, q = (T) =>
|
|
2703
|
+
_((J) => [...J, { id: M, msg: T }]), setTimeout(() => _((J) => J.filter((Q) => Q.id !== M)), 6e3);
|
|
2704
|
+
}, q = (T) => _((M) => M.filter((J) => J.id !== T)), V = (T) => T.type.startsWith("image/"), C = () => !0, m = N ?? V, x = g ?? C, R = (T) => {
|
|
2692
2705
|
const M = [], J = [], Q = [], se = [];
|
|
2693
|
-
let ne = 0, me =
|
|
2706
|
+
let ne = 0, me = w != null ? w - ((d == null ? void 0 : d.length) ?? 0) : 1 / 0;
|
|
2694
2707
|
for (const re of T)
|
|
2695
2708
|
m(re) ? y && re.size > y ? Q.push(re.name) : me > 0 ? (M.push(re), me--) : ne++ : x(re) ? J.push(re) : se.push(re.name);
|
|
2696
2709
|
return { imageFiles: M, docFiles: J, tooLarge: Q, skipped: se, limitExceeded: ne };
|
|
@@ -2699,28 +2712,28 @@ function yn({
|
|
|
2699
2712
|
$(D("fileTooLarge", { maxHint: M, names: T.join(", ") }));
|
|
2700
2713
|
}, ee = (T) => {
|
|
2701
2714
|
const { imageFiles: M, docFiles: J, tooLarge: Q, skipped: se, limitExceeded: ne } = R(T);
|
|
2702
|
-
Q.length && F(Q), se.length && $(D("filesSkipped", { names: se.join(", ") })), ne && $(D("maxImages", { n:
|
|
2715
|
+
Q.length && F(Q), se.length && $(D("filesSkipped", { names: se.join(", ") })), ne && $(D("maxImages", { n: w })), h && M.length && h(M);
|
|
2703
2716
|
const me = J.concat(h ? [] : M);
|
|
2704
2717
|
p && me.length && p(me);
|
|
2705
2718
|
};
|
|
2706
2719
|
z(() => {
|
|
2707
|
-
const T =
|
|
2720
|
+
const T = E.current;
|
|
2708
2721
|
T && (T.style.height = "auto", T.style.height = `${Math.min(T.scrollHeight, 200)}px`);
|
|
2709
2722
|
}, [t]), z(() => {
|
|
2710
2723
|
const T = (M) => {
|
|
2711
2724
|
var Q, se, ne;
|
|
2712
2725
|
if (o || i) return;
|
|
2713
2726
|
const J = (Q = M.target) == null ? void 0 : Q.tagName;
|
|
2714
|
-
J === "INPUT" || J === "TEXTAREA" || J === "SELECT" || (se = M.target) != null && se.isContentEditable || M.ctrlKey || M.metaKey || M.altKey || M.key.length !== 1 && M.key !== "Backspace" && M.key !== "Delete" || (ne =
|
|
2727
|
+
J === "INPUT" || J === "TEXTAREA" || J === "SELECT" || (se = M.target) != null && se.isContentEditable || M.ctrlKey || M.metaKey || M.altKey || M.key.length !== 1 && M.key !== "Backspace" && M.key !== "Delete" || (ne = E.current) == null || ne.focus();
|
|
2715
2728
|
};
|
|
2716
2729
|
return document.addEventListener("keydown", T), () => document.removeEventListener("keydown", T);
|
|
2717
2730
|
}, [o, i]);
|
|
2718
2731
|
const ie = (T) => {
|
|
2719
|
-
T.preventDefault(), P.current++, T.dataTransfer.types.includes("Files") &&
|
|
2732
|
+
T.preventDefault(), P.current++, T.dataTransfer.types.includes("Files") && G(!0);
|
|
2720
2733
|
}, H = (T) => {
|
|
2721
|
-
T.preventDefault(), P.current--, P.current === 0 &&
|
|
2734
|
+
T.preventDefault(), P.current--, P.current === 0 && G(!1);
|
|
2722
2735
|
}, Z = (T) => T.preventDefault(), fe = (T) => {
|
|
2723
|
-
T.preventDefault(), P.current = 0,
|
|
2736
|
+
T.preventDefault(), P.current = 0, G(!1);
|
|
2724
2737
|
const M = Array.from(T.dataTransfer.files);
|
|
2725
2738
|
M.length && ee(M);
|
|
2726
2739
|
}, _e = (T) => {
|
|
@@ -2738,7 +2751,7 @@ function yn({
|
|
|
2738
2751
|
}
|
|
2739
2752
|
if (J.length === 0) return;
|
|
2740
2753
|
const { imageFiles: Q, tooLarge: se, skipped: ne, limitExceeded: me } = R(J);
|
|
2741
|
-
se.length && F(se), ne.length && $(D("filesSkipped", { names: ne.join(", ") })), me && $(D("maxImages", { n:
|
|
2754
|
+
se.length && F(se), ne.length && $(D("filesSkipped", { names: ne.join(", ") })), me && $(D("maxImages", { n: w })), Q.length && (T.preventDefault(), h(Q));
|
|
2742
2755
|
}, je = !o && !i && !!(c != null && c.length) && t.length === 0, ke = ts({
|
|
2743
2756
|
prompts: c ?? [],
|
|
2744
2757
|
enabled: je
|
|
@@ -2774,17 +2787,17 @@ function yn({
|
|
|
2774
2787
|
/* @__PURE__ */ e.jsxs(
|
|
2775
2788
|
"div",
|
|
2776
2789
|
{
|
|
2777
|
-
className: ["ds-prompt-input__box",
|
|
2790
|
+
className: ["ds-prompt-input__box", O && "ds-prompt-input__box--dragging"].filter(Boolean).join(" "),
|
|
2778
2791
|
onDragEnter: ie,
|
|
2779
2792
|
onDragLeave: H,
|
|
2780
2793
|
onDragOver: Z,
|
|
2781
2794
|
onDrop: fe,
|
|
2782
2795
|
children: [
|
|
2783
|
-
|
|
2796
|
+
O && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__drag-overlay", children: B.dropFilesHere }),
|
|
2784
2797
|
/* @__PURE__ */ e.jsx(
|
|
2785
2798
|
"textarea",
|
|
2786
2799
|
{
|
|
2787
|
-
ref:
|
|
2800
|
+
ref: E,
|
|
2788
2801
|
value: t,
|
|
2789
2802
|
onChange: (T) => s == null ? void 0 : s(T.target.value),
|
|
2790
2803
|
onKeyDown: lt,
|
|
@@ -2821,12 +2834,12 @@ function yn({
|
|
|
2821
2834
|
className: "ds-prompt-input__warning-close",
|
|
2822
2835
|
onClick: () => q(T.id),
|
|
2823
2836
|
"aria-label": B.dismiss,
|
|
2824
|
-
children: /* @__PURE__ */ e.jsx(te, { size:
|
|
2837
|
+
children: /* @__PURE__ */ e.jsx(te, { size: U[1], strokeWidth: 1.5 })
|
|
2825
2838
|
}
|
|
2826
2839
|
)
|
|
2827
2840
|
] }, T.id)) }),
|
|
2828
2841
|
u && u.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__attachments", children: u.map((T, M) => /* @__PURE__ */ e.jsx(he, { size: "xs", children: /* @__PURE__ */ e.jsxs("span", { className: "ds-prompt-input__badge-content", children: [
|
|
2829
|
-
T.uploading ? /* @__PURE__ */ e.jsx(Nt, { size:
|
|
2842
|
+
T.uploading ? /* @__PURE__ */ e.jsx(Nt, { size: U[1], strokeWidth: 1.5, className: "spin" }) : /* @__PURE__ */ e.jsx(He, { size: U[1], strokeWidth: 1.5 }),
|
|
2830
2843
|
T.filename,
|
|
2831
2844
|
T.uploading ? /* @__PURE__ */ e.jsx("span", { className: "ds-prompt-input__uploading", children: B.uploading }) : /* @__PURE__ */ e.jsx(
|
|
2832
2845
|
"button",
|
|
@@ -2835,7 +2848,7 @@ function yn({
|
|
|
2835
2848
|
className: "ds-prompt-input__remove-btn",
|
|
2836
2849
|
onClick: () => f == null ? void 0 : f(M),
|
|
2837
2850
|
"aria-label": B.removeAttachment,
|
|
2838
|
-
children: /* @__PURE__ */ e.jsx(te, { size:
|
|
2851
|
+
children: /* @__PURE__ */ e.jsx(te, { size: U[1], strokeWidth: 1.5 })
|
|
2839
2852
|
}
|
|
2840
2853
|
)
|
|
2841
2854
|
] }) }, M)) }),
|
|
@@ -2845,7 +2858,7 @@ function yn({
|
|
|
2845
2858
|
{
|
|
2846
2859
|
variant: "ghost",
|
|
2847
2860
|
size: "xs",
|
|
2848
|
-
icon: /* @__PURE__ */ e.jsx(He, { size:
|
|
2861
|
+
icon: /* @__PURE__ */ e.jsx(He, { size: U[2], strokeWidth: 1.5 }),
|
|
2849
2862
|
"aria-label": B.attachFiles,
|
|
2850
2863
|
onClick: () => {
|
|
2851
2864
|
var T;
|
|
@@ -2853,15 +2866,15 @@ function yn({
|
|
|
2853
2866
|
}
|
|
2854
2867
|
}
|
|
2855
2868
|
),
|
|
2856
|
-
|
|
2857
|
-
|
|
2869
|
+
k,
|
|
2870
|
+
j,
|
|
2858
2871
|
/* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__spacer" }),
|
|
2859
2872
|
o ? /* @__PURE__ */ e.jsx(
|
|
2860
2873
|
ce,
|
|
2861
2874
|
{
|
|
2862
2875
|
variant: "primary",
|
|
2863
2876
|
size: "xs",
|
|
2864
|
-
icon: /* @__PURE__ */ e.jsx(gt, { size:
|
|
2877
|
+
icon: /* @__PURE__ */ e.jsx(gt, { size: U[2], strokeWidth: 1.5 }),
|
|
2865
2878
|
onClick: a,
|
|
2866
2879
|
"aria-label": B.stop
|
|
2867
2880
|
}
|
|
@@ -2870,7 +2883,7 @@ function yn({
|
|
|
2870
2883
|
{
|
|
2871
2884
|
variant: "primary",
|
|
2872
2885
|
size: "xs",
|
|
2873
|
-
icon: /* @__PURE__ */ e.jsx(wt, { size:
|
|
2886
|
+
icon: /* @__PURE__ */ e.jsx(wt, { size: U[2], strokeWidth: 1.5 }),
|
|
2874
2887
|
onClick: n,
|
|
2875
2888
|
disabled: !ct,
|
|
2876
2889
|
"aria-label": B.send
|
|
@@ -2894,15 +2907,15 @@ function kn({
|
|
|
2894
2907
|
className: l = "",
|
|
2895
2908
|
...c
|
|
2896
2909
|
}) {
|
|
2897
|
-
const [u, d] = L(!1), p = I(null), h = I(null), f = I(null), [v,
|
|
2910
|
+
const [u, d] = L(!1), p = I(null), h = I(null), f = I(null), [v, N] = L({}), g = t.filter((E) => !r || E.name === "auto" ? !0 : (et[E.tier] ?? 1) >= (et[r] ?? 1)), w = g.find((E) => E.name === "auto"), y = g.filter((E) => E.name !== "auto"), k = t.find((E) => E.name === s), b = new Set(y.map((E) => E.tier).filter(Boolean)).size > 1;
|
|
2898
2911
|
z(() => {
|
|
2899
2912
|
if (!u) return;
|
|
2900
|
-
const
|
|
2913
|
+
const E = 320, P = () => {
|
|
2901
2914
|
var $;
|
|
2902
2915
|
const Y = ($ = h.current) == null ? void 0 : $.getBoundingClientRect();
|
|
2903
2916
|
if (!Y) return;
|
|
2904
|
-
const
|
|
2905
|
-
|
|
2917
|
+
const _ = window.innerHeight - Y.bottom, A = _ < E + 8 && Y.top > _;
|
|
2918
|
+
N({
|
|
2906
2919
|
position: "fixed",
|
|
2907
2920
|
zIndex: "var(--z-dropdown, 500)",
|
|
2908
2921
|
left: Y.left,
|
|
@@ -2910,42 +2923,42 @@ function kn({
|
|
|
2910
2923
|
});
|
|
2911
2924
|
};
|
|
2912
2925
|
P(), window.addEventListener("scroll", P, !0), window.addEventListener("resize", P);
|
|
2913
|
-
const
|
|
2914
|
-
var
|
|
2915
|
-
!((
|
|
2916
|
-
},
|
|
2926
|
+
const O = (Y) => {
|
|
2927
|
+
var _, A;
|
|
2928
|
+
!((_ = p.current) != null && _.contains(Y.target)) && !((A = f.current) != null && A.contains(Y.target)) && d(!1);
|
|
2929
|
+
}, G = (Y) => {
|
|
2917
2930
|
Y.key === "Escape" && d(!1);
|
|
2918
2931
|
};
|
|
2919
|
-
return document.addEventListener("mousedown",
|
|
2920
|
-
window.removeEventListener("scroll", P, !0), window.removeEventListener("resize", P), document.removeEventListener("mousedown",
|
|
2932
|
+
return document.addEventListener("mousedown", O), document.addEventListener("keydown", G), () => {
|
|
2933
|
+
window.removeEventListener("scroll", P, !0), window.removeEventListener("resize", P), document.removeEventListener("mousedown", O), document.removeEventListener("keydown", G);
|
|
2921
2934
|
};
|
|
2922
2935
|
}, [u]);
|
|
2923
|
-
const S = (
|
|
2924
|
-
n == null || n(
|
|
2925
|
-
}, B = (
|
|
2936
|
+
const S = (E) => {
|
|
2937
|
+
n == null || n(E), d(!1);
|
|
2938
|
+
}, B = (E) => /* @__PURE__ */ e.jsxs(
|
|
2926
2939
|
"button",
|
|
2927
2940
|
{
|
|
2928
2941
|
type: "button",
|
|
2929
2942
|
className: [
|
|
2930
2943
|
"ds-model-picker__item",
|
|
2931
|
-
|
|
2944
|
+
E.name === s && "ds-model-picker__item--active"
|
|
2932
2945
|
].filter(Boolean).join(" "),
|
|
2933
|
-
onClick: () => S(
|
|
2946
|
+
onClick: () => S(E.name),
|
|
2934
2947
|
children: [
|
|
2935
|
-
|
|
2936
|
-
/* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__item-name", children:
|
|
2937
|
-
b &&
|
|
2948
|
+
E.icon ? /* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__item-icon", children: E.icon }) : /* @__PURE__ */ e.jsx(Ye, { size: 12, strokeWidth: 1.5, className: "ds-model-picker__item-icon" }),
|
|
2949
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__item-name", children: E.displayName || E.name }),
|
|
2950
|
+
b && E.tier && /* @__PURE__ */ e.jsx(he, { size: "xs", variant: tt[E.tier] || "default", children: E.tier })
|
|
2938
2951
|
]
|
|
2939
2952
|
},
|
|
2940
|
-
|
|
2941
|
-
), D = () => !i || !b ? y.map(B) : ["fast", "standard", "premium"].flatMap((
|
|
2942
|
-
const P = y.filter((
|
|
2953
|
+
E.name
|
|
2954
|
+
), D = () => !i || !b ? y.map(B) : ["fast", "standard", "premium"].flatMap((E) => {
|
|
2955
|
+
const P = y.filter((O) => O.tier === E);
|
|
2943
2956
|
return P.length ? [
|
|
2944
|
-
/* @__PURE__ */ e.jsx("div", { className: "ds-model-picker__group-label", "data-tier":
|
|
2957
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-model-picker__group-label", "data-tier": E, children: E.charAt(0).toUpperCase() + E.slice(1) }, `lbl-${E}`),
|
|
2945
2958
|
...P.map(B)
|
|
2946
2959
|
] : [];
|
|
2947
2960
|
}), W = u && /* @__PURE__ */ e.jsxs("div", { ref: f, className: "ds-model-picker__menu ds-scrollable", "data-ds-portal": "", style: v, children: [
|
|
2948
|
-
o &&
|
|
2961
|
+
o && w && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2949
2962
|
/* @__PURE__ */ e.jsxs(
|
|
2950
2963
|
"button",
|
|
2951
2964
|
{
|
|
@@ -2979,13 +2992,13 @@ function kn({
|
|
|
2979
2992
|
ref: h,
|
|
2980
2993
|
type: "button",
|
|
2981
2994
|
className: "ds-model-picker__trigger",
|
|
2982
|
-
onClick: () => d((
|
|
2995
|
+
onClick: () => d((E) => !E),
|
|
2983
2996
|
"aria-haspopup": "listbox",
|
|
2984
2997
|
"aria-expanded": u,
|
|
2985
2998
|
children: [
|
|
2986
|
-
|
|
2987
|
-
/* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__trigger-name", children: (
|
|
2988
|
-
b && (
|
|
2999
|
+
k != null && k.icon ? /* @__PURE__ */ e.jsx("span", { children: k.icon }) : /* @__PURE__ */ e.jsx(Ye, { size: 12, strokeWidth: 1.5 }),
|
|
3000
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__trigger-name", children: (k == null ? void 0 : k.displayName) || (k == null ? void 0 : k.name) || s }),
|
|
3001
|
+
b && (k == null ? void 0 : k.tier) && /* @__PURE__ */ e.jsx(he, { size: "xs", variant: tt[k.tier] || "default", children: k.tier })
|
|
2989
3002
|
]
|
|
2990
3003
|
}
|
|
2991
3004
|
),
|
|
@@ -3011,59 +3024,59 @@ function En({
|
|
|
3011
3024
|
maxVisible: a = 5,
|
|
3012
3025
|
onSourceClick: r
|
|
3013
3026
|
}) {
|
|
3014
|
-
const o =
|
|
3027
|
+
const o = K(), { t: i } = ye(), l = n ?? o.sources, [c, u] = L(!1), d = rs(t), p = d.length > a, h = c ? d : d.slice(0, a), f = t.some((w) => w.snippet), v = (w) => w != null && w.length ? i("pageAbbrev", { pages: w.join(", ") }) : null, N = i("moreSources", { n: d.length - a }), g = ["ds-sources-panel", s === "compact" && "ds-sources-panel--compact"].filter(Boolean).join(" ");
|
|
3015
3028
|
return s === "compact" ? /* @__PURE__ */ e.jsxs("div", { className: g, children: [
|
|
3016
|
-
h.map((
|
|
3017
|
-
const y =
|
|
3029
|
+
h.map((w) => {
|
|
3030
|
+
const y = w.items.map((b) => b.page).filter(Boolean), k = v(y), j = !!r;
|
|
3018
3031
|
return /* @__PURE__ */ e.jsxs(
|
|
3019
3032
|
"div",
|
|
3020
3033
|
{
|
|
3021
|
-
className: `ds-sources-panel__compact-row${
|
|
3022
|
-
onClick:
|
|
3034
|
+
className: `ds-sources-panel__compact-row${j ? " ds-sources-panel__compact-row--clickable" : ""}`,
|
|
3035
|
+
onClick: j ? () => r(w.items[0]) : void 0,
|
|
3023
3036
|
children: [
|
|
3024
|
-
/* @__PURE__ */ e.jsx(kt, { size:
|
|
3025
|
-
/* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__filename", children:
|
|
3026
|
-
|
|
3037
|
+
/* @__PURE__ */ e.jsx(kt, { size: U[1], strokeWidth: 1.5, className: "ds-sources-panel__compact-icon" }),
|
|
3038
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__filename", children: w.filename }),
|
|
3039
|
+
k && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: k })
|
|
3027
3040
|
]
|
|
3028
3041
|
},
|
|
3029
|
-
|
|
3042
|
+
w.filename
|
|
3030
3043
|
);
|
|
3031
3044
|
}),
|
|
3032
|
-
p && !c && /* @__PURE__ */ e.jsx("button", { className: "ds-sources-panel__more", onClick: () => u(!0), children:
|
|
3045
|
+
p && !c && /* @__PURE__ */ e.jsx("button", { className: "ds-sources-panel__more", onClick: () => u(!0), children: N })
|
|
3033
3046
|
] }) : /* @__PURE__ */ e.jsxs("div", { className: g, children: [
|
|
3034
3047
|
l && /* @__PURE__ */ e.jsx("div", { className: "ds-sources-panel__title", children: l }),
|
|
3035
|
-
h.map((
|
|
3036
|
-
const y =
|
|
3048
|
+
h.map((w) => {
|
|
3049
|
+
const y = w.items.map((b) => b.page).filter(Boolean), k = v(y), j = !!r;
|
|
3037
3050
|
return f ? /* @__PURE__ */ e.jsx(
|
|
3038
3051
|
Oe,
|
|
3039
3052
|
{
|
|
3040
|
-
title: /* @__PURE__ */ e.jsx(ns, { filename:
|
|
3053
|
+
title: /* @__PURE__ */ e.jsx(ns, { filename: w.filename, pagesLabel: k }),
|
|
3041
3054
|
padding: "s",
|
|
3042
|
-
children:
|
|
3055
|
+
children: w.items.map((b, S) => /* @__PURE__ */ e.jsx(
|
|
3043
3056
|
"div",
|
|
3044
3057
|
{
|
|
3045
|
-
className: `ds-sources-panel__snippet${
|
|
3046
|
-
onClick:
|
|
3058
|
+
className: `ds-sources-panel__snippet${j ? " ds-sources-panel__snippet--clickable" : ""}`,
|
|
3059
|
+
onClick: j ? () => r(b) : void 0,
|
|
3047
3060
|
children: b.snippet ?? i("pageAbbrev", { pages: b.page })
|
|
3048
3061
|
},
|
|
3049
3062
|
S
|
|
3050
3063
|
))
|
|
3051
3064
|
},
|
|
3052
|
-
|
|
3065
|
+
w.filename
|
|
3053
3066
|
) : /* @__PURE__ */ e.jsxs(
|
|
3054
3067
|
"div",
|
|
3055
3068
|
{
|
|
3056
|
-
className: `ds-sources-panel__row${
|
|
3057
|
-
onClick:
|
|
3069
|
+
className: `ds-sources-panel__row${j ? " ds-sources-panel__row--clickable" : ""}`,
|
|
3070
|
+
onClick: j ? () => r(w.items[0]) : void 0,
|
|
3058
3071
|
children: [
|
|
3059
|
-
/* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__filename", children:
|
|
3060
|
-
|
|
3072
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__filename", children: w.filename }),
|
|
3073
|
+
k && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: k })
|
|
3061
3074
|
]
|
|
3062
3075
|
},
|
|
3063
|
-
|
|
3076
|
+
w.filename
|
|
3064
3077
|
);
|
|
3065
3078
|
}),
|
|
3066
|
-
p && !c && /* @__PURE__ */ e.jsx("button", { className: "ds-sources-panel__more", onClick: () => u(!0), children:
|
|
3079
|
+
p && !c && /* @__PURE__ */ e.jsx("button", { className: "ds-sources-panel__more", onClick: () => u(!0), children: N })
|
|
3067
3080
|
] });
|
|
3068
3081
|
}
|
|
3069
3082
|
function st(t) {
|
|
@@ -3181,7 +3194,7 @@ function is({
|
|
|
3181
3194
|
dislikeLabel: o,
|
|
3182
3195
|
...i
|
|
3183
3196
|
}) {
|
|
3184
|
-
const l =
|
|
3197
|
+
const l = K(), c = t !== "idle";
|
|
3185
3198
|
return /* @__PURE__ */ e.jsxs(
|
|
3186
3199
|
"div",
|
|
3187
3200
|
{
|
|
@@ -3206,7 +3219,7 @@ function is({
|
|
|
3206
3219
|
children: /* @__PURE__ */ e.jsx(
|
|
3207
3220
|
Et,
|
|
3208
3221
|
{
|
|
3209
|
-
size:
|
|
3222
|
+
size: U[1],
|
|
3210
3223
|
strokeWidth: 1.5,
|
|
3211
3224
|
fill: t === "liked" ? "currentColor" : "none"
|
|
3212
3225
|
}
|
|
@@ -3227,7 +3240,7 @@ function is({
|
|
|
3227
3240
|
children: /* @__PURE__ */ e.jsx(
|
|
3228
3241
|
Tt,
|
|
3229
3242
|
{
|
|
3230
|
-
size:
|
|
3243
|
+
size: U[1],
|
|
3231
3244
|
strokeWidth: 1.5,
|
|
3232
3245
|
fill: t === "disliked" ? "currentColor" : "none"
|
|
3233
3246
|
}
|
|
@@ -3379,15 +3392,15 @@ function Dn({
|
|
|
3379
3392
|
statePrimary: h = "idle",
|
|
3380
3393
|
stateBack: f = "idle"
|
|
3381
3394
|
}) {
|
|
3382
|
-
const v =
|
|
3395
|
+
const v = K(), { t: N } = ye(), g = c ?? v.next, w = u ?? v.back, y = d ?? v.skipTour, k = p ?? v.done, j = I(null), b = I(t), S = I(s), B = I(l);
|
|
3383
3396
|
b.current = t, S.current = s, B.current = l;
|
|
3384
|
-
const [D, W] = L(!1), [
|
|
3385
|
-
const
|
|
3386
|
-
if (!
|
|
3387
|
-
const m = fs(
|
|
3397
|
+
const [D, W] = L(!1), [E, P] = L({ position: "fixed", visibility: "hidden", width: Ae }), [O, G] = L("bottom"), [Y, _] = L(null), A = I(!1), $ = t[s], q = s === t.length - 1, V = de(() => {
|
|
3398
|
+
const C = b.current[S.current];
|
|
3399
|
+
if (!C || !j.current) return;
|
|
3400
|
+
const m = fs(C.target);
|
|
3388
3401
|
if (!m) return;
|
|
3389
|
-
const x = m.getBoundingClientRect(), F =
|
|
3390
|
-
|
|
3402
|
+
const x = m.getBoundingClientRect(), F = j.current.getBoundingClientRect().height || 160, ee = Ae, ie = B.current ? cs : ds, H = C.position || ms(x, F, ee, ie), { top: Z, left: fe, arrowOffset: _e, arrowOffsetY: Re } = ps(H, x, F, ee, ie);
|
|
3403
|
+
G(H), P({
|
|
3391
3404
|
position: "fixed",
|
|
3392
3405
|
top: Z,
|
|
3393
3406
|
left: fe,
|
|
@@ -3395,7 +3408,7 @@ function Dn({
|
|
|
3395
3408
|
visibility: "visible",
|
|
3396
3409
|
"--arrow-offset": `${_e}px`,
|
|
3397
3410
|
"--arrow-offset-y": `${Re}px`
|
|
3398
|
-
}),
|
|
3411
|
+
}), _({
|
|
3399
3412
|
top: x.top - Ee,
|
|
3400
3413
|
left: x.left - Ee,
|
|
3401
3414
|
width: x.width + Ee * 2,
|
|
@@ -3404,40 +3417,40 @@ function Dn({
|
|
|
3404
3417
|
}, []);
|
|
3405
3418
|
return z(() => {
|
|
3406
3419
|
window.addEventListener("scroll", V, !0), window.addEventListener("resize", V);
|
|
3407
|
-
const
|
|
3420
|
+
const C = requestAnimationFrame(() => {
|
|
3408
3421
|
V(), W(!0), A.current = !0;
|
|
3409
3422
|
});
|
|
3410
3423
|
return () => {
|
|
3411
|
-
cancelAnimationFrame(
|
|
3424
|
+
cancelAnimationFrame(C), window.removeEventListener("scroll", V, !0), window.removeEventListener("resize", V);
|
|
3412
3425
|
};
|
|
3413
3426
|
}, []), z(() => {
|
|
3414
3427
|
if (!A.current) return;
|
|
3415
3428
|
W(!1);
|
|
3416
|
-
const
|
|
3429
|
+
const C = setTimeout(() => {
|
|
3417
3430
|
P((m) => ({ ...m, visibility: "hidden" })), requestAnimationFrame(() => {
|
|
3418
3431
|
V(), W(!0);
|
|
3419
3432
|
});
|
|
3420
3433
|
}, us + 20);
|
|
3421
|
-
return () => clearTimeout(
|
|
3434
|
+
return () => clearTimeout(C);
|
|
3422
3435
|
}, [s]), z(() => {
|
|
3423
|
-
D &&
|
|
3436
|
+
D && j.current && j.current.focus({ preventScroll: !0 });
|
|
3424
3437
|
}, [D]), z(() => {
|
|
3425
|
-
const
|
|
3438
|
+
const C = (m) => {
|
|
3426
3439
|
m.key === "Escape" && r();
|
|
3427
3440
|
};
|
|
3428
|
-
return document.addEventListener("keydown",
|
|
3441
|
+
return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
|
|
3429
3442
|
}, [r]), z(() => {
|
|
3430
3443
|
if (!D) return;
|
|
3431
|
-
const
|
|
3432
|
-
if (m.key !== "Tab" || !
|
|
3444
|
+
const C = (m) => {
|
|
3445
|
+
if (m.key !== "Tab" || !j.current) return;
|
|
3433
3446
|
const x = Array.from(
|
|
3434
|
-
|
|
3447
|
+
j.current.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])')
|
|
3435
3448
|
);
|
|
3436
3449
|
if (!x.length) return;
|
|
3437
3450
|
const R = x[0], F = x[x.length - 1];
|
|
3438
3451
|
m.shiftKey && document.activeElement === R ? (m.preventDefault(), F.focus()) : !m.shiftKey && document.activeElement === F && (m.preventDefault(), R.focus());
|
|
3439
3452
|
};
|
|
3440
|
-
return document.addEventListener("keydown",
|
|
3453
|
+
return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
|
|
3441
3454
|
}, [D]), !$ || typeof document > "u" ? null : oe.createPortal(
|
|
3442
3455
|
/* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3443
3456
|
Y && /* @__PURE__ */ e.jsx(
|
|
@@ -3456,18 +3469,18 @@ function Dn({
|
|
|
3456
3469
|
/* @__PURE__ */ e.jsxs(
|
|
3457
3470
|
"div",
|
|
3458
3471
|
{
|
|
3459
|
-
ref:
|
|
3472
|
+
ref: j,
|
|
3460
3473
|
"data-ds-portal": "",
|
|
3461
3474
|
role: "dialog",
|
|
3462
3475
|
"aria-modal": "false",
|
|
3463
3476
|
"aria-live": "polite",
|
|
3464
|
-
"aria-label": $.title ??
|
|
3477
|
+
"aria-label": $.title ?? N("stepOf", { current: s + 1, total: t.length }),
|
|
3465
3478
|
className: [
|
|
3466
3479
|
"ds-coachmark__bubble",
|
|
3467
|
-
`ds-coachmark__bubble--${
|
|
3480
|
+
`ds-coachmark__bubble--${O}`,
|
|
3468
3481
|
D && "ds-coachmark__bubble--visible"
|
|
3469
3482
|
].filter(Boolean).join(" "),
|
|
3470
|
-
style:
|
|
3483
|
+
style: E,
|
|
3471
3484
|
tabIndex: -1,
|
|
3472
3485
|
children: [
|
|
3473
3486
|
/* @__PURE__ */ e.jsx(
|
|
@@ -3489,8 +3502,8 @@ function Dn({
|
|
|
3489
3502
|
t.length
|
|
3490
3503
|
] }),
|
|
3491
3504
|
/* @__PURE__ */ e.jsxs("div", { className: "ds-coachmark__footer-nav", children: [
|
|
3492
|
-
s > 0 && /* @__PURE__ */ e.jsx(ce, { variant: "secondary", size: "s", state: f, onClick: a, children:
|
|
3493
|
-
/* @__PURE__ */ e.jsx(ce, { variant: "primary", size: "s", state: h, onClick: q ? o : n, children: q ?
|
|
3505
|
+
s > 0 && /* @__PURE__ */ e.jsx(ce, { variant: "secondary", size: "s", state: f, onClick: a, children: w }),
|
|
3506
|
+
/* @__PURE__ */ e.jsx(ce, { variant: "primary", size: "s", state: h, onClick: q ? o : n, children: q ? k : g })
|
|
3494
3507
|
] })
|
|
3495
3508
|
] })
|
|
3496
3509
|
]
|
|
@@ -3613,7 +3626,7 @@ export {
|
|
|
3613
3626
|
Ce as Tooltip,
|
|
3614
3627
|
Te as defaultStrings,
|
|
3615
3628
|
at as formatString,
|
|
3616
|
-
|
|
3629
|
+
U as iconSizes,
|
|
3617
3630
|
Gt as useAnimatedNumber,
|
|
3618
3631
|
ts as useAnimatedPlaceholder,
|
|
3619
3632
|
Ln as useCoachmark,
|
|
@@ -3621,6 +3634,6 @@ export {
|
|
|
3621
3634
|
ye as useLocale,
|
|
3622
3635
|
Pn as useShake,
|
|
3623
3636
|
wn as useStreamScroll,
|
|
3624
|
-
|
|
3637
|
+
K as useStrings,
|
|
3625
3638
|
xn as useToast
|
|
3626
3639
|
};
|