toku-ui 0.17.1 → 0.17.2

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
@@ -4051,11 +4051,11 @@ var Qe = /* @__PURE__ */ function(s) {
4051
4051
  function Gi(s) {
4052
4052
  return Math.round(s * 255);
4053
4053
  }
4054
- function e0(s, l, a) {
4054
+ function ev(s, l, a) {
4055
4055
  return Gi(s) + "," + Gi(l) + "," + Gi(a);
4056
4056
  }
4057
4057
  function Cr(s, l, a, h) {
4058
- if (h === void 0 && (h = e0), l === 0)
4058
+ if (h === void 0 && (h = ev), l === 0)
4059
4059
  return h(a, a, a);
4060
4060
  var g = (s % 360 + 360) % 360 / 60, w = (1 - Math.abs(2 * a - 1)) * l, x = w * (1 - Math.abs(g % 2 - 1)), A = 0, R = 0, P = 0;
4061
4061
  g >= 0 && g < 1 ? (A = w, R = x) : g >= 1 && g < 2 ? (A = x, R = w) : g >= 2 && g < 3 ? (R = w, P = x) : g >= 3 && g < 4 ? (R = x, P = w) : g >= 4 && g < 5 ? (A = x, P = w) : g >= 5 && g < 6 && (A = w, P = x);
@@ -4212,24 +4212,24 @@ var Ou = {
4212
4212
  yellow: "ff0",
4213
4213
  yellowgreen: "9acd32"
4214
4214
  };
4215
- function n0(s) {
4215
+ function nv(s) {
4216
4216
  if (typeof s != "string")
4217
4217
  return s;
4218
4218
  var l = s.toLowerCase();
4219
4219
  return Ou[l] ? "#" + Ou[l] : s;
4220
4220
  }
4221
- var r0 = /^#[a-fA-F0-9]{6}$/, t0 = /^#[a-fA-F0-9]{8}$/, i0 = /^#[a-fA-F0-9]{3}$/, a0 = /^#[a-fA-F0-9]{4}$/, qi = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, o0 = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, u0 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, l0 = /^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;
4221
+ var rv = /^#[a-fA-F0-9]{6}$/, tv = /^#[a-fA-F0-9]{8}$/, iv = /^#[a-fA-F0-9]{3}$/, av = /^#[a-fA-F0-9]{4}$/, qi = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, ov = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, uv = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, lv = /^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;
4222
4222
  function Lu(s) {
4223
4223
  if (typeof s != "string")
4224
4224
  throw new Qe(3);
4225
- var l = n0(s);
4226
- if (l.match(r0))
4225
+ var l = nv(s);
4226
+ if (l.match(rv))
4227
4227
  return {
4228
4228
  red: parseInt("" + l[1] + l[2], 16),
4229
4229
  green: parseInt("" + l[3] + l[4], 16),
4230
4230
  blue: parseInt("" + l[5] + l[6], 16)
4231
4231
  };
4232
- if (l.match(t0)) {
4232
+ if (l.match(tv)) {
4233
4233
  var a = parseFloat((parseInt("" + l[7] + l[8], 16) / 255).toFixed(2));
4234
4234
  return {
4235
4235
  red: parseInt("" + l[1] + l[2], 16),
@@ -4238,13 +4238,13 @@ function Lu(s) {
4238
4238
  alpha: a
4239
4239
  };
4240
4240
  }
4241
- if (l.match(i0))
4241
+ if (l.match(iv))
4242
4242
  return {
4243
4243
  red: parseInt("" + l[1] + l[1], 16),
4244
4244
  green: parseInt("" + l[2] + l[2], 16),
4245
4245
  blue: parseInt("" + l[3] + l[3], 16)
4246
4246
  };
4247
- if (l.match(a0)) {
4247
+ if (l.match(av)) {
4248
4248
  var h = parseFloat((parseInt("" + l[4] + l[4], 16) / 255).toFixed(2));
4249
4249
  return {
4250
4250
  red: parseInt("" + l[1] + l[1], 16),
@@ -4260,7 +4260,7 @@ function Lu(s) {
4260
4260
  green: parseInt("" + g[2], 10),
4261
4261
  blue: parseInt("" + g[3], 10)
4262
4262
  };
4263
- var w = o0.exec(l.substring(0, 50));
4263
+ var w = ov.exec(l.substring(0, 50));
4264
4264
  if (w)
4265
4265
  return {
4266
4266
  red: parseInt("" + w[1], 10),
@@ -4268,7 +4268,7 @@ function Lu(s) {
4268
4268
  blue: parseInt("" + w[3], 10),
4269
4269
  alpha: parseFloat("" + w[4]) > 1 ? parseFloat("" + w[4]) / 100 : parseFloat("" + w[4])
4270
4270
  };
4271
- var x = u0.exec(l);
4271
+ var x = uv.exec(l);
4272
4272
  if (x) {
4273
4273
  var A = parseInt("" + x[1], 10), R = parseInt("" + x[2], 10) / 100, P = parseInt("" + x[3], 10) / 100, q = "rgb(" + Cr(A, R, P) + ")", H = qi.exec(q);
4274
4274
  if (!H)
@@ -4279,7 +4279,7 @@ function Lu(s) {
4279
4279
  blue: parseInt("" + H[3], 10)
4280
4280
  };
4281
4281
  }
4282
- var re = l0.exec(l.substring(0, 50));
4282
+ var re = lv.exec(l.substring(0, 50));
4283
4283
  if (re) {
4284
4284
  var Re = parseInt("" + re[1], 10), te = parseInt("" + re[2], 10) / 100, Pn = parseInt("" + re[3], 10) / 100, he = "rgb(" + Cr(Re, te, Pn) + ")", $e = qi.exec(he);
4285
4285
  if (!$e)
@@ -4293,7 +4293,7 @@ function Lu(s) {
4293
4293
  }
4294
4294
  throw new Qe(5);
4295
4295
  }
4296
- function s0(s) {
4296
+ function sv(s) {
4297
4297
  var l = s.red / 255, a = s.green / 255, h = s.blue / 255, g = Math.max(l, a, h), w = Math.min(l, a, h), x = (g + w) / 2;
4298
4298
  if (g === w)
4299
4299
  return s.alpha !== void 0 ? {
@@ -4330,11 +4330,11 @@ function s0(s) {
4330
4330
  };
4331
4331
  }
4332
4332
  function Wu(s) {
4333
- return s0(Lu(s));
4333
+ return sv(Lu(s));
4334
4334
  }
4335
- var f0 = function(l) {
4335
+ var fv = function(l) {
4336
4336
  return l.length === 7 && l[1] === l[2] && l[3] === l[4] && l[5] === l[6] ? "#" + l[1] + l[3] + l[5] : l;
4337
- }, Ji = f0;
4337
+ }, Ji = fv;
4338
4338
  function En(s) {
4339
4339
  var l = s.toString(16);
4340
4340
  return l.length === 1 ? "0" + l : l;
@@ -4342,20 +4342,20 @@ function En(s) {
4342
4342
  function Ki(s) {
4343
4343
  return En(Math.round(s * 255));
4344
4344
  }
4345
- function c0(s, l, a) {
4345
+ function cv(s, l, a) {
4346
4346
  return Ji("#" + Ki(s) + Ki(l) + Ki(a));
4347
4347
  }
4348
4348
  function yt(s, l, a) {
4349
- return Cr(s, l, a, c0);
4349
+ return Cr(s, l, a, cv);
4350
4350
  }
4351
- function h0(s, l, a) {
4351
+ function hv(s, l, a) {
4352
4352
  if (typeof s == "number" && typeof l == "number" && typeof a == "number")
4353
4353
  return yt(s, l, a);
4354
4354
  if (typeof s == "object" && l === void 0 && a === void 0)
4355
4355
  return yt(s.hue, s.saturation, s.lightness);
4356
4356
  throw new Qe(1);
4357
4357
  }
4358
- function p0(s, l, a, h) {
4358
+ function pv(s, l, a, h) {
4359
4359
  if (typeof s == "number" && typeof l == "number" && typeof a == "number" && typeof h == "number")
4360
4360
  return h >= 1 ? yt(s, l, a) : "rgba(" + Cr(s, l, a) + "," + h + ")";
4361
4361
  if (typeof s == "object" && l === void 0 && a === void 0 && h === void 0)
@@ -4369,7 +4369,7 @@ function Qi(s, l, a) {
4369
4369
  return Ji("#" + En(s.red) + En(s.green) + En(s.blue));
4370
4370
  throw new Qe(6);
4371
4371
  }
4372
- function d0(s, l, a, h) {
4372
+ function dv(s, l, a, h) {
4373
4373
  if (typeof s == "string" && typeof l == "number") {
4374
4374
  var g = Lu(s);
4375
4375
  return "rgba(" + g.red + "," + g.green + "," + g.blue + "," + l + ")";
@@ -4381,26 +4381,26 @@ function d0(s, l, a, h) {
4381
4381
  }
4382
4382
  throw new Qe(7);
4383
4383
  }
4384
- var g0 = function(l) {
4384
+ var gv = function(l) {
4385
4385
  return typeof l.red == "number" && typeof l.green == "number" && typeof l.blue == "number" && (typeof l.alpha != "number" || typeof l.alpha > "u");
4386
- }, v0 = function(l) {
4386
+ }, vv = function(l) {
4387
4387
  return typeof l.red == "number" && typeof l.green == "number" && typeof l.blue == "number" && typeof l.alpha == "number";
4388
- }, m0 = function(l) {
4388
+ }, mv = function(l) {
4389
4389
  return typeof l.hue == "number" && typeof l.saturation == "number" && typeof l.lightness == "number" && (typeof l.alpha != "number" || typeof l.alpha > "u");
4390
- }, _0 = function(l) {
4390
+ }, _v = function(l) {
4391
4391
  return typeof l.hue == "number" && typeof l.saturation == "number" && typeof l.lightness == "number" && typeof l.alpha == "number";
4392
4392
  };
4393
4393
  function Bu(s) {
4394
4394
  if (typeof s != "object")
4395
4395
  throw new Qe(8);
4396
- if (v0(s))
4397
- return d0(s);
4398
- if (g0(s))
4396
+ if (vv(s))
4397
+ return dv(s);
4398
+ if (gv(s))
4399
4399
  return Qi(s);
4400
- if (_0(s))
4401
- return p0(s);
4402
- if (m0(s))
4403
- return h0(s);
4400
+ if (_v(s))
4401
+ return pv(s);
4402
+ if (mv(s))
4403
+ return hv(s);
4404
4404
  throw new Qe(8);
4405
4405
  }
4406
4406
  function zu(s, l, a) {
@@ -4415,7 +4415,7 @@ function ku(s) {
4415
4415
  function Du(s, l, a) {
4416
4416
  return Math.max(s, Math.min(l, a));
4417
4417
  }
4418
- function b0(s, l) {
4418
+ function bv(s, l) {
4419
4419
  if (l === "transparent")
4420
4420
  return l;
4421
4421
  var a = Wu(l);
@@ -4423,8 +4423,8 @@ function b0(s, l) {
4423
4423
  lightness: Du(0, 1, a.lightness - parseFloat(s))
4424
4424
  }));
4425
4425
  }
4426
- var y0 = /* @__PURE__ */ ku(b0), Mu = y0;
4427
- function x0(s, l) {
4426
+ var yv = /* @__PURE__ */ ku(bv), Mu = yv;
4427
+ function xv(s, l) {
4428
4428
  if (l === "transparent")
4429
4429
  return l;
4430
4430
  var a = Wu(l);
@@ -4432,7 +4432,7 @@ function x0(s, l) {
4432
4432
  lightness: Du(0, 1, a.lightness + parseFloat(s))
4433
4433
  }));
4434
4434
  }
4435
- var w0 = /* @__PURE__ */ ku(x0), fn = w0;
4435
+ var wv = /* @__PURE__ */ ku(xv), fn = wv;
4436
4436
  const Vi = {
4437
4437
  colors: {
4438
4438
  primary: {
@@ -4482,7 +4482,7 @@ const Vi = {
4482
4482
  desktop: 800
4483
4483
  },
4484
4484
  iconSet: "heroicons"
4485
- }, rv = (s) => {
4485
+ }, r0 = (s) => {
4486
4486
  var h, g;
4487
4487
  const l = ne.merge(Vi, s), a = (g = (h = s.colors) == null ? void 0 : h.primary) == null ? void 0 : g.main;
4488
4488
  return a && (l.colors.primary.ultraDark = Mu(0.15, a), l.colors.primary.dark = a, l.colors.primary.toku = fn(0.1, a), l.colors.primary.light1 = fn(0.15, a), l.colors.primary.light2 = fn(0.2, a), l.colors.primary.light3 = fn(0.25, a), l.colors.primary.light4 = fn(0.3, a), l.colors.primary.light5 = fn(0.35, a)), l;
@@ -4492,8 +4492,8 @@ const Vi = {
4492
4492
  void 0
4493
4493
  );
4494
4494
  return T(() => (s == null ? void 0 : s.value) ?? Vi);
4495
- }, S0 = (s) => ne.camelCase(s), C0 = (s) => {
4496
- const l = ue(), a = T(() => S0(s.value)), h = T(() => a.value === "primary" ? l.value.colors.primary.ultraDark : Mu(0.15, l.value.colors[a.value])), g = T(() => a.value === "primary" ? l.value.colors.primary.main : l.value.colors[a.value]), w = T(() => a.value === "primary" ? l.value.colors.primary.light1 : fn(0.15, l.value.colors[a.value])), x = T(() => a.value === "primary" ? l.value.colors.primary.light2 : fn(0.2, l.value.colors[a.value])), A = T(() => a.value === "primary" ? l.value.colors.primary.light3 : fn(0.25, l.value.colors[a.value]));
4495
+ }, Sv = (s) => ne.camelCase(s), Cv = (s) => {
4496
+ const l = ue(), a = T(() => Sv(s.value)), h = T(() => a.value === "primary" ? l.value.colors.primary.ultraDark : Mu(0.15, l.value.colors[a.value])), g = T(() => a.value === "primary" ? l.value.colors.primary.main : l.value.colors[a.value]), w = T(() => a.value === "primary" ? l.value.colors.primary.light1 : fn(0.15, l.value.colors[a.value])), x = T(() => a.value === "primary" ? l.value.colors.primary.light2 : fn(0.2, l.value.colors[a.value])), A = T(() => a.value === "primary" ? l.value.colors.primary.light3 : fn(0.25, l.value.colors[a.value]));
4497
4497
  return T(() => xe({
4498
4498
  "&, *": {
4499
4499
  margin: 0,
@@ -4607,12 +4607,12 @@ const Vi = {
4607
4607
  color: g.value
4608
4608
  }
4609
4609
  }));
4610
- }, I0 = {
4610
+ }, Iv = {
4611
4611
  variant: "primary",
4612
4612
  size: "medium",
4613
4613
  type: "button",
4614
4614
  color: "primary"
4615
- }, tv = ve({
4615
+ }, t0 = ve({
4616
4616
  name: "TButton",
4617
4617
  props: {
4618
4618
  variant: String,
@@ -4631,7 +4631,7 @@ const Vi = {
4631
4631
  slots: a,
4632
4632
  emit: h
4633
4633
  }) {
4634
- const g = T(() => ne.merge({}, I0, s, l)), w = T(() => g.value.color), x = C0(w), A = ue(), R = T(() => [x.value, `${x.value}--${g.value.variant}`, `${x.value}--${g.value.size}`, {
4634
+ const g = T(() => ne.merge({}, Iv, s, l)), w = T(() => g.value.color), x = Cv(w), A = ue(), R = T(() => [x.value, `${x.value}--${g.value.variant}`, `${x.value}--${g.value.size}`, {
4635
4635
  [`${x.value}--full-width`]: g.value.fullWidth,
4636
4636
  [`${x.value}--loading`]: g.value.loading
4637
4637
  }]), P = () => {
@@ -4664,7 +4664,7 @@ const Vi = {
4664
4664
  })]);
4665
4665
  };
4666
4666
  }
4667
- }), iv = ve({
4667
+ }), i0 = ve({
4668
4668
  name: "TThemeProvider",
4669
4669
  props: {
4670
4670
  theme: {
@@ -4682,7 +4682,7 @@ const Vi = {
4682
4682
  return (h = l.default) == null ? void 0 : h.call(l);
4683
4683
  };
4684
4684
  }
4685
- }), A0 = () => {
4685
+ }), Av = () => {
4686
4686
  const s = ue();
4687
4687
  return T(
4688
4688
  () => xe({
@@ -4771,7 +4771,7 @@ const Vi = {
4771
4771
  }
4772
4772
  })
4773
4773
  );
4774
- }, T0 = {
4774
+ }, Tv = {
4775
4775
  h1: "h1",
4776
4776
  h2: "h2",
4777
4777
  h3: "h3",
@@ -4787,11 +4787,11 @@ const Vi = {
4787
4787
  b4: "p",
4788
4788
  b5: "p",
4789
4789
  b6: "p"
4790
- }, R0 = {
4790
+ }, Rv = {
4791
4791
  fontStyle: "normal",
4792
4792
  fontWeight: "regular",
4793
4793
  variant: "b0"
4794
- }, av = ve({
4794
+ }, a0 = ve({
4795
4795
  name: "TTypography",
4796
4796
  props: {
4797
4797
  fontStyle: String,
@@ -4802,12 +4802,12 @@ const Vi = {
4802
4802
  attrs: l,
4803
4803
  slots: a
4804
4804
  }) {
4805
- const h = T(() => ne.merge({}, R0, s, l)), g = A0(), w = T(() => [g.value, `${g.value}--${h.value.variant}`, `${g.value}--${h.value.fontWeight}`, `${g.value}--${h.value.fontStyle}`]), x = T(() => T0[h.value.variant]);
4805
+ const h = T(() => ne.merge({}, Rv, s, l)), g = Av(), w = T(() => [g.value, `${g.value}--${h.value.variant}`, `${g.value}--${h.value.fontWeight}`, `${g.value}--${h.value.fontStyle}`]), x = T(() => Tv[h.value.variant]);
4806
4806
  return () => O(x.value, {
4807
4807
  class: w.value
4808
4808
  }, a.default ? a.default() : null);
4809
4809
  }
4810
- }), $0 = () => {
4810
+ }), $v = () => {
4811
4811
  const s = ue();
4812
4812
  return T(() => xe({
4813
4813
  margin: 0,
@@ -4839,9 +4839,9 @@ const Vi = {
4839
4839
  }
4840
4840
  }
4841
4841
  }));
4842
- }, F0 = {
4842
+ }, Fv = {
4843
4843
  size: "auto"
4844
- }, E0 = ve({
4844
+ }, Ev = ve({
4845
4845
  name: "TSpinner",
4846
4846
  props: {
4847
4847
  size: String
@@ -4849,12 +4849,12 @@ const Vi = {
4849
4849
  setup(s, {
4850
4850
  attrs: l
4851
4851
  }) {
4852
- const a = T(() => ne.merge({}, F0, s, l)), h = $0(), g = T(() => [h.value, `${h.value}--${a.value.size}`]);
4852
+ const a = T(() => ne.merge({}, Fv, s, l)), h = $v(), g = T(() => [h.value, `${h.value}--${a.value.size}`]);
4853
4853
  return () => O("div", {
4854
4854
  class: g.value
4855
4855
  });
4856
4856
  }
4857
- }), P0 = () => {
4857
+ }), Pv = () => {
4858
4858
  const s = ue(), l = T(() => xe({
4859
4859
  "&, *": {
4860
4860
  margin: 0,
@@ -4958,12 +4958,12 @@ const Vi = {
4958
4958
  baseClass: l,
4959
4959
  iconClass: a
4960
4960
  };
4961
- }, O0 = {
4961
+ }, Ov = {
4962
4962
  variant: "primary",
4963
4963
  size: "medium",
4964
4964
  icon: "academic-cap",
4965
4965
  type: "button"
4966
- }, ov = ve({
4966
+ }, o0 = ve({
4967
4967
  name: "TIconButton",
4968
4968
  props: {
4969
4969
  variant: String,
@@ -4979,10 +4979,10 @@ const Vi = {
4979
4979
  attrs: l,
4980
4980
  emit: a
4981
4981
  }) {
4982
- const h = T(() => ne.merge({}, O0, s, l)), {
4982
+ const h = T(() => ne.merge({}, Ov, s, l)), {
4983
4983
  baseClass: g,
4984
4984
  iconClass: w
4985
- } = P0(), x = ue(), A = T(() => [g.value, `${g.value}--${h.value.variant}`, `${g.value}--${h.value.size}`, {
4985
+ } = Pv(), x = ue(), A = T(() => [g.value, `${g.value}--${h.value.variant}`, `${g.value}--${h.value.size}`, {
4986
4986
  [`${g.value}--rounded`]: h.value.rounded
4987
4987
  }]), R = T(() => [w.value, `${w.value}--${h.value.variant}`, `${w.value}--${h.value.size}`, {
4988
4988
  [`${g.value}--loading`]: h.value.loading
@@ -5010,7 +5010,7 @@ const Vi = {
5010
5010
  class: R.value
5011
5011
  })]);
5012
5012
  }
5013
- }), L0 = () => {
5013
+ }), Lv = () => {
5014
5014
  const s = ue();
5015
5015
  return T(
5016
5016
  () => xe({
@@ -5103,9 +5103,9 @@ const Vi = {
5103
5103
  }
5104
5104
  })
5105
5105
  );
5106
- }, W0 = {
5106
+ }, Wv = {
5107
5107
  type: "text"
5108
- }, uv = ve({
5108
+ }, u0 = ve({
5109
5109
  name: "TTextInput",
5110
5110
  emits: ["input", "change", "focus", "blur"],
5111
5111
  props: {
@@ -5126,7 +5126,7 @@ const Vi = {
5126
5126
  attrs: l,
5127
5127
  emit: a
5128
5128
  }) {
5129
- const h = T(() => ne.merge({}, W0, s, l)), g = L0(), w = ue(), x = (P) => {
5129
+ const h = T(() => ne.merge({}, Wv, s, l)), g = Lv(), w = ue(), x = (P) => {
5130
5130
  a("input", P.target.value), a("change", P.target.value);
5131
5131
  }, A = (P) => {
5132
5132
  a("focus", P);
@@ -5179,7 +5179,7 @@ const Vi = {
5179
5179
  class: `${g.value}__helper-text`
5180
5180
  }, [h.value.helperText])]);
5181
5181
  }
5182
- }), B0 = () => {
5182
+ }), Bv = () => {
5183
5183
  const s = ue();
5184
5184
  return T(
5185
5185
  () => xe({
@@ -5237,9 +5237,9 @@ const Vi = {
5237
5237
  }
5238
5238
  })
5239
5239
  );
5240
- }, z0 = {
5240
+ }, zv = {
5241
5241
  labelPosition: "right"
5242
- }, lv = ve({
5242
+ }, l0 = ve({
5243
5243
  name: "TSwitch",
5244
5244
  props: {
5245
5245
  label: String,
@@ -5253,7 +5253,7 @@ const Vi = {
5253
5253
  attrs: l,
5254
5254
  emit: a
5255
5255
  }) {
5256
- const h = T(() => ne.merge({}, z0, s, l)), g = wr(h.value.value);
5256
+ const h = T(() => ne.merge({}, zv, s, l)), g = wr(h.value.value);
5257
5257
  xt(() => h.value.value, () => {
5258
5258
  g.value = h.value.value;
5259
5259
  });
@@ -5266,7 +5266,7 @@ const Vi = {
5266
5266
  key: H
5267
5267
  } = q;
5268
5268
  h.value.disabled || H !== "Enter" && H !== " " ? q.preventDefault() : w();
5269
- }, R = B0(), P = T(() => [R.value, `${R.value}--label-${h.value.labelPosition}`, {
5269
+ }, R = Bv(), P = T(() => [R.value, `${R.value}--label-${h.value.labelPosition}`, {
5270
5270
  [`${R.value}--checked`]: g.value,
5271
5271
  [`${R.value}--disabled`]: h.value.disabled
5272
5272
  }]);
@@ -5292,7 +5292,7 @@ const Vi = {
5292
5292
  }
5293
5293
  }, [h.value.label])]);
5294
5294
  }
5295
- }), k0 = () => {
5295
+ }), kv = () => {
5296
5296
  const s = ue();
5297
5297
  return T(() => xe({
5298
5298
  "&, *": {
@@ -5388,7 +5388,7 @@ const Vi = {
5388
5388
  width: "100%"
5389
5389
  }
5390
5390
  }));
5391
- }, sv = ve({
5391
+ }, s0 = ve({
5392
5392
  name: "TSelect",
5393
5393
  emits: ["input", "change", "focus", "blur"],
5394
5394
  props: {
@@ -5410,7 +5410,7 @@ const Vi = {
5410
5410
  emit: a,
5411
5411
  slots: h
5412
5412
  }) {
5413
- const g = T(() => ne.merge({}, s, l)), w = ue(), x = k0(), A = T(() => [x.value, `${x.value}__container`, {
5413
+ const g = T(() => ne.merge({}, s, l)), w = ue(), x = kv(), A = T(() => [x.value, `${x.value}__container`, {
5414
5414
  [`${x.value}--error`]: g.value.error,
5415
5415
  [`${x.value}--full-width`]: g.value.fullWidth
5416
5416
  }]), R = (H) => {
@@ -5464,7 +5464,7 @@ const Vi = {
5464
5464
  }, [g.value.helperText])]);
5465
5465
  };
5466
5466
  }
5467
- }), D0 = () => {
5467
+ }), Dv = () => {
5468
5468
  const s = ue();
5469
5469
  return T(
5470
5470
  () => xe({
@@ -5566,10 +5566,10 @@ const Vi = {
5566
5566
  }
5567
5567
  })
5568
5568
  );
5569
- }, M0 = {
5569
+ }, Mv = {
5570
5570
  position: "right",
5571
5571
  size: "medium"
5572
- }, fv = ve({
5572
+ }, f0 = ve({
5573
5573
  name: "TTooltip",
5574
5574
  props: {
5575
5575
  label: String,
@@ -5581,7 +5581,7 @@ const Vi = {
5581
5581
  slots: l,
5582
5582
  attrs: a
5583
5583
  }) {
5584
- const h = T(() => ne.merge({}, M0, s, a)), g = D0(), w = T(() => [g.value, `${g.value}--${h.value.position}`, {
5584
+ const h = T(() => ne.merge({}, Mv, s, a)), g = Dv(), w = T(() => [g.value, `${g.value}--${h.value.position}`, {
5585
5585
  [`${g.value}--multilined`]: h.value.multilined,
5586
5586
  [`${g.value}--${h.value.size}`]: h.value.multilined
5587
5587
  }]);
@@ -5597,11 +5597,11 @@ const Vi = {
5597
5597
  }, [((A = l.label) == null ? void 0 : A.call(l)) || h.value.label])]);
5598
5598
  };
5599
5599
  }
5600
- }), H0 = {
5600
+ }), Hv = {
5601
5601
  color: "#000",
5602
5602
  size: "medium",
5603
5603
  variant: "outline"
5604
- }, U0 = ve({
5604
+ }, Uv = ve({
5605
5605
  name: "TIcon",
5606
5606
  props: {
5607
5607
  icon: {
@@ -5615,7 +5615,7 @@ const Vi = {
5615
5615
  setup(s, {
5616
5616
  attrs: l
5617
5617
  }) {
5618
- const a = T(() => ne.merge({}, H0, s, l)), h = ue(), g = T(() => ne.get(h.value.colors, a.value.color) || a.value.color), w = T(() => `${h.value.iconSet}:${a.value.icon}${a.value.variant === "solid" ? "-solid" : ""}`), x = {
5618
+ const a = T(() => ne.merge({}, Hv, s, l)), h = ue(), g = T(() => ne.get(h.value.colors, a.value.color) || a.value.color), w = T(() => `${h.value.iconSet}:${a.value.icon}${a.value.variant === "solid" ? "-solid" : ""}`), x = {
5619
5619
  miniature: "0.375em",
5620
5620
  "extra-small": "0.625em",
5621
5621
  small: "1em",
@@ -5632,7 +5632,7 @@ const Vi = {
5632
5632
  }
5633
5633
  });
5634
5634
  }
5635
- }), N0 = () => {
5635
+ }), Nv = () => {
5636
5636
  const s = ue();
5637
5637
  return T(() => xe({
5638
5638
  margin: 0,
@@ -5666,10 +5666,10 @@ const Vi = {
5666
5666
  fontSize: "0.875rem"
5667
5667
  }
5668
5668
  }));
5669
- }, G0 = {
5669
+ }, Gv = {
5670
5670
  variant: "primary",
5671
5671
  size: "medium"
5672
- }, cv = ve({
5672
+ }, c0 = ve({
5673
5673
  name: "TButton",
5674
5674
  props: {
5675
5675
  variant: String,
@@ -5682,7 +5682,7 @@ const Vi = {
5682
5682
  attrs: l,
5683
5683
  slots: a
5684
5684
  }) {
5685
- const h = T(() => ne.merge({}, G0, s, l)), g = N0(), w = ue(), x = T(() => [g.value, `${g.value}--${h.value.variant}`, `${g.value}--${h.value.size}`]);
5685
+ const h = T(() => ne.merge({}, Gv, s, l)), g = Nv(), w = ue(), x = T(() => [g.value, `${g.value}--${h.value.variant}`, `${g.value}--${h.value.size}`]);
5686
5686
  return () => O("a", Qn([{
5687
5687
  class: x.value,
5688
5688
  attrs: {
@@ -5698,7 +5698,7 @@ const Vi = {
5698
5698
  }
5699
5699
  }) : null]);
5700
5700
  }
5701
- }), q0 = () => {
5701
+ }), qv = () => {
5702
5702
  const s = ue(), l = s.value.colors.gray.light1, a = (g, w) => {
5703
5703
  switch (w) {
5704
5704
  case "large":
@@ -5808,11 +5808,11 @@ const Vi = {
5808
5808
  }
5809
5809
  }
5810
5810
  }));
5811
- }, K0 = () => `checkbox-${Math.random().toString(36).substring(2, 9)}-${Date.now()}`, Y0 = {
5811
+ }, Kv = () => `checkbox-${Math.random().toString(36).substring(2, 9)}-${Date.now()}`, Yv = {
5812
5812
  size: "large",
5813
5813
  value: !1,
5814
- id: K0()
5815
- }, hv = ve({
5814
+ id: Kv()
5815
+ }, h0 = ve({
5816
5816
  name: "TCheckbox",
5817
5817
  props: {
5818
5818
  labelPosition: String,
@@ -5827,7 +5827,7 @@ const Vi = {
5827
5827
  slots: a,
5828
5828
  emit: h
5829
5829
  }) {
5830
- const g = T(() => ne.merge({}, Y0, s, l)), w = q0(), x = T(() => [w.value, `${w.value}--${g.value.size}`]), A = T(() => [w.value, `${w.value}--${g.value.size}`, {
5830
+ const g = T(() => ne.merge({}, Yv, s, l)), w = qv(), x = T(() => [w.value, `${w.value}--${g.value.size}`]), A = T(() => [w.value, `${w.value}--${g.value.size}`, {
5831
5831
  [`${w.value}--disabled`]: g.value.disabled
5832
5832
  }]), R = wr(g.value.value);
5833
5833
  xt(() => g.value.value, () => {
@@ -5866,7 +5866,7 @@ const Vi = {
5866
5866
  }, [a.default()])]);
5867
5867
  };
5868
5868
  }
5869
- }), Z0 = () => {
5869
+ }), Zv = () => {
5870
5870
  const s = ue();
5871
5871
  return T(
5872
5872
  () => xe({
@@ -5919,7 +5919,7 @@ const Vi = {
5919
5919
  }
5920
5920
  })
5921
5921
  );
5922
- }, pv = ve({
5922
+ }, p0 = ve({
5923
5923
  name: "TTabBar",
5924
5924
  emits: ["input"],
5925
5925
  props: {
@@ -5930,7 +5930,7 @@ const Vi = {
5930
5930
  attrs: l,
5931
5931
  emit: a
5932
5932
  }) {
5933
- const h = T(() => ne.merge({}, s, l)), g = Z0(), w = wr(h.value.value);
5933
+ const h = T(() => ne.merge({}, s, l)), g = Zv(), w = wr(h.value.value);
5934
5934
  xt(() => h.value.value, () => {
5935
5935
  w.value = h.value.value;
5936
5936
  });
@@ -5963,7 +5963,7 @@ const Vi = {
5963
5963
  }, [R])]))])]);
5964
5964
  };
5965
5965
  }
5966
- }), X0 = () => T(
5966
+ }), Xv = () => T(
5967
5967
  () => xe({
5968
5968
  bottom: 0,
5969
5969
  left: 0,
@@ -5984,9 +5984,9 @@ const Vi = {
5984
5984
  zIndex: 999
5985
5985
  }
5986
5986
  })
5987
- ), J0 = {
5987
+ ), Jv = {
5988
5988
  size: "auto"
5989
- }, dv = ve({
5989
+ }, d0 = ve({
5990
5990
  name: "TLoading",
5991
5991
  props: {
5992
5992
  active: Boolean,
@@ -5996,19 +5996,19 @@ const Vi = {
5996
5996
  setup(s, {
5997
5997
  attrs: l
5998
5998
  }) {
5999
- const a = T(() => ne.merge({}, J0, s, l)), h = X0(), g = T(() => [h.value, {
5999
+ const a = T(() => ne.merge({}, Jv, s, l)), h = Xv(), g = T(() => [h.value, {
6000
6000
  [`${h.value}--active`]: a.value.active,
6001
6001
  [`${h.value}--full-page`]: a.value.fullPage
6002
6002
  }]);
6003
6003
  return () => O("div", {
6004
6004
  class: g.value
6005
- }, [O(E0, {
6005
+ }, [O(Ev, {
6006
6006
  attrs: {
6007
6007
  size: a.value.size
6008
6008
  }
6009
6009
  })]);
6010
6010
  }
6011
- }), Q0 = () => {
6011
+ }), Qv = () => {
6012
6012
  const s = ue();
6013
6013
  return T(
6014
6014
  () => xe({
@@ -6021,8 +6021,8 @@ const Vi = {
6021
6021
  opacity: 0,
6022
6022
  borderRadius: "10px",
6023
6023
  overflow: "hidden",
6024
- border: "1px solid var(--gray-secondary-light-gray-3, #F2F2F2)",
6025
- background: "var(--main-colors-white, #FFF)",
6024
+ border: `1px solid ${s.value.colors.gray.light3}`,
6025
+ background: "#fff",
6026
6026
  boxShadow: "4px 4px 30px 0px rgba(0, 0, 0, 0.10)",
6027
6027
  position: "fixed",
6028
6028
  top: "50%",
@@ -6045,7 +6045,7 @@ const Vi = {
6045
6045
  outline: "none"
6046
6046
  },
6047
6047
  "&::backdrop": {
6048
- background: "rgba(0, 0, 0, 0.5)",
6048
+ background: "rgba(226, 226, 226, 0.80)",
6049
6049
  transition: "all 0.3s ease-in-out"
6050
6050
  },
6051
6051
  "> *": {
@@ -6057,6 +6057,7 @@ const Vi = {
6057
6057
  background: "#fff"
6058
6058
  },
6059
6059
  "&__close-button": {
6060
+ cursor: "pointer",
6060
6061
  border: "none",
6061
6062
  background: "transparent"
6062
6063
  },
@@ -6081,9 +6082,9 @@ const Vi = {
6081
6082
  }
6082
6083
  })
6083
6084
  );
6084
- }, V0 = {
6085
+ }, Vv = {
6085
6086
  size: "medium"
6086
- }, gv = ve({
6087
+ }, g0 = ve({
6087
6088
  name: "TModal",
6088
6089
  props: {
6089
6090
  open: Boolean,
@@ -6097,7 +6098,7 @@ const Vi = {
6097
6098
  emit: h,
6098
6099
  expose: g
6099
6100
  }) {
6100
- const w = T(() => ne.merge({}, V0, s, a)), x = wr(w.value.open), A = Q0(), R = T(() => [A.value, `${A.value}--${w.value.size}`, {
6101
+ const w = T(() => ne.merge({}, Vv, s, a)), x = wr(w.value.open), A = Qv(), R = T(() => [A.value, `${A.value}--${w.value.size}`, {
6101
6102
  [`${A.value}--featured`]: w.value.featured,
6102
6103
  [`${A.value}--active`]: x.value
6103
6104
  }]), P = wr(null), q = () => {
@@ -6146,7 +6147,7 @@ const Vi = {
6146
6147
  on: {
6147
6148
  click: Re
6148
6149
  }
6149
- }, [O(U0, {
6150
+ }, [O(Uv, {
6150
6151
  attrs: {
6151
6152
  icon: "x-mark"
6152
6153
  }
@@ -6162,23 +6163,23 @@ const Vi = {
6162
6163
  }
6163
6164
  });
6164
6165
  export {
6165
- tv as TButton,
6166
- hv as TCheckbox,
6167
- U0 as TIcon,
6168
- ov as TIconButton,
6169
- cv as TLink,
6170
- dv as TLoading,
6171
- gv as TModal,
6172
- sv as TSelect,
6173
- E0 as TSpinner,
6174
- lv as TSwitch,
6175
- pv as TTabBar,
6176
- uv as TTextInput,
6177
- iv as TThemeProvider,
6178
- fv as TTooltip,
6179
- av as TTypography,
6166
+ t0 as TButton,
6167
+ h0 as TCheckbox,
6168
+ Uv as TIcon,
6169
+ o0 as TIconButton,
6170
+ c0 as TLink,
6171
+ d0 as TLoading,
6172
+ g0 as TModal,
6173
+ s0 as TSelect,
6174
+ Ev as TSpinner,
6175
+ l0 as TSwitch,
6176
+ p0 as TTabBar,
6177
+ u0 as TTextInput,
6178
+ i0 as TThemeProvider,
6179
+ f0 as TTooltip,
6180
+ a0 as TTypography,
6180
6181
  Vi as baseTheme,
6181
- rv as createTheme,
6182
+ r0 as createTheme,
6182
6183
  Hu as injectionKey,
6183
6184
  ue as useTheme
6184
6185
  };