@bitrise/bitkit 10.35.2-alpha-chakra.1 → 10.35.2-alpha-chakra.2
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrise/bitkit",
|
|
3
3
|
"description": "Bitrise React component library",
|
|
4
|
-
"version": "10.35.2-alpha-chakra.
|
|
4
|
+
"version": "10.35.2-alpha-chakra.2",
|
|
5
5
|
"repository": "git@github.com:bitrise-io/bitkit.git",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"license": "UNLICENSED",
|
|
@@ -125,7 +125,109 @@ const colors = {
|
|
|
125
125
|
},
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export type
|
|
128
|
+
export type TypeColors =
|
|
129
|
+
| 'neutral.10'
|
|
130
|
+
| 'neutral.20'
|
|
131
|
+
| 'neutral.30'
|
|
132
|
+
| 'neutral.40'
|
|
133
|
+
| 'neutral.50'
|
|
134
|
+
| 'neutral.60'
|
|
135
|
+
| 'neutral.70'
|
|
136
|
+
| 'neutral.80'
|
|
137
|
+
| 'neutral.90'
|
|
138
|
+
| 'neutral.93'
|
|
139
|
+
| 'neutral.95'
|
|
140
|
+
| 'neutral.100'
|
|
141
|
+
| 'purple.10'
|
|
142
|
+
| 'purple.20'
|
|
143
|
+
| 'purple.30'
|
|
144
|
+
| 'purple.40'
|
|
145
|
+
| 'purple.50'
|
|
146
|
+
| 'purple.60'
|
|
147
|
+
| 'purple.70'
|
|
148
|
+
| 'purple.80'
|
|
149
|
+
| 'purple.90'
|
|
150
|
+
| 'purple.93'
|
|
151
|
+
| 'purple.95'
|
|
152
|
+
| 'purple.100'
|
|
153
|
+
| 'red.10'
|
|
154
|
+
| 'red.20'
|
|
155
|
+
| 'red.30'
|
|
156
|
+
| 'red.40'
|
|
157
|
+
| 'red.50'
|
|
158
|
+
| 'red.60'
|
|
159
|
+
| 'red.70'
|
|
160
|
+
| 'red.80'
|
|
161
|
+
| 'red.90'
|
|
162
|
+
| 'red.93'
|
|
163
|
+
| 'red.95'
|
|
164
|
+
| 'red.100'
|
|
165
|
+
| 'orange.10'
|
|
166
|
+
| 'orange.20'
|
|
167
|
+
| 'orange.30'
|
|
168
|
+
| 'orange.40'
|
|
169
|
+
| 'orange.50'
|
|
170
|
+
| 'orange.60'
|
|
171
|
+
| 'orange.70'
|
|
172
|
+
| 'orange.80'
|
|
173
|
+
| 'orange.90'
|
|
174
|
+
| 'orange.93'
|
|
175
|
+
| 'orange.95'
|
|
176
|
+
| 'orange.100'
|
|
177
|
+
| 'yellow.10'
|
|
178
|
+
| 'yellow.20'
|
|
179
|
+
| 'yellow.30'
|
|
180
|
+
| 'yellow.40'
|
|
181
|
+
| 'yellow.50'
|
|
182
|
+
| 'yellow.60'
|
|
183
|
+
| 'yellow.70'
|
|
184
|
+
| 'yellow.80'
|
|
185
|
+
| 'yellow.90'
|
|
186
|
+
| 'yellow.93'
|
|
187
|
+
| 'yellow.95'
|
|
188
|
+
| 'yellow.100'
|
|
189
|
+
| 'green.10'
|
|
190
|
+
| 'green.20'
|
|
191
|
+
| 'green.30'
|
|
192
|
+
| 'green.40'
|
|
193
|
+
| 'green.50'
|
|
194
|
+
| 'green.60'
|
|
195
|
+
| 'green.70'
|
|
196
|
+
| 'green.80'
|
|
197
|
+
| 'green.90'
|
|
198
|
+
| 'green.93'
|
|
199
|
+
| 'green.95'
|
|
200
|
+
| 'green.100'
|
|
201
|
+
| 'turquoise.10'
|
|
202
|
+
| 'turquoise.20'
|
|
203
|
+
| 'turquoise.30'
|
|
204
|
+
| 'turquoise.40'
|
|
205
|
+
| 'turquoise.50'
|
|
206
|
+
| 'turquoise.60'
|
|
207
|
+
| 'turquoise.70'
|
|
208
|
+
| 'turquoise.80'
|
|
209
|
+
| 'turquoise.90'
|
|
210
|
+
| 'turquoise.93'
|
|
211
|
+
| 'turquoise.95'
|
|
212
|
+
| 'turquoise.100'
|
|
213
|
+
| 'blue.10'
|
|
214
|
+
| 'blue.20'
|
|
215
|
+
| 'blue.30'
|
|
216
|
+
| 'blue.40'
|
|
217
|
+
| 'blue.50'
|
|
218
|
+
| 'blue.60'
|
|
219
|
+
| 'blue.70'
|
|
220
|
+
| 'blue.80'
|
|
221
|
+
| 'blue.90'
|
|
222
|
+
| 'blue.93'
|
|
223
|
+
| 'blue.95'
|
|
224
|
+
| 'blue.100'
|
|
225
|
+
| 'brand.primary'
|
|
226
|
+
| 'text.body'
|
|
227
|
+
| 'text.secondary'
|
|
228
|
+
| 'text.link'
|
|
229
|
+
| 'text.linkHover'
|
|
230
|
+
| 'separator.primary';
|
|
129
231
|
|
|
130
232
|
export type ColorScheme = 'blue' | 'red' | 'green' | 'yellow' | 'purple' | 'neutral';
|
|
131
233
|
|
|
@@ -5,10 +5,10 @@ import Card from '../../Components/Card/Card';
|
|
|
5
5
|
import Divider from '../../Components/Divider/Divider';
|
|
6
6
|
import Provider from '../../Components/Provider/Provider';
|
|
7
7
|
import Text from '../../Components/Text/Text';
|
|
8
|
-
import colors
|
|
8
|
+
import colors from './Colors';
|
|
9
9
|
|
|
10
10
|
const paletteKeys = ['neutral', 'purple', 'red', 'orange', 'yellow', 'green', 'turquoise', 'blue'] as Array<
|
|
11
|
-
keyof
|
|
11
|
+
keyof typeof colors
|
|
12
12
|
>;
|
|
13
13
|
|
|
14
14
|
const getTextColorFromShade = (backgroundColor: string, darkColor = 'text.body', lightColor = 'neutral.100') => {
|
package/src/index.ts
CHANGED
|
@@ -3,8 +3,8 @@ export * from './utils/chakra';
|
|
|
3
3
|
export * from './hooks';
|
|
4
4
|
|
|
5
5
|
export { default as theme } from './theme';
|
|
6
|
-
export type {
|
|
7
|
-
export type {
|
|
6
|
+
export type { TypeColors } from './Foundations/Colors/Colors';
|
|
7
|
+
export type { TypeSizes } from './Foundations/Sizes/Sizes';
|
|
8
8
|
|
|
9
9
|
export type { LinkProps } from './Components/Link/Link';
|
|
10
10
|
export { default as Link } from './Components/Link/Link';
|