@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
|
@@ -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
|
});
|
|
@@ -25,79 +24,62 @@ var _theme = require("./theme");
|
|
|
25
24
|
var _utils = require("./utils");
|
|
26
25
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
27
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
|
-
function _getRequireWildcardCache(
|
|
29
|
-
function _interopRequireWildcard(
|
|
27
|
+
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); }
|
|
28
|
+
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; }
|
|
30
29
|
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); }
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
var classes = (0, _react.useMemo)(function () {
|
|
69
|
-
return (0, _classesUtils.mergeClasses)(themeClasses, classNames);
|
|
70
|
-
}, [classNames]);
|
|
71
|
-
var _useState = (0, _react.useState)(null),
|
|
72
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
73
|
-
arrowRef = _useState2[0],
|
|
74
|
-
setArrowRef = _useState2[1];
|
|
75
|
-
var _useState3 = (0, _react.useState)(false),
|
|
76
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
77
|
-
open = _useState4[0],
|
|
78
|
-
handleOpenState = _useState4[1];
|
|
79
|
-
(0, _react.useEffect)(function () {
|
|
80
|
-
var shouldOpen = !!anchor && !(0, _array.isEmpty)(items);
|
|
30
|
+
const UTMenu = _ref => {
|
|
31
|
+
let {
|
|
32
|
+
anchor,
|
|
33
|
+
contextData = {},
|
|
34
|
+
onClose,
|
|
35
|
+
ItemComponent,
|
|
36
|
+
itemProps,
|
|
37
|
+
items,
|
|
38
|
+
LastItem,
|
|
39
|
+
menuItemProps,
|
|
40
|
+
popperProps,
|
|
41
|
+
animatorProps,
|
|
42
|
+
paperProps,
|
|
43
|
+
scrollBarProps,
|
|
44
|
+
arrowProps,
|
|
45
|
+
clickAwayListenerProps,
|
|
46
|
+
menuListProps,
|
|
47
|
+
elevation,
|
|
48
|
+
menuPlacement,
|
|
49
|
+
classes: themeClasses,
|
|
50
|
+
classNames,
|
|
51
|
+
withArrow,
|
|
52
|
+
onClickItem,
|
|
53
|
+
lockScreenEnabled,
|
|
54
|
+
modifiers,
|
|
55
|
+
itemIconProps,
|
|
56
|
+
iconBefore,
|
|
57
|
+
animation,
|
|
58
|
+
withMenuItem,
|
|
59
|
+
withDivider
|
|
60
|
+
} = _ref;
|
|
61
|
+
const blockerRef = (0, _react.useRef)(null);
|
|
62
|
+
const classes = (0, _react.useMemo)(() => (0, _classesUtils.mergeClasses)(themeClasses, classNames), [classNames]);
|
|
63
|
+
const [arrowRef, setArrowRef] = (0, _react.useState)(null);
|
|
64
|
+
const [open, handleOpenState] = (0, _react.useState)(false);
|
|
65
|
+
(0, _react.useEffect)(() => {
|
|
66
|
+
const shouldOpen = !!anchor && !(0, _array.isEmpty)(items);
|
|
81
67
|
handleOpenState(shouldOpen);
|
|
82
68
|
if (lockScreenEnabled && anchor) (0, _utils.lockScreen)(blockerRef, true);
|
|
83
|
-
return
|
|
69
|
+
return () => {
|
|
84
70
|
document.body.style.overflow = 'unset';
|
|
85
71
|
return lockScreenEnabled && (0, _utils.lockScreen)(blockerRef, false);
|
|
86
72
|
};
|
|
87
73
|
}, [anchor, items]);
|
|
88
|
-
|
|
74
|
+
const popperModifiers = Object.assign({
|
|
89
75
|
arrow: {
|
|
90
76
|
enabled: true,
|
|
91
77
|
element: arrowRef
|
|
92
78
|
}
|
|
93
79
|
}, modifiers);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
return ps.update();
|
|
98
|
-
}, 350);
|
|
99
|
-
};
|
|
100
|
-
var lastItem = items.length - 1;
|
|
80
|
+
const Animator = animation === 'grow' ? _Grow.default : _Fade.default;
|
|
81
|
+
const handleScrollbarSync = ps => setTimeout(() => ps.update(), 350);
|
|
82
|
+
const lastItem = items.length - 1;
|
|
101
83
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, anchor && /*#__PURE__*/_react.default.createElement(_Popper.default, _extends({
|
|
102
84
|
anchorEl: anchor,
|
|
103
85
|
open: open,
|
|
@@ -105,9 +87,11 @@ var UTMenu = function UTMenu(_ref) {
|
|
|
105
87
|
placement: menuPlacement,
|
|
106
88
|
modifiers: popperModifiers,
|
|
107
89
|
className: classes.popper
|
|
108
|
-
}, popperProps),
|
|
109
|
-
|
|
110
|
-
|
|
90
|
+
}, popperProps), _ref2 => {
|
|
91
|
+
let {
|
|
92
|
+
TransitionProps,
|
|
93
|
+
placement
|
|
94
|
+
} = _ref2;
|
|
111
95
|
return /*#__PURE__*/_react.default.createElement(Animator, _extends({
|
|
112
96
|
in: open
|
|
113
97
|
}, TransitionProps, {
|
|
@@ -128,8 +112,8 @@ var UTMenu = function UTMenu(_ref) {
|
|
|
128
112
|
}, menuListProps), /*#__PURE__*/_react.default.createElement(_reactPerfectScrollbar.default, _extends({
|
|
129
113
|
onSync: handleScrollbarSync,
|
|
130
114
|
className: classes.scrollBar
|
|
131
|
-
}, scrollBarProps), items === null || items === void 0 ? void 0 : items.map(
|
|
132
|
-
|
|
115
|
+
}, scrollBarProps), items === null || items === void 0 ? void 0 : items.map((item, index) => {
|
|
116
|
+
const handleClick = event => {
|
|
133
117
|
if (item.onClick) item.onClick(event, contextData);else if (onClickItem) onClickItem(event, contextData);
|
|
134
118
|
if (contextData.clickCallback) contextData.clickCallback();
|
|
135
119
|
};
|
|
@@ -209,5 +193,4 @@ UTMenu.propTypes = {
|
|
|
209
193
|
animation: _propTypes.string,
|
|
210
194
|
withDivider: _propTypes.bool
|
|
211
195
|
};
|
|
212
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle, _theme.retrieveMuiTheme)(UTMenu);
|
|
213
|
-
exports.default = _default;
|
|
196
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle, _theme.retrieveMuiTheme)(UTMenu);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = exports.retrieveMuiTheme = void 0;
|
|
7
7
|
var _styles = require("@material-ui/core/styles");
|
|
8
|
-
|
|
8
|
+
const retrieveStyle = theme => {
|
|
9
9
|
var _theme$UTMenu, _theme$UTMenu2, _theme$UTMenu3, _theme$UTMenu4, _theme$UTMenu5, _theme$UTMenu6, _theme$UTMenu7, _theme$UTMenu8, _theme$UTMenu9, _theme$UTMenu10, _theme$UTMenu11, _theme$UTMenu12, _theme$UTMenu13, _theme$UTMenu14, _theme$UTMenu15, _theme$UTMenu16, _theme$UTMenu17, _theme$UTMenu18;
|
|
10
10
|
return {
|
|
11
11
|
paper: {
|
|
@@ -44,7 +44,7 @@ var retrieveStyle = function retrieveStyle(theme) {
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
exports.retrieveStyle = retrieveStyle;
|
|
47
|
-
|
|
47
|
+
const retrieveMuiTheme = theme => {
|
|
48
48
|
var _theme$UTMenu19, _theme$UTMenu20;
|
|
49
49
|
return (0, _styles.createMuiTheme)({
|
|
50
50
|
overrides: {
|
|
@@ -5,20 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.lockScreen = exports.getTransitionOrigin = exports.getScrollbarWidth = exports.bodyHasScroll = void 0;
|
|
7
7
|
var _browser = require("@widergy/web-utils/lib/browser");
|
|
8
|
-
|
|
9
|
-
return placement.search('bottom') >= 0 ? placement.replace('bottom', 'top') : placement.search('top') >= 0 ? placement.replace('top', 'bottom') : placement;
|
|
10
|
-
};
|
|
8
|
+
const getTransitionOrigin = placement => placement.search('bottom') >= 0 ? placement.replace('bottom', 'top') : placement.search('top') >= 0 ? placement.replace('top', 'bottom') : placement;
|
|
11
9
|
exports.getTransitionOrigin = getTransitionOrigin;
|
|
12
|
-
|
|
13
|
-
return document.body && document.body.scrollHeight && window.innerHeight ? document.body.scrollHeight > window.innerHeight : false;
|
|
14
|
-
};
|
|
10
|
+
const bodyHasScroll = () => document.body && document.body.scrollHeight && window.innerHeight ? document.body.scrollHeight > window.innerHeight : false;
|
|
15
11
|
exports.bodyHasScroll = bodyHasScroll;
|
|
16
|
-
|
|
17
|
-
return document.body && document.body.clientWidth && window.innerWidth ? window.innerWidth - document.body.clientWidth : 0;
|
|
18
|
-
};
|
|
12
|
+
const getScrollbarWidth = () => document.body && document.body.clientWidth && window.innerWidth ? window.innerWidth - document.body.clientWidth : 0;
|
|
19
13
|
exports.getScrollbarWidth = getScrollbarWidth;
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
const lockScreen = (blocker, lock) => {
|
|
15
|
+
const body = document.getElementsByTagName('body')[0];
|
|
22
16
|
body.style.paddingRight = lock && (0, _browser.isDesktop)(1024) && bodyHasScroll() ? "".concat(getScrollbarWidth(), "px") : '';
|
|
23
17
|
body.style.overflow = lock ? 'hidden' : '';
|
|
24
18
|
blocker.current.style.display = lock ? 'initial' : '';
|
|
@@ -6,9 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _colorsModule = _interopRequireDefault(require("../../scss/variables/colors.module.scss"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
9
|
+
const retrieveStyle = _ref => {
|
|
10
10
|
var _theme$UTPagination, _theme$UTPagination2, _theme$Fonts, _theme$UTPagination3, _theme$UTPagination4, _theme$UTPagination5, _theme$UTPagination6, _theme$UTPagination7, _theme$UTPagination8;
|
|
11
|
-
|
|
11
|
+
let {
|
|
12
|
+
theme
|
|
13
|
+
} = _ref;
|
|
12
14
|
return {
|
|
13
15
|
paginationContainer: {
|
|
14
16
|
marginTop: (theme === null || theme === void 0 || (_theme$UTPagination = theme.UTPagination) === null || _theme$UTPagination === void 0 || (_theme$UTPagination = _theme$UTPagination.paginationContainer) === null || _theme$UTPagination === void 0 ? void 0 : _theme$UTPagination.marginTop) || 32
|
|
@@ -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
|
});
|
|
@@ -15,40 +14,33 @@ var _UTIconButton = _interopRequireDefault(require("../UTIconButton"));
|
|
|
15
14
|
var _UTLabel = _interopRequireDefault(require("../UTLabel"));
|
|
16
15
|
var _commonTypes = require("../../types/commonTypes");
|
|
17
16
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
18
|
-
var _excluded = ["title", "titleIcon", "titleContainer", "perfectScrollbar", "closeButton", "iconClose"];
|
|
19
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
titleIconClass = classes.titleIcon,
|
|
47
|
-
titleContainerClass = classes.titleContainer,
|
|
48
|
-
perfectScrollbarClass = classes.perfectScrollbar,
|
|
49
|
-
closeButtonClass = classes.closeButton,
|
|
50
|
-
iconCloseClass = classes.iconClose,
|
|
51
|
-
drawerClasses = _objectWithoutProperties(classes, _excluded);
|
|
18
|
+
const UTPanel = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
children,
|
|
21
|
+
classes = {},
|
|
22
|
+
containerRef,
|
|
23
|
+
disableScrollbar = false,
|
|
24
|
+
modalProps,
|
|
25
|
+
onClose,
|
|
26
|
+
onEndReachedCallback,
|
|
27
|
+
onOpen = () => {},
|
|
28
|
+
open,
|
|
29
|
+
panelSide,
|
|
30
|
+
perfectScrollbarOptions,
|
|
31
|
+
title,
|
|
32
|
+
TitleComponent,
|
|
33
|
+
TitleIcon
|
|
34
|
+
} = _ref;
|
|
35
|
+
const {
|
|
36
|
+
title: titleClass,
|
|
37
|
+
titleIcon: titleIconClass,
|
|
38
|
+
titleContainer: titleContainerClass,
|
|
39
|
+
perfectScrollbar: perfectScrollbarClass,
|
|
40
|
+
closeButton: closeButtonClass,
|
|
41
|
+
iconClose: iconCloseClass,
|
|
42
|
+
...drawerClasses
|
|
43
|
+
} = classes;
|
|
52
44
|
return /*#__PURE__*/_react.default.createElement(_SwipeableDrawer.default, {
|
|
53
45
|
anchor: panelSide,
|
|
54
46
|
open: open,
|
|
@@ -56,14 +48,16 @@ var UTPanel = function UTPanel(_ref) {
|
|
|
56
48
|
onClose: onClose,
|
|
57
49
|
disableSwipeToOpen: true,
|
|
58
50
|
swipeAreaWidth: 0,
|
|
59
|
-
ModalProps:
|
|
51
|
+
ModalProps: {
|
|
60
52
|
container: containerRef,
|
|
61
|
-
keepMounted: !!containerRef
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
keepMounted: !!containerRef,
|
|
54
|
+
...modalProps
|
|
55
|
+
},
|
|
56
|
+
classes: {
|
|
57
|
+
...drawerClasses,
|
|
64
58
|
paper: "".concat(_stylesModule.default.paper, " ").concat(drawerClasses.paper),
|
|
65
59
|
root: "".concat(containerRef && _stylesModule.default.root, " ").concat(drawerClasses.root)
|
|
66
|
-
}
|
|
60
|
+
}
|
|
67
61
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
68
62
|
className: "".concat(_stylesModule.default.titleContainer, " ").concat(titleContainerClass)
|
|
69
63
|
}, TitleComponent || /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -83,9 +77,10 @@ var UTPanel = function UTPanel(_ref) {
|
|
|
83
77
|
}))), disableScrollbar ? children : /*#__PURE__*/_react.default.createElement(_reactPerfectScrollbar.default, {
|
|
84
78
|
onYReachEnd: onEndReachedCallback,
|
|
85
79
|
className: "".concat(_stylesModule.default.perfectScrollbar, " ").concat(perfectScrollbarClass),
|
|
86
|
-
options:
|
|
87
|
-
suppressScrollX: true
|
|
88
|
-
|
|
80
|
+
options: {
|
|
81
|
+
suppressScrollX: true,
|
|
82
|
+
...perfectScrollbarOptions
|
|
83
|
+
}
|
|
89
84
|
}, children));
|
|
90
85
|
};
|
|
91
86
|
UTPanel.propTypes = {
|
|
@@ -103,5 +98,4 @@ UTPanel.propTypes = {
|
|
|
103
98
|
TitleComponent: (0, _propTypes.oneOfType)([_propTypes.element, _propTypes.elementType]),
|
|
104
99
|
TitleIcon: _propTypes.elementType
|
|
105
100
|
};
|
|
106
|
-
var _default = UTPanel;
|
|
107
|
-
exports.default = _default;
|
|
101
|
+
var _default = exports.default = UTPanel;
|
package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js
CHANGED
|
@@ -10,15 +10,19 @@ var _propTypes = require("prop-types");
|
|
|
10
10
|
var _UTLabel = _interopRequireDefault(require("../../../../../UTLabel"));
|
|
11
11
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
const ErrorMessage = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
assertion,
|
|
16
|
+
ErrorIcon,
|
|
17
|
+
classes,
|
|
18
|
+
error
|
|
19
|
+
} = _ref;
|
|
20
|
+
const {
|
|
21
|
+
failureLabel,
|
|
22
|
+
failedIconStyle,
|
|
23
|
+
iconStyle
|
|
24
|
+
} = classes;
|
|
25
|
+
const Icon = ErrorIcon || _Info.default;
|
|
22
26
|
return !assertion && /*#__PURE__*/_react.default.createElement("div", {
|
|
23
27
|
className: _stylesModule.default.container
|
|
24
28
|
}, /*#__PURE__*/_react.default.createElement(Icon, {
|
|
@@ -33,5 +37,4 @@ ErrorMessage.propTypes = {
|
|
|
33
37
|
classes: (0, _propTypes.objectOf)(_propTypes.string),
|
|
34
38
|
error: _propTypes.string
|
|
35
39
|
};
|
|
36
|
-
var _default = ErrorMessage;
|
|
37
|
-
exports.default = _default;
|
|
40
|
+
var _default = exports.default = ErrorMessage;
|
|
@@ -12,25 +12,29 @@ var _propTypes = require("prop-types");
|
|
|
12
12
|
var _UTLabel = _interopRequireDefault(require("../../../../../UTLabel"));
|
|
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
|
-
|
|
15
|
+
const Validation = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
requirement,
|
|
18
|
+
value,
|
|
19
|
+
classes,
|
|
20
|
+
ValidationFailedIcon,
|
|
21
|
+
ValidationPassedIcon,
|
|
22
|
+
assertion,
|
|
23
|
+
shouldShowError,
|
|
24
|
+
NoValueIcon,
|
|
25
|
+
disabled
|
|
26
|
+
} = _ref;
|
|
27
|
+
const {
|
|
28
|
+
passedIconStyle,
|
|
29
|
+
failedIconStyle,
|
|
30
|
+
successLabel,
|
|
31
|
+
failureLabel,
|
|
32
|
+
labelStyle,
|
|
33
|
+
iconStyle
|
|
34
|
+
} = classes;
|
|
35
|
+
const PassedIcon = ValidationPassedIcon || _CheckCircle.default;
|
|
36
|
+
const FailedIcon = ValidationFailedIcon || _Cancel.default;
|
|
37
|
+
const NoValue = NoValueIcon || _FiberManualRecord.default;
|
|
34
38
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
35
39
|
className: _stylesModule.default.container
|
|
36
40
|
}, value || shouldShowError && !disabled ? assertion ? /*#__PURE__*/_react.default.createElement(PassedIcon, {
|
|
@@ -54,5 +58,4 @@ Validation.propTypes = {
|
|
|
54
58
|
NoValueIcon: _propTypes.elementType,
|
|
55
59
|
disabled: _propTypes.bool
|
|
56
60
|
};
|
|
57
|
-
var _default = Validation;
|
|
58
|
-
exports.default = _default;
|
|
61
|
+
var _default = exports.default = Validation;
|
|
@@ -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,63 +9,76 @@ var _propTypes = require("prop-types");
|
|
|
10
9
|
var _formTypes = require("../../../../types/formTypes");
|
|
11
10
|
var _Validation = _interopRequireDefault(require("./components/Validation"));
|
|
12
11
|
var _Error = _interopRequireDefault(require("./components/Error"));
|
|
13
|
-
var _excluded = ["expression"];
|
|
14
12
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
regex
|
|
38
|
-
|
|
39
|
-
assertion: new RegExp(expression).test(value)
|
|
40
|
-
}, regex);
|
|
13
|
+
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); }
|
|
14
|
+
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
|
+
const PasswordValidations = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
passwordValidations,
|
|
18
|
+
value,
|
|
19
|
+
classes,
|
|
20
|
+
ValidationFailedIcon,
|
|
21
|
+
ValidationPassedIcon,
|
|
22
|
+
ErrorIcon,
|
|
23
|
+
NoValueIcon,
|
|
24
|
+
meta,
|
|
25
|
+
disabled,
|
|
26
|
+
passwordValidationsWarning
|
|
27
|
+
} = _ref;
|
|
28
|
+
const validatedRegExps = passwordValidations.map(_ref2 => {
|
|
29
|
+
let {
|
|
30
|
+
expression,
|
|
31
|
+
...regex
|
|
32
|
+
} = _ref2;
|
|
33
|
+
return {
|
|
34
|
+
assertion: new RegExp(expression).test(value),
|
|
35
|
+
...regex
|
|
36
|
+
};
|
|
41
37
|
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
const {
|
|
39
|
+
errorsContainerStyle
|
|
40
|
+
} = classes;
|
|
41
|
+
const {
|
|
42
|
+
submitFailed,
|
|
43
|
+
error: metaError
|
|
44
|
+
} = meta;
|
|
45
|
+
const validations = validatedRegExps.filter(_ref3 => {
|
|
46
|
+
let {
|
|
47
|
+
requirement
|
|
48
|
+
} = _ref3;
|
|
47
49
|
return requirement;
|
|
48
50
|
});
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
const errors = validatedRegExps.filter(_ref4 => {
|
|
52
|
+
let {
|
|
53
|
+
requirement
|
|
54
|
+
} = _ref4;
|
|
51
55
|
return !requirement;
|
|
52
56
|
});
|
|
53
|
-
if (metaError && !passwordValidations.map(
|
|
54
|
-
|
|
57
|
+
if (metaError && !passwordValidations.map(_ref5 => {
|
|
58
|
+
let {
|
|
59
|
+
error
|
|
60
|
+
} = _ref5;
|
|
55
61
|
return error;
|
|
56
62
|
}).includes(metaError)) errors.push({
|
|
57
63
|
error: metaError
|
|
58
64
|
});
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
const showErrors = errors.some(_ref6 => {
|
|
66
|
+
let {
|
|
67
|
+
assertion,
|
|
68
|
+
error
|
|
69
|
+
} = _ref6;
|
|
70
|
+
return !assertion && !(passwordValidationsWarning !== null && passwordValidationsWarning !== void 0 && passwordValidationsWarning.some(_ref7 => {
|
|
71
|
+
let {
|
|
72
|
+
error: warningError
|
|
73
|
+
} = _ref7;
|
|
64
74
|
return error === warningError;
|
|
65
75
|
}));
|
|
66
76
|
});
|
|
67
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, validations.map(
|
|
68
|
-
|
|
69
|
-
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, validations.map(_ref8 => {
|
|
78
|
+
let {
|
|
79
|
+
requirement,
|
|
80
|
+
assertion
|
|
81
|
+
} = _ref8;
|
|
70
82
|
return /*#__PURE__*/_react.default.createElement(_Validation.default, {
|
|
71
83
|
disabled: disabled,
|
|
72
84
|
ValidationFailedIcon: ValidationFailedIcon,
|
|
@@ -80,9 +92,11 @@ var PasswordValidations = function PasswordValidations(_ref) {
|
|
|
80
92
|
});
|
|
81
93
|
}), submitFailed && showErrors && /*#__PURE__*/_react.default.createElement("div", {
|
|
82
94
|
className: errorsContainerStyle
|
|
83
|
-
}, errors.map(
|
|
84
|
-
|
|
85
|
-
|
|
95
|
+
}, errors.map(_ref9 => {
|
|
96
|
+
let {
|
|
97
|
+
error,
|
|
98
|
+
assertion
|
|
99
|
+
} = _ref9;
|
|
86
100
|
return /*#__PURE__*/_react.default.createElement(_Error.default, {
|
|
87
101
|
ErrorIcon: ErrorIcon,
|
|
88
102
|
classes: classes,
|
|
@@ -111,5 +125,4 @@ PasswordValidations.propTypes = {
|
|
|
111
125
|
meta: _formTypes.metaPropTypes,
|
|
112
126
|
disabled: _propTypes.bool
|
|
113
127
|
};
|
|
114
|
-
var _default = PasswordValidations;
|
|
115
|
-
exports.default = _default;
|
|
128
|
+
var _default = exports.default = PasswordValidations;
|