@portnet/ui 0.1.17 → 0.1.19
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.
|
@@ -85,9 +85,12 @@ const PuiStandardDateTimeField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
85
85
|
disablePast: disablePast,
|
|
86
86
|
disableFuture: disableFuture,
|
|
87
87
|
disabled: disabled,
|
|
88
|
-
maxDate: maxDate,
|
|
89
|
-
minDate: minDate,
|
|
90
88
|
readOnly: readOnly,
|
|
89
|
+
viewRenderers: {
|
|
90
|
+
hours: null,
|
|
91
|
+
minutes: null,
|
|
92
|
+
seconds: null
|
|
93
|
+
},
|
|
91
94
|
PopperProps: {
|
|
92
95
|
sx: {
|
|
93
96
|
"& .MuiButtonBase-root.Mui-selected, & .MuiButtonBase-root.Mui-selected:focus, & .MuiButtonBase-root.Mui-selected:hover": {
|
|
@@ -139,8 +142,11 @@ const PuiFormikDateTimeField = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
139
142
|
const formikContext = (0, _formik.useFormikContext)();
|
|
140
143
|
const [hasError, setHasError] = React.useState(false);
|
|
141
144
|
const handleChange = value => {
|
|
142
|
-
|
|
143
|
-
|
|
145
|
+
const formattedValue = format ? value.format(format) : value.toISOString();
|
|
146
|
+
formikContext.setFieldValue(name, formattedValue);
|
|
147
|
+
if (onChange) {
|
|
148
|
+
onChange(formattedValue);
|
|
149
|
+
}
|
|
144
150
|
};
|
|
145
151
|
const handleBlur = event => {
|
|
146
152
|
onBlur(event);
|
|
@@ -111,6 +111,7 @@ const StyledMuiTable = (0, _styles.styled)( /*#__PURE__*/React.forwardRef((props
|
|
|
111
111
|
textOverflow: "ellipsis",
|
|
112
112
|
overflow: "hidden",
|
|
113
113
|
maxHeight: "none",
|
|
114
|
+
minWidth: 'maxWidth',
|
|
114
115
|
wordBreak: "break-word",
|
|
115
116
|
"&.tableAction": {
|
|
116
117
|
justifyContent: "center",
|