@adiba-banking-cloud/backoffice 0.0.75 → 0.0.77

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.
@@ -12120,7 +12120,6 @@ const SideMenu = _ref => {
12120
12120
  },
12121
12121
  key: item.id,
12122
12122
  active: item.active,
12123
- color,
12124
12123
  variant,
12125
12124
  onClick,
12126
12125
  leftSection: item.icon ? /*#__PURE__*/React.createElement(Icons, item.icon) : undefined,
@@ -12132,11 +12131,10 @@ const SideMenu = _ref => {
12132
12131
  to: subitem.href || "#",
12133
12132
  label: subitem.label,
12134
12133
  active: subitem.active,
12135
- color,
12136
- variant,
12137
12134
  onClick,
12138
12135
  c: color,
12139
- fw: 300,
12136
+ fw: subitem.active ? 600 : 300,
12137
+ variant: "transparent",
12140
12138
  style: {
12141
12139
  borderRadius: radius
12142
12140
  },
@@ -12959,7 +12957,8 @@ const SimpleTable = _ref => {
12959
12957
  rows,
12960
12958
  withAction,
12961
12959
  withIndex,
12962
- actionFn
12960
+ actionFn,
12961
+ isStriped
12963
12962
  } = _ref;
12964
12963
  columns.sort((a, b) => a.order - b.order);
12965
12964
  const indexColumn = {
@@ -12974,7 +12973,15 @@ const SimpleTable = _ref => {
12974
12973
  };
12975
12974
  withIndex ? columns.unshift(indexColumn) : null;
12976
12975
  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) => {
12976
+ const isStripedProps = {
12977
+ striped: "even",
12978
+ highlightOnHover: true,
12979
+ withRowBorders: false,
12980
+ verticalSpacing: "md"
12981
+ };
12982
+ return /*#__PURE__*/React.createElement(core.Table, isStriped && isStripedProps, /*#__PURE__*/React.createElement(core.Table.Thead, null, /*#__PURE__*/React.createElement(core.Table.Tr, {
12983
+ bg: isStriped ? 'gray.1' : 'transparent'
12984
+ }, columns.map((column, index) => {
12978
12985
  return /*#__PURE__*/React.createElement(SimpleHeader, _extends({
12979
12986
  key: "column-".concat(index)
12980
12987
  }, column));
@@ -12099,7 +12099,6 @@ const SideMenu = _ref => {
12099
12099
  },
12100
12100
  key: item.id,
12101
12101
  active: item.active,
12102
- color,
12103
12102
  variant,
12104
12103
  onClick,
12105
12104
  leftSection: item.icon ? /*#__PURE__*/React.createElement(Icons, item.icon) : undefined,
@@ -12111,11 +12110,10 @@ const SideMenu = _ref => {
12111
12110
  to: subitem.href || "#",
12112
12111
  label: subitem.label,
12113
12112
  active: subitem.active,
12114
- color,
12115
- variant,
12116
12113
  onClick,
12117
12114
  c: color,
12118
- fw: 300,
12115
+ fw: subitem.active ? 600 : 300,
12116
+ variant: "transparent",
12119
12117
  style: {
12120
12118
  borderRadius: radius
12121
12119
  },
@@ -12938,7 +12936,8 @@ const SimpleTable = _ref => {
12938
12936
  rows,
12939
12937
  withAction,
12940
12938
  withIndex,
12941
- actionFn
12939
+ actionFn,
12940
+ isStriped
12942
12941
  } = _ref;
12943
12942
  columns.sort((a, b) => a.order - b.order);
12944
12943
  const indexColumn = {
@@ -12953,7 +12952,15 @@ const SimpleTable = _ref => {
12953
12952
  };
12954
12953
  withIndex ? columns.unshift(indexColumn) : null;
12955
12954
  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) => {
12955
+ const isStripedProps = {
12956
+ striped: "even",
12957
+ highlightOnHover: true,
12958
+ withRowBorders: false,
12959
+ verticalSpacing: "md"
12960
+ };
12961
+ return /*#__PURE__*/React.createElement(Table, isStriped && isStripedProps, /*#__PURE__*/React.createElement(Table.Thead, null, /*#__PURE__*/React.createElement(Table.Tr, {
12962
+ bg: isStriped ? 'gray.1' : 'transparent'
12963
+ }, columns.map((column, index) => {
12957
12964
  return /*#__PURE__*/React.createElement(SimpleHeader, _extends({
12958
12965
  key: "column-".concat(index)
12959
12966
  }, 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.77",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",