@widergy/energy-ui 1.102.0 → 1.102.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 +28 -0
- package/dist/components/EnergyThemeProvider/index.js +12 -47
- package/dist/components/Loading/constants.js +1 -1
- package/dist/components/Loading/index.js +12 -10
- package/dist/components/Loading/theme.js +9 -11
- package/dist/components/UTAlert/AlertHandler.js +71 -102
- package/dist/components/UTAlert/index.js +60 -97
- package/dist/components/UTAlert/theme.js +43 -47
- package/dist/components/UTAttachment/components/Preview/index.js +7 -8
- package/dist/components/UTAttachment/constants.js +7 -7
- package/dist/components/UTAttachment/index.js +148 -259
- package/dist/components/UTAttachment/layout.js +24 -24
- package/dist/components/UTAttachment/theme.js +12 -14
- package/dist/components/UTAttachment/utils.js +37 -140
- package/dist/components/UTAutocomplete/components/ListBox/index.js +12 -24
- package/dist/components/UTAutocomplete/components/ListBox/utils.js +8 -11
- package/dist/components/UTAutocomplete/constants.js +12 -12
- package/dist/components/UTAutocomplete/index.js +45 -75
- package/dist/components/UTAutocomplete/theme.js +4 -4
- package/dist/components/UTBarChart/components/Bars/components/Bar/components/Rect/index.js +18 -18
- package/dist/components/UTBarChart/components/Bars/components/Bar/constants.js +1 -1
- package/dist/components/UTBarChart/components/Bars/components/Bar/index.js +16 -16
- package/dist/components/UTBarChart/components/Bars/constants.js +4 -4
- package/dist/components/UTBarChart/components/Bars/index.js +70 -87
- package/dist/components/UTBarChart/components/Legend/constants.js +13 -16
- package/dist/components/UTBarChart/components/Legend/index.js +73 -102
- package/dist/components/UTBarChart/components/Levels/index.js +15 -12
- package/dist/components/UTBarChart/components/Levels/utils.js +25 -27
- package/dist/components/UTBarChart/components/LinearPlot/index.js +23 -20
- package/dist/components/UTBarChart/components/LinearPlot/utils.js +16 -18
- package/dist/components/UTBarChart/components/Pagination/index.js +20 -25
- package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +34 -17
- package/dist/components/UTBarChart/components/XAxis/components/Decoration/constants.js +2 -2
- package/dist/components/UTBarChart/components/XAxis/components/Decoration/index.js +19 -18
- package/dist/components/UTBarChart/components/XAxis/constants.js +1 -1
- package/dist/components/UTBarChart/components/XAxis/index.js +61 -75
- package/dist/components/UTBarChart/components/YAxis/AxisElement/index.js +11 -9
- package/dist/components/UTBarChart/components/YAxis/constants.js +1 -1
- package/dist/components/UTBarChart/components/YAxis/index.js +21 -28
- package/dist/components/UTBarChart/components/YAxis/utils.js +2 -2
- package/dist/components/UTBarChart/constants.js +4 -4
- package/dist/components/UTBarChart/hooks/use-component-dimensions.js +25 -45
- package/dist/components/UTBarChart/hooks/use-component-position.js +13 -14
- package/dist/components/UTBarChart/hooks/use-dynamic-margins.js +23 -49
- package/dist/components/UTBarChart/hooks/use-resize-event.js +14 -40
- package/dist/components/UTBarChart/index.js +142 -172
- package/dist/components/UTBarChart/theme.js +99 -98
- package/dist/components/UTBarChart/types.js +15 -8
- package/dist/components/UTBarChart/utils.js +107 -117
- package/dist/components/UTButton/index.js +49 -84
- package/dist/components/UTButton/theme.js +172 -174
- package/dist/components/UTCBUInput/index.js +38 -50
- package/dist/components/UTCBUInput/theme.js +5 -7
- package/dist/components/UTCaptcha/index.js +16 -58
- package/dist/components/UTCard/components/UTCardFooter/index.js +15 -15
- package/dist/components/UTCard/index.js +82 -142
- package/dist/components/UTCard/theme.js +8 -9
- package/dist/components/UTCard/types.js +1 -1
- package/dist/components/UTCarousel/components/Button/index.js +12 -12
- package/dist/components/UTCarousel/components/Legend/index.js +13 -15
- package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +15 -15
- package/dist/components/UTCarousel/components/Slider/constants.js +6 -6
- package/dist/components/UTCarousel/components/Slider/index.js +174 -270
- package/dist/components/UTCarousel/components/Slider/layout.js +67 -106
- package/dist/components/UTCarousel/index.js +13 -13
- package/dist/components/UTCarousel/theme.js +35 -37
- package/dist/components/UTCheckList/constants.js +1 -1
- package/dist/components/UTCheckList/index.js +69 -92
- package/dist/components/UTCheckList/theme.js +66 -70
- package/dist/components/UTCheckbox/index.js +67 -108
- package/dist/components/UTCheckbox/theme.js +50 -54
- package/dist/components/UTCuit/index.js +107 -150
- package/dist/components/UTCuit/theme.js +47 -49
- package/dist/components/UTDatePicker/components/Day/constants.js +1 -1
- package/dist/components/UTDatePicker/components/Day/index.js +13 -13
- package/dist/components/UTDatePicker/constants.js +21 -23
- package/dist/components/UTDatePicker/index.js +61 -89
- package/dist/components/UTDatePicker/theme.js +137 -141
- package/dist/components/UTDatePicker/types.js +1 -1
- package/dist/components/UTDatePicker/utils.js +4 -8
- package/dist/components/UTDialog/components/ActionButton/index.js +9 -7
- package/dist/components/UTDialog/constants.js +3 -3
- package/dist/components/UTDialog/index.js +36 -35
- package/dist/components/UTDialog/theme.js +92 -94
- package/dist/components/UTDialog/types.js +3 -3
- package/dist/components/UTDotMenu/index.js +30 -70
- package/dist/components/UTExternalLink/index.js +16 -12
- package/dist/components/UTFileInput/constants.js +2 -2
- package/dist/components/UTFileInput/index.js +6 -42
- package/dist/components/UTFileInput/layout.js +64 -109
- package/dist/components/UTIconButton/index.js +51 -86
- package/dist/components/UTIconButton/theme.js +53 -55
- package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +42 -45
- package/dist/components/UTImageRadio/constants.js +4 -4
- package/dist/components/UTImageRadio/hooks/use-component-dimensions.js +25 -45
- package/dist/components/UTImageRadio/hooks/use-resize-event.js +14 -40
- package/dist/components/UTImageRadio/index.js +40 -58
- package/dist/components/UTImageRadio/theme.js +8 -9
- package/dist/components/UTImageRadio/types.js +1 -1
- package/dist/components/UTImageRadio/utils.js +2 -6
- package/dist/components/UTLabel/index.js +71 -111
- package/dist/components/UTLabel/theme.js +84 -86
- package/dist/components/UTList/index.js +14 -16
- package/dist/components/UTLoading/index.js +16 -16
- package/dist/components/UTMap/components/GoogleMaps/constants.js +8 -10
- package/dist/components/UTMap/components/GoogleMaps/index.js +62 -107
- package/dist/components/UTMap/constants.js +7 -7
- package/dist/components/UTMap/index.js +164 -235
- package/dist/components/UTMap/types.js +4 -4
- package/dist/components/UTMap/utils.js +29 -46
- package/dist/components/UTMap/withGoogleMapScript.js +13 -17
- package/dist/components/UTMenu/index.js +48 -72
- package/dist/components/UTMenu/theme.js +15 -17
- package/dist/components/UTMenu/utils.js +6 -12
- package/dist/components/UTPanel/index.js +27 -29
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +13 -9
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +23 -19
- package/dist/components/UTPasswordField/components/PasswordValidations/index.js +53 -49
- package/dist/components/UTPasswordField/index.js +20 -22
- package/dist/components/UTPasswordField/theme.js +28 -30
- package/dist/components/UTPhoneInput/constants.js +4 -4
- package/dist/components/UTPhoneInput/index.js +180 -229
- package/dist/components/UTPhoneInput/theme.js +110 -114
- package/dist/components/UTPieChart/components/ArrowLabel/constants.js +4 -4
- package/dist/components/UTPieChart/components/ArrowLabel/index.js +23 -21
- package/dist/components/UTPieChart/components/Legend/contants.js +4 -4
- package/dist/components/UTPieChart/components/Legend/index.js +24 -20
- package/dist/components/UTPieChart/constants.js +14 -14
- package/dist/components/UTPieChart/hooks/use-animated-value/constants.js +13 -22
- package/dist/components/UTPieChart/hooks/use-animated-value/index.js +14 -42
- package/dist/components/UTPieChart/hooks/use-component-dimensions.js +25 -45
- package/dist/components/UTPieChart/hooks/use-mutable-state.js +4 -21
- package/dist/components/UTPieChart/hooks/use-resize-event.js +14 -40
- package/dist/components/UTPieChart/index.js +73 -84
- package/dist/components/UTPieChart/theme.js +14 -16
- package/dist/components/UTPieChart/utils.js +4 -2
- package/dist/components/UTProgressBar/constants.js +3 -3
- package/dist/components/UTProgressBar/index.js +12 -10
- package/dist/components/UTProgressBar/theme.js +25 -27
- package/dist/components/UTProgressBar/types.js +1 -1
- package/dist/components/UTRadioGroup/index.js +36 -78
- package/dist/components/UTRadioGroup/theme.js +85 -89
- package/dist/components/UTRating/components/Circle/index.js +47 -69
- package/dist/components/UTRating/components/Star/index.js +39 -41
- package/dist/components/UTRating/constants.js +5 -5
- package/dist/components/UTRating/index.js +20 -44
- package/dist/components/UTRating/theme.js +9 -11
- package/dist/components/UTRipple/Ripple.js +21 -49
- package/dist/components/UTRipple/index.js +19 -50
- package/dist/components/UTSelect/components/Option/index.js +12 -12
- package/dist/components/UTSelect/constants.js +5 -5
- package/dist/components/UTSelect/index.js +56 -82
- package/dist/components/UTSelect/theme.js +44 -46
- package/dist/components/UTSelect/utils.js +3 -13
- package/dist/components/UTSkeleton/index.js +9 -47
- package/dist/components/UTSwitch/constants.js +3 -3
- package/dist/components/UTSwitch/index.js +26 -31
- package/dist/components/UTSwitch/theme.js +107 -109
- package/dist/components/UTTable/components/ActionIcons/index.js +48 -96
- package/dist/components/UTTable/components/Cell/index.js +16 -22
- package/dist/components/UTTable/components/HeaderCell/constants.js +1 -1
- package/dist/components/UTTable/components/HeaderCell/index.js +21 -29
- package/dist/components/UTTable/components/HeaderCell/utils.js +3 -3
- package/dist/components/UTTable/components/PrimaryAction/index.js +11 -9
- package/dist/components/UTTable/components/ResponsiveCell/index.js +19 -22
- package/dist/components/UTTable/components/Status/index.js +18 -21
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/index.js +9 -7
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/utils.js +7 -13
- package/dist/components/UTTable/components/TableFooter/components/Pagination/components/NavigationButton/index.js +11 -11
- package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +20 -30
- package/dist/components/UTTable/components/TableFooter/components/Pagination/utils.js +8 -20
- package/dist/components/UTTable/components/TableFooter/constants.js +1 -1
- package/dist/components/UTTable/components/TableFooter/index.js +16 -16
- package/dist/components/UTTable/components/TableHeader/index.js +10 -10
- package/dist/components/UTTable/components/TableRow/index.js +71 -91
- package/dist/components/UTTable/constants.js +27 -27
- package/dist/components/UTTable/hook.js +10 -34
- package/dist/components/UTTable/index.js +191 -299
- package/dist/components/UTTable/styles.module.scss +3 -0
- package/dist/components/UTTable/theme.js +13 -15
- package/dist/components/UTTable/types.js +4 -4
- package/dist/components/UTTable/utils.js +41 -61
- package/dist/components/UTTabs/components/TooltipTab/index.js +18 -34
- package/dist/components/UTTabs/constants.js +5 -5
- package/dist/components/UTTabs/index.js +54 -99
- package/dist/components/UTTabs/theme.js +112 -114
- package/dist/components/UTTabs/utils.js +1 -1
- package/dist/components/UTTextArea/index.js +20 -19
- package/dist/components/UTTextArea/theme.js +1 -1
- package/dist/components/UTTextInput/constants.js +1 -1
- package/dist/components/UTTextInput/index.js +103 -154
- package/dist/components/UTTextInput/theme.js +29 -31
- package/dist/components/UTThirdPartyCookieChecker/index.js +16 -20
- package/dist/components/UTToggle/components/ToggleOption/index.js +17 -17
- package/dist/components/UTToggle/index.js +23 -23
- package/dist/components/UTToggle/theme.js +46 -48
- package/dist/components/UTTooltip/index.js +32 -72
- package/dist/components/UTTouchableWithoutFeedback/index.js +14 -37
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/constants.js +2 -2
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +33 -32
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js +4 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/constants.js +7 -7
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-ledger.js +7 -23
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-scrollbar-throttle.js +5 -5
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-virtualized-data.js +22 -60
- package/dist/components/UTVirtualizedList/components/VirtualizedData/index.js +30 -35
- package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +83 -102
- package/dist/components/UTVirtualizedList/constants.js +5 -5
- package/dist/components/UTVirtualizedList/hooks/use-component-dimensions.js +25 -45
- package/dist/components/UTVirtualizedList/hooks/use-resize-event.js +15 -41
- package/dist/components/UTVirtualizedList/index.js +28 -52
- package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +10 -10
- package/dist/components/UTWorkflowContainer/constants.js +4 -4
- package/dist/components/UTWorkflowContainer/index.js +26 -35
- package/dist/components/UTWorkflowContainer/theme.js +70 -63
- package/dist/components/UTWorkflowContainer/types.js +1 -1
- package/dist/components/WithLoading/index.js +9 -13
- package/dist/components/WithTheme/index.js +9 -15
- package/dist/components/WithTheme/layout.js +18 -53
- package/dist/components/WithTouch/index.js +10 -16
- package/dist/index.js +142 -142
- package/dist/theme.js +6 -4
- package/dist/types/commonTypes.js +1 -1
- package/dist/types/formTypes.js +4 -4
- package/dist/types/tableTypes.js +1 -1
- package/dist/utils/classesUtils.js +4 -16
- package/dist/utils/helperFunctions.js +4 -4
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [1.102.4](https://github.com/widergy/energy-ui/compare/v1.102.3...v1.102.4) (2021-11-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fixes on proptypes and uttable ([#244](https://github.com/widergy/energy-ui/issues/244)) ([5b8f222](https://github.com/widergy/energy-ui/commit/5b8f2220fc3574d099d2fd72b6041f7650ab0116))
|
|
7
|
+
|
|
8
|
+
## [1.102.3](https://github.com/widergy/energy-ui/compare/v1.102.2...v1.102.3) (2021-11-26)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fixed selected bar label ([#245](https://github.com/widergy/energy-ui/issues/245)) ([72d9c7a](https://github.com/widergy/energy-ui/commit/72d9c7ab72e8981afed62a0391a33e554e703f5e))
|
|
14
|
+
|
|
15
|
+
## [1.102.2](https://github.com/widergy/energy-ui/compare/v1.102.1...v1.102.2) (2021-11-12)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* fix uttable horizontal trackpad scrolling ([#242](https://github.com/widergy/energy-ui/issues/242)) ([6059af9](https://github.com/widergy/energy-ui/commit/6059af96ab3940c1636f24eacf70f5677acdfa7f))
|
|
21
|
+
|
|
22
|
+
## [1.102.1](https://github.com/widergy/energy-ui/compare/v1.102.0...v1.102.1) (2021-11-08)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* replaced moment with dayjs ([#239](https://github.com/widergy/energy-ui/issues/239)) ([4890fb5](https://github.com/widergy/energy-ui/commit/4890fb5a96afa677436ace0c6e6f524976e79e38))
|
|
28
|
+
|
|
1
29
|
# [1.102.0](https://github.com/widergy/energy-ui/compare/v1.101.3...v1.102.0) (2021-11-01)
|
|
2
30
|
|
|
3
31
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -13,55 +11,22 @@ var _propTypes = require("prop-types");
|
|
|
13
11
|
|
|
14
12
|
var _theme = require("../../theme");
|
|
15
13
|
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function
|
|
17
|
-
|
|
18
|
-
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; }
|
|
19
|
-
|
|
20
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
-
|
|
22
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
23
|
-
|
|
24
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
25
|
-
|
|
26
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
|
-
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
-
|
|
30
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
15
|
|
|
32
|
-
function
|
|
16
|
+
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; }
|
|
33
17
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var _super = _createSuper(ThemeProvider);
|
|
44
|
-
|
|
45
|
-
function ThemeProvider() {
|
|
46
|
-
_classCallCheck(this, ThemeProvider);
|
|
47
|
-
|
|
48
|
-
return _super.apply(this, arguments);
|
|
18
|
+
class ThemeProvider extends _react.PureComponent {
|
|
19
|
+
render() {
|
|
20
|
+
const {
|
|
21
|
+
children,
|
|
22
|
+
theme
|
|
23
|
+
} = this.props;
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_theme.EnergyThemeProvider, {
|
|
25
|
+
value: theme
|
|
26
|
+
}, children);
|
|
49
27
|
}
|
|
50
28
|
|
|
51
|
-
|
|
52
|
-
key: "render",
|
|
53
|
-
value: function render() {
|
|
54
|
-
var _this$props = this.props,
|
|
55
|
-
children = _this$props.children,
|
|
56
|
-
theme = _this$props.theme;
|
|
57
|
-
return /*#__PURE__*/_react.default.createElement(_theme.EnergyThemeProvider, {
|
|
58
|
-
value: theme
|
|
59
|
-
}, children);
|
|
60
|
-
}
|
|
61
|
-
}]);
|
|
62
|
-
|
|
63
|
-
return ThemeProvider;
|
|
64
|
-
}(_react.PureComponent);
|
|
29
|
+
}
|
|
65
30
|
|
|
66
31
|
ThemeProvider.propTypes = {
|
|
67
32
|
theme: _propTypes.any // eslint-disable-line react/forbid-prop-types
|
|
@@ -25,16 +25,18 @@ var _constants = require("./constants");
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
const Loading = _ref => {
|
|
29
|
+
let {
|
|
30
|
+
text,
|
|
31
|
+
className,
|
|
32
|
+
thickness,
|
|
33
|
+
size,
|
|
34
|
+
classes,
|
|
35
|
+
theme,
|
|
36
|
+
textClassName
|
|
37
|
+
} = _ref;
|
|
38
|
+
const defaultSize = (0, _seamlessImmutable.getIn)(theme, ['Loading', 'base', 'size'], 85);
|
|
39
|
+
const defaultThickness = (0, _seamlessImmutable.getIn)(theme, ['Loading', 'base', 'thickness'], 1.5);
|
|
38
40
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
39
41
|
className: "".concat(_stylesModule.default.container, " ").concat(className)
|
|
40
42
|
}, /*#__PURE__*/_react.default.createElement(_CircularProgress.default, {
|
|
@@ -11,16 +11,14 @@ var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
};
|
|
14
|
+
const retrieveStyle = theme => ({
|
|
15
|
+
base: {
|
|
16
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['Loading', 'base', 'color'], _colors.default.loadingBase)
|
|
17
|
+
},
|
|
18
|
+
text: {
|
|
19
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['Loading', 'text', 'color'], _colors.default.black),
|
|
20
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['Loading', 'text', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium']))
|
|
21
|
+
}
|
|
22
|
+
});
|
|
25
23
|
|
|
26
24
|
exports.retrieveStyle = retrieveStyle;
|
|
@@ -5,122 +5,91 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const sendAlert = (setState, parameters) => setTimeout(() => setState({ ...parameters,
|
|
9
|
+
open: true
|
|
10
|
+
}), 300);
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
13
|
-
|
|
14
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
-
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
17
|
-
|
|
18
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
-
|
|
20
|
-
var sendAlert = function sendAlert(setState, parameters) {
|
|
21
|
-
return setTimeout(function () {
|
|
22
|
-
return setState(_objectSpread(_objectSpread({}, parameters), {}, {
|
|
23
|
-
open: true
|
|
24
|
-
}));
|
|
25
|
-
}, 300);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
var defaultState = {
|
|
12
|
+
const defaultState = {
|
|
29
13
|
open: false,
|
|
30
14
|
type: 'info',
|
|
31
15
|
message: '',
|
|
32
16
|
topRight: false,
|
|
33
17
|
timeDuration: 0
|
|
34
18
|
};
|
|
35
|
-
|
|
19
|
+
let currentAlert;
|
|
36
20
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
21
|
+
const close = setState => setState({ ...currentAlert,
|
|
22
|
+
open: false
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
class AlertHandler {
|
|
26
|
+
init(_ref) {
|
|
27
|
+
let {
|
|
28
|
+
setState,
|
|
29
|
+
duration = 5000
|
|
30
|
+
} = _ref;
|
|
31
|
+
this.setState = setState;
|
|
32
|
+
defaultState.timeDuration = duration;
|
|
33
|
+
|
|
34
|
+
defaultState.onClose = () => close(setState);
|
|
35
|
+
|
|
36
|
+
currentAlert = defaultState;
|
|
37
|
+
this.setState(defaultState);
|
|
38
|
+
}
|
|
42
39
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
success(message) {
|
|
41
|
+
let topRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultState.topRight;
|
|
42
|
+
let timeDuration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultState.timeDuration;
|
|
43
|
+
close(this.setState);
|
|
44
|
+
currentAlert = { ...currentAlert,
|
|
45
|
+
message,
|
|
46
|
+
type: 'success',
|
|
47
|
+
topRight,
|
|
48
|
+
timeDuration
|
|
49
|
+
};
|
|
50
|
+
sendAlert(this.setState, currentAlert);
|
|
46
51
|
}
|
|
47
52
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
error(message) {
|
|
54
|
+
let topRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultState.topRight;
|
|
55
|
+
let timeDuration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultState.timeDuration;
|
|
56
|
+
close(this.setState);
|
|
57
|
+
currentAlert = { ...currentAlert,
|
|
58
|
+
message,
|
|
59
|
+
type: 'error',
|
|
60
|
+
topRight,
|
|
61
|
+
timeDuration
|
|
62
|
+
};
|
|
63
|
+
sendAlert(this.setState, currentAlert);
|
|
64
|
+
}
|
|
56
65
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
info(message) {
|
|
67
|
+
let topRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultState.topRight;
|
|
68
|
+
let timeDuration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultState.timeDuration;
|
|
69
|
+
close(this.setState);
|
|
70
|
+
currentAlert = { ...currentAlert,
|
|
71
|
+
message,
|
|
72
|
+
type: 'info',
|
|
73
|
+
topRight,
|
|
74
|
+
timeDuration
|
|
75
|
+
};
|
|
76
|
+
sendAlert(this.setState, currentAlert);
|
|
77
|
+
}
|
|
60
78
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
topRight: topRight,
|
|
74
|
-
timeDuration: timeDuration
|
|
75
|
-
});
|
|
76
|
-
sendAlert(this.setState, currentAlert);
|
|
77
|
-
}
|
|
78
|
-
}, {
|
|
79
|
-
key: "error",
|
|
80
|
-
value: function error(message) {
|
|
81
|
-
var topRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultState.topRight;
|
|
82
|
-
var timeDuration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultState.timeDuration;
|
|
83
|
-
close(this.setState);
|
|
84
|
-
currentAlert = _objectSpread(_objectSpread({}, currentAlert), {}, {
|
|
85
|
-
message: message,
|
|
86
|
-
type: 'error',
|
|
87
|
-
topRight: topRight,
|
|
88
|
-
timeDuration: timeDuration
|
|
89
|
-
});
|
|
90
|
-
sendAlert(this.setState, currentAlert);
|
|
91
|
-
}
|
|
92
|
-
}, {
|
|
93
|
-
key: "info",
|
|
94
|
-
value: function info(message) {
|
|
95
|
-
var topRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultState.topRight;
|
|
96
|
-
var timeDuration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultState.timeDuration;
|
|
97
|
-
close(this.setState);
|
|
98
|
-
currentAlert = _objectSpread(_objectSpread({}, currentAlert), {}, {
|
|
99
|
-
message: message,
|
|
100
|
-
type: 'info',
|
|
101
|
-
topRight: topRight,
|
|
102
|
-
timeDuration: timeDuration
|
|
103
|
-
});
|
|
104
|
-
sendAlert(this.setState, currentAlert);
|
|
105
|
-
}
|
|
106
|
-
}, {
|
|
107
|
-
key: "warning",
|
|
108
|
-
value: function warning(message) {
|
|
109
|
-
var topRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultState.topRight;
|
|
110
|
-
var timeDuration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultState.timeDuration;
|
|
111
|
-
close(this.setState);
|
|
112
|
-
currentAlert = _objectSpread(_objectSpread({}, currentAlert), {}, {
|
|
113
|
-
message: message,
|
|
114
|
-
type: 'warning',
|
|
115
|
-
topRight: topRight,
|
|
116
|
-
timeDuration: timeDuration
|
|
117
|
-
});
|
|
118
|
-
sendAlert(this.setState, currentAlert);
|
|
119
|
-
}
|
|
120
|
-
}]);
|
|
79
|
+
warning(message) {
|
|
80
|
+
let topRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultState.topRight;
|
|
81
|
+
let timeDuration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultState.timeDuration;
|
|
82
|
+
close(this.setState);
|
|
83
|
+
currentAlert = { ...currentAlert,
|
|
84
|
+
message,
|
|
85
|
+
type: 'warning',
|
|
86
|
+
topRight,
|
|
87
|
+
timeDuration
|
|
88
|
+
};
|
|
89
|
+
sendAlert(this.setState, currentAlert);
|
|
90
|
+
}
|
|
121
91
|
|
|
122
|
-
|
|
123
|
-
}();
|
|
92
|
+
}
|
|
124
93
|
|
|
125
94
|
var _default = new AlertHandler();
|
|
126
95
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -35,69 +33,40 @@ var _theme = require("./theme");
|
|
|
35
33
|
|
|
36
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
35
|
|
|
38
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
43
|
-
|
|
44
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
45
|
-
|
|
46
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
47
|
-
|
|
48
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
49
|
-
|
|
50
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
51
|
-
|
|
52
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
53
|
-
|
|
54
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
55
|
-
|
|
56
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
57
|
-
|
|
58
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
36
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
59
37
|
|
|
60
|
-
function
|
|
38
|
+
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; }
|
|
61
39
|
|
|
62
40
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
63
41
|
|
|
64
|
-
|
|
42
|
+
const variantIcon = {
|
|
65
43
|
success: _CheckCircle.default,
|
|
66
44
|
error: _Error.default,
|
|
67
45
|
info: _Info.default,
|
|
68
46
|
warning: _Warning.default
|
|
69
47
|
};
|
|
70
48
|
|
|
71
|
-
|
|
72
|
-
|
|
49
|
+
class UTAlert extends _react.PureComponent {
|
|
50
|
+
constructor() {
|
|
51
|
+
super(...arguments);
|
|
73
52
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
function UTAlert() {
|
|
77
|
-
var _this;
|
|
78
|
-
|
|
79
|
-
_classCallCheck(this, UTAlert);
|
|
80
|
-
|
|
81
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
82
|
-
args[_key] = arguments[_key];
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
86
|
-
|
|
87
|
-
_defineProperty(_assertThisInitialized(_this), "handleClose", function (_, reason) {
|
|
53
|
+
_defineProperty(this, "handleClose", (_, reason) => {
|
|
88
54
|
// In case you don't want to dismiss notification clicking away
|
|
89
55
|
if (reason === 'clickaway') {
|
|
90
56
|
return;
|
|
91
57
|
}
|
|
92
58
|
|
|
93
|
-
|
|
59
|
+
const {
|
|
60
|
+
content: alert
|
|
61
|
+
} = this.props;
|
|
94
62
|
return alert.onClose && alert.onClose();
|
|
95
63
|
});
|
|
96
64
|
|
|
97
|
-
_defineProperty(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
65
|
+
_defineProperty(this, "selectAlertType", () => {
|
|
66
|
+
const {
|
|
67
|
+
content: alert,
|
|
68
|
+
classes
|
|
69
|
+
} = this.props;
|
|
101
70
|
|
|
102
71
|
switch (alert.type) {
|
|
103
72
|
case 'info':
|
|
@@ -113,60 +82,54 @@ var UTAlert = /*#__PURE__*/function (_PureComponent) {
|
|
|
113
82
|
return classes.success;
|
|
114
83
|
}
|
|
115
84
|
});
|
|
116
|
-
|
|
117
|
-
return _this;
|
|
118
85
|
}
|
|
119
86
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
87
|
+
render() {
|
|
88
|
+
const {
|
|
89
|
+
content: alert = {},
|
|
90
|
+
withoutIcon
|
|
91
|
+
} = this.props;
|
|
92
|
+
const anchor = {
|
|
93
|
+
vertical: alert.topRight ? 'top' : 'bottom',
|
|
94
|
+
horizontal: alert.topRight ? 'right' : 'left'
|
|
95
|
+
};
|
|
96
|
+
const transition = {
|
|
97
|
+
direction: alert.topRight ? 'left' : 'up'
|
|
98
|
+
};
|
|
99
|
+
const AlertTypeIcon = alert.type && variantIcon[alert.type];
|
|
100
|
+
return /*#__PURE__*/_react.default.createElement(_Snackbar.default, {
|
|
101
|
+
anchorOrigin: anchor,
|
|
102
|
+
open: alert.open,
|
|
103
|
+
autoHideDuration: alert.timeDuration,
|
|
104
|
+
onClose: this.handleClose,
|
|
105
|
+
TransitionProps: transition,
|
|
106
|
+
TransitionComponent: _Slide.default,
|
|
107
|
+
classes: {
|
|
108
|
+
root: _stylesModule.default.snackbarRoot
|
|
109
|
+
},
|
|
110
|
+
ContentProps: {
|
|
111
|
+
className: "".concat(_stylesModule.default.snackbarContent, " ").concat(this.selectAlertType()),
|
|
112
|
+
classes: {
|
|
113
|
+
action: _stylesModule.default.action,
|
|
114
|
+
message: _stylesModule.default.message
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
message: /*#__PURE__*/_react.default.createElement("div", {
|
|
118
|
+
className: _stylesModule.default.content
|
|
119
|
+
}, !withoutIcon && AlertTypeIcon && /*#__PURE__*/_react.default.createElement(AlertTypeIcon, {
|
|
142
120
|
classes: {
|
|
143
|
-
root: _stylesModule.default.
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
classes: {
|
|
156
|
-
root: _stylesModule.default.alertTypeIcon
|
|
157
|
-
}
|
|
158
|
-
}), alert.message),
|
|
159
|
-
action: [/*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
160
|
-
key: "close",
|
|
161
|
-
color: "inherit",
|
|
162
|
-
onClick: this.handleClose
|
|
163
|
-
}, /*#__PURE__*/_react.default.createElement(_Close.default, null))]
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
}]);
|
|
167
|
-
|
|
168
|
-
return UTAlert;
|
|
169
|
-
}(_react.PureComponent);
|
|
121
|
+
root: _stylesModule.default.alertTypeIcon
|
|
122
|
+
}
|
|
123
|
+
}), alert.message),
|
|
124
|
+
action: [/*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
125
|
+
key: "close",
|
|
126
|
+
color: "inherit",
|
|
127
|
+
onClick: this.handleClose
|
|
128
|
+
}, /*#__PURE__*/_react.default.createElement(_Close.default, null))]
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
}
|
|
170
133
|
|
|
171
134
|
UTAlert.propTypes = {
|
|
172
135
|
content: (0, _propTypes.shape)({
|