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