UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

2 lines (1 loc) 1.77 kB
import{jsx as o}from"react/jsx-runtime";import{styled as t,css as e}from"styled-components";import{TableCellStyled as r,TableCellText as l}from"./cell/styled.js";import{Scrollbar as d}from"../scrollbar/index.js";import{ScrollbarShadow as s}from"../scrollbar/shadow/index.js";const i=t.div.withConfig({displayName:"styled__TableStyled",componentId:"sc-1mvq66z-0"})(["display:flex;width:100%;"]),a=t(d).attrs((({theme:t,scrollShadows:e})=>({variant:"secondary",scrollShadows:Object.assign({color:t.colors.base.black,left:o(s,{side:"left"}),right:o(s,{side:"right"})},e)}))).withConfig({displayName:"styled__TableScrollbarWrapper",componentId:"sc-1mvq66z-1"})([""]),c=t.table.withConfig({displayName:"styled__TableContent",componentId:"sc-1mvq66z-2"})(["border-collapse:separate;border-spacing:0;"," ",""],(({$fullWidth:o})=>o&&e(["width:100%;"])),(()=>e(["","{&:not(:first-child) > ","{border-top:none;}","{&:not(:first-child){border-left:none;}}}"],p,r,r))),n=t.thead.withConfig({displayName:"styled__TableHead",componentId:"sc-1mvq66z-3"})(["",""],(()=>e(["","{background:",";","{color:",";}}",":last-child > ","{border-bottom:none;}",":first-child{",":first-child{border-top-left-radius:8px;}",":last-child{border-top-right-radius:8px;}}"],r,(({theme:o})=>o.colors.grayScale.gray4),l,(({theme:o})=>o.default.colors.grayScale.gray6),p,r,p,r,r))),m=t.tbody.withConfig({displayName:"styled__TableBody",componentId:"sc-1mvq66z-4"})(["",""],(()=>e(["",":last-child{",":first-child{border-bottom-left-radius:8px;}",":last-child{border-bottom-right-radius:8px;}}"],p,r,r))),p=t.tr.withConfig({displayName:"styled__TableRow",componentId:"sc-1mvq66z-5"})([""]);export{m as TableBody,c as TableContent,n as TableHead,p as TableRow,a as TableScrollbarWrapper,i as TableStyled};