@widergy/energy-ui 2.12.2 → 2.12.3
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/dist/components/EnergyThemeProvider/index.js +13 -36
- package/dist/components/Loading/constants.js +1 -2
- package/dist/components/Loading/index.js +13 -12
- package/dist/components/Loading/theme.js +4 -2
- package/dist/components/UTAlert/AlertHandler.js +75 -101
- package/dist/components/UTAlert/index.js +65 -87
- package/dist/components/UTAlert/theme.js +32 -32
- package/dist/components/UTAttachment/components/Preview/index.js +8 -9
- package/dist/components/UTAttachment/constants.js +7 -13
- package/dist/components/UTAttachment/index.js +159 -250
- package/dist/components/UTAttachment/layout.js +26 -27
- package/dist/components/UTAttachment/theme.js +4 -2
- package/dist/components/UTAttachment/utils.js +34 -117
- package/dist/components/UTAutocomplete/components/ListBox/index.js +13 -21
- package/dist/components/UTAutocomplete/components/ListBox/utils.js +9 -11
- package/dist/components/UTAutocomplete/constants.js +12 -23
- package/dist/components/UTAutocomplete/index.js +54 -94
- package/dist/components/UTAutocomplete/theme.js +6 -4
- package/dist/components/UTAvatar/constants.js +2 -3
- package/dist/components/UTAvatar/index.js +18 -17
- package/dist/components/UTBarChart/components/Bars/components/Bar/components/Rect/index.js +22 -22
- package/dist/components/UTBarChart/components/Bars/components/Bar/constants.js +1 -1
- package/dist/components/UTBarChart/components/Bars/components/Bar/index.js +21 -22
- package/dist/components/UTBarChart/components/Bars/constants.js +3 -6
- package/dist/components/UTBarChart/components/Bars/index.js +70 -80
- package/dist/components/UTBarChart/components/Legend/constants.js +12 -18
- package/dist/components/UTBarChart/components/Legend/index.js +75 -93
- package/dist/components/UTBarChart/components/Legend/utils.js +1 -5
- package/dist/components/UTBarChart/components/Levels/index.js +16 -14
- package/dist/components/UTBarChart/components/Levels/utils.js +25 -27
- package/dist/components/UTBarChart/components/LinearPlot/constants.js +3 -5
- package/dist/components/UTBarChart/components/LinearPlot/index.js +25 -20
- package/dist/components/UTBarChart/components/LinearPlot/utils.js +37 -39
- package/dist/components/UTBarChart/components/Pagination/constants.js +1 -2
- package/dist/components/UTBarChart/components/Pagination/index.js +20 -24
- package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +21 -32
- package/dist/components/UTBarChart/components/XAxis/components/Decoration/constants.js +2 -4
- package/dist/components/UTBarChart/components/XAxis/components/Decoration/index.js +20 -19
- package/dist/components/UTBarChart/components/XAxis/constants.js +1 -2
- package/dist/components/UTBarChart/components/XAxis/index.js +54 -65
- package/dist/components/UTBarChart/components/YAxis/AxisElement/index.js +12 -11
- package/dist/components/UTBarChart/components/YAxis/constants.js +1 -2
- package/dist/components/UTBarChart/components/YAxis/index.js +30 -37
- package/dist/components/UTBarChart/components/YAxis/utils.js +4 -6
- package/dist/components/UTBarChart/constants.js +4 -8
- package/dist/components/UTBarChart/hooks/use-dynamic-margins.js +23 -40
- package/dist/components/UTBarChart/index.js +152 -166
- package/dist/components/UTBarChart/theme.js +4 -2
- package/dist/components/UTBarChart/types.js +10 -19
- package/dist/components/UTBarChart/utils.js +107 -111
- package/dist/components/UTBreadcrumbs/constants.js +23 -31
- package/dist/components/UTBreadcrumbs/index.js +76 -101
- package/dist/components/UTBreadcrumbs/theme.js +4 -2
- package/dist/components/UTButton/constants.js +11 -17
- package/dist/components/UTButton/index.js +28 -31
- package/dist/components/UTButton/theme.js +23 -23
- package/dist/components/UTCBUInput/index.js +36 -40
- package/dist/components/UTCBUInput/theme.js +4 -2
- package/dist/components/UTCaptcha/index.js +19 -45
- package/dist/components/UTCard/components/UTCardFooter/index.js +15 -16
- package/dist/components/UTCard/index.js +85 -120
- package/dist/components/UTCard/theme.js +11 -12
- package/dist/components/UTCard/types.js +2 -3
- package/dist/components/UTCarousel/components/Button/index.js +13 -13
- package/dist/components/UTCarousel/components/Legend/index.js +13 -15
- package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +16 -16
- package/dist/components/UTCarousel/components/Slider/constants.js +5 -10
- package/dist/components/UTCarousel/components/Slider/index.js +204 -273
- package/dist/components/UTCarousel/components/Slider/layout.js +67 -94
- package/dist/components/UTCarousel/index.js +14 -15
- package/dist/components/UTCarousel/theme.js +4 -2
- package/dist/components/UTCheckList/constants.js +1 -2
- package/dist/components/UTCheckList/index.js +72 -93
- package/dist/components/UTCheckList/theme.js +31 -31
- package/dist/components/UTCheckbox/constants.js +3 -6
- package/dist/components/UTCheckbox/index.js +32 -44
- package/dist/components/UTCheckbox/theme.js +35 -35
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +9 -9
- package/dist/components/UTConsumptionBar/constants.js +3 -6
- package/dist/components/UTConsumptionBar/index.js +53 -80
- package/dist/components/UTCuit/index.js +109 -133
- package/dist/components/UTCuit/theme.js +51 -53
- package/dist/components/UTDatePicker/components/Day/constants.js +1 -2
- package/dist/components/UTDatePicker/components/Day/index.js +12 -12
- package/dist/components/UTDatePicker/constants.js +20 -31
- package/dist/components/UTDatePicker/index.js +60 -102
- package/dist/components/UTDatePicker/theme.js +5 -3
- package/dist/components/UTDatePicker/types.js +2 -3
- package/dist/components/UTDatePicker/utils.js +2 -6
- package/dist/components/UTDialog/constants.js +2 -4
- package/dist/components/UTDialog/index.js +38 -37
- package/dist/components/UTDialog/theme.js +4 -2
- package/dist/components/UTDialog/types.js +2 -3
- package/dist/components/UTDotMenu/index.js +39 -61
- package/dist/components/UTEmojiPicker/constants.js +6 -11
- package/dist/components/UTEmojiPicker/index.js +45 -65
- package/dist/components/UTEmojiPicker/theme.js +4 -2
- package/dist/components/UTEmojiPicker/utils.js +21 -51
- package/dist/components/UTExternalLink/constants.js +3 -5
- package/dist/components/UTExternalLink/index.js +18 -15
- package/dist/components/UTExternalLink/theme.js +8 -6
- package/dist/components/UTFileInput/constants.js +2 -4
- package/dist/components/UTFileInput/index.js +7 -31
- package/dist/components/UTFileInput/layout.js +68 -97
- package/dist/components/UTIconButton/index.js +49 -72
- package/dist/components/UTIconButton/theme.js +4 -2
- package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +53 -58
- package/dist/components/UTImageRadio/constants.js +3 -6
- package/dist/components/UTImageRadio/index.js +39 -47
- package/dist/components/UTImageRadio/theme.js +11 -12
- package/dist/components/UTImageRadio/types.js +2 -3
- package/dist/components/UTImageRadio/utils.js +2 -6
- package/dist/components/UTLabel/constants.js +14 -20
- package/dist/components/UTLabel/index.js +18 -20
- package/dist/components/UTLabel/theme.js +15 -15
- package/dist/components/UTList/index.js +15 -18
- package/dist/components/UTLoading/index.js +15 -15
- package/dist/components/UTMap/components/GoogleMaps/constants.js +8 -11
- package/dist/components/UTMap/components/GoogleMaps/index.js +63 -91
- package/dist/components/UTMap/components/GoogleMaps/styles.js +2 -3
- package/dist/components/UTMap/constants.js +6 -12
- package/dist/components/UTMap/index.js +163 -198
- package/dist/components/UTMap/types.js +4 -6
- package/dist/components/UTMap/utils.js +29 -46
- package/dist/components/UTMap/withGoogleMapScript.js +18 -22
- package/dist/components/UTMenu/index.js +52 -69
- package/dist/components/UTMenu/theme.js +5 -3
- package/dist/components/UTMenu/utils.js +5 -11
- package/dist/components/UTModal/constants.js +9 -13
- package/dist/components/UTModal/index.js +26 -30
- package/dist/components/UTModal/theme.js +4 -2
- package/dist/components/UTPagination/components/PageSizeSelector/index.js +11 -10
- package/dist/components/UTPagination/components/PageSizeSelector/utils.js +7 -13
- package/dist/components/UTPagination/components/Pagination/components/NavigationButton/index.js +12 -12
- package/dist/components/UTPagination/components/Pagination/index.js +28 -39
- package/dist/components/UTPagination/components/Pagination/utils.js +8 -14
- package/dist/components/UTPagination/constants.js +3 -6
- package/dist/components/UTPagination/index.js +16 -17
- package/dist/components/UTPagination/theme.js +4 -2
- package/dist/components/UTPanel/index.js +38 -44
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +13 -10
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +22 -19
- package/dist/components/UTPasswordField/components/PasswordValidations/index.js +63 -50
- package/dist/components/UTPasswordField/components/PasswordWarning/index.js +25 -26
- package/dist/components/UTPasswordField/index.js +26 -23
- package/dist/components/UTPasswordField/theme.js +4 -2
- package/dist/components/UTPhoneInput/constants.js +3 -6
- package/dist/components/UTPhoneInput/index.js +180 -205
- package/dist/components/UTPhoneInput/theme.js +77 -77
- package/dist/components/UTPieChart/components/ArrowLabel/constants.js +4 -8
- package/dist/components/UTPieChart/components/ArrowLabel/index.js +24 -23
- package/dist/components/UTPieChart/components/Legend/contants.js +3 -6
- package/dist/components/UTPieChart/components/Legend/index.js +27 -24
- package/dist/components/UTPieChart/constants.js +13 -26
- package/dist/components/UTPieChart/hooks/use-animated-value/index.js +15 -33
- package/dist/components/UTPieChart/index.js +73 -76
- package/dist/components/UTPieChart/theme.js +4 -2
- package/dist/components/UTPieChart/utils.js +4 -2
- package/dist/components/UTProgressBar/constants.js +2 -4
- package/dist/components/UTProgressBar/index.js +15 -17
- package/dist/components/UTProgressBar/theme.js +4 -2
- package/dist/components/UTProgressBar/types.js +2 -3
- package/dist/components/UTRadioGroup/index.js +56 -83
- package/dist/components/UTRadioGroup/theme.js +52 -52
- package/dist/components/UTRating/components/Circle/index.js +41 -56
- package/dist/components/UTRating/components/Faces/constants.js +2 -4
- package/dist/components/UTRating/components/Faces/index.js +34 -36
- package/dist/components/UTRating/components/Star/index.js +36 -40
- package/dist/components/UTRating/constants.js +4 -8
- package/dist/components/UTRating/index.js +31 -46
- package/dist/components/UTRating/theme.js +4 -2
- package/dist/components/UTRipple/Ripple.js +22 -39
- package/dist/components/UTRipple/index.js +18 -37
- package/dist/components/UTSelect/components/Option/index.js +13 -13
- package/dist/components/UTSelect/constants.js +4 -8
- package/dist/components/UTSelect/index.js +63 -85
- package/dist/components/UTSelect/stylesJS.js +2 -3
- package/dist/components/UTSelect/theme.js +6 -4
- package/dist/components/UTSelect/utils.js +3 -13
- package/dist/components/UTSidebar/components/ListOption/index.js +34 -49
- package/dist/components/UTSidebar/components/LogosContainer/components/DynamicIcon/index.js +8 -8
- package/dist/components/UTSidebar/components/LogosContainer/index.js +14 -14
- package/dist/components/UTSidebar/components/Option/constants.js +2 -3
- package/dist/components/UTSidebar/components/Option/index.js +28 -32
- package/dist/components/UTSidebar/components/Toggler/index.js +11 -11
- package/dist/components/UTSidebar/index.js +42 -53
- package/dist/components/UTSidebar/theme.js +4 -2
- package/dist/components/UTSidebar/types.js +5 -10
- package/dist/components/UTSkeleton/index.js +10 -36
- package/dist/components/UTStatus/constants.js +5 -9
- package/dist/components/UTStatus/index.js +16 -15
- package/dist/components/UTStatus/theme.js +66 -49
- package/dist/components/UTSwitch/constants.js +3 -6
- package/dist/components/UTSwitch/index.js +42 -57
- package/dist/components/UTSwitch/theme.js +4 -2
- package/dist/components/UTTable/components/ActionIcons/constants.js +1 -2
- package/dist/components/UTTable/components/ActionIcons/index.js +47 -85
- package/dist/components/UTTable/components/Cell/components/ActionButton/index.js +10 -12
- package/dist/components/UTTable/components/Cell/index.js +18 -23
- package/dist/components/UTTable/components/HeaderCell/constants.js +2 -3
- package/dist/components/UTTable/components/HeaderCell/index.js +23 -30
- package/dist/components/UTTable/components/HeaderCell/utils.js +3 -3
- package/dist/components/UTTable/components/PrimaryAction/index.js +12 -11
- package/dist/components/UTTable/components/ResponsiveCell/index.js +19 -20
- package/dist/components/UTTable/components/Status/index.js +18 -19
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/index.js +10 -9
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/utils.js +7 -13
- package/dist/components/UTTable/components/TableFooter/components/Pagination/components/NavigationButton/index.js +12 -12
- package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +21 -32
- package/dist/components/UTTable/components/TableFooter/components/Pagination/utils.js +8 -14
- package/dist/components/UTTable/components/TableFooter/constants.js +1 -2
- package/dist/components/UTTable/components/TableFooter/index.js +15 -15
- package/dist/components/UTTable/components/TableHeader/index.js +11 -11
- package/dist/components/UTTable/components/TableRow/constants.js +3 -6
- package/dist/components/UTTable/components/TableRow/index.js +82 -95
- package/dist/components/UTTable/components/TableRow/styles.module.scss +8 -1
- package/dist/components/UTTable/components/TableRow/utils.js +15 -0
- package/dist/components/UTTable/constants.js +26 -43
- package/dist/components/UTTable/hook.js +11 -26
- package/dist/components/UTTable/index.js +129 -220
- package/dist/components/UTTable/theme.js +17 -17
- package/dist/components/UTTable/types.js +4 -8
- package/dist/components/UTTable/utils.js +70 -74
- package/dist/components/UTTabs/components/TooltipTab/index.js +20 -30
- package/dist/components/UTTabs/constants.js +4 -8
- package/dist/components/UTTabs/index.js +57 -86
- package/dist/components/UTTabs/theme.js +4 -2
- package/dist/components/UTTabs/utils.js +1 -1
- package/dist/components/UTTextArea/constants.js +3 -6
- package/dist/components/UTTextArea/index.js +23 -23
- package/dist/components/UTTextArea/theme.js +4 -2
- package/dist/components/UTTextInput/constants.js +2 -3
- package/dist/components/UTTextInput/index.js +137 -165
- package/dist/components/UTTextInput/theme.js +6 -4
- package/dist/components/UTThirdPartyCookieChecker/index.js +17 -21
- package/dist/components/UTToggle/components/ToggleOption/index.js +16 -17
- package/dist/components/UTToggle/index.js +25 -26
- package/dist/components/UTToggle/theme.js +4 -2
- package/dist/components/UTTooltip/index.js +23 -30
- package/dist/components/UTTooltip/theme.js +4 -2
- package/dist/components/UTTopbar/components/Notifications/index.js +11 -14
- package/dist/components/UTTopbar/components/UserMenu/index.js +15 -15
- package/dist/components/UTTopbar/index.js +28 -31
- package/dist/components/UTTopbar/theme.js +4 -2
- package/dist/components/UTTopbar/types.js +5 -9
- package/dist/components/UTTouchableWithoutFeedback/index.js +14 -27
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/constants.js +2 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +34 -31
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js +4 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/constants.js +6 -12
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-ledger.js +8 -18
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-virtualized-data.js +23 -47
- package/dist/components/UTVirtualizedList/components/VirtualizedData/index.js +31 -34
- package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +81 -93
- package/dist/components/UTVirtualizedList/constants.js +4 -8
- package/dist/components/UTVirtualizedList/index.js +26 -38
- package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +17 -21
- package/dist/components/UTWorkflowContainer/constants.js +3 -6
- package/dist/components/UTWorkflowContainer/hooks/use-previous.js +3 -3
- package/dist/components/UTWorkflowContainer/index.js +32 -51
- package/dist/components/UTWorkflowContainer/theme.js +60 -53
- package/dist/components/UTWorkflowContainer/types.js +2 -3
- package/dist/components/WithLoading/index.js +10 -15
- package/dist/components/WithTheme/index.js +10 -17
- package/dist/components/WithTheme/layout.js +22 -28
- package/dist/components/WithTouch/index.js +12 -19
- package/dist/constants/UTTable.js +2 -3
- package/dist/index.js +58 -58
- package/dist/theme.js +6 -5
- package/dist/types/commonTypes.js +3 -5
- package/dist/types/consumptionTypes.js +3 -5
- package/dist/types/formTypes.js +4 -7
- package/dist/types/tableTypes.js +2 -3
- package/dist/utils/classesUtils.js +5 -13
- package/dist/utils/componentUtils.js +10 -13
- package/dist/utils/helperFunctions.js +4 -4
- package/dist/utils/shadowUtils.js +13 -11
- package/dist/utils/useScreenSize.js +2 -3
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -13,98 +12,73 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
13
12
|
var _Slide = _interopRequireDefault(require("./component/Slide"));
|
|
14
13
|
var _constants = require("./constants");
|
|
15
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
+
class Slider extends _react.PureComponent {
|
|
18
|
+
render() {
|
|
19
|
+
const {
|
|
20
|
+
transitionSlide,
|
|
21
|
+
slides,
|
|
22
|
+
containerWidth,
|
|
23
|
+
slideArray,
|
|
24
|
+
shouldAnimate,
|
|
25
|
+
index,
|
|
26
|
+
withBorder,
|
|
27
|
+
handleLegend,
|
|
28
|
+
handlePrevSlide,
|
|
29
|
+
handleNextSlide,
|
|
30
|
+
timeAnimation,
|
|
31
|
+
arrow,
|
|
32
|
+
legend,
|
|
33
|
+
classes
|
|
34
|
+
} = this.props;
|
|
35
|
+
const animationTime = timeAnimation === 35 ? 0.035 : 0.4;
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, arrow && arrow.position === _constants.INSIDE && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
37
|
+
ArrowCustom: arrow.arrowCustomLeft,
|
|
38
|
+
callback: arrow.callbackLeft,
|
|
39
|
+
left: true,
|
|
40
|
+
onPress: handlePrevSlide,
|
|
41
|
+
className: _stylesModule.default.arrowLeft,
|
|
42
|
+
classes: classes
|
|
43
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
+
style: {
|
|
45
|
+
transform: "translate3d(".concat(transitionSlide, "px, 0px, 0px)"),
|
|
46
|
+
width: "".concat(containerWidth * slideArray.length, "px"),
|
|
47
|
+
transition: "".concat(shouldAnimate ? "transform ".concat(animationTime, "s linear 0s") : 'none')
|
|
48
|
+
},
|
|
49
|
+
className: "".concat(_stylesModule.default.slideContainer),
|
|
50
|
+
draggable: "false"
|
|
51
|
+
}, slideArray.map((slide, _index) => /*#__PURE__*/_react.default.createElement(_Slide.default, {
|
|
52
|
+
animationTime: animationTime,
|
|
53
|
+
border: withBorder,
|
|
54
|
+
classes: classes,
|
|
55
|
+
currentSlide: index - 1,
|
|
56
|
+
imgSrc: slide.imgSrc,
|
|
57
|
+
key: "slide-".concat(slide.id || slide.imgSrc),
|
|
58
|
+
onClick: slide.onClick,
|
|
59
|
+
position: _index - 1,
|
|
60
|
+
shouldAnimate: shouldAnimate,
|
|
61
|
+
widthContainer: containerWidth
|
|
62
|
+
}))), legend && legend.position === _constants.INSIDE && /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
+
className: _stylesModule.default.legendContainer
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
+
className: _stylesModule.default.legend
|
|
66
|
+
}, slides.map((slide, itemIndex) => /*#__PURE__*/_react.default.createElement(_Legend.default, {
|
|
67
|
+
key: "legend-in-".concat(slide.id || slide.imgSrc),
|
|
68
|
+
classes: classes,
|
|
69
|
+
currentSlide: index === slideArray.length - 1 ? 0 : index === 0 ? 1 : index - 1,
|
|
70
|
+
index: itemIndex,
|
|
71
|
+
LegendCustom: legend.legendCustom,
|
|
72
|
+
onClick: handleLegend
|
|
73
|
+
})))), arrow && arrow.position === _constants.INSIDE && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
74
|
+
ArrowCustom: arrow.arrowCustomRight,
|
|
75
|
+
callback: arrow.callbackRight,
|
|
76
|
+
onPress: handleNextSlide,
|
|
77
|
+
className: _stylesModule.default.arrowRight,
|
|
78
|
+
classes: classes
|
|
79
|
+
}));
|
|
36
80
|
}
|
|
37
|
-
|
|
38
|
-
key: "render",
|
|
39
|
-
value: function render() {
|
|
40
|
-
var _this$props = this.props,
|
|
41
|
-
transitionSlide = _this$props.transitionSlide,
|
|
42
|
-
slides = _this$props.slides,
|
|
43
|
-
containerWidth = _this$props.containerWidth,
|
|
44
|
-
slideArray = _this$props.slideArray,
|
|
45
|
-
shouldAnimate = _this$props.shouldAnimate,
|
|
46
|
-
index = _this$props.index,
|
|
47
|
-
withBorder = _this$props.withBorder,
|
|
48
|
-
handleLegend = _this$props.handleLegend,
|
|
49
|
-
handlePrevSlide = _this$props.handlePrevSlide,
|
|
50
|
-
handleNextSlide = _this$props.handleNextSlide,
|
|
51
|
-
timeAnimation = _this$props.timeAnimation,
|
|
52
|
-
arrow = _this$props.arrow,
|
|
53
|
-
legend = _this$props.legend,
|
|
54
|
-
classes = _this$props.classes;
|
|
55
|
-
var animationTime = timeAnimation === 35 ? 0.035 : 0.4;
|
|
56
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, arrow && arrow.position === _constants.INSIDE && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
57
|
-
ArrowCustom: arrow.arrowCustomLeft,
|
|
58
|
-
callback: arrow.callbackLeft,
|
|
59
|
-
left: true,
|
|
60
|
-
onPress: handlePrevSlide,
|
|
61
|
-
className: _stylesModule.default.arrowLeft,
|
|
62
|
-
classes: classes
|
|
63
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
64
|
-
style: {
|
|
65
|
-
transform: "translate3d(".concat(transitionSlide, "px, 0px, 0px)"),
|
|
66
|
-
width: "".concat(containerWidth * slideArray.length, "px"),
|
|
67
|
-
transition: "".concat(shouldAnimate ? "transform ".concat(animationTime, "s linear 0s") : 'none')
|
|
68
|
-
},
|
|
69
|
-
className: "".concat(_stylesModule.default.slideContainer),
|
|
70
|
-
draggable: "false"
|
|
71
|
-
}, slideArray.map(function (slide, _index) {
|
|
72
|
-
return /*#__PURE__*/_react.default.createElement(_Slide.default, {
|
|
73
|
-
animationTime: animationTime,
|
|
74
|
-
border: withBorder,
|
|
75
|
-
classes: classes,
|
|
76
|
-
currentSlide: index - 1,
|
|
77
|
-
imgSrc: slide.imgSrc,
|
|
78
|
-
key: "slide-".concat(slide.id || slide.imgSrc),
|
|
79
|
-
onClick: slide.onClick,
|
|
80
|
-
position: _index - 1,
|
|
81
|
-
shouldAnimate: shouldAnimate,
|
|
82
|
-
widthContainer: containerWidth
|
|
83
|
-
});
|
|
84
|
-
})), legend && legend.position === _constants.INSIDE && /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
-
className: _stylesModule.default.legendContainer
|
|
86
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
-
className: _stylesModule.default.legend
|
|
88
|
-
}, slides.map(function (slide, itemIndex) {
|
|
89
|
-
return /*#__PURE__*/_react.default.createElement(_Legend.default, {
|
|
90
|
-
key: "legend-in-".concat(slide.id || slide.imgSrc),
|
|
91
|
-
classes: classes,
|
|
92
|
-
currentSlide: index === slideArray.length - 1 ? 0 : index === 0 ? 1 : index - 1,
|
|
93
|
-
index: itemIndex,
|
|
94
|
-
LegendCustom: legend.legendCustom,
|
|
95
|
-
onClick: handleLegend
|
|
96
|
-
});
|
|
97
|
-
}))), arrow && arrow.position === _constants.INSIDE && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
98
|
-
ArrowCustom: arrow.arrowCustomRight,
|
|
99
|
-
callback: arrow.callbackRight,
|
|
100
|
-
onPress: handleNextSlide,
|
|
101
|
-
className: _stylesModule.default.arrowRight,
|
|
102
|
-
classes: classes
|
|
103
|
-
}));
|
|
104
|
-
}
|
|
105
|
-
}]);
|
|
106
|
-
return Slider;
|
|
107
|
-
}(_react.PureComponent);
|
|
81
|
+
}
|
|
108
82
|
Slider.propTypes = {
|
|
109
83
|
slideArray: (0, _propTypes.arrayOf)((0, _propTypes.shape)({
|
|
110
84
|
imgSrc: _propTypes.string,
|
|
@@ -136,5 +110,4 @@ Slider.propTypes = {
|
|
|
136
110
|
timeAnimation: _propTypes.number,
|
|
137
111
|
classes: (0, _propTypes.objectOf)(_propTypes.string)
|
|
138
112
|
};
|
|
139
|
-
var _default = Slider;
|
|
140
|
-
exports.default = _default;
|
|
113
|
+
var _default = exports.default = Slider;
|
|
@@ -11,19 +11,19 @@ var _WithTheme = _interopRequireDefault(require("../WithTheme"));
|
|
|
11
11
|
var _theme = require("./theme");
|
|
12
12
|
var _Slider = _interopRequireDefault(require("./components/Slider"));
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
autoPlayDelay =
|
|
22
|
-
classes
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
const UTCarousel = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
arrow,
|
|
17
|
+
legend,
|
|
18
|
+
imgArray,
|
|
19
|
+
borderSize,
|
|
20
|
+
autoPlay,
|
|
21
|
+
autoPlayDelay = 2000,
|
|
22
|
+
classes,
|
|
23
|
+
height = _sizesModule.default.defaultCarrouselHeight,
|
|
24
|
+
activeEvents,
|
|
25
|
+
className
|
|
26
|
+
} = _ref;
|
|
27
27
|
return /*#__PURE__*/_react.default.createElement(_Slider.default, {
|
|
28
28
|
arrow: arrow,
|
|
29
29
|
legend: legend,
|
|
@@ -60,5 +60,4 @@ UTCarousel.propTypes = {
|
|
|
60
60
|
className: _propTypes.string,
|
|
61
61
|
classes: (0, _propTypes.objectOf)(_propTypes.string)
|
|
62
62
|
};
|
|
63
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTCarousel);
|
|
64
|
-
exports.default = _default;
|
|
63
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTCarousel);
|
|
@@ -8,8 +8,10 @@ var _seamlessImmutable = require("seamless-immutable");
|
|
|
8
8
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
9
9
|
var _sizesModule = _interopRequireDefault(require("../../scss/variables/sizes.module.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const retrieveStyle = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
theme
|
|
14
|
+
} = _ref;
|
|
13
15
|
return {
|
|
14
16
|
arrowStyle: {
|
|
15
17
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCarousel', 'arrowStyle', 'fontSize'], _sizesModule.default.defaultCarrouselArrowSize),
|
|
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultAdditionalInfoHeader = void 0;
|
|
7
|
-
|
|
8
|
-
exports.defaultAdditionalInfoHeader = defaultAdditionalInfoHeader;
|
|
7
|
+
const defaultAdditionalInfoHeader = exports.defaultAdditionalInfoHeader = 'Seleccionar Todo';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -19,74 +18,63 @@ var _theme = require("./theme");
|
|
|
19
18
|
var _constants = require("./constants");
|
|
20
19
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
21
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
-
function _getRequireWildcardCache(
|
|
23
|
-
function _interopRequireWildcard(
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
23
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
26
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
28
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
29
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
30
|
-
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; }
|
|
31
|
-
var UTCheckList = function UTCheckList(_ref) {
|
|
24
|
+
const UTCheckList = _ref => {
|
|
32
25
|
var _field$configuration;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
themeClasses =
|
|
41
|
-
className
|
|
42
|
-
classNames
|
|
43
|
-
disabled
|
|
44
|
-
disabledItemTooltip
|
|
45
|
-
field
|
|
46
|
-
getSelectAllNewValues
|
|
47
|
-
header
|
|
48
|
-
headerLabel
|
|
49
|
-
input
|
|
50
|
-
labelKey
|
|
51
|
-
list
|
|
52
|
-
meta
|
|
53
|
-
shouldShowErrors
|
|
54
|
-
titleProps
|
|
55
|
-
useCustomIcons
|
|
56
|
-
valueKey
|
|
57
|
-
withCheckRow
|
|
58
|
-
withUpperTitle
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
});
|
|
26
|
+
let {
|
|
27
|
+
additionalInfo,
|
|
28
|
+
allChecked,
|
|
29
|
+
CustomCheckedIcon,
|
|
30
|
+
CustomUncheckedIcon,
|
|
31
|
+
customRowLabel: CustomRowLabel,
|
|
32
|
+
customSelectAllRowLabel: CustomSelectAllRowLabel,
|
|
33
|
+
classes: themeClasses = {},
|
|
34
|
+
className,
|
|
35
|
+
classNames,
|
|
36
|
+
disabled,
|
|
37
|
+
disabledItemTooltip,
|
|
38
|
+
field,
|
|
39
|
+
getSelectAllNewValues,
|
|
40
|
+
header,
|
|
41
|
+
headerLabel,
|
|
42
|
+
input,
|
|
43
|
+
labelKey,
|
|
44
|
+
list,
|
|
45
|
+
meta,
|
|
46
|
+
shouldShowErrors,
|
|
47
|
+
titleProps,
|
|
48
|
+
useCustomIcons,
|
|
49
|
+
valueKey,
|
|
50
|
+
withCheckRow,
|
|
51
|
+
withUpperTitle
|
|
52
|
+
} = _ref;
|
|
53
|
+
const shouldShowUpperTitle = (field === null || field === void 0 || (_field$configuration = field.configuration) === null || _field$configuration === void 0 ? void 0 : _field$configuration.ignore_title) && withUpperTitle;
|
|
54
|
+
const handleChange = id => {
|
|
55
|
+
const newValues = input.value.indexOf(id) === -1 ? [...input.value, id] : input.value.filter(elem => elem !== id);
|
|
64
56
|
input.onChange((0, _array.isEmpty)(newValues) ? null : newValues);
|
|
65
57
|
};
|
|
66
|
-
|
|
58
|
+
const handleCheckAll = () => {
|
|
67
59
|
if (getSelectAllNewValues) {
|
|
68
60
|
input.onChange(getSelectAllNewValues());
|
|
69
61
|
} else if (list.length !== input.value.length) {
|
|
70
|
-
input.onChange(list.map(
|
|
71
|
-
return item[valueKey];
|
|
72
|
-
}));
|
|
62
|
+
input.onChange(list.map(item => item[valueKey]));
|
|
73
63
|
} else {
|
|
74
64
|
input.onChange(null);
|
|
75
65
|
}
|
|
76
66
|
};
|
|
77
|
-
(0, _react.useEffect)(
|
|
67
|
+
(0, _react.useEffect)(() => {
|
|
78
68
|
if (allChecked) handleCheckAll();
|
|
79
69
|
}, []);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return key.map(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}, item[keyValue]);
|
|
89
|
-
});
|
|
70
|
+
const classes = (0, _classesUtils.mergeClasses)(themeClasses, classNames);
|
|
71
|
+
const label = function () {
|
|
72
|
+
let key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
73
|
+
let item = arguments.length > 1 ? arguments[1] : undefined;
|
|
74
|
+
return key.map(keyValue => /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
75
|
+
variant: "xsmall",
|
|
76
|
+
className: classes.rowItem
|
|
77
|
+
}, item[keyValue]));
|
|
90
78
|
};
|
|
91
79
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
92
80
|
className: "".concat(_stylesModule.default.container, " ").concat(className)
|
|
@@ -96,13 +84,11 @@ var UTCheckList = function UTCheckList(_ref) {
|
|
|
96
84
|
withMarkdown: true
|
|
97
85
|
}), field.title), /*#__PURE__*/_react.default.createElement("div", {
|
|
98
86
|
className: header ? classes.tableHeader : classes.selectAll
|
|
99
|
-
}, header && header.map(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}, item.text);
|
|
105
|
-
}), /*#__PURE__*/_react.default.createElement(_UTCheckbox.default, {
|
|
87
|
+
}, header && header.map(item => /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
88
|
+
weight: "bold",
|
|
89
|
+
className: classes.headerItem,
|
|
90
|
+
key: item.text
|
|
91
|
+
}, item.text)), /*#__PURE__*/_react.default.createElement(_UTCheckbox.default, {
|
|
106
92
|
disabled: disabled,
|
|
107
93
|
onChange: handleCheckAll,
|
|
108
94
|
value: list.length === input.value.length,
|
|
@@ -118,34 +104,28 @@ var UTCheckList = function UTCheckList(_ref) {
|
|
|
118
104
|
CustomUncheckedIcon: CustomUncheckedIcon
|
|
119
105
|
})), /*#__PURE__*/_react.default.createElement(_FormGroup.default, {
|
|
120
106
|
className: "".concat(_stylesModule.default.rows, " ").concat(classes.rowContainerClassName)
|
|
121
|
-
}, list.map(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
useCustomIcons: useCustomIcons,
|
|
144
|
-
CustomCheckedIcon: CustomCheckedIcon,
|
|
145
|
-
CustomUncheckedIcon: CustomUncheckedIcon,
|
|
146
|
-
tooltipContent: item.disabled && disabledItemTooltip ? disabledItemTooltip(item, list) : undefined
|
|
147
|
-
}));
|
|
148
|
-
})), additionalInfo && additionalInfo.footer && /*#__PURE__*/_react.default.createElement(_FormHelperText.default, null, additionalInfo.footer), shouldShowErrors && /*#__PURE__*/_react.default.createElement(_FormHelperText.default, {
|
|
107
|
+
}, list.map(item => /*#__PURE__*/_react.default.createElement("div", {
|
|
108
|
+
className: "\n ".concat(_stylesModule.default.row, "\n ").concat(withCheckRow && classes.checkRowContainer, "\n ").concat(!(0, _array.isEmpty)(input.value) && !!input.value.find(val => val === item[valueKey]) && classes.customRowRootChecked, " "),
|
|
109
|
+
key: item[valueKey]
|
|
110
|
+
}, withCheckRow && label([valueKey, labelKey], item), /*#__PURE__*/_react.default.createElement(_UTCheckbox.default, {
|
|
111
|
+
disabled: disabled || item.disabled,
|
|
112
|
+
item: item,
|
|
113
|
+
key: item[valueKey],
|
|
114
|
+
value: input.value.indexOf(item[valueKey]) !== -1,
|
|
115
|
+
label: withCheckRow ? '' : item[labelKey],
|
|
116
|
+
onChange: () => handleChange(item[valueKey]),
|
|
117
|
+
customRowLabel: CustomRowLabel,
|
|
118
|
+
classNames: {
|
|
119
|
+
root: !withCheckRow && classes.customRowRoot,
|
|
120
|
+
checkedIcon: classes.checkedIcon,
|
|
121
|
+
uncheckedIcon: classes.uncheckedIcon,
|
|
122
|
+
label: classes.label
|
|
123
|
+
},
|
|
124
|
+
useCustomIcons: useCustomIcons,
|
|
125
|
+
CustomCheckedIcon: CustomCheckedIcon,
|
|
126
|
+
CustomUncheckedIcon: CustomUncheckedIcon,
|
|
127
|
+
tooltipContent: item.disabled && disabledItemTooltip ? disabledItemTooltip(item, list) : undefined
|
|
128
|
+
})))), additionalInfo && additionalInfo.footer && /*#__PURE__*/_react.default.createElement(_FormHelperText.default, null, additionalInfo.footer), shouldShowErrors && /*#__PURE__*/_react.default.createElement(_FormHelperText.default, {
|
|
149
129
|
error: true
|
|
150
130
|
}, meta && meta.error));
|
|
151
131
|
};
|
|
@@ -191,5 +171,4 @@ UTCheckList.propTypes = {
|
|
|
191
171
|
withCheckRow: _propTypes.bool,
|
|
192
172
|
withUpperTitle: _propTypes.bool
|
|
193
173
|
};
|
|
194
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle, _theme.retrieveMuiTheme)(UTCheckList);
|
|
195
|
-
exports.default = _default;
|
|
174
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle, _theme.retrieveMuiTheme)(UTCheckList);
|
|
@@ -9,45 +9,45 @@ var _styles = require("@material-ui/core/styles");
|
|
|
9
9
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
10
10
|
var _classesUtils = require("../../utils/classesUtils");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
const retrieveMuiTheme = theme => (0, _styles.createTheme)({
|
|
13
|
+
typography: {
|
|
14
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'])
|
|
15
|
+
},
|
|
16
|
+
overrides: {
|
|
17
|
+
MuiFormControlLabel: {
|
|
18
|
+
label: {
|
|
19
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'label', 'fontSize'], 14),
|
|
20
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'label', 'color'], _colorsModule.default.primary)
|
|
21
|
+
}
|
|
16
22
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
MuiFormHelperText: {
|
|
25
|
-
root: {
|
|
26
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'fontSize'], 14),
|
|
27
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'color'], _colorsModule.default.primary),
|
|
28
|
-
'&$error': {
|
|
29
|
-
color: theme.Palette.error['05']
|
|
30
|
-
}
|
|
23
|
+
MuiFormHelperText: {
|
|
24
|
+
root: {
|
|
25
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'fontSize'], 14),
|
|
26
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'helperText', 'color'], _colorsModule.default.primary),
|
|
27
|
+
'&$error': {
|
|
28
|
+
color: theme.Palette.error['05']
|
|
31
29
|
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
MuiCheckbox: {
|
|
33
|
+
root: {
|
|
34
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'color'], _colorsModule.default.gray)
|
|
32
35
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
colorPrimary: {
|
|
38
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'color'], _colorsModule.default.gray),
|
|
39
|
-
'&$checked': {
|
|
40
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'checkedColor'], _colorsModule.default.inputPrimary)
|
|
41
|
-
}
|
|
36
|
+
colorPrimary: {
|
|
37
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'color'], _colorsModule.default.gray),
|
|
38
|
+
'&$checked': {
|
|
39
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'checkbox', 'checkedColor'], _colorsModule.default.inputPrimary)
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
47
45
|
exports.retrieveMuiTheme = retrieveMuiTheme;
|
|
48
|
-
|
|
46
|
+
const retrieveStyle = _ref => {
|
|
49
47
|
var _theme$UTCheckList, _theme$UTCheckList2;
|
|
50
|
-
|
|
48
|
+
let {
|
|
49
|
+
theme
|
|
50
|
+
} = _ref;
|
|
51
51
|
return {
|
|
52
52
|
selectAllRowRoot: {
|
|
53
53
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTCheckList', 'selectAllRow', 'root', 'color']),
|
|
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.tippyProps = void 0;
|
|
7
|
-
|
|
8
|
-
appendTo:
|
|
9
|
-
return document.body;
|
|
10
|
-
},
|
|
7
|
+
const tippyProps = exports.tippyProps = {
|
|
8
|
+
appendTo: () => document.body,
|
|
11
9
|
interactive: false,
|
|
12
10
|
maxWidth: 'none'
|
|
13
|
-
};
|
|
14
|
-
exports.tippyProps = tippyProps;
|
|
11
|
+
};
|