@bitrise/bitkit-v2 0.3.160 → 0.3.162

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 (52) hide show
  1. package/dist/components/BitkitActionMenu/BitkitActionMenu.d.ts +2 -2
  2. package/dist/components/BitkitCodeSnippet/BitkitCodeSnippet.d.ts +10 -0
  3. package/dist/components/BitkitCodeSnippet/BitkitCodeSnippet.js +82 -0
  4. package/dist/components/BitkitColorButton/BitkitColorButton.d.ts +5 -0
  5. package/dist/components/BitkitSplitButton/BitkitSplitButton.d.ts +27 -0
  6. package/dist/components/BitkitTabs/BitkitTabs.d.ts +16 -0
  7. package/dist/components/index.d.ts +1 -0
  8. package/dist/icons/IconArchive.d.ts +8 -0
  9. package/dist/icons/IconArchive.js +28 -0
  10. package/dist/icons/IconArchiveDelete.d.ts +8 -0
  11. package/dist/icons/IconArchiveDelete.js +28 -0
  12. package/dist/icons/IconArchiveRestore.d.ts +8 -0
  13. package/dist/icons/IconArchiveRestore.js +28 -0
  14. package/dist/icons/IconClaude.d.ts +8 -0
  15. package/dist/icons/IconClaude.js +28 -0
  16. package/dist/icons/IconClaudeColor.d.ts +8 -0
  17. package/dist/icons/IconClaudeColor.js +28 -0
  18. package/dist/icons/IconNextjs.d.ts +8 -0
  19. package/dist/icons/IconNextjs.js +28 -0
  20. package/dist/icons/IconPython.d.ts +8 -0
  21. package/dist/icons/IconPython.js +28 -0
  22. package/dist/icons/IconPythonColor.d.ts +8 -0
  23. package/dist/icons/IconPythonColor.js +28 -0
  24. package/dist/icons/IconTemplateCode.d.ts +8 -0
  25. package/dist/icons/IconTemplateCode.js +28 -0
  26. package/dist/icons/index.d.ts +9 -0
  27. package/dist/main.js +618 -598
  28. package/dist/svgs/16x16/icon-archive-16.js +21 -0
  29. package/dist/svgs/16x16/icon-archive-delete-16.js +21 -0
  30. package/dist/svgs/16x16/icon-archive-restore-16.js +21 -0
  31. package/dist/svgs/16x16/icon-claude-16.js +17 -0
  32. package/dist/svgs/16x16/icon-claude-color-16.js +17 -0
  33. package/dist/svgs/16x16/icon-nextjs-16.js +17 -0
  34. package/dist/svgs/16x16/icon-python-16.js +17 -0
  35. package/dist/svgs/16x16/icon-python-color-16.js +46 -0
  36. package/dist/svgs/16x16/icon-teams-color-16.js +3 -3
  37. package/dist/svgs/16x16/icon-template-code-16.js +17 -0
  38. package/dist/svgs/24x24/icon-archive-24.js +21 -0
  39. package/dist/svgs/24x24/icon-archive-delete-24.js +21 -0
  40. package/dist/svgs/24x24/icon-archive-restore-24.js +21 -0
  41. package/dist/svgs/24x24/icon-claude-24.js +17 -0
  42. package/dist/svgs/24x24/icon-claude-color-24.js +17 -0
  43. package/dist/svgs/24x24/icon-nextjs-24.js +17 -0
  44. package/dist/svgs/24x24/icon-python-24.js +17 -0
  45. package/dist/svgs/24x24/icon-python-color-24.js +46 -0
  46. package/dist/svgs/24x24/icon-teams-color-24.js +1 -1
  47. package/dist/svgs/24x24/icon-template-code-24.js +17 -0
  48. package/dist/theme/slot-recipes/CodeSnippet.recipe.d.ts +153 -0
  49. package/dist/theme/slot-recipes/CodeSnippet.recipe.js +218 -0
  50. package/dist/theme/slot-recipes/index.d.ts +152 -0
  51. package/dist/theme/slot-recipes/index.js +44 -42
  52. package/package.json +5 -5
@@ -0,0 +1,218 @@
1
+ import { defineSlotRecipe as o } from "@chakra-ui/react/styled-system";
2
+ var t = o({
3
+ className: "code-snippet",
4
+ slots: [
5
+ "root",
6
+ "content",
7
+ "copyButton",
8
+ "showMoreContainer",
9
+ "showMoreGradient",
10
+ "showMoreButton"
11
+ ],
12
+ base: {
13
+ root: { background: "background/secondary" },
14
+ content: {
15
+ flex: "1",
16
+ minWidth: 0
17
+ },
18
+ copyButton: {
19
+ background: "background/secondary",
20
+ color: "icon/secondary",
21
+ cursor: "pointer",
22
+ _hover: {
23
+ background: "background/hover",
24
+ color: "icon/primary",
25
+ _active: {
26
+ background: "background/active",
27
+ color: "icon/primary"
28
+ }
29
+ },
30
+ _active: {
31
+ background: "background/active",
32
+ color: "icon/primary"
33
+ },
34
+ _focusVisible: { outlineOffset: "-3px" }
35
+ }
36
+ },
37
+ variants: {
38
+ variant: {
39
+ inline: { root: {
40
+ alignItems: "center",
41
+ borderRadius: "2",
42
+ color: "text/body",
43
+ cursor: "pointer",
44
+ display: "inline-flex",
45
+ paddingBlock: "2",
46
+ paddingInline: "6",
47
+ userSelect: "none",
48
+ whiteSpace: "nowrap",
49
+ _hover: { background: "background/hover" },
50
+ _active: { background: "background/active" }
51
+ } },
52
+ single: {
53
+ root: {
54
+ alignItems: "center",
55
+ borderRadius: "4",
56
+ display: "flex",
57
+ height: "40",
58
+ isolation: "isolate",
59
+ overflow: "hidden",
60
+ whiteSpace: "nowrap"
61
+ },
62
+ content: {
63
+ alignItems: "center",
64
+ display: "flex",
65
+ height: "40",
66
+ overflow: "hidden",
67
+ paddingInlineStart: "16",
68
+ position: "relative",
69
+ _after: {
70
+ background: "linear-gradient(to left, var(--colors-background-secondary), transparent)",
71
+ content: '""',
72
+ height: "40",
73
+ pointerEvents: "none",
74
+ position: "absolute",
75
+ right: "0",
76
+ top: "0",
77
+ width: "8"
78
+ }
79
+ },
80
+ copyButton: {
81
+ flexShrink: "0",
82
+ padding: "12"
83
+ }
84
+ },
85
+ multi: {
86
+ root: {
87
+ borderRadius: "4",
88
+ display: "flex",
89
+ flexDirection: "column",
90
+ padding: "16",
91
+ position: "relative"
92
+ },
93
+ content: {
94
+ color: "text/body",
95
+ overflowY: "auto",
96
+ transition: "max-height 0.3s ease",
97
+ whiteSpace: "pre-wrap"
98
+ },
99
+ copyButton: {
100
+ borderRadius: "4",
101
+ overflow: "hidden",
102
+ padding: "8",
103
+ position: "absolute",
104
+ right: 0,
105
+ top: 0
106
+ },
107
+ showMoreContainer: {
108
+ alignItems: "center",
109
+ display: "flex",
110
+ justifyContent: "flex-end"
111
+ },
112
+ showMoreGradient: {
113
+ background: "linear-gradient(to top, var(--colors-background-secondary) 33%, transparent)",
114
+ borderBottomRadius: "4",
115
+ bottom: 0,
116
+ height: "40",
117
+ left: 0,
118
+ pointerEvents: "none",
119
+ position: "absolute",
120
+ right: 0
121
+ },
122
+ showMoreButton: {
123
+ alignItems: "center",
124
+ background: "background/secondary",
125
+ borderRadius: "4",
126
+ color: "text/secondary",
127
+ cursor: "pointer",
128
+ display: "flex",
129
+ gap: "4",
130
+ justifyContent: "center",
131
+ minWidth: "64",
132
+ paddingBlock: "8",
133
+ paddingInline: "12",
134
+ position: "relative",
135
+ textStyle: "comp/button/md",
136
+ _hover: {
137
+ background: "background/hover",
138
+ color: "text/primary",
139
+ _active: {
140
+ background: "background/active",
141
+ color: "text/primary",
142
+ overflow: "hidden"
143
+ }
144
+ },
145
+ _active: {
146
+ background: "background/active",
147
+ color: "text/primary",
148
+ overflow: "hidden"
149
+ },
150
+ _focusVisible: { outlineOffset: "-3px" }
151
+ }
152
+ }
153
+ },
154
+ size: {
155
+ md: {
156
+ root: { textStyle: "code/md" },
157
+ content: { textStyle: "code/md" }
158
+ },
159
+ lg: {
160
+ root: { textStyle: "code/lg" },
161
+ content: { textStyle: "code/lg" }
162
+ }
163
+ },
164
+ hasShowMore: {
165
+ true: {},
166
+ false: {}
167
+ },
168
+ isExpanded: {
169
+ true: {},
170
+ false: {}
171
+ }
172
+ },
173
+ compoundVariants: [
174
+ {
175
+ variant: "multi",
176
+ hasShowMore: !0,
177
+ css: { root: {
178
+ paddingBlockEnd: 0,
179
+ paddingInlineEnd: "8"
180
+ } }
181
+ },
182
+ {
183
+ variant: "multi",
184
+ hasShowMore: !0,
185
+ isExpanded: !1,
186
+ css: { showMoreContainer: {
187
+ bottom: 0,
188
+ left: 0,
189
+ position: "absolute",
190
+ right: 0
191
+ } }
192
+ },
193
+ {
194
+ variant: "multi",
195
+ hasShowMore: !0,
196
+ isExpanded: !0,
197
+ css: {
198
+ root: {
199
+ padding: 0,
200
+ paddingInlineEnd: 0
201
+ },
202
+ content: {
203
+ overflow: "auto",
204
+ padding: "16",
205
+ paddingBlockEnd: 0
206
+ },
207
+ showMoreContainer: { position: "relative" }
208
+ }
209
+ }
210
+ ],
211
+ defaultVariants: {
212
+ size: "lg",
213
+ variant: "single"
214
+ }
215
+ });
216
+ export {
217
+ t as default
218
+ };
@@ -313,6 +313,158 @@ declare const slotRecipes: {
313
313
  };
314
314
  };
315
315
  }>;
316
+ codeSnippet: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "root" | "copyButton" | "showMoreContainer" | "showMoreGradient" | "showMoreButton", {
317
+ variant: {
318
+ inline: {
319
+ root: {
320
+ alignItems: "center";
321
+ borderRadius: "2";
322
+ color: "text/body";
323
+ cursor: "pointer";
324
+ display: "inline-flex";
325
+ paddingBlock: "2";
326
+ paddingInline: "6";
327
+ userSelect: "none";
328
+ whiteSpace: "nowrap";
329
+ _hover: {
330
+ background: "background/hover";
331
+ };
332
+ _active: {
333
+ background: "background/active";
334
+ };
335
+ };
336
+ };
337
+ single: {
338
+ root: {
339
+ alignItems: "center";
340
+ borderRadius: "4";
341
+ display: "flex";
342
+ height: "40";
343
+ isolation: "isolate";
344
+ overflow: "hidden";
345
+ whiteSpace: "nowrap";
346
+ };
347
+ content: {
348
+ alignItems: "center";
349
+ display: "flex";
350
+ height: "40";
351
+ overflow: "hidden";
352
+ paddingInlineStart: "16";
353
+ position: "relative";
354
+ _after: {
355
+ background: "linear-gradient(to left, var(--colors-background-secondary), transparent)";
356
+ content: "\"\"";
357
+ height: "40";
358
+ pointerEvents: "none";
359
+ position: "absolute";
360
+ right: "0";
361
+ top: "0";
362
+ width: "8";
363
+ };
364
+ };
365
+ copyButton: {
366
+ flexShrink: "0";
367
+ padding: "12";
368
+ };
369
+ };
370
+ multi: {
371
+ root: {
372
+ borderRadius: "4";
373
+ display: "flex";
374
+ flexDirection: "column";
375
+ padding: "16";
376
+ position: "relative";
377
+ };
378
+ content: {
379
+ color: "text/body";
380
+ overflowY: "auto";
381
+ transition: "max-height 0.3s ease";
382
+ whiteSpace: "pre-wrap";
383
+ };
384
+ copyButton: {
385
+ borderRadius: "4";
386
+ overflow: "hidden";
387
+ padding: "8";
388
+ position: "absolute";
389
+ right: number;
390
+ top: number;
391
+ };
392
+ showMoreContainer: {
393
+ alignItems: "center";
394
+ display: "flex";
395
+ justifyContent: "flex-end";
396
+ };
397
+ showMoreGradient: {
398
+ background: "linear-gradient(to top, var(--colors-background-secondary) 33%, transparent)";
399
+ borderBottomRadius: "4";
400
+ bottom: number;
401
+ height: "40";
402
+ left: number;
403
+ pointerEvents: "none";
404
+ position: "absolute";
405
+ right: number;
406
+ };
407
+ showMoreButton: {
408
+ alignItems: "center";
409
+ background: "background/secondary";
410
+ borderRadius: "4";
411
+ color: "text/secondary";
412
+ cursor: "pointer";
413
+ display: "flex";
414
+ gap: "4";
415
+ justifyContent: "center";
416
+ minWidth: "64";
417
+ paddingBlock: "8";
418
+ paddingInline: "12";
419
+ position: "relative";
420
+ textStyle: "comp/button/md";
421
+ _hover: {
422
+ background: "background/hover";
423
+ color: "text/primary";
424
+ _active: {
425
+ background: "background/active";
426
+ color: "text/primary";
427
+ overflow: "hidden";
428
+ };
429
+ };
430
+ _active: {
431
+ background: "background/active";
432
+ color: "text/primary";
433
+ overflow: "hidden";
434
+ };
435
+ _focusVisible: {
436
+ outlineOffset: "-3px";
437
+ };
438
+ };
439
+ };
440
+ };
441
+ size: {
442
+ md: {
443
+ root: {
444
+ textStyle: "code/md";
445
+ };
446
+ content: {
447
+ textStyle: "code/md";
448
+ };
449
+ };
450
+ lg: {
451
+ root: {
452
+ textStyle: "code/lg";
453
+ };
454
+ content: {
455
+ textStyle: "code/lg";
456
+ };
457
+ };
458
+ };
459
+ hasShowMore: {
460
+ true: {};
461
+ false: {};
462
+ };
463
+ isExpanded: {
464
+ true: {};
465
+ false: {};
466
+ };
467
+ }>;
316
468
  combobox: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "input" | "label" | "root" | "item" | "itemIndicator" | "trigger" | "positioner" | "list" | "clearTrigger" | "control" | "itemText" | "itemGroup" | "itemGroupLabel" | "indicatorGroup" | "empty" | "emptyHelperText", {
317
469
  size: {
318
470
  md: {
@@ -1,59 +1,61 @@
1
- import o from "./NumberInput.recipe.js";
2
- import e from "./Accordion.recipe.js";
1
+ import e from "./NumberInput.recipe.js";
2
+ import o from "./Accordion.recipe.js";
3
3
  import t from "./ActionBar.recipe.js";
4
4
  import r from "./Alert.recipe.js";
5
5
  import i from "./Avatar.recipe.js";
6
6
  import p from "./Breadcrumb.recipe.js";
7
7
  import m from "./Card.recipe.js";
8
8
  import c from "./Checkbox.recipe.js";
9
- import l from "./Combobox.recipe.js";
10
- import a from "./DatePicker.recipe.js";
11
- import { selectSlotRecipe as S } from "./Select.recipe.js";
12
- import f from "./DatePickerSelect.recipe.js";
13
- import R from "./Dialog.recipe.js";
14
- import d from "./EmptyState.recipe.js";
9
+ import l from "./CodeSnippet.recipe.js";
10
+ import a from "./Combobox.recipe.js";
11
+ import S from "./DatePicker.recipe.js";
12
+ import { selectSlotRecipe as f } from "./Select.recipe.js";
13
+ import R from "./DatePickerSelect.recipe.js";
14
+ import d from "./Dialog.recipe.js";
15
+ import n from "./EmptyState.recipe.js";
15
16
  import b from "./ExpandableCard.recipe.js";
16
- import n from "./Field.recipe.js";
17
- import s from "./Fieldset.recipe.js";
18
- import u from "./Menu.recipe.js";
19
- import x from "./NativeSelect.recipe.js";
20
- import g from "./RadioGroup.recipe.js";
21
- import k from "./SegmentGroup.recipe.js";
22
- import v from "./SplitButton.recipe.js";
23
- import h from "./Switch.recipe.js";
24
- import B from "./Table.recipe.js";
25
- import G from "./Tabs.recipe.js";
26
- import P from "./Tag.recipe.js";
27
- import w from "./Tooltip.recipe.js";
28
- var oo = {
29
- accordion: e,
17
+ import s from "./Field.recipe.js";
18
+ import u from "./Fieldset.recipe.js";
19
+ import x from "./Menu.recipe.js";
20
+ import g from "./NativeSelect.recipe.js";
21
+ import k from "./RadioGroup.recipe.js";
22
+ import v from "./SegmentGroup.recipe.js";
23
+ import h from "./SplitButton.recipe.js";
24
+ import B from "./Switch.recipe.js";
25
+ import G from "./Table.recipe.js";
26
+ import P from "./Tabs.recipe.js";
27
+ import w from "./Tag.recipe.js";
28
+ import y from "./Tooltip.recipe.js";
29
+ var te = {
30
+ accordion: o,
30
31
  actionBar: t,
31
32
  alert: r,
32
33
  avatar: i,
33
34
  breadcrumb: p,
34
35
  card: m,
35
36
  checkbox: c,
36
- combobox: l,
37
- datePicker: a,
38
- datePickerSelect: f,
39
- dialog: R,
40
- emptyState: d,
37
+ codeSnippet: l,
38
+ combobox: a,
39
+ datePicker: S,
40
+ datePickerSelect: R,
41
+ dialog: d,
42
+ emptyState: n,
41
43
  expandableCard: b,
42
- field: n,
43
- fieldset: s,
44
- menu: u,
45
- nativeSelect: x,
46
- numberInput: o,
47
- radioGroup: g,
48
- segmentGroup: k,
49
- select: S,
50
- splitButton: v,
51
- switch: h,
52
- table: B,
53
- tabs: G,
54
- tag: P,
55
- tooltip: w
44
+ field: s,
45
+ fieldset: u,
46
+ menu: x,
47
+ nativeSelect: g,
48
+ numberInput: e,
49
+ radioGroup: k,
50
+ segmentGroup: v,
51
+ select: f,
52
+ splitButton: h,
53
+ switch: B,
54
+ table: G,
55
+ tabs: P,
56
+ tag: w,
57
+ tooltip: y
56
58
  };
57
59
  export {
58
- oo as default
60
+ te as default
59
61
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.160",
4
+ "version": "0.3.162",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",
@@ -64,11 +64,11 @@
64
64
  "@storybook/addon-mcp": "^0.4.2",
65
65
  "@storybook/react-vite": "10.3.3",
66
66
  "@svgr/plugin-jsx": "^8.1.0",
67
- "@types/node": "^24.12.0",
67
+ "@types/node": "^25.5.0",
68
68
  "@types/react": "^19.2.14",
69
69
  "@types/react-dom": "^19.2.3",
70
70
  "@vitejs/plugin-react": "^6.0.1",
71
- "axios": "^1.13.6",
71
+ "axios": "^1.14.0",
72
72
  "es-toolkit": "^1.45.1",
73
73
  "react": "^19.2.4",
74
74
  "react-dom": "^19.2.4",
@@ -76,9 +76,9 @@
76
76
  "storybook": "10.3.3",
77
77
  "tsx": "^4.21.0",
78
78
  "typescript": "^6.0.2",
79
- "vite": "^8.0.2",
79
+ "vite": "^8.0.3",
80
80
  "vite-plugin-dts": "^4.5.4",
81
- "vite-plugin-svgr": "^4.5.0"
81
+ "vite-plugin-svgr": "^5.0.0"
82
82
  },
83
83
  "dependencies": {
84
84
  "@chakra-ui/react": "^3.34.0",