@bitrise/bitkit 12.17.2 → 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
|
@@ -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;
|
|
@@ -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
|
</>
|
|
@@ -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
|
);
|