mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(system-rsc): missing StringToBoolean<keyof V[K]>[] (#3559)
* fix(navbar): fixed the height when style h-full * fix(navbar): fixed the height when style h-full * fix(core): string[] accepted by compoundVariants.variant * Delete .changeset/brown-days-applaud.md * chore(changeset): revise changeset message * fix(system-rsc): incorrect VariantValue typing and typo in Options --------- Co-authored-by: WK Wong <wingkwong.code@gmail.com>
This commit is contained in:
parent
a254abf535
commit
44e89a0779
5
.changeset/nice-beans-thank.md
Normal file
5
.changeset/nice-beans-thank.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@nextui-org/system-rsc": patch
|
||||
---
|
||||
|
||||
added missing `StringToBoolean<keyof V[K]>[]` (#3530)
|
||||
@ -33,6 +33,7 @@ type ComposeVariants<CP, S> = SuggestedVariants<CP, S> | Variants<S>;
|
||||
type VariantValue<V, SV> = {
|
||||
[K in keyof V | keyof SV]?:
|
||||
| (K extends keyof V ? StringToBoolean<keyof V[K]> : never)
|
||||
| (K extends keyof V ? StringToBoolean<keyof V[K]>[] : never)
|
||||
| (K extends keyof SV
|
||||
? ValidateSubtype<SV[K], object> extends "true"
|
||||
? keyof OmitUndefined<SV[K]>
|
||||
@ -47,7 +48,7 @@ type CompoundVariants<V, SV> = Array<VariantValue<V, SV> & ClassProp<ClassValue>
|
||||
type Options = {
|
||||
/**
|
||||
* Whether to merge the class names with `tailwind-merge` library.
|
||||
* It's avoid to have duplicate tailwind classes. (Recommended)
|
||||
* It avoids to have duplicate tailwind classes. (Recommended)
|
||||
* @see https://github.com/dcastil/tailwind-merge/blob/v1.8.1/README.md
|
||||
* @default true
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user