native-base
Version:
Essential cross-platform UI components for React Native
70 lines • 1.56 kB
JavaScript
import { mode } from '../tools';
export const PopoverCloseButton = {
baseStyle: props => ({
position: 'absolute',
right: 3,
top: 3,
zIndex: 1,
colorScheme: 'coolGray',
p: 2,
_icon: {
size: 3,
color: mode('coolGray.600', 'coolGray.100')(props)
}
})
};
export const PopoverBody = {
baseStyle: props => ({
pt: '2',
p: '3',
_text: {
color: mode('coolGray.600', 'coolGray.300')(props)
}
})
};
export const PopoverContent = {
baseStyle: props => ({
backgroundColor: mode('coolGray.50', 'gray.700')(props),
borderColor: mode('coolGray.200', 'coolGray.600')(props),
_text: {
color: mode('coolGray.800', 'warmGray.50')(props)
},
borderWidth: 1,
rounded: 'md',
overflow: 'hidden'
})
};
export const PopoverHeader = {
baseStyle: props => ({
_web: {
accessibilityRole: 'header'
},
py: '4',
px: '3',
borderBottomWidth: '1',
borderColor: mode('coolGray.200', 'gray.600')(props),
_text: {
fontSize: 'md',
fontWeight: 'semibold',
color: mode('coolGray.800', 'warmGray.50')(props),
lineHeight: 'sm'
}
})
};
export const PopoverArrow = {
baseStyle: props => ({
borderColor: mode('coolGray.200', 'coolGray.600')(props)
})
};
export const PopoverFooter = {
baseStyle: props => {
return {
p: '3',
bg: mode('coolGray.100', 'gray.600')(props),
flexDirection: 'row',
justifyContent: 'flex-end',
flexWrap: 'wrap'
};
}
};
//# sourceMappingURL=popover.js.map