Skip to content

Commit

Permalink
fix: select.root missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien-ml committed Mar 25, 2023
1 parent 8c48340 commit b507aef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/core/src/multi-select/multi-select-root.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { OverrideComponentProps } from "@kobalte/utils";
import { Component } from "solid-js";

import { AsChildProp } from "../polymorphic";
import {
SelectBase,
SelectBaseItemComponentProps,
Expand Down Expand Up @@ -28,7 +30,8 @@ export interface MultiSelectRootOptions<Option, OptGroup = never>
}

export interface MultiSelectRootProps<Option, OptGroup = never>
extends MultiSelectRootOptions<Option, OptGroup> {}
extends OverrideComponentProps<"div", MultiSelectRootOptions<Option, OptGroup>>,
AsChildProp {}

/**
* Displays a list of options for the user to pick multiples from — triggered by a button.
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/select/select-base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
createGenerateId,
focusWithoutScrolling,
mergeDefaultProps,
OverrideComponentProps,
ValidationState,
} from "@kobalte/utils";
import {
Expand Down Expand Up @@ -186,7 +187,8 @@ export interface SelectBaseOptions<Option, OptGroup = never>
}

export interface SelectBaseProps<Option, OptGroup = never>
extends SelectBaseOptions<Option, OptGroup> {}
extends OverrideComponentProps<"div", SelectBaseOptions<Option, OptGroup>>,
AsChildProp {}

/**
* Base component for a select, provide context for its children.
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/select/select-root.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { OverrideComponentProps } from "@kobalte/utils";
import { Component, splitProps } from "solid-js";

import { AsChildProp } from "../polymorphic";
import { CollectionNode, createControllableSetSignal } from "../primitives";
import {
SelectBase,
Expand Down Expand Up @@ -54,7 +56,8 @@ export interface SelectRootOptions<Option, OptGroup = never>
}

export interface SelectRootProps<Option, OptGroup = never>
extends SelectRootOptions<Option, OptGroup> {}
extends OverrideComponentProps<"div", SelectRootOptions<Option, OptGroup>>,
AsChildProp {}

/**
* Displays a list of options for the user to pick from — triggered by a button.
Expand Down

0 comments on commit b507aef

Please sign in to comment.