@donkit-ai/design-system 1.1.26 → 1.1.27

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.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import L, { useState as g, useRef as R, useEffect as P, useLayoutEffect as ve } from "react";
2
- import Q from "react-dom";
3
- import { ChevronDown as ee, Minus as _e, Plus as je, XCircle as fe, AlertTriangle as me, CheckCircle as pe, Info as he, X as ce, Check as we, ChevronUp as Ne, ChevronsUpDown as ye } from "lucide-react";
1
+ import L, { useState as T, useRef as R, useEffect as P, useLayoutEffect as _e } from "react";
2
+ import { Check as fe, X as Q, ChevronDown as ee, Minus as je, Plus as we, XCircle as me, AlertTriangle as pe, CheckCircle as he, Info as be, ChevronUp as Ne, ChevronsUpDown as ye } from "lucide-react";
3
+ import te from "react-dom";
4
4
  const O = {
5
5
  1: 16,
6
6
  2: 20,
@@ -8,7 +8,7 @@ const O = {
8
8
  4: 28,
9
9
  5: 48
10
10
  };
11
- var ae = { exports: {} }, G = {};
11
+ var oe = { exports: {} }, G = {};
12
12
  /**
13
13
  * @license React
14
14
  * react-jsx-runtime.production.js
@@ -51,7 +51,7 @@ var X = {};
51
51
  * LICENSE file in the root directory of this source tree.
52
52
  */
53
53
  var le;
54
- function Re() {
54
+ function ke() {
55
55
  return le || (le = 1, process.env.NODE_ENV !== "production" && function() {
56
56
  function t(c) {
57
57
  if (c == null) return null;
@@ -61,15 +61,15 @@ function Re() {
61
61
  switch (c) {
62
62
  case y:
63
63
  return "Fragment";
64
- case T:
64
+ case S:
65
65
  return "Profiler";
66
66
  case E:
67
67
  return "StrictMode";
68
- case W:
68
+ case C:
69
69
  return "Suspense";
70
- case x:
70
+ case h:
71
71
  return "SuspenseList";
72
- case D:
72
+ case F:
73
73
  return "Activity";
74
74
  }
75
75
  if (typeof c == "object")
@@ -78,14 +78,14 @@ function Re() {
78
78
  ), c.$$typeof) {
79
79
  case _:
80
80
  return "Portal";
81
- case I:
81
+ case k:
82
82
  return c.displayName || "Context";
83
- case w:
83
+ case I:
84
84
  return (c._context.displayName || "Context") + ".Consumer";
85
- case V:
85
+ case D:
86
86
  var b = c.render;
87
87
  return c = c.displayName, c || (c = b.displayName || b.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
88
- case S:
88
+ case j:
89
89
  return b = c.displayName || null, b !== null ? b : t(c.type) || "Memo";
90
90
  case A:
91
91
  b = c._payload, c = c._init;
@@ -143,7 +143,7 @@ function Re() {
143
143
  }
144
144
  function l(c, b) {
145
145
  function N() {
146
- F || (F = !0, console.error(
146
+ W || (W = !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
  b
149
149
  ));
@@ -159,15 +159,15 @@ function Re() {
159
159
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
160
160
  )), c = this.props.ref, c !== void 0 ? c : null;
161
161
  }
162
- function u(c, b, N, $, Z, re) {
163
- var k = N.ref;
162
+ function u(c, b, N, $, Z, ne) {
163
+ var g = N.ref;
164
164
  return c = {
165
165
  $$typeof: v,
166
166
  type: c,
167
167
  key: b,
168
168
  props: N,
169
169
  _owner: $
170
- }, (k !== void 0 ? k : null) !== null ? Object.defineProperty(c, "ref", {
170
+ }, (g !== void 0 ? g : null) !== null ? Object.defineProperty(c, "ref", {
171
171
  enumerable: !1,
172
172
  get: m
173
173
  }) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
@@ -189,28 +189,28 @@ function Re() {
189
189
  configurable: !1,
190
190
  enumerable: !1,
191
191
  writable: !0,
192
- value: re
192
+ value: ne
193
193
  }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
194
194
  }
195
- function f(c, b, N, $, Z, re) {
196
- var k = b.children;
197
- if (k !== void 0)
195
+ function f(c, b, N, $, Z, ne) {
196
+ var g = b.children;
197
+ if (g !== void 0)
198
198
  if ($)
199
- if (te(k)) {
200
- for ($ = 0; $ < k.length; $++)
201
- p(k[$]);
202
- Object.freeze && Object.freeze(k);
199
+ if (se(g)) {
200
+ for ($ = 0; $ < g.length; $++)
201
+ p(g[$]);
202
+ Object.freeze && Object.freeze(g);
203
203
  } else
204
204
  console.error(
205
205
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
206
206
  );
207
- else p(k);
207
+ else p(g);
208
208
  if (J.call(b, "key")) {
209
- k = t(c);
210
- var z = Object.keys(b).filter(function(xe) {
211
- return xe !== "key";
209
+ g = t(c);
210
+ var z = Object.keys(b).filter(function(ve) {
211
+ return ve !== "key";
212
212
  });
213
- $ = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", H[k + $] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
213
+ $ = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", H[g + $] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
214
214
  `A props object containing a "key" prop is being spread into JSX:
215
215
  let props = %s;
216
216
  <%s {...props} />
@@ -218,35 +218,35 @@ React keys must be passed directly to JSX without using spread:
218
218
  let props = %s;
219
219
  <%s key={someKey} {...props} />`,
220
220
  $,
221
- k,
221
+ g,
222
222
  z,
223
- k
224
- ), H[k + $] = !0);
223
+ g
224
+ ), H[g + $] = !0);
225
225
  }
226
- if (k = null, N !== void 0 && (r(N), k = "" + N), i(b) && (r(b.key), k = "" + b.key), "key" in b) {
226
+ if (g = null, N !== void 0 && (r(N), g = "" + N), i(b) && (r(b.key), g = "" + b.key), "key" in b) {
227
227
  N = {};
228
- for (var ne in b)
229
- ne !== "key" && (N[ne] = b[ne]);
228
+ for (var ae in b)
229
+ ae !== "key" && (N[ae] = b[ae]);
230
230
  } else N = b;
231
- return k && l(
231
+ return g && l(
232
232
  N,
233
233
  typeof c == "function" ? c.displayName || c.name || "Unknown" : c
234
234
  ), u(
235
235
  c,
236
- k,
236
+ g,
237
237
  N,
238
238
  n(),
239
239
  Z,
240
- re
240
+ ne
241
241
  );
242
242
  }
243
243
  function p(c) {
244
- h(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === A && (c._payload.status === "fulfilled" ? h(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
244
+ x(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === A && (c._payload.status === "fulfilled" ? x(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
245
245
  }
246
- function h(c) {
246
+ function x(c) {
247
247
  return typeof c == "object" && c !== null && c.$$typeof === v;
248
248
  }
249
- var d = L, v = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), I = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), W = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), M = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, te = Array.isArray, j = console.createTask ? console.createTask : function() {
249
+ var d = L, v = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), k = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), M = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, se = Array.isArray, w = console.createTask ? console.createTask : function() {
250
250
  return null;
251
251
  };
252
252
  d = {
@@ -254,10 +254,10 @@ React keys must be passed directly to JSX without using spread:
254
254
  return c();
255
255
  }
256
256
  };
257
- var F, q = {}, K = d.react_stack_bottom_frame.bind(
257
+ var W, q = {}, K = d.react_stack_bottom_frame.bind(
258
258
  d,
259
259
  a
260
- )(), se = j(o(a)), H = {};
260
+ )(), re = w(o(a)), H = {};
261
261
  X.Fragment = y, X.jsx = function(c, b, N) {
262
262
  var $ = 1e4 > M.recentlyCreatedOwnerStacks++;
263
263
  return f(
@@ -266,7 +266,7 @@ React keys must be passed directly to JSX without using spread:
266
266
  N,
267
267
  !1,
268
268
  $ ? Error("react-stack-top-frame") : K,
269
- $ ? j(o(c)) : se
269
+ $ ? w(o(c)) : re
270
270
  );
271
271
  }, X.jsxs = function(c, b, N) {
272
272
  var $ = 1e4 > M.recentlyCreatedOwnerStacks++;
@@ -276,14 +276,14 @@ React keys must be passed directly to JSX without using spread:
276
276
  N,
277
277
  !0,
278
278
  $ ? Error("react-stack-top-frame") : K,
279
- $ ? j(o(c)) : se
279
+ $ ? w(o(c)) : re
280
280
  );
281
281
  };
282
282
  }()), X;
283
283
  }
284
- process.env.NODE_ENV === "production" ? ae.exports = Ee() : ae.exports = Re();
285
- var s = ae.exports;
286
- function $e({ size: t = "m", color: e = "default", className: r = "", ...o }) {
284
+ process.env.NODE_ENV === "production" ? oe.exports = Ee() : oe.exports = ke();
285
+ var s = oe.exports;
286
+ function Re({ size: t = "m", color: e = "default", className: r = "", ...o }) {
287
287
  return /* @__PURE__ */ s.jsx(
288
288
  "span",
289
289
  {
@@ -294,7 +294,8 @@ function $e({ size: t = "m", color: e = "default", className: r = "", ...o }) {
294
294
  }
295
295
  );
296
296
  }
297
- function ke({
297
+ const $e = { xs: 12, s: 14, m: 16, l: 20 };
298
+ function ge({
298
299
  children: t,
299
300
  variant: e = "primary",
300
301
  size: r = "m",
@@ -308,38 +309,36 @@ function ke({
308
309
  "aria-label": f,
309
310
  ...p
310
311
  }) {
311
- const h = n && !t, d = i === "loading", v = r === "l" ? "s" : "xs", _ = [
312
+ const x = n && !t, d = i === "loading", v = i === "success", _ = i === "error", y = d || v || _, E = r === "l" ? "s" : "xs", S = $e[r] ?? 16, I = d ? /* @__PURE__ */ s.jsx(Re, { size: E }) : v ? /* @__PURE__ */ s.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ s.jsx(fe, { size: S, strokeWidth: 2.5 }) }) : _ ? /* @__PURE__ */ s.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ s.jsx(Q, { size: S, strokeWidth: 2.5 }) }) : null, k = [
312
313
  "ds-button",
313
314
  `ds-button--${e}`,
314
315
  `ds-button--${r}`,
315
316
  o && "ds-button--full",
316
- h && "ds-button--icon-only"
317
- ].filter(Boolean).join(" "), y = i !== "idle" ? i : void 0, E = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
318
- d && /* @__PURE__ */ s.jsx($e, { size: v }),
319
- !d && n && !h && /* @__PURE__ */ s.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: n }),
320
- t,
321
- !d && h && /* @__PURE__ */ s.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: n })
317
+ x && "ds-button--icon-only"
318
+ ].filter(Boolean).join(" "), D = i !== "idle" ? i : void 0, C = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
319
+ y ? I : n && /* @__PURE__ */ s.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: n }),
320
+ t
322
321
  ] });
323
322
  if (u) {
324
- const T = (w) => {
323
+ const h = (j) => {
325
324
  if (a || d) {
326
- w.preventDefault();
325
+ j.preventDefault();
327
326
  return;
328
327
  }
329
- w.metaKey || w.ctrlKey || w.button === 1 || (w.preventDefault(), l == null || l(w));
328
+ j.metaKey || j.ctrlKey || j.button === 1 || (j.preventDefault(), l == null || l(j));
330
329
  };
331
330
  return /* @__PURE__ */ s.jsx(
332
331
  "a",
333
332
  {
334
- className: _,
333
+ className: k,
335
334
  href: a || d ? void 0 : u,
336
- onClick: T,
335
+ onClick: h,
337
336
  "aria-label": f,
338
337
  "aria-disabled": a || d ? "true" : void 0,
339
338
  "aria-busy": d ? "true" : void 0,
340
- "data-state": y,
339
+ "data-state": D,
341
340
  ...p,
342
- children: E
341
+ children: C
343
342
  }
344
343
  );
345
344
  }
@@ -347,18 +346,18 @@ function ke({
347
346
  "button",
348
347
  {
349
348
  type: m,
350
- className: _,
349
+ className: k,
351
350
  disabled: a,
352
351
  onClick: d ? void 0 : l,
353
352
  "aria-label": f,
354
353
  "aria-busy": d ? "true" : void 0,
355
- "data-state": y,
354
+ "data-state": D,
356
355
  ...p,
357
- children: E
356
+ children: C
358
357
  }
359
358
  );
360
359
  }
361
- function Ue({
360
+ function qe({
362
361
  label: t,
363
362
  error: e,
364
363
  hint: r,
@@ -371,7 +370,7 @@ function Ue({
371
370
  id: u,
372
371
  ...f
373
372
  }) {
374
- const p = u || `input-${L.useId()}`, h = r ? `${p}-hint` : void 0, d = e ? `${p}-error` : void 0, v = d || h;
373
+ const p = u || `input-${L.useId()}`, x = r ? `${p}-hint` : void 0, d = e ? `${p}-error` : void 0, v = d || x;
375
374
  return /* @__PURE__ */ s.jsxs("div", { className: `ds-input-wrapper ${o ? "ds-input-wrapper--full" : ""} ${m ? "ds-input-wrapper--disabled" : ""} ${e ? "ds-input-wrapper--error" : ""}`, children: [
376
375
  t && /* @__PURE__ */ s.jsx("label", { className: "ds-input-label", htmlFor: p, children: t }),
377
376
  /* @__PURE__ */ s.jsxs("div", { className: "ds-input-container", children: [
@@ -399,11 +398,11 @@ function Ue({
399
398
  }
400
399
  )
401
400
  ] }),
402
- r && !e && /* @__PURE__ */ s.jsx("span", { id: h, className: "ds-input-hint", children: r }),
401
+ r && !e && /* @__PURE__ */ s.jsx("span", { id: x, className: "ds-input-hint", children: r }),
403
402
  /* @__PURE__ */ s.jsx("div", { className: "ds-input-error-wrap", children: /* @__PURE__ */ s.jsx("div", { className: "ds-input-error-inner", children: e && /* @__PURE__ */ s.jsx("span", { id: d, className: "ds-input-error", role: "alert", children: e }) }) })
404
403
  ] });
405
404
  }
406
- function qe({
405
+ function He({
407
406
  label: t,
408
407
  error: e,
409
408
  hint: r,
@@ -415,7 +414,7 @@ function qe({
415
414
  rows: m = 3,
416
415
  ...u
417
416
  }) {
418
- const f = i || `textarea-${L.useId()}`, p = r ? `${f}-hint` : void 0, h = e ? `${f}-error` : void 0, d = h || p;
417
+ const f = i || `textarea-${L.useId()}`, p = r ? `${f}-hint` : void 0, x = e ? `${f}-error` : void 0, d = x || p;
419
418
  return /* @__PURE__ */ s.jsxs("div", { className: `ds-textarea-wrapper ${o ? "ds-textarea-wrapper--full" : ""} ${a ? "ds-textarea-wrapper--disabled" : ""}`, children: [
420
419
  t && /* @__PURE__ */ s.jsx("label", { className: "ds-textarea-label", htmlFor: f, children: t }),
421
420
  /* @__PURE__ */ s.jsx(
@@ -431,10 +430,10 @@ function qe({
431
430
  }
432
431
  ),
433
432
  r && !e && /* @__PURE__ */ s.jsx("span", { id: p, className: "ds-textarea-hint", children: r }),
434
- e && /* @__PURE__ */ s.jsx("span", { id: h, className: "ds-textarea-error", role: "alert", children: e })
433
+ e && /* @__PURE__ */ s.jsx("span", { id: x, className: "ds-textarea-error", role: "alert", children: e })
435
434
  ] });
436
435
  }
437
- function He({
436
+ function Ge({
438
437
  label: t,
439
438
  value: e,
440
439
  onChange: r,
@@ -447,19 +446,19 @@ function He({
447
446
  id: u,
448
447
  ...f
449
448
  }) {
450
- const [p, h] = g(!1), [d, v] = g(!1), [_, y] = g({}), [E, T] = g("down"), w = R(null), I = R(null), V = R(null), W = u || `select-${L.useId()}`, x = `${W}-label`, S = a ? `${W}-error` : void 0, A = 150, D = () => {
451
- d || (v(!0), V.current = setTimeout(() => {
452
- h(!1), v(!1);
449
+ const [p, x] = T(!1), [d, v] = T(!1), [_, y] = T({}), [E, S] = T("down"), I = R(null), k = R(null), D = R(null), C = u || `select-${L.useId()}`, h = `${C}-label`, j = a ? `${C}-error` : void 0, A = 150, F = () => {
450
+ d || (v(!0), D.current = setTimeout(() => {
451
+ x(!1), v(!1);
453
452
  }, A));
454
453
  };
455
- P(() => () => clearTimeout(V.current), []);
454
+ P(() => () => clearTimeout(D.current), []);
456
455
  const B = () => {
457
456
  var c;
458
- const j = (c = w.current) == null ? void 0 : c.getBoundingClientRect();
459
- if (!j) return;
460
- const F = window.innerHeight, q = F - j.bottom, K = j.top, H = q < 300 && K > q;
461
- T(H ? "up" : "down"), y(
462
- H ? { bottom: F - j.top + 4, left: j.left, width: j.width } : { top: j.bottom + 4, left: j.left, width: j.width }
457
+ const w = (c = I.current) == null ? void 0 : c.getBoundingClientRect();
458
+ if (!w) return;
459
+ const W = window.innerHeight, q = W - w.bottom, K = w.top, H = q < 300 && K > q;
460
+ S(H ? "up" : "down"), y(
461
+ H ? { bottom: W - w.top + 4, left: w.left, width: w.width } : { top: w.bottom + 4, left: w.left, width: w.width }
463
462
  );
464
463
  };
465
464
  P(() => {
@@ -468,17 +467,17 @@ function He({
468
467
  window.removeEventListener("scroll", B, !0), window.removeEventListener("resize", B);
469
468
  };
470
469
  }, [p]), P(() => {
471
- const j = (F) => {
472
- w.current && !w.current.contains(F.target) && I.current && !I.current.contains(F.target) && D();
470
+ const w = (W) => {
471
+ I.current && !I.current.contains(W.target) && k.current && !k.current.contains(W.target) && F();
473
472
  };
474
- return document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j);
473
+ return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
475
474
  }, [d]);
476
- const M = o.find((j) => j.value === e), J = l === "xs" ? O[1] : l === "small" ? O[2] : O[3], te = p && /* @__PURE__ */ s.jsx(
475
+ const M = o.find((w) => w.value === e), J = l === "xs" ? O[1] : l === "small" ? O[2] : O[3], se = p && /* @__PURE__ */ s.jsx(
477
476
  "div",
478
477
  {
479
- ref: I,
478
+ ref: k,
480
479
  role: "listbox",
481
- "aria-labelledby": t ? x : void 0,
480
+ "aria-labelledby": t ? h : void 0,
482
481
  className: [
483
482
  "ds-select-dropdown",
484
483
  `ds-select-dropdown--${l}`,
@@ -486,38 +485,38 @@ function He({
486
485
  d && "ds-select-dropdown--closing"
487
486
  ].filter(Boolean).join(" "),
488
487
  style: _,
489
- children: o.map((j) => /* @__PURE__ */ s.jsx(
488
+ children: o.map((w) => /* @__PURE__ */ s.jsx(
490
489
  "button",
491
490
  {
492
491
  type: "button",
493
492
  role: "option",
494
- "aria-selected": e === j.value,
495
- className: `ds-select-option ds-select-option--${l} ${e === j.value ? "ds-select-option--selected" : ""}`,
493
+ "aria-selected": e === w.value,
494
+ className: `ds-select-option ds-select-option--${l} ${e === w.value ? "ds-select-option--selected" : ""}`,
496
495
  onClick: () => {
497
- r == null || r(j.value), D();
496
+ r == null || r(w.value), F();
498
497
  },
499
- children: j.label
498
+ children: w.label
500
499
  },
501
- j.value
500
+ w.value
502
501
  ))
503
502
  }
504
503
  );
505
504
  return /* @__PURE__ */ s.jsxs("div", { className: `ds-select-wrapper ${i ? "ds-select-wrapper--full" : ""} ${m ? "ds-select-wrapper--disabled" : ""}`, children: [
506
- t && /* @__PURE__ */ s.jsx("label", { id: x, className: "ds-select-label", children: t }),
507
- /* @__PURE__ */ s.jsx("div", { className: "ds-select-container", ref: w, children: /* @__PURE__ */ s.jsxs(
505
+ t && /* @__PURE__ */ s.jsx("label", { id: h, className: "ds-select-label", children: t }),
506
+ /* @__PURE__ */ s.jsx("div", { className: "ds-select-container", ref: I, children: /* @__PURE__ */ s.jsxs(
508
507
  "button",
509
508
  {
510
509
  type: "button",
511
- id: W,
510
+ id: C,
512
511
  role: "combobox",
513
512
  "aria-haspopup": "listbox",
514
513
  "aria-expanded": p,
515
- "aria-labelledby": t ? x : void 0,
514
+ "aria-labelledby": t ? h : void 0,
516
515
  "aria-invalid": a ? "true" : "false",
517
- "aria-describedby": S,
516
+ "aria-describedby": j,
518
517
  className: `ds-select-trigger ds-select-trigger--${l} ${a ? "ds-select-trigger--error" : ""}`,
519
518
  onClick: () => {
520
- m || (p ? D() : (clearTimeout(V.current), v(!1), h(!0)));
519
+ m || (p ? F() : (clearTimeout(D.current), v(!1), x(!0)));
521
520
  },
522
521
  disabled: m,
523
522
  ...f,
@@ -535,11 +534,11 @@ function He({
535
534
  ]
536
535
  }
537
536
  ) }),
538
- a && /* @__PURE__ */ s.jsx("span", { id: S, className: "ds-select-error", role: "alert", children: a }),
539
- typeof document < "u" && Q.createPortal(te, document.body)
537
+ a && /* @__PURE__ */ s.jsx("span", { id: j, className: "ds-select-error", role: "alert", children: a }),
538
+ typeof document < "u" && te.createPortal(se, document.body)
540
539
  ] });
541
540
  }
542
- function Ge({
541
+ function Xe({
543
542
  label: t,
544
543
  value: e = 0,
545
544
  onChange: r,
@@ -556,21 +555,21 @@ function Ge({
556
555
  if (l) return;
557
556
  const E = Math.min(Number(e) + a, n);
558
557
  r == null || r(E);
559
- }, h = () => {
558
+ }, x = () => {
560
559
  if (l) return;
561
560
  const E = Math.max(Number(e) - a, o);
562
561
  r == null || r(E);
563
562
  }, d = (E) => {
564
563
  if (l) return;
565
- const T = E.target.value;
566
- if (T === "") {
564
+ const S = E.target.value;
565
+ if (S === "") {
567
566
  r == null || r(o);
568
567
  return;
569
568
  }
570
- const w = Number(T);
571
- if (!isNaN(w)) {
572
- const I = Math.min(Math.max(w, o), n);
573
- r == null || r(I);
569
+ const I = Number(S);
570
+ if (!isNaN(I)) {
571
+ const k = Math.min(Math.max(I, o), n);
572
+ r == null || r(k);
574
573
  }
575
574
  }, v = [
576
575
  "ds-stepper-wrapper",
@@ -589,10 +588,10 @@ function Ge({
589
588
  {
590
589
  type: "button",
591
590
  className: "ds-stepper-button ds-stepper-button--minus",
592
- onClick: h,
591
+ onClick: x,
593
592
  disabled: l || e <= o,
594
593
  "aria-label": "Decrease",
595
- children: /* @__PURE__ */ s.jsx(_e, { size: y, strokeWidth: 1.5 })
594
+ children: /* @__PURE__ */ s.jsx(je, { size: y, strokeWidth: 1.5 })
596
595
  }
597
596
  ),
598
597
  /* @__PURE__ */ s.jsx(
@@ -617,7 +616,7 @@ function Ge({
617
616
  onClick: p,
618
617
  disabled: l || e >= n,
619
618
  "aria-label": "Increase",
620
- children: /* @__PURE__ */ s.jsx(je, { size: y, strokeWidth: 1.5 })
619
+ children: /* @__PURE__ */ s.jsx(we, { size: y, strokeWidth: 1.5 })
621
620
  }
622
621
  )
623
622
  ] }),
@@ -625,7 +624,7 @@ function Ge({
625
624
  u && /* @__PURE__ */ s.jsx("div", { className: "ds-stepper-error", children: u })
626
625
  ] });
627
626
  }
628
- function Xe({
627
+ function Je({
629
628
  children: t,
630
629
  padding: e = "m",
631
630
  variant: r = "info",
@@ -661,7 +660,7 @@ function Xe({
661
660
  }
662
661
  );
663
662
  }
664
- const p = u && n ? "button" : "div", h = u && n ? {
663
+ const p = u && n ? "button" : "div", x = u && n ? {
665
664
  type: "button",
666
665
  onClick: n,
667
666
  disabled: i
@@ -671,34 +670,34 @@ function Xe({
671
670
  {
672
671
  className: f,
673
672
  role: u && !n ? "article" : void 0,
674
- ...h,
673
+ ...x,
675
674
  ...l,
676
675
  children: t
677
676
  }
678
677
  );
679
678
  }
680
- function Je({ children: t, ...e }) {
679
+ function Ke({ children: t, ...e }) {
681
680
  return /* @__PURE__ */ s.jsx("h1", { className: "ds-h1", ...e, children: t });
682
681
  }
683
- function Ke({ children: t, ...e }) {
682
+ function Ze({ children: t, ...e }) {
684
683
  return /* @__PURE__ */ s.jsx("h2", { className: "ds-h2", ...e, children: t });
685
684
  }
686
- function Ze({ children: t, ...e }) {
685
+ function Qe({ children: t, ...e }) {
687
686
  return /* @__PURE__ */ s.jsx("h3", { className: "ds-h3", ...e, children: t });
688
687
  }
689
- function Qe({ children: t, ...e }) {
688
+ function et({ children: t, ...e }) {
690
689
  return /* @__PURE__ */ s.jsx("h4", { className: "ds-h4", ...e, children: t });
691
690
  }
692
- function et({ children: t, secondary: e = !1, ...r }) {
691
+ function tt({ children: t, secondary: e = !1, ...r }) {
693
692
  return /* @__PURE__ */ s.jsx("p", { className: `ds-p1 ${e ? "ds-p1--secondary" : ""}`, ...r, children: t });
694
693
  }
695
- function tt({ children: t, secondary: e = !1, ...r }) {
694
+ function st({ children: t, secondary: e = !1, ...r }) {
696
695
  return /* @__PURE__ */ s.jsx("p", { className: `ds-p2 ${e ? "ds-p2--secondary" : ""}`, ...r, children: t });
697
696
  }
698
- function st({ children: t, secondary: e = !1, ...r }) {
697
+ function rt({ children: t, secondary: e = !1, ...r }) {
699
698
  return /* @__PURE__ */ s.jsx("p", { className: `ds-p3 ${e ? "ds-p3--secondary" : ""}`, ...r, children: t });
700
699
  }
701
- function rt({
700
+ function nt({
702
701
  children: t,
703
702
  variant: e = "default",
704
703
  size: r = "m",
@@ -712,13 +711,13 @@ function rt({
712
711
  ].filter(Boolean).join(" "), i = o || (["info", "success", "warning", "error"].includes(e) ? "status" : void 0);
713
712
  return /* @__PURE__ */ s.jsx("span", { className: a, role: i, ...n, children: t });
714
713
  }
715
- const ge = {
716
- info: he,
717
- success: pe,
718
- warning: me,
719
- error: fe
714
+ const Te = {
715
+ info: be,
716
+ success: he,
717
+ warning: pe,
718
+ error: me
720
719
  };
721
- function nt({
720
+ function at({
722
721
  children: t,
723
722
  variant: e = "info",
724
723
  title: r,
@@ -726,7 +725,7 @@ function nt({
726
725
  role: n,
727
726
  ...a
728
727
  }) {
729
- const i = ge[e], l = n || (e === "error" ? "alert" : "status");
728
+ const i = Te[e], l = n || (e === "error" ? "alert" : "status");
730
729
  return /* @__PURE__ */ s.jsxs("div", { className: `ds-alert ds-alert--${e} ${r ? "" : "ds-alert--no-title"}`, role: l, ...a, children: [
731
730
  i && /* @__PURE__ */ s.jsx("div", { className: "ds-alert__icon", children: /* @__PURE__ */ s.jsx(i, { size: O[3], strokeWidth: 1.5 }) }),
732
731
  /* @__PURE__ */ s.jsxs("div", { className: "ds-alert__content", children: [
@@ -740,23 +739,23 @@ function nt({
740
739
  className: "ds-alert__close",
741
740
  onClick: o,
742
741
  "aria-label": "Close alert",
743
- children: /* @__PURE__ */ s.jsx(ce, { size: O[3], strokeWidth: 1.5 })
742
+ children: /* @__PURE__ */ s.jsx(Q, { size: O[3], strokeWidth: 1.5 })
744
743
  }
745
744
  )
746
745
  ] });
747
746
  }
748
- const Te = 200;
749
- function at({
747
+ const Se = 200;
748
+ function ot({
750
749
  children: t,
751
750
  title: e,
752
751
  onClose: r,
753
752
  size: o = "m",
754
753
  ...n
755
754
  }) {
756
- const a = R(null), i = L.useId(), [l, m] = g(!1), u = () => {
755
+ const a = R(null), i = L.useId(), [l, m] = T(!1), u = () => {
757
756
  !r || l || (m(!0), setTimeout(() => {
758
757
  m(!1), r();
759
- }, Te));
758
+ }, Se));
760
759
  };
761
760
  P(() => {
762
761
  const d = (_) => {
@@ -768,7 +767,7 @@ function at({
768
767
  document.removeEventListener("keydown", d), document.removeEventListener("mousedown", v);
769
768
  };
770
769
  }, [r, l]);
771
- const f = L.Children.toArray(t), p = f.find((d) => (d == null ? void 0 : d.type) === de), h = f.filter((d) => (d == null ? void 0 : d.type) !== de);
770
+ const f = L.Children.toArray(t), p = f.find((d) => (d == null ? void 0 : d.type) === de), x = f.filter((d) => (d == null ? void 0 : d.type) !== de);
772
771
  return /* @__PURE__ */ s.jsx("div", { className: ["ds-modal-overlay", l && "ds-modal-overlay--closing"].filter(Boolean).join(" "), ...n, children: /* @__PURE__ */ s.jsxs(
773
772
  "div",
774
773
  {
@@ -781,17 +780,17 @@ function at({
781
780
  (e || r) && /* @__PURE__ */ s.jsxs("div", { className: "ds-modal__header", children: [
782
781
  e && /* @__PURE__ */ s.jsx("h3", { id: i, className: "ds-modal__title", children: e }),
783
782
  r && /* @__PURE__ */ s.jsx(
784
- ke,
783
+ ge,
785
784
  {
786
785
  variant: "ghost",
787
786
  size: "small",
788
- icon: /* @__PURE__ */ s.jsx(ce, { size: O[2], strokeWidth: 1.5 }),
787
+ icon: /* @__PURE__ */ s.jsx(Q, { size: O[2], strokeWidth: 1.5 }),
789
788
  onClick: u,
790
789
  "aria-label": "Close modal"
791
790
  }
792
791
  )
793
792
  ] }),
794
- /* @__PURE__ */ s.jsx("div", { className: "ds-modal__body", children: h }),
793
+ /* @__PURE__ */ s.jsx("div", { className: "ds-modal__body", children: x }),
795
794
  p
796
795
  ]
797
796
  }
@@ -810,7 +809,7 @@ function Ie({
810
809
  className: i = "",
811
810
  ...l
812
811
  }) {
813
- const [m, u] = g(r), f = o !== void 0, p = f ? o : m, h = () => {
812
+ const [m, u] = T(r), f = o !== void 0, p = f ? o : m, x = () => {
814
813
  f ? n == null || n(!o) : u((v) => !v);
815
814
  }, d = [
816
815
  "ds-code-accordion",
@@ -824,7 +823,7 @@ function Ie({
824
823
  {
825
824
  type: "button",
826
825
  className: "ds-code-accordion__header",
827
- onClick: h,
826
+ onClick: x,
828
827
  "aria-expanded": p,
829
828
  children: [
830
829
  /* @__PURE__ */ s.jsx("span", { className: "ds-code-accordion__title", children: e }),
@@ -842,10 +841,10 @@ function Ie({
842
841
  /* @__PURE__ */ s.jsx("div", { className: "ds-code-accordion__content", children: /* @__PURE__ */ s.jsx("div", { className: "ds-code-accordion__inner", children: /* @__PURE__ */ s.jsx("pre", { className: "ds-code-accordion__pre", children: /* @__PURE__ */ s.jsx("code", { children: t }) }) }) })
843
842
  ] });
844
843
  }
845
- function ot({ children: t, block: e = !1, collapsible: r = !1, title: o = "Code", defaultExpanded: n = !1, ...a }) {
844
+ function ct({ children: t, block: e = !1, collapsible: r = !1, title: o = "Code", defaultExpanded: n = !1, ...a }) {
846
845
  return e ? r ? /* @__PURE__ */ s.jsx(Ie, { title: o, defaultExpanded: n, ...a, children: t }) : /* @__PURE__ */ s.jsx("pre", { className: "ds-code-block", ...a, children: /* @__PURE__ */ s.jsx("code", { children: t }) }) : /* @__PURE__ */ s.jsx("code", { className: "ds-code-inline", ...a, children: t });
847
846
  }
848
- function ct({ href: t, children: e, onClick: r, target: o, rel: n, ...a }) {
847
+ function it({ href: t, children: e, onClick: r, target: o, rel: n, ...a }) {
849
848
  const l = o === "_blank" ? n ? `${n} noopener noreferrer` : "noopener noreferrer" : n;
850
849
  return /* @__PURE__ */ s.jsx(
851
850
  "a",
@@ -860,10 +859,10 @@ function ct({ href: t, children: e, onClick: r, target: o, rel: n, ...a }) {
860
859
  }
861
860
  );
862
861
  }
863
- function it({ children: t, size: e = "m", variant: r = "ghost", ...o }) {
862
+ function lt({ children: t, size: e = "m", variant: r = "ghost", ...o }) {
864
863
  return /* @__PURE__ */ s.jsx("div", { className: "ds-tabs", role: "tablist", ...o, children: L.Children.map(t, (n) => L.isValidElement(n) ? L.cloneElement(n, { size: e, variant: r }) : n) });
865
864
  }
866
- function lt({ children: t, selected: e = !1, onClick: r, size: o = "m", variant: n = "ghost", disabled: a = !1, icon: i, href: l, ...m }) {
865
+ function dt({ children: t, selected: e = !1, onClick: r, size: o = "m", variant: n = "ghost", disabled: a = !1, icon: i, href: l, ...m }) {
867
866
  const u = i && !t, f = [
868
867
  "ds-tab",
869
868
  `ds-tab--${o}`,
@@ -875,7 +874,7 @@ function lt({ children: t, selected: e = !1, onClick: r, size: o = "m", variant:
875
874
  t
876
875
  ] });
877
876
  if (l) {
878
- const h = (d) => {
877
+ const x = (d) => {
879
878
  if (a) {
880
879
  d.preventDefault();
881
880
  return;
@@ -890,7 +889,7 @@ function lt({ children: t, selected: e = !1, onClick: r, size: o = "m", variant:
890
889
  "aria-disabled": a ? "true" : void 0,
891
890
  className: f,
892
891
  href: a ? void 0 : l,
893
- onClick: h,
892
+ onClick: x,
894
893
  ...m,
895
894
  children: p
896
895
  }
@@ -909,23 +908,23 @@ function lt({ children: t, selected: e = !1, onClick: r, size: o = "m", variant:
909
908
  }
910
909
  );
911
910
  }
912
- function dt({ options: t, value: e, onChange: r, size: o = "m", disabled: n = !1 }) {
913
- const a = R(null), i = R(null), [l, m] = g(!1), u = R(!1), f = R(null), p = R(null), h = () => {
911
+ function ut({ options: t, value: e, onChange: r, size: o = "m", disabled: n = !1 }) {
912
+ const a = R(null), i = R(null), [l, m] = T(!1), u = R(!1), f = R(null), p = R(null), x = () => {
914
913
  if (!a.current) return;
915
914
  const d = a.current.querySelector(`[data-value="${e}"]`);
916
915
  if (!d) return;
917
916
  const v = a.current.getBoundingClientRect(), _ = d.getBoundingClientRect(), y = _.left - v.left, E = _.width;
918
917
  i.current ? (i.current.style.transition = u.current ? "left var(--transition-normal), width var(--transition-normal)" : "none", i.current.style.left = y + "px", i.current.style.width = E + "px", u.current = !1) : (m(!0), requestAnimationFrame(() => {
919
918
  if (!i.current || !a.current) return;
920
- const T = a.current.querySelector(`[data-value="${e}"]`);
921
- if (!T) return;
922
- const w = a.current.getBoundingClientRect(), I = T.getBoundingClientRect();
923
- i.current.style.transition = "none", i.current.style.left = I.left - w.left + "px", i.current.style.width = I.width + "px";
919
+ const S = a.current.querySelector(`[data-value="${e}"]`);
920
+ if (!S) return;
921
+ const I = a.current.getBoundingClientRect(), k = S.getBoundingClientRect();
922
+ i.current.style.transition = "none", i.current.style.left = k.left - I.left + "px", i.current.style.width = k.width + "px";
924
923
  }));
925
924
  };
926
- return p.current = h, ve(() => {
925
+ return p.current = x, _e(() => {
927
926
  const d = f.current !== e;
928
- f.current = e, u.current = l && d, h();
927
+ f.current = e, u.current = l && d, x();
929
928
  }), P(() => {
930
929
  if (!a.current) return;
931
930
  const d = new ResizeObserver(() => {
@@ -971,7 +970,7 @@ function dt({ options: t, value: e, onChange: r, size: o = "m", disabled: n = !1
971
970
  }
972
971
  );
973
972
  }
974
- function ut({
973
+ function ft({
975
974
  children: t,
976
975
  title: e,
977
976
  defaultExpanded: r = !1,
@@ -980,14 +979,14 @@ function ut({
980
979
  padding: a = "m",
981
980
  ...i
982
981
  }) {
983
- const [l, m] = g(r), u = o !== void 0, f = u ? o : l, p = () => {
982
+ const [l, m] = T(r), u = o !== void 0, f = u ? o : l, p = () => {
984
983
  u ? n == null || n(!o) : m((d) => !d);
985
- }, h = [
984
+ }, x = [
986
985
  "ds-accordion",
987
986
  `ds-accordion--${a}`,
988
987
  f && "ds-accordion--expanded"
989
988
  ].filter(Boolean).join(" ");
990
- return /* @__PURE__ */ s.jsxs("div", { className: h, ...i, children: [
989
+ return /* @__PURE__ */ s.jsxs("div", { className: x, ...i, children: [
991
990
  /* @__PURE__ */ s.jsxs(
992
991
  "button",
993
992
  {
@@ -1011,48 +1010,48 @@ function ut({
1011
1010
  /* @__PURE__ */ s.jsx("div", { className: "ds-accordion__content", children: /* @__PURE__ */ s.jsx("div", { className: "ds-accordion__content-inner", children: /* @__PURE__ */ s.jsx("div", { className: "ds-accordion__content-body", children: t }) }) })
1012
1011
  ] });
1013
1012
  }
1014
- const C = 8, Y = 8;
1015
- function Se(t, e, r) {
1013
+ const V = 8, Y = 8;
1014
+ function Ae(t, e, r) {
1016
1015
  const o = window.innerWidth;
1017
1016
  let n, a;
1018
1017
  switch (t) {
1019
1018
  case "top":
1020
- n = e.top - r.height - C, a = e.left + e.width / 2 - r.width / 2;
1019
+ n = e.top - r.height - V, a = e.left + e.width / 2 - r.width / 2;
1021
1020
  break;
1022
1021
  case "bottom":
1023
- n = e.bottom + C, a = e.left + e.width / 2 - r.width / 2;
1022
+ n = e.bottom + V, a = e.left + e.width / 2 - r.width / 2;
1024
1023
  break;
1025
1024
  case "left":
1026
- n = e.top + e.height / 2 - r.height / 2, a = e.left - r.width - C;
1025
+ n = e.top + e.height / 2 - r.height / 2, a = e.left - r.width - V;
1027
1026
  break;
1028
1027
  case "right":
1029
- n = e.top + e.height / 2 - r.height / 2, a = e.right + C;
1028
+ n = e.top + e.height / 2 - r.height / 2, a = e.right + V;
1030
1029
  break;
1031
1030
  default:
1032
- n = e.bottom + C, a = e.left;
1031
+ n = e.bottom + V, a = e.left;
1033
1032
  }
1034
1033
  const i = Math.max(Y, Math.min(o - r.width - Y, a)), l = a - i;
1035
1034
  return { top: n, left: i, arrowOffset: l };
1036
1035
  }
1037
- function Ae(t, e, r) {
1036
+ function Pe(t, e, r) {
1038
1037
  const o = window.innerWidth, n = window.innerHeight;
1039
- if (t.top >= e + C + Y) return "top";
1040
- if (n - t.bottom >= e + C + Y) return "bottom";
1041
- if (o - t.right >= r + C + Y) return "right";
1042
- if (t.left >= r + C + Y) return "left";
1038
+ if (t.top >= e + V + Y) return "top";
1039
+ if (n - t.bottom >= e + V + Y) return "bottom";
1040
+ if (o - t.right >= r + V + Y) return "right";
1041
+ if (t.left >= r + V + Y) return "left";
1043
1042
  const a = Math.max(t.top, n - t.bottom, t.left, o - t.right);
1044
1043
  return a === t.top ? "top" : a === n - t.bottom ? "bottom" : a === o - t.right ? "right" : "left";
1045
1044
  }
1046
- function ft({ children: t, content: e, position: r, ...o }) {
1047
- const [n, a] = g(!1), [i, l] = g({ visibility: "hidden" }), [m, u] = g(r || "top"), f = R(null), p = R(null), h = R(!1), d = () => {
1045
+ function mt({ children: t, content: e, position: r, ...o }) {
1046
+ const [n, a] = T(!1), [i, l] = T({ visibility: "hidden" }), [m, u] = T(r || "top"), f = R(null), p = R(null), x = R(!1), d = () => {
1048
1047
  if (!f.current || !p.current) return;
1049
- const _ = f.current.getBoundingClientRect(), y = p.current.getBoundingClientRect(), E = r || Ae(_, y.height, y.width), { top: T, left: w, arrowOffset: I } = Se(E, _, y);
1048
+ const _ = f.current.getBoundingClientRect(), y = p.current.getBoundingClientRect(), E = r || Pe(_, y.height, y.width), { top: S, left: I, arrowOffset: k } = Ae(E, _, y);
1050
1049
  u(E), l({
1051
1050
  position: "fixed",
1052
- top: T,
1053
- left: w,
1051
+ top: S,
1052
+ left: I,
1054
1053
  visibility: "visible",
1055
- "--arrow-offset": `${I}px`
1054
+ "--arrow-offset": `${k}px`
1056
1055
  });
1057
1056
  };
1058
1057
  if (P(() => {
@@ -1085,23 +1084,23 @@ function ft({ children: t, content: e, position: r, ...o }) {
1085
1084
  ref: f,
1086
1085
  className: "ds-tooltip-wrapper",
1087
1086
  onMouseEnter: () => {
1088
- h.current || a(!0);
1087
+ x.current || a(!0);
1089
1088
  },
1090
1089
  onMouseLeave: () => {
1091
- h.current || a(!1);
1090
+ x.current || a(!1);
1092
1091
  },
1093
1092
  onTouchStart: () => {
1094
- h.current = !0, a((_) => !_);
1093
+ x.current = !0, a((_) => !_);
1095
1094
  },
1096
1095
  ...o,
1097
1096
  children: [
1098
1097
  t,
1099
- typeof document < "u" && Q.createPortal(v, document.body)
1098
+ typeof document < "u" && te.createPortal(v, document.body)
1100
1099
  ]
1101
1100
  }
1102
1101
  );
1103
1102
  }
1104
- function mt({
1103
+ function pt({
1105
1104
  checked: t = !1,
1106
1105
  onChange: e,
1107
1106
  size: r = "m",
@@ -1132,7 +1131,7 @@ function mt({
1132
1131
  n && /* @__PURE__ */ s.jsx("span", { className: "ds-toggle__label", children: n })
1133
1132
  ] });
1134
1133
  }
1135
- function pt({
1134
+ function ht({
1136
1135
  checked: t = !1,
1137
1136
  onChange: e,
1138
1137
  size: r = "m",
@@ -1160,7 +1159,7 @@ function pt({
1160
1159
  }
1161
1160
  ),
1162
1161
  /* @__PURE__ */ s.jsx("span", { className: "ds-checkbox__box", children: t && /* @__PURE__ */ s.jsx(
1163
- we,
1162
+ fe,
1164
1163
  {
1165
1164
  size: u,
1166
1165
  strokeWidth: 2.5,
@@ -1170,7 +1169,7 @@ function pt({
1170
1169
  n && /* @__PURE__ */ s.jsx("span", { className: "ds-checkbox__label", children: n })
1171
1170
  ] });
1172
1171
  }
1173
- function ht({
1172
+ function bt({
1174
1173
  checked: t = !1,
1175
1174
  onChange: e,
1176
1175
  size: r = "m",
@@ -1205,7 +1204,7 @@ function ht({
1205
1204
  n && /* @__PURE__ */ s.jsx("span", { className: "ds-radio__label", children: n })
1206
1205
  ] });
1207
1206
  }
1208
- function bt({ width: t, height: e, shape: r = "rect", className: o = "", style: n = {}, ...a }) {
1207
+ function xt({ width: t, height: e, shape: r = "rect", className: o = "", style: n = {}, ...a }) {
1209
1208
  return /* @__PURE__ */ s.jsx(
1210
1209
  "span",
1211
1210
  {
@@ -1216,19 +1215,19 @@ function bt({ width: t, height: e, shape: r = "rect", className: o = "", style:
1216
1215
  }
1217
1216
  );
1218
1217
  }
1219
- function Pe(t) {
1218
+ function Oe(t) {
1220
1219
  let e = 2166136261;
1221
1220
  for (let r = 0; r < t.length; r++)
1222
1221
  e ^= t.charCodeAt(r), e = Math.imul(e, 16777619) >>> 0;
1223
1222
  return e % 360;
1224
1223
  }
1225
- function Oe(t) {
1224
+ function Be(t) {
1226
1225
  if (!t) return "";
1227
1226
  const e = t.trim().split(/\s+/);
1228
1227
  return e.length >= 2 ? (e[0][0] + e[1][0]).toUpperCase() : t[0].toUpperCase();
1229
1228
  }
1230
- function xt({ seed: t, icon: e, src: r, size: o = 32, className: n = "", style: a = {}, ...i }) {
1231
- const l = Pe(t ?? ""), [m, u] = g(!1), f = e ?? /* @__PURE__ */ s.jsx("span", { className: "ds-avatar__initials", children: Oe(t) });
1229
+ function vt({ seed: t, icon: e, src: r, size: o = 32, className: n = "", style: a = {}, ...i }) {
1230
+ const l = Oe(t ?? ""), [m, u] = T(!1), f = e ?? /* @__PURE__ */ s.jsx("span", { className: "ds-avatar__initials", children: Be(t) });
1232
1231
  return /* @__PURE__ */ s.jsx(
1233
1232
  "div",
1234
1233
  {
@@ -1240,7 +1239,7 @@ function xt({ seed: t, icon: e, src: r, size: o = 32, className: n = "", style:
1240
1239
  }
1241
1240
  );
1242
1241
  }
1243
- function vt({
1242
+ function _t({
1244
1243
  children: t,
1245
1244
  size: e = "compact",
1246
1245
  stickyTop: r,
@@ -1270,13 +1269,13 @@ function vt({
1270
1269
  }
1271
1270
  );
1272
1271
  }
1273
- function _t({ children: t, ...e }) {
1272
+ function jt({ children: t, ...e }) {
1274
1273
  return /* @__PURE__ */ s.jsx("thead", { ...e, children: t });
1275
1274
  }
1276
- function jt({ children: t, ...e }) {
1275
+ function wt({ children: t, ...e }) {
1277
1276
  return /* @__PURE__ */ s.jsx("tbody", { ...e, children: t });
1278
1277
  }
1279
- function wt({ children: t, interactive: e, selected: r, subheader: o, className: n = "", onClick: a, ...i }) {
1278
+ function Nt({ children: t, interactive: e, selected: r, subheader: o, className: n = "", onClick: a, ...i }) {
1280
1279
  return /* @__PURE__ */ s.jsx(
1281
1280
  "tr",
1282
1281
  {
@@ -1293,10 +1292,10 @@ function wt({ children: t, interactive: e, selected: r, subheader: o, className:
1293
1292
  }
1294
1293
  );
1295
1294
  }
1296
- function Nt({ children: t, colSpan: e = 999, ...r }) {
1295
+ function yt({ children: t, colSpan: e = 999, ...r }) {
1297
1296
  return /* @__PURE__ */ s.jsx("tr", { className: "ds-table-row ds-table-row--subheader", ...r, children: /* @__PURE__ */ s.jsx("td", { colSpan: e, children: t }) });
1298
1297
  }
1299
- function yt({ children: t, align: e = "left", sortDir: r, onSort: o, width: n, className: a = "", style: i = {}, ...l }) {
1298
+ function Et({ children: t, align: e = "left", sortDir: r, onSort: o, width: n, className: a = "", style: i = {}, ...l }) {
1300
1299
  const m = !!o || r !== void 0, u = r === "asc" ? Ne : r === "desc" ? ee : ye;
1301
1300
  return /* @__PURE__ */ s.jsx(
1302
1301
  "th",
@@ -1318,7 +1317,7 @@ function yt({ children: t, align: e = "left", sortDir: r, onSort: o, width: n, c
1318
1317
  }
1319
1318
  );
1320
1319
  }
1321
- function Et({ children: t, align: e = "left", secondary: r, muted: o, truncate: n, nowrap: a, className: i = "", ...l }) {
1320
+ function kt({ children: t, align: e = "left", secondary: r, muted: o, truncate: n, nowrap: a, className: i = "", ...l }) {
1322
1321
  return /* @__PURE__ */ s.jsx(
1323
1322
  "td",
1324
1323
  {
@@ -1369,44 +1368,44 @@ function $t({
1369
1368
  style: i,
1370
1369
  ...l
1371
1370
  }) {
1372
- const [m, u] = g(!1), [f, p] = g(!1), h = r !== void 0, d = h ? r : m, v = R(null), _ = R(null), [y, E] = g({}), T = R(null), w = 150, I = () => {
1373
- if (h)
1371
+ const [m, u] = T(!1), [f, p] = T(!1), x = r !== void 0, d = x ? r : m, v = R(null), _ = R(null), [y, E] = T({}), S = R(null), I = 150, k = () => {
1372
+ if (x)
1374
1373
  o == null || o(!1);
1375
1374
  else {
1376
1375
  if (f) return;
1377
- p(!0), T.current = setTimeout(() => {
1376
+ p(!0), S.current = setTimeout(() => {
1378
1377
  u(!1), p(!1);
1379
- }, w);
1378
+ }, I);
1380
1379
  }
1381
- }, V = () => {
1382
- const x = !d;
1383
- h ? o == null || o(x) : x ? (clearTimeout(T.current), p(!1), u(!0)) : I();
1380
+ }, D = () => {
1381
+ const h = !d;
1382
+ x ? o == null || o(h) : h ? (clearTimeout(S.current), p(!1), u(!0)) : k();
1384
1383
  };
1385
- P(() => () => clearTimeout(T.current), []), P(() => {
1384
+ P(() => () => clearTimeout(S.current), []), P(() => {
1386
1385
  if (!d) return;
1387
- const x = () => {
1386
+ const h = () => {
1388
1387
  var A;
1389
- const S = (A = v.current) == null ? void 0 : A.getBoundingClientRect();
1390
- S && E(
1391
- n === "right" ? { top: S.bottom + 4, right: window.innerWidth - S.right } : { top: S.bottom + 4, left: S.left }
1388
+ const j = (A = v.current) == null ? void 0 : A.getBoundingClientRect();
1389
+ j && E(
1390
+ n === "right" ? { top: j.bottom + 4, right: window.innerWidth - j.right } : { top: j.bottom + 4, left: j.left }
1392
1391
  );
1393
1392
  };
1394
- return x(), window.addEventListener("scroll", x, !0), window.addEventListener("resize", x), () => {
1395
- window.removeEventListener("scroll", x, !0), window.removeEventListener("resize", x);
1393
+ return h(), window.addEventListener("scroll", h, !0), window.addEventListener("resize", h), () => {
1394
+ window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
1396
1395
  };
1397
1396
  }, [d, n]), P(() => {
1398
1397
  if (!d) return;
1399
- const x = (A) => {
1400
- var D, B;
1401
- !((D = v.current) != null && D.contains(A.target)) && !((B = _.current) != null && B.contains(A.target)) && I();
1402
- }, S = (A) => {
1403
- A.key === "Escape" && I();
1398
+ const h = (A) => {
1399
+ var F, B;
1400
+ !((F = v.current) != null && F.contains(A.target)) && !((B = _.current) != null && B.contains(A.target)) && k();
1401
+ }, j = (A) => {
1402
+ A.key === "Escape" && k();
1404
1403
  };
1405
- return document.addEventListener("mousedown", x), document.addEventListener("keydown", S), () => {
1406
- document.removeEventListener("mousedown", x), document.removeEventListener("keydown", S);
1404
+ return document.addEventListener("mousedown", h), document.addEventListener("keydown", j), () => {
1405
+ document.removeEventListener("mousedown", h), document.removeEventListener("keydown", j);
1407
1406
  };
1408
1407
  }, [d]);
1409
- const W = d && /* @__PURE__ */ s.jsx(
1408
+ const C = d && /* @__PURE__ */ s.jsx(
1410
1409
  "div",
1411
1410
  {
1412
1411
  ref: _,
@@ -1416,34 +1415,34 @@ function $t({
1416
1415
  f && "ds-dropdown__menu--closing"
1417
1416
  ].filter(Boolean).join(" "),
1418
1417
  style: y,
1419
- children: e.map((x, S) => {
1420
- if (x.separator)
1421
- return /* @__PURE__ */ s.jsx("div", { className: "ds-dropdown__separator" }, S);
1422
- if (x.type === "section")
1418
+ children: e.map((h, j) => {
1419
+ if (h.separator)
1420
+ return /* @__PURE__ */ s.jsx("div", { className: "ds-dropdown__separator" }, j);
1421
+ if (h.type === "section")
1423
1422
  return /* @__PURE__ */ s.jsxs("div", { className: "ds-dropdown__section", children: [
1424
- x.label && /* @__PURE__ */ s.jsx("div", { className: "ds-dropdown__section-label", children: x.label }),
1425
- /* @__PURE__ */ s.jsx("div", { className: "ds-dropdown__section-content", children: x.content })
1426
- ] }, S);
1427
- const A = !!x.href, D = A ? "a" : "button", B = A ? { href: x.disabled ? void 0 : x.href, "aria-disabled": x.disabled ? "true" : void 0 } : { type: "button", disabled: x.disabled };
1423
+ h.label && /* @__PURE__ */ s.jsx("div", { className: "ds-dropdown__section-label", children: h.label }),
1424
+ /* @__PURE__ */ s.jsx("div", { className: "ds-dropdown__section-content", children: h.content })
1425
+ ] }, j);
1426
+ const A = !!h.href, F = A ? "a" : "button", B = A ? { href: h.disabled ? void 0 : h.href, "aria-disabled": h.disabled ? "true" : void 0 } : { type: "button", disabled: h.disabled };
1428
1427
  return /* @__PURE__ */ s.jsxs(
1429
- D,
1428
+ F,
1430
1429
  {
1431
1430
  className: [
1432
1431
  "ds-dropdown__item",
1433
- x.danger && "ds-dropdown__item--danger"
1432
+ h.danger && "ds-dropdown__item--danger"
1434
1433
  ].filter(Boolean).join(" "),
1435
1434
  ...B,
1436
1435
  onClick: () => {
1437
1436
  var M;
1438
- (M = x.onClick) == null || M.call(x), I();
1437
+ (M = h.onClick) == null || M.call(h), k();
1439
1438
  },
1440
1439
  children: [
1441
- x.icon && /* @__PURE__ */ s.jsx("span", { className: "ds-dropdown__item-icon", children: x.icon }),
1442
- /* @__PURE__ */ s.jsx("span", { className: "ds-dropdown__item-label", children: x.label }),
1443
- x.shortcut && /* @__PURE__ */ s.jsx("span", { className: "ds-dropdown__item-shortcut", children: x.shortcut })
1440
+ h.icon && /* @__PURE__ */ s.jsx("span", { className: "ds-dropdown__item-icon", children: h.icon }),
1441
+ /* @__PURE__ */ s.jsx("span", { className: "ds-dropdown__item-label", children: h.label }),
1442
+ h.shortcut && /* @__PURE__ */ s.jsx("span", { className: "ds-dropdown__item-shortcut", children: h.shortcut })
1444
1443
  ]
1445
1444
  },
1446
- S
1445
+ j
1447
1446
  );
1448
1447
  })
1449
1448
  }
@@ -1456,13 +1455,13 @@ function $t({
1456
1455
  style: i,
1457
1456
  ...l,
1458
1457
  children: [
1459
- /* @__PURE__ */ s.jsx("div", { className: "ds-dropdown__trigger", onClick: V, children: t }),
1460
- typeof document < "u" && Q.createPortal(W, document.body)
1458
+ /* @__PURE__ */ s.jsx("div", { className: "ds-dropdown__trigger", onClick: D, children: t }),
1459
+ typeof document < "u" && te.createPortal(C, document.body)
1461
1460
  ]
1462
1461
  }
1463
1462
  );
1464
1463
  }
1465
- function kt({
1464
+ function gt({
1466
1465
  value: t = 0,
1467
1466
  size: e = "m",
1468
1467
  variant: r = "default",
@@ -1499,11 +1498,11 @@ function kt({
1499
1498
  }
1500
1499
  );
1501
1500
  }
1502
- const Be = (t) => 1 - Math.pow(1 - t, 3), Le = () => typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1503
- function Me(t, { duration: e = 600 } = {}) {
1504
- const [r, o] = g(t), n = R(t), a = R(null);
1501
+ const Le = (t) => 1 - Math.pow(1 - t, 3), Me = () => typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1502
+ function De(t, { duration: e = 600 } = {}) {
1503
+ const [r, o] = T(t), n = R(t), a = R(null);
1505
1504
  return P(() => {
1506
- if (Le()) {
1505
+ if (Me()) {
1507
1506
  o(t), n.current = t;
1508
1507
  return;
1509
1508
  }
@@ -1513,23 +1512,23 @@ function Me(t, { duration: e = 600 } = {}) {
1513
1512
  const u = (f) => {
1514
1513
  m || (m = f);
1515
1514
  const p = Math.min((f - m) / e, 1);
1516
- o(i + l * Be(p)), p < 1 ? a.current = requestAnimationFrame(u) : n.current = t;
1515
+ o(i + l * Le(p)), p < 1 ? a.current = requestAnimationFrame(u) : n.current = t;
1517
1516
  };
1518
1517
  return a.current = requestAnimationFrame(u), () => cancelAnimationFrame(a.current);
1519
1518
  }, [t, e]), r;
1520
1519
  }
1521
- function gt({
1520
+ function Tt({
1522
1521
  value: t,
1523
1522
  duration: e = 600,
1524
1523
  decimals: r = 0,
1525
1524
  prefix: o = "",
1526
1525
  suffix: n = ""
1527
1526
  }) {
1528
- const i = Me(t, { duration: e }).toFixed(r);
1527
+ const i = De(t, { duration: e }).toFixed(r);
1529
1528
  return `${o}${i}${n}`;
1530
1529
  }
1531
- function De({ threshold: t = 0.1, rootMargin: e = "0px", once: r = !1 } = {}) {
1532
- const o = R(null), [n, a] = g(!1);
1530
+ function Ce({ threshold: t = 0.1, rootMargin: e = "0px", once: r = !1 } = {}) {
1531
+ const o = R(null), [n, a] = T(!1);
1533
1532
  return P(() => {
1534
1533
  const i = o.current;
1535
1534
  if (!i) return;
@@ -1542,7 +1541,7 @@ function De({ threshold: t = 0.1, rootMargin: e = "0px", once: r = !1 } = {}) {
1542
1541
  return l.observe(i), () => l.disconnect();
1543
1542
  }, [t, e, r]), { ref: o, inView: n };
1544
1543
  }
1545
- function Tt({
1544
+ function St({
1546
1545
  children: t,
1547
1546
  as: e = "div",
1548
1547
  once: r = !1,
@@ -1552,31 +1551,31 @@ function Tt({
1552
1551
  onLeave: i,
1553
1552
  ...l
1554
1553
  }) {
1555
- const { ref: m, inView: u } = De({ threshold: o, rootMargin: n, once: r }), f = R(!1);
1554
+ const { ref: m, inView: u } = Ce({ threshold: o, rootMargin: n, once: r }), f = R(!1);
1556
1555
  return P(() => {
1557
1556
  u && !f.current && (a == null || a()), !u && f.current && (i == null || i()), f.current = u;
1558
1557
  }, [u]), /* @__PURE__ */ s.jsx(e, { ref: m, ...l, children: typeof t == "function" ? t(u) : t });
1559
1558
  }
1560
1559
  const ue = {
1561
- default: he,
1562
- success: pe,
1563
- warning: me,
1564
- error: fe
1560
+ default: be,
1561
+ success: he,
1562
+ warning: pe,
1563
+ error: me
1565
1564
  };
1566
1565
  let U = [];
1567
- const oe = /* @__PURE__ */ new Set();
1568
- function be() {
1569
- oe.forEach((t) => t([...U]));
1570
- }
1571
- function Ce(t) {
1572
- U = [...U, t], be();
1566
+ const ce = /* @__PURE__ */ new Set();
1567
+ function xe() {
1568
+ ce.forEach((t) => t([...U]));
1573
1569
  }
1574
1570
  function Fe(t) {
1575
- U = U.filter((e) => e.id !== t), be();
1571
+ U = [...U, t], xe();
1572
+ }
1573
+ function Ve(t) {
1574
+ U = U.filter((e) => e.id !== t), xe();
1576
1575
  }
1577
1576
  function It() {
1578
1577
  const t = (e, r = {}) => {
1579
- Ce({
1578
+ Fe({
1580
1579
  id: `${Date.now()}-${Math.random()}`,
1581
1580
  message: e,
1582
1581
  type: "default",
@@ -1586,8 +1585,8 @@ function It() {
1586
1585
  };
1587
1586
  return t.success = (e, r) => t(e, { ...r, type: "success" }), t.error = (e, r) => t(e, { ...r, type: "error" }), t.warning = (e, r) => t(e, { ...r, type: "warning" }), { toast: t };
1588
1587
  }
1589
- function Ve({ data: t, onDismiss: e }) {
1590
- const [r, o] = g(!1), n = R(null);
1588
+ function We({ data: t, onDismiss: e }) {
1589
+ const [r, o] = T(!1), n = R(null);
1591
1590
  P(() => (requestAnimationFrame(() => o(!0)), t.duration > 0 && (n.current = setTimeout(() => a(), t.duration)), () => clearTimeout(n.current)), []);
1592
1591
  function a() {
1593
1592
  o(!1), setTimeout(() => e(t.id), 250);
@@ -1612,67 +1611,67 @@ function Ve({ data: t, onDismiss: e }) {
1612
1611
  className: "ds-toast__close",
1613
1612
  onClick: a,
1614
1613
  "aria-label": "Закрыть",
1615
- children: /* @__PURE__ */ s.jsx(ce, { size: O[3], strokeWidth: 1.5 })
1614
+ children: /* @__PURE__ */ s.jsx(Q, { size: O[3], strokeWidth: 1.5 })
1616
1615
  }
1617
1616
  )
1618
1617
  ]
1619
1618
  }
1620
1619
  );
1621
1620
  }
1622
- function St({ position: t = "bottom-right" }) {
1623
- const [e, r] = g(() => [...U]);
1624
- return P(() => (oe.add(r), () => oe.delete(r)), []), !e.length || typeof document > "u" ? null : Q.createPortal(
1625
- /* @__PURE__ */ s.jsx("div", { className: ["ds-toast-container", `ds-toast-container--${t}`].join(" "), children: e.map((o) => /* @__PURE__ */ s.jsx(Ve, { data: o, onDismiss: Fe }, o.id)) }),
1621
+ function At({ position: t = "bottom-right" }) {
1622
+ const [e, r] = T(() => [...U]);
1623
+ return P(() => (ce.add(r), () => ce.delete(r)), []), !e.length || typeof document > "u" ? null : te.createPortal(
1624
+ /* @__PURE__ */ s.jsx("div", { className: ["ds-toast-container", `ds-toast-container--${t}`].join(" "), children: e.map((o) => /* @__PURE__ */ s.jsx(We, { data: o, onDismiss: Ve }, o.id)) }),
1626
1625
  document.body
1627
1626
  );
1628
1627
  }
1629
1628
  export {
1630
- ut as Accordion,
1631
- nt as Alert,
1632
- gt as AnimatedNumber,
1633
- xt as Avatar,
1634
- rt as Badge,
1635
- ke as Button,
1636
- Xe as Card,
1637
- pt as Checkbox,
1638
- ot as Code,
1629
+ ft as Accordion,
1630
+ at as Alert,
1631
+ Tt as AnimatedNumber,
1632
+ vt as Avatar,
1633
+ nt as Badge,
1634
+ ge as Button,
1635
+ Je as Card,
1636
+ ht as Checkbox,
1637
+ ct as Code,
1639
1638
  Ie as CodeAccordion,
1640
1639
  $t as Dropdown,
1641
1640
  Rt as EmptyState,
1642
- Je as H1,
1643
- Ke as H2,
1644
- Ze as H3,
1645
- Qe as H4,
1646
- Tt as InView,
1647
- Ue as Input,
1648
- ct as Link,
1649
- at as Modal,
1641
+ Ke as H1,
1642
+ Ze as H2,
1643
+ Qe as H3,
1644
+ et as H4,
1645
+ St as InView,
1646
+ qe as Input,
1647
+ it as Link,
1648
+ ot as Modal,
1650
1649
  de as ModalFooter,
1651
- et as P1,
1652
- tt as P2,
1653
- st as P3,
1654
- kt as ProgressBar,
1655
- ht as Radio,
1656
- dt as SegmentedControl,
1657
- He as Select,
1658
- bt as Skeleton,
1659
- $e as Spinner,
1660
- Ge as Stepper,
1661
- lt as Tab,
1662
- vt as Table,
1663
- jt as TableBody,
1664
- _t as TableHead,
1665
- wt as TableRow,
1666
- Nt as TableSubheaderRow,
1667
- it as Tabs,
1668
- Et as Td,
1669
- qe as Textarea,
1670
- yt as Th,
1671
- St as ToastContainer,
1672
- mt as Toggle,
1673
- ft as Tooltip,
1650
+ tt as P1,
1651
+ st as P2,
1652
+ rt as P3,
1653
+ gt as ProgressBar,
1654
+ bt as Radio,
1655
+ ut as SegmentedControl,
1656
+ Ge as Select,
1657
+ xt as Skeleton,
1658
+ Re as Spinner,
1659
+ Xe as Stepper,
1660
+ dt as Tab,
1661
+ _t as Table,
1662
+ wt as TableBody,
1663
+ jt as TableHead,
1664
+ Nt as TableRow,
1665
+ yt as TableSubheaderRow,
1666
+ lt as Tabs,
1667
+ kt as Td,
1668
+ He as Textarea,
1669
+ Et as Th,
1670
+ At as ToastContainer,
1671
+ pt as Toggle,
1672
+ mt as Tooltip,
1674
1673
  O as iconSizes,
1675
- Me as useAnimatedNumber,
1676
- De as useInView,
1674
+ De as useAnimatedNumber,
1675
+ Ce as useInView,
1677
1676
  It as useToast
1678
1677
  };