@srimandir/common 2.30.5 → 2.30.7
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 +40 -43
- package/dist/common.js.map +1 -1
- package/dist/common.umd.cjs +1 -1
- package/dist/common.umd.cjs.map +1 -1
- package/package.json +2 -2
package/dist/common.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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_15iql_3",
|
|
3
|
+
const De = "_overlay_15iql_3", qe = "_sheet_15iql_14", Ke = "_handle_15iql_66", He = "_closeBtn_15iql_75", Je = "_closeBtnOutside_15iql_100", Ye = "_header_15iql_116", Ze = "_body_15iql_25", Xe = "_footer_15iql_128", N = {
|
|
4
4
|
overlay: De,
|
|
5
|
-
sheet:
|
|
6
|
-
handle:
|
|
5
|
+
sheet: qe,
|
|
6
|
+
handle: Ke,
|
|
7
7
|
closeBtn: He,
|
|
8
8
|
closeBtnOutside: Je,
|
|
9
9
|
header: Ye,
|
|
@@ -380,8 +380,8 @@ const oo = (e, r) => {
|
|
|
380
380
|
return d = l, (...b) => d(vo(...b));
|
|
381
381
|
}, zo = [], h = (e) => {
|
|
382
382
|
const r = (t) => t[e] || zo;
|
|
383
|
-
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
|
|
383
|
+
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) => (
|
|
385
385
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
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.
|
|
@@ -413,7 +413,7 @@ const oo = (e, r) => {
|
|
|
413
413
|
"left-bottom"
|
|
414
414
|
], V = () => [...F(), s, n], W = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", "contain", "none"], i = () => [s, n, b], z = () => [G, "full", "auto", ...i()], de = () => [L, "none", "subgrid", s, n], me = () => ["auto", {
|
|
415
415
|
span: ["full", L, s, n]
|
|
416
|
-
}, L, s, n],
|
|
416
|
+
}, L, s, n], q = () => [L, "auto", s, n], pe = () => ["auto", "min", "max", "fr", s, n], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], $ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...i()], B = () => [G, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...i()], oe = () => [G, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...i()], te = () => [G, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...i()], c = () => [e, s, n], ue = () => [...F(), Ce, ve, {
|
|
417
417
|
position: [s, n]
|
|
418
418
|
}], be = () => ["no-repeat", {
|
|
419
419
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -427,7 +427,7 @@ const oo = (e, r) => {
|
|
|
427
427
|
m,
|
|
428
428
|
s,
|
|
429
429
|
n
|
|
430
|
-
], k = () => ["", p, D, O],
|
|
430
|
+
], k = () => ["", p, D, O], K = () => ["solid", "dashed", "dotted", "double"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], x = () => [p, ae, Ce, ve], he = () => [
|
|
431
431
|
// Deprecated since Tailwind CSS v4.0.0
|
|
432
432
|
"",
|
|
433
433
|
"none",
|
|
@@ -492,7 +492,7 @@ const oo = (e, r) => {
|
|
|
492
492
|
* @see https://tailwindcss.com/docs/columns
|
|
493
493
|
*/
|
|
494
494
|
columns: [{
|
|
495
|
-
columns: [p,
|
|
495
|
+
columns: [p, n, s, u]
|
|
496
496
|
}],
|
|
497
497
|
/**
|
|
498
498
|
* Break After
|
|
@@ -791,14 +791,14 @@ const oo = (e, r) => {
|
|
|
791
791
|
* @see https://tailwindcss.com/docs/grid-column
|
|
792
792
|
*/
|
|
793
793
|
"col-start": [{
|
|
794
|
-
"col-start":
|
|
794
|
+
"col-start": q()
|
|
795
795
|
}],
|
|
796
796
|
/**
|
|
797
797
|
* Grid Column End
|
|
798
798
|
* @see https://tailwindcss.com/docs/grid-column
|
|
799
799
|
*/
|
|
800
800
|
"col-end": [{
|
|
801
|
-
"col-end":
|
|
801
|
+
"col-end": q()
|
|
802
802
|
}],
|
|
803
803
|
/**
|
|
804
804
|
* Grid Template Rows
|
|
@@ -819,14 +819,14 @@ const oo = (e, r) => {
|
|
|
819
819
|
* @see https://tailwindcss.com/docs/grid-row
|
|
820
820
|
*/
|
|
821
821
|
"row-start": [{
|
|
822
|
-
"row-start":
|
|
822
|
+
"row-start": q()
|
|
823
823
|
}],
|
|
824
824
|
/**
|
|
825
825
|
* Grid Row End
|
|
826
826
|
* @see https://tailwindcss.com/docs/grid-row
|
|
827
827
|
*/
|
|
828
828
|
"row-end": [{
|
|
829
|
-
"row-end":
|
|
829
|
+
"row-end": q()
|
|
830
830
|
}],
|
|
831
831
|
/**
|
|
832
832
|
* Grid Auto Flow
|
|
@@ -1128,42 +1128,42 @@ const oo = (e, r) => {
|
|
|
1128
1128
|
}],
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Inline Size
|
|
1131
|
-
* @see https://tailwindcss.com/docs/
|
|
1131
|
+
* @see https://tailwindcss.com/docs/width
|
|
1132
1132
|
*/
|
|
1133
1133
|
"inline-size": [{
|
|
1134
1134
|
inline: ["auto", ...oe()]
|
|
1135
1135
|
}],
|
|
1136
1136
|
/**
|
|
1137
1137
|
* Min-Inline Size
|
|
1138
|
-
* @see https://tailwindcss.com/docs/min-
|
|
1138
|
+
* @see https://tailwindcss.com/docs/min-width
|
|
1139
1139
|
*/
|
|
1140
1140
|
"min-inline-size": [{
|
|
1141
1141
|
"min-inline": ["auto", ...oe()]
|
|
1142
1142
|
}],
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Max-Inline Size
|
|
1145
|
-
* @see https://tailwindcss.com/docs/max-
|
|
1145
|
+
* @see https://tailwindcss.com/docs/max-width
|
|
1146
1146
|
*/
|
|
1147
1147
|
"max-inline-size": [{
|
|
1148
1148
|
"max-inline": ["none", ...oe()]
|
|
1149
1149
|
}],
|
|
1150
1150
|
/**
|
|
1151
1151
|
* Block Size
|
|
1152
|
-
* @see https://tailwindcss.com/docs/
|
|
1152
|
+
* @see https://tailwindcss.com/docs/height
|
|
1153
1153
|
*/
|
|
1154
1154
|
"block-size": [{
|
|
1155
1155
|
block: ["auto", ...te()]
|
|
1156
1156
|
}],
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Min-Block Size
|
|
1159
|
-
* @see https://tailwindcss.com/docs/min-
|
|
1159
|
+
* @see https://tailwindcss.com/docs/min-height
|
|
1160
1160
|
*/
|
|
1161
1161
|
"min-block-size": [{
|
|
1162
1162
|
"min-block": ["auto", ...te()]
|
|
1163
1163
|
}],
|
|
1164
1164
|
/**
|
|
1165
1165
|
* Max-Block Size
|
|
1166
|
-
* @see https://tailwindcss.com/docs/max-
|
|
1166
|
+
* @see https://tailwindcss.com/docs/max-height
|
|
1167
1167
|
*/
|
|
1168
1168
|
"max-block-size": [{
|
|
1169
1169
|
"max-block": ["none", ...te()]
|
|
@@ -1225,7 +1225,7 @@ const oo = (e, r) => {
|
|
|
1225
1225
|
* @see https://tailwindcss.com/docs/max-height
|
|
1226
1226
|
*/
|
|
1227
1227
|
"max-h": [{
|
|
1228
|
-
"max-h": ["screen", "lh",
|
|
1228
|
+
"max-h": ["screen", "lh", ...B()]
|
|
1229
1229
|
}],
|
|
1230
1230
|
// ------------------
|
|
1231
1231
|
// --- Typography ---
|
|
@@ -1325,7 +1325,6 @@ const oo = (e, r) => {
|
|
|
1325
1325
|
*/
|
|
1326
1326
|
leading: [{
|
|
1327
1327
|
leading: [
|
|
1328
|
-
"none",
|
|
1329
1328
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1330
1329
|
d,
|
|
1331
1330
|
...i()
|
|
@@ -1384,7 +1383,7 @@ const oo = (e, r) => {
|
|
|
1384
1383
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1385
1384
|
*/
|
|
1386
1385
|
"text-decoration-style": [{
|
|
1387
|
-
decoration: [...
|
|
1386
|
+
decoration: [...K(), "wavy"]
|
|
1388
1387
|
}],
|
|
1389
1388
|
/**
|
|
1390
1389
|
* Text Decoration Thickness
|
|
@@ -1535,7 +1534,7 @@ const oo = (e, r) => {
|
|
|
1535
1534
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1536
1535
|
}, L, s, n],
|
|
1537
1536
|
radial: ["", s, n],
|
|
1538
|
-
conic: [
|
|
1537
|
+
conic: [L, s, n]
|
|
1539
1538
|
}, Wo, jo]
|
|
1540
1539
|
}],
|
|
1541
1540
|
/**
|
|
@@ -1801,14 +1800,14 @@ const oo = (e, r) => {
|
|
|
1801
1800
|
* @see https://tailwindcss.com/docs/border-style
|
|
1802
1801
|
*/
|
|
1803
1802
|
"border-style": [{
|
|
1804
|
-
border: [...
|
|
1803
|
+
border: [...K(), "hidden", "none"]
|
|
1805
1804
|
}],
|
|
1806
1805
|
/**
|
|
1807
1806
|
* Divide Style
|
|
1808
1807
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1809
1808
|
*/
|
|
1810
1809
|
"divide-style": [{
|
|
1811
|
-
divide: [...
|
|
1810
|
+
divide: [...K(), "hidden", "none"]
|
|
1812
1811
|
}],
|
|
1813
1812
|
/**
|
|
1814
1813
|
* Border Color
|
|
@@ -1899,7 +1898,7 @@ const oo = (e, r) => {
|
|
|
1899
1898
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1900
1899
|
*/
|
|
1901
1900
|
"outline-style": [{
|
|
1902
|
-
outline: [...
|
|
1901
|
+
outline: [...K(), "none", "hidden"]
|
|
1903
1902
|
}],
|
|
1904
1903
|
/**
|
|
1905
1904
|
* Outline Offset
|
|
@@ -1933,8 +1932,6 @@ const oo = (e, r) => {
|
|
|
1933
1932
|
shadow: [
|
|
1934
1933
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1935
1934
|
"",
|
|
1936
|
-
// Deprecated since Tailwind CSS v4.0.0
|
|
1937
|
-
"inner",
|
|
1938
1935
|
"none",
|
|
1939
1936
|
f,
|
|
1940
1937
|
X,
|
|
@@ -3028,16 +3025,16 @@ const oo = (e, r) => {
|
|
|
3028
3025
|
overflow: ["overflow-x", "overflow-y"],
|
|
3029
3026
|
overscroll: ["overscroll-x", "overscroll-y"],
|
|
3030
3027
|
inset: ["inset-x", "inset-y", "inset-bs", "inset-be", "start", "end", "top", "right", "bottom", "left"],
|
|
3031
|
-
"inset-x": ["
|
|
3032
|
-
"inset-y": ["
|
|
3028
|
+
"inset-x": ["right", "left"],
|
|
3029
|
+
"inset-y": ["top", "bottom"],
|
|
3033
3030
|
flex: ["basis", "grow", "shrink"],
|
|
3034
3031
|
gap: ["gap-x", "gap-y"],
|
|
3035
3032
|
p: ["px", "py", "ps", "pe", "pbs", "pbe", "pt", "pr", "pb", "pl"],
|
|
3036
|
-
px: ["
|
|
3037
|
-
py: ["
|
|
3033
|
+
px: ["pr", "pl"],
|
|
3034
|
+
py: ["pt", "pb"],
|
|
3038
3035
|
m: ["mx", "my", "ms", "me", "mbs", "mbe", "mt", "mr", "mb", "ml"],
|
|
3039
|
-
mx: ["
|
|
3040
|
-
my: ["
|
|
3036
|
+
mx: ["mr", "ml"],
|
|
3037
|
+
my: ["mt", "mb"],
|
|
3041
3038
|
size: ["w", "h"],
|
|
3042
3039
|
"font-size": ["leading"],
|
|
3043
3040
|
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
@@ -3056,19 +3053,19 @@ const oo = (e, r) => {
|
|
|
3056
3053
|
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3057
3054
|
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
3058
3055
|
"border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-bs", "border-w-be", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
|
|
3059
|
-
"border-w-x": ["border-w-
|
|
3060
|
-
"border-w-y": ["border-w-
|
|
3056
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
3057
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
3061
3058
|
"border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-bs", "border-color-be", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
|
|
3062
|
-
"border-color-x": ["border-color-
|
|
3063
|
-
"border-color-y": ["border-color-
|
|
3059
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
3060
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
3064
3061
|
translate: ["translate-x", "translate-y", "translate-none"],
|
|
3065
3062
|
"translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
|
|
3066
3063
|
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
3067
|
-
"scroll-mx": ["scroll-
|
|
3068
|
-
"scroll-my": ["scroll-
|
|
3064
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
3065
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
3069
3066
|
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
3070
|
-
"scroll-px": ["scroll-
|
|
3071
|
-
"scroll-py": ["scroll-
|
|
3067
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
3068
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
3072
3069
|
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
3073
3070
|
"touch-x": ["touch"],
|
|
3074
3071
|
"touch-y": ["touch"],
|
|
@@ -3080,9 +3077,9 @@ const oo = (e, r) => {
|
|
|
3080
3077
|
postfixLookupClassGroups: ["container-type"],
|
|
3081
3078
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3082
3079
|
};
|
|
3083
|
-
},
|
|
3080
|
+
}, qo = /* @__PURE__ */ Co(Do);
|
|
3084
3081
|
function Yo(...e) {
|
|
3085
|
-
return
|
|
3082
|
+
return qo(eo(e));
|
|
3086
3083
|
}
|
|
3087
3084
|
const je = {
|
|
3088
3085
|
"+1": {
|