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 +21 -21
- package/dist/DesktopModal.es.js +2 -2
- package/dist/DialogModal.es.js +1 -1
- package/dist/IconButton.es.js +9 -9
- package/dist/Modal.es.js +2 -2
- package/dist/Select.es.js +532 -535
- package/dist/components/ActionInput/ActionInput.types.d.ts +4 -2
- package/dist/components/Select/SelectDropdown.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/prometeo-design-system.es.js +197 -198
- package/dist/styles.css +1 -1
- package/dist/{useModalControl-BE-IfhuR.js → useModalControl-3Dx1Wop_.js} +2 -2
- package/package.json +1 -1
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
|
|
3
|
-
import { c as
|
|
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 =
|
|
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
|
-
}),
|
|
35
|
+
}), k = i("shrink-0 z-10", {
|
|
36
36
|
variants: {
|
|
37
37
|
direction: {
|
|
38
38
|
vertical: "",
|
|
39
39
|
horizontal: ""
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
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
|
-
...
|
|
49
|
-
},
|
|
50
|
-
const
|
|
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:
|
|
54
|
+
return /* @__PURE__ */ o.jsx(l.Provider, { value: p, children: /* @__PURE__ */ o.jsxs(
|
|
55
55
|
"div",
|
|
56
56
|
{
|
|
57
|
-
ref:
|
|
58
|
-
className:
|
|
59
|
-
...
|
|
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:
|
|
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 =
|
|
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:
|
|
82
|
-
}), u =
|
|
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:
|
|
88
|
-
}), f =
|
|
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:
|
|
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 =
|
|
99
|
+
const c = d(y, E);
|
|
100
100
|
c.Header = m;
|
|
101
101
|
c.Content = u;
|
|
102
102
|
c.Footer = f;
|
package/dist/DesktopModal.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as u } from "./useModalControl-
|
|
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,
|
package/dist/DialogModal.es.js
CHANGED
package/dist/IconButton.es.js
CHANGED
|
@@ -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:
|
|
276
|
-
...
|
|
277
|
-
},
|
|
278
|
-
const l = !!(i || f), d = !!(B && !l),
|
|
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:
|
|
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:
|
|
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
|
-
...
|
|
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:
|
|
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-
|
|
7
|
-
import {
|
|
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() {
|