prometeo-design-system 2.8.1 → 2.8.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 (114) hide show
  1. package/dist/Avatar.es.js +1 -1
  2. package/dist/Button.es.js +6 -6
  3. package/dist/{CardProfile-CHUivLbW.js → CardProfile-BB-IP1MR.js} +29 -29
  4. package/dist/CardProfile.es.js +1 -1
  5. package/dist/CheckBox.es.js +5 -5
  6. package/dist/DatePicker.es.js +1557 -1497
  7. package/dist/DialogModal.es.js +1 -1
  8. package/dist/DrawerDesktop.es.js +10 -10
  9. package/dist/DrawerMobile.es.js +1 -1
  10. package/dist/DropZone.es.js +33 -33
  11. package/dist/FAButton.es.js +3 -3
  12. package/dist/Header.es.js +1 -1
  13. package/dist/HelperComponent-D_Cqdf1J.js +24 -0
  14. package/dist/Icons/Icons.d.ts +2 -2
  15. package/dist/Icons.es.js +1053 -2
  16. package/dist/Image.es.js +1 -1
  17. package/dist/{ImageGallery-TkgHO3JL.js → ImageGallery-CjaJ0UCN.js} +44 -44
  18. package/dist/ImageGallery.es.js +1 -1
  19. package/dist/{Input-CsNlU1Hu.js → Input-Bdo-Acix.js} +8 -15
  20. package/dist/Input.es.js +1 -1
  21. package/dist/InputMultiple.es.js +52 -52
  22. package/dist/{LayoutGeneric-CbaoatQB.js → LayoutGeneric-B6E-yOYJ.js} +1 -1
  23. package/dist/LayoutGeneric.es.js +1 -1
  24. package/dist/Logo.es.js +4 -4
  25. package/dist/Menu.es.js +3 -3
  26. package/dist/OtpInput.es.js +69 -69
  27. package/dist/Pagination.es.js +2 -2
  28. package/dist/ProfilePictureUpload.es.js +1 -1
  29. package/dist/ProgressBar.es.js +1 -1
  30. package/dist/RadioButton.es.js +2 -2
  31. package/dist/SegmentedButton.es.js +1 -1
  32. package/dist/{Select-D7Cs1OlG.js → Select-D2APaG1z.js} +5 -5
  33. package/dist/Select.es.js +1 -1
  34. package/dist/SelectSearch.es.js +2 -2
  35. package/dist/Skeleton.es.js +1 -1
  36. package/dist/Spinner.es.js +1 -1
  37. package/dist/Steps.es.js +15 -15
  38. package/dist/SwipeContainer.es.js +1 -1
  39. package/dist/Switch.es.js +1 -1
  40. package/dist/TabLinks.es.js +3 -3
  41. package/dist/Table.es.js +3 -3
  42. package/dist/TextArea.es.js +1 -1
  43. package/dist/Toast.es.js +24 -24
  44. package/dist/ToastProvider.es.js +1 -1
  45. package/dist/Tooltip.es.js +8 -8
  46. package/dist/components/Spinner/SpinnerV2.d.ts +12 -0
  47. package/dist/components/Toaster/Toaster.d.ts +3 -3
  48. package/dist/exports/Icons.d.ts +1 -1
  49. package/dist/index.d.ts +0 -12
  50. package/dist/{jsx-runtime-DKDX3adD.js → jsx-runtime-ByW6EXIE.js} +96 -94
  51. package/dist/prometeo-design-system.css +1 -1
  52. package/dist/prometeo-design-system.es.js +113 -124
  53. package/package.json +272 -294
  54. package/dist/CheckboxFormik.d.ts +0 -6
  55. package/dist/CheckboxFormik.es.js +0 -88
  56. package/dist/HelperComponent-CcGxM09g.js +0 -24
  57. package/dist/Icons-ChYkaR8R.js +0 -899
  58. package/dist/InputFormik.d.ts +0 -6
  59. package/dist/InputFormik.es.js +0 -213
  60. package/dist/InputFormikV2.d.ts +0 -6
  61. package/dist/InputFormikV2.es.js +0 -41
  62. package/dist/RadioButtonFormik.d.ts +0 -2
  63. package/dist/RadioButtonFormik.es.js +0 -30
  64. package/dist/SelectFormik.d.ts +0 -6
  65. package/dist/SelectFormik.es.js +0 -62
  66. package/dist/SelectFormikLegacy.d.ts +0 -6
  67. package/dist/SelectFormikLegacy.es.js +0 -194
  68. package/dist/components/CheckboxFormik/CheckboxFormik.d.ts +0 -12
  69. package/dist/components/InputFormik/InputFormik.d.ts +0 -23
  70. package/dist/components/InputFormik/InputFormikV2.d.ts +0 -6
  71. package/dist/components/RadioButtonFormik/RadioButtonFormik.d.ts +0 -8
  72. package/dist/components/SelectFormik/SelectFormik.d.ts +0 -8
  73. package/dist/components/SelectFormik/SelectFormikLegacy.d.ts +0 -21
  74. package/dist/exports/CheckboxFormik.d.ts +0 -2
  75. package/dist/exports/InputFormik.d.ts +0 -2
  76. package/dist/exports/InputFormikV2.d.ts +0 -2
  77. package/dist/exports/RadioButtonFormik.d.ts +0 -1
  78. package/dist/exports/SelectFormik.d.ts +0 -2
  79. package/dist/exports/SelectFormikLegacy.d.ts +0 -2
  80. package/dist/pages/Autocomplete.page.d.ts +0 -2
  81. package/dist/pages/ButtonsPage.d.ts +0 -2
  82. package/dist/pages/DatePicker.d.ts +0 -2
  83. package/dist/pages/DialogPage.d.ts +0 -2
  84. package/dist/pages/DrawersPage.d.ts +0 -2
  85. package/dist/pages/ImagesPage.d.ts +0 -2
  86. package/dist/pages/OtpPage.d.ts +0 -2
  87. package/dist/pages/RecurrentDatePicker.page.d.ts +0 -2
  88. package/dist/pages/SelectsPage.d.ts +0 -2
  89. package/dist/pages/Skeletons.d.ts +0 -2
  90. package/dist/pages/ToastsPage.d.ts +0 -2
  91. package/dist/preview/AutocompletePreview.d.ts +0 -2
  92. package/dist/preview/ButtonPreview.d.ts +0 -2
  93. package/dist/preview/DialogModalPreview.d.ts +0 -2
  94. package/dist/preview/DrawerMobilePreview.d.ts +0 -2
  95. package/dist/preview/Dropzone.d.ts +0 -2
  96. package/dist/preview/FABPreview.d.ts +0 -2
  97. package/dist/preview/IconsPreview.d.ts +0 -2
  98. package/dist/preview/ImagePreview.d.ts +0 -2
  99. package/dist/preview/InputsPreviews.d.ts +0 -2
  100. package/dist/preview/Layout.d.ts +0 -2
  101. package/dist/preview/OTPPreview.d.ts +0 -2
  102. package/dist/preview/RadioButtonPreview.d.ts +0 -2
  103. package/dist/preview/RecurrentDatePickerPreview.d.ts +0 -2
  104. package/dist/preview/SegmentedButtonPreview.d.ts +0 -2
  105. package/dist/preview/SelectPreview/CustomFooterExample.d.ts +0 -2
  106. package/dist/preview/SelectPreview/SelectGroupedOptionsPreview.d.ts +0 -2
  107. package/dist/preview/SelectPreview/SelectPreview.d.ts +0 -2
  108. package/dist/preview/SidebarPreview.d.ts +0 -2
  109. package/dist/preview/StepsPreview.d.ts +0 -2
  110. package/dist/preview/SwitchPreview.d.ts +0 -2
  111. package/dist/preview/TabLinks.d.ts +0 -2
  112. package/dist/preview/TablePreview.d.ts +0 -2
  113. package/dist/preview/TextArea.d.ts +0 -2
  114. package/dist/preview/ToastsPreview.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import { j as o } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as o } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { forwardRef as h, memo as s, useState as D, useRef as p, useCallback as n, useImperativeHandle as R } from "react";
3
3
  import { c as j } from "./cn-B6yFEsav.js";
4
4
  const C = h(
@@ -1,19 +1,19 @@
1
- import { j as l } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as l } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as h } from "./cn-B6yFEsav.js";
3
3
  import { c as k } from "./index-BOQuZ0gG.js";
4
- import { createPortal as T } from "react-dom";
5
- import { I as E } from "./Icons-ChYkaR8R.js";
6
- import { forwardRef as V, useRef as u, useState as I, useEffect as d, useCallback as f, useImperativeHandle as P } from "react";
4
+ import { createPortal as E } from "react-dom";
5
+ import { forwardRef as V, useRef as u, useState as N, useEffect as d, useCallback as f, useImperativeHandle as I } from "react";
6
+ import { Close as P } from "./Icons.es.js";
7
7
  import B from "./Button.es.js";
8
8
  const L = V((t, s) => {
9
- const n = u(null), [e, a] = I(t.defaultOpen || !1), [r, y] = I(null), b = u(t.onClose), c = u(r), {
9
+ const n = u(null), [e, a] = N(t.defaultOpen || !1), [r, y] = N(null), b = u(t.onClose), c = u(r), {
10
10
  modal: i = !1,
11
11
  children: m,
12
12
  className: w,
13
13
  direction: C = "left",
14
14
  attachToParent: x = !1,
15
15
  closeOnOverlayClick: o = !1,
16
- hideCloseButton: N = !1
16
+ hideCloseButton: T = !1
17
17
  } = t, g = u(o), O = u(e);
18
18
  c.current = r, d(() => {
19
19
  O.current = e;
@@ -45,7 +45,7 @@ const L = V((t, s) => {
45
45
  }, []), v = f(() => {
46
46
  a(!1), b.current?.(c.current), setTimeout(() => y(null), 300);
47
47
  }, []);
48
- P(
48
+ I(
49
49
  s,
50
50
  () => ({
51
51
  open: j,
@@ -67,11 +67,11 @@ const L = V((t, s) => {
67
67
  className: w,
68
68
  attachToParent: x,
69
69
  closeOnOverlayClick: o,
70
- hideCloseButton: N,
70
+ hideCloseButton: T,
71
71
  children: typeof m == "function" ? m(r) : m
72
72
  }
73
73
  );
74
- return x ? D : T(D, document.body);
74
+ return x ? D : E(D, document.body);
75
75
  });
76
76
  L.displayName = "DrawerDesktopV2";
77
77
  const Y = ({
@@ -152,7 +152,7 @@ const Y = ({
152
152
  !i && /* @__PURE__ */ l.jsx(
153
153
  B,
154
154
  {
155
- icon: /* @__PURE__ */ l.jsx(E.Close, { size: 24 }),
155
+ icon: /* @__PURE__ */ l.jsx(P, { size: 24 }),
156
156
  animate: !1,
157
157
  type: "button",
158
158
  size: "small",
@@ -1,4 +1,4 @@
1
- import { j as m } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as m } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as _ } from "./cn-B6yFEsav.js";
3
3
  import { forwardRef as V, useState as $, useRef as v, useEffect as y, useCallback as c, useMemo as Q, useImperativeHandle as X } from "react";
4
4
  import { createPortal as Z } from "react-dom";
@@ -1,46 +1,46 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
+ import { Error as P, Upload as R } from "./Icons.es.js";
2
3
  import { c as i } from "./cn-B6yFEsav.js";
3
- import R, { useCallback as z } from "react";
4
- import { useDropzone as w } from "react-dropzone";
5
- import { I as u } from "./Icons-ChYkaR8R.js";
6
- const E = R.forwardRef(
4
+ import z, { useCallback as w } from "react";
5
+ import { useDropzone as E } from "react-dropzone";
6
+ const q = z.forwardRef(
7
7
  ({
8
8
  onFilesAccepted: d,
9
9
  onFilesRejected: m,
10
- className: x,
11
- subtitle: p = "Arrastra y suelta el archivo aquí o haz clic para cargarlo desde tu computadora",
12
- acceptedFormats: f = ".PNG, .JPG, .TXT o .PDF. Máx 100 BM.",
13
- variant: h = "default",
10
+ className: u,
11
+ subtitle: x = "Arrastra y suelta el archivo aquí o haz clic para cargarlo desde tu computadora",
12
+ acceptedFormats: p = ".PNG, .JPG, .TXT o .PDF. Máx 100 BM.",
13
+ variant: f = "default",
14
14
  disabled: l = !1,
15
- showIcon: v = !0,
16
- accept: g,
17
- maxFiles: j = 1,
18
- ...N
19
- }, b) => {
20
- const y = z((s, o) => {
15
+ showIcon: h = !0,
16
+ accept: v,
17
+ maxFiles: g = 1,
18
+ ...j
19
+ }, N) => {
20
+ const b = w((s, o) => {
21
21
  s.length > 0 && d?.(s), o.length > 0 && m?.(o);
22
22
  }, [d, m]), {
23
- getRootProps: D,
24
- getInputProps: P,
23
+ getRootProps: y,
24
+ getInputProps: D,
25
25
  isDragActive: a,
26
26
  isDragReject: t,
27
27
  fileRejections: n
28
- } = w({
29
- onDrop: y,
30
- accept: g,
31
- maxFiles: j,
28
+ } = E({
29
+ onDrop: b,
30
+ accept: v,
31
+ maxFiles: g,
32
32
  disabled: l,
33
- ...N
33
+ ...j
34
34
  }), r = n.length > 0;
35
- return /* @__PURE__ */ e.jsx("div", { className: i("w-full", x), children: /* @__PURE__ */ e.jsxs(
35
+ return /* @__PURE__ */ e.jsx("div", { className: i("w-full", u), children: /* @__PURE__ */ e.jsxs(
36
36
  "div",
37
37
  {
38
- ref: b,
39
- ...D(),
38
+ ref: N,
39
+ ...y(),
40
40
  className: i(
41
- "relative rounded-lg border-[2px] border-dashed transition-all duration-200 h-36",
41
+ "relative rounded-lg border border-dashed transition-all duration-200 h-36",
42
42
  "flex flex-col items-center justify-center text-center",
43
- h === "default" ? "p-8 min-h-[200px] " : "p-1 min-h-[120px] h-24 md:h-36",
43
+ f === "default" ? "p-8 min-h-[200px] " : "p-1 min-h-[120px] h-24 md:h-36",
44
44
  !a && !r && !l && [
45
45
  "border-neutral-default-default",
46
46
  "hover:border-primary/50 hover:bg-primary/5"
@@ -59,8 +59,8 @@ const E = R.forwardRef(
59
59
  ]
60
60
  ),
61
61
  children: [
62
- /* @__PURE__ */ e.jsx("input", { ...P() }),
63
- v && /* @__PURE__ */ e.jsx("div", { className: "mb-0.5 md:mb-4", children: r || t ? /* @__PURE__ */ e.jsx(u.Error, { size: 24, className: " text-destructive" }) : /* @__PURE__ */ e.jsx(u.Upload, { size: 24, className: i(
62
+ /* @__PURE__ */ e.jsx("input", { ...D() }),
63
+ h && /* @__PURE__ */ e.jsx("div", { className: "mb-0.5 md:mb-4", children: r || t ? /* @__PURE__ */ e.jsx(P, { size: 24, className: " text-destructive" }) : /* @__PURE__ */ e.jsx(R, { size: 24, className: i(
64
64
  "w-8 h-8 transition-colors",
65
65
  a ? "text-primary" : "text-neutral-default-default"
66
66
  ) }) }),
@@ -68,8 +68,8 @@ const E = R.forwardRef(
68
68
  /* @__PURE__ */ e.jsx("p", { className: i(
69
69
  "text-base font-medium text-neutral-default-default",
70
70
  r || t ? "text-destructive" : a ? "text-primary " : "text-neutral-default-default text-sm font-[400]"
71
- ), children: a && !t ? "Suelta los archivos aquí..." : t || r ? "Archivo no válido" : p }),
72
- !r && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-neutral-medium-default", children: f })
71
+ ), children: a && !t ? "Suelta los archivos aquí..." : t || r ? "Archivo no válido" : x }),
72
+ !r && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-neutral-medium-default", children: p })
73
73
  ] }),
74
74
  r && /* @__PURE__ */ e.jsx("div", { className: "mt-4 space-y-1", children: n.map(({ file: s, errors: o }) => /* @__PURE__ */ e.jsxs("div", { className: "text-sm text-destructive", children: [
75
75
  /* @__PURE__ */ e.jsx("p", { className: "font-medium", children: s.name }),
@@ -80,7 +80,7 @@ const E = R.forwardRef(
80
80
  ) });
81
81
  }
82
82
  );
83
- E.displayName = "DropZone";
83
+ q.displayName = "DropZone";
84
84
  export {
85
- E as DropZone
85
+ q as DropZone
86
86
  };
@@ -1,7 +1,7 @@
1
- import { j as c } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as c } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import u, { memo as n } from "react";
3
3
  import { c as f } from "./cn-B6yFEsav.js";
4
- import { I as v } from "./Icons-ChYkaR8R.js";
4
+ import { Add as v } from "./Icons.es.js";
5
5
  import { createPortal as m } from "react-dom";
6
6
  import { c as b } from "./index-BOQuZ0gG.js";
7
7
  const h = {
@@ -75,7 +75,7 @@ const h = {
75
75
  }
76
76
  }
77
77
  ), y = (e) => {
78
- const t = e.position || h, a = e.attachToParent || !1, i = e.color || "primary", s = e.icon || v.Add, o = e.disabled || !1, d = e.variant || "fill", l = /* @__PURE__ */ c.jsx(
78
+ const t = e.position || h, a = e.attachToParent || !1, i = e.color || "primary", s = e.icon || v, o = e.disabled || !1, d = e.variant || "fill", l = /* @__PURE__ */ c.jsx(
79
79
  "div",
80
80
  {
81
81
  style: {
package/dist/Header.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as a } from "./jsx-runtime-DKDX3adD.js";
1
+ import { j as a } from "./jsx-runtime-ByW6EXIE.js";
2
2
  import { c as l } from "./cn-B6yFEsav.js";
3
3
  import { motion as n } from "framer-motion";
4
4
  import { memo as c } from "react";
@@ -0,0 +1,24 @@
1
+ import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
+ import { memo as i } from "react";
3
+ import { c as r } from "./cn-B6yFEsav.js";
4
+ import { Check as o, Error as n, Info as d } from "./Icons.es.js";
5
+ const a = (s) => {
6
+ const { variant: t, className: m } = s, l = {
7
+ default: "text-neutral-medium-default pt-[1px]",
8
+ error: "text-error-medium-default pt-[1px]",
9
+ success: "text-success-medium-default"
10
+ }, c = {
11
+ default: /* @__PURE__ */ e.jsx(d, { size: 16, className: "text-neutral-medium-default " }),
12
+ error: /* @__PURE__ */ e.jsx(n, { size: 16, className: "text-error-medium-default" }),
13
+ success: /* @__PURE__ */ e.jsx(o, { size: 16, className: "text-success-medium-default" })
14
+ };
15
+ return /* @__PURE__ */ e.jsx("div", { ref: s.ref, className: r("pl-3 mt-1", m), children: typeof s.children == "string" ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-0.5 items-start", children: [
16
+ c[t],
17
+ /* @__PURE__ */ e.jsx("p", { className: r(" prometeo-fonts-body-small", l[t]), children: s.children })
18
+ ] }) : s.children });
19
+ };
20
+ a.displayName = "HelperText";
21
+ const j = i(a);
22
+ export {
23
+ j as H
24
+ };
@@ -39,7 +39,7 @@ declare const MessageSquare: import('react').MemoExoticComponent<(props: IconPro
39
39
  declare const CloseNavBarDesktop: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
40
40
  declare const EyeVisibility: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
41
41
  declare const EyeVisibilityOff: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
42
- export declare const Check: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
42
+ declare const Check: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
43
43
  declare const Info: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
44
44
  declare const Error: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
45
45
  declare const UploadCloud: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
@@ -64,6 +64,7 @@ declare const UserAddFill: import('react').MemoExoticComponent<(props: IconProps
64
64
  declare const EditFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
65
65
  declare const TrashFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
66
66
  declare const Company: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
67
+ export { Ticket, Home, Boards, Notifications, Help, Settings, CrevronLeft, CrevronRight, ArrowLeft, Shared, ChevronDown, Collapse, Calendar, Close, UserPerson, Logout, ArrowUpDown, Filter, Search, Stars, MoreVert, Add, Edit, Upload, Copy, FaLock, AccountCircle, UserAdd, AttachFile, HistoryActivity, MessageSquare, CloseNavBarDesktop, EyeVisibility, EyeVisibilityOff, Check, Info, Error, TicketFilled, UploadCloud, Clock, Pause, FastForward, Trash, Sort, Cancel, CheckCircle, FormatColorText, CheckList, WhatsApp, File, Email, Download, Reload, Image, DocumentFill, Company, EditFill, TrashFill, MessageSquareFill, UserAddFill, };
67
68
  declare const Icons: {
68
69
  readonly Ticket: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
69
70
  readonly Home: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
@@ -127,6 +128,5 @@ declare const Icons: {
127
128
  readonly UserAddFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
128
129
  };
129
130
  export { Icons };
130
- export { Ticket, Home, Boards, Notifications, Help, Settings, CrevronLeft, CrevronRight, ArrowLeft, Shared, ChevronDown, Collapse, Calendar, Close, UserPerson, Logout, ArrowUpDown, Filter, Search, Stars, MoreVert, Add, Edit, Upload, Copy, FaLock, AccountCircle, UserAdd, AttachFile, HistoryActivity, MessageSquare, CloseNavBarDesktop, EyeVisibility, EyeVisibilityOff, Info, Error, TicketFilled, UploadCloud, Clock, Pause, FastForward, Trash, Sort, Cancel, CheckCircle, FormatColorText, CheckList, WhatsApp, File, Email, Download, Reload, Image, DocumentFill, Company, EditFill, TrashFill, MessageSquareFill, UserAddFill };
131
131
  export type IconName = keyof typeof Icons;
132
132
  export type IconComponent = (typeof Icons)[IconName];