Skip to content

Commit

Permalink
fix: corrected ThemeProps type references
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomoyamada committed Dec 27, 2023
1 parent 6bb7f90 commit 7a9b78a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
9 changes: 9 additions & 0 deletions .changeset/honest-brooms-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@yamada-ui/native-select": patch
"@yamada-ui/autocomplete": patch
"@yamada-ui/native-table": patch
"@yamada-ui/select": patch
"@yamada-ui/slider": patch
---

Fixed to correct `ThemeProps`.
2 changes: 1 addition & 1 deletion packages/components/autocomplete/src/autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type AutocompleteOptions = {
portalProps?: Omit<PortalProps, "children">
}

export type AutocompleteProps = ThemeProps<"Select"> &
export type AutocompleteProps = ThemeProps<"Autocomplete"> &
Omit<
UseAutocompleteProps<string>,
"maxSelectedValues" | "omitSelectedValues"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type MultiAutocompleteOptions = {
portalProps?: Omit<PortalProps, "children">
}

export type MultiAutocompleteProps = ThemeProps<"Select"> &
export type MultiAutocompleteProps = ThemeProps<"MultiAutocomplete"> &
UseAutocompleteProps<string[]> &
MultiAutocompleteOptions

Expand Down
2 changes: 1 addition & 1 deletion packages/components/native-select/src/native-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ type NativeSelectOptions = {
}

export type NativeSelectProps = Omit<HTMLUIProps<"select">, "size"> &
ThemeProps<"Select"> &
ThemeProps<"NativeSelect"> &
NativeSelectOptions &
FormControlOptions

Expand Down
2 changes: 1 addition & 1 deletion packages/components/native-table/src/native-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type NativeTableOptions = {
}

export type NativeTableProps = HTMLUIProps<"table"> &
ThemeProps<"Table"> &
ThemeProps<"NativeTable"> &
NativeTableOptions

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/components/select/src/multi-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type MultiSelectOptions = {
portalProps?: Omit<PortalProps, "children">
}

export type MultiSelectProps = ThemeProps<"Select"> &
export type MultiSelectProps = ThemeProps<"MultiSelect"> &
Omit<UseSelectProps<string[]>, "placeholderInOptions" | "isEmpty"> &
MultiSelectOptions

Expand Down
2 changes: 1 addition & 1 deletion packages/components/slider/src/range-slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ export type RangeSliderProps = Omit<
HTMLUIProps<"div">,
keyof UseRangeSliderProps
> &
ThemeProps<"Slider"> &
ThemeProps<"RangeSlider"> &
UseRangeSliderProps &
RangeSliderOptions

Expand Down

0 comments on commit 7a9b78a

Please sign in to comment.