@stenajs-webui/grid 15.3.0 → 15.4.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.
package/dist/index.js CHANGED
@@ -158,6 +158,7 @@ var tableBorderColorExpanded = "var(--lhds-color-blue-500)";
158
158
  var tableBackgroundColorExpanded = "var(--lhds-color-blue-50)";
159
159
  var tableBackgroundHoverColorExpanded = "var(--lhds-color-blue-100)";
160
160
  var tableBorder = "1px solid " + tableBorderColor;
161
+ var tableBorderHidden = "1px solid transparent";
161
162
  var tableBorderLeft = "var(--swui-expand-highlight-border-width) solid transparent";
162
163
  var tableBorderLeftExpanded = "var(--swui-expand-highlight-border-width) solid " + tableBorderColorExpanded;
163
164
  var defaultTableRowHeight = "40px";
@@ -274,8 +275,8 @@ var styles$4 = {"tableRow":"TableRow-module_tableRow__hS0Sh"};
274
275
  styleInject(css_248z$4);
275
276
 
276
277
  var TableRow = function (_a) {
277
- var _b = _a.height, height = _b === void 0 ? defaultTableHeadRowHeight : _b, className = _a.className, boxProps = __rest(_a, ["height", "className"]);
278
- return (React__namespace.createElement(core.Row, __assign({ borderTop: tableBorder, height: height, className: cx__default["default"](styles$4.tableRow, className) }, boxProps)));
278
+ var hideBorderTop = _a.hideBorderTop, _b = _a.height, height = _b === void 0 ? defaultTableHeadRowHeight : _b, className = _a.className, boxProps = __rest(_a, ["hideBorderTop", "height", "className"]);
279
+ return (React__namespace.createElement(core.Row, __assign({ borderTop: hideBorderTop ? tableBorderHidden : tableBorder, height: height, className: cx__default["default"](styles$4.tableRow, className) }, boxProps)));
279
280
  };
280
281
 
281
282
  var useRevertableValue = function (initialValue) {
@@ -1799,7 +1800,7 @@ var columnHasSummaryCell = function (columnConfig) {
1799
1800
  return Boolean(columnConfig.renderSummaryCell || columnConfig.summaryText);
1800
1801
  };
1801
1802
 
1802
- var css_248z = ".StandardTableSummaryRow-module_summaryRow__1qAAJ td {\n border-top: 1px solid var(--lhds-color-ui-500);\n border-bottom: 1px solid var(--lhds-color-ui-500);\n }\n";
1803
+ var css_248z = ".StandardTableSummaryRow-module_summaryRow__1qAAJ td {\n border-top: 1px solid var(--lhds-color-ui-400);\n }\n";
1803
1804
  var styles = {"summaryRow":"StandardTableSummaryRow-module_summaryRow__1qAAJ"};
1804
1805
  styleInject(css_248z);
1805
1806
 
@@ -1857,8 +1858,10 @@ var getColumnsLimitedWithColSpan = function (columnOrder, columns) {
1857
1858
  var StandardTableSummaryRow = React__namespace.memo(function StandardTableSummaryRow(_a) {
1858
1859
  var items = _a.items;
1859
1860
  var groupConfigsAndIds = useGroupConfigsAndIdsForRows();
1860
- var _b = useStandardTableConfig(), showRowCheckbox = _b.showRowCheckbox, enableExpandCollapse = _b.enableExpandCollapse, columns = _b.columns;
1861
+ var _b = useStandardTableConfig(), showRowCheckbox = _b.showRowCheckbox, enableExpandCollapse = _b.enableExpandCollapse, columns = _b.columns, rowIndent = _b.rowIndent;
1861
1862
  return (React__namespace.createElement("tr", { className: styles.summaryRow },
1863
+ rowIndent && (React__namespace.createElement("td", null,
1864
+ React__namespace.createElement(core.Indent, { num: rowIndent }))),
1862
1865
  enableExpandCollapse && React__namespace.createElement("td", null),
1863
1866
  showRowCheckbox && React__namespace.createElement("td", null),
1864
1867
  groupConfigsAndIds.map(function (_a, groupIndex) {
@@ -1867,7 +1870,10 @@ var StandardTableSummaryRow = React__namespace.memo(function StandardTableSummar
1867
1870
  var columnId = _a.columnId, colSpan = _a.colSpan;
1868
1871
  return (React__namespace.createElement(SummaryCell, { key: columnId, colSpan: colSpan, columnId: columnId, items: items, borderFromGroup: getCellBorderFromGroup(groupIndex, index, groupConfig.borderLeft), disableBorderLeft: groupIndex === 0 && index === 0 }));
1869
1872
  })));
1870
- })));
1873
+ }),
1874
+ rowIndent && (React__namespace.createElement("td", null,
1875
+ React__namespace.createElement(core.Indent, { num: rowIndent }))),
1876
+ React__namespace.createElement("td", null)));
1871
1877
  });
1872
1878
 
1873
1879
  var SummaryRowSwitcher = function SummaryRowSwitcher(_a) {
@@ -2331,6 +2337,7 @@ exports.tableBackgroundHoverColorExpanded = tableBackgroundHoverColorExpanded;
2331
2337
  exports.tableBorder = tableBorder;
2332
2338
  exports.tableBorderColor = tableBorderColor;
2333
2339
  exports.tableBorderColorExpanded = tableBorderColorExpanded;
2340
+ exports.tableBorderHidden = tableBorderHidden;
2334
2341
  exports.tableBorderLeft = tableBorderLeft;
2335
2342
  exports.tableBorderLeftExpanded = tableBorderLeftExpanded;
2336
2343
  exports.useCellBackgroundByColumnConfig = useCellBackgroundByColumnConfig;