@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 && expanded !== false"
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',
@@ -300,7 +300,6 @@ export interface BaseRing {
300
300
  clickable?: boolean
301
301
  completed?: number
302
302
  dashed?: boolean
303
- expanded?: boolean
304
303
  format?: BaseRingFormat
305
304
  label?: string
306
305
  size?: BaseRingSize
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "2.0.65",
3
+ "version": "2.0.66",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "license": "MIT",