Preview: table-caption.tsx
Size: 1002 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/table/table-caption.tsx
import { styled } from '@styled-components'
import { Button } from '../button/index.js'
import { themeGet, cssClass } from '../../utils/index.js'
/**
* @component
* @private
*/
const TableCaption = styled.caption`
font-family: ${themeGet('font')};
padding: ${themeGet('space', 'sm')} ${themeGet('space', 'lg')};
text-align: left;
color: ${themeGet('colors', 'white')};
font-size: ${themeGet('fontSizes', 'default')};
line-height: ${themeGet('lineHeights', 'default')};
position: absolute;
left: 0;
right: 0;
top: -4px;
transform: translateY(-100%);
background: ${themeGet('colors', 'primary100')};
border-radius: 4px;
box-sizing: border-box;
vertical-align: middle;
&:first-child {
flex-grow: 1;
}
& ${Button} {
color: ${themeGet('colors', 'white')};
border-color: ${themeGet('colors', 'white')};
}
`
TableCaption.defaultProps = {
className: cssClass('TableCaption'),
}
TableCaption.displayName = 'TableCaption'
export default TableCaption
Directory Contents
Dirs: 0 × Files: 8