@widergy/energy-ui 2.12.2 → 2.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/EnergyThemeProvider/index.js +13 -36
- package/dist/components/Loading/constants.js +1 -2
- package/dist/components/Loading/index.js +13 -12
- package/dist/components/Loading/theme.js +4 -2
- package/dist/components/UTAlert/AlertHandler.js +75 -101
- package/dist/components/UTAlert/index.js +65 -87
- package/dist/components/UTAlert/theme.js +32 -32
- package/dist/components/UTAttachment/components/Preview/index.js +8 -9
- package/dist/components/UTAttachment/constants.js +7 -13
- package/dist/components/UTAttachment/index.js +159 -250
- package/dist/components/UTAttachment/layout.js +26 -27
- package/dist/components/UTAttachment/theme.js +4 -2
- package/dist/components/UTAttachment/utils.js +34 -117
- package/dist/components/UTAutocomplete/components/ListBox/index.js +13 -21
- package/dist/components/UTAutocomplete/components/ListBox/utils.js +9 -11
- package/dist/components/UTAutocomplete/constants.js +12 -23
- package/dist/components/UTAutocomplete/index.js +54 -94
- package/dist/components/UTAutocomplete/theme.js +6 -4
- package/dist/components/UTAvatar/constants.js +2 -3
- package/dist/components/UTAvatar/index.js +18 -17
- package/dist/components/UTBarChart/components/Bars/components/Bar/components/Rect/index.js +22 -22
- package/dist/components/UTBarChart/components/Bars/components/Bar/constants.js +1 -1
- package/dist/components/UTBarChart/components/Bars/components/Bar/index.js +21 -22
- package/dist/components/UTBarChart/components/Bars/constants.js +3 -6
- package/dist/components/UTBarChart/components/Bars/index.js +70 -80
- package/dist/components/UTBarChart/components/Legend/constants.js +12 -18
- package/dist/components/UTBarChart/components/Legend/index.js +75 -93
- package/dist/components/UTBarChart/components/Legend/utils.js +1 -5
- package/dist/components/UTBarChart/components/Levels/index.js +16 -14
- package/dist/components/UTBarChart/components/Levels/utils.js +25 -27
- package/dist/components/UTBarChart/components/LinearPlot/constants.js +3 -5
- package/dist/components/UTBarChart/components/LinearPlot/index.js +25 -20
- package/dist/components/UTBarChart/components/LinearPlot/utils.js +37 -39
- package/dist/components/UTBarChart/components/Pagination/constants.js +1 -2
- package/dist/components/UTBarChart/components/Pagination/index.js +20 -24
- package/dist/components/UTBarChart/components/XAxis/components/AxisElement/index.js +21 -32
- package/dist/components/UTBarChart/components/XAxis/components/Decoration/constants.js +2 -4
- package/dist/components/UTBarChart/components/XAxis/components/Decoration/index.js +20 -19
- package/dist/components/UTBarChart/components/XAxis/constants.js +1 -2
- package/dist/components/UTBarChart/components/XAxis/index.js +54 -65
- package/dist/components/UTBarChart/components/YAxis/AxisElement/index.js +12 -11
- package/dist/components/UTBarChart/components/YAxis/constants.js +1 -2
- package/dist/components/UTBarChart/components/YAxis/index.js +30 -37
- package/dist/components/UTBarChart/components/YAxis/utils.js +4 -6
- package/dist/components/UTBarChart/constants.js +4 -8
- package/dist/components/UTBarChart/hooks/use-dynamic-margins.js +23 -40
- package/dist/components/UTBarChart/index.js +152 -166
- package/dist/components/UTBarChart/theme.js +4 -2
- package/dist/components/UTBarChart/types.js +10 -19
- package/dist/components/UTBarChart/utils.js +107 -111
- package/dist/components/UTBreadcrumbs/constants.js +23 -31
- package/dist/components/UTBreadcrumbs/index.js +76 -101
- package/dist/components/UTBreadcrumbs/theme.js +4 -2
- package/dist/components/UTButton/constants.js +11 -17
- package/dist/components/UTButton/index.js +28 -31
- package/dist/components/UTButton/theme.js +23 -23
- package/dist/components/UTCBUInput/index.js +36 -40
- package/dist/components/UTCBUInput/theme.js +4 -2
- package/dist/components/UTCaptcha/index.js +19 -45
- package/dist/components/UTCard/components/UTCardFooter/index.js +15 -16
- package/dist/components/UTCard/index.js +85 -120
- package/dist/components/UTCard/theme.js +11 -12
- package/dist/components/UTCard/types.js +2 -3
- package/dist/components/UTCarousel/components/Button/index.js +13 -13
- package/dist/components/UTCarousel/components/Legend/index.js +13 -15
- package/dist/components/UTCarousel/components/Slider/component/Slide/index.js +16 -16
- package/dist/components/UTCarousel/components/Slider/constants.js +5 -10
- package/dist/components/UTCarousel/components/Slider/index.js +204 -273
- package/dist/components/UTCarousel/components/Slider/layout.js +67 -94
- package/dist/components/UTCarousel/index.js +14 -15
- package/dist/components/UTCarousel/theme.js +4 -2
- package/dist/components/UTCheckList/constants.js +1 -2
- package/dist/components/UTCheckList/index.js +72 -93
- package/dist/components/UTCheckList/theme.js +31 -31
- package/dist/components/UTCheckbox/constants.js +3 -6
- package/dist/components/UTCheckbox/index.js +32 -44
- package/dist/components/UTCheckbox/theme.js +35 -35
- package/dist/components/UTConsumptionBar/components/ConsumptionBarIndicator/index.js +9 -9
- package/dist/components/UTConsumptionBar/constants.js +3 -6
- package/dist/components/UTConsumptionBar/index.js +53 -80
- package/dist/components/UTCuit/index.js +109 -133
- package/dist/components/UTCuit/theme.js +51 -53
- package/dist/components/UTDatePicker/components/Day/constants.js +1 -2
- package/dist/components/UTDatePicker/components/Day/index.js +12 -12
- package/dist/components/UTDatePicker/constants.js +20 -31
- package/dist/components/UTDatePicker/index.js +60 -102
- package/dist/components/UTDatePicker/theme.js +5 -3
- package/dist/components/UTDatePicker/types.js +2 -3
- package/dist/components/UTDatePicker/utils.js +2 -6
- package/dist/components/UTDialog/constants.js +2 -4
- package/dist/components/UTDialog/index.js +38 -37
- package/dist/components/UTDialog/theme.js +4 -2
- package/dist/components/UTDialog/types.js +2 -3
- package/dist/components/UTDotMenu/index.js +39 -61
- package/dist/components/UTEmojiPicker/constants.js +6 -11
- package/dist/components/UTEmojiPicker/index.js +45 -65
- package/dist/components/UTEmojiPicker/theme.js +4 -2
- package/dist/components/UTEmojiPicker/utils.js +21 -51
- package/dist/components/UTExternalLink/constants.js +3 -5
- package/dist/components/UTExternalLink/index.js +18 -15
- package/dist/components/UTExternalLink/theme.js +8 -6
- package/dist/components/UTFileInput/constants.js +2 -4
- package/dist/components/UTFileInput/index.js +7 -31
- package/dist/components/UTFileInput/layout.js +68 -97
- package/dist/components/UTIconButton/index.js +49 -72
- package/dist/components/UTIconButton/theme.js +4 -2
- package/dist/components/UTImageRadio/components/ImageRadioCard/index.js +53 -58
- package/dist/components/UTImageRadio/constants.js +3 -6
- package/dist/components/UTImageRadio/index.js +39 -47
- package/dist/components/UTImageRadio/theme.js +11 -12
- package/dist/components/UTImageRadio/types.js +2 -3
- package/dist/components/UTImageRadio/utils.js +2 -6
- package/dist/components/UTLabel/constants.js +14 -20
- package/dist/components/UTLabel/index.js +18 -20
- package/dist/components/UTLabel/theme.js +15 -15
- package/dist/components/UTList/index.js +15 -18
- package/dist/components/UTLoading/index.js +15 -15
- package/dist/components/UTMap/components/GoogleMaps/constants.js +8 -11
- package/dist/components/UTMap/components/GoogleMaps/index.js +63 -91
- package/dist/components/UTMap/components/GoogleMaps/styles.js +2 -3
- package/dist/components/UTMap/constants.js +6 -12
- package/dist/components/UTMap/index.js +163 -198
- package/dist/components/UTMap/types.js +4 -6
- package/dist/components/UTMap/utils.js +29 -46
- package/dist/components/UTMap/withGoogleMapScript.js +18 -22
- package/dist/components/UTMenu/index.js +52 -69
- package/dist/components/UTMenu/theme.js +5 -3
- package/dist/components/UTMenu/utils.js +5 -11
- package/dist/components/UTModal/constants.js +9 -13
- package/dist/components/UTModal/index.js +26 -30
- package/dist/components/UTModal/theme.js +4 -2
- package/dist/components/UTPagination/components/PageSizeSelector/index.js +11 -10
- package/dist/components/UTPagination/components/PageSizeSelector/utils.js +7 -13
- package/dist/components/UTPagination/components/Pagination/components/NavigationButton/index.js +12 -12
- package/dist/components/UTPagination/components/Pagination/index.js +28 -39
- package/dist/components/UTPagination/components/Pagination/utils.js +8 -14
- package/dist/components/UTPagination/constants.js +3 -6
- package/dist/components/UTPagination/index.js +16 -17
- package/dist/components/UTPagination/theme.js +4 -2
- package/dist/components/UTPanel/index.js +38 -44
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js +13 -10
- package/dist/components/UTPasswordField/components/PasswordValidations/components/Validation/index.js +22 -19
- package/dist/components/UTPasswordField/components/PasswordValidations/index.js +63 -50
- package/dist/components/UTPasswordField/components/PasswordWarning/index.js +25 -26
- package/dist/components/UTPasswordField/index.js +26 -23
- package/dist/components/UTPasswordField/theme.js +4 -2
- package/dist/components/UTPhoneInput/constants.js +3 -6
- package/dist/components/UTPhoneInput/index.js +180 -205
- package/dist/components/UTPhoneInput/theme.js +77 -77
- package/dist/components/UTPieChart/components/ArrowLabel/constants.js +4 -8
- package/dist/components/UTPieChart/components/ArrowLabel/index.js +24 -23
- package/dist/components/UTPieChart/components/Legend/contants.js +3 -6
- package/dist/components/UTPieChart/components/Legend/index.js +27 -24
- package/dist/components/UTPieChart/constants.js +13 -26
- package/dist/components/UTPieChart/hooks/use-animated-value/index.js +15 -33
- package/dist/components/UTPieChart/index.js +73 -76
- package/dist/components/UTPieChart/theme.js +4 -2
- package/dist/components/UTPieChart/utils.js +4 -2
- package/dist/components/UTProgressBar/constants.js +2 -4
- package/dist/components/UTProgressBar/index.js +15 -17
- package/dist/components/UTProgressBar/theme.js +4 -2
- package/dist/components/UTProgressBar/types.js +2 -3
- package/dist/components/UTRadioGroup/index.js +56 -83
- package/dist/components/UTRadioGroup/theme.js +52 -52
- package/dist/components/UTRating/components/Circle/index.js +41 -56
- package/dist/components/UTRating/components/Faces/constants.js +2 -4
- package/dist/components/UTRating/components/Faces/index.js +34 -36
- package/dist/components/UTRating/components/Star/index.js +36 -40
- package/dist/components/UTRating/constants.js +4 -8
- package/dist/components/UTRating/index.js +31 -46
- package/dist/components/UTRating/theme.js +4 -2
- package/dist/components/UTRipple/Ripple.js +22 -39
- package/dist/components/UTRipple/index.js +18 -37
- package/dist/components/UTSelect/components/Option/index.js +13 -13
- package/dist/components/UTSelect/constants.js +4 -8
- package/dist/components/UTSelect/index.js +63 -85
- package/dist/components/UTSelect/stylesJS.js +2 -3
- package/dist/components/UTSelect/theme.js +6 -4
- package/dist/components/UTSelect/utils.js +3 -13
- package/dist/components/UTSidebar/components/ListOption/index.js +34 -49
- package/dist/components/UTSidebar/components/LogosContainer/components/DynamicIcon/index.js +8 -8
- package/dist/components/UTSidebar/components/LogosContainer/index.js +14 -14
- package/dist/components/UTSidebar/components/Option/constants.js +2 -3
- package/dist/components/UTSidebar/components/Option/index.js +28 -32
- package/dist/components/UTSidebar/components/Toggler/index.js +11 -11
- package/dist/components/UTSidebar/index.js +42 -53
- package/dist/components/UTSidebar/theme.js +4 -2
- package/dist/components/UTSidebar/types.js +5 -10
- package/dist/components/UTSkeleton/index.js +10 -36
- package/dist/components/UTStatus/constants.js +5 -9
- package/dist/components/UTStatus/index.js +16 -15
- package/dist/components/UTStatus/theme.js +66 -49
- package/dist/components/UTSwitch/constants.js +3 -6
- package/dist/components/UTSwitch/index.js +42 -57
- package/dist/components/UTSwitch/theme.js +4 -2
- package/dist/components/UTTable/components/ActionIcons/constants.js +1 -2
- package/dist/components/UTTable/components/ActionIcons/index.js +47 -85
- package/dist/components/UTTable/components/Cell/components/ActionButton/index.js +10 -12
- package/dist/components/UTTable/components/Cell/index.js +18 -23
- package/dist/components/UTTable/components/HeaderCell/constants.js +2 -3
- package/dist/components/UTTable/components/HeaderCell/index.js +23 -30
- package/dist/components/UTTable/components/HeaderCell/utils.js +3 -3
- package/dist/components/UTTable/components/PrimaryAction/index.js +12 -11
- package/dist/components/UTTable/components/ResponsiveCell/index.js +19 -20
- package/dist/components/UTTable/components/Status/index.js +18 -19
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/index.js +10 -9
- package/dist/components/UTTable/components/TableFooter/components/PageSizeSelector/utils.js +7 -13
- package/dist/components/UTTable/components/TableFooter/components/Pagination/components/NavigationButton/index.js +12 -12
- package/dist/components/UTTable/components/TableFooter/components/Pagination/index.js +21 -32
- package/dist/components/UTTable/components/TableFooter/components/Pagination/utils.js +8 -14
- package/dist/components/UTTable/components/TableFooter/constants.js +1 -2
- package/dist/components/UTTable/components/TableFooter/index.js +15 -15
- package/dist/components/UTTable/components/TableHeader/index.js +11 -11
- package/dist/components/UTTable/components/TableRow/constants.js +3 -6
- package/dist/components/UTTable/components/TableRow/index.js +82 -95
- package/dist/components/UTTable/components/TableRow/styles.module.scss +8 -1
- package/dist/components/UTTable/components/TableRow/utils.js +15 -0
- package/dist/components/UTTable/constants.js +26 -43
- package/dist/components/UTTable/hook.js +11 -26
- package/dist/components/UTTable/index.js +129 -220
- package/dist/components/UTTable/theme.js +17 -17
- package/dist/components/UTTable/types.js +4 -8
- package/dist/components/UTTable/utils.js +70 -74
- package/dist/components/UTTabs/components/TooltipTab/index.js +20 -30
- package/dist/components/UTTabs/constants.js +4 -8
- package/dist/components/UTTabs/index.js +57 -86
- package/dist/components/UTTabs/theme.js +4 -2
- package/dist/components/UTTabs/utils.js +1 -1
- package/dist/components/UTTextArea/constants.js +3 -6
- package/dist/components/UTTextArea/index.js +23 -23
- package/dist/components/UTTextArea/theme.js +4 -2
- package/dist/components/UTTextInput/constants.js +2 -3
- package/dist/components/UTTextInput/index.js +137 -165
- package/dist/components/UTTextInput/theme.js +6 -4
- package/dist/components/UTThirdPartyCookieChecker/index.js +17 -21
- package/dist/components/UTToggle/components/ToggleOption/index.js +16 -17
- package/dist/components/UTToggle/index.js +25 -26
- package/dist/components/UTToggle/theme.js +4 -2
- package/dist/components/UTTooltip/index.js +23 -30
- package/dist/components/UTTooltip/theme.js +4 -2
- package/dist/components/UTTopbar/components/Notifications/index.js +11 -14
- package/dist/components/UTTopbar/components/UserMenu/index.js +15 -15
- package/dist/components/UTTopbar/index.js +28 -31
- package/dist/components/UTTopbar/theme.js +4 -2
- package/dist/components/UTTopbar/types.js +5 -9
- package/dist/components/UTTouchableWithoutFeedback/index.js +14 -27
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/constants.js +2 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/index.js +34 -31
- package/dist/components/UTVirtualizedList/components/VirtualizedData/components/ListRow/utils.js +4 -4
- package/dist/components/UTVirtualizedList/components/VirtualizedData/constants.js +6 -12
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-ledger.js +8 -18
- package/dist/components/UTVirtualizedList/components/VirtualizedData/hooks/use-virtualized-data.js +23 -47
- package/dist/components/UTVirtualizedList/components/VirtualizedData/index.js +31 -34
- package/dist/components/UTVirtualizedList/components/VirtualizedData/utils.js +81 -93
- package/dist/components/UTVirtualizedList/constants.js +4 -8
- package/dist/components/UTVirtualizedList/index.js +26 -38
- package/dist/components/UTWorkflowContainer/components/ActionButton/index.js +17 -21
- package/dist/components/UTWorkflowContainer/constants.js +3 -6
- package/dist/components/UTWorkflowContainer/hooks/use-previous.js +3 -3
- package/dist/components/UTWorkflowContainer/index.js +32 -51
- package/dist/components/UTWorkflowContainer/theme.js +60 -53
- package/dist/components/UTWorkflowContainer/types.js +2 -3
- package/dist/components/WithLoading/index.js +10 -15
- package/dist/components/WithTheme/index.js +10 -17
- package/dist/components/WithTheme/layout.js +22 -28
- package/dist/components/WithTouch/index.js +12 -19
- package/dist/constants/UTTable.js +2 -3
- package/dist/index.js +58 -58
- package/dist/theme.js +6 -5
- package/dist/types/commonTypes.js +3 -5
- package/dist/types/consumptionTypes.js +3 -5
- package/dist/types/formTypes.js +4 -7
- package/dist/types/tableTypes.js +2 -3
- package/dist/utils/classesUtils.js +5 -13
- package/dist/utils/componentUtils.js +10 -13
- package/dist/utils/helperFunctions.js +4 -4
- package/dist/utils/shadowUtils.js +13 -11
- package/dist/utils/useScreenSize.js +2 -3
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -15,20 +14,21 @@ var _constants = require("./constants");
|
|
|
15
14
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
16
15
|
var _theme = require("./theme");
|
|
17
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
function _getRequireWildcardCache(
|
|
19
|
-
function _interopRequireWildcard(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
colorThemes =
|
|
24
|
-
isResponsive
|
|
25
|
-
onChangePage
|
|
26
|
-
onChangeRowPerPage
|
|
27
|
-
page
|
|
28
|
-
rowsPerPage
|
|
29
|
-
rowsPerPageOptions
|
|
30
|
-
totalRows
|
|
31
|
-
totalRowsLabel
|
|
17
|
+
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); }
|
|
18
|
+
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; }
|
|
19
|
+
const UTPagination = _ref => {
|
|
20
|
+
let {
|
|
21
|
+
classes,
|
|
22
|
+
colorThemes = {},
|
|
23
|
+
isResponsive,
|
|
24
|
+
onChangePage,
|
|
25
|
+
onChangeRowPerPage,
|
|
26
|
+
page,
|
|
27
|
+
rowsPerPage,
|
|
28
|
+
rowsPerPageOptions,
|
|
29
|
+
totalRows,
|
|
30
|
+
totalRowsLabel
|
|
31
|
+
} = _ref;
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
33
33
|
className: "".concat(_stylesModule.default.paginationContainer, " ").concat(classes.paginationContainer)
|
|
34
34
|
}, /*#__PURE__*/_react.default.createElement(_PageSizeSelector.default, {
|
|
@@ -65,5 +65,4 @@ UTPagination.propTypes = {
|
|
|
65
65
|
totalRows: _propTypes.number,
|
|
66
66
|
totalRowsLabel: _propTypes.string
|
|
67
67
|
};
|
|
68
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)( /*#__PURE__*/(0, _react.memo)(UTPagination));
|
|
69
|
-
exports.default = _default;
|
|
68
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)( /*#__PURE__*/(0, _react.memo)(UTPagination));
|
|
@@ -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 _UTButton = _interopRequireDefault(require("../UTButton"));
|
|
|
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", {
|
|
@@ -84,9 +78,10 @@ var UTPanel = function UTPanel(_ref) {
|
|
|
84
78
|
})), disableScrollbar ? children : /*#__PURE__*/_react.default.createElement(_reactPerfectScrollbar.default, {
|
|
85
79
|
onYReachEnd: onEndReachedCallback,
|
|
86
80
|
className: "".concat(_stylesModule.default.perfectScrollbar, " ").concat(perfectScrollbarClass),
|
|
87
|
-
options:
|
|
88
|
-
suppressScrollX: true
|
|
89
|
-
|
|
81
|
+
options: {
|
|
82
|
+
suppressScrollX: true,
|
|
83
|
+
...perfectScrollbarOptions
|
|
84
|
+
}
|
|
90
85
|
}, children));
|
|
91
86
|
};
|
|
92
87
|
UTPanel.propTypes = {
|
|
@@ -104,5 +99,4 @@ UTPanel.propTypes = {
|
|
|
104
99
|
TitleComponent: (0, _propTypes.oneOfType)([_propTypes.element, _propTypes.elementType]),
|
|
105
100
|
TitleIcon: _propTypes.elementType
|
|
106
101
|
};
|
|
107
|
-
var _default = UTPanel;
|
|
108
|
-
exports.default = _default;
|
|
102
|
+
var _default = exports.default = UTPanel;
|
package/dist/components/UTPasswordField/components/PasswordValidations/components/Error/index.js
CHANGED
|
@@ -10,14 +10,18 @@ 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
|
-
|
|
13
|
+
const ErrorMessage = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
assertion,
|
|
16
|
+
ErrorIcon,
|
|
17
|
+
classes,
|
|
18
|
+
error
|
|
19
|
+
} = _ref;
|
|
20
|
+
const {
|
|
21
|
+
failedIconStyle,
|
|
22
|
+
iconStyle
|
|
23
|
+
} = classes;
|
|
24
|
+
const Icon = ErrorIcon || _Info.default;
|
|
21
25
|
return !assertion && /*#__PURE__*/_react.default.createElement("div", {
|
|
22
26
|
className: _stylesModule.default.container
|
|
23
27
|
}, /*#__PURE__*/_react.default.createElement(Icon, {
|
|
@@ -35,5 +39,4 @@ ErrorMessage.propTypes = {
|
|
|
35
39
|
classes: (0, _propTypes.objectOf)(_propTypes.string),
|
|
36
40
|
error: _propTypes.string
|
|
37
41
|
};
|
|
38
|
-
var _default = ErrorMessage;
|
|
39
|
-
exports.default = _default;
|
|
42
|
+
var _default = exports.default = ErrorMessage;
|
|
@@ -12,23 +12,27 @@ 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
|
-
|
|
15
|
+
const Validation = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
assertion,
|
|
18
|
+
classes,
|
|
19
|
+
disabled,
|
|
20
|
+
NoValueIcon,
|
|
21
|
+
requirement,
|
|
22
|
+
shouldShowError,
|
|
23
|
+
ValidationFailedIcon,
|
|
24
|
+
ValidationPassedIcon,
|
|
25
|
+
value
|
|
26
|
+
} = _ref;
|
|
27
|
+
const {
|
|
28
|
+
passedIconStyle,
|
|
29
|
+
failedIconStyle,
|
|
30
|
+
iconStyle
|
|
31
|
+
} = classes;
|
|
32
|
+
const PassedIcon = ValidationPassedIcon || _CheckCircle.default;
|
|
33
|
+
const FailedIcon = ValidationFailedIcon || _Cancel.default;
|
|
34
|
+
const NoValue = NoValueIcon || _FiberManualRecord.default;
|
|
35
|
+
const labelColor = !value && !shouldShowError ? 'gray' : assertion ? 'success' : 'error';
|
|
32
36
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
33
37
|
className: _stylesModule.default.container
|
|
34
38
|
}, value || shouldShowError && !disabled ? assertion ? /*#__PURE__*/_react.default.createElement(PassedIcon, {
|
|
@@ -55,5 +59,4 @@ Validation.propTypes = {
|
|
|
55
59
|
ValidationPassedIcon: _propTypes.elementType,
|
|
56
60
|
value: _propTypes.string
|
|
57
61
|
};
|
|
58
|
-
var _default = Validation;
|
|
59
|
-
exports.default = _default;
|
|
62
|
+
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
|
assertion: assertion,
|
|
72
84
|
classes: classes,
|
|
@@ -81,9 +93,11 @@ var PasswordValidations = function PasswordValidations(_ref) {
|
|
|
81
93
|
});
|
|
82
94
|
}), submitFailed && showErrors && /*#__PURE__*/_react.default.createElement("div", {
|
|
83
95
|
className: errorsContainerStyle
|
|
84
|
-
}, errors.map(
|
|
85
|
-
|
|
86
|
-
|
|
96
|
+
}, errors.map(_ref9 => {
|
|
97
|
+
let {
|
|
98
|
+
error,
|
|
99
|
+
assertion
|
|
100
|
+
} = _ref9;
|
|
87
101
|
return /*#__PURE__*/_react.default.createElement(_Error.default, {
|
|
88
102
|
ErrorIcon: ErrorIcon,
|
|
89
103
|
classes: classes,
|
|
@@ -113,5 +127,4 @@ PasswordValidations.propTypes = {
|
|
|
113
127
|
meta: _formTypes.metaPropTypes,
|
|
114
128
|
disabled: _propTypes.bool
|
|
115
129
|
};
|
|
116
|
-
var _default = PasswordValidations;
|
|
117
|
-
exports.default = _default;
|
|
130
|
+
var _default = exports.default = PasswordValidations;
|
|
@@ -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,31 +9,32 @@ var _propTypes = require("prop-types");
|
|
|
10
9
|
var _Divider = _interopRequireDefault(require("@material-ui/core/Divider"));
|
|
11
10
|
var _UTLabel = _interopRequireDefault(require("../../../UTLabel"));
|
|
12
11
|
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
13
|
-
var _excluded = ["expression"];
|
|
14
12
|
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
|
-
}
|
|
13
|
+
const PasswordWarning = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
classes,
|
|
16
|
+
passwordValidationsWarning,
|
|
17
|
+
value,
|
|
18
|
+
WarningIcon
|
|
19
|
+
} = _ref;
|
|
20
|
+
const {
|
|
21
|
+
warningDivider
|
|
22
|
+
} = classes;
|
|
23
|
+
const validatedRegExps = passwordValidationsWarning.map(_ref2 => {
|
|
24
|
+
let {
|
|
25
|
+
expression,
|
|
26
|
+
...regex
|
|
27
|
+
} = _ref2;
|
|
28
|
+
return {
|
|
29
|
+
assertion: new RegExp(expression).test(value),
|
|
30
|
+
...regex
|
|
31
|
+
};
|
|
34
32
|
});
|
|
35
|
-
return validatedRegExps.map(
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
return validatedRegExps.map(_ref3 => {
|
|
34
|
+
let {
|
|
35
|
+
error,
|
|
36
|
+
assertion
|
|
37
|
+
} = _ref3;
|
|
38
38
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
39
39
|
className: assertion ? _stylesModule.default.hide : _stylesModule.default.warningContainer
|
|
40
40
|
}, /*#__PURE__*/_react.default.createElement(_Divider.default, {
|
|
@@ -58,5 +58,4 @@ PasswordWarning.propTypes = {
|
|
|
58
58
|
value: _propTypes.string,
|
|
59
59
|
WarningIcon: _propTypes.elementType
|
|
60
60
|
};
|
|
61
|
-
var _default = PasswordWarning;
|
|
62
|
-
exports.default = _default;
|
|
61
|
+
var _default = exports.default = PasswordWarning;
|
|
@@ -12,29 +12,33 @@ var _formTypes = require("../../types/formTypes");
|
|
|
12
12
|
var _theme = require("./theme");
|
|
13
13
|
var _PasswordValidations = _interopRequireDefault(require("./components/PasswordValidations"));
|
|
14
14
|
var _PasswordWarning = _interopRequireDefault(require("./components/PasswordWarning"));
|
|
15
|
-
var _excluded = ["field", "input", "classes", "ValidationPassedIcon", "ValidationFailedIcon", "NoValueIcon", "ErrorIcon", "meta", "disabled", "WarningIcon"];
|
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
16
|
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); }
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
showValidations
|
|
35
|
-
passwordValidationsWarning
|
|
36
|
-
|
|
37
|
-
|
|
17
|
+
const UTPasswordField = _ref => {
|
|
18
|
+
let {
|
|
19
|
+
field,
|
|
20
|
+
input,
|
|
21
|
+
classes = {},
|
|
22
|
+
ValidationPassedIcon,
|
|
23
|
+
ValidationFailedIcon,
|
|
24
|
+
NoValueIcon,
|
|
25
|
+
ErrorIcon,
|
|
26
|
+
meta,
|
|
27
|
+
disabled,
|
|
28
|
+
WarningIcon,
|
|
29
|
+
...otherProps
|
|
30
|
+
} = _ref;
|
|
31
|
+
const {
|
|
32
|
+
passwordValidations,
|
|
33
|
+
showValidations,
|
|
34
|
+
passwordValidationsWarning
|
|
35
|
+
} = field;
|
|
36
|
+
const {
|
|
37
|
+
value
|
|
38
|
+
} = input;
|
|
39
|
+
const {
|
|
40
|
+
validationContainer
|
|
41
|
+
} = classes;
|
|
38
42
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_UTTextInput.default, _extends({
|
|
39
43
|
field: field,
|
|
40
44
|
input: input,
|
|
@@ -79,5 +83,4 @@ UTPasswordField.propTypes = {
|
|
|
79
83
|
disabled: _propTypes.bool,
|
|
80
84
|
WarningIcon: _propTypes.elementType
|
|
81
85
|
};
|
|
82
|
-
var _default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTPasswordField);
|
|
83
|
-
exports.default = _default;
|
|
86
|
+
var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(UTPasswordField);
|
|
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.retrieveStyle = void 0;
|
|
7
7
|
var _classesUtils = require("../../utils/classesUtils");
|
|
8
|
-
|
|
8
|
+
const retrieveStyle = _ref => {
|
|
9
9
|
var _theme$UTPasswordFiel, _theme$UTPasswordFiel2, _theme$UTPasswordFiel3, _theme$UTPasswordFiel4;
|
|
10
|
-
|
|
10
|
+
let {
|
|
11
|
+
theme
|
|
12
|
+
} = _ref;
|
|
11
13
|
return {
|
|
12
14
|
iconStyle: {
|
|
13
15
|
height: (theme === null || theme === void 0 || (_theme$UTPasswordFiel = theme.UTPasswordField) === null || _theme$UTPasswordFiel === void 0 || (_theme$UTPasswordFiel = _theme$UTPasswordFiel.icon) === null || _theme$UTPasswordFiel === void 0 ? void 0 : _theme$UTPasswordFiel.size) || '1rem',
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.AREA_CODE_PLACEHOLDER = exports.AREA_CODE_LABEL = exports.AREA_CODES = void 0;
|
|
7
|
-
|
|
7
|
+
const AREA_CODES = exports.AREA_CODES = [{
|
|
8
8
|
code: '11',
|
|
9
9
|
city: 'AMBA'
|
|
10
10
|
}, {
|
|
@@ -908,8 +908,5 @@ var AREA_CODES = [{
|
|
|
908
908
|
code: '3894',
|
|
909
909
|
city: 'BURRUYACÚ'
|
|
910
910
|
}];
|
|
911
|
-
exports.
|
|
912
|
-
|
|
913
|
-
exports.AREA_CODE_PLACEHOLDER = AREA_CODE_PLACEHOLDER;
|
|
914
|
-
var AREA_CODE_LABEL = 'Cod. área';
|
|
915
|
-
exports.AREA_CODE_LABEL = AREA_CODE_LABEL;
|
|
911
|
+
const AREA_CODE_PLACEHOLDER = exports.AREA_CODE_PLACEHOLDER = 'Sin 0';
|
|
912
|
+
const AREA_CODE_LABEL = exports.AREA_CODE_LABEL = 'Cod. área';
|