feat: migrate Select with field, collection and SSR contracts
This commit is contained in:
@@ -1298,3 +1298,37 @@ export const listboxSectionVariants = tv({ base: "hv-list-box-section" });
|
||||
export type ListBoxSectionVariants = VariantProps<
|
||||
typeof listboxSectionVariants
|
||||
>;
|
||||
|
||||
export const selectVariants = tv({
|
||||
defaultVariants: {
|
||||
fullWidth: false,
|
||||
variant: "primary",
|
||||
},
|
||||
slots: {
|
||||
base: "hv-select",
|
||||
clearButton: "hv-select__clear-button",
|
||||
indicator: "hv-select__indicator",
|
||||
popover: "hv-select__popover",
|
||||
trigger: "hv-select__trigger",
|
||||
value: "hv-select__value",
|
||||
},
|
||||
variants: {
|
||||
fullWidth: {
|
||||
false: {},
|
||||
true: {
|
||||
base: "hv-select--full-width",
|
||||
trigger: "hv-select__trigger--full-width",
|
||||
},
|
||||
},
|
||||
variant: {
|
||||
primary: {
|
||||
base: "hv-select--primary",
|
||||
},
|
||||
secondary: {
|
||||
base: "hv-select--secondary",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type SelectVariants = VariantProps<typeof selectVariants>;
|
||||
|
||||
Reference in New Issue
Block a user