mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 19:30:37 +01:00
feat(components): uniformize colors and variants (#141)
This commit is contained in:
@@ -4,7 +4,6 @@ import ComponentRender from '../component-render'
|
||||
import theme from '#build/ui/tabs'
|
||||
|
||||
describe('Tabs', () => {
|
||||
const colors = Object.keys(theme.variants.color) as any
|
||||
const variants = Object.keys(theme.variants.variant) as any
|
||||
const sizes = Object.keys(theme.variants.size) as any
|
||||
|
||||
@@ -33,9 +32,9 @@ describe('Tabs', () => {
|
||||
['with modelValue', { props: { ...props, modelValue: '1' } }],
|
||||
['with defaultValue', { props: { ...props, defaultValue: '1' } }],
|
||||
['with orientation vertical', { props: { ...props, orientation: 'vertical' as const } }],
|
||||
...colors.map((color: string) => [`with color ${color}`, { props: { ...props, color } }]),
|
||||
...variants.map((variant: string) => [`with variant ${variant}`, { props: { ...props, variant } }]),
|
||||
...sizes.map((size: string) => [`with size ${size}`, { props: { ...props, size } }]),
|
||||
...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { ...props, variant } }]),
|
||||
...variants.map((variant: string) => [`with gray variant ${variant}`, { props: { ...props, variant, color: 'gray' } }]),
|
||||
['without content', { props: { ...props, content: false } }],
|
||||
['with class', { props: { ...props, class: 'w-96' } }],
|
||||
['with ui', { props: { ...props, ui: { content: 'w-full ring ring-gray-200 dark:ring-gray-800' } } }],
|
||||
|
||||
Reference in New Issue
Block a user