@ngrok/mantle 0.77.0 → 0.78.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 +63 -21
- package/dist/accordion.js +1 -1
- package/dist/agent.json +4 -1
- package/dist/alert-dialog.d.ts +19 -26
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +16 -24
- package/dist/alert.js +1 -1
- package/dist/{anchor-BtgEJoPN.js → anchor-C_tjSVy6.js} +1 -1
- package/dist/anchor.d.ts +3 -4
- package/dist/anchor.js +1 -1
- package/dist/{as-child-uN_018tj.d.ts → as-child-CYEVu1WY.d.ts} +0 -7
- package/dist/badge.d.ts +5 -56
- package/dist/badge.js +1 -1
- package/dist/breadcrumb.d.ts +212 -0
- package/dist/breadcrumb.js +1 -0
- package/dist/browser-only.d.ts +2 -6
- package/dist/{button-CERx95KE.js → button-5t6-JS_I.js} +1 -1
- package/dist/button-AS5Ir3DE.js +1 -0
- package/dist/{button-mfYak6Rx.d.ts → button-Bw9MpShl.d.ts} +26 -8
- package/dist/button.d.ts +5 -4
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +2 -8
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +8 -8
- package/dist/card.js +1 -1
- package/dist/centered-layout.d.ts +147 -0
- package/dist/centered-layout.js +1 -0
- package/dist/checkbox-DJ2xl7Rc.js +1 -0
- package/dist/checkbox.d.ts +9 -11
- package/dist/checkbox.js +1 -1
- package/dist/{choice-D6S38dPs.js → choice-DOdyNzFC.js} +1 -1
- package/dist/choice.d.ts +16 -14
- package/dist/choice.js +1 -1
- package/dist/code-block.d.ts +5 -17
- package/dist/code-block.js +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 +4 -5
- package/dist/code.js +1 -1
- package/dist/combobox.d.ts +40 -19
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +60 -38
- package/dist/command.js +1 -1
- package/dist/cx-IiQEAKf5.js +1 -0
- package/dist/cx.js +1 -1
- package/dist/data-slot-CChfb_cv.d.ts +17 -0
- package/dist/data-table.d.ts +45 -131
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +7 -7
- package/dist/description-list.js +1 -1
- package/dist/{dialog-uyJcNks7.js → dialog-DVDFVT_-.js} +1 -1
- package/dist/dialog.d.ts +155 -48
- package/dist/dialog.js +1 -1
- package/dist/{direction-CcTY0FmA.d.ts → direction-BjU0bPST.d.ts} +1 -1
- package/dist/{dropdown-menu-OEuW4GLp.js → dropdown-menu-ByUQkAvJ.js} +1 -1
- package/dist/{dropdown-menu-CADgs9gz.d.ts → dropdown-menu-DT30TQzL.d.ts} +21 -24
- package/dist/dropdown-menu.d.ts +2 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +133 -53
- package/dist/empty.js +1 -1
- package/dist/{field-context-4k1kI7Bo.js → field-context-BR01g789.js} +1 -1
- package/dist/field.d.ts +24 -36
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +2 -9
- package/dist/flag.js +1 -1
- package/dist/hooks.d.ts +13 -15
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +34 -14
- package/dist/hover-card.js +1 -1
- package/dist/icon-CDtYjF_H.js +1 -0
- package/dist/{icon-n49kOh4_.d.ts → icon-Cevjo93X.d.ts} +2 -3
- package/dist/{icon-button-DiX9iZ9n.js → icon-button-CxVsZ2N1.js} +1 -1
- package/dist/{icon-button-D7hs6bX2.d.ts → icon-button-DuRSCsPh.d.ts} +5 -6
- package/dist/icon.d.ts +3 -3
- package/dist/icon.js +1 -1
- package/dist/icons.d.ts +7 -19
- package/dist/icons.js +1 -1
- package/dist/{in-view-bItE1fkG.d.ts → in-view-nkSOdED2.d.ts} +1 -6
- package/dist/index-BnI3OppC.d.ts +1 -0
- package/dist/{index-CTU6apE6.d.ts → index-CDwfBOAA.d.ts} +5 -4
- package/dist/{index-Bed_XLWa.d.ts → index-D47aqlpz.d.ts} +3 -2
- package/dist/index-Rv8RL7xy.d.ts +25 -0
- package/dist/{input-B3TS9yAP.js → input-Ct1YOqSy.js} +1 -1
- package/dist/input.d.ts +10 -11
- package/dist/input.js +1 -1
- package/dist/{kbd-D6k4Dnrf.js → kbd-K8iaZ-Ti.js} +1 -1
- package/dist/kbd.d.ts +3 -8
- package/dist/kbd.js +1 -1
- package/dist/{label-BLXfnQmn.js → label-BMlHW_2D.js} +1 -1
- package/dist/{label-PY0qM0G5.d.ts → label-v2-bv98k.d.ts} +1 -1
- package/dist/label.d.ts +1 -1
- package/dist/label.js +1 -1
- package/dist/list.d.ts +18 -60
- package/dist/list.js +1 -1
- package/dist/llms.txt +4 -1
- package/dist/main.d.ts +4 -27
- package/dist/main.js +1 -1
- package/dist/mantle.css +6 -6
- package/dist/media-object.d.ts +6 -7
- package/dist/media-object.js +1 -1
- package/dist/multi-select.d.ts +80 -33
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +7 -8
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +11 -22
- package/dist/pagination.js +1 -1
- package/dist/{popover-Bq52EC7X.js → popover-D5WxxnBY.js} +1 -1
- package/dist/popover.d.ts +6 -7
- package/dist/popover.js +1 -1
- package/dist/{primitive-FoWela9a.d.ts → primitive-C64-m48O.d.ts} +0 -1
- package/dist/{primitive-BuVqb6zf.js → primitive-wm7Wk-gy.js} +1 -1
- package/dist/progress.d.ts +55 -46
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +10 -9
- package/dist/qr-code.js +1 -1
- package/dist/radio-group.d.ts +71 -60
- package/dist/radio-group.js +1 -1
- package/dist/{resolve-pre-rendered-props-DxJ9-DAl.d.ts → resolve-pre-rendered-props-B6OlZrSI.d.ts} +13 -26
- package/dist/{resolve-pre-rendered-props-DwIF_M_K.js → resolve-pre-rendered-props-C3e5Auo3.js} +1 -1
- package/dist/sandboxed-on-click.d.ts +4 -8
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/{select-BUGOJMER.d.ts → select-Bwt2YduR.d.ts} +11 -12
- package/dist/{select-Bxq_N-_o.js → select-D-5u0Blc.js} +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +160 -146
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-CqohKk4z.js → separator-kBnnv3Cw.js} +1 -1
- package/dist/separator.d.ts +6 -37
- package/dist/separator.js +1 -1
- package/dist/sheet.d.ts +231 -47
- package/dist/sheet.js +1 -1
- package/dist/sizes-Dje_rwKc.d.ts +29 -0
- package/dist/skeleton-Bu3tgNcW.js +1 -0
- package/dist/skeleton.d.ts +2 -2
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link.d.ts +4 -34
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.d.ts +2 -21
- package/dist/slider.js +1 -1
- package/dist/slot-DmPrjM7N.js +1 -0
- package/dist/slot.d.ts +1 -1
- package/dist/slot.js +1 -1
- package/dist/split-button.d.ts +20 -12
- package/dist/split-button.js +1 -1
- package/dist/{svg-only-f6ToFLH0.d.ts → svg-only-BFeFS1aa.d.ts} +2 -3
- package/dist/{svg-only-CSOaF1tL.js → svg-only-DDx6FtJd.js} +1 -1
- package/dist/switch.d.ts +4 -5
- package/dist/switch.js +1 -1
- package/dist/{table-CAitdL78.js → table-CPH2md2-.js} +1 -1
- package/dist/{table-BWD9IlIN.d.ts → table-CwFHXC-G.d.ts} +10 -10
- package/dist/table.d.ts +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +29 -15
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +2 -3
- package/dist/text-area.js +1 -1
- package/dist/theme-D8kZCOzM.js +1 -0
- package/dist/theme-provider-Djj_jBo6.js +1 -0
- package/dist/theme-switcher.d.ts +45 -0
- package/dist/theme-switcher.js +1 -0
- package/dist/theme.d.ts +15 -101
- package/dist/theme.js +1 -1
- package/dist/{toast-CZBWjXcP.js → toast-RkhbliFh.js} +1 -1
- package/dist/toast.d.ts +13 -37
- package/dist/toast.js +1 -1
- package/dist/tooltip.d.ts +10 -44
- package/dist/tooltip.js +1 -1
- package/dist/{types-CTam1uIW.d.ts → types-C19IR7jf.d.ts} +1 -0
- package/dist/{types-BvUzforF.d.ts → types-D1RY5Tcj.d.ts} +0 -1
- package/dist/types.d.ts +3 -3
- package/dist/use-prefers-reduced-motion-CagaNRgm.js +1 -0
- package/dist/utils.d.ts +2 -3
- package/dist/{validation-xyX_6kph.d.ts → validation-7QeiTFwl.d.ts} +3 -12
- package/dist/{validation-DCyx-ceH.js → validation-Bpptk_9t.js} +1 -1
- package/dist/{virtual-PBNiHjMK.js → virtual-DZMBu7Ch.js} +1 -1
- package/dist/well.d.ts +3 -3
- package/dist/well.js +1 -1
- package/dist/{with-style-props-CyImx7vd.d.ts → with-style-props-Dq5Vntqy.d.ts} +0 -1
- package/package.json +17 -14
- package/dist/button-C9GW9nAr.js +0 -1
- package/dist/checkbox-Apow0ipK.js +0 -1
- package/dist/cx-C1UYP5We.js +0 -1
- package/dist/icon-SUx16Sl3.js +0 -1
- package/dist/index-CJbKEKr2.d.ts +0 -20
- package/dist/slot-DT_E5BQx.js +0 -1
- package/dist/theme-provider-C5XYi2-H.js +0 -1
- package/dist/use-prefers-reduced-motion-DBqNw1wB.js +0 -1
package/dist/dialog.d.ts
CHANGED
|
@@ -1,9 +1,144 @@
|
|
|
1
|
-
import { n as isDialogOverlayTarget, t as Root } from "./primitive-
|
|
2
|
-
import { n as IconButtonProps } from "./icon-button-
|
|
1
|
+
import { n as isDialogOverlayTarget, t as Root } from "./primitive-C64-m48O.js";
|
|
2
|
+
import { n as IconButtonProps } from "./icon-button-DuRSCsPh.js";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
|
-
|
|
5
4
|
//#region src/components/dialog/dialog.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Contains the header content of the dialog, including the title and close button.
|
|
7
|
+
*
|
|
8
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogheader
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Dialog.Root>
|
|
13
|
+
* <Dialog.Trigger asChild>
|
|
14
|
+
* <Button type="button" appearance="outlined">Open Dialog</Button>
|
|
15
|
+
* </Dialog.Trigger>
|
|
16
|
+
* <Dialog.Content>
|
|
17
|
+
* <Dialog.Header>
|
|
18
|
+
* <Dialog.Title>Dialog Title</Dialog.Title>
|
|
19
|
+
* <Dialog.Description>This is an optional description.</Dialog.Description>
|
|
20
|
+
* <Dialog.CloseIconButton />
|
|
21
|
+
* </Dialog.Header>
|
|
22
|
+
* <Dialog.Body>
|
|
23
|
+
* <p>This is the dialog content.</p>
|
|
24
|
+
* </Dialog.Body>
|
|
25
|
+
* <Dialog.Footer>
|
|
26
|
+
* <Dialog.Close asChild>
|
|
27
|
+
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
28
|
+
* </Dialog.Close>
|
|
29
|
+
* <Button type="button" appearance="filled">Save</Button>
|
|
30
|
+
* </Dialog.Footer>
|
|
31
|
+
* </Dialog.Content>
|
|
32
|
+
* </Dialog.Root>
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
declare const Header: {
|
|
36
|
+
({ className, children, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
37
|
+
displayName: string;
|
|
38
|
+
};
|
|
6
39
|
type CloseIconButtonProps = Partial<Omit<IconButtonProps, "icon">>;
|
|
40
|
+
/**
|
|
41
|
+
* An icon button that closes the dialog when clicked.
|
|
42
|
+
*
|
|
43
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogcloseiconbutton
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* <Dialog.Root>
|
|
48
|
+
* <Dialog.Trigger asChild>
|
|
49
|
+
* <Button type="button" appearance="outlined">Open Dialog</Button>
|
|
50
|
+
* </Dialog.Trigger>
|
|
51
|
+
* <Dialog.Content>
|
|
52
|
+
* <Dialog.Header>
|
|
53
|
+
* <Dialog.Title>Dialog Title</Dialog.Title>
|
|
54
|
+
* <Dialog.Description>This is an optional description.</Dialog.Description>
|
|
55
|
+
* <Dialog.CloseIconButton />
|
|
56
|
+
* </Dialog.Header>
|
|
57
|
+
* <Dialog.Body>
|
|
58
|
+
* <p>This is the dialog content.</p>
|
|
59
|
+
* </Dialog.Body>
|
|
60
|
+
* <Dialog.Footer>
|
|
61
|
+
* <Dialog.Close asChild>
|
|
62
|
+
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
63
|
+
* </Dialog.Close>
|
|
64
|
+
* <Button type="button" appearance="filled">Save</Button>
|
|
65
|
+
* </Dialog.Footer>
|
|
66
|
+
* </Dialog.Content>
|
|
67
|
+
* </Dialog.Root>
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
declare const CloseIconButton: {
|
|
71
|
+
({ size, type, label, appearance, ...props }: CloseIconButtonProps): import("react").JSX.Element;
|
|
72
|
+
displayName: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Contains the main content of the dialog.
|
|
76
|
+
*
|
|
77
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogbody
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```tsx
|
|
81
|
+
* <Dialog.Root>
|
|
82
|
+
* <Dialog.Trigger asChild>
|
|
83
|
+
* <Button type="button" appearance="outlined">Open Dialog</Button>
|
|
84
|
+
* </Dialog.Trigger>
|
|
85
|
+
* <Dialog.Content>
|
|
86
|
+
* <Dialog.Header>
|
|
87
|
+
* <Dialog.Title>Dialog Title</Dialog.Title>
|
|
88
|
+
* <Dialog.Description>This is an optional description.</Dialog.Description>
|
|
89
|
+
* <Dialog.CloseIconButton />
|
|
90
|
+
* </Dialog.Header>
|
|
91
|
+
* <Dialog.Body>
|
|
92
|
+
* <p>This is the dialog content.</p>
|
|
93
|
+
* </Dialog.Body>
|
|
94
|
+
* <Dialog.Footer>
|
|
95
|
+
* <Dialog.Close asChild>
|
|
96
|
+
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
97
|
+
* </Dialog.Close>
|
|
98
|
+
* <Button type="button" appearance="filled">Save</Button>
|
|
99
|
+
* </Dialog.Footer>
|
|
100
|
+
* </Dialog.Content>
|
|
101
|
+
* </Dialog.Root>
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
declare const Body: {
|
|
105
|
+
({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
106
|
+
displayName: string;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Contains the footer content of the dialog, including action buttons.
|
|
110
|
+
*
|
|
111
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogfooter
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```tsx
|
|
115
|
+
* <Dialog.Root>
|
|
116
|
+
* <Dialog.Trigger asChild>
|
|
117
|
+
* <Button type="button" appearance="outlined">Open Dialog</Button>
|
|
118
|
+
* </Dialog.Trigger>
|
|
119
|
+
* <Dialog.Content>
|
|
120
|
+
* <Dialog.Header>
|
|
121
|
+
* <Dialog.Title>Dialog Title</Dialog.Title>
|
|
122
|
+
* <Dialog.Description>This is an optional description.</Dialog.Description>
|
|
123
|
+
* <Dialog.CloseIconButton />
|
|
124
|
+
* </Dialog.Header>
|
|
125
|
+
* <Dialog.Body>
|
|
126
|
+
* <p>This is the dialog content.</p>
|
|
127
|
+
* </Dialog.Body>
|
|
128
|
+
* <Dialog.Footer>
|
|
129
|
+
* <Dialog.Close asChild>
|
|
130
|
+
* <Button type="button" appearance="outlined">Cancel</Button>
|
|
131
|
+
* </Dialog.Close>
|
|
132
|
+
* <Button type="button" appearance="filled">Save</Button>
|
|
133
|
+
* </Dialog.Footer>
|
|
134
|
+
* </Dialog.Content>
|
|
135
|
+
* </Dialog.Root>
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
declare const Footer: {
|
|
139
|
+
({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
140
|
+
displayName: string;
|
|
141
|
+
};
|
|
7
142
|
/**
|
|
8
143
|
* A window overlaid on either the primary window or another dialog window. Use
|
|
9
144
|
* Dialog for a focused modal that interrupts the user to gather input or
|
|
@@ -16,7 +151,7 @@ type CloseIconButtonProps = Partial<Omit<IconButtonProps, "icon">>;
|
|
|
16
151
|
* floating z-index. When multiple shared layers are open, the most recently
|
|
17
152
|
* mounted layer renders on top.
|
|
18
153
|
*
|
|
19
|
-
* @see https://mantle.ngrok.com/components/dialog
|
|
154
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog
|
|
20
155
|
*
|
|
21
156
|
* @example
|
|
22
157
|
* Composition:
|
|
@@ -67,7 +202,7 @@ declare const Dialog: {
|
|
|
67
202
|
* floating z-index. When multiple shared layers are open, the most recently
|
|
68
203
|
* mounted layer renders on top.
|
|
69
204
|
*
|
|
70
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogroot
|
|
205
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogroot
|
|
71
206
|
*
|
|
72
207
|
* @example
|
|
73
208
|
* ```tsx
|
|
@@ -98,7 +233,7 @@ declare const Dialog: {
|
|
|
98
233
|
/**
|
|
99
234
|
* Contains the main content of the dialog.
|
|
100
235
|
*
|
|
101
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogbody
|
|
236
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogbody
|
|
102
237
|
*
|
|
103
238
|
* @example
|
|
104
239
|
* ```tsx
|
|
@@ -125,17 +260,11 @@ declare const Dialog: {
|
|
|
125
260
|
* </Dialog.Root>
|
|
126
261
|
* ```
|
|
127
262
|
*/
|
|
128
|
-
readonly Body:
|
|
129
|
-
({
|
|
130
|
-
className,
|
|
131
|
-
...props
|
|
132
|
-
}: ComponentProps<"div">): import("react").JSX.Element;
|
|
133
|
-
displayName: string;
|
|
134
|
-
};
|
|
263
|
+
readonly Body: typeof Body;
|
|
135
264
|
/**
|
|
136
265
|
* A button that closes the dialog when clicked.
|
|
137
266
|
*
|
|
138
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogclose
|
|
267
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogclose
|
|
139
268
|
*
|
|
140
269
|
* @example
|
|
141
270
|
* ```tsx
|
|
@@ -166,7 +295,7 @@ declare const Dialog: {
|
|
|
166
295
|
/**
|
|
167
296
|
* An icon button that closes the dialog when clicked.
|
|
168
297
|
*
|
|
169
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogcloseiconbutton
|
|
298
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogcloseiconbutton
|
|
170
299
|
*
|
|
171
300
|
* @example
|
|
172
301
|
* ```tsx
|
|
@@ -193,16 +322,7 @@ declare const Dialog: {
|
|
|
193
322
|
* </Dialog.Root>
|
|
194
323
|
* ```
|
|
195
324
|
*/
|
|
196
|
-
readonly CloseIconButton:
|
|
197
|
-
({
|
|
198
|
-
size,
|
|
199
|
-
type,
|
|
200
|
-
label,
|
|
201
|
-
appearance,
|
|
202
|
-
...props
|
|
203
|
-
}: CloseIconButtonProps): import("react").JSX.Element;
|
|
204
|
-
displayName: string;
|
|
205
|
-
};
|
|
325
|
+
readonly CloseIconButton: typeof CloseIconButton;
|
|
206
326
|
/**
|
|
207
327
|
* The container for the dialog content.
|
|
208
328
|
* Renders on top of the overlay and is centered in the viewport.
|
|
@@ -211,7 +331,7 @@ declare const Dialog: {
|
|
|
211
331
|
* shared floating z-index. When multiple shared layers are open, the most
|
|
212
332
|
* recently mounted layer renders on top.
|
|
213
333
|
*
|
|
214
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogcontent
|
|
334
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogcontent
|
|
215
335
|
*
|
|
216
336
|
* @example
|
|
217
337
|
* ```tsx
|
|
@@ -252,7 +372,7 @@ declare const Dialog: {
|
|
|
252
372
|
/**
|
|
253
373
|
* An accessible description to be announced when the dialog is opened.
|
|
254
374
|
*
|
|
255
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogdescription
|
|
375
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogdescription
|
|
256
376
|
*
|
|
257
377
|
* @example
|
|
258
378
|
* ```tsx
|
|
@@ -283,7 +403,7 @@ declare const Dialog: {
|
|
|
283
403
|
/**
|
|
284
404
|
* Contains the footer content of the dialog, including action buttons.
|
|
285
405
|
*
|
|
286
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogfooter
|
|
406
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogfooter
|
|
287
407
|
*
|
|
288
408
|
* @example
|
|
289
409
|
* ```tsx
|
|
@@ -310,17 +430,11 @@ declare const Dialog: {
|
|
|
310
430
|
* </Dialog.Root>
|
|
311
431
|
* ```
|
|
312
432
|
*/
|
|
313
|
-
readonly Footer:
|
|
314
|
-
({
|
|
315
|
-
className,
|
|
316
|
-
...props
|
|
317
|
-
}: ComponentProps<"div">): import("react").JSX.Element;
|
|
318
|
-
displayName: string;
|
|
319
|
-
};
|
|
433
|
+
readonly Footer: typeof Footer;
|
|
320
434
|
/**
|
|
321
435
|
* Contains the header content of the dialog, including the title and close button.
|
|
322
436
|
*
|
|
323
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogheader
|
|
437
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogheader
|
|
324
438
|
*
|
|
325
439
|
* @example
|
|
326
440
|
* ```tsx
|
|
@@ -347,18 +461,11 @@ declare const Dialog: {
|
|
|
347
461
|
* </Dialog.Root>
|
|
348
462
|
* ```
|
|
349
463
|
*/
|
|
350
|
-
readonly Header:
|
|
351
|
-
({
|
|
352
|
-
className,
|
|
353
|
-
children,
|
|
354
|
-
...props
|
|
355
|
-
}: ComponentProps<"div">): import("react").JSX.Element;
|
|
356
|
-
displayName: string;
|
|
357
|
-
};
|
|
464
|
+
readonly Header: typeof Header;
|
|
358
465
|
/**
|
|
359
466
|
* The overlay backdrop for the dialog.
|
|
360
467
|
*
|
|
361
|
-
* @see https://mantle.ngrok.com/components/dialog#api-reference
|
|
468
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#api-reference
|
|
362
469
|
*
|
|
363
470
|
* @example
|
|
364
471
|
* ```tsx
|
|
@@ -392,7 +499,7 @@ declare const Dialog: {
|
|
|
392
499
|
/**
|
|
393
500
|
* The portal container for the dialog.
|
|
394
501
|
*
|
|
395
|
-
* @see https://mantle.ngrok.com/components/dialog#api-reference
|
|
502
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#api-reference
|
|
396
503
|
*
|
|
397
504
|
* @example
|
|
398
505
|
* ```tsx
|
|
@@ -426,7 +533,7 @@ declare const Dialog: {
|
|
|
426
533
|
/**
|
|
427
534
|
* An accessible name to be announced when the dialog is opened.
|
|
428
535
|
*
|
|
429
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogtitle
|
|
536
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogtitle
|
|
430
537
|
*
|
|
431
538
|
* @example
|
|
432
539
|
* ```tsx
|
|
@@ -457,7 +564,7 @@ declare const Dialog: {
|
|
|
457
564
|
/**
|
|
458
565
|
* A button that opens the dialog.
|
|
459
566
|
*
|
|
460
|
-
* @see https://mantle.ngrok.com/components/dialog#dialogtrigger
|
|
567
|
+
* @see https://mantle.ngrok.com/components/overlays/dialog#dialogtrigger
|
|
461
568
|
*
|
|
462
569
|
* @example
|
|
463
570
|
* ```tsx
|
package/dist/dialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./primitive-
|
|
1
|
+
import{l as e}from"./primitive-wm7Wk-gy.js";import{t}from"./dialog-DVDFVT_-.js";export{t as Dialog,e as isDialogOverlayTarget};
|
|
@@ -139,6 +139,6 @@ declare const timeSortingByDirection: {
|
|
|
139
139
|
declare function $timeSortingDirection<T extends TimeSortingDirection | SortingDirection>(value: T): {
|
|
140
140
|
readonly asc: "oldest-to-newest";
|
|
141
141
|
readonly desc: "newest-to-oldest";
|
|
142
|
-
}[(T & "
|
|
142
|
+
}[(T & "asc") | (T & "desc")] | (T & "newest-to-oldest") | (T & "oldest-to-newest");
|
|
143
143
|
//#endregion
|
|
144
144
|
export { timeSortingDirections as _, AlphanumericSortingDirection as a, TimeSortingDirection as c, isSortingDirection as d, isSortingMode as f, timeSortingByDirection as g, sortingModes as h, $timeSortingDirection as i, alphanumericSortingDirections as l, sortingDirections as m, $sortingDirection as n, SortingDirection as o, isTimeSortingDirection as p, $sortingMode as r, SortingMode as s, $alphanumericSortingDirection as t, isAlphanumericSortingDirection as u };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-CDtYjF_H.js";import{n}from"./separator-kBnnv3Cw.js";import{forwardRef as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{CaretRightIcon as o}from"@phosphor-icons/react/CaretRight";import{CheckIcon as s}from"@phosphor-icons/react/Check";import*as c from"@radix-ui/react-dropdown-menu";const l=c.Root;l.displayName=`DropdownMenu`;const u=r((e,t)=>i(c.Trigger,{ref:t,"data-slot":`dropdown-menu-trigger`,...e}));u.displayName=`DropdownMenuTrigger`;const d=r(({className:t,...n},r)=>i(c.Group,{ref:r,"data-slot":`dropdown-menu-group`,className:e(`space-y-px`,t),...n}));d.displayName=`DropdownMenuGroup`;const f=c.Portal;f.displayName=`DropdownMenuPortal`;const p=c.Sub;p.displayName=`DropdownMenuSub`;const m=r(({className:t,...n},r)=>i(c.RadioGroup,{ref:r,"data-slot":`dropdown-menu-radio-group`,className:e(`space-y-px`,t),...n}));m.displayName=`DropdownMenuRadioGroup`;const h=r(({className:n,inset:r,children:s,...l},u)=>a(c.SubTrigger,{"data-slot":`dropdown-menu-sub-trigger`,className:e(`focus:bg-accent data-state-open:bg-accent relative flex select-none items-center rounded-md py-1.5 pl-2 pr-9 text-sm outline-hidden`,`data-highlighted:bg-active-menu-item data-state-open:bg-active-menu-item`,`[&>svg]:size-5 [&_svg]:shrink-0`,r&&`pl-8`,n),ref:u,...l,children:[s,i(`span`,{className:`absolute right-2 flex items-center`,children:i(t,{svg:i(o,{weight:`bold`}),className:`size-4`})})]}));h.displayName=`DropdownMenuSubTrigger`;const g=r(({className:t,loop:n=!0,...r},a)=>i(f,{children:i(c.SubContent,{"data-slot":`dropdown-menu-sub-content`,className:e(`scrollbar`,`text-popover-foreground border-popover bg-popover p-1.25 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95 data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border shadow-xl space-y-px font-sans`,`my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)-16px)] overflow-auto`,t),loop:n,ref:a,...r})}));g.displayName=`DropdownMenuSubContent`;const _=r(({className:t,onClick:n,loop:r=!0,width:a,...o},s)=>i(f,{children:i(c.Content,{ref:s,"data-slot":`dropdown-menu-content`,className:e(`scrollbar`,`text-popover-foreground border-popover bg-popover p-1.25 z-50 min-w-32 overflow-hidden rounded-md border shadow-xl outline-hidden space-y-px font-sans`,`data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95`,`my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)-16px)] overflow-auto`,a===`trigger`&&`w-(--radix-dropdown-menu-trigger-width)`,t),loop:r,onClick:e=>{e.stopPropagation(),n?.(e)},...o})}));_.displayName=`DropdownMenuContent`;const v=r(({className:t,inset:n,...r},a)=>i(c.Item,{ref:a,"data-slot":`dropdown-menu-item`,className:e(`relative flex cursor-pointer select-none items-center rounded-md px-2 py-1.5 text-strong text-sm font-normal outline-hidden transition-colors`,`data-highlighted:bg-active-menu-item`,`focus:bg-accent focus:text-accent-foreground`,`data-disabled:cursor-default data-disabled:opacity-50`,`[&>svg]:size-5 [&_svg]:shrink-0`,n&&`pl-8`,t),...r}));v.displayName=`DropdownMenuItem`;const y=r(({className:n,children:r,checked:o,...l},u)=>a(c.CheckboxItem,{ref:u,"data-slot":`dropdown-menu-checkbox-item`,className:e(`text-strong data-disabled:pointer-events-none data-disabled:opacity-50 relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 pl-2 pr-9 text-sm font-normal outline-hidden`,`data-highlighted:bg-active-menu-item`,`aria-checked:bg-selected-menu-item`,`data-highlighted:aria-checked:bg-active-selected-menu-item!`,`[&>svg]:size-5 [&_svg]:shrink-0`,n),checked:o,...l,children:[i(`span`,{className:`absolute right-2 flex items-center`,children:i(c.ItemIndicator,{children:i(t,{svg:i(s,{weight:`bold`}),className:`size-4 text-accent-600`})})}),r]}));y.displayName=`DropdownMenuCheckboxItem`;const b=r(({className:n,children:r,...o},l)=>a(c.RadioItem,{"data-slot":`dropdown-menu-radio-item`,className:e(`group/dropdown-menu-radio-item`,`text-strong data-disabled:pointer-events-none data-disabled:opacity-50 relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 px-2 text-sm font-normal outline-none`,`data-highlighted:bg-active-menu-item`,`aria-checked:bg-selected-menu-item aria-checked:pr-9`,`data-highlighted:aria-checked:bg-active-selected-menu-item!`,`[&>svg]:size-5 [&_svg]:shrink-0`,n),ref:l,...o,children:[i(`span`,{className:`absolute right-2 items-center hidden group-aria-checked/dropdown-menu-radio-item:flex`,children:i(c.ItemIndicator,{children:i(t,{svg:i(s,{weight:`bold`}),className:`size-4 text-accent-600`})})}),r]}));b.displayName=`DropdownMenuRadioItem`;const x=r(({className:t,inset:n,...r},a)=>i(c.Label,{ref:a,"data-slot":`dropdown-menu-label`,className:e(`px-2 py-1.5 text-sm font-medium`,n&&`pl-8`,t),...r}));x.displayName=`DropdownMenuLabel`;const S=r(({className:t,...r},a)=>i(n,{ref:a,"data-slot":`dropdown-menu-separator`,className:e(`-mx-1.25 my-1 w-auto`,t),...r}));S.displayName=`DropdownMenuSeparator`;const C=({className:t,...n})=>i(`span`,{"data-slot":`dropdown-menu-shortcut`,className:e(`ml-auto text-xs tracking-widest opacity-60`,t),...n});C.displayName=`DropdownMenuShortcut`;const w={Root:l,CheckboxItem:y,Content:_,Group:d,Item:v,Label:x,RadioGroup:m,RadioItem:b,Separator:S,Shortcut:C,Sub:p,SubContent:g,SubTrigger:h,Trigger:u};export{w as t};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { t as WithAsChild } from "./as-child-
|
|
1
|
+
import { t as WithAsChild } from "./as-child-CYEVu1WY.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
4
|
-
|
|
5
4
|
//#region src/components/dropdown-menu/dropdown-menu.d.ts
|
|
5
|
+
declare const Shortcut: {
|
|
6
|
+
({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
6
9
|
/**
|
|
7
10
|
* A menu of options or actions, triggered by a button.
|
|
8
11
|
*
|
|
@@ -10,7 +13,7 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
|
10
13
|
* `z-50`, Mantle's shared floating z-index. When multiple shared layers are
|
|
11
14
|
* open, the most recently mounted layer renders on top.
|
|
12
15
|
*
|
|
13
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu
|
|
16
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu
|
|
14
17
|
*
|
|
15
18
|
* @example
|
|
16
19
|
* Composition:
|
|
@@ -54,7 +57,7 @@ declare const DropdownMenu: {
|
|
|
54
57
|
* `z-50`, Mantle's shared floating z-index. When multiple shared layers are
|
|
55
58
|
* open, the most recently mounted layer renders on top.
|
|
56
59
|
*
|
|
57
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenuroot
|
|
60
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenuroot
|
|
58
61
|
*
|
|
59
62
|
* @example
|
|
60
63
|
* ```tsx
|
|
@@ -72,7 +75,7 @@ declare const DropdownMenu: {
|
|
|
72
75
|
/**
|
|
73
76
|
* A checkbox item in the dropdown menu that can be toggled on and off.
|
|
74
77
|
*
|
|
75
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenucheckboxitem
|
|
78
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenucheckboxitem
|
|
76
79
|
*
|
|
77
80
|
* @example
|
|
78
81
|
* ```tsx
|
|
@@ -94,7 +97,7 @@ declare const DropdownMenu: {
|
|
|
94
97
|
* floating z-index. When multiple shared layers are open, the most recently
|
|
95
98
|
* mounted layer renders on top.
|
|
96
99
|
*
|
|
97
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenucontent
|
|
100
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenucontent
|
|
98
101
|
*
|
|
99
102
|
* @example
|
|
100
103
|
* ```tsx
|
|
@@ -116,7 +119,7 @@ declare const DropdownMenu: {
|
|
|
116
119
|
/**
|
|
117
120
|
* A group container for organizing related dropdown menu items.
|
|
118
121
|
*
|
|
119
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenugroup
|
|
122
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenugroup
|
|
120
123
|
*
|
|
121
124
|
* @example
|
|
122
125
|
* ```tsx
|
|
@@ -136,7 +139,7 @@ declare const DropdownMenu: {
|
|
|
136
139
|
/**
|
|
137
140
|
* A standard item in the dropdown menu that can be selected or activated.
|
|
138
141
|
*
|
|
139
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenuitem
|
|
142
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenuitem
|
|
140
143
|
*
|
|
141
144
|
* @example
|
|
142
145
|
* ```tsx
|
|
@@ -159,7 +162,7 @@ declare const DropdownMenu: {
|
|
|
159
162
|
/**
|
|
160
163
|
* A label for grouping and describing sections within the dropdown menu.
|
|
161
164
|
*
|
|
162
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenulabel
|
|
165
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenulabel
|
|
163
166
|
*
|
|
164
167
|
* @example
|
|
165
168
|
* ```tsx
|
|
@@ -179,7 +182,7 @@ declare const DropdownMenu: {
|
|
|
179
182
|
/**
|
|
180
183
|
* A radio group container for exclusive selection within the dropdown menu.
|
|
181
184
|
*
|
|
182
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenuradiogroup
|
|
185
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenuradiogroup
|
|
183
186
|
*
|
|
184
187
|
* @example
|
|
185
188
|
* ```tsx
|
|
@@ -198,7 +201,7 @@ declare const DropdownMenu: {
|
|
|
198
201
|
/**
|
|
199
202
|
* A radio item in the dropdown menu where only one item in the group can be selected.
|
|
200
203
|
*
|
|
201
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenuradioitem
|
|
204
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenuradioitem
|
|
202
205
|
*
|
|
203
206
|
* @example
|
|
204
207
|
* ```tsx
|
|
@@ -221,7 +224,7 @@ declare const DropdownMenu: {
|
|
|
221
224
|
/**
|
|
222
225
|
* A visual separator for dividing sections within the dropdown menu.
|
|
223
226
|
*
|
|
224
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenuseparator
|
|
227
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenuseparator
|
|
225
228
|
*
|
|
226
229
|
* @example
|
|
227
230
|
* ```tsx
|
|
@@ -243,7 +246,7 @@ declare const DropdownMenu: {
|
|
|
243
246
|
/**
|
|
244
247
|
* A keyboard shortcut indicator for dropdown menu items.
|
|
245
248
|
*
|
|
246
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenushortcut
|
|
249
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenushortcut
|
|
247
250
|
*
|
|
248
251
|
* @example
|
|
249
252
|
* ```tsx
|
|
@@ -258,17 +261,11 @@ declare const DropdownMenu: {
|
|
|
258
261
|
* </DropdownMenu.Root>
|
|
259
262
|
* ```
|
|
260
263
|
*/
|
|
261
|
-
readonly Shortcut:
|
|
262
|
-
({
|
|
263
|
-
className,
|
|
264
|
-
...props
|
|
265
|
-
}: ComponentProps<"span">): import("react").JSX.Element;
|
|
266
|
-
displayName: string;
|
|
267
|
-
};
|
|
264
|
+
readonly Shortcut: typeof Shortcut;
|
|
268
265
|
/**
|
|
269
266
|
* A submenu container for creating nested dropdown menus.
|
|
270
267
|
*
|
|
271
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenusub
|
|
268
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenusub
|
|
272
269
|
*
|
|
273
270
|
* @example
|
|
274
271
|
* ```tsx
|
|
@@ -294,7 +291,7 @@ declare const DropdownMenu: {
|
|
|
294
291
|
* floating z-index. When multiple shared layers are open, the most recently
|
|
295
292
|
* mounted layer renders on top.
|
|
296
293
|
*
|
|
297
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenusubcontent
|
|
294
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenusubcontent
|
|
298
295
|
*
|
|
299
296
|
* @example
|
|
300
297
|
* ```tsx
|
|
@@ -316,7 +313,7 @@ declare const DropdownMenu: {
|
|
|
316
313
|
/**
|
|
317
314
|
* The trigger item that opens a submenu when hovered or focused.
|
|
318
315
|
*
|
|
319
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenusubtrigger
|
|
316
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenusubtrigger
|
|
320
317
|
*
|
|
321
318
|
* @example
|
|
322
319
|
* ```tsx
|
|
@@ -340,7 +337,7 @@ declare const DropdownMenu: {
|
|
|
340
337
|
/**
|
|
341
338
|
* The trigger button that opens the dropdown menu.
|
|
342
339
|
*
|
|
343
|
-
* @see https://mantle.ngrok.com/components/dropdown-menu#dropdownmenutrigger
|
|
340
|
+
* @see https://mantle.ngrok.com/components/overlays/dropdown-menu#dropdownmenutrigger
|
|
344
341
|
*
|
|
345
342
|
* @example
|
|
346
343
|
* ```tsx
|
package/dist/dropdown-menu.d.ts
CHANGED
package/dist/dropdown-menu.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./dropdown-menu-
|
|
1
|
+
import{t as e}from"./dropdown-menu-ByUQkAvJ.js";export{e as DropdownMenu};
|