@choice-ui/command 0.0.6 → 0.0.7
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.d.ts +3 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,9 @@ interface CommandItemProps extends Omit<HTMLProps<HTMLDivElement>, "onSelect"> {
|
|
|
58
58
|
interface CommandListProps extends ScrollAreaProps {
|
|
59
59
|
children: React.ReactNode;
|
|
60
60
|
className?: string;
|
|
61
|
+
classNames?: {
|
|
62
|
+
content?: string;
|
|
63
|
+
};
|
|
61
64
|
label?: string;
|
|
62
65
|
}
|
|
63
66
|
|
package/dist/index.js
CHANGED
|
@@ -1179,6 +1179,9 @@ var CommandList = forwardRef((props, forwardedRef) => {
|
|
|
1179
1179
|
label = "Suggestions",
|
|
1180
1180
|
hoverBoundary = "none",
|
|
1181
1181
|
scrollbarMode = "padding-b",
|
|
1182
|
+
classNames = {
|
|
1183
|
+
content: ""
|
|
1184
|
+
},
|
|
1182
1185
|
orientation,
|
|
1183
1186
|
variant,
|
|
1184
1187
|
type,
|
|
@@ -1234,7 +1237,7 @@ var CommandList = forwardRef((props, forwardedRef) => {
|
|
|
1234
1237
|
children: /* @__PURE__ */ jsx(
|
|
1235
1238
|
ScrollArea.Content,
|
|
1236
1239
|
{
|
|
1237
|
-
className: tcx(tv.content()),
|
|
1240
|
+
className: tcx(tv.content(), classNames?.content),
|
|
1238
1241
|
ref: (el) => {
|
|
1239
1242
|
height.current = el;
|
|
1240
1243
|
if (context.listInnerRef) {
|