@ctlyst.id/internal-ui 2.0.19 → 2.0.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/button/components/button.d.ts +1 -1
- package/dist/internal-ui.cjs.development.js +4 -3
- 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 -3
- 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,
|