@saasmakers/ui 2.0.65 → 2.0.66
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.
|
@@ -71,8 +71,11 @@ const centerLabel = computed(() => {
|
|
|
71
71
|
return String(clampedCompleted.value)
|
|
72
72
|
})
|
|
73
73
|
|
|
74
|
-
// Visual gap (in viewBox units) between segments, widened for fewer steps.
|
|
75
74
|
function gapForTotal(total: number) {
|
|
75
|
+
if (total <= 1) {
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
|
|
76
79
|
if (total <= 4) {
|
|
77
80
|
return 3
|
|
78
81
|
}
|
|
@@ -148,7 +151,6 @@ function onClick(event: MouseEvent) {
|
|
|
148
151
|
<component
|
|
149
152
|
:is="clickable ? 'button' : 'div'"
|
|
150
153
|
class="inline-flex"
|
|
151
|
-
:aria-expanded="expanded"
|
|
152
154
|
:aria-label="label"
|
|
153
155
|
:class="{ 'cursor-pointer': clickable }"
|
|
154
156
|
:type="clickable ? 'button' : undefined"
|
|
@@ -185,7 +187,7 @@ function onClick(event: MouseEvent) {
|
|
|
185
187
|
/>
|
|
186
188
|
|
|
187
189
|
<text
|
|
188
|
-
v-if="centerLabel
|
|
190
|
+
v-if="centerLabel"
|
|
189
191
|
class="fill-gray-600 font-bold tabular-nums dark:fill-gray-400"
|
|
190
192
|
:class="{
|
|
191
193
|
'text-2xs': size === 'base' || size === 'sm',
|
package/app/types/bases.d.ts
CHANGED