@ctlyst.id/internal-ui 2.0.18 → 2.0.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -132,7 +132,7 @@ const Loader = /*#__PURE__*/forwardRef$1((props, ref) => {
132
132
  });
133
133
  });
134
134
 
135
- const Button = props => {
135
+ const Button = /*#__PURE__*/forwardRef$1((props, ref) => {
136
136
  const {
137
137
  children,
138
138
  variant,
@@ -155,9 +155,10 @@ const Button = props => {
155
155
  spinner: /*#__PURE__*/React__default.createElement(Loader, {
156
156
  size: getLoaderSize(),
157
157
  color: getLoaderColor()
158
- })
158
+ }),
159
+ ref: ref
159
160
  }, rest), children);
160
- };
161
+ });
161
162
 
162
163
  function AlertAction({
163
164
  children,
@@ -1586,14 +1587,10 @@ const TimeInput = ({
1586
1587
  }) => {
1587
1588
  const [time, setTime] = React__default.useState(value || '00:00');
1588
1589
  const handleChange = e => {
1589
- var _e$target;
1590
+ var _e$target, _e$target2;
1590
1591
  setTime(((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || '00:00');
1592
+ if (onChange) onChange(((_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || '00:00');
1591
1593
  };
1592
- React__default.useEffect(() => {
1593
- if (onChange) {
1594
- onChange(time);
1595
- }
1596
- }, [time]);
1597
1594
  return /*#__PURE__*/React__default.createElement(Flex, {
1598
1595
  flexDir: "column",
1599
1596
  alignItems: "center",