@bitrise/bitkit-v2 0.3.75 → 0.3.77
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.
- package/dist/components/BitkitActionBar/BitkitActionBar.d.ts +9 -0
- package/dist/components/BitkitCloseButton/BitkitCloseButton.d.ts +0 -2
- package/dist/components/BitkitCloseButton/BitkitCloseButton.js +21 -9
- package/dist/components/BitkitTooltip/BitkitTooltip.d.ts +3 -1
- package/dist/components/BitkitTooltip/BitkitTooltip.js +12 -5
- package/dist/theme/recipes/CloseButton.recipe.d.ts +0 -4
- package/dist/theme/recipes/CloseButton.recipe.js +1 -1
- package/dist/theme/recipes/index.d.ts +0 -4
- package/dist/theme/slot-recipes/ActionBar.recipe.d.ts +26 -0
- package/dist/theme/slot-recipes/ActionBar.recipe.js +71 -0
- package/dist/theme/slot-recipes/Tabs.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/Tooltip.recipe.d.ts +20 -1
- package/dist/theme/slot-recipes/Tooltip.recipe.js +25 -6
- package/dist/theme/slot-recipes/index.d.ts +46 -2
- package/dist/theme/slot-recipes/index.js +16 -14
- package/package.json +2 -2
|
@@ -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,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRecipe as l, chakra as m } from "@chakra-ui/react/styled-system";
|
|
3
|
+
import { forwardRef as c } from "react";
|
|
4
|
+
import n from "../../icons/16x16/IconCross16.js";
|
|
5
|
+
import p from "../../icons/24x24/IconCross24.js";
|
|
6
|
+
import f from "../BitkitTooltip/BitkitTooltip.js";
|
|
7
|
+
const u = c((i, s) => {
|
|
8
|
+
const { "aria-label": t = "Close", size: r, ...e } = i, a = l({ key: "closeButton" });
|
|
9
|
+
return /* @__PURE__ */ o(f, { showArrow: !1, size: "sm", text: t, children: /* @__PURE__ */ o(
|
|
10
|
+
m.button,
|
|
11
|
+
{
|
|
12
|
+
ref: s,
|
|
13
|
+
"aria-label": t,
|
|
14
|
+
...e,
|
|
15
|
+
css: a({ size: r }),
|
|
16
|
+
color: e.colorPalette === "neutral" ? "icon/primary" : void 0,
|
|
17
|
+
children: r === "xs" ? /* @__PURE__ */ o(n, {}) : /* @__PURE__ */ o(p, {})
|
|
18
|
+
}
|
|
19
|
+
) });
|
|
8
20
|
});
|
|
9
|
-
|
|
21
|
+
u.displayName = "BitkitCloseButton";
|
|
10
22
|
export {
|
|
11
|
-
|
|
23
|
+
u as default
|
|
12
24
|
};
|
|
@@ -3,11 +3,13 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
export type BitkitTooltipProps = {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
placement?: NonNullable<TooltipRootProps['positioning']>['placement'];
|
|
6
|
+
showArrow?: boolean;
|
|
7
|
+
size?: TooltipRootProps['size'];
|
|
6
8
|
text: string;
|
|
7
9
|
tooltipProps?: TooltipRootProps;
|
|
8
10
|
};
|
|
9
11
|
declare const BitkitTooltip: {
|
|
10
|
-
({ children, placement, text, tooltipProps }: BitkitTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
({ children, placement, showArrow, size, text, tooltipProps, }: BitkitTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
displayName: string;
|
|
12
14
|
};
|
|
13
15
|
export default BitkitTooltip;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as i } from "@chakra-ui/react/tooltip";
|
|
3
|
-
const
|
|
3
|
+
const d = ({
|
|
4
|
+
children: r,
|
|
5
|
+
placement: e = "top",
|
|
6
|
+
showArrow: s = !0,
|
|
7
|
+
size: n = "md",
|
|
8
|
+
text: l,
|
|
9
|
+
tooltipProps: p
|
|
10
|
+
}) => /* @__PURE__ */ t(i.Root, { positioning: { placement: e, offset: { mainAxis: 8, crossAxis: 0 } }, size: n, ...p, children: [
|
|
4
11
|
/* @__PURE__ */ o(i.Trigger, { asChild: !0, children: r }),
|
|
5
12
|
/* @__PURE__ */ o(i.Positioner, { children: /* @__PURE__ */ t(i.Content, { children: [
|
|
6
|
-
/* @__PURE__ */ o(i.Arrow, { children: /* @__PURE__ */ o(i.ArrowTip, {}) }),
|
|
7
|
-
|
|
13
|
+
s && /* @__PURE__ */ o(i.Arrow, { children: /* @__PURE__ */ o(i.ArrowTip, {}) }),
|
|
14
|
+
l
|
|
8
15
|
] }) })
|
|
9
16
|
] });
|
|
10
|
-
|
|
17
|
+
d.displayName = "BitkitTooltip";
|
|
11
18
|
export {
|
|
12
|
-
|
|
19
|
+
d as default
|
|
13
20
|
};
|
|
@@ -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,71 @@
|
|
|
1
|
+
import { actionBarAnatomy as t } from "@chakra-ui/react/anatomy";
|
|
2
|
+
import { defineSlotRecipe as a } from "@chakra-ui/react/styled-system";
|
|
3
|
+
const o = a({
|
|
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
|
+
defaultVariants: {
|
|
66
|
+
size: "md"
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
o as default
|
|
71
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const tabsSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "
|
|
1
|
+
declare const tabsSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "trigger" | "root" | "indicator" | "contentGroup", {
|
|
2
2
|
variant: {
|
|
3
3
|
line: {
|
|
4
4
|
list: {
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
declare const tooltipSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner",
|
|
1
|
+
declare const tooltipSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", {
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
content: {
|
|
5
|
+
paddingInline: "8";
|
|
6
|
+
paddingBlock: "4";
|
|
7
|
+
borderRadius: "4";
|
|
8
|
+
textStyle: "body/sm/semibold";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
md: {
|
|
12
|
+
content: {
|
|
13
|
+
paddingInline: "12";
|
|
14
|
+
paddingBlock: "8";
|
|
15
|
+
borderRadius: "8";
|
|
16
|
+
textStyle: "body/md/regular";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
2
21
|
export default tooltipSlotRecipe;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tooltipAnatomy as t } from "@chakra-ui/react/anatomy";
|
|
2
|
-
import { defineSlotRecipe as
|
|
2
|
+
import { defineSlotRecipe as a } from "@chakra-ui/react/styled-system";
|
|
3
3
|
import { rem as o } from "../themeUtils.js";
|
|
4
|
-
const e =
|
|
4
|
+
const e = a({
|
|
5
5
|
className: "tooltip",
|
|
6
6
|
slots: t.keys(),
|
|
7
7
|
base: {
|
|
@@ -9,10 +9,6 @@ const e = r({
|
|
|
9
9
|
"--tooltip-bg": "colors.background.contrast",
|
|
10
10
|
backgroundColor: "var(--tooltip-bg)",
|
|
11
11
|
color: "text/on-contrast",
|
|
12
|
-
paddingInline: "12",
|
|
13
|
-
paddingBlock: "8",
|
|
14
|
-
borderRadius: "8",
|
|
15
|
-
textStyle: "body/md/regular",
|
|
16
12
|
boxShadow: "tooltip",
|
|
17
13
|
maxWidth: o(320),
|
|
18
14
|
zIndex: "tooltip",
|
|
@@ -35,6 +31,29 @@ const e = r({
|
|
|
35
31
|
borderInlineStartWidth: o(1),
|
|
36
32
|
borderColor: "var(--tooltip-bg)"
|
|
37
33
|
}
|
|
34
|
+
},
|
|
35
|
+
variants: {
|
|
36
|
+
size: {
|
|
37
|
+
sm: {
|
|
38
|
+
content: {
|
|
39
|
+
paddingInline: "8",
|
|
40
|
+
paddingBlock: "4",
|
|
41
|
+
borderRadius: "4",
|
|
42
|
+
textStyle: "body/sm/semibold"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
md: {
|
|
46
|
+
content: {
|
|
47
|
+
paddingInline: "12",
|
|
48
|
+
paddingBlock: "8",
|
|
49
|
+
borderRadius: "8",
|
|
50
|
+
textStyle: "body/md/regular"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
size: "md"
|
|
38
57
|
}
|
|
39
58
|
});
|
|
40
59
|
export {
|
|
@@ -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: {
|
|
@@ -78,7 +103,7 @@ declare const slotRecipes: {
|
|
|
78
103
|
};
|
|
79
104
|
};
|
|
80
105
|
}>;
|
|
81
|
-
tabs: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "
|
|
106
|
+
tabs: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "trigger" | "root" | "indicator" | "contentGroup", {
|
|
82
107
|
variant: {
|
|
83
108
|
line: {
|
|
84
109
|
list: {
|
|
@@ -131,6 +156,25 @@ declare const slotRecipes: {
|
|
|
131
156
|
};
|
|
132
157
|
};
|
|
133
158
|
}>;
|
|
134
|
-
tooltip: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner",
|
|
159
|
+
tooltip: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", {
|
|
160
|
+
size: {
|
|
161
|
+
sm: {
|
|
162
|
+
content: {
|
|
163
|
+
paddingInline: "8";
|
|
164
|
+
paddingBlock: "4";
|
|
165
|
+
borderRadius: "4";
|
|
166
|
+
textStyle: "body/sm/semibold";
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
md: {
|
|
170
|
+
content: {
|
|
171
|
+
paddingInline: "12";
|
|
172
|
+
paddingBlock: "8";
|
|
173
|
+
borderRadius: "8";
|
|
174
|
+
textStyle: "body/md/regular";
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
}>;
|
|
135
179
|
};
|
|
136
180
|
export default slotRecipes;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import t from "./
|
|
2
|
-
import e from "./
|
|
3
|
-
import o from "./
|
|
4
|
-
import
|
|
5
|
-
import p from "./
|
|
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
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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:
|
|
17
|
+
tooltip: c
|
|
16
18
|
};
|
|
17
19
|
export {
|
|
18
|
-
|
|
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.
|
|
4
|
+
"version": "0.3.77",
|
|
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.
|
|
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",
|