@bitrise/bitkit-v2 0.3.161 → 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.
@@ -0,0 +1,10 @@
1
+ export interface BitkitCodeSnippetProps {
2
+ children: string;
3
+ disableTooltip?: boolean;
4
+ size?: 'md' | 'lg';
5
+ startingHeight?: number;
6
+ textToCopy?: string;
7
+ variant: 'inline' | 'multi' | 'single';
8
+ }
9
+ declare const BitkitCodeSnippet: import('react').ForwardRefExoticComponent<BitkitCodeSnippetProps & import('react').RefAttributes<HTMLElement>>;
10
+ export default BitkitCodeSnippet;
@@ -0,0 +1,82 @@
1
+ import g from "../../utilities/AssetSelectChevron.js";
2
+ import w from "../../icons/IconCheck.js";
3
+ import I from "../../icons/IconCopy.js";
4
+ import h from "../BitkitTooltip/BitkitTooltip.js";
5
+ import { chakra as e, useSlotRecipe as B } from "@chakra-ui/react/styled-system";
6
+ import { forwardRef as T, useCallback as M, useState as E } from "react";
7
+ import { jsx as o, jsxs as r } from "react/jsx-runtime";
8
+ import { useClipboard as z } from "@ark-ui/react/clipboard";
9
+ var c = "Copy to clipboard", H = T((x, d) => {
10
+ const { children: s, disableTooltip: f, size: C = "lg", startingHeight: m, textToCopy: b, variant: a } = x, l = m !== void 0, [i, k] = E(!1), { copied: v, copy: p } = z({
11
+ timeout: 2e3,
12
+ value: b ?? s
13
+ }), t = B({ key: "codeSnippet" })({
14
+ size: C,
15
+ variant: a,
16
+ hasShowMore: l,
17
+ isExpanded: i
18
+ }), y = M(() => {
19
+ k((n) => !n);
20
+ }, []), u = /* @__PURE__ */ o(e.button, {
21
+ onClick: p,
22
+ "aria-label": c,
23
+ css: t.copyButton,
24
+ children: v ? /* @__PURE__ */ o(w, { size: "16" }) : /* @__PURE__ */ o(I, { size: "16" })
25
+ });
26
+ if (a === "inline") return /* @__PURE__ */ o(h, {
27
+ disabled: f,
28
+ text: c,
29
+ children: /* @__PURE__ */ o(e.code, {
30
+ ref: d,
31
+ css: t.root,
32
+ onClick: p,
33
+ onKeyDown: (n) => {
34
+ (n.key === "Enter" || n.key === " ") && (n.preventDefault(), p());
35
+ },
36
+ role: "button",
37
+ tabIndex: 0,
38
+ children: s
39
+ })
40
+ });
41
+ if (a === "single") return /* @__PURE__ */ r(e.div, {
42
+ ref: d,
43
+ css: t.root,
44
+ children: [/* @__PURE__ */ o(e.code, {
45
+ css: t.content,
46
+ tabIndex: -1,
47
+ children: s
48
+ }), /* @__PURE__ */ o(h, {
49
+ text: c,
50
+ children: u
51
+ })]
52
+ });
53
+ const S = l && !i ? m : void 0;
54
+ return /* @__PURE__ */ r(e.div, {
55
+ ref: d,
56
+ css: t.root,
57
+ children: [
58
+ /* @__PURE__ */ o(e.code, {
59
+ css: t.content,
60
+ maxHeight: S,
61
+ tabIndex: -1,
62
+ children: s
63
+ }),
64
+ /* @__PURE__ */ o(h, {
65
+ text: c,
66
+ children: u
67
+ }),
68
+ l && /* @__PURE__ */ r(e.div, {
69
+ css: t.showMoreContainer,
70
+ children: [!i && /* @__PURE__ */ o(e.div, { css: t.showMoreGradient }), /* @__PURE__ */ r(e.button, {
71
+ onClick: y,
72
+ css: t.showMoreButton,
73
+ children: [i ? "Show less" : "Show more", /* @__PURE__ */ o(g, { "data-state": i ? "open" : "closed" })]
74
+ })]
75
+ })
76
+ ]
77
+ });
78
+ });
79
+ H.displayName = "BitkitCodeSnippet";
80
+ export {
81
+ H as default
82
+ };
@@ -9,6 +9,7 @@ export { default as BitkitCard } from './BitkitCard/BitkitCard';
9
9
  export { default as BitkitCheckbox, type BitkitCheckboxProps } from './BitkitCheckbox/BitkitCheckbox';
10
10
  export { default as BitkitCheckboxGroup, type BitkitCheckboxGroupProps, } from './BitkitCheckboxGroup/BitkitCheckboxGroup';
11
11
  export { default as BitkitCloseButton, type BitkitCloseButtonProps } from './BitkitCloseButton/BitkitCloseButton';
12
+ export { default as BitkitCodeSnippet, type BitkitCodeSnippetProps } from './BitkitCodeSnippet/BitkitCodeSnippet';
12
13
  export { default as BitkitColorButton, type BitkitColorButtonProps } from './BitkitColorButton/BitkitColorButton';
13
14
  export { default as BitkitCombobox, type BitkitComboboxProps } from './BitkitCombobox/BitkitCombobox';
14
15
  export { default as BitkitControlButton, type BitkitControlButtonProps, } from './BitkitControlButton/BitkitControlButton';
package/dist/main.js CHANGED
@@ -291,33 +291,34 @@ import je from "./components/BitkitCalendar/BitkitCalendar.js";
291
291
  import Je from "./components/BitkitCard/BitkitCard.js";
292
292
  import Ke from "./components/BitkitCheckbox/BitkitCheckbox.js";
293
293
  import Xe from "./components/BitkitCheckboxGroup/BitkitCheckboxGroup.js";
294
- import Ye from "./components/BitkitField/BitkitField.js";
295
- import qe from "./components/BitkitCombobox/BitkitCombobox.js";
296
- import oI from "./components/BitkitControlButton/BitkitControlButton.js";
297
- import mI from "./components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.js";
298
- import tI from "./components/BitkitDialog/BitkitDialogBody.js";
299
- import pI from "./components/BitkitDialog/BitkitDialogContent.js";
300
- import fI from "./components/BitkitDialog/BitkitDialogRoot.js";
301
- import II from "./components/BitkitDialog/BitkitDialog.js";
302
- import aI from "./components/BitkitEmptyState/BitkitEmptyState.js";
303
- import dI from "./components/BitkitExpandableCard/BitkitExpandableCard.js";
304
- import BI from "./components/BitkitIconButton/BitkitIconButton.js";
305
- import uI from "./components/BitkitInteractiveTooltip/BitkitInteractiveTooltip.js";
306
- import hI from "./components/BitkitLink/BitkitLink.js";
307
- import bI from "./components/BitkitLinkButton/BitkitLinkButton.js";
308
- import SI from "./components/BitkitNativeSelect/BitkitNativeSelect.js";
309
- import FI from "./components/BitkitNumberInput/BitkitNumberInput.js";
310
- import vI from "./components/BitkitRadio/BitkitRadio.js";
311
- import yI from "./components/BitkitRadioGroup/BitkitRadioGroup.js";
312
- import RI from "./components/BitkitSegmentedControl/BitkitSegmentedControl.js";
313
- import LI from "./components/BitkitSelect/BitkitSelect.js";
314
- import EI from "./components/BitkitSplitButton/BitkitSplitButton.js";
315
- import UI from "./components/BitkitTabs/BitkitTabs.js";
316
- import NI from "./components/BitkitTag/BitkitTag.js";
317
- import jI from "./components/BitkitTextInput/BitkitTextInput.js";
318
- import JI from "./components/BitkitToggle/BitkitToggle.js";
319
- import KI from "./theme/index.js";
320
- import XI from "./providers/BitkitProvider.js";
294
+ import Ye from "./components/BitkitCodeSnippet/BitkitCodeSnippet.js";
295
+ import qe from "./components/BitkitField/BitkitField.js";
296
+ import oI from "./components/BitkitCombobox/BitkitCombobox.js";
297
+ import mI from "./components/BitkitControlButton/BitkitControlButton.js";
298
+ import tI from "./components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.js";
299
+ import pI from "./components/BitkitDialog/BitkitDialogBody.js";
300
+ import fI from "./components/BitkitDialog/BitkitDialogContent.js";
301
+ import II from "./components/BitkitDialog/BitkitDialogRoot.js";
302
+ import aI from "./components/BitkitDialog/BitkitDialog.js";
303
+ import dI from "./components/BitkitEmptyState/BitkitEmptyState.js";
304
+ import BI from "./components/BitkitExpandableCard/BitkitExpandableCard.js";
305
+ import uI from "./components/BitkitIconButton/BitkitIconButton.js";
306
+ import hI from "./components/BitkitInteractiveTooltip/BitkitInteractiveTooltip.js";
307
+ import bI from "./components/BitkitLink/BitkitLink.js";
308
+ import SI from "./components/BitkitLinkButton/BitkitLinkButton.js";
309
+ import FI from "./components/BitkitNativeSelect/BitkitNativeSelect.js";
310
+ import vI from "./components/BitkitNumberInput/BitkitNumberInput.js";
311
+ import yI from "./components/BitkitRadio/BitkitRadio.js";
312
+ import RI from "./components/BitkitRadioGroup/BitkitRadioGroup.js";
313
+ import LI from "./components/BitkitSegmentedControl/BitkitSegmentedControl.js";
314
+ import EI from "./components/BitkitSelect/BitkitSelect.js";
315
+ import UI from "./components/BitkitSplitButton/BitkitSplitButton.js";
316
+ import NI from "./components/BitkitTabs/BitkitTabs.js";
317
+ import jI from "./components/BitkitTag/BitkitTag.js";
318
+ import JI from "./components/BitkitTextInput/BitkitTextInput.js";
319
+ import KI from "./components/BitkitToggle/BitkitToggle.js";
320
+ import XI from "./theme/index.js";
321
+ import YI from "./providers/BitkitProvider.js";
321
322
  export {
322
323
  r as BitkitAccordion,
323
324
  ve as BitkitActionBar,
@@ -330,34 +331,35 @@ export {
330
331
  Ke as BitkitCheckbox,
331
332
  Xe as BitkitCheckboxGroup,
332
333
  Fe as BitkitCloseButton,
334
+ Ye as BitkitCodeSnippet,
333
335
  ye as BitkitColorButton,
334
- qe as BitkitCombobox,
335
- oI as BitkitControlButton,
336
- mI as BitkitDefinitionTooltip,
337
- II as BitkitDialog,
338
- tI as BitkitDialogBody,
339
- pI as BitkitDialogContent,
340
- fI as BitkitDialogRoot,
341
- aI as BitkitEmptyState,
342
- dI as BitkitExpandableCard,
343
- Ye as BitkitField,
344
- BI as BitkitIconButton,
345
- uI as BitkitInteractiveTooltip,
346
- hI as BitkitLink,
347
- bI as BitkitLinkButton,
348
- SI as BitkitNativeSelect,
349
- FI as BitkitNumberInput,
350
- XI as BitkitProvider,
351
- vI as BitkitRadio,
352
- yI as BitkitRadioGroup,
353
- RI as BitkitSegmentedControl,
354
- LI as BitkitSelect,
336
+ oI as BitkitCombobox,
337
+ mI as BitkitControlButton,
338
+ tI as BitkitDefinitionTooltip,
339
+ aI as BitkitDialog,
340
+ pI as BitkitDialogBody,
341
+ fI as BitkitDialogContent,
342
+ II as BitkitDialogRoot,
343
+ dI as BitkitEmptyState,
344
+ BI as BitkitExpandableCard,
345
+ qe as BitkitField,
346
+ uI as BitkitIconButton,
347
+ hI as BitkitInteractiveTooltip,
348
+ bI as BitkitLink,
349
+ SI as BitkitLinkButton,
350
+ FI as BitkitNativeSelect,
351
+ vI as BitkitNumberInput,
352
+ YI as BitkitProvider,
353
+ yI as BitkitRadio,
354
+ RI as BitkitRadioGroup,
355
+ LI as BitkitSegmentedControl,
356
+ EI as BitkitSelect,
355
357
  Ne as BitkitSelectMenu,
356
- EI as BitkitSplitButton,
357
- UI as BitkitTabs,
358
- NI as BitkitTag,
359
- jI as BitkitTextInput,
360
- JI as BitkitToggle,
358
+ UI as BitkitSplitButton,
359
+ NI as BitkitTabs,
360
+ jI as BitkitTag,
361
+ JI as BitkitTextInput,
362
+ KI as BitkitToggle,
361
363
  Se as BitkitTooltip,
362
364
  n as IconAbortCircle,
363
365
  c as IconAbortCircleFilled,
@@ -638,5 +640,5 @@ export {
638
640
  ue as IconXamarin,
639
641
  he as IconXcode,
640
642
  i as bitkitIcon,
641
- KI as bitriseTheme
643
+ XI as bitriseTheme
642
644
  };
@@ -0,0 +1,153 @@
1
+ declare const codeSnippetSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "root" | "copyButton" | "showMoreContainer" | "showMoreGradient" | "showMoreButton", {
2
+ variant: {
3
+ inline: {
4
+ root: {
5
+ alignItems: "center";
6
+ borderRadius: "2";
7
+ color: "text/body";
8
+ cursor: "pointer";
9
+ display: "inline-flex";
10
+ paddingBlock: "2";
11
+ paddingInline: "6";
12
+ userSelect: "none";
13
+ whiteSpace: "nowrap";
14
+ _hover: {
15
+ background: "background/hover";
16
+ };
17
+ _active: {
18
+ background: "background/active";
19
+ };
20
+ };
21
+ };
22
+ single: {
23
+ root: {
24
+ alignItems: "center";
25
+ borderRadius: "4";
26
+ display: "flex";
27
+ height: "40";
28
+ isolation: "isolate";
29
+ overflow: "hidden";
30
+ whiteSpace: "nowrap";
31
+ };
32
+ content: {
33
+ alignItems: "center";
34
+ display: "flex";
35
+ height: "40";
36
+ overflow: "hidden";
37
+ paddingInlineStart: "16";
38
+ position: "relative";
39
+ _after: {
40
+ background: "linear-gradient(to left, var(--colors-background-secondary), transparent)";
41
+ content: "\"\"";
42
+ height: "40";
43
+ pointerEvents: "none";
44
+ position: "absolute";
45
+ right: "0";
46
+ top: "0";
47
+ width: "8";
48
+ };
49
+ };
50
+ copyButton: {
51
+ flexShrink: "0";
52
+ padding: "12";
53
+ };
54
+ };
55
+ multi: {
56
+ root: {
57
+ borderRadius: "4";
58
+ display: "flex";
59
+ flexDirection: "column";
60
+ padding: "16";
61
+ position: "relative";
62
+ };
63
+ content: {
64
+ color: "text/body";
65
+ overflowY: "auto";
66
+ transition: "max-height 0.3s ease";
67
+ whiteSpace: "pre-wrap";
68
+ };
69
+ copyButton: {
70
+ borderRadius: "4";
71
+ overflow: "hidden";
72
+ padding: "8";
73
+ position: "absolute";
74
+ right: number;
75
+ top: number;
76
+ };
77
+ showMoreContainer: {
78
+ alignItems: "center";
79
+ display: "flex";
80
+ justifyContent: "flex-end";
81
+ };
82
+ showMoreGradient: {
83
+ background: "linear-gradient(to top, var(--colors-background-secondary) 33%, transparent)";
84
+ borderBottomRadius: "4";
85
+ bottom: number;
86
+ height: "40";
87
+ left: number;
88
+ pointerEvents: "none";
89
+ position: "absolute";
90
+ right: number;
91
+ };
92
+ showMoreButton: {
93
+ alignItems: "center";
94
+ background: "background/secondary";
95
+ borderRadius: "4";
96
+ color: "text/secondary";
97
+ cursor: "pointer";
98
+ display: "flex";
99
+ gap: "4";
100
+ justifyContent: "center";
101
+ minWidth: "64";
102
+ paddingBlock: "8";
103
+ paddingInline: "12";
104
+ position: "relative";
105
+ textStyle: "comp/button/md";
106
+ _hover: {
107
+ background: "background/hover";
108
+ color: "text/primary";
109
+ _active: {
110
+ background: "background/active";
111
+ color: "text/primary";
112
+ overflow: "hidden";
113
+ };
114
+ };
115
+ _active: {
116
+ background: "background/active";
117
+ color: "text/primary";
118
+ overflow: "hidden";
119
+ };
120
+ _focusVisible: {
121
+ outlineOffset: "-3px";
122
+ };
123
+ };
124
+ };
125
+ };
126
+ size: {
127
+ md: {
128
+ root: {
129
+ textStyle: "code/md";
130
+ };
131
+ content: {
132
+ textStyle: "code/md";
133
+ };
134
+ };
135
+ lg: {
136
+ root: {
137
+ textStyle: "code/lg";
138
+ };
139
+ content: {
140
+ textStyle: "code/lg";
141
+ };
142
+ };
143
+ };
144
+ hasShowMore: {
145
+ true: {};
146
+ false: {};
147
+ };
148
+ isExpanded: {
149
+ true: {};
150
+ false: {};
151
+ };
152
+ }>;
153
+ export default codeSnippetSlotRecipe;
@@ -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.161",
4
+ "version": "0.3.162",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",