@ctlyst.id/internal-ui 2.0.17 → 2.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/internal-ui.cjs.development.js +4 -7
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +1 -1
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +4 -7
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/internal-ui.esm.js
CHANGED
@@ -1586,14 +1586,10 @@ const TimeInput = ({
|
|
1586
1586
|
}) => {
|
1587
1587
|
const [time, setTime] = React__default.useState(value || '00:00');
|
1588
1588
|
const handleChange = e => {
|
1589
|
-
var _e$target;
|
1589
|
+
var _e$target, _e$target2;
|
1590
1590
|
setTime(((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || '00:00');
|
1591
|
+
if (onChange) onChange(((_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || '00:00');
|
1591
1592
|
};
|
1592
|
-
React__default.useEffect(() => {
|
1593
|
-
if (onChange) {
|
1594
|
-
onChange(time);
|
1595
|
-
}
|
1596
|
-
}, [time]);
|
1597
1593
|
return /*#__PURE__*/React__default.createElement(Flex, {
|
1598
1594
|
flexDir: "column",
|
1599
1595
|
alignItems: "center",
|
@@ -1667,7 +1663,8 @@ const Datepicker = ({
|
|
1667
1663
|
}
|
1668
1664
|
return /*#__PURE__*/React__default.createElement(FormControl, {
|
1669
1665
|
isRequired: isRequired,
|
1670
|
-
"data-test-id": "CT_Component_datepicker_wrapper"
|
1666
|
+
"data-test-id": "CT_Component_datepicker_wrapper",
|
1667
|
+
isInvalid: isError
|
1671
1668
|
}, label && /*#__PURE__*/React__default.createElement(FormLabel$1, {
|
1672
1669
|
fontSize: "text.sm"
|
1673
1670
|
}, label), /*#__PURE__*/React__default.createElement(InputGroup, null, component, /*#__PURE__*/React__default.createElement(InputRightElement, null, !value && /*#__PURE__*/React__default.createElement(FiCalendar, null), value && /*#__PURE__*/React__default.createElement(FiX, {
|