Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contentful/f36-table

Package Overview
Dependencies
Maintainers
105
Versions
342
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/f36-table - npm Package Compare versions

Comparing version 4.0.1-next-v4-8039.2335 to 4.0.1-next-v4-8053.2336

2

dist/module.js

@@ -1,2 +0,2 @@

import e from"@babel/runtime/helpers/esm/extends";import{css as t,cx as a}from"emotion";import o,{forwardRef as s,createContext as l}from"react";import{Box as r}from"@contentful/f36-core";import d from"@contentful/f36-tokens";const i=s((({children:s,className:l,layout:i="inline",testId:n="cf-ui-table",...c},m)=>{const f={inline:t({borderRadius:d.borderRadiusMedium,boxShadow:`0 0 0 1px ${d.gray200}`,"th:first-child":{borderTopLeftRadius:d.borderRadiusMedium},"th:last-child":{borderTopRightRadius:d.borderRadiusMedium},"tr:last-child td:first-child":{borderBottomLeftRadius:d.borderRadiusMedium},"tr:last-child td:last-child":{borderBottomRightRadius:d.borderRadiusMedium}},""),root:t({name:"8atqhb",styles:"width:100%;"})};return o.createElement(r,e({cellPadding:"0",cellSpacing:"0"},c,{as:"table",display:"table",ref:m,className:a(f.root,{[f.inline]:"inline"===i},l),testId:n}),s)}));i.displayName="Table";const n=s((function({className:t,children:a,testId:s="cf-ui-table-body",...l},d){return o.createElement(r,e({},l,{as:"tbody",className:t,ref:d,testId:s}),a)})),c={body:{name:"body",as:"td",offsetTop:0},head:{name:"head",as:"th",offsetTop:0}},m=l(c.body),f=s((({align:s="left",children:l,className:i,sorting:n=!1,testId:c="cf-ui-table-cell",...f},b)=>o.createElement(m.Consumer,null,(({as:m,name:u,offsetTop:h})=>{const p="head"===u;return o.createElement(r,e({},f,{as:m,className:a(t({backgroundColor:p?d.gray100:void 0,borderBottom:`1px solid ${d.gray200}`,color:n?d.gray900:d.gray700,fontFamily:d.fontStackPrimary,fontSize:d.fontSizeM,fontWeight:p?d.fontWeightMedium:d.fontWeightNormal,lineHeight:d.lineHeightL,padding:`${d.spacingS} ${d.spacingM}`,textAlign:s,verticalAlign:"top"},""),i),ref:b,style:{...f.style,top:h||void 0},testId:c}),l)}))));f.displayName="TableCell";const b=s((({children:s,className:l,isSticky:i=!1,offsetTop:n,testId:f="cf-ui-table-head",...b},u)=>{const h=a(i?t({th:{position:"sticky",top:0,zIndex:d.zIndexDefault}},""):"",l);return o.createElement(m.Provider,{value:{...c.head,offsetTop:n||0}},o.createElement(r,e({},b,{as:"thead",className:h,ref:u,testId:f}),s))}));b.displayName="TableHead";const u=s((({className:s,children:l,selected:i=!1,testId:n="cf-ui-table-row",...c},m)=>{const f={root:t({"&:last-child td":{borderBottom:"none"},"&:hover td":{backgroundColor:d.gray100}},""),selected:t({"td, th":{backgroundColor:d.blue100},"td:last-child":{boxShadow:`inset -2px 0 0 ${d.blue500}`}},"")};return o.createElement(r,e({},c,{as:"tr",className:a(f.root,{[f.selected]:i},s),ref:m,testId:n}),l)}));u.displayName="TableRow";const h=i;h.Row=u,h.Head=b,h.Cell=f,h.Body=n;export{h as Table,n as TableBody,f as TableCell,c as contextOptions,m as TableCellContext,b as TableHead,u as TableRow};
import e from"@babel/runtime/helpers/esm/extends";import{cx as t,css as a}from"emotion";import o,{forwardRef as s,createContext as l}from"react";import{Box as r}from"@contentful/f36-core";import d from"@contentful/f36-tokens";const i=s((({children:s,className:l,layout:i="inline",testId:n="cf-ui-table",...c},m)=>{const f={inline:a({borderRadius:d.borderRadiusMedium,boxShadow:`0 0 0 1px ${d.gray200}`,"th:first-child":{borderTopLeftRadius:d.borderRadiusMedium},"th:last-child":{borderTopRightRadius:d.borderRadiusMedium},"tr:last-child td:first-child":{borderBottomLeftRadius:d.borderRadiusMedium},"tr:last-child td:last-child":{borderBottomRightRadius:d.borderRadiusMedium}},""),root:a({name:"8atqhb",styles:"width:100%;"})};return o.createElement(r,e({cellPadding:"0",cellSpacing:"0"},c,{as:"table",display:"table",ref:m,className:t(f.root,{[f.inline]:"inline"===i},l),testId:n}),s)}));i.displayName="Table";const n=s((function({className:t,children:a,testId:s="cf-ui-table-body",...l},d){return o.createElement(r,e({},l,{as:"tbody",className:t,ref:d,testId:s}),a)})),c={body:{name:"body",as:"td",offsetTop:0},head:{name:"head",as:"th",offsetTop:0}},m=l(c.body),f=s((({align:s="left",children:l,className:i,sorting:n=!1,testId:c="cf-ui-table-cell",...f},b)=>o.createElement(m.Consumer,null,(({as:m,name:u,offsetTop:h})=>{const p="head"===u;return o.createElement(r,e({},f,{as:m,className:t(a({backgroundColor:p?d.gray100:void 0,borderBottom:`1px solid ${d.gray200}`,color:n?d.gray900:d.gray700,fontFamily:d.fontStackPrimary,fontSize:d.fontSizeM,fontWeight:p?d.fontWeightMedium:d.fontWeightNormal,lineHeight:d.lineHeightL,padding:`${d.spacingS} ${d.spacingM}`,textAlign:s,verticalAlign:"top"},""),i),ref:b,style:{...f.style,top:h||void 0},testId:c}),l)}))));f.displayName="TableCell";const b=s((({children:s,className:l,isSticky:i=!1,offsetTop:n,testId:f="cf-ui-table-head",...b},u)=>{const h=t(i?a({th:{position:"sticky",top:0,zIndex:d.zIndexDefault}},""):"",l);return o.createElement(m.Provider,{value:{...c.head,offsetTop:n||0}},o.createElement(r,e({},b,{as:"thead",className:h,ref:u,testId:f}),s))}));b.displayName="TableHead";const u=s((({className:s,children:l,selected:i=!1,testId:n="cf-ui-table-row",...c},m)=>{const f={root:a({"&:last-child td":{borderBottom:"none"},"&:hover td":{backgroundColor:d.gray100}},""),selected:a({"td, th":{backgroundColor:d.blue100},"td:last-child":{boxShadow:`inset -2px 0 0 ${d.blue500}`}},"")};return o.createElement(r,e({},c,{as:"tr",className:t(f.root,{[f.selected]:i},s),ref:m,testId:n}),l)}));u.displayName="TableRow";const h=i;h.Row=u,h.Head=b,h.Cell=f,h.Body=n;export{h as Table,n as TableBody,f as TableCell,c as contextOptions,m as TableCellContext,b as TableHead,u as TableRow};
//# sourceMappingURL=module.js.map
{
"name": "@contentful/f36-table",
"version": "4.0.1-next-v4-8039.2335+548b59df",
"version": "4.0.1-next-v4-8053.2336+c7d9a5e5",
"description": "Forma 36: Table component",

@@ -10,4 +10,4 @@ "scripts": {

"@babel/runtime": "^7.6.2",
"@contentful/f36-core": "4.0.1-next-v4-8039.2335+548b59df",
"@contentful/f36-tokens": "4.0.1-next-v4-8039.2335+548b59df",
"@contentful/f36-core": "4.0.1-next-v4-8053.2336+c7d9a5e5",
"@contentful/f36-tokens": "4.0.1-next-v4-8053.2336+c7d9a5e5",
"emotion": "^10.0.17"

@@ -36,3 +36,3 @@ },

},
"gitHead": "548b59df7610898f64e90f901982f64eef523b6d"
"gitHead": "c7d9a5e5e63b5e443e1d43c4cda0ad6d45884b8a"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc