@srimandir/common 2.30.6 → 2.30.8
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 +15 -15
- package/dist/common.js.map +1 -1
- package/dist/common.umd.cjs +1 -1
- package/dist/common.umd.cjs.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.d.ts +2 -4
- package/dist/components/BottomSheet/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
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": _
|
|
36
36
|
}) => (We(() => {
|
|
37
37
|
if (!e) return;
|
|
38
38
|
const g = (T) => {
|
|
39
|
-
T.key === "Escape" && r(
|
|
39
|
+
T.key === "Escape" && r();
|
|
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();
|
|
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": _,
|
|
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:
|
|
69
|
+
onClick: r,
|
|
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
|
|
265
|
-
return ye(d, A, P,
|
|
264
|
+
const _ = m && m > b ? m - b : void 0;
|
|
265
|
+
return ye(d, A, P, _);
|
|
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: _,
|
|
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 =
|
|
344
|
+
const U = A.length === 0 ? "" : A.length === 1 ? A[0] : d(A).join(":"), F = _ ? 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),
|
|
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) => {
|
|
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",
|
|
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"),
|
|
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 = () => [
|
|
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,
|
|
420
|
+
}], fe = () => ["auto", "cover", "contain", Vo, _o, {
|
|
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
|
+
_,
|
|
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": [
|
|
489
|
+
"container-named": [Eo],
|
|
490
490
|
/**
|
|
491
491
|
* Columns
|
|
492
492
|
* @see https://tailwindcss.com/docs/columns
|