@ngrok/mantle 0.82.1 → 0.83.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 (137) hide show
  1. package/dist/accordion.d.ts +7 -7
  2. package/dist/agent.json +3 -1
  3. package/dist/{alert-BWwNPOMI.d.ts → alert-B1HXfkYn.d.ts} +9 -7
  4. package/dist/{alert-vwFd7qdp.js → alert-BuG2qS5l.js} +1 -1
  5. package/dist/alert-center.d.ts +3 -3
  6. package/dist/alert-center.js +1 -1
  7. package/dist/alert-dialog.d.ts +18 -18
  8. package/dist/alert.d.ts +1 -1
  9. package/dist/alert.js +1 -1
  10. package/dist/anchor.d.ts +2 -2
  11. package/dist/app-layout.js +1 -1
  12. package/dist/area-chart.d.ts +67 -19
  13. package/dist/area-chart.js +1 -1
  14. package/dist/avatar.d.ts +319 -0
  15. package/dist/avatar.js +1 -0
  16. package/dist/bar-chart.d.ts +73 -20
  17. package/dist/bar-chart.js +1 -1
  18. package/dist/breadcrumb.d.ts +50 -17
  19. package/dist/breadcrumb.js +1 -1
  20. package/dist/browser-only.d.ts +3 -3
  21. package/dist/{button-C-gMbPso.d.ts → button-BIf69CSV.d.ts} +2 -2
  22. package/dist/button-BLDjW1u9.js +1 -0
  23. package/dist/{button-IlxHhjPK.js → button-CCkGqE1t.js} +1 -1
  24. package/dist/{button-C7vAl6lS.d.ts → button-DJ7AAgII.d.ts} +4 -6
  25. package/dist/{button-DARFK2KJ.d.ts → button-PoIujPMX.d.ts} +2 -2
  26. package/dist/button.d.ts +3 -3
  27. package/dist/button.js +1 -1
  28. package/dist/calendar.d.ts +1 -1
  29. package/dist/calendar.js +1 -1
  30. package/dist/card.d.ts +15 -15
  31. package/dist/{chart-1cVjAcj8.d.ts → chart-0zcFJh4n.d.ts} +75 -22
  32. package/dist/chart-DBxT9BNl.js +2 -0
  33. package/dist/{choice-BNRQXszu.d.ts → choice-CVdQrs-m.d.ts} +118 -6
  34. package/dist/choice.d.ts +1 -1
  35. package/dist/{code-block-C9uaM9-V.js → code-block-CIE0F2fu.js} +1 -1
  36. package/dist/{code-block-B6OlZrSI.d.ts → code-block-CZWPrV4k.d.ts} +3 -3
  37. package/dist/code-block.d.ts +10 -7
  38. package/dist/code-block.js +2 -2
  39. package/dist/code-block_highlight-utils.d.ts +1 -1
  40. package/dist/code-block_highlight-utils.js +1 -1
  41. package/dist/combobox.d.ts +8 -9
  42. package/dist/command.d.ts +668 -106
  43. package/dist/command.js +1 -1
  44. package/dist/data-table.d.ts +6 -6
  45. package/dist/data-table.js +1 -1
  46. package/dist/dialog-02mNrAT1.d.ts +806 -0
  47. package/dist/{dialog-DozL6n-F.js → dialog-BRjTD83p.js} +1 -1
  48. package/dist/dialog.d.ts +2 -805
  49. package/dist/dialog.js +1 -1
  50. package/dist/dropdown-menu-BcALUQMp.d.ts +1 -0
  51. package/dist/{dropdown-menu-D6pMAY7I.d.ts → dropdown-menu-DZOfj6HB.d.ts} +1 -1
  52. package/dist/dropdown-menu.d.ts +2 -2
  53. package/dist/field.d.ts +5 -5
  54. package/dist/field.js +1 -1
  55. package/dist/flag.js +1 -1
  56. package/dist/hooks.d.ts +16 -17
  57. package/dist/hooks.js +1 -1
  58. package/dist/icons-DEVx1oP9.js +1 -0
  59. package/dist/icons.d.ts +7 -6
  60. package/dist/icons.js +1 -1
  61. package/dist/{in-view-DDEGUKDR.d.ts → in-view-gxyc9Q1_.d.ts} +1 -1
  62. package/dist/{input-BuYDU6CF.d.ts → input-DpnC3Xgj.d.ts} +2 -2
  63. package/dist/input.d.ts +1 -1
  64. package/dist/kbd.d.ts +1 -1
  65. package/dist/line-chart.d.ts +60 -13
  66. package/dist/line-chart.js +1 -1
  67. package/dist/list-CwL23L_B.js +1 -0
  68. package/dist/list.d.ts +2 -2
  69. package/dist/list.js +1 -1
  70. package/dist/llms.txt +3 -1
  71. package/dist/mantle-dark-high-contrast.css +30 -17
  72. package/dist/mantle-dark.css +48 -13
  73. package/dist/mantle-light-high-contrast.css +33 -15
  74. package/dist/mantle.css +436 -26
  75. package/dist/media-object.d.ts +5 -1
  76. package/dist/multi-select.d.ts +7 -7
  77. package/dist/multi-select.js +1 -1
  78. package/dist/otp-input.d.ts +4 -4
  79. package/dist/otp-input.js +1 -1
  80. package/dist/pagination.d.ts +2 -2
  81. package/dist/pagination.js +1 -1
  82. package/dist/progress.d.ts +4 -4
  83. package/dist/qr-code.d.ts +2 -2
  84. package/dist/sandbar.d.ts +471 -0
  85. package/dist/sandbar.js +1 -0
  86. package/dist/sandboxed-on-click.d.ts +4 -6
  87. package/dist/scatter-plot.d.ts +69 -24
  88. package/dist/scatter-plot.js +1 -1
  89. package/dist/{select-0z7HVS6r.d.ts → select-DVHmgih8.d.ts} +13 -7
  90. package/dist/select-LK9NX-vV.js +1 -0
  91. package/dist/select.d.ts +1 -1
  92. package/dist/select.js +1 -1
  93. package/dist/selectable-list.d.ts +4 -4
  94. package/dist/selectable-list.js +1 -1
  95. package/dist/{separator-B5UmkVRL.d.ts → separator-CNDs98Dv.d.ts} +2 -2
  96. package/dist/separator.d.ts +1 -1
  97. package/dist/{sheet-BxvTfPLM.js → sheet-BOSknSN9.js} +1 -1
  98. package/dist/sheet.d.ts +1 -1
  99. package/dist/sheet.js +1 -1
  100. package/dist/sidebar.d.ts +347 -366
  101. package/dist/sidebar.js +1 -1
  102. package/dist/slider.d.ts +1 -1
  103. package/dist/split-button.d.ts +12 -12
  104. package/dist/split-button.js +1 -1
  105. package/dist/switch.d.ts +2 -1
  106. package/dist/{table-CGxJwtbL.js → table-C_Nm_RSV.js} +1 -1
  107. package/dist/{table-CZBYEmyK.d.ts → table-D51ZtV4U.d.ts} +18 -8
  108. package/dist/table.d.ts +1 -1
  109. package/dist/table.js +1 -1
  110. package/dist/tabs.d.ts +8 -13
  111. package/dist/tabs.js +1 -1
  112. package/dist/{theme-FbfjYiD3.d.ts → theme-6OxNhf6l.d.ts} +6 -6
  113. package/dist/theme-CVfq037P.js +1 -0
  114. package/dist/theme-switcher.d.ts +3 -3
  115. package/dist/theme-switcher.js +1 -1
  116. package/dist/theme.d.ts +86 -23
  117. package/dist/theme.js +1 -1
  118. package/dist/toast.d.ts +9 -9
  119. package/dist/toast.js +1 -1
  120. package/dist/{tooltip-mrpLz4DZ.d.ts → tooltip-DuXGxIse.d.ts} +6 -4
  121. package/dist/tooltip.d.ts +1 -1
  122. package/dist/use-breakpoint-Dqu12Szq.js +1 -0
  123. package/dist/use-callback-ref-IYti9y7x.js +1 -0
  124. package/dist/use-is-apple-platform-Cxwrb86L.js +1 -0
  125. package/dist/use-matches-media-query-Bd_GhhVd.js +1 -0
  126. package/dist/utils.d.ts +1 -1
  127. package/package.json +4 -2
  128. package/dist/button-DvHMWAPl.js +0 -1
  129. package/dist/chart-B3pAvmkk.js +0 -2
  130. package/dist/dropdown-menu-BbbQuae2.d.ts +0 -1
  131. package/dist/icons-Bb_zF2OV.js +0 -1
  132. package/dist/list-CJABVHwi.js +0 -1
  133. package/dist/platform-BVD3gpKD.js +0 -1
  134. package/dist/select-BReznXaw.js +0 -1
  135. package/dist/theme-BorfgnNh.js +0 -1
  136. package/dist/use-breakpoint-Wd7_5-Mu.js +0 -1
  137. package/dist/use-matches-media-query-CMSxHR9n.js +0 -1
@@ -0,0 +1,806 @@
1
+ import { t as ButtonIntent } from "./button-DdSKSj1c.js";
2
+ import { n as IconButtonProps, r as IconButtonAppearance } from "./button-DJ7AAgII.js";
3
+ import { a as Root, i as Overlay$1, n as Content$1, o as Title$1, r as Description$1, s as Trigger$1, t as Close$1 } from "./dialog-BM4wPCft.js";
4
+ import { ComponentProps } from "react";
5
+ //#region src/components/dialog/dialog.d.ts
6
+ /**
7
+ * A button that opens the dialog.
8
+ *
9
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogtrigger
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <Dialog.Root>
14
+ * <Dialog.Trigger asChild>
15
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
16
+ * </Dialog.Trigger>
17
+ * <Dialog.Content>
18
+ * <Dialog.Header>
19
+ * <Dialog.Title>Dialog Title</Dialog.Title>
20
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
21
+ * <Dialog.CloseIconButton />
22
+ * </Dialog.Header>
23
+ * <Dialog.Body>
24
+ * <p>This is the dialog content.</p>
25
+ * </Dialog.Body>
26
+ * <Dialog.Footer>
27
+ * <Dialog.Close asChild>
28
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
29
+ * </Dialog.Close>
30
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
31
+ * </Dialog.Footer>
32
+ * </Dialog.Content>
33
+ * </Dialog.Root>
34
+ * ```
35
+ */
36
+ declare const Trigger: (props: ComponentProps<typeof Trigger$1>) => import("react").JSX.Element;
37
+ /**
38
+ * A button that closes the dialog when clicked. Wrap an interactive element
39
+ * with `asChild` to delegate the close behavior to your own button.
40
+ *
41
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogclose
42
+ *
43
+ * @example
44
+ * ```tsx
45
+ * <Dialog.Root>
46
+ * <Dialog.Trigger asChild>
47
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
48
+ * </Dialog.Trigger>
49
+ * <Dialog.Content>
50
+ * <Dialog.Header>
51
+ * <Dialog.Title>Dialog Title</Dialog.Title>
52
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
53
+ * <Dialog.CloseIconButton />
54
+ * </Dialog.Header>
55
+ * <Dialog.Body>
56
+ * <p>This is the dialog content.</p>
57
+ * </Dialog.Body>
58
+ * <Dialog.Footer>
59
+ * <Dialog.Close asChild>
60
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
61
+ * </Dialog.Close>
62
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
63
+ * </Dialog.Footer>
64
+ * </Dialog.Content>
65
+ * </Dialog.Root>
66
+ * ```
67
+ */
68
+ declare const Close: (props: ComponentProps<typeof Close$1>) => import("react").JSX.Element;
69
+ /**
70
+ * The backdrop overlay for the dialog. Sits between the page and the dialog
71
+ * content and applies a blur and dim effect.
72
+ *
73
+ * Most consumers should not need to use this directly — `Dialog.Content`
74
+ * renders an overlay automatically. Use this only when composing a custom
75
+ * `Dialog.Portal` tree.
76
+ *
77
+ * @see https://mantle.ngrok.com/components/overlays/dialog#api-reference
78
+ *
79
+ * @example
80
+ * ```tsx
81
+ * <Dialog.Root>
82
+ * <Dialog.Trigger asChild>
83
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
84
+ * </Dialog.Trigger>
85
+ * <Dialog.Portal>
86
+ * <Dialog.Overlay />
87
+ * <Dialog.Content>
88
+ * <Dialog.Header>
89
+ * <Dialog.Title>Dialog Title</Dialog.Title>
90
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
91
+ * <Dialog.CloseIconButton />
92
+ * </Dialog.Header>
93
+ * <Dialog.Body>
94
+ * <p>This is the dialog content.</p>
95
+ * </Dialog.Body>
96
+ * <Dialog.Footer>
97
+ * <Dialog.Close asChild>
98
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
99
+ * </Dialog.Close>
100
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
101
+ * </Dialog.Footer>
102
+ * </Dialog.Content>
103
+ * </Dialog.Portal>
104
+ * </Dialog.Root>
105
+ * ```
106
+ */
107
+ declare const Overlay: ({ className, ref, ...props }: ComponentProps<typeof Overlay$1>) => import("react").JSX.Element;
108
+ type ContentProps = ComponentProps<typeof Content$1> & {
109
+ /**
110
+ * The preferred width of the `Dialog.Content` as a tailwind `max-w-` class.
111
+ *
112
+ * By default, a `Dialog`'s content width is responsive with a default
113
+ * preferred width: the maximum width of the `Dialog.Content`
114
+ *
115
+ * @default `max-w-lg`
116
+ */
117
+ preferredWidth?: `max-w-${string}`;
118
+ };
119
+ /**
120
+ * The container for the dialog content.
121
+ * Renders on top of the overlay and is centered in the viewport.
122
+ *
123
+ * `Dialog.Content` renders its floating layer at Tailwind `z-50`, Mantle's
124
+ * shared floating z-index. When multiple shared layers are open, the most
125
+ * recently mounted layer renders on top.
126
+ *
127
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogcontent
128
+ *
129
+ * @example
130
+ * ```tsx
131
+ * <Dialog.Root>
132
+ * <Dialog.Trigger asChild>
133
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
134
+ * </Dialog.Trigger>
135
+ * <Dialog.Content>
136
+ * <Dialog.Header>
137
+ * <Dialog.Title>Dialog Title</Dialog.Title>
138
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
139
+ * <Dialog.CloseIconButton />
140
+ * </Dialog.Header>
141
+ * <Dialog.Body>
142
+ * <p>This is the dialog content.</p>
143
+ * </Dialog.Body>
144
+ * <Dialog.Footer>
145
+ * <Dialog.Close asChild>
146
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
147
+ * </Dialog.Close>
148
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
149
+ * </Dialog.Footer>
150
+ * </Dialog.Content>
151
+ * </Dialog.Root>
152
+ * ```
153
+ */
154
+ declare const Content: ({ children, className, preferredWidth, ref, ...props }: ContentProps) => import("react").JSX.Element;
155
+ /**
156
+ * Contains the header content of the dialog, including the title and close button.
157
+ *
158
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogheader
159
+ *
160
+ * @example
161
+ * ```tsx
162
+ * <Dialog.Root>
163
+ * <Dialog.Trigger asChild>
164
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
165
+ * </Dialog.Trigger>
166
+ * <Dialog.Content>
167
+ * <Dialog.Header>
168
+ * <Dialog.Title>Dialog Title</Dialog.Title>
169
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
170
+ * <Dialog.CloseIconButton />
171
+ * </Dialog.Header>
172
+ * <Dialog.Body>
173
+ * <p>This is the dialog content.</p>
174
+ * </Dialog.Body>
175
+ * <Dialog.Footer>
176
+ * <Dialog.Close asChild>
177
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
178
+ * </Dialog.Close>
179
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
180
+ * </Dialog.Footer>
181
+ * </Dialog.Content>
182
+ * </Dialog.Root>
183
+ * ```
184
+ */
185
+ declare const Header: ({ className, children, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
186
+ type CloseIconButtonProps = Partial<Omit<IconButtonProps, "appearance" | "icon" | "intent">> & {
187
+ /**
188
+ * The visual style of the close icon button. Optional here —
189
+ * `Dialog.CloseIconButton` defaults to `"ghost"` so the close affordance
190
+ * stays visually quiet in the dialog header.
191
+ *
192
+ * @default "ghost"
193
+ */
194
+ appearance?: IconButtonAppearance;
195
+ /**
196
+ * The tone of the close icon button. Optional here —
197
+ * `Dialog.CloseIconButton` defaults to `"neutral"`, the workhorse tone for
198
+ * routine actions like dismissing a dialog.
199
+ *
200
+ * @default "neutral"
201
+ */
202
+ intent?: ButtonIntent;
203
+ };
204
+ /**
205
+ * An icon button that closes the dialog when clicked.
206
+ *
207
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogcloseiconbutton
208
+ *
209
+ * @example
210
+ * ```tsx
211
+ * <Dialog.Root>
212
+ * <Dialog.Trigger asChild>
213
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
214
+ * </Dialog.Trigger>
215
+ * <Dialog.Content>
216
+ * <Dialog.Header>
217
+ * <Dialog.Title>Dialog Title</Dialog.Title>
218
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
219
+ * <Dialog.CloseIconButton />
220
+ * </Dialog.Header>
221
+ * <Dialog.Body>
222
+ * <p>This is the dialog content.</p>
223
+ * </Dialog.Body>
224
+ * <Dialog.Footer>
225
+ * <Dialog.Close asChild>
226
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
227
+ * </Dialog.Close>
228
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
229
+ * </Dialog.Footer>
230
+ * </Dialog.Content>
231
+ * </Dialog.Root>
232
+ * ```
233
+ */
234
+ declare const CloseIconButton: ({ size, type, label, appearance, intent, ...props }: CloseIconButtonProps) => import("react").JSX.Element;
235
+ /**
236
+ * Contains the main content of the dialog.
237
+ *
238
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogbody
239
+ *
240
+ * @example
241
+ * ```tsx
242
+ * <Dialog.Root>
243
+ * <Dialog.Trigger asChild>
244
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
245
+ * </Dialog.Trigger>
246
+ * <Dialog.Content>
247
+ * <Dialog.Header>
248
+ * <Dialog.Title>Dialog Title</Dialog.Title>
249
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
250
+ * <Dialog.CloseIconButton />
251
+ * </Dialog.Header>
252
+ * <Dialog.Body>
253
+ * <p>This is the dialog content.</p>
254
+ * </Dialog.Body>
255
+ * <Dialog.Footer>
256
+ * <Dialog.Close asChild>
257
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
258
+ * </Dialog.Close>
259
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
260
+ * </Dialog.Footer>
261
+ * </Dialog.Content>
262
+ * </Dialog.Root>
263
+ * ```
264
+ */
265
+ declare const Body: ({ className, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
266
+ /**
267
+ * Contains the footer content of the dialog, including action buttons.
268
+ *
269
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogfooter
270
+ *
271
+ * @example
272
+ * ```tsx
273
+ * <Dialog.Root>
274
+ * <Dialog.Trigger asChild>
275
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
276
+ * </Dialog.Trigger>
277
+ * <Dialog.Content>
278
+ * <Dialog.Header>
279
+ * <Dialog.Title>Dialog Title</Dialog.Title>
280
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
281
+ * <Dialog.CloseIconButton />
282
+ * </Dialog.Header>
283
+ * <Dialog.Body>
284
+ * <p>This is the dialog content.</p>
285
+ * </Dialog.Body>
286
+ * <Dialog.Footer>
287
+ * <Dialog.Close asChild>
288
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
289
+ * </Dialog.Close>
290
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
291
+ * </Dialog.Footer>
292
+ * </Dialog.Content>
293
+ * </Dialog.Root>
294
+ * ```
295
+ */
296
+ declare const Footer: ({ className, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
297
+ /**
298
+ * An accessible name to be announced when the dialog is opened.
299
+ *
300
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogtitle
301
+ *
302
+ * @example
303
+ * ```tsx
304
+ * <Dialog.Root>
305
+ * <Dialog.Trigger asChild>
306
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
307
+ * </Dialog.Trigger>
308
+ * <Dialog.Content>
309
+ * <Dialog.Header>
310
+ * <Dialog.Title>Dialog Title</Dialog.Title>
311
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
312
+ * <Dialog.CloseIconButton />
313
+ * </Dialog.Header>
314
+ * <Dialog.Body>
315
+ * <p>This is the dialog content.</p>
316
+ * </Dialog.Body>
317
+ * <Dialog.Footer>
318
+ * <Dialog.Close asChild>
319
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
320
+ * </Dialog.Close>
321
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
322
+ * </Dialog.Footer>
323
+ * </Dialog.Content>
324
+ * </Dialog.Root>
325
+ * ```
326
+ */
327
+ declare const Title: ({ className, ref, ...props }: ComponentProps<typeof Title$1>) => import("react").JSX.Element;
328
+ /**
329
+ * An accessible description to be announced when the dialog is opened.
330
+ * Renders as a `div` by default, but can be changed to any other element using
331
+ * the `asChild` prop.
332
+ *
333
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogdescription
334
+ *
335
+ * @example
336
+ * ```tsx
337
+ * <Dialog.Root>
338
+ * <Dialog.Trigger asChild>
339
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
340
+ * </Dialog.Trigger>
341
+ * <Dialog.Content>
342
+ * <Dialog.Header>
343
+ * <Dialog.Title>Dialog Title</Dialog.Title>
344
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
345
+ * <Dialog.CloseIconButton />
346
+ * </Dialog.Header>
347
+ * <Dialog.Body>
348
+ * <p>This is the dialog content.</p>
349
+ * </Dialog.Body>
350
+ * <Dialog.Footer>
351
+ * <Dialog.Close asChild>
352
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
353
+ * </Dialog.Close>
354
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
355
+ * </Dialog.Footer>
356
+ * </Dialog.Content>
357
+ * </Dialog.Root>
358
+ * ```
359
+ */
360
+ declare const Description: ({ className, ref, ...props }: ComponentProps<typeof Description$1>) => import("react").JSX.Element;
361
+ /**
362
+ * A window overlaid on either the primary window or another dialog window. Use
363
+ * Dialog for a focused modal that interrupts the user to gather input or
364
+ * confirm a non-destructive choice. For destructive or irreversible
365
+ * confirmations (delete, sign out, leave without saving), prefer `AlertDialog`.
366
+ * For side-panel content that slides in from an edge (filter panels, detail
367
+ * views, navigation drawers), prefer `Sheet`.
368
+ *
369
+ * `Dialog` renders its floating layer at Tailwind `z-50`, Mantle's shared
370
+ * floating z-index. When multiple shared layers are open, the most recently
371
+ * mounted layer renders on top.
372
+ *
373
+ * @see https://mantle.ngrok.com/components/overlays/dialog
374
+ *
375
+ * @example
376
+ * Composition:
377
+ * ```
378
+ * Dialog.Root
379
+ * ├── Dialog.Trigger
380
+ * └── Dialog.Content
381
+ * ├── Dialog.Header
382
+ * │ ├── Dialog.Title
383
+ * │ ├── Dialog.Description
384
+ * │ └── Dialog.CloseIconButton
385
+ * ├── Dialog.Body
386
+ * └── Dialog.Footer
387
+ * └── Dialog.Close
388
+ * ```
389
+ *
390
+ * @example
391
+ * ```tsx
392
+ * <Dialog.Root>
393
+ * <Dialog.Trigger asChild>
394
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
395
+ * </Dialog.Trigger>
396
+ * <Dialog.Content>
397
+ * <Dialog.Header>
398
+ * <Dialog.Title>Dialog Title</Dialog.Title>
399
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
400
+ * <Dialog.CloseIconButton />
401
+ * </Dialog.Header>
402
+ * <Dialog.Body>
403
+ * <p>This is the dialog content.</p>
404
+ * </Dialog.Body>
405
+ * <Dialog.Footer>
406
+ * <Dialog.Close asChild>
407
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
408
+ * </Dialog.Close>
409
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
410
+ * </Dialog.Footer>
411
+ * </Dialog.Content>
412
+ * </Dialog.Root>
413
+ * ```
414
+ */
415
+ declare const Dialog: {
416
+ /**
417
+ * A window overlaid on either the primary window or another dialog window.
418
+ * The root stateful component for the Dialog.
419
+ *
420
+ * `Dialog` renders its floating layer at Tailwind `z-50`, Mantle's shared
421
+ * floating z-index. When multiple shared layers are open, the most recently
422
+ * mounted layer renders on top.
423
+ *
424
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogroot
425
+ *
426
+ * @example
427
+ * ```tsx
428
+ * <Dialog.Root>
429
+ * <Dialog.Trigger asChild>
430
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
431
+ * </Dialog.Trigger>
432
+ * <Dialog.Content>
433
+ * <Dialog.Header>
434
+ * <Dialog.Title>Dialog Title</Dialog.Title>
435
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
436
+ * <Dialog.CloseIconButton />
437
+ * </Dialog.Header>
438
+ * <Dialog.Body>
439
+ * <p>This is the dialog content.</p>
440
+ * </Dialog.Body>
441
+ * <Dialog.Footer>
442
+ * <Dialog.Close asChild>
443
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
444
+ * </Dialog.Close>
445
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
446
+ * </Dialog.Footer>
447
+ * </Dialog.Content>
448
+ * </Dialog.Root>
449
+ * ```
450
+ */
451
+ readonly Root: typeof Root;
452
+ /**
453
+ * Contains the main content of the dialog.
454
+ *
455
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogbody
456
+ *
457
+ * @example
458
+ * ```tsx
459
+ * <Dialog.Root>
460
+ * <Dialog.Trigger asChild>
461
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
462
+ * </Dialog.Trigger>
463
+ * <Dialog.Content>
464
+ * <Dialog.Header>
465
+ * <Dialog.Title>Dialog Title</Dialog.Title>
466
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
467
+ * <Dialog.CloseIconButton />
468
+ * </Dialog.Header>
469
+ * <Dialog.Body>
470
+ * <p>This is the dialog content.</p>
471
+ * </Dialog.Body>
472
+ * <Dialog.Footer>
473
+ * <Dialog.Close asChild>
474
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
475
+ * </Dialog.Close>
476
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
477
+ * </Dialog.Footer>
478
+ * </Dialog.Content>
479
+ * </Dialog.Root>
480
+ * ```
481
+ */
482
+ readonly Body: typeof Body;
483
+ /**
484
+ * A button that closes the dialog when clicked.
485
+ *
486
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogclose
487
+ *
488
+ * @example
489
+ * ```tsx
490
+ * <Dialog.Root>
491
+ * <Dialog.Trigger asChild>
492
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
493
+ * </Dialog.Trigger>
494
+ * <Dialog.Content>
495
+ * <Dialog.Header>
496
+ * <Dialog.Title>Dialog Title</Dialog.Title>
497
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
498
+ * <Dialog.CloseIconButton />
499
+ * </Dialog.Header>
500
+ * <Dialog.Body>
501
+ * <p>This is the dialog content.</p>
502
+ * </Dialog.Body>
503
+ * <Dialog.Footer>
504
+ * <Dialog.Close asChild>
505
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
506
+ * </Dialog.Close>
507
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
508
+ * </Dialog.Footer>
509
+ * </Dialog.Content>
510
+ * </Dialog.Root>
511
+ * ```
512
+ */
513
+ readonly Close: typeof Close;
514
+ /**
515
+ * An icon button that closes the dialog when clicked.
516
+ *
517
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogcloseiconbutton
518
+ *
519
+ * @example
520
+ * ```tsx
521
+ * <Dialog.Root>
522
+ * <Dialog.Trigger asChild>
523
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
524
+ * </Dialog.Trigger>
525
+ * <Dialog.Content>
526
+ * <Dialog.Header>
527
+ * <Dialog.Title>Dialog Title</Dialog.Title>
528
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
529
+ * <Dialog.CloseIconButton />
530
+ * </Dialog.Header>
531
+ * <Dialog.Body>
532
+ * <p>This is the dialog content.</p>
533
+ * </Dialog.Body>
534
+ * <Dialog.Footer>
535
+ * <Dialog.Close asChild>
536
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
537
+ * </Dialog.Close>
538
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
539
+ * </Dialog.Footer>
540
+ * </Dialog.Content>
541
+ * </Dialog.Root>
542
+ * ```
543
+ */
544
+ readonly CloseIconButton: typeof CloseIconButton;
545
+ /**
546
+ * The container for the dialog content.
547
+ * Renders on top of the overlay and is centered in the viewport.
548
+ *
549
+ * `Dialog.Content` renders its floating layer at Tailwind `z-50`, Mantle's
550
+ * shared floating z-index. When multiple shared layers are open, the most
551
+ * recently mounted layer renders on top.
552
+ *
553
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogcontent
554
+ *
555
+ * @example
556
+ * ```tsx
557
+ * <Dialog.Root>
558
+ * <Dialog.Trigger asChild>
559
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
560
+ * </Dialog.Trigger>
561
+ * <Dialog.Content>
562
+ * <Dialog.Header>
563
+ * <Dialog.Title>Dialog Title</Dialog.Title>
564
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
565
+ * <Dialog.CloseIconButton />
566
+ * </Dialog.Header>
567
+ * <Dialog.Body>
568
+ * <p>This is the dialog content.</p>
569
+ * </Dialog.Body>
570
+ * <Dialog.Footer>
571
+ * <Dialog.Close asChild>
572
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
573
+ * </Dialog.Close>
574
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
575
+ * </Dialog.Footer>
576
+ * </Dialog.Content>
577
+ * </Dialog.Root>
578
+ * ```
579
+ */
580
+ readonly Content: typeof Content;
581
+ /**
582
+ * An accessible description to be announced when the dialog is opened.
583
+ *
584
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogdescription
585
+ *
586
+ * @example
587
+ * ```tsx
588
+ * <Dialog.Root>
589
+ * <Dialog.Trigger asChild>
590
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
591
+ * </Dialog.Trigger>
592
+ * <Dialog.Content>
593
+ * <Dialog.Header>
594
+ * <Dialog.Title>Dialog Title</Dialog.Title>
595
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
596
+ * <Dialog.CloseIconButton />
597
+ * </Dialog.Header>
598
+ * <Dialog.Body>
599
+ * <p>This is the dialog content.</p>
600
+ * </Dialog.Body>
601
+ * <Dialog.Footer>
602
+ * <Dialog.Close asChild>
603
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
604
+ * </Dialog.Close>
605
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
606
+ * </Dialog.Footer>
607
+ * </Dialog.Content>
608
+ * </Dialog.Root>
609
+ * ```
610
+ */
611
+ readonly Description: typeof Description;
612
+ /**
613
+ * Contains the footer content of the dialog, including action buttons.
614
+ *
615
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogfooter
616
+ *
617
+ * @example
618
+ * ```tsx
619
+ * <Dialog.Root>
620
+ * <Dialog.Trigger asChild>
621
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
622
+ * </Dialog.Trigger>
623
+ * <Dialog.Content>
624
+ * <Dialog.Header>
625
+ * <Dialog.Title>Dialog Title</Dialog.Title>
626
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
627
+ * <Dialog.CloseIconButton />
628
+ * </Dialog.Header>
629
+ * <Dialog.Body>
630
+ * <p>This is the dialog content.</p>
631
+ * </Dialog.Body>
632
+ * <Dialog.Footer>
633
+ * <Dialog.Close asChild>
634
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
635
+ * </Dialog.Close>
636
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
637
+ * </Dialog.Footer>
638
+ * </Dialog.Content>
639
+ * </Dialog.Root>
640
+ * ```
641
+ */
642
+ readonly Footer: typeof Footer;
643
+ /**
644
+ * Contains the header content of the dialog, including the title and close button.
645
+ *
646
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogheader
647
+ *
648
+ * @example
649
+ * ```tsx
650
+ * <Dialog.Root>
651
+ * <Dialog.Trigger asChild>
652
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
653
+ * </Dialog.Trigger>
654
+ * <Dialog.Content>
655
+ * <Dialog.Header>
656
+ * <Dialog.Title>Dialog Title</Dialog.Title>
657
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
658
+ * <Dialog.CloseIconButton />
659
+ * </Dialog.Header>
660
+ * <Dialog.Body>
661
+ * <p>This is the dialog content.</p>
662
+ * </Dialog.Body>
663
+ * <Dialog.Footer>
664
+ * <Dialog.Close asChild>
665
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
666
+ * </Dialog.Close>
667
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
668
+ * </Dialog.Footer>
669
+ * </Dialog.Content>
670
+ * </Dialog.Root>
671
+ * ```
672
+ */
673
+ readonly Header: typeof Header;
674
+ /**
675
+ * The overlay backdrop for the dialog.
676
+ *
677
+ * @see https://mantle.ngrok.com/components/overlays/dialog#api-reference
678
+ *
679
+ * @example
680
+ * ```tsx
681
+ * <Dialog.Root>
682
+ * <Dialog.Trigger asChild>
683
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
684
+ * </Dialog.Trigger>
685
+ * <Dialog.Portal>
686
+ * <Dialog.Overlay />
687
+ * <Dialog.Content>
688
+ * <Dialog.Header>
689
+ * <Dialog.Title>Dialog Title</Dialog.Title>
690
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
691
+ * <Dialog.CloseIconButton />
692
+ * </Dialog.Header>
693
+ * <Dialog.Body>
694
+ * <p>This is the dialog content.</p>
695
+ * </Dialog.Body>
696
+ * <Dialog.Footer>
697
+ * <Dialog.Close asChild>
698
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
699
+ * </Dialog.Close>
700
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
701
+ * </Dialog.Footer>
702
+ * </Dialog.Content>
703
+ * </Dialog.Portal>
704
+ * </Dialog.Root>
705
+ * ```
706
+ */
707
+ readonly Overlay: typeof Overlay;
708
+ /**
709
+ * The portal container for the dialog.
710
+ *
711
+ * @see https://mantle.ngrok.com/components/overlays/dialog#api-reference
712
+ *
713
+ * @example
714
+ * ```tsx
715
+ * <Dialog.Root>
716
+ * <Dialog.Trigger asChild>
717
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
718
+ * </Dialog.Trigger>
719
+ * <Dialog.Portal>
720
+ * <Dialog.Overlay />
721
+ * <Dialog.Content>
722
+ * <Dialog.Header>
723
+ * <Dialog.Title>Dialog Title</Dialog.Title>
724
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
725
+ * <Dialog.CloseIconButton />
726
+ * </Dialog.Header>
727
+ * <Dialog.Body>
728
+ * <p>This is the dialog content.</p>
729
+ * </Dialog.Body>
730
+ * <Dialog.Footer>
731
+ * <Dialog.Close asChild>
732
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
733
+ * </Dialog.Close>
734
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
735
+ * </Dialog.Footer>
736
+ * </Dialog.Content>
737
+ * </Dialog.Portal>
738
+ * </Dialog.Root>
739
+ * ```
740
+ */
741
+ readonly Portal: import("react").FC<import("@radix-ui/react-dialog").DialogPortalProps>;
742
+ /**
743
+ * An accessible name to be announced when the dialog is opened.
744
+ *
745
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogtitle
746
+ *
747
+ * @example
748
+ * ```tsx
749
+ * <Dialog.Root>
750
+ * <Dialog.Trigger asChild>
751
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
752
+ * </Dialog.Trigger>
753
+ * <Dialog.Content>
754
+ * <Dialog.Header>
755
+ * <Dialog.Title>Dialog Title</Dialog.Title>
756
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
757
+ * <Dialog.CloseIconButton />
758
+ * </Dialog.Header>
759
+ * <Dialog.Body>
760
+ * <p>This is the dialog content.</p>
761
+ * </Dialog.Body>
762
+ * <Dialog.Footer>
763
+ * <Dialog.Close asChild>
764
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
765
+ * </Dialog.Close>
766
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
767
+ * </Dialog.Footer>
768
+ * </Dialog.Content>
769
+ * </Dialog.Root>
770
+ * ```
771
+ */
772
+ readonly Title: typeof Title;
773
+ /**
774
+ * A button that opens the dialog.
775
+ *
776
+ * @see https://mantle.ngrok.com/components/overlays/dialog#dialogtrigger
777
+ *
778
+ * @example
779
+ * ```tsx
780
+ * <Dialog.Root>
781
+ * <Dialog.Trigger asChild>
782
+ * <Button type="button" appearance="filled" intent="neutral">Open Dialog</Button>
783
+ * </Dialog.Trigger>
784
+ * <Dialog.Content>
785
+ * <Dialog.Header>
786
+ * <Dialog.Title>Dialog Title</Dialog.Title>
787
+ * <Dialog.Description>This is an optional description.</Dialog.Description>
788
+ * <Dialog.CloseIconButton />
789
+ * </Dialog.Header>
790
+ * <Dialog.Body>
791
+ * <p>This is the dialog content.</p>
792
+ * </Dialog.Body>
793
+ * <Dialog.Footer>
794
+ * <Dialog.Close asChild>
795
+ * <Button type="button" appearance="outlined" intent="neutral">Cancel</Button>
796
+ * </Dialog.Close>
797
+ * <Button type="button" appearance="filled" intent="neutral">Save</Button>
798
+ * </Dialog.Footer>
799
+ * </Dialog.Content>
800
+ * </Dialog.Root>
801
+ * ```
802
+ */
803
+ readonly Trigger: typeof Trigger;
804
+ };
805
+ //#endregion
806
+ export { Dialog as t };