prometeo-design-system 2.6.4 → 2.6.6
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/Avatar.es.js +1 -1
- package/dist/{Button-Bc0LYLfg.js → Button-DsbEyjth.js} +1 -1
- package/dist/Button.es.js +1 -1
- package/dist/{CardProfile-DA-HDUpi.js → CardProfile-DV3gwvqE.js} +1 -1
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +1 -1
- package/dist/CheckboxFormik.es.js +1 -1
- package/dist/DatePicker.es.js +3 -3
- package/dist/DialogModal.es.js +1 -1
- package/dist/DrawerDesktop.es.js +107 -78
- package/dist/DrawerMobile.es.js +154 -123
- package/dist/DropZone.es.js +1 -1
- package/dist/FAButton.es.js +1 -1
- package/dist/Header.es.js +11 -11
- package/dist/{HelperComponent-8ErmQ_n9.js → HelperComponent-U6mPwuDH.js} +1 -1
- package/dist/Icons.es.js +1 -1
- package/dist/Image.es.js +1 -1
- package/dist/{ImageGallery-BeADef_g.js → ImageGallery-DnoRTpCr.js} +2 -2
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-BsGk4qj1.js → Input-i6OzjjFo.js} +3 -3
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +1 -1
- package/dist/InputFormikV2.es.js +2 -2
- package/dist/InputMultiple.es.js +1 -1
- package/dist/{LayoutGeneric-B6E-yOYJ.js → LayoutGeneric-CbaoatQB.js} +1 -1
- package/dist/LayoutGeneric.es.js +1 -1
- package/dist/Logo.es.js +1 -1
- package/dist/Menu.es.js +1 -1
- package/dist/OtpInput.es.js +1 -1
- package/dist/Pagination.es.js +1 -1
- package/dist/ProfilePictureUpload.es.js +2 -2
- package/dist/ProgressBar.es.js +32 -17
- package/dist/RadioButton.es.js +29 -29
- package/dist/RadioButtonFormik.es.js +1 -1
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/{Select-CSFKGhU7.js → Select-D3aU7dXF.js} +130 -130
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +2 -2
- package/dist/SelectFormikLegacy.es.js +1 -1
- package/dist/SelectSearch.es.js +2 -2
- package/dist/Skeleton.es.js +1 -1
- package/dist/Spinner.es.js +1 -1
- package/dist/Steps.es.js +1 -1
- package/dist/SwipeContainer.es.js +1 -1
- package/dist/Switch.es.js +1 -1
- package/dist/TabLinks.es.js +1 -1
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Toast.es.js +2 -2
- package/dist/ToastProvider.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/CardProfile/CardProfile.d.ts +8 -1
- package/dist/components/Drawer/DrawerDesktop.d.ts +7 -5
- package/dist/components/Drawer/DrawerMobile.d.ts +2 -0
- package/dist/components/Drawer/useDrawerDesktop.d.ts +4 -3
- package/dist/components/Drawer/useDrawerMobile.d.ts +1 -1
- package/dist/components/Header/Header.d.ts +2 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/components/RadioButton/RadioButton.d.ts +2 -0
- package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +14 -0
- package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +8 -2
- package/dist/components/RecurrentDatePicker/MonthlyFrequencySettings.d.ts +29 -0
- package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +6 -1
- package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +3 -2
- package/dist/components/RecurrentDatePicker/WeeklyFrequencySetting.d.ts +8 -0
- package/dist/components/RecurrentDatePicker/YearlyFrequencySettings.d.ts +10 -0
- package/dist/{jsx-runtime-ByW6EXIE.js → jsx-runtime-DKDX3adD.js} +94 -96
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +29 -29
- package/package.json +9 -9
package/dist/Avatar.es.js
CHANGED
package/dist/Button.es.js
CHANGED
package/dist/CardProfile.es.js
CHANGED
package/dist/CheckBox.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as a } from "./jsx-runtime-
|
|
1
|
+
import { j as a } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { Icons as x } from "./Icons.es.js";
|
|
3
3
|
import { memo as b, useId as n, useRef as m, useCallback as k } from "react";
|
|
4
4
|
const s = ({ className: c, disabled: e, ...t }) => {
|
package/dist/DatePicker.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as q } from "./jsx-runtime-
|
|
1
|
+
import { j as q } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import m, { createContext as mn, useContext as hn, useCallback as R, useRef as Se, useLayoutEffect as yn, useState as he, useEffect as _e, useMemo as fe, memo as pn } from "react";
|
|
3
3
|
import { InputMultiple as gn } from "./InputMultiple.es.js";
|
|
4
|
-
import { I as wn } from "./Input-
|
|
4
|
+
import { I as wn } from "./Input-i6OzjjFo.js";
|
|
5
5
|
import { createPortal as bn } from "react-dom";
|
|
6
6
|
import { Icons as Mt } from "./Icons.es.js";
|
|
7
7
|
import { c as Be } from "./cn-B6yFEsav.js";
|
|
8
|
-
import { B as vt } from "./Button-
|
|
8
|
+
import { B as vt } from "./Button-DsbEyjth.js";
|
|
9
9
|
function Mn(e, t, n = "long") {
|
|
10
10
|
return new Intl.DateTimeFormat("en-US", {
|
|
11
11
|
// Enforces engine to render the time. Without the option JavaScriptCore omits it.
|
package/dist/DialogModal.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-
|
|
1
|
+
import { j as o } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { forwardRef as h, memo as s, useState as D, useRef as p, useCallback as n, useImperativeHandle as R } from "react";
|
|
3
3
|
import { c as j } from "./cn-B6yFEsav.js";
|
|
4
4
|
const C = h(
|
package/dist/DrawerDesktop.es.js
CHANGED
|
@@ -1,57 +1,83 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { Icons as
|
|
6
|
-
import { forwardRef as
|
|
7
|
-
const
|
|
8
|
-
const [
|
|
1
|
+
import { j as a } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { c as h } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { c as k, B as E } from "./Button-DsbEyjth.js";
|
|
4
|
+
import { createPortal as I } from "react-dom";
|
|
5
|
+
import { Icons as V } from "./Icons.es.js";
|
|
6
|
+
import { forwardRef as B, useRef as i, useState as N, useEffect as u, useCallback as d, useImperativeHandle as P } from "react";
|
|
7
|
+
const L = B((t, f) => {
|
|
8
|
+
const n = i(null), [e, s] = N(t.defaultOpen || !1), [r, b] = N(null), x = i(t.onClose), l = i(r), {
|
|
9
9
|
modal: c = !1,
|
|
10
|
-
children:
|
|
11
|
-
className:
|
|
12
|
-
direction:
|
|
13
|
-
attachToParent:
|
|
14
|
-
closeOnOverlayClick:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, []),
|
|
22
|
-
|
|
10
|
+
children: v,
|
|
11
|
+
className: w,
|
|
12
|
+
direction: C = "left",
|
|
13
|
+
attachToParent: o = !1,
|
|
14
|
+
closeOnOverlayClick: m = !1,
|
|
15
|
+
hideCloseButton: T = !1
|
|
16
|
+
} = t, g = i(m), O = i(e);
|
|
17
|
+
l.current = r, u(() => {
|
|
18
|
+
O.current = e;
|
|
19
|
+
}, [e]), u(() => {
|
|
20
|
+
l.current = r;
|
|
21
|
+
}, [r]), u(() => {
|
|
22
|
+
g.current = m;
|
|
23
|
+
}, [m]);
|
|
24
|
+
const R = (p) => {
|
|
25
|
+
if (!n.current)
|
|
26
|
+
return;
|
|
27
|
+
const z = n.current;
|
|
28
|
+
z && !z.contains(p.target) && g.current && O.current && y();
|
|
29
|
+
};
|
|
30
|
+
u(() => {
|
|
31
|
+
if (!g.current || c || !e)
|
|
32
|
+
return;
|
|
33
|
+
const p = setTimeout(() => {
|
|
34
|
+
document.addEventListener("click", R);
|
|
35
|
+
}, 0);
|
|
36
|
+
return () => {
|
|
37
|
+
clearTimeout(p), document.removeEventListener("click", R);
|
|
38
|
+
};
|
|
39
|
+
}, [m, e, c]), u(() => {
|
|
40
|
+
x.current = t.onClose;
|
|
41
|
+
}, [t.onClose]);
|
|
42
|
+
const j = d((p) => {
|
|
43
|
+
b(p ?? null), s(!0);
|
|
44
|
+
}, []), y = d(() => {
|
|
45
|
+
s(!1), x.current?.(l.current), setTimeout(() => b(null), 300);
|
|
23
46
|
}, []);
|
|
24
|
-
|
|
25
|
-
open:
|
|
26
|
-
close:
|
|
27
|
-
isOpen:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
47
|
+
P(f, () => ({
|
|
48
|
+
open: j,
|
|
49
|
+
close: y,
|
|
50
|
+
isOpen: e,
|
|
51
|
+
getContext: () => l.current
|
|
52
|
+
}), [e, j, y]);
|
|
53
|
+
const D = /* @__PURE__ */ a.jsx(
|
|
54
|
+
Y,
|
|
31
55
|
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
56
|
+
ref: n,
|
|
57
|
+
isOpen: e,
|
|
58
|
+
close: y,
|
|
59
|
+
direction: C,
|
|
35
60
|
modal: c,
|
|
36
|
-
className:
|
|
37
|
-
attachToParent:
|
|
38
|
-
closeOnOverlayClick:
|
|
39
|
-
|
|
61
|
+
className: w,
|
|
62
|
+
attachToParent: o,
|
|
63
|
+
closeOnOverlayClick: m,
|
|
64
|
+
hideCloseButton: T,
|
|
65
|
+
children: v
|
|
40
66
|
}
|
|
41
67
|
);
|
|
42
|
-
return
|
|
68
|
+
return o ? D : I(D, document.body);
|
|
43
69
|
});
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
if (
|
|
48
|
-
const
|
|
49
|
-
return document.body.style.position = "fixed", document.body.style.top = `-${
|
|
50
|
-
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0,
|
|
70
|
+
L.displayName = "DrawerDesktopV2";
|
|
71
|
+
const Y = ({ ref: t, children: f, direction: n = "left", isOpen: e, close: s, modal: r = !1, className: b, attachToParent: x = !1, closeOnOverlayClick: l = !1, hideCloseButton: c = !1 }) => {
|
|
72
|
+
u(() => {
|
|
73
|
+
if (e && r) {
|
|
74
|
+
const o = window.scrollY;
|
|
75
|
+
return document.body.style.position = "fixed", document.body.style.top = `-${o}px`, document.body.style.width = "100%", () => {
|
|
76
|
+
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, o);
|
|
51
77
|
};
|
|
52
78
|
}
|
|
53
|
-
}, [
|
|
54
|
-
const
|
|
79
|
+
}, [e, r]);
|
|
80
|
+
const v = k("border-neutral-strong-default", {
|
|
55
81
|
variants: {
|
|
56
82
|
isOpen: {
|
|
57
83
|
true: "desktop-drawer-visible",
|
|
@@ -62,14 +88,14 @@ const z = ({ children: e, direction: a = "left", isOpen: t, close: n, modal: o =
|
|
|
62
88
|
right: "right-0 border-l-[1px] border-r-0"
|
|
63
89
|
}
|
|
64
90
|
}
|
|
65
|
-
}),
|
|
91
|
+
}), w = k("fixed inset-0 bg-black/60 z-[55] cursor-default", {
|
|
66
92
|
variants: {
|
|
67
93
|
isOpen: {
|
|
68
94
|
true: "drawer-overlay-visible",
|
|
69
95
|
false: "drawer-overlay-hidden"
|
|
70
96
|
}
|
|
71
97
|
}
|
|
72
|
-
}),
|
|
98
|
+
}), C = k("", {
|
|
73
99
|
variants: {
|
|
74
100
|
direction: {
|
|
75
101
|
left: "right-0",
|
|
@@ -77,66 +103,69 @@ const z = ({ children: e, direction: a = "left", isOpen: t, close: n, modal: o =
|
|
|
77
103
|
}
|
|
78
104
|
}
|
|
79
105
|
});
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
|
|
106
|
+
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
107
|
+
r && /* @__PURE__ */ a.jsx(
|
|
82
108
|
"div",
|
|
83
109
|
{
|
|
84
|
-
className:
|
|
85
|
-
onClick: (
|
|
86
|
-
|
|
110
|
+
className: h(w({ isOpen: e })),
|
|
111
|
+
onClick: (o) => {
|
|
112
|
+
o.preventDefault(), o.stopPropagation(), l && s();
|
|
87
113
|
},
|
|
88
114
|
"aria-hidden": "true"
|
|
89
115
|
}
|
|
90
116
|
),
|
|
91
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ a.jsxs(
|
|
92
118
|
"div",
|
|
93
119
|
{
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
120
|
+
ref: t,
|
|
121
|
+
className: h(
|
|
122
|
+
"bg-neutral-strong-default h-full top-0 z-60 w-max overflow-y-auto",
|
|
123
|
+
x ? "absolute" : "fixed",
|
|
124
|
+
v({ isOpen: e, direction: n }),
|
|
125
|
+
!c && "p-4 pt-10",
|
|
126
|
+
b
|
|
99
127
|
),
|
|
100
128
|
role: "dialog",
|
|
101
|
-
"aria-modal":
|
|
129
|
+
"aria-modal": r,
|
|
102
130
|
children: [
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
|
|
131
|
+
!c && /* @__PURE__ */ a.jsx(
|
|
132
|
+
E,
|
|
105
133
|
{
|
|
106
|
-
icon: /* @__PURE__ */
|
|
134
|
+
icon: /* @__PURE__ */ a.jsx(V.Close, { size: 24 }),
|
|
107
135
|
animate: !1,
|
|
108
136
|
type: "button",
|
|
109
137
|
size: "small",
|
|
110
138
|
variant: "text",
|
|
111
|
-
onClick:
|
|
139
|
+
onClick: s,
|
|
112
140
|
label: "",
|
|
113
141
|
color: "secondary",
|
|
114
|
-
className:
|
|
142
|
+
className: h(
|
|
115
143
|
"absolute top-0 z-50",
|
|
116
|
-
|
|
144
|
+
C({ direction: n })
|
|
117
145
|
),
|
|
118
146
|
"aria-label": "Close drawer"
|
|
119
147
|
}
|
|
120
148
|
),
|
|
121
|
-
|
|
149
|
+
f
|
|
122
150
|
]
|
|
123
151
|
}
|
|
124
152
|
)
|
|
125
153
|
] });
|
|
126
|
-
},
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
}, []),
|
|
130
|
-
|
|
131
|
-
}, []);
|
|
154
|
+
}, G = () => {
|
|
155
|
+
const t = i(null), f = d((r) => {
|
|
156
|
+
t.current?.open(r);
|
|
157
|
+
}, []), n = d(() => {
|
|
158
|
+
t.current?.close();
|
|
159
|
+
}, []), e = d(() => t.current?.isOpen ?? !1, []), s = d(() => t.current?.getContext() ?? null, []);
|
|
132
160
|
return {
|
|
133
|
-
isOpen:
|
|
134
|
-
open:
|
|
135
|
-
close:
|
|
136
|
-
drawerRef:
|
|
161
|
+
isOpen: e,
|
|
162
|
+
open: f,
|
|
163
|
+
close: n,
|
|
164
|
+
drawerRef: t,
|
|
165
|
+
getContext: s
|
|
137
166
|
};
|
|
138
167
|
};
|
|
139
168
|
export {
|
|
140
|
-
|
|
141
|
-
|
|
169
|
+
L as default,
|
|
170
|
+
G as useDrawerDesktop
|
|
142
171
|
};
|