@widergy/energy-ui 3.10.1 → 3.10.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [3.10.2](https://github.com/widergy/energy-ui/compare/v3.10.1...v3.10.2) (2024-06-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* some fixes ([aa772bc](https://github.com/widergy/energy-ui/commit/aa772bc6406e8cdc5bd8550905dd103aa4592248))
|
|
7
|
+
* wizard ([7be8e21](https://github.com/widergy/energy-ui/commit/7be8e212e3a2804b87dd59ec5229e939c41d6771))
|
|
8
|
+
|
|
1
9
|
## [3.10.1](https://github.com/widergy/energy-ui/compare/v3.10.0...v3.10.1) (2024-06-18)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -22,6 +22,7 @@ const UTOnboarding = _ref => {
|
|
|
22
22
|
let {
|
|
23
23
|
classes: themeClasses,
|
|
24
24
|
classNames,
|
|
25
|
+
enabled,
|
|
25
26
|
handleComplete,
|
|
26
27
|
handleOnClose,
|
|
27
28
|
options,
|
|
@@ -31,7 +32,6 @@ const UTOnboarding = _ref => {
|
|
|
31
32
|
const classes = (0, _react.useMemo)(() => (0, _classesUtils.mergeClasses)(themeClasses, classNames), [themeClasses, classNames]) || {};
|
|
32
33
|
const [currentStep, setCurrentStep] = (0, _react.useState)(0);
|
|
33
34
|
const [loading, setLoading] = (0, _react.useState)(true);
|
|
34
|
-
const [enabled, setEnabled] = (0, _react.useState)(true);
|
|
35
35
|
const currentStepIsSuggestion = (_steps$currentStep$is = (_steps$currentStep = steps[currentStep]) === null || _steps$currentStep === void 0 ? void 0 : _steps$currentStep.isSuggestion) !== null && _steps$currentStep$is !== void 0 ? _steps$currentStep$is : false;
|
|
36
36
|
const hideFooter = (_steps$currentStep$hi = (_steps$currentStep2 = steps[currentStep]) === null || _steps$currentStep2 === void 0 ? void 0 : _steps$currentStep2.hideFooter) !== null && _steps$currentStep$hi !== void 0 ? _steps$currentStep$hi : false;
|
|
37
37
|
const totalSteps = steps.length;
|
|
@@ -73,7 +73,7 @@ const UTOnboarding = _ref => {
|
|
|
73
73
|
}) : step.intro
|
|
74
74
|
})),
|
|
75
75
|
initialStep: 0,
|
|
76
|
-
onExit: handleOnClose
|
|
76
|
+
onExit: handleOnClose,
|
|
77
77
|
onBeforeChange: nextStep => {
|
|
78
78
|
var _steps$nextStep;
|
|
79
79
|
const overlay = document.querySelector('.introjs-overlay');
|
|
@@ -92,7 +92,7 @@ const UTOnboarding = _ref => {
|
|
|
92
92
|
doneLabel: _constants.DONE_LABEL,
|
|
93
93
|
exitOnEsc: false,
|
|
94
94
|
exitOnOverlayClick: false,
|
|
95
|
-
helperElementPadding:
|
|
95
|
+
helperElementPadding: 0,
|
|
96
96
|
hidePrev: true,
|
|
97
97
|
nextLabel: currentStep === 0 ? _constants.START_LABEL : _constants.NEXT_LABEL,
|
|
98
98
|
prevLabel: _constants.PREV_LABEL,
|
|
@@ -113,6 +113,7 @@ const UTOnboarding = _ref => {
|
|
|
113
113
|
UTOnboarding.propTypes = {
|
|
114
114
|
classes: (0, _propTypes.objectOf)(_propTypes.string),
|
|
115
115
|
classNames: (0, _propTypes.objectOf)(_propTypes.string),
|
|
116
|
+
enabled: _propTypes.bool,
|
|
116
117
|
handleComplete: _propTypes.func,
|
|
117
118
|
handleOnClose: _propTypes.func,
|
|
118
119
|
options: _propTypes.object,
|
|
@@ -28,9 +28,6 @@ $introjs-tooltipbuttons: 'introjs-tooltipbuttons';
|
|
|
28
28
|
font-weight: 400;
|
|
29
29
|
position: relative;
|
|
30
30
|
top: -10px;
|
|
31
|
-
&:hover {
|
|
32
|
-
background-color: var(--actionAccent03) !important;
|
|
33
|
-
}
|
|
34
31
|
}
|
|
35
32
|
}
|
|
36
33
|
|
|
@@ -43,7 +40,7 @@ $introjs-tooltipbuttons: 'introjs-tooltipbuttons';
|
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
.button {
|
|
46
|
-
background-color: var(--
|
|
43
|
+
background-color: var(--dark05) !important;
|
|
47
44
|
border-radius: 4px;
|
|
48
45
|
box-shadow: none;
|
|
49
46
|
color: var(--actionNegative04) !important;
|
|
@@ -155,8 +152,9 @@ $introjs-tooltipbuttons: 'introjs-tooltipbuttons';
|
|
|
155
152
|
|
|
156
153
|
.highlight {
|
|
157
154
|
border-radius: 0;
|
|
158
|
-
|
|
155
|
+
box-sizing: border-box;
|
|
159
156
|
box-shadow:
|
|
160
|
-
|
|
157
|
+
inset 0px 0px 0px 4px #17f455,
|
|
161
158
|
rgba(33, 33, 33, 0.5) 0px 0px 0px 5000px !important;
|
|
159
|
+
z-index: 1290;
|
|
162
160
|
}
|
|
@@ -40,8 +40,8 @@ const getButtonNextTextTheme = _ref4 => {
|
|
|
40
40
|
variant
|
|
41
41
|
} = _ref4;
|
|
42
42
|
return {
|
|
43
|
-
[_constants.VARIANTS.dark]: theme.Palette.
|
|
44
|
-
[_constants.VARIANTS.information]: theme.Palette.
|
|
43
|
+
[_constants.VARIANTS.dark]: theme.Palette.dark['05'],
|
|
44
|
+
[_constants.VARIANTS.information]: theme.Palette.dark['05'],
|
|
45
45
|
[_constants.VARIANTS.light]: theme.Palette.actions.negative['05']
|
|
46
46
|
}[variant];
|
|
47
47
|
};
|
|
@@ -61,12 +61,12 @@ const retrieveStyle = _ref6 => {
|
|
|
61
61
|
} = _ref6;
|
|
62
62
|
return {
|
|
63
63
|
onboardingContainer: {
|
|
64
|
-
backgroundColor: getBackgroundColor({
|
|
64
|
+
backgroundColor: " ".concat(getBackgroundColor({
|
|
65
65
|
theme,
|
|
66
66
|
...validateProps({
|
|
67
67
|
variant
|
|
68
68
|
})
|
|
69
|
-
}),
|
|
69
|
+
}), " !important"),
|
|
70
70
|
color: getLabelTheme({
|
|
71
71
|
theme,
|
|
72
72
|
...validateProps({
|
|
@@ -94,6 +94,14 @@ const retrieveStyle = _ref6 => {
|
|
|
94
94
|
variant
|
|
95
95
|
})
|
|
96
96
|
}), " !important")
|
|
97
|
+
},
|
|
98
|
+
'& .introjs-tooltip': {
|
|
99
|
+
backgroundColor: " ".concat(getBackgroundColor({
|
|
100
|
+
theme,
|
|
101
|
+
...validateProps({
|
|
102
|
+
variant
|
|
103
|
+
})
|
|
104
|
+
}), " !important")
|
|
97
105
|
}
|
|
98
106
|
}
|
|
99
107
|
};
|