@stenajs-webui/grid 15.3.2 → 15.5.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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v15.4.0 (Mon Apr 04 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Added property hideBorderTop to TableRow [#441](https://github.com/StenaIT/stenajs-webui/pull/441) ([@esepato](https://github.com/esepato))
6
+
7
+ #### Authors: 1
8
+
9
+ - Markus Patoka ([@esepato](https://github.com/esepato))
10
+
11
+ ---
12
+
1
13
  # v15.3.2 (Thu Mar 31 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -3,6 +3,7 @@ export declare const tableBorderColorExpanded = "var(--lhds-color-blue-500)";
3
3
  export declare const tableBackgroundColorExpanded = "var(--lhds-color-blue-50)";
4
4
  export declare const tableBackgroundHoverColorExpanded = "var(--lhds-color-blue-100)";
5
5
  export declare const tableBorder: string;
6
+ export declare const tableBorderHidden = "1px solid transparent";
6
7
  export declare const tableBorderLeft = "var(--swui-expand-highlight-border-width) solid transparent";
7
8
  export declare const tableBorderLeftExpanded: string;
8
9
  export declare const defaultTableRowHeight = "40px";
@@ -1,6 +1,7 @@
1
1
  import { BoxProps } from "@stenajs-webui/core";
2
2
  import * as React from "react";
3
3
  interface Props extends BoxProps {
4
+ hideBorderTop?: boolean;
4
5
  }
5
6
  export declare const TableRow: React.FC<Props>;
6
7
  export {};
@@ -4,3 +4,4 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const Overview: () => JSX.Element;
7
+ export declare const WithBorderTopHidden: () => JSX.Element;
package/dist/index.es.js CHANGED
@@ -131,6 +131,7 @@ var tableBorderColorExpanded = "var(--lhds-color-blue-500)";
131
131
  var tableBackgroundColorExpanded = "var(--lhds-color-blue-50)";
132
132
  var tableBackgroundHoverColorExpanded = "var(--lhds-color-blue-100)";
133
133
  var tableBorder = "1px solid " + tableBorderColor;
134
+ var tableBorderHidden = "1px solid transparent";
134
135
  var tableBorderLeft = "var(--swui-expand-highlight-border-width) solid transparent";
135
136
  var tableBorderLeftExpanded = "var(--swui-expand-highlight-border-width) solid " + tableBorderColorExpanded;
136
137
  var defaultTableRowHeight = "40px";
@@ -247,8 +248,8 @@ var styles$4 = {"tableRow":"TableRow-module_tableRow__hS0Sh"};
247
248
  styleInject(css_248z$4);
248
249
 
249
250
  var TableRow = function (_a) {
250
- var _b = _a.height, height = _b === void 0 ? defaultTableHeadRowHeight : _b, className = _a.className, boxProps = __rest(_a, ["height", "className"]);
251
- return (React.createElement(Row, __assign({ borderTop: tableBorder, height: height, className: cx(styles$4.tableRow, className) }, boxProps)));
251
+ var hideBorderTop = _a.hideBorderTop, _b = _a.height, height = _b === void 0 ? defaultTableHeadRowHeight : _b, className = _a.className, boxProps = __rest(_a, ["hideBorderTop", "height", "className"]);
252
+ return (React.createElement(Row, __assign({ borderTop: hideBorderTop ? tableBorderHidden : tableBorder, height: height, className: cx(styles$4.tableRow, className) }, boxProps)));
252
253
  };
253
254
 
254
255
  var useRevertableValue = function (initialValue) {
@@ -2263,5 +2264,5 @@ var createEditableTextCellWithStatus = function (warningOnEmpty, crudStatusProvi
2263
2264
  React.createElement(ModifiedField, { value: label, modifiedField: modifiedField, crudStatus: crudStatus, isEditable: isEditable, warningOnEmpty: warnOnEmpty })));
2264
2265
  }; };
2265
2266
 
2266
- export { CrudStatusIndicator, EditableTextCellWithCrudAndModified, GridHooksContext, GridHooksTable, ModifiedField, SmallTableCell, SmallTableHead, StandardTable, StandardTableActionsContext, StandardTableCell, StandardTableCellUi, StandardTableConfigContext, StandardTableContent, StandardTableHeadRow, StandardTableRow, StandardTableRowCheckbox, StandardTableRowList, StandardTableStateContext, StandardTableTableIdContext, TableCell, TableColumnGroupHead, TableHeadItem, TableHeadRow, TableRow, TextCell, createColumnConfig, createEditableTextCellWithStatus, createGroupConfigAndIdsForRows, createInternalStandardTableActions, createStandardEditableTextCell, createStandardTableActions, createStandardTableInitialState, createStandardTableReducer, defaultTableHeadRowHeight, defaultTableRowHeight, focusOnCell, formatColumnIdToHeaderCellLabel, formatValueLabel, hasIndicatorContent, multitypeComparator, smallTableRowWidth, tableBackgroundColorExpanded, tableBackgroundHoverColorExpanded, tableBorder, tableBorderColor, tableBorderColorExpanded, tableBorderLeft, tableBorderLeftExpanded, useCellBackgroundByColumnConfig, useCellBackgroundByColumnId, useColumnConfigById, useColumnValueResolver, useEditableCell, useFirstColumnConfig, useGridCell, useGridNavigation, useGridNavigationOptionsFromContext, useLastColumnConfig, useLocalStateTableContext, useRevertableValue, useRowCheckbox, useStandardTableActions, useStandardTableConfig, useStandardTableId, useStandardTableState, useTableHeadCheckbox, useTableSortHeader };
2267
+ export { CrudStatusIndicator, EditableTextCellWithCrudAndModified, GridHooksContext, GridHooksTable, ModifiedField, SmallTableCell, SmallTableHead, StandardTable, StandardTableActionsContext, StandardTableCell, StandardTableCellUi, StandardTableConfigContext, StandardTableContent, StandardTableHeadRow, StandardTableRow, StandardTableRowCheckbox, StandardTableRowList, StandardTableStateContext, StandardTableTableIdContext, TableCell, TableColumnGroupHead, TableHeadItem, TableHeadRow, TableRow, TextCell, createColumnConfig, createEditableTextCellWithStatus, createGroupConfigAndIdsForRows, createInternalStandardTableActions, createStandardEditableTextCell, createStandardTableActions, createStandardTableInitialState, createStandardTableReducer, defaultTableHeadRowHeight, defaultTableRowHeight, focusOnCell, formatColumnIdToHeaderCellLabel, formatValueLabel, hasIndicatorContent, multitypeComparator, smallTableRowWidth, tableBackgroundColorExpanded, tableBackgroundHoverColorExpanded, tableBorder, tableBorderColor, tableBorderColorExpanded, tableBorderHidden, tableBorderLeft, tableBorderLeftExpanded, useCellBackgroundByColumnConfig, useCellBackgroundByColumnId, useColumnConfigById, useColumnValueResolver, useEditableCell, useFirstColumnConfig, useGridCell, useGridNavigation, useGridNavigationOptionsFromContext, useLastColumnConfig, useLocalStateTableContext, useRevertableValue, useRowCheckbox, useStandardTableActions, useStandardTableConfig, useStandardTableId, useStandardTableState, useTableHeadCheckbox, useTableSortHeader };
2267
2268
  //# sourceMappingURL=index.es.js.map