@kopexa/command 2.0.0 → 4.0.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/{chunk-7JHTPQ5B.mjs → chunk-3J7OJQ42.mjs} +40 -1
- package/dist/{chunk-JGIYTKFT.mjs → chunk-XJU5WS6E.mjs} +8 -2
- package/dist/command.d.mts +7 -1
- package/dist/command.d.ts +7 -1
- package/dist/command.js +44 -2
- package/dist/command.mjs +9 -3
- package/dist/index.js +40 -1
- package/dist/index.mjs +2 -2
- package/dist/namespace.d.mts +3 -3
- package/dist/namespace.d.ts +3 -3
- package/dist/namespace.js +44 -2
- package/dist/namespace.mjs +10 -4
- package/package.json +5 -5
|
@@ -109,6 +109,42 @@ function CommandShortcut(props) {
|
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
|
+
function CommandHeader(props) {
|
|
113
|
+
const { className, ...restProps } = props;
|
|
114
|
+
const styles = command();
|
|
115
|
+
return /* @__PURE__ */ jsx(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
"data-slot": "command-header",
|
|
119
|
+
className: styles.header({ className }),
|
|
120
|
+
...restProps
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
function CommandTitle(props) {
|
|
125
|
+
const { className, ...restProps } = props;
|
|
126
|
+
const styles = command();
|
|
127
|
+
return /* @__PURE__ */ jsx(
|
|
128
|
+
"div",
|
|
129
|
+
{
|
|
130
|
+
"data-slot": "command-title",
|
|
131
|
+
className: styles.title({ className }),
|
|
132
|
+
...restProps
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
function CommandDescription(props) {
|
|
137
|
+
const { className, ...restProps } = props;
|
|
138
|
+
const styles = command();
|
|
139
|
+
return /* @__PURE__ */ jsx(
|
|
140
|
+
"p",
|
|
141
|
+
{
|
|
142
|
+
"data-slot": "command-description",
|
|
143
|
+
className: styles.description({ className }),
|
|
144
|
+
...restProps
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
}
|
|
112
148
|
|
|
113
149
|
export {
|
|
114
150
|
__export,
|
|
@@ -119,5 +155,8 @@ export {
|
|
|
119
155
|
CommandGroup,
|
|
120
156
|
CommandSeparator,
|
|
121
157
|
CommandItem,
|
|
122
|
-
CommandShortcut
|
|
158
|
+
CommandShortcut,
|
|
159
|
+
CommandHeader,
|
|
160
|
+
CommandTitle,
|
|
161
|
+
CommandDescription
|
|
123
162
|
};
|
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
+
CommandDescription,
|
|
3
4
|
CommandEmpty,
|
|
4
5
|
CommandGroup,
|
|
6
|
+
CommandHeader,
|
|
5
7
|
CommandInput,
|
|
6
8
|
CommandItem,
|
|
7
9
|
CommandList,
|
|
8
10
|
CommandRoot,
|
|
9
11
|
CommandSeparator,
|
|
10
12
|
CommandShortcut,
|
|
13
|
+
CommandTitle,
|
|
11
14
|
__export
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3J7OJQ42.mjs";
|
|
13
16
|
|
|
14
17
|
// src/namespace.ts
|
|
15
18
|
var namespace_exports = {};
|
|
16
19
|
__export(namespace_exports, {
|
|
20
|
+
Description: () => CommandDescription,
|
|
17
21
|
Empty: () => CommandEmpty,
|
|
18
22
|
Group: () => CommandGroup,
|
|
23
|
+
Header: () => CommandHeader,
|
|
19
24
|
Input: () => CommandInput,
|
|
20
25
|
Item: () => CommandItem,
|
|
21
26
|
List: () => CommandList,
|
|
22
27
|
Root: () => CommandRoot,
|
|
23
28
|
Separator: () => CommandSeparator,
|
|
24
|
-
Shortcut: () => CommandShortcut
|
|
29
|
+
Shortcut: () => CommandShortcut,
|
|
30
|
+
Title: () => CommandTitle
|
|
25
31
|
});
|
|
26
32
|
|
|
27
33
|
export {
|
package/dist/command.d.mts
CHANGED
|
@@ -18,5 +18,11 @@ type CommandItemProps = ComponentProps<typeof Command.Item>;
|
|
|
18
18
|
declare function CommandItem(props: CommandItemProps): react_jsx_runtime.JSX.Element;
|
|
19
19
|
type CommandShortcutProps = ComponentProps<"span">;
|
|
20
20
|
declare function CommandShortcut(props: CommandShortcutProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
type CommandHeaderProps = ComponentProps<"div">;
|
|
22
|
+
declare function CommandHeader(props: CommandHeaderProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
type CommandTitleProps = ComponentProps<"div">;
|
|
24
|
+
declare function CommandTitle(props: CommandTitleProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
type CommandDescriptionProps = ComponentProps<"p">;
|
|
26
|
+
declare function CommandDescription(props: CommandDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
21
27
|
|
|
22
|
-
export { CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, CommandRoot, type CommandRootProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps };
|
|
28
|
+
export { CommandDescription, type CommandDescriptionProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandHeader, type CommandHeaderProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, CommandRoot, type CommandRootProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, CommandTitle, type CommandTitleProps };
|
package/dist/command.d.ts
CHANGED
|
@@ -18,5 +18,11 @@ type CommandItemProps = ComponentProps<typeof Command.Item>;
|
|
|
18
18
|
declare function CommandItem(props: CommandItemProps): react_jsx_runtime.JSX.Element;
|
|
19
19
|
type CommandShortcutProps = ComponentProps<"span">;
|
|
20
20
|
declare function CommandShortcut(props: CommandShortcutProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
type CommandHeaderProps = ComponentProps<"div">;
|
|
22
|
+
declare function CommandHeader(props: CommandHeaderProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
type CommandTitleProps = ComponentProps<"div">;
|
|
24
|
+
declare function CommandTitle(props: CommandTitleProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
type CommandDescriptionProps = ComponentProps<"p">;
|
|
26
|
+
declare function CommandDescription(props: CommandDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
21
27
|
|
|
22
|
-
export { CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, CommandRoot, type CommandRootProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps };
|
|
28
|
+
export { CommandDescription, type CommandDescriptionProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandHeader, type CommandHeaderProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, CommandRoot, type CommandRootProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, CommandTitle, type CommandTitleProps };
|
package/dist/command.js
CHANGED
|
@@ -21,14 +21,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/command.tsx
|
|
22
22
|
var command_exports = {};
|
|
23
23
|
__export(command_exports, {
|
|
24
|
+
CommandDescription: () => CommandDescription,
|
|
24
25
|
CommandEmpty: () => CommandEmpty,
|
|
25
26
|
CommandGroup: () => CommandGroup,
|
|
27
|
+
CommandHeader: () => CommandHeader,
|
|
26
28
|
CommandInput: () => CommandInput,
|
|
27
29
|
CommandItem: () => CommandItem,
|
|
28
30
|
CommandList: () => CommandList,
|
|
29
31
|
CommandRoot: () => CommandRoot,
|
|
30
32
|
CommandSeparator: () => CommandSeparator,
|
|
31
|
-
CommandShortcut: () => CommandShortcut
|
|
33
|
+
CommandShortcut: () => CommandShortcut,
|
|
34
|
+
CommandTitle: () => CommandTitle
|
|
32
35
|
});
|
|
33
36
|
module.exports = __toCommonJS(command_exports);
|
|
34
37
|
var import_icons = require("@kopexa/icons");
|
|
@@ -134,14 +137,53 @@ function CommandShortcut(props) {
|
|
|
134
137
|
}
|
|
135
138
|
);
|
|
136
139
|
}
|
|
140
|
+
function CommandHeader(props) {
|
|
141
|
+
const { className, ...restProps } = props;
|
|
142
|
+
const styles = (0, import_theme.command)();
|
|
143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
144
|
+
"div",
|
|
145
|
+
{
|
|
146
|
+
"data-slot": "command-header",
|
|
147
|
+
className: styles.header({ className }),
|
|
148
|
+
...restProps
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
function CommandTitle(props) {
|
|
153
|
+
const { className, ...restProps } = props;
|
|
154
|
+
const styles = (0, import_theme.command)();
|
|
155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
156
|
+
"div",
|
|
157
|
+
{
|
|
158
|
+
"data-slot": "command-title",
|
|
159
|
+
className: styles.title({ className }),
|
|
160
|
+
...restProps
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
function CommandDescription(props) {
|
|
165
|
+
const { className, ...restProps } = props;
|
|
166
|
+
const styles = (0, import_theme.command)();
|
|
167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
168
|
+
"p",
|
|
169
|
+
{
|
|
170
|
+
"data-slot": "command-description",
|
|
171
|
+
className: styles.description({ className }),
|
|
172
|
+
...restProps
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
}
|
|
137
176
|
// Annotate the CommonJS export names for ESM import in node:
|
|
138
177
|
0 && (module.exports = {
|
|
178
|
+
CommandDescription,
|
|
139
179
|
CommandEmpty,
|
|
140
180
|
CommandGroup,
|
|
181
|
+
CommandHeader,
|
|
141
182
|
CommandInput,
|
|
142
183
|
CommandItem,
|
|
143
184
|
CommandList,
|
|
144
185
|
CommandRoot,
|
|
145
186
|
CommandSeparator,
|
|
146
|
-
CommandShortcut
|
|
187
|
+
CommandShortcut,
|
|
188
|
+
CommandTitle
|
|
147
189
|
});
|
package/dist/command.mjs
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
+
CommandDescription,
|
|
3
4
|
CommandEmpty,
|
|
4
5
|
CommandGroup,
|
|
6
|
+
CommandHeader,
|
|
5
7
|
CommandInput,
|
|
6
8
|
CommandItem,
|
|
7
9
|
CommandList,
|
|
8
10
|
CommandRoot,
|
|
9
11
|
CommandSeparator,
|
|
10
|
-
CommandShortcut
|
|
11
|
-
|
|
12
|
+
CommandShortcut,
|
|
13
|
+
CommandTitle
|
|
14
|
+
} from "./chunk-3J7OJQ42.mjs";
|
|
12
15
|
export {
|
|
16
|
+
CommandDescription,
|
|
13
17
|
CommandEmpty,
|
|
14
18
|
CommandGroup,
|
|
19
|
+
CommandHeader,
|
|
15
20
|
CommandInput,
|
|
16
21
|
CommandItem,
|
|
17
22
|
CommandList,
|
|
18
23
|
CommandRoot,
|
|
19
24
|
CommandSeparator,
|
|
20
|
-
CommandShortcut
|
|
25
|
+
CommandShortcut,
|
|
26
|
+
CommandTitle
|
|
21
27
|
};
|
package/dist/index.js
CHANGED
|
@@ -28,14 +28,17 @@ module.exports = __toCommonJS(index_exports);
|
|
|
28
28
|
// src/namespace.ts
|
|
29
29
|
var namespace_exports = {};
|
|
30
30
|
__export(namespace_exports, {
|
|
31
|
+
Description: () => CommandDescription,
|
|
31
32
|
Empty: () => CommandEmpty,
|
|
32
33
|
Group: () => CommandGroup,
|
|
34
|
+
Header: () => CommandHeader,
|
|
33
35
|
Input: () => CommandInput,
|
|
34
36
|
Item: () => CommandItem,
|
|
35
37
|
List: () => CommandList,
|
|
36
38
|
Root: () => CommandRoot,
|
|
37
39
|
Separator: () => CommandSeparator,
|
|
38
|
-
Shortcut: () => CommandShortcut
|
|
40
|
+
Shortcut: () => CommandShortcut,
|
|
41
|
+
Title: () => CommandTitle
|
|
39
42
|
});
|
|
40
43
|
|
|
41
44
|
// src/command.tsx
|
|
@@ -142,6 +145,42 @@ function CommandShortcut(props) {
|
|
|
142
145
|
}
|
|
143
146
|
);
|
|
144
147
|
}
|
|
148
|
+
function CommandHeader(props) {
|
|
149
|
+
const { className, ...restProps } = props;
|
|
150
|
+
const styles = (0, import_theme.command)();
|
|
151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
"data-slot": "command-header",
|
|
155
|
+
className: styles.header({ className }),
|
|
156
|
+
...restProps
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
function CommandTitle(props) {
|
|
161
|
+
const { className, ...restProps } = props;
|
|
162
|
+
const styles = (0, import_theme.command)();
|
|
163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
164
|
+
"div",
|
|
165
|
+
{
|
|
166
|
+
"data-slot": "command-title",
|
|
167
|
+
className: styles.title({ className }),
|
|
168
|
+
...restProps
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
function CommandDescription(props) {
|
|
173
|
+
const { className, ...restProps } = props;
|
|
174
|
+
const styles = (0, import_theme.command)();
|
|
175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
176
|
+
"p",
|
|
177
|
+
{
|
|
178
|
+
"data-slot": "command-description",
|
|
179
|
+
className: styles.description({ className }),
|
|
180
|
+
...restProps
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
145
184
|
// Annotate the CommonJS export names for ESM import in node:
|
|
146
185
|
0 && (module.exports = {
|
|
147
186
|
Command
|
package/dist/index.mjs
CHANGED
package/dist/namespace.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CommandEmpty, CommandEmptyProps, CommandGroup, CommandGroupProps, CommandInput, CommandInputProps, CommandItem, CommandItemProps, CommandList, CommandListProps, CommandRoot, CommandRootProps, CommandSeparator, CommandSeparatorProps, CommandShortcut, CommandShortcutProps } from './command.mjs';
|
|
1
|
+
import { CommandDescription, CommandDescriptionProps, CommandEmpty, CommandEmptyProps, CommandGroup, CommandGroupProps, CommandHeader, CommandHeaderProps, CommandInput, CommandInputProps, CommandItem, CommandItemProps, CommandList, CommandListProps, CommandRoot, CommandRootProps, CommandSeparator, CommandSeparatorProps, CommandShortcut, CommandShortcutProps, CommandTitle, CommandTitleProps } from './command.mjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'cmdk';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
declare namespace namespace {
|
|
7
|
-
export { CommandEmpty as Empty, CommandEmptyProps as EmptyProps, CommandGroup as Group, CommandGroupProps as GroupProps, CommandInput as Input, CommandInputProps as InputProps, CommandItem as Item, CommandItemProps as ItemProps, CommandList as List, CommandListProps as ListProps, CommandRoot as Root, CommandRootProps as RootProps, CommandSeparator as Separator, CommandSeparatorProps as SeparatorProps, CommandShortcut as Shortcut, CommandShortcutProps as ShortcutProps };
|
|
7
|
+
export { CommandDescription as Description, CommandDescriptionProps as DescriptionProps, CommandEmpty as Empty, CommandEmptyProps as EmptyProps, CommandGroup as Group, CommandGroupProps as GroupProps, CommandHeader as Header, CommandHeaderProps as HeaderProps, CommandInput as Input, CommandInputProps as InputProps, CommandItem as Item, CommandItemProps as ItemProps, CommandList as List, CommandListProps as ListProps, CommandRoot as Root, CommandRootProps as RootProps, CommandSeparator as Separator, CommandSeparatorProps as SeparatorProps, CommandShortcut as Shortcut, CommandShortcutProps as ShortcutProps, CommandTitle as Title, CommandTitleProps as TitleProps };
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export { CommandEmpty as Empty, CommandEmptyProps as EmptyProps, CommandGroup as Group, CommandGroupProps as GroupProps, CommandInput as Input, CommandInputProps as InputProps, CommandItem as Item, CommandItemProps as ItemProps, CommandList as List, CommandListProps as ListProps, CommandRoot as Root, CommandRootProps as RootProps, CommandSeparator as Separator, CommandSeparatorProps as SeparatorProps, CommandShortcut as Shortcut, CommandShortcutProps as ShortcutProps, namespace as n };
|
|
10
|
+
export { CommandDescription as Description, CommandDescriptionProps as DescriptionProps, CommandEmpty as Empty, CommandEmptyProps as EmptyProps, CommandGroup as Group, CommandGroupProps as GroupProps, CommandHeader as Header, CommandHeaderProps as HeaderProps, CommandInput as Input, CommandInputProps as InputProps, CommandItem as Item, CommandItemProps as ItemProps, CommandList as List, CommandListProps as ListProps, CommandRoot as Root, CommandRootProps as RootProps, CommandSeparator as Separator, CommandSeparatorProps as SeparatorProps, CommandShortcut as Shortcut, CommandShortcutProps as ShortcutProps, CommandTitle as Title, CommandTitleProps as TitleProps, namespace as n };
|
package/dist/namespace.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CommandEmpty, CommandEmptyProps, CommandGroup, CommandGroupProps, CommandInput, CommandInputProps, CommandItem, CommandItemProps, CommandList, CommandListProps, CommandRoot, CommandRootProps, CommandSeparator, CommandSeparatorProps, CommandShortcut, CommandShortcutProps } from './command.js';
|
|
1
|
+
import { CommandDescription, CommandDescriptionProps, CommandEmpty, CommandEmptyProps, CommandGroup, CommandGroupProps, CommandHeader, CommandHeaderProps, CommandInput, CommandInputProps, CommandItem, CommandItemProps, CommandList, CommandListProps, CommandRoot, CommandRootProps, CommandSeparator, CommandSeparatorProps, CommandShortcut, CommandShortcutProps, CommandTitle, CommandTitleProps } from './command.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'cmdk';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
declare namespace namespace {
|
|
7
|
-
export { CommandEmpty as Empty, CommandEmptyProps as EmptyProps, CommandGroup as Group, CommandGroupProps as GroupProps, CommandInput as Input, CommandInputProps as InputProps, CommandItem as Item, CommandItemProps as ItemProps, CommandList as List, CommandListProps as ListProps, CommandRoot as Root, CommandRootProps as RootProps, CommandSeparator as Separator, CommandSeparatorProps as SeparatorProps, CommandShortcut as Shortcut, CommandShortcutProps as ShortcutProps };
|
|
7
|
+
export { CommandDescription as Description, CommandDescriptionProps as DescriptionProps, CommandEmpty as Empty, CommandEmptyProps as EmptyProps, CommandGroup as Group, CommandGroupProps as GroupProps, CommandHeader as Header, CommandHeaderProps as HeaderProps, CommandInput as Input, CommandInputProps as InputProps, CommandItem as Item, CommandItemProps as ItemProps, CommandList as List, CommandListProps as ListProps, CommandRoot as Root, CommandRootProps as RootProps, CommandSeparator as Separator, CommandSeparatorProps as SeparatorProps, CommandShortcut as Shortcut, CommandShortcutProps as ShortcutProps, CommandTitle as Title, CommandTitleProps as TitleProps };
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export { CommandEmpty as Empty, CommandEmptyProps as EmptyProps, CommandGroup as Group, CommandGroupProps as GroupProps, CommandInput as Input, CommandInputProps as InputProps, CommandItem as Item, CommandItemProps as ItemProps, CommandList as List, CommandListProps as ListProps, CommandRoot as Root, CommandRootProps as RootProps, CommandSeparator as Separator, CommandSeparatorProps as SeparatorProps, CommandShortcut as Shortcut, CommandShortcutProps as ShortcutProps, namespace as n };
|
|
10
|
+
export { CommandDescription as Description, CommandDescriptionProps as DescriptionProps, CommandEmpty as Empty, CommandEmptyProps as EmptyProps, CommandGroup as Group, CommandGroupProps as GroupProps, CommandHeader as Header, CommandHeaderProps as HeaderProps, CommandInput as Input, CommandInputProps as InputProps, CommandItem as Item, CommandItemProps as ItemProps, CommandList as List, CommandListProps as ListProps, CommandRoot as Root, CommandRootProps as RootProps, CommandSeparator as Separator, CommandSeparatorProps as SeparatorProps, CommandShortcut as Shortcut, CommandShortcutProps as ShortcutProps, CommandTitle as Title, CommandTitleProps as TitleProps, namespace as n };
|
package/dist/namespace.js
CHANGED
|
@@ -21,14 +21,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/namespace.ts
|
|
22
22
|
var namespace_exports = {};
|
|
23
23
|
__export(namespace_exports, {
|
|
24
|
+
Description: () => CommandDescription,
|
|
24
25
|
Empty: () => CommandEmpty,
|
|
25
26
|
Group: () => CommandGroup,
|
|
27
|
+
Header: () => CommandHeader,
|
|
26
28
|
Input: () => CommandInput,
|
|
27
29
|
Item: () => CommandItem,
|
|
28
30
|
List: () => CommandList,
|
|
29
31
|
Root: () => CommandRoot,
|
|
30
32
|
Separator: () => CommandSeparator,
|
|
31
|
-
Shortcut: () => CommandShortcut
|
|
33
|
+
Shortcut: () => CommandShortcut,
|
|
34
|
+
Title: () => CommandTitle
|
|
32
35
|
});
|
|
33
36
|
module.exports = __toCommonJS(namespace_exports);
|
|
34
37
|
|
|
@@ -136,14 +139,53 @@ function CommandShortcut(props) {
|
|
|
136
139
|
}
|
|
137
140
|
);
|
|
138
141
|
}
|
|
142
|
+
function CommandHeader(props) {
|
|
143
|
+
const { className, ...restProps } = props;
|
|
144
|
+
const styles = (0, import_theme.command)();
|
|
145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
146
|
+
"div",
|
|
147
|
+
{
|
|
148
|
+
"data-slot": "command-header",
|
|
149
|
+
className: styles.header({ className }),
|
|
150
|
+
...restProps
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
function CommandTitle(props) {
|
|
155
|
+
const { className, ...restProps } = props;
|
|
156
|
+
const styles = (0, import_theme.command)();
|
|
157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
158
|
+
"div",
|
|
159
|
+
{
|
|
160
|
+
"data-slot": "command-title",
|
|
161
|
+
className: styles.title({ className }),
|
|
162
|
+
...restProps
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
function CommandDescription(props) {
|
|
167
|
+
const { className, ...restProps } = props;
|
|
168
|
+
const styles = (0, import_theme.command)();
|
|
169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
170
|
+
"p",
|
|
171
|
+
{
|
|
172
|
+
"data-slot": "command-description",
|
|
173
|
+
className: styles.description({ className }),
|
|
174
|
+
...restProps
|
|
175
|
+
}
|
|
176
|
+
);
|
|
177
|
+
}
|
|
139
178
|
// Annotate the CommonJS export names for ESM import in node:
|
|
140
179
|
0 && (module.exports = {
|
|
180
|
+
Description,
|
|
141
181
|
Empty,
|
|
142
182
|
Group,
|
|
183
|
+
Header,
|
|
143
184
|
Input,
|
|
144
185
|
Item,
|
|
145
186
|
List,
|
|
146
187
|
Root,
|
|
147
188
|
Separator,
|
|
148
|
-
Shortcut
|
|
189
|
+
Shortcut,
|
|
190
|
+
Title
|
|
149
191
|
});
|
package/dist/namespace.mjs
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-XJU5WS6E.mjs";
|
|
3
3
|
import {
|
|
4
|
+
CommandDescription,
|
|
4
5
|
CommandEmpty,
|
|
5
6
|
CommandGroup,
|
|
7
|
+
CommandHeader,
|
|
6
8
|
CommandInput,
|
|
7
9
|
CommandItem,
|
|
8
10
|
CommandList,
|
|
9
11
|
CommandRoot,
|
|
10
12
|
CommandSeparator,
|
|
11
|
-
CommandShortcut
|
|
12
|
-
|
|
13
|
+
CommandShortcut,
|
|
14
|
+
CommandTitle
|
|
15
|
+
} from "./chunk-3J7OJQ42.mjs";
|
|
13
16
|
export {
|
|
17
|
+
CommandDescription as Description,
|
|
14
18
|
CommandEmpty as Empty,
|
|
15
19
|
CommandGroup as Group,
|
|
20
|
+
CommandHeader as Header,
|
|
16
21
|
CommandInput as Input,
|
|
17
22
|
CommandItem as Item,
|
|
18
23
|
CommandList as List,
|
|
19
24
|
CommandRoot as Root,
|
|
20
25
|
CommandSeparator as Separator,
|
|
21
|
-
CommandShortcut as Shortcut
|
|
26
|
+
CommandShortcut as Shortcut,
|
|
27
|
+
CommandTitle as Title
|
|
22
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/command",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Fast, composable command menu",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"command"
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"motion": ">=12.23.6",
|
|
29
29
|
"react": ">=19.0.0-rc.0",
|
|
30
30
|
"react-dom": ">=19.0.0-rc.0",
|
|
31
|
-
"@kopexa/theme": "1.
|
|
31
|
+
"@kopexa/theme": "1.4.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"cmdk": "^1.1.1",
|
|
35
|
-
"@kopexa/react-utils": "2.0.
|
|
36
|
-
"@kopexa/shared-utils": "1.1.
|
|
37
|
-
"@kopexa/icons": "
|
|
35
|
+
"@kopexa/react-utils": "2.0.1",
|
|
36
|
+
"@kopexa/shared-utils": "1.1.1",
|
|
37
|
+
"@kopexa/icons": "7.0.0"
|
|
38
38
|
},
|
|
39
39
|
"clean-package": "../../../clean-package.config.json",
|
|
40
40
|
"module": "dist/index.mjs",
|