@bitrise/bitkit-v2 0.3.76 → 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/BitkitCloseButton/BitkitCloseButton.js +15 -14
- package/dist/components/BitkitTooltip/BitkitTooltip.d.ts +3 -1
- package/dist/components/BitkitTooltip/BitkitTooltip.js +12 -5
- package/dist/theme/slot-recipes/ActionBar.recipe.js +6 -3
- 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 +21 -2
- package/package.json +1 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useRecipe as l, chakra as
|
|
2
|
+
import { useRecipe as l, chakra as m } from "@chakra-ui/react/styled-system";
|
|
3
3
|
import { forwardRef as c } from "react";
|
|
4
4
|
import n from "../../icons/16x16/IconCross16.js";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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,
|
|
10
11
|
{
|
|
11
12
|
ref: s,
|
|
12
|
-
"aria-label":
|
|
13
|
-
...
|
|
14
|
-
css:
|
|
15
|
-
color:
|
|
16
|
-
children:
|
|
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, {})
|
|
17
18
|
}
|
|
18
|
-
);
|
|
19
|
+
) });
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
+
u.displayName = "BitkitCloseButton";
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
u as default
|
|
23
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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { actionBarAnatomy as t } from "@chakra-ui/react/anatomy";
|
|
2
|
-
import { defineSlotRecipe as
|
|
3
|
-
const
|
|
2
|
+
import { defineSlotRecipe as a } from "@chakra-ui/react/styled-system";
|
|
3
|
+
const o = a({
|
|
4
4
|
slots: t.keys(),
|
|
5
5
|
className: "action-bar",
|
|
6
6
|
base: {
|
|
@@ -61,8 +61,11 @@ const e = n({
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
size: "md"
|
|
64
67
|
}
|
|
65
68
|
});
|
|
66
69
|
export {
|
|
67
|
-
|
|
70
|
+
o as default
|
|
68
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 {
|
|
@@ -103,7 +103,7 @@ declare const slotRecipes: {
|
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
105
|
}>;
|
|
106
|
-
tabs: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "
|
|
106
|
+
tabs: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "trigger" | "root" | "indicator" | "contentGroup", {
|
|
107
107
|
variant: {
|
|
108
108
|
line: {
|
|
109
109
|
list: {
|
|
@@ -156,6 +156,25 @@ declare const slotRecipes: {
|
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
158
|
}>;
|
|
159
|
-
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
|
+
}>;
|
|
160
179
|
};
|
|
161
180
|
export default slotRecipes;
|