@srimandir/common 2.13.0 → 2.15.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 +29 -26
- 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
|
@@ -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)\(.+\)$/, 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) => (
|
|
383
|
+
return r.isThemeGetter = !0, r.themeKey = e, 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|color|light-dark)\(.+\)$/, 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], K = () => [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, {
|
|
416
|
+
}, L, s, n], K = () => [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 = () => [u, 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"]
|
|
@@ -492,7 +492,7 @@ const oo = (e, r) => {
|
|
|
492
492
|
* @see https://tailwindcss.com/docs/columns
|
|
493
493
|
*/
|
|
494
494
|
columns: [{
|
|
495
|
-
columns: [p, n, s, u]
|
|
495
|
+
columns: [p, "auto", n, s, u]
|
|
496
496
|
}],
|
|
497
497
|
/**
|
|
498
498
|
* Break After
|
|
@@ -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/inline-size
|
|
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-inline-size
|
|
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-inline-size
|
|
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/block-size
|
|
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-block-size
|
|
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-block-size
|
|
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", ...B()]
|
|
1228
|
+
"max-h": ["screen", "lh", "none", ...B()]
|
|
1229
1229
|
}],
|
|
1230
1230
|
// ------------------
|
|
1231
1231
|
// --- Typography ---
|
|
@@ -1325,6 +1325,7 @@ const oo = (e, r) => {
|
|
|
1325
1325
|
*/
|
|
1326
1326
|
leading: [{
|
|
1327
1327
|
leading: [
|
|
1328
|
+
"none",
|
|
1328
1329
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1329
1330
|
d,
|
|
1330
1331
|
...i()
|
|
@@ -1534,7 +1535,7 @@ const oo = (e, r) => {
|
|
|
1534
1535
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1535
1536
|
}, L, s, n],
|
|
1536
1537
|
radial: ["", s, n],
|
|
1537
|
-
conic: [L, s, n]
|
|
1538
|
+
conic: ["", L, s, n]
|
|
1538
1539
|
}, Wo, jo]
|
|
1539
1540
|
}],
|
|
1540
1541
|
/**
|
|
@@ -1932,6 +1933,8 @@ const oo = (e, r) => {
|
|
|
1932
1933
|
shadow: [
|
|
1933
1934
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1934
1935
|
"",
|
|
1936
|
+
// Deprecated since Tailwind CSS v4.0.0
|
|
1937
|
+
"inner",
|
|
1935
1938
|
"none",
|
|
1936
1939
|
f,
|
|
1937
1940
|
Q,
|
|
@@ -3025,16 +3028,16 @@ const oo = (e, r) => {
|
|
|
3025
3028
|
overflow: ["overflow-x", "overflow-y"],
|
|
3026
3029
|
overscroll: ["overscroll-x", "overscroll-y"],
|
|
3027
3030
|
inset: ["inset-x", "inset-y", "inset-bs", "inset-be", "start", "end", "top", "right", "bottom", "left"],
|
|
3028
|
-
"inset-x": ["right", "left"],
|
|
3029
|
-
"inset-y": ["top", "bottom"],
|
|
3031
|
+
"inset-x": ["start", "end", "right", "left"],
|
|
3032
|
+
"inset-y": ["inset-bs", "inset-be", "top", "bottom"],
|
|
3030
3033
|
flex: ["basis", "grow", "shrink"],
|
|
3031
3034
|
gap: ["gap-x", "gap-y"],
|
|
3032
3035
|
p: ["px", "py", "ps", "pe", "pbs", "pbe", "pt", "pr", "pb", "pl"],
|
|
3033
|
-
px: ["pr", "pl"],
|
|
3034
|
-
py: ["pt", "pb"],
|
|
3036
|
+
px: ["ps", "pe", "pr", "pl"],
|
|
3037
|
+
py: ["pbs", "pbe", "pt", "pb"],
|
|
3035
3038
|
m: ["mx", "my", "ms", "me", "mbs", "mbe", "mt", "mr", "mb", "ml"],
|
|
3036
|
-
mx: ["mr", "ml"],
|
|
3037
|
-
my: ["mt", "mb"],
|
|
3039
|
+
mx: ["ms", "me", "mr", "ml"],
|
|
3040
|
+
my: ["mbs", "mbe", "mt", "mb"],
|
|
3038
3041
|
size: ["w", "h"],
|
|
3039
3042
|
"font-size": ["leading"],
|
|
3040
3043
|
"fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
|
|
@@ -3053,19 +3056,19 @@ const oo = (e, r) => {
|
|
|
3053
3056
|
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3054
3057
|
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
3055
3058
|
"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"],
|
|
3056
|
-
"border-w-x": ["border-w-r", "border-w-l"],
|
|
3057
|
-
"border-w-y": ["border-w-t", "border-w-b"],
|
|
3059
|
+
"border-w-x": ["border-w-s", "border-w-e", "border-w-r", "border-w-l"],
|
|
3060
|
+
"border-w-y": ["border-w-bs", "border-w-be", "border-w-t", "border-w-b"],
|
|
3058
3061
|
"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"],
|
|
3059
|
-
"border-color-x": ["border-color-r", "border-color-l"],
|
|
3060
|
-
"border-color-y": ["border-color-t", "border-color-b"],
|
|
3062
|
+
"border-color-x": ["border-color-s", "border-color-e", "border-color-r", "border-color-l"],
|
|
3063
|
+
"border-color-y": ["border-color-bs", "border-color-be", "border-color-t", "border-color-b"],
|
|
3061
3064
|
translate: ["translate-x", "translate-y", "translate-none"],
|
|
3062
3065
|
"translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
|
|
3063
3066
|
"scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
|
|
3064
|
-
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
3065
|
-
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
3067
|
+
"scroll-mx": ["scroll-ms", "scroll-me", "scroll-mr", "scroll-ml"],
|
|
3068
|
+
"scroll-my": ["scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mb"],
|
|
3066
3069
|
"scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
|
|
3067
|
-
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
3068
|
-
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
3070
|
+
"scroll-px": ["scroll-ps", "scroll-pe", "scroll-pr", "scroll-pl"],
|
|
3071
|
+
"scroll-py": ["scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pb"],
|
|
3069
3072
|
touch: ["touch-x", "touch-y", "touch-pz"],
|
|
3070
3073
|
"touch-x": ["touch"],
|
|
3071
3074
|
"touch-y": ["touch"],
|