@bitrise/bitkit 12.17.1 → 12.17.3

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": "12.17.1",
4
+ "version": "12.17.3",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -3,6 +3,7 @@ import {
3
3
  CloseButton as ChakraCloseButton,
4
4
  CloseButtonProps as ChakraCloseButtonProps,
5
5
  } from '@chakra-ui/react';
6
+ import Icon from '../Icon/Icon';
6
7
  import CloseButtonTheme from './CloseButton.theme';
7
8
 
8
9
  type ThemeArguments = Parameters<(typeof CloseButtonTheme)['baseStyle']>[0];
@@ -12,7 +13,9 @@ export interface CloseButtonProps extends ChakraCloseButtonProps {
12
13
  }
13
14
 
14
15
  const CloseButton = forwardRef<CloseButtonProps, 'button'>((props, ref) => (
15
- <ChakraCloseButton ref={ref} {...CloseButtonTheme.defaultProps} {...props} />
16
+ <ChakraCloseButton ref={ref} {...CloseButtonTheme.defaultProps} {...props}>
17
+ <Icon name="CloseSmall" />
18
+ </ChakraCloseButton>
16
19
  ));
17
20
 
18
21
  export default CloseButton;
@@ -28,10 +28,6 @@ const DialogTheme: ComponentStyleConfig = {
28
28
  position: 'absolute',
29
29
  top: '22',
30
30
  right: '22',
31
- width: '40',
32
- height: '40',
33
- padding: '8',
34
- borderRadius: '8',
35
31
  },
36
32
  body: {
37
33
  flex: 1,
@@ -59,7 +59,7 @@ const Dialog: ComponentWithAs<'section', DialogProps> = ({
59
59
  {title}
60
60
  </Text>
61
61
  </ModalHeader>
62
- <ModalCloseButton isDisabled={!isClosable}>
62
+ <ModalCloseButton isDisabled={!isClosable} size="large">
63
63
  <Icon name="CloseSmall" />
64
64
  </ModalCloseButton>
65
65
  </>
@@ -1,6 +1,6 @@
1
1
  import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
2
2
 
3
- const Unlock = forwardRef<IconProps, 'svg'>((props, ref) => (
3
+ const LockOpen = forwardRef<IconProps, 'svg'>((props, ref) => (
4
4
  <Icon ref={ref} viewBox="0 0 16 20" {...props}>
5
5
  <path d="M7 15V12H9V15H7Z" fill="currentColor" />
6
6
  <path
@@ -12,4 +12,4 @@ const Unlock = forwardRef<IconProps, 'svg'>((props, ref) => (
12
12
  </Icon>
13
13
  ));
14
14
 
15
- export default Unlock;
15
+ export default LockOpen;
@@ -104,6 +104,7 @@ export { default as Laptop } from './Laptop';
104
104
  export { default as Lightbulb } from './Lightbulb';
105
105
  export { default as Link } from './Link';
106
106
  export { default as Lock } from './Lock';
107
+ export { default as LockOpen } from './LockOpen';
107
108
  export { default as Login } from './Login';
108
109
  export { default as Logout } from './Logout';
109
110
  export { default as Macos } from './Macos';
@@ -187,7 +188,6 @@ export { default as Trace } from './Trace';
187
188
  export { default as Trash } from './Trash';
188
189
  export { default as Trigger } from './Trigger';
189
190
  export { default as Twitter } from './Twitter';
190
- export { default as Unlock } from './Unlock';
191
191
  export { default as ValidateShield } from './ValidateShield';
192
192
  export { default as Video } from './Video';
193
193
  export { default as Warning } from './Warning';
@@ -1,6 +1,6 @@
1
1
  import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
2
2
 
3
- const Unlock = forwardRef<IconProps, 'svg'>((props, ref) => (
3
+ const LockOpen = forwardRef<IconProps, 'svg'>((props, ref) => (
4
4
  <Icon ref={ref} viewBox="0 0 24 24" {...props}>
5
5
  <path d="M7 15V12H9V15H7Z" fill="currentColor" />
6
6
  <path
@@ -12,4 +12,4 @@ const Unlock = forwardRef<IconProps, 'svg'>((props, ref) => (
12
12
  </Icon>
13
13
  ));
14
14
 
15
- export default Unlock;
15
+ export default LockOpen;
@@ -104,6 +104,7 @@ export { default as Laptop } from './Laptop';
104
104
  export { default as Lightbulb } from './Lightbulb';
105
105
  export { default as Link } from './Link';
106
106
  export { default as Lock } from './Lock';
107
+ export { default as LockOpen } from './LockOpen';
107
108
  export { default as Login } from './Login';
108
109
  export { default as Logout } from './Logout';
109
110
  export { default as Macos } from './Macos';
@@ -187,7 +188,6 @@ export { default as Trace } from './Trace';
187
188
  export { default as Trash } from './Trash';
188
189
  export { default as Trigger } from './Trigger';
189
190
  export { default as Twitter } from './Twitter';
190
- export { default as Unlock } from './Unlock';
191
191
  export { default as ValidateShield } from './ValidateShield';
192
192
  export { default as Video } from './Video';
193
193
  export { default as Warning } from './Warning';
@@ -87,9 +87,7 @@ const Notification = forwardRef<NotificationProps, 'div'>((props, ref) => {
87
87
  marginTop={marginTop}
88
88
  colorScheme={colorScheme}
89
89
  onClick={onClose}
90
- >
91
- <Icon name="CloseSmall" />
92
- </CloseButton>
90
+ />
93
91
  )}
94
92
  </ActionContext.Provider>
95
93
  </ChakraAlert>
@@ -4,7 +4,6 @@ import { Alert as ChakraAlert, AlertProps, forwardRef } from '@chakra-ui/react';
4
4
  import { ColorScheme } from '../../Foundations/Colors/Colors';
5
5
  import CloseButton from '../CloseButton/CloseButton';
6
6
  import ColorButton, { ColorButtonProps } from '../ColorButton/ColorButton';
7
- import Icon from '../Icon/Icon';
8
7
  import Box from '../Box/Box';
9
8
 
10
9
  export type ActionProps = {
@@ -66,11 +65,7 @@ const Ribbon = forwardRef<RibbonProps, 'div'>((props, ref) => {
66
65
  {children}
67
66
  {actionButton}
68
67
  </Box>
69
- {onClose && (
70
- <CloseButton flexShrink={0} colorScheme={colorScheme} marginStart="auto" onClick={onClose}>
71
- <Icon name="CloseSmall" />
72
- </CloseButton>
73
- )}
68
+ {onClose && <CloseButton flexShrink={0} colorScheme={colorScheme} marginStart="auto" onClick={onClose} />}
74
69
  </ActionContext.Provider>
75
70
  </ChakraAlert>
76
71
  );