@smudi/designsystem 1.5.3 → 2.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 (98) hide show
  1. package/@smudi/components/button/button.d.ts +19 -1
  2. package/@smudi/components/button/button.d.ts.map +1 -1
  3. package/@smudi/components/button/button.js +16 -15
  4. package/@smudi/components/card/card-icon-block.d.ts +18 -0
  5. package/@smudi/components/card/card-icon-block.d.ts.map +1 -1
  6. package/@smudi/components/card/card.d.ts +13 -0
  7. package/@smudi/components/card/card.d.ts.map +1 -1
  8. package/@smudi/components/dialog/dialog.d.ts +12 -0
  9. package/@smudi/components/dialog/dialog.d.ts.map +1 -1
  10. package/@smudi/components/dropdown/dropdown-button.d.ts +15 -6
  11. package/@smudi/components/dropdown/dropdown-button.d.ts.map +1 -1
  12. package/@smudi/components/dropdown/dropdown-item.d.ts +11 -1
  13. package/@smudi/components/dropdown/dropdown-item.d.ts.map +1 -1
  14. package/@smudi/components/dropdown/dropdown-list.d.ts +11 -1
  15. package/@smudi/components/dropdown/dropdown-list.d.ts.map +1 -1
  16. package/@smudi/components/dropdown/dropdown.d.ts +16 -1
  17. package/@smudi/components/dropdown/dropdown.d.ts.map +1 -1
  18. package/@smudi/components/file-upload/file-upload.d.ts +6 -0
  19. package/@smudi/components/file-upload/file-upload.d.ts.map +1 -0
  20. package/@smudi/components/file-upload/file-upload.js +7 -0
  21. package/@smudi/components/header/header-content.d.ts +11 -0
  22. package/@smudi/components/header/header-content.d.ts.map +1 -1
  23. package/@smudi/components/header/header-divider.d.ts +14 -0
  24. package/@smudi/components/header/header-divider.d.ts.map +1 -1
  25. package/@smudi/components/header/header-menu/header-menu-button.d.ts +9 -0
  26. package/@smudi/components/header/header-menu/header-menu-button.d.ts.map +1 -1
  27. package/@smudi/components/header/header-menu/header-menu-content.d.ts +13 -0
  28. package/@smudi/components/header/header-menu/header-menu-content.d.ts.map +1 -1
  29. package/@smudi/components/header/header-menu/header-menu-group.d.ts +10 -0
  30. package/@smudi/components/header/header-menu/header-menu-group.d.ts.map +1 -1
  31. package/@smudi/components/header/header-menu/header-menu-item.d.ts +16 -0
  32. package/@smudi/components/header/header-menu/header-menu-item.d.ts.map +1 -1
  33. package/@smudi/components/header/header-menu/header-menu.d.ts +15 -0
  34. package/@smudi/components/header/header-menu/header-menu.d.ts.map +1 -1
  35. package/@smudi/components/header/header-search/header-search-button.d.ts +17 -0
  36. package/@smudi/components/header/header-search/header-search-button.d.ts.map +1 -1
  37. package/@smudi/components/header/header-search/header-search.d.ts +18 -0
  38. package/@smudi/components/header/header-search/header-search.d.ts.map +1 -1
  39. package/@smudi/components/header/header.d.ts +65 -23
  40. package/@smudi/components/header/header.d.ts.map +1 -1
  41. package/@smudi/components/layout-components/cluster-layouts/cluster-layout.module.css.js +1 -1
  42. package/@smudi/components/layout-components/split-view/index.d.ts +8 -0
  43. package/@smudi/components/layout-components/split-view/index.d.ts.map +1 -0
  44. package/@smudi/components/layout-components/split-view/index.js +10 -0
  45. package/@smudi/components/layout-components/split-view/split-view-divider.d.ts +8 -0
  46. package/@smudi/components/layout-components/split-view/split-view-divider.d.ts.map +1 -0
  47. package/@smudi/components/layout-components/split-view/split-view-divider.js +44 -0
  48. package/@smudi/components/layout-components/split-view/split-view-divider.module.css.js +9 -0
  49. package/@smudi/components/layout-components/split-view/split-view-panel.d.ts +23 -0
  50. package/@smudi/components/layout-components/split-view/split-view-panel.d.ts.map +1 -0
  51. package/@smudi/components/layout-components/split-view/split-view-panel.js +8 -0
  52. package/@smudi/components/layout-components/split-view/split-view.d.ts +14 -0
  53. package/@smudi/components/layout-components/split-view/split-view.d.ts.map +1 -0
  54. package/@smudi/components/layout-components/split-view/split-view.js +67 -0
  55. package/@smudi/components/layout-components/split-view/split-view.module.css.js +8 -0
  56. package/@smudi/components/layout-components/split-view/use-resize.d.ts +34 -0
  57. package/@smudi/components/layout-components/split-view/use-resize.d.ts.map +1 -0
  58. package/@smudi/components/layout-components/split-view/use-resize.js +67 -0
  59. package/@smudi/components/select/select.d.ts +7 -0
  60. package/@smudi/components/select/select.d.ts.map +1 -1
  61. package/@smudi/components/select/select.js +13 -6
  62. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts +4 -0
  63. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion-list.d.ts.map +1 -1
  64. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts +17 -0
  65. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.d.ts.map +1 -1
  66. package/@smudi/components/suggestion/smudi-suggestion/smudi-suggestion.js +43 -82
  67. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts +10 -0
  68. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.d.ts.map +1 -1
  69. package/@smudi/components/suggestion/suggestion-no-chips/suggestion-no-chips.js +44 -33
  70. package/@smudi/components/suggestion/suggestion.d.ts +1 -0
  71. package/@smudi/components/suggestion/suggestion.d.ts.map +1 -1
  72. package/@smudi/components/table/table.d.ts +25 -3
  73. package/@smudi/components/table/table.d.ts.map +1 -1
  74. package/@smudi/components/table/table.js +21 -3
  75. package/@smudi/components/toast/toast.d.ts +45 -0
  76. package/@smudi/components/toast/toast.d.ts.map +1 -1
  77. package/@smudi/components/toast/toast.js +144 -141
  78. package/@smudi/react.js +94 -94
  79. package/@smudi/smudi/icons/metadata.d.ts +9 -9
  80. package/@smudi/smudi/react.d.ts +3 -2
  81. package/@smudi/smudi/react.d.ts.map +1 -1
  82. package/@smudi/styles.css +1 -1
  83. package/@smudi/types/modular-scale.type.d.ts +1 -1
  84. package/README.md +33 -0
  85. package/package.json +11 -10
  86. package/@smudi/components/stepper/index.js +0 -17
  87. package/@smudi/components/stepper/step/step-list.js +0 -40
  88. package/@smudi/components/stepper/step/step-list.module.css.js +0 -7
  89. package/@smudi/components/stepper/step/step.js +0 -86
  90. package/@smudi/components/stepper/step/step.module.css.js +0 -10
  91. package/@smudi/components/stepper/step-content/step-content-list.js +0 -25
  92. package/@smudi/components/stepper/step-content/step-content-list.module.css.js +0 -7
  93. package/@smudi/components/stepper/step-content/step-content.js +0 -28
  94. package/@smudi/components/stepper/step-content/step-content.module.css.js +0 -7
  95. package/@smudi/components/stepper/stepper-context.js +0 -23
  96. package/@smudi/components/stepper/stepper.js +0 -62
  97. package/@smudi/components/stepper/stepper.module.css.js +0 -7
  98. package/@smudi/components/stepper/use-stepper-state.js +0 -17
@@ -1,54 +1,51 @@
1
1
  "use client";
2
- import { jsxs as F, jsx as T } from "react/jsx-runtime";
3
- import { XMarkIcon as I } from "@navikt/aksel-icons";
4
- import { useRef as C, useState as j, useEffect as $ } from "react";
5
- import { Alert as G } from "../alert/alert.js";
6
- import { Button as V } from "../button/button.js";
7
- const X = 5e3, H = 300, K = 280, L = "info", Z = "md", M = "Lukk toast", q = "[smudi] Ingen ToastProvider er montert. Monter ToastProvider i app-roten.";
2
+ import { jsxs as O, jsx as T } from "react/jsx-runtime";
3
+ import { XMarkIcon as B } from "@navikt/aksel-icons";
4
+ import { useId as z, useState as j, useRef as x, useEffect as I } from "react";
5
+ import { Alert as $ } from "../alert/alert.js";
6
+ import { Button as G } from "../button/button.js";
7
+ const V = 5e3, X = 300, H = 280, D = "info", K = "md", b = "Lukk toast", Z = "[smudi] Ingen ToastProvider er montert. Monter ToastProvider i app-roten.";
8
8
  let g = null;
9
9
  const h = [], p = /* @__PURE__ */ new Map();
10
- let b = 0, O = 0, E = !1, S = null;
11
- function J() {
12
- return b += 1, `smudi-toast-${b}`;
13
- }
14
- function Q() {
15
- return O += 1, `smudi-toast-provider-${O}`;
10
+ let M = 0, E = !1, C = null;
11
+ function q() {
12
+ return M += 1, `smudi-toast-${M}`;
16
13
  }
17
14
  function N(t) {
18
- return t?.id ?? J();
15
+ return t?.id ?? q();
19
16
  }
20
- function _() {
17
+ function F() {
21
18
  return h[h.length - 1] ?? null;
22
19
  }
23
- function W(t) {
24
- return t ? h.find((n) => n.id === t)?.api ?? null : null;
20
+ function L(t) {
21
+ return t ? h.find((r) => r.id === t)?.api ?? null : null;
25
22
  }
26
- function U() {
27
- const t = W(S);
28
- return t || (g ?? _()?.api ?? null);
23
+ function _() {
24
+ const t = L(C);
25
+ return t || (g ?? F()?.api ?? null);
29
26
  }
30
- function Y(t) {
31
- p.forEach((e, n) => {
32
- e === t && p.delete(n);
27
+ function J(t) {
28
+ p.forEach((e, r) => {
29
+ e === t && p.delete(r);
33
30
  });
34
31
  }
35
- function tt(t) {
36
- S = t, g = W(t) ?? g;
32
+ function Q(t) {
33
+ C = t, g = L(t) ?? g;
37
34
  }
38
- function et(t, e = {}) {
39
- const n = N(e), a = U();
40
- return a ? (p.set(n, a), a.show(t, { ...e, id: n })) : (typeof console < "u" && !E && (console.warn(q), E = !0), {
41
- id: n,
42
- close: () => g?.dismiss(n)
35
+ function Y(t, e = {}) {
36
+ const r = N(e), a = _();
37
+ return a ? (p.set(r, a), a.show(t, { ...e, id: r })) : (typeof console < "u" && !E && (console.warn(Z), E = !0), {
38
+ id: r,
39
+ close: () => g?.dismiss(r)
43
40
  });
44
41
  }
45
- function rt(t, e) {
46
- function n(o, u = {}) {
42
+ function tt(t, e) {
43
+ function r(o, u = {}) {
47
44
  const c = N(u);
48
45
  return t(o, { ...u, id: c });
49
46
  }
50
- const a = (o) => (u, c = {}) => n(u, { ...c, color: o });
51
- return Object.assign(n, {
47
+ const a = (o) => (u, c = {}) => r(u, { ...c, color: o });
48
+ return Object.assign(r, {
52
49
  dismiss(o) {
53
50
  e(o);
54
51
  },
@@ -58,21 +55,21 @@ function rt(t, e) {
58
55
  warning: a("warning"),
59
56
  neutral: a("neutral"),
60
57
  async promise(o, u) {
61
- const { loading: c, success: v, error: l, ...d } = u, A = n(c, {
58
+ const { loading: c, success: v, error: l, ...d } = u, A = r(c, {
62
59
  ...d,
63
60
  busy: !0,
64
- color: d.color ?? L
61
+ color: d.color ?? D
65
62
  });
66
63
  try {
67
64
  const f = await o();
68
- return n(v, {
65
+ return r(v, {
69
66
  ...d,
70
67
  busy: !1,
71
68
  color: "success",
72
69
  id: A.id
73
70
  }), f;
74
71
  } catch (f) {
75
- throw n(l, {
72
+ throw r(l, {
76
73
  ...d,
77
74
  busy: !1,
78
75
  color: "danger",
@@ -82,160 +79,166 @@ function rt(t, e) {
82
79
  }
83
80
  });
84
81
  }
85
- const wt = rt(
86
- (t, e) => et(t, e),
82
+ const vt = tt(
83
+ (t, e) => Y(t, e),
87
84
  (t) => {
88
- const e = p.get(t) ?? U();
85
+ const e = p.get(t) ?? _();
89
86
  p.delete(t), e?.dismiss(t);
90
87
  }
91
88
  );
92
- function nt(t, e, n) {
89
+ function et(t, e, r) {
93
90
  return {
94
- id: n,
91
+ id: r,
95
92
  className: e.className,
96
93
  content: t,
97
- color: e.color ?? L,
98
- size: e["data-size"] ?? Z,
94
+ color: e.color ?? D,
95
+ size: e["data-size"] ?? K,
99
96
  width: e.width,
100
97
  minWidth: e.minWidth,
101
98
  maxWidth: e.maxWidth,
102
- duration: e.duration ?? X,
99
+ duration: e.duration ?? V,
103
100
  busy: e.busy ?? !1,
104
101
  closing: !1,
105
102
  shifting: !1
106
103
  };
107
104
  }
108
- function D(t, e) {
109
- const n = e.get(t);
110
- n && (clearTimeout(n), e.delete(t));
105
+ function R(t, e) {
106
+ const r = e.get(t);
107
+ r && (clearTimeout(r), e.delete(t));
111
108
  }
112
- function it(t, e) {
109
+ function nt(t, e) {
113
110
  return t.map(
114
- (n) => n.id === e ? { ...n, closing: !0 } : n
111
+ (r) => r.id === e ? { ...r, closing: !0 } : r
115
112
  );
116
113
  }
117
- function ot(t, e) {
118
- return t.filter((n) => n.id !== e);
114
+ function rt(t, e) {
115
+ return t.filter((r) => r.id !== e);
119
116
  }
120
- function st(t, e) {
117
+ function it(t, e) {
121
118
  return [
122
119
  e,
123
- ...t.map((n) => n.closing ? n : { ...n, shifting: !0 })
120
+ ...t.map((r) => r.closing ? r : { ...r, shifting: !0 })
124
121
  ];
125
122
  }
126
- function at(t, e) {
127
- return t.map((n) => n.id === e.id ? e : n);
123
+ function ot(t, e) {
124
+ return t.map((r) => r.id === e.id ? e : r);
128
125
  }
129
- function ut(t) {
126
+ function st(t) {
130
127
  return t.map(
131
128
  (e) => e.shifting ? { ...e, shifting: !1 } : e
132
129
  );
133
130
  }
134
- function ct(t, e) {
135
- h.push({ id: t, api: e }), g = e, S = t, E = !1;
131
+ function at(t, e) {
132
+ h.push({ id: t, api: e }), g = e, C = t, E = !1;
136
133
  }
137
- function lt(t, e) {
138
- const n = h.findIndex(
134
+ function ut(t, e) {
135
+ const r = h.findIndex(
139
136
  (o) => o.id === t
140
137
  );
141
- n !== -1 && h.splice(n, 1), Y(e);
142
- const a = _();
143
- g = a?.api ?? null, S === t && (S = a?.id ?? null);
138
+ r !== -1 && h.splice(r, 1), J(e);
139
+ const a = F();
140
+ g = a?.api ?? null, C === t && (C = a?.id ?? null);
144
141
  }
145
- function dt(t) {
142
+ function ct(t) {
146
143
  t.forEach((e) => clearTimeout(e)), t.clear();
147
144
  }
148
- function ft(t) {
145
+ function lt(t) {
149
146
  t.forEach((e) => {
150
147
  e.timeout && clearTimeout(e.timeout);
151
148
  }), t.clear();
152
149
  }
153
- function mt(t, e) {
154
- return /* @__PURE__ */ F("div", { className: "smudi-toast-content-with-close", children: [
155
- /* @__PURE__ */ T("div", { children: t.content }),
156
- !t.busy && /* @__PURE__ */ T(
157
- V,
158
- {
159
- "aria-label": M,
160
- className: "smudi-toast-close-button",
161
- "data-size": "sm",
162
- icon: !0,
163
- onClick: () => e(t.id),
164
- title: M,
165
- variant: "tertiary",
166
- children: /* @__PURE__ */ T(I, { "aria-hidden": !0 })
167
- }
168
- )
169
- ] });
150
+ function dt(t, e) {
151
+ return /* @__PURE__ */ O(
152
+ "div",
153
+ {
154
+ className: t.busy ? void 0 : "smudi-toast-content-with-close",
155
+ children: [
156
+ /* @__PURE__ */ T("div", { children: t.content }),
157
+ !t.busy && /* @__PURE__ */ T(
158
+ G,
159
+ {
160
+ "aria-label": b,
161
+ className: "smudi-toast-close-button",
162
+ "data-size": "sm",
163
+ icon: !0,
164
+ onClick: () => e(t.id),
165
+ title: b,
166
+ variant: "tertiary",
167
+ children: /* @__PURE__ */ T(B, { "aria-hidden": !0 })
168
+ }
169
+ )
170
+ ]
171
+ }
172
+ );
170
173
  }
171
- function xt({ children: t }) {
172
- const e = C(Q()), [n, a] = j([]), o = C(/* @__PURE__ */ new Map()), u = C(/* @__PURE__ */ new Map()), c = C(null), v = C(null), l = (r) => {
173
- const i = o.current.get(r);
174
- i && (i.timeout && clearTimeout(i.timeout), o.current.delete(r));
175
- }, d = (r, i) => {
176
- l(r);
174
+ function At({ children: t }) {
175
+ const e = `smudi-toast-provider-${z().replace(/:/g, "-")}`, [r, a] = j([]), o = x(/* @__PURE__ */ new Map()), u = x(/* @__PURE__ */ new Map()), c = x(null), v = x(null), l = (n) => {
176
+ const i = o.current.get(n);
177
+ i && (i.timeout && clearTimeout(i.timeout), o.current.delete(n));
178
+ }, d = (n, i) => {
179
+ l(n);
177
180
  const s = {
178
181
  remaining: i,
179
182
  startedAt: Date.now(),
180
183
  timeout: null
181
184
  };
182
185
  s.timeout = setTimeout(() => {
183
- m(r);
184
- }, i), o.current.set(r, s);
185
- }, A = (r) => {
186
- const i = o.current.get(r);
186
+ m(n);
187
+ }, i), o.current.set(n, s);
188
+ }, A = (n) => {
189
+ const i = o.current.get(n);
187
190
  !i || !i.timeout || (clearTimeout(i.timeout), i.remaining = Math.max(
188
191
  0,
189
192
  i.remaining - (Date.now() - i.startedAt)
190
- ), i.timeout = null, o.current.set(r, i));
191
- }, f = (r) => {
192
- const i = o.current.get(r);
193
+ ), i.timeout = null, o.current.set(n, i));
194
+ }, f = (n) => {
195
+ const i = o.current.get(n);
193
196
  if (!(!i || i.timeout)) {
194
197
  if (i.remaining <= 0) {
195
- m(r);
198
+ m(n);
196
199
  return;
197
200
  }
198
201
  i.startedAt = Date.now(), i.timeout = setTimeout(() => {
199
- m(r);
200
- }, i.remaining), o.current.set(r, i);
202
+ m(n);
203
+ }, i.remaining), o.current.set(n, i);
201
204
  }
202
- }, k = (r, i) => {
205
+ }, W = (n, i) => {
203
206
  const s = i.relatedTarget;
204
- s && i.currentTarget.contains(s) || f(r);
205
- }, m = (r) => {
206
- l(r), D(r, u.current), p.delete(r), a((s) => it(s, r));
207
+ s && i.currentTarget.contains(s) || f(n);
208
+ }, m = (n) => {
209
+ l(n), R(n, u.current), p.delete(n), a((s) => nt(s, n));
207
210
  const i = setTimeout(() => {
208
- a((s) => ot(s, r)), u.current.delete(r);
209
- }, H);
210
- u.current.set(r, i);
211
- }, B = () => {
211
+ a((s) => rt(s, n)), u.current.delete(n);
212
+ }, X);
213
+ u.current.set(n, i);
214
+ }, U = () => {
212
215
  c.current && clearTimeout(c.current), c.current = setTimeout(() => {
213
- a((r) => ut(r));
214
- }, K);
216
+ a((n) => st(n));
217
+ }, H);
215
218
  };
216
219
  v.current || (v.current = {
217
- show(r, i = {}) {
218
- const s = N(i), x = nt(r, i, s);
219
- return D(s, u.current), a((y) => y.findIndex(
220
- (z) => z.id === s
221
- ) === -1 ? (B(), st(y, x)) : at(y, x)), x.busy ? l(s) : x.duration !== !1 ? d(s, x.duration) : l(s), {
220
+ show(n, i = {}) {
221
+ const s = N(i), w = et(n, i, s);
222
+ return R(s, u.current), a((S) => S.findIndex(
223
+ (k) => k.id === s
224
+ ) === -1 ? (U(), it(S, w)) : ot(S, w)), w.busy ? l(s) : w.duration !== !1 ? d(s, w.duration) : l(s), {
222
225
  id: s,
223
226
  close: () => m(s)
224
227
  };
225
228
  },
226
229
  dismiss: m
227
230
  });
228
- const P = v.current, w = e.current, R = () => {
229
- tt(w);
231
+ const y = v.current, P = () => {
232
+ Q(e);
230
233
  };
231
- return $(() => (ct(w, P), () => {
232
- lt(w, P), c.current && clearTimeout(c.current), ft(o.current), dt(u.current);
233
- }), [w, P]), /* @__PURE__ */ F(
234
+ return I(() => (at(e, y), () => {
235
+ ut(e, y), c.current && clearTimeout(c.current), lt(o.current), ct(u.current);
236
+ }), [e, y]), /* @__PURE__ */ O(
234
237
  "div",
235
238
  {
236
- "data-smudi-toast-provider-id": w,
237
- onFocusCapture: R,
238
- onMouseDownCapture: R,
239
+ "data-smudi-toast-provider-id": e,
240
+ onFocusCapture: P,
241
+ onMouseDownCapture: P,
239
242
  style: { display: "contents" },
240
243
  children: [
241
244
  t,
@@ -246,33 +249,33 @@ function xt({ children: t }) {
246
249
  "aria-live": "polite",
247
250
  className: "smudi-toast-viewport",
248
251
  role: "status",
249
- children: n.map((r) => /* @__PURE__ */ T(
252
+ children: r.map((n) => /* @__PURE__ */ T(
250
253
  "div",
251
254
  {
252
255
  className: "smudi-toast-item",
253
- "data-shifting": r.shifting ? "true" : void 0,
254
- onBlurCapture: (i) => k(r.id, i),
255
- onFocusCapture: () => A(r.id),
256
- onMouseEnter: () => A(r.id),
257
- onMouseLeave: () => f(r.id),
256
+ "data-shifting": n.shifting ? "true" : void 0,
257
+ onBlurCapture: (i) => W(n.id, i),
258
+ onFocusCapture: () => A(n.id),
259
+ onMouseEnter: () => A(n.id),
260
+ onMouseLeave: () => f(n.id),
258
261
  children: /* @__PURE__ */ T(
259
- G,
262
+ $,
260
263
  {
261
- "aria-busy": r.busy || void 0,
262
- className: `smudi-toast ${r.className ?? ""}`.trim(),
263
- "data-closing": r.closing ? "true" : void 0,
264
- "data-color": r.color,
265
- "data-size": r.size,
264
+ "aria-busy": n.busy || void 0,
265
+ className: `smudi-toast ${n.className ?? ""}`.trim(),
266
+ "data-closing": n.closing ? "true" : void 0,
267
+ "data-color": n.color,
268
+ "data-size": n.size,
266
269
  style: {
267
- "--smudi-toast-width": r.width,
268
- "--smudi-toast-min-width": r.minWidth,
269
- "--smudi-toast-max-width": r.maxWidth
270
+ "--smudi-toast-width": n.width,
271
+ "--smudi-toast-min-width": n.minWidth,
272
+ "--smudi-toast-max-width": n.maxWidth
270
273
  },
271
- children: mt(r, m)
274
+ children: dt(n, m)
272
275
  }
273
276
  )
274
277
  },
275
- r.id
278
+ n.id
276
279
  ))
277
280
  }
278
281
  )
@@ -281,6 +284,6 @@ function xt({ children: t }) {
281
284
  );
282
285
  }
283
286
  export {
284
- xt as ToastProvider,
285
- wt as toast
287
+ At as ToastProvider,
288
+ vt as toast
286
289
  };