@saasmakers/ui 2.0.66 → 2.0.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import type { BaseRing } from '../../types/bases'
|
|
3
3
|
|
|
4
4
|
const props = withDefaults(defineProps<BaseRing>(), {
|
|
5
|
-
clickable: false,
|
|
6
5
|
completed: 0,
|
|
7
6
|
dashed: false,
|
|
8
7
|
format: 'count',
|
|
@@ -11,10 +10,6 @@ const props = withDefaults(defineProps<BaseRing>(), {
|
|
|
11
10
|
transitionColors: false,
|
|
12
11
|
})
|
|
13
12
|
|
|
14
|
-
const emit = defineEmits<{
|
|
15
|
-
click: [event: MouseEvent]
|
|
16
|
-
}>()
|
|
17
|
-
|
|
18
13
|
const sizes = {
|
|
19
14
|
base: {
|
|
20
15
|
inset: 1,
|
|
@@ -139,23 +134,10 @@ const ringArcs = computed(() => {
|
|
|
139
134
|
|
|
140
135
|
return arcs
|
|
141
136
|
})
|
|
142
|
-
|
|
143
|
-
function onClick(event: MouseEvent) {
|
|
144
|
-
if (props.clickable) {
|
|
145
|
-
emit('click', event)
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
137
|
</script>
|
|
149
138
|
|
|
150
139
|
<template>
|
|
151
|
-
<
|
|
152
|
-
:is="clickable ? 'button' : 'div'"
|
|
153
|
-
class="inline-flex"
|
|
154
|
-
:aria-label="label"
|
|
155
|
-
:class="{ 'cursor-pointer': clickable }"
|
|
156
|
-
:type="clickable ? 'button' : undefined"
|
|
157
|
-
@click="onClick"
|
|
158
|
-
>
|
|
140
|
+
<div class="inline-flex">
|
|
159
141
|
<svg
|
|
160
142
|
class="size-full"
|
|
161
143
|
:height="geometry.size"
|
|
@@ -201,5 +183,5 @@ function onClick(event: MouseEvent) {
|
|
|
201
183
|
{{ centerLabel }}
|
|
202
184
|
</text>
|
|
203
185
|
</svg>
|
|
204
|
-
</
|
|
186
|
+
</div>
|
|
205
187
|
</template>
|
package/app/types/bases.d.ts
CHANGED
|
@@ -297,11 +297,9 @@ export type BaseQuoteBackground = 'gray' | 'gray-light' | 'white'
|
|
|
297
297
|
export type BaseQuoteSize = 'base' | 'sm' | 'xs'
|
|
298
298
|
|
|
299
299
|
export interface BaseRing {
|
|
300
|
-
clickable?: boolean
|
|
301
300
|
completed?: number
|
|
302
301
|
dashed?: boolean
|
|
303
302
|
format?: BaseRingFormat
|
|
304
|
-
label?: string
|
|
305
303
|
size?: BaseRingSize
|
|
306
304
|
total?: number
|
|
307
305
|
transitionColors?: boolean
|