@scbt-ecom/ui 0.43.0 → 0.44.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.
Files changed (66) hide show
  1. package/dist/hooks.js +13 -14
  2. package/dist/hooks.js.map +1 -1
  3. package/dist/index-DV_MMMPA.js +41785 -0
  4. package/dist/index-DV_MMMPA.js.map +1 -0
  5. package/dist/isClient-C9aZtt2Q.js +5 -0
  6. package/dist/{isClient-D-a29gNu.js.map → isClient-C9aZtt2Q.js.map} +1 -1
  7. package/dist/shared/ui/formElements/controlled/checkbox/CheckboxControl.d.ts +1 -1
  8. package/dist/shared/ui/formElements/controlled/checkbox/index.d.ts +1 -1
  9. package/dist/shared/ui/formElements/controlled/dadata/address/DadataAddress.d.ts +5 -4
  10. package/dist/shared/ui/formElements/controlled/dadata/address/index.d.ts +1 -1
  11. package/dist/shared/ui/formElements/controlled/dadata/auto/DadataAuto.d.ts +5 -4
  12. package/dist/shared/ui/formElements/controlled/dadata/auto/index.d.ts +1 -1
  13. package/dist/shared/ui/formElements/controlled/dadata/country/DadataCountry.d.ts +5 -4
  14. package/dist/shared/ui/formElements/controlled/dadata/country/index.d.ts +1 -1
  15. package/dist/shared/ui/formElements/controlled/dadata/fio/DadataFio.d.ts +5 -4
  16. package/dist/shared/ui/formElements/controlled/dadata/fio/index.d.ts +1 -1
  17. package/dist/shared/ui/formElements/controlled/dadata/index.d.ts +5 -5
  18. package/dist/shared/ui/formElements/controlled/dadata/party/DadataOrganization.d.ts +5 -4
  19. package/dist/shared/ui/formElements/controlled/dadata/party/index.d.ts +1 -1
  20. package/dist/shared/ui/formElements/controlled/dayPickerControl/index.d.ts +1 -1
  21. package/dist/shared/ui/formElements/controlled/editor/index.d.ts +1 -1
  22. package/dist/shared/ui/formElements/controlled/index.d.ts +27 -107
  23. package/dist/shared/ui/formElements/controlled/input/InputControl.d.ts +1 -1
  24. package/dist/shared/ui/formElements/controlled/input/MaskInputControl.d.ts +1 -1
  25. package/dist/shared/ui/formElements/controlled/input/index.d.ts +2 -2
  26. package/dist/shared/ui/formElements/controlled/inputCurrency/index.d.ts +1 -1
  27. package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +1 -1
  28. package/dist/shared/ui/formElements/controlled/radio/index.d.ts +1 -1
  29. package/dist/shared/ui/formElements/controlled/select/SelectControl.d.ts +1 -1
  30. package/dist/shared/ui/formElements/controlled/select/index.d.ts +1 -1
  31. package/dist/shared/ui/formElements/controlled/slider/SliderControl.d.ts +1 -1
  32. package/dist/shared/ui/formElements/controlled/slider/index.d.ts +1 -1
  33. package/dist/shared/ui/formElements/controlled/switch/index.d.ts +1 -1
  34. package/dist/shared/ui/formElements/controlled/uploader/UploaderControl.d.ts +1 -1
  35. package/dist/shared/ui/formElements/controlled/uploader/index.d.ts +1 -1
  36. package/dist/shared/ui/phoneView/PhoneView.d.ts +1 -1
  37. package/dist/shared/validation/dadata/dadata.validators.d.ts +1 -0
  38. package/dist/{cn-DIfn7EPB.js → typeGuards-yOWv7RXH.js} +130 -106
  39. package/dist/typeGuards-yOWv7RXH.js.map +1 -0
  40. package/dist/ui.js +335 -33184
  41. package/dist/ui.js.map +1 -1
  42. package/dist/useDebounce-QgEEiWs9.js +1190 -0
  43. package/dist/useDebounce-QgEEiWs9.js.map +1 -0
  44. package/dist/{utils-Baa0uHhG.js → utils-DnWHDMk6.js} +125 -125
  45. package/dist/{utils-Baa0uHhG.js.map → utils-DnWHDMk6.js.map} +1 -1
  46. package/dist/utils.js +4 -5
  47. package/dist/utils.js.map +1 -1
  48. package/dist/validation.js +76 -76
  49. package/dist/widget.js +127 -123
  50. package/dist/widget.js.map +1 -1
  51. package/dist/widgets/fieldMapper/FieldMapper.d.ts +8 -0
  52. package/dist/widgets/fieldMapper/index.d.ts +2 -0
  53. package/dist/widgets/fieldMapper/model/types.d.ts +9 -0
  54. package/dist/widgets/index.d.ts +1 -0
  55. package/package.json +1 -1
  56. package/dist/CustomLink-BrBUFe53.js +0 -8946
  57. package/dist/CustomLink-BrBUFe53.js.map +0 -1
  58. package/dist/cn-DIfn7EPB.js.map +0 -1
  59. package/dist/isClient-D-a29gNu.js +0 -5
  60. package/dist/typeGuards-B82KZ2oS.js +0 -27
  61. package/dist/typeGuards-B82KZ2oS.js.map +0 -1
  62. package/dist/useDebounce-CIcYhLoU.js +0 -1167
  63. package/dist/useDebounce-CIcYhLoU.js.map +0 -1
  64. package/dist/useDevice-L83kSsN7.js +0 -28
  65. package/dist/useDevice-L83kSsN7.js.map +0 -1
  66. /package/dist/{shared/ui/phoneView → widgets/footer/model}/helpers.d.ts +0 -0
@@ -2,24 +2,24 @@ function Y(e) {
2
2
  var r, t, o = "";
3
3
  if (typeof e == "string" || typeof e == "number") o += e;
4
4
  else if (typeof e == "object") if (Array.isArray(e)) {
5
- var l = e.length;
6
- for (r = 0; r < l; r++) e[r] && (t = Y(e[r])) && (o && (o += " "), o += t);
5
+ var i = e.length;
6
+ for (r = 0; r < i; r++) e[r] && (t = Y(e[r])) && (o && (o += " "), o += t);
7
7
  } else for (t in e) e[t] && (o && (o += " "), o += t);
8
8
  return o;
9
9
  }
10
10
  function ne() {
11
- for (var e, r, t = 0, o = "", l = arguments.length; t < l; t++) (e = arguments[t]) && (r = Y(e)) && (o && (o += " "), o += r);
11
+ for (var e, r, t = 0, o = "", i = arguments.length; t < i; t++) (e = arguments[t]) && (r = Y(e)) && (o && (o += " "), o += r);
12
12
  return o;
13
13
  }
14
- const B = "-", se = (e) => {
15
- const r = ie(e), {
14
+ const $ = "-", se = (e) => {
15
+ const r = le(e), {
16
16
  conflictingClassGroups: t,
17
17
  conflictingClassGroupModifiers: o
18
18
  } = e;
19
19
  return {
20
20
  getClassGroupId: (a) => {
21
- const s = a.split(B);
22
- return s[0] === "" && s.length !== 1 && s.shift(), D(s, r) || le(a);
21
+ const s = a.split($);
22
+ return s[0] === "" && s.length !== 1 && s.shift(), D(s, r) || ie(a);
23
23
  },
24
24
  getConflictingClassGroupIds: (a, s) => {
25
25
  const u = t[a] || [];
@@ -30,22 +30,22 @@ const B = "-", se = (e) => {
30
30
  var a;
31
31
  if (e.length === 0)
32
32
  return r.classGroupId;
33
- const t = e[0], o = r.nextPart.get(t), l = o ? D(e.slice(1), o) : void 0;
34
- if (l)
35
- return l;
33
+ const t = e[0], o = r.nextPart.get(t), i = o ? D(e.slice(1), o) : void 0;
34
+ if (i)
35
+ return i;
36
36
  if (r.validators.length === 0)
37
37
  return;
38
- const n = e.join(B);
38
+ const n = e.join($);
39
39
  return (a = r.validators.find(({
40
40
  validator: s
41
41
  }) => s(n))) == null ? void 0 : a.classGroupId;
42
- }, K = /^\[(.+)\]$/, le = (e) => {
42
+ }, K = /^\[(.+)\]$/, ie = (e) => {
43
43
  if (K.test(e)) {
44
44
  const r = K.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
45
45
  if (t)
46
46
  return "arbitrary.." + t;
47
47
  }
48
- }, ie = (e) => {
48
+ }, le = (e) => {
49
49
  const {
50
50
  theme: r,
51
51
  prefix: t
@@ -54,41 +54,41 @@ const B = "-", se = (e) => {
54
54
  validators: []
55
55
  };
56
56
  return ce(Object.entries(e.classGroups), t).forEach(([n, a]) => {
57
- $(a, o, n, r);
57
+ _(a, o, n, r);
58
58
  }), o;
59
- }, $ = (e, r, t, o) => {
60
- e.forEach((l) => {
61
- if (typeof l == "string") {
62
- const n = l === "" ? r : Q(r, l);
59
+ }, _ = (e, r, t, o) => {
60
+ e.forEach((i) => {
61
+ if (typeof i == "string") {
62
+ const n = i === "" ? r : Q(r, i);
63
63
  n.classGroupId = t;
64
64
  return;
65
65
  }
66
- if (typeof l == "function") {
67
- if (ae(l)) {
68
- $(l(o), r, t, o);
66
+ if (typeof i == "function") {
67
+ if (ae(i)) {
68
+ _(i(o), r, t, o);
69
69
  return;
70
70
  }
71
71
  r.validators.push({
72
- validator: l,
72
+ validator: i,
73
73
  classGroupId: t
74
74
  });
75
75
  return;
76
76
  }
77
- Object.entries(l).forEach(([n, a]) => {
78
- $(a, Q(r, n), t, o);
77
+ Object.entries(i).forEach(([n, a]) => {
78
+ _(a, Q(r, n), t, o);
79
79
  });
80
80
  });
81
81
  }, Q = (e, r) => {
82
82
  let t = e;
83
- return r.split(B).forEach((o) => {
83
+ return r.split($).forEach((o) => {
84
84
  t.nextPart.has(o) || t.nextPart.set(o, {
85
85
  nextPart: /* @__PURE__ */ new Map(),
86
86
  validators: []
87
87
  }), t = t.nextPart.get(o);
88
88
  }), t;
89
89
  }, ae = (e) => e.isThemeGetter, ce = (e, r) => r ? e.map(([t, o]) => {
90
- const l = o.map((n) => typeof n == "string" ? r + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([a, s]) => [r + a, s])) : n);
91
- return [t, l];
90
+ const i = o.map((n) => typeof n == "string" ? r + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([a, s]) => [r + a, s])) : n);
91
+ return [t, i];
92
92
  }) : e, de = (e) => {
93
93
  if (e < 1)
94
94
  return {
@@ -98,7 +98,7 @@ const B = "-", se = (e) => {
98
98
  }
99
99
  };
100
100
  let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
101
- const l = (n, a) => {
101
+ const i = (n, a) => {
102
102
  t.set(n, a), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
103
103
  };
104
104
  return {
@@ -107,23 +107,23 @@ const B = "-", se = (e) => {
107
107
  if (a !== void 0)
108
108
  return a;
109
109
  if ((a = o.get(n)) !== void 0)
110
- return l(n, a), a;
110
+ return i(n, a), a;
111
111
  },
112
112
  set(n, a) {
113
- t.has(n) ? t.set(n, a) : l(n, a);
113
+ t.has(n) ? t.set(n, a) : i(n, a);
114
114
  }
115
115
  };
116
116
  }, ee = "!", pe = (e) => {
117
117
  const {
118
118
  separator: r,
119
119
  experimentalParseClassName: t
120
- } = e, o = r.length === 1, l = r[0], n = r.length, a = (s) => {
120
+ } = e, o = r.length === 1, i = r[0], n = r.length, a = (s) => {
121
121
  const u = [];
122
122
  let g = 0, m = 0, y;
123
123
  for (let p = 0; p < s.length; p++) {
124
124
  let f = s[p];
125
125
  if (g === 0) {
126
- if (f === l && (o || s.slice(p, p + n) === r)) {
126
+ if (f === i && (o || s.slice(p, p + n) === r)) {
127
127
  u.push(s.slice(m, p)), m = p + n;
128
128
  continue;
129
129
  }
@@ -162,7 +162,7 @@ const B = "-", se = (e) => {
162
162
  const {
163
163
  parseClassName: t,
164
164
  getClassGroupId: o,
165
- getConflictingClassGroupIds: l
165
+ getConflictingClassGroupIds: i
166
166
  } = r, n = [], a = e.trim().split(ge);
167
167
  let s = "";
168
168
  for (let u = a.length - 1; u >= 0; u -= 1) {
@@ -188,10 +188,10 @@ const B = "-", se = (e) => {
188
188
  if (n.includes(h))
189
189
  continue;
190
190
  n.push(h);
191
- const R = l(b, w);
191
+ const R = i(b, w);
192
192
  for (let S = 0; S < R.length; ++S) {
193
- const E = R[S];
194
- n.push(f + E);
193
+ const N = R[S];
194
+ n.push(f + N);
195
195
  }
196
196
  s = g + (s.length > 0 ? " " + s : s);
197
197
  }
@@ -212,17 +212,17 @@ const re = (e) => {
212
212
  return t;
213
213
  };
214
214
  function he(e, ...r) {
215
- let t, o, l, n = a;
215
+ let t, o, i, n = a;
216
216
  function a(u) {
217
217
  const g = r.reduce((m, y) => y(m), e());
218
- return t = be(g), o = t.cache.get, l = t.cache.set, n = s, s(u);
218
+ return t = be(g), o = t.cache.get, i = t.cache.set, n = s, s(u);
219
219
  }
220
220
  function s(u) {
221
221
  const g = o(u);
222
222
  if (g)
223
223
  return g;
224
224
  const m = fe(u, t);
225
- return l(u, m), m;
225
+ return i(u, m), m;
226
226
  }
227
227
  return function() {
228
228
  return n(me.apply(null, arguments));
@@ -231,26 +231,26 @@ function he(e, ...r) {
231
231
  const c = (e) => {
232
232
  const r = (t) => t[e] || [];
233
233
  return r.isThemeGetter = !0, r;
234
- }, te = /^\[(?:([a-z-]+):)?(.+)\]$/i, ye = /^\d+\/\d+$/, xe = /* @__PURE__ */ new Set(["px", "full", "screen"]), we = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ve = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ke = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ce = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ze = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, C = (e) => M(e) || xe.has(e) || ye.test(e), z = (e) => G(e, "length", je), M = (e) => !!e && !Number.isNaN(Number(e)), _ = (e) => G(e, "number", M), P = (e) => !!e && Number.isInteger(Number(e)), Ae = (e) => e.endsWith("%") && M(e.slice(0, -1)), i = (e) => te.test(e), A = (e) => we.test(e), Se = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Me = (e) => G(e, Se, oe), Ge = (e) => G(e, "position", oe), Re = /* @__PURE__ */ new Set(["image", "url"]), Ie = (e) => G(e, Re, Ne), Pe = (e) => G(e, "", Ee), j = () => !0, G = (e, r, t) => {
234
+ }, te = /^\[(?:([a-z-]+):)?(.+)\]$/i, ye = /^\d+\/\d+$/, xe = /* @__PURE__ */ new Set(["px", "full", "screen"]), we = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ve = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ke = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ce = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ze = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, C = (e) => M(e) || xe.has(e) || ye.test(e), z = (e) => G(e, "length", Ee), M = (e) => !!e && !Number.isNaN(Number(e)), U = (e) => G(e, "number", M), P = (e) => !!e && Number.isInteger(Number(e)), Ae = (e) => e.endsWith("%") && M(e.slice(0, -1)), l = (e) => te.test(e), A = (e) => we.test(e), Se = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Me = (e) => G(e, Se, oe), Ge = (e) => G(e, "position", oe), Re = /* @__PURE__ */ new Set(["image", "url"]), Ie = (e) => G(e, Re, je), Pe = (e) => G(e, "", Ne), E = () => !0, G = (e, r, t) => {
235
235
  const o = te.exec(e);
236
236
  return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
237
- }, je = (e) => (
237
+ }, Ee = (e) => (
238
238
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
239
239
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
240
240
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
241
241
  ve.test(e) && !ke.test(e)
242
- ), oe = () => !1, Ee = (e) => Ce.test(e), Ne = (e) => ze.test(e), Te = () => {
243
- const e = c("colors"), r = c("spacing"), t = c("blur"), o = c("brightness"), l = c("borderColor"), n = c("borderRadius"), a = c("borderSpacing"), s = c("borderWidth"), u = c("contrast"), g = c("grayscale"), m = c("hueRotate"), y = c("invert"), x = c("gap"), v = c("gradientColorStops"), w = c("gradientColorStopPositions"), b = c("inset"), p = c("margin"), f = c("opacity"), h = c("padding"), R = c("saturate"), S = c("scale"), E = c("sepia"), U = c("skew"), F = c("space"), q = c("translate"), L = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", i, r], d = () => [i, r], J = () => ["", C, z], N = () => ["auto", M, i], X = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], I = () => ["", "0", i], H = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [M, i];
242
+ ), oe = () => !1, Ne = (e) => Ce.test(e), je = (e) => ze.test(e), Te = () => {
243
+ const e = c("colors"), r = c("spacing"), t = c("blur"), o = c("brightness"), i = c("borderColor"), n = c("borderRadius"), a = c("borderSpacing"), s = c("borderWidth"), u = c("contrast"), g = c("grayscale"), m = c("hueRotate"), y = c("invert"), x = c("gap"), v = c("gradientColorStops"), w = c("gradientColorStopPositions"), b = c("inset"), p = c("margin"), f = c("opacity"), h = c("padding"), R = c("saturate"), S = c("scale"), N = c("sepia"), B = c("skew"), F = c("space"), q = c("translate"), L = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", l, r], d = () => [l, r], J = () => ["", C, z], j = () => ["auto", M, l], X = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], I = () => ["", "0", l], H = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [M, l];
244
244
  return {
245
245
  cacheSize: 500,
246
246
  separator: ":",
247
247
  theme: {
248
- colors: [j],
248
+ colors: [E],
249
249
  spacing: [C, z],
250
- blur: ["none", "", A, i],
250
+ blur: ["none", "", A, l],
251
251
  brightness: k(),
252
252
  borderColor: [e],
253
- borderRadius: ["none", "", "full", A, i],
253
+ borderRadius: ["none", "", "full", A, l],
254
254
  borderSpacing: d(),
255
255
  borderWidth: J(),
256
256
  contrast: k(),
@@ -278,7 +278,7 @@ const c = (e) => {
278
278
  * @see https://tailwindcss.com/docs/aspect-ratio
279
279
  */
280
280
  aspect: [{
281
- aspect: ["auto", "square", "video", i]
281
+ aspect: ["auto", "square", "video", l]
282
282
  }],
283
283
  /**
284
284
  * Container
@@ -363,7 +363,7 @@ const c = (e) => {
363
363
  * @see https://tailwindcss.com/docs/object-position
364
364
  */
365
365
  "object-position": [{
366
- object: [...X(), i]
366
+ object: [...X(), l]
367
367
  }],
368
368
  /**
369
369
  * Overflow
@@ -485,7 +485,7 @@ const c = (e) => {
485
485
  * @see https://tailwindcss.com/docs/z-index
486
486
  */
487
487
  z: [{
488
- z: ["auto", P, i]
488
+ z: ["auto", P, l]
489
489
  }],
490
490
  // Flexbox and Grid
491
491
  /**
@@ -514,7 +514,7 @@ const c = (e) => {
514
514
  * @see https://tailwindcss.com/docs/flex
515
515
  */
516
516
  flex: [{
517
- flex: ["1", "auto", "initial", "none", i]
517
+ flex: ["1", "auto", "initial", "none", l]
518
518
  }],
519
519
  /**
520
520
  * Flex Grow
@@ -535,14 +535,14 @@ const c = (e) => {
535
535
  * @see https://tailwindcss.com/docs/order
536
536
  */
537
537
  order: [{
538
- order: ["first", "last", "none", P, i]
538
+ order: ["first", "last", "none", P, l]
539
539
  }],
540
540
  /**
541
541
  * Grid Template Columns
542
542
  * @see https://tailwindcss.com/docs/grid-template-columns
543
543
  */
544
544
  "grid-cols": [{
545
- "grid-cols": [j]
545
+ "grid-cols": [E]
546
546
  }],
547
547
  /**
548
548
  * Grid Column Start / End
@@ -550,29 +550,29 @@ const c = (e) => {
550
550
  */
551
551
  "col-start-end": [{
552
552
  col: ["auto", {
553
- span: ["full", P, i]
554
- }, i]
553
+ span: ["full", P, l]
554
+ }, l]
555
555
  }],
556
556
  /**
557
557
  * Grid Column Start
558
558
  * @see https://tailwindcss.com/docs/grid-column
559
559
  */
560
560
  "col-start": [{
561
- "col-start": N()
561
+ "col-start": j()
562
562
  }],
563
563
  /**
564
564
  * Grid Column End
565
565
  * @see https://tailwindcss.com/docs/grid-column
566
566
  */
567
567
  "col-end": [{
568
- "col-end": N()
568
+ "col-end": j()
569
569
  }],
570
570
  /**
571
571
  * Grid Template Rows
572
572
  * @see https://tailwindcss.com/docs/grid-template-rows
573
573
  */
574
574
  "grid-rows": [{
575
- "grid-rows": [j]
575
+ "grid-rows": [E]
576
576
  }],
577
577
  /**
578
578
  * Grid Row Start / End
@@ -580,22 +580,22 @@ const c = (e) => {
580
580
  */
581
581
  "row-start-end": [{
582
582
  row: ["auto", {
583
- span: [P, i]
584
- }, i]
583
+ span: [P, l]
584
+ }, l]
585
585
  }],
586
586
  /**
587
587
  * Grid Row Start
588
588
  * @see https://tailwindcss.com/docs/grid-row
589
589
  */
590
590
  "row-start": [{
591
- "row-start": N()
591
+ "row-start": j()
592
592
  }],
593
593
  /**
594
594
  * Grid Row End
595
595
  * @see https://tailwindcss.com/docs/grid-row
596
596
  */
597
597
  "row-end": [{
598
- "row-end": N()
598
+ "row-end": j()
599
599
  }],
600
600
  /**
601
601
  * Grid Auto Flow
@@ -609,14 +609,14 @@ const c = (e) => {
609
609
  * @see https://tailwindcss.com/docs/grid-auto-columns
610
610
  */
611
611
  "auto-cols": [{
612
- "auto-cols": ["auto", "min", "max", "fr", i]
612
+ "auto-cols": ["auto", "min", "max", "fr", l]
613
613
  }],
614
614
  /**
615
615
  * Grid Auto Rows
616
616
  * @see https://tailwindcss.com/docs/grid-auto-rows
617
617
  */
618
618
  "auto-rows": [{
619
- "auto-rows": ["auto", "min", "max", "fr", i]
619
+ "auto-rows": ["auto", "min", "max", "fr", l]
620
620
  }],
621
621
  /**
622
622
  * Gap
@@ -859,21 +859,21 @@ const c = (e) => {
859
859
  * @see https://tailwindcss.com/docs/width
860
860
  */
861
861
  w: [{
862
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", i, r]
862
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", l, r]
863
863
  }],
864
864
  /**
865
865
  * Min-Width
866
866
  * @see https://tailwindcss.com/docs/min-width
867
867
  */
868
868
  "min-w": [{
869
- "min-w": [i, r, "min", "max", "fit"]
869
+ "min-w": [l, r, "min", "max", "fit"]
870
870
  }],
871
871
  /**
872
872
  * Max-Width
873
873
  * @see https://tailwindcss.com/docs/max-width
874
874
  */
875
875
  "max-w": [{
876
- "max-w": [i, r, "none", "full", "min", "max", "fit", "prose", {
876
+ "max-w": [l, r, "none", "full", "min", "max", "fit", "prose", {
877
877
  screen: [A]
878
878
  }, A]
879
879
  }],
@@ -882,28 +882,28 @@ const c = (e) => {
882
882
  * @see https://tailwindcss.com/docs/height
883
883
  */
884
884
  h: [{
885
- h: [i, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
885
+ h: [l, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
886
886
  }],
887
887
  /**
888
888
  * Min-Height
889
889
  * @see https://tailwindcss.com/docs/min-height
890
890
  */
891
891
  "min-h": [{
892
- "min-h": [i, r, "min", "max", "fit", "svh", "lvh", "dvh"]
892
+ "min-h": [l, r, "min", "max", "fit", "svh", "lvh", "dvh"]
893
893
  }],
894
894
  /**
895
895
  * Max-Height
896
896
  * @see https://tailwindcss.com/docs/max-height
897
897
  */
898
898
  "max-h": [{
899
- "max-h": [i, r, "min", "max", "fit", "svh", "lvh", "dvh"]
899
+ "max-h": [l, r, "min", "max", "fit", "svh", "lvh", "dvh"]
900
900
  }],
901
901
  /**
902
902
  * Size
903
903
  * @see https://tailwindcss.com/docs/size
904
904
  */
905
905
  size: [{
906
- size: [i, r, "auto", "min", "max", "fit"]
906
+ size: [l, r, "auto", "min", "max", "fit"]
907
907
  }],
908
908
  // Typography
909
909
  /**
@@ -928,14 +928,14 @@ const c = (e) => {
928
928
  * @see https://tailwindcss.com/docs/font-weight
929
929
  */
930
930
  "font-weight": [{
931
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", _]
931
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", U]
932
932
  }],
933
933
  /**
934
934
  * Font Family
935
935
  * @see https://tailwindcss.com/docs/font-family
936
936
  */
937
937
  "font-family": [{
938
- font: [j]
938
+ font: [E]
939
939
  }],
940
940
  /**
941
941
  * Font Variant Numeric
@@ -972,35 +972,35 @@ const c = (e) => {
972
972
  * @see https://tailwindcss.com/docs/letter-spacing
973
973
  */
974
974
  tracking: [{
975
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", i]
975
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", l]
976
976
  }],
977
977
  /**
978
978
  * Line Clamp
979
979
  * @see https://tailwindcss.com/docs/line-clamp
980
980
  */
981
981
  "line-clamp": [{
982
- "line-clamp": ["none", M, _]
982
+ "line-clamp": ["none", M, U]
983
983
  }],
984
984
  /**
985
985
  * Line Height
986
986
  * @see https://tailwindcss.com/docs/line-height
987
987
  */
988
988
  leading: [{
989
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", C, i]
989
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", C, l]
990
990
  }],
991
991
  /**
992
992
  * List Style Image
993
993
  * @see https://tailwindcss.com/docs/list-style-image
994
994
  */
995
995
  "list-image": [{
996
- "list-image": ["none", i]
996
+ "list-image": ["none", l]
997
997
  }],
998
998
  /**
999
999
  * List Style Type
1000
1000
  * @see https://tailwindcss.com/docs/list-style-type
1001
1001
  */
1002
1002
  "list-style-type": [{
1003
- list: ["none", "disc", "decimal", i]
1003
+ list: ["none", "disc", "decimal", l]
1004
1004
  }],
1005
1005
  /**
1006
1006
  * List Style Position
@@ -1069,7 +1069,7 @@ const c = (e) => {
1069
1069
  * @see https://tailwindcss.com/docs/text-underline-offset
1070
1070
  */
1071
1071
  "underline-offset": [{
1072
- "underline-offset": ["auto", C, i]
1072
+ "underline-offset": ["auto", C, l]
1073
1073
  }],
1074
1074
  /**
1075
1075
  * Text Decoration Color
@@ -1107,7 +1107,7 @@ const c = (e) => {
1107
1107
  * @see https://tailwindcss.com/docs/vertical-align
1108
1108
  */
1109
1109
  "vertical-align": [{
1110
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", i]
1110
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", l]
1111
1111
  }],
1112
1112
  /**
1113
1113
  * Whitespace
@@ -1135,7 +1135,7 @@ const c = (e) => {
1135
1135
  * @see https://tailwindcss.com/docs/content
1136
1136
  */
1137
1137
  content: [{
1138
- content: ["none", i]
1138
+ content: ["none", l]
1139
1139
  }],
1140
1140
  // Backgrounds
1141
1141
  /**
@@ -1474,70 +1474,70 @@ const c = (e) => {
1474
1474
  * @see https://tailwindcss.com/docs/border-color
1475
1475
  */
1476
1476
  "border-color": [{
1477
- border: [l]
1477
+ border: [i]
1478
1478
  }],
1479
1479
  /**
1480
1480
  * Border Color X
1481
1481
  * @see https://tailwindcss.com/docs/border-color
1482
1482
  */
1483
1483
  "border-color-x": [{
1484
- "border-x": [l]
1484
+ "border-x": [i]
1485
1485
  }],
1486
1486
  /**
1487
1487
  * Border Color Y
1488
1488
  * @see https://tailwindcss.com/docs/border-color
1489
1489
  */
1490
1490
  "border-color-y": [{
1491
- "border-y": [l]
1491
+ "border-y": [i]
1492
1492
  }],
1493
1493
  /**
1494
1494
  * Border Color S
1495
1495
  * @see https://tailwindcss.com/docs/border-color
1496
1496
  */
1497
1497
  "border-color-s": [{
1498
- "border-s": [l]
1498
+ "border-s": [i]
1499
1499
  }],
1500
1500
  /**
1501
1501
  * Border Color E
1502
1502
  * @see https://tailwindcss.com/docs/border-color
1503
1503
  */
1504
1504
  "border-color-e": [{
1505
- "border-e": [l]
1505
+ "border-e": [i]
1506
1506
  }],
1507
1507
  /**
1508
1508
  * Border Color Top
1509
1509
  * @see https://tailwindcss.com/docs/border-color
1510
1510
  */
1511
1511
  "border-color-t": [{
1512
- "border-t": [l]
1512
+ "border-t": [i]
1513
1513
  }],
1514
1514
  /**
1515
1515
  * Border Color Right
1516
1516
  * @see https://tailwindcss.com/docs/border-color
1517
1517
  */
1518
1518
  "border-color-r": [{
1519
- "border-r": [l]
1519
+ "border-r": [i]
1520
1520
  }],
1521
1521
  /**
1522
1522
  * Border Color Bottom
1523
1523
  * @see https://tailwindcss.com/docs/border-color
1524
1524
  */
1525
1525
  "border-color-b": [{
1526
- "border-b": [l]
1526
+ "border-b": [i]
1527
1527
  }],
1528
1528
  /**
1529
1529
  * Border Color Left
1530
1530
  * @see https://tailwindcss.com/docs/border-color
1531
1531
  */
1532
1532
  "border-color-l": [{
1533
- "border-l": [l]
1533
+ "border-l": [i]
1534
1534
  }],
1535
1535
  /**
1536
1536
  * Divide Color
1537
1537
  * @see https://tailwindcss.com/docs/divide-color
1538
1538
  */
1539
1539
  "divide-color": [{
1540
- divide: [l]
1540
+ divide: [i]
1541
1541
  }],
1542
1542
  /**
1543
1543
  * Outline Style
@@ -1551,7 +1551,7 @@ const c = (e) => {
1551
1551
  * @see https://tailwindcss.com/docs/outline-offset
1552
1552
  */
1553
1553
  "outline-offset": [{
1554
- "outline-offset": [C, i]
1554
+ "outline-offset": [C, l]
1555
1555
  }],
1556
1556
  /**
1557
1557
  * Outline Width
@@ -1620,7 +1620,7 @@ const c = (e) => {
1620
1620
  * @see https://tailwindcss.com/docs/box-shadow-color
1621
1621
  */
1622
1622
  "shadow-color": [{
1623
- shadow: [j]
1623
+ shadow: [E]
1624
1624
  }],
1625
1625
  /**
1626
1626
  * Opacity
@@ -1678,7 +1678,7 @@ const c = (e) => {
1678
1678
  * @see https://tailwindcss.com/docs/drop-shadow
1679
1679
  */
1680
1680
  "drop-shadow": [{
1681
- "drop-shadow": ["", "none", A, i]
1681
+ "drop-shadow": ["", "none", A, l]
1682
1682
  }],
1683
1683
  /**
1684
1684
  * Grayscale
@@ -1713,7 +1713,7 @@ const c = (e) => {
1713
1713
  * @see https://tailwindcss.com/docs/sepia
1714
1714
  */
1715
1715
  sepia: [{
1716
- sepia: [E]
1716
+ sepia: [N]
1717
1717
  }],
1718
1718
  /**
1719
1719
  * Backdrop Filter
@@ -1784,7 +1784,7 @@ const c = (e) => {
1784
1784
  * @see https://tailwindcss.com/docs/backdrop-sepia
1785
1785
  */
1786
1786
  "backdrop-sepia": [{
1787
- "backdrop-sepia": [E]
1787
+ "backdrop-sepia": [N]
1788
1788
  }],
1789
1789
  // Tables
1790
1790
  /**
@@ -1835,7 +1835,7 @@ const c = (e) => {
1835
1835
  * @see https://tailwindcss.com/docs/transition-property
1836
1836
  */
1837
1837
  transition: [{
1838
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", i]
1838
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", l]
1839
1839
  }],
1840
1840
  /**
1841
1841
  * Transition Duration
@@ -1849,7 +1849,7 @@ const c = (e) => {
1849
1849
  * @see https://tailwindcss.com/docs/transition-timing-function
1850
1850
  */
1851
1851
  ease: [{
1852
- ease: ["linear", "in", "out", "in-out", i]
1852
+ ease: ["linear", "in", "out", "in-out", l]
1853
1853
  }],
1854
1854
  /**
1855
1855
  * Transition Delay
@@ -1863,7 +1863,7 @@ const c = (e) => {
1863
1863
  * @see https://tailwindcss.com/docs/animation
1864
1864
  */
1865
1865
  animate: [{
1866
- animate: ["none", "spin", "ping", "pulse", "bounce", i]
1866
+ animate: ["none", "spin", "ping", "pulse", "bounce", l]
1867
1867
  }],
1868
1868
  // Transforms
1869
1869
  /**
@@ -1899,7 +1899,7 @@ const c = (e) => {
1899
1899
  * @see https://tailwindcss.com/docs/rotate
1900
1900
  */
1901
1901
  rotate: [{
1902
- rotate: [P, i]
1902
+ rotate: [P, l]
1903
1903
  }],
1904
1904
  /**
1905
1905
  * Translate X
@@ -1920,21 +1920,21 @@ const c = (e) => {
1920
1920
  * @see https://tailwindcss.com/docs/skew
1921
1921
  */
1922
1922
  "skew-x": [{
1923
- "skew-x": [U]
1923
+ "skew-x": [B]
1924
1924
  }],
1925
1925
  /**
1926
1926
  * Skew Y
1927
1927
  * @see https://tailwindcss.com/docs/skew
1928
1928
  */
1929
1929
  "skew-y": [{
1930
- "skew-y": [U]
1930
+ "skew-y": [B]
1931
1931
  }],
1932
1932
  /**
1933
1933
  * Transform Origin
1934
1934
  * @see https://tailwindcss.com/docs/transform-origin
1935
1935
  */
1936
1936
  "transform-origin": [{
1937
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", i]
1937
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", l]
1938
1938
  }],
1939
1939
  // Interactivity
1940
1940
  /**
@@ -1956,7 +1956,7 @@ const c = (e) => {
1956
1956
  * @see https://tailwindcss.com/docs/cursor
1957
1957
  */
1958
1958
  cursor: [{
1959
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", i]
1959
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", l]
1960
1960
  }],
1961
1961
  /**
1962
1962
  * Caret Color
@@ -2178,7 +2178,7 @@ const c = (e) => {
2178
2178
  * @see https://tailwindcss.com/docs/will-change
2179
2179
  */
2180
2180
  "will-change": [{
2181
- "will-change": ["auto", "scroll", "contents", "transform", i]
2181
+ "will-change": ["auto", "scroll", "contents", "transform", l]
2182
2182
  }],
2183
2183
  // SVG
2184
2184
  /**
@@ -2193,7 +2193,7 @@ const c = (e) => {
2193
2193
  * @see https://tailwindcss.com/docs/stroke-width
2194
2194
  */
2195
2195
  "stroke-w": [{
2196
- stroke: [C, z, _]
2196
+ stroke: [C, z, U]
2197
2197
  }],
2198
2198
  /**
2199
2199
  * Stroke
@@ -2269,8 +2269,32 @@ const c = (e) => {
2269
2269
  }
2270
2270
  };
2271
2271
  }, Le = /* @__PURE__ */ he(Te), We = (...e) => Le(ne(e));
2272
+ class Ve {
2273
+ static isString(r) {
2274
+ return typeof r == "string";
2275
+ }
2276
+ static isStringEmpty(r) {
2277
+ return this.isString(r) && !r.length;
2278
+ }
2279
+ static isNull(r) {
2280
+ return r === null;
2281
+ }
2282
+ static isUndefined(r) {
2283
+ return r === void 0 && typeof r > "u";
2284
+ }
2285
+ static isNil(r) {
2286
+ return this.isNull(r) || this.isUndefined(r);
2287
+ }
2288
+ static isArray(r) {
2289
+ return Array.isArray(r);
2290
+ }
2291
+ static isArrayEmpty(r) {
2292
+ return this.isArray(r) && !r.length;
2293
+ }
2294
+ }
2272
2295
  export {
2296
+ Ve as T,
2273
2297
  ne as a,
2274
2298
  We as c
2275
2299
  };
2276
- //# sourceMappingURL=cn-DIfn7EPB.js.map
2300
+ //# sourceMappingURL=typeGuards-yOWv7RXH.js.map