@ngrok/mantle 0.32.3 → 0.40.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 (85) hide show
  1. package/dist/accordion.d.ts +72 -61
  2. package/dist/accordion.js +1 -1
  3. package/dist/accordion.js.map +1 -1
  4. package/dist/alert-dialog.d.ts +311 -462
  5. package/dist/alert-dialog.js +1 -1
  6. package/dist/alert-dialog.js.map +1 -1
  7. package/dist/alert.d.ts +113 -92
  8. package/dist/alert.js +1 -1
  9. package/dist/alert.js.map +1 -1
  10. package/dist/card.d.ts +112 -112
  11. package/dist/card.js +1 -1
  12. package/dist/card.js.map +1 -1
  13. package/dist/{chunk-IVXZIYX4.js → chunk-2ID2TLYD.js} +1 -1
  14. package/dist/chunk-2ID2TLYD.js.map +1 -0
  15. package/dist/{chunk-3X4AKTRA.js → chunk-4GGDPFNZ.js} +2 -2
  16. package/dist/chunk-4GGDPFNZ.js.map +1 -0
  17. package/dist/{chunk-ERBZR6SY.js → chunk-EYZYDUS2.js} +1 -1
  18. package/dist/chunk-EYZYDUS2.js.map +1 -0
  19. package/dist/chunk-F4N3P7B7.js +2 -0
  20. package/dist/chunk-F4N3P7B7.js.map +1 -0
  21. package/dist/{chunk-CGUSOD4E.js → chunk-HSTG2BTX.js} +1 -1
  22. package/dist/chunk-HSTG2BTX.js.map +1 -0
  23. package/dist/chunk-UUXOG7WW.js +2 -0
  24. package/dist/chunk-UUXOG7WW.js.map +1 -0
  25. package/dist/code-block.d.ts +188 -178
  26. package/dist/code-block.js +3 -3
  27. package/dist/code-block.js.map +1 -1
  28. package/dist/combobox.d.ts +178 -141
  29. package/dist/combobox.js +1 -1
  30. package/dist/combobox.js.map +1 -1
  31. package/dist/data-table.d.ts +191 -30
  32. package/dist/data-table.js +1 -1
  33. package/dist/data-table.js.map +1 -1
  34. package/dist/dialog.d.ts +374 -264
  35. package/dist/dialog.js +1 -1
  36. package/dist/dialog.js.map +1 -1
  37. package/dist/dropdown-menu.d.ts +304 -102
  38. package/dist/dropdown-menu.js +1 -1
  39. package/dist/dropdown-menu.js.map +1 -1
  40. package/dist/hover-card.d.ts +94 -58
  41. package/dist/hover-card.js +1 -1
  42. package/dist/hover-card.js.map +1 -1
  43. package/dist/icons.js +1 -1
  44. package/dist/input.d.ts +11 -0
  45. package/dist/input.js +1 -1
  46. package/dist/media-object.d.ts +75 -46
  47. package/dist/media-object.js +1 -1
  48. package/dist/media-object.js.map +1 -1
  49. package/dist/pagination.d.ts +124 -62
  50. package/dist/pagination.js +1 -1
  51. package/dist/pagination.js.map +1 -1
  52. package/dist/popover.d.ts +124 -102
  53. package/dist/popover.js +1 -1
  54. package/dist/popover.js.map +1 -1
  55. package/dist/progress.d.ts +112 -35
  56. package/dist/progress.js +1 -1
  57. package/dist/progress.js.map +1 -1
  58. package/dist/radio-group.d.ts +234 -105
  59. package/dist/radio-group.js +1 -1
  60. package/dist/radio-group.js.map +1 -1
  61. package/dist/select.d.ts +242 -212
  62. package/dist/select.js +1 -1
  63. package/dist/sheet.d.ts +343 -575
  64. package/dist/sheet.js +1 -1
  65. package/dist/sheet.js.map +1 -1
  66. package/dist/table.d.ts +384 -425
  67. package/dist/table.js +1 -1
  68. package/dist/tabs.d.ts +105 -95
  69. package/dist/tabs.js +1 -1
  70. package/dist/tabs.js.map +1 -1
  71. package/dist/theme-provider.js +1 -1
  72. package/dist/toast.d.ts +77 -61
  73. package/dist/toast.js +1 -1
  74. package/dist/tooltip.d.ts +72 -49
  75. package/dist/tooltip.js +1 -1
  76. package/dist/tooltip.js.map +1 -1
  77. package/package.json +1 -1
  78. package/dist/chunk-3X4AKTRA.js.map +0 -1
  79. package/dist/chunk-CGUSOD4E.js.map +0 -1
  80. package/dist/chunk-ERBZR6SY.js.map +0 -1
  81. package/dist/chunk-IDCDPWR4.js +0 -2
  82. package/dist/chunk-IDCDPWR4.js.map +0 -1
  83. package/dist/chunk-IVXZIYX4.js.map +0 -1
  84. package/dist/chunk-JIRNFNH5.js +0 -2
  85. package/dist/chunk-JIRNFNH5.js.map +0 -1
@@ -1,17 +1,17 @@
1
+ import * as _radix_ui_react_dialog from '@radix-ui/react-dialog';
1
2
  import { D as DeepNonNullable } from './deep-non-nullable-SmpSvoSd.js';
2
3
  import * as class_variance_authority from 'class-variance-authority';
3
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
5
  import * as react from 'react';
5
6
  import { ComponentProps, ReactNode } from 'react';
6
- import * as _radix_ui_react_dialog from '@radix-ui/react-dialog';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import { W as WithAsChild } from './as-child-DJ7x3JFV.js';
9
- import { R as Root } from './primitive-BUbUB7RS.js';
9
+ import { R as Root$1 } from './primitive-BUbUB7RS.js';
10
10
  import { S as SvgAttributes } from './types-BuKAGhC-.js';
11
11
 
12
12
  declare const priorities: readonly ["info", "danger"];
13
13
  type Priority = (typeof priorities)[number];
14
- type AlertDialogProps = ComponentProps<typeof Root> & {
14
+ type AlertDialogProps = ComponentProps<typeof Root$1> & {
15
15
  /**
16
16
  * Indicates the importance or impact level of the AlertDialog, affecting its
17
17
  * color and styling to communicate its purpose to the user.
@@ -27,491 +27,340 @@ type AlertDialogProps = ComponentProps<typeof Root> & {
27
27
  *
28
28
  * @example
29
29
  * ```tsx
30
- * <AlertDialog priority="danger">
31
- * <AlertDialogTrigger asChild>
30
+ * <AlertDialog.Root priority="danger">
31
+ * <AlertDialog.Trigger asChild>
32
32
  * <Button type="button" appearance="outlined">
33
33
  * Show Danger Alert Dialog
34
34
  * </Button>
35
- * </AlertDialogTrigger>
36
- * <AlertDialogContent>
37
- * <AlertDialogIcon />
38
- * <AlertDialogBody>
39
- * <AlertDialogHeader>
40
- * <AlertDialogTitle>
35
+ * </AlertDialog.Trigger>
36
+ * <AlertDialog.Content>
37
+ * <AlertDialog.Icon />
38
+ * <AlertDialog.Body>
39
+ * <AlertDialog.Header>
40
+ * <AlertDialog.Title>
41
41
  * Are you absolutely sure?
42
- * </AlertDialogTitle>
43
- * <AlertDialogDescription>
42
+ * </AlertDialog.Title>
43
+ * <AlertDialog.Description>
44
44
  * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
45
- * </AlertDialogDescription>
46
- * </AlertDialogHeader>
47
- * <AlertDialogFooter>
48
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
49
- * <AlertDialogAction type="button">
45
+ * </AlertDialog.Description>
46
+ * </AlertDialog.Header>
47
+ * <AlertDialog.Footer>
48
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
49
+ * <AlertDialog.Action type="button">
50
50
  * Continue
51
- * </AlertDialogAction>
52
- * </AlertDialogFooter>
53
- * </AlertDialogBody>
54
- * </AlertDialogContent>
55
- * </AlertDialog>
51
+ * </AlertDialog.Action>
52
+ * </AlertDialog.Footer>
53
+ * </AlertDialog.Body>
54
+ * </AlertDialog.Content>
55
+ * </AlertDialog.Root>
56
56
  * ```
57
57
  */
58
- declare function AlertDialog({ priority, ...props }: AlertDialogProps): react_jsx_runtime.JSX.Element;
59
- declare namespace AlertDialog {
58
+ declare function Root({ priority, ...props }: AlertDialogProps): react_jsx_runtime.JSX.Element;
59
+ declare namespace Root {
60
60
  var displayName: string;
61
61
  }
62
+ type AlertDialogIconProps = Omit<SvgAttributes, "children"> & {
63
+ svg?: ReactNode;
64
+ };
62
65
  /**
63
- * A button that opens the Alert Dialog.
64
- *
65
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-trigger
66
- *
67
- * @example
68
- * ```tsx
69
- * <AlertDialog priority="danger">
70
- * <AlertDialogTrigger asChild>
71
- * <Button type="button" appearance="outlined">
72
- * Show Danger Alert Dialog
73
- * </Button>
74
- * </AlertDialogTrigger>
75
- * <AlertDialogContent>
76
- * <AlertDialogIcon />
77
- * <AlertDialogBody>
78
- * <AlertDialogHeader>
79
- * <AlertDialogTitle>
80
- * Are you absolutely sure?
81
- * </AlertDialogTitle>
82
- * <AlertDialogDescription>
83
- * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
84
- * </AlertDialogDescription>
85
- * </AlertDialogHeader>
86
- * <AlertDialogFooter>
87
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
88
- * <AlertDialogAction type="button">
89
- * Continue
90
- * </AlertDialogAction>
91
- * </AlertDialogFooter>
92
- * </AlertDialogBody>
93
- * </AlertDialogContent>
94
- * </AlertDialog>
95
- * ```
96
- */
97
- declare const AlertDialogTrigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
98
- /**
99
- * The popover alert dialog container.
100
- *
101
- * Renders on top of the overlay and is centered in the viewport.
66
+ * A modal dialog that interrupts the user with important content and expects a
67
+ * response.
102
68
  *
103
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-content
69
+ * @see https://mantle.ngrok.com/components/alert-dialog
104
70
  *
105
71
  * @example
106
72
  * ```tsx
107
- * <AlertDialog priority="danger">
108
- * <AlertDialogTrigger asChild>
73
+ * <AlertDialog.Root priority="danger">
74
+ * <AlertDialog.Trigger asChild>
109
75
  * <Button type="button" appearance="outlined">
110
76
  * Show Danger Alert Dialog
111
77
  * </Button>
112
- * </AlertDialogTrigger>
113
- * <AlertDialogContent>
114
- * <AlertDialogIcon />
115
- * <AlertDialogBody>
116
- * <AlertDialogHeader>
117
- * <AlertDialogTitle>
78
+ * </AlertDialog.Trigger>
79
+ * <AlertDialog.Content>
80
+ * <AlertDialog.Icon />
81
+ * <AlertDialog.Body>
82
+ * <AlertDialog.Header>
83
+ * <AlertDialog.Title>
118
84
  * Are you absolutely sure?
119
- * </AlertDialogTitle>
120
- * <AlertDialogDescription>
85
+ * </AlertDialog.Title>
86
+ * <AlertDialog.Description>
121
87
  * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
122
- * </AlertDialogDescription>
123
- * </AlertDialogHeader>
124
- * <AlertDialogFooter>
125
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
126
- * <AlertDialogAction type="button">
88
+ * </AlertDialog.Description>
89
+ * </AlertDialog.Header>
90
+ * <AlertDialog.Footer>
91
+ * <AlertDialog.Cancel type="button">Cancel</AlertDialog.Cancel>
92
+ * <AlertDialog.Action type="button">
127
93
  * Continue
128
- * </AlertDialogAction>
129
- * </AlertDialogFooter>
130
- * </AlertDialogBody>
131
- * </AlertDialogContent>
132
- * </AlertDialog>
94
+ * </AlertDialog.Action>
95
+ * </AlertDialog.Footer>
96
+ * </AlertDialog.Body>
97
+ * </AlertDialog.Content>
98
+ * </AlertDialog.Root>
133
99
  * ```
134
100
  */
135
- declare const AlertDialogContent: react.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_dialog.DialogContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & {
101
+ declare const AlertDialog: {
136
102
  /**
137
- * The preferred width of the `AlertDialogContent` as a tailwind `max-w-` class.
103
+ * A modal dialog that interrupts the user with important content and expects a response.
138
104
  *
139
- * By default, a `AlertDialog`'s content width is responsive with a default
140
- * preferred width: the maximum width of the `AlertDialogContent`
105
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-root
141
106
  *
142
- * @default `max-w-md`
107
+ * @example
108
+ * ```tsx
109
+ * <AlertDialog.Root priority="danger">
110
+ * <AlertDialog.Trigger asChild>
111
+ * <Button type="button" appearance="outlined">
112
+ * Show Alert Dialog
113
+ * </Button>
114
+ * </AlertDialog.Trigger>
115
+ * <AlertDialog.Content>
116
+ * <AlertDialog.Icon />
117
+ * <AlertDialog.Body>
118
+ * <AlertDialog.Header>
119
+ * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
120
+ * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
121
+ * </AlertDialog.Header>
122
+ * <AlertDialog.Footer>
123
+ * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
124
+ * <AlertDialog.Action>Continue</AlertDialog.Action>
125
+ * </AlertDialog.Footer>
126
+ * </AlertDialog.Body>
127
+ * </AlertDialog.Content>
128
+ * </AlertDialog.Root>
129
+ * ```
143
130
  */
144
- preferredWidth?: `max-w-${string}`;
145
- } & react.RefAttributes<HTMLDivElement>>;
146
- /**
147
- * Contains the main content of the alert dialog.
148
- *
149
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-body
150
- *
151
- * @example
152
- * ```tsx
153
- * <AlertDialog priority="danger">
154
- * <AlertDialogTrigger asChild>
155
- * <Button type="button" appearance="outlined">
156
- * Show Danger Alert Dialog
157
- * </Button>
158
- * </AlertDialogTrigger>
159
- * <AlertDialogContent>
160
- * <AlertDialogIcon />
161
- * <AlertDialogBody>
162
- * <AlertDialogHeader>
163
- * <AlertDialogTitle>
164
- * Are you absolutely sure?
165
- * </AlertDialogTitle>
166
- * <AlertDialogDescription>
167
- * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
168
- * </AlertDialogDescription>
169
- * </AlertDialogHeader>
170
- * <AlertDialogFooter>
171
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
172
- * <AlertDialogAction type="button">
173
- * Continue
174
- * </AlertDialogAction>
175
- * </AlertDialogFooter>
176
- * </AlertDialogBody>
177
- * </AlertDialogContent>
178
- * </AlertDialog>
179
- * ```
180
- */
181
- declare const AlertDialogBody: react.ForwardRefExoticComponent<Omit<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & react.RefAttributes<HTMLDivElement>>;
182
- /**
183
- * Contains the header content of the dialog, including the title and description.
184
- *
185
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-header
186
- *
187
- * @example
188
- * ```tsx
189
- * <AlertDialog priority="danger">
190
- * <AlertDialogTrigger asChild>
191
- * <Button type="button" appearance="outlined">
192
- * Show Danger Alert Dialog
193
- * </Button>
194
- * </AlertDialogTrigger>
195
- * <AlertDialogContent>
196
- * <AlertDialogIcon />
197
- * <AlertDialogBody>
198
- * <AlertDialogHeader>
199
- * <AlertDialogTitle>
200
- * Are you absolutely sure?
201
- * </AlertDialogTitle>
202
- * <AlertDialogDescription>
203
- * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
204
- * </AlertDialogDescription>
205
- * </AlertDialogHeader>
206
- * <AlertDialogFooter>
207
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
208
- * <AlertDialogAction type="button">
209
- * Continue
210
- * </AlertDialogAction>
211
- * </AlertDialogFooter>
212
- * </AlertDialogBody>
213
- * </AlertDialogContent>
214
- * </AlertDialog>
215
- * ```
216
- */
217
- declare const AlertDialogHeader: react.ForwardRefExoticComponent<Omit<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & react.RefAttributes<HTMLDivElement>>;
218
- /**
219
- * Contains the footer content of the dialog, including the action and cancel buttons.
220
- *
221
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-footer
222
- *
223
- * @example
224
- * ```tsx
225
- * <AlertDialog priority="danger">
226
- * <AlertDialogTrigger asChild>
227
- * <Button type="button" appearance="outlined">
228
- * Show Danger Alert Dialog
229
- * </Button>
230
- * </AlertDialogTrigger>
231
- * <AlertDialogContent>
232
- * <AlertDialogIcon />
233
- * <AlertDialogBody>
234
- * <AlertDialogHeader>
235
- * <AlertDialogTitle>
236
- * Are you absolutely sure?
237
- * </AlertDialogTitle>
238
- * <AlertDialogDescription>
239
- * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
240
- * </AlertDialogDescription>
241
- * </AlertDialogHeader>
242
- * <AlertDialogFooter>
243
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
244
- * <AlertDialogAction type="button">
245
- * Continue
246
- * </AlertDialogAction>
247
- * </AlertDialogFooter>
248
- * </AlertDialogBody>
249
- * </AlertDialogContent>
250
- * </AlertDialog>
251
- * ```
252
- */
253
- declare const AlertDialogFooter: react.ForwardRefExoticComponent<Omit<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & react.RefAttributes<HTMLDivElement>>;
254
- /**
255
- * An accessible name to be announced when the dialog is opened.
256
- *
257
- * Alternatively, you can provide `aria-label` or `aria-labelledby` to
258
- * `AlertDialogContent` and exclude this component.
259
- *
260
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-title
261
- *
262
- * @example
263
- * ```tsx
264
- * <AlertDialog priority="danger">
265
- * <AlertDialogTrigger asChild>
266
- * <Button type="button" appearance="outlined">
267
- * Show Danger Alert Dialog
268
- * </Button>
269
- * </AlertDialogTrigger>
270
- * <AlertDialogContent>
271
- * <AlertDialogIcon />
272
- * <AlertDialogBody>
273
- * <AlertDialogHeader>
274
- * <AlertDialogTitle>
275
- * Are you absolutely sure?
276
- * </AlertDialogTitle>
277
- * <AlertDialogDescription>
278
- * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
279
- * </AlertDialogDescription>
280
- * </AlertDialogHeader>
281
- * <AlertDialogFooter>
282
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
283
- * <AlertDialogAction type="button">
284
- * Continue
285
- * </AlertDialogAction>
286
- * </AlertDialogFooter>
287
- * </AlertDialogBody>
288
- * </AlertDialogContent>
289
- * </AlertDialog>
290
- * ```
291
- */
292
- declare const AlertDialogTitle: react.ForwardRefExoticComponent<Omit<_radix_ui_react_dialog.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
293
- /**
294
- * An accessible description to be announced when the dialog is opened.
295
- *
296
- * Alternatively, you can provide `aria-describedby` to `AlertDialogContent` and
297
- * exclude this component.
298
- *
299
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-description
300
- *
301
- * @example
302
- * ```tsx
303
- * <AlertDialog priority="danger">
304
- * <AlertDialogTrigger asChild>
305
- * <Button type="button" appearance="outlined">
306
- * Show Danger Alert Dialog
307
- * </Button>
308
- * </AlertDialogTrigger>
309
- * <AlertDialogContent>
310
- * <AlertDialogIcon />
311
- * <AlertDialogBody>
312
- * <AlertDialogHeader>
313
- * <AlertDialogTitle>
314
- * Are you absolutely sure?
315
- * </AlertDialogTitle>
316
- * <AlertDialogDescription>
317
- * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
318
- * </AlertDialogDescription>
319
- * </AlertDialogHeader>
320
- * <AlertDialogFooter>
321
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
322
- * <AlertDialogAction type="button">
323
- * Continue
324
- * </AlertDialogAction>
325
- * </AlertDialogFooter>
326
- * </AlertDialogBody>
327
- * </AlertDialogContent>
328
- * </AlertDialog>
329
- * ```
330
- */
331
- declare const AlertDialogDescription: react.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_dialog.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
332
- /**
333
- * A button that confirms the Alert Dialog action.
334
- * Will default to appearance="filled", as well as the priority color from the `AlertDialog`.
335
- * Does not close the alert dialog by default.
336
- *
337
- * These buttons should be distinguished visually from the AlertDialogCancel button.
338
- *
339
- * Composes around the mantle Button component.
340
- *
341
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-action
342
- *
343
- * @example
344
- * ```tsx
345
- * <AlertDialog priority="danger">
346
- * <AlertDialogTrigger asChild>
347
- * <Button type="button" appearance="outlined">
348
- * Show Danger Alert Dialog
349
- * </Button>
350
- * </AlertDialogTrigger>
351
- * <AlertDialogContent>
352
- * <AlertDialogIcon />
353
- * <AlertDialogBody>
354
- * <AlertDialogHeader>
355
- * <AlertDialogTitle>
356
- * Are you absolutely sure?
357
- * </AlertDialogTitle>
358
- * <AlertDialogDescription>
359
- * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
360
- * </AlertDialogDescription>
361
- * </AlertDialogHeader>
362
- * <AlertDialogFooter>
363
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
364
- * <AlertDialogAction type="button">
365
- * Continue
366
- * </AlertDialogAction>
367
- * </AlertDialogFooter>
368
- * </AlertDialogBody>
369
- * </AlertDialogContent>
370
- * </AlertDialog>
371
- * ```
372
- */
373
- declare const AlertDialogAction: react.ForwardRefExoticComponent<(Omit<react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<class_variance_authority.VariantProps<(props?: ({
374
- appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
375
- isLoading?: boolean | null | undefined;
376
- priority?: "default" | "danger" | "neutral" | null | undefined;
377
- } & class_variance_authority_types.ClassProp) | undefined) => string>>> & {
378
- icon?: ReactNode;
379
- iconPlacement?: "start" | "end";
380
- } & {
381
- asChild: true;
382
- type?: react.ButtonHTMLAttributes<HTMLButtonElement>["type"];
383
- }, "ref"> | Omit<react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<class_variance_authority.VariantProps<(props?: ({
384
- appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
385
- isLoading?: boolean | null | undefined;
386
- priority?: "default" | "danger" | "neutral" | null | undefined;
387
- } & class_variance_authority_types.ClassProp) | undefined) => string>>> & {
388
- icon?: ReactNode;
389
- iconPlacement?: "start" | "end";
390
- } & {
391
- asChild?: false | undefined;
392
- type: Exclude<react.ButtonHTMLAttributes<HTMLButtonElement>["type"], undefined>;
393
- }, "ref">) & react.RefAttributes<HTMLButtonElement>>;
394
- /**
395
- * A button that closes the dialog and cancels the action.
396
- * Will default to appearance="outlined" and priority="neutral".
397
- *
398
- * This button should be distinguished visually from AlertDialogAction buttons.
399
- *
400
- * Composes around the mantle Button component.
401
- *
402
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-cancel
403
- *
404
- * @example
405
- * ```tsx
406
- * <AlertDialog priority="danger">
407
- * <AlertDialogTrigger asChild>
408
- * <Button type="button" appearance="outlined">
409
- * Show Danger Alert Dialog
410
- * </Button>
411
- * </AlertDialogTrigger>
412
- * <AlertDialogContent>
413
- * <AlertDialogIcon />
414
- * <AlertDialogBody>
415
- * <AlertDialogHeader>
416
- * <AlertDialogTitle>
417
- * Are you absolutely sure?
418
- * </AlertDialogTitle>
419
- * <AlertDialogDescription>
420
- * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
421
- * </AlertDialogDescription>
422
- * </AlertDialogHeader>
423
- * <AlertDialogFooter>
424
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
425
- * <AlertDialogAction type="button">
426
- * Continue
427
- * </AlertDialogAction>
428
- * </AlertDialogFooter>
429
- * </AlertDialogBody>
430
- * </AlertDialogContent>
431
- * </AlertDialog>
432
- * ```
433
- */
434
- declare const AlertDialogCancel: react.ForwardRefExoticComponent<(Omit<react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<class_variance_authority.VariantProps<(props?: ({
435
- appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
436
- isLoading?: boolean | null | undefined;
437
- priority?: "default" | "danger" | "neutral" | null | undefined;
438
- } & class_variance_authority_types.ClassProp) | undefined) => string>>> & {
439
- icon?: ReactNode;
440
- iconPlacement?: "start" | "end";
441
- } & {
442
- asChild: true;
443
- type?: react.ButtonHTMLAttributes<HTMLButtonElement>["type"];
444
- }, "ref"> | Omit<react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<class_variance_authority.VariantProps<(props?: ({
445
- appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
446
- isLoading?: boolean | null | undefined;
447
- priority?: "default" | "danger" | "neutral" | null | undefined;
448
- } & class_variance_authority_types.ClassProp) | undefined) => string>>> & {
449
- icon?: ReactNode;
450
- iconPlacement?: "start" | "end";
451
- } & {
452
- asChild?: false | undefined;
453
- type: Exclude<react.ButtonHTMLAttributes<HTMLButtonElement>["type"], undefined>;
454
- }, "ref">) & react.RefAttributes<HTMLButtonElement>>;
455
- type AlertDialogIconProps = Omit<SvgAttributes, "children"> & {
456
- svg?: ReactNode;
131
+ readonly Root: typeof Root;
132
+ /**
133
+ * A button that confirms the Alert Dialog action.
134
+ *
135
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-action
136
+ *
137
+ * @example
138
+ * ```tsx
139
+ * <AlertDialog.Footer>
140
+ * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
141
+ * <AlertDialog.Action>Continue</AlertDialog.Action>
142
+ * </AlertDialog.Footer>
143
+ * ```
144
+ */
145
+ readonly Action: react.ForwardRefExoticComponent<(Omit<react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<class_variance_authority.VariantProps<(props?: ({
146
+ appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
147
+ isLoading?: boolean | null | undefined;
148
+ priority?: "default" | "danger" | "neutral" | null | undefined;
149
+ } & class_variance_authority_types.ClassProp) | undefined) => string>>> & {
150
+ icon?: ReactNode;
151
+ iconPlacement?: "start" | "end";
152
+ } & {
153
+ asChild: true;
154
+ type?: react.ButtonHTMLAttributes<HTMLButtonElement>["type"];
155
+ }, "ref"> | Omit<react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<class_variance_authority.VariantProps<(props?: ({
156
+ appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
157
+ isLoading?: boolean | null | undefined;
158
+ priority?: "default" | "danger" | "neutral" | null | undefined;
159
+ } & class_variance_authority_types.ClassProp) | undefined) => string>>> & {
160
+ icon?: ReactNode;
161
+ iconPlacement?: "start" | "end";
162
+ } & {
163
+ asChild?: false | undefined;
164
+ type: Exclude<react.ButtonHTMLAttributes<HTMLButtonElement>["type"], undefined>;
165
+ }, "ref">) & react.RefAttributes<HTMLButtonElement>>;
166
+ /**
167
+ * Contains the main content of the alert dialog.
168
+ *
169
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-body
170
+ *
171
+ * @example
172
+ * ```tsx
173
+ * <AlertDialog.Content>
174
+ * <AlertDialog.Icon />
175
+ * <AlertDialog.Body>
176
+ * <AlertDialog.Header>
177
+ * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
178
+ * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
179
+ * </AlertDialog.Header>
180
+ * <AlertDialog.Footer>
181
+ * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
182
+ * <AlertDialog.Action>Continue</AlertDialog.Action>
183
+ * </AlertDialog.Footer>
184
+ * </AlertDialog.Body>
185
+ * </AlertDialog.Content>
186
+ * ```
187
+ */
188
+ readonly Body: react.ForwardRefExoticComponent<Omit<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & react.RefAttributes<HTMLDivElement>>;
189
+ /**
190
+ * A button that closes the dialog and cancels the action.
191
+ *
192
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-cancel
193
+ *
194
+ * @example
195
+ * ```tsx
196
+ * <AlertDialog.Footer>
197
+ * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
198
+ * <AlertDialog.Action>Continue</AlertDialog.Action>
199
+ * </AlertDialog.Footer>
200
+ * ```
201
+ */
202
+ readonly Cancel: react.ForwardRefExoticComponent<(Omit<react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<class_variance_authority.VariantProps<(props?: ({
203
+ appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
204
+ isLoading?: boolean | null | undefined;
205
+ priority?: "default" | "danger" | "neutral" | null | undefined;
206
+ } & class_variance_authority_types.ClassProp) | undefined) => string>>> & {
207
+ icon?: ReactNode;
208
+ iconPlacement?: "start" | "end";
209
+ } & {
210
+ asChild: true;
211
+ type?: react.ButtonHTMLAttributes<HTMLButtonElement>["type"];
212
+ }, "ref"> | Omit<react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<class_variance_authority.VariantProps<(props?: ({
213
+ appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
214
+ isLoading?: boolean | null | undefined;
215
+ priority?: "default" | "danger" | "neutral" | null | undefined;
216
+ } & class_variance_authority_types.ClassProp) | undefined) => string>>> & {
217
+ icon?: ReactNode;
218
+ iconPlacement?: "start" | "end";
219
+ } & {
220
+ asChild?: false | undefined;
221
+ type: Exclude<react.ButtonHTMLAttributes<HTMLButtonElement>["type"], undefined>;
222
+ }, "ref">) & react.RefAttributes<HTMLButtonElement>>;
223
+ /**
224
+ * A button that closes the Alert Dialog. (Unstyled)
225
+ *
226
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-close
227
+ *
228
+ * @example
229
+ * ```tsx
230
+ * <AlertDialog.Close asChild>
231
+ * <AlertDialog.Action
232
+ * type="button"
233
+ * onClick={() => doThing()}
234
+ * >
235
+ * Do thing and close
236
+ * </AlertDialog.Action>
237
+ * </AlertDialog.Close>
238
+ * ```
239
+ */
240
+ readonly Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
241
+ /**
242
+ * The popover alert dialog container.
243
+ *
244
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-content
245
+ *
246
+ * @example
247
+ * ```tsx
248
+ * <AlertDialog.Content>
249
+ * <AlertDialog.Icon />
250
+ * <AlertDialog.Body>
251
+ * <AlertDialog.Header>
252
+ * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
253
+ * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
254
+ * </AlertDialog.Header>
255
+ * <AlertDialog.Footer>
256
+ * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
257
+ * <AlertDialog.Action>Continue</AlertDialog.Action>
258
+ * </AlertDialog.Footer>
259
+ * </AlertDialog.Body>
260
+ * </AlertDialog.Content>
261
+ * ```
262
+ */
263
+ readonly Content: react.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_dialog.DialogContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & {
264
+ /**
265
+ * The preferred width of the `AlertDialogContent` as a tailwind `max-w-` class.
266
+ *
267
+ * By default, a `AlertDialog`'s content width is responsive with a default
268
+ * preferred width: the maximum width of the `AlertDialogContent`
269
+ *
270
+ * @default `max-w-md`
271
+ */
272
+ preferredWidth?: `max-w-${string}`;
273
+ } & react.RefAttributes<HTMLDivElement>>;
274
+ /**
275
+ * An accessible description to be announced when the dialog is opened.
276
+ *
277
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-description
278
+ *
279
+ * @example
280
+ * ```tsx
281
+ * <AlertDialog.Header>
282
+ * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
283
+ * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
284
+ * </AlertDialog.Header>
285
+ * ```
286
+ */
287
+ readonly Description: react.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_dialog.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
288
+ /**
289
+ * Contains the footer content of the dialog, including the action and cancel buttons.
290
+ *
291
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-footer
292
+ *
293
+ * @example
294
+ * ```tsx
295
+ * <AlertDialog.Footer>
296
+ * <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>
297
+ * <AlertDialog.Action>Continue</AlertDialog.Action>
298
+ * </AlertDialog.Footer>
299
+ * ```
300
+ */
301
+ readonly Footer: react.ForwardRefExoticComponent<Omit<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & react.RefAttributes<HTMLDivElement>>;
302
+ /**
303
+ * Contains the header content of the dialog, including the title and description.
304
+ *
305
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-header
306
+ *
307
+ * @example
308
+ * ```tsx
309
+ * <AlertDialog.Header>
310
+ * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
311
+ * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
312
+ * </AlertDialog.Header>
313
+ * ```
314
+ */
315
+ readonly Header: react.ForwardRefExoticComponent<Omit<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & WithAsChild, "ref"> & react.RefAttributes<HTMLDivElement>>;
316
+ /**
317
+ * An icon that visually represents the priority of the AlertDialog.
318
+ *
319
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-icon
320
+ *
321
+ * @example
322
+ * ```tsx
323
+ * <AlertDialog.Content>
324
+ * <AlertDialog.Icon />
325
+ * <AlertDialog.Body>
326
+ * <AlertDialog.Header>
327
+ * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
328
+ * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
329
+ * </AlertDialog.Header>
330
+ * </AlertDialog.Body>
331
+ * </AlertDialog.Content>
332
+ * ```
333
+ */
334
+ readonly Icon: react.ForwardRefExoticComponent<Omit<AlertDialogIconProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
335
+ /**
336
+ * An accessible name to be announced when the dialog is opened.
337
+ *
338
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-title
339
+ *
340
+ * @example
341
+ * ```tsx
342
+ * <AlertDialog.Header>
343
+ * <AlertDialog.Title>Are you absolutely sure?</AlertDialog.Title>
344
+ * <AlertDialog.Description>This action cannot be undone.</AlertDialog.Description>
345
+ * </AlertDialog.Header>
346
+ * ```
347
+ */
348
+ readonly Title: react.ForwardRefExoticComponent<Omit<_radix_ui_react_dialog.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
349
+ /**
350
+ * A button that opens the Alert Dialog.
351
+ *
352
+ * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-trigger
353
+ *
354
+ * @example
355
+ * ```tsx
356
+ * <AlertDialog.Trigger asChild>
357
+ * <Button type="button" appearance="outlined">
358
+ * Show Alert Dialog
359
+ * </Button>
360
+ * </AlertDialog.Trigger>
361
+ * ```
362
+ */
363
+ readonly Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
457
364
  };
458
- /**
459
- * An icon that visually represents the priority of the AlertDialog.
460
- *
461
- * Defaults to a warning icon for danger priority and an info icon for info
462
- * priority with the appropriate color.
463
- *
464
- * Can be overridden with a custom icon using the `svg` prop.
465
- *
466
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-icon
467
- *
468
- * @example
469
- * ```tsx
470
- * <AlertDialog priority="danger">
471
- * <AlertDialogTrigger asChild>
472
- * <Button type="button" appearance="outlined">
473
- * Show Danger Alert Dialog
474
- * </Button>
475
- * </AlertDialogTrigger>
476
- * <AlertDialogContent>
477
- * <AlertDialogIcon />
478
- * <AlertDialogBody>
479
- * <AlertDialogHeader>
480
- * <AlertDialogTitle>
481
- * Are you absolutely sure?
482
- * </AlertDialogTitle>
483
- * <AlertDialogDescription>
484
- * Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
485
- * </AlertDialogDescription>
486
- * </AlertDialogHeader>
487
- * <AlertDialogFooter>
488
- * <AlertDialogCancel type="button">Cancel</AlertDialogCancel>
489
- * <AlertDialogAction type="button">
490
- * Continue
491
- * </AlertDialogAction>
492
- * </AlertDialogFooter>
493
- * </AlertDialogBody>
494
- * </AlertDialogContent>
495
- * </AlertDialog>
496
- * ```
497
- */
498
- declare const AlertDialogIcon: react.ForwardRefExoticComponent<Omit<AlertDialogIconProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
499
- /**
500
- * A button that closes the Alert Dialog. (Unstyled)
501
- *
502
- * @see https://mantle.ngrok.com/components/alert-dialog#api-alert-dialog-close
503
- *
504
- * @example
505
- * ```tsx
506
- * <AlertDialogClose asChild>
507
- * <AlertDialogAction
508
- * type="button"
509
- * onClick={() => doThing()}
510
- * >
511
- * Do thing and close
512
- * </AlertDialogAction>
513
- * </AlertDialogClose>
514
- */
515
- declare const AlertDialogClose: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
516
365
 
517
- export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogIcon, AlertDialogTitle, AlertDialogTrigger };
366
+ export { AlertDialog };