@bitrise/bitkit-v2 0.3.67 → 0.3.69
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/{DataDisplay/BitkitBadge → BitkitBadge}/BitkitBadge.d.ts +3 -0
- package/dist/components/BitkitToggle/components/BitkitToggleReadOnly.js +4 -4
- package/dist/theme/global-css.js +9 -9
- package/dist/theme/recipes/Badge.recipe.d.ts +5 -11
- package/dist/theme/recipes/Badge.recipe.js +11 -130
- package/dist/theme/recipes/Spinner.recipe.d.ts +4 -4
- package/dist/theme/recipes/Spinner.recipe.js +4 -4
- package/dist/theme/recipes/index.d.ts +9 -15
- package/dist/theme/semantic-tokens/semanticColors.js +1533 -5
- package/dist/theme/slot-recipes/Switch.recipe.js +3 -5
- package/dist/theme/slot-recipes/Tabs.recipe.js +8 -13
- package/dist/theme/tokens/colors.d.ts +1015 -1
- package/dist/theme/tokens/colors.js +564 -398
- package/dist/theme/tokens/index.d.ts +561 -1
- package/package.json +2 -2
- package/dist/theme/semantic-tokens/semanticColors.json.d.ts +0 -1531
- package/dist/theme/semantic-tokens/semanticColors.json.js +0 -29
- /package/dist/components/{DataDisplay/BitkitBadge → BitkitBadge}/BitkitBadge.js +0 -0
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { BadgeProps } from '@chakra-ui/react/badge';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { COLOR_PALETTES } from '../../theme/tokens/colors';
|
|
3
4
|
export type BitkitBadgeProps = {
|
|
5
|
+
colorPalette?: keyof typeof COLOR_PALETTES;
|
|
4
6
|
children?: string;
|
|
5
7
|
icon?: ReactNode;
|
|
6
8
|
} & Omit<BadgeProps, 'children'>;
|
|
7
9
|
declare const BitkitBadge: import('react').ForwardRefExoticComponent<{
|
|
10
|
+
colorPalette?: keyof typeof COLOR_PALETTES;
|
|
8
11
|
children?: string;
|
|
9
12
|
icon?: ReactNode;
|
|
10
13
|
} & Omit<BadgeProps, "children"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useSwitchContext as
|
|
3
|
-
import
|
|
2
|
+
import { useSwitchContext as i } from "@chakra-ui/react/switch";
|
|
3
|
+
import n from "../../BitkitBadge/BitkitBadge.js";
|
|
4
4
|
const d = ({ state: e, children: o }) => {
|
|
5
|
-
const { checked: r } =
|
|
6
|
-
return e === "readOnly" && r ? /* @__PURE__ */ t(
|
|
5
|
+
const { checked: r } = i();
|
|
6
|
+
return e === "readOnly" && r ? /* @__PURE__ */ t(n, { colorScheme: "green", variant: "subtle", children: "ON" }) : e === "readOnly" && !r ? /* @__PURE__ */ t(n, { colorScheme: "neutral", variant: "subtle", children: "OFF" }) : o;
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
d as default
|
package/dist/theme/global-css.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { defineGlobalStyles as o } from "@chakra-ui/react/styled-system";
|
|
2
|
-
|
|
2
|
+
import { rem as t } from "./themeUtils.js";
|
|
3
|
+
const s = o({
|
|
3
4
|
"*": {
|
|
4
5
|
"--global-font-mono": "fonts.mono",
|
|
5
|
-
"--global-font-body": "fonts.body"
|
|
6
|
+
"--global-font-body": "fonts.body",
|
|
7
|
+
"--focus-ring-width": t(3),
|
|
8
|
+
"--focus-ring-offset": "0",
|
|
9
|
+
"--focus-ring-style": "solid",
|
|
10
|
+
"--focus-ring-color": "colors.sys.purple.highlight"
|
|
6
11
|
},
|
|
7
12
|
body: {
|
|
8
13
|
color: "text/body",
|
|
@@ -10,14 +15,9 @@ const e = o({
|
|
|
10
15
|
},
|
|
11
16
|
"a, summary, button, input, textarea, select, [tabindex]:not([tabindex='-1'])": {
|
|
12
17
|
outline: "none",
|
|
13
|
-
|
|
14
|
-
outline: "3px",
|
|
15
|
-
outlineColor: "sys/interactive/highlight",
|
|
16
|
-
outlineOffset: "0",
|
|
17
|
-
outlineStyle: "solid"
|
|
18
|
-
}
|
|
18
|
+
focusVisibleRing: "outside"
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
s as default
|
|
23
23
|
};
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
declare const badgeRecipe: import('@chakra-ui/react').RecipeDefinition<{
|
|
2
2
|
variant: {
|
|
3
|
-
subtle: {
|
|
3
|
+
subtle: {
|
|
4
|
+
color: "colorPalette.strong";
|
|
5
|
+
background: "colorPalette.subtle";
|
|
6
|
+
};
|
|
4
7
|
bold: {
|
|
5
8
|
color: "text/on-color";
|
|
9
|
+
background: "colorPalette.bold";
|
|
6
10
|
};
|
|
7
11
|
};
|
|
8
|
-
colorScheme: {
|
|
9
|
-
neutral: {};
|
|
10
|
-
info: {};
|
|
11
|
-
positive: {};
|
|
12
|
-
negative: {};
|
|
13
|
-
warning: {};
|
|
14
|
-
progress: {};
|
|
15
|
-
orange: {};
|
|
16
|
-
turquoise: {};
|
|
17
|
-
};
|
|
18
12
|
}>;
|
|
19
13
|
export default badgeRecipe;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineRecipe as
|
|
2
|
-
const
|
|
1
|
+
import { defineRecipe as e } from "@chakra-ui/react/styled-system";
|
|
2
|
+
const a = e({
|
|
3
3
|
className: "badge",
|
|
4
4
|
base: {
|
|
5
5
|
display: "inline-flex",
|
|
@@ -11,146 +11,27 @@ const r = s({
|
|
|
11
11
|
},
|
|
12
12
|
variants: {
|
|
13
13
|
variant: {
|
|
14
|
-
subtle: {
|
|
14
|
+
subtle: {
|
|
15
|
+
color: "colorPalette.strong",
|
|
16
|
+
background: "colorPalette.subtle"
|
|
17
|
+
},
|
|
15
18
|
bold: {
|
|
16
|
-
color: "text/on-color"
|
|
19
|
+
color: "text/on-color",
|
|
20
|
+
background: "colorPalette.bold"
|
|
17
21
|
}
|
|
18
|
-
},
|
|
19
|
-
colorScheme: {
|
|
20
|
-
neutral: {},
|
|
21
|
-
info: {},
|
|
22
|
-
positive: {},
|
|
23
|
-
negative: {},
|
|
24
|
-
warning: {},
|
|
25
|
-
progress: {},
|
|
26
|
-
orange: {},
|
|
27
|
-
turquoise: {}
|
|
28
22
|
}
|
|
29
23
|
},
|
|
30
24
|
compoundVariants: [
|
|
31
25
|
{
|
|
32
|
-
|
|
33
|
-
variant: "subtle",
|
|
34
|
-
css: {
|
|
35
|
-
color: "sys/neutral/strong",
|
|
36
|
-
background: "sys/neutral/subtle"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
colorScheme: "info",
|
|
41
|
-
variant: "subtle",
|
|
42
|
-
css: {
|
|
43
|
-
color: "sys/info/strong",
|
|
44
|
-
background: "sys/info/subtle"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
colorScheme: "positive",
|
|
49
|
-
variant: "subtle",
|
|
50
|
-
css: {
|
|
51
|
-
color: "sys/success/strong",
|
|
52
|
-
background: "sys/success/subtle"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
colorScheme: "negative",
|
|
57
|
-
variant: "subtle",
|
|
58
|
-
css: {
|
|
59
|
-
color: "sys/critical/strong",
|
|
60
|
-
background: "sys/critical/subtle"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
colorScheme: "warning",
|
|
65
|
-
variant: "subtle",
|
|
66
|
-
css: {
|
|
67
|
-
color: "sys/warning/strong",
|
|
68
|
-
background: "sys/warning/subtle"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
colorScheme: "progress",
|
|
73
|
-
variant: "subtle",
|
|
74
|
-
css: {
|
|
75
|
-
color: "sys/interactive/strong",
|
|
76
|
-
background: "sys/interactive/subtle"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
colorScheme: "orange",
|
|
81
|
-
variant: "subtle",
|
|
82
|
-
css: {
|
|
83
|
-
color: "sys/orange/strong",
|
|
84
|
-
background: "sys/orange/subtle"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
colorScheme: "turquoise",
|
|
89
|
-
variant: "subtle",
|
|
90
|
-
css: {
|
|
91
|
-
color: "sys/turquoise/strong",
|
|
92
|
-
background: "sys/turquoise/subtle"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
colorScheme: "neutral",
|
|
97
|
-
variant: "bold",
|
|
98
|
-
css: {
|
|
99
|
-
background: "sys/neutral/bold"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
colorScheme: "info",
|
|
104
|
-
variant: "bold",
|
|
105
|
-
css: {
|
|
106
|
-
background: "sys/info/bold"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
colorScheme: "positive",
|
|
111
|
-
variant: "bold",
|
|
112
|
-
css: {
|
|
113
|
-
background: "sys/success/bold"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
colorScheme: "negative",
|
|
118
|
-
variant: "bold",
|
|
119
|
-
css: {
|
|
120
|
-
background: "sys/critical/bold"
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
colorScheme: "warning",
|
|
26
|
+
colorPalette: "yellow",
|
|
125
27
|
variant: "bold",
|
|
126
28
|
css: {
|
|
127
|
-
background: "sys/
|
|
29
|
+
background: "sys/yellow/muted",
|
|
128
30
|
color: "text/primary"
|
|
129
31
|
}
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
colorScheme: "progress",
|
|
133
|
-
variant: "bold",
|
|
134
|
-
css: {
|
|
135
|
-
background: "sys/interactive/bold"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
colorScheme: "orange",
|
|
140
|
-
variant: "bold",
|
|
141
|
-
css: {
|
|
142
|
-
background: "sys/orange/bold"
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
colorScheme: "turquoise",
|
|
147
|
-
variant: "bold",
|
|
148
|
-
css: {
|
|
149
|
-
background: "sys/turquoise/bold"
|
|
150
|
-
}
|
|
151
32
|
}
|
|
152
33
|
]
|
|
153
34
|
});
|
|
154
35
|
export {
|
|
155
|
-
|
|
36
|
+
a as default
|
|
156
37
|
};
|
|
@@ -9,16 +9,16 @@ declare const spinnerRecipe: import('@chakra-ui/react').RecipeDefinition<{
|
|
|
9
9
|
};
|
|
10
10
|
variant: {
|
|
11
11
|
primary: {
|
|
12
|
-
'--spinner-color': "colors.
|
|
12
|
+
'--spinner-color': "colors.purple.10";
|
|
13
13
|
};
|
|
14
14
|
purple: {
|
|
15
|
-
'--spinner-color': "colors.
|
|
15
|
+
'--spinner-color': "colors.purple.40";
|
|
16
16
|
};
|
|
17
17
|
white: {
|
|
18
|
-
'--spinner-color': "colors.
|
|
18
|
+
'--spinner-color': "colors.neutral.100";
|
|
19
19
|
};
|
|
20
20
|
'on-disabled': {
|
|
21
|
-
'--spinner-color': "colors.
|
|
21
|
+
'--spinner-color': "colors.neutral.70";
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
}>;
|
|
@@ -24,16 +24,16 @@ const i = r({
|
|
|
24
24
|
},
|
|
25
25
|
variant: {
|
|
26
26
|
primary: {
|
|
27
|
-
"--spinner-color": "colors.
|
|
27
|
+
"--spinner-color": "colors.purple.10"
|
|
28
28
|
},
|
|
29
29
|
purple: {
|
|
30
|
-
"--spinner-color": "colors.
|
|
30
|
+
"--spinner-color": "colors.purple.40"
|
|
31
31
|
},
|
|
32
32
|
white: {
|
|
33
|
-
"--spinner-color": "colors.
|
|
33
|
+
"--spinner-color": "colors.neutral.100"
|
|
34
34
|
},
|
|
35
35
|
"on-disabled": {
|
|
36
|
-
"--spinner-color": "colors.
|
|
36
|
+
"--spinner-color": "colors.neutral.70"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
},
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
declare const recipes: {
|
|
2
2
|
badge: import('@chakra-ui/react').RecipeDefinition<{
|
|
3
3
|
variant: {
|
|
4
|
-
subtle: {
|
|
4
|
+
subtle: {
|
|
5
|
+
color: "colorPalette.strong";
|
|
6
|
+
background: "colorPalette.subtle";
|
|
7
|
+
};
|
|
5
8
|
bold: {
|
|
6
9
|
color: "text/on-color";
|
|
10
|
+
background: "colorPalette.bold";
|
|
7
11
|
};
|
|
8
12
|
};
|
|
9
|
-
colorScheme: {
|
|
10
|
-
neutral: {};
|
|
11
|
-
info: {};
|
|
12
|
-
positive: {};
|
|
13
|
-
negative: {};
|
|
14
|
-
warning: {};
|
|
15
|
-
progress: {};
|
|
16
|
-
orange: {};
|
|
17
|
-
turquoise: {};
|
|
18
|
-
};
|
|
19
13
|
}>;
|
|
20
14
|
button: import('@chakra-ui/react').RecipeDefinition<{
|
|
21
15
|
variant: Record<string, import('@chakra-ui/react').SystemStyleObject>;
|
|
@@ -108,16 +102,16 @@ declare const recipes: {
|
|
|
108
102
|
};
|
|
109
103
|
variant: {
|
|
110
104
|
primary: {
|
|
111
|
-
'--spinner-color': "colors.
|
|
105
|
+
'--spinner-color': "colors.purple.10";
|
|
112
106
|
};
|
|
113
107
|
purple: {
|
|
114
|
-
'--spinner-color': "colors.
|
|
108
|
+
'--spinner-color': "colors.purple.40";
|
|
115
109
|
};
|
|
116
110
|
white: {
|
|
117
|
-
'--spinner-color': "colors.
|
|
111
|
+
'--spinner-color': "colors.neutral.100";
|
|
118
112
|
};
|
|
119
113
|
'on-disabled': {
|
|
120
|
-
'--spinner-color': "colors.
|
|
114
|
+
'--spinner-color': "colors.neutral.70";
|
|
121
115
|
};
|
|
122
116
|
};
|
|
123
117
|
}>;
|