@srimandir/common 2.32.0 → 2.34.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
@@ -32,11 +32,11 @@ const De = "_overlay_15iql_3", Ke = "_sheet_15iql_14", qe = "_handle_15iql_66",
32
32
  ariaLabel: w,
33
33
  className: P = "",
34
34
  overlayClassName: A = "",
35
- "data-testid": _
35
+ "data-testid": E
36
36
  }) => (We(() => {
37
37
  if (!e) return;
38
38
  const g = (T) => {
39
- T.key === "Escape" && r();
39
+ T.key === "Escape" && r("escape");
40
40
  };
41
41
  m && document.addEventListener("keydown", g);
42
42
  const v = document.body.style.overflow;
@@ -49,7 +49,7 @@ const De = "_overlay_15iql_3", Ke = "_sheet_15iql_14", qe = "_handle_15iql_66",
49
49
  className: se(N.overlay, A),
50
50
  role: "presentation",
51
51
  onClick: (g) => {
52
- b && g.target === g.currentTarget && r();
52
+ b && g.target === g.currentTarget && r("backdrop");
53
53
  },
54
54
  children: /* @__PURE__ */ Ve(
55
55
  "div",
@@ -58,7 +58,7 @@ const De = "_overlay_15iql_3", Ke = "_sheet_15iql_14", qe = "_handle_15iql_66",
58
58
  role: "dialog",
59
59
  "aria-modal": "true",
60
60
  "aria-label": w,
61
- "data-testid": _,
61
+ "data-testid": E,
62
62
  children: [
63
63
  u && /* @__PURE__ */ I("div", { className: N.handle, "aria-hidden": "true" }),
64
64
  d && /* @__PURE__ */ I(
@@ -66,7 +66,7 @@ const De = "_overlay_15iql_3", Ke = "_sheet_15iql_14", qe = "_handle_15iql_66",
66
66
  {
67
67
  type: "button",
68
68
  className: se(N.closeBtn, l && N.closeBtnOutside),
69
- onClick: r,
69
+ onClick: () => r("close_button"),
70
70
  "aria-label": "Close",
71
71
  children: /* @__PURE__ */ I(Qe, {})
72
72
  }
@@ -261,8 +261,8 @@ const oo = (e, r) => {
261
261
  */
262
262
  w.startsWith(ie) && (P = w.slice(1), A = !0)
263
263
  );
264
- const _ = m && m > b ? m - b : void 0;
265
- return ye(d, A, P, _);
264
+ const E = m && m > b ? m - b : void 0;
265
+ return ye(d, A, P, E);
266
266
  };
267
267
  if (r) {
268
268
  const a = r + we, d = o;
@@ -314,7 +314,7 @@ const oo = (e, r) => {
314
314
  const w = b[f], {
315
315
  isExternal: P,
316
316
  modifiers: A,
317
- hasImportantModifier: _,
317
+ hasImportantModifier: E,
318
318
  baseClassName: g,
319
319
  maybePostfixModifierPosition: v
320
320
  } = t(w);
@@ -341,7 +341,7 @@ const oo = (e, r) => {
341
341
  }
342
342
  T = !1;
343
343
  }
344
- const U = A.length === 0 ? "" : A.length === 1 ? A[0] : d(A).join(":"), F = _ ? U + ie : U, V = F + C;
344
+ const U = A.length === 0 ? "" : A.length === 1 ? A[0] : d(A).join(":"), F = E ? U + ie : U, V = F + C;
345
345
  if (u.indexOf(V) > -1)
346
346
  continue;
347
347
  u.push(V);
@@ -386,14 +386,14 @@ const oo = (e, r) => {
386
386
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
387
387
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
388
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), Z = (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), X = (e) => j(e, Oe, !0), $o = (e) => j(e, Be, !0), E = (e, r, t) => {
389
+ ), ce = () => !1, Ro = (e) => Po.test(e), No = (e) => To.test(e), Go = (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)), Eo = (e) => _(e, Ge, ce), n = (e) => Pe.test(e), O = (e) => _(e, _e, Mo), ke = (e) => _(e, Uo, p), Bo = (e) => _(e, Be, Me), Oo = (e) => _(e, Ee, ce), ve = (e) => _(e, Re, ce), jo = (e) => _(e, Ne, No), Z = (e) => _(e, Oe, Ro), s = (e) => Te.test(e), D = (e) => j(e, _e), Fo = (e) => j(e, Ee), Ce = (e) => j(e, Re), Vo = (e) => j(e, Ge), Wo = (e) => j(e, Ne), X = (e) => j(e, Oe, !0), $o = (e) => j(e, Be, !0), _ = (e, r, t) => {
390
390
  const o = Pe.exec(e);
391
391
  return o ? o[1] ? r(o[1]) : t(o[2]) : !1;
392
392
  }, j = (e, r, t = !1) => {
393
393
  const o = Te.exec(e);
394
394
  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 = () => [
395
+ }, Re = (e) => e === "position" || e === "percentage", Ne = (e) => e === "image" || e === "url", Ge = (e) => e === "length" || e === "size" || e === "bg-size", _e = (e) => e === "length", Uo = (e) => e === "number", Ee = (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"), E = 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
397
  "center",
398
398
  "top",
399
399
  "bottom",
@@ -417,7 +417,7 @@ const oo = (e, r) => {
417
417
  position: [s, n]
418
418
  }], be = () => ["no-repeat", {
419
419
  repeat: ["", "x", "y", "space", "round"]
420
- }], fe = () => ["auto", "cover", "contain", Vo, _o, {
420
+ }], fe = () => ["auto", "cover", "contain", Vo, Eo, {
421
421
  size: [s, n]
422
422
  }], re = () => [ae, D, O], y = () => [
423
423
  // Deprecated since Tailwind CSS v4.0.0
@@ -431,7 +431,7 @@ const oo = (e, r) => {
431
431
  // Deprecated since Tailwind CSS v4.0.0
432
432
  "",
433
433
  "none",
434
- _,
434
+ E,
435
435
  s,
436
436
  n
437
437
  ], H = () => ["none", p, s, n], J = () => ["none", p, s, n], ne = () => [p, s, n], Y = () => [G, "full", ...i()];
@@ -486,7 +486,7 @@ const oo = (e, r) => {
486
486
  * Container Name
487
487
  * @see https://tailwindcss.com/docs/responsive-design#named-containers
488
488
  */
489
- "container-named": [Eo],
489
+ "container-named": [_o],
490
490
  /**
491
491
  * Columns
492
492
  * @see https://tailwindcss.com/docs/columns