@adiba-banking-cloud/backoffice 0.0.75 → 0.0.76

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.
@@ -12959,7 +12959,8 @@ const SimpleTable = _ref => {
12959
12959
  rows,
12960
12960
  withAction,
12961
12961
  withIndex,
12962
- actionFn
12962
+ actionFn,
12963
+ isStriped
12963
12964
  } = _ref;
12964
12965
  columns.sort((a, b) => a.order - b.order);
12965
12966
  const indexColumn = {
@@ -12974,7 +12975,15 @@ const SimpleTable = _ref => {
12974
12975
  };
12975
12976
  withIndex ? columns.unshift(indexColumn) : null;
12976
12977
  withAction && actionFn ? columns.push(actionColumn) : null;
12977
- return /*#__PURE__*/React.createElement(core.Table, null, /*#__PURE__*/React.createElement(core.Table.Thead, null, /*#__PURE__*/React.createElement(core.Table.Tr, null, columns.map((column, index) => {
12978
+ const isStripedProps = {
12979
+ striped: "even",
12980
+ highlightOnHover: true,
12981
+ withRowBorders: false,
12982
+ verticalSpacing: "md"
12983
+ };
12984
+ return /*#__PURE__*/React.createElement(core.Table, isStriped && isStripedProps, /*#__PURE__*/React.createElement(core.Table.Thead, null, /*#__PURE__*/React.createElement(core.Table.Tr, {
12985
+ bg: isStriped ? 'gray.1' : 'transparent'
12986
+ }, columns.map((column, index) => {
12978
12987
  return /*#__PURE__*/React.createElement(SimpleHeader, _extends({
12979
12988
  key: "column-".concat(index)
12980
12989
  }, column));
@@ -12938,7 +12938,8 @@ const SimpleTable = _ref => {
12938
12938
  rows,
12939
12939
  withAction,
12940
12940
  withIndex,
12941
- actionFn
12941
+ actionFn,
12942
+ isStriped
12942
12943
  } = _ref;
12943
12944
  columns.sort((a, b) => a.order - b.order);
12944
12945
  const indexColumn = {
@@ -12953,7 +12954,15 @@ const SimpleTable = _ref => {
12953
12954
  };
12954
12955
  withIndex ? columns.unshift(indexColumn) : null;
12955
12956
  withAction && actionFn ? columns.push(actionColumn) : null;
12956
- return /*#__PURE__*/React.createElement(Table, null, /*#__PURE__*/React.createElement(Table.Thead, null, /*#__PURE__*/React.createElement(Table.Tr, null, columns.map((column, index) => {
12957
+ const isStripedProps = {
12958
+ striped: "even",
12959
+ highlightOnHover: true,
12960
+ withRowBorders: false,
12961
+ verticalSpacing: "md"
12962
+ };
12963
+ return /*#__PURE__*/React.createElement(Table, isStriped && isStripedProps, /*#__PURE__*/React.createElement(Table.Thead, null, /*#__PURE__*/React.createElement(Table.Tr, {
12964
+ bg: isStriped ? 'gray.1' : 'transparent'
12965
+ }, columns.map((column, index) => {
12957
12966
  return /*#__PURE__*/React.createElement(SimpleHeader, _extends({
12958
12967
  key: "column-".concat(index)
12959
12968
  }, column));
@@ -13,6 +13,7 @@ export interface BaseTableRowProps {
13
13
  export interface SimpleTableProps extends BaseTableProps {
14
14
  withAction?: boolean;
15
15
  withIndex?: boolean;
16
+ isStriped?: boolean;
16
17
  actionFn?: (id: string) => React.ReactNode;
17
18
  }
18
19
  export interface SimpleTableBodyProps {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adiba-banking-cloud/backoffice",
3
3
  "author": "TUROG Technologies",
4
- "version": "0.0.75",
4
+ "version": "0.0.76",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",