@ctlyst.id/internal-ui 2.0.19 → 2.0.21

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.
@@ -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,
@@ -3345,16 +3346,18 @@ const Tab = /*#__PURE__*/react.forwardRef((props, ref) => {
3345
3346
  })));
3346
3347
  });
3347
3348
 
3348
- const TabList = /*#__PURE__*/react.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(react.TabList, {
3349
+ const TabList = /*#__PURE__*/react.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(react.TabList, Object.assign({
3349
3350
  borderBottom: "1px solid",
3350
- borderColor: react.useColorModeValue('gray.200', 'bright-gray.800'),
3351
+ borderColor: react.useColorModeValue('gray.200', 'bright-gray.800')
3352
+ }, props, {
3351
3353
  ref: ref
3352
- }, props.children));
3354
+ }), props.children));
3353
3355
 
3354
- const TabPanel = /*#__PURE__*/react.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(react.TabPanel, {
3355
- px: 0,
3356
+ const TabPanel = /*#__PURE__*/react.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(react.TabPanel, Object.assign({
3357
+ px: 0
3358
+ }, props, {
3356
3359
  ref: ref
3357
- }, props.children));
3360
+ }), props.children));
3358
3361
 
3359
3362
  const messages = {
3360
3363
  dragActive: 'Drop file disini...',