carbon-react 155.0.0 → 155.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t,{css as e}from"styled-components";import{padding as r}from"styled-system";import o from"./flat-table-header-utils.js";import i from"../../../style/themes/apply-base-theme.js";import{toColor as l}from"../../../style/utils/color.js";const d={small:"1px",medium:"2px",large:"4px"},a=t.th.attrs(i).withConfig({displayName:"flat-table-header.style__StyledFlatTableHeader",componentId:"sc-16315b2b-0"})(["",""],(({align:t,alternativeBgColor:i,colWidth:a,leftPosition:n,rightPosition:s,makeCellSticky:p,verticalBorder:m,verticalBorderColor:c,colorTheme:h,theme:g})=>e(["background-color:transparent;border-width:0;box-sizing:border-box;font-weight:500;left:auto;text-align:",";user-select:none;vertical-align:middle;word-break:keep-all;padding:0;"," &:first-child{padding-left:1px;}&&&{> div{box-sizing:border-box;"," ","}}",";"," &&&{"," ","}}"],t,a&&e(["width:","px;"],a),r,a&&e(["width:","px;"],a),i&&e(["&&&{background-color:",";}&&&:first-child{border-left:unset;}"],o(h)),p&&e([""," "," position:sticky;&:first-child{padding-right:0.395em;@-moz-document url-prefix(){padding-right:2px;}@media not all and (min-resolution:.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent){padding-right:0.9em;}}"],void 0!==n&&`left: ${n}px;`,void 0!==s&&`right: ${s}px;`),m&&e(["border-right-width:",";"],d[m]),c&&e(["border-right-color:",";"],l(g,c)))));export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),t=require("styled-system"),r=require("./flat-table-header-utils.js"),i=require("../../../style/themes/apply-base-theme.js"),o=require("../../../style/utils/color.js");function l(e){return e&&e.__esModule?e:{default:e}}const
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),t=require("styled-system"),r=require("./flat-table-header-utils.js"),i=require("../../../style/themes/apply-base-theme.js"),o=require("../../../style/utils/color.js");function l(e){return e&&e.__esModule?e:{default:e}}const d={small:"1px",medium:"2px",large:"4px"},s=l(e).default.th.attrs(i.default).withConfig({displayName:"flat-table-header.style__StyledFlatTableHeader",componentId:"sc-16315b2b-0"})(["",""],(({align:i,alternativeBgColor:l,colWidth:s,leftPosition:a,rightPosition:n,makeCellSticky:c,verticalBorder:p,verticalBorderColor:u,colorTheme:g,theme:h})=>e.css(["background-color:transparent;border-width:0;box-sizing:border-box;font-weight:500;left:auto;text-align:",";user-select:none;vertical-align:middle;word-break:keep-all;padding:0;"," &:first-child{padding-left:1px;}&&&{> div{box-sizing:border-box;"," ","}}",";"," &&&{"," ","}}"],i,s&&e.css(["width:","px;"],s),t.padding,s&&e.css(["width:","px;"],s),l&&e.css(["&&&{background-color:",";}&&&:first-child{border-left:unset;}"],r.default(g)),c&&e.css([""," "," position:sticky;&:first-child{padding-right:0.395em;@-moz-document url-prefix(){padding-right:2px;}@media not all and (min-resolution:.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent){padding-right:0.9em;}}"],void 0!==a&&`left: ${a}px;`,void 0!==n&&`right: ${n}px;`),p&&e.css(["border-right-width:",";"],d[p]),u&&e.css(["border-right-color:",";"],o.toColor(h,u)))));exports.default=s;
|