prometeo-design-system 2.9.6 → 2.9.8
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.es.js +9 -9
- package/dist/{CardProfile-CsytJlKZ.js → CardProfile-WHoeSibd.js} +8 -8
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +4 -4
- package/dist/DatePicker-CbXUUnv7.js +3568 -0
- package/dist/DatePicker.es.js +3 -3439
- package/dist/DrawerDesktop.d.ts +6 -0
- package/dist/DrawerDesktop.es.js +211 -0
- package/dist/DrawerMobile.d.ts +6 -0
- package/dist/DrawerMobile.es.js +242 -0
- package/dist/DropZone.es.js +5 -5
- package/dist/FAButton.es.js +1 -1
- package/dist/{HelperComponent-g_xuKWzK.js → HelperComponent-BeNlTMqI.js} +7 -7
- package/dist/Icons/Icons.d.ts +2 -3
- package/dist/Icons.d.ts +0 -4
- package/dist/Icons.es.js +1053 -3
- package/dist/Image.es.js +29 -29
- package/dist/{ImageGallery-Ckxg9OIC.js → ImageGallery-WKzUevOQ.js} +34 -34
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-Cck37DpG.js → Input-Cf8P1QJv.js} +30 -31
- package/dist/Input.es.js +1 -1
- package/dist/InputMultiple.es.js +34 -34
- package/dist/Logo.es.js +1 -1
- package/dist/OtpInput.es.js +43 -43
- package/dist/RadioButton.es.js +1 -1
- package/dist/RecurrentDatePicker.d.ts +2 -0
- package/dist/RecurrentDatePicker.es.js +694 -0
- package/dist/RecurrentDatePickerRRule.d.ts +2 -0
- package/dist/RecurrentDatePickerRRule.es.js +1684 -0
- package/dist/{Select-BD5FTxVw.js → Select-DeKi15Iu.js} +31 -32
- package/dist/Select.es.js +1 -1
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Spinner.es.js +172 -46
- package/dist/Steps.es.js +1 -1
- package/dist/Toast.es.js +22 -22
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/Drawer/DrawerDesktop.d.ts +1 -0
- package/dist/components/Drawer/useDrawerDesktop.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +4 -1
- package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +4 -4
- package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +13 -0
- package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +3 -3
- package/dist/components/Spinner/Spinner.d.ts +6 -6
- package/dist/exports/DrawerDesktop.d.ts +4 -0
- package/dist/exports/DrawerMobile.d.ts +4 -0
- package/dist/exports/Icons.d.ts +1 -2
- package/dist/exports/RecurrentDatePicker.d.ts +5 -0
- package/dist/exports/RecurrentDatePickerRRule.d.ts +2 -0
- package/dist/exports/Spinner.d.ts +2 -1
- package/dist/index.d.ts +9 -3
- package/dist/prometeo-design-system.es.js +412 -762
- package/dist/styles.css +1 -0
- package/dist/styles.d.ts +1 -0
- package/package.json +19 -6
- package/src/styles/app.css +1 -1313
- package/src/styles/base.css +1331 -0
- package/src/styles/utilities.css +24 -36
- package/dist/Icons-DtFC5DJ7.js +0 -1079
- package/dist/components/Spinner/SpinnerV2.d.ts +0 -12
- package/dist/prometeo-design-system.css +0 -1
package/dist/Button.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
2
|
+
import { memo as A, useMemo as E } from "react";
|
|
3
|
+
import M from "./Spinner.es.js";
|
|
4
4
|
import { c as v } from "./index-BOQuZ0gG.js";
|
|
5
5
|
import { c as d } from "./cn-B6yFEsav.js";
|
|
6
6
|
const m = {
|
|
@@ -311,16 +311,16 @@ const m = {
|
|
|
311
311
|
isLoading: a = !1,
|
|
312
312
|
children: c,
|
|
313
313
|
hideSpinner: b = !1,
|
|
314
|
-
spinner: x = /* @__PURE__ */ t.jsx(
|
|
314
|
+
spinner: x = /* @__PURE__ */ t.jsx(M, { size: "small", variant: "clip", color: "var(--neutral-600)", className: "size-4 " }),
|
|
315
315
|
type: N,
|
|
316
|
-
className:
|
|
316
|
+
className: z,
|
|
317
317
|
disabled: s,
|
|
318
318
|
variant: l = "fill",
|
|
319
|
-
form:
|
|
319
|
+
form: I,
|
|
320
320
|
size: o = "medium",
|
|
321
321
|
color: S = "primary"
|
|
322
322
|
}) => {
|
|
323
|
-
const h = !!($ && !s && !a), B = !!(k && !s && !a), n = s || a ? "disabled" : S, C =
|
|
323
|
+
const h = !!($ && !s && !a), B = !!(k && !s && !a), n = s || a ? "disabled" : S, C = E(() => c || (a ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
324
324
|
!b && x,
|
|
325
325
|
/* @__PURE__ */ t.jsx(
|
|
326
326
|
"span",
|
|
@@ -386,15 +386,15 @@ const m = {
|
|
|
386
386
|
color: n,
|
|
387
387
|
animation: B
|
|
388
388
|
}),
|
|
389
|
-
|
|
389
|
+
z
|
|
390
390
|
),
|
|
391
391
|
disabled: s || a,
|
|
392
|
-
form:
|
|
392
|
+
form: I,
|
|
393
393
|
onClick: j,
|
|
394
394
|
children: /* @__PURE__ */ t.jsx("div", { className: `flex items-center gap-1 ${u}`, children: C })
|
|
395
395
|
}
|
|
396
396
|
);
|
|
397
|
-
}, O =
|
|
397
|
+
}, O = A(D);
|
|
398
398
|
export {
|
|
399
399
|
O as default
|
|
400
400
|
};
|
|
@@ -2,7 +2,7 @@ import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
|
2
2
|
import { c as l } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { motion as i, AnimatePresence as c } from "framer-motion";
|
|
4
4
|
import u from "./Avatar.es.js";
|
|
5
|
-
import {
|
|
5
|
+
import { ChevronDown as m, Logout as f } from "./Icons.es.js";
|
|
6
6
|
function x({
|
|
7
7
|
sessions: t,
|
|
8
8
|
handleTokenLogin: a
|
|
@@ -12,8 +12,8 @@ function x({
|
|
|
12
12
|
{
|
|
13
13
|
className: "w-full ",
|
|
14
14
|
onClick: () => a?.(r.token),
|
|
15
|
-
children: /* @__PURE__ */ e.jsx(
|
|
16
|
-
|
|
15
|
+
children: /* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsx(
|
|
16
|
+
o.Content,
|
|
17
17
|
{
|
|
18
18
|
onClick: () => {
|
|
19
19
|
console.log("hola");
|
|
@@ -22,7 +22,7 @@ function x({
|
|
|
22
22
|
nameUser: r.name,
|
|
23
23
|
nameArea: r?.areaId?.name,
|
|
24
24
|
nameCompany: r.companyId.name,
|
|
25
|
-
cardProfile: /* @__PURE__ */ e.jsx(
|
|
25
|
+
cardProfile: /* @__PURE__ */ e.jsx(o.Image, { isExpanded: !1 })
|
|
26
26
|
}
|
|
27
27
|
) })
|
|
28
28
|
},
|
|
@@ -181,7 +181,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
181
181
|
nameUser: a,
|
|
182
182
|
nameCompany: r,
|
|
183
183
|
nameArea: n,
|
|
184
|
-
cardProfile:
|
|
184
|
+
cardProfile: s,
|
|
185
185
|
onClick: d
|
|
186
186
|
}) => /* @__PURE__ */ e.jsxs(
|
|
187
187
|
i.button,
|
|
@@ -198,7 +198,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
198
198
|
whileTap: { scale: 0.98 },
|
|
199
199
|
transition: { duration: 0.2, ease: "easeInOut" },
|
|
200
200
|
children: [
|
|
201
|
-
|
|
201
|
+
s,
|
|
202
202
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2", children: [
|
|
203
203
|
/* @__PURE__ */ e.jsx(
|
|
204
204
|
"p",
|
|
@@ -265,7 +265,7 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
265
265
|
}
|
|
266
266
|
)
|
|
267
267
|
}
|
|
268
|
-
),
|
|
268
|
+
), o = Object.assign(h, {
|
|
269
269
|
Menu: p,
|
|
270
270
|
Image: j,
|
|
271
271
|
Content: g,
|
|
@@ -273,6 +273,6 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
273
273
|
Options: y
|
|
274
274
|
});
|
|
275
275
|
export {
|
|
276
|
-
|
|
276
|
+
o as C,
|
|
277
277
|
x as a
|
|
278
278
|
};
|
package/dist/CardProfile.es.js
CHANGED
package/dist/CheckBox.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import {
|
|
3
|
-
import { memo as k, forwardRef as
|
|
4
|
-
const s =
|
|
2
|
+
import { Check as m } from "./Icons.es.js";
|
|
3
|
+
import { memo as k, forwardRef as g, useId as v, useRef as C, useCallback as y } from "react";
|
|
4
|
+
const s = g(
|
|
5
5
|
({ className: l, disabled: e, onChange: i, value: d, ...t }, r) => {
|
|
6
|
-
const u =
|
|
6
|
+
const u = v(), o = C(null), f = `
|
|
7
7
|
after:content-[""]
|
|
8
8
|
after:absolute
|
|
9
9
|
after:top-1/2
|