@bitrise/bitkit-v2 0.3.129 → 0.3.131
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/BitkitBadge/BitkitBadge.d.ts +2 -2
- package/dist/components/BitkitBadge/BitkitBadge.js +12 -20
- package/dist/components/BitkitBreadcrumb/BitkitBreadcrumb.d.ts +11 -0
- package/dist/theme/breakpoints.d.ts +1 -1
- package/dist/theme/breakpoints.js +1 -1
- package/dist/theme/recipes/Badge.recipe.d.ts +2 -0
- package/dist/theme/recipes/Badge.recipe.js +25 -5
- package/dist/theme/recipes/index.d.ts +2 -0
- package/dist/theme/slot-recipes/Breadcrumb.recipe.d.ts +2 -0
- package/dist/theme/slot-recipes/Breadcrumb.recipe.js +53 -0
- package/dist/theme/slot-recipes/index.d.ts +1 -0
- package/dist/theme/slot-recipes/index.js +34 -32
- package/package.json +1 -1
|
@@ -2,13 +2,13 @@ import { BadgeProps } from '@chakra-ui/react/badge';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { COLOR_PALETTES } from '../../theme/tokens/colors';
|
|
4
4
|
export type BitkitBadgeProps = {
|
|
5
|
-
colorPalette?: keyof typeof COLOR_PALETTES;
|
|
6
5
|
children?: string;
|
|
6
|
+
colorPalette?: keyof typeof COLOR_PALETTES | 'ai';
|
|
7
7
|
icon?: ReactNode;
|
|
8
8
|
} & Omit<BadgeProps, 'children'>;
|
|
9
9
|
declare const BitkitBadge: import('react').ForwardRefExoticComponent<{
|
|
10
|
-
colorPalette?: keyof typeof COLOR_PALETTES;
|
|
11
10
|
children?: string;
|
|
11
|
+
colorPalette?: keyof typeof COLOR_PALETTES | "ai";
|
|
12
12
|
icon?: ReactNode;
|
|
13
13
|
} & Omit<BadgeProps, "children"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
14
14
|
export default BitkitBadge;
|
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Badge as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
const
|
|
5
|
-
const { children:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
paddingInlineStart: i && !r ? "8" : "4",
|
|
12
|
-
paddingInlineEnd: i ? "8" : "4",
|
|
13
|
-
children: [
|
|
14
|
-
r,
|
|
15
|
-
i
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
);
|
|
1
|
+
import { jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { Badge as l } from "@chakra-ui/react/badge";
|
|
3
|
+
import { forwardRef as f } from "react";
|
|
4
|
+
const x = f((s, d) => {
|
|
5
|
+
const { children: t, icon: r, size: i = "xs", ...a } = s;
|
|
6
|
+
let e, n;
|
|
7
|
+
return t && t.length > 1 && (e = i === "xs" ? "8" : "6", n = i === "xs" ? "8" : "6", r && (e = i === "xs" ? "4" : "2")), t && t.length === 1 && (e = i === "xs" ? "4" : "2", n = i === "xs" ? "4" : "2"), /* @__PURE__ */ o(l, { ref: d, ...a, size: i, paddingInlineStart: e, paddingInlineEnd: n, children: [
|
|
8
|
+
r,
|
|
9
|
+
t
|
|
10
|
+
] });
|
|
19
11
|
});
|
|
20
|
-
|
|
12
|
+
x.displayName = "BitkitBadge";
|
|
21
13
|
export {
|
|
22
|
-
|
|
14
|
+
x as default
|
|
23
15
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type BreadcrumbItem = {
|
|
2
|
+
title: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
items?: Omit<BreadcrumbItem, 'items'>[];
|
|
6
|
+
};
|
|
7
|
+
type BitkitBreadcrumbProps = {
|
|
8
|
+
items: Array<BreadcrumbItem>;
|
|
9
|
+
};
|
|
10
|
+
declare const BitkitBreadcrumb: import('react').ForwardRefExoticComponent<BitkitBreadcrumbProps & import('react').RefAttributes<HTMLElement>>;
|
|
11
|
+
export default BitkitBreadcrumb;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineRecipe as
|
|
2
|
-
const
|
|
1
|
+
import { defineRecipe as t } from "@chakra-ui/react/styled-system";
|
|
2
|
+
const e = t({
|
|
3
3
|
className: "badge",
|
|
4
4
|
base: {
|
|
5
5
|
colorPalette: "neutral",
|
|
@@ -7,18 +7,22 @@ const t = e({
|
|
|
7
7
|
alignItems: "center",
|
|
8
8
|
justifyContent: "center",
|
|
9
9
|
gap: "4",
|
|
10
|
-
paddingInline: "4",
|
|
11
10
|
borderRadius: "4",
|
|
12
11
|
textStyle: "comp/badge/sm",
|
|
13
12
|
color: "colorPalette.strong",
|
|
14
|
-
background: "colorPalette.subtle"
|
|
13
|
+
background: "colorPalette.subtle",
|
|
14
|
+
width: "fit-content",
|
|
15
|
+
height: "fit-content",
|
|
16
|
+
verticalAlign: "bottom"
|
|
15
17
|
},
|
|
16
18
|
variants: {
|
|
17
19
|
size: {
|
|
18
20
|
xxs: {
|
|
21
|
+
minWidth: "20",
|
|
19
22
|
paddingBlock: "2"
|
|
20
23
|
},
|
|
21
24
|
xs: {
|
|
25
|
+
minWidth: "24",
|
|
22
26
|
paddingBlock: "4"
|
|
23
27
|
}
|
|
24
28
|
},
|
|
@@ -34,6 +38,22 @@ const t = e({
|
|
|
34
38
|
}
|
|
35
39
|
},
|
|
36
40
|
compoundVariants: [
|
|
41
|
+
{
|
|
42
|
+
colorPalette: "ai",
|
|
43
|
+
variant: "subtle",
|
|
44
|
+
css: {
|
|
45
|
+
background: "sys/ai-gradient/subtle",
|
|
46
|
+
color: "status/ai/text"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
colorPalette: "ai",
|
|
51
|
+
variant: "bold",
|
|
52
|
+
css: {
|
|
53
|
+
background: "sys/ai-gradient/bold",
|
|
54
|
+
color: "text/on-color"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
37
57
|
{
|
|
38
58
|
colorPalette: "yellow",
|
|
39
59
|
variant: "bold",
|
|
@@ -49,5 +69,5 @@ const t = e({
|
|
|
49
69
|
}
|
|
50
70
|
});
|
|
51
71
|
export {
|
|
52
|
-
|
|
72
|
+
e as default
|
|
53
73
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const breadcrumbSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"link" | "separator" | "ellipsis" | "root" | "item" | "list" | "currentLink", import('@chakra-ui/react').SlotRecipeVariantRecord<"link" | "separator" | "ellipsis" | "root" | "item" | "list" | "currentLink">>;
|
|
2
|
+
export default breadcrumbSlotRecipe;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { breadcrumbAnatomy as o } from "@chakra-ui/react/anatomy";
|
|
2
|
+
import { defineSlotRecipe as t } from "@chakra-ui/react/styled-system";
|
|
3
|
+
const e = {
|
|
4
|
+
cursor: "pointer",
|
|
5
|
+
color: "text/link",
|
|
6
|
+
textStyle: "comp/link/md",
|
|
7
|
+
_hover: {
|
|
8
|
+
color: "text/link-hover",
|
|
9
|
+
textStyle: "comp/link/md-hover"
|
|
10
|
+
},
|
|
11
|
+
_focusVisible: {
|
|
12
|
+
borderRadius: "2",
|
|
13
|
+
background: "background/primary",
|
|
14
|
+
backgroundBlendMode: "multiply"
|
|
15
|
+
},
|
|
16
|
+
_active: {
|
|
17
|
+
color: "text/primary",
|
|
18
|
+
textStyle: "comp/link/md-hover"
|
|
19
|
+
},
|
|
20
|
+
_disabled: {
|
|
21
|
+
color: "text/disabled",
|
|
22
|
+
outline: "none",
|
|
23
|
+
pointerEvents: "none"
|
|
24
|
+
}
|
|
25
|
+
}, i = t({
|
|
26
|
+
className: "breadcrumb",
|
|
27
|
+
slots: o.keys(),
|
|
28
|
+
base: {
|
|
29
|
+
list: {
|
|
30
|
+
display: "flex",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
whiteSpace: "nowrap",
|
|
33
|
+
color: "text/tertiary",
|
|
34
|
+
gap: "4"
|
|
35
|
+
},
|
|
36
|
+
link: {
|
|
37
|
+
...e
|
|
38
|
+
},
|
|
39
|
+
currentLink: {
|
|
40
|
+
color: "text/body",
|
|
41
|
+
textStyle: "body/md/semibold"
|
|
42
|
+
},
|
|
43
|
+
separator: {
|
|
44
|
+
color: "icon/disabled"
|
|
45
|
+
},
|
|
46
|
+
ellipsis: {
|
|
47
|
+
...e
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
i as default
|
|
53
|
+
};
|
|
@@ -184,6 +184,7 @@ declare const slotRecipes: {
|
|
|
184
184
|
rounded: {};
|
|
185
185
|
};
|
|
186
186
|
}>;
|
|
187
|
+
breadcrumb: import('@chakra-ui/react').SlotRecipeDefinition<"link" | "separator" | "ellipsis" | "root" | "item" | "list" | "currentLink", import('@chakra-ui/react').SlotRecipeVariantRecord<"link" | "separator" | "ellipsis" | "root" | "item" | "list" | "currentLink">>;
|
|
187
188
|
card: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "root" | "description", {
|
|
188
189
|
elevation: {
|
|
189
190
|
true: {
|
|
@@ -2,44 +2,46 @@ import e from "./Accordion.recipe.js";
|
|
|
2
2
|
import t from "./ActionBar.recipe.js";
|
|
3
3
|
import o from "./Alert.recipe.js";
|
|
4
4
|
import r from "./Avatar.recipe.js";
|
|
5
|
-
import i from "./
|
|
6
|
-
import p from "./
|
|
7
|
-
import c from "./
|
|
8
|
-
import m from "./
|
|
9
|
-
import a from "./
|
|
10
|
-
import l from "./
|
|
11
|
-
import S from "./
|
|
12
|
-
import f from "./
|
|
13
|
-
import R from "./
|
|
14
|
-
import d from "./
|
|
15
|
-
import n from "./
|
|
5
|
+
import i from "./Breadcrumb.recipe.js";
|
|
6
|
+
import p from "./Card.recipe.js";
|
|
7
|
+
import c from "./Checkbox.recipe.js";
|
|
8
|
+
import m from "./DatePicker.recipe.js";
|
|
9
|
+
import a from "./DatePickerSelect.recipe.js";
|
|
10
|
+
import l from "./EmptyState.recipe.js";
|
|
11
|
+
import S from "./ExpandableCard.recipe.js";
|
|
12
|
+
import f from "./Field.recipe.js";
|
|
13
|
+
import R from "./Fieldset.recipe.js";
|
|
14
|
+
import d from "./NativeSelect.recipe.js";
|
|
15
|
+
import n from "./NumberInput.recipe.js";
|
|
16
|
+
import b from "./RadioGroup.recipe.js";
|
|
16
17
|
import { selectSlotRecipe as s } from "./Select.recipe.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
const
|
|
18
|
+
import u from "./Switch.recipe.js";
|
|
19
|
+
import k from "./Tabs.recipe.js";
|
|
20
|
+
import x from "./Tag.recipe.js";
|
|
21
|
+
import h from "./Tooltip.recipe.js";
|
|
22
|
+
const N = {
|
|
22
23
|
actionBar: t,
|
|
23
24
|
avatar: r,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
breadcrumb: i,
|
|
26
|
+
card: p,
|
|
27
|
+
datePicker: m,
|
|
28
|
+
datePickerSelect: a,
|
|
29
|
+
checkbox: c,
|
|
30
|
+
emptyState: l,
|
|
31
|
+
expandableCard: S,
|
|
32
|
+
field: f,
|
|
33
|
+
fieldset: R,
|
|
34
|
+
nativeSelect: d,
|
|
33
35
|
alert: o,
|
|
34
|
-
numberInput:
|
|
35
|
-
radioGroup:
|
|
36
|
+
numberInput: n,
|
|
37
|
+
radioGroup: b,
|
|
36
38
|
select: s,
|
|
37
|
-
switch:
|
|
38
|
-
tabs:
|
|
39
|
-
tag:
|
|
40
|
-
tooltip:
|
|
39
|
+
switch: u,
|
|
40
|
+
tabs: k,
|
|
41
|
+
tag: x,
|
|
42
|
+
tooltip: h,
|
|
41
43
|
accordion: e
|
|
42
44
|
};
|
|
43
45
|
export {
|
|
44
|
-
|
|
46
|
+
N as default
|
|
45
47
|
};
|