@bitrise/bitkit-v2 0.3.144 → 0.3.146

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.
@@ -6,7 +6,7 @@ const i = {
6
6
  borderColor: "border/minimal",
7
7
  zIndex: "select",
8
8
  overflowY: "auto",
9
- boxShadow: "large",
9
+ boxShadow: "elevation/lg",
10
10
  _open: {
11
11
  animationStyle: "slide-fade-in",
12
12
  animationDuration: "fast"
@@ -8,7 +8,7 @@ const e = {
8
8
  color: "input/text/inputValue",
9
9
  textStyle: "body/lg/regular",
10
10
  width: "100%",
11
- boxShadow: "inner",
11
+ boxShadow: "inset/field",
12
12
  transition: "border 200ms",
13
13
  _placeholder: {
14
14
  color: "input/text/placeholder"
@@ -1,46 +1,5 @@
1
1
  declare const semanticTokens: {
2
2
  colors: Record<string, any>;
3
- shadows: {
4
- formFocus: {
5
- value: {
6
- _light: string;
7
- };
8
- };
9
- inner: {
10
- value: {
11
- _light: string;
12
- };
13
- };
14
- innerSmall: {
15
- value: {
16
- _light: string;
17
- };
18
- };
19
- large: {
20
- value: {
21
- _light: string;
22
- };
23
- };
24
- medium: {
25
- value: {
26
- _light: string;
27
- };
28
- };
29
- outline: {
30
- value: {
31
- _light: string;
32
- };
33
- };
34
- small: {
35
- value: {
36
- _light: string;
37
- };
38
- };
39
- tooltip: {
40
- value: {
41
- _light: string;
42
- };
43
- };
44
- };
3
+ shadows: Record<string, any>;
45
4
  };
46
5
  export default semanticTokens;
@@ -1,43 +1,2 @@
1
- declare const shadows: {
2
- formFocus: {
3
- value: {
4
- _light: string;
5
- };
6
- };
7
- inner: {
8
- value: {
9
- _light: string;
10
- };
11
- };
12
- innerSmall: {
13
- value: {
14
- _light: string;
15
- };
16
- };
17
- large: {
18
- value: {
19
- _light: string;
20
- };
21
- };
22
- medium: {
23
- value: {
24
- _light: string;
25
- };
26
- };
27
- outline: {
28
- value: {
29
- _light: string;
30
- };
31
- };
32
- small: {
33
- value: {
34
- _light: string;
35
- };
36
- };
37
- tooltip: {
38
- value: {
39
- _light: string;
40
- };
41
- };
42
- };
1
+ declare const shadows: Record<string, any>;
43
2
  export default shadows;
@@ -1,46 +1,38 @@
1
1
  import { defineSemanticTokens as e } from "@chakra-ui/react/styled-system";
2
- const l = e.shadows({
3
- formFocus: {
4
- value: {
5
- _light: "0 0.125rem 0.1875rem 0 rgba(0, 0, 0, 0.1) inset, 0 0 0 3px var(--colors-purple-70)"
6
- }
7
- },
8
- inner: {
9
- value: {
10
- _light: "0 0.125rem 0.1875rem 0 rgba(0, 0, 0, 0.1) inset"
11
- }
12
- },
13
- innerSmall: {
14
- value: {
15
- _light: "0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.1) inset"
16
- }
17
- },
18
- large: {
19
- value: {
20
- _light: "0 0.125rem 1.5rem 0 rgba(0, 0, 0, 0.08)"
21
- }
22
- },
23
- medium: {
24
- value: {
25
- _light: "0 0.125rem 0.75rem 0 rgba(0, 0, 0, 0.06)"
26
- }
27
- },
28
- outline: {
29
- value: {
30
- _light: "0 0 0 3px var(--colors-purple-70)"
31
- }
32
- },
33
- small: {
34
- value: {
35
- _light: "0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.06)"
36
- }
37
- },
38
- tooltip: {
39
- value: {
40
- _light: "0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.2)"
41
- }
42
- }
43
- });
2
+ import { withSlashes as r } from "../themeUtils.js";
3
+ const t = e.shadows(
4
+ r({
5
+ elevation: {
6
+ lg: {
7
+ value: {
8
+ _light: "0 0.125rem 1.5rem 0 rgba(0, 0, 0, 0.08)"
9
+ }
10
+ },
11
+ md: {
12
+ value: {
13
+ _light: "0 0.125rem 0.75rem 0 rgba(0, 0, 0, 0.06)"
14
+ }
15
+ },
16
+ sm: {
17
+ value: {
18
+ _light: "0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.06)"
19
+ }
20
+ },
21
+ tooltip: {
22
+ value: {
23
+ _light: "0 0.0625rem 0.1875rem 0 rgba(0, 0, 0, 0.2)"
24
+ }
25
+ }
26
+ },
27
+ inset: {
28
+ field: {
29
+ value: {
30
+ _light: "0 0.125rem 0.1875rem 0 rgba(0, 0, 0, 0.1) inset"
31
+ }
32
+ }
33
+ }
34
+ })
35
+ );
44
36
  export {
45
- l as default
37
+ t as default
46
38
  };
@@ -1,6 +1,6 @@
1
1
  import { actionBarAnatomy as t } from "@chakra-ui/react/anatomy";
2
- import { defineSlotRecipe as a } from "@chakra-ui/react/styled-system";
3
- const o = a({
2
+ import { defineSlotRecipe as n } from "@chakra-ui/react/styled-system";
3
+ const o = n({
4
4
  slots: t.keys(),
5
5
  className: "action-bar",
6
6
  base: {
@@ -16,7 +16,7 @@ const o = a({
16
16
  content: {
17
17
  display: "flex",
18
18
  alignItems: "center",
19
- boxShadow: "large",
19
+ boxShadow: "elevation/lg",
20
20
  pointerEvents: "auto",
21
21
  border: "1px solid",
22
22
  borderColor: "border/minimal",
@@ -30,7 +30,7 @@ const o = t({
30
30
  },
31
31
  badgeContainer: {
32
32
  display: "flex",
33
- boxShadow: "small",
33
+ boxShadow: "elevation/sm",
34
34
  position: "absolute",
35
35
  alignItems: "center",
36
36
  justifyContent: "center",
@@ -58,7 +58,7 @@ const o = {
58
58
  border: "1px solid",
59
59
  borderColor: "border/minimal",
60
60
  borderRadius: "4",
61
- boxShadow: "large",
61
+ boxShadow: "elevation/lg",
62
62
  outline: "none"
63
63
  },
64
64
  overflowMenuItem: {
@@ -3,7 +3,7 @@ declare const cardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"b
3
3
  true: {
4
4
  root: {
5
5
  borderColor: "border/minimal";
6
- boxShadow: "small";
6
+ boxShadow: "elevation/sm";
7
7
  };
8
8
  };
9
9
  false: {
@@ -15,7 +15,7 @@ const e = r({
15
15
  true: {
16
16
  root: {
17
17
  borderColor: "border/minimal",
18
- boxShadow: "small"
18
+ boxShadow: "elevation/sm"
19
19
  }
20
20
  },
21
21
  false: {
@@ -26,7 +26,7 @@ const i = a({
26
26
  content: {
27
27
  backgroundColor: "background/primary",
28
28
  borderRadius: "8",
29
- boxShadow: "large",
29
+ boxShadow: "elevation/lg",
30
30
  minWidth: r(312),
31
31
  paddingBlock: "24",
32
32
  paddingInline: "16"
@@ -11,7 +11,7 @@ const e = {
11
11
  _icon: {
12
12
  color: "button/danger-secondary/fg-active"
13
13
  }
14
- }, i = a({
14
+ }, r = a({
15
15
  className: "menu",
16
16
  slots: [...t.keys(), "itemHelper"],
17
17
  variants: {
@@ -39,7 +39,7 @@ const e = {
39
39
  border: "1px solid",
40
40
  borderColor: "border/minimal",
41
41
  _focusVisible: { outline: "none" },
42
- boxShadow: "large",
42
+ boxShadow: "elevation/lg",
43
43
  background: "background/primary",
44
44
  maxHeight: "var(--available-height)",
45
45
  _open: {
@@ -111,5 +111,5 @@ const e = {
111
111
  }
112
112
  });
113
113
  export {
114
- i as default
114
+ r as default
115
115
  };
@@ -1,7 +1,7 @@
1
1
  import { switchAnatomy as i } from "@chakra-ui/react/anatomy";
2
2
  import { defineSlotRecipe as e } from "@chakra-ui/react/styled-system";
3
3
  import { rem as t } from "../themeUtils.js";
4
- const o = e({
4
+ const r = e({
5
5
  slots: i.keys(),
6
6
  className: "switch",
7
7
  base: {
@@ -60,7 +60,7 @@ const o = e({
60
60
  width: "var(--switch-height)",
61
61
  height: "var(--switch-height)",
62
62
  bg: "input/toggle/slideOff",
63
- boxShadow: "small",
63
+ boxShadow: "elevation/sm",
64
64
  scale: "0.8",
65
65
  borderRadius: "inherit",
66
66
  transitionProperty: "translate",
@@ -112,5 +112,5 @@ const o = e({
112
112
  }
113
113
  });
114
114
  export {
115
- o as default
115
+ r as default
116
116
  };
@@ -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: {
@@ -12,7 +12,7 @@ const e = r({
12
12
  "--tooltip-bg": "colors.background.contrast",
13
13
  backgroundColor: "var(--tooltip-bg)",
14
14
  color: "text/on-contrast",
15
- boxShadow: "tooltip",
15
+ boxShadow: "elevation/tooltip",
16
16
  maxWidth: o(320),
17
17
  zIndex: "tooltip",
18
18
  transformOrigin: "var(--transform-origin)",
@@ -190,7 +190,7 @@ declare const slotRecipes: {
190
190
  true: {
191
191
  root: {
192
192
  borderColor: "border/minimal";
193
- boxShadow: "small";
193
+ boxShadow: "elevation/sm";
194
194
  };
195
195
  };
196
196
  false: {
@@ -1,5 +1,5 @@
1
1
  import { TextProps } from '@chakra-ui/react/text';
2
- export declare const flattenColorTokens: (object: object, prefix?: string) => Record<string, any>;
2
+ export declare const flattenTokens: (object: object, prefix?: string) => Record<string, any>;
3
3
  export declare function withSlashes(object: Record<string, any>): Record<string, any>;
4
4
  /**
5
5
  *
@@ -1,25 +1,25 @@
1
1
  import { isPlainObject as u } from "es-toolkit";
2
- const i = (e, r = "") => {
3
- const n = {}, c = Object.keys(e);
4
- for (let s = 0; s < c.length; s++) {
5
- const o = c[s], t = e[o], l = r ? `${r}/${o}` : o;
2
+ const l = (e, c = "") => {
3
+ const n = {}, o = Object.keys(e);
4
+ for (let s = 0; s < o.length; s++) {
5
+ const r = o[s], t = e[r], i = c ? `${c}/${r}` : r;
6
6
  if (u(t) && Object.keys(t).length > 0 && Object.keys(t)[0] !== "value") {
7
- Object.assign(n, i(t, l));
7
+ Object.assign(n, l(t, i));
8
8
  continue;
9
9
  }
10
- n[l] = t;
10
+ n[i] = t;
11
11
  }
12
12
  return n;
13
13
  };
14
14
  function k(e) {
15
15
  return {
16
16
  ...e,
17
- ...i(e)
17
+ ...l(e)
18
18
  };
19
19
  }
20
20
  const y = (e) => `${e / 16}rem`;
21
21
  export {
22
- i as flattenColorTokens,
22
+ l as flattenTokens,
23
23
  y as rem,
24
24
  k as withSlashes
25
25
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.144",
4
+ "version": "0.3.146",
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.4.0",
61
61
  "@figma-export/transform-svg-with-svgo": "^6.4.0",
62
62
  "@google-cloud/storage": "^7.19.0",
63
- "@storybook/addon-docs": "10.2.16",
64
- "@storybook/react-vite": "10.2.16",
63
+ "@storybook/addon-docs": "10.2.17",
64
+ "@storybook/react-vite": "10.2.17",
65
65
  "@svgr/plugin-jsx": "^8.1.0",
66
66
  "@types/node": "^24.12.0",
67
67
  "@types/react": "^19.2.14",
@@ -72,7 +72,7 @@
72
72
  "react": "^19.2.4",
73
73
  "react-dom": "^19.2.4",
74
74
  "release-it": "^19.2.4",
75
- "storybook": "10.2.16",
75
+ "storybook": "10.2.17",
76
76
  "tsx": "^4.21.0",
77
77
  "typescript": "^5.9.3",
78
78
  "vite": "^7.3.1",