@celestia-island/hikari 0.55.31 → 0.55.32

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celestia-island/hikari",
3
- "version": "0.55.31",
3
+ "version": "0.55.32",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Hikari Vue 3 component library — production-grade UI components based on shittim-chest design system",
@@ -60,7 +60,13 @@
60
60
  padding: var(--hk-icon-group-inset);
61
61
  border: none;
62
62
  background: transparent;
63
- gap: 0;
63
+ /* A visible gap between items (so the sliding thumb never visually
64
+ * merges neighbours) must ALSO feed the thumb's translate arithmetic —
65
+ * one custom property drives both, keeping the position pure index
66
+ * math with no JS measurement. Do not replace with a literal `gap: 0`;
67
+ * the thumb formula below consumes the same variable. */
68
+ --hk-icon-group-slider-gap: 0.375rem;
69
+ gap: var(--hk-icon-group-slider-gap);
64
70
  flex-wrap: nowrap;
65
71
  }
66
72
 
@@ -93,7 +99,10 @@
93
99
  border-radius: var(--radius-sm, 4px);
94
100
  background: rgb(var(--color-primary, 90 140 255) / 14%);
95
101
  transform: translateX(
96
- calc(var(--hk-icon-group-active-index, 0) * var(--hk-icon-group-item-size))
102
+ calc(
103
+ var(--hk-icon-group-active-index, 0) *
104
+ (var(--hk-icon-group-item-size) + var(--hk-icon-group-slider-gap))
105
+ )
97
106
  );
98
107
  transition: transform var(--duration, 0.18s) ease;
99
108
  pointer-events: none;