Skip to content

Commit 4da7e8d

Browse files
committed
refactor: replace spinner
1 parent d46c161 commit 4da7e8d

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

app/components/Compare/FacetCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function getShortName(header: string): string {
112112
<!-- Loading state -->
113113
<template v-if="isCellLoading(index)">
114114
<span
115-
class="i-carbon:circle-dash w-4 h-4 text-fg-subtle motion-safe:animate-spin"
115+
class="i-svg-spinners:ring-resize w-4 h-4 text-fg-subtle motion-safe:animate-spin"
116116
aria-hidden="true"
117117
/>
118118
</template>

app/components/Compare/FacetRow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function isCellLoading(index: number): boolean {
115115
<!-- Loading state -->
116116
<template v-if="isCellLoading(index)">
117117
<span
118-
class="i-carbon:circle-dash w-4 h-4 text-fg-subtle motion-safe:animate-spin"
118+
class="i-svg-spinners:ring-resize w-4 h-4 text-fg-subtle motion-safe:animate-spin"
119119
aria-hidden="true"
120120
/>
121121
</template>

app/components/Header/AccountMenu.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function openAuthModal() {
231231
<span class="w-8 h-8 rounded-full bg-bg-muted flex items-center justify-center">
232232
<span
233233
v-if="isNpmConnecting"
234-
class="i-carbon:circle-dash w-4 h-4 text-yellow-500 animate-spin"
234+
class="i-i-svg-spinners:ring-resize w-4 h-4 text-yellow-500 animate-spin"
235235
aria-hidden="true"
236236
/>
237237
<span v-else class="i-carbon:terminal w-4 h-4 text-fg-muted" aria-hidden="true" />

app/components/Package/MetricsBadges.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const typesHref = computed(() => {
7373
:tabindex="0"
7474
:classicon="
7575
isLoading
76-
? 'i-carbon:circle-dash motion-safe:animate-spin'
76+
? 'i-i-svg-spinners:ring-resize motion-safe:animate-spin'
7777
: hasTypes
7878
? 'i-carbon:checkmark'
7979
: 'i-lucide:circle-x'
@@ -95,7 +95,7 @@ const typesHref = computed(() => {
9595
:variant="hasEsm && !isLoading ? 'default' : 'ghost'"
9696
:classicon="
9797
isLoading
98-
? 'i-carbon:circle-dash motion-safe:animate-spin'
98+
? 'i-i-svg-spinners:ring-resize motion-safe:animate-spin'
9999
: hasEsm
100100
? 'i-carbon:checkmark'
101101
: 'i-lucide:circle-x'
@@ -113,7 +113,9 @@ const typesHref = computed(() => {
113113
tabindex="0"
114114
:variant="isLoading ? 'ghost' : 'default'"
115115
:classicon="
116-
isLoading ? 'i-carbon:circle-dash motion-safe:animate-spin' : 'i-carbon:checkmark'
116+
isLoading
117+
? 'i-i-svg-spinners:ring-resize motion-safe:animate-spin'
118+
: 'i-carbon:checkmark'
117119
"
118120
>
119121
CJS

app/pages/package/[[org]]/[name].vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ const showSkeleton = shallowRef(false)
824824
>
825825
<span
826826
v-if="isLoadingLikeData"
827-
class="i-carbon:circle-dash w-3 h-3 motion-safe:animate-spin my-0.5"
827+
class="i-i-svg-spinners:ring-resize w-3 h-3 motion-safe:animate-spin my-0.5"
828828
aria-hidden="true"
829829
/>
830830
<span v-else>
@@ -963,7 +963,7 @@ const showSkeleton = shallowRef(false)
963963
class="inline-flex items-center gap-1 text-fg-subtle"
964964
>
965965
<span
966-
class="i-carbon:circle-dash w-3 h-3 motion-safe:animate-spin"
966+
class="i-i-svg-spinners:ring-resize w-3 h-3 motion-safe:animate-spin"
967967
aria-hidden="true"
968968
/>
969969
</span>
@@ -1031,7 +1031,7 @@ const showSkeleton = shallowRef(false)
10311031
class="inline-flex items-center gap-1 text-fg-subtle"
10321032
>
10331033
<span
1034-
class="i-carbon:circle-dash w-3 h-3 motion-safe:animate-spin"
1034+
class="i-i-svg-spinners:ring-resize w-3 h-3 motion-safe:animate-spin"
10351035
aria-hidden="true"
10361036
/>
10371037
</span>
@@ -1054,7 +1054,7 @@ const showSkeleton = shallowRef(false)
10541054
class="inline-flex items-center gap-1 text-fg-subtle"
10551055
>
10561056
<span
1057-
class="i-carbon:circle-dash w-3 h-3 motion-safe:animate-spin"
1057+
class="i-i-svg-spinners:ring-resize w-3 h-3 motion-safe:animate-spin"
10581058
aria-hidden="true"
10591059
/>
10601060
</span>
@@ -1321,7 +1321,7 @@ const showSkeleton = shallowRef(false)
13211321
class="mt-8 flex items-center gap-2 text-fg-subtle text-sm"
13221322
>
13231323
<span
1324-
class="i-carbon:circle-dash w-4 h-4 motion-safe:animate-spin"
1324+
class="i-i-svg-spinners:ring-resize w-4 h-4 motion-safe:animate-spin"
13251325
aria-hidden="true"
13261326
/>
13271327
<span>{{ $t('package.provenance_section.title') }}…</span>

0 commit comments

Comments
 (0)