@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.
@@ -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: (props: ButtonProps) => JSX.Element;
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,