@turystack/ui 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,214 +1,214 @@
1
1
  import { jsx as Z, jsxs as Qe, Fragment as Ze } from "react/jsx-runtime";
2
- import { Slot as er } from "@radix-ui/react-slot";
3
- import { Loader2 as rr } from "lucide-react";
4
- import { createContext as tr, useContext as or } from "react";
5
- var sr = /\s+/g, nr = (e) => typeof e != "string" || !e ? e : e.replace(sr, " ").trim(), fe = (...e) => {
6
- const o = [], t = (r) => {
7
- if (!r && r !== 0 && r !== 0n) return;
8
- if (Array.isArray(r)) {
9
- for (let s = 0, a = r.length; s < a; s++) t(r[s]);
2
+ import { Slot as et } from "@radix-ui/react-slot";
3
+ import { Loader2 as tt } from "lucide-react";
4
+ import { createContext as rt, useContext as ot } from "react";
5
+ var st = /\s+/g, nt = (e) => typeof e != "string" || !e ? e : e.replace(st, " ").trim(), fe = (...e) => {
6
+ const o = [], r = (t) => {
7
+ if (!t && t !== 0 && t !== 0n) return;
8
+ if (Array.isArray(t)) {
9
+ for (let s = 0, a = t.length; s < a; s++) r(t[s]);
10
10
  return;
11
11
  }
12
- const n = typeof r;
12
+ const n = typeof t;
13
13
  if (n === "string" || n === "number" || n === "bigint") {
14
- if (n === "number" && r !== r) return;
15
- o.push(String(r));
14
+ if (n === "number" && t !== t) return;
15
+ o.push(String(t));
16
16
  } else if (n === "object") {
17
- const s = Object.keys(r);
17
+ const s = Object.keys(t);
18
18
  for (let a = 0, m = s.length; a < m; a++) {
19
19
  const d = s[a];
20
- r[d] && o.push(d);
20
+ t[d] && o.push(d);
21
21
  }
22
22
  }
23
23
  };
24
- for (let r = 0, n = e.length; r < n; r++) {
25
- const s = e[r];
26
- s != null && t(s);
24
+ for (let t = 0, n = e.length; t < n; t++) {
25
+ const s = e[t];
26
+ s != null && r(s);
27
27
  }
28
- return o.length > 0 ? nr(o.join(" ")) : void 0;
29
- }, Se = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, j = (e) => {
28
+ return o.length > 0 ? nt(o.join(" ")) : void 0;
29
+ }, Se = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, L = (e) => {
30
30
  if (!e || typeof e != "object") return !0;
31
31
  for (const o in e) return !1;
32
32
  return !0;
33
- }, ar = (e, o) => {
33
+ }, at = (e, o) => {
34
34
  if (e === o) return !0;
35
35
  if (!e || !o) return !1;
36
- const t = Object.keys(e), r = Object.keys(o);
37
- if (t.length !== r.length) return !1;
38
- for (let n = 0; n < t.length; n++) {
39
- const s = t[n];
40
- if (!r.includes(s) || e[s] !== o[s]) return !1;
36
+ const r = Object.keys(e), t = Object.keys(o);
37
+ if (r.length !== t.length) return !1;
38
+ for (let n = 0; n < r.length; n++) {
39
+ const s = r[n];
40
+ if (!t.includes(s) || e[s] !== o[s]) return !1;
41
41
  }
42
42
  return !0;
43
- }, ir = (e, o) => {
44
- for (const t in o)
45
- if (Object.prototype.hasOwnProperty.call(o, t)) {
46
- const r = o[t];
47
- t in e ? e[t] = fe(e[t], r) : e[t] = r;
43
+ }, it = (e, o) => {
44
+ for (const r in o)
45
+ if (Object.prototype.hasOwnProperty.call(o, r)) {
46
+ const t = o[r];
47
+ r in e ? e[r] = fe(e[r], t) : e[r] = t;
48
48
  }
49
49
  return e;
50
50
  }, Ne = (e, o) => {
51
- for (let t = 0; t < e.length; t++) {
52
- const r = e[t];
53
- Array.isArray(r) ? Ne(r, o) : r && o.push(r);
51
+ for (let r = 0; r < e.length; r++) {
52
+ const t = e[r];
53
+ Array.isArray(t) ? Ne(t, o) : t && o.push(t);
54
54
  }
55
55
  }, Re = (...e) => {
56
56
  const o = [];
57
57
  Ne(e, o);
58
- const t = [];
59
- for (let r = 0; r < o.length; r++)
60
- o[r] && t.push(o[r]);
61
- return t;
58
+ const r = [];
59
+ for (let t = 0; t < o.length; t++)
60
+ o[t] && r.push(o[t]);
61
+ return r;
62
62
  }, he = (e, o) => {
63
- const t = {};
64
- for (const r in e) {
65
- const n = e[r];
66
- if (r in o) {
67
- const s = o[r];
68
- Array.isArray(n) || Array.isArray(s) ? t[r] = Re(s, n) : typeof n == "object" && typeof s == "object" && n && s ? t[r] = he(n, s) : t[r] = s + " " + n;
63
+ const r = {};
64
+ for (const t in e) {
65
+ const n = e[t];
66
+ if (t in o) {
67
+ const s = o[t];
68
+ Array.isArray(n) || Array.isArray(s) ? r[t] = Re(s, n) : typeof n == "object" && typeof s == "object" && n && s ? r[t] = he(n, s) : r[t] = s + " " + n;
69
69
  } else
70
- t[r] = n;
70
+ r[t] = n;
71
71
  }
72
- for (const r in o)
73
- r in e || (t[r] = o[r]);
74
- return t;
75
- }, lr = {
72
+ for (const t in o)
73
+ t in e || (r[t] = o[t]);
74
+ return r;
75
+ }, lt = {
76
76
  twMerge: !0,
77
77
  twMergeConfig: {}
78
78
  };
79
- function cr() {
80
- let e = null, o = {}, t = !1;
79
+ function ct() {
80
+ let e = null, o = {}, r = !1;
81
81
  return {
82
82
  get cachedTwMerge() {
83
83
  return e;
84
84
  },
85
- set cachedTwMerge(r) {
86
- e = r;
85
+ set cachedTwMerge(t) {
86
+ e = t;
87
87
  },
88
88
  get cachedTwMergeConfig() {
89
89
  return o;
90
90
  },
91
- set cachedTwMergeConfig(r) {
92
- o = r;
91
+ set cachedTwMergeConfig(t) {
92
+ o = t;
93
93
  },
94
94
  get didTwMergeConfigChange() {
95
- return t;
95
+ return r;
96
96
  },
97
- set didTwMergeConfigChange(r) {
98
- t = r;
97
+ set didTwMergeConfigChange(t) {
98
+ r = t;
99
99
  },
100
100
  reset() {
101
- e = null, o = {}, t = !1;
101
+ e = null, o = {}, r = !1;
102
102
  }
103
103
  };
104
104
  }
105
- var U = cr(), dr = (e) => {
106
- const o = (r, n) => {
105
+ var U = ct(), dt = (e) => {
106
+ const o = (t, n) => {
107
107
  const {
108
108
  extend: s = null,
109
109
  slots: a = {},
110
110
  variants: m = {},
111
111
  compoundVariants: d = [],
112
112
  compoundSlots: g = [],
113
- defaultVariants: z = {}
114
- } = r, S = { ...lr, ...n }, P = s?.base ? fe(s.base, r?.base) : r?.base, x = s?.variants && !j(s.variants) ? he(m, s.variants) : m, T = s?.defaultVariants && !j(s.defaultVariants) ? { ...s.defaultVariants, ...z } : z;
115
- !j(S.twMergeConfig) && !ar(S.twMergeConfig, U.cachedTwMergeConfig) && (U.didTwMergeConfigChange = !0, U.cachedTwMergeConfig = S.twMergeConfig);
116
- const v = j(s?.slots), M = j(a) ? {} : {
113
+ defaultVariants: S = {}
114
+ } = t, A = { ...lt, ...n }, G = s?.base ? fe(s.base, t?.base) : t?.base, C = s?.variants && !L(s.variants) ? he(m, s.variants) : m, P = s?.defaultVariants && !L(s.defaultVariants) ? { ...s.defaultVariants, ...S } : S;
115
+ !L(A.twMergeConfig) && !at(A.twMergeConfig, U.cachedTwMergeConfig) && (U.didTwMergeConfigChange = !0, U.cachedTwMergeConfig = A.twMergeConfig);
116
+ const w = L(s?.slots), v = L(a) ? {} : {
117
117
  // add "base" to the slots object
118
- base: fe(r?.base, v && s?.base),
118
+ base: fe(t?.base, w && s?.base),
119
119
  ...a
120
- }, O = v ? M : ir(
120
+ }, I = w ? v : it(
121
121
  { ...s?.slots },
122
- j(M) ? { base: r?.base } : M
123
- ), N = j(s?.compoundVariants) ? d : Re(s?.compoundVariants, d), E = (R) => {
124
- if (j(x) && j(a) && v)
125
- return e(P, R?.class, R?.className)(S);
126
- if (N && !Array.isArray(N))
122
+ L(v) ? { base: t?.base } : v
123
+ ), j = L(s?.compoundVariants) ? d : Re(s?.compoundVariants, d), O = (N) => {
124
+ if (L(C) && L(a) && w)
125
+ return e(G, N?.class, N?.className)(A);
126
+ if (j && !Array.isArray(j))
127
127
  throw new TypeError(
128
- `The "compoundVariants" prop must be an array. Received: ${typeof N}`
128
+ `The "compoundVariants" prop must be an array. Received: ${typeof j}`
129
129
  );
130
130
  if (g && !Array.isArray(g))
131
131
  throw new TypeError(
132
132
  `The "compoundSlots" prop must be an array. Received: ${typeof g}`
133
133
  );
134
- const B = (b, h = x, f = null, y = null) => {
134
+ const B = (b, h = C, f = null, y = null) => {
135
135
  const k = h[b];
136
- if (!k || j(k))
136
+ if (!k || L(k))
137
137
  return null;
138
- const C = y?.[b] ?? R?.[b];
139
- if (C === null) return null;
140
- const c = Se(C);
138
+ const z = y?.[b] ?? N?.[b];
139
+ if (z === null) return null;
140
+ const c = Se(z);
141
141
  if (typeof c == "object")
142
142
  return null;
143
- const _ = T?.[b], L = c ?? Se(_);
144
- return k[L || "false"];
143
+ const _ = P?.[b], E = c ?? Se(_);
144
+ return k[E || "false"];
145
145
  }, X = () => {
146
- if (!x) return null;
147
- const b = Object.keys(x), h = [];
146
+ if (!C) return null;
147
+ const b = Object.keys(C), h = [];
148
148
  for (let f = 0; f < b.length; f++) {
149
- const y = B(b[f], x);
149
+ const y = B(b[f], C);
150
150
  y && h.push(y);
151
151
  }
152
152
  return h;
153
153
  }, u = (b, h) => {
154
- if (!x || typeof x != "object") return null;
154
+ if (!C || typeof C != "object") return null;
155
155
  const f = [];
156
- for (const y in x) {
157
- const k = B(y, x, b, h), C = b === "base" && typeof k == "string" ? k : k && k[b];
158
- C && f.push(C);
156
+ for (const y in C) {
157
+ const k = B(y, C, b, h), z = b === "base" && typeof k == "string" ? k : k && k[b];
158
+ z && f.push(z);
159
159
  }
160
160
  return f;
161
- }, I = {};
162
- for (const b in R) {
163
- const h = R[b];
164
- h !== void 0 && (I[b] = h);
161
+ }, R = {};
162
+ for (const b in N) {
163
+ const h = N[b];
164
+ h !== void 0 && (R[b] = h);
165
165
  }
166
166
  const ee = (b, h) => {
167
- const f = typeof R?.[b] == "object" ? {
168
- [b]: R[b]?.initial
167
+ const f = typeof N?.[b] == "object" ? {
168
+ [b]: N[b]?.initial
169
169
  } : {};
170
170
  return {
171
- ...T,
172
- ...I,
171
+ ...P,
172
+ ...R,
173
173
  ...f,
174
174
  ...h
175
175
  };
176
- }, re = (b = [], h) => {
176
+ }, te = (b = [], h) => {
177
177
  const f = [], y = b.length;
178
178
  for (let k = 0; k < y; k++) {
179
- const { class: C, className: c, ..._ } = b[k];
180
- let L = !0;
179
+ const { class: z, className: c, ..._ } = b[k];
180
+ let E = !0;
181
181
  const F = ee(null, h);
182
182
  for (const W in _) {
183
- const w = _[W], A = F[W];
184
- if (Array.isArray(w)) {
185
- if (!w.includes(A)) {
186
- L = !1;
183
+ const x = _[W], M = F[W];
184
+ if (Array.isArray(x)) {
185
+ if (!x.includes(M)) {
186
+ E = !1;
187
187
  break;
188
188
  }
189
189
  } else {
190
- if ((w == null || w === !1) && (A == null || A === !1))
190
+ if ((x == null || x === !1) && (M == null || M === !1))
191
191
  continue;
192
- if (A !== w) {
193
- L = !1;
192
+ if (M !== x) {
193
+ E = !1;
194
194
  break;
195
195
  }
196
196
  }
197
197
  }
198
- L && (C && f.push(C), c && f.push(c));
198
+ E && (z && f.push(z), c && f.push(c));
199
199
  }
200
200
  return f;
201
201
  }, Q = (b) => {
202
- const h = re(N, b);
202
+ const h = te(j, b);
203
203
  if (!Array.isArray(h)) return h;
204
204
  const f = {}, y = e;
205
205
  for (let k = 0; k < h.length; k++) {
206
- const C = h[k];
207
- if (typeof C == "string")
208
- f.base = y(f.base, C)(S);
209
- else if (typeof C == "object")
210
- for (const c in C)
211
- f[c] = y(f[c], C[c])(S);
206
+ const z = h[k];
207
+ if (typeof z == "string")
208
+ f.base = y(f.base, z)(A);
209
+ else if (typeof z == "object")
210
+ for (const c in z)
211
+ f[c] = y(f[c], z[c])(A);
212
212
  }
213
213
  return f;
214
214
  }, se = (b) => {
@@ -217,173 +217,173 @@ var U = cr(), dr = (e) => {
217
217
  for (let y = 0; y < g.length; y++) {
218
218
  const {
219
219
  slots: k = [],
220
- class: C,
220
+ class: z,
221
221
  className: c,
222
222
  ..._
223
223
  } = g[y];
224
- if (!j(_)) {
225
- let L = !0;
224
+ if (!L(_)) {
225
+ let E = !0;
226
226
  for (const F in _) {
227
- const W = f[F], w = _[F];
228
- if (W === void 0 || (Array.isArray(w) ? !w.includes(W) : w !== W)) {
229
- L = !1;
227
+ const W = f[F], x = _[F];
228
+ if (W === void 0 || (Array.isArray(x) ? !x.includes(W) : x !== W)) {
229
+ E = !1;
230
230
  break;
231
231
  }
232
232
  }
233
- if (!L) continue;
233
+ if (!E) continue;
234
234
  }
235
- for (let L = 0; L < k.length; L++) {
236
- const F = k[L];
237
- h[F] || (h[F] = []), h[F].push([C, c]);
235
+ for (let E = 0; E < k.length; E++) {
236
+ const F = k[E];
237
+ h[F] || (h[F] = []), h[F].push([z, c]);
238
238
  }
239
239
  }
240
240
  return h;
241
241
  };
242
- if (!j(a) || !v) {
242
+ if (!L(a) || !w) {
243
243
  const b = {};
244
- if (typeof O == "object" && !j(O)) {
244
+ if (typeof I == "object" && !L(I)) {
245
245
  const h = e;
246
- for (const f in O)
246
+ for (const f in I)
247
247
  b[f] = (y) => {
248
- const k = Q(y), C = se(y);
248
+ const k = Q(y), z = se(y);
249
249
  return h(
250
- O[f],
250
+ I[f],
251
251
  u(f, y),
252
252
  k ? k[f] : void 0,
253
- C ? C[f] : void 0,
253
+ z ? z[f] : void 0,
254
254
  y?.class,
255
255
  y?.className
256
- )(S);
256
+ )(A);
257
257
  };
258
258
  }
259
259
  return b;
260
260
  }
261
261
  return e(
262
- P,
262
+ G,
263
263
  X(),
264
- re(N),
265
- R?.class,
266
- R?.className
267
- )(S);
264
+ te(j),
265
+ N?.class,
266
+ N?.className
267
+ )(A);
268
268
  }, D = () => {
269
- if (!(!x || typeof x != "object"))
270
- return Object.keys(x);
269
+ if (!(!C || typeof C != "object"))
270
+ return Object.keys(C);
271
271
  };
272
- return E.variantKeys = D(), E.extend = s, E.base = P, E.slots = O, E.variants = x, E.defaultVariants = T, E.compoundSlots = g, E.compoundVariants = N, E;
272
+ return O.variantKeys = D(), O.extend = s, O.base = G, O.slots = I, O.variants = C, O.defaultVariants = P, O.compoundSlots = g, O.compoundVariants = j, O;
273
273
  };
274
274
  return {
275
275
  tv: o,
276
- createTV: (r) => (n, s) => o(n, s ? he(r, s) : r)
276
+ createTV: (t) => (n, s) => o(n, s ? he(t, s) : t)
277
277
  };
278
278
  };
279
- const ur = (e, o) => {
280
- const t = new Array(e.length + o.length);
281
- for (let r = 0; r < e.length; r++)
282
- t[r] = e[r];
283
- for (let r = 0; r < o.length; r++)
284
- t[e.length + r] = o[r];
285
- return t;
286
- }, mr = (e, o) => ({
279
+ const ut = (e, o) => {
280
+ const r = new Array(e.length + o.length);
281
+ for (let t = 0; t < e.length; t++)
282
+ r[t] = e[t];
283
+ for (let t = 0; t < o.length; t++)
284
+ r[e.length + t] = o[t];
285
+ return r;
286
+ }, mt = (e, o) => ({
287
287
  classGroupId: e,
288
288
  validator: o
289
- }), Ie = (e = /* @__PURE__ */ new Map(), o = null, t) => ({
289
+ }), Ie = (e = /* @__PURE__ */ new Map(), o = null, r) => ({
290
290
  nextPart: e,
291
291
  validators: o,
292
- classGroupId: t
293
- }), pe = "-", Ae = [], fr = "arbitrary..", pr = (e) => {
294
- const o = br(e), {
295
- conflictingClassGroups: t,
296
- conflictingClassGroupModifiers: r
292
+ classGroupId: r
293
+ }), pe = "-", Ae = [], ft = "arbitrary..", pt = (e) => {
294
+ const o = bt(e), {
295
+ conflictingClassGroups: r,
296
+ conflictingClassGroupModifiers: t
297
297
  } = e;
298
298
  return {
299
299
  getClassGroupId: (a) => {
300
300
  if (a.startsWith("[") && a.endsWith("]"))
301
- return gr(a);
301
+ return gt(a);
302
302
  const m = a.split(pe), d = m[0] === "" && m.length > 1 ? 1 : 0;
303
303
  return Oe(m, d, o);
304
304
  },
305
305
  getConflictingClassGroupIds: (a, m) => {
306
306
  if (m) {
307
- const d = r[a], g = t[a];
308
- return d ? g ? ur(g, d) : d : g || Ae;
307
+ const d = t[a], g = r[a];
308
+ return d ? g ? ut(g, d) : d : g || Ae;
309
309
  }
310
- return t[a] || Ae;
310
+ return r[a] || Ae;
311
311
  }
312
312
  };
313
- }, Oe = (e, o, t) => {
313
+ }, Oe = (e, o, r) => {
314
314
  if (e.length - o === 0)
315
- return t.classGroupId;
316
- const n = e[o], s = t.nextPart.get(n);
315
+ return r.classGroupId;
316
+ const n = e[o], s = r.nextPart.get(n);
317
317
  if (s) {
318
318
  const g = Oe(e, o + 1, s);
319
319
  if (g) return g;
320
320
  }
321
- const a = t.validators;
321
+ const a = r.validators;
322
322
  if (a === null)
323
323
  return;
324
324
  const m = o === 0 ? e.join(pe) : e.slice(o).join(pe), d = a.length;
325
325
  for (let g = 0; g < d; g++) {
326
- const z = a[g];
327
- if (z.validator(m))
328
- return z.classGroupId;
326
+ const S = a[g];
327
+ if (S.validator(m))
328
+ return S.classGroupId;
329
329
  }
330
- }, gr = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
331
- const o = e.slice(1, -1), t = o.indexOf(":"), r = o.slice(0, t);
332
- return r ? fr + r : void 0;
333
- })(), br = (e) => {
330
+ }, gt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
331
+ const o = e.slice(1, -1), r = o.indexOf(":"), t = o.slice(0, r);
332
+ return t ? ft + t : void 0;
333
+ })(), bt = (e) => {
334
334
  const {
335
335
  theme: o,
336
- classGroups: t
336
+ classGroups: r
337
337
  } = e;
338
- return hr(t, o);
339
- }, hr = (e, o) => {
340
- const t = Ie();
341
- for (const r in e) {
342
- const n = e[r];
343
- we(n, t, r, o);
338
+ return ht(r, o);
339
+ }, ht = (e, o) => {
340
+ const r = Ie();
341
+ for (const t in e) {
342
+ const n = e[t];
343
+ we(n, r, t, o);
344
344
  }
345
- return t;
346
- }, we = (e, o, t, r) => {
345
+ return r;
346
+ }, we = (e, o, r, t) => {
347
347
  const n = e.length;
348
348
  for (let s = 0; s < n; s++) {
349
349
  const a = e[s];
350
- yr(a, o, t, r);
350
+ yt(a, o, r, t);
351
351
  }
352
- }, yr = (e, o, t, r) => {
352
+ }, yt = (e, o, r, t) => {
353
353
  if (typeof e == "string") {
354
- vr(e, o, t);
354
+ vt(e, o, r);
355
355
  return;
356
356
  }
357
357
  if (typeof e == "function") {
358
- kr(e, o, t, r);
358
+ kt(e, o, r, t);
359
359
  return;
360
360
  }
361
- wr(e, o, t, r);
362
- }, vr = (e, o, t) => {
363
- const r = e === "" ? o : Ee(o, e);
364
- r.classGroupId = t;
365
- }, kr = (e, o, t, r) => {
366
- if (xr(e)) {
367
- we(e(r), o, t, r);
361
+ wt(e, o, r, t);
362
+ }, vt = (e, o, r) => {
363
+ const t = e === "" ? o : Ee(o, e);
364
+ t.classGroupId = r;
365
+ }, kt = (e, o, r, t) => {
366
+ if (xt(e)) {
367
+ we(e(t), o, r, t);
368
368
  return;
369
369
  }
370
- o.validators === null && (o.validators = []), o.validators.push(mr(t, e));
371
- }, wr = (e, o, t, r) => {
370
+ o.validators === null && (o.validators = []), o.validators.push(mt(r, e));
371
+ }, wt = (e, o, r, t) => {
372
372
  const n = Object.entries(e), s = n.length;
373
373
  for (let a = 0; a < s; a++) {
374
374
  const [m, d] = n[a];
375
- we(d, Ee(o, m), t, r);
375
+ we(d, Ee(o, m), r, t);
376
376
  }
377
377
  }, Ee = (e, o) => {
378
- let t = e;
379
- const r = o.split(pe), n = r.length;
378
+ let r = e;
379
+ const t = o.split(pe), n = t.length;
380
380
  for (let s = 0; s < n; s++) {
381
- const a = r[s];
382
- let m = t.nextPart.get(a);
383
- m || (m = Ie(), t.nextPart.set(a, m)), t = m;
381
+ const a = t[s];
382
+ let m = r.nextPart.get(a);
383
+ m || (m = Ie(), r.nextPart.set(a, m)), r = m;
384
384
  }
385
- return t;
386
- }, xr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Cr = (e) => {
385
+ return r;
386
+ }, xt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ct = (e) => {
387
387
  if (e < 1)
388
388
  return {
389
389
  get: () => {
@@ -391,178 +391,178 @@ const ur = (e, o) => {
391
391
  set: () => {
392
392
  }
393
393
  };
394
- let o = 0, t = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
394
+ let o = 0, r = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
395
395
  const n = (s, a) => {
396
- t[s] = a, o++, o > e && (o = 0, r = t, t = /* @__PURE__ */ Object.create(null));
396
+ r[s] = a, o++, o > e && (o = 0, t = r, r = /* @__PURE__ */ Object.create(null));
397
397
  };
398
398
  return {
399
399
  get(s) {
400
- let a = t[s];
400
+ let a = r[s];
401
401
  if (a !== void 0)
402
402
  return a;
403
- if ((a = r[s]) !== void 0)
403
+ if ((a = t[s]) !== void 0)
404
404
  return n(s, a), a;
405
405
  },
406
406
  set(s, a) {
407
- s in t ? t[s] = a : n(s, a);
407
+ s in r ? r[s] = a : n(s, a);
408
408
  }
409
409
  };
410
- }, ye = "!", Me = ":", zr = [], Ve = (e, o, t, r, n) => ({
410
+ }, ye = "!", Me = ":", zt = [], Ve = (e, o, r, t, n) => ({
411
411
  modifiers: e,
412
412
  hasImportantModifier: o,
413
- baseClassName: t,
414
- maybePostfixModifierPosition: r,
413
+ baseClassName: r,
414
+ maybePostfixModifierPosition: t,
415
415
  isExternal: n
416
- }), Sr = (e) => {
416
+ }), St = (e) => {
417
417
  const {
418
418
  prefix: o,
419
- experimentalParseClassName: t
419
+ experimentalParseClassName: r
420
420
  } = e;
421
- let r = (n) => {
421
+ let t = (n) => {
422
422
  const s = [];
423
423
  let a = 0, m = 0, d = 0, g;
424
- const z = n.length;
425
- for (let v = 0; v < z; v++) {
426
- const M = n[v];
424
+ const S = n.length;
425
+ for (let w = 0; w < S; w++) {
426
+ const v = n[w];
427
427
  if (a === 0 && m === 0) {
428
- if (M === Me) {
429
- s.push(n.slice(d, v)), d = v + 1;
428
+ if (v === Me) {
429
+ s.push(n.slice(d, w)), d = w + 1;
430
430
  continue;
431
431
  }
432
- if (M === "/") {
433
- g = v;
432
+ if (v === "/") {
433
+ g = w;
434
434
  continue;
435
435
  }
436
436
  }
437
- M === "[" ? a++ : M === "]" ? a-- : M === "(" ? m++ : M === ")" && m--;
437
+ v === "[" ? a++ : v === "]" ? a-- : v === "(" ? m++ : v === ")" && m--;
438
438
  }
439
- const S = s.length === 0 ? n : n.slice(d);
440
- let P = S, x = !1;
441
- S.endsWith(ye) ? (P = S.slice(0, -1), x = !0) : (
439
+ const A = s.length === 0 ? n : n.slice(d);
440
+ let G = A, C = !1;
441
+ A.endsWith(ye) ? (G = A.slice(0, -1), C = !0) : (
442
442
  /**
443
443
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
444
444
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
445
445
  */
446
- S.startsWith(ye) && (P = S.slice(1), x = !0)
446
+ A.startsWith(ye) && (G = A.slice(1), C = !0)
447
447
  );
448
- const T = g && g > d ? g - d : void 0;
449
- return Ve(s, x, P, T);
448
+ const P = g && g > d ? g - d : void 0;
449
+ return Ve(s, C, G, P);
450
450
  };
451
451
  if (o) {
452
- const n = o + Me, s = r;
453
- r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : Ve(zr, !1, a, void 0, !0);
452
+ const n = o + Me, s = t;
453
+ t = (a) => a.startsWith(n) ? s(a.slice(n.length)) : Ve(zt, !1, a, void 0, !0);
454
454
  }
455
- if (t) {
456
- const n = r;
457
- r = (s) => t({
455
+ if (r) {
456
+ const n = t;
457
+ t = (s) => r({
458
458
  className: s,
459
459
  parseClassName: n
460
460
  });
461
461
  }
462
- return r;
463
- }, Ar = (e) => {
462
+ return t;
463
+ }, At = (e) => {
464
464
  const o = /* @__PURE__ */ new Map();
465
- return e.orderSensitiveModifiers.forEach((t, r) => {
466
- o.set(t, 1e6 + r);
467
- }), (t) => {
468
- const r = [];
465
+ return e.orderSensitiveModifiers.forEach((r, t) => {
466
+ o.set(r, 1e6 + t);
467
+ }), (r) => {
468
+ const t = [];
469
469
  let n = [];
470
- for (let s = 0; s < t.length; s++) {
471
- const a = t[s], m = a[0] === "[", d = o.has(a);
472
- m || d ? (n.length > 0 && (n.sort(), r.push(...n), n = []), r.push(a)) : n.push(a);
470
+ for (let s = 0; s < r.length; s++) {
471
+ const a = r[s], m = a[0] === "[", d = o.has(a);
472
+ m || d ? (n.length > 0 && (n.sort(), t.push(...n), n = []), t.push(a)) : n.push(a);
473
473
  }
474
- return n.length > 0 && (n.sort(), r.push(...n)), r;
474
+ return n.length > 0 && (n.sort(), t.push(...n)), t;
475
475
  };
476
- }, Mr = (e) => ({
477
- cache: Cr(e.cacheSize),
478
- parseClassName: Sr(e),
479
- sortModifiers: Ar(e),
480
- ...pr(e)
481
- }), Vr = /\s+/, Tr = (e, o) => {
476
+ }, Mt = (e) => ({
477
+ cache: Ct(e.cacheSize),
478
+ parseClassName: St(e),
479
+ sortModifiers: At(e),
480
+ ...pt(e)
481
+ }), Vt = /\s+/, Tt = (e, o) => {
482
482
  const {
483
- parseClassName: t,
484
- getClassGroupId: r,
483
+ parseClassName: r,
484
+ getClassGroupId: t,
485
485
  getConflictingClassGroupIds: n,
486
486
  sortModifiers: s
487
- } = o, a = [], m = e.trim().split(Vr);
487
+ } = o, a = [], m = e.trim().split(Vt);
488
488
  let d = "";
489
489
  for (let g = m.length - 1; g >= 0; g -= 1) {
490
- const z = m[g], {
491
- isExternal: S,
492
- modifiers: P,
493
- hasImportantModifier: x,
494
- baseClassName: T,
495
- maybePostfixModifierPosition: v
496
- } = t(z);
497
- if (S) {
498
- d = z + (d.length > 0 ? " " + d : d);
490
+ const S = m[g], {
491
+ isExternal: A,
492
+ modifiers: G,
493
+ hasImportantModifier: C,
494
+ baseClassName: P,
495
+ maybePostfixModifierPosition: w
496
+ } = r(S);
497
+ if (A) {
498
+ d = S + (d.length > 0 ? " " + d : d);
499
499
  continue;
500
500
  }
501
- let M = !!v, O = r(M ? T.substring(0, v) : T);
502
- if (!O) {
503
- if (!M) {
504
- d = z + (d.length > 0 ? " " + d : d);
501
+ let v = !!w, I = t(v ? P.substring(0, w) : P);
502
+ if (!I) {
503
+ if (!v) {
504
+ d = S + (d.length > 0 ? " " + d : d);
505
505
  continue;
506
506
  }
507
- if (O = r(T), !O) {
508
- d = z + (d.length > 0 ? " " + d : d);
507
+ if (I = t(P), !I) {
508
+ d = S + (d.length > 0 ? " " + d : d);
509
509
  continue;
510
510
  }
511
- M = !1;
511
+ v = !1;
512
512
  }
513
- const N = P.length === 0 ? "" : P.length === 1 ? P[0] : s(P).join(":"), E = x ? N + ye : N, D = E + O;
513
+ const j = G.length === 0 ? "" : G.length === 1 ? G[0] : s(G).join(":"), O = C ? j + ye : j, D = O + I;
514
514
  if (a.indexOf(D) > -1)
515
515
  continue;
516
516
  a.push(D);
517
- const R = n(O, M);
518
- for (let B = 0; B < R.length; ++B) {
519
- const X = R[B];
520
- a.push(E + X);
517
+ const N = n(I, v);
518
+ for (let B = 0; B < N.length; ++B) {
519
+ const X = N[B];
520
+ a.push(O + X);
521
521
  }
522
- d = z + (d.length > 0 ? " " + d : d);
522
+ d = S + (d.length > 0 ? " " + d : d);
523
523
  }
524
524
  return d;
525
- }, Gr = (...e) => {
526
- let o = 0, t, r, n = "";
525
+ }, Gt = (...e) => {
526
+ let o = 0, r, t, n = "";
527
527
  for (; o < e.length; )
528
- (t = e[o++]) && (r = Le(t)) && (n && (n += " "), n += r);
528
+ (r = e[o++]) && (t = Le(r)) && (n && (n += " "), n += t);
529
529
  return n;
530
530
  }, Le = (e) => {
531
531
  if (typeof e == "string")
532
532
  return e;
533
- let o, t = "";
534
- for (let r = 0; r < e.length; r++)
535
- e[r] && (o = Le(e[r])) && (t && (t += " "), t += o);
536
- return t;
533
+ let o, r = "";
534
+ for (let t = 0; t < e.length; t++)
535
+ e[t] && (o = Le(e[t])) && (r && (r += " "), r += o);
536
+ return r;
537
537
  }, ve = (e, ...o) => {
538
- let t, r, n, s;
538
+ let r, t, n, s;
539
539
  const a = (d) => {
540
- const g = o.reduce((z, S) => S(z), e());
541
- return t = Mr(g), r = t.cache.get, n = t.cache.set, s = m, m(d);
540
+ const g = o.reduce((S, A) => A(S), e());
541
+ return r = Mt(g), t = r.cache.get, n = r.cache.set, s = m, m(d);
542
542
  }, m = (d) => {
543
- const g = r(d);
543
+ const g = t(d);
544
544
  if (g)
545
545
  return g;
546
- const z = Tr(d, t);
547
- return n(d, z), z;
546
+ const S = Tt(d, r);
547
+ return n(d, S), S;
548
548
  };
549
- return s = a, (...d) => s(Gr(...d));
550
- }, Pr = [], V = (e) => {
551
- const o = (t) => t[e] || Pr;
549
+ return s = a, (...d) => s(Gt(...d));
550
+ }, Pt = [], V = (e) => {
551
+ const o = (r) => r[e] || Pt;
552
552
  return o.isThemeGetter = !0, o;
553
- }, je = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Fe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Nr = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Rr = /^(\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$/, Or = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Er = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Lr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => Nr.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), Y = (e) => !!e && Number.isInteger(Number(e)), be = (e) => e.endsWith("%") && p(e.slice(0, -1)), $ = (e) => Rr.test(e), _e = () => !0, jr = (e) => (
553
+ }, je = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Fe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Nt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Rt = /^(\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$/, Ot = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Et = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Lt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => Nt.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), Y = (e) => !!e && Number.isInteger(Number(e)), be = (e) => e.endsWith("%") && p(e.slice(0, -1)), $ = (e) => Rt.test(e), _e = () => !0, jt = (e) => (
554
554
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
555
555
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
556
556
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
557
- Ir.test(e) && !Or.test(e)
558
- ), xe = () => !1, Fr = (e) => Er.test(e), _r = (e) => Lr.test(e), Br = (e) => !i(e) && !l(e), Wr = (e) => q(e, $e, xe), i = (e) => je.test(e), J = (e) => q(e, Ue, jr), Te = (e) => q(e, Jr, p), $r = (e) => q(e, Ke, _e), Ur = (e) => q(e, De, xe), Ge = (e) => q(e, Be, xe), Dr = (e) => q(e, We, _r), ce = (e) => q(e, Ye, Fr), l = (e) => Fe.test(e), te = (e) => H(e, Ue), Kr = (e) => H(e, De), Pe = (e) => H(e, Be), Yr = (e) => H(e, $e), qr = (e) => H(e, We), de = (e) => H(e, Ye, !0), Xr = (e) => H(e, Ke, !0), q = (e, o, t) => {
559
- const r = je.exec(e);
560
- return r ? r[1] ? o(r[1]) : t(r[2]) : !1;
561
- }, H = (e, o, t = !1) => {
562
- const r = Fe.exec(e);
563
- return r ? r[1] ? o(r[1]) : t : !1;
564
- }, Be = (e) => e === "position" || e === "percentage", We = (e) => e === "image" || e === "url", $e = (e) => e === "length" || e === "size" || e === "bg-size", Ue = (e) => e === "length", Jr = (e) => e === "number", De = (e) => e === "family-name", Ke = (e) => e === "number" || e === "weight", Ye = (e) => e === "shadow", ke = () => {
565
- const e = V("color"), o = V("font"), t = V("text"), r = V("font-weight"), n = V("tracking"), s = V("leading"), a = V("breakpoint"), m = V("container"), d = V("spacing"), g = V("radius"), z = V("shadow"), S = V("inset-shadow"), P = V("text-shadow"), x = V("drop-shadow"), T = V("blur"), v = V("perspective"), M = V("aspect"), O = V("ease"), N = V("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [
557
+ It.test(e) && !Ot.test(e)
558
+ ), xe = () => !1, Ft = (e) => Et.test(e), _t = (e) => Lt.test(e), Bt = (e) => !i(e) && !l(e), Wt = (e) => q(e, $e, xe), i = (e) => je.test(e), J = (e) => q(e, Ue, jt), Te = (e) => q(e, Jt, p), $t = (e) => q(e, Ke, _e), Ut = (e) => q(e, De, xe), Ge = (e) => q(e, Be, xe), Dt = (e) => q(e, We, _t), ce = (e) => q(e, Ye, Ft), l = (e) => Fe.test(e), re = (e) => H(e, Ue), Kt = (e) => H(e, De), Pe = (e) => H(e, Be), Yt = (e) => H(e, $e), qt = (e) => H(e, We), de = (e) => H(e, Ye, !0), Xt = (e) => H(e, Ke, !0), q = (e, o, r) => {
559
+ const t = je.exec(e);
560
+ return t ? t[1] ? o(t[1]) : r(t[2]) : !1;
561
+ }, H = (e, o, r = !1) => {
562
+ const t = Fe.exec(e);
563
+ return t ? t[1] ? o(t[1]) : r : !1;
564
+ }, Be = (e) => e === "position" || e === "percentage", We = (e) => e === "image" || e === "url", $e = (e) => e === "length" || e === "size" || e === "bg-size", Ue = (e) => e === "length", Jt = (e) => e === "number", De = (e) => e === "family-name", Ke = (e) => e === "number" || e === "weight", Ye = (e) => e === "shadow", ke = () => {
565
+ const e = V("color"), o = V("font"), r = V("text"), t = V("font-weight"), n = V("tracking"), s = V("leading"), a = V("breakpoint"), m = V("container"), d = V("spacing"), g = V("radius"), S = V("shadow"), A = V("inset-shadow"), G = V("text-shadow"), C = V("drop-shadow"), P = V("blur"), w = V("perspective"), v = V("aspect"), I = V("ease"), j = V("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [
566
566
  "center",
567
567
  "top",
568
568
  "bottom",
@@ -580,15 +580,15 @@ const ur = (e, o) => {
580
580
  "bottom-left",
581
581
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
582
582
  "left-bottom"
583
- ], R = () => [...D(), l, i], B = () => ["auto", "hidden", "clip", "visible", "scroll"], X = () => ["auto", "contain", "none"], u = () => [l, i, d], I = () => [K, "full", "auto", ...u()], ee = () => [Y, "none", "subgrid", l, i], re = () => ["auto", {
583
+ ], N = () => [...D(), l, i], B = () => ["auto", "hidden", "clip", "visible", "scroll"], X = () => ["auto", "contain", "none"], u = () => [l, i, d], R = () => [K, "full", "auto", ...u()], ee = () => [Y, "none", "subgrid", l, i], te = () => ["auto", {
584
584
  span: ["full", Y, l, i]
585
- }, Y, l, i], Q = () => [Y, "auto", l, i], se = () => ["auto", "min", "max", "fr", l, i], b = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], h = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], f = () => ["auto", ...u()], y = () => [K, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...u()], k = () => [K, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...u()], C = () => [K, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...u()], c = () => [e, l, i], _ = () => [...D(), Pe, Ge, {
585
+ }, Y, l, i], Q = () => [Y, "auto", l, i], se = () => ["auto", "min", "max", "fr", l, i], b = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], h = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], f = () => ["auto", ...u()], y = () => [K, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...u()], k = () => [K, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...u()], z = () => [K, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...u()], c = () => [e, l, i], _ = () => [...D(), Pe, Ge, {
586
586
  position: [l, i]
587
- }], L = () => ["no-repeat", {
587
+ }], E = () => ["no-repeat", {
588
588
  repeat: ["", "x", "y", "space", "round"]
589
- }], F = () => ["auto", "cover", "contain", Yr, Wr, {
589
+ }], F = () => ["auto", "cover", "contain", Yt, Wt, {
590
590
  size: [l, i]
591
- }], W = () => [be, te, J], w = () => [
591
+ }], W = () => [be, re, J], x = () => [
592
592
  // Deprecated since Tailwind CSS v4.0.0
593
593
  "",
594
594
  "none",
@@ -596,11 +596,11 @@ const ur = (e, o) => {
596
596
  g,
597
597
  l,
598
598
  i
599
- ], A = () => ["", p, te, J], ne = () => ["solid", "dashed", "dotted", "double"], Ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => [p, be, Pe, Ge], ze = () => [
599
+ ], M = () => ["", p, re, J], ne = () => ["solid", "dashed", "dotted", "double"], Ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], T = () => [p, be, Pe, Ge], ze = () => [
600
600
  // Deprecated since Tailwind CSS v4.0.0
601
601
  "",
602
602
  "none",
603
- T,
603
+ P,
604
604
  l,
605
605
  i
606
606
  ], ae = () => ["none", p, l, i], ie = () => ["none", p, l, i], ge = () => [p, l, i], le = () => [K, "full", ...u()];
@@ -615,7 +615,7 @@ const ur = (e, o) => {
615
615
  container: [$],
616
616
  "drop-shadow": [$],
617
617
  ease: ["in", "out", "in-out"],
618
- font: [Br],
618
+ font: [Bt],
619
619
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
620
620
  "inset-shadow": [$],
621
621
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -636,7 +636,7 @@ const ur = (e, o) => {
636
636
  * @see https://tailwindcss.com/docs/aspect-ratio
637
637
  */
638
638
  aspect: [{
639
- aspect: ["auto", "square", K, i, l, M]
639
+ aspect: ["auto", "square", K, i, l, v]
640
640
  }],
641
641
  /**
642
642
  * Container
@@ -656,14 +656,14 @@ const ur = (e, o) => {
656
656
  * @see https://tailwindcss.com/docs/break-after
657
657
  */
658
658
  "break-after": [{
659
- "break-after": E()
659
+ "break-after": O()
660
660
  }],
661
661
  /**
662
662
  * Break Before
663
663
  * @see https://tailwindcss.com/docs/break-before
664
664
  */
665
665
  "break-before": [{
666
- "break-before": E()
666
+ "break-before": O()
667
667
  }],
668
668
  /**
669
669
  * Break Inside
@@ -727,7 +727,7 @@ const ur = (e, o) => {
727
727
  * @see https://tailwindcss.com/docs/object-position
728
728
  */
729
729
  "object-position": [{
730
- object: R()
730
+ object: N()
731
731
  }],
732
732
  /**
733
733
  * Overflow
@@ -781,21 +781,21 @@ const ur = (e, o) => {
781
781
  * @see https://tailwindcss.com/docs/top-right-bottom-left
782
782
  */
783
783
  inset: [{
784
- inset: I()
784
+ inset: R()
785
785
  }],
786
786
  /**
787
787
  * Inset Inline
788
788
  * @see https://tailwindcss.com/docs/top-right-bottom-left
789
789
  */
790
790
  "inset-x": [{
791
- "inset-x": I()
791
+ "inset-x": R()
792
792
  }],
793
793
  /**
794
794
  * Inset Block
795
795
  * @see https://tailwindcss.com/docs/top-right-bottom-left
796
796
  */
797
797
  "inset-y": [{
798
- "inset-y": I()
798
+ "inset-y": R()
799
799
  }],
800
800
  /**
801
801
  * Inset Inline Start
@@ -803,12 +803,12 @@ const ur = (e, o) => {
803
803
  * @todo class group will be renamed to `inset-s` in next major release
804
804
  */
805
805
  start: [{
806
- "inset-s": I(),
806
+ "inset-s": R(),
807
807
  /**
808
808
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
809
809
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
810
810
  */
811
- start: I()
811
+ start: R()
812
812
  }],
813
813
  /**
814
814
  * Inset Inline End
@@ -816,54 +816,54 @@ const ur = (e, o) => {
816
816
  * @todo class group will be renamed to `inset-e` in next major release
817
817
  */
818
818
  end: [{
819
- "inset-e": I(),
819
+ "inset-e": R(),
820
820
  /**
821
821
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
822
822
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
823
823
  */
824
- end: I()
824
+ end: R()
825
825
  }],
826
826
  /**
827
827
  * Inset Block Start
828
828
  * @see https://tailwindcss.com/docs/top-right-bottom-left
829
829
  */
830
830
  "inset-bs": [{
831
- "inset-bs": I()
831
+ "inset-bs": R()
832
832
  }],
833
833
  /**
834
834
  * Inset Block End
835
835
  * @see https://tailwindcss.com/docs/top-right-bottom-left
836
836
  */
837
837
  "inset-be": [{
838
- "inset-be": I()
838
+ "inset-be": R()
839
839
  }],
840
840
  /**
841
841
  * Top
842
842
  * @see https://tailwindcss.com/docs/top-right-bottom-left
843
843
  */
844
844
  top: [{
845
- top: I()
845
+ top: R()
846
846
  }],
847
847
  /**
848
848
  * Right
849
849
  * @see https://tailwindcss.com/docs/top-right-bottom-left
850
850
  */
851
851
  right: [{
852
- right: I()
852
+ right: R()
853
853
  }],
854
854
  /**
855
855
  * Bottom
856
856
  * @see https://tailwindcss.com/docs/top-right-bottom-left
857
857
  */
858
858
  bottom: [{
859
- bottom: I()
859
+ bottom: R()
860
860
  }],
861
861
  /**
862
862
  * Left
863
863
  * @see https://tailwindcss.com/docs/top-right-bottom-left
864
864
  */
865
865
  left: [{
866
- left: I()
866
+ left: R()
867
867
  }],
868
868
  /**
869
869
  * Visibility
@@ -941,7 +941,7 @@ const ur = (e, o) => {
941
941
  * @see https://tailwindcss.com/docs/grid-column
942
942
  */
943
943
  "col-start-end": [{
944
- col: re()
944
+ col: te()
945
945
  }],
946
946
  /**
947
947
  * Grid Column Start
@@ -969,7 +969,7 @@ const ur = (e, o) => {
969
969
  * @see https://tailwindcss.com/docs/grid-row
970
970
  */
971
971
  "row-start-end": [{
972
- row: re()
972
+ row: te()
973
973
  }],
974
974
  /**
975
975
  * Grid Row Start
@@ -1309,21 +1309,21 @@ const ur = (e, o) => {
1309
1309
  * @see https://tailwindcss.com/docs/height
1310
1310
  */
1311
1311
  "block-size": [{
1312
- block: ["auto", ...C()]
1312
+ block: ["auto", ...z()]
1313
1313
  }],
1314
1314
  /**
1315
1315
  * Min-Block Size
1316
1316
  * @see https://tailwindcss.com/docs/min-height
1317
1317
  */
1318
1318
  "min-block-size": [{
1319
- "min-block": ["auto", ...C()]
1319
+ "min-block": ["auto", ...z()]
1320
1320
  }],
1321
1321
  /**
1322
1322
  * Max-Block Size
1323
1323
  * @see https://tailwindcss.com/docs/max-height
1324
1324
  */
1325
1325
  "max-block-size": [{
1326
- "max-block": ["none", ...C()]
1326
+ "max-block": ["none", ...z()]
1327
1327
  }],
1328
1328
  /**
1329
1329
  * Width
@@ -1392,7 +1392,7 @@ const ur = (e, o) => {
1392
1392
  * @see https://tailwindcss.com/docs/font-size
1393
1393
  */
1394
1394
  "font-size": [{
1395
- text: ["base", t, te, J]
1395
+ text: ["base", r, re, J]
1396
1396
  }],
1397
1397
  /**
1398
1398
  * Font Smoothing
@@ -1409,7 +1409,7 @@ const ur = (e, o) => {
1409
1409
  * @see https://tailwindcss.com/docs/font-weight
1410
1410
  */
1411
1411
  "font-weight": [{
1412
- font: [r, Xr, $r]
1412
+ font: [t, Xt, $t]
1413
1413
  }],
1414
1414
  /**
1415
1415
  * Font Stretch
@@ -1423,7 +1423,7 @@ const ur = (e, o) => {
1423
1423
  * @see https://tailwindcss.com/docs/font-family
1424
1424
  */
1425
1425
  "font-family": [{
1426
- font: [Kr, Ur, o]
1426
+ font: [Kt, Ut, o]
1427
1427
  }],
1428
1428
  /**
1429
1429
  * Font Feature Settings
@@ -1665,7 +1665,7 @@ const ur = (e, o) => {
1665
1665
  * @see https://tailwindcss.com/docs/background-repeat
1666
1666
  */
1667
1667
  "bg-repeat": [{
1668
- bg: L()
1668
+ bg: E()
1669
1669
  }],
1670
1670
  /**
1671
1671
  * Background Size
@@ -1685,7 +1685,7 @@ const ur = (e, o) => {
1685
1685
  }, Y, l, i],
1686
1686
  radial: ["", l, i],
1687
1687
  conic: [Y, l, i]
1688
- }, qr, Dr]
1688
+ }, qt, Dt]
1689
1689
  }],
1690
1690
  /**
1691
1691
  * Background Color
@@ -1744,189 +1744,189 @@ const ur = (e, o) => {
1744
1744
  * @see https://tailwindcss.com/docs/border-radius
1745
1745
  */
1746
1746
  rounded: [{
1747
- rounded: w()
1747
+ rounded: x()
1748
1748
  }],
1749
1749
  /**
1750
1750
  * Border Radius Start
1751
1751
  * @see https://tailwindcss.com/docs/border-radius
1752
1752
  */
1753
1753
  "rounded-s": [{
1754
- "rounded-s": w()
1754
+ "rounded-s": x()
1755
1755
  }],
1756
1756
  /**
1757
1757
  * Border Radius End
1758
1758
  * @see https://tailwindcss.com/docs/border-radius
1759
1759
  */
1760
1760
  "rounded-e": [{
1761
- "rounded-e": w()
1761
+ "rounded-e": x()
1762
1762
  }],
1763
1763
  /**
1764
1764
  * Border Radius Top
1765
1765
  * @see https://tailwindcss.com/docs/border-radius
1766
1766
  */
1767
1767
  "rounded-t": [{
1768
- "rounded-t": w()
1768
+ "rounded-t": x()
1769
1769
  }],
1770
1770
  /**
1771
1771
  * Border Radius Right
1772
1772
  * @see https://tailwindcss.com/docs/border-radius
1773
1773
  */
1774
1774
  "rounded-r": [{
1775
- "rounded-r": w()
1775
+ "rounded-r": x()
1776
1776
  }],
1777
1777
  /**
1778
1778
  * Border Radius Bottom
1779
1779
  * @see https://tailwindcss.com/docs/border-radius
1780
1780
  */
1781
1781
  "rounded-b": [{
1782
- "rounded-b": w()
1782
+ "rounded-b": x()
1783
1783
  }],
1784
1784
  /**
1785
1785
  * Border Radius Left
1786
1786
  * @see https://tailwindcss.com/docs/border-radius
1787
1787
  */
1788
1788
  "rounded-l": [{
1789
- "rounded-l": w()
1789
+ "rounded-l": x()
1790
1790
  }],
1791
1791
  /**
1792
1792
  * Border Radius Start Start
1793
1793
  * @see https://tailwindcss.com/docs/border-radius
1794
1794
  */
1795
1795
  "rounded-ss": [{
1796
- "rounded-ss": w()
1796
+ "rounded-ss": x()
1797
1797
  }],
1798
1798
  /**
1799
1799
  * Border Radius Start End
1800
1800
  * @see https://tailwindcss.com/docs/border-radius
1801
1801
  */
1802
1802
  "rounded-se": [{
1803
- "rounded-se": w()
1803
+ "rounded-se": x()
1804
1804
  }],
1805
1805
  /**
1806
1806
  * Border Radius End End
1807
1807
  * @see https://tailwindcss.com/docs/border-radius
1808
1808
  */
1809
1809
  "rounded-ee": [{
1810
- "rounded-ee": w()
1810
+ "rounded-ee": x()
1811
1811
  }],
1812
1812
  /**
1813
1813
  * Border Radius End Start
1814
1814
  * @see https://tailwindcss.com/docs/border-radius
1815
1815
  */
1816
1816
  "rounded-es": [{
1817
- "rounded-es": w()
1817
+ "rounded-es": x()
1818
1818
  }],
1819
1819
  /**
1820
1820
  * Border Radius Top Left
1821
1821
  * @see https://tailwindcss.com/docs/border-radius
1822
1822
  */
1823
1823
  "rounded-tl": [{
1824
- "rounded-tl": w()
1824
+ "rounded-tl": x()
1825
1825
  }],
1826
1826
  /**
1827
1827
  * Border Radius Top Right
1828
1828
  * @see https://tailwindcss.com/docs/border-radius
1829
1829
  */
1830
1830
  "rounded-tr": [{
1831
- "rounded-tr": w()
1831
+ "rounded-tr": x()
1832
1832
  }],
1833
1833
  /**
1834
1834
  * Border Radius Bottom Right
1835
1835
  * @see https://tailwindcss.com/docs/border-radius
1836
1836
  */
1837
1837
  "rounded-br": [{
1838
- "rounded-br": w()
1838
+ "rounded-br": x()
1839
1839
  }],
1840
1840
  /**
1841
1841
  * Border Radius Bottom Left
1842
1842
  * @see https://tailwindcss.com/docs/border-radius
1843
1843
  */
1844
1844
  "rounded-bl": [{
1845
- "rounded-bl": w()
1845
+ "rounded-bl": x()
1846
1846
  }],
1847
1847
  /**
1848
1848
  * Border Width
1849
1849
  * @see https://tailwindcss.com/docs/border-width
1850
1850
  */
1851
1851
  "border-w": [{
1852
- border: A()
1852
+ border: M()
1853
1853
  }],
1854
1854
  /**
1855
1855
  * Border Width Inline
1856
1856
  * @see https://tailwindcss.com/docs/border-width
1857
1857
  */
1858
1858
  "border-w-x": [{
1859
- "border-x": A()
1859
+ "border-x": M()
1860
1860
  }],
1861
1861
  /**
1862
1862
  * Border Width Block
1863
1863
  * @see https://tailwindcss.com/docs/border-width
1864
1864
  */
1865
1865
  "border-w-y": [{
1866
- "border-y": A()
1866
+ "border-y": M()
1867
1867
  }],
1868
1868
  /**
1869
1869
  * Border Width Inline Start
1870
1870
  * @see https://tailwindcss.com/docs/border-width
1871
1871
  */
1872
1872
  "border-w-s": [{
1873
- "border-s": A()
1873
+ "border-s": M()
1874
1874
  }],
1875
1875
  /**
1876
1876
  * Border Width Inline End
1877
1877
  * @see https://tailwindcss.com/docs/border-width
1878
1878
  */
1879
1879
  "border-w-e": [{
1880
- "border-e": A()
1880
+ "border-e": M()
1881
1881
  }],
1882
1882
  /**
1883
1883
  * Border Width Block Start
1884
1884
  * @see https://tailwindcss.com/docs/border-width
1885
1885
  */
1886
1886
  "border-w-bs": [{
1887
- "border-bs": A()
1887
+ "border-bs": M()
1888
1888
  }],
1889
1889
  /**
1890
1890
  * Border Width Block End
1891
1891
  * @see https://tailwindcss.com/docs/border-width
1892
1892
  */
1893
1893
  "border-w-be": [{
1894
- "border-be": A()
1894
+ "border-be": M()
1895
1895
  }],
1896
1896
  /**
1897
1897
  * Border Width Top
1898
1898
  * @see https://tailwindcss.com/docs/border-width
1899
1899
  */
1900
1900
  "border-w-t": [{
1901
- "border-t": A()
1901
+ "border-t": M()
1902
1902
  }],
1903
1903
  /**
1904
1904
  * Border Width Right
1905
1905
  * @see https://tailwindcss.com/docs/border-width
1906
1906
  */
1907
1907
  "border-w-r": [{
1908
- "border-r": A()
1908
+ "border-r": M()
1909
1909
  }],
1910
1910
  /**
1911
1911
  * Border Width Bottom
1912
1912
  * @see https://tailwindcss.com/docs/border-width
1913
1913
  */
1914
1914
  "border-w-b": [{
1915
- "border-b": A()
1915
+ "border-b": M()
1916
1916
  }],
1917
1917
  /**
1918
1918
  * Border Width Left
1919
1919
  * @see https://tailwindcss.com/docs/border-width
1920
1920
  */
1921
1921
  "border-w-l": [{
1922
- "border-l": A()
1922
+ "border-l": M()
1923
1923
  }],
1924
1924
  /**
1925
1925
  * Divide Width X
1926
1926
  * @see https://tailwindcss.com/docs/border-width#between-children
1927
1927
  */
1928
1928
  "divide-x": [{
1929
- "divide-x": A()
1929
+ "divide-x": M()
1930
1930
  }],
1931
1931
  /**
1932
1932
  * Divide Width X Reverse
@@ -1938,7 +1938,7 @@ const ur = (e, o) => {
1938
1938
  * @see https://tailwindcss.com/docs/border-width#between-children
1939
1939
  */
1940
1940
  "divide-y": [{
1941
- "divide-y": A()
1941
+ "divide-y": M()
1942
1942
  }],
1943
1943
  /**
1944
1944
  * Divide Width Y Reverse
@@ -2062,7 +2062,7 @@ const ur = (e, o) => {
2062
2062
  * @see https://tailwindcss.com/docs/outline-width
2063
2063
  */
2064
2064
  "outline-w": [{
2065
- outline: ["", p, te, J]
2065
+ outline: ["", p, re, J]
2066
2066
  }],
2067
2067
  /**
2068
2068
  * Outline Color
@@ -2083,7 +2083,7 @@ const ur = (e, o) => {
2083
2083
  // Deprecated since Tailwind CSS v4.0.0
2084
2084
  "",
2085
2085
  "none",
2086
- z,
2086
+ S,
2087
2087
  de,
2088
2088
  ce
2089
2089
  ]
@@ -2100,7 +2100,7 @@ const ur = (e, o) => {
2100
2100
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2101
2101
  */
2102
2102
  "inset-shadow": [{
2103
- "inset-shadow": ["none", S, de, ce]
2103
+ "inset-shadow": ["none", A, de, ce]
2104
2104
  }],
2105
2105
  /**
2106
2106
  * Inset Box Shadow Color
@@ -2114,7 +2114,7 @@ const ur = (e, o) => {
2114
2114
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2115
2115
  */
2116
2116
  "ring-w": [{
2117
- ring: A()
2117
+ ring: M()
2118
2118
  }],
2119
2119
  /**
2120
2120
  * Ring Width Inset
@@ -2153,7 +2153,7 @@ const ur = (e, o) => {
2153
2153
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2154
2154
  */
2155
2155
  "inset-ring-w": [{
2156
- "inset-ring": A()
2156
+ "inset-ring": M()
2157
2157
  }],
2158
2158
  /**
2159
2159
  * Inset Ring Color
@@ -2167,7 +2167,7 @@ const ur = (e, o) => {
2167
2167
  * @see https://tailwindcss.com/docs/text-shadow
2168
2168
  */
2169
2169
  "text-shadow": [{
2170
- "text-shadow": ["none", P, de, ce]
2170
+ "text-shadow": ["none", G, de, ce]
2171
2171
  }],
2172
2172
  /**
2173
2173
  * Text Shadow Color
@@ -2219,10 +2219,10 @@ const ur = (e, o) => {
2219
2219
  "mask-linear": [p]
2220
2220
  }],
2221
2221
  "mask-image-linear-from-pos": [{
2222
- "mask-linear-from": G()
2222
+ "mask-linear-from": T()
2223
2223
  }],
2224
2224
  "mask-image-linear-to-pos": [{
2225
- "mask-linear-to": G()
2225
+ "mask-linear-to": T()
2226
2226
  }],
2227
2227
  "mask-image-linear-from-color": [{
2228
2228
  "mask-linear-from": c()
@@ -2231,10 +2231,10 @@ const ur = (e, o) => {
2231
2231
  "mask-linear-to": c()
2232
2232
  }],
2233
2233
  "mask-image-t-from-pos": [{
2234
- "mask-t-from": G()
2234
+ "mask-t-from": T()
2235
2235
  }],
2236
2236
  "mask-image-t-to-pos": [{
2237
- "mask-t-to": G()
2237
+ "mask-t-to": T()
2238
2238
  }],
2239
2239
  "mask-image-t-from-color": [{
2240
2240
  "mask-t-from": c()
@@ -2243,10 +2243,10 @@ const ur = (e, o) => {
2243
2243
  "mask-t-to": c()
2244
2244
  }],
2245
2245
  "mask-image-r-from-pos": [{
2246
- "mask-r-from": G()
2246
+ "mask-r-from": T()
2247
2247
  }],
2248
2248
  "mask-image-r-to-pos": [{
2249
- "mask-r-to": G()
2249
+ "mask-r-to": T()
2250
2250
  }],
2251
2251
  "mask-image-r-from-color": [{
2252
2252
  "mask-r-from": c()
@@ -2255,10 +2255,10 @@ const ur = (e, o) => {
2255
2255
  "mask-r-to": c()
2256
2256
  }],
2257
2257
  "mask-image-b-from-pos": [{
2258
- "mask-b-from": G()
2258
+ "mask-b-from": T()
2259
2259
  }],
2260
2260
  "mask-image-b-to-pos": [{
2261
- "mask-b-to": G()
2261
+ "mask-b-to": T()
2262
2262
  }],
2263
2263
  "mask-image-b-from-color": [{
2264
2264
  "mask-b-from": c()
@@ -2267,10 +2267,10 @@ const ur = (e, o) => {
2267
2267
  "mask-b-to": c()
2268
2268
  }],
2269
2269
  "mask-image-l-from-pos": [{
2270
- "mask-l-from": G()
2270
+ "mask-l-from": T()
2271
2271
  }],
2272
2272
  "mask-image-l-to-pos": [{
2273
- "mask-l-to": G()
2273
+ "mask-l-to": T()
2274
2274
  }],
2275
2275
  "mask-image-l-from-color": [{
2276
2276
  "mask-l-from": c()
@@ -2279,10 +2279,10 @@ const ur = (e, o) => {
2279
2279
  "mask-l-to": c()
2280
2280
  }],
2281
2281
  "mask-image-x-from-pos": [{
2282
- "mask-x-from": G()
2282
+ "mask-x-from": T()
2283
2283
  }],
2284
2284
  "mask-image-x-to-pos": [{
2285
- "mask-x-to": G()
2285
+ "mask-x-to": T()
2286
2286
  }],
2287
2287
  "mask-image-x-from-color": [{
2288
2288
  "mask-x-from": c()
@@ -2291,10 +2291,10 @@ const ur = (e, o) => {
2291
2291
  "mask-x-to": c()
2292
2292
  }],
2293
2293
  "mask-image-y-from-pos": [{
2294
- "mask-y-from": G()
2294
+ "mask-y-from": T()
2295
2295
  }],
2296
2296
  "mask-image-y-to-pos": [{
2297
- "mask-y-to": G()
2297
+ "mask-y-to": T()
2298
2298
  }],
2299
2299
  "mask-image-y-from-color": [{
2300
2300
  "mask-y-from": c()
@@ -2306,10 +2306,10 @@ const ur = (e, o) => {
2306
2306
  "mask-radial": [l, i]
2307
2307
  }],
2308
2308
  "mask-image-radial-from-pos": [{
2309
- "mask-radial-from": G()
2309
+ "mask-radial-from": T()
2310
2310
  }],
2311
2311
  "mask-image-radial-to-pos": [{
2312
- "mask-radial-to": G()
2312
+ "mask-radial-to": T()
2313
2313
  }],
2314
2314
  "mask-image-radial-from-color": [{
2315
2315
  "mask-radial-from": c()
@@ -2333,10 +2333,10 @@ const ur = (e, o) => {
2333
2333
  "mask-conic": [p]
2334
2334
  }],
2335
2335
  "mask-image-conic-from-pos": [{
2336
- "mask-conic-from": G()
2336
+ "mask-conic-from": T()
2337
2337
  }],
2338
2338
  "mask-image-conic-to-pos": [{
2339
- "mask-conic-to": G()
2339
+ "mask-conic-to": T()
2340
2340
  }],
2341
2341
  "mask-image-conic-from-color": [{
2342
2342
  "mask-conic-from": c()
@@ -2370,7 +2370,7 @@ const ur = (e, o) => {
2370
2370
  * @see https://tailwindcss.com/docs/mask-repeat
2371
2371
  */
2372
2372
  "mask-repeat": [{
2373
- mask: L()
2373
+ mask: E()
2374
2374
  }],
2375
2375
  /**
2376
2376
  * Mask Size
@@ -2439,7 +2439,7 @@ const ur = (e, o) => {
2439
2439
  // Deprecated since Tailwind CSS v4.0.0
2440
2440
  "",
2441
2441
  "none",
2442
- x,
2442
+ C,
2443
2443
  de,
2444
2444
  ce
2445
2445
  ]
@@ -2636,7 +2636,7 @@ const ur = (e, o) => {
2636
2636
  * @see https://tailwindcss.com/docs/transition-timing-function
2637
2637
  */
2638
2638
  ease: [{
2639
- ease: ["linear", "initial", O, l, i]
2639
+ ease: ["linear", "initial", I, l, i]
2640
2640
  }],
2641
2641
  /**
2642
2642
  * Transition Delay
@@ -2650,7 +2650,7 @@ const ur = (e, o) => {
2650
2650
  * @see https://tailwindcss.com/docs/animation
2651
2651
  */
2652
2652
  animate: [{
2653
- animate: ["none", N, l, i]
2653
+ animate: ["none", j, l, i]
2654
2654
  }],
2655
2655
  // ------------------
2656
2656
  // --- Transforms ---
@@ -2667,14 +2667,14 @@ const ur = (e, o) => {
2667
2667
  * @see https://tailwindcss.com/docs/perspective
2668
2668
  */
2669
2669
  perspective: [{
2670
- perspective: [v, l, i]
2670
+ perspective: [w, l, i]
2671
2671
  }],
2672
2672
  /**
2673
2673
  * Perspective Origin
2674
2674
  * @see https://tailwindcss.com/docs/perspective-origin
2675
2675
  */
2676
2676
  "perspective-origin": [{
2677
- "perspective-origin": R()
2677
+ "perspective-origin": N()
2678
2678
  }],
2679
2679
  /**
2680
2680
  * Rotate
@@ -2770,7 +2770,7 @@ const ur = (e, o) => {
2770
2770
  * @see https://tailwindcss.com/docs/transform-origin
2771
2771
  */
2772
2772
  "transform-origin": [{
2773
- origin: R()
2773
+ origin: N()
2774
2774
  }],
2775
2775
  /**
2776
2776
  * Transform Style
@@ -3115,7 +3115,7 @@ const ur = (e, o) => {
3115
3115
  * @see https://tailwindcss.com/docs/stroke-width
3116
3116
  */
3117
3117
  "stroke-w": [{
3118
- stroke: [p, te, J, Te]
3118
+ stroke: [p, re, J, Te]
3119
3119
  }],
3120
3120
  /**
3121
3121
  * Stroke
@@ -3190,27 +3190,27 @@ const ur = (e, o) => {
3190
3190
  },
3191
3191
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3192
3192
  };
3193
- }, Hr = (e, {
3193
+ }, Ht = (e, {
3194
3194
  cacheSize: o,
3195
- prefix: t,
3196
- experimentalParseClassName: r,
3195
+ prefix: r,
3196
+ experimentalParseClassName: t,
3197
3197
  extend: n = {},
3198
3198
  override: s = {}
3199
- }) => (oe(e, "cacheSize", o), oe(e, "prefix", t), oe(e, "experimentalParseClassName", r), ue(e.theme, s.theme), ue(e.classGroups, s.classGroups), ue(e.conflictingClassGroups, s.conflictingClassGroups), ue(e.conflictingClassGroupModifiers, s.conflictingClassGroupModifiers), oe(e, "orderSensitiveModifiers", s.orderSensitiveModifiers), me(e.theme, n.theme), me(e.classGroups, n.classGroups), me(e.conflictingClassGroups, n.conflictingClassGroups), me(e.conflictingClassGroupModifiers, n.conflictingClassGroupModifiers), qe(e, n, "orderSensitiveModifiers"), e), oe = (e, o, t) => {
3200
- t !== void 0 && (e[o] = t);
3199
+ }) => (oe(e, "cacheSize", o), oe(e, "prefix", r), oe(e, "experimentalParseClassName", t), ue(e.theme, s.theme), ue(e.classGroups, s.classGroups), ue(e.conflictingClassGroups, s.conflictingClassGroups), ue(e.conflictingClassGroupModifiers, s.conflictingClassGroupModifiers), oe(e, "orderSensitiveModifiers", s.orderSensitiveModifiers), me(e.theme, n.theme), me(e.classGroups, n.classGroups), me(e.conflictingClassGroups, n.conflictingClassGroups), me(e.conflictingClassGroupModifiers, n.conflictingClassGroupModifiers), qe(e, n, "orderSensitiveModifiers"), e), oe = (e, o, r) => {
3200
+ r !== void 0 && (e[o] = r);
3201
3201
  }, ue = (e, o) => {
3202
3202
  if (o)
3203
- for (const t in o)
3204
- oe(e, t, o[t]);
3203
+ for (const r in o)
3204
+ oe(e, r, o[r]);
3205
3205
  }, me = (e, o) => {
3206
3206
  if (o)
3207
- for (const t in o)
3208
- qe(e, o, t);
3209
- }, qe = (e, o, t) => {
3210
- const r = o[t];
3211
- r !== void 0 && (e[t] = e[t] ? e[t].concat(r) : r);
3212
- }, Qr = (e, ...o) => typeof e == "function" ? ve(ke, e, ...o) : ve(() => Hr(ke(), e), ...o), Xe = /* @__PURE__ */ ve(ke);
3213
- var Zr = (e) => j(e) ? Xe : Qr({
3207
+ for (const r in o)
3208
+ qe(e, o, r);
3209
+ }, qe = (e, o, r) => {
3210
+ const t = o[r];
3211
+ t !== void 0 && (e[r] = e[r] ? e[r].concat(t) : t);
3212
+ }, Qt = (e, ...o) => typeof e == "function" ? ve(ke, e, ...o) : ve(() => Ht(ke(), e), ...o), Xe = /* @__PURE__ */ ve(ke);
3213
+ var Zt = (e) => L(e) ? Xe : Qt({
3214
3214
  ...e,
3215
3215
  extend: {
3216
3216
  theme: e.theme,
@@ -3219,31 +3219,31 @@ var Zr = (e) => j(e) ? Xe : Qr({
3219
3219
  conflictingClassGroups: e.conflictingClassGroups,
3220
3220
  ...e.extend
3221
3221
  }
3222
- }), et = (e, o) => {
3223
- const t = fe(e);
3224
- return !t || !(o?.twMerge ?? !0) ? t : ((!U.cachedTwMerge || U.didTwMergeConfigChange) && (U.didTwMergeConfigChange = !1, U.cachedTwMerge = Zr(U.cachedTwMergeConfig)), U.cachedTwMerge(t) || void 0);
3225
- }, rt = (...e) => (o) => et(e, o), { tv: tt } = dr(rt);
3226
- const Je = tr(void 0);
3227
- function ot() {
3228
- return or(Je);
3222
+ }), er = (e, o) => {
3223
+ const r = fe(e);
3224
+ return !r || !(o?.twMerge ?? !0) ? r : ((!U.cachedTwMerge || U.didTwMergeConfigChange) && (U.didTwMergeConfigChange = !1, U.cachedTwMerge = Zt(U.cachedTwMergeConfig)), U.cachedTwMerge(r) || void 0);
3225
+ }, tr = (...e) => (o) => er(e, o), { tv: rr } = dt(tr);
3226
+ const Je = rt(void 0);
3227
+ function or() {
3228
+ return ot(Je);
3229
3229
  }
3230
3230
  function He(e) {
3231
- var o, t, r = "";
3232
- if (typeof e == "string" || typeof e == "number") r += e;
3231
+ var o, r, t = "";
3232
+ if (typeof e == "string" || typeof e == "number") t += e;
3233
3233
  else if (typeof e == "object") if (Array.isArray(e)) {
3234
3234
  var n = e.length;
3235
- for (o = 0; o < n; o++) e[o] && (t = He(e[o])) && (r && (r += " "), r += t);
3236
- } else for (t in e) e[t] && (r && (r += " "), r += t);
3237
- return r;
3235
+ for (o = 0; o < n; o++) e[o] && (r = He(e[o])) && (t && (t += " "), t += r);
3236
+ } else for (r in e) e[r] && (t && (t += " "), t += r);
3237
+ return t;
3238
3238
  }
3239
- function st() {
3240
- for (var e, o, t = 0, r = "", n = arguments.length; t < n; t++) (e = arguments[t]) && (o = He(e)) && (r && (r += " "), r += o);
3241
- return r;
3239
+ function sr() {
3240
+ for (var e, o, r = 0, t = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (o = He(e)) && (t && (t += " "), t += o);
3241
+ return t;
3242
3242
  }
3243
- function nt(...e) {
3244
- return Xe(st(e));
3243
+ function nr(...e) {
3244
+ return Xe(sr(e));
3245
3245
  }
3246
- const at = tt({
3246
+ const ar = rr({
3247
3247
  base: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
3248
3248
  defaultVariants: {
3249
3249
  size: "md",
@@ -3270,60 +3270,62 @@ const at = tt({
3270
3270
  }
3271
3271
  }
3272
3272
  });
3273
- function ut(e) {
3273
+ function ur(e) {
3274
3274
  const {
3275
3275
  form: o,
3276
- type: t = "button",
3277
- size: r,
3276
+ type: r = "button",
3277
+ size: t,
3278
3278
  variant: n,
3279
3279
  leftSection: s,
3280
3280
  rightSection: a,
3281
3281
  block: m,
3282
3282
  loading: d,
3283
3283
  disabled: g,
3284
- asChild: z,
3285
- onClick: S,
3286
- children: P
3287
- } = e, x = ot(), T = x?.button?.defaultProps, v = {
3288
- asChild: z ?? T?.asChild ?? !1,
3289
- block: m ?? T?.block ?? !1,
3290
- disabled: g ?? T?.disabled ?? !1,
3291
- loading: d ?? T?.loading ?? !1,
3292
- size: r ?? T?.size ?? "md",
3293
- variant: n ?? T?.variant ?? "default"
3294
- }, M = v.asChild ? er : "button", O = v.disabled || v.loading, N = x?.button?.classNames;
3284
+ asChild: S,
3285
+ onClick: A,
3286
+ children: G
3287
+ } = e, C = or(), P = C?.components?.button?.classNames, w = C?.components?.button?.defaultProps, v = {
3288
+ asChild: S ?? w?.asChild ?? !1,
3289
+ block: m ?? w?.block ?? !1,
3290
+ disabled: g ?? w?.disabled ?? !1,
3291
+ form: o ?? w?.form ?? void 0,
3292
+ loading: d ?? w?.loading ?? !1,
3293
+ size: t ?? w?.size ?? "md",
3294
+ type: r ?? w?.type ?? "button",
3295
+ variant: n ?? w?.variant ?? "default"
3296
+ }, I = v.asChild ? et : "button", j = v.disabled || v.loading;
3295
3297
  return /* @__PURE__ */ Z(
3296
- M,
3298
+ I,
3297
3299
  {
3298
- className: nt(
3299
- at({
3300
+ className: nr(
3301
+ ar({
3300
3302
  block: v.block,
3301
3303
  size: v.size,
3302
3304
  variant: v.variant
3303
3305
  }),
3304
- N?.root
3306
+ P?.root
3305
3307
  ),
3306
- disabled: O,
3307
- form: v.asChild ? void 0 : o,
3308
- onClick: S,
3309
- type: v.asChild ? void 0 : t,
3310
- children: v.loading ? /* @__PURE__ */ Z("span", { className: N?.loading, children: /* @__PURE__ */ Z(rr, { className: "animate-spin" }) }) : /* @__PURE__ */ Qe(Ze, { children: [
3311
- s && /* @__PURE__ */ Z("span", { className: N?.leftSection, children: s }),
3312
- P,
3313
- a && /* @__PURE__ */ Z("span", { className: N?.rightSection, children: a })
3308
+ disabled: j,
3309
+ form: v.form,
3310
+ onClick: A,
3311
+ type: v.type,
3312
+ children: v.loading ? /* @__PURE__ */ Z("div", { className: P?.loading, children: /* @__PURE__ */ Z(tt, { className: "animate-spin" }) }) : /* @__PURE__ */ Qe(Ze, { children: [
3313
+ s && /* @__PURE__ */ Z("div", { className: P?.leftSection, children: s }),
3314
+ G,
3315
+ a && /* @__PURE__ */ Z("div", { className: P?.rightSection, children: a })
3314
3316
  ] })
3315
3317
  }
3316
3318
  );
3317
3319
  }
3318
- function mt({
3320
+ function mr({
3319
3321
  children: e,
3320
3322
  ...o
3321
3323
  }) {
3322
3324
  return /* @__PURE__ */ Z(Je.Provider, { value: o, children: e });
3323
3325
  }
3324
3326
  export {
3325
- ut as Button,
3327
+ ur as Button,
3326
3328
  Je as TuryStackContext,
3327
- mt as TuryStackProvider,
3328
- ot as useTuryStack
3329
+ mr as TuryStackProvider,
3330
+ or as useTuryStack
3329
3331
  };