@choice-ui/command 0.0.4 → 0.0.5
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/index.js +15 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1163,7 +1163,17 @@ var CommandItem = memo(
|
|
|
1163
1163
|
);
|
|
1164
1164
|
CommandItem.displayName = "CommandItem";
|
|
1165
1165
|
var CommandList = forwardRef((props, forwardedRef) => {
|
|
1166
|
-
const {
|
|
1166
|
+
const {
|
|
1167
|
+
children,
|
|
1168
|
+
className,
|
|
1169
|
+
label = "Suggestions",
|
|
1170
|
+
hoverBoundary = "none",
|
|
1171
|
+
scrollbarMode = "padding-b",
|
|
1172
|
+
orientation,
|
|
1173
|
+
variant,
|
|
1174
|
+
type,
|
|
1175
|
+
...rest
|
|
1176
|
+
} = props;
|
|
1167
1177
|
const ref = useRef(null);
|
|
1168
1178
|
const height = useRef(null);
|
|
1169
1179
|
const selectedItemId = useCommandState((state) => state.selectedItemId);
|
|
@@ -1190,9 +1200,11 @@ var CommandList = forwardRef((props, forwardedRef) => {
|
|
|
1190
1200
|
return /* @__PURE__ */ jsx(
|
|
1191
1201
|
ScrollArea,
|
|
1192
1202
|
{
|
|
1193
|
-
variant: context.variant,
|
|
1203
|
+
variant: variant ?? context.variant,
|
|
1194
1204
|
hoverBoundary,
|
|
1195
|
-
|
|
1205
|
+
scrollbarMode,
|
|
1206
|
+
orientation,
|
|
1207
|
+
type,
|
|
1196
1208
|
children: /* @__PURE__ */ jsx(
|
|
1197
1209
|
ScrollArea.Viewport,
|
|
1198
1210
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choice-ui/command",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "A command palette component for quick actions, search, and keyboard navigation",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"usehooks-ts": "^3.1.0",
|
|
23
23
|
"@choice-ui/shared": "^0.0.1",
|
|
24
|
-
"@choice-ui/text-field": "^0.0.
|
|
25
|
-
"@choice-ui/kbd": "^0.0.
|
|
26
|
-
"@choice-ui/scroll-area": "^0.0.
|
|
27
|
-
"@choice-ui/tabs": "^0.0.
|
|
24
|
+
"@choice-ui/text-field": "^0.0.7",
|
|
25
|
+
"@choice-ui/kbd": "^0.0.4",
|
|
26
|
+
"@choice-ui/scroll-area": "^0.0.7",
|
|
27
|
+
"@choice-ui/tabs": "^0.0.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/react": "^18.3.12",
|