@widergy/energy-ui 1.136.0 → 1.136.2
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 +9 -11
- package/dist/components/UTAlert/AlertHandler.js +75 -101
- package/dist/components/UTAlert/index.js +65 -87
- package/dist/components/UTAlert/theme.js +29 -31
- package/dist/components/UTAttachment/components/Preview/index.js +8 -9
- package/dist/components/UTAttachment/constants.js +7 -13
- package/dist/components/UTAttachment/index.js +153 -232
- package/dist/components/UTAttachment/layout.js +25 -26
- package/dist/components/UTAttachment/theme.js +12 -14
- 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 +45 -66
- package/dist/components/UTAutocomplete/theme.js +3 -3
- package/dist/components/UTAvatar/constants.js +2 -3
- package/dist/components/UTAvatar/index.js +15 -12
- 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 +73 -91
- 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 +24 -31
- 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 +148 -162
- package/dist/components/UTBarChart/theme.js +102 -104
- package/dist/components/UTBarChart/types.js +9 -17
- package/dist/components/UTBarChart/utils.js +107 -111
- package/dist/components/UTBreadcrumbs/constants.js +3 -6
- package/dist/components/UTBreadcrumbs/index.js +79 -106
- package/dist/components/UTBreadcrumbs/theme.js +21 -23
- package/dist/components/UTButton/index.js +48 -71
- package/dist/components/UTButton/theme.js +172 -174
- package/dist/components/UTCBUInput/index.js +36 -40
- package/dist/components/UTCBUInput/theme.js +5 -7
- package/dist/components/UTCaptcha/index.js +19 -45
- package/dist/components/UTCard/components/UTCardFooter/index.js +16 -17
- package/dist/components/UTCard/index.js +87 -122
- package/dist/components/UTCard/theme.js +8 -11
- 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 +14 -16
- 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 +181 -252
- package/dist/components/UTCarousel/components/Slider/layout.js +66 -93
- package/dist/components/UTCarousel/index.js +14 -15
- package/dist/components/UTCarousel/theme.js +35 -37
- package/dist/components/UTCheckList/constants.js +1 -2
- package/dist/components/UTCheckList/index.js +72 -91
- package/dist/components/UTCheckList/theme.js +66 -70
- package/dist/components/UTCheckbox/constants.js +3 -6
- package/dist/components/UTCheckbox/index.js +31 -42
- package/dist/components/UTCheckbox/theme.js +49 -53
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +9 -9
- package/dist/components/UTConsumptionBar/constants.js +3 -6
- package/dist/components/UTConsumptionBar/index.js +49 -74
- package/dist/components/UTCuit/index.js +109 -133
- package/dist/components/UTCuit/theme.js +47 -49
- 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 +59 -101
- package/dist/components/UTDatePicker/theme.js +173 -177
- package/dist/components/UTDatePicker/types.js +2 -3
- package/dist/components/UTDatePicker/utils.js +2 -6
- package/dist/components/UTDialog/components/ActionButton/index.js +10 -9
- package/dist/components/UTDialog/constants.js +2 -4
- package/dist/components/UTDialog/index.js +39 -38
- package/dist/components/UTDialog/theme.js +93 -95
- package/dist/components/UTDialog/types.js +2 -3
- package/dist/components/UTDotMenu/index.js +33 -57
- package/dist/components/UTEmojiPicker/constants.js +6 -11
- package/dist/components/UTEmojiPicker/index.js +45 -65
- package/dist/components/UTEmojiPicker/theme.js +1 -1
- package/dist/components/UTEmojiPicker/utils.js +21 -51
- package/dist/components/UTExternalLink/index.js +17 -14
- package/dist/components/UTFileInput/constants.js +2 -4
- package/dist/components/UTFileInput/index.js +7 -31
- package/dist/components/UTFileInput/layout.js +67 -96
- package/dist/components/UTIconButton/index.js +49 -72
- package/dist/components/UTIconButton/theme.js +53 -55
- 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 +8 -11
- package/dist/components/UTImageRadio/types.js +2 -3
- package/dist/components/UTImageRadio/utils.js +2 -6
- package/dist/components/UTLabel/index.js +69 -90
- package/dist/components/UTLabel/theme.js +84 -86
- 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 +12 -17
- package/dist/components/UTMenu/index.js +52 -69
- package/dist/components/UTMenu/theme.js +2 -2
- package/dist/components/UTMenu/utils.js +5 -11
- 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 +14 -11
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +24 -21
- package/dist/components/UTPasswordField/components/PasswordValidations/index.js +63 -50
- package/dist/components/UTPasswordField/components/PasswordWarning/index.js +26 -27
- package/dist/components/UTPasswordField/index.js +26 -23
- package/dist/components/UTPasswordField/theme.js +37 -39
- package/dist/components/UTPhoneInput/constants.js +3 -6
- package/dist/components/UTPhoneInput/index.js +180 -205
- package/dist/components/UTPhoneInput/theme.js +109 -113
- 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 +23 -25
- package/dist/components/UTPieChart/utils.js +4 -2
- package/dist/components/UTProgressBar/constants.js +2 -4
- package/dist/components/UTProgressBar/index.js +12 -11
- package/dist/components/UTProgressBar/theme.js +25 -27
- package/dist/components/UTProgressBar/types.js +2 -3
- package/dist/components/UTRadioGroup/index.js +45 -71
- package/dist/components/UTRadioGroup/theme.js +82 -86
- 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 +77 -79
- 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 +61 -81
- package/dist/components/UTSelect/stylesJS.js +2 -3
- package/dist/components/UTSelect/theme.js +43 -45
- package/dist/components/UTSelect/utils.js +3 -13
- package/dist/components/UTSidebar/components/ListOption/index.js +32 -47
- 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 +1 -1
- package/dist/components/UTSidebar/types.js +5 -10
- package/dist/components/UTSkeleton/index.js +10 -36
- package/dist/components/UTSwitch/constants.js +3 -6
- package/dist/components/UTSwitch/index.js +42 -57
- package/dist/components/UTSwitch/theme.js +115 -117
- package/dist/components/UTTable/components/ActionIcons/constants.js +1 -2
- package/dist/components/UTTable/components/ActionIcons/index.js +44 -81
- 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 +79 -94
- package/dist/components/UTTable/constants.js +26 -43
- package/dist/components/UTTable/hook.js +11 -26
- package/dist/components/UTTable/index.js +125 -213
- package/dist/components/UTTable/theme.js +13 -16
- 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 +55 -84
- package/dist/components/UTTabs/theme.js +112 -114
- package/dist/components/UTTabs/utils.js +1 -1
- package/dist/components/UTTextArea/constants.js +4 -6
- package/dist/components/UTTextArea/index.js +40 -24
- package/dist/components/UTTextArea/styles.module.scss +20 -1
- package/dist/components/UTTextArea/theme.js +1 -1
- package/dist/components/UTTextInput/constants.js +2 -3
- package/dist/components/UTTextInput/index.js +116 -146
- package/dist/components/UTTextInput/theme.js +28 -30
- 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 +47 -49
- package/dist/components/UTTooltip/index.js +23 -30
- package/dist/components/UTTooltip/theme.js +1 -1
- package/dist/components/UTTopbar/theme.js +4 -2
- 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 +11 -11
- package/dist/components/UTWorkflowContainer/constants.js +5 -9
- package/dist/components/UTWorkflowContainer/hooks/use-previous.js +3 -3
- package/dist/components/UTWorkflowContainer/index.js +31 -50
- package/dist/components/UTWorkflowContainer/theme.js +70 -64
- 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 +18 -41
- package/dist/components/WithTouch/index.js +12 -19
- package/dist/index.js +54 -54
- package/dist/scss/variables/colors.module.scss +1 -0
- package/dist/theme.js +5 -3
- 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 +4 -10
- package/dist/utils/componentUtils.js +10 -13
- package/dist/utils/helperFunctions.js +4 -4
- package/dist/utils/useScreenSize.js +2 -3
- package/package.json +1 -1
|
@@ -7,17 +7,12 @@ exports.retrieveStyle = void 0;
|
|
|
7
7
|
var _seamlessImmutable = require("seamless-immutable");
|
|
8
8
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var retrieveStyle = function retrieveStyle(theme) {
|
|
15
|
-
var _container, _subtitle;
|
|
16
|
-
var mobile = (0, _seamlessImmutable.getIn)(theme, ['Media', 'mobile']);
|
|
17
|
-
var tabletMobile = (0, _seamlessImmutable.getIn)(theme, ['Media', 'tabletMobile']);
|
|
18
|
-
var desktop = (0, _seamlessImmutable.getIn)(theme, ['Media', 'desktop']);
|
|
10
|
+
const retrieveStyle = theme => {
|
|
11
|
+
const mobile = (0, _seamlessImmutable.getIn)(theme, ['Media', 'mobile']);
|
|
12
|
+
const tabletMobile = (0, _seamlessImmutable.getIn)(theme, ['Media', 'tabletMobile']);
|
|
13
|
+
const desktop = (0, _seamlessImmutable.getIn)(theme, ['Media', 'desktop']);
|
|
19
14
|
return {
|
|
20
|
-
container:
|
|
15
|
+
container: {
|
|
21
16
|
border: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'container', 'border'], 0),
|
|
22
17
|
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'container', 'borderRadius'], '4px'),
|
|
23
18
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'container', 'backgroundColor'], _colorsModule.default.cardBackground),
|
|
@@ -29,25 +24,29 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
29
24
|
overflow: 'hidden',
|
|
30
25
|
padding: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'container', 'padding'], '0 20px 15px'),
|
|
31
26
|
position: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'container', 'position']),
|
|
32
|
-
width: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'container', 'width'])
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'container', 'width']),
|
|
28
|
+
[tabletMobile]: {
|
|
29
|
+
margin: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'container', 'tabletMobile', 'margin']),
|
|
30
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'container', 'tabletMobile', 'padding'], '0 10px 10px')
|
|
31
|
+
},
|
|
32
|
+
[mobile]: {
|
|
33
|
+
border: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'container', 'mobile', 'border'])
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
actionsContainer: {
|
|
40
37
|
padding: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'actionsContainer', 'padding']),
|
|
41
38
|
marginTop: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'actionsContainer', 'marginTop']),
|
|
42
|
-
marginBottom: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'actionsContainer', 'marginBottom'])
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
marginBottom: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'actionsContainer', 'marginBottom']),
|
|
40
|
+
[tabletMobile]: {
|
|
41
|
+
marginTop: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'actionsContainer', 'tabletMobile', 'marginTop'])
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
progress: {
|
|
45
|
+
margin: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'progress', 'margin'], '0'),
|
|
46
|
+
[desktop]: {
|
|
47
|
+
marginBottom: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'progress', 'desktop', 'marginBottom'])
|
|
48
|
+
}
|
|
49
|
+
},
|
|
51
50
|
colorPrimary: {
|
|
52
51
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'progress', 'color']),
|
|
53
52
|
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'progress', 'borderRadius'], '0 0 4px 4px')
|
|
@@ -61,16 +60,17 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
61
60
|
flexDirection: 'column',
|
|
62
61
|
alignItems: 'center'
|
|
63
62
|
},
|
|
64
|
-
titles:
|
|
63
|
+
titles: {
|
|
65
64
|
display: 'flex',
|
|
66
65
|
flexDirection: 'column',
|
|
67
66
|
margin: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'titles', 'margin'], '0'),
|
|
68
67
|
alignItems: 'center',
|
|
69
|
-
maxWidth: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'titles', 'maxWidth'])
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
maxWidth: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'titles', 'maxWidth']),
|
|
69
|
+
[tabletMobile]: {
|
|
70
|
+
maxWidth: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'titles', 'tabletMobile', 'maxWidth'])
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
backButton: {
|
|
74
74
|
border: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButton', 'border']),
|
|
75
75
|
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButton', 'borderRadius'], 4),
|
|
76
76
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButton', 'color']),
|
|
@@ -85,12 +85,13 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
85
85
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButtonHover', 'backgroundColor'])
|
|
86
86
|
},
|
|
87
87
|
minWidth: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButton', 'minWidth']),
|
|
88
|
-
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButton', 'boxShadow'])
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButton', 'boxShadow']),
|
|
89
|
+
[tabletMobile]: {
|
|
90
|
+
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButton', "tabletMobile", 'borderRadius']),
|
|
91
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButton', "tabletMobile", 'padding']),
|
|
92
|
+
minWidth: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButton', "tabletMobile", 'minWidth'], '1px !important')
|
|
93
|
+
}
|
|
94
|
+
},
|
|
94
95
|
buttonIcon: {
|
|
95
96
|
height: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'buttonIcon', 'height']),
|
|
96
97
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'buttonIcon', 'width']),
|
|
@@ -106,7 +107,7 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
106
107
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButtonDisabled', 'color']),
|
|
107
108
|
border: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButtonDisabled', 'border'])
|
|
108
109
|
},
|
|
109
|
-
nextButton:
|
|
110
|
+
nextButton: {
|
|
110
111
|
border: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButton', 'border']),
|
|
111
112
|
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButton', 'borderRadius'], 4),
|
|
112
113
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButton', 'color']),
|
|
@@ -121,23 +122,25 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
121
122
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButtonHover', 'backgroundColor'])
|
|
122
123
|
},
|
|
123
124
|
minWidth: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'backButton', 'minWidth']),
|
|
124
|
-
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButton', 'boxShadow'])
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
boxShadow: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButton', 'boxShadow']),
|
|
126
|
+
[tabletMobile]: {
|
|
127
|
+
borderRadius: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButton', "tabletMobile", 'borderRadius']),
|
|
128
|
+
padding: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButton', "tabletMobile", 'padding']),
|
|
129
|
+
minWidth: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'nextButton', "tabletMobile", 'minWidth'], '1px !important')
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
title: {
|
|
131
133
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'title', 'color']),
|
|
132
134
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'title', 'fontSize']),
|
|
133
135
|
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'title', 'fontWeight']),
|
|
134
136
|
margin: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'title', 'margin'], '0 0 2px 0'),
|
|
135
137
|
marginBottom: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'title', 'marginBottom']),
|
|
136
|
-
textAlign: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'title', 'textAlign'])
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
textAlign: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'title', 'textAlign']),
|
|
139
|
+
[tabletMobile]: {
|
|
140
|
+
marginTop: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'title', 'tabletMobile', 'marginTop']),
|
|
141
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'title', 'tabletMobile', 'fontSize'])
|
|
142
|
+
}
|
|
143
|
+
},
|
|
141
144
|
titleIcon: {
|
|
142
145
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'titleIcon', 'color']),
|
|
143
146
|
height: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'titleIcon', 'height']),
|
|
@@ -145,28 +148,31 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
145
148
|
width: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'titleIcon', 'width']),
|
|
146
149
|
marginBottom: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'title', 'marginBottom'])
|
|
147
150
|
},
|
|
148
|
-
subtitle:
|
|
151
|
+
subtitle: {
|
|
149
152
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'subtitle', 'color']),
|
|
150
153
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'subtitle', 'fontSize']),
|
|
151
154
|
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'subtitle', 'fontWeight']),
|
|
152
155
|
margin: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'subtitle', 'margin'], '0 0 2px 0'),
|
|
153
156
|
marginBottom: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'subtitle', 'marginBottom']),
|
|
154
|
-
textAlign: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'subtitle', 'textAlign'])
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
textAlign: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'subtitle', 'textAlign']),
|
|
158
|
+
[tabletMobile]: {
|
|
159
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'subtitle', 'tabletMobile', 'fontSize'])
|
|
160
|
+
},
|
|
161
|
+
'& > a': {
|
|
162
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'subtitle', '& > a', 'color'])
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
stepCounter: {
|
|
161
166
|
alignItems: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'stepCounter', 'alignItems']),
|
|
162
167
|
color: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'stepCounter', 'color']),
|
|
163
168
|
display: 'flex',
|
|
164
169
|
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'stepCounter', 'fontSize']),
|
|
165
170
|
fontWeight: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'stepCounter', 'fontWeight']),
|
|
166
|
-
height: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'stepCounter', 'height'])
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
171
|
+
height: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'stepCounter', 'height']),
|
|
172
|
+
[tabletMobile]: {
|
|
173
|
+
height: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'stepCounter', 'tabletMobile', 'height'])
|
|
174
|
+
}
|
|
175
|
+
},
|
|
170
176
|
bottomActionsContainer: {
|
|
171
177
|
alignItems: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'bottomActions', 'container', 'alignItems']),
|
|
172
178
|
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTWorkflowContainer', 'bottomActions', 'container', 'backgroundColor']),
|
|
@@ -5,11 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.buttonTypes = void 0;
|
|
7
7
|
var _propTypes = require("prop-types");
|
|
8
|
-
|
|
8
|
+
const buttonTypes = exports.buttonTypes = (0, _propTypes.oneOfType)([_propTypes.element, (0, _propTypes.shape)({
|
|
9
9
|
onPress: _propTypes.func,
|
|
10
10
|
disabled: _propTypes.bool,
|
|
11
11
|
label: _propTypes.string,
|
|
12
12
|
buttonProps: _propTypes.object,
|
|
13
13
|
Icon: (0, _propTypes.oneOfType)([_propTypes.bool, _propTypes.element, _propTypes.func, _propTypes.elementType])
|
|
14
|
-
})]);
|
|
15
|
-
exports.buttonTypes = buttonTypes;
|
|
14
|
+
})]);
|
|
@@ -7,19 +7,14 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Loading = _interopRequireDefault(require("../Loading"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}) // eslint-disable-line react/prop-types
|
|
20
|
-
: /*#__PURE__*/_react.default.createElement(WrappedComponent, props);
|
|
21
|
-
};
|
|
22
|
-
};
|
|
10
|
+
const WithLoading = (shouldLoad, text, className, size, thickness, textClassName) => WrappedComponent => function PropsProxy(props) {
|
|
11
|
+
return shouldLoad(props) ? /*#__PURE__*/_react.default.createElement(_Loading.default, {
|
|
12
|
+
text: text,
|
|
13
|
+
className: className,
|
|
14
|
+
thickness: thickness,
|
|
15
|
+
size: size,
|
|
16
|
+
textClassName: textClassName
|
|
17
|
+
}) // eslint-disable-line react/prop-types
|
|
18
|
+
: /*#__PURE__*/_react.default.createElement(WrappedComponent, props);
|
|
23
19
|
};
|
|
24
|
-
var _default = WithLoading;
|
|
25
|
-
exports.default = _default;
|
|
20
|
+
var _default = exports.default = WithLoading;
|
|
@@ -10,21 +10,14 @@ var _theme = require("../../theme");
|
|
|
10
10
|
var _layout = _interopRequireDefault(require("./layout"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
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); }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
theme: theme,
|
|
23
|
-
muiTheme: muiTheme
|
|
24
|
-
}));
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
};
|
|
13
|
+
const WithTheme = (retrieveStyle, retrieveMuiTheme) => Component => props => {
|
|
14
|
+
const muiTheme = (0, _styles.useTheme)();
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_theme.EnergyThemeConsumer, null, theme => /*#__PURE__*/_react.default.createElement(_layout.default, _extends({}, props, {
|
|
16
|
+
retrieveStyle: retrieveStyle,
|
|
17
|
+
retrieveMuiTheme: retrieveMuiTheme,
|
|
18
|
+
Component: Component,
|
|
19
|
+
theme: theme,
|
|
20
|
+
muiTheme: muiTheme
|
|
21
|
+
})));
|
|
28
22
|
};
|
|
29
|
-
var _default = WithTheme;
|
|
30
|
-
exports.default = _default;
|
|
23
|
+
var _default = exports.default = WithTheme;
|
|
@@ -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
|
});
|
|
@@ -10,46 +9,25 @@ var _propTypes = require("prop-types");
|
|
|
10
9
|
var _reactJss = _interopRequireDefault(require("react-jss"));
|
|
11
10
|
var _styles = require("@material-ui/core/styles");
|
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
15
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
22
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
24
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
25
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
26
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
27
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
-
var ThemedComponent = /*#__PURE__*/function (_PureComponent) {
|
|
29
|
-
_inherits(ThemedComponent, _PureComponent);
|
|
30
|
-
var _super = _createSuper(ThemedComponent);
|
|
31
|
-
function ThemedComponent(props) {
|
|
32
|
-
var _this;
|
|
33
|
-
_classCallCheck(this, ThemedComponent);
|
|
34
|
-
_this = _super.call(this, props);
|
|
35
|
-
_this.muiTheme = _this.props.retrieveMuiTheme && _this.props.retrieveMuiTheme(_this.props.theme, _this.props.muiTheme);
|
|
36
|
-
_this.StyledComponent = _this.props.retrieveStyle ? (0, _reactJss.default)(_this.props.retrieveStyle(_this.props.theme))(_this.props.Component) : _this.props.Component;
|
|
37
|
-
return _this;
|
|
15
|
+
class ThemedComponent extends _react.PureComponent {
|
|
16
|
+
constructor(props) {
|
|
17
|
+
super(props);
|
|
18
|
+
this.muiTheme = this.props.retrieveMuiTheme && this.props.retrieveMuiTheme(this.props.theme, this.props.muiTheme);
|
|
19
|
+
this.StyledComponent = this.props.retrieveStyle ? (0, _reactJss.default)(this.props.retrieveStyle(this.props.theme))(this.props.Component) : this.props.Component;
|
|
38
20
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
}]);
|
|
51
|
-
return ThemedComponent;
|
|
52
|
-
}(_react.PureComponent);
|
|
21
|
+
render() {
|
|
22
|
+
return this.muiTheme ? /*#__PURE__*/_react.default.createElement(_styles.MuiThemeProvider, {
|
|
23
|
+
theme: this.muiTheme
|
|
24
|
+
}, /*#__PURE__*/_react.default.createElement(this.StyledComponent, _extends({
|
|
25
|
+
base: true
|
|
26
|
+
}, this.props))) : /*#__PURE__*/_react.default.createElement(this.StyledComponent, _extends({
|
|
27
|
+
base: true
|
|
28
|
+
}, this.props));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
53
31
|
ThemedComponent.propTypes = {
|
|
54
32
|
Component: (0, _propTypes.oneOfType)([_propTypes.elementType, _propTypes.func]),
|
|
55
33
|
retrieveStyle: _propTypes.func,
|
|
@@ -57,5 +35,4 @@ ThemedComponent.propTypes = {
|
|
|
57
35
|
theme: _propTypes.object,
|
|
58
36
|
muiTheme: _propTypes.object
|
|
59
37
|
};
|
|
60
|
-
var _default = ThemedComponent;
|
|
61
|
-
exports.default = _default;
|
|
38
|
+
var _default = exports.default = ThemedComponent;
|
|
@@ -9,28 +9,21 @@ var _propTypes = require("prop-types");
|
|
|
9
9
|
var _UTTouchableWithoutFeedback = _interopRequireDefault(require("../UTTouchableWithoutFeedback"));
|
|
10
10
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// eslint-disable-next-line react/prop-types
|
|
24
|
-
,
|
|
25
|
-
ref: props.touchableRef
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(WrappedComponent, props)) : /*#__PURE__*/_react.default.createElement(WrappedComponent, props);
|
|
27
|
-
};
|
|
28
|
-
};
|
|
12
|
+
const WithTouch = onClick => WrappedComponent => function PropsProxy(props) {
|
|
13
|
+
const handleClick = () => onClick(props);
|
|
14
|
+
return onClick ? /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
15
|
+
onClick: handleClick
|
|
16
|
+
// eslint-disable-next-line react/prop-types
|
|
17
|
+
,
|
|
18
|
+
className: "".concat(_stylesModule.default.base, " ").concat(props.touchableClassName)
|
|
19
|
+
// eslint-disable-next-line react/prop-types
|
|
20
|
+
,
|
|
21
|
+
ref: props.touchableRef
|
|
22
|
+
}, /*#__PURE__*/_react.default.createElement(WrappedComponent, props)) : /*#__PURE__*/_react.default.createElement(WrappedComponent, props);
|
|
29
23
|
};
|
|
30
24
|
WithTouch.propTypes = {
|
|
31
25
|
onClick: _propTypes.func,
|
|
32
26
|
touchableClassName: _propTypes.string,
|
|
33
27
|
touchableRef: _propTypes.string
|
|
34
28
|
};
|
|
35
|
-
var _default = WithTouch;
|
|
36
|
-
exports.default = _default;
|
|
29
|
+
var _default = exports.default = WithTouch;
|