@ctlyst.id/internal-ui 2.0.18 → 2.0.20
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/components/button/components/button.d.ts +1 -1
- package/dist/internal-ui.cjs.development.js +6 -9
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +2 -2
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +6 -9
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +2 -2
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { ButtonProps as ButtonChakraProps } from '@chakra-ui/react';
|
2
2
|
export declare type ButtonProps = ButtonChakraProps;
|
3
|
-
declare const Button: (
|
3
|
+
declare const Button: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"button", ButtonChakraProps>;
|
4
4
|
export default Button;
|
@@ -138,7 +138,7 @@ const Loader = /*#__PURE__*/react.forwardRef((props, ref) => {
|
|
138
138
|
});
|
139
139
|
});
|
140
140
|
|
141
|
-
const Button = props => {
|
141
|
+
const Button = /*#__PURE__*/react.forwardRef((props, ref) => {
|
142
142
|
const {
|
143
143
|
children,
|
144
144
|
variant,
|
@@ -161,9 +161,10 @@ const Button = props => {
|
|
161
161
|
spinner: /*#__PURE__*/React__default.createElement(Loader, {
|
162
162
|
size: getLoaderSize(),
|
163
163
|
color: getLoaderColor()
|
164
|
-
})
|
164
|
+
}),
|
165
|
+
ref: ref
|
165
166
|
}, rest), children);
|
166
|
-
};
|
167
|
+
});
|
167
168
|
|
168
169
|
function AlertAction({
|
169
170
|
children,
|
@@ -1592,14 +1593,10 @@ const TimeInput = ({
|
|
1592
1593
|
}) => {
|
1593
1594
|
const [time, setTime] = React__default.useState(value || '00:00');
|
1594
1595
|
const handleChange = e => {
|
1595
|
-
var _e$target;
|
1596
|
+
var _e$target, _e$target2;
|
1596
1597
|
setTime(((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || '00:00');
|
1598
|
+
if (onChange) onChange(((_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || '00:00');
|
1597
1599
|
};
|
1598
|
-
React__default.useEffect(() => {
|
1599
|
-
if (onChange) {
|
1600
|
-
onChange(time);
|
1601
|
-
}
|
1602
|
-
}, [time]);
|
1603
1600
|
return /*#__PURE__*/React__default.createElement(react.Flex, {
|
1604
1601
|
flexDir: "column",
|
1605
1602
|
alignItems: "center",
|