@bitrise/bitkit-v2 0.3.109 → 0.3.110
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.
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Box as
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Box as t } from "@chakra-ui/react/box";
|
|
3
3
|
import { Card as y } from "@chakra-ui/react/card";
|
|
4
|
-
import { Collapsible as
|
|
4
|
+
import { Collapsible as r } from "@chakra-ui/react/collapsible";
|
|
5
5
|
import { useSlotRecipe as b } from "@chakra-ui/react/styled-system";
|
|
6
|
-
import { Text as
|
|
7
|
-
import
|
|
8
|
-
const T = (
|
|
9
|
-
const { children:
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
!!
|
|
6
|
+
import { Text as a } from "@chakra-ui/react/text";
|
|
7
|
+
import O from "../../utilities/AssetSelectChevron.js";
|
|
8
|
+
const T = (p) => {
|
|
9
|
+
const { children: x, defaultExpanded: f, expanded: m, icon: o, onChange: l, secdText: c, size: h = "lg", suffix: d, title: C, ...g } = p, n = b({ key: "expandableCard" })({ size: h }), u = l ? (s) => l(s.open) : void 0;
|
|
10
|
+
return /* @__PURE__ */ e(y.Root, { css: n.root, children: /* @__PURE__ */ i(r.Root, { defaultOpen: f, open: m, onOpenChange: u, ...g, children: [
|
|
11
|
+
/* @__PURE__ */ i(r.Trigger, { css: n.header, children: [
|
|
12
|
+
/* @__PURE__ */ i(t, { display: "flex", alignItems: "center", gap: "8", children: [
|
|
13
|
+
o && /* @__PURE__ */ e(t, { css: n.icon, children: o }),
|
|
14
|
+
/* @__PURE__ */ i(t, { display: "flex", alignItems: "flex-start", flexDirection: "column", children: [
|
|
15
|
+
C,
|
|
16
|
+
!!c && /* @__PURE__ */ e(a, { css: n.secdText, children: c })
|
|
17
17
|
] })
|
|
18
18
|
] }),
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
!!
|
|
21
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ i(t, { display: "flex", alignItems: "center", children: [
|
|
20
|
+
!!d && /* @__PURE__ */ e(a, { css: n.suffix, children: d }),
|
|
21
|
+
/* @__PURE__ */ e(r.Context, { children: (s) => /* @__PURE__ */ e(O, { isOpen: s.open }) })
|
|
22
22
|
] })
|
|
23
23
|
] }),
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ e(r.Content, { css: n.collapsible, children: /* @__PURE__ */ e(t, { css: n.body, children: x }) })
|
|
25
25
|
] }) });
|
|
26
26
|
};
|
|
27
27
|
T.displayName = "BitkitExpandableCard";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const expandableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "root" | "description" | "collapsible" | "secdText" | "suffix"
|
|
1
|
+
declare const expandableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "root" | "description" | "collapsible" | "secdText" | "suffix", {
|
|
2
2
|
size: {
|
|
3
3
|
md: {
|
|
4
4
|
header: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cardAnatomy as e } from "@chakra-ui/react/anatomy";
|
|
2
2
|
import { defineSlotRecipe as o } from "@chakra-ui/react/styled-system";
|
|
3
|
-
const
|
|
3
|
+
const d = o({
|
|
4
4
|
className: "expandable-card",
|
|
5
|
-
slots: [...e.keys(), "
|
|
5
|
+
slots: [...e.keys(), "collapsible", "icon", "secdText", "suffix"],
|
|
6
6
|
base: {
|
|
7
7
|
root: {
|
|
8
8
|
backgroundColor: "background/primary",
|
|
@@ -35,12 +35,6 @@ const t = o({
|
|
|
35
35
|
animationDuration: "moderate"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
chevron: {
|
|
39
|
-
"[data-state=open] &": {
|
|
40
|
-
transform: "rotate(-180deg)"
|
|
41
|
-
},
|
|
42
|
-
transition: "transform 0.2s ease"
|
|
43
|
-
},
|
|
44
38
|
body: {
|
|
45
39
|
borderTop: "1px solid",
|
|
46
40
|
borderColor: "border/minimal",
|
|
@@ -75,5 +69,5 @@ const t = o({
|
|
|
75
69
|
}
|
|
76
70
|
});
|
|
77
71
|
export {
|
|
78
|
-
|
|
72
|
+
d as default
|
|
79
73
|
};
|
|
@@ -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" | "secdText" | "suffix"
|
|
75
|
+
expandableCard: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "root" | "description" | "collapsible" | "secdText" | "suffix", {
|
|
76
76
|
size: {
|
|
77
77
|
md: {
|
|
78
78
|
header: {
|