feat: migrate Pagination Header and InputOTP with field and event regressions
This commit is contained in:
@@ -1167,3 +1167,65 @@ export const toolbarVariants = tv({
|
||||
});
|
||||
|
||||
export type ToolbarVariants = VariantProps<typeof toolbarVariants>;
|
||||
|
||||
export const paginationVariants = tv({
|
||||
defaultVariants: {
|
||||
size: "md",
|
||||
},
|
||||
slots: {
|
||||
base: "hv-pagination",
|
||||
content: "hv-pagination__content",
|
||||
ellipsis: "hv-pagination__ellipsis",
|
||||
item: "hv-pagination__item",
|
||||
link: "hv-pagination__link",
|
||||
summary: "hv-pagination__summary",
|
||||
},
|
||||
variants: {
|
||||
size: {
|
||||
lg: {
|
||||
base: "hv-pagination--lg",
|
||||
},
|
||||
md: {
|
||||
base: "hv-pagination--md",
|
||||
},
|
||||
sm: {
|
||||
base: "hv-pagination--sm",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type PaginationVariants = VariantProps<typeof paginationVariants>;
|
||||
|
||||
export const headerVariants = tv({
|
||||
base: "hv-header",
|
||||
});
|
||||
|
||||
export type HeaderVariants = VariantProps<typeof headerVariants>;
|
||||
|
||||
export const inputOTPVariants = tv({
|
||||
defaultVariants: {
|
||||
variant: "primary",
|
||||
},
|
||||
slots: {
|
||||
base: "hv-input-otp",
|
||||
caret: "hv-input-otp__caret",
|
||||
group: "hv-input-otp__group",
|
||||
input: "hv-input-otp__input",
|
||||
separator: "hv-input-otp__separator",
|
||||
slot: "hv-input-otp__slot",
|
||||
slotValue: "hv-input-otp__slot-value",
|
||||
},
|
||||
variants: {
|
||||
variant: {
|
||||
primary: {
|
||||
base: "hv-input-otp--primary",
|
||||
},
|
||||
secondary: {
|
||||
base: "hv-input-otp--secondary",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type InputOTPVariants = VariantProps<typeof inputOTPVariants>;
|
||||
|
||||
Reference in New Issue
Block a user