toku-ui 3.1.0 → 4.1.0

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
@@ -332,12 +332,12 @@ function Ve(e) {
332
332
  function He() {}
333
333
  //#endregion
334
334
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
335
- function Ue(e) {
335
+ function j(e) {
336
336
  return Pe(e);
337
337
  }
338
338
  //#endregion
339
339
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
340
- function We(e) {
340
+ function Ue(e) {
341
341
  if (typeof e != "object" || !e) return !1;
342
342
  if (Object.getPrototypeOf(e) === null) return !0;
343
343
  if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -350,7 +350,7 @@ function We(e) {
350
350
  }
351
351
  //#endregion
352
352
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/object/clone.mjs
353
- function Ge(e) {
353
+ function We(e) {
354
354
  if (se(e)) return e;
355
355
  if (Array.isArray(e) || Pe(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
356
356
  let t = Object.getPrototypeOf(e);
@@ -373,17 +373,17 @@ function Ge(e) {
373
373
  }
374
374
  //#endregion
375
375
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
376
- function Ke(e, ...t) {
376
+ function Ge(e, ...t) {
377
377
  let n = t.slice(0, -1), r = t[t.length - 1], i = e;
378
378
  for (let e = 0; e < n.length; e++) {
379
379
  let t = n[e];
380
- i = qe(i, t, r, /* @__PURE__ */ new Map());
380
+ i = Ke(i, t, r, /* @__PURE__ */ new Map());
381
381
  }
382
382
  return i;
383
383
  }
384
- function qe(e, t, n, r) {
384
+ function Ke(e, t, n, r) {
385
385
  if (se(e) && (e = Object(e)), typeof t != "object" || !t) return e;
386
- if (r.has(t)) return Ge(r.get(t));
386
+ if (r.has(t)) return We(r.get(t));
387
387
  if (r.set(t, e), Array.isArray(t)) {
388
388
  t = t.slice();
389
389
  for (let e = 0; e < t.length; e++) t[e] = t[e] ?? void 0;
@@ -406,73 +406,73 @@ function qe(e, t, n, r) {
406
406
  c = e;
407
407
  } else c = [];
408
408
  let l = n(c, s, o, e, t, r);
409
- l === void 0 ? Array.isArray(s) || Be(c) && Be(s) && (We(c) || We(s) || Ue(c) || Ue(s)) ? e[o] = qe(c, s, n, r) : c == null && We(s) ? e[o] = qe({}, s, n, r) : c == null && Ue(s) ? e[o] = Re(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
409
+ l === void 0 ? Array.isArray(s) || Be(c) && Be(s) && (Ue(c) || Ue(s) || j(c) || j(s)) ? e[o] = Ke(c, s, n, r) : c == null && Ue(s) ? e[o] = Ke({}, s, n, r) : c == null && j(s) ? e[o] = Re(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
410
410
  }
411
411
  return e;
412
412
  }
413
413
  //#endregion
414
414
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/merge.mjs
415
- function j(e, ...t) {
416
- return Ke(e, ...t, He);
415
+ function M(e, ...t) {
416
+ return Ge(e, ...t, He);
417
417
  }
418
418
  //#endregion
419
419
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/string/capitalize.mjs
420
- function Je(e) {
420
+ function qe(e) {
421
421
  return e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
422
422
  }
423
423
  //#endregion
424
424
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/string/words.mjs
425
- var Ye = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
426
- function Xe(e) {
427
- return Array.from(e.match(Ye) ?? []);
425
+ var Je = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
426
+ function Ye(e) {
427
+ return Array.from(e.match(Je) ?? []);
428
428
  }
429
429
  //#endregion
430
430
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/string/camelCase.mjs
431
- function Ze(e) {
432
- let t = Xe(e);
431
+ function Xe(e) {
432
+ let t = Ye(e);
433
433
  if (t.length === 0) return "";
434
434
  let [n, ...r] = t;
435
- return `${n.toLowerCase()}${r.map((e) => Je(e)).join("")}`;
435
+ return `${n.toLowerCase()}${r.map((e) => qe(e)).join("")}`;
436
436
  }
437
437
  //#endregion
438
438
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/extends.js
439
- function M() {
440
- return M = Object.assign ? Object.assign.bind() : function(e) {
439
+ function N() {
440
+ return N = Object.assign ? Object.assign.bind() : function(e) {
441
441
  for (var t = 1; t < arguments.length; t++) {
442
442
  var n = arguments[t];
443
443
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
444
444
  }
445
445
  return e;
446
- }, M.apply(null, arguments);
446
+ }, N.apply(null, arguments);
447
447
  }
448
448
  //#endregion
449
449
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
450
- function Qe(e) {
450
+ function Ze(e) {
451
451
  if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
452
452
  return e;
453
453
  }
454
454
  //#endregion
455
455
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
456
- function N(e, t) {
457
- return N = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
456
+ function P(e, t) {
457
+ return P = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
458
458
  return e.__proto__ = t, e;
459
- }, N(e, t);
459
+ }, P(e, t);
460
460
  }
461
461
  //#endregion
462
462
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
463
- function $e(e, t) {
464
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, N(e, t);
463
+ function Qe(e, t) {
464
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, P(e, t);
465
465
  }
466
466
  //#endregion
467
467
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
468
- function et(e) {
469
- return et = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
468
+ function $e(e) {
469
+ return $e = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
470
470
  return e.__proto__ || Object.getPrototypeOf(e);
471
- }, et(e);
471
+ }, $e(e);
472
472
  }
473
473
  //#endregion
474
474
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
475
- function tt(e) {
475
+ function et(e) {
476
476
  try {
477
477
  return Function.toString.call(e).indexOf("[native code]") !== -1;
478
478
  } catch {
@@ -481,48 +481,48 @@ function tt(e) {
481
481
  }
482
482
  //#endregion
483
483
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
484
- function nt() {
484
+ function tt() {
485
485
  try {
486
486
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
487
487
  } catch {}
488
- return (nt = function() {
488
+ return (tt = function() {
489
489
  return !!e;
490
490
  })();
491
491
  }
492
492
  //#endregion
493
493
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/construct.js
494
- function rt(e, t, n) {
495
- if (nt()) return Reflect.construct.apply(null, arguments);
494
+ function nt(e, t, n) {
495
+ if (tt()) return Reflect.construct.apply(null, arguments);
496
496
  var r = [null];
497
497
  r.push.apply(r, t);
498
498
  var i = new (e.bind.apply(e, r))();
499
- return n && N(i, n.prototype), i;
499
+ return n && P(i, n.prototype), i;
500
500
  }
501
501
  //#endregion
502
502
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
503
- function it(e) {
503
+ function rt(e) {
504
504
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
505
- return it = function(e) {
506
- if (e === null || !tt(e)) return e;
505
+ return rt = function(e) {
506
+ if (e === null || !et(e)) return e;
507
507
  if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
508
508
  if (t !== void 0) {
509
509
  if (t.has(e)) return t.get(e);
510
510
  t.set(e, n);
511
511
  }
512
512
  function n() {
513
- return rt(e, arguments, et(this).constructor);
513
+ return nt(e, arguments, $e(this).constructor);
514
514
  }
515
515
  return n.prototype = Object.create(e.prototype, { constructor: {
516
516
  value: n,
517
517
  enumerable: !1,
518
518
  writable: !0,
519
519
  configurable: !0
520
- } }), N(n, e);
521
- }, it(e);
520
+ } }), P(n, e);
521
+ }, rt(e);
522
522
  }
523
523
  //#endregion
524
524
  //#region node_modules/.pnpm/polished@4.3.1/node_modules/polished/dist/polished.esm.js
525
- var at = {
525
+ var it = {
526
526
  1: "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",
527
527
  2: "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",
528
528
  3: "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
@@ -602,40 +602,40 @@ var at = {
602
602
  77: "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
603
603
  78: "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
604
604
  };
605
- function ot() {
605
+ function at() {
606
606
  var e = [...arguments], t = e[0], n = [], r;
607
607
  for (r = 1; r < e.length; r += 1) n.push(e[r]);
608
608
  return n.forEach(function(e) {
609
609
  t = t.replace(/%[a-z]/, e);
610
610
  }), t;
611
611
  }
612
- var P = /* @__PURE__ */ function(e) {
613
- $e(t, e);
612
+ var F = /* @__PURE__ */ function(e) {
613
+ Qe(t, e);
614
614
  function t(t) {
615
615
  var n;
616
616
  if (process.env.NODE_ENV === "production") n = e.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + t + " for more information.") || this;
617
617
  else {
618
618
  var r = [...arguments].slice(1);
619
- n = e.call(this, ot.apply(void 0, [at[t]].concat(r))) || this;
619
+ n = e.call(this, at.apply(void 0, [it[t]].concat(r))) || this;
620
620
  }
621
- return Qe(n);
621
+ return Ze(n);
622
622
  }
623
623
  return t;
624
- }(/* @__PURE__ */ it(Error));
625
- function st(e) {
624
+ }(/* @__PURE__ */ rt(Error));
625
+ function ot(e) {
626
626
  return Math.round(e * 255);
627
627
  }
628
- function ct(e, t, n) {
629
- return st(e) + "," + st(t) + "," + st(n);
628
+ function st(e, t, n) {
629
+ return ot(e) + "," + ot(t) + "," + ot(n);
630
630
  }
631
- function F(e, t, n, r) {
632
- if (r === void 0 && (r = ct), t === 0) return r(n, n, n);
631
+ function I(e, t, n, r) {
632
+ if (r === void 0 && (r = st), t === 0) return r(n, n, n);
633
633
  var i = (e % 360 + 360) % 360 / 60, a = (1 - Math.abs(2 * n - 1)) * t, o = a * (1 - Math.abs(i % 2 - 1)), s = 0, c = 0, l = 0;
634
634
  i >= 0 && i < 1 ? (s = a, c = o) : i >= 1 && i < 2 ? (s = o, c = a) : i >= 2 && i < 3 ? (c = a, l = o) : i >= 3 && i < 4 ? (c = o, l = a) : i >= 4 && i < 5 ? (s = o, l = a) : i >= 5 && i < 6 && (s = a, l = o);
635
635
  var u = n - a / 2, d = s + u, f = c + u, p = l + u;
636
636
  return r(d, f, p);
637
637
  }
638
- var lt = {
638
+ var ct = {
639
639
  aliceblue: "f0f8ff",
640
640
  antiquewhite: "faebd7",
641
641
  aqua: "00ffff",
@@ -785,21 +785,21 @@ var lt = {
785
785
  yellow: "ff0",
786
786
  yellowgreen: "9acd32"
787
787
  };
788
- function ut(e) {
788
+ function lt(e) {
789
789
  if (typeof e != "string") return e;
790
790
  var t = e.toLowerCase();
791
- return lt[t] ? "#" + lt[t] : e;
791
+ return ct[t] ? "#" + ct[t] : e;
792
792
  }
793
- var dt = /^#[a-fA-F0-9]{6}$/, ft = /^#[a-fA-F0-9]{8}$/, pt = /^#[a-fA-F0-9]{3}$/, mt = /^#[a-fA-F0-9]{4}$/, ht = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, gt = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, _t = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, vt = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
794
- function I(e) {
795
- if (typeof e != "string") throw new P(3);
796
- var t = ut(e);
797
- if (t.match(dt)) return {
793
+ var ut = /^#[a-fA-F0-9]{6}$/, dt = /^#[a-fA-F0-9]{8}$/, ft = /^#[a-fA-F0-9]{3}$/, pt = /^#[a-fA-F0-9]{4}$/, mt = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, ht = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, gt = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, _t = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
794
+ function L(e) {
795
+ if (typeof e != "string") throw new F(3);
796
+ var t = lt(e);
797
+ if (t.match(ut)) return {
798
798
  red: parseInt("" + t[1] + t[2], 16),
799
799
  green: parseInt("" + t[3] + t[4], 16),
800
800
  blue: parseInt("" + t[5] + t[6], 16)
801
801
  };
802
- if (t.match(ft)) {
802
+ if (t.match(dt)) {
803
803
  var n = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2));
804
804
  return {
805
805
  red: parseInt("" + t[1] + t[2], 16),
@@ -808,12 +808,12 @@ function I(e) {
808
808
  alpha: n
809
809
  };
810
810
  }
811
- if (t.match(pt)) return {
811
+ if (t.match(ft)) return {
812
812
  red: parseInt("" + t[1] + t[1], 16),
813
813
  green: parseInt("" + t[2] + t[2], 16),
814
814
  blue: parseInt("" + t[3] + t[3], 16)
815
815
  };
816
- if (t.match(mt)) {
816
+ if (t.match(pt)) {
817
817
  var r = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2));
818
818
  return {
819
819
  red: parseInt("" + t[1] + t[1], 16),
@@ -822,33 +822,33 @@ function I(e) {
822
822
  alpha: r
823
823
  };
824
824
  }
825
- var i = ht.exec(t);
825
+ var i = mt.exec(t);
826
826
  if (i) return {
827
827
  red: parseInt("" + i[1], 10),
828
828
  green: parseInt("" + i[2], 10),
829
829
  blue: parseInt("" + i[3], 10)
830
830
  };
831
- var a = gt.exec(t.substring(0, 50));
831
+ var a = ht.exec(t.substring(0, 50));
832
832
  if (a) return {
833
833
  red: parseInt("" + a[1], 10),
834
834
  green: parseInt("" + a[2], 10),
835
835
  blue: parseInt("" + a[3], 10),
836
836
  alpha: parseFloat("" + a[4]) > 1 ? parseFloat("" + a[4]) / 100 : parseFloat("" + a[4])
837
837
  };
838
- var o = _t.exec(t);
838
+ var o = gt.exec(t);
839
839
  if (o) {
840
- var s = "rgb(" + F(parseInt("" + o[1], 10), parseInt("" + o[2], 10) / 100, parseInt("" + o[3], 10) / 100) + ")", c = ht.exec(s);
841
- if (!c) throw new P(4, t, s);
840
+ var s = "rgb(" + I(parseInt("" + o[1], 10), parseInt("" + o[2], 10) / 100, parseInt("" + o[3], 10) / 100) + ")", c = mt.exec(s);
841
+ if (!c) throw new F(4, t, s);
842
842
  return {
843
843
  red: parseInt("" + c[1], 10),
844
844
  green: parseInt("" + c[2], 10),
845
845
  blue: parseInt("" + c[3], 10)
846
846
  };
847
847
  }
848
- var l = vt.exec(t.substring(0, 50));
848
+ var l = _t.exec(t.substring(0, 50));
849
849
  if (l) {
850
- var u = "rgb(" + F(parseInt("" + l[1], 10), parseInt("" + l[2], 10) / 100, parseInt("" + l[3], 10) / 100) + ")", d = ht.exec(u);
851
- if (!d) throw new P(4, t, u);
850
+ var u = "rgb(" + I(parseInt("" + l[1], 10), parseInt("" + l[2], 10) / 100, parseInt("" + l[3], 10) / 100) + ")", d = mt.exec(u);
851
+ if (!d) throw new F(4, t, u);
852
852
  return {
853
853
  red: parseInt("" + d[1], 10),
854
854
  green: parseInt("" + d[2], 10),
@@ -856,9 +856,9 @@ function I(e) {
856
856
  alpha: parseFloat("" + l[4]) > 1 ? parseFloat("" + l[4]) / 100 : parseFloat("" + l[4])
857
857
  };
858
858
  }
859
- throw new P(5);
859
+ throw new F(5);
860
860
  }
861
- function yt(e) {
861
+ function vt(e) {
862
862
  var t = e.red / 255, n = e.green / 255, r = e.blue / 255, i = Math.max(t, n, r), a = Math.min(t, n, r), o = (i + a) / 2;
863
863
  if (i === a) return e.alpha === void 0 ? {
864
864
  hue: 0,
@@ -893,161 +893,200 @@ function yt(e) {
893
893
  alpha: e.alpha
894
894
  };
895
895
  }
896
- function L(e) {
897
- return yt(I(e));
896
+ function R(e) {
897
+ return vt(L(e));
898
898
  }
899
- var bt = function(e) {
899
+ var yt = function(e) {
900
900
  return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] ? "#" + e[1] + e[3] + e[5] : e;
901
901
  };
902
- function R(e) {
902
+ function z(e) {
903
903
  var t = e.toString(16);
904
904
  return t.length === 1 ? "0" + t : t;
905
905
  }
906
- function xt(e) {
907
- return R(Math.round(e * 255));
906
+ function bt(e) {
907
+ return z(Math.round(e * 255));
908
908
  }
909
- function St(e, t, n) {
910
- return bt("#" + xt(e) + xt(t) + xt(n));
909
+ function xt(e, t, n) {
910
+ return yt("#" + bt(e) + bt(t) + bt(n));
911
911
  }
912
- function z(e, t, n) {
913
- return F(e, t, n, St);
912
+ function B(e, t, n) {
913
+ return I(e, t, n, xt);
914
914
  }
915
- function Ct(e, t, n) {
916
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return z(e, t, n);
917
- if (typeof e == "object" && t === void 0 && n === void 0) return z(e.hue, e.saturation, e.lightness);
918
- throw new P(1);
915
+ function St(e, t, n) {
916
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return B(e, t, n);
917
+ if (typeof e == "object" && t === void 0 && n === void 0) return B(e.hue, e.saturation, e.lightness);
918
+ throw new F(1);
919
919
  }
920
- function wt(e, t, n, r) {
921
- if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? z(e, t, n) : "rgba(" + F(e, t, n) + "," + r + ")";
922
- if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? z(e.hue, e.saturation, e.lightness) : "rgba(" + F(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")";
923
- throw new P(2);
920
+ function Ct(e, t, n, r) {
921
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? B(e, t, n) : "rgba(" + I(e, t, n) + "," + r + ")";
922
+ if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? B(e.hue, e.saturation, e.lightness) : "rgba(" + I(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")";
923
+ throw new F(2);
924
924
  }
925
- function Tt(e, t, n) {
926
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return bt("#" + R(e) + R(t) + R(n));
927
- if (typeof e == "object" && t === void 0 && n === void 0) return bt("#" + R(e.red) + R(e.green) + R(e.blue));
928
- throw new P(6);
925
+ function wt(e, t, n) {
926
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return yt("#" + z(e) + z(t) + z(n));
927
+ if (typeof e == "object" && t === void 0 && n === void 0) return yt("#" + z(e.red) + z(e.green) + z(e.blue));
928
+ throw new F(6);
929
929
  }
930
- function B(e, t, n, r) {
930
+ function V(e, t, n, r) {
931
931
  if (typeof e == "string" && typeof t == "number") {
932
- var i = I(e);
932
+ var i = L(e);
933
933
  return "rgba(" + i.red + "," + i.green + "," + i.blue + "," + t + ")";
934
- } else if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? Tt(e, t, n) : "rgba(" + e + "," + t + "," + n + "," + r + ")";
935
- else if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? Tt(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")";
936
- throw new P(7);
934
+ } else if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? wt(e, t, n) : "rgba(" + e + "," + t + "," + n + "," + r + ")";
935
+ else if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? wt(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")";
936
+ throw new F(7);
937
937
  }
938
- var Et = function(e) {
938
+ var Tt = function(e) {
939
939
  return typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && (typeof e.alpha != "number" || e.alpha === void 0);
940
- }, Dt = function(e) {
940
+ }, Et = function(e) {
941
941
  return typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && typeof e.alpha == "number";
942
- }, Ot = function(e) {
942
+ }, Dt = function(e) {
943
943
  return typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && (typeof e.alpha != "number" || e.alpha === void 0);
944
- }, kt = function(e) {
944
+ }, Ot = function(e) {
945
945
  return typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && typeof e.alpha == "number";
946
946
  };
947
- function V(e) {
948
- if (typeof e != "object") throw new P(8);
949
- if (Dt(e)) return B(e);
950
- if (Et(e)) return Tt(e);
951
- if (kt(e)) return wt(e);
947
+ function H(e) {
948
+ if (typeof e != "object") throw new F(8);
949
+ if (Et(e)) return V(e);
950
+ if (Tt(e)) return wt(e);
952
951
  if (Ot(e)) return Ct(e);
953
- throw new P(8);
952
+ if (Dt(e)) return St(e);
953
+ throw new F(8);
954
954
  }
955
- function At(e, t, n) {
955
+ function kt(e, t, n) {
956
956
  return function() {
957
957
  var r = n.concat(Array.prototype.slice.call(arguments));
958
- return r.length >= t ? e.apply(this, r) : At(e, t, r);
958
+ return r.length >= t ? e.apply(this, r) : kt(e, t, r);
959
959
  };
960
960
  }
961
- function H(e) {
962
- return At(e, e.length, []);
961
+ function U(e) {
962
+ return kt(e, e.length, []);
963
963
  }
964
- function jt(e, t) {
964
+ function At(e, t) {
965
965
  if (t === "transparent") return t;
966
- var n = L(t);
967
- return V(M({}, n, { hue: n.hue + parseFloat(e) }));
966
+ var n = R(t);
967
+ return H(N({}, n, { hue: n.hue + parseFloat(e) }));
968
968
  }
969
- H(jt);
970
- function U(e, t, n) {
969
+ U(At);
970
+ function W(e, t, n) {
971
971
  return Math.max(e, Math.min(t, n));
972
972
  }
973
- function Mt(e, t) {
973
+ function jt(e, t) {
974
974
  if (t === "transparent") return t;
975
- var n = L(t);
976
- return V(M({}, n, { lightness: U(0, 1, n.lightness - parseFloat(e)) }));
975
+ var n = R(t);
976
+ return H(N({}, n, { lightness: W(0, 1, n.lightness - parseFloat(e)) }));
977
977
  }
978
- var Nt = H(Mt);
979
- function Pt(e, t) {
978
+ var G = U(jt);
979
+ function Mt(e, t) {
980
980
  if (t === "transparent") return t;
981
- var n = L(t);
982
- return V(M({}, n, { saturation: U(0, 1, n.saturation - parseFloat(e)) }));
981
+ var n = R(t);
982
+ return H(N({}, n, { saturation: W(0, 1, n.saturation - parseFloat(e)) }));
983
983
  }
984
- H(Pt);
985
- function Ft(e, t) {
984
+ U(Mt);
985
+ function Nt(e, t) {
986
986
  if (t === "transparent") return t;
987
- var n = L(t);
988
- return V(M({}, n, { lightness: U(0, 1, n.lightness + parseFloat(e)) }));
987
+ var n = R(t);
988
+ return H(N({}, n, { lightness: W(0, 1, n.lightness + parseFloat(e)) }));
989
989
  }
990
- var W = H(Ft);
991
- function It(e, t, n) {
990
+ var K = U(Nt);
991
+ function Pt(e, t, n) {
992
992
  if (t === "transparent") return n;
993
993
  if (n === "transparent") return t;
994
994
  if (e === 0) return n;
995
- var r = I(t), i = M({}, r, { alpha: typeof r.alpha == "number" ? r.alpha : 1 }), a = I(n), o = M({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), s = i.alpha - o.alpha, c = parseFloat(e) * 2 - 1, l = ((c * s === -1 ? c : c + s) / (1 + c * s) + 1) / 2, u = 1 - l;
996
- return B({
995
+ var r = L(t), i = N({}, r, { alpha: typeof r.alpha == "number" ? r.alpha : 1 }), a = L(n), o = N({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), s = i.alpha - o.alpha, c = parseFloat(e) * 2 - 1, l = ((c * s === -1 ? c : c + s) / (1 + c * s) + 1) / 2, u = 1 - l;
996
+ return V({
997
997
  red: Math.floor(i.red * l + o.red * u),
998
998
  green: Math.floor(i.green * l + o.green * u),
999
999
  blue: Math.floor(i.blue * l + o.blue * u),
1000
1000
  alpha: i.alpha * parseFloat(e) + o.alpha * (1 - parseFloat(e))
1001
1001
  });
1002
1002
  }
1003
- var Lt = H(It);
1004
- function Rt(e, t) {
1003
+ var Ft = U(Pt);
1004
+ function It(e, t) {
1005
1005
  if (t === "transparent") return t;
1006
- var n = I(t);
1007
- return B(M({}, n, { alpha: U(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 + parseFloat(e) * 100) / 100) }));
1006
+ var n = L(t);
1007
+ return V(N({}, n, { alpha: W(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 + parseFloat(e) * 100) / 100) }));
1008
1008
  }
1009
- H(Rt);
1010
- function zt(e, t) {
1009
+ U(It);
1010
+ function Lt(e, t) {
1011
1011
  if (t === "transparent") return t;
1012
- var n = L(t);
1013
- return V(M({}, n, { saturation: U(0, 1, n.saturation + parseFloat(e)) }));
1012
+ var n = R(t);
1013
+ return H(N({}, n, { saturation: W(0, 1, n.saturation + parseFloat(e)) }));
1014
+ }
1015
+ U(Lt);
1016
+ function Rt(e, t) {
1017
+ return t === "transparent" ? t : H(N({}, R(t), { hue: parseFloat(e) }));
1014
1018
  }
1015
- H(zt);
1019
+ U(Rt);
1020
+ function zt(e, t) {
1021
+ return t === "transparent" ? t : H(N({}, R(t), { lightness: parseFloat(e) }));
1022
+ }
1023
+ U(zt);
1016
1024
  function Bt(e, t) {
1017
- return t === "transparent" ? t : V(M({}, L(t), { hue: parseFloat(e) }));
1025
+ return t === "transparent" ? t : H(N({}, R(t), { saturation: parseFloat(e) }));
1018
1026
  }
1019
- H(Bt);
1027
+ U(Bt);
1020
1028
  function Vt(e, t) {
1021
- return t === "transparent" ? t : V(M({}, L(t), { lightness: parseFloat(e) }));
1029
+ return t === "transparent" ? t : Ft(parseFloat(e), "rgb(0, 0, 0)", t);
1022
1030
  }
1023
- H(Vt);
1031
+ U(Vt);
1024
1032
  function Ht(e, t) {
1025
- return t === "transparent" ? t : V(M({}, L(t), { saturation: parseFloat(e) }));
1033
+ return t === "transparent" ? t : Ft(parseFloat(e), "rgb(255, 255, 255)", t);
1026
1034
  }
1027
- H(Ht);
1035
+ U(Ht);
1028
1036
  function Ut(e, t) {
1029
- return t === "transparent" ? t : Lt(parseFloat(e), "rgb(0, 0, 0)", t);
1030
- }
1031
- H(Ut);
1032
- function Wt(e, t) {
1033
- return t === "transparent" ? t : Lt(parseFloat(e), "rgb(255, 255, 255)", t);
1034
- }
1035
- H(Wt);
1036
- function Gt(e, t) {
1037
1037
  if (t === "transparent") return t;
1038
- var n = I(t);
1039
- return B(M({}, n, { alpha: U(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 - parseFloat(e) * 100).toFixed(2) / 100) }));
1038
+ var n = L(t);
1039
+ return V(N({}, n, { alpha: W(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 - parseFloat(e) * 100).toFixed(2) / 100) }));
1040
1040
  }
1041
- H(Gt);
1041
+ var Wt = U(Ut);
1042
1042
  //#endregion
1043
1043
  //#region src/theme/utils.ts
1044
- var Kt = (e) => {
1045
- let t = j(E, e), n = e.colors?.primary?.main;
1046
- return n && (t.colors.primary.ultraDark = Nt(.15, n), t.colors.primary.dark = n, t.colors.primary.toku = W(.1, n), t.colors.primary.light1 = W(.15, n), t.colors.primary.light2 = W(.2, n), t.colors.primary.light3 = W(.25, n), t.colors.primary.light4 = W(.3, n), t.colors.primary.light5 = W(.35, n)), t;
1047
- }, qt = Symbol("theme"), G = () => {
1048
- let e = l(qt, void 0);
1044
+ function Gt(e) {
1045
+ return {
1046
+ 1: K(.35, e),
1047
+ 2: K(.3, e),
1048
+ 3: K(.25, e),
1049
+ 4: K(.2, e),
1050
+ 5: K(.15, e),
1051
+ 6: K(.12, e),
1052
+ 7: K(.08, e),
1053
+ 8: K(.04, e),
1054
+ 9: e,
1055
+ 10: K(.1, e),
1056
+ 11: G(.1, e),
1057
+ 12: G(.15, e)
1058
+ };
1059
+ }
1060
+ var Kt = [
1061
+ .03,
1062
+ .05,
1063
+ .1,
1064
+ .15,
1065
+ .2,
1066
+ .3,
1067
+ .4,
1068
+ .5,
1069
+ .6,
1070
+ .7,
1071
+ .8,
1072
+ .9
1073
+ ];
1074
+ function qt(e = {}) {
1075
+ let t = M({}, E, e), n = e.colors?.brand?.base ?? e.colors?.primary?.main, r;
1076
+ if (n) {
1077
+ let e = Gt(n);
1078
+ t.colors.primary.main = n, t.colors.primary.ultraDark = e[12], t.colors.primary.dark = n, t.colors.primary.toku = e[10], t.colors.primary.light1 = e[5], t.colors.primary.light2 = e[4], t.colors.primary.light3 = e[3], t.colors.primary.light4 = e[2], t.colors.primary.light5 = e[1], r = {};
1079
+ for (let [t, n] of Object.entries(e)) r[`--color-brand-${t}`] = n;
1080
+ for (let e = 1; e <= 12; e++) r[`--color-brand-a-${e}`] = Wt(1 - Kt[e - 1], n);
1081
+ }
1082
+ return Object.assign(t, { cssVars: r });
1083
+ }
1084
+ //#endregion
1085
+ //#region src/composables/theme.ts
1086
+ var Jt = Symbol("theme"), q = () => {
1087
+ let e = l(Jt, void 0);
1049
1088
  return n(() => e?.value ?? E);
1050
- }, Jt = /* @__PURE__ */ ((e, t) => {
1089
+ }, Yt = /* @__PURE__ */ ((e, t) => {
1051
1090
  let n = e.__vccOpts || e;
1052
1091
  for (let [e, r] of t) n[e] = r;
1053
1092
  return n;
@@ -1061,11 +1100,11 @@ var Kt = (e) => {
1061
1100
  v2d9fac57: x(n).colors.primary.main,
1062
1101
  v4320e4fd: x(n).colors.primary.light5
1063
1102
  }));
1064
- let t = e, n = G();
1103
+ let t = e, n = q();
1065
1104
  return (e, n) => (_(), i("div", { class: p(["t-chip", [`t-chip--${t.variant}`]]) }, [b(e.$slots, "default", {}, void 0, !0)], 2));
1066
1105
  }
1067
- }), [["__scopeId", "data-v-519905d4"]]), Yt = (e) => Ze(e), Xt = (e) => {
1068
- let t = G(), r = n(() => Yt(e.value)), i = n(() => r.value === "primary" ? t.value.colors.primary.ultraDark : Nt(.15, t.value.colors[r.value])), a = n(() => r.value === "primary" ? t.value.colors.primary.main : t.value.colors[r.value]), o = n(() => r.value === "primary" ? t.value.colors.primary.light1 : W(.15, t.value.colors[r.value])), s = n(() => r.value === "primary" ? t.value.colors.primary.light2 : W(.2, t.value.colors[r.value])), c = n(() => r.value === "primary" ? t.value.colors.primary.light3 : W(.25, t.value.colors[r.value]));
1106
+ }), [["__scopeId", "data-v-519905d4"]]), Xt = (e) => Xe(e), Zt = (e) => {
1107
+ let t = q(), r = n(() => Xt(e.value)), i = n(() => r.value === "primary" ? t.value.colors.primary.ultraDark : G(.15, t.value.colors[r.value])), a = n(() => r.value === "primary" ? t.value.colors.primary.main : t.value.colors[r.value]), o = n(() => r.value === "primary" ? t.value.colors.primary.light1 : K(.15, t.value.colors[r.value])), s = n(() => r.value === "primary" ? t.value.colors.primary.light2 : K(.2, t.value.colors[r.value])), c = n(() => r.value === "primary" ? t.value.colors.primary.light3 : K(.25, t.value.colors[r.value]));
1069
1108
  return n(() => T({
1070
1109
  "&, *": {
1071
1110
  margin: 0,
@@ -1159,12 +1198,12 @@ var Kt = (e) => {
1159
1198
  "&--tertiary:disabled &__spinner": { color: t.value.colors.gray.medium1 },
1160
1199
  "&--secondary &__spinner, &--tertiary &__spinner": { color: a.value }
1161
1200
  }));
1162
- }, Zt = {
1201
+ }, Qt = {
1163
1202
  variant: "primary",
1164
1203
  size: "medium",
1165
1204
  type: "button",
1166
1205
  color: "primary"
1167
- }, K = /* @__PURE__ */ s({
1206
+ }, J = /* @__PURE__ */ s({
1168
1207
  name: "TButton",
1169
1208
  props: {
1170
1209
  variant: String,
@@ -1179,7 +1218,7 @@ var Kt = (e) => {
1179
1218
  },
1180
1219
  emits: ["click"],
1181
1220
  setup(e, { attrs: t, slots: r, emit: i }) {
1182
- let a = n(() => j({}, Zt, e, t)), s = Xt(n(() => a.value.color)), c = G(), l = n(() => [
1221
+ let a = n(() => M({}, Qt, e, t)), s = Zt(n(() => a.value.color)), c = q(), l = n(() => [
1183
1222
  s.value,
1184
1223
  `${s.value}--${a.value.variant}`,
1185
1224
  `${s.value}--${a.value.size}`,
@@ -1205,8 +1244,8 @@ var Kt = (e) => {
1205
1244
  }, null)
1206
1245
  ]);
1207
1246
  }
1208
- }), Qt = () => {
1209
- let e = G(), t = e.value.colors.gray.light1, r = (e, t) => {
1247
+ }), $t = () => {
1248
+ let e = q(), t = e.value.colors.gray.light1, r = (e, t) => {
1210
1249
  switch (t) {
1211
1250
  case "large": return encodeURIComponent(`<svg width="10" height="9.5" viewBox="0 0 10 9.5" fill="none" xmlns="http://www.w3.org/2000/svg">
1212
1251
  <path d="M0.833344 3.79167L3.75001 6.70834L9.16668 1.29167" stroke="${e}" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
@@ -1302,10 +1341,10 @@ var Kt = (e) => {
1302
1341
  }
1303
1342
  }
1304
1343
  }));
1305
- }, $t = () => `checkbox-${Math.random().toString(36).substring(2, 9)}-${Date.now()}`, en = {
1344
+ }, en = () => `checkbox-${Math.random().toString(36).substring(2, 9)}-${Date.now()}`, tn = {
1306
1345
  size: "large",
1307
1346
  value: !1
1308
- }, tn = /* @__PURE__ */ s({
1347
+ }, nn = /* @__PURE__ */ s({
1309
1348
  name: "TCheckbox",
1310
1349
  props: {
1311
1350
  labelPosition: String,
@@ -1321,7 +1360,7 @@ var Kt = (e) => {
1321
1360
  "update:modelValue"
1322
1361
  ],
1323
1362
  setup(e, { attrs: t, slots: r, emit: i }) {
1324
- let a = $t(), s = n(() => j({}, en, e, t, { id: e.id ?? t.id ?? a })), c = Qt(), l = n(() => [c.value, `${c.value}--${s.value.size}`]), u = n(() => [
1363
+ let a = en(), s = n(() => M({}, tn, e, t, { id: e.id ?? t.id ?? a })), c = $t(), l = n(() => [c.value, `${c.value}--${s.value.size}`]), u = n(() => [
1325
1364
  c.value,
1326
1365
  `${c.value}--${s.value.size}`,
1327
1366
  { [`${c.value}--disabled`]: s.value.disabled }
@@ -1351,8 +1390,8 @@ var Kt = (e) => {
1351
1390
  }, [r.default()])
1352
1391
  ]);
1353
1392
  }
1354
- }), nn = (e) => {
1355
- let t = G();
1393
+ }), rn = (e) => {
1394
+ let t = q();
1356
1395
  return n(() => T({
1357
1396
  "&, *": {
1358
1397
  margin: 0,
@@ -1414,7 +1453,7 @@ var Kt = (e) => {
1414
1453
  marginBlock: "0.5rem"
1415
1454
  }
1416
1455
  }));
1417
- }, rn = () => n(() => T({
1456
+ }, an = () => n(() => T({
1418
1457
  position: "fixed",
1419
1458
  display: "none",
1420
1459
  padding: "0.625rem",
@@ -1443,21 +1482,21 @@ var Kt = (e) => {
1443
1482
  borderTopRightRadius: "0.5rem",
1444
1483
  borderBottomLeftRadius: "0"
1445
1484
  }
1446
- })), an = (e) => {
1485
+ })), on = (e) => {
1447
1486
  let t = [];
1448
1487
  return e?.forEach((e) => {
1449
- e.type?.name === "TDropdownItem" ? t.push(e) : Array.isArray(e.children) && t.push(...an(e.children));
1488
+ e.type?.name === "TDropdownItem" ? t.push(e) : Array.isArray(e.children) && t.push(...on(e.children));
1450
1489
  }), t;
1451
1490
  };
1452
1491
  //#endregion
1453
1492
  //#region src/components/TDropdown/TDropdown.tsx
1454
- function on(e) {
1493
+ function sn(e) {
1455
1494
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !u(e);
1456
1495
  }
1457
- var sn = {
1496
+ var cn = {
1458
1497
  size: "small",
1459
1498
  position: "center"
1460
- }, cn = /* @__PURE__ */ s({
1499
+ }, ln = /* @__PURE__ */ s({
1461
1500
  name: "TDropdown",
1462
1501
  props: {
1463
1502
  open: Boolean,
@@ -1468,7 +1507,7 @@ var sn = {
1468
1507
  },
1469
1508
  emits: ["cancel"],
1470
1509
  setup(t, { slots: r, attrs: i, emit: a }) {
1471
- let s = n(() => j({}, sn, t, i)), c = y(null), l = y(null), u = y(null), d = y({
1510
+ let s = n(() => M({}, cn, t, i)), c = y(null), l = y(null), u = y(null), d = y({
1472
1511
  top: 0,
1473
1512
  left: 0
1474
1513
  }), f = () => {
@@ -1504,7 +1543,7 @@ var sn = {
1504
1543
  top: r,
1505
1544
  left: i
1506
1545
  };
1507
- }, p = rn(), m = n(() => [
1546
+ }, p = an(), m = n(() => [
1508
1547
  p.value,
1509
1548
  `${p.value}--${s.value.size}`,
1510
1549
  `${p.value}--${s.value.position}`,
@@ -1513,7 +1552,7 @@ var sn = {
1513
1552
  top: `${d.value.top}px`,
1514
1553
  left: `${d.value.left}px`,
1515
1554
  width: s.value.fullWidth ? `${l.value?.clientWidth}px` : void 0
1516
- })), v = nn(n(() => u.value?.clientHeight ?? 0)), b = n(() => [
1555
+ })), v = rn(n(() => u.value?.clientHeight ?? 0)), b = n(() => [
1517
1556
  v.value,
1518
1557
  `${v.value}--${s.value.size}`,
1519
1558
  `${v.value}--${s.value.position}`,
@@ -1545,7 +1584,7 @@ var sn = {
1545
1584
  }), g(() => {
1546
1585
  s.value.attachToBody && (window.removeEventListener("scroll", f), window.removeEventListener("resize", f)), document.removeEventListener("click", x), document.removeEventListener("keydown", S);
1547
1586
  });
1548
- let T = n(() => an(r.default?.() || [])), E = () => o("div", {
1587
+ let T = n(() => on(r.default?.() || [])), E = () => o("div", {
1549
1588
  ref: u,
1550
1589
  class: s.value.attachToBody ? m.value : `${v.value}__menu`,
1551
1590
  style: s.value.attachToBody ? _.value : void 0,
@@ -1557,11 +1596,11 @@ var sn = {
1557
1596
  return o("div", {
1558
1597
  ref: c,
1559
1598
  class: b.value
1560
- }, [o("div", { ref: l }, [r.trigger?.()]), s.value.open && (s.value.attachToBody ? o(e, { to: "body" }, on(t = E()) ? t : { default: () => [t] }) : E())]);
1599
+ }, [o("div", { ref: l }, [r.trigger?.()]), s.value.open && (s.value.attachToBody ? o(e, { to: "body" }, sn(t = E()) ? t : { default: () => [t] }) : E())]);
1561
1600
  };
1562
1601
  }
1563
- }), ln = () => {
1564
- let e = G();
1602
+ }), un = () => {
1603
+ let e = q();
1565
1604
  return n(() => T({
1566
1605
  "&, *": {
1567
1606
  margin: 0,
@@ -1584,12 +1623,12 @@ var sn = {
1584
1623
  cursor: "not-allowed"
1585
1624
  }
1586
1625
  }));
1587
- }, un = /* @__PURE__ */ s({
1626
+ }, dn = /* @__PURE__ */ s({
1588
1627
  name: "TDropdownItem",
1589
1628
  emits: ["click"],
1590
1629
  props: { disabled: Boolean },
1591
1630
  setup(e, { slots: t, emit: r, attrs: i }) {
1592
- let a = n(() => j({}, e, i)), s = ln(), c = n(() => [s.value, { [`${s.value}--disabled`]: a.value.disabled }]), l = () => {
1631
+ let a = n(() => M({}, e, i)), s = un(), c = n(() => [s.value, { [`${s.value}--disabled`]: a.value.disabled }]), l = () => {
1593
1632
  a.value.disabled || r("click");
1594
1633
  }, u = (e) => {
1595
1634
  e.key === "Enter" && !a.value.disabled && (r("click"), e.preventDefault());
@@ -1603,8 +1642,8 @@ var sn = {
1603
1642
  "aria-disabled": a.value.disabled
1604
1643
  }, [t.default?.()]);
1605
1644
  }
1606
- }), dn = () => {
1607
- let e = G();
1645
+ }), fn = () => {
1646
+ let e = q();
1608
1647
  return n(() => T({
1609
1648
  "&, *": {
1610
1649
  margin: 0,
@@ -1679,7 +1718,7 @@ var sn = {
1679
1718
  transform: "translateY(50%)"
1680
1719
  }
1681
1720
  }));
1682
- }, fn = { type: "text" }, pn = /* @__PURE__ */ s({
1721
+ }, pn = { type: "text" }, mn = /* @__PURE__ */ s({
1683
1722
  name: "TTextInput",
1684
1723
  emits: [
1685
1724
  "input",
@@ -1715,7 +1754,7 @@ var sn = {
1715
1754
  step: [String, Number]
1716
1755
  },
1717
1756
  setup(e, { attrs: t, emit: r, slots: i, expose: a }) {
1718
- let s = n(() => j({}, fn, e, t)), c = dn(), l = G(), u = n({
1757
+ let s = n(() => M({}, pn, e, t)), c = fn(), l = q(), u = n({
1719
1758
  get: () => s.value.modelValue === void 0 ? s.value.value : s.value.modelValue,
1720
1759
  set: (e) => {
1721
1760
  r("update:modelValue", e), r("input", e), r("change", e);
@@ -1779,7 +1818,7 @@ var sn = {
1779
1818
  i.helperText?.() || s.value.helperText && o("p", { class: `${c.value}__helper-text` }, [s.value.helperText])
1780
1819
  ]);
1781
1820
  }
1782
- }), mn = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""), hn = /* @__PURE__ */ s({
1821
+ }), hn = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""), gn = /* @__PURE__ */ s({
1783
1822
  name: "TCombobox",
1784
1823
  emits: [
1785
1824
  "input",
@@ -1827,7 +1866,7 @@ var sn = {
1827
1866
  }, S = (e) => {
1828
1867
  e.key === "Escape" && (f(), m(), p());
1829
1868
  }, w = n(() => i.value === "" ? e.options : e.options.filter((e) => {
1830
- let t = mn(e.label), n = mn(i.value);
1869
+ let t = hn(e.label), n = hn(i.value);
1831
1870
  return t.includes(n);
1832
1871
  }));
1833
1872
  h(() => {
@@ -1835,7 +1874,7 @@ var sn = {
1835
1874
  }), g(() => {
1836
1875
  document.removeEventListener("click", b), c.value?.removeEventListener("keydown", S);
1837
1876
  });
1838
- let T = () => o(pn, {
1877
+ let T = () => o(mn, {
1839
1878
  ref: l,
1840
1879
  modelValue: i.value,
1841
1880
  label: e.label,
@@ -1852,19 +1891,19 @@ var sn = {
1852
1891
  role: "combobox",
1853
1892
  "aria-controls": "menu",
1854
1893
  "aria-expanded": s.value
1855
- }, [o(cn, {
1894
+ }, [o(ln, {
1856
1895
  open: s.value,
1857
1896
  "full-width": !0
1858
1897
  }, {
1859
1898
  trigger: () => o(T, null, null),
1860
- default: () => w.value.map((e) => o(un, { onClick: () => x(e) }, { default: () => [e.label] }))
1899
+ default: () => w.value.map((e) => o(dn, { onClick: () => x(e) }, { default: () => [e.label] }))
1861
1900
  })]);
1862
1901
  }
1863
- }), gn = {
1902
+ }), _n = {
1864
1903
  color: "#000",
1865
1904
  size: "medium",
1866
1905
  variant: "outline"
1867
- }, q = /* @__PURE__ */ s({
1906
+ }, Y = /* @__PURE__ */ s({
1868
1907
  name: "TIcon",
1869
1908
  props: {
1870
1909
  icon: {
@@ -1876,7 +1915,7 @@ var sn = {
1876
1915
  variant: String
1877
1916
  },
1878
1917
  setup(e, { attrs: t }) {
1879
- let r = n(() => j({}, gn, e, t)), i = G(), a = n(() => O(i.value.colors, r.value.color) || r.value.color), s = n(() => `${i.value.iconSet}:${r.value.icon}${r.value.variant === "solid" ? "-solid" : ""}`), c = {
1918
+ let r = n(() => M({}, _n, e, t)), i = q(), a = n(() => O(i.value.colors, r.value.color) || r.value.color), s = n(() => `${i.value.iconSet}:${r.value.icon}${r.value.variant === "solid" ? "-solid" : ""}`), c = {
1880
1919
  miniature: "6px",
1881
1920
  "extra-small": "10px",
1882
1921
  small: "16px",
@@ -1892,8 +1931,8 @@ var sn = {
1892
1931
  width: l.value
1893
1932
  }, t), null);
1894
1933
  }
1895
- }), _n = () => {
1896
- let e = G();
1934
+ }), vn = () => {
1935
+ let e = q();
1897
1936
  return n(() => T({
1898
1937
  "&, & > *": {
1899
1938
  margin: 0,
@@ -1965,7 +2004,7 @@ var sn = {
1965
2004
  zIndex: 45
1966
2005
  }
1967
2006
  }));
1968
- }, vn = { size: "medium" }, J = /* @__PURE__ */ s({
2007
+ }, yn = { size: "medium" }, bn = /* @__PURE__ */ s({
1969
2008
  name: "TModal",
1970
2009
  props: {
1971
2010
  open: Boolean,
@@ -1976,7 +2015,7 @@ var sn = {
1976
2015
  },
1977
2016
  emits: ["close", "cancel"],
1978
2017
  setup(e, { slots: t, attrs: r, emit: i, expose: a }) {
1979
- let s = n(() => j({}, vn, e, r)), c = y(s.value.open), l = _n(), u = n(() => [
2018
+ let s = n(() => M({}, yn, e, r)), c = y(s.value.open), l = vn(), u = n(() => [
1980
2019
  l.value,
1981
2020
  `${l.value}--${s.value.size}`,
1982
2021
  {
@@ -2029,7 +2068,7 @@ var sn = {
2029
2068
  class: `${l.value}__close-button`,
2030
2069
  onClick: _,
2031
2070
  "aria-label": "Close"
2032
- }, [o(q, { icon: "x-mark" }, null)])]),
2071
+ }, [o(Y, { icon: "x-mark" }, null)])]),
2033
2072
  (t.body || t.default) && o("div", {
2034
2073
  id: "modal-body",
2035
2074
  class: `${l.value}__body`
@@ -2038,8 +2077,8 @@ var sn = {
2038
2077
  ]);
2039
2078
  return s.value.nonBlocking ? () => o("div", null, [s.value.nonBlocking && c.value && o("div", { class: `${l.value}__backdrop` }, null), o(x, null, null)]) : () => o(x, null, null);
2040
2079
  }
2041
- }), yn = (e) => {
2042
- let t = G();
2080
+ }), xn = (e) => {
2081
+ let t = q();
2043
2082
  return n(() => T({
2044
2083
  margin: 0,
2045
2084
  padding: 0,
@@ -2113,7 +2152,7 @@ var sn = {
2113
2152
  "&--normal": { fontStyle: "normal" },
2114
2153
  "&--italic": { fontStyle: "italic" }
2115
2154
  }));
2116
- }, bn = {
2155
+ }, Sn = {
2117
2156
  h1: "h1",
2118
2157
  h2: "h2",
2119
2158
  h3: "h3",
@@ -2129,13 +2168,13 @@ var sn = {
2129
2168
  b4: "p",
2130
2169
  b5: "p",
2131
2170
  b6: "p"
2132
- }, xn = [
2171
+ }, Cn = [
2133
2172
  "http:",
2134
2173
  "https:",
2135
2174
  "mailto:",
2136
2175
  "tel:",
2137
2176
  "ftp:"
2138
- ], Sn = (e) => xn.some((t) => e.trim().toLowerCase().startsWith(t)), Cn = (e) => {
2177
+ ], wn = (e) => Cn.some((t) => e.trim().toLowerCase().startsWith(t)), Tn = (e) => {
2139
2178
  let t = [
2140
2179
  {
2141
2180
  regex: /\*\*([\s\S]+?)\*\*/g,
@@ -2159,64 +2198,64 @@ var sn = {
2159
2198
  url: a ? t[2]?.trim() : void 0
2160
2199
  });
2161
2200
  return n;
2162
- }, wn = (e) => {
2201
+ }, En = (e) => {
2163
2202
  let t = [...e].sort((e, t) => e.start - t.start || t.end - e.end), n = [], r = 0;
2164
2203
  for (let e of t) e.start >= r && (n.push(e), r = e.end);
2165
2204
  return n;
2166
- }, Y = (e) => {
2205
+ }, X = (e) => {
2167
2206
  if (!e) return [e];
2168
- let t = Cn(e);
2207
+ let t = Tn(e);
2169
2208
  if (t.length === 0) return [e];
2170
- let n = wn(t), r = [], i = 0;
2209
+ let n = En(t), r = [], i = 0;
2171
2210
  for (let t of n) {
2172
2211
  t.start > i && r.push(e.substring(i, t.start));
2173
- let n = Y(t.content);
2174
- t.tag === "a" ? t.url && Sn(t.url) ? r.push(c("a", {
2212
+ let n = X(t.content);
2213
+ t.tag === "a" ? t.url && wn(t.url) ? r.push(c("a", {
2175
2214
  href: t.url,
2176
2215
  target: "_blank",
2177
2216
  rel: "noopener noreferrer"
2178
2217
  }, n)) : r.push(...n) : r.push(c(t.tag, n)), i = t.end;
2179
2218
  }
2180
2219
  return i < e.length && r.push(e.substring(i)), r.length > 0 ? r : [e];
2181
- }, X = (e) => typeof e == "object" && !!e && "type" in e && e.type !== void 0, Z = (e) => {
2182
- if (e.type === t) return Y(typeof e.children == "string" ? e.children : "");
2220
+ }, Z = (e) => typeof e == "object" && !!e && "type" in e && e.type !== void 0, Q = (e) => {
2221
+ if (e.type === t) return X(typeof e.children == "string" ? e.children : "");
2183
2222
  if (!e.children) return e;
2184
2223
  let n;
2185
2224
  if (Array.isArray(e.children)) n = e.children.flatMap((e) => {
2186
- if (typeof e == "string") return Y(e);
2187
- if (X(e)) {
2188
- let t = Z(e);
2225
+ if (typeof e == "string") return X(e);
2226
+ if (Z(e)) {
2227
+ let t = Q(e);
2189
2228
  return Array.isArray(t) ? t : [t];
2190
2229
  }
2191
2230
  return [];
2192
2231
  });
2193
- else if (typeof e.children == "string") n = Y(e.children);
2194
- else if (X(e.children)) {
2195
- let t = Z(e.children);
2232
+ else if (typeof e.children == "string") n = X(e.children);
2233
+ else if (Z(e.children)) {
2234
+ let t = Q(e.children);
2196
2235
  n = Array.isArray(t) ? t : [t];
2197
2236
  } else return e;
2198
2237
  return c(e.type, { ...e.props }, n);
2199
- }, Tn = (e) => {
2200
- if (typeof e == "string") return Y(e);
2238
+ }, Dn = (e) => {
2239
+ if (typeof e == "string") return X(e);
2201
2240
  if (Array.isArray(e)) return e.flatMap((e) => {
2202
- if (typeof e == "string") return Y(e);
2203
- if (X(e)) {
2204
- let t = Z(e);
2241
+ if (typeof e == "string") return X(e);
2242
+ if (Z(e)) {
2243
+ let t = Q(e);
2205
2244
  return Array.isArray(t) ? t : [t];
2206
2245
  }
2207
2246
  return [e];
2208
2247
  });
2209
- if (X(e)) {
2210
- let t = Z(e);
2248
+ if (Z(e)) {
2249
+ let t = Q(e);
2211
2250
  return Array.isArray(t) ? t : [t];
2212
2251
  }
2213
2252
  return [e];
2214
- }, En = {
2253
+ }, On = {
2215
2254
  fontStyle: "normal",
2216
2255
  fontWeight: "regular",
2217
2256
  variant: "b0",
2218
2257
  color: "#373737"
2219
- }, Q = /* @__PURE__ */ s({
2258
+ }, $ = /* @__PURE__ */ s({
2220
2259
  name: "TTypography",
2221
2260
  props: {
2222
2261
  fontStyle: String,
@@ -2226,21 +2265,21 @@ var sn = {
2226
2265
  color: String
2227
2266
  },
2228
2267
  setup(e, { attrs: t, slots: r }) {
2229
- let i = n(() => j({}, En, e, t)), a = G(), o = yn(n(() => O(a.value.colors, i.value.color) || a.value.typography.color).value), s = n(() => [
2268
+ let i = n(() => M({}, On, e, t)), a = q(), o = xn(n(() => O(a.value.colors, i.value.color) || a.value.typography.color).value), s = n(() => [
2230
2269
  o.value,
2231
2270
  `${o.value}--${i.value.variant}`,
2232
2271
  `${o.value}--${i.value.fontWeight}`,
2233
2272
  `${o.value}--${i.value.fontStyle}`
2234
- ]), l = n(() => i.value.as || bn[i.value.variant]);
2273
+ ]), l = n(() => i.value.as || Sn[i.value.variant]);
2235
2274
  return () => {
2236
2275
  let e = r.default?.();
2237
2276
  if (!e) return c(l.value, { class: s.value });
2238
2277
  if (!a.value.parseMarkdown) return c(l.value, { class: s.value }, e);
2239
- let t = Tn(e);
2278
+ let t = Dn(e);
2240
2279
  return c(l.value, { class: s.value }, t);
2241
2280
  };
2242
2281
  }
2243
- }), Dn = () => n(() => T({
2282
+ }), kn = () => n(() => T({
2244
2283
  "& > [class$=\"__body\"]": { paddingBlock: 0 },
2245
2284
  "&__body": {
2246
2285
  display: "flex",
@@ -2253,16 +2292,16 @@ var sn = {
2253
2292
  width: "3.5rem",
2254
2293
  height: "auto"
2255
2294
  }
2256
- })), On = {
2295
+ })), An = {
2257
2296
  cancelText: "Cancel",
2258
2297
  confirmText: "OK"
2259
- }, kn = /* @__PURE__ */ s({
2298
+ }, jn = /* @__PURE__ */ s({
2260
2299
  name: "TDialog",
2261
2300
  components: {
2262
- TTypography: Q,
2263
- TModal: J,
2264
- TButton: K,
2265
- TIcon: q
2301
+ TTypography: $,
2302
+ TModal: bn,
2303
+ TButton: J,
2304
+ TIcon: Y
2266
2305
  },
2267
2306
  props: {
2268
2307
  title: {
@@ -2277,7 +2316,8 @@ var sn = {
2277
2316
  icon: String,
2278
2317
  cancellable: Boolean,
2279
2318
  cancelText: String,
2280
- confirmText: String
2319
+ confirmText: String,
2320
+ size: String
2281
2321
  },
2282
2322
  emits: [
2283
2323
  "confirm",
@@ -2285,42 +2325,43 @@ var sn = {
2285
2325
  "close"
2286
2326
  ],
2287
2327
  setup(e, { emit: t }) {
2288
- let r = n(() => j({}, On, e)), i = Dn(), a = n(() => {
2289
- if (r.value.color) return r.value.color === "primary" ? "primary.main" : Yt(r.value.color);
2328
+ let r = n(() => M({}, An, e)), i = kn(), a = n(() => {
2329
+ if (r.value.color) return r.value.color === "primary" ? "primary.main" : Xt(r.value.color);
2290
2330
  });
2291
- return () => c(J, {
2331
+ return () => c(bn, {
2292
2332
  onClose: () => r.value.cancellable && t("close"),
2293
2333
  onCancel: () => r.value.cancellable && t("cancel"),
2294
2334
  onConfirm: () => t("confirm"),
2295
2335
  class: i.value,
2296
- open: !0
2336
+ open: !0,
2337
+ size: r.value.size
2297
2338
  }, {
2298
- header: () => c(Q, {
2339
+ header: () => c($, {
2299
2340
  variant: "s2",
2300
2341
  fontWeight: "semibold"
2301
2342
  }, () => r.value.title),
2302
- default: () => c("div", { class: `${i.value}__body` }, [r.value.icon ? c(q, {
2343
+ default: () => c("div", { class: `${i.value}__body` }, [r.value.icon ? c(Y, {
2303
2344
  class: `${i.value}__body-icon`,
2304
2345
  variant: "solid",
2305
2346
  color: a.value,
2306
2347
  icon: r.value.icon
2307
- }) : void 0, c(Q, {
2348
+ }) : void 0, c($, {
2308
2349
  class: `${i.value}__body-text`,
2309
2350
  variant: "b1",
2310
2351
  innerHTML: r.value.message
2311
2352
  })]),
2312
- footer: () => [r.value.cancellable ? c(K, {
2353
+ footer: () => [r.value.cancellable ? c(J, {
2313
2354
  onClick: () => t("cancel"),
2314
2355
  color: r.value.color,
2315
2356
  variant: "secondary"
2316
- }, () => r.value.cancelText) : void 0, c(K, {
2357
+ }, () => r.value.cancelText) : void 0, c(J, {
2317
2358
  onClick: () => t("confirm"),
2318
2359
  color: r.value.color
2319
2360
  }, () => r.value.confirmText)]
2320
2361
  });
2321
2362
  }
2322
- }), An = (e) => {
2323
- let t = G(), r = n(() => Yt(e.value)), i = n(() => r.value === "primary" ? t.value.colors.primary.ultraDark : Nt(.15, t.value.colors[r.value])), a = n(() => r.value === "primary" ? t.value.colors.primary.main : t.value.colors[r.value]), o = n(() => r.value === "primary" ? t.value.colors.primary.light1 : W(.15, t.value.colors[r.value])), s = n(() => r.value === "primary" ? t.value.colors.primary.light2 : W(.2, t.value.colors[r.value])), c = n(() => r.value === "primary" ? t.value.colors.primary.light3 : W(.25, t.value.colors[r.value]));
2363
+ }), Mn = (e) => {
2364
+ let t = q(), r = n(() => Xt(e.value)), i = n(() => r.value === "primary" ? t.value.colors.primary.ultraDark : G(.15, t.value.colors[r.value])), a = n(() => r.value === "primary" ? t.value.colors.primary.main : t.value.colors[r.value]), o = n(() => r.value === "primary" ? t.value.colors.primary.light1 : K(.15, t.value.colors[r.value])), s = n(() => r.value === "primary" ? t.value.colors.primary.light2 : K(.2, t.value.colors[r.value])), c = n(() => r.value === "primary" ? t.value.colors.primary.light3 : K(.25, t.value.colors[r.value]));
2324
2365
  return {
2325
2366
  baseClass: n(() => T({
2326
2367
  "&, *": {
@@ -2403,13 +2444,13 @@ var sn = {
2403
2444
  "&--small": { height: "1rem" }
2404
2445
  }))
2405
2446
  };
2406
- }, jn = {
2447
+ }, Nn = {
2407
2448
  variant: "primary",
2408
2449
  size: "medium",
2409
2450
  icon: "academic-cap",
2410
2451
  type: "button",
2411
2452
  color: "primary"
2412
- }, Mn = /* @__PURE__ */ s({
2453
+ }, Pn = /* @__PURE__ */ s({
2413
2454
  name: "TIconButton",
2414
2455
  props: {
2415
2456
  variant: String,
@@ -2423,7 +2464,7 @@ var sn = {
2423
2464
  },
2424
2465
  emits: ["click"],
2425
2466
  setup(e, { attrs: t, emit: r }) {
2426
- let i = n(() => j({}, jn, e, t)), { baseClass: a, iconClass: s } = An(n(() => i.value.color)), c = G(), l = n(() => [
2467
+ let i = n(() => M({}, Nn, e, t)), { baseClass: a, iconClass: s } = Mn(n(() => i.value.color)), c = q(), l = n(() => [
2427
2468
  a.value,
2428
2469
  `${a.value}--${i.value.variant}`,
2429
2470
  `${a.value}--${i.value.size}`,
@@ -2449,8 +2490,8 @@ var sn = {
2449
2490
  class: u.value
2450
2491
  }, null)]);
2451
2492
  }
2452
- }), Nn = () => {
2453
- let e = G();
2493
+ }), Fn = () => {
2494
+ let e = q();
2454
2495
  return n(() => T({
2455
2496
  margin: 0,
2456
2497
  padding: 0,
@@ -2479,10 +2520,10 @@ var sn = {
2479
2520
  fontSize: "0.875rem"
2480
2521
  }
2481
2522
  }));
2482
- }, Pn = {
2523
+ }, In = {
2483
2524
  variant: "primary",
2484
2525
  size: "medium"
2485
- }, Fn = /* @__PURE__ */ s({
2526
+ }, Ln = /* @__PURE__ */ s({
2486
2527
  name: "TButton",
2487
2528
  props: {
2488
2529
  variant: String,
@@ -2492,7 +2533,7 @@ var sn = {
2492
2533
  rightIcon: String
2493
2534
  },
2494
2535
  setup(e, { attrs: t, slots: r }) {
2495
- let i = n(() => j({}, Pn, e, t)), a = Nn(), s = G(), c = n(() => [
2536
+ let i = n(() => M({}, In, e, t)), a = Fn(), s = q(), c = n(() => [
2496
2537
  a.value,
2497
2538
  `${a.value}--${i.value.variant}`,
2498
2539
  `${a.value}--${i.value.size}`
@@ -2506,8 +2547,8 @@ var sn = {
2506
2547
  i.value.rightIcon ? o(w, { icon: `${s.value.iconSet}:${i.value.rightIcon}` }, null) : null
2507
2548
  ]);
2508
2549
  }
2509
- }), In = (e) => {
2510
- let t = n(() => e.color), r = G();
2550
+ }), Rn = (e) => {
2551
+ let t = n(() => e.color), r = q();
2511
2552
  return n(() => T({
2512
2553
  margin: 0,
2513
2554
  padding: 0,
@@ -2532,20 +2573,20 @@ var sn = {
2532
2573
  "100%": { transform: "rotate(360deg)" }
2533
2574
  }
2534
2575
  }));
2535
- }, Ln = {
2576
+ }, zn = {
2536
2577
  size: "auto",
2537
2578
  color: "#5C0087"
2538
- }, Rn = /* @__PURE__ */ s({
2579
+ }, Bn = /* @__PURE__ */ s({
2539
2580
  name: "TSpinner",
2540
2581
  props: {
2541
2582
  size: String,
2542
2583
  color: String
2543
2584
  },
2544
2585
  setup(e, { attrs: t }) {
2545
- let r = n(() => j({}, Ln, e, t)), i = G(), a = In({ color: n(() => O(i.value.colors, r.value.color) || r.value.color).value }), s = n(() => [a.value, `${a.value}--${r.value.size}`]);
2586
+ let r = n(() => M({}, zn, e, t)), i = q(), a = Rn({ color: n(() => O(i.value.colors, r.value.color) || r.value.color).value }), s = n(() => [a.value, `${a.value}--${r.value.size}`]);
2546
2587
  return () => o("div", { class: s.value }, null);
2547
2588
  }
2548
- }), zn = () => n(() => T({
2589
+ }), Vn = () => n(() => T({
2549
2590
  bottom: 0,
2550
2591
  left: 0,
2551
2592
  position: "absolute",
@@ -2562,7 +2603,7 @@ var sn = {
2562
2603
  position: "fixed",
2563
2604
  zIndex: 999
2564
2605
  }
2565
- })), Bn = { size: "auto" }, Vn = /* @__PURE__ */ s({
2606
+ })), Hn = { size: "auto" }, Un = /* @__PURE__ */ s({
2566
2607
  name: "TLoading",
2567
2608
  props: {
2568
2609
  active: Boolean,
@@ -2570,14 +2611,14 @@ var sn = {
2570
2611
  size: String
2571
2612
  },
2572
2613
  setup(e, { attrs: t }) {
2573
- let r = n(() => j({}, Bn, e, t)), i = zn(), a = n(() => [i.value, {
2614
+ let r = n(() => M({}, Hn, e, t)), i = Vn(), a = n(() => [i.value, {
2574
2615
  [`${i.value}--active`]: r.value.active,
2575
2616
  [`${i.value}--full-page`]: r.value.fullPage
2576
2617
  }]);
2577
- return () => o("div", { class: a.value }, [o(Rn, { size: r.value.size }, null)]);
2618
+ return () => o("div", { class: a.value }, [o(Bn, { size: r.value.size }, null)]);
2578
2619
  }
2579
- }), Hn = () => {
2580
- let e = G();
2620
+ }), Wn = () => {
2621
+ let e = q();
2581
2622
  return n(() => T({
2582
2623
  "&, *": {
2583
2624
  margin: 0,
@@ -2625,7 +2666,7 @@ var sn = {
2625
2666
  "&--disabled &__radio::after": { background: e.value.colors.gray.medium2 },
2626
2667
  "&--disabled &__label": { color: e.value.colors.gray.medium2 }
2627
2668
  }));
2628
- }, Un = { labelPosition: "right" }, Wn = /* @__PURE__ */ s({
2669
+ }, Gn = { labelPosition: "right" }, Kn = /* @__PURE__ */ s({
2629
2670
  name: "TRadio",
2630
2671
  props: {
2631
2672
  id: String,
@@ -2663,11 +2704,11 @@ var sn = {
2663
2704
  "update:modelValue"
2664
2705
  ],
2665
2706
  setup(e, { emit: t, attrs: r }) {
2666
- let i = n(() => j({}, Un, e, r)), a = y(i.value.modelValue === i.value.value);
2707
+ let i = n(() => M({}, Gn, e, r)), a = y(i.value.modelValue === i.value.value);
2667
2708
  C(() => [i.value.modelValue, i.value.value], () => {
2668
2709
  a.value = i.value.modelValue === i.value.value;
2669
2710
  });
2670
- let s = Hn(), c = n(() => [
2711
+ let s = Wn(), c = n(() => [
2671
2712
  s.value,
2672
2713
  `${s.value}--label-${i.value.labelPosition}`,
2673
2714
  {
@@ -2693,15 +2734,15 @@ var sn = {
2693
2734
  for: i.value.id
2694
2735
  }, [i.value.label])]);
2695
2736
  }
2696
- }), Gn = {
2737
+ }), qn = {
2697
2738
  railTopInset: 3,
2698
2739
  railBottomInset: 8,
2699
2740
  minThumbHeight: 6,
2700
2741
  thumbHeightFactor: .65
2701
2742
  };
2702
- function Kn(e, t = {}) {
2743
+ function Jn(e, t = {}) {
2703
2744
  let { railTopInset: r, railBottomInset: i, minThumbHeight: a, thumbHeightFactor: o, onDragStart: s, onDragEnd: c } = {
2704
- ...Gn,
2745
+ ...qn,
2705
2746
  ...t
2706
2747
  }, l = y(0), u = y(0), d = y(!1), f = y(0), p = y(0), m = n(() => l.value > 0);
2707
2748
  function h() {
@@ -2743,8 +2784,8 @@ function Kn(e, t = {}) {
2743
2784
  }
2744
2785
  //#endregion
2745
2786
  //#region src/components/TSelect/TSelect.styles.tsx
2746
- var qn = () => {
2747
- let e = G();
2787
+ var Yn = () => {
2788
+ let e = q();
2748
2789
  return n(() => T({
2749
2790
  "&, *": {
2750
2791
  margin: 0,
@@ -2873,30 +2914,30 @@ var qn = () => {
2873
2914
  "&--error &__helper-text": { color: e.value.colors.error },
2874
2915
  "&--full-width": { width: "100%" }
2875
2916
  }));
2876
- }, Jn = (e) => typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map((e) => Jn(e)).join("").trim() : e && typeof e == "object" && "children" in e ? Jn(e.children) : "", Yn = (e, t = []) => (e?.forEach((e) => {
2877
- e.type === "option" ? t.push(e) : Array.isArray(e.children) && Yn(e.children, t);
2878
- }), t), Xn = (e) => Yn(e).map((e) => ({
2917
+ }, Xn = (e) => typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map((e) => Xn(e)).join("").trim() : e && typeof e == "object" && "children" in e ? Xn(e.children) : "", Zn = (e, t = []) => (e?.forEach((e) => {
2918
+ e.type === "option" ? t.push(e) : Array.isArray(e.children) && Zn(e.children, t);
2919
+ }), t), Qn = (e) => Zn(e).map((e) => ({
2879
2920
  value: e.props?.value,
2880
2921
  disabled: !!e.props?.disabled,
2881
- label: Jn(e.children)
2882
- })), $ = (e, t) => {
2922
+ label: Xn(e.children)
2923
+ })), $n = (e, t) => {
2883
2924
  if (e === t) return !0;
2884
2925
  if (e == null || t == null || typeof e != "object" || typeof t != "object") return !1;
2885
2926
  let n = Object.getPrototypeOf(e);
2886
2927
  if (n !== Object.prototype || Object.getPrototypeOf(t) !== n) return !1;
2887
2928
  let r = Object.keys(e), i = Object.keys(t);
2888
2929
  return r.length === i.length ? r.every((n) => e[n] === t[n]) : !1;
2889
- }, Zn = (e, t) => {
2890
- let n = e.findIndex((e) => $(e.value, t) && !e.disabled);
2930
+ }, er = (e, t) => {
2931
+ let n = e.findIndex((e) => $n(e.value, t) && !e.disabled);
2891
2932
  if (n >= 0) return n;
2892
2933
  let r = e.findIndex((e) => !e.disabled);
2893
2934
  return r >= 0 ? r : -1;
2894
- }, Qn = (e) => {
2935
+ }, tr = (e) => {
2895
2936
  if (typeof e.leftIcon == "string") return e.leftIcon;
2896
2937
  let t = e["left-icon"];
2897
2938
  return typeof t == "string" ? t : "";
2898
- }, $n = (e, t) => e ? e.includes(":") ? e : `${t}:${e}` : "", er = () => {
2899
- let e = G();
2939
+ }, nr = (e, t) => e ? e.includes(":") ? e : `${t}:${e}` : "", rr = () => {
2940
+ let e = q();
2900
2941
  return n(() => T({
2901
2942
  "&, *": { boxSizing: "border-box" },
2902
2943
  listStyle: "none",
@@ -2927,7 +2968,7 @@ var qn = () => {
2927
2968
  pointerEvents: "none"
2928
2969
  }
2929
2970
  }));
2930
- }, tr = /* @__PURE__ */ s({
2971
+ }, ir = /* @__PURE__ */ s({
2931
2972
  name: "TSelectOption",
2932
2973
  emits: ["select", "hover"],
2933
2974
  props: {
@@ -2938,7 +2979,7 @@ var qn = () => {
2938
2979
  withSeparator: Boolean
2939
2980
  },
2940
2981
  setup(e, { slots: t, emit: r }) {
2941
- let i = er(), a = n(() => [i.value, {
2982
+ let i = rr(), a = n(() => [i.value, {
2942
2983
  [`${i.value}--selected`]: e.selected,
2943
2984
  [`${i.value}--highlighted`]: e.highlighted,
2944
2985
  [`${i.value}--disabled`]: e.disabled,
@@ -2956,16 +2997,16 @@ var qn = () => {
2956
2997
  onMouseenter: s
2957
2998
  }, [t.default?.() || e.label]);
2958
2999
  }
2959
- }), nr = 36;
2960
- function rr(e, t, n) {
3000
+ }), ar = 36;
3001
+ function or(e, t, n) {
2961
3002
  let r = y(!1), i = y(-1), a = y(null), o = y(null), s = y(null), c = y(!1), l = y(!1), u = () => {
2962
- n.value || !e.value.length || (r.value = !0, i.value = Zn(e.value, t.value));
3003
+ n.value || !e.value.length || (r.value = !0, i.value = er(e.value, t.value));
2963
3004
  }, d = () => {
2964
3005
  r.value = !1, i.value = -1, c.value = !1, l.value = !1;
2965
3006
  }, f = (e) => {
2966
3007
  let t = s.value;
2967
3008
  t && t.scrollBy({
2968
- top: e * nr,
3009
+ top: e * ar,
2969
3010
  behavior: "smooth"
2970
3011
  });
2971
3012
  }, p = (e) => {
@@ -3020,7 +3061,7 @@ function rr(e, t, n) {
3020
3061
  }
3021
3062
  //#endregion
3022
3063
  //#region src/components/TSelect/TSelect.tsx
3023
- var ir = /* @__PURE__ */ s({
3064
+ var sr = /* @__PURE__ */ s({
3024
3065
  name: "TSelect",
3025
3066
  emits: [
3026
3067
  "input",
@@ -3064,7 +3105,7 @@ var ir = /* @__PURE__ */ s({
3064
3105
  id: String
3065
3106
  },
3066
3107
  setup(e, { attrs: t, emit: r, slots: i, expose: a }) {
3067
- let s = n(() => j({}, e, t)), c = G(), l = y(null), u = qn(), f = n(() => [
3108
+ let s = n(() => M({}, e, t)), c = q(), l = y(null), u = Yn(), f = n(() => [
3068
3109
  u.value,
3069
3110
  `${u.value}__container`,
3070
3111
  {
@@ -3080,7 +3121,7 @@ var ir = /* @__PURE__ */ s({
3080
3121
  set: (e) => {
3081
3122
  l.value = e, r("update:modelValue", e), r("input", e), r("change", e);
3082
3123
  }
3083
- }), m = n(() => Xn(i.default?.() ?? [])), h = n(() => m.value.find((e) => $(e.value, p.value))), g = n(() => !!h.value), _ = n(() => h.value ? h.value.label : s.value.placeholder ? s.value.placeholder : ""), v = n(() => Qn(s.value)), b = n(() => $n(v.value, c.value.iconSet)), x = rr(m, p, n(() => !!s.value.disabled)), S = Kn(x.menuRef, {
3124
+ }), m = n(() => Qn(i.default?.() ?? [])), h = n(() => m.value.find((e) => $n(e.value, p.value))), g = n(() => !!h.value), _ = n(() => h.value ? h.value.label : s.value.placeholder ? s.value.placeholder : ""), v = n(() => tr(s.value)), b = n(() => nr(v.value, c.value.iconSet)), x = or(m, p, n(() => !!s.value.disabled)), S = Jn(x.menuRef, {
3084
3125
  onDragStart: () => {
3085
3126
  x.isInteractingWithMenu.value = !0;
3086
3127
  },
@@ -3137,10 +3178,10 @@ var ir = /* @__PURE__ */ s({
3137
3178
  role: "listbox",
3138
3179
  ref: x.menuRef,
3139
3180
  onScroll: S.update
3140
- }, [m.value.map((e, t) => o(tr, {
3181
+ }, [m.value.map((e, t) => o(ir, {
3141
3182
  key: `${String(e.value)}-${t}`,
3142
3183
  label: e.label,
3143
- selected: $(e.value, p.value),
3184
+ selected: $n(e.value, p.value),
3144
3185
  highlighted: t === x.highlightedIndex.value,
3145
3186
  disabled: e.disabled,
3146
3187
  withSeparator: t < m.value.length - 1,
@@ -3160,8 +3201,8 @@ var ir = /* @__PURE__ */ s({
3160
3201
  i.helperText?.() || s.value.helperText && o("p", { class: `${u.value}__helper-text` }, [s.value.helperText])
3161
3202
  ]);
3162
3203
  }
3163
- }), ar = () => {
3164
- let e = G();
3204
+ }), cr = () => {
3205
+ let e = q();
3165
3206
  return n(() => T({
3166
3207
  "&, *": {
3167
3208
  margin: 0,
@@ -3243,12 +3284,12 @@ var ir = /* @__PURE__ */ s({
3243
3284
  "&--error &__select:not(:disabled), &--error &__select:focus": { borderColor: e.value.colors.error },
3244
3285
  "&--error + &__helper-text": { color: e.value.colors.error }
3245
3286
  }));
3246
- }, or = (e) => {
3287
+ }, lr = (e) => {
3247
3288
  let t = [];
3248
3289
  return e?.forEach((e) => {
3249
- e.type?.name === "TSelectDropdownItem" ? t.push(e) : Array.isArray(e.children) && t.push(...or(e.children));
3290
+ e.type?.name === "TSelectDropdownItem" ? t.push(e) : Array.isArray(e.children) && t.push(...lr(e.children));
3250
3291
  }), t;
3251
- }, sr = /* @__PURE__ */ s({
3292
+ }, ur = /* @__PURE__ */ s({
3252
3293
  name: "TSelectDropdown",
3253
3294
  props: {
3254
3295
  open: Boolean,
@@ -3262,7 +3303,7 @@ var ir = /* @__PURE__ */ s({
3262
3303
  },
3263
3304
  emits: ["cancel", "click"],
3264
3305
  setup(e, { slots: t, attrs: r, emit: i }) {
3265
- let a = n(() => j({}, e, r)), s = ar(), c = n(() => [
3306
+ let a = n(() => M({}, e, r)), s = cr(), c = n(() => [
3266
3307
  s.value,
3267
3308
  `${s.value}__menu_container`,
3268
3309
  {
@@ -3283,7 +3324,7 @@ var ir = /* @__PURE__ */ s({
3283
3324
  }), g(() => {
3284
3325
  document.removeEventListener("click", d), u.value?.removeEventListener("keydown", f);
3285
3326
  });
3286
- let p = n(() => or(t.default?.() || [])), m = () => {
3327
+ let p = n(() => lr(t.default?.() || [])), m = () => {
3287
3328
  i("click");
3288
3329
  };
3289
3330
  return () => o("div", { class: l.value }, [
@@ -3306,8 +3347,8 @@ var ir = /* @__PURE__ */ s({
3306
3347
  t.helperText?.() || a.value.helperText && o("p", { class: `${s.value}__helper-text` }, [a.value.helperText])
3307
3348
  ]);
3308
3349
  }
3309
- }), cr = () => {
3310
- let e = G();
3350
+ }), dr = () => {
3351
+ let e = q();
3311
3352
  return n(() => T({
3312
3353
  "&, *": {
3313
3354
  margin: 0,
@@ -3335,12 +3376,12 @@ var ir = /* @__PURE__ */ s({
3335
3376
  float: "right"
3336
3377
  }
3337
3378
  }));
3338
- }, lr = /* @__PURE__ */ s({
3379
+ }, fr = /* @__PURE__ */ s({
3339
3380
  name: "TSelectDropdownItem",
3340
3381
  emits: ["click"],
3341
3382
  props: { label: String },
3342
3383
  setup(e, { slots: t, emit: r, attrs: i }) {
3343
- let a = n(() => j({}, e, i)), s = cr(), c = () => {
3384
+ let a = n(() => M({}, e, i)), s = dr(), c = () => {
3344
3385
  r("click");
3345
3386
  }, l = (e) => {
3346
3387
  e.key === "Enter" && !a.value.disabled && (r("click"), e.preventDefault());
@@ -3353,8 +3394,8 @@ var ir = /* @__PURE__ */ s({
3353
3394
  tabindex: 0
3354
3395
  }, [t.default?.(), t.label?.() || a.value.label && o("label", { class: `${s.value}__label` }, [a.value.label])]);
3355
3396
  }
3356
- }), ur = () => {
3357
- let e = G();
3397
+ }), pr = () => {
3398
+ let e = q();
3358
3399
  return n(() => T({
3359
3400
  "&, *": {
3360
3401
  margin: 0,
@@ -3398,7 +3439,7 @@ var ir = /* @__PURE__ */ s({
3398
3439
  "&--disabled &__switch": { background: e.value.colors.gray.light3 },
3399
3440
  "&--label-left &__switch": { order: 1 }
3400
3441
  }));
3401
- }, dr = { labelPosition: "right" }, fr = /* @__PURE__ */ s({
3442
+ }, mr = { labelPosition: "right" }, hr = /* @__PURE__ */ s({
3402
3443
  name: "TSwitch",
3403
3444
  props: {
3404
3445
  label: String,
@@ -3414,7 +3455,7 @@ var ir = /* @__PURE__ */ s({
3414
3455
  "update:modelValue"
3415
3456
  ],
3416
3457
  setup(e, { attrs: t, emit: r }) {
3417
- let i = n(() => j({}, dr, e, t)), a = y(i.value.modelValue || i.value.value);
3458
+ let i = n(() => M({}, mr, e, t)), a = y(i.value.modelValue || i.value.value);
3418
3459
  C([() => i.value.modelValue, () => i.value.value], () => {
3419
3460
  a.value = i.value.modelValue || i.value.value;
3420
3461
  });
@@ -3425,7 +3466,7 @@ var ir = /* @__PURE__ */ s({
3425
3466
  }, l = (e) => {
3426
3467
  let { key: t } = e;
3427
3468
  i.value.disabled || t !== "Enter" && t !== " " || s();
3428
- }, u = ur(), d = n(() => [
3469
+ }, u = pr(), d = n(() => [
3429
3470
  u.value,
3430
3471
  `${u.value}--label-${i.value.labelPosition}`,
3431
3472
  {
@@ -3447,8 +3488,8 @@ var ir = /* @__PURE__ */ s({
3447
3488
  id: i.value.id
3448
3489
  }, [i.value.label])]);
3449
3490
  }
3450
- }), pr = () => {
3451
- let e = G();
3491
+ }), gr = () => {
3492
+ let e = q();
3452
3493
  return n(() => T({
3453
3494
  "&, *": {
3454
3495
  margin: 0,
@@ -3494,7 +3535,7 @@ var ir = /* @__PURE__ */ s({
3494
3535
  }
3495
3536
  }
3496
3537
  }));
3497
- }, mr = /* @__PURE__ */ s({
3538
+ }, _r = /* @__PURE__ */ s({
3498
3539
  name: "TTabBar",
3499
3540
  emits: [
3500
3541
  "input",
@@ -3507,7 +3548,7 @@ var ir = /* @__PURE__ */ s({
3507
3548
  modelValue: String
3508
3549
  },
3509
3550
  setup(e, { attrs: t, emit: r }) {
3510
- let i = n(() => j({}, e, t)), a = pr(), s = y(i.value.modelValue === void 0 ? i.value.value : i.value.modelValue);
3551
+ let i = n(() => M({}, e, t)), a = gr(), s = y(i.value.modelValue === void 0 ? i.value.value : i.value.modelValue);
3511
3552
  C([() => i.value.modelValue, () => i.value.value], () => {
3512
3553
  s.value = i.value.modelValue === void 0 ? i.value.value : i.value.modelValue;
3513
3554
  });
@@ -3529,8 +3570,8 @@ var ir = /* @__PURE__ */ s({
3529
3570
  onClick: () => c(e)
3530
3571
  }, [e])]))])]);
3531
3572
  }
3532
- }), hr = () => {
3533
- let e = G();
3573
+ }), vr = () => {
3574
+ let e = q();
3534
3575
  return n(() => T({
3535
3576
  paddingBottom: "0.625rem",
3536
3577
  color: e.value.colors.gray.main,
@@ -3553,7 +3594,7 @@ var ir = /* @__PURE__ */ s({
3553
3594
  color: e.value.colors.primary.dark
3554
3595
  }
3555
3596
  }));
3556
- }, gr = /* @__PURE__ */ s({
3597
+ }, yr = /* @__PURE__ */ s({
3557
3598
  name: "TTab",
3558
3599
  props: {
3559
3600
  id: {
@@ -3576,7 +3617,7 @@ var ir = /* @__PURE__ */ s({
3576
3617
  }
3577
3618
  },
3578
3619
  setup(e, { slots: t }) {
3579
- let r = hr(), i = l("tabSelection");
3620
+ let r = vr(), i = l("tabSelection");
3580
3621
  if (!i) throw Error("tabSelection provider missing.");
3581
3622
  let { selectTab: a } = i, s = () => {
3582
3623
  a(e.id);
@@ -3592,15 +3633,15 @@ var ir = /* @__PURE__ */ s({
3592
3633
  tabindex: 0
3593
3634
  }, [t.default?.()]);
3594
3635
  }
3595
- }), _r = () => {
3596
- let e = G();
3636
+ }), br = () => {
3637
+ let e = q();
3597
3638
  return n(() => T({
3598
3639
  width: "100%",
3599
3640
  borderBottom: `0.125rem solid ${e.value.colors.gray.medium2}`,
3600
3641
  display: "flex",
3601
3642
  gap: "2.5rem"
3602
3643
  }));
3603
- }, vr = /* @__PURE__ */ s({
3644
+ }, xr = /* @__PURE__ */ s({
3604
3645
  name: "TTabBarExtended",
3605
3646
  emits: ["select"],
3606
3647
  props: {
@@ -3617,7 +3658,7 @@ var ir = /* @__PURE__ */ s({
3617
3658
  ] }
3618
3659
  },
3619
3660
  setup(e, { emit: t }) {
3620
- let r = _r(), i = hr(), s = n(() => e.tabs.map((e, t) => ({
3661
+ let r = br(), i = vr(), s = n(() => e.tabs.map((e, t) => ({
3621
3662
  id: `${t}`,
3622
3663
  label: e.label,
3623
3664
  value: e.value
@@ -3641,7 +3682,7 @@ var ir = /* @__PURE__ */ s({
3641
3682
  e.preventDefault(), e.key === "Enter" && _();
3642
3683
  }, C = (e) => {
3643
3684
  f(e), b();
3644
- }, w = () => o(cn, {
3685
+ }, w = () => o(ln, {
3645
3686
  open: d.value,
3646
3687
  position: "center",
3647
3688
  onCancel: _
@@ -3653,7 +3694,7 @@ var ir = /* @__PURE__ */ s({
3653
3694
  tabindex: 0,
3654
3695
  role: "button"
3655
3696
  }, [a(". . .")]),
3656
- default: () => s.value.map((e) => o(un, {
3697
+ default: () => s.value.map((e) => o(dn, {
3657
3698
  disabled: u.value.id === e.id,
3658
3699
  onClick: () => C(e.id)
3659
3700
  }, { default: () => [e.label] }))
@@ -3661,15 +3702,15 @@ var ir = /* @__PURE__ */ s({
3661
3702
  return () => o("nav", {
3662
3703
  role: "navigation",
3663
3704
  class: [r.value]
3664
- }, [h.value.map((e) => o(gr, {
3705
+ }, [h.value.map((e) => o(yr, {
3665
3706
  key: `${e.label}-${e.id}`,
3666
3707
  id: e.id,
3667
3708
  selected: u.value.id === e.id,
3668
3709
  value: e.value
3669
3710
  }, { default: () => [e.label] })), g.value ? o(w, null, null) : null]);
3670
3711
  }
3671
- }), yr = () => {
3672
- let e = G();
3712
+ }), Sr = () => {
3713
+ let e = q();
3673
3714
  return n(() => T({
3674
3715
  "&, *": {
3675
3716
  margin: 0,
@@ -3729,37 +3770,37 @@ var ir = /* @__PURE__ */ s({
3729
3770
  "&--default > &__status-indicator": { background: e.value.colors.gray.medium1 },
3730
3771
  "&--success": {
3731
3772
  color: e.value.colors.success,
3732
- background: B(e.value.colors.success, .1)
3773
+ background: V(e.value.colors.success, .1)
3733
3774
  },
3734
3775
  "&--success > &__text": { color: e.value.colors.success },
3735
3776
  "&--success > &__status-indicator": { background: e.value.colors.success },
3736
- "&--in-process": { background: B(e.value.colors.inProcess, .1) },
3777
+ "&--in-process": { background: V(e.value.colors.inProcess, .1) },
3737
3778
  "&--in-process > &__text": { color: e.value.colors.inProcessDark },
3738
3779
  "&--in-process > &__status-indicator": { background: e.value.colors.inProcessDark },
3739
- "&--pending": { background: B(e.value.colors.info, .1) },
3780
+ "&--pending": { background: V(e.value.colors.info, .1) },
3740
3781
  "&--pending > &__text": { color: e.value.colors.info },
3741
3782
  "&--pending > &__status-indicator": { background: e.value.colors.info },
3742
- "&--toku": { background: B(e.value.colors.primary.light4, 1) },
3783
+ "&--toku": { background: V(e.value.colors.primary.light4, 1) },
3743
3784
  "&--toku > &__text": { color: e.value.colors.primary.main },
3744
3785
  "&--toku > &__status-indicator": { background: e.value.colors.primary.main },
3745
3786
  "&--error": {
3746
3787
  color: e.value.colors.error,
3747
- background: B(e.value.colors.error, .1)
3788
+ background: V(e.value.colors.error, .1)
3748
3789
  },
3749
3790
  "&--error > &__text": { color: e.value.colors.error },
3750
3791
  "&--error > &__status-indicator": { background: e.value.colors.error }
3751
3792
  }));
3752
- }, br = {
3793
+ }, Cr = {
3753
3794
  size: "medium",
3754
3795
  variant: "default"
3755
- }, xr = /* @__PURE__ */ s({
3796
+ }, wr = /* @__PURE__ */ s({
3756
3797
  name: "TTag",
3757
3798
  props: {
3758
3799
  size: String,
3759
3800
  variant: String
3760
3801
  },
3761
3802
  setup(e, { slots: t }) {
3762
- let r = n(() => j({}, br, e)), i = yr(), a = n(() => [
3803
+ let r = n(() => M({}, Cr, e)), i = Sr(), a = n(() => [
3763
3804
  i.value,
3764
3805
  `${i.value}--${r.value.variant}`,
3765
3806
  `${i.value}--${r.value.size}`
@@ -3772,8 +3813,8 @@ var ir = /* @__PURE__ */ s({
3772
3813
  class: `${i.value}__text ${i.value}__text--${r.value.size}`
3773
3814
  }, [t.default?.()])]);
3774
3815
  }
3775
- }), Sr = () => {
3776
- let e = G();
3816
+ }), Tr = () => {
3817
+ let e = q();
3777
3818
  return n(() => T({
3778
3819
  "&, *": {
3779
3820
  margin: 0,
@@ -3832,7 +3873,7 @@ var ir = /* @__PURE__ */ s({
3832
3873
  "&--error &__helper-text": { color: e.value.colors.error },
3833
3874
  "&--full-width": { width: "100%" }
3834
3875
  }));
3835
- }, Cr = 1, wr = /* @__PURE__ */ s({
3876
+ }, Er = 1, Dr = /* @__PURE__ */ s({
3836
3877
  name: "TTextArea",
3837
3878
  emits: [
3838
3879
  "input",
@@ -3859,7 +3900,7 @@ var ir = /* @__PURE__ */ s({
3859
3900
  }
3860
3901
  },
3861
3902
  setup(e, { attrs: t, emit: r, slots: i, expose: a }) {
3862
- let s = n(() => j({}, e, t)), c = Sr(), l = n({
3903
+ let s = n(() => M({}, e, t)), c = Tr(), l = n({
3863
3904
  get: () => s.value.modelValue === void 0 ? s.value.value : s.value.modelValue,
3864
3905
  set: (e) => {
3865
3906
  r("update:modelValue", e), r("input", e), r("change", e);
@@ -3902,7 +3943,7 @@ var ir = /* @__PURE__ */ s({
3902
3943
  id: s.value.id,
3903
3944
  class: [`${c.value}__textarea`, { [`${c.value}__textarea--auto-resize`]: s.value.autoResize }],
3904
3945
  style: s.value.autoResize ? { height: "auto" } : void 0,
3905
- rows: s.value.autoResize ? Cr : void 0,
3946
+ rows: s.value.autoResize ? Er : void 0,
3906
3947
  placeholder: s.value.placeholder,
3907
3948
  value: l.value,
3908
3949
  onInput: p,
@@ -3915,20 +3956,28 @@ var ir = /* @__PURE__ */ s({
3915
3956
  i.helperText?.() || s.value.helperText && o("p", { class: `${c.value}__helper-text` }, [s.value.helperText])
3916
3957
  ]);
3917
3958
  }
3918
- }), Tr = /* @__PURE__ */ s({
3959
+ }), Or = /* @__PURE__ */ s({
3919
3960
  name: "TThemeProvider",
3920
3961
  inheritAttrs: !1,
3921
3962
  props: { theme: {
3922
3963
  type: Object,
3923
- default: () => {}
3964
+ default: () => ({})
3924
3965
  } },
3925
3966
  setup(e, { slots: t, attrs: r }) {
3926
- return v(qt, n(() => j(E, e.theme))), () => c("div", { ...r }, t.default?.());
3967
+ let i = n(() => qt(e.theme ?? {}));
3968
+ return v(Jt, i), () => {
3969
+ let { cssVars: e } = i.value;
3970
+ return c("div", {
3971
+ ...r,
3972
+ class: ["toku-theme", r.class],
3973
+ style: e ? [r.style, e] : r.style
3974
+ }, t.default?.());
3975
+ };
3927
3976
  }
3928
3977
  });
3929
3978
  //#endregion
3930
3979
  //#region src/composables/click.ts
3931
- function Er(e, t) {
3980
+ function kr(e, t) {
3932
3981
  let n = (n) => {
3933
3982
  let r = e();
3934
3983
  r && !r.contains(n.target) && t();
@@ -3941,7 +3990,7 @@ function Er(e, t) {
3941
3990
  }
3942
3991
  //#endregion
3943
3992
  //#region src/composables/tooltip.ts
3944
- var Dr = (e) => {
3993
+ var Ar = (e) => {
3945
3994
  let t = y(!1), r = null, i = () => {
3946
3995
  t.value = !0, r && clearTimeout(r);
3947
3996
  }, a = () => t.value = !1, o = {
@@ -3953,13 +4002,13 @@ var Dr = (e) => {
3953
4002
  },
3954
4003
  click: { onClick: () => t.value ? a() : i() }
3955
4004
  }, s = n(() => o[e.value ?? "hover"]), c = y(null);
3956
- return Er(() => c.value, a), {
4005
+ return kr(() => c.value, a), {
3957
4006
  isVisible: t,
3958
4007
  triggerHandler: s,
3959
4008
  wrapperRef: c
3960
4009
  };
3961
- }, Or = () => {
3962
- let e = G();
4010
+ }, jr = () => {
4011
+ let e = q();
3963
4012
  return n(() => T({
3964
4013
  position: "relative",
3965
4014
  width: "fit-content",
@@ -4050,11 +4099,11 @@ var Dr = (e) => {
4050
4099
  "&--medium &__tooltip": { maxWidth: "30ch" },
4051
4100
  "&--large &__tooltip": { maxWidth: "35ch" }
4052
4101
  }));
4053
- }, kr = {
4102
+ }, Mr = {
4054
4103
  position: "right",
4055
4104
  size: "medium",
4056
4105
  trigger: "hover"
4057
- }, Ar = /* @__PURE__ */ s({
4106
+ }, Nr = /* @__PURE__ */ s({
4058
4107
  name: "TTooltip",
4059
4108
  props: {
4060
4109
  label: String,
@@ -4064,7 +4113,7 @@ var Dr = (e) => {
4064
4113
  trigger: String
4065
4114
  },
4066
4115
  setup(e, { slots: t, attrs: r }) {
4067
- let i = n(() => j({}, kr, e, r)), { isVisible: a, wrapperRef: s, triggerHandler: c } = Dr(n(() => i.value.trigger)), l = Or(), u = n(() => [
4116
+ let i = n(() => M({}, Mr, e, r)), { isVisible: a, wrapperRef: s, triggerHandler: c } = Ar(n(() => i.value.trigger)), l = jr(), u = n(() => [
4068
4117
  l.value,
4069
4118
  `${l.value}--${i.value.position}`,
4070
4119
  `${l.value}--${i.value.trigger}`,
@@ -4082,8 +4131,8 @@ var Dr = (e) => {
4082
4131
  class: `${l.value}__tooltip`
4083
4132
  }, [t.label?.() || i.value.label])]);
4084
4133
  }
4085
- }), jr = () => {
4086
- let e = G();
4134
+ }), Pr = () => {
4135
+ let e = q();
4087
4136
  return n(() => T({
4088
4137
  "&, *": {
4089
4138
  margin: 0,
@@ -4109,31 +4158,31 @@ var Dr = (e) => {
4109
4158
  "&--success": {
4110
4159
  borderColor: e.value.colors.success,
4111
4160
  color: e.value.colors.success,
4112
- background: B(e.value.colors.success, .2)
4161
+ background: V(e.value.colors.success, .2)
4113
4162
  },
4114
4163
  "&--success > &__text": { color: e.value.colors.success },
4115
4164
  "&--in-process": {
4116
4165
  borderColor: e.value.colors.inProcess,
4117
4166
  color: e.value.colors.inProcess,
4118
- background: B(e.value.colors.inProcess, .2)
4167
+ background: V(e.value.colors.inProcess, .2)
4119
4168
  },
4120
4169
  "&--in-process > &__text": { color: e.value.colors.inProcessDark },
4121
4170
  "&--warning": {
4122
4171
  borderColor: e.value.colors.warning,
4123
4172
  color: e.value.colors.warning,
4124
- background: B(e.value.colors.warning, .2)
4173
+ background: V(e.value.colors.warning, .2)
4125
4174
  },
4126
4175
  "&--warning > &__text": { color: e.value.colors.warning },
4127
4176
  "&--error": {
4128
4177
  borderColor: e.value.colors.error,
4129
4178
  color: e.value.colors.error,
4130
- background: B(e.value.colors.error, .2)
4179
+ background: V(e.value.colors.error, .2)
4131
4180
  },
4132
4181
  "&--error > &__text": { color: e.value.colors.error },
4133
4182
  "&--info": {
4134
4183
  borderColor: e.value.colors.info,
4135
4184
  color: e.value.colors.info,
4136
- background: B(e.value.colors.info, .2)
4185
+ background: V(e.value.colors.info, .2)
4137
4186
  },
4138
4187
  "&--info > &__text": { color: e.value.colors.info },
4139
4188
  "&__icon": {
@@ -4157,7 +4206,7 @@ var Dr = (e) => {
4157
4206
  }
4158
4207
  }
4159
4208
  }));
4160
- }, Mr = { variant: "default" }, Nr = /* @__PURE__ */ s({
4209
+ }, Fr = { variant: "default" }, Ir = /* @__PURE__ */ s({
4161
4210
  name: "TWarning",
4162
4211
  props: {
4163
4212
  fullWidth: Boolean,
@@ -4165,7 +4214,7 @@ var Dr = (e) => {
4165
4214
  variant: String
4166
4215
  },
4167
4216
  setup(e, { slots: t }) {
4168
- let r = n(() => j({}, Mr, e)), i = jr(), a = n(() => [
4217
+ let r = n(() => M({}, Fr, e)), i = Pr(), a = n(() => [
4169
4218
  i.value,
4170
4219
  `${i.value}--${r.value.variant}`,
4171
4220
  { [`${i.value}--full-width`]: r.value.fullWidth }
@@ -4181,23 +4230,23 @@ var Dr = (e) => {
4181
4230
  class: a.value,
4182
4231
  role: "alert"
4183
4232
  }, [
4184
- r.value.icon && o(q, {
4233
+ r.value.icon && o(Y, {
4185
4234
  icon: r.value.icon,
4186
4235
  class: `${i.value}__icon`,
4187
4236
  color: c.value
4188
4237
  }, null),
4189
4238
  " ",
4190
- t.content?.() ? t.content?.() : o(Q, {
4239
+ t.content?.() ? t.content?.() : o($, {
4191
4240
  variant: "b3",
4192
4241
  class: `${i.value}__text`
4193
4242
  }, { default: () => [t.default?.()] })
4194
4243
  ]);
4195
4244
  }
4196
- }), Pr = () => ({ open: ({ onCancel: e, onConfirm: t, ...n }) => {
4245
+ }), Lr = () => ({ open: ({ onCancel: e, onConfirm: t, ...n }) => {
4197
4246
  let i = document.createElement("div");
4198
4247
  document.body.appendChild(i);
4199
4248
  let a = r({ render() {
4200
- return c(kn, {
4249
+ return c(jn, {
4201
4250
  ...n,
4202
4251
  onConfirm: () => {
4203
4252
  t?.(), a.unmount(), i.remove();
@@ -4213,6 +4262,6 @@ var Dr = (e) => {
4213
4262
  a.mount(i);
4214
4263
  } });
4215
4264
  //#endregion
4216
- export { K as TButton, tn as TCheckbox, Jt as TChip, hn as TCombobox, kn as TDialog, cn as TDropdown, un as TDropdownItem, q as TIcon, Mn as TIconButton, Fn as TLink, Vn as TLoading, J as TModal, Wn as TRadio, ir as TSelect, sr as TSelectDropdown, lr as TSelectDropdownItem, Rn as TSpinner, fr as TSwitch, mr as TTabBar, vr as TTabBarExtended, xr as TTag, wr as TTextArea, pn as TTextInput, Tr as TThemeProvider, Ar as TTooltip, Q as TTypography, Nr as TWarning, E as baseTheme, Kt as createTheme, qt as injectionKey, Pr as useDialog, Kn as useScrollbarThumb, G as useTheme };
4265
+ export { J as TButton, nn as TCheckbox, Yt as TChip, gn as TCombobox, jn as TDialog, ln as TDropdown, dn as TDropdownItem, Y as TIcon, Pn as TIconButton, Ln as TLink, Un as TLoading, bn as TModal, Kn as TRadio, sr as TSelect, ur as TSelectDropdown, fr as TSelectDropdownItem, Bn as TSpinner, hr as TSwitch, _r as TTabBar, xr as TTabBarExtended, wr as TTag, Dr as TTextArea, mn as TTextInput, Or as TThemeProvider, Nr as TTooltip, $ as TTypography, Ir as TWarning, E as baseTheme, qt as createTheme, Jt as injectionKey, Lr as useDialog, Jn as useScrollbarThumb, q as useTheme };
4217
4266
 
4218
4267
  //# sourceMappingURL=index.es.js.map