@ngrok/mantle 0.70.2 → 0.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +4 -0
  2. package/dist/agent.json +76 -0
  3. package/dist/alert-dialog.d.ts +337 -90
  4. package/dist/alert-dialog.js.map +1 -1
  5. package/dist/alert.js.map +1 -1
  6. package/dist/anchor-2stEauOz.js.map +1 -1
  7. package/dist/anchor.d.ts +45 -4
  8. package/dist/badge.d.ts +32 -3
  9. package/dist/badge.js.map +1 -1
  10. package/dist/{button-BMgAxAwM.d.ts → button-Bq0x5Pv4.d.ts} +4 -4
  11. package/dist/button.d.ts +1 -1
  12. package/dist/checkbox.d.ts +1 -1
  13. package/dist/code-block.d.ts +1 -1
  14. package/dist/code-block_highlight-utils.d.ts +1 -1
  15. package/dist/code.d.ts +22 -1
  16. package/dist/code.js.map +1 -1
  17. package/dist/combobox.d.ts +10 -0
  18. package/dist/combobox.js.map +1 -1
  19. package/dist/command.d.ts +7 -7
  20. package/dist/command.js.map +1 -1
  21. package/dist/copy-to-clipboard-DjOD_Mwb.js.map +1 -1
  22. package/dist/data-table.d.ts +303 -22
  23. package/dist/data-table.js.map +1 -1
  24. package/dist/dialog-BHzl9eye.js.map +1 -1
  25. package/dist/dialog.d.ts +6 -1
  26. package/dist/flag.d.ts +33 -4
  27. package/dist/flag.js.map +1 -1
  28. package/dist/hooks.d.ts +297 -72
  29. package/dist/hooks.js.map +1 -1
  30. package/dist/hover-card.d.ts +15 -10
  31. package/dist/hover-card.js.map +1 -1
  32. package/dist/icons.js.map +1 -1
  33. package/dist/{index-DMAkXvFI.d.ts → index-C91lxoX9.d.ts} +55 -12
  34. package/dist/input.d.ts +1 -1
  35. package/dist/input.js.map +1 -1
  36. package/dist/kbd-CAVUiqBT.js.map +1 -1
  37. package/dist/kbd.d.ts +37 -8
  38. package/dist/label.d.ts +40 -9
  39. package/dist/label.js.map +1 -1
  40. package/dist/llms.txt +77 -0
  41. package/dist/media-object.d.ts +26 -10
  42. package/dist/media-object.js.map +1 -1
  43. package/dist/multi-select.d.ts +185 -34
  44. package/dist/multi-select.js.map +1 -1
  45. package/dist/otp-input.d.ts +167 -0
  46. package/dist/otp-input.js +2 -0
  47. package/dist/otp-input.js.map +1 -0
  48. package/dist/pagination.d.ts +1 -1
  49. package/dist/pagination.js.map +1 -1
  50. package/dist/popover.d.ts +7 -5
  51. package/dist/popover.js.map +1 -1
  52. package/dist/primitive-tXm_8n_t.js.map +1 -1
  53. package/dist/progress.js.map +1 -1
  54. package/dist/resolve-pre-rendered-props-C-kiaLHj.js.map +1 -1
  55. package/dist/{resolve-pre-rendered-props-x-52gvQ1.d.ts → resolve-pre-rendered-props-CNUnH1fU.d.ts} +2 -2
  56. package/dist/select-DOgdZO0Q.js.map +1 -1
  57. package/dist/{select-BjpP51vO.d.ts → select-DZutJxyr.d.ts} +9 -1
  58. package/dist/select.d.ts +1 -1
  59. package/dist/separator-DSOIrnhj.js.map +1 -1
  60. package/dist/sheet.d.ts +5 -1
  61. package/dist/sheet.js.map +1 -1
  62. package/dist/skeleton.d.ts +32 -5
  63. package/dist/skeleton.js.map +1 -1
  64. package/dist/sort-DzCsa6Qj.js.map +1 -1
  65. package/dist/split-button.d.ts +1 -1
  66. package/dist/{table--DsTqaWO.d.ts → table-BsNJBKiq.d.ts} +7 -3
  67. package/dist/table-Cl4nlRMR.js.map +1 -1
  68. package/dist/table.d.ts +1 -1
  69. package/dist/theme-provider-BFcnjeME.js.map +1 -1
  70. package/dist/theme.d.ts +1 -1
  71. package/dist/theme.js.map +1 -1
  72. package/dist/tooltip.d.ts +31 -14
  73. package/dist/tooltip.js.map +1 -1
  74. package/dist/use-copy-to-clipboard-C7vsjJe-.js.map +1 -1
  75. package/dist/use-matches-media-query-CojcYxlA.js.map +1 -1
  76. package/dist/use-prefers-reduced-motion-aXfsyo-k.js.map +1 -1
  77. package/package.json +14 -7
@@ -68,7 +68,12 @@ type AlertDialogIconProps = Omit<SvgAttributes, "children"> & {
68
68
  };
69
69
  /**
70
70
  * A modal dialog that interrupts the user with important content and expects a
71
- * response.
71
+ * response. Use AlertDialog for destructive or irreversible confirmations
72
+ * (delete, sign out, leave without saving) where the user must explicitly
73
+ * acknowledge before proceeding — it blocks all background interaction by
74
+ * default. For non-destructive input modals or confirmation flows, use
75
+ * `Dialog` instead. For side-panel content (filter panels, detail views,
76
+ * navigation drawers), use `Sheet`.
72
77
  *
73
78
  * @see https://mantle.ngrok.com/components/alert-dialog
74
79
  *
@@ -120,7 +125,11 @@ type AlertDialogIconProps = Omit<SvgAttributes, "children"> & {
120
125
  */
121
126
  declare const AlertDialog: {
122
127
  /**
123
- * A modal dialog that interrupts the user with important content and expects a response.
128
+ * The root stateful component for the Alert Dialog. Wraps the trigger and
129
+ * content and exposes the required `priority` prop (`"danger"` for
130
+ * destructive actions, `"info"` for informational confirmations) which
131
+ * propagates color to descendants like `AlertDialog.Icon` and
132
+ * `AlertDialog.Action`.
124
133
  *
125
134
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogroot
126
135
  *
@@ -129,19 +138,25 @@ declare const AlertDialog: {
129
138
  * <AlertDialog.Root priority="danger">
130
139
  * <AlertDialog.Trigger asChild>
131
140
  * <Button type="button" appearance="outlined">
132
- * Show Alert Dialog
141
+ * Show Danger Alert Dialog
133
142
  * </Button>
134
143
  * </AlertDialog.Trigger>
135
144
  * <AlertDialog.Content>
136
145
  * <AlertDialog.Icon />
137
146
  * <AlertDialog.Body>
138
147
  * <AlertDialog.Header>
139
- * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
140
- * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
148
+ * <AlertDialog.Title>
149
+ * Are you absolutely sure?
150
+ * </AlertDialog.Title>
151
+ * <AlertDialog.Description>
152
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
153
+ * </AlertDialog.Description>
141
154
  * </AlertDialog.Header>
142
155
  * <AlertDialog.Footer>
143
- * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
144
- * <AlertDialog.Action>Continue</AlertDialog.Action>
156
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
157
+ * <AlertDialog.Action type="button">
158
+ * Continue
159
+ * </AlertDialog.Action>
145
160
  * </AlertDialog.Footer>
146
161
  * </AlertDialog.Body>
147
162
  * </AlertDialog.Content>
@@ -150,22 +165,47 @@ declare const AlertDialog: {
150
165
  */
151
166
  readonly Root: typeof Root;
152
167
  /**
153
- * A button that confirms the Alert Dialog action.
168
+ * A button that confirms the Alert Dialog action. Defaults to
169
+ * `appearance="filled"` and inherits the priority color from the parent
170
+ * `AlertDialog.Root`. Does not close the dialog by default — wrap with
171
+ * `AlertDialog.Close asChild` if the action should also dismiss.
154
172
  *
155
173
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogaction
156
174
  *
157
175
  * @example
158
176
  * ```tsx
159
- * <AlertDialog.Footer>
160
- * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
161
- * <AlertDialog.Action>Continue</AlertDialog.Action>
162
- * </AlertDialog.Footer>
177
+ * <AlertDialog.Root priority="danger">
178
+ * <AlertDialog.Trigger asChild>
179
+ * <Button type="button" appearance="outlined">
180
+ * Show Danger Alert Dialog
181
+ * </Button>
182
+ * </AlertDialog.Trigger>
183
+ * <AlertDialog.Content>
184
+ * <AlertDialog.Icon />
185
+ * <AlertDialog.Body>
186
+ * <AlertDialog.Header>
187
+ * <AlertDialog.Title>
188
+ * Are you absolutely sure?
189
+ * </AlertDialog.Title>
190
+ * <AlertDialog.Description>
191
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
192
+ * </AlertDialog.Description>
193
+ * </AlertDialog.Header>
194
+ * <AlertDialog.Footer>
195
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
196
+ * <AlertDialog.Action type="button">
197
+ * Continue
198
+ * </AlertDialog.Action>
199
+ * </AlertDialog.Footer>
200
+ * </AlertDialog.Body>
201
+ * </AlertDialog.Content>
202
+ * </AlertDialog.Root>
163
203
  * ```
164
204
  */
165
205
  readonly Action: _$react.ForwardRefExoticComponent<(Omit<_$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<_$class_variance_authority0.VariantProps<(props?: ({
166
206
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
167
207
  isLoading?: boolean | null | undefined;
168
- priority?: "danger" | "neutral" | "default" | null | undefined;
208
+ priority?: "default" | "danger" | "neutral" | null | undefined;
169
209
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string>>> & {
170
210
  icon?: ReactNode;
171
211
  iconPlacement?: "start" | "end";
@@ -175,7 +215,7 @@ declare const AlertDialog: {
175
215
  }, "ref"> | Omit<_$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<_$class_variance_authority0.VariantProps<(props?: ({
176
216
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
177
217
  isLoading?: boolean | null | undefined;
178
- priority?: "danger" | "neutral" | "default" | null | undefined;
218
+ priority?: "default" | "danger" | "neutral" | null | undefined;
179
219
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string>>> & {
180
220
  icon?: ReactNode;
181
221
  iconPlacement?: "start" | "end";
@@ -184,45 +224,83 @@ declare const AlertDialog: {
184
224
  type: Exclude<ComponentProps<"button">["type"], undefined>;
185
225
  }, "ref">) & _$react.RefAttributes<HTMLButtonElement>>;
186
226
  /**
187
- * Contains the main content of the alert dialog.
227
+ * Contains the main content of the alert dialog. Wraps the header and footer
228
+ * inside `AlertDialog.Content` next to `AlertDialog.Icon`.
188
229
  *
189
230
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogbody
190
231
  *
191
232
  * @example
192
233
  * ```tsx
193
- * <AlertDialog.Content>
194
- * <AlertDialog.Icon />
195
- * <AlertDialog.Body>
196
- * <AlertDialog.Header>
197
- * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
198
- * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
199
- * </AlertDialog.Header>
200
- * <AlertDialog.Footer>
201
- * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
202
- * <AlertDialog.Action>Continue</AlertDialog.Action>
203
- * </AlertDialog.Footer>
204
- * </AlertDialog.Body>
205
- * </AlertDialog.Content>
234
+ * <AlertDialog.Root priority="danger">
235
+ * <AlertDialog.Trigger asChild>
236
+ * <Button type="button" appearance="outlined">
237
+ * Show Danger Alert Dialog
238
+ * </Button>
239
+ * </AlertDialog.Trigger>
240
+ * <AlertDialog.Content>
241
+ * <AlertDialog.Icon />
242
+ * <AlertDialog.Body>
243
+ * <AlertDialog.Header>
244
+ * <AlertDialog.Title>
245
+ * Are you absolutely sure?
246
+ * </AlertDialog.Title>
247
+ * <AlertDialog.Description>
248
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
249
+ * </AlertDialog.Description>
250
+ * </AlertDialog.Header>
251
+ * <AlertDialog.Footer>
252
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
253
+ * <AlertDialog.Action type="button">
254
+ * Continue
255
+ * </AlertDialog.Action>
256
+ * </AlertDialog.Footer>
257
+ * </AlertDialog.Body>
258
+ * </AlertDialog.Content>
259
+ * </AlertDialog.Root>
206
260
  * ```
207
261
  */
208
262
  readonly Body: _$react.ForwardRefExoticComponent<Omit<_$react.ClassAttributes<HTMLDivElement> & _$react.HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
209
263
  /**
210
- * A button that closes the dialog and cancels the action.
264
+ * A button that closes the dialog and cancels the action. Defaults to
265
+ * `appearance="outlined"` and `priority="neutral"` so it visually
266
+ * de-emphasizes against `AlertDialog.Action`.
211
267
  *
212
268
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogcancel
213
269
  *
214
270
  * @example
215
271
  * ```tsx
216
- * <AlertDialog.Footer>
217
- * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
218
- * <AlertDialog.Action>Continue</AlertDialog.Action>
219
- * </AlertDialog.Footer>
272
+ * <AlertDialog.Root priority="danger">
273
+ * <AlertDialog.Trigger asChild>
274
+ * <Button type="button" appearance="outlined">
275
+ * Show Danger Alert Dialog
276
+ * </Button>
277
+ * </AlertDialog.Trigger>
278
+ * <AlertDialog.Content>
279
+ * <AlertDialog.Icon />
280
+ * <AlertDialog.Body>
281
+ * <AlertDialog.Header>
282
+ * <AlertDialog.Title>
283
+ * Are you absolutely sure?
284
+ * </AlertDialog.Title>
285
+ * <AlertDialog.Description>
286
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
287
+ * </AlertDialog.Description>
288
+ * </AlertDialog.Header>
289
+ * <AlertDialog.Footer>
290
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
291
+ * <AlertDialog.Action type="button">
292
+ * Continue
293
+ * </AlertDialog.Action>
294
+ * </AlertDialog.Footer>
295
+ * </AlertDialog.Body>
296
+ * </AlertDialog.Content>
297
+ * </AlertDialog.Root>
220
298
  * ```
221
299
  */
222
300
  readonly Cancel: _$react.ForwardRefExoticComponent<(Omit<_$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<_$class_variance_authority0.VariantProps<(props?: ({
223
301
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
224
302
  isLoading?: boolean | null | undefined;
225
- priority?: "danger" | "neutral" | "default" | null | undefined;
303
+ priority?: "default" | "danger" | "neutral" | null | undefined;
226
304
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string>>> & {
227
305
  icon?: ReactNode;
228
306
  iconPlacement?: "start" | "end";
@@ -232,7 +310,7 @@ declare const AlertDialog: {
232
310
  }, "ref"> | Omit<_$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<_$class_variance_authority0.VariantProps<(props?: ({
233
311
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
234
312
  isLoading?: boolean | null | undefined;
235
- priority?: "danger" | "neutral" | "default" | null | undefined;
313
+ priority?: "default" | "danger" | "neutral" | null | undefined;
236
314
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string>>> & {
237
315
  icon?: ReactNode;
238
316
  iconPlacement?: "start" | "end";
@@ -241,43 +319,79 @@ declare const AlertDialog: {
241
319
  type: Exclude<ComponentProps<"button">["type"], undefined>;
242
320
  }, "ref">) & _$react.RefAttributes<HTMLButtonElement>>;
243
321
  /**
244
- * A button that closes the Alert Dialog. (Unstyled)
322
+ * A button that closes the Alert Dialog. (Unstyled) Typically wrapped
323
+ * around `AlertDialog.Action` with `asChild` so the action both performs
324
+ * the operation and dismisses the dialog.
245
325
  *
246
326
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogclose
247
327
  *
248
328
  * @example
249
329
  * ```tsx
250
- * <AlertDialog.Close asChild>
251
- * <AlertDialog.Action
252
- * type="button"
253
- * onClick={() => doThing()}
254
- * >
255
- * Do thing and close
256
- * </AlertDialog.Action>
257
- * </AlertDialog.Close>
330
+ * <AlertDialog.Root priority="danger">
331
+ * <AlertDialog.Trigger asChild>
332
+ * <Button type="button" appearance="outlined">
333
+ * Show Danger Alert Dialog
334
+ * </Button>
335
+ * </AlertDialog.Trigger>
336
+ * <AlertDialog.Content>
337
+ * <AlertDialog.Icon />
338
+ * <AlertDialog.Body>
339
+ * <AlertDialog.Header>
340
+ * <AlertDialog.Title>
341
+ * Are you absolutely sure?
342
+ * </AlertDialog.Title>
343
+ * <AlertDialog.Description>
344
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
345
+ * </AlertDialog.Description>
346
+ * </AlertDialog.Header>
347
+ * <AlertDialog.Footer>
348
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
349
+ * <AlertDialog.Close asChild>
350
+ * <AlertDialog.Action type="button" onClick={() => doThing()}>
351
+ * Do thing and close
352
+ * </AlertDialog.Action>
353
+ * </AlertDialog.Close>
354
+ * </AlertDialog.Footer>
355
+ * </AlertDialog.Body>
356
+ * </AlertDialog.Content>
357
+ * </AlertDialog.Root>
258
358
  * ```
259
359
  */
260
360
  readonly Close: _$react.ForwardRefExoticComponent<Omit<_$_radix_ui_react_dialog0.DialogCloseProps & _$react.RefAttributes<HTMLButtonElement>, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
261
361
  /**
262
- * The popover alert dialog container.
362
+ * The popover alert dialog container. Renders on top of the overlay,
363
+ * centered in the viewport.
263
364
  *
264
365
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogcontent
265
366
  *
266
367
  * @example
267
368
  * ```tsx
268
- * <AlertDialog.Content>
269
- * <AlertDialog.Icon />
270
- * <AlertDialog.Body>
271
- * <AlertDialog.Header>
272
- * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
273
- * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
274
- * </AlertDialog.Header>
275
- * <AlertDialog.Footer>
276
- * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
277
- * <AlertDialog.Action>Continue</AlertDialog.Action>
278
- * </AlertDialog.Footer>
279
- * </AlertDialog.Body>
280
- * </AlertDialog.Content>
369
+ * <AlertDialog.Root priority="danger">
370
+ * <AlertDialog.Trigger asChild>
371
+ * <Button type="button" appearance="outlined">
372
+ * Show Danger Alert Dialog
373
+ * </Button>
374
+ * </AlertDialog.Trigger>
375
+ * <AlertDialog.Content>
376
+ * <AlertDialog.Icon />
377
+ * <AlertDialog.Body>
378
+ * <AlertDialog.Header>
379
+ * <AlertDialog.Title>
380
+ * Are you absolutely sure?
381
+ * </AlertDialog.Title>
382
+ * <AlertDialog.Description>
383
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
384
+ * </AlertDialog.Description>
385
+ * </AlertDialog.Header>
386
+ * <AlertDialog.Footer>
387
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
388
+ * <AlertDialog.Action type="button">
389
+ * Continue
390
+ * </AlertDialog.Action>
391
+ * </AlertDialog.Footer>
392
+ * </AlertDialog.Body>
393
+ * </AlertDialog.Content>
394
+ * </AlertDialog.Root>
281
395
  * ```
282
396
  */
283
397
  readonly Content: _$react.ForwardRefExoticComponent<Omit<Omit<_$_radix_ui_react_dialog0.DialogContentProps & _$react.RefAttributes<HTMLDivElement>, "ref"> & _$react.RefAttributes<HTMLDivElement>, "ref"> & {
@@ -293,76 +407,188 @@ declare const AlertDialog: {
293
407
  } & _$react.RefAttributes<HTMLDivElement>>;
294
408
  /**
295
409
  * An accessible description to be announced when the dialog is opened.
410
+ * Renders as a `div` by default; can be changed via the `asChild` prop.
296
411
  *
297
412
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogdescription
298
413
  *
299
414
  * @example
300
415
  * ```tsx
301
- * <AlertDialog.Header>
302
- * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
303
- * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
304
- * </AlertDialog.Header>
416
+ * <AlertDialog.Root priority="danger">
417
+ * <AlertDialog.Trigger asChild>
418
+ * <Button type="button" appearance="outlined">
419
+ * Show Danger Alert Dialog
420
+ * </Button>
421
+ * </AlertDialog.Trigger>
422
+ * <AlertDialog.Content>
423
+ * <AlertDialog.Icon />
424
+ * <AlertDialog.Body>
425
+ * <AlertDialog.Header>
426
+ * <AlertDialog.Title>
427
+ * Are you absolutely sure?
428
+ * </AlertDialog.Title>
429
+ * <AlertDialog.Description>
430
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
431
+ * </AlertDialog.Description>
432
+ * </AlertDialog.Header>
433
+ * <AlertDialog.Footer>
434
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
435
+ * <AlertDialog.Action type="button">
436
+ * Continue
437
+ * </AlertDialog.Action>
438
+ * </AlertDialog.Footer>
439
+ * </AlertDialog.Body>
440
+ * </AlertDialog.Content>
441
+ * </AlertDialog.Root>
305
442
  * ```
306
443
  */
307
444
  readonly Description: _$react.ForwardRefExoticComponent<Omit<Omit<_$_radix_ui_react_dialog0.DialogDescriptionProps & _$react.RefAttributes<HTMLParagraphElement>, "ref"> & _$react.RefAttributes<HTMLDivElement>, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
308
445
  /**
309
- * Contains the footer content of the dialog, including the action and cancel buttons.
446
+ * Contains the footer content of the dialog, including the action and
447
+ * cancel buttons.
310
448
  *
311
449
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogfooter
312
450
  *
313
451
  * @example
314
452
  * ```tsx
315
- * <AlertDialog.Footer>
316
- * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
317
- * <AlertDialog.Action>Continue</AlertDialog.Action>
318
- * </AlertDialog.Footer>
453
+ * <AlertDialog.Root priority="danger">
454
+ * <AlertDialog.Trigger asChild>
455
+ * <Button type="button" appearance="outlined">
456
+ * Show Danger Alert Dialog
457
+ * </Button>
458
+ * </AlertDialog.Trigger>
459
+ * <AlertDialog.Content>
460
+ * <AlertDialog.Icon />
461
+ * <AlertDialog.Body>
462
+ * <AlertDialog.Header>
463
+ * <AlertDialog.Title>
464
+ * Are you absolutely sure?
465
+ * </AlertDialog.Title>
466
+ * <AlertDialog.Description>
467
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
468
+ * </AlertDialog.Description>
469
+ * </AlertDialog.Header>
470
+ * <AlertDialog.Footer>
471
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
472
+ * <AlertDialog.Action type="button">
473
+ * Continue
474
+ * </AlertDialog.Action>
475
+ * </AlertDialog.Footer>
476
+ * </AlertDialog.Body>
477
+ * </AlertDialog.Content>
478
+ * </AlertDialog.Root>
319
479
  * ```
320
480
  */
321
481
  readonly Footer: _$react.ForwardRefExoticComponent<Omit<_$react.ClassAttributes<HTMLDivElement> & _$react.HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
322
482
  /**
323
- * Contains the header content of the dialog, including the title and description.
483
+ * Contains the header content of the dialog, including the title and
484
+ * description.
324
485
  *
325
486
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogheader
326
487
  *
327
488
  * @example
328
489
  * ```tsx
329
- * <AlertDialog.Header>
330
- * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
331
- * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
332
- * </AlertDialog.Header>
490
+ * <AlertDialog.Root priority="danger">
491
+ * <AlertDialog.Trigger asChild>
492
+ * <Button type="button" appearance="outlined">
493
+ * Show Danger Alert Dialog
494
+ * </Button>
495
+ * </AlertDialog.Trigger>
496
+ * <AlertDialog.Content>
497
+ * <AlertDialog.Icon />
498
+ * <AlertDialog.Body>
499
+ * <AlertDialog.Header>
500
+ * <AlertDialog.Title>
501
+ * Are you absolutely sure?
502
+ * </AlertDialog.Title>
503
+ * <AlertDialog.Description>
504
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
505
+ * </AlertDialog.Description>
506
+ * </AlertDialog.Header>
507
+ * <AlertDialog.Footer>
508
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
509
+ * <AlertDialog.Action type="button">
510
+ * Continue
511
+ * </AlertDialog.Action>
512
+ * </AlertDialog.Footer>
513
+ * </AlertDialog.Body>
514
+ * </AlertDialog.Content>
515
+ * </AlertDialog.Root>
333
516
  * ```
334
517
  */
335
518
  readonly Header: _$react.ForwardRefExoticComponent<Omit<_$react.ClassAttributes<HTMLDivElement> & _$react.HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
336
519
  /**
337
520
  * An icon that visually represents the priority of the AlertDialog.
521
+ * Defaults to a warning icon for `danger` and an info icon for `info`. Can
522
+ * be overridden via the `svg` prop.
338
523
  *
339
524
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogicon
340
525
  *
341
526
  * @example
342
527
  * ```tsx
343
- * <AlertDialog.Content>
344
- * <AlertDialog.Icon />
345
- * <AlertDialog.Body>
346
- * <AlertDialog.Header>
347
- * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
348
- * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
349
- * </AlertDialog.Header>
350
- * </AlertDialog.Body>
351
- * </AlertDialog.Content>
528
+ * <AlertDialog.Root priority="danger">
529
+ * <AlertDialog.Trigger asChild>
530
+ * <Button type="button" appearance="outlined">
531
+ * Show Danger Alert Dialog
532
+ * </Button>
533
+ * </AlertDialog.Trigger>
534
+ * <AlertDialog.Content>
535
+ * <AlertDialog.Icon />
536
+ * <AlertDialog.Body>
537
+ * <AlertDialog.Header>
538
+ * <AlertDialog.Title>
539
+ * Are you absolutely sure?
540
+ * </AlertDialog.Title>
541
+ * <AlertDialog.Description>
542
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
543
+ * </AlertDialog.Description>
544
+ * </AlertDialog.Header>
545
+ * <AlertDialog.Footer>
546
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
547
+ * <AlertDialog.Action type="button">
548
+ * Continue
549
+ * </AlertDialog.Action>
550
+ * </AlertDialog.Footer>
551
+ * </AlertDialog.Body>
552
+ * </AlertDialog.Content>
553
+ * </AlertDialog.Root>
352
554
  * ```
353
555
  */
354
556
  readonly Icon: _$react.ForwardRefExoticComponent<Omit<AlertDialogIconProps, "ref"> & _$react.RefAttributes<SVGSVGElement>>;
355
557
  /**
356
558
  * An accessible name to be announced when the dialog is opened.
559
+ * Alternatively, provide `aria-label` or `aria-labelledby` to
560
+ * `AlertDialog.Content` and exclude this component.
357
561
  *
358
562
  * @see https://mantle.ngrok.com/components/alert-dialog#alertdialogtitle
359
563
  *
360
564
  * @example
361
565
  * ```tsx
362
- * <AlertDialog.Header>
363
- * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
364
- * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
365
- * </AlertDialog.Header>
566
+ * <AlertDialog.Root priority="danger">
567
+ * <AlertDialog.Trigger asChild>
568
+ * <Button type="button" appearance="outlined">
569
+ * Show Danger Alert Dialog
570
+ * </Button>
571
+ * </AlertDialog.Trigger>
572
+ * <AlertDialog.Content>
573
+ * <AlertDialog.Icon />
574
+ * <AlertDialog.Body>
575
+ * <AlertDialog.Header>
576
+ * <AlertDialog.Title>
577
+ * Are you absolutely sure?
578
+ * </AlertDialog.Title>
579
+ * <AlertDialog.Description>
580
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
581
+ * </AlertDialog.Description>
582
+ * </AlertDialog.Header>
583
+ * <AlertDialog.Footer>
584
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
585
+ * <AlertDialog.Action type="button">
586
+ * Continue
587
+ * </AlertDialog.Action>
588
+ * </AlertDialog.Footer>
589
+ * </AlertDialog.Body>
590
+ * </AlertDialog.Content>
591
+ * </AlertDialog.Root>
366
592
  * ```
367
593
  */
368
594
  readonly Title: _$react.ForwardRefExoticComponent<Omit<_$_radix_ui_react_dialog0.DialogTitleProps & _$react.RefAttributes<HTMLHeadingElement>, "ref"> & _$react.RefAttributes<HTMLHeadingElement>>;
@@ -373,11 +599,32 @@ declare const AlertDialog: {
373
599
  *
374
600
  * @example
375
601
  * ```tsx
376
- * <AlertDialog.Trigger asChild>
377
- * <Button type="button" appearance="outlined">
378
- * Show Alert Dialog
379
- * </Button>
380
- * </AlertDialog.Trigger>
602
+ * <AlertDialog.Root priority="danger">
603
+ * <AlertDialog.Trigger asChild>
604
+ * <Button type="button" appearance="outlined">
605
+ * Show Danger Alert Dialog
606
+ * </Button>
607
+ * </AlertDialog.Trigger>
608
+ * <AlertDialog.Content>
609
+ * <AlertDialog.Icon />
610
+ * <AlertDialog.Body>
611
+ * <AlertDialog.Header>
612
+ * <AlertDialog.Title>
613
+ * Are you absolutely sure?
614
+ * </AlertDialog.Title>
615
+ * <AlertDialog.Description>
616
+ * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
617
+ * </AlertDialog.Description>
618
+ * </AlertDialog.Header>
619
+ * <AlertDialog.Footer>
620
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
621
+ * <AlertDialog.Action type="button">
622
+ * Continue
623
+ * </AlertDialog.Action>
624
+ * </AlertDialog.Footer>
625
+ * </AlertDialog.Body>
626
+ * </AlertDialog.Content>
627
+ * </AlertDialog.Root>
381
628
  * ```
382
629
  */
383
630
  readonly Trigger: _$react.ForwardRefExoticComponent<Omit<_$_radix_ui_react_dialog0.DialogTriggerProps & _$react.RefAttributes<HTMLButtonElement>, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;