feat: migrate NumberField with form integration and docs
This commit is contained in:
@@ -1167,3 +1167,36 @@ export const toolbarVariants = tv({
|
||||
});
|
||||
|
||||
export type ToolbarVariants = VariantProps<typeof toolbarVariants>;
|
||||
|
||||
export const numberFieldVariants = tv({
|
||||
defaultVariants: {
|
||||
fullWidth: false,
|
||||
variant: "primary",
|
||||
},
|
||||
slots: {
|
||||
base: "hv-number-field",
|
||||
decrementButton: "hv-number-field__decrement-button",
|
||||
group: "hv-number-field__group",
|
||||
incrementButton: "hv-number-field__increment-button",
|
||||
input: "hv-number-field__input",
|
||||
},
|
||||
variants: {
|
||||
fullWidth: {
|
||||
false: {},
|
||||
true: {
|
||||
base: "hv-number-field--full-width",
|
||||
group: "hv-number-field__group--full-width",
|
||||
},
|
||||
},
|
||||
variant: {
|
||||
primary: {
|
||||
base: "hv-number-field--primary",
|
||||
},
|
||||
secondary: {
|
||||
base: "hv-number-field--secondary",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type NumberFieldVariants = VariantProps<typeof numberFieldVariants>;
|
||||
|
||||
Reference in New Issue
Block a user