@ngrok/mantle 0.79.3 → 0.80.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 (193) hide show
  1. package/dist/accordion.d.ts +169 -12
  2. package/dist/accordion.js +1 -1
  3. package/dist/agent.json +1 -1
  4. package/dist/alert-dialog.d.ts +496 -30
  5. package/dist/alert-dialog.js +1 -1
  6. package/dist/alert.d.ts +129 -9
  7. package/dist/alert.js +1 -1
  8. package/dist/anchor-_2meGDfj.js +1 -0
  9. package/dist/anchor.d.ts +2 -2
  10. package/dist/anchor.js +1 -1
  11. package/dist/as-child-D23mGo4f.d.ts +49 -0
  12. package/dist/badge.d.ts +44 -5
  13. package/dist/badge.js +1 -1
  14. package/dist/breadcrumb.d.ts +214 -14
  15. package/dist/breadcrumb.js +1 -1
  16. package/dist/button-5WsvzIQ6.js +1 -0
  17. package/dist/{button-DcXOWUYo.d.ts → button-BPMwa2jN.d.ts} +3 -3
  18. package/dist/button-D9n09xUg.js +1 -0
  19. package/dist/button.d.ts +3 -3
  20. package/dist/button.js +1 -1
  21. package/dist/calendar.d.ts +0 -3
  22. package/dist/calendar.js +1 -1
  23. package/dist/card.d.ts +146 -9
  24. package/dist/card.js +1 -1
  25. package/dist/centered-layout.d.ts +224 -8
  26. package/dist/centered-layout.js +1 -1
  27. package/dist/checkbox-Cq17y0-R.js +1 -0
  28. package/dist/checkbox.d.ts +12 -10
  29. package/dist/checkbox.js +1 -1
  30. package/dist/choice-Cc8dA5r8.js +1 -0
  31. package/dist/choice-Ct0KK8jw.d.ts +269 -0
  32. package/dist/choice.d.ts +1 -252
  33. package/dist/choice.js +1 -1
  34. package/dist/code-block.d.ts +270 -50
  35. package/dist/code-block.js +6 -6
  36. package/dist/code.d.ts +3 -2
  37. package/dist/code.js +1 -1
  38. package/dist/combobox.d.ts +190 -11
  39. package/dist/combobox.js +1 -1
  40. package/dist/command.d.ts +285 -81
  41. package/dist/command.js +1 -1
  42. package/dist/compose-refs-BdBMM9ga.js +1 -0
  43. package/dist/data-table.d.ts +33 -5
  44. package/dist/data-table.js +1 -1
  45. package/dist/description-list.d.ts +79 -6
  46. package/dist/description-list.js +1 -1
  47. package/dist/dialog-CQ2C6vkE.js +1 -0
  48. package/dist/dialog.d.ts +239 -18
  49. package/dist/dialog.js +1 -1
  50. package/dist/dropdown-menu-CSCDdA3K.js +1 -0
  51. package/dist/{dropdown-menu-DP_Ne9Mr.d.ts → dropdown-menu-CoyozLzy.d.ts} +170 -29
  52. package/dist/dropdown-menu.d.ts +2 -2
  53. package/dist/dropdown-menu.js +1 -1
  54. package/dist/empty.d.ts +1 -1
  55. package/dist/empty.js +1 -1
  56. package/dist/field.d.ts +596 -45
  57. package/dist/field.js +1 -1
  58. package/dist/flag.d.ts +0 -3
  59. package/dist/flag.js +1 -1
  60. package/dist/hooks.d.ts +3 -4
  61. package/dist/hooks.js +1 -1
  62. package/dist/hover-card.d.ts +54 -4
  63. package/dist/hover-card.js +1 -1
  64. package/dist/{icon-Cevjo93X.d.ts → icon-BDqpcZ-n.d.ts} +1 -1
  65. package/dist/icon-CGgMKpJg.js +1 -0
  66. package/dist/{icon-button-BvQvT790.d.ts → icon-button-C1AfGnQx.d.ts} +6 -60
  67. package/dist/icon-button-DiOhreJD.js +1 -0
  68. package/dist/icon.d.ts +2 -2
  69. package/dist/icon.js +1 -1
  70. package/dist/icons.d.ts +5 -13
  71. package/dist/icons.js +1 -1
  72. package/dist/{in-view-nkSOdED2.d.ts → in-view-DDEGUKDR.d.ts} +17 -9
  73. package/dist/index-B8mIWKIU.d.ts +211 -0
  74. package/dist/{index-Rv8RL7xy.d.ts → index-BtwKJTLq.d.ts} +1 -1
  75. package/dist/{index-BSAizFod.d.ts → index-C2jj8U4a.d.ts} +5 -5
  76. package/dist/index-CdPXa9h1.d.ts +1 -0
  77. package/dist/{index-D47aqlpz.d.ts → index-DA4ig3gj.d.ts} +1 -1
  78. package/dist/input-CVyAVbim.js +1 -0
  79. package/dist/{types-C19IR7jf.d.ts → input-DV9M6K4v.d.ts} +42 -2
  80. package/dist/input.d.ts +4 -55
  81. package/dist/input.js +1 -1
  82. package/dist/{label-v2-bv98k.d.ts → label-C6YH9skg.d.ts} +8 -6
  83. package/dist/label-D-D11mlp.js +1 -0
  84. package/dist/label.d.ts +1 -1
  85. package/dist/label.js +1 -1
  86. package/dist/list.d.ts +150 -6
  87. package/dist/list.js +1 -1
  88. package/dist/llms.txt +1 -1
  89. package/dist/main.d.ts +20 -4
  90. package/dist/main.js +1 -1
  91. package/dist/media-object.d.ts +27 -4
  92. package/dist/media-object.js +1 -1
  93. package/dist/multi-select.d.ts +312 -15
  94. package/dist/multi-select.js +1 -1
  95. package/dist/otp-input.d.ts +129 -5
  96. package/dist/otp-input.js +1 -1
  97. package/dist/pagination.d.ts +70 -6
  98. package/dist/pagination.js +1 -1
  99. package/dist/popover-CBMADtjV.js +1 -0
  100. package/dist/popover.d.ts +1 -181
  101. package/dist/popover.js +1 -1
  102. package/dist/primitive-CJRIlrLz.d.ts +31 -0
  103. package/dist/primitive-DCPHJsRs.js +1 -0
  104. package/dist/progress.js +1 -1
  105. package/dist/qr-code.d.ts +113 -5
  106. package/dist/qr-code.js +1 -1
  107. package/dist/radio-group.d.ts +128 -23
  108. package/dist/radio-group.js +1 -1
  109. package/dist/sandboxed-on-click.d.ts +2 -2
  110. package/dist/sandboxed-on-click.js +1 -1
  111. package/dist/select-SR_9-bxA.js +1 -0
  112. package/dist/select-idm1jy7y.d.ts +600 -0
  113. package/dist/select.d.ts +1 -1
  114. package/dist/select.js +1 -1
  115. package/dist/selectable-list.d.ts +252 -298
  116. package/dist/selectable-list.js +1 -1
  117. package/dist/separator-B5UmkVRL.d.ts +75 -0
  118. package/dist/separator-bpE_kooz.js +1 -0
  119. package/dist/separator.d.ts +1 -52
  120. package/dist/separator.js +1 -1
  121. package/dist/sheet.d.ts +295 -21
  122. package/dist/sheet.js +1 -1
  123. package/dist/skeleton-CsbUHbBA.js +1 -0
  124. package/dist/skeleton.d.ts +4 -7
  125. package/dist/skeleton.js +1 -1
  126. package/dist/skip-to-main-link.d.ts +24 -4
  127. package/dist/skip-to-main-link.js +1 -1
  128. package/dist/slot-CDk0Bb9z.js +1 -0
  129. package/dist/slot.d.ts +1 -1
  130. package/dist/slot.js +1 -1
  131. package/dist/{sort-BPX2Fk9t.js → sort-B_DDQcVD.js} +1 -1
  132. package/dist/split-button.d.ts +28 -13
  133. package/dist/split-button.js +1 -1
  134. package/dist/{svg-only-BFeFS1aa.d.ts → svg-only-CdI_v82i.d.ts} +1 -1
  135. package/dist/svg-only-d-nMCfAI.js +1 -0
  136. package/dist/switch.d.ts +9 -6
  137. package/dist/switch.js +1 -1
  138. package/dist/table-DUSvU_Jw.d.ts +875 -0
  139. package/dist/table-GDkapNFi.js +1 -0
  140. package/dist/table.d.ts +1 -1
  141. package/dist/table.js +1 -1
  142. package/dist/tabs.d.ts +135 -21
  143. package/dist/tabs.js +1 -1
  144. package/dist/text-area.d.ts +1 -1
  145. package/dist/text-area.js +1 -1
  146. package/dist/theme-provider-BftkIiZn.js +1 -0
  147. package/dist/theme-switcher.d.ts +110 -29
  148. package/dist/theme-switcher.js +1 -1
  149. package/dist/theme-wVnzzx2F.js +1 -0
  150. package/dist/theme.d.ts +53 -14
  151. package/dist/theme.js +1 -1
  152. package/dist/toast-DKgMRv4F.js +1 -0
  153. package/dist/toast.d.ts +98 -10
  154. package/dist/toast.js +1 -1
  155. package/dist/tooltip.d.ts +28 -1
  156. package/dist/tooltip.js +1 -1
  157. package/dist/{traffic-policy-file-0g5RXFqu.js → traffic-policy-file-CF1lbWtp.js} +1 -1
  158. package/dist/types.d.ts +2 -2
  159. package/dist/utils.d.ts +1 -1
  160. package/dist/utils.js +1 -1
  161. package/dist/virtual-UrzmaSQm.js +1 -0
  162. package/dist/well.d.ts +3 -3
  163. package/dist/well.js +1 -1
  164. package/package.json +3 -3
  165. package/dist/anchor-C_tjSVy6.js +0 -1
  166. package/dist/as-child-CYEVu1WY.d.ts +0 -23
  167. package/dist/button-5t6-JS_I.js +0 -1
  168. package/dist/button-ClC60Nzg.js +0 -1
  169. package/dist/checkbox-DJ2xl7Rc.js +0 -1
  170. package/dist/choice-DOdyNzFC.js +0 -1
  171. package/dist/compose-refs-Cjf2gfB8.js +0 -1
  172. package/dist/dialog-vxLIvB8M.js +0 -1
  173. package/dist/dropdown-menu-Bt1aKF1g.js +0 -1
  174. package/dist/icon-CDtYjF_H.js +0 -1
  175. package/dist/icon-button-DV2-GZHf.js +0 -1
  176. package/dist/index-g2rfwNCH.d.ts +0 -1
  177. package/dist/input-Ct1YOqSy.js +0 -1
  178. package/dist/label-BMlHW_2D.js +0 -1
  179. package/dist/popover-D5WxxnBY.js +0 -1
  180. package/dist/primitive-C64-m48O.d.ts +0 -13
  181. package/dist/primitive-IKruV2iB.js +0 -1
  182. package/dist/select-Bwt2YduR.d.ts +0 -345
  183. package/dist/select-D-5u0Blc.js +0 -1
  184. package/dist/separator-kBnnv3Cw.js +0 -1
  185. package/dist/skeleton-Bu3tgNcW.js +0 -1
  186. package/dist/slot-DmPrjM7N.js +0 -1
  187. package/dist/svg-only-DDx6FtJd.js +0 -1
  188. package/dist/table-CPH2md2-.js +0 -1
  189. package/dist/table-CwFHXC-G.d.ts +0 -414
  190. package/dist/theme-D3MDng6U.js +0 -1
  191. package/dist/theme-provider-C9zpDyJW.js +0 -1
  192. package/dist/toast-BsCjaMVS.js +0 -1
  193. package/dist/virtual-DZMBu7Ch.js +0 -1
@@ -1,8 +1,8 @@
1
- import { t as WithAsChild } from "./as-child-CYEVu1WY.js";
1
+ import { n as WithAsChild } from "./as-child-D23mGo4f.js";
2
2
  import { t as SvgAttributes } from "./types-D1RY5Tcj.js";
3
3
  import { t as ButtonIntent } from "./intents-DdSKSj1c.js";
4
- import { n as ButtonAppearance, r as ButtonProps } from "./button-DcXOWUYo.js";
5
- import { t as Root$1 } from "./primitive-C64-m48O.js";
4
+ import { n as ButtonAppearance, r as ButtonProps } from "./button-BPMwa2jN.js";
5
+ import { a as Root$1, n as Content$1, o as Title$1, r as Description$1, s as Trigger$1, t as Close$1 } from "./primitive-CJRIlrLz.js";
6
6
  import { ComponentProps, ReactNode } from "react";
7
7
  //#region src/components/alert-dialog/alert-dialog.d.ts
8
8
  declare const intents: readonly ["info", "danger"];
@@ -57,6 +57,304 @@ type AlertDialogProps = ComponentProps<typeof Root$1> & {
57
57
  * ```
58
58
  */
59
59
  declare function Root({ intent, ...props }: AlertDialogProps): import("react").JSX.Element;
60
+ /**
61
+ * A button that opens the Alert Dialog.
62
+ *
63
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogtrigger
64
+ *
65
+ * @example
66
+ * ```tsx
67
+ * <AlertDialog.Root intent="danger">
68
+ * <AlertDialog.Trigger asChild>
69
+ * <Button type="button" appearance="outlined" intent="neutral">
70
+ * Show Danger Alert Dialog
71
+ * </Button>
72
+ * </AlertDialog.Trigger>
73
+ * <AlertDialog.Content>
74
+ * <AlertDialog.Icon />
75
+ * <AlertDialog.Body>
76
+ * <AlertDialog.Header>
77
+ * <AlertDialog.Title>
78
+ * Are you absolutely sure?
79
+ * </AlertDialog.Title>
80
+ * <AlertDialog.Description>
81
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
82
+ * </AlertDialog.Description>
83
+ * </AlertDialog.Header>
84
+ * <AlertDialog.Footer>
85
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
86
+ * <AlertDialog.Action type="button">
87
+ * Continue
88
+ * </AlertDialog.Action>
89
+ * </AlertDialog.Footer>
90
+ * </AlertDialog.Body>
91
+ * </AlertDialog.Content>
92
+ * </AlertDialog.Root>
93
+ * ```
94
+ */
95
+ declare const Trigger: {
96
+ ({ ref, ...props }: ComponentProps<typeof Trigger$1>): import("react").JSX.Element;
97
+ displayName: string;
98
+ };
99
+ type AlertDialogContentProps = ComponentProps<typeof Content$1> & {
100
+ /**
101
+ * The preferred width of the `AlertDialogContent` as a tailwind `max-w-` class.
102
+ *
103
+ * By default, a `AlertDialog`'s content width is responsive with a default
104
+ * preferred width: the maximum width of the `AlertDialogContent`
105
+ *
106
+ * @default `max-w-md`
107
+ */
108
+ preferredWidth?: `max-w-${string}`;
109
+ };
110
+ /**
111
+ * The popover alert dialog container.
112
+ *
113
+ * Renders on top of the overlay and is centered in the viewport.
114
+ *
115
+ * `AlertDialog.Content` renders its floating layer at Tailwind `z-50`,
116
+ * Mantle's shared floating z-index. When multiple shared layers are open, the
117
+ * most recently mounted layer renders on top.
118
+ *
119
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogcontent
120
+ *
121
+ * @example
122
+ * ```tsx
123
+ * <AlertDialog.Root intent="danger">
124
+ * <AlertDialog.Trigger asChild>
125
+ * <Button type="button" appearance="outlined" intent="neutral">
126
+ * Show Danger Alert Dialog
127
+ * </Button>
128
+ * </AlertDialog.Trigger>
129
+ * <AlertDialog.Content>
130
+ * <AlertDialog.Icon />
131
+ * <AlertDialog.Body>
132
+ * <AlertDialog.Header>
133
+ * <AlertDialog.Title>
134
+ * Are you absolutely sure?
135
+ * </AlertDialog.Title>
136
+ * <AlertDialog.Description>
137
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
138
+ * </AlertDialog.Description>
139
+ * </AlertDialog.Header>
140
+ * <AlertDialog.Footer>
141
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
142
+ * <AlertDialog.Action type="button">
143
+ * Continue
144
+ * </AlertDialog.Action>
145
+ * </AlertDialog.Footer>
146
+ * </AlertDialog.Body>
147
+ * </AlertDialog.Content>
148
+ * </AlertDialog.Root>
149
+ * ```
150
+ */
151
+ declare const Content: {
152
+ ({ className, preferredWidth, ref, ...props }: AlertDialogContentProps): import("react").JSX.Element;
153
+ displayName: string;
154
+ };
155
+ /**
156
+ * Contains the main content of the alert dialog.
157
+ *
158
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogbody
159
+ *
160
+ * @example
161
+ * ```tsx
162
+ * <AlertDialog.Root intent="danger">
163
+ * <AlertDialog.Trigger asChild>
164
+ * <Button type="button" appearance="outlined" intent="neutral">
165
+ * Show Danger Alert Dialog
166
+ * </Button>
167
+ * </AlertDialog.Trigger>
168
+ * <AlertDialog.Content>
169
+ * <AlertDialog.Icon />
170
+ * <AlertDialog.Body>
171
+ * <AlertDialog.Header>
172
+ * <AlertDialog.Title>
173
+ * Are you absolutely sure?
174
+ * </AlertDialog.Title>
175
+ * <AlertDialog.Description>
176
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
177
+ * </AlertDialog.Description>
178
+ * </AlertDialog.Header>
179
+ * <AlertDialog.Footer>
180
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
181
+ * <AlertDialog.Action type="button">
182
+ * Continue
183
+ * </AlertDialog.Action>
184
+ * </AlertDialog.Footer>
185
+ * </AlertDialog.Body>
186
+ * </AlertDialog.Content>
187
+ * </AlertDialog.Root>
188
+ * ```
189
+ */
190
+ declare const Body: {
191
+ ({ asChild, className, ref, ...props }: ComponentProps<"div"> & WithAsChild): import("react").JSX.Element;
192
+ displayName: string;
193
+ };
194
+ /**
195
+ * Contains the header content of the dialog, including the title and description.
196
+ *
197
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogheader
198
+ *
199
+ * @example
200
+ * ```tsx
201
+ * <AlertDialog.Root intent="danger">
202
+ * <AlertDialog.Trigger asChild>
203
+ * <Button type="button" appearance="outlined" intent="neutral">
204
+ * Show Danger Alert Dialog
205
+ * </Button>
206
+ * </AlertDialog.Trigger>
207
+ * <AlertDialog.Content>
208
+ * <AlertDialog.Icon />
209
+ * <AlertDialog.Body>
210
+ * <AlertDialog.Header>
211
+ * <AlertDialog.Title>
212
+ * Are you absolutely sure?
213
+ * </AlertDialog.Title>
214
+ * <AlertDialog.Description>
215
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
216
+ * </AlertDialog.Description>
217
+ * </AlertDialog.Header>
218
+ * <AlertDialog.Footer>
219
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
220
+ * <AlertDialog.Action type="button">
221
+ * Continue
222
+ * </AlertDialog.Action>
223
+ * </AlertDialog.Footer>
224
+ * </AlertDialog.Body>
225
+ * </AlertDialog.Content>
226
+ * </AlertDialog.Root>
227
+ * ```
228
+ */
229
+ declare const Header: {
230
+ ({ asChild, className, ref, ...props }: ComponentProps<"div"> & WithAsChild): import("react").JSX.Element;
231
+ displayName: string;
232
+ };
233
+ /**
234
+ * Contains the footer content of the dialog, including the action and cancel buttons.
235
+ *
236
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogfooter
237
+ *
238
+ * @example
239
+ * ```tsx
240
+ * <AlertDialog.Root intent="danger">
241
+ * <AlertDialog.Trigger asChild>
242
+ * <Button type="button" appearance="outlined" intent="neutral">
243
+ * Show Danger Alert Dialog
244
+ * </Button>
245
+ * </AlertDialog.Trigger>
246
+ * <AlertDialog.Content>
247
+ * <AlertDialog.Icon />
248
+ * <AlertDialog.Body>
249
+ * <AlertDialog.Header>
250
+ * <AlertDialog.Title>
251
+ * Are you absolutely sure?
252
+ * </AlertDialog.Title>
253
+ * <AlertDialog.Description>
254
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
255
+ * </AlertDialog.Description>
256
+ * </AlertDialog.Header>
257
+ * <AlertDialog.Footer>
258
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
259
+ * <AlertDialog.Action type="button">
260
+ * Continue
261
+ * </AlertDialog.Action>
262
+ * </AlertDialog.Footer>
263
+ * </AlertDialog.Body>
264
+ * </AlertDialog.Content>
265
+ * </AlertDialog.Root>
266
+ * ```
267
+ */
268
+ declare const Footer: {
269
+ ({ asChild, className, ref, ...props }: ComponentProps<"div"> & WithAsChild): import("react").JSX.Element;
270
+ displayName: string;
271
+ };
272
+ /**
273
+ * An accessible name to be announced when the dialog is opened.
274
+ *
275
+ * Alternatively, you can provide `aria-label` or `aria-labelledby` to
276
+ * `AlertDialogContent` and exclude this component.
277
+ *
278
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogtitle
279
+ *
280
+ * @example
281
+ * ```tsx
282
+ * <AlertDialog.Root intent="danger">
283
+ * <AlertDialog.Trigger asChild>
284
+ * <Button type="button" appearance="outlined" intent="neutral">
285
+ * Show Danger Alert Dialog
286
+ * </Button>
287
+ * </AlertDialog.Trigger>
288
+ * <AlertDialog.Content>
289
+ * <AlertDialog.Icon />
290
+ * <AlertDialog.Body>
291
+ * <AlertDialog.Header>
292
+ * <AlertDialog.Title>
293
+ * Are you absolutely sure?
294
+ * </AlertDialog.Title>
295
+ * <AlertDialog.Description>
296
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
297
+ * </AlertDialog.Description>
298
+ * </AlertDialog.Header>
299
+ * <AlertDialog.Footer>
300
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
301
+ * <AlertDialog.Action type="button">
302
+ * Continue
303
+ * </AlertDialog.Action>
304
+ * </AlertDialog.Footer>
305
+ * </AlertDialog.Body>
306
+ * </AlertDialog.Content>
307
+ * </AlertDialog.Root>
308
+ * ```
309
+ */
310
+ declare const Title: {
311
+ ({ className, ref, ...props }: ComponentProps<typeof Title$1>): import("react").JSX.Element;
312
+ displayName: string;
313
+ };
314
+ /**
315
+ * An accessible description to be announced when the dialog is opened.
316
+ * Renders as a `div` by default, but can be changed to any other element using
317
+ * the `asChild` prop.
318
+ *
319
+ * Alternatively, you can provide `aria-describedby` to `AlertDialogContent` and
320
+ * exclude this component.
321
+ *
322
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogdescription
323
+ *
324
+ * @example
325
+ * ```tsx
326
+ * <AlertDialog.Root intent="danger">
327
+ * <AlertDialog.Trigger asChild>
328
+ * <Button type="button" appearance="outlined" intent="neutral">
329
+ * Show Danger Alert Dialog
330
+ * </Button>
331
+ * </AlertDialog.Trigger>
332
+ * <AlertDialog.Content>
333
+ * <AlertDialog.Icon />
334
+ * <AlertDialog.Body>
335
+ * <AlertDialog.Header>
336
+ * <AlertDialog.Title>
337
+ * Are you absolutely sure?
338
+ * </AlertDialog.Title>
339
+ * <AlertDialog.Description>
340
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
341
+ * </AlertDialog.Description>
342
+ * </AlertDialog.Header>
343
+ * <AlertDialog.Footer>
344
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
345
+ * <AlertDialog.Action type="button">
346
+ * Continue
347
+ * </AlertDialog.Action>
348
+ * </AlertDialog.Footer>
349
+ * </AlertDialog.Body>
350
+ * </AlertDialog.Content>
351
+ * </AlertDialog.Root>
352
+ * ```
353
+ */
354
+ declare const Description: {
355
+ ({ className, ref, ...props }: ComponentProps<typeof Description$1>): import("react").JSX.Element;
356
+ displayName: string;
357
+ };
60
358
  type AlertDialogActionProps = Omit<ButtonProps, "appearance" | "intent"> & {
61
359
  /**
62
360
  * The visual style of the action button. Optional here — `AlertDialog.Action`
@@ -69,12 +367,57 @@ type AlertDialogActionProps = Omit<ButtonProps, "appearance" | "intent"> & {
69
367
  /**
70
368
  * The tone of the action button. Optional here — when omitted,
71
369
  * `AlertDialog.Action` derives the tone from the parent `AlertDialog.Root`'s
72
- * `intent` (`"danger"` → `"danger"`, `"info"` → `"accent"`), so the Action
73
- * carries the dialog's tone the same way its icon does. A passed value
74
- * always wins over the context-derived tone.
370
+ * `intent` (`"danger"` → `"danger"`, `"info"` → `"neutral"`). A passed
371
+ * value always wins over the context-derived tone.
75
372
  */
76
373
  intent?: ButtonIntent;
77
374
  };
375
+ /**
376
+ * A button that confirms the Alert Dialog action.
377
+ * Will default to appearance="filled", with a tone derived from the `AlertDialog`'s
378
+ * intent: danger dialogs get a danger button, info dialogs get a neutral one.
379
+ * Does not close the alert dialog by default.
380
+ *
381
+ * These buttons should be distinguished visually from the AlertDialogCancel button.
382
+ *
383
+ * Composes around the mantle Button component.
384
+ *
385
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogaction
386
+ *
387
+ * @example
388
+ * ```tsx
389
+ * <AlertDialog.Root intent="danger">
390
+ * <AlertDialog.Trigger asChild>
391
+ * <Button type="button" appearance="outlined" intent="neutral">
392
+ * Show Danger Alert Dialog
393
+ * </Button>
394
+ * </AlertDialog.Trigger>
395
+ * <AlertDialog.Content>
396
+ * <AlertDialog.Icon />
397
+ * <AlertDialog.Body>
398
+ * <AlertDialog.Header>
399
+ * <AlertDialog.Title>
400
+ * Are you absolutely sure?
401
+ * </AlertDialog.Title>
402
+ * <AlertDialog.Description>
403
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
404
+ * </AlertDialog.Description>
405
+ * </AlertDialog.Header>
406
+ * <AlertDialog.Footer>
407
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
408
+ * <AlertDialog.Action type="button">
409
+ * Continue
410
+ * </AlertDialog.Action>
411
+ * </AlertDialog.Footer>
412
+ * </AlertDialog.Body>
413
+ * </AlertDialog.Content>
414
+ * </AlertDialog.Root>
415
+ * ```
416
+ */
417
+ declare const Action: {
418
+ ({ appearance, intent, ref, ...props }: AlertDialogActionProps): import("react").JSX.Element;
419
+ displayName: string;
420
+ };
78
421
  type AlertDialogCancelProps = Omit<ButtonProps, "appearance" | "intent"> & {
79
422
  /**
80
423
  * The visual style of the cancel button. Optional here — `AlertDialog.Cancel`
@@ -92,9 +435,143 @@ type AlertDialogCancelProps = Omit<ButtonProps, "appearance" | "intent"> & {
92
435
  */
93
436
  intent?: ButtonIntent;
94
437
  };
438
+ /**
439
+ * A button that closes the dialog and cancels the action.
440
+ * Will default to appearance="outlined" and intent="neutral".
441
+ *
442
+ * This button should be distinguished visually from AlertDialogAction buttons.
443
+ *
444
+ * Composes around the mantle Button component.
445
+ *
446
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogcancel
447
+ *
448
+ * @example
449
+ * ```tsx
450
+ * <AlertDialog.Root intent="danger">
451
+ * <AlertDialog.Trigger asChild>
452
+ * <Button type="button" appearance="outlined" intent="neutral">
453
+ * Show Danger Alert Dialog
454
+ * </Button>
455
+ * </AlertDialog.Trigger>
456
+ * <AlertDialog.Content>
457
+ * <AlertDialog.Icon />
458
+ * <AlertDialog.Body>
459
+ * <AlertDialog.Header>
460
+ * <AlertDialog.Title>
461
+ * Are you absolutely sure?
462
+ * </AlertDialog.Title>
463
+ * <AlertDialog.Description>
464
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
465
+ * </AlertDialog.Description>
466
+ * </AlertDialog.Header>
467
+ * <AlertDialog.Footer>
468
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
469
+ * <AlertDialog.Action type="button">
470
+ * Continue
471
+ * </AlertDialog.Action>
472
+ * </AlertDialog.Footer>
473
+ * </AlertDialog.Body>
474
+ * </AlertDialog.Content>
475
+ * </AlertDialog.Root>
476
+ * ```
477
+ */
478
+ declare const Cancel: {
479
+ ({ appearance, className, intent, ref, ...props }: AlertDialogCancelProps): import("react").JSX.Element;
480
+ displayName: string;
481
+ };
95
482
  type AlertDialogIconProps = Omit<SvgAttributes, "children"> & {
96
483
  svg?: ReactNode;
97
484
  };
485
+ /**
486
+ * An icon that visually represents the intent of the AlertDialog.
487
+ *
488
+ * Defaults to a warning icon for danger intent and an info icon for info
489
+ * intent with the appropriate color.
490
+ *
491
+ * Can be overridden with a custom icon using the `svg` prop.
492
+ *
493
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogicon
494
+ *
495
+ * @example
496
+ * ```tsx
497
+ * <AlertDialog.Root intent="danger">
498
+ * <AlertDialog.Trigger asChild>
499
+ * <Button type="button" appearance="outlined" intent="neutral">
500
+ * Show Danger Alert Dialog
501
+ * </Button>
502
+ * </AlertDialog.Trigger>
503
+ * <AlertDialog.Content>
504
+ * <AlertDialog.Icon />
505
+ * <AlertDialog.Body>
506
+ * <AlertDialog.Header>
507
+ * <AlertDialog.Title>
508
+ * Are you absolutely sure?
509
+ * </AlertDialog.Title>
510
+ * <AlertDialog.Description>
511
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
512
+ * </AlertDialog.Description>
513
+ * </AlertDialog.Header>
514
+ * <AlertDialog.Footer>
515
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
516
+ * <AlertDialog.Action type="button">
517
+ * Continue
518
+ * </AlertDialog.Action>
519
+ * </AlertDialog.Footer>
520
+ * </AlertDialog.Body>
521
+ * </AlertDialog.Content>
522
+ * </AlertDialog.Root>
523
+ * ```
524
+ */
525
+ declare const Icon: {
526
+ ({ className, ref, svg, ...props }: AlertDialogIconProps): import("react").JSX.Element;
527
+ displayName: string;
528
+ };
529
+ /**
530
+ * A button that closes the Alert Dialog. (Unstyled)
531
+ *
532
+ * `AlertDialog.Cancel` already closes the dialog by default. Reach for
533
+ * `AlertDialog.Close` when you need to attach close behavior to a custom
534
+ * element (typically wrapping `AlertDialog.Action` with `asChild` so the
535
+ * action both performs the operation and dismisses the dialog).
536
+ *
537
+ * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogclose
538
+ *
539
+ * @example
540
+ * ```tsx
541
+ * <AlertDialog.Root intent="danger">
542
+ * <AlertDialog.Trigger asChild>
543
+ * <Button type="button" appearance="outlined" intent="neutral">
544
+ * Show Danger Alert Dialog
545
+ * </Button>
546
+ * </AlertDialog.Trigger>
547
+ * <AlertDialog.Content>
548
+ * <AlertDialog.Icon />
549
+ * <AlertDialog.Body>
550
+ * <AlertDialog.Header>
551
+ * <AlertDialog.Title>
552
+ * Are you absolutely sure?
553
+ * </AlertDialog.Title>
554
+ * <AlertDialog.Description>
555
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
556
+ * </AlertDialog.Description>
557
+ * </AlertDialog.Header>
558
+ * <AlertDialog.Footer>
559
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
560
+ * <AlertDialog.Close asChild>
561
+ * <AlertDialog.Action type="button" onClick={() => doThing()}>
562
+ * Do thing and close
563
+ * </AlertDialog.Action>
564
+ * </AlertDialog.Close>
565
+ * </AlertDialog.Footer>
566
+ * </AlertDialog.Body>
567
+ * </AlertDialog.Content>
568
+ * </AlertDialog.Root>
569
+ * ```
570
+ */
571
+ declare const Close: {
572
+ ({ ref, ...props }: ComponentProps<typeof Close$1>): import("react").JSX.Element;
573
+ displayName: string;
574
+ };
98
575
  /**
99
576
  * A modal dialog that interrupts the user with important content and expects a
100
577
  * response. Use AlertDialog for destructive or irreversible confirmations
@@ -205,9 +682,8 @@ declare const AlertDialog: {
205
682
  * A button that confirms the Alert Dialog action. Defaults to
206
683
  * `appearance="filled"`, with a tone derived from the parent
207
684
  * `AlertDialog.Root`'s intent: danger dialogs get a danger button, info
208
- * dialogs get an accent one the Action carries the dialog's tone the
209
- * same way its icon does. Does not close the dialog by default — wrap
210
- * with `AlertDialog.Close asChild` if the action should also dismiss.
685
+ * dialogs get a neutral one. Does not close the dialog by default — wrap with
686
+ * `AlertDialog.Close asChild` if the action should also dismiss.
211
687
  *
212
688
  * @see https://mantle.ngrok.com/components/overlays/alert-dialog#alertdialogaction
213
689
  *
@@ -241,7 +717,7 @@ declare const AlertDialog: {
241
717
  * </AlertDialog.Root>
242
718
  * ```
243
719
  */
244
- readonly Action: import("react").ForwardRefExoticComponent<Omit<AlertDialogActionProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
720
+ readonly Action: typeof Action;
245
721
  /**
246
722
  * Contains the main content of the alert dialog. Wraps the header and footer
247
723
  * inside `AlertDialog.Content` next to `AlertDialog.Icon`.
@@ -278,7 +754,7 @@ declare const AlertDialog: {
278
754
  * </AlertDialog.Root>
279
755
  * ```
280
756
  */
281
- readonly Body: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
757
+ readonly Body: typeof Body;
282
758
  /**
283
759
  * A button that closes the dialog and cancels the action. Defaults to
284
760
  * `appearance="outlined"` and `intent="neutral"` so it visually
@@ -316,7 +792,7 @@ declare const AlertDialog: {
316
792
  * </AlertDialog.Root>
317
793
  * ```
318
794
  */
319
- readonly Cancel: import("react").ForwardRefExoticComponent<Omit<AlertDialogCancelProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
795
+ readonly Cancel: typeof Cancel;
320
796
  /**
321
797
  * A button that closes the Alert Dialog. (Unstyled) Typically wrapped
322
798
  * around `AlertDialog.Action` with `asChild` so the action both performs
@@ -356,7 +832,7 @@ declare const AlertDialog: {
356
832
  * </AlertDialog.Root>
357
833
  * ```
358
834
  */
359
- readonly Close: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
835
+ readonly Close: typeof Close;
360
836
  /**
361
837
  * The popover alert dialog container. Renders on top of the overlay,
362
838
  * centered in the viewport.
@@ -397,17 +873,7 @@ declare const AlertDialog: {
397
873
  * </AlertDialog.Root>
398
874
  * ```
399
875
  */
400
- readonly Content: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
401
- /**
402
- * The preferred width of the `AlertDialogContent` as a tailwind `max-w-` class.
403
- *
404
- * By default, a `AlertDialog`'s content width is responsive with a default
405
- * preferred width: the maximum width of the `AlertDialogContent`
406
- *
407
- * @default `max-w-md`
408
- */
409
- preferredWidth?: `max-w-${string}`;
410
- } & import("react").RefAttributes<HTMLDivElement>>;
876
+ readonly Content: typeof Content;
411
877
  /**
412
878
  * An accessible description to be announced when the dialog is opened.
413
879
  * Renders as a `div` by default; can be changed via the `asChild` prop.
@@ -444,7 +910,7 @@ declare const AlertDialog: {
444
910
  * </AlertDialog.Root>
445
911
  * ```
446
912
  */
447
- readonly Description: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
913
+ readonly Description: typeof Description;
448
914
  /**
449
915
  * Contains the footer content of the dialog, including the action and
450
916
  * cancel buttons.
@@ -481,7 +947,7 @@ declare const AlertDialog: {
481
947
  * </AlertDialog.Root>
482
948
  * ```
483
949
  */
484
- readonly Footer: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
950
+ readonly Footer: typeof Footer;
485
951
  /**
486
952
  * Contains the header content of the dialog, including the title and
487
953
  * description.
@@ -518,7 +984,7 @@ declare const AlertDialog: {
518
984
  * </AlertDialog.Root>
519
985
  * ```
520
986
  */
521
- readonly Header: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
987
+ readonly Header: typeof Header;
522
988
  /**
523
989
  * An icon that visually represents the intent of the AlertDialog.
524
990
  * Defaults to a warning icon for `danger` and an info icon for `info`. Can
@@ -556,7 +1022,7 @@ declare const AlertDialog: {
556
1022
  * </AlertDialog.Root>
557
1023
  * ```
558
1024
  */
559
- readonly Icon: import("react").ForwardRefExoticComponent<Omit<AlertDialogIconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
1025
+ readonly Icon: typeof Icon;
560
1026
  /**
561
1027
  * An accessible name to be announced when the dialog is opened.
562
1028
  * Alternatively, provide `aria-label` or `aria-labelledby` to
@@ -594,7 +1060,7 @@ declare const AlertDialog: {
594
1060
  * </AlertDialog.Root>
595
1061
  * ```
596
1062
  */
597
- readonly Title: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
1063
+ readonly Title: typeof Title;
598
1064
  /**
599
1065
  * A button that opens the Alert Dialog.
600
1066
  *
@@ -630,7 +1096,7 @@ declare const AlertDialog: {
630
1096
  * </AlertDialog.Root>
631
1097
  * ```
632
1098
  */
633
- readonly Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
1099
+ readonly Trigger: typeof Trigger;
634
1100
  };
635
1101
  //#endregion
636
1102
  export { AlertDialog };
@@ -1 +1 @@
1
- import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./svg-only-DDx6FtJd.js";import{t as n}from"./slot-DmPrjM7N.js";import{t as r}from"./button-ClC60Nzg.js";import{a as i,c as a,i as o,n as s,o as c,r as l,s as u,t as d}from"./primitive-IKruV2iB.js";import{createContext as f,forwardRef as p,useContext as m,useMemo as h}from"react";import g from"tiny-invariant";import{jsx as _,jsxs as v}from"react/jsx-runtime";import{InfoIcon as y}from"@phosphor-icons/react/Info";import{WarningIcon as b}from"@phosphor-icons/react/Warning";const x=f(null);function S(){let e=m(x);return g(e,`AlertDialog child component used outside of AlertDialog parent!`),e}function C({intent:e,...t}){let n=h(()=>({intent:e}),[e]);return _(x.Provider,{value:n,children:_(c,{...t})})}C.displayName=`AlertDialog`;const w=p(({...e},t)=>_(a,{ref:t,"data-slot":`alert-dialog-trigger`,...e}));w.displayName=`AlertDialogTrigger`;const T=i;T.displayName=`AlertDialogPortal`;const E=p(({className:t,...n},r)=>_(o,{"data-slot":`alert-dialog-overlay`,className:e(`data-state-open:animate-in data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:fade-in-0 bg-overlay fixed inset-0 z-50 backdrop-blur-xs`,t),...n,ref:r}));E.displayName=`AlertDialogOverlay`;const D=p(({className:t,preferredWidth:n=`max-w-md`,...r},i)=>v(T,{children:[_(E,{}),_(`div`,{className:`fixed inset-4 z-50 flex items-center justify-center`,children:_(s,{"data-slot":`alert-dialog-content`,"data-mantle-modal-content":!0,ref:i,className:e(`flex w-full flex-1 flex-col items-center gap-4 sm:flex-row sm:items-start`,`outline-hidden focus-within:outline-hidden`,`p-6`,`border-dialog bg-dialog rounded-xl border shadow-lg transition-transform duration-200`,`data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95`,n,t),...r})})]}));D.displayName=`AlertDialogContent`;const O=p(({asChild:t=!1,className:r,...i},a)=>_(t?n:`div`,{"data-slot":`alert-dialog-body`,className:e(`flex-1 space-y-4`,r),ref:a,...i}));O.displayName=`AlertDialogBody`;const k=p(({asChild:t=!1,className:r,...i},a)=>_(t?n:`div`,{"data-slot":`alert-dialog-header`,className:e(`flex flex-col space-y-2 text-center sm:text-start`,r),ref:a,...i}));k.displayName=`AlertDialogHeader`;const A=p(({asChild:t=!1,className:r,...i},a)=>_(t?n:`div`,{"data-slot":`alert-dialog-footer`,className:e(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,r),ref:a,...i}));A.displayName=`AlertDialogFooter`;const j=p(({className:t,...n},r)=>_(u,{ref:r,"data-slot":`alert-dialog-title`,className:e(`text-strong text-center text-lg font-medium sm:text-start`,t),...n}));j.displayName=`AlertDialogTitle`;const M=p(({className:t,...n},r)=>_(l,{ref:r,"data-slot":`alert-dialog-description`,className:e(`text-body text-center text-sm font-normal sm:text-start`,t),...n}));M.displayName=`AlertDialogDescription`;const N={danger:`danger`,info:`accent`},P=p(({appearance:e=`filled`,intent:t,...n},i)=>{let a=S(),o=N[a.intent];return _(r,{appearance:e,"data-slot":`alert-dialog-action`,intent:t??o,ref:i,...n})});P.displayName=`AlertDialogAction`;const F=p(({appearance:t=`outlined`,className:n,intent:i=`neutral`,...a},o)=>_(d,{asChild:!0,children:_(r,{appearance:t,"data-slot":`alert-dialog-cancel`,className:e(`mt-2 sm:mt-0`,n),intent:i,ref:o,...a})}));F.displayName=`AlertDialogCancel`;const I={danger:_(b,{}),info:_(y,{})},L={danger:`text-danger-600`,info:`text-accent-600`},R=p(({className:n,svg:r,...i},a)=>{let o=S(),s=L[o.intent],c=I[o.intent];return _(t,{ref:a,"data-slot":`alert-dialog-icon`,className:e(`size-12 sm:size-7`,s,n),svg:r??c,...i})});R.displayName=`AlertDialogIcon`;const z=p(({...e},t)=>_(d,{ref:t,"data-slot":`alert-dialog-close`,...e}));z.displayName=`AlertDialogClose`;const B={Root:C,Action:P,Body:O,Cancel:F,Close:z,Content:D,Description:M,Footer:A,Header:k,Icon:R,Title:j,Trigger:w};export{B as AlertDialog};
1
+ import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./svg-only-d-nMCfAI.js";import{t as n}from"./slot-CDk0Bb9z.js";import{t as r}from"./button-5WsvzIQ6.js";import{a as i,c as a,i as o,n as s,o as c,r as l,s as u,t as d}from"./primitive-DCPHJsRs.js";import{createContext as f,useContext as p,useMemo as m}from"react";import h from"tiny-invariant";import{jsx as g,jsxs as _}from"react/jsx-runtime";import{InfoIcon as v}from"@phosphor-icons/react/Info";import{WarningIcon as y}from"@phosphor-icons/react/Warning";const b=f(null);function x(){let e=p(b);return h(e,`AlertDialog child component used outside of AlertDialog parent!`),e}function S({intent:e,...t}){let n=m(()=>({intent:e}),[e]);return g(b.Provider,{value:n,children:g(c,{...t})})}S.displayName=`AlertDialog`;const C=({ref:e,...t})=>g(a,{ref:e,"data-slot":`alert-dialog-trigger`,...t});C.displayName=`AlertDialogTrigger`;const w=i;w.displayName=`AlertDialogPortal`;const T=({className:t,ref:n,...r})=>g(o,{"data-slot":`alert-dialog-overlay`,className:e(`data-state-open:animate-in data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:fade-in-0 bg-overlay fixed inset-0 z-50 backdrop-blur-xs`,t),...r,ref:n}),E=({className:t,preferredWidth:n=`max-w-md`,ref:r,...i})=>_(w,{children:[g(T,{}),g(`div`,{className:`fixed inset-4 z-50 flex items-center justify-center`,children:g(s,{"data-slot":`alert-dialog-content`,"data-mantle-modal-content":!0,ref:r,className:e(`flex w-full flex-1 flex-col items-center gap-4 sm:flex-row sm:items-start`,`outline-hidden focus-within:outline-hidden`,`p-6`,`border-dialog bg-dialog rounded-xl border shadow-lg transition-transform duration-200`,`data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95`,n,t),...i})})]});E.displayName=`AlertDialogContent`;const D=({asChild:t=!1,className:r,ref:i,...a})=>g(t?n:`div`,{"data-slot":`alert-dialog-body`,className:e(`flex-1 space-y-4`,r),ref:i,...a});D.displayName=`AlertDialogBody`;const O=({asChild:t=!1,className:r,ref:i,...a})=>g(t?n:`div`,{"data-slot":`alert-dialog-header`,className:e(`flex flex-col space-y-2 text-center sm:text-start`,r),ref:i,...a});O.displayName=`AlertDialogHeader`;const k=({asChild:t=!1,className:r,ref:i,...a})=>g(t?n:`div`,{"data-slot":`alert-dialog-footer`,className:e(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,r),ref:i,...a});k.displayName=`AlertDialogFooter`;const A=({className:t,ref:n,...r})=>g(u,{ref:n,"data-slot":`alert-dialog-title`,className:e(`text-strong text-center text-lg font-medium sm:text-start`,t),...r});A.displayName=`AlertDialogTitle`;const j=({className:t,ref:n,...r})=>g(l,{ref:n,"data-slot":`alert-dialog-description`,className:e(`text-body text-center text-sm font-normal sm:text-start`,t),...r});j.displayName=`AlertDialogDescription`;const M={danger:`danger`,info:`neutral`},N=({appearance:e=`filled`,intent:t,ref:n,...i})=>{let a=x(),o=M[a.intent];return g(r,{appearance:e,"data-slot":`alert-dialog-action`,intent:t??o,ref:n,...i})};N.displayName=`AlertDialogAction`;const P=({appearance:t=`outlined`,className:n,intent:i=`neutral`,ref:a,...o})=>g(d,{asChild:!0,children:g(r,{appearance:t,"data-slot":`alert-dialog-cancel`,className:e(`mt-2 sm:mt-0`,n),intent:i,ref:a,...o})});P.displayName=`AlertDialogCancel`;const F={danger:g(y,{}),info:g(v,{})},I={danger:`text-danger-600`,info:`text-accent-600`},L=({className:n,ref:r,svg:i,...a})=>{let o=x(),s=I[o.intent],c=F[o.intent];return g(t,{ref:r,"data-slot":`alert-dialog-icon`,className:e(`size-12 sm:size-7`,s,n),svg:i??c,...a})};L.displayName=`AlertDialogIcon`;const R=({ref:e,...t})=>g(d,{ref:e,"data-slot":`alert-dialog-close`,...t});R.displayName=`AlertDialogClose`;const z={Root:S,Action:N,Body:D,Cancel:P,Close:R,Content:E,Description:j,Footer:k,Header:O,Icon:L,Title:A,Trigger:C};export{z as AlertDialog};