@bitrise/bitkit-v2 0.3.79 → 0.3.80
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 +13 -13
- package/dist/components/BitkitTag/BitkitTag.d.ts +10 -0
- package/dist/components/BitkitTag/BitkitTag.js +24 -0
- package/dist/components/BitkitTooltip/BitkitTooltip.d.ts +2 -1
- package/dist/components/BitkitTooltip/BitkitTooltip.js +25 -15
- package/dist/components/index.d.ts +1 -0
- package/dist/main.js +1074 -1072
- package/dist/theme/recipes/Skeleton.recipe.js +7 -3
- package/dist/theme/slot-recipes/Tag.recipe.d.ts +48 -0
- package/dist/theme/slot-recipes/Tag.recipe.js +84 -0
- package/dist/theme/slot-recipes/index.d.ts +47 -0
- package/dist/theme/slot-recipes/index.js +6 -4
- package/package.json +6 -6
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { defineRecipe as e } from "@chakra-ui/react/styled-system";
|
|
2
|
-
const
|
|
2
|
+
const r = e({
|
|
3
3
|
className: "skeleton",
|
|
4
4
|
base: {
|
|
5
5
|
"--animate-from": "200%",
|
|
6
6
|
"--animate-to": "-200%",
|
|
7
7
|
"--start-color": "colors.utilities.skeleton",
|
|
8
|
-
"--end-color": "colors.utilities.skeleton-strong"
|
|
8
|
+
"--end-color": "colors.utilities.skeleton-strong",
|
|
9
|
+
overflow: "hidden",
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
justifyContent: "center"
|
|
9
13
|
},
|
|
10
14
|
variants: {
|
|
11
15
|
loading: {
|
|
@@ -35,5 +39,5 @@ const a = e({
|
|
|
35
39
|
}
|
|
36
40
|
});
|
|
37
41
|
export {
|
|
38
|
-
|
|
42
|
+
r as default
|
|
39
43
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const tagSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "closeTrigger" | "root" | "startElement" | "endElement", {
|
|
2
|
+
disabled: {
|
|
3
|
+
true: {
|
|
4
|
+
root: {
|
|
5
|
+
backgroundColor: "background/disabled";
|
|
6
|
+
borderColor: "border/disabled";
|
|
7
|
+
color: "text/on-disabled";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
false: {};
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
sm: {
|
|
14
|
+
root: {
|
|
15
|
+
height: "24";
|
|
16
|
+
paddingInline: "4";
|
|
17
|
+
'&:has(button)': {
|
|
18
|
+
paddingInlineEnd: "1";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
paddingInline: "4";
|
|
23
|
+
textStyle: "comp/tag/sm";
|
|
24
|
+
};
|
|
25
|
+
endElement: {
|
|
26
|
+
width: "20";
|
|
27
|
+
height: "20";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
md: {
|
|
31
|
+
root: {
|
|
32
|
+
height: "32";
|
|
33
|
+
paddingInline: "6";
|
|
34
|
+
'&:has(button)': {
|
|
35
|
+
paddingInlineEnd: string | number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
startElement: {
|
|
39
|
+
marginInlineEnd: "-2px";
|
|
40
|
+
};
|
|
41
|
+
label: {
|
|
42
|
+
paddingInline: "6";
|
|
43
|
+
textStyle: "comp/tag/md";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
export default tagSlotRecipe;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { tagAnatomy as e } from "@chakra-ui/react/anatomy";
|
|
2
|
+
import { defineSlotRecipe as o } from "@chakra-ui/react/styled-system";
|
|
3
|
+
import { rem as t } from "../themeUtils.js";
|
|
4
|
+
const d = o({
|
|
5
|
+
className: "tag",
|
|
6
|
+
slots: e.keys(),
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
colorPalette: "neutral",
|
|
10
|
+
backgroundColor: "colorPalette.subtle",
|
|
11
|
+
borderRadius: "4",
|
|
12
|
+
border: "1px solid",
|
|
13
|
+
borderColor: "colorPalette.muted",
|
|
14
|
+
display: "inline-flex",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
overflow: "hidden",
|
|
17
|
+
color: "colorPalette.strong"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
compoundVariants: [
|
|
21
|
+
{
|
|
22
|
+
colorPalette: "neutral",
|
|
23
|
+
disabled: !1,
|
|
24
|
+
css: {
|
|
25
|
+
root: {
|
|
26
|
+
color: "text/primary"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
variants: {
|
|
32
|
+
disabled: {
|
|
33
|
+
true: {
|
|
34
|
+
root: {
|
|
35
|
+
backgroundColor: "background/disabled",
|
|
36
|
+
borderColor: "border/disabled",
|
|
37
|
+
color: "text/on-disabled"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
false: {}
|
|
41
|
+
},
|
|
42
|
+
size: {
|
|
43
|
+
sm: {
|
|
44
|
+
root: {
|
|
45
|
+
height: "24",
|
|
46
|
+
paddingInline: "4",
|
|
47
|
+
"&:has(button)": {
|
|
48
|
+
paddingInlineEnd: "1"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
label: {
|
|
52
|
+
paddingInline: "4",
|
|
53
|
+
textStyle: "comp/tag/sm"
|
|
54
|
+
},
|
|
55
|
+
endElement: {
|
|
56
|
+
width: "20",
|
|
57
|
+
height: "20"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
md: {
|
|
61
|
+
root: {
|
|
62
|
+
height: "32",
|
|
63
|
+
paddingInline: "6",
|
|
64
|
+
"&:has(button)": {
|
|
65
|
+
paddingInlineEnd: t(3)
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
startElement: {
|
|
69
|
+
marginInlineEnd: "-2px"
|
|
70
|
+
},
|
|
71
|
+
label: {
|
|
72
|
+
paddingInline: "6",
|
|
73
|
+
textStyle: "comp/tag/md"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
defaultVariants: {
|
|
79
|
+
size: "md"
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
export {
|
|
83
|
+
d as default
|
|
84
|
+
};
|
|
@@ -156,6 +156,53 @@ declare const slotRecipes: {
|
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
158
|
}>;
|
|
159
|
+
tag: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "closeTrigger" | "root" | "startElement" | "endElement", {
|
|
160
|
+
disabled: {
|
|
161
|
+
true: {
|
|
162
|
+
root: {
|
|
163
|
+
backgroundColor: "background/disabled";
|
|
164
|
+
borderColor: "border/disabled";
|
|
165
|
+
color: "text/on-disabled";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
false: {};
|
|
169
|
+
};
|
|
170
|
+
size: {
|
|
171
|
+
sm: {
|
|
172
|
+
root: {
|
|
173
|
+
height: "24";
|
|
174
|
+
paddingInline: "4";
|
|
175
|
+
'&:has(button)': {
|
|
176
|
+
paddingInlineEnd: "1";
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
label: {
|
|
180
|
+
paddingInline: "4";
|
|
181
|
+
textStyle: "comp/tag/sm";
|
|
182
|
+
};
|
|
183
|
+
endElement: {
|
|
184
|
+
width: "20";
|
|
185
|
+
height: "20";
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
md: {
|
|
189
|
+
root: {
|
|
190
|
+
height: "32";
|
|
191
|
+
paddingInline: "6";
|
|
192
|
+
'&:has(button)': {
|
|
193
|
+
paddingInlineEnd: string | number;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
startElement: {
|
|
197
|
+
marginInlineEnd: "-2px";
|
|
198
|
+
};
|
|
199
|
+
label: {
|
|
200
|
+
paddingInline: "6";
|
|
201
|
+
textStyle: "comp/tag/md";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
}>;
|
|
159
206
|
tooltip: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", {
|
|
160
207
|
size: {
|
|
161
208
|
sm: {
|
|
@@ -5,8 +5,9 @@ import i from "./NativeSelect.recipe.js";
|
|
|
5
5
|
import { numberInputSlotRecipe as p } from "./NumberInput.recipe.js";
|
|
6
6
|
import r from "./Switch.recipe.js";
|
|
7
7
|
import m from "./Tabs.recipe.js";
|
|
8
|
-
import c from "./
|
|
9
|
-
|
|
8
|
+
import c from "./Tag.recipe.js";
|
|
9
|
+
import l from "./Tooltip.recipe.js";
|
|
10
|
+
const g = {
|
|
10
11
|
actionBar: t,
|
|
11
12
|
emptyState: e,
|
|
12
13
|
field: o,
|
|
@@ -14,8 +15,9 @@ const b = {
|
|
|
14
15
|
numberInput: p,
|
|
15
16
|
switch: r,
|
|
16
17
|
tabs: m,
|
|
17
|
-
|
|
18
|
+
tag: c,
|
|
19
|
+
tooltip: l
|
|
18
20
|
};
|
|
19
21
|
export {
|
|
20
|
-
|
|
22
|
+
g as default
|
|
21
23
|
};
|
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.80",
|
|
5
5
|
"description": "Bitrise Design System Components built with Chakra UI v3",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"react",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"@figma-export/output-components-as-svg": "^6.2.4",
|
|
61
61
|
"@figma-export/transform-svg-with-svgo": "^6.2.4",
|
|
62
62
|
"@google-cloud/storage": "^7.17.3",
|
|
63
|
-
"@storybook/addon-docs": "10.1.
|
|
64
|
-
"@storybook/react-vite": "10.1.
|
|
63
|
+
"@storybook/addon-docs": "10.1.2",
|
|
64
|
+
"@storybook/react-vite": "10.1.2",
|
|
65
65
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
66
66
|
"@types/node": "^24.10.1",
|
|
67
67
|
"@types/react-dom": "^19.2.3",
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"react-dom": "^19.2.0",
|
|
73
73
|
"react": "^19.2.0",
|
|
74
74
|
"release-it": "^19.0.6",
|
|
75
|
-
"storybook": "10.1.
|
|
76
|
-
"tsx": "^4.
|
|
75
|
+
"storybook": "10.1.2",
|
|
76
|
+
"tsx": "^4.21.0",
|
|
77
77
|
"typescript": "^5.9.3",
|
|
78
78
|
"vite-plugin-dts": "^4.5.4",
|
|
79
79
|
"vite-plugin-svgr": "^4.5.0",
|
|
80
|
-
"vite": "^7.2.
|
|
80
|
+
"vite": "^7.2.6"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@chakra-ui/react": "^3.30.0",
|