Preview: select-styles.js
Size: 1.06 KB
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/build/utils/select-styles.js
const selectStyles = theme => ({
control: baseStyles => ({
...baseStyles,
boxShadow: 'none',
background: 'transparent',
borderColor: theme.colors.inputBorder
}),
input: baseStyles => ({
...baseStyles,
color: theme.colors.grey100
}),
singleValue: baseStyles => ({
...baseStyles,
color: theme.colors.grey100
}),
menu: baseStyles => ({
...baseStyles,
boxShadow: 'none',
background: theme.colors.container,
border: theme.borders.input,
zIndex: 100
})
});
const filterStyles = theme => ({
control: provided => ({
...provided,
boxShadow: 'none',
background: 'transparent',
borderColor: theme.colors.inputBorder
}),
input: () => ({
color: theme.colors.grey100,
gridArea: '1/1/2/3',
gridTemplateColumns: '0px min-content'
}),
singleValue: () => ({
color: theme.colors.grey100,
gridArea: '1/1/2/3'
}),
menu: provided => ({
...provided,
borderColor: theme.colors.border,
background: theme.colors.filterBg,
zIndex: 5
})
});
export { filterStyles, selectStyles };
Directory Contents
Dirs: 0 × Files: 21