tvuikit 0.7.0 → 0.7.1

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.
@@ -1,6 +1,6 @@
1
- import Qe, { Activity as Ke, useState as ye, useRef as le, useEffect as ke, createContext as er, useContext as rr, useCallback as Pe, useLayoutEffect as tr } from "react";
1
+ import Qe, { Activity as Ke, useState as ye, useRef as le, useEffect as ke, createContext as et, useContext as tt, useCallback as Pe, useLayoutEffect as rt } from "react";
2
2
  import { createPortal as ze } from "react-dom";
3
- const or = {
3
+ const ot = {
4
4
  default: "#0A0A0A",
5
5
  component: "#00000065",
6
6
  smooth: "#111111"
@@ -16,14 +16,14 @@ const or = {
16
16
  danger: "#FF0000",
17
17
  secondary: "#000000",
18
18
  tetriary: "#000000"
19
- }, nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19
+ }, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20
20
  __proto__: null,
21
- BACKGROUND: or,
21
+ BACKGROUND: ot,
22
22
  BUTTONS: Me,
23
23
  FOREGROUND: Ie
24
24
  }, Symbol.toStringTag, { value: "Module" }));
25
- var B = /* @__PURE__ */ ((e) => (e.h1 = "36px", e.h2 = "32px", e.h3 = "24px", e.h4 = "20px", e.h5 = "18px", e.base = "16px", e.mini = "14px", e))(B || {});
26
- const sr = {
25
+ var V = /* @__PURE__ */ ((e) => (e.h1 = "36px", e.h2 = "32px", e.h3 = "24px", e.h4 = "20px", e.h5 = "18px", e.base = "16px", e.mini = "14px", e))(V || {});
26
+ const st = {
27
27
  h1: "36px",
28
28
  h2: "32px",
29
29
  h3: "24px",
@@ -32,22 +32,22 @@ const sr = {
32
32
  base: "16px",
33
33
  mini: "14px"
34
34
  /* mini */
35
- }, ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35
+ }, at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
36
36
  __proto__: null,
37
- FONT_SIZE: sr,
38
- FontSize: B
39
- }, Symbol.toStringTag, { value: "Module" })), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
37
+ FONT_SIZE: st,
38
+ FontSize: V
39
+ }, Symbol.toStringTag, { value: "Module" })), ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40
40
  __proto__: null,
41
- COLORS: nr,
42
- FONTS: ar
41
+ COLORS: nt,
42
+ FONTS: at
43
43
  }, Symbol.toStringTag, { value: "Module" }));
44
44
  var me = { exports: {} }, se = {};
45
45
  var Re;
46
- function ir() {
46
+ function it() {
47
47
  if (Re) return se;
48
48
  Re = 1;
49
- var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), r = /* @__PURE__ */ Symbol.for("react.fragment");
50
- function t(o, s, a) {
49
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
50
+ function r(o, s, a) {
51
51
  var i = null;
52
52
  if (a !== void 0 && (i = "" + a), s.key !== void 0 && (i = "" + s.key), "key" in s) {
53
53
  a = {};
@@ -62,11 +62,11 @@ function ir() {
62
62
  props: a
63
63
  };
64
64
  }
65
- return se.Fragment = r, se.jsx = t, se.jsxs = t, se;
65
+ return se.Fragment = t, se.jsx = r, se.jsxs = r, se;
66
66
  }
67
67
  var ae = {};
68
68
  var _e;
69
- function lr() {
69
+ function lt() {
70
70
  return _e || (_e = 1, process.env.NODE_ENV !== "production" && (function() {
71
71
  function e(n) {
72
72
  if (n == null) return null;
@@ -76,11 +76,11 @@ function lr() {
76
76
  switch (n) {
77
77
  case E:
78
78
  return "Fragment";
79
- case $:
79
+ case P:
80
80
  return "Profiler";
81
- case N:
81
+ case T:
82
82
  return "StrictMode";
83
- case D:
83
+ case L:
84
84
  return "Suspense";
85
85
  case H:
86
86
  return "SuspenseList";
@@ -95,49 +95,49 @@ function lr() {
95
95
  return "Portal";
96
96
  case z:
97
97
  return n.displayName || "Context";
98
- case P:
98
+ case I:
99
99
  return (n._context.displayName || "Context") + ".Consumer";
100
- case V:
101
- var h = n.render;
102
- return n = n.displayName, n || (n = h.displayName || h.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
100
+ case M:
101
+ var g = n.render;
102
+ return n = n.displayName, n || (n = g.displayName || g.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
103
103
  case b:
104
- return h = n.displayName || null, h !== null ? h : e(n.type) || "Memo";
105
- case C:
106
- h = n._payload, n = n._init;
104
+ return g = n.displayName || null, g !== null ? g : e(n.type) || "Memo";
105
+ case S:
106
+ g = n._payload, n = n._init;
107
107
  try {
108
- return e(n(h));
108
+ return e(n(g));
109
109
  } catch {
110
110
  }
111
111
  }
112
112
  return null;
113
113
  }
114
- function r(n) {
114
+ function t(n) {
115
115
  return "" + n;
116
116
  }
117
- function t(n) {
117
+ function r(n) {
118
118
  try {
119
- r(n);
120
- var h = !1;
119
+ t(n);
120
+ var g = !1;
121
121
  } catch {
122
- h = !0;
122
+ g = !0;
123
123
  }
124
- if (h) {
125
- h = console;
126
- var w = h.error, j = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
124
+ if (g) {
125
+ g = console;
126
+ var w = g.error, j = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
127
127
  return w.call(
128
- h,
128
+ g,
129
129
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
130
130
  j
131
- ), r(n);
131
+ ), t(n);
132
132
  }
133
133
  }
134
134
  function o(n) {
135
135
  if (n === E) return "<>";
136
- if (typeof n == "object" && n !== null && n.$$typeof === C)
136
+ if (typeof n == "object" && n !== null && n.$$typeof === S)
137
137
  return "<...>";
138
138
  try {
139
- var h = e(n);
140
- return h ? "<" + h + ">" : "<...>";
139
+ var g = e(n);
140
+ return g ? "<" + g + ">" : "<...>";
141
141
  } catch {
142
142
  return "<...>";
143
143
  }
@@ -150,17 +150,17 @@ function lr() {
150
150
  return Error("react-stack-top-frame");
151
151
  }
152
152
  function i(n) {
153
- if (re.call(n, "key")) {
154
- var h = Object.getOwnPropertyDescriptor(n, "key").get;
155
- if (h && h.isReactWarning) return !1;
153
+ if (te.call(n, "key")) {
154
+ var g = Object.getOwnPropertyDescriptor(n, "key").get;
155
+ if (g && g.isReactWarning) return !1;
156
156
  }
157
157
  return n.key !== void 0;
158
158
  }
159
- function m(n, h) {
159
+ function m(n, g) {
160
160
  function w() {
161
- O || (O = !0, console.error(
161
+ N || (N = !0, console.error(
162
162
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
163
- h
163
+ g
164
164
  ));
165
165
  }
166
166
  w.isReactWarning = !0, Object.defineProperty(n, "key", {
@@ -168,23 +168,23 @@ function lr() {
168
168
  configurable: !0
169
169
  });
170
170
  }
171
- function c() {
171
+ function u() {
172
172
  var n = e(this.type);
173
- return M[n] || (M[n] = !0, console.error(
173
+ return D[n] || (D[n] = !0, console.error(
174
174
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
175
175
  )), n = this.props.ref, n !== void 0 ? n : null;
176
176
  }
177
- function f(n, h, w, j, L, J) {
177
+ function f(n, g, w, j, F, J) {
178
178
  var v = w.ref;
179
179
  return n = {
180
- $$typeof: _,
180
+ $$typeof: R,
181
181
  type: n,
182
- key: h,
182
+ key: g,
183
183
  props: w,
184
184
  _owner: j
185
185
  }, (v !== void 0 ? v : null) !== null ? Object.defineProperty(n, "ref", {
186
186
  enumerable: !1,
187
- get: c
187
+ get: u
188
188
  }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
189
189
  configurable: !1,
190
190
  enumerable: !1,
@@ -199,7 +199,7 @@ function lr() {
199
199
  configurable: !1,
200
200
  enumerable: !1,
201
201
  writable: !0,
202
- value: L
202
+ value: F
203
203
  }), Object.defineProperty(n, "_debugTask", {
204
204
  configurable: !1,
205
205
  enumerable: !1,
@@ -207,11 +207,11 @@ function lr() {
207
207
  value: J
208
208
  }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
209
209
  }
210
- function y(n, h, w, j, L, J) {
211
- var v = h.children;
210
+ function y(n, g, w, j, F, J) {
211
+ var v = g.children;
212
212
  if (v !== void 0)
213
213
  if (j)
214
- if (te(v)) {
214
+ if (re(v)) {
215
215
  for (j = 0; j < v.length; j++)
216
216
  k(v[j]);
217
217
  Object.freeze && Object.freeze(v);
@@ -220,12 +220,12 @@ function lr() {
220
220
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
221
221
  );
222
222
  else k(v);
223
- if (re.call(h, "key")) {
223
+ if (te.call(g, "key")) {
224
224
  v = e(n);
225
- var F = Object.keys(h).filter(function(X) {
225
+ var G = Object.keys(g).filter(function(X) {
226
226
  return X !== "key";
227
227
  });
228
- j = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", ne[v + j] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
228
+ j = 0 < G.length ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}", ne[v + j] || (G = 0 < G.length ? "{" + G.join(": ..., ") + ": ...}" : "{}", console.error(
229
229
  `A props object containing a "key" prop is being spread into JSX:
230
230
  let props = %s;
231
231
  <%s {...props} />
@@ -234,15 +234,15 @@ React keys must be passed directly to JSX without using spread:
234
234
  <%s key={someKey} {...props} />`,
235
235
  j,
236
236
  v,
237
- F,
237
+ G,
238
238
  v
239
239
  ), ne[v + j] = !0);
240
240
  }
241
- if (v = null, w !== void 0 && (t(w), v = "" + w), i(h) && (t(h.key), v = "" + h.key), "key" in h) {
241
+ if (v = null, w !== void 0 && (r(w), v = "" + w), i(g) && (r(g.key), v = "" + g.key), "key" in g) {
242
242
  w = {};
243
- for (var Y in h)
244
- Y !== "key" && (w[Y] = h[Y]);
245
- } else w = h;
243
+ for (var Y in g)
244
+ Y !== "key" && (w[Y] = g[Y]);
245
+ } else w = g;
246
246
  return v && m(
247
247
  w,
248
248
  typeof n == "function" ? n.displayName || n.name || "Unknown" : n
@@ -251,178 +251,178 @@ React keys must be passed directly to JSX without using spread:
251
251
  v,
252
252
  w,
253
253
  s(),
254
- L,
254
+ F,
255
255
  J
256
256
  );
257
257
  }
258
258
  function k(n) {
259
- g(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === C && (n._payload.status === "fulfilled" ? g(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
259
+ _(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === S && (n._payload.status === "fulfilled" ? _(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
260
260
  }
261
- function g(n) {
262
- return typeof n == "object" && n !== null && n.$$typeof === _;
261
+ function _(n) {
262
+ return typeof n == "object" && n !== null && n.$$typeof === R;
263
263
  }
264
- var R = Qe, _ = /* @__PURE__ */ Symbol.for("react.transitional.element"), A = /* @__PURE__ */ Symbol.for("react.portal"), E = /* @__PURE__ */ Symbol.for("react.fragment"), N = /* @__PURE__ */ Symbol.for("react.strict_mode"), $ = /* @__PURE__ */ Symbol.for("react.profiler"), P = /* @__PURE__ */ Symbol.for("react.consumer"), z = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), D = /* @__PURE__ */ Symbol.for("react.suspense"), H = /* @__PURE__ */ Symbol.for("react.suspense_list"), b = /* @__PURE__ */ Symbol.for("react.memo"), C = /* @__PURE__ */ Symbol.for("react.lazy"), ce = /* @__PURE__ */ Symbol.for("react.activity"), de = /* @__PURE__ */ Symbol.for("react.client.reference"), W = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, te = Array.isArray, I = console.createTask ? console.createTask : function() {
264
+ var h = Qe, R = /* @__PURE__ */ Symbol.for("react.transitional.element"), A = /* @__PURE__ */ Symbol.for("react.portal"), E = /* @__PURE__ */ Symbol.for("react.fragment"), T = /* @__PURE__ */ Symbol.for("react.strict_mode"), P = /* @__PURE__ */ Symbol.for("react.profiler"), I = /* @__PURE__ */ Symbol.for("react.consumer"), z = /* @__PURE__ */ Symbol.for("react.context"), M = /* @__PURE__ */ Symbol.for("react.forward_ref"), L = /* @__PURE__ */ Symbol.for("react.suspense"), H = /* @__PURE__ */ Symbol.for("react.suspense_list"), b = /* @__PURE__ */ Symbol.for("react.memo"), S = /* @__PURE__ */ Symbol.for("react.lazy"), ce = /* @__PURE__ */ Symbol.for("react.activity"), de = /* @__PURE__ */ Symbol.for("react.client.reference"), W = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, re = Array.isArray, $ = console.createTask ? console.createTask : function() {
265
265
  return null;
266
266
  };
267
- R = {
267
+ h = {
268
268
  react_stack_bottom_frame: function(n) {
269
269
  return n();
270
270
  }
271
271
  };
272
- var O, M = {}, p = R.react_stack_bottom_frame.bind(
273
- R,
272
+ var N, D = {}, p = h.react_stack_bottom_frame.bind(
273
+ h,
274
274
  a
275
- )(), oe = I(o(a)), ne = {};
276
- ae.Fragment = E, ae.jsx = function(n, h, w) {
275
+ )(), oe = $(o(a)), ne = {};
276
+ ae.Fragment = E, ae.jsx = function(n, g, w) {
277
277
  var j = 1e4 > W.recentlyCreatedOwnerStacks++;
278
278
  return y(
279
279
  n,
280
- h,
280
+ g,
281
281
  w,
282
282
  !1,
283
283
  j ? Error("react-stack-top-frame") : p,
284
- j ? I(o(n)) : oe
284
+ j ? $(o(n)) : oe
285
285
  );
286
- }, ae.jsxs = function(n, h, w) {
286
+ }, ae.jsxs = function(n, g, w) {
287
287
  var j = 1e4 > W.recentlyCreatedOwnerStacks++;
288
288
  return y(
289
289
  n,
290
- h,
290
+ g,
291
291
  w,
292
292
  !0,
293
293
  j ? Error("react-stack-top-frame") : p,
294
- j ? I(o(n)) : oe
294
+ j ? $(o(n)) : oe
295
295
  );
296
296
  };
297
297
  })()), ae;
298
298
  }
299
299
  var Ae;
300
- function cr() {
301
- return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? me.exports = ir() : me.exports = lr()), me.exports;
300
+ function ct() {
301
+ return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? me.exports = it() : me.exports = lt()), me.exports;
302
302
  }
303
- var l = cr();
304
- const mt = ({ actived: e, children: r, name: t }) => /* @__PURE__ */ l.jsx(Ke, { name: t, mode: e ? "visible" : "hidden", children: r });
303
+ var l = ct();
304
+ const mr = ({ actived: e, children: t, name: r }) => /* @__PURE__ */ l.jsx(Ke, { name: r, mode: e ? "visible" : "hidden", children: t });
305
305
  function $e(e) {
306
- var r, t, o = "";
306
+ var t, r, o = "";
307
307
  if (typeof e == "string" || typeof e == "number") o += e;
308
308
  else if (typeof e == "object") if (Array.isArray(e)) {
309
309
  var s = e.length;
310
- for (r = 0; r < s; r++) e[r] && (t = $e(e[r])) && (o && (o += " "), o += t);
311
- } else for (t in e) e[t] && (o && (o += " "), o += t);
310
+ for (t = 0; t < s; t++) e[t] && (r = $e(e[t])) && (o && (o += " "), o += r);
311
+ } else for (r in e) e[r] && (o && (o += " "), o += r);
312
312
  return o;
313
313
  }
314
- function dr() {
315
- for (var e, r, t = 0, o = "", s = arguments.length; t < s; t++) (e = arguments[t]) && (r = $e(e)) && (o && (o += " "), o += r);
314
+ function dt() {
315
+ for (var e, t, r = 0, o = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (t = $e(e)) && (o && (o += " "), o += t);
316
316
  return o;
317
317
  }
318
- const ur = (e, r) => {
319
- const t = new Array(e.length + r.length);
318
+ const ut = (e, t) => {
319
+ const r = new Array(e.length + t.length);
320
320
  for (let o = 0; o < e.length; o++)
321
- t[o] = e[o];
322
- for (let o = 0; o < r.length; o++)
323
- t[e.length + o] = r[o];
324
- return t;
325
- }, mr = (e, r) => ({
321
+ r[o] = e[o];
322
+ for (let o = 0; o < t.length; o++)
323
+ r[e.length + o] = t[o];
324
+ return r;
325
+ }, mt = (e, t) => ({
326
326
  classGroupId: e,
327
- validator: r
328
- }), De = (e = /* @__PURE__ */ new Map(), r = null, t) => ({
327
+ validator: t
328
+ }), De = (e = /* @__PURE__ */ new Map(), t = null, r) => ({
329
329
  nextPart: e,
330
- validators: r,
331
- classGroupId: t
332
- }), be = "-", Te = [], fr = "arbitrary..", pr = (e) => {
333
- const r = gr(e), {
334
- conflictingClassGroups: t,
330
+ validators: t,
331
+ classGroupId: r
332
+ }), be = "-", Te = [], ft = "arbitrary..", pt = (e) => {
333
+ const t = gt(e), {
334
+ conflictingClassGroups: r,
335
335
  conflictingClassGroupModifiers: o
336
336
  } = e;
337
337
  return {
338
338
  getClassGroupId: (i) => {
339
339
  if (i.startsWith("[") && i.endsWith("]"))
340
- return br(i);
341
- const m = i.split(be), c = m[0] === "" && m.length > 1 ? 1 : 0;
342
- return Le(m, c, r);
340
+ return bt(i);
341
+ const m = i.split(be), u = m[0] === "" && m.length > 1 ? 1 : 0;
342
+ return Le(m, u, t);
343
343
  },
344
344
  getConflictingClassGroupIds: (i, m) => {
345
345
  if (m) {
346
- const c = o[i], f = t[i];
347
- return c ? f ? ur(f, c) : c : f || Te;
346
+ const u = o[i], f = r[i];
347
+ return u ? f ? ut(f, u) : u : f || Te;
348
348
  }
349
- return t[i] || Te;
349
+ return r[i] || Te;
350
350
  }
351
351
  };
352
- }, Le = (e, r, t) => {
353
- if (e.length - r === 0)
354
- return t.classGroupId;
355
- const s = e[r], a = t.nextPart.get(s);
352
+ }, Le = (e, t, r) => {
353
+ if (e.length - t === 0)
354
+ return r.classGroupId;
355
+ const s = e[t], a = r.nextPart.get(s);
356
356
  if (a) {
357
- const f = Le(e, r + 1, a);
357
+ const f = Le(e, t + 1, a);
358
358
  if (f) return f;
359
359
  }
360
- const i = t.validators;
360
+ const i = r.validators;
361
361
  if (i === null)
362
362
  return;
363
- const m = r === 0 ? e.join(be) : e.slice(r).join(be), c = i.length;
364
- for (let f = 0; f < c; f++) {
363
+ const m = t === 0 ? e.join(be) : e.slice(t).join(be), u = i.length;
364
+ for (let f = 0; f < u; f++) {
365
365
  const y = i[f];
366
366
  if (y.validator(m))
367
367
  return y.classGroupId;
368
368
  }
369
- }, br = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
370
- const r = e.slice(1, -1), t = r.indexOf(":"), o = r.slice(0, t);
371
- return o ? fr + o : void 0;
372
- })(), gr = (e) => {
369
+ }, bt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
370
+ const t = e.slice(1, -1), r = t.indexOf(":"), o = t.slice(0, r);
371
+ return o ? ft + o : void 0;
372
+ })(), gt = (e) => {
373
373
  const {
374
- theme: r,
375
- classGroups: t
374
+ theme: t,
375
+ classGroups: r
376
376
  } = e;
377
- return hr(t, r);
378
- }, hr = (e, r) => {
379
- const t = De();
377
+ return ht(r, t);
378
+ }, ht = (e, t) => {
379
+ const r = De();
380
380
  for (const o in e) {
381
381
  const s = e[o];
382
- je(s, t, o, r);
382
+ je(s, r, o, t);
383
383
  }
384
- return t;
385
- }, je = (e, r, t, o) => {
384
+ return r;
385
+ }, je = (e, t, r, o) => {
386
386
  const s = e.length;
387
387
  for (let a = 0; a < s; a++) {
388
388
  const i = e[a];
389
- xr(i, r, t, o);
389
+ xt(i, t, r, o);
390
390
  }
391
- }, xr = (e, r, t, o) => {
391
+ }, xt = (e, t, r, o) => {
392
392
  if (typeof e == "string") {
393
- wr(e, r, t);
393
+ wt(e, t, r);
394
394
  return;
395
395
  }
396
396
  if (typeof e == "function") {
397
- vr(e, r, t, o);
397
+ vt(e, t, r, o);
398
398
  return;
399
399
  }
400
- yr(e, r, t, o);
401
- }, wr = (e, r, t) => {
402
- const o = e === "" ? r : Fe(r, e);
403
- o.classGroupId = t;
404
- }, vr = (e, r, t, o) => {
405
- if (kr(e)) {
406
- je(e(o), r, t, o);
400
+ yt(e, t, r, o);
401
+ }, wt = (e, t, r) => {
402
+ const o = e === "" ? t : Fe(t, e);
403
+ o.classGroupId = r;
404
+ }, vt = (e, t, r, o) => {
405
+ if (kt(e)) {
406
+ je(e(o), t, r, o);
407
407
  return;
408
408
  }
409
- r.validators === null && (r.validators = []), r.validators.push(mr(t, e));
410
- }, yr = (e, r, t, o) => {
409
+ t.validators === null && (t.validators = []), t.validators.push(mt(r, e));
410
+ }, yt = (e, t, r, o) => {
411
411
  const s = Object.entries(e), a = s.length;
412
412
  for (let i = 0; i < a; i++) {
413
- const [m, c] = s[i];
414
- je(c, Fe(r, m), t, o);
413
+ const [m, u] = s[i];
414
+ je(u, Fe(t, m), r, o);
415
415
  }
416
- }, Fe = (e, r) => {
417
- let t = e;
418
- const o = r.split(be), s = o.length;
416
+ }, Fe = (e, t) => {
417
+ let r = e;
418
+ const o = t.split(be), s = o.length;
419
419
  for (let a = 0; a < s; a++) {
420
420
  const i = o[a];
421
- let m = t.nextPart.get(i);
422
- m || (m = De(), t.nextPart.set(i, m)), t = m;
421
+ let m = r.nextPart.get(i);
422
+ m || (m = De(), r.nextPart.set(i, m)), r = m;
423
423
  }
424
- return t;
425
- }, kr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, jr = (e) => {
424
+ return r;
425
+ }, kt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, jt = (e) => {
426
426
  if (e < 1)
427
427
  return {
428
428
  get: () => {
@@ -430,42 +430,42 @@ const ur = (e, r) => {
430
430
  set: () => {
431
431
  }
432
432
  };
433
- let r = 0, t = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
433
+ let t = 0, r = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
434
434
  const s = (a, i) => {
435
- t[a] = i, r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ Object.create(null));
435
+ r[a] = i, t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ Object.create(null));
436
436
  };
437
437
  return {
438
438
  get(a) {
439
- let i = t[a];
439
+ let i = r[a];
440
440
  if (i !== void 0)
441
441
  return i;
442
442
  if ((i = o[a]) !== void 0)
443
443
  return s(a, i), i;
444
444
  },
445
445
  set(a, i) {
446
- a in t ? t[a] = i : s(a, i);
446
+ a in r ? r[a] = i : s(a, i);
447
447
  }
448
448
  };
449
- }, ve = "!", Ce = ":", Er = [], Se = (e, r, t, o, s) => ({
449
+ }, ve = "!", Ce = ":", Et = [], Se = (e, t, r, o, s) => ({
450
450
  modifiers: e,
451
- hasImportantModifier: r,
452
- baseClassName: t,
451
+ hasImportantModifier: t,
452
+ baseClassName: r,
453
453
  maybePostfixModifierPosition: o,
454
454
  isExternal: s
455
- }), Rr = (e) => {
455
+ }), Rt = (e) => {
456
456
  const {
457
- prefix: r,
458
- experimentalParseClassName: t
457
+ prefix: t,
458
+ experimentalParseClassName: r
459
459
  } = e;
460
460
  let o = (s) => {
461
461
  const a = [];
462
- let i = 0, m = 0, c = 0, f;
462
+ let i = 0, m = 0, u = 0, f;
463
463
  const y = s.length;
464
464
  for (let A = 0; A < y; A++) {
465
465
  const E = s[A];
466
466
  if (i === 0 && m === 0) {
467
467
  if (E === Ce) {
468
- a.push(s.slice(c, A)), c = A + 1;
468
+ a.push(s.slice(u, A)), u = A + 1;
469
469
  continue;
470
470
  }
471
471
  if (E === "/") {
@@ -475,133 +475,133 @@ const ur = (e, r) => {
475
475
  }
476
476
  E === "[" ? i++ : E === "]" ? i-- : E === "(" ? m++ : E === ")" && m--;
477
477
  }
478
- const k = a.length === 0 ? s : s.slice(c);
479
- let g = k, R = !1;
480
- k.endsWith(ve) ? (g = k.slice(0, -1), R = !0) : (
478
+ const k = a.length === 0 ? s : s.slice(u);
479
+ let _ = k, h = !1;
480
+ k.endsWith(ve) ? (_ = k.slice(0, -1), h = !0) : (
481
481
  /**
482
482
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
483
483
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
484
484
  */
485
- k.startsWith(ve) && (g = k.slice(1), R = !0)
485
+ k.startsWith(ve) && (_ = k.slice(1), h = !0)
486
486
  );
487
- const _ = f && f > c ? f - c : void 0;
488
- return Se(a, R, g, _);
487
+ const R = f && f > u ? f - u : void 0;
488
+ return Se(a, h, _, R);
489
489
  };
490
- if (r) {
491
- const s = r + Ce, a = o;
492
- o = (i) => i.startsWith(s) ? a(i.slice(s.length)) : Se(Er, !1, i, void 0, !0);
493
- }
494
490
  if (t) {
491
+ const s = t + Ce, a = o;
492
+ o = (i) => i.startsWith(s) ? a(i.slice(s.length)) : Se(Et, !1, i, void 0, !0);
493
+ }
494
+ if (r) {
495
495
  const s = o;
496
- o = (a) => t({
496
+ o = (a) => r({
497
497
  className: a,
498
498
  parseClassName: s
499
499
  });
500
500
  }
501
501
  return o;
502
- }, _r = (e) => {
503
- const r = /* @__PURE__ */ new Map();
504
- return e.orderSensitiveModifiers.forEach((t, o) => {
505
- r.set(t, 1e6 + o);
506
- }), (t) => {
502
+ }, _t = (e) => {
503
+ const t = /* @__PURE__ */ new Map();
504
+ return e.orderSensitiveModifiers.forEach((r, o) => {
505
+ t.set(r, 1e6 + o);
506
+ }), (r) => {
507
507
  const o = [];
508
508
  let s = [];
509
- for (let a = 0; a < t.length; a++) {
510
- const i = t[a], m = i[0] === "[", c = r.has(i);
511
- m || c ? (s.length > 0 && (s.sort(), o.push(...s), s = []), o.push(i)) : s.push(i);
509
+ for (let a = 0; a < r.length; a++) {
510
+ const i = r[a], m = i[0] === "[", u = t.has(i);
511
+ m || u ? (s.length > 0 && (s.sort(), o.push(...s), s = []), o.push(i)) : s.push(i);
512
512
  }
513
513
  return s.length > 0 && (s.sort(), o.push(...s)), o;
514
514
  };
515
- }, Ar = (e) => ({
516
- cache: jr(e.cacheSize),
517
- parseClassName: Rr(e),
518
- sortModifiers: _r(e),
519
- ...pr(e)
520
- }), Tr = /\s+/, Cr = (e, r) => {
515
+ }, At = (e) => ({
516
+ cache: jt(e.cacheSize),
517
+ parseClassName: Rt(e),
518
+ sortModifiers: _t(e),
519
+ ...pt(e)
520
+ }), Tt = /\s+/, Ct = (e, t) => {
521
521
  const {
522
- parseClassName: t,
522
+ parseClassName: r,
523
523
  getClassGroupId: o,
524
524
  getConflictingClassGroupIds: s,
525
525
  sortModifiers: a
526
- } = r, i = [], m = e.trim().split(Tr);
527
- let c = "";
526
+ } = t, i = [], m = e.trim().split(Tt);
527
+ let u = "";
528
528
  for (let f = m.length - 1; f >= 0; f -= 1) {
529
529
  const y = m[f], {
530
530
  isExternal: k,
531
- modifiers: g,
532
- hasImportantModifier: R,
533
- baseClassName: _,
531
+ modifiers: _,
532
+ hasImportantModifier: h,
533
+ baseClassName: R,
534
534
  maybePostfixModifierPosition: A
535
- } = t(y);
535
+ } = r(y);
536
536
  if (k) {
537
- c = y + (c.length > 0 ? " " + c : c);
537
+ u = y + (u.length > 0 ? " " + u : u);
538
538
  continue;
539
539
  }
540
- let E = !!A, N = o(E ? _.substring(0, A) : _);
541
- if (!N) {
540
+ let E = !!A, T = o(E ? R.substring(0, A) : R);
541
+ if (!T) {
542
542
  if (!E) {
543
- c = y + (c.length > 0 ? " " + c : c);
543
+ u = y + (u.length > 0 ? " " + u : u);
544
544
  continue;
545
545
  }
546
- if (N = o(_), !N) {
547
- c = y + (c.length > 0 ? " " + c : c);
546
+ if (T = o(R), !T) {
547
+ u = y + (u.length > 0 ? " " + u : u);
548
548
  continue;
549
549
  }
550
550
  E = !1;
551
551
  }
552
- const $ = g.length === 0 ? "" : g.length === 1 ? g[0] : a(g).join(":"), P = R ? $ + ve : $, z = P + N;
552
+ const P = _.length === 0 ? "" : _.length === 1 ? _[0] : a(_).join(":"), I = h ? P + ve : P, z = I + T;
553
553
  if (i.indexOf(z) > -1)
554
554
  continue;
555
555
  i.push(z);
556
- const V = s(N, E);
557
- for (let D = 0; D < V.length; ++D) {
558
- const H = V[D];
559
- i.push(P + H);
556
+ const M = s(T, E);
557
+ for (let L = 0; L < M.length; ++L) {
558
+ const H = M[L];
559
+ i.push(I + H);
560
560
  }
561
- c = y + (c.length > 0 ? " " + c : c);
561
+ u = y + (u.length > 0 ? " " + u : u);
562
562
  }
563
- return c;
564
- }, Sr = (...e) => {
565
- let r = 0, t, o, s = "";
566
- for (; r < e.length; )
567
- (t = e[r++]) && (o = Ge(t)) && (s && (s += " "), s += o);
563
+ return u;
564
+ }, St = (...e) => {
565
+ let t = 0, r, o, s = "";
566
+ for (; t < e.length; )
567
+ (r = e[t++]) && (o = Ge(r)) && (s && (s += " "), s += o);
568
568
  return s;
569
569
  }, Ge = (e) => {
570
570
  if (typeof e == "string")
571
571
  return e;
572
- let r, t = "";
572
+ let t, r = "";
573
573
  for (let o = 0; o < e.length; o++)
574
- e[o] && (r = Ge(e[o])) && (t && (t += " "), t += r);
575
- return t;
576
- }, Or = (e, ...r) => {
577
- let t, o, s, a;
578
- const i = (c) => {
579
- const f = r.reduce((y, k) => k(y), e());
580
- return t = Ar(f), o = t.cache.get, s = t.cache.set, a = m, m(c);
581
- }, m = (c) => {
582
- const f = o(c);
574
+ e[o] && (t = Ge(e[o])) && (r && (r += " "), r += t);
575
+ return r;
576
+ }, Ot = (e, ...t) => {
577
+ let r, o, s, a;
578
+ const i = (u) => {
579
+ const f = t.reduce((y, k) => k(y), e());
580
+ return r = At(f), o = r.cache.get, s = r.cache.set, a = m, m(u);
581
+ }, m = (u) => {
582
+ const f = o(u);
583
583
  if (f)
584
584
  return f;
585
- const y = Cr(c, t);
586
- return s(c, y), y;
585
+ const y = Ct(u, r);
586
+ return s(u, y), y;
587
587
  };
588
- return a = i, (...c) => a(Sr(...c));
589
- }, Nr = [], T = (e) => {
590
- const r = (t) => t[e] || Nr;
591
- return r.isThemeGetter = !0, r;
592
- }, Be = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ve = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Pr = /^\d+\/\d+$/, zr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ir = /\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$/, Mr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, $r = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Dr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Z = (e) => Pr.test(e), x = (e) => !!e && !Number.isNaN(Number(e)), U = (e) => !!e && Number.isInteger(Number(e)), xe = (e) => e.endsWith("%") && x(e.slice(0, -1)), G = (e) => zr.test(e), Lr = () => !0, Fr = (e) => (
588
+ return a = i, (...u) => a(St(...u));
589
+ }, Nt = [], C = (e) => {
590
+ const t = (r) => r[e] || Nt;
591
+ return t.isThemeGetter = !0, t;
592
+ }, Be = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ve = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Pt = /^\d+\/\d+$/, zt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, It = /\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$/, Mt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, $t = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Dt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Z = (e) => Pt.test(e), x = (e) => !!e && !Number.isNaN(Number(e)), U = (e) => !!e && Number.isInteger(Number(e)), xe = (e) => e.endsWith("%") && x(e.slice(0, -1)), B = (e) => zt.test(e), Lt = () => !0, Ft = (e) => (
593
593
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
594
594
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
595
595
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
596
- Ir.test(e) && !Mr.test(e)
597
- ), We = () => !1, Gr = (e) => $r.test(e), Br = (e) => Dr.test(e), Vr = (e) => !d(e) && !u(e), Wr = (e) => K(e, He, We), d = (e) => Be.test(e), q = (e) => K(e, qe, Fr), we = (e) => K(e, Jr, x), Oe = (e) => K(e, Ye, We), Yr = (e) => K(e, Ue, Br), fe = (e) => K(e, Je, Gr), u = (e) => Ve.test(e), ie = (e) => ee(e, qe), Ur = (e) => ee(e, Xr), Ne = (e) => ee(e, Ye), Hr = (e) => ee(e, He), qr = (e) => ee(e, Ue), pe = (e) => ee(e, Je, !0), K = (e, r, t) => {
596
+ It.test(e) && !Mt.test(e)
597
+ ), We = () => !1, Gt = (e) => $t.test(e), Bt = (e) => Dt.test(e), Vt = (e) => !c(e) && !d(e), Wt = (e) => K(e, He, We), c = (e) => Be.test(e), q = (e) => K(e, qe, Ft), we = (e) => K(e, Jt, x), Oe = (e) => K(e, Ye, We), Yt = (e) => K(e, Ue, Bt), fe = (e) => K(e, Je, Gt), d = (e) => Ve.test(e), ie = (e) => ee(e, qe), Ut = (e) => ee(e, Xt), Ne = (e) => ee(e, Ye), Ht = (e) => ee(e, He), qt = (e) => ee(e, Ue), pe = (e) => ee(e, Je, !0), K = (e, t, r) => {
598
598
  const o = Be.exec(e);
599
- return o ? o[1] ? r(o[1]) : t(o[2]) : !1;
600
- }, ee = (e, r, t = !1) => {
599
+ return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
600
+ }, ee = (e, t, r = !1) => {
601
601
  const o = Ve.exec(e);
602
- return o ? o[1] ? r(o[1]) : t : !1;
603
- }, Ye = (e) => e === "position" || e === "percentage", Ue = (e) => e === "image" || e === "url", He = (e) => e === "length" || e === "size" || e === "bg-size", qe = (e) => e === "length", Jr = (e) => e === "number", Xr = (e) => e === "family-name", Je = (e) => e === "shadow", Zr = () => {
604
- const e = T("color"), r = T("font"), t = T("text"), o = T("font-weight"), s = T("tracking"), a = T("leading"), i = T("breakpoint"), m = T("container"), c = T("spacing"), f = T("radius"), y = T("shadow"), k = T("inset-shadow"), g = T("text-shadow"), R = T("drop-shadow"), _ = T("blur"), A = T("perspective"), E = T("aspect"), N = T("ease"), $ = T("animate"), P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], z = () => [
602
+ return o ? o[1] ? t(o[1]) : r : !1;
603
+ }, Ye = (e) => e === "position" || e === "percentage", Ue = (e) => e === "image" || e === "url", He = (e) => e === "length" || e === "size" || e === "bg-size", qe = (e) => e === "length", Jt = (e) => e === "number", Xt = (e) => e === "family-name", Je = (e) => e === "shadow", Zt = () => {
604
+ const e = C("color"), t = C("font"), r = C("text"), o = C("font-weight"), s = C("tracking"), a = C("leading"), i = C("breakpoint"), m = C("container"), u = C("spacing"), f = C("radius"), y = C("shadow"), k = C("inset-shadow"), _ = C("text-shadow"), h = C("drop-shadow"), R = C("blur"), A = C("perspective"), E = C("aspect"), T = C("ease"), P = C("animate"), I = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], z = () => [
605
605
  "center",
606
606
  "top",
607
607
  "bottom",
@@ -619,51 +619,51 @@ const ur = (e, r) => {
619
619
  "bottom-left",
620
620
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
621
621
  "left-bottom"
622
- ], V = () => [...z(), u, d], D = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", "contain", "none"], b = () => [u, d, c], C = () => [Z, "full", "auto", ...b()], ce = () => [U, "none", "subgrid", u, d], de = () => ["auto", {
623
- span: ["full", U, u, d]
624
- }, U, u, d], W = () => [U, "auto", u, d], re = () => ["auto", "min", "max", "fr", u, d], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], O = () => ["auto", ...b()], M = () => [Z, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], p = () => [e, u, d], oe = () => [...z(), Ne, Oe, {
625
- position: [u, d]
622
+ ], M = () => [...z(), d, c], L = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", "contain", "none"], b = () => [d, c, u], S = () => [Z, "full", "auto", ...b()], ce = () => [U, "none", "subgrid", d, c], de = () => ["auto", {
623
+ span: ["full", U, d, c]
624
+ }, U, d, c], W = () => [U, "auto", d, c], te = () => ["auto", "min", "max", "fr", d, c], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], $ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], N = () => ["auto", ...b()], D = () => [Z, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], p = () => [e, d, c], oe = () => [...z(), Ne, Oe, {
625
+ position: [d, c]
626
626
  }], ne = () => ["no-repeat", {
627
627
  repeat: ["", "x", "y", "space", "round"]
628
- }], n = () => ["auto", "cover", "contain", Hr, Wr, {
629
- size: [u, d]
630
- }], h = () => [xe, ie, q], w = () => [
628
+ }], n = () => ["auto", "cover", "contain", Ht, Wt, {
629
+ size: [d, c]
630
+ }], g = () => [xe, ie, q], w = () => [
631
631
  // Deprecated since Tailwind CSS v4.0.0
632
632
  "",
633
633
  "none",
634
634
  "full",
635
635
  f,
636
- u,
637
- d
638
- ], j = () => ["", x, ie, q], L = () => ["solid", "dashed", "dotted", "double"], J = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], v = () => [x, xe, Ne, Oe], F = () => [
636
+ d,
637
+ c
638
+ ], j = () => ["", x, ie, q], F = () => ["solid", "dashed", "dotted", "double"], J = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], v = () => [x, xe, Ne, Oe], G = () => [
639
639
  // Deprecated since Tailwind CSS v4.0.0
640
640
  "",
641
641
  "none",
642
- _,
643
- u,
644
- d
645
- ], Y = () => ["none", x, u, d], X = () => ["none", x, u, d], he = () => [x, u, d], ue = () => [Z, "full", ...b()];
642
+ R,
643
+ d,
644
+ c
645
+ ], Y = () => ["none", x, d, c], X = () => ["none", x, d, c], he = () => [x, d, c], ue = () => [Z, "full", ...b()];
646
646
  return {
647
647
  cacheSize: 500,
648
648
  theme: {
649
649
  animate: ["spin", "ping", "pulse", "bounce"],
650
650
  aspect: ["video"],
651
- blur: [G],
652
- breakpoint: [G],
653
- color: [Lr],
654
- container: [G],
655
- "drop-shadow": [G],
651
+ blur: [B],
652
+ breakpoint: [B],
653
+ color: [Lt],
654
+ container: [B],
655
+ "drop-shadow": [B],
656
656
  ease: ["in", "out", "in-out"],
657
- font: [Vr],
657
+ font: [Vt],
658
658
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
659
- "inset-shadow": [G],
659
+ "inset-shadow": [B],
660
660
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
661
661
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
662
- radius: [G],
663
- shadow: [G],
662
+ radius: [B],
663
+ shadow: [B],
664
664
  spacing: ["px", x],
665
- text: [G],
666
- "text-shadow": [G],
665
+ text: [B],
666
+ "text-shadow": [B],
667
667
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
668
668
  },
669
669
  classGroups: {
@@ -675,7 +675,7 @@ const ur = (e, r) => {
675
675
  * @see https://tailwindcss.com/docs/aspect-ratio
676
676
  */
677
677
  aspect: [{
678
- aspect: ["auto", "square", Z, d, u, E]
678
+ aspect: ["auto", "square", Z, c, d, E]
679
679
  }],
680
680
  /**
681
681
  * Container
@@ -688,21 +688,21 @@ const ur = (e, r) => {
688
688
  * @see https://tailwindcss.com/docs/columns
689
689
  */
690
690
  columns: [{
691
- columns: [x, d, u, m]
691
+ columns: [x, c, d, m]
692
692
  }],
693
693
  /**
694
694
  * Break After
695
695
  * @see https://tailwindcss.com/docs/break-after
696
696
  */
697
697
  "break-after": [{
698
- "break-after": P()
698
+ "break-after": I()
699
699
  }],
700
700
  /**
701
701
  * Break Before
702
702
  * @see https://tailwindcss.com/docs/break-before
703
703
  */
704
704
  "break-before": [{
705
- "break-before": P()
705
+ "break-before": I()
706
706
  }],
707
707
  /**
708
708
  * Break Inside
@@ -766,28 +766,28 @@ const ur = (e, r) => {
766
766
  * @see https://tailwindcss.com/docs/object-position
767
767
  */
768
768
  "object-position": [{
769
- object: V()
769
+ object: M()
770
770
  }],
771
771
  /**
772
772
  * Overflow
773
773
  * @see https://tailwindcss.com/docs/overflow
774
774
  */
775
775
  overflow: [{
776
- overflow: D()
776
+ overflow: L()
777
777
  }],
778
778
  /**
779
779
  * Overflow X
780
780
  * @see https://tailwindcss.com/docs/overflow
781
781
  */
782
782
  "overflow-x": [{
783
- "overflow-x": D()
783
+ "overflow-x": L()
784
784
  }],
785
785
  /**
786
786
  * Overflow Y
787
787
  * @see https://tailwindcss.com/docs/overflow
788
788
  */
789
789
  "overflow-y": [{
790
- "overflow-y": D()
790
+ "overflow-y": L()
791
791
  }],
792
792
  /**
793
793
  * Overscroll Behavior
@@ -820,63 +820,63 @@ const ur = (e, r) => {
820
820
  * @see https://tailwindcss.com/docs/top-right-bottom-left
821
821
  */
822
822
  inset: [{
823
- inset: C()
823
+ inset: S()
824
824
  }],
825
825
  /**
826
826
  * Right / Left
827
827
  * @see https://tailwindcss.com/docs/top-right-bottom-left
828
828
  */
829
829
  "inset-x": [{
830
- "inset-x": C()
830
+ "inset-x": S()
831
831
  }],
832
832
  /**
833
833
  * Top / Bottom
834
834
  * @see https://tailwindcss.com/docs/top-right-bottom-left
835
835
  */
836
836
  "inset-y": [{
837
- "inset-y": C()
837
+ "inset-y": S()
838
838
  }],
839
839
  /**
840
840
  * Start
841
841
  * @see https://tailwindcss.com/docs/top-right-bottom-left
842
842
  */
843
843
  start: [{
844
- start: C()
844
+ start: S()
845
845
  }],
846
846
  /**
847
847
  * End
848
848
  * @see https://tailwindcss.com/docs/top-right-bottom-left
849
849
  */
850
850
  end: [{
851
- end: C()
851
+ end: S()
852
852
  }],
853
853
  /**
854
854
  * Top
855
855
  * @see https://tailwindcss.com/docs/top-right-bottom-left
856
856
  */
857
857
  top: [{
858
- top: C()
858
+ top: S()
859
859
  }],
860
860
  /**
861
861
  * Right
862
862
  * @see https://tailwindcss.com/docs/top-right-bottom-left
863
863
  */
864
864
  right: [{
865
- right: C()
865
+ right: S()
866
866
  }],
867
867
  /**
868
868
  * Bottom
869
869
  * @see https://tailwindcss.com/docs/top-right-bottom-left
870
870
  */
871
871
  bottom: [{
872
- bottom: C()
872
+ bottom: S()
873
873
  }],
874
874
  /**
875
875
  * Left
876
876
  * @see https://tailwindcss.com/docs/top-right-bottom-left
877
877
  */
878
878
  left: [{
879
- left: C()
879
+ left: S()
880
880
  }],
881
881
  /**
882
882
  * Visibility
@@ -888,7 +888,7 @@ const ur = (e, r) => {
888
888
  * @see https://tailwindcss.com/docs/z-index
889
889
  */
890
890
  z: [{
891
- z: [U, "auto", u, d]
891
+ z: [U, "auto", d, c]
892
892
  }],
893
893
  // ------------------------
894
894
  // --- Flexbox and Grid ---
@@ -919,28 +919,28 @@ const ur = (e, r) => {
919
919
  * @see https://tailwindcss.com/docs/flex
920
920
  */
921
921
  flex: [{
922
- flex: [x, Z, "auto", "initial", "none", d]
922
+ flex: [x, Z, "auto", "initial", "none", c]
923
923
  }],
924
924
  /**
925
925
  * Flex Grow
926
926
  * @see https://tailwindcss.com/docs/flex-grow
927
927
  */
928
928
  grow: [{
929
- grow: ["", x, u, d]
929
+ grow: ["", x, d, c]
930
930
  }],
931
931
  /**
932
932
  * Flex Shrink
933
933
  * @see https://tailwindcss.com/docs/flex-shrink
934
934
  */
935
935
  shrink: [{
936
- shrink: ["", x, u, d]
936
+ shrink: ["", x, d, c]
937
937
  }],
938
938
  /**
939
939
  * Order
940
940
  * @see https://tailwindcss.com/docs/order
941
941
  */
942
942
  order: [{
943
- order: [U, "first", "last", "none", u, d]
943
+ order: [U, "first", "last", "none", d, c]
944
944
  }],
945
945
  /**
946
946
  * Grid Template Columns
@@ -1010,14 +1010,14 @@ const ur = (e, r) => {
1010
1010
  * @see https://tailwindcss.com/docs/grid-auto-columns
1011
1011
  */
1012
1012
  "auto-cols": [{
1013
- "auto-cols": re()
1013
+ "auto-cols": te()
1014
1014
  }],
1015
1015
  /**
1016
1016
  * Grid Auto Rows
1017
1017
  * @see https://tailwindcss.com/docs/grid-auto-rows
1018
1018
  */
1019
1019
  "auto-rows": [{
1020
- "auto-rows": re()
1020
+ "auto-rows": te()
1021
1021
  }],
1022
1022
  /**
1023
1023
  * Gap
@@ -1045,35 +1045,35 @@ const ur = (e, r) => {
1045
1045
  * @see https://tailwindcss.com/docs/justify-content
1046
1046
  */
1047
1047
  "justify-content": [{
1048
- justify: [...te(), "normal"]
1048
+ justify: [...re(), "normal"]
1049
1049
  }],
1050
1050
  /**
1051
1051
  * Justify Items
1052
1052
  * @see https://tailwindcss.com/docs/justify-items
1053
1053
  */
1054
1054
  "justify-items": [{
1055
- "justify-items": [...I(), "normal"]
1055
+ "justify-items": [...$(), "normal"]
1056
1056
  }],
1057
1057
  /**
1058
1058
  * Justify Self
1059
1059
  * @see https://tailwindcss.com/docs/justify-self
1060
1060
  */
1061
1061
  "justify-self": [{
1062
- "justify-self": ["auto", ...I()]
1062
+ "justify-self": ["auto", ...$()]
1063
1063
  }],
1064
1064
  /**
1065
1065
  * Align Content
1066
1066
  * @see https://tailwindcss.com/docs/align-content
1067
1067
  */
1068
1068
  "align-content": [{
1069
- content: ["normal", ...te()]
1069
+ content: ["normal", ...re()]
1070
1070
  }],
1071
1071
  /**
1072
1072
  * Align Items
1073
1073
  * @see https://tailwindcss.com/docs/align-items
1074
1074
  */
1075
1075
  "align-items": [{
1076
- items: [...I(), {
1076
+ items: [...$(), {
1077
1077
  baseline: ["", "last"]
1078
1078
  }]
1079
1079
  }],
@@ -1082,7 +1082,7 @@ const ur = (e, r) => {
1082
1082
  * @see https://tailwindcss.com/docs/align-self
1083
1083
  */
1084
1084
  "align-self": [{
1085
- self: ["auto", ...I(), {
1085
+ self: ["auto", ...$(), {
1086
1086
  baseline: ["", "last"]
1087
1087
  }]
1088
1088
  }],
@@ -1091,21 +1091,21 @@ const ur = (e, r) => {
1091
1091
  * @see https://tailwindcss.com/docs/place-content
1092
1092
  */
1093
1093
  "place-content": [{
1094
- "place-content": te()
1094
+ "place-content": re()
1095
1095
  }],
1096
1096
  /**
1097
1097
  * Place Items
1098
1098
  * @see https://tailwindcss.com/docs/place-items
1099
1099
  */
1100
1100
  "place-items": [{
1101
- "place-items": [...I(), "baseline"]
1101
+ "place-items": [...$(), "baseline"]
1102
1102
  }],
1103
1103
  /**
1104
1104
  * Place Self
1105
1105
  * @see https://tailwindcss.com/docs/place-self
1106
1106
  */
1107
1107
  "place-self": [{
1108
- "place-self": ["auto", ...I()]
1108
+ "place-self": ["auto", ...$()]
1109
1109
  }],
1110
1110
  // Spacing
1111
1111
  /**
@@ -1176,63 +1176,63 @@ const ur = (e, r) => {
1176
1176
  * @see https://tailwindcss.com/docs/margin
1177
1177
  */
1178
1178
  m: [{
1179
- m: O()
1179
+ m: N()
1180
1180
  }],
1181
1181
  /**
1182
1182
  * Margin X
1183
1183
  * @see https://tailwindcss.com/docs/margin
1184
1184
  */
1185
1185
  mx: [{
1186
- mx: O()
1186
+ mx: N()
1187
1187
  }],
1188
1188
  /**
1189
1189
  * Margin Y
1190
1190
  * @see https://tailwindcss.com/docs/margin
1191
1191
  */
1192
1192
  my: [{
1193
- my: O()
1193
+ my: N()
1194
1194
  }],
1195
1195
  /**
1196
1196
  * Margin Start
1197
1197
  * @see https://tailwindcss.com/docs/margin
1198
1198
  */
1199
1199
  ms: [{
1200
- ms: O()
1200
+ ms: N()
1201
1201
  }],
1202
1202
  /**
1203
1203
  * Margin End
1204
1204
  * @see https://tailwindcss.com/docs/margin
1205
1205
  */
1206
1206
  me: [{
1207
- me: O()
1207
+ me: N()
1208
1208
  }],
1209
1209
  /**
1210
1210
  * Margin Top
1211
1211
  * @see https://tailwindcss.com/docs/margin
1212
1212
  */
1213
1213
  mt: [{
1214
- mt: O()
1214
+ mt: N()
1215
1215
  }],
1216
1216
  /**
1217
1217
  * Margin Right
1218
1218
  * @see https://tailwindcss.com/docs/margin
1219
1219
  */
1220
1220
  mr: [{
1221
- mr: O()
1221
+ mr: N()
1222
1222
  }],
1223
1223
  /**
1224
1224
  * Margin Bottom
1225
1225
  * @see https://tailwindcss.com/docs/margin
1226
1226
  */
1227
1227
  mb: [{
1228
- mb: O()
1228
+ mb: N()
1229
1229
  }],
1230
1230
  /**
1231
1231
  * Margin Left
1232
1232
  * @see https://tailwindcss.com/docs/margin
1233
1233
  */
1234
1234
  ml: [{
1235
- ml: O()
1235
+ ml: N()
1236
1236
  }],
1237
1237
  /**
1238
1238
  * Space Between X
@@ -1266,14 +1266,14 @@ const ur = (e, r) => {
1266
1266
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1267
1267
  */
1268
1268
  size: [{
1269
- size: M()
1269
+ size: D()
1270
1270
  }],
1271
1271
  /**
1272
1272
  * Width
1273
1273
  * @see https://tailwindcss.com/docs/width
1274
1274
  */
1275
1275
  w: [{
1276
- w: [m, "screen", ...M()]
1276
+ w: [m, "screen", ...D()]
1277
1277
  }],
1278
1278
  /**
1279
1279
  * Min-Width
@@ -1285,7 +1285,7 @@ const ur = (e, r) => {
1285
1285
  "screen",
1286
1286
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1287
1287
  "none",
1288
- ...M()
1288
+ ...D()
1289
1289
  ]
1290
1290
  }],
1291
1291
  /**
@@ -1303,7 +1303,7 @@ const ur = (e, r) => {
1303
1303
  {
1304
1304
  screen: [i]
1305
1305
  },
1306
- ...M()
1306
+ ...D()
1307
1307
  ]
1308
1308
  }],
1309
1309
  /**
@@ -1311,21 +1311,21 @@ const ur = (e, r) => {
1311
1311
  * @see https://tailwindcss.com/docs/height
1312
1312
  */
1313
1313
  h: [{
1314
- h: ["screen", "lh", ...M()]
1314
+ h: ["screen", "lh", ...D()]
1315
1315
  }],
1316
1316
  /**
1317
1317
  * Min-Height
1318
1318
  * @see https://tailwindcss.com/docs/min-height
1319
1319
  */
1320
1320
  "min-h": [{
1321
- "min-h": ["screen", "lh", "none", ...M()]
1321
+ "min-h": ["screen", "lh", "none", ...D()]
1322
1322
  }],
1323
1323
  /**
1324
1324
  * Max-Height
1325
1325
  * @see https://tailwindcss.com/docs/max-height
1326
1326
  */
1327
1327
  "max-h": [{
1328
- "max-h": ["screen", "lh", ...M()]
1328
+ "max-h": ["screen", "lh", ...D()]
1329
1329
  }],
1330
1330
  // ------------------
1331
1331
  // --- Typography ---
@@ -1335,7 +1335,7 @@ const ur = (e, r) => {
1335
1335
  * @see https://tailwindcss.com/docs/font-size
1336
1336
  */
1337
1337
  "font-size": [{
1338
- text: ["base", t, ie, q]
1338
+ text: ["base", r, ie, q]
1339
1339
  }],
1340
1340
  /**
1341
1341
  * Font Smoothing
@@ -1352,21 +1352,21 @@ const ur = (e, r) => {
1352
1352
  * @see https://tailwindcss.com/docs/font-weight
1353
1353
  */
1354
1354
  "font-weight": [{
1355
- font: [o, u, we]
1355
+ font: [o, d, we]
1356
1356
  }],
1357
1357
  /**
1358
1358
  * Font Stretch
1359
1359
  * @see https://tailwindcss.com/docs/font-stretch
1360
1360
  */
1361
1361
  "font-stretch": [{
1362
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", xe, d]
1362
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", xe, c]
1363
1363
  }],
1364
1364
  /**
1365
1365
  * Font Family
1366
1366
  * @see https://tailwindcss.com/docs/font-family
1367
1367
  */
1368
1368
  "font-family": [{
1369
- font: [Ur, d, r]
1369
+ font: [Ut, c, t]
1370
1370
  }],
1371
1371
  /**
1372
1372
  * Font Variant Numeric
@@ -1403,14 +1403,14 @@ const ur = (e, r) => {
1403
1403
  * @see https://tailwindcss.com/docs/letter-spacing
1404
1404
  */
1405
1405
  tracking: [{
1406
- tracking: [s, u, d]
1406
+ tracking: [s, d, c]
1407
1407
  }],
1408
1408
  /**
1409
1409
  * Line Clamp
1410
1410
  * @see https://tailwindcss.com/docs/line-clamp
1411
1411
  */
1412
1412
  "line-clamp": [{
1413
- "line-clamp": [x, "none", u, we]
1413
+ "line-clamp": [x, "none", d, we]
1414
1414
  }],
1415
1415
  /**
1416
1416
  * Line Height
@@ -1428,7 +1428,7 @@ const ur = (e, r) => {
1428
1428
  * @see https://tailwindcss.com/docs/list-style-image
1429
1429
  */
1430
1430
  "list-image": [{
1431
- "list-image": ["none", u, d]
1431
+ "list-image": ["none", d, c]
1432
1432
  }],
1433
1433
  /**
1434
1434
  * List Style Position
@@ -1442,7 +1442,7 @@ const ur = (e, r) => {
1442
1442
  * @see https://tailwindcss.com/docs/list-style-type
1443
1443
  */
1444
1444
  "list-style-type": [{
1445
- list: ["disc", "decimal", "none", u, d]
1445
+ list: ["disc", "decimal", "none", d, c]
1446
1446
  }],
1447
1447
  /**
1448
1448
  * Text Alignment
@@ -1476,14 +1476,14 @@ const ur = (e, r) => {
1476
1476
  * @see https://tailwindcss.com/docs/text-decoration-style
1477
1477
  */
1478
1478
  "text-decoration-style": [{
1479
- decoration: [...L(), "wavy"]
1479
+ decoration: [...F(), "wavy"]
1480
1480
  }],
1481
1481
  /**
1482
1482
  * Text Decoration Thickness
1483
1483
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1484
1484
  */
1485
1485
  "text-decoration-thickness": [{
1486
- decoration: [x, "from-font", "auto", u, q]
1486
+ decoration: [x, "from-font", "auto", d, q]
1487
1487
  }],
1488
1488
  /**
1489
1489
  * Text Decoration Color
@@ -1497,7 +1497,7 @@ const ur = (e, r) => {
1497
1497
  * @see https://tailwindcss.com/docs/text-underline-offset
1498
1498
  */
1499
1499
  "underline-offset": [{
1500
- "underline-offset": [x, "auto", u, d]
1500
+ "underline-offset": [x, "auto", d, c]
1501
1501
  }],
1502
1502
  /**
1503
1503
  * Text Transform
@@ -1528,7 +1528,7 @@ const ur = (e, r) => {
1528
1528
  * @see https://tailwindcss.com/docs/vertical-align
1529
1529
  */
1530
1530
  "vertical-align": [{
1531
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", u, d]
1531
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", d, c]
1532
1532
  }],
1533
1533
  /**
1534
1534
  * Whitespace
@@ -1563,7 +1563,7 @@ const ur = (e, r) => {
1563
1563
  * @see https://tailwindcss.com/docs/content
1564
1564
  */
1565
1565
  content: [{
1566
- content: ["none", u, d]
1566
+ content: ["none", d, c]
1567
1567
  }],
1568
1568
  // -------------------
1569
1569
  // --- Backgrounds ---
@@ -1618,10 +1618,10 @@ const ur = (e, r) => {
1618
1618
  bg: ["none", {
1619
1619
  linear: [{
1620
1620
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1621
- }, U, u, d],
1622
- radial: ["", u, d],
1623
- conic: [U, u, d]
1624
- }, qr, Yr]
1621
+ }, U, d, c],
1622
+ radial: ["", d, c],
1623
+ conic: [U, d, c]
1624
+ }, qt, Yt]
1625
1625
  }],
1626
1626
  /**
1627
1627
  * Background Color
@@ -1635,21 +1635,21 @@ const ur = (e, r) => {
1635
1635
  * @see https://tailwindcss.com/docs/gradient-color-stops
1636
1636
  */
1637
1637
  "gradient-from-pos": [{
1638
- from: h()
1638
+ from: g()
1639
1639
  }],
1640
1640
  /**
1641
1641
  * Gradient Color Stops Via Position
1642
1642
  * @see https://tailwindcss.com/docs/gradient-color-stops
1643
1643
  */
1644
1644
  "gradient-via-pos": [{
1645
- via: h()
1645
+ via: g()
1646
1646
  }],
1647
1647
  /**
1648
1648
  * Gradient Color Stops To Position
1649
1649
  * @see https://tailwindcss.com/docs/gradient-color-stops
1650
1650
  */
1651
1651
  "gradient-to-pos": [{
1652
- to: h()
1652
+ to: g()
1653
1653
  }],
1654
1654
  /**
1655
1655
  * Gradient Color Stops From
@@ -1872,14 +1872,14 @@ const ur = (e, r) => {
1872
1872
  * @see https://tailwindcss.com/docs/border-style
1873
1873
  */
1874
1874
  "border-style": [{
1875
- border: [...L(), "hidden", "none"]
1875
+ border: [...F(), "hidden", "none"]
1876
1876
  }],
1877
1877
  /**
1878
1878
  * Divide Style
1879
1879
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
1880
1880
  */
1881
1881
  "divide-style": [{
1882
- divide: [...L(), "hidden", "none"]
1882
+ divide: [...F(), "hidden", "none"]
1883
1883
  }],
1884
1884
  /**
1885
1885
  * Border Color
@@ -1956,14 +1956,14 @@ const ur = (e, r) => {
1956
1956
  * @see https://tailwindcss.com/docs/outline-style
1957
1957
  */
1958
1958
  "outline-style": [{
1959
- outline: [...L(), "none", "hidden"]
1959
+ outline: [...F(), "none", "hidden"]
1960
1960
  }],
1961
1961
  /**
1962
1962
  * Outline Offset
1963
1963
  * @see https://tailwindcss.com/docs/outline-offset
1964
1964
  */
1965
1965
  "outline-offset": [{
1966
- "outline-offset": [x, u, d]
1966
+ "outline-offset": [x, d, c]
1967
1967
  }],
1968
1968
  /**
1969
1969
  * Outline Width
@@ -2075,7 +2075,7 @@ const ur = (e, r) => {
2075
2075
  * @see https://tailwindcss.com/docs/text-shadow
2076
2076
  */
2077
2077
  "text-shadow": [{
2078
- "text-shadow": ["none", g, pe, fe]
2078
+ "text-shadow": ["none", _, pe, fe]
2079
2079
  }],
2080
2080
  /**
2081
2081
  * Text Shadow Color
@@ -2089,7 +2089,7 @@ const ur = (e, r) => {
2089
2089
  * @see https://tailwindcss.com/docs/opacity
2090
2090
  */
2091
2091
  opacity: [{
2092
- opacity: [x, u, d]
2092
+ opacity: [x, d, c]
2093
2093
  }],
2094
2094
  /**
2095
2095
  * Mix Blend Mode
@@ -2211,7 +2211,7 @@ const ur = (e, r) => {
2211
2211
  "mask-y-to": p()
2212
2212
  }],
2213
2213
  "mask-image-radial": [{
2214
- "mask-radial": [u, d]
2214
+ "mask-radial": [d, c]
2215
2215
  }],
2216
2216
  "mask-image-radial-from-pos": [{
2217
2217
  "mask-radial-from": v()
@@ -2299,7 +2299,7 @@ const ur = (e, r) => {
2299
2299
  * @see https://tailwindcss.com/docs/mask-image
2300
2300
  */
2301
2301
  "mask-image": [{
2302
- mask: ["none", u, d]
2302
+ mask: ["none", d, c]
2303
2303
  }],
2304
2304
  // ---------------
2305
2305
  // --- Filters ---
@@ -2313,8 +2313,8 @@ const ur = (e, r) => {
2313
2313
  // Deprecated since Tailwind CSS v3.0.0
2314
2314
  "",
2315
2315
  "none",
2316
- u,
2317
- d
2316
+ d,
2317
+ c
2318
2318
  ]
2319
2319
  }],
2320
2320
  /**
@@ -2322,21 +2322,21 @@ const ur = (e, r) => {
2322
2322
  * @see https://tailwindcss.com/docs/blur
2323
2323
  */
2324
2324
  blur: [{
2325
- blur: F()
2325
+ blur: G()
2326
2326
  }],
2327
2327
  /**
2328
2328
  * Brightness
2329
2329
  * @see https://tailwindcss.com/docs/brightness
2330
2330
  */
2331
2331
  brightness: [{
2332
- brightness: [x, u, d]
2332
+ brightness: [x, d, c]
2333
2333
  }],
2334
2334
  /**
2335
2335
  * Contrast
2336
2336
  * @see https://tailwindcss.com/docs/contrast
2337
2337
  */
2338
2338
  contrast: [{
2339
- contrast: [x, u, d]
2339
+ contrast: [x, d, c]
2340
2340
  }],
2341
2341
  /**
2342
2342
  * Drop Shadow
@@ -2347,7 +2347,7 @@ const ur = (e, r) => {
2347
2347
  // Deprecated since Tailwind CSS v4.0.0
2348
2348
  "",
2349
2349
  "none",
2350
- R,
2350
+ h,
2351
2351
  pe,
2352
2352
  fe
2353
2353
  ]
@@ -2364,35 +2364,35 @@ const ur = (e, r) => {
2364
2364
  * @see https://tailwindcss.com/docs/grayscale
2365
2365
  */
2366
2366
  grayscale: [{
2367
- grayscale: ["", x, u, d]
2367
+ grayscale: ["", x, d, c]
2368
2368
  }],
2369
2369
  /**
2370
2370
  * Hue Rotate
2371
2371
  * @see https://tailwindcss.com/docs/hue-rotate
2372
2372
  */
2373
2373
  "hue-rotate": [{
2374
- "hue-rotate": [x, u, d]
2374
+ "hue-rotate": [x, d, c]
2375
2375
  }],
2376
2376
  /**
2377
2377
  * Invert
2378
2378
  * @see https://tailwindcss.com/docs/invert
2379
2379
  */
2380
2380
  invert: [{
2381
- invert: ["", x, u, d]
2381
+ invert: ["", x, d, c]
2382
2382
  }],
2383
2383
  /**
2384
2384
  * Saturate
2385
2385
  * @see https://tailwindcss.com/docs/saturate
2386
2386
  */
2387
2387
  saturate: [{
2388
- saturate: [x, u, d]
2388
+ saturate: [x, d, c]
2389
2389
  }],
2390
2390
  /**
2391
2391
  * Sepia
2392
2392
  * @see https://tailwindcss.com/docs/sepia
2393
2393
  */
2394
2394
  sepia: [{
2395
- sepia: ["", x, u, d]
2395
+ sepia: ["", x, d, c]
2396
2396
  }],
2397
2397
  /**
2398
2398
  * Backdrop Filter
@@ -2403,8 +2403,8 @@ const ur = (e, r) => {
2403
2403
  // Deprecated since Tailwind CSS v3.0.0
2404
2404
  "",
2405
2405
  "none",
2406
- u,
2407
- d
2406
+ d,
2407
+ c
2408
2408
  ]
2409
2409
  }],
2410
2410
  /**
@@ -2412,63 +2412,63 @@ const ur = (e, r) => {
2412
2412
  * @see https://tailwindcss.com/docs/backdrop-blur
2413
2413
  */
2414
2414
  "backdrop-blur": [{
2415
- "backdrop-blur": F()
2415
+ "backdrop-blur": G()
2416
2416
  }],
2417
2417
  /**
2418
2418
  * Backdrop Brightness
2419
2419
  * @see https://tailwindcss.com/docs/backdrop-brightness
2420
2420
  */
2421
2421
  "backdrop-brightness": [{
2422
- "backdrop-brightness": [x, u, d]
2422
+ "backdrop-brightness": [x, d, c]
2423
2423
  }],
2424
2424
  /**
2425
2425
  * Backdrop Contrast
2426
2426
  * @see https://tailwindcss.com/docs/backdrop-contrast
2427
2427
  */
2428
2428
  "backdrop-contrast": [{
2429
- "backdrop-contrast": [x, u, d]
2429
+ "backdrop-contrast": [x, d, c]
2430
2430
  }],
2431
2431
  /**
2432
2432
  * Backdrop Grayscale
2433
2433
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2434
2434
  */
2435
2435
  "backdrop-grayscale": [{
2436
- "backdrop-grayscale": ["", x, u, d]
2436
+ "backdrop-grayscale": ["", x, d, c]
2437
2437
  }],
2438
2438
  /**
2439
2439
  * Backdrop Hue Rotate
2440
2440
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2441
2441
  */
2442
2442
  "backdrop-hue-rotate": [{
2443
- "backdrop-hue-rotate": [x, u, d]
2443
+ "backdrop-hue-rotate": [x, d, c]
2444
2444
  }],
2445
2445
  /**
2446
2446
  * Backdrop Invert
2447
2447
  * @see https://tailwindcss.com/docs/backdrop-invert
2448
2448
  */
2449
2449
  "backdrop-invert": [{
2450
- "backdrop-invert": ["", x, u, d]
2450
+ "backdrop-invert": ["", x, d, c]
2451
2451
  }],
2452
2452
  /**
2453
2453
  * Backdrop Opacity
2454
2454
  * @see https://tailwindcss.com/docs/backdrop-opacity
2455
2455
  */
2456
2456
  "backdrop-opacity": [{
2457
- "backdrop-opacity": [x, u, d]
2457
+ "backdrop-opacity": [x, d, c]
2458
2458
  }],
2459
2459
  /**
2460
2460
  * Backdrop Saturate
2461
2461
  * @see https://tailwindcss.com/docs/backdrop-saturate
2462
2462
  */
2463
2463
  "backdrop-saturate": [{
2464
- "backdrop-saturate": [x, u, d]
2464
+ "backdrop-saturate": [x, d, c]
2465
2465
  }],
2466
2466
  /**
2467
2467
  * Backdrop Sepia
2468
2468
  * @see https://tailwindcss.com/docs/backdrop-sepia
2469
2469
  */
2470
2470
  "backdrop-sepia": [{
2471
- "backdrop-sepia": ["", x, u, d]
2471
+ "backdrop-sepia": ["", x, d, c]
2472
2472
  }],
2473
2473
  // --------------
2474
2474
  // --- Tables ---
@@ -2523,7 +2523,7 @@ const ur = (e, r) => {
2523
2523
  * @see https://tailwindcss.com/docs/transition-property
2524
2524
  */
2525
2525
  transition: [{
2526
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", u, d]
2526
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", d, c]
2527
2527
  }],
2528
2528
  /**
2529
2529
  * Transition Behavior
@@ -2537,28 +2537,28 @@ const ur = (e, r) => {
2537
2537
  * @see https://tailwindcss.com/docs/transition-duration
2538
2538
  */
2539
2539
  duration: [{
2540
- duration: [x, "initial", u, d]
2540
+ duration: [x, "initial", d, c]
2541
2541
  }],
2542
2542
  /**
2543
2543
  * Transition Timing Function
2544
2544
  * @see https://tailwindcss.com/docs/transition-timing-function
2545
2545
  */
2546
2546
  ease: [{
2547
- ease: ["linear", "initial", N, u, d]
2547
+ ease: ["linear", "initial", T, d, c]
2548
2548
  }],
2549
2549
  /**
2550
2550
  * Transition Delay
2551
2551
  * @see https://tailwindcss.com/docs/transition-delay
2552
2552
  */
2553
2553
  delay: [{
2554
- delay: [x, u, d]
2554
+ delay: [x, d, c]
2555
2555
  }],
2556
2556
  /**
2557
2557
  * Animation
2558
2558
  * @see https://tailwindcss.com/docs/animation
2559
2559
  */
2560
2560
  animate: [{
2561
- animate: ["none", $, u, d]
2561
+ animate: ["none", P, d, c]
2562
2562
  }],
2563
2563
  // ------------------
2564
2564
  // --- Transforms ---
@@ -2575,14 +2575,14 @@ const ur = (e, r) => {
2575
2575
  * @see https://tailwindcss.com/docs/perspective
2576
2576
  */
2577
2577
  perspective: [{
2578
- perspective: [A, u, d]
2578
+ perspective: [A, d, c]
2579
2579
  }],
2580
2580
  /**
2581
2581
  * Perspective Origin
2582
2582
  * @see https://tailwindcss.com/docs/perspective-origin
2583
2583
  */
2584
2584
  "perspective-origin": [{
2585
- "perspective-origin": V()
2585
+ "perspective-origin": M()
2586
2586
  }],
2587
2587
  /**
2588
2588
  * Rotate
@@ -2671,14 +2671,14 @@ const ur = (e, r) => {
2671
2671
  * @see https://tailwindcss.com/docs/transform
2672
2672
  */
2673
2673
  transform: [{
2674
- transform: [u, d, "", "none", "gpu", "cpu"]
2674
+ transform: [d, c, "", "none", "gpu", "cpu"]
2675
2675
  }],
2676
2676
  /**
2677
2677
  * Transform Origin
2678
2678
  * @see https://tailwindcss.com/docs/transform-origin
2679
2679
  */
2680
2680
  "transform-origin": [{
2681
- origin: V()
2681
+ origin: M()
2682
2682
  }],
2683
2683
  /**
2684
2684
  * Transform Style
@@ -2756,7 +2756,7 @@ const ur = (e, r) => {
2756
2756
  * @see https://tailwindcss.com/docs/cursor
2757
2757
  */
2758
2758
  cursor: [{
2759
- 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", u, d]
2759
+ 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", d, c]
2760
2760
  }],
2761
2761
  /**
2762
2762
  * Field Sizing
@@ -2978,7 +2978,7 @@ const ur = (e, r) => {
2978
2978
  * @see https://tailwindcss.com/docs/will-change
2979
2979
  */
2980
2980
  "will-change": [{
2981
- "will-change": ["auto", "scroll", "contents", "transform", u, d]
2981
+ "will-change": ["auto", "scroll", "contents", "transform", d, c]
2982
2982
  }],
2983
2983
  // -----------
2984
2984
  // --- SVG ---
@@ -3070,18 +3070,18 @@ const ur = (e, r) => {
3070
3070
  },
3071
3071
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3072
3072
  };
3073
- }, Qr = /* @__PURE__ */ Or(Zr), S = (...e) => Qr(dr(e)), ft = ({
3073
+ }, Qt = /* @__PURE__ */ Ot(Zt), O = (...e) => Qt(dt(e)), fr = ({
3074
3074
  style: e,
3075
- imageVar: r,
3076
- className: t = "",
3075
+ imageVar: t,
3076
+ className: r = "",
3077
3077
  ...o
3078
3078
  }) => {
3079
- const s = `bg-(image:${r})`;
3079
+ const s = `bg-(image:${t})`;
3080
3080
  return /* @__PURE__ */ l.jsx(
3081
3081
  "div",
3082
3082
  {
3083
3083
  ...o,
3084
- className: S(t, s),
3084
+ className: O(r, s),
3085
3085
  style: {
3086
3086
  ...e,
3087
3087
  backgroundSize: "cover",
@@ -3091,8 +3091,8 @@ const ur = (e, r) => {
3091
3091
  );
3092
3092
  }, ge = ({
3093
3093
  variant: e = "default",
3094
- children: r,
3095
- className: t,
3094
+ children: t,
3095
+ className: r,
3096
3096
  overwriteClassName: o = !1,
3097
3097
  ...s
3098
3098
  }) => {
@@ -3100,23 +3100,23 @@ const ur = (e, r) => {
3100
3100
  diabled: s.disabled ? "bg-(--bg-smooth) text-(--fg-mini-text)" : `bg-(--bg-card) color-${e} cursor-pointer`,
3101
3101
  "hover:disabled": s.disabled ? "" : "hover:transform-[scale(1.1)]",
3102
3102
  "active:disabled": s.disabled ? "" : "active:transform-[scale(0.9)] active:bg-(--fg-component) active:opacity-[0.7]"
3103
- }, i = o ? t : S(
3103
+ }, i = o ? r : O(
3104
3104
  "px-4 py-2 w-fit rounded-lg page duration-200",
3105
3105
  a.diabled,
3106
3106
  a["hover:disabled"],
3107
3107
  a["active:disabled"],
3108
- t
3108
+ r
3109
3109
  );
3110
- return /* @__PURE__ */ l.jsx("button", { className: i, ...s, children: r });
3111
- }, Kr = ({ size: e, ref: r, className: t }) => /* @__PURE__ */ l.jsx(
3110
+ return /* @__PURE__ */ l.jsx("button", { className: i, ...s, children: t });
3111
+ }, Kt = ({ size: e, ref: t, className: r }) => /* @__PURE__ */ l.jsx(
3112
3112
  "svg",
3113
3113
  {
3114
- ref: r,
3114
+ ref: t,
3115
3115
  width: e,
3116
3116
  height: e,
3117
3117
  viewBox: "0 0 24 24",
3118
3118
  fill: "none",
3119
- className: t,
3119
+ className: r,
3120
3120
  xmlns: "http://www.w3.org/2000/svg",
3121
3121
  children: /* @__PURE__ */ l.jsx("g", { transform: "translate(4 6)", children: /* @__PURE__ */ l.jsx(
3122
3122
  "path",
@@ -3131,37 +3131,37 @@ const ur = (e, r) => {
3131
3131
  }
3132
3132
  ), Xe = ({
3133
3133
  size: e,
3134
- ref: r,
3135
- className: t,
3134
+ ref: t,
3135
+ className: r,
3136
3136
  fill: o = "#EDEDED",
3137
3137
  ...s
3138
3138
  }) => /* @__PURE__ */ l.jsx(
3139
3139
  "svg",
3140
3140
  {
3141
- ref: r,
3141
+ ref: t,
3142
3142
  width: e,
3143
3143
  height: e,
3144
3144
  viewBox: "0 0 12 12",
3145
3145
  fill: "none",
3146
- className: t,
3146
+ className: r,
3147
3147
  xmlns: "http://www.w3.org/2000/svg",
3148
3148
  ...s,
3149
3149
  children: /* @__PURE__ */ l.jsx("circle", { cx: "6", cy: "6", r: "6", fill: o })
3150
3150
  }
3151
- ), et = 8, rt = 1, tt = (et + rt) * 2, ot = ({
3151
+ ), er = 8, tr = 1, rr = (er + tr) * 2, or = ({
3152
3152
  inputName: e,
3153
- inputId: r,
3154
- className: t,
3153
+ inputId: t,
3154
+ className: r,
3155
3155
  style: o,
3156
3156
  onClick: s,
3157
3157
  size: a = 24,
3158
3158
  checked: i = !1,
3159
3159
  type: m,
3160
- ...c
3160
+ ...u
3161
3161
  }) => {
3162
- const [f, y] = ye(i), k = le(null), g = le(null), R = `${a + tt}px`;
3162
+ const [f, y] = ye(i), k = le(null), _ = le(null), h = `${a + rr}px`;
3163
3163
  return ke(() => {
3164
- k.current && (g.current && (g.current.checked = f), f ? k.current.style.display = o?.display || "block" : k.current.style.opacity = "0", setTimeout(() => {
3164
+ k.current && (_.current && (_.current.checked = f), f ? k.current.style.display = o?.display || "block" : k.current.style.opacity = "0", setTimeout(() => {
3165
3165
  k.current && (f ? k.current.style.opacity = "1" : k.current.style.display = "none");
3166
3166
  }, 100));
3167
3167
  }, [f, o?.display]), /* @__PURE__ */ l.jsxs(
@@ -3171,25 +3171,25 @@ const ur = (e, r) => {
3171
3171
  "bg-(--bg-card) border-(--fg-mini-text) border-1 p-[8px] cursor-pointer duration-300",
3172
3172
  m === "checkbox" ? "rounded-[20%]" : "rounded-[100%]",
3173
3173
  "hover:bg-(--fg-card)",
3174
- t
3174
+ r
3175
3175
  ].join(" "),
3176
3176
  style: {
3177
- height: R,
3178
- width: R,
3177
+ height: h,
3178
+ width: h,
3179
3179
  ...o
3180
3180
  },
3181
- onClick: (_) => {
3182
- s?.(_), y(!f);
3181
+ onClick: (R) => {
3182
+ s?.(R), y(!f);
3183
3183
  },
3184
- ...c,
3184
+ ...u,
3185
3185
  children: [
3186
- m === "checkbox" ? /* @__PURE__ */ l.jsx(Kr, { className: "duration-300", ref: k, size: a }) : /* @__PURE__ */ l.jsx(Xe, { className: "duration-300", ref: k, size: a }),
3186
+ m === "checkbox" ? /* @__PURE__ */ l.jsx(Kt, { className: "duration-300", ref: k, size: a }) : /* @__PURE__ */ l.jsx(Xe, { className: "duration-300", ref: k, size: a }),
3187
3187
  /* @__PURE__ */ l.jsx(
3188
3188
  "input",
3189
3189
  {
3190
- ref: g,
3190
+ ref: _,
3191
3191
  name: e,
3192
- id: r,
3192
+ id: t,
3193
3193
  type: "checkbox",
3194
3194
  style: { display: "none" }
3195
3195
  }
@@ -3197,80 +3197,82 @@ const ur = (e, r) => {
3197
3197
  ]
3198
3198
  }
3199
3199
  );
3200
- }, pt = (e) => /* @__PURE__ */ l.jsx(ot, { type: "checkbox", ...e }), Ze = er(null), Ee = () => {
3201
- const e = rr(Ze);
3200
+ }, pr = (e) => /* @__PURE__ */ l.jsx(or, { type: "checkbox", ...e }), Ze = et(null), Ee = () => {
3201
+ const e = tt(Ze);
3202
3202
  if (!e)
3203
3203
  throw new Error("useDropdown must be used within DropdownProvider");
3204
3204
  return e;
3205
- }, nt = (e, r) => {
3205
+ }, nr = (e, t) => {
3206
3206
  ke(() => {
3207
- const t = (o) => {
3208
- e.current && (e.current.contains(o.target) || r(o));
3207
+ const r = (o) => {
3208
+ e.current && (e.current.contains(o.target) || t(o));
3209
3209
  };
3210
- return document.addEventListener("mousedown", t), document.addEventListener("touchstart", t), () => {
3211
- document.removeEventListener("mousedown", t), document.removeEventListener("touchstart", t);
3210
+ return document.addEventListener("mousedown", r), document.addEventListener("touchstart", r), () => {
3211
+ document.removeEventListener("mousedown", r), document.removeEventListener("touchstart", r);
3212
3212
  };
3213
- }, [e, r]);
3214
- }, bt = ({
3213
+ }, [e, t]);
3214
+ }, br = ({
3215
3215
  children: e,
3216
- onChangeState: r,
3217
- closeOnClickOutside: t = !0,
3216
+ onChangeState: t,
3217
+ closeOnClickOutside: r = !0,
3218
3218
  openToOtherSide: o = !0,
3219
3219
  defaultHorizontalPosition: s = "right",
3220
3220
  defaultVertialPosition: a = "bottom",
3221
- className: i,
3222
- ...m
3221
+ menuAlign: i = "center",
3222
+ className: m,
3223
+ ...u
3223
3224
  }) => {
3224
- const [c, f] = ye(!1), y = le(null), k = le(null), g = le(null), R = Pe(
3225
- (_) => {
3226
- if (_) {
3227
- f(_), r?.(_);
3225
+ const [f, y] = ye(!1), k = le(null), _ = le(null), h = le(null), R = Pe(
3226
+ (A) => {
3227
+ if (A) {
3228
+ y(A), t?.(A);
3228
3229
  return;
3229
3230
  }
3230
- f((A) => {
3231
- const E = !A;
3232
- return r?.(E), E;
3231
+ y((E) => {
3232
+ const T = !E;
3233
+ return t?.(T), T;
3233
3234
  });
3234
3235
  },
3235
- [f, r]
3236
+ [y, t]
3236
3237
  );
3237
- return nt(k, () => {
3238
- t && c && R(!1);
3238
+ return nr(_, () => {
3239
+ r && f && R(!1);
3239
3240
  }), ke(() => {
3240
- const _ = (A) => {
3241
- c && A.key === "Escape" && R(!1);
3241
+ const A = (E) => {
3242
+ f && E.key === "Escape" && R(!1);
3242
3243
  };
3243
- return document.addEventListener("keydown", _), () => {
3244
- document.removeEventListener("keydown", _);
3244
+ return document.addEventListener("keydown", A), () => {
3245
+ document.removeEventListener("keydown", A);
3245
3246
  };
3246
- }, [c, R]), /* @__PURE__ */ l.jsx(
3247
+ }, [f, R]), /* @__PURE__ */ l.jsx(
3247
3248
  Ze.Provider,
3248
3249
  {
3249
3250
  value: {
3250
- opened: c,
3251
+ opened: f,
3251
3252
  toggle: R,
3252
- dropdownRef: y,
3253
- menuRef: k,
3254
- triggerRef: g,
3253
+ dropdownRef: k,
3254
+ menuRef: _,
3255
+ triggerRef: h,
3255
3256
  openToOtherSide: o,
3256
3257
  defaultHorizontalPosition: s,
3257
- defaultVertialPosition: a
3258
+ defaultVertialPosition: a,
3259
+ menuAlign: i
3258
3260
  },
3259
3261
  children: /* @__PURE__ */ l.jsx(
3260
3262
  "div",
3261
3263
  {
3262
- ref: y,
3263
- className: S("relative inline-block", i),
3264
- ...m,
3264
+ ref: k,
3265
+ className: O("relative inline-block", m),
3266
+ ...u,
3265
3267
  children: e
3266
3268
  }
3267
3269
  )
3268
3270
  }
3269
3271
  );
3270
- }, gt = ({
3272
+ }, gr = ({
3271
3273
  children: e,
3272
- className: r,
3273
- style: t,
3274
+ className: t,
3275
+ style: r,
3274
3276
  ...o
3275
3277
  }) => {
3276
3278
  const {
@@ -3278,57 +3280,51 @@ const ur = (e, r) => {
3278
3280
  menuRef: a,
3279
3281
  triggerRef: i,
3280
3282
  defaultHorizontalPosition: m,
3281
- defaultVertialPosition: c,
3282
- openToOtherSide: f
3283
- } = Ee(), y = Pe(
3284
- (g) => {
3285
- const R = g === "x" ? "innerWidth" : "innerHeight", _ = g === "x" ? "width" : "height", A = g === "x" ? "right" : "bottom";
3286
- return (E, N) => {
3287
- if (!a.current || E[A] < window[R])
3283
+ defaultVertialPosition: u,
3284
+ openToOtherSide: f,
3285
+ menuAlign: y
3286
+ } = Ee(), k = Pe(
3287
+ (h) => {
3288
+ const R = h === "x" ? "innerWidth" : "innerHeight", A = h === "x" ? "width" : "height", E = h === "x" ? "right" : "bottom";
3289
+ return (T, P) => {
3290
+ if (!a.current || T[E] < window[R])
3288
3291
  return;
3289
- const $ = E[A] - window[R];
3292
+ const I = T[E] - window[R];
3290
3293
  if (f) {
3291
- const z = g === "y" ? N : 0;
3292
- a.current.style[g] = `${E[g] - $ - z}px`;
3294
+ const M = h === "y" ? P : 0;
3295
+ a.current.style[h] = `${T[h] - I - M}px`;
3293
3296
  return;
3294
3297
  }
3295
- const P = E[g] - E[_];
3296
- if (P >= 0) {
3297
- a.current.style[g] = `${P}px`;
3298
+ const z = T[h] - T[A];
3299
+ if (z >= 0) {
3300
+ a.current.style[h] = `${z}px`;
3298
3301
  return;
3299
3302
  }
3300
- a.current.style[g] = `${E[g] - $}px`;
3303
+ a.current.style[h] = `${T[h] - I}px`;
3301
3304
  };
3302
3305
  },
3303
3306
  [a, f]
3304
3307
  );
3305
- if (tr(() => {
3308
+ if (rt(() => {
3306
3309
  if (!a.current || !i.current || !s)
3307
3310
  return;
3308
- const g = i.current.getBoundingClientRect(), R = a.current.getBoundingClientRect(), _ = g.left + g.width / 2 + window.scrollX, A = g.top + g.height + window.scrollY;
3309
- m === "right" ? a.current.style.left = `${_}px` : a.current.style.left = `${_ - R.width}px`, c === "bottom" ? a.current.style.top = `${A}px` : a.current.style.top = `${A - R.height - g.height}px`;
3310
- const E = a.current.getBoundingClientRect();
3311
- y("x")(E, g.height), y("y")(E, g.height);
3312
- }, [
3313
- s,
3314
- y,
3315
- a,
3316
- i,
3317
- m,
3318
- c
3319
- ]), !s)
3311
+ const h = i.current.getBoundingClientRect(), R = a.current.getBoundingClientRect(), A = y === "center" ? h.width / 2 : y === "right" ? h.width : 0, E = h.left + window.scrollX + A, T = h.top + h.height + window.scrollY;
3312
+ m === "right" ? a.current.style.left = `${E}px` : a.current.style.left = `${E - R.width}px`, u === "bottom" ? a.current.style.top = `${T}px` : a.current.style.top = `${T - R.height - h.height}px`;
3313
+ const P = a.current.getBoundingClientRect();
3314
+ k("x")(P, h.height), k("y")(P, h.height);
3315
+ }, [s, k, a, i, m, u, y]), !s)
3320
3316
  return null;
3321
- const k = /* @__PURE__ */ l.jsx(
3317
+ const _ = /* @__PURE__ */ l.jsx(
3322
3318
  "div",
3323
3319
  {
3324
3320
  ref: a,
3325
- className: S(
3321
+ className: O(
3326
3322
  "bg-(--bg-smooth-light) absolute z-100 rounded-lg shadow-lg",
3327
3323
  "flex flex-col min-w-40",
3328
- r
3324
+ t
3329
3325
  ),
3330
3326
  style: {
3331
- ...t
3327
+ ...r
3332
3328
  },
3333
3329
  role: "menu",
3334
3330
  "aria-orientation": "vertical",
@@ -3336,26 +3332,26 @@ const ur = (e, r) => {
3336
3332
  children: e
3337
3333
  }
3338
3334
  );
3339
- return ze(k, document.body);
3340
- }, ht = ({
3335
+ return ze(_, document.body);
3336
+ }, hr = ({
3341
3337
  children: e,
3342
- onClick: r,
3343
- className: t,
3338
+ onClick: t,
3339
+ className: r,
3344
3340
  variant: o,
3345
3341
  ...s
3346
3342
  }) => {
3347
3343
  const { toggle: a } = Ee(), i = (m) => {
3348
- s.disabled || (r?.(m), a(!1));
3344
+ s.disabled || (t?.(m), a(!1));
3349
3345
  };
3350
3346
  return /* @__PURE__ */ l.jsx(
3351
3347
  ge,
3352
3348
  {
3353
3349
  onClick: i,
3354
- className: S(
3350
+ className: O(
3355
3351
  "px-4 py-2 w-full text-left rounded-lg page duration-300",
3356
3352
  s.disabled ? "text-(--fg-mini-text)" : `color-${o} cursor-pointer`,
3357
3353
  "hover:bg-(--fg-mini-text-30)",
3358
- t
3354
+ r
3359
3355
  ),
3360
3356
  overwriteClassName: !0,
3361
3357
  role: "menuitem",
@@ -3363,10 +3359,10 @@ const ur = (e, r) => {
3363
3359
  children: e
3364
3360
  }
3365
3361
  );
3366
- }, xt = ({
3362
+ }, xr = ({
3367
3363
  children: e,
3368
- className: r,
3369
- ...t
3364
+ className: t,
3365
+ ...r
3370
3366
  }) => {
3371
3367
  const { toggle: o, opened: s, triggerRef: a } = Ee(), i = () => {
3372
3368
  o();
@@ -3378,42 +3374,42 @@ const ur = (e, r) => {
3378
3374
  onClick: i,
3379
3375
  "aria-expanded": s,
3380
3376
  "aria-haspopup": "true",
3381
- className: r,
3382
- ...t,
3377
+ className: t,
3378
+ ...r,
3383
3379
  children: e
3384
3380
  }
3385
3381
  );
3386
- }, wt = ({
3382
+ }, wr = ({
3387
3383
  className: e,
3388
- overwriteClassName: r,
3389
- ...t
3384
+ overwriteClassName: t,
3385
+ ...r
3390
3386
  }) => {
3391
- const o = r ? e : S(
3387
+ const o = t ? e : O(
3392
3388
  "bg-(--bg-card) px-4 py-2 rounded-lg min-w-30 max-w-60",
3393
3389
  "focus:outline-0",
3394
3390
  e
3395
3391
  );
3396
- return /* @__PURE__ */ l.jsx("input", { placeholder: "input here...", ...t, className: o });
3397
- }, vt = ({
3392
+ return /* @__PURE__ */ l.jsx("input", { placeholder: "input here...", ...r, className: o });
3393
+ }, vr = ({
3398
3394
  className: e,
3399
- overwriteClassName: r = !1,
3400
- minimalRowsHeight: t = 1,
3395
+ overwriteClassName: t = !1,
3396
+ minimalRowsHeight: r = 1,
3401
3397
  maximalRowsHeight: o = 10,
3402
3398
  onChange: s,
3403
3399
  ...a
3404
3400
  }) => {
3405
- const i = r ? e : S(
3401
+ const i = t ? e : O(
3406
3402
  "bg-(--bg-card) px-4 py-2 rounded-lg min-w-30 max-w-150 min-h-10 resize",
3407
3403
  "focus:outline-0",
3408
3404
  e
3409
- ), m = (c) => {
3410
- const f = c.currentTarget;
3405
+ ), m = (u) => {
3406
+ const f = u.currentTarget;
3411
3407
  f.style.height = "auto";
3412
3408
  const y = parseInt(getComputedStyle(f).lineHeight), k = Math.min(
3413
- Math.max(f.scrollHeight, t * y),
3409
+ Math.max(f.scrollHeight, r * y),
3414
3410
  o * y
3415
3411
  );
3416
- f.style.height = `${k}px`, s?.(c);
3412
+ f.style.height = `${k}px`, s?.(u);
3417
3413
  };
3418
3414
  return /* @__PURE__ */ l.jsx(
3419
3415
  "textarea",
@@ -3424,10 +3420,10 @@ const ur = (e, r) => {
3424
3420
  ...a
3425
3421
  }
3426
3422
  );
3427
- }, yt = ({
3423
+ }, yr = ({
3428
3424
  container: e,
3429
- children: r,
3430
- portalKey: t,
3425
+ children: t,
3426
+ portalKey: r,
3431
3427
  className: o = "",
3432
3428
  zIndex: s,
3433
3429
  style: a,
@@ -3438,22 +3434,22 @@ const ur = (e, r) => {
3438
3434
  /* @__PURE__ */ l.jsx(
3439
3435
  "div",
3440
3436
  {
3441
- className: S("fixed top-0 h-screen w-screen", m, o),
3437
+ className: O("fixed top-0 h-screen w-screen", m, o),
3442
3438
  ...i,
3443
3439
  style: {
3444
3440
  zIndex: s,
3445
3441
  ...a
3446
3442
  },
3447
- children: r
3443
+ children: t
3448
3444
  }
3449
3445
  ),
3450
3446
  e,
3451
- t
3447
+ r
3452
3448
  );
3453
- }, kt = ({ size: e = 48, className: r = "" }) => /* @__PURE__ */ l.jsxs(
3449
+ }, kr = ({ size: e = 48, className: t = "" }) => /* @__PURE__ */ l.jsxs(
3454
3450
  "svg",
3455
3451
  {
3456
- className: S("animate-spin text-(--bg-smooth-light)", r),
3452
+ className: O("animate-spin text-(--bg-smooth-light)", t),
3457
3453
  style: {
3458
3454
  height: e + "px",
3459
3455
  width: e + "px"
@@ -3472,24 +3468,24 @@ const ur = (e, r) => {
3472
3468
  )
3473
3469
  ]
3474
3470
  }
3475
- ), Q = 8, jt = ({
3471
+ ), Q = 8, jr = ({
3476
3472
  value: e,
3477
- height: r = 24,
3478
- showPercentage: t = !1,
3473
+ height: t = 24,
3474
+ showPercentage: r = !1,
3479
3475
  className: o
3480
3476
  }) => {
3481
3477
  const s = Math.round(e);
3482
- return /* @__PURE__ */ l.jsx("div", { className: S("w-full", o), children: /* @__PURE__ */ l.jsxs("div", { className: "relative w-full", style: { height: r }, children: [
3478
+ return /* @__PURE__ */ l.jsx("div", { className: O("w-full", o), children: /* @__PURE__ */ l.jsxs("div", { className: "relative w-full", style: { height: t }, children: [
3483
3479
  /* @__PURE__ */ l.jsx(
3484
3480
  "svg",
3485
3481
  {
3486
3482
  width: "100%",
3487
- height: r,
3483
+ height: t,
3488
3484
  style: { borderRadius: Q },
3489
- viewBox: `0 0 100 ${r}`,
3485
+ viewBox: `0 0 100 ${t}`,
3490
3486
  preserveAspectRatio: "none",
3491
3487
  className: "absolute top-0 left-0",
3492
- children: /* @__PURE__ */ l.jsx("rect", { width: "100", height: r, fill: "var(--bg-smooth-ce)" })
3488
+ children: /* @__PURE__ */ l.jsx("rect", { width: "100", height: t, fill: "var(--bg-smooth-ce)" })
3493
3489
  }
3494
3490
  ),
3495
3491
  /* @__PURE__ */ l.jsx(
@@ -3504,14 +3500,14 @@ const ur = (e, r) => {
3504
3500
  "svg",
3505
3501
  {
3506
3502
  width: "100%",
3507
- height: r,
3508
- viewBox: `0 0 100 ${r}`,
3503
+ height: t,
3504
+ viewBox: `0 0 100 ${t}`,
3509
3505
  preserveAspectRatio: "none",
3510
3506
  children: /* @__PURE__ */ l.jsx(
3511
3507
  "rect",
3512
3508
  {
3513
3509
  width: "100",
3514
- height: r,
3510
+ height: t,
3515
3511
  fill: "var(--fg-text)",
3516
3512
  style: { borderRadius: Q }
3517
3513
  }
@@ -3520,25 +3516,25 @@ const ur = (e, r) => {
3520
3516
  )
3521
3517
  }
3522
3518
  ),
3523
- t && /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ l.jsxs("span", { className: "bg-(--fg-card) py-1 px-3 rounded text-(--fg-text)", children: [
3519
+ r && /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ l.jsxs("span", { className: "bg-(--fg-card) py-1 px-3 rounded text-(--fg-text)", children: [
3524
3520
  s,
3525
3521
  "%"
3526
3522
  ] }) })
3527
3523
  ] }) });
3528
- }, Et = ({
3524
+ }, Er = ({
3529
3525
  className: e,
3530
- height: r
3531
- }) => /* @__PURE__ */ l.jsx("div", { className: S("w-full", e), children: /* @__PURE__ */ l.jsxs("div", { className: "relative w-full", style: { height: r }, children: [
3526
+ height: t
3527
+ }) => /* @__PURE__ */ l.jsx("div", { className: O("w-full", e), children: /* @__PURE__ */ l.jsxs("div", { className: "relative w-full", style: { height: t }, children: [
3532
3528
  /* @__PURE__ */ l.jsx(
3533
3529
  "svg",
3534
3530
  {
3535
3531
  width: "100%",
3536
- height: r,
3532
+ height: t,
3537
3533
  style: { borderRadius: Q },
3538
- viewBox: `0 0 100 ${r}`,
3534
+ viewBox: `0 0 100 ${t}`,
3539
3535
  preserveAspectRatio: "none",
3540
3536
  className: "absolute top-0 left-0",
3541
- children: /* @__PURE__ */ l.jsx("rect", { width: "100", height: r, fill: "var(--bg-smooth-ce)" })
3537
+ children: /* @__PURE__ */ l.jsx("rect", { width: "100", height: t, fill: "var(--bg-smooth-ce)" })
3542
3538
  }
3543
3539
  ),
3544
3540
  /* @__PURE__ */ l.jsx(
@@ -3553,14 +3549,14 @@ const ur = (e, r) => {
3553
3549
  "svg",
3554
3550
  {
3555
3551
  width: "100%",
3556
- height: r,
3557
- viewBox: `0 0 100 ${r}`,
3552
+ height: t,
3553
+ viewBox: `0 0 100 ${t}`,
3558
3554
  preserveAspectRatio: "none",
3559
3555
  children: /* @__PURE__ */ l.jsx(
3560
3556
  "rect",
3561
3557
  {
3562
3558
  width: "100",
3563
- height: r,
3559
+ height: t,
3564
3560
  fill: "var(--fg-text)",
3565
3561
  style: { borderRadius: Q }
3566
3562
  }
@@ -3569,53 +3565,53 @@ const ur = (e, r) => {
3569
3565
  )
3570
3566
  }
3571
3567
  )
3572
- ] }) }), Rt = ({
3568
+ ] }) }), Rr = ({
3573
3569
  type: e = "pulse",
3574
- size: r = 6,
3575
- elements: t = 3,
3570
+ size: t = 6,
3571
+ elements: r = 3,
3576
3572
  duration: o = 1,
3577
3573
  color: s = "var(--bg-smooth)",
3578
3574
  animation: a,
3579
3575
  delay: i = 0.1,
3580
3576
  container: m,
3581
- autoPaddingDisabled: c = !1
3577
+ autoPaddingDisabled: u = !1
3582
3578
  }) => {
3583
- const f = e === "orbit" ? "absolute" : "", y = c ? {} : { padding: r * 2 }, k = a ? `var(${a})` : `var(--animate-ellipse-${e})`;
3584
- if (t <= 0)
3579
+ const f = e === "orbit" ? "absolute" : "", y = u ? {} : { padding: t * 2 }, k = a ? `var(${a})` : `var(--animate-ellipse-${e})`;
3580
+ if (r <= 0)
3585
3581
  throw new Error("Elements can not be zero");
3586
- if (t > 12)
3582
+ if (r > 12)
3587
3583
  throw new Error("Element can not be more than 12");
3588
- const g = new Array(t).fill(t).map((R, _) => /* @__PURE__ */ l.jsx(
3584
+ const _ = new Array(r).fill(r).map((h, R) => /* @__PURE__ */ l.jsx(
3589
3585
  Xe,
3590
3586
  {
3591
- size: r,
3587
+ size: t,
3592
3588
  fill: s,
3593
3589
  style: {
3594
3590
  animation: k,
3595
3591
  animationDuration: o + "s",
3596
- animationDelay: `${i * _}s`
3592
+ animationDelay: `${i * R}s`
3597
3593
  },
3598
3594
  className: f
3599
3595
  },
3600
- R + _
3596
+ h + R
3601
3597
  ));
3602
- return m ? /* @__PURE__ */ l.jsx(m, { children: g }) : /* @__PURE__ */ l.jsx("div", { className: "flex flex-row gap-2 w-fit h-fit", style: y, children: g });
3603
- }, st = 12, at = 8, _t = ({
3598
+ return m ? /* @__PURE__ */ l.jsx(m, { children: _ }) : /* @__PURE__ */ l.jsx("div", { className: "flex flex-row gap-2 w-fit h-fit", style: y, children: _ });
3599
+ }, sr = 12, ar = 8, _r = ({
3604
3600
  inputId: e,
3605
- inputName: r,
3606
- dangerousDisableError: t = !1,
3601
+ inputName: t,
3602
+ dangerousDisableError: r = !1,
3607
3603
  style: o,
3608
3604
  className: s,
3609
3605
  onClick: a,
3610
3606
  radioSize: i = 24,
3611
3607
  checked: m = !1,
3612
- ...c
3608
+ ...u
3613
3609
  }) => {
3614
3610
  const [f, y] = ye(m);
3615
- i < st && !t && console.error(
3611
+ i < sr && !r && console.error(
3616
3612
  "radio size less than minimal, set radioSize = 12 or more too resolve"
3617
3613
  );
3618
- const k = i * 4, g = k - at * 2 - i, R = f ? "bg-(--bg-card)" : "bg-(--bg-section)", _ = f ? "bg-(--fg-default)" : "bg-(--fg-mini-text)", A = f ? g : 0;
3614
+ const k = i * 4, _ = k - ar * 2 - i, h = f ? "bg-(--bg-card)" : "bg-(--bg-section)", R = f ? "bg-(--fg-default)" : "bg-(--fg-mini-text)", A = f ? _ : 0;
3619
3615
  return /* @__PURE__ */ l.jsxs(
3620
3616
  "div",
3621
3617
  {
@@ -3623,23 +3619,23 @@ const ur = (e, r) => {
3623
3619
  width: `${k}px`,
3624
3620
  ...o
3625
3621
  },
3626
- className: S(
3622
+ className: O(
3627
3623
  "rounded-[200px] py-[6px] px-[8px] cursor-pointer duration-300",
3628
- R,
3624
+ h,
3629
3625
  "hover:bg-(--fg-card)",
3630
3626
  s
3631
3627
  ),
3632
3628
  onClick: (E) => {
3633
3629
  y(!f), a?.(E);
3634
3630
  },
3635
- ...c,
3631
+ ...u,
3636
3632
  children: [
3637
3633
  /* @__PURE__ */ l.jsx(
3638
3634
  "div",
3639
3635
  {
3640
3636
  className: [
3641
3637
  "relative duration-300 rounded-[100%]",
3642
- _
3638
+ R
3643
3639
  ].join(" "),
3644
3640
  style: {
3645
3641
  height: `${i}px`,
@@ -3651,7 +3647,7 @@ const ur = (e, r) => {
3651
3647
  /* @__PURE__ */ l.jsx(
3652
3648
  "input",
3653
3649
  {
3654
- name: r,
3650
+ name: t,
3655
3651
  id: e,
3656
3652
  type: "checkbox",
3657
3653
  style: { display: "none" }
@@ -3660,104 +3656,104 @@ const ur = (e, r) => {
3660
3656
  ]
3661
3657
  }
3662
3658
  );
3663
- }, At = ({
3659
+ }, Ar = ({
3664
3660
  flexDirection: e = "row",
3665
- className: r,
3666
- ...t
3661
+ className: t,
3662
+ ...r
3667
3663
  }) => {
3668
3664
  const o = e === "col" ? "flex-col" : "flex-row";
3669
3665
  return /* @__PURE__ */ l.jsx(
3670
3666
  "div",
3671
3667
  {
3672
- ...t,
3673
- className: S(
3668
+ ...r,
3669
+ className: O(
3674
3670
  "bg-(image:--image-bg) flex gap-8 px-12 py-4 rounded-lg page",
3675
3671
  o,
3676
- r
3672
+ t
3677
3673
  )
3678
3674
  }
3679
3675
  );
3680
- }, it = () => /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col justify-center gap-4", children: [
3676
+ }, ir = () => /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col justify-center gap-4", children: [
3681
3677
  Object.keys(Me).map((e) => /* @__PURE__ */ l.jsxs(ge, { variant: e, children: [
3682
3678
  "Button ",
3683
3679
  e
3684
3680
  ] }, e)),
3685
3681
  /* @__PURE__ */ l.jsx(ge, { disabled: !0, children: "Button Disabled" })
3686
- ] }), lt = () => /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-2 rounded-lg", children: [
3682
+ ] }), lr = () => /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-2 rounded-lg", children: [
3687
3683
  /* @__PURE__ */ l.jsxs("div", { children: [
3688
3684
  /* @__PURE__ */ l.jsxs("h1", { children: [
3689
3685
  "H1 text, ",
3690
- B.h1
3686
+ V.h1
3691
3687
  ] }),
3692
3688
  /* @__PURE__ */ l.jsx("span", { children: "Пока не знаю" })
3693
3689
  ] }),
3694
3690
  /* @__PURE__ */ l.jsxs("div", { children: [
3695
3691
  /* @__PURE__ */ l.jsxs("h2", { children: [
3696
3692
  "H2 text, ",
3697
- B.h2
3693
+ V.h2
3698
3694
  ] }),
3699
3695
  /* @__PURE__ */ l.jsx("span", { children: "Пока не знаю" })
3700
3696
  ] }),
3701
3697
  /* @__PURE__ */ l.jsxs("div", { children: [
3702
3698
  /* @__PURE__ */ l.jsxs("h3", { children: [
3703
3699
  "H3 text, ",
3704
- B.h3
3700
+ V.h3
3705
3701
  ] }),
3706
3702
  /* @__PURE__ */ l.jsx("span", { children: "Пока не знаю" })
3707
3703
  ] }),
3708
3704
  /* @__PURE__ */ l.jsxs("div", { children: [
3709
3705
  /* @__PURE__ */ l.jsxs("h4", { children: [
3710
3706
  "H4 text, ",
3711
- B.h4
3707
+ V.h4
3712
3708
  ] }),
3713
3709
  /* @__PURE__ */ l.jsx("span", { children: "Пока не знаю" })
3714
3710
  ] }),
3715
3711
  /* @__PURE__ */ l.jsxs("div", { children: [
3716
3712
  /* @__PURE__ */ l.jsxs("h5", { children: [
3717
3713
  "H5 text, ",
3718
- B.h5
3714
+ V.h5
3719
3715
  ] }),
3720
3716
  /* @__PURE__ */ l.jsx("span", { children: "Пока не знаю" })
3721
3717
  ] }),
3722
3718
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col", children: [
3723
3719
  /* @__PURE__ */ l.jsxs("span", { children: [
3724
3720
  "Base text, ",
3725
- B.base
3721
+ V.base
3726
3722
  ] }),
3727
3723
  /* @__PURE__ */ l.jsx("span", { children: "Пока не знаю" })
3728
3724
  ] }),
3729
3725
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col", children: [
3730
3726
  /* @__PURE__ */ l.jsxs("span", { className: "text-mini", children: [
3731
3727
  "Mini text, ",
3732
- B.mini
3728
+ V.mini
3733
3729
  ] }),
3734
3730
  /* @__PURE__ */ l.jsx("span", { children: "Пока не знаю" })
3735
3731
  ] })
3736
- ] }), Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3732
+ ] }), Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3737
3733
  __proto__: null,
3738
- Button: it,
3739
- Text: lt
3734
+ Button: ir,
3735
+ Text: lr
3740
3736
  }, Symbol.toStringTag, { value: "Module" }));
3741
3737
  export {
3742
- mt as Active,
3743
- ft as Background,
3738
+ mr as Active,
3739
+ fr as Background,
3744
3740
  ge as Button,
3745
- pt as Checkbox,
3746
- kt as CircleProgress,
3747
- bt as Dropdown,
3748
- ht as DropdownItem,
3749
- gt as DropdownMenu,
3750
- xt as DropdownTrigger,
3751
- Rt as EllipsisProgress,
3752
- Tt as Guildline,
3753
- Et as IndeterminateLinearProgress,
3754
- wt as Input,
3755
- jt as LinearProgress,
3756
- yt as Modal,
3757
- _t as Switch,
3758
- vt as Textarea,
3759
- ut as VARIABLES,
3760
- At as Wrapper,
3741
+ pr as Checkbox,
3742
+ kr as CircleProgress,
3743
+ br as Dropdown,
3744
+ hr as DropdownItem,
3745
+ gr as DropdownMenu,
3746
+ xr as DropdownTrigger,
3747
+ Rr as EllipsisProgress,
3748
+ Tr as Guildline,
3749
+ Er as IndeterminateLinearProgress,
3750
+ wr as Input,
3751
+ jr as LinearProgress,
3752
+ yr as Modal,
3753
+ _r as Switch,
3754
+ vr as Textarea,
3755
+ ur as VARIABLES,
3756
+ Ar as Wrapper,
3761
3757
  Q as borderRadius
3762
3758
  };
3763
3759
  //# sourceMappingURL=tvuikit.es.js.map