@bitrise/bitkit-v2 0.3.252-beta.1706 → 0.3.252
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/AGENTS.md +1 -0
- package/dist/components/BitkitActionBar/BitkitActionBar.js +1 -1
- package/dist/components/BitkitActionBar/BitkitActionBar.js.map +1 -1
- package/dist/components/BitkitAlert/BitkitAlert.js +2 -2
- package/dist/components/BitkitAlert/BitkitAlert.js.map +1 -1
- package/dist/components/BitkitAvatar/BitkitAvatar.d.ts +4 -3
- package/dist/components/BitkitAvatar/BitkitAvatar.js +6 -4
- package/dist/components/BitkitAvatar/BitkitAvatar.js.map +1 -1
- package/dist/components/BitkitBadge/BitkitBadge.d.ts +5 -2
- package/dist/components/BitkitBadge/BitkitBadge.js.map +1 -1
- package/dist/components/BitkitCloseButton/BitkitCloseButton.d.ts +1 -1
- package/dist/components/BitkitCloseButton/BitkitCloseButton.js +3 -6
- package/dist/components/BitkitCloseButton/BitkitCloseButton.js.map +1 -1
- package/dist/components/BitkitColorButton/BitkitColorButton.d.ts +1 -1
- package/dist/components/BitkitColorButton/BitkitColorButton.js.map +1 -1
- package/dist/components/BitkitLabel/BitkitLabel.js +1 -1
- package/dist/components/BitkitLabel/BitkitLabel.js.map +1 -1
- package/dist/components/BitkitList/BitkitList.d.ts +1 -1
- package/dist/components/BitkitList/BitkitList.js +6 -6
- package/dist/components/BitkitList/BitkitList.js.map +1 -1
- package/dist/components/BitkitMarkdown/BitkitMarkdown.js +1 -1
- package/dist/components/BitkitMarkdown/BitkitMarkdown.js.map +1 -1
- package/dist/components/BitkitMultiselect/BitkitMultiselect.js +3 -3
- package/dist/components/BitkitMultiselect/BitkitMultiselect.js.map +1 -1
- package/dist/components/BitkitPageFooter/BitkitPageFooter.d.ts +2 -2
- package/dist/components/BitkitPageFooter/BitkitPageFooter.js +7 -7
- package/dist/components/BitkitPageFooter/BitkitPageFooter.js.map +1 -1
- package/dist/components/BitkitRadio/BitkitRadio.js +1 -1
- package/dist/components/BitkitRadio/BitkitRadio.js.map +1 -1
- package/dist/components/BitkitRibbon/BitkitRibbon.d.ts +1 -1
- package/dist/components/BitkitRibbon/BitkitRibbon.js +6 -4
- package/dist/components/BitkitRibbon/BitkitRibbon.js.map +1 -1
- package/dist/components/BitkitSearchInput/BitkitSearchInput.js +1 -1
- package/dist/components/BitkitSearchInput/BitkitSearchInput.js.map +1 -1
- package/dist/components/BitkitSwitch/components/BitkitSwitchReadOnly.js +2 -2
- package/dist/components/BitkitSwitch/components/BitkitSwitchReadOnly.js.map +1 -1
- package/dist/components/BitkitTable/BitkitSortableColumnHeader.js +1 -1
- package/dist/components/BitkitTable/BitkitSortableColumnHeader.js.map +1 -1
- package/dist/components/BitkitTag/BitkitTag.js +1 -1
- package/dist/components/BitkitTag/BitkitTag.js.map +1 -1
- package/dist/components/BitkitToast/BitkitToaster.js +2 -2
- package/dist/components/BitkitToast/BitkitToaster.js.map +1 -1
- package/dist/components/BitkitTooltip/BitkitTooltip.js +1 -1
- package/dist/components/BitkitTooltip/BitkitTooltip.js.map +1 -1
- package/dist/components/common/notificationMaps.d.ts +1 -8
- package/dist/components/common/notificationMaps.js.map +1 -1
- package/dist/docs/shared.d.ts +1 -1
- package/dist/theme/common/AlertAndToast.common.js +1 -1
- package/dist/theme/common/AlertAndToast.common.js.map +1 -1
- package/dist/theme/global-css.js +1 -1
- package/dist/theme/global-css.js.map +1 -1
- package/dist/theme/recipes/Badge.recipe.d.ts +5 -39
- package/dist/theme/recipes/Badge.recipe.js +20 -77
- package/dist/theme/recipes/Badge.recipe.js.map +1 -1
- package/dist/theme/recipes/Button.recipe.js +12 -12
- package/dist/theme/recipes/Button.recipe.js.map +1 -1
- package/dist/theme/recipes/CloseButton.recipe.d.ts +0 -68
- package/dist/theme/recipes/CloseButton.recipe.js +17 -56
- package/dist/theme/recipes/CloseButton.recipe.js.map +1 -1
- package/dist/theme/recipes/ColorButton.recipe.d.ts +0 -93
- package/dist/theme/recipes/ColorButton.recipe.js +30 -75
- package/dist/theme/recipes/ColorButton.recipe.js.map +1 -1
- package/dist/theme/recipes/DefinitionTooltip.recipe.js +2 -2
- package/dist/theme/recipes/DefinitionTooltip.recipe.js.map +1 -1
- package/dist/theme/recipes/Link.recipe.d.ts +1 -1
- package/dist/theme/recipes/Link.recipe.js +1 -1
- package/dist/theme/recipes/Link.recipe.js.map +1 -1
- package/dist/theme/recipes/Separator.recipe.js +1 -1
- package/dist/theme/recipes/Separator.recipe.js.map +1 -1
- package/dist/theme/recipes/Skeleton.recipe.js +2 -2
- package/dist/theme/recipes/Skeleton.recipe.js.map +1 -1
- package/dist/theme/recipes/index.d.ts +6 -201
- package/dist/theme/semantic-tokens/index.d.ts +1 -1772
- package/dist/theme/semantic-tokens/semanticColors.d.ts +1 -1772
- package/dist/theme/semantic-tokens/semanticColors.js +472 -356
- package/dist/theme/semantic-tokens/semanticColors.js.map +1 -1
- package/dist/theme/slot-recipes/Avatar.recipe.d.ts +0 -56
- package/dist/theme/slot-recipes/Avatar.recipe.js +3 -40
- package/dist/theme/slot-recipes/Avatar.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Collapsible.recipe.js +1 -1
- package/dist/theme/slot-recipes/Collapsible.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Dialog.recipe.js +1 -1
- package/dist/theme/slot-recipes/Dialog.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Drawer.recipe.js +2 -2
- package/dist/theme/slot-recipes/Drawer.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/EmptyState.recipe.d.ts +2 -2
- package/dist/theme/slot-recipes/EmptyState.recipe.js +3 -3
- package/dist/theme/slot-recipes/EmptyState.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/MarkdownCard.recipe.d.ts +3 -3
- package/dist/theme/slot-recipes/MarkdownCard.recipe.js +4 -4
- package/dist/theme/slot-recipes/MarkdownCard.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/NoteCard.recipe.d.ts +2 -2
- package/dist/theme/slot-recipes/NoteCard.recipe.js +8 -8
- package/dist/theme/slot-recipes/NoteCard.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/OverflowContent.recipe.js +1 -1
- package/dist/theme/slot-recipes/OverflowContent.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/PageFooter.recipe.d.ts +4 -4
- package/dist/theme/slot-recipes/PageFooter.recipe.js +5 -5
- package/dist/theme/slot-recipes/PageFooter.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Ribbon.recipe.d.ts +1 -39
- package/dist/theme/slot-recipes/Ribbon.recipe.js +5 -29
- package/dist/theme/slot-recipes/Ribbon.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Tabs.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/Tabs.recipe.js +1 -1
- package/dist/theme/slot-recipes/Tabs.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Tag.recipe.d.ts +0 -44
- package/dist/theme/slot-recipes/Tag.recipe.js +7 -38
- package/dist/theme/slot-recipes/Tag.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/TagsInput.recipe.js +5 -5
- package/dist/theme/slot-recipes/TagsInput.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Tooltip.recipe.d.ts +2 -2
- package/dist/theme/slot-recipes/Tooltip.recipe.js +3 -3
- package/dist/theme/slot-recipes/Tooltip.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/index.d.ts +15 -153
- package/dist/theme/slot-recipes/index.js +1 -1
- package/dist/theme/tokens/colors.d.ts +845 -3
- package/dist/theme/tokens/colors.js +137 -22
- package/dist/theme/tokens/colors.js.map +1 -1
- package/dist/theme/tokens/index.d.ts +312 -15
- package/dist/theme/tokens/index.js +1 -1
- package/package.json +5 -6
- package/scripts/postinstall.cjs +0 -8
- package/scripts/prune-color-tokens.cjs +0 -78
|
@@ -14,38 +14,140 @@ declare const tokens: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
colors: {
|
|
17
|
+
brand: {
|
|
18
|
+
purple: {
|
|
19
|
+
darkest: {
|
|
20
|
+
value: string;
|
|
21
|
+
};
|
|
22
|
+
dark: {
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
mid: {
|
|
26
|
+
value: string;
|
|
27
|
+
};
|
|
28
|
+
light: {
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
lightest: {
|
|
32
|
+
value: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
blue: {
|
|
36
|
+
dark: {
|
|
37
|
+
value: string;
|
|
38
|
+
};
|
|
39
|
+
mid: {
|
|
40
|
+
value: string;
|
|
41
|
+
};
|
|
42
|
+
light: {
|
|
43
|
+
value: string;
|
|
44
|
+
};
|
|
45
|
+
lightest: {
|
|
46
|
+
value: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
teal: {
|
|
50
|
+
dark: {
|
|
51
|
+
value: string;
|
|
52
|
+
};
|
|
53
|
+
mid: {
|
|
54
|
+
value: string;
|
|
55
|
+
};
|
|
56
|
+
light: {
|
|
57
|
+
value: string;
|
|
58
|
+
};
|
|
59
|
+
lightest: {
|
|
60
|
+
value: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
green: {
|
|
64
|
+
dark: {
|
|
65
|
+
value: string;
|
|
66
|
+
};
|
|
67
|
+
mid: {
|
|
68
|
+
value: string;
|
|
69
|
+
};
|
|
70
|
+
light: {
|
|
71
|
+
value: string;
|
|
72
|
+
};
|
|
73
|
+
lightest: {
|
|
74
|
+
value: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
yellow: {
|
|
78
|
+
mid: {
|
|
79
|
+
value: string;
|
|
80
|
+
};
|
|
81
|
+
light: {
|
|
82
|
+
value: string;
|
|
83
|
+
};
|
|
84
|
+
lightest: {
|
|
85
|
+
value: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
orange: {
|
|
89
|
+
dark: {
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
92
|
+
mid: {
|
|
93
|
+
value: string;
|
|
94
|
+
};
|
|
95
|
+
light: {
|
|
96
|
+
value: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
red: {
|
|
100
|
+
dark: {
|
|
101
|
+
value: string;
|
|
102
|
+
};
|
|
103
|
+
mid: {
|
|
104
|
+
value: string;
|
|
105
|
+
};
|
|
106
|
+
light: {
|
|
107
|
+
value: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
neutral: {
|
|
111
|
+
black: {
|
|
112
|
+
value: string;
|
|
113
|
+
};
|
|
114
|
+
dark: {
|
|
115
|
+
value: string;
|
|
116
|
+
};
|
|
117
|
+
light: {
|
|
118
|
+
value: string;
|
|
119
|
+
};
|
|
120
|
+
white: {
|
|
121
|
+
value: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
17
125
|
white: {
|
|
18
|
-
|
|
126
|
+
a0: {
|
|
19
127
|
value: string;
|
|
20
128
|
};
|
|
21
|
-
|
|
129
|
+
a10: {
|
|
22
130
|
value: string;
|
|
23
131
|
};
|
|
24
|
-
|
|
132
|
+
a15: {
|
|
25
133
|
value: string;
|
|
26
134
|
};
|
|
27
|
-
|
|
135
|
+
a20: {
|
|
28
136
|
value: string;
|
|
29
137
|
};
|
|
30
|
-
|
|
138
|
+
a30: {
|
|
31
139
|
value: string;
|
|
32
140
|
};
|
|
33
|
-
|
|
141
|
+
a50: {
|
|
34
142
|
value: string;
|
|
35
143
|
};
|
|
36
|
-
|
|
144
|
+
a80: {
|
|
37
145
|
value: string;
|
|
38
146
|
};
|
|
39
|
-
|
|
147
|
+
a90: {
|
|
40
148
|
value: string;
|
|
41
149
|
};
|
|
42
|
-
|
|
43
|
-
value: string;
|
|
44
|
-
};
|
|
45
|
-
'90': {
|
|
46
|
-
value: string;
|
|
47
|
-
};
|
|
48
|
-
'100': {
|
|
150
|
+
a100: {
|
|
49
151
|
value: string;
|
|
50
152
|
};
|
|
51
153
|
};
|
|
@@ -86,6 +188,27 @@ declare const tokens: {
|
|
|
86
188
|
'100': {
|
|
87
189
|
value: string;
|
|
88
190
|
};
|
|
191
|
+
base: {
|
|
192
|
+
value: string;
|
|
193
|
+
};
|
|
194
|
+
bold: {
|
|
195
|
+
value: string;
|
|
196
|
+
};
|
|
197
|
+
minimal: {
|
|
198
|
+
value: string;
|
|
199
|
+
};
|
|
200
|
+
moderate: {
|
|
201
|
+
value: string;
|
|
202
|
+
};
|
|
203
|
+
muted: {
|
|
204
|
+
value: string;
|
|
205
|
+
};
|
|
206
|
+
strong: {
|
|
207
|
+
value: string;
|
|
208
|
+
};
|
|
209
|
+
subtle: {
|
|
210
|
+
value: string;
|
|
211
|
+
};
|
|
89
212
|
};
|
|
90
213
|
purple: {
|
|
91
214
|
'10': {
|
|
@@ -121,6 +244,27 @@ declare const tokens: {
|
|
|
121
244
|
'95': {
|
|
122
245
|
value: string;
|
|
123
246
|
};
|
|
247
|
+
base: {
|
|
248
|
+
value: string;
|
|
249
|
+
};
|
|
250
|
+
bold: {
|
|
251
|
+
value: string;
|
|
252
|
+
};
|
|
253
|
+
minimal: {
|
|
254
|
+
value: string;
|
|
255
|
+
};
|
|
256
|
+
moderate: {
|
|
257
|
+
value: string;
|
|
258
|
+
};
|
|
259
|
+
muted: {
|
|
260
|
+
value: string;
|
|
261
|
+
};
|
|
262
|
+
strong: {
|
|
263
|
+
value: string;
|
|
264
|
+
};
|
|
265
|
+
subtle: {
|
|
266
|
+
value: string;
|
|
267
|
+
};
|
|
124
268
|
};
|
|
125
269
|
indigo: {
|
|
126
270
|
'10': {
|
|
@@ -156,6 +300,33 @@ declare const tokens: {
|
|
|
156
300
|
'95': {
|
|
157
301
|
value: string;
|
|
158
302
|
};
|
|
303
|
+
base: {
|
|
304
|
+
value: string;
|
|
305
|
+
};
|
|
306
|
+
bold: {
|
|
307
|
+
value: string;
|
|
308
|
+
};
|
|
309
|
+
dark: {
|
|
310
|
+
value: string;
|
|
311
|
+
};
|
|
312
|
+
emphasized: {
|
|
313
|
+
value: string;
|
|
314
|
+
};
|
|
315
|
+
minimal: {
|
|
316
|
+
value: string;
|
|
317
|
+
};
|
|
318
|
+
moderate: {
|
|
319
|
+
value: string;
|
|
320
|
+
};
|
|
321
|
+
muted: {
|
|
322
|
+
value: string;
|
|
323
|
+
};
|
|
324
|
+
strong: {
|
|
325
|
+
value: string;
|
|
326
|
+
};
|
|
327
|
+
subtle: {
|
|
328
|
+
value: string;
|
|
329
|
+
};
|
|
159
330
|
};
|
|
160
331
|
red: {
|
|
161
332
|
'10': {
|
|
@@ -191,6 +362,27 @@ declare const tokens: {
|
|
|
191
362
|
'95': {
|
|
192
363
|
value: string;
|
|
193
364
|
};
|
|
365
|
+
base: {
|
|
366
|
+
value: string;
|
|
367
|
+
};
|
|
368
|
+
bold: {
|
|
369
|
+
value: string;
|
|
370
|
+
};
|
|
371
|
+
minimal: {
|
|
372
|
+
value: string;
|
|
373
|
+
};
|
|
374
|
+
moderate: {
|
|
375
|
+
value: string;
|
|
376
|
+
};
|
|
377
|
+
muted: {
|
|
378
|
+
value: string;
|
|
379
|
+
};
|
|
380
|
+
strong: {
|
|
381
|
+
value: string;
|
|
382
|
+
};
|
|
383
|
+
subtle: {
|
|
384
|
+
value: string;
|
|
385
|
+
};
|
|
194
386
|
};
|
|
195
387
|
orange: {
|
|
196
388
|
'10': {
|
|
@@ -226,6 +418,27 @@ declare const tokens: {
|
|
|
226
418
|
'95': {
|
|
227
419
|
value: string;
|
|
228
420
|
};
|
|
421
|
+
base: {
|
|
422
|
+
value: string;
|
|
423
|
+
};
|
|
424
|
+
bold: {
|
|
425
|
+
value: string;
|
|
426
|
+
};
|
|
427
|
+
minimal: {
|
|
428
|
+
value: string;
|
|
429
|
+
};
|
|
430
|
+
moderate: {
|
|
431
|
+
value: string;
|
|
432
|
+
};
|
|
433
|
+
muted: {
|
|
434
|
+
value: string;
|
|
435
|
+
};
|
|
436
|
+
strong: {
|
|
437
|
+
value: string;
|
|
438
|
+
};
|
|
439
|
+
subtle: {
|
|
440
|
+
value: string;
|
|
441
|
+
};
|
|
229
442
|
};
|
|
230
443
|
yellow: {
|
|
231
444
|
'10': {
|
|
@@ -261,6 +474,27 @@ declare const tokens: {
|
|
|
261
474
|
'95': {
|
|
262
475
|
value: string;
|
|
263
476
|
};
|
|
477
|
+
base: {
|
|
478
|
+
value: string;
|
|
479
|
+
};
|
|
480
|
+
bold: {
|
|
481
|
+
value: string;
|
|
482
|
+
};
|
|
483
|
+
minimal: {
|
|
484
|
+
value: string;
|
|
485
|
+
};
|
|
486
|
+
moderate: {
|
|
487
|
+
value: string;
|
|
488
|
+
};
|
|
489
|
+
muted: {
|
|
490
|
+
value: string;
|
|
491
|
+
};
|
|
492
|
+
strong: {
|
|
493
|
+
value: string;
|
|
494
|
+
};
|
|
495
|
+
subtle: {
|
|
496
|
+
value: string;
|
|
497
|
+
};
|
|
264
498
|
};
|
|
265
499
|
green: {
|
|
266
500
|
'10': {
|
|
@@ -296,6 +530,27 @@ declare const tokens: {
|
|
|
296
530
|
'95': {
|
|
297
531
|
value: string;
|
|
298
532
|
};
|
|
533
|
+
base: {
|
|
534
|
+
value: string;
|
|
535
|
+
};
|
|
536
|
+
bold: {
|
|
537
|
+
value: string;
|
|
538
|
+
};
|
|
539
|
+
minimal: {
|
|
540
|
+
value: string;
|
|
541
|
+
};
|
|
542
|
+
moderate: {
|
|
543
|
+
value: string;
|
|
544
|
+
};
|
|
545
|
+
muted: {
|
|
546
|
+
value: string;
|
|
547
|
+
};
|
|
548
|
+
strong: {
|
|
549
|
+
value: string;
|
|
550
|
+
};
|
|
551
|
+
subtle: {
|
|
552
|
+
value: string;
|
|
553
|
+
};
|
|
299
554
|
};
|
|
300
555
|
turquoise: {
|
|
301
556
|
'10': {
|
|
@@ -331,6 +586,27 @@ declare const tokens: {
|
|
|
331
586
|
'95': {
|
|
332
587
|
value: string;
|
|
333
588
|
};
|
|
589
|
+
base: {
|
|
590
|
+
value: string;
|
|
591
|
+
};
|
|
592
|
+
bold: {
|
|
593
|
+
value: string;
|
|
594
|
+
};
|
|
595
|
+
minimal: {
|
|
596
|
+
value: string;
|
|
597
|
+
};
|
|
598
|
+
moderate: {
|
|
599
|
+
value: string;
|
|
600
|
+
};
|
|
601
|
+
muted: {
|
|
602
|
+
value: string;
|
|
603
|
+
};
|
|
604
|
+
strong: {
|
|
605
|
+
value: string;
|
|
606
|
+
};
|
|
607
|
+
subtle: {
|
|
608
|
+
value: string;
|
|
609
|
+
};
|
|
334
610
|
};
|
|
335
611
|
blue: {
|
|
336
612
|
'10': {
|
|
@@ -366,6 +642,27 @@ declare const tokens: {
|
|
|
366
642
|
'95': {
|
|
367
643
|
value: string;
|
|
368
644
|
};
|
|
645
|
+
base: {
|
|
646
|
+
value: string;
|
|
647
|
+
};
|
|
648
|
+
bold: {
|
|
649
|
+
value: string;
|
|
650
|
+
};
|
|
651
|
+
minimal: {
|
|
652
|
+
value: string;
|
|
653
|
+
};
|
|
654
|
+
moderate: {
|
|
655
|
+
value: string;
|
|
656
|
+
};
|
|
657
|
+
muted: {
|
|
658
|
+
value: string;
|
|
659
|
+
};
|
|
660
|
+
strong: {
|
|
661
|
+
value: string;
|
|
662
|
+
};
|
|
663
|
+
subtle: {
|
|
664
|
+
value: string;
|
|
665
|
+
};
|
|
369
666
|
};
|
|
370
667
|
};
|
|
371
668
|
durations: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrise/bitkit-v2",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.252
|
|
4
|
+
"version": "0.3.252",
|
|
5
5
|
"description": "Bitrise Design System Components built with Chakra UI V3",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"react",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"dist",
|
|
16
16
|
"docs",
|
|
17
17
|
"scripts/postinstall.cjs",
|
|
18
|
-
"scripts/prune-color-tokens.cjs",
|
|
19
18
|
"AGENTS.md",
|
|
20
19
|
"README.md",
|
|
21
20
|
"package.json"
|
|
@@ -41,7 +40,7 @@
|
|
|
41
40
|
"build": "vite build",
|
|
42
41
|
"storybook": "storybook dev -p 6006",
|
|
43
42
|
"build-storybook": "storybook build",
|
|
44
|
-
"theme:generate-types": "chakra typegen lib/theme/index.ts
|
|
43
|
+
"theme:generate-types": "chakra typegen lib/theme/index.ts",
|
|
45
44
|
"theme:watch": "chakra typegen lib/theme/index.ts --watch",
|
|
46
45
|
"lint": "eslint .",
|
|
47
46
|
"lint:fix": "eslint . --fix",
|
|
@@ -75,10 +74,10 @@
|
|
|
75
74
|
"@figma-export/output-components-as-svg": "^6.4.0",
|
|
76
75
|
"@figma-export/transform-svg-with-svgo": "^6.4.0",
|
|
77
76
|
"@google-cloud/storage": "^7.21.0",
|
|
78
|
-
"@storybook/addon-docs": "^10.4.
|
|
77
|
+
"@storybook/addon-docs": "^10.4.2",
|
|
79
78
|
"@storybook/addon-mcp": "^0.6.0",
|
|
80
79
|
"@storybook/mcp": "^0.7.0",
|
|
81
|
-
"@storybook/react-vite": "^10.4.
|
|
80
|
+
"@storybook/react-vite": "^10.4.2",
|
|
82
81
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
83
82
|
"@types/node": "^24.13.1",
|
|
84
83
|
"@types/react": "^18.3.31",
|
|
@@ -87,7 +86,7 @@
|
|
|
87
86
|
"react": "^18.3.1",
|
|
88
87
|
"react-dom": "^18.3.1",
|
|
89
88
|
"release-it": "^20.2.0",
|
|
90
|
-
"storybook": "^10.4.
|
|
89
|
+
"storybook": "^10.4.2",
|
|
91
90
|
"tsx": "^4.22.4",
|
|
92
91
|
"typescript": "^6.0.3",
|
|
93
92
|
"vite": "^8.0.16",
|
package/scripts/postinstall.cjs
CHANGED
|
@@ -33,14 +33,6 @@ if (result.status !== 0) {
|
|
|
33
33
|
'[@bitrise/bitkit-v2] Chakra typegen failed — bitkit-specific theme types are unavailable. ' +
|
|
34
34
|
'You can retry manually with `npx chakra typegen node_modules/@bitrise/bitkit-v2/dist/theme/index.js`.',
|
|
35
35
|
);
|
|
36
|
-
process.exit(0);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Trim internal color tokens (sys/*, primitives) from style-prop autocomplete.
|
|
40
|
-
try {
|
|
41
|
-
require('./prune-color-tokens.cjs');
|
|
42
|
-
} catch (error) {
|
|
43
|
-
console.warn(`[@bitrise/bitkit-v2] Color-token prune skipped: ${error.message}`);
|
|
44
36
|
}
|
|
45
37
|
|
|
46
38
|
process.exit(0);
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Post-processes the Chakra-generated `token.gen.d.ts` to keep the color-token
|
|
5
|
-
* autocomplete focused on usable tokens.
|
|
6
|
-
*
|
|
7
|
-
* Bitkit registers three layers of color tokens, but only one should be offered
|
|
8
|
-
* in style-prop autocomplete (`color`, `background`, …):
|
|
9
|
-
* - core/primitive palette (`red.50`, `white.10`, …) -> internal, hide
|
|
10
|
-
* - `sys/*` system layer -> internal, hide
|
|
11
|
-
* - everything else (`color/*`, `background/*`, …) -> keep
|
|
12
|
-
*
|
|
13
|
-
* The tokens still exist and resolve at runtime (references, recipes); we only
|
|
14
|
-
* trim the `ColorsToken` union that drives editor suggestions. `strictTokens`
|
|
15
|
-
* is off, so hidden tokens are not errors if used directly — just not suggested.
|
|
16
|
-
*
|
|
17
|
-
* Runs after `chakra typegen` (locally via `theme:generate-types`, and in
|
|
18
|
-
* consumer repos via this package's postinstall). Idempotent.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
const { existsSync, readFileSync, writeFileSync } = require('node:fs');
|
|
22
|
-
const { dirname, resolve } = require('node:path');
|
|
23
|
-
|
|
24
|
-
const PRIMITIVE_SCALES = ['white', 'neutral', 'purple', 'indigo', 'red', 'orange', 'yellow', 'green', 'turquoise', 'blue'];
|
|
25
|
-
const PRIMITIVE_DOT = new RegExp(`^(${PRIMITIVE_SCALES.join('|')})\\.`);
|
|
26
|
-
|
|
27
|
-
const isHidden = (token) => token.startsWith('sys/') || PRIMITIVE_DOT.test(token);
|
|
28
|
-
|
|
29
|
-
function resolveTokenGenPath() {
|
|
30
|
-
try {
|
|
31
|
-
const pkg = require.resolve('@chakra-ui/react/package.json');
|
|
32
|
-
return resolve(dirname(pkg), 'dist/types/styled-system/generated/token.gen.d.ts');
|
|
33
|
-
} catch {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function prune() {
|
|
39
|
-
const filePath = resolveTokenGenPath();
|
|
40
|
-
if (!filePath || !existsSync(filePath)) {
|
|
41
|
-
console.warn('[@bitrise/bitkit-v2] token.gen.d.ts not found — skipping color-token prune.');
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const lines = readFileSync(filePath, 'utf8').split('\n');
|
|
46
|
-
let inColorsToken = false;
|
|
47
|
-
let dropped = 0;
|
|
48
|
-
const out = [];
|
|
49
|
-
|
|
50
|
-
for (const line of lines) {
|
|
51
|
-
if (line.startsWith('export type ColorsToken')) {
|
|
52
|
-
inColorsToken = true;
|
|
53
|
-
out.push(line);
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
if (inColorsToken) {
|
|
57
|
-
// Allow an optional trailing `;` so the final union member is matched too,
|
|
58
|
-
// regardless of how the generator terminates the type.
|
|
59
|
-
const match = line.match(/^\s*\|\s*"(.+)"\s*;?\s*$/);
|
|
60
|
-
if (match) {
|
|
61
|
-
if (isHidden(match[1])) {
|
|
62
|
-
dropped += 1;
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
out.push(line);
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
// First line that is not a union member ends the ColorsToken block.
|
|
69
|
-
inColorsToken = false;
|
|
70
|
-
}
|
|
71
|
-
out.push(line);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
writeFileSync(filePath, out.join('\n'));
|
|
75
|
-
console.log(`[@bitrise/bitkit-v2] Pruned ${dropped} internal color tokens (sys/*, primitives) from autocomplete.`);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
prune();
|