prometeo-design-system 2.5.2 → 2.5.3
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/DatePicker.es.js +1 -1
- package/dist/DrawerMobile.es.js +102 -100
- package/dist/Icons/Icons.d.ts +1 -0
- package/dist/Icons.es.js +43 -26
- package/dist/{Input-Bhd0bmVq.js → Input-PNwH7rb6.js} +1 -1
- package/dist/Input.es.js +1 -1
- package/dist/OtpInput.es.js +1 -1
- package/dist/{Select-B32JqJIS.js → Select-C-aLaiJu.js} +1 -1
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectSearch.es.js +48 -47
- package/dist/components/Drawer/DrawerMobile.d.ts +6 -5
- package/dist/components/Drawer/useDrawerMobile.d.ts +4 -3
- package/dist/components/SelectSearch/SelectSearch.d.ts +1 -0
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +2 -2
- package/package.json +1 -1
package/dist/DatePicker.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as $ } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import m, { createContext as mn, useContext as hn, useCallback as q, 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-PNwH7rb6.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";
|
package/dist/DrawerMobile.es.js
CHANGED
|
@@ -1,68 +1,69 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as
|
|
3
|
-
import { forwardRef as
|
|
1
|
+
import { j as g } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { c as G } from "./cn-B6yFEsav.js";
|
|
3
|
+
import { forwardRef as J, useState as _, useRef as h, useEffect as F, useCallback as c, useMemo as q, useImperativeHandle as K } from "react";
|
|
4
4
|
import { createPortal as Q } from "react-dom";
|
|
5
|
-
const
|
|
6
|
-
const { children:
|
|
7
|
-
|
|
8
|
-
s &&
|
|
9
|
-
}, [s]),
|
|
10
|
-
|
|
11
|
-
}, [
|
|
12
|
-
const
|
|
13
|
-
r("0%"),
|
|
14
|
-
}, []),
|
|
15
|
-
console.log(
|
|
16
|
-
}, [
|
|
5
|
+
const W = 44, U = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", ee = J((a, o) => {
|
|
6
|
+
const { children: x, defaultOpen: s = !1, onClose: f, snapPoints: d = ["60%"], setSnap: v, snap: w, attachToParent: O = !1 } = a, [E, r] = _(w || "0%"), [C, Y] = _(null), u = h(f), p = h(v), b = h(C);
|
|
7
|
+
u.current = f, b.current = C, F(() => {
|
|
8
|
+
s && H();
|
|
9
|
+
}, [s]), F(() => {
|
|
10
|
+
p.current = v;
|
|
11
|
+
}, [v]);
|
|
12
|
+
const M = c(() => {
|
|
13
|
+
r("0%"), u.current?.(b.current), setTimeout(() => Y(null), 300);
|
|
14
|
+
}, []), H = c((L, R) => {
|
|
15
|
+
console.log(L || d[0] || "60%"), r(L || d[0] || "60%"), Y(R ?? null);
|
|
16
|
+
}, [d]), S = q(() => E !== "0%", [E]);
|
|
17
17
|
K(o, () => ({
|
|
18
|
-
open:
|
|
19
|
-
close:
|
|
20
|
-
isOpen:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
open: H,
|
|
19
|
+
close: M,
|
|
20
|
+
isOpen: S,
|
|
21
|
+
getContext: () => b.current
|
|
22
|
+
}), [H, M, S]);
|
|
23
|
+
const y = w || E;
|
|
24
|
+
return O ? /* @__PURE__ */ g.jsx(B, { ...a, snap: y, setSnap: r, children: x }) : Q(/* @__PURE__ */ g.jsx(B, { ...a, snap: y, setSnap: r, children: x }), document.body);
|
|
25
|
+
}), B = ({ children: a, attachToParent: o = !1, className: x, snap: s, snapPoints: f = ["60%"], setSnap: d, hideOnClose: v = !1, header: w, modal: O = !1, closeOnOverlayClick: E = !1 }) => {
|
|
26
|
+
const r = h(null), C = h(null), Y = h(null), u = h(null), p = h(null), b = c(() => {
|
|
26
27
|
if (!r.current) return [];
|
|
27
28
|
console.log(f, "snapPoints");
|
|
28
29
|
const e = o && r.current.parentElement?.offsetHeight || window.innerHeight;
|
|
29
30
|
return f?.map((t) => typeof t == "string" && t.endsWith("%") ? parseFloat(t) > 100 ? e : parseFloat(t) / 100 * e : typeof t == "string" && t.endsWith("px") ? parseFloat(t) : typeof t == "number" && t >= 0 && t <= 1 ? t * e : typeof t == "number" ? t : 0) || [];
|
|
30
|
-
}, [f, o]),
|
|
31
|
-
const n =
|
|
31
|
+
}, [f, o]), M = c((e, t) => {
|
|
32
|
+
const n = b();
|
|
32
33
|
if (n.length === 0) return e;
|
|
33
34
|
if (Math.abs(t) > 0.05)
|
|
34
35
|
if (t > 0) {
|
|
35
|
-
const
|
|
36
|
-
return
|
|
36
|
+
const l = n.filter((i) => i < e);
|
|
37
|
+
return l.length > 0 ? Math.max(...l) : v ? 0 : W;
|
|
37
38
|
} else {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
return Math.min(...
|
|
39
|
+
const l = n.filter((i) => i > e);
|
|
40
|
+
if (l.length > 0)
|
|
41
|
+
return Math.min(...l);
|
|
41
42
|
}
|
|
42
|
-
return n.reduce((
|
|
43
|
-
}, [
|
|
44
|
-
if (
|
|
45
|
-
const t = o && r.current?.parentElement?.offsetHeight || window.innerHeight, n = e <=
|
|
46
|
-
|
|
43
|
+
return n.reduce((l, i) => Math.abs(i - e) < Math.abs(l - e) ? i : l);
|
|
44
|
+
}, [b]), H = c((e) => {
|
|
45
|
+
if (d && f) {
|
|
46
|
+
const t = o && r.current?.parentElement?.offsetHeight || window.innerHeight, n = e <= W ? "0%" : `${Math.round(e / t * 100)}%`;
|
|
47
|
+
d(n);
|
|
47
48
|
}
|
|
48
|
-
}, [
|
|
49
|
+
}, [d, f, o]), S = c((e) => {
|
|
49
50
|
r.current && (r.current.style.transition = U, r.current.style.height = `${e}px`);
|
|
50
|
-
}, [
|
|
51
|
-
if (
|
|
52
|
-
const { scrollY: e } =
|
|
53
|
-
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e),
|
|
51
|
+
}, [d, f, o]), y = c(() => {
|
|
52
|
+
if (p.current && o) {
|
|
53
|
+
const { scrollY: e } = p.current;
|
|
54
|
+
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e), p.current = null;
|
|
54
55
|
}
|
|
55
56
|
}, [o]);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}, [
|
|
57
|
+
F(() => () => {
|
|
58
|
+
y();
|
|
59
|
+
}, [y]), F(() => {
|
|
59
60
|
if (!r.current || !s) return;
|
|
60
61
|
console.log(s, "new snap");
|
|
61
62
|
const e = o && r.current.parentElement?.offsetHeight || window.innerHeight;
|
|
62
63
|
let t = 0;
|
|
63
|
-
typeof s == "string" && s.endsWith("%") ? parseFloat(s) <= 0 ? t =
|
|
64
|
+
typeof s == "string" && s.endsWith("%") ? parseFloat(s) <= 0 ? t = v ? 0 : W : t = parseFloat(s) / 100 * e : typeof s == "string" && s.endsWith("px") ? t = parseFloat(s) : typeof s == "number" && (s >= 0 && s <= 1 ? t = s * e : t = s), S(t);
|
|
64
65
|
}, [s, o]);
|
|
65
|
-
const N =
|
|
66
|
+
const N = c((e) => {
|
|
66
67
|
if (!r.current) return;
|
|
67
68
|
const t = e.touches[0], n = r.current.offsetHeight;
|
|
68
69
|
u.current = {
|
|
@@ -73,7 +74,7 @@ const G = 44, U = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", ee = q((a, o) =>
|
|
|
73
74
|
lastTime: Date.now(),
|
|
74
75
|
velocity: 0
|
|
75
76
|
};
|
|
76
|
-
}, []),
|
|
77
|
+
}, []), L = c((e) => {
|
|
77
78
|
if (!r.current) return;
|
|
78
79
|
const t = e, n = r.current.offsetHeight;
|
|
79
80
|
u.current = {
|
|
@@ -84,100 +85,100 @@ const G = 44, U = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", ee = q((a, o) =>
|
|
|
84
85
|
lastTime: Date.now(),
|
|
85
86
|
velocity: 0
|
|
86
87
|
};
|
|
87
|
-
}, []),
|
|
88
|
+
}, []), R = c((e) => {
|
|
88
89
|
if (!u.current || !r.current) return;
|
|
89
|
-
const t = e.touches[0], n = u.current,
|
|
90
|
-
if (!n.isDragging &&
|
|
90
|
+
const t = e.touches[0], n = u.current, D = n.startY - t.clientY, l = n.isDragging || Math.abs(D) > 5;
|
|
91
|
+
if (!n.isDragging && l && (n.isDragging = !0, o)) {
|
|
91
92
|
const i = window.scrollY;
|
|
92
|
-
|
|
93
|
+
p.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
|
|
93
94
|
}
|
|
94
|
-
if (
|
|
95
|
+
if (l) {
|
|
95
96
|
e.preventDefault();
|
|
96
|
-
const i = Date.now(),
|
|
97
|
-
if (
|
|
98
|
-
const
|
|
99
|
-
n.velocity = n.velocity * 0.8 +
|
|
97
|
+
const i = Date.now(), j = i - n.lastTime;
|
|
98
|
+
if (j > 0) {
|
|
99
|
+
const z = (t.clientY - n.lastY) / j;
|
|
100
|
+
n.velocity = n.velocity * 0.8 + z * 0.2;
|
|
100
101
|
}
|
|
101
102
|
n.lastY = t.clientY, n.lastTime = i;
|
|
102
|
-
const k = n.startHeight +
|
|
103
|
-
r.current.style.transition = "none", r.current.style.height = `${
|
|
103
|
+
const k = n.startHeight + D, T = o && r.current.parentElement?.offsetHeight || window.innerHeight, $ = Math.max(0, Math.min(k, T));
|
|
104
|
+
r.current.style.transition = "none", r.current.style.height = `${$}px`;
|
|
104
105
|
}
|
|
105
|
-
}, [o]), A =
|
|
106
|
+
}, [o]), A = c((e) => {
|
|
106
107
|
if (!u.current || !r.current) return;
|
|
107
|
-
const t = e, n = u.current,
|
|
108
|
-
if (!n.isDragging &&
|
|
108
|
+
const t = e, n = u.current, D = n.startY - t.clientY, l = n.isDragging || Math.abs(D) > 5;
|
|
109
|
+
if (!n.isDragging && l && (n.isDragging = !0, o)) {
|
|
109
110
|
const i = window.scrollY;
|
|
110
|
-
|
|
111
|
+
p.current = { scrollY: i }, document.body.style.position = "fixed", document.body.style.top = `-${i}px`, document.body.style.width = "100%";
|
|
111
112
|
}
|
|
112
|
-
if (
|
|
113
|
+
if (l) {
|
|
113
114
|
e.preventDefault();
|
|
114
|
-
const i = Date.now(),
|
|
115
|
-
if (
|
|
116
|
-
const
|
|
117
|
-
n.velocity = n.velocity * 0.8 +
|
|
115
|
+
const i = Date.now(), j = i - n.lastTime;
|
|
116
|
+
if (j > 0) {
|
|
117
|
+
const z = (t.clientY - n.lastY) / j;
|
|
118
|
+
n.velocity = n.velocity * 0.8 + z * 0.2;
|
|
118
119
|
}
|
|
119
120
|
n.lastY = t.clientY, n.lastTime = i;
|
|
120
|
-
const k = n.startHeight +
|
|
121
|
-
r.current.style.transition = "none", r.current.style.height = `${
|
|
121
|
+
const k = n.startHeight + D, T = o && r.current.parentElement?.offsetHeight || window.innerHeight, $ = Math.max(0, Math.min(k, T));
|
|
122
|
+
r.current.style.transition = "none", r.current.style.height = `${$}px`;
|
|
122
123
|
}
|
|
123
|
-
}, [o]),
|
|
124
|
+
}, [o]), m = c(() => {
|
|
124
125
|
if (!u.current || !r.current) return;
|
|
125
126
|
const e = u.current;
|
|
126
127
|
if (e.isDragging) {
|
|
127
|
-
|
|
128
|
-
const t = r.current.offsetHeight, n =
|
|
129
|
-
|
|
128
|
+
y();
|
|
129
|
+
const t = r.current.offsetHeight, n = M(t, e.velocity);
|
|
130
|
+
H(n);
|
|
130
131
|
}
|
|
131
132
|
u.current = null;
|
|
132
|
-
}, [
|
|
133
|
-
|
|
134
|
-
const e =
|
|
133
|
+
}, [M, S, y]);
|
|
134
|
+
F(() => {
|
|
135
|
+
const e = Y.current;
|
|
135
136
|
if (e)
|
|
136
|
-
return e.addEventListener("touchstart", N, { passive: !1 }), e.addEventListener("touchmove",
|
|
137
|
-
e.removeEventListener("touchstart", N), e.removeEventListener("touchmove",
|
|
137
|
+
return e.addEventListener("touchstart", N, { passive: !1 }), e.addEventListener("touchmove", R, { passive: !1 }), e.addEventListener("touchend", m), e.addEventListener("touchcancel", m), e.addEventListener("mousedown", L, { passive: !1 }), e.addEventListener("mousemove", A, { passive: !1 }), e.addEventListener("mouseup", m), e.addEventListener("mouseleave", m), () => {
|
|
138
|
+
e.removeEventListener("touchstart", N), e.removeEventListener("touchmove", R), e.removeEventListener("touchend", m), e.removeEventListener("touchcancel", m), e.removeEventListener("mousedown", L), e.removeEventListener("mousemove", A), e.removeEventListener("mouseup", m), e.removeEventListener("mouseleave", m);
|
|
138
139
|
};
|
|
139
|
-
}, [N,
|
|
140
|
-
const I =
|
|
141
|
-
return /* @__PURE__ */
|
|
142
|
-
|
|
140
|
+
}, [N, R, m]);
|
|
141
|
+
const I = q(() => s !== "0%", [s]);
|
|
142
|
+
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
143
|
+
O && /* @__PURE__ */ g.jsx(
|
|
143
144
|
"div",
|
|
144
145
|
{
|
|
145
|
-
className:
|
|
146
|
+
className: G(I ? "fixed inset-0 bg-black/40 z-55 cursor-default" : "hidden"),
|
|
146
147
|
onClick: (e) => {
|
|
147
|
-
e.preventDefault(), e.stopPropagation(),
|
|
148
|
+
e.preventDefault(), e.stopPropagation(), E && H(0);
|
|
148
149
|
},
|
|
149
150
|
"aria-hidden": "true"
|
|
150
151
|
}
|
|
151
152
|
),
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ g.jsxs(
|
|
153
154
|
"div",
|
|
154
155
|
{
|
|
155
156
|
ref: r,
|
|
156
|
-
className:
|
|
157
|
+
className: G(
|
|
157
158
|
o ? "absolute" : "fixed",
|
|
158
159
|
"z-60 bottom-0 w-full overflow-hidden",
|
|
159
160
|
"bg-neutral-default-default",
|
|
160
161
|
"border-t border-neutral-strong-default rounded-t-[12px]",
|
|
161
162
|
I ? "" : "border-neutral-weak",
|
|
162
|
-
|
|
163
|
+
x,
|
|
163
164
|
"flex flex-col items-center",
|
|
164
165
|
"touch-none select-none"
|
|
165
166
|
),
|
|
166
167
|
children: [
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ g.jsx(
|
|
168
169
|
"div",
|
|
169
170
|
{
|
|
170
|
-
ref:
|
|
171
|
+
ref: Y,
|
|
171
172
|
className: "w-full absolute top-0 h-11 flex items-center justify-center cursor-grab active:cursor-grabbing z-50 bg-inherit!",
|
|
172
|
-
children: /* @__PURE__ */
|
|
173
|
+
children: /* @__PURE__ */ g.jsx("span", { className: "w-12 h-1 rounded-full bg-neutral-weak-default" })
|
|
173
174
|
}
|
|
174
175
|
),
|
|
175
|
-
typeof w == "string" ? /* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */
|
|
176
|
+
typeof w == "string" ? /* @__PURE__ */ g.jsx("p", { className: " prometeo-fonts-headline-small text-neutral-default-default w-full h-11 bg-inherit absolute top-11 z-50 px-4", children: w }) : w,
|
|
177
|
+
/* @__PURE__ */ g.jsx(
|
|
177
178
|
"div",
|
|
178
179
|
{
|
|
179
|
-
ref:
|
|
180
|
-
className:
|
|
180
|
+
ref: C,
|
|
181
|
+
className: G(
|
|
181
182
|
"w-full h-full overflow-y-auto px-4 pb-4 ",
|
|
182
183
|
w ? "mt-22" : "mt-11"
|
|
183
184
|
),
|
|
@@ -193,16 +194,17 @@ const G = 44, U = "height 0.5s cubic-bezier(0.32, 0.72, 0, 1)", ee = q((a, o) =>
|
|
|
193
194
|
)
|
|
194
195
|
] });
|
|
195
196
|
}, te = () => {
|
|
196
|
-
const a =
|
|
197
|
-
a.current?.open(
|
|
198
|
-
}, []),
|
|
197
|
+
const a = h(null), o = c((d, v) => {
|
|
198
|
+
a.current?.open(d, v);
|
|
199
|
+
}, []), x = c(() => {
|
|
199
200
|
a.current?.close();
|
|
200
|
-
}, []);
|
|
201
|
+
}, []), s = c(() => a.current?.isOpen ?? !1, []), f = c(() => a.current?.getContext() ?? null, []);
|
|
201
202
|
return {
|
|
202
|
-
isOpen:
|
|
203
|
+
isOpen: s,
|
|
203
204
|
open: o,
|
|
204
|
-
close:
|
|
205
|
-
drawerRef: a
|
|
205
|
+
close: x,
|
|
206
|
+
drawerRef: a,
|
|
207
|
+
getContext: f
|
|
206
208
|
};
|
|
207
209
|
};
|
|
208
210
|
export {
|
package/dist/Icons/Icons.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ declare const Icons: {
|
|
|
53
53
|
readonly Cancel: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
54
54
|
readonly CheckCircle: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
55
55
|
readonly FormatColorText: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
56
|
+
readonly CheckList: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
|
|
56
57
|
};
|
|
57
58
|
export { Icons };
|
|
58
59
|
export type IconName = keyof typeof Icons;
|
package/dist/Icons.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as h } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { memo as v } from "react";
|
|
3
|
-
const l = (t) => v(t),
|
|
3
|
+
const l = (t) => v(t), o = l(({
|
|
4
4
|
size: t = 24,
|
|
5
5
|
className: r,
|
|
6
6
|
...q
|
|
@@ -16,7 +16,7 @@ const l = (t) => v(t), w = l(({
|
|
|
16
16
|
className: r,
|
|
17
17
|
children: /* @__PURE__ */ h.jsx("path", { d: "M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Zm0-80v-102q-37-22-58.5-58.5T720-480q0-43 21.5-79.5T800-618v-102H160v102q37 22 58.5 58.5T240-480q0 43-21.5 79.5T160-342v102h640ZM480-480Z" })
|
|
18
18
|
}
|
|
19
|
-
)),
|
|
19
|
+
)), w = l(({
|
|
20
20
|
size: t = 24,
|
|
21
21
|
className: r,
|
|
22
22
|
...q
|
|
@@ -32,7 +32,7 @@ const l = (t) => v(t), w = l(({
|
|
|
32
32
|
...q,
|
|
33
33
|
children: /* @__PURE__ */ h.jsx("path", { d: "M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Z" })
|
|
34
34
|
}
|
|
35
|
-
)),
|
|
35
|
+
)), s = l(({
|
|
36
36
|
size: t = 24,
|
|
37
37
|
className: r,
|
|
38
38
|
...q
|
|
@@ -48,7 +48,7 @@ const l = (t) => v(t), w = l(({
|
|
|
48
48
|
className: r,
|
|
49
49
|
children: /* @__PURE__ */ h.jsx("path", { d: "M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z" })
|
|
50
50
|
}
|
|
51
|
-
)),
|
|
51
|
+
)), T = l(({
|
|
52
52
|
size: t = 24,
|
|
53
53
|
className: r,
|
|
54
54
|
...q
|
|
@@ -144,7 +144,7 @@ const l = (t) => v(t), w = l(({
|
|
|
144
144
|
className: r,
|
|
145
145
|
children: /* @__PURE__ */ h.jsx("path", { d: "M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z" })
|
|
146
146
|
}
|
|
147
|
-
)),
|
|
147
|
+
)), c = l(({
|
|
148
148
|
size: t = 24,
|
|
149
149
|
className: r,
|
|
150
150
|
...q
|
|
@@ -160,7 +160,7 @@ const l = (t) => v(t), w = l(({
|
|
|
160
160
|
className: r,
|
|
161
161
|
children: /* @__PURE__ */ h.jsx("path", { d: "M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z" })
|
|
162
162
|
}
|
|
163
|
-
)),
|
|
163
|
+
)), Z = l(({
|
|
164
164
|
size: t = 24,
|
|
165
165
|
className: r,
|
|
166
166
|
...q
|
|
@@ -304,7 +304,7 @@ const l = (t) => v(t), w = l(({
|
|
|
304
304
|
className: r,
|
|
305
305
|
children: /* @__PURE__ */ h.jsx("path", { d: "M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z" })
|
|
306
306
|
}
|
|
307
|
-
)),
|
|
307
|
+
)), L = l(({
|
|
308
308
|
size: t = 24,
|
|
309
309
|
className: r,
|
|
310
310
|
...q
|
|
@@ -320,7 +320,7 @@ const l = (t) => v(t), w = l(({
|
|
|
320
320
|
className: r,
|
|
321
321
|
children: /* @__PURE__ */ h.jsx("path", { d: "M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z" })
|
|
322
322
|
}
|
|
323
|
-
)),
|
|
323
|
+
)), f = l(({
|
|
324
324
|
size: t = 24,
|
|
325
325
|
className: r,
|
|
326
326
|
...q
|
|
@@ -336,7 +336,7 @@ const l = (t) => v(t), w = l(({
|
|
|
336
336
|
className: r,
|
|
337
337
|
children: /* @__PURE__ */ h.jsx("path", { d: "m668-380 152-130 120 10-176 153 52 227-102-62-46-198Zm-94-292-42-98 46-110 92 217-96-9ZM294-287l126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM173-120l65-281L20-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-340Z" })
|
|
338
338
|
}
|
|
339
|
-
)),
|
|
339
|
+
)), H = l(({
|
|
340
340
|
size: t = 24,
|
|
341
341
|
className: r,
|
|
342
342
|
...q
|
|
@@ -400,7 +400,7 @@ const l = (t) => v(t), w = l(({
|
|
|
400
400
|
className: r,
|
|
401
401
|
children: /* @__PURE__ */ h.jsx("path", { d: "M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z" })
|
|
402
402
|
}
|
|
403
|
-
)),
|
|
403
|
+
)), V = l(({
|
|
404
404
|
size: t = 24,
|
|
405
405
|
className: r,
|
|
406
406
|
...q
|
|
@@ -416,7 +416,7 @@ const l = (t) => v(t), w = l(({
|
|
|
416
416
|
className: r,
|
|
417
417
|
children: /* @__PURE__ */ h.jsx("path", { d: "M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z" })
|
|
418
418
|
}
|
|
419
|
-
)),
|
|
419
|
+
)), E = l(({
|
|
420
420
|
size: t = 24,
|
|
421
421
|
className: r,
|
|
422
422
|
...q
|
|
@@ -599,17 +599,33 @@ const l = (t) => v(t), w = l(({
|
|
|
599
599
|
className: r,
|
|
600
600
|
children: /* @__PURE__ */ h.jsx("path", { d: "M3.5 21V17.5714H20.5V21H3.5ZM6.475 15L10.9375 3H13.0625L17.525 15H15.485L14.4225 11.9143H9.62L8.515 15H6.475ZM10.215 10.2H13.785L12.0425 5.22857H11.9575L10.215 10.2Z", fill: "currentColor" })
|
|
601
601
|
}
|
|
602
|
-
)), z = {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
602
|
+
)), z = l(({
|
|
603
|
+
size: t = 24,
|
|
604
|
+
className: r,
|
|
605
|
+
...q
|
|
606
|
+
}) => /* @__PURE__ */ h.jsx(
|
|
607
|
+
"svg",
|
|
608
|
+
{
|
|
609
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
610
|
+
width: t,
|
|
611
|
+
height: t,
|
|
612
|
+
viewBox: "0 -960 960 960",
|
|
613
|
+
fill: "currentColor",
|
|
614
|
+
...q,
|
|
615
|
+
className: r,
|
|
616
|
+
children: /* @__PURE__ */ h.jsx("path", { d: "M286.5 -253.875L180 -360.375L222 -402.375L285.75 -338.625L413.25 -466.125L455.25 -423.375L286.5 -253.875ZM286.5 -493.875L180 -600.375L222 -642.375L285.75 -578.625L413.25 -706.125L455.25 -663.375L286.5 -493.875ZM510 -313.875V-373.875H780V-313.875H510ZM510 -553.875V-613.875H780V-553.875H510Z", fill: "currentColor", transform: "translate(480,-480) scale(1.45) translate(-480,480)" })
|
|
617
|
+
}
|
|
618
|
+
)), t0 = {
|
|
619
|
+
Ticket: o,
|
|
620
|
+
Home: s,
|
|
621
|
+
Boards: T,
|
|
606
622
|
Notifications: n,
|
|
607
623
|
Help: e,
|
|
608
624
|
Settings: i,
|
|
609
625
|
CrevronLeft: x,
|
|
610
626
|
CrevronRight: g,
|
|
611
|
-
ArrowLeft:
|
|
612
|
-
Shared:
|
|
627
|
+
ArrowLeft: c,
|
|
628
|
+
Shared: Z,
|
|
613
629
|
ChevronDown: m,
|
|
614
630
|
Collapse: d,
|
|
615
631
|
Calendar: C,
|
|
@@ -618,14 +634,14 @@ const l = (t) => v(t), w = l(({
|
|
|
618
634
|
Logout: j,
|
|
619
635
|
ArrowUpDown: a,
|
|
620
636
|
Filter: M,
|
|
621
|
-
Search:
|
|
622
|
-
Stars:
|
|
623
|
-
MoreVert:
|
|
637
|
+
Search: L,
|
|
638
|
+
Stars: f,
|
|
639
|
+
MoreVert: H,
|
|
624
640
|
Add: B,
|
|
625
641
|
Edit: k,
|
|
626
642
|
Upload: y,
|
|
627
|
-
Copy:
|
|
628
|
-
FaLock:
|
|
643
|
+
Copy: V,
|
|
644
|
+
FaLock: E,
|
|
629
645
|
AccountCircle: A,
|
|
630
646
|
UserAdd: F,
|
|
631
647
|
AttachFile: S,
|
|
@@ -637,7 +653,7 @@ const l = (t) => v(t), w = l(({
|
|
|
637
653
|
Check: N,
|
|
638
654
|
Info: O,
|
|
639
655
|
Error: P,
|
|
640
|
-
TicketFilled:
|
|
656
|
+
TicketFilled: w,
|
|
641
657
|
UploadCloud: R,
|
|
642
658
|
Clock: $,
|
|
643
659
|
Pause: G,
|
|
@@ -646,10 +662,11 @@ const l = (t) => v(t), w = l(({
|
|
|
646
662
|
Sort: Q,
|
|
647
663
|
Cancel: W,
|
|
648
664
|
CheckCircle: X,
|
|
649
|
-
FormatColorText: Y
|
|
665
|
+
FormatColorText: Y,
|
|
666
|
+
CheckList: z
|
|
650
667
|
};
|
|
651
|
-
for (const [t, r] of Object.entries(
|
|
668
|
+
for (const [t, r] of Object.entries(t0))
|
|
652
669
|
r.displayName = `${t}_Icon`;
|
|
653
670
|
export {
|
|
654
|
-
|
|
671
|
+
t0 as Icons
|
|
655
672
|
};
|
package/dist/Input.es.js
CHANGED
package/dist/OtpInput.es.js
CHANGED
|
@@ -279,7 +279,7 @@ const Ze = (t) => {
|
|
|
279
279
|
"div",
|
|
280
280
|
{
|
|
281
281
|
className: $(
|
|
282
|
-
"relative w-14 h-14 text-[1.2rem] text-white",
|
|
282
|
+
"relative w-12 h-12 md:w-14 md:h-14 text-[1rem] md:text-[1.2rem] text-white",
|
|
283
283
|
"flex items-center justify-center",
|
|
284
284
|
"transition-all duration-300",
|
|
285
285
|
"border-2 border-neutral-default-default rounded-md mx-1",
|
|
@@ -5,7 +5,7 @@ import je, { memo as W, useState as fe, useRef as G, useMemo as Z, useCallback a
|
|
|
5
5
|
import Be from "./Spinner.es.js";
|
|
6
6
|
import { createPortal as Ke } from "react-dom";
|
|
7
7
|
import { u as Ue } from "./useDragScroll-CHN9OMwn.js";
|
|
8
|
-
import { u as qe, I as Fe } from "./Input-
|
|
8
|
+
import { u as qe, I as Fe } from "./Input-PNwH7rb6.js";
|
|
9
9
|
import Ge from "./CheckBox.es.js";
|
|
10
10
|
import { Skeleton as Ce } from "./Skeleton.es.js";
|
|
11
11
|
const He = (r) => {
|
package/dist/Select.es.js
CHANGED
package/dist/SelectFormik.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as m } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { useField as c } from "formik";
|
|
3
|
-
import { S as f } from "./Select-
|
|
3
|
+
import { S as f } from "./Select-C-aLaiJu.js";
|
|
4
4
|
import { useRef as d, useEffect as v } from "react";
|
|
5
5
|
function n(r) {
|
|
6
6
|
return Array.isArray(r) && r.every(
|