@desafio-design-system_/reflow-ui 0.2.8 → 0.3.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsxs as se, jsx as j } from "react/jsx-runtime";
1
+ import { jsxs as se, jsx as B } from "react/jsx-runtime";
2
2
  function ze(e) {
3
3
  var r, o, t = "";
4
4
  if (typeof e == "string" || typeof e == "number") t += e;
@@ -96,7 +96,7 @@ const Le = (e, r) => {
96
96
  }
97
97
  qe(e, r, o, t);
98
98
  }, De = (e, r, o) => {
99
- const t = e === "" ? r : Ne(r, e);
99
+ const t = e === "" ? r : Re(r, e);
100
100
  t.classGroupId = o;
101
101
  }, Ye = (e, r, o, t) => {
102
102
  if (Xe(e)) {
@@ -108,9 +108,9 @@ const Le = (e, r) => {
108
108
  const l = Object.entries(e), i = l.length;
109
109
  for (let a = 0; a < i; a++) {
110
110
  const [u, c] = l[a];
111
- le(c, Ne(r, u), o, t);
111
+ le(c, Re(r, u), o, t);
112
112
  }
113
- }, Ne = (e, r) => {
113
+ }, Re = (e, r) => {
114
114
  let o = e;
115
115
  const t = r.split(Z), l = t.length;
116
116
  for (let i = 0; i < l; i++) {
@@ -246,13 +246,13 @@ const Le = (e, r) => {
246
246
  }
247
247
  k = !1;
248
248
  }
249
- const D = y.length === 0 ? "" : y.length === 1 ? y[0] : i(y).join(":"), W = C ? D + ae : D, V = W + T;
250
- if (a.indexOf(V) > -1)
249
+ const D = y.length === 0 ? "" : y.length === 1 ? y[0] : i(y).join(":"), W = C ? D + ae : D, j = W + T;
250
+ if (a.indexOf(j) > -1)
251
251
  continue;
252
- a.push(V);
253
- const L = l(T, k);
254
- for (let P = 0; P < L.length; ++P) {
255
- const $ = L[P];
252
+ a.push(j);
253
+ const V = l(T, k);
254
+ for (let P = 0; P < V.length; ++P) {
255
+ const $ = V[P];
256
256
  a.push(W + $);
257
257
  }
258
258
  c = b + (c.length > 0 ? " " + c : c);
@@ -261,14 +261,14 @@ const Le = (e, r) => {
261
261
  }, to = (...e) => {
262
262
  let r = 0, o, t, l = "";
263
263
  for (; r < e.length; )
264
- (o = e[r++]) && (t = Re(o)) && (l && (l += " "), l += t);
264
+ (o = e[r++]) && (t = Ne(o)) && (l && (l += " "), l += t);
265
265
  return l;
266
- }, Re = (e) => {
266
+ }, Ne = (e) => {
267
267
  if (typeof e == "string")
268
268
  return e;
269
269
  let r, o = "";
270
270
  for (let t = 0; t < e.length; t++)
271
- e[t] && (r = Re(e[t])) && (o && (o += " "), o += r);
271
+ e[t] && (r = Ne(e[t])) && (o && (o += " "), o += r);
272
272
  return o;
273
273
  }, ro = (e, ...r) => {
274
274
  let o, t, l, i;
@@ -286,7 +286,7 @@ const Le = (e, r) => {
286
286
  }, no = [], g = (e) => {
287
287
  const r = (o) => o[e] || no;
288
288
  return r.isThemeGetter = !0, r;
289
- }, Ie = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Me = /^\((?:(\w[\w-]*):)?(.+)\)$/i, so = /^\d+\/\d+$/, ao = /^(\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)\(.+\)$/, co = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, mo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, B = (e) => so.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), I = (e) => !!e && Number.isInteger(Number(e)), re = (e) => e.endsWith("%") && p(e.slice(0, -1)), R = (e) => ao.test(e), uo = () => !0, po = (e) => (
289
+ }, Ie = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Me = /^\((?:(\w[\w-]*):)?(.+)\)$/i, so = /^\d+\/\d+$/, ao = /^(\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)\(.+\)$/, co = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, mo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, E = (e) => so.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), I = (e) => !!e && Number.isInteger(Number(e)), re = (e) => e.endsWith("%") && p(e.slice(0, -1)), N = (e) => ao.test(e), uo = () => !0, po = (e) => (
290
290
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
291
291
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
292
292
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
@@ -298,7 +298,7 @@ const Le = (e, r) => {
298
298
  const t = Me.exec(e);
299
299
  return t ? t[1] ? r(t[1]) : o : !1;
300
300
  }, Pe = (e) => e === "position" || e === "percentage", Ge = (e) => e === "image" || e === "url", Oe = (e) => e === "length" || e === "size" || e === "bg-size", je = (e) => e === "length", vo = (e) => e === "number", zo = (e) => e === "family-name", Ve = (e) => e === "shadow", Co = () => {
301
- const e = g("color"), r = g("font"), o = g("text"), t = g("font-weight"), l = g("tracking"), i = g("leading"), a = g("breakpoint"), u = g("container"), c = g("spacing"), f = g("radius"), b = g("shadow"), x = g("inset-shadow"), y = g("text-shadow"), C = g("drop-shadow"), A = g("blur"), v = g("perspective"), k = g("aspect"), T = g("ease"), D = g("animate"), W = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [
301
+ const e = g("color"), r = g("font"), o = g("text"), t = g("font-weight"), l = g("tracking"), i = g("leading"), a = g("breakpoint"), u = g("container"), c = g("spacing"), f = g("radius"), b = g("shadow"), x = g("inset-shadow"), y = g("text-shadow"), C = g("drop-shadow"), A = g("blur"), v = g("perspective"), k = g("aspect"), T = g("ease"), D = g("animate"), W = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [
302
302
  "center",
303
303
  "top",
304
304
  "bottom",
@@ -316,9 +316,9 @@ const Le = (e, r) => {
316
316
  "bottom-left",
317
317
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
318
318
  "left-bottom"
319
- ], L = () => [...V(), s, n], P = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], m = () => [s, n, c], S = () => [B, "full", "auto", ...m()], ie = () => [I, "none", "subgrid", s, n], ce = () => ["auto", {
319
+ ], V = () => [...j(), s, n], P = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], m = () => [s, n, c], S = () => [E, "full", "auto", ...m()], ie = () => [I, "none", "subgrid", s, n], ce = () => ["auto", {
320
320
  span: ["full", I, s, n]
321
- }, I, s, n], Y = () => [I, "auto", s, n], de = () => ["auto", "min", "max", "fr", s, n], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], E = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], N = () => ["auto", ...m()], G = () => [B, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], d = () => [e, s, n], me = () => [...V(), ke, ye, {
321
+ }, I, s, n], Y = () => [I, "auto", s, n], de = () => ["auto", "min", "max", "fr", s, n], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], L = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...m()], G = () => [E, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], d = () => [e, s, n], me = () => [...j(), ke, ye, {
322
322
  position: [s, n]
323
323
  }], ue = () => ["no-repeat", {
324
324
  repeat: ["", "x", "y", "space", "round"]
@@ -339,28 +339,28 @@ const Le = (e, r) => {
339
339
  A,
340
340
  s,
341
341
  n
342
- ], X = () => ["none", p, s, n], J = () => ["none", p, s, n], te = () => [p, s, n], K = () => [B, "full", ...m()];
342
+ ], X = () => ["none", p, s, n], J = () => ["none", p, s, n], te = () => [p, s, n], K = () => [E, "full", ...m()];
343
343
  return {
344
344
  cacheSize: 500,
345
345
  theme: {
346
346
  animate: ["spin", "ping", "pulse", "bounce"],
347
347
  aspect: ["video"],
348
- blur: [R],
349
- breakpoint: [R],
348
+ blur: [N],
349
+ breakpoint: [N],
350
350
  color: [uo],
351
- container: [R],
352
- "drop-shadow": [R],
351
+ container: [N],
352
+ "drop-shadow": [N],
353
353
  ease: ["in", "out", "in-out"],
354
354
  font: [go],
355
355
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
356
- "inset-shadow": [R],
356
+ "inset-shadow": [N],
357
357
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
358
358
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
359
- radius: [R],
360
- shadow: [R],
359
+ radius: [N],
360
+ shadow: [N],
361
361
  spacing: ["px", p],
362
- text: [R],
363
- "text-shadow": [R],
362
+ text: [N],
363
+ "text-shadow": [N],
364
364
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
365
365
  },
366
366
  classGroups: {
@@ -372,7 +372,7 @@ const Le = (e, r) => {
372
372
  * @see https://tailwindcss.com/docs/aspect-ratio
373
373
  */
374
374
  aspect: [{
375
- aspect: ["auto", "square", B, n, s, k]
375
+ aspect: ["auto", "square", E, n, s, k]
376
376
  }],
377
377
  /**
378
378
  * Container
@@ -463,7 +463,7 @@ const Le = (e, r) => {
463
463
  * @see https://tailwindcss.com/docs/object-position
464
464
  */
465
465
  "object-position": [{
466
- object: L()
466
+ object: V()
467
467
  }],
468
468
  /**
469
469
  * Overflow
@@ -595,7 +595,7 @@ const Le = (e, r) => {
595
595
  * @see https://tailwindcss.com/docs/flex-basis
596
596
  */
597
597
  basis: [{
598
- basis: [B, "full", "auto", u, ...m()]
598
+ basis: [E, "full", "auto", u, ...m()]
599
599
  }],
600
600
  /**
601
601
  * Flex Direction
@@ -616,7 +616,7 @@ const Le = (e, r) => {
616
616
  * @see https://tailwindcss.com/docs/flex
617
617
  */
618
618
  flex: [{
619
- flex: [p, B, "auto", "initial", "none", n]
619
+ flex: [p, E, "auto", "initial", "none", n]
620
620
  }],
621
621
  /**
622
622
  * Flex Grow
@@ -749,14 +749,14 @@ const Le = (e, r) => {
749
749
  * @see https://tailwindcss.com/docs/justify-items
750
750
  */
751
751
  "justify-items": [{
752
- "justify-items": [...E(), "normal"]
752
+ "justify-items": [...L(), "normal"]
753
753
  }],
754
754
  /**
755
755
  * Justify Self
756
756
  * @see https://tailwindcss.com/docs/justify-self
757
757
  */
758
758
  "justify-self": [{
759
- "justify-self": ["auto", ...E()]
759
+ "justify-self": ["auto", ...L()]
760
760
  }],
761
761
  /**
762
762
  * Align Content
@@ -770,7 +770,7 @@ const Le = (e, r) => {
770
770
  * @see https://tailwindcss.com/docs/align-items
771
771
  */
772
772
  "align-items": [{
773
- items: [...E(), {
773
+ items: [...L(), {
774
774
  baseline: ["", "last"]
775
775
  }]
776
776
  }],
@@ -779,7 +779,7 @@ const Le = (e, r) => {
779
779
  * @see https://tailwindcss.com/docs/align-self
780
780
  */
781
781
  "align-self": [{
782
- self: ["auto", ...E(), {
782
+ self: ["auto", ...L(), {
783
783
  baseline: ["", "last"]
784
784
  }]
785
785
  }],
@@ -795,14 +795,14 @@ const Le = (e, r) => {
795
795
  * @see https://tailwindcss.com/docs/place-items
796
796
  */
797
797
  "place-items": [{
798
- "place-items": [...E(), "baseline"]
798
+ "place-items": [...L(), "baseline"]
799
799
  }],
800
800
  /**
801
801
  * Place Self
802
802
  * @see https://tailwindcss.com/docs/place-self
803
803
  */
804
804
  "place-self": [{
805
- "place-self": ["auto", ...E()]
805
+ "place-self": ["auto", ...L()]
806
806
  }],
807
807
  // Spacing
808
808
  /**
@@ -873,63 +873,63 @@ const Le = (e, r) => {
873
873
  * @see https://tailwindcss.com/docs/margin
874
874
  */
875
875
  m: [{
876
- m: N()
876
+ m: R()
877
877
  }],
878
878
  /**
879
879
  * Margin X
880
880
  * @see https://tailwindcss.com/docs/margin
881
881
  */
882
882
  mx: [{
883
- mx: N()
883
+ mx: R()
884
884
  }],
885
885
  /**
886
886
  * Margin Y
887
887
  * @see https://tailwindcss.com/docs/margin
888
888
  */
889
889
  my: [{
890
- my: N()
890
+ my: R()
891
891
  }],
892
892
  /**
893
893
  * Margin Start
894
894
  * @see https://tailwindcss.com/docs/margin
895
895
  */
896
896
  ms: [{
897
- ms: N()
897
+ ms: R()
898
898
  }],
899
899
  /**
900
900
  * Margin End
901
901
  * @see https://tailwindcss.com/docs/margin
902
902
  */
903
903
  me: [{
904
- me: N()
904
+ me: R()
905
905
  }],
906
906
  /**
907
907
  * Margin Top
908
908
  * @see https://tailwindcss.com/docs/margin
909
909
  */
910
910
  mt: [{
911
- mt: N()
911
+ mt: R()
912
912
  }],
913
913
  /**
914
914
  * Margin Right
915
915
  * @see https://tailwindcss.com/docs/margin
916
916
  */
917
917
  mr: [{
918
- mr: N()
918
+ mr: R()
919
919
  }],
920
920
  /**
921
921
  * Margin Bottom
922
922
  * @see https://tailwindcss.com/docs/margin
923
923
  */
924
924
  mb: [{
925
- mb: N()
925
+ mb: R()
926
926
  }],
927
927
  /**
928
928
  * Margin Left
929
929
  * @see https://tailwindcss.com/docs/margin
930
930
  */
931
931
  ml: [{
932
- ml: N()
932
+ ml: R()
933
933
  }],
934
934
  /**
935
935
  * Space Between X
@@ -1932,7 +1932,7 @@ const Le = (e, r) => {
1932
1932
  }]
1933
1933
  }],
1934
1934
  "mask-image-radial-pos": [{
1935
- "mask-radial-at": V()
1935
+ "mask-radial-at": j()
1936
1936
  }],
1937
1937
  "mask-image-conic-pos": [{
1938
1938
  "mask-conic": [p]
@@ -2279,7 +2279,7 @@ const Le = (e, r) => {
2279
2279
  * @see https://tailwindcss.com/docs/perspective-origin
2280
2280
  */
2281
2281
  "perspective-origin": [{
2282
- "perspective-origin": L()
2282
+ "perspective-origin": V()
2283
2283
  }],
2284
2284
  /**
2285
2285
  * Rotate
@@ -2375,7 +2375,7 @@ const Le = (e, r) => {
2375
2375
  * @see https://tailwindcss.com/docs/transform-origin
2376
2376
  */
2377
2377
  "transform-origin": [{
2378
- origin: L()
2378
+ origin: V()
2379
2379
  }],
2380
2380
  /**
2381
2381
  * Transform Style
@@ -2768,7 +2768,7 @@ const Le = (e, r) => {
2768
2768
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
2769
2769
  };
2770
2770
  }, M = /* @__PURE__ */ ro(Co);
2771
- function Ro(...e) {
2771
+ function No(...e) {
2772
2772
  return M(Ce(e));
2773
2773
  }
2774
2774
  function Io({ title: e, description: r, icon: o, className: t, button: l, textarea: i, ...a }) {
@@ -2777,11 +2777,11 @@ function Io({ title: e, description: r, icon: o, className: t, button: l, textar
2777
2777
  lg: "font-extrabold text-3xl leading-relaxed text-typography-title"
2778
2778
  };
2779
2779
  return /* @__PURE__ */ se("div", { className: "flex flex-row", children: [
2780
- o && /* @__PURE__ */ j("div", { className: M("p-3 text-primary-base", t), children: o }),
2780
+ o && /* @__PURE__ */ B("div", { className: M("p-3 text-primary-base", t), children: o }),
2781
2781
  /* @__PURE__ */ se("div", { className: "flex flex-col", children: [
2782
- e && /* @__PURE__ */ j("h2", { className: M(u.lg), children: e }),
2783
- a.header && /* @__PURE__ */ j("h4", { className: M("", u.md), children: a.header }),
2784
- r && /* @__PURE__ */ j("p", { className: M("text-sm font-inter text-typography-body ml-1", u.md), children: r })
2782
+ e && /* @__PURE__ */ B("h2", { className: M(u.lg), children: e }),
2783
+ a.header && /* @__PURE__ */ B("h4", { className: M("", u.md), children: a.header }),
2784
+ r && /* @__PURE__ */ B("p", { className: M("text-sm font-inter text-typography-body ml-1", u.md), children: r })
2785
2785
  ] })
2786
2786
  ] });
2787
2787
  }
@@ -2837,7 +2837,7 @@ const we = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ve = Ce, A
2837
2837
  // botao search company
2838
2838
  secondaryTextonly: "h-9 w-24",
2839
2839
  // botao continue
2840
- primaryBoth: "gap-2 min-h-9 min-w-44 pt-2 pb-2 pl-4 pr-4",
2840
+ primaryBoth: "gap-2 h-9 min-w-44 pt-2 pb-2 pl-4 pr-4",
2841
2841
  //create company
2842
2842
  secondaryBoth: "w-24 h-7"
2843
2843
  // botao edit and delete
@@ -2863,14 +2863,13 @@ function Mo({ icon: e, label: r, onClick: o, ...t }) {
2863
2863
  textOnly: t.textOnly,
2864
2864
  fontSize: t.fontSize
2865
2865
  })), children: [
2866
- e && /* @__PURE__ */ j("span", { className: M(t.iconClassName), children: e }),
2867
- r && /* @__PURE__ */ j("span", { className: M(t.labelClassName), children: r }),
2868
- /* @__PURE__ */ j("a", { href: "", className: "rounded-md " })
2866
+ e && /* @__PURE__ */ B("span", { className: M(t.iconClassName), children: e }),
2867
+ r && /* @__PURE__ */ B("span", { className: M(t.labelClassName), children: r })
2869
2868
  ] });
2870
2869
  }
2871
2870
  export {
2872
2871
  Mo as Button,
2873
2872
  Io as ContentBlock,
2874
- Ro as cn
2873
+ No as cn
2875
2874
  };
2876
2875
  //# sourceMappingURL=index.js.map