@ngrok/mantle 0.66.0 → 0.66.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 +158 -154
- package/dist/accordion.js +1 -1
- package/dist/accordion.js.map +1 -1
- package/dist/alert-dialog.d.ts +282 -277
- package/dist/alert-dialog.js +1 -1
- package/dist/alert-dialog.js.map +1 -1
- package/dist/alert.d.ts +145 -138
- package/dist/alert.js +1 -1
- package/dist/alert.js.map +1 -1
- package/dist/anchor.d.ts +25 -22
- package/dist/anchor.js +1 -1
- package/dist/anchor.js.map +1 -1
- package/dist/as-child-XMVTepJu.d.ts +31 -0
- package/dist/badge.d.ts +29 -19
- package/dist/badge.js +1 -1
- package/dist/badge.js.map +1 -1
- package/dist/booleanish-CBGdPL3Q.js +2 -0
- package/dist/booleanish-CBGdPL3Q.js.map +1 -0
- package/dist/browser-only-jrBUqioz.js +2 -0
- package/dist/browser-only-jrBUqioz.js.map +1 -0
- package/dist/browser-only.d.ts +20 -15
- package/dist/browser-only.js +1 -2
- package/dist/button-CKL-3sIr.d.ts +175 -0
- package/dist/button-CRRPesae.js +2 -0
- package/dist/button-CRRPesae.js.map +1 -0
- package/dist/button-DA2p0_5F.js +2 -0
- package/dist/button-DA2p0_5F.js.map +1 -0
- package/dist/button.d.ts +4 -9
- package/dist/button.js +1 -2
- package/dist/calendar.d.ts +14 -8
- package/dist/calendar.js +1 -1
- package/dist/calendar.js.map +1 -1
- package/dist/card.d.ts +99 -97
- package/dist/card.js +1 -1
- package/dist/card.js.map +1 -1
- package/dist/checkbox.d.ts +14 -12
- package/dist/checkbox.js +1 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/code-block.d.ts +254 -237
- package/dist/code-block.js +3 -3
- package/dist/code-block.js.map +1 -1
- package/dist/code.d.ts +5 -3
- package/dist/code.js +1 -1
- package/dist/code.js.map +1 -1
- package/dist/color.d.ts +2 -38
- package/dist/color.js +1 -1
- package/dist/color.js.map +1 -1
- package/dist/combobox.d.ts +172 -167
- package/dist/combobox.js +1 -1
- package/dist/combobox.js.map +1 -1
- package/dist/command.d.ts +234 -227
- package/dist/command.js +1 -1
- package/dist/command.js.map +1 -1
- package/dist/compose-refs-DeIsFv68.js +2 -0
- package/dist/compose-refs-DeIsFv68.js.map +1 -0
- package/dist/cx-bKromGBh.js +2 -0
- package/dist/cx-bKromGBh.js.map +1 -0
- package/dist/cx.d.ts +4 -2
- package/dist/cx.js +1 -2
- package/dist/data-table.d.ts +211 -184
- package/dist/data-table.js +1 -1
- package/dist/data-table.js.map +1 -1
- package/dist/deep-non-nullable-BLM3Gz0I.d.ts +8 -0
- package/dist/description-list.d.ts +61 -59
- package/dist/description-list.js +1 -1
- package/dist/description-list.js.map +1 -1
- package/dist/dialog-BuD_JQf_.d.ts +422 -0
- package/dist/dialog-CGBjHvo_.js +2 -0
- package/dist/dialog-CGBjHvo_.js.map +1 -0
- package/dist/dialog.d.ts +3 -410
- package/dist/dialog.js +1 -2
- package/dist/direction-DfrtFTny.js +2 -0
- package/dist/direction-DfrtFTny.js.map +1 -0
- package/dist/{direction-DHheuUag.d.ts → direction-deXpJFDZ.d.ts} +9 -7
- package/dist/dropdown-menu-CjOaj-Ap.js +2 -0
- package/dist/dropdown-menu-CjOaj-Ap.js.map +1 -0
- package/dist/dropdown-menu-D_ZoY1AH.d.ts +330 -0
- package/dist/dropdown-menu.d.ts +2 -325
- package/dist/dropdown-menu.js +1 -2
- package/dist/flag.d.ts +31 -22
- package/dist/flag.js +1 -1
- package/dist/flag.js.map +1 -1
- package/dist/hooks.d.ts +72 -59
- package/dist/hooks.js +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/hover-card.d.ts +97 -91
- package/dist/hover-card.js +1 -1
- package/dist/hover-card.js.map +1 -1
- package/dist/{icon-DXTMiV1L.d.ts → icon-B1XLv02t.d.ts} +11 -9
- package/dist/icon-B5oNYYrJ.js +2 -0
- package/dist/icon-B5oNYYrJ.js.map +1 -0
- package/dist/icon-button-2r6S3HVA.d.ts +98 -0
- package/dist/icon-button-D4e9-dq-.js +2 -0
- package/dist/icon-button-D4e9-dq-.js.map +1 -0
- package/dist/icon.d.ts +4 -4
- package/dist/icon.js +1 -2
- package/dist/icons.d.ts +54 -41
- package/dist/icons.js +1 -1
- package/dist/icons.js.map +1 -1
- package/dist/{in-view-aHeQHaUj.d.ts → in-view-CTQRT44m.d.ts} +29 -22
- package/dist/in-view-bPnaWEL4.js +2 -0
- package/dist/in-view-bPnaWEL4.js.map +1 -0
- package/dist/index-BLCvtjLi.d.ts +40 -0
- package/dist/index-DWqhfw9n.d.ts +103 -0
- package/dist/{button-group-BFnqgdtl.d.ts → index-ViSCOUrU.d.ts} +10 -8
- package/dist/index-s8rMcilU.d.ts +47 -0
- package/dist/input.d.ts +3 -100
- package/dist/input.js +1 -1
- package/dist/input.js.map +1 -1
- package/dist/is-input-BFR8yMM7.js +2 -0
- package/dist/is-input-BFR8yMM7.js.map +1 -0
- package/dist/kbd-pyj32aN4.js +2 -0
- package/dist/kbd-pyj32aN4.js.map +1 -0
- package/dist/kbd.d.ts +10 -4
- package/dist/kbd.js +1 -2
- package/dist/label.d.ts +8 -6
- package/dist/label.js +1 -1
- package/dist/label.js.map +1 -1
- package/dist/media-object.d.ts +70 -68
- package/dist/media-object.js +1 -1
- package/dist/media-object.js.map +1 -1
- package/dist/multi-select.d.ts +226 -218
- package/dist/multi-select.js +1 -1
- package/dist/multi-select.js.map +1 -1
- package/dist/pagination.d.ts +168 -164
- package/dist/pagination.js +1 -1
- package/dist/pagination.js.map +1 -1
- package/dist/popover.d.ts +119 -117
- package/dist/popover.js +1 -1
- package/dist/popover.js.map +1 -1
- package/dist/primitive-W5Izf14l.js +2 -0
- package/dist/primitive-W5Izf14l.js.map +1 -0
- package/dist/primitive-tuHqhoRE.d.ts +16 -0
- package/dist/progress.d.ts +175 -150
- package/dist/progress.js +1 -1
- package/dist/progress.js.map +1 -1
- package/dist/radio-group.d.ts +246 -230
- package/dist/radio-group.js +1 -1
- package/dist/radio-group.js.map +1 -1
- package/dist/sandboxed-on-click.d.ts +36 -31
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/sandboxed-on-click.js.map +1 -1
- package/dist/select-39Jfc1Cb.d.ts +265 -0
- package/dist/select-DZ2ztBkI.js +2 -0
- package/dist/select-DZ2ztBkI.js.map +1 -0
- package/dist/select.d.ts +2 -263
- package/dist/select.js +1 -2
- package/dist/separator-BcCNbHBg.js +2 -0
- package/dist/separator-BcCNbHBg.js.map +1 -0
- package/dist/separator.d.ts +28 -21
- package/dist/separator.js +1 -2
- package/dist/sheet.d.ts +319 -305
- package/dist/sheet.js +1 -1
- package/dist/sheet.js.map +1 -1
- package/dist/skeleton.d.ts +8 -6
- package/dist/skeleton.js +1 -1
- package/dist/skeleton.js.map +1 -1
- package/dist/slider.d.ts +48 -35
- package/dist/slider.js +1 -1
- package/dist/slider.js.map +1 -1
- package/dist/slot-DdnjeV2n.js +2 -0
- package/dist/slot-DdnjeV2n.js.map +1 -0
- package/dist/slot.d.ts +6 -4
- package/dist/slot.js +1 -2
- package/dist/sort-CfPsu1Gs.js +2 -0
- package/dist/sort-CfPsu1Gs.js.map +1 -0
- package/dist/split-button.d.ts +158 -162
- package/dist/split-button.js +1 -1
- package/dist/split-button.js.map +1 -1
- package/dist/svg-only-BVLlbQ4e.js +2 -0
- package/dist/svg-only-BVLlbQ4e.js.map +1 -0
- package/dist/{svg-only-Cp8Mu_sh.d.ts → svg-only-Dti1FvNV.d.ts} +11 -9
- package/dist/switch.d.ts +10 -8
- package/dist/switch.js +1 -1
- package/dist/switch.js.map +1 -1
- package/dist/table-BWMp12sl.js +2 -0
- package/dist/table-BWMp12sl.js.map +1 -0
- package/dist/table-Dpt192qt.d.ts +398 -0
- package/dist/table.d.ts +2 -396
- package/dist/table.js +1 -2
- package/dist/tabs.d.ts +110 -104
- package/dist/tabs.js +1 -1
- package/dist/tabs.js.map +1 -1
- package/dist/text-area.d.ts +10 -8
- package/dist/text-area.js +1 -1
- package/dist/text-area.js.map +1 -1
- package/dist/theme-provider-CbzLgte1.js +2 -0
- package/dist/theme-provider-CbzLgte1.js.map +1 -0
- package/dist/theme.d.ts +65 -38
- package/dist/theme.js +1 -2
- package/dist/{themes-Bi46K9ZW.d.ts → themes-ClppRAGt.d.ts} +4 -2
- package/dist/toast-B4gxB8U0.js +2 -0
- package/dist/toast-B4gxB8U0.js.map +1 -0
- package/dist/toast.d.ts +95 -87
- package/dist/toast.js +1 -2
- package/dist/tooltip.d.ts +78 -73
- package/dist/tooltip.js +1 -1
- package/dist/tooltip.js.map +1 -1
- package/dist/{chunk-W2YQRWR5.js → traffic-policy-file-QnF-2YkY.js} +2 -2
- package/dist/traffic-policy-file-QnF-2YkY.js.map +1 -0
- package/dist/types-884RJJqm.js +2 -0
- package/dist/types-884RJJqm.js.map +1 -0
- package/dist/{types-DehRoXC5.d.ts → types-DgXUgkpc.d.ts} +38 -36
- package/dist/types-Dh4BVhXC.d.ts +9 -0
- package/dist/types.d.ts +6 -49
- package/dist/types.js +1 -2
- package/dist/use-copy-to-clipboard-BEbQOKHc.js +2 -0
- package/dist/use-copy-to-clipboard-BEbQOKHc.js.map +1 -0
- package/dist/use-matches-media-query-BxTQ5f4i.js +2 -0
- package/dist/use-matches-media-query-BxTQ5f4i.js.map +1 -0
- package/dist/use-prefers-reduced-motion-BPlsKyCJ.js +2 -0
- package/dist/use-prefers-reduced-motion-BPlsKyCJ.js.map +1 -0
- package/dist/utils.d.ts +6 -5
- package/dist/utils.js +1 -1
- package/dist/utils.js.map +1 -1
- package/dist/variant-props-UE-phTwh.d.ts +13 -0
- package/dist/with-style-props-D1QFTzj6.d.ts +29 -0
- package/package.json +6 -6
- package/dist/as-child-DJ7x3JFV.d.ts +0 -21
- package/dist/browser-only.js.map +0 -1
- package/dist/button-DLUUf_c-.d.ts +0 -173
- package/dist/button.js.map +0 -1
- package/dist/chunk-2FYR6IJV.js +0 -2
- package/dist/chunk-2FYR6IJV.js.map +0 -1
- package/dist/chunk-5VDCC3YW.js +0 -2
- package/dist/chunk-5VDCC3YW.js.map +0 -1
- package/dist/chunk-63ZAW25Z.js +0 -2
- package/dist/chunk-63ZAW25Z.js.map +0 -1
- package/dist/chunk-6J7D73WA.js +0 -2
- package/dist/chunk-6J7D73WA.js.map +0 -1
- package/dist/chunk-72TJUKMV.js +0 -1
- package/dist/chunk-72TJUKMV.js.map +0 -1
- package/dist/chunk-7MJQGBE4.js +0 -2
- package/dist/chunk-7MJQGBE4.js.map +0 -1
- package/dist/chunk-7YLII2US.js +0 -2
- package/dist/chunk-7YLII2US.js.map +0 -1
- package/dist/chunk-ADF5DAYG.js +0 -2
- package/dist/chunk-ADF5DAYG.js.map +0 -1
- package/dist/chunk-CBRSMQ26.js +0 -2
- package/dist/chunk-CBRSMQ26.js.map +0 -1
- package/dist/chunk-COQIVAQH.js +0 -2
- package/dist/chunk-COQIVAQH.js.map +0 -1
- package/dist/chunk-ELZLLG6G.js +0 -2
- package/dist/chunk-ELZLLG6G.js.map +0 -1
- package/dist/chunk-EVU5XGB4.js +0 -2
- package/dist/chunk-EVU5XGB4.js.map +0 -1
- package/dist/chunk-EYZYDUS2.js +0 -2
- package/dist/chunk-EYZYDUS2.js.map +0 -1
- package/dist/chunk-HKSO72E5.js +0 -2
- package/dist/chunk-HKSO72E5.js.map +0 -1
- package/dist/chunk-HL2HWYKP.js +0 -2
- package/dist/chunk-HL2HWYKP.js.map +0 -1
- package/dist/chunk-IVQ626TU.js +0 -2
- package/dist/chunk-IVQ626TU.js.map +0 -1
- package/dist/chunk-JQ5D5YZR.js +0 -2
- package/dist/chunk-JQ5D5YZR.js.map +0 -1
- package/dist/chunk-LBO5LEYM.js +0 -2
- package/dist/chunk-LBO5LEYM.js.map +0 -1
- package/dist/chunk-MLXONRJD.js +0 -2
- package/dist/chunk-MLXONRJD.js.map +0 -1
- package/dist/chunk-OHPGAB7U.js +0 -2
- package/dist/chunk-OHPGAB7U.js.map +0 -1
- package/dist/chunk-OP6JMBKJ.js +0 -2
- package/dist/chunk-OP6JMBKJ.js.map +0 -1
- package/dist/chunk-PFXFESEN.js +0 -2
- package/dist/chunk-PFXFESEN.js.map +0 -1
- package/dist/chunk-PNL7JOXI.js +0 -2
- package/dist/chunk-PNL7JOXI.js.map +0 -1
- package/dist/chunk-RED6SFAV.js +0 -2
- package/dist/chunk-RED6SFAV.js.map +0 -1
- package/dist/chunk-SBQHQ2SJ.js +0 -2
- package/dist/chunk-SBQHQ2SJ.js.map +0 -1
- package/dist/chunk-SGGOH2WW.js +0 -2
- package/dist/chunk-SGGOH2WW.js.map +0 -1
- package/dist/chunk-W2YQRWR5.js.map +0 -1
- package/dist/chunk-W5A5HSFE.js +0 -2
- package/dist/chunk-W5A5HSFE.js.map +0 -1
- package/dist/chunk-YPAUKPCE.js +0 -2
- package/dist/chunk-YPAUKPCE.js.map +0 -1
- package/dist/cx.js.map +0 -1
- package/dist/deep-non-nullable-SmpSvoSd.d.ts +0 -8
- package/dist/dialog.js.map +0 -1
- package/dist/dropdown-menu.js.map +0 -1
- package/dist/icon-button-CT71Ti9V.d.ts +0 -96
- package/dist/icon.js.map +0 -1
- package/dist/kbd.js.map +0 -1
- package/dist/primitive-CBR_XmVa.d.ts +0 -14
- package/dist/select.js.map +0 -1
- package/dist/separator.js.map +0 -1
- package/dist/slot.js.map +0 -1
- package/dist/table.js.map +0 -1
- package/dist/theme.js.map +0 -1
- package/dist/toast.js.map +0 -1
- package/dist/types-BuKAGhC-.d.ts +0 -7
- package/dist/types.js.map +0 -1
- package/dist/variant-props-oDo2u-We.d.ts +0 -11
- package/dist/with-style-props-VnLWm0Yd.d.ts +0 -27
package/dist/sheet.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { VariantProps } from
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import './as-child-DJ7x3JFV.js';
|
|
10
|
-
import './variant-props-oDo2u-We.js';
|
|
11
|
-
import './deep-non-nullable-SmpSvoSd.js';
|
|
1
|
+
import { t as Root } from "./primitive-tuHqhoRE.js";
|
|
2
|
+
import { n as IconButtonProps } from "./icon-button-2r6S3HVA.js";
|
|
3
|
+
import * as react from "react";
|
|
4
|
+
import { HTMLAttributes } from "react";
|
|
5
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
+
import { VariantProps } from "class-variance-authority";
|
|
7
|
+
import * as _radix_ui_react_dialog0 from "@radix-ui/react-dialog";
|
|
8
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
12
9
|
|
|
10
|
+
//#region src/components/sheet/sheet.d.ts
|
|
13
11
|
type SheetCloseIconButtonProps = Partial<Omit<IconButtonProps, "icon">>;
|
|
14
12
|
/**
|
|
15
13
|
* A container that overlays the current view from the edge of the screen.
|
|
@@ -110,303 +108,319 @@ type SheetCloseIconButtonProps = Partial<Omit<IconButtonProps, "icon">>;
|
|
|
110
108
|
* ```
|
|
111
109
|
*/
|
|
112
110
|
declare const Sheet: {
|
|
111
|
+
/**
|
|
112
|
+
* The root component for a `Sheet`. Should compose the `Sheet.Trigger` and `Sheet.Content`.
|
|
113
|
+
* Acts as a stateful provider for the Sheet's open/closed state.
|
|
114
|
+
*
|
|
115
|
+
* @see https://mantle.ngrok.com/components/sheet#sheetroot
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```tsx
|
|
119
|
+
* // Triggering a stateful sheet
|
|
120
|
+
* <Sheet.Root>
|
|
121
|
+
* <Sheet.Trigger asChild>
|
|
122
|
+
* <Button type="button" appearance="filled">
|
|
123
|
+
* Open Sheet
|
|
124
|
+
* </Button>
|
|
125
|
+
* </Sheet.Trigger>
|
|
126
|
+
* <Sheet.Content>
|
|
127
|
+
* <Sheet.Header>
|
|
128
|
+
* <Sheet.TitleGroup>
|
|
129
|
+
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
130
|
+
* <Sheet.Actions>
|
|
131
|
+
* <Sheet.CloseIconButton />
|
|
132
|
+
* </Sheet.Actions>
|
|
133
|
+
* </Sheet.TitleGroup>
|
|
134
|
+
* </Sheet.Header>
|
|
135
|
+
* </Sheet.Content>
|
|
136
|
+
* </Sheet.Root>
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
readonly Root: typeof Root;
|
|
140
|
+
/**
|
|
141
|
+
* A group container for the actions of a `Sheet`. Typically rendered as a child of `Sheet.TitleGroup`.
|
|
142
|
+
*
|
|
143
|
+
* @see https://mantle.ngrok.com/components/sheet#sheetactions
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```tsx
|
|
147
|
+
* <Sheet.TitleGroup>
|
|
148
|
+
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
149
|
+
* <Sheet.Actions>
|
|
150
|
+
* <Sheet.CloseIconButton />
|
|
151
|
+
* </Sheet.Actions>
|
|
152
|
+
* </Sheet.TitleGroup>
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
readonly Actions: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
156
|
+
/**
|
|
157
|
+
* The body container for a `Sheet`. This is where you would typically place the main content of the sheet, such as forms or text.
|
|
158
|
+
* Should be rendered as a child of `Sheet.Content`.
|
|
159
|
+
*
|
|
160
|
+
* @see https://mantle.ngrok.com/components/sheet#sheetbody
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```tsx
|
|
164
|
+
* <Sheet.Content>
|
|
165
|
+
* <Sheet.Header>
|
|
166
|
+
* <Sheet.TitleGroup>
|
|
167
|
+
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
168
|
+
* <Sheet.Actions>
|
|
169
|
+
* <Sheet.CloseIconButton />
|
|
170
|
+
* </Sheet.Actions>
|
|
171
|
+
* </Sheet.TitleGroup>
|
|
172
|
+
* </Sheet.Header>
|
|
173
|
+
* <Sheet.Body>
|
|
174
|
+
* <p>This is the sheet content.</p>
|
|
175
|
+
* </Sheet.Body>
|
|
176
|
+
* </Sheet.Content>
|
|
177
|
+
* ```
|
|
178
|
+
*/
|
|
179
|
+
readonly Body: {
|
|
180
|
+
({
|
|
181
|
+
className,
|
|
182
|
+
...props
|
|
183
|
+
}: HTMLAttributes<HTMLDivElement>): react_jsx_runtime0.JSX.Element;
|
|
184
|
+
displayName: string;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* The close button for a `Sheet`. Should be rendered as a child of the `Sheet.Content` component.
|
|
188
|
+
* Usually contained within the `Sheet.Footer` component.
|
|
189
|
+
* Renders an unstyled button by default, but can be customized with the `asChild` prop.
|
|
190
|
+
*
|
|
191
|
+
* @see https://mantle.ngrok.com/components/sheet#sheetclose
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* ```tsx
|
|
195
|
+
* <Sheet.Footer>
|
|
196
|
+
* <Sheet.Close asChild>
|
|
197
|
+
* <Button type="button">Close</Button>
|
|
198
|
+
* </Sheet.Close>
|
|
199
|
+
* </Sheet.Footer>
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
readonly Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog0.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
203
|
+
/**
|
|
204
|
+
* An icon button that closes the `Sheet` when clicked.
|
|
205
|
+
* Should be rendered within the `Sheet.Header` as a child of `Sheet.Actions`.
|
|
206
|
+
*
|
|
207
|
+
* @see https://mantle.ngrok.com/components/sheet#sheetcloseiconbutton
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* ```tsx
|
|
211
|
+
* <Sheet.Header>
|
|
212
|
+
* <Sheet.TitleGroup>
|
|
213
|
+
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
214
|
+
* <Sheet.Actions>
|
|
215
|
+
* <Sheet.CloseIconButton />
|
|
216
|
+
* </Sheet.Actions>
|
|
217
|
+
* </Sheet.TitleGroup>
|
|
218
|
+
* </Sheet.Header>
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
readonly CloseIconButton: {
|
|
222
|
+
({
|
|
223
|
+
size,
|
|
224
|
+
type,
|
|
225
|
+
label,
|
|
226
|
+
appearance,
|
|
227
|
+
...props
|
|
228
|
+
}: SheetCloseIconButtonProps): react_jsx_runtime0.JSX.Element;
|
|
229
|
+
displayName: string;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* The main container for a `Sheet`. Should be rendered as a child of the `Sheet` component.
|
|
233
|
+
* Renders on top of the overlay backdrop.
|
|
234
|
+
* Should contain the `Sheet.Header`, `Sheet.Body`, and `Sheet.Footer`.
|
|
235
|
+
*
|
|
236
|
+
* @see https://mantle.ngrok.com/components/sheet#sheetcontent
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```tsx
|
|
240
|
+
* <Sheet.Root>
|
|
241
|
+
* <Sheet.Trigger asChild>
|
|
242
|
+
* <Button type="button" appearance="filled">
|
|
243
|
+
* Open Sheet
|
|
244
|
+
* </Button>
|
|
245
|
+
* </Sheet.Trigger>
|
|
246
|
+
* <Sheet.Content>
|
|
247
|
+
* <Sheet.Header>
|
|
248
|
+
* <Sheet.TitleGroup>
|
|
249
|
+
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
250
|
+
* <Sheet.Actions>
|
|
251
|
+
* <Sheet.CloseIconButton />
|
|
252
|
+
* </Sheet.Actions>
|
|
253
|
+
* </Sheet.TitleGroup>
|
|
254
|
+
* </Sheet.Header>
|
|
255
|
+
* <Sheet.Body>
|
|
256
|
+
* <p>This is the sheet content.</p>
|
|
257
|
+
* </Sheet.Body>
|
|
258
|
+
* </Sheet.Content>
|
|
259
|
+
* </Sheet.Root>
|
|
260
|
+
* ```
|
|
261
|
+
*/
|
|
262
|
+
readonly Content: react.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_dialog0.DialogContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
263
|
+
side?: "left" | "right" | null | undefined;
|
|
264
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string> & {
|
|
113
265
|
/**
|
|
114
|
-
* The
|
|
115
|
-
* Acts as a stateful provider for the Sheet's open/closed state.
|
|
266
|
+
* The preferred width of the `Sheet.Content` as a tailwind `max-w-` class.
|
|
116
267
|
*
|
|
117
|
-
*
|
|
268
|
+
* By default, a `Sheet`'s content width is responsive with a default
|
|
269
|
+
* preferred width: the maximum width of the `Sheet.Content` when the window
|
|
270
|
+
* viewport is larger than the mobile breakpoint (`sm`).
|
|
118
271
|
*
|
|
119
|
-
* @
|
|
120
|
-
* ```tsx
|
|
121
|
-
* // Triggering a stateful sheet
|
|
122
|
-
* <Sheet.Root>
|
|
123
|
-
* <Sheet.Trigger asChild>
|
|
124
|
-
* <Button type="button" appearance="filled">
|
|
125
|
-
* Open Sheet
|
|
126
|
-
* </Button>
|
|
127
|
-
* </Sheet.Trigger>
|
|
128
|
-
* <Sheet.Content>
|
|
129
|
-
* <Sheet.Header>
|
|
130
|
-
* <Sheet.TitleGroup>
|
|
131
|
-
* <Sheet.Title>Are you absolutely sure?</Sheet.Title>
|
|
132
|
-
* <Sheet.Actions>
|
|
133
|
-
* <Sheet.CloseIconButton />
|
|
134
|
-
* </Sheet.Actions>
|
|
135
|
-
* </Sheet.TitleGroup>
|
|
136
|
-
* </Sheet.Header>
|
|
137
|
-
* </Sheet.Content>
|
|
138
|
-
* </Sheet.Root>
|
|
139
|
-
* ```
|
|
272
|
+
* @default `sm:max-w-[30rem]`
|
|
140
273
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* The footer container for a `Sheet`. This is where you would typically place close and submit buttons.
|
|
292
|
-
* Should be rendered as a child of `Sheet.Content`.
|
|
293
|
-
*
|
|
294
|
-
* @see https://mantle.ngrok.com/components/sheet#sheetfooter
|
|
295
|
-
*
|
|
296
|
-
* @example
|
|
297
|
-
* ```tsx
|
|
298
|
-
* <Sheet.Content>
|
|
299
|
-
* <Sheet.Header>
|
|
300
|
-
* <Sheet.TitleGroup>
|
|
301
|
-
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
302
|
-
* <Sheet.Actions>
|
|
303
|
-
* <Sheet.CloseIconButton />
|
|
304
|
-
* </Sheet.Actions>
|
|
305
|
-
* </Sheet.TitleGroup>
|
|
306
|
-
* </Sheet.Header>
|
|
307
|
-
* <Sheet.Body>
|
|
308
|
-
* <p>This is the sheet content.</p>
|
|
309
|
-
* </Sheet.Body>
|
|
310
|
-
* <Sheet.Footer>
|
|
311
|
-
* <Sheet.Close asChild>
|
|
312
|
-
* <Button type="button">Close</Button>
|
|
313
|
-
* </Sheet.Close>
|
|
314
|
-
* <Button type="button" appearance="filled">
|
|
315
|
-
* Save
|
|
316
|
-
* </Button>
|
|
317
|
-
* </Sheet.Footer>
|
|
318
|
-
* </Sheet.Content>
|
|
319
|
-
* ```
|
|
320
|
-
*/
|
|
321
|
-
readonly Footer: {
|
|
322
|
-
({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
323
|
-
displayName: string;
|
|
324
|
-
};
|
|
325
|
-
/**
|
|
326
|
-
* The header container for a `Sheet`. This is where you would typically place the title, description, and actions.
|
|
327
|
-
* Should be rendered as a child of `Sheet.Content`.
|
|
328
|
-
*
|
|
329
|
-
* @see https://mantle.ngrok.com/components/sheet#sheetheader
|
|
330
|
-
*
|
|
331
|
-
* @example
|
|
332
|
-
* ```tsx
|
|
333
|
-
* <Sheet.Content>
|
|
334
|
-
* <Sheet.Header>
|
|
335
|
-
* <Sheet.TitleGroup>
|
|
336
|
-
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
337
|
-
* <Sheet.Actions>
|
|
338
|
-
* <Sheet.CloseIconButton />
|
|
339
|
-
* </Sheet.Actions>
|
|
340
|
-
* </Sheet.TitleGroup>
|
|
341
|
-
* <Sheet.Description>
|
|
342
|
-
* This action cannot be undone.
|
|
343
|
-
* </Sheet.Description>
|
|
344
|
-
* </Sheet.Header>
|
|
345
|
-
* </Sheet.Content>
|
|
346
|
-
* ```
|
|
347
|
-
*/
|
|
348
|
-
readonly Header: {
|
|
349
|
-
({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
350
|
-
displayName: string;
|
|
351
|
-
};
|
|
352
|
-
/**
|
|
353
|
-
* The title for a `Sheet`. Typically rendered as a child of `Sheet.TitleGroup`.
|
|
354
|
-
* Defaults to an `h2` element, but can be changed via the `asChild` prop.
|
|
355
|
-
*
|
|
356
|
-
* @see https://mantle.ngrok.com/components/sheet#sheettitle
|
|
357
|
-
*
|
|
358
|
-
* @example
|
|
359
|
-
* ```tsx
|
|
360
|
-
* <Sheet.Header>
|
|
361
|
-
* <Sheet.TitleGroup>
|
|
362
|
-
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
363
|
-
* <Sheet.Actions>
|
|
364
|
-
* <Sheet.CloseIconButton />
|
|
365
|
-
* </Sheet.Actions>
|
|
366
|
-
* </Sheet.TitleGroup>
|
|
367
|
-
* </Sheet.Header>
|
|
368
|
-
* ```
|
|
369
|
-
*/
|
|
370
|
-
readonly Title: react.ForwardRefExoticComponent<Omit<_radix_ui_react_dialog.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
|
|
371
|
-
/**
|
|
372
|
-
* A group container for the title and actions of a sheet. Typically rendered as a child of `Sheet.Header`.
|
|
373
|
-
*
|
|
374
|
-
* @see https://mantle.ngrok.com/components/sheet#sheettitlegroup
|
|
375
|
-
*
|
|
376
|
-
* @example
|
|
377
|
-
* ```tsx
|
|
378
|
-
* <Sheet.Header>
|
|
379
|
-
* <Sheet.TitleGroup>
|
|
380
|
-
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
381
|
-
* <Sheet.Actions>
|
|
382
|
-
* <Sheet.CloseIconButton />
|
|
383
|
-
* </Sheet.Actions>
|
|
384
|
-
* </Sheet.TitleGroup>
|
|
385
|
-
* </Sheet.Header>
|
|
386
|
-
* ```
|
|
387
|
-
*/
|
|
388
|
-
readonly TitleGroup: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
389
|
-
/**
|
|
390
|
-
* The button trigger for a `Sheet`. Should be rendered as a child of the `Sheet` component.
|
|
391
|
-
* Renders an unstyled button by default, but can be customized with the `asChild` prop.
|
|
392
|
-
*
|
|
393
|
-
* @see https://mantle.ngrok.com/components/sheet#sheettrigger
|
|
394
|
-
*
|
|
395
|
-
* @example
|
|
396
|
-
* ```tsx
|
|
397
|
-
* <Sheet.Root>
|
|
398
|
-
* <Sheet.Trigger asChild>
|
|
399
|
-
* <Button type="button" appearance="filled">
|
|
400
|
-
* Open Sheet
|
|
401
|
-
* </Button>
|
|
402
|
-
* </Sheet.Trigger>
|
|
403
|
-
* <Sheet.Content>
|
|
404
|
-
* <p>This is the sheet content.</p>
|
|
405
|
-
* </Sheet.Content>
|
|
406
|
-
* </Sheet.Root>
|
|
407
|
-
* ```
|
|
408
|
-
*/
|
|
409
|
-
readonly Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
274
|
+
preferredWidth?: `sm:max-w-${string}`;
|
|
275
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
276
|
+
/**
|
|
277
|
+
* A description for a sheet. Typically rendered as a child of `Sheet.Header`.
|
|
278
|
+
*
|
|
279
|
+
* @see https://mantle.ngrok.com/components/sheet#sheetdescription
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* ```tsx
|
|
283
|
+
* <Sheet.Header>
|
|
284
|
+
* <Sheet.TitleGroup>
|
|
285
|
+
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
286
|
+
* <Sheet.Actions>
|
|
287
|
+
* <Sheet.CloseIconButton />
|
|
288
|
+
* </Sheet.Actions>
|
|
289
|
+
* </Sheet.TitleGroup>
|
|
290
|
+
* <Sheet.Description>
|
|
291
|
+
* This action cannot be undone.
|
|
292
|
+
* </Sheet.Description>
|
|
293
|
+
* </Sheet.Header>
|
|
294
|
+
* ```
|
|
295
|
+
*/
|
|
296
|
+
readonly Description: react.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_dialog0.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
297
|
+
/**
|
|
298
|
+
* The footer container for a `Sheet`. This is where you would typically place close and submit buttons.
|
|
299
|
+
* Should be rendered as a child of `Sheet.Content`.
|
|
300
|
+
*
|
|
301
|
+
* @see https://mantle.ngrok.com/components/sheet#sheetfooter
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* ```tsx
|
|
305
|
+
* <Sheet.Content>
|
|
306
|
+
* <Sheet.Header>
|
|
307
|
+
* <Sheet.TitleGroup>
|
|
308
|
+
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
309
|
+
* <Sheet.Actions>
|
|
310
|
+
* <Sheet.CloseIconButton />
|
|
311
|
+
* </Sheet.Actions>
|
|
312
|
+
* </Sheet.TitleGroup>
|
|
313
|
+
* </Sheet.Header>
|
|
314
|
+
* <Sheet.Body>
|
|
315
|
+
* <p>This is the sheet content.</p>
|
|
316
|
+
* </Sheet.Body>
|
|
317
|
+
* <Sheet.Footer>
|
|
318
|
+
* <Sheet.Close asChild>
|
|
319
|
+
* <Button type="button">Close</Button>
|
|
320
|
+
* </Sheet.Close>
|
|
321
|
+
* <Button type="button" appearance="filled">
|
|
322
|
+
* Save
|
|
323
|
+
* </Button>
|
|
324
|
+
* </Sheet.Footer>
|
|
325
|
+
* </Sheet.Content>
|
|
326
|
+
* ```
|
|
327
|
+
*/
|
|
328
|
+
readonly Footer: {
|
|
329
|
+
({
|
|
330
|
+
className,
|
|
331
|
+
...props
|
|
332
|
+
}: HTMLAttributes<HTMLDivElement>): react_jsx_runtime0.JSX.Element;
|
|
333
|
+
displayName: string;
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* The header container for a `Sheet`. This is where you would typically place the title, description, and actions.
|
|
337
|
+
* Should be rendered as a child of `Sheet.Content`.
|
|
338
|
+
*
|
|
339
|
+
* @see https://mantle.ngrok.com/components/sheet#sheetheader
|
|
340
|
+
*
|
|
341
|
+
* @example
|
|
342
|
+
* ```tsx
|
|
343
|
+
* <Sheet.Content>
|
|
344
|
+
* <Sheet.Header>
|
|
345
|
+
* <Sheet.TitleGroup>
|
|
346
|
+
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
347
|
+
* <Sheet.Actions>
|
|
348
|
+
* <Sheet.CloseIconButton />
|
|
349
|
+
* </Sheet.Actions>
|
|
350
|
+
* </Sheet.TitleGroup>
|
|
351
|
+
* <Sheet.Description>
|
|
352
|
+
* This action cannot be undone.
|
|
353
|
+
* </Sheet.Description>
|
|
354
|
+
* </Sheet.Header>
|
|
355
|
+
* </Sheet.Content>
|
|
356
|
+
* ```
|
|
357
|
+
*/
|
|
358
|
+
readonly Header: {
|
|
359
|
+
({
|
|
360
|
+
className,
|
|
361
|
+
...props
|
|
362
|
+
}: HTMLAttributes<HTMLDivElement>): react_jsx_runtime0.JSX.Element;
|
|
363
|
+
displayName: string;
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* The title for a `Sheet`. Typically rendered as a child of `Sheet.TitleGroup`.
|
|
367
|
+
* Defaults to an `h2` element, but can be changed via the `asChild` prop.
|
|
368
|
+
*
|
|
369
|
+
* @see https://mantle.ngrok.com/components/sheet#sheettitle
|
|
370
|
+
*
|
|
371
|
+
* @example
|
|
372
|
+
* ```tsx
|
|
373
|
+
* <Sheet.Header>
|
|
374
|
+
* <Sheet.TitleGroup>
|
|
375
|
+
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
376
|
+
* <Sheet.Actions>
|
|
377
|
+
* <Sheet.CloseIconButton />
|
|
378
|
+
* </Sheet.Actions>
|
|
379
|
+
* </Sheet.TitleGroup>
|
|
380
|
+
* </Sheet.Header>
|
|
381
|
+
* ```
|
|
382
|
+
*/
|
|
383
|
+
readonly Title: react.ForwardRefExoticComponent<Omit<_radix_ui_react_dialog0.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
|
|
384
|
+
/**
|
|
385
|
+
* A group container for the title and actions of a sheet. Typically rendered as a child of `Sheet.Header`.
|
|
386
|
+
*
|
|
387
|
+
* @see https://mantle.ngrok.com/components/sheet#sheettitlegroup
|
|
388
|
+
*
|
|
389
|
+
* @example
|
|
390
|
+
* ```tsx
|
|
391
|
+
* <Sheet.Header>
|
|
392
|
+
* <Sheet.TitleGroup>
|
|
393
|
+
* <Sheet.Title>Sheet Title</Sheet.Title>
|
|
394
|
+
* <Sheet.Actions>
|
|
395
|
+
* <Sheet.CloseIconButton />
|
|
396
|
+
* </Sheet.Actions>
|
|
397
|
+
* </Sheet.TitleGroup>
|
|
398
|
+
* </Sheet.Header>
|
|
399
|
+
* ```
|
|
400
|
+
*/
|
|
401
|
+
readonly TitleGroup: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
402
|
+
/**
|
|
403
|
+
* The button trigger for a `Sheet`. Should be rendered as a child of the `Sheet` component.
|
|
404
|
+
* Renders an unstyled button by default, but can be customized with the `asChild` prop.
|
|
405
|
+
*
|
|
406
|
+
* @see https://mantle.ngrok.com/components/sheet#sheettrigger
|
|
407
|
+
*
|
|
408
|
+
* @example
|
|
409
|
+
* ```tsx
|
|
410
|
+
* <Sheet.Root>
|
|
411
|
+
* <Sheet.Trigger asChild>
|
|
412
|
+
* <Button type="button" appearance="filled">
|
|
413
|
+
* Open Sheet
|
|
414
|
+
* </Button>
|
|
415
|
+
* </Sheet.Trigger>
|
|
416
|
+
* <Sheet.Content>
|
|
417
|
+
* <p>This is the sheet content.</p>
|
|
418
|
+
* </Sheet.Content>
|
|
419
|
+
* </Sheet.Root>
|
|
420
|
+
* ```
|
|
421
|
+
*/
|
|
422
|
+
readonly Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog0.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
410
423
|
};
|
|
411
|
-
|
|
424
|
+
//#endregion
|
|
412
425
|
export { Sheet };
|
|
426
|
+
//# sourceMappingURL=sheet.d.ts.map
|