@donkit-ai/design-system 1.3.5 → 1.3.7
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 +27 -2
- package/dist/index.es.js +829 -760
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Check as
|
|
1
|
+
import L, { useState as R, useRef as E, useEffect as D, useLayoutEffect as Ne, useId as ye } from "react";
|
|
2
|
+
import { Check as ve, X as ee, ChevronDown as re, Minus as Ee, Plus as ke, XCircle as le, AlertTriangle as de, CheckCircle as ue, Info as fe, ChevronUp as $e, ChevronsUpDown as ge, ChevronLeft as Re, ChevronRight as je } from "lucide-react";
|
|
3
3
|
import ne from "react-dom";
|
|
4
|
-
const
|
|
4
|
+
const P = {
|
|
5
5
|
1: 16,
|
|
6
6
|
2: 20,
|
|
7
7
|
3: 24,
|
|
8
8
|
4: 28,
|
|
9
9
|
5: 48
|
|
10
10
|
};
|
|
11
|
-
var
|
|
11
|
+
var ie = { exports: {} }, te = {};
|
|
12
12
|
/**
|
|
13
13
|
* @license React
|
|
14
14
|
* react-jsx-runtime.production.js
|
|
@@ -18,14 +18,14 @@ var oe = { exports: {} }, te = {};
|
|
|
18
18
|
* This source code is licensed under the MIT license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
var s = Symbol.for("react.transitional.element"),
|
|
21
|
+
var me;
|
|
22
|
+
function Te() {
|
|
23
|
+
if (me) return te;
|
|
24
|
+
me = 1;
|
|
25
|
+
var s = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
26
26
|
function r(o, a, n) {
|
|
27
|
-
var
|
|
28
|
-
if (n !== void 0 && (
|
|
27
|
+
var i = null;
|
|
28
|
+
if (n !== void 0 && (i = "" + n), a.key !== void 0 && (i = "" + a.key), "key" in a) {
|
|
29
29
|
n = {};
|
|
30
30
|
for (var l in a)
|
|
31
31
|
l !== "key" && (n[l] = a[l]);
|
|
@@ -33,12 +33,12 @@ function ge() {
|
|
|
33
33
|
return a = n.ref, {
|
|
34
34
|
$$typeof: s,
|
|
35
35
|
type: o,
|
|
36
|
-
key:
|
|
36
|
+
key: i,
|
|
37
37
|
ref: a !== void 0 ? a : null,
|
|
38
38
|
props: n
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
return te.Fragment =
|
|
41
|
+
return te.Fragment = t, te.jsx = r, te.jsxs = r, te;
|
|
42
42
|
}
|
|
43
43
|
var se = {};
|
|
44
44
|
/**
|
|
@@ -50,18 +50,18 @@ var se = {};
|
|
|
50
50
|
* This source code is licensed under the MIT license found in the
|
|
51
51
|
* LICENSE file in the root directory of this source tree.
|
|
52
52
|
*/
|
|
53
|
-
var
|
|
54
|
-
function
|
|
55
|
-
return
|
|
56
|
-
function s(
|
|
57
|
-
if (
|
|
58
|
-
if (typeof
|
|
59
|
-
return
|
|
60
|
-
if (typeof
|
|
61
|
-
switch (
|
|
62
|
-
case
|
|
53
|
+
var pe;
|
|
54
|
+
function Ie() {
|
|
55
|
+
return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
56
|
+
function s(c) {
|
|
57
|
+
if (c == null) return null;
|
|
58
|
+
if (typeof c == "function")
|
|
59
|
+
return c.$$typeof === G ? null : c.displayName || c.name || null;
|
|
60
|
+
if (typeof c == "string") return c;
|
|
61
|
+
switch (c) {
|
|
62
|
+
case k:
|
|
63
63
|
return "Fragment";
|
|
64
|
-
case
|
|
64
|
+
case B:
|
|
65
65
|
return "Profiler";
|
|
66
66
|
case N:
|
|
67
67
|
return "StrictMode";
|
|
@@ -69,134 +69,134 @@ function Re() {
|
|
|
69
69
|
return "Suspense";
|
|
70
70
|
case q:
|
|
71
71
|
return "SuspenseList";
|
|
72
|
-
case
|
|
72
|
+
case V:
|
|
73
73
|
return "Activity";
|
|
74
74
|
}
|
|
75
|
-
if (typeof
|
|
76
|
-
switch (typeof
|
|
75
|
+
if (typeof c == "object")
|
|
76
|
+
switch (typeof c.tag == "number" && console.error(
|
|
77
77
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
78
|
-
),
|
|
79
|
-
case
|
|
78
|
+
), c.$$typeof) {
|
|
79
|
+
case w:
|
|
80
80
|
return "Portal";
|
|
81
|
-
case
|
|
82
|
-
return
|
|
83
|
-
case
|
|
84
|
-
return (
|
|
85
|
-
case
|
|
86
|
-
var
|
|
87
|
-
return
|
|
81
|
+
case $:
|
|
82
|
+
return c.displayName || "Context";
|
|
83
|
+
case T:
|
|
84
|
+
return (c._context.displayName || "Context") + ".Consumer";
|
|
85
|
+
case z:
|
|
86
|
+
var x = c.render;
|
|
87
|
+
return c = c.displayName, c || (c = x.displayName || x.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
88
88
|
case M:
|
|
89
|
-
return
|
|
89
|
+
return x = c.displayName || null, x !== null ? x : s(c.type) || "Memo";
|
|
90
90
|
case F:
|
|
91
|
-
|
|
91
|
+
x = c._payload, c = c._init;
|
|
92
92
|
try {
|
|
93
|
-
return s(
|
|
93
|
+
return s(c(x));
|
|
94
94
|
} catch {
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
return "" +
|
|
99
|
+
function t(c) {
|
|
100
|
+
return "" + c;
|
|
101
101
|
}
|
|
102
|
-
function r(
|
|
102
|
+
function r(c) {
|
|
103
103
|
try {
|
|
104
|
-
|
|
105
|
-
var
|
|
104
|
+
t(c);
|
|
105
|
+
var x = !1;
|
|
106
106
|
} catch {
|
|
107
|
-
|
|
107
|
+
x = !0;
|
|
108
108
|
}
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
var y =
|
|
109
|
+
if (x) {
|
|
110
|
+
x = console;
|
|
111
|
+
var y = x.error, I = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
112
112
|
return y.call(
|
|
113
|
-
|
|
113
|
+
x,
|
|
114
114
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
115
115
|
I
|
|
116
|
-
),
|
|
116
|
+
), t(c);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function o(
|
|
120
|
-
if (
|
|
121
|
-
if (typeof
|
|
119
|
+
function o(c) {
|
|
120
|
+
if (c === k) return "<>";
|
|
121
|
+
if (typeof c == "object" && c !== null && c.$$typeof === F)
|
|
122
122
|
return "<...>";
|
|
123
123
|
try {
|
|
124
|
-
var
|
|
125
|
-
return
|
|
124
|
+
var x = s(c);
|
|
125
|
+
return x ? "<" + x + ">" : "<...>";
|
|
126
126
|
} catch {
|
|
127
127
|
return "<...>";
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
131
|
-
var
|
|
132
|
-
return
|
|
131
|
+
var c = H.A;
|
|
132
|
+
return c === null ? null : c.getOwner();
|
|
133
133
|
}
|
|
134
134
|
function n() {
|
|
135
135
|
return Error("react-stack-top-frame");
|
|
136
136
|
}
|
|
137
|
-
function c
|
|
138
|
-
if (
|
|
139
|
-
var
|
|
140
|
-
if (
|
|
137
|
+
function i(c) {
|
|
138
|
+
if (C.call(c, "key")) {
|
|
139
|
+
var x = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
140
|
+
if (x && x.isReactWarning) return !1;
|
|
141
141
|
}
|
|
142
|
-
return
|
|
142
|
+
return c.key !== void 0;
|
|
143
143
|
}
|
|
144
|
-
function l(
|
|
144
|
+
function l(c, x) {
|
|
145
145
|
function y() {
|
|
146
|
-
|
|
146
|
+
g || (g = !0, console.error(
|
|
147
147
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
148
|
-
|
|
148
|
+
x
|
|
149
149
|
));
|
|
150
150
|
}
|
|
151
|
-
y.isReactWarning = !0, Object.defineProperty(
|
|
151
|
+
y.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
152
152
|
get: y,
|
|
153
153
|
configurable: !0
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
function m() {
|
|
157
|
-
var
|
|
158
|
-
return S[
|
|
157
|
+
var c = s(this.type);
|
|
158
|
+
return S[c] || (S[c] = !0, console.error(
|
|
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
|
+
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
161
161
|
}
|
|
162
|
-
function u(
|
|
162
|
+
function u(c, x, y, I, K, X) {
|
|
163
163
|
var A = y.ref;
|
|
164
|
-
return
|
|
165
|
-
$$typeof:
|
|
166
|
-
type:
|
|
167
|
-
key:
|
|
164
|
+
return c = {
|
|
165
|
+
$$typeof: _,
|
|
166
|
+
type: c,
|
|
167
|
+
key: x,
|
|
168
168
|
props: y,
|
|
169
169
|
_owner: I
|
|
170
|
-
}, (A !== void 0 ? A : null) !== null ? Object.defineProperty(
|
|
170
|
+
}, (A !== void 0 ? A : null) !== null ? Object.defineProperty(c, "ref", {
|
|
171
171
|
enumerable: !1,
|
|
172
172
|
get: m
|
|
173
|
-
}) : Object.defineProperty(
|
|
173
|
+
}) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
174
174
|
configurable: !1,
|
|
175
175
|
enumerable: !1,
|
|
176
176
|
writable: !0,
|
|
177
177
|
value: 0
|
|
178
|
-
}), Object.defineProperty(
|
|
178
|
+
}), Object.defineProperty(c, "_debugInfo", {
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
182
|
value: null
|
|
183
|
-
}), Object.defineProperty(
|
|
183
|
+
}), Object.defineProperty(c, "_debugStack", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
186
186
|
writable: !0,
|
|
187
187
|
value: K
|
|
188
|
-
}), Object.defineProperty(
|
|
188
|
+
}), Object.defineProperty(c, "_debugTask", {
|
|
189
189
|
configurable: !1,
|
|
190
190
|
enumerable: !1,
|
|
191
191
|
writable: !0,
|
|
192
192
|
value: X
|
|
193
|
-
}), Object.freeze && (Object.freeze(
|
|
193
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
194
194
|
}
|
|
195
|
-
function p(
|
|
196
|
-
var A =
|
|
195
|
+
function p(c, x, y, I, K, X) {
|
|
196
|
+
var A = x.children;
|
|
197
197
|
if (A !== void 0)
|
|
198
198
|
if (I)
|
|
199
|
-
if (
|
|
199
|
+
if (h(A)) {
|
|
200
200
|
for (I = 0; I < A.length; I++)
|
|
201
201
|
f(A[I]);
|
|
202
202
|
Object.freeze && Object.freeze(A);
|
|
@@ -205,10 +205,10 @@ function Re() {
|
|
|
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 f(A);
|
|
208
|
-
if (
|
|
209
|
-
A = s(
|
|
210
|
-
var J = Object.keys(
|
|
211
|
-
return
|
|
208
|
+
if (C.call(x, "key")) {
|
|
209
|
+
A = s(c);
|
|
210
|
+
var J = Object.keys(x).filter(function(we) {
|
|
211
|
+
return we !== "key";
|
|
212
212
|
});
|
|
213
213
|
I = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", j[A + I] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
214
214
|
`A props object containing a "key" prop is being spread into JSX:
|
|
@@ -223,16 +223,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
223
223
|
A
|
|
224
224
|
), j[A + I] = !0);
|
|
225
225
|
}
|
|
226
|
-
if (A = null, y !== void 0 && (r(y), A = "" + y),
|
|
226
|
+
if (A = null, y !== void 0 && (r(y), A = "" + y), i(x) && (r(x.key), A = "" + x.key), "key" in x) {
|
|
227
227
|
y = {};
|
|
228
|
-
for (var ae in
|
|
229
|
-
ae !== "key" && (y[ae] =
|
|
230
|
-
} else y =
|
|
228
|
+
for (var ae in x)
|
|
229
|
+
ae !== "key" && (y[ae] = x[ae]);
|
|
230
|
+
} else y = x;
|
|
231
231
|
return A && l(
|
|
232
232
|
y,
|
|
233
|
-
typeof
|
|
233
|
+
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
|
|
234
234
|
), u(
|
|
235
|
-
|
|
235
|
+
c,
|
|
236
236
|
A,
|
|
237
237
|
y,
|
|
238
238
|
a(),
|
|
@@ -240,83 +240,83 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
X
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
|
-
function f(
|
|
244
|
-
|
|
243
|
+
function f(c) {
|
|
244
|
+
b(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === F && (c._payload.status === "fulfilled" ? b(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
return typeof
|
|
246
|
+
function b(c) {
|
|
247
|
+
return typeof c == "object" && c !== null && c.$$typeof === _;
|
|
248
248
|
}
|
|
249
|
-
var d =
|
|
249
|
+
var d = L, _ = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), q = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), H = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, h = Array.isArray, v = console.createTask ? console.createTask : function() {
|
|
250
250
|
return null;
|
|
251
251
|
};
|
|
252
252
|
d = {
|
|
253
|
-
react_stack_bottom_frame: function(
|
|
254
|
-
return
|
|
253
|
+
react_stack_bottom_frame: function(c) {
|
|
254
|
+
return c();
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
|
-
var
|
|
257
|
+
var g, S = {}, W = d.react_stack_bottom_frame.bind(
|
|
258
258
|
d,
|
|
259
259
|
n
|
|
260
260
|
)(), U = v(o(n)), j = {};
|
|
261
|
-
se.Fragment =
|
|
261
|
+
se.Fragment = k, se.jsx = function(c, x, y) {
|
|
262
262
|
var I = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
263
263
|
return p(
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
c,
|
|
265
|
+
x,
|
|
266
266
|
y,
|
|
267
267
|
!1,
|
|
268
268
|
I ? Error("react-stack-top-frame") : W,
|
|
269
|
-
I ? v(o(
|
|
269
|
+
I ? v(o(c)) : U
|
|
270
270
|
);
|
|
271
|
-
}, se.jsxs = function(
|
|
271
|
+
}, se.jsxs = function(c, x, y) {
|
|
272
272
|
var I = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
273
273
|
return p(
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
c,
|
|
275
|
+
x,
|
|
276
276
|
y,
|
|
277
277
|
!0,
|
|
278
278
|
I ? Error("react-stack-top-frame") : W,
|
|
279
|
-
I ? v(o(
|
|
279
|
+
I ? v(o(c)) : U
|
|
280
280
|
);
|
|
281
281
|
};
|
|
282
282
|
}()), se;
|
|
283
283
|
}
|
|
284
|
-
process.env.NODE_ENV === "production" ?
|
|
285
|
-
var
|
|
286
|
-
function
|
|
287
|
-
return /* @__PURE__ */
|
|
284
|
+
process.env.NODE_ENV === "production" ? ie.exports = Te() : ie.exports = Ie();
|
|
285
|
+
var e = ie.exports;
|
|
286
|
+
function Ae({ size: s = "m", color: t = "default", className: r = "", ...o }) {
|
|
287
|
+
return /* @__PURE__ */ e.jsx(
|
|
288
288
|
"span",
|
|
289
289
|
{
|
|
290
|
-
className: ["ds-spinner", `ds-spinner--${s}`, `ds-spinner--${
|
|
290
|
+
className: ["ds-spinner", `ds-spinner--${s}`, `ds-spinner--${t}`, r].filter(Boolean).join(" "),
|
|
291
291
|
role: "status",
|
|
292
292
|
"aria-label": "Loading",
|
|
293
293
|
...o
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
|
-
const
|
|
298
|
-
function
|
|
297
|
+
const Se = { xs: 12, s: 14, m: 16, l: 20 };
|
|
298
|
+
function De({
|
|
299
299
|
children: s,
|
|
300
|
-
variant:
|
|
300
|
+
variant: t = "primary",
|
|
301
301
|
size: r = "m",
|
|
302
302
|
fullWidth: o = !1,
|
|
303
303
|
icon: a,
|
|
304
304
|
disabled: n = !1,
|
|
305
|
-
state:
|
|
305
|
+
state: i = "idle",
|
|
306
306
|
onClick: l,
|
|
307
307
|
type: m = "button",
|
|
308
308
|
href: u,
|
|
309
309
|
"aria-label": p,
|
|
310
310
|
...f
|
|
311
311
|
}) {
|
|
312
|
-
const
|
|
312
|
+
const b = a && !s, d = i === "loading", _ = i === "success", w = i === "error", k = d || _ || w, N = r === "xs" ? "s" : "m", B = Se[r] ?? 16, T = d ? /* @__PURE__ */ e.jsx(Ae, { size: N }) : _ ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(ve, { size: B, strokeWidth: 2.5 }) }) : w ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(ee, { size: B, strokeWidth: 2.5 }) }) : null, $ = [
|
|
313
313
|
"ds-button",
|
|
314
|
-
`ds-button--${
|
|
314
|
+
`ds-button--${t}`,
|
|
315
315
|
`ds-button--${r}`,
|
|
316
316
|
o && "ds-button--full",
|
|
317
|
-
|
|
318
|
-
].filter(Boolean).join(" "),
|
|
319
|
-
|
|
317
|
+
b && "ds-button--icon-only"
|
|
318
|
+
].filter(Boolean).join(" "), z = i !== "idle" ? i : void 0, O = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
319
|
+
k ? T : a && /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: a }),
|
|
320
320
|
s
|
|
321
321
|
] });
|
|
322
322
|
if (u) {
|
|
@@ -327,191 +327,191 @@ function Ae({
|
|
|
327
327
|
}
|
|
328
328
|
M.metaKey || M.ctrlKey || M.button === 1 || (M.preventDefault(), l == null || l(M));
|
|
329
329
|
};
|
|
330
|
-
return /* @__PURE__ */
|
|
330
|
+
return /* @__PURE__ */ e.jsx(
|
|
331
331
|
"a",
|
|
332
332
|
{
|
|
333
|
-
className:
|
|
333
|
+
className: $,
|
|
334
334
|
href: n || d ? void 0 : u,
|
|
335
335
|
onClick: q,
|
|
336
336
|
"aria-label": p,
|
|
337
337
|
"aria-disabled": n || d ? "true" : void 0,
|
|
338
338
|
"aria-busy": d ? "true" : void 0,
|
|
339
|
-
"data-state":
|
|
339
|
+
"data-state": z,
|
|
340
340
|
...f,
|
|
341
341
|
children: O
|
|
342
342
|
}
|
|
343
343
|
);
|
|
344
344
|
}
|
|
345
|
-
return /* @__PURE__ */
|
|
345
|
+
return /* @__PURE__ */ e.jsx(
|
|
346
346
|
"button",
|
|
347
347
|
{
|
|
348
348
|
type: m,
|
|
349
|
-
className:
|
|
349
|
+
className: $,
|
|
350
350
|
disabled: n,
|
|
351
351
|
onClick: d ? void 0 : l,
|
|
352
352
|
"aria-label": p,
|
|
353
353
|
"aria-busy": d ? "true" : void 0,
|
|
354
|
-
"data-state":
|
|
354
|
+
"data-state": z,
|
|
355
355
|
...f,
|
|
356
356
|
children: O
|
|
357
357
|
}
|
|
358
358
|
);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function nt({
|
|
361
361
|
label: s,
|
|
362
|
-
error:
|
|
362
|
+
error: t,
|
|
363
363
|
hint: r,
|
|
364
364
|
fullWidth: o = !0,
|
|
365
365
|
icon: a,
|
|
366
366
|
iconRight: n,
|
|
367
|
-
onIconRightClick:
|
|
367
|
+
onIconRightClick: i,
|
|
368
368
|
size: l = "m",
|
|
369
369
|
disabled: m,
|
|
370
370
|
id: u,
|
|
371
371
|
...p
|
|
372
372
|
}) {
|
|
373
|
-
const f = u || `input-${
|
|
374
|
-
return /* @__PURE__ */
|
|
375
|
-
s && /* @__PURE__ */
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
-
a && /* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
373
|
+
const f = u || `input-${L.useId()}`, b = r ? `${f}-hint` : void 0, d = t ? `${f}-error` : void 0, _ = d || b;
|
|
374
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `ds-input-wrapper ${o ? "ds-input-wrapper--full" : ""} ${m ? "ds-input-wrapper--disabled" : ""} ${t ? "ds-input-wrapper--error" : ""}`, children: [
|
|
375
|
+
s && /* @__PURE__ */ e.jsx("label", { className: "ds-input-label", htmlFor: f, children: s }),
|
|
376
|
+
/* @__PURE__ */ e.jsxs("div", { className: "ds-input-container", children: [
|
|
377
|
+
a && /* @__PURE__ */ e.jsx("span", { className: `ds-input-icon ds-input-icon--${l}`, "aria-hidden": "true", children: a }),
|
|
378
|
+
/* @__PURE__ */ e.jsx(
|
|
379
379
|
"input",
|
|
380
380
|
{
|
|
381
381
|
id: f,
|
|
382
|
-
className: `ds-input ds-input--${l} ${a ? "ds-input--with-icon" : ""} ${n ? "ds-input--with-icon-right" : ""} ${
|
|
382
|
+
className: `ds-input ds-input--${l} ${a ? "ds-input--with-icon" : ""} ${n ? "ds-input--with-icon-right" : ""} ${t ? "ds-input--error" : ""}`,
|
|
383
383
|
disabled: m,
|
|
384
|
-
"aria-invalid":
|
|
385
|
-
"aria-describedby":
|
|
384
|
+
"aria-invalid": t ? "true" : "false",
|
|
385
|
+
"aria-describedby": _,
|
|
386
386
|
...p
|
|
387
387
|
}
|
|
388
388
|
),
|
|
389
|
-
n && /* @__PURE__ */
|
|
389
|
+
n && /* @__PURE__ */ e.jsx(
|
|
390
390
|
"button",
|
|
391
391
|
{
|
|
392
392
|
type: "button",
|
|
393
393
|
className: `ds-input-icon-right ds-input-icon-right--${l}`,
|
|
394
|
-
onClick:
|
|
394
|
+
onClick: i,
|
|
395
395
|
tabIndex: -1,
|
|
396
396
|
"aria-label": "Toggle visibility",
|
|
397
397
|
children: n
|
|
398
398
|
}
|
|
399
399
|
)
|
|
400
400
|
] }),
|
|
401
|
-
r && !
|
|
402
|
-
/* @__PURE__ */
|
|
401
|
+
r && !t && /* @__PURE__ */ e.jsx("span", { id: b, className: "ds-input-hint", children: r }),
|
|
402
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-input-error-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-inner", children: t && /* @__PURE__ */ e.jsx("span", { id: d, className: "ds-input-error", role: "alert", children: t }) }) })
|
|
403
403
|
] });
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function at({
|
|
406
406
|
label: s,
|
|
407
|
-
error:
|
|
407
|
+
error: t,
|
|
408
408
|
hint: r,
|
|
409
409
|
fullWidth: o = !0,
|
|
410
410
|
size: a = "m",
|
|
411
411
|
disabled: n,
|
|
412
|
-
id:
|
|
412
|
+
id: i,
|
|
413
413
|
resize: l = !0,
|
|
414
414
|
rows: m = 3,
|
|
415
415
|
...u
|
|
416
416
|
}) {
|
|
417
|
-
const p =
|
|
418
|
-
return /* @__PURE__ */
|
|
419
|
-
s && /* @__PURE__ */
|
|
420
|
-
/* @__PURE__ */
|
|
417
|
+
const p = i || `textarea-${L.useId()}`, f = r ? `${p}-hint` : void 0, b = t ? `${p}-error` : void 0, d = b || f;
|
|
418
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `ds-textarea-wrapper ${o ? "ds-textarea-wrapper--full" : ""} ${n ? "ds-textarea-wrapper--disabled" : ""}`, children: [
|
|
419
|
+
s && /* @__PURE__ */ e.jsx("label", { className: "ds-textarea-label", htmlFor: p, children: s }),
|
|
420
|
+
/* @__PURE__ */ e.jsx(
|
|
421
421
|
"textarea",
|
|
422
422
|
{
|
|
423
423
|
id: p,
|
|
424
|
-
className: `ds-textarea ds-textarea--${a} ${
|
|
424
|
+
className: `ds-textarea ds-textarea--${a} ${t ? "ds-textarea--error" : ""} ${l ? "" : "ds-textarea--no-resize"}`,
|
|
425
425
|
disabled: n,
|
|
426
|
-
"aria-invalid":
|
|
426
|
+
"aria-invalid": t ? "true" : "false",
|
|
427
427
|
"aria-describedby": d,
|
|
428
428
|
rows: m,
|
|
429
429
|
...u
|
|
430
430
|
}
|
|
431
431
|
),
|
|
432
|
-
r && !
|
|
433
|
-
|
|
432
|
+
r && !t && /* @__PURE__ */ e.jsx("span", { id: f, className: "ds-textarea-hint", children: r }),
|
|
433
|
+
t && /* @__PURE__ */ e.jsx("span", { id: b, className: "ds-textarea-error", role: "alert", children: t })
|
|
434
434
|
] });
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function ot({
|
|
437
437
|
label: s,
|
|
438
|
-
value:
|
|
438
|
+
value: t,
|
|
439
439
|
onChange: r,
|
|
440
440
|
options: o = [],
|
|
441
441
|
placeholder: a = "Select option",
|
|
442
442
|
error: n,
|
|
443
|
-
fullWidth:
|
|
443
|
+
fullWidth: i = !0,
|
|
444
444
|
size: l = "m",
|
|
445
445
|
disabled: m = !1,
|
|
446
446
|
id: u,
|
|
447
447
|
...p
|
|
448
448
|
}) {
|
|
449
|
-
const [f,
|
|
450
|
-
d || (
|
|
451
|
-
var
|
|
452
|
-
|
|
449
|
+
const [f, b] = R(!1), [d, _] = R(!1), [w, k] = R({}), [N, B] = R("down"), [T, $] = R(-1), z = E(null), O = E(null), q = E(null), M = E(null), F = u || `select-${L.useId()}`, V = `${F}-label`, G = n ? `${F}-error` : void 0, H = 150, C = (j = !1) => {
|
|
450
|
+
d || (_(!0), $(-1), M.current = setTimeout(() => {
|
|
451
|
+
var c;
|
|
452
|
+
b(!1), _(!1), j && ((c = q.current) == null || c.focus());
|
|
453
453
|
}, H));
|
|
454
|
-
},
|
|
455
|
-
clearTimeout(M.current),
|
|
456
|
-
const
|
|
457
|
-
|
|
454
|
+
}, h = (j) => {
|
|
455
|
+
clearTimeout(M.current), _(!1);
|
|
456
|
+
const c = j !== void 0 ? j : Math.max(o.findIndex((x) => x.value === t), 0);
|
|
457
|
+
$(c), b(!0);
|
|
458
458
|
};
|
|
459
|
-
|
|
459
|
+
D(() => () => clearTimeout(M.current), []);
|
|
460
460
|
const v = () => {
|
|
461
461
|
var X;
|
|
462
|
-
const j = (X =
|
|
462
|
+
const j = (X = z.current) == null ? void 0 : X.getBoundingClientRect();
|
|
463
463
|
if (!j) return;
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
K ? { bottom:
|
|
464
|
+
const c = window.innerHeight, x = c - j.bottom, y = j.top, K = x < 300 && y > x;
|
|
465
|
+
B(K ? "up" : "down"), k(
|
|
466
|
+
K ? { bottom: c - j.top + 4, left: j.left, width: j.width } : { top: j.bottom + 4, left: j.left, width: j.width }
|
|
467
467
|
);
|
|
468
468
|
};
|
|
469
|
-
|
|
469
|
+
D(() => {
|
|
470
470
|
if (f)
|
|
471
471
|
return v(), window.addEventListener("scroll", v, !0), window.addEventListener("resize", v), () => {
|
|
472
472
|
window.removeEventListener("scroll", v, !0), window.removeEventListener("resize", v);
|
|
473
473
|
};
|
|
474
|
-
}, [f]),
|
|
475
|
-
const j = (
|
|
476
|
-
|
|
474
|
+
}, [f]), D(() => {
|
|
475
|
+
const j = (c) => {
|
|
476
|
+
z.current && !z.current.contains(c.target) && O.current && !O.current.contains(c.target) && C();
|
|
477
477
|
};
|
|
478
478
|
return document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j);
|
|
479
|
-
}, [d]),
|
|
480
|
-
var
|
|
481
|
-
if (!f ||
|
|
482
|
-
(
|
|
483
|
-
}, [
|
|
484
|
-
const
|
|
479
|
+
}, [d]), D(() => {
|
|
480
|
+
var c;
|
|
481
|
+
if (!f || T < 0 || !O.current) return;
|
|
482
|
+
(c = O.current.querySelectorAll(".ds-select-option")[T]) == null || c.scrollIntoView({ block: "nearest" });
|
|
483
|
+
}, [T, f]);
|
|
484
|
+
const g = (j) => {
|
|
485
485
|
switch (j.key) {
|
|
486
486
|
case "ArrowDown":
|
|
487
|
-
j.preventDefault(), f ?
|
|
487
|
+
j.preventDefault(), f ? $((c) => Math.min(c + 1, o.length - 1)) : h();
|
|
488
488
|
break;
|
|
489
489
|
case "ArrowUp":
|
|
490
|
-
j.preventDefault(), f ?
|
|
490
|
+
j.preventDefault(), f ? $((c) => Math.max(c - 1, 0)) : h(o.length - 1);
|
|
491
491
|
break;
|
|
492
492
|
case "Home":
|
|
493
|
-
f && (j.preventDefault(),
|
|
493
|
+
f && (j.preventDefault(), $(0));
|
|
494
494
|
break;
|
|
495
495
|
case "End":
|
|
496
|
-
f && (j.preventDefault(),
|
|
496
|
+
f && (j.preventDefault(), $(o.length - 1));
|
|
497
497
|
break;
|
|
498
498
|
case "Enter":
|
|
499
499
|
case " ":
|
|
500
|
-
j.preventDefault(), f ?
|
|
500
|
+
j.preventDefault(), f ? T >= 0 && (r == null || r(o[T].value), C(!0)) : h();
|
|
501
501
|
break;
|
|
502
502
|
case "Escape":
|
|
503
|
-
f && (j.preventDefault(),
|
|
503
|
+
f && (j.preventDefault(), C(!0));
|
|
504
504
|
break;
|
|
505
505
|
case "Tab":
|
|
506
|
-
f &&
|
|
506
|
+
f && C(!1);
|
|
507
507
|
break;
|
|
508
508
|
}
|
|
509
|
-
}, S = o.find((j) => j.value ===
|
|
509
|
+
}, S = o.find((j) => j.value === t), W = l === "xs" ? P[1] : l === "small" ? P[2] : P[3], U = f && /* @__PURE__ */ e.jsx(
|
|
510
510
|
"div",
|
|
511
511
|
{
|
|
512
512
|
ref: O,
|
|
513
513
|
role: "listbox",
|
|
514
|
-
"aria-labelledby": s ?
|
|
514
|
+
"aria-labelledby": s ? V : void 0,
|
|
515
515
|
tabIndex: -1,
|
|
516
516
|
className: [
|
|
517
517
|
"ds-select-dropdown",
|
|
@@ -519,23 +519,23 @@ function et({
|
|
|
519
519
|
`ds-select-dropdown--${N}`,
|
|
520
520
|
d && "ds-select-dropdown--closing"
|
|
521
521
|
].filter(Boolean).join(" "),
|
|
522
|
-
style:
|
|
523
|
-
children: o.map((j,
|
|
522
|
+
style: w,
|
|
523
|
+
children: o.map((j, c) => /* @__PURE__ */ e.jsx(
|
|
524
524
|
"button",
|
|
525
525
|
{
|
|
526
|
-
id: `${F}-opt-${
|
|
526
|
+
id: `${F}-opt-${c}`,
|
|
527
527
|
type: "button",
|
|
528
528
|
role: "option",
|
|
529
529
|
tabIndex: -1,
|
|
530
|
-
"aria-selected":
|
|
530
|
+
"aria-selected": t === j.value,
|
|
531
531
|
className: [
|
|
532
532
|
"ds-select-option",
|
|
533
533
|
`ds-select-option--${l}`,
|
|
534
|
-
|
|
535
|
-
|
|
534
|
+
t === j.value && "ds-select-option--selected",
|
|
535
|
+
c === T && "ds-select-option--active"
|
|
536
536
|
].filter(Boolean).join(" "),
|
|
537
537
|
onClick: () => {
|
|
538
|
-
r == null || r(j.value),
|
|
538
|
+
r == null || r(j.value), C(!0);
|
|
539
539
|
},
|
|
540
540
|
children: j.label
|
|
541
541
|
},
|
|
@@ -543,9 +543,9 @@ function et({
|
|
|
543
543
|
))
|
|
544
544
|
}
|
|
545
545
|
);
|
|
546
|
-
return /* @__PURE__ */
|
|
547
|
-
s && /* @__PURE__ */
|
|
548
|
-
/* @__PURE__ */
|
|
546
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `ds-select-wrapper ${i ? "ds-select-wrapper--full" : ""} ${m ? "ds-select-wrapper--disabled" : ""}`, children: [
|
|
547
|
+
s && /* @__PURE__ */ e.jsx("label", { id: V, className: "ds-select-label", children: s }),
|
|
548
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-select-container", ref: z, children: /* @__PURE__ */ e.jsxs(
|
|
549
549
|
"button",
|
|
550
550
|
{
|
|
551
551
|
ref: q,
|
|
@@ -554,20 +554,20 @@ function et({
|
|
|
554
554
|
role: "combobox",
|
|
555
555
|
"aria-haspopup": "listbox",
|
|
556
556
|
"aria-expanded": f,
|
|
557
|
-
"aria-activedescendant": f &&
|
|
558
|
-
"aria-labelledby": s ?
|
|
557
|
+
"aria-activedescendant": f && T >= 0 ? `${F}-opt-${T}` : void 0,
|
|
558
|
+
"aria-labelledby": s ? V : void 0,
|
|
559
559
|
"aria-invalid": n ? "true" : "false",
|
|
560
560
|
"aria-describedby": G,
|
|
561
561
|
className: `ds-select-trigger ds-select-trigger--${l} ${n ? "ds-select-trigger--error" : ""}`,
|
|
562
562
|
onClick: () => {
|
|
563
|
-
m || (f ?
|
|
563
|
+
m || (f ? C() : h());
|
|
564
564
|
},
|
|
565
|
-
onKeyDown:
|
|
565
|
+
onKeyDown: g,
|
|
566
566
|
disabled: m,
|
|
567
567
|
...p,
|
|
568
568
|
children: [
|
|
569
|
-
/* @__PURE__ */
|
|
570
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ e.jsx("span", { className: S ? "" : "ds-select-placeholder", children: (S == null ? void 0 : S.label) || a }),
|
|
570
|
+
/* @__PURE__ */ e.jsx(
|
|
571
571
|
re,
|
|
572
572
|
{
|
|
573
573
|
size: W,
|
|
@@ -579,18 +579,18 @@ function et({
|
|
|
579
579
|
]
|
|
580
580
|
}
|
|
581
581
|
) }),
|
|
582
|
-
n && /* @__PURE__ */
|
|
582
|
+
n && /* @__PURE__ */ e.jsx("span", { id: G, className: "ds-select-error", role: "alert", children: n }),
|
|
583
583
|
typeof document < "u" && ne.createPortal(U, document.body)
|
|
584
584
|
] });
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function it({
|
|
587
587
|
label: s,
|
|
588
|
-
value:
|
|
588
|
+
value: t = 0,
|
|
589
589
|
onChange: r,
|
|
590
590
|
min: o = 0,
|
|
591
591
|
max: a = 100,
|
|
592
592
|
step: n = 1,
|
|
593
|
-
size:
|
|
593
|
+
size: i = "m",
|
|
594
594
|
disabled: l = !1,
|
|
595
595
|
hint: m,
|
|
596
596
|
error: u,
|
|
@@ -598,53 +598,53 @@ function tt({
|
|
|
598
598
|
}) {
|
|
599
599
|
const f = () => {
|
|
600
600
|
if (l) return;
|
|
601
|
-
const N = Math.min(Number(
|
|
601
|
+
const N = Math.min(Number(t) + n, a);
|
|
602
602
|
r == null || r(N);
|
|
603
|
-
},
|
|
603
|
+
}, b = () => {
|
|
604
604
|
if (l) return;
|
|
605
|
-
const N = Math.max(Number(
|
|
605
|
+
const N = Math.max(Number(t) - n, o);
|
|
606
606
|
r == null || r(N);
|
|
607
607
|
}, d = (N) => {
|
|
608
608
|
if (l) return;
|
|
609
|
-
const
|
|
610
|
-
if (
|
|
609
|
+
const B = N.target.value;
|
|
610
|
+
if (B === "") {
|
|
611
611
|
r == null || r(o);
|
|
612
612
|
return;
|
|
613
613
|
}
|
|
614
|
-
const
|
|
615
|
-
if (!isNaN(
|
|
616
|
-
const
|
|
617
|
-
r == null || r(
|
|
614
|
+
const T = Number(B);
|
|
615
|
+
if (!isNaN(T)) {
|
|
616
|
+
const $ = Math.min(Math.max(T, o), a);
|
|
617
|
+
r == null || r($);
|
|
618
618
|
}
|
|
619
|
-
},
|
|
619
|
+
}, _ = [
|
|
620
620
|
"ds-stepper-wrapper",
|
|
621
621
|
l && "ds-stepper-wrapper--disabled",
|
|
622
622
|
u && "ds-stepper-wrapper--error"
|
|
623
|
-
].filter(Boolean).join(" "),
|
|
623
|
+
].filter(Boolean).join(" "), w = [
|
|
624
624
|
"ds-stepper",
|
|
625
|
-
`ds-stepper--${
|
|
625
|
+
`ds-stepper--${i}`,
|
|
626
626
|
l && "ds-stepper--disabled"
|
|
627
|
-
].filter(Boolean).join(" "),
|
|
628
|
-
return /* @__PURE__ */
|
|
629
|
-
s && /* @__PURE__ */
|
|
630
|
-
/* @__PURE__ */
|
|
631
|
-
/* @__PURE__ */
|
|
627
|
+
].filter(Boolean).join(" "), k = i === "xs" ? P[1] : i === "small" ? P[2] : P[3];
|
|
628
|
+
return /* @__PURE__ */ e.jsxs("div", { className: _, children: [
|
|
629
|
+
s && /* @__PURE__ */ e.jsx("label", { className: "ds-stepper-label", children: s }),
|
|
630
|
+
/* @__PURE__ */ e.jsxs("div", { className: w, children: [
|
|
631
|
+
/* @__PURE__ */ e.jsx(
|
|
632
632
|
"button",
|
|
633
633
|
{
|
|
634
634
|
type: "button",
|
|
635
635
|
className: "ds-stepper-button ds-stepper-button--minus",
|
|
636
|
-
onClick:
|
|
637
|
-
disabled: l ||
|
|
636
|
+
onClick: b,
|
|
637
|
+
disabled: l || t <= o,
|
|
638
638
|
"aria-label": "Decrease",
|
|
639
|
-
children: /* @__PURE__ */
|
|
639
|
+
children: /* @__PURE__ */ e.jsx(Ee, { size: k, strokeWidth: 1.5 })
|
|
640
640
|
}
|
|
641
641
|
),
|
|
642
|
-
/* @__PURE__ */
|
|
642
|
+
/* @__PURE__ */ e.jsx(
|
|
643
643
|
"input",
|
|
644
644
|
{
|
|
645
645
|
type: "number",
|
|
646
646
|
className: "ds-stepper-input",
|
|
647
|
-
value:
|
|
647
|
+
value: t,
|
|
648
648
|
onChange: d,
|
|
649
649
|
min: o,
|
|
650
650
|
max: a,
|
|
@@ -653,229 +653,229 @@ function tt({
|
|
|
653
653
|
...p
|
|
654
654
|
}
|
|
655
655
|
),
|
|
656
|
-
/* @__PURE__ */
|
|
656
|
+
/* @__PURE__ */ e.jsx(
|
|
657
657
|
"button",
|
|
658
658
|
{
|
|
659
659
|
type: "button",
|
|
660
660
|
className: "ds-stepper-button ds-stepper-button--plus",
|
|
661
661
|
onClick: f,
|
|
662
|
-
disabled: l ||
|
|
662
|
+
disabled: l || t >= a,
|
|
663
663
|
"aria-label": "Increase",
|
|
664
|
-
children: /* @__PURE__ */
|
|
664
|
+
children: /* @__PURE__ */ e.jsx(ke, { size: k, strokeWidth: 1.5 })
|
|
665
665
|
}
|
|
666
666
|
)
|
|
667
667
|
] }),
|
|
668
|
-
m && !u && /* @__PURE__ */
|
|
669
|
-
u && /* @__PURE__ */
|
|
668
|
+
m && !u && /* @__PURE__ */ e.jsx("div", { className: "ds-stepper-hint", children: m }),
|
|
669
|
+
u && /* @__PURE__ */ e.jsx("div", { className: "ds-stepper-error", children: u })
|
|
670
670
|
] });
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Pe({
|
|
673
673
|
children: s,
|
|
674
|
-
padding:
|
|
674
|
+
padding: t = "m",
|
|
675
675
|
variant: r = "info",
|
|
676
676
|
hover: o = !1,
|
|
677
677
|
// deprecated, use variant="interactive"
|
|
678
678
|
onClick: a,
|
|
679
679
|
href: n,
|
|
680
|
-
disabled:
|
|
680
|
+
disabled: i = !1,
|
|
681
681
|
...l
|
|
682
682
|
}) {
|
|
683
683
|
const u = (o ? "interactive" : r) === "interactive" || a || n, p = [
|
|
684
684
|
"ds-card",
|
|
685
|
-
`ds-card--${
|
|
685
|
+
`ds-card--${t}`,
|
|
686
686
|
u && "ds-card--interactive"
|
|
687
687
|
].filter(Boolean).join(" ");
|
|
688
688
|
if (n) {
|
|
689
|
-
const d = (
|
|
690
|
-
if (
|
|
691
|
-
|
|
689
|
+
const d = (_) => {
|
|
690
|
+
if (i) {
|
|
691
|
+
_.preventDefault();
|
|
692
692
|
return;
|
|
693
693
|
}
|
|
694
|
-
|
|
694
|
+
_.metaKey || _.ctrlKey || _.button === 1 || (_.preventDefault(), a == null || a(_));
|
|
695
695
|
};
|
|
696
|
-
return /* @__PURE__ */
|
|
696
|
+
return /* @__PURE__ */ e.jsx(
|
|
697
697
|
"a",
|
|
698
698
|
{
|
|
699
699
|
className: p,
|
|
700
|
-
href:
|
|
700
|
+
href: i ? void 0 : n,
|
|
701
701
|
onClick: d,
|
|
702
|
-
"aria-disabled":
|
|
702
|
+
"aria-disabled": i ? "true" : void 0,
|
|
703
703
|
...l,
|
|
704
704
|
children: s
|
|
705
705
|
}
|
|
706
706
|
);
|
|
707
707
|
}
|
|
708
|
-
const f = u && a ? "button" : "div",
|
|
708
|
+
const f = u && a ? "button" : "div", b = u && a ? {
|
|
709
709
|
type: "button",
|
|
710
710
|
onClick: a,
|
|
711
|
-
disabled:
|
|
711
|
+
disabled: i
|
|
712
712
|
} : {};
|
|
713
|
-
return /* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ e.jsx(
|
|
714
714
|
f,
|
|
715
715
|
{
|
|
716
716
|
className: p,
|
|
717
717
|
role: u && !a ? "article" : void 0,
|
|
718
|
-
...
|
|
718
|
+
...b,
|
|
719
719
|
...l,
|
|
720
720
|
children: s
|
|
721
721
|
}
|
|
722
722
|
);
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
return /* @__PURE__ */
|
|
724
|
+
function ct({ children: s, ...t }) {
|
|
725
|
+
return /* @__PURE__ */ e.jsx("h1", { className: "ds-h1", ...t, children: s });
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
return /* @__PURE__ */
|
|
727
|
+
function lt({ children: s, ...t }) {
|
|
728
|
+
return /* @__PURE__ */ e.jsx("h2", { className: "ds-h2", ...t, children: s });
|
|
729
729
|
}
|
|
730
|
-
function
|
|
731
|
-
return /* @__PURE__ */
|
|
730
|
+
function dt({ children: s, ...t }) {
|
|
731
|
+
return /* @__PURE__ */ e.jsx("h3", { className: "ds-h3", ...t, children: s });
|
|
732
732
|
}
|
|
733
|
-
function
|
|
734
|
-
return /* @__PURE__ */
|
|
733
|
+
function ut({ children: s, ...t }) {
|
|
734
|
+
return /* @__PURE__ */ e.jsx("h4", { className: "ds-h4", ...t, children: s });
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
return /* @__PURE__ */
|
|
736
|
+
function ft({ children: s, secondary: t = !1, ...r }) {
|
|
737
|
+
return /* @__PURE__ */ e.jsx("p", { className: `ds-p1 ${t ? "ds-p1--secondary" : ""}`, ...r, children: s });
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
return /* @__PURE__ */
|
|
739
|
+
function mt({ children: s, secondary: t = !1, ...r }) {
|
|
740
|
+
return /* @__PURE__ */ e.jsx("p", { className: `ds-p2 ${t ? "ds-p2--secondary" : ""}`, ...r, children: s });
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
return /* @__PURE__ */
|
|
742
|
+
function pt({ children: s, secondary: t = !1, ...r }) {
|
|
743
|
+
return /* @__PURE__ */ e.jsx("p", { className: `ds-p3 ${t ? "ds-p3--secondary" : ""}`, ...r, children: s });
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function oe({
|
|
746
746
|
children: s,
|
|
747
|
-
variant:
|
|
747
|
+
variant: t = "default",
|
|
748
748
|
size: r = "m",
|
|
749
749
|
role: o,
|
|
750
750
|
...a
|
|
751
751
|
}) {
|
|
752
752
|
const n = [
|
|
753
753
|
"ds-badge",
|
|
754
|
-
`ds-badge--${
|
|
754
|
+
`ds-badge--${t}`,
|
|
755
755
|
`ds-badge--${r}`
|
|
756
|
-
].filter(Boolean).join(" "),
|
|
757
|
-
return /* @__PURE__ */
|
|
758
|
-
}
|
|
759
|
-
const
|
|
760
|
-
info:
|
|
761
|
-
success:
|
|
762
|
-
warning:
|
|
763
|
-
error:
|
|
756
|
+
].filter(Boolean).join(" "), i = o || (["info", "success", "warning", "error"].includes(t) ? "status" : void 0);
|
|
757
|
+
return /* @__PURE__ */ e.jsx("span", { className: n, role: i, ...a, children: s });
|
|
758
|
+
}
|
|
759
|
+
const Be = {
|
|
760
|
+
info: fe,
|
|
761
|
+
success: ue,
|
|
762
|
+
warning: de,
|
|
763
|
+
error: le
|
|
764
764
|
};
|
|
765
|
-
function
|
|
765
|
+
function ht({
|
|
766
766
|
children: s,
|
|
767
|
-
variant:
|
|
767
|
+
variant: t = "info",
|
|
768
768
|
title: r,
|
|
769
769
|
onClose: o,
|
|
770
770
|
role: a,
|
|
771
771
|
...n
|
|
772
772
|
}) {
|
|
773
|
-
const
|
|
774
|
-
return /* @__PURE__ */
|
|
775
|
-
|
|
776
|
-
/* @__PURE__ */
|
|
777
|
-
r && /* @__PURE__ */
|
|
778
|
-
s && /* @__PURE__ */
|
|
773
|
+
const i = Be[t], l = a || (t === "error" ? "alert" : "status");
|
|
774
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `ds-alert ds-alert--${t} ${r ? "" : "ds-alert--no-title"}`, role: l, ...n, children: [
|
|
775
|
+
i && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__icon", children: /* @__PURE__ */ e.jsx(i, { size: P[3], strokeWidth: 1.5 }) }),
|
|
776
|
+
/* @__PURE__ */ e.jsxs("div", { className: "ds-alert__content", children: [
|
|
777
|
+
r && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__title", children: r }),
|
|
778
|
+
s && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__message", children: s })
|
|
779
779
|
] }),
|
|
780
|
-
o && /* @__PURE__ */
|
|
780
|
+
o && /* @__PURE__ */ e.jsx(
|
|
781
781
|
"button",
|
|
782
782
|
{
|
|
783
783
|
type: "button",
|
|
784
784
|
className: "ds-alert__close",
|
|
785
785
|
onClick: o,
|
|
786
786
|
"aria-label": "Close alert",
|
|
787
|
-
children: /* @__PURE__ */
|
|
787
|
+
children: /* @__PURE__ */ e.jsx(ee, { size: P[3], strokeWidth: 1.5 })
|
|
788
788
|
}
|
|
789
789
|
)
|
|
790
790
|
] });
|
|
791
791
|
}
|
|
792
|
-
const
|
|
793
|
-
function
|
|
792
|
+
const Oe = 200;
|
|
793
|
+
function bt({
|
|
794
794
|
children: s,
|
|
795
|
-
title:
|
|
795
|
+
title: t,
|
|
796
796
|
onClose: r,
|
|
797
797
|
size: o = "m",
|
|
798
798
|
...a
|
|
799
799
|
}) {
|
|
800
|
-
const n = E(null),
|
|
800
|
+
const n = E(null), i = L.useId(), [l, m] = R(!1), u = () => {
|
|
801
801
|
!r || l || (m(!0), setTimeout(() => {
|
|
802
802
|
m(!1), r();
|
|
803
|
-
},
|
|
803
|
+
}, Oe));
|
|
804
804
|
};
|
|
805
|
-
|
|
806
|
-
const d = (
|
|
807
|
-
|
|
808
|
-
},
|
|
809
|
-
n.current && !n.current.contains(
|
|
805
|
+
D(() => {
|
|
806
|
+
const d = (w) => {
|
|
807
|
+
w.key === "Escape" && u();
|
|
808
|
+
}, _ = (w) => {
|
|
809
|
+
n.current && !n.current.contains(w.target) && u();
|
|
810
810
|
};
|
|
811
|
-
return document.addEventListener("keydown", d), document.addEventListener("mousedown",
|
|
812
|
-
document.removeEventListener("keydown", d), document.removeEventListener("mousedown",
|
|
811
|
+
return document.addEventListener("keydown", d), document.addEventListener("mousedown", _), () => {
|
|
812
|
+
document.removeEventListener("keydown", d), document.removeEventListener("mousedown", _);
|
|
813
813
|
};
|
|
814
814
|
}, [r, l]);
|
|
815
|
-
const p =
|
|
816
|
-
return /* @__PURE__ */
|
|
815
|
+
const p = L.Children.toArray(s), f = p.find((d) => (d == null ? void 0 : d.type) === he), b = p.filter((d) => (d == null ? void 0 : d.type) !== he);
|
|
816
|
+
return /* @__PURE__ */ e.jsx("div", { className: ["ds-modal-overlay", l && "ds-modal-overlay--closing"].filter(Boolean).join(" "), ...a, children: /* @__PURE__ */ e.jsxs(
|
|
817
817
|
"div",
|
|
818
818
|
{
|
|
819
819
|
className: `ds-modal ds-modal--${o}`,
|
|
820
820
|
ref: n,
|
|
821
821
|
role: "dialog",
|
|
822
822
|
"aria-modal": "true",
|
|
823
|
-
"aria-labelledby":
|
|
823
|
+
"aria-labelledby": t ? i : void 0,
|
|
824
824
|
children: [
|
|
825
|
-
(
|
|
826
|
-
|
|
827
|
-
r && /* @__PURE__ */
|
|
828
|
-
|
|
825
|
+
(t || r) && /* @__PURE__ */ e.jsxs("div", { className: "ds-modal__header", children: [
|
|
826
|
+
t && /* @__PURE__ */ e.jsx("h3", { id: i, className: "ds-modal__title", children: t }),
|
|
827
|
+
r && /* @__PURE__ */ e.jsx(
|
|
828
|
+
De,
|
|
829
829
|
{
|
|
830
830
|
variant: "ghost",
|
|
831
831
|
size: "small",
|
|
832
|
-
icon: /* @__PURE__ */
|
|
832
|
+
icon: /* @__PURE__ */ e.jsx(ee, { size: P[2], strokeWidth: 1.5 }),
|
|
833
833
|
onClick: u,
|
|
834
834
|
"aria-label": "Close modal"
|
|
835
835
|
}
|
|
836
836
|
)
|
|
837
837
|
] }),
|
|
838
|
-
/* @__PURE__ */
|
|
838
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-modal__body", children: b }),
|
|
839
839
|
f
|
|
840
840
|
]
|
|
841
841
|
}
|
|
842
842
|
) });
|
|
843
843
|
}
|
|
844
|
-
function
|
|
845
|
-
return /* @__PURE__ */
|
|
844
|
+
function he({ children: s }) {
|
|
845
|
+
return /* @__PURE__ */ e.jsx("div", { className: "ds-modal__footer", children: s });
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function Le({
|
|
848
848
|
children: s,
|
|
849
|
-
title:
|
|
849
|
+
title: t = "Code",
|
|
850
850
|
defaultExpanded: r = !1,
|
|
851
851
|
expanded: o,
|
|
852
852
|
onToggle: a,
|
|
853
853
|
padding: n = "s",
|
|
854
|
-
className:
|
|
854
|
+
className: i = "",
|
|
855
855
|
...l
|
|
856
856
|
}) {
|
|
857
|
-
const [m, u] =
|
|
858
|
-
p ? a == null || a(!o) : u((
|
|
857
|
+
const [m, u] = R(r), p = o !== void 0, f = p ? o : m, b = () => {
|
|
858
|
+
p ? a == null || a(!o) : u((_) => !_);
|
|
859
859
|
}, d = [
|
|
860
860
|
"ds-code-accordion",
|
|
861
861
|
`ds-code-accordion--${n}`,
|
|
862
862
|
f && "ds-code-accordion--expanded",
|
|
863
|
-
|
|
863
|
+
i
|
|
864
864
|
].filter(Boolean).join(" ");
|
|
865
|
-
return /* @__PURE__ */
|
|
866
|
-
/* @__PURE__ */
|
|
865
|
+
return /* @__PURE__ */ e.jsxs("div", { className: d, ...l, children: [
|
|
866
|
+
/* @__PURE__ */ e.jsxs(
|
|
867
867
|
"button",
|
|
868
868
|
{
|
|
869
869
|
type: "button",
|
|
870
870
|
className: "ds-code-accordion__header",
|
|
871
|
-
onClick:
|
|
871
|
+
onClick: b,
|
|
872
872
|
"aria-expanded": f,
|
|
873
873
|
children: [
|
|
874
|
-
/* @__PURE__ */
|
|
875
|
-
/* @__PURE__ */
|
|
874
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-code-accordion__title", children: t }),
|
|
875
|
+
/* @__PURE__ */ e.jsx(
|
|
876
876
|
re,
|
|
877
877
|
{
|
|
878
|
-
size:
|
|
878
|
+
size: P[2],
|
|
879
879
|
strokeWidth: 1.5,
|
|
880
880
|
className: `ds-code-accordion__icon ${f ? "ds-code-accordion__icon--expanded" : ""}`
|
|
881
881
|
}
|
|
@@ -883,15 +883,15 @@ function De({
|
|
|
883
883
|
]
|
|
884
884
|
}
|
|
885
885
|
),
|
|
886
|
-
/* @__PURE__ */
|
|
886
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-code-accordion__content", children: /* @__PURE__ */ e.jsx("div", { className: "ds-code-accordion__inner", children: /* @__PURE__ */ e.jsx("pre", { className: "ds-code-accordion__pre", children: /* @__PURE__ */ e.jsx("code", { children: s }) }) }) })
|
|
887
887
|
] });
|
|
888
888
|
}
|
|
889
|
-
function
|
|
890
|
-
return
|
|
889
|
+
function xt({ children: s, block: t = !1, collapsible: r = !1, title: o = "Code", defaultExpanded: a = !1, ...n }) {
|
|
890
|
+
return t ? r ? /* @__PURE__ */ e.jsx(Le, { title: o, defaultExpanded: a, ...n, children: s }) : /* @__PURE__ */ e.jsx("pre", { className: "ds-code-block", ...n, children: /* @__PURE__ */ e.jsx("code", { children: s }) }) : /* @__PURE__ */ e.jsx("code", { className: "ds-code-inline", ...n, children: s });
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function vt({ href: s, children: t, onClick: r, target: o, rel: a, ...n }) {
|
|
893
893
|
const l = o === "_blank" ? a ? `${a} noopener noreferrer` : "noopener noreferrer" : a;
|
|
894
|
-
return /* @__PURE__ */
|
|
894
|
+
return /* @__PURE__ */ e.jsx(
|
|
895
895
|
"a",
|
|
896
896
|
{
|
|
897
897
|
href: s,
|
|
@@ -900,51 +900,51 @@ function pt({ href: s, children: e, onClick: r, target: o, rel: a, ...n }) {
|
|
|
900
900
|
target: o,
|
|
901
901
|
rel: l,
|
|
902
902
|
...n,
|
|
903
|
-
children:
|
|
903
|
+
children: t
|
|
904
904
|
}
|
|
905
905
|
);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
908
|
-
return /* @__PURE__ */
|
|
907
|
+
function jt({ children: s, size: t = "m", variant: r = "ghost", ...o }) {
|
|
908
|
+
return /* @__PURE__ */ e.jsx("div", { className: "ds-tabs", role: "tablist", ...o, children: L.Children.map(s, (a) => L.isValidElement(a) ? L.cloneElement(a, { size: t, variant: r }) : a) });
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
const u =
|
|
910
|
+
function _t({ children: s, selected: t = !1, onClick: r, size: o = "m", variant: a = "ghost", disabled: n = !1, icon: i, href: l, ...m }) {
|
|
911
|
+
const u = i && !s, p = [
|
|
912
912
|
"ds-tab",
|
|
913
913
|
`ds-tab--${o}`,
|
|
914
914
|
`ds-tab--${a}`,
|
|
915
|
-
|
|
915
|
+
t && "ds-tab--selected",
|
|
916
916
|
u && "ds-tab--icon-only"
|
|
917
|
-
].filter(Boolean).join(" "), f = /* @__PURE__ */
|
|
918
|
-
|
|
917
|
+
].filter(Boolean).join(" "), f = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
918
|
+
i && /* @__PURE__ */ e.jsx("span", { className: "ds-tab-icon", children: i }),
|
|
919
919
|
s
|
|
920
920
|
] });
|
|
921
921
|
if (l) {
|
|
922
|
-
const
|
|
922
|
+
const b = (d) => {
|
|
923
923
|
if (n) {
|
|
924
924
|
d.preventDefault();
|
|
925
925
|
return;
|
|
926
926
|
}
|
|
927
927
|
d.metaKey || d.ctrlKey || d.button === 1 || (d.preventDefault(), r == null || r(d));
|
|
928
928
|
};
|
|
929
|
-
return /* @__PURE__ */
|
|
929
|
+
return /* @__PURE__ */ e.jsx(
|
|
930
930
|
"a",
|
|
931
931
|
{
|
|
932
932
|
role: "tab",
|
|
933
|
-
"aria-current":
|
|
933
|
+
"aria-current": t ? "page" : void 0,
|
|
934
934
|
"aria-disabled": n ? "true" : void 0,
|
|
935
935
|
className: p,
|
|
936
936
|
href: n ? void 0 : l,
|
|
937
|
-
onClick:
|
|
937
|
+
onClick: b,
|
|
938
938
|
...m,
|
|
939
939
|
children: f
|
|
940
940
|
}
|
|
941
941
|
);
|
|
942
942
|
}
|
|
943
|
-
return /* @__PURE__ */
|
|
943
|
+
return /* @__PURE__ */ e.jsx(
|
|
944
944
|
"button",
|
|
945
945
|
{
|
|
946
946
|
role: "tab",
|
|
947
|
-
"aria-selected":
|
|
947
|
+
"aria-selected": t,
|
|
948
948
|
className: p,
|
|
949
949
|
onClick: r,
|
|
950
950
|
disabled: n,
|
|
@@ -953,30 +953,30 @@ function ht({ children: s, selected: e = !1, onClick: r, size: o = "m", variant:
|
|
|
953
953
|
}
|
|
954
954
|
);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
957
|
-
const n = E(null),
|
|
956
|
+
function wt({ options: s, value: t, onChange: r, size: o = "m", disabled: a = !1 }) {
|
|
957
|
+
const n = E(null), i = E(null), [l, m] = R(!1), u = E(!1), p = E(null), f = E(null), b = () => {
|
|
958
958
|
if (!n.current) return;
|
|
959
|
-
const d = n.current.querySelector(`[data-value="${
|
|
959
|
+
const d = n.current.querySelector(`[data-value="${t}"]`);
|
|
960
960
|
if (!d) return;
|
|
961
|
-
const
|
|
962
|
-
|
|
963
|
-
if (!
|
|
964
|
-
const
|
|
965
|
-
if (!
|
|
966
|
-
const
|
|
967
|
-
|
|
961
|
+
const _ = n.current.getBoundingClientRect(), w = d.getBoundingClientRect(), k = w.left - _.left, N = w.width;
|
|
962
|
+
i.current ? (i.current.style.transition = u.current ? "left var(--transition-normal), width var(--transition-normal)" : "none", i.current.style.left = k + "px", i.current.style.width = N + "px", u.current = !1) : (m(!0), requestAnimationFrame(() => {
|
|
963
|
+
if (!i.current || !n.current) return;
|
|
964
|
+
const B = n.current.querySelector(`[data-value="${t}"]`);
|
|
965
|
+
if (!B) return;
|
|
966
|
+
const T = n.current.getBoundingClientRect(), $ = B.getBoundingClientRect();
|
|
967
|
+
i.current.style.transition = "none", i.current.style.left = $.left - T.left + "px", i.current.style.width = $.width + "px";
|
|
968
968
|
}));
|
|
969
969
|
};
|
|
970
|
-
return f.current =
|
|
971
|
-
const d = p.current !==
|
|
972
|
-
p.current =
|
|
973
|
-
}),
|
|
970
|
+
return f.current = b, Ne(() => {
|
|
971
|
+
const d = p.current !== t;
|
|
972
|
+
p.current = t, u.current = l && d, b();
|
|
973
|
+
}), D(() => {
|
|
974
974
|
if (!n.current) return;
|
|
975
975
|
const d = new ResizeObserver(() => {
|
|
976
976
|
u.current = !1, f.current();
|
|
977
977
|
});
|
|
978
978
|
return d.observe(n.current), () => d.disconnect();
|
|
979
|
-
}, []), /* @__PURE__ */
|
|
979
|
+
}, []), /* @__PURE__ */ e.jsxs(
|
|
980
980
|
"div",
|
|
981
981
|
{
|
|
982
982
|
className: [
|
|
@@ -987,25 +987,25 @@ function xt({ options: s, value: e, onChange: r, size: o = "m", disabled: a = !1
|
|
|
987
987
|
ref: n,
|
|
988
988
|
role: "group",
|
|
989
989
|
children: [
|
|
990
|
-
l && /* @__PURE__ */
|
|
990
|
+
l && /* @__PURE__ */ e.jsx(
|
|
991
991
|
"div",
|
|
992
992
|
{
|
|
993
|
-
ref:
|
|
993
|
+
ref: i,
|
|
994
994
|
className: "ds-seg__pill",
|
|
995
995
|
"aria-hidden": "true"
|
|
996
996
|
}
|
|
997
997
|
),
|
|
998
|
-
s.map((d) => /* @__PURE__ */
|
|
998
|
+
s.map((d) => /* @__PURE__ */ e.jsxs(
|
|
999
999
|
"button",
|
|
1000
1000
|
{
|
|
1001
1001
|
type: "button",
|
|
1002
1002
|
"data-value": d.value,
|
|
1003
|
-
className: ["ds-seg__btn",
|
|
1003
|
+
className: ["ds-seg__btn", t === d.value && "ds-seg__btn--active"].filter(Boolean).join(" "),
|
|
1004
1004
|
onClick: () => !a && r(d.value),
|
|
1005
|
-
"aria-pressed":
|
|
1005
|
+
"aria-pressed": t === d.value,
|
|
1006
1006
|
disabled: a,
|
|
1007
1007
|
children: [
|
|
1008
|
-
d.icon && /* @__PURE__ */
|
|
1008
|
+
d.icon && /* @__PURE__ */ e.jsx("span", { className: "ds-seg__btn-icon", "aria-hidden": "true", children: d.icon }),
|
|
1009
1009
|
d.label
|
|
1010
1010
|
]
|
|
1011
1011
|
},
|
|
@@ -1015,24 +1015,24 @@ function xt({ options: s, value: e, onChange: r, size: o = "m", disabled: a = !1
|
|
|
1015
1015
|
}
|
|
1016
1016
|
);
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function Nt({
|
|
1019
1019
|
children: s,
|
|
1020
|
-
title:
|
|
1020
|
+
title: t,
|
|
1021
1021
|
defaultExpanded: r = !1,
|
|
1022
1022
|
expanded: o,
|
|
1023
1023
|
onToggle: a,
|
|
1024
1024
|
padding: n = "m",
|
|
1025
|
-
...
|
|
1025
|
+
...i
|
|
1026
1026
|
}) {
|
|
1027
|
-
const [l, m] =
|
|
1027
|
+
const [l, m] = R(r), u = o !== void 0, p = u ? o : l, f = () => {
|
|
1028
1028
|
u ? a == null || a(!o) : m((d) => !d);
|
|
1029
|
-
},
|
|
1029
|
+
}, b = [
|
|
1030
1030
|
"ds-accordion",
|
|
1031
1031
|
`ds-accordion--${n}`,
|
|
1032
1032
|
p && "ds-accordion--expanded"
|
|
1033
1033
|
].filter(Boolean).join(" ");
|
|
1034
|
-
return /* @__PURE__ */
|
|
1035
|
-
/* @__PURE__ */
|
|
1034
|
+
return /* @__PURE__ */ e.jsxs("div", { className: b, ...i, children: [
|
|
1035
|
+
/* @__PURE__ */ e.jsxs(
|
|
1036
1036
|
"button",
|
|
1037
1037
|
{
|
|
1038
1038
|
type: "button",
|
|
@@ -1040,11 +1040,11 @@ function vt({
|
|
|
1040
1040
|
onClick: f,
|
|
1041
1041
|
"aria-expanded": p,
|
|
1042
1042
|
children: [
|
|
1043
|
-
/* @__PURE__ */
|
|
1044
|
-
/* @__PURE__ */
|
|
1043
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-accordion__title", children: t }),
|
|
1044
|
+
/* @__PURE__ */ e.jsx(
|
|
1045
1045
|
re,
|
|
1046
1046
|
{
|
|
1047
|
-
size:
|
|
1047
|
+
size: P[2],
|
|
1048
1048
|
strokeWidth: 1.5,
|
|
1049
1049
|
className: `ds-accordion__icon ${p ? "ds-accordion__icon--expanded" : ""}`
|
|
1050
1050
|
}
|
|
@@ -1052,371 +1052,391 @@ function vt({
|
|
|
1052
1052
|
]
|
|
1053
1053
|
}
|
|
1054
1054
|
),
|
|
1055
|
-
/* @__PURE__ */
|
|
1055
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-accordion__content", children: /* @__PURE__ */ e.jsx("div", { className: "ds-accordion__content-inner", children: /* @__PURE__ */ e.jsx("div", { className: "ds-accordion__content-body", children: s }) }) })
|
|
1056
1056
|
] });
|
|
1057
1057
|
}
|
|
1058
1058
|
const Y = 8, Z = 8;
|
|
1059
|
-
function
|
|
1059
|
+
function Me(s, t, r) {
|
|
1060
1060
|
const o = window.innerWidth;
|
|
1061
1061
|
let a, n;
|
|
1062
1062
|
switch (s) {
|
|
1063
1063
|
case "top":
|
|
1064
|
-
a =
|
|
1064
|
+
a = t.top - r.height - Y, n = t.left + t.width / 2 - r.width / 2;
|
|
1065
1065
|
break;
|
|
1066
1066
|
case "bottom":
|
|
1067
|
-
a =
|
|
1067
|
+
a = t.bottom + Y, n = t.left + t.width / 2 - r.width / 2;
|
|
1068
1068
|
break;
|
|
1069
1069
|
case "left":
|
|
1070
|
-
a =
|
|
1070
|
+
a = t.top + t.height / 2 - r.height / 2, n = t.left - r.width - Y;
|
|
1071
1071
|
break;
|
|
1072
1072
|
case "right":
|
|
1073
|
-
a =
|
|
1073
|
+
a = t.top + t.height / 2 - r.height / 2, n = t.right + Y;
|
|
1074
1074
|
break;
|
|
1075
1075
|
default:
|
|
1076
|
-
a =
|
|
1076
|
+
a = t.bottom + Y, n = t.left;
|
|
1077
1077
|
}
|
|
1078
|
-
const
|
|
1079
|
-
return { top: a, left:
|
|
1078
|
+
const i = Math.max(Z, Math.min(o - r.width - Z, n)), l = n - i;
|
|
1079
|
+
return { top: a, left: i, arrowOffset: l };
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function Fe(s, t, r) {
|
|
1082
1082
|
const o = window.innerWidth, a = window.innerHeight;
|
|
1083
|
-
if (s.top >=
|
|
1084
|
-
if (a - s.bottom >=
|
|
1083
|
+
if (s.top >= t + Y + Z) return "top";
|
|
1084
|
+
if (a - s.bottom >= t + Y + Z) return "bottom";
|
|
1085
1085
|
if (o - s.right >= r + Y + Z) return "right";
|
|
1086
1086
|
if (s.left >= r + Y + Z) return "left";
|
|
1087
1087
|
const n = Math.max(s.top, a - s.bottom, s.left, o - s.right);
|
|
1088
1088
|
return n === s.top ? "top" : n === a - s.bottom ? "bottom" : n === o - s.right ? "right" : "left";
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
const [a, n] =
|
|
1090
|
+
function yt({ children: s, content: t, position: r, ...o }) {
|
|
1091
|
+
const [a, n] = R(!1), [i, l] = R({ visibility: "hidden" }), [m, u] = R(r || "top"), p = E(null), f = E(null), b = E(!1), d = () => {
|
|
1092
1092
|
if (!p.current || !f.current) return;
|
|
1093
|
-
const
|
|
1093
|
+
const w = p.current.getBoundingClientRect(), k = f.current.getBoundingClientRect(), N = r || Fe(w, k.height, k.width), { top: B, left: T, arrowOffset: $ } = Me(N, w, k);
|
|
1094
1094
|
u(N), l({
|
|
1095
1095
|
position: "fixed",
|
|
1096
|
-
top:
|
|
1097
|
-
left:
|
|
1096
|
+
top: B,
|
|
1097
|
+
left: T,
|
|
1098
1098
|
visibility: "visible",
|
|
1099
|
-
"--arrow-offset": `${
|
|
1099
|
+
"--arrow-offset": `${$}px`
|
|
1100
1100
|
});
|
|
1101
1101
|
};
|
|
1102
|
-
if (
|
|
1102
|
+
if (D(() => {
|
|
1103
1103
|
if (!a) return;
|
|
1104
1104
|
l({ position: "fixed", visibility: "hidden" });
|
|
1105
|
-
const
|
|
1105
|
+
const w = requestAnimationFrame(d);
|
|
1106
1106
|
return window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), () => {
|
|
1107
|
-
cancelAnimationFrame(
|
|
1107
|
+
cancelAnimationFrame(w), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
|
|
1108
1108
|
};
|
|
1109
|
-
}, [a, r]),
|
|
1109
|
+
}, [a, r]), D(() => {
|
|
1110
1110
|
if (!a) return;
|
|
1111
|
-
const
|
|
1112
|
-
p.current && !p.current.contains(
|
|
1111
|
+
const w = (k) => {
|
|
1112
|
+
p.current && !p.current.contains(k.target) && n(!1);
|
|
1113
1113
|
};
|
|
1114
|
-
return document.addEventListener("touchstart",
|
|
1115
|
-
}, [a]), !
|
|
1116
|
-
const
|
|
1114
|
+
return document.addEventListener("touchstart", w), () => document.removeEventListener("touchstart", w);
|
|
1115
|
+
}, [a]), !t) return s;
|
|
1116
|
+
const _ = a && /* @__PURE__ */ e.jsx(
|
|
1117
1117
|
"div",
|
|
1118
1118
|
{
|
|
1119
1119
|
ref: f,
|
|
1120
1120
|
className: `ds-tooltip ds-tooltip--${m}`,
|
|
1121
1121
|
role: "tooltip",
|
|
1122
|
-
style:
|
|
1123
|
-
children:
|
|
1122
|
+
style: i,
|
|
1123
|
+
children: t
|
|
1124
1124
|
}
|
|
1125
1125
|
);
|
|
1126
|
-
return /* @__PURE__ */
|
|
1126
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1127
1127
|
"div",
|
|
1128
1128
|
{
|
|
1129
1129
|
ref: p,
|
|
1130
1130
|
className: "ds-tooltip-wrapper",
|
|
1131
1131
|
onMouseEnter: () => {
|
|
1132
|
-
|
|
1132
|
+
b.current || n(!0);
|
|
1133
1133
|
},
|
|
1134
1134
|
onMouseLeave: () => {
|
|
1135
|
-
|
|
1135
|
+
b.current || n(!1);
|
|
1136
1136
|
},
|
|
1137
1137
|
onTouchStart: () => {
|
|
1138
|
-
|
|
1138
|
+
b.current = !0, n((w) => !w);
|
|
1139
1139
|
},
|
|
1140
1140
|
...o,
|
|
1141
1141
|
children: [
|
|
1142
1142
|
s,
|
|
1143
|
-
typeof document < "u" && ne.createPortal(
|
|
1143
|
+
typeof document < "u" && ne.createPortal(_, document.body)
|
|
1144
1144
|
]
|
|
1145
1145
|
}
|
|
1146
1146
|
);
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function Et({
|
|
1149
1149
|
checked: s = !1,
|
|
1150
|
-
onChange:
|
|
1150
|
+
onChange: t,
|
|
1151
1151
|
size: r = "m",
|
|
1152
1152
|
disabled: o = !1,
|
|
1153
1153
|
label: a,
|
|
1154
1154
|
id: n,
|
|
1155
|
-
...
|
|
1155
|
+
...i
|
|
1156
1156
|
}) {
|
|
1157
|
-
const l = n || `toggle-${
|
|
1157
|
+
const l = n || `toggle-${L.useId()}`, m = [
|
|
1158
1158
|
"ds-toggle",
|
|
1159
1159
|
`ds-toggle--${r}`,
|
|
1160
1160
|
o && "ds-toggle--disabled"
|
|
1161
1161
|
].filter(Boolean).join(" ");
|
|
1162
|
-
return /* @__PURE__ */
|
|
1163
|
-
/* @__PURE__ */
|
|
1162
|
+
return /* @__PURE__ */ e.jsxs("label", { className: m, htmlFor: l, children: [
|
|
1163
|
+
/* @__PURE__ */ e.jsx(
|
|
1164
1164
|
"input",
|
|
1165
1165
|
{
|
|
1166
1166
|
type: "checkbox",
|
|
1167
1167
|
id: l,
|
|
1168
1168
|
className: "ds-toggle__input",
|
|
1169
1169
|
checked: s,
|
|
1170
|
-
onChange: (u) =>
|
|
1170
|
+
onChange: (u) => t == null ? void 0 : t(u.target.checked),
|
|
1171
1171
|
disabled: o,
|
|
1172
|
-
...
|
|
1172
|
+
...i
|
|
1173
1173
|
}
|
|
1174
1174
|
),
|
|
1175
|
-
/* @__PURE__ */
|
|
1176
|
-
a && /* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-toggle__track", children: /* @__PURE__ */ e.jsx("span", { className: "ds-toggle__thumb" }) }),
|
|
1176
|
+
a && /* @__PURE__ */ e.jsx("span", { className: "ds-toggle__label", children: a })
|
|
1177
1177
|
] });
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function kt({
|
|
1180
1180
|
checked: s = !1,
|
|
1181
|
-
onChange:
|
|
1181
|
+
onChange: t,
|
|
1182
1182
|
size: r = "m",
|
|
1183
1183
|
disabled: o = !1,
|
|
1184
1184
|
label: a,
|
|
1185
1185
|
id: n,
|
|
1186
|
-
...
|
|
1186
|
+
...i
|
|
1187
1187
|
}) {
|
|
1188
|
-
const l = n || `checkbox-${
|
|
1188
|
+
const l = n || `checkbox-${L.useId()}`, m = [
|
|
1189
1189
|
"ds-checkbox",
|
|
1190
1190
|
`ds-checkbox--${r}`,
|
|
1191
1191
|
o && "ds-checkbox--disabled"
|
|
1192
1192
|
].filter(Boolean).join(" "), u = r === "xs" ? 10 : r === "small" ? 14 : r === "large" ? 20 : 16;
|
|
1193
|
-
return /* @__PURE__ */
|
|
1194
|
-
/* @__PURE__ */
|
|
1193
|
+
return /* @__PURE__ */ e.jsxs("label", { className: m, htmlFor: l, children: [
|
|
1194
|
+
/* @__PURE__ */ e.jsx(
|
|
1195
1195
|
"input",
|
|
1196
1196
|
{
|
|
1197
1197
|
type: "checkbox",
|
|
1198
1198
|
id: l,
|
|
1199
1199
|
className: "ds-checkbox__input",
|
|
1200
1200
|
checked: s,
|
|
1201
|
-
onChange: (p) =>
|
|
1201
|
+
onChange: (p) => t == null ? void 0 : t(p.target.checked),
|
|
1202
1202
|
disabled: o,
|
|
1203
|
-
...
|
|
1203
|
+
...i
|
|
1204
1204
|
}
|
|
1205
1205
|
),
|
|
1206
|
-
/* @__PURE__ */
|
|
1207
|
-
|
|
1206
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-checkbox__box", children: s && /* @__PURE__ */ e.jsx(
|
|
1207
|
+
ve,
|
|
1208
1208
|
{
|
|
1209
1209
|
size: u,
|
|
1210
1210
|
strokeWidth: 2.5,
|
|
1211
1211
|
className: "ds-checkbox__icon"
|
|
1212
1212
|
}
|
|
1213
1213
|
) }),
|
|
1214
|
-
a && /* @__PURE__ */
|
|
1214
|
+
a && /* @__PURE__ */ e.jsx("span", { className: "ds-checkbox__label", children: a })
|
|
1215
1215
|
] });
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function $t({
|
|
1218
1218
|
checked: s = !1,
|
|
1219
|
-
onChange:
|
|
1219
|
+
onChange: t,
|
|
1220
1220
|
size: r = "m",
|
|
1221
1221
|
disabled: o = !1,
|
|
1222
1222
|
label: a,
|
|
1223
1223
|
name: n,
|
|
1224
|
-
value:
|
|
1224
|
+
value: i,
|
|
1225
1225
|
id: l,
|
|
1226
1226
|
...m
|
|
1227
1227
|
}) {
|
|
1228
|
-
const u = l || `radio-${
|
|
1228
|
+
const u = l || `radio-${L.useId()}`, p = [
|
|
1229
1229
|
"ds-radio",
|
|
1230
1230
|
`ds-radio--${r}`,
|
|
1231
1231
|
o && "ds-radio--disabled"
|
|
1232
1232
|
].filter(Boolean).join(" ");
|
|
1233
|
-
return /* @__PURE__ */
|
|
1234
|
-
/* @__PURE__ */
|
|
1233
|
+
return /* @__PURE__ */ e.jsxs("label", { className: p, htmlFor: u, children: [
|
|
1234
|
+
/* @__PURE__ */ e.jsx(
|
|
1235
1235
|
"input",
|
|
1236
1236
|
{
|
|
1237
1237
|
type: "radio",
|
|
1238
1238
|
id: u,
|
|
1239
1239
|
className: "ds-radio__input",
|
|
1240
1240
|
checked: s,
|
|
1241
|
-
onChange: (f) =>
|
|
1241
|
+
onChange: (f) => t == null ? void 0 : t(f.target.checked),
|
|
1242
1242
|
disabled: o,
|
|
1243
1243
|
name: n,
|
|
1244
|
-
value:
|
|
1244
|
+
value: i,
|
|
1245
1245
|
...m
|
|
1246
1246
|
}
|
|
1247
1247
|
),
|
|
1248
|
-
/* @__PURE__ */
|
|
1249
|
-
a && /* @__PURE__ */
|
|
1248
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-radio__circle", children: /* @__PURE__ */ e.jsx("span", { className: "ds-radio__dot" }) }),
|
|
1249
|
+
a && /* @__PURE__ */ e.jsx("span", { className: "ds-radio__label", children: a })
|
|
1250
1250
|
] });
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return /* @__PURE__ */
|
|
1252
|
+
function We({ width: s, height: t, shape: r = "rect", aspectRatio: o, className: a = "", style: n = {}, ...i }) {
|
|
1253
|
+
return /* @__PURE__ */ e.jsx(
|
|
1254
|
+
"span",
|
|
1255
|
+
{
|
|
1256
|
+
className: ["ds-skeleton", `ds-skeleton--${r}`, a].filter(Boolean).join(" "),
|
|
1257
|
+
style: { width: s, height: t, aspectRatio: o, ...n },
|
|
1258
|
+
"aria-hidden": "true",
|
|
1259
|
+
...i
|
|
1260
|
+
}
|
|
1261
|
+
);
|
|
1262
|
+
}
|
|
1263
|
+
function ze({ lines: s = 1, lastLineWidth: t = "70%", gap: r, className: o = "", style: a = {}, ...n }) {
|
|
1264
|
+
return /* @__PURE__ */ e.jsx(
|
|
1254
1265
|
"span",
|
|
1255
1266
|
{
|
|
1256
|
-
className: ["ds-skeleton",
|
|
1257
|
-
style: {
|
|
1267
|
+
className: ["ds-skeleton-text", o].filter(Boolean).join(" "),
|
|
1268
|
+
style: { gap: r, ...a },
|
|
1258
1269
|
"aria-hidden": "true",
|
|
1259
|
-
...n
|
|
1270
|
+
...n,
|
|
1271
|
+
children: Array.from({ length: s }, (i, l) => /* @__PURE__ */ e.jsx(
|
|
1272
|
+
"span",
|
|
1273
|
+
{
|
|
1274
|
+
className: "ds-skeleton ds-skeleton--text",
|
|
1275
|
+
style: l === s - 1 && s > 1 ? { width: t } : void 0
|
|
1276
|
+
},
|
|
1277
|
+
l
|
|
1278
|
+
))
|
|
1260
1279
|
}
|
|
1261
1280
|
);
|
|
1262
1281
|
}
|
|
1263
|
-
|
|
1264
|
-
|
|
1282
|
+
We.Text = ze;
|
|
1283
|
+
function Ce(s) {
|
|
1284
|
+
let t = 2166136261;
|
|
1265
1285
|
for (let r = 0; r < s.length; r++)
|
|
1266
|
-
|
|
1267
|
-
return
|
|
1286
|
+
t ^= s.charCodeAt(r), t = Math.imul(t, 16777619) >>> 0;
|
|
1287
|
+
return t % 360;
|
|
1268
1288
|
}
|
|
1269
|
-
function
|
|
1289
|
+
function Ve(s) {
|
|
1270
1290
|
if (!s) return "";
|
|
1271
|
-
const
|
|
1272
|
-
return
|
|
1291
|
+
const t = s.trim().split(/\s+/);
|
|
1292
|
+
return t.length >= 2 ? (t[0][0] + t[1][0]).toUpperCase() : s[0].toUpperCase();
|
|
1273
1293
|
}
|
|
1274
|
-
function
|
|
1275
|
-
const l =
|
|
1276
|
-
return /* @__PURE__ */
|
|
1294
|
+
function gt({ seed: s, icon: t, src: r, size: o = 32, className: a = "", style: n = {}, ...i }) {
|
|
1295
|
+
const l = Ce(s ?? ""), [m, u] = R(!1), p = t ?? /* @__PURE__ */ e.jsx("span", { className: "ds-avatar__initials", children: Ve(s) });
|
|
1296
|
+
return /* @__PURE__ */ e.jsx(
|
|
1277
1297
|
"div",
|
|
1278
1298
|
{
|
|
1279
1299
|
className: ["ds-avatar", a].filter(Boolean).join(" "),
|
|
1280
1300
|
style: { width: o, height: o, "--ds-avatar-h": l, ...n },
|
|
1281
1301
|
"aria-hidden": "true",
|
|
1282
|
-
...
|
|
1283
|
-
children: r && !m ? /* @__PURE__ */
|
|
1302
|
+
...i,
|
|
1303
|
+
children: r && !m ? /* @__PURE__ */ e.jsx("img", { src: r, alt: "", onError: () => u(!0) }) : p
|
|
1284
1304
|
}
|
|
1285
1305
|
);
|
|
1286
1306
|
}
|
|
1287
|
-
function
|
|
1307
|
+
function Rt({
|
|
1288
1308
|
children: s,
|
|
1289
|
-
size:
|
|
1309
|
+
size: t = "compact",
|
|
1290
1310
|
stickyTop: r,
|
|
1291
1311
|
maxHeight: o,
|
|
1292
1312
|
className: a = "",
|
|
1293
1313
|
style: n = {},
|
|
1294
|
-
...
|
|
1314
|
+
...i
|
|
1295
1315
|
}) {
|
|
1296
1316
|
const l = {
|
|
1297
1317
|
...o ? { maxHeight: o } : {},
|
|
1298
1318
|
...r !== void 0 ? { "--ds-table-sticky-top": typeof r == "number" ? `${r}px` : r } : {},
|
|
1299
1319
|
...n
|
|
1300
1320
|
};
|
|
1301
|
-
return /* @__PURE__ */
|
|
1321
|
+
return /* @__PURE__ */ e.jsx(
|
|
1302
1322
|
"div",
|
|
1303
1323
|
{
|
|
1304
1324
|
className: ["ds-table-wrap", o ? "ds-table-wrap--scroll" : ""].filter(Boolean).join(" "),
|
|
1305
1325
|
style: l,
|
|
1306
|
-
children: /* @__PURE__ */
|
|
1326
|
+
children: /* @__PURE__ */ e.jsx(
|
|
1307
1327
|
"table",
|
|
1308
1328
|
{
|
|
1309
|
-
className: ["ds-table", `ds-table--${
|
|
1310
|
-
...
|
|
1329
|
+
className: ["ds-table", `ds-table--${t}`, a].filter(Boolean).join(" "),
|
|
1330
|
+
...i,
|
|
1311
1331
|
children: s
|
|
1312
1332
|
}
|
|
1313
1333
|
)
|
|
1314
1334
|
}
|
|
1315
1335
|
);
|
|
1316
1336
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return /* @__PURE__ */
|
|
1337
|
+
function Tt({ children: s, ...t }) {
|
|
1338
|
+
return /* @__PURE__ */ e.jsx("thead", { ...t, children: s });
|
|
1319
1339
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return /* @__PURE__ */
|
|
1340
|
+
function It({ children: s, ...t }) {
|
|
1341
|
+
return /* @__PURE__ */ e.jsx("tbody", { ...t, children: s });
|
|
1322
1342
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return /* @__PURE__ */
|
|
1343
|
+
function At({ children: s, interactive: t, selected: r, subheader: o, className: a = "", onClick: n, ...i }) {
|
|
1344
|
+
return /* @__PURE__ */ e.jsx(
|
|
1325
1345
|
"tr",
|
|
1326
1346
|
{
|
|
1327
1347
|
className: [
|
|
1328
1348
|
"ds-table-row",
|
|
1329
|
-
|
|
1349
|
+
t || n ? "ds-table-row--interactive" : "",
|
|
1330
1350
|
r ? "ds-table-row--selected" : "",
|
|
1331
1351
|
o ? "ds-table-row--subheader" : "",
|
|
1332
1352
|
a
|
|
1333
1353
|
].filter(Boolean).join(" "),
|
|
1334
1354
|
onClick: n,
|
|
1335
|
-
...
|
|
1355
|
+
...i,
|
|
1336
1356
|
children: s
|
|
1337
1357
|
}
|
|
1338
1358
|
);
|
|
1339
1359
|
}
|
|
1340
|
-
function
|
|
1341
|
-
return /* @__PURE__ */
|
|
1360
|
+
function St({ children: s, colSpan: t = 999, ...r }) {
|
|
1361
|
+
return /* @__PURE__ */ e.jsx("tr", { className: "ds-table-row ds-table-row--subheader", ...r, children: /* @__PURE__ */ e.jsx("td", { colSpan: t, children: s }) });
|
|
1342
1362
|
}
|
|
1343
|
-
function
|
|
1344
|
-
const m = !!o || r !== void 0, u = r === "asc" ?
|
|
1345
|
-
return /* @__PURE__ */
|
|
1363
|
+
function Dt({ children: s, align: t = "left", sortDir: r, onSort: o, width: a, className: n = "", style: i = {}, ...l }) {
|
|
1364
|
+
const m = !!o || r !== void 0, u = r === "asc" ? $e : r === "desc" ? re : ge;
|
|
1365
|
+
return /* @__PURE__ */ e.jsx(
|
|
1346
1366
|
"th",
|
|
1347
1367
|
{
|
|
1348
1368
|
className: [
|
|
1349
1369
|
"ds-th",
|
|
1350
1370
|
m ? "ds-th--sortable" : "",
|
|
1351
1371
|
r ? "ds-th--sorted" : "",
|
|
1352
|
-
|
|
1372
|
+
t !== "left" ? `ds-table-cell--${t}` : "",
|
|
1353
1373
|
n
|
|
1354
1374
|
].filter(Boolean).join(" "),
|
|
1355
1375
|
onClick: o,
|
|
1356
|
-
style: { width: a, ...
|
|
1376
|
+
style: { width: a, ...i },
|
|
1357
1377
|
...l,
|
|
1358
|
-
children: m ? /* @__PURE__ */
|
|
1378
|
+
children: m ? /* @__PURE__ */ e.jsxs("span", { className: "ds-th__inner", children: [
|
|
1359
1379
|
s,
|
|
1360
|
-
/* @__PURE__ */
|
|
1380
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-th__sort-icon", children: /* @__PURE__ */ e.jsx(u, { size: 11, strokeWidth: 2.5 }) })
|
|
1361
1381
|
] }) : s
|
|
1362
1382
|
}
|
|
1363
1383
|
);
|
|
1364
1384
|
}
|
|
1365
|
-
function
|
|
1366
|
-
return /* @__PURE__ */
|
|
1385
|
+
function Pt({ children: s, align: t = "left", secondary: r, muted: o, truncate: a, nowrap: n, className: i = "", ...l }) {
|
|
1386
|
+
return /* @__PURE__ */ e.jsx(
|
|
1367
1387
|
"td",
|
|
1368
1388
|
{
|
|
1369
1389
|
className: [
|
|
1370
1390
|
"ds-td",
|
|
1371
|
-
|
|
1391
|
+
t !== "left" ? `ds-table-cell--${t}` : "",
|
|
1372
1392
|
r ? "ds-table-cell--secondary" : "",
|
|
1373
1393
|
o ? "ds-table-cell--muted" : "",
|
|
1374
1394
|
a ? "ds-table-cell--truncate" : "",
|
|
1375
1395
|
n ? "ds-table-cell--nowrap" : "",
|
|
1376
|
-
|
|
1396
|
+
i
|
|
1377
1397
|
].filter(Boolean).join(" "),
|
|
1378
1398
|
...l,
|
|
1379
1399
|
children: s
|
|
1380
1400
|
}
|
|
1381
1401
|
);
|
|
1382
1402
|
}
|
|
1383
|
-
function
|
|
1403
|
+
function Bt({
|
|
1384
1404
|
icon: s,
|
|
1385
|
-
title:
|
|
1405
|
+
title: t,
|
|
1386
1406
|
description: r,
|
|
1387
1407
|
action: o,
|
|
1388
1408
|
size: a = "m",
|
|
1389
1409
|
className: n = "",
|
|
1390
|
-
...
|
|
1410
|
+
...i
|
|
1391
1411
|
}) {
|
|
1392
|
-
return /* @__PURE__ */
|
|
1412
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1393
1413
|
"div",
|
|
1394
1414
|
{
|
|
1395
1415
|
className: ["ds-empty-state", `ds-empty-state--${a}`, n].filter(Boolean).join(" "),
|
|
1396
|
-
...
|
|
1416
|
+
...i,
|
|
1397
1417
|
children: [
|
|
1398
|
-
s && /* @__PURE__ */
|
|
1399
|
-
/* @__PURE__ */
|
|
1400
|
-
r && /* @__PURE__ */
|
|
1401
|
-
o && /* @__PURE__ */
|
|
1418
|
+
s && /* @__PURE__ */ e.jsx("div", { className: "ds-empty-state__icon", children: s }),
|
|
1419
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-empty-state__title", children: t }),
|
|
1420
|
+
r && /* @__PURE__ */ e.jsx("div", { className: "ds-empty-state__description", children: r }),
|
|
1421
|
+
o && /* @__PURE__ */ e.jsx("div", { className: "ds-empty-state__action", children: o })
|
|
1402
1422
|
]
|
|
1403
1423
|
}
|
|
1404
1424
|
);
|
|
1405
1425
|
}
|
|
1406
|
-
function
|
|
1426
|
+
function Ot({
|
|
1407
1427
|
label: s,
|
|
1408
|
-
hint:
|
|
1428
|
+
hint: t,
|
|
1409
1429
|
error: r,
|
|
1410
1430
|
required: o = !1,
|
|
1411
1431
|
disabled: a = !1,
|
|
1412
1432
|
htmlFor: n,
|
|
1413
|
-
children:
|
|
1433
|
+
children: i,
|
|
1414
1434
|
className: l = "",
|
|
1415
1435
|
style: m,
|
|
1416
1436
|
...u
|
|
1417
1437
|
}) {
|
|
1418
|
-
const p =
|
|
1419
|
-
return /* @__PURE__ */
|
|
1438
|
+
const p = L.useId(), f = n ?? p, b = `${f}-hint`, d = `${f}-error`;
|
|
1439
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1420
1440
|
"div",
|
|
1421
1441
|
{
|
|
1422
1442
|
className: `ds-field${l ? ` ${l}` : ""}`,
|
|
@@ -1426,17 +1446,17 @@ function Pt({
|
|
|
1426
1446
|
style: m,
|
|
1427
1447
|
...u,
|
|
1428
1448
|
children: [
|
|
1429
|
-
s && /* @__PURE__ */
|
|
1430
|
-
/* @__PURE__ */
|
|
1431
|
-
|
|
1432
|
-
r && /* @__PURE__ */
|
|
1449
|
+
s && /* @__PURE__ */ e.jsx("label", { className: "ds-field-label", htmlFor: f, children: s }),
|
|
1450
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-field-control", children: i }),
|
|
1451
|
+
t && !r && /* @__PURE__ */ e.jsx("p", { className: "ds-field-hint", id: b, children: t }),
|
|
1452
|
+
r && /* @__PURE__ */ e.jsx("p", { className: "ds-field-error", id: d, role: "alert", children: r })
|
|
1433
1453
|
]
|
|
1434
1454
|
}
|
|
1435
1455
|
);
|
|
1436
1456
|
}
|
|
1437
|
-
function
|
|
1457
|
+
function Lt({ label: s, value: t, delta: r, size: o = "m", inline: a = !1, className: n = "", style: i, ...l }) {
|
|
1438
1458
|
const m = r != null && r.startsWith("+") ? "up" : r != null && r.startsWith("-") ? "down" : "neutral";
|
|
1439
|
-
return /* @__PURE__ */
|
|
1459
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1440
1460
|
"div",
|
|
1441
1461
|
{
|
|
1442
1462
|
className: [
|
|
@@ -1445,70 +1465,70 @@ function Dt({ label: s, value: e, delta: r, size: o = "m", inline: a = !1, class
|
|
|
1445
1465
|
a && "ds-stat--inline",
|
|
1446
1466
|
n
|
|
1447
1467
|
].filter(Boolean).join(" "),
|
|
1448
|
-
style:
|
|
1468
|
+
style: i,
|
|
1449
1469
|
...l,
|
|
1450
1470
|
children: [
|
|
1451
|
-
s && /* @__PURE__ */
|
|
1452
|
-
|
|
1453
|
-
r != null && /* @__PURE__ */
|
|
1471
|
+
s && /* @__PURE__ */ e.jsx("span", { className: "ds-stat-label", children: s }),
|
|
1472
|
+
t != null && /* @__PURE__ */ e.jsx("span", { className: "ds-stat-value", children: t }),
|
|
1473
|
+
r != null && /* @__PURE__ */ e.jsx("span", { className: `ds-stat-delta ds-stat-delta--${m}`, children: r })
|
|
1454
1474
|
]
|
|
1455
1475
|
}
|
|
1456
1476
|
);
|
|
1457
1477
|
}
|
|
1458
|
-
function
|
|
1478
|
+
function Mt({
|
|
1459
1479
|
children: s,
|
|
1460
|
-
separator:
|
|
1480
|
+
separator: t = "/",
|
|
1461
1481
|
"aria-label": r = "Breadcrumb",
|
|
1462
1482
|
className: o = "",
|
|
1463
1483
|
style: a,
|
|
1464
1484
|
...n
|
|
1465
1485
|
}) {
|
|
1466
|
-
const
|
|
1467
|
-
return /* @__PURE__ */
|
|
1486
|
+
const i = L.Children.toArray(s).filter(Boolean);
|
|
1487
|
+
return /* @__PURE__ */ e.jsx(
|
|
1468
1488
|
"nav",
|
|
1469
1489
|
{
|
|
1470
1490
|
className: `ds-breadcrumb${o ? ` ${o}` : ""}`,
|
|
1471
1491
|
"aria-label": r,
|
|
1472
1492
|
style: a,
|
|
1473
1493
|
...n,
|
|
1474
|
-
children: /* @__PURE__ */
|
|
1494
|
+
children: /* @__PURE__ */ e.jsx("ol", { className: "ds-breadcrumb-list", children: i.map((l, m) => /* @__PURE__ */ e.jsxs("li", { className: "ds-breadcrumb-item", children: [
|
|
1475
1495
|
l,
|
|
1476
|
-
m <
|
|
1496
|
+
m < i.length - 1 && /* @__PURE__ */ e.jsx("span", { className: "ds-breadcrumb-sep", "aria-hidden": "true", children: t })
|
|
1477
1497
|
] }, m)) })
|
|
1478
1498
|
}
|
|
1479
1499
|
);
|
|
1480
1500
|
}
|
|
1481
|
-
function
|
|
1501
|
+
function Ft({
|
|
1482
1502
|
page: s,
|
|
1483
|
-
total:
|
|
1503
|
+
total: t,
|
|
1484
1504
|
onChange: r,
|
|
1485
1505
|
siblings: o = 1,
|
|
1486
1506
|
"aria-label": a = "Pagination",
|
|
1487
1507
|
className: n = "",
|
|
1488
|
-
style:
|
|
1508
|
+
style: i,
|
|
1489
1509
|
...l
|
|
1490
1510
|
}) {
|
|
1491
|
-
const m =
|
|
1492
|
-
return /* @__PURE__ */
|
|
1511
|
+
const m = Ue(s, t, o);
|
|
1512
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1493
1513
|
"nav",
|
|
1494
1514
|
{
|
|
1495
1515
|
className: `ds-pagination${n ? ` ${n}` : ""}`,
|
|
1496
1516
|
"aria-label": a,
|
|
1497
|
-
style:
|
|
1517
|
+
style: i,
|
|
1498
1518
|
...l,
|
|
1499
1519
|
children: [
|
|
1500
|
-
/* @__PURE__ */
|
|
1520
|
+
/* @__PURE__ */ e.jsx(
|
|
1501
1521
|
"button",
|
|
1502
1522
|
{
|
|
1503
1523
|
className: "ds-pagination-arrow",
|
|
1504
1524
|
onClick: () => r == null ? void 0 : r(s - 1),
|
|
1505
1525
|
disabled: s <= 1,
|
|
1506
1526
|
"aria-label": "Previous page",
|
|
1507
|
-
children: /* @__PURE__ */
|
|
1527
|
+
children: /* @__PURE__ */ e.jsx(Re, { size: 16 })
|
|
1508
1528
|
}
|
|
1509
1529
|
),
|
|
1510
1530
|
m.map(
|
|
1511
|
-
(u, p) => u === "…" ? /* @__PURE__ */
|
|
1531
|
+
(u, p) => u === "…" ? /* @__PURE__ */ e.jsx("span", { className: "ds-pagination-gap", "aria-hidden": "true", children: "…" }, `gap-${p}`) : /* @__PURE__ */ e.jsx(
|
|
1512
1532
|
"button",
|
|
1513
1533
|
{
|
|
1514
1534
|
className: `ds-pagination-page${u === s ? " ds-pagination-page--current" : ""}`,
|
|
@@ -1520,57 +1540,57 @@ function Bt({
|
|
|
1520
1540
|
u
|
|
1521
1541
|
)
|
|
1522
1542
|
),
|
|
1523
|
-
/* @__PURE__ */
|
|
1543
|
+
/* @__PURE__ */ e.jsx(
|
|
1524
1544
|
"button",
|
|
1525
1545
|
{
|
|
1526
1546
|
className: "ds-pagination-arrow",
|
|
1527
1547
|
onClick: () => r == null ? void 0 : r(s + 1),
|
|
1528
|
-
disabled: s >=
|
|
1548
|
+
disabled: s >= t,
|
|
1529
1549
|
"aria-label": "Next page",
|
|
1530
|
-
children: /* @__PURE__ */
|
|
1550
|
+
children: /* @__PURE__ */ e.jsx(je, { size: 16 })
|
|
1531
1551
|
}
|
|
1532
1552
|
)
|
|
1533
1553
|
]
|
|
1534
1554
|
}
|
|
1535
1555
|
);
|
|
1536
1556
|
}
|
|
1537
|
-
function
|
|
1538
|
-
if (
|
|
1539
|
-
const o = Math.max(2, s - r), a = Math.min(
|
|
1557
|
+
function Ue(s, t, r) {
|
|
1558
|
+
if (t <= 7) return Array.from({ length: t }, (i, l) => l + 1);
|
|
1559
|
+
const o = Math.max(2, s - r), a = Math.min(t - 1, s + r), n = [1];
|
|
1540
1560
|
o > 2 && n.push("…");
|
|
1541
|
-
for (let
|
|
1542
|
-
return a <
|
|
1561
|
+
for (let i = o; i <= a; i++) n.push(i);
|
|
1562
|
+
return a < t - 1 && n.push("…"), n.push(t), n;
|
|
1543
1563
|
}
|
|
1544
|
-
const
|
|
1545
|
-
function
|
|
1564
|
+
const Ye = 200;
|
|
1565
|
+
function Wt({
|
|
1546
1566
|
children: s,
|
|
1547
|
-
title:
|
|
1567
|
+
title: t,
|
|
1548
1568
|
onClose: r,
|
|
1549
1569
|
side: o = "right",
|
|
1550
1570
|
...a
|
|
1551
1571
|
}) {
|
|
1552
|
-
const n = E(null),
|
|
1572
|
+
const n = E(null), i = L.useId(), [l, m] = R(!1), u = () => {
|
|
1553
1573
|
!r || l || (m(!0), setTimeout(() => {
|
|
1554
1574
|
m(!1), r();
|
|
1555
|
-
},
|
|
1575
|
+
}, Ye));
|
|
1556
1576
|
};
|
|
1557
|
-
|
|
1558
|
-
const d = (
|
|
1559
|
-
|
|
1560
|
-
},
|
|
1561
|
-
n.current && !n.current.contains(
|
|
1577
|
+
D(() => {
|
|
1578
|
+
const d = (w) => {
|
|
1579
|
+
w.key === "Escape" && u();
|
|
1580
|
+
}, _ = (w) => {
|
|
1581
|
+
n.current && !n.current.contains(w.target) && u();
|
|
1562
1582
|
};
|
|
1563
|
-
return document.addEventListener("keydown", d), document.addEventListener("mousedown",
|
|
1564
|
-
document.removeEventListener("keydown", d), document.removeEventListener("mousedown",
|
|
1583
|
+
return document.addEventListener("keydown", d), document.addEventListener("mousedown", _), () => {
|
|
1584
|
+
document.removeEventListener("keydown", d), document.removeEventListener("mousedown", _);
|
|
1565
1585
|
};
|
|
1566
1586
|
}, [r, l]);
|
|
1567
|
-
const p =
|
|
1568
|
-
return /* @__PURE__ */
|
|
1587
|
+
const p = L.Children.toArray(s), f = p.find((d) => (d == null ? void 0 : d.type) === be), b = p.filter((d) => (d == null ? void 0 : d.type) !== be);
|
|
1588
|
+
return /* @__PURE__ */ e.jsx(
|
|
1569
1589
|
"div",
|
|
1570
1590
|
{
|
|
1571
1591
|
className: ["ds-drawer-overlay", l && "ds-drawer-overlay--closing"].filter(Boolean).join(" "),
|
|
1572
1592
|
...a,
|
|
1573
|
-
children: /* @__PURE__ */
|
|
1593
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
1574
1594
|
"aside",
|
|
1575
1595
|
{
|
|
1576
1596
|
className: ["ds-drawer", l && "ds-drawer--closing"].filter(Boolean).join(" "),
|
|
@@ -1578,13 +1598,13 @@ function Lt({
|
|
|
1578
1598
|
ref: n,
|
|
1579
1599
|
role: "dialog",
|
|
1580
1600
|
"aria-modal": "true",
|
|
1581
|
-
"aria-labelledby":
|
|
1601
|
+
"aria-labelledby": t ? i : void 0,
|
|
1582
1602
|
children: [
|
|
1583
|
-
/* @__PURE__ */
|
|
1584
|
-
|
|
1585
|
-
r && /* @__PURE__ */
|
|
1603
|
+
/* @__PURE__ */ e.jsxs("header", { className: "ds-drawer-header", children: [
|
|
1604
|
+
t && /* @__PURE__ */ e.jsx("h3", { id: i, className: "ds-drawer-title", children: t }),
|
|
1605
|
+
r && /* @__PURE__ */ e.jsx("button", { className: "ds-drawer-close", onClick: u, "aria-label": "Close drawer", children: /* @__PURE__ */ e.jsx(ee, { size: P[2], strokeWidth: 1.5 }) })
|
|
1586
1606
|
] }),
|
|
1587
|
-
/* @__PURE__ */
|
|
1607
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-drawer-body", children: b }),
|
|
1588
1608
|
f
|
|
1589
1609
|
]
|
|
1590
1610
|
}
|
|
@@ -1593,34 +1613,34 @@ function Lt({
|
|
|
1593
1613
|
);
|
|
1594
1614
|
}
|
|
1595
1615
|
function be({ children: s }) {
|
|
1596
|
-
return /* @__PURE__ */
|
|
1616
|
+
return /* @__PURE__ */ e.jsx("footer", { className: "ds-drawer-footer", children: s });
|
|
1597
1617
|
}
|
|
1598
|
-
const
|
|
1599
|
-
info:
|
|
1600
|
-
success:
|
|
1601
|
-
warning:
|
|
1602
|
-
error:
|
|
1618
|
+
const qe = {
|
|
1619
|
+
info: fe,
|
|
1620
|
+
success: ue,
|
|
1621
|
+
warning: de,
|
|
1622
|
+
error: le
|
|
1603
1623
|
};
|
|
1604
|
-
function
|
|
1624
|
+
function zt({
|
|
1605
1625
|
children: s,
|
|
1606
|
-
variant:
|
|
1626
|
+
variant: t = "info",
|
|
1607
1627
|
action: r,
|
|
1608
1628
|
onAction: o,
|
|
1609
1629
|
onDismiss: a,
|
|
1610
1630
|
role: n,
|
|
1611
|
-
...
|
|
1631
|
+
...i
|
|
1612
1632
|
}) {
|
|
1613
|
-
const l =
|
|
1614
|
-
return /* @__PURE__ */
|
|
1633
|
+
const l = qe[t], m = n || (t === "error" ? "alert" : "status");
|
|
1634
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1615
1635
|
"div",
|
|
1616
1636
|
{
|
|
1617
|
-
className: `ds-banner ds-banner--${
|
|
1637
|
+
className: `ds-banner ds-banner--${t}`,
|
|
1618
1638
|
role: m,
|
|
1619
|
-
...
|
|
1639
|
+
...i,
|
|
1620
1640
|
children: [
|
|
1621
|
-
l && /* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */
|
|
1623
|
-
r && /* @__PURE__ */
|
|
1641
|
+
l && /* @__PURE__ */ e.jsx("span", { className: "ds-banner-icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(l, { size: P[2], strokeWidth: 1.5 }) }),
|
|
1642
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-banner-text", children: s }),
|
|
1643
|
+
r && /* @__PURE__ */ e.jsx(
|
|
1624
1644
|
"button",
|
|
1625
1645
|
{
|
|
1626
1646
|
type: "button",
|
|
@@ -1629,152 +1649,152 @@ function Mt({
|
|
|
1629
1649
|
children: r
|
|
1630
1650
|
}
|
|
1631
1651
|
),
|
|
1632
|
-
a && /* @__PURE__ */
|
|
1652
|
+
a && /* @__PURE__ */ e.jsx(
|
|
1633
1653
|
"button",
|
|
1634
1654
|
{
|
|
1635
1655
|
type: "button",
|
|
1636
1656
|
className: "ds-banner-dismiss",
|
|
1637
1657
|
onClick: a,
|
|
1638
1658
|
"aria-label": "Dismiss",
|
|
1639
|
-
children: /* @__PURE__ */
|
|
1659
|
+
children: /* @__PURE__ */ e.jsx(ee, { size: P[2], strokeWidth: 1.5 })
|
|
1640
1660
|
}
|
|
1641
1661
|
)
|
|
1642
1662
|
]
|
|
1643
1663
|
}
|
|
1644
1664
|
);
|
|
1645
1665
|
}
|
|
1646
|
-
function
|
|
1666
|
+
function Ct({
|
|
1647
1667
|
trigger: s,
|
|
1648
|
-
items:
|
|
1668
|
+
items: t = [],
|
|
1649
1669
|
open: r,
|
|
1650
1670
|
onOpenChange: o,
|
|
1651
1671
|
align: a = "left",
|
|
1652
1672
|
className: n = "",
|
|
1653
|
-
style:
|
|
1673
|
+
style: i,
|
|
1654
1674
|
...l
|
|
1655
1675
|
}) {
|
|
1656
|
-
const [m, u] =
|
|
1657
|
-
if (
|
|
1676
|
+
const [m, u] = R(!1), [p, f] = R(!1), b = r !== void 0, d = b ? r : m, _ = E(null), w = E(null), k = E(null), N = E(null), [B, T] = R({}), $ = E(null), z = 150, O = () => {
|
|
1677
|
+
if (b)
|
|
1658
1678
|
o == null || o(!1);
|
|
1659
1679
|
else {
|
|
1660
1680
|
if (p) return;
|
|
1661
|
-
f(!0),
|
|
1681
|
+
f(!0), $.current = setTimeout(() => {
|
|
1662
1682
|
u(!1), f(!1);
|
|
1663
|
-
},
|
|
1683
|
+
}, z);
|
|
1664
1684
|
}
|
|
1665
1685
|
}, q = () => {
|
|
1666
|
-
const
|
|
1667
|
-
|
|
1686
|
+
const h = !d;
|
|
1687
|
+
b ? o == null || o(h) : h ? (clearTimeout($.current), f(!1), u(!0)) : O();
|
|
1668
1688
|
}, M = () => {
|
|
1669
|
-
d || (
|
|
1689
|
+
d || (b ? o == null || o(!0) : (clearTimeout($.current), f(!1), u(!0)));
|
|
1670
1690
|
};
|
|
1671
|
-
|
|
1691
|
+
D(() => () => clearTimeout($.current), []), D(() => {
|
|
1672
1692
|
if (!d) return;
|
|
1673
|
-
const
|
|
1674
|
-
var
|
|
1675
|
-
const v = (
|
|
1676
|
-
v &&
|
|
1693
|
+
const h = () => {
|
|
1694
|
+
var g;
|
|
1695
|
+
const v = (g = _.current) == null ? void 0 : g.getBoundingClientRect();
|
|
1696
|
+
v && T(
|
|
1677
1697
|
a === "right" ? { top: v.bottom + 4, right: window.innerWidth - v.right } : { top: v.bottom + 4, left: v.left }
|
|
1678
1698
|
);
|
|
1679
1699
|
};
|
|
1680
|
-
return
|
|
1681
|
-
window.removeEventListener("scroll",
|
|
1700
|
+
return h(), window.addEventListener("scroll", h, !0), window.addEventListener("resize", h), () => {
|
|
1701
|
+
window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
|
|
1682
1702
|
};
|
|
1683
1703
|
}, [d, a]);
|
|
1684
1704
|
const F = () => {
|
|
1685
1705
|
var v;
|
|
1686
|
-
const
|
|
1706
|
+
const h = (v = k.current) == null ? void 0 : v.querySelector(
|
|
1687
1707
|
'button:not([disabled]), [href], [tabindex]:not([tabindex="-1"]), input, select, textarea'
|
|
1688
1708
|
);
|
|
1689
|
-
|
|
1709
|
+
h == null || h.focus();
|
|
1690
1710
|
};
|
|
1691
|
-
|
|
1711
|
+
D(() => {
|
|
1692
1712
|
if (!d) return;
|
|
1693
|
-
const
|
|
1713
|
+
const h = (g) => {
|
|
1694
1714
|
var S, W;
|
|
1695
|
-
!((S =
|
|
1696
|
-
}, v = (
|
|
1697
|
-
|
|
1715
|
+
!((S = _.current) != null && S.contains(g.target)) && !((W = w.current) != null && W.contains(g.target)) && O();
|
|
1716
|
+
}, v = (g) => {
|
|
1717
|
+
g.key === "Escape" && (O(), F());
|
|
1698
1718
|
};
|
|
1699
|
-
return document.addEventListener("mousedown",
|
|
1700
|
-
document.removeEventListener("mousedown",
|
|
1719
|
+
return document.addEventListener("mousedown", h), document.addEventListener("keydown", v), () => {
|
|
1720
|
+
document.removeEventListener("mousedown", h), document.removeEventListener("keydown", v);
|
|
1701
1721
|
};
|
|
1702
|
-
}, [d]),
|
|
1703
|
-
if (!d || !N.current || !
|
|
1704
|
-
const
|
|
1722
|
+
}, [d]), D(() => {
|
|
1723
|
+
if (!d || !N.current || !w.current) return;
|
|
1724
|
+
const h = V(), v = N.current === "last" ? h[h.length - 1] : h[0];
|
|
1705
1725
|
v == null || v.focus(), N.current = null;
|
|
1706
1726
|
}, [d]);
|
|
1707
|
-
const
|
|
1727
|
+
const V = () => w.current ? [...w.current.querySelectorAll(
|
|
1708
1728
|
'button:not([disabled]), a[href]:not([aria-disabled="true"]), [tabindex]:not([tabindex="-1"])'
|
|
1709
|
-
)] : [], G = (
|
|
1710
|
-
var v,
|
|
1711
|
-
if (
|
|
1712
|
-
|
|
1713
|
-
else if (
|
|
1714
|
-
if (
|
|
1729
|
+
)] : [], G = (h) => {
|
|
1730
|
+
var v, g;
|
|
1731
|
+
if (h.key === "ArrowDown")
|
|
1732
|
+
h.preventDefault(), d ? (v = V()[0]) == null || v.focus() : (N.current = "first", M());
|
|
1733
|
+
else if (h.key === "ArrowUp")
|
|
1734
|
+
if (h.preventDefault(), !d)
|
|
1715
1735
|
N.current = "last", M();
|
|
1716
1736
|
else {
|
|
1717
|
-
const S =
|
|
1718
|
-
(
|
|
1737
|
+
const S = V();
|
|
1738
|
+
(g = S[S.length - 1]) == null || g.focus();
|
|
1719
1739
|
}
|
|
1720
|
-
}, H = (
|
|
1740
|
+
}, H = (h) => {
|
|
1721
1741
|
var S, W, U, j;
|
|
1722
|
-
const v =
|
|
1723
|
-
switch (
|
|
1742
|
+
const v = V(), g = v.findIndex((c) => c === document.activeElement);
|
|
1743
|
+
switch (h.key) {
|
|
1724
1744
|
case "ArrowDown":
|
|
1725
|
-
|
|
1745
|
+
h.preventDefault(), (S = v[Math.min(g + 1, v.length - 1)]) == null || S.focus();
|
|
1726
1746
|
break;
|
|
1727
1747
|
case "ArrowUp":
|
|
1728
|
-
|
|
1748
|
+
h.preventDefault(), g <= 0 ? F() : (W = v[g - 1]) == null || W.focus();
|
|
1729
1749
|
break;
|
|
1730
1750
|
case "Home":
|
|
1731
|
-
|
|
1751
|
+
h.preventDefault(), (U = v[0]) == null || U.focus();
|
|
1732
1752
|
break;
|
|
1733
1753
|
case "End":
|
|
1734
|
-
|
|
1754
|
+
h.preventDefault(), (j = v[v.length - 1]) == null || j.focus();
|
|
1735
1755
|
break;
|
|
1736
1756
|
case "Tab":
|
|
1737
1757
|
O();
|
|
1738
1758
|
break;
|
|
1739
1759
|
}
|
|
1740
|
-
},
|
|
1760
|
+
}, C = d && /* @__PURE__ */ e.jsx(
|
|
1741
1761
|
"div",
|
|
1742
1762
|
{
|
|
1743
|
-
ref:
|
|
1763
|
+
ref: w,
|
|
1744
1764
|
role: "menu",
|
|
1745
1765
|
className: [
|
|
1746
1766
|
"ds-dropdown__menu",
|
|
1747
1767
|
`ds-dropdown__menu--${a}`,
|
|
1748
1768
|
p && "ds-dropdown__menu--closing"
|
|
1749
1769
|
].filter(Boolean).join(" "),
|
|
1750
|
-
style:
|
|
1770
|
+
style: B,
|
|
1751
1771
|
onKeyDown: H,
|
|
1752
|
-
children:
|
|
1753
|
-
if (
|
|
1754
|
-
return /* @__PURE__ */
|
|
1755
|
-
if (
|
|
1756
|
-
return /* @__PURE__ */
|
|
1757
|
-
|
|
1758
|
-
/* @__PURE__ */
|
|
1772
|
+
children: t.map((h, v) => {
|
|
1773
|
+
if (h.separator)
|
|
1774
|
+
return /* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__separator" }, v);
|
|
1775
|
+
if (h.type === "section")
|
|
1776
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "ds-dropdown__section", children: [
|
|
1777
|
+
h.label && /* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__section-label", children: h.label }),
|
|
1778
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__section-content", children: h.content })
|
|
1759
1779
|
] }, v);
|
|
1760
|
-
const
|
|
1761
|
-
return /* @__PURE__ */
|
|
1780
|
+
const g = !!h.href, S = g ? "a" : "button", W = g ? { href: h.disabled ? void 0 : h.href, "aria-disabled": h.disabled ? "true" : void 0 } : { type: "button", disabled: h.disabled };
|
|
1781
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1762
1782
|
S,
|
|
1763
1783
|
{
|
|
1764
1784
|
role: "menuitem",
|
|
1765
1785
|
className: [
|
|
1766
1786
|
"ds-dropdown__item",
|
|
1767
|
-
|
|
1787
|
+
h.danger && "ds-dropdown__item--danger"
|
|
1768
1788
|
].filter(Boolean).join(" "),
|
|
1769
1789
|
...W,
|
|
1770
1790
|
onClick: () => {
|
|
1771
1791
|
var U;
|
|
1772
|
-
(U =
|
|
1792
|
+
(U = h.onClick) == null || U.call(h), O();
|
|
1773
1793
|
},
|
|
1774
1794
|
children: [
|
|
1775
|
-
|
|
1776
|
-
/* @__PURE__ */
|
|
1777
|
-
|
|
1795
|
+
h.icon && /* @__PURE__ */ e.jsx("span", { className: "ds-dropdown__item-icon", children: h.icon }),
|
|
1796
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-dropdown__item-label", children: h.label }),
|
|
1797
|
+
h.shortcut && /* @__PURE__ */ e.jsx("span", { className: "ds-dropdown__item-shortcut", children: h.shortcut })
|
|
1778
1798
|
]
|
|
1779
1799
|
},
|
|
1780
1800
|
v
|
|
@@ -1782,161 +1802,161 @@ function Ft({
|
|
|
1782
1802
|
})
|
|
1783
1803
|
}
|
|
1784
1804
|
);
|
|
1785
|
-
return /* @__PURE__ */
|
|
1805
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1786
1806
|
"div",
|
|
1787
1807
|
{
|
|
1788
|
-
ref:
|
|
1808
|
+
ref: _,
|
|
1789
1809
|
className: ["ds-dropdown", n].filter(Boolean).join(" "),
|
|
1790
|
-
style:
|
|
1810
|
+
style: i,
|
|
1791
1811
|
...l,
|
|
1792
1812
|
children: [
|
|
1793
|
-
/* @__PURE__ */
|
|
1813
|
+
/* @__PURE__ */ e.jsx(
|
|
1794
1814
|
"div",
|
|
1795
1815
|
{
|
|
1796
|
-
ref:
|
|
1816
|
+
ref: k,
|
|
1797
1817
|
className: "ds-dropdown__trigger",
|
|
1798
1818
|
onClick: q,
|
|
1799
1819
|
onKeyDown: G,
|
|
1800
1820
|
children: s
|
|
1801
1821
|
}
|
|
1802
1822
|
),
|
|
1803
|
-
typeof document < "u" && ne.createPortal(
|
|
1823
|
+
typeof document < "u" && ne.createPortal(C, document.body)
|
|
1804
1824
|
]
|
|
1805
1825
|
}
|
|
1806
1826
|
);
|
|
1807
1827
|
}
|
|
1808
|
-
function
|
|
1828
|
+
function Vt({
|
|
1809
1829
|
value: s = 0,
|
|
1810
|
-
size:
|
|
1830
|
+
size: t = "m",
|
|
1811
1831
|
variant: r = "default",
|
|
1812
1832
|
showValue: o = !1,
|
|
1813
1833
|
min: a = 2,
|
|
1814
1834
|
animate: n = !0
|
|
1815
1835
|
}) {
|
|
1816
|
-
const
|
|
1817
|
-
return /* @__PURE__ */
|
|
1836
|
+
const i = Math.min(100, Math.max(0, s)), l = Math.max(a, i), m = r === "auto" ? i >= 70 ? "success" : i >= 50 ? "warning" : "danger" : r;
|
|
1837
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1818
1838
|
"div",
|
|
1819
1839
|
{
|
|
1820
1840
|
className: [
|
|
1821
1841
|
"ds-progress",
|
|
1822
|
-
`ds-progress--${
|
|
1842
|
+
`ds-progress--${t}`,
|
|
1823
1843
|
!n && "ds-progress--instant"
|
|
1824
1844
|
].filter(Boolean).join(" "),
|
|
1825
1845
|
role: "progressbar",
|
|
1826
|
-
"aria-valuenow":
|
|
1846
|
+
"aria-valuenow": i,
|
|
1827
1847
|
"aria-valuemin": 0,
|
|
1828
1848
|
"aria-valuemax": 100,
|
|
1829
1849
|
children: [
|
|
1830
|
-
/* @__PURE__ */
|
|
1850
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-progress__track", children: /* @__PURE__ */ e.jsx(
|
|
1831
1851
|
"div",
|
|
1832
1852
|
{
|
|
1833
1853
|
className: `ds-progress__fill ds-progress__fill--${m}`,
|
|
1834
1854
|
style: { width: `${l}%` }
|
|
1835
1855
|
}
|
|
1836
1856
|
) }),
|
|
1837
|
-
o && /* @__PURE__ */
|
|
1838
|
-
Math.round(
|
|
1857
|
+
o && /* @__PURE__ */ e.jsxs("span", { className: "ds-progress__value", children: [
|
|
1858
|
+
Math.round(i),
|
|
1839
1859
|
"%"
|
|
1840
1860
|
] })
|
|
1841
1861
|
]
|
|
1842
1862
|
}
|
|
1843
1863
|
);
|
|
1844
1864
|
}
|
|
1845
|
-
const
|
|
1846
|
-
function
|
|
1847
|
-
const [r, o] =
|
|
1848
|
-
return
|
|
1849
|
-
if (
|
|
1865
|
+
const He = (s) => 1 - Math.pow(1 - s, 3), Ke = () => typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1866
|
+
function Ge(s, { duration: t = 600 } = {}) {
|
|
1867
|
+
const [r, o] = R(s), a = E(s), n = E(null);
|
|
1868
|
+
return D(() => {
|
|
1869
|
+
if (Ke()) {
|
|
1850
1870
|
o(s), a.current = s;
|
|
1851
1871
|
return;
|
|
1852
1872
|
}
|
|
1853
|
-
const
|
|
1873
|
+
const i = a.current, l = s - i;
|
|
1854
1874
|
if (l === 0) return;
|
|
1855
1875
|
let m = null;
|
|
1856
1876
|
const u = (p) => {
|
|
1857
1877
|
m || (m = p);
|
|
1858
|
-
const f = Math.min((p - m) /
|
|
1859
|
-
o(
|
|
1878
|
+
const f = Math.min((p - m) / t, 1);
|
|
1879
|
+
o(i + l * He(f)), f < 1 ? n.current = requestAnimationFrame(u) : a.current = s;
|
|
1860
1880
|
};
|
|
1861
1881
|
return n.current = requestAnimationFrame(u), () => cancelAnimationFrame(n.current);
|
|
1862
|
-
}, [s,
|
|
1882
|
+
}, [s, t]), r;
|
|
1863
1883
|
}
|
|
1864
|
-
function
|
|
1884
|
+
function Ut({
|
|
1865
1885
|
value: s,
|
|
1866
|
-
duration:
|
|
1886
|
+
duration: t = 600,
|
|
1867
1887
|
decimals: r = 0,
|
|
1868
1888
|
prefix: o = "",
|
|
1869
1889
|
suffix: a = ""
|
|
1870
1890
|
}) {
|
|
1871
|
-
const
|
|
1872
|
-
return `${o}${
|
|
1873
|
-
}
|
|
1874
|
-
function
|
|
1875
|
-
const o = E(null), [a, n] =
|
|
1876
|
-
return
|
|
1877
|
-
const
|
|
1878
|
-
if (!
|
|
1891
|
+
const i = Ge(s, { duration: t }).toFixed(r);
|
|
1892
|
+
return `${o}${i}${a}`;
|
|
1893
|
+
}
|
|
1894
|
+
function Xe({ threshold: s = 0.1, rootMargin: t = "0px", once: r = !1 } = {}) {
|
|
1895
|
+
const o = E(null), [a, n] = R(!1);
|
|
1896
|
+
return D(() => {
|
|
1897
|
+
const i = o.current;
|
|
1898
|
+
if (!i) return;
|
|
1879
1899
|
const l = new IntersectionObserver(
|
|
1880
1900
|
([m]) => {
|
|
1881
1901
|
m.isIntersecting ? (n(!0), r && l.disconnect()) : r || n(!1);
|
|
1882
1902
|
},
|
|
1883
|
-
{ threshold: s, rootMargin:
|
|
1903
|
+
{ threshold: s, rootMargin: t }
|
|
1884
1904
|
);
|
|
1885
|
-
return l.observe(
|
|
1886
|
-
}, [s,
|
|
1905
|
+
return l.observe(i), () => l.disconnect();
|
|
1906
|
+
}, [s, t, r]), { ref: o, inView: a };
|
|
1887
1907
|
}
|
|
1888
|
-
function
|
|
1908
|
+
function Yt({
|
|
1889
1909
|
children: s,
|
|
1890
|
-
as:
|
|
1910
|
+
as: t = "div",
|
|
1891
1911
|
once: r = !1,
|
|
1892
1912
|
threshold: o = 0.1,
|
|
1893
1913
|
rootMargin: a = "0px",
|
|
1894
1914
|
onEnter: n,
|
|
1895
|
-
onLeave:
|
|
1915
|
+
onLeave: i,
|
|
1896
1916
|
...l
|
|
1897
1917
|
}) {
|
|
1898
|
-
const { ref: m, inView: u } =
|
|
1899
|
-
return
|
|
1900
|
-
u && !p.current && (n == null || n()), !u && p.current && (
|
|
1901
|
-
}, [u]), /* @__PURE__ */
|
|
1902
|
-
}
|
|
1903
|
-
const
|
|
1904
|
-
default:
|
|
1905
|
-
success:
|
|
1906
|
-
warning:
|
|
1907
|
-
error:
|
|
1918
|
+
const { ref: m, inView: u } = Xe({ threshold: o, rootMargin: a, once: r }), p = E(!1);
|
|
1919
|
+
return D(() => {
|
|
1920
|
+
u && !p.current && (n == null || n()), !u && p.current && (i == null || i()), p.current = u;
|
|
1921
|
+
}, [u]), /* @__PURE__ */ e.jsx(t, { ref: m, ...l, children: typeof s == "function" ? s(u) : s });
|
|
1922
|
+
}
|
|
1923
|
+
const xe = {
|
|
1924
|
+
default: fe,
|
|
1925
|
+
success: ue,
|
|
1926
|
+
warning: de,
|
|
1927
|
+
error: le
|
|
1908
1928
|
};
|
|
1909
1929
|
let Q = [];
|
|
1910
|
-
const
|
|
1911
|
-
function
|
|
1912
|
-
|
|
1930
|
+
const ce = /* @__PURE__ */ new Set();
|
|
1931
|
+
function _e() {
|
|
1932
|
+
ce.forEach((s) => s([...Q]));
|
|
1913
1933
|
}
|
|
1914
|
-
function
|
|
1915
|
-
Q = [...Q, s],
|
|
1934
|
+
function Je(s) {
|
|
1935
|
+
Q = [...Q, s], _e();
|
|
1916
1936
|
}
|
|
1917
|
-
function
|
|
1918
|
-
Q = Q.filter((
|
|
1937
|
+
function Ze(s) {
|
|
1938
|
+
Q = Q.filter((t) => t.id !== s), _e();
|
|
1919
1939
|
}
|
|
1920
|
-
function
|
|
1921
|
-
const s = (
|
|
1922
|
-
|
|
1940
|
+
function qt() {
|
|
1941
|
+
const s = (t, r = {}) => {
|
|
1942
|
+
Je({
|
|
1923
1943
|
id: `${Date.now()}-${Math.random()}`,
|
|
1924
|
-
message:
|
|
1944
|
+
message: t,
|
|
1925
1945
|
type: "default",
|
|
1926
1946
|
duration: 4e3,
|
|
1927
1947
|
...r
|
|
1928
1948
|
});
|
|
1929
1949
|
};
|
|
1930
|
-
return s.success = (
|
|
1950
|
+
return s.success = (t, r) => s(t, { ...r, type: "success" }), s.error = (t, r) => s(t, { ...r, type: "error" }), s.warning = (t, r) => s(t, { ...r, type: "warning" }), { toast: s };
|
|
1931
1951
|
}
|
|
1932
|
-
function
|
|
1933
|
-
const [r, o] =
|
|
1934
|
-
|
|
1952
|
+
function Qe({ data: s, onDismiss: t }) {
|
|
1953
|
+
const [r, o] = R(!1), a = E(null);
|
|
1954
|
+
D(() => (requestAnimationFrame(() => o(!0)), s.duration > 0 && (a.current = setTimeout(() => n(), s.duration)), () => clearTimeout(a.current)), []);
|
|
1935
1955
|
function n() {
|
|
1936
|
-
o(!1), setTimeout(() =>
|
|
1956
|
+
o(!1), setTimeout(() => t(s.id), 250);
|
|
1937
1957
|
}
|
|
1938
|
-
const
|
|
1939
|
-
return /* @__PURE__ */
|
|
1958
|
+
const i = xe[s.type] ?? xe.default;
|
|
1959
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1940
1960
|
"div",
|
|
1941
1961
|
{
|
|
1942
1962
|
className: [
|
|
@@ -1947,82 +1967,131 @@ function Ke({ data: s, onDismiss: e }) {
|
|
|
1947
1967
|
role: s.type === "error" ? "alert" : "status",
|
|
1948
1968
|
"aria-live": "polite",
|
|
1949
1969
|
children: [
|
|
1950
|
-
/* @__PURE__ */
|
|
1951
|
-
/* @__PURE__ */
|
|
1952
|
-
/* @__PURE__ */
|
|
1970
|
+
/* @__PURE__ */ e.jsx("div", { className: "ds-toast__icon", children: /* @__PURE__ */ e.jsx(i, { size: P[3], strokeWidth: 1.5 }) }),
|
|
1971
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-toast__message", children: s.message }),
|
|
1972
|
+
/* @__PURE__ */ e.jsx(
|
|
1953
1973
|
"button",
|
|
1954
1974
|
{
|
|
1955
1975
|
className: "ds-toast__close",
|
|
1956
1976
|
onClick: n,
|
|
1957
1977
|
"aria-label": "Закрыть",
|
|
1958
|
-
children: /* @__PURE__ */
|
|
1978
|
+
children: /* @__PURE__ */ e.jsx(ee, { size: P[3], strokeWidth: 1.5 })
|
|
1959
1979
|
}
|
|
1960
1980
|
)
|
|
1961
1981
|
]
|
|
1962
1982
|
}
|
|
1963
1983
|
);
|
|
1964
1984
|
}
|
|
1965
|
-
function
|
|
1966
|
-
const [
|
|
1967
|
-
return
|
|
1968
|
-
/* @__PURE__ */
|
|
1985
|
+
function Ht({ position: s = "bottom-right" }) {
|
|
1986
|
+
const [t, r] = R(() => [...Q]);
|
|
1987
|
+
return D(() => (ce.add(r), () => ce.delete(r)), []), !t.length || typeof document > "u" ? null : ne.createPortal(
|
|
1988
|
+
/* @__PURE__ */ e.jsx("div", { className: ["ds-toast-container", `ds-toast-container--${s}`].join(" "), children: t.map((o) => /* @__PURE__ */ e.jsx(Qe, { data: o, onDismiss: Ze }, o.id)) }),
|
|
1969
1989
|
document.body
|
|
1970
1990
|
);
|
|
1971
1991
|
}
|
|
1992
|
+
const et = {
|
|
1993
|
+
running: /* @__PURE__ */ e.jsx(oe, { size: "xs", variant: "info", children: "Running..." }),
|
|
1994
|
+
success: /* @__PURE__ */ e.jsx(oe, { size: "xs", variant: "success", children: "Done" }),
|
|
1995
|
+
error: /* @__PURE__ */ e.jsx(oe, { size: "xs", variant: "error", children: "Error" })
|
|
1996
|
+
};
|
|
1997
|
+
function Kt({
|
|
1998
|
+
label: s,
|
|
1999
|
+
status: t = "idle",
|
|
2000
|
+
icon: r,
|
|
2001
|
+
badge: o,
|
|
2002
|
+
defaultExpanded: a = !1,
|
|
2003
|
+
expanded: n,
|
|
2004
|
+
onToggle: i,
|
|
2005
|
+
padding: l = "s",
|
|
2006
|
+
children: m,
|
|
2007
|
+
...u
|
|
2008
|
+
}) {
|
|
2009
|
+
const f = `tc-body-${ye().replace(/:/g, "")}`, [b, d] = R(a), _ = n !== void 0, w = _ ? n : b, k = () => {
|
|
2010
|
+
_ ? i == null || i(!n) : d((N) => !N);
|
|
2011
|
+
};
|
|
2012
|
+
return /* @__PURE__ */ e.jsxs(Pe, { padding: l, ...u, children: [
|
|
2013
|
+
/* @__PURE__ */ e.jsxs(
|
|
2014
|
+
"button",
|
|
2015
|
+
{
|
|
2016
|
+
type: "button",
|
|
2017
|
+
className: "ds-tool-card__header",
|
|
2018
|
+
onClick: k,
|
|
2019
|
+
"aria-expanded": w,
|
|
2020
|
+
"aria-controls": f,
|
|
2021
|
+
children: [
|
|
2022
|
+
/* @__PURE__ */ e.jsx(
|
|
2023
|
+
je,
|
|
2024
|
+
{
|
|
2025
|
+
size: P[1],
|
|
2026
|
+
strokeWidth: 1.5,
|
|
2027
|
+
className: `ds-tool-card__chevron${w ? " ds-tool-card__chevron--expanded" : ""}`
|
|
2028
|
+
}
|
|
2029
|
+
),
|
|
2030
|
+
r && /* @__PURE__ */ e.jsx("span", { className: "ds-tool-card__icon", children: r }),
|
|
2031
|
+
/* @__PURE__ */ e.jsx("span", { className: "ds-tool-card__label", children: s }),
|
|
2032
|
+
et[t],
|
|
2033
|
+
o
|
|
2034
|
+
]
|
|
2035
|
+
}
|
|
2036
|
+
),
|
|
2037
|
+
w && /* @__PURE__ */ e.jsx("div", { id: f, className: "ds-tool-card__body", children: m })
|
|
2038
|
+
] });
|
|
2039
|
+
}
|
|
1972
2040
|
export {
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
2041
|
+
Nt as Accordion,
|
|
2042
|
+
ht as Alert,
|
|
2043
|
+
Ut as AnimatedNumber,
|
|
2044
|
+
gt as Avatar,
|
|
2045
|
+
oe as Badge,
|
|
2046
|
+
zt as Banner,
|
|
2047
|
+
Mt as Breadcrumb,
|
|
2048
|
+
De as Button,
|
|
2049
|
+
Pe as Card,
|
|
2050
|
+
kt as Checkbox,
|
|
2051
|
+
xt as Code,
|
|
2052
|
+
Le as CodeAccordion,
|
|
2053
|
+
Wt as Drawer,
|
|
1986
2054
|
be as DrawerFooter,
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2055
|
+
Ct as Dropdown,
|
|
2056
|
+
Bt as EmptyState,
|
|
2057
|
+
Ot as FormField,
|
|
2058
|
+
ct as H1,
|
|
2059
|
+
lt as H2,
|
|
2060
|
+
dt as H3,
|
|
2061
|
+
ut as H4,
|
|
2062
|
+
Yt as InView,
|
|
2063
|
+
nt as Input,
|
|
2064
|
+
vt as Link,
|
|
2065
|
+
bt as Modal,
|
|
2066
|
+
he as ModalFooter,
|
|
2067
|
+
ft as P1,
|
|
2068
|
+
mt as P2,
|
|
2069
|
+
pt as P3,
|
|
2070
|
+
Ft as Pagination,
|
|
2071
|
+
Vt as ProgressBar,
|
|
2072
|
+
$t as Radio,
|
|
2073
|
+
wt as SegmentedControl,
|
|
2074
|
+
ot as Select,
|
|
2075
|
+
We as Skeleton,
|
|
2076
|
+
Ae as Spinner,
|
|
2077
|
+
Lt as Stat,
|
|
2078
|
+
it as Stepper,
|
|
2079
|
+
_t as Tab,
|
|
2080
|
+
Rt as Table,
|
|
2081
|
+
It as TableBody,
|
|
2082
|
+
Tt as TableHead,
|
|
2083
|
+
At as TableRow,
|
|
2084
|
+
St as TableSubheaderRow,
|
|
2085
|
+
jt as Tabs,
|
|
2086
|
+
Pt as Td,
|
|
2087
|
+
at as Textarea,
|
|
2088
|
+
Dt as Th,
|
|
2089
|
+
Ht as ToastContainer,
|
|
2090
|
+
Et as Toggle,
|
|
2091
|
+
Kt as ToolCallCard,
|
|
2092
|
+
yt as Tooltip,
|
|
2093
|
+
P as iconSizes,
|
|
2094
|
+
Ge as useAnimatedNumber,
|
|
2095
|
+
Xe as useInView,
|
|
2096
|
+
qt as useToast
|
|
2028
2097
|
};
|