mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
feat(components): uniformize colors and variants (#141)
This commit is contained in:
@@ -8,7 +8,6 @@ import type { FormInputEvents } from '~/src/module'
|
||||
|
||||
describe('SelectMenu', () => {
|
||||
const sizes = Object.keys(theme.variants.size) as any
|
||||
const colors = Object.keys(theme.variants.color) as any
|
||||
const variants = Object.keys(theme.variants.variant) as any
|
||||
|
||||
const items = [{
|
||||
@@ -57,8 +56,8 @@ describe('SelectMenu', () => {
|
||||
['with loadingIcon', { props: { ...props, loading: true, loadingIcon: 'i-heroicons-sparkles' } }],
|
||||
['with arrow', { props: { ...props, arrow: true } }],
|
||||
...sizes.map((size: string) => [`with size ${size}`, { props: { ...props, size } }]),
|
||||
...colors.map((color: string) => [`with color ${color}`, { props: { ...props, color } }]),
|
||||
...variants.map((variant: string) => [`with variant ${variant}`, { props: { ...props, variant } }]),
|
||||
...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { ...props, variant } }]),
|
||||
...variants.map((variant: string) => [`with gray variant ${variant}`, { props: { ...props, variant, color: 'gray' } }]),
|
||||
['with class', { props: { ...props, class: 'rounded-full' } }],
|
||||
['with ui', { props: { ...props, ui: { group: 'p-2' } } }],
|
||||
// Slots
|
||||
|
||||
Reference in New Issue
Block a user