@ogcio/design-system-react 1.21.0 → 1.22.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 (41) hide show
  1. package/dist/alert/alert.d.ts +3 -90
  2. package/dist/alert/alert.js +43 -74
  3. package/dist/alert/types.d.ts +11 -0
  4. package/dist/alert/types.js +1 -0
  5. package/dist/alert/variants.d.ts +76 -0
  6. package/dist/alert/variants.js +36 -0
  7. package/dist/autocomplete/autocomplete.js +105 -97
  8. package/dist/checkbox/types.d.ts +0 -1
  9. package/dist/data-table/data-table-header.d.ts +0 -1
  10. package/dist/data-table/data-table-header.js +43 -60
  11. package/dist/data-table/tanstack/tanstack-helpers.d.ts +1 -0
  12. package/dist/data-table/tanstack/tanstack-helpers.js +31 -30
  13. package/dist/drawer/drawer.d.ts +2 -3
  14. package/dist/drawer/drawer.js +59 -36
  15. package/dist/forms/form-field/form-field.d.ts +2 -3
  16. package/dist/forms/form-field/form-field.js +69 -60
  17. package/dist/forms/form-field/types.d.ts +3 -0
  18. package/dist/index.d.ts +3 -1
  19. package/dist/index.js +236 -234
  20. package/dist/input-checkbox/input-checkbox.d.ts +1 -1
  21. package/dist/input-checkbox/input-checkbox.js +37 -39
  22. package/dist/input-checkbox/types.d.ts +0 -1
  23. package/dist/input-checkbox/types.js +2 -3
  24. package/dist/input-radio/input-radio.js +35 -37
  25. package/dist/link/link.d.ts +2 -2
  26. package/dist/link/link.js +18 -19
  27. package/dist/modal/modal.js +158 -178
  28. package/dist/select/select-next.js +151 -144
  29. package/dist/styles.css +1 -1
  30. package/dist/tabs/tab-item.d.ts +3 -2
  31. package/dist/tabs/tab-item.js +89 -66
  32. package/dist/tabs/tab-list.js +73 -57
  33. package/dist/tabs/tabs.d.ts +1 -1
  34. package/dist/tabs/tabs.js +12 -12
  35. package/dist/tabs/types.d.ts +9 -2
  36. package/dist/toast/ds-toast.d.ts +1 -1
  37. package/dist/toast/ds-toast.js +29 -40
  38. package/dist/toast/toast.d.ts +1 -1
  39. package/dist/toast/toast.js +65 -57
  40. package/dist/toast/types.d.ts +3 -2
  41. package/package.json +4 -4
@@ -2,10 +2,11 @@ import { FC } from 'react';
2
2
  import { TabItemProps } from './types.js';
3
3
  export declare const TabItem: FC<TabItemProps>;
4
4
  export declare const InternalTabItem: import('react').ForwardRefExoticComponent<TabItemProps & {
5
- onTabKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
5
+ onTabKeyDown?: (event: import('./types.js').TabKeyboardEvent) => void;
6
6
  index: number;
7
7
  appearance?: "default" | "dark";
8
8
  size?: "md" | "sm";
9
9
  stretch?: boolean;
10
10
  labelAlignment?: "center" | "end" | "start";
11
- } & import('react').RefAttributes<HTMLButtonElement>>;
11
+ className?: string;
12
+ } & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
@@ -1,12 +1,13 @@
1
1
  "use client";
2
2
  import "@ogcio/design-system-react/browser-check";
3
- import { jsx as i, jsxs as I, Fragment as N } from "react/jsx-runtime";
4
- import { forwardRef as v, useRef as d, useEffect as R } from "react";
5
- import { c as j } from "../index-CB-zPpNk.js";
6
- import { cn as z } from "../cn.js";
7
- import { Button as B } from "../primitives/button.js";
8
- import { slugify as T } from "../utilities.js";
9
- const V = j({
3
+ import { jsxs as j, Fragment as v, jsx as a } from "react/jsx-runtime";
4
+ import { forwardRef as k } from "react";
5
+ import { c as z } from "../index-CB-zPpNk.js";
6
+ import { cn as s } from "../cn.js";
7
+ import { Icon as A } from "../icon/icon.js";
8
+ import { Button as V } from "../primitives/button.js";
9
+ import { slugify as $ } from "../utilities.js";
10
+ const B = z({
10
11
  base: "gi-tab-item",
11
12
  variants: {
12
13
  size: {
@@ -20,71 +21,93 @@ const V = j({
20
21
  true: "gi-flex-1"
21
22
  },
22
23
  labelAlignment: {
23
- start: "gi-text-start",
24
- center: "gi-text-center",
25
- end: "gi-text-end"
24
+ start: "gi-justify-start",
25
+ center: "gi-justify-center",
26
+ end: "gi-justify-end"
26
27
  }
27
28
  },
28
29
  defaultVariants: {
29
30
  size: "md"
30
31
  }
31
- }), $ = () => null, w = v(
32
- ({
33
- value: g,
34
- href: s,
35
- checked: e = !1,
36
- children: n,
37
- onTabClick: o,
38
- onTabKeyDown: l,
39
- size: b = "md",
40
- appearance: m = "default",
41
- labelAlignment: p = "center",
42
- stretch: x,
43
- ...y
44
- }, r) => {
45
- const c = T(g), a = d(null), u = d(!1);
46
- return R(() => {
47
- var t;
48
- e && !u.current && ((t = a.current) == null || t.click());
49
- }, [e]), /* @__PURE__ */ i(
50
- B,
32
+ }), F = () => null, R = k((b, n) => {
33
+ const {
34
+ value: h,
35
+ href: c,
36
+ checked: r = !1,
37
+ children: x,
38
+ onTabClick: t,
39
+ onTabKeyDown: i,
40
+ size: y = "md",
41
+ appearance: l = "default",
42
+ labelAlignment: I = "center",
43
+ stretch: N,
44
+ icon: m,
45
+ className: o,
46
+ ...d
47
+ } = b, g = $(h), f = {
48
+ role: "tab",
49
+ "aria-selected": r,
50
+ "aria-controls": `tab-panel-${g}`,
51
+ id: `tab-${g}`,
52
+ tabIndex: r ? 0 : -1
53
+ }, u = B({ size: y, checked: r, stretch: N, labelAlignment: I }), p = /* @__PURE__ */ j(v, { children: [
54
+ m && /* @__PURE__ */ a(A, { icon: m }),
55
+ x,
56
+ /* @__PURE__ */ a(
57
+ "div",
51
58
  {
52
- id: `tab-${c}`,
53
- ref: (t) => {
54
- a.current = t, typeof r == "function" ? r(t) : r && (r.current = t);
55
- },
56
- ...y,
57
- role: "tab",
58
- "aria-roledescription": "tab",
59
- "aria-selected": e ? "true" : "false",
60
- "aria-controls": `tab-panel-${c}`,
61
- className: V({ size: b, checked: e, stretch: x, labelAlignment: p }),
62
- onClick: (t) => {
63
- var f;
64
- u.current = !0, o && o(t), (f = a.current) == null || f.blur();
65
- },
66
- onKeyDown: (t) => {
67
- l && l(t);
68
- },
69
- children: s ? /* @__PURE__ */ i("a", { href: s, className: "gi-decoration-xs", children: n }) : /* @__PURE__ */ I(N, { children: [
70
- n,
71
- /* @__PURE__ */ i(
72
- "div",
73
- {
74
- className: z("gi-tab-item-border", {
75
- "gi-bg-color-text-system-neutral-interactive-default": e && m === "dark",
76
- "gi-bg-color-border-tone-primary-accent-selected": e && m === "default"
77
- })
78
- }
79
- )
80
- ] })
59
+ className: s("gi-tab-item-border", {
60
+ "gi-bg-color-text-system-neutral-interactive-default": r && l === "dark",
61
+ "gi-bg-color-border-tone-primary-accent-selected": r && l === "default"
62
+ }),
63
+ "aria-hidden": "true"
81
64
  }
82
- );
83
- }
84
- );
85
- w.displayName = "InternalTabItem";
86
- $.displayName = "TabItem";
65
+ )
66
+ ] });
67
+ return c ? /* @__PURE__ */ a(
68
+ "a",
69
+ {
70
+ href: c,
71
+ ...f,
72
+ ...d,
73
+ className: s(
74
+ u,
75
+ "gi-inline-flex gi-items-center gi-gap-2 gi-decoration-xs",
76
+ o
77
+ ),
78
+ onClick: (e) => {
79
+ t == null || t(e);
80
+ },
81
+ onKeyDown: (e) => {
82
+ i == null || i(e);
83
+ },
84
+ ref: n,
85
+ children: p
86
+ }
87
+ ) : /* @__PURE__ */ a(
88
+ V,
89
+ {
90
+ ...f,
91
+ ...d,
92
+ ref: n,
93
+ className: s(
94
+ u,
95
+ "gi-inline-flex gi-items-center gi-gap-2",
96
+ o
97
+ ),
98
+ onClick: (e) => {
99
+ t == null || t(e);
100
+ },
101
+ onKeyDown: (e) => {
102
+ i == null || i(e);
103
+ },
104
+ children: p
105
+ }
106
+ );
107
+ });
108
+ R.displayName = "InternalTabItem";
109
+ F.displayName = "TabItem";
87
110
  export {
88
- w as InternalTabItem,
89
- $ as TabItem
111
+ R as InternalTabItem,
112
+ F as TabItem
90
113
  };
@@ -1,94 +1,110 @@
1
1
  "use client";
2
2
  import "@ogcio/design-system-react/browser-check";
3
- import { jsx as g } from "react/jsx-runtime";
4
- import { useState as S, Children as s, useEffect as $, isValidElement as A } from "react";
5
- import { cn as q } from "../cn.js";
6
- import { InternalTabItem as D } from "./tab-item.js";
3
+ import { jsx as A } from "react/jsx-runtime";
4
+ import { useState as $, Children as b, useEffect as g, isValidElement as m } from "react";
5
+ import { cn as D } from "../cn.js";
6
+ import { InternalTabItem as K } from "./tab-item.js";
7
7
  const z = ({
8
- children: c,
9
- tabName: b,
8
+ children: l,
9
+ tabName: p,
10
10
  appearance: C,
11
- size: m,
11
+ size: x,
12
12
  ariaLabelledBy: I,
13
- stretch: p,
14
- padding: f = !0,
15
- labelAlignment: w
13
+ stretch: y,
14
+ padding: T = !0,
15
+ labelAlignment: S
16
16
  }) => {
17
- const [d, l] = S(null), y = s.count(c);
18
- $(() => {
17
+ const [u, f] = $(null), h = b.count(l);
18
+ g(() => {
19
19
  let t = !1, r = 0;
20
- s.forEach(c, (e, o) => {
21
- A(e) && "checked" in e.props && e.props.checked === !0 && (r = o, t = !0);
22
- }), l(t ? r : 0);
20
+ b.forEach(l, (e, n) => {
21
+ m(e) && "checked" in e.props && e.props.checked === !0 && (r = n, t = !0);
22
+ }), f(t ? r : 0);
23
23
  }, []);
24
- const k = (t, r) => (e) => {
25
- l(t);
26
- const T = [
27
- ...document.querySelector(`#${b}`).querySelectorAll("[role=tabpanel]")
28
- ];
29
- for (const h of T)
30
- h.style.display = "none";
31
- const n = e.currentTarget.getAttribute("aria-controls");
32
- if (!n)
24
+ const w = () => {
25
+ const t = document.querySelector(`#${p}`);
26
+ return t || null;
27
+ }, E = (t) => {
28
+ const r = w();
29
+ if (!r)
30
+ return;
31
+ const e = r.querySelectorAll('[role="tabpanel"]');
32
+ for (const i of e)
33
+ i.style.display = "none", i.setAttribute("aria-hidden", "true");
34
+ const d = [
35
+ ...r.querySelectorAll('[role="tab"]')
36
+ ].find((i) => {
37
+ const o = i.dataset.index ?? i.getAttribute("index");
38
+ if (o !== null)
39
+ return Number(o) === t;
40
+ });
41
+ if (!d)
33
42
  return;
34
- const u = document.querySelector(
35
- `#${n}`
36
- );
37
- u.style.display = "block", r && r(e);
38
- }, x = (t) => {
43
+ const a = d.getAttribute("aria-controls");
44
+ if (!a)
45
+ return;
46
+ const s = r.querySelector(`#${a}`);
47
+ s && (s.style.display = "block", s.setAttribute("aria-hidden", "false"));
48
+ };
49
+ g(() => {
50
+ E(u ?? 0);
51
+ }, [u]);
52
+ const k = (t, r) => (e) => {
53
+ f(t), r && r(e);
54
+ }, P = (t) => {
39
55
  let r = 0;
40
56
  if (t.key === "ArrowLeft" ? r = -1 : t.key === "ArrowRight" && (r = 1), r === 0)
41
57
  return;
42
- let o = (d ?? 0) + r;
43
- o < 0 && (o = 0), o >= y && (o = y - 1);
44
- const n = s.toArray(c)[o];
45
- if (!n)
58
+ let n = (u ?? 0) + r;
59
+ n < 0 && (n = 0), n >= h && (n = h - 1);
60
+ const a = b.toArray(l)[n];
61
+ if (!a)
46
62
  return;
47
- l(o);
48
- const u = {
63
+ f(n);
64
+ const s = {
49
65
  currentTarget: {
50
- getAttribute: (a) => {
51
- var i;
52
- return a === "aria-controls" ? `tab-panel-${(i = n == null ? void 0 : n.props) == null ? void 0 : i.value}` : null;
66
+ getAttribute: (o) => {
67
+ var c;
68
+ return o === "aria-controls" ? `tab-panel-${(c = a == null ? void 0 : a.props) == null ? void 0 : c.value}` : null;
53
69
  }
54
70
  },
55
71
  bubbles: !0,
56
72
  isTrusted: !0
57
73
  };
58
- k(o, () => {
59
- var a, i;
60
- return r === -1 ? (i = (a = n.props) == null ? void 0 : a.onTabClick) == null ? void 0 : i.call(a, t) : t;
61
- })(u), t.stopPropagation(), t.preventDefault();
62
- }, E = s.map(c, (t, r) => {
74
+ k(n, () => {
75
+ var o, c;
76
+ return r === -1 ? (c = (o = a.props) == null ? void 0 : o.onTabClick) == null ? void 0 : c.call(o, t) : t;
77
+ })(s), t.stopPropagation(), t.preventDefault();
78
+ }, q = b.map(l, (t, r) => {
63
79
  var e;
64
- return A(t) ? /* @__PURE__ */ g(
65
- D,
80
+ return m(t) ? /* @__PURE__ */ A(
81
+ K,
66
82
  {
67
83
  ...t.props,
68
84
  appearance: C,
69
- stretch: p,
70
- labelAlignment: w,
71
- size: m,
85
+ stretch: y,
86
+ labelAlignment: S,
87
+ size: x,
72
88
  index: r,
73
- checked: d === r,
74
- onTabKeyDown: x,
89
+ checked: u === r,
90
+ onTabKeyDown: P,
75
91
  onTabClick: k(r, (e = t == null ? void 0 : t.props) == null ? void 0 : e.onTabClick)
76
92
  }
77
93
  ) : null;
78
94
  });
79
- return /* @__PURE__ */ g(
95
+ return /* @__PURE__ */ A(
80
96
  "div",
81
97
  {
82
98
  role: "tablist",
83
99
  "aria-orientation": "horizontal",
84
- className: q("gi-tab-list", {
85
- "gi-tab-list-stretch": p,
86
- "gi-gap-4": f,
87
- "gi-gap-0": !f
100
+ className: D("gi-tab-list", {
101
+ "gi-tab-list-stretch": y,
102
+ "gi-gap-4": T,
103
+ "gi-gap-0": !T
88
104
  }),
89
105
  "aria-labelledby": I,
90
- id: `${b}-list`,
91
- children: E
106
+ id: `${p}-list`,
107
+ children: q
92
108
  }
93
109
  );
94
110
  };
@@ -1,2 +1,2 @@
1
1
  import { TabsProps } from './types.js';
2
- export declare function Tabs({ appearance, size, stretch, padding, labelAlignment, id, ariaLabelledBy, dataTestid, children, }: TabsProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function Tabs({ appearance, size, stretch, padding, labelAlignment, id, ariaLabelledBy, children, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
package/dist/tabs/tabs.js CHANGED
@@ -2,26 +2,26 @@ import { jsx as c } from "react/jsx-runtime";
2
2
  import { Children as f, isValidElement as u, cloneElement as p } from "react";
3
3
  import { generateRandomId as h } from "../utilities.js";
4
4
  function x({
5
- appearance: e = "default",
5
+ appearance: t = "default",
6
6
  size: a = "md",
7
- stretch: i = !1,
8
- padding: n = !0,
7
+ stretch: n = !1,
8
+ padding: i = !0,
9
9
  labelAlignment: m = "center",
10
- id: t = h(),
10
+ id: e = h(),
11
11
  ariaLabelledBy: o,
12
- dataTestid: d,
13
- children: s
12
+ children: d,
13
+ ...l
14
14
  }) {
15
- const l = f.map(s, (r) => u(r) ? p(r, {
16
- tabName: t,
17
- appearance: e,
15
+ const s = f.map(d, (r) => u(r) ? p(r, {
16
+ tabName: e,
17
+ appearance: t,
18
18
  size: a,
19
19
  ariaLabelledBy: o,
20
- stretch: i,
21
- padding: n,
20
+ stretch: n,
21
+ padding: i,
22
22
  labelAlignment: m
23
23
  }) : r);
24
- return /* @__PURE__ */ c("div", { className: "gi-tabs", id: t, "data-testid": d, children: l });
24
+ return /* @__PURE__ */ c("div", { className: "gi-tabs", id: e, ...l, children: s });
25
25
  }
26
26
  export {
27
27
  x as Tabs
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { IconId } from '../icon/icon.js';
2
3
  type TabAppearanceType = 'default' | 'dark';
3
4
  type TabLabelAlignmentType = 'start' | 'end' | 'center';
4
5
  export type TabsProps = {
@@ -21,6 +22,10 @@ export type TabsProps = {
21
22
  /** TabList, TabItem, and TabPanel components */
22
23
  children: React.ReactNode;
23
24
  };
25
+ export type TabMouseClickHandler = React.MouseEventHandler<HTMLButtonElement> | React.MouseEventHandler<HTMLAnchorElement>;
26
+ export type TabKeyboardClickHandler = React.KeyboardEventHandler<HTMLButtonElement> | React.KeyboardEventHandler<HTMLAnchorElement>;
27
+ export type TabMouseClickEvent = React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>;
28
+ export type TabKeyboardEvent = React.KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>;
24
29
  export type TabItemProps = {
25
30
  /** Optional href to render the tab as a link */
26
31
  href?: string;
@@ -35,7 +40,8 @@ export type TabItemProps = {
35
40
  /** Tab label text */
36
41
  children: string;
37
42
  /** Optional click event handler for the tab */
38
- onTabClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
43
+ onTabClick?: (event: TabMouseClickEvent) => void;
44
+ icon?: IconId;
39
45
  };
40
46
  export type TabPanelProps = {
41
47
  /** The value used to associate the panel with its corresponding tab */
@@ -54,11 +60,12 @@ export type TabListProps = {
54
60
  labelAlignment?: TabLabelAlignmentType;
55
61
  };
56
62
  export type InternalTabItemProps = TabItemProps & {
57
- onTabKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
63
+ onTabKeyDown?: (event: TabKeyboardEvent) => void;
58
64
  index: number;
59
65
  appearance?: TabAppearanceType;
60
66
  size?: 'md' | 'sm';
61
67
  stretch?: boolean;
62
68
  labelAlignment?: TabLabelAlignmentType;
69
+ className?: string;
63
70
  };
64
71
  export {};
@@ -78,5 +78,5 @@ declare const toastVariants: import('tailwind-variants').TVReturnType<{
78
78
  dismiss: string;
79
79
  innerContainer: string;
80
80
  }, undefined, TVConfig<V, EV>, unknown, unknown, undefined>>;
81
- declare function Toast({ title, description, action, variant, dismissible, onClose, dataTestid, slotAction, }: ToastProps): import("react/jsx-runtime").JSX.Element;
81
+ declare function Toast({ title, description, action, variant, showIcon, dismissible, onClose, slotAction, }: ToastProps): import("react/jsx-runtime").JSX.Element;
82
82
  export { Toast, toastVariants };
@@ -63,53 +63,42 @@ function B({
63
63
  description: s,
64
64
  action: a,
65
65
  variant: r = "info",
66
+ showIcon: l = !0,
66
67
  dismissible: o,
67
- onClose: l,
68
- dataTestid: c,
68
+ onClose: c,
69
69
  slotAction: t
70
70
  }) {
71
- const { base: m, heading: b, container: g, innerContainer: d, dismiss: f, baseDismissible: h } = N({
71
+ const { base: m, heading: g, container: b, innerContainer: d, dismiss: f, baseDismissible: h } = N({
72
72
  variant: r
73
73
  });
74
- return /* @__PURE__ */ n(
75
- "div",
76
- {
77
- className: (o ? h : m)(),
78
- role: "alert",
79
- "aria-live": "assertive",
80
- "aria-atomic": "true",
81
- "aria-label": e,
82
- "data-testid": c,
83
- children: [
84
- /* @__PURE__ */ i(
85
- p,
74
+ return /* @__PURE__ */ n("div", { className: (o ? h : m)(), children: [
75
+ l ? /* @__PURE__ */ i(
76
+ p,
77
+ {
78
+ icon: C({ variant: r }),
79
+ className: "gi-toast-icon",
80
+ "data-variant": r
81
+ }
82
+ ) : null,
83
+ /* @__PURE__ */ n("div", { className: b(), children: [
84
+ /* @__PURE__ */ n("div", { className: d(), children: [
85
+ /* @__PURE__ */ i("p", { className: g(), children: e }),
86
+ o && /* @__PURE__ */ i("div", { className: f(), children: /* @__PURE__ */ i(
87
+ v,
86
88
  {
87
- icon: C({ variant: r }),
88
- className: "gi-toast-icon",
89
- "data-variant": r
89
+ onClick: c,
90
+ size: "small",
91
+ appearance: "dark",
92
+ variant: "flat",
93
+ icon: { icon: "close" },
94
+ "aria-label": "Close toast"
90
95
  }
91
- ),
92
- /* @__PURE__ */ n("div", { className: g(), children: [
93
- /* @__PURE__ */ n("div", { className: d(), children: [
94
- /* @__PURE__ */ i("p", { className: b(), children: e }),
95
- o && /* @__PURE__ */ i("div", { className: f(), children: /* @__PURE__ */ i(
96
- v,
97
- {
98
- onClick: l,
99
- size: "small",
100
- appearance: "dark",
101
- variant: "flat",
102
- icon: { icon: "close" },
103
- "aria-label": "Close toast"
104
- }
105
- ) })
106
- ] }),
107
- /* @__PURE__ */ i(k, { ariaLabel: s, children: s }),
108
- (a || t) && /* @__PURE__ */ i("div", { className: "gi-toast-action", children: /* @__PURE__ */ i(w, { href: a == null ? void 0 : a.href, noColor: !0, size: "md", asChild: !!t, children: t || (a == null ? void 0 : a.label) }) })
109
- ] })
110
- ]
111
- }
112
- );
96
+ ) })
97
+ ] }),
98
+ /* @__PURE__ */ i(k, { ariaLabel: s, children: s }),
99
+ (a || t) && /* @__PURE__ */ i("div", { className: "gi-toast-action", children: /* @__PURE__ */ i(w, { href: a == null ? void 0 : a.href, noColor: !0, size: "md", asChild: !!t, children: t || (a == null ? void 0 : a.label) }) })
100
+ ] })
101
+ ] });
113
102
  }
114
103
  export {
115
104
  B as Toast,
@@ -3,4 +3,4 @@ export declare const ToastProvider: () => import("react/jsx-runtime").JSX.Elemen
3
3
  export declare const toaster: {
4
4
  create: ({ position, ...props }: ToastProps) => void;
5
5
  };
6
- export declare const Toast: ({ variant, title, description, action, dismissible, duration, animation, slotAction, }: ToastProps) => import("react/jsx-runtime").JSX.Element | null;
6
+ export declare const Toast: ({ variant, title, description, action, dismissible, duration, animation, showIcon, slotAction, ...props }: ToastProps) => import("react/jsx-runtime").JSX.Element | null;