@r2digisolutions/ui 0.32.0 → 0.32.2

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.
@@ -33,13 +33,13 @@
33
33
  };
34
34
 
35
35
  const base =
36
- 'relative inline-flex items-center justify-center gap-1.5 whitespace-nowrap select-none transition-all ' +
36
+ 'relative inline-flex items-center justify-center gap-1.5 whitespace-nowrap select-none transition-all duration-150 ' +
37
37
  'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500/60';
38
38
 
39
39
  const disabledCls = disabled ? 'opacity-50 pointer-events-none' : 'cursor-pointer';
40
40
 
41
41
  const inactive =
42
- 'text-neutral-700 hover:bg-white/55 hover:text-neutral-900 ' +
42
+ 'text-neutral-700 hover:bg-white/70 hover:text-neutral-900 ' +
43
43
  'dark:text-neutral-200 dark:hover:bg-white/10 dark:hover:text-neutral-50';
44
44
 
45
45
  const activeCls =
@@ -56,10 +56,19 @@
56
56
  base,
57
57
  sizes[size],
58
58
  active ? activeCls : inactive,
59
- // 🎯 SOLO CSS: posición automática
59
+
60
+ // ===== ACTIVE radius =====
60
61
  '[&[data-active]:first-child]:rounded-l-full',
61
62
  '[&[data-active]:last-child]:rounded-r-full',
62
- '[&[data-active]:not(:first-child):not(:last-child)]:rounded-full',
63
+ // middle: SIN rounded
64
+ '[&[data-active]:not(:first-child):not(:last-child)]:rounded-none',
65
+
66
+ // ===== HOVER radius (solo si NO está activo) =====
67
+ '[&:not([data-active]):first-child:hover]:rounded-l-full',
68
+ '[&:not([data-active]):last-child:hover]:rounded-r-full',
69
+ // middle hover: SIN rounded
70
+ '[&:not([data-active]):not(:first-child):not(:last-child):hover]:rounded-none',
71
+
63
72
  disabledCls,
64
73
  props.class
65
74
  ]}
@@ -77,9 +86,15 @@
77
86
  base,
78
87
  sizes[size],
79
88
  active ? activeCls : inactive,
89
+
80
90
  '[&[data-active]:first-child]:rounded-l-full',
81
91
  '[&[data-active]:last-child]:rounded-r-full',
82
- '[&[data-active]:not(:first-child):not(:last-child)]:rounded-full',
92
+ '[&[data-active]:not(:first-child):not(:last-child)]:rounded-none',
93
+
94
+ '[&:not([data-active]):first-child:hover]:rounded-l-full',
95
+ '[&:not([data-active]):last-child:hover]:rounded-r-full',
96
+ '[&:not([data-active]):not(:first-child):not(:last-child):hover]:rounded-none',
97
+
83
98
  disabledCls,
84
99
  props.class
85
100
  ]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/ui",
3
- "version": "0.32.0",
3
+ "version": "0.32.2",
4
4
  "private": false,
5
5
  "packageManager": "bun@1.3.4",
6
6
  "publishConfig": {