@commercetools-uikit/data-table 15.5.1 → 15.7.0
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.
|
@@ -52,8 +52,8 @@ var _parseInt__default = /*#__PURE__*/_interopDefault(_parseInt);
|
|
|
52
52
|
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
53
53
|
|
|
54
54
|
var getPaddingStyle = function getPaddingStyle(props) {
|
|
55
|
-
if (props.isCondensed) return /*#__PURE__*/react.css("padding:", designSystem.designTokens.
|
|
56
|
-
return /*#__PURE__*/react.css("padding:", designSystem.designTokens.
|
|
55
|
+
if (props.isCondensed) return /*#__PURE__*/react.css("padding:", designSystem.designTokens.paddingForTableCellAsCondensed, ";" + ("" ), "" );
|
|
56
|
+
return /*#__PURE__*/react.css("padding:", designSystem.designTokens.paddingForTableCell, ";" + ("" ), "" );
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
var _ref8 = {
|
|
@@ -166,7 +166,7 @@ var BaseCell = /*#__PURE__*/_styled__default["default"]("td", {
|
|
|
166
166
|
target: "e10u1n7e2"
|
|
167
167
|
} )("position:relative;display:flex;background-color:", designSystem.designTokens.colorSurface, ";border-bottom:", function (props) {
|
|
168
168
|
return props.shouldRenderBottomBorder ? "1px solid ".concat(designSystem.designTokens.colorNeutral90, ";") : 'none';
|
|
169
|
-
}, ";", function (props) {
|
|
169
|
+
}, ";font-size:", designSystem.designTokens.fontSizeForTable, ";", function (props) {
|
|
170
170
|
return props.shouldClipContent ? _ref2 : '';
|
|
171
171
|
}, " ", function (props) {
|
|
172
172
|
return props.shouldIgnoreRowClick ? _ref$1 : '';
|
|
@@ -194,7 +194,7 @@ var convertNumericDimensionToPixelValue$1 = convertNumericDimensionToPixelValue;
|
|
|
194
194
|
|
|
195
195
|
var getClickableRowStyle = function getClickableRowStyle(props) {
|
|
196
196
|
if (props.isRowClickable) {
|
|
197
|
-
return /*#__PURE__*/react.css("cursor:pointer;&:hover td{background:", designSystem.designTokens.
|
|
197
|
+
return /*#__PURE__*/react.css("cursor:pointer;&:hover td{background:", designSystem.designTokens.backgroundColorForTableCellWhenHovered, ";}" + ("" ), "" );
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
return '';
|
|
@@ -251,7 +251,7 @@ var TableBody = /*#__PURE__*/_styled__default["default"]("tbody", {
|
|
|
251
251
|
|
|
252
252
|
var TableRow = /*#__PURE__*/_styled__default["default"]("tr", {
|
|
253
253
|
target: "epk01s20"
|
|
254
|
-
} )("display:contents;", getClickableRowStyle, " :hover,:focus-within{", RowExpandCollapseButton, "{opacity:1;}}" + ("" ));
|
|
254
|
+
} )("display:contents;", getClickableRowStyle, " :hover,:focus-within{", RowExpandCollapseButton, "{opacity:1;}th:not(:first-of-type):after{content:'';position:absolute;height:calc(100% - 2 * ", designSystem.designTokens.marginForTableHeader, ");width:1px;background-color:", designSystem.designTokens.colorNeutral, ";top:", designSystem.designTokens.marginForTableHeader, ";right:0;z-index:-1;}}" + ("" ));
|
|
255
255
|
|
|
256
256
|
var defaultProps$4 = {
|
|
257
257
|
horizontalCellAlignment: 'left'
|
|
@@ -268,7 +268,7 @@ Footer.defaultProps = defaultProps$4;
|
|
|
268
268
|
var Footer$1 = Footer;
|
|
269
269
|
|
|
270
270
|
var getButtonStyle = function getButtonStyle() {
|
|
271
|
-
return /*#__PURE__*/react.css("cursor:pointer;border:none;background:none;text-decoration:none;color:inherit;font:inherit;font-size:", designSystem.designTokens.
|
|
271
|
+
return /*#__PURE__*/react.css("cursor:pointer;border:none;background:none;text-decoration:none;color:inherit;font:inherit;font-size:", designSystem.designTokens.fontSizeForTable, ";font-family:inherit;" + ("" ), "" );
|
|
272
272
|
};
|
|
273
273
|
/* A sortable header has the two arrow svg icons
|
|
274
274
|
* GIVEN column is sortable and is not focused
|
|
@@ -282,13 +282,13 @@ var getButtonStyle = function getButtonStyle() {
|
|
|
282
282
|
|
|
283
283
|
|
|
284
284
|
var getSortableHeaderStyles = function getSortableHeaderStyles(props) {
|
|
285
|
-
return /*#__PURE__*/react.css("width:100%;display:flex;align-items:center;svg[data-icon-state='inactive'],svg[data-icon-state='active']{margin-left:", designSystem.designTokens.
|
|
285
|
+
return /*#__PURE__*/react.css("width:100%;display:flex;align-items:center;svg[data-icon-state='inactive'],svg[data-icon-state='active']{margin-left:", designSystem.designTokens.spacing20, ";flex-shrink:0;}svg[data-icon-state='inactive']{display:", props.isActive ? 'none' : 'inline-block', ";}svg[data-icon-state='active']{display:", props.isActive ? 'inline-block' : 'none', ";}>svg *{fill:", designSystem.designTokens.fontColorForTableHeader, "!important;}:hover,:focus{svg[data-icon-state='inactive']{display:none;}svg[data-icon-state='active']{display:inline-block;}}" + ("" ), "" );
|
|
286
286
|
};
|
|
287
287
|
|
|
288
288
|
var HeaderCellInner = /*#__PURE__*/_styled__default["default"]("div", {
|
|
289
289
|
target: "e1ipt8n23"
|
|
290
290
|
} )("box-sizing:border-box;display:flex;justify-content:space-between;padding:0 ", function (props) {
|
|
291
|
-
return props.isCondensed ? designSystem.designTokens.
|
|
291
|
+
return props.isCondensed ? designSystem.designTokens.paddingForTableHeaderAsCondensed : designSystem.designTokens.paddingForTableHeader;
|
|
292
292
|
}, ";", getCellInnerStyles, " ", function (props) {
|
|
293
293
|
return props.isSortable ? getSortableHeaderStyles(props) : '';
|
|
294
294
|
}, ";", function (props) {
|
|
@@ -299,19 +299,19 @@ var HeaderCellInner = /*#__PURE__*/_styled__default["default"]("div", {
|
|
|
299
299
|
|
|
300
300
|
var BaseHeaderCell = /*#__PURE__*/_styled__default["default"]("th", {
|
|
301
301
|
target: "e1ipt8n22"
|
|
302
|
-
} )("color:", designSystem.designTokens.
|
|
302
|
+
} )("color:", designSystem.designTokens.fontColorForTableHeader, ";background-color:", designSystem.designTokens.backgroundColorForTableHeader, ";position:", function (props) {
|
|
303
303
|
return props.disableHeaderStickiness ? 'relative' : 'sticky';
|
|
304
|
-
}, ";top:0;z-index:1;padding:0;font-weight:
|
|
304
|
+
}, ";top:0;z-index:1;padding:0;font-weight:", designSystem.designTokens.fontWeightForTableHeader, ";font-size:", designSystem.designTokens.fontSizeForTable, ";box-shadow:inset -1px 0 ", designSystem.designTokens.borderColorForTableHeader, ";:hover,:active{z-index:2;}:before{content:'';position:absolute;z-index:-1;width:100%;height:1px;bottom:0;left:0;background-color:", designSystem.designTokens.borderColorForTableHeaderAsBottom, ";}", HeaderCellInner, "{", function (props) {
|
|
305
305
|
return props.shouldClipContent ? 'overflow: hidden;' : '';
|
|
306
306
|
}, ";}" + ("" ));
|
|
307
307
|
|
|
308
308
|
var HeaderLabelWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
309
309
|
target: "e1ipt8n21"
|
|
310
|
-
} )("min-height:1.4em;margin:", designSystem.designTokens.
|
|
310
|
+
} )("min-height:1.4em;margin:", designSystem.designTokens.marginForTableHeader, " 0;flex:1;" + ("" ));
|
|
311
311
|
|
|
312
312
|
var HeaderIconWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
313
313
|
target: "e1ipt8n20"
|
|
314
|
-
} )("display:inline-flex;align-items:center;justify-content:center;margin-left:", designSystem.designTokens.
|
|
314
|
+
} )("display:inline-flex;align-items:center;justify-content:center;margin-left:", designSystem.designTokens.spacing20, ";vertical-align:middle;" + ("" ));
|
|
315
315
|
|
|
316
316
|
var ResizerIndicator = /*#__PURE__*/_styled__default["default"]("div", {
|
|
317
317
|
target: "e1ccic7f1"
|
|
@@ -912,7 +912,7 @@ DataTable.displayName = 'DataTable';
|
|
|
912
912
|
var DataTable$1 = DataTable;
|
|
913
913
|
|
|
914
914
|
// NOTE: This string will be replaced on build time with the package version.
|
|
915
|
-
var version = "15.
|
|
915
|
+
var version = "15.7.0";
|
|
916
916
|
|
|
917
917
|
Object.defineProperty(exports, 'useRowSelection', {
|
|
918
918
|
enumerable: true,
|