prometeo-design-system 2.3.7 → 2.3.9
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-BhHJmvqs.js → CardProfile-Fn44kEnM.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 +2 -2
- package/dist/DialogModal.es.js +51 -48
- package/dist/DrawerDesktop.es.js +2 -2
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/DropZone.es.js +1 -1
- package/dist/Header.es.js +27 -18
- 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.es.js +1 -1
- package/dist/InputFormik.es.js +1 -1
- package/dist/InputMultiple.es.js +1 -1
- package/dist/{LayoutGeneric-jDE96L2N.js → LayoutGeneric-p4Pll4Cm.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 +161 -195
- package/dist/ProgressBar.es.js +1 -1
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectFormikLegacy.es.js +1 -1
- 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 +54 -45
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +5 -2
- package/dist/components/TabLinks/TabLinks.d.ts +14 -10
- 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 +6 -6
- package/package.json +1 -1
|
@@ -1,247 +1,213 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { motion as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
1
|
+
import { j as n } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { motion as s } from "framer-motion";
|
|
3
|
+
import { memo as T, useRef as b, useLayoutEffect as A } from "react";
|
|
4
|
+
import M from "./Avatar.es.js";
|
|
5
|
+
import { c as l } from "./cn-B6yFEsav.js";
|
|
6
|
+
const I = {
|
|
7
7
|
sm: "w-16 h-16",
|
|
8
8
|
md: "w-24 h-24",
|
|
9
9
|
lg: "w-32 h-32",
|
|
10
10
|
xl: "w-40 h-40"
|
|
11
|
-
},
|
|
11
|
+
}, U = {
|
|
12
12
|
sm: "w-4 h-4",
|
|
13
13
|
md: "w-5 h-5",
|
|
14
14
|
lg: "w-6 h-6",
|
|
15
15
|
xl: "w-8 h-8"
|
|
16
|
-
},
|
|
16
|
+
}, z = {
|
|
17
17
|
sm: "w-6 h-6",
|
|
18
18
|
md: "w-7 h-7",
|
|
19
19
|
lg: "w-8 h-8",
|
|
20
20
|
xl: "w-10 h-10"
|
|
21
|
-
},
|
|
21
|
+
}, H = {
|
|
22
22
|
sm: "-bottom-1 -right-0.5",
|
|
23
23
|
md: "-bottom-0.5 -right-0.5",
|
|
24
24
|
lg: "bottom-1 right-1",
|
|
25
25
|
xl: "bottom-3 right-2"
|
|
26
|
-
},
|
|
26
|
+
}, k = {
|
|
27
27
|
sm: "w-4 h-4",
|
|
28
28
|
md: "w-5 h-5",
|
|
29
29
|
lg: "w-6 h-6",
|
|
30
30
|
xl: "w-7 h-7"
|
|
31
|
-
},
|
|
31
|
+
}, W = {
|
|
32
32
|
sm: "-top-0.5 -right-0.5",
|
|
33
33
|
md: "-top-1 -right-1",
|
|
34
34
|
lg: "-top-1 -right-0",
|
|
35
35
|
xl: "top-1 right-1"
|
|
36
36
|
};
|
|
37
|
-
function
|
|
38
|
-
imageUrl:
|
|
39
|
-
fallbackText:
|
|
40
|
-
onFileSelect:
|
|
41
|
-
onEditClick:
|
|
42
|
-
onRemoveClick:
|
|
43
|
-
size:
|
|
44
|
-
className:
|
|
45
|
-
disabled:
|
|
46
|
-
showRemoveButton:
|
|
47
|
-
acceptedTypes:
|
|
48
|
-
maxFileSize:
|
|
49
|
-
onError:
|
|
50
|
-
|
|
37
|
+
function O({
|
|
38
|
+
imageUrl: t,
|
|
39
|
+
fallbackText: e = "S L",
|
|
40
|
+
onFileSelect: p,
|
|
41
|
+
onEditClick: h,
|
|
42
|
+
onRemoveClick: C,
|
|
43
|
+
size: i = "lg",
|
|
44
|
+
className: x,
|
|
45
|
+
disabled: o = !1,
|
|
46
|
+
showRemoveButton: j = !0,
|
|
47
|
+
acceptedTypes: v = "image/*",
|
|
48
|
+
maxFileSize: g = 5 * 1024 * 1024,
|
|
49
|
+
onError: f,
|
|
50
|
+
disableEntryAnimation: w = !1
|
|
51
51
|
}) {
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
52
|
+
const y = b(null), u = b(null), B = (r) => r.type.startsWith("image/") ? r.size > g ? (f?.(
|
|
53
|
+
`La imagen debe ser menor a ${Math.round(g / 1024 / 1024)}MB`
|
|
54
|
+
), !1) : !0 : (f?.("Por favor selecciona un archivo de imagen válido"), !1), S = (r) => {
|
|
55
|
+
const a = r.target.files?.[0];
|
|
56
|
+
a && (B(a) && p?.(a), r.target.value = "");
|
|
57
|
+
}, L = () => {
|
|
58
|
+
o || (h ? h() : y.current?.click());
|
|
59
|
+
}, N = (r) => {
|
|
60
|
+
r.stopPropagation(), !o && C?.();
|
|
59
61
|
};
|
|
60
62
|
A(() => {
|
|
61
|
-
if (
|
|
62
|
-
const
|
|
63
|
-
let
|
|
64
|
-
for (;
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
return
|
|
68
|
-
|
|
63
|
+
if (u.current) {
|
|
64
|
+
const a = ((F) => {
|
|
65
|
+
let c = F;
|
|
66
|
+
for (; c && c !== document.body; ) {
|
|
67
|
+
const d = window.getComputedStyle(c).backgroundColor;
|
|
68
|
+
if (d && d !== "transparent" && d !== "rgba(0, 0, 0, 0)")
|
|
69
|
+
return d;
|
|
70
|
+
c = c.parentElement;
|
|
69
71
|
}
|
|
70
|
-
const
|
|
71
|
-
return
|
|
72
|
-
})(
|
|
73
|
-
|
|
72
|
+
const m = window.getComputedStyle(document.body).backgroundColor;
|
|
73
|
+
return m && m !== "transparent" && m !== "rgba(0, 0, 0, 0)" ? m : "rgb(255, 255, 255)";
|
|
74
|
+
})(
|
|
75
|
+
u.current.parentElement
|
|
76
|
+
);
|
|
77
|
+
u.current.style.borderColor = a;
|
|
74
78
|
}
|
|
75
79
|
}, []);
|
|
76
|
-
const w = {
|
|
77
|
-
|
|
78
|
-
animated: {
|
|
79
|
-
container: {
|
|
80
|
-
width: 0,
|
|
81
|
-
height: 0
|
|
82
|
-
},
|
|
83
|
-
svg: {}
|
|
84
|
-
},
|
|
85
|
-
static: {
|
|
86
|
-
container: {},
|
|
87
|
-
svg: {}
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
default: {
|
|
91
|
-
animated: {
|
|
92
|
-
container: {
|
|
93
|
-
width: "auto",
|
|
94
|
-
height: "auto"
|
|
95
|
-
},
|
|
96
|
-
svg: {}
|
|
97
|
-
},
|
|
98
|
-
static: {
|
|
99
|
-
container: {},
|
|
100
|
-
svg: {}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}, x = S ? "static" : "animated";
|
|
104
|
-
return /* @__PURE__ */ e.jsxs(
|
|
80
|
+
const E = w ? {} : { width: 0, height: 0 }, R = w ? {} : { width: "auto", height: "auto" };
|
|
81
|
+
return /* @__PURE__ */ n.jsxs(
|
|
105
82
|
"div",
|
|
106
83
|
{
|
|
107
|
-
|
|
108
|
-
onMouseLeave: () => f(!1),
|
|
109
|
-
className: `relative inline-block border-inherit ${C || ""}`,
|
|
84
|
+
className: l("relative inline-block border-inherit group", x),
|
|
110
85
|
children: [
|
|
111
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ n.jsx(
|
|
112
87
|
"input",
|
|
113
88
|
{
|
|
114
|
-
ref:
|
|
89
|
+
ref: y,
|
|
115
90
|
type: "file",
|
|
116
|
-
accept:
|
|
117
|
-
onChange:
|
|
91
|
+
accept: v,
|
|
92
|
+
onChange: S,
|
|
118
93
|
className: "hidden",
|
|
119
|
-
disabled:
|
|
94
|
+
disabled: o
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ n.jsx(
|
|
98
|
+
s.div,
|
|
99
|
+
{
|
|
100
|
+
className: l(
|
|
101
|
+
I[i],
|
|
102
|
+
"rounded-full overflow-hidden flex items-center justify-center relative",
|
|
103
|
+
o && "opacity-50 cursor-not-allowed"
|
|
104
|
+
),
|
|
105
|
+
children: /* @__PURE__ */ n.jsx(
|
|
106
|
+
M,
|
|
107
|
+
{
|
|
108
|
+
imageUrl: t,
|
|
109
|
+
fallbackText: e,
|
|
110
|
+
sizeImage: i,
|
|
111
|
+
sizeFallback: i
|
|
112
|
+
}
|
|
113
|
+
)
|
|
120
114
|
}
|
|
121
115
|
),
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
|
|
116
|
+
/* @__PURE__ */ n.jsx(
|
|
117
|
+
s.button,
|
|
124
118
|
{
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
119
|
+
ref: u,
|
|
120
|
+
className: l(
|
|
121
|
+
"absolute bg-primary-default-default rounded-lg border-[2px] hover:bg-primary-default-hover cursor-pointer grid place-content-center",
|
|
122
|
+
H[i],
|
|
123
|
+
z[i],
|
|
124
|
+
o && "opacity-50 cursor-not-allowed"
|
|
125
|
+
),
|
|
126
|
+
onClick: L,
|
|
127
|
+
disabled: o,
|
|
128
|
+
whileTap: o ? {} : { scale: 0.95 },
|
|
129
|
+
initial: E,
|
|
130
|
+
animate: R,
|
|
131
|
+
transition: { duration: 0.3, ease: "easeOut" },
|
|
132
|
+
children: /* @__PURE__ */ n.jsx(
|
|
133
|
+
s.svg,
|
|
135
134
|
{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
className: l(U[i], "text-white"),
|
|
136
|
+
fill: "none",
|
|
137
|
+
stroke: "currentColor",
|
|
138
|
+
viewBox: "0 0 24 24",
|
|
139
|
+
whileHover: o ? {} : {
|
|
140
|
+
x: [0, -1, 0, 1, -1, 0, 1],
|
|
141
|
+
y: [0, 1, 0, 1, 0, 1, 1],
|
|
142
|
+
rotate: [0, 5, -3, 8, -5, 3, 1]
|
|
143
|
+
},
|
|
144
|
+
transition: {
|
|
145
|
+
duration: 2,
|
|
146
|
+
ease: "easeInOut"
|
|
147
|
+
},
|
|
148
|
+
children: /* @__PURE__ */ n.jsx(
|
|
149
|
+
"path",
|
|
150
|
+
{
|
|
151
|
+
strokeLinecap: "round",
|
|
152
|
+
strokeLinejoin: "round",
|
|
153
|
+
strokeWidth: 2,
|
|
154
|
+
d: "M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"
|
|
155
|
+
}
|
|
156
|
+
)
|
|
140
157
|
}
|
|
141
158
|
)
|
|
142
159
|
}
|
|
143
160
|
),
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
strokeLinecap: "round",
|
|
186
|
-
strokeLinejoin: "round",
|
|
187
|
-
strokeWidth: 2,
|
|
188
|
-
d: "M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"
|
|
189
|
-
}
|
|
190
|
-
)
|
|
191
|
-
}
|
|
192
|
-
)
|
|
193
|
-
}
|
|
194
|
-
),
|
|
195
|
-
d && B && !t && /* @__PURE__ */ e.jsx(
|
|
196
|
-
i.button,
|
|
197
|
-
{
|
|
198
|
-
className: `
|
|
199
|
-
absolute
|
|
200
|
-
${q[o]}
|
|
201
|
-
${y[o]}
|
|
202
|
-
rounded-full
|
|
203
|
-
shadow-lg
|
|
204
|
-
bg-error-light
|
|
205
|
-
flex
|
|
206
|
-
cursor-pointer
|
|
207
|
-
items-center
|
|
208
|
-
justify-center
|
|
209
|
-
${t ? "opacity-50 cursor-not-allowed" : ""}
|
|
210
|
-
`,
|
|
211
|
-
disabled: t,
|
|
212
|
-
onClick: P,
|
|
213
|
-
initial: { scale: 0, opacity: 0, rotate: -90 },
|
|
214
|
-
animate: {
|
|
215
|
-
scale: u ? 1 : 0.8,
|
|
216
|
-
opacity: u ? 1 : 0,
|
|
217
|
-
rotate: 0
|
|
218
|
-
},
|
|
219
|
-
exit: { scale: 0, opacity: 0, rotate: 90 },
|
|
220
|
-
whileTap: { scale: 0.9 },
|
|
221
|
-
transition: {
|
|
222
|
-
type: "spring",
|
|
223
|
-
stiffness: 300,
|
|
224
|
-
damping: 25
|
|
225
|
-
},
|
|
226
|
-
children: /* @__PURE__ */ e.jsx(
|
|
227
|
-
i.svg,
|
|
228
|
-
{
|
|
229
|
-
className: `${y[o]} text-white p-1`,
|
|
230
|
-
fill: "none",
|
|
231
|
-
stroke: "currentColor",
|
|
232
|
-
viewBox: "0 0 24 24",
|
|
233
|
-
whileHover: { rotate: 90 },
|
|
234
|
-
transition: { duration: 0.2 },
|
|
235
|
-
children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" })
|
|
236
|
-
}
|
|
237
|
-
)
|
|
238
|
-
}
|
|
239
|
-
)
|
|
240
|
-
] })
|
|
161
|
+
t && j && !o && /* @__PURE__ */ n.jsx(
|
|
162
|
+
s.button,
|
|
163
|
+
{
|
|
164
|
+
className: l(
|
|
165
|
+
"absolute rounded-full shadow-lg bg-error-light flex cursor-pointer items-center justify-center",
|
|
166
|
+
"opacity-0 scale-80 group-hover:opacity-100 group-hover:scale-100",
|
|
167
|
+
"transition-all duration-200 ease-out",
|
|
168
|
+
W[i],
|
|
169
|
+
k[i],
|
|
170
|
+
o && "opacity-50 cursor-not-allowed"
|
|
171
|
+
),
|
|
172
|
+
disabled: o,
|
|
173
|
+
onClick: N,
|
|
174
|
+
whileTap: { scale: 0.9 },
|
|
175
|
+
transition: {
|
|
176
|
+
type: "spring",
|
|
177
|
+
stiffness: 300,
|
|
178
|
+
damping: 25
|
|
179
|
+
},
|
|
180
|
+
children: /* @__PURE__ */ n.jsx(
|
|
181
|
+
s.svg,
|
|
182
|
+
{
|
|
183
|
+
className: l(k[i], "text-white p-1"),
|
|
184
|
+
fill: "none",
|
|
185
|
+
stroke: "currentColor",
|
|
186
|
+
viewBox: "0 0 24 24",
|
|
187
|
+
whileHover: { rotate: 90 },
|
|
188
|
+
transition: { duration: 0.2 },
|
|
189
|
+
children: /* @__PURE__ */ n.jsx(
|
|
190
|
+
"path",
|
|
191
|
+
{
|
|
192
|
+
strokeLinecap: "round",
|
|
193
|
+
strokeLinejoin: "round",
|
|
194
|
+
strokeWidth: 2,
|
|
195
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
196
|
+
}
|
|
197
|
+
)
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
}
|
|
201
|
+
)
|
|
241
202
|
]
|
|
242
203
|
}
|
|
243
204
|
);
|
|
244
205
|
}
|
|
206
|
+
const $ = T(
|
|
207
|
+
O,
|
|
208
|
+
(t, e) => t.imageUrl === e.imageUrl && t.fallbackText === e.fallbackText && t.size === e.size && t.className === e.className && t.disabled === e.disabled && t.showRemoveButton === e.showRemoveButton && t.acceptedTypes === e.acceptedTypes && t.maxFileSize === e.maxFileSize && t.disableEntryAnimation === e.disableEntryAnimation && t.onFileSelect === e.onFileSelect && t.onEditClick === e.onEditClick && t.onRemoveClick === e.onRemoveClick && t.onError === e.onError
|
|
209
|
+
);
|
|
210
|
+
$.displayName = "ProfilePictureUpload";
|
|
245
211
|
export {
|
|
246
|
-
|
|
212
|
+
$ as ProfilePictureUpload
|
|
247
213
|
};
|
package/dist/ProgressBar.es.js
CHANGED
package/dist/Select.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
1
|
+
import { j as t } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { Icons as k } from "./Icons.es.js";
|
|
3
3
|
import { c as a } from "./cn-B6yFEsav.js";
|
|
4
4
|
import ce, { useRef as F, useLayoutEffect as we, memo as z, useState as ie, useMemo as U, useCallback as P, useEffect as Z } from "react";
|
package/dist/SelectFormik.es.js
CHANGED
package/dist/Skeleton.es.js
CHANGED
package/dist/Spinner.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { ClipLoader as l, SyncLoader as m, HashLoader as p, GridLoader as x, DotLoader as j, BounceLoader as f } from "react-spinners";
|
|
3
3
|
import { c as L } from "./cn-B6yFEsav.js";
|
|
4
4
|
const y = ({
|
package/dist/Steps.es.js
CHANGED
package/dist/Switch.es.js
CHANGED
package/dist/TabLinks.es.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { motion as
|
|
3
|
-
import { memo as
|
|
4
|
-
import { c as
|
|
5
|
-
|
|
6
|
-
items:
|
|
7
|
-
activeTab:
|
|
8
|
-
onTabChange:
|
|
9
|
-
className:
|
|
10
|
-
tabClassName:
|
|
11
|
-
activeTabClassName:
|
|
12
|
-
indicatorClassName:
|
|
13
|
-
animated:
|
|
14
|
-
renderTab:
|
|
1
|
+
import { j as n } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { motion as x } from "framer-motion";
|
|
3
|
+
import { memo as N } from "react";
|
|
4
|
+
import { c as r } from "./cn-B6yFEsav.js";
|
|
5
|
+
function c({
|
|
6
|
+
items: t,
|
|
7
|
+
activeTab: e,
|
|
8
|
+
onTabChange: i,
|
|
9
|
+
className: l,
|
|
10
|
+
tabClassName: d,
|
|
11
|
+
activeTabClassName: u,
|
|
12
|
+
indicatorClassName: f,
|
|
13
|
+
animated: b = !0,
|
|
14
|
+
renderTab: o
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const h = (a) => {
|
|
17
|
+
a.disabled || i?.(a.id, a);
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ n.jsx(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
22
|
+
className: r(
|
|
23
23
|
"flex flex-row justify-around items-end relative border-b-1 border-neutral-strong-default w-full md:justify-start md:px-10 md:gap-5",
|
|
24
|
-
|
|
24
|
+
l
|
|
25
25
|
),
|
|
26
26
|
role: "tablist",
|
|
27
|
-
children:
|
|
28
|
-
const
|
|
29
|
-
return
|
|
27
|
+
children: t?.map((a) => {
|
|
28
|
+
const s = e === a.id, m = () => h(a);
|
|
29
|
+
return o ? /* @__PURE__ */ n.jsx("div", { children: o(a, s, m) }, a.id) : /* @__PURE__ */ n.jsxs(
|
|
30
30
|
"button",
|
|
31
31
|
{
|
|
32
|
-
onClick:
|
|
33
|
-
disabled:
|
|
34
|
-
className:
|
|
32
|
+
onClick: m,
|
|
33
|
+
disabled: a.disabled,
|
|
34
|
+
className: r(
|
|
35
35
|
"relative flex justify-center items-center h-10 px-4 font-medium focus:outline-none transition-colors",
|
|
36
|
-
!
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
!a.disabled && "hover:text-primary-default-default cursor-pointer",
|
|
37
|
+
a.disabled && "opacity-50 cursor-not-allowed",
|
|
38
|
+
d,
|
|
39
|
+
s && u
|
|
40
40
|
),
|
|
41
|
-
tabIndex:
|
|
42
|
-
"aria-label":
|
|
41
|
+
tabIndex: a.disabled ? -1 : 0,
|
|
42
|
+
"aria-label": a.title,
|
|
43
43
|
role: "tab",
|
|
44
|
-
"aria-selected":
|
|
45
|
-
title:
|
|
44
|
+
"aria-selected": s,
|
|
45
|
+
title: a.description,
|
|
46
46
|
children: [
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
s && b && /* @__PURE__ */ n.jsx(
|
|
48
|
+
x.div,
|
|
49
49
|
{
|
|
50
50
|
layoutId: "tab-indicator",
|
|
51
|
-
className:
|
|
51
|
+
className: r(
|
|
52
52
|
"absolute -bottom-[1px] left-0 right-0 h-[5px] rounded-t-xl bg-primary-default-default z-0",
|
|
53
|
-
|
|
53
|
+
f
|
|
54
54
|
),
|
|
55
55
|
transition: {
|
|
56
56
|
type: "spring",
|
|
@@ -60,26 +60,35 @@ const l = d(function({
|
|
|
60
60
|
"aria-hidden": "true"
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ n.jsx(
|
|
64
64
|
"span",
|
|
65
65
|
{
|
|
66
|
-
className:
|
|
66
|
+
className: r(
|
|
67
67
|
"relative z-10",
|
|
68
|
-
|
|
68
|
+
s ? "text-primary-default-default font-semibold text-md" : "text-neutral-medium-default font-medium text-md"
|
|
69
69
|
),
|
|
70
|
-
children:
|
|
70
|
+
children: a.title
|
|
71
71
|
}
|
|
72
72
|
)
|
|
73
73
|
]
|
|
74
74
|
},
|
|
75
|
-
|
|
75
|
+
a.id
|
|
76
76
|
);
|
|
77
77
|
})
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
+
}
|
|
81
|
+
c.displayName = "TabLinks";
|
|
82
|
+
const C = N(c, (t, e) => {
|
|
83
|
+
if (t.activeTab !== e.activeTab || t.className !== e.className || t.tabClassName !== e.tabClassName || t.activeTabClassName !== e.activeTabClassName || t.indicatorClassName !== e.indicatorClassName || t.animated !== e.animated || t.onTabChange !== e.onTabChange || t.renderTab !== e.renderTab || t.items.length !== e.items.length)
|
|
84
|
+
return !1;
|
|
85
|
+
for (let i = 0; i < t.items.length; i++) {
|
|
86
|
+
const l = t.items[i], d = e.items[i];
|
|
87
|
+
if (l.id !== d.id || l.title !== d.title || l.disabled !== d.disabled || l.description !== d.description)
|
|
88
|
+
return !1;
|
|
89
|
+
}
|
|
90
|
+
return !0;
|
|
80
91
|
});
|
|
81
|
-
l.displayName = "TabLinks";
|
|
82
|
-
const N = d(l);
|
|
83
92
|
export {
|
|
84
|
-
|
|
93
|
+
C as default
|
|
85
94
|
};
|
package/dist/Table.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-
|
|
1
|
+
import { j as r } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as l } from "./cn-B6yFEsav.js";
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx("div", { className: "w-full", children: /* @__PURE__ */ r.jsx(
|
package/dist/TextArea.es.js
CHANGED
package/dist/Tooltip.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { AnimatePresence as f, motion as n } from "framer-motion";
|
|
3
3
|
import { useState as p, cloneElement as x } from "react";
|
|
4
4
|
import { Icons as b } from "./Icons.es.js";
|