@majoo-ui/react 1.59.3-rc.2 → 1.59.3-rc.4

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.
Files changed (3) hide show
  1. package/index.esm.js +16 -15
  2. package/index.umd.js +16 -15
  3. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -22695,6 +22695,7 @@ function HeaderMenuOption(props) {
22695
22695
  }, {
22696
22696
  children: visibleHeaders === null || visibleHeaders === void 0 ? void 0 : visibleHeaders.filter(val => typeof val.Header === 'string').map((item, index, row) => jsxs(Fragment, {
22697
22697
  children: [jsx(InputCheckbox, {
22698
+ id: `idx-${index}`,
22698
22699
  label: item.Header,
22699
22700
  value: item.id,
22700
22701
  disabled: index === 0
@@ -22716,12 +22717,8 @@ function HeaderMenuOption(props) {
22716
22717
  }, {
22717
22718
  children: children
22718
22719
  }), void 0), jsx(PopoverContent, Object.assign({
22719
- portalled: true,
22720
- isMobile: false,
22721
- style: {
22722
- right: 20,
22723
- left: null
22724
- }
22720
+ portalled: false,
22721
+ isMobile: false
22725
22722
  }, {
22726
22723
  children: jsx(Flex$1, Object.assign({
22727
22724
  gap: 5,
@@ -22744,6 +22741,7 @@ function HeaderMenuOption(props) {
22744
22741
  }, {
22745
22742
  children: visibleHeaders === null || visibleHeaders === void 0 ? void 0 : visibleHeaders.filter(val => typeof val.Header === 'string').map((item, index, row) => jsxs(Fragment, {
22746
22743
  children: [jsx(InputCheckbox, {
22744
+ id: `idx-${index}`,
22747
22745
  label: item.Header,
22748
22746
  value: item.id,
22749
22747
  disabled: index === 0
@@ -23230,8 +23228,8 @@ function Table({
23230
23228
  }, {
23231
23229
  children: headerGroups.map(headerGroup => {
23232
23230
  let visibleHeaders = headerGroup.headers.filter(column => !column.isSubRow);
23233
- if (filteredHeader.length > 0) {
23234
- visibleHeaders = visibleHeaders.filter(item => filteredHeader.includes(item.id));
23231
+ if (filteredHeader.length > 0 || filterHeader.length > 0) {
23232
+ visibleHeaders = visibleHeaders.filter(item => filteredHeader.includes(item.id) || filterHeader.includes(item.id));
23235
23233
  }
23236
23234
  return jsx(TableHeadRow$3, Object.assign({
23237
23235
  css: cssTableCell
@@ -23350,7 +23348,7 @@ function Table({
23350
23348
  }), void 0)), jsx(TableRow$3, Object.assign({
23351
23349
  css: customStyle
23352
23350
  }, row && row.getRowProps ? row.getRowProps() : {}, {
23353
- children: row.cells.filter(cell => filteredHeader.length > 0 ? filteredHeader.includes(cell.column.id) : cell).filter(cell => !cell.column.isSubRow).map((cell, index, _row) => {
23351
+ children: row.cells.filter(cell => filteredHeader.length > 0 || filterHeader.length > 0 ? filteredHeader.includes(cell.column.id) || filterHeader.includes(cell.column.id) : cell).filter(cell => !cell.column.isSubRow).map((cell, index, _row) => {
23354
23352
  var _a, _b, _c;
23355
23353
  let visibleHeaders = (_a = headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups[0]) === null || _a === void 0 ? void 0 : _a.headers.filter(column => !column.isSubRow);
23356
23354
  if (filterHeader.length > 0) {
@@ -23478,11 +23476,14 @@ function Table({
23478
23476
  zIndex: '$docked',
23479
23477
  position: 'absolute',
23480
23478
  top: '20px',
23481
- right: '10px',
23479
+ right: -10,
23482
23480
  '&:hover': {
23483
- backgroundColor: '#585f5f !important'
23481
+ backgroundColor: '$btnDisable !important'
23482
+ },
23483
+ '&:active': {
23484
+ backgroundColor: '$iconDisable !important'
23484
23485
  },
23485
- backgroundColor: '#c0c4c4 !important',
23486
+ backgroundColor: '$bgBorder !important',
23486
23487
  padding: 0,
23487
23488
  boxShadow: '0px 22px 43px 0px rgba(0, 0, 0, 0.08), 0px 9px 24px 0px rgba(0, 0, 0, 0.09), 0px 3px 9px 0px rgba(0, 0, 0, 0.13)'
23488
23489
  },
@@ -23497,10 +23498,10 @@ function Table({
23497
23498
  css: {
23498
23499
  position: 'absolute',
23499
23500
  top: 0,
23500
- right: 0,
23501
- width: 20,
23501
+ right: -10,
23502
+ width: 10,
23502
23503
  height: '100%',
23503
- boxShadow: '-5px 0px 5px -3px #00000026',
23504
+ boxShadow: tableScrollPosition === 'end' ? 'none' : '-5px 0px 5px -3px #00000026',
23504
23505
  backgroundColor: 'white'
23505
23506
  }
23506
23507
  }, void 0)]
package/index.umd.js CHANGED
@@ -23026,6 +23026,7 @@
23026
23026
  }).map(function (item, index, row) {
23027
23027
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
23028
23028
  children: [jsxRuntime.jsx(InputCheckbox, {
23029
+ id: "idx-".concat(index),
23029
23030
  label: item.Header,
23030
23031
  value: item.id,
23031
23032
  disabled: index === 0
@@ -23048,12 +23049,8 @@
23048
23049
  }, {
23049
23050
  children: children
23050
23051
  }), void 0), jsxRuntime.jsx(PopoverContent, __assign({
23051
- portalled: true,
23052
- isMobile: false,
23053
- style: {
23054
- right: 20,
23055
- left: null
23056
- }
23052
+ portalled: false,
23053
+ isMobile: false
23057
23054
  }, {
23058
23055
  children: jsxRuntime.jsx(Flex$1, __assign({
23059
23056
  gap: 5,
@@ -23085,6 +23082,7 @@
23085
23082
  }).map(function (item, index, row) {
23086
23083
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
23087
23084
  children: [jsxRuntime.jsx(InputCheckbox, {
23085
+ id: "idx-".concat(index),
23088
23086
  label: item.Header,
23089
23087
  value: item.id,
23090
23088
  disabled: index === 0
@@ -23633,9 +23631,9 @@
23633
23631
  var visibleHeaders = headerGroup.headers.filter(function (column) {
23634
23632
  return !column.isSubRow;
23635
23633
  });
23636
- if (filteredHeader.length > 0) {
23634
+ if (filteredHeader.length > 0 || filterHeader.length > 0) {
23637
23635
  visibleHeaders = visibleHeaders.filter(function (item) {
23638
- return filteredHeader.includes(item.id);
23636
+ return filteredHeader.includes(item.id) || filterHeader.includes(item.id);
23639
23637
  });
23640
23638
  }
23641
23639
  return jsxRuntime.jsx(TableHeadRow$3, __assign({
@@ -23768,7 +23766,7 @@
23768
23766
  css: customStyle
23769
23767
  }, row && row.getRowProps ? row.getRowProps() : {}, {
23770
23768
  children: row.cells.filter(function (cell) {
23771
- return filteredHeader.length > 0 ? filteredHeader.includes(cell.column.id) : cell;
23769
+ return filteredHeader.length > 0 || filterHeader.length > 0 ? filteredHeader.includes(cell.column.id) || filterHeader.includes(cell.column.id) : cell;
23772
23770
  }).filter(function (cell) {
23773
23771
  return !cell.column.isSubRow;
23774
23772
  }).map(function (cell, index, _row) {
@@ -23913,11 +23911,14 @@
23913
23911
  zIndex: '$docked',
23914
23912
  position: 'absolute',
23915
23913
  top: '20px',
23916
- right: '10px',
23914
+ right: -10,
23917
23915
  '&:hover': {
23918
- backgroundColor: '#585f5f !important'
23916
+ backgroundColor: '$btnDisable !important'
23917
+ },
23918
+ '&:active': {
23919
+ backgroundColor: '$iconDisable !important'
23919
23920
  },
23920
- backgroundColor: '#c0c4c4 !important',
23921
+ backgroundColor: '$bgBorder !important',
23921
23922
  padding: 0,
23922
23923
  boxShadow: '0px 22px 43px 0px rgba(0, 0, 0, 0.08), 0px 9px 24px 0px rgba(0, 0, 0, 0.09), 0px 3px 9px 0px rgba(0, 0, 0, 0.13)'
23923
23924
  },
@@ -23934,10 +23935,10 @@
23934
23935
  css: {
23935
23936
  position: 'absolute',
23936
23937
  top: 0,
23937
- right: 0,
23938
- width: 20,
23938
+ right: -10,
23939
+ width: 10,
23939
23940
  height: '100%',
23940
- boxShadow: '-5px 0px 5px -3px #00000026',
23941
+ boxShadow: tableScrollPosition === 'end' ? 'none' : '-5px 0px 5px -3px #00000026',
23941
23942
  backgroundColor: 'white'
23942
23943
  }
23943
23944
  }, void 0)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.59.3-rc.2",
3
+ "version": "1.59.3-rc.4",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",