prometeo-design-system 3.1.6 → 4.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.
Files changed (50) hide show
  1. package/dist/Icons/ReassignmentFill.es.js +1 -1
  2. package/dist/Icons/StarFill.d.ts +6 -0
  3. package/dist/Icons/StarFill.es.js +19 -0
  4. package/dist/Icons/components/StarFill.d.ts +4 -0
  5. package/dist/Icons/index.d.ts +1 -0
  6. package/dist/Icons/types.d.ts +4 -2
  7. package/dist/Icons.es.js +18 -16
  8. package/dist/Input.es.js +56 -52
  9. package/dist/PyrionLayout.d.ts +6 -0
  10. package/dist/PyrionLayout.es.js +1308 -0
  11. package/dist/RecurrentDatePicker.es.js +1 -1
  12. package/dist/Scrollable.es.js +118 -86
  13. package/dist/components/Input/Input.d.ts +1 -0
  14. package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +18 -11
  15. package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +1 -0
  16. package/dist/components/NavigationDrawer/NavigationDrawerActions.d.ts +3 -2
  17. package/dist/components/NavigationDrawer/NavigationDrawerSidebar.d.ts +11 -0
  18. package/dist/components/NotificationCard/NotificationCard.d.ts +3 -2
  19. package/dist/components/PyrionNavigationDrawer/PLContent.d.ts +10 -0
  20. package/dist/components/PyrionNavigationDrawer/PLFooter.d.ts +20 -0
  21. package/dist/components/PyrionNavigationDrawer/PLHeader.d.ts +10 -0
  22. package/dist/components/PyrionNavigationDrawer/PLHelpSection.d.ts +8 -0
  23. package/dist/components/PyrionNavigationDrawer/{PyrionNavigationDrawerMobileAppSwitcher.d.ts → PLMobileAppSwitcher.d.ts} +3 -3
  24. package/dist/components/PyrionNavigationDrawer/PLNotificationsList.d.ts +15 -0
  25. package/dist/components/PyrionNavigationDrawer/PLSidebar.d.ts +12 -0
  26. package/dist/components/PyrionNavigationDrawer/PLSidebarContent.d.ts +17 -0
  27. package/dist/components/PyrionNavigationDrawer/{PyrionNavigationDrawerSystemLogo.d.ts → PLSystemLogo.d.ts} +1 -1
  28. package/dist/components/PyrionNavigationDrawer/PLSystemSessions.d.ts +14 -0
  29. package/dist/components/PyrionNavigationDrawer/PLayoutBase.d.ts +41 -0
  30. package/dist/components/PyrionNavigationDrawer/PyrionLayout.d.ts +143 -0
  31. package/dist/components/PyrionNavigationDrawer/index.d.ts +3 -2
  32. package/dist/components/Scrollable/Scrollable.d.ts +1 -0
  33. package/dist/exports/PyrionLayout.d.ts +2 -0
  34. package/dist/exports/usePyrionNavigation.d.ts +1 -1
  35. package/dist/prometeo-design-system.es.js +2423 -402
  36. package/dist/styles.css +1 -1
  37. package/dist/usePyrionNavigation.es.js +1 -1
  38. package/package.json +5 -13
  39. package/dist/LayoutGeneric-CfWhV1ov.js +0 -26
  40. package/dist/LayoutGeneric.d.ts +0 -6
  41. package/dist/LayoutGeneric.es.js +0 -4
  42. package/dist/PyrionNavigationDrawer.d.ts +0 -6
  43. package/dist/PyrionNavigationDrawer.es.js +0 -962
  44. package/dist/components/PyrionNavigationDrawer/PyrionHelpSection.d.ts +0 -8
  45. package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawer.d.ts +0 -130
  46. package/dist/components/PyrionNavigationDrawer/PyrionNotificationsList.d.ts +0 -8
  47. package/dist/components/PyrionNavigationDrawer/SidebarContent.d.ts +0 -13
  48. package/dist/components/PyrionNavigationDrawer/SystemSessions.d.ts +0 -12
  49. package/dist/exports/LayoutGeneric.d.ts +0 -2
  50. package/dist/exports/PyrionNavigationDrawer.d.ts +0 -2
@@ -2,7 +2,7 @@ import { j as s } from "../jsx-runtime-GkKLlHH4.js";
2
2
  import { m as a } from "../iconUtils-D0lVAgGT.js";
3
3
  const c = a(
4
4
  ({ size: t = 24, className: h, ...i }) => {
5
- const e = "translate(480,-480) scale(52,52) translate(-8,-8)";
5
+ const e = "translate(480,-480) scale(58,56) translate(-8,-8)";
6
6
  return /* @__PURE__ */ s.jsxs(
7
7
  "svg",
8
8
  {
@@ -0,0 +1,6 @@
1
+ export * from './components/StarFill'
2
+ export {}
3
+ import PrometeoDesignSystem from './components/StarFill'
4
+ export default PrometeoDesignSystem
5
+ export * from './components/StarFill'
6
+ export {}
@@ -0,0 +1,19 @@
1
+ import { j as r } from "../jsx-runtime-GkKLlHH4.js";
2
+ import { m as L } from "../iconUtils-D0lVAgGT.js";
3
+ const i = L(({ size: t = 24, className: o, ...s }) => /* @__PURE__ */ r.jsx(
4
+ "svg",
5
+ {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ ...s,
8
+ viewBox: "0 -960 960 960",
9
+ width: t,
10
+ height: t,
11
+ fill: "currentColor",
12
+ className: o,
13
+ children: /* @__PURE__ */ r.jsx("path", { d: "M233 -100L298 -381L80 -570L368 -595L480 -860L592 -595L880 -570L662 -381L727 -100L480 -249L233 -100Z" })
14
+ }
15
+ ));
16
+ export {
17
+ i as StarFill,
18
+ i as default
19
+ };
@@ -0,0 +1,4 @@
1
+ import { IconProps } from '../iconUtils';
2
+ export type { IconProps };
3
+ export declare const StarFill: import('react').MemoExoticComponent<(props: IconProps) => import('react').ReactElement>;
4
+ export default StarFill;
@@ -61,5 +61,6 @@ export { UserAddFill } from './components/UserAddFill';
61
61
  export { Reassignment } from './components/Reassignment';
62
62
  export { ReassignmentFill } from './components/ReassignmentFill';
63
63
  export { Send } from './components/Send';
64
+ export { StarFill } from './components/StarFill';
64
65
  export type { IconProps } from './iconUtils';
65
66
  export type { IconComponent } from './types';
@@ -59,8 +59,9 @@ import { TrashFill } from './components/TrashFill';
59
59
  import { MessageSquareFill } from './components/MessageSquareFill';
60
60
  import { UserAddFill } from './components/UserAddFill';
61
61
  import { Reassignment } from './components/Reassignment';
62
- import { default as ReassignmentFill } from './components/ReassignmentFill';
63
- import { default as Send } from './components/Send';
62
+ import { ReassignmentFill } from './components/ReassignmentFill';
63
+ import { Send } from './components/Send';
64
+ import { StarFill } from './components/StarFill';
64
65
  export type IconsMap = {
65
66
  Ticket: typeof Ticket;
66
67
  Home: typeof Home;
@@ -125,6 +126,7 @@ export type IconsMap = {
125
126
  Reassignment: typeof Reassignment;
126
127
  ReassignmentFill: typeof ReassignmentFill;
127
128
  Send: typeof Send;
129
+ StarFill: typeof StarFill;
128
130
  };
129
131
  export type IconName = keyof IconsMap;
130
132
  export type IconComponent = IconsMap[IconName];
package/dist/Icons.es.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { Ticket as e } from "./Icons/Ticket.es.js";
2
2
  import { Home as p } from "./Icons/Home.es.js";
3
3
  import { Boards as f } from "./Icons/Boards.es.js";
4
- import { Notifications as i } from "./Icons/Notifications.es.js";
4
+ import { Notifications as l } from "./Icons/Notifications.es.js";
5
5
  import { Help as a } from "./Icons/Help.es.js";
6
6
  import { Settings as n } from "./Icons/Settings.es.js";
7
7
  import { CrevronLeft as C } from "./Icons/CrevronLeft.es.js";
8
8
  import { CrevronRight as F } from "./Icons/CrevronRight.es.js";
9
9
  import { ArrowLeft as A } from "./Icons/ArrowLeft.es.js";
10
- import { Shared as k } from "./Icons/Shared.es.js";
11
- import { ChevronDown as S } from "./Icons/ChevronDown.es.js";
10
+ import { Shared as g } from "./Icons/Shared.es.js";
11
+ import { ChevronDown as y } from "./Icons/ChevronDown.es.js";
12
12
  import { Collapse as w } from "./Icons/Collapse.es.js";
13
13
  import { Calendar as U } from "./Icons/Calendar.es.js";
14
14
  import { Close as D } from "./Icons/Close.es.js";
@@ -28,13 +28,13 @@ import { AccountCircle as oo } from "./Icons/AccountCircle.es.js";
28
28
  import { UserAdd as eo } from "./Icons/UserAdd.es.js";
29
29
  import { AttachFile as po } from "./Icons/AttachFile.es.js";
30
30
  import { HistoryActivity as fo } from "./Icons/HistoryActivity.es.js";
31
- import { MessageSquare as io } from "./Icons/MessageSquare.es.js";
31
+ import { MessageSquare as lo } from "./Icons/MessageSquare.es.js";
32
32
  import { CloseNavBarDesktop as ao } from "./Icons/CloseNavBarDesktop.es.js";
33
33
  import { EyeVisibility as no } from "./Icons/EyeVisibility.es.js";
34
34
  import { EyeVisibilityOff as co } from "./Icons/EyeVisibilityOff.es.js";
35
35
  import { Check as ho } from "./Icons/Check.es.js";
36
- import { Info as go } from "./Icons/Info.es.js";
37
- import { Error as yo } from "./Icons/Error.es.js";
36
+ import { Info as So } from "./Icons/Info.es.js";
37
+ import { Error as ko } from "./Icons/Error.es.js";
38
38
  import { TicketFilled as uo } from "./Icons/TicketFilled.es.js";
39
39
  import { UploadCloud as Eo } from "./Icons/UploadCloud.es.js";
40
40
  import { Clock as vo } from "./Icons/Clock.es.js";
@@ -55,12 +55,13 @@ import { Image as rr } from "./Icons/Image.es.js";
55
55
  import { DocumentFill as tr } from "./Icons/DocumentFill.es.js";
56
56
  import { Company as mr } from "./Icons/Company.es.js";
57
57
  import { EditFill as xr } from "./Icons/EditFill.es.js";
58
- import { TrashFill as lr } from "./Icons/TrashFill.es.js";
58
+ import { TrashFill as ir } from "./Icons/TrashFill.es.js";
59
59
  import { MessageSquareFill as sr } from "./Icons/MessageSquareFill.es.js";
60
60
  import { UserAddFill as dr } from "./Icons/UserAddFill.es.js";
61
61
  import { Reassignment as cr } from "./Icons/Reassignment.es.js";
62
62
  import { ReassignmentFill as hr } from "./Icons/ReassignmentFill.es.js";
63
- import { Send as gr } from "./Icons/Send.es.js";
63
+ import { Send as Sr } from "./Icons/Send.es.js";
64
+ import { StarFill as kr } from "./Icons/StarFill.es.js";
64
65
  export {
65
66
  oo as AccountCircle,
66
67
  z as Add,
@@ -73,7 +74,7 @@ export {
73
74
  ho as Check,
74
75
  No as CheckCircle,
75
76
  jo as CheckList,
76
- S as ChevronDown,
77
+ y as ChevronDown,
77
78
  vo as Clock,
78
79
  D as Close,
79
80
  ao as CloseNavBarDesktop,
@@ -87,7 +88,7 @@ export {
87
88
  J as Edit,
88
89
  xr as EditFill,
89
90
  Xo as Email,
90
- yo as Error,
91
+ ko as Error,
91
92
  no as EyeVisibility,
92
93
  co as EyeVisibilityOff,
93
94
  _ as FaLock,
@@ -99,26 +100,27 @@ export {
99
100
  fo as HistoryActivity,
100
101
  p as Home,
101
102
  rr as Image,
102
- go as Info,
103
+ So as Info,
103
104
  H as Logout,
104
- io as MessageSquare,
105
+ lo as MessageSquare,
105
106
  sr as MessageSquareFill,
106
107
  W as MoreVert,
107
- i as Notifications,
108
+ l as Notifications,
108
109
  Lo as Pause,
109
110
  cr as Reassignment,
110
111
  hr as ReassignmentFill,
111
112
  $o as Reload,
112
113
  I as Search,
113
- gr as Send,
114
+ Sr as Send,
114
115
  n as Settings,
115
- k as Shared,
116
+ g as Shared,
116
117
  bo as Sort,
118
+ kr as StarFill,
117
119
  P as Stars,
118
120
  e as Ticket,
119
121
  uo as TicketFilled,
120
122
  Mo as Trash,
121
- lr as TrashFill,
123
+ ir as TrashFill,
122
124
  Q as Upload,
123
125
  Eo as UploadCloud,
124
126
  eo as UserAdd,
package/dist/Input.es.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import { j as t } from "./jsx-runtime-GkKLlHH4.js";
2
2
  import { c as e } from "./cn-B6yFEsav.js";
3
- import { memo as _, forwardRef as q, useState as V } from "react";
4
- import F from "./Spinner.es.js";
5
- import { u as ee } from "./useLabelBackground-BDIHUdND.js";
6
- import { H as te } from "./HelperComponent-ljsn0xD6.js";
7
- import { EyeVisibility as re } from "./Icons/EyeVisibility.es.js";
8
- import { EyeVisibilityOff as oe } from "./Icons/EyeVisibilityOff.es.js";
9
- import { Close as se } from "./Icons/Close.es.js";
3
+ import { memo as q, forwardRef as V, useState as F } from "react";
4
+ import ee from "./Spinner.es.js";
5
+ import { u as te } from "./useLabelBackground-BDIHUdND.js";
6
+ import { H as re } from "./HelperComponent-ljsn0xD6.js";
7
+ import { EyeVisibility as oe } from "./Icons/EyeVisibility.es.js";
8
+ import { EyeVisibilityOff as se } from "./Icons/EyeVisibilityOff.es.js";
9
+ import le from "./Button.es.js";
10
+ import { Close as ae } from "./Icons/Close.es.js";
10
11
  const m = {
11
12
  default: {
12
13
  container: "",
@@ -41,38 +42,39 @@ const m = {
41
42
  label: e("text-success", "peer-focus:text-success-light"),
42
43
  icon: e("text-success-light", "peer-focus:text-success-light")
43
44
  }
44
- }, H = q(
45
+ }, $ = V(
45
46
  ({
46
47
  label: x,
47
48
  icon: s,
48
49
  iconPosition: d = "left",
49
- onChange: $,
50
- value: I,
50
+ onChange: I,
51
+ value: S,
51
52
  name: h,
52
53
  width: i = "100%",
53
54
  height: l,
54
55
  variant: a = "default",
55
56
  labelVariant: o = "default",
56
- size: S = "medium",
57
+ size: E = "medium",
57
58
  disabled: u = !1,
58
59
  type: r = "text",
59
60
  isFetching: n,
60
61
  errorComponent: b,
61
62
  helperComponent: g,
62
- placeholder: E,
63
+ placeholder: L,
63
64
  required: j = !1,
64
- onFocus: L,
65
- onBlur: P,
65
+ onFocus: P,
66
+ onBlur: R,
66
67
  onKeyDown: k,
67
- onKeyUp: C,
68
- className: R,
68
+ onKeyUp: B,
69
+ className: C,
69
70
  style: D,
70
- readOnly: B = !1,
71
+ readOnly: M = !1,
71
72
  onClear: N,
72
- ...z
73
- }, M) => {
74
- const [w, O] = V(!1), { ref: T } = ee();
75
- let f = S;
73
+ onClickIcon: z,
74
+ ...v
75
+ }, O) => {
76
+ const [w, T] = F(!1), { ref: A } = te();
77
+ let f = E;
76
78
  l && (f = "customHeight");
77
79
  const c = {
78
80
  small: {
@@ -103,11 +105,11 @@ const m = {
103
105
  label: "text-sm peer-focus:text-sm peer-placeholder-shown:text-xs ",
104
106
  icon: "w-6 h-6 right-3"
105
107
  }
106
- }, A = () => {
107
- O(!w);
108
+ }, G = () => {
109
+ T(!w);
108
110
  }, y = {};
109
111
  i && i !== "100%" && (y.width = i), l && (y.height = l);
110
- const v = a === "error" && b, G = !v && g, J = r === "password", K = () => o === "static" ? "-top-1 -translate-y-full left-0 pl-3" : s ? `${p ? "peer-placeholder-shown:top-[calc(50%-12px)]" : "peer-placeholder-shown:top-1/2"} -translate-y-1/2 peer-focus:top-0 peer-focus:left-3 peer-focus:px-1 peer-focus:ml-0 peer-focus:mr-0 ${d === "left" ? "peer-placeholder-shown:ml-6" : "peer-placeholder-shown:mr-6"}` : `${p ? "peer-placeholder-shown:top-[calc(50%-12px)]" : "peer-placeholder-shown:top-1/2"} -translate-y-1/2 peer-focus:top-0 peer-focus:left-3 peer-focus:px-1`, Q = () => l ? c.customHeight.label : c[f].label, U = () => l ? { height: l } : {}, W = () => o === "default" ? x : E || x || "", X = () => J ? s ? d === "left" ? "pl-10 pr-10" : "pr-16" : "pr-10" : s ? d === "left" ? "pl-10 pr-3" : "pr-10 pl-3" : "", Y = o === "default" && "transition-all duration-200 ease-in-out", p = b || g;
112
+ const H = a === "error" && b, J = !H && g, K = r === "password", Q = () => o === "static" ? "-top-1 -translate-y-full left-0 pl-3" : s ? `${p ? "peer-placeholder-shown:top-[calc(50%-12px)]" : "peer-placeholder-shown:top-1/2"} -translate-y-1/2 peer-focus:top-0 peer-focus:left-3 peer-focus:px-1 peer-focus:ml-0 peer-focus:mr-0 ${d === "left" ? "peer-placeholder-shown:ml-6" : "peer-placeholder-shown:mr-6"}` : `${p ? "peer-placeholder-shown:top-[calc(50%-12px)]" : "peer-placeholder-shown:top-1/2"} -translate-y-1/2 peer-focus:top-0 peer-focus:left-3 peer-focus:px-1`, U = () => l ? c.customHeight.label : c[f].label, W = () => l ? { height: l } : {}, X = () => o === "default" ? x : L || x || "", Y = () => K ? s ? d === "left" ? "pl-10 pr-10" : "pr-16" : "pr-10" : s ? d === "left" ? "pl-10 pr-3" : "pr-10 pl-3" : "", Z = o === "default" && "transition-all duration-200 ease-in-out", p = b || g;
111
113
  return /* @__PURE__ */ t.jsxs(
112
114
  "div",
113
115
  {
@@ -117,7 +119,7 @@ const m = {
117
119
  !i && "w-full",
118
120
  "bg-inherit",
119
121
  o === "static" && "mt-2",
120
- R
122
+ C
121
123
  ),
122
124
  style: { ...D, ...y },
123
125
  children: [
@@ -126,9 +128,9 @@ const m = {
126
128
  {
127
129
  id: h,
128
130
  name: h,
129
- ref: M,
130
- value: I,
131
- placeholder: W(),
131
+ ref: O,
132
+ value: S,
133
+ placeholder: X(),
132
134
  type: r === "password" && w ? "text" : r,
133
135
  className: e(
134
136
  "peer w-full border rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out",
@@ -140,32 +142,32 @@ const m = {
140
142
  s && "pr-10",
141
143
  u && "bg-transparent opacity-60 border-neutral-strong-default text-neutral-medium-disabled",
142
144
  m[a].container,
143
- X()
145
+ Y()
144
146
  ),
145
- style: U(),
146
- onChange: $,
147
- onFocus: L,
148
- onBlur: P,
147
+ style: W(),
148
+ onChange: I,
149
+ onFocus: P,
150
+ onBlur: R,
149
151
  disabled: u,
150
152
  required: j,
151
153
  onKeyDown: k,
152
- onKeyUp: C,
153
- defaultValue: z.defaultValue,
154
- readOnly: B,
155
- ...z
154
+ onKeyUp: B,
155
+ defaultValue: v.defaultValue,
156
+ readOnly: M,
157
+ ...v
156
158
  }
157
159
  ),
158
160
  /* @__PURE__ */ t.jsx(
159
161
  "label",
160
162
  {
161
- ref: T,
163
+ ref: A,
162
164
  htmlFor: h,
163
165
  className: e(
164
166
  "absolute left-3 pointer-events-none px-1 z-10",
165
- Y,
166
- Q(),
167
+ Z,
168
+ U(),
167
169
  m[a].label,
168
- K(),
170
+ Q(),
169
171
  j && "after:content-['*'] after:text-error-default after:ml-1",
170
172
  u && "text-neutral-medium-disabled prometeo-fonts-label-large"
171
173
  ),
@@ -181,19 +183,19 @@ const m = {
181
183
  `absolute ${p ? "top-[calc(50%-12px)]" : "top-1/2"} -translate-y-1/2 flex items-center justify-center z-10`,
182
184
  c[f].icon,
183
185
  m[a].icon,
184
- r === "password" && !n ? "cursor-pointer" : "pointer-events-none",
186
+ (r === "password" || z) && !n ? "cursor-pointer" : "pointer-events-none",
185
187
  d === "right" ? "right-3" : "left-3"
186
188
  ),
187
- onClick: r === "password" && !n ? A : void 0,
188
- onMouseDown: (Z) => r === "password" && !n && Z.preventDefault(),
189
+ onClick: n ? void 0 : r === "password" ? G : z,
190
+ onMouseDown: (_) => r === "password" && !n && _.preventDefault(),
189
191
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
190
- n && r !== "password" ? /* @__PURE__ */ t.jsx(F, { variant: "sync", size: "small", className: "size-5" }) : s,
191
- r === "password" && (w ? /* @__PURE__ */ t.jsx(re, { size: 24, className: "" }) : /* @__PURE__ */ t.jsx(oe, { size: 24, className: "" }))
192
+ n && r !== "password" ? /* @__PURE__ */ t.jsx(ee, { variant: "sync", size: "small", className: "size-5" }) : s,
193
+ r === "password" && (w ? /* @__PURE__ */ t.jsx(oe, { size: 24, className: "" }) : /* @__PURE__ */ t.jsx(se, { size: 24, className: "" }))
192
194
  ] })
193
195
  }
194
196
  ),
195
197
  N && /* @__PURE__ */ t.jsx(
196
- "button",
198
+ le,
197
199
  {
198
200
  type: "button",
199
201
  className: e(
@@ -204,17 +206,19 @@ const m = {
204
206
  ),
205
207
  disabled: u,
206
208
  onClick: N,
207
- children: /* @__PURE__ */ t.jsx(se, { size: 20, className: "" })
209
+ variant: "text",
210
+ color: "secondary",
211
+ icon: /* @__PURE__ */ t.jsx(ae, { size: 20, className: "" })
208
212
  }
209
213
  ),
210
- p && /* @__PURE__ */ t.jsx("div", { className: "min-h-6", children: (v || G) && /* @__PURE__ */ t.jsx(te, { className: "absolute ", variant: a, children: b || g }) })
214
+ p && /* @__PURE__ */ t.jsx("div", { className: "min-h-6", children: (H || J) && /* @__PURE__ */ t.jsx(re, { className: "absolute ", variant: a, children: b || g }) })
211
215
  ]
212
216
  }
213
217
  );
214
218
  }
215
219
  );
216
- H.displayName = "Input";
217
- const me = _(H);
220
+ $.displayName = "Input";
221
+ const be = q($);
218
222
  export {
219
- me as default
223
+ be as default
220
224
  };
@@ -0,0 +1,6 @@
1
+ export * from './exports/PyrionLayout'
2
+ export {}
3
+ import PrometeoDesignSystem from './exports/PyrionLayout'
4
+ export default PrometeoDesignSystem
5
+ export * from './exports/PyrionLayout'
6
+ export {}