prometeo-design-system 2.6.7 → 2.7.0
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/{Button-DsbEyjth.js → Button-CvBWH1HX.js} +8 -8
- package/dist/Button.es.js +1 -1
- package/dist/ButtonV2.d.ts +6 -0
- package/dist/ButtonV2.es.js +217 -0
- package/dist/CheckboxFormik.es.js +10 -10
- package/dist/DatePicker.es.js +2 -2
- package/dist/DrawerDesktop.es.js +1 -1
- package/dist/DropZone.es.js +5 -5
- package/dist/FAButton.es.js +1 -1
- package/dist/Header.es.js +11 -11
- package/dist/{ImageGallery-DnoRTpCr.js → ImageGallery-DKzJg3un.js} +1 -1
- package/dist/ImageGallery.es.js +1 -1
- package/dist/Input-BTsR-vNF.js +281 -0
- package/dist/Input.es.js +1 -1
- package/dist/InputFormikV2.es.js +1 -1
- package/dist/Pagination.es.js +8 -8
- package/dist/ProfilePictureUpload.es.js +3 -3
- package/dist/Select-BQMdfu1n.js +1003 -0
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectFormikLegacy.es.js +14 -14
- package/dist/SelectSearch.es.js +66 -63
- package/dist/TabLinks.es.js +8 -8
- package/dist/TextArea.es.js +28 -26
- package/dist/Toast.es.js +1 -1
- package/dist/components/Button/ButtonV2.d.ts +23 -0
- package/dist/components/Header/Header.d.ts +2 -1
- package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +29 -3
- package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +2 -1
- package/dist/components/RecurrentDatePicker/MonthlyFrequencySettings.d.ts +9 -3
- package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +28 -1
- package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +1 -0
- package/dist/components/RecurrentDatePicker/WeeklyFrequencySetting.d.ts +2 -1
- package/dist/components/RecurrentDatePicker/YearlyFrequencySettings.d.ts +13 -2
- package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +69 -0
- package/dist/components/Select/Select.d.ts +18 -0
- package/dist/components/TextArea/TextArea.d.ts +2 -1
- package/dist/exports/ButtonV2.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/preview/ButtonPreview.d.ts +2 -0
- package/dist/preview/SelectPreview/SelectGroupedOptionsPreview.d.ts +2 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +21 -19
- package/package.json +5 -2
- package/src/styles/intellisense.css +2 -1
- package/dist/Input-i6OzjjFo.js +0 -280
- package/dist/Select-D3aU7dXF.js +0 -812
- package/dist/components/Drawer/DrawerDesktop_old.d.ts +0 -15
- package/dist/components/Drawer/DrawerMobile_old.d.ts +0 -18
|
@@ -2,14 +2,14 @@ import { j as f } from "./jsx-runtime-DKDX3adD.js";
|
|
|
2
2
|
import { c as g } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { clsx as B } from "clsx";
|
|
4
4
|
import { useAnimationControls as E, motion as j } from "framer-motion";
|
|
5
|
-
import { memo as P, useCallback as
|
|
6
|
-
const
|
|
5
|
+
import { memo as P, useCallback as C, useMemo as h } from "react";
|
|
6
|
+
const V = (l) => typeof l == "boolean" ? `${l}` : l === 0 ? "0" : l, w = B, _ = (l, d) => (e) => {
|
|
7
7
|
var m;
|
|
8
|
-
if (d?.variants == null) return
|
|
8
|
+
if (d?.variants == null) return w(l, e?.class, e?.className);
|
|
9
9
|
const { variants: v, defaultVariants: t } = d, n = Object.keys(v).map((s) => {
|
|
10
10
|
const u = e?.[s], i = t?.[s];
|
|
11
11
|
if (u === null) return null;
|
|
12
|
-
const o =
|
|
12
|
+
const o = V(u) || V(i);
|
|
13
13
|
return v[s][o];
|
|
14
14
|
}), r = e && Object.entries(e).reduce((s, u) => {
|
|
15
15
|
let [i, o] = u;
|
|
@@ -31,7 +31,7 @@ const C = (l) => typeof l == "boolean" ? `${l}` : l === 0 ? "0" : l, V = B, _ =
|
|
|
31
31
|
o
|
|
32
32
|
] : s;
|
|
33
33
|
}, []);
|
|
34
|
-
return
|
|
34
|
+
return w(l, n, a, e?.class, e?.className);
|
|
35
35
|
}, $ = _(
|
|
36
36
|
"flex items-center justify-center cursor-pointer focus:outline-none font-semibold rounded-md transition-colors",
|
|
37
37
|
{
|
|
@@ -51,7 +51,7 @@ const C = (l) => typeof l == "boolean" ? `${l}` : l === 0 ? "0" : l, V = B, _ =
|
|
|
51
51
|
large: "h-[56px] w-[145px] w-fit px-4 py-3 text-base"
|
|
52
52
|
},
|
|
53
53
|
disabled: {
|
|
54
|
-
true: "opacity-50 cursor-
|
|
54
|
+
true: "opacity-50 cursor-default",
|
|
55
55
|
false: ""
|
|
56
56
|
},
|
|
57
57
|
loading: {
|
|
@@ -125,9 +125,9 @@ function z({
|
|
|
125
125
|
form: x,
|
|
126
126
|
...N
|
|
127
127
|
}) {
|
|
128
|
-
const c = E(), H =
|
|
128
|
+
const c = E(), H = C(() => {
|
|
129
129
|
!t || a || r || !n || c.start({ rotate: 90 });
|
|
130
|
-
}, [t, a, r, n, c]), S =
|
|
130
|
+
}, [t, a, r, n, c]), S = C(() => {
|
|
131
131
|
!t || a || r || !n || c.start({ rotate: 0 });
|
|
132
132
|
}, [t, a, r, n, c]), k = h(() => g(
|
|
133
133
|
$({
|
package/dist/Button.es.js
CHANGED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { memo as N, useMemo as V } from "react";
|
|
3
|
+
import B from "./Spinner.es.js";
|
|
4
|
+
const M = {
|
|
5
|
+
small: {
|
|
6
|
+
container: "h-10 px-4 py-2",
|
|
7
|
+
label: "",
|
|
8
|
+
icon: ""
|
|
9
|
+
},
|
|
10
|
+
medium: {
|
|
11
|
+
container: "h-12 px-6 py-2",
|
|
12
|
+
label: "",
|
|
13
|
+
icon: ""
|
|
14
|
+
},
|
|
15
|
+
large: {
|
|
16
|
+
container: "h-14 px-6 py-2",
|
|
17
|
+
label: "",
|
|
18
|
+
icon: ""
|
|
19
|
+
}
|
|
20
|
+
}, n = {
|
|
21
|
+
filled: {
|
|
22
|
+
primary: {
|
|
23
|
+
container: ` bg-primary-default-default border-primary-default-default
|
|
24
|
+
hover:bg-primary-default-hover
|
|
25
|
+
active:bg-primary-default-focused
|
|
26
|
+
`,
|
|
27
|
+
label: " text-neutral-strong-default! group-hover:text-neutral-strong-hover! group-active:text-neutral-strong-pressed!",
|
|
28
|
+
icon: " text-neutral-strong-default! group-hover:text-neutral-strong-hover! group-active:text-neutral-strong-pressed!"
|
|
29
|
+
},
|
|
30
|
+
secondary: {
|
|
31
|
+
container: `bg-neutral-medium-default border-neutral-medium-default
|
|
32
|
+
hover:bg-neutral-medium-hover
|
|
33
|
+
active:bg-neutral-medium-pressed`,
|
|
34
|
+
label: "text-neutral-strong-default! group-hover:text-neutral-strong-hover! group-active:text-neutral-strong-pressed!",
|
|
35
|
+
icon: "text-neutral-strong-default! group-hover:text-neutral-strong-hover! group-active:text-neutral-strong-pressed!"
|
|
36
|
+
},
|
|
37
|
+
success: {
|
|
38
|
+
container: "bg-success-default-default border-success-default-default hover:bg-success-default-hover active:bg-success-default-pressed",
|
|
39
|
+
label: "text-neutral-weak-default group-hover:text-neutral-weak-hover group-active:text-neutral-weak-pressed",
|
|
40
|
+
icon: "text-neutral-weak-default group-hover:text-neutral-weak-hover group-active:text-neutral-weak-pressed"
|
|
41
|
+
},
|
|
42
|
+
error: {
|
|
43
|
+
container: "bg-error-default-default hover:bg-error-default-hover active:bg-error-default-pressed",
|
|
44
|
+
label: "text-neutral-strong-default group-hover:text-neutral-strong-hover group-active:text-neutral-strong-pressed",
|
|
45
|
+
icon: "text-neutral-strong-default group-hover:text-neutral-strong-hover group-active:text-neutral-strong-pressed"
|
|
46
|
+
},
|
|
47
|
+
warning: {
|
|
48
|
+
container: "bg-warning-default-default hover:bg-warning-default-hover active:bg-warning-default-pressed",
|
|
49
|
+
label: "text-neutral-weak-default group-hover:text-neutral-weak-hover group-active:text-neutral-weak-pressed",
|
|
50
|
+
icon: "text-neutral-weak-default group-hover:text-neutral-weak-hover group-active:text-neutral-weak-pressed"
|
|
51
|
+
},
|
|
52
|
+
disabled: {
|
|
53
|
+
container: "bg-primary-medium-disabled border-transparent cursor-default!",
|
|
54
|
+
label: "text-neutral-strong-disabled group-hover:text-neutral-strong-disabled group-active:text-neutral-strong-disabled",
|
|
55
|
+
icon: "text-neutral-strong-disabled group-hover:text-neutral-strong-disabled group-active:text-neutral-strong-disabled"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
outlined: {
|
|
59
|
+
primary: {
|
|
60
|
+
container: `bg-transparent border-primary-default-default border
|
|
61
|
+
hover:bg-neutral-default-hover hover:border-primary-medium-hover
|
|
62
|
+
active:bg-neutral-default-pressed active:border-primary-medium-pressed
|
|
63
|
+
`,
|
|
64
|
+
label: "text-primary-default-default group-hover:text-primary-medium-hover group-active:text-primary-medium-pressed",
|
|
65
|
+
icon: "text-primary-default-default group-hover:text-primary-medium-hover group-active:text-primary-medium-pressed"
|
|
66
|
+
},
|
|
67
|
+
secondary: {
|
|
68
|
+
container: "bg-transparent border-neutral-medium-default border hover:bg-neutral-default-hover hover:border-neutral-medium-hover active:bg-neutral-default-pressed active:border-neutral-medium-pressed",
|
|
69
|
+
label: "text-neutral-strong-default group-hover:text-neutral-storng-hover group-active:text-neutral-storng-pressed",
|
|
70
|
+
icon: "text-neutral-strong-default group-hover:text-neutral-storng-hover group-active:text-neutral-storng-pressed"
|
|
71
|
+
},
|
|
72
|
+
success: {
|
|
73
|
+
container: "border border-success-default-default hover:border-success-default-hover hover:bg-neutral-default-hover active:border-success-default-pressed active:bg-neutral-default-pressed",
|
|
74
|
+
label: "text-success-medium-default group-hover:text-success-medium-hover group-active:text-success-medium-pressed",
|
|
75
|
+
icon: "text-success-medium-default group-hover:text-success-medium-hover group-active:text-success-medium-pressed"
|
|
76
|
+
},
|
|
77
|
+
error: {
|
|
78
|
+
container: "border border-error-default-default hover:border-error-default-hover hover:bg-neutral-default-hover active:border-error-default-pressed active:bg-neutral-default-pressed",
|
|
79
|
+
label: "text-error-medium-default group-hover:text-error-medium-hover group-active:text-error-medium-pressed",
|
|
80
|
+
icon: "text-error-medium-default group-hover:text-error-medium-hover group-active:text-error-medium-pressed"
|
|
81
|
+
},
|
|
82
|
+
warning: {
|
|
83
|
+
container: "border border-warning-default-default hover:border-warning-default-hover hover:bg-neutral-default-hover active:border-warning-default-pressed active:bg-neutral-default-pressed",
|
|
84
|
+
label: "text-warning-medium-default group-hover:text-warning-medium-hover group-active:text-warning-medium-pressed",
|
|
85
|
+
icon: "text-warning-medium-default group-hover:text-warning-medium-hover group-active:text-warning-medium-pressed"
|
|
86
|
+
},
|
|
87
|
+
disabled: {
|
|
88
|
+
container: "bg-neutral-default-disabled border-neutral-default-disabled border cursor-default!",
|
|
89
|
+
label: "text-neutral-default-disabled group-hover:text-neutral-default-disabled group-active:text-neutral-default-disabled",
|
|
90
|
+
icon: "text-neutral-default-disabled group-hover:text-neutral-default-disabled group-active:text-neutral-default-disabled"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
text: {
|
|
94
|
+
primary: {
|
|
95
|
+
container: " bg-transparent border-0 text-primary-default-default hover:bg-neutral-default-hover hover:border-primary-medium-hover active:bg-neutral-default-pressed",
|
|
96
|
+
label: "text-primary-default-default group-hover:text-primary-medium-hover group-active:text-primary-medium-pressed",
|
|
97
|
+
icon: "text-primary-default-default group-hover:text-primary-medium-hover group-active:text-primary-medium-pressed"
|
|
98
|
+
},
|
|
99
|
+
secondary: {
|
|
100
|
+
container: "bg-transparent border-0 hover:bg-neutral-default-hover hover:border-neutral-medium-hover active:bg-neutral-default-pressed",
|
|
101
|
+
label: "text-neutral-strong-hover group-hover:text-neutral-storng-hover group-active:text-neutral-storng-pressed",
|
|
102
|
+
icon: "text-neutral-strong-hover group-hover:text-neutral-storng-hover group-active:text-neutral-storng-pressed"
|
|
103
|
+
},
|
|
104
|
+
success: {
|
|
105
|
+
container: "border border-transparent hover:border-success-default-hover hover:bg-neutral-default-hover hover:border-success-default-hover active:border-success-default-pressed active:bg-neutral-default-pressed",
|
|
106
|
+
label: "text-success-medium-default group-hover:text-success-medium-hover group-active:text-success-medium-pressed",
|
|
107
|
+
icon: "text-success-medium-default group-hover:text-success-medium-hover group-active:text-success-medium-pressed"
|
|
108
|
+
},
|
|
109
|
+
error: {
|
|
110
|
+
container: "border border-transparent hover:border-error-default-hover hover:bg-neutral-default-hover hover:border-error-default-hover active:border-error-default-pressed active:bg-neutral-default-pressed",
|
|
111
|
+
label: "text-error-medium-default group-hover:text-error-medium-hover group-active:text-error-medium-pressed",
|
|
112
|
+
icon: "text-error-medium-default group-hover:text-error-medium-hover group-active:text-error-medium-pressed"
|
|
113
|
+
},
|
|
114
|
+
warning: {
|
|
115
|
+
container: "border border-transparent hover:border-warning-default-hover hover:bg-neutral-default-hover hover:border-warning-default-hover active:border-warning-default-pressed active:bg-neutral-default-pressed",
|
|
116
|
+
label: "text-warning-medium-default group-hover:text-warning-medium-hover group-active:text-warning-medium-pressed",
|
|
117
|
+
icon: "text-warning-medium-default group-hover:text-warning-medium-hover group-active:text-warning-medium-pressed"
|
|
118
|
+
},
|
|
119
|
+
disabled: {
|
|
120
|
+
container: "bg-transparent border-neutral-default-disabled border-none cursor-default! hover:bg-transparent",
|
|
121
|
+
label: "text-neutral-medium-focused group-hover:text-neutral-medium-focused group-active:text-neutral-medium-focused",
|
|
122
|
+
icon: "text-neutral-medium-focused group-hover:text-neutral-medium-focused group-active:text-neutral-medium-focused"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}, l = {
|
|
126
|
+
small: {
|
|
127
|
+
container: "",
|
|
128
|
+
label: "prometeo-fonts-label-large",
|
|
129
|
+
icon: ""
|
|
130
|
+
},
|
|
131
|
+
medium: {
|
|
132
|
+
container: "",
|
|
133
|
+
label: "prometeo-fonts-label-xlarge",
|
|
134
|
+
icon: ""
|
|
135
|
+
},
|
|
136
|
+
large: {
|
|
137
|
+
container: "",
|
|
138
|
+
label: "prometeo-fonts-label-xlarge",
|
|
139
|
+
icon: ""
|
|
140
|
+
}
|
|
141
|
+
}, c = {
|
|
142
|
+
container: "flex items-center gap-1 w-max rounded-lg bg-transparent cursor-pointer transition-all ease-in-out duration-300",
|
|
143
|
+
label: "w-max transition-all ease-in-out duration-300",
|
|
144
|
+
icon: "w-max transition-all ease-in-out duration-300"
|
|
145
|
+
}, A = {
|
|
146
|
+
true: {
|
|
147
|
+
container: "hover:scale-105 active:scale-95 disabled:scale-100"
|
|
148
|
+
},
|
|
149
|
+
false: {
|
|
150
|
+
container: ""
|
|
151
|
+
}
|
|
152
|
+
}, C = {
|
|
153
|
+
true: {
|
|
154
|
+
icon: "group-hover:rotate-90 group-active:rotate-0 group-disabled:rotate-0"
|
|
155
|
+
},
|
|
156
|
+
false: {
|
|
157
|
+
icon: ""
|
|
158
|
+
}
|
|
159
|
+
}, E = ({
|
|
160
|
+
label: m,
|
|
161
|
+
onClick: g,
|
|
162
|
+
icon: d,
|
|
163
|
+
contentClassName: s,
|
|
164
|
+
loadingText: v = "Cargando...",
|
|
165
|
+
animate: b = !0,
|
|
166
|
+
animateIcon: f = !0,
|
|
167
|
+
isLoading: t = !1,
|
|
168
|
+
children: i,
|
|
169
|
+
hideSpinner: h = !1,
|
|
170
|
+
spinner: x = /* @__PURE__ */ e.jsx(B, { size: "small", variant: "clip", speedMultiplier: 0.5, className: "mt-1.5", color: "var(--neutral-600)" }),
|
|
171
|
+
type: w,
|
|
172
|
+
className: y,
|
|
173
|
+
disabled: o,
|
|
174
|
+
variant: a = "filled",
|
|
175
|
+
form: $,
|
|
176
|
+
size: r = "medium",
|
|
177
|
+
color: p = "primary"
|
|
178
|
+
}) => {
|
|
179
|
+
const k = f && !o && !t ? "true" : "false", j = b && !o && !t ? "true" : "false", u = o || t ? "disabled" : p, S = V(() => i || (t ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
180
|
+
!h && x,
|
|
181
|
+
/* @__PURE__ */ e.jsx("span", { className: ` ${l[r].label} ${n[a][u].label} ${r === "small" ? "prometeo-fonts-label-xsmall" : ""}`, children: v })
|
|
182
|
+
] }) : /* @__PURE__ */ e.jsxs("div", { className: `flex items-center gap-1 ${s}`, children: [
|
|
183
|
+
d && /* @__PURE__ */ e.jsx("span", { className: `
|
|
184
|
+
${c.icon}
|
|
185
|
+
${n[a][u].icon}
|
|
186
|
+
${l[r].icon}
|
|
187
|
+
${C[k].icon}
|
|
188
|
+
`, children: d }),
|
|
189
|
+
/* @__PURE__ */ e.jsx("span", { className: `
|
|
190
|
+
${c.label}
|
|
191
|
+
${n[a][u].label}
|
|
192
|
+
${l[r].label}
|
|
193
|
+
`, children: m })
|
|
194
|
+
] })), [i, s, d, m, a, p, r]);
|
|
195
|
+
return /* @__PURE__ */ e.jsx(
|
|
196
|
+
"button",
|
|
197
|
+
{
|
|
198
|
+
type: w,
|
|
199
|
+
className: `
|
|
200
|
+
group
|
|
201
|
+
${c.container}
|
|
202
|
+
${l[r].container}
|
|
203
|
+
${M[r].container}
|
|
204
|
+
${n[a][u].container}
|
|
205
|
+
${A[j].container}
|
|
206
|
+
${y}
|
|
207
|
+
`,
|
|
208
|
+
disabled: o || t,
|
|
209
|
+
form: $,
|
|
210
|
+
onClick: g,
|
|
211
|
+
children: /* @__PURE__ */ e.jsx("div", { className: `flex items-center gap-1 ${s}`, children: S })
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
}, D = N(E);
|
|
215
|
+
export {
|
|
216
|
+
D as default
|
|
217
|
+
};
|
|
@@ -3,8 +3,8 @@ import { Icons as x } from "./Icons.es.js";
|
|
|
3
3
|
import { c as r } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { useField as h, ErrorMessage as p } from "formik";
|
|
5
5
|
import { useState as b } from "react";
|
|
6
|
-
const k = ({ label: c, className: d, containerClassName: m, id: o, disabled:
|
|
7
|
-
const [a, l] = h({ ...t, type: "checkbox" }), [u, i] = b(!1),
|
|
6
|
+
const k = ({ label: c, className: d, containerClassName: m, id: o, disabled: s = !1, ...t }) => {
|
|
7
|
+
const [a, l] = h({ ...t, type: "checkbox" }), [u, i] = b(!1), n = l.touched && l.error;
|
|
8
8
|
return /* @__PURE__ */ e.jsxs("div", { className: r("relative w-full", m), children: [
|
|
9
9
|
/* @__PURE__ */ e.jsxs(
|
|
10
10
|
"label",
|
|
@@ -12,7 +12,7 @@ const k = ({ label: c, className: d, containerClassName: m, id: o, disabled: n =
|
|
|
12
12
|
htmlFor: o || t.name,
|
|
13
13
|
className: r(
|
|
14
14
|
"flex items-center gap-3 cursor-pointer transition-all duration-200 ease-in-out",
|
|
15
|
-
|
|
15
|
+
s ? "cursor-default opacity-60" : "hover:opacity-80",
|
|
16
16
|
d
|
|
17
17
|
),
|
|
18
18
|
children: [
|
|
@@ -31,7 +31,7 @@ const k = ({ label: c, className: d, containerClassName: m, id: o, disabled: n =
|
|
|
31
31
|
onBlur: (f) => {
|
|
32
32
|
i(!1), t.onBlur?.(), a.onBlur(f);
|
|
33
33
|
},
|
|
34
|
-
disabled:
|
|
34
|
+
disabled: s,
|
|
35
35
|
className: r(
|
|
36
36
|
"sr-only"
|
|
37
37
|
)
|
|
@@ -42,8 +42,8 @@ const k = ({ label: c, className: d, containerClassName: m, id: o, disabled: n =
|
|
|
42
42
|
{
|
|
43
43
|
className: r(
|
|
44
44
|
"w-5 h-5 rounded border-2 transition-all duration-200 ease-in-out flex items-center justify-center",
|
|
45
|
-
a.value ? "bg-primary-default-default border-primary-default-default" : u ? "border-primary-default-default bg-transparent" :
|
|
46
|
-
|
|
45
|
+
a.value ? "bg-primary-default-default border-primary-default-default" : u ? "border-primary-default-default bg-transparent" : n ? "border-error-default-default bg-transparent" : "border-neutral-default-default bg-transparent hover:border-neutral-strong-default",
|
|
46
|
+
s && "bg-neutral-medium-default border-neutral-medium-default"
|
|
47
47
|
),
|
|
48
48
|
children: a.value && /* @__PURE__ */ e.jsx(
|
|
49
49
|
x.Check,
|
|
@@ -51,7 +51,7 @@ const k = ({ label: c, className: d, containerClassName: m, id: o, disabled: n =
|
|
|
51
51
|
size: 14,
|
|
52
52
|
className: r(
|
|
53
53
|
"text-white transition-all duration-200 ease-in-out",
|
|
54
|
-
|
|
54
|
+
s && "text-neutral-strong-default"
|
|
55
55
|
)
|
|
56
56
|
}
|
|
57
57
|
)
|
|
@@ -64,8 +64,8 @@ const k = ({ label: c, className: d, containerClassName: m, id: o, disabled: n =
|
|
|
64
64
|
{
|
|
65
65
|
className: r(
|
|
66
66
|
"text-sm transition-colors duration-200 ease-in-out select-none",
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
n && "text-error-default-default",
|
|
68
|
+
s && "text-neutral-medium-default"
|
|
69
69
|
),
|
|
70
70
|
children: c
|
|
71
71
|
}
|
|
@@ -73,7 +73,7 @@ const k = ({ label: c, className: d, containerClassName: m, id: o, disabled: n =
|
|
|
73
73
|
]
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
|
-
|
|
76
|
+
n && /* @__PURE__ */ e.jsx(
|
|
77
77
|
p,
|
|
78
78
|
{
|
|
79
79
|
name: t.name,
|
package/dist/DatePicker.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
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-BTsR-vNF.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-CvBWH1HX.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/DrawerDesktop.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as l } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as h } from "./cn-B6yFEsav.js";
|
|
3
|
-
import { c as k, B as E } from "./Button-
|
|
3
|
+
import { c as k, B as E } from "./Button-CvBWH1HX.js";
|
|
4
4
|
import { createPortal as I } from "react-dom";
|
|
5
5
|
import { Icons as V } from "./Icons.es.js";
|
|
6
6
|
import { forwardRef as B, useRef as u, useState as N, useEffect as d, useCallback as f, useImperativeHandle as P } from "react";
|
package/dist/DropZone.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as i } from "./cn-B6yFEsav.js";
|
|
3
|
-
import R, { useCallback as
|
|
4
|
-
import { useDropzone as
|
|
3
|
+
import R, { useCallback as z } from "react";
|
|
4
|
+
import { useDropzone as w } from "react-dropzone";
|
|
5
5
|
import { Icons as u } from "./Icons.es.js";
|
|
6
6
|
const E = R.forwardRef(
|
|
7
7
|
({
|
|
@@ -17,7 +17,7 @@ const E = R.forwardRef(
|
|
|
17
17
|
maxFiles: j = 1,
|
|
18
18
|
...N
|
|
19
19
|
}, b) => {
|
|
20
|
-
const y =
|
|
20
|
+
const y = z((s, o) => {
|
|
21
21
|
s.length > 0 && d?.(s), o.length > 0 && m?.(o);
|
|
22
22
|
}, [d, m]), {
|
|
23
23
|
getRootProps: D,
|
|
@@ -25,7 +25,7 @@ const E = R.forwardRef(
|
|
|
25
25
|
isDragActive: a,
|
|
26
26
|
isDragReject: t,
|
|
27
27
|
fileRejections: n
|
|
28
|
-
} =
|
|
28
|
+
} = w({
|
|
29
29
|
onDrop: y,
|
|
30
30
|
accept: g,
|
|
31
31
|
maxFiles: j,
|
|
@@ -54,7 +54,7 @@ const E = R.forwardRef(
|
|
|
54
54
|
"ring-2 ring-destructive/20"
|
|
55
55
|
],
|
|
56
56
|
l && [
|
|
57
|
-
"cursor-
|
|
57
|
+
"cursor-default opacity-60",
|
|
58
58
|
"border-muted-foreground/20 bg-muted/30"
|
|
59
59
|
]
|
|
60
60
|
),
|
package/dist/FAButton.es.js
CHANGED
|
@@ -30,7 +30,7 @@ const v = {
|
|
|
30
30
|
error: "text-error-default-default hover:text-error-default-hover active:text-error-default-pressed",
|
|
31
31
|
warning: "text-warning-default-default hover:text-warning-default-hover active:text-warning-default-pressed"
|
|
32
32
|
}
|
|
33
|
-
}, h = "bg-primary-default-disabled text-neutral-default-disabled hover:bg-primary-default-disabled active:bg-primary-default-disabled cursor-
|
|
33
|
+
}, h = "bg-primary-default-disabled text-neutral-default-disabled hover:bg-primary-default-disabled active:bg-primary-default-disabled cursor-default", g = (e) => {
|
|
34
34
|
const t = e.position || v, r = e.attachToParent || !1, o = e.color || "primary", l = e.icon || f.Add, a = e.disabled || !1, u = e.variant || "filled", d = /* @__PURE__ */ i.jsx(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
package/dist/Header.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as l } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { motion as
|
|
4
|
-
import { memo as
|
|
5
|
-
const x = ({ title: e, subtitle: t, children:
|
|
2
|
+
import { c as a } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { motion as r } from "framer-motion";
|
|
4
|
+
import { memo as d } from "react";
|
|
5
|
+
const x = ({ title: e, subtitle: t, children: i, className: s, subtitleClassName: m, titleClassName: n }) => /* @__PURE__ */ l.jsx(
|
|
6
6
|
"header",
|
|
7
7
|
{
|
|
8
|
-
className:
|
|
8
|
+
className: a(
|
|
9
9
|
"h-16 flex items-center px-4 sm:h-20 md:h-24 md:px-6 lg:h-28 xl:h-32 2xl:h-36",
|
|
10
10
|
s
|
|
11
11
|
),
|
|
12
12
|
children: /* @__PURE__ */ l.jsxs(
|
|
13
|
-
|
|
13
|
+
r.div,
|
|
14
14
|
{
|
|
15
15
|
initial: { opacity: 0, y: -10 },
|
|
16
16
|
animate: { opacity: 1, y: 0 },
|
|
@@ -18,15 +18,15 @@ const x = ({ title: e, subtitle: t, children: a, className: s, subtitleClassName
|
|
|
18
18
|
className: "flex justify-between items-center w-full",
|
|
19
19
|
children: [
|
|
20
20
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col leading-6", children: [
|
|
21
|
-
t && /* @__PURE__ */ l.jsx("h3", { className:
|
|
22
|
-
e && /* @__PURE__ */ l.jsx("h1", { className: "text-xl font-bold text-neutral-strong-default sm:text-2xl md:text-3xl xl:text-[32px] 2xl:text-[34px]", children: e })
|
|
21
|
+
t && /* @__PURE__ */ l.jsx("h3", { className: a("font-semibold text-neutral-medium-default leading-1 sm:leading-2 prometeo-fonts-headline-large ", m), children: t }),
|
|
22
|
+
e && /* @__PURE__ */ l.jsx("h1", { className: a("text-xl font-bold text-neutral-strong-default sm:text-2xl md:text-3xl xl:text-[32px] 2xl:text-[34px]", n), children: e })
|
|
23
23
|
] }),
|
|
24
|
-
|
|
24
|
+
i && /* @__PURE__ */ l.jsx("div", { className: "flex gap-4", children: i })
|
|
25
25
|
]
|
|
26
26
|
}
|
|
27
27
|
)
|
|
28
28
|
}
|
|
29
|
-
),
|
|
29
|
+
), h = d(x, (e, t) => e.title !== t.title || e.subtitle !== t.subtitle || e.className !== t.className ? !1 : e.children !== t.children ? !e.children && !t.children : !0);
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
h as default
|
|
32
32
|
};
|
|
@@ -2,7 +2,7 @@ import { j as t } from "./jsx-runtime-DKDX3adD.js";
|
|
|
2
2
|
import ee, { memo as D, forwardRef as L, useRef as v, useEffect as te, useCallback as i, useState as R, useImperativeHandle as ne } from "react";
|
|
3
3
|
import { c as X } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { u as re } from "./useDragScroll-CHN9OMwn.js";
|
|
5
|
-
import { B as S } from "./Button-
|
|
5
|
+
import { B as S } from "./Button-CvBWH1HX.js";
|
|
6
6
|
import { Icons as M } from "./Icons.es.js";
|
|
7
7
|
const O = D(L(({ images: n, className: c }, r) => {
|
|
8
8
|
const { ref: d, bind: a } = re({
|
package/dist/ImageGallery.es.js
CHANGED