@widergy/energy-ui 2.2.4 → 2.3.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 +15 -0
- package/dist/components/UTAttachment/components/Preview/index.js +1 -1
- package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +1 -1
- package/dist/components/UTWorkflowContainer/index.js +3 -1
- package/dist/components/UTWorkflowContainer/styles.module.scss +1 -10
- package/dist/components/UTWorkflowContainer/theme.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [2.3.1](https://github.com/widergy/energy-ui/compare/v2.3.0...v2.3.1) (2023-04-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* adds styles to theme ([b3b0e92](https://github.com/widergy/energy-ui/commit/b3b0e928d15f9f614d3776791d8b88139957712c))
|
|
7
|
+
|
|
8
|
+
# [2.3.0](https://github.com/widergy/energy-ui/compare/v2.2.4...v2.3.0) (2023-04-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* added action buttons position theme ([e14dca8](https://github.com/widergy/energy-ui/commit/e14dca81eb0c7a5acd15fe638bd3f5f6f06a59a9))
|
|
14
|
+
* change approach ([c31d31a](https://github.com/widergy/energy-ui/commit/c31d31a0956df42795b42420781e7598ba942b93))
|
|
15
|
+
|
|
1
16
|
## [2.2.4](https://github.com/widergy/energy-ui/compare/v2.2.3...v2.2.4) (2023-03-30)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -13,7 +13,7 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /* eslint-disable jsx-a11y/media-has-caption */
|
|
17
17
|
var Preview = function Preview(_ref) {
|
|
18
18
|
var preview = _ref.preview,
|
|
19
19
|
_ref$previewProps = _ref.previewProps,
|
|
@@ -14,7 +14,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
14
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
15
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
16
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /* eslint-disable react/no-array-index-key */ /* eslint-disable no-plusplus */
|
|
18
18
|
var createRows = function createRows(data, elementsPerRow) {
|
|
19
19
|
var totalRows = Math.ceil(data.length / elementsPerRow);
|
|
20
20
|
var rows = new Array(totalRows).fill(0).map(function () {
|
|
@@ -80,6 +80,8 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
|
|
|
80
80
|
barColorPrimary: classes.barColorPrimary
|
|
81
81
|
}
|
|
82
82
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
83
|
+
className: classes.workflowContainer
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
83
85
|
className: "".concat(_stylesModule.default.actionsContainer, " ").concat(actionsPosition === _constants.ACTIONS_POSITIONS.BOTTOM ? classes.bottomActionsContainer : classes.actionsContainer)
|
|
84
86
|
}, /*#__PURE__*/_react.default.createElement(_ActionButton.default, {
|
|
85
87
|
button: backButton,
|
|
@@ -119,7 +121,7 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
|
|
|
119
121
|
className: _stylesModule.default.subtitle,
|
|
120
122
|
colorTheme: "gray",
|
|
121
123
|
withMarkdown: true
|
|
122
|
-
}, subtitle)), children));
|
|
124
|
+
}, subtitle)), children)));
|
|
123
125
|
};
|
|
124
126
|
UTWorkflowContainer.propTypes = {
|
|
125
127
|
actionsPosition: _propTypes.bool,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
.actionsContainer {
|
|
7
7
|
align-items: center;
|
|
8
8
|
display: flex;
|
|
9
|
-
justify-content:
|
|
9
|
+
justify-content: space-between;
|
|
10
10
|
padding: 16px 0 24px;
|
|
11
11
|
position: relative;
|
|
12
12
|
width: 100%;
|
|
@@ -30,12 +30,3 @@
|
|
|
30
30
|
text-align: center;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.backButton {
|
|
34
|
-
left: 0;
|
|
35
|
-
position: absolute;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.nextButton {
|
|
39
|
-
position: absolute;
|
|
40
|
-
right: 0;
|
|
41
|
-
}
|
|
@@ -105,7 +105,10 @@ var retrieveStyle = function retrieveStyle(_ref) {
|
|
|
105
105
|
margin: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'bottomActions', 'container', 'padding'], '0'),
|
|
106
106
|
minHeight: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'bottomActions', 'container', 'minHeight'], '90px'),
|
|
107
107
|
padding: (0, _classesUtils.withImportant)((theme === null || theme === void 0 ? void 0 : (_theme$UTWorkflowCont7 = theme.UTWorkflowContainer) === null || _theme$UTWorkflowCont7 === void 0 ? void 0 : (_theme$UTWorkflowCont8 = _theme$UTWorkflowCont7.bottomActions) === null || _theme$UTWorkflowCont8 === void 0 ? void 0 : (_theme$UTWorkflowCont9 = _theme$UTWorkflowCont8.container) === null || _theme$UTWorkflowCont9 === void 0 ? void 0 : _theme$UTWorkflowCont9.padding) || 0)
|
|
108
|
-
}
|
|
108
|
+
},
|
|
109
|
+
workflowContainer: _defineProperty({
|
|
110
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'workflowContainer', 'padding'])
|
|
111
|
+
}, mobile, (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'workflowContainer', 'mobile', 'padding']))
|
|
109
112
|
};
|
|
110
113
|
};
|
|
111
114
|
exports.retrieveStyle = retrieveStyle;
|