@bitrise/bitkit-v2 0.3.57 → 0.3.58
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonProps } from '@chakra-ui/react';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
export interface BitkitButtonProps extends Omit<ButtonProps, 'colorPalette' | 'disabled' | 'loading' | 'loadingText' | 'spinner' | 'spinnerPlacement'> {
|
|
4
|
+
children: string;
|
|
5
|
+
leftIcon?: ReactElement;
|
|
6
|
+
rightIcon?: ReactElement;
|
|
7
|
+
state?: 'disabled' | 'loading' | 'skeleton';
|
|
8
|
+
}
|
|
9
|
+
declare const BitkitButton: import('react').ForwardRefExoticComponent<BitkitButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export default BitkitButton;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs as s, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { Button as l } from "@chakra-ui/react";
|
|
3
|
+
import { forwardRef as p, Fragment as m } from "react";
|
|
4
|
+
const c = p((e, r) => {
|
|
5
|
+
const { children: o, leftIcon: n, rightIcon: i, state: t, ...a } = e;
|
|
6
|
+
return /* @__PURE__ */ s(
|
|
7
|
+
l,
|
|
8
|
+
{
|
|
9
|
+
disabled: t === "disabled",
|
|
10
|
+
loading: t === "loading",
|
|
11
|
+
"data-skeleton": t === "skeleton" ? !0 : void 0,
|
|
12
|
+
ref: r,
|
|
13
|
+
...a,
|
|
14
|
+
children: [
|
|
15
|
+
n,
|
|
16
|
+
/* @__PURE__ */ d(t === "skeleton" ? "span" : m, { children: o }),
|
|
17
|
+
i
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
c.displayName = "BitkitButton";
|
|
23
|
+
export {
|
|
24
|
+
c as default
|
|
25
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { default as BitkitButton, type BitkitButtonProps } from './BitkitButton/BitkitButton';
|
|
1
2
|
export { default as BitkitField, type BitkitFieldProps } from './BitkitField/BitkitField';
|
|
2
3
|
export { default as BitkitNumberInput, type BitkitNumberInputProps } from './BitkitNumberInput/BitkitNumberInput';
|
|
3
4
|
export { default as BitkitTextField, type BitkitTextFieldProps } from './BitkitTextField/BitkitTextField';
|