UNPKG

amotify

Version:

UI Component for React,NextJS,esbuild

2 lines (1 loc) 695 B
import{b as o}from"../../chunk-C5N2D3ZX.js";import i from"jmini";const f=(t,e)=>{if(e=="plain")return{};let r={};return i.isOneOf(e,"border","rowBorder","cellBorder")&&(r.borderBottom="2.normal"),i.isOneOf(e,"border","cellBorder")&&(r.borderRight="2.normal"),o({padding:"3/4",backgroundColor:"layer.1",transition:"short",textAlign:"center"},r)},b=t=>{let e={};return t.right&&(e.borderRight="unset"),t.top&&(t.left&&(e.borderTopLeftRadius="inherit"),t.right&&(e.borderTopRightRadius="inherit")),t.bottom&&(e.borderBottom="unset",t.left&&(e.borderBottomLeftRadius="inherit"),t.right&&(e.borderBottomRightRadius="inherit")),e};export{f as DefaultCellStyles,b as DefaultCellSystemAdjustingStyles};