@widergy/energy-ui 3.107.2 → 3.109.0
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 +14 -0
- package/dist/components/UTIcon/UTIcon.stories.js +201 -0
- package/dist/components/UTIcon/components/EnergyIcons/EnergyIconBoltFilled.svg +6 -0
- package/dist/components/UTIcon/components/EnergyIcons/EnergyIconFlameFilled.svg +6 -0
- package/dist/components/UTIcon/components/EnergyIcons/EnergyIconPresentationFilled.svg +6 -0
- package/dist/components/UTIcon/constants.js +52 -1
- package/dist/components/UTOnboarding/components/OnboardingStep/index.js +6 -4
- package/dist/components/UTOnboarding/components/OnboardingStep/styles.module.scss +19 -6
- package/dist/components/UTOnboarding/index.js +1 -1
- package/dist/components/UTOnboarding/styles.module.scss +21 -4
- package/dist/components/UTOnboarding/theme.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [3.109.0](https://github.com/widergy/energy-ui/compare/v3.108.0...v3.109.0) (2025-10-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* [COLB-77] uticon storybook ([#697](https://github.com/widergy/energy-ui/issues/697)) ([c698764](https://github.com/widergy/energy-ui/commit/c698764d6fa08d8e83b98423ef033321f22798e4))
|
|
7
|
+
|
|
8
|
+
# [3.108.0](https://github.com/widergy/energy-ui/compare/v3.107.2...v3.108.0) (2025-10-02)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* [CX-1174] widy onboarding ([#692](https://github.com/widergy/energy-ui/issues/692)) ([49c29f6](https://github.com/widergy/energy-ui/commit/49c29f64f10b0c1461a23153d1a5b011089945fc))
|
|
14
|
+
|
|
1
15
|
## [3.107.2](https://github.com/widergy/energy-ui/compare/v3.107.1...v3.107.2) (2025-10-02)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Variants = exports.Flags = exports.Default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _utils = require("stories/utils");
|
|
9
|
+
var _Palette = require("../../constants/Palette");
|
|
10
|
+
var _constants = require("./constants");
|
|
11
|
+
var _ = _interopRequireDefault(require("."));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
14
|
+
const ICON_EXAMPLES = ['IconHome', 'IconBolt', 'IconDroplet', 'IconCar', 'IconReceipt', 'IconArchive', 'IconUser', 'IconBell', 'IconInfoCircle'];
|
|
15
|
+
const ICON_FILLED_EXAMPLES = ['IconHomeFilled', 'IconBoltFilled', 'IconDropletFilled', 'IconCarFilled', 'IconReceiptFilled', 'IconArchiveFilled', 'IconUserFilled', 'IconBellFilled', 'IconInfoCircleFilled'];
|
|
16
|
+
const ENERGY_ICON_EXAMPLES = ['EnergyIconBottledGas', 'EnergyIconBottledGasPlus', 'EnergyIconCar', 'EnergyIconCarbonFootprint', 'EnergyIconCart', 'EnergyIconChatSparkFilled', 'EnergyIconEdit', 'EnergyIconHome', 'EnergyIconMessageEdit', 'EnergyIconQuestionFilled', 'EnergyIconSendFilled', 'EnergyIconTruck', 'EnergyIconConsumptionBoxPlusFilled', 'EnergyIconConsumptionBoxRightFilled', 'EnergyIconConsumptionBoxMinusFilled'];
|
|
17
|
+
const FLAG_EXAMPLES = [
|
|
18
|
+
// South America
|
|
19
|
+
'AR', 'BO', 'BR', 'CL', 'CO', 'EC', 'GY', 'PY', 'PE', 'SR', 'UY', 'VE',
|
|
20
|
+
// North & Central America
|
|
21
|
+
'CA', 'CR', 'CU', 'DO', 'GT', 'HN', 'JM', 'MX', 'NI', 'PA', 'PR', 'SV', 'US',
|
|
22
|
+
// Europe
|
|
23
|
+
'AL', 'AT', 'BE', 'BG', 'CH', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HR', 'HU', 'IE', 'IS', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'NO', 'PL', 'PT', 'RO', 'RS', 'SE', 'SI', 'SK', 'UA',
|
|
24
|
+
// Africa
|
|
25
|
+
'DZ', 'EG', 'ET', 'GH', 'KE', 'MA', 'NG', 'SN', 'ZA', 'TZ', 'UG', 'ZM', 'ZW',
|
|
26
|
+
// Middle East
|
|
27
|
+
'AE', 'IL', 'IQ', 'IR', 'JO', 'KW', 'LB', 'OM', 'QA', 'SA', 'SY', 'TR',
|
|
28
|
+
// Asia
|
|
29
|
+
'BD', 'CN', 'HK', 'ID', 'IN', 'JP', 'KH', 'KR', 'LA', 'MY', 'NP', 'PH', 'PK', 'SG', 'TH', 'TW', 'VN',
|
|
30
|
+
// Oceania
|
|
31
|
+
'AU', 'FJ', 'NZ', 'PG', 'WS'];
|
|
32
|
+
var _default = exports.default = {
|
|
33
|
+
component: _.default,
|
|
34
|
+
argTypes: {
|
|
35
|
+
area: {
|
|
36
|
+
control: 'boolean',
|
|
37
|
+
description: 'Determina si el ícono renderiza un área redondeada a su alrededor',
|
|
38
|
+
table: {
|
|
39
|
+
defaultValue: {
|
|
40
|
+
summary: false
|
|
41
|
+
},
|
|
42
|
+
type: {
|
|
43
|
+
summary: 'boolean'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
colorTheme: {
|
|
48
|
+
control: {
|
|
49
|
+
type: 'select'
|
|
50
|
+
},
|
|
51
|
+
options: [...Object.values(_Palette.COLOR_THEMES), undefined],
|
|
52
|
+
description: 'Define el theme de la paleta para el ícono',
|
|
53
|
+
table: {
|
|
54
|
+
type: {
|
|
55
|
+
summary: (0, _utils.joinArgTypes)(Object.keys(_Palette.COLOR_THEMES))
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
fillShade: {
|
|
60
|
+
control: {
|
|
61
|
+
type: 'select'
|
|
62
|
+
},
|
|
63
|
+
options: [...Object.values(_Palette.COLOR_SHADES), undefined],
|
|
64
|
+
description: 'Define la shade de la paleta para el fill del icono',
|
|
65
|
+
table: {
|
|
66
|
+
type: {
|
|
67
|
+
summary: (0, _utils.joinArgTypes)(Object.keys(_Palette.COLOR_SHADES))
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
fillTheme: {
|
|
72
|
+
control: {
|
|
73
|
+
type: 'select'
|
|
74
|
+
},
|
|
75
|
+
options: [...Object.values(_Palette.COLOR_THEMES), undefined],
|
|
76
|
+
description: 'Define el theme de la paleta para el fill del ícono',
|
|
77
|
+
table: {
|
|
78
|
+
type: {
|
|
79
|
+
summary: (0, _utils.joinArgTypes)(Object.keys(_Palette.COLOR_THEMES))
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
name: {
|
|
84
|
+
control: 'text',
|
|
85
|
+
description: 'El nombre del ícono en TablerIcons',
|
|
86
|
+
table: {
|
|
87
|
+
type: {
|
|
88
|
+
summary: 'string'
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
shade: {
|
|
93
|
+
control: {
|
|
94
|
+
type: 'select'
|
|
95
|
+
},
|
|
96
|
+
options: [...Object.values(_Palette.COLOR_SHADES), undefined],
|
|
97
|
+
description: 'Define la shade de la paleta para el ícono',
|
|
98
|
+
table: {
|
|
99
|
+
type: {
|
|
100
|
+
summary: (0, _utils.joinArgTypes)(Object.keys(_Palette.COLOR_SHADES))
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
size: {
|
|
105
|
+
control: {
|
|
106
|
+
type: 'number',
|
|
107
|
+
min: 0,
|
|
108
|
+
max: 100
|
|
109
|
+
},
|
|
110
|
+
description: 'Tamaño del icono',
|
|
111
|
+
table: {
|
|
112
|
+
type: {
|
|
113
|
+
summary: 'number'
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
variant: {
|
|
118
|
+
control: {
|
|
119
|
+
type: 'select'
|
|
120
|
+
},
|
|
121
|
+
description: 'Variante del ícono',
|
|
122
|
+
options: ['default', 'outlined'],
|
|
123
|
+
table: {
|
|
124
|
+
type: {
|
|
125
|
+
summary: (0, _utils.joinArgTypes)(['default', 'outlined'])
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
const Default = exports.Default = {
|
|
132
|
+
name: 'Playground',
|
|
133
|
+
args: {
|
|
134
|
+
name: 'IconHome',
|
|
135
|
+
area: false,
|
|
136
|
+
colorTheme: undefined,
|
|
137
|
+
fillShade: undefined,
|
|
138
|
+
fillTheme: undefined,
|
|
139
|
+
shade: undefined,
|
|
140
|
+
size: undefined,
|
|
141
|
+
variant: _constants.DEFAULT_VARIANT
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
const Variants = exports.Variants = {
|
|
145
|
+
args: {},
|
|
146
|
+
render: args => /*#__PURE__*/_react.default.createElement("div", {
|
|
147
|
+
style: {
|
|
148
|
+
display: 'flex',
|
|
149
|
+
flexDirection: 'column',
|
|
150
|
+
gap: '16px'
|
|
151
|
+
}
|
|
152
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, "Normal Icons", ICON_EXAMPLES.map(name => /*#__PURE__*/_react.default.createElement("div", {
|
|
153
|
+
key: name,
|
|
154
|
+
style: {
|
|
155
|
+
display: 'flex',
|
|
156
|
+
gap: '16px',
|
|
157
|
+
flexWrap: 'wrap'
|
|
158
|
+
}
|
|
159
|
+
}, Object.keys(_Palette.COLOR_THEMES).map(colorTheme => /*#__PURE__*/_react.default.createElement(_.default, _extends({
|
|
160
|
+
key: colorTheme,
|
|
161
|
+
name: name,
|
|
162
|
+
colorTheme: colorTheme
|
|
163
|
+
}, args)))))), /*#__PURE__*/_react.default.createElement("div", null, "Filled Icons", ICON_FILLED_EXAMPLES.map(name => /*#__PURE__*/_react.default.createElement("div", {
|
|
164
|
+
key: name,
|
|
165
|
+
style: {
|
|
166
|
+
display: 'flex',
|
|
167
|
+
gap: '16px',
|
|
168
|
+
flexWrap: 'wrap'
|
|
169
|
+
}
|
|
170
|
+
}, Object.keys(_Palette.COLOR_THEMES).map(colorTheme => /*#__PURE__*/_react.default.createElement(_.default, _extends({
|
|
171
|
+
key: colorTheme,
|
|
172
|
+
name: name,
|
|
173
|
+
colorTheme: colorTheme
|
|
174
|
+
}, args)))))), /*#__PURE__*/_react.default.createElement("div", null, "Energy Icons", ENERGY_ICON_EXAMPLES.map(name => /*#__PURE__*/_react.default.createElement("div", {
|
|
175
|
+
key: name,
|
|
176
|
+
style: {
|
|
177
|
+
display: 'flex',
|
|
178
|
+
gap: '16px',
|
|
179
|
+
flexWrap: 'wrap'
|
|
180
|
+
}
|
|
181
|
+
}, Object.keys(_Palette.COLOR_THEMES).map(colorTheme => /*#__PURE__*/_react.default.createElement(_.default, _extends({
|
|
182
|
+
key: colorTheme,
|
|
183
|
+
name: name,
|
|
184
|
+
colorTheme: colorTheme
|
|
185
|
+
}, args)))))))
|
|
186
|
+
};
|
|
187
|
+
const Flags = exports.Flags = {
|
|
188
|
+
args: {
|
|
189
|
+
size: 100
|
|
190
|
+
},
|
|
191
|
+
render: args => /*#__PURE__*/_react.default.createElement("div", {
|
|
192
|
+
style: {
|
|
193
|
+
display: 'flex',
|
|
194
|
+
gap: '16px',
|
|
195
|
+
flexWrap: 'wrap'
|
|
196
|
+
}
|
|
197
|
+
}, FLAG_EXAMPLES.map(name => /*#__PURE__*/_react.default.createElement(_.default, _extends({
|
|
198
|
+
key: name,
|
|
199
|
+
name: name
|
|
200
|
+
}, args))))
|
|
201
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
|
|
2
|
+
class="icon icon-tabler icons-tabler-filled icon-tabler-bolt">
|
|
3
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
4
|
+
<path
|
|
5
|
+
d="M13 2l.018 .001l.016 .001l.083 .005l.011 .002h.011l.038 .009l.052 .008l.016 .006l.011 .001l.029 .011l.052 .014l.019 .009l.015 .004l.028 .014l.04 .017l.021 .012l.022 .01l.023 .015l.031 .017l.034 .024l.018 .011l.013 .012l.024 .017l.038 .034l.022 .017l.008 .01l.014 .012l.036 .041l.026 .027l.006 .009c.12 .147 .196 .322 .218 .513l.001 .012l.002 .041l.004 .064v6h5a1 1 0 0 1 .868 1.497l-.06 .091l-8 11c-.568 .783 -1.808 .38 -1.808 -.588v-6h-5a1 1 0 0 1 -.868 -1.497l.06 -.091l8 -11l.01 -.013l.018 -.024l.033 -.038l.018 -.022l.009 -.008l.013 -.014l.04 -.036l.028 -.026l.008 -.006a1 1 0 0 1 .402 -.199l.011 -.001l.027 -.005l.074 -.013l.011 -.001l.041 -.002z" />
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
|
|
2
|
+
class="icon icon-tabler icons-tabler-filled icon-tabler-flame">
|
|
3
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
4
|
+
<path
|
|
5
|
+
d="M10 2c0 -.88 1.056 -1.331 1.692 -.722c1.958 1.876 3.096 5.995 1.75 9.12l-.08 .174l.012 .003c.625 .133 1.203 -.43 2.303 -2.173l.14 -.224a1 1 0 0 1 1.582 -.153c1.334 1.435 2.601 4.377 2.601 6.27c0 4.265 -3.591 7.705 -8 7.705s-8 -3.44 -8 -7.706c0 -2.252 1.022 -4.716 2.632 -6.301l.605 -.589c.241 -.236 .434 -.43 .618 -.624c1.43 -1.512 2.145 -2.924 2.145 -4.78" />
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
|
|
2
|
+
class="icon icon-tabler icons-tabler-filled icon-tabler-presentation">
|
|
3
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
4
|
+
<path
|
|
5
|
+
d="M21 3a1 1 0 0 1 0 2v9a3 3 0 0 1 -3 3h-5v2h2a1 1 0 0 1 0 2h-6a1 1 0 0 1 0 -2h2v-2h-5a3 3 0 0 1 -3 -3v-9a1 1 0 1 1 0 -2zm-4.293 4.293a1 1 0 0 0 -1.414 0l-2.293 2.292l-1.293 -1.292a1 1 0 0 0 -1.414 0l-3 3a1 1 0 0 0 0 1.414l.094 .083a1 1 0 0 0 1.32 -.083l2.293 -2.292l1.293 1.292a1 1 0 0 0 1.414 0l3 -3a1 1 0 0 0 0 -1.414" />
|
|
6
|
+
</svg>
|
|
@@ -311,6 +311,54 @@ EnergyIconTruck.defaultProps = {
|
|
|
311
311
|
stroke: "currentColor",
|
|
312
312
|
xmlns: "http://www.w3.org/2000/svg"
|
|
313
313
|
};
|
|
314
|
+
var EnergyIconFlameFilled = function EnergyIconFlameFilled(props) {
|
|
315
|
+
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
316
|
+
d: "M0 0h24v24H0z",
|
|
317
|
+
fill: "none"
|
|
318
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
319
|
+
d: "M10 2c0-.88 1.056-1.331 1.692-.722 1.958 1.876 3.096 5.995 1.75 9.12l-.08.174.012.003c.625.133 1.203-.43 2.303-2.173l.14-.224a1 1 0 0 1 1.582-.153C18.733 9.46 20 12.402 20 14.295 20 18.56 16.409 22 12 22s-8-3.44-8-7.706c0-2.252 1.022-4.716 2.632-6.301l.605-.589c.241-.236.434-.43.618-.624C9.285 5.268 10 3.856 10 2"
|
|
320
|
+
}));
|
|
321
|
+
};
|
|
322
|
+
EnergyIconFlameFilled.defaultProps = {
|
|
323
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
324
|
+
width: "24",
|
|
325
|
+
height: "24",
|
|
326
|
+
viewBox: "0 0 24 24",
|
|
327
|
+
fill: "currentColor",
|
|
328
|
+
className: "icon icon-tabler icons-tabler-filled icon-tabler-flame"
|
|
329
|
+
};
|
|
330
|
+
var EnergyIconBoltFilled = function EnergyIconBoltFilled(props) {
|
|
331
|
+
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
332
|
+
d: "M0 0h24v24H0z",
|
|
333
|
+
fill: "none"
|
|
334
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
335
|
+
d: "m13 2 .018.001.016.001.083.005.011.002h.011l.038.009.052.008.016.006.011.001.029.011.052.014.019.009.015.004.028.014.04.017.021.012.022.01.023.015.031.017.034.024.018.011.013.012.024.017.038.034.022.017.008.01.014.012.036.041.026.027.006.009c.12.147.196.322.218.513l.001.012.002.041L14 3v6h5a1 1 0 0 1 .868 1.497l-.06.091-8 11C11.24 22.371 10 21.968 10 21v-6H5a1 1 0 0 1-.868-1.497l.06-.091 8-11 .01-.013.018-.024.033-.038.018-.022.009-.008.013-.014.04-.036.028-.026.008-.006a1 1 0 0 1 .402-.199l.011-.001.027-.005.074-.013.011-.001.041-.002z"
|
|
336
|
+
}));
|
|
337
|
+
};
|
|
338
|
+
EnergyIconBoltFilled.defaultProps = {
|
|
339
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
340
|
+
width: "24",
|
|
341
|
+
height: "24",
|
|
342
|
+
viewBox: "0 0 24 24",
|
|
343
|
+
fill: "currentColor",
|
|
344
|
+
className: "icon icon-tabler icons-tabler-filled icon-tabler-bolt"
|
|
345
|
+
};
|
|
346
|
+
var EnergyIconPresentationFilled = function EnergyIconPresentationFilled(props) {
|
|
347
|
+
return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
|
|
348
|
+
d: "M0 0h24v24H0z",
|
|
349
|
+
fill: "none"
|
|
350
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
351
|
+
d: "M21 3a1 1 0 0 1 0 2v9a3 3 0 0 1-3 3h-5v2h2a1 1 0 0 1 0 2H9a1 1 0 0 1 0-2h2v-2H6a3 3 0 0 1-3-3V5a1 1 0 1 1 0-2zm-4.293 4.293a1 1 0 0 0-1.414 0L13 9.585l-1.293-1.292a1 1 0 0 0-1.414 0l-3 3a1 1 0 0 0 0 1.414l.094.083a1 1 0 0 0 1.32-.083L11 10.415l1.293 1.292a1 1 0 0 0 1.414 0l3-3a1 1 0 0 0 0-1.414"
|
|
352
|
+
}));
|
|
353
|
+
};
|
|
354
|
+
EnergyIconPresentationFilled.defaultProps = {
|
|
355
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
356
|
+
width: "24",
|
|
357
|
+
height: "24",
|
|
358
|
+
viewBox: "0 0 24 24",
|
|
359
|
+
fill: "currentColor",
|
|
360
|
+
className: "icon icon-tabler icons-tabler-filled icon-tabler-presentation"
|
|
361
|
+
};
|
|
314
362
|
const FILLED_ICON_COLOR = exports.FILLED_ICON_COLOR = 'transparent';
|
|
315
363
|
const DEFAULT_INTERNAL_SHADE = exports.DEFAULT_INTERNAL_SHADE = _Palette.COLOR_SHADES.shade02;
|
|
316
364
|
const DEFAULT_COLOR_THEME = exports.DEFAULT_COLOR_THEME = _Palette.COLOR_THEMES.dark;
|
|
@@ -334,5 +382,8 @@ const ENERGY_ICONS = exports.ENERGY_ICONS = {
|
|
|
334
382
|
EnergyIconTruck,
|
|
335
383
|
EnergyIconConsumptionBoxPlusFilled,
|
|
336
384
|
EnergyIconConsumptionBoxRightFilled,
|
|
337
|
-
EnergyIconConsumptionBoxMinusFilled
|
|
385
|
+
EnergyIconConsumptionBoxMinusFilled,
|
|
386
|
+
EnergyIconFlameFilled,
|
|
387
|
+
EnergyIconBoltFilled,
|
|
388
|
+
EnergyIconPresentationFilled
|
|
338
389
|
};
|
|
@@ -15,10 +15,11 @@ const OnboardingStep = _ref => {
|
|
|
15
15
|
descriptionDataTestId,
|
|
16
16
|
hideFooter = false,
|
|
17
17
|
step,
|
|
18
|
-
totalSteps
|
|
18
|
+
totalSteps,
|
|
19
|
+
variant
|
|
19
20
|
} = _ref;
|
|
20
21
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h3", {
|
|
21
|
-
className: _stylesModule.default.description,
|
|
22
|
+
className: "".concat(_stylesModule.default.description, " ").concat(_stylesModule.default["".concat(variant, "Description")]),
|
|
22
23
|
"data-testid": descriptionDataTestId
|
|
23
24
|
}, step.description), step.vectorImage ? /*#__PURE__*/_react.default.createElement(step.vectorImage, {
|
|
24
25
|
alt: "",
|
|
@@ -30,7 +31,7 @@ const OnboardingStep = _ref => {
|
|
|
30
31
|
}), !hideFooter && /*#__PURE__*/_react.default.createElement("div", {
|
|
31
32
|
className: _stylesModule.default.footer
|
|
32
33
|
}, /*#__PURE__*/_react.default.createElement("h3", {
|
|
33
|
-
className: _stylesModule.default.counterSteps
|
|
34
|
+
className: "".concat(_stylesModule.default.counterSteps, " ").concat(_stylesModule.default["".concat(variant, "CounterSteps")])
|
|
34
35
|
}, currentStep + 1, " de ", totalSteps)));
|
|
35
36
|
};
|
|
36
37
|
OnboardingStep.propTypes = {
|
|
@@ -38,6 +39,7 @@ OnboardingStep.propTypes = {
|
|
|
38
39
|
descriptionDataTestId: _propTypes.string,
|
|
39
40
|
hideFooter: _propTypes.bool,
|
|
40
41
|
step: _propTypes.object,
|
|
41
|
-
totalSteps: _propTypes.number
|
|
42
|
+
totalSteps: _propTypes.number,
|
|
43
|
+
variant: _propTypes.string
|
|
42
44
|
};
|
|
43
45
|
var _default = exports.default = OnboardingStep;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use '../../../../scss/variables/colors.module.scss' as *;
|
|
2
|
-
|
|
3
1
|
.description {
|
|
4
2
|
padding: 0;
|
|
5
3
|
margin-top: 4px;
|
|
@@ -40,11 +38,11 @@
|
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
.nextButton {
|
|
43
|
-
background-color:
|
|
44
|
-
color:
|
|
41
|
+
background-color: var(--light01);
|
|
42
|
+
color: var(--dark05);
|
|
45
43
|
&:hover {
|
|
46
|
-
color:
|
|
47
|
-
background-color:
|
|
44
|
+
color: var(--light01);
|
|
45
|
+
background-color: var(--dark05);
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
|
|
@@ -53,3 +51,18 @@
|
|
|
53
51
|
max-width: 264px;
|
|
54
52
|
object-fit: cover;
|
|
55
53
|
}
|
|
54
|
+
|
|
55
|
+
.lightDescription {
|
|
56
|
+
color: var(--gray04);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.lightCounterSteps {
|
|
60
|
+
color: var(--dark05);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.darkDescription,
|
|
64
|
+
.informationDescription,
|
|
65
|
+
.darkCounterSteps,
|
|
66
|
+
.informationCounterSteps {
|
|
67
|
+
color: var(--light01);
|
|
68
|
+
}
|
|
@@ -112,7 +112,7 @@ const UTOnboarding = _ref => {
|
|
|
112
112
|
},
|
|
113
113
|
onComplete: handleComplete || {},
|
|
114
114
|
options: {
|
|
115
|
-
buttonClass: "".concat(_stylesModule.default.button, " ").concat(classes.buttons),
|
|
115
|
+
buttonClass: "".concat(_stylesModule.default.button, " ").concat(_stylesModule.default["".concat(variant, "Button")] || '', " ").concat(classes.buttons),
|
|
116
116
|
doneLabel: _constants.DONE_LABEL,
|
|
117
117
|
exitOnEsc: false,
|
|
118
118
|
exitOnOverlayClick: false,
|
|
@@ -22,11 +22,12 @@ $introjs-tooltipbuttons: 'introjs-tooltipbuttons';
|
|
|
22
22
|
width: 296px;
|
|
23
23
|
z-index: 1290;
|
|
24
24
|
[class*='#{$introjs-skipbutton}'] {
|
|
25
|
-
color: var(--light01);
|
|
26
25
|
font-size: 30px;
|
|
27
26
|
font-weight: 400;
|
|
27
|
+
height: fit-content;
|
|
28
|
+
line-height: 32px;
|
|
28
29
|
position: relative;
|
|
29
|
-
top: -
|
|
30
|
+
top: -3px;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -57,6 +58,21 @@ $introjs-tooltipbuttons: 'introjs-tooltipbuttons';
|
|
|
57
58
|
opacity 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
.darkButton {
|
|
62
|
+
background-color: var(--dark05) !important;
|
|
63
|
+
color: var(--actionNegative04) !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.informationButton {
|
|
67
|
+
background-color: transparent !important;
|
|
68
|
+
color: var(--actionNegative05) !important;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.lightButton {
|
|
72
|
+
background-color: transparent !important;
|
|
73
|
+
color: var(--actionNeutral05) !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
60
76
|
.button:hover {
|
|
61
77
|
opacity: 0.5;
|
|
62
78
|
}
|
|
@@ -78,6 +94,7 @@ $introjs-tooltipbuttons: 'introjs-tooltipbuttons';
|
|
|
78
94
|
font-family: 'Inter', sans-serif;
|
|
79
95
|
font-size: 16px;
|
|
80
96
|
font-weight: 500;
|
|
97
|
+
place-self: center;
|
|
81
98
|
}
|
|
82
99
|
|
|
83
100
|
[class*='#{$introjs-overlay}'] {
|
|
@@ -145,15 +162,15 @@ $introjs-tooltipbuttons: 'introjs-tooltipbuttons';
|
|
|
145
162
|
display: flex;
|
|
146
163
|
grid-gap: 8px;
|
|
147
164
|
justify-content: flex-end;
|
|
148
|
-
padding-top: 16px !important;
|
|
149
165
|
padding: 0;
|
|
166
|
+
padding-top: 16px !important;
|
|
150
167
|
}
|
|
151
168
|
|
|
152
169
|
.highlight {
|
|
153
170
|
border-radius: 0;
|
|
154
|
-
box-sizing: border-box;
|
|
155
171
|
box-shadow:
|
|
156
172
|
inset 0px 0px 0px 4px #17f455,
|
|
157
173
|
rgba(33, 33, 33, 0.5) 0px 0px 0px 5000px !important;
|
|
174
|
+
box-sizing: border-box;
|
|
158
175
|
z-index: 1290;
|
|
159
176
|
}
|