@srimandir/common 2.21.0 → 2.22.1

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
@@ -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.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) => (
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], 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, {
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, {
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, "auto", n, s, u]
495
+ columns: [p, 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/inline-size
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-inline-size
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-inline-size
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/block-size
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-block-size
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-block-size
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", "none", ...B()]
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()
@@ -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: ["", L, s, n]
1537
+ conic: [L, s, n]
1539
1538
  }, Wo, jo]
1540
1539
  }],
1541
1540
  /**
@@ -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
  Q,
@@ -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": ["start", "end", "right", "left"],
3032
- "inset-y": ["inset-bs", "inset-be", "top", "bottom"],
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: ["ps", "pe", "pr", "pl"],
3037
- py: ["pbs", "pbe", "pt", "pb"],
3033
+ px: ["pr", "pl"],
3034
+ py: ["pt", "pb"],
3038
3035
  m: ["mx", "my", "ms", "me", "mbs", "mbe", "mt", "mr", "mb", "ml"],
3039
- mx: ["ms", "me", "mr", "ml"],
3040
- my: ["mbs", "mbe", "mt", "mb"],
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-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"],
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-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"],
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-ms", "scroll-me", "scroll-mr", "scroll-ml"],
3068
- "scroll-my": ["scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mb"],
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-ps", "scroll-pe", "scroll-pr", "scroll-pl"],
3071
- "scroll-py": ["scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pb"],
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"],