@donkit-ai/design-system 1.1.22 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.d.ts +13 -0
- package/dist/index.es.js +275 -237
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import B, { useState as S, useRef as A, useEffect as L, useLayoutEffect as ve } from "react";
|
|
2
2
|
import Q from "react-dom";
|
|
3
|
-
import { ChevronDown as ee, Minus as
|
|
3
|
+
import { ChevronDown as ee, Minus as _e, Plus as je, XCircle as fe, AlertTriangle as me, CheckCircle as pe, Info as he, X as le, Check as we, ChevronUp as Ne, ChevronsUpDown as ye } from "lucide-react";
|
|
4
4
|
const P = {
|
|
5
5
|
1: 16,
|
|
6
6
|
2: 20,
|
|
@@ -24,8 +24,8 @@ function Ee() {
|
|
|
24
24
|
ce = 1;
|
|
25
25
|
var s = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
26
26
|
function r(l, n, a) {
|
|
27
|
-
var
|
|
28
|
-
if (a !== void 0 && (
|
|
27
|
+
var c = null;
|
|
28
|
+
if (a !== void 0 && (c = "" + a), n.key !== void 0 && (c = "" + n.key), "key" in n) {
|
|
29
29
|
a = {};
|
|
30
30
|
for (var d in n)
|
|
31
31
|
d !== "key" && (a[d] = n[d]);
|
|
@@ -33,7 +33,7 @@ function Ee() {
|
|
|
33
33
|
return n = a.ref, {
|
|
34
34
|
$$typeof: s,
|
|
35
35
|
type: l,
|
|
36
|
-
key:
|
|
36
|
+
key: c,
|
|
37
37
|
ref: n !== void 0 ? n : null,
|
|
38
38
|
props: a
|
|
39
39
|
};
|
|
@@ -51,7 +51,7 @@ var X = {};
|
|
|
51
51
|
* LICENSE file in the root directory of this source tree.
|
|
52
52
|
*/
|
|
53
53
|
var ie;
|
|
54
|
-
function
|
|
54
|
+
function ge() {
|
|
55
55
|
return ie || (ie = 1, process.env.NODE_ENV !== "production" && function() {
|
|
56
56
|
function s(o) {
|
|
57
57
|
if (o == null) return null;
|
|
@@ -61,7 +61,7 @@ function Re() {
|
|
|
61
61
|
switch (o) {
|
|
62
62
|
case y:
|
|
63
63
|
return "Fragment";
|
|
64
|
-
case
|
|
64
|
+
case k:
|
|
65
65
|
return "Profiler";
|
|
66
66
|
case E:
|
|
67
67
|
return "StrictMode";
|
|
@@ -69,16 +69,16 @@ function Re() {
|
|
|
69
69
|
return "Suspense";
|
|
70
70
|
case x:
|
|
71
71
|
return "SuspenseList";
|
|
72
|
-
case
|
|
72
|
+
case M:
|
|
73
73
|
return "Activity";
|
|
74
74
|
}
|
|
75
75
|
if (typeof o == "object")
|
|
76
76
|
switch (typeof o.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
|
), o.$$typeof) {
|
|
79
|
-
case
|
|
79
|
+
case _:
|
|
80
80
|
return "Portal";
|
|
81
|
-
case
|
|
81
|
+
case $:
|
|
82
82
|
return o.displayName || "Context";
|
|
83
83
|
case w:
|
|
84
84
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
@@ -108,11 +108,11 @@ function Re() {
|
|
|
108
108
|
}
|
|
109
109
|
if (b) {
|
|
110
110
|
b = console;
|
|
111
|
-
var N = b.error,
|
|
111
|
+
var N = b.error, g = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
112
112
|
return N.call(
|
|
113
113
|
b,
|
|
114
114
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
115
|
-
|
|
115
|
+
g
|
|
116
116
|
), e(o);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -134,7 +134,7 @@ function Re() {
|
|
|
134
134
|
function a() {
|
|
135
135
|
return Error("react-stack-top-frame");
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function c(o) {
|
|
138
138
|
if (J.call(o, "key")) {
|
|
139
139
|
var b = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
140
140
|
if (b && b.isReactWarning) return !1;
|
|
@@ -159,15 +159,15 @@ function Re() {
|
|
|
159
159
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
160
160
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
161
161
|
}
|
|
162
|
-
function u(o, b, N,
|
|
163
|
-
var
|
|
162
|
+
function u(o, b, N, g, Z, re) {
|
|
163
|
+
var R = N.ref;
|
|
164
164
|
return o = {
|
|
165
165
|
$$typeof: v,
|
|
166
166
|
type: o,
|
|
167
167
|
key: b,
|
|
168
168
|
props: N,
|
|
169
|
-
_owner:
|
|
170
|
-
}, (
|
|
169
|
+
_owner: g
|
|
170
|
+
}, (R !== void 0 ? R : null) !== null ? Object.defineProperty(o, "ref", {
|
|
171
171
|
enumerable: !1,
|
|
172
172
|
get: p
|
|
173
173
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
@@ -192,48 +192,48 @@ function Re() {
|
|
|
192
192
|
value: re
|
|
193
193
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
194
194
|
}
|
|
195
|
-
function f(o, b, N,
|
|
196
|
-
var
|
|
197
|
-
if (
|
|
198
|
-
if (
|
|
199
|
-
if (te(
|
|
200
|
-
for (
|
|
201
|
-
m(
|
|
202
|
-
Object.freeze && Object.freeze(
|
|
195
|
+
function f(o, b, N, g, Z, re) {
|
|
196
|
+
var R = b.children;
|
|
197
|
+
if (R !== void 0)
|
|
198
|
+
if (g)
|
|
199
|
+
if (te(R)) {
|
|
200
|
+
for (g = 0; g < R.length; g++)
|
|
201
|
+
m(R[g]);
|
|
202
|
+
Object.freeze && Object.freeze(R);
|
|
203
203
|
} else
|
|
204
204
|
console.error(
|
|
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
|
-
else m(
|
|
207
|
+
else m(R);
|
|
208
208
|
if (J.call(b, "key")) {
|
|
209
|
-
|
|
209
|
+
R = s(o);
|
|
210
210
|
var V = Object.keys(b).filter(function(xe) {
|
|
211
211
|
return xe !== "key";
|
|
212
212
|
});
|
|
213
|
-
|
|
213
|
+
g = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", H[R + g] || (V = 0 < V.length ? "{" + V.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} />
|
|
217
217
|
React keys must be passed directly to JSX without using spread:
|
|
218
218
|
let props = %s;
|
|
219
219
|
<%s key={someKey} {...props} />`,
|
|
220
|
+
g,
|
|
220
221
|
R,
|
|
221
|
-
k,
|
|
222
222
|
V,
|
|
223
|
-
|
|
224
|
-
), H[
|
|
223
|
+
R
|
|
224
|
+
), H[R + g] = !0);
|
|
225
225
|
}
|
|
226
|
-
if (
|
|
226
|
+
if (R = null, N !== void 0 && (r(N), R = "" + N), c(b) && (r(b.key), R = "" + b.key), "key" in b) {
|
|
227
227
|
N = {};
|
|
228
228
|
for (var ne in b)
|
|
229
229
|
ne !== "key" && (N[ne] = b[ne]);
|
|
230
230
|
} else N = b;
|
|
231
|
-
return
|
|
231
|
+
return R && d(
|
|
232
232
|
N,
|
|
233
233
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
234
234
|
), u(
|
|
235
235
|
o,
|
|
236
|
-
|
|
236
|
+
R,
|
|
237
237
|
N,
|
|
238
238
|
n(),
|
|
239
239
|
Z,
|
|
@@ -246,44 +246,44 @@ React keys must be passed directly to JSX without using spread:
|
|
|
246
246
|
function h(o) {
|
|
247
247
|
return typeof o == "object" && o !== null && o.$$typeof === v;
|
|
248
248
|
}
|
|
249
|
-
var
|
|
249
|
+
var i = B, v = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), W = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), D = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, te = Array.isArray, j = console.createTask ? console.createTask : function() {
|
|
250
250
|
return null;
|
|
251
251
|
};
|
|
252
|
-
|
|
252
|
+
i = {
|
|
253
253
|
react_stack_bottom_frame: function(o) {
|
|
254
254
|
return o();
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
|
-
var F, q = {}, K =
|
|
258
|
-
|
|
257
|
+
var F, q = {}, K = i.react_stack_bottom_frame.bind(
|
|
258
|
+
i,
|
|
259
259
|
a
|
|
260
|
-
)(), se =
|
|
260
|
+
)(), se = j(l(a)), H = {};
|
|
261
261
|
X.Fragment = y, X.jsx = function(o, b, N) {
|
|
262
|
-
var
|
|
262
|
+
var g = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
263
263
|
return f(
|
|
264
264
|
o,
|
|
265
265
|
b,
|
|
266
266
|
N,
|
|
267
267
|
!1,
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
g ? Error("react-stack-top-frame") : K,
|
|
269
|
+
g ? j(l(o)) : se
|
|
270
270
|
);
|
|
271
271
|
}, X.jsxs = function(o, b, N) {
|
|
272
|
-
var
|
|
272
|
+
var g = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
273
273
|
return f(
|
|
274
274
|
o,
|
|
275
275
|
b,
|
|
276
276
|
N,
|
|
277
277
|
!0,
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
g ? Error("react-stack-top-frame") : K,
|
|
279
|
+
g ? j(l(o)) : se
|
|
280
280
|
);
|
|
281
281
|
};
|
|
282
282
|
}()), X;
|
|
283
283
|
}
|
|
284
|
-
process.env.NODE_ENV === "production" ? ae.exports = Ee() : ae.exports =
|
|
284
|
+
process.env.NODE_ENV === "production" ? ae.exports = Ee() : ae.exports = ge();
|
|
285
285
|
var t = ae.exports;
|
|
286
|
-
function
|
|
286
|
+
function Re({ size: s = "m", color: e = "default", className: r = "", ...l }) {
|
|
287
287
|
return /* @__PURE__ */ t.jsx(
|
|
288
288
|
"span",
|
|
289
289
|
{
|
|
@@ -294,35 +294,35 @@ function ke({ size: s = "m", color: e = "default", className: r = "", ...l }) {
|
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function ke({
|
|
298
298
|
children: s,
|
|
299
299
|
variant: e = "primary",
|
|
300
300
|
size: r = "m",
|
|
301
301
|
fullWidth: l = !1,
|
|
302
302
|
icon: n,
|
|
303
303
|
disabled: a = !1,
|
|
304
|
-
state:
|
|
304
|
+
state: c = "idle",
|
|
305
305
|
onClick: d,
|
|
306
306
|
type: p = "button",
|
|
307
307
|
href: u,
|
|
308
308
|
"aria-label": f,
|
|
309
309
|
...m
|
|
310
310
|
}) {
|
|
311
|
-
const h = n && !s,
|
|
311
|
+
const h = n && !s, i = c === "loading", v = r === "l" ? "s" : "xs", _ = [
|
|
312
312
|
"ds-button",
|
|
313
313
|
`ds-button--${e}`,
|
|
314
314
|
`ds-button--${r}`,
|
|
315
315
|
l && "ds-button--full",
|
|
316
316
|
h && "ds-button--icon-only"
|
|
317
|
-
].filter(Boolean).join(" "), y =
|
|
318
|
-
|
|
319
|
-
!
|
|
317
|
+
].filter(Boolean).join(" "), y = c !== "idle" ? c : void 0, E = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
318
|
+
i && /* @__PURE__ */ t.jsx(Re, { size: v }),
|
|
319
|
+
!i && n && !h && /* @__PURE__ */ t.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: n }),
|
|
320
320
|
s,
|
|
321
|
-
!
|
|
321
|
+
!i && h && /* @__PURE__ */ t.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: n })
|
|
322
322
|
] });
|
|
323
323
|
if (u) {
|
|
324
|
-
const
|
|
325
|
-
if (a ||
|
|
324
|
+
const k = (w) => {
|
|
325
|
+
if (a || i) {
|
|
326
326
|
w.preventDefault();
|
|
327
327
|
return;
|
|
328
328
|
}
|
|
@@ -331,12 +331,12 @@ function $e({
|
|
|
331
331
|
return /* @__PURE__ */ t.jsx(
|
|
332
332
|
"a",
|
|
333
333
|
{
|
|
334
|
-
className:
|
|
335
|
-
href: a ||
|
|
336
|
-
onClick:
|
|
334
|
+
className: _,
|
|
335
|
+
href: a || i ? void 0 : u,
|
|
336
|
+
onClick: k,
|
|
337
337
|
"aria-label": f,
|
|
338
|
-
"aria-disabled": a ||
|
|
339
|
-
"aria-busy":
|
|
338
|
+
"aria-disabled": a || i ? "true" : void 0,
|
|
339
|
+
"aria-busy": i ? "true" : void 0,
|
|
340
340
|
"data-state": y,
|
|
341
341
|
...m,
|
|
342
342
|
children: E
|
|
@@ -347,11 +347,11 @@ function $e({
|
|
|
347
347
|
"button",
|
|
348
348
|
{
|
|
349
349
|
type: p,
|
|
350
|
-
className:
|
|
350
|
+
className: _,
|
|
351
351
|
disabled: a,
|
|
352
|
-
onClick:
|
|
352
|
+
onClick: i ? void 0 : d,
|
|
353
353
|
"aria-label": f,
|
|
354
|
-
"aria-busy":
|
|
354
|
+
"aria-busy": i ? "true" : void 0,
|
|
355
355
|
"data-state": y,
|
|
356
356
|
...m,
|
|
357
357
|
children: E
|
|
@@ -365,13 +365,13 @@ function We({
|
|
|
365
365
|
fullWidth: l = !0,
|
|
366
366
|
icon: n,
|
|
367
367
|
iconRight: a,
|
|
368
|
-
onIconRightClick:
|
|
368
|
+
onIconRightClick: c,
|
|
369
369
|
size: d = "m",
|
|
370
370
|
disabled: p,
|
|
371
371
|
id: u,
|
|
372
372
|
...f
|
|
373
373
|
}) {
|
|
374
|
-
const m = u || `input-${B.useId()}`, h = r ? `${m}-hint` : void 0,
|
|
374
|
+
const m = u || `input-${B.useId()}`, h = r ? `${m}-hint` : void 0, i = e ? `${m}-error` : void 0, v = i || h;
|
|
375
375
|
return /* @__PURE__ */ t.jsxs("div", { className: `ds-input-wrapper ${l ? "ds-input-wrapper--full" : ""} ${p ? "ds-input-wrapper--disabled" : ""} ${e ? "ds-input-wrapper--error" : ""}`, children: [
|
|
376
376
|
s && /* @__PURE__ */ t.jsx("label", { className: "ds-input-label", htmlFor: m, children: s }),
|
|
377
377
|
/* @__PURE__ */ t.jsxs("div", { className: "ds-input-container", children: [
|
|
@@ -392,7 +392,7 @@ function We({
|
|
|
392
392
|
{
|
|
393
393
|
type: "button",
|
|
394
394
|
className: `ds-input-icon-right ds-input-icon-right--${d}`,
|
|
395
|
-
onClick:
|
|
395
|
+
onClick: c,
|
|
396
396
|
tabIndex: -1,
|
|
397
397
|
"aria-label": "Toggle visibility",
|
|
398
398
|
children: a
|
|
@@ -400,7 +400,7 @@ function We({
|
|
|
400
400
|
)
|
|
401
401
|
] }),
|
|
402
402
|
r && !e && /* @__PURE__ */ t.jsx("span", { id: h, className: "ds-input-hint", children: r }),
|
|
403
|
-
/* @__PURE__ */ t.jsx("div", { className: "ds-input-error-wrap", children: /* @__PURE__ */ t.jsx("div", { className: "ds-input-error-inner", children: e && /* @__PURE__ */ t.jsx("span", { id:
|
|
403
|
+
/* @__PURE__ */ t.jsx("div", { className: "ds-input-error-wrap", children: /* @__PURE__ */ t.jsx("div", { className: "ds-input-error-inner", children: e && /* @__PURE__ */ t.jsx("span", { id: i, className: "ds-input-error", role: "alert", children: e }) }) })
|
|
404
404
|
] });
|
|
405
405
|
}
|
|
406
406
|
function ze({
|
|
@@ -410,12 +410,12 @@ function ze({
|
|
|
410
410
|
fullWidth: l = !0,
|
|
411
411
|
size: n = "m",
|
|
412
412
|
disabled: a,
|
|
413
|
-
id:
|
|
413
|
+
id: c,
|
|
414
414
|
resize: d = !0,
|
|
415
415
|
rows: p = 3,
|
|
416
416
|
...u
|
|
417
417
|
}) {
|
|
418
|
-
const f =
|
|
418
|
+
const f = c || `textarea-${B.useId()}`, m = r ? `${f}-hint` : void 0, h = e ? `${f}-error` : void 0, i = h || m;
|
|
419
419
|
return /* @__PURE__ */ t.jsxs("div", { className: `ds-textarea-wrapper ${l ? "ds-textarea-wrapper--full" : ""} ${a ? "ds-textarea-wrapper--disabled" : ""}`, children: [
|
|
420
420
|
s && /* @__PURE__ */ t.jsx("label", { className: "ds-textarea-label", htmlFor: f, children: s }),
|
|
421
421
|
/* @__PURE__ */ t.jsx(
|
|
@@ -425,7 +425,7 @@ function ze({
|
|
|
425
425
|
className: `ds-textarea ds-textarea--${n} ${e ? "ds-textarea--error" : ""} ${d ? "" : "ds-textarea--no-resize"}`,
|
|
426
426
|
disabled: a,
|
|
427
427
|
"aria-invalid": e ? "true" : "false",
|
|
428
|
-
"aria-describedby":
|
|
428
|
+
"aria-describedby": i,
|
|
429
429
|
rows: p,
|
|
430
430
|
...u
|
|
431
431
|
}
|
|
@@ -441,25 +441,25 @@ function Ve({
|
|
|
441
441
|
options: l = [],
|
|
442
442
|
placeholder: n = "Select option",
|
|
443
443
|
error: a,
|
|
444
|
-
fullWidth:
|
|
444
|
+
fullWidth: c = !0,
|
|
445
445
|
size: d = "m",
|
|
446
446
|
disabled: p = !1,
|
|
447
447
|
id: u,
|
|
448
448
|
...f
|
|
449
449
|
}) {
|
|
450
|
-
const [m, h] = S(!1), [
|
|
451
|
-
|
|
450
|
+
const [m, h] = S(!1), [i, v] = S(!1), [_, y] = S({}), [E, k] = S("down"), w = A(null), $ = A(null), W = A(null), z = u || `select-${B.useId()}`, x = `${z}-label`, T = a ? `${z}-error` : void 0, I = 150, M = () => {
|
|
451
|
+
i || (v(!0), W.current = setTimeout(() => {
|
|
452
452
|
h(!1), v(!1);
|
|
453
453
|
}, I));
|
|
454
454
|
};
|
|
455
455
|
L(() => () => clearTimeout(W.current), []);
|
|
456
456
|
const O = () => {
|
|
457
457
|
var o;
|
|
458
|
-
const
|
|
459
|
-
if (!
|
|
460
|
-
const F = window.innerHeight, q = F -
|
|
461
|
-
|
|
462
|
-
H ? { bottom: F -
|
|
458
|
+
const j = (o = w.current) == null ? void 0 : o.getBoundingClientRect();
|
|
459
|
+
if (!j) return;
|
|
460
|
+
const F = window.innerHeight, q = F - j.bottom, K = j.top, H = q < 300 && K > q;
|
|
461
|
+
k(H ? "up" : "down"), y(
|
|
462
|
+
H ? { bottom: F - j.top + 4, left: j.left, width: j.width } : { top: j.bottom + 4, left: j.left, width: j.width }
|
|
463
463
|
);
|
|
464
464
|
};
|
|
465
465
|
L(() => {
|
|
@@ -468,41 +468,41 @@ function Ve({
|
|
|
468
468
|
window.removeEventListener("scroll", O, !0), window.removeEventListener("resize", O);
|
|
469
469
|
};
|
|
470
470
|
}, [m]), L(() => {
|
|
471
|
-
const
|
|
472
|
-
w.current && !w.current.contains(F.target) &&
|
|
471
|
+
const j = (F) => {
|
|
472
|
+
w.current && !w.current.contains(F.target) && $.current && !$.current.contains(F.target) && M();
|
|
473
473
|
};
|
|
474
|
-
return document.addEventListener("mousedown",
|
|
475
|
-
}, [
|
|
476
|
-
const D = l.find((
|
|
474
|
+
return document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j);
|
|
475
|
+
}, [i]);
|
|
476
|
+
const D = l.find((j) => j.value === e), J = d === "xs" ? P[1] : d === "small" ? P[2] : P[3], te = m && /* @__PURE__ */ t.jsx(
|
|
477
477
|
"div",
|
|
478
478
|
{
|
|
479
|
-
ref:
|
|
479
|
+
ref: $,
|
|
480
480
|
role: "listbox",
|
|
481
481
|
"aria-labelledby": s ? x : void 0,
|
|
482
482
|
className: [
|
|
483
483
|
"ds-select-dropdown",
|
|
484
484
|
`ds-select-dropdown--${d}`,
|
|
485
485
|
`ds-select-dropdown--${E}`,
|
|
486
|
-
|
|
486
|
+
i && "ds-select-dropdown--closing"
|
|
487
487
|
].filter(Boolean).join(" "),
|
|
488
|
-
style:
|
|
489
|
-
children: l.map((
|
|
488
|
+
style: _,
|
|
489
|
+
children: l.map((j) => /* @__PURE__ */ t.jsx(
|
|
490
490
|
"button",
|
|
491
491
|
{
|
|
492
492
|
type: "button",
|
|
493
493
|
role: "option",
|
|
494
|
-
"aria-selected": e ===
|
|
495
|
-
className: `ds-select-option ds-select-option--${d} ${e ===
|
|
494
|
+
"aria-selected": e === j.value,
|
|
495
|
+
className: `ds-select-option ds-select-option--${d} ${e === j.value ? "ds-select-option--selected" : ""}`,
|
|
496
496
|
onClick: () => {
|
|
497
|
-
r == null || r(
|
|
497
|
+
r == null || r(j.value), M();
|
|
498
498
|
},
|
|
499
|
-
children:
|
|
499
|
+
children: j.label
|
|
500
500
|
},
|
|
501
|
-
|
|
501
|
+
j.value
|
|
502
502
|
))
|
|
503
503
|
}
|
|
504
504
|
);
|
|
505
|
-
return /* @__PURE__ */ t.jsxs("div", { className: `ds-select-wrapper ${
|
|
505
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `ds-select-wrapper ${c ? "ds-select-wrapper--full" : ""} ${p ? "ds-select-wrapper--disabled" : ""}`, children: [
|
|
506
506
|
s && /* @__PURE__ */ t.jsx("label", { id: x, className: "ds-select-label", children: s }),
|
|
507
507
|
/* @__PURE__ */ t.jsx("div", { className: "ds-select-container", ref: w, children: /* @__PURE__ */ t.jsxs(
|
|
508
508
|
"button",
|
|
@@ -517,7 +517,7 @@ function Ve({
|
|
|
517
517
|
"aria-describedby": T,
|
|
518
518
|
className: `ds-select-trigger ds-select-trigger--${d} ${a ? "ds-select-trigger--error" : ""}`,
|
|
519
519
|
onClick: () => {
|
|
520
|
-
p || (m ?
|
|
520
|
+
p || (m ? M() : (clearTimeout(W.current), v(!1), h(!0)));
|
|
521
521
|
},
|
|
522
522
|
disabled: p,
|
|
523
523
|
...f,
|
|
@@ -546,7 +546,7 @@ function Ye({
|
|
|
546
546
|
min: l = 0,
|
|
547
547
|
max: n = 100,
|
|
548
548
|
step: a = 1,
|
|
549
|
-
size:
|
|
549
|
+
size: c = "m",
|
|
550
550
|
disabled: d = !1,
|
|
551
551
|
hint: p,
|
|
552
552
|
error: u,
|
|
@@ -560,30 +560,30 @@ function Ye({
|
|
|
560
560
|
if (d) return;
|
|
561
561
|
const E = Math.max(Number(e) - a, l);
|
|
562
562
|
r == null || r(E);
|
|
563
|
-
},
|
|
563
|
+
}, i = (E) => {
|
|
564
564
|
if (d) return;
|
|
565
|
-
const
|
|
566
|
-
if (
|
|
565
|
+
const k = E.target.value;
|
|
566
|
+
if (k === "") {
|
|
567
567
|
r == null || r(l);
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
|
-
const w = Number(
|
|
570
|
+
const w = Number(k);
|
|
571
571
|
if (!isNaN(w)) {
|
|
572
|
-
const
|
|
573
|
-
r == null || r(
|
|
572
|
+
const $ = Math.min(Math.max(w, l), n);
|
|
573
|
+
r == null || r($);
|
|
574
574
|
}
|
|
575
575
|
}, v = [
|
|
576
576
|
"ds-stepper-wrapper",
|
|
577
577
|
d && "ds-stepper-wrapper--disabled",
|
|
578
578
|
u && "ds-stepper-wrapper--error"
|
|
579
|
-
].filter(Boolean).join(" "),
|
|
579
|
+
].filter(Boolean).join(" "), _ = [
|
|
580
580
|
"ds-stepper",
|
|
581
|
-
`ds-stepper--${
|
|
581
|
+
`ds-stepper--${c}`,
|
|
582
582
|
d && "ds-stepper--disabled"
|
|
583
|
-
].filter(Boolean).join(" "), y =
|
|
583
|
+
].filter(Boolean).join(" "), y = c === "xs" ? P[1] : c === "small" ? P[2] : P[3];
|
|
584
584
|
return /* @__PURE__ */ t.jsxs("div", { className: v, children: [
|
|
585
585
|
s && /* @__PURE__ */ t.jsx("label", { className: "ds-stepper-label", children: s }),
|
|
586
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
586
|
+
/* @__PURE__ */ t.jsxs("div", { className: _, children: [
|
|
587
587
|
/* @__PURE__ */ t.jsx(
|
|
588
588
|
"button",
|
|
589
589
|
{
|
|
@@ -592,7 +592,7 @@ function Ye({
|
|
|
592
592
|
onClick: h,
|
|
593
593
|
disabled: d || e <= l,
|
|
594
594
|
"aria-label": "Decrease",
|
|
595
|
-
children: /* @__PURE__ */ t.jsx(
|
|
595
|
+
children: /* @__PURE__ */ t.jsx(_e, { size: y, strokeWidth: 1.5 })
|
|
596
596
|
}
|
|
597
597
|
),
|
|
598
598
|
/* @__PURE__ */ t.jsx(
|
|
@@ -601,7 +601,7 @@ function Ye({
|
|
|
601
601
|
type: "number",
|
|
602
602
|
className: "ds-stepper-input",
|
|
603
603
|
value: e,
|
|
604
|
-
onChange:
|
|
604
|
+
onChange: i,
|
|
605
605
|
min: l,
|
|
606
606
|
max: n,
|
|
607
607
|
step: a,
|
|
@@ -617,7 +617,7 @@ function Ye({
|
|
|
617
617
|
onClick: m,
|
|
618
618
|
disabled: d || e >= n,
|
|
619
619
|
"aria-label": "Increase",
|
|
620
|
-
children: /* @__PURE__ */ t.jsx(
|
|
620
|
+
children: /* @__PURE__ */ t.jsx(je, { size: y, strokeWidth: 1.5 })
|
|
621
621
|
}
|
|
622
622
|
)
|
|
623
623
|
] }),
|
|
@@ -633,7 +633,7 @@ function Ue({
|
|
|
633
633
|
// deprecated, use variant="interactive"
|
|
634
634
|
onClick: n,
|
|
635
635
|
href: a,
|
|
636
|
-
disabled:
|
|
636
|
+
disabled: c = !1,
|
|
637
637
|
...d
|
|
638
638
|
}) {
|
|
639
639
|
const u = (l ? "interactive" : r) === "interactive" || n || a, f = [
|
|
@@ -642,8 +642,8 @@ function Ue({
|
|
|
642
642
|
u && "ds-card--interactive"
|
|
643
643
|
].filter(Boolean).join(" ");
|
|
644
644
|
if (a) {
|
|
645
|
-
const
|
|
646
|
-
if (
|
|
645
|
+
const i = (v) => {
|
|
646
|
+
if (c) {
|
|
647
647
|
v.preventDefault();
|
|
648
648
|
return;
|
|
649
649
|
}
|
|
@@ -653,9 +653,9 @@ function Ue({
|
|
|
653
653
|
"a",
|
|
654
654
|
{
|
|
655
655
|
className: f,
|
|
656
|
-
href:
|
|
657
|
-
onClick:
|
|
658
|
-
"aria-disabled":
|
|
656
|
+
href: c ? void 0 : a,
|
|
657
|
+
onClick: i,
|
|
658
|
+
"aria-disabled": c ? "true" : void 0,
|
|
659
659
|
...d,
|
|
660
660
|
children: s
|
|
661
661
|
}
|
|
@@ -664,7 +664,7 @@ function Ue({
|
|
|
664
664
|
const m = u && n ? "button" : "div", h = u && n ? {
|
|
665
665
|
type: "button",
|
|
666
666
|
onClick: n,
|
|
667
|
-
disabled:
|
|
667
|
+
disabled: c
|
|
668
668
|
} : {};
|
|
669
669
|
return /* @__PURE__ */ t.jsx(
|
|
670
670
|
m,
|
|
@@ -709,10 +709,10 @@ function Qe({
|
|
|
709
709
|
"ds-badge",
|
|
710
710
|
`ds-badge--${e}`,
|
|
711
711
|
`ds-badge--${r}`
|
|
712
|
-
].filter(Boolean).join(" "),
|
|
713
|
-
return /* @__PURE__ */ t.jsx("span", { className: a, role:
|
|
712
|
+
].filter(Boolean).join(" "), c = l || (["info", "success", "warning", "error"].includes(e) ? "status" : void 0);
|
|
713
|
+
return /* @__PURE__ */ t.jsx("span", { className: a, role: c, ...n, children: s });
|
|
714
714
|
}
|
|
715
|
-
const
|
|
715
|
+
const $e = {
|
|
716
716
|
info: he,
|
|
717
717
|
success: pe,
|
|
718
718
|
warning: me,
|
|
@@ -726,9 +726,9 @@ function et({
|
|
|
726
726
|
role: n,
|
|
727
727
|
...a
|
|
728
728
|
}) {
|
|
729
|
-
const
|
|
729
|
+
const c = $e[e], d = n || (e === "error" ? "alert" : "status");
|
|
730
730
|
return /* @__PURE__ */ t.jsxs("div", { className: `ds-alert ds-alert--${e} ${r ? "" : "ds-alert--no-title"}`, role: d, ...a, children: [
|
|
731
|
-
|
|
731
|
+
c && /* @__PURE__ */ t.jsx("div", { className: "ds-alert__icon", children: /* @__PURE__ */ t.jsx(c, { size: P[3], strokeWidth: 1.5 }) }),
|
|
732
732
|
/* @__PURE__ */ t.jsxs("div", { className: "ds-alert__content", children: [
|
|
733
733
|
r && /* @__PURE__ */ t.jsx("div", { className: "ds-alert__title", children: r }),
|
|
734
734
|
s && /* @__PURE__ */ t.jsx("div", { className: "ds-alert__message", children: s })
|
|
@@ -753,22 +753,22 @@ function tt({
|
|
|
753
753
|
size: l = "m",
|
|
754
754
|
...n
|
|
755
755
|
}) {
|
|
756
|
-
const a = A(null),
|
|
756
|
+
const a = A(null), c = B.useId(), [d, p] = S(!1), u = () => {
|
|
757
757
|
!r || d || (p(!0), setTimeout(() => {
|
|
758
758
|
p(!1), r();
|
|
759
759
|
}, Te));
|
|
760
760
|
};
|
|
761
761
|
L(() => {
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
}, v = (
|
|
765
|
-
a.current && !a.current.contains(
|
|
762
|
+
const i = (_) => {
|
|
763
|
+
_.key === "Escape" && u();
|
|
764
|
+
}, v = (_) => {
|
|
765
|
+
a.current && !a.current.contains(_.target) && u();
|
|
766
766
|
};
|
|
767
|
-
return document.addEventListener("keydown",
|
|
768
|
-
document.removeEventListener("keydown",
|
|
767
|
+
return document.addEventListener("keydown", i), document.addEventListener("mousedown", v), () => {
|
|
768
|
+
document.removeEventListener("keydown", i), document.removeEventListener("mousedown", v);
|
|
769
769
|
};
|
|
770
770
|
}, [r, d]);
|
|
771
|
-
const f = B.Children.toArray(s), m = f.find((
|
|
771
|
+
const f = B.Children.toArray(s), m = f.find((i) => (i == null ? void 0 : i.type) === de), h = f.filter((i) => (i == null ? void 0 : i.type) !== de);
|
|
772
772
|
return /* @__PURE__ */ t.jsx("div", { className: ["ds-modal-overlay", d && "ds-modal-overlay--closing"].filter(Boolean).join(" "), ...n, children: /* @__PURE__ */ t.jsxs(
|
|
773
773
|
"div",
|
|
774
774
|
{
|
|
@@ -776,12 +776,12 @@ function tt({
|
|
|
776
776
|
ref: a,
|
|
777
777
|
role: "dialog",
|
|
778
778
|
"aria-modal": "true",
|
|
779
|
-
"aria-labelledby": e ?
|
|
779
|
+
"aria-labelledby": e ? c : void 0,
|
|
780
780
|
children: [
|
|
781
781
|
(e || r) && /* @__PURE__ */ t.jsxs("div", { className: "ds-modal__header", children: [
|
|
782
|
-
e && /* @__PURE__ */ t.jsx("h3", { id:
|
|
782
|
+
e && /* @__PURE__ */ t.jsx("h3", { id: c, className: "ds-modal__title", children: e }),
|
|
783
783
|
r && /* @__PURE__ */ t.jsx(
|
|
784
|
-
|
|
784
|
+
ke,
|
|
785
785
|
{
|
|
786
786
|
variant: "ghost",
|
|
787
787
|
size: "small",
|
|
@@ -807,18 +807,18 @@ function Se({
|
|
|
807
807
|
expanded: l,
|
|
808
808
|
onToggle: n,
|
|
809
809
|
padding: a = "s",
|
|
810
|
-
className:
|
|
810
|
+
className: c = "",
|
|
811
811
|
...d
|
|
812
812
|
}) {
|
|
813
813
|
const [p, u] = S(r), f = l !== void 0, m = f ? l : p, h = () => {
|
|
814
814
|
f ? n == null || n(!l) : u((v) => !v);
|
|
815
|
-
},
|
|
815
|
+
}, i = [
|
|
816
816
|
"ds-code-accordion",
|
|
817
817
|
`ds-code-accordion--${a}`,
|
|
818
818
|
m && "ds-code-accordion--expanded",
|
|
819
|
-
|
|
819
|
+
c
|
|
820
820
|
].filter(Boolean).join(" ");
|
|
821
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
821
|
+
return /* @__PURE__ */ t.jsxs("div", { className: i, ...d, children: [
|
|
822
822
|
/* @__PURE__ */ t.jsxs(
|
|
823
823
|
"button",
|
|
824
824
|
{
|
|
@@ -863,24 +863,24 @@ function rt({ href: s, children: e, onClick: r, target: l, rel: n, ...a }) {
|
|
|
863
863
|
function nt({ children: s, size: e = "m", variant: r = "ghost", ...l }) {
|
|
864
864
|
return /* @__PURE__ */ t.jsx("div", { className: "ds-tabs", role: "tablist", ...l, children: B.Children.map(s, (n) => B.isValidElement(n) ? B.cloneElement(n, { size: e, variant: r }) : n) });
|
|
865
865
|
}
|
|
866
|
-
function at({ children: s, selected: e = !1, onClick: r, size: l = "m", variant: n = "ghost", disabled: a = !1, icon:
|
|
867
|
-
const u =
|
|
866
|
+
function at({ children: s, selected: e = !1, onClick: r, size: l = "m", variant: n = "ghost", disabled: a = !1, icon: c, href: d, ...p }) {
|
|
867
|
+
const u = c && !s, f = [
|
|
868
868
|
"ds-tab",
|
|
869
869
|
`ds-tab--${l}`,
|
|
870
870
|
`ds-tab--${n}`,
|
|
871
871
|
e && "ds-tab--selected",
|
|
872
872
|
u && "ds-tab--icon-only"
|
|
873
873
|
].filter(Boolean).join(" "), m = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
874
|
-
|
|
874
|
+
c && /* @__PURE__ */ t.jsx("span", { className: "ds-tab-icon", children: c }),
|
|
875
875
|
s
|
|
876
876
|
] });
|
|
877
877
|
if (d) {
|
|
878
|
-
const h = (
|
|
878
|
+
const h = (i) => {
|
|
879
879
|
if (a) {
|
|
880
|
-
|
|
880
|
+
i.preventDefault();
|
|
881
881
|
return;
|
|
882
882
|
}
|
|
883
|
-
|
|
883
|
+
i.metaKey || i.ctrlKey || i.button === 1 || (i.preventDefault(), r == null || r(i));
|
|
884
884
|
};
|
|
885
885
|
return /* @__PURE__ */ t.jsx(
|
|
886
886
|
"a",
|
|
@@ -910,28 +910,28 @@ function at({ children: s, selected: e = !1, onClick: r, size: l = "m", variant:
|
|
|
910
910
|
);
|
|
911
911
|
}
|
|
912
912
|
function ot({ options: s, value: e, onChange: r, size: l = "m", disabled: n = !1 }) {
|
|
913
|
-
const a = A(null),
|
|
913
|
+
const a = A(null), c = A(null), [d, p] = S(!1), u = A(!1), f = A(null), m = A(null), h = () => {
|
|
914
914
|
if (!a.current) return;
|
|
915
|
-
const
|
|
916
|
-
if (!
|
|
917
|
-
const v = a.current.getBoundingClientRect(),
|
|
918
|
-
|
|
919
|
-
if (!
|
|
920
|
-
const
|
|
921
|
-
if (
|
|
922
|
-
const w = a.current.getBoundingClientRect(),
|
|
923
|
-
|
|
915
|
+
const i = a.current.querySelector(`[data-value="${e}"]`);
|
|
916
|
+
if (!i) return;
|
|
917
|
+
const v = a.current.getBoundingClientRect(), _ = i.getBoundingClientRect(), y = _.left - v.left, E = _.width;
|
|
918
|
+
c.current ? (c.current.style.transition = u.current ? "left var(--transition-normal), width var(--transition-normal)" : "none", c.current.style.left = y + "px", c.current.style.width = E + "px", u.current = !1) : (p(!0), requestAnimationFrame(() => {
|
|
919
|
+
if (!c.current || !a.current) return;
|
|
920
|
+
const k = a.current.querySelector(`[data-value="${e}"]`);
|
|
921
|
+
if (!k) return;
|
|
922
|
+
const w = a.current.getBoundingClientRect(), $ = k.getBoundingClientRect();
|
|
923
|
+
c.current.style.transition = "none", c.current.style.left = $.left - w.left + "px", c.current.style.width = $.width + "px";
|
|
924
924
|
}));
|
|
925
925
|
};
|
|
926
926
|
return m.current = h, ve(() => {
|
|
927
|
-
const
|
|
928
|
-
f.current = e, u.current = d &&
|
|
927
|
+
const i = f.current !== e;
|
|
928
|
+
f.current = e, u.current = d && i, h();
|
|
929
929
|
}), L(() => {
|
|
930
930
|
if (!a.current) return;
|
|
931
|
-
const
|
|
931
|
+
const i = new ResizeObserver(() => {
|
|
932
932
|
u.current = !1, m.current();
|
|
933
933
|
});
|
|
934
|
-
return
|
|
934
|
+
return i.observe(a.current), () => i.disconnect();
|
|
935
935
|
}, []), /* @__PURE__ */ t.jsxs(
|
|
936
936
|
"div",
|
|
937
937
|
{
|
|
@@ -946,26 +946,26 @@ function ot({ options: s, value: e, onChange: r, size: l = "m", disabled: n = !1
|
|
|
946
946
|
d && /* @__PURE__ */ t.jsx(
|
|
947
947
|
"div",
|
|
948
948
|
{
|
|
949
|
-
ref:
|
|
949
|
+
ref: c,
|
|
950
950
|
className: "ds-seg__pill",
|
|
951
951
|
"aria-hidden": "true"
|
|
952
952
|
}
|
|
953
953
|
),
|
|
954
|
-
s.map((
|
|
954
|
+
s.map((i) => /* @__PURE__ */ t.jsxs(
|
|
955
955
|
"button",
|
|
956
956
|
{
|
|
957
957
|
type: "button",
|
|
958
|
-
"data-value":
|
|
959
|
-
className: ["ds-seg__btn", e ===
|
|
960
|
-
onClick: () => !n && r(
|
|
961
|
-
"aria-pressed": e ===
|
|
958
|
+
"data-value": i.value,
|
|
959
|
+
className: ["ds-seg__btn", e === i.value && "ds-seg__btn--active"].filter(Boolean).join(" "),
|
|
960
|
+
onClick: () => !n && r(i.value),
|
|
961
|
+
"aria-pressed": e === i.value,
|
|
962
962
|
disabled: n,
|
|
963
963
|
children: [
|
|
964
|
-
|
|
965
|
-
|
|
964
|
+
i.icon && /* @__PURE__ */ t.jsx("span", { className: "ds-seg__btn-icon", "aria-hidden": "true", children: i.icon }),
|
|
965
|
+
i.label
|
|
966
966
|
]
|
|
967
967
|
},
|
|
968
|
-
|
|
968
|
+
i.value
|
|
969
969
|
))
|
|
970
970
|
]
|
|
971
971
|
}
|
|
@@ -978,16 +978,16 @@ function lt({
|
|
|
978
978
|
expanded: l,
|
|
979
979
|
onToggle: n,
|
|
980
980
|
padding: a = "m",
|
|
981
|
-
...
|
|
981
|
+
...c
|
|
982
982
|
}) {
|
|
983
983
|
const [d, p] = S(r), u = l !== void 0, f = u ? l : d, m = () => {
|
|
984
|
-
u ? n == null || n(!l) : p((
|
|
984
|
+
u ? n == null || n(!l) : p((i) => !i);
|
|
985
985
|
}, h = [
|
|
986
986
|
"ds-accordion",
|
|
987
987
|
`ds-accordion--${a}`,
|
|
988
988
|
f && "ds-accordion--expanded"
|
|
989
989
|
].filter(Boolean).join(" ");
|
|
990
|
-
return /* @__PURE__ */ t.jsxs("div", { className: h, ...
|
|
990
|
+
return /* @__PURE__ */ t.jsxs("div", { className: h, ...c, children: [
|
|
991
991
|
/* @__PURE__ */ t.jsxs(
|
|
992
992
|
"button",
|
|
993
993
|
{
|
|
@@ -1011,63 +1011,63 @@ function lt({
|
|
|
1011
1011
|
/* @__PURE__ */ t.jsx("div", { className: "ds-accordion__content", children: /* @__PURE__ */ t.jsx("div", { className: "ds-accordion__content-inner", children: /* @__PURE__ */ t.jsx("div", { className: "ds-accordion__content-body", children: s }) }) })
|
|
1012
1012
|
] });
|
|
1013
1013
|
}
|
|
1014
|
-
const
|
|
1014
|
+
const C = 8, Y = 8;
|
|
1015
1015
|
function Ie(s, e, r) {
|
|
1016
1016
|
const l = window.innerWidth;
|
|
1017
1017
|
let n, a;
|
|
1018
1018
|
switch (s) {
|
|
1019
1019
|
case "top":
|
|
1020
|
-
n = e.top - r.height -
|
|
1020
|
+
n = e.top - r.height - C, a = e.left + e.width / 2 - r.width / 2;
|
|
1021
1021
|
break;
|
|
1022
1022
|
case "bottom":
|
|
1023
|
-
n = e.bottom +
|
|
1023
|
+
n = e.bottom + C, a = e.left + e.width / 2 - r.width / 2;
|
|
1024
1024
|
break;
|
|
1025
1025
|
case "left":
|
|
1026
|
-
n = e.top + e.height / 2 - r.height / 2, a = e.left - r.width -
|
|
1026
|
+
n = e.top + e.height / 2 - r.height / 2, a = e.left - r.width - C;
|
|
1027
1027
|
break;
|
|
1028
1028
|
case "right":
|
|
1029
|
-
n = e.top + e.height / 2 - r.height / 2, a = e.right +
|
|
1029
|
+
n = e.top + e.height / 2 - r.height / 2, a = e.right + C;
|
|
1030
1030
|
break;
|
|
1031
1031
|
default:
|
|
1032
|
-
n = e.bottom +
|
|
1032
|
+
n = e.bottom + C, a = e.left;
|
|
1033
1033
|
}
|
|
1034
|
-
const
|
|
1035
|
-
return { top: n, left:
|
|
1034
|
+
const c = Math.max(Y, Math.min(l - r.width - Y, a)), d = a - c;
|
|
1035
|
+
return { top: n, left: c, arrowOffset: d };
|
|
1036
1036
|
}
|
|
1037
1037
|
function Ae(s, e, r) {
|
|
1038
1038
|
const l = window.innerWidth, n = window.innerHeight;
|
|
1039
|
-
if (s.top >= e +
|
|
1040
|
-
if (n - s.bottom >= e +
|
|
1041
|
-
if (l - s.right >= r +
|
|
1042
|
-
if (s.left >= r +
|
|
1039
|
+
if (s.top >= e + C + Y) return "top";
|
|
1040
|
+
if (n - s.bottom >= e + C + Y) return "bottom";
|
|
1041
|
+
if (l - s.right >= r + C + Y) return "right";
|
|
1042
|
+
if (s.left >= r + C + Y) return "left";
|
|
1043
1043
|
const a = Math.max(s.top, n - s.bottom, s.left, l - s.right);
|
|
1044
1044
|
return a === s.top ? "top" : a === n - s.bottom ? "bottom" : a === l - s.right ? "right" : "left";
|
|
1045
1045
|
}
|
|
1046
1046
|
function ct({ children: s, content: e, position: r, ...l }) {
|
|
1047
|
-
const [n, a] = S(!1), [
|
|
1047
|
+
const [n, a] = S(!1), [c, d] = S({ visibility: "hidden" }), [p, u] = S(r || "top"), f = A(null), m = A(null), h = A(!1), i = () => {
|
|
1048
1048
|
if (!f.current || !m.current) return;
|
|
1049
|
-
const
|
|
1049
|
+
const _ = f.current.getBoundingClientRect(), y = m.current.getBoundingClientRect(), E = r || Ae(_, y.height, y.width), { top: k, left: w, arrowOffset: $ } = Ie(E, _, y);
|
|
1050
1050
|
u(E), d({
|
|
1051
1051
|
position: "fixed",
|
|
1052
|
-
top:
|
|
1052
|
+
top: k,
|
|
1053
1053
|
left: w,
|
|
1054
1054
|
visibility: "visible",
|
|
1055
|
-
"--arrow-offset": `${
|
|
1055
|
+
"--arrow-offset": `${$}px`
|
|
1056
1056
|
});
|
|
1057
1057
|
};
|
|
1058
1058
|
if (L(() => {
|
|
1059
1059
|
if (!n) return;
|
|
1060
1060
|
d({ position: "fixed", visibility: "hidden" });
|
|
1061
|
-
const
|
|
1062
|
-
return window.addEventListener("scroll",
|
|
1063
|
-
cancelAnimationFrame(
|
|
1061
|
+
const _ = requestAnimationFrame(i);
|
|
1062
|
+
return window.addEventListener("scroll", i, !0), window.addEventListener("resize", i), () => {
|
|
1063
|
+
cancelAnimationFrame(_), window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i);
|
|
1064
1064
|
};
|
|
1065
1065
|
}, [n, r]), L(() => {
|
|
1066
1066
|
if (!n) return;
|
|
1067
|
-
const
|
|
1067
|
+
const _ = (y) => {
|
|
1068
1068
|
f.current && !f.current.contains(y.target) && a(!1);
|
|
1069
1069
|
};
|
|
1070
|
-
return document.addEventListener("touchstart",
|
|
1070
|
+
return document.addEventListener("touchstart", _), () => document.removeEventListener("touchstart", _);
|
|
1071
1071
|
}, [n]), !e) return s;
|
|
1072
1072
|
const v = n && /* @__PURE__ */ t.jsx(
|
|
1073
1073
|
"div",
|
|
@@ -1075,7 +1075,7 @@ function ct({ children: s, content: e, position: r, ...l }) {
|
|
|
1075
1075
|
ref: m,
|
|
1076
1076
|
className: `ds-tooltip ds-tooltip--${p}`,
|
|
1077
1077
|
role: "tooltip",
|
|
1078
|
-
style:
|
|
1078
|
+
style: c,
|
|
1079
1079
|
children: e
|
|
1080
1080
|
}
|
|
1081
1081
|
);
|
|
@@ -1091,7 +1091,7 @@ function ct({ children: s, content: e, position: r, ...l }) {
|
|
|
1091
1091
|
h.current || a(!1);
|
|
1092
1092
|
},
|
|
1093
1093
|
onTouchStart: () => {
|
|
1094
|
-
h.current = !0, a((
|
|
1094
|
+
h.current = !0, a((_) => !_);
|
|
1095
1095
|
},
|
|
1096
1096
|
...l,
|
|
1097
1097
|
children: [
|
|
@@ -1108,7 +1108,7 @@ function it({
|
|
|
1108
1108
|
disabled: l = !1,
|
|
1109
1109
|
label: n,
|
|
1110
1110
|
id: a,
|
|
1111
|
-
...
|
|
1111
|
+
...c
|
|
1112
1112
|
}) {
|
|
1113
1113
|
const d = a || `toggle-${B.useId()}`, p = [
|
|
1114
1114
|
"ds-toggle",
|
|
@@ -1125,7 +1125,7 @@ function it({
|
|
|
1125
1125
|
checked: s,
|
|
1126
1126
|
onChange: (u) => e == null ? void 0 : e(u.target.checked),
|
|
1127
1127
|
disabled: l,
|
|
1128
|
-
...
|
|
1128
|
+
...c
|
|
1129
1129
|
}
|
|
1130
1130
|
),
|
|
1131
1131
|
/* @__PURE__ */ t.jsx("span", { className: "ds-toggle__track", children: /* @__PURE__ */ t.jsx("span", { className: "ds-toggle__thumb" }) }),
|
|
@@ -1139,7 +1139,7 @@ function dt({
|
|
|
1139
1139
|
disabled: l = !1,
|
|
1140
1140
|
label: n,
|
|
1141
1141
|
id: a,
|
|
1142
|
-
...
|
|
1142
|
+
...c
|
|
1143
1143
|
}) {
|
|
1144
1144
|
const d = a || `checkbox-${B.useId()}`, p = [
|
|
1145
1145
|
"ds-checkbox",
|
|
@@ -1156,7 +1156,7 @@ function dt({
|
|
|
1156
1156
|
checked: s,
|
|
1157
1157
|
onChange: (f) => e == null ? void 0 : e(f.target.checked),
|
|
1158
1158
|
disabled: l,
|
|
1159
|
-
...
|
|
1159
|
+
...c
|
|
1160
1160
|
}
|
|
1161
1161
|
),
|
|
1162
1162
|
/* @__PURE__ */ t.jsx("span", { className: "ds-checkbox__box", children: s && /* @__PURE__ */ t.jsx(
|
|
@@ -1177,7 +1177,7 @@ function ut({
|
|
|
1177
1177
|
disabled: l = !1,
|
|
1178
1178
|
label: n,
|
|
1179
1179
|
name: a,
|
|
1180
|
-
value:
|
|
1180
|
+
value: c,
|
|
1181
1181
|
id: d,
|
|
1182
1182
|
...p
|
|
1183
1183
|
}) {
|
|
@@ -1197,7 +1197,7 @@ function ut({
|
|
|
1197
1197
|
onChange: (m) => e == null ? void 0 : e(m.target.checked),
|
|
1198
1198
|
disabled: l,
|
|
1199
1199
|
name: a,
|
|
1200
|
-
value:
|
|
1200
|
+
value: c,
|
|
1201
1201
|
...p
|
|
1202
1202
|
}
|
|
1203
1203
|
),
|
|
@@ -1227,7 +1227,7 @@ function Oe(s) {
|
|
|
1227
1227
|
const e = s.trim().split(/\s+/);
|
|
1228
1228
|
return e.length >= 2 ? (e[0][0] + e[1][0]).toUpperCase() : s[0].toUpperCase();
|
|
1229
1229
|
}
|
|
1230
|
-
function mt({ seed: s, icon: e, src: r, size: l = 32, className: n = "", style: a = {}, ...
|
|
1230
|
+
function mt({ seed: s, icon: e, src: r, size: l = 32, className: n = "", style: a = {}, ...c }) {
|
|
1231
1231
|
const d = Pe(s ?? ""), [p, u] = S(!1), f = e ?? /* @__PURE__ */ t.jsx("span", { className: "ds-avatar__initials", children: Oe(s) });
|
|
1232
1232
|
return /* @__PURE__ */ t.jsx(
|
|
1233
1233
|
"div",
|
|
@@ -1235,7 +1235,7 @@ function mt({ seed: s, icon: e, src: r, size: l = 32, className: n = "", style:
|
|
|
1235
1235
|
className: ["ds-avatar", n].filter(Boolean).join(" "),
|
|
1236
1236
|
style: { width: l, height: l, "--ds-avatar-h": d, ...a },
|
|
1237
1237
|
"aria-hidden": "true",
|
|
1238
|
-
...
|
|
1238
|
+
...c,
|
|
1239
1239
|
children: r && !p ? /* @__PURE__ */ t.jsx("img", { src: r, alt: "", onError: () => u(!0) }) : f
|
|
1240
1240
|
}
|
|
1241
1241
|
);
|
|
@@ -1247,7 +1247,7 @@ function pt({
|
|
|
1247
1247
|
maxHeight: l,
|
|
1248
1248
|
className: n = "",
|
|
1249
1249
|
style: a = {},
|
|
1250
|
-
...
|
|
1250
|
+
...c
|
|
1251
1251
|
}) {
|
|
1252
1252
|
const d = {
|
|
1253
1253
|
...l ? { maxHeight: l } : {},
|
|
@@ -1263,7 +1263,7 @@ function pt({
|
|
|
1263
1263
|
"table",
|
|
1264
1264
|
{
|
|
1265
1265
|
className: ["ds-table", `ds-table--${e}`, n].filter(Boolean).join(" "),
|
|
1266
|
-
...
|
|
1266
|
+
...c,
|
|
1267
1267
|
children: s
|
|
1268
1268
|
}
|
|
1269
1269
|
)
|
|
@@ -1276,7 +1276,7 @@ function ht({ children: s, ...e }) {
|
|
|
1276
1276
|
function bt({ children: s, ...e }) {
|
|
1277
1277
|
return /* @__PURE__ */ t.jsx("tbody", { ...e, children: s });
|
|
1278
1278
|
}
|
|
1279
|
-
function xt({ children: s, interactive: e, selected: r, subheader: l, className: n = "", onClick: a, ...
|
|
1279
|
+
function xt({ children: s, interactive: e, selected: r, subheader: l, className: n = "", onClick: a, ...c }) {
|
|
1280
1280
|
return /* @__PURE__ */ t.jsx(
|
|
1281
1281
|
"tr",
|
|
1282
1282
|
{
|
|
@@ -1288,7 +1288,7 @@ function xt({ children: s, interactive: e, selected: r, subheader: l, className:
|
|
|
1288
1288
|
n
|
|
1289
1289
|
].filter(Boolean).join(" "),
|
|
1290
1290
|
onClick: a,
|
|
1291
|
-
...
|
|
1291
|
+
...c,
|
|
1292
1292
|
children: s
|
|
1293
1293
|
}
|
|
1294
1294
|
);
|
|
@@ -1296,7 +1296,7 @@ function xt({ children: s, interactive: e, selected: r, subheader: l, className:
|
|
|
1296
1296
|
function vt({ children: s, colSpan: e = 999, ...r }) {
|
|
1297
1297
|
return /* @__PURE__ */ t.jsx("tr", { className: "ds-table-row ds-table-row--subheader", ...r, children: /* @__PURE__ */ t.jsx("td", { colSpan: e, children: s }) });
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function _t({ children: s, align: e = "left", sortDir: r, onSort: l, width: n, className: a = "", style: c = {}, ...d }) {
|
|
1300
1300
|
const p = !!l || r !== void 0, u = r === "asc" ? Ne : r === "desc" ? ee : ye;
|
|
1301
1301
|
return /* @__PURE__ */ t.jsx(
|
|
1302
1302
|
"th",
|
|
@@ -1309,7 +1309,7 @@ function jt({ children: s, align: e = "left", sortDir: r, onSort: l, width: n, c
|
|
|
1309
1309
|
a
|
|
1310
1310
|
].filter(Boolean).join(" "),
|
|
1311
1311
|
onClick: l,
|
|
1312
|
-
style: { width: n, ...
|
|
1312
|
+
style: { width: n, ...c },
|
|
1313
1313
|
...d,
|
|
1314
1314
|
children: p ? /* @__PURE__ */ t.jsxs("span", { className: "ds-th__inner", children: [
|
|
1315
1315
|
s,
|
|
@@ -1318,7 +1318,7 @@ function jt({ children: s, align: e = "left", sortDir: r, onSort: l, width: n, c
|
|
|
1318
1318
|
}
|
|
1319
1319
|
);
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function jt({ children: s, align: e = "left", secondary: r, muted: l, truncate: n, nowrap: a, className: c = "", ...d }) {
|
|
1322
1322
|
return /* @__PURE__ */ t.jsx(
|
|
1323
1323
|
"td",
|
|
1324
1324
|
{
|
|
@@ -1329,7 +1329,7 @@ function _t({ children: s, align: e = "left", secondary: r, muted: l, truncate:
|
|
|
1329
1329
|
l ? "ds-table-cell--muted" : "",
|
|
1330
1330
|
n ? "ds-table-cell--truncate" : "",
|
|
1331
1331
|
a ? "ds-table-cell--nowrap" : "",
|
|
1332
|
-
|
|
1332
|
+
c
|
|
1333
1333
|
].filter(Boolean).join(" "),
|
|
1334
1334
|
...d,
|
|
1335
1335
|
children: s
|
|
@@ -1343,13 +1343,13 @@ function wt({
|
|
|
1343
1343
|
action: l,
|
|
1344
1344
|
size: n = "m",
|
|
1345
1345
|
className: a = "",
|
|
1346
|
-
...
|
|
1346
|
+
...c
|
|
1347
1347
|
}) {
|
|
1348
1348
|
return /* @__PURE__ */ t.jsxs(
|
|
1349
1349
|
"div",
|
|
1350
1350
|
{
|
|
1351
1351
|
className: ["ds-empty-state", `ds-empty-state--${n}`, a].filter(Boolean).join(" "),
|
|
1352
|
-
...
|
|
1352
|
+
...c,
|
|
1353
1353
|
children: [
|
|
1354
1354
|
s && /* @__PURE__ */ t.jsx("div", { className: "ds-empty-state__icon", children: s }),
|
|
1355
1355
|
/* @__PURE__ */ t.jsx("div", { className: "ds-empty-state__title", children: e }),
|
|
@@ -1366,24 +1366,24 @@ function Nt({
|
|
|
1366
1366
|
onOpenChange: l,
|
|
1367
1367
|
align: n = "left",
|
|
1368
1368
|
className: a = "",
|
|
1369
|
-
style:
|
|
1369
|
+
style: c,
|
|
1370
1370
|
...d
|
|
1371
1371
|
}) {
|
|
1372
|
-
const [p, u] = S(!1), [f, m] = S(!1), h = r !== void 0,
|
|
1372
|
+
const [p, u] = S(!1), [f, m] = S(!1), h = r !== void 0, i = h ? r : p, v = A(null), _ = A(null), [y, E] = S({}), k = A(null), w = 150, $ = () => {
|
|
1373
1373
|
if (h)
|
|
1374
1374
|
l == null || l(!1);
|
|
1375
1375
|
else {
|
|
1376
1376
|
if (f) return;
|
|
1377
|
-
m(!0),
|
|
1377
|
+
m(!0), k.current = setTimeout(() => {
|
|
1378
1378
|
u(!1), m(!1);
|
|
1379
1379
|
}, w);
|
|
1380
1380
|
}
|
|
1381
1381
|
}, W = () => {
|
|
1382
|
-
const x = !
|
|
1383
|
-
h ? l == null || l(x) : x ? (clearTimeout(
|
|
1382
|
+
const x = !i;
|
|
1383
|
+
h ? l == null || l(x) : x ? (clearTimeout(k.current), m(!1), u(!0)) : $();
|
|
1384
1384
|
};
|
|
1385
|
-
L(() => () => clearTimeout(
|
|
1386
|
-
if (!
|
|
1385
|
+
L(() => () => clearTimeout(k.current), []), L(() => {
|
|
1386
|
+
if (!i) return;
|
|
1387
1387
|
const x = () => {
|
|
1388
1388
|
var I;
|
|
1389
1389
|
const T = (I = v.current) == null ? void 0 : I.getBoundingClientRect();
|
|
@@ -1394,22 +1394,22 @@ function Nt({
|
|
|
1394
1394
|
return x(), window.addEventListener("scroll", x, !0), window.addEventListener("resize", x), () => {
|
|
1395
1395
|
window.removeEventListener("scroll", x, !0), window.removeEventListener("resize", x);
|
|
1396
1396
|
};
|
|
1397
|
-
}, [
|
|
1398
|
-
if (!
|
|
1397
|
+
}, [i, n]), L(() => {
|
|
1398
|
+
if (!i) return;
|
|
1399
1399
|
const x = (I) => {
|
|
1400
|
-
var
|
|
1401
|
-
!((
|
|
1400
|
+
var M, O;
|
|
1401
|
+
!((M = v.current) != null && M.contains(I.target)) && !((O = _.current) != null && O.contains(I.target)) && $();
|
|
1402
1402
|
}, T = (I) => {
|
|
1403
|
-
I.key === "Escape" &&
|
|
1403
|
+
I.key === "Escape" && $();
|
|
1404
1404
|
};
|
|
1405
1405
|
return document.addEventListener("mousedown", x), document.addEventListener("keydown", T), () => {
|
|
1406
1406
|
document.removeEventListener("mousedown", x), document.removeEventListener("keydown", T);
|
|
1407
1407
|
};
|
|
1408
|
-
}, [
|
|
1409
|
-
const z =
|
|
1408
|
+
}, [i]);
|
|
1409
|
+
const z = i && /* @__PURE__ */ t.jsx(
|
|
1410
1410
|
"div",
|
|
1411
1411
|
{
|
|
1412
|
-
ref:
|
|
1412
|
+
ref: _,
|
|
1413
1413
|
className: [
|
|
1414
1414
|
"ds-dropdown__menu",
|
|
1415
1415
|
`ds-dropdown__menu--${n}`,
|
|
@@ -1424,9 +1424,9 @@ function Nt({
|
|
|
1424
1424
|
x.label && /* @__PURE__ */ t.jsx("div", { className: "ds-dropdown__section-label", children: x.label }),
|
|
1425
1425
|
/* @__PURE__ */ t.jsx("div", { className: "ds-dropdown__section-content", children: x.content })
|
|
1426
1426
|
] }, T);
|
|
1427
|
-
const I = !!x.href,
|
|
1427
|
+
const I = !!x.href, M = I ? "a" : "button", O = I ? { href: x.disabled ? void 0 : x.href, "aria-disabled": x.disabled ? "true" : void 0 } : { type: "button", disabled: x.disabled };
|
|
1428
1428
|
return /* @__PURE__ */ t.jsxs(
|
|
1429
|
-
|
|
1429
|
+
M,
|
|
1430
1430
|
{
|
|
1431
1431
|
className: [
|
|
1432
1432
|
"ds-dropdown__item",
|
|
@@ -1435,7 +1435,7 @@ function Nt({
|
|
|
1435
1435
|
...O,
|
|
1436
1436
|
onClick: () => {
|
|
1437
1437
|
var D;
|
|
1438
|
-
(D = x.onClick) == null || D.call(x),
|
|
1438
|
+
(D = x.onClick) == null || D.call(x), $();
|
|
1439
1439
|
},
|
|
1440
1440
|
children: [
|
|
1441
1441
|
x.icon && /* @__PURE__ */ t.jsx("span", { className: "ds-dropdown__item-icon", children: x.icon }),
|
|
@@ -1453,7 +1453,7 @@ function Nt({
|
|
|
1453
1453
|
{
|
|
1454
1454
|
ref: v,
|
|
1455
1455
|
className: ["ds-dropdown", a].filter(Boolean).join(" "),
|
|
1456
|
-
style:
|
|
1456
|
+
style: c,
|
|
1457
1457
|
...d,
|
|
1458
1458
|
children: [
|
|
1459
1459
|
/* @__PURE__ */ t.jsx("div", { className: "ds-dropdown__trigger", onClick: W, children: s }),
|
|
@@ -1462,6 +1462,43 @@ function Nt({
|
|
|
1462
1462
|
}
|
|
1463
1463
|
);
|
|
1464
1464
|
}
|
|
1465
|
+
function yt({
|
|
1466
|
+
value: s = 0,
|
|
1467
|
+
size: e = "m",
|
|
1468
|
+
variant: r = "default",
|
|
1469
|
+
showValue: l = !1,
|
|
1470
|
+
min: n = 2,
|
|
1471
|
+
animate: a = !0
|
|
1472
|
+
}) {
|
|
1473
|
+
const c = Math.min(100, Math.max(0, s)), d = Math.max(n, c), p = r === "auto" ? c >= 70 ? "success" : c >= 50 ? "warning" : "danger" : r;
|
|
1474
|
+
return /* @__PURE__ */ t.jsxs(
|
|
1475
|
+
"div",
|
|
1476
|
+
{
|
|
1477
|
+
className: [
|
|
1478
|
+
"ds-progress",
|
|
1479
|
+
`ds-progress--${e}`,
|
|
1480
|
+
!a && "ds-progress--instant"
|
|
1481
|
+
].filter(Boolean).join(" "),
|
|
1482
|
+
role: "progressbar",
|
|
1483
|
+
"aria-valuenow": c,
|
|
1484
|
+
"aria-valuemin": 0,
|
|
1485
|
+
"aria-valuemax": 100,
|
|
1486
|
+
children: [
|
|
1487
|
+
/* @__PURE__ */ t.jsx("div", { className: "ds-progress__track", children: /* @__PURE__ */ t.jsx(
|
|
1488
|
+
"div",
|
|
1489
|
+
{
|
|
1490
|
+
className: `ds-progress__fill ds-progress__fill--${p}`,
|
|
1491
|
+
style: { width: `${d}%` }
|
|
1492
|
+
}
|
|
1493
|
+
) }),
|
|
1494
|
+
l && /* @__PURE__ */ t.jsxs("span", { className: "ds-progress__value", children: [
|
|
1495
|
+
Math.round(c),
|
|
1496
|
+
"%"
|
|
1497
|
+
] })
|
|
1498
|
+
]
|
|
1499
|
+
}
|
|
1500
|
+
);
|
|
1501
|
+
}
|
|
1465
1502
|
const ue = {
|
|
1466
1503
|
default: he,
|
|
1467
1504
|
success: pe,
|
|
@@ -1479,7 +1516,7 @@ function Be(s) {
|
|
|
1479
1516
|
function Le(s) {
|
|
1480
1517
|
U = U.filter((e) => e.id !== s), be();
|
|
1481
1518
|
}
|
|
1482
|
-
function
|
|
1519
|
+
function Et() {
|
|
1483
1520
|
const s = (e, r = {}) => {
|
|
1484
1521
|
Be({
|
|
1485
1522
|
id: `${Date.now()}-${Math.random()}`,
|
|
@@ -1497,7 +1534,7 @@ function De({ data: s, onDismiss: e }) {
|
|
|
1497
1534
|
function a() {
|
|
1498
1535
|
l(!1), setTimeout(() => e(s.id), 250);
|
|
1499
1536
|
}
|
|
1500
|
-
const
|
|
1537
|
+
const c = ue[s.type] ?? ue.default;
|
|
1501
1538
|
return /* @__PURE__ */ t.jsxs(
|
|
1502
1539
|
"div",
|
|
1503
1540
|
{
|
|
@@ -1509,7 +1546,7 @@ function De({ data: s, onDismiss: e }) {
|
|
|
1509
1546
|
role: s.type === "error" ? "alert" : "status",
|
|
1510
1547
|
"aria-live": "polite",
|
|
1511
1548
|
children: [
|
|
1512
|
-
/* @__PURE__ */ t.jsx("div", { className: "ds-toast__icon", children: /* @__PURE__ */ t.jsx(
|
|
1549
|
+
/* @__PURE__ */ t.jsx("div", { className: "ds-toast__icon", children: /* @__PURE__ */ t.jsx(c, { size: P[3], strokeWidth: 1.5 }) }),
|
|
1513
1550
|
/* @__PURE__ */ t.jsx("span", { className: "ds-toast__message", children: s.message }),
|
|
1514
1551
|
/* @__PURE__ */ t.jsx(
|
|
1515
1552
|
"button",
|
|
@@ -1524,7 +1561,7 @@ function De({ data: s, onDismiss: e }) {
|
|
|
1524
1561
|
}
|
|
1525
1562
|
);
|
|
1526
1563
|
}
|
|
1527
|
-
function
|
|
1564
|
+
function gt({ position: s = "bottom-right" }) {
|
|
1528
1565
|
const [e, r] = S(() => [...U]);
|
|
1529
1566
|
return L(() => (oe.add(r), () => oe.delete(r)), []), !e.length || typeof document > "u" ? null : Q.createPortal(
|
|
1530
1567
|
/* @__PURE__ */ t.jsx("div", { className: ["ds-toast-container", `ds-toast-container--${s}`].join(" "), children: e.map((l) => /* @__PURE__ */ t.jsx(De, { data: l, onDismiss: Le }, l.id)) }),
|
|
@@ -1536,7 +1573,7 @@ export {
|
|
|
1536
1573
|
et as Alert,
|
|
1537
1574
|
mt as Avatar,
|
|
1538
1575
|
Qe as Badge,
|
|
1539
|
-
|
|
1576
|
+
ke as Button,
|
|
1540
1577
|
Ue as Card,
|
|
1541
1578
|
dt as Checkbox,
|
|
1542
1579
|
st as Code,
|
|
@@ -1554,11 +1591,12 @@ export {
|
|
|
1554
1591
|
Je as P1,
|
|
1555
1592
|
Ke as P2,
|
|
1556
1593
|
Ze as P3,
|
|
1594
|
+
yt as ProgressBar,
|
|
1557
1595
|
ut as Radio,
|
|
1558
1596
|
ot as SegmentedControl,
|
|
1559
1597
|
Ve as Select,
|
|
1560
1598
|
ft as Skeleton,
|
|
1561
|
-
|
|
1599
|
+
Re as Spinner,
|
|
1562
1600
|
Ye as Stepper,
|
|
1563
1601
|
at as Tab,
|
|
1564
1602
|
pt as Table,
|
|
@@ -1567,12 +1605,12 @@ export {
|
|
|
1567
1605
|
xt as TableRow,
|
|
1568
1606
|
vt as TableSubheaderRow,
|
|
1569
1607
|
nt as Tabs,
|
|
1570
|
-
|
|
1608
|
+
jt as Td,
|
|
1571
1609
|
ze as Textarea,
|
|
1572
|
-
|
|
1573
|
-
|
|
1610
|
+
_t as Th,
|
|
1611
|
+
gt as ToastContainer,
|
|
1574
1612
|
it as Toggle,
|
|
1575
1613
|
ct as Tooltip,
|
|
1576
1614
|
P as iconSizes,
|
|
1577
|
-
|
|
1615
|
+
Et as useToast
|
|
1578
1616
|
};
|