mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
85 lines
1.6 KiB
TypeScript
85 lines
1.6 KiB
TypeScript
import { defineSlotRecipe } from '@chakra-ui/react';
|
|
|
|
export const recipe = defineSlotRecipe({
|
|
slots: [ 'root', 'row', 'cell', 'columnHeader', 'caption', 'footer', 'body', 'header' ],
|
|
base: {
|
|
root: {
|
|
tableLayout: 'fixed',
|
|
fontVariant: 'normal',
|
|
fontVariantLigatures: 'no-contextual',
|
|
borderCollapse: 'collapse',
|
|
width: 'full',
|
|
textAlign: 'start',
|
|
verticalAlign: 'top',
|
|
overflow: 'unset',
|
|
},
|
|
cell: {
|
|
textAlign: 'start',
|
|
alignItems: 'center',
|
|
verticalAlign: 'top',
|
|
fontWeight: 'medium',
|
|
},
|
|
columnHeader: {
|
|
fontWeight: 'medium',
|
|
textAlign: 'start',
|
|
},
|
|
},
|
|
|
|
variants: {
|
|
variant: {
|
|
line: {
|
|
columnHeader: {
|
|
color: 'table.header.fg',
|
|
backgroundColor: 'table.header.bg',
|
|
_first: {
|
|
borderTopLeftRadius: '8px',
|
|
},
|
|
_last: {
|
|
borderTopRightRadius: '8px',
|
|
},
|
|
},
|
|
cell: {
|
|
borderBottomWidth: '1px',
|
|
borderColor: 'border.divider',
|
|
},
|
|
row: {
|
|
bg: 'bg.primary',
|
|
},
|
|
},
|
|
},
|
|
|
|
size: {
|
|
md: {
|
|
root: {
|
|
fontSize: 'sm',
|
|
},
|
|
columnHeader: {
|
|
px: '6px',
|
|
py: '10px',
|
|
_first: {
|
|
pl: 3,
|
|
},
|
|
_last: {
|
|
pr: 3,
|
|
},
|
|
},
|
|
cell: {
|
|
px: '6px',
|
|
py: 4,
|
|
_first: {
|
|
pl: 3,
|
|
},
|
|
_last: {
|
|
pr: 3,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
defaultVariants: {
|
|
variant: 'line',
|
|
size: 'md',
|
|
},
|
|
});
|