From a9b60f7cd930640c111e7551cc761312de18dd90 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Thu, 28 Nov 2024 11:58:17 +0100 Subject: [PATCH 1/2] fix: default loading icon should be clockwise --- src/theme/icons.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/icons.ts b/src/theme/icons.ts index 606f1b5ea4..eab1d33ea3 100644 --- a/src/theme/icons.ts +++ b/src/theme/icons.ts @@ -11,7 +11,7 @@ export default { close: 'i-lucide-x', ellipsis: 'i-lucide-ellipsis', external: 'i-lucide-arrow-up-right', - loading: 'i-lucide-refresh-ccw', + loading: 'i-lucide-refresh-cw', minus: 'i-lucide-minus', plus: 'i-lucide-plus', search: 'i-lucide-search' From 6866395e93b7b9c6b025a5f5f88fbd8529c1131f Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 28 Nov 2024 15:00:40 +0100 Subject: [PATCH 2/2] up --- .../context-menu/ContextMenuCustomSlotExample.vue | 2 +- .../content/examples/toast/ToastActionsExample.vue | 2 +- docs/content/3.components/button.md | 2 +- docs/content/3.components/command-palette.md | 2 +- docs/content/3.components/input-menu.md | 2 +- docs/content/3.components/input.md | 2 +- docs/content/3.components/select-menu.md | 2 +- docs/content/3.components/select.md | 2 +- docs/content/3.components/switch.md | 2 +- test/components/Button.spec.ts | 4 ++-- test/components/__snapshots__/Button.spec.ts.snap | 8 ++++---- test/components/__snapshots__/CommandPalette.spec.ts.snap | 2 +- test/components/__snapshots__/Input.spec.ts.snap | 8 ++++---- test/components/__snapshots__/InputMenu.spec.ts.snap | 8 ++++---- test/components/__snapshots__/Select.spec.ts.snap | 8 ++++---- test/components/__snapshots__/SelectMenu.spec.ts.snap | 8 ++++---- test/components/__snapshots__/Switch.spec.ts.snap | 2 +- 17 files changed, 33 insertions(+), 33 deletions(-) diff --git a/docs/app/components/content/examples/context-menu/ContextMenuCustomSlotExample.vue b/docs/app/components/content/examples/context-menu/ContextMenuCustomSlotExample.vue index f4ae3cab0c..d6bda36083 100644 --- a/docs/app/components/content/examples/context-menu/ContextMenuCustomSlotExample.vue +++ b/docs/app/components/content/examples/context-menu/ContextMenuCustomSlotExample.vue @@ -22,7 +22,7 @@ const items = [{ diff --git a/docs/app/components/content/examples/toast/ToastActionsExample.vue b/docs/app/components/content/examples/toast/ToastActionsExample.vue index aa3dc7fe5f..577192a3e0 100644 --- a/docs/app/components/content/examples/toast/ToastActionsExample.vue +++ b/docs/app/components/content/examples/toast/ToastActionsExample.vue @@ -10,7 +10,7 @@ function showToast() { title: 'Uh oh! Something went wrong.', description: props.description, actions: [{ - icon: 'i-lucide-refresh-ccw', + icon: 'i-lucide-refresh-cw', label: 'Retry', color: 'neutral', variant: 'outline', diff --git a/docs/content/3.components/button.md b/docs/content/3.components/button.md index 81e534d691..674cdb6da2 100644 --- a/docs/content/3.components/button.md +++ b/docs/content/3.components/button.md @@ -184,7 +184,7 @@ 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-ccw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. ::component-code --- diff --git a/docs/content/3.components/command-palette.md b/docs/content/3.components/command-palette.md index 212d8fd0ab..816f0bf68e 100644 --- a/docs/content/3.components/command-palette.md +++ b/docs/content/3.components/command-palette.md @@ -258,7 +258,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-ccw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. ::component-code --- diff --git a/docs/content/3.components/input-menu.md b/docs/content/3.components/input-menu.md index c053732f72..de04ca00e9 100644 --- a/docs/content/3.components/input-menu.md +++ b/docs/content/3.components/input-menu.md @@ -551,7 +551,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-ccw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. ::component-code --- diff --git a/docs/content/3.components/input.md b/docs/content/3.components/input.md index 421c96e75e..adc11437a2 100644 --- a/docs/content/3.components/input.md +++ b/docs/content/3.components/input.md @@ -171,7 +171,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-ccw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. ::component-code --- diff --git a/docs/content/3.components/select-menu.md b/docs/content/3.components/select-menu.md index 592cd7d3fb..b84c7f9d03 100644 --- a/docs/content/3.components/select-menu.md +++ b/docs/content/3.components/select-menu.md @@ -590,7 +590,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-ccw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. ::component-code --- diff --git a/docs/content/3.components/select.md b/docs/content/3.components/select.md index cdd7943c00..869f67cf44 100644 --- a/docs/content/3.components/select.md +++ b/docs/content/3.components/select.md @@ -486,7 +486,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-ccw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. ::component-code --- diff --git a/docs/content/3.components/switch.md b/docs/content/3.components/switch.md index 73d843d8c2..fbef9a0318 100644 --- a/docs/content/3.components/switch.md +++ b/docs/content/3.components/switch.md @@ -108,7 +108,7 @@ props: ### Loading Icon -Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-ccw`. +Use the `loading-icon` prop to customize the loading icon. Defaults to `i-lucide-refresh-cw`. ::component-code --- diff --git a/test/components/Button.spec.ts b/test/components/Button.spec.ts index 4cadfb47de..648c9f7f5b 100644 --- a/test/components/Button.spec.ts +++ b/test/components/Button.spec.ts @@ -71,7 +71,7 @@ describe('Button', () => { const icon = wrapper.findComponent({ name: 'Icon' }) expect(icon.classes()).toContain('animate-spin') - expect(icon?.vm?.name).toBe('i-lucide-refresh-ccw') + expect(icon?.vm?.name).toBe('i-lucide-refresh-cw') 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-lucide-refresh-ccw') + expect(icon?.vm?.name).toBe('i-lucide-refresh-cw') resolve?.(null) }) diff --git a/test/components/__snapshots__/Button.spec.ts.snap b/test/components/__snapshots__/Button.spec.ts.snap index 3044d22e7c..2fa97bdcfe 100644 --- a/test/components/__snapshots__/Button.spec.ts.snap +++ b/test/components/__snapshots__/Button.spec.ts.snap @@ -86,14 +86,14 @@ exports[`Button > renders with leadingIcon correctly 1`] = ` `; exports[`Button > renders with loading and avatar correctly 1`] = ` -"" `; exports[`Button > renders with loading correctly 1`] = ` -"" @@ -101,14 +101,14 @@ 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`] = ` "" `; diff --git a/test/components/__snapshots__/CommandPalette.spec.ts.snap b/test/components/__snapshots__/CommandPalette.spec.ts.snap index 358887d11c..d79323bad1 100644 --- a/test/components/__snapshots__/CommandPalette.spec.ts.snap +++ b/test/components/__snapshots__/CommandPalette.spec.ts.snap @@ -925,7 +925,7 @@ exports[`CommandPalette > renders with labelKey correctly 1`] = ` exports[`CommandPalette > renders with loading correctly 1`] = ` "
-
+
diff --git a/test/components/__snapshots__/Input.spec.ts.snap b/test/components/__snapshots__/Input.spec.ts.snap index efdddd30d8..46cded11da 100644 --- a/test/components/__snapshots__/Input.spec.ts.snap +++ b/test/components/__snapshots__/Input.spec.ts.snap @@ -74,22 +74,22 @@ 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`] = ` "
- +
" `; diff --git a/test/components/__snapshots__/InputMenu.spec.ts.snap b/test/components/__snapshots__/InputMenu.spec.ts.snap index f02b4b5dfd..169f624f7f 100644 --- a/test/components/__snapshots__/InputMenu.spec.ts.snap +++ b/test/components/__snapshots__/InputMenu.spec.ts.snap @@ -561,7 +561,7 @@ exports[`InputMenu > renders with leadingIcon correctly 1`] = ` `; exports[`InputMenu > renders with loading and avatar correctly 1`] = ` -"
+"
@@ -569,7 +569,7 @@ exports[`InputMenu > renders with loading and avatar correctly 1`] = ` `; exports[`InputMenu > renders with loading correctly 1`] = ` -"
+"
@@ -577,7 +577,7 @@ exports[`InputMenu > renders with loading correctly 1`] = ` `; exports[`InputMenu > renders with loading trailing and avatar correctly 1`] = ` -"
+"
@@ -586,7 +586,7 @@ exports[`InputMenu > renders with loading trailing and avatar correctly 1`] = ` exports[`InputMenu > renders with loading trailing correctly 1`] = ` "
- + diff --git a/test/components/__snapshots__/Select.spec.ts.snap b/test/components/__snapshots__/Select.spec.ts.snap index ab1374dfe3..97b4379c42 100644 --- a/test/components/__snapshots__/Select.spec.ts.snap +++ b/test/components/__snapshots__/Select.spec.ts.snap @@ -695,21 +695,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`] = ` -" +" " @@ -717,7 +717,7 @@ exports[`Select > renders with loading trailing and avatar correctly 1`] = ` exports[`Select > renders with loading trailing correctly 1`] = ` " diff --git a/test/components/__snapshots__/SelectMenu.spec.ts.snap b/test/components/__snapshots__/SelectMenu.spec.ts.snap index d836aacdbb..ee5bbd6e4e 100644 --- a/test/components/__snapshots__/SelectMenu.spec.ts.snap +++ b/test/components/__snapshots__/SelectMenu.spec.ts.snap @@ -686,21 +686,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`] = ` -" +" " @@ -708,7 +708,7 @@ exports[`SelectMenu > renders with loading trailing and avatar correctly 1`] = ` exports[`SelectMenu > renders with loading trailing correctly 1`] = ` " diff --git a/test/components/__snapshots__/Switch.spec.ts.snap b/test/components/__snapshots__/Switch.spec.ts.snap index d3176e2546..69c0fc8365 100644 --- a/test/components/__snapshots__/Switch.spec.ts.snap +++ b/test/components/__snapshots__/Switch.spec.ts.snap @@ -112,7 +112,7 @@ exports[`Switch > renders with label slot correctly 1`] = ` exports[`Switch > renders with loading correctly 1`] = ` "
-
+