@widergy/energy-ui 3.22.2 → 3.22.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 +14 -0
- package/dist/components/Loading/index.js +2 -2
- package/dist/components/UTActionCard/components/AdditionalMessage/index.js +1 -1
- package/dist/components/UTActionCard/components/BottomActions/index.js +3 -3
- package/dist/components/UTActionCard/components/Header/index.js +3 -3
- package/dist/components/UTActionCard/components/Header/utils.js +2 -2
- package/dist/components/UTActionCard/components/HeaderActions/index.js +5 -4
- package/dist/components/UTActionCard/components/HeaderActions/utils.js +2 -2
- package/dist/components/UTActionCard/index.js +6 -6
- package/dist/components/UTAlert/index.js +2 -2
- package/dist/components/UTAlert/theme.js +5 -4
- package/dist/components/UTAttachment/components/Preview/index.js +3 -3
- package/dist/components/UTAttachment/index.js +7 -5
- package/dist/components/UTAttachment/layout.js +2 -2
- package/dist/components/UTAttachment/utils.js +9 -8
- package/dist/components/UTAttachmentList/components/Preview/index.js +3 -3
- package/dist/components/UTAttachmentList/components/PreviewModal/index.js +3 -3
- package/dist/components/UTAttachmentList/index.js +14 -11
- package/dist/components/UTAttachmentList/layout.js +5 -5
- package/dist/components/UTAttachmentList/theme.js +9 -8
- package/dist/components/UTAttachmentList/utils.js +10 -9
- package/dist/components/UTAutocomplete/components/ListBox/utils.js +1 -1
- package/dist/components/UTAutocomplete/index.js +2 -2
- package/dist/components/UTAutocomplete/theme.js +52 -50
- package/dist/components/UTBadge/index.js +1 -1
- package/dist/components/UTBadge/theme.js +2 -1
- package/dist/components/UTBanner/index.js +1 -1
- package/dist/components/UTBanner/theme.js +2 -1
- package/dist/components/UTBarChart/components/Bars/components/Bar/components/Rect/index.js +5 -5
- package/dist/components/UTBarChart/components/Bars/components/Bar/index.js +2 -2
- package/dist/components/UTBarChart/components/Bars/index.js +2 -2
- package/dist/components/UTBarChart/components/Legend/index.js +6 -6
- package/dist/components/UTBarChart/components/Pagination/index.js +2 -1
- package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +4 -3
- package/dist/components/UTBarChart/components/XAxis/index.js +2 -2
- package/dist/components/UTBarChart/components/YAxis/index.js +2 -1
- package/dist/components/UTBarChart/hooks/use-dynamic-margins.js +5 -4
- package/dist/components/UTBarChart/index.js +3 -3
- package/dist/components/UTBarChart/theme.js +7 -6
- package/dist/components/UTBarChart/utils.js +26 -20
- package/dist/components/UTBreadcrumbs/index.js +3 -3
- package/dist/components/UTBreadcrumbs/theme.js +2 -1
- package/dist/components/UTButton/index.js +4 -8
- package/dist/components/UTButton/theme.js +18 -14
- package/dist/components/UTButton/utils.js +1 -6
- package/dist/components/UTButtonGroup/index.js +1 -1
- package/dist/components/UTButtonGroup/theme.js +2 -1
- package/dist/components/UTCard/components/UTCardFooter/index.js +2 -2
- package/dist/components/UTCard/index.js +4 -4
- package/dist/components/UTCard/theme.js +1 -1
- package/dist/components/UTCarousel/components/Button/index.js +2 -2
- package/dist/components/UTCarousel/components/Legend/index.js +1 -1
- package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +5 -5
- package/dist/components/UTCarousel/components/Slider/index.js +9 -8
- package/dist/components/UTCarousel/components/Slider/layout.js +6 -6
- package/dist/components/UTCheckList/index.js +5 -7
- package/dist/components/UTCheckList/theme.js +3 -2
- package/dist/components/UTCheckbox/index.js +4 -4
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +4 -4
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicatorTop/index.js +2 -2
- package/dist/components/UTConsumptionBar/index.js +8 -8
- package/dist/components/UTCuit/theme.js +6 -6
- package/dist/components/UTDatePicker/components/Day/index.js +1 -5
- package/dist/components/UTDatePicker/index.js +6 -5
- package/dist/components/UTDatePicker/theme.js +160 -157
- package/dist/components/UTDialog/index.js +8 -8
- package/dist/components/UTDialog/theme.js +2 -1
- package/dist/components/UTEmojiPicker/index.js +6 -11
- package/dist/components/UTEmojiPicker/theme.js +24 -23
- package/dist/components/UTExternalLink/index.js +1 -1
- package/dist/components/UTExternalLink/theme.js +2 -1
- package/dist/components/UTFileInput/layout.js +5 -11
- package/dist/components/UTGoogleAutocomplete/theme.js +2 -1
- package/dist/components/UTHeader/index.js +5 -5
- package/dist/components/UTHeader/theme.js +3 -2
- package/dist/components/UTIcon/theme.js +11 -9
- package/dist/components/UTIconButton/index.js +2 -2
- package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +6 -6
- package/dist/components/UTImageRadio/index.js +3 -3
- package/dist/components/UTImageRadio/theme.js +14 -13
- package/dist/components/UTLabel/index.js +1 -1
- package/dist/components/UTLabel/theme.js +8 -6
- package/dist/components/UTList/index.js +1 -1
- package/dist/components/UTMap/components/GoogleMaps/styles.js +2 -2
- package/dist/components/UTMenu/index.js +3 -3
- package/dist/components/UTMenu/theme.js +31 -27
- package/dist/components/UTMenu/utils.js +1 -1
- package/dist/components/UTModal/index.js +5 -9
- package/dist/components/UTModal/theme.js +2 -1
- package/dist/components/UTOnboarding/index.js +24 -16
- package/dist/components/UTOnboarding/theme.js +14 -12
- package/dist/components/UTPagination/components/PageSizeSelector/index.js +2 -2
- package/dist/components/UTPagination/components/Pagination/components/NavigationButton/index.js +1 -4
- package/dist/components/UTPagination/components/Pagination/index.js +3 -3
- package/dist/components/UTPagination/index.js +2 -2
- package/dist/components/UTPagination/theme.js +10 -9
- package/dist/components/UTPanel/versions/V0/index.js +5 -5
- package/dist/components/UTPanel/versions/V1/components/DataItem/index.js +1 -1
- package/dist/components/UTPanel/versions/V1/index.js +6 -8
- package/dist/components/UTPanel/versions/V1/theme.js +1 -1
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +1 -1
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +2 -2
- package/dist/components/UTPasswordField/components/PasswordValidations/index.js +2 -2
- package/dist/components/UTPasswordField/theme.js +6 -5
- package/dist/components/UTPhoneInput/index.js +11 -10
- package/dist/components/UTPhoneInput/theme.js +10 -10
- package/dist/components/UTPieChart/components/ArrowLabel/index.js +2 -2
- package/dist/components/UTPieChart/components/Legend/index.js +4 -4
- package/dist/components/UTPieChart/index.js +5 -5
- package/dist/components/UTProductItem/index.js +3 -3
- package/dist/components/UTProductItem/theme.js +4 -3
- package/dist/components/UTProgressBar/index.js +1 -1
- package/dist/components/UTProgressBar/theme.js +12 -11
- package/dist/components/UTRadioGroup/index.js +5 -11
- package/dist/components/UTRadioGroup/theme.js +17 -17
- package/dist/components/UTRating/components/Circle/index.js +5 -5
- package/dist/components/UTRating/components/Faces/index.js +4 -8
- package/dist/components/UTRating/components/Star/index.js +3 -3
- package/dist/components/UTRating/index.js +2 -2
- package/dist/components/UTRating/theme.js +21 -21
- package/dist/components/UTRipple/Ripple.js +2 -2
- package/dist/components/UTSelect/components/Option/index.js +1 -1
- package/dist/components/UTSelect/index.js +1 -1
- package/dist/components/UTSelect/theme.js +14 -14
- package/dist/components/UTSelectableCard/index.js +5 -9
- package/dist/components/UTSelectableCard/theme.js +20 -19
- package/dist/components/UTSidebar/components/ListOption/index.js +4 -1
- package/dist/components/UTSidebar/components/LogosContainer/index.js +3 -3
- package/dist/components/UTSidebar/components/Option/index.js +9 -31
- package/dist/components/UTSidebar/components/Toggler/index.js +2 -2
- package/dist/components/UTSidebar/index.js +3 -7
- package/dist/components/UTSidebar/theme.js +17 -16
- package/dist/components/UTSkeleton/index.js +3 -2
- package/dist/components/UTStatus/index.js +2 -2
- package/dist/components/UTStepper/components/Connectors/index.js +5 -7
- package/dist/components/UTStepper/components/Step/index.js +6 -16
- package/dist/components/UTStepper/index.js +1 -1
- package/dist/components/UTStepper/theme.js +12 -11
- package/dist/components/UTSwitch/index.js +6 -6
- package/dist/components/UTSwitch/theme.js +2 -2
- package/dist/components/UTTable/components/ActionIcons/index.js +3 -8
- package/dist/components/UTTable/components/Cell/components/ActionButton/index.js +2 -1
- package/dist/components/UTTable/components/Cell/index.js +2 -2
- package/dist/components/UTTable/components/HeaderCell/index.js +5 -16
- package/dist/components/UTTable/components/PrimaryAction/index.js +1 -1
- package/dist/components/UTTable/components/ResponsiveCell/index.js +4 -4
- package/dist/components/UTTable/components/Status/index.js +2 -2
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/index.js +2 -2
- package/dist/components/UTTable/components/TableFooter/components/Pagination/components/NavigationButton/index.js +1 -6
- package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +2 -6
- package/dist/components/UTTable/components/TableFooter/index.js +1 -1
- package/dist/components/UTTable/components/TableHeader/index.js +3 -3
- package/dist/components/UTTable/components/TableRow/index.js +13 -42
- package/dist/components/UTTable/components/TableRow/utils.js +7 -1
- package/dist/components/UTTable/hook.js +4 -1
- package/dist/components/UTTable/index.js +19 -22
- package/dist/components/UTTable/styles.module.scss +1 -0
- package/dist/components/UTTable/theme.js +33 -32
- package/dist/components/UTTable/utils.js +14 -14
- package/dist/components/UTTabs/components/TooltipTab/index.js +1 -1
- package/dist/components/UTTabs/index.js +7 -7
- package/dist/components/UTTabs/theme.js +2 -2
- package/dist/components/UTTextArea/index.js +6 -6
- package/dist/components/UTTextArea/theme.js +22 -21
- package/dist/components/UTTextInput/index.js +6 -10
- package/dist/components/UTTextInput/theme.js +12 -12
- package/dist/components/UTToggle/components/ToggleOption/index.js +3 -3
- package/dist/components/UTToggle/index.js +2 -2
- package/dist/components/UTToggle/theme.js +2 -2
- package/dist/components/UTTooltip/index.js +2 -2
- package/dist/components/UTTooltip/theme.js +10 -9
- package/dist/components/UTTopbar/components/Notifications/index.js +1 -1
- package/dist/components/UTTopbar/components/UserMenu/index.js +4 -8
- package/dist/components/UTTopbar/index.js +3 -3
- package/dist/components/UTTopbar/theme.js +41 -40
- package/dist/components/UTTouchableWithoutFeedback/index.js +1 -1
- package/dist/components/UTTracker/components/Step/index.js +6 -22
- package/dist/components/UTTracker/index.js +23 -20
- package/dist/components/UTTracker/theme.js +6 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +5 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js +4 -3
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-ledger.js +1 -1
- package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +3 -2
- package/dist/components/UTVirtualizedList/index.js +1 -1
- package/dist/components/UTWizard/index.js +3 -3
- package/dist/components/UTWizard/theme.js +2 -2
- package/dist/components/UTWorkflowContainer/versions/V0/components/ActionButton/index.js +3 -6
- package/dist/components/UTWorkflowContainer/versions/V0/index.js +9 -14
- package/dist/components/UTWorkflowContainer/versions/V0/theme.js +5 -4
- package/dist/components/UTWorkflowContainer/versions/V1/components/NavActions/index.js +8 -8
- package/dist/components/UTWorkflowContainer/versions/V1/index.js +7 -7
- package/dist/components/UTWorkflowContainer/versions/V1/styles.module.scss +2 -2
- package/dist/components/UTWorkflowContainer/versions/V1/theme.js +7 -6
- package/dist/components/WithGoogleMaps/index.js +2 -2
- package/dist/components/WithTouch/index.js +1 -1
- package/dist/utils/classesUtils.js +2 -2
- package/dist/utils/componentUtils.js +3 -3
- package/dist/utils/shadowUtils.js +1 -1
- package/package.json +3 -2
|
@@ -55,23 +55,23 @@ const UTConsumptionBar = _ref => {
|
|
|
55
55
|
nextBarPosition = getLeftPosition(elements[index + 1].kwh);
|
|
56
56
|
}
|
|
57
57
|
const width = (nextBarPosition - barPosition) / 2;
|
|
58
|
-
const tippyContent = Number.isInteger(range[1]) ?
|
|
58
|
+
const tippyContent = Number.isInteger(range[1]) ? "".concat(range[0], " - ").concat(range[1], " kWh") : "".concat(range[0], "+ kWh");
|
|
59
59
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
60
60
|
key: category,
|
|
61
61
|
className: _stylesModule.default.categoryLineContainer,
|
|
62
62
|
style: {
|
|
63
|
-
left:
|
|
64
|
-
width:
|
|
63
|
+
left: "calc(".concat(getLeftPosition(kwh), "%)"),
|
|
64
|
+
width: "calc(".concat(width, "% + 7px)")
|
|
65
65
|
}
|
|
66
66
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
67
67
|
className: _stylesModule.default.lineContainer
|
|
68
68
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
69
69
|
className: _stylesModule.default.line
|
|
70
70
|
})), /*#__PURE__*/_react.default.createElement(_react2.default, {
|
|
71
|
-
content:
|
|
71
|
+
content: "Categor\xEDa ".concat(name, ": ").concat(tippyContent),
|
|
72
72
|
arrow: true
|
|
73
73
|
}, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
74
|
-
className:
|
|
74
|
+
className: "".concat(_stylesModule.default.categoryLineText, " ").concat(classes === null || classes === void 0 ? void 0 : classes.categoryLineText),
|
|
75
75
|
colorTheme: "information",
|
|
76
76
|
variant: "xsmall",
|
|
77
77
|
weight: "bold"
|
|
@@ -80,9 +80,9 @@ const UTConsumptionBar = _ref => {
|
|
|
80
80
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
81
81
|
className: _stylesModule.default.estimatedContainer
|
|
82
82
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
83
|
-
className:
|
|
83
|
+
className: "".concat(_stylesModule.default.container, " ").concat(classes === null || classes === void 0 ? void 0 : classes.container)
|
|
84
84
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
-
className:
|
|
85
|
+
className: "".concat(_stylesModule.default.bar, " ").concat(downIndicators.length > 0 && _stylesModule.default.colorizedBar),
|
|
86
86
|
ref: widthRef
|
|
87
87
|
}), upIndicators.map(indicator => /*#__PURE__*/_react.default.createElement(_ConsumptionBarIndicatorTop.default, {
|
|
88
88
|
classes: classes,
|
|
@@ -100,7 +100,7 @@ const UTConsumptionBar = _ref => {
|
|
|
100
100
|
unit: indicator.title,
|
|
101
101
|
value: indicator.value
|
|
102
102
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
103
|
-
className:
|
|
103
|
+
className: "".concat(_stylesModule.default.finishLine1, " ").concat(downIndicators.length > 0 && _stylesModule.default.colorizedLine)
|
|
104
104
|
}));
|
|
105
105
|
};
|
|
106
106
|
UTConsumptionBar.propTypes = {
|
|
@@ -20,22 +20,22 @@ const retrieveMuiTheme = theme => (0, _styles.createTheme)({
|
|
|
20
20
|
},
|
|
21
21
|
underline: {
|
|
22
22
|
'&:hover:not($disabled):not($focused):not($error):before': {
|
|
23
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'hover', 'borderBottom'],
|
|
23
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'hover', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
24
24
|
},
|
|
25
25
|
'&$disabled:before': {
|
|
26
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'disabled', 'borderBottom'],
|
|
26
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'disabled', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
27
27
|
},
|
|
28
28
|
'&:before': {
|
|
29
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'unfocused', 'borderBottom'],
|
|
29
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'unfocused', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
30
30
|
},
|
|
31
31
|
'&$focused:after': {
|
|
32
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'focused', 'borderBottom'],
|
|
32
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'focused', 'borderBottom'], "2px solid ".concat(_colorsModule.default.primary))
|
|
33
33
|
},
|
|
34
34
|
'&:after': {
|
|
35
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'base', 'borderBottom'],
|
|
35
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTTextInput', 'underline', 'base', 'borderBottom'], "2px solid ".concat(_colorsModule.default.primary))
|
|
36
36
|
},
|
|
37
37
|
'&$error:after': {
|
|
38
|
-
borderBottom:
|
|
38
|
+
borderBottom: "2px solid ".concat(theme.Palette.error['05']),
|
|
39
39
|
borderBottomColor: theme.Palette.error['05']
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -23,11 +23,7 @@ const Day = _ref => {
|
|
|
23
23
|
} = _ref;
|
|
24
24
|
const todaySelected = (0, _utils.isSelected)(date, pickedDate);
|
|
25
25
|
return /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
26
|
-
className:
|
|
27
|
-
${classes.day}
|
|
28
|
-
${!dayInCurrentMonth && classes.otherMonthDay}
|
|
29
|
-
${todaySelected && classes.selectedDay}
|
|
30
|
-
`
|
|
26
|
+
className: "\n ".concat(classes.day, " \n ").concat(!dayInCurrentMonth && classes.otherMonthDay, " \n ").concat(todaySelected && classes.selectedDay, "\n ")
|
|
31
27
|
}, /*#__PURE__*/_react.default.createElement("span", null, " ", (0, _dayjs.default)(date).format(dayFormat || _constants.DAY_NUMBER_FORMAT), " "));
|
|
32
28
|
};
|
|
33
29
|
Day.propTypes = {
|
|
@@ -54,6 +54,7 @@ class CustomUtils extends _dayjs.default {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
const UTDatePicker = _ref => {
|
|
57
|
+
var _field$configuration, _field$configuration2;
|
|
57
58
|
let {
|
|
58
59
|
classes: themeClasses,
|
|
59
60
|
classNames,
|
|
@@ -77,8 +78,8 @@ const UTDatePicker = _ref => {
|
|
|
77
78
|
withUpperTitle
|
|
78
79
|
} = _ref;
|
|
79
80
|
const classes = (0, _react.useMemo)(() => (0, _classesUtils.mergeClasses)(themeClasses, classNames), [classNames]);
|
|
80
|
-
const configMask = field
|
|
81
|
-
const onlyPastMonth = field.configuration
|
|
81
|
+
const configMask = (field === null || field === void 0 || (_field$configuration = field.configuration) === null || _field$configuration === void 0 ? void 0 : _field$configuration.date_mask) || _constants.OUTPUT_LABEL_MASK;
|
|
82
|
+
const onlyPastMonth = ((_field$configuration2 = field.configuration) === null || _field$configuration2 === void 0 || (_field$configuration2 = _field$configuration2.customDateValidations) === null || _field$configuration2 === void 0 || (_field$configuration2 = _field$configuration2.onlyPastMonth) === null || _field$configuration2 === void 0 ? void 0 : _field$configuration2.active) || false;
|
|
82
83
|
const pastMonthDates = (0, _utils.getPastMonthDates)(onlyPastMonth);
|
|
83
84
|
const {
|
|
84
85
|
minDate,
|
|
@@ -92,7 +93,7 @@ const UTDatePicker = _ref => {
|
|
|
92
93
|
if (newValue.isValid()) input.onChange(newValue.format(configMask));else input.onChange('');
|
|
93
94
|
};
|
|
94
95
|
(0, _react.useEffect)(() => {
|
|
95
|
-
if (!input.value && pickedDate
|
|
96
|
+
if (!input.value && pickedDate !== null && pickedDate !== void 0 && pickedDate.isValid()) setPickedDate(null);else if ((0, _utils.dateMatchesFormat)(input.value, configMask)) setPickedDate((0, _dayjs2.default)(input.value, configMask));
|
|
96
97
|
}, [input.value]);
|
|
97
98
|
const renderDay = (date, _, dayInCurrentMonth) => /*#__PURE__*/_react.default.createElement(_Day.default, {
|
|
98
99
|
classes: classes,
|
|
@@ -115,7 +116,7 @@ const UTDatePicker = _ref => {
|
|
|
115
116
|
}, /*#__PURE__*/_react.default.createElement(_pickers.KeyboardDatePicker, _extends({
|
|
116
117
|
disabled: disabled,
|
|
117
118
|
value: pickedDate,
|
|
118
|
-
label: inputVariant === 'standard' && field
|
|
119
|
+
label: inputVariant === 'standard' && (field === null || field === void 0 ? void 0 : field.title),
|
|
119
120
|
error: (0, _form.shouldShowErrors)(meta),
|
|
120
121
|
helperText: errorMessage ? /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
121
122
|
className: classes.errorLabel,
|
|
@@ -136,7 +137,7 @@ const UTDatePicker = _ref => {
|
|
|
136
137
|
root: classes.input,
|
|
137
138
|
notchedOutline: classes.notchedOutline
|
|
138
139
|
},
|
|
139
|
-
placeholder: inputVariant === 'outlined' && (placeholder || field
|
|
140
|
+
placeholder: inputVariant === 'outlined' && (placeholder || (field === null || field === void 0 ? void 0 : field.placeholder)) || undefined,
|
|
140
141
|
...inputProps
|
|
141
142
|
},
|
|
142
143
|
invalidDateMessage: invalidDateMessage || _constants.WRONG_DATE_FORMAT,
|
|
@@ -53,179 +53,182 @@ const retrieveStyle = _ref => {
|
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
exports.retrieveStyle = retrieveStyle;
|
|
56
|
-
const materialTheme = theme =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
MuiToolbar: {
|
|
67
|
-
regular: {
|
|
68
|
-
minHeight: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'minHeight'], '0px !important')
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
MuiPickersToolbar: {
|
|
72
|
-
toolbar: {
|
|
73
|
-
height: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'height'], 'fit-content'),
|
|
74
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'padding'], '8px 12px 8px 12px'),
|
|
75
|
-
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'borderRadious'], '4px'),
|
|
76
|
-
margin: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'margin'], '16px 16px 0px 16px'),
|
|
77
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'backgroundColor'], _colorsModule.default.gray3)
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
MuiPickersToolbarButton: {
|
|
81
|
-
toolbarBtn: {
|
|
82
|
-
alignSelf: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'alignSelf'], 'center'),
|
|
83
|
-
'&:not(:first-child)': {
|
|
84
|
-
display: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'displayDate'], 'none')
|
|
56
|
+
const materialTheme = theme => {
|
|
57
|
+
var _theme$UTDatePicker, _theme$UTDatePicker2, _theme$UTDatePicker3, _theme$UTDatePicker4;
|
|
58
|
+
return (0, _styles.createTheme)({
|
|
59
|
+
typography: {
|
|
60
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'])
|
|
61
|
+
},
|
|
62
|
+
overrides: {
|
|
63
|
+
MuiTypography: {
|
|
64
|
+
body1: {
|
|
65
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'input', 'fontFamily'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']))
|
|
85
66
|
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
MuiPickersToolbarText: {
|
|
89
|
-
toolbarTxt: {
|
|
90
|
-
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'fontWeight'], '500'),
|
|
91
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'fontSize'], '16px'),
|
|
92
|
-
lineHeight: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'lineHeight'], '22px'),
|
|
93
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'textColor'], _colorsModule.default.black)
|
|
94
67
|
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
MuiPickersYear: {
|
|
100
|
-
yearSelected: {
|
|
101
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'textColor'], _colorsModule.default.black),
|
|
102
|
-
marginLeft: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'year', 'marginLeft'], '10px')
|
|
68
|
+
MuiToolbar: {
|
|
69
|
+
regular: {
|
|
70
|
+
minHeight: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'minHeight'], '0px !important')
|
|
71
|
+
}
|
|
103
72
|
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
textTransform: (0, _classesUtils.withImportant)(theme?.UTDatePicker?.switchHeader?.textTransform || 'capitalize'),
|
|
113
|
-
fontWeight: (0, _classesUtils.withImportant)(theme?.UTDatePicker?.switchHeader?.fontWeight || 500),
|
|
114
|
-
margin: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'switchHeader', 'margin'], '8px 17px'),
|
|
115
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'switchHeader', 'padding'], '15px 0 0')
|
|
73
|
+
MuiPickersToolbar: {
|
|
74
|
+
toolbar: {
|
|
75
|
+
height: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'height'], 'fit-content'),
|
|
76
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'padding'], '8px 12px 8px 12px'),
|
|
77
|
+
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'borderRadious'], '4px'),
|
|
78
|
+
margin: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'margin'], '16px 16px 0px 16px'),
|
|
79
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'backgroundColor'], _colorsModule.default.gray3)
|
|
80
|
+
}
|
|
116
81
|
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
82
|
+
MuiPickersToolbarButton: {
|
|
83
|
+
toolbarBtn: {
|
|
84
|
+
alignSelf: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'alignSelf'], 'center'),
|
|
85
|
+
'&:not(:first-child)': {
|
|
86
|
+
display: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'displayDate'], 'none')
|
|
87
|
+
}
|
|
88
|
+
}
|
|
122
89
|
},
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'fontFamily'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'])),
|
|
130
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'backgroundColor'], _colorsModule.default.white),
|
|
131
|
-
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'fontWeight'], 500),
|
|
132
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'fontSize'], '14px'),
|
|
133
|
-
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'borderRadius'], '30px'),
|
|
134
|
-
height: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'height'], '40px'),
|
|
135
|
-
width: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'width'], '250px'),
|
|
136
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'color'], _colorsModule.default.gray4),
|
|
137
|
-
paddingLeft: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'paddingLeft'], '6px'),
|
|
138
|
-
paddingRight: (0, _classesUtils.withImportant)(theme?.UTDatePicker?.outlinedInput?.root?.paddingRight || '12px'),
|
|
139
|
-
'&:hover:not($disabled):not($focused):not($error) $notchedOutline': {
|
|
140
|
-
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'notchedOutline', 'hover', 'borderColor'], _colorsModule.default.gray3)
|
|
90
|
+
MuiPickersToolbarText: {
|
|
91
|
+
toolbarTxt: {
|
|
92
|
+
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'fontWeight'], '500'),
|
|
93
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'fontSize'], '16px'),
|
|
94
|
+
lineHeight: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'lineHeight'], '22px'),
|
|
95
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'textColor'], _colorsModule.default.black)
|
|
141
96
|
},
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
borderWidth: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'notchedOutline', 'focused', 'borderWidth'], 1)
|
|
97
|
+
toolbarBtnSelected: {
|
|
98
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'textColor'], _colorsModule.default.black)
|
|
145
99
|
}
|
|
146
100
|
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
MuiInput: {
|
|
152
|
-
input: {
|
|
153
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'input', 'border']),
|
|
154
|
-
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'input', 'borderRadius']),
|
|
155
|
-
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'input', 'fontFamily'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'])),
|
|
156
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'input', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'], 14)),
|
|
157
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'input', 'color']),
|
|
158
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'input', 'padding'])
|
|
159
|
-
},
|
|
160
|
-
underline: {
|
|
161
|
-
'&:hover:not($disabled):not($focused):not($error):before': {
|
|
162
|
-
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'underline', 'hover', 'borderBottom'], `1px solid ${_colorsModule.default.gray}`)
|
|
101
|
+
MuiPickersYear: {
|
|
102
|
+
yearSelected: {
|
|
103
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'toolbar', 'text', 'textColor'], _colorsModule.default.black),
|
|
104
|
+
marginLeft: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'year', 'marginLeft'], '10px')
|
|
163
105
|
},
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
106
|
+
root: {
|
|
107
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'year', 'color'], _colorsModule.default.black),
|
|
108
|
+
marginLeft: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'year', 'marginLeft'], '10px')
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
MuiPickersCalendarHeader: {
|
|
112
|
+
switchHeader: {
|
|
113
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'switchHeader', 'color'], _colorsModule.default.gray4),
|
|
114
|
+
textTransform: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTDatePicker = theme.UTDatePicker) === null || _theme$UTDatePicker === void 0 || (_theme$UTDatePicker = _theme$UTDatePicker.switchHeader) === null || _theme$UTDatePicker === void 0 ? void 0 : _theme$UTDatePicker.textTransform) || 'capitalize'),
|
|
115
|
+
fontWeight: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTDatePicker2 = theme.UTDatePicker) === null || _theme$UTDatePicker2 === void 0 || (_theme$UTDatePicker2 = _theme$UTDatePicker2.switchHeader) === null || _theme$UTDatePicker2 === void 0 ? void 0 : _theme$UTDatePicker2.fontWeight) || 500),
|
|
116
|
+
margin: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'switchHeader', 'margin'], '8px 17px'),
|
|
117
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'switchHeader', 'padding'], '15px 0 0')
|
|
172
118
|
},
|
|
173
|
-
|
|
174
|
-
|
|
119
|
+
dayLabel: {
|
|
120
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'dayLabel', 'color'], _colorsModule.default.gray4),
|
|
121
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'dayLabel', 'width'], '33px'),
|
|
122
|
+
fontWeight: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTDatePicker3 = theme.UTDatePicker) === null || _theme$UTDatePicker3 === void 0 || (_theme$UTDatePicker3 = _theme$UTDatePicker3.dayLabel) === null || _theme$UTDatePicker3 === void 0 ? void 0 : _theme$UTDatePicker3.fontWeight) || 500),
|
|
123
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'dayLabel', 'fontFamily'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']))
|
|
175
124
|
},
|
|
176
|
-
|
|
177
|
-
|
|
125
|
+
daysHeader: {
|
|
126
|
+
marginTop: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'daysHeader', 'marginTop'], '15px')
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
MuiOutlinedInput: {
|
|
130
|
+
root: {
|
|
131
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'fontFamily'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'])),
|
|
132
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'backgroundColor'], _colorsModule.default.white),
|
|
133
|
+
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'fontWeight'], 500),
|
|
134
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'fontSize'], '14px'),
|
|
135
|
+
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'borderRadius'], '30px'),
|
|
136
|
+
height: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'height'], '40px'),
|
|
137
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'width'], '250px'),
|
|
138
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'color'], _colorsModule.default.gray4),
|
|
139
|
+
paddingLeft: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'root', 'paddingLeft'], '6px'),
|
|
140
|
+
paddingRight: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTDatePicker4 = theme.UTDatePicker) === null || _theme$UTDatePicker4 === void 0 || (_theme$UTDatePicker4 = _theme$UTDatePicker4.outlinedInput) === null || _theme$UTDatePicker4 === void 0 || (_theme$UTDatePicker4 = _theme$UTDatePicker4.root) === null || _theme$UTDatePicker4 === void 0 ? void 0 : _theme$UTDatePicker4.paddingRight) || '12px'),
|
|
141
|
+
'&:hover:not($disabled):not($focused):not($error) $notchedOutline': {
|
|
142
|
+
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'notchedOutline', 'hover', 'borderColor'], _colorsModule.default.gray3)
|
|
143
|
+
},
|
|
144
|
+
'&$focused $notchedOutline': {
|
|
145
|
+
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'notchedOutline', 'focused', 'borderColor'], _colorsModule.default.gray3),
|
|
146
|
+
borderWidth: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'notchedOutline', 'focused', 'borderWidth'], 1)
|
|
147
|
+
}
|
|
178
148
|
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
borderBottomColor: theme.Palette.error['05']
|
|
149
|
+
notchedOutline: {
|
|
150
|
+
borderColor: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'outlinedInput', 'notchedOutline', 'borderColor'], _colorsModule.default.gray3)
|
|
182
151
|
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
152
|
+
},
|
|
153
|
+
MuiInput: {
|
|
154
|
+
input: {
|
|
155
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'input', 'border']),
|
|
156
|
+
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'input', 'borderRadius']),
|
|
157
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'input', 'fontFamily'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'])),
|
|
158
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'input', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'], 14)),
|
|
159
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'input', 'color']),
|
|
160
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'input', 'padding'])
|
|
190
161
|
},
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
162
|
+
underline: {
|
|
163
|
+
'&:hover:not($disabled):not($focused):not($error):before': {
|
|
164
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'underline', 'hover', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
165
|
+
},
|
|
166
|
+
'&:hover:not($disabled):before': {
|
|
167
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'underline', 'hover', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
168
|
+
},
|
|
169
|
+
'&$disabled:before': {
|
|
170
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'underline', 'disabled', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
171
|
+
},
|
|
172
|
+
'&:before': {
|
|
173
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'underline', 'unfocused', 'borderBottom'], "1px solid ".concat(_colorsModule.default.gray))
|
|
174
|
+
},
|
|
175
|
+
'&$focused:after': {
|
|
176
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'underline', 'focused', 'borderBottom'], "2px solid ".concat(_colorsModule.default.primary))
|
|
177
|
+
},
|
|
178
|
+
'&:after': {
|
|
179
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'underline', 'base', 'borderBottom'], "2px solid ".concat(_colorsModule.default.primary))
|
|
180
|
+
},
|
|
181
|
+
'&$error:after': {
|
|
182
|
+
borderBottom: "2px solid ".concat(theme.Palette.error['05']),
|
|
183
|
+
borderBottomColor: theme.Palette.error['05']
|
|
195
184
|
}
|
|
196
|
-
}
|
|
197
|
-
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
|
|
198
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'], 14)),
|
|
199
|
-
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'formLabel', 'fontWeight'])
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
MuiPopover: {
|
|
203
|
-
paper: {
|
|
204
|
-
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'calendarPaper', 'borderRadius'], '10px'),
|
|
205
|
-
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'calendarPaper', 'boxShadow'], 'none'),
|
|
206
|
-
border: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'calendarPaper', 'border'], `1px solid ${_colorsModule.default.gray3}`),
|
|
207
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'calendarPaper', 'color'], _colorsModule.default.gray3)
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
MuiIconButton: {
|
|
211
|
-
root: {
|
|
212
|
-
padding: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'openerIcon', 'padding'], '5px')
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
MuiPickersBasePicker: {
|
|
216
|
-
pickerView: {
|
|
217
|
-
minWidth: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'pickerView', 'minWidth'], '290px')
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
MuiFormHelperText: {
|
|
221
|
-
root: {
|
|
222
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'helperText', 'fontSize'], 12),
|
|
223
|
-
color: theme.Palette.error['05']
|
|
185
|
+
}
|
|
224
186
|
},
|
|
225
|
-
|
|
226
|
-
|
|
187
|
+
MuiFormLabel: {
|
|
188
|
+
root: {
|
|
189
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'formLabel', 'color']),
|
|
190
|
+
'&$error': {
|
|
191
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'formLabel', 'errorColor'], theme.Palette.error['05'])
|
|
192
|
+
},
|
|
193
|
+
'&$focused': {
|
|
194
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'formLabel', 'focusedColor'], _colorsModule.default.primary),
|
|
195
|
+
'&$error': {
|
|
196
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'formLabel', 'focusedErrorColor'], theme.Palette.error['05'])
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
|
|
200
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'], 14)),
|
|
201
|
+
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'standardInput', 'formLabel', 'fontWeight'])
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
MuiPopover: {
|
|
205
|
+
paper: {
|
|
206
|
+
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'calendarPaper', 'borderRadius'], '10px'),
|
|
207
|
+
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'calendarPaper', 'boxShadow'], 'none'),
|
|
208
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'calendarPaper', 'border'], "1px solid ".concat(_colorsModule.default.gray3)),
|
|
209
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'calendarPaper', 'color'], _colorsModule.default.gray3)
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
MuiIconButton: {
|
|
213
|
+
root: {
|
|
214
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'openerIcon', 'padding'], '5px')
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
MuiPickersBasePicker: {
|
|
218
|
+
pickerView: {
|
|
219
|
+
minWidth: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'pickerView', 'minWidth'], '290px')
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
MuiFormHelperText: {
|
|
223
|
+
root: {
|
|
224
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTDatePicker', 'helperText', 'fontSize'], 12),
|
|
225
|
+
color: theme.Palette.error['05']
|
|
226
|
+
},
|
|
227
|
+
contained: {
|
|
228
|
+
marginLeft: 0
|
|
229
|
+
}
|
|
227
230
|
}
|
|
228
231
|
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
232
|
+
});
|
|
233
|
+
};
|
|
231
234
|
exports.materialTheme = materialTheme;
|
|
@@ -62,8 +62,8 @@ const UTDialog = _ref => {
|
|
|
62
62
|
"aria-labelledby": "alert-dialog-title",
|
|
63
63
|
"aria-describedby": "alert-dialog-description",
|
|
64
64
|
classes: {
|
|
65
|
-
paper:
|
|
66
|
-
root:
|
|
65
|
+
paper: "".concat(classes.container, " ").concat(container),
|
|
66
|
+
root: "".concat(classes.root, " ").concat(root)
|
|
67
67
|
},
|
|
68
68
|
PaperProps: {
|
|
69
69
|
elevation
|
|
@@ -73,23 +73,23 @@ const UTDialog = _ref => {
|
|
|
73
73
|
TransitionProps: TransitionProps
|
|
74
74
|
}, dialogProps), title && /*#__PURE__*/_react.default.createElement(_DialogTitle.default, {
|
|
75
75
|
disableTypography: disableTypography,
|
|
76
|
-
className:
|
|
76
|
+
className: "".concat(classes.mainTitle, " ").concat(whiteTitle && classes.whiteTitle, " ").concat(mainTitle),
|
|
77
77
|
id: "alert-dialog-title"
|
|
78
78
|
}, title, withCloseButton && /*#__PURE__*/_react.default.createElement(_UTButton.default, {
|
|
79
79
|
classNames: {
|
|
80
|
-
icon:
|
|
81
|
-
root:
|
|
80
|
+
icon: "".concat(classes.closeIcon, " ").concat(closeIcon),
|
|
81
|
+
root: "".concat(classes.closeButton, " ").concat(whiteTitle && classes.whiteCloseButton, " ").concat(closeButton)
|
|
82
82
|
},
|
|
83
83
|
Icon: CloseIcon,
|
|
84
84
|
onClick: onRequestClose,
|
|
85
85
|
variant: "text"
|
|
86
86
|
})), /*#__PURE__*/_react.default.createElement(_DialogContent.default, {
|
|
87
87
|
name: contentName,
|
|
88
|
-
className:
|
|
88
|
+
className: "".concat(classes.content, " ").concat(content)
|
|
89
89
|
}, children), warningAlert && /*#__PURE__*/_react.default.createElement(_UTLabel.default, _extends({}, alertConfig, {
|
|
90
|
-
className:
|
|
90
|
+
className: "".concat(classes.warning, " ").concat(warning)
|
|
91
91
|
}), warningAlert), (cancelButton || acceptButton) && /*#__PURE__*/_react.default.createElement(_DialogActions.default, {
|
|
92
|
-
className:
|
|
92
|
+
className: "".concat(classes.dialogActions, " ").concat(dialogActions)
|
|
93
93
|
}, FooterComponents, cancelButton && /*#__PURE__*/_react.default.createElement(_UTButton.default, _extends({
|
|
94
94
|
colorTheme: "secondary",
|
|
95
95
|
variant: "text"
|
|
@@ -9,6 +9,7 @@ var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.
|
|
|
9
9
|
var _classesUtils = require("../../utils/classesUtils");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const retrieveStyle = _ref => {
|
|
12
|
+
var _theme$UTDialog;
|
|
12
13
|
let {
|
|
13
14
|
theme
|
|
14
15
|
} = _ref;
|
|
@@ -65,7 +66,7 @@ const retrieveStyle = _ref => {
|
|
|
65
66
|
},
|
|
66
67
|
closeButton: {
|
|
67
68
|
padding: (0, _seamlessImmutable.getIn)(theme, ['UTDialog', 'closeButton', 'padding']),
|
|
68
|
-
position: (0, _classesUtils.withImportant)(theme
|
|
69
|
+
position: (0, _classesUtils.withImportant)((theme === null || theme === void 0 || (_theme$UTDialog = theme.UTDialog) === null || _theme$UTDialog === void 0 || (_theme$UTDialog = _theme$UTDialog.closeButton) === null || _theme$UTDialog === void 0 ? void 0 : _theme$UTDialog.position) || 'absolute'),
|
|
69
70
|
right: (0, _seamlessImmutable.getIn)(theme, ['UTDialog', 'closeButton', 'right'], '5px'),
|
|
70
71
|
top: (0, _seamlessImmutable.getIn)(theme, ['UTDialog', 'closeButton', 'top'], '5px')
|
|
71
72
|
},
|
|
@@ -49,7 +49,7 @@ const UTEmojiPicker = _ref => {
|
|
|
49
49
|
if (closeOnPick) setIsOpen(false);
|
|
50
50
|
handlePick(emojiData);
|
|
51
51
|
},
|
|
52
|
-
className:
|
|
52
|
+
className: "".concat(_stylesModule.default.emoji, " ").concat(classes.emoji)
|
|
53
53
|
}, (0, _utils.getEmoji)(emojiData)), [handlePick]);
|
|
54
54
|
const groupEmojiRenderer = (0, _react.useCallback)(_ref2 => {
|
|
55
55
|
let {
|
|
@@ -58,13 +58,13 @@ const UTEmojiPicker = _ref => {
|
|
|
58
58
|
} = _ref2;
|
|
59
59
|
const isActive = key === activeGroup;
|
|
60
60
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
61
|
-
className:
|
|
61
|
+
className: "".concat(_stylesModule.default.groupItem, " ").concat(classes.groupItem),
|
|
62
62
|
key: key,
|
|
63
63
|
onClick: () => setActiveGroup(isActive ? null : key),
|
|
64
64
|
role: "button",
|
|
65
65
|
"aria-label": "group"
|
|
66
66
|
}, /*#__PURE__*/_react.default.createElement(Icon, {
|
|
67
|
-
className: isActive ?
|
|
67
|
+
className: isActive ? "".concat(_stylesModule.default.activeIcon, " ").concat(classes.activeIcon) : ''
|
|
68
68
|
}));
|
|
69
69
|
}, [activeGroup]);
|
|
70
70
|
return /*#__PURE__*/_react.default.createElement(_ClickAwayListener.default, {
|
|
@@ -75,16 +75,11 @@ const UTEmojiPicker = _ref => {
|
|
|
75
75
|
className: classes.emojiButton,
|
|
76
76
|
onClick: toggleOpen
|
|
77
77
|
}, buttonEmoji), /*#__PURE__*/_react.default.createElement("div", {
|
|
78
|
-
className:
|
|
79
|
-
${_stylesModule.default.container}
|
|
80
|
-
${classes.container}
|
|
81
|
-
${_stylesModule.default[popperPosition]}
|
|
82
|
-
${!isOpen && _stylesModule.default.hiddenPicker}
|
|
83
|
-
`
|
|
78
|
+
className: "\n ".concat(_stylesModule.default.container, "\n ").concat(classes.container, "\n ").concat(_stylesModule.default[popperPosition], "\n ").concat(!isOpen && _stylesModule.default.hiddenPicker, "\n ")
|
|
84
79
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
-
className:
|
|
80
|
+
className: "".concat(_stylesModule.default.groups, " ").concat(classes.groups)
|
|
86
81
|
}, groups.map(groupEmojiRenderer)), /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
-
className:
|
|
82
|
+
className: "".concat(_stylesModule.default.listContainer, " ").concat(classes.listContainer)
|
|
88
83
|
}, /*#__PURE__*/_react.default.createElement(_.UTVirtualizedList, _extends({
|
|
89
84
|
data: activeGroup ? groups.find(_ref3 => {
|
|
90
85
|
let {
|