@unicef/material-ui 2.0.6 → 2.0.7
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/lib/prod.cjs +19 -13
- package/lib/prod.cjs.map +1 -1
- package/lib/prod.js +19 -13
- package/lib/prod.js.map +1 -1
- package/package.json +1 -1
package/lib/prod.js
CHANGED
|
@@ -5715,8 +5715,8 @@ var StyledAppBar = styled$1(AppBar, {
|
|
|
5715
5715
|
}), "& .".concat(classes$l.margin), {
|
|
5716
5716
|
margin: theme.spacing(2)
|
|
5717
5717
|
}), "& .".concat(classes$l.navbarCenter), {
|
|
5718
|
-
marginLeft:
|
|
5719
|
-
marginRight:
|
|
5718
|
+
marginLeft: theme.spacing(2),
|
|
5719
|
+
marginRight: theme.spacing(2)
|
|
5720
5720
|
});
|
|
5721
5721
|
});
|
|
5722
5722
|
|
|
@@ -5958,7 +5958,8 @@ function UContent(_ref) {
|
|
|
5958
5958
|
return /*#__PURE__*/React__default.createElement(Box$2, {
|
|
5959
5959
|
sx: {
|
|
5960
5960
|
flexGrow: 1,
|
|
5961
|
-
padding: 1
|
|
5961
|
+
padding: 1,
|
|
5962
|
+
minWidth: 0
|
|
5962
5963
|
}
|
|
5963
5964
|
}, /*#__PURE__*/React__default.createElement(Box$2, {
|
|
5964
5965
|
sx: {
|
|
@@ -45586,12 +45587,12 @@ var defaultErrorMessages = {
|
|
|
45586
45587
|
isAlphanumeric: 'Only letters and numbers are allowed'
|
|
45587
45588
|
};
|
|
45588
45589
|
|
|
45589
|
-
var _excluded$K = ["variant", "error", "customErrorMessages", "validators", "requiredError", "helperText", "validatorListener", "withRequiredValidator", "onBlur", "maxLength", "counter", "counterClassName", "readOnly", "label", "slotProps", "showLabelHelp", "InputLabelHelpProps", "select", "id", "options", "children"];
|
|
45590
|
+
var _excluded$K = ["variant", "error", "customErrorMessages", "validators", "requiredError", "helperText", "validatorListener", "withRequiredValidator", "onBlur", "maxLength", "counter", "counterClassName", "counterCharsLocaleText", "readOnly", "label", "slotProps", "showLabelHelp", "InputLabelHelpProps", "select", "id", "options", "children"];
|
|
45590
45591
|
|
|
45591
45592
|
// TODO - research how to use theme
|
|
45592
45593
|
var styles$1 = {
|
|
45593
45594
|
counter: {
|
|
45594
|
-
marginLeft:
|
|
45595
|
+
marginLeft: 2
|
|
45595
45596
|
},
|
|
45596
45597
|
counterError: {
|
|
45597
45598
|
color: '#f44336'
|
|
@@ -45680,7 +45681,9 @@ var UTextField = /*#__PURE__*/function (_ValidatorComponent) {
|
|
|
45680
45681
|
var maxLength = _this$props.maxLength,
|
|
45681
45682
|
counter = _this$props.counter;
|
|
45682
45683
|
_this$props.counterClassName;
|
|
45683
|
-
var _this$props$
|
|
45684
|
+
var _this$props$counterCh = _this$props.counterCharsLocaleText,
|
|
45685
|
+
counterCharsLocaleText = _this$props$counterCh === void 0 ? 'characters' : _this$props$counterCh,
|
|
45686
|
+
_this$props$readOnly = _this$props.readOnly,
|
|
45684
45687
|
readOnly = _this$props$readOnly === void 0 ? false : _this$props$readOnly,
|
|
45685
45688
|
label = _this$props.label,
|
|
45686
45689
|
_this$props$slotProps = _this$props.slotProps,
|
|
@@ -45753,7 +45756,7 @@ var UTextField = /*#__PURE__*/function (_ValidatorComponent) {
|
|
|
45753
45756
|
sx: _objectSpread2$1(_objectSpread2$1({}, styles$1.counter), counterError && styles$1.counterError),
|
|
45754
45757
|
variant: "caption",
|
|
45755
45758
|
color: "textSecondary"
|
|
45756
|
-
}, maxLength ? "".concat(length, "/").concat(maxLength) : length,
|
|
45759
|
+
}, maxLength ? "".concat(length, "/").concat(maxLength) : length, ' ', counterCharsLocaleText)));
|
|
45757
45760
|
}
|
|
45758
45761
|
}]);
|
|
45759
45762
|
}(ValidatorComponentNew);
|
|
@@ -45796,7 +45799,9 @@ UTextField.propTypes = {
|
|
|
45796
45799
|
/** Id of the field */
|
|
45797
45800
|
id: PropTypes.string,
|
|
45798
45801
|
/** If the field is select box and no options are passed, then this children will be used. */
|
|
45799
|
-
children: PropTypes.node
|
|
45802
|
+
children: PropTypes.node,
|
|
45803
|
+
/** Locale text for counter characters */
|
|
45804
|
+
counterCharsLocaleText: PropTypes.string
|
|
45800
45805
|
};
|
|
45801
45806
|
|
|
45802
45807
|
var _excluded$J = ["inputFormat", "label", "onChange", "value", "showLabelHelp", "slotProps", "InputLabelHelpProps", "inputVariant"];
|
|
@@ -53415,8 +53420,9 @@ function UErrorAlert(_ref) {
|
|
|
53415
53420
|
preformatted = _ref$preformatted === void 0 ? false : _ref$preformatted,
|
|
53416
53421
|
_onClose = _ref.onClose;
|
|
53417
53422
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, error && /*#__PURE__*/React__default.createElement(Box$2, {
|
|
53418
|
-
|
|
53419
|
-
|
|
53423
|
+
sx: {
|
|
53424
|
+
marginY: 2
|
|
53425
|
+
}
|
|
53420
53426
|
}, /*#__PURE__*/React__default.createElement(Alert, {
|
|
53421
53427
|
severity: "error",
|
|
53422
53428
|
onClose: function onClose() {
|
|
@@ -55981,11 +55987,11 @@ var classes$7 = {
|
|
|
55981
55987
|
text: "".concat(PREFIX$6, "-text")
|
|
55982
55988
|
};
|
|
55983
55989
|
var Root$1 = styled$1('div')(function (_ref) {
|
|
55984
|
-
_ref.theme;
|
|
55990
|
+
var theme = _ref.theme;
|
|
55985
55991
|
return _defineProperty$1(_defineProperty$1(_defineProperty$1({}, "&.".concat(classes$7.root), {
|
|
55986
55992
|
display: 'flex',
|
|
55987
55993
|
flexDirection: 'column',
|
|
55988
|
-
marginLeft:
|
|
55994
|
+
marginLeft: theme.spacing(1)
|
|
55989
55995
|
}), "& .".concat(classes$7.link), {
|
|
55990
55996
|
color: '#3344DD',
|
|
55991
55997
|
textDecorationLine: 'underline'
|
|
@@ -56098,7 +56104,7 @@ var StyledBox$3 = styled$1('div')(function (_ref) {
|
|
|
56098
56104
|
}), "& .".concat(classes$6.mini), {
|
|
56099
56105
|
width: theme.spacing(3),
|
|
56100
56106
|
height: theme.spacing(3),
|
|
56101
|
-
marginRight: 5
|
|
56107
|
+
marginRight: theme.spacing(0.5)
|
|
56102
56108
|
}), "& .".concat(classes$6.view), {
|
|
56103
56109
|
border: '2px solid red',
|
|
56104
56110
|
marginLeft: '-8px'
|