@paygreen/pgui 2.14.3 → 2.14.4
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -7914,7 +7914,7 @@ var InputDayPicker = function (_a) {
|
|
|
7914
7914
|
// Update the input value when the value prop changes
|
|
7915
7915
|
useEffect(function () {
|
|
7916
7916
|
setDateValue(dayjs(value).isValid() ? dayjs(value).format(defaultDateFormat) : '');
|
|
7917
|
-
}, [value]);
|
|
7917
|
+
}, [value, locale]);
|
|
7918
7918
|
// Add new state variables for hours and minutes
|
|
7919
7919
|
var _e = useState('00'), hours = _e[0], setHours = _e[1];
|
|
7920
7920
|
var _f = useState('00'), minutes = _f[0], setMinutes = _f[1];
|
|
@@ -7954,7 +7954,7 @@ var InputDayPicker = function (_a) {
|
|
|
7954
7954
|
useEffect(function () {
|
|
7955
7955
|
handleDateSelection(dayjs(dateValue, defaultDateFormat).toDate());
|
|
7956
7956
|
}, [hours, minutes]);
|
|
7957
|
-
return (React__default.createElement(Box,
|
|
7957
|
+
return (React__default.createElement(Box, { position: 'relative' },
|
|
7958
7958
|
React__default.createElement(InputGroup, null,
|
|
7959
7959
|
React__default.createElement(InputLeftElement, { role: "group", color: isDisabled ? inputLeftElementColor : inputLeftElementDisabledColor, _hover: {
|
|
7960
7960
|
cursor: isDisabled ? 'not-allowed' : 'pointer'
|