feat: migrate Calendar and calendar year picker
This commit is contained in:
@@ -1580,3 +1580,50 @@ export const tableVariants = tv({
|
||||
});
|
||||
|
||||
export type TableVariants = VariantProps<typeof tableVariants>;
|
||||
|
||||
export const calendarVariants = tv({
|
||||
defaultVariants: {},
|
||||
slots: {
|
||||
/** Root calendar container */
|
||||
base: "hv-calendar",
|
||||
/** Calendar cell (td) */
|
||||
cell: "hv-calendar__cell",
|
||||
/** Cell indicator (small dot at bottom of cell) */
|
||||
cellIndicator: "hv-calendar__cell-indicator",
|
||||
/** Calendar grid (table) */
|
||||
grid: "hv-calendar__grid",
|
||||
/** Grid body (tbody) */
|
||||
gridBody: "hv-calendar__grid-body",
|
||||
/** Grid header (thead) */
|
||||
gridHeader: "hv-calendar__grid-header",
|
||||
/** Grid row (tr) */
|
||||
gridRow: "hv-calendar__grid-row",
|
||||
/** Calendar header containing heading and navigation */
|
||||
header: "hv-calendar__header",
|
||||
/** Header cell (th - day names) */
|
||||
headerCell: "hv-calendar__header-cell",
|
||||
/** Month/year heading text */
|
||||
heading: "hv-calendar__heading",
|
||||
/** Previous/Next navigation button */
|
||||
navButton: "hv-calendar__nav-button",
|
||||
/** Navigation button icon */
|
||||
navButtonIcon: "hv-calendar__nav-button-icon",
|
||||
},
|
||||
variants: {},
|
||||
});
|
||||
|
||||
export type CalendarVariants = VariantProps<typeof calendarVariants>;
|
||||
|
||||
export const calendarYearPickerVariants = tv({
|
||||
slots: {
|
||||
trigger: "hv-calendar-year-picker__trigger",
|
||||
triggerHeading: "hv-calendar-year-picker__trigger-heading",
|
||||
triggerIndicator: "hv-calendar-year-picker__trigger-indicator",
|
||||
yearCell: "hv-calendar-year-picker__year-cell",
|
||||
yearGrid: "hv-calendar-year-picker__year-grid",
|
||||
},
|
||||
});
|
||||
|
||||
export type CalendarYearPickerVariants = VariantProps<
|
||||
typeof calendarYearPickerVariants
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user