@bitrise/bitkit-v2 0.3.105 → 0.3.107

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.
@@ -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?: string;
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 g } from "@chakra-ui/react/card";
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 u } from "@chakra-ui/react/styled-system";
6
- import { Text as b } from "@chakra-ui/react/text";
7
- import y from "../../icons/24x24/IconChevronDown24.js";
8
- const k = (c) => {
9
- const { children: a, defaultExpanded: d, expanded: p, icon: s, onChange: t, size: m = "lg", suffix: l, title: f, ...h } = c, e = u({ key: "expandableCard" })({ size: m }), x = t ? (C) => t(C.open) : void 0;
10
- return /* @__PURE__ */ n(g.Root, { css: e.root, children: /* @__PURE__ */ o(i.Root, { defaultOpen: d, open: p, onOpenChange: x, ...h, children: [
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
- f
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
- !!l && /* @__PURE__ */ n(b, { css: e.suffix, children: l }),
18
- /* @__PURE__ */ n(y, { css: e.chevron })
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: a }) })
24
+ /* @__PURE__ */ n(i.Content, { css: e.collapsible, children: /* @__PURE__ */ n(r, { css: e.body, children: p }) })
22
25
  ] }) });
23
26
  };
24
- k.displayName = "BitkitExpandableCard";
27
+ T.displayName = "BitkitExpandableCard";
25
28
  export {
26
- k as default
29
+ T as default
27
30
  };
@@ -1,5 +1,5 @@
1
1
  import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
- const o = e({
2
+ const t = e({
3
3
  className: "color-button",
4
4
  base: {
5
5
  colorPalette: "neutral",
@@ -24,10 +24,25 @@ const o = e({
24
24
  lg: { height: "48", paddingInline: "16", textStyle: "comp/button/lg" }
25
25
  }
26
26
  },
27
+ compoundVariants: [
28
+ {
29
+ colorPalette: "white",
30
+ css: {
31
+ color: "text.on-color",
32
+ borderColor: "border.inverse",
33
+ "&:hover": {
34
+ backgroundColor: "white.a15"
35
+ },
36
+ "&:active": {
37
+ backgroundColor: "white.a30"
38
+ }
39
+ }
40
+ }
41
+ ],
27
42
  defaultVariants: {
28
43
  size: "sm"
29
44
  }
30
45
  });
31
46
  export {
32
- o as default
47
+ t as default
33
48
  };
@@ -505,6 +505,53 @@ const r = l.colors(
505
505
  _light: "{colors.turquoise.95}"
506
506
  }
507
507
  }
508
+ },
509
+ white: {
510
+ a00: {
511
+ value: {
512
+ _light: "rgba(255, 255, 255, 0)"
513
+ }
514
+ },
515
+ a10: {
516
+ value: {
517
+ _light: "rgba(255, 255, 255, 0.1)"
518
+ }
519
+ },
520
+ a15: {
521
+ value: {
522
+ _light: "rgba(255, 255, 255, 0.15)"
523
+ }
524
+ },
525
+ a20: {
526
+ value: {
527
+ _light: "rgba(255, 255, 255, 0.2)"
528
+ }
529
+ },
530
+ a30: {
531
+ value: {
532
+ _light: "rgba(255, 255, 255, 0.3)"
533
+ }
534
+ },
535
+ a50: {
536
+ value: {
537
+ _light: "rgba(255, 255, 255, 0.5)"
538
+ }
539
+ },
540
+ a80: {
541
+ value: {
542
+ _light: "rgba(255, 255, 255, 0.8)"
543
+ }
544
+ },
545
+ a90: {
546
+ value: {
547
+ _light: "rgba(255, 255, 255, 0.9)"
548
+ }
549
+ },
550
+ a100: {
551
+ value: {
552
+ _light: "rgb(255, 255, 255)"
553
+ }
554
+ }
508
555
  }
509
556
  },
510
557
  background: {
@@ -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
  }>;
@@ -1,12 +1,30 @@
1
1
  export declare const COLOR_PALETTES: {
2
2
  white: {
3
- strong: {
3
+ a00: {
4
4
  value: string;
5
5
  };
6
- subtle: {
6
+ a10: {
7
7
  value: string;
8
8
  };
9
- moderate: {
9
+ a15: {
10
+ value: string;
11
+ };
12
+ a20: {
13
+ value: string;
14
+ };
15
+ a30: {
16
+ value: string;
17
+ };
18
+ a50: {
19
+ value: string;
20
+ };
21
+ a80: {
22
+ value: string;
23
+ };
24
+ a90: {
25
+ value: string;
26
+ };
27
+ a100: {
10
28
  value: string;
11
29
  };
12
30
  };
@@ -572,13 +590,31 @@ declare const colors: {
572
590
  };
573
591
  };
574
592
  white: {
575
- strong: {
593
+ a00: {
576
594
  value: string;
577
595
  };
578
- subtle: {
596
+ a10: {
579
597
  value: string;
580
598
  };
581
- moderate: {
599
+ a15: {
600
+ value: string;
601
+ };
602
+ a20: {
603
+ value: string;
604
+ };
605
+ a30: {
606
+ value: string;
607
+ };
608
+ a50: {
609
+ value: string;
610
+ };
611
+ a80: {
612
+ value: string;
613
+ };
614
+ a90: {
615
+ value: string;
616
+ };
617
+ a100: {
582
618
  value: string;
583
619
  };
584
620
  };
@@ -1,14 +1,32 @@
1
1
  import { defineTokens as e } from "@chakra-ui/react/styled-system";
2
2
  const l = {
3
3
  white: {
4
- strong: {
5
- value: "{colors.sys.fg.on-color}"
4
+ a00: {
5
+ value: "{colors.sys.white.a00}"
6
6
  },
7
- subtle: {
8
- value: "{colors.sys.fg.on-color/15}"
7
+ a10: {
8
+ value: "{colors.sys.white.a10}"
9
9
  },
10
- moderate: {
11
- value: "{colors.sys.fg.on-color/30}"
10
+ a15: {
11
+ value: "{colors.sys.white.a15}"
12
+ },
13
+ a20: {
14
+ value: "{colors.sys.white.a20}"
15
+ },
16
+ a30: {
17
+ value: "{colors.sys.white.a30}"
18
+ },
19
+ a50: {
20
+ value: "{colors.sys.white.a50}"
21
+ },
22
+ a80: {
23
+ value: "{colors.sys.white.a80}"
24
+ },
25
+ a90: {
26
+ value: "{colors.sys.white.a90}"
27
+ },
28
+ a100: {
29
+ value: "{colors.sys.white.a100}"
12
30
  }
13
31
  },
14
32
  neutral: {
@@ -123,13 +123,31 @@ declare const tokens: {
123
123
  };
124
124
  };
125
125
  white: {
126
- strong: {
126
+ a00: {
127
127
  value: string;
128
128
  };
129
- subtle: {
129
+ a10: {
130
130
  value: string;
131
131
  };
132
- moderate: {
132
+ a15: {
133
+ value: string;
134
+ };
135
+ a20: {
136
+ value: string;
137
+ };
138
+ a30: {
139
+ value: string;
140
+ };
141
+ a50: {
142
+ value: string;
143
+ };
144
+ a80: {
145
+ value: string;
146
+ };
147
+ a90: {
148
+ value: string;
149
+ };
150
+ a100: {
133
151
  value: string;
134
152
  };
135
153
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.105",
4
+ "version": "0.3.107",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",