@nuee/ui 0.4.1 → 0.5.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 (189) hide show
  1. package/dist/Icon.js +2 -0
  2. package/dist/Icon.js.map +2 -2
  3. package/dist/accordion.d.ts +4 -4
  4. package/dist/accordion.js +105 -207
  5. package/dist/accordion.js.map +4 -4
  6. package/dist/alert-dialog.d.ts +6 -6
  7. package/dist/alert-dialog.js +83 -352
  8. package/dist/alert-dialog.js.map +4 -4
  9. package/dist/aspect-ratio.d.ts +1 -1
  10. package/dist/aspect-ratio.js +6 -42
  11. package/dist/aspect-ratio.js.map +2 -2
  12. package/dist/attachment.d.ts +8 -8
  13. package/dist/attachment.js +82 -314
  14. package/dist/attachment.js.map +4 -4
  15. package/dist/avatar.d.ts +7 -9
  16. package/dist/avatar.js +29 -71
  17. package/dist/avatar.js.map +2 -2
  18. package/dist/badge.d.ts +2 -4
  19. package/dist/badge.js +7 -44
  20. package/dist/badge.js.map +2 -2
  21. package/dist/banner.d.ts +4 -7
  22. package/dist/banner.js +35 -273
  23. package/dist/banner.js.map +2 -2
  24. package/dist/breadcrumb.d.ts +7 -7
  25. package/dist/breadcrumb.js +12 -92
  26. package/dist/breadcrumb.js.map +4 -4
  27. package/dist/bubble.d.ts +6 -4
  28. package/dist/bubble.js +17 -55
  29. package/dist/bubble.js.map +2 -2
  30. package/dist/button-group.d.ts +5 -5
  31. package/dist/button-group.js +113 -159
  32. package/dist/button-group.js.map +4 -4
  33. package/dist/button.d.ts +7 -5
  34. package/dist/button.js +141 -44
  35. package/dist/button.js.map +2 -2
  36. package/dist/calendar.d.ts +9 -0
  37. package/dist/calendar.js +234 -0
  38. package/dist/calendar.js.map +7 -0
  39. package/dist/card.d.ts +3 -3
  40. package/dist/card.js +31 -216
  41. package/dist/card.js.map +2 -2
  42. package/dist/carousel.d.ts +28 -0
  43. package/dist/carousel.js +427 -0
  44. package/dist/carousel.js.map +7 -0
  45. package/dist/checkbox.d.ts +3 -3
  46. package/dist/checkbox.js +45 -115
  47. package/dist/checkbox.js.map +4 -4
  48. package/dist/collapsible.d.ts +3 -3
  49. package/dist/collapsible.js +96 -184
  50. package/dist/collapsible.js.map +4 -4
  51. package/dist/combobox.d.ts +6 -6
  52. package/dist/combobox.js +182 -268
  53. package/dist/combobox.js.map +4 -4
  54. package/dist/content-row.d.ts +7 -7
  55. package/dist/content-row.js +97 -241
  56. package/dist/content-row.js.map +3 -3
  57. package/dist/context-menu.js +15 -738
  58. package/dist/context-menu.js.map +4 -4
  59. package/dist/control-layout.d.ts +9 -0
  60. package/dist/date-picker.d.ts +11 -0
  61. package/dist/date-picker.js +140 -0
  62. package/dist/date-picker.js.map +7 -0
  63. package/dist/dialog.d.ts +5 -5
  64. package/dist/dialog.js +44 -161
  65. package/dist/dialog.js.map +4 -4
  66. package/dist/drawer.d.ts +8 -8
  67. package/dist/drawer.js +80 -119
  68. package/dist/drawer.js.map +2 -2
  69. package/dist/dropdown-menu.d.ts +8 -8
  70. package/dist/dropdown-menu.js +244 -416
  71. package/dist/dropdown-menu.js.map +4 -4
  72. package/dist/empty.d.ts +6 -6
  73. package/dist/empty.js +31 -210
  74. package/dist/empty.js.map +2 -2
  75. package/dist/field.d.ts +9 -9
  76. package/dist/field.js +81 -31
  77. package/dist/field.js.map +3 -3
  78. package/dist/global.css +5 -0
  79. package/dist/heading.d.ts +6 -0
  80. package/dist/heading.js +92 -0
  81. package/dist/heading.js.map +7 -0
  82. package/dist/hover-card.d.ts +7 -4
  83. package/dist/hover-card.js +51 -3
  84. package/dist/hover-card.js.map +2 -2
  85. package/dist/index.d.ts +14 -8
  86. package/dist/index.js +295 -12210
  87. package/dist/index.js.map +4 -4
  88. package/dist/input-group.d.ts +5 -5
  89. package/dist/input-group.js +95 -485
  90. package/dist/input-group.js.map +4 -4
  91. package/dist/input-otp.d.ts +6 -6
  92. package/dist/input-otp.js +18 -43
  93. package/dist/input-otp.js.map +2 -2
  94. package/dist/input.d.ts +3 -3
  95. package/dist/input.js +7 -4
  96. package/dist/input.js.map +2 -2
  97. package/dist/kbd.d.ts +2 -7
  98. package/dist/kbd.js +4 -99
  99. package/dist/kbd.js.map +3 -3
  100. package/dist/label.d.ts +2 -5
  101. package/dist/label.js +64 -39
  102. package/dist/label.js.map +3 -3
  103. package/dist/link.d.ts +3 -5
  104. package/dist/link.js +22 -107
  105. package/dist/link.js.map +4 -4
  106. package/dist/marker.d.ts +3 -3
  107. package/dist/marker.js +17 -104
  108. package/dist/marker.js.map +2 -2
  109. package/dist/menubar.d.ts +2 -2
  110. package/dist/menubar.js +36 -772
  111. package/dist/menubar.js.map +4 -4
  112. package/dist/message.d.ts +9 -6
  113. package/dist/message.js +35 -155
  114. package/dist/message.js.map +2 -2
  115. package/dist/native-select.d.ts +5 -5
  116. package/dist/native-select.js +24 -102
  117. package/dist/native-select.js.map +4 -4
  118. package/dist/navigation-menu.d.ts +7 -7
  119. package/dist/navigation-menu.js +183 -307
  120. package/dist/navigation-menu.js.map +4 -4
  121. package/dist/pagination.d.ts +5 -5
  122. package/dist/pagination.js +13 -92
  123. package/dist/pagination.js.map +4 -4
  124. package/dist/popover.d.ts +4 -4
  125. package/dist/popover.js +44 -36
  126. package/dist/popover.js.map +3 -3
  127. package/dist/primitives.js +2 -0
  128. package/dist/primitives.js.map +2 -2
  129. package/dist/progress.d.ts +3 -3
  130. package/dist/progress.js +16 -30
  131. package/dist/progress.js.map +2 -2
  132. package/dist/radio-group.d.ts +5 -5
  133. package/dist/radio-group.js +43 -49
  134. package/dist/radio-group.js.map +3 -3
  135. package/dist/reset.css +0 -1
  136. package/dist/scroll-area.d.ts +2 -2
  137. package/dist/scroll-area.js +56 -80
  138. package/dist/scroll-area.js.map +2 -2
  139. package/dist/select.d.ts +5 -5
  140. package/dist/select.js +169 -255
  141. package/dist/select.js.map +4 -4
  142. package/dist/separator.d.ts +1 -1
  143. package/dist/separator.js +11 -10
  144. package/dist/separator.js.map +2 -2
  145. package/dist/skeleton.d.ts +1 -1
  146. package/dist/skeleton.js +6 -37
  147. package/dist/skeleton.js.map +2 -2
  148. package/dist/slider.d.ts +3 -3
  149. package/dist/slider.js +37 -46
  150. package/dist/slider.js.map +2 -2
  151. package/dist/spinner.d.ts +2 -4
  152. package/dist/spinner.js +5 -61
  153. package/dist/spinner.js.map +3 -3
  154. package/dist/stylex.css +463 -307
  155. package/dist/switch.d.ts +3 -3
  156. package/dist/switch.js +49 -35
  157. package/dist/switch.js.map +3 -3
  158. package/dist/table.d.ts +9 -10
  159. package/dist/table.js +33 -274
  160. package/dist/table.js.map +2 -2
  161. package/dist/tabs.d.ts +4 -4
  162. package/dist/tabs.js +84 -135
  163. package/dist/tabs.js.map +3 -3
  164. package/dist/textarea.d.ts +3 -3
  165. package/dist/textarea.js +11 -43
  166. package/dist/textarea.js.map +2 -2
  167. package/dist/timeline.d.ts +19 -0
  168. package/dist/timeline.js +104 -0
  169. package/dist/timeline.js.map +7 -0
  170. package/dist/toast.d.ts +4 -2
  171. package/dist/toast.js +261 -485
  172. package/dist/toast.js.map +4 -4
  173. package/dist/toast.stylex.d.ts +4 -2
  174. package/dist/toggle-group.d.ts +5 -5
  175. package/dist/toggle-group.js +52 -60
  176. package/dist/toggle-group.js.map +3 -3
  177. package/dist/toggle.d.ts +3 -3
  178. package/dist/toggle.js +28 -20
  179. package/dist/toggle.js.map +3 -3
  180. package/dist/tooltip.d.ts +1 -1
  181. package/dist/tooltip.js +52 -44
  182. package/dist/tooltip.js.map +3 -3
  183. package/dist/typography.d.ts +50 -294
  184. package/package.json +15 -7
  185. package/dist/message-scroller.d.ts +0 -10
  186. package/dist/message-scroller.js +0 -464
  187. package/dist/message-scroller.js.map +0 -7
  188. package/dist/typography.js +0 -85
  189. package/dist/typography.js.map +0 -7
package/dist/toast.js CHANGED
@@ -1,386 +1,124 @@
1
+ "use client";
2
+
1
3
  // src/toast.tsx
2
4
  import { c as _c } from "react/compiler-runtime";
3
5
  import { Toast as ToastPrimitive } from "@base-ui/react/toast";
6
+ import { CheckCircleIcon, InfoIcon, WarningIcon, XCircleIcon, XIcon } from "@phosphor-icons/react";
4
7
  import * as stylex from "@stylexjs/stylex";
5
- import { useLayoutEffect, useRef, useState } from "react";
8
+ import { useEffect, useLayoutEffect, useRef, useState } from "react";
6
9
 
7
- // src/Icon.tsx
8
- import {
9
- ArrowDownIcon,
10
- ArrowSquareOutIcon,
11
- ArrowsDownUpIcon,
12
- ArrowUpIcon,
13
- CalendarIcon,
14
- CaretDoubleLeftIcon,
15
- CaretDoubleRightIcon,
16
- CaretDownIcon,
17
- CaretLeftIcon,
18
- CaretRightIcon,
19
- CaretUpIcon,
20
- CaretUpDownIcon,
21
- CheckCircleIcon,
22
- CheckIcon,
23
- ChecksIcon,
24
- ClockIcon,
25
- ColumnsIcon,
26
- CopyIcon,
27
- DotsThreeIcon,
28
- EyeSlashIcon,
29
- FileIcon,
30
- FolderIcon,
31
- FunnelIcon,
32
- GitBranchIcon,
33
- InfoIcon,
34
- ListIcon,
35
- MagnifyingGlassIcon,
36
- MicrophoneIcon,
37
- PaperclipIcon,
38
- DownloadSimpleIcon,
39
- StopIcon,
40
- WarningIcon,
41
- WrenchIcon,
42
- XCircleIcon,
43
- XIcon
44
- } from "@phosphor-icons/react";
45
- import { jsx } from "react/jsx-runtime";
46
- var iconRegistry = {
47
- close: XIcon,
48
- chevronDown: CaretDownIcon,
49
- chevronLeft: CaretLeftIcon,
50
- chevronRight: CaretRightIcon,
51
- chevronUp: CaretUpIcon,
52
- chevronsLeft: CaretDoubleLeftIcon,
53
- chevronsRight: CaretDoubleRightIcon,
54
- caretUpDown: CaretUpDownIcon,
55
- check: CheckIcon,
56
- success: CheckCircleIcon,
57
- error: XCircleIcon,
58
- warning: WarningIcon,
59
- info: InfoIcon,
60
- calendar: CalendarIcon,
61
- clock: ClockIcon,
62
- externalLink: ArrowSquareOutIcon,
63
- menu: ListIcon,
64
- moreHorizontal: DotsThreeIcon,
65
- search: MagnifyingGlassIcon,
66
- arrowUp: ArrowUpIcon,
67
- arrowDown: ArrowDownIcon,
68
- arrowsUpDown: ArrowsDownUpIcon,
69
- funnel: FunnelIcon,
70
- eyeSlash: EyeSlashIcon,
71
- viewColumns: ColumnsIcon,
72
- copy: CopyIcon,
73
- checkDouble: ChecksIcon,
74
- wrench: WrenchIcon,
75
- stop: StopIcon,
76
- microphone: MicrophoneIcon,
77
- folder: FolderIcon,
78
- file: FileIcon,
79
- paperclip: PaperclipIcon,
80
- download: DownloadSimpleIcon,
81
- branch: GitBranchIcon
10
+ // src/toast.stylex.ts
11
+ var toastViewportVars = {
12
+ contentMinHeight: "var(--xn871nm)",
13
+ clearActionOffset: "var(--xyn76sd)",
14
+ clearActionOpacity: "var(--x1gcu4wa)",
15
+ clearActionPointerEvents: "var(--x1l1fjul)",
16
+ stackPointerEvents: "var(--xj53u9u)",
17
+ __varGroupHash__: "x2h7wh3"
82
18
  };
83
- function Icon({ name, weight = "regular", ...props2 }) {
84
- const IconComponent = iconRegistry[name];
85
- return /* @__PURE__ */ jsx(IconComponent, { ...props2, weight });
86
- }
87
19
 
88
- // src/toast.tsx
89
- import { spacingVars } from "@nuee/tokens/semantic.stylex";
90
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
91
- var styles = {
92
- viewport: {
93
- ks0D6T: "xowlazn",
94
- kI3sdo: "x1a2a7pz",
95
- kfzvcC: "x47corl",
96
- kVAEAm: "xixxii4",
97
- kzqmXN: "xjdehy0",
98
- kY2c9j: "x6y048q",
99
- "--xj53u9u": "xeffijn xac14zw",
100
- "--x170ifs3": "x1jm5hub xsbdbit",
101
- "--xzgjp8e": "x1scyh3n xptpqrj",
20
+ // src/typography.ts
21
+ var typographyStyles = {
22
+ body: {
23
+ kMv6JI: "x1fe00qh",
24
+ kGuDYH: "x1dmpjil",
25
+ k63SB2: "xgtczyh",
26
+ kLWn49: "xi1fz51",
102
27
  $$css: true
103
28
  },
104
- viewportTop: {
105
- k87sOh: "xs8ca6r",
29
+ description: {
30
+ kMv6JI: "x1fe00qh",
31
+ kGuDYH: "x99mhxu",
32
+ k63SB2: "xgtczyh",
33
+ kLWn49: "xi1fz51",
106
34
  $$css: true
107
35
  },
108
- viewportBottom: {
109
- krVfgx: "x19hvrdr",
36
+ caption: {
37
+ kMv6JI: "x1fe00qh",
38
+ kGuDYH: "x131ut49",
39
+ k63SB2: "xgtczyh",
40
+ kLWn49: "xi1fz51",
110
41
  $$css: true
111
42
  },
112
- viewportLeft: {
113
- kbCHJM: "x19f49xq",
43
+ label: {
44
+ kMv6JI: "x1fe00qh",
45
+ kGuDYH: "x99mhxu",
46
+ k63SB2: "x1v899x5",
47
+ kLWn49: "xi1fz51",
114
48
  $$css: true
115
49
  },
116
- viewportCenter: {
117
- kbCHJM: "x1nrll8i",
118
- k3aq6I: "xuuh30",
50
+ title: {
51
+ kMv6JI: "x1fe00qh",
52
+ kGuDYH: "x99mhxu",
53
+ k63SB2: "x1v899x5",
54
+ kLWn49: "x1hfsx4t",
119
55
  $$css: true
120
56
  },
121
- viewportRight: {
122
- kCIrl2: "xpg08jz",
57
+ page: {
58
+ kMv6JI: "xfhuv4h",
59
+ kGuDYH: "x11icns7",
60
+ k63SB2: "xq1ytqg",
61
+ kLWn49: "x1hfsx4t",
123
62
  $$css: true
124
63
  },
125
- stack: {
126
- krVfgx: "x1ey2m1c",
127
- kbCHJM: "xu96u03",
128
- kfzvcC: "xt0hzig",
129
- kVAEAm: "x10l6tqk",
130
- kCIrl2: "x3m8u43",
64
+ section: {
65
+ kMv6JI: "xfhuv4h",
66
+ kGuDYH: "x1owaoya",
67
+ k63SB2: "xq1ytqg",
68
+ kLWn49: "x1hfsx4t",
131
69
  $$css: true
132
70
  },
133
- stackTop: {
134
- krVfgx: "xdd4er5",
135
- k87sOh: "x13vifvy",
71
+ subsection: {
72
+ kMv6JI: "xfhuv4h",
73
+ kGuDYH: "x1dmpjil",
74
+ k63SB2: "xq1ytqg",
75
+ kLWn49: "x1hfsx4t",
136
76
  $$css: true
137
- },
138
- root: {
139
- kWkggS: "x1sgh50o",
140
- kVAM5u: "x13xm7is",
141
- kaIpWk: "x7c24we",
142
- ksu8eU: "x1y0btm7",
143
- kMzoRj: "xzgztj1",
144
- krVfgx: "x1ey2m1c",
145
- kGVxlE: "x1juquzk",
146
- kMwMTN: "x1alews2",
147
- kZKoxP: "x4a9ltk",
148
- kI3sdo: "x1a2a7pz",
149
- kVQacm: "xb3r6kr",
150
- kfzvcC: "x67bb7w",
151
- kVAEAm: "x10l6tqk",
152
- kbCHJM: "xu96u03",
153
- kCIrl2: "x3m8u43",
154
- k3aq6I: "x192b8fm",
155
- k3nNDw: "xm4efwp",
156
- kmkexE: "x1fye3y2",
157
- kfSwDN: "x87ps6o",
158
- kzqmXN: "xh8yej3",
159
- k6sLGO: "x1so62im",
160
- kY2c9j: "x1l48cz2",
161
- k5JduY: "x1s928wv",
162
- k4zj60: "x3nd85q",
163
- kH8cDV: "x17cx49",
164
- kwXMNM: "x1j6awrg",
165
- k3foIR: "x1srwf7z",
166
- kkgrvl: "x4eaejv",
167
- kZs9gx: "x7yqiub",
168
- kiEn40: "x1q375v2",
169
- k7shQP: "x9v5kkp",
170
- kPJHz1: "x11ci167",
171
- kTrA0T: "xnbj6on",
172
- kfkD4s: "x1pn4af4",
173
- kBPcrh: "x1awh1os",
174
- keMjcj: "x1a042xe",
175
- k4F3UM: "xlq082z",
176
- krwDK1: "xm69ghq",
177
- kJcGZN: "x1llxi74",
178
- kWGbKe: "x1i389j4",
179
- kMqVnt: "x1gqblgl",
180
- kkOw2F: "x1yzz94r",
181
- k9qGvA: "xkjqs5f",
182
- kNwbpG: "x17lkgwk",
183
- kAHiuG: "xmpnhxk",
184
- krnjz7: "x1v5215y",
185
- k6CgDc: "x1yjfzay",
186
- kahdpk: "xks8tqp",
187
- k7DTxh: "x1ymz01m",
77
+ }
78
+ };
79
+
80
+ // src/toast.tsx
81
+ import { jsx, jsxs } from "react/jsx-runtime";
82
+ var _temp3 = {
83
+ krVfgx: "x1ey2m1c",
84
+ k1C7PZ: "x6bhqzj",
85
+ kbCHJM: "xu96u03",
86
+ kfzvcC: "xt0hzig",
87
+ kVAEAm: "x10l6tqk",
88
+ kCIrl2: "x3m8u43",
89
+ "$$css": true
90
+ };
91
+ var styles = {
92
+ stack: (height) => [_temp3, {
93
+ kZKoxP: height != null ? "x16ye13r" : height,
188
94
  $$css: true
189
- },
190
- rootTop: {
95
+ }, {
96
+ "--x-height": ((val) => typeof val === "number" ? val + "px" : val != null ? val : void 0)(height)
97
+ }],
98
+ stackTop: {
191
99
  krVfgx: "xdd4er5",
192
100
  k87sOh: "x13vifvy",
193
- k3aq6I: "x1pniplx",
194
- k3nNDw: "xtj8gnn",
195
- kBPcrh: "xrdgflj",
196
- kWGbKe: "xv51xxh",
197
- kkOw2F: "x18p6d6d",
198
- kAHiuG: "x1hdwxx3",
199
- krnjz7: "xhkt67u",
200
- kahdpk: "x1rxji30",
201
- k7DTxh: "x1ws6grc",
202
- $$css: true
203
- },
204
- content: {
205
- kGNEyG: "x6s0dn4",
206
- k1xSpc: "x78zum5",
207
- kOIVth: "xmtacc2",
208
- kZKoxP: "x5yr21d",
209
- kAzted: "xyvwee0",
210
- kVQacm: "xb3r6kr",
211
- kmVPX3: "xkm8lt0",
212
- kVAEAm: "x1n2onr6",
213
- kIyJzY: "x1ial40k",
214
- k1ekBW: "x19991ni",
215
- khG6SB: "x14vjn7q",
216
- kLv8QS: "x14cldyx",
217
- $$css: true
218
- },
219
- message: {
220
- k1xSpc: "x78zum5",
221
- kUk6DE: "x98rzlu",
222
- kXwgrk: "xdt5ytf",
223
- kOIVth: "x1kr9b5u",
224
- k7Eaqz: "xeuugli",
225
101
  $$css: true
226
102
  },
227
103
  title: {
228
- kGuDYH: "x99mhxu",
229
- k63SB2: "x1v899x5",
230
- kLWn49: "x1hfsx4t",
231
104
  kogj98: "x1ghz6dp",
232
105
  $$css: true
233
106
  },
234
107
  description: {
235
108
  kMwMTN: "x1ry1pnm",
236
- kGuDYH: "x99mhxu",
237
- kLWn49: "xi1fz51",
238
109
  kogj98: "x1ghz6dp",
239
110
  $$css: true
240
- },
241
- statusIcon: {
242
- kGNEyG: "x6s0dn4",
243
- kSGwAc: "xqcrz7y",
244
- k1xSpc: "x3nfvp2",
245
- kmuXW: "x2lah0s",
246
- kZKoxP: "xswfmaf",
247
- kjj79g: "xl56j7k",
248
- keoZOQ: "xsj8jdm",
249
- kzqmXN: "xmkpuva",
250
- $$css: true
251
- },
252
- default: {
253
- kMwMTN: "x1ry1pnm",
254
- $$css: true
255
- },
256
- success: {
257
- kMwMTN: "x6pgtun",
258
- $$css: true
259
- },
260
- info: {
261
- kMwMTN: "x4u89p0",
262
- $$css: true
263
- },
264
- warning: {
265
- kMwMTN: "x1vhcv9p",
266
- $$css: true
267
- },
268
- error: {
269
- kMwMTN: "xm777y0",
270
- $$css: true
271
- },
272
- loading: {
273
- kMwMTN: "x1ry1pnm",
274
- $$css: true
275
- },
276
- loadingIcon: {
277
- k44tkh: "xof6966",
278
- ko0y90: "xa4qsjk",
279
- kKVMdj: "xpedhrg",
280
- kyAemX: "x1esw782",
281
- kVAM5u: "x13xm7is",
282
- kaIpWk: "x9gkxt8",
283
- k26BEO: "x18v6yaz",
284
- ksu8eU: "x1y0btm7",
285
- kMzoRj: "x1shk7dx",
286
- kmuXW: "x2lah0s",
287
- kZKoxP: "xswfmaf",
288
- kzqmXN: "xmkpuva",
289
- kkDQuc: "xfs3gwd",
290
- $$css: true
291
- },
292
- action: {
293
- kysU6D: "xjyslct",
294
- kWkggS: "x8m6yc2",
295
- kVAM5u: "x13xm7is",
296
- kaIpWk: "x7c24we",
297
- ksu8eU: "x1y0btm7",
298
- kMzoRj: "xzgztj1",
299
- kMwMTN: "x1alews2",
300
- kkrTdU: "x1ypdohk",
301
- kmuXW: "x2lah0s",
302
- kMv6JI: "x14e0hi7",
303
- kGuDYH: "x131ut49",
304
- k63SB2: "x1v899x5",
305
- kZKoxP: "xb8l8e1",
306
- kI3sdo: "x1a2a7pz",
307
- kg3NbH: "xdaxh69",
308
- kGzVvX: "x1o026c7",
309
- kZs9gx: "x7yqiub",
310
- kiEn40: "x1q375v2",
311
- k7shQP: "x9v5kkp",
312
- kPJHz1: "x11ci167",
313
- $$css: true
314
- },
315
- close: {
316
- kGNEyG: "x6s0dn4",
317
- kysU6D: "xjyslct",
318
- kWkggS: "xjbqb8w",
319
- kVAM5u: "x9r1u3d",
320
- kaIpWk: "x7c24we",
321
- ksu8eU: "x1y0btm7",
322
- kMzoRj: "xzgztj1",
323
- kMwMTN: "x1ry1pnm",
324
- kkrTdU: "x1ypdohk",
325
- k1xSpc: "x3nfvp2",
326
- kmuXW: "x2lah0s",
327
- kZKoxP: "xb8l8e1",
328
- kjj79g: "xl56j7k",
329
- kI3sdo: "x1a2a7pz",
330
- kzqmXN: "xh29eag",
331
- kGzVvX: "x1o026c7",
332
- kDPRdz: "x3s8dm3",
333
- kZs9gx: "x7yqiub",
334
- kiEn40: "x1q375v2",
335
- k7shQP: "x9v5kkp",
336
- kPJHz1: "x11ci167",
337
- $$css: true
338
- },
339
- clearAll: {
340
- kysU6D: "xjyslct",
341
- kWkggS: "x13hkpcx",
342
- kVAM5u: "x13xm7is",
343
- ksu8eU: "x1y0btm7",
344
- kaIpWk: "x7c24we",
345
- kMzoRj: "xzgztj1",
346
- kMwMTN: "x1ry1pnm",
347
- kkrTdU: "x1ypdohk",
348
- kMv6JI: "x14e0hi7",
349
- kGuDYH: "x131ut49",
350
- k63SB2: "x1v899x5",
351
- kZKoxP: "xb8l8e1",
352
- kI3sdo: "x1a2a7pz",
353
- k8WAf4: "x15cgg",
354
- kg3NbH: "x1cot6zx",
355
- kSiTet: "x1o2uyhu",
356
- kfzvcC: "x3dtjyh",
357
- kVAEAm: "x10l6tqk",
358
- kCIrl2: "x3m8u43",
359
- k87sOh: "x13vifvy",
360
- kY2c9j: "x1bkdxzg",
361
- kGzVvX: "xh3kehl",
362
- kDPRdz: "x3s8dm3",
363
- kZs9gx: "x7yqiub",
364
- kiEn40: "x1q375v2",
365
- k7shQP: "x9v5kkp",
366
- kPJHz1: "x11ci167",
367
- $$css: true
368
- },
369
- clearAllTop: {
370
- krVfgx: "x1ey2m1c",
371
- k87sOh: "x80663w",
372
- $$css: true
373
111
  }
374
112
  };
375
113
  var toast = ToastPrimitive.createToastManager();
376
114
  var toastIcons = {
377
- success: "success",
378
- info: "info",
379
- warning: "warning",
380
- error: "error"
115
+ success: CheckCircleIcon,
116
+ info: InfoIcon,
117
+ warning: WarningIcon,
118
+ error: XCircleIcon
381
119
  };
382
120
  function ToastStatusIcon(t0) {
383
- const $ = _c(8);
121
+ const $ = _c(4);
384
122
  const {
385
123
  type
386
124
  } = t0;
@@ -390,80 +128,128 @@ function ToastStatusIcon(t0) {
390
128
  if (type === "loading") {
391
129
  let t12;
392
130
  if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
393
- t12 = /* @__PURE__ */ jsx2("span", { "aria-hidden": "true", className: "xof6966 xa4qsjk xpedhrg x1esw782 x13xm7is x9gkxt8 x18v6yaz x1y0btm7 x1shk7dx x2lah0s xswfmaf xmkpuva xfs3gwd" });
131
+ t12 = /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "xoi2r2e x6s0dn4 x3nfvp2 x2lah0s x1fe00qh x99mhxu x1v899x5 x1hfsx4t xl56j7k xmkpuva x12vebyb", children: /* @__PURE__ */ jsx("span", { className: "xx1h35u xa4qsjk xpedhrg x1esw782 x13xm7is x9gkxt8 x1y0btm7 x1shk7dx x2lah0s xswfmaf xmkpuva xs9k882" }) });
394
132
  $[0] = t12;
395
133
  } else {
396
134
  t12 = $[0];
397
135
  }
398
136
  return t12;
399
137
  }
400
- const iconName = toastIcons[type];
401
- if (!iconName) {
138
+ const IconComponent = toastIcons[type];
139
+ if (!IconComponent) {
402
140
  return null;
403
141
  }
404
142
  let t1;
405
- if ($[1] !== type) {
406
- t1 = stylex.props(styles.statusIcon, styles[type]);
407
- $[1] = type;
408
- $[2] = t1;
143
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
144
+ t1 = {
145
+ className: "xoi2r2e x6s0dn4 x3nfvp2 x2lah0s x1fe00qh x99mhxu x1v899x5 x1hfsx4t xl56j7k xmkpuva x12vebyb"
146
+ };
147
+ $[1] = t1;
409
148
  } else {
410
- t1 = $[2];
149
+ t1 = $[1];
411
150
  }
412
151
  let t2;
413
- if ($[3] !== iconName) {
414
- t2 = /* @__PURE__ */ jsx2(Icon, { name: iconName });
415
- $[3] = iconName;
416
- $[4] = t2;
417
- } else {
418
- t2 = $[4];
419
- }
420
- let t3;
421
- if ($[5] !== t1 || $[6] !== t2) {
422
- t3 = /* @__PURE__ */ jsx2("span", { "aria-hidden": "true", ...t1, children: t2 });
423
- $[5] = t1;
424
- $[6] = t2;
425
- $[7] = t3;
152
+ if ($[2] !== IconComponent) {
153
+ t2 = /* @__PURE__ */ jsx("span", { "aria-hidden": "true", ...t1, children: /* @__PURE__ */ jsx(IconComponent, {}) });
154
+ $[2] = IconComponent;
155
+ $[3] = t2;
426
156
  } else {
427
- t3 = $[7];
157
+ t2 = $[3];
428
158
  }
429
- return t3;
159
+ return t2;
430
160
  }
431
161
  function ToastStack(t0) {
432
- const $ = _c(10);
162
+ const $ = _c(11);
433
163
  const {
434
- position
164
+ position,
165
+ clearAllProps
435
166
  } = t0;
436
167
  const {
437
168
  toasts
438
169
  } = ToastPrimitive.useToastManager();
439
170
  const stackRef = useRef(null);
171
+ let t1;
172
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
173
+ t1 = /* @__PURE__ */ new Set();
174
+ $[0] = t1;
175
+ } else {
176
+ t1 = $[0];
177
+ }
178
+ const dismissedIds = useRef(t1);
440
179
  const [height, setHeight] = useState(0);
441
180
  const isTop = position.startsWith("top");
442
181
  const hasClearAction = toasts.length > 1;
443
- const stackHeight = hasClearAction ? `calc(${height}px + 1.75rem + ${spacingVars.space2})` : height;
444
- let t1;
445
- if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
446
- t1 = () => {
182
+ const stackHeight = hasClearAction ? `calc(${height}px + ${toastViewportVars.clearActionOffset})` : height;
183
+ let t2;
184
+ let t3;
185
+ if ($[1] !== toasts) {
186
+ t2 = () => {
447
187
  const stack = stackRef.current;
448
188
  if (!stack) {
449
189
  return;
450
190
  }
451
- const measuredStack = stack;
452
- const updateHeight = function updateHeight2() {
453
- const rootList = Array.from(measuredStack.querySelectorAll("[data-nuee-toast-root]:not([data-limited])"));
454
- const toastGap = Number.parseFloat(getComputedStyle(document.documentElement).fontSize) * 0.75;
455
- const nextHeight = rootList.reduce((maximumHeight, root) => {
191
+ const document = stack.ownerDocument;
192
+ const currentIds = new Set(toasts.map(_temp));
193
+ for (const id of dismissedIds.current) {
194
+ if (!currentIds.has(id)) {
195
+ dismissedIds.current.delete(id);
196
+ }
197
+ }
198
+ const handleEscape = (event) => {
199
+ if (event.key !== "Escape" || event.defaultPrevented || event.isComposing) {
200
+ return;
201
+ }
202
+ const latest = toasts.find((item_0) => item_0.transitionStatus !== "ending" && !dismissedIds.current.has(item_0.id));
203
+ if (!latest) {
204
+ return;
205
+ }
206
+ event.preventDefault();
207
+ event.stopPropagation();
208
+ if (event.repeat) {
209
+ return;
210
+ }
211
+ dismissedIds.current.add(latest.id);
212
+ toast.close(latest.id);
213
+ };
214
+ stack.addEventListener("keydown", handleEscape, true);
215
+ document.addEventListener("keydown", handleEscape);
216
+ return () => {
217
+ stack.removeEventListener("keydown", handleEscape, true);
218
+ document.removeEventListener("keydown", handleEscape);
219
+ };
220
+ };
221
+ t3 = [toasts];
222
+ $[1] = toasts;
223
+ $[2] = t2;
224
+ $[3] = t3;
225
+ } else {
226
+ t2 = $[2];
227
+ t3 = $[3];
228
+ }
229
+ useEffect(t2, t3);
230
+ let t4;
231
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
232
+ t4 = () => {
233
+ const stack_0 = stackRef.current;
234
+ if (!stack_0) {
235
+ return;
236
+ }
237
+ const updateHeight = () => {
238
+ const rootList = Array.from(stack_0.querySelectorAll("[data-nuee-toast-root]:not([data-limited])"));
239
+ const toastGap = Number.parseFloat(getComputedStyle(stack_0).columnGap) || 0;
240
+ let nextHeight = 0;
241
+ for (const root of rootList) {
456
242
  const rootStyles = getComputedStyle(root);
457
243
  const offset = Number.parseFloat(rootStyles.getPropertyValue("--toast-offset-y")) || 0;
458
244
  const index = Number.parseFloat(rootStyles.getPropertyValue("--toast-index")) || 0;
459
245
  const rootHeight = Number.parseFloat(rootStyles.getPropertyValue("--toast-height")) || root.offsetHeight;
460
- return Math.max(maximumHeight, offset + index * toastGap + rootHeight);
461
- }, 0);
462
- setHeight((currentHeight) => currentHeight === nextHeight ? currentHeight : nextHeight);
246
+ nextHeight = Math.max(nextHeight, offset + index * toastGap + rootHeight);
247
+ }
248
+ setHeight(nextHeight);
463
249
  };
464
250
  updateHeight();
465
251
  const resizeObserver = new ResizeObserver(updateHeight);
466
- const rootList_0 = measuredStack.querySelectorAll("[data-nuee-toast-root]");
252
+ const rootList_0 = stack_0.querySelectorAll("[data-nuee-toast-root]");
467
253
  rootList_0.forEach((root_0) => resizeObserver.observe(root_0));
468
254
  window.addEventListener("resize", updateHeight);
469
255
  return () => {
@@ -471,82 +257,68 @@ function ToastStack(t0) {
471
257
  window.removeEventListener("resize", updateHeight);
472
258
  };
473
259
  };
474
- $[0] = t1;
475
- } else {
476
- t1 = $[0];
477
- }
478
- let t2;
479
- if ($[1] !== toasts) {
480
- t2 = [toasts];
481
- $[1] = toasts;
482
- $[2] = t2;
260
+ $[4] = t4;
483
261
  } else {
484
- t2 = $[2];
262
+ t4 = $[4];
485
263
  }
486
- useLayoutEffect(t1, t2);
487
- let t3;
488
- if ($[3] !== stackHeight) {
489
- t3 = {
490
- height: stackHeight
491
- };
492
- $[3] = stackHeight;
493
- $[4] = t3;
264
+ let t5;
265
+ if ($[5] !== toasts) {
266
+ t5 = [toasts];
267
+ $[5] = toasts;
268
+ $[6] = t5;
494
269
  } else {
495
- t3 = $[4];
270
+ t5 = $[6];
496
271
  }
497
- const t4 = {
272
+ useLayoutEffect(t4, t5);
273
+ const t6 = stylex.props(styles.stack(stackHeight), isTop && styles.stackTop);
274
+ const t7 = toasts.map((item_1) => /* @__PURE__ */ jsx(ToastPrimitive.Root, { toast: item_1, "data-nuee-toast-root": "", ...{
498
275
  0: {
499
- className: "x1ey2m1c xu96u03 xt0hzig x10l6tqk x3m8u43"
276
+ className: "x1sgh50o x13xm7is x7c24we x1y0btm7 xzgztj1 x1ey2m1c x1juquzk x1alews2 x4a9ltk x1a2a7pz xb3r6kr x67bb7w x10l6tqk x1c0vqr xxvvz4p xr4gu0f xm4efwp x9bh6cl x87ps6o x14atkfc x1l48cz2 x1s928wv x1xdv29 x17cx49 x1j6awrg x1srwf7z x4eaejv x7yqiub x1q375v2 x9v5kkp x11ci167 xnbj6on x1p2l3ex x83jlts x1pn4af4 xhqeemn x1a042xe xlq082z xm69ghq x1llxi74 x1i389j4 x1gqblgl x1yzz94r xkjqs5f x17lkgwk x1mmqjur x158yw1j x1ho1d5x xks8tqp x1ymz01m"
500
277
  },
501
278
  1: {
502
- className: "xu96u03 xt0hzig x10l6tqk x3m8u43 xdd4er5 x13vifvy"
279
+ className: "x1sgh50o x13xm7is x7c24we x1y0btm7 xzgztj1 x1juquzk x1alews2 x4a9ltk x1a2a7pz xb3r6kr x67bb7w x10l6tqk x1c0vqr xxvvz4p x9bh6cl x87ps6o x14atkfc x1l48cz2 x1s928wv x1xdv29 x17cx49 x1j6awrg x1srwf7z x4eaejv x7yqiub x1q375v2 x9v5kkp x11ci167 xnbj6on x1p2l3ex x83jlts x1pn4af4 x1a042xe xlq082z xm69ghq x1llxi74 x1gqblgl xkjqs5f x17lkgwk x1ho1d5x xdd4er5 x13vifvy x1y7xdrh xtj8gnn x8r647n xv51xxh x18p6d6d x1odkcxk x1775jh9 x1rxji30 x1ws6grc"
503
280
  }
504
- }[!!isTop << 0];
505
- const t5 = toasts.map((item) => /* @__PURE__ */ jsx2(ToastPrimitive.Root, { toast: item, "data-nuee-toast-root": "", ...{
506
- 0: {
507
- className: "x1sgh50o x13xm7is x7c24we x1y0btm7 xzgztj1 x1ey2m1c x1juquzk x1alews2 x4a9ltk x1a2a7pz xb3r6kr x67bb7w x10l6tqk xu96u03 x3m8u43 x192b8fm xm4efwp x1fye3y2 x87ps6o xh8yej3 x1so62im x1l48cz2 x1s928wv x3nd85q x17cx49 x1j6awrg x1srwf7z x4eaejv x7yqiub x1q375v2 x9v5kkp x11ci167 xnbj6on x1pn4af4 x1awh1os x1a042xe xlq082z xm69ghq x1llxi74 x1i389j4 x1gqblgl x1yzz94r xkjqs5f x17lkgwk xmpnhxk x1v5215y x1yjfzay xks8tqp x1ymz01m"
508
- },
509
- 1: {
510
- className: "x1sgh50o x13xm7is x7c24we x1y0btm7 xzgztj1 x1juquzk x1alews2 x4a9ltk x1a2a7pz xb3r6kr x67bb7w x10l6tqk xu96u03 x3m8u43 x1fye3y2 x87ps6o xh8yej3 x1so62im x1l48cz2 x1s928wv x3nd85q x17cx49 x1j6awrg x1srwf7z x4eaejv x7yqiub x1q375v2 x9v5kkp x11ci167 xnbj6on x1pn4af4 x1a042xe xlq082z xm69ghq x1llxi74 x1gqblgl xkjqs5f x17lkgwk x1yjfzay xdd4er5 x13vifvy x1pniplx xtj8gnn xrdgflj xv51xxh x18p6d6d x1hdwxx3 xhkt67u x1rxji30 x1ws6grc"
511
- }
512
- }[!!isTop << 0], children: /* @__PURE__ */ jsxs(ToastPrimitive.Content, { className: "x6s0dn4 x78zum5 xmtacc2 x5yr21d xyvwee0 xb3r6kr xkm8lt0 x1n2onr6 x1ial40k x19991ni x14vjn7q x14cldyx", children: [
513
- /* @__PURE__ */ jsx2(ToastStatusIcon, { type: item.type }),
514
- /* @__PURE__ */ jsxs("div", { className: "x78zum5 x98rzlu xdt5ytf x1kr9b5u xeuugli", children: [
515
- /* @__PURE__ */ jsx2(ToastPrimitive.Title, { className: "x99mhxu x1v899x5 x1hfsx4t x1ghz6dp" }),
516
- /* @__PURE__ */ jsx2(ToastPrimitive.Description, { className: "x1ry1pnm x99mhxu xi1fz51 x1ghz6dp" })
281
+ }[!!isTop << 0], children: /* @__PURE__ */ jsxs(ToastPrimitive.Content, { className: "x6s0dn4 x78zum5 xmtacc2 x5yr21d xy21qdx xb3r6kr xkm8lt0 x1n2onr6 x1ial40k x19991ni xscx6xn x14vjn7q x14cldyx", children: [
282
+ /* @__PURE__ */ jsx(ToastStatusIcon, { type: item_1.type }),
283
+ /* @__PURE__ */ jsxs("div", { className: "xoi2r2e x78zum5 x98rzlu xdt5ytf x1kr9b5u xeuugli", children: [
284
+ /* @__PURE__ */ jsx(ToastPrimitive.Title, { ...stylex.props(typographyStyles.title, styles.title) }),
285
+ /* @__PURE__ */ jsx(ToastPrimitive.Description, { ...stylex.props(typographyStyles.description, styles.description) })
517
286
  ] }),
518
- item.actionProps ? /* @__PURE__ */ jsx2(ToastPrimitive.Action, { className: "xjyslct x8m6yc2 x13xm7is x7c24we x1y0btm7 xzgztj1 x1alews2 x1ypdohk x2lah0s x14e0hi7 x131ut49 x1v899x5 xb8l8e1 x1a2a7pz xdaxh69 x1o026c7 x7yqiub x1q375v2 x9v5kkp x11ci167" }) : null,
519
- /* @__PURE__ */ jsx2(ToastPrimitive.Close, { "aria-label": "Close toast", className: "x6s0dn4 xjyslct xjbqb8w x9r1u3d x7c24we x1y0btm7 xzgztj1 x1ry1pnm x1ypdohk x3nfvp2 x2lah0s xb8l8e1 xl56j7k x1a2a7pz xh29eag x1o026c7 x3s8dm3 x7yqiub x1q375v2 x9v5kkp x11ci167", children: /* @__PURE__ */ jsx2(Icon, { "aria-hidden": "true", name: "close" }) })
520
- ] }) }, item.id));
521
- const t6 = hasClearAction ? /* @__PURE__ */ jsx2("button", { type: "button", onClick: _temp, ...{
287
+ item_1.actionProps ? /* @__PURE__ */ jsx(ToastPrimitive.Action, { className: "xoi2r2e x6s0dn4 xjyslct xjbqb8w x7c24we xng3xce xc342km x1alews2 x1ypdohk x3nfvp2 x2lah0s x1fe00qh x131ut49 x1v899x5 x1hfsx4t x1kobcp8 xl56j7k x1a2a7pz xdaxh69 xdshaxz xt3l3uh xscx6xn xt0b8zv x7yqiub x1q375v2 x9v5kkp x11ci167" }) : null,
288
+ /* @__PURE__ */ jsx(ToastPrimitive.Close, { "aria-label": "Close toast", className: "xoi2r2e x6s0dn4 xjyslct xjbqb8w x9r1u3d x7c24we x1y0btm7 xzgztj1 x1ry1pnm x1ypdohk x3nfvp2 x2lah0s x1fe00qh x99mhxu x1v899x5 x1hfsx4t x1kobcp8 xl56j7k x1a2a7pz xdshaxz xs2xxs2 xscx6xn x6r631m x12vebyb x1o026c7 x3s8dm3 x7yqiub x1q375v2 x9v5kkp x11ci167", children: /* @__PURE__ */ jsx(XIcon, { "aria-hidden": "true" }) })
289
+ ] }) }, item_1.id));
290
+ const t8 = hasClearAction ? /* @__PURE__ */ jsx("button", { ...clearAllProps, type: "button", onClick: _temp2, ...{
522
291
  0: {
523
- className: "xjyslct x13hkpcx x13xm7is x1y0btm7 x7c24we xzgztj1 x1ry1pnm x1ypdohk x14e0hi7 x131ut49 x1v899x5 xb8l8e1 x1a2a7pz x15cgg x1cot6zx x1o2uyhu x3dtjyh x10l6tqk x3m8u43 x13vifvy x1bkdxzg xh3kehl x3s8dm3 x7yqiub x1q375v2 x9v5kkp x11ci167"
292
+ className: "xjyslct x13hkpcx x13xm7is x1y0btm7 x7c24we xzgztj1 x1ry1pnm x1ypdohk x1fe00qh x131ut49 x1v899x5 x5vhmdc x1a2a7pz x15cgg x1cot6zx xzx43f0 x5efcpy x10l6tqk x3m8u43 x13vifvy xdshaxz x7h6xqb xscx6xn x1bkdxzg xh3kehl x3s8dm3 x7yqiub x1q375v2 x9v5kkp x11ci167"
524
293
  },
525
294
  1: {
526
- className: "xjyslct x13hkpcx x13xm7is x1y0btm7 x7c24we xzgztj1 x1ry1pnm x1ypdohk x14e0hi7 x131ut49 x1v899x5 xb8l8e1 x1a2a7pz x15cgg x1cot6zx x1o2uyhu x3dtjyh x10l6tqk x3m8u43 x1bkdxzg xh3kehl x3s8dm3 x7yqiub x1q375v2 x9v5kkp x11ci167 x1ey2m1c x80663w"
295
+ className: "xjyslct x13hkpcx x13xm7is x1y0btm7 x7c24we xzgztj1 x1ry1pnm x1ypdohk x1fe00qh x131ut49 x1v899x5 x5vhmdc x1a2a7pz x15cgg x1cot6zx xzx43f0 x5efcpy x10l6tqk x3m8u43 xdshaxz x7h6xqb xscx6xn x1bkdxzg xh3kehl x3s8dm3 x7yqiub x1q375v2 x9v5kkp x11ci167 x1ey2m1c x80663w"
527
296
  }
528
- }[!!isTop << 0], children: "Clear all" }) : null;
529
- let t7;
530
- if ($[5] !== t3 || $[6] !== t4 || $[7] !== t5 || $[8] !== t6) {
531
- t7 = /* @__PURE__ */ jsxs("div", { ref: stackRef, style: t3, ...t4, children: [
532
- t5,
533
- t6
297
+ }[!!isTop << 0], children: clearAllProps?.children ?? "Clear all" }) : null;
298
+ let t9;
299
+ if ($[7] !== t6 || $[8] !== t7 || $[9] !== t8) {
300
+ t9 = /* @__PURE__ */ jsxs("div", { ref: stackRef, ...t6, children: [
301
+ t7,
302
+ t8
534
303
  ] });
535
- $[5] = t3;
536
- $[6] = t4;
537
- $[7] = t5;
538
- $[8] = t6;
539
- $[9] = t7;
304
+ $[7] = t6;
305
+ $[8] = t7;
306
+ $[9] = t8;
307
+ $[10] = t9;
540
308
  } else {
541
- t7 = $[9];
309
+ t9 = $[10];
542
310
  }
543
- return t7;
311
+ return t9;
544
312
  }
545
- function _temp() {
313
+ function _temp2() {
546
314
  return toast.close();
547
315
  }
316
+ function _temp(item) {
317
+ return item.id;
318
+ }
548
319
  function Toaster(t0) {
549
- const $ = _c(18);
320
+ const $ = _c(20);
321
+ let clearAllProps;
550
322
  let props2;
551
323
  let t1;
552
324
  let t2;
@@ -554,112 +326,116 @@ function Toaster(t0) {
554
326
  ({
555
327
  limit: t1,
556
328
  position: t2,
329
+ clearAllProps,
557
330
  ...props2
558
331
  } = t0);
559
332
  $[0] = t0;
560
- $[1] = props2;
561
- $[2] = t1;
562
- $[3] = t2;
333
+ $[1] = clearAllProps;
334
+ $[2] = props2;
335
+ $[3] = t1;
336
+ $[4] = t2;
563
337
  } else {
564
- props2 = $[1];
565
- t1 = $[2];
566
- t2 = $[3];
338
+ clearAllProps = $[1];
339
+ props2 = $[2];
340
+ t1 = $[3];
341
+ t2 = $[4];
567
342
  }
568
343
  const limit = t1 === void 0 ? 3 : t1;
569
344
  const position = t2 === void 0 ? "bottom-right" : t2;
570
345
  let t3;
571
- if ($[4] !== position) {
346
+ if ($[5] !== position) {
572
347
  t3 = position.split("-");
573
- $[4] = position;
574
- $[5] = t3;
348
+ $[5] = position;
349
+ $[6] = t3;
575
350
  } else {
576
- t3 = $[5];
351
+ t3 = $[6];
577
352
  }
578
353
  const [verticalPosition, horizontalPosition] = t3;
579
354
  let t4;
580
- if ($[6] !== horizontalPosition || $[7] !== verticalPosition) {
355
+ if ($[7] !== horizontalPosition || $[8] !== verticalPosition) {
581
356
  t4 = {
582
357
  0: {
583
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj x19hvrdr"
358
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f x19hvrdr"
584
359
  },
585
360
  8: {
586
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj xs8ca6r"
361
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f xs8ca6r"
587
362
  },
588
363
  4: {
589
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj x19hvrdr x19f49xq"
364
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f x19hvrdr x19f49xq"
590
365
  },
591
366
  12: {
592
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj xs8ca6r x19f49xq"
367
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f xs8ca6r x19f49xq"
593
368
  },
594
369
  2: {
595
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj x19hvrdr x1nrll8i xuuh30"
370
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f x19hvrdr x1nrll8i xuuh30"
596
371
  },
597
372
  10: {
598
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj xs8ca6r x1nrll8i xuuh30"
373
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f xs8ca6r x1nrll8i xuuh30"
599
374
  },
600
375
  6: {
601
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj x19hvrdr x1nrll8i xuuh30"
376
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f x19hvrdr x1nrll8i xuuh30"
602
377
  },
603
378
  14: {
604
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj xs8ca6r x1nrll8i xuuh30"
379
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f xs8ca6r x1nrll8i xuuh30"
605
380
  },
606
381
  1: {
607
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj x19hvrdr xpg08jz"
382
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f x19hvrdr xpg08jz"
608
383
  },
609
384
  9: {
610
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj xs8ca6r xpg08jz"
385
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f xs8ca6r xpg08jz"
611
386
  },
612
387
  5: {
613
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj x19hvrdr x19f49xq xpg08jz"
388
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f x19hvrdr x19f49xq xpg08jz"
614
389
  },
615
390
  13: {
616
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj xs8ca6r x19f49xq xpg08jz"
391
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f xs8ca6r x19f49xq xpg08jz"
617
392
  },
618
393
  3: {
619
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj x19hvrdr x1nrll8i xuuh30 xpg08jz"
394
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f x19hvrdr x1nrll8i xuuh30 xpg08jz"
620
395
  },
621
396
  11: {
622
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj xs8ca6r x1nrll8i xuuh30 xpg08jz"
397
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f xs8ca6r x1nrll8i xuuh30 xpg08jz"
623
398
  },
624
399
  7: {
625
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj x19hvrdr x1nrll8i xuuh30 xpg08jz"
400
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f x19hvrdr x1nrll8i xuuh30 xpg08jz"
626
401
  },
627
402
  15: {
628
- className: "xowlazn x1a2a7pz x47corl xixxii4 xjdehy0 x6y048q xeffijn xac14zw x1jm5hub xsbdbit x1scyh3n xptpqrj xs8ca6r x1nrll8i xuuh30 xpg08jz"
403
+ className: "x1vsl49y x1a2a7pz x47corl xixxii4 x28sg2i xo8g89 xeffijn xac14zw xpt8f1b x1k5f8bl x3fz2wu x14yfvmx x2aypkt x3s059f xs8ca6r x1nrll8i xuuh30 xpg08jz"
629
404
  }
630
405
  }[!!(verticalPosition === "top") << 3 | !!(horizontalPosition === "left") << 2 | !!(horizontalPosition === "center") << 1 | !!(horizontalPosition === "right") << 0];
631
- $[6] = horizontalPosition;
632
- $[7] = verticalPosition;
633
- $[8] = t4;
406
+ $[7] = horizontalPosition;
407
+ $[8] = verticalPosition;
408
+ $[9] = t4;
634
409
  } else {
635
- t4 = $[8];
410
+ t4 = $[9];
636
411
  }
637
412
  let t5;
638
- if ($[9] !== position) {
639
- t5 = /* @__PURE__ */ jsx2(ToastStack, { position });
640
- $[9] = position;
641
- $[10] = t5;
413
+ if ($[10] !== clearAllProps || $[11] !== position) {
414
+ t5 = /* @__PURE__ */ jsx(ToastStack, { position, clearAllProps });
415
+ $[10] = clearAllProps;
416
+ $[11] = position;
417
+ $[12] = t5;
642
418
  } else {
643
- t5 = $[10];
419
+ t5 = $[12];
644
420
  }
645
421
  let t6;
646
- if ($[11] !== t4 || $[12] !== t5) {
647
- t6 = /* @__PURE__ */ jsx2(ToastPrimitive.Portal, { children: /* @__PURE__ */ jsx2(ToastPrimitive.Viewport, { ...t4, children: t5 }) });
648
- $[11] = t4;
649
- $[12] = t5;
650
- $[13] = t6;
422
+ if ($[13] !== t4 || $[14] !== t5) {
423
+ t6 = /* @__PURE__ */ jsx(ToastPrimitive.Portal, { children: /* @__PURE__ */ jsx(ToastPrimitive.Viewport, { ...t4, children: t5 }) });
424
+ $[13] = t4;
425
+ $[14] = t5;
426
+ $[15] = t6;
651
427
  } else {
652
- t6 = $[13];
428
+ t6 = $[15];
653
429
  }
654
430
  let t7;
655
- if ($[14] !== limit || $[15] !== props2 || $[16] !== t6) {
656
- t7 = /* @__PURE__ */ jsx2(ToastPrimitive.Provider, { ...props2, limit, toastManager: toast, children: t6 });
657
- $[14] = limit;
658
- $[15] = props2;
659
- $[16] = t6;
660
- $[17] = t7;
431
+ if ($[16] !== limit || $[17] !== props2 || $[18] !== t6) {
432
+ t7 = /* @__PURE__ */ jsx(ToastPrimitive.Provider, { ...props2, limit, toastManager: toast, children: t6 });
433
+ $[16] = limit;
434
+ $[17] = props2;
435
+ $[18] = t6;
436
+ $[19] = t7;
661
437
  } else {
662
- t7 = $[17];
438
+ t7 = $[19];
663
439
  }
664
440
  return t7;
665
441
  }