@srimandir/common 2.30.7 → 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 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", 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 = {
3
+ const De = "_overlay_15iql_3", Ke = "_sheet_15iql_14", qe = "_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: qe,
6
- handle: Ke,
5
+ sheet: Ke,
6
+ handle: qe,
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)\(.+\)$/, 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], 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, {
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"]
@@ -427,7 +427,7 @@ const oo = (e, r) => {
427
427
  m,
428
428
  s,
429
429
  n
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 = () => [
430
+ ], k = () => ["", p, D, O], q = () => ["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, n, s, u]
495
+ columns: [p, "auto", 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": q()
794
+ "col-start": K()
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": q()
801
+ "col-end": K()
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": q()
822
+ "row-start": K()
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": q()
829
+ "row-end": K()
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/width
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-width
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-width
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/height
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-height
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-height
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()
@@ -1383,7 +1384,7 @@ const oo = (e, r) => {
1383
1384
  * @see https://tailwindcss.com/docs/text-decoration-style
1384
1385
  */
1385
1386
  "text-decoration-style": [{
1386
- decoration: [...K(), "wavy"]
1387
+ decoration: [...q(), "wavy"]
1387
1388
  }],
1388
1389
  /**
1389
1390
  * Text Decoration Thickness
@@ -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
  /**
@@ -1800,14 +1801,14 @@ const oo = (e, r) => {
1800
1801
  * @see https://tailwindcss.com/docs/border-style
1801
1802
  */
1802
1803
  "border-style": [{
1803
- border: [...K(), "hidden", "none"]
1804
+ border: [...q(), "hidden", "none"]
1804
1805
  }],
1805
1806
  /**
1806
1807
  * Divide Style
1807
1808
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
1808
1809
  */
1809
1810
  "divide-style": [{
1810
- divide: [...K(), "hidden", "none"]
1811
+ divide: [...q(), "hidden", "none"]
1811
1812
  }],
1812
1813
  /**
1813
1814
  * Border Color
@@ -1898,7 +1899,7 @@ const oo = (e, r) => {
1898
1899
  * @see https://tailwindcss.com/docs/outline-style
1899
1900
  */
1900
1901
  "outline-style": [{
1901
- outline: [...K(), "none", "hidden"]
1902
+ outline: [...q(), "none", "hidden"]
1902
1903
  }],
1903
1904
  /**
1904
1905
  * Outline Offset
@@ -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
  X,
@@ -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"],
@@ -3077,9 +3080,9 @@ const oo = (e, r) => {
3077
3080
  postfixLookupClassGroups: ["container-type"],
3078
3081
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3079
3082
  };
3080
- }, qo = /* @__PURE__ */ Co(Do);
3083
+ }, Ko = /* @__PURE__ */ Co(Do);
3081
3084
  function Yo(...e) {
3082
- return qo(eo(e));
3085
+ return Ko(eo(e));
3083
3086
  }
3084
3087
  const je = {
3085
3088
  "+1": {