prometeo-design-system 1.9.5 → 1.9.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.es.js +1 -1
- package/dist/{CardProfile-Bg_q2qMm.js → CardProfile-BZajBGbO.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/DialogModal.es.js +39 -45
- package/dist/DrawerDesktop.es.js +1 -1
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/DropZone.es.js +1 -1
- package/dist/Header.es.js +1 -1
- package/dist/Icons.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-p4Pll4Cm.js → LayoutGeneric-jDE96L2N.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 +1 -1
- package/dist/ProgressBar.es.js +1 -1
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +45 -47
- 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 +13 -13
- package/dist/TabLinks.es.js +1 -1
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Tooltip.es.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +1 -0
- package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
- package/dist/prometeo-design-system.es.js +4 -4
- package/package.json +1 -1
package/dist/Avatar.es.js
CHANGED
package/dist/Button.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-
|
|
1
|
+
import { j as o } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { c as x } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { c as N } from "./index-BOQuZ0gG.js";
|
|
4
4
|
import { useAnimationControls as k, motion as y } from "framer-motion";
|
package/dist/CardProfile.es.js
CHANGED
package/dist/CheckBox.es.js
CHANGED
package/dist/DialogModal.es.js
CHANGED
|
@@ -1,46 +1,40 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Footer: C,
|
|
39
|
-
Title: h
|
|
40
|
-
});
|
|
41
|
-
u.displayName = "Dialog";
|
|
42
|
-
const R = () => {
|
|
43
|
-
const e = D(null);
|
|
1
|
+
import { j as t } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
|
+
import { forwardRef as u, useState as p, useImperativeHandle as f, useRef as g } from "react";
|
|
3
|
+
import { c as i } from "./cn-B6yFEsav.js";
|
|
4
|
+
const x = u(({
|
|
5
|
+
children: e,
|
|
6
|
+
onClose: o,
|
|
7
|
+
className: s
|
|
8
|
+
}, n) => {
|
|
9
|
+
const [r, l] = p(!1), c = () => l(!0), a = () => {
|
|
10
|
+
l(!1), o?.();
|
|
11
|
+
};
|
|
12
|
+
return f(n, () => ({
|
|
13
|
+
open: c,
|
|
14
|
+
close: a,
|
|
15
|
+
isOpen: r
|
|
16
|
+
})), /* @__PURE__ */ t.jsx(t.Fragment, { children: r && /* @__PURE__ */ t.jsx(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/30 backdrop-blur-[1.5px]",
|
|
20
|
+
onClick: a,
|
|
21
|
+
children: /* @__PURE__ */ t.jsx(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className: i("bg-neutral-default-default w-3/4 h-3/4 xl:w-3/4 xl:h-10/12 rounded-lg shadow-lg border-neutral-strong-default border relative p-6", s),
|
|
25
|
+
onClick: (d) => d.stopPropagation(),
|
|
26
|
+
children: e
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
}
|
|
30
|
+
) });
|
|
31
|
+
}), m = ({ children: e, className: o }) => /* @__PURE__ */ t.jsx("div", { className: o, children: /* @__PURE__ */ t.jsx("div", { className: i("flex flex-col gap-4"), children: e }) }), j = ({ children: e, className: o }) => /* @__PURE__ */ t.jsx("h1", { className: o, children: e }), D = ({ children: e, className: o }) => /* @__PURE__ */ t.jsx("div", { className: o, children: e }), b = ({ children: e, className: o }) => /* @__PURE__ */ t.jsx("div", { className: o, children: e }), C = Object.assign(x, {
|
|
32
|
+
Content: m,
|
|
33
|
+
Header: D,
|
|
34
|
+
Footer: b,
|
|
35
|
+
Title: j
|
|
36
|
+
}), k = () => {
|
|
37
|
+
const e = g(null);
|
|
44
38
|
return {
|
|
45
39
|
ref: e,
|
|
46
40
|
open: () => {
|
|
@@ -53,6 +47,6 @@ const R = () => {
|
|
|
53
47
|
};
|
|
54
48
|
};
|
|
55
49
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
C as default,
|
|
51
|
+
k as useDialogControl
|
|
58
52
|
};
|
package/dist/DrawerDesktop.es.js
CHANGED
package/dist/DrawerMobile.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-
|
|
1
|
+
import { j as r } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { forwardRef as O, useState as g, useRef as x, useCallback as t, useImperativeHandle as D } from "react";
|
|
3
3
|
import { Drawer as n } from "vaul";
|
|
4
4
|
import { c as R } from "./cn-B6yFEsav.js";
|
package/dist/DropZone.es.js
CHANGED
package/dist/Header.es.js
CHANGED
package/dist/Icons.es.js
CHANGED
package/dist/Input.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
1
|
+
import { j as t } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { Icons as O } from "./Icons.es.js";
|
|
3
3
|
import { c as e } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { memo as ue, useState as N, useRef as ce, useCallback as fe, useEffect as $, useLayoutEffect as ie } from "react";
|
package/dist/InputFormik.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { c as u } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { FastField as O, ErrorMessage as q } from "formik";
|
|
4
4
|
import { memo as G, useState as I, useRef as H, useCallback as y, useLayoutEffect as J } from "react";
|
package/dist/InputMultiple.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-
|
|
1
|
+
import { j as r } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { Icons as E } from "./Icons.es.js";
|
|
3
3
|
import { c as d } from "./cn-B6yFEsav.js";
|
|
4
4
|
import M, { useRef as D, useState as p, useCallback as W, useEffect as X } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
1
|
+
import { j as t } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { useRef as a, createContext as i, useContext as u, memo as c } from "react";
|
|
3
3
|
const o = i(null), l = ({ children: e }) => {
|
|
4
4
|
const r = a(null), s = (n) => {
|
package/dist/LayoutGeneric.es.js
CHANGED
package/dist/Logo.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { Icons as t } from "./Icons.es.js";
|
|
3
3
|
const s = () => /* @__PURE__ */ e.jsxs("div", { className: "container-logo flex items-center justify-center gap-1 bg-gradient-to-br from-[#312C85] to-[#1E1A4D] rounded-md min-w-[185px]", children: [
|
|
4
4
|
/* @__PURE__ */ e.jsx(t.TicketFilled, { size: 28, className: "rotate-140 text-primary-medium-pressed icon-logo" }),
|
package/dist/Menu.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { c as r } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { AnimatePresence as n, motion as o } from "framer-motion";
|
|
4
4
|
const s = ({ menuRef: t, children: a, className: i }) => /* @__PURE__ */ e.jsx("div", { ref: t, className: r("flex bg-neutral-default-default absolute bottom-10 left-24 border-1 border-neutral-strong-default h-auto w-60 rounded-md px-2", i), children: /* @__PURE__ */ e.jsx(n, { mode: "wait", children: /* @__PURE__ */ e.jsx(
|
package/dist/OtpInput.es.js
CHANGED
package/dist/Pagination.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { motion as i, AnimatePresence as E } from "framer-motion";
|
|
3
3
|
import { useRef as v, useState as R, useLayoutEffect as A } from "react";
|
|
4
4
|
import H from "./Avatar.es.js";
|
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-ByW6EXIE.js";
|
|
2
2
|
import { Icons as w } from "./Icons.es.js";
|
|
3
3
|
import { c as o } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { memo as se, useState as y, useRef as re, useEffect as oe } from "react";
|
package/dist/SelectFormik.es.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
2
|
-
import { Icons as
|
|
3
|
-
import { c as
|
|
1
|
+
import { j as t } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
|
+
import { Icons as h } from "./Icons.es.js";
|
|
3
|
+
import { c as i } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { useField as P, ErrorMessage as M } from "formik";
|
|
5
5
|
import { useState as w, useRef as R, useEffect as L } from "react";
|
|
6
6
|
import B from "./Spinner.es.js";
|
|
7
7
|
const T = ({
|
|
8
8
|
label: N,
|
|
9
9
|
name: A,
|
|
10
|
-
placeholder:
|
|
11
|
-
disabled:
|
|
10
|
+
placeholder: v = "",
|
|
11
|
+
disabled: g,
|
|
12
12
|
containerClassName: k,
|
|
13
13
|
className: C,
|
|
14
|
-
options:
|
|
14
|
+
options: o = [],
|
|
15
15
|
multiple: n = !1,
|
|
16
16
|
emptyMessage: D = "No hay opciones disponibles",
|
|
17
|
-
labelVariant:
|
|
17
|
+
labelVariant: b = "default",
|
|
18
18
|
isFetching: O = !1
|
|
19
19
|
}) => {
|
|
20
|
-
const [
|
|
20
|
+
const [r, y, u] = P(A), [l, c] = w(!1), [f, j] = w(!1), m = R(null), x = y.touched && y.error, d = r.value && (Array.isArray(r.value) ? r.value.length > 0 : r.value.toString().length > 0), S = () => b === "static" || d || l || f ? "-top-3 left-2 scale-90" : "top-1/2 -translate-y-1/2 scale-100", V = () => r.value ? Array.isArray(r.value) ? o.filter((e) => r.value.includes(e.id)) : o.filter((e) => e.id === r.value) : [], z = (e) => {
|
|
21
21
|
if (n) {
|
|
22
|
-
const
|
|
23
|
-
|
|
22
|
+
const a = Array.isArray(r.value) ? r.value : [], s = a.includes(e.id) ? a.filter((p) => p !== e.id) : [...a, e.id];
|
|
23
|
+
u.setValue(s);
|
|
24
24
|
} else
|
|
25
|
-
|
|
25
|
+
u.setValue(e.id), c(!1);
|
|
26
26
|
}, E = (e) => {
|
|
27
|
-
e.stopPropagation(),
|
|
28
|
-
}, F = (e,
|
|
29
|
-
if (
|
|
30
|
-
const s =
|
|
31
|
-
(
|
|
27
|
+
e.stopPropagation(), u.setValue(n ? [] : "");
|
|
28
|
+
}, F = (e, a) => {
|
|
29
|
+
if (a?.stopPropagation(), n && Array.isArray(r.value)) {
|
|
30
|
+
const s = r.value.filter(
|
|
31
|
+
(p) => p !== e
|
|
32
32
|
);
|
|
33
|
-
|
|
33
|
+
u.setValue(s);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
L(() => {
|
|
37
|
-
const e = (
|
|
38
|
-
|
|
37
|
+
const e = (a) => {
|
|
38
|
+
m.current && !m.current.contains(a.target) && c(!1);
|
|
39
39
|
};
|
|
40
40
|
return l && document.addEventListener("mousedown", e), () => {
|
|
41
41
|
document.removeEventListener("mousedown", e);
|
|
@@ -43,61 +43,59 @@ const T = ({
|
|
|
43
43
|
}, [l]);
|
|
44
44
|
const I = () => {
|
|
45
45
|
const e = V();
|
|
46
|
-
return e.length === 0 ?
|
|
46
|
+
return e.length === 0 ? v ? /* @__PURE__ */ t.jsx("span", { className: "text-neutral-medium-default opacity-50", children: v }) : null : n ? /* @__PURE__ */ t.jsx("div", { className: "flex items-center gap-1 flex-wrap py-1", children: e.map((a) => /* @__PURE__ */ t.jsxs(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
49
|
className: "inline-flex items-center gap-1 px-2 py-1 bg-primary-default-default text-white text-xs rounded-md",
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */ t.jsx("span", { className: "truncate max-w-20", children:
|
|
51
|
+
/* @__PURE__ */ t.jsx("span", { className: "truncate max-w-20", children: a.label }),
|
|
52
52
|
/* @__PURE__ */ t.jsx(
|
|
53
53
|
"button",
|
|
54
54
|
{
|
|
55
55
|
onMouseDown: (s) => {
|
|
56
|
-
s.preventDefault(), F(
|
|
56
|
+
s.preventDefault(), F(a.id, s);
|
|
57
57
|
},
|
|
58
58
|
className: "flex-shrink-0 hover:bg-primary-strong-default rounded-sm p-0.5 transition-colors",
|
|
59
59
|
type: "button",
|
|
60
60
|
tabIndex: -1,
|
|
61
|
-
children: /* @__PURE__ */ t.jsx(
|
|
61
|
+
children: /* @__PURE__ */ t.jsx(h.Close, { size: 12, className: "" })
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
|
-
|
|
66
|
+
a.id
|
|
67
67
|
)) }) : /* @__PURE__ */ t.jsx("span", { children: e[0]?.label });
|
|
68
68
|
};
|
|
69
69
|
return /* @__PURE__ */ t.jsxs(
|
|
70
70
|
"div",
|
|
71
71
|
{
|
|
72
|
-
className:
|
|
73
|
-
ref:
|
|
72
|
+
className: i("relative w-full bg-inherit", k),
|
|
73
|
+
ref: m,
|
|
74
74
|
children: [
|
|
75
75
|
/* @__PURE__ */ t.jsxs("div", { className: "relative bg-inherit", children: [
|
|
76
76
|
/* @__PURE__ */ t.jsxs(
|
|
77
|
-
"
|
|
77
|
+
"div",
|
|
78
78
|
{
|
|
79
|
-
|
|
80
|
-
disabled: c,
|
|
81
|
-
onClick: () => !c && f(!l),
|
|
79
|
+
onClick: () => !g && c(!l),
|
|
82
80
|
onFocus: () => j(!0),
|
|
83
81
|
onBlur: () => j(!1),
|
|
84
|
-
className:
|
|
85
|
-
"w-full px-3 h-12 text-left border-1 rounded-lg transition-all duration-
|
|
82
|
+
className: i(
|
|
83
|
+
"w-full px-3 h-12 text-left border-1 rounded-lg transition-all duration-300 ease-in-out text-neutral-default-default",
|
|
86
84
|
"flex items-center justify-between bg-transparent focus:outline-none",
|
|
87
|
-
d || l ||
|
|
88
|
-
|
|
85
|
+
d || l || f ? " border-primary-default-focused ring-primary-default-focused ring-[2px]" : x ? "ring-error-default-default ring-[2px]" : "border-neutral-default-default hover:border-primary-default-hover",
|
|
86
|
+
g && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
89
87
|
C
|
|
90
88
|
),
|
|
91
89
|
children: [
|
|
92
90
|
/* @__PURE__ */ t.jsx(
|
|
93
91
|
"label",
|
|
94
92
|
{
|
|
95
|
-
className:
|
|
93
|
+
className: i(
|
|
96
94
|
"absolute pointer-events-none bg-inherit px-1 z-10",
|
|
97
|
-
|
|
95
|
+
b === "default" && "transition-all duration-200 ease-in-out",
|
|
98
96
|
"text-md",
|
|
99
97
|
S(),
|
|
100
|
-
d || l ||
|
|
98
|
+
d || l || f ? "text-primary-default-default" : x ? "text-red-500" : "text-neutral-medium-default",
|
|
101
99
|
"left-3"
|
|
102
100
|
),
|
|
103
101
|
children: N
|
|
@@ -114,14 +112,14 @@ const T = ({
|
|
|
114
112
|
className: "text-neutral-medium-default hover:text-neutral-default-default transition-colors",
|
|
115
113
|
type: "button",
|
|
116
114
|
tabIndex: -1,
|
|
117
|
-
children: /* @__PURE__ */ t.jsx(
|
|
115
|
+
children: /* @__PURE__ */ t.jsx(h.Close, { size: 16, className: "" })
|
|
118
116
|
}
|
|
119
117
|
),
|
|
120
118
|
O ? /* @__PURE__ */ t.jsx(B, { size: 20, variant: "clip" }) : /* @__PURE__ */ t.jsx(
|
|
121
|
-
|
|
119
|
+
h.ChevronDown,
|
|
122
120
|
{
|
|
123
121
|
size: 20,
|
|
124
|
-
className:
|
|
122
|
+
className: i(
|
|
125
123
|
"transition-transform text-neutral-default-default",
|
|
126
124
|
l ? "rotate-180" : ""
|
|
127
125
|
)
|
|
@@ -131,24 +129,24 @@ const T = ({
|
|
|
131
129
|
]
|
|
132
130
|
}
|
|
133
131
|
),
|
|
134
|
-
l && /* @__PURE__ */ t.jsx("div", { className: "absolute z-50 w-full mt-1 bg-neutral-default-default border border-neutral-default-default rounded-md shadow-lg max-h-60 overflow-auto", children:
|
|
135
|
-
const
|
|
132
|
+
l && /* @__PURE__ */ t.jsx("div", { className: "absolute z-50 w-full mt-1 bg-neutral-default-default border border-neutral-default-default rounded-md shadow-lg max-h-60 overflow-auto", children: o.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "px-3 py-2 text-neutral-medium-default", children: D }) : o.map((e) => {
|
|
133
|
+
const a = n ? Array.isArray(r.value) && r.value.includes(e.id) : r.value === e.id;
|
|
136
134
|
return /* @__PURE__ */ t.jsxs(
|
|
137
135
|
"div",
|
|
138
136
|
{
|
|
139
137
|
onMouseDown: (s) => {
|
|
140
138
|
s.preventDefault(), z(e), s.stopPropagation();
|
|
141
139
|
},
|
|
142
|
-
className:
|
|
140
|
+
className: i(
|
|
143
141
|
"px-3 py-2 cursor-pointer flex items-center transition-colors",
|
|
144
|
-
|
|
142
|
+
a ? "bg-primary-default-default text-white" : "hover:bg-neutral-medium-selected text-neutral-default-default"
|
|
145
143
|
),
|
|
146
144
|
children: [
|
|
147
145
|
n && /* @__PURE__ */ t.jsx(
|
|
148
146
|
"input",
|
|
149
147
|
{
|
|
150
148
|
type: "checkbox",
|
|
151
|
-
checked:
|
|
149
|
+
checked: a,
|
|
152
150
|
onChange: () => {
|
|
153
151
|
},
|
|
154
152
|
className: "mr-2 pointer-events-none"
|
|
@@ -161,10 +159,10 @@ const T = ({
|
|
|
161
159
|
);
|
|
162
160
|
}) })
|
|
163
161
|
] }),
|
|
164
|
-
|
|
162
|
+
x && /* @__PURE__ */ t.jsx(
|
|
165
163
|
M,
|
|
166
164
|
{
|
|
167
|
-
name:
|
|
165
|
+
name: r.name,
|
|
168
166
|
component: "span",
|
|
169
167
|
className: "block text-error-default-default text-xs mt-1"
|
|
170
168
|
}
|
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-ByW6EXIE.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
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as n } from "./jsx-runtime-
|
|
1
|
+
import { j as n } from "./jsx-runtime-ByW6EXIE.js";
|
|
2
2
|
import { c as r } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { useRef as p } from "react";
|
|
4
|
-
import { motion as
|
|
5
|
-
const x = ({ name:
|
|
6
|
-
const a = p(null),
|
|
4
|
+
import { motion as l } from "framer-motion";
|
|
5
|
+
const x = ({ name: c, value: o, onChange: d, disabled: e = !1 }) => {
|
|
6
|
+
const a = p(null), i = () => {
|
|
7
7
|
if (!a.current || e) return;
|
|
8
8
|
const m = !a.current.checked;
|
|
9
|
-
c
|
|
10
|
-
},
|
|
9
|
+
d(c, m);
|
|
10
|
+
}, s = {
|
|
11
11
|
on: {
|
|
12
12
|
default: {
|
|
13
13
|
container: "bg-primary-default-default",
|
|
@@ -45,20 +45,20 @@ const x = ({ name: l, value: o, onChange: c, disabled: e = !1 }) => {
|
|
|
45
45
|
off: {
|
|
46
46
|
width: 16
|
|
47
47
|
}
|
|
48
|
-
}, t = o ? "on" : "off",
|
|
48
|
+
}, t = o ? "on" : "off", u = e ? "disabled" : "default";
|
|
49
49
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
50
|
-
/* @__PURE__ */ n.jsx("input", { type: "checkbox", hidden: !0, ref: a, checked: o, disabled: e }),
|
|
50
|
+
/* @__PURE__ */ n.jsx("input", { type: "checkbox", hidden: !0, ref: a, checked: o, disabled: e, onChange: i }),
|
|
51
51
|
/* @__PURE__ */ n.jsx(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
className: r(
|
|
55
55
|
"w-14 h-8 rounded-full relative px-2",
|
|
56
|
-
|
|
56
|
+
s[t][u].container
|
|
57
57
|
),
|
|
58
58
|
children: /* @__PURE__ */ n.jsx(
|
|
59
|
-
|
|
59
|
+
l.span,
|
|
60
60
|
{
|
|
61
|
-
onClick:
|
|
61
|
+
onClick: i,
|
|
62
62
|
animate: f[t],
|
|
63
63
|
whileHover: e ? {} : {
|
|
64
64
|
background: t === "off" ? "rgba(29, 27, 32, 0.08)" : "rgba(101, 85, 143, 0.12)"
|
|
@@ -69,7 +69,7 @@ const x = ({ name: l, value: o, onChange: c, disabled: e = !1 }) => {
|
|
|
69
69
|
"cursor-pointer"
|
|
70
70
|
),
|
|
71
71
|
children: /* @__PURE__ */ n.jsx(
|
|
72
|
-
|
|
72
|
+
l.span,
|
|
73
73
|
{
|
|
74
74
|
animate: h[t],
|
|
75
75
|
whileTap: e ? {} : {
|
|
@@ -78,7 +78,7 @@ const x = ({ name: l, value: o, onChange: c, disabled: e = !1 }) => {
|
|
|
78
78
|
},
|
|
79
79
|
className: r(
|
|
80
80
|
"size-4 aspect-square rounded-full z-10",
|
|
81
|
-
|
|
81
|
+
s[t][u].dot
|
|
82
82
|
)
|
|
83
83
|
}
|
|
84
84
|
)
|
package/dist/TabLinks.es.js
CHANGED
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-ByW6EXIE.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-ByW6EXIE.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var v = { exports: {} },
|
|
1
|
+
import ee from "react";
|
|
2
|
+
var v = { exports: {} }, _ = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.js
|
|
@@ -9,29 +9,29 @@ var v = { exports: {} }, m = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var l = Symbol.for("react.transitional.element"),
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
if (s !== void 0 && (
|
|
12
|
+
var F;
|
|
13
|
+
function re() {
|
|
14
|
+
if (F) return _;
|
|
15
|
+
F = 1;
|
|
16
|
+
var l = Symbol.for("react.transitional.element"), T = Symbol.for("react.fragment");
|
|
17
|
+
function f(d, o, s) {
|
|
18
|
+
var m = null;
|
|
19
|
+
if (s !== void 0 && (m = "" + s), o.key !== void 0 && (m = "" + o.key), "key" in o) {
|
|
20
20
|
s = {};
|
|
21
|
-
for (var
|
|
22
|
-
|
|
21
|
+
for (var E in o)
|
|
22
|
+
E !== "key" && (s[E] = o[E]);
|
|
23
23
|
} else s = o;
|
|
24
24
|
return o = s.ref, {
|
|
25
25
|
$$typeof: l,
|
|
26
|
-
type:
|
|
27
|
-
key:
|
|
26
|
+
type: d,
|
|
27
|
+
key: m,
|
|
28
28
|
ref: o !== void 0 ? o : null,
|
|
29
29
|
props: s
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return _.Fragment = T, _.jsx = f, _.jsxs = f, _;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var R = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -41,44 +41,44 @@ var _ = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
44
|
+
var D;
|
|
45
|
+
function te() {
|
|
46
|
+
return D || (D = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
47
|
function l(e) {
|
|
48
48
|
if (e == null) return null;
|
|
49
49
|
if (typeof e == "function")
|
|
50
|
-
return e.$$typeof ===
|
|
50
|
+
return e.$$typeof === Z ? null : e.displayName || e.name || null;
|
|
51
51
|
if (typeof e == "string") return e;
|
|
52
52
|
switch (e) {
|
|
53
53
|
case p:
|
|
54
54
|
return "Fragment";
|
|
55
|
-
case
|
|
55
|
+
case J:
|
|
56
56
|
return "Profiler";
|
|
57
|
-
case
|
|
57
|
+
case U:
|
|
58
58
|
return "StrictMode";
|
|
59
|
-
case z:
|
|
60
|
-
return "Suspense";
|
|
61
59
|
case G:
|
|
60
|
+
return "Suspense";
|
|
61
|
+
case X:
|
|
62
62
|
return "SuspenseList";
|
|
63
|
-
case
|
|
63
|
+
case H:
|
|
64
64
|
return "Activity";
|
|
65
65
|
}
|
|
66
66
|
if (typeof e == "object")
|
|
67
67
|
switch (typeof e.tag == "number" && console.error(
|
|
68
68
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
69
|
), e.$$typeof) {
|
|
70
|
-
case
|
|
70
|
+
case W:
|
|
71
71
|
return "Portal";
|
|
72
|
-
case
|
|
73
|
-
return e.displayName || "Context";
|
|
74
|
-
case J:
|
|
75
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
72
|
+
case z:
|
|
73
|
+
return (e.displayName || "Context") + ".Provider";
|
|
76
74
|
case q:
|
|
75
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case V:
|
|
77
77
|
var r = e.render;
|
|
78
78
|
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
|
-
case
|
|
79
|
+
case B:
|
|
80
80
|
return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
|
|
81
|
-
case
|
|
81
|
+
case g:
|
|
82
82
|
r = e._payload, e = e._init;
|
|
83
83
|
try {
|
|
84
84
|
return l(e(r));
|
|
@@ -87,10 +87,10 @@ function re() {
|
|
|
87
87
|
}
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function T(e) {
|
|
91
91
|
return "" + e;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function f(e) {
|
|
94
94
|
try {
|
|
95
95
|
var r = !1;
|
|
96
96
|
} catch {
|
|
@@ -103,12 +103,12 @@ function re() {
|
|
|
103
103
|
r,
|
|
104
104
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
105
105
|
n
|
|
106
|
-
),
|
|
106
|
+
), T(e);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function d(e) {
|
|
110
110
|
if (e === p) return "<>";
|
|
111
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
111
|
+
if (typeof e == "object" && e !== null && e.$$typeof === g)
|
|
112
112
|
return "<...>";
|
|
113
113
|
try {
|
|
114
114
|
var r = l(e);
|
|
@@ -124,16 +124,16 @@ function re() {
|
|
|
124
124
|
function s() {
|
|
125
125
|
return Error("react-stack-top-frame");
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
if (
|
|
127
|
+
function m(e) {
|
|
128
|
+
if (h.call(e, "key")) {
|
|
129
129
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
130
130
|
if (r && r.isReactWarning) return !1;
|
|
131
131
|
}
|
|
132
132
|
return e.key !== void 0;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function E(e, r) {
|
|
135
135
|
function t() {
|
|
136
|
-
|
|
136
|
+
y || (y = !0, console.error(
|
|
137
137
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
138
138
|
r
|
|
139
139
|
));
|
|
@@ -143,23 +143,22 @@ function re() {
|
|
|
143
143
|
configurable: !0
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function L() {
|
|
147
147
|
var e = l(this.type);
|
|
148
|
-
return
|
|
148
|
+
return N[e] || (N[e] = !0, console.error(
|
|
149
149
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
150
150
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
$$typeof: j,
|
|
152
|
+
function M(e, r, t, n, c, u, A, S) {
|
|
153
|
+
return t = u.ref, e = {
|
|
154
|
+
$$typeof: x,
|
|
156
155
|
type: e,
|
|
157
156
|
key: r,
|
|
158
|
-
props:
|
|
159
|
-
_owner:
|
|
160
|
-
}, (
|
|
157
|
+
props: u,
|
|
158
|
+
_owner: c
|
|
159
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
161
160
|
enumerable: !1,
|
|
162
|
-
get:
|
|
161
|
+
get: L
|
|
163
162
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
164
163
|
configurable: !1,
|
|
165
164
|
enumerable: !1,
|
|
@@ -174,19 +173,19 @@ function re() {
|
|
|
174
173
|
configurable: !1,
|
|
175
174
|
enumerable: !1,
|
|
176
175
|
writable: !0,
|
|
177
|
-
value:
|
|
176
|
+
value: A
|
|
178
177
|
}), Object.defineProperty(e, "_debugTask", {
|
|
179
178
|
configurable: !1,
|
|
180
179
|
enumerable: !1,
|
|
181
180
|
writable: !0,
|
|
182
|
-
value:
|
|
181
|
+
value: S
|
|
183
182
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
184
183
|
}
|
|
185
|
-
function
|
|
184
|
+
function j(e, r, t, n, c, u, A, S) {
|
|
186
185
|
var a = r.children;
|
|
187
186
|
if (a !== void 0)
|
|
188
187
|
if (n)
|
|
189
|
-
if (
|
|
188
|
+
if (Q(a)) {
|
|
190
189
|
for (n = 0; n < a.length; n++)
|
|
191
190
|
w(a[n]);
|
|
192
191
|
Object.freeze && Object.freeze(a);
|
|
@@ -195,12 +194,12 @@ function re() {
|
|
|
195
194
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
196
195
|
);
|
|
197
196
|
else w(a);
|
|
198
|
-
if (
|
|
197
|
+
if (h.call(r, "key")) {
|
|
199
198
|
a = l(e);
|
|
200
|
-
var
|
|
201
|
-
return
|
|
199
|
+
var i = Object.keys(r).filter(function(K) {
|
|
200
|
+
return K !== "key";
|
|
202
201
|
});
|
|
203
|
-
n = 0 <
|
|
202
|
+
n = 0 < i.length ? "{key: someKey, " + i.join(": ..., ") + ": ...}" : "{key: someKey}", I[a + n] || (i = 0 < i.length ? "{" + i.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
204
203
|
`A props object containing a "key" prop is being spread into JSX:
|
|
205
204
|
let props = %s;
|
|
206
205
|
<%s {...props} />
|
|
@@ -209,73 +208,76 @@ React keys must be passed directly to JSX without using spread:
|
|
|
209
208
|
<%s key={someKey} {...props} />`,
|
|
210
209
|
n,
|
|
211
210
|
a,
|
|
212
|
-
|
|
211
|
+
i,
|
|
213
212
|
a
|
|
214
|
-
),
|
|
213
|
+
), I[a + n] = !0);
|
|
215
214
|
}
|
|
216
|
-
if (a = null, t !== void 0 && (
|
|
215
|
+
if (a = null, t !== void 0 && (f(t), a = "" + t), m(r) && (f(r.key), a = "" + r.key), "key" in r) {
|
|
217
216
|
t = {};
|
|
218
|
-
for (var
|
|
219
|
-
|
|
217
|
+
for (var P in r)
|
|
218
|
+
P !== "key" && (t[P] = r[P]);
|
|
220
219
|
} else t = r;
|
|
221
|
-
return a &&
|
|
220
|
+
return a && E(
|
|
222
221
|
t,
|
|
223
222
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
224
|
-
),
|
|
223
|
+
), M(
|
|
225
224
|
e,
|
|
226
225
|
a,
|
|
227
|
-
|
|
226
|
+
u,
|
|
227
|
+
c,
|
|
228
228
|
o(),
|
|
229
|
-
|
|
230
|
-
A
|
|
229
|
+
t,
|
|
230
|
+
A,
|
|
231
|
+
S
|
|
231
232
|
);
|
|
232
233
|
}
|
|
233
234
|
function w(e) {
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
function y(e) {
|
|
237
|
-
return typeof e == "object" && e !== null && e.$$typeof === j;
|
|
235
|
+
typeof e == "object" && e !== null && e.$$typeof === x && e._store && (e._store.validated = 1);
|
|
238
236
|
}
|
|
239
|
-
var
|
|
237
|
+
var b = ee, x = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), J = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), z = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), k = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, h = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
240
238
|
return null;
|
|
241
239
|
};
|
|
242
|
-
|
|
240
|
+
b = {
|
|
243
241
|
react_stack_bottom_frame: function(e) {
|
|
244
242
|
return e();
|
|
245
243
|
}
|
|
246
244
|
};
|
|
247
|
-
var
|
|
248
|
-
|
|
245
|
+
var y, N = {}, C = b.react_stack_bottom_frame.bind(
|
|
246
|
+
b,
|
|
249
247
|
s
|
|
250
|
-
)(),
|
|
251
|
-
|
|
252
|
-
var
|
|
253
|
-
return
|
|
248
|
+
)(), Y = O(d(s)), I = {};
|
|
249
|
+
R.Fragment = p, R.jsx = function(e, r, t, n, c) {
|
|
250
|
+
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
251
|
+
return j(
|
|
254
252
|
e,
|
|
255
253
|
r,
|
|
256
254
|
t,
|
|
257
255
|
!1,
|
|
258
|
-
n
|
|
259
|
-
|
|
256
|
+
n,
|
|
257
|
+
c,
|
|
258
|
+
u ? Error("react-stack-top-frame") : C,
|
|
259
|
+
u ? O(d(e)) : Y
|
|
260
260
|
);
|
|
261
|
-
},
|
|
262
|
-
var
|
|
263
|
-
return
|
|
261
|
+
}, R.jsxs = function(e, r, t, n, c) {
|
|
262
|
+
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
263
|
+
return j(
|
|
264
264
|
e,
|
|
265
265
|
r,
|
|
266
266
|
t,
|
|
267
267
|
!0,
|
|
268
|
-
n
|
|
269
|
-
|
|
268
|
+
n,
|
|
269
|
+
c,
|
|
270
|
+
u ? Error("react-stack-top-frame") : C,
|
|
271
|
+
u ? O(d(e)) : Y
|
|
270
272
|
);
|
|
271
273
|
};
|
|
272
|
-
})()),
|
|
274
|
+
})()), R;
|
|
273
275
|
}
|
|
274
|
-
var
|
|
275
|
-
function
|
|
276
|
-
return
|
|
276
|
+
var $;
|
|
277
|
+
function ne() {
|
|
278
|
+
return $ || ($ = 1, process.env.NODE_ENV === "production" ? v.exports = /* @__PURE__ */ re() : v.exports = /* @__PURE__ */ te()), v.exports;
|
|
277
279
|
}
|
|
278
|
-
var
|
|
280
|
+
var oe = /* @__PURE__ */ ne();
|
|
279
281
|
export {
|
|
280
|
-
|
|
282
|
+
oe as j
|
|
281
283
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as Ne } from "./Avatar.es.js";
|
|
2
2
|
import { default as Se } from "./Button.es.js";
|
|
3
|
-
import { C as Ie, a as Be } from "./CardProfile-
|
|
3
|
+
import { C as Ie, a as Be } from "./CardProfile-BZajBGbO.js";
|
|
4
4
|
import { default as Re } from "./CheckBox.es.js";
|
|
5
5
|
import { default as Pe } from "./CheckboxFormik.es.js";
|
|
6
6
|
import { default as Te, useDialogControl as ze } from "./DialogModal.es.js";
|
|
@@ -25,9 +25,9 @@ import { Table as vt, TableBody as ht, TableCaption as wt, TableCell as jt, Tabl
|
|
|
25
25
|
import { default as Bt } from "./TabLinks.es.js";
|
|
26
26
|
import { default as Rt } from "./TextArea.es.js";
|
|
27
27
|
import { default as Pt } from "./Tooltip.es.js";
|
|
28
|
-
import { u as j } from "./LayoutGeneric-
|
|
29
|
-
import { L as Tt, S as zt } from "./LayoutGeneric-
|
|
30
|
-
import { j as r } from "./jsx-runtime-
|
|
28
|
+
import { u as j } from "./LayoutGeneric-jDE96L2N.js";
|
|
29
|
+
import { L as Tt, S as zt } from "./LayoutGeneric-jDE96L2N.js";
|
|
30
|
+
import { j as r } from "./jsx-runtime-ByW6EXIE.js";
|
|
31
31
|
import { c as l } from "./cn-B6yFEsav.js";
|
|
32
32
|
import q, { useRef as p, useState as v, useLayoutEffect as P, createContext as D, useContext as T, forwardRef as N, useCallback as z, useEffect as C } from "react";
|
|
33
33
|
import { useGSAP as S } from "@gsap/react";
|