prometeo-design-system 4.3.1 → 4.3.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.
Files changed (68) hide show
  1. package/dist/Avatar.es.js +40 -41
  2. package/dist/CardProfile.es.js +291 -3
  3. package/dist/CheckBox.es.js +24 -21
  4. package/dist/DialogModal.es.js +52 -46
  5. package/dist/Icons/ArrowDownward.d.ts +2 -0
  6. package/dist/Icons/ArrowDownward.es.js +9 -0
  7. package/dist/Icons/ArrowUpward.d.ts +2 -0
  8. package/dist/Icons/ArrowUpward.es.js +9 -0
  9. package/dist/Icons/UserAvatar.es.js +4 -4
  10. package/dist/Icons/components/ArrowDownward.d.ts +3 -0
  11. package/dist/Icons/components/ArrowUpward.d.ts +3 -0
  12. package/dist/Icons/index.d.ts +2 -0
  13. package/dist/Icons/types.d.ts +4 -0
  14. package/dist/Icons.es.js +124 -120
  15. package/dist/Input.es.js +73 -72
  16. package/dist/NotificationCard.es.js +28 -21
  17. package/dist/PlainTooltip.es.js +19 -19
  18. package/dist/PyrionLayout.es.js +916 -810
  19. package/dist/Scrollable.es.js +322 -177
  20. package/dist/Select.es.js +47 -47
  21. package/dist/SelectSearch.es.js +107 -103
  22. package/dist/TabLinks-DxqprStp.js +147 -0
  23. package/dist/TabLinks.es.js +2 -121
  24. package/dist/TicketCard.es.js +2 -2
  25. package/dist/Toast.es.js +95 -51
  26. package/dist/UserCard.d.ts +6 -0
  27. package/dist/UserCard.es.js +28 -0
  28. package/dist/badge-BEx-0Q-K.js +35 -0
  29. package/dist/components/Avatar/Avatar.d.ts +2 -4
  30. package/dist/components/CardProfile/CardProfile.d.ts +7 -4
  31. package/dist/components/DropZone/useFileDropzone.d.ts +9 -1
  32. package/dist/components/NotificationCard/NotificationCard.d.ts +3 -2
  33. package/dist/components/PyrionNavigationDrawer/PLNotificationsList.d.ts +5 -2
  34. package/dist/components/PyrionNavigationDrawer/PLSidebar.d.ts +3 -1
  35. package/dist/components/PyrionNavigationDrawer/PLSidebarContent.d.ts +2 -0
  36. package/dist/components/PyrionNavigationDrawer/PLayoutBase.d.ts +2 -0
  37. package/dist/components/PyrionNavigationDrawer/PyrionLayout.d.ts +4 -1
  38. package/dist/components/Scrollable/Scrollable.d.ts +29 -0
  39. package/dist/components/TabLinks/TabLinks.d.ts +19 -0
  40. package/dist/components/Toaster/Toaster.d.ts +13 -1
  41. package/dist/components/UserCard/UserCard.d.ts +3 -2
  42. package/dist/exports/UserCard.d.ts +2 -0
  43. package/dist/hooks/useLabelBackground.d.ts +1 -0
  44. package/dist/index.d.ts +0 -16
  45. package/dist/prometeo-design-system.es.js +119 -2906
  46. package/dist/styles.css +1 -1
  47. package/dist/useLabelBackground-D5SzHhl_.js +32 -0
  48. package/package.json +1 -2
  49. package/dist/CardProfile-C1F83KJV.js +0 -280
  50. package/dist/badge-CbqYNrl4.js +0 -87
  51. package/dist/components/Layout/LayoutGeneric.d.ts +0 -6
  52. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +0 -32
  53. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +0 -2
  54. package/dist/components/Sidebar/SecondaryBar/index.d.ts +0 -1
  55. package/dist/components/Sidebar/SidebarComposable.d.ts +0 -43
  56. package/dist/components/Sidebar/components/NavigationLink.d.ts +0 -11
  57. package/dist/components/Sidebar/components/company-logo.d.ts +0 -5
  58. package/dist/components/Sidebar/components/nav-actions.d.ts +0 -7
  59. package/dist/components/Sidebar/components/nav-links.d.ts +0 -7
  60. package/dist/components/Sidebar/context/SidebarContext.d.ts +0 -13
  61. package/dist/components/Sidebar/hooks/SidebarProvider.d.ts +0 -3
  62. package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +0 -9
  63. package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +0 -4
  64. package/dist/components/Sidebar/hooks/useNavLinks.d.ts +0 -32
  65. package/dist/components/Sidebar/hooks/useSidebarHook.d.ts +0 -13
  66. package/dist/components/Sidebar/index.d.ts +0 -12
  67. package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +0 -2
  68. package/dist/useLabelBackground-BDIHUdND.js +0 -26
package/dist/Avatar.es.js CHANGED
@@ -1,18 +1,17 @@
1
- import { j as e } from "./jsx-runtime-GkKLlHH4.js";
2
- import { g as S } from "./useLabelBackground-BDIHUdND.js";
3
- import { c as u } from "./cn-B6yFEsav.js";
4
- import { useState as N, useRef as d, useLayoutEffect as y } from "react";
5
- import { UserAvatar as f } from "./Icons/UserAvatar.es.js";
6
- function q({
7
- imageUrl: t,
8
- sizeImage: a = "md",
9
- sizeFallback: s = "md",
10
- sizeFallbackIcon: x = 24,
11
- fallbackText: h = "Selene Soluciones",
12
- subImageUrl: n,
13
- fallbackType: i = "initials"
1
+ import { j as t } from "./jsx-runtime-GkKLlHH4.js";
2
+ import { g as v } from "./useLabelBackground-D5SzHhl_.js";
3
+ import { c as x } from "./cn-B6yFEsav.js";
4
+ import { useState as C, useRef as u, useLayoutEffect as N } from "react";
5
+ import { UserAvatar as y } from "./Icons/UserAvatar.es.js";
6
+ function I({
7
+ imageUrl: s,
8
+ sizeImage: n = "md",
9
+ sizeFallback: e = "md",
10
+ fallbackText: d = "",
11
+ subImageUrl: i,
12
+ fallbackType: c = "initials"
14
13
  }) {
15
- const [g, p] = N(!1), c = t && t.trim() !== "" && !g, w = (l) => l.split(" ").map((C) => C.charAt(0)).join("").toUpperCase().slice(0, 2), m = {
14
+ const [f, h] = C(!1), m = s && s.trim() !== "" && !f, g = (a) => a.split(" ").map((j) => j.charAt(0)).join("").toUpperCase().slice(0, 2), r = {
16
15
  xxxs: "w-6.5 h-6.5",
17
16
  xxs: "w-8 h-8",
18
17
  xs: "w-10 h-10",
@@ -20,7 +19,7 @@ function q({
20
19
  md: "w-24 h-24",
21
20
  lg: "w-32 h-32",
22
21
  xl: "w-40 h-40"
23
- }, b = {
22
+ }, p = {
24
23
  xxxs: "text-[12px]",
25
24
  xxs: "text-xs",
26
25
  xs: "text-sm",
@@ -28,7 +27,7 @@ function q({
28
27
  md: "text-2xl",
29
28
  lg: "text-3xl",
30
29
  xl: "text-4xl"
31
- }, j = {
30
+ }, w = {
32
31
  xxxs: "w-3 h-3",
33
32
  xxs: "w-[18px] h-[18px] bottom-0 right-0 translate-x-1/3 translate-y-1/3",
34
33
  xs: "w-5 h-5",
@@ -36,54 +35,54 @@ function q({
36
35
  md: "w-12 h-12 border-3",
37
36
  lg: "w-16 h-16 border-4",
38
37
  xl: "w-20 h-20 border-5"
39
- }, v = c ? a : s, r = d(null), o = d(null);
40
- return y(() => {
41
- if (!r.current || !o.current) return;
42
- const l = S(r.current);
43
- o.current.style.borderColor = l;
44
- }, []), /* @__PURE__ */ e.jsxs("div", { className: "relative inline-block min-w-max ", ref: r, children: [
45
- c ? /* @__PURE__ */ e.jsx(
38
+ }, b = m ? n : e, o = u(null), l = u(null);
39
+ return N(() => {
40
+ if (!o.current || !l.current) return;
41
+ const a = v(o.current);
42
+ l.current.style.borderColor = a;
43
+ }, []), /* @__PURE__ */ t.jsxs("div", { className: "relative inline-block min-w-max ", ref: o, children: [
44
+ m ? /* @__PURE__ */ t.jsx(
46
45
  "img",
47
46
  {
48
47
  onError: () => {
49
- p(!0);
48
+ h(!0);
50
49
  },
51
- src: t,
52
- className: `rounded-full object-cover ${m[a]}`,
50
+ src: s,
51
+ className: `rounded-full object-cover ${r[n]}`,
53
52
  alt: "Profile",
54
53
  draggable: !1
55
54
  }
56
- ) : i === "initials" ? /* @__PURE__ */ e.jsx(
55
+ ) : c === "initials" ? /* @__PURE__ */ t.jsx(
57
56
  "div",
58
57
  {
59
- className: ` flex items-center justify-center rounded-full aspect-square ${m[s]}`,
58
+ className: ` flex items-center justify-center rounded-full aspect-square ${r[e]}`,
60
59
  style: { backgroundColor: "#C6D2FF" },
61
- children: /* @__PURE__ */ e.jsx(
60
+ children: /* @__PURE__ */ t.jsx(
62
61
  "span",
63
62
  {
64
- className: u(
63
+ className: x(
65
64
  "text-[#312C85] font-semibold",
66
- b[s]
65
+ p[e]
67
66
  ),
68
- children: w(h)
67
+ children: g(d)
69
68
  }
70
69
  )
71
70
  },
72
71
  "initials"
73
- ) : i === "defaultAvatar" ? /* @__PURE__ */ e.jsx(f, { size: x }) : /* @__PURE__ */ e.jsx(f, { size: x }),
74
- n && /* @__PURE__ */ e.jsx(
72
+ ) : c === "defaultAvatar" && /* @__PURE__ */ t.jsx(y, { className: x(r[e], "fill-[#D4D4D8] text-(--neutral-700)") }),
73
+ i && /* @__PURE__ */ t.jsx(
75
74
  "div",
76
75
  {
77
- className: u(
78
- "absolute bottom-[-10px] right-[-10px] rounded-full border-1 overflow-hidden bg-gray-900",
79
- j[v]
76
+ className: x(
77
+ "absolute bottom-[-10px] right-[-10px] rounded-full border overflow-hidden bg-gray-900",
78
+ w[b]
80
79
  ),
81
- ref: o,
82
- children: /* @__PURE__ */ e.jsx(
80
+ ref: l,
81
+ children: /* @__PURE__ */ t.jsx(
83
82
  "img",
84
83
  {
85
84
  draggable: !1,
86
- src: n,
85
+ src: i,
87
86
  alt: "Sub badge",
88
87
  className: "w-full h-full object-cover"
89
88
  }
@@ -93,5 +92,5 @@ function q({
93
92
  ] });
94
93
  }
95
94
  export {
96
- q as default
95
+ I as default
97
96
  };
@@ -1,5 +1,293 @@
1
- import { C as e, C as f } from "./CardProfile-C1F83KJV.js";
1
+ import { j as e } from "./jsx-runtime-GkKLlHH4.js";
2
+ import { c as n } from "./cn-B6yFEsav.js";
3
+ import { motion as i, AnimatePresence as h } from "framer-motion";
4
+ import { isValidElement as j } from "react";
5
+ import g from "./Avatar.es.js";
6
+ import { ChevronDown as v } from "./Icons/ChevronDown.es.js";
7
+ import { Logout as b } from "./Icons/Logout.es.js";
8
+ function y({
9
+ sessions: t,
10
+ handleTokenLogin: r
11
+ }) {
12
+ return /* @__PURE__ */ e.jsx("div", { className: "profile-options-container w-full ", children: t?.map((a) => /* @__PURE__ */ e.jsx(
13
+ "button",
14
+ {
15
+ className: "w-full ",
16
+ onClick: () => r?.(a.token),
17
+ children: /* @__PURE__ */ e.jsx(s, { children: /* @__PURE__ */ e.jsx(
18
+ s.Content,
19
+ {
20
+ onClick: () => {
21
+ console.log("hola");
22
+ },
23
+ isExpanded: !1,
24
+ nameUser: a.name,
25
+ nameArea: a?.areaId?.name,
26
+ nameCompany: a.companyId.name,
27
+ cardProfile: /* @__PURE__ */ e.jsx(s.Image, { isExpanded: !1 })
28
+ }
29
+ ) })
30
+ },
31
+ a._id
32
+ )) });
33
+ }
34
+ const w = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profile-container flex gap-0.5 overflow-hidden w-full min-w-0 ", children: t }), N = ({
35
+ isExpanded: t,
36
+ sessions: r,
37
+ onClickLogout: a,
38
+ handleTokenLogin: d
39
+ }) => /* @__PURE__ */ e.jsx(h, { mode: "wait", children: t && /* @__PURE__ */ e.jsxs(
40
+ i.div,
41
+ {
42
+ initial: { height: 0, opacity: 0 },
43
+ animate: {
44
+ height: "auto",
45
+ opacity: 1,
46
+ transition: {
47
+ height: { duration: 0.6, ease: "easeOut" },
48
+ opacity: { duration: 0.4, delay: 0.2 }
49
+ }
50
+ },
51
+ exit: {
52
+ height: 0,
53
+ opacity: 0,
54
+ transition: {
55
+ height: {
56
+ duration: 0.8,
57
+ delay: 0.2,
58
+ ease: "easeIn"
59
+ },
60
+ opacity: { duration: 0.3, delay: 0.1 }
61
+ }
62
+ },
63
+ className: "overflow-hidden",
64
+ children: [
65
+ /* @__PURE__ */ e.jsx(
66
+ i.div,
67
+ {
68
+ className: "flex justify-center items-center w-full mt-4",
69
+ exit: {
70
+ opacity: 0,
71
+ scaleX: 0,
72
+ height: 0,
73
+ transition: {
74
+ duration: 0.4,
75
+ delay: 0.5,
76
+ ease: "easeInOut"
77
+ }
78
+ },
79
+ children: /* @__PURE__ */ e.jsx("div", { className: "border-b border-neutral-strong-default border w-full" })
80
+ }
81
+ ),
82
+ r && r.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
83
+ /* @__PURE__ */ e.jsx(
84
+ i.div,
85
+ {
86
+ className: "mt-4",
87
+ exit: {
88
+ opacity: 0,
89
+ y: -5,
90
+ height: 0,
91
+ transition: {
92
+ duration: 0.4,
93
+ delay: 0.4,
94
+ ease: "easeInOut"
95
+ }
96
+ },
97
+ children: /* @__PURE__ */ e.jsx("span", { className: "text-neutral-medium-default font-semibold text-xs", children: "Cambiar cuenta" })
98
+ }
99
+ ),
100
+ /* @__PURE__ */ e.jsx(
101
+ i.div,
102
+ {
103
+ className: "mt-4 overflow-hidden w-full ",
104
+ exit: {
105
+ height: 0,
106
+ opacity: 0,
107
+ y: -10,
108
+ scale: 0.98,
109
+ transition: {
110
+ height: { duration: 0.5, delay: 0.2 },
111
+ opacity: { duration: 0.3, delay: 0.3 },
112
+ y: { duration: 0.3, delay: 0.3 },
113
+ scale: { duration: 0.3, delay: 0.3 },
114
+ ease: "easeInOut"
115
+ }
116
+ },
117
+ children: /* @__PURE__ */ e.jsx(
118
+ y,
119
+ {
120
+ sessions: r,
121
+ handleTokenLogin: d
122
+ }
123
+ )
124
+ }
125
+ ),
126
+ /* @__PURE__ */ e.jsx(
127
+ i.div,
128
+ {
129
+ className: "flex justify-center items-center w-full mt-4",
130
+ exit: {
131
+ opacity: 0,
132
+ scaleX: 0,
133
+ height: 0,
134
+ transition: {
135
+ duration: 0.4,
136
+ delay: 0.15,
137
+ ease: "easeInOut"
138
+ }
139
+ },
140
+ children: /* @__PURE__ */ e.jsx("div", { className: "border-b border-neutral-strong-default border w-full" })
141
+ }
142
+ )
143
+ ] }),
144
+ /* @__PURE__ */ e.jsxs(
145
+ i.button,
146
+ {
147
+ onClick: a,
148
+ className: "flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",
149
+ exit: {
150
+ opacity: 0,
151
+ y: -8,
152
+ scale: 0.96,
153
+ transition: {
154
+ duration: 0.5,
155
+ delay: 0,
156
+ ease: "easeInOut"
157
+ }
158
+ },
159
+ whileHover: {
160
+ opacity: 1,
161
+ scale: [1, 1.02, 1],
162
+ transition: { duration: 0.2 }
163
+ },
164
+ whileTap: { scale: 0.98 },
165
+ children: [
166
+ /* @__PURE__ */ e.jsx(b, { size: 24, className: "text-neutral-default-default" }),
167
+ /* @__PURE__ */ e.jsx("span", { className: "text-neutral-default-default font-semibold text-sm", children: "Cerrar sesión" })
168
+ ]
169
+ }
170
+ )
171
+ ]
172
+ }
173
+ ) }), I = ({ imageUrl: t, fallbackText: r, avatarProps: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper", children: /* @__PURE__ */ e.jsx(
174
+ g,
175
+ {
176
+ imageUrl: t,
177
+ sizeImage: "xxs",
178
+ sizeFallback: "xxs",
179
+ fallbackText: r,
180
+ ...a
181
+ }
182
+ ) }), O = ({
183
+ isExpanded: t,
184
+ nameUser: r,
185
+ nameCompany: a,
186
+ nameArea: d,
187
+ cardProfile: o,
188
+ onClick: u,
189
+ unassigned: l = !1
190
+ }) => {
191
+ const m = () => {
192
+ if (o && j(o) && o.type === s.Image) {
193
+ const c = o.props, f = l ? "" : c.fallbackText || r, x = l ? "" : c.imageUrl, p = l ? "defaultAvatar" : "initials";
194
+ return /* @__PURE__ */ e.jsx(s.Image, { ...c, fallbackText: f, avatarProps: { ...c.avatarProps, fallbackType: p, imageUrl: x } });
195
+ }
196
+ return o;
197
+ };
198
+ return /* @__PURE__ */ e.jsxs(
199
+ i.button,
200
+ {
201
+ onClick: u,
202
+ className: n(
203
+ "flex flex-1 gap-2 rounded-lg relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile h-max p-3",
204
+ t && "bg-neutral-medium-selected",
205
+ u && "cursor-pointer",
206
+ l && "hover:bg-transparent"
207
+ ),
208
+ whileTap: l ? void 0 : u && { scale: 0.98 },
209
+ transition: { duration: 0.2, ease: "easeInOut" },
210
+ children: [
211
+ m(),
212
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2 p-0", children: [
213
+ /* @__PURE__ */ e.jsx(
214
+ "p",
215
+ {
216
+ className: n(
217
+ "profile-name prometeo-fonts-label-large mb-0 text-left",
218
+ t ? "text-primary-default-default" : "text-neutral-default-default",
219
+ l && "text-neutral-default-pressed"
220
+ ),
221
+ children: l ? "Sin asignar" : r?.length && r?.length > 20 ? r?.slice(0, 10) + ".." : r
222
+ }
223
+ ),
224
+ /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-1 mt-0 ", children: a && a ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
225
+ /* @__PURE__ */ e.jsx(
226
+ "p",
227
+ {
228
+ className: n(
229
+ "profile-options truncate mt-0 prometeo-fonts-body-small",
230
+ t ? "text-primary-default-default" : "text-neutral-default-default",
231
+ l && "text-neutral-default-pressed"
232
+ ),
233
+ children: a?.length && a?.length > 20 ? a?.slice(0, 10) + ".." : a
234
+ }
235
+ ),
236
+ /* @__PURE__ */ e.jsx(
237
+ "p",
238
+ {
239
+ className: n(
240
+ "profile-options truncate prometeo-fonts-body-small mt-0",
241
+ t ? "text-primary-default-default" : "text-neutral-default-default",
242
+ l && "text-neutral-default-pressed"
243
+ ),
244
+ children: "·"
245
+ }
246
+ ),
247
+ /* @__PURE__ */ e.jsx(
248
+ "p",
249
+ {
250
+ className: n(
251
+ "profile-options truncate prometeo-fonts-body-small mt-0",
252
+ t ? "text-primary-default-default" : "text-neutral-default-default",
253
+ l && "text-neutral-default-pressed"
254
+ ),
255
+ children: d || "Sin asignar"
256
+ }
257
+ )
258
+ ] }) : /* @__PURE__ */ e.jsx("span", { className: "font-semibold leading-tight ml-3 text-xs text-blue-300 text-center", children: "Sin asignar" }) })
259
+ ] })
260
+ ]
261
+ }
262
+ );
263
+ }, C = () => /* @__PURE__ */ e.jsx("div", { className: "w-px bg-gray-500/30 my-1 border-separator-profile" }), k = ({ isExpanded: t, onClick: r }) => /* @__PURE__ */ e.jsx(
264
+ i.button,
265
+ {
266
+ onClick: r,
267
+ className: "flex items-center justify-center p-3 rounded-lg cursor-pointer relative overflow-hidden focus:outline-none w-8 min-w-8 hover:bg-neutral-medium-selected button-content-chevron",
268
+ whileHover: { scale: 1.05 },
269
+ whileTap: { scale: 0.95 },
270
+ transition: { duration: 0.2, ease: "easeOut" },
271
+ title: t ? "Ocultar opciones" : "Mostrar opciones",
272
+ "aria-label": t ? "Ocultar opciones" : "Mostrar opciones",
273
+ children: /* @__PURE__ */ e.jsx(
274
+ i.div,
275
+ {
276
+ animate: { rotate: t ? 180 : 0 },
277
+ transition: { duration: 0.3, ease: "easeOut" },
278
+ className: "relative button-select-crevron",
279
+ children: /* @__PURE__ */ e.jsx(i.div, { transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(v, { size: 24, className: "text-prometeo-neutral " }) })
280
+ }
281
+ )
282
+ }
283
+ ), s = Object.assign(w, {
284
+ Menu: N,
285
+ Image: I,
286
+ Content: O,
287
+ Separator: C,
288
+ Options: k
289
+ });
2
290
  export {
3
- e as CardProfile,
4
- f as default
291
+ s as CardProfile,
292
+ s as default
5
293
  };
@@ -1,9 +1,10 @@
1
1
  import { j as a } from "./jsx-runtime-GkKLlHH4.js";
2
- import { memo as m, forwardRef as k, useId as g, useRef as v, useCallback as C } from "react";
3
- import { Check as y } from "./Icons/Check.es.js";
4
- const s = k(
5
- ({ className: l, disabled: e, onChange: i, value: d, ...t }, r) => {
6
- const u = g(), o = v(null), f = `
2
+ import { c as s } from "./cn-B6yFEsav.js";
3
+ import { memo as k, forwardRef as g, useId as v, useRef as C, useCallback as y } from "react";
4
+ import { Check as j } from "./Icons/Check.es.js";
5
+ const i = g(
6
+ ({ className: l, disabled: e, onChange: d, value: u, ...t }, r) => {
7
+ const f = v(), o = C(null), p = `
7
8
  after:content-[""]
8
9
  after:absolute
9
10
  after:top-1/2
@@ -25,7 +26,7 @@ const s = k(
25
26
  transition-all
26
27
  duration-200
27
28
  ease-in-out
28
- `, h = "hover:#hover-span:opacity-100", p = "bg-primary-light", x = `
29
+ `, h = "hover:#hover-span:opacity-100", x = "bg-primary-light", m = `
29
30
  bg-transparent
30
31
  border-[2px]
31
32
  aria-checked:border-none
@@ -34,7 +35,7 @@ const s = k(
34
35
  `, b = {
35
36
  selected: "bg-primary-default-disabled!",
36
37
  default: "border-neutral-default-disabled "
37
- }, c = C(() => {
38
+ }, c = y(() => {
38
39
  if (o.current)
39
40
  return o.current.click();
40
41
  }, []);
@@ -56,12 +57,14 @@ const s = k(
56
57
  {
57
58
  id: "checkbox-box",
58
59
  "aria-checked": t.checked,
59
- className: `grid place-items-center absolute size-[18px] rounded-[2px]
60
- ${f}
61
- ${x}
62
- ${t.checked ? p : ""}
63
- ${e ? b[t.checked ? "selected" : "default"] : ""}
64
- `,
60
+ className: s(
61
+ "grid place-items-center absolute size-[18px] rounded-[2px]",
62
+ p,
63
+ m,
64
+ t.checked ? x : "",
65
+ e && b[t.checked ? "selected" : "default"],
66
+ l
67
+ ),
65
68
  onClick: c,
66
69
  draggable: !1,
67
70
  children: [
@@ -69,13 +72,13 @@ const s = k(
69
72
  "input",
70
73
  {
71
74
  type: "checkbox",
72
- id: u,
75
+ id: f,
73
76
  ref: (n) => {
74
77
  o.current = n, typeof r == "function" ? r(n) : r && (r.current = n);
75
78
  },
76
- onChange: i,
77
- value: d,
78
- className: `${l} ${h}`,
79
+ onChange: d,
80
+ value: u,
81
+ className: s(h),
79
82
  disabled: e,
80
83
  style: {
81
84
  position: "absolute",
@@ -92,7 +95,7 @@ const s = k(
92
95
  }
93
96
  ),
94
97
  t.checked && /* @__PURE__ */ a.jsx(
95
- y,
98
+ j,
96
99
  {
97
100
  size: 18,
98
101
  className: `absolute ${e ? "icon-neutral-strong-disabled" : ""} pointer-events-none icon-neutral-strong-default`
@@ -105,8 +108,8 @@ const s = k(
105
108
  );
106
109
  }
107
110
  );
108
- s.displayName = "CheckBox";
109
- const w = m(s);
111
+ i.displayName = "CheckBox";
112
+ const $ = k(i);
110
113
  export {
111
- w as default
114
+ $ as default
112
115
  };
@@ -1,78 +1,84 @@
1
1
  import { j as o } from "./jsx-runtime-GkKLlHH4.js";
2
- import { forwardRef as h, memo as r, useState as D, useRef as p, useCallback as n, useImperativeHandle as R } from "react";
2
+ import { forwardRef as y, memo as r, useState as D, useRef as x, useCallback as l, useImperativeHandle as k } from "react";
3
3
  import { c as j } from "./cn-B6yFEsav.js";
4
- const b = h(
5
- ({ children: e, onClose: t, className: a }, i) => {
6
- const [s, l] = D(!1), [c, f] = D(null), x = p(t), u = p(c);
7
- x.current = t, u.current = c;
8
- const m = n((g) => {
9
- f(g ?? null), l(!0);
10
- }, []), d = n(() => {
11
- l(!1), x.current?.(u.current), setTimeout(() => f(null), 300);
4
+ const C = y(
5
+ ({ children: e, onClose: t, className: c }, i) => {
6
+ const [n, s] = D(!1), [u, g] = D(null), f = x(t), p = x(u);
7
+ f.current = t, p.current = u;
8
+ const m = l((a) => {
9
+ g(a ?? null), s(!0);
10
+ }, []), d = l(() => {
11
+ s(!1), f.current?.(p.current), setTimeout(() => g(null), 300);
12
12
  }, []);
13
- return R(
13
+ return k(
14
14
  i,
15
15
  () => ({
16
16
  open: m,
17
17
  close: d,
18
- isOpen: s,
19
- getContext: () => u.current
18
+ isOpen: n,
19
+ getContext: () => p.current
20
20
  }),
21
- [m, d, s]
22
- ), /* @__PURE__ */ o.jsx(o.Fragment, { children: s && /* @__PURE__ */ o.jsx(
21
+ [m, d, n]
22
+ ), /* @__PURE__ */ o.jsx(o.Fragment, { children: n && /* @__PURE__ */ o.jsxs(
23
23
  "div",
24
24
  {
25
25
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/30 backdrop-blur-[1.5px]",
26
26
  onClick: d,
27
- children: /* @__PURE__ */ o.jsxs(
28
- "div",
29
- {
30
- className: j(
31
- "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",
32
- a
33
- ),
34
- onClick: (g) => g.stopPropagation(),
35
- children: [
36
- /* @__PURE__ */ o.jsx("div", { className: "absolute bg-transparent -inset-4 z-[-1]" }),
37
- typeof e == "function" ? e(c) : e
38
- ]
39
- }
40
- )
27
+ children: [
28
+ /* @__PURE__ */ o.jsx(
29
+ "div",
30
+ {
31
+ onClick: (a) => a.stopPropagation(),
32
+ className: "absolute bg-transparent z-[-1] w-[calc(75%+10px)] h-[calc(75%+10px)] xl:w-[calc(75%+30px)] xl:h-[calc(83.33%+30px)] top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 "
33
+ }
34
+ ),
35
+ /* @__PURE__ */ o.jsx(
36
+ "div",
37
+ {
38
+ onClick: (a) => a.stopPropagation(),
39
+ className: j(
40
+ "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",
41
+ c
42
+ ),
43
+ children: typeof e == "function" ? e(u) : e
44
+ }
45
+ )
46
+ ]
41
47
  }
42
48
  ) });
43
49
  }
44
50
  );
45
- b.displayName = "Dialog";
46
- const C = r(({ children: e, className: t }) => /* @__PURE__ */ o.jsx("div", { className: t, children: /* @__PURE__ */ o.jsx("div", { className: j("flex flex-col gap-4 h-full"), children: e }) }));
47
- C.displayName = "DialogContent";
51
+ C.displayName = "Dialog";
52
+ const b = r(({ children: e, className: t }) => /* @__PURE__ */ o.jsx("div", { className: t, children: /* @__PURE__ */ o.jsx("div", { className: j("flex flex-col gap-4 h-full"), children: e }) }));
53
+ b.displayName = "DialogContent";
48
54
  const N = r(({ children: e, className: t }) => /* @__PURE__ */ o.jsx("h1", { className: t, children: e }));
49
55
  N.displayName = "DialogTitle";
56
+ const h = r(({ children: e, className: t }) => /* @__PURE__ */ o.jsx("div", { className: t, children: e }));
57
+ h.displayName = "DialogHeader";
50
58
  const v = r(({ children: e, className: t }) => /* @__PURE__ */ o.jsx("div", { className: t, children: e }));
51
- v.displayName = "DialogHeader";
52
- const y = r(({ children: e, className: t }) => /* @__PURE__ */ o.jsx("div", { className: t, children: e }));
53
- y.displayName = "DialogFooter";
54
- const k = Object.assign(b, {
55
- Content: C,
56
- Header: v,
57
- Footer: y,
59
+ v.displayName = "DialogFooter";
60
+ const w = Object.assign(C, {
61
+ Content: b,
62
+ Header: h,
63
+ Footer: v,
58
64
  Title: N
59
65
  });
60
- k.displayName = "DialogModal";
66
+ w.displayName = "DialogModal";
61
67
  const H = () => {
62
- const e = p(null), t = n((l) => {
63
- e.current?.open(l);
64
- }, []), a = n(() => {
68
+ const e = x(null), t = l((s) => {
69
+ e.current?.open(s);
70
+ }, []), c = l(() => {
65
71
  e.current?.close();
66
- }, []), i = n(() => e.current?.isOpen ?? !1, []), s = n(() => e.current?.getContext() ?? null, []);
72
+ }, []), i = l(() => e.current?.isOpen ?? !1, []), n = l(() => e.current?.getContext() ?? null, []);
67
73
  return {
68
74
  ref: e,
69
75
  open: t,
70
- close: a,
76
+ close: c,
71
77
  isOpen: i,
72
- getContext: s
78
+ getContext: n
73
79
  };
74
80
  };
75
81
  export {
76
- k as default,
82
+ w as default,
77
83
  H as useDialogControl
78
84
  };
@@ -0,0 +1,2 @@
1
+ export * from './components/ArrowDownward'
2
+ export {}
@@ -0,0 +1,9 @@
1
+ import { j as r } from "../jsx-runtime-GkKLlHH4.js";
2
+ import { m as o } from "../iconUtils-D0lVAgGT.js";
3
+ const l = o(({ size: s = 24, className: t, ...e }) => /* @__PURE__ */ r.jsxs("svg", { ...e, width: s, height: s, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: t, children: [
4
+ /* @__PURE__ */ r.jsx("mask", { id: "mask0_2325_2814", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20", children: /* @__PURE__ */ r.jsx("rect", { width: "20", height: "20", fill: "currentColor" }) }),
5
+ /* @__PURE__ */ r.jsx("g", { mask: "url(#mask0_2325_2814)", children: /* @__PURE__ */ r.jsx("path", { d: "M10 15L5 9.99999L6.16667 8.83332L9.16667 11.8333V4.16666H10.8333V11.8333L13.8333 8.83332L15 9.99999L10 15Z", fill: "currentColor" }) })
6
+ ] }));
7
+ export {
8
+ l as ArrowDownward
9
+ };
@@ -0,0 +1,2 @@
1
+ export * from './components/ArrowUpward'
2
+ export {}