@bitrise/bitkit-v2 0.3.78 → 0.3.80

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,13 +1,16 @@
1
1
  import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
- const a = e({
2
+ const t = e({
3
3
  className: "badge",
4
4
  base: {
5
+ colorPalette: "neutral",
5
6
  display: "inline-flex",
6
7
  alignItems: "center",
7
8
  gap: "4",
8
9
  padding: "4",
9
10
  borderRadius: "4",
10
- textStyle: "comp/badge/sm"
11
+ textStyle: "comp/badge/sm",
12
+ color: "colorPalette.strong",
13
+ background: "colorPalette.subtle"
11
14
  },
12
15
  variants: {
13
16
  variant: {
@@ -33,5 +36,5 @@ const a = e({
33
36
  ]
34
37
  });
35
38
  export {
36
- a as default
39
+ t as default
37
40
  };
@@ -2,6 +2,7 @@ import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
2
  const r = e({
3
3
  className: "close-button",
4
4
  base: {
5
+ colorPalette: "neutral",
5
6
  display: "inline-flex",
6
7
  alignItems: "center",
7
8
  justifyContent: "center",
@@ -33,8 +34,7 @@ const r = e({
33
34
  }
34
35
  },
35
36
  defaultVariants: {
36
- size: "xs",
37
- colorPalette: "neutral"
37
+ size: "xs"
38
38
  }
39
39
  });
40
40
  export {
@@ -2,6 +2,7 @@ import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
2
  const o = e({
3
3
  className: "color-button",
4
4
  base: {
5
+ colorPalette: "neutral",
5
6
  display: "inline-flex",
6
7
  alignItems: "center",
7
8
  justifyContent: "center",
@@ -24,7 +25,6 @@ const o = e({
24
25
  }
25
26
  },
26
27
  defaultVariants: {
27
- colorPalette: "neutral",
28
28
  size: "sm"
29
29
  }
30
30
  });
@@ -1,11 +1,15 @@
1
1
  import { defineRecipe as e } from "@chakra-ui/react/styled-system";
2
- const a = e({
2
+ const r = e({
3
3
  className: "skeleton",
4
4
  base: {
5
5
  "--animate-from": "200%",
6
6
  "--animate-to": "-200%",
7
7
  "--start-color": "colors.utilities.skeleton",
8
- "--end-color": "colors.utilities.skeleton-strong"
8
+ "--end-color": "colors.utilities.skeleton-strong",
9
+ overflow: "hidden",
10
+ display: "flex",
11
+ alignItems: "center",
12
+ justifyContent: "center"
9
13
  },
10
14
  variants: {
11
15
  loading: {
@@ -35,5 +39,5 @@ const a = e({
35
39
  }
36
40
  });
37
41
  export {
38
- a as default
42
+ r as default
39
43
  };
@@ -0,0 +1,48 @@
1
+ declare const tagSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "closeTrigger" | "root" | "startElement" | "endElement", {
2
+ disabled: {
3
+ true: {
4
+ root: {
5
+ backgroundColor: "background/disabled";
6
+ borderColor: "border/disabled";
7
+ color: "text/on-disabled";
8
+ };
9
+ };
10
+ false: {};
11
+ };
12
+ size: {
13
+ sm: {
14
+ root: {
15
+ height: "24";
16
+ paddingInline: "4";
17
+ '&:has(button)': {
18
+ paddingInlineEnd: "1";
19
+ };
20
+ };
21
+ label: {
22
+ paddingInline: "4";
23
+ textStyle: "comp/tag/sm";
24
+ };
25
+ endElement: {
26
+ width: "20";
27
+ height: "20";
28
+ };
29
+ };
30
+ md: {
31
+ root: {
32
+ height: "32";
33
+ paddingInline: "6";
34
+ '&:has(button)': {
35
+ paddingInlineEnd: string | number;
36
+ };
37
+ };
38
+ startElement: {
39
+ marginInlineEnd: "-2px";
40
+ };
41
+ label: {
42
+ paddingInline: "6";
43
+ textStyle: "comp/tag/md";
44
+ };
45
+ };
46
+ };
47
+ }>;
48
+ export default tagSlotRecipe;
@@ -0,0 +1,84 @@
1
+ import { tagAnatomy as e } from "@chakra-ui/react/anatomy";
2
+ import { defineSlotRecipe as o } from "@chakra-ui/react/styled-system";
3
+ import { rem as t } from "../themeUtils.js";
4
+ const d = o({
5
+ className: "tag",
6
+ slots: e.keys(),
7
+ base: {
8
+ root: {
9
+ colorPalette: "neutral",
10
+ backgroundColor: "colorPalette.subtle",
11
+ borderRadius: "4",
12
+ border: "1px solid",
13
+ borderColor: "colorPalette.muted",
14
+ display: "inline-flex",
15
+ alignItems: "center",
16
+ overflow: "hidden",
17
+ color: "colorPalette.strong"
18
+ }
19
+ },
20
+ compoundVariants: [
21
+ {
22
+ colorPalette: "neutral",
23
+ disabled: !1,
24
+ css: {
25
+ root: {
26
+ color: "text/primary"
27
+ }
28
+ }
29
+ }
30
+ ],
31
+ variants: {
32
+ disabled: {
33
+ true: {
34
+ root: {
35
+ backgroundColor: "background/disabled",
36
+ borderColor: "border/disabled",
37
+ color: "text/on-disabled"
38
+ }
39
+ },
40
+ false: {}
41
+ },
42
+ size: {
43
+ sm: {
44
+ root: {
45
+ height: "24",
46
+ paddingInline: "4",
47
+ "&:has(button)": {
48
+ paddingInlineEnd: "1"
49
+ }
50
+ },
51
+ label: {
52
+ paddingInline: "4",
53
+ textStyle: "comp/tag/sm"
54
+ },
55
+ endElement: {
56
+ width: "20",
57
+ height: "20"
58
+ }
59
+ },
60
+ md: {
61
+ root: {
62
+ height: "32",
63
+ paddingInline: "6",
64
+ "&:has(button)": {
65
+ paddingInlineEnd: t(3)
66
+ }
67
+ },
68
+ startElement: {
69
+ marginInlineEnd: "-2px"
70
+ },
71
+ label: {
72
+ paddingInline: "6",
73
+ textStyle: "comp/tag/md"
74
+ }
75
+ }
76
+ }
77
+ },
78
+ defaultVariants: {
79
+ size: "md"
80
+ }
81
+ });
82
+ export {
83
+ d as default
84
+ };
@@ -156,6 +156,53 @@ declare const slotRecipes: {
156
156
  };
157
157
  };
158
158
  }>;
159
+ tag: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "closeTrigger" | "root" | "startElement" | "endElement", {
160
+ disabled: {
161
+ true: {
162
+ root: {
163
+ backgroundColor: "background/disabled";
164
+ borderColor: "border/disabled";
165
+ color: "text/on-disabled";
166
+ };
167
+ };
168
+ false: {};
169
+ };
170
+ size: {
171
+ sm: {
172
+ root: {
173
+ height: "24";
174
+ paddingInline: "4";
175
+ '&:has(button)': {
176
+ paddingInlineEnd: "1";
177
+ };
178
+ };
179
+ label: {
180
+ paddingInline: "4";
181
+ textStyle: "comp/tag/sm";
182
+ };
183
+ endElement: {
184
+ width: "20";
185
+ height: "20";
186
+ };
187
+ };
188
+ md: {
189
+ root: {
190
+ height: "32";
191
+ paddingInline: "6";
192
+ '&:has(button)': {
193
+ paddingInlineEnd: string | number;
194
+ };
195
+ };
196
+ startElement: {
197
+ marginInlineEnd: "-2px";
198
+ };
199
+ label: {
200
+ paddingInline: "6";
201
+ textStyle: "comp/tag/md";
202
+ };
203
+ };
204
+ };
205
+ }>;
159
206
  tooltip: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", {
160
207
  size: {
161
208
  sm: {
@@ -5,8 +5,9 @@ import i from "./NativeSelect.recipe.js";
5
5
  import { numberInputSlotRecipe as p } from "./NumberInput.recipe.js";
6
6
  import r from "./Switch.recipe.js";
7
7
  import m from "./Tabs.recipe.js";
8
- import c from "./Tooltip.recipe.js";
9
- const b = {
8
+ import c from "./Tag.recipe.js";
9
+ import l from "./Tooltip.recipe.js";
10
+ const g = {
10
11
  actionBar: t,
11
12
  emptyState: e,
12
13
  field: o,
@@ -14,8 +15,9 @@ const b = {
14
15
  numberInput: p,
15
16
  switch: r,
16
17
  tabs: m,
17
- tooltip: c
18
+ tag: c,
19
+ tooltip: l
18
20
  };
19
21
  export {
20
- b as default
22
+ g as default
21
23
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.78",
4
+ "version": "0.3.80",
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.1.0",
64
- "@storybook/react-vite": "10.1.0",
63
+ "@storybook/addon-docs": "10.1.2",
64
+ "@storybook/react-vite": "10.1.2",
65
65
  "@svgr/plugin-jsx": "^8.1.0",
66
66
  "@types/node": "^24.10.1",
67
67
  "@types/react-dom": "^19.2.3",
@@ -72,12 +72,12 @@
72
72
  "react-dom": "^19.2.0",
73
73
  "react": "^19.2.0",
74
74
  "release-it": "^19.0.6",
75
- "storybook": "10.1.0",
76
- "tsx": "^4.20.6",
75
+ "storybook": "10.1.2",
76
+ "tsx": "^4.21.0",
77
77
  "typescript": "^5.9.3",
78
78
  "vite-plugin-dts": "^4.5.4",
79
79
  "vite-plugin-svgr": "^4.5.0",
80
- "vite": "^7.2.4"
80
+ "vite": "^7.2.6"
81
81
  },
82
82
  "dependencies": {
83
83
  "@chakra-ui/react": "^3.30.0",
@@ -1,62 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { Input as T } from "@chakra-ui/react/input";
3
- import { InputGroup as E } from "@chakra-ui/react/input-group";
4
- import { forwardRef as F } from "react";
5
- import b from "../../icons/16x16/IconErrorCircleFilled16.js";
6
- import k from "../../icons/16x16/IconWarningYellow16.js";
7
- import y from "../../icons/24x24/IconErrorCircleFilled24.js";
8
- import B from "../../icons/24x24/IconWarningYellow24.js";
9
- import { rem as m } from "../../theme/themeUtils.js";
10
- import W from "../BitkitField/BitkitField.js";
11
- const C = F((c, p) => {
12
- const {
13
- counter: s,
14
- errorText: l,
15
- helperText: g,
16
- inputProps: e,
17
- label: f,
18
- maxLength: n,
19
- optional: u,
20
- placeholder: v,
21
- size: o,
22
- state: i,
23
- tooltip: x,
24
- warningText: a,
25
- ...I
26
- } = c, h = i === "warning" || !!a, d = i === "error" || !!l;
27
- let t;
28
- d ? t = o === "lg" ? /* @__PURE__ */ r(y, { color: "icon/negative" }) : /* @__PURE__ */ r(b, { color: "icon/negative" }) : h && (t = o === "lg" ? /* @__PURE__ */ r(B, { color: "icon/warning" }) : /* @__PURE__ */ r(k, { color: "icon/warning" }));
29
- const w = s && n && e?.value !== void 0 ? `${e.value.toString().length}/${n}` : void 0;
30
- return /* @__PURE__ */ r(
31
- W,
32
- {
33
- counterText: w,
34
- disabled: i === "disabled",
35
- errorText: l,
36
- helperText: g,
37
- invalid: d,
38
- label: f,
39
- optional: u,
40
- readOnly: i === "readOnly",
41
- ref: p,
42
- tooltip: x,
43
- warningText: a,
44
- ...I,
45
- children: /* @__PURE__ */ r(
46
- E,
47
- {
48
- endElement: t,
49
- endElementProps: {
50
- marginInlineEnd: o === "lg" ? m(15) : m(11)
51
- },
52
- width: "100%",
53
- children: /* @__PURE__ */ r(T, { placeholder: v, size: o, maxLength: n, ...e })
54
- }
55
- )
56
- }
57
- );
58
- });
59
- C.displayName = "BitkitTextField";
60
- export {
61
- C as default
62
- };