@bitrise/bitkit 12.72.13-0 → 12.73.1

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.
Files changed (41) hide show
  1. package/README.md +6 -6
  2. package/package.json +45 -44
  3. package/src/Components/ColorButton/ColorButton.theme.ts +1 -1
  4. package/src/Components/ColorButton/ColorButton.tsx +1 -1
  5. package/src/Components/Form/Input/Input.tsx +1 -1
  6. package/src/Components/Icons/16x16/ArrowDown.tsx +3 -1
  7. package/src/Components/Icons/16x16/{BackArrow.tsx → ArrowLeft.tsx} +2 -2
  8. package/src/Components/Icons/16x16/ArrowMoveDown.tsx +12 -0
  9. package/src/Components/Icons/16x16/{ArrowBack.tsx → ArrowMoveLeft.tsx} +2 -2
  10. package/src/Components/Icons/16x16/{ArrowForward.tsx → ArrowMoveRight.tsx} +2 -2
  11. package/src/Components/Icons/16x16/ArrowMoveUp.tsx +14 -0
  12. package/src/Components/Icons/16x16/ArrowRight.tsx +14 -0
  13. package/src/Components/Icons/16x16/ArrowUp.tsx +2 -2
  14. package/src/Components/Icons/16x16/index.ts +7 -4
  15. package/src/Components/Icons/24x24/ArrowDown.tsx +3 -1
  16. package/src/Components/Icons/24x24/{BackArrow.tsx → ArrowLeft.tsx} +2 -2
  17. package/src/Components/Icons/24x24/ArrowMoveDown.tsx +12 -0
  18. package/src/Components/Icons/24x24/{ArrowBack.tsx → ArrowMoveLeft.tsx} +2 -2
  19. package/src/Components/Icons/24x24/{ArrowForward.tsx → ArrowMoveRight.tsx} +2 -2
  20. package/src/Components/Icons/24x24/ArrowMoveUp.tsx +14 -0
  21. package/src/Components/Icons/24x24/ArrowRight.tsx +14 -0
  22. package/src/Components/Icons/24x24/ArrowUp.tsx +1 -1
  23. package/src/Components/Icons/24x24/index.ts +7 -4
  24. package/src/Components/Menu/MenuItem.tsx +1 -1
  25. package/src/Components/Notification/Notification.tsx +1 -1
  26. package/src/Components/Ribbon/Ribbon.tsx +1 -1
  27. package/src/Components/Select/Select.tsx +1 -1
  28. package/src/Components/Table/Table.theme.ts +1 -1
  29. package/src/Components/Tabs/ContainedTab.tsx +1 -1
  30. package/src/Components/Tag/Tag.tsx +1 -1
  31. package/src/Foundations/Colors/Colors.tsx +20 -0
  32. package/src/Foundations/Colors/SystemTokens.tsx +26 -0
  33. package/src/Foundations/Icons/figmaIcons.ts +8 -8
  34. package/src/Foundations/Themes/Alert.theme.ts +1 -1
  35. package/src/Foundations/docComponents/TokenTable.tsx +64 -0
  36. package/src/index.ts +1 -1
  37. package/src/theme.ts +2 -1
  38. package/src/tokens/tokens.json +3285 -0
  39. package/src/tokens/tokens.ts +57 -0
  40. package/tsconfig.json +2 -2
  41. package/src/Foundations/Colors/Colors.ts +0 -151
@@ -0,0 +1,57 @@
1
+ import tokensJson from './tokens.json';
2
+
3
+ const paletteColors: any = {
4
+ ...tokensJson.core.color.pal,
5
+ };
6
+
7
+ Object.keys(paletteColors).forEach((color) => {
8
+ Object.entries(paletteColors[color]).forEach(([shade, { value }]: any) => {
9
+ paletteColors[color][shade] = value;
10
+ });
11
+ });
12
+
13
+ export const colors = {
14
+ ...paletteColors,
15
+ pal: paletteColors,
16
+ brand: {
17
+ primary: '#5C2A7E', // purple.30
18
+ },
19
+ text: {
20
+ body: '#201B22', // neutral.10
21
+ secondary: '#6B6071', // neutral.40
22
+ link: '#9247C2', // purple.50
23
+ linkHover: '#5C2A7E', // purple.30
24
+ },
25
+ separator: {
26
+ primary: '#DFDAE1', // neutral.90,
27
+ },
28
+ };
29
+
30
+ export type TypeColors = `${
31
+ | 'neutral'
32
+ | 'purple'
33
+ | 'red'
34
+ | 'orange'
35
+ | 'yellow'
36
+ | 'green'
37
+ | 'turquoise'
38
+ | 'purple'
39
+ | 'blue'}.${'10' | '20' | '30' | '40' | '50' | '60' | '70' | '80' | '90' | '93' | '95' | '100'}`;
40
+
41
+ export type ColorScheme = 'blue' | 'red' | 'orange' | 'yellow' | 'green' | 'purple' | 'neutral';
42
+
43
+ const sysColors: any = {
44
+ ...tokensJson.system.color.sys,
45
+ };
46
+
47
+ Object.keys(sysColors).forEach((color) => {
48
+ Object.entries(sysColors[color]).forEach(([shade, { value }]: any) => {
49
+ sysColors[color][shade] = value.replace(/\{color\.pal\.(.*)\}/, '$1');
50
+ });
51
+ });
52
+
53
+ export const semanticTokens = {
54
+ colors: {
55
+ sys: sysColors,
56
+ },
57
+ };
package/tsconfig.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "skipLibCheck": true,
19
19
  "sourceMap": true,
20
20
  "strict": true,
21
- "target": "es5",
21
+ "target": "esnext",
22
22
  },
23
- "include": ["./src/**/*", "./spec/jest.setup.ts"],
23
+ "include": ["./src/**/*", "./spec/jest.setup.ts", "./src/tokens/tokens.json"],
24
24
  }
@@ -1,151 +0,0 @@
1
- const colors = {
2
- neutral: {
3
- 100: '#FFFFFF',
4
- 95: '#F6F4F6',
5
- 93: '#EFEBEF',
6
- 90: '#DFDAE1',
7
- 80: '#C9C1CD',
8
- 70: '#AFA4B4',
9
- 60: '#94879B',
10
- 50: '#7D7184',
11
- 40: '#6B6071',
12
- 30: '#49404F',
13
- 20: '#362D39',
14
- 10: '#201B22',
15
- },
16
- purple: {
17
- 100: '#FFFFFF',
18
- 95: '#F9F2FD',
19
- 93: '#F3E7F9',
20
- 90: '#EAD4F2',
21
- 80: '#D5ADEB',
22
- 70: '#C289E6',
23
- 60: '#AE63DE',
24
- 50: '#9247C2',
25
- 40: '#7B3BA5',
26
- 30: '#5C2A7E',
27
- 20: '#421560',
28
- 10: '#2B0E3F',
29
- },
30
- red: {
31
- 100: '#FFFFFF',
32
- 95: '#FFF0F3',
33
- 93: '#FFE5EB',
34
- 90: '#FFCCD5',
35
- 80: '#FFA8B5',
36
- 70: '#FF8091',
37
- 60: '#F7596C',
38
- 50: '#D72D40',
39
- 40: '#A91E2E',
40
- 30: '#78111C',
41
- 20: '#630811',
42
- 10: '#47060C',
43
- },
44
- orange: {
45
- 100: '#FFFFFF',
46
- 95: '#FFF4E5',
47
- 93: '#FFE9CF',
48
- 90: '#FFD5A3',
49
- 80: '#FFB766',
50
- 70: '#FD9730',
51
- 60: '#ED720C',
52
- 50: '#D45202',
53
- 40: '#A33500',
54
- 30: '#7A2200',
55
- 20: '#661900',
56
- 10: '#421000',
57
- },
58
- yellow: {
59
- 100: '#FFFFFF',
60
- 95: '#FFF6D1',
61
- 93: '#FFEFAD',
62
- 90: '#FBE074',
63
- 80: '#F9CC15',
64
- 70: '#EBBA00',
65
- 60: '#D6A200',
66
- 50: '#B27E00',
67
- 40: '#875B00',
68
- 30: '#613E00',
69
- 20: '#4D2F00',
70
- 10: '#2E1C00',
71
- },
72
- green: {
73
- 100: '#FFFFFF',
74
- 95: '#EEF9F1',
75
- 93: '#E1F4E7',
76
- 90: '#C3EACE',
77
- 80: '#A1DEB2',
78
- 70: '#77CF8F',
79
- 60: '#4EB76C',
80
- 50: '#2A9D4C',
81
- 40: '#167231',
82
- 30: '#0B5620',
83
- 20: '#064217',
84
- 10: '#042A0F',
85
- },
86
- turquoise: {
87
- 100: '#FFFFFF',
88
- 95: '#E9FBF9',
89
- 93: '#D8F8F4',
90
- 90: '#AEEFE8',
91
- 80: '#8AE0D7',
92
- 70: '#55CEC3',
93
- 60: '#11BBA9',
94
- 50: '#009E8E',
95
- 40: '#007366',
96
- 30: '#005248',
97
- 20: '#003D36',
98
- 10: '#002924',
99
- },
100
- blue: {
101
- 100: '#FFFFFF',
102
- 95: '#ECF8FD',
103
- 93: '#DEF2FC',
104
- 90: '#C2E7FA',
105
- 80: '#99D1F5',
106
- 70: '#71B8EF',
107
- 60: '#4F9BDE',
108
- 50: '#2582D0',
109
- 40: '#1066AC',
110
- 30: '#044781',
111
- 20: '#00315C',
112
- 10: '#002442',
113
- },
114
- brand: {
115
- primary: '#5C2A7E', // purple.30
116
- },
117
- text: {
118
- body: '#201B22', // neutral.10
119
- secondary: '#6B6071', // neutral.40
120
- link: '#9247C2', // purple.50
121
- linkHover: '#5C2A7E', // purple.30
122
- },
123
- separator: {
124
- primary: '#DFDAE1', // neutral.90,
125
- },
126
- };
127
-
128
- export type TypeColors =
129
- | `${'neutral' | 'purple' | 'red' | 'orange' | 'yellow' | 'green' | 'turquoise' | 'purple' | 'blue'}.${
130
- | '10'
131
- | '20'
132
- | '30'
133
- | '40'
134
- | '50'
135
- | '60'
136
- | '70'
137
- | '80'
138
- | '90'
139
- | '93'
140
- | '95'
141
- | '100'}`
142
- | 'brand.primary'
143
- | 'text.body'
144
- | 'text.secondary'
145
- | 'text.link'
146
- | 'text.linkHover'
147
- | 'separator.primary';
148
-
149
- export type ColorScheme = 'blue' | 'red' | 'orange' | 'yellow' | 'green' | 'purple' | 'neutral';
150
-
151
- export default colors;