diff --git a/docs/app/components/content/examples/context-menu/ContextMenuCustomSlotExample.vue b/docs/app/components/content/examples/context-menu/ContextMenuCustomSlotExample.vue index f3a6a97de6..2a8f060523 100644 --- a/docs/app/components/content/examples/context-menu/ContextMenuCustomSlotExample.vue +++ b/docs/app/components/content/examples/context-menu/ContextMenuCustomSlotExample.vue @@ -28,7 +28,7 @@ const items = [ diff --git a/docs/content/1.getting-started/contribution.md b/docs/content/1.getting-started/contribution.md index bded4c579a..699f64c6a2 100644 --- a/docs/content/1.getting-started/contribution.md +++ b/docs/content/1.getting-started/contribution.md @@ -225,7 +225,7 @@ pnpm run test:vue # for Vue ``` ::tip -If you have to update the snapshots, press `u` when running the tests. +If you have to update the snapshots, press `u` after the tests have finished running. :: ### Commit Conventions diff --git a/docs/content/3.components/button.md b/docs/content/3.components/button.md index 90b252ed40..e30afa8e23 100644 --- a/docs/content/3.components/button.md +++ b/docs/content/3.components/button.md @@ -258,13 +258,13 @@ This also works with the [Form](/components/form) component. ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-loader-circle`. ::component-code --- props: loading: true - loadingIcon: 'i-lucide-repeat-2' + loadingIcon: 'i-lucide-loader' slots: default: Button --- diff --git a/docs/content/3.components/command-palette.md b/docs/content/3.components/command-palette.md index 30b3e72ea4..7ac6a246b1 100644 --- a/docs/content/3.components/command-palette.md +++ b/docs/content/3.components/command-palette.md @@ -279,7 +279,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-loader-circle`. ::component-code --- @@ -295,7 +295,7 @@ class: '!p-0' props: autofocus: false loading: true - loadingIcon: 'i-lucide-repeat-2' + loadingIcon: 'i-lucide-loader' groups: - id: 'apps' items: diff --git a/docs/content/3.components/input-menu.md b/docs/content/3.components/input-menu.md index 42bcc85dda..d416fdfba6 100644 --- a/docs/content/3.components/input-menu.md +++ b/docs/content/3.components/input-menu.md @@ -518,7 +518,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-loader-circle`. ::component-code --- @@ -532,7 +532,7 @@ external: props: modelValue: 'Backlog' loading: true - loadingIcon: 'i-lucide-repeat-2' + loadingIcon: 'i-lucide-loader' items: - Backlog - Todo diff --git a/docs/content/3.components/input.md b/docs/content/3.components/input.md index ac3e19b586..c76f37dcb5 100644 --- a/docs/content/3.components/input.md +++ b/docs/content/3.components/input.md @@ -172,7 +172,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-loader-circle`. ::component-code --- @@ -180,7 +180,7 @@ ignore: - placeholder props: loading: true - loadingIcon: 'i-lucide-repeat-2' + loadingIcon: 'i-lucide-loader' placeholder: 'Search...' --- :: diff --git a/docs/content/3.components/select-menu.md b/docs/content/3.components/select-menu.md index 09fde21942..bb3d658b6a 100644 --- a/docs/content/3.components/select-menu.md +++ b/docs/content/3.components/select-menu.md @@ -555,7 +555,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-loader-circle`. ::component-code --- @@ -570,7 +570,7 @@ external: props: modelValue: 'Backlog' loading: true - loadingIcon: 'i-lucide-repeat-2' + loadingIcon: 'i-lucide-loader' items: - Backlog - Todo diff --git a/docs/content/3.components/select.md b/docs/content/3.components/select.md index 2eada18107..3b95bc2645 100644 --- a/docs/content/3.components/select.md +++ b/docs/content/3.components/select.md @@ -507,7 +507,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-loader-circle`. ::component-code --- @@ -522,7 +522,7 @@ external: props: modelValue: 'Backlog' loading: true - loadingIcon: 'i-lucide-repeat-2' + loadingIcon: 'i-lucide-loader' items: - Backlog - Todo diff --git a/docs/content/3.components/switch.md b/docs/content/3.components/switch.md index 55b0e3ca72..6d96947e6c 100644 --- a/docs/content/3.components/switch.md +++ b/docs/content/3.components/switch.md @@ -109,7 +109,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-loader-circle`. ::component-code --- @@ -118,7 +118,7 @@ ignore: - defaultValue props: loading: true - loadingIcon: 'i-lucide-repeat-2' + loadingIcon: 'i-lucide-loader' defaultValue: true label: Check me --- diff --git a/docs/content/3.components/textarea.md b/docs/content/3.components/textarea.md index a71346b999..6bcc086563 100644 --- a/docs/content/3.components/textarea.md +++ b/docs/content/3.components/textarea.md @@ -194,7 +194,7 @@ props: ### Loading Icon :badge{label="New" class="align-text-top"} -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-loader-circle`. ::component-code --- @@ -202,7 +202,7 @@ ignore: - placeholder props: loading: true - loadingIcon: 'i-lucide-repeat-2' + loadingIcon: 'i-lucide-loader' placeholder: 'Search...' rows: 1 --- diff --git a/src/theme/icons.ts b/src/theme/icons.ts index d9477de5a6..b0d6357b65 100644 --- a/src/theme/icons.ts +++ b/src/theme/icons.ts @@ -13,7 +13,7 @@ export default { external: 'i-lucide-arrow-up-right', folder: 'i-lucide-folder', folderOpen: 'i-lucide-folder-open', - loading: 'i-lucide-refresh-cw', + loading: 'i-lucide-loader-circle', minus: 'i-lucide-minus', plus: 'i-lucide-plus', search: 'i-lucide-search' diff --git a/test/components/Button.spec.ts b/test/components/Button.spec.ts index 51153dee22..39b361b9b2 100644 --- a/test/components/Button.spec.ts +++ b/test/components/Button.spec.ts @@ -33,7 +33,7 @@ describe('Button', () => { ['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-lucide-sparkles' } }], + ['with loadingIcon', { props: { loading: true, loadingIcon: 'i-lucide-loader' } }], ['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 } }], @@ -75,7 +75,7 @@ describe('Button', () => { const icon = wrapper.findComponent({ name: 'Icon' }) expect(icon.classes()).toContain('animate-spin') - expect(icon?.vm?.name).toBe('i-lucide-refresh-cw') + expect(icon?.vm?.name).toBe('i-lucide-loader-circle') resolve?.(null) }) @@ -106,7 +106,7 @@ describe('Button', () => { const icon = wrapper.findComponent({ name: 'Icon' }) expect(icon.classes()).toContain('animate-spin') - expect(icon?.vm?.name).toBe('i-lucide-refresh-cw') + expect(icon?.vm?.name).toBe('i-lucide-loader-circle') resolve?.(null) }) diff --git a/test/components/CommandPalette.spec.ts b/test/components/CommandPalette.spec.ts index a222fa9808..482bed3470 100644 --- a/test/components/CommandPalette.spec.ts +++ b/test/components/CommandPalette.spec.ts @@ -74,7 +74,7 @@ describe('CommandPalette', () => { ['with disabled', { props: { ...props, disabled: true } }], ['with icon', { props: { ...props, icon: 'i-lucide-terminal' } }], ['with loading', { props: { ...props, loading: true } }], - ['with loadingIcon', { props: { ...props, loading: true, loadingIcon: 'i-lucide-sparkles' } }], + ['with loadingIcon', { props: { ...props, loading: true, loadingIcon: 'i-lucide-loader' } }], ['with selectedIcon', { props: { ...props, selectedIcon: 'i-lucide-badge-check', modelValue: groups[2].items[0] } }], ['with close', { props: { ...props, close: true } }], ['with closeIcon', { props: { ...props, close: true, closeIcon: 'i-lucide-trash' } }], diff --git a/test/components/Input.spec.ts b/test/components/Input.spec.ts index 9b5f5d4171..f655cdd56b 100644 --- a/test/components/Input.spec.ts +++ b/test/components/Input.spec.ts @@ -32,7 +32,7 @@ describe('Input', () => { ['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-lucide-sparkles' } }], + ['with loadingIcon', { props: { loading: true, loadingIcon: 'i-lucide-loader' } }], ...sizes.map((size: string) => [`with size ${size}`, { props: { size } }]), ...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { variant } }]), ...variants.map((variant: string) => [`with neutral variant ${variant}`, { props: { variant, color: 'neutral' } }]), diff --git a/test/components/InputMenu.spec.ts b/test/components/InputMenu.spec.ts index 71ae8b577d..f64bef17b4 100644 --- a/test/components/InputMenu.spec.ts +++ b/test/components/InputMenu.spec.ts @@ -59,7 +59,7 @@ describe('InputMenu', () => { ['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-lucide-sparkles' } }], + ['with loadingIcon', { props: { loading: true, loadingIcon: 'i-lucide-loader' } }], ['with trailingIcon', { props: { ...props, trailingIcon: 'i-lucide-chevron-down' } }], ['with selectedIcon', { props: { ...props, selectedIcon: 'i-lucide-check' } }], ['with arrow', { props: { ...props, arrow: true } }], diff --git a/test/components/Select.spec.ts b/test/components/Select.spec.ts index 608d39cf07..9231cd6e1b 100644 --- a/test/components/Select.spec.ts +++ b/test/components/Select.spec.ts @@ -61,7 +61,7 @@ describe('Select', () => { ['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-lucide-sparkles' } }], + ['with loadingIcon', { props: { loading: true, loadingIcon: 'i-lucide-loader' } }], ['with trailingIcon', { props: { ...props, trailingIcon: 'i-lucide-chevron-down' } }], ['with selectedIcon', { props: { ...props, selectedIcon: 'i-lucide-check' } }], ['with arrow', { props: { ...props, arrow: true } }], diff --git a/test/components/SelectMenu.spec.ts b/test/components/SelectMenu.spec.ts index 8c3be877e4..e843735ef7 100644 --- a/test/components/SelectMenu.spec.ts +++ b/test/components/SelectMenu.spec.ts @@ -64,7 +64,7 @@ describe('SelectMenu', () => { ['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-lucide-sparkles' } }], + ['with loadingIcon', { props: { loading: true, loadingIcon: 'i-lucide-loader' } }], ['with trailingIcon', { props: { ...props, trailingIcon: 'i-lucide-chevron-down' } }], ['with selectedIcon', { props: { ...props, selectedIcon: 'i-lucide-check' } }], ['with arrow', { props: { ...props, arrow: true } }], diff --git a/test/components/Switch.spec.ts b/test/components/Switch.spec.ts index babfd47540..59cb75a419 100644 --- a/test/components/Switch.spec.ts +++ b/test/components/Switch.spec.ts @@ -20,7 +20,7 @@ describe('Switch', () => { ['with checkedIcon', { props: { checkedIcon: 'i-lucide-check', defaultValue: true } }], ['with uncheckedIcon', { props: { uncheckedIcon: 'i-lucide-x' } }], ['with loading', { props: { loading: true } }], - ['with loadingIcon', { props: { loading: true, loadingIcon: 'i-lucide-sparkles' } }], + ['with loadingIcon', { props: { loading: true, loadingIcon: 'i-lucide-loader' } }], ['with label', { props: { label: 'Label' } }], ['with required', { props: { label: 'Label', required: true } }], ['with description', { props: { label: 'Label', description: 'Description' } }], diff --git a/test/components/Textarea.spec.ts b/test/components/Textarea.spec.ts index 5f3800a710..90280b2103 100644 --- a/test/components/Textarea.spec.ts +++ b/test/components/Textarea.spec.ts @@ -31,7 +31,7 @@ describe('Textarea', () => { ['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-lucide-sparkles' } }], + ['with loadingIcon', { props: { loading: true, loadingIcon: 'i-lucide-loader' } }], ...sizes.map((size: string) => [`with size ${size}`, { props: { size } }]), ...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { variant } }]), ...variants.map((variant: string) => [`with neutral variant ${variant}`, { props: { variant, color: 'neutral' } }]), diff --git a/test/components/__snapshots__/Button.spec.ts.snap b/test/components/__snapshots__/Button.spec.ts.snap index 8e945ac61c..b2aabceefb 100644 --- a/test/components/__snapshots__/Button.spec.ts.snap +++ b/test/components/__snapshots__/Button.spec.ts.snap @@ -154,14 +154,14 @@ exports[`Button > renders with leadingIcon correctly 1`] = ` `; exports[`Button > renders with loading and avatar correctly 1`] = ` -"" `; exports[`Button > renders with loading correctly 1`] = ` -"" @@ -169,19 +169,19 @@ exports[`Button > renders with loading correctly 1`] = ` exports[`Button > renders with loading trailing and avatar correctly 1`] = ` "" `; exports[`Button > renders with loading trailing correctly 1`] = ` "" `; exports[`Button > renders with loadingIcon correctly 1`] = ` -"" diff --git a/test/components/__snapshots__/CommandPalette.spec.ts.snap b/test/components/__snapshots__/CommandPalette.spec.ts.snap index 8cb18c6fc1..1b4cf939a2 100644 --- a/test/components/__snapshots__/CommandPalette.spec.ts.snap +++ b/test/components/__snapshots__/CommandPalette.spec.ts.snap @@ -557,7 +557,7 @@ exports[`CommandPalette > renders with labelKey correctly 1`] = ` exports[`CommandPalette > renders with loading correctly 1`] = ` "
-
+
@@ -593,7 +593,7 @@ exports[`CommandPalette > renders with loading correctly 1`] = ` exports[`CommandPalette > renders with loadingIcon correctly 1`] = ` "
-
+
diff --git a/test/components/__snapshots__/Input.spec.ts.snap b/test/components/__snapshots__/Input.spec.ts.snap index 4433a1d8a8..b5cf2b57f3 100644 --- a/test/components/__snapshots__/Input.spec.ts.snap +++ b/test/components/__snapshots__/Input.spec.ts.snap @@ -88,27 +88,27 @@ exports[`Input > renders with leadingIcon correctly 1`] = ` `; exports[`Input > renders with loading and avatar correctly 1`] = ` -"
+"
" `; exports[`Input > renders with loading correctly 1`] = ` -"
+"
" `; -exports[`Input > renders with loading trailing and avatar correctly 1`] = `"
"`; +exports[`Input > renders with loading trailing and avatar correctly 1`] = `"
"`; exports[`Input > renders with loading trailing correctly 1`] = ` "
- +
" `; exports[`Input > renders with loadingIcon correctly 1`] = ` -"
+"
" `; diff --git a/test/components/__snapshots__/InputMenu.spec.ts.snap b/test/components/__snapshots__/InputMenu.spec.ts.snap index fd43cdda6e..0bda47c629 100644 --- a/test/components/__snapshots__/InputMenu.spec.ts.snap +++ b/test/components/__snapshots__/InputMenu.spec.ts.snap @@ -588,7 +588,7 @@ exports[`InputMenu > renders with leadingIcon correctly 1`] = ` `; exports[`InputMenu > renders with loading and avatar correctly 1`] = ` -"
+"
@@ -596,7 +596,7 @@ exports[`InputMenu > renders with loading and avatar correctly 1`] = ` `; exports[`InputMenu > renders with loading correctly 1`] = ` -"
+"
@@ -604,7 +604,7 @@ exports[`InputMenu > renders with loading correctly 1`] = ` `; exports[`InputMenu > renders with loading trailing and avatar correctly 1`] = ` -"
+"
@@ -613,7 +613,7 @@ exports[`InputMenu > renders with loading trailing and avatar correctly 1`] = ` exports[`InputMenu > renders with loading trailing correctly 1`] = ` "
- + @@ -621,7 +621,7 @@ exports[`InputMenu > renders with loading trailing correctly 1`] = ` `; exports[`InputMenu > renders with loadingIcon correctly 1`] = ` -"
+"
diff --git a/test/components/__snapshots__/Select.spec.ts.snap b/test/components/__snapshots__/Select.spec.ts.snap index 11d0ee7601..b9fe491b3f 100644 --- a/test/components/__snapshots__/Select.spec.ts.snap +++ b/test/components/__snapshots__/Select.spec.ts.snap @@ -547,21 +547,21 @@ exports[`Select > renders with leadingIcon correctly 1`] = ` `; exports[`Select > renders with loading and avatar correctly 1`] = ` -" +" " `; exports[`Select > renders with loading correctly 1`] = ` -" +" " `; exports[`Select > renders with loading trailing and avatar correctly 1`] = ` -" +" " @@ -569,7 +569,7 @@ exports[`Select > renders with loading trailing and avatar correctly 1`] = ` exports[`Select > renders with loading trailing correctly 1`] = ` " @@ -577,7 +577,7 @@ exports[`Select > renders with loading trailing correctly 1`] = ` `; exports[`Select > renders with loadingIcon correctly 1`] = ` -" +" " diff --git a/test/components/__snapshots__/SelectMenu.spec.ts.snap b/test/components/__snapshots__/SelectMenu.spec.ts.snap index 38b6750c0a..a5fb5c2b33 100644 --- a/test/components/__snapshots__/SelectMenu.spec.ts.snap +++ b/test/components/__snapshots__/SelectMenu.spec.ts.snap @@ -755,21 +755,21 @@ exports[`SelectMenu > renders with leadingIcon correctly 1`] = ` `; exports[`SelectMenu > renders with loading and avatar correctly 1`] = ` -" +" " `; exports[`SelectMenu > renders with loading correctly 1`] = ` -" +" " `; exports[`SelectMenu > renders with loading trailing and avatar correctly 1`] = ` -" +" " @@ -777,7 +777,7 @@ exports[`SelectMenu > renders with loading trailing and avatar correctly 1`] = ` exports[`SelectMenu > renders with loading trailing correctly 1`] = ` " @@ -785,7 +785,7 @@ exports[`SelectMenu > renders with loading trailing correctly 1`] = ` `; exports[`SelectMenu > renders with loadingIcon correctly 1`] = ` -" +" " diff --git a/test/components/__snapshots__/Switch.spec.ts.snap b/test/components/__snapshots__/Switch.spec.ts.snap index f4e5abe210..b11865502b 100644 --- a/test/components/__snapshots__/Switch.spec.ts.snap +++ b/test/components/__snapshots__/Switch.spec.ts.snap @@ -119,7 +119,7 @@ exports[`Switch > renders with label slot correctly 1`] = ` exports[`Switch > renders with loading correctly 1`] = ` "
-
@@ -128,7 +128,7 @@ exports[`Switch > renders with loading correctly 1`] = ` exports[`Switch > renders with loadingIcon correctly 1`] = ` "
-
diff --git a/test/components/__snapshots__/Textarea.spec.ts.snap b/test/components/__snapshots__/Textarea.spec.ts.snap index 541dad3cc4..c3b90ee00a 100644 --- a/test/components/__snapshots__/Textarea.spec.ts.snap +++ b/test/components/__snapshots__/Textarea.spec.ts.snap @@ -88,27 +88,27 @@ exports[`Textarea > renders with leadingIcon correctly 1`] = ` `; exports[`Textarea > renders with loading and avatar correctly 1`] = ` -"
+"
" `; exports[`Textarea > renders with loading correctly 1`] = ` -"
+"
" `; -exports[`Textarea > renders with loading trailing and avatar correctly 1`] = `"
"`; +exports[`Textarea > renders with loading trailing and avatar correctly 1`] = `"
"`; exports[`Textarea > renders with loading trailing correctly 1`] = ` "
- +
" `; exports[`Textarea > renders with loadingIcon correctly 1`] = ` -"
+"
" `;