@widergy/energy-ui 1.134.2 → 2.0.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 +12 -0
- package/dist/components/Loading/index.js +1 -2
- package/dist/components/Loading/styles.module.scss +1 -1
- package/dist/components/Loading/theme.js +2 -1
- package/dist/components/UTAlert/theme.js +3 -2
- package/dist/components/UTAttachment/layout.js +9 -7
- package/dist/components/UTAttachment/styles.module.scss +0 -1
- package/dist/components/UTAttachment/theme.js +2 -1
- package/dist/components/UTAutocomplete/theme.js +8 -6
- package/dist/components/UTAvatar/index.js +21 -8
- package/dist/components/UTBarChart/components/Legend/index.js +24 -20
- package/dist/components/UTBarChart/components/Pagination/index.js +26 -20
- package/dist/components/UTBarChart/components/YAxis/AxisElement/index.js +1 -1
- package/dist/components/UTBarChart/components/YAxis/index.js +1 -1
- package/dist/components/UTBarChart/index.js +7 -4
- package/dist/components/UTBarChart/theme.js +10 -7
- package/dist/components/UTBarChart/types.js +2 -2
- package/dist/components/UTBreadcrumbs/index.js +14 -8
- package/dist/components/UTBreadcrumbs/styles.module.scss +0 -6
- package/dist/components/UTBreadcrumbs/theme.js +2 -13
- package/dist/components/UTButton/README.md +35 -0
- package/dist/components/UTButton/constants.js +42 -0
- package/dist/components/UTButton/index.js +63 -83
- package/dist/components/UTButton/styles.module.scss +36 -0
- package/dist/components/UTButton/theme.js +143 -158
- package/dist/components/UTCBUInput/theme.js +2 -1
- package/dist/components/UTCard/components/UTCardFooter/index.js +5 -6
- package/dist/components/UTCard/index.js +23 -29
- package/dist/components/UTCard/theme.js +2 -1
- package/dist/components/UTCarousel/components/Button/index.js +1 -1
- package/dist/components/UTCarousel/components/Legend/index.js +1 -4
- package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +2 -5
- package/dist/components/UTCarousel/components/Slider/index.js +45 -18
- package/dist/components/UTCarousel/components/Slider/layout.js +13 -12
- package/dist/components/UTCarousel/theme.js +2 -1
- package/dist/components/UTCheckList/index.js +11 -9
- package/dist/components/UTCheckList/theme.js +8 -3
- package/dist/components/UTCheckbox/index.js +34 -28
- package/dist/components/UTCheckbox/theme.js +11 -3
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +7 -8
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/styles.module.scss +1 -2
- package/dist/components/UTConsumptionBar/index.js +22 -13
- package/dist/components/UTConsumptionBar/styles.module.scss +0 -14
- package/dist/components/UTCuit/index.js +2 -2
- package/dist/components/UTCuit/theme.js +1 -1
- package/dist/components/UTDatePicker/index.js +29 -27
- package/dist/components/UTDatePicker/theme.js +22 -7
- package/dist/components/UTDialog/index.js +19 -23
- package/dist/components/UTDialog/theme.js +8 -23
- package/dist/components/UTDialog/types.js +5 -6
- package/dist/components/UTDotMenu/index.js +16 -8
- package/dist/components/UTEmojiPicker/theme.js +2 -1
- package/dist/components/UTFileInput/layout.js +5 -4
- package/dist/components/UTFileInput/styles.module.scss +0 -1
- package/dist/components/UTIconButton/theme.js +2 -1
- package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +2 -2
- package/dist/components/UTImageRadio/index.js +2 -1
- package/dist/components/UTImageRadio/theme.js +15 -12
- package/dist/components/UTLabel/README.md +169 -0
- package/dist/components/UTLabel/constants.js +91 -0
- package/dist/components/UTLabel/index.js +41 -104
- package/dist/components/UTLabel/theme.js +29 -84
- package/dist/components/UTMap/index.js +7 -7
- package/dist/components/UTMap/styles.module.scss +0 -5
- package/dist/components/UTMenu/theme.js +3 -2
- package/dist/components/UTPanel/index.js +11 -10
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +4 -3
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/styles.module.scss +2 -2
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +16 -16
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/styles.module.scss +2 -2
- package/dist/components/UTPasswordField/components/PasswordValidations/index.js +11 -9
- package/dist/components/UTPasswordField/components/PasswordWarning/index.js +3 -3
- package/dist/components/UTPasswordField/components/PasswordWarning/styles.module.scss +1 -1
- package/dist/components/UTPasswordField/theme.js +13 -27
- package/dist/components/UTPhoneInput/index.js +4 -4
- package/dist/components/UTPhoneInput/theme.js +3 -6
- package/dist/components/UTPieChart/theme.js +2 -1
- package/dist/components/UTProgressBar/index.js +27 -20
- package/dist/components/UTProgressBar/theme.js +14 -13
- package/dist/components/UTRadioGroup/index.js +35 -22
- package/dist/components/UTRadioGroup/theme.js +10 -6
- package/dist/components/UTRating/components/Star/index.js +2 -1
- package/dist/components/UTRating/index.js +3 -1
- package/dist/components/UTRating/theme.js +3 -2
- package/dist/components/UTSelect/index.js +13 -3
- package/dist/components/UTSelect/styles.module.scss +5 -0
- package/dist/components/UTSelect/theme.js +7 -2
- package/dist/components/UTSidebar/theme.js +6 -5
- package/dist/components/UTSkeleton/index.js +3 -2
- package/dist/components/UTSwitch/index.js +2 -1
- package/dist/components/UTSwitch/theme.js +2 -1
- package/dist/components/UTTable/components/TableHeader/index.js +11 -7
- package/dist/components/UTTable/theme.js +31 -29
- package/dist/components/UTTabs/index.js +25 -20
- package/dist/components/UTTabs/theme.js +2 -1
- package/dist/components/UTTextArea/index.js +2 -1
- package/dist/components/UTTextArea/theme.js +2 -1
- package/dist/components/UTTextInput/index.js +16 -8
- package/dist/components/UTTextInput/styles.module.scss +3 -2
- package/dist/components/UTTextInput/theme.js +3 -2
- package/dist/components/UTToggle/components/ToggleOption/index.js +1 -0
- package/dist/components/UTToggle/theme.js +2 -1
- package/dist/components/UTTooltip/index.js +6 -4
- package/dist/components/UTTooltip/styles.module.scss +4 -2
- package/dist/components/UTTooltip/theme.js +2 -1
- package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +12 -4
- package/dist/components/UTWorkflowContainer/index.js +19 -15
- package/dist/components/UTWorkflowContainer/styles.module.scss +0 -34
- package/dist/components/UTWorkflowContainer/theme.js +12 -58
- package/dist/components/UTWorkflowContainer/types.js +1 -1
- package/dist/components/WithTheme/layout.js +46 -42
- package/dist/scss/variables/_colors.scss +8 -0
- package/dist/theme.js +4 -1
- package/dist/types/formTypes.js +3 -3
- package/dist/utils/classesUtils.js +7 -3
- package/dist/utils/shadowUtils.js +40 -0
- package/package.json +5 -3
- package/dist/components/UTDialog/components/ActionButton/index.js +0 -35
- package/dist/components/UTLabel/styles.module.scss +0 -3
|
@@ -4,33 +4,34 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
|
-
var _seamlessImmutable = require("seamless-immutable");
|
|
8
7
|
var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
|
|
9
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var retrieveStyle = function retrieveStyle(
|
|
9
|
+
var retrieveStyle = function retrieveStyle(_ref) {
|
|
10
|
+
var _theme$UTProgressBar, _theme$UTProgressBar2, _theme$UTProgressBar3, _theme$UTProgressBar4, _theme$UTProgressBar5, _theme$UTProgressBar6, _theme$UTProgressBar7, _theme$UTProgressBar8, _theme$UTProgressBar9, _theme$UTProgressBar10, _theme$UTProgressBar11, _theme$UTProgressBar12, _theme$UTProgressBar13, _theme$UTProgressBar14, _theme$UTProgressBar15, _theme$UTProgressBar16, _theme$UTProgressBar17, _theme$UTProgressBar18, _theme$UTProgressBar19;
|
|
11
|
+
var theme = _ref.theme;
|
|
11
12
|
return {
|
|
12
13
|
container: {
|
|
13
14
|
alignItems: 'center',
|
|
14
15
|
display: 'flex',
|
|
15
|
-
width:
|
|
16
|
+
width: theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar = theme.UTProgressBar) === null || _theme$UTProgressBar === void 0 ? void 0 : _theme$UTProgressBar.width
|
|
16
17
|
},
|
|
17
18
|
root: {
|
|
18
|
-
border:
|
|
19
|
-
borderRadius:
|
|
20
|
-
height:
|
|
21
|
-
width: (0
|
|
19
|
+
border: theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar2 = theme.UTProgressBar) === null || _theme$UTProgressBar2 === void 0 ? void 0 : _theme$UTProgressBar2.border,
|
|
20
|
+
borderRadius: theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar3 = theme.UTProgressBar) === null || _theme$UTProgressBar3 === void 0 ? void 0 : _theme$UTProgressBar3.borderRadius,
|
|
21
|
+
height: theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar4 = theme.UTProgressBar) === null || _theme$UTProgressBar4 === void 0 ? void 0 : _theme$UTProgressBar4.height,
|
|
22
|
+
width: (theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar5 = theme.UTProgressBar) === null || _theme$UTProgressBar5 === void 0 ? void 0 : _theme$UTProgressBar5.width) || '100%'
|
|
22
23
|
},
|
|
23
24
|
colorPrimary: {
|
|
24
|
-
backgroundColor: (0
|
|
25
|
-
borderRadius:
|
|
25
|
+
backgroundColor: (theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar6 = theme.UTProgressBar) === null || _theme$UTProgressBar6 === void 0 ? void 0 : (_theme$UTProgressBar7 = _theme$UTProgressBar6.colorPrimary) === null || _theme$UTProgressBar7 === void 0 ? void 0 : _theme$UTProgressBar7.backgroundColor) || _colors.default.white,
|
|
26
|
+
borderRadius: theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar8 = theme.UTProgressBar) === null || _theme$UTProgressBar8 === void 0 ? void 0 : (_theme$UTProgressBar9 = _theme$UTProgressBar8.colorPrimary) === null || _theme$UTProgressBar9 === void 0 ? void 0 : _theme$UTProgressBar9.borderRadius
|
|
26
27
|
},
|
|
27
28
|
barColorPrimary: {
|
|
28
|
-
background: (0
|
|
29
|
-
borderRadius:
|
|
30
|
-
transition:
|
|
29
|
+
background: (theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar10 = theme.UTProgressBar) === null || _theme$UTProgressBar10 === void 0 ? void 0 : (_theme$UTProgressBar11 = _theme$UTProgressBar10.barColorPrimary) === null || _theme$UTProgressBar11 === void 0 ? void 0 : _theme$UTProgressBar11.background) || (theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar12 = theme.UTProgressBar) === null || _theme$UTProgressBar12 === void 0 ? void 0 : (_theme$UTProgressBar13 = _theme$UTProgressBar12.barColorPrimary) === null || _theme$UTProgressBar13 === void 0 ? void 0 : _theme$UTProgressBar13.backgroundColor) || _colors.default.blue,
|
|
30
|
+
borderRadius: theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar14 = theme.UTProgressBar) === null || _theme$UTProgressBar14 === void 0 ? void 0 : (_theme$UTProgressBar15 = _theme$UTProgressBar14.barColorPrimary) === null || _theme$UTProgressBar15 === void 0 ? void 0 : _theme$UTProgressBar15.borderRadius,
|
|
31
|
+
transition: theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar16 = theme.UTProgressBar) === null || _theme$UTProgressBar16 === void 0 ? void 0 : (_theme$UTProgressBar17 = _theme$UTProgressBar16.barColorPrimary) === null || _theme$UTProgressBar17 === void 0 ? void 0 : _theme$UTProgressBar17.transition
|
|
31
32
|
},
|
|
32
33
|
label: {
|
|
33
|
-
margin: (0
|
|
34
|
+
margin: (theme === null || theme === void 0 ? void 0 : (_theme$UTProgressBar18 = theme.UTProgressBar) === null || _theme$UTProgressBar18 === void 0 ? void 0 : (_theme$UTProgressBar19 = _theme$UTProgressBar18.label) === null || _theme$UTProgressBar19 === void 0 ? void 0 : _theme$UTProgressBar19.margin) || '0 0 0 10px'
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
};
|
|
@@ -12,6 +12,7 @@ var _propTypes = require("prop-types");
|
|
|
12
12
|
var _formTypes = require("../../types/formTypes");
|
|
13
13
|
var _WithTheme = _interopRequireDefault(require("../WithTheme"));
|
|
14
14
|
var _UTLabel = _interopRequireDefault(require("../UTLabel"));
|
|
15
|
+
var _classesUtils = require("../../utils/classesUtils");
|
|
15
16
|
var _theme = require("./theme");
|
|
16
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
18
|
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); }
|
|
@@ -44,26 +45,26 @@ var UTRadioGroup = /*#__PURE__*/function (_PureComponent) {
|
|
|
44
45
|
_defineProperty(_assertThisInitialized(_this), "handleChange", function (_, value) {
|
|
45
46
|
return _this.props.input.onChange(value);
|
|
46
47
|
});
|
|
47
|
-
_defineProperty(_assertThisInitialized(_this), "renderRadioItem", function (
|
|
48
|
+
_defineProperty(_assertThisInitialized(_this), "renderRadioItem", function (_ref) {
|
|
49
|
+
var classes = _ref.classes,
|
|
50
|
+
index = _ref.index,
|
|
51
|
+
option = _ref.option;
|
|
48
52
|
var _this$props = _this.props,
|
|
49
|
-
classes = _this$props.classes,
|
|
50
|
-
valueKey = _this$props.valueKey,
|
|
51
|
-
labelKey = _this$props.labelKey,
|
|
52
|
-
disabled = _this$props.disabled,
|
|
53
53
|
className = _this$props.className,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
CustomRadioLabel = _this$props.customRadioLabel,
|
|
55
|
+
disabled = _this$props.disabled,
|
|
56
56
|
_this$props$disableRi = _this$props.disableRipple,
|
|
57
57
|
disableRipple = _this$props$disableRi === void 0 ? false : _this$props$disableRi,
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
input = _this$props.input,
|
|
59
|
+
labelKey = _this$props.labelKey,
|
|
60
|
+
valueKey = _this$props.valueKey;
|
|
60
61
|
var isChecked = input.value === option[valueKey];
|
|
61
62
|
return /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
|
|
62
63
|
key: option[valueKey],
|
|
63
64
|
value: option[valueKey],
|
|
64
65
|
checked: isChecked,
|
|
65
66
|
classes: {
|
|
66
|
-
root: "".concat(classes.root, "
|
|
67
|
+
root: "\n ".concat(classes.root, "\n ").concat(isChecked && classes.checkedRoot, "\n ").concat(option.disabled && classes.disabledRoot, "\n "),
|
|
67
68
|
label: classes.label
|
|
68
69
|
},
|
|
69
70
|
disabled: disabled || option.disabled,
|
|
@@ -74,8 +75,8 @@ var UTRadioGroup = /*#__PURE__*/function (_PureComponent) {
|
|
|
74
75
|
control: /*#__PURE__*/_react.default.createElement(_Radio.default, {
|
|
75
76
|
disableRipple: disableRipple,
|
|
76
77
|
classes: {
|
|
77
|
-
root:
|
|
78
|
-
checked: "".concat(classes.checked, " ").concat(
|
|
78
|
+
root: classes.iconRoot,
|
|
79
|
+
checked: "".concat(classes.checked, " ").concat(classes.checkedIconRoot)
|
|
79
80
|
}
|
|
80
81
|
}),
|
|
81
82
|
className: "".concat(classes.formControlLabel, " \n ").concat(_this.props.divider && index === 0 && classes.topDivider, " \n ").concat(_this.props.divider && classes.divider, "\n ").concat(className)
|
|
@@ -86,24 +87,36 @@ var UTRadioGroup = /*#__PURE__*/function (_PureComponent) {
|
|
|
86
87
|
_createClass(UTRadioGroup, [{
|
|
87
88
|
key: "render",
|
|
88
89
|
value: function render() {
|
|
89
|
-
var _field$configuration
|
|
90
|
+
var _field$configuration,
|
|
91
|
+
_this2 = this;
|
|
90
92
|
var _this$props2 = this.props,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
_this$props2$classNam = _this$props2.classNames,
|
|
94
|
+
classNames = _this$props2$classNam === void 0 ? {} : _this$props2$classNam,
|
|
95
|
+
themeClasses = _this$props2.classes,
|
|
93
96
|
containerClassName = _this$props2.containerClassName,
|
|
94
97
|
field = _this$props2.field,
|
|
95
|
-
|
|
98
|
+
input = _this$props2.input,
|
|
99
|
+
options = _this$props2.options,
|
|
96
100
|
titleProps = _this$props2.titleProps,
|
|
97
|
-
|
|
101
|
+
withUpperTitle = _this$props2.withUpperTitle;
|
|
98
102
|
var shouldShowUpperTitle = (field === null || field === void 0 ? void 0 : (_field$configuration = field.configuration) === null || _field$configuration === void 0 ? void 0 : _field$configuration.ignore_title) && withUpperTitle;
|
|
103
|
+
var classes = (0, _classesUtils.mergeClasses)(themeClasses, classNames);
|
|
99
104
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, shouldShowUpperTitle && /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
100
|
-
className:
|
|
101
|
-
}, titleProps
|
|
105
|
+
className: classes.title
|
|
106
|
+
}, titleProps, {
|
|
107
|
+
withMarkdown: true
|
|
108
|
+
}), field.title), /*#__PURE__*/_react.default.createElement(_RadioGroup.default, {
|
|
102
109
|
name: input.name,
|
|
103
|
-
value: input.value,
|
|
110
|
+
value: input.value || '',
|
|
104
111
|
className: containerClassName,
|
|
105
112
|
onChange: this.handleChange
|
|
106
|
-
}, options.map(
|
|
113
|
+
}, options.map(function (option, index) {
|
|
114
|
+
return _this2.renderRadioItem({
|
|
115
|
+
classes: classes,
|
|
116
|
+
index: index,
|
|
117
|
+
option: option
|
|
118
|
+
});
|
|
119
|
+
})));
|
|
107
120
|
}
|
|
108
121
|
}]);
|
|
109
122
|
return UTRadioGroup;
|
|
@@ -118,7 +131,7 @@ UTRadioGroup.propTypes = {
|
|
|
118
131
|
className: _propTypes.string,
|
|
119
132
|
classNames: (0, _propTypes.objectOf)(_propTypes.string),
|
|
120
133
|
containerClassName: _propTypes.string,
|
|
121
|
-
customRadioLabel: _propTypes.element,
|
|
134
|
+
customRadioLabel: (0, _propTypes.oneOfType)([_propTypes.element, _propTypes.func]),
|
|
122
135
|
disabled: _propTypes.bool,
|
|
123
136
|
disableRipple: _propTypes.bool,
|
|
124
137
|
divider: _propTypes.bool,
|
|
@@ -8,7 +8,8 @@ var _seamlessImmutable = require("seamless-immutable");
|
|
|
8
8
|
var _styles = require("@material-ui/core/styles");
|
|
9
9
|
var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var retrieveStyle = function retrieveStyle(
|
|
11
|
+
var retrieveStyle = function retrieveStyle(_ref) {
|
|
12
|
+
var theme = _ref.theme;
|
|
12
13
|
return {
|
|
13
14
|
formControlLabel: {
|
|
14
15
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'backgroundColor'], 'transparent'),
|
|
@@ -31,11 +32,11 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
31
32
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'width'], '100%'),
|
|
32
33
|
transition: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'transition'], "all 350ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"),
|
|
33
34
|
willChange: 'left, width',
|
|
34
|
-
'&:hover:not($
|
|
35
|
+
'&:hover:not($checkedRoot)': {
|
|
35
36
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'hover', 'backgroundColor'], "transparent"),
|
|
36
37
|
transition: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'hoverTransition', 'transition'], 'background-color 0.75s ease')
|
|
37
38
|
},
|
|
38
|
-
'&$
|
|
39
|
+
'&$checkedRoot': {
|
|
39
40
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'selectedColor', 'backgroundColor'], "transparent")
|
|
40
41
|
}
|
|
41
42
|
},
|
|
@@ -43,16 +44,19 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
43
44
|
opacity: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'disabledRoot', 'opacity'])
|
|
44
45
|
},
|
|
45
46
|
textColorPrimary: {
|
|
46
|
-
'&$
|
|
47
|
+
'&$checkedRoot': {
|
|
47
48
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'textColorPrimary', 'color'], "".concat(_colors.default.white))
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
|
-
|
|
51
|
+
checkedRoot: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'selected'], {})
|
|
51
52
|
};
|
|
52
53
|
};
|
|
53
54
|
exports.retrieveStyle = retrieveStyle;
|
|
54
55
|
var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
55
|
-
return (0, _styles.
|
|
56
|
+
return (0, _styles.createTheme)({
|
|
57
|
+
typography: {
|
|
58
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'])
|
|
59
|
+
},
|
|
56
60
|
overrides: {
|
|
57
61
|
MuiTypography: {
|
|
58
62
|
body1: {
|
|
@@ -64,7 +64,8 @@ var Star = function Star(_ref) {
|
|
|
64
64
|
}, /*#__PURE__*/_react.default.createElement(_StarRate.default, {
|
|
65
65
|
className: _stylesModule.default.starSize
|
|
66
66
|
})), textVariantToUse.showLabel && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
67
|
-
className: "".concat(_stylesModule.default.text, " ").concat(classes.label)
|
|
67
|
+
className: "".concat(_stylesModule.default.text, " ").concat(classes.label),
|
|
68
|
+
colorTheme: "gray"
|
|
68
69
|
}, name));
|
|
69
70
|
};
|
|
70
71
|
Star.propTypes = {
|
|
@@ -95,7 +95,9 @@ var UTRatingContainer = function UTRatingContainer(_ref) {
|
|
|
95
95
|
};
|
|
96
96
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, shouldShowUpperTitle && /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({
|
|
97
97
|
className: "".concat(classes.title)
|
|
98
|
-
}, titleProps
|
|
98
|
+
}, titleProps, {
|
|
99
|
+
withMarkdown: true
|
|
100
|
+
}), field.title), /*#__PURE__*/_react.default.createElement("div", {
|
|
99
101
|
className: "".concat(_stylesModule.default.container, " ").concat(classes.container)
|
|
100
102
|
}, options.map(handleMapOptions)));
|
|
101
103
|
};
|
|
@@ -7,10 +7,11 @@ exports.retrieveStyle = void 0;
|
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
8
|
var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var retrieveStyle = function retrieveStyle(
|
|
10
|
+
var retrieveStyle = function retrieveStyle(_ref) {
|
|
11
|
+
var theme = _ref.theme;
|
|
11
12
|
return {
|
|
12
13
|
label: {
|
|
13
|
-
color: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'label', 'color']
|
|
14
|
+
color: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'label', 'color'])),
|
|
14
15
|
fontSize: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'label', 'fontSize'])),
|
|
15
16
|
right: "".concat((0, _seamlessImmutable.getIn)(theme, ['UTRating', 'label', 'right']))
|
|
16
17
|
},
|
|
@@ -22,6 +22,7 @@ var _formTypes = require("../../types/formTypes");
|
|
|
22
22
|
var _UTTooltip = _interopRequireDefault(require("../UTTooltip"));
|
|
23
23
|
var _WithTheme = _interopRequireDefault(require("../WithTheme"));
|
|
24
24
|
var _UTLabel = _interopRequireDefault(require("../UTLabel"));
|
|
25
|
+
var _classesUtils = require("../../utils/classesUtils");
|
|
25
26
|
var _Option = _interopRequireDefault(require("./components/Option"));
|
|
26
27
|
var _theme = require("./theme");
|
|
27
28
|
var _stylesJS = _interopRequireDefault(require("./stylesJS"));
|
|
@@ -45,7 +46,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
45
46
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
46
47
|
var UTSelect = function UTSelect(_ref) {
|
|
47
48
|
var captionLabel = _ref.captionLabel,
|
|
48
|
-
|
|
49
|
+
classNames = _ref.classNames,
|
|
50
|
+
themeClasses = _ref.classes,
|
|
49
51
|
disabled = _ref.disabled,
|
|
50
52
|
disableFirstOption = _ref.disableFirstOption,
|
|
51
53
|
field = _ref.field,
|
|
@@ -67,6 +69,9 @@ var UTSelect = function UTSelect(_ref) {
|
|
|
67
69
|
var _ref2 = (field === null || field === void 0 ? void 0 : field.configuration) || {},
|
|
68
70
|
isMultiple = _ref2.multiple,
|
|
69
71
|
upperTitle = _ref2.upperTitle;
|
|
72
|
+
var classes = (0, _react.useMemo)(function () {
|
|
73
|
+
return (0, _classesUtils.mergeClasses)(themeClasses, classNames);
|
|
74
|
+
}, [classNames]);
|
|
70
75
|
(0, _react.useEffect)(function () {
|
|
71
76
|
if (withAutoReset && (0, _utils.shouldReset)(input.value, options, valueKey, isMultiple)) input.onChange(null);
|
|
72
77
|
}, [options]);
|
|
@@ -93,7 +98,6 @@ var UTSelect = function UTSelect(_ref) {
|
|
|
93
98
|
valueKey: valueKey
|
|
94
99
|
};
|
|
95
100
|
var SelectInput = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, upperTitle && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
96
|
-
medium: true,
|
|
97
101
|
className: classes.upperTitle
|
|
98
102
|
}, upperTitle), /*#__PURE__*/_react.default.createElement(_FormControl.default, {
|
|
99
103
|
className: classes.formControl,
|
|
@@ -140,7 +144,11 @@ var UTSelect = function UTSelect(_ref) {
|
|
|
140
144
|
})];
|
|
141
145
|
})), captionLabel && /*#__PURE__*/_react.default.createElement(_FormHelperText.default, {
|
|
142
146
|
classes: _objectSpread({}, classes.formHelperText)
|
|
143
|
-
}, captionLabel), (0, _form.shouldShowErrors)(meta) && /*#__PURE__*/_react.default.createElement(
|
|
147
|
+
}, captionLabel), (0, _form.shouldShowErrors)(meta) && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
148
|
+
className: _stylesModule.default.errorLabel,
|
|
149
|
+
colorTheme: "error",
|
|
150
|
+
variant: "small"
|
|
151
|
+
}, meta.error)));
|
|
144
152
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
145
153
|
className: classes.container
|
|
146
154
|
}, tooltip ? /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
@@ -161,6 +169,7 @@ var UTSelect = function UTSelect(_ref) {
|
|
|
161
169
|
}))))) : SelectInput);
|
|
162
170
|
};
|
|
163
171
|
UTSelect.defaultProps = {
|
|
172
|
+
classNames: {},
|
|
164
173
|
classes: {},
|
|
165
174
|
field: {
|
|
166
175
|
configuration: {
|
|
@@ -178,6 +187,7 @@ UTSelect.defaultProps = {
|
|
|
178
187
|
};
|
|
179
188
|
UTSelect.propTypes = {
|
|
180
189
|
captionLabel: _propTypes.string,
|
|
190
|
+
classNames: (0, _propTypes.objectOf)(_propTypes.string),
|
|
181
191
|
classes: (0, _propTypes.shape)({
|
|
182
192
|
container: _propTypes.string,
|
|
183
193
|
labelContainer: _propTypes.string,
|
|
@@ -9,7 +9,8 @@ var _styles = require("@material-ui/core/styles");
|
|
|
9
9
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
10
|
var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
var retrieveStyle = function retrieveStyle(
|
|
12
|
+
var retrieveStyle = function retrieveStyle(_ref) {
|
|
13
|
+
var theme = _ref.theme;
|
|
13
14
|
return {
|
|
14
15
|
container: {
|
|
15
16
|
display: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'container', 'display'], 'flex'),
|
|
@@ -45,6 +46,7 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
45
46
|
},
|
|
46
47
|
upperTitle: {
|
|
47
48
|
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'upperTitle', 'fontWeight']),
|
|
49
|
+
display: 'block',
|
|
48
50
|
marginBottom: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'upperTitle', 'marginBottom'])
|
|
49
51
|
},
|
|
50
52
|
subOption: {
|
|
@@ -151,6 +153,9 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme, muiTheme) {
|
|
|
151
153
|
root: {
|
|
152
154
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'helperText', 'fontSize'], 12),
|
|
153
155
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTSelect', 'helperText', 'color'], _colors.default.inputPrimary)
|
|
156
|
+
},
|
|
157
|
+
contained: {
|
|
158
|
+
marginLeft: 0
|
|
154
159
|
}
|
|
155
160
|
},
|
|
156
161
|
MuiCheckbox: {
|
|
@@ -191,6 +196,6 @@ var retrieveMuiTheme = function retrieveMuiTheme(theme, muiTheme) {
|
|
|
191
196
|
}
|
|
192
197
|
}
|
|
193
198
|
};
|
|
194
|
-
return (0, _styles.
|
|
199
|
+
return (0, _styles.createTheme)(_lodash.default.merge(muiTheme, mui));
|
|
195
200
|
};
|
|
196
201
|
exports.retrieveMuiTheme = retrieveMuiTheme;
|
|
@@ -8,8 +8,9 @@ var _seamlessImmutable = require("seamless-immutable");
|
|
|
8
8
|
var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
|
|
9
9
|
var _fontSizes = _interopRequireDefault(require("../../scss/variables/_fontSizes.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var retrieveStyle = function retrieveStyle(
|
|
11
|
+
var retrieveStyle = function retrieveStyle(_ref) {
|
|
12
12
|
var _theme$UTSidebar, _theme$UTSidebar$logo, _theme$UTSidebar2, _theme$UTSidebar2$log, _theme$UTSidebar3, _theme$UTSidebar3$log, _theme$UTSidebar4, _theme$UTSidebar4$log, _theme$UTSidebar5, _theme$UTSidebar5$log, _theme$UTSidebar6, _theme$UTSidebar6$log, _theme$UTSidebar7, _theme$UTSidebar7$log, _theme$UTSidebar8, _theme$UTSidebar8$log, _theme$UTSidebar9, _theme$UTSidebar9$log, _theme$UTSidebar10, _theme$UTSidebar10$lo, _theme$UTSidebar11, _theme$UTSidebar11$lo, _theme$UTSidebar12, _theme$UTSidebar12$lo, _theme$UTSidebar13, _theme$UTSidebar13$lo, _theme$UTSidebar14, _theme$UTSidebar14$lo, _theme$UTSidebar15, _theme$UTSidebar15$lo, _theme$UTSidebar16, _theme$UTSidebar16$lo;
|
|
13
|
+
var theme = _ref.theme;
|
|
13
14
|
return {
|
|
14
15
|
drawerRoot: {
|
|
15
16
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTSidebar', 'drawer', 'width'], 60)
|
|
@@ -108,8 +109,8 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
108
109
|
backgroundColor: theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar = theme.UTSidebar) === null || _theme$UTSidebar === void 0 ? void 0 : (_theme$UTSidebar$logo = _theme$UTSidebar.logoBadgeOpen) === null || _theme$UTSidebar$logo === void 0 ? void 0 : _theme$UTSidebar$logo.backgroundColor,
|
|
109
110
|
borderRadius: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar2 = theme.UTSidebar) === null || _theme$UTSidebar2 === void 0 ? void 0 : (_theme$UTSidebar2$log = _theme$UTSidebar2.logoBadgeOpen) === null || _theme$UTSidebar2$log === void 0 ? void 0 : _theme$UTSidebar2$log.borderRadius) || 8,
|
|
110
111
|
color: theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar3 = theme.UTSidebar) === null || _theme$UTSidebar3 === void 0 ? void 0 : (_theme$UTSidebar3$log = _theme$UTSidebar3.logoBadgeOpen) === null || _theme$UTSidebar3$log === void 0 ? void 0 : _theme$UTSidebar3$log.color,
|
|
111
|
-
fontSize:
|
|
112
|
-
fontWeight:
|
|
112
|
+
fontSize: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar4 = theme.UTSidebar) === null || _theme$UTSidebar4 === void 0 ? void 0 : (_theme$UTSidebar4$log = _theme$UTSidebar4.logoBadgeOpen) === null || _theme$UTSidebar4$log === void 0 ? void 0 : _theme$UTSidebar4$log.fontSize) || _fontSizes.default.small,
|
|
113
|
+
fontWeight: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar5 = theme.UTSidebar) === null || _theme$UTSidebar5 === void 0 ? void 0 : (_theme$UTSidebar5$log = _theme$UTSidebar5.logoBadgeOpen) === null || _theme$UTSidebar5$log === void 0 ? void 0 : _theme$UTSidebar5$log.fontWeight) || 600,
|
|
113
114
|
margin: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar6 = theme.UTSidebar) === null || _theme$UTSidebar6 === void 0 ? void 0 : (_theme$UTSidebar6$log = _theme$UTSidebar6.logoBadgeOpen) === null || _theme$UTSidebar6$log === void 0 ? void 0 : _theme$UTSidebar6$log.margin) || '12px auto 24px',
|
|
114
115
|
maxWidth: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar7 = theme.UTSidebar) === null || _theme$UTSidebar7 === void 0 ? void 0 : (_theme$UTSidebar7$log = _theme$UTSidebar7.logoBadgeOpen) === null || _theme$UTSidebar7$log === void 0 ? void 0 : _theme$UTSidebar7$log.maxWidth) || '96%',
|
|
115
116
|
padding: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar8 = theme.UTSidebar) === null || _theme$UTSidebar8 === void 0 ? void 0 : (_theme$UTSidebar8$log = _theme$UTSidebar8.logoBadgeOpen) === null || _theme$UTSidebar8$log === void 0 ? void 0 : _theme$UTSidebar8$log.padding) || '2px 8px'
|
|
@@ -118,8 +119,8 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
118
119
|
backgroundColor: theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar9 = theme.UTSidebar) === null || _theme$UTSidebar9 === void 0 ? void 0 : (_theme$UTSidebar9$log = _theme$UTSidebar9.logoBadgeClose) === null || _theme$UTSidebar9$log === void 0 ? void 0 : _theme$UTSidebar9$log.backgroundColor,
|
|
119
120
|
borderRadius: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar10 = theme.UTSidebar) === null || _theme$UTSidebar10 === void 0 ? void 0 : (_theme$UTSidebar10$lo = _theme$UTSidebar10.logoBadgeClose) === null || _theme$UTSidebar10$lo === void 0 ? void 0 : _theme$UTSidebar10$lo.borderRadius) || 8,
|
|
120
121
|
color: theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar11 = theme.UTSidebar) === null || _theme$UTSidebar11 === void 0 ? void 0 : (_theme$UTSidebar11$lo = _theme$UTSidebar11.logoBadgeClose) === null || _theme$UTSidebar11$lo === void 0 ? void 0 : _theme$UTSidebar11$lo.color,
|
|
121
|
-
fontSize:
|
|
122
|
-
fontWeight:
|
|
122
|
+
fontSize: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar12 = theme.UTSidebar) === null || _theme$UTSidebar12 === void 0 ? void 0 : (_theme$UTSidebar12$lo = _theme$UTSidebar12.logoBadgeClose) === null || _theme$UTSidebar12$lo === void 0 ? void 0 : _theme$UTSidebar12$lo.fontSize) || _fontSizes.default.small,
|
|
123
|
+
fontWeight: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar13 = theme.UTSidebar) === null || _theme$UTSidebar13 === void 0 ? void 0 : (_theme$UTSidebar13$lo = _theme$UTSidebar13.logoBadgeClose) === null || _theme$UTSidebar13$lo === void 0 ? void 0 : _theme$UTSidebar13$lo.fontWeight) || 600,
|
|
123
124
|
margin: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar14 = theme.UTSidebar) === null || _theme$UTSidebar14 === void 0 ? void 0 : (_theme$UTSidebar14$lo = _theme$UTSidebar14.logoBadgeClose) === null || _theme$UTSidebar14$lo === void 0 ? void 0 : _theme$UTSidebar14$lo.margin) || '12px auto 24px',
|
|
124
125
|
maxWidth: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar15 = theme.UTSidebar) === null || _theme$UTSidebar15 === void 0 ? void 0 : (_theme$UTSidebar15$lo = _theme$UTSidebar15.logoBadgeClose) === null || _theme$UTSidebar15$lo === void 0 ? void 0 : _theme$UTSidebar15$lo.maxWidth) || '96%',
|
|
125
126
|
padding: (theme === null || theme === void 0 ? void 0 : (_theme$UTSidebar16 = theme.UTSidebar) === null || _theme$UTSidebar16 === void 0 ? void 0 : (_theme$UTSidebar16$lo = _theme$UTSidebar16.logoBadgeClose) === null || _theme$UTSidebar16$lo === void 0 ? void 0 : _theme$UTSidebar16$lo.padding) || '2px 8px'
|
|
@@ -23,8 +23,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
23
23
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
24
|
var SkeletonWrapper = (0, _reactSkeletor.createSkeletonElement)('div', _stylesModule.default.skeleton);
|
|
25
25
|
var hasMock = function hasMock(string) {
|
|
26
|
-
var _string$props, _string$props$
|
|
27
|
-
|
|
26
|
+
var _string$props$childre, _string$props$childre2, _string$props$childre3;
|
|
27
|
+
if (string && string.props.source) return string.props.source.toString().includes('MOCK');
|
|
28
|
+
if (string && string.props.children) return string.props.children.toString().includes('MOCK') || ((_string$props$childre = string.props.children) === null || _string$props$childre === void 0 ? void 0 : (_string$props$childre2 = _string$props$childre.props) === null || _string$props$childre2 === void 0 ? void 0 : (_string$props$childre3 = _string$props$childre2.children) === null || _string$props$childre3 === void 0 ? void 0 : _string$props$childre3.toString().includes('MOCK'));
|
|
28
29
|
};
|
|
29
30
|
var hiddenChildren = function hiddenChildren(child) {
|
|
30
31
|
return /*#__PURE__*/_react.default.cloneElement(child, {
|
|
@@ -100,7 +100,8 @@ var UTSwitch = function UTSwitch(_ref) {
|
|
|
100
100
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
101
101
|
className: "".concat(classes.slider, " ").concat(disabled && classes.disabled)
|
|
102
102
|
}))), withText && !insideText && textOn), showErrors && meta && (0, _form.shouldShowErrors)(meta) && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
103
|
-
|
|
103
|
+
colorTheme: "error",
|
|
104
|
+
variant: "small"
|
|
104
105
|
}, meta === null || meta === void 0 ? void 0 : meta.error));
|
|
105
106
|
};
|
|
106
107
|
UTSwitch.propTypes = {
|
|
@@ -7,7 +7,8 @@ exports.retrieveStyle = void 0;
|
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
8
|
var _colors = _interopRequireDefault(require("../../scss/variables/_colors.scss"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var retrieveStyle = function retrieveStyle(
|
|
10
|
+
var retrieveStyle = function retrieveStyle(_ref) {
|
|
11
|
+
var theme = _ref.theme;
|
|
11
12
|
return {
|
|
12
13
|
outerContainer: {
|
|
13
14
|
alignItems: (0, _seamlessImmutable.getIn)(theme, ['UTSwitch', 'outerContainer', 'alignItems'], 'center'),
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _propTypes = require("prop-types");
|
|
10
|
-
var
|
|
10
|
+
var _UTButton = _interopRequireDefault(require("../../../UTButton"));
|
|
11
11
|
var _UTLabel = _interopRequireDefault(require("../../../UTLabel"));
|
|
12
12
|
var _types = require("../../types");
|
|
13
13
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
@@ -38,14 +38,18 @@ var TableHeader = function TableHeader(_ref) {
|
|
|
38
38
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
39
39
|
className: _stylesModule.default.titleContainer
|
|
40
40
|
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
41
|
-
|
|
41
|
+
variant: "subtitle1",
|
|
42
|
+
weight: "medium",
|
|
42
43
|
className: classes.tableTitle
|
|
43
|
-
}, title), onReload && /*#__PURE__*/_react.default.createElement(
|
|
44
|
+
}, title), onReload && /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
45
|
+
classNames: {
|
|
46
|
+
icon: classes.reloadIcon,
|
|
47
|
+
root: "".concat(classes.reloadButton, " ").concat(disabled && classes.reloadButtonDisabled)
|
|
48
|
+
},
|
|
49
|
+
Icon: RefreshIcon,
|
|
44
50
|
onClick: onReload,
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
className: classes.reloadIcon
|
|
48
|
-
}))), GeneralActions);
|
|
51
|
+
variant: "text"
|
|
52
|
+
})), GeneralActions);
|
|
49
53
|
};
|
|
50
54
|
TableHeader.propTypes = {
|
|
51
55
|
classes: _types.classesType,
|