@bitrise/bitkit-v2 0.3.106 → 0.3.108
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/dist/components/BitkitExpandableCard/BitkitExpandableCard.d.ts +2 -1
- package/dist/components/BitkitExpandableCard/BitkitExpandableCard.js +16 -13
- package/dist/theme/semantic-tokens/semanticColors.js +47 -0
- package/dist/theme/slot-recipes/ExpandableCard.recipe.d.ts +7 -1
- package/dist/theme/slot-recipes/ExpandableCard.recipe.js +11 -3
- package/dist/theme/slot-recipes/index.d.ts +7 -1
- package/dist/theme/tokens/colors.d.ts +112 -0
- package/dist/theme/tokens/colors.js +40 -2
- package/dist/theme/tokens/index.d.ts +56 -0
- package/package.json +1 -1
|
@@ -13,8 +13,9 @@ type ControlledProps = {
|
|
|
13
13
|
export type BitkitExpandableCardProps = Omit<CollapsibleRootProps, 'defaultOpen' | 'onOpenChange' | 'open'> & {
|
|
14
14
|
children: ReactNode;
|
|
15
15
|
icon?: ReactElement;
|
|
16
|
+
secdText?: ReactNode;
|
|
16
17
|
size: 'md' | 'lg';
|
|
17
|
-
suffix?:
|
|
18
|
+
suffix?: ReactNode;
|
|
18
19
|
title: ReactNode;
|
|
19
20
|
} & (UncontrolledProps | ControlledProps);
|
|
20
21
|
declare const BitkitExpandableCard: {
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { jsx as n, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { Box as r } from "@chakra-ui/react/box";
|
|
3
|
-
import { Card as
|
|
3
|
+
import { Card as y } from "@chakra-ui/react/card";
|
|
4
4
|
import { Collapsible as i } from "@chakra-ui/react/collapsible";
|
|
5
|
-
import { useSlotRecipe as
|
|
6
|
-
import { Text as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
const { children:
|
|
10
|
-
return /* @__PURE__ */ n(
|
|
5
|
+
import { useSlotRecipe as b } from "@chakra-ui/react/styled-system";
|
|
6
|
+
import { Text as d } from "@chakra-ui/react/text";
|
|
7
|
+
import I from "../../icons/24x24/IconChevronDown24.js";
|
|
8
|
+
const T = (a) => {
|
|
9
|
+
const { children: p, defaultExpanded: f, expanded: m, icon: s, onChange: t, secdText: l, size: x = "lg", suffix: c, title: h, ...g } = a, e = b({ key: "expandableCard" })({ size: x }), C = t ? (u) => t(u.open) : void 0;
|
|
10
|
+
return /* @__PURE__ */ n(y.Root, { css: e.root, children: /* @__PURE__ */ o(i.Root, { defaultOpen: f, open: m, onOpenChange: C, ...g, children: [
|
|
11
11
|
/* @__PURE__ */ o(i.Trigger, { css: e.header, children: [
|
|
12
12
|
/* @__PURE__ */ o(r, { display: "flex", alignItems: "center", gap: "8", children: [
|
|
13
13
|
s && /* @__PURE__ */ n(r, { css: e.icon, children: s }),
|
|
14
|
-
|
|
14
|
+
/* @__PURE__ */ o(r, { display: "flex", alignItems: "flex-start", flexDirection: "column", children: [
|
|
15
|
+
h,
|
|
16
|
+
!!l && /* @__PURE__ */ n(d, { css: e.secdText, children: l })
|
|
17
|
+
] })
|
|
15
18
|
] }),
|
|
16
19
|
/* @__PURE__ */ o(r, { display: "flex", alignItems: "center", children: [
|
|
17
|
-
!!
|
|
18
|
-
/* @__PURE__ */ n(
|
|
20
|
+
!!c && /* @__PURE__ */ n(d, { css: e.suffix, children: c }),
|
|
21
|
+
/* @__PURE__ */ n(I, { css: e.chevron })
|
|
19
22
|
] })
|
|
20
23
|
] }),
|
|
21
|
-
/* @__PURE__ */ n(i.Content, { css: e.collapsible, children: /* @__PURE__ */ n(r, { css: e.body, children:
|
|
24
|
+
/* @__PURE__ */ n(i.Content, { css: e.collapsible, children: /* @__PURE__ */ n(r, { css: e.body, children: p }) })
|
|
22
25
|
] }) });
|
|
23
26
|
};
|
|
24
|
-
|
|
27
|
+
T.displayName = "BitkitExpandableCard";
|
|
25
28
|
export {
|
|
26
|
-
|
|
29
|
+
T as default
|
|
27
30
|
};
|
|
@@ -232,6 +232,53 @@ const r = l.colors(
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
},
|
|
235
|
+
indigo: {
|
|
236
|
+
base: {
|
|
237
|
+
value: {
|
|
238
|
+
_light: "{colors.indigo.50}"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
dark: {
|
|
242
|
+
value: {
|
|
243
|
+
_light: "{colors.indigo.20}"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
emphasized: {
|
|
247
|
+
value: {
|
|
248
|
+
_light: "{colors.indigo.30}"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
strong: {
|
|
252
|
+
value: {
|
|
253
|
+
_light: "{colors.indigo.40}"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
bold: {
|
|
257
|
+
value: {
|
|
258
|
+
_light: "{colors.indigo.60}"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
muted: {
|
|
262
|
+
value: {
|
|
263
|
+
_light: "{colors.indigo.80}"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
moderate: {
|
|
267
|
+
value: {
|
|
268
|
+
_light: "{colors.indigo.90}"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
subtle: {
|
|
272
|
+
value: {
|
|
273
|
+
_light: "{colors.indigo.93}"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
minimal: {
|
|
277
|
+
value: {
|
|
278
|
+
_light: "{colors.indigo.95}"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
235
282
|
blue: {
|
|
236
283
|
base: {
|
|
237
284
|
value: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const expandableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "root" | "description" | "collapsible" | "suffix" | "chevron", {
|
|
1
|
+
declare const expandableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "root" | "description" | "collapsible" | "secdText" | "suffix" | "chevron", {
|
|
2
2
|
size: {
|
|
3
3
|
md: {
|
|
4
4
|
header: {
|
|
@@ -6,12 +6,18 @@ declare const expandableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDef
|
|
|
6
6
|
paddingX: "16";
|
|
7
7
|
paddingY: "12";
|
|
8
8
|
};
|
|
9
|
+
secdText: {
|
|
10
|
+
textStyle: "body/sm/regular";
|
|
11
|
+
};
|
|
9
12
|
};
|
|
10
13
|
lg: {
|
|
11
14
|
header: {
|
|
12
15
|
textStyle: "body/lg/regular";
|
|
13
16
|
padding: "16";
|
|
14
17
|
};
|
|
18
|
+
secdText: {
|
|
19
|
+
textStyle: "body/md/regular";
|
|
20
|
+
};
|
|
15
21
|
};
|
|
16
22
|
};
|
|
17
23
|
}>;
|
|
@@ -2,7 +2,7 @@ import { cardAnatomy as e } from "@chakra-ui/react/anatomy";
|
|
|
2
2
|
import { defineSlotRecipe as o } from "@chakra-ui/react/styled-system";
|
|
3
3
|
const t = o({
|
|
4
4
|
className: "expandable-card",
|
|
5
|
-
slots: [...e.keys(), "chevron", "collapsible", "icon", "suffix"],
|
|
5
|
+
slots: [...e.keys(), "chevron", "collapsible", "icon", "secdText", "suffix"],
|
|
6
6
|
base: {
|
|
7
7
|
root: {
|
|
8
8
|
backgroundColor: "background/primary",
|
|
@@ -19,6 +19,9 @@ const t = o({
|
|
|
19
19
|
},
|
|
20
20
|
"&:hover:not(:active)": {
|
|
21
21
|
backgroundColor: "background/hover"
|
|
22
|
+
},
|
|
23
|
+
_open: {
|
|
24
|
+
backgroundColor: "background/secondary"
|
|
22
25
|
}
|
|
23
26
|
},
|
|
24
27
|
collapsible: {
|
|
@@ -46,6 +49,9 @@ const t = o({
|
|
|
46
49
|
icon: {
|
|
47
50
|
color: "icon/secondary"
|
|
48
51
|
},
|
|
52
|
+
secdText: {
|
|
53
|
+
color: "text/secondary"
|
|
54
|
+
},
|
|
49
55
|
suffix: {
|
|
50
56
|
color: "text/secondary",
|
|
51
57
|
mx: "16",
|
|
@@ -55,10 +61,12 @@ const t = o({
|
|
|
55
61
|
variants: {
|
|
56
62
|
size: {
|
|
57
63
|
md: {
|
|
58
|
-
header: { textStyle: "body/md/regular", paddingX: "16", paddingY: "12" }
|
|
64
|
+
header: { textStyle: "body/md/regular", paddingX: "16", paddingY: "12" },
|
|
65
|
+
secdText: { textStyle: "body/sm/regular" }
|
|
59
66
|
},
|
|
60
67
|
lg: {
|
|
61
|
-
header: { textStyle: "body/lg/regular", padding: "16" }
|
|
68
|
+
header: { textStyle: "body/lg/regular", padding: "16" },
|
|
69
|
+
secdText: { textStyle: "body/md/regular" }
|
|
62
70
|
}
|
|
63
71
|
}
|
|
64
72
|
},
|
|
@@ -72,7 +72,7 @@ declare const slotRecipes: {
|
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
}>;
|
|
75
|
-
expandableCard: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "root" | "description" | "collapsible" | "suffix" | "chevron", {
|
|
75
|
+
expandableCard: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "root" | "description" | "collapsible" | "secdText" | "suffix" | "chevron", {
|
|
76
76
|
size: {
|
|
77
77
|
md: {
|
|
78
78
|
header: {
|
|
@@ -80,12 +80,18 @@ declare const slotRecipes: {
|
|
|
80
80
|
paddingX: "16";
|
|
81
81
|
paddingY: "12";
|
|
82
82
|
};
|
|
83
|
+
secdText: {
|
|
84
|
+
textStyle: "body/sm/regular";
|
|
85
|
+
};
|
|
83
86
|
};
|
|
84
87
|
lg: {
|
|
85
88
|
header: {
|
|
86
89
|
textStyle: "body/lg/regular";
|
|
87
90
|
padding: "16";
|
|
88
91
|
};
|
|
92
|
+
secdText: {
|
|
93
|
+
textStyle: "body/md/regular";
|
|
94
|
+
};
|
|
89
95
|
};
|
|
90
96
|
};
|
|
91
97
|
}>;
|
|
@@ -143,6 +143,62 @@ export declare const COLOR_PALETTES: {
|
|
|
143
143
|
value: string;
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
|
+
indigo: {
|
|
147
|
+
'20': {
|
|
148
|
+
value: string;
|
|
149
|
+
};
|
|
150
|
+
'30': {
|
|
151
|
+
value: string;
|
|
152
|
+
};
|
|
153
|
+
'40': {
|
|
154
|
+
value: string;
|
|
155
|
+
};
|
|
156
|
+
'50': {
|
|
157
|
+
value: string;
|
|
158
|
+
};
|
|
159
|
+
'60': {
|
|
160
|
+
value: string;
|
|
161
|
+
};
|
|
162
|
+
'80': {
|
|
163
|
+
value: string;
|
|
164
|
+
};
|
|
165
|
+
'90': {
|
|
166
|
+
value: string;
|
|
167
|
+
};
|
|
168
|
+
'93': {
|
|
169
|
+
value: string;
|
|
170
|
+
};
|
|
171
|
+
'95': {
|
|
172
|
+
value: string;
|
|
173
|
+
};
|
|
174
|
+
base: {
|
|
175
|
+
value: string;
|
|
176
|
+
};
|
|
177
|
+
bold: {
|
|
178
|
+
value: string;
|
|
179
|
+
};
|
|
180
|
+
dark: {
|
|
181
|
+
value: string;
|
|
182
|
+
};
|
|
183
|
+
emphasized: {
|
|
184
|
+
value: string;
|
|
185
|
+
};
|
|
186
|
+
minimal: {
|
|
187
|
+
value: string;
|
|
188
|
+
};
|
|
189
|
+
moderate: {
|
|
190
|
+
value: string;
|
|
191
|
+
};
|
|
192
|
+
muted: {
|
|
193
|
+
value: string;
|
|
194
|
+
};
|
|
195
|
+
strong: {
|
|
196
|
+
value: string;
|
|
197
|
+
};
|
|
198
|
+
subtle: {
|
|
199
|
+
value: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
146
202
|
red: {
|
|
147
203
|
'10': {
|
|
148
204
|
value: string;
|
|
@@ -733,6 +789,62 @@ declare const colors: {
|
|
|
733
789
|
value: string;
|
|
734
790
|
};
|
|
735
791
|
};
|
|
792
|
+
indigo: {
|
|
793
|
+
'20': {
|
|
794
|
+
value: string;
|
|
795
|
+
};
|
|
796
|
+
'30': {
|
|
797
|
+
value: string;
|
|
798
|
+
};
|
|
799
|
+
'40': {
|
|
800
|
+
value: string;
|
|
801
|
+
};
|
|
802
|
+
'50': {
|
|
803
|
+
value: string;
|
|
804
|
+
};
|
|
805
|
+
'60': {
|
|
806
|
+
value: string;
|
|
807
|
+
};
|
|
808
|
+
'80': {
|
|
809
|
+
value: string;
|
|
810
|
+
};
|
|
811
|
+
'90': {
|
|
812
|
+
value: string;
|
|
813
|
+
};
|
|
814
|
+
'93': {
|
|
815
|
+
value: string;
|
|
816
|
+
};
|
|
817
|
+
'95': {
|
|
818
|
+
value: string;
|
|
819
|
+
};
|
|
820
|
+
base: {
|
|
821
|
+
value: string;
|
|
822
|
+
};
|
|
823
|
+
bold: {
|
|
824
|
+
value: string;
|
|
825
|
+
};
|
|
826
|
+
dark: {
|
|
827
|
+
value: string;
|
|
828
|
+
};
|
|
829
|
+
emphasized: {
|
|
830
|
+
value: string;
|
|
831
|
+
};
|
|
832
|
+
minimal: {
|
|
833
|
+
value: string;
|
|
834
|
+
};
|
|
835
|
+
moderate: {
|
|
836
|
+
value: string;
|
|
837
|
+
};
|
|
838
|
+
muted: {
|
|
839
|
+
value: string;
|
|
840
|
+
};
|
|
841
|
+
strong: {
|
|
842
|
+
value: string;
|
|
843
|
+
};
|
|
844
|
+
subtle: {
|
|
845
|
+
value: string;
|
|
846
|
+
};
|
|
847
|
+
};
|
|
736
848
|
red: {
|
|
737
849
|
'10': {
|
|
738
850
|
value: string;
|
|
@@ -144,6 +144,44 @@ const l = {
|
|
|
144
144
|
value: "{colors.sys.purple.subtle}"
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
+
indigo: {
|
|
148
|
+
20: { value: "#2d2363" },
|
|
149
|
+
30: { value: "#423786" },
|
|
150
|
+
40: { value: "#5a50b2" },
|
|
151
|
+
50: { value: "#6d65d6" },
|
|
152
|
+
60: { value: "#8281ec" },
|
|
153
|
+
80: { value: "#b7bffc" },
|
|
154
|
+
90: { value: "#cdd5fe" },
|
|
155
|
+
93: { value: "#e5e9fa" },
|
|
156
|
+
95: { value: "#f1f4fd" },
|
|
157
|
+
base: {
|
|
158
|
+
value: "{colors.sys.indigo}"
|
|
159
|
+
},
|
|
160
|
+
bold: {
|
|
161
|
+
value: "{colors.sys.indigo.bold}"
|
|
162
|
+
},
|
|
163
|
+
dark: {
|
|
164
|
+
value: "{colors.sys.indigo.dark}"
|
|
165
|
+
},
|
|
166
|
+
emphasized: {
|
|
167
|
+
value: "{colors.sys.indigo.emphasized}"
|
|
168
|
+
},
|
|
169
|
+
minimal: {
|
|
170
|
+
value: "{colors.sys.indigo.minimal}"
|
|
171
|
+
},
|
|
172
|
+
moderate: {
|
|
173
|
+
value: "{colors.sys.indigo.moderate}"
|
|
174
|
+
},
|
|
175
|
+
muted: {
|
|
176
|
+
value: "{colors.sys.indigo.muted}"
|
|
177
|
+
},
|
|
178
|
+
strong: {
|
|
179
|
+
value: "{colors.sys.indigo.strong}"
|
|
180
|
+
},
|
|
181
|
+
subtle: {
|
|
182
|
+
value: "{colors.sys.indigo.subtle}"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
147
185
|
red: {
|
|
148
186
|
10: {
|
|
149
187
|
value: "#47060c"
|
|
@@ -587,11 +625,11 @@ const l = {
|
|
|
587
625
|
value: "#fff"
|
|
588
626
|
}
|
|
589
627
|
}
|
|
590
|
-
},
|
|
628
|
+
}, u = e.colors({
|
|
591
629
|
...l,
|
|
592
630
|
brand: a
|
|
593
631
|
});
|
|
594
632
|
export {
|
|
595
633
|
l as COLOR_PALETTES,
|
|
596
|
-
|
|
634
|
+
u as default
|
|
597
635
|
};
|
|
@@ -266,6 +266,62 @@ declare const tokens: {
|
|
|
266
266
|
value: string;
|
|
267
267
|
};
|
|
268
268
|
};
|
|
269
|
+
indigo: {
|
|
270
|
+
'20': {
|
|
271
|
+
value: string;
|
|
272
|
+
};
|
|
273
|
+
'30': {
|
|
274
|
+
value: string;
|
|
275
|
+
};
|
|
276
|
+
'40': {
|
|
277
|
+
value: string;
|
|
278
|
+
};
|
|
279
|
+
'50': {
|
|
280
|
+
value: string;
|
|
281
|
+
};
|
|
282
|
+
'60': {
|
|
283
|
+
value: string;
|
|
284
|
+
};
|
|
285
|
+
'80': {
|
|
286
|
+
value: string;
|
|
287
|
+
};
|
|
288
|
+
'90': {
|
|
289
|
+
value: string;
|
|
290
|
+
};
|
|
291
|
+
'93': {
|
|
292
|
+
value: string;
|
|
293
|
+
};
|
|
294
|
+
'95': {
|
|
295
|
+
value: string;
|
|
296
|
+
};
|
|
297
|
+
base: {
|
|
298
|
+
value: string;
|
|
299
|
+
};
|
|
300
|
+
bold: {
|
|
301
|
+
value: string;
|
|
302
|
+
};
|
|
303
|
+
dark: {
|
|
304
|
+
value: string;
|
|
305
|
+
};
|
|
306
|
+
emphasized: {
|
|
307
|
+
value: string;
|
|
308
|
+
};
|
|
309
|
+
minimal: {
|
|
310
|
+
value: string;
|
|
311
|
+
};
|
|
312
|
+
moderate: {
|
|
313
|
+
value: string;
|
|
314
|
+
};
|
|
315
|
+
muted: {
|
|
316
|
+
value: string;
|
|
317
|
+
};
|
|
318
|
+
strong: {
|
|
319
|
+
value: string;
|
|
320
|
+
};
|
|
321
|
+
subtle: {
|
|
322
|
+
value: string;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
269
325
|
red: {
|
|
270
326
|
'10': {
|
|
271
327
|
value: string;
|