prometeo-design-system 2.9.9 → 3.0.0

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.
package/dist/Toast.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import w from "react";
3
3
  import { toast as p } from "sonner";
4
- import { c as s } from "./cn-B6yFEsav.js";
4
+ import { c as o } from "./cn-B6yFEsav.js";
5
5
  import { Info as m, Error as u, Cancel as f, CheckCircle as b, Close as C } from "./Icons.es.js";
6
6
  import h from "./Button.es.js";
7
7
  const x = {
@@ -49,7 +49,7 @@ const x = {
49
49
  icon: m
50
50
  }
51
51
  }
52
- }, i = {
52
+ }, l = {
53
53
  dark: {
54
54
  container: "bg-neutral-default-default",
55
55
  title: "text-neutral-strong-default",
@@ -62,19 +62,19 @@ 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
+ }, v = (c) => {
66
+ const { title: a, description: n, button: r, id: i, icon: d, variant: s = "info", colorMode: t = "dark", showClose: g = !1 } = c;
67
67
  return /* @__PURE__ */ e.jsxs(
68
68
  "div",
69
69
  {
70
70
  style: {
71
- boxShadow: i[t].shadow
71
+ boxShadow: l[t].shadow
72
72
  },
73
- className: s(
73
+ className: o(
74
74
  "flex p-3 pb-4 md:w-[485px] md:max-w-[485px] md:min-w-[485px] md:h-[68px] md:max-h-[68px] rounded-lg gap-2",
75
75
  "w-[345px] max-w-[345px] min-w-[345px] h-[68px] max-h-[68px]",
76
- i[t].container,
77
- x[t][d].container
76
+ l[t].container,
77
+ x[t][s].container
78
78
  ),
79
79
  children: [
80
80
  /* @__PURE__ */ e.jsxs(
@@ -82,10 +82,10 @@ 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: w.createElement(d || x[t][s].icon, { size: 24, className: x[t][s].iconClass }) }),
86
86
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex flex-col gap-1", children: [
87
- /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", i[t].title), children: a }),
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 })
87
+ /* @__PURE__ */ e.jsx("p", { className: o("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", l[t].title), children: a }),
88
+ n && /* @__PURE__ */ e.jsx("p", { className: o("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", l[t].description), children: n })
89
89
  ] })
90
90
  ]
91
91
  }
@@ -95,7 +95,7 @@ const x = {
95
95
  {
96
96
  label: r?.label,
97
97
  onClick: () => {
98
- r?.onClick(), p.dismiss(n);
98
+ r?.onClick(), p.dismiss(i);
99
99
  },
100
100
  size: "small",
101
101
  color: "secondary"
@@ -105,37 +105,38 @@ const x = {
105
105
  h,
106
106
  {
107
107
  onClick: () => {
108
- p.dismiss(n);
108
+ p.dismiss(i);
109
109
  },
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(C, { className: o(t === "light" ? "text-neutral-medium-focused " : "") }),
114
114
  variant: "text",
115
115
  animate: !1,
116
- className: s(t === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
116
+ className: o(t === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
117
117
  }
118
118
  ) })
119
119
  ]
120
120
  }
121
121
  );
122
122
  };
123
- function M(l, a) {
124
- const { duration: o = 2500, showClose: r = !1, colorMode: n = "dark" } = a || {};
125
- return p.custom((c) => /* @__PURE__ */ e.jsx(
123
+ function M(c, a) {
124
+ const { duration: n = 2500, showClose: r = !1, colorMode: i = "dark", position: d } = a || {};
125
+ return p.custom((s) => /* @__PURE__ */ e.jsx(
126
126
  v,
127
127
  {
128
- id: c,
128
+ id: s,
129
129
  variant: a?.variant || "success",
130
- title: l,
130
+ title: c,
131
131
  description: a?.description,
132
132
  icon: a?.icon,
133
133
  button: a?.button,
134
134
  showClose: r,
135
- colorMode: n
135
+ colorMode: i
136
136
  }
137
137
  ), {
138
- duration: o,
138
+ duration: n,
139
+ position: d,
139
140
  unstyled: !0
140
141
  });
141
142
  }
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export interface NavigationDrawerProps {
3
+ children?: ReactNode;
4
+ }
5
+ declare const NavigationDrawer: import('react').MemoExoticComponent<(props: NavigationDrawerProps) => import("react/jsx-runtime").JSX.Element>;
6
+ export default NavigationDrawer;
@@ -0,0 +1,2 @@
1
+ import { default as NavigationDrawer } from './NavigationDrawer';
2
+ export default NavigationDrawer;
@@ -15,6 +15,7 @@ type ToastVariantClassnames = {
15
15
  };
16
16
  };
17
17
  declare const toastVariants: ToastVariantClassnames;
18
+ type ToastPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center';
18
19
  export interface PyrionToastProps {
19
20
  id: string | number;
20
21
  variant?: keyof typeof toastVariants['dark'];
@@ -28,6 +29,7 @@ export interface PyrionToastProps {
28
29
  };
29
30
  colorMode?: ColorMode;
30
31
  showClose?: boolean;
32
+ position?: ToastPosition;
31
33
  }
32
34
  declare const PyrionToast: (props: PyrionToastProps) => import("react/jsx-runtime").JSX.Element;
33
35
  export default PyrionToast;
@@ -748,7 +748,7 @@ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
748
748
  /* @__PURE__ */ a.jsx(
749
749
  b.div,
750
750
  {
751
- className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
751
+ className: "nav-icon-wrapper flex items-center justify-center shrink-0",
752
752
  animate: {
753
753
  scale: m ? 1.05 : 1
754
754
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "2.9.9",
4
+ "version": "3.0.0",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",