@bitrise/bitkit-v2 0.3.82 → 0.3.83
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/BitkitCard/BitkitCard.d.ts +3 -0
- package/dist/components/BitkitCard/BitkitCard.js +11 -0
- package/dist/components/BitkitExpandableCard/BitkitExpandableCard.d.ts +24 -0
- package/dist/components/BitkitExpandableCard/BitkitExpandableCard.js +27 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/main.js +1096 -1092
- package/dist/theme/slot-recipes/Card.recipe.d.ts +34 -0
- package/dist/theme/slot-recipes/Card.recipe.js +53 -0
- package/dist/theme/slot-recipes/EmptyState.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/ExpandableCard.recipe.d.ts +18 -0
- package/dist/theme/slot-recipes/ExpandableCard.recipe.js +71 -0
- package/dist/theme/slot-recipes/index.d.ts +51 -1
- package/dist/theme/slot-recipes/index.js +26 -22
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const cardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "root" | "description", {
|
|
2
|
+
elevation: {
|
|
3
|
+
true: {
|
|
4
|
+
root: {
|
|
5
|
+
borderColor: "border/minimal";
|
|
6
|
+
boxShadow: "small";
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
false: {
|
|
10
|
+
root: {
|
|
11
|
+
borderColor: "border/regular";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
padding: {
|
|
16
|
+
sm: {
|
|
17
|
+
body: {
|
|
18
|
+
padding: "16";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
md: {
|
|
22
|
+
body: {
|
|
23
|
+
paddingX: "24";
|
|
24
|
+
paddingY: "16";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
lg: {
|
|
28
|
+
body: {
|
|
29
|
+
padding: "24";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
34
|
+
export default cardSlotRecipe;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { cardAnatomy as o } from "@chakra-ui/react/anatomy";
|
|
2
|
+
import { defineSlotRecipe as r } from "@chakra-ui/react/styled-system";
|
|
3
|
+
const e = r({
|
|
4
|
+
className: "card",
|
|
5
|
+
slots: o.keys(),
|
|
6
|
+
base: {
|
|
7
|
+
root: {
|
|
8
|
+
backgroundColor: "background/primary",
|
|
9
|
+
border: "1px solid",
|
|
10
|
+
borderRadius: "8"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
elevation: {
|
|
15
|
+
true: {
|
|
16
|
+
root: {
|
|
17
|
+
borderColor: "border/minimal",
|
|
18
|
+
boxShadow: "small"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
false: {
|
|
22
|
+
root: {
|
|
23
|
+
borderColor: "border/regular"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
padding: {
|
|
28
|
+
sm: {
|
|
29
|
+
body: {
|
|
30
|
+
padding: "16"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
md: {
|
|
34
|
+
body: {
|
|
35
|
+
paddingX: "24",
|
|
36
|
+
paddingY: "16"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
lg: {
|
|
40
|
+
body: {
|
|
41
|
+
padding: "24"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
elevation: !0,
|
|
48
|
+
padding: "lg"
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
e as default
|
|
53
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const emptyStateSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "
|
|
1
|
+
declare const emptyStateSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "description" | "indicator", {
|
|
2
2
|
colorScheme: {
|
|
3
3
|
white: {
|
|
4
4
|
root: {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const expandableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "root" | "description" | "collapsible" | "suffix" | "chevron", {
|
|
2
|
+
size: {
|
|
3
|
+
md: {
|
|
4
|
+
header: {
|
|
5
|
+
textStyle: "body/md/regular";
|
|
6
|
+
paddingX: "16";
|
|
7
|
+
paddingY: "12";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
lg: {
|
|
11
|
+
header: {
|
|
12
|
+
textStyle: "body/lg/regular";
|
|
13
|
+
padding: "16";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}>;
|
|
18
|
+
export default expandableCardSlotRecipe;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { cardAnatomy as e } from "@chakra-ui/react/anatomy";
|
|
2
|
+
import { defineSlotRecipe as o } from "@chakra-ui/react/styled-system";
|
|
3
|
+
const t = o({
|
|
4
|
+
className: "expandable-card",
|
|
5
|
+
slots: [...e.keys(), "chevron", "collapsible", "icon", "suffix"],
|
|
6
|
+
base: {
|
|
7
|
+
root: {
|
|
8
|
+
backgroundColor: "background/primary",
|
|
9
|
+
overflow: "hidden"
|
|
10
|
+
},
|
|
11
|
+
header: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "space-between",
|
|
15
|
+
cursor: "pointer",
|
|
16
|
+
width: "100%",
|
|
17
|
+
"&:active": {
|
|
18
|
+
backgroundColor: "background/active"
|
|
19
|
+
},
|
|
20
|
+
"&:hover:not(:active)": {
|
|
21
|
+
backgroundColor: "background/hover"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
collapsible: {
|
|
25
|
+
overflow: "hidden",
|
|
26
|
+
_open: {
|
|
27
|
+
animationName: "expand-height, fade-in",
|
|
28
|
+
animationDuration: "moderate"
|
|
29
|
+
},
|
|
30
|
+
_closed: {
|
|
31
|
+
animationName: "collapse-height, fade-out",
|
|
32
|
+
animationDuration: "moderate"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
chevron: {
|
|
36
|
+
"[data-state=open] &": {
|
|
37
|
+
transform: "rotate(-180deg)"
|
|
38
|
+
},
|
|
39
|
+
transition: "transform 0.2s ease"
|
|
40
|
+
},
|
|
41
|
+
body: {
|
|
42
|
+
borderTop: "1px solid",
|
|
43
|
+
borderColor: "border/minimal",
|
|
44
|
+
padding: "16"
|
|
45
|
+
},
|
|
46
|
+
icon: {
|
|
47
|
+
color: "icon/secondary"
|
|
48
|
+
},
|
|
49
|
+
suffix: {
|
|
50
|
+
color: "text/secondary",
|
|
51
|
+
mx: "16",
|
|
52
|
+
textStyle: "body/md/regular"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
variants: {
|
|
56
|
+
size: {
|
|
57
|
+
md: {
|
|
58
|
+
header: { textStyle: "body/md/regular", paddingX: "16", paddingY: "12" }
|
|
59
|
+
},
|
|
60
|
+
lg: {
|
|
61
|
+
header: { textStyle: "body/lg/regular", padding: "16" }
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
size: "lg"
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
t as default
|
|
71
|
+
};
|
|
@@ -24,8 +24,41 @@ declare const slotRecipes: {
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
|
+
card: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "root" | "description", {
|
|
28
|
+
elevation: {
|
|
29
|
+
true: {
|
|
30
|
+
root: {
|
|
31
|
+
borderColor: "border/minimal";
|
|
32
|
+
boxShadow: "small";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
false: {
|
|
36
|
+
root: {
|
|
37
|
+
borderColor: "border/regular";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
padding: {
|
|
42
|
+
sm: {
|
|
43
|
+
body: {
|
|
44
|
+
padding: "16";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
md: {
|
|
48
|
+
body: {
|
|
49
|
+
paddingX: "24";
|
|
50
|
+
paddingY: "16";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
lg: {
|
|
54
|
+
body: {
|
|
55
|
+
padding: "24";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}>;
|
|
27
60
|
checkbox: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "group" | "root" | "control" | "indicator", import('@chakra-ui/react').SlotRecipeVariantRecord<"label" | "group" | "root" | "control" | "indicator">>;
|
|
28
|
-
emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "
|
|
61
|
+
emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "description" | "indicator", {
|
|
29
62
|
colorScheme: {
|
|
30
63
|
white: {
|
|
31
64
|
root: {
|
|
@@ -39,6 +72,23 @@ declare const slotRecipes: {
|
|
|
39
72
|
};
|
|
40
73
|
};
|
|
41
74
|
}>;
|
|
75
|
+
expandableCard: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "root" | "description" | "collapsible" | "suffix" | "chevron", {
|
|
76
|
+
size: {
|
|
77
|
+
md: {
|
|
78
|
+
header: {
|
|
79
|
+
textStyle: "body/md/regular";
|
|
80
|
+
paddingX: "16";
|
|
81
|
+
paddingY: "12";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
lg: {
|
|
85
|
+
header: {
|
|
86
|
+
textStyle: "body/lg/regular";
|
|
87
|
+
padding: "16";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}>;
|
|
42
92
|
field: import('@chakra-ui/react').SlotRecipeDefinition<"input" | "label" | "select" | "textarea" | "root" | "helperText" | "errorText" | "requiredIndicator", import('@chakra-ui/react').SlotRecipeVariantRecord<"input" | "label" | "select" | "textarea" | "root" | "helperText" | "errorText" | "requiredIndicator">>;
|
|
43
93
|
fieldset: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "legend" | "root" | "helperText" | "errorText", import('@chakra-ui/react').SlotRecipeVariantRecord<"content" | "legend" | "root" | "helperText" | "errorText">>;
|
|
44
94
|
nativeSelect: import('@chakra-ui/react').SlotRecipeDefinition<"field" | "root" | "indicator" | "statusIcon", {
|
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
import t from "./ActionBar.recipe.js";
|
|
2
|
-
import e from "./
|
|
3
|
-
import o from "./
|
|
4
|
-
import i from "./
|
|
5
|
-
import p from "./
|
|
6
|
-
import r from "./
|
|
7
|
-
import
|
|
8
|
-
import c from "./
|
|
9
|
-
import l from "./
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
2
|
+
import e from "./Card.recipe.js";
|
|
3
|
+
import o from "./Checkbox.recipe.js";
|
|
4
|
+
import i from "./EmptyState.recipe.js";
|
|
5
|
+
import p from "./ExpandableCard.recipe.js";
|
|
6
|
+
import r from "./Field.recipe.js";
|
|
7
|
+
import m from "./Fieldset.recipe.js";
|
|
8
|
+
import c from "./NativeSelect.recipe.js";
|
|
9
|
+
import { numberInputSlotRecipe as l } from "./NumberInput.recipe.js";
|
|
10
|
+
import a from "./Switch.recipe.js";
|
|
11
|
+
import f from "./Tabs.recipe.js";
|
|
12
|
+
import S from "./Tag.recipe.js";
|
|
13
|
+
import R from "./Tooltip.recipe.js";
|
|
14
|
+
const C = {
|
|
13
15
|
actionBar: t,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
card: e,
|
|
17
|
+
checkbox: o,
|
|
18
|
+
emptyState: i,
|
|
19
|
+
expandableCard: p,
|
|
20
|
+
field: r,
|
|
21
|
+
fieldset: m,
|
|
22
|
+
nativeSelect: c,
|
|
23
|
+
numberInput: l,
|
|
24
|
+
switch: a,
|
|
25
|
+
tabs: f,
|
|
26
|
+
tag: S,
|
|
27
|
+
tooltip: R
|
|
24
28
|
};
|
|
25
29
|
export {
|
|
26
|
-
|
|
30
|
+
C as default
|
|
27
31
|
};
|