@bitrise/bitkit-v2 0.3.81 → 0.3.83

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,3 @@
1
+ import { Card } from '@chakra-ui/react/card';
2
+ declare const BitkitCard: import('react').ForwardRefExoticComponent<Card.RootProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ export default BitkitCard;
@@ -0,0 +1,11 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Card as t } from "@chakra-ui/react/card";
3
+ import { forwardRef as e } from "react";
4
+ const m = e((o, i) => {
5
+ const { children: d, ...a } = o;
6
+ return /* @__PURE__ */ r(t.Root, { ref: i, ...a, children: /* @__PURE__ */ r(t.Body, { children: d }) });
7
+ });
8
+ m.displayName = "BitkitCard";
9
+ export {
10
+ m as default
11
+ };
@@ -1,8 +1,9 @@
1
1
  import { createRecipeContext as t } from "@chakra-ui/react/styled-system";
2
2
  import o from "../../theme/recipes/ColorButton.recipe.js";
3
- const { withContext: e } = t({ recipe: o }), n = e("button", {
3
+ const { withContext: e } = t({ recipe: o }), i = e("button", {
4
4
  defaultProps: { type: "button" }
5
5
  });
6
+ i.displayName = "BitkitColorButton";
6
7
  export {
7
- n as default
8
+ i as default
8
9
  };
@@ -0,0 +1,24 @@
1
+ import { CollapsibleRootProps } from '@chakra-ui/react/collapsible';
2
+ import { ReactElement, ReactNode } from 'react';
3
+ type UncontrolledProps = {
4
+ defaultExpanded?: boolean;
5
+ expanded?: never;
6
+ onChange?: never;
7
+ };
8
+ type ControlledProps = {
9
+ defaultExpanded?: never;
10
+ expanded: boolean;
11
+ onChange: (expanded: boolean) => void;
12
+ };
13
+ export type BitkitExpandableCardProps = Omit<CollapsibleRootProps, 'defaultOpen' | 'onOpenChange' | 'open'> & {
14
+ children: ReactNode;
15
+ icon?: ReactElement;
16
+ size: 'md' | 'lg';
17
+ suffix?: string;
18
+ title: ReactNode;
19
+ } & (UncontrolledProps | ControlledProps);
20
+ declare const BitkitExpandableCard: {
21
+ (props: BitkitExpandableCardProps): import("react/jsx-runtime").JSX.Element;
22
+ displayName: string;
23
+ };
24
+ export default BitkitExpandableCard;
@@ -0,0 +1,27 @@
1
+ import { jsx as n, jsxs as o } from "react/jsx-runtime";
2
+ import { Box as r } from "@chakra-ui/react/box";
3
+ import { Card as g } from "@chakra-ui/react/card";
4
+ import { Collapsible as i } from "@chakra-ui/react/collapsible";
5
+ import { useSlotRecipe as u } from "@chakra-ui/react/styled-system";
6
+ import { Text as b } from "@chakra-ui/react/text";
7
+ import y from "../../icons/24x24/IconChevronDown24.js";
8
+ const k = (c) => {
9
+ const { children: a, defaultExpanded: d, expanded: p, icon: s, onChange: t, size: m = "lg", suffix: l, title: f, ...h } = c, e = u({ key: "expandableCard" })({ size: m }), x = t ? (C) => t(C.open) : void 0;
10
+ return /* @__PURE__ */ n(g.Root, { css: e.root, children: /* @__PURE__ */ o(i.Root, { defaultOpen: d, open: p, onOpenChange: x, ...h, children: [
11
+ /* @__PURE__ */ o(i.Trigger, { css: e.header, children: [
12
+ /* @__PURE__ */ o(r, { display: "flex", alignItems: "center", gap: "8", children: [
13
+ s && /* @__PURE__ */ n(r, { css: e.icon, children: s }),
14
+ f
15
+ ] }),
16
+ /* @__PURE__ */ o(r, { display: "flex", alignItems: "center", children: [
17
+ !!l && /* @__PURE__ */ n(b, { css: e.suffix, children: l }),
18
+ /* @__PURE__ */ n(y, { css: e.chevron })
19
+ ] })
20
+ ] }),
21
+ /* @__PURE__ */ n(i.Content, { css: e.collapsible, children: /* @__PURE__ */ n(r, { css: e.body, children: a }) })
22
+ ] }) });
23
+ };
24
+ k.displayName = "BitkitExpandableCard";
25
+ export {
26
+ k as default
27
+ };
@@ -1,12 +1,14 @@
1
1
  export { default as BitkitActionBar, type BitkitActionBarProps } from './BitkitActionBar/BitkitActionBar';
2
2
  export { default as BitkitBadge, type BitkitBadgeProps } from './BitkitBadge/BitkitBadge';
3
3
  export { default as BitkitButton, type BitkitButtonProps } from './BitkitButton/BitkitButton';
4
+ export { default as BitkitCard } from './BitkitCard/BitkitCard';
4
5
  export { default as BitkitCheckbox, type BitkitCheckboxProps } from './BitkitCheckbox/BitkitCheckbox';
5
6
  export { default as BitkitCheckboxGroup, type BitkitCheckboxGroupProps, } from './BitkitCheckboxGroup/BitkitCheckboxGroup';
6
7
  export { default as BitkitCloseButton, type BitkitCloseButtonProps } from './BitkitCloseButton/BitkitCloseButton';
7
8
  export { default as BitkitColorButton, type BitkitColorButtonProps } from './BitkitColorButton/BitkitColorButton';
8
9
  export { default as BitkitDefinitionTooltip, type BitkitDefinitionTooltipProps, } from './BitkitDefinitionTooltip/BitkitDefinitionTooltip';
9
10
  export { default as BitkitEmptyState, type BitkitEmptyStateProps } from './BitkitEmptyState/BitkitEmptyState';
11
+ export { default as BitkitExpandableCard, type BitkitExpandableCardProps, } from './BitkitExpandableCard/BitkitExpandableCard';
10
12
  export { default as BitkitField, type BitkitFieldProps } from './BitkitField/BitkitField';
11
13
  export { default as BitkitInteractiveTooltip, type BitkitInteractiveTooltipProps, } from './BitkitInteractiveTooltip/BitkitInteractiveTooltip';
12
14
  export { default as BitkitNumberInput, type BitkitNumberInputProps } from './BitkitNumberInput/BitkitNumberInput';