@bitrise/bitkit 9.34.2 → 9.35.0
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 +1 -1
- package/src/Components/Dialog/Dialog.theme.ts +2 -1
- package/src/Components/Popover/Popover.theme.ts +0 -3
- package/src/Components/Popover/PopoverContent.tsx +11 -2
- package/src/Foundations/Zindex/Zindex.ts +10 -0
- package/src/theme.ts +2 -0
- package/src/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ const DialogTheme: ComponentStyleConfig = {
|
|
|
10
10
|
justifyContent: 'center',
|
|
11
11
|
alignItems: 'flex-start',
|
|
12
12
|
overflow: scrollBehavior === 'inside' ? 'hidden' : 'auto',
|
|
13
|
+
zIndex: 'dialog',
|
|
13
14
|
},
|
|
14
15
|
dialog: {
|
|
15
16
|
borderRadius: '8',
|
|
@@ -62,7 +63,7 @@ const DialogTheme: ComponentStyleConfig = {
|
|
|
62
63
|
},
|
|
63
64
|
full: {
|
|
64
65
|
dialogContainer: {
|
|
65
|
-
zIndex:
|
|
66
|
+
zIndex: 'fullDialog',
|
|
66
67
|
},
|
|
67
68
|
dialog: {
|
|
68
69
|
position: 'absolute',
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, Fragment } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
PopoverContentProps as ChakraPopoverContentProps,
|
|
4
4
|
PopoverContent as ChakraPopoverContent,
|
|
5
|
+
Portal,
|
|
5
6
|
} from '@chakra-ui/react';
|
|
6
7
|
|
|
7
8
|
export interface PopoverContentProps extends ChakraPopoverContentProps {
|
|
8
9
|
children: ReactNode;
|
|
10
|
+
withoutPortal?: boolean;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
|
-
const PopoverContent = (
|
|
13
|
+
const PopoverContent = ({ withoutPortal, ...rest }: PopoverContentProps) => {
|
|
14
|
+
const Wrapper = withoutPortal ? Fragment : Portal;
|
|
15
|
+
return (
|
|
16
|
+
<Wrapper>
|
|
17
|
+
<ChakraPopoverContent {...rest} />
|
|
18
|
+
</Wrapper>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
12
21
|
|
|
13
22
|
export default PopoverContent;
|
package/src/theme.ts
CHANGED
|
@@ -21,6 +21,7 @@ import radii from './Foundations/Radii/Radii';
|
|
|
21
21
|
import shadows from './Foundations/Shadows/Shadows';
|
|
22
22
|
import sizes from './Foundations/Sizes/Sizes';
|
|
23
23
|
import typography from './Foundations/Typography/Typography';
|
|
24
|
+
import zIndices from './Foundations/Zindex/Zindex';
|
|
24
25
|
|
|
25
26
|
const theme = {
|
|
26
27
|
config: {
|
|
@@ -33,6 +34,7 @@ const theme = {
|
|
|
33
34
|
shadows,
|
|
34
35
|
sizes,
|
|
35
36
|
space: sizes,
|
|
37
|
+
zIndices,
|
|
36
38
|
styles: {
|
|
37
39
|
global: {
|
|
38
40
|
body: {
|