@annatarhe/lake-ui 0.0.21 → 0.0.24

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/utils/cn.js CHANGED
@@ -194,23 +194,23 @@ const Z = "-", ye = (e) => {
194
194
  u = m + (u.length > 0 ? " " + u : u);
195
195
  continue;
196
196
  }
197
- let R = !!y, M = r(R ? w.substring(0, y) : w);
198
- if (!M) {
197
+ let R = !!y, S = r(R ? w.substring(0, y) : w);
198
+ if (!S) {
199
199
  if (!R) {
200
200
  u = m + (u.length > 0 ? " " + u : u);
201
201
  continue;
202
202
  }
203
- if (M = r(w), !M) {
203
+ if (S = r(w), !S) {
204
204
  u = m + (u.length > 0 ? " " + u : u);
205
205
  continue;
206
206
  }
207
207
  R = !1;
208
208
  }
209
- const O = c(V).join(":"), F = j ? O + Q : O, G = F + M;
209
+ const O = c(V).join(":"), F = j ? O + Q : O, G = F + S;
210
210
  if (a.includes(G))
211
211
  continue;
212
212
  a.push(G);
213
- const P = l(M, R);
213
+ const P = l(S, R);
214
214
  for (let i = 0; i < P.length; ++i) {
215
215
  const v = P[i];
216
216
  a.push(F + v);
@@ -253,21 +253,21 @@ function Ee(e, ...s) {
253
253
  const f = (e) => {
254
254
  const s = (t) => t[e] || [];
255
255
  return s.isThemeGetter = !0, s;
256
- }, be = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, fe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Le = /^\d+\/\d+$/, Ne = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ve = /\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$/, je = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Oe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, E = (e) => Le.test(e), d = (e) => !!e && !Number.isNaN(Number(e)), A = (e) => !!e && Number.isInteger(Number(e)), ce = (e) => e.endsWith("%") && d(e.slice(0, -1)), C = (e) => Ne.test(e), _e = () => !0, Be = (e) => (
256
+ }, be = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, fe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Le = /^\d+\/\d+$/, Ne = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ve = /\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$/, je = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Oe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, E = (e) => Le.test(e), d = (e) => !!e && !Number.isNaN(Number(e)), C = (e) => !!e && Number.isInteger(Number(e)), ce = (e) => e.endsWith("%") && d(e.slice(0, -1)), M = (e) => Ne.test(e), _e = () => !0, Be = (e) => (
257
257
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
258
258
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
259
259
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
260
260
  Ve.test(e) && !je.test(e)
261
- ), ee = () => !1, $e = (e) => Oe.test(e), We = (e) => Fe.test(e), Ue = (e) => !o(e) && !n(e), qe = (e) => L(e, he, ee), o = (e) => be.test(e), I = (e) => L(e, xe, Be), D = (e) => L(e, tr, d), He = (e) => L(e, ge, ee), Je = (e) => L(e, me, We), Xe = (e) => L(e, ee, $e), n = (e) => fe.test(e), q = (e) => N(e, xe), De = (e) => N(e, or), Ke = (e) => N(e, ge), Qe = (e) => N(e, he), Ye = (e) => N(e, me), Ze = (e) => N(e, nr, !0), L = (e, s, t) => {
261
+ ), ee = () => !1, $e = (e) => Oe.test(e), We = (e) => Fe.test(e), Ue = (e) => !o(e) && !n(e), qe = (e) => L(e, he, ee), o = (e) => be.test(e), I = (e) => L(e, xe, Be), D = (e) => L(e, tr, d), He = (e) => L(e, ge, ee), Je = (e) => L(e, me, We), Xe = (e) => L(e, ee, $e), n = (e) => fe.test(e), _ = (e) => N(e, xe), De = (e) => N(e, or), Ke = (e) => N(e, ge), Qe = (e) => N(e, he), Ye = (e) => N(e, me), Ze = (e) => N(e, nr, !0), L = (e, s, t) => {
262
262
  const r = be.exec(e);
263
263
  return r ? r[1] ? s(r[1]) : t(r[2]) : !1;
264
264
  }, N = (e, s, t = !1) => {
265
265
  const r = fe.exec(e);
266
266
  return r ? r[1] ? s(r[1]) : t : !1;
267
267
  }, ge = (e) => e === "position", er = /* @__PURE__ */ new Set(["image", "url"]), me = (e) => er.has(e), rr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), he = (e) => rr.has(e), xe = (e) => e === "length", tr = (e) => e === "number", or = (e) => e === "family-name", nr = (e) => e === "shadow", sr = () => {
268
- const e = f("color"), s = f("font"), t = f("text"), r = f("font-weight"), l = f("tracking"), c = f("leading"), a = f("breakpoint"), b = f("container"), u = f("spacing"), g = f("radius"), m = f("shadow"), z = f("inset-shadow"), V = f("drop-shadow"), j = f("blur"), w = f("perspective"), y = f("aspect"), R = f("ease"), M = f("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", "contain", "none"], i = () => [n, o, u], v = () => [E, "full", "auto", ...i()], re = () => [A, "none", "subgrid", n, o], te = () => ["auto", {
269
- span: ["full", A, n, o]
270
- }, n, o], _ = () => [A, "auto", n, o], oe = () => ["auto", "min", "max", "fr", n, o], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], T = () => ["start", "end", "center", "stretch"], k = () => ["auto", ...i()], S = () => [E, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...i()], p = () => [e, n, o], J = () => [ce, I], h = () => [
268
+ const e = f("color"), s = f("font"), t = f("text"), r = f("font-weight"), l = f("tracking"), c = f("leading"), a = f("breakpoint"), b = f("container"), u = f("spacing"), g = f("radius"), m = f("shadow"), z = f("inset-shadow"), V = f("drop-shadow"), j = f("blur"), w = f("perspective"), y = f("aspect"), R = f("ease"), S = f("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", "contain", "none"], i = () => [n, o, u], v = () => [E, "full", "auto", ...i()], re = () => [C, "none", "subgrid", n, o], te = () => ["auto", {
269
+ span: ["full", C, n, o]
270
+ }, C, n, o], B = () => [C, "auto", n, o], oe = () => ["auto", "min", "max", "fr", n, o], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], T = () => ["start", "end", "center", "stretch"], k = () => ["auto", ...i()], A = () => [E, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...i()], p = () => [e, n, o], J = () => [ce, _, I], h = () => [
271
271
  // Deprecated since Tailwind CSS v4.0.0
272
272
  "",
273
273
  "none",
@@ -275,34 +275,34 @@ const f = (e) => {
275
275
  g,
276
276
  n,
277
277
  o
278
- ], x = () => ["", d, q, I], B = () => ["solid", "dashed", "dotted", "double"], ne = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], se = () => [
278
+ ], x = () => ["", d, _, I], $ = () => ["solid", "dashed", "dotted", "double"], ne = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], se = () => [
279
279
  // Deprecated since Tailwind CSS v4.0.0
280
280
  "",
281
281
  "none",
282
282
  j,
283
283
  n,
284
284
  o
285
- ], ie = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", n, o], $ = () => ["none", d, n, o], W = () => ["none", d, n, o], X = () => [d, n, o], U = () => [E, "full", ...i()];
285
+ ], ie = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", n, o], W = () => ["none", d, n, o], U = () => ["none", d, n, o], X = () => [d, n, o], q = () => [E, "full", ...i()];
286
286
  return {
287
287
  cacheSize: 500,
288
288
  theme: {
289
289
  animate: ["spin", "ping", "pulse", "bounce"],
290
290
  aspect: ["video"],
291
- blur: [C],
292
- breakpoint: [C],
291
+ blur: [M],
292
+ breakpoint: [M],
293
293
  color: [_e],
294
- container: [C],
295
- "drop-shadow": [C],
294
+ container: [M],
295
+ "drop-shadow": [M],
296
296
  ease: ["in", "out", "in-out"],
297
297
  font: [Ue],
298
298
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
299
- "inset-shadow": [C],
299
+ "inset-shadow": [M],
300
300
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
301
301
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
302
- radius: [C],
303
- shadow: [C],
302
+ radius: [M],
303
+ shadow: [M],
304
304
  spacing: ["px", d],
305
- text: [C],
305
+ text: [M],
306
306
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
307
307
  },
308
308
  classGroups: {
@@ -527,7 +527,7 @@ const f = (e) => {
527
527
  * @see https://tailwindcss.com/docs/z-index
528
528
  */
529
529
  z: [{
530
- z: [A, "auto", n, o]
530
+ z: [C, "auto", n, o]
531
531
  }],
532
532
  // ------------------------
533
533
  // --- Flexbox and Grid ---
@@ -579,7 +579,7 @@ const f = (e) => {
579
579
  * @see https://tailwindcss.com/docs/order
580
580
  */
581
581
  order: [{
582
- order: [A, "first", "last", "none", n, o]
582
+ order: [C, "first", "last", "none", n, o]
583
583
  }],
584
584
  /**
585
585
  * Grid Template Columns
@@ -600,14 +600,14 @@ const f = (e) => {
600
600
  * @see https://tailwindcss.com/docs/grid-column
601
601
  */
602
602
  "col-start": [{
603
- "col-start": _()
603
+ "col-start": B()
604
604
  }],
605
605
  /**
606
606
  * Grid Column End
607
607
  * @see https://tailwindcss.com/docs/grid-column
608
608
  */
609
609
  "col-end": [{
610
- "col-end": _()
610
+ "col-end": B()
611
611
  }],
612
612
  /**
613
613
  * Grid Template Rows
@@ -628,14 +628,14 @@ const f = (e) => {
628
628
  * @see https://tailwindcss.com/docs/grid-row
629
629
  */
630
630
  "row-start": [{
631
- "row-start": _()
631
+ "row-start": B()
632
632
  }],
633
633
  /**
634
634
  * Grid Row End
635
635
  * @see https://tailwindcss.com/docs/grid-row
636
636
  */
637
637
  "row-end": [{
638
- "row-end": _()
638
+ "row-end": B()
639
639
  }],
640
640
  /**
641
641
  * Grid Auto Flow
@@ -901,14 +901,14 @@ const f = (e) => {
901
901
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
902
902
  */
903
903
  size: [{
904
- size: S()
904
+ size: A()
905
905
  }],
906
906
  /**
907
907
  * Width
908
908
  * @see https://tailwindcss.com/docs/width
909
909
  */
910
910
  w: [{
911
- w: [b, "screen", ...S()]
911
+ w: [b, "screen", ...A()]
912
912
  }],
913
913
  /**
914
914
  * Min-Width
@@ -920,7 +920,7 @@ const f = (e) => {
920
920
  "screen",
921
921
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
922
922
  "none",
923
- ...S()
923
+ ...A()
924
924
  ]
925
925
  }],
926
926
  /**
@@ -938,7 +938,7 @@ const f = (e) => {
938
938
  {
939
939
  screen: [a]
940
940
  },
941
- ...S()
941
+ ...A()
942
942
  ]
943
943
  }],
944
944
  /**
@@ -946,21 +946,21 @@ const f = (e) => {
946
946
  * @see https://tailwindcss.com/docs/height
947
947
  */
948
948
  h: [{
949
- h: ["screen", ...S()]
949
+ h: ["screen", ...A()]
950
950
  }],
951
951
  /**
952
952
  * Min-Height
953
953
  * @see https://tailwindcss.com/docs/min-height
954
954
  */
955
955
  "min-h": [{
956
- "min-h": ["screen", "none", ...S()]
956
+ "min-h": ["screen", "none", ...A()]
957
957
  }],
958
958
  /**
959
959
  * Max-Height
960
960
  * @see https://tailwindcss.com/docs/max-height
961
961
  */
962
962
  "max-h": [{
963
- "max-h": ["screen", ...S()]
963
+ "max-h": ["screen", ...A()]
964
964
  }],
965
965
  // ------------------
966
966
  // --- Typography ---
@@ -970,7 +970,7 @@ const f = (e) => {
970
970
  * @see https://tailwindcss.com/docs/font-size
971
971
  */
972
972
  "font-size": [{
973
- text: ["base", t, q, I]
973
+ text: ["base", t, _, I]
974
974
  }],
975
975
  /**
976
976
  * Font Smoothing
@@ -1111,7 +1111,7 @@ const f = (e) => {
1111
1111
  * @see https://tailwindcss.com/docs/text-decoration-style
1112
1112
  */
1113
1113
  "text-decoration-style": [{
1114
- decoration: [...B(), "wavy"]
1114
+ decoration: [...$(), "wavy"]
1115
1115
  }],
1116
1116
  /**
1117
1117
  * Text Decoration Thickness
@@ -1248,9 +1248,9 @@ const f = (e) => {
1248
1248
  bg: ["none", {
1249
1249
  linear: [{
1250
1250
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1251
- }, A, n, o],
1251
+ }, C, n, o],
1252
1252
  radial: ["", n, o],
1253
- conic: [A, n, o]
1253
+ conic: [C, n, o]
1254
1254
  }, Ye, Je]
1255
1255
  }],
1256
1256
  /**
@@ -1502,14 +1502,14 @@ const f = (e) => {
1502
1502
  * @see https://tailwindcss.com/docs/border-style
1503
1503
  */
1504
1504
  "border-style": [{
1505
- border: [...B(), "hidden", "none"]
1505
+ border: [...$(), "hidden", "none"]
1506
1506
  }],
1507
1507
  /**
1508
1508
  * Divide Style
1509
1509
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
1510
1510
  */
1511
1511
  "divide-style": [{
1512
- divide: [...B(), "hidden", "none"]
1512
+ divide: [...$(), "hidden", "none"]
1513
1513
  }],
1514
1514
  /**
1515
1515
  * Border Color
@@ -1586,7 +1586,7 @@ const f = (e) => {
1586
1586
  * @see https://tailwindcss.com/docs/outline-style
1587
1587
  */
1588
1588
  "outline-style": [{
1589
- outline: [...B(), "none", "hidden"]
1589
+ outline: [...$(), "none", "hidden"]
1590
1590
  }],
1591
1591
  /**
1592
1592
  * Outline Offset
@@ -1600,7 +1600,7 @@ const f = (e) => {
1600
1600
  * @see https://tailwindcss.com/docs/outline-width
1601
1601
  */
1602
1602
  "outline-w": [{
1603
- outline: ["", d, q, I]
1603
+ outline: ["", d, _, I]
1604
1604
  }],
1605
1605
  /**
1606
1606
  * Outline Color
@@ -1971,7 +1971,7 @@ const f = (e) => {
1971
1971
  * @see https://tailwindcss.com/docs/animation
1972
1972
  */
1973
1973
  animate: [{
1974
- animate: ["none", M, n, o]
1974
+ animate: ["none", S, n, o]
1975
1975
  }],
1976
1976
  // ------------------
1977
1977
  // --- Transforms ---
@@ -2002,56 +2002,56 @@ const f = (e) => {
2002
2002
  * @see https://tailwindcss.com/docs/rotate
2003
2003
  */
2004
2004
  rotate: [{
2005
- rotate: $()
2005
+ rotate: W()
2006
2006
  }],
2007
2007
  /**
2008
2008
  * Rotate X
2009
2009
  * @see https://tailwindcss.com/docs/rotate
2010
2010
  */
2011
2011
  "rotate-x": [{
2012
- "rotate-x": $()
2012
+ "rotate-x": W()
2013
2013
  }],
2014
2014
  /**
2015
2015
  * Rotate Y
2016
2016
  * @see https://tailwindcss.com/docs/rotate
2017
2017
  */
2018
2018
  "rotate-y": [{
2019
- "rotate-y": $()
2019
+ "rotate-y": W()
2020
2020
  }],
2021
2021
  /**
2022
2022
  * Rotate Z
2023
2023
  * @see https://tailwindcss.com/docs/rotate
2024
2024
  */
2025
2025
  "rotate-z": [{
2026
- "rotate-z": $()
2026
+ "rotate-z": W()
2027
2027
  }],
2028
2028
  /**
2029
2029
  * Scale
2030
2030
  * @see https://tailwindcss.com/docs/scale
2031
2031
  */
2032
2032
  scale: [{
2033
- scale: W()
2033
+ scale: U()
2034
2034
  }],
2035
2035
  /**
2036
2036
  * Scale X
2037
2037
  * @see https://tailwindcss.com/docs/scale
2038
2038
  */
2039
2039
  "scale-x": [{
2040
- "scale-x": W()
2040
+ "scale-x": U()
2041
2041
  }],
2042
2042
  /**
2043
2043
  * Scale Y
2044
2044
  * @see https://tailwindcss.com/docs/scale
2045
2045
  */
2046
2046
  "scale-y": [{
2047
- "scale-y": W()
2047
+ "scale-y": U()
2048
2048
  }],
2049
2049
  /**
2050
2050
  * Scale Z
2051
2051
  * @see https://tailwindcss.com/docs/scale
2052
2052
  */
2053
2053
  "scale-z": [{
2054
- "scale-z": W()
2054
+ "scale-z": U()
2055
2055
  }],
2056
2056
  /**
2057
2057
  * Scale 3D
@@ -2105,28 +2105,28 @@ const f = (e) => {
2105
2105
  * @see https://tailwindcss.com/docs/translate
2106
2106
  */
2107
2107
  translate: [{
2108
- translate: U()
2108
+ translate: q()
2109
2109
  }],
2110
2110
  /**
2111
2111
  * Translate X
2112
2112
  * @see https://tailwindcss.com/docs/translate
2113
2113
  */
2114
2114
  "translate-x": [{
2115
- "translate-x": U()
2115
+ "translate-x": q()
2116
2116
  }],
2117
2117
  /**
2118
2118
  * Translate Y
2119
2119
  * @see https://tailwindcss.com/docs/translate
2120
2120
  */
2121
2121
  "translate-y": [{
2122
- "translate-y": U()
2122
+ "translate-y": q()
2123
2123
  }],
2124
2124
  /**
2125
2125
  * Translate Z
2126
2126
  * @see https://tailwindcss.com/docs/translate
2127
2127
  */
2128
2128
  "translate-z": [{
2129
- "translate-z": U()
2129
+ "translate-z": q()
2130
2130
  }],
2131
2131
  /**
2132
2132
  * Translate None
@@ -2408,7 +2408,7 @@ const f = (e) => {
2408
2408
  * @see https://tailwindcss.com/docs/stroke-width
2409
2409
  */
2410
2410
  "stroke-w": [{
2411
- stroke: [d, q, I, D]
2411
+ stroke: [d, _, I, D]
2412
2412
  }],
2413
2413
  /**
2414
2414
  * Stroke