@bitrise/bitkit-v2 0.3.175 → 0.3.177
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/atoms/ImageCropper/ImageCropper.js +32 -0
- package/dist/components/BitkitCodeSnippet/BitkitCodeSnippet.d.ts +12 -4
- package/dist/components/BitkitCodeSnippet/BitkitCodeSnippet.js +59 -54
- package/dist/components/BitkitCollapsible/BitkitCollapsible.d.ts +23 -0
- package/dist/components/BitkitCollapsible/BitkitCollapsible.js +37 -0
- package/dist/components/BitkitCombobox/BitkitCombobox.d.ts +2 -9
- package/dist/components/BitkitCombobox/BitkitCombobox.js +24 -32
- package/dist/components/BitkitField/BitkitField.d.ts +3 -1
- package/dist/components/BitkitField/BitkitField.js +29 -41
- package/dist/components/BitkitFileInput/BitkitFileInput.d.ts +3 -4
- package/dist/components/BitkitFileInput/BitkitFileInput.js +112 -0
- package/dist/components/BitkitGroupHeading/BitkitGroupHeading.d.ts +8 -0
- package/dist/components/BitkitGroupHeading/BitkitGroupHeading.js +27 -0
- package/dist/components/BitkitLabel/BitkitLabel.d.ts +12 -0
- package/dist/components/BitkitLabel/BitkitLabel.js +58 -0
- package/dist/components/BitkitNativeSelect/BitkitNativeSelect.d.ts +2 -9
- package/dist/components/BitkitNativeSelect/BitkitNativeSelect.js +14 -22
- package/dist/components/BitkitNumberInput/BitkitNumberInput.d.ts +1 -8
- package/dist/components/BitkitNumberInput/BitkitNumberInput.js +15 -23
- package/dist/components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.d.ts +11 -0
- package/dist/components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.js +41 -0
- package/dist/components/BitkitSectionHeading/BitkitSectionHeading.d.ts +12 -0
- package/dist/components/BitkitSectionHeading/BitkitSectionHeading.js +48 -0
- package/dist/components/BitkitSelect/BitkitSelect.d.ts +1 -8
- package/dist/components/BitkitSelect/BitkitSelect.js +22 -30
- package/dist/components/BitkitSelectableTag/BitkitSelectableTag.d.ts +17 -0
- package/dist/components/BitkitSelectableTag/BitkitSelectableTag.js +38 -0
- package/dist/components/BitkitTable/BitkitExpandableRow.d.ts +9 -0
- package/dist/components/BitkitTable/BitkitSortableColumnHeader.d.ts +8 -0
- package/dist/components/BitkitTagsInput/BitkitTagsInput.d.ts +1 -8
- package/dist/components/BitkitTagsInput/BitkitTagsInput.js +24 -32
- package/dist/components/BitkitTextInput/BitkitTextInput.d.ts +1 -8
- package/dist/components/BitkitTextInput/BitkitTextInput.js +14 -22
- package/dist/components/BitkitToggle/components/BitkitToggleLabel.js +4 -4
- package/dist/components/index.d.ts +7 -0
- package/dist/main.js +44 -37
- package/dist/theme/recipes/Button.recipe.js +42 -42
- package/dist/theme/recipes/ControlButton.recipe.d.ts +16 -16
- package/dist/theme/recipes/ControlButton.recipe.js +16 -16
- package/dist/theme/recipes/SelectableTag.recipe.d.ts +2 -0
- package/dist/theme/recipes/SelectableTag.recipe.js +53 -0
- package/dist/theme/recipes/index.d.ts +17 -16
- package/dist/theme/recipes/index.js +14 -12
- package/dist/theme/semantic-tokens/semanticColors.js +20 -0
- package/dist/theme/slot-recipes/CodeSnippet.recipe.d.ts +4 -8
- package/dist/theme/slot-recipes/CodeSnippet.recipe.js +16 -5
- package/dist/theme/slot-recipes/Collapsible.recipe.d.ts +2 -0
- package/dist/theme/slot-recipes/Collapsible.recipe.js +56 -0
- package/dist/theme/slot-recipes/ExpandableCard.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/Field.recipe.js +2 -2
- package/dist/theme/slot-recipes/FileUpload.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/GroupHeading.recipe.d.ts +2 -0
- package/dist/theme/slot-recipes/GroupHeading.recipe.js +41 -0
- package/dist/theme/slot-recipes/InlineLoading.recipe.d.ts +3 -3
- package/dist/theme/slot-recipes/InlineLoading.recipe.js +3 -3
- package/dist/theme/slot-recipes/PaginationLoadMore.recipe.d.ts +41 -0
- package/dist/theme/slot-recipes/PaginationLoadMore.recipe.js +59 -0
- package/dist/theme/slot-recipes/SectionHeading.recipe.d.ts +2 -0
- package/dist/theme/slot-recipes/SectionHeading.recipe.js +52 -0
- package/dist/theme/slot-recipes/Table.recipe.d.ts +134 -1
- package/dist/theme/slot-recipes/Table.recipe.js +132 -14
- package/dist/theme/slot-recipes/TagsInput.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/Tooltip.recipe.js +4 -1
- package/dist/theme/slot-recipes/index.d.ts +187 -15
- package/dist/theme/slot-recipes/index.js +60 -52
- package/dist/theme/tokens/sizesAndSpacing.js +3 -4
- package/package.json +8 -8
|
@@ -317,6 +317,26 @@ var n = t.colors(e({
|
|
|
317
317
|
"fg-hover": { value: { base: "{colors.sys.indigo}" } },
|
|
318
318
|
"fg-active": { value: { base: "{colors.sys.indigo.strong}" } },
|
|
319
319
|
"fg-disabled": { value: { base: "{colors.sys.fg.disabled}" } }
|
|
320
|
+
},
|
|
321
|
+
control: {
|
|
322
|
+
bg: { value: { base: "transparent" } },
|
|
323
|
+
"bg-hover": { value: { base: "{colors.sys.bg.subtle}" } },
|
|
324
|
+
"bg-active": { value: { base: "{colors.sys.bg.moderate}" } },
|
|
325
|
+
"bg-disabled": { value: { base: "{colors.sys.bg.minimal}" } },
|
|
326
|
+
fg: { value: { base: "{colors.sys.fg.secondary}" } },
|
|
327
|
+
"fg-hover": { value: { base: "{colors.sys.fg.primary}" } },
|
|
328
|
+
"fg-active": { value: { base: "{colors.sys.fg.primary}" } },
|
|
329
|
+
"fg-disabled": { value: { base: "{colors.sys.fg.disabled}" } }
|
|
330
|
+
},
|
|
331
|
+
"control-danger": {
|
|
332
|
+
bg: { value: { base: "transparent" } },
|
|
333
|
+
"bg-hover": { value: { base: "{colors.sys.red.minimal}" } },
|
|
334
|
+
"bg-active": { value: { base: "{colors.sys.red.moderate}" } },
|
|
335
|
+
"bg-disabled": { value: { base: "{colors.sys.bg.minimal}" } },
|
|
336
|
+
fg: { value: { base: "{colors.sys.red}" } },
|
|
337
|
+
"fg-hover": { value: { base: "{colors.sys.red}" } },
|
|
338
|
+
"fg-active": { value: { base: "{colors.sys.red.strong}" } },
|
|
339
|
+
"fg-disabled": { value: { base: "{colors.sys.fg.disabled}" } }
|
|
320
340
|
}
|
|
321
341
|
},
|
|
322
342
|
"ui-header": {
|
|
@@ -5,18 +5,10 @@ declare const codeSnippetSlotRecipe: import('@chakra-ui/react').SlotRecipeDefini
|
|
|
5
5
|
alignItems: "center";
|
|
6
6
|
borderRadius: "2";
|
|
7
7
|
color: "text/body";
|
|
8
|
-
cursor: "pointer";
|
|
9
8
|
display: "inline-flex";
|
|
10
9
|
paddingBlock: "2";
|
|
11
10
|
paddingInline: "6";
|
|
12
|
-
userSelect: "none";
|
|
13
11
|
whiteSpace: "nowrap";
|
|
14
|
-
_hover: {
|
|
15
|
-
background: "background/hover";
|
|
16
|
-
};
|
|
17
|
-
_active: {
|
|
18
|
-
background: "background/active";
|
|
19
|
-
};
|
|
20
12
|
};
|
|
21
13
|
};
|
|
22
14
|
single: {
|
|
@@ -141,6 +133,10 @@ declare const codeSnippetSlotRecipe: import('@chakra-ui/react').SlotRecipeDefini
|
|
|
141
133
|
};
|
|
142
134
|
};
|
|
143
135
|
};
|
|
136
|
+
interactive: {
|
|
137
|
+
true: {};
|
|
138
|
+
false: {};
|
|
139
|
+
};
|
|
144
140
|
hasShowMore: {
|
|
145
141
|
true: {};
|
|
146
142
|
false: {};
|
|
@@ -41,14 +41,10 @@ var t = e({
|
|
|
41
41
|
alignItems: "center",
|
|
42
42
|
borderRadius: "2",
|
|
43
43
|
color: "text/body",
|
|
44
|
-
cursor: "pointer",
|
|
45
44
|
display: "inline-flex",
|
|
46
45
|
paddingBlock: "2",
|
|
47
46
|
paddingInline: "6",
|
|
48
|
-
|
|
49
|
-
whiteSpace: "nowrap",
|
|
50
|
-
_hover: { background: "background/hover" },
|
|
51
|
-
_active: { background: "background/active" }
|
|
47
|
+
whiteSpace: "nowrap"
|
|
52
48
|
} },
|
|
53
49
|
single: {
|
|
54
50
|
root: {
|
|
@@ -162,6 +158,10 @@ var t = e({
|
|
|
162
158
|
content: { textStyle: "code/lg" }
|
|
163
159
|
}
|
|
164
160
|
},
|
|
161
|
+
interactive: {
|
|
162
|
+
true: {},
|
|
163
|
+
false: {}
|
|
164
|
+
},
|
|
165
165
|
hasShowMore: {
|
|
166
166
|
true: {},
|
|
167
167
|
false: {}
|
|
@@ -172,6 +172,16 @@ var t = e({
|
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
compoundVariants: [
|
|
175
|
+
{
|
|
176
|
+
variant: "inline",
|
|
177
|
+
interactive: !0,
|
|
178
|
+
css: { root: {
|
|
179
|
+
cursor: "pointer",
|
|
180
|
+
userSelect: "none",
|
|
181
|
+
_hover: { background: "background/hover" },
|
|
182
|
+
_active: { background: "background/active" }
|
|
183
|
+
} }
|
|
184
|
+
},
|
|
175
185
|
{
|
|
176
186
|
variant: "multi",
|
|
177
187
|
hasShowMore: !0,
|
|
@@ -210,6 +220,7 @@ var t = e({
|
|
|
210
220
|
}
|
|
211
221
|
],
|
|
212
222
|
defaultVariants: {
|
|
223
|
+
interactive: !1,
|
|
213
224
|
size: "lg",
|
|
214
225
|
variant: "single"
|
|
215
226
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
|
|
2
|
+
import { collapsibleAnatomy as t } from "@chakra-ui/react/anatomy";
|
|
3
|
+
//#region lib/theme/slot-recipes/Collapsible.recipe.ts
|
|
4
|
+
var n = e({
|
|
5
|
+
className: "collapsible",
|
|
6
|
+
slots: [...t.keys()],
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
width: "100%"
|
|
12
|
+
},
|
|
13
|
+
content: {
|
|
14
|
+
overflow: "hidden",
|
|
15
|
+
color: "text/body",
|
|
16
|
+
textStyle: "body/lg/regular",
|
|
17
|
+
position: "relative",
|
|
18
|
+
_open: {
|
|
19
|
+
animationName: "expand-height",
|
|
20
|
+
animationDuration: "moderate"
|
|
21
|
+
},
|
|
22
|
+
_closed: {
|
|
23
|
+
animationName: "collapse-height",
|
|
24
|
+
animationDuration: "moderate",
|
|
25
|
+
_after: {
|
|
26
|
+
content: "\"\"",
|
|
27
|
+
position: "absolute",
|
|
28
|
+
insetInlineStart: "0",
|
|
29
|
+
insetInlineEnd: "0",
|
|
30
|
+
bottom: "0",
|
|
31
|
+
height: "32",
|
|
32
|
+
background: "linear-gradient(to top, {colors.background.primary}, transparent)",
|
|
33
|
+
pointerEvents: "none"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
trigger: {
|
|
38
|
+
display: "inline-flex",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
color: "text/link",
|
|
41
|
+
cursor: "pointer",
|
|
42
|
+
gap: "4",
|
|
43
|
+
textStyle: "body/md/regular",
|
|
44
|
+
paddingBlockStart: "8",
|
|
45
|
+
width: "fit-content",
|
|
46
|
+
_hover: {
|
|
47
|
+
color: "text/link-hover",
|
|
48
|
+
_active: { color: "text/primary" }
|
|
49
|
+
},
|
|
50
|
+
_active: { color: "text/primary" }
|
|
51
|
+
},
|
|
52
|
+
indicator: {}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { n as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const expandableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "suffix" | "
|
|
1
|
+
declare const expandableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "suffix" | "collapsible" | "root" | "secdText" | "description", {
|
|
2
2
|
size: {
|
|
3
3
|
md: {
|
|
4
4
|
header: {
|
|
@@ -17,14 +17,14 @@ var n = e({
|
|
|
17
17
|
color: "input/text/label",
|
|
18
18
|
textStyle: "comp/input/label",
|
|
19
19
|
marginBlockEnd: "4",
|
|
20
|
-
"& span": {
|
|
20
|
+
"& > span": {
|
|
21
21
|
marginInlineStart: "2",
|
|
22
22
|
color: "input/text/helper",
|
|
23
23
|
fontWeight: "normal"
|
|
24
24
|
},
|
|
25
25
|
"[data-disabled] &": {
|
|
26
26
|
color: "text/disabled",
|
|
27
|
-
"& span": { color: "text/disabled" }
|
|
27
|
+
"& > span": { color: "text/disabled" }
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
errorText: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const fileUploadSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "item" | "itemContent" | "trigger" | "clearTrigger" | "itemGroup" | "
|
|
1
|
+
declare const fileUploadSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "item" | "itemContent" | "trigger" | "clearTrigger" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "dropzoneContent" | "fileText", {
|
|
2
2
|
variant: {
|
|
3
3
|
image: {
|
|
4
4
|
root: {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const groupHeadingRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "separator" | "icon" | "root" | "titleBlock", import('@chakra-ui/react').SlotRecipeVariantRecord<"label" | "separator" | "icon" | "root" | "titleBlock">>;
|
|
2
|
+
export default groupHeadingRecipe;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
|
|
2
|
+
//#region lib/theme/slot-recipes/GroupHeading.recipe.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
className: "group-heading",
|
|
5
|
+
slots: [
|
|
6
|
+
"root",
|
|
7
|
+
"titleBlock",
|
|
8
|
+
"icon",
|
|
9
|
+
"label",
|
|
10
|
+
"separator"
|
|
11
|
+
],
|
|
12
|
+
base: {
|
|
13
|
+
root: {
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
display: "flex",
|
|
16
|
+
gap: "16",
|
|
17
|
+
overflow: "clip",
|
|
18
|
+
paddingBlockEnd: "4",
|
|
19
|
+
paddingBlockStart: "8",
|
|
20
|
+
paddingInlineEnd: "8"
|
|
21
|
+
},
|
|
22
|
+
titleBlock: {
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
display: "flex",
|
|
25
|
+
flexShrink: 0,
|
|
26
|
+
gap: "4"
|
|
27
|
+
},
|
|
28
|
+
icon: {
|
|
29
|
+
color: "icon/secondary",
|
|
30
|
+
flexShrink: 0
|
|
31
|
+
},
|
|
32
|
+
label: {
|
|
33
|
+
color: "text/tertiary",
|
|
34
|
+
flexShrink: 0,
|
|
35
|
+
textStyle: "heading/h6"
|
|
36
|
+
},
|
|
37
|
+
separator: { flex: 1 }
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { t as default };
|
|
@@ -18,17 +18,17 @@ declare const inlineLoadingRecipe: import('@chakra-ui/react').SlotRecipeDefiniti
|
|
|
18
18
|
};
|
|
19
19
|
status: {
|
|
20
20
|
error: {
|
|
21
|
-
|
|
21
|
+
root: {
|
|
22
22
|
color: "text/body";
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
loading: {
|
|
26
|
-
|
|
26
|
+
root: {
|
|
27
27
|
color: "text/secondary";
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
success: {
|
|
31
|
-
|
|
31
|
+
root: {
|
|
32
32
|
color: "text/body";
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -18,9 +18,9 @@ var t = e({
|
|
|
18
18
|
lg: { label: { textStyle: "body/lg/regular" } }
|
|
19
19
|
},
|
|
20
20
|
status: {
|
|
21
|
-
error: {
|
|
22
|
-
loading: {
|
|
23
|
-
success: {
|
|
21
|
+
error: { root: { color: "text/body" } },
|
|
22
|
+
loading: { root: { color: "text/secondary" } },
|
|
23
|
+
success: { root: { color: "text/body" } }
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
defaultVariants: {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const paginationLoadMoreRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"root" | "counter", {
|
|
2
|
+
size: {
|
|
3
|
+
md: {
|
|
4
|
+
root: {
|
|
5
|
+
gap: "24";
|
|
6
|
+
minHeight: string;
|
|
7
|
+
};
|
|
8
|
+
counter: {
|
|
9
|
+
textStyle: "body/md/regular";
|
|
10
|
+
'&:has(+ *)': {
|
|
11
|
+
paddingInlineEnd: "24";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
sm: {
|
|
16
|
+
root: {
|
|
17
|
+
gap: "16";
|
|
18
|
+
minHeight: "48";
|
|
19
|
+
};
|
|
20
|
+
counter: {
|
|
21
|
+
textStyle: "body/md/regular";
|
|
22
|
+
'&:has(+ *)': {
|
|
23
|
+
paddingInlineEnd: "16";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
xs: {
|
|
28
|
+
root: {
|
|
29
|
+
gap: "12";
|
|
30
|
+
minHeight: "32";
|
|
31
|
+
};
|
|
32
|
+
counter: {
|
|
33
|
+
textStyle: "body/sm/regular";
|
|
34
|
+
'&:has(+ *)': {
|
|
35
|
+
paddingInlineEnd: "12";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}>;
|
|
41
|
+
export default paginationLoadMoreRecipe;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { rem as e } from "../themeUtils.js";
|
|
2
|
+
import { defineSlotRecipe as t } from "@chakra-ui/react/styled-system";
|
|
3
|
+
//#region lib/theme/slot-recipes/PaginationLoadMore.recipe.ts
|
|
4
|
+
var n = t({
|
|
5
|
+
className: "pagination-load-more",
|
|
6
|
+
slots: ["root", "counter"],
|
|
7
|
+
base: {
|
|
8
|
+
root: {
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
display: "flex",
|
|
11
|
+
paddingBlock: "8",
|
|
12
|
+
paddingInline: "16"
|
|
13
|
+
},
|
|
14
|
+
counter: {
|
|
15
|
+
color: "text/secondary",
|
|
16
|
+
fontVariantNumeric: "tabular-nums",
|
|
17
|
+
"&:has(+ *)": {
|
|
18
|
+
borderInlineEndColor: "border/regular",
|
|
19
|
+
borderInlineEndStyle: "solid",
|
|
20
|
+
borderInlineEndWidth: "1px"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
variants: { size: {
|
|
25
|
+
md: {
|
|
26
|
+
root: {
|
|
27
|
+
gap: "24",
|
|
28
|
+
minHeight: e(56)
|
|
29
|
+
},
|
|
30
|
+
counter: {
|
|
31
|
+
textStyle: "body/md/regular",
|
|
32
|
+
"&:has(+ *)": { paddingInlineEnd: "24" }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
sm: {
|
|
36
|
+
root: {
|
|
37
|
+
gap: "16",
|
|
38
|
+
minHeight: "48"
|
|
39
|
+
},
|
|
40
|
+
counter: {
|
|
41
|
+
textStyle: "body/md/regular",
|
|
42
|
+
"&:has(+ *)": { paddingInlineEnd: "16" }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
xs: {
|
|
46
|
+
root: {
|
|
47
|
+
gap: "12",
|
|
48
|
+
minHeight: "32"
|
|
49
|
+
},
|
|
50
|
+
counter: {
|
|
51
|
+
textStyle: "body/sm/regular",
|
|
52
|
+
"&:has(+ *)": { paddingInlineEnd: "12" }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
} },
|
|
56
|
+
defaultVariants: { size: "md" }
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
export { n as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const sectionHeadingRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "icon" | "root" | "helperText" | "titleBlock" | "contentBlock" | "helperBlock", import('@chakra-ui/react').SlotRecipeVariantRecord<"label" | "icon" | "root" | "helperText" | "titleBlock" | "contentBlock" | "helperBlock">>;
|
|
2
|
+
export default sectionHeadingRecipe;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
|
|
2
|
+
//#region lib/theme/slot-recipes/SectionHeading.recipe.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
className: "section-heading",
|
|
5
|
+
slots: [
|
|
6
|
+
"root",
|
|
7
|
+
"contentBlock",
|
|
8
|
+
"titleBlock",
|
|
9
|
+
"icon",
|
|
10
|
+
"label",
|
|
11
|
+
"helperBlock",
|
|
12
|
+
"helperText"
|
|
13
|
+
],
|
|
14
|
+
base: {
|
|
15
|
+
root: {
|
|
16
|
+
alignItems: "end",
|
|
17
|
+
display: "flex",
|
|
18
|
+
gap: "32"
|
|
19
|
+
},
|
|
20
|
+
contentBlock: {
|
|
21
|
+
display: "flex",
|
|
22
|
+
flex: 1,
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
gap: "4",
|
|
25
|
+
minWidth: 0
|
|
26
|
+
},
|
|
27
|
+
titleBlock: {
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
display: "flex",
|
|
30
|
+
gap: "6"
|
|
31
|
+
},
|
|
32
|
+
icon: {
|
|
33
|
+
color: "icon/tertiary",
|
|
34
|
+
flexShrink: 0
|
|
35
|
+
},
|
|
36
|
+
label: {
|
|
37
|
+
color: "text/primary",
|
|
38
|
+
textStyle: "heading/h3"
|
|
39
|
+
},
|
|
40
|
+
helperBlock: {
|
|
41
|
+
alignItems: "center",
|
|
42
|
+
display: "flex",
|
|
43
|
+
gap: "4"
|
|
44
|
+
},
|
|
45
|
+
helperText: {
|
|
46
|
+
color: "text/secondary",
|
|
47
|
+
textStyle: "body/md/regular"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export { t as default };
|
|
@@ -1,2 +1,135 @@
|
|
|
1
|
-
declare const tableSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "caption" | "footer" | "header" | "cell" | "row" | "root" | "columnHeader",
|
|
1
|
+
declare const tableSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "caption" | "footer" | "header" | "cell" | "row" | "root" | "columnHeader", {
|
|
2
|
+
variant: {
|
|
3
|
+
default: {
|
|
4
|
+
root: {
|
|
5
|
+
borderColor: "border/minimal";
|
|
6
|
+
borderRadius: "4";
|
|
7
|
+
borderStyle: "solid";
|
|
8
|
+
borderWidth: "1px";
|
|
9
|
+
overflow: "hidden";
|
|
10
|
+
};
|
|
11
|
+
header: {
|
|
12
|
+
'& :where(th)': {
|
|
13
|
+
backgroundColor: "background/tertiary";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
columnHeader: {
|
|
17
|
+
borderBottomColor: "border/minimal";
|
|
18
|
+
paddingBlock: "12";
|
|
19
|
+
paddingInline: "16";
|
|
20
|
+
};
|
|
21
|
+
cell: {
|
|
22
|
+
borderBottomColor: "border/minimal";
|
|
23
|
+
paddingInline: "16";
|
|
24
|
+
};
|
|
25
|
+
footer: {
|
|
26
|
+
borderTopColor: "border/minimal";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
borderless: {
|
|
30
|
+
columnHeader: {
|
|
31
|
+
borderBottomColor: "border/regular";
|
|
32
|
+
padding: "12";
|
|
33
|
+
};
|
|
34
|
+
cell: {
|
|
35
|
+
borderBottomColor: "border/regular";
|
|
36
|
+
paddingInline: "12";
|
|
37
|
+
};
|
|
38
|
+
footer: {
|
|
39
|
+
borderTopColor: "border/regular";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
layout: {
|
|
44
|
+
table: {
|
|
45
|
+
root: {
|
|
46
|
+
borderCollapse: "separate";
|
|
47
|
+
borderSpacing: "0";
|
|
48
|
+
};
|
|
49
|
+
caption: {
|
|
50
|
+
marginBlockEnd: "24";
|
|
51
|
+
};
|
|
52
|
+
columnHeader: {
|
|
53
|
+
borderBottomStyle: "solid";
|
|
54
|
+
borderBottomWidth: "1px";
|
|
55
|
+
color: "text/primary";
|
|
56
|
+
fontWeight: "bold";
|
|
57
|
+
textAlign: "start";
|
|
58
|
+
textStyle: "heading/h5";
|
|
59
|
+
verticalAlign: "middle";
|
|
60
|
+
};
|
|
61
|
+
cell: {
|
|
62
|
+
borderBottomStyle: "solid";
|
|
63
|
+
borderBottomWidth: "1px";
|
|
64
|
+
paddingBlock: "20";
|
|
65
|
+
verticalAlign: "middle";
|
|
66
|
+
};
|
|
67
|
+
body: {
|
|
68
|
+
'& :where(tr)': {
|
|
69
|
+
_hover: {
|
|
70
|
+
backgroundColor: "background/hover";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
'& :where(tr:last-child) td': {
|
|
74
|
+
borderBottomWidth: "0";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
stacked: {
|
|
79
|
+
root: {
|
|
80
|
+
display: "block";
|
|
81
|
+
};
|
|
82
|
+
caption: {
|
|
83
|
+
display: "block";
|
|
84
|
+
padding: "16";
|
|
85
|
+
backgroundColor: "background/tertiary";
|
|
86
|
+
borderBottomColor: "border/minimal";
|
|
87
|
+
borderBottomStyle: "solid";
|
|
88
|
+
borderBottomWidth: "1px";
|
|
89
|
+
};
|
|
90
|
+
header: {
|
|
91
|
+
borderWidth: "0";
|
|
92
|
+
clip: "rect(0, 0, 0, 0)";
|
|
93
|
+
height: "1";
|
|
94
|
+
margin: "-1px";
|
|
95
|
+
overflow: "hidden";
|
|
96
|
+
padding: number;
|
|
97
|
+
position: "absolute";
|
|
98
|
+
whiteSpace: "nowrap";
|
|
99
|
+
width: "1";
|
|
100
|
+
};
|
|
101
|
+
body: {
|
|
102
|
+
display: "block";
|
|
103
|
+
};
|
|
104
|
+
row: {
|
|
105
|
+
borderBottomColor: "border/minimal";
|
|
106
|
+
borderBottomStyle: "solid";
|
|
107
|
+
borderBottomWidth: "1px";
|
|
108
|
+
display: "block";
|
|
109
|
+
paddingBlock: "12";
|
|
110
|
+
'&:last-child': {
|
|
111
|
+
borderBottomWidth: "0";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
cell: {
|
|
115
|
+
alignItems: "center";
|
|
116
|
+
display: "flex";
|
|
117
|
+
minHeight: "48";
|
|
118
|
+
paddingInline: "16";
|
|
119
|
+
_before: {
|
|
120
|
+
alignSelf: "center";
|
|
121
|
+
color: "text/primary";
|
|
122
|
+
content: "attr(data-label)";
|
|
123
|
+
flexShrink: number;
|
|
124
|
+
fontWeight: "semibold";
|
|
125
|
+
paddingInlineEnd: "16";
|
|
126
|
+
width: "96";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
footer: {
|
|
130
|
+
display: "block";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
2
135
|
export default tableSlotRecipe;
|