@bitrise/bitkit-v2 0.3.65 → 0.3.67
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/BitkitEmptyState/BitkitEmptyState.d.ts +9 -0
- package/dist/components/BitkitEmptyState/BitkitEmptyState.js +14 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/main.js +1062 -1060
- package/dist/theme/slot-recipes/EmptyState.recipe.d.ts +15 -0
- package/dist/theme/slot-recipes/EmptyState.recipe.js +58 -0
- package/dist/theme/slot-recipes/Switch.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/Tabs.recipe.d.ts +54 -0
- package/dist/theme/slot-recipes/Tabs.recipe.js +104 -0
- package/dist/theme/slot-recipes/index.d.ts +68 -1
- package/dist/theme/slot-recipes/index.js +14 -10
- package/package.json +6 -6
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const emptyStateSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "indicator" | "description", {
|
|
2
|
+
colorScheme: {
|
|
3
|
+
white: {
|
|
4
|
+
root: {
|
|
5
|
+
backgroundColor: "background/primary";
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
grey: {
|
|
9
|
+
root: {
|
|
10
|
+
backgroundColor: "background/secondary";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
export default emptyStateSlotRecipe;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { emptyStateAnatomy as o } from "@chakra-ui/react/anatomy";
|
|
2
|
+
import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
|
|
3
|
+
import { rem as r } from "../themeUtils.js";
|
|
4
|
+
const n = e({
|
|
5
|
+
slots: o.keys(),
|
|
6
|
+
className: "empty-state",
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
border: "1px solid",
|
|
10
|
+
borderColor: "border/minimal",
|
|
11
|
+
borderRadius: "4",
|
|
12
|
+
padding: ["32", "48"]
|
|
13
|
+
},
|
|
14
|
+
content: {
|
|
15
|
+
maxWidth: r(480),
|
|
16
|
+
marginInline: "auto",
|
|
17
|
+
display: "flex",
|
|
18
|
+
flexDirection: "column",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
textAlign: "center"
|
|
21
|
+
},
|
|
22
|
+
indicator: {
|
|
23
|
+
color: "icon/tertiary"
|
|
24
|
+
},
|
|
25
|
+
title: {
|
|
26
|
+
textStyle: "heading/h4",
|
|
27
|
+
color: "text/secondary",
|
|
28
|
+
marginBlock: "8"
|
|
29
|
+
},
|
|
30
|
+
description: {
|
|
31
|
+
textStyle: "body/md/regular",
|
|
32
|
+
color: "text/secondary",
|
|
33
|
+
"&:has(+ *)": {
|
|
34
|
+
marginBlockEnd: "24"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
variants: {
|
|
39
|
+
colorScheme: {
|
|
40
|
+
white: {
|
|
41
|
+
root: {
|
|
42
|
+
backgroundColor: "background/primary"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
grey: {
|
|
46
|
+
root: {
|
|
47
|
+
backgroundColor: "background/secondary"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
colorScheme: "grey"
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
n as default
|
|
58
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const switchSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "
|
|
1
|
+
declare const switchSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "control" | "thumb", {
|
|
2
2
|
size: {
|
|
3
3
|
sm: {
|
|
4
4
|
root: {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const tabsSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "root" | "indicator" | "trigger" | "contentGroup", {
|
|
2
|
+
variant: {
|
|
3
|
+
line: {
|
|
4
|
+
list: {
|
|
5
|
+
borderBlockEnd: "1px solid";
|
|
6
|
+
borderColor: "border/regular";
|
|
7
|
+
};
|
|
8
|
+
trigger: {
|
|
9
|
+
bottom: "-1px";
|
|
10
|
+
display: "flex";
|
|
11
|
+
alignItems: "center";
|
|
12
|
+
gap: "8";
|
|
13
|
+
color: "text/secondary";
|
|
14
|
+
paddingBlockStart: "12";
|
|
15
|
+
paddingBlockEnd: string | number;
|
|
16
|
+
borderBlockEnd: "2px solid transparent";
|
|
17
|
+
_selected: {
|
|
18
|
+
color: "text/primary";
|
|
19
|
+
};
|
|
20
|
+
_hover: {
|
|
21
|
+
borderColor: "border/hover";
|
|
22
|
+
color: "text/primary";
|
|
23
|
+
};
|
|
24
|
+
_disabled: {
|
|
25
|
+
color: "text/disabled";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
contained: {
|
|
30
|
+
trigger: {
|
|
31
|
+
paddingBlockStart: string | number;
|
|
32
|
+
paddingBlockEnd: "12";
|
|
33
|
+
backgroundColor: "background/tertiary";
|
|
34
|
+
color: "text/secondary";
|
|
35
|
+
borderBlockStart: "2px solid transparent";
|
|
36
|
+
_hover: {
|
|
37
|
+
backgroundColor: "background/active";
|
|
38
|
+
};
|
|
39
|
+
_disabled: {
|
|
40
|
+
backgroundColor: "sys/neutral/moderate";
|
|
41
|
+
color: "text/on-disabled";
|
|
42
|
+
};
|
|
43
|
+
_selected: {
|
|
44
|
+
backgroundColor: "background/primary";
|
|
45
|
+
color: "text/selected";
|
|
46
|
+
_hover: {
|
|
47
|
+
backgroundColor: "background/primary";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
export default tabsSlotRecipe;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { tabsAnatomy as r } from "@chakra-ui/react/anatomy";
|
|
2
|
+
import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
|
|
3
|
+
import { rem as o } from "../themeUtils.js";
|
|
4
|
+
const a = e({
|
|
5
|
+
slots: r.keys(),
|
|
6
|
+
className: "chakra-tabs",
|
|
7
|
+
base: {
|
|
8
|
+
list: {
|
|
9
|
+
display: "flex"
|
|
10
|
+
},
|
|
11
|
+
trigger: {
|
|
12
|
+
cursor: "pointer",
|
|
13
|
+
textStyle: "body/lg/semibold",
|
|
14
|
+
paddingInline: "16",
|
|
15
|
+
position: "relative",
|
|
16
|
+
textAlign: "left",
|
|
17
|
+
zIndex: 0,
|
|
18
|
+
_focusVisible: {
|
|
19
|
+
outline: o(2),
|
|
20
|
+
outlineColor: "sys/interactive/highlight",
|
|
21
|
+
outlineOffset: "0",
|
|
22
|
+
outlineStyle: "solid"
|
|
23
|
+
},
|
|
24
|
+
_disabled: {
|
|
25
|
+
cursor: "not-allowed"
|
|
26
|
+
},
|
|
27
|
+
_selected: {
|
|
28
|
+
zIndex: 1,
|
|
29
|
+
borderColor: "border/selected",
|
|
30
|
+
_hover: {
|
|
31
|
+
borderColor: "border/selected"
|
|
32
|
+
},
|
|
33
|
+
"& > svg": {
|
|
34
|
+
color: "icon/interactive"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
content: {
|
|
39
|
+
outline: "none"
|
|
40
|
+
},
|
|
41
|
+
contentGroup: {
|
|
42
|
+
backgroundColor: "background/primary"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
variants: {
|
|
46
|
+
variant: {
|
|
47
|
+
line: {
|
|
48
|
+
list: {
|
|
49
|
+
borderBlockEnd: "1px solid",
|
|
50
|
+
borderColor: "border/regular"
|
|
51
|
+
},
|
|
52
|
+
trigger: {
|
|
53
|
+
bottom: "-1px",
|
|
54
|
+
display: "flex",
|
|
55
|
+
alignItems: "center",
|
|
56
|
+
gap: "8",
|
|
57
|
+
color: "text/secondary",
|
|
58
|
+
paddingBlockStart: "12",
|
|
59
|
+
paddingBlockEnd: o(9),
|
|
60
|
+
borderBlockEnd: "2px solid transparent",
|
|
61
|
+
_selected: {
|
|
62
|
+
color: "text/primary"
|
|
63
|
+
},
|
|
64
|
+
_hover: {
|
|
65
|
+
borderColor: "border/hover",
|
|
66
|
+
color: "text/primary"
|
|
67
|
+
},
|
|
68
|
+
_disabled: {
|
|
69
|
+
color: "text/disabled"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
contained: {
|
|
74
|
+
trigger: {
|
|
75
|
+
paddingBlockStart: o(10),
|
|
76
|
+
paddingBlockEnd: "12",
|
|
77
|
+
backgroundColor: "background/tertiary",
|
|
78
|
+
color: "text/secondary",
|
|
79
|
+
borderBlockStart: "2px solid transparent",
|
|
80
|
+
_hover: {
|
|
81
|
+
backgroundColor: "background/active"
|
|
82
|
+
},
|
|
83
|
+
_disabled: {
|
|
84
|
+
backgroundColor: "sys/neutral/moderate",
|
|
85
|
+
color: "text/on-disabled"
|
|
86
|
+
},
|
|
87
|
+
_selected: {
|
|
88
|
+
backgroundColor: "background/primary",
|
|
89
|
+
color: "text/selected",
|
|
90
|
+
_hover: {
|
|
91
|
+
backgroundColor: "background/primary"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
defaultVariants: {
|
|
99
|
+
variant: "line"
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
export {
|
|
103
|
+
a as default
|
|
104
|
+
};
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
declare const slotRecipes: {
|
|
2
|
+
emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "indicator" | "description", {
|
|
3
|
+
colorScheme: {
|
|
4
|
+
white: {
|
|
5
|
+
root: {
|
|
6
|
+
backgroundColor: "background/primary";
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
grey: {
|
|
10
|
+
root: {
|
|
11
|
+
backgroundColor: "background/secondary";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
2
16
|
field: import('@chakra-ui/react').SlotRecipeDefinition<"input" | "label" | "select" | "textarea" | "root" | "errorText" | "helperText" | "requiredIndicator", import('@chakra-ui/react').SlotRecipeVariantRecord<"input" | "label" | "select" | "textarea" | "root" | "errorText" | "helperText" | "requiredIndicator">>;
|
|
3
17
|
nativeSelect: import('@chakra-ui/react').SlotRecipeDefinition<"field" | "root" | "indicator", {
|
|
4
18
|
size: {
|
|
@@ -34,7 +48,7 @@ declare const slotRecipes: {
|
|
|
34
48
|
};
|
|
35
49
|
};
|
|
36
50
|
}>;
|
|
37
|
-
switch: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "
|
|
51
|
+
switch: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "control" | "thumb", {
|
|
38
52
|
size: {
|
|
39
53
|
sm: {
|
|
40
54
|
root: {
|
|
@@ -64,6 +78,59 @@ declare const slotRecipes: {
|
|
|
64
78
|
};
|
|
65
79
|
};
|
|
66
80
|
}>;
|
|
81
|
+
tabs: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "root" | "indicator" | "trigger" | "contentGroup", {
|
|
82
|
+
variant: {
|
|
83
|
+
line: {
|
|
84
|
+
list: {
|
|
85
|
+
borderBlockEnd: "1px solid";
|
|
86
|
+
borderColor: "border/regular";
|
|
87
|
+
};
|
|
88
|
+
trigger: {
|
|
89
|
+
bottom: "-1px";
|
|
90
|
+
display: "flex";
|
|
91
|
+
alignItems: "center";
|
|
92
|
+
gap: "8";
|
|
93
|
+
color: "text/secondary";
|
|
94
|
+
paddingBlockStart: "12";
|
|
95
|
+
paddingBlockEnd: string | number;
|
|
96
|
+
borderBlockEnd: "2px solid transparent";
|
|
97
|
+
_selected: {
|
|
98
|
+
color: "text/primary";
|
|
99
|
+
};
|
|
100
|
+
_hover: {
|
|
101
|
+
borderColor: "border/hover";
|
|
102
|
+
color: "text/primary";
|
|
103
|
+
};
|
|
104
|
+
_disabled: {
|
|
105
|
+
color: "text/disabled";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
contained: {
|
|
110
|
+
trigger: {
|
|
111
|
+
paddingBlockStart: string | number;
|
|
112
|
+
paddingBlockEnd: "12";
|
|
113
|
+
backgroundColor: "background/tertiary";
|
|
114
|
+
color: "text/secondary";
|
|
115
|
+
borderBlockStart: "2px solid transparent";
|
|
116
|
+
_hover: {
|
|
117
|
+
backgroundColor: "background/active";
|
|
118
|
+
};
|
|
119
|
+
_disabled: {
|
|
120
|
+
backgroundColor: "sys/neutral/moderate";
|
|
121
|
+
color: "text/on-disabled";
|
|
122
|
+
};
|
|
123
|
+
_selected: {
|
|
124
|
+
backgroundColor: "background/primary";
|
|
125
|
+
color: "text/selected";
|
|
126
|
+
_hover: {
|
|
127
|
+
backgroundColor: "background/primary";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
}>;
|
|
67
134
|
tooltip: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", import('@chakra-ui/react').SlotRecipeVariantRecord<"content" | "trigger" | "arrow" | "arrowTip" | "positioner">>;
|
|
68
135
|
};
|
|
69
136
|
export default slotRecipes;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import t from "./
|
|
2
|
-
import e from "./
|
|
3
|
-
import
|
|
4
|
-
import i from "./
|
|
5
|
-
import p from "./
|
|
1
|
+
import t from "./EmptyState.recipe.js";
|
|
2
|
+
import e from "./Field.recipe.js";
|
|
3
|
+
import o from "./NativeSelect.js";
|
|
4
|
+
import { numberInputSlotRecipe as i } from "./NumberInput.recipe.js";
|
|
5
|
+
import p from "./Switch.recipe.js";
|
|
6
|
+
import m from "./Tabs.recipe.js";
|
|
7
|
+
import r from "./Tooltip.recipe.js";
|
|
6
8
|
const n = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
emptyState: t,
|
|
10
|
+
field: e,
|
|
11
|
+
nativeSelect: o,
|
|
12
|
+
numberInput: i,
|
|
13
|
+
switch: p,
|
|
14
|
+
tabs: m,
|
|
15
|
+
tooltip: r
|
|
12
16
|
};
|
|
13
17
|
export {
|
|
14
18
|
n as default
|
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.67",
|
|
5
5
|
"description": "Bitrise Design System Components built with Chakra UI v3",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"react",
|
|
@@ -60,19 +60,19 @@
|
|
|
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.0.
|
|
64
|
-
"@storybook/react-vite": "10.0.
|
|
63
|
+
"@storybook/addon-docs": "10.0.8",
|
|
64
|
+
"@storybook/react-vite": "10.0.8",
|
|
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.6",
|
|
69
69
|
"@vitejs/plugin-react": "^5.1.1",
|
|
70
70
|
"axios": "^1.13.2",
|
|
71
|
-
"es-toolkit": "^1.
|
|
71
|
+
"es-toolkit": "^1.42.0",
|
|
72
72
|
"react-dom": "^19.2.0",
|
|
73
73
|
"react": "^19.2.0",
|
|
74
74
|
"release-it": "^19.0.6",
|
|
75
|
-
"storybook": "10.0.
|
|
75
|
+
"storybook": "10.0.8",
|
|
76
76
|
"tsx": "^4.20.6",
|
|
77
77
|
"typescript": "^5.9.3",
|
|
78
78
|
"vite-plugin-dts": "^4.5.4",
|