@bitrise/bitkit-v2 0.3.76 → 0.3.78

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.
Files changed (29) hide show
  1. package/dist/components/BitkitActionBar/BitkitActionBar.js +19 -0
  2. package/dist/components/BitkitCloseButton/BitkitCloseButton.js +15 -14
  3. package/dist/components/BitkitColorButton/BitkitColorButton.js +8 -0
  4. package/dist/components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.d.ts +8 -0
  5. package/dist/components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.js +20 -0
  6. package/dist/components/BitkitInteractiveTooltip/BitkitInteractiveTooltip.d.ts +17 -0
  7. package/dist/components/BitkitInteractiveTooltip/BitkitInteractiveTooltip.js +46 -0
  8. package/dist/components/BitkitTabs/BitkitTabs.js +41 -0
  9. package/dist/components/BitkitToggle/components/BitkitToggleReadOnly.d.ts +1 -1
  10. package/dist/components/BitkitTooltip/BitkitTooltip.d.ts +3 -1
  11. package/dist/components/BitkitTooltip/BitkitTooltip.js +12 -5
  12. package/dist/components/index.d.ts +6 -0
  13. package/dist/main.js +1092 -1080
  14. package/dist/theme/recipes/DefinitionTooltip.recipe.d.ts +11 -0
  15. package/dist/theme/recipes/DefinitionTooltip.recipe.js +25 -0
  16. package/dist/theme/recipes/Link.recipe.d.ts +1 -1
  17. package/dist/theme/recipes/Link.recipe.js +1 -1
  18. package/dist/theme/recipes/index.d.ts +11 -1
  19. package/dist/theme/recipes/index.js +18 -16
  20. package/dist/theme/slot-recipes/ActionBar.recipe.js +6 -3
  21. package/dist/theme/slot-recipes/EmptyState.recipe.d.ts +1 -1
  22. package/dist/theme/slot-recipes/Tabs.recipe.d.ts +1 -1
  23. package/dist/theme/slot-recipes/Tooltip.recipe.d.ts +23 -1
  24. package/dist/theme/slot-recipes/Tooltip.recipe.js +30 -6
  25. package/dist/theme/slot-recipes/index.d.ts +25 -3
  26. package/dist/theme/tokens/colors.d.ts +22 -0
  27. package/dist/theme/tokens/colors.js +11 -0
  28. package/dist/theme/tokens/index.d.ts +11 -0
  29. package/package.json +4 -4
@@ -0,0 +1,11 @@
1
+ declare const definitionTooltipRecipe: import('@chakra-ui/react').RecipeDefinition<{
2
+ method: {
3
+ click: {
4
+ cursor: "pointer";
5
+ };
6
+ hover: {
7
+ cursor: "default";
8
+ };
9
+ };
10
+ }>;
11
+ export default definitionTooltipRecipe;
@@ -0,0 +1,25 @@
1
+ import { defineRecipe as o } from "@chakra-ui/react/styled-system";
2
+ const r = o({
3
+ className: "definition-tooltip",
4
+ base: {
5
+ borderBottom: "1px dotted",
6
+ borderBottomColor: "sys/neutral/bold",
7
+ borderRadius: "2",
8
+ "&:hover": {
9
+ borderBottomColor: "sys/purple/base"
10
+ }
11
+ },
12
+ variants: {
13
+ method: {
14
+ click: {
15
+ cursor: "pointer"
16
+ },
17
+ hover: {
18
+ cursor: "default"
19
+ }
20
+ }
21
+ }
22
+ });
23
+ export {
24
+ r as default
25
+ };
@@ -1,5 +1,5 @@
1
1
  declare const linkRecipe: import('@chakra-ui/react').RecipeDefinition<{
2
- variant: {
2
+ colorScheme: {
3
3
  purple: {
4
4
  color: "text/link";
5
5
  _hover: {
@@ -8,7 +8,7 @@ const r = e({
8
8
  }
9
9
  },
10
10
  variants: {
11
- variant: {
11
+ colorScheme: {
12
12
  purple: {
13
13
  color: "text/link",
14
14
  _hover: {
@@ -71,9 +71,19 @@ declare const recipes: {
71
71
  };
72
72
  };
73
73
  }>;
74
+ definitionTooltip: import('@chakra-ui/react').RecipeDefinition<{
75
+ method: {
76
+ click: {
77
+ cursor: "pointer";
78
+ };
79
+ hover: {
80
+ cursor: "default";
81
+ };
82
+ };
83
+ }>;
74
84
  input: import('@chakra-ui/react').RecipeDefinition<Record<"size", Record<"md" | "lg", import('@chakra-ui/react').SystemStyleObject>>>;
75
85
  link: import('@chakra-ui/react').RecipeDefinition<{
76
- variant: {
86
+ colorScheme: {
77
87
  purple: {
78
88
  color: "text/link";
79
89
  _hover: {
@@ -1,25 +1,27 @@
1
- import e from "./Badge.recipe.js";
2
- import o from "./Button.recipe.js";
1
+ import o from "./Badge.recipe.js";
2
+ import e from "./Button.recipe.js";
3
3
  import t from "./CloseButton.recipe.js";
4
- import r from "./ColorButton.recipe.js";
4
+ import i from "./ColorButton.recipe.js";
5
+ import r from "./DefinitionTooltip.recipe.js";
5
6
  import p from "./Input.recipe.js";
6
- import i from "./Link.recipe.js";
7
- import m from "./Separator.recipe.js";
8
- import n from "./Skeleton.recipe.js";
9
- import c from "./Spinner.recipe.js";
7
+ import m from "./Link.recipe.js";
8
+ import n from "./Separator.recipe.js";
9
+ import c from "./Skeleton.recipe.js";
10
+ import f from "./Spinner.recipe.js";
10
11
  import a from "./Textarea.recipe.js";
11
- const g = {
12
- badge: e,
13
- button: o,
12
+ const h = {
13
+ badge: o,
14
+ button: e,
14
15
  closeButton: t,
15
- colorButton: r,
16
+ colorButton: i,
17
+ definitionTooltip: r,
16
18
  input: p,
17
- link: i,
18
- separator: m,
19
- skeleton: n,
20
- spinner: c,
19
+ link: m,
20
+ separator: n,
21
+ skeleton: c,
22
+ spinner: f,
21
23
  textarea: a
22
24
  };
23
25
  export {
24
- g as default
26
+ h as default
25
27
  };
@@ -1,6 +1,6 @@
1
1
  import { actionBarAnatomy as t } from "@chakra-ui/react/anatomy";
2
- import { defineSlotRecipe as n } from "@chakra-ui/react/styled-system";
3
- const e = n({
2
+ import { defineSlotRecipe as a } from "@chakra-ui/react/styled-system";
3
+ const o = a({
4
4
  slots: t.keys(),
5
5
  className: "action-bar",
6
6
  base: {
@@ -61,8 +61,11 @@ const e = n({
61
61
  }
62
62
  }
63
63
  }
64
+ },
65
+ defaultVariants: {
66
+ size: "md"
64
67
  }
65
68
  });
66
69
  export {
67
- e as default
70
+ o as default
68
71
  };
@@ -1,4 +1,4 @@
1
- declare const emptyStateSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "indicator" | "description", {
1
+ declare const emptyStateSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "description" | "root" | "indicator", {
2
2
  colorScheme: {
3
3
  white: {
4
4
  root: {
@@ -1,4 +1,4 @@
1
- declare const tabsSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "root" | "indicator" | "trigger" | "contentGroup", {
1
+ declare const tabsSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "list" | "root" | "indicator" | "contentGroup", {
2
2
  variant: {
3
3
  line: {
4
4
  list: {
@@ -1,2 +1,24 @@
1
- declare const tooltipSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", import('@chakra-ui/react').SlotRecipeVariantRecord<"content" | "trigger" | "arrow" | "arrowTip" | "positioner">>;
1
+ declare const tooltipSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", {
2
+ size: {
3
+ sm: {
4
+ content: {
5
+ paddingInline: "8";
6
+ paddingBlock: "4";
7
+ borderRadius: "4";
8
+ textStyle: "body/sm/semibold";
9
+ };
10
+ };
11
+ md: {
12
+ content: {
13
+ paddingInline: "12";
14
+ paddingBlock: "8";
15
+ };
16
+ };
17
+ lg: {
18
+ content: {
19
+ padding: "16";
20
+ };
21
+ };
22
+ };
23
+ }>;
2
24
  export default tooltipSlotRecipe;
@@ -1,7 +1,7 @@
1
1
  import { tooltipAnatomy as t } from "@chakra-ui/react/anatomy";
2
- import { defineSlotRecipe as r } from "@chakra-ui/react/styled-system";
2
+ import { defineSlotRecipe as a } from "@chakra-ui/react/styled-system";
3
3
  import { rem as o } from "../themeUtils.js";
4
- const e = r({
4
+ const e = a({
5
5
  className: "tooltip",
6
6
  slots: t.keys(),
7
7
  base: {
@@ -9,14 +9,12 @@ const e = r({
9
9
  "--tooltip-bg": "colors.background.contrast",
10
10
  backgroundColor: "var(--tooltip-bg)",
11
11
  color: "text/on-contrast",
12
- paddingInline: "12",
13
- paddingBlock: "8",
14
- borderRadius: "8",
15
- textStyle: "body/md/regular",
16
12
  boxShadow: "tooltip",
17
13
  maxWidth: o(320),
18
14
  zIndex: "tooltip",
19
15
  transformOrigin: "var(--transform-origin)",
16
+ borderRadius: "8",
17
+ textStyle: "body/md/regular",
20
18
  _open: {
21
19
  animationStyle: "scale-fade-in",
22
20
  animationDuration: "fast"
@@ -35,6 +33,32 @@ const e = r({
35
33
  borderInlineStartWidth: o(1),
36
34
  borderColor: "var(--tooltip-bg)"
37
35
  }
36
+ },
37
+ variants: {
38
+ size: {
39
+ sm: {
40
+ content: {
41
+ paddingInline: "8",
42
+ paddingBlock: "4",
43
+ borderRadius: "4",
44
+ textStyle: "body/sm/semibold"
45
+ }
46
+ },
47
+ md: {
48
+ content: {
49
+ paddingInline: "12",
50
+ paddingBlock: "8"
51
+ }
52
+ },
53
+ lg: {
54
+ content: {
55
+ padding: "16"
56
+ }
57
+ }
58
+ }
59
+ },
60
+ defaultVariants: {
61
+ size: "md"
38
62
  }
39
63
  });
40
64
  export {
@@ -24,7 +24,7 @@ declare const slotRecipes: {
24
24
  };
25
25
  };
26
26
  }>;
27
- emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "root" | "indicator" | "description", {
27
+ emptyState: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "title" | "description" | "root" | "indicator", {
28
28
  colorScheme: {
29
29
  white: {
30
30
  root: {
@@ -103,7 +103,7 @@ declare const slotRecipes: {
103
103
  };
104
104
  };
105
105
  }>;
106
- tabs: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "list" | "root" | "indicator" | "trigger" | "contentGroup", {
106
+ tabs: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "list" | "root" | "indicator" | "contentGroup", {
107
107
  variant: {
108
108
  line: {
109
109
  list: {
@@ -156,6 +156,28 @@ declare const slotRecipes: {
156
156
  };
157
157
  };
158
158
  }>;
159
- tooltip: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", import('@chakra-ui/react').SlotRecipeVariantRecord<"content" | "trigger" | "arrow" | "arrowTip" | "positioner">>;
159
+ tooltip: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", {
160
+ size: {
161
+ sm: {
162
+ content: {
163
+ paddingInline: "8";
164
+ paddingBlock: "4";
165
+ borderRadius: "4";
166
+ textStyle: "body/sm/semibold";
167
+ };
168
+ };
169
+ md: {
170
+ content: {
171
+ paddingInline: "12";
172
+ paddingBlock: "8";
173
+ };
174
+ };
175
+ lg: {
176
+ content: {
177
+ padding: "16";
178
+ };
179
+ };
180
+ };
181
+ }>;
160
182
  };
161
183
  export default slotRecipes;
@@ -1,4 +1,15 @@
1
1
  export declare const COLOR_PALETTES: {
2
+ white: {
3
+ strong: {
4
+ value: string;
5
+ };
6
+ subtle: {
7
+ value: string;
8
+ };
9
+ moderate: {
10
+ value: string;
11
+ };
12
+ };
2
13
  neutral: {
3
14
  '10': {
4
15
  value: string;
@@ -560,6 +571,17 @@ declare const colors: {
560
571
  };
561
572
  };
562
573
  };
574
+ white: {
575
+ strong: {
576
+ value: string;
577
+ };
578
+ subtle: {
579
+ value: string;
580
+ };
581
+ moderate: {
582
+ value: string;
583
+ };
584
+ };
563
585
  neutral: {
564
586
  '10': {
565
587
  value: string;
@@ -1,5 +1,16 @@
1
1
  import { defineTokens as e } from "@chakra-ui/react/styled-system";
2
2
  const l = {
3
+ white: {
4
+ strong: {
5
+ value: "{colors.sys.fg.on-color}"
6
+ },
7
+ subtle: {
8
+ value: "{colors.sys.fg.on-color/15}"
9
+ },
10
+ moderate: {
11
+ value: "{colors.sys.fg.on-color/30}"
12
+ }
13
+ },
3
14
  neutral: {
4
15
  10: {
5
16
  value: "#201b22"
@@ -122,6 +122,17 @@ declare const tokens: {
122
122
  };
123
123
  };
124
124
  };
125
+ white: {
126
+ strong: {
127
+ value: string;
128
+ };
129
+ subtle: {
130
+ value: string;
131
+ };
132
+ moderate: {
133
+ value: string;
134
+ };
135
+ };
125
136
  neutral: {
126
137
  '10': {
127
138
  value: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.76",
4
+ "version": "0.3.78",
5
5
  "description": "Bitrise Design System Components built with Chakra UI v3",
6
6
  "keywords": [
7
7
  "react",
@@ -60,8 +60,8 @@
60
60
  "@figma-export/output-components-as-svg": "^6.2.4",
61
61
  "@figma-export/transform-svg-with-svgo": "^6.2.4",
62
62
  "@google-cloud/storage": "^7.17.3",
63
- "@storybook/addon-docs": "10.0.8",
64
- "@storybook/react-vite": "10.0.8",
63
+ "@storybook/addon-docs": "10.1.0",
64
+ "@storybook/react-vite": "10.1.0",
65
65
  "@svgr/plugin-jsx": "^8.1.0",
66
66
  "@types/node": "^24.10.1",
67
67
  "@types/react-dom": "^19.2.3",
@@ -72,7 +72,7 @@
72
72
  "react-dom": "^19.2.0",
73
73
  "react": "^19.2.0",
74
74
  "release-it": "^19.0.6",
75
- "storybook": "10.0.8",
75
+ "storybook": "10.1.0",
76
76
  "tsx": "^4.20.6",
77
77
  "typescript": "^5.9.3",
78
78
  "vite-plugin-dts": "^4.5.4",