@majoo-ui/react 1.58.4-rc.2 → 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.esm.js CHANGED
@@ -1223,7 +1223,7 @@ createTheme({
1223
1223
  bgDark: '#FFFFFF'
1224
1224
  }
1225
1225
  });
1226
- const colors$7 = foundations.colors;
1226
+ const colors$8 = foundations.colors;
1227
1227
 
1228
1228
  const normalize = {
1229
1229
  '*,::before,::after': {
@@ -3224,7 +3224,7 @@ const Toast = _ref => {
3224
3224
  columnNumber: 17
3225
3225
  }
3226
3226
  }, /*#__PURE__*/React.createElement(CloseOutline, {
3227
- color: colors$7.iconSecondary,
3227
+ color: colors$8.iconSecondary,
3228
3228
  size: "16px",
3229
3229
  __self: undefined,
3230
3230
  __source: {
@@ -3695,7 +3695,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
3695
3695
  columnNumber: 7
3696
3696
  }
3697
3697
  }, /*#__PURE__*/React.createElement(CloseOutline, {
3698
- color: colors$7.iconSecondary,
3698
+ color: colors$8.iconSecondary,
3699
3699
  size: "16px",
3700
3700
  __self: undefined,
3701
3701
  __source: {
@@ -3782,7 +3782,7 @@ const SingleTagBanner = props => {
3782
3782
  columnNumber: 9
3783
3783
  }
3784
3784
  }, /*#__PURE__*/React.createElement(CloseOutline, {
3785
- color: colors$7.iconSecondary,
3785
+ color: colors$8.iconSecondary,
3786
3786
  size: "16px",
3787
3787
  __self: undefined,
3788
3788
  __source: {
@@ -10223,7 +10223,7 @@ const Tag = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
10223
10223
  }
10224
10224
  }, /*#__PURE__*/React__default.createElement(CloseOutline, {
10225
10225
  size: 16,
10226
- color: colors$7.iconSecondary,
10226
+ color: colors$8.iconSecondary,
10227
10227
  style: {
10228
10228
  verticalAlign: 'middle'
10229
10229
  },
@@ -10757,7 +10757,7 @@ SvgSearchOutline.defaultProps = {
10757
10757
  const _excluded$e = ["size", "onChange", "css", "disabled", "withDebounce", "defaultValue"];
10758
10758
  var _jsxFileName$z = "/Users/ryanakbar20/Documents/project/majoo/majoo-ui/packages/react/src/components/form/components/InputSearchbox/InputSearchbox.js";
10759
10759
  const {
10760
- colors: colors$6
10760
+ colors: colors$7
10761
10761
  } = foundations;
10762
10762
  const InputSearchbox = _ref => {
10763
10763
  var _props$value;
@@ -10833,7 +10833,7 @@ const InputSearchbox = _ref => {
10833
10833
  }
10834
10834
  })), /*#__PURE__*/React__default.createElement(InputRightElement, {
10835
10835
  children: (inputValue === null || inputValue === void 0 ? void 0 : inputValue.length) > 0 ? /*#__PURE__*/React__default.createElement(SvgCloseFilled, {
10836
- color: colors$6.iconSecondary,
10836
+ color: colors$7.iconSecondary,
10837
10837
  __self: undefined,
10838
10838
  __source: {
10839
10839
  fileName: _jsxFileName$z,
@@ -11454,7 +11454,7 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
11454
11454
  readOnly: readOnly
11455
11455
  }, {
11456
11456
  children: jsx(CaretDownOutline, {
11457
- color: readOnly ? colors$7.gray300 : iconColor
11457
+ color: readOnly ? colors$8.gray300 : iconColor
11458
11458
  }, void 0)
11459
11459
  }), void 0);
11460
11460
  };
@@ -11663,7 +11663,7 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
11663
11663
  }, {
11664
11664
  children: jsx(CircleInfoOutline, {
11665
11665
  size: "16px",
11666
- color: colors$7.iconDisable,
11666
+ color: colors$8.iconDisable,
11667
11667
  style: {
11668
11668
  verticalAlign: 'text-bottom'
11669
11669
  }
@@ -13091,7 +13091,7 @@ const StyledDiv = styled('div', {
13091
13091
  color: '$textDisable',
13092
13092
  display: 'inline-flex'
13093
13093
  });
13094
- const IndeterminateFilled = styled('div', {
13094
+ const IndeterminateFilled$1 = styled('div', {
13095
13095
  width: 16,
13096
13096
  height: 16,
13097
13097
  background: '$primary500',
@@ -13515,7 +13515,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13515
13515
  columnNumber: 11
13516
13516
  }
13517
13517
  }), /*#__PURE__*/React__default.createElement(IconCaretDown, {
13518
- color: disabled || readOnly ? colors$7.iconDisable : colors$7.iconPrimary,
13518
+ color: disabled || readOnly ? colors$8.iconDisable : colors$8.iconPrimary,
13519
13519
  __self: undefined,
13520
13520
  __source: {
13521
13521
  fileName: _jsxFileName$w,
@@ -13634,7 +13634,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13634
13634
  columnNumber: 19
13635
13635
  }
13636
13636
  }, showAllTags ? /*#__PURE__*/React__default.createElement(ChevronUpOutline, {
13637
- color: colors$7.iconSecondary,
13637
+ color: colors$8.iconSecondary,
13638
13638
  __self: undefined,
13639
13639
  __source: {
13640
13640
  fileName: _jsxFileName$w,
@@ -13642,7 +13642,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13642
13642
  columnNumber: 23
13643
13643
  }
13644
13644
  }) : /*#__PURE__*/React__default.createElement(ChevronDownOutline, {
13645
- color: colors$7.iconSecondary,
13645
+ color: colors$8.iconSecondary,
13646
13646
  __self: undefined,
13647
13647
  __source: {
13648
13648
  fileName: _jsxFileName$w,
@@ -13801,7 +13801,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13801
13801
  columnNumber: 23
13802
13802
  }
13803
13803
  }, !(item !== null && item !== void 0 && item.hideCheck) && (item.isDisabled ? /*#__PURE__*/React__default.createElement(CheckOutline, {
13804
- color: colors$7.iconDisable,
13804
+ color: colors$8.iconDisable,
13805
13805
  __self: undefined,
13806
13806
  __source: {
13807
13807
  fileName: _jsxFileName$w,
@@ -13809,14 +13809,14 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13809
13809
  columnNumber: 29
13810
13810
  }
13811
13811
  }) : selectedValue.includes(item.id) && (item.isDisabled === false || item.isDisabled === undefined) && /*#__PURE__*/React__default.createElement(CheckOutline, {
13812
- color: colors$7.iconGreen,
13812
+ color: colors$8.iconGreen,
13813
13813
  __self: undefined,
13814
13814
  __source: {
13815
13815
  fileName: _jsxFileName$w,
13816
13816
  lineNumber: 834,
13817
13817
  columnNumber: 31
13818
13818
  }
13819
- })), 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.createElement(IndeterminateFilled, {
13819
+ })), 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.createElement(IndeterminateFilled$1, {
13820
13820
  __self: undefined,
13821
13821
  __source: {
13822
13822
  fileName: _jsxFileName$w,
@@ -13874,7 +13874,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
13874
13874
  }
13875
13875
  }, /*#__PURE__*/React__default.createElement(CircleInfoOutline, {
13876
13876
  size: "16px",
13877
- color: colors$7.iconDisable,
13877
+ color: colors$8.iconDisable,
13878
13878
  style: {
13879
13879
  verticalAlign: 'text-bottom'
13880
13880
  },
@@ -14214,7 +14214,7 @@ function InputCreatable({
14214
14214
  columnNumber: 9
14215
14215
  }
14216
14216
  }, /*#__PURE__*/React__default.createElement(CirclePlusOutline, {
14217
- color: colors$7.iconGreen,
14217
+ color: colors$8.iconGreen,
14218
14218
  __self: this,
14219
14219
  __source: {
14220
14220
  fileName: _jsxFileName$u,
@@ -14265,6 +14265,7 @@ function InputResourceList({
14265
14265
  onItemCheck,
14266
14266
  onItemUncheck,
14267
14267
  searchPlaceholder,
14268
+ counterFooter = true,
14268
14269
  counterFooterText,
14269
14270
  isLoading = false,
14270
14271
  enabledItems,
@@ -14273,9 +14274,11 @@ function InputResourceList({
14273
14274
  fetchData,
14274
14275
  onQueryChange,
14275
14276
  css,
14277
+ wrapperCss,
14276
14278
  defaultSort,
14277
14279
  title,
14278
- hideSelectAll
14280
+ hideSelectAll,
14281
+ customHeader
14279
14282
  }) {
14280
14283
  const {
14281
14284
  t
@@ -14460,7 +14463,7 @@ function InputResourceList({
14460
14463
  position: 'relative'
14461
14464
  }, css)
14462
14465
  }, {
14463
- children: [onQueryChange && jsx(InputSearchbox, {
14466
+ children: [customHeader, onQueryChange && jsx(InputSearchbox, {
14464
14467
  size: "lg",
14465
14468
  placeholder: searchPlaceholder || t('placeholder.search', 'Cari ...', {
14466
14469
  ns: 'translation'
@@ -14494,7 +14497,7 @@ function InputResourceList({
14494
14497
  }, {
14495
14498
  children: jsx(SortingOutline, {
14496
14499
  size: 16,
14497
- color: colors$7.iconSecondary
14500
+ color: colors$8.iconSecondary
14498
14501
  }, void 0)
14499
14502
  }), void 0)]
14500
14503
  }), void 0), isLoading && jsx(Flex$1, Object.assign({
@@ -14516,7 +14519,7 @@ function InputResourceList({
14516
14519
  children: "Loading .... "
14517
14520
  }), void 0)
14518
14521
  }), void 0), jsxs(Box, Object.assign({
14519
- css: {
14522
+ css: Object.assign({
14520
14523
  border: '1px solid $gray300',
14521
14524
  padding: '$spacing-05',
14522
14525
  borderRadius: '$lg',
@@ -14524,7 +14527,7 @@ function InputResourceList({
14524
14527
  height: isLoading ? 285 : 'unset',
14525
14528
  overflow: 'auto',
14526
14529
  marginTop: '$spacing-03'
14527
- },
14530
+ }, wrapperCss && wrapperCss),
14528
14531
  ref: scrollerRef
14529
14532
  }, {
14530
14533
  children: [data.length <= 0 && (value || checkedResources).length <= 0 && !isLoading || defaultSort && data.length < 1 ? jsx(Flex$1, Object.assign({
@@ -14562,7 +14565,7 @@ function InputResourceList({
14562
14565
  }, {
14563
14566
  children: defaultSort ? renderWithSorting() : renderWithoutSorting()
14564
14567
  }), void 0)]
14565
- }), void 0), (((value === null || value === void 0 ? void 0 : value.length) || 0) > 0 || checkedResources.length > 0) && jsx(Box, Object.assign({
14568
+ }), void 0), counterFooter && (((value === null || value === void 0 ? void 0 : value.length) || 0) > 0 || checkedResources.length > 0) && jsx(Box, Object.assign({
14566
14569
  css: {
14567
14570
  marginTop: '$spacing-04'
14568
14571
  }
@@ -14577,6 +14580,109 @@ function InputResourceList({
14577
14580
  }), void 0);
14578
14581
  }
14579
14582
 
14583
+ const {
14584
+ colors: colors$6
14585
+ } = foundations;
14586
+ const IconBox = styled('div', {
14587
+ height: 16,
14588
+ width: 16,
14589
+ cursor: 'pointer',
14590
+ variants: {
14591
+ border: {
14592
+ true: {
14593
+ borderRadius: 3,
14594
+ border: '1.5px solid $gray300'
14595
+ }
14596
+ }
14597
+ }
14598
+ });
14599
+ const IndeterminateFilled = styled('div', {
14600
+ width: 16,
14601
+ height: 16,
14602
+ background: '$primary500',
14603
+ color: '$textWhite',
14604
+ borderRadius: 3,
14605
+ fontSize: 14,
14606
+ display: 'flex',
14607
+ justifyContent: 'center',
14608
+ alignItems: 'center'
14609
+ });
14610
+ const InputResourceListExpandable = _a => {
14611
+ var _b;
14612
+ var {
14613
+ renderSelectAll,
14614
+ onItemCheck,
14615
+ onItemUncheck,
14616
+ value
14617
+ } = _a,
14618
+ props = __rest(_a, ["renderSelectAll", "onItemCheck", "onItemUncheck", "value"]);
14619
+ const [expand, setExpand] = useState(false);
14620
+ const [checkedItem, setCheckedItem] = useState(value || []);
14621
+ const handleChecked = item => {
14622
+ onItemCheck(item);
14623
+ setCheckedItem(current => [...current, item]);
14624
+ };
14625
+ const handleUnChecked = item => {
14626
+ onItemUncheck(item);
14627
+ setCheckedItem(current => current.filter(currItem => currItem.value !== item.value));
14628
+ };
14629
+ const handleCheckedAll = () => {
14630
+ var _a, _b, _c;
14631
+ 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)) {
14632
+ for (let i = 0; i < (checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length); i++) {
14633
+ const item = checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem[i];
14634
+ handleUnChecked(item);
14635
+ }
14636
+ } else {
14637
+ for (let i = 0; i < ((_b = props === null || props === void 0 ? void 0 : props.data) === null || _b === void 0 ? void 0 : _b.length); i++) {
14638
+ const item = (_c = props === null || props === void 0 ? void 0 : props.data) === null || _c === void 0 ? void 0 : _c[i];
14639
+ handleChecked(item);
14640
+ }
14641
+ }
14642
+ };
14643
+ return jsxs(Box, {
14644
+ children: [jsxs(Flex$1, Object.assign({
14645
+ justify: "between",
14646
+ align: "start"
14647
+ }, {
14648
+ children: [jsxs(Flex$1, Object.assign({
14649
+ gap: 5
14650
+ }, {
14651
+ children: [jsx(IconBox, Object.assign({
14652
+ onClick: handleCheckedAll,
14653
+ border: Boolean(!(checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length))
14654
+ }, {
14655
+ 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) ? jsx(CheckOutline, {
14656
+ color: colors$6.iconGreen
14657
+ }, void 0) : (checkedItem === null || checkedItem === void 0 ? void 0 : checkedItem.length) ? jsx(IndeterminateFilled, {
14658
+ children: "-"
14659
+ }, void 0) : ''
14660
+ }), void 0), renderSelectAll]
14661
+ }), void 0), jsx(Box, Object.assign({
14662
+ css: {
14663
+ cursor: 'pointer'
14664
+ },
14665
+ onClick: () => setExpand(!expand)
14666
+ }, {
14667
+ children: expand ? jsx(ChevronUpOutline, {}, void 0) : jsx(ChevronDownOutline, {}, void 0)
14668
+ }), void 0)]
14669
+ }), void 0), jsx(Box, {
14670
+ children: expand && jsx(InputResourceList, Object.assign({}, props, {
14671
+ value: checkedItem,
14672
+ onItemCheck: handleChecked,
14673
+ onItemUncheck: handleUnChecked
14674
+ }), void 0)
14675
+ }, void 0)]
14676
+ }, void 0);
14677
+ };
14678
+ const ResourceList = _a => {
14679
+ var {
14680
+ expandable
14681
+ } = _a,
14682
+ props = __rest(_a, ["expandable"]);
14683
+ return expandable ? jsx(InputResourceListExpandable, Object.assign({}, props), void 0) : jsx(InputResourceList, Object.assign({}, props), void 0);
14684
+ };
14685
+
14580
14686
  const SelectInputSearch = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
14581
14687
  var {
14582
14688
  showLeadingIcon = false,
@@ -14986,7 +15092,7 @@ const InputCounter = /*#__PURE__*/forwardRef((props, ref) => {
14986
15092
  }, {
14987
15093
  children: jsx(MinusOutline, {
14988
15094
  size: 24,
14989
- color: disabled || disabledDecrement ? colors$7.iconDisable : colors$7.primary500
15095
+ color: disabled || disabledDecrement ? colors$8.iconDisable : colors$8.primary500
14990
15096
  }, void 0)
14991
15097
  }), void 0), jsx(Input$4, {
14992
15098
  ref: ref,
@@ -15009,7 +15115,7 @@ const InputCounter = /*#__PURE__*/forwardRef((props, ref) => {
15009
15115
  }, {
15010
15116
  children: jsx(PlusOutline, {
15011
15117
  size: 24,
15012
- color: disabled || disabledIncrement ? colors$7.iconDisable : colors$7.primary500
15118
+ color: disabled || disabledIncrement ? colors$8.iconDisable : colors$8.primary500
15013
15119
  }, void 0)
15014
15120
  }), void 0)]
15015
15121
  }), void 0);
@@ -15604,7 +15710,7 @@ function ButtonGroup$1(_ref) {
15604
15710
  columnNumber: 15
15605
15711
  }
15606
15712
  }, /*#__PURE__*/React__default.createElement(ChevronLeftOutline, {
15607
- color: colors$7.iconGreen,
15713
+ color: colors$8.iconGreen,
15608
15714
  __self: this,
15609
15715
  __source: {
15610
15716
  fileName: _jsxFileName$s,
@@ -15634,7 +15740,7 @@ function ButtonGroup$1(_ref) {
15634
15740
  columnNumber: 15
15635
15741
  }
15636
15742
  }, /*#__PURE__*/React__default.createElement(ChevronRightOutline, {
15637
- color: colors$7.iconGreen,
15743
+ color: colors$8.iconGreen,
15638
15744
  __self: this,
15639
15745
  __source: {
15640
15746
  fileName: _jsxFileName$s,
@@ -17501,7 +17607,7 @@ function InputTimePicker({
17501
17607
  }
17502
17608
  }, /*#__PURE__*/React__default.createElement(InputLeftElement, {
17503
17609
  children: /*#__PURE__*/React__default.createElement(TimeOutline, {
17504
- color: disabled ? colors$7.iconDisable : colors$7.iconPrimary,
17610
+ color: disabled ? colors$8.iconDisable : colors$8.iconPrimary,
17505
17611
  __self: this,
17506
17612
  __source: {
17507
17613
  fileName: _jsxFileName$q,
@@ -19396,7 +19502,7 @@ const TabsList$1 = _ref2 => {
19396
19502
  columnNumber: 11
19397
19503
  }
19398
19504
  }, /*#__PURE__*/React__default.createElement(ChevronLgLeftOutline, {
19399
- color: colors$7.iconGreen,
19505
+ color: colors$8.iconGreen,
19400
19506
  __self: undefined,
19401
19507
  __source: {
19402
19508
  fileName: _jsxFileName$n,
@@ -19425,7 +19531,7 @@ const TabsList$1 = _ref2 => {
19425
19531
  columnNumber: 11
19426
19532
  }
19427
19533
  }, /*#__PURE__*/React__default.createElement(ChevronLgRightOutline, {
19428
- color: colors$7.iconGreen,
19534
+ color: colors$8.iconGreen,
19429
19535
  __self: undefined,
19430
19536
  __source: {
19431
19537
  fileName: _jsxFileName$n,
@@ -19485,7 +19591,7 @@ const TabsTrigger$1 = _ref3 => {
19485
19591
  columnNumber: 9
19486
19592
  }
19487
19593
  }, icon && /*#__PURE__*/React__default.cloneElement(icon, {
19488
- color: activeTabs === value || isIconHovered ? colors$7.iconGreen : colors$7.iconDisable
19594
+ color: activeTabs === value || isIconHovered ? colors$8.iconGreen : colors$8.iconDisable
19489
19595
  }), (!icon || activeTabs === value) && children)));
19490
19596
  };
19491
19597
  const TabsContent$1 = _ref4 => {
@@ -20272,7 +20378,7 @@ const PrevNextButtonIcon = ({
20272
20378
  columnNumber: 5
20273
20379
  }
20274
20380
  }, iconType === 'prev' ? /*#__PURE__*/React__default.createElement(ArrowLeftOutline, {
20275
- color: isHover ? colors$7.iconGreen : colors$7.iconPrimary,
20381
+ color: isHover ? colors$8.iconGreen : colors$8.iconPrimary,
20276
20382
  __self: undefined,
20277
20383
  __source: {
20278
20384
  fileName: _jsxFileName$k,
@@ -20280,7 +20386,7 @@ const PrevNextButtonIcon = ({
20280
20386
  columnNumber: 9
20281
20387
  }
20282
20388
  }) : /*#__PURE__*/React__default.createElement(ArrowRightOutline, {
20283
- color: isHover ? colors$7.iconGreen : colors$7.iconPrimary,
20389
+ color: isHover ? colors$8.iconGreen : colors$8.iconPrimary,
20284
20390
  __self: undefined,
20285
20391
  __source: {
20286
20392
  fileName: _jsxFileName$k,
@@ -20413,7 +20519,7 @@ const PaginationButton = ({
20413
20519
  columnNumber: 17
20414
20520
  }
20415
20521
  }, /*#__PURE__*/React__default.createElement(ArrowLeftOutline, {
20416
- color: currentPage === 1 ? colors$7.iconDisable : colors$7.iconPrimary,
20522
+ color: currentPage === 1 ? colors$8.iconDisable : colors$8.iconPrimary,
20417
20523
  __self: undefined,
20418
20524
  __source: {
20419
20525
  fileName: _jsxFileName$k,
@@ -20490,7 +20596,7 @@ const PaginationButton = ({
20490
20596
  columnNumber: 17
20491
20597
  }
20492
20598
  }, /*#__PURE__*/React__default.createElement(ArrowRightOutline, {
20493
- color: currentPage === totalPages ? colors$7.iconDisable : colors$7.iconPrimary,
20599
+ color: currentPage === totalPages ? colors$8.iconDisable : colors$8.iconPrimary,
20494
20600
  __self: undefined,
20495
20601
  __source: {
20496
20602
  fileName: _jsxFileName$k,
@@ -20795,7 +20901,7 @@ function PaginationInfo(_ref) {
20795
20901
  columnNumber: 15
20796
20902
  }
20797
20903
  }, selectedLimit.toString()), /*#__PURE__*/React__default.createElement(ChevronDownOutline, {
20798
- color: colors$7.gray400,
20904
+ color: colors$8.gray400,
20799
20905
  __self: this,
20800
20906
  __source: {
20801
20907
  fileName: _jsxFileName$j,
@@ -21108,23 +21214,23 @@ const ContextMenuItem = styled(Item, {
21108
21214
  userSelect: 'none',
21109
21215
  color: '$textPrimary',
21110
21216
  '&[data-disabled]': {
21111
- color: colors$7.gray400,
21217
+ color: colors$8.gray400,
21112
21218
  pointerEvents: 'none'
21113
21219
  },
21114
21220
  '&:hover': {
21115
21221
  cursor: 'pointer',
21116
- backgroundColor: colors$7.gray100
21222
+ backgroundColor: colors$8.gray100
21117
21223
  },
21118
21224
  '&:active': {
21119
- backgroundColor: colors$7.gray150
21225
+ backgroundColor: colors$8.gray150
21120
21226
  },
21121
21227
  '&:focus': {
21122
- backgroundColor: colors$7.gray100
21228
+ backgroundColor: colors$8.gray100
21123
21229
  }
21124
21230
  });
21125
21231
  const ContextMenuSeparator = styled('div', {
21126
21232
  height: 1,
21127
- backgroundColor: colors$7.gray150,
21233
+ backgroundColor: colors$8.gray150,
21128
21234
  margin: 5
21129
21235
  });
21130
21236
 
@@ -21433,7 +21539,7 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
21433
21539
  justify: "between",
21434
21540
  gap: 5,
21435
21541
  css: {
21436
- backgroundColor: colors$7.bgGray,
21542
+ backgroundColor: colors$8.bgGray,
21437
21543
  padding: `$spacing-04 $spacing-05 ${'selection' in row.values ? '$spacing-04 $spacing-07' : ''}`,
21438
21544
  borderBottom: '1pt solid $bgBorder',
21439
21545
  alignItems: cell.column.accessor ? getAlign(cellAlign) : 'center'
@@ -21468,7 +21574,7 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
21468
21574
  gap: 3,
21469
21575
  css: {
21470
21576
  height: '40px',
21471
- backgroundColor: colors$7.bgGray,
21577
+ backgroundColor: colors$8.bgGray,
21472
21578
  paddingRight: '$spacing-04'
21473
21579
  }
21474
21580
  }, {
@@ -22411,7 +22517,7 @@ function Table({
22411
22517
  }, {
22412
22518
  children: [leftAddOnCells.map((_, index) => jsx("td", {
22413
22519
  style: {
22414
- backgroundColor: colors$7.bgGray
22520
+ backgroundColor: colors$8.bgGray
22415
22521
  }
22416
22522
  }, index)), jsxs(React.Fragment, {
22417
22523
  children: [jsx(TableCell$3, Object.assign({
@@ -23138,7 +23244,7 @@ const contentShow = keyframes({
23138
23244
  });
23139
23245
  const StyledOverlay = styled(ADialog.Overlay, {
23140
23246
  zIndex: 1,
23141
- backgroundColor: colors$7.bgDimmer,
23247
+ backgroundColor: colors$8.bgDimmer,
23142
23248
  position: 'fixed',
23143
23249
  inset: 0,
23144
23250
  '@media (prefers-reduced-motion: no-preference)': {
@@ -23171,14 +23277,14 @@ const StyledTitle = styled(ADialog.Title, {
23171
23277
  display: 'flex',
23172
23278
  flexDirection: 'row',
23173
23279
  justifyContent: 'space-between',
23174
- color: colors$7.gray900,
23280
+ color: colors$8.gray900,
23175
23281
  fontSize: 17,
23176
23282
  fontWeight: 500
23177
23283
  });
23178
23284
  const StyledDescription$1 = styled(ADialog.Description, {
23179
23285
  mx: 24,
23180
23286
  my: 20,
23181
- color: colors$7.gray900,
23287
+ color: colors$8.gray900,
23182
23288
  fontSize: 15,
23183
23289
  lineHeight: 1.5
23184
23290
  });
@@ -23835,17 +23941,17 @@ const itemStyles = {
23835
23941
  position: 'relative',
23836
23942
  userSelect: 'none',
23837
23943
  '&[data-disabled]': {
23838
- color: colors$7.gray400,
23944
+ color: colors$8.gray400,
23839
23945
  pointerEvents: 'none'
23840
23946
  },
23841
23947
  '&:hover': {
23842
23948
  cursor: 'pointer'
23843
23949
  },
23844
23950
  '&:active': {
23845
- backgroundColor: colors$7.gray150
23951
+ backgroundColor: colors$8.gray150
23846
23952
  },
23847
23953
  '&:focus': {
23848
- backgroundColor: colors$7.gray100
23954
+ backgroundColor: colors$8.gray100
23849
23955
  }
23850
23956
  };
23851
23957
  const StyledItem = styled(DropdownMenuPrimitive.Item, Object.assign({}, itemStyles));
@@ -23862,11 +23968,11 @@ const StyledLabel = styled(DropdownMenuPrimitive.Label, {
23862
23968
  padding: '8px 0',
23863
23969
  fontSize: 12,
23864
23970
  lineHeight: '25px',
23865
- color: colors$7.gray700
23971
+ color: colors$8.gray700
23866
23972
  });
23867
23973
  const StyledSeparator = styled(DropdownMenuPrimitive.Separator, {
23868
23974
  height: 1,
23869
- backgroundColor: colors$7.gray150,
23975
+ backgroundColor: colors$8.gray150,
23870
23976
  margin: 5
23871
23977
  });
23872
23978
  const StyledItemIndicator = styled(DropdownMenuPrimitive.ItemIndicator, {
@@ -23963,7 +24069,7 @@ const RightSlot = styled('div', {
23963
24069
  color: 'white'
23964
24070
  },
23965
24071
  '[data-disabled] &': {
23966
- color: colors$7.gray400
24072
+ color: colors$8.gray400
23967
24073
  }
23968
24074
  });
23969
24075
  const StyledDropdown = styled(Button$4, {
@@ -27739,7 +27845,7 @@ const Device = props => {
27739
27845
  buttonType: "secondary"
27740
27846
  }, {
27741
27847
  children: jsx(ChevronLeftOutline, {
27742
- color: colors$7.btnPrimary
27848
+ color: colors$8.btnPrimary
27743
27849
  }, void 0)
27744
27850
  }), void 0), jsxs(Flex$1, Object.assign({
27745
27851
  align: "center",
@@ -27799,7 +27905,7 @@ const Device = props => {
27799
27905
  buttonType: "secondary"
27800
27906
  }, {
27801
27907
  children: jsx(ChevronRightOutline, {
27802
- color: colors$7.btnPrimary
27908
+ color: colors$8.btnPrimary
27803
27909
  }, void 0)
27804
27910
  }), void 0)]
27805
27911
  }), void 0);
@@ -30878,7 +30984,7 @@ const Navigation = props => {
30878
30984
  marginRight: 9
30879
30985
  },
30880
30986
  size: "24",
30881
- color: colors$7.bgGreen,
30987
+ color: colors$8.bgGreen,
30882
30988
  __self: undefined,
30883
30989
  __source: {
30884
30990
  fileName: _jsxFileName$4,
@@ -30899,7 +31005,7 @@ const Navigation = props => {
30899
31005
  margin: '0 9px'
30900
31006
  },
30901
31007
  size: "20",
30902
- color: colors$7.iconSecondary,
31008
+ color: colors$8.iconSecondary,
30903
31009
  __self: undefined,
30904
31010
  __source: {
30905
31011
  fileName: _jsxFileName$4,
@@ -30971,7 +31077,7 @@ const Navigation = props => {
30971
31077
  }
30972
31078
  }, /*#__PURE__*/React__default.createElement(StyledCircleInfoOutline, {
30973
31079
  size: "20",
30974
- color: colors$7.iconPrimary,
31080
+ color: colors$8.iconPrimary,
30975
31081
  __self: undefined,
30976
31082
  __source: {
30977
31083
  fileName: _jsxFileName$4,
@@ -31398,10 +31504,10 @@ var _jsxFileName$2 = "/Users/ryanakbar20/Documents/project/majoo/majoo-ui/packag
31398
31504
  const DesktopContainer = styled(Flex$1, {
31399
31505
  display: 'none',
31400
31506
  '& .active-scroll-spy': {
31401
- borderLeft: `4px solid ${colors$7.primary500} !important`
31507
+ borderLeft: `4px solid ${colors$8.primary500} !important`
31402
31508
  },
31403
31509
  '& .active-scroll-spy .link-title': {
31404
- color: `${colors$7.primary500} !important`
31510
+ color: `${colors$8.primary500} !important`
31405
31511
  },
31406
31512
  '@md': {
31407
31513
  display: 'unset'
@@ -31409,7 +31515,7 @@ const DesktopContainer = styled(Flex$1, {
31409
31515
  });
31410
31516
  const MobileContainer = styled(Flex$1, {
31411
31517
  backgroundColor: '$white',
31412
- border: `1px solid ${colors$7.gray150}`,
31518
+ border: `1px solid ${colors$8.gray150}`,
31413
31519
  borderRadius: 8,
31414
31520
  padding: '8px 8px',
31415
31521
  width: '100%',
@@ -31536,7 +31642,7 @@ function Content({
31536
31642
  marginLeft: '-4px !important',
31537
31643
  borderLeftWidth: '4px !important',
31538
31644
  borderLeftStyle: 'solid !important',
31539
- borderLeftColor: `${(item === null || item === void 0 ? void 0 : item.id) === activeId ? colors$7.primary500 : 'transparent'} !important`,
31645
+ borderLeftColor: `${(item === null || item === void 0 ? void 0 : item.id) === activeId ? colors$8.primary500 : 'transparent'} !important`,
31540
31646
  paddingLeft: '16px !important',
31541
31647
  minHeight: 25
31542
31648
  },
@@ -50084,11 +50190,11 @@ function ProgressIndicator(props) {
50084
50190
  const getColor = state => {
50085
50191
  switch (state) {
50086
50192
  case 'error':
50087
- return colors$7.red400;
50193
+ return colors$8.red400;
50088
50194
  case 'active':
50089
- return colors$7.primary500;
50195
+ return colors$8.primary500;
50090
50196
  default:
50091
- return colors$7.gray150;
50197
+ return colors$8.gray150;
50092
50198
  }
50093
50199
  };
50094
50200
  const iconProps = {
@@ -51976,7 +52082,7 @@ function CheckboxTable(props) {
51976
52082
  }
51977
52083
  }, void 0) : jsx(MinusOutline, {
51978
52084
  size: 16,
51979
- color: colors$7.iconDisable
52085
+ color: colors$8.iconDisable
51980
52086
  }, void 0)
51981
52087
  }, void 0)
51982
52088
  }), index + indexSubRow + 'tb-cell-collapse');
@@ -52281,9 +52387,9 @@ const StyledSkeleton = props => {
52281
52387
  function getBaseColor(color) {
52282
52388
  switch (color) {
52283
52389
  case 'primary':
52284
- return colors$7.gray300;
52390
+ return colors$8.gray300;
52285
52391
  default:
52286
- return colors$7.gray150;
52392
+ return colors$8.gray150;
52287
52393
  }
52288
52394
  }
52289
52395
  function getSize(size) {
@@ -52437,9 +52543,9 @@ function TagList({
52437
52543
  }
52438
52544
  }, {
52439
52545
  children: [showAllTags ? jsx(ChevronUpOutline, {
52440
- color: colors$7.iconSecondary
52546
+ color: colors$8.iconSecondary
52441
52547
  }, void 0) : jsx(ChevronDownOutline, {
52442
- color: colors$7.iconSecondary
52548
+ color: colors$8.iconSecondary
52443
52549
  }, void 0), jsx(Paragraph, Object.assign({
52444
52550
  css: {
52445
52551
  fontWeight: 600,
@@ -54463,4 +54569,4 @@ const useToggle = initialValue => {
54463
54569
  return useReducer(toggleReducer, initialValue);
54464
54570
  };
54465
54571
 
54466
- export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, BarChartComponent as BarChart, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$4 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CustomDatePicker, DATE_RANGE_PICKER, DEFAULT, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, Input$7 as Input, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputDateRange, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MONTHLY, MajooProvider, MapPicker, MemoizedEditableTable, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NEXT_MONTH, NEXT_WEEK, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PREV_MONTH, PREV_WEEK, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, PieChartComponent as PieChart, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_CONTROL, RANGE_MONTH, RANGE_PICKER, RANGE_WEEK, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, SINGLE_PICKER, SelectBox, SelectContainer, SelectItem, SelectOption, Separator$2 as Separator, Skeleton, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagList, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, WEEKLY, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptionsEn, advancePickerOptionsId, defaultEmptyDataProps, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
54572
+ export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, BarChartComponent as BarChart, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$4 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CustomDatePicker, DATE_RANGE_PICKER, DEFAULT, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, Input$7 as Input, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputDateRange, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, ResourceList as InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MONTHLY, MajooProvider, MapPicker, MemoizedEditableTable, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NEXT_MONTH, NEXT_WEEK, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PREV_MONTH, PREV_WEEK, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, PieChartComponent as PieChart, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_CONTROL, RANGE_MONTH, RANGE_PICKER, RANGE_WEEK, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, SINGLE_PICKER, SelectBox, SelectContainer, SelectItem, SelectOption, Separator$2 as Separator, Skeleton, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagList, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, WEEKLY, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptionsEn, advancePickerOptionsId, defaultEmptyDataProps, defaultFetchDataParams, pickerReducer, useListOption, useToggle };