@majoo-ui/react 1.52.10 → 1.53.0

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
@@ -42,6 +42,7 @@ import request from 'superagent';
42
42
  import { ResponsiveContainer, LineChart as LineChart$1, XAxis, YAxis, CartesianGrid, Tooltip as Tooltip$2, Line as Line$1 } from 'recharts';
43
43
  import { EditorState } from 'draft-js';
44
44
  import { Editor } from 'react-draft-wysiwyg';
45
+ import { ContextMenuTrigger as ContextMenuTrigger$1, ContextMenu as ContextMenu$1, MenuItem } from 'react-contextmenu';
45
46
  import ReactCrop, { centerCrop, makeAspectCrop } from 'react-image-crop';
46
47
  import imageCompressionComponent from 'browser-image-compression';
47
48
  import { useSticky } from 'react-table-sticky';
@@ -4833,7 +4834,7 @@ var _jsxFileName$Q = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packa
4833
4834
  const {
4834
4835
  zIndices: zIndices$1
4835
4836
  } = foundations;
4836
- const slideUpAndFade$1 = keyframes({
4837
+ const slideUpAndFade$2 = keyframes({
4837
4838
  '0%': {
4838
4839
  opacity: 0,
4839
4840
  transform: 'translateY(2px)'
@@ -4843,7 +4844,7 @@ const slideUpAndFade$1 = keyframes({
4843
4844
  transform: 'translateY(0)'
4844
4845
  }
4845
4846
  });
4846
- const slideRightAndFade$1 = keyframes({
4847
+ const slideRightAndFade$2 = keyframes({
4847
4848
  '0%': {
4848
4849
  opacity: 0,
4849
4850
  transform: 'translateX(-2px)'
@@ -4853,7 +4854,7 @@ const slideRightAndFade$1 = keyframes({
4853
4854
  transform: 'translateX(0)'
4854
4855
  }
4855
4856
  });
4856
- const slideDownAndFade$1 = keyframes({
4857
+ const slideDownAndFade$2 = keyframes({
4857
4858
  '0%': {
4858
4859
  opacity: 0,
4859
4860
  transform: 'translateY(-2px)'
@@ -4863,7 +4864,7 @@ const slideDownAndFade$1 = keyframes({
4863
4864
  transform: 'translateY(0)'
4864
4865
  }
4865
4866
  });
4866
- const slideLeftAndFade$1 = keyframes({
4867
+ const slideLeftAndFade$2 = keyframes({
4867
4868
  '0%': {
4868
4869
  opacity: 0,
4869
4870
  transform: 'translateX(2px)'
@@ -4890,16 +4891,16 @@ const StyledContent$6 = styled(TooltipPrimitive.Content, {
4890
4891
  willChange: 'transform, opacity',
4891
4892
  '&[data-state="delayed-open"]': {
4892
4893
  '&[data-side="top"]': {
4893
- animationName: slideDownAndFade$1
4894
+ animationName: slideDownAndFade$2
4894
4895
  },
4895
4896
  '&[data-side="right"]': {
4896
- animationName: slideLeftAndFade$1
4897
+ animationName: slideLeftAndFade$2
4897
4898
  },
4898
4899
  '&[data-side="bottom"]': {
4899
- animationName: slideUpAndFade$1
4900
+ animationName: slideUpAndFade$2
4900
4901
  },
4901
4902
  '&[data-side="left"]': {
4902
- animationName: slideRightAndFade$1
4903
+ animationName: slideRightAndFade$2
4903
4904
  }
4904
4905
  }
4905
4906
  }
@@ -9364,7 +9365,7 @@ const ItemWrapper$1 = styled(Box, {
9364
9365
  alignItems: 'center',
9365
9366
  borderBottom: '1px solid $bgBorder'
9366
9367
  });
9367
- const Item$2 = styled('div', {
9368
+ const Item$3 = styled('div', {
9368
9369
  overflow: 'hidden',
9369
9370
  backgroundColor: '$bgWhite',
9370
9371
  lineHeight: '20px',
@@ -9860,7 +9861,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
9860
9861
  lineNumber: 617,
9861
9862
  columnNumber: 25
9862
9863
  }
9863
- })), /*#__PURE__*/React__default.createElement(Item$2, {
9864
+ })), /*#__PURE__*/React__default.createElement(Item$3, {
9864
9865
  css: {
9865
9866
  backgroundColor: 'unset'
9866
9867
  },
@@ -10134,7 +10135,7 @@ const ItemWrapper = styled('div', {
10134
10135
  color: '$textGreen',
10135
10136
  height: '100%'
10136
10137
  });
10137
- const Item$1 = styled('div', {
10138
+ const Item$2 = styled('div', {
10138
10139
  backgroundColor: '$bgWhite',
10139
10140
  cursor: 'pointer',
10140
10141
  lineHeight: '20px'
@@ -10225,7 +10226,7 @@ function InputCreatable({
10225
10226
  lineNumber: 181,
10226
10227
  columnNumber: 11
10227
10228
  }
10228
- }), /*#__PURE__*/React__default.createElement(Item$1, {
10229
+ }), /*#__PURE__*/React__default.createElement(Item$2, {
10229
10230
  onClick: () => {
10230
10231
  if (onClickItem) onClickItem();
10231
10232
  setOpen(false);
@@ -14147,7 +14148,7 @@ function useMediaQuery(query) {
14147
14148
  }
14148
14149
 
14149
14150
  const ButtonGroup = styled(ToggleGroupPrimitive.Root, {});
14150
- const Item = styled(ButtonGroupItem, {
14151
+ const Item$1 = styled(ButtonGroupItem, {
14151
14152
  fontSize: '$label',
14152
14153
  lineHeight: '$label',
14153
14154
  letterSpacing: '$label',
@@ -14165,7 +14166,7 @@ const AdvancedOption = ({
14165
14166
  type: "single",
14166
14167
  orientation: "vertical"
14167
14168
  }, {
14168
- children: _options.map(option => jsx(Item, Object.assign({
14169
+ children: _options.map(option => jsx(Item$1, Object.assign({
14169
14170
  isToggle: false,
14170
14171
  disabled: disabled,
14171
14172
  value: option.value,
@@ -17026,6 +17027,130 @@ Pagination.propTypes = {
17026
17027
  };
17027
17028
  Pagination.displayName = 'Pagination';
17028
17029
 
17030
+ const Trigger = props => {
17031
+ return jsx(ContextMenuTrigger$1, Object.assign({}, props, {
17032
+ mouseButton: (props === null || props === void 0 ? void 0 : props.triggerSide) === 'left' ? 0 : undefined
17033
+ }, {
17034
+ children: props === null || props === void 0 ? void 0 : props.children
17035
+ }), void 0);
17036
+ };
17037
+
17038
+ const Menu = props => {
17039
+ return jsx(ContextMenu$1, Object.assign({}, props, {
17040
+ children: props === null || props === void 0 ? void 0 : props.children
17041
+ }), void 0);
17042
+ };
17043
+
17044
+ const Item = props => {
17045
+ return jsx(MenuItem, Object.assign({}, props, {
17046
+ children: props === null || props === void 0 ? void 0 : props.children
17047
+ }), void 0);
17048
+ };
17049
+
17050
+ const slideUpAndFade$1 = keyframes({
17051
+ '0%': {
17052
+ opacity: 0,
17053
+ transform: 'translateY(2px)'
17054
+ },
17055
+ '100%': {
17056
+ opacity: 1,
17057
+ transform: 'translateY(0)'
17058
+ }
17059
+ });
17060
+ const slideRightAndFade$1 = keyframes({
17061
+ '0%': {
17062
+ opacity: 0,
17063
+ transform: 'translateX(-2px)'
17064
+ },
17065
+ '100%': {
17066
+ opacity: 1,
17067
+ transform: 'translateX(0)'
17068
+ }
17069
+ });
17070
+ const slideDownAndFade$1 = keyframes({
17071
+ '0%': {
17072
+ opacity: 0,
17073
+ transform: 'translateY(-2px)'
17074
+ },
17075
+ '100%': {
17076
+ opacity: 1,
17077
+ transform: 'translateY(0)'
17078
+ }
17079
+ });
17080
+ const slideLeftAndFade$1 = keyframes({
17081
+ '0%': {
17082
+ opacity: 0,
17083
+ transform: 'translateX(2px)'
17084
+ },
17085
+ '100%': {
17086
+ opacity: 1,
17087
+ transform: 'translateX(0)'
17088
+ }
17089
+ });
17090
+ const ContextMenuTrigger = styled(Trigger);
17091
+ const ContextMenu = styled(Menu, {
17092
+ width: 'auto',
17093
+ minWidth: 143,
17094
+ maxWidth: 243,
17095
+ backgroundColor: 'white',
17096
+ borderRadius: 4,
17097
+ padding: 8,
17098
+ zIndex: '$sticky',
17099
+ boxShadow: '0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)',
17100
+ '@media (prefers-reduced-motion: no-preference)': {
17101
+ animationDuration: '400ms',
17102
+ animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
17103
+ animationFillMode: 'forwards',
17104
+ willChange: 'transform, opacity',
17105
+ '&[data-state="open"]': {
17106
+ '&[data-side="top"]': {
17107
+ animationName: slideDownAndFade$1
17108
+ },
17109
+ '&[data-side="right"]': {
17110
+ animationName: slideLeftAndFade$1
17111
+ },
17112
+ '&[data-side="bottom"]': {
17113
+ animationName: slideUpAndFade$1
17114
+ },
17115
+ '&[data-side="left"]': {
17116
+ animationName: slideRightAndFade$1
17117
+ }
17118
+ }
17119
+ }
17120
+ });
17121
+ const ContextMenuItem = styled(Item, {
17122
+ all: 'unset',
17123
+ fontSize: 14,
17124
+ lineHeight: 1.5,
17125
+ borderRadius: 3,
17126
+ display: 'flex',
17127
+ alignItems: 'center',
17128
+ height: 'calc(36px - 8px)',
17129
+ padding: '4px 0',
17130
+ position: 'relative',
17131
+ userSelect: 'none',
17132
+ color: '$textPrimary',
17133
+ '&[data-disabled]': {
17134
+ color: colors$4.gray400,
17135
+ pointerEvents: 'none'
17136
+ },
17137
+ '&:hover': {
17138
+ cursor: 'pointer',
17139
+ backgroundColor: colors$4.gray100
17140
+ },
17141
+ '&:active': {
17142
+ backgroundColor: colors$4.gray150
17143
+ },
17144
+ '&:focus': {
17145
+ backgroundColor: colors$4.gray100
17146
+ }
17147
+ });
17148
+ const ContextMenuSeparator = styled('div', {
17149
+ height: 1,
17150
+ backgroundColor: colors$4.gray150,
17151
+ margin: 5
17152
+ });
17153
+
17029
17154
  const TableContainer$4 = styled(Flex$1, {
17030
17155
  position: 'relative',
17031
17156
  flexDirection: 'column',
@@ -17513,9 +17638,11 @@ function Table({
17513
17638
  columnOrder,
17514
17639
  customRowsStyle,
17515
17640
  isMobileLayout,
17516
- showDuplicatedData
17641
+ showDuplicatedData,
17642
+ onRowClick
17517
17643
  }) {
17518
17644
  const [limit, setLimit] = useState(rowLimit);
17645
+ const [dataRow, setDataRow] = useState({});
17519
17646
 
17520
17647
  const getInitialState = () => {
17521
17648
  const initialState = {};
@@ -17660,6 +17787,54 @@ function Table({
17660
17787
  });
17661
17788
  }
17662
17789
  }, [data, selectedIds]);
17790
+
17791
+ const getOptionsMenu = () => {
17792
+ var _a, _b;
17793
+
17794
+ let options = [];
17795
+
17796
+ for (let i = 0; i < (page === null || page === void 0 ? void 0 : page.length); i++) {
17797
+ prepareRow(page[i]);
17798
+
17799
+ for (let j = 0; j < page[i].cells.length; j++) {
17800
+ const column = (_b = (_a = page[i]) === null || _a === void 0 ? void 0 : _a.cells[j]) === null || _b === void 0 ? void 0 : _b.column;
17801
+
17802
+ if (column === null || column === void 0 ? void 0 : column.options) {
17803
+ options = column === null || column === void 0 ? void 0 : column.options;
17804
+ }
17805
+ }
17806
+ }
17807
+
17808
+ return options;
17809
+ };
17810
+
17811
+ const renderContextMenu = () => {
17812
+ const options = getOptionsMenu();
17813
+ return jsx(ContextMenu, Object.assign({
17814
+ id: "context-menu-table"
17815
+ }, {
17816
+ children: options === null || options === void 0 ? void 0 : options.map((option, index) => {
17817
+ return jsxs(React.Fragment, {
17818
+ children: [jsx(ContextMenuItem, Object.assign({
17819
+ data: {
17820
+ row: dataRow
17821
+ },
17822
+ onClick: () => option === null || option === void 0 ? void 0 : option.onClick({
17823
+ row: dataRow
17824
+ })
17825
+ }, {
17826
+ children: option === null || option === void 0 ? void 0 : option.title
17827
+ }), void 0), index !== (options === null || options === void 0 ? void 0 : options.length) - 1 && jsx(ContextMenuSeparator, {}, void 0)]
17828
+ }, index);
17829
+ })
17830
+ }), void 0);
17831
+ };
17832
+
17833
+ const handleRowClick = (row, i) => {
17834
+ onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(row, i);
17835
+ setDataRow(row);
17836
+ };
17837
+
17663
17838
  return jsxs(Box, Object.assign({
17664
17839
  css: {
17665
17840
  position: 'relative',
@@ -17687,11 +17862,11 @@ function Table({
17687
17862
  children: "Loading .... "
17688
17863
  }), void 0)
17689
17864
  }), void 0), !isMobile ? jsxs(Fragment, {
17690
- children: [jsx(TableContainer$3, Object.assign({
17865
+ children: [jsxs(TableContainer$3, Object.assign({
17691
17866
  css: css,
17692
17867
  ref: scrollerRef
17693
17868
  }, {
17694
- children: renderInfiniteScrollWrapper(jsxs(TableContent$3, Object.assign({}, getTableProps(), {
17869
+ children: [renderInfiniteScrollWrapper(jsxs(TableContent$3, Object.assign({}, getTableProps(), {
17695
17870
  children: [jsx(TableHead$3, Object.assign({
17696
17871
  css: headerCss
17697
17872
  }, {
@@ -17727,12 +17902,17 @@ function Table({
17727
17902
  })
17728
17903
  }), void 0), jsx(TableBody$3, Object.assign({}, getTableBodyProps(), {
17729
17904
  children: page.map((row, i) => {
17730
- var _a;
17905
+ var _a, _b;
17731
17906
 
17732
17907
  prepareRow(row);
17733
17908
  const subRowCells = row.cells.filter(cell => cell.column.isSubRow);
17734
17909
  const leftAddOnCells = (_a = row.cells.filter(cell => ['expander', 'selection'].includes(cell.column.id))) !== null && _a !== void 0 ? _a : [];
17735
17910
  const notNullHeaderColumns = visibleColumns.filter(column => typeof column.Header !== 'function' && column.Header !== null && !column.isSubRow);
17911
+ const isContextMenu = (_b = row.cells.filter(cell => {
17912
+ var _a, _b;
17913
+
17914
+ return (_b = (_a = cell.column) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.length;
17915
+ })) === null || _b === void 0 ? void 0 : _b.length;
17736
17916
  let customStyle = {};
17737
17917
 
17738
17918
  if (customRowsStyle && customRowsStyle(row.values).length) {
@@ -17752,13 +17932,35 @@ function Table({
17752
17932
  css: customStyle
17753
17933
  }, row.getRowProps(), {
17754
17934
  children: row.cells.filter(cell => !cell.column.isSubRow).map(cell => {
17935
+ var _a, _b;
17936
+
17755
17937
  return jsx(TableCell$3, Object.assign({}, cell.getCellProps(addOnCellStyle(cell.column.id)), {
17756
17938
  css: Object.assign(Object.assign({
17757
- padding: cell.column.accessor ? '20px 8px' : '20px 20px',
17758
- verticalAlign: cell.column.accessor ? cellAlign : 'center'
17759
- }, stickyPositionStyling(cell.column)), stickyShadowStyling(cell.column))
17939
+ padding: !isContextMenu || ['expander', 'selection', 'menu', 'eye'].includes((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.id) ? cell.column.accessor ? '20px 8px' : '20px 20px' : '',
17940
+ verticalAlign: cell.column.accessor ? cellAlign : 'center',
17941
+ cursor: onRowClick ? 'pointer' : 'unset'
17942
+ }, stickyPositionStyling(cell.column)), stickyShadowStyling(cell.column)),
17943
+ onClick: () => handleRowClick(row, i)
17760
17944
  }, {
17761
- children: cell.render('Cell')
17945
+ children: jsx(ConditionalWrapper, Object.assign({
17946
+ condition: isContextMenu && !['expander', 'selection', 'menu', 'eye'].includes((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.id),
17947
+ wrapper: children => jsx(ContextMenuTrigger, Object.assign({
17948
+ id: "context-menu-table",
17949
+ triggerSide: "left"
17950
+ }, {
17951
+ children: jsx(Box, Object.assign({
17952
+ css: {
17953
+ cursor: 'pointer',
17954
+ padding: cell.column.accessor ? '20px 8px' : '20px 20px'
17955
+ },
17956
+ onClick: () => handleRowClick(row, i)
17957
+ }, {
17958
+ children: children
17959
+ }), void 0)
17960
+ }), void 0)
17961
+ }, {
17962
+ children: cell.render('Cell')
17963
+ }), void 0)
17762
17964
  }), void 0);
17763
17965
  })
17764
17966
  }), void 0), row.isExpanded ? subRowCells.map((cell, index) => jsxs(TableRow$3, Object.assign({
@@ -17798,7 +18000,7 @@ function Table({
17798
18000
  }, row.id);
17799
18001
  })
17800
18002
  }), void 0)]
17801
- }), void 0))
18003
+ }), void 0)), renderContextMenu()]
17802
18004
  }), void 0), !isInfiniteScroll && jsx(Box, Object.assign({
17803
18005
  css: {
17804
18006
  width: '100%'
@@ -18572,6 +18774,7 @@ var _jsxFileName$d = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packa
18572
18774
 
18573
18775
  const rowMenuColumn = (options, icon, config) => ({
18574
18776
  id: 'menu',
18777
+ options,
18575
18778
  Header: () => null,
18576
18779
  Cell: props => {
18577
18780
  const defaultConfig = {
@@ -18595,7 +18798,7 @@ const rowMenuColumn = (options, icon, config) => ({
18595
18798
  __self: undefined,
18596
18799
  __source: {
18597
18800
  fileName: _jsxFileName$d,
18598
- lineNumber: 36,
18801
+ lineNumber: 37,
18599
18802
  columnNumber: 9
18600
18803
  }
18601
18804
  }, /*#__PURE__*/React__default.createElement(DropdownMenuTrigger, {
@@ -18603,7 +18806,7 @@ const rowMenuColumn = (options, icon, config) => ({
18603
18806
  __self: undefined,
18604
18807
  __source: {
18605
18808
  fileName: _jsxFileName$d,
18606
- lineNumber: 37,
18809
+ lineNumber: 38,
18607
18810
  columnNumber: 11
18608
18811
  }
18609
18812
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -18616,7 +18819,7 @@ const rowMenuColumn = (options, icon, config) => ({
18616
18819
  __self: undefined,
18617
18820
  __source: {
18618
18821
  fileName: _jsxFileName$d,
18619
- lineNumber: 38,
18822
+ lineNumber: 39,
18620
18823
  columnNumber: 13
18621
18824
  }
18622
18825
  }, /*#__PURE__*/React__default.createElement(IconButton, {
@@ -18624,21 +18827,21 @@ const rowMenuColumn = (options, icon, config) => ({
18624
18827
  __self: undefined,
18625
18828
  __source: {
18626
18829
  fileName: _jsxFileName$d,
18627
- lineNumber: 39,
18830
+ lineNumber: 40,
18628
18831
  columnNumber: 15
18629
18832
  }
18630
18833
  }, icon || /*#__PURE__*/React__default.createElement(EllipsisHorizontalOutline, {
18631
18834
  __self: undefined,
18632
18835
  __source: {
18633
18836
  fileName: _jsxFileName$d,
18634
- lineNumber: 39,
18837
+ lineNumber: 40,
18635
18838
  columnNumber: 70
18636
18839
  }
18637
18840
  })))), /*#__PURE__*/React__default.createElement(DropdownMenuPortal, {
18638
18841
  __self: undefined,
18639
18842
  __source: {
18640
18843
  fileName: _jsxFileName$d,
18641
- lineNumber: 42,
18844
+ lineNumber: 43,
18642
18845
  columnNumber: 11
18643
18846
  }
18644
18847
  }, /*#__PURE__*/React__default.createElement(DropdownMenuContent, {
@@ -18661,7 +18864,7 @@ const rowMenuColumn = (options, icon, config) => ({
18661
18864
  __self: undefined,
18662
18865
  __source: {
18663
18866
  fileName: _jsxFileName$d,
18664
- lineNumber: 43,
18867
+ lineNumber: 44,
18665
18868
  columnNumber: 13
18666
18869
  }
18667
18870
  }, options.map((option, index) => /*#__PURE__*/React__default.createElement(React__default.Fragment, {
@@ -18669,7 +18872,7 @@ const rowMenuColumn = (options, icon, config) => ({
18669
18872
  __self: undefined,
18670
18873
  __source: {
18671
18874
  fileName: _jsxFileName$d,
18672
- lineNumber: 63,
18875
+ lineNumber: 64,
18673
18876
  columnNumber: 17
18674
18877
  }
18675
18878
  }, /*#__PURE__*/React__default.createElement(DropdownMenuItem, {
@@ -18681,7 +18884,7 @@ const rowMenuColumn = (options, icon, config) => ({
18681
18884
  __self: undefined,
18682
18885
  __source: {
18683
18886
  fileName: _jsxFileName$d,
18684
- lineNumber: 64,
18887
+ lineNumber: 65,
18685
18888
  columnNumber: 19
18686
18889
  }
18687
18890
  }, option.title), /*#__PURE__*/React__default.createElement(DropdownMenuSeparator, {
@@ -18692,7 +18895,7 @@ const rowMenuColumn = (options, icon, config) => ({
18692
18895
  __self: undefined,
18693
18896
  __source: {
18694
18897
  fileName: _jsxFileName$d,
18695
- lineNumber: 73,
18898
+ lineNumber: 74,
18696
18899
  columnNumber: 19
18697
18900
  }
18698
18901
  })))))), /*#__PURE__*/React__default.createElement(ModalDialog, {
@@ -18703,7 +18906,7 @@ const rowMenuColumn = (options, icon, config) => ({
18703
18906
  __self: undefined,
18704
18907
  __source: {
18705
18908
  fileName: _jsxFileName$d,
18706
- lineNumber: 79,
18909
+ lineNumber: 80,
18707
18910
  columnNumber: 9
18708
18911
  }
18709
18912
  }, /*#__PURE__*/React__default.createElement(ModalDialogTrigger, {
@@ -18711,7 +18914,7 @@ const rowMenuColumn = (options, icon, config) => ({
18711
18914
  __self: undefined,
18712
18915
  __source: {
18713
18916
  fileName: _jsxFileName$d,
18714
- lineNumber: 80,
18917
+ lineNumber: 81,
18715
18918
  columnNumber: 11
18716
18919
  }
18717
18920
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -18724,28 +18927,28 @@ const rowMenuColumn = (options, icon, config) => ({
18724
18927
  __self: undefined,
18725
18928
  __source: {
18726
18929
  fileName: _jsxFileName$d,
18727
- lineNumber: 81,
18930
+ lineNumber: 82,
18728
18931
  columnNumber: 13
18729
18932
  }
18730
18933
  }, /*#__PURE__*/React__default.createElement(IconButton, {
18731
18934
  __self: undefined,
18732
18935
  __source: {
18733
18936
  fileName: _jsxFileName$d,
18734
- lineNumber: 82,
18937
+ lineNumber: 83,
18735
18938
  columnNumber: 15
18736
18939
  }
18737
18940
  }, icon || /*#__PURE__*/React__default.createElement(EllipsisHorizontalOutline, {
18738
18941
  __self: undefined,
18739
18942
  __source: {
18740
18943
  fileName: _jsxFileName$d,
18741
- lineNumber: 82,
18944
+ lineNumber: 83,
18742
18945
  columnNumber: 36
18743
18946
  }
18744
18947
  })))), /*#__PURE__*/React__default.createElement(ModalDialogTitle, {
18745
18948
  __self: undefined,
18746
18949
  __source: {
18747
18950
  fileName: _jsxFileName$d,
18748
- lineNumber: 85,
18951
+ lineNumber: 86,
18749
18952
  columnNumber: 11
18750
18953
  }
18751
18954
  }, mobileTitle), /*#__PURE__*/React__default.createElement(ModalDialogContent, {
@@ -18755,7 +18958,7 @@ const rowMenuColumn = (options, icon, config) => ({
18755
18958
  __self: undefined,
18756
18959
  __source: {
18757
18960
  fileName: _jsxFileName$d,
18758
- lineNumber: 86,
18961
+ lineNumber: 87,
18759
18962
  columnNumber: 11
18760
18963
  }
18761
18964
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -18770,7 +18973,7 @@ const rowMenuColumn = (options, icon, config) => ({
18770
18973
  __self: undefined,
18771
18974
  __source: {
18772
18975
  fileName: _jsxFileName$d,
18773
- lineNumber: 87,
18976
+ lineNumber: 88,
18774
18977
  columnNumber: 13
18775
18978
  }
18776
18979
  }, options.map((option, index) => /*#__PURE__*/React__default.createElement(React__default.Fragment, {
@@ -18778,7 +18981,7 @@ const rowMenuColumn = (options, icon, config) => ({
18778
18981
  __self: undefined,
18779
18982
  __source: {
18780
18983
  fileName: _jsxFileName$d,
18781
- lineNumber: 89,
18984
+ lineNumber: 90,
18782
18985
  columnNumber: 17
18783
18986
  }
18784
18987
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -18794,7 +18997,7 @@ const rowMenuColumn = (options, icon, config) => ({
18794
18997
  __self: undefined,
18795
18998
  __source: {
18796
18999
  fileName: _jsxFileName$d,
18797
- lineNumber: 90,
19000
+ lineNumber: 91,
18798
19001
  columnNumber: 19
18799
19002
  }
18800
19003
  }, /*#__PURE__*/React__default.createElement(Paragraph, {
@@ -18803,7 +19006,7 @@ const rowMenuColumn = (options, icon, config) => ({
18803
19006
  __self: undefined,
18804
19007
  __source: {
18805
19008
  fileName: _jsxFileName$d,
18806
- lineNumber: 101,
19009
+ lineNumber: 102,
18807
19010
  columnNumber: 21
18808
19011
  }
18809
19012
  }, option.title)), /*#__PURE__*/React__default.createElement(Separator$2, {
@@ -18811,7 +19014,7 @@ const rowMenuColumn = (options, icon, config) => ({
18811
19014
  __self: undefined,
18812
19015
  __source: {
18813
19016
  fileName: _jsxFileName$d,
18814
- lineNumber: 105,
19017
+ lineNumber: 106,
18815
19018
  columnNumber: 19
18816
19019
  }
18817
19020
  })))))));
@@ -21792,6 +21995,7 @@ function imgPreview(image, crop, scale = 1, rotate = 0, ratio) {
21792
21995
  function upload({
21793
21996
  url,
21794
21997
  file,
21998
+ customBody,
21795
21999
  tokenKey,
21796
22000
  token,
21797
22001
  progress,
@@ -21802,8 +22006,18 @@ function upload({
21802
22006
  onProgress
21803
22007
  }) {
21804
22008
  const promise = new Promise((resolve, reject) => {
22009
+ var _a;
22010
+
21805
22011
  const formdata = new FormData();
21806
- formdata.append(reqKey, file);
22012
+
22013
+ if (customBody) {
22014
+ for (let i = 0; i < ((_a = Object.keys(customBody)) === null || _a === void 0 ? void 0 : _a.length); i++) {
22015
+ formdata.append(Object.keys(customBody)[i], customBody[Object.keys(customBody)[i]]);
22016
+ }
22017
+ } else {
22018
+ formdata.append(reqKey, file);
22019
+ }
22020
+
21807
22021
  request.post(url).set(tokenKey, token).send(formdata).on('progress', e => {
21808
22022
  onProgress === null || onProgress === void 0 ? void 0 : onProgress(e);
21809
22023
  progress === null || progress === void 0 ? void 0 : progress(Math.round(e.percent));
@@ -21958,6 +22172,7 @@ const Upload = ({
21958
22172
  progress,
21959
22173
  loading,
21960
22174
  action,
22175
+ customBodyRequest,
21961
22176
  token,
21962
22177
  tokenKey,
21963
22178
  reqKey,
@@ -21966,7 +22181,8 @@ const Upload = ({
21966
22181
  disabled,
21967
22182
  errorMessage,
21968
22183
  maxSizeMB,
21969
- imageCompression
22184
+ imageCompression,
22185
+ hiddenToggleAspect
21970
22186
  }) => {
21971
22187
  const isFile = listType === 'file';
21972
22188
  const imgRef = useRef(null);
@@ -22140,6 +22356,7 @@ const Upload = ({
22140
22356
  upload({
22141
22357
  url: action,
22142
22358
  file: newFile,
22359
+ customBody: customBodyRequest === null || customBodyRequest === void 0 ? void 0 : customBodyRequest(newFile),
22143
22360
  token,
22144
22361
  tokenKey,
22145
22362
  reqKey,
@@ -22240,9 +22457,12 @@ const Upload = ({
22240
22457
  handleUpload(files);
22241
22458
  } else {
22242
22459
  if (onBeforeCrop) {
22460
+ var _files$;
22461
+
22243
22462
  // program to get the dimensions of an image
22244
22463
  const img = document.createElement('img');
22245
22464
  img.src = URL.createObjectURL(files[0]);
22465
+ img.size = files === null || files === void 0 ? void 0 : (_files$ = files[0]) === null || _files$ === void 0 ? void 0 : _files$.size;
22246
22466
 
22247
22467
  img.onload = () => {
22248
22468
  var _onBeforeCrop, _onBeforeCrop$then;
@@ -22430,7 +22650,7 @@ const Upload = ({
22430
22650
  __self: this,
22431
22651
  __source: {
22432
22652
  fileName: _jsxFileName$9,
22433
- lineNumber: 603,
22653
+ lineNumber: 607,
22434
22654
  columnNumber: 7
22435
22655
  }
22436
22656
  }, /*#__PURE__*/React__default.createElement(ButtonText, {
@@ -22440,7 +22660,7 @@ const Upload = ({
22440
22660
  __self: this,
22441
22661
  __source: {
22442
22662
  fileName: _jsxFileName$9,
22443
- lineNumber: 604,
22663
+ lineNumber: 608,
22444
22664
  columnNumber: 9
22445
22665
  }
22446
22666
  }, replaceLabel && replaceLabel.length > 0 ? replaceLabel : `Ubah Berkas`));
@@ -22456,7 +22676,7 @@ const Upload = ({
22456
22676
  __self: undefined,
22457
22677
  __source: {
22458
22678
  fileName: _jsxFileName$9,
22459
- lineNumber: 614,
22679
+ lineNumber: 618,
22460
22680
  columnNumber: 16
22461
22681
  }
22462
22682
  });
@@ -22468,7 +22688,7 @@ const Upload = ({
22468
22688
  __self: undefined,
22469
22689
  __source: {
22470
22690
  fileName: _jsxFileName$9,
22471
- lineNumber: 617,
22691
+ lineNumber: 621,
22472
22692
  columnNumber: 9
22473
22693
  }
22474
22694
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -22478,7 +22698,7 @@ const Upload = ({
22478
22698
  __self: undefined,
22479
22699
  __source: {
22480
22700
  fileName: _jsxFileName$9,
22481
- lineNumber: 618,
22701
+ lineNumber: 622,
22482
22702
  columnNumber: 11
22483
22703
  }
22484
22704
  }, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
@@ -22487,7 +22707,7 @@ const Upload = ({
22487
22707
  __self: undefined,
22488
22708
  __source: {
22489
22709
  fileName: _jsxFileName$9,
22490
- lineNumber: 619,
22710
+ lineNumber: 623,
22491
22711
  columnNumber: 27
22492
22712
  }
22493
22713
  }), /*#__PURE__*/React__default.createElement(Box, {
@@ -22500,7 +22720,7 @@ const Upload = ({
22500
22720
  __self: undefined,
22501
22721
  __source: {
22502
22722
  fileName: _jsxFileName$9,
22503
- lineNumber: 620,
22723
+ lineNumber: 624,
22504
22724
  columnNumber: 13
22505
22725
  }
22506
22726
  }, /*#__PURE__*/React__default.createElement(IconStateFull, {
@@ -22509,7 +22729,7 @@ const Upload = ({
22509
22729
  __self: undefined,
22510
22730
  __source: {
22511
22731
  fileName: _jsxFileName$9,
22512
- lineNumber: 628,
22732
+ lineNumber: 632,
22513
22733
  columnNumber: 15
22514
22734
  }
22515
22735
  })), /*#__PURE__*/React__default.createElement(Image, {
@@ -22519,7 +22739,7 @@ const Upload = ({
22519
22739
  __self: undefined,
22520
22740
  __source: {
22521
22741
  fileName: _jsxFileName$9,
22522
- lineNumber: 630,
22742
+ lineNumber: 634,
22523
22743
  columnNumber: 13
22524
22744
  }
22525
22745
  })), !disabled && renderButtonReplace(index));
@@ -22538,7 +22758,7 @@ const Upload = ({
22538
22758
  __self: undefined,
22539
22759
  __source: {
22540
22760
  fileName: _jsxFileName$9,
22541
- lineNumber: 641,
22761
+ lineNumber: 645,
22542
22762
  columnNumber: 16
22543
22763
  }
22544
22764
  });
@@ -22549,7 +22769,7 @@ const Upload = ({
22549
22769
  __self: undefined,
22550
22770
  __source: {
22551
22771
  fileName: _jsxFileName$9,
22552
- lineNumber: 644,
22772
+ lineNumber: 648,
22553
22773
  columnNumber: 9
22554
22774
  }
22555
22775
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -22559,7 +22779,7 @@ const Upload = ({
22559
22779
  __self: undefined,
22560
22780
  __source: {
22561
22781
  fileName: _jsxFileName$9,
22562
- lineNumber: 645,
22782
+ lineNumber: 649,
22563
22783
  columnNumber: 11
22564
22784
  }
22565
22785
  }, !disabled && /*#__PURE__*/React__default.createElement(IconStateFull, {
@@ -22568,7 +22788,7 @@ const Upload = ({
22568
22788
  __self: undefined,
22569
22789
  __source: {
22570
22790
  fileName: _jsxFileName$9,
22571
- lineNumber: 646,
22791
+ lineNumber: 650,
22572
22792
  columnNumber: 27
22573
22793
  }
22574
22794
  }), /*#__PURE__*/React__default.createElement(Box, {
@@ -22581,7 +22801,7 @@ const Upload = ({
22581
22801
  __self: undefined,
22582
22802
  __source: {
22583
22803
  fileName: _jsxFileName$9,
22584
- lineNumber: 647,
22804
+ lineNumber: 651,
22585
22805
  columnNumber: 13
22586
22806
  }
22587
22807
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -22591,14 +22811,14 @@ const Upload = ({
22591
22811
  __self: undefined,
22592
22812
  __source: {
22593
22813
  fileName: _jsxFileName$9,
22594
- lineNumber: 655,
22814
+ lineNumber: 659,
22595
22815
  columnNumber: 15
22596
22816
  }
22597
22817
  }, /*#__PURE__*/React__default.createElement(FileExtension, {
22598
22818
  __self: undefined,
22599
22819
  __source: {
22600
22820
  fileName: _jsxFileName$9,
22601
- lineNumber: 656,
22821
+ lineNumber: 660,
22602
22822
  columnNumber: 17
22603
22823
  }
22604
22824
  }, ".", item === null || item === void 0 ? void 0 : (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
@@ -22606,7 +22826,7 @@ const Upload = ({
22606
22826
  __self: undefined,
22607
22827
  __source: {
22608
22828
  fileName: _jsxFileName$9,
22609
- lineNumber: 657,
22829
+ lineNumber: 661,
22610
22830
  columnNumber: 17
22611
22831
  }
22612
22832
  }, /*#__PURE__*/React__default.createElement(Text, {
@@ -22621,7 +22841,7 @@ const Upload = ({
22621
22841
  __self: undefined,
22622
22842
  __source: {
22623
22843
  fileName: _jsxFileName$9,
22624
- lineNumber: 658,
22844
+ lineNumber: 662,
22625
22845
  columnNumber: 19
22626
22846
  }
22627
22847
  }, item.name)))), /*#__PURE__*/React__default.createElement(Box, {
@@ -22634,7 +22854,7 @@ const Upload = ({
22634
22854
  __self: undefined,
22635
22855
  __source: {
22636
22856
  fileName: _jsxFileName$9,
22637
- lineNumber: 673,
22857
+ lineNumber: 677,
22638
22858
  columnNumber: 13
22639
22859
  }
22640
22860
  }, /*#__PURE__*/React__default.createElement(IconStateFull, {
@@ -22643,7 +22863,7 @@ const Upload = ({
22643
22863
  __self: undefined,
22644
22864
  __source: {
22645
22865
  fileName: _jsxFileName$9,
22646
- lineNumber: 681,
22866
+ lineNumber: 685,
22647
22867
  columnNumber: 15
22648
22868
  }
22649
22869
  })), /*#__PURE__*/React__default.createElement(Blank, {
@@ -22651,7 +22871,7 @@ const Upload = ({
22651
22871
  __self: undefined,
22652
22872
  __source: {
22653
22873
  fileName: _jsxFileName$9,
22654
- lineNumber: 683,
22874
+ lineNumber: 687,
22655
22875
  columnNumber: 13
22656
22876
  }
22657
22877
  })), !disabled && renderButtonReplace(index));
@@ -22667,7 +22887,7 @@ const Upload = ({
22667
22887
  __self: this,
22668
22888
  __source: {
22669
22889
  fileName: _jsxFileName$9,
22670
- lineNumber: 694,
22890
+ lineNumber: 698,
22671
22891
  columnNumber: 7
22672
22892
  }
22673
22893
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -22681,7 +22901,7 @@ const Upload = ({
22681
22901
  __self: this,
22682
22902
  __source: {
22683
22903
  fileName: _jsxFileName$9,
22684
- lineNumber: 695,
22904
+ lineNumber: 699,
22685
22905
  columnNumber: 9
22686
22906
  }
22687
22907
  }, /*#__PURE__*/React__default.createElement(LoadingBar, {
@@ -22707,7 +22927,7 @@ const Upload = ({
22707
22927
  __self: this,
22708
22928
  __source: {
22709
22929
  fileName: _jsxFileName$9,
22710
- lineNumber: 696,
22930
+ lineNumber: 700,
22711
22931
  columnNumber: 11
22712
22932
  }
22713
22933
  }), /*#__PURE__*/React__default.createElement(Text, {
@@ -22715,14 +22935,14 @@ const Upload = ({
22715
22935
  __self: this,
22716
22936
  __source: {
22717
22937
  fileName: _jsxFileName$9,
22718
- lineNumber: 709,
22938
+ lineNumber: 713,
22719
22939
  columnNumber: 11
22720
22940
  }
22721
22941
  }, `${progress <= 100 ? progress : 100}%`), /*#__PURE__*/React__default.createElement(Text, {
22722
22942
  __self: this,
22723
22943
  __source: {
22724
22944
  fileName: _jsxFileName$9,
22725
- lineNumber: 710,
22945
+ lineNumber: 714,
22726
22946
  columnNumber: 11
22727
22947
  }
22728
22948
  }, "Berkas sedang diunggah")));
@@ -22735,7 +22955,7 @@ const Upload = ({
22735
22955
  __self: this,
22736
22956
  __source: {
22737
22957
  fileName: _jsxFileName$9,
22738
- lineNumber: 718,
22958
+ lineNumber: 722,
22739
22959
  columnNumber: 7
22740
22960
  }
22741
22961
  }, /*#__PURE__*/React__default.createElement(ContainerUpload, {
@@ -22751,7 +22971,7 @@ const Upload = ({
22751
22971
  __self: this,
22752
22972
  __source: {
22753
22973
  fileName: _jsxFileName$9,
22754
- lineNumber: 719,
22974
+ lineNumber: 723,
22755
22975
  columnNumber: 9
22756
22976
  }
22757
22977
  }, /*#__PURE__*/React__default.createElement(Input$2, {
@@ -22763,21 +22983,21 @@ const Upload = ({
22763
22983
  __self: this,
22764
22984
  __source: {
22765
22985
  fileName: _jsxFileName$9,
22766
- lineNumber: 730,
22986
+ lineNumber: 734,
22767
22987
  columnNumber: 11
22768
22988
  }
22769
22989
  }), /*#__PURE__*/React__default.createElement(Children, {
22770
22990
  __self: this,
22771
22991
  __source: {
22772
22992
  fileName: _jsxFileName$9,
22773
- lineNumber: 731,
22993
+ lineNumber: 735,
22774
22994
  columnNumber: 11
22775
22995
  }
22776
22996
  }, children !== null && children !== void 0 ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
22777
22997
  __self: this,
22778
22998
  __source: {
22779
22999
  fileName: _jsxFileName$9,
22780
- lineNumber: 733,
23000
+ lineNumber: 737,
22781
23001
  columnNumber: 15
22782
23002
  }
22783
23003
  }, /*#__PURE__*/React__default.createElement(IconCard, {
@@ -22786,7 +23006,7 @@ const Upload = ({
22786
23006
  __self: this,
22787
23007
  __source: {
22788
23008
  fileName: _jsxFileName$9,
22789
- lineNumber: 734,
23009
+ lineNumber: 738,
22790
23010
  columnNumber: 17
22791
23011
  }
22792
23012
  }, /*#__PURE__*/React__default.createElement(UploadOutline, {
@@ -22794,7 +23014,7 @@ const Upload = ({
22794
23014
  __self: this,
22795
23015
  __source: {
22796
23016
  fileName: _jsxFileName$9,
22797
- lineNumber: 735,
23017
+ lineNumber: 739,
22798
23018
  columnNumber: 19
22799
23019
  }
22800
23020
  })), /*#__PURE__*/React__default.createElement(Text, {
@@ -22804,14 +23024,14 @@ const Upload = ({
22804
23024
  __self: this,
22805
23025
  __source: {
22806
23026
  fileName: _jsxFileName$9,
22807
- lineNumber: 737,
23027
+ lineNumber: 741,
22808
23028
  columnNumber: 17
22809
23029
  }
22810
23030
  }, placeholder !== null && placeholder !== void 0 ? placeholder : `Pilih atau letakkan berkas di sini`)))), error && /*#__PURE__*/React__default.createElement(ErrorMessage, {
22811
23031
  __self: this,
22812
23032
  __source: {
22813
23033
  fileName: _jsxFileName$9,
22814
- lineNumber: 744,
23034
+ lineNumber: 748,
22815
23035
  columnNumber: 19
22816
23036
  }
22817
23037
  }, error));
@@ -22822,7 +23042,7 @@ const Upload = ({
22822
23042
  __self: this,
22823
23043
  __source: {
22824
23044
  fileName: _jsxFileName$9,
22825
- lineNumber: 751,
23045
+ lineNumber: 755,
22826
23046
  columnNumber: 7
22827
23047
  }
22828
23048
  }, /*#__PURE__*/React__default.createElement(ModalDialogTrigger, {
@@ -22830,7 +23050,7 @@ const Upload = ({
22830
23050
  __self: this,
22831
23051
  __source: {
22832
23052
  fileName: _jsxFileName$9,
22833
- lineNumber: 752,
23053
+ lineNumber: 756,
22834
23054
  columnNumber: 9
22835
23055
  }
22836
23056
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -22838,7 +23058,7 @@ const Upload = ({
22838
23058
  __self: this,
22839
23059
  __source: {
22840
23060
  fileName: _jsxFileName$9,
22841
- lineNumber: 753,
23061
+ lineNumber: 757,
22842
23062
  columnNumber: 11
22843
23063
  }
22844
23064
  })), /*#__PURE__*/React__default.createElement(ModalDialogTitle, {
@@ -22851,7 +23071,7 @@ const Upload = ({
22851
23071
  __self: this,
22852
23072
  __source: {
22853
23073
  fileName: _jsxFileName$9,
22854
- lineNumber: 755,
23074
+ lineNumber: 759,
22855
23075
  columnNumber: 9
22856
23076
  }
22857
23077
  }, cropperTitle), /*#__PURE__*/React__default.createElement(ModalDialogContent, {
@@ -22863,7 +23083,7 @@ const Upload = ({
22863
23083
  __self: this,
22864
23084
  __source: {
22865
23085
  fileName: _jsxFileName$9,
22866
- lineNumber: 758,
23086
+ lineNumber: 762,
22867
23087
  columnNumber: 9
22868
23088
  }
22869
23089
  }, /*#__PURE__*/React__default.createElement(ReactCrop, {
@@ -22874,7 +23094,7 @@ const Upload = ({
22874
23094
  __self: this,
22875
23095
  __source: {
22876
23096
  fileName: _jsxFileName$9,
22877
- lineNumber: 759,
23097
+ lineNumber: 763,
22878
23098
  columnNumber: 11
22879
23099
  }
22880
23100
  }, /*#__PURE__*/React__default.createElement(Image, {
@@ -22888,14 +23108,14 @@ const Upload = ({
22888
23108
  __self: this,
22889
23109
  __source: {
22890
23110
  fileName: _jsxFileName$9,
22891
- lineNumber: 760,
23111
+ lineNumber: 764,
22892
23112
  columnNumber: 13
22893
23113
  }
22894
23114
  }))), /*#__PURE__*/React__default.createElement(ModalDialogFooter, {
22895
23115
  __self: this,
22896
23116
  __source: {
22897
23117
  fileName: _jsxFileName$9,
22898
- lineNumber: 763,
23118
+ lineNumber: 767,
22899
23119
  columnNumber: 9
22900
23120
  }
22901
23121
  }, /*#__PURE__*/React__default.createElement(Flex$1, {
@@ -22907,16 +23127,23 @@ const Upload = ({
22907
23127
  __self: this,
22908
23128
  __source: {
22909
23129
  fileName: _jsxFileName$9,
22910
- lineNumber: 764,
23130
+ lineNumber: 768,
22911
23131
  columnNumber: 11
22912
23132
  }
22913
- }, /*#__PURE__*/React__default.createElement(Tooltip$1, {
23133
+ }, hiddenToggleAspect ? /*#__PURE__*/React__default.createElement(Box, {
23134
+ __self: this,
23135
+ __source: {
23136
+ fileName: _jsxFileName$9,
23137
+ lineNumber: 770,
23138
+ columnNumber: 15
23139
+ }
23140
+ }) : /*#__PURE__*/React__default.createElement(Tooltip$1, {
22914
23141
  label: "Aspect Ratio",
22915
23142
  __self: this,
22916
23143
  __source: {
22917
23144
  fileName: _jsxFileName$9,
22918
- lineNumber: 765,
22919
- columnNumber: 13
23145
+ lineNumber: 772,
23146
+ columnNumber: 15
22920
23147
  }
22921
23148
  }, /*#__PURE__*/React__default.createElement(ImageOutline, {
22922
23149
  style: {
@@ -22927,15 +23154,15 @@ const Upload = ({
22927
23154
  __self: this,
22928
23155
  __source: {
22929
23156
  fileName: _jsxFileName$9,
22930
- lineNumber: 766,
22931
- columnNumber: 15
23157
+ lineNumber: 773,
23158
+ columnNumber: 17
22932
23159
  }
22933
23160
  })), /*#__PURE__*/React__default.createElement(Flex$1, {
22934
23161
  gap: 4,
22935
23162
  __self: this,
22936
23163
  __source: {
22937
23164
  fileName: _jsxFileName$9,
22938
- lineNumber: 772,
23165
+ lineNumber: 780,
22939
23166
  columnNumber: 13
22940
23167
  }
22941
23168
  }, /*#__PURE__*/React__default.createElement(Button$3, {
@@ -22944,7 +23171,7 @@ const Upload = ({
22944
23171
  __self: this,
22945
23172
  __source: {
22946
23173
  fileName: _jsxFileName$9,
22947
- lineNumber: 773,
23174
+ lineNumber: 781,
22948
23175
  columnNumber: 15
22949
23176
  }
22950
23177
  }, "Batal"), /*#__PURE__*/React__default.createElement(Button$3, {
@@ -22952,7 +23179,7 @@ const Upload = ({
22952
23179
  __self: this,
22953
23180
  __source: {
22954
23181
  fileName: _jsxFileName$9,
22955
- lineNumber: 776,
23182
+ lineNumber: 784,
22956
23183
  columnNumber: 15
22957
23184
  }
22958
23185
  }, "Simpan")))));
@@ -22968,7 +23195,7 @@ const Upload = ({
22968
23195
  __self: undefined,
22969
23196
  __source: {
22970
23197
  fileName: _jsxFileName$9,
22971
- lineNumber: 785,
23198
+ lineNumber: 793,
22972
23199
  columnNumber: 5
22973
23200
  }
22974
23201
  }, !isFile && renderPicture(), isFile && renderFile(), progress || isLoading ? /*#__PURE__*/React__default.createElement(UploadProgress, {
@@ -22977,7 +23204,7 @@ const Upload = ({
22977
23204
  __self: undefined,
22978
23205
  __source: {
22979
23206
  fileName: _jsxFileName$9,
22980
- lineNumber: 788,
23207
+ lineNumber: 796,
22981
23208
  columnNumber: 32
22982
23209
  }
22983
23210
  }) : renderUpload(), showCropper && renderCropper());
@@ -23107,6 +23334,11 @@ Upload.propTypes = {
23107
23334
  */
23108
23335
  showCropper: PropTypes.bool,
23109
23336
 
23337
+ /**
23338
+ Hidden toggle aspect ratio image cropper.
23339
+ */
23340
+ hiddenToggleAspect: PropTypes.bool,
23341
+
23110
23342
  /**
23111
23343
  The aspect ratio of the crop, e.g. `1` for a square or `16 / 9` for landscape. Omit/pass undefined for a free-form crop.
23112
23344
  */
@@ -23132,6 +23364,11 @@ Upload.propTypes = {
23132
23364
  */
23133
23365
  action: PropTypes.string,
23134
23366
 
23367
+ /**
23368
+ Custom body request to upload action.
23369
+ */
23370
+ customBodyRequest: PropTypes.func,
23371
+
23135
23372
  /**
23136
23373
  Contains an authentication token for upload API.
23137
23374
  */
@@ -27578,7 +27815,8 @@ function EditableTableMobile(props) {
27578
27815
  const {
27579
27816
  instance,
27580
27817
  emptyDataMessage,
27581
- showCheckbox
27818
+ showCheckbox,
27819
+ customRows
27582
27820
  } = props;
27583
27821
  const {
27584
27822
  getTableProps,
@@ -27589,6 +27827,156 @@ function EditableTableMobile(props) {
27589
27827
  state,
27590
27828
  toggleAllRowsExpanded
27591
27829
  } = instance;
27830
+
27831
+ const getCustomRows = (row, renderRow) => {
27832
+ var _a, _b;
27833
+
27834
+ let customStyle = {};
27835
+ let CustomRow;
27836
+ let showInMobile = false;
27837
+
27838
+ if (customRows && customRows(row).length) {
27839
+ for (let i = 0; i < customRows(row).length; i++) {
27840
+ if ((_a = customRows(row)[i]) === null || _a === void 0 ? void 0 : _a.showInMobile) {
27841
+ showInMobile = true;
27842
+ }
27843
+
27844
+ if (customRows(row)[i].predicate) {
27845
+ customStyle = (_b = customRows(row)[i]) === null || _b === void 0 ? void 0 : _b.css;
27846
+
27847
+ CustomRow = () => {
27848
+ var _a;
27849
+
27850
+ return (_a = customRows(row)[i]) === null || _a === void 0 ? void 0 : _a.Row(row.values, renderRow);
27851
+ };
27852
+ }
27853
+ }
27854
+ }
27855
+
27856
+ return {
27857
+ CustomRow,
27858
+ customStyle,
27859
+ showInMobile
27860
+ };
27861
+ };
27862
+
27863
+ const renderTableRow = (row, index, customStyle) => {
27864
+ return jsxs(Fragment, {
27865
+ children: [/*#__PURE__*/createElement$2(TableRow$2, Object.assign({
27866
+ css: customStyle
27867
+ }, row.getRowProps(), {
27868
+ key: `row_mobile_${index}`
27869
+ }), row.cells.map((cell, index) => {
27870
+ var _a, _b;
27871
+
27872
+ const isMobileHeader = (_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.isMobileHeader;
27873
+ const isSelector = ((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.id) === 'selection';
27874
+ return (isMobileHeader || isSelector) && /*#__PURE__*/createElement$2(TableCell$2, Object.assign({}, cell.getCellProps({
27875
+ style: {
27876
+ minWidth: cell.column.minWidth,
27877
+ width: isSelector ? 10 : cell.column.width,
27878
+ maxWidth: isSelector ? 10 : cell.column.maxWidth
27879
+ }
27880
+ }), {
27881
+ key: index
27882
+ }), jsxs(Flex$1, Object.assign({
27883
+ align: "center",
27884
+ justify: "between",
27885
+ css: {
27886
+ cursor: 'pointer',
27887
+ minHeight: 40
27888
+ }
27889
+ }, {
27890
+ children: [jsx(Box, {
27891
+ children: cell.render('Cell')
27892
+ }, void 0), !isSelector && jsx(Flex$1, Object.assign({
27893
+ justify: "center",
27894
+ align: "center",
27895
+ onClick: () => {
27896
+ if (!Object.keys(state.expanded).includes(row.id)) {
27897
+ toggleAllRowsExpanded(false);
27898
+ }
27899
+
27900
+ row.toggleRowExpanded(!row.isExpanded);
27901
+ }
27902
+ }, {
27903
+ children: row.isExpanded ? jsx(ChevronUpOutline, {}, void 0) : jsx(ChevronDownOutline, {}, void 0)
27904
+ }), void 0)]
27905
+ }), void 0));
27906
+ })), /*#__PURE__*/createElement$2(TableRowCollapse, Object.assign({}, row.getRowProps(), {
27907
+ key: `row_mobile_collapse_${index}`,
27908
+ css: {
27909
+ backgroundColor: '$gray50'
27910
+ }
27911
+ }), showCheckbox && jsx(TableCell$2, {}, void 0), jsx(TableCellCollapse, {
27912
+ children: jsx(Collapalse, Object.assign({
27913
+ isOpen: row.isExpanded
27914
+ }, {
27915
+ children: jsx(Flex$1, Object.assign({
27916
+ direction: "column",
27917
+ css: {
27918
+ borderTop: '1pt solid $bgBorder'
27919
+ }
27920
+ }, {
27921
+ children: row.cells.filter(cell => {
27922
+ var _a, _b, _c, _d;
27923
+
27924
+ return typeof ((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.hidden) === 'boolean' ? !((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.hidden) : !((_d = (_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.hidden) === null || _d === void 0 ? void 0 : _d.call(_c, cell));
27925
+ }).map((cell, index) => {
27926
+ var _a, _b, _c, _d;
27927
+
27928
+ const headerRender = (_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.Header;
27929
+ const isMobileHeader = (_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.isMobileHeader;
27930
+ const isSelector = ((_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.id) === 'selection';
27931
+ return !isMobileHeader && !isSelector && jsx(Flex$1, Object.assign({
27932
+ direction: "column",
27933
+ justify: "center",
27934
+ css: {
27935
+ borderBottom: '1pt solid $bgBorder',
27936
+ padding: '10px 12px',
27937
+ minHeight: 52
27938
+ }
27939
+ }, {
27940
+ children: jsxs(Grid, Object.assign({
27941
+ columns: 6,
27942
+ flow: "row",
27943
+ css: {
27944
+ gridRowGap: '$spacing-04',
27945
+ gridColumnGap: '$spacing-04',
27946
+ alignItems: 'center'
27947
+ }
27948
+ }, {
27949
+ children: [jsx(GridItem, Object.assign({
27950
+ colSpan: 3
27951
+ }, {
27952
+ children: jsx(Heading, Object.assign({
27953
+ heading: "headerTable",
27954
+ color: "secondary"
27955
+ }, {
27956
+ children: typeof headerRender === 'string' ? jsxs(Fragment, {
27957
+ children: [headerRender === null || headerRender === void 0 ? void 0 : headerRender.toUpperCase(), ((_d = cell === null || cell === void 0 ? void 0 : cell.column) === null || _d === void 0 ? void 0 : _d.isRequired) ? jsx(Required$2, {
27958
+ children: "*"
27959
+ }, void 0) : '']
27960
+ }, void 0) : headerRender
27961
+ }), void 0)
27962
+ }), void 0), jsx(GridItem, Object.assign({
27963
+ colSpan: 3
27964
+ }, {
27965
+ children: jsx(Flex$1, Object.assign({
27966
+ justify: "end"
27967
+ }, {
27968
+ children: cell.render('Cell')
27969
+ }), void 0)
27970
+ }), void 0)]
27971
+ }), void 0)
27972
+ }), index);
27973
+ })
27974
+ }), void 0)
27975
+ }), void 0)
27976
+ }, void 0))]
27977
+ }, void 0);
27978
+ };
27979
+
27592
27980
  return jsx(TableContainer$2, Object.assign({
27593
27981
  css: props === null || props === void 0 ? void 0 : props.css
27594
27982
  }, {
@@ -27621,117 +28009,17 @@ function EditableTableMobile(props) {
27621
28009
  }, void 0), jsx(TableBody$2, Object.assign({}, getTableBodyProps(), {
27622
28010
  children: rows.map((row, index) => {
27623
28011
  prepareRow(row);
27624
- return jsxs(React__default.Fragment, {
27625
- children: [/*#__PURE__*/createElement$2(TableRow$2, Object.assign({}, row.getRowProps(), {
27626
- key: `row_mobile_${index}`
27627
- }), row.cells.map((cell, index) => {
27628
- var _a, _b;
27629
-
27630
- const isMobileHeader = (_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.isMobileHeader;
27631
- const isSelector = ((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.id) === 'selection';
27632
- return (isMobileHeader || isSelector) && /*#__PURE__*/createElement$2(TableCell$2, Object.assign({}, cell.getCellProps({
27633
- style: {
27634
- minWidth: cell.column.minWidth,
27635
- width: isSelector ? 10 : cell.column.width,
27636
- maxWidth: isSelector ? 10 : cell.column.maxWidth
27637
- }
27638
- }), {
27639
- key: index
27640
- }), jsxs(Flex$1, Object.assign({
27641
- align: "center",
27642
- justify: "between",
27643
- css: {
27644
- cursor: 'pointer',
27645
- minHeight: 40
27646
- }
27647
- }, {
27648
- children: [jsx(Box, {
27649
- children: cell.render('Cell')
27650
- }, void 0), !isSelector && jsx(Flex$1, Object.assign({
27651
- justify: "center",
27652
- align: "center",
27653
- onClick: () => {
27654
- if (!Object.keys(state.expanded).includes(row.id)) {
27655
- toggleAllRowsExpanded(false);
27656
- }
27657
-
27658
- row.toggleRowExpanded(!row.isExpanded);
27659
- }
27660
- }, {
27661
- children: row.isExpanded ? jsx(ChevronUpOutline, {}, void 0) : jsx(ChevronDownOutline, {}, void 0)
27662
- }), void 0)]
27663
- }), void 0));
27664
- })), /*#__PURE__*/createElement$2(TableRowCollapse, Object.assign({}, row.getRowProps(), {
27665
- key: `row_mobile_collapse_${index}`,
27666
- css: {
27667
- backgroundColor: '$gray50'
27668
- }
27669
- }), showCheckbox && jsx(TableCell$2, {}, void 0), jsx(TableCellCollapse, {
27670
- children: jsx(Collapalse, Object.assign({
27671
- isOpen: row.isExpanded
27672
- }, {
27673
- children: jsx(Flex$1, Object.assign({
27674
- direction: "column",
27675
- css: {
27676
- borderTop: '1pt solid $bgBorder'
27677
- }
27678
- }, {
27679
- children: row.cells.filter(cell => {
27680
- var _a, _b, _c, _d;
27681
-
27682
- return typeof ((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.hidden) === 'boolean' ? !((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.hidden) : !((_d = (_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.hidden) === null || _d === void 0 ? void 0 : _d.call(_c, cell));
27683
- }).map((cell, index) => {
27684
- var _a, _b, _c, _d;
27685
-
27686
- const headerRender = (_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.Header;
27687
- const isMobileHeader = (_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.isMobileHeader;
27688
- const isSelector = ((_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.id) === 'selection';
27689
- return !isMobileHeader && !isSelector && jsx(Flex$1, Object.assign({
27690
- direction: "column",
27691
- justify: "center",
27692
- css: {
27693
- borderBottom: '1pt solid $bgBorder',
27694
- padding: '10px 12px',
27695
- minHeight: 52
27696
- }
27697
- }, {
27698
- children: jsxs(Grid, Object.assign({
27699
- columns: 6,
27700
- flow: "row",
27701
- css: {
27702
- gridRowGap: '$spacing-04',
27703
- gridColumnGap: '$spacing-04',
27704
- alignItems: 'center'
27705
- }
27706
- }, {
27707
- children: [jsx(GridItem, Object.assign({
27708
- colSpan: 3
27709
- }, {
27710
- children: jsx(Heading, Object.assign({
27711
- heading: "headerTable",
27712
- color: "secondary"
27713
- }, {
27714
- children: typeof headerRender === 'string' ? jsxs(Fragment, {
27715
- children: [headerRender === null || headerRender === void 0 ? void 0 : headerRender.toUpperCase(), ((_d = cell === null || cell === void 0 ? void 0 : cell.column) === null || _d === void 0 ? void 0 : _d.isRequired) ? jsx(Required$2, {
27716
- children: "*"
27717
- }, void 0) : '']
27718
- }, void 0) : headerRender
27719
- }), void 0)
27720
- }), void 0), jsx(GridItem, Object.assign({
27721
- colSpan: 3
27722
- }, {
27723
- children: jsx(Flex$1, Object.assign({
27724
- justify: "end"
27725
- }, {
27726
- children: cell.render('Cell')
27727
- }), void 0)
27728
- }), void 0)]
27729
- }), void 0)
27730
- }), index);
27731
- })
27732
- }), void 0)
27733
- }), void 0)
27734
- }, void 0))]
28012
+ const {
28013
+ customStyle
28014
+ } = getCustomRows(row);
28015
+ const {
28016
+ CustomRow,
28017
+ showInMobile
28018
+ } = getCustomRows(row, () => renderTableRow(row, index, customStyle));
28019
+ return jsx(React__default.Fragment, {
28020
+ children: CustomRow && showInMobile ? jsx(CustomRow, {
28021
+ style: customStyle
28022
+ }, void 0) : renderTableRow(row, index, customStyle)
27735
28023
  }, index);
27736
28024
  })
27737
28025
  }), void 0), rows.length < 1 && jsx(TableFoot$1, {
@@ -28133,6 +28421,67 @@ function EditableTable(props) {
28133
28421
  }
28134
28422
  }, [selectedRowIds, data, onSelectedChange, selectedIndex]);
28135
28423
  const isDesktop = useMediaQuery('(min-width: 767px)');
28424
+
28425
+ const getCustomRows = (row, renderRow) => {
28426
+ var _a;
28427
+
28428
+ let customStyle = {};
28429
+ let CustomRow;
28430
+
28431
+ if (customRows && customRows(row).length) {
28432
+ for (let i = 0; i < customRows(row).length; i++) {
28433
+ if (customRows(row)[i].predicate) {
28434
+ customStyle = (_a = customRows(row)[i]) === null || _a === void 0 ? void 0 : _a.css;
28435
+
28436
+ CustomRow = () => {
28437
+ var _a;
28438
+
28439
+ return (_a = customRows(row)[i]) === null || _a === void 0 ? void 0 : _a.Row(row.values, renderRow);
28440
+ };
28441
+ }
28442
+ }
28443
+ }
28444
+
28445
+ return {
28446
+ CustomRow,
28447
+ customStyle
28448
+ };
28449
+ };
28450
+
28451
+ const renderTableRow = (row, customStyle) => {
28452
+ return jsx(TableRow$1, Object.assign({
28453
+ css: customStyle
28454
+ }, row.getRowProps(), {
28455
+ children: row.cells.filter(cell => {
28456
+ var _a, _b, _c, _d, _e;
28457
+
28458
+ return !((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.isSubRow) && (typeof ((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.hidden) === 'boolean' ? !((_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.hidden) : !((_e = (_d = cell === null || cell === void 0 ? void 0 : cell.column) === null || _d === void 0 ? void 0 : _d.hidden) === null || _e === void 0 ? void 0 : _e.call(_d, cell)));
28459
+ }).map(cell => {
28460
+ var _a;
28461
+
28462
+ return !((_a = cell.column) === null || _a === void 0 ? void 0 : _a.isMobileOnly) && jsx(TableCell$1, Object.assign({}, cell.getCellProps({
28463
+ style: {
28464
+ minWidth: cell.column.minWidth,
28465
+ width: cell.column.width,
28466
+ maxWidth: cell.column.maxWidth
28467
+ }
28468
+ }), {
28469
+ css: {
28470
+ '@md': {
28471
+ height: rowHeight
28472
+ }
28473
+ }
28474
+ }, {
28475
+ children: jsx(TableCellContent$1, Object.assign({
28476
+ align: align
28477
+ }, {
28478
+ children: cell.render('Cell')
28479
+ }), void 0)
28480
+ }), void 0);
28481
+ })
28482
+ }), void 0);
28483
+ };
28484
+
28136
28485
  return isDesktop ? jsx(TableContainer$1, Object.assign({
28137
28486
  css: props === null || props === void 0 ? void 0 : props.css
28138
28487
  }, {
@@ -28160,62 +28509,19 @@ function EditableTable(props) {
28160
28509
  })
28161
28510
  }, void 0), jsx(TableBody$1, Object.assign({}, getTableBodyProps(), {
28162
28511
  children: rows.map((row, index) => {
28163
- var _a;
28164
-
28165
28512
  prepareRow(row);
28166
28513
  const subRowCells = row.cells.filter(cell => cell.column.isSubRow);
28167
28514
  const notNullHeaderColumns = visibleColumns.filter(column => typeof column.Header !== 'function' && column.Header !== null && !column.isSubRow);
28168
- let customStyle = {};
28169
- let CustomRow;
28170
-
28171
- if (customRows && customRows(row).length) {
28172
- for (let i = 0; i < customRows(row).length; i++) {
28173
- if (customRows(row)[i].predicate) {
28174
- customStyle = (_a = customRows(row)[i]) === null || _a === void 0 ? void 0 : _a.css;
28175
-
28176
- CustomRow = () => {
28177
- var _a;
28178
-
28179
- return (_a = customRows(row)[i]) === null || _a === void 0 ? void 0 : _a.Row(row.values);
28180
- };
28181
- }
28182
- }
28183
- }
28184
-
28515
+ const {
28516
+ customStyle
28517
+ } = getCustomRows(row);
28518
+ const {
28519
+ CustomRow
28520
+ } = getCustomRows(row, () => renderTableRow(row, customStyle));
28185
28521
  return jsxs(React__default.Fragment, {
28186
28522
  children: [CustomRow ? jsx(CustomRow, {
28187
28523
  style: customStyle
28188
- }, void 0) : jsx(TableRow$1, Object.assign({
28189
- css: customStyle
28190
- }, row.getRowProps(), {
28191
- children: row.cells.filter(cell => {
28192
- var _a, _b, _c, _d, _e;
28193
-
28194
- return !((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.isSubRow) && (typeof ((_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.hidden) === 'boolean' ? !((_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.hidden) : !((_e = (_d = cell === null || cell === void 0 ? void 0 : cell.column) === null || _d === void 0 ? void 0 : _d.hidden) === null || _e === void 0 ? void 0 : _e.call(_d, cell)));
28195
- }).map(cell => {
28196
- var _a;
28197
-
28198
- return !((_a = cell.column) === null || _a === void 0 ? void 0 : _a.isMobileOnly) && jsx(TableCell$1, Object.assign({}, cell.getCellProps({
28199
- style: {
28200
- minWidth: cell.column.minWidth,
28201
- width: cell.column.width,
28202
- maxWidth: cell.column.maxWidth
28203
- }
28204
- }), {
28205
- css: {
28206
- '@md': {
28207
- height: rowHeight
28208
- }
28209
- }
28210
- }, {
28211
- children: jsx(TableCellContent$1, Object.assign({
28212
- align: align
28213
- }, {
28214
- children: cell.render('Cell')
28215
- }), void 0)
28216
- }), void 0);
28217
- })
28218
- }), void 0), subRowCells.map(cell => {
28524
+ }, void 0) : renderTableRow(row, customStyle), subRowCells.map(cell => {
28219
28525
  var _a;
28220
28526
 
28221
28527
  return jsx(TableRow$1, Object.assign({
@@ -28286,7 +28592,8 @@ function EditableTable(props) {
28286
28592
  css: props === null || props === void 0 ? void 0 : props.css,
28287
28593
  instance: instance,
28288
28594
  emptyDataMessage: emptyDataMessage,
28289
- showCheckbox: showCheckbox
28595
+ showCheckbox: showCheckbox,
28596
+ customRows: customRows
28290
28597
  }, void 0);
28291
28598
  }
28292
28599
 
@@ -32125,4 +32432,4 @@ const useToggle = initialValue => {
32125
32432
  return useReducer(toggleReducer, initialValue);
32126
32433
  };
32127
32434
 
32128
- 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, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$3 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, 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, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, 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, MajooProvider, MapPicker, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_PICKER, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, SINGLE_PICKER, SelectBox, SelectContainer, SelectInputSearch, SelectItem, SelectOption, Separator$2 as Separator, 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, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptions, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
32435
+ 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, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$3 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, 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, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, 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, MajooProvider, MapPicker, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_PICKER, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, SINGLE_PICKER, SelectBox, SelectContainer, SelectInputSearch, SelectItem, SelectOption, Separator$2 as Separator, 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, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptions, defaultFetchDataParams, pickerReducer, useListOption, useToggle };