@widergy/energy-ui 3.3.0 → 3.4.1
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/UTAutocomplete/theme.js +2 -2
- package/dist/components/UTBanner/index.js +38 -0
- package/dist/components/UTBanner/styles.module.scss +7 -0
- package/dist/components/UTBanner/theme.js +18 -0
- package/dist/components/UTButton/index.js +1 -5
- package/dist/components/UTCarousel/components/Slider/index.js +17 -17
- package/dist/components/UTHeader/assets/edit.svg +3 -0
- package/dist/components/UTHeader/assets/ellipsis.svg +3 -0
- package/dist/components/UTHeader/index.js +149 -0
- package/dist/components/UTHeader/styles.module.scss +39 -0
- package/dist/components/UTHeader/theme.js +21 -0
- package/dist/components/UTProgressBar/index.js +2 -2
- package/dist/components/UTSelect/index.js +2 -2
- package/dist/components/UTSelect/theme.js +2 -2
- package/dist/components/UTStepper/components/Connectors/index.js +44 -0
- package/dist/components/UTStepper/components/Connectors/styles.module.scss +19 -0
- package/dist/components/UTStepper/components/Step/assets/check.svg +5 -0
- package/dist/components/UTStepper/components/Step/index.js +61 -0
- package/dist/components/UTStepper/components/Step/styles.module.scss +67 -0
- package/dist/components/UTStepper/constants.js +10 -0
- package/dist/components/UTStepper/index.js +64 -0
- package/dist/components/UTStepper/styles.module.scss +27 -0
- package/dist/components/UTStepper/theme.js +50 -0
- package/dist/components/UTTable/components/TableRow/index.js +2 -2
- package/dist/components/UTTable/components/TableRow/styles.module.scss +6 -7
- package/dist/components/UTTable/index.js +1 -1
- package/dist/components/UTTable/styles.module.scss +2 -5
- package/dist/components/UTTextInput/theme.js +2 -2
- package/dist/components/UTWorkflowContainer/index.js +12 -114
- package/dist/components/UTWorkflowContainer/{components → versions/V0/components}/ActionButton/index.js +1 -1
- package/dist/components/UTWorkflowContainer/versions/V0/index.js +128 -0
- package/dist/components/UTWorkflowContainer/{theme.js → versions/V0/theme.js} +2 -2
- package/dist/components/UTWorkflowContainer/versions/V1/README.md +37 -0
- package/dist/components/UTWorkflowContainer/versions/V1/components/NavActions/constants.js +8 -0
- package/dist/components/UTWorkflowContainer/versions/V1/components/NavActions/index.js +94 -0
- package/dist/components/UTWorkflowContainer/versions/V1/components/NavActions/styles.module.scss +34 -0
- package/dist/components/UTWorkflowContainer/versions/V1/index.js +132 -0
- package/dist/components/UTWorkflowContainer/versions/V1/styles.module.scss +38 -0
- package/dist/components/UTWorkflowContainer/versions/V1/theme.js +32 -0
- package/dist/components/UTWorkflowContainer/versions/V1/types.js +15 -0
- package/dist/scss/variables/mediaQueries.module.scss +1 -1
- package/package.json +1 -1
- /package/dist/components/UTWorkflowContainer/{components → versions/V0/components}/ActionButton/styles.module.scss +0 -0
- /package/dist/components/UTWorkflowContainer/{constants.js → versions/V0/constants.js} +0 -0
- /package/dist/components/UTWorkflowContainer/{hooks → versions/V0/hooks}/use-previous.js +0 -0
- /package/dist/components/UTWorkflowContainer/{styles.module.scss → versions/V0/styles.module.scss} +0 -0
- /package/dist/components/UTWorkflowContainer/{types.js → versions/V0/types.js} +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _propTypes = require("prop-types");
|
|
9
|
+
var _UTButton = _interopRequireDefault(require("../../../../../UTButton"));
|
|
10
|
+
var _UTCheckbox = _interopRequireDefault(require("../../../../../UTCheckbox"));
|
|
11
|
+
var _useScreenSize = require("../../../../../../utils/useScreenSize");
|
|
12
|
+
var _types = require("../../types");
|
|
13
|
+
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
14
|
+
var _constants = require("./constants");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
+
const NavActions = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
backButton = {},
|
|
21
|
+
checkbox,
|
|
22
|
+
currentStep,
|
|
23
|
+
nextButton = {},
|
|
24
|
+
primaryAction,
|
|
25
|
+
secondaryAction
|
|
26
|
+
} = _ref;
|
|
27
|
+
const {
|
|
28
|
+
isMobileOrTablet
|
|
29
|
+
} = (0, _useScreenSize.useScreenSize)();
|
|
30
|
+
const isBackButtonHidden = currentStep === 1 && !backButton.isVisible || backButton.isHidden;
|
|
31
|
+
const hideActions = isBackButtonHidden && nextButton.isHidden;
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
33
|
+
className: "\n ".concat(_stylesModule.default.actionsContainer, "\n ").concat(hideActions ? _stylesModule.default.hidden : '')
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
35
|
+
className: _stylesModule.default.actionsGroup
|
|
36
|
+
}, !isBackButtonHidden && /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
37
|
+
classNames: {
|
|
38
|
+
root: _stylesModule.default.navAction
|
|
39
|
+
},
|
|
40
|
+
colorTheme: "secondary",
|
|
41
|
+
disabled: backButton.disabled,
|
|
42
|
+
Icon: backButton === null || backButton === void 0 ? void 0 : backButton.Icon,
|
|
43
|
+
iconPlacement: "left",
|
|
44
|
+
onClick: backButton.onClick,
|
|
45
|
+
size: "large",
|
|
46
|
+
variant: "text"
|
|
47
|
+
}, backButton.label || _constants.BACK), secondaryAction && !isMobileOrTablet && /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
48
|
+
classNames: {
|
|
49
|
+
root: _stylesModule.default.navAction
|
|
50
|
+
},
|
|
51
|
+
colorTheme: secondaryAction.colorTheme || 'primary',
|
|
52
|
+
disabled: secondaryAction.disabled,
|
|
53
|
+
iconPlacement: "left",
|
|
54
|
+
onClick: secondaryAction.onClick,
|
|
55
|
+
size: "large",
|
|
56
|
+
variant: secondaryAction.variant || 'text'
|
|
57
|
+
}, secondaryAction.label), checkbox && !isMobileOrTablet && /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
+
className: _stylesModule.default.checkboxContainer
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_UTCheckbox.default, checkbox))), /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
+
className: _stylesModule.default.actionsGroup
|
|
61
|
+
}, primaryAction && !isMobileOrTablet && /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
62
|
+
classNames: {
|
|
63
|
+
root: _stylesModule.default.navAction
|
|
64
|
+
},
|
|
65
|
+
colorTheme: primaryAction.colorTheme || 'primary',
|
|
66
|
+
disabled: primaryAction.disabled,
|
|
67
|
+
iconPlacement: "right",
|
|
68
|
+
onClick: primaryAction.onClick,
|
|
69
|
+
size: "large",
|
|
70
|
+
variant: primaryAction.variant || 'semitransparent'
|
|
71
|
+
}, primaryAction.label), !nextButton.isHidden && /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
72
|
+
classNames: {
|
|
73
|
+
root: _stylesModule.default.navAction
|
|
74
|
+
},
|
|
75
|
+
colorTheme: "primary",
|
|
76
|
+
disabled: nextButton.disabled,
|
|
77
|
+
Icon: nextButton === null || nextButton === void 0 ? void 0 : nextButton.Icon,
|
|
78
|
+
iconPlacement: "right",
|
|
79
|
+
onClick: nextButton.onClick,
|
|
80
|
+
size: "large"
|
|
81
|
+
}, nextButton.label || _constants.NEXT)));
|
|
82
|
+
};
|
|
83
|
+
NavActions.propTypes = {
|
|
84
|
+
backButton: _types.buttonTypes,
|
|
85
|
+
checkbox: (0, _propTypes.shape)({
|
|
86
|
+
text: _propTypes.string
|
|
87
|
+
}),
|
|
88
|
+
currentStep: _propTypes.number,
|
|
89
|
+
nextButton: _types.buttonTypes,
|
|
90
|
+
primaryAction: _types.buttonTypes,
|
|
91
|
+
secondaryAction: _types.buttonTypes,
|
|
92
|
+
withIcon: _propTypes.bool
|
|
93
|
+
};
|
|
94
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(NavActions);
|
package/dist/components/UTWorkflowContainer/versions/V1/components/NavActions/styles.module.scss
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@import '../../../../../../scss/variables/mediaQueries.module.scss';
|
|
2
|
+
|
|
3
|
+
.hidden {
|
|
4
|
+
display: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.actionsContainer {
|
|
8
|
+
align-items: center;
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
padding: 16px 32px;
|
|
13
|
+
|
|
14
|
+
@media #{$mobile} {
|
|
15
|
+
padding: 16px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.actionsGroup {
|
|
20
|
+
align-items: center;
|
|
21
|
+
display: flex;
|
|
22
|
+
grid-gap: 8px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.checkboxContainer {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.navAction {
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
@media #{$mobile} {
|
|
32
|
+
width: 100%;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _propTypes = require("prop-types");
|
|
9
|
+
var _UTProgressBar = _interopRequireDefault(require("../../../UTProgressBar"));
|
|
10
|
+
var _WithTheme = _interopRequireDefault(require("../../../WithTheme"));
|
|
11
|
+
var _classesUtils = require("../../../../utils/classesUtils");
|
|
12
|
+
var _UTHeader = _interopRequireDefault(require("../../../UTHeader"));
|
|
13
|
+
var _UTStepper = _interopRequireDefault(require("../../../UTStepper"));
|
|
14
|
+
var _UTCheckbox = _interopRequireDefault(require("../../../UTCheckbox"));
|
|
15
|
+
var _useScreenSize = require("../../../../utils/useScreenSize");
|
|
16
|
+
var _NavActions = _interopRequireDefault(require("./components/NavActions"));
|
|
17
|
+
var _types = require("./types");
|
|
18
|
+
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
19
|
+
var _theme = require("./theme");
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
+
const UTWorkflowContainer = _ref => {
|
|
24
|
+
let {
|
|
25
|
+
backButton,
|
|
26
|
+
banner,
|
|
27
|
+
checkbox,
|
|
28
|
+
children,
|
|
29
|
+
classes: themeClasses = {},
|
|
30
|
+
classNames,
|
|
31
|
+
currentStage,
|
|
32
|
+
currentStep = 1,
|
|
33
|
+
helpText,
|
|
34
|
+
headerActions,
|
|
35
|
+
nextButton,
|
|
36
|
+
onExit,
|
|
37
|
+
primaryAction,
|
|
38
|
+
requiredFieldInfo,
|
|
39
|
+
secondaryAction,
|
|
40
|
+
stages,
|
|
41
|
+
stepperSize = 'S',
|
|
42
|
+
stepsCount,
|
|
43
|
+
subtitle,
|
|
44
|
+
tagline,
|
|
45
|
+
title,
|
|
46
|
+
TitleIcon,
|
|
47
|
+
withIcon = false,
|
|
48
|
+
withStepperPadding = true
|
|
49
|
+
} = _ref;
|
|
50
|
+
(0, _react.useEffect)(() => () => onExit && onExit(), []);
|
|
51
|
+
const classes = (0, _react.useMemo)(() => (0, _classesUtils.mergeClasses)(themeClasses, classNames), [classNames]);
|
|
52
|
+
const {
|
|
53
|
+
isMobileOrTablet
|
|
54
|
+
} = (0, _useScreenSize.useScreenSize)();
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
+
className: "".concat(_stylesModule.default.container, " ").concat(classes.container)
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
+
className: _stylesModule.default.content
|
|
59
|
+
}, stages && /*#__PURE__*/_react.default.createElement(_UTStepper.default, {
|
|
60
|
+
stepperSize,
|
|
61
|
+
currentStage,
|
|
62
|
+
stages,
|
|
63
|
+
withPadding: withStepperPadding
|
|
64
|
+
}), title && /*#__PURE__*/_react.default.createElement(_UTHeader.default, {
|
|
65
|
+
actions: [...(headerActions || []), ...(isMobileOrTablet ? [primaryAction, secondaryAction] : [])],
|
|
66
|
+
banner,
|
|
67
|
+
helpText,
|
|
68
|
+
requiredFieldInfo,
|
|
69
|
+
subtitle,
|
|
70
|
+
tagline,
|
|
71
|
+
title,
|
|
72
|
+
TitleIcon
|
|
73
|
+
}), children), /*#__PURE__*/_react.default.createElement("div", {
|
|
74
|
+
className: "".concat(classes.bottomNav, " ").concat(_stylesModule.default.bottomNav)
|
|
75
|
+
}, checkbox && isMobileOrTablet && /*#__PURE__*/_react.default.createElement("div", {
|
|
76
|
+
className: _stylesModule.default.mobileCheckboxContainer
|
|
77
|
+
}, /*#__PURE__*/_react.default.createElement(_UTCheckbox.default, checkbox)), stepsCount && /*#__PURE__*/_react.default.createElement(_UTProgressBar.default, {
|
|
78
|
+
classNames: {
|
|
79
|
+
barColorPrimary: classes.barColorPrimary,
|
|
80
|
+
colorPrimary: classes.colorPrimary,
|
|
81
|
+
container: _stylesModule.default.progressBarContainer,
|
|
82
|
+
label: _stylesModule.default.progressBarLabel,
|
|
83
|
+
root: _stylesModule.default.progress
|
|
84
|
+
},
|
|
85
|
+
value: currentStep * 100 / (stepsCount + 1)
|
|
86
|
+
}), /*#__PURE__*/_react.default.createElement(_NavActions.default, {
|
|
87
|
+
backButton: backButton,
|
|
88
|
+
checkbox: checkbox,
|
|
89
|
+
currentStep: currentStep,
|
|
90
|
+
nextButton: nextButton,
|
|
91
|
+
primaryAction: primaryAction,
|
|
92
|
+
secondaryAction: secondaryAction,
|
|
93
|
+
withIcon: withIcon
|
|
94
|
+
})));
|
|
95
|
+
};
|
|
96
|
+
UTWorkflowContainer.propTypes = {
|
|
97
|
+
backButton: _types.buttonTypes,
|
|
98
|
+
banner: (0, _propTypes.shape)({
|
|
99
|
+
Icon: _propTypes.element,
|
|
100
|
+
text: _propTypes.string
|
|
101
|
+
}),
|
|
102
|
+
checkbox: (0, _propTypes.shape)({
|
|
103
|
+
text: _propTypes.string
|
|
104
|
+
}),
|
|
105
|
+
children: _propTypes.element,
|
|
106
|
+
classes: (0, _propTypes.objectOf)(_propTypes.string),
|
|
107
|
+
classNames: (0, _propTypes.objectOf)(_propTypes.string),
|
|
108
|
+
currentStage: _propTypes.number,
|
|
109
|
+
currentStep: _propTypes.number,
|
|
110
|
+
extraActions: _propTypes.element,
|
|
111
|
+
helpText: _propTypes.string,
|
|
112
|
+
headerActions: (0, _propTypes.arrayOf)(_types.buttonTypes),
|
|
113
|
+
nextButton: _types.buttonTypes,
|
|
114
|
+
onExit: _propTypes.func,
|
|
115
|
+
primaryAction: _types.buttonTypes,
|
|
116
|
+
requiredFieldInfo: _propTypes.string,
|
|
117
|
+
secondaryAction: _types.buttonTypes,
|
|
118
|
+
stages: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
|
|
119
|
+
id: _propTypes.number,
|
|
120
|
+
label: _propTypes.string,
|
|
121
|
+
Icon: _propTypes.elementType
|
|
122
|
+
})),
|
|
123
|
+
stepperSize: _propTypes.string,
|
|
124
|
+
stepsCount: _propTypes.number,
|
|
125
|
+
subtitle: _propTypes.string,
|
|
126
|
+
tagline: _propTypes.string,
|
|
127
|
+
title: _propTypes.string,
|
|
128
|
+
TitleIcon: _propTypes.element,
|
|
129
|
+
withIcon: _propTypes.bool,
|
|
130
|
+
withStepperPadding: _propTypes.bool
|
|
131
|
+
};
|
|
132
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTWorkflowContainer);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@import '../../../../scss/variables/colors.module.scss';
|
|
2
|
+
@import '../../../../scss/variables/mediaQueries.module.scss';
|
|
3
|
+
|
|
4
|
+
.container {
|
|
5
|
+
border-radius: '4px';
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: center;
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.content {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
padding: 0 32px 16px;
|
|
17
|
+
max-width: 1200px;
|
|
18
|
+
width: calc(100% - 64px);
|
|
19
|
+
|
|
20
|
+
@media #{$tablet-mobile} {
|
|
21
|
+
padding: 0 16px 16px;
|
|
22
|
+
width: calc(100% - 32px);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.progress {
|
|
27
|
+
height: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.bottomNav {
|
|
31
|
+
bottom: 0;
|
|
32
|
+
position: sticky;
|
|
33
|
+
width: 100%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.mobileCheckboxContainer {
|
|
37
|
+
padding-left: 16px;
|
|
38
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.retrieveStyle = void 0;
|
|
7
|
+
var _shadowUtils = require("../../../../utils/shadowUtils");
|
|
8
|
+
const retrieveStyle = _ref => {
|
|
9
|
+
var _theme$UTWorkflowCont, _theme$Palette$shadow, _theme$Palette, _theme$UTWorkflowCont2, _theme$UTWorkflowCont3, _theme$Palette2;
|
|
10
|
+
let {
|
|
11
|
+
theme
|
|
12
|
+
} = _ref;
|
|
13
|
+
return {
|
|
14
|
+
container: {
|
|
15
|
+
backgroundColor: (_theme$UTWorkflowCont = theme.UTWorkflowContainer) === null || _theme$UTWorkflowCont === void 0 || (_theme$UTWorkflowCont = _theme$UTWorkflowCont.container) === null || _theme$UTWorkflowCont === void 0 ? void 0 : _theme$UTWorkflowCont.backgroundColor,
|
|
16
|
+
boxShadow: (0, _shadowUtils.getShadow)({
|
|
17
|
+
color: (_theme$Palette$shadow = theme.Palette.shadows) === null || _theme$Palette$shadow === void 0 ? void 0 : _theme$Palette$shadow.grayscale,
|
|
18
|
+
level: 2
|
|
19
|
+
})
|
|
20
|
+
},
|
|
21
|
+
bottomNav: {
|
|
22
|
+
backgroundColor: (_theme$Palette = theme.Palette) === null || _theme$Palette === void 0 ? void 0 : _theme$Palette.light['01']
|
|
23
|
+
},
|
|
24
|
+
barColorPrimary: {
|
|
25
|
+
backgroundColor: (_theme$UTWorkflowCont2 = theme.UTWorkflowContainer) === null || _theme$UTWorkflowCont2 === void 0 || (_theme$UTWorkflowCont2 = _theme$UTWorkflowCont2.progress) === null || _theme$UTWorkflowCont2 === void 0 ? void 0 : _theme$UTWorkflowCont2.backgroundColor
|
|
26
|
+
},
|
|
27
|
+
colorPrimary: {
|
|
28
|
+
backgroundColor: "".concat(((_theme$UTWorkflowCont3 = theme.UTWorkflowContainer) === null || _theme$UTWorkflowCont3 === void 0 || (_theme$UTWorkflowCont3 = _theme$UTWorkflowCont3.progress) === null || _theme$UTWorkflowCont3 === void 0 ? void 0 : _theme$UTWorkflowCont3.color) || ((_theme$Palette2 = theme.Palette) === null || _theme$Palette2 === void 0 ? void 0 : _theme$Palette2.light['04']), " !important")
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
exports.retrieveStyle = retrieveStyle;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.buttonTypes = void 0;
|
|
7
|
+
var _propTypes = require("prop-types");
|
|
8
|
+
const buttonTypes = exports.buttonTypes = (0, _propTypes.shape)({
|
|
9
|
+
disabled: _propTypes.bool,
|
|
10
|
+
Icon: _propTypes.elementType,
|
|
11
|
+
isHidden: _propTypes.bool,
|
|
12
|
+
isVisible: _propTypes.bool,
|
|
13
|
+
label: _propTypes.string,
|
|
14
|
+
onClick: _propTypes.func
|
|
15
|
+
});
|
|
@@ -3,5 +3,5 @@ $desktop: 'only screen and (min-width : 1024px)';
|
|
|
3
3
|
$tablet: 'only screen and (min-width : 768px) and (max-width : 1023px)';
|
|
4
4
|
$mobile: 'only screen and (max-width : 767px)';
|
|
5
5
|
$desktop-tablet: 'only screen and (min-width : 768px)';
|
|
6
|
-
$tablet-mobile: 'only screen and (max-width :
|
|
6
|
+
$tablet-mobile: 'only screen and (max-width : 1023px)';
|
|
7
7
|
$small-mobile: 'only screen and (max-width : 361px)';
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/UTWorkflowContainer/{styles.module.scss → versions/V0/styles.module.scss}
RENAMED
|
File without changes
|
|
File without changes
|