@srimandir/common 2.11.0 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/common.js CHANGED
@@ -1,16 +1,15 @@
1
1
  import { jsx as I, jsxs as Ve } from "react/jsx-runtime";
2
2
  import { useEffect as We, createContext as $e, useContext as Ue } from "react";
3
- import { createPortal as De } from "react-dom";
4
- const Ke = "_overlay_1m4co_3", He = "_sheet_1m4co_14", Je = "_handle_1m4co_66", Ye = "_closeBtn_1m4co_75", Ze = "_closeBtnOutside_1m4co_95", Xe = "_header_1m4co_107", Qe = "_body_1m4co_25", qe = "_footer_1m4co_119", N = {
5
- overlay: Ke,
6
- sheet: He,
7
- handle: Je,
8
- closeBtn: Ye,
9
- closeBtnOutside: Ze,
10
- header: Xe,
11
- body: Qe,
12
- footer: qe
13
- }, se = (...e) => e.filter(Boolean).join(" "), eo = () => /* @__PURE__ */ I("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ I(
3
+ const De = "_overlay_1m4co_3", Ke = "_sheet_1m4co_14", He = "_handle_1m4co_66", Je = "_closeBtn_1m4co_75", Ye = "_closeBtnOutside_1m4co_95", Ze = "_header_1m4co_107", Xe = "_body_1m4co_25", Qe = "_footer_1m4co_119", N = {
4
+ overlay: De,
5
+ sheet: Ke,
6
+ handle: He,
7
+ closeBtn: Je,
8
+ closeBtnOutside: Ye,
9
+ header: Ze,
10
+ body: Xe,
11
+ footer: Qe
12
+ }, se = (...e) => e.filter(Boolean).join(" "), qe = () => /* @__PURE__ */ I("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ I(
14
13
  "path",
15
14
  {
16
15
  d: "M12 4L4 12M4 4l8 8",
@@ -18,7 +17,7 @@ const Ke = "_overlay_1m4co_3", He = "_sheet_1m4co_14", Je = "_handle_1m4co_66",
18
17
  strokeWidth: "1.8",
19
18
  strokeLinecap: "round"
20
19
  }
21
- ) }), Xo = ({
20
+ ) }), Yo = ({
22
21
  isOpen: e,
23
22
  onClose: r,
24
23
  children: t,
@@ -30,7 +29,7 @@ const Ke = "_overlay_1m4co_3", He = "_sheet_1m4co_14", Je = "_handle_1m4co_66",
30
29
  closeOnBackdropClick: b = !0,
31
30
  closeOnEscape: m = !0,
32
31
  lockBodyScroll: f = !0,
33
- ariaLabel: y,
32
+ ariaLabel: w,
34
33
  className: P = "",
35
34
  overlayClassName: A = "",
36
35
  "data-testid": _
@@ -44,45 +43,42 @@ const Ke = "_overlay_1m4co_3", He = "_sheet_1m4co_14", Je = "_handle_1m4co_66",
44
43
  return f && (document.body.style.overflow = "hidden"), () => {
45
44
  m && document.removeEventListener("keydown", g), f && (document.body.style.overflow = v);
46
45
  };
47
- }, [e, r, m, f]), !e || typeof document > "u" ? null : De(
48
- /* @__PURE__ */ I(
49
- "div",
50
- {
51
- className: se(N.overlay, A),
52
- role: "presentation",
53
- onClick: (g) => {
54
- b && g.target === g.currentTarget && r();
55
- },
56
- children: /* @__PURE__ */ Ve(
57
- "div",
58
- {
59
- className: se(N.sheet, P),
60
- role: "dialog",
61
- "aria-modal": "true",
62
- "aria-label": y,
63
- "data-testid": _,
64
- children: [
65
- u && /* @__PURE__ */ I("div", { className: N.handle, "aria-hidden": "true" }),
66
- d && /* @__PURE__ */ I(
67
- "button",
68
- {
69
- type: "button",
70
- className: se(N.closeBtn, l && N.closeBtnOutside),
71
- onClick: r,
72
- "aria-label": "Close",
73
- children: /* @__PURE__ */ I(eo, {})
74
- }
75
- ),
76
- o && /* @__PURE__ */ I("div", { className: N.header, children: o }),
77
- /* @__PURE__ */ I("div", { className: N.body, children: t }),
78
- a && /* @__PURE__ */ I("div", { className: N.footer, children: a })
79
- ]
80
- }
81
- )
82
- }
83
- ),
84
- document.body
85
- ));
46
+ }, [e, r, m, f]), e ? /* @__PURE__ */ I(
47
+ "div",
48
+ {
49
+ className: se(N.overlay, A),
50
+ role: "presentation",
51
+ onClick: (g) => {
52
+ b && g.target === g.currentTarget && r();
53
+ },
54
+ children: /* @__PURE__ */ Ve(
55
+ "div",
56
+ {
57
+ className: se(N.sheet, P),
58
+ role: "dialog",
59
+ "aria-modal": "true",
60
+ "aria-label": w,
61
+ "data-testid": _,
62
+ children: [
63
+ u && /* @__PURE__ */ I("div", { className: N.handle, "aria-hidden": "true" }),
64
+ d && /* @__PURE__ */ I(
65
+ "button",
66
+ {
67
+ type: "button",
68
+ className: se(N.closeBtn, l && N.closeBtnOutside),
69
+ onClick: r,
70
+ "aria-label": "Close",
71
+ children: /* @__PURE__ */ I(qe, {})
72
+ }
73
+ ),
74
+ o && /* @__PURE__ */ I("div", { className: N.header, children: o }),
75
+ /* @__PURE__ */ I("div", { className: N.body, children: t }),
76
+ a && /* @__PURE__ */ I("div", { className: N.footer, children: a })
77
+ ]
78
+ }
79
+ )
80
+ }
81
+ ) : null);
86
82
  function ze(e) {
87
83
  var r, t, o = "";
88
84
  if (typeof e == "string" || typeof e == "number") o += e;
@@ -92,40 +88,40 @@ function ze(e) {
92
88
  } else for (t in e) e[t] && (o && (o += " "), o += t);
93
89
  return o;
94
90
  }
95
- function oo() {
91
+ function eo() {
96
92
  for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = ze(e)) && (o && (o += " "), o += r);
97
93
  return o;
98
94
  }
99
- const to = (e, r) => {
95
+ const oo = (e, r) => {
100
96
  const t = new Array(e.length + r.length);
101
97
  for (let o = 0; o < e.length; o++)
102
98
  t[o] = e[o];
103
99
  for (let o = 0; o < r.length; o++)
104
100
  t[e.length + o] = r[o];
105
101
  return t;
106
- }, ro = (e, r) => ({
102
+ }, to = (e, r) => ({
107
103
  classGroupId: e,
108
104
  validator: r
109
105
  }), Ae = (e = /* @__PURE__ */ new Map(), r = null, t) => ({
110
106
  nextPart: e,
111
107
  validators: r,
112
108
  classGroupId: t
113
- }), q = "-", xe = [], no = "arbitrary..", so = (e) => {
114
- const r = io(e), {
109
+ }), q = "-", xe = [], ro = "arbitrary..", no = (e) => {
110
+ const r = ao(e), {
115
111
  conflictingClassGroups: t,
116
112
  conflictingClassGroupModifiers: o
117
113
  } = e;
118
114
  return {
119
115
  getClassGroupId: (l) => {
120
116
  if (l.startsWith("[") && l.endsWith("]"))
121
- return ao(l);
117
+ return so(l);
122
118
  const u = l.split(q), b = u[0] === "" && u.length > 1 ? 1 : 0;
123
119
  return Se(u, b, r);
124
120
  },
125
121
  getConflictingClassGroupIds: (l, u) => {
126
122
  if (u) {
127
123
  const b = o[l], m = t[l];
128
- return b ? m ? to(m, b) : b : m || xe;
124
+ return b ? m ? oo(m, b) : b : m || xe;
129
125
  }
130
126
  return t[l] || xe;
131
127
  }
@@ -147,16 +143,16 @@ const to = (e, r) => {
147
143
  if (f.validator(u))
148
144
  return f.classGroupId;
149
145
  }
150
- }, ao = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
146
+ }, so = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
151
147
  const r = e.slice(1, -1), t = r.indexOf(":"), o = r.slice(0, t);
152
- return o ? no + o : void 0;
153
- })(), io = (e) => {
148
+ return o ? ro + o : void 0;
149
+ })(), ao = (e) => {
154
150
  const {
155
151
  theme: r,
156
152
  classGroups: t
157
153
  } = e;
158
- return lo(t, r);
159
- }, lo = (e, r) => {
154
+ return io(t, r);
155
+ }, io = (e, r) => {
160
156
  const t = Ae();
161
157
  for (const o in e) {
162
158
  const a = e[o];
@@ -167,28 +163,28 @@ const to = (e, r) => {
167
163
  const a = e.length;
168
164
  for (let d = 0; d < a; d++) {
169
165
  const l = e[d];
170
- co(l, r, t, o);
166
+ lo(l, r, t, o);
171
167
  }
172
- }, co = (e, r, t, o) => {
168
+ }, lo = (e, r, t, o) => {
173
169
  if (typeof e == "string") {
174
- mo(e, r, t);
170
+ co(e, r, t);
175
171
  return;
176
172
  }
177
173
  if (typeof e == "function") {
178
- po(e, r, t, o);
174
+ mo(e, r, t, o);
179
175
  return;
180
176
  }
181
- uo(e, r, t, o);
182
- }, mo = (e, r, t) => {
177
+ po(e, r, t, o);
178
+ }, co = (e, r, t) => {
183
179
  const o = e === "" ? r : Le(r, e);
184
180
  o.classGroupId = t;
185
- }, po = (e, r, t, o) => {
186
- if (bo(e)) {
181
+ }, mo = (e, r, t, o) => {
182
+ if (uo(e)) {
187
183
  le(e(o), r, t, o);
188
184
  return;
189
185
  }
190
- r.validators === null && (r.validators = []), r.validators.push(ro(t, e));
191
- }, uo = (e, r, t, o) => {
186
+ r.validators === null && (r.validators = []), r.validators.push(to(t, e));
187
+ }, po = (e, r, t, o) => {
192
188
  const a = Object.entries(e), d = a.length;
193
189
  for (let l = 0; l < d; l++) {
194
190
  const [u, b] = a[l];
@@ -203,7 +199,7 @@ const to = (e, r) => {
203
199
  u || (u = Ae(), t.nextPart.set(l, u)), t = u;
204
200
  }
205
201
  return t;
206
- }, bo = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, fo = (e) => {
202
+ }, uo = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, bo = (e) => {
207
203
  if (e < 1)
208
204
  return {
209
205
  get: () => {
@@ -227,13 +223,13 @@ const to = (e, r) => {
227
223
  d in t ? t[d] = l : a(d, l);
228
224
  }
229
225
  };
230
- }, ie = "!", ye = ":", go = [], we = (e, r, t, o, a) => ({
226
+ }, ie = "!", we = ":", fo = [], ye = (e, r, t, o, a) => ({
231
227
  modifiers: e,
232
228
  hasImportantModifier: r,
233
229
  baseClassName: t,
234
230
  maybePostfixModifierPosition: o,
235
231
  isExternal: a
236
- }), ho = (e) => {
232
+ }), go = (e) => {
237
233
  const {
238
234
  prefix: r,
239
235
  experimentalParseClassName: t
@@ -245,7 +241,7 @@ const to = (e, r) => {
245
241
  for (let g = 0; g < f; g++) {
246
242
  const v = a[g];
247
243
  if (l === 0 && u === 0) {
248
- if (v === ye) {
244
+ if (v === we) {
249
245
  d.push(a.slice(b, g)), b = g + 1;
250
246
  continue;
251
247
  }
@@ -256,21 +252,21 @@ const to = (e, r) => {
256
252
  }
257
253
  v === "[" ? l++ : v === "]" ? l-- : v === "(" ? u++ : v === ")" && u--;
258
254
  }
259
- const y = d.length === 0 ? a : a.slice(b);
260
- let P = y, A = !1;
261
- y.endsWith(ie) ? (P = y.slice(0, -1), A = !0) : (
255
+ const w = d.length === 0 ? a : a.slice(b);
256
+ let P = w, A = !1;
257
+ w.endsWith(ie) ? (P = w.slice(0, -1), A = !0) : (
262
258
  /**
263
259
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
264
260
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
265
261
  */
266
- y.startsWith(ie) && (P = y.slice(1), A = !0)
262
+ w.startsWith(ie) && (P = w.slice(1), A = !0)
267
263
  );
268
264
  const _ = m && m > b ? m - b : void 0;
269
- return we(d, A, P, _);
265
+ return ye(d, A, P, _);
270
266
  };
271
267
  if (r) {
272
- const a = r + ye, d = o;
273
- o = (l) => l.startsWith(a) ? d(l.slice(a.length)) : we(go, !1, l, void 0, !0);
268
+ const a = r + we, d = o;
269
+ o = (l) => l.startsWith(a) ? d(l.slice(a.length)) : ye(fo, !1, l, void 0, !0);
274
270
  }
275
271
  if (t) {
276
272
  const a = o;
@@ -280,7 +276,7 @@ const to = (e, r) => {
280
276
  });
281
277
  }
282
278
  return o;
283
- }, xo = (e) => {
279
+ }, ho = (e) => {
284
280
  const r = /* @__PURE__ */ new Map();
285
281
  return e.orderSensitiveModifiers.forEach((t, o) => {
286
282
  r.set(t, 1e6 + o);
@@ -293,37 +289,37 @@ const to = (e, r) => {
293
289
  }
294
290
  return a.length > 0 && (a.sort(), o.push(...a)), o;
295
291
  };
296
- }, yo = (e) => ({
297
- cache: fo(e.cacheSize),
298
- parseClassName: ho(e),
299
- sortModifiers: xo(e),
292
+ }, xo = (e) => ({
293
+ cache: bo(e.cacheSize),
294
+ parseClassName: go(e),
295
+ sortModifiers: ho(e),
300
296
  postfixLookupClassGroupIds: wo(e),
301
- ...so(e)
297
+ ...no(e)
302
298
  }), wo = (e) => {
303
299
  const r = /* @__PURE__ */ Object.create(null), t = e.postfixLookupClassGroups;
304
300
  if (t)
305
301
  for (let o = 0; o < t.length; o++)
306
302
  r[t[o]] = !0;
307
303
  return r;
308
- }, ko = /\s+/, vo = (e, r) => {
304
+ }, yo = /\s+/, ko = (e, r) => {
309
305
  const {
310
306
  parseClassName: t,
311
307
  getClassGroupId: o,
312
308
  getConflictingClassGroupIds: a,
313
309
  sortModifiers: d,
314
310
  postfixLookupClassGroupIds: l
315
- } = r, u = [], b = e.trim().split(ko);
311
+ } = r, u = [], b = e.trim().split(yo);
316
312
  let m = "";
317
313
  for (let f = b.length - 1; f >= 0; f -= 1) {
318
- const y = b[f], {
314
+ const w = b[f], {
319
315
  isExternal: P,
320
316
  modifiers: A,
321
317
  hasImportantModifier: _,
322
318
  baseClassName: g,
323
319
  maybePostfixModifierPosition: v
324
- } = t(y);
320
+ } = t(w);
325
321
  if (P) {
326
- m = y + (m.length > 0 ? " " + m : m);
322
+ m = w + (m.length > 0 ? " " + m : m);
327
323
  continue;
328
324
  }
329
325
  let T = !!v, C;
@@ -336,11 +332,11 @@ const to = (e, r) => {
336
332
  C = o(g);
337
333
  if (!C) {
338
334
  if (!T) {
339
- m = y + (m.length > 0 ? " " + m : m);
335
+ m = w + (m.length > 0 ? " " + m : m);
340
336
  continue;
341
337
  }
342
338
  if (C = o(g), !C) {
343
- m = y + (m.length > 0 ? " " + m : m);
339
+ m = w + (m.length > 0 ? " " + m : m);
344
340
  continue;
345
341
  }
346
342
  T = !1;
@@ -354,10 +350,10 @@ const to = (e, r) => {
354
350
  const i = W[M];
355
351
  u.push(F + i);
356
352
  }
357
- m = y + (m.length > 0 ? " " + m : m);
353
+ m = w + (m.length > 0 ? " " + m : m);
358
354
  }
359
355
  return m;
360
- }, Co = (...e) => {
356
+ }, vo = (...e) => {
361
357
  let r = 0, t, o, a = "";
362
358
  for (; r < e.length; )
363
359
  (t = e[r++]) && (o = Ie(t)) && (a && (a += " "), a += o);
@@ -369,35 +365,35 @@ const to = (e, r) => {
369
365
  for (let o = 0; o < e.length; o++)
370
366
  e[o] && (r = Ie(e[o])) && (t && (t += " "), t += r);
371
367
  return t;
372
- }, zo = (e, ...r) => {
368
+ }, Co = (e, ...r) => {
373
369
  let t, o, a, d;
374
370
  const l = (b) => {
375
- const m = r.reduce((f, y) => y(f), e());
376
- return t = yo(m), o = t.cache.get, a = t.cache.set, d = u, u(b);
371
+ const m = r.reduce((f, w) => w(f), e());
372
+ return t = xo(m), o = t.cache.get, a = t.cache.set, d = u, u(b);
377
373
  }, u = (b) => {
378
374
  const m = o(b);
379
375
  if (m)
380
376
  return m;
381
- const f = vo(b, t);
377
+ const f = ko(b, t);
382
378
  return a(b, f), f;
383
379
  };
384
- return d = l, (...b) => d(Co(...b));
385
- }, Ao = [], h = (e) => {
386
- const r = (t) => t[e] || Ao;
380
+ return d = l, (...b) => d(vo(...b));
381
+ }, zo = [], h = (e) => {
382
+ const r = (t) => t[e] || zo;
387
383
  return r.isThemeGetter = !0, r;
388
- }, Pe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i, So = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Lo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Io = /\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$/, Po = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, To = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Mo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => So.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), L = (e) => !!e && Number.isInteger(Number(e)), ae = (e) => e.endsWith("%") && p(e.slice(0, -1)), R = (e) => Lo.test(e), Me = () => !0, Ro = (e) => (
384
+ }, Pe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ao = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, So = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Lo = /\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$/, Io = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Po = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, To = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => Ao.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), L = (e) => !!e && Number.isInteger(Number(e)), ae = (e) => e.endsWith("%") && p(e.slice(0, -1)), R = (e) => So.test(e), Me = () => !0, Mo = (e) => (
389
385
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
390
386
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
391
387
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
392
- Io.test(e) && !Po.test(e)
393
- ), ce = () => !1, No = (e) => To.test(e), Go = (e) => Mo.test(e), Eo = (e) => !n(e) && !s(e), _o = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Bo = (e) => E(e, Ge, ce), n = (e) => Pe.test(e), O = (e) => E(e, Ee, Ro), ke = (e) => E(e, Do, p), Oo = (e) => E(e, Be, Me), jo = (e) => E(e, _e, ce), ve = (e) => E(e, Re, ce), Fo = (e) => E(e, Ne, Go), X = (e) => E(e, Oe, No), s = (e) => Te.test(e), D = (e) => j(e, Ee), Vo = (e) => j(e, _e), Ce = (e) => j(e, Re), Wo = (e) => j(e, Ge), $o = (e) => j(e, Ne), Q = (e) => j(e, Oe, !0), Uo = (e) => j(e, Be, !0), E = (e, r, t) => {
388
+ Lo.test(e) && !Io.test(e)
389
+ ), ce = () => !1, Ro = (e) => Po.test(e), No = (e) => To.test(e), Go = (e) => !n(e) && !s(e), Eo = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), _o = (e) => E(e, Ge, ce), n = (e) => Pe.test(e), O = (e) => E(e, Ee, Mo), ke = (e) => E(e, Uo, p), Bo = (e) => E(e, Be, Me), Oo = (e) => E(e, _e, ce), ve = (e) => E(e, Re, ce), jo = (e) => E(e, Ne, No), X = (e) => E(e, Oe, Ro), s = (e) => Te.test(e), D = (e) => j(e, Ee), Fo = (e) => j(e, _e), Ce = (e) => j(e, Re), Vo = (e) => j(e, Ge), Wo = (e) => j(e, Ne), Q = (e) => j(e, Oe, !0), $o = (e) => j(e, Be, !0), E = (e, r, t) => {
394
390
  const o = Pe.exec(e);
395
391
  return o ? o[1] ? r(o[1]) : t(o[2]) : !1;
396
392
  }, j = (e, r, t = !1) => {
397
393
  const o = Te.exec(e);
398
394
  return o ? o[1] ? r(o[1]) : t : !1;
399
- }, Re = (e) => e === "position" || e === "percentage", Ne = (e) => e === "image" || e === "url", Ge = (e) => e === "length" || e === "size" || e === "bg-size", Ee = (e) => e === "length", Do = (e) => e === "number", _e = (e) => e === "family-name", Be = (e) => e === "number" || e === "weight", Oe = (e) => e === "shadow", Ko = () => {
400
- const e = h("color"), r = h("font"), t = h("text"), o = h("font-weight"), a = h("tracking"), d = h("leading"), l = h("breakpoint"), u = h("container"), b = h("spacing"), m = h("radius"), f = h("shadow"), y = h("inset-shadow"), P = h("text-shadow"), A = h("drop-shadow"), _ = h("blur"), g = h("perspective"), v = h("aspect"), T = h("ease"), C = h("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [
395
+ }, Re = (e) => e === "position" || e === "percentage", Ne = (e) => e === "image" || e === "url", Ge = (e) => e === "length" || e === "size" || e === "bg-size", Ee = (e) => e === "length", Uo = (e) => e === "number", _e = (e) => e === "family-name", Be = (e) => e === "number" || e === "weight", Oe = (e) => e === "shadow", Do = () => {
396
+ const e = h("color"), r = h("font"), t = h("text"), o = h("font-weight"), a = h("tracking"), d = h("leading"), l = h("breakpoint"), u = h("container"), b = h("spacing"), m = h("radius"), f = h("shadow"), w = h("inset-shadow"), P = h("text-shadow"), A = h("drop-shadow"), _ = h("blur"), g = h("perspective"), v = h("aspect"), T = h("ease"), C = h("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [
401
397
  "center",
402
398
  "top",
403
399
  "bottom",
@@ -421,9 +417,9 @@ const to = (e, r) => {
421
417
  position: [s, n]
422
418
  }], be = () => ["no-repeat", {
423
419
  repeat: ["", "x", "y", "space", "round"]
424
- }], fe = () => ["auto", "cover", "contain", Wo, Bo, {
420
+ }], fe = () => ["auto", "cover", "contain", Vo, _o, {
425
421
  size: [s, n]
426
- }], re = () => [ae, D, O], w = () => [
422
+ }], re = () => [ae, D, O], y = () => [
427
423
  // Deprecated since Tailwind CSS v4.0.0
428
424
  "",
429
425
  "none",
@@ -450,7 +446,7 @@ const to = (e, r) => {
450
446
  container: [R],
451
447
  "drop-shadow": [R],
452
448
  ease: ["in", "out", "in-out"],
453
- font: [Eo],
449
+ font: [Go],
454
450
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
455
451
  "inset-shadow": [R],
456
452
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -490,7 +486,7 @@ const to = (e, r) => {
490
486
  * Container Name
491
487
  * @see https://tailwindcss.com/docs/responsive-design#named-containers
492
488
  */
493
- "container-named": [_o],
489
+ "container-named": [Eo],
494
490
  /**
495
491
  * Columns
496
492
  * @see https://tailwindcss.com/docs/columns
@@ -1256,7 +1252,7 @@ const to = (e, r) => {
1256
1252
  * @see https://tailwindcss.com/docs/font-weight
1257
1253
  */
1258
1254
  "font-weight": [{
1259
- font: [o, Uo, Oo]
1255
+ font: [o, $o, Bo]
1260
1256
  }],
1261
1257
  /**
1262
1258
  * Font Stretch
@@ -1270,7 +1266,7 @@ const to = (e, r) => {
1270
1266
  * @see https://tailwindcss.com/docs/font-family
1271
1267
  */
1272
1268
  "font-family": [{
1273
- font: [Vo, jo, r]
1269
+ font: [Fo, Oo, r]
1274
1270
  }],
1275
1271
  /**
1276
1272
  * Font Feature Settings
@@ -1539,7 +1535,7 @@ const to = (e, r) => {
1539
1535
  }, L, s, n],
1540
1536
  radial: ["", s, n],
1541
1537
  conic: [L, s, n]
1542
- }, $o, Fo]
1538
+ }, Wo, jo]
1543
1539
  }],
1544
1540
  /**
1545
1541
  * Background Color
@@ -1598,105 +1594,105 @@ const to = (e, r) => {
1598
1594
  * @see https://tailwindcss.com/docs/border-radius
1599
1595
  */
1600
1596
  rounded: [{
1601
- rounded: w()
1597
+ rounded: y()
1602
1598
  }],
1603
1599
  /**
1604
1600
  * Border Radius Start
1605
1601
  * @see https://tailwindcss.com/docs/border-radius
1606
1602
  */
1607
1603
  "rounded-s": [{
1608
- "rounded-s": w()
1604
+ "rounded-s": y()
1609
1605
  }],
1610
1606
  /**
1611
1607
  * Border Radius End
1612
1608
  * @see https://tailwindcss.com/docs/border-radius
1613
1609
  */
1614
1610
  "rounded-e": [{
1615
- "rounded-e": w()
1611
+ "rounded-e": y()
1616
1612
  }],
1617
1613
  /**
1618
1614
  * Border Radius Top
1619
1615
  * @see https://tailwindcss.com/docs/border-radius
1620
1616
  */
1621
1617
  "rounded-t": [{
1622
- "rounded-t": w()
1618
+ "rounded-t": y()
1623
1619
  }],
1624
1620
  /**
1625
1621
  * Border Radius Right
1626
1622
  * @see https://tailwindcss.com/docs/border-radius
1627
1623
  */
1628
1624
  "rounded-r": [{
1629
- "rounded-r": w()
1625
+ "rounded-r": y()
1630
1626
  }],
1631
1627
  /**
1632
1628
  * Border Radius Bottom
1633
1629
  * @see https://tailwindcss.com/docs/border-radius
1634
1630
  */
1635
1631
  "rounded-b": [{
1636
- "rounded-b": w()
1632
+ "rounded-b": y()
1637
1633
  }],
1638
1634
  /**
1639
1635
  * Border Radius Left
1640
1636
  * @see https://tailwindcss.com/docs/border-radius
1641
1637
  */
1642
1638
  "rounded-l": [{
1643
- "rounded-l": w()
1639
+ "rounded-l": y()
1644
1640
  }],
1645
1641
  /**
1646
1642
  * Border Radius Start Start
1647
1643
  * @see https://tailwindcss.com/docs/border-radius
1648
1644
  */
1649
1645
  "rounded-ss": [{
1650
- "rounded-ss": w()
1646
+ "rounded-ss": y()
1651
1647
  }],
1652
1648
  /**
1653
1649
  * Border Radius Start End
1654
1650
  * @see https://tailwindcss.com/docs/border-radius
1655
1651
  */
1656
1652
  "rounded-se": [{
1657
- "rounded-se": w()
1653
+ "rounded-se": y()
1658
1654
  }],
1659
1655
  /**
1660
1656
  * Border Radius End End
1661
1657
  * @see https://tailwindcss.com/docs/border-radius
1662
1658
  */
1663
1659
  "rounded-ee": [{
1664
- "rounded-ee": w()
1660
+ "rounded-ee": y()
1665
1661
  }],
1666
1662
  /**
1667
1663
  * Border Radius End Start
1668
1664
  * @see https://tailwindcss.com/docs/border-radius
1669
1665
  */
1670
1666
  "rounded-es": [{
1671
- "rounded-es": w()
1667
+ "rounded-es": y()
1672
1668
  }],
1673
1669
  /**
1674
1670
  * Border Radius Top Left
1675
1671
  * @see https://tailwindcss.com/docs/border-radius
1676
1672
  */
1677
1673
  "rounded-tl": [{
1678
- "rounded-tl": w()
1674
+ "rounded-tl": y()
1679
1675
  }],
1680
1676
  /**
1681
1677
  * Border Radius Top Right
1682
1678
  * @see https://tailwindcss.com/docs/border-radius
1683
1679
  */
1684
1680
  "rounded-tr": [{
1685
- "rounded-tr": w()
1681
+ "rounded-tr": y()
1686
1682
  }],
1687
1683
  /**
1688
1684
  * Border Radius Bottom Right
1689
1685
  * @see https://tailwindcss.com/docs/border-radius
1690
1686
  */
1691
1687
  "rounded-br": [{
1692
- "rounded-br": w()
1688
+ "rounded-br": y()
1693
1689
  }],
1694
1690
  /**
1695
1691
  * Border Radius Bottom Left
1696
1692
  * @see https://tailwindcss.com/docs/border-radius
1697
1693
  */
1698
1694
  "rounded-bl": [{
1699
- "rounded-bl": w()
1695
+ "rounded-bl": y()
1700
1696
  }],
1701
1697
  /**
1702
1698
  * Border Width
@@ -1954,7 +1950,7 @@ const to = (e, r) => {
1954
1950
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
1955
1951
  */
1956
1952
  "inset-shadow": [{
1957
- "inset-shadow": ["none", y, Q, X]
1953
+ "inset-shadow": ["none", w, Q, X]
1958
1954
  }],
1959
1955
  /**
1960
1956
  * Inset Box Shadow Color
@@ -3081,9 +3077,9 @@ const to = (e, r) => {
3081
3077
  postfixLookupClassGroups: ["container-type"],
3082
3078
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3083
3079
  };
3084
- }, Ho = /* @__PURE__ */ zo(Ko);
3085
- function Qo(...e) {
3086
- return Ho(oo(e));
3080
+ }, Ko = /* @__PURE__ */ Co(Do);
3081
+ function Zo(...e) {
3082
+ return Ko(eo(e));
3087
3083
  }
3088
3084
  const je = {
3089
3085
  "+1": {
@@ -3162,7 +3158,7 @@ const je = {
3162
3158
  pattern: /^\d{6,15}$/,
3163
3159
  maxLength: 15,
3164
3160
  description: "6-15 digits"
3165
- }, qo = (e, r) => {
3161
+ }, Xo = (e, r) => {
3166
3162
  if (!e)
3167
3163
  return { isValid: !0, error: "" };
3168
3164
  const t = je[r] || Fe;
@@ -3170,7 +3166,7 @@ const je = {
3170
3166
  isValid: !1,
3171
3167
  error: `Please enter a valid phone number (${t.description})`
3172
3168
  };
3173
- }, et = (e) => (je[e] || Fe).maxLength, ot = [
3169
+ }, Qo = (e) => (je[e] || Fe).maxLength, qo = [
3174
3170
  { name: "United States", code: "+1", iso: "US" },
3175
3171
  { name: "United Kingdom", code: "+44", iso: "GB" },
3176
3172
  { name: "Australia", code: "+61", iso: "AU" },
@@ -3225,12 +3221,12 @@ const je = {
3225
3221
  { name: "Austria", code: "+43", iso: "AT" },
3226
3222
  { name: "Réunion", code: "+262", iso: "RE" },
3227
3223
  { name: "India", code: "+91", iso: "IN" }
3228
- ], tt = (e) => {
3224
+ ], et = (e) => {
3229
3225
  if (!e || e.length !== 2) return "🏳️";
3230
3226
  const r = e.toUpperCase().split("").map((t) => 127397 + t.charCodeAt(0));
3231
3227
  return String.fromCodePoint(...r);
3232
3228
  };
3233
- function rt(e, r) {
3229
+ function ot(e, r) {
3234
3230
  const t = $e(null), o = ({ locale: d, children: l }) => {
3235
3231
  const b = { locale: d, t: (m) => e[d]?.[m] || (r ? e[r]?.[m] : void 0) || "" };
3236
3232
  return /* @__PURE__ */ I(t.Provider, { value: b, children: l });
@@ -3241,12 +3237,12 @@ function rt(e, r) {
3241
3237
  return { I18nProvider: o, useI18n: a };
3242
3238
  }
3243
3239
  export {
3244
- Xo as BottomSheet,
3245
- ot as DEFAULT_COUNTRIES,
3246
- Qo as cn,
3247
- rt as createI18n,
3248
- tt as getFlagEmoji,
3249
- et as getMaxLengthForCountry,
3250
- qo as validatePhoneByCountryCode
3240
+ Yo as BottomSheet,
3241
+ qo as DEFAULT_COUNTRIES,
3242
+ Zo as cn,
3243
+ ot as createI18n,
3244
+ et as getFlagEmoji,
3245
+ Qo as getMaxLengthForCountry,
3246
+ Xo as validatePhoneByCountryCode
3251
3247
  };
3252
3248
  //# sourceMappingURL=common.js.map