prometeo-design-system 2.8.3 → 2.8.5

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 (82) hide show
  1. package/dist/Avatar.es.js +23 -28
  2. package/dist/Button.es.js +1 -1
  3. package/dist/{CardProfile-BB-IP1MR.js → CardProfile-CsytJlKZ.js} +9 -9
  4. package/dist/CardProfile.d.ts +4 -0
  5. package/dist/CardProfile.es.js +3 -2
  6. package/dist/CheckBox.es.js +5 -5
  7. package/dist/DatePicker.d.ts +2 -0
  8. package/dist/DatePicker.es.js +1479 -1538
  9. package/dist/DialogModal.es.js +1 -1
  10. package/dist/DrawerDesktop.es.js +2 -2
  11. package/dist/DrawerMobile.es.js +1 -1
  12. package/dist/DropZone.d.ts +4 -0
  13. package/dist/DropZone.es.js +18 -17
  14. package/dist/FAButton.es.js +2 -2
  15. package/dist/Header.es.js +1 -1
  16. package/dist/{HelperComponent-D_Cqdf1J.js → HelperComponent-g_xuKWzK.js} +8 -8
  17. package/dist/Icons/Icons.d.ts +1 -1
  18. package/dist/Icons-DtFC5DJ7.js +1079 -0
  19. package/dist/Icons.d.ts +4 -0
  20. package/dist/Icons.es.js +3 -1053
  21. package/dist/Image.es.js +2 -2
  22. package/dist/{ImageGallery-CjaJ0UCN.js → ImageGallery-Ckxg9OIC.js} +35 -35
  23. package/dist/ImageGallery.es.js +1 -1
  24. package/dist/{Input-Bdo-Acix.js → Input-Cck37DpG.js} +12 -12
  25. package/dist/Input.es.js +1 -1
  26. package/dist/InputMultiple.d.ts +4 -0
  27. package/dist/InputMultiple.es.js +37 -36
  28. package/dist/{LayoutGeneric-B6E-yOYJ.js → LayoutGeneric-CbaoatQB.js} +1 -1
  29. package/dist/LayoutGeneric.es.js +1 -1
  30. package/dist/Logo.es.js +2 -2
  31. package/dist/Menu.d.ts +4 -0
  32. package/dist/Menu.es.js +3 -2
  33. package/dist/OtpInput.es.js +44 -44
  34. package/dist/Pagination.es.js +1 -1
  35. package/dist/ProfilePictureUpload.d.ts +4 -0
  36. package/dist/ProfilePictureUpload.es.js +79 -103
  37. package/dist/ProgressBar.es.js +1 -1
  38. package/dist/RadioButton.d.ts +4 -0
  39. package/dist/RadioButton.es.js +4 -3
  40. package/dist/SegmentedButton.d.ts +4 -0
  41. package/dist/SegmentedButton.es.js +3 -2
  42. package/dist/{Select-D2APaG1z.js → Select-BD5FTxVw.js} +5 -5
  43. package/dist/Select.es.js +1 -1
  44. package/dist/SelectSearch.es.js +2 -2
  45. package/dist/Skeleton.d.ts +4 -0
  46. package/dist/Skeleton.es.js +3 -2
  47. package/dist/Spinner.es.js +1 -1
  48. package/dist/Steps.d.ts +4 -0
  49. package/dist/Steps.es.js +4 -3
  50. package/dist/SwipeContainer.es.js +1 -1
  51. package/dist/Switch.d.ts +4 -0
  52. package/dist/Switch.es.js +3 -2
  53. package/dist/TabLinks.es.js +1 -1
  54. package/dist/Table.es.js +1 -1
  55. package/dist/TextArea.es.js +1 -1
  56. package/dist/Toast.es.js +23 -23
  57. package/dist/ToastProvider.es.js +1 -1
  58. package/dist/Tooltip.es.js +2 -2
  59. package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +1 -1
  60. package/dist/exports/CardProfile.d.ts +1 -0
  61. package/dist/exports/DatePicker.d.ts +2 -0
  62. package/dist/exports/DropZone.d.ts +2 -0
  63. package/dist/exports/Icons.d.ts +2 -1
  64. package/dist/exports/InputMultiple.d.ts +2 -0
  65. package/dist/exports/Menu.d.ts +1 -0
  66. package/dist/exports/ProfilePictureUpload.d.ts +1 -0
  67. package/dist/exports/RadioButton.d.ts +2 -0
  68. package/dist/exports/SegmentedButton.d.ts +2 -0
  69. package/dist/exports/Skeleton.d.ts +2 -0
  70. package/dist/exports/Steps.d.ts +1 -0
  71. package/dist/exports/Switch.d.ts +2 -0
  72. package/dist/index.d.ts +0 -4
  73. package/dist/{jsx-runtime-ByW6EXIE.js → jsx-runtime-DKDX3adD.js} +94 -96
  74. package/dist/prometeo-design-system.es.js +117 -123
  75. package/dist/styles.d.ts +0 -0
  76. package/package.json +283 -272
  77. package/src/styles/app.css +1314 -0
  78. package/src/styles/base.css +1323 -0
  79. package/src/styles/fonts.css +46 -0
  80. package/src/styles/palette.css +83 -0
  81. package/src/styles/utilities.css +1126 -0
  82. package/dist/components/Button/Button_Legacy.d.ts +0 -29
@@ -1,4 +1,4 @@
1
- import { j as o } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as o } from "./jsx-runtime-DKDX3adD.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,9 +1,9 @@
1
- import { j as l } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as l } from "./jsx-runtime-DKDX3adD.js";
2
2
  import { c as h } from "./cn-B6yFEsav.js";
3
3
  import { c as k } from "./index-BOQuZ0gG.js";
4
4
  import { createPortal as E } from "react-dom";
5
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";
6
+ import { a as P } from "./Icons-DtFC5DJ7.js";
7
7
  import B from "./Button.es.js";
8
8
  const L = V((t, s) => {
9
9
  const n = u(null), [e, a] = N(t.defaultOpen || !1), [r, y] = N(null), b = u(t.onClose), c = u(r), {
@@ -1,4 +1,4 @@
1
- import { j as m } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as m } from "./jsx-runtime-DKDX3adD.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,2 +1,6 @@
1
1
  export * from './exports/DropZone'
2
2
  export {}
3
+ import PrometeoDesignSystem from './exports/DropZone'
4
+ export default PrometeoDesignSystem
5
+ export * from './exports/DropZone'
6
+ export {}
@@ -1,8 +1,8 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
- import { Error as P, Upload as R } from "./Icons.es.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
+ import { E as P, U as R } from "./Icons-DtFC5DJ7.js";
3
3
  import { c as i } from "./cn-B6yFEsav.js";
4
- import z, { useCallback as w } from "react";
5
- import { useDropzone as E } from "react-dropzone";
4
+ import z, { useCallback as E } from "react";
5
+ import { useDropzone as w } from "react-dropzone";
6
6
  const q = z.forwardRef(
7
7
  ({
8
8
  onFilesAccepted: d,
@@ -17,21 +17,21 @@ const q = z.forwardRef(
17
17
  maxFiles: g = 1,
18
18
  ...j
19
19
  }, N) => {
20
- const b = w((s, o) => {
20
+ const b = E((s, o) => {
21
21
  s.length > 0 && d?.(s), o.length > 0 && m?.(o);
22
22
  }, [d, m]), {
23
23
  getRootProps: y,
24
24
  getInputProps: D,
25
25
  isDragActive: a,
26
- isDragReject: t,
26
+ isDragReject: r,
27
27
  fileRejections: n
28
- } = E({
28
+ } = w({
29
29
  onDrop: b,
30
30
  accept: v,
31
31
  maxFiles: g,
32
32
  disabled: l,
33
33
  ...j
34
- }), r = n.length > 0;
34
+ }), t = n.length > 0;
35
35
  return /* @__PURE__ */ e.jsx("div", { className: i("w-full", u), children: /* @__PURE__ */ e.jsxs(
36
36
  "div",
37
37
  {
@@ -41,15 +41,15 @@ const q = z.forwardRef(
41
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
43
  f === "default" ? "p-8 min-h-[200px] " : "p-1 min-h-[120px] h-24 md:h-36",
44
- !a && !r && !l && [
44
+ !a && !t && !l && [
45
45
  "border-neutral-default-default",
46
46
  "hover:border-primary/50 hover:bg-primary/5"
47
47
  ],
48
- a && !t && [
48
+ a && !r && [
49
49
  "border-primary bg-primary/10",
50
50
  "ring-2 ring-primary/20"
51
51
  ],
52
- (t || r) && [
52
+ (r || t) && [
53
53
  "border-destructive bg-destructive/10",
54
54
  "ring-2 ring-destructive/20"
55
55
  ],
@@ -60,18 +60,18 @@ const q = z.forwardRef(
60
60
  ),
61
61
  children: [
62
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(
63
+ h && /* @__PURE__ */ e.jsx("div", { className: "mb-0.5 md:mb-4", children: t || r ? /* @__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
  ) }) }),
67
67
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
68
68
  /* @__PURE__ */ e.jsx("p", { className: i(
69
69
  "text-base font-medium text-neutral-default-default",
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" : x }),
72
- !r && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-neutral-medium-default", children: p })
70
+ t || r ? "text-destructive" : a ? "text-primary " : "text-neutral-default-default text-sm font-[400]"
71
+ ), children: a && !r ? "Suelta los archivos aquí..." : r || t ? "Archivo no válido" : x }),
72
+ !t && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-neutral-medium-default", children: p })
73
73
  ] }),
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: [
74
+ t && /* @__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 }),
76
76
  o.map((c) => /* @__PURE__ */ e.jsx("p", { className: "text-xs", children: c.message }, c.code))
77
77
  ] }, s.name)) })
@@ -82,5 +82,6 @@ const q = z.forwardRef(
82
82
  );
83
83
  q.displayName = "DropZone";
84
84
  export {
85
- q as DropZone
85
+ q as DropZone,
86
+ q as default
86
87
  };
@@ -1,7 +1,7 @@
1
- import { j as c } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as c } from "./jsx-runtime-DKDX3adD.js";
2
2
  import u, { memo as n } from "react";
3
3
  import { c as f } from "./cn-B6yFEsav.js";
4
- import { Add as v } from "./Icons.es.js";
4
+ import { A as v } from "./Icons-DtFC5DJ7.js";
5
5
  import { createPortal as m } from "react-dom";
6
6
  import { c as b } from "./index-BOQuZ0gG.js";
7
7
  const h = {
package/dist/Header.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as a } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as a } from "./jsx-runtime-DKDX3adD.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";
@@ -1,8 +1,8 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
1
+ import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
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) => {
3
+ import { c as a } from "./cn-B6yFEsav.js";
4
+ import { C as o, E as n, I as d } from "./Icons-DtFC5DJ7.js";
5
+ const r = (s) => {
6
6
  const { variant: t, className: m } = s, l = {
7
7
  default: "text-neutral-medium-default pt-[1px]",
8
8
  error: "text-error-medium-default pt-[1px]",
@@ -12,13 +12,13 @@ const a = (s) => {
12
12
  error: /* @__PURE__ */ e.jsx(n, { size: 16, className: "text-error-medium-default" }),
13
13
  success: /* @__PURE__ */ e.jsx(o, { size: 16, className: "text-success-medium-default" })
14
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: [
15
+ return /* @__PURE__ */ e.jsx("div", { ref: s.ref, className: a("pl-3 mt-1", m), children: typeof s.children == "string" ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-0.5 items-start", children: [
16
16
  c[t],
17
- /* @__PURE__ */ e.jsx("p", { className: r(" prometeo-fonts-body-small", l[t]), children: s.children })
17
+ /* @__PURE__ */ e.jsx("p", { className: a(" prometeo-fonts-body-small", l[t]), children: s.children })
18
18
  ] }) : s.children });
19
19
  };
20
- a.displayName = "HelperText";
21
- const j = i(a);
20
+ r.displayName = "HelperText";
21
+ const j = i(r);
22
22
  export {
23
23
  j as H
24
24
  };
@@ -127,6 +127,6 @@ declare const Icons: {
127
127
  readonly MessageSquareFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
128
128
  readonly UserAddFill: import('react').MemoExoticComponent<(props: IconProps) => ReactElement>;
129
129
  };
130
- export { Icons };
130
+ export * as Icons from './Icons';
131
131
  export type IconName = keyof typeof Icons;
132
132
  export type IconComponent = (typeof Icons)[IconName];