@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
@@ -1592,14 +1592,10 @@ const TimeInput = ({
|
|
1592
1592
|
}) => {
|
1593
1593
|
const [time, setTime] = React__default.useState(value || '00:00');
|
1594
1594
|
const handleChange = e => {
|
1595
|
-
var _e$target;
|
1595
|
+
var _e$target, _e$target2;
|
1596
1596
|
setTime(((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || '00:00');
|
1597
|
+
if (onChange) onChange(((_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || '00:00');
|
1597
1598
|
};
|
1598
|
-
React__default.useEffect(() => {
|
1599
|
-
if (onChange) {
|
1600
|
-
onChange(time);
|
1601
|
-
}
|
1602
|
-
}, [time]);
|
1603
1599
|
return /*#__PURE__*/React__default.createElement(react.Flex, {
|
1604
1600
|
flexDir: "column",
|
1605
1601
|
alignItems: "center",
|
@@ -1673,7 +1669,8 @@ const Datepicker = ({
|
|
1673
1669
|
}
|
1674
1670
|
return /*#__PURE__*/React__default.createElement(react.FormControl, {
|
1675
1671
|
isRequired: isRequired,
|
1676
|
-
"data-test-id": "CT_Component_datepicker_wrapper"
|
1672
|
+
"data-test-id": "CT_Component_datepicker_wrapper",
|
1673
|
+
isInvalid: isError
|
1677
1674
|
}, label && /*#__PURE__*/React__default.createElement(react.FormLabel, {
|
1678
1675
|
fontSize: "text.sm"
|
1679
1676
|
}, label), /*#__PURE__*/React__default.createElement(react.InputGroup, null, component, /*#__PURE__*/React__default.createElement(react.InputRightElement, null, !value && /*#__PURE__*/React__default.createElement(fi.FiCalendar, null), value && /*#__PURE__*/React__default.createElement(fi.FiX, {
|