@adiba-banking-cloud/backoffice 0.0.74 → 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.
@@ -12127,6 +12127,9 @@ const SideMenu = _ref => {
12127
12127
  label: item.label,
12128
12128
  to: (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? "#" : (item === null || item === void 0 ? void 0 : item.href) || "#"
12129
12129
  }, (_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length ? item.children.map(subitem => /*#__PURE__*/React.createElement(core.NavLink, {
12130
+ mt: "xs",
12131
+ component: reactRouterDom.Link,
12132
+ to: subitem.href || "#",
12130
12133
  label: subitem.label,
12131
12134
  active: subitem.active,
12132
12135
  color,
@@ -12956,7 +12959,8 @@ const SimpleTable = _ref => {
12956
12959
  rows,
12957
12960
  withAction,
12958
12961
  withIndex,
12959
- actionFn
12962
+ actionFn,
12963
+ isStriped
12960
12964
  } = _ref;
12961
12965
  columns.sort((a, b) => a.order - b.order);
12962
12966
  const indexColumn = {
@@ -12971,7 +12975,15 @@ const SimpleTable = _ref => {
12971
12975
  };
12972
12976
  withIndex ? columns.unshift(indexColumn) : null;
12973
12977
  withAction && actionFn ? columns.push(actionColumn) : null;
12974
- 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) => {
12975
12987
  return /*#__PURE__*/React.createElement(SimpleHeader, _extends({
12976
12988
  key: "column-".concat(index)
12977
12989
  }, column));
@@ -12106,6 +12106,9 @@ const SideMenu = _ref => {
12106
12106
  label: item.label,
12107
12107
  to: (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length ? "#" : (item === null || item === void 0 ? void 0 : item.href) || "#"
12108
12108
  }, (_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length ? item.children.map(subitem => /*#__PURE__*/React.createElement(NavLink, {
12109
+ mt: "xs",
12110
+ component: Link,
12111
+ to: subitem.href || "#",
12109
12112
  label: subitem.label,
12110
12113
  active: subitem.active,
12111
12114
  color,
@@ -12935,7 +12938,8 @@ const SimpleTable = _ref => {
12935
12938
  rows,
12936
12939
  withAction,
12937
12940
  withIndex,
12938
- actionFn
12941
+ actionFn,
12942
+ isStriped
12939
12943
  } = _ref;
12940
12944
  columns.sort((a, b) => a.order - b.order);
12941
12945
  const indexColumn = {
@@ -12950,7 +12954,15 @@ const SimpleTable = _ref => {
12950
12954
  };
12951
12955
  withIndex ? columns.unshift(indexColumn) : null;
12952
12956
  withAction && actionFn ? columns.push(actionColumn) : null;
12953
- 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) => {
12954
12966
  return /*#__PURE__*/React.createElement(SimpleHeader, _extends({
12955
12967
  key: "column-".concat(index)
12956
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.74",
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",