@commercetools-uikit/data-table 15.2.3 → 15.3.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.customProperties.spacingS, ";" + ("" ), "" );
56
- return /*#__PURE__*/react.css("padding:", designSystem.customProperties.spacingM, ";" + ("" ), "" );
55
+ if (props.isCondensed) return /*#__PURE__*/react.css("padding:", designSystem.designTokens.spacingS, ";" + ("" ), "" );
56
+ return /*#__PURE__*/react.css("padding:", designSystem.designTokens.spacingM, ";" + ("" ), "" );
57
57
  };
58
58
 
59
59
  var _ref8 = {
@@ -164,8 +164,8 @@ var _ref2 = {
164
164
 
165
165
  var BaseCell = /*#__PURE__*/_styled__default["default"]("td", {
166
166
  target: "e10u1n7e2"
167
- } )("position:relative;display:flex;background-color:", designSystem.customProperties.colorSurface, ";border-bottom:", function (props) {
168
- return props.shouldRenderBottomBorder ? "1px solid ".concat(designSystem.customProperties.colorNeutral90, ";") : 'none';
167
+ } )("position:relative;display:flex;background-color:", designSystem.designTokens.colorSurface, ";border-bottom:", function (props) {
168
+ return props.shouldRenderBottomBorder ? "1px solid ".concat(designSystem.designTokens.colorNeutral90, ";") : 'none';
169
169
  }, ";", function (props) {
170
170
  return props.shouldClipContent ? _ref2 : '';
171
171
  }, " ", function (props) {
@@ -178,7 +178,7 @@ var BaseCell = /*#__PURE__*/_styled__default["default"]("td", {
178
178
  return props.disableFooterStickiness ? 'relative' : 'sticky';
179
179
  }, ";left:0;bottom:0;grid-column:1/", function (props) {
180
180
  return props.numberOfColumns;
181
- }, ";background-color:", designSystem.customProperties.colorSurface, ";border-bottom:1px solid ", designSystem.customProperties.colorNeutral90, ";border-top:1px solid ", designSystem.customProperties.colorNeutral90, ";margin-top:-1px;" + ("" ));
181
+ }, ";background-color:", designSystem.designTokens.colorSurface, ";border-bottom:1px solid ", designSystem.designTokens.colorNeutral90, ";border-top:1px solid ", designSystem.designTokens.colorNeutral90, ";margin-top:-1px;" + ("" ));
182
182
 
183
183
  var RowExpandCollapseButton = /*#__PURE__*/_styled__default["default"](AccessibleButton__default["default"], {
184
184
  target: "e10u1n7e0"
@@ -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.customProperties.backgroundColorForInputWhenHovered, ";}" + ("" ), "" );
197
+ return /*#__PURE__*/react.css("cursor:pointer;&:hover td{background:", designSystem.designTokens.backgroundColorForInputWhenHovered, ";}" + ("" ), "" );
198
198
  }
199
199
 
200
200
  return '';
@@ -259,7 +259,7 @@ var defaultProps$4 = {
259
259
 
260
260
  var Footer = /*#__PURE__*/_styled__default["default"]("div", {
261
261
  target: "e2ce7vj0"
262
- } )("box-sizing:border-box;display:block;", getPaddingStyle, " ", getHorizontalAlignmentStyle, " background-color:", designSystem.customProperties.colorSurface, ";border-top:1px solid ", designSystem.customProperties.colorNeutral90, ";border-bottom:1px solid ", designSystem.customProperties.colorNeutral90, ";", function (props) {
262
+ } )("box-sizing:border-box;display:block;", getPaddingStyle, " ", getHorizontalAlignmentStyle, " background-color:", designSystem.designTokens.colorSurface, ";border-top:1px solid ", designSystem.designTokens.colorNeutral90, ";border-bottom:1px solid ", designSystem.designTokens.colorNeutral90, ";", function (props) {
263
263
  return props.resizedTotalWidth ? "max-width: ".concat(props.resizedTotalWidth, "px;") : '';
264
264
  }, ";" + ("" ));
265
265
 
@@ -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.customProperties.fontSizeDefault, ";font-family:inherit;" + ("" ), "" );
271
+ return /*#__PURE__*/react.css("cursor:pointer;border:none;background:none;text-decoration:none;color:inherit;font:inherit;font-size:", designSystem.designTokens.fontSizeDefault, ";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.customProperties.spacingS, ";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', ";}:hover,:focus{svg[data-icon-state='inactive']{display:none;}svg[data-icon-state='active']{display:inline-block;*{fill:", designSystem.customProperties.colorNeutral, ";}}}" + ("" ), "" );
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.spacingS, ";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', ";}:hover,:focus{svg[data-icon-state='inactive']{display:none;}svg[data-icon-state='active']{display:inline-block;*{fill:", designSystem.designTokens.colorNeutral, ";}}}" + ("" ), "" );
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.customProperties.spacingS : designSystem.customProperties.spacingM;
291
+ return props.isCondensed ? designSystem.designTokens.spacingS : designSystem.designTokens.spacingM;
292
292
  }, ";", getCellInnerStyles, " ", function (props) {
293
293
  return props.isSortable ? getSortableHeaderStyles(props) : '';
294
294
  }, ";", function (props) {
@@ -299,23 +299,23 @@ 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.customProperties.colorSurface, ";background-color:", designSystem.customProperties.colorAccent, ";position:", function (props) {
302
+ } )("color:", designSystem.designTokens.colorSurface, ";background-color:", designSystem.designTokens.colorAccent, ";position:", function (props) {
303
303
  return props.disableHeaderStickiness ? 'relative' : 'sticky';
304
- }, ";top:0;z-index:1;padding:0;font-weight:normal;box-shadow:inset -1px 0 ", designSystem.customProperties.colorNeutral90, ";:hover,:active{z-index:2;}", HeaderCellInner, "{", function (props) {
304
+ }, ";top:0;z-index:1;padding:0;font-weight:normal;box-shadow:inset -1px 0 ", designSystem.designTokens.colorNeutral90, ";:hover,:active{z-index:2;}", 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.customProperties.spacingS, " 0;flex:1;" + ("" ));
310
+ } )("min-height:1.4em;margin:", designSystem.designTokens.spacingS, " 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.customProperties.spacingS, ";padding:0 ", designSystem.customProperties.spacingXs, ";" + ("" ));
314
+ } )("display:inline-flex;align-items:center;justify-content:center;margin-left:", designSystem.designTokens.spacingS, ";padding:0 ", designSystem.designTokens.spacingXs, ";" + ("" ));
315
315
 
316
316
  var ResizerIndicator = /*#__PURE__*/_styled__default["default"]("div", {
317
317
  target: "e1ccic7f1"
318
- } )("height:100%;width:3px;background:", designSystem.customProperties.colorInfo, ";visibility:hidden;cursor:col-resize;", function (props // extra 1px of height to appear above the bottom horizontal row border
318
+ } )("height:100%;width:3px;background:", designSystem.designTokens.colorInfo, ";visibility:hidden;cursor:col-resize;", function (props // extra 1px of height to appear above the bottom horizontal row border
319
319
  ) {
320
320
  return props.isOnDataCell ? 'visibility: visible; height: calc(100% + 1px);' : '';
321
321
  }, ";" + ("" ));
@@ -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.2.3";
915
+ var version = "15.3.0";
916
916
 
917
917
  Object.defineProperty(exports, 'useRowSelection', {
918
918
  enumerable: true,