feat: loosen up the zod validations and return null instead of throwing
This commit is contained in:
@@ -27,3 +27,22 @@ const config = {
|
||||
} as const
|
||||
|
||||
export const bodyVariants = cva(styles.body, config)
|
||||
|
||||
const fontOnlyconfig = {
|
||||
variants: {
|
||||
textAlign: {
|
||||
center: styles.textAlignCenter,
|
||||
left: styles.textAlignLeft,
|
||||
},
|
||||
textTransform: {
|
||||
bold: styles.bold,
|
||||
regular: styles.regular,
|
||||
underlined: styles.underlined,
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
textAlign: "left",
|
||||
textTransform: "regular",
|
||||
},
|
||||
} as const
|
||||
export const bodyFontOnlyVariants = cva(styles.bodyFontOnly, fontOnlyconfig)
|
||||
|
||||
Reference in New Issue
Block a user