prometeo-design-system 2.7.8 → 2.8.1

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 (43) hide show
  1. package/dist/Button.es.js +5 -5
  2. package/dist/{CardProfile-WHoeSibd.js → CardProfile-CHUivLbW.js} +28 -28
  3. package/dist/CardProfile.es.js +1 -1
  4. package/dist/CheckBox.es.js +60 -60
  5. package/dist/CheckboxFormik.es.js +2 -2
  6. package/dist/DatePicker.es.js +68 -68
  7. package/dist/DrawerDesktop.es.js +9 -9
  8. package/dist/DropZone.es.js +32 -32
  9. package/dist/FAButton.es.js +2 -2
  10. package/dist/HelperComponent-CcGxM09g.js +24 -0
  11. package/dist/Icons/Icons.d.ts +2 -2
  12. package/dist/Icons-ChYkaR8R.js +899 -0
  13. package/dist/Icons.es.js +2 -951
  14. package/dist/{ImageGallery-WKzUevOQ.js → ImageGallery-TkgHO3JL.js} +43 -43
  15. package/dist/ImageGallery.es.js +1 -1
  16. package/dist/{Input-D6as6xD-.js → Input-CsNlU1Hu.js} +67 -74
  17. package/dist/Input.es.js +1 -1
  18. package/dist/InputFormik.es.js +58 -58
  19. package/dist/InputFormikV2.es.js +1 -1
  20. package/dist/InputMultiple.es.js +51 -51
  21. package/dist/Logo.es.js +3 -3
  22. package/dist/Menu.es.js +2 -2
  23. package/dist/OtpInput.es.js +68 -68
  24. package/dist/Pagination.es.js +1 -1
  25. package/dist/RadioButton.es.js +1 -1
  26. package/dist/{Select-sdfP2TL0.js → Select-D7Cs1OlG.js} +4 -4
  27. package/dist/Select.es.js +1 -1
  28. package/dist/SelectFormik.es.js +1 -1
  29. package/dist/SelectFormikLegacy.es.js +23 -23
  30. package/dist/SelectSearch.es.js +1 -1
  31. package/dist/Steps.es.js +14 -14
  32. package/dist/TabLinks.es.js +2 -2
  33. package/dist/Table.es.js +2 -2
  34. package/dist/Toast.es.js +23 -23
  35. package/dist/Tooltip.es.js +7 -7
  36. package/dist/components/CheckBox/CheckBox.d.ts +5 -4
  37. package/dist/components/Toaster/Toaster.d.ts +3 -3
  38. package/dist/exports/Icons.d.ts +1 -1
  39. package/dist/prometeo-design-system.css +1 -1
  40. package/dist/prometeo-design-system.es.js +125 -126
  41. package/package.json +2 -5
  42. package/dist/HelperComponent-BeNlTMqI.js +0 -24
  43. package/dist/components/Spinner/SpinnerV2.d.ts +0 -12
package/dist/Toast.es.js CHANGED
@@ -1,52 +1,52 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import w from "react";
2
+ import b from "react";
3
3
  import { toast as p } from "sonner";
4
+ import { I as m } from "./Icons-ChYkaR8R.js";
4
5
  import { c as s } from "./cn-B6yFEsav.js";
5
- import { Info as m, Error as u, Cancel as f, CheckCircle as b, Close as C } from "./Icons.es.js";
6
- import h from "./Button.es.js";
6
+ import u from "./Button.es.js";
7
7
  const x = {
8
8
  dark: {
9
9
  success: {
10
10
  container: "border-b-[2px] border-success-default-default",
11
11
  iconClass: "text-success-medium-default",
12
- icon: b
12
+ icon: "CheckCircle"
13
13
  },
14
14
  error: {
15
15
  container: "border-b-[2px] border-error-default-default",
16
16
  iconClass: "text-error-medium-default",
17
- icon: f
17
+ icon: "Cancel"
18
18
  },
19
19
  warning: {
20
20
  container: "border-b-[2px] border-warning-default-default",
21
21
  iconClass: "text-warning-medium-default",
22
- icon: u
22
+ icon: "Error"
23
23
  },
24
24
  info: {
25
25
  container: " border-b-[2px] border-primary-default-default",
26
26
  iconClass: "text-primary-default-default",
27
- icon: m
27
+ icon: "Info"
28
28
  }
29
29
  },
30
30
  light: {
31
31
  success: {
32
32
  container: "",
33
33
  iconClass: "text-success-default-pressed",
34
- icon: b
34
+ icon: "CheckCircle"
35
35
  },
36
36
  error: {
37
37
  container: "",
38
38
  iconClass: "text-error-medium-pressed",
39
- icon: f
39
+ icon: "Cancel"
40
40
  },
41
41
  warning: {
42
42
  container: "",
43
43
  iconClass: "text-warning-medium-pressed",
44
- icon: u
44
+ icon: "Error"
45
45
  },
46
46
  info: {
47
47
  container: "",
48
48
  iconClass: "text-primary-default-pressed",
49
- icon: m
49
+ icon: "Info"
50
50
  }
51
51
  }
52
52
  }, i = {
@@ -62,8 +62,8 @@ const x = {
62
62
  description: "text-neutral-medium-focused",
63
63
  shadow: "0px 0px 2px 0px rgba(0, 0, 0, 0.35),8px 8px 20px 0px rgba(0, 0, 0, 0.3),0px 0px 15px 0px rgba(0, 0, 0, 0.2),0px 0px 20px 0px rgba(21, 21, 21, 0.3) inset,6px 0px 100px 0px rgba(0, 0, 0, 0.05) inset"
64
64
  }
65
- }, v = (l) => {
66
- const { title: a, description: o, button: r, id: n, icon: c, variant: d = "info", colorMode: t = "dark", showClose: g = !1 } = l;
65
+ }, h = (l) => {
66
+ const { title: a, description: o, button: r, id: n, icon: c, variant: d = "info", colorMode: t = "dark", showClose: f = !1 } = l;
67
67
  return /* @__PURE__ */ e.jsxs(
68
68
  "div",
69
69
  {
@@ -82,7 +82,7 @@ const x = {
82
82
  {
83
83
  className: "flex items-center justify-start gap-2 max-h-[38px] h-[38px] overflow-hidden flex-1 ",
84
84
  children: [
85
- /* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: w.createElement(c || x[t][d].icon, { size: 24, className: x[t][d].iconClass }) }),
85
+ /* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: b.createElement(m[x[t][d].icon || c], { size: 24, className: x[t][d].iconClass }) }),
86
86
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex flex-col gap-1", children: [
87
87
  /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", i[t].title), children: a }),
88
88
  o && /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", i[t].description), children: o })
@@ -90,8 +90,8 @@ const x = {
90
90
  ]
91
91
  }
92
92
  ),
93
- r?.label && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
94
- h,
93
+ r?.label && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(
94
+ u,
95
95
  {
96
96
  label: r?.label,
97
97
  onClick: () => {
@@ -101,8 +101,8 @@ const x = {
101
101
  color: "secondary"
102
102
  }
103
103
  ) }),
104
- g && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
105
- h,
104
+ f && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(
105
+ u,
106
106
  {
107
107
  onClick: () => {
108
108
  p.dismiss(n);
@@ -110,7 +110,7 @@ const x = {
110
110
  label: "",
111
111
  size: "small",
112
112
  color: "secondary",
113
- icon: /* @__PURE__ */ e.jsx(C, { className: s(t === "light" ? "text-neutral-medium-focused " : "") }),
113
+ icon: /* @__PURE__ */ e.jsx(m.Close, { className: s(t === "light" ? "text-neutral-medium-focused " : "") }),
114
114
  variant: "text",
115
115
  animate: !1,
116
116
  className: s(t === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
@@ -120,10 +120,10 @@ const x = {
120
120
  }
121
121
  );
122
122
  };
123
- function M(l, a) {
123
+ function y(l, a) {
124
124
  const { duration: o = 2500, showClose: r = !1, colorMode: n = "dark" } = a || {};
125
125
  return p.custom((c) => /* @__PURE__ */ e.jsx(
126
- v,
126
+ h,
127
127
  {
128
128
  id: c,
129
129
  variant: a?.variant || "success",
@@ -140,6 +140,6 @@ function M(l, a) {
140
140
  });
141
141
  }
142
142
  export {
143
- v as default,
144
- M as toastpyrion
143
+ h as default,
144
+ y as toastpyrion
145
145
  };
@@ -1,7 +1,7 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { Close as f } from "./Icons.es.js";
3
- import { AnimatePresence as p, motion as n } from "framer-motion";
4
- import { useState as x, cloneElement as b } from "react";
2
+ import { AnimatePresence as f, motion as n } from "framer-motion";
3
+ import { useState as p, cloneElement as x } from "react";
4
+ import { I as b } from "./Icons-ChYkaR8R.js";
5
5
  const N = ({
6
6
  title: i,
7
7
  trigger: o,
@@ -9,7 +9,7 @@ const N = ({
9
9
  position: t = "top",
10
10
  component: c
11
11
  }) => {
12
- const [s, l] = x(!1), m = () => l(!0), a = () => l(!1), u = o === "hover" ? {
12
+ const [s, l] = p(!1), m = () => l(!0), a = () => l(!1), u = o === "hover" ? {
13
13
  onMouseEnter: m,
14
14
  onMouseLeave: a
15
15
  } : {
@@ -21,8 +21,8 @@ const N = ({
21
21
  right: "left-full top-1/2 -translate-y-1/2 ml-2"
22
22
  };
23
23
  return /* @__PURE__ */ e.jsxs("div", { className: "relative inline-block", children: [
24
- b(r, u),
25
- /* @__PURE__ */ e.jsx(p, { children: s && /* @__PURE__ */ e.jsx(
24
+ x(r, u),
25
+ /* @__PURE__ */ e.jsx(f, { children: s && /* @__PURE__ */ e.jsx(
26
26
  n.div,
27
27
  {
28
28
  initial: { opacity: 0, scale: 0.8, y: t === "top" ? 10 : -10 },
@@ -49,7 +49,7 @@ const N = ({
49
49
  className: "absolute cursor-pointer -top-2 -right-2 w-6 h-6 bg-neutral-strong-default hover:bg-neutral-medium-default rounded-full flex items-center justify-center transition-colors z-10",
50
50
  whileHover: { scale: 1.1 },
51
51
  whileTap: { scale: 0.95 },
52
- children: /* @__PURE__ */ e.jsx(f, { size: 14, className: "text-white" })
52
+ children: /* @__PURE__ */ e.jsx(b.Close, { size: 14, className: "text-white" })
53
53
  }
54
54
  )
55
55
  ] })
@@ -3,8 +3,9 @@ export type CheckBoxProps = {
3
3
  className?: string;
4
4
  disabled?: boolean;
5
5
  } & HTMLProps<HTMLInputElement>;
6
- declare const _default: import('react').MemoExoticComponent<{
7
- ({ className, disabled, ...rest }: CheckBoxProps): import("react/jsx-runtime").JSX.Element;
8
- displayName: string;
9
- }>;
6
+ interface ICheckBox extends CheckBoxProps {
7
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
+ value?: string;
9
+ }
10
+ declare const _default: import('react').NamedExoticComponent<Omit<ICheckBox, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
10
11
  export default _default;
@@ -1,9 +1,9 @@
1
+ import { Icons } from '../../Icons/Icons';
1
2
  import { ColorMode } from '../Shared/types';
2
- import { IconComponent } from '../../Icons/Icons';
3
3
  type ToastElementsProps = {
4
4
  container: string;
5
5
  iconClass: string;
6
- icon: IconComponent;
6
+ icon: keyof typeof Icons;
7
7
  };
8
8
  type ToastVarians = 'success' | 'error' | 'warning' | 'info';
9
9
  type ToastVariantClassnames = {
@@ -20,7 +20,7 @@ export interface PyrionToastProps {
20
20
  variant?: keyof typeof toastVariants['dark'];
21
21
  title?: string;
22
22
  description?: string;
23
- icon?: IconComponent;
23
+ icon?: keyof typeof Icons;
24
24
  duration?: number;
25
25
  button?: {
26
26
  label?: string;
@@ -1 +1 @@
1
- export * from '../Icons/Icons';
1
+ export { Icons } from '../Icons/Icons';