@bitrise/bitkit-v2 0.3.153 → 0.3.154

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,9 @@
1
+ import { HTMLChakraProps, RecipeProps } from '@chakra-ui/react/styled-system';
2
+ import { BitkitIconComponent } from '../../icons';
3
+ export interface BitkitLinkButtonProps extends Omit<HTMLChakraProps<'button'>, 'css' | 'disabled' | 'type'>, RecipeProps<'linkButton'> {
4
+ children: string;
5
+ state?: 'disabled';
6
+ suffixIcon?: BitkitIconComponent;
7
+ }
8
+ declare const BitkitLinkButton: import('react').ForwardRefExoticComponent<BitkitLinkButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
9
+ export default BitkitLinkButton;
@@ -0,0 +1,14 @@
1
+ import { jsxs as f, jsx as u } from "react/jsx-runtime";
2
+ import { useRecipe as d, chakra as l } from "@chakra-ui/react/styled-system";
3
+ import { forwardRef as p } from "react";
4
+ const k = p((e, o) => {
5
+ const { children: s, size: t, state: n, suffixIcon: i, ...r } = e, c = d({ key: "linkButton" }), a = t === "lg" ? "24" : "16";
6
+ return /* @__PURE__ */ f(l.button, { ref: o, ...r, css: c({ size: t }), disabled: n === "disabled", type: "button", children: [
7
+ s,
8
+ i && /* @__PURE__ */ u(i, { size: a })
9
+ ] });
10
+ });
11
+ k.displayName = "BitkitLinkButton";
12
+ export {
13
+ k as default
14
+ };
@@ -23,6 +23,7 @@ export { default as BitkitField, type BitkitFieldProps } from './BitkitField/Bit
23
23
  export { default as BitkitIconButton, type BitkitIconButtonProps } from './BitkitIconButton/BitkitIconButton';
24
24
  export { default as BitkitInteractiveTooltip, type BitkitInteractiveTooltipProps, } from './BitkitInteractiveTooltip/BitkitInteractiveTooltip';
25
25
  export { default as BitkitLink, type BitkitLinkProps } from './BitkitLink/BitkitLink';
26
+ export { default as BitkitLinkButton, type BitkitLinkButtonProps } from './BitkitLinkButton/BitkitLinkButton';
26
27
  export { default as BitkitNativeSelect, type BitkitNativeSelectProps } from './BitkitNativeSelect/BitkitNativeSelect';
27
28
  export { default as BitkitNumberInput, type BitkitNumberInputProps } from './BitkitNumberInput/BitkitNumberInput';
28
29
  export { default as BitkitRadio, type BitkitRadioProps } from './BitkitRadio/BitkitRadio';