@widergy/energy-ui 3.69.3 → 3.69.4
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.69.4](https://github.com/widergy/energy-ui/compare/v3.69.3...v3.69.4) (2025-04-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [UGC-1324] hover utcheckbox ([#602](https://github.com/widergy/energy-ui/issues/602)) ([284d6c3](https://github.com/widergy/energy-ui/commit/284d6c3616150317e61d60254c96e88c7f85e538))
|
|
7
|
+
|
|
1
8
|
## [3.69.3](https://github.com/widergy/energy-ui/compare/v3.69.2...v3.69.3) (2025-04-15)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -34,7 +34,7 @@ const baseCheckBoxTheme = theme => ({
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
const conditionalStyles = _ref => {
|
|
37
|
-
var _theme$Palette$action, _theme$Palette$action2, _theme$Palette$action3, _theme$Palette$action4;
|
|
37
|
+
var _theme$Palette$action, _theme$Palette$action2, _theme$Palette$action3, _theme$Palette$action4, _theme$Palette$action5;
|
|
38
38
|
let {
|
|
39
39
|
value,
|
|
40
40
|
indeterminate,
|
|
@@ -59,8 +59,14 @@ const conditionalStyles = _ref => {
|
|
|
59
59
|
borderRadius: '8px',
|
|
60
60
|
padding: spacing === 'small' ? '8px 12px' : '12px 16px',
|
|
61
61
|
backgroundColor: error ? theme.Palette.error['01'] : 'transparent',
|
|
62
|
+
'&:active, &:hover': {
|
|
63
|
+
transition: 'background-color 0.1s ease-in-out'
|
|
64
|
+
},
|
|
62
65
|
'&:active': {
|
|
63
66
|
backgroundColor: error ? theme.Palette.error['02'] : theme.Palette.light['04']
|
|
67
|
+
},
|
|
68
|
+
'&:hover': {
|
|
69
|
+
backgroundColor: error ? theme.Palette.error['02'] : theme.Palette.light['03']
|
|
64
70
|
}
|
|
65
71
|
})
|
|
66
72
|
},
|
|
@@ -81,12 +87,22 @@ const conditionalStyles = _ref => {
|
|
|
81
87
|
marginRight: spacingValue
|
|
82
88
|
}),
|
|
83
89
|
...(variant !== _constants.BUTTON_VARIANT && {
|
|
84
|
-
'&:active': {
|
|
90
|
+
'&:active, &:hover': {
|
|
85
91
|
'& $box': {
|
|
86
|
-
|
|
87
|
-
borderColor: ((_theme$Palette$action4 = theme.Palette.actions) === null || _theme$Palette$action4 === void 0 ? void 0 : _theme$Palette$action4.accent['03']) || theme.Palette.accent['03'],
|
|
92
|
+
borderColor: error ? theme.Palette.error['03'] : ((_theme$Palette$action3 = theme.Palette.actions) === null || _theme$Palette$action3 === void 0 ? void 0 : _theme$Palette$action3.accent['03']) || theme.Palette.accent['03'],
|
|
88
93
|
borderWidth: 1,
|
|
89
|
-
overflow: 'hidden'
|
|
94
|
+
overflow: 'hidden',
|
|
95
|
+
transition: 'background-color 0.1s ease-in-out'
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
'&:active': {
|
|
99
|
+
'& $box': {
|
|
100
|
+
backgroundColor: error ? theme.Palette.error['02'] : ((_theme$Palette$action4 = theme.Palette.actions) === null || _theme$Palette$action4 === void 0 ? void 0 : _theme$Palette$action4.accent['02']) || theme.Palette.accent['02']
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
'&:hover': {
|
|
104
|
+
'& $box': {
|
|
105
|
+
backgroundColor: error ? theme.Palette.error['01'] : ((_theme$Palette$action5 = theme.Palette.actions) === null || _theme$Palette$action5 === void 0 ? void 0 : _theme$Palette$action5.accent['01']) || theme.Palette.accent['01']
|
|
90
106
|
}
|
|
91
107
|
}
|
|
92
108
|
})
|