merge: integrate reviewed M30-M32 with NumberField Slider and migration lessons
This commit is contained in:
@@ -1167,7 +1167,6 @@ export const toolbarVariants = tv({
|
||||
});
|
||||
|
||||
export type ToolbarVariants = VariantProps<typeof toolbarVariants>;
|
||||
|
||||
export const paginationVariants = tv({
|
||||
defaultVariants: {
|
||||
size: "md",
|
||||
@@ -1229,3 +1228,48 @@ export const inputOTPVariants = tv({
|
||||
});
|
||||
|
||||
export type InputOTPVariants = VariantProps<typeof inputOTPVariants>;
|
||||
|
||||
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>;
|
||||
|
||||
export const sliderVariants = tv({
|
||||
slots: {
|
||||
base: "hv-slider",
|
||||
fill: "hv-slider__fill",
|
||||
marks: "hv-slider__marks",
|
||||
output: "hv-slider__output",
|
||||
thumb: "hv-slider__thumb",
|
||||
track: "hv-slider__track",
|
||||
},
|
||||
});
|
||||
export type SliderVariants = VariantProps<typeof sliderVariants>;
|
||||
|
||||
Reference in New Issue
Block a user