@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
|
@@ -8,99 +8,95 @@ var _seamlessImmutable = require("seamless-immutable");
|
|
|
8
8
|
var _styles = require("@material-ui/core/styles");
|
|
9
9
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
const retrieveStyle = theme => ({
|
|
12
|
+
formControlLabel: {
|
|
13
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'backgroundColor'], 'transparent'),
|
|
14
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'color'], "".concat(_colorsModule.default.gray)),
|
|
15
|
+
height: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'height'], 36),
|
|
16
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'width'], "100%"),
|
|
17
|
+
margin: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formControlLabel', 'margin'], "0px 0px 0px 0px")
|
|
18
|
+
},
|
|
19
|
+
topDivider: {
|
|
20
|
+
borderTop: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'topDivider', 'borderTop'], "solid 1px ".concat(_colorsModule.default.dividerBase))
|
|
21
|
+
},
|
|
22
|
+
divider: {
|
|
23
|
+
borderBottom: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'divider', 'borderBottom'], "solid 1px ".concat(_colorsModule.default.dividerBase))
|
|
24
|
+
},
|
|
25
|
+
root: {
|
|
26
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'fontFamiliy'], "Roboto, Helvetica, sans-serif"),
|
|
27
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'backgroundColor'], "".concat(_colorsModule.default.white)),
|
|
28
|
+
height: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'height'], 38),
|
|
29
|
+
margin: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'margin'], "0px 0px 10px 0px"),
|
|
30
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'width'], '100%'),
|
|
31
|
+
transition: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'transition'], "all 350ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"),
|
|
32
|
+
willChange: 'left, width',
|
|
33
|
+
'&:hover:not($selected)': {
|
|
34
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'hover', 'backgroundColor'], "transparent"),
|
|
35
|
+
transition: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'hoverTransition', 'transition'], 'background-color 0.75s ease')
|
|
19
36
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
37
|
+
'&$selected': {
|
|
38
|
+
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'selectedColor', 'backgroundColor'], "transparent")
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
disabledRoot: {
|
|
42
|
+
opacity: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'disabledRoot', 'opacity'])
|
|
43
|
+
},
|
|
44
|
+
textColorPrimary: {
|
|
45
|
+
'&$selected': {
|
|
46
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'textColorPrimary', 'color'], "".concat(_colorsModule.default.white))
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
selected: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'selected'], {})
|
|
50
|
+
});
|
|
51
|
+
exports.retrieveStyle = retrieveStyle;
|
|
52
|
+
const retrieveMuiTheme = theme => (0, _styles.createMuiTheme)({
|
|
53
|
+
overrides: {
|
|
54
|
+
MuiTypography: {
|
|
55
|
+
body1: {
|
|
56
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'], 'Roboto'),
|
|
57
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontSize'], "14px"),
|
|
58
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'color'], "currentColor"),
|
|
59
|
+
width: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'width'])
|
|
60
|
+
}
|
|
25
61
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'hover', 'backgroundColor'], "transparent"),
|
|
36
|
-
transition: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'hoverTransition', 'transition'], 'background-color 0.75s ease')
|
|
37
|
-
},
|
|
38
|
-
'&$selected': {
|
|
39
|
-
backgroundColor: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'selectedColor', 'backgroundColor'], "transparent")
|
|
62
|
+
MuiRadio: {
|
|
63
|
+
colorSecondary: {
|
|
64
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'color'], "".concat(_colorsModule.default.gray)),
|
|
65
|
+
'&$checked': {
|
|
66
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'selected', 'color'], "".concat(_colorsModule.default.inputPrimary))
|
|
67
|
+
},
|
|
68
|
+
'&$disabled': {
|
|
69
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'disabled', 'color'], "".concat(_colorsModule.default.disabledGray))
|
|
70
|
+
}
|
|
40
71
|
}
|
|
41
72
|
},
|
|
42
|
-
|
|
43
|
-
|
|
73
|
+
MuiFormLabel: {
|
|
74
|
+
root: {
|
|
75
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formLabel', 'color']),
|
|
76
|
+
'&$error': {
|
|
77
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formLabel', 'errorColor'], _colorsModule.default.gray)
|
|
78
|
+
},
|
|
79
|
+
'&$focused': {
|
|
80
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formLabel', 'focusedColor'], _colorsModule.default.primary),
|
|
81
|
+
'&$error': {
|
|
82
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formLabel', 'focusedErrorColor'], _colorsModule.default.error)
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
|
|
86
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'], 14))
|
|
87
|
+
}
|
|
44
88
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
89
|
+
MuiFormHelperText: {
|
|
90
|
+
root: {
|
|
91
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'helperText', 'fontSize'], 12),
|
|
92
|
+
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'helperText', 'color'], _colorsModule.default.error)
|
|
48
93
|
}
|
|
49
94
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
exports.retrieveStyle = retrieveStyle;
|
|
54
|
-
var retrieveMuiTheme = function retrieveMuiTheme(theme) {
|
|
55
|
-
return (0, _styles.createMuiTheme)({
|
|
56
|
-
overrides: {
|
|
57
|
-
MuiTypography: {
|
|
58
|
-
body1: {
|
|
59
|
-
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily'], 'Roboto'),
|
|
60
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontSize'], "14px"),
|
|
61
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'color'], "currentColor"),
|
|
62
|
-
width: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'width'])
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
MuiRadio: {
|
|
66
|
-
colorSecondary: {
|
|
67
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'root', 'color'], "".concat(_colorsModule.default.gray)),
|
|
68
|
-
'&$checked': {
|
|
69
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'selected', 'color'], "".concat(_colorsModule.default.inputPrimary))
|
|
70
|
-
},
|
|
71
|
-
'&$disabled': {
|
|
72
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'disabled', 'color'], "".concat(_colorsModule.default.disabledGray))
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
MuiFormLabel: {
|
|
77
|
-
root: {
|
|
78
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formLabel', 'color']),
|
|
79
|
-
'&$error': {
|
|
80
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formLabel', 'errorColor'], _colorsModule.default.gray)
|
|
81
|
-
},
|
|
82
|
-
'&$focused': {
|
|
83
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formLabel', 'focusedColor'], _colorsModule.default.primary),
|
|
84
|
-
'&$error': {
|
|
85
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'formLabel', 'focusedErrorColor'], _colorsModule.default.error)
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
fontFamily: (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'fontFamily']),
|
|
89
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'fontSize'], (0, _seamlessImmutable.getIn)(theme, ['Fonts', 'medium'], 14))
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
MuiFormHelperText: {
|
|
93
|
-
root: {
|
|
94
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'helperText', 'fontSize'], 12),
|
|
95
|
-
color: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'helperText', 'color'], _colorsModule.default.error)
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
MuiSvgIcon: {
|
|
99
|
-
root: {
|
|
100
|
-
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'radioButton', 'fontSize'], 24)
|
|
101
|
-
}
|
|
95
|
+
MuiSvgIcon: {
|
|
96
|
+
root: {
|
|
97
|
+
fontSize: (0, _seamlessImmutable.getIn)(theme, ['UTRadioGroup', 'radioButton', 'fontSize'], 24)
|
|
102
98
|
}
|
|
103
99
|
}
|
|
104
|
-
}
|
|
105
|
-
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
106
102
|
exports.retrieveMuiTheme = retrieveMuiTheme;
|
|
@@ -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,62 +12,49 @@ var _UTLabel = _interopRequireDefault(require("../../../UTLabel"));
|
|
|
13
12
|
var _constants = require("../../constants");
|
|
14
13
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
+
const Circle = _ref => {
|
|
18
|
+
let {
|
|
19
|
+
selected,
|
|
20
|
+
onClick,
|
|
21
|
+
value,
|
|
22
|
+
order,
|
|
23
|
+
name,
|
|
24
|
+
isFirst,
|
|
25
|
+
isLast,
|
|
26
|
+
textVariant,
|
|
27
|
+
color,
|
|
28
|
+
classes
|
|
29
|
+
} = _ref;
|
|
30
|
+
const [isHovered, setIsHovered] = (0, _react.useState)(false);
|
|
31
|
+
const handleClick = () => onClick(order, value);
|
|
32
|
+
const handleHover = () => setIsHovered(true);
|
|
33
|
+
const onMouseLeave = () => setIsHovered(false);
|
|
34
|
+
const onFocus = () => {};
|
|
35
|
+
const textVariants = {
|
|
36
|
+
[_constants.SIDE_TEXT]: {
|
|
37
|
+
containerClass: isFirst ? _stylesModule.default.first : isLast && _stylesModule.default.last,
|
|
38
|
+
labelClass: classes.label,
|
|
39
|
+
showLabel: isFirst || isLast
|
|
40
|
+
},
|
|
41
|
+
[_constants.BOTTOM_TEXT]: {
|
|
42
|
+
containerClass: "".concat(_stylesModule.default.withTextBottom, " ").concat(classes.circleWithTextBottom),
|
|
43
|
+
labelClass: "".concat(isFirst ? _stylesModule.default.labelBottomFirst : isLast && _stylesModule.default.labelBottomLast, " ").concat(classes.label, " ").concat(isFirst ? classes.labelBottomFirst : isLast && classes.labelBottomLast),
|
|
44
|
+
showLabel: isFirst || isLast
|
|
45
|
+
},
|
|
46
|
+
[_constants.NO_TEXT]: {
|
|
47
|
+
containerClass: '',
|
|
48
|
+
labelClass: '',
|
|
49
|
+
showLabel: false
|
|
50
|
+
}
|
|
45
51
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
var onMouseLeave = function onMouseLeave() {
|
|
50
|
-
return setIsHovered(false);
|
|
51
|
-
};
|
|
52
|
-
var onFocus = function onFocus() {};
|
|
53
|
-
var textVariants = (_textVariants = {}, _defineProperty(_textVariants, _constants.SIDE_TEXT, {
|
|
54
|
-
containerClass: isFirst ? _stylesModule.default.first : isLast && _stylesModule.default.last,
|
|
55
|
-
labelClass: classes.label,
|
|
56
|
-
showLabel: isFirst || isLast
|
|
57
|
-
}), _defineProperty(_textVariants, _constants.BOTTOM_TEXT, {
|
|
58
|
-
containerClass: "".concat(_stylesModule.default.withTextBottom, " ").concat(classes.circleWithTextBottom),
|
|
59
|
-
labelClass: "".concat(isFirst ? _stylesModule.default.labelBottomFirst : isLast && _stylesModule.default.labelBottomLast, " ").concat(classes.label, " ").concat(isFirst ? classes.labelBottomFirst : isLast && classes.labelBottomLast),
|
|
60
|
-
showLabel: isFirst || isLast
|
|
61
|
-
}), _defineProperty(_textVariants, _constants.NO_TEXT, {
|
|
62
|
-
containerClass: '',
|
|
63
|
-
labelClass: '',
|
|
64
|
-
showLabel: false
|
|
65
|
-
}), _textVariants);
|
|
66
|
-
var textVariantToUse = textVariants[textVariant] || textVariants[_constants.BOTTOM_TEXT];
|
|
67
|
-
var showPropColor = color && (isHovered || selected);
|
|
68
|
-
var avatarStyle = {
|
|
52
|
+
const textVariantToUse = textVariants[textVariant] || textVariants[_constants.BOTTOM_TEXT];
|
|
53
|
+
const showPropColor = color && (isHovered || selected);
|
|
54
|
+
const avatarStyle = {
|
|
69
55
|
borderColor: color
|
|
70
56
|
};
|
|
71
|
-
|
|
57
|
+
const avatarSelectedStyle = {
|
|
72
58
|
backgroundColor: color,
|
|
73
59
|
borderColor: color
|
|
74
60
|
};
|
|
@@ -102,5 +88,4 @@ Circle.propTypes = {
|
|
|
102
88
|
avatar: _propTypes.string
|
|
103
89
|
})
|
|
104
90
|
};
|
|
105
|
-
var _default = Circle;
|
|
106
|
-
exports.default = _default;
|
|
91
|
+
var _default = exports.default = Circle;
|
|
@@ -76,7 +76,5 @@ MoodSmile.defaultProps = {
|
|
|
76
76
|
fill: "none",
|
|
77
77
|
xmlns: "http://www.w3.org/2000/svg"
|
|
78
78
|
};
|
|
79
|
-
|
|
80
|
-
exports.
|
|
81
|
-
var FACES_CLASSES = ['faceButtonConfuzed', 'faceButtonSad', 'faceButtonEmpty', 'faceButtonSmile', 'faceButtonHappy'];
|
|
82
|
-
exports.FACES_CLASSES = FACES_CLASSES;
|
|
79
|
+
const FACES_ICONS = exports.FACES_ICONS = [MoodConfuzed, MoodSad, MoodEmpty, MoodSmile, MoodHappy];
|
|
80
|
+
const FACES_CLASSES = exports.FACES_CLASSES = ['faceButtonConfuzed', 'faceButtonSad', 'faceButtonEmpty', 'faceButtonSmile', 'faceButtonHappy'];
|
|
@@ -12,41 +12,40 @@ var _constants = require("../../constants");
|
|
|
12
12
|
var _constants2 = require("./constants");
|
|
13
13
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _getRequireWildcardCache(
|
|
16
|
-
function _interopRequireWildcard(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
+
const Faces = _ref => {
|
|
18
|
+
let {
|
|
19
|
+
classes,
|
|
20
|
+
isFirst,
|
|
21
|
+
isLast,
|
|
22
|
+
name,
|
|
23
|
+
onClick,
|
|
24
|
+
order,
|
|
25
|
+
selected,
|
|
26
|
+
textVariant,
|
|
27
|
+
value
|
|
28
|
+
} = _ref;
|
|
29
|
+
const handleClick = () => onClick(order, value);
|
|
30
|
+
const textVariants = {
|
|
31
|
+
[_constants.SIDE_TEXT]: {
|
|
32
|
+
containerClass: isFirst ? _stylesModule.default.first : isLast && _stylesModule.default.last,
|
|
33
|
+
labelClass: classes.label,
|
|
34
|
+
showLabel: isFirst || isLast
|
|
35
|
+
},
|
|
36
|
+
[_constants.BOTTOM_TEXT]: {
|
|
37
|
+
containerClass: "".concat(_stylesModule.default.withTextBottom, " ").concat(classes.facesWithTextBottom),
|
|
38
|
+
labelClass: classes.label,
|
|
39
|
+
showLabel: true
|
|
40
|
+
},
|
|
41
|
+
[_constants.NO_TEXT]: {
|
|
42
|
+
containerClass: '',
|
|
43
|
+
labelClass: '',
|
|
44
|
+
showLabel: false
|
|
45
|
+
}
|
|
34
46
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
labelClass: classes.label,
|
|
38
|
-
showLabel: isFirst || isLast
|
|
39
|
-
}), _defineProperty(_textVariants, _constants.BOTTOM_TEXT, {
|
|
40
|
-
containerClass: "".concat(_stylesModule.default.withTextBottom, " ").concat(classes.facesWithTextBottom),
|
|
41
|
-
labelClass: classes.label,
|
|
42
|
-
showLabel: true
|
|
43
|
-
}), _defineProperty(_textVariants, _constants.NO_TEXT, {
|
|
44
|
-
containerClass: '',
|
|
45
|
-
labelClass: '',
|
|
46
|
-
showLabel: false
|
|
47
|
-
}), _textVariants);
|
|
48
|
-
var textVariantToUse = textVariants[textVariant] || textVariants[_constants.NO_TEXT];
|
|
49
|
-
var Icon = _constants2.FACES_ICONS[order - 1];
|
|
47
|
+
const textVariantToUse = textVariants[textVariant] || textVariants[_constants.NO_TEXT];
|
|
48
|
+
const Icon = _constants2.FACES_ICONS[order - 1];
|
|
50
49
|
return Icon && /*#__PURE__*/_react.default.createElement("div", {
|
|
51
50
|
className: "".concat(_stylesModule.default.container, " ").concat(textVariantToUse.containerClass)
|
|
52
51
|
}, /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
@@ -69,5 +68,4 @@ Faces.propTypes = {
|
|
|
69
68
|
textVariant: _propTypes.string,
|
|
70
69
|
value: (0, _propTypes.oneOfType)([_propTypes.number, _propTypes.string])
|
|
71
70
|
};
|
|
72
|
-
var _default = /*#__PURE__*/(0, _react.memo)(Faces);
|
|
73
|
-
exports.default = _default;
|
|
71
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(Faces);
|
|
@@ -12,44 +12,41 @@ var _UTLabel = _interopRequireDefault(require("../../../UTLabel"));
|
|
|
12
12
|
var _constants = require("../../constants");
|
|
13
13
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
15
|
+
const Star = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
name,
|
|
18
|
+
onMouseLeave,
|
|
19
|
+
hovered,
|
|
20
|
+
selected,
|
|
21
|
+
isFirst,
|
|
22
|
+
isLast,
|
|
23
|
+
color,
|
|
24
|
+
order,
|
|
25
|
+
value,
|
|
26
|
+
onClick,
|
|
27
|
+
onHover,
|
|
28
|
+
classes,
|
|
29
|
+
textVariant
|
|
30
|
+
} = _ref;
|
|
31
|
+
const handleClick = () => onClick(order, value);
|
|
32
|
+
const handleHover = () => onHover(order);
|
|
33
|
+
const onFocus = () => {};
|
|
34
|
+
const showPropColor = color && (hovered || selected);
|
|
35
|
+
const textVariants = {
|
|
36
|
+
[_constants.SIDE_TEXT]: {
|
|
37
|
+
containerClass: isFirst ? _stylesModule.default.first : isLast && _stylesModule.default.last,
|
|
38
|
+
showLabel: isFirst || isLast
|
|
39
|
+
},
|
|
40
|
+
[_constants.BOTTOM_TEXT]: {
|
|
41
|
+
containerClass: _stylesModule.default.withTextBottom,
|
|
42
|
+
showLabel: true
|
|
43
|
+
},
|
|
44
|
+
[_constants.NO_TEXT]: {
|
|
45
|
+
containerClass: '',
|
|
46
|
+
showLabel: false
|
|
47
|
+
}
|
|
36
48
|
};
|
|
37
|
-
|
|
38
|
-
return onHover(order);
|
|
39
|
-
};
|
|
40
|
-
var onFocus = function onFocus() {};
|
|
41
|
-
var showPropColor = color && (hovered || selected);
|
|
42
|
-
var textVariants = (_textVariants = {}, _defineProperty(_textVariants, _constants.SIDE_TEXT, {
|
|
43
|
-
containerClass: isFirst ? _stylesModule.default.first : isLast && _stylesModule.default.last,
|
|
44
|
-
showLabel: isFirst || isLast
|
|
45
|
-
}), _defineProperty(_textVariants, _constants.BOTTOM_TEXT, {
|
|
46
|
-
containerClass: _stylesModule.default.withTextBottom,
|
|
47
|
-
showLabel: true
|
|
48
|
-
}), _defineProperty(_textVariants, _constants.NO_TEXT, {
|
|
49
|
-
containerClass: '',
|
|
50
|
-
showLabel: false
|
|
51
|
-
}), _textVariants);
|
|
52
|
-
var textVariantToUse = textVariants[textVariant] || textVariants[_constants.SIDE_TEXT];
|
|
49
|
+
const textVariantToUse = textVariants[textVariant] || textVariants[_constants.SIDE_TEXT];
|
|
53
50
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
54
51
|
className: "".concat(_stylesModule.default.container, " ").concat(textVariantToUse.containerClass)
|
|
55
52
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
@@ -58,7 +55,7 @@ var Star = function Star(_ref) {
|
|
|
58
55
|
onMouseLeave: onMouseLeave,
|
|
59
56
|
onClick: handleClick,
|
|
60
57
|
style: showPropColor ? {
|
|
61
|
-
color
|
|
58
|
+
color
|
|
62
59
|
} : {},
|
|
63
60
|
className: "".concat(_stylesModule.default.starButton, " ").concat(hovered && _stylesModule.default.starHovered, " ").concat(selected && _stylesModule.default.starsPainted)
|
|
64
61
|
}, /*#__PURE__*/_react.default.createElement(_StarRate.default, {
|
|
@@ -85,5 +82,4 @@ Star.propTypes = {
|
|
|
85
82
|
}),
|
|
86
83
|
textVariant: _propTypes.string
|
|
87
84
|
};
|
|
88
|
-
var _default = Star;
|
|
89
|
-
exports.default = _default;
|
|
85
|
+
var _default = exports.default = Star;
|
|
@@ -4,15 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SIDE_TEXT = exports.RATING_VARIANTS = exports.NO_TEXT = exports.BOTTOM_TEXT = void 0;
|
|
7
|
-
|
|
7
|
+
const RATING_VARIANTS = exports.RATING_VARIANTS = {
|
|
8
8
|
CIRCULAR: 'circular',
|
|
9
9
|
FACES: 'faces',
|
|
10
10
|
STAR: 'star'
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
13
|
-
|
|
14
|
-
exports.
|
|
15
|
-
var BOTTOM_TEXT = 'bottom_text';
|
|
16
|
-
exports.BOTTOM_TEXT = BOTTOM_TEXT;
|
|
17
|
-
var NO_TEXT = 'no_text';
|
|
18
|
-
exports.NO_TEXT = NO_TEXT;
|
|
12
|
+
const SIDE_TEXT = exports.SIDE_TEXT = 'side_text';
|
|
13
|
+
const BOTTOM_TEXT = exports.BOTTOM_TEXT = 'bottom_text';
|
|
14
|
+
const NO_TEXT = exports.NO_TEXT = 'no_text';
|