@ngrok/mantle 0.73.3 → 0.73.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.d.ts +7 -9
- package/dist/accordion.js +1 -1
- package/dist/accordion.js.map +1 -1
- package/dist/agent.json +1 -1
- package/dist/alert-dialog.d.ts +33 -38
- package/dist/alert-dialog.js +1 -1
- package/dist/alert-dialog.js.map +1 -1
- package/dist/alert.d.ts +9 -11
- package/dist/alert.js +1 -1
- package/dist/alert.js.map +1 -1
- package/dist/{anchor-2stEauOz.js → anchor-CcTY5SIz.js} +2 -2
- package/dist/{anchor-2stEauOz.js.map → anchor-CcTY5SIz.js.map} +1 -1
- package/dist/anchor.d.ts +2 -3
- package/dist/anchor.js +1 -1
- package/dist/{as-child-CpZKMqTE.d.ts → as-child-uN_018tj.d.ts} +1 -1
- package/dist/badge.d.ts +3 -4
- package/dist/badge.js +1 -1
- package/dist/badge.js.map +1 -1
- package/dist/{booleanish-CBGdPL3Q.js → booleanish-BfvnW6vy.js} +1 -1
- package/dist/{booleanish-CBGdPL3Q.js.map → booleanish-BfvnW6vy.js.map} +1 -1
- package/dist/{browser-only-QPyyfLaB.js → browser-only-BSl_hruR.js} +1 -1
- package/dist/{browser-only-QPyyfLaB.js.map → browser-only-BSl_hruR.js.map} +1 -1
- package/dist/browser-only.js +1 -1
- package/dist/{button-POMJ-20y.js → button-BAxneEMu.js} +2 -2
- package/dist/{button-POMJ-20y.js.map → button-BAxneEMu.js.map} +1 -1
- package/dist/{button-DbHFERMB.d.ts → button-BYZOBUgj.d.ts} +16 -19
- package/dist/{button-GokecthL.js → button-uMIZVKit.js} +2 -2
- package/dist/{button-GokecthL.js.map → button-uMIZVKit.js.map} +1 -1
- package/dist/button.d.ts +4 -4
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +1 -2
- package/dist/calendar.js +1 -1
- package/dist/calendar.js.map +1 -1
- package/dist/card.d.ts +6 -7
- package/dist/card.js +1 -1
- package/dist/card.js.map +1 -1
- package/dist/checkbox.d.ts +3 -4
- package/dist/checkbox.js +1 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/code-block.d.ts +17 -19
- 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 +2 -3
- package/dist/code.js +1 -1
- package/dist/code.js.map +1 -1
- package/dist/color.d.ts +2 -2
- package/dist/color.js.map +1 -1
- package/dist/combobox.d.ts +11 -13
- package/dist/combobox.js +1 -1
- package/dist/combobox.js.map +1 -1
- package/dist/command.d.ts +133 -220
- package/dist/command.js +1 -1
- package/dist/command.js.map +1 -1
- package/dist/{compose-refs-DZ3cPi47.js → compose-refs-Cjf2gfB8.js} +1 -1
- package/dist/{compose-refs-DZ3cPi47.js.map → compose-refs-Cjf2gfB8.js.map} +1 -1
- package/dist/{copy-to-clipboard-CNMRyck4.js → copy-to-clipboard-Baw30q9O.js} +2 -2
- package/dist/{copy-to-clipboard-CNMRyck4.js.map → copy-to-clipboard-Baw30q9O.js.map} +1 -1
- package/dist/{cx-D1HYnpvA.js → cx-CBSnSC36.js} +1 -1
- package/dist/{cx-D1HYnpvA.js.map → cx-CBSnSC36.js.map} +1 -1
- package/dist/cx.js +1 -1
- package/dist/data-table.d.ts +13 -15
- package/dist/data-table.js +1 -1
- package/dist/data-table.js.map +1 -1
- package/dist/{deep-non-nullable-Xu7ckQM6.d.ts → deep-non-nullable-BxRoySYR.d.ts} +1 -1
- package/dist/description-list.d.ts +5 -6
- package/dist/description-list.js +1 -1
- package/dist/description-list.js.map +1 -1
- package/dist/{dialog-B1KCB7JT.js → dialog-Dn-brQBw.js} +2 -2
- package/dist/{dialog-B1KCB7JT.js.map → dialog-Dn-brQBw.js.map} +1 -1
- package/dist/dialog.d.ts +14 -17
- package/dist/dialog.js +1 -1
- package/dist/{direction-D9IZ1wW6.d.ts → direction-CcTY0FmA.d.ts} +2 -2
- package/dist/{direction-HqPHXGIs.js → direction-Wa9W2F61.js} +1 -1
- package/dist/{direction-HqPHXGIs.js.map → direction-Wa9W2F61.js.map} +1 -1
- package/dist/{dropdown-menu-CvOiQUSZ.d.ts → dropdown-menu-BgYk4L8o.d.ts} +22 -24
- package/dist/{dropdown-menu-DY4w933w.js → dropdown-menu-C3YZJBkV.js} +2 -2
- package/dist/{dropdown-menu-DY4w933w.js.map → dropdown-menu-C3YZJBkV.js.map} +1 -1
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +7 -8
- package/dist/empty.js +1 -1
- package/dist/empty.js.map +1 -1
- package/dist/{field-context-B7Z1cmZW.js → field-context-4k1kI7Bo.js} +2 -2
- package/dist/{field-context-B7Z1cmZW.js.map → field-context-4k1kI7Bo.js.map} +1 -1
- package/dist/field.d.ts +23 -25
- package/dist/field.js +1 -1
- package/dist/field.js.map +1 -1
- package/dist/flag.d.ts +1 -2
- package/dist/flag.js +1 -1
- package/dist/flag.js.map +1 -1
- package/dist/hooks.d.ts +3 -3
- package/dist/hooks.js +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/hover-card.d.ts +4 -6
- package/dist/hover-card.js +1 -1
- package/dist/hover-card.js.map +1 -1
- package/dist/{icon-bWc5yC3-.js → icon-C8bYBIHW.js} +2 -2
- package/dist/{icon-bWc5yC3-.js.map → icon-C8bYBIHW.js.map} +1 -1
- package/dist/{icon-button-ZKN0sRIJ.js → icon-button-C_Ht_g1C.js} +2 -2
- package/dist/{icon-button-ZKN0sRIJ.js.map → icon-button-C_Ht_g1C.js.map} +1 -1
- package/dist/{icon-button-BDTb-lxs.d.ts → icon-button-ntupABbM.d.ts} +6 -8
- package/dist/{icon-BJ7q2RXZ.d.ts → icon-n49kOh4_.d.ts} +3 -4
- package/dist/icon.d.ts +3 -3
- package/dist/icon.js +1 -1
- package/dist/icons.d.ts +9 -10
- package/dist/icons.js +1 -1
- package/dist/icons.js.map +1 -1
- package/dist/{in-view-BUgyu-Tk.d.ts → in-view-BC3wmz-a.d.ts} +1 -1
- package/dist/{in-view-CeVqeGbv.js → in-view-C2DpZ6s0.js} +1 -1
- package/dist/{in-view-CeVqeGbv.js.map → in-view-C2DpZ6s0.js.map} +1 -1
- package/dist/{index-BhlxYL_y.d.ts → index-BL5WVva_.d.ts} +3 -6
- package/dist/{index-CWXKBva-.d.ts → index-DBZ3eRsl.d.ts} +5 -7
- package/dist/{index-DS_4n2eb.d.ts → index-DorCusfG.d.ts} +1 -1
- package/dist/{index-BbZBDzPh.d.ts → index-L3NmbHi5.d.ts} +1 -1
- package/dist/input.d.ts +7 -8
- package/dist/input.js +1 -1
- package/dist/input.js.map +1 -1
- package/dist/{is-input-CtUHJGgL.js → is-input-CXmS0OFN.js} +1 -1
- package/dist/{is-input-CtUHJGgL.js.map → is-input-CXmS0OFN.js.map} +1 -1
- package/dist/{kbd-CbMxDL9E.js → kbd-Bv6tefdB.js} +2 -2
- package/dist/{kbd-CbMxDL9E.js.map → kbd-Bv6tefdB.js.map} +1 -1
- package/dist/kbd.d.ts +1 -2
- package/dist/kbd.js +1 -1
- package/dist/{label-x6FcOpxc.js → label-DhIUmTN2.js} +2 -2
- package/dist/{label-x6FcOpxc.js.map → label-DhIUmTN2.js.map} +1 -1
- package/dist/label.d.ts +2 -4
- package/dist/label.js +1 -1
- package/dist/llms.txt +1 -1
- package/dist/main.d.ts +1 -2
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/media-object.d.ts +4 -5
- package/dist/media-object.js +1 -1
- package/dist/media-object.js.map +1 -1
- package/dist/multi-select.d.ts +16 -18
- package/dist/multi-select.js +1 -1
- package/dist/multi-select.js.map +1 -1
- package/dist/otp-input.d.ts +6 -7
- package/dist/otp-input.js +1 -1
- package/dist/otp-input.js.map +1 -1
- package/dist/pagination.d.ts +7 -9
- package/dist/pagination.js +1 -1
- package/dist/pagination.js.map +1 -1
- package/dist/{popover-CoZxokw_.js → popover-DponNBot.js} +2 -2
- package/dist/{popover-CoZxokw_.js.map → popover-DponNBot.js.map} +1 -1
- package/dist/popover.d.ts +6 -7
- package/dist/popover.js +1 -1
- package/dist/primitive-Cn3h4DJg.js +2 -0
- package/dist/primitive-Cn3h4DJg.js.map +1 -0
- package/dist/{primitive-qkxTYBUY.d.ts → primitive-D_-h74Kt.d.ts} +2 -3
- package/dist/progress.d.ts +4 -5
- package/dist/progress.js +1 -1
- package/dist/progress.js.map +1 -1
- package/dist/radio-group.d.ts +18 -20
- package/dist/radio-group.js +1 -1
- package/dist/radio-group.js.map +1 -1
- package/dist/{resolve-pre-rendered-props-BfWe69-w.js → resolve-pre-rendered-props-C-vrNxH1.js} +8 -8
- package/dist/resolve-pre-rendered-props-C-vrNxH1.js.map +1 -0
- package/dist/{resolve-pre-rendered-props-BONSCwYA.d.ts → resolve-pre-rendered-props-DxJ9-DAl.d.ts} +1 -1
- package/dist/sandboxed-on-click.d.ts +3 -4
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/sandboxed-on-click.js.map +1 -1
- package/dist/{select-SZFFzYs0.d.ts → select-C15-XvRT.d.ts} +15 -16
- package/dist/select-Cxc9VmP8.js +2 -0
- package/dist/select-Cxc9VmP8.js.map +1 -0
- package/dist/select.d.ts +1 -1
- package/dist/select.js +1 -1
- package/dist/separator-Bqjy77rG.js +2 -0
- package/dist/separator-Bqjy77rG.js.map +1 -0
- package/dist/separator.d.ts +3 -5
- package/dist/separator.js +1 -1
- package/dist/sheet.d.ts +15 -19
- package/dist/sheet.js +1 -1
- package/dist/sheet.js.map +1 -1
- package/dist/skeleton.d.ts +4 -6
- package/dist/skeleton.js +1 -1
- package/dist/skeleton.js.map +1 -1
- package/dist/skip-to-main-link.d.ts +1 -2
- package/dist/skip-to-main-link.js +1 -1
- package/dist/skip-to-main-link.js.map +1 -1
- package/dist/slider.d.ts +1 -2
- package/dist/slider.js +1 -1
- package/dist/slider.js.map +1 -1
- package/dist/{slot-D_ZUrdEW.js → slot-CV5fmqFr.js} +2 -2
- package/dist/{slot-D_ZUrdEW.js.map → slot-CV5fmqFr.js.map} +1 -1
- package/dist/slot.d.ts +1 -1
- package/dist/slot.js +1 -1
- package/dist/{sort-mXo37xN2.js → sort-BPX2Fk9t.js} +2 -2
- package/dist/{sort-mXo37xN2.js.map → sort-BPX2Fk9t.js.map} +1 -1
- package/dist/split-button.d.ts +10 -12
- package/dist/split-button.js +1 -1
- package/dist/split-button.js.map +1 -1
- package/dist/{svg-only-7gYlsX8f.js → svg-only-Cz1cby8y.js} +2 -2
- package/dist/{svg-only-7gYlsX8f.js.map → svg-only-Cz1cby8y.js.map} +1 -1
- package/dist/{svg-only-D4uqM1OC.d.ts → svg-only-f6ToFLH0.d.ts} +3 -4
- package/dist/switch.d.ts +3 -5
- package/dist/switch.js +1 -1
- package/dist/switch.js.map +1 -1
- package/dist/{table-CjSQkfZe.d.ts → table-BWD9IlIN.d.ts} +10 -12
- package/dist/{table-CHd39aT-.js → table-eyoUW2Uv.js} +2 -2
- package/dist/{table-CHd39aT-.js.map → table-eyoUW2Uv.js.map} +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +6 -9
- package/dist/tabs.js +1 -1
- package/dist/tabs.js.map +1 -1
- package/dist/text-area.d.ts +2 -3
- package/dist/text-area.js +1 -1
- package/dist/text-area.js.map +1 -1
- package/dist/theme-provider-MMwxHEfw.js +2 -0
- package/dist/theme-provider-MMwxHEfw.js.map +1 -0
- package/dist/theme.d.ts +9 -10
- package/dist/theme.js +1 -1
- package/dist/theme.js.map +1 -1
- package/dist/{themes-FPux5kIu.d.ts → themes-CYNpplwN.d.ts} +1 -1
- package/dist/toast-CR3MVChj.js +2 -0
- package/dist/toast-CR3MVChj.js.map +1 -0
- package/dist/toast.d.ts +8 -10
- package/dist/toast.js +1 -1
- package/dist/tooltip.d.ts +4 -6
- package/dist/tooltip.js +1 -1
- package/dist/tooltip.js.map +1 -1
- package/dist/{traffic-policy-file-BwHHdhWJ.js → traffic-policy-file-0g5RXFqu.js} +1 -1
- package/dist/{traffic-policy-file-BwHHdhWJ.js.map → traffic-policy-file-0g5RXFqu.js.map} +1 -1
- package/dist/{types-QKZ5fvaQ.d.ts → types-BvUzforF.d.ts} +1 -1
- package/dist/types-D85fCNV3.js +2 -0
- package/dist/{types-884RJJqm.js.map → types-D85fCNV3.js.map} +1 -1
- package/dist/types.d.ts +6 -6
- package/dist/types.js +1 -1
- package/dist/use-copy-to-clipboard-BLpquU9d.js +2 -0
- package/dist/{use-copy-to-clipboard-CTgtLjUg.js.map → use-copy-to-clipboard-BLpquU9d.js.map} +1 -1
- package/dist/{use-isomorphic-layout-effect-CNSD0lhi.js → use-isomorphic-layout-effect-DdTRtMY-.js} +1 -1
- package/dist/{use-isomorphic-layout-effect-CNSD0lhi.js.map → use-isomorphic-layout-effect-DdTRtMY-.js.map} +1 -1
- package/dist/{use-matches-media-query-CojcYxlA.js → use-matches-media-query-CMSxHR9n.js} +1 -1
- package/dist/{use-matches-media-query-CojcYxlA.js.map → use-matches-media-query-CMSxHR9n.js.map} +1 -1
- package/dist/{use-prefers-reduced-motion-Bpx8G3UT.js → use-prefers-reduced-motion-CWIoFA6W.js} +2 -2
- package/dist/{use-prefers-reduced-motion-Bpx8G3UT.js.map → use-prefers-reduced-motion-CWIoFA6W.js.map} +1 -1
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/dist/utils.js.map +1 -1
- package/dist/{validation-BYME8rWN.js → validation-DCyx-ceH.js} +1 -1
- package/dist/{validation-BYME8rWN.js.map → validation-DCyx-ceH.js.map} +1 -1
- package/dist/{validation-CBSOmooP.d.ts → validation-xyX_6kph.d.ts} +1 -1
- package/dist/{variant-props-BZbM__kQ.d.ts → variant-props-CVymuSfa.d.ts} +2 -2
- package/dist/{with-style-props-xzZLnIrF.d.ts → with-style-props-CyImx7vd.d.ts} +1 -1
- package/package.json +6 -6
- package/dist/primitive-tXm_8n_t.js +0 -2
- package/dist/primitive-tXm_8n_t.js.map +0 -1
- package/dist/resolve-pre-rendered-props-BfWe69-w.js.map +0 -1
- package/dist/select-B7orOUPj.js +0 -2
- package/dist/select-B7orOUPj.js.map +0 -1
- package/dist/separator-awchG4LI.js +0 -2
- package/dist/separator-awchG4LI.js.map +0 -1
- package/dist/theme-provider-BFcnjeME.js +0 -2
- package/dist/theme-provider-BFcnjeME.js.map +0 -1
- package/dist/toast-CGnquSKO.js +0 -2
- package/dist/toast-CGnquSKO.js.map +0 -1
- package/dist/types-884RJJqm.js +0 -2
- package/dist/use-copy-to-clipboard-CTgtLjUg.js +0 -2
package/dist/command.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { t as Root } from "./primitive-
|
|
2
|
-
import * as _$react from "react";
|
|
1
|
+
import { t as Root } from "./primitive-D_-h74Kt.js";
|
|
3
2
|
import { ComponentProps, ComponentPropsWithoutRef, ReactNode } from "react";
|
|
4
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
-
import * as _$_radix_ui_react_dialog0 from "@radix-ui/react-dialog";
|
|
6
3
|
import { Command as Command$1, useCommandState } from "cmdk";
|
|
7
4
|
|
|
8
5
|
//#region src/components/command/command.d.ts
|
|
@@ -60,9 +57,9 @@ type CommandDialogContentProps = {
|
|
|
60
57
|
* @example
|
|
61
58
|
* Composition:
|
|
62
59
|
* ```
|
|
63
|
-
* Command.
|
|
64
|
-
* ├── Command.
|
|
65
|
-
* └── Command.
|
|
60
|
+
* Command.DialogRoot
|
|
61
|
+
* ├── Command.DialogTrigger
|
|
62
|
+
* └── Command.DialogContent
|
|
66
63
|
* ├── Command.Input
|
|
67
64
|
* └── Command.List
|
|
68
65
|
* ├── Command.Empty
|
|
@@ -74,11 +71,11 @@ type CommandDialogContentProps = {
|
|
|
74
71
|
*
|
|
75
72
|
* @example
|
|
76
73
|
* ```tsx
|
|
77
|
-
* <Command.
|
|
78
|
-
* <Command.
|
|
74
|
+
* <Command.DialogRoot open={open} onOpenChange={setOpen}>
|
|
75
|
+
* <Command.DialogTrigger asChild>
|
|
79
76
|
* <Button type="button">Open Command Palette</Button>
|
|
80
|
-
* </Command.
|
|
81
|
-
* <Command.
|
|
77
|
+
* </Command.DialogTrigger>
|
|
78
|
+
* <Command.DialogContent>
|
|
82
79
|
* <Command.Input placeholder="Type a command or search..." />
|
|
83
80
|
* <Command.List>
|
|
84
81
|
* <Command.Empty>No results found.</Command.Empty>
|
|
@@ -95,8 +92,8 @@ type CommandDialogContentProps = {
|
|
|
95
92
|
* </Command.Item>
|
|
96
93
|
* </Command.Group>
|
|
97
94
|
* </Command.List>
|
|
98
|
-
* </Command.
|
|
99
|
-
* </Command.
|
|
95
|
+
* </Command.DialogContent>
|
|
96
|
+
* </Command.DialogRoot>
|
|
100
97
|
* ```
|
|
101
98
|
*/
|
|
102
99
|
declare const Command: {
|
|
@@ -107,11 +104,11 @@ declare const Command: {
|
|
|
107
104
|
*
|
|
108
105
|
* @example
|
|
109
106
|
* ```tsx
|
|
110
|
-
* <Command.
|
|
111
|
-
* <Command.
|
|
107
|
+
* <Command.DialogRoot open={open} onOpenChange={setOpen}>
|
|
108
|
+
* <Command.DialogTrigger asChild>
|
|
112
109
|
* <Button type="button">Open Command Palette</Button>
|
|
113
|
-
* </Command.
|
|
114
|
-
* <Command.
|
|
110
|
+
* </Command.DialogTrigger>
|
|
111
|
+
* <Command.DialogContent>
|
|
115
112
|
* <Command.Input placeholder="Type a command or search..." />
|
|
116
113
|
* <Command.List>
|
|
117
114
|
* <Command.Empty>No results found.</Command.Empty>
|
|
@@ -128,17 +125,17 @@ declare const Command: {
|
|
|
128
125
|
* </Command.Item>
|
|
129
126
|
* </Command.Group>
|
|
130
127
|
* </Command.List>
|
|
131
|
-
* </Command.
|
|
132
|
-
* </Command.
|
|
128
|
+
* </Command.DialogContent>
|
|
129
|
+
* </Command.DialogRoot>
|
|
133
130
|
* ```
|
|
134
131
|
*/
|
|
135
|
-
readonly Root:
|
|
132
|
+
readonly Root: import("react").ForwardRefExoticComponent<Omit<{
|
|
136
133
|
children?: React.ReactNode;
|
|
137
|
-
} & Pick<Pick<
|
|
134
|
+
} & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
138
135
|
ref?: React.Ref<HTMLDivElement>;
|
|
139
136
|
} & {
|
|
140
137
|
asChild?: boolean;
|
|
141
|
-
}, "key" | keyof
|
|
138
|
+
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
142
139
|
label?: string;
|
|
143
140
|
shouldFilter?: boolean;
|
|
144
141
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -148,151 +145,67 @@ declare const Command: {
|
|
|
148
145
|
loop?: boolean;
|
|
149
146
|
disablePointerSelection?: boolean;
|
|
150
147
|
vimBindings?: boolean;
|
|
151
|
-
} &
|
|
148
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
152
149
|
/**
|
|
153
|
-
*
|
|
154
|
-
* Use `Command.Dialog.Root`, `Command.Dialog.Trigger`, and `Command.Dialog.Content`.
|
|
150
|
+
* The root stateful component for the Command dialog. Manages open/closed state.
|
|
155
151
|
*
|
|
156
|
-
* @see https://mantle.ngrok.com/components/command#
|
|
152
|
+
* @see https://mantle.ngrok.com/components/command#commanddialogroot
|
|
157
153
|
*
|
|
158
154
|
* @example
|
|
159
155
|
* ```tsx
|
|
160
|
-
* <Command.
|
|
161
|
-
* <Command.
|
|
156
|
+
* <Command.DialogRoot open={open} onOpenChange={setOpen}>
|
|
157
|
+
* <Command.DialogTrigger asChild>
|
|
162
158
|
* <Button type="button">Open Command Palette</Button>
|
|
163
|
-
* </Command.
|
|
164
|
-
* <Command.
|
|
159
|
+
* </Command.DialogTrigger>
|
|
160
|
+
* <Command.DialogContent>
|
|
165
161
|
* <Command.Input placeholder="Type a command or search..." />
|
|
166
162
|
* <Command.List>
|
|
167
163
|
* <Command.Empty>No results found.</Command.Empty>
|
|
168
|
-
* <Command.Group heading="Suggestions">
|
|
169
|
-
* <Command.Item>
|
|
170
|
-
* <span>Calendar</span>
|
|
171
|
-
* </Command.Item>
|
|
172
|
-
* </Command.Group>
|
|
173
|
-
* <Command.Separator />
|
|
174
|
-
* <Command.Group heading="Settings">
|
|
175
|
-
* <Command.Item>
|
|
176
|
-
* <span>Profile</span>
|
|
177
|
-
* <Command.Shortcut>⌘,</Command.Shortcut>
|
|
178
|
-
* </Command.Item>
|
|
179
|
-
* </Command.Group>
|
|
180
164
|
* </Command.List>
|
|
181
|
-
* </Command.
|
|
182
|
-
* </Command.
|
|
165
|
+
* </Command.DialogContent>
|
|
166
|
+
* </Command.DialogRoot>
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
readonly DialogRoot: typeof Root;
|
|
170
|
+
/**
|
|
171
|
+
* A button that opens the Command dialog when clicked.
|
|
172
|
+
*
|
|
173
|
+
* @see https://mantle.ngrok.com/components/command#commanddialogtrigger
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* ```tsx
|
|
177
|
+
* <Command.DialogTrigger asChild>
|
|
178
|
+
* <Button type="button">Open Command Palette</Button>
|
|
179
|
+
* </Command.DialogTrigger>
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
readonly DialogTrigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
183
|
+
/**
|
|
184
|
+
* The visible content of the Command dialog. Renders inside the dialog portal.
|
|
185
|
+
*
|
|
186
|
+
* @see https://mantle.ngrok.com/components/command#commanddialogcontent
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```tsx
|
|
190
|
+
* <Command.DialogContent>
|
|
191
|
+
* <Command.Input placeholder="Type a command or search..." />
|
|
192
|
+
* <Command.List>
|
|
193
|
+
* <Command.Empty>No results found.</Command.Empty>
|
|
194
|
+
* </Command.List>
|
|
195
|
+
* </Command.DialogContent>
|
|
183
196
|
* ```
|
|
184
197
|
*/
|
|
185
|
-
readonly
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
* </Command.Dialog.Trigger>
|
|
197
|
-
* <Command.Dialog.Content>
|
|
198
|
-
* <Command.Input placeholder="Type a command or search..." />
|
|
199
|
-
* <Command.List>
|
|
200
|
-
* <Command.Empty>No results found.</Command.Empty>
|
|
201
|
-
* <Command.Group heading="Suggestions">
|
|
202
|
-
* <Command.Item>
|
|
203
|
-
* <span>Calendar</span>
|
|
204
|
-
* </Command.Item>
|
|
205
|
-
* </Command.Group>
|
|
206
|
-
* <Command.Separator />
|
|
207
|
-
* <Command.Group heading="Settings">
|
|
208
|
-
* <Command.Item>
|
|
209
|
-
* <span>Profile</span>
|
|
210
|
-
* <Command.Shortcut>⌘,</Command.Shortcut>
|
|
211
|
-
* </Command.Item>
|
|
212
|
-
* </Command.Group>
|
|
213
|
-
* </Command.List>
|
|
214
|
-
* </Command.Dialog.Content>
|
|
215
|
-
* </Command.Dialog.Root>
|
|
216
|
-
* ```
|
|
217
|
-
*/
|
|
218
|
-
readonly Root: typeof Root;
|
|
219
|
-
/**
|
|
220
|
-
* A button that opens the CommandDialog when clicked.
|
|
221
|
-
*
|
|
222
|
-
* @see https://mantle.ngrok.com/components/command#commanddialogtrigger
|
|
223
|
-
*
|
|
224
|
-
* @example
|
|
225
|
-
* ```tsx
|
|
226
|
-
* <Command.Dialog.Root open={open} onOpenChange={setOpen}>
|
|
227
|
-
* <Command.Dialog.Trigger asChild>
|
|
228
|
-
* <Button type="button">Open Command Palette</Button>
|
|
229
|
-
* </Command.Dialog.Trigger>
|
|
230
|
-
* <Command.Dialog.Content>
|
|
231
|
-
* <Command.Input placeholder="Type a command or search..." />
|
|
232
|
-
* <Command.List>
|
|
233
|
-
* <Command.Empty>No results found.</Command.Empty>
|
|
234
|
-
* <Command.Group heading="Suggestions">
|
|
235
|
-
* <Command.Item>
|
|
236
|
-
* <span>Calendar</span>
|
|
237
|
-
* </Command.Item>
|
|
238
|
-
* </Command.Group>
|
|
239
|
-
* <Command.Separator />
|
|
240
|
-
* <Command.Group heading="Settings">
|
|
241
|
-
* <Command.Item>
|
|
242
|
-
* <span>Profile</span>
|
|
243
|
-
* <Command.Shortcut>⌘,</Command.Shortcut>
|
|
244
|
-
* </Command.Item>
|
|
245
|
-
* </Command.Group>
|
|
246
|
-
* </Command.List>
|
|
247
|
-
* </Command.Dialog.Content>
|
|
248
|
-
* </Command.Dialog.Root>
|
|
249
|
-
* ```
|
|
250
|
-
*/
|
|
251
|
-
readonly Trigger: _$react.ForwardRefExoticComponent<Omit<_$_radix_ui_react_dialog0.DialogTriggerProps & _$react.RefAttributes<HTMLButtonElement>, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
|
|
252
|
-
/**
|
|
253
|
-
* The visible content of the CommandDialog. Renders inside the dialog portal.
|
|
254
|
-
*
|
|
255
|
-
* @see https://mantle.ngrok.com/components/command#commanddialogcontent
|
|
256
|
-
*
|
|
257
|
-
* @example
|
|
258
|
-
* ```tsx
|
|
259
|
-
* <Command.Dialog.Root open={open} onOpenChange={setOpen}>
|
|
260
|
-
* <Command.Dialog.Trigger asChild>
|
|
261
|
-
* <Button type="button">Open Command Palette</Button>
|
|
262
|
-
* </Command.Dialog.Trigger>
|
|
263
|
-
* <Command.Dialog.Content>
|
|
264
|
-
* <Command.Input placeholder="Type a command or search..." />
|
|
265
|
-
* <Command.List>
|
|
266
|
-
* <Command.Empty>No results found.</Command.Empty>
|
|
267
|
-
* <Command.Group heading="Suggestions">
|
|
268
|
-
* <Command.Item>
|
|
269
|
-
* <span>Calendar</span>
|
|
270
|
-
* </Command.Item>
|
|
271
|
-
* </Command.Group>
|
|
272
|
-
* <Command.Separator />
|
|
273
|
-
* <Command.Group heading="Settings">
|
|
274
|
-
* <Command.Item>
|
|
275
|
-
* <span>Profile</span>
|
|
276
|
-
* <Command.Shortcut>⌘,</Command.Shortcut>
|
|
277
|
-
* </Command.Item>
|
|
278
|
-
* </Command.Group>
|
|
279
|
-
* </Command.List>
|
|
280
|
-
* </Command.Dialog.Content>
|
|
281
|
-
* </Command.Dialog.Root>
|
|
282
|
-
* ```
|
|
283
|
-
*/
|
|
284
|
-
readonly Content: {
|
|
285
|
-
({
|
|
286
|
-
children,
|
|
287
|
-
className,
|
|
288
|
-
description,
|
|
289
|
-
filter,
|
|
290
|
-
shouldFilter,
|
|
291
|
-
showCloseButton,
|
|
292
|
-
title
|
|
293
|
-
}: CommandDialogContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
294
|
-
displayName: string;
|
|
295
|
-
};
|
|
198
|
+
readonly DialogContent: {
|
|
199
|
+
({
|
|
200
|
+
children,
|
|
201
|
+
className,
|
|
202
|
+
description,
|
|
203
|
+
filter,
|
|
204
|
+
shouldFilter,
|
|
205
|
+
showCloseButton,
|
|
206
|
+
title
|
|
207
|
+
}: CommandDialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
208
|
+
displayName: string;
|
|
296
209
|
};
|
|
297
210
|
/**
|
|
298
211
|
* The input component for the Command component.
|
|
@@ -301,11 +214,11 @@ declare const Command: {
|
|
|
301
214
|
*
|
|
302
215
|
* @example
|
|
303
216
|
* ```tsx
|
|
304
|
-
* <Command.
|
|
305
|
-
* <Command.
|
|
217
|
+
* <Command.DialogRoot open={open} onOpenChange={setOpen}>
|
|
218
|
+
* <Command.DialogTrigger asChild>
|
|
306
219
|
* <Button type="button">Open Command Palette</Button>
|
|
307
|
-
* </Command.
|
|
308
|
-
* <Command.
|
|
220
|
+
* </Command.DialogTrigger>
|
|
221
|
+
* <Command.DialogContent>
|
|
309
222
|
* <Command.Input placeholder="Type a command or search..." />
|
|
310
223
|
* <Command.List>
|
|
311
224
|
* <Command.Empty>No results found.</Command.Empty>
|
|
@@ -322,18 +235,18 @@ declare const Command: {
|
|
|
322
235
|
* </Command.Item>
|
|
323
236
|
* </Command.Group>
|
|
324
237
|
* </Command.List>
|
|
325
|
-
* </Command.
|
|
326
|
-
* </Command.
|
|
238
|
+
* </Command.DialogContent>
|
|
239
|
+
* </Command.DialogRoot>
|
|
327
240
|
* ```
|
|
328
241
|
*/
|
|
329
|
-
readonly Input:
|
|
242
|
+
readonly Input: import("react").ForwardRefExoticComponent<Omit<Omit<Pick<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>> & {
|
|
330
243
|
ref?: React.Ref<HTMLInputElement>;
|
|
331
244
|
} & {
|
|
332
245
|
asChild?: boolean;
|
|
333
|
-
}, "key" |
|
|
246
|
+
}, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement> | "asChild">, "value" | "onChange" | "type"> & {
|
|
334
247
|
value?: string;
|
|
335
248
|
onValueChange?: (search: string) => void;
|
|
336
|
-
} &
|
|
249
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
337
250
|
/**
|
|
338
251
|
* The list component for the Command component.
|
|
339
252
|
*
|
|
@@ -341,11 +254,11 @@ declare const Command: {
|
|
|
341
254
|
*
|
|
342
255
|
* @example
|
|
343
256
|
* ```tsx
|
|
344
|
-
* <Command.
|
|
345
|
-
* <Command.
|
|
257
|
+
* <Command.DialogRoot open={open} onOpenChange={setOpen}>
|
|
258
|
+
* <Command.DialogTrigger asChild>
|
|
346
259
|
* <Button type="button">Open Command Palette</Button>
|
|
347
|
-
* </Command.
|
|
348
|
-
* <Command.
|
|
260
|
+
* </Command.DialogTrigger>
|
|
261
|
+
* <Command.DialogContent>
|
|
349
262
|
* <Command.Input placeholder="Type a command or search..." />
|
|
350
263
|
* <Command.List>
|
|
351
264
|
* <Command.Empty>No results found.</Command.Empty>
|
|
@@ -362,19 +275,19 @@ declare const Command: {
|
|
|
362
275
|
* </Command.Item>
|
|
363
276
|
* </Command.Group>
|
|
364
277
|
* </Command.List>
|
|
365
|
-
* </Command.
|
|
366
|
-
* </Command.
|
|
278
|
+
* </Command.DialogContent>
|
|
279
|
+
* </Command.DialogRoot>
|
|
367
280
|
* ```
|
|
368
281
|
*/
|
|
369
|
-
readonly List:
|
|
282
|
+
readonly List: import("react").ForwardRefExoticComponent<Omit<{
|
|
370
283
|
children?: React.ReactNode;
|
|
371
|
-
} & Pick<Pick<
|
|
284
|
+
} & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
372
285
|
ref?: React.Ref<HTMLDivElement>;
|
|
373
286
|
} & {
|
|
374
287
|
asChild?: boolean;
|
|
375
|
-
}, "key" | keyof
|
|
288
|
+
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
376
289
|
label?: string;
|
|
377
|
-
} &
|
|
290
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
378
291
|
/**
|
|
379
292
|
* The empty component for the Command component.
|
|
380
293
|
*
|
|
@@ -382,11 +295,11 @@ declare const Command: {
|
|
|
382
295
|
*
|
|
383
296
|
* @example
|
|
384
297
|
* ```tsx
|
|
385
|
-
* <Command.
|
|
386
|
-
* <Command.
|
|
298
|
+
* <Command.DialogRoot open={open} onOpenChange={setOpen}>
|
|
299
|
+
* <Command.DialogTrigger asChild>
|
|
387
300
|
* <Button type="button">Open Command Palette</Button>
|
|
388
|
-
* </Command.
|
|
389
|
-
* <Command.
|
|
301
|
+
* </Command.DialogTrigger>
|
|
302
|
+
* <Command.DialogContent>
|
|
390
303
|
* <Command.Input placeholder="Type a command or search..." />
|
|
391
304
|
* <Command.List>
|
|
392
305
|
* <Command.Empty>No results found.</Command.Empty>
|
|
@@ -403,17 +316,17 @@ declare const Command: {
|
|
|
403
316
|
* </Command.Item>
|
|
404
317
|
* </Command.Group>
|
|
405
318
|
* </Command.List>
|
|
406
|
-
* </Command.
|
|
407
|
-
* </Command.
|
|
319
|
+
* </Command.DialogContent>
|
|
320
|
+
* </Command.DialogRoot>
|
|
408
321
|
* ```
|
|
409
322
|
*/
|
|
410
|
-
readonly Empty:
|
|
323
|
+
readonly Empty: import("react").ForwardRefExoticComponent<Omit<{
|
|
411
324
|
children?: React.ReactNode;
|
|
412
|
-
} & Pick<Pick<
|
|
325
|
+
} & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
413
326
|
ref?: React.Ref<HTMLDivElement>;
|
|
414
327
|
} & {
|
|
415
328
|
asChild?: boolean;
|
|
416
|
-
}, "key" | keyof
|
|
329
|
+
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement> | "asChild"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
417
330
|
/**
|
|
418
331
|
* The group component for the Command component.
|
|
419
332
|
*
|
|
@@ -421,11 +334,11 @@ declare const Command: {
|
|
|
421
334
|
*
|
|
422
335
|
* @example
|
|
423
336
|
* ```tsx
|
|
424
|
-
* <Command.
|
|
425
|
-
* <Command.
|
|
337
|
+
* <Command.DialogRoot open={open} onOpenChange={setOpen}>
|
|
338
|
+
* <Command.DialogTrigger asChild>
|
|
426
339
|
* <Button type="button">Open Command Palette</Button>
|
|
427
|
-
* </Command.
|
|
428
|
-
* <Command.
|
|
340
|
+
* </Command.DialogTrigger>
|
|
341
|
+
* <Command.DialogContent>
|
|
429
342
|
* <Command.Input placeholder="Type a command or search..." />
|
|
430
343
|
* <Command.List>
|
|
431
344
|
* <Command.Empty>No results found.</Command.Empty>
|
|
@@ -442,21 +355,21 @@ declare const Command: {
|
|
|
442
355
|
* </Command.Item>
|
|
443
356
|
* </Command.Group>
|
|
444
357
|
* </Command.List>
|
|
445
|
-
* </Command.
|
|
446
|
-
* </Command.
|
|
358
|
+
* </Command.DialogContent>
|
|
359
|
+
* </Command.DialogRoot>
|
|
447
360
|
* ```
|
|
448
361
|
*/
|
|
449
|
-
readonly Group:
|
|
362
|
+
readonly Group: import("react").ForwardRefExoticComponent<Omit<{
|
|
450
363
|
children?: React.ReactNode;
|
|
451
|
-
} & Omit<Pick<Pick<
|
|
364
|
+
} & Omit<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
452
365
|
ref?: React.Ref<HTMLDivElement>;
|
|
453
366
|
} & {
|
|
454
367
|
asChild?: boolean;
|
|
455
|
-
}, "key" | keyof
|
|
368
|
+
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
456
369
|
heading?: React.ReactNode;
|
|
457
370
|
value?: string;
|
|
458
371
|
forceMount?: boolean;
|
|
459
|
-
} &
|
|
372
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
460
373
|
/**
|
|
461
374
|
* The item component for the Command component.
|
|
462
375
|
*
|
|
@@ -464,11 +377,11 @@ declare const Command: {
|
|
|
464
377
|
*
|
|
465
378
|
* @example
|
|
466
379
|
* ```tsx
|
|
467
|
-
* <Command.
|
|
468
|
-
* <Command.
|
|
380
|
+
* <Command.DialogRoot open={open} onOpenChange={setOpen}>
|
|
381
|
+
* <Command.DialogTrigger asChild>
|
|
469
382
|
* <Button type="button">Open Command Palette</Button>
|
|
470
|
-
* </Command.
|
|
471
|
-
* <Command.
|
|
383
|
+
* </Command.DialogTrigger>
|
|
384
|
+
* <Command.DialogContent>
|
|
472
385
|
* <Command.Input placeholder="Type a command or search..." />
|
|
473
386
|
* <Command.List>
|
|
474
387
|
* <Command.Empty>No results found.</Command.Empty>
|
|
@@ -485,23 +398,23 @@ declare const Command: {
|
|
|
485
398
|
* </Command.Item>
|
|
486
399
|
* </Command.Group>
|
|
487
400
|
* </Command.List>
|
|
488
|
-
* </Command.
|
|
489
|
-
* </Command.
|
|
401
|
+
* </Command.DialogContent>
|
|
402
|
+
* </Command.DialogRoot>
|
|
490
403
|
* ```
|
|
491
404
|
*/
|
|
492
|
-
readonly Item:
|
|
405
|
+
readonly Item: import("react").ForwardRefExoticComponent<Omit<{
|
|
493
406
|
children?: React.ReactNode;
|
|
494
|
-
} & Omit<Pick<Pick<
|
|
407
|
+
} & Omit<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
495
408
|
ref?: React.Ref<HTMLDivElement>;
|
|
496
409
|
} & {
|
|
497
410
|
asChild?: boolean;
|
|
498
|
-
}, "key" | keyof
|
|
411
|
+
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "disabled" | "onSelect"> & {
|
|
499
412
|
disabled?: boolean;
|
|
500
413
|
onSelect?: (value: string) => void;
|
|
501
414
|
value?: string;
|
|
502
415
|
keywords?: string[];
|
|
503
416
|
forceMount?: boolean;
|
|
504
|
-
} &
|
|
417
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
505
418
|
/**
|
|
506
419
|
* The shortcut component for the Command component.
|
|
507
420
|
*
|
|
@@ -509,11 +422,11 @@ declare const Command: {
|
|
|
509
422
|
*
|
|
510
423
|
* @example
|
|
511
424
|
* ```tsx
|
|
512
|
-
* <Command.
|
|
513
|
-
* <Command.
|
|
425
|
+
* <Command.DialogRoot open={open} onOpenChange={setOpen}>
|
|
426
|
+
* <Command.DialogTrigger asChild>
|
|
514
427
|
* <Button type="button">Open Command Palette</Button>
|
|
515
|
-
* </Command.
|
|
516
|
-
* <Command.
|
|
428
|
+
* </Command.DialogTrigger>
|
|
429
|
+
* <Command.DialogContent>
|
|
517
430
|
* <Command.Input placeholder="Type a command or search..." />
|
|
518
431
|
* <Command.List>
|
|
519
432
|
* <Command.Empty>No results found.</Command.Empty>
|
|
@@ -530,11 +443,11 @@ declare const Command: {
|
|
|
530
443
|
* </Command.Item>
|
|
531
444
|
* </Command.Group>
|
|
532
445
|
* </Command.List>
|
|
533
|
-
* </Command.
|
|
534
|
-
* </Command.
|
|
446
|
+
* </Command.DialogContent>
|
|
447
|
+
* </Command.DialogRoot>
|
|
535
448
|
* ```
|
|
536
449
|
*/
|
|
537
|
-
readonly Shortcut:
|
|
450
|
+
readonly Shortcut: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
538
451
|
/**
|
|
539
452
|
* The separator component for the Command component.
|
|
540
453
|
*
|
|
@@ -542,11 +455,11 @@ declare const Command: {
|
|
|
542
455
|
*
|
|
543
456
|
* @example
|
|
544
457
|
* ```tsx
|
|
545
|
-
* <Command.
|
|
546
|
-
* <Command.
|
|
458
|
+
* <Command.DialogRoot open={open} onOpenChange={setOpen}>
|
|
459
|
+
* <Command.DialogTrigger asChild>
|
|
547
460
|
* <Button type="button">Open Command Palette</Button>
|
|
548
|
-
* </Command.
|
|
549
|
-
* <Command.
|
|
461
|
+
* </Command.DialogTrigger>
|
|
462
|
+
* <Command.DialogContent>
|
|
550
463
|
* <Command.Input placeholder="Type a command or search..." />
|
|
551
464
|
* <Command.List>
|
|
552
465
|
* <Command.Empty>No results found.</Command.Empty>
|
|
@@ -563,17 +476,17 @@ declare const Command: {
|
|
|
563
476
|
* </Command.Item>
|
|
564
477
|
* </Command.Group>
|
|
565
478
|
* </Command.List>
|
|
566
|
-
* </Command.
|
|
567
|
-
* </Command.
|
|
479
|
+
* </Command.DialogContent>
|
|
480
|
+
* </Command.DialogRoot>
|
|
568
481
|
* ```
|
|
569
482
|
*/
|
|
570
|
-
readonly Separator:
|
|
483
|
+
readonly Separator: import("react").ForwardRefExoticComponent<Omit<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
571
484
|
ref?: React.Ref<HTMLDivElement>;
|
|
572
485
|
} & {
|
|
573
486
|
asChild?: boolean;
|
|
574
|
-
}, "key" | keyof
|
|
487
|
+
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
575
488
|
alwaysRender?: boolean;
|
|
576
|
-
} &
|
|
489
|
+
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
577
490
|
};
|
|
578
491
|
//#endregion
|
|
579
492
|
//#region src/components/command/meta-key.d.ts
|
|
@@ -587,7 +500,7 @@ type Props = Omit<ComponentProps<"kbd">, "children">;
|
|
|
587
500
|
declare function MetaKey({
|
|
588
501
|
className,
|
|
589
502
|
...props
|
|
590
|
-
}: Props):
|
|
503
|
+
}: Props): import("react/jsx-runtime").JSX.Element;
|
|
591
504
|
//#endregion
|
|
592
505
|
export { Command, MetaKey, useCommandState };
|
|
593
506
|
//# sourceMappingURL=command.d.ts.map
|
package/dist/command.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./cx-
|
|
1
|
+
import{t as e}from"./cx-CBSnSC36.js";import{n as t}from"./separator-Bqjy77rG.js";import{t as n}from"./dialog-Dn-brQBw.js";import{t as r}from"./kbd-Bv6tefdB.js";import{forwardRef as i,useEffect as a,useState as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{MagnifyingGlassIcon as l}from"@phosphor-icons/react/MagnifyingGlass";import{Command as u,useCommandState as d}from"cmdk";const f=i(({className:t,...n},r)=>s(u,{ref:r,"data-slot":`command`,className:e(`bg-popover flex h-full w-full flex-col overflow-hidden rounded-md`,t),...n}));f.displayName=`Command`;const p=({children:t,className:r,description:i=`Search for a command to run...`,filter:a,shouldFilter:o,showCloseButton:l=!0,title:u=`Command Palette`})=>c(n.Content,{className:e(`overflow-hidden p-0 relative`,r),children:[c(n.Header,{className:`sr-only absolute`,children:[s(n.Title,{children:u}),s(n.Description,{children:i})]}),s(f,{className:`**:data-[slot=command-input-wrapper]:h-12 **:[[cmdk-input]]:h-12 **:data-[slot=command-group]:px-2 **:data-[slot=command-list]:pb-1`,filter:a,shouldFilter:o,children:t}),l&&s(`div`,{className:`absolute top-1.5 right-1.5`,children:s(n.CloseIconButton,{})})]});p.displayName=`CommandDialogContent`;const m=i(({className:t,...n},r)=>c(`div`,{ref:r,"data-slot":`command-input-wrapper`,className:`flex h-9 items-center gap-2 border-b border-popover px-3`,children:[s(l,{className:`size-5 shrink-0 opacity-50`}),s(u.Input,{"data-slot":`command-input`,className:e(`placeholder:text-muted flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50`,t),...n})]}));m.displayName=`CommandInput`;const h=i(({className:t,...n},r)=>s(u.List,{ref:r,"data-slot":`command-list`,className:e(`max-h-75 scroll-py-1 overflow-x-hidden overflow-y-auto scrollbar`,t),...n}));h.displayName=`CommandList`;const g=i(({className:t,...n},r)=>s(u.Empty,{ref:r,"data-slot":`command-empty`,className:e(`py-6 text-center text-sm`,t),...n}));g.displayName=`CommandEmpty`;const _=i(({className:t,...n},r)=>s(u.Group,{ref:r,"data-slot":`command-group`,className:e(`**:[[cmdk-group-heading]]:text-muted overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium`,t),...n}));_.displayName=`CommandGroup`;const v=i(({className:n,...r},i)=>s(u.Separator,{ref:i,"data-slot":`command-separator`,asChild:!0,...r,children:s(t,{className:e(`-mx-1 my-1 w-auto`,n)})}));v.displayName=`CommandSeparator`;const y=i(({className:t,...n},r)=>s(u.Item,{ref:r,"data-slot":`command-item`,className:e(`data-[selected=true]:bg-active-menu-item [&_svg:not([class*='text-'])]:text-muted relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-5`,t),...n}));y.displayName=`CommandItem`;const b=i(({className:t,...n},r)=>s(`span`,{ref:r,"data-slot":`command-shortcut`,className:e(`text-muted ml-auto text-xs tracking-widest`,t),...n}));b.displayName=`CommandShortcut`;const x={Root:f,DialogRoot:n.Root,DialogTrigger:n.Trigger,DialogContent:p,Input:m,List:h,Empty:g,Group:_,Item:y,Shortcut:b,Separator:v};function S({className:t,...n}){let[i,l]=o(`⌃`);a(()=>{l(w())},[]);let u=i===`⌘`?`Command`:`Control`;return c(r,{...n,suppressHydrationWarning:!0,"data-slot":`meta-key`,className:e(i===`⌃`&&`font-medium`,t),children:[s(`span`,{className:`sr-only`,children:u}),i]})}function C(e){return`userAgentData`in e}function w(){if(typeof navigator>`u`)return`⌃`;let e=``;return C(navigator)&&(e=navigator.userAgentData.platform??``),e||=navigator.platform||navigator.userAgent||``,/mac|iphone|ipad|ipod/i.test(e)?`⌘`:`⌃`}export{x as Command,S as MetaKey,d as useCommandState};
|
|
2
2
|
//# sourceMappingURL=command.js.map
|