mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-22 16:00:39 +01:00
feat(theme)!: migrate from heroicons to lucide (#2540)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -20,19 +20,19 @@ describe('Button', () => {
|
||||
...sizes.map((size: string) => [`with size ${size}`, { props: { label: 'Button', size } }]),
|
||||
...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { label: 'Button', variant } }]),
|
||||
...variants.map((variant: string) => [`with neutral variant ${variant}`, { props: { label: 'Button', variant, color: 'neutral' } }]),
|
||||
['with icon', { props: { icon: 'i-heroicons-rocket-launch' } }],
|
||||
['with leading and icon', { props: { leading: true, icon: 'i-heroicons-arrow-left' } }],
|
||||
['with leadingIcon', { props: { leadingIcon: 'i-heroicons-arrow-left' } }],
|
||||
['with trailing and icon', { props: { trailing: true, icon: 'i-heroicons-arrow-right' } }],
|
||||
['with trailingIcon', { props: { trailingIcon: 'i-heroicons-arrow-right' } }],
|
||||
['with icon', { props: { icon: 'i-lucide-rocket' } }],
|
||||
['with leading and icon', { props: { leading: true, icon: 'i-lucide-arrow-left' } }],
|
||||
['with leadingIcon', { props: { leadingIcon: 'i-lucide-arrow-left' } }],
|
||||
['with trailing and icon', { props: { trailing: true, icon: 'i-lucide-arrow-right' } }],
|
||||
['with trailingIcon', { props: { trailingIcon: 'i-lucide-arrow-right' } }],
|
||||
['with avatar', { props: { avatar: { src: 'https://github.com/benjamincanac.png' } } }],
|
||||
['with avatar and leadingIcon', { props: { avatar: { src: 'https://github.com/benjamincanac.png' }, leadingIcon: 'i-heroicons-arrow-left' } }],
|
||||
['with avatar and trailingIcon', { props: { avatar: { src: 'https://github.com/benjamincanac.png' }, trailingIcon: 'i-heroicons-arrow-right' } }],
|
||||
['with avatar and leadingIcon', { props: { avatar: { src: 'https://github.com/benjamincanac.png' }, leadingIcon: 'i-lucide-arrow-left' } }],
|
||||
['with avatar and trailingIcon', { props: { avatar: { src: 'https://github.com/benjamincanac.png' }, trailingIcon: 'i-lucide-arrow-right' } }],
|
||||
['with loading', { props: { loading: true } }],
|
||||
['with loading and avatar', { props: { loading: true, avatar: { src: 'https://github.com/benjamincanac.png' } } }],
|
||||
['with loading trailing', { props: { loading: true, trailing: true } }],
|
||||
['with loading trailing and avatar', { props: { loading: true, trailing: true, avatar: { src: 'https://github.com/benjamincanac.png' } } }],
|
||||
['with loadingIcon', { props: { loading: true, loadingIcon: 'i-heroicons-sparkles' } }],
|
||||
['with loadingIcon', { props: { loading: true, loadingIcon: 'i-lucide-sparkles' } }],
|
||||
['with disabled', { props: { label: 'Button', disabled: true } }],
|
||||
['with disabled and with link', { props: { label: 'Button', disabled: true, to: '/link' } }],
|
||||
['with block', { props: { label: 'Button', block: true } }],
|
||||
@@ -71,7 +71,7 @@ describe('Button', () => {
|
||||
const icon = wrapper.findComponent({ name: 'Icon' })
|
||||
|
||||
expect(icon.classes()).toContain('animate-spin')
|
||||
expect(icon?.vm?.name).toBe('i-heroicons-arrow-path-20-solid')
|
||||
expect(icon?.vm?.name).toBe('i-lucide-refresh-ccw')
|
||||
|
||||
resolve?.(null)
|
||||
})
|
||||
@@ -102,7 +102,7 @@ describe('Button', () => {
|
||||
const icon = wrapper.findComponent({ name: 'Icon' })
|
||||
|
||||
expect(icon.classes()).toContain('animate-spin')
|
||||
expect(icon?.vm?.name).toBe('i-heroicons-arrow-path-20-solid')
|
||||
expect(icon?.vm?.name).toBe('i-lucide-refresh-ccw')
|
||||
|
||||
resolve?.(null)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user