@bitrise/bitkit-v2 0.3.75 → 0.3.76

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 { ActionBarRootProps } from '@chakra-ui/react/action-bar';
2
+ import { ReactNode } from 'react';
3
+ export interface BitkitActionBarProps extends ActionBarRootProps {
4
+ children: ReactNode;
5
+ countValue: number;
6
+ onClose?: () => void;
7
+ }
8
+ declare const BitkitActionBar: (props: BitkitActionBarProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default BitkitActionBar;
@@ -1,7 +1,5 @@
1
1
  import { HTMLChakraProps, RecipeProps } from '@chakra-ui/react/styled-system';
2
- import { ReactElement } from 'react';
3
2
  export interface BitkitCloseButtonProps extends HTMLChakraProps<'button'>, RecipeProps<'closeButton'> {
4
- children?: ReactElement;
5
3
  }
6
4
  declare const BitkitCloseButton: import('react').ForwardRefExoticComponent<BitkitCloseButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
7
5
  export default BitkitCloseButton;
@@ -1,12 +1,23 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { createRecipeContext as o } from "@chakra-ui/react/styled-system";
3
- import e from "../../icons/24x24/IconCross24.js";
4
- const { withContext: i } = o({ key: "closeButton" }), r = i("button", {
5
- defaultProps: {
6
- children: /* @__PURE__ */ t(e, {})
7
- }
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { useRecipe as l, chakra as a } from "@chakra-ui/react/styled-system";
3
+ import { forwardRef as c } from "react";
4
+ import n from "../../icons/16x16/IconCross16.js";
5
+ import m from "../../icons/24x24/IconCross24.js";
6
+ const p = c((e, s) => {
7
+ const { size: t, ...r } = e, i = l({ key: "closeButton" });
8
+ return /* @__PURE__ */ o(
9
+ a.button,
10
+ {
11
+ ref: s,
12
+ "aria-label": "Close",
13
+ ...r,
14
+ css: i({ size: t }),
15
+ color: r.colorPalette === "neutral" ? "icon/primary" : void 0,
16
+ children: t === "xs" ? /* @__PURE__ */ o(n, {}) : /* @__PURE__ */ o(m, {})
17
+ }
18
+ );
8
19
  });
9
- r.displayName = "BitkitCloseButton";
20
+ p.displayName = "BitkitCloseButton";
10
21
  export {
11
- r as default
22
+ p as default
12
23
  };
@@ -3,10 +3,6 @@ declare const closeButtonRecipe: import('@chakra-ui/react').RecipeDefinition<{
3
3
  xs: {
4
4
  h: "24";
5
5
  w: "24";
6
- '& > svg': {
7
- h: "16";
8
- w: "16";
9
- };
10
6
  };
11
7
  sm: {
12
8
  h: "32";
@@ -27,7 +27,7 @@ const r = e({
27
27
  },
28
28
  variants: {
29
29
  size: {
30
- xs: { h: "24", w: "24", "& > svg": { h: "16", w: "16" } },
30
+ xs: { h: "24", w: "24" },
31
31
  sm: { h: "32", w: "32" },
32
32
  md: { h: "40", w: "40" }
33
33
  }
@@ -41,10 +41,6 @@ declare const recipes: {
41
41
  xs: {
42
42
  h: "24";
43
43
  w: "24";
44
- '& > svg': {
45
- h: "16";
46
- w: "16";
47
- };
48
44
  };
49
45
  sm: {
50
46
  h: "32";
@@ -0,0 +1,26 @@
1
+ declare const actionBarSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "separator" | "positioner" | "selectionTrigger" | "closeTrigger", {
2
+ size: {
3
+ md: {
4
+ content: {
5
+ padding: "12";
6
+ paddingInlineStart: "16";
7
+ gap: "12";
8
+ };
9
+ };
10
+ sm: {
11
+ content: {
12
+ padding: "8";
13
+ paddingInlineStart: "12";
14
+ gap: "8";
15
+ };
16
+ };
17
+ xs: {
18
+ content: {
19
+ padding: "8";
20
+ paddingInlineStart: "12";
21
+ gap: "8";
22
+ };
23
+ };
24
+ };
25
+ }>;
26
+ export default actionBarSlotRecipe;
@@ -0,0 +1,68 @@
1
+ import { actionBarAnatomy as t } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as n } from "@chakra-ui/react/styled-system";
3
+ const e = n({
4
+ slots: t.keys(),
5
+ className: "action-bar",
6
+ base: {
7
+ positioner: {
8
+ position: "fixed",
9
+ display: "flex",
10
+ justifyContent: "center",
11
+ pointerEvents: "none",
12
+ insetInline: "0",
13
+ top: "unset",
14
+ bottom: "calc(env(safe-area-inset-bottom) + 20px)"
15
+ },
16
+ content: {
17
+ display: "flex",
18
+ alignItems: "center",
19
+ boxShadow: "large",
20
+ pointerEvents: "auto",
21
+ border: "1px solid",
22
+ borderColor: "border/minimal",
23
+ borderRadius: "8",
24
+ backgroundColor: "background/primary",
25
+ _open: {
26
+ animationName: "slide-from-bottom, fade-in",
27
+ animationDuration: "moderate"
28
+ },
29
+ _closed: {
30
+ animationName: "slide-to-bottom, fade-out",
31
+ animationDuration: "faster"
32
+ }
33
+ },
34
+ separator: {
35
+ width: "1",
36
+ height: "24",
37
+ bg: "border/minimal"
38
+ }
39
+ },
40
+ variants: {
41
+ size: {
42
+ md: {
43
+ content: {
44
+ padding: "12",
45
+ paddingInlineStart: "16",
46
+ gap: "12"
47
+ }
48
+ },
49
+ sm: {
50
+ content: {
51
+ padding: "8",
52
+ paddingInlineStart: "12",
53
+ gap: "8"
54
+ }
55
+ },
56
+ xs: {
57
+ content: {
58
+ padding: "8",
59
+ paddingInlineStart: "12",
60
+ gap: "8"
61
+ }
62
+ }
63
+ }
64
+ }
65
+ });
66
+ export {
67
+ e as default
68
+ };
@@ -1,4 +1,29 @@
1
1
  declare const slotRecipes: {
2
+ actionBar: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "separator" | "positioner" | "selectionTrigger" | "closeTrigger", {
3
+ size: {
4
+ md: {
5
+ content: {
6
+ padding: "12";
7
+ paddingInlineStart: "16";
8
+ gap: "12";
9
+ };
10
+ };
11
+ sm: {
12
+ content: {
13
+ padding: "8";
14
+ paddingInlineStart: "12";
15
+ gap: "8";
16
+ };
17
+ };
18
+ xs: {
19
+ content: {
20
+ padding: "8";
21
+ paddingInlineStart: "12";
22
+ gap: "8";
23
+ };
24
+ };
25
+ };
26
+ }>;
2
27
  emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "indicator" | "description", {
3
28
  colorScheme: {
4
29
  white: {
@@ -1,19 +1,21 @@
1
- import t from "./EmptyState.recipe.js";
2
- import e from "./Field.recipe.js";
3
- import o from "./NativeSelect.recipe.js";
4
- import { numberInputSlotRecipe as i } from "./NumberInput.recipe.js";
5
- import p from "./Switch.recipe.js";
1
+ import t from "./ActionBar.recipe.js";
2
+ import e from "./EmptyState.recipe.js";
3
+ import o from "./Field.recipe.js";
4
+ import i from "./NativeSelect.recipe.js";
5
+ import { numberInputSlotRecipe as p } from "./NumberInput.recipe.js";
6
+ import r from "./Switch.recipe.js";
6
7
  import m from "./Tabs.recipe.js";
7
- import r from "./Tooltip.recipe.js";
8
- const n = {
9
- emptyState: t,
10
- field: e,
11
- nativeSelect: o,
12
- numberInput: i,
13
- switch: p,
8
+ import c from "./Tooltip.recipe.js";
9
+ const b = {
10
+ actionBar: t,
11
+ emptyState: e,
12
+ field: o,
13
+ nativeSelect: i,
14
+ numberInput: p,
15
+ switch: r,
14
16
  tabs: m,
15
- tooltip: r
17
+ tooltip: c
16
18
  };
17
19
  export {
18
- n as default
20
+ b as default
19
21
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.75",
4
+ "version": "0.3.76",
5
5
  "description": "Bitrise Design System Components built with Chakra UI v3",
6
6
  "keywords": [
7
7
  "react",
@@ -65,7 +65,7 @@
65
65
  "@svgr/plugin-jsx": "^8.1.0",
66
66
  "@types/node": "^24.10.1",
67
67
  "@types/react-dom": "^19.2.3",
68
- "@types/react": "^19.2.6",
68
+ "@types/react": "^19.2.7",
69
69
  "@vitejs/plugin-react": "^5.1.1",
70
70
  "axios": "^1.13.2",
71
71
  "es-toolkit": "^1.42.0",