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