Skip to content

Commit 37ca223

Browse files
Charfeddine HamrouniCharfeddine Hamrouni
authored andcommitted
fix: refresh snapshots
1 parent 2b9d12a commit 37ca223

File tree

5 files changed

+49
-50
lines changed

5 files changed

+49
-50
lines changed

playground/app/pages/components/progress.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ onMounted(() => {
8080
v-model="value2"
8181
variant="circular"
8282
size="xs"
83-
status
84-
status-position="inside"
8583
color="neutral"
8684
/>
8785

@@ -113,6 +111,7 @@ onMounted(() => {
113111
v-model="value2"
114112
variant="circular"
115113
color="warning"
114+
status-position="inside"
116115
size="xl"
117116
status
118117
/>

src/runtime/components/Progress.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const appConfig = useAppConfig() as Progress['AppConfig']
8484
8585
const rootProps = useForwardPropsEmits(reactivePick(props, 'getValueLabel', 'modelValue'), emits)
8686
87-
const RADIUS = 45
87+
const RADIUS = 40
8888
const circumference = 2 * Math.PI * RADIUS
8989
9090
const isIndeterminate = computed(() => rootProps.value.modelValue === null)

src/theme/progress.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -124,61 +124,61 @@ export default (options: Required<ModuleOptions>) => ({
124124
variant: 'circular',
125125
size: '2xs',
126126
class: {
127-
base: 'size-4',
128-
indicator: 'stroke-[1px]',
129-
track: 'stroke-[1px]'
127+
base: 'size-6',
128+
indicator: 'stroke-[6px]',
129+
track: 'stroke-[6px]'
130130
}
131131
},
132132
{
133133
variant: 'circular',
134134
size: 'xs',
135135
class: {
136-
base: 'size-6',
137-
indicator: 'stroke-[2px]',
138-
track: 'stroke-[2px]'
136+
base: 'size-8',
137+
indicator: 'stroke-[8px]',
138+
track: 'stroke-[8px]'
139139
}
140140
},
141141
{
142142
variant: 'circular',
143143
size: 'sm',
144144
class: {
145-
base: 'size-8',
146-
indicator: 'stroke-[4px]',
147-
track: 'stroke-[4px]'
145+
base: 'size-10',
146+
indicator: 'stroke-[10px]',
147+
track: 'stroke-[10px]'
148148
}
149149
},
150150
{
151151
variant: 'circular',
152152
size: 'md',
153153
class: {
154-
base: 'size-10',
155-
indicator: 'stroke-[8px]',
156-
track: 'stroke-[8px]'
154+
base: 'size-14',
155+
indicator: 'stroke-[14px]',
156+
track: 'stroke-[14px]'
157157
}
158158
},
159159
{
160160
variant: 'circular',
161161
size: 'lg',
162162
class: {
163-
base: 'size-12',
164-
indicator: 'stroke-[12px]',
165-
track: 'stroke-[12px]'
163+
base: 'size-16',
164+
indicator: 'stroke-[16px]',
165+
track: 'stroke-[16px]'
166166
}
167167
},
168168
{
169169
variant: 'circular',
170170
size: 'xl',
171171
class: {
172-
base: 'size-14',
173-
indicator: 'stroke-[16px]',
174-
track: 'stroke-[16px]'
172+
base: 'size-18',
173+
indicator: 'stroke-[18px]',
174+
track: 'stroke-[18px]'
175175
}
176176
},
177177
{
178178
variant: 'circular',
179179
size: '2xl',
180180
class: {
181-
base: 'size-16',
181+
base: 'size-20',
182182
indicator: 'stroke-[20px]',
183183
track: 'stroke-[20px]'
184184
}

test/components/__snapshots__/Progress-vue.spec.ts.snap

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,19 @@ exports[`Progress > renders with status inverted correctly 1`] = `
225225
exports[`Progress > renders with status position and circular variant correctly 1`] = `
226226
"<div class="gap-0 items-center w-full flex flex-col">
227227
<div class="text-dimmed transition-[width] duration-200 flex items-center justify-center text-sm flex-row" style="width: fit-content;">50% </div>
228-
<div aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" aria-valuetext="50%" aria-label="50%" role="progressbar" data-state="loading" data-value="50" data-max="100" class="relative rounded-full size-10" style="transform: translateZ(0);"><svg class="relative rounded-full size-10" viewBox="0 0 100 100">
228+
<div aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" aria-valuetext="50%" aria-label="50%" role="progressbar" data-state="loading" data-value="50" data-max="100" class="relative rounded-full size-14" style="transform: translateZ(0);"><svg class="relative rounded-full size-14" viewBox="0 0 100 100">
229229
<path d="
230230
M 50 50
231-
m 0 -45
232-
a 45 45 0 1 1 0 90
233-
a 45 45 0 1 1 0 -90
234-
" class="fill-none stroke-accented stroke-[6px]"></path>
231+
m 0 -40
232+
a 40 40 0 1 1 0 80
233+
a 40 40 0 1 1 0 -80
234+
" class="fill-none stroke-accented stroke-[14px]"></path>
235235
<path d="
236236
M 50 50
237-
m 0 -45
238-
a 45 45 0 1 1 0 90
239-
a 45 45 0 1 1 0 -90
240-
" class="rounded-full size-full duration-200 ease-out fill-none transition-[stroke-dasharray,opacity] bg-primary stroke-primary stroke-[6px]" style="stroke-linecap: round; stroke-dasharray: 141.3716694115407px, 282.7433388230814px; stroke-dashoffset: 0px;" data-state="loading" data-value="50" data-max="100"></path>
237+
m 0 -40
238+
a 40 40 0 1 1 0 80
239+
a 40 40 0 1 1 0 -80
240+
" class="rounded-full size-full duration-200 ease-out fill-none transition-[stroke-dasharray,opacity] bg-primary stroke-primary stroke-[14px]" style="stroke-linecap: round; stroke-dasharray: 125.66370614359172px, 251.32741228718345px; stroke-dashoffset: 0px;" data-state="loading" data-value="50" data-max="100"></path>
241241
</svg>
242242
<!--v-if-->
243243
</div>
@@ -268,13 +268,13 @@ exports[`Progress > renders with ui correctly 1`] = `
268268
exports[`Progress > renders with variant circular correctly 1`] = `
269269
"<div class="gap-0 items-center w-full flex flex-col">
270270
<!--v-if-->
271-
<div aria-valuemax="100" aria-valuemin="0" aria-valuetext="0%" aria-label="0%" role="progressbar" data-state="indeterminate" data-max="100" class="relative rounded-full size-10" style="transform: translateZ(0);"><svg class="relative rounded-full size-10" viewBox="0 0 100 100">
271+
<div aria-valuemax="100" aria-valuemin="0" aria-valuetext="0%" aria-label="0%" role="progressbar" data-state="indeterminate" data-max="100" class="relative rounded-full size-14" style="transform: translateZ(0);"><svg class="relative rounded-full size-14" viewBox="0 0 100 100">
272272
<path d="
273273
M 50 50
274-
m 0 -45
275-
a 45 45 0 1 1 0 90
276-
a 45 45 0 1 1 0 -90
277-
" class="fill-none stroke-accented stroke-[6px]"></path>
274+
m 0 -40
275+
a 40 40 0 1 1 0 80
276+
a 40 40 0 1 1 0 -80
277+
" class="fill-none stroke-accented stroke-[14px]"></path>
278278
</svg>
279279
<!--v-if-->
280280
</div>

test/components/__snapshots__/Progress.spec.ts.snap

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,19 @@ exports[`Progress > renders with status inverted correctly 1`] = `
225225
exports[`Progress > renders with status position and circular variant correctly 1`] = `
226226
"<div class="gap-0 items-center w-full flex flex-col">
227227
<div class="text-dimmed transition-[width] duration-200 flex items-center justify-center text-sm flex-row" style="width: fit-content;">50% </div>
228-
<div aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" aria-valuetext="50%" aria-label="50%" role="progressbar" data-state="loading" data-value="50" data-max="100" class="relative rounded-full size-10" style="transform: translateZ(0);"><svg class="relative rounded-full size-10" viewBox="0 0 100 100">
228+
<div aria-valuemax="100" aria-valuemin="0" aria-valuenow="50" aria-valuetext="50%" aria-label="50%" role="progressbar" data-state="loading" data-value="50" data-max="100" class="relative rounded-full size-14" style="transform: translateZ(0);"><svg class="relative rounded-full size-14" viewBox="0 0 100 100">
229229
<path d="
230230
M 50 50
231-
m 0 -45
232-
a 45 45 0 1 1 0 90
233-
a 45 45 0 1 1 0 -90
234-
" class="fill-none stroke-accented stroke-[6px]"></path>
231+
m 0 -40
232+
a 40 40 0 1 1 0 80
233+
a 40 40 0 1 1 0 -80
234+
" class="fill-none stroke-accented stroke-[14px]"></path>
235235
<path d="
236236
M 50 50
237-
m 0 -45
238-
a 45 45 0 1 1 0 90
239-
a 45 45 0 1 1 0 -90
240-
" class="rounded-full size-full duration-200 ease-out fill-none transition-[stroke-dasharray,opacity] bg-primary stroke-primary stroke-[6px]" style="stroke-linecap: round; stroke-dasharray: 141.3716694115407px, 282.7433388230814px; stroke-dashoffset: 0px;" data-state="loading" data-value="50" data-max="100"></path>
237+
m 0 -40
238+
a 40 40 0 1 1 0 80
239+
a 40 40 0 1 1 0 -80
240+
" class="rounded-full size-full duration-200 ease-out fill-none transition-[stroke-dasharray,opacity] bg-primary stroke-primary stroke-[14px]" style="stroke-linecap: round; stroke-dasharray: 125.66370614359172px, 251.32741228718345px; stroke-dashoffset: 0px;" data-state="loading" data-value="50" data-max="100"></path>
241241
</svg>
242242
<!--v-if-->
243243
</div>
@@ -268,13 +268,13 @@ exports[`Progress > renders with ui correctly 1`] = `
268268
exports[`Progress > renders with variant circular correctly 1`] = `
269269
"<div class="gap-0 items-center w-full flex flex-col">
270270
<!--v-if-->
271-
<div aria-valuemax="100" aria-valuemin="0" aria-valuetext="0%" aria-label="0%" role="progressbar" data-state="indeterminate" data-max="100" class="relative rounded-full size-10" style="transform: translateZ(0);"><svg class="relative rounded-full size-10" viewBox="0 0 100 100">
271+
<div aria-valuemax="100" aria-valuemin="0" aria-valuetext="0%" aria-label="0%" role="progressbar" data-state="indeterminate" data-max="100" class="relative rounded-full size-14" style="transform: translateZ(0);"><svg class="relative rounded-full size-14" viewBox="0 0 100 100">
272272
<path d="
273273
M 50 50
274-
m 0 -45
275-
a 45 45 0 1 1 0 90
276-
a 45 45 0 1 1 0 -90
277-
" class="fill-none stroke-accented stroke-[6px]"></path>
274+
m 0 -40
275+
a 40 40 0 1 1 0 80
276+
a 40 40 0 1 1 0 -80
277+
" class="fill-none stroke-accented stroke-[14px]"></path>
278278
</svg>
279279
<!--v-if-->
280280
</div>

0 commit comments

Comments
 (0)