@portnet/ui 1.2.1 → 1.2.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.
|
@@ -12,7 +12,7 @@ require("core-js/modules/es.symbol.description.js");
|
|
|
12
12
|
var _styles = require("@mui/material/styles");
|
|
13
13
|
var _DesktopDatePicker = require("@mui/x-date-pickers/DesktopDatePicker");
|
|
14
14
|
var _material = require("@mui/material");
|
|
15
|
-
var
|
|
15
|
+
var _Event = _interopRequireDefault(require("@mui/icons-material/Event"));
|
|
16
16
|
var _formik = require("formik");
|
|
17
17
|
var _moment = _interopRequireDefault(require("moment"));
|
|
18
18
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -300,7 +300,7 @@ const PuiStandardDateTimeField = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
300
300
|
if (value) {
|
|
301
301
|
const momentValue = _moment.default.utc(value);
|
|
302
302
|
if (momentValue.isValid()) {
|
|
303
|
-
setDisplayValue(momentValue.format("DD
|
|
303
|
+
setDisplayValue(momentValue.format("DD/MM/YYYY HH:mm"));
|
|
304
304
|
} else {
|
|
305
305
|
setDisplayValue("");
|
|
306
306
|
}
|
|
@@ -339,10 +339,11 @@ const PuiStandardDateTimeField = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
339
339
|
InputProps: {
|
|
340
340
|
endAdornment: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.InputAdornment, {
|
|
341
341
|
position: "end",
|
|
342
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
342
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Event.default, {
|
|
343
343
|
sx: {
|
|
344
|
-
fontSize: "
|
|
345
|
-
|
|
344
|
+
fontSize: "medium",
|
|
345
|
+
marginRight: "-2px",
|
|
346
|
+
color: disabled ? _apperance.palette.gray.dark : "#757575",
|
|
346
347
|
cursor: disabled ? "default" : "pointer"
|
|
347
348
|
}
|
|
348
349
|
})
|