@majoo-ui/react 1.58.4-rc.1 → 1.58.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.
package/index.umd.js CHANGED
@@ -1333,7 +1333,7 @@
1333
1333
  bgDark: '#FFFFFF'
1334
1334
  }
1335
1335
  });
1336
- var colors$7 = core.foundations.colors;
1336
+ var colors$8 = core.foundations.colors;
1337
1337
 
1338
1338
  const normalize = {
1339
1339
  '*,::before,::after': {
@@ -3298,7 +3298,7 @@
3298
3298
  columnNumber: 17
3299
3299
  }
3300
3300
  }, /*#__PURE__*/React__namespace.createElement(icons.CloseOutline, {
3301
- color: colors$7.iconSecondary,
3301
+ color: colors$8.iconSecondary,
3302
3302
  size: "16px",
3303
3303
  __self: undefined,
3304
3304
  __source: {
@@ -3777,7 +3777,7 @@
3777
3777
  columnNumber: 7
3778
3778
  }
3779
3779
  }, /*#__PURE__*/React__namespace.createElement(icons.CloseOutline, {
3780
- color: colors$7.iconSecondary,
3780
+ color: colors$8.iconSecondary,
3781
3781
  size: "16px",
3782
3782
  __self: undefined,
3783
3783
  __source: {
@@ -3864,7 +3864,7 @@
3864
3864
  columnNumber: 9
3865
3865
  }
3866
3866
  }, /*#__PURE__*/React__namespace.createElement(icons.CloseOutline, {
3867
- color: colors$7.iconSecondary,
3867
+ color: colors$8.iconSecondary,
3868
3868
  size: "16px",
3869
3869
  __self: undefined,
3870
3870
  __source: {
@@ -10304,7 +10304,7 @@
10304
10304
  }
10305
10305
  }, /*#__PURE__*/React__default["default"].createElement(icons.CloseOutline, {
10306
10306
  size: 16,
10307
- color: colors$7.iconSecondary,
10307
+ color: colors$8.iconSecondary,
10308
10308
  style: {
10309
10309
  verticalAlign: 'middle'
10310
10310
  },
@@ -10838,7 +10838,7 @@
10838
10838
  const _excluded$e = ["size", "onChange", "css", "disabled", "withDebounce", "defaultValue"];
10839
10839
  var _jsxFileName$z = "/Users/ryanakbar20/Documents/project/majoo/majoo-ui/packages/react/src/components/form/components/InputSearchbox/InputSearchbox.js";
10840
10840
  const {
10841
- colors: colors$6
10841
+ colors: colors$7
10842
10842
  } = core.foundations;
10843
10843
  const InputSearchbox = _ref => {
10844
10844
  var _props$value;
@@ -10914,7 +10914,7 @@
10914
10914
  }
10915
10915
  })), /*#__PURE__*/React__default["default"].createElement(InputRightElement, {
10916
10916
  children: (inputValue === null || inputValue === void 0 ? void 0 : inputValue.length) > 0 ? /*#__PURE__*/React__default["default"].createElement(SvgCloseFilled, {
10917
- color: colors$6.iconSecondary,
10917
+ color: colors$7.iconSecondary,
10918
10918
  __self: undefined,
10919
10919
  __source: {
10920
10920
  fileName: _jsxFileName$z,
@@ -11572,7 +11572,7 @@
11572
11572
  readOnly: readOnly
11573
11573
  }, {
11574
11574
  children: jsxRuntime.jsx(icons.CaretDownOutline, {
11575
- color: readOnly ? colors$7.gray300 : iconColor
11575
+ color: readOnly ? colors$8.gray300 : iconColor
11576
11576
  }, void 0)
11577
11577
  }), void 0);
11578
11578
  };
@@ -11787,7 +11787,7 @@
11787
11787
  }, {
11788
11788
  children: jsxRuntime.jsx(icons.CircleInfoOutline, {
11789
11789
  size: "16px",
11790
- color: colors$7.iconDisable,
11790
+ color: colors$8.iconDisable,
11791
11791
  style: {
11792
11792
  verticalAlign: 'text-bottom'
11793
11793
  }
@@ -13236,7 +13236,7 @@
13236
13236
  color: '$textDisable',
13237
13237
  display: 'inline-flex'
13238
13238
  });
13239
- const IndeterminateFilled = styled('div', {
13239
+ const IndeterminateFilled$1 = styled('div', {
13240
13240
  width: 16,
13241
13241
  height: 16,
13242
13242
  background: '$primary500',
@@ -13661,7 +13661,7 @@
13661
13661
  columnNumber: 11
13662
13662
  }
13663
13663
  }), /*#__PURE__*/React__default["default"].createElement(IconCaretDown, {
13664
- color: disabled || readOnly ? colors$7.iconDisable : colors$7.iconPrimary,
13664
+ color: disabled || readOnly ? colors$8.iconDisable : colors$8.iconPrimary,
13665
13665
  __self: undefined,
13666
13666
  __source: {
13667
13667
  fileName: _jsxFileName$w,
@@ -13780,7 +13780,7 @@
13780
13780
  columnNumber: 19
13781
13781
  }
13782
13782
  }, showAllTags ? /*#__PURE__*/React__default["default"].createElement(icons.ChevronUpOutline, {
13783
- color: colors$7.iconSecondary,
13783
+ color: colors$8.iconSecondary,
13784
13784
  __self: undefined,
13785
13785
  __source: {
13786
13786
  fileName: _jsxFileName$w,
@@ -13788,7 +13788,7 @@
13788
13788
  columnNumber: 23
13789
13789
  }
13790
13790
  }) : /*#__PURE__*/React__default["default"].createElement(icons.ChevronDownOutline, {
13791
- color: colors$7.iconSecondary,
13791
+ color: colors$8.iconSecondary,
13792
13792
  __self: undefined,
13793
13793
  __source: {
13794
13794
  fileName: _jsxFileName$w,
@@ -13947,7 +13947,7 @@
13947
13947
  columnNumber: 23
13948
13948
  }
13949
13949
  }, !(item !== null && item !== void 0 && item.hideCheck) && (item.isDisabled ? /*#__PURE__*/React__default["default"].createElement(CheckOutline, {
13950
- color: colors$7.iconDisable,
13950
+ color: colors$8.iconDisable,
13951
13951
  __self: undefined,
13952
13952
  __source: {
13953
13953
  fileName: _jsxFileName$w,
@@ -13955,14 +13955,14 @@
13955
13955
  columnNumber: 29
13956
13956
  }
13957
13957
  }) : selectedValue.includes(item.id) && (item.isDisabled === false || item.isDisabled === undefined) && /*#__PURE__*/React__default["default"].createElement(CheckOutline, {
13958
- color: colors$7.iconGreen,
13958
+ color: colors$8.iconGreen,
13959
13959
  __self: undefined,
13960
13960
  __source: {
13961
13961
  fileName: _jsxFileName$w,
13962
13962
  lineNumber: 834,
13963
13963
  columnNumber: 31
13964
13964
  }
13965
- })), isShowSelectAll && (item === null || item === void 0 ? void 0 : item.id) === '!all' && selectedValue !== null && selectedValue !== void 0 && selectedValue.length && (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length) < (items === null || items === void 0 ? void 0 : items.length) ? /*#__PURE__*/React__default["default"].createElement(IndeterminateFilled, {
13965
+ })), isShowSelectAll && (item === null || item === void 0 ? void 0 : item.id) === '!all' && selectedValue !== null && selectedValue !== void 0 && selectedValue.length && (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length) < (items === null || items === void 0 ? void 0 : items.length) ? /*#__PURE__*/React__default["default"].createElement(IndeterminateFilled$1, {
13966
13966
  __self: undefined,
13967
13967
  __source: {
13968
13968
  fileName: _jsxFileName$w,
@@ -14020,7 +14020,7 @@
14020
14020
  }
14021
14021
  }, /*#__PURE__*/React__default["default"].createElement(icons.CircleInfoOutline, {
14022
14022
  size: "16px",
14023
- color: colors$7.iconDisable,
14023
+ color: colors$8.iconDisable,
14024
14024
  style: {
14025
14025
  verticalAlign: 'text-bottom'
14026
14026
  },
@@ -14360,7 +14360,7 @@
14360
14360
  columnNumber: 9
14361
14361
  }
14362
14362
  }, /*#__PURE__*/React__default["default"].createElement(icons.CirclePlusOutline, {
14363
- color: colors$7.iconGreen,
14363
+ color: colors$8.iconGreen,
14364
14364
  __self: this,
14365
14365
  __source: {
14366
14366
  fileName: _jsxFileName$u,
@@ -14412,31 +14412,35 @@
14412
14412
  onItemCheck = _a.onItemCheck,
14413
14413
  onItemUncheck = _a.onItemUncheck,
14414
14414
  searchPlaceholder = _a.searchPlaceholder,
14415
+ _c = _a.counterFooter,
14416
+ counterFooter = _c === void 0 ? true : _c,
14415
14417
  counterFooterText = _a.counterFooterText,
14416
- _c = _a.isLoading,
14417
- isLoading = _c === void 0 ? false : _c,
14418
+ _d = _a.isLoading,
14419
+ isLoading = _d === void 0 ? false : _d,
14418
14420
  enabledItems = _a.enabledItems,
14419
14421
  emptyDataMessage = _a.emptyDataMessage,
14420
14422
  value = _a.value,
14421
14423
  fetchData = _a.fetchData,
14422
14424
  onQueryChange = _a.onQueryChange,
14423
14425
  css = _a.css,
14426
+ wrapperCss = _a.wrapperCss,
14424
14427
  defaultSort = _a.defaultSort,
14425
14428
  title = _a.title,
14426
- hideSelectAll = _a.hideSelectAll;
14429
+ hideSelectAll = _a.hideSelectAll,
14430
+ customHeader = _a.customHeader;
14427
14431
  var t = reactI18next.useTranslation(['MajooUI/inputResourceList', 'translation']).t;
14428
- var _d = React.useState([]),
14429
- checkedResources = _d[0],
14430
- setCheckedResources = _d[1];
14431
- var _e = React.useState(),
14432
- query = _e[0],
14433
- setQuery = _e[1];
14434
- var _f = React.useState('asc'),
14435
- sortType = _f[0],
14436
- setSortType = _f[1];
14437
- var _g = React.useState([]),
14438
- data = _g[0],
14439
- setData = _g[1];
14432
+ var _e = React.useState([]),
14433
+ checkedResources = _e[0],
14434
+ setCheckedResources = _e[1];
14435
+ var _f = React.useState(),
14436
+ query = _f[0],
14437
+ setQuery = _f[1];
14438
+ var _g = React.useState('asc'),
14439
+ sortType = _g[0],
14440
+ setSortType = _g[1];
14441
+ var _h = React.useState([]),
14442
+ data = _h[0],
14443
+ setData = _h[1];
14440
14444
  var scrollerRef = React.useRef(null);
14441
14445
  React.useEffect(function () {
14442
14446
  function filterUnique(params) {
@@ -14633,7 +14637,7 @@
14633
14637
  position: 'relative'
14634
14638
  }, css)
14635
14639
  }, {
14636
- children: [onQueryChange && jsxRuntime.jsx(InputSearchbox, {
14640
+ children: [customHeader, onQueryChange && jsxRuntime.jsx(InputSearchbox, {
14637
14641
  size: "lg",
14638
14642
  placeholder: searchPlaceholder || t('placeholder.search', 'Cari ...', {
14639
14643
  ns: 'translation'
@@ -14667,7 +14671,7 @@
14667
14671
  }, {
14668
14672
  children: jsxRuntime.jsx(icons.SortingOutline, {
14669
14673
  size: 16,
14670
- color: colors$7.iconSecondary
14674
+ color: colors$8.iconSecondary
14671
14675
  }, void 0)
14672
14676
  }), void 0)]
14673
14677
  }), void 0), isLoading && jsxRuntime.jsx(Flex$1, __assign({
@@ -14689,7 +14693,7 @@
14689
14693
  children: "Loading .... "
14690
14694
  }), void 0)
14691
14695
  }), void 0), jsxRuntime.jsxs(Box, __assign({
14692
- css: {
14696
+ css: __assign({
14693
14697
  border: '1px solid $gray300',
14694
14698
  padding: '$spacing-05',
14695
14699
  borderRadius: '$lg',
@@ -14697,7 +14701,7 @@
14697
14701
  height: isLoading ? 285 : 'unset',
14698
14702
  overflow: 'auto',
14699
14703
  marginTop: '$spacing-03'
14700
- },
14704
+ }, wrapperCss && wrapperCss),
14701
14705
  ref: scrollerRef
14702
14706
  }, {
14703
14707
  children: [data.length <= 0 && (value || checkedResources).length <= 0 && !isLoading || defaultSort && data.length < 1 ? jsxRuntime.jsx(Flex$1, __assign({
@@ -14737,7 +14741,7 @@
14737
14741
  }, {
14738
14742
  children: defaultSort ? renderWithSorting() : renderWithoutSorting()
14739
14743
  }), void 0)]
14740
- }), void 0), (((value === null || value === void 0 ? void 0 : value.length) || 0) > 0 || checkedResources.length > 0) && jsxRuntime.jsx(Box, __assign({
14744
+ }), void 0), counterFooter && (((value === null || value === void 0 ? void 0 : value.length) || 0) > 0 || checkedResources.length > 0) && jsxRuntime.jsx(Box, __assign({
14741
14745
  css: {
14742
14746
  marginTop: '$spacing-04'
14743
14747
  }
@@ -14752,6 +14756,115 @@
14752
14756
  }), void 0);
14753
14757
  }
14754
14758
 
14759
+ var colors$6 = core.foundations.colors;
14760
+ var IconBox = styled('div', {
14761
+ height: 16,
14762
+ width: 16,
14763
+ cursor: 'pointer',
14764
+ variants: {
14765
+ border: {
14766
+ true: {
14767
+ borderRadius: 3,
14768
+ border: '1.5px solid $gray300'
14769
+ }
14770
+ }
14771
+ }
14772
+ });
14773
+ var IndeterminateFilled = styled('div', {
14774
+ width: 16,
14775
+ height: 16,
14776
+ background: '$primary500',
14777
+ color: '$textWhite',
14778
+ borderRadius: 3,
14779
+ fontSize: 14,
14780
+ display: 'flex',
14781
+ justifyContent: 'center',
14782
+ alignItems: 'center'
14783
+ });
14784
+ var InputResourceListExpandable = function InputResourceListExpandable(_a) {
14785
+ var _b;
14786
+ var renderSelectAll = _a.renderSelectAll,
14787
+ onItemCheck = _a.onItemCheck,
14788
+ onItemUncheck = _a.onItemUncheck,
14789
+ value = _a.value,
14790
+ props = __rest(_a, ["renderSelectAll", "onItemCheck", "onItemUncheck", "value"]);
14791
+ var _c = React.useState(false),
14792
+ expand = _c[0],
14793
+ setExpand = _c[1];
14794
+ var _d = React.useState(value || []),
14795
+ checkedItem = _d[0],
14796
+ setCheckedItem = _d[1];
14797
+ var handleChecked = function handleChecked(item) {
14798
+ onItemCheck(item);
14799
+ setCheckedItem(function (current) {
14800
+ return __spreadArray(__spreadArray([], current, true), [item], false);
14801
+ });
14802
+ };
14803
+ var handleUnChecked = function handleUnChecked(item) {
14804
+ onItemUncheck(item);
14805
+ setCheckedItem(function (current) {
14806
+ return current.filter(function (currItem) {
14807
+ return currItem.value !== item.value;
14808
+ });
14809
+ });
14810
+ };
14811
+ var handleCheckedAll = function handleCheckedAll() {
14812
+ var _a, _b, _c;
14813
+ if ((checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length) && !((_a = props === null || props === void 0 ? void 0 : props.data) === null || _a === void 0 ? void 0 : _a.length)) {
14814
+ for (var i = 0; i < (checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length); i++) {
14815
+ var item = checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem[i];
14816
+ handleUnChecked(item);
14817
+ }
14818
+ } else {
14819
+ for (var i = 0; i < ((_b = props === null || props === void 0 ? void 0 : props.data) === null || _b === void 0 ? void 0 : _b.length); i++) {
14820
+ var item = (_c = props === null || props === void 0 ? void 0 : props.data) === null || _c === void 0 ? void 0 : _c[i];
14821
+ handleChecked(item);
14822
+ }
14823
+ }
14824
+ };
14825
+ return jsxRuntime.jsxs(Box, {
14826
+ children: [jsxRuntime.jsxs(Flex$1, __assign({
14827
+ justify: "between",
14828
+ align: "start"
14829
+ }, {
14830
+ children: [jsxRuntime.jsxs(Flex$1, __assign({
14831
+ gap: 5
14832
+ }, {
14833
+ children: [jsxRuntime.jsx(IconBox, __assign({
14834
+ onClick: handleCheckedAll,
14835
+ border: Boolean(!(checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length))
14836
+ }, {
14837
+ children: (checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length) && !((_b = props === null || props === void 0 ? void 0 : props.data) === null || _b === void 0 ? void 0 : _b.length) ? jsxRuntime.jsx(CheckOutline, {
14838
+ color: colors$6.iconGreen
14839
+ }, void 0) : (checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length) ? jsxRuntime.jsx(IndeterminateFilled, {
14840
+ children: "-"
14841
+ }, void 0) : ''
14842
+ }), void 0), renderSelectAll]
14843
+ }), void 0), jsxRuntime.jsx(Box, __assign({
14844
+ css: {
14845
+ cursor: 'pointer'
14846
+ },
14847
+ onClick: function () {
14848
+ return setExpand(!expand);
14849
+ }
14850
+ }, {
14851
+ children: expand ? jsxRuntime.jsx(icons.ChevronUpOutline, {}, void 0) : jsxRuntime.jsx(icons.ChevronDownOutline, {}, void 0)
14852
+ }), void 0)]
14853
+ }), void 0), jsxRuntime.jsx(Box, {
14854
+ children: expand && jsxRuntime.jsx(InputResourceList, __assign({}, props, {
14855
+ value: checkedItem,
14856
+ onItemCheck: handleChecked,
14857
+ onItemUncheck: handleUnChecked
14858
+ }), void 0)
14859
+ }, void 0)]
14860
+ }, void 0);
14861
+ };
14862
+ var ResourceList = function ResourceList(_a) {
14863
+ var expandable = _a.expandable,
14864
+ props = __rest(_a, ["expandable"]);
14865
+ return expandable ? jsxRuntime.jsx(InputResourceListExpandable, __assign({}, props), void 0) : jsxRuntime.jsx(InputResourceList, __assign({}, props), void 0);
14866
+ };
14867
+
14755
14868
  var SelectInputSearch = /*#__PURE__*/React__namespace.forwardRef(function (_a, forwardedRef) {
14756
14869
  var _b = _a.showLeadingIcon,
14757
14870
  showLeadingIcon = _b === void 0 ? false : _b,
@@ -15167,7 +15280,7 @@
15167
15280
  }, {
15168
15281
  children: jsxRuntime.jsx(icons.MinusOutline, {
15169
15282
  size: 24,
15170
- color: disabled || disabledDecrement ? colors$7.iconDisable : colors$7.primary500
15283
+ color: disabled || disabledDecrement ? colors$8.iconDisable : colors$8.primary500
15171
15284
  }, void 0)
15172
15285
  }), void 0), jsxRuntime.jsx(Input$4, {
15173
15286
  ref: ref,
@@ -15190,7 +15303,7 @@
15190
15303
  }, {
15191
15304
  children: jsxRuntime.jsx(icons.PlusOutline, {
15192
15305
  size: 24,
15193
- color: disabled || disabledIncrement ? colors$7.iconDisable : colors$7.primary500
15306
+ color: disabled || disabledIncrement ? colors$8.iconDisable : colors$8.primary500
15194
15307
  }, void 0)
15195
15308
  }), void 0)]
15196
15309
  }), void 0);
@@ -15785,7 +15898,7 @@
15785
15898
  columnNumber: 15
15786
15899
  }
15787
15900
  }, /*#__PURE__*/React__default["default"].createElement(icons.ChevronLeftOutline, {
15788
- color: colors$7.iconGreen,
15901
+ color: colors$8.iconGreen,
15789
15902
  __self: this,
15790
15903
  __source: {
15791
15904
  fileName: _jsxFileName$s,
@@ -15815,7 +15928,7 @@
15815
15928
  columnNumber: 15
15816
15929
  }
15817
15930
  }, /*#__PURE__*/React__default["default"].createElement(icons.ChevronRightOutline, {
15818
- color: colors$7.iconGreen,
15931
+ color: colors$8.iconGreen,
15819
15932
  __self: this,
15820
15933
  __source: {
15821
15934
  fileName: _jsxFileName$s,
@@ -17755,7 +17868,7 @@
17755
17868
  }
17756
17869
  }, /*#__PURE__*/React__default["default"].createElement(InputLeftElement, {
17757
17870
  children: /*#__PURE__*/React__default["default"].createElement(icons.TimeOutline, {
17758
- color: disabled ? colors$7.iconDisable : colors$7.iconPrimary,
17871
+ color: disabled ? colors$8.iconDisable : colors$8.iconPrimary,
17759
17872
  __self: this,
17760
17873
  __source: {
17761
17874
  fileName: _jsxFileName$q,
@@ -19689,7 +19802,7 @@
19689
19802
  columnNumber: 11
19690
19803
  }
19691
19804
  }, /*#__PURE__*/React__default["default"].createElement(icons.ChevronLgLeftOutline, {
19692
- color: colors$7.iconGreen,
19805
+ color: colors$8.iconGreen,
19693
19806
  __self: undefined,
19694
19807
  __source: {
19695
19808
  fileName: _jsxFileName$n,
@@ -19718,7 +19831,7 @@
19718
19831
  columnNumber: 11
19719
19832
  }
19720
19833
  }, /*#__PURE__*/React__default["default"].createElement(icons.ChevronLgRightOutline, {
19721
- color: colors$7.iconGreen,
19834
+ color: colors$8.iconGreen,
19722
19835
  __self: undefined,
19723
19836
  __source: {
19724
19837
  fileName: _jsxFileName$n,
@@ -19778,7 +19891,7 @@
19778
19891
  columnNumber: 9
19779
19892
  }
19780
19893
  }, icon && /*#__PURE__*/React__default["default"].cloneElement(icon, {
19781
- color: activeTabs === value || isIconHovered ? colors$7.iconGreen : colors$7.iconDisable
19894
+ color: activeTabs === value || isIconHovered ? colors$8.iconGreen : colors$8.iconDisable
19782
19895
  }), (!icon || activeTabs === value) && children)));
19783
19896
  };
19784
19897
  const TabsContent$1 = _ref4 => {
@@ -20564,7 +20677,7 @@
20564
20677
  columnNumber: 5
20565
20678
  }
20566
20679
  }, iconType === 'prev' ? /*#__PURE__*/React__default["default"].createElement(icons.ArrowLeftOutline, {
20567
- color: isHover ? colors$7.iconGreen : colors$7.iconPrimary,
20680
+ color: isHover ? colors$8.iconGreen : colors$8.iconPrimary,
20568
20681
  __self: undefined,
20569
20682
  __source: {
20570
20683
  fileName: _jsxFileName$k,
@@ -20572,7 +20685,7 @@
20572
20685
  columnNumber: 9
20573
20686
  }
20574
20687
  }) : /*#__PURE__*/React__default["default"].createElement(icons.ArrowRightOutline, {
20575
- color: isHover ? colors$7.iconGreen : colors$7.iconPrimary,
20688
+ color: isHover ? colors$8.iconGreen : colors$8.iconPrimary,
20576
20689
  __self: undefined,
20577
20690
  __source: {
20578
20691
  fileName: _jsxFileName$k,
@@ -20705,7 +20818,7 @@
20705
20818
  columnNumber: 17
20706
20819
  }
20707
20820
  }, /*#__PURE__*/React__default["default"].createElement(icons.ArrowLeftOutline, {
20708
- color: currentPage === 1 ? colors$7.iconDisable : colors$7.iconPrimary,
20821
+ color: currentPage === 1 ? colors$8.iconDisable : colors$8.iconPrimary,
20709
20822
  __self: undefined,
20710
20823
  __source: {
20711
20824
  fileName: _jsxFileName$k,
@@ -20782,7 +20895,7 @@
20782
20895
  columnNumber: 17
20783
20896
  }
20784
20897
  }, /*#__PURE__*/React__default["default"].createElement(icons.ArrowRightOutline, {
20785
- color: currentPage === totalPages ? colors$7.iconDisable : colors$7.iconPrimary,
20898
+ color: currentPage === totalPages ? colors$8.iconDisable : colors$8.iconPrimary,
20786
20899
  __self: undefined,
20787
20900
  __source: {
20788
20901
  fileName: _jsxFileName$k,
@@ -21087,7 +21200,7 @@
21087
21200
  columnNumber: 15
21088
21201
  }
21089
21202
  }, selectedLimit.toString()), /*#__PURE__*/React__default["default"].createElement(icons.ChevronDownOutline, {
21090
- color: colors$7.gray400,
21203
+ color: colors$8.gray400,
21091
21204
  __self: this,
21092
21205
  __source: {
21093
21206
  fileName: _jsxFileName$j,
@@ -21400,23 +21513,23 @@
21400
21513
  userSelect: 'none',
21401
21514
  color: '$textPrimary',
21402
21515
  '&[data-disabled]': {
21403
- color: colors$7.gray400,
21516
+ color: colors$8.gray400,
21404
21517
  pointerEvents: 'none'
21405
21518
  },
21406
21519
  '&:hover': {
21407
21520
  cursor: 'pointer',
21408
- backgroundColor: colors$7.gray100
21521
+ backgroundColor: colors$8.gray100
21409
21522
  },
21410
21523
  '&:active': {
21411
- backgroundColor: colors$7.gray150
21524
+ backgroundColor: colors$8.gray150
21412
21525
  },
21413
21526
  '&:focus': {
21414
- backgroundColor: colors$7.gray100
21527
+ backgroundColor: colors$8.gray100
21415
21528
  }
21416
21529
  });
21417
21530
  var ContextMenuSeparator = styled('div', {
21418
21531
  height: 1,
21419
- backgroundColor: colors$7.gray150,
21532
+ backgroundColor: colors$8.gray150,
21420
21533
  margin: 5
21421
21534
  });
21422
21535
 
@@ -21608,20 +21721,26 @@
21608
21721
  }
21609
21722
  }, {
21610
21723
  children: page.map(function (row, i) {
21611
- var _a;
21724
+ var _a, _b, _c;
21612
21725
  prepareRow(row);
21613
- var isContextMenu = (_a = row.cells.filter(function (cell) {
21726
+ var isContextMenu = Boolean((_a = row.cells.filter(function (cell) {
21614
21727
  var _a, _b;
21615
21728
  return (_b = (_a = cell.column) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.length;
21616
- })) === null || _a === void 0 ? void 0 : _a.length;
21729
+ })) === null || _a === void 0 ? void 0 : _a.length);
21617
21730
  var actionCells = row.allCells.filter(function (cell) {
21618
21731
  return cell.column.id === 'menu' || cell.column.isAction;
21619
21732
  });
21620
21733
  var customStyle = {};
21734
+ var hideRowMenuColumn = false;
21621
21735
  if (customRowsStyle && customRowsStyle(row.values).length) {
21622
21736
  for (var i_1 = 0; i_1 < customRowsStyle(row.values).length; i_1++) {
21623
21737
  if (customRowsStyle(row.values)[i_1].predicate) {
21624
- customStyle = customRowsStyle(row.values)[i_1].css;
21738
+ var customRowCss = (_b = customRowsStyle(row.values)[i_1]) === null || _b === void 0 ? void 0 : _b.css;
21739
+ customStyle = customRowCss || {};
21740
+ if ((_c = customRowsStyle(row.original)[i_1]) === null || _c === void 0 ? void 0 : _c.hideRowMenuColumn) {
21741
+ isContextMenu = false;
21742
+ hideRowMenuColumn = true;
21743
+ }
21625
21744
  }
21626
21745
  }
21627
21746
  }
@@ -21736,7 +21855,7 @@
21736
21855
  justify: "between",
21737
21856
  gap: 5,
21738
21857
  css: {
21739
- backgroundColor: colors$7.bgGray,
21858
+ backgroundColor: colors$8.bgGray,
21740
21859
  padding: "$spacing-04 $spacing-05 ".concat('selection' in row.values ? '$spacing-04 $spacing-07' : ''),
21741
21860
  borderBottom: '1pt solid $bgBorder',
21742
21861
  alignItems: cell.column.accessor ? getAlign(cellAlign) : 'center'
@@ -21765,13 +21884,13 @@
21765
21884
  }), void 0)]
21766
21885
  }), "".concat(cell.column.id, "-").concat(row.id));
21767
21886
  })
21768
- }), void 0), actionCells && actionCells.length > 0 && jsxRuntime.jsx(Flex$1, __assign({
21887
+ }), void 0), actionCells && !hideRowMenuColumn && actionCells.length > 0 && jsxRuntime.jsx(Flex$1, __assign({
21769
21888
  align: "center",
21770
21889
  justify: "end",
21771
21890
  gap: 3,
21772
21891
  css: {
21773
21892
  height: '40px',
21774
- backgroundColor: colors$7.bgGray,
21893
+ backgroundColor: colors$8.bgGray,
21775
21894
  paddingRight: '$spacing-04'
21776
21895
  }
21777
21896
  }, {
@@ -22681,7 +22800,7 @@
22681
22800
  }
22682
22801
  }, {
22683
22802
  children: page.map(function (row, i) {
22684
- var _a, _b, _c;
22803
+ var _a, _b, _c, _d;
22685
22804
  prepareRow(row);
22686
22805
  var subRowCells = row.cells.filter(function (cell) {
22687
22806
  return cell.column.isSubRow;
@@ -22697,12 +22816,15 @@
22697
22816
  return (_b = (_a = cell.column) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.length;
22698
22817
  })) === null || _b === void 0 ? void 0 : _b.length);
22699
22818
  var customStyle = {};
22819
+ var hideRowMenuColumn = false;
22700
22820
  if (customRowsStyle && customRowsStyle(row.original).length) {
22701
22821
  for (var i_2 = 0; i_2 < customRowsStyle(row.original).length; i_2++) {
22702
22822
  if (customRowsStyle(row.original)[i_2].predicate) {
22703
- customStyle = customRowsStyle(row.original)[i_2].css;
22704
- if ((_c = customRowsStyle(row.original)[i_2]) === null || _c === void 0 ? void 0 : _c.hideContextMenu) {
22823
+ var customRowCss = (_c = customRowsStyle(row.original)[i_2]) === null || _c === void 0 ? void 0 : _c.css;
22824
+ customStyle = customRowCss || {};
22825
+ if ((_d = customRowsStyle(row.original)[i_2]) === null || _d === void 0 ? void 0 : _d.hideRowMenuColumn) {
22705
22826
  isContextMenu = false;
22827
+ hideRowMenuColumn = true;
22706
22828
  }
22707
22829
  }
22708
22830
  }
@@ -22766,7 +22888,13 @@
22766
22888
  }), void 0);
22767
22889
  }
22768
22890
  }, {
22769
- children: cell.render('Cell')
22891
+ children: jsxRuntime.jsx(Box, __assign({
22892
+ css: {
22893
+ visibility: hideRowMenuColumn && collId === 'menu' ? 'hidden' : 'visible'
22894
+ }
22895
+ }, {
22896
+ children: cell.render('Cell')
22897
+ }), void 0)
22770
22898
  }), void 0)
22771
22899
  }), void 0);
22772
22900
  })
@@ -22777,7 +22905,7 @@
22777
22905
  children: [leftAddOnCells.map(function (_, index) {
22778
22906
  return jsxRuntime.jsx("td", {
22779
22907
  style: {
22780
- backgroundColor: colors$7.bgGray
22908
+ backgroundColor: colors$8.bgGray
22781
22909
  }
22782
22910
  }, index);
22783
22911
  }), jsxRuntime.jsxs(React__namespace.Fragment, {
@@ -23522,7 +23650,7 @@
23522
23650
  });
23523
23651
  const StyledOverlay = styled(ADialog__namespace.Overlay, {
23524
23652
  zIndex: 1,
23525
- backgroundColor: colors$7.bgDimmer,
23653
+ backgroundColor: colors$8.bgDimmer,
23526
23654
  position: 'fixed',
23527
23655
  inset: 0,
23528
23656
  '@media (prefers-reduced-motion: no-preference)': {
@@ -23555,14 +23683,14 @@
23555
23683
  display: 'flex',
23556
23684
  flexDirection: 'row',
23557
23685
  justifyContent: 'space-between',
23558
- color: colors$7.gray900,
23686
+ color: colors$8.gray900,
23559
23687
  fontSize: 17,
23560
23688
  fontWeight: 500
23561
23689
  });
23562
23690
  const StyledDescription$1 = styled(ADialog__namespace.Description, {
23563
23691
  mx: 24,
23564
23692
  my: 20,
23565
- color: colors$7.gray900,
23693
+ color: colors$8.gray900,
23566
23694
  fontSize: 15,
23567
23695
  lineHeight: 1.5
23568
23696
  });
@@ -24219,17 +24347,17 @@
24219
24347
  position: 'relative',
24220
24348
  userSelect: 'none',
24221
24349
  '&[data-disabled]': {
24222
- color: colors$7.gray400,
24350
+ color: colors$8.gray400,
24223
24351
  pointerEvents: 'none'
24224
24352
  },
24225
24353
  '&:hover': {
24226
24354
  cursor: 'pointer'
24227
24355
  },
24228
24356
  '&:active': {
24229
- backgroundColor: colors$7.gray150
24357
+ backgroundColor: colors$8.gray150
24230
24358
  },
24231
24359
  '&:focus': {
24232
- backgroundColor: colors$7.gray100
24360
+ backgroundColor: colors$8.gray100
24233
24361
  }
24234
24362
  };
24235
24363
  const StyledItem = styled(DropdownMenuPrimitive__namespace.Item, Object.assign({}, itemStyles));
@@ -24246,11 +24374,11 @@
24246
24374
  padding: '8px 0',
24247
24375
  fontSize: 12,
24248
24376
  lineHeight: '25px',
24249
- color: colors$7.gray700
24377
+ color: colors$8.gray700
24250
24378
  });
24251
24379
  const StyledSeparator = styled(DropdownMenuPrimitive__namespace.Separator, {
24252
24380
  height: 1,
24253
- backgroundColor: colors$7.gray150,
24381
+ backgroundColor: colors$8.gray150,
24254
24382
  margin: 5
24255
24383
  });
24256
24384
  const StyledItemIndicator = styled(DropdownMenuPrimitive__namespace.ItemIndicator, {
@@ -24347,7 +24475,7 @@
24347
24475
  color: 'white'
24348
24476
  },
24349
24477
  '[data-disabled] &': {
24350
- color: colors$7.gray400
24478
+ color: colors$8.gray400
24351
24479
  }
24352
24480
  });
24353
24481
  const StyledDropdown = styled(Button$4, {
@@ -28155,7 +28283,7 @@
28155
28283
  buttonType: "secondary"
28156
28284
  }, {
28157
28285
  children: jsxRuntime.jsx(icons.ChevronLeftOutline, {
28158
- color: colors$7.btnPrimary
28286
+ color: colors$8.btnPrimary
28159
28287
  }, void 0)
28160
28288
  }), void 0), jsxRuntime.jsxs(Flex$1, __assign({
28161
28289
  align: "center",
@@ -28215,7 +28343,7 @@
28215
28343
  buttonType: "secondary"
28216
28344
  }, {
28217
28345
  children: jsxRuntime.jsx(icons.ChevronRightOutline, {
28218
- color: colors$7.btnPrimary
28346
+ color: colors$8.btnPrimary
28219
28347
  }, void 0)
28220
28348
  }), void 0)]
28221
28349
  }), void 0);
@@ -31294,7 +31422,7 @@
31294
31422
  marginRight: 9
31295
31423
  },
31296
31424
  size: "24",
31297
- color: colors$7.bgGreen,
31425
+ color: colors$8.bgGreen,
31298
31426
  __self: undefined,
31299
31427
  __source: {
31300
31428
  fileName: _jsxFileName$4,
@@ -31315,7 +31443,7 @@
31315
31443
  margin: '0 9px'
31316
31444
  },
31317
31445
  size: "20",
31318
- color: colors$7.iconSecondary,
31446
+ color: colors$8.iconSecondary,
31319
31447
  __self: undefined,
31320
31448
  __source: {
31321
31449
  fileName: _jsxFileName$4,
@@ -31387,7 +31515,7 @@
31387
31515
  }
31388
31516
  }, /*#__PURE__*/React__default["default"].createElement(StyledCircleInfoOutline, {
31389
31517
  size: "20",
31390
- color: colors$7.iconPrimary,
31518
+ color: colors$8.iconPrimary,
31391
31519
  __self: undefined,
31392
31520
  __source: {
31393
31521
  fileName: _jsxFileName$4,
@@ -31814,10 +31942,10 @@
31814
31942
  const DesktopContainer = styled(Flex$1, {
31815
31943
  display: 'none',
31816
31944
  '& .active-scroll-spy': {
31817
- borderLeft: `4px solid ${colors$7.primary500} !important`
31945
+ borderLeft: `4px solid ${colors$8.primary500} !important`
31818
31946
  },
31819
31947
  '& .active-scroll-spy .link-title': {
31820
- color: `${colors$7.primary500} !important`
31948
+ color: `${colors$8.primary500} !important`
31821
31949
  },
31822
31950
  '@md': {
31823
31951
  display: 'unset'
@@ -31825,7 +31953,7 @@
31825
31953
  });
31826
31954
  const MobileContainer = styled(Flex$1, {
31827
31955
  backgroundColor: '$white',
31828
- border: `1px solid ${colors$7.gray150}`,
31956
+ border: `1px solid ${colors$8.gray150}`,
31829
31957
  borderRadius: 8,
31830
31958
  padding: '8px 8px',
31831
31959
  width: '100%',
@@ -31952,7 +32080,7 @@
31952
32080
  marginLeft: '-4px !important',
31953
32081
  borderLeftWidth: '4px !important',
31954
32082
  borderLeftStyle: 'solid !important',
31955
- borderLeftColor: `${(item === null || item === void 0 ? void 0 : item.id) === activeId ? colors$7.primary500 : 'transparent'} !important`,
32083
+ borderLeftColor: `${(item === null || item === void 0 ? void 0 : item.id) === activeId ? colors$8.primary500 : 'transparent'} !important`,
31956
32084
  paddingLeft: '16px !important',
31957
32085
  minHeight: 25
31958
32086
  },
@@ -50510,11 +50638,11 @@
50510
50638
  var getColor = function getColor(state) {
50511
50639
  switch (state) {
50512
50640
  case 'error':
50513
- return colors$7.red400;
50641
+ return colors$8.red400;
50514
50642
  case 'active':
50515
- return colors$7.primary500;
50643
+ return colors$8.primary500;
50516
50644
  default:
50517
- return colors$7.gray150;
50645
+ return colors$8.gray150;
50518
50646
  }
50519
50647
  };
50520
50648
  var iconProps = {
@@ -52491,7 +52619,7 @@
52491
52619
  }
52492
52620
  }, void 0) : jsxRuntime.jsx(icons.MinusOutline, {
52493
52621
  size: 16,
52494
- color: colors$7.iconDisable
52622
+ color: colors$8.iconDisable
52495
52623
  }, void 0)
52496
52624
  }, void 0)
52497
52625
  }), index + indexSubRow + 'tb-cell-collapse');
@@ -52797,9 +52925,9 @@
52797
52925
  function getBaseColor(color) {
52798
52926
  switch (color) {
52799
52927
  case 'primary':
52800
- return colors$7.gray300;
52928
+ return colors$8.gray300;
52801
52929
  default:
52802
- return colors$7.gray150;
52930
+ return colors$8.gray150;
52803
52931
  }
52804
52932
  }
52805
52933
  function getSize(size) {
@@ -52963,9 +53091,9 @@
52963
53091
  }
52964
53092
  }, {
52965
53093
  children: [showAllTags ? jsxRuntime.jsx(icons.ChevronUpOutline, {
52966
- color: colors$7.iconSecondary
53094
+ color: colors$8.iconSecondary
52967
53095
  }, void 0) : jsxRuntime.jsx(icons.ChevronDownOutline, {
52968
- color: colors$7.iconSecondary
53096
+ color: colors$8.iconSecondary
52969
53097
  }, void 0), jsxRuntime.jsx(Paragraph, __assign({
52970
53098
  css: {
52971
53099
  fontWeight: 600,
@@ -55113,7 +55241,7 @@
55113
55241
  exports.InputPrefix = InputPrefix;
55114
55242
  exports.InputRadio = InputRadio;
55115
55243
  exports.InputRadioGroup = InputRadioGroup;
55116
- exports.InputResourceList = InputResourceList;
55244
+ exports.InputResourceList = ResourceList;
55117
55245
  exports.InputRightAddon = InputRightAddon;
55118
55246
  exports.InputRightElement = InputRightElement;
55119
55247
  exports.InputSearchbox = InputSearchbox;