@bitrise/bitkit 9.16.3 → 9.16.6

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "9.16.3",
4
+ "version": "9.16.6",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -1,10 +1,49 @@
1
1
  const schemeColors = {
2
- default: { backgroundColor: 'inherit', color: 'inherit' },
3
- blue: { backgroundColor: 'blue.93', color: 'blue.40' },
4
- red: { backgroundColor: 'red.93', color: 'red.40' },
5
- green: { backgroundColor: 'green.95', color: 'green.50' },
6
- yellow: { backgroundColor: 'yellow.95', color: 'yellow.40' },
7
- purple: { backgroundColor: 'purple.95', color: 'purple.40' },
2
+ blue: {
3
+ color: 'blue.40',
4
+ _active: {
5
+ backgroundColor: 'blue.90',
6
+ },
7
+ _hover: {
8
+ backgroundColor: 'blue.93',
9
+ },
10
+ },
11
+ red: {
12
+ color: 'red.40',
13
+ _active: {
14
+ backgroundColor: 'red.90',
15
+ },
16
+ _hover: {
17
+ backgroundColor: 'red.93',
18
+ },
19
+ },
20
+ green: {
21
+ color: 'green.50',
22
+ _active: {
23
+ backgroundColor: 'green.90',
24
+ },
25
+ _hover: {
26
+ backgroundColor: 'green.93',
27
+ },
28
+ },
29
+ yellow: {
30
+ color: 'yellow.40',
31
+ _active: {
32
+ backgroundColor: 'yellow.90',
33
+ },
34
+ _hover: {
35
+ backgroundColor: 'yellow.93',
36
+ },
37
+ },
38
+ purple: {
39
+ color: 'purple.40',
40
+ _active: {
41
+ backgroundColor: 'purple.90',
42
+ },
43
+ _hover: {
44
+ backgroundColor: 'purple.93',
45
+ },
46
+ },
8
47
  };
9
48
 
10
49
  const ColorButtonTheme = {
@@ -13,8 +52,8 @@ const ColorButtonTheme = {
13
52
  display: 'inline-flex',
14
53
  alignItems: 'center',
15
54
  justifyContent: 'center',
16
- ...schemeColors[c || 'default'],
17
- _hover: schemeColors[c || 'default'],
55
+ backgroundColor: 'transparent',
56
+ ...schemeColors[c || 'blue'],
18
57
  };
19
58
  },
20
59
  };
@@ -9,6 +9,7 @@ const MenuTheme: SystemStyleObject = {
9
9
  borderRadius: '4',
10
10
  boxShadow: 'large',
11
11
  paddingY: '12',
12
+ zIndex: '1',
12
13
  },
13
14
  item: {
14
15
  color: 'purple.10',
@@ -9,7 +9,16 @@ export default {
9
9
  } as ComponentMeta<typeof OverflowMenu>;
10
10
 
11
11
  export const WithProps: ComponentStory<typeof OverflowMenu> = (props) => (
12
- <Flex direction="row-reverse" minHeight="400px">
12
+ <Flex direction="column" alignItems="flex-end" minHeight="400px">
13
+ <OverflowMenu {...props}>
14
+ <OverflowMenuItem iconName="PlusAdd">Add member</OverflowMenuItem>
15
+ <OverflowMenuItem iconName="MinusRemove">Remove member</OverflowMenuItem>
16
+ <OverflowMenuItem iconName="Filter">Assign access to apps</OverflowMenuItem>
17
+ <OverflowMenuItem iconName="Pencil">Rename group</OverflowMenuItem>
18
+ <OverflowMenuItem iconName="Trash" isDanger>
19
+ Delete group
20
+ </OverflowMenuItem>
21
+ </OverflowMenu>
13
22
  <OverflowMenu {...props}>
14
23
  <OverflowMenuItem iconName="PlusAdd">Add member</OverflowMenuItem>
15
24
  <OverflowMenuItem iconName="MinusRemove">Remove member</OverflowMenuItem>