@bitrise/bitkit 9.24.2 → 9.25.1
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
|
@@ -6,7 +6,7 @@ import * as smallIcons from '../Icons/16x16';
|
|
|
6
6
|
export type TypeIconName = keyof typeof bigIcons & keyof typeof smallIcons;
|
|
7
7
|
export interface IconProps extends ChakraIconProps {
|
|
8
8
|
name: TypeIconName;
|
|
9
|
-
size?: '16' | '24';
|
|
9
|
+
size?: '16' | '24' | '32';
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const Icon = forwardRef<IconProps, 'svg'>(({ name, size = '24', ...rest }, ref) => {
|
|
@@ -16,7 +16,7 @@ const Icon = forwardRef<IconProps, 'svg'>(({ name, size = '24', ...rest }, ref)
|
|
|
16
16
|
height: size,
|
|
17
17
|
...rest,
|
|
18
18
|
};
|
|
19
|
-
const ThisIcon = size === '
|
|
19
|
+
const ThisIcon = size === '16' ? smallIcons[name] : bigIcons[name];
|
|
20
20
|
return <ThisIcon {...props} />;
|
|
21
21
|
});
|
|
22
22
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useToast as useChakraToast,
|
|
2
|
+
import { useToast as useChakraToast, UseToastOptions } from '@chakra-ui/react';
|
|
3
3
|
import { DateTime } from 'luxon';
|
|
4
4
|
import Notification, {
|
|
5
5
|
ActionProps,
|
|
@@ -14,8 +14,8 @@ export interface ToastOptions {
|
|
|
14
14
|
description: React.ReactNode;
|
|
15
15
|
status: NotificationProps['status'];
|
|
16
16
|
action?: ActionProps;
|
|
17
|
-
duration?:
|
|
18
|
-
position?:
|
|
17
|
+
duration?: UseToastOptions['duration'];
|
|
18
|
+
position?: UseToastOptions['position'];
|
|
19
19
|
isClosable?: boolean;
|
|
20
20
|
showTimestamp?: boolean;
|
|
21
21
|
}
|
|
@@ -30,7 +30,7 @@ const useToast = () => {
|
|
|
30
30
|
toast({
|
|
31
31
|
isClosable: opts.isClosable,
|
|
32
32
|
duration: opts.duration,
|
|
33
|
-
position: opts.position,
|
|
33
|
+
position: opts.position || 'bottom',
|
|
34
34
|
render: ({ onClose }) => (
|
|
35
35
|
<Notification
|
|
36
36
|
boxShadow="large"
|
package/src/theme.ts
CHANGED
|
@@ -12,6 +12,7 @@ import Notification from './Components/Notification/Notification.theme';
|
|
|
12
12
|
import Tooltip from './Components/Tooltip/Tooltip.theme';
|
|
13
13
|
import CloseButton from './Components/CloseButton/CloseButton.theme';
|
|
14
14
|
|
|
15
|
+
import breakpoints from './Foundations/Breakpoints/Breakpoints';
|
|
15
16
|
import colors from './Foundations/Colors/Colors';
|
|
16
17
|
import radii from './Foundations/Radii/Radii';
|
|
17
18
|
import shadows from './Foundations/Shadows/Shadows';
|
|
@@ -22,6 +23,7 @@ const theme = {
|
|
|
22
23
|
config: {
|
|
23
24
|
cssVarPrefix: '',
|
|
24
25
|
},
|
|
26
|
+
breakpoints,
|
|
25
27
|
colors,
|
|
26
28
|
...typography,
|
|
27
29
|
radii,
|