@moondreamsdev/dreamer-ui 1.7.7-test.2 → 1.7.7-test.21

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 (75) hide show
  1. package/README.md +13 -0
  2. package/dist/QuestionMarkCircled-BaSE7iv0.cjs +2 -0
  3. package/dist/QuestionMarkCircled-BaSE7iv0.cjs.map +1 -0
  4. package/dist/{QuestionMarkCircled-BVBF3skB.js → QuestionMarkCircled-CY81euqP.js} +119 -7
  5. package/dist/QuestionMarkCircled-CY81euqP.js.map +1 -0
  6. package/dist/Toast-B-Zu6Kp_.cjs +2 -0
  7. package/dist/Toast-B-Zu6Kp_.cjs.map +1 -0
  8. package/dist/{Toast-C5BwqBkw.js → Toast-BFQrI1bB.js} +129 -100
  9. package/dist/Toast-BFQrI1bB.js.map +1 -0
  10. package/dist/components.cjs.js +1 -1
  11. package/dist/components.cjs.js.map +1 -1
  12. package/dist/components.esm.js +2117 -684
  13. package/dist/components.esm.js.map +1 -1
  14. package/dist/providers.cjs.js +1 -1
  15. package/dist/providers.esm.js +1 -1
  16. package/dist/src/components/accordion/AccordionItem.d.ts +0 -1
  17. package/dist/src/components/carousel/Carousel.d.ts +46 -0
  18. package/dist/src/components/carousel/hooks.d.ts +20 -0
  19. package/dist/src/components/carousel/index.d.ts +2 -0
  20. package/dist/src/components/carousel/useScreenSize.d.ts +15 -0
  21. package/dist/src/components/carousel/variants.d.ts +36 -0
  22. package/dist/src/components/clickable/Clickable.d.ts +0 -1
  23. package/dist/src/components/index.d.ts +9 -0
  24. package/dist/src/components/label/Label.d.ts +2 -1
  25. package/dist/src/components/pagination/Pagination.d.ts +24 -0
  26. package/dist/src/components/pagination/index.d.ts +1 -0
  27. package/dist/src/components/pagination/variants.d.ts +15 -0
  28. package/dist/src/components/panel/Panel.d.ts +36 -0
  29. package/dist/src/components/panel/hooks.d.ts +6 -0
  30. package/dist/src/components/panel/index.d.ts +3 -0
  31. package/dist/src/components/panel/variants.d.ts +12 -0
  32. package/dist/src/components/radiogroup/RadioGroupItem.d.ts +0 -1
  33. package/dist/src/components/scroll-area/ScrollArea.d.ts +20 -0
  34. package/dist/src/components/scroll-area/hooks.d.ts +12 -0
  35. package/dist/src/components/scroll-area/index.d.ts +2 -0
  36. package/dist/src/components/select/Select.d.ts +22 -0
  37. package/dist/src/components/select/hooks.d.ts +35 -0
  38. package/dist/src/components/select/index.d.ts +2 -0
  39. package/dist/src/components/select/variants.d.ts +15 -0
  40. package/dist/src/components/separator/Separator.d.ts +15 -0
  41. package/dist/src/components/separator/index.d.ts +2 -0
  42. package/dist/src/components/separator/variants.d.ts +7 -0
  43. package/dist/src/components/skeleton/Skeleton.d.ts +13 -0
  44. package/dist/src/components/skeleton/index.d.ts +1 -0
  45. package/dist/src/components/skeleton/variants.d.ts +18 -0
  46. package/dist/src/components/slider/Slider.d.ts +33 -0
  47. package/dist/src/components/slider/hooks.d.ts +30 -0
  48. package/dist/src/components/slider/index.d.ts +2 -0
  49. package/dist/src/components/slider/variants.d.ts +49 -0
  50. package/dist/src/components/tabs/Tabs.d.ts +26 -0
  51. package/dist/src/components/tabs/TabsContent.d.ts +10 -0
  52. package/dist/src/components/tabs/TabsContext.d.ts +11 -0
  53. package/dist/src/components/tabs/TabsList.d.ts +7 -0
  54. package/dist/src/components/tabs/TabsTrigger.d.ts +15 -0
  55. package/dist/src/components/tabs/hooks.d.ts +9 -0
  56. package/dist/src/components/tabs/index.d.ts +4 -0
  57. package/dist/src/components/tabs/variants.d.ts +18 -0
  58. package/dist/src/components/tooltip/hooks.d.ts +0 -1
  59. package/dist/src/hooks/useActionModal.d.ts +0 -1
  60. package/dist/src/hooks/useToast.d.ts +0 -1
  61. package/dist/src/symbols/ChevronDoubleLeft.d.ts +2 -0
  62. package/dist/src/symbols/ChevronDoubleRight.d.ts +2 -0
  63. package/dist/src/symbols/ChevronLeft.d.ts +2 -0
  64. package/dist/src/symbols/ChevronRight.d.ts +2 -0
  65. package/dist/src/symbols/index.d.ts +4 -1
  66. package/dist/symbols.cjs.js +1 -1
  67. package/dist/symbols.esm.js +14 -10
  68. package/dist/theme.css +4 -0
  69. package/package.json +3 -3
  70. package/dist/QuestionMarkCircled-BVBF3skB.js.map +0 -1
  71. package/dist/QuestionMarkCircled-D5cHmQp1.cjs +0 -2
  72. package/dist/QuestionMarkCircled-D5cHmQp1.cjs.map +0 -1
  73. package/dist/Toast-C5BwqBkw.js.map +0 -1
  74. package/dist/Toast-FzI16Fnl.cjs +0 -2
  75. package/dist/Toast-FzI16Fnl.cjs.map +0 -1
@@ -1,29 +1,51 @@
1
- import { jsx as r, Fragment as M, jsxs as f } from "react/jsx-runtime";
2
- import q, { createContext as H, useId as K, useState as p, useEffect as b, useRef as P, useCallback as L, useMemo as C } from "react";
3
- import { createPortal as V } from "react-dom";
4
- import { X as D, C as F, E as X, I as Z } from "./X-CIoyLewf.js";
5
- import { join as G } from "./utils.esm.js";
6
- function w(...e) {
1
+ import { jsx as r, Fragment as q, jsxs as b } from "react/jsx-runtime";
2
+ import F, { createContext as c, useId as H, useState as v, useEffect as g, useRef as P, useCallback as L, useMemo as E, useContext as K } from "react";
3
+ import { createPortal as D } from "react-dom";
4
+ import { X as J, C as V, E as X, I as Y } from "./X-CIoyLewf.js";
5
+ import { join as Z } from "./utils.esm.js";
6
+ function N(...e) {
7
7
  return e.filter((l) => typeof l == "string" && l).join(" ").trim() || void 0;
8
8
  }
9
- function J({ size: e = 15, color: l = "currentColor" }) {
10
- return /* @__PURE__ */ r("svg", { width: e, height: e, className: "inline", viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r(
11
- "path",
9
+ function G({ size: e = 15, color: l = "currentColor", className: n = "inline", ...t }) {
10
+ return /* @__PURE__ */ r(
11
+ "svg",
12
12
  {
13
- d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
14
- fill: l,
15
- fillRule: "evenodd",
16
- clipRule: "evenodd"
13
+ ...t,
14
+ width: e,
15
+ height: e,
16
+ className: n,
17
+ viewBox: "0 0 15 15",
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ children: /* @__PURE__ */ r(
20
+ "path",
21
+ {
22
+ d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
23
+ fill: l,
24
+ fillRule: "evenodd",
25
+ clipRule: "evenodd"
26
+ }
27
+ )
17
28
  }
18
- ) });
29
+ );
19
30
  }
20
- function y(...e) {
31
+ function x(...e) {
21
32
  return e.filter((l) => typeof l == "string" && l).join(" ").trim() || void 0;
22
33
  }
23
- H(void 0);
34
+ c(void 0);
35
+ c(null);
36
+ c(null);
37
+ c(null);
38
+ c(null);
39
+ c(null);
40
+ c(null);
41
+ c(null);
42
+ c(null);
43
+ c(null);
44
+ c(null);
45
+ c(null);
24
46
  function Q() {
25
- const [e, l] = p(0);
26
- return b(() => {
47
+ const [e, l] = v(0);
48
+ return g(() => {
27
49
  const n = setInterval(() => {
28
50
  l((t) => (t + 1) % 3);
29
51
  }, 500);
@@ -31,7 +53,7 @@ function Q() {
31
53
  }, []), /* @__PURE__ */ r("div", { className: "absolute inset-0 inline-flex items-center justify-center gap-x-2 align-middle", children: [0, 1, 2].map((n) => /* @__PURE__ */ r(
32
54
  "div",
33
55
  {
34
- className: w(
56
+ className: N(
35
57
  "rounded-full transition-all duration-500 ease-in-out size-[0.35em] bg-current",
36
58
  e === n && "transform -translate-y-1"
37
59
  )
@@ -39,7 +61,7 @@ function Q() {
39
61
  n
40
62
  )) });
41
63
  }
42
- const R = {
64
+ const U = {
43
65
  base: "",
44
66
  primary: "bg-primary text-primary-foreground hover:bg-primary/85 disabled:bg-muted disabled:text-muted-foreground",
45
67
  secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/85 disabled:bg-muted/80 disabled:text-muted-foreground/80",
@@ -47,7 +69,7 @@ const R = {
47
69
  outline: "border border-primary text-primary hover:border-primary-foreground hover:text-primary-foreground disabled:border-muted disabled:text-muted",
48
70
  link: "underline-offset-4 hover:underline disabled:underline disabled:text-muted",
49
71
  destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85 disabled:bg-muted disabled:text-muted-foreground"
50
- }, U = {
72
+ }, W = {
51
73
  stripped: "",
52
74
  fitted: "size-fit",
53
75
  sm: "px-2 py-1 text-sm",
@@ -55,21 +77,21 @@ const R = {
55
77
  lg: "px-6 py-3 text-lg",
56
78
  icon: "p-1 w-fit aspect-square",
57
79
  full: "p-2 w-full"
58
- }, W = {
80
+ }, _ = {
59
81
  none: "rounded-none",
60
82
  sm: "rounded-sm",
61
83
  md: "rounded-md",
62
84
  lg: "rounded-lg",
63
85
  full: "rounded-full"
64
- }, x = {
86
+ }, w = {
65
87
  variant: "primary",
66
88
  size: "md",
67
89
  rounded: "md"
68
90
  };
69
- function Y({
70
- variant: e = x.variant,
91
+ function $({
92
+ variant: e = w.variant,
71
93
  size: l,
72
- rounded: n = x.rounded,
94
+ rounded: n = w.rounded,
73
95
  loading: t,
74
96
  linkTo: i,
75
97
  linkProps: a,
@@ -77,18 +99,18 @@ function Y({
77
99
  className: d,
78
100
  ...s
79
101
  }) {
80
- let c;
81
- e === "link" && !l ? c = "fitted" : c = l || x.size;
82
- const u = w(
102
+ let u;
103
+ e === "link" && !l ? u = "fitted" : u = l || w.size;
104
+ const m = N(
83
105
  "appearance-none focus:outline-none focus:ring not-disabled:hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all",
84
- R[e],
85
- U[c],
86
- W[n],
106
+ U[e],
107
+ W[u],
108
+ _[n],
87
109
  t && "relative pointer-events-none",
88
110
  i && "relative",
89
111
  d
90
112
  );
91
- return /* @__PURE__ */ f(
113
+ return /* @__PURE__ */ b(
92
114
  "button",
93
115
  {
94
116
  ...s,
@@ -98,10 +120,10 @@ function Y({
98
120
  "aria-disabled": s.disabled || t,
99
121
  "aria-busy": t,
100
122
  type: o,
101
- className: u,
123
+ className: m,
102
124
  children: [
103
125
  t && /* @__PURE__ */ r(Q, {}),
104
- /* @__PURE__ */ r("span", { className: w(t && "invisible"), children: s.children }),
126
+ /* @__PURE__ */ r("span", { className: N(t && "invisible"), children: s.children }),
105
127
  i && !s.disabled && /* @__PURE__ */ r(
106
128
  "a",
107
129
  {
@@ -116,14 +138,14 @@ function Y({
116
138
  }
117
139
  );
118
140
  }
119
- function _(e) {
120
- const [l, n] = p(!1), [t, i] = p(!1);
121
- return b(() => {
141
+ function R(e) {
142
+ const [l, n] = v(!1), [t, i] = v(!1);
143
+ return g(() => {
122
144
  e ? (i(!0), setTimeout(() => n(!0), 10)) : (n(!1), setTimeout(() => i(!1), 150));
123
145
  }, [e]), { show: l, shouldRender: t };
124
146
  }
125
- function $(e, l) {
126
- b(() => {
147
+ function ee(e, l) {
148
+ g(() => {
127
149
  const n = (t) => {
128
150
  t.key === "Escape" && e && l();
129
151
  };
@@ -132,7 +154,7 @@ function $(e, l) {
132
154
  };
133
155
  }, [e, l]);
134
156
  }
135
- function ee(e, l) {
157
+ function te(e, l) {
136
158
  const n = P(null), t = L(() => {
137
159
  const i = document.getElementById(e);
138
160
  if (!i) return;
@@ -155,11 +177,11 @@ function ee(e, l) {
155
177
  }
156
178
  i.focus();
157
179
  }, [e]);
158
- b(() => (l && (n.current = document.activeElement, t()), () => {
180
+ g(() => (l && (n.current = document.activeElement, t()), () => {
159
181
  document.body.style.overflow = "auto", n.current instanceof HTMLElement && n.current.focus();
160
182
  }), [l, t]);
161
183
  }
162
- function te({
184
+ function re({
163
185
  id: e,
164
186
  isOpen: l,
165
187
  onClose: n,
@@ -169,45 +191,45 @@ function te({
169
191
  className: o,
170
192
  overlayClassName: d,
171
193
  hideCloseButton: s = !1,
172
- actions: c = [],
173
- disableCloseOnOverlayClick: u = !1,
174
- ariaLabelledBy: m,
175
- ariaDescribedBy: g
194
+ actions: u = [],
195
+ disableCloseOnOverlayClick: m = !1,
196
+ ariaLabelledBy: f,
197
+ ariaDescribedBy: h
176
198
  }) {
177
- const h = K(), N = e || `modal-${h}`, k = e ? `${e}-title` : `modal-title-${h}`, { show: z, shouldRender: v } = _(l);
178
- if (ee(N, v), $(v, n), !v) return null;
179
- const T = () => t ? q.isValidElement(t) ? /* @__PURE__ */ r("div", { className: "mb-4", children: t }) : /* @__PURE__ */ r("h2", { className: "mb-4 text-xl font-semibold", id: k, children: t }) : null, j = () => c.length === 0 ? null : /* @__PURE__ */ r("div", { className: "mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3", children: c.map((A, I) => {
180
- const { label: B, className: O, ...S } = A;
181
- return /* @__PURE__ */ r(Y, { className: O, type: "button", ...S, "data-modal-action": "true", children: B }, I);
199
+ const p = H(), k = e || `modal-${p}`, C = e ? `${e}-title` : `modal-title-${p}`, { show: T, shouldRender: y } = R(l);
200
+ if (te(k, y), ee(y, n), !y) return null;
201
+ const I = () => t ? F.isValidElement(t) ? /* @__PURE__ */ r("div", { className: "mb-4", children: t }) : /* @__PURE__ */ r("h2", { className: "mb-4 text-xl font-semibold", id: C, children: t }) : null, j = () => u.length === 0 ? null : /* @__PURE__ */ r("div", { className: "mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3", children: u.map((A, O) => {
202
+ const { label: B, className: M, ...S } = A;
203
+ return /* @__PURE__ */ r($, { className: M, type: "button", ...S, "data-modal-action": "true", children: B }, O);
182
204
  }) });
183
- return /* @__PURE__ */ r(M, { children: V(
205
+ return /* @__PURE__ */ r(q, { children: D(
184
206
  /* @__PURE__ */ r(
185
207
  "div",
186
208
  {
187
- "aria-labelledby": m ?? t ? k : void 0,
188
- "aria-describedby": g,
209
+ "aria-labelledby": f ?? t ? C : void 0,
210
+ "aria-describedby": h,
189
211
  role: "dialog",
190
212
  "aria-modal": "true",
191
213
  className: "fixed inset-0 z-[100] overflow-y-auto",
192
- children: /* @__PURE__ */ f("div", { className: "flex min-h-screen items-center justify-center p-4", children: [
214
+ children: /* @__PURE__ */ b("div", { className: "flex min-h-screen items-center justify-center p-4", children: [
193
215
  /* @__PURE__ */ r(
194
216
  "div",
195
217
  {
196
- className: y("fixed inset-0 bg-black/20 transition-all", d),
218
+ className: x("fixed inset-0 bg-black/20 transition-all", d),
197
219
  onClick: () => {
198
- u || n();
220
+ m || n();
199
221
  }
200
222
  }
201
223
  ),
202
- a && /* @__PURE__ */ r("div", { className: y("relative w-fit", o), children: i }),
203
- !a && /* @__PURE__ */ f(
224
+ a && /* @__PURE__ */ r("div", { className: x("relative w-fit", o), children: i }),
225
+ !a && /* @__PURE__ */ b(
204
226
  "div",
205
227
  {
206
- id: N,
228
+ id: k,
207
229
  tabIndex: -1,
208
- className: y(
209
- "relative w-full max-w-xl transform rounded-lg shadow-xl transition-all p-6 bg-inherit focus:ring ease-in duration-75",
210
- z ? "opacity-100 scale-100" : "opacity-0 scale-90",
230
+ className: x(
231
+ "relative w-full max-w-xl transform rounded-lg shadow-xl bg-popover transition-all p-6 focus:ring ease-in duration-75",
232
+ T ? "opacity-100 scale-100" : "opacity-0 scale-90",
211
233
  o
212
234
  ),
213
235
  children: [
@@ -218,10 +240,10 @@ function te({
218
240
  onClick: n,
219
241
  "data-modal-close-button": "true",
220
242
  className: "rounded-md p-0.5 top-2.5 right-2.5 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0",
221
- children: /* @__PURE__ */ r(J, { size: 18 })
243
+ children: /* @__PURE__ */ r(G, { size: 18 })
222
244
  }
223
245
  ),
224
- T(),
246
+ I(),
225
247
  i,
226
248
  j()
227
249
  ]
@@ -233,7 +255,7 @@ function te({
233
255
  document.body
234
256
  ) });
235
257
  }
236
- function oe({
258
+ function de({
237
259
  type: e,
238
260
  message: l,
239
261
  cancelText: n,
@@ -244,7 +266,7 @@ function oe({
244
266
  title: d,
245
267
  ...s
246
268
  }) {
247
- const c = C(() => e === "confirm" ? {
269
+ const u = E(() => e === "confirm" ? {
248
270
  confirm: t || "Confirm",
249
271
  cancel: n || "Cancel",
250
272
  defaultTitle: d || "Confirm Action"
@@ -252,42 +274,47 @@ function oe({
252
274
  confirm: t || "OK",
253
275
  cancel: null,
254
276
  defaultTitle: d || "Alert"
255
- }, [e, t, d, n]), u = C(
277
+ }, [e, t, d, n]), m = E(
256
278
  () => [
257
- ...c.cancel ? [
279
+ ...u.cancel ? [
258
280
  {
259
- label: c.cancel,
281
+ label: u.cancel,
260
282
  variant: "secondary",
261
283
  onClick: a
262
284
  }
263
285
  ] : [],
264
286
  {
265
- label: c.confirm,
287
+ label: u.confirm,
266
288
  variant: o ? "destructive" : "primary",
267
289
  onClick: () => {
268
290
  i == null || i(), a();
269
291
  }
270
292
  }
271
293
  ],
272
- [c, o, i, a]
294
+ [u, o, i, a]
273
295
  );
274
296
  return /* @__PURE__ */ r(
275
- te,
297
+ re,
276
298
  {
277
299
  ...s,
278
- title: d || c.defaultTitle,
300
+ title: d || u.defaultTitle,
279
301
  onClose: a,
280
- actions: u,
302
+ actions: m,
281
303
  disableCloseOnOverlayClick: e === "confirm",
282
304
  hideCloseButton: e === "confirm",
283
305
  children: typeof l == "string" ? /* @__PURE__ */ r("p", { className: "text-sm", children: l }) : l
284
306
  }
285
307
  );
286
308
  }
287
- const E = {
309
+ const le = c(null), ue = () => {
310
+ const e = K(le);
311
+ if (!e)
312
+ throw new Error("Tabs components must be used within a Tabs component");
313
+ return e;
314
+ }, z = {
288
315
  info: {
289
316
  className: "bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100",
290
- icon: /* @__PURE__ */ r(Z, { size: 20 })
317
+ icon: /* @__PURE__ */ r(Y, { size: 20 })
291
318
  },
292
319
  warning: {
293
320
  className: "bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100",
@@ -295,10 +322,10 @@ const E = {
295
322
  },
296
323
  error: {
297
324
  className: "bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100",
298
- icon: /* @__PURE__ */ r(F, { size: 20 })
325
+ icon: /* @__PURE__ */ r(V, { size: 20 })
299
326
  }
300
327
  };
301
- function se({
328
+ function ce({
302
329
  id: e,
303
330
  title: l,
304
331
  description: n,
@@ -309,19 +336,19 @@ function se({
309
336
  customTypes: d,
310
337
  customComponent: s
311
338
  }) {
312
- const [c, u] = p(!1), m = L(() => {
313
- u(!0), setTimeout(() => {
339
+ const [u, m] = v(!1), f = L(() => {
340
+ m(!0), setTimeout(() => {
314
341
  o == null || o(e);
315
342
  }, 150);
316
343
  }, [e, o]);
317
- if (b(() => {
344
+ if (g(() => {
318
345
  if (a > 0) {
319
- const h = setTimeout(() => {
320
- m();
346
+ const p = setTimeout(() => {
347
+ f();
321
348
  }, a);
322
- return () => clearTimeout(h);
349
+ return () => clearTimeout(p);
323
350
  }
324
- }, [a, e, o, m]), s)
351
+ }, [a, e, o, f]), s)
325
352
  return /* @__PURE__ */ r(
326
353
  s,
327
354
  {
@@ -334,21 +361,21 @@ function se({
334
361
  onRemove: o
335
362
  }
336
363
  );
337
- const g = (d == null ? void 0 : d[t]) || E[t] || E.info;
338
- return /* @__PURE__ */ f(
364
+ const h = (d == null ? void 0 : d[t]) || z[t] || z.info;
365
+ return /* @__PURE__ */ b(
339
366
  "div",
340
367
  {
341
368
  role: t === "error" ? "alert" : "status",
342
369
  "aria-live": t === "error" ? void 0 : "polite",
343
- className: G(
370
+ className: Z(
344
371
  "relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out",
345
372
  i && "pb-3",
346
- g.className,
347
- c ? "opacity-0 translate-x-full" : "opacity-100 translate-x-0"
373
+ h.className,
374
+ u ? "opacity-0 translate-x-full" : "opacity-100 translate-x-0"
348
375
  ),
349
376
  children: [
350
- /* @__PURE__ */ r("div", { className: "flex-shrink-0 mr-3", children: g.icon }),
351
- /* @__PURE__ */ f("div", { className: "flex-grow min-w-0", children: [
377
+ /* @__PURE__ */ r("div", { className: "flex-shrink-0 mr-3", children: h.icon }),
378
+ /* @__PURE__ */ b("div", { className: "flex-grow min-w-0", children: [
352
379
  /* @__PURE__ */ r("div", { className: "font-medium text-sm leading-5", children: l }),
353
380
  n && /* @__PURE__ */ r("div", { className: "mt-1 text-sm opacity-90 leading-5", children: n }),
354
381
  i && /* @__PURE__ */ r("div", { className: "mt-1.5", children: /* @__PURE__ */ r(
@@ -363,9 +390,9 @@ function se({
363
390
  /* @__PURE__ */ r(
364
391
  "button",
365
392
  {
366
- onClick: m,
393
+ onClick: f,
367
394
  className: "flex-shrink-0 ml-3 p-1 rounded-md hover:bg-black/10 dark:hover:bg-white/10 focus:outline-none focus:ring-1 focus:ring-current leading-0",
368
- children: /* @__PURE__ */ r(D, { size: 16 })
395
+ children: /* @__PURE__ */ r(J, { size: 16 })
369
396
  }
370
397
  )
371
398
  ]
@@ -373,8 +400,10 @@ function se({
373
400
  );
374
401
  }
375
402
  export {
376
- oe as A,
377
- se as T,
378
- w as n
403
+ de as A,
404
+ ce as T,
405
+ le as a,
406
+ N as n,
407
+ ue as u
379
408
  };
380
- //# sourceMappingURL=Toast-C5BwqBkw.js.map
409
+ //# sourceMappingURL=Toast-BFQrI1bB.js.map