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