@bitrise/bitkit-v2 0.3.138 → 0.3.140

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,11 +1,18 @@
1
- type BreadcrumbItem = {
2
- title: string;
3
- href?: string;
4
- disabled?: boolean;
5
- items?: Omit<BreadcrumbItem, 'items'>[];
1
+ import { ReactElement } from 'react';
2
+ import { CurrentItemProps } from './components/BreadcrumbCurrentItem.tsx';
3
+ import { OverflowMenuProps } from './components/OverflowMenu.tsx';
4
+ import { ItemProps } from './types.ts';
5
+ type BitkitBreadcrumbChild = ReactElement<ItemProps> | ReactElement<CurrentItemProps> | ReactElement<OverflowMenuProps>;
6
+ export type BitkitBreadcrumbProps = {
7
+ children: BitkitBreadcrumbChild | BitkitBreadcrumbChild[];
6
8
  };
7
- type BitkitBreadcrumbProps = {
8
- items: Array<BreadcrumbItem>;
9
+ declare const BitkitBreadcrumb: import('react').ForwardRefExoticComponent<BitkitBreadcrumbProps & import('react').RefAttributes<HTMLElement>> & {
10
+ CurrentItem: import('react').ForwardRefExoticComponent<CurrentItemProps & import('react').RefAttributes<HTMLElement>>;
11
+ Item: import('react').ForwardRefExoticComponent<ItemProps & import('react').RefAttributes<HTMLAnchorElement>>;
12
+ OverflowMenu: {
13
+ ({ children }: OverflowMenuProps): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ OverflowMenuItem: import('react').ForwardRefExoticComponent<ItemProps & import('react').RefAttributes<HTMLAnchorElement>>;
9
17
  };
10
- declare const BitkitBreadcrumb: import('react').ForwardRefExoticComponent<BitkitBreadcrumbProps & import('react').RefAttributes<HTMLElement>>;
11
18
  export default BitkitBreadcrumb;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type CurrentItemProps = {
3
+ children: ReactNode;
4
+ };
5
+ declare const BreadcrumbCurrentItem: import('react').ForwardRefExoticComponent<CurrentItemProps & import('react').RefAttributes<HTMLElement>>;
6
+ export default BreadcrumbCurrentItem;
@@ -0,0 +1,3 @@
1
+ import { ItemProps } from '../types.ts';
2
+ declare const BreadcrumbItem: import('react').ForwardRefExoticComponent<ItemProps & import('react').RefAttributes<HTMLAnchorElement>>;
3
+ export default BreadcrumbItem;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export type OverflowMenuProps = {
3
+ children: ReactNode;
4
+ };
5
+ declare const OverflowMenu: {
6
+ ({ children }: OverflowMenuProps): import("react/jsx-runtime").JSX.Element;
7
+ displayName: string;
8
+ };
9
+ export default OverflowMenu;
@@ -0,0 +1,3 @@
1
+ import { ItemProps } from '../types.ts';
2
+ declare const OverflowMenuItem: import('react').ForwardRefExoticComponent<ItemProps & import('react').RefAttributes<HTMLAnchorElement>>;
3
+ export default OverflowMenuItem;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ type OverflowMenuTriggerProps = {
3
+ children?: ReactNode;
4
+ };
5
+ declare const OverflowMenuTrigger: {
6
+ ({ children }: OverflowMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
7
+ displayName: string;
8
+ };
9
+ export default OverflowMenuTrigger;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export type ItemProps = {
3
+ href: string;
4
+ children: ReactNode;
5
+ };
@@ -1,2 +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">>;
1
+ declare const breadcrumbSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"link" | "separator" | "ellipsis" | "root" | "item" | "list" | "currentLink" | "overflowMenu" | "overflowMenuItem", import('@chakra-ui/react').SlotRecipeVariantRecord<"link" | "separator" | "ellipsis" | "root" | "item" | "list" | "currentLink" | "overflowMenu" | "overflowMenuItem">>;
2
2
  export default breadcrumbSlotRecipe;
@@ -1,11 +1,19 @@
1
- import { breadcrumbAnatomy as o } from "@chakra-ui/react/anatomy";
2
- import { defineSlotRecipe as t } from "@chakra-ui/react/styled-system";
3
- const e = {
1
+ import { breadcrumbAnatomy as e } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as r } from "@chakra-ui/react/styled-system";
3
+ const o = {
4
4
  cursor: "pointer",
5
5
  color: "text/link",
6
6
  textStyle: "comp/link/md",
7
7
  _hover: {
8
8
  color: "text/link-hover",
9
+ textStyle: "comp/link/md-hover",
10
+ _active: {
11
+ color: "text/primary",
12
+ textStyle: "comp/link/md-hover"
13
+ }
14
+ },
15
+ _active: {
16
+ color: "text/primary",
9
17
  textStyle: "comp/link/md-hover"
10
18
  },
11
19
  _focusVisible: {
@@ -13,18 +21,14 @@ const e = {
13
21
  background: "background/primary",
14
22
  backgroundBlendMode: "multiply"
15
23
  },
16
- _active: {
17
- color: "text/primary",
18
- textStyle: "comp/link/md-hover"
19
- },
20
24
  _disabled: {
21
25
  color: "text/disabled",
22
26
  outline: "none",
23
27
  pointerEvents: "none"
24
28
  }
25
- }, i = t({
29
+ }, i = r({
26
30
  className: "breadcrumb",
27
- slots: o.keys(),
31
+ slots: e.extendWith("overflowMenu", "overflowMenuItem").keys(),
28
32
  base: {
29
33
  list: {
30
34
  display: "flex",
@@ -34,7 +38,7 @@ const e = {
34
38
  gap: "4"
35
39
  },
36
40
  link: {
37
- ...e
41
+ ...o
38
42
  },
39
43
  currentLink: {
40
44
  color: "text/body",
@@ -44,7 +48,38 @@ const e = {
44
48
  color: "icon/disabled"
45
49
  },
46
50
  ellipsis: {
47
- ...e
51
+ ...o
52
+ },
53
+ overflowMenu: {
54
+ display: "flex",
55
+ flexDirection: "column",
56
+ paddingY: "4",
57
+ backgroundColor: "background/primary",
58
+ border: "1px solid",
59
+ borderColor: "border/minimal",
60
+ borderRadius: "4",
61
+ boxShadow: "large",
62
+ outline: "none"
63
+ },
64
+ overflowMenuItem: {
65
+ paddingX: "16",
66
+ paddingY: "8",
67
+ outline: "none",
68
+ textStyle: "body/md/regular",
69
+ _hover: {
70
+ backgroundColor: "background/hover",
71
+ _active: {
72
+ backgroundColor: "background/active",
73
+ color: "text/primary"
74
+ }
75
+ },
76
+ _active: {
77
+ backgroundColor: "background/active",
78
+ color: "text/primary"
79
+ },
80
+ _highlighted: {
81
+ backgroundColor: "background/hover"
82
+ }
48
83
  }
49
84
  }
50
85
  });
@@ -184,7 +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
+ breadcrumb: import('@chakra-ui/react').SlotRecipeDefinition<"link" | "separator" | "ellipsis" | "root" | "item" | "list" | "currentLink" | "overflowMenu" | "overflowMenuItem", import('@chakra-ui/react').SlotRecipeVariantRecord<"link" | "separator" | "ellipsis" | "root" | "item" | "list" | "currentLink" | "overflowMenu" | "overflowMenuItem">>;
188
188
  card: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "root" | "description", {
189
189
  elevation: {
190
190
  true: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.138",
4
+ "version": "0.3.140",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",