feat: add Typography EmptyState and Breadcrumbs
This commit is contained in:
@@ -639,3 +639,67 @@ export const radioGroupVariants = tv({
|
||||
});
|
||||
|
||||
export type RadioGroupVariants = VariantProps<typeof radioGroupVariants>;
|
||||
|
||||
export const typographyVariants = tv({
|
||||
defaultVariants: {
|
||||
align: "start",
|
||||
color: "default",
|
||||
type: "body",
|
||||
},
|
||||
slots: {
|
||||
base: "hv-typography",
|
||||
prose: "hv-typography-prose",
|
||||
},
|
||||
variants: {
|
||||
align: {
|
||||
center: "hv-typography--align-center",
|
||||
end: "hv-typography--align-end",
|
||||
justify: "hv-typography--align-justify",
|
||||
start: "hv-typography--align-start",
|
||||
},
|
||||
color: {
|
||||
default: "hv-typography--color-default",
|
||||
muted: "hv-typography--color-muted",
|
||||
},
|
||||
truncate: {
|
||||
true: "hv-typography--truncate",
|
||||
},
|
||||
type: {
|
||||
body: "hv-typography--body",
|
||||
"body-sm": "hv-typography--body-sm",
|
||||
"body-xs": "hv-typography--body-xs",
|
||||
code: "hv-typography--code",
|
||||
h1: "hv-typography--h1",
|
||||
h2: "hv-typography--h2",
|
||||
h3: "hv-typography--h3",
|
||||
h4: "hv-typography--h4",
|
||||
h5: "hv-typography--h5",
|
||||
h6: "hv-typography--h6",
|
||||
},
|
||||
weight: {
|
||||
bold: "hv-typography--weight-bold",
|
||||
medium: "hv-typography--weight-medium",
|
||||
normal: "hv-typography--weight-normal",
|
||||
semibold: "hv-typography--weight-semibold",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type TypographyVariants = VariantProps<typeof typographyVariants>;
|
||||
|
||||
export const breadcrumbsVariants = tv({
|
||||
slots: {
|
||||
base: "hv-breadcrumbs",
|
||||
item: "hv-breadcrumbs__item",
|
||||
link: "hv-breadcrumbs__link",
|
||||
separator: "hv-breadcrumbs__separator",
|
||||
},
|
||||
});
|
||||
|
||||
export type BreadcrumbsVariants = VariantProps<typeof breadcrumbsVariants>;
|
||||
|
||||
export const emptyStateVariants = tv({
|
||||
base: "hv-empty-state",
|
||||
});
|
||||
|
||||
export type EmptyStateVariants = VariantProps<typeof emptyStateVariants>;
|
||||
|
||||
Reference in New Issue
Block a user