prometeo-design-system 4.2.4 → 4.3.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,59 +1,67 @@
1
- import { j as e } from "./jsx-runtime-GkKLlHH4.js";
2
- import w from "react";
3
- import { toast as p } from "sonner";
4
- import { c as s } from "./cn-B6yFEsav.js";
5
- import { Info as m } from "./Icons/Info.es.js";
6
- import { Error as u } from "./Icons/Error.es.js";
7
- import { Cancel as f } from "./Icons/Cancel.es.js";
8
- import { CheckCircle as b } from "./Icons/CheckCircle.es.js";
9
- import h from "./Button.es.js";
10
- import { Close as C } from "./Icons/Close.es.js";
11
- const x = {
1
+ import { j as t } from "./jsx-runtime-GkKLlHH4.js";
2
+ import { c as l } from "./cn-B6yFEsav.js";
3
+ import P, { useRef as b, useEffect as I } from "react";
4
+ import { toast as h } from "sonner";
5
+ import { Info as w } from "./Icons/Info.es.js";
6
+ import { Error as v } from "./Icons/Error.es.js";
7
+ import { Cancel as y } from "./Icons/Cancel.es.js";
8
+ import { CheckCircle as j } from "./Icons/CheckCircle.es.js";
9
+ import C from "./Button.es.js";
10
+ import { Close as E } from "./Icons/Close.es.js";
11
+ const p = {
12
12
  dark: {
13
13
  success: {
14
14
  container: "border-b-[2px] border-success-default-default",
15
15
  iconClass: "text-success-medium-default",
16
- icon: b
16
+ icon: j,
17
+ loading: "bg-success-default-default"
17
18
  },
18
19
  error: {
19
20
  container: "border-b-[2px] border-error-default-default",
20
21
  iconClass: "text-error-medium-default",
21
- icon: f
22
+ icon: y,
23
+ loading: "bg-error-default-default"
22
24
  },
23
25
  warning: {
24
26
  container: "border-b-[2px] border-warning-default-default",
25
27
  iconClass: "text-warning-medium-default",
26
- icon: u
28
+ icon: v,
29
+ loading: "bg-warning-default-default"
27
30
  },
28
31
  info: {
29
32
  container: " border-b-[2px] border-primary-default-default",
30
33
  iconClass: "text-primary-default-default",
31
- icon: m
34
+ icon: w,
35
+ loading: "bg-primary-default-default"
32
36
  }
33
37
  },
34
38
  light: {
35
39
  success: {
36
40
  container: "",
37
41
  iconClass: "text-success-default-pressed",
38
- icon: b
42
+ icon: j,
43
+ loading: "bg-success-default-pressed"
39
44
  },
40
45
  error: {
41
46
  container: "",
42
47
  iconClass: "text-error-medium-pressed",
43
- icon: f
48
+ icon: y,
49
+ loading: "bg-error-medium-pressed"
44
50
  },
45
51
  warning: {
46
52
  container: "",
47
53
  iconClass: "text-warning-medium-pressed",
48
- icon: u
54
+ icon: v,
55
+ loading: "bg-warning-medium-pressed"
49
56
  },
50
57
  info: {
51
58
  container: "",
52
59
  iconClass: "text-primary-default-pressed",
53
- icon: m
60
+ icon: w,
61
+ loading: "bg-primary-default-pressed"
54
62
  }
55
63
  }
56
- }, l = {
64
+ }, x = {
57
65
  dark: {
58
66
  container: "bg-neutral-default-default",
59
67
  title: "text-neutral-strong-default",
@@ -66,85 +74,121 @@ const x = {
66
74
  description: "text-neutral-medium-focused",
67
75
  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"
68
76
  }
69
- }, v = (c) => {
70
- const { title: r, description: i, button: a, id: n, icon: d, variant: o = "info", colorMode: t = "dark", showClose: g = !1 } = c;
71
- return /* @__PURE__ */ e.jsxs(
77
+ }, T = (d) => {
78
+ const { title: r, description: n, button: a, id: i, icon: s, variant: o = "info", colorMode: e = "dark", showClose: m = !1, loading: c = !1, loadingTimeout: g = 2500, finishLoader: u = !1 } = d;
79
+ return /* @__PURE__ */ t.jsxs(
72
80
  "div",
73
81
  {
74
82
  style: {
75
- boxShadow: l[t].shadow
83
+ boxShadow: x[e].shadow
76
84
  },
77
- className: s(
85
+ className: l(
78
86
  "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",
79
- "w-[345px] max-w-[345px] min-w-[345px] h-[68px] max-h-[68px]",
80
- l[t].container,
81
- x[t][o].container
87
+ "w-[345px] max-w-[345px] min-w-[345px] h-[68px] max-h-[68px] relative",
88
+ x[e].container,
89
+ p[e][o].container,
90
+ c && "border-b-0"
82
91
  ),
83
92
  children: [
84
- /* @__PURE__ */ e.jsxs(
93
+ /* @__PURE__ */ t.jsxs(
85
94
  "div",
86
95
  {
87
96
  className: "flex items-center justify-start gap-2 max-h-[38px] h-[38px] overflow-hidden flex-1 ",
88
97
  children: [
89
- /* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: w.createElement(d || x[t][o].icon, { size: 24, className: x[t][o].iconClass }) }),
90
- /* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex flex-col gap-1", children: [
91
- /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", l[t].title), children: r }),
92
- i && /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", l[t].description), children: i })
98
+ /* @__PURE__ */ t.jsx("div", { className: "f", style: { color: "inherit" }, children: P.createElement(s || p[e][o].icon, { size: 24, className: p[e][o].iconClass }) }),
99
+ /* @__PURE__ */ t.jsxs("div", { className: "flex-1 flex flex-col gap-1", children: [
100
+ /* @__PURE__ */ t.jsx("p", { className: l("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", x[e].title), children: r }),
101
+ n && /* @__PURE__ */ t.jsx("p", { className: l("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", x[e].description), children: n })
93
102
  ] })
94
103
  ]
95
104
  }
96
105
  ),
97
- a?.label && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
98
- h,
106
+ c && /* @__PURE__ */ t.jsx(z, { color: o, timeOut: g, finished: u, colorMode: e }),
107
+ a?.label && /* @__PURE__ */ t.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ t.jsx(
108
+ C,
99
109
  {
100
110
  label: a?.label,
101
111
  onClick: () => {
102
- a?.onClick(), p.dismiss(n);
112
+ a?.onClick(), h.dismiss(i);
103
113
  },
104
114
  size: "small",
105
115
  color: "secondary"
106
116
  }
107
117
  ) }),
108
- g && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
109
- h,
118
+ m && /* @__PURE__ */ t.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ t.jsx(
119
+ C,
110
120
  {
111
121
  onClick: () => {
112
- p.dismiss(n);
122
+ h.dismiss(i);
113
123
  },
114
124
  label: "",
115
125
  size: "small",
116
126
  color: "secondary",
117
- icon: /* @__PURE__ */ e.jsx(C, { className: s(t === "light" ? "text-neutral-medium-focused " : "") }),
127
+ icon: /* @__PURE__ */ t.jsx(E, { className: l(e === "light" ? "text-neutral-medium-focused " : "") }),
118
128
  variant: "text",
119
129
  animate: !1,
120
- className: s(t === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
130
+ className: l(e === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
121
131
  }
122
132
  ) })
123
133
  ]
124
134
  }
125
135
  );
136
+ }, z = ({ className: d, color: r, timeOut: n, finished: a, colorMode: i }) => {
137
+ const s = b(0), o = b(Date.now()), e = b(null);
138
+ I(() => {
139
+ if (a) {
140
+ s.current = 1, e.current && (e.current.style.width = "100%");
141
+ return;
142
+ }
143
+ o.current = Date.now(), s.current = 0;
144
+ const c = setInterval(() => {
145
+ const g = Date.now() - o.current, u = Math.min(g / n, 1), N = u * 0.95, k = Math.sin(u * Math.PI * 2) * 0.15 + 0.05, M = Math.random() < k;
146
+ let f;
147
+ if (M)
148
+ f = s.current;
149
+ else {
150
+ const R = (Math.random() - 0.5) * 0.25;
151
+ f = Math.max(s.current, Math.min(0.95, N + R));
152
+ }
153
+ s.current = f, e.current && (e.current.style.width = `${f * 100}%`), (u >= 1 || a) && clearInterval(c);
154
+ }, 50);
155
+ return () => clearInterval(c);
156
+ }, [n, a]);
157
+ const m = p[i][r].loading;
158
+ return /* @__PURE__ */ t.jsx("div", { className: l(
159
+ "absolute bottom-0 translate-y-0 left-0 w-full h-2 overflow-hidden rounded-b-xl",
160
+ 'after:content-[""] after:w-[calc(100%-0px)] after:absolute after:bottom-0 after:left-1/2 after:bg-neutral-default-default after:h-2 after:-translate-x-1/2 after:-translate-y-[2px] after:rounded-b-full after:overflow-hidden',
161
+ d
162
+ ), children: /* @__PURE__ */ t.jsx(
163
+ "div",
164
+ {
165
+ ref: e,
166
+ className: l("h-full transition-all duration-300 ease-out", m),
167
+ style: { width: "0%" }
168
+ }
169
+ ) });
126
170
  };
127
- function _(c, r) {
128
- const { duration: i = 2500, showClose: a = !1, colorMode: n = "dark", position: d } = r || {};
129
- return p.custom((o) => /* @__PURE__ */ e.jsx(
130
- v,
171
+ function G(d, r) {
172
+ const { duration: n = 2500, showClose: a = !1, colorMode: i = "dark", position: s } = r || {};
173
+ return h.custom((o) => /* @__PURE__ */ t.jsx(
174
+ T,
131
175
  {
132
176
  id: o,
133
177
  variant: r?.variant || "success",
134
- title: c,
178
+ title: d,
135
179
  description: r?.description,
136
180
  icon: r?.icon,
137
181
  button: r?.button,
138
182
  showClose: a,
139
- colorMode: n
183
+ colorMode: i
140
184
  }
141
185
  ), {
142
- duration: i,
143
- position: d,
186
+ duration: n,
187
+ position: s,
144
188
  unstyled: !0
145
189
  });
146
190
  }
147
191
  export {
148
- v as default,
149
- _ as toastpyrion
192
+ T as default,
193
+ G as toastpyrion
150
194
  };
@@ -17,10 +17,11 @@ export interface NotificationCardProps<NotificationMetadata = any> {
17
17
  body: string | React.ReactNode | ((metadata?: NotificationMetadata) => React.ReactNode);
18
18
  date: string | Date;
19
19
  actions?: [NotificationAction<NotificationMetadata>, NotificationAction<NotificationMetadata>] | [NotificationAction<NotificationMetadata>];
20
- isNew?: boolean;
20
+ read?: boolean;
21
21
  className?: string;
22
22
  metadata?: NotificationMetadata;
23
+ onClick?: (metadata?: NotificationMetadata) => void;
23
24
  }
24
- declare const NotificationCard: <NotificationMetadata = unknown>({ user, body, date, actions, isNew, className, metadata }: NotificationCardProps<NotificationMetadata>) => import("react/jsx-runtime").JSX.Element;
25
+ declare const NotificationCard: <NotificationMetadata = unknown>({ user, body, date, actions, read, className, metadata, onClick }: NotificationCardProps<NotificationMetadata>) => import("react/jsx-runtime").JSX.Element;
25
26
  export default NotificationCard;
26
27
  export type NotificationCardComponent = typeof NotificationCard;
@@ -1,15 +1,18 @@
1
1
  import { NotificationCardProps } from '../NotificationCard/NotificationCard';
2
+ import { ScrollableControlsHandler } from '../Scrollable/Scrollable';
2
3
  interface PLNotificationsDrawerProps<NotificationMetadata> {
3
4
  onCloseClick?: VoidFunction;
4
5
  onMarkAllAsRead?: () => void;
5
6
  notificationsListControls?: React.RefObject<NotificationsListControlsHandler<NotificationMetadata> | null>;
7
+ scrollableControls?: React.RefObject<ScrollableControlsHandler | null>;
6
8
  }
7
9
  export interface NotificationsListControlsHandler<NotificationMetadata> {
8
- addNewNotification: (notification: NotificationCardProps<NotificationMetadata> | NotificationCardProps<NotificationMetadata>[]) => void;
10
+ addNewNotification: (notification: NotificationCardProps<NotificationMetadata> | NotificationCardProps<NotificationMetadata>[], position?: 'top' | 'bottom') => void;
9
11
  subscribeToUpdates: (callback: (notifications: NotificationCardProps<NotificationMetadata>[], count: number) => void) => () => void;
10
12
  removeNotification: (id: string | string[]) => void;
11
13
  removeAllNotifications: () => void;
12
14
  setNotifications: (notifications: NotificationCardProps<NotificationMetadata>[]) => void;
15
+ setLoading: (loading: boolean) => void;
13
16
  }
14
- declare const PLNotificationsList: <NotificationMetadata = unknown>({ onCloseClick, onMarkAllAsRead, notificationsListControls }: PLNotificationsDrawerProps<NotificationMetadata>) => import("react/jsx-runtime").JSX.Element;
17
+ declare const PLNotificationsList: <NotificationMetadata = unknown>({ onCloseClick, onMarkAllAsRead, notificationsListControls, scrollableControls }: PLNotificationsDrawerProps<NotificationMetadata>) => import("react/jsx-runtime").JSX.Element;
15
18
  export default PLNotificationsList;
@@ -1,12 +1,14 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { PLSidebarContentHandle } from './PLSidebarContent';
3
3
  import { NotificationsListControlsHandler } from './PLNotificationsList';
4
- declare const _DrawerSidebarWrapper: <TNotificationMetadata = unknown>({ options, helpSection, sidebarContentRef, initialSectionRef, notificationsListControls, }: {
4
+ import { ScrollableControlsHandler } from '../Scrollable/Scrollable';
5
+ declare const _DrawerSidebarWrapper: <TNotificationMetadata = unknown>({ options, helpSection, sidebarContentRef, initialSectionRef, notificationsListControls, scrollableControls, }: {
5
6
  options?: any;
6
7
  helpSection?: ReactNode | (() => ReactNode);
7
8
  sidebarContentRef: React.RefObject<PLSidebarContentHandle | null>;
8
9
  initialSectionRef: React.RefObject<"notifications" | "help">;
9
10
  notificationsListControls?: React.RefObject<NotificationsListControlsHandler<TNotificationMetadata> | null>;
11
+ scrollableControls?: React.RefObject<ScrollableControlsHandler | null>;
10
12
  }) => import("react/jsx-runtime").JSX.Element;
11
13
  declare const DrawerSidebarWrapper: typeof _DrawerSidebarWrapper;
12
14
  export default DrawerSidebarWrapper;
@@ -1,6 +1,7 @@
1
1
  import { ReactElement, ReactNode, ForwardedRef } from 'react';
2
2
  import { PyrionLayoutOptions } from './PyrionLayout';
3
3
  import { NotificationsListControlsHandler } from './PLNotificationsList';
4
+ import { ScrollableControlsHandler } from '../Scrollable/Scrollable';
4
5
  export type PLSidebarContentHandle = {
5
6
  setActiveSection: (section: 'notifications' | 'help') => void;
6
7
  };
@@ -10,6 +11,7 @@ export type PLSidebarContentProps<TNotificationMetadata = unknown> = {
10
11
  helpSection?: ReactNode | (() => ReactNode);
11
12
  initialSection?: 'notifications' | 'help';
12
13
  notificationsListControls?: React.RefObject<NotificationsListControlsHandler<TNotificationMetadata> | null>;
14
+ scrollableControls?: React.RefObject<ScrollableControlsHandler | null>;
13
15
  };
14
16
  declare const PLSidebarContent: <TNotificationMetadata = unknown>(props: PLSidebarContentProps<TNotificationMetadata> & {
15
17
  ref?: ForwardedRef<PLSidebarContentHandle>;
@@ -6,6 +6,7 @@ import { TicketCardHandlerProps } from '../TicketCard';
6
6
  import { NotificationsListControlsHandler } from './PLNotificationsList';
7
7
  import { PLSidebarContentHandle } from './PLSidebarContent';
8
8
  import { AuthSession, PyrionNavigationControls, PyrionLayoutOptions, PyrionLayoutProps } from './PyrionLayout';
9
+ import { ScrollableControlsHandler } from '../Scrollable/Scrollable';
9
10
  export type TLayoutBaseProps<TAppMetadata = unknown, TNotificationMetadata = unknown> = {
10
11
  links?: PyrionLayoutLinkItemProps[];
11
12
  handleNavigation: (path: string) => void;
@@ -29,6 +30,7 @@ export type TLayoutBaseProps<TAppMetadata = unknown, TNotificationMetadata = unk
29
30
  initialSectionRef: React.RefObject<'notifications' | 'help'>;
30
31
  navigationControlsRef: React.RefObject<PyrionNavigationControls<TNotificationMetadata>>;
31
32
  notificationsListControls?: React.RefObject<NotificationsListControlsHandler<TNotificationMetadata> | null>;
33
+ scrollableControls?: React.RefObject<ScrollableControlsHandler | null>;
32
34
  outletRef: React.RefObject<HTMLDivElement | null>;
33
35
  onProfileClick?: (collapsed: boolean) => void;
34
36
  };
@@ -3,6 +3,7 @@ import { PyrionLayoutActionItemProps } from '../NavigationDrawer/NavigationDrawe
3
3
  import { PyrionLayoutLinkItemProps } from '../NavigationDrawer/NavigationDrawerLinkItem';
4
4
  import { NavigationDrawerSidebarProps } from '../NavigationDrawer/NavigationDrawerSidebar';
5
5
  import { NotificationCardProps } from '../NotificationCard/NotificationCard';
6
+ import { ScrollTargetData, ScrollTargetConfig } from '../Scrollable/Scrollable';
6
7
  import { AllOptionAccessor } from '../Shared/types';
7
8
  import { TabSwitchElement } from '../TabSwitch/TabSwitch';
8
9
  import { subImageUrlAccessor } from './PLSystemSessions';
@@ -135,11 +136,13 @@ export type PyrionNavigationControls<TNotificationMetadata = unknown> = {
135
136
  openNotifications?: () => void;
136
137
  showErrorModal?: (node: (ReactNode | (() => ReactNode)), disableDrawer: boolean, hideCloseButton?: boolean) => void;
137
138
  closeErrorModal?: () => void;
138
- addNewNotification?: (notification: NotificationCardProps<TNotificationMetadata> | NotificationCardProps<TNotificationMetadata>[]) => void;
139
+ addNewNotification?: (notification: NotificationCardProps<TNotificationMetadata> | NotificationCardProps<TNotificationMetadata>[], position?: 'top' | 'bottom') => void;
139
140
  subscribeToNotificationsUpdates?: (callback: (notifications: NotificationCardProps<TNotificationMetadata>[], count: number) => void) => () => void;
140
141
  setNotifications?: (notifications: NotificationCardProps<TNotificationMetadata>[]) => void;
141
142
  removeAllNotifications?: () => void;
142
143
  removeNotification?: (id: string | string[]) => void;
144
+ setNotificationsLoading?: (loading: boolean) => void;
145
+ subscribeToNotificationsScroll?: (callback: (data: ScrollTargetData) => void, config?: ScrollTargetConfig) => () => void;
143
146
  };
144
147
  export declare const usePyrionLayout: <TNotificationMetadata = unknown>() => PyrionNavigationControls<TNotificationMetadata>;
145
148
  declare const PyrionLayout: <TAppMetadata = unknown, TNotificationMetadata = unknown>({ children, helpSection, state, links: navlinks, onLinkClick, onNavigate, onLogoutClick, actions, activeActionId, onActionClick, tabsProps, currentSystemId, onSessionClick, onSystemLogoClick, onProfileClick, ...props }: PyrionLayoutProps<TAppMetadata, TNotificationMetadata>) => import("react/jsx-runtime").JSX.Element;
@@ -17,6 +17,33 @@ type ScrollbarProps = {
17
17
  hide?: boolean;
18
18
  size?: "small" | 'medium';
19
19
  };
20
+ export interface ScrollTargetData {
21
+ percentage: number;
22
+ direction: 'up' | 'down' | 'left' | 'right';
23
+ scrollTop: number;
24
+ scrollLeft: number;
25
+ scrollHeight: number;
26
+ scrollWidth: number;
27
+ clientHeight: number;
28
+ clientWidth: number;
29
+ }
30
+ export interface ScrollTargetConfig {
31
+ target: number;
32
+ direction?: 'x' | 'y' | 'both';
33
+ trip?: 'forth' | 'back' | 'round-trip';
34
+ }
35
+ export interface ScrollableControlsHandler {
36
+ subscribeToScrollTarget: (callback: (data: ScrollTargetData) => void, config?: ScrollTargetConfig) => () => void;
37
+ }
38
+ type ScrollTopButtonTarget = string;
39
+ type ScrollTopButtonProps = {
40
+ target?: ScrollTopButtonTarget;
41
+ icon?: React.ComponentType<{
42
+ size?: number;
43
+ className?: string;
44
+ }>;
45
+ className?: string;
46
+ };
20
47
  export interface ScrollableProps {
21
48
  debugMode?: boolean;
22
49
  className?: string;
@@ -27,6 +54,8 @@ export interface ScrollableProps {
27
54
  disableMouseScroll?: boolean;
28
55
  defaultBehavior?: 'scroll-on-click' | 'scroll-on-hover' | 'none';
29
56
  persistScroll?: boolean | string;
57
+ controls?: React.RefObject<ScrollableControlsHandler | null>;
58
+ scrollTopButton?: ScrollTopButtonProps;
30
59
  }
31
60
  declare const Scrollable: (props: ScrollableProps) => import("react/jsx-runtime").JSX.Element;
32
61
  export default Scrollable;
@@ -30,3 +30,22 @@ declare namespace TabLinks {
30
30
  }
31
31
  declare const _default: import('react').MemoExoticComponent<typeof TabLinks>;
32
32
  export default _default;
33
+ interface TabLinkItemProps {
34
+ id: string | number;
35
+ title: string;
36
+ iconPosition?: "left" | "right" | "top" | "bottom";
37
+ onClick: () => void;
38
+ disabled?: boolean;
39
+ className?: string;
40
+ isActive?: boolean;
41
+ activeClassName?: string;
42
+ icon?: IconComponent | React.ReactNode | (() => React.ReactNode);
43
+ animated?: boolean;
44
+ indicatorClassName?: string;
45
+ onIconHover?: () => void;
46
+ onIconClick?: () => void;
47
+ iconTooltipTitle?: string;
48
+ iconTooltipProps?: PlainTooltipProps;
49
+ iconSize?: number;
50
+ }
51
+ export declare const TabLinkItem: ({ id, title, icon, iconPosition, onClick, disabled, className, isActive, activeClassName, animated, onIconHover, onIconClick, iconTooltipTitle, iconTooltipProps, iconSize, indicatorClassName }: TabLinkItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,10 @@
1
- import { ColorMode } from '../Shared/types';
2
1
  import { IconComponent } from '../../Icons/types';
2
+ import { ColorMode } from '../Shared/types';
3
3
  type ToastElementsProps = {
4
4
  container: string;
5
5
  iconClass: string;
6
6
  icon: IconComponent;
7
+ loading: string;
7
8
  };
8
9
  type ToastVarians = 'success' | 'error' | 'warning' | 'info';
9
10
  type ToastVariantClassnames = {
@@ -30,7 +31,18 @@ export interface PyrionToastProps {
30
31
  colorMode?: ColorMode;
31
32
  showClose?: boolean;
32
33
  position?: ToastPosition;
34
+ loading?: boolean;
35
+ loadingTimeout?: number;
36
+ finishLoader?: boolean;
33
37
  }
34
38
  declare const PyrionToast: (props: PyrionToastProps) => import("react/jsx-runtime").JSX.Element;
35
39
  export default PyrionToast;
36
40
  export declare function toastpyrion(title: string, options?: Omit<PyrionToastProps, 'id'>): string | number;
41
+ export declare const toastPyrionPromise: (promise: Promise<any>, options?: {
42
+ loading?: Omit<PyrionToastProps, "id">;
43
+ success?: Omit<PyrionToastProps, "id">;
44
+ error?: Omit<PyrionToastProps, "id">;
45
+ colorMode?: ColorMode;
46
+ position?: ToastPosition;
47
+ timeOut?: number;
48
+ }) => Promise<any>;
@@ -2,5 +2,6 @@ interface UseLabelBackgroundResult<T extends HTMLElement> {
2
2
  ref: React.RefObject<T | null>;
3
3
  }
4
4
  export declare const getActualBackgroundColor: (element: HTMLElement) => string;
5
+ export declare const rgbHueAlterate: (rgb: string, variation: number, opacity?: number) => string;
5
6
  export declare function useLabelBackground<T extends HTMLElement = HTMLElement>(): UseLabelBackgroundResult<T>;
6
7
  export {};
@@ -20,8 +20,8 @@ import { default as fe } from "./Switch.es.js";
20
20
  import { D as ne } from "./DatePicker-QuBgR5DQ.js";
21
21
  import { RecurrentDatePicker as me } from "./RecurrentDatePicker.es.js";
22
22
  import { RecurrentDatePickerRRule as ie } from "./RecurrentDatePickerRRule.es.js";
23
- import { Table as ce, TableBody as be, TableCaption as De, TableCell as ve, TableFooter as ge, TableHead as ke, TableHeader as Te, TableRow as he } from "./Table.es.js";
24
- import { default as Ce } from "./TabLinks.es.js";
23
+ import { Table as ce, TableBody as be, TableCaption as De, TableCell as ve, TableFooter as Te, TableHead as ge, TableHeader as ke, TableRow as he } from "./Table.es.js";
24
+ import { T as Ce } from "./TabLinks-DxqprStp.js";
25
25
  import { default as Ee } from "./TextArea.es.js";
26
26
  import { default as Re } from "./Tooltip.es.js";
27
27
  import { default as Se } from "./Skeleton.es.js";
@@ -73,7 +73,7 @@ function v({
73
73
  hasErrors: a.fileRejections.length > 0
74
74
  };
75
75
  }
76
- const g = (e, t = !0) => {
76
+ const T = (e, t = !0) => {
77
77
  const o = p(null);
78
78
  return m(() => {
79
79
  if (!t) return;
@@ -132,16 +132,16 @@ export {
132
132
  be as TableBody,
133
133
  De as TableCaption,
134
134
  ve as TableCell,
135
- ge as TableFooter,
136
- ke as TableHead,
137
- Te as TableHeader,
135
+ Te as TableFooter,
136
+ ge as TableHead,
137
+ ke as TableHeader,
138
138
  he as TableRow,
139
139
  Ee as TextArea,
140
140
  Oe as Toast,
141
141
  Ge as ToastProvider,
142
142
  Re as Tooltip,
143
143
  Ae as toastpyrion,
144
- g as useClickOutside,
144
+ T as useClickOutside,
145
145
  I as useDialogControl,
146
146
  j as useDrawerDesktop,
147
147
  H as useDrawerMobile,