@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.
- package/dist/accordion.d.ts +72 -61
- package/dist/accordion.js +1 -1
- package/dist/accordion.js.map +1 -1
- package/dist/alert-dialog.d.ts +311 -462
- package/dist/alert-dialog.js +1 -1
- package/dist/alert-dialog.js.map +1 -1
- package/dist/alert.d.ts +113 -92
- package/dist/alert.js +1 -1
- package/dist/alert.js.map +1 -1
- package/dist/card.d.ts +112 -112
- package/dist/card.js +1 -1
- package/dist/card.js.map +1 -1
- package/dist/{chunk-IVXZIYX4.js → chunk-2ID2TLYD.js} +1 -1
- package/dist/chunk-2ID2TLYD.js.map +1 -0
- package/dist/{chunk-3X4AKTRA.js → chunk-4GGDPFNZ.js} +2 -2
- package/dist/chunk-4GGDPFNZ.js.map +1 -0
- package/dist/{chunk-ERBZR6SY.js → chunk-EYZYDUS2.js} +1 -1
- package/dist/chunk-EYZYDUS2.js.map +1 -0
- package/dist/chunk-F4N3P7B7.js +2 -0
- package/dist/chunk-F4N3P7B7.js.map +1 -0
- package/dist/{chunk-CGUSOD4E.js → chunk-HSTG2BTX.js} +1 -1
- package/dist/chunk-HSTG2BTX.js.map +1 -0
- package/dist/chunk-UUXOG7WW.js +2 -0
- package/dist/chunk-UUXOG7WW.js.map +1 -0
- package/dist/code-block.d.ts +188 -178
- package/dist/code-block.js +3 -3
- package/dist/code-block.js.map +1 -1
- package/dist/combobox.d.ts +178 -141
- package/dist/combobox.js +1 -1
- package/dist/combobox.js.map +1 -1
- package/dist/data-table.d.ts +191 -30
- package/dist/data-table.js +1 -1
- package/dist/data-table.js.map +1 -1
- package/dist/dialog.d.ts +374 -264
- package/dist/dialog.js +1 -1
- package/dist/dialog.js.map +1 -1
- package/dist/dropdown-menu.d.ts +304 -102
- package/dist/dropdown-menu.js +1 -1
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/hover-card.d.ts +94 -58
- package/dist/hover-card.js +1 -1
- package/dist/hover-card.js.map +1 -1
- package/dist/icons.js +1 -1
- package/dist/input.d.ts +11 -0
- package/dist/input.js +1 -1
- package/dist/media-object.d.ts +75 -46
- package/dist/media-object.js +1 -1
- package/dist/media-object.js.map +1 -1
- package/dist/pagination.d.ts +124 -62
- package/dist/pagination.js +1 -1
- package/dist/pagination.js.map +1 -1
- package/dist/popover.d.ts +124 -102
- package/dist/popover.js +1 -1
- package/dist/popover.js.map +1 -1
- package/dist/progress.d.ts +112 -35
- package/dist/progress.js +1 -1
- package/dist/progress.js.map +1 -1
- package/dist/radio-group.d.ts +234 -105
- package/dist/radio-group.js +1 -1
- package/dist/radio-group.js.map +1 -1
- package/dist/select.d.ts +242 -212
- package/dist/select.js +1 -1
- package/dist/sheet.d.ts +343 -575
- package/dist/sheet.js +1 -1
- package/dist/sheet.js.map +1 -1
- package/dist/table.d.ts +384 -425
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +105 -95
- package/dist/tabs.js +1 -1
- package/dist/tabs.js.map +1 -1
- package/dist/theme-provider.js +1 -1
- package/dist/toast.d.ts +77 -61
- package/dist/toast.js +1 -1
- package/dist/tooltip.d.ts +72 -49
- package/dist/tooltip.js +1 -1
- package/dist/tooltip.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-3X4AKTRA.js.map +0 -1
- package/dist/chunk-CGUSOD4E.js.map +0 -1
- package/dist/chunk-ERBZR6SY.js.map +0 -1
- package/dist/chunk-IDCDPWR4.js +0 -2
- package/dist/chunk-IDCDPWR4.js.map +0 -1
- package/dist/chunk-IVXZIYX4.js.map +0 -1
- package/dist/chunk-JIRNFNH5.js +0 -2
- package/dist/chunk-JIRNFNH5.js.map +0 -1
package/dist/alert-dialog.d.ts
CHANGED
|
@@ -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
|
-
* <
|
|
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
|
-
* </
|
|
36
|
-
* <
|
|
37
|
-
* <
|
|
38
|
-
* <
|
|
39
|
-
* <
|
|
40
|
-
* <
|
|
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
|
-
* </
|
|
43
|
-
* <
|
|
42
|
+
* </AlertDialog.Title>
|
|
43
|
+
* <AlertDialog.Description>
|
|
44
44
|
* Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
|
|
45
|
-
* </
|
|
46
|
-
* </
|
|
47
|
-
* <
|
|
48
|
-
* <
|
|
49
|
-
* <
|
|
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
|
-
* </
|
|
52
|
-
* </
|
|
53
|
-
*
|
|
54
|
-
* </
|
|
55
|
-
* </AlertDialog>
|
|
51
|
+
* </AlertDialog.Action>
|
|
52
|
+
* </AlertDialog.Footer>
|
|
53
|
+
* </AlertDialog.Body>
|
|
54
|
+
* </AlertDialog.Content>
|
|
55
|
+
* </AlertDialog.Root>
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
declare function
|
|
59
|
-
declare namespace
|
|
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
|
|
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
|
|
69
|
+
* @see https://mantle.ngrok.com/components/alert-dialog
|
|
104
70
|
*
|
|
105
71
|
* @example
|
|
106
72
|
* ```tsx
|
|
107
|
-
* <AlertDialog priority="danger">
|
|
108
|
-
* <
|
|
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
|
-
* </
|
|
113
|
-
* <
|
|
114
|
-
* <
|
|
115
|
-
* <
|
|
116
|
-
* <
|
|
117
|
-
* <
|
|
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
|
-
* </
|
|
120
|
-
* <
|
|
85
|
+
* </AlertDialog.Title>
|
|
86
|
+
* <AlertDialog.Description>
|
|
121
87
|
* Proident quis nisi tempor irure sunt ut minim occaecat mollit sunt.
|
|
122
|
-
* </
|
|
123
|
-
* </
|
|
124
|
-
* <
|
|
125
|
-
* <
|
|
126
|
-
* <
|
|
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
|
-
* </
|
|
129
|
-
* </
|
|
130
|
-
*
|
|
131
|
-
* </
|
|
132
|
-
* </AlertDialog>
|
|
94
|
+
* </AlertDialog.Action>
|
|
95
|
+
* </AlertDialog.Footer>
|
|
96
|
+
* </AlertDialog.Body>
|
|
97
|
+
* </AlertDialog.Content>
|
|
98
|
+
* </AlertDialog.Root>
|
|
133
99
|
* ```
|
|
134
100
|
*/
|
|
135
|
-
declare const
|
|
101
|
+
declare const AlertDialog: {
|
|
136
102
|
/**
|
|
137
|
-
*
|
|
103
|
+
* A modal dialog that interrupts the user with important content and expects a response.
|
|
138
104
|
*
|
|
139
|
-
*
|
|
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
|
-
* @
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
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
|
|
366
|
+
export { AlertDialog };
|