prometeo-design-system 3.0.1 → 3.0.4

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.
@@ -1,24 +1,24 @@
1
1
  import { default as Se } from "./Avatar.es.js";
2
2
  import { default as Ie } from "./Button.es.js";
3
- import { C as Be, a as Ae } from "./CardProfile-WHoeSibd.js";
3
+ import { C as Be, a as Ae } from "./CardProfile-DUBuThnz.js";
4
4
  import { default as Te } from "./CheckBox.es.js";
5
5
  import { default as qe, useDialogControl as De } from "./DialogModal.es.js";
6
6
  import { default as ze, useDrawerDesktop as Fe } from "./DrawerDesktop.es.js";
7
7
  import { default as He, useDrawerMobile as Ue } from "./DrawerMobile.es.js";
8
8
  import { default as Me } from "./Header.es.js";
9
- import { I as Ve } from "./Input-Cf8P1QJv.js";
9
+ import { I as Ve } from "./Input-ZXkhyFlL.js";
10
10
  import { default as _e } from "./InputMultiple.es.js";
11
11
  import { default as Ze } from "./Logo.es.js";
12
12
  import { default as Ke } from "./Menu.es.js";
13
13
  import { default as Ye } from "./Pagination.es.js";
14
14
  import { default as tt } from "./ProfilePictureUpload.es.js";
15
15
  import { default as rt } from "./ProgressBar.es.js";
16
- import { S as nt } from "./Select-DeKi15Iu.js";
17
- import { default as st } from "./Spinner.es.js";
16
+ import { S as nt } from "./Select-DgUVs2c6.js";
17
+ import { default as it } from "./Spinner.es.js";
18
18
  import { default as ct } from "./Steps.es.js";
19
19
  import { default as dt } from "./SwipeContainer.es.js";
20
20
  import { default as pt } from "./Switch.es.js";
21
- import { D as xt } from "./DatePicker-CbXUUnv7.js";
21
+ import { D as xt } from "./DatePicker-CzpFYO6L.js";
22
22
  import { RecurrentDatePicker as yt } from "./RecurrentDatePicker.es.js";
23
23
  import { RecurrentDatePickerRRule as gt } from "./RecurrentDatePickerRRule.es.js";
24
24
  import { Table as wt, TableBody as Ct, TableCaption as jt, TableCell as Nt, TableFooter as St, TableHead as kt, TableHeader as It, TableRow as Rt } from "./Table.es.js";
@@ -29,7 +29,7 @@ import { default as Et } from "./Skeleton.es.js";
29
29
  import { default as Ft } from "./SegmentedButton.es.js";
30
30
  import { u as k } from "./LayoutGeneric-CbaoatQB.js";
31
31
  import { L as Ht, S as Ut } from "./LayoutGeneric-CbaoatQB.js";
32
- import { I as Mt } from "./ImageGallery-WKzUevOQ.js";
32
+ import { I as Mt } from "./ImageGallery-DqUwjAKn.js";
33
33
  import { default as Vt } from "./Image.es.js";
34
34
  import { default as _t, toastpyrion as Xt } from "./Toast.es.js";
35
35
  import { default as Jt } from "./ToastProvider.es.js";
@@ -41,8 +41,8 @@ import { c as u } from "./cn-B6yFEsav.js";
41
41
  import T, { useRef as h, useState as g, useLayoutEffect as P, createContext as q, useContext as D, forwardRef as N, useEffect as v, useCallback as E } from "react";
42
42
  import { useGSAP as I } from "@gsap/react";
43
43
  import x from "gsap";
44
- import { CloseNavBarDesktop as w } from "./Icons.es.js";
45
- import { AccountCircle as oa, Add as na, ArrowLeft as ia, ArrowUpDown as sa, AttachFile as la, Boards as ca, Calendar as ua, Cancel as da, Check as fa, CheckCircle as pa, CheckList as ma, ChevronDown as xa, Clock as ba, Close as ya, Collapse as ha, Company as ga, Copy as va, CrevronLeft as wa, CrevronRight as Ca, DocumentFill as ja, Download as Na, Edit as Sa, EditFill as ka, Email as Ia, Error as Ra, EyeVisibility as Ba, EyeVisibilityOff as Aa, FaLock as La, FastForward as Ta, File as Pa, Filter as qa, FormatColorText as Da, Help as Ea, HistoryActivity as za, Home as Fa, Info as Oa, Logout as Ha, MessageSquare as Ua, MessageSquareFill as Wa, MoreVert as Ma, Notifications as $a, Pause as Va, Reload as Ga, Search as _a, Settings as Xa, Shared as Za, Sort as Ja, Stars as Ka, Ticket as Qa, TicketFilled as Ya, Trash as er, TrashFill as tr, Upload as ar, UploadCloud as rr, UserAdd as or, UserAddFill as nr, UserPerson as ir, WhatsApp as sr } from "./Icons.es.js";
44
+ import { d as w } from "./Icons-BJgYCS_W.js";
45
+ import { r as oa, m as na, A as sa, j as ia, t as la, B as ca, i as ua, O as da, C as fa, Q as pa, V as ma, g as xa, D as ba, a as ya, h as ha, a0 as ga, p as va, b as wa, c as Ca, $ as ja, Z as Na, n as Sa, a1 as ka, Y as Ia, E as Ra, w as Ba, x as Aa, q as La, G as Ta, X as Pa, F as qa, R as Da, e as Ea, u as za, H as Fa, I as Oa, L as Ha, v as Ua, a3 as Wa, M as Ma, N as $a, P as Va, _ as Ga, k as _a, S as Xa, f as Za, K as Ja, l as Ka, T as Qa, y as Ya, J as er, a2 as tr, o as ar, z as rr, s as or, a4 as nr, U as sr, W as ir } from "./Icons-BJgYCS_W.js";
46
46
  import { motion as b, AnimatePresence as R } from "framer-motion";
47
47
  import { default as cr } from "./OtpInput.es.js";
48
48
  import { useDropzone as z } from "react-dropzone";
@@ -107,19 +107,19 @@ const F = (t, e) => {
107
107
  className: r = "",
108
108
  width: n = "w-96",
109
109
  action: o,
110
- primarySidebarCollapsed: s,
110
+ primarySidebarCollapsed: i,
111
111
  onClose: l
112
112
  }) => {
113
- const c = h(null), [d, i] = g({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: p } = k();
113
+ const c = h(null), [d, s] = g({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: p } = k();
114
114
  return P(() => {
115
115
  if (f?.current && p?.current) {
116
116
  const m = f.current.getBoundingClientRect();
117
- i({
117
+ s({
118
118
  left: m.width + p.current.offsetWidth,
119
119
  width: m.width
120
120
  });
121
121
  }
122
- }, [f, e, s, p]), F(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
122
+ }, [f, e, i, p]), F(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
123
123
  /* @__PURE__ */ a.jsx(
124
124
  "div",
125
125
  {
@@ -164,14 +164,14 @@ const F = (t, e) => {
164
164
  }, M = ({
165
165
  children: t
166
166
  }) => {
167
- const [e, r] = g(!1), [n, o] = g(!1), s = h(null), l = () => {
167
+ const [e, r] = g(!1), [n, o] = g(!1), i = h(null), l = () => {
168
168
  r(!1), o(!1);
169
169
  }, c = () => {
170
170
  r(!0), o(!1);
171
171
  }, m = {
172
172
  isCollapsed: e,
173
173
  setIsCollapsed: r,
174
- navbarRef: s,
174
+ navbarRef: i,
175
175
  toggleCollapse: () => {
176
176
  e ? l() : c();
177
177
  },
@@ -508,11 +508,11 @@ const F = (t, e) => {
508
508
  ease: "power2.in"
509
509
  });
510
510
  }, X = N((t, e) => {
511
- const [r, n] = g(t?.currentTabName || t.tabs[0].name), o = h(null), { tabs: s = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
511
+ const [r, n] = g(t?.currentTabName || t.tabs[0].name), o = h(null), { tabs: i = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
512
512
  v(() => {
513
513
  o.current?.style.setProperty("--tab-bg", c);
514
514
  }, [c]);
515
- const d = s.find((i) => i.name === (t?.currentTabName || r));
515
+ const d = i.find((s) => s.name === (t?.currentTabName || r));
516
516
  return /* @__PURE__ */ a.jsx(
517
517
  "div",
518
518
  {
@@ -524,10 +524,10 @@ const F = (t, e) => {
524
524
  " border-r border-neutral-default-default",
525
525
  l
526
526
  ),
527
- children: s.map(
528
- (i) => {
529
- const f = i.name === d?.name, p = typeof i.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: i.thumbnail, alt: i.description, className: "aspect-square object-contain" }) : i.thumbnail, m = () => {
530
- i.disabled || (n(i.name), i.onClick && i.onClick(i.name));
527
+ children: i.map(
528
+ (s) => {
529
+ const f = s.name === d?.name, p = typeof s.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: s.thumbnail, alt: s.description, className: "aspect-square object-contain" }) : s.thumbnail, m = () => {
530
+ s.disabled || (n(s.name), s.onClick && s.onClick(s.name));
531
531
  };
532
532
  return /* @__PURE__ */ a.jsx(
533
533
  "div",
@@ -547,25 +547,25 @@ const F = (t, e) => {
547
547
  "grid place-items-center",
548
548
  "tab-thumbnail-icon",
549
549
  "bg-transparent text-neutral-default-default",
550
- i?.className
550
+ s?.className
551
551
  ), children: p })
552
552
  },
553
- i.name
553
+ s.name
554
554
  );
555
555
  }
556
556
  )
557
557
  }
558
558
  );
559
559
  }), Z = N(
560
- ({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o }, s) => {
561
- const l = h(null), c = h(null), { registerPrimarySidebar: d, registerTabBar: i } = k(), f = E((p) => {
562
- l.current = p, typeof s == "function" ? s(p) : s && (s.current = p);
563
- }, [s]);
560
+ ({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o }, i) => {
561
+ const l = h(null), c = h(null), { registerPrimarySidebar: d, registerTabBar: s } = k(), f = E((p) => {
562
+ l.current = p, typeof i == "function" ? i(p) : i && (i.current = p);
563
+ }, [i]);
564
564
  return v(() => {
565
565
  l.current && d(l);
566
566
  }, [d]), v(() => {
567
- c.current && i(c);
568
- }, [i]), $(l, e, !1), /* @__PURE__ */ a.jsxs(
567
+ c.current && s(c);
568
+ }, [s]), $(l, e, !1), /* @__PURE__ */ a.jsxs(
569
569
  "div",
570
570
  {
571
571
  className: u(
@@ -636,7 +636,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
636
636
  label: r,
637
637
  href: n,
638
638
  onClick: o,
639
- isActive: s = !1,
639
+ isActive: i = !1,
640
640
  className: l
641
641
  }) => {
642
642
  const c = n ? "a" : "button";
@@ -650,7 +650,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
650
650
  "flex items-center w-full px-3 py-2 text-left",
651
651
  "hover:bg-neutral-medium-default transition-colors rounded-lg",
652
652
  "focus:outline-none focus:ring-2 focus:ring-primary-default-default",
653
- s && "bg-neutral-medium-default",
653
+ i && "bg-neutral-medium-default",
654
654
  l
655
655
  ),
656
656
  children: [
@@ -666,15 +666,15 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
666
666
  className: r = "",
667
667
  size: n = "medium",
668
668
  variant: o = "primary",
669
- showZero: s = !1
669
+ showZero: i = !1
670
670
  }) => {
671
671
  const l = t, c = l > e ? `+${e}` : l;
672
- if (l === 0 && !s) return null;
672
+ if (l === 0 && !i) return null;
673
673
  const d = {
674
674
  small: "w-4.5 h-4.5 text-xs ",
675
675
  medium: "w-5 h-5 text-xs",
676
676
  large: "w-6 h-6 text-sm"
677
- }, i = {
677
+ }, s = {
678
678
  primary: "bg-primary-default-default text-neutral-strong-default",
679
679
  secondary: "bg-neutral-medium-default text-neutral-strong-default",
680
680
  success: "bg-green-500 text-white",
@@ -684,7 +684,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
684
684
  return /* @__PURE__ */ a.jsx("div", { className: u(
685
685
  "rounded-full flex items-center justify-center font-medium ",
686
686
  d[n],
687
- i[o],
687
+ s[o],
688
688
  r
689
689
  ), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
690
690
  }, xe = ({
@@ -692,7 +692,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
692
692
  onClick: e,
693
693
  activeAction: r
694
694
  }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
695
- const { isView: s = !1, actionName: l, title: c, icon: d, count: i, viewAccess: f } = n || {}, p = (typeof s == "function" ? s() : s !== !1) && (!f || f()), m = r === l;
695
+ const { isView: i = !1, actionName: l, title: c, icon: d, count: s, viewAccess: f } = n || {}, p = (typeof i == "function" ? i() : i !== !1) && (!f || f()), m = r === l;
696
696
  return p && /* @__PURE__ */ a.jsx(
697
697
  b.div,
698
698
  {
@@ -767,7 +767,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
767
767
  ),
768
768
  /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
769
769
  ] }),
770
- /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: i && i >= 1 ? /* @__PURE__ */ a.jsx(A, { count: i, maxCount: 9, className: "" }) : "" })
770
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: s && s >= 1 ? /* @__PURE__ */ a.jsx(A, { count: s, maxCount: 9, className: "" }) : "" })
771
771
  ]
772
772
  }
773
773
  )
@@ -782,7 +782,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
782
782
  isLinkActive: e,
783
783
  onLinkClick: r
784
784
  }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
785
- const { isView: s = !1, viewAccess: l, path: c, title: d, icon: i, count: f, relatedPaths: p } = n, m = (typeof s == "function" ? s() : s !== !1) && (!l || l()), y = e(c) || (p?.some(
785
+ const { isView: i = !1, viewAccess: l, path: c, title: d, icon: s, count: f, relatedPaths: p } = n, m = (typeof i == "function" ? i() : i !== !1) && (!l || l()), y = e(c) || (p?.some(
786
786
  (L) => e(L)
787
787
  ) ?? !1);
788
788
  return m && /* @__PURE__ */ a.jsx(
@@ -848,7 +848,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
848
848
  duration: 0.25,
849
849
  ease: "easeOut"
850
850
  },
851
- children: typeof i == "function" ? i({
851
+ children: typeof s == "function" ? s({
852
852
  size: 24,
853
853
  className: u(
854
854
  "nav-icon transition-colors duration-250 ease-out",
@@ -906,8 +906,8 @@ function we({
906
906
  ...r
907
907
  }) {
908
908
  const n = T.useCallback(
909
- (s, l) => {
910
- s.length > 0 && t?.(s), l.length > 0 && e?.(l);
909
+ (i, l) => {
910
+ i.length > 0 && t?.(i), l.length > 0 && e?.(l);
911
911
  },
912
912
  [t, e]
913
913
  ), o = z({
@@ -942,8 +942,8 @@ const Ce = (t, e = !0) => {
942
942
  export {
943
943
  oa as AccountCircle,
944
944
  na as Add,
945
- ia as ArrowLeft,
946
- sa as ArrowUpDown,
945
+ sa as ArrowLeft,
946
+ ia as ArrowUpDown,
947
947
  la as AttachFile,
948
948
  Se as Avatar,
949
949
  A as Badge,
@@ -1028,7 +1028,7 @@ export {
1028
1028
  Ut as SidebarRefProvider,
1029
1029
  Et as Skeleton,
1030
1030
  Ja as Sort,
1031
- st as Spinner,
1031
+ it as Spinner,
1032
1032
  Ka as Stars,
1033
1033
  ct as Steps,
1034
1034
  dt as SwipeContainer,
@@ -1054,8 +1054,8 @@ export {
1054
1054
  rr as UploadCloud,
1055
1055
  or as UserAdd,
1056
1056
  nr as UserAddFill,
1057
- ir as UserPerson,
1058
- sr as WhatsApp,
1057
+ sr as UserPerson,
1058
+ ir as WhatsApp,
1059
1059
  Xt as toastpyrion,
1060
1060
  ye as useActionsNavbar,
1061
1061
  Ce as useClickOutside,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "3.0.1",
4
+ "version": "3.0.4",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",
@@ -125,6 +125,10 @@
125
125
  "types": "./dist/Icons.d.ts",
126
126
  "import": "./dist/Icons.es.js"
127
127
  },
128
+ "./Icons/Home": {
129
+ "types": "./dist/Icons/Home.d.ts",
130
+ "import": "./dist/Icons/Home.es.js"
131
+ },
128
132
  "./InputMultiple": {
129
133
  "types": "./dist/InputMultiple.d.ts",
130
134
  "import": "./dist/InputMultiple.es.js"