UNPKG

amotify

Version:

UI Component for React,NextJS,esbuild

2 lines (1 loc) 701 B
import{b as i}from"../../chunk-C5N2D3ZX.js";const n=(t,e)=>{if(e=="plain")return{};let r={};return t=="drag"&&(r.padding=1),["border","rowBorder","cellBorder"].includes(e)&&(r.borderBottom="2.normal"),["border","cellBorder"].includes(e)&&(r.borderRight="2.normal"),i({padding:"3/4",backgroundColor:"layer.1",transition:"short",textAlign:"center"},r)},a=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{n as DefaultCellStyles,a as DefaultCellSystemAdjustingStyles};