@antify/ui 3.1.13 → 3.1.15

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.
@@ -188,6 +188,8 @@ onMounted(() => {
188
188
  >
189
189
  <div
190
190
  ref="itemRef"
191
+ data-e2e="color-input"
192
+ :data-e2e-state="state"
191
193
  :class="itemClasses"
192
194
  :tabindex="disabled || readonly ? -1 : 0"
193
195
  @click="onClick"
@@ -64,6 +64,7 @@ const iconClasses = computed(() => {
64
64
  <template>
65
65
  <button
66
66
  ref="buttonRef"
67
+ :data-e2e-color="value"
67
68
  :class="buttonClasses"
68
69
  :style="{
69
70
  backgroundColor: `var(--color-${value})`,
@@ -48,7 +48,7 @@ const _active = computed<boolean>(() => {
48
48
  }
49
49
 
50
50
  if (typeof props.to === 'object' && props.to?.name !== undefined) {
51
- return route.name.startsWith(props.to.name);
51
+ return route.name === props.to.name;
52
52
  }
53
53
 
54
54
  return props.active;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antify/ui",
3
- "version": "3.1.13",
3
+ "version": "3.1.15",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {