prometeo-design-system 7.3.1 → 7.3.3

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/Card.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { j as o } from "./jsx-runtime-GkKLlHH4.js";
2
- import { createContext as p, useContext as j, memo as s, forwardRef as w, useMemo as z } from "react";
3
- import { c as d } from "./cn-B6yFEsav.js";
2
+ import { createContext as N, useContext as j, memo as d, forwardRef as w, useMemo as z } from "react";
3
+ import { c as s } from "./cn-B6yFEsav.js";
4
4
  import { c as i } from "./index-BOQuZ0gG.js";
5
5
  import F from "./CardBackground.es.js";
6
- const l = p(null);
6
+ const l = N(null);
7
7
  function C() {
8
8
  const a = j(l);
9
9
  if (!a)
@@ -13,7 +13,7 @@ function C() {
13
13
  return a;
14
14
  }
15
15
  const H = i(
16
- "relative overflow-hidden dropshadow-100 radius-medium border border-neutral-default-default",
16
+ "relative overflow-hidden dropshadow-100 radius-medium border border-neutral-default-default p-3 shrink-0",
17
17
  {
18
18
  variants: {
19
19
  direction: {
@@ -32,37 +32,37 @@ const H = i(
32
32
  horizontal: ""
33
33
  }
34
34
  }
35
- }), b = i("shrink-0 z-10", {
35
+ }), k = i("shrink-0 z-10", {
36
36
  variants: {
37
37
  direction: {
38
38
  vertical: "",
39
39
  horizontal: ""
40
40
  }
41
41
  }
42
- }), k = i("flex-1 min-h-0 min-w-0 z-10"), y = w(function({
42
+ }), b = i("flex-1 min-h-0 min-w-0 z-10"), y = w(function({
43
43
  variant: r = "1-slot",
44
44
  direction: t = "vertical",
45
45
  cardBackground: e,
46
46
  children: n,
47
47
  className: x,
48
- ...v
49
- }, h) {
50
- const N = z(
48
+ ...h
49
+ }, v) {
50
+ const p = z(
51
51
  () => ({ variant: r, direction: t }),
52
52
  [r, t]
53
53
  );
54
- return /* @__PURE__ */ o.jsx(l.Provider, { value: N, children: /* @__PURE__ */ o.jsxs(
54
+ return /* @__PURE__ */ o.jsx(l.Provider, { value: p, children: /* @__PURE__ */ o.jsxs(
55
55
  "div",
56
56
  {
57
- ref: h,
58
- className: d(H({ direction: t }), x),
59
- ...v,
57
+ ref: v,
58
+ className: s(H({ direction: t }), x),
59
+ ...h,
60
60
  children: [
61
61
  /* @__PURE__ */ o.jsx(
62
62
  F,
63
63
  {
64
64
  ...e,
65
- className: d(
65
+ className: s(
66
66
  "inset-0 absolute z-0",
67
67
  e?.className
68
68
  )
@@ -72,31 +72,31 @@ const H = i(
72
72
  ]
73
73
  }
74
74
  ) });
75
- }), m = s(function({
75
+ }), m = d(function({
76
76
  children: r,
77
77
  className: t,
78
78
  ...e
79
79
  }) {
80
80
  const { direction: n } = C();
81
- return /* @__PURE__ */ o.jsx("div", { className: d(V({ direction: n }), t), ...e, children: r });
82
- }), u = s(function({
81
+ return /* @__PURE__ */ o.jsx("div", { className: s(V({ direction: n }), t), ...e, children: r });
82
+ }), u = d(function({
83
83
  children: r,
84
84
  className: t,
85
85
  ...e
86
86
  }) {
87
- return /* @__PURE__ */ o.jsx("div", { className: d(k(), t), ...e, children: r });
88
- }), f = s(function({
87
+ return /* @__PURE__ */ o.jsx("div", { className: s(b(), t), ...e, children: r });
88
+ }), f = d(function({
89
89
  children: r,
90
90
  className: t,
91
91
  ...e
92
92
  }) {
93
93
  const { direction: n } = C();
94
- return /* @__PURE__ */ o.jsx("div", { className: d(b({ direction: n }), t), ...e, children: r });
94
+ return /* @__PURE__ */ o.jsx("div", { className: s(k({ direction: n }), t), ...e, children: r });
95
95
  });
96
96
  function E(a, r) {
97
97
  return a.variant === r.variant && a.direction === r.direction && a.className === r.className && a.children === r.children && a.cardBackground === r.cardBackground;
98
98
  }
99
- const c = s(y, E);
99
+ const c = d(y, E);
100
100
  c.Header = m;
101
101
  c.Content = u;
102
102
  c.Footer = f;
@@ -1,5 +1,5 @@
1
- import { a as o, u as t } from "./useModalControl-BE-IfhuR.js";
2
- import { D as u } from "./useModalControl-BE-IfhuR.js";
1
+ import { u as o, a as t } from "./useModalControl-3Dx1Wop_.js";
2
+ import { D as u } from "./useModalControl-3Dx1Wop_.js";
3
3
  const e = o, s = t;
4
4
  export {
5
5
  u as default,
@@ -1,4 +1,4 @@
1
- import { D as t } from "./useModalControl-BE-IfhuR.js";
1
+ import { D as t } from "./useModalControl-3Dx1Wop_.js";
2
2
  import { useDesktopModalControl as s, useDesktopModalState as l } from "./DesktopModal.es.js";
3
3
  export {
4
4
  t as default,
@@ -115,7 +115,7 @@ const u = {
115
115
  container: ""
116
116
  }
117
117
  }, w = {
118
- container: "flex justify-center items-center gap-1 w-max bg-transparent cursor-pointer transition-all ease-in-out duration-300 relative",
118
+ container: "flex justify-center items-center gap-1 w-max bg-transparent cursor-pointer transition-all ease-in-out duration-300 relative shrink-0",
119
119
  icon: "w-max transition-all ease-in-out duration-300 flex justify-center items-center overflow-hidden"
120
120
  }, V = {
121
121
  true: {
@@ -272,16 +272,16 @@ const u = {
272
272
  variant: s = "fill",
273
273
  form: M,
274
274
  size: o = "medium",
275
- color: A = "brand",
276
- ...C
277
- }, D) => {
278
- const l = !!(i || f), d = !!(B && !l), T = !!(S && !l), c = A, k = {
275
+ color: k = "brand",
276
+ ...A
277
+ }, C) => {
278
+ const l = !!(i || f), d = !!(B && !l), D = !!(S && !l), c = k, T = {
279
279
  small: "small",
280
280
  medium: "medium",
281
281
  large: "medium"
282
282
  }, q = H(() => {
283
283
  if (f)
284
- return /* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-center", children: !j && (g || /* @__PURE__ */ n.jsx(J, { size: k[o], color: "brand" })) });
284
+ return /* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-center", children: !j && (g || /* @__PURE__ */ n.jsx(J, { size: T[o], color: "brand" })) });
285
285
  let a = null;
286
286
  if (r)
287
287
  if (I(r))
@@ -363,7 +363,7 @@ const u = {
363
363
  return /* @__PURE__ */ n.jsx(
364
364
  "button",
365
365
  {
366
- ref: D,
366
+ ref: C,
367
367
  type: R,
368
368
  className: h(
369
369
  "group",
@@ -376,11 +376,11 @@ const u = {
376
376
  disabled: l,
377
377
  form: M,
378
378
  onClick: z,
379
- ...C,
379
+ ...A,
380
380
  children: /* @__PURE__ */ n.jsx("div", { className: h(
381
381
  "flex items-center gap-1",
382
382
  l && "pointer-events-none",
383
- O({ size: o, variant: s, color: c, animation: T, disabled: l }),
383
+ O({ size: o, variant: s, color: c, animation: D, disabled: l }),
384
384
  "w-full h-full grid place-items-center",
385
385
  p
386
386
  ), children: q })
package/dist/Modal.es.js CHANGED
@@ -3,8 +3,8 @@ import { u as V } from "./useDevice-S7cYqLVh.js";
3
3
  import { createContext as q, useContext as G, memo as J, useState as L, useEffect as H, useRef as Q, isValidElement as d, Children as S, Fragment as W } from "react";
4
4
  import { createPortal as p } from "react-dom";
5
5
  import { D as X, u as M } from "./DrawerMobile-BzwNbhK7.js";
6
- import { D as m } from "./useModalControl-BE-IfhuR.js";
7
- import { a as ce, u as me } from "./useModalControl-BE-IfhuR.js";
6
+ import { D as m } from "./useModalControl-3Dx1Wop_.js";
7
+ import { u as ce, a as me } from "./useModalControl-3Dx1Wop_.js";
8
8
  import { c as A } from "./cn-B6yFEsav.js";
9
9
  const D = q(null);
10
10
  function j() {