@ctlyst.id/internal-ui 1.0.2-canary.4 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
7
  var react = require('@chakra-ui/react');
8
- var React$1 = require('react');
9
- var React$1__default = _interopDefault(React$1);
8
+ var React = require('react');
9
+ var React__default = _interopDefault(React);
10
10
  var fi = require('react-icons/fi');
11
11
  var icons = require('@chakra-ui/icons');
12
12
  var react$1 = require('@emotion/react');
@@ -16,8 +16,8 @@ var ReactDatePicker = _interopDefault(require('react-datepicker'));
16
16
  var system = require('@chakra-ui/system');
17
17
  var ReactSelect = _interopDefault(require('react-select'));
18
18
  var reactSelectAsyncPaginate = require('react-select-async-paginate');
19
- var ReactSelectCreatable = _interopDefault(require('react-select/creatable'));
20
19
  var ReactSelectAsyncCreatable = _interopDefault(require('react-select/async-creatable'));
20
+ var ReactSelectCreatable = _interopDefault(require('react-select/creatable'));
21
21
  var reactDropzone = require('react-dropzone');
22
22
  var themeTools = require('@chakra-ui/theme-tools');
23
23
  var anatomy = require('@chakra-ui/anatomy');
@@ -35,27 +35,27 @@ const BreadCrumb = props => {
35
35
  spacing = 2
36
36
  } = props;
37
37
  const [neutral7, dark5] = react.useToken('colors', ['neutral.700', 'dark.500']);
38
- return /*#__PURE__*/React$1.createElement(react.Box, {
38
+ return /*#__PURE__*/React.createElement(react.Box, {
39
39
  "data-test-id": "CT_component_breadcrumb_breadcrumb",
40
40
  className: className,
41
41
  display: "flex",
42
42
  justifyContent: "space-between",
43
43
  alignItems: "center",
44
44
  paddingY: 2
45
- }, /*#__PURE__*/React$1.createElement(react.Box, {
45
+ }, /*#__PURE__*/React.createElement(react.Box, {
46
46
  display: "flex",
47
47
  alignItems: "center"
48
- }, /*#__PURE__*/React$1.createElement(react.Text, {
48
+ }, /*#__PURE__*/React.createElement(react.Text, {
49
49
  pr: 2,
50
50
  fontWeight: 500,
51
51
  textStyle: "heading.3",
52
52
  color: react.useColorModeValue('neutral.700', 'white')
53
- }, title), /*#__PURE__*/React$1.createElement(react.Box, {
53
+ }, title), /*#__PURE__*/React.createElement(react.Box, {
54
54
  h: "22px",
55
55
  borderLeft: "1px solid",
56
56
  borderColor: react.useColorModeValue('neutral.700', 'white')
57
- }), /*#__PURE__*/React$1.createElement(react.Breadcrumb, {
58
- separator: /*#__PURE__*/React$1.createElement(fi.FiChevronsRight, {
57
+ }), /*#__PURE__*/React.createElement(react.Breadcrumb, {
58
+ separator: /*#__PURE__*/React.createElement(fi.FiChevronsRight, {
59
59
  color: react.useColorModeValue(neutral7, dark5),
60
60
  size: 14
61
61
  }),
@@ -71,20 +71,20 @@ const BreadCrumb = props => {
71
71
  display: "flex",
72
72
  alignItems: "center",
73
73
  className: "breadcrumb-wrapper"
74
- }, /*#__PURE__*/React$1.createElement(react.BreadcrumbItem, null, /*#__PURE__*/React$1.createElement(react.BreadcrumbLink, {
74
+ }, /*#__PURE__*/React.createElement(react.BreadcrumbItem, null, /*#__PURE__*/React.createElement(react.BreadcrumbLink, {
75
75
  href: !disableHome ? '/' : undefined,
76
76
  style: {
77
77
  ...(disableHome && {
78
78
  cursor: 'default'
79
79
  })
80
80
  }
81
- }, /*#__PURE__*/React$1.createElement(fi.FiHome, {
81
+ }, /*#__PURE__*/React.createElement(fi.FiHome, {
82
82
  className: "align-top",
83
83
  size: 16,
84
84
  color: react.useColorModeValue('#12784A', '#ffffff')
85
- }))), parents === null || parents === void 0 ? void 0 : parents.map(val => /*#__PURE__*/React$1.createElement(react.BreadcrumbItem, {
85
+ }))), parents === null || parents === void 0 ? void 0 : parents.map(val => /*#__PURE__*/React.createElement(react.BreadcrumbItem, {
86
86
  key: val.name
87
- }, /*#__PURE__*/React$1.createElement(react.BreadcrumbLink, {
87
+ }, /*#__PURE__*/React.createElement(react.BreadcrumbLink, {
88
88
  "data-test-id": "iadKcMAul3QAdvmfIQjRE",
89
89
  href: !val.disable ? val.link : undefined,
90
90
  onClick: val.onClick,
@@ -96,20 +96,20 @@ const BreadCrumb = props => {
96
96
  _hover: {
97
97
  textDecoration: 'none'
98
98
  }
99
- }, /*#__PURE__*/React$1.createElement(react.Text, {
99
+ }, /*#__PURE__*/React.createElement(react.Text, {
100
100
  color: val.disable ? 'dark.600' : react.useColorModeValue('primary.500', 'white'),
101
101
  fontSize: "text.sm",
102
102
  fontWeight: 400
103
- }, val.name)))), /*#__PURE__*/React$1.createElement(react.BreadcrumbItem, null, /*#__PURE__*/React$1.createElement(react.BreadcrumbLink, {
103
+ }, val.name)))), /*#__PURE__*/React.createElement(react.BreadcrumbItem, null, /*#__PURE__*/React.createElement(react.BreadcrumbLink, {
104
104
  _hover: {
105
105
  textDecor: 'none',
106
106
  cursor: 'default'
107
107
  }
108
- }, /*#__PURE__*/React$1.createElement(react.Text, {
108
+ }, /*#__PURE__*/React.createElement(react.Text, {
109
109
  color: react.useColorModeValue('dark.700', 'white'),
110
110
  fontSize: "text.sm",
111
111
  fontWeight: 400
112
- }, title))))), children && /*#__PURE__*/React$1.createElement(react.Box, null, children));
112
+ }, title))))), children && /*#__PURE__*/React.createElement(react.Box, null, children));
113
113
  };
114
114
  BreadCrumb.defaultProps = {
115
115
  children: undefined,
@@ -123,15 +123,15 @@ const IndeterminateCheckbox = ({
123
123
  indeterminate = false,
124
124
  ...rest
125
125
  }) => {
126
- const ref = React$1.useRef(null);
127
- React$1.useEffect(() => {
126
+ const ref = React.useRef(null);
127
+ React.useEffect(() => {
128
128
  if (ref.current && typeof indeterminate === 'boolean') {
129
129
  ref.current.indeterminate = !rest.checked && indeterminate;
130
130
  }
131
131
  }, [ref, indeterminate]);
132
- return /*#__PURE__*/React$1.createElement(react.Flex, {
132
+ return /*#__PURE__*/React.createElement(react.Flex, {
133
133
  align: "center"
134
- }, /*#__PURE__*/React$1.createElement("input", Object.assign({
134
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
135
135
  type: "checkbox",
136
136
  ref: ref
137
137
  }, rest)));
@@ -150,21 +150,21 @@ const DataTable = ({
150
150
  styles,
151
151
  ...props
152
152
  }) => {
153
- const [sorting, setSorting] = React$1.useState(sortingState !== null && sortingState !== void 0 ? sortingState : []);
154
- const [rowSelection, onRowSelectionChange] = React$1.useState({});
155
- const dataColumns = React$1.useMemo(() => columns, [columns]);
156
- const checkboxColumn = React$1.useMemo(() => [{
153
+ const [sorting, setSorting] = React.useState(sortingState !== null && sortingState !== void 0 ? sortingState : []);
154
+ const [rowSelection, onRowSelectionChange] = React.useState({});
155
+ const dataColumns = React.useMemo(() => columns, [columns]);
156
+ const checkboxColumn = React.useMemo(() => [{
157
157
  id: 'select',
158
158
  header: ({
159
159
  table
160
- }) => /*#__PURE__*/React$1.createElement(IndeterminateCheckbox, Object.assign({}, {
160
+ }) => /*#__PURE__*/React.createElement(IndeterminateCheckbox, Object.assign({}, {
161
161
  checked: table.getIsAllRowsSelected(),
162
162
  indeterminate: table.getIsSomeRowsSelected(),
163
163
  onChange: table.getToggleAllRowsSelectedHandler()
164
164
  })),
165
165
  cell: ({
166
166
  row
167
- }) => /*#__PURE__*/React$1.createElement(IndeterminateCheckbox, Object.assign({}, {
167
+ }) => /*#__PURE__*/React.createElement(IndeterminateCheckbox, Object.assign({}, {
168
168
  checked: row.getIsSelected(),
169
169
  indeterminate: row.getIsSomeSelected(),
170
170
  onChange: row.getToggleSelectedHandler()
@@ -200,13 +200,13 @@ const DataTable = ({
200
200
  const {
201
201
  flatRows
202
202
  } = table.getSelectedRowModel();
203
- React$1.useEffect(() => {
203
+ React.useEffect(() => {
204
204
  const rowData = flatRows.map(row => row.original);
205
205
  if (onSelectedRow) {
206
206
  onSelectedRow(rowData);
207
207
  }
208
208
  }, [flatRows]);
209
- return /*#__PURE__*/React$1.createElement(react.Box, Object.assign({}, props), isLoading && /*#__PURE__*/React$1.createElement(react.Flex, {
209
+ return /*#__PURE__*/React.createElement(react.Box, Object.assign({}, props), isLoading && /*#__PURE__*/React.createElement(react.Flex, {
210
210
  w: "100%",
211
211
  h: "100%",
212
212
  pos: "absolute",
@@ -214,42 +214,42 @@ const DataTable = ({
214
214
  align: "center",
215
215
  justify: "center",
216
216
  zIndex: 2
217
- }, /*#__PURE__*/React$1.createElement(react.Spinner, {
217
+ }, /*#__PURE__*/React.createElement(react.Spinner, {
218
218
  color: "primary.500",
219
219
  thickness: "4px",
220
220
  size: "lg"
221
- })), /*#__PURE__*/React$1.createElement(react.Table, Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.table), /*#__PURE__*/React$1.createElement(react.Thead, Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.tableHead), table.getHeaderGroups().map(headerGroup => /*#__PURE__*/React$1.createElement(react.Tr, Object.assign({
221
+ })), /*#__PURE__*/React.createElement(react.Table, Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.table), /*#__PURE__*/React.createElement(react.Thead, Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.tableHead), table.getHeaderGroups().map(headerGroup => /*#__PURE__*/React.createElement(react.Tr, Object.assign({
222
222
  key: headerGroup.id,
223
223
  bg: react.useColorModeValue('initial', 'ebony-clay.700')
224
224
  }, styles === null || styles === void 0 ? void 0 : styles.tableRow), headerGroup.headers.map(header => {
225
225
  var _ref;
226
- return /*#__PURE__*/React$1.createElement(react.Th, Object.assign({
226
+ return /*#__PURE__*/React.createElement(react.Th, Object.assign({
227
227
  key: header.id,
228
228
  colSpan: header.colSpan
229
- }, styles === null || styles === void 0 ? void 0 : styles.tableColumnHeader), /*#__PURE__*/React$1.createElement(react.Flex, {
229
+ }, styles === null || styles === void 0 ? void 0 : styles.tableColumnHeader), /*#__PURE__*/React.createElement(react.Flex, {
230
230
  "data-test-id": `CT_Container_TableHeader_${header.id}`,
231
231
  textTransform: "capitalize",
232
232
  userSelect: "none",
233
233
  align: "center",
234
- justifyContent: "space-between",
235
- onClick: header.column.getToggleSortingHandler(),
236
- cursor: header.column.getCanSort() ? 'pointer' : 'default'
237
- }, /*#__PURE__*/React$1.createElement(react.Text, {
234
+ justifyContent: "space-between"
235
+ }, /*#__PURE__*/React.createElement(react.Text, {
238
236
  fontSize: "text.sm",
239
237
  fontWeight: 400,
240
238
  lineHeight: "18px",
241
239
  color: react.useColorModeValue('neutral.900', 'white')
242
- }, reactTable.flexRender(header.column.columnDef.header, header.getContext())), /*#__PURE__*/React$1.createElement(react.Box, {
240
+ }, reactTable.flexRender(header.column.columnDef.header, header.getContext())), /*#__PURE__*/React.createElement(react.Box, {
243
241
  as: "span",
244
242
  pl: "2",
245
- "data-test-id": `CT_Container_SortingIcon_${header.id}`
243
+ cursor: header.column.getCanSort() ? 'pointer' : 'default',
244
+ "data-test-id": `CT_Container_SortingIcon_${header.id}`,
245
+ onClick: header.column.getToggleSortingHandler()
246
246
  }, (_ref = header.column.getCanSort() && {
247
- asc: /*#__PURE__*/React$1.createElement(icons.ChevronUpIcon, null),
248
- desc: /*#__PURE__*/React$1.createElement(icons.ChevronDownIcon, null)
249
- }[header.column.getIsSorted()]) !== null && _ref !== void 0 ? _ref : /*#__PURE__*/React$1.createElement(icons.UpDownIcon, {
247
+ asc: /*#__PURE__*/React.createElement(icons.ChevronUpIcon, null),
248
+ desc: /*#__PURE__*/React.createElement(icons.ChevronDownIcon, null)
249
+ }[header.column.getIsSorted()]) !== null && _ref !== void 0 ? _ref : /*#__PURE__*/React.createElement(icons.UpDownIcon, {
250
250
  h: 2
251
251
  }))));
252
- })))), /*#__PURE__*/React$1.createElement(react.Tbody, Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.tableBody), table.getRowModel().rows.map(row => /*#__PURE__*/React$1.createElement(react.Tr, Object.assign({
252
+ })))), /*#__PURE__*/React.createElement(react.Tbody, Object.assign({}, styles === null || styles === void 0 ? void 0 : styles.tableBody), table.getRowModel().rows.map(row => /*#__PURE__*/React.createElement(react.Tr, Object.assign({
253
253
  key: row.id
254
254
  }, styles === null || styles === void 0 ? void 0 : styles.tableRow, {
255
255
  css: react$1.css`
@@ -259,7 +259,7 @@ const DataTable = ({
259
259
  }
260
260
  }
261
261
  `
262
- }), row.getVisibleCells().map(cell => /*#__PURE__*/React$1.createElement(react.Td, Object.assign({
262
+ }), row.getVisibleCells().map(cell => /*#__PURE__*/React.createElement(react.Td, Object.assign({
263
263
  key: cell.id,
264
264
  fontSize: "text.sm",
265
265
  color: react.useColorModeValue('dark.800', 'dark.300')
@@ -285,7 +285,7 @@ const Styles = () => {
285
285
  const {
286
286
  colorMode
287
287
  } = system.useColorMode();
288
- return React.createElement(react$1.Global, {
288
+ return /*#__PURE__*/React__default.createElement(react$1.Global, {
289
289
  styles: `
290
290
  @charset "UTF-8";
291
291
  .react-datepicker__year-read-view--down-arrow,
@@ -1093,33 +1093,33 @@ const TimeInput = ({
1093
1093
  label,
1094
1094
  rightAddon
1095
1095
  }) => {
1096
- const [time, setTime] = React$1__default.useState(value || '00:00');
1096
+ const [time, setTime] = React__default.useState(value || '00:00');
1097
1097
  const handleChange = e => {
1098
1098
  var _e$target;
1099
1099
  setTime(((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || '00:00');
1100
1100
  };
1101
- React$1__default.useEffect(() => {
1101
+ React__default.useEffect(() => {
1102
1102
  if (onChange) {
1103
1103
  onChange(time);
1104
1104
  }
1105
1105
  }, [time]);
1106
- return /*#__PURE__*/React$1__default.createElement(react.Flex, {
1106
+ return /*#__PURE__*/React__default.createElement(react.Flex, {
1107
1107
  flexDir: "column",
1108
1108
  alignItems: "center",
1109
1109
  justifyContent: "center",
1110
1110
  p: 4,
1111
1111
  pt: 0
1112
- }, /*#__PURE__*/React$1__default.createElement(react.Text, {
1112
+ }, /*#__PURE__*/React__default.createElement(react.Text, {
1113
1113
  mb: 2
1114
- }, label), /*#__PURE__*/React$1__default.createElement(react.InputGroup, {
1114
+ }, label), /*#__PURE__*/React__default.createElement(react.InputGroup, {
1115
1115
  alignItems: "center",
1116
1116
  justifyContent: "center"
1117
- }, /*#__PURE__*/React$1__default.createElement(react.Input, {
1117
+ }, /*#__PURE__*/React__default.createElement(react.Input, {
1118
1118
  onChange: handleChange,
1119
1119
  type: "time",
1120
1120
  value: time,
1121
1121
  "data-test-id": "CT_Component_datepicker_input_time"
1122
- }), rightAddon && /*#__PURE__*/React$1__default.createElement(react.InputRightAddon, null, rightAddon)));
1122
+ }), rightAddon && /*#__PURE__*/React__default.createElement(react.InputRightAddon, null, rightAddon)));
1123
1123
  };
1124
1124
  TimeInput.displayName = 'DatepickerTimeInput';
1125
1125
  TimeInput.defaultProps = {
@@ -1152,14 +1152,14 @@ const Datepicker = ({
1152
1152
  return {
1153
1153
  timeInputLabel: '',
1154
1154
  showTimeInput: true,
1155
- customTimeInput: /*#__PURE__*/React$1__default.createElement(TimeInput, null)
1155
+ customTimeInput: /*#__PURE__*/React__default.createElement(TimeInput, null)
1156
1156
  };
1157
1157
  };
1158
- const component = /*#__PURE__*/React$1__default.createElement(React$1__default.Fragment, null, /*#__PURE__*/React$1__default.createElement(Styles, null), /*#__PURE__*/React$1__default.createElement(ReactDatePicker, Object.assign({
1158
+ const component = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Styles, null), /*#__PURE__*/React__default.createElement(ReactDatePicker, Object.assign({
1159
1159
  id: id,
1160
1160
  name: name,
1161
1161
  selected: selected,
1162
- customInput: /*#__PURE__*/React$1__default.createElement(react.Input, {
1162
+ customInput: /*#__PURE__*/React__default.createElement(react.Input, {
1163
1163
  autoComplete: "off"
1164
1164
  }),
1165
1165
  dateFormat: dateFormat,
@@ -1173,16 +1173,16 @@ const Datepicker = ({
1173
1173
  if (props.inline) {
1174
1174
  return component;
1175
1175
  }
1176
- return /*#__PURE__*/React$1__default.createElement(react.FormControl, {
1176
+ return /*#__PURE__*/React__default.createElement(react.FormControl, {
1177
1177
  isRequired: isRequired,
1178
1178
  "data-test-id": "CT_Component_datepicker_wrapper"
1179
- }, label && /*#__PURE__*/React$1__default.createElement(react.FormLabel, {
1179
+ }, label && /*#__PURE__*/React__default.createElement(react.FormLabel, {
1180
1180
  fontSize: "text.sm"
1181
- }, label), /*#__PURE__*/React$1__default.createElement(react.InputGroup, null, component, /*#__PURE__*/React$1__default.createElement(react.InputRightElement, null, !value && /*#__PURE__*/React$1__default.createElement(fi.FiCalendar, null), value && /*#__PURE__*/React$1__default.createElement(fi.FiX, {
1181
+ }, label), /*#__PURE__*/React__default.createElement(react.InputGroup, null, component, /*#__PURE__*/React__default.createElement(react.InputRightElement, null, !value && /*#__PURE__*/React__default.createElement(fi.FiCalendar, null), value && /*#__PURE__*/React__default.createElement(fi.FiX, {
1182
1182
  "data-test-id": "bcpJJyCP0z_RIAGZXDU6s",
1183
1183
  onClick: onClear,
1184
1184
  cursor: "pointer"
1185
- }))), !isError ? /*#__PURE__*/React$1__default.createElement(react.FormHelperText, null, helperText) : /*#__PURE__*/React$1__default.createElement(react.FormErrorMessage, null, error));
1185
+ }))), !isError ? /*#__PURE__*/React__default.createElement(react.FormHelperText, null, helperText) : /*#__PURE__*/React__default.createElement(react.FormErrorMessage, null, error));
1186
1186
  };
1187
1187
  Datepicker.defaultProps = {
1188
1188
  id: undefined,
@@ -1208,19 +1208,19 @@ const Field = props => {
1208
1208
  isRequired,
1209
1209
  children
1210
1210
  } = props;
1211
- return React.createElement(react.FormControl, {
1211
+ return /*#__PURE__*/React__default.createElement(react.FormControl, {
1212
1212
  isInvalid: isError
1213
- }, label && (typeof label === 'string' ? React.createElement(react.FormLabel, {
1213
+ }, label && (typeof label === 'string' ? /*#__PURE__*/React__default.createElement(react.FormLabel, {
1214
1214
  fontSize: "field.sm",
1215
1215
  requiredIndicator: undefined
1216
- }, isRequired && React.createElement(react.Box, {
1216
+ }, isRequired && /*#__PURE__*/React__default.createElement(react.Box, {
1217
1217
  as: "span",
1218
1218
  color: "red.500",
1219
1219
  ml: 0,
1220
1220
  mr: 1
1221
- }, "*"), label) : label), children, !isError ? helperText && React.createElement(react.FormHelperText, {
1221
+ }, "*"), label) : label), children, !isError ? helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, {
1222
1222
  fontSize: "field.sm"
1223
- }, helperText) : typeof error === 'string' ? React.createElement(react.FormErrorMessage, {
1223
+ }, helperText) : typeof error === 'string' ? /*#__PURE__*/React__default.createElement(react.FormErrorMessage, {
1224
1224
  textStyle: "field.sm",
1225
1225
  fontSize: "field.sm",
1226
1226
  mt: 1,
@@ -1235,7 +1235,7 @@ Field.defaultProps = {
1235
1235
  isRequired: false
1236
1236
  };
1237
1237
 
1238
- const InputField = /*#__PURE__*/React$1__default.forwardRef((props, ref) => {
1238
+ const InputField = /*#__PURE__*/React__default.forwardRef((props, ref) => {
1239
1239
  const {
1240
1240
  value,
1241
1241
  type,
@@ -1251,19 +1251,19 @@ const InputField = /*#__PURE__*/React$1__default.forwardRef((props, ref) => {
1251
1251
  helperText,
1252
1252
  ...inputProps
1253
1253
  } = props;
1254
- return /*#__PURE__*/React$1__default.createElement(Field, {
1254
+ return /*#__PURE__*/React__default.createElement(Field, {
1255
1255
  label: label,
1256
1256
  isError: isError,
1257
1257
  error: error,
1258
1258
  helperText: helperText,
1259
1259
  isRequired: isRequired
1260
- }, /*#__PURE__*/React$1__default.createElement(react.InputGroup, {
1260
+ }, /*#__PURE__*/React__default.createElement(react.InputGroup, {
1261
1261
  size: size
1262
- }, addOnLeft && /*#__PURE__*/React$1__default.createElement(react.InputLeftAddon, null, addOnLeft), elementLeft && /*#__PURE__*/React$1__default.createElement(react.InputLeftElement, null, elementLeft), /*#__PURE__*/React$1__default.createElement(react.Input, Object.assign({
1262
+ }, addOnLeft && /*#__PURE__*/React__default.createElement(react.InputLeftAddon, null, addOnLeft), elementLeft && /*#__PURE__*/React__default.createElement(react.InputLeftElement, null, elementLeft), /*#__PURE__*/React__default.createElement(react.Input, Object.assign({
1263
1263
  ref: ref,
1264
1264
  type: type,
1265
1265
  value: value
1266
- }, inputProps)), addOnRight && /*#__PURE__*/React$1__default.createElement(react.InputRightAddon, null, addOnRight), elementRight && /*#__PURE__*/React$1__default.createElement(react.InputRightElement, null, elementRight)));
1266
+ }, inputProps)), addOnRight && /*#__PURE__*/React__default.createElement(react.InputRightAddon, null, addOnRight), elementRight && /*#__PURE__*/React__default.createElement(react.InputRightElement, null, elementRight)));
1267
1267
  });
1268
1268
  InputField.defaultProps = {
1269
1269
  addOnLeft: undefined,
@@ -1272,12 +1272,12 @@ InputField.defaultProps = {
1272
1272
  elementRight: undefined
1273
1273
  };
1274
1274
 
1275
- const TextareaField = /*#__PURE__*/React$1__default.forwardRef((props, ref) => {
1275
+ const TextareaField = /*#__PURE__*/React__default.forwardRef((props, ref) => {
1276
1276
  const {
1277
1277
  value,
1278
1278
  ...inputProps
1279
1279
  } = props;
1280
- return /*#__PURE__*/React$1__default.createElement(Field, Object.assign({}, inputProps), /*#__PURE__*/React$1__default.createElement(react.Textarea, Object.assign({
1280
+ return /*#__PURE__*/React__default.createElement(Field, Object.assign({}, inputProps), /*#__PURE__*/React__default.createElement(react.Textarea, Object.assign({
1281
1281
  ref: ref,
1282
1282
  value: value
1283
1283
  }, inputProps)));
@@ -1289,11 +1289,11 @@ TextareaField.defaultProps = {
1289
1289
  elementRight: undefined
1290
1290
  };
1291
1291
 
1292
- const XMSLogo = () => React.createElement(react.Image, {
1292
+ const XMSLogo = () => /*#__PURE__*/React__default.createElement(react.Image, {
1293
1293
  height: 8,
1294
1294
  src: react.useColorModeValue('https://assets.voila.id/xms/logo-xms.jpg', 'https://assets.voila.id/xms/logo-xms-dark.png')
1295
1295
  });
1296
- const VoilaLogo = () => React.createElement(react.Image, {
1296
+ const VoilaLogo = () => /*#__PURE__*/React__default.createElement(react.Image, {
1297
1297
  src: "https://s3.ap-southeast-1.amazonaws.com/assets.voila.id/xms/logo-voila-black.png?v=1",
1298
1298
  filter: react.useColorModeValue('none', 'invert(1)'),
1299
1299
  maxW: 24
@@ -1309,11 +1309,11 @@ const Profile = ({
1309
1309
  onToggle,
1310
1310
  onClose
1311
1311
  } = react.useDisclosure();
1312
- return /*#__PURE__*/React$1.createElement(react.Popover, {
1312
+ return /*#__PURE__*/React.createElement(react.Popover, {
1313
1313
  placement: "bottom-end",
1314
1314
  isOpen: isOpen,
1315
1315
  onClose: onClose
1316
- }, /*#__PURE__*/React$1.createElement(react.Box, {
1316
+ }, /*#__PURE__*/React.createElement(react.Box, {
1317
1317
  "data-test-id": "WE0UYbA93LOZy6S09IhDO",
1318
1318
  as: "button",
1319
1319
  cursor: 'pointer',
@@ -1323,38 +1323,38 @@ const Profile = ({
1323
1323
  },
1324
1324
  m: 0,
1325
1325
  onClick: onToggle
1326
- }, /*#__PURE__*/React$1.createElement(react.HStack, null, /*#__PURE__*/React$1.createElement(react.VStack, {
1326
+ }, /*#__PURE__*/React.createElement(react.HStack, null, /*#__PURE__*/React.createElement(react.VStack, {
1327
1327
  alignItems: "flex-end",
1328
1328
  spacing: -0.5,
1329
1329
  ml: "2"
1330
- }, /*#__PURE__*/React$1.createElement(react.Text, {
1330
+ }, /*#__PURE__*/React.createElement(react.Text, {
1331
1331
  fontSize: "text.xs",
1332
1332
  mb: 1,
1333
1333
  fontWeight: 400,
1334
1334
  lineHeight: "14px",
1335
1335
  color: react.useColorModeValue('neutral.800', 'white')
1336
- }, data === null || data === void 0 ? void 0 : data.email), /*#__PURE__*/React$1.createElement(react.Text, {
1336
+ }, data === null || data === void 0 ? void 0 : data.email), /*#__PURE__*/React.createElement(react.Text, {
1337
1337
  fontSize: "text.xs",
1338
1338
  fontWeight: 400,
1339
1339
  lineHeight: "14px",
1340
1340
  color: react.useColorModeValue('primary.500', 'success.400')
1341
- }, (data === null || data === void 0 ? void 0 : data.office) && /*#__PURE__*/React$1.createElement(react.Text, {
1341
+ }, (data === null || data === void 0 ? void 0 : data.office) && /*#__PURE__*/React.createElement(react.Text, {
1342
1342
  color: "neutral.700",
1343
1343
  display: "inline-block",
1344
1344
  mr: 0.5
1345
- }, data.office, " |", ' '), data === null || data === void 0 ? void 0 : data.userRole)), /*#__PURE__*/React$1.createElement(react.PopoverTrigger, null, /*#__PURE__*/React$1.createElement(react.Avatar, {
1345
+ }, data.office, " |", ' '), data === null || data === void 0 ? void 0 : data.userRole)), /*#__PURE__*/React.createElement(react.PopoverTrigger, null, /*#__PURE__*/React.createElement(react.Avatar, {
1346
1346
  size: 'sm',
1347
1347
  bg: "primary.500",
1348
1348
  color: "white",
1349
1349
  name: (_data$name = data === null || data === void 0 ? void 0 : data.name) !== null && _data$name !== void 0 ? _data$name : data === null || data === void 0 ? void 0 : data.email
1350
- })))), /*#__PURE__*/React$1.createElement(react.PopoverContent, {
1350
+ })))), /*#__PURE__*/React.createElement(react.PopoverContent, {
1351
1351
  bg: react.useColorModeValue('white', 'mirage.900'),
1352
1352
  maxW: 200
1353
- }, /*#__PURE__*/React$1.createElement(react.PopoverArrow, {
1353
+ }, /*#__PURE__*/React.createElement(react.PopoverArrow, {
1354
1354
  bg: react.useColorModeValue('white', 'mirage.900')
1355
- }), /*#__PURE__*/React$1.createElement(react.PopoverBody, {
1355
+ }), /*#__PURE__*/React.createElement(react.PopoverBody, {
1356
1356
  p: 1
1357
- }, /*#__PURE__*/React$1.createElement(react.Flex, {
1357
+ }, /*#__PURE__*/React.createElement(react.Flex, {
1358
1358
  "data-test-id": "gA7F9pucPX_Q3_dkgXIYZ",
1359
1359
  alignItems: "center",
1360
1360
  px: 3,
@@ -1367,7 +1367,7 @@ const Profile = ({
1367
1367
  },
1368
1368
  onClick: onLogout,
1369
1369
  fontSize: "text.xs"
1370
- }, /*#__PURE__*/React$1.createElement(fi.FiPower, null), /*#__PURE__*/React$1.createElement(react.Text, {
1370
+ }, /*#__PURE__*/React.createElement(fi.FiPower, null), /*#__PURE__*/React.createElement(react.Text, {
1371
1371
  ml: 2
1372
1372
  }, "Logout")))));
1373
1373
  };
@@ -1381,13 +1381,14 @@ const SwitchMode = () => {
1381
1381
  colorMode,
1382
1382
  toggleColorMode
1383
1383
  } = react.useColorMode();
1384
- return /*#__PURE__*/React$1.createElement(react.Box, {
1384
+ return /*#__PURE__*/React.createElement(react.Box, {
1385
+ "data-test-id": "rhYuTDCiWkFqr96upiEEh",
1385
1386
  mx: 5,
1386
1387
  onClick: toggleColorMode,
1387
1388
  cursor: "pointer"
1388
- }, colorMode === 'light' ? /*#__PURE__*/React$1.createElement(fi.FiMoon, {
1389
+ }, colorMode === 'light' ? /*#__PURE__*/React.createElement(fi.FiMoon, {
1389
1390
  size: 20
1390
- }) : /*#__PURE__*/React$1.createElement(fi.FiSun, {
1391
+ }) : /*#__PURE__*/React.createElement(fi.FiSun, {
1391
1392
  size: 20
1392
1393
  }));
1393
1394
  };
@@ -1409,7 +1410,7 @@ const Version = ({
1409
1410
  version,
1410
1411
  environment,
1411
1412
  onOpenModalRelease
1412
- }) => /*#__PURE__*/React$1.createElement(React$1.Fragment, null, version && /*#__PURE__*/React$1.createElement(react.Badge, {
1413
+ }) => /*#__PURE__*/React.createElement(React.Fragment, null, version && /*#__PURE__*/React.createElement(react.Badge, {
1413
1414
  "data-test-id": "dzl3esjhCphobaaIXpiUE",
1414
1415
  bg: react.useColorModeValue('primary.500', 'rgba(124, 124, 124, 0.12)'),
1415
1416
  color: react.useColorModeValue('white', 'secondary.400'),
@@ -1421,7 +1422,7 @@ const Version = ({
1421
1422
  borderRadius: "md",
1422
1423
  onClick: onOpenModalRelease,
1423
1424
  cursor: onOpenModalRelease ? 'pointer' : 'auto'
1424
- }, version), /*#__PURE__*/React$1.createElement(react.Box, {
1425
+ }, version), /*#__PURE__*/React.createElement(react.Box, {
1425
1426
  background: "primary.50",
1426
1427
  color: "primary.500",
1427
1428
  fontSize: "text.xs",
@@ -1441,26 +1442,26 @@ const Header = ({
1441
1442
  onLogout,
1442
1443
  onOpenModalRelease,
1443
1444
  ...props
1444
- }) => /*#__PURE__*/React$1.createElement(react.Box, Object.assign({
1445
+ }) => /*#__PURE__*/React.createElement(react.Box, Object.assign({
1445
1446
  minH: 14,
1446
1447
  bg: react.useColorModeValue('white', 'ebony-clay.800'),
1447
1448
  boxShadow: "0 4px 20px 0 rgb(0 0 0 / 5%)",
1448
1449
  px: 4,
1449
1450
  py: 1
1450
- }, props), /*#__PURE__*/React$1.createElement(react.Flex, {
1451
+ }, props), /*#__PURE__*/React.createElement(react.Flex, {
1451
1452
  h: 14,
1452
1453
  alignItems: "center",
1453
1454
  justifyContent: "space-between"
1454
- }, /*#__PURE__*/React$1.createElement(XMSLogo, null), /*#__PURE__*/React$1.createElement(react.HStack, {
1455
+ }, /*#__PURE__*/React.createElement(XMSLogo, null), /*#__PURE__*/React.createElement(react.HStack, {
1455
1456
  spacing: 2,
1456
1457
  alignItems: "center"
1457
- }, /*#__PURE__*/React$1.createElement(VoilaLogo, null), /*#__PURE__*/React$1.createElement(Version, {
1458
+ }, /*#__PURE__*/React.createElement(VoilaLogo, null), /*#__PURE__*/React.createElement(Version, {
1458
1459
  version: data === null || data === void 0 ? void 0 : data.version,
1459
1460
  environment: data === null || data === void 0 ? void 0 : data.environment,
1460
1461
  onOpenModalRelease: onOpenModalRelease
1461
- })), /*#__PURE__*/React$1.createElement(react.Flex, {
1462
+ })), /*#__PURE__*/React.createElement(react.Flex, {
1462
1463
  alignItems: "center"
1463
- }, /*#__PURE__*/React$1.createElement(SwitchMode, null), /*#__PURE__*/React$1.createElement(Profile, {
1464
+ }, /*#__PURE__*/React.createElement(SwitchMode, null), /*#__PURE__*/React.createElement(Profile, {
1464
1465
  data: data,
1465
1466
  onLogout: onLogout
1466
1467
  }))));
@@ -1470,8 +1471,18 @@ Header.defaultProps = {
1470
1471
  onOpenModalRelease: undefined
1471
1472
  };
1472
1473
 
1473
- const ModalCloseButton = /*#__PURE__*/React$1.forwardRef((props, ref) => {
1474
- return React.createElement(react.ModalCloseButton, Object.assign({
1474
+ const ModalBody = /*#__PURE__*/React__default.forwardRef(({
1475
+ children,
1476
+ ...rest
1477
+ }, ref) => {
1478
+ return /*#__PURE__*/React__default.createElement(react.ModalBody, Object.assign({
1479
+ ref: ref,
1480
+ background: react.useColorModeValue('white', 'mirage.900')
1481
+ }, rest), children);
1482
+ });
1483
+
1484
+ const ModalCloseButton = /*#__PURE__*/React.forwardRef((props, ref) => {
1485
+ return /*#__PURE__*/React__default.createElement(react.ModalCloseButton, Object.assign({
1475
1486
  ref: ref,
1476
1487
  top: 4,
1477
1488
  right: 4,
@@ -1480,22 +1491,22 @@ const ModalCloseButton = /*#__PURE__*/React$1.forwardRef((props, ref) => {
1480
1491
  }, props));
1481
1492
  });
1482
1493
 
1483
- const ModalFooter = /*#__PURE__*/React$1.forwardRef(({
1494
+ const ModalFooter = /*#__PURE__*/React.forwardRef(({
1484
1495
  children,
1485
1496
  ...rest
1486
1497
  }, ref) => {
1487
- return React.createElement(react.ModalFooter, Object.assign({
1498
+ return /*#__PURE__*/React__default.createElement(react.ModalFooter, Object.assign({
1488
1499
  ref: ref,
1489
1500
  background: react.useColorModeValue('neutral.200', 'mirage.900'),
1490
1501
  borderBottomRadius: "md"
1491
1502
  }, rest), children);
1492
1503
  });
1493
1504
 
1494
- const ModalHeader = /*#__PURE__*/React$1.forwardRef(({
1505
+ const ModalHeader = /*#__PURE__*/React.forwardRef(({
1495
1506
  children,
1496
1507
  ...rest
1497
1508
  }, ref) => {
1498
- return React.createElement(react.ModalHeader, Object.assign({
1509
+ return /*#__PURE__*/React__default.createElement(react.ModalHeader, Object.assign({
1499
1510
  ref: ref,
1500
1511
  background: react.useColorModeValue('neutral.200', 'mirage.900'),
1501
1512
  borderTopRadius: 'md',
@@ -1510,26 +1521,26 @@ const Navigation = ({
1510
1521
  as,
1511
1522
  ...props
1512
1523
  }) => {
1513
- return /*#__PURE__*/React$1.createElement(react.Box, Object.assign({
1524
+ return /*#__PURE__*/React.createElement(react.Box, Object.assign({
1514
1525
  bg: react.useColorModeValue('white', 'ebony-clay.800'),
1515
1526
  boxShadow: "0 4px 20px 0 rgb(0 0 0 / 5%)",
1516
1527
  borderRadius: "md",
1517
1528
  overflowX: "auto"
1518
- }, props), /*#__PURE__*/React$1.createElement(react.Flex, {
1529
+ }, props), /*#__PURE__*/React.createElement(react.Flex, {
1519
1530
  alignItems: "center",
1520
1531
  p: 2
1521
- }, /*#__PURE__*/React$1.createElement(react.HStack, {
1532
+ }, /*#__PURE__*/React.createElement(react.HStack, {
1522
1533
  spacing: 2
1523
1534
  }, navigations === null || navigations === void 0 ? void 0 : navigations.map(navigation => {
1524
1535
  const isActive = activePath.startsWith(navigation.navLink || '');
1525
1536
  const activeBg = isActive ? 'primary.500' : undefined;
1526
- return /*#__PURE__*/React$1.createElement(react.Popover, {
1537
+ return /*#__PURE__*/React.createElement(react.Popover, {
1527
1538
  key: navigation.title,
1528
1539
  trigger: "hover",
1529
1540
  placement: "bottom-start"
1530
1541
  }, ({
1531
1542
  isOpen
1532
- }) => /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(react.PopoverTrigger, null, /*#__PURE__*/React$1.createElement(react.Box, {
1543
+ }) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(react.PopoverTrigger, null, /*#__PURE__*/React.createElement(react.Box, {
1533
1544
  display: "flex",
1534
1545
  alignItems: "center",
1535
1546
  borderRadius: "md",
@@ -1540,18 +1551,18 @@ const Navigation = ({
1540
1551
  backgroundColor: isOpen && !isActive ? react.useColorModeValue('dove-gray.50', 'transparent') : activeBg,
1541
1552
  color: isActive ? 'white' : 'inherit',
1542
1553
  p: 2
1543
- }, /*#__PURE__*/React$1.createElement(react.Icon, {
1554
+ }, /*#__PURE__*/React.createElement(react.Icon, {
1544
1555
  as: navigation.icon,
1545
1556
  mr: 2
1546
- }), /*#__PURE__*/React$1.createElement(react.Text, {
1557
+ }), /*#__PURE__*/React.createElement(react.Text, {
1547
1558
  whiteSpace: "nowrap",
1548
1559
  fontSize: "text.sm",
1549
1560
  fontWeight: 400
1550
- }, navigation.title), /*#__PURE__*/React$1.createElement(icons.ChevronDownIcon, {
1561
+ }, navigation.title), /*#__PURE__*/React.createElement(icons.ChevronDownIcon, {
1551
1562
  ml: 2
1552
- }))), navigation.children && /*#__PURE__*/React$1.createElement(react.Portal, null, /*#__PURE__*/React$1.createElement(react.Box, {
1563
+ }))), navigation.children && /*#__PURE__*/React.createElement(react.Portal, null, /*#__PURE__*/React.createElement(react.Box, {
1553
1564
  zIndex: "popover"
1554
- }, /*#__PURE__*/React$1.createElement(react.PopoverContent, {
1565
+ }, /*#__PURE__*/React.createElement(react.PopoverContent, {
1555
1566
  key: navigation.title,
1556
1567
  bg: react.useColorModeValue('white', 'ebony-clay.800'),
1557
1568
  maxW: 250,
@@ -1566,7 +1577,7 @@ const Navigation = ({
1566
1577
  }) => {
1567
1578
  const link = navHost ? `${navHost}${navLink}` : navLink;
1568
1579
  const isActiveSub = activePath === navLink;
1569
- return /*#__PURE__*/React$1.createElement(react.Link, {
1580
+ return /*#__PURE__*/React.createElement(react.Link, {
1570
1581
  as: as,
1571
1582
  key: title,
1572
1583
  display: "flex",
@@ -1592,12 +1603,12 @@ const Navigation = ({
1592
1603
  css: react$1.css`
1593
1604
  border-spacing: 4px;
1594
1605
  `
1595
- }, /*#__PURE__*/React$1.createElement(react.Icon, {
1606
+ }, /*#__PURE__*/React.createElement(react.Icon, {
1596
1607
  as: icon,
1597
1608
  mr: 3
1598
- }), /*#__PURE__*/React$1.createElement(react.Text, {
1609
+ }), /*#__PURE__*/React.createElement(react.Text, {
1599
1610
  fontSize: "text.sm"
1600
- }, title), isActiveSub && /*#__PURE__*/React$1.createElement(react.Box, {
1611
+ }, title), isActiveSub && /*#__PURE__*/React.createElement(react.Box, {
1601
1612
  width: 0.5,
1602
1613
  height: 8,
1603
1614
  position: "absolute",
@@ -1624,7 +1635,7 @@ const PaginationButton = /*#__PURE__*/react.forwardRef(({
1624
1635
  const btnColor = react.useColorModeValue('black.high', 'primary.300');
1625
1636
  const btnNotActiveBg = react.useColorModeValue('secondary.50', 'primary.500');
1626
1637
  const btnNotActiveColor = react.useColorModeValue('primary.500', 'white');
1627
- return React.createElement(react.Button, Object.assign({
1638
+ return /*#__PURE__*/React__default.createElement(react.Button, Object.assign({
1628
1639
  "data-test-id": "Pagination-Button",
1629
1640
  ref: ref,
1630
1641
  className: className,
@@ -1660,12 +1671,12 @@ const PaginationButtonTrigger = ({
1660
1671
  onClick,
1661
1672
  visuallyHidden,
1662
1673
  icon
1663
- }) => /*#__PURE__*/React$1.createElement(PaginationButton, {
1674
+ }) => /*#__PURE__*/React.createElement(PaginationButton, {
1664
1675
  "data-test-id": "DLVCc_fBK35spHm5WxjcJ",
1665
1676
  color: color,
1666
1677
  isDisabled: isDisabled,
1667
1678
  onClick: onClick
1668
- }, /*#__PURE__*/React$1.createElement(react.VisuallyHidden, null, visuallyHidden), icon);
1679
+ }, /*#__PURE__*/React.createElement(react.VisuallyHidden, null, visuallyHidden), icon);
1669
1680
  PaginationButtonTrigger.defaultProps = {
1670
1681
  color: undefined,
1671
1682
  isDisabled: undefined,
@@ -1709,59 +1720,59 @@ const Pagination = ({
1709
1720
  }
1710
1721
  return pageButtons;
1711
1722
  };
1712
- return /*#__PURE__*/React$1.createElement(react.Box, {
1723
+ return /*#__PURE__*/React.createElement(react.Box, {
1713
1724
  className: className,
1714
1725
  display: "inline-flex",
1715
1726
  alignItems: "center"
1716
- }, /*#__PURE__*/React$1.createElement(react.Box, {
1727
+ }, /*#__PURE__*/React.createElement(react.Box, {
1717
1728
  mr: 1
1718
- }, /*#__PURE__*/React$1.createElement(PaginationButtonTrigger, {
1729
+ }, /*#__PURE__*/React.createElement(PaginationButtonTrigger, {
1719
1730
  "data-test-id": "Pagination-Button",
1720
1731
  color: previousButtonColor,
1721
1732
  isDisabled: disabledPrevious,
1722
1733
  onClick: () => handleSelectPage(1),
1723
1734
  visuallyHidden: "First Page",
1724
- icon: /*#__PURE__*/React$1.createElement(icons.ArrowLeftIcon, {
1735
+ icon: /*#__PURE__*/React.createElement(icons.ArrowLeftIcon, {
1725
1736
  width: 2
1726
1737
  })
1727
- })), /*#__PURE__*/React$1.createElement(react.Box, {
1738
+ })), /*#__PURE__*/React.createElement(react.Box, {
1728
1739
  backgroundColor: react.useColorModeValue('neutral.300', 'mirage.900'),
1729
1740
  borderRadius: 50
1730
- }, /*#__PURE__*/React$1.createElement(PaginationButtonTrigger, {
1741
+ }, /*#__PURE__*/React.createElement(PaginationButtonTrigger, {
1731
1742
  "data-test-id": "Pagination-Button",
1732
1743
  color: previousButtonColor,
1733
1744
  isDisabled: disabledPrevious,
1734
1745
  onClick: () => handleSelectPage(current - 1),
1735
1746
  visuallyHidden: "Previous Page",
1736
- icon: /*#__PURE__*/React$1.createElement(icons.ChevronLeftIcon, null)
1747
+ icon: /*#__PURE__*/React.createElement(icons.ChevronLeftIcon, null)
1737
1748
  }), generatePages().map(page => {
1738
- return /*#__PURE__*/React$1.createElement(PaginationButton, {
1749
+ return /*#__PURE__*/React.createElement(PaginationButton, {
1739
1750
  "data-test-id": "Pagination-Button",
1740
1751
  key: page,
1741
1752
  isActive: page === current,
1742
1753
  onClick: () => typeof page === 'number' ? handleSelectPage(page) : null
1743
- }, /*#__PURE__*/React$1.createElement(react.Text, {
1754
+ }, /*#__PURE__*/React.createElement(react.Text, {
1744
1755
  scale: 300,
1745
1756
  fontSize: "text.sm",
1746
1757
  lineHeight: 18,
1747
1758
  fontWeight: 500
1748
1759
  }, page));
1749
- }), /*#__PURE__*/React$1.createElement(PaginationButtonTrigger, {
1760
+ }), /*#__PURE__*/React.createElement(PaginationButtonTrigger, {
1750
1761
  "data-test-id": "Pagination-Button",
1751
1762
  color: nextButtonColor,
1752
1763
  isDisabled: disabledNext,
1753
1764
  onClick: () => handleSelectPage(current + 1),
1754
1765
  visuallyHidden: "Next Page",
1755
- icon: /*#__PURE__*/React$1.createElement(icons.ChevronRightIcon, null)
1756
- })), /*#__PURE__*/React$1.createElement(react.Box, {
1766
+ icon: /*#__PURE__*/React.createElement(icons.ChevronRightIcon, null)
1767
+ })), /*#__PURE__*/React.createElement(react.Box, {
1757
1768
  ml: 1
1758
- }, /*#__PURE__*/React$1.createElement(PaginationButtonTrigger, {
1769
+ }, /*#__PURE__*/React.createElement(PaginationButtonTrigger, {
1759
1770
  "data-test-id": "Pagination-Button",
1760
1771
  color: nextButtonColor,
1761
1772
  isDisabled: disabledNext,
1762
1773
  onClick: () => handleSelectPage(total),
1763
1774
  visuallyHidden: "Last Page",
1764
- icon: /*#__PURE__*/React$1.createElement(icons.ArrowRightIcon, {
1775
+ icon: /*#__PURE__*/React.createElement(icons.ArrowRightIcon, {
1765
1776
  width: 2
1766
1777
  })
1767
1778
  })));
@@ -1781,7 +1792,7 @@ const PaginationDetail = ({
1781
1792
  lineHeight = 18,
1782
1793
  ...rest
1783
1794
  }) => {
1784
- return /*#__PURE__*/React$1.createElement(react.Text, Object.assign({
1795
+ return /*#__PURE__*/React.createElement(react.Text, Object.assign({
1785
1796
  scale: scale,
1786
1797
  fontSize: fontSize,
1787
1798
  lineHeight: lineHeight
@@ -1795,23 +1806,23 @@ const PaginationFilter = ({
1795
1806
  onChange,
1796
1807
  ...rest
1797
1808
  }) => {
1798
- const [value, setValue] = React$1.useState(limit);
1799
- return /*#__PURE__*/React$1.createElement(react.Box, {
1809
+ const [value, setValue] = React.useState(limit);
1810
+ return /*#__PURE__*/React.createElement(react.Box, {
1800
1811
  display: "flex",
1801
1812
  flexDirection: "row",
1802
1813
  alignItems: "center"
1803
- }, /*#__PURE__*/React$1.createElement(react.Text, Object.assign({
1814
+ }, /*#__PURE__*/React.createElement(react.Text, Object.assign({
1804
1815
  fontSize: "text.sm",
1805
1816
  lineHeight: 18,
1806
1817
  color: react.useColorModeValue('neutral.900', 'white')
1807
- }, rest), label), /*#__PURE__*/React$1.createElement(react.Select, {
1818
+ }, rest), label), /*#__PURE__*/React.createElement(react.Select, {
1808
1819
  textAlign: "center",
1809
1820
  size: "xs",
1810
1821
  outline: "none",
1811
1822
  border: "none",
1812
1823
  boxShadow: "none",
1813
1824
  width: 18,
1814
- icon: /*#__PURE__*/React$1.createElement(fi.FiChevronDown, null),
1825
+ icon: /*#__PURE__*/React.createElement(fi.FiChevronDown, null),
1815
1826
  _focusVisible: {
1816
1827
  boxShadow: 'none'
1817
1828
  },
@@ -1822,7 +1833,7 @@ const PaginationFilter = ({
1822
1833
  },
1823
1834
  value: value
1824
1835
  }, items.map(item => {
1825
- return /*#__PURE__*/React$1.createElement("option", {
1836
+ return /*#__PURE__*/React.createElement("option", {
1826
1837
  key: item,
1827
1838
  value: item
1828
1839
  }, item);
@@ -2318,7 +2329,7 @@ function Select({
2318
2329
  const {
2319
2330
  colorMode
2320
2331
  } = system.useColorMode();
2321
- return React.createElement(ReactSelect, Object.assign({}, rest, {
2332
+ return /*#__PURE__*/React__default.createElement(ReactSelect, Object.assign({}, rest, {
2322
2333
  styles: {
2323
2334
  ...selectStyles(colorMode),
2324
2335
  ...styles
@@ -2334,7 +2345,7 @@ function SelectAsync({
2334
2345
  const {
2335
2346
  colorMode
2336
2347
  } = system.useColorMode();
2337
- return React.createElement(reactSelectAsyncPaginate.AsyncPaginate, Object.assign({}, rest, {
2348
+ return /*#__PURE__*/React__default.createElement(reactSelectAsyncPaginate.AsyncPaginate, Object.assign({}, rest, {
2338
2349
  styles: {
2339
2350
  ...selectStyles(colorMode),
2340
2351
  ...styles
@@ -2343,14 +2354,14 @@ function SelectAsync({
2343
2354
  }));
2344
2355
  }
2345
2356
 
2346
- function SelectCreatable({
2357
+ function SelectAsyncCreatable({
2347
2358
  styles,
2348
2359
  ...rest
2349
2360
  }) {
2350
2361
  const {
2351
2362
  colorMode
2352
2363
  } = system.useColorMode();
2353
- return React.createElement(ReactSelectCreatable, Object.assign({}, rest, {
2364
+ return /*#__PURE__*/React__default.createElement(ReactSelectAsyncCreatable, Object.assign({}, rest, {
2354
2365
  styles: {
2355
2366
  ...selectStyles(colorMode),
2356
2367
  ...styles
@@ -2359,14 +2370,14 @@ function SelectCreatable({
2359
2370
  }));
2360
2371
  }
2361
2372
 
2362
- function SelectAsyncCreatable({
2373
+ function SelectCreatable({
2363
2374
  styles,
2364
2375
  ...rest
2365
2376
  }) {
2366
2377
  const {
2367
2378
  colorMode
2368
2379
  } = system.useColorMode();
2369
- return React.createElement(ReactSelectAsyncCreatable, Object.assign({}, rest, {
2380
+ return /*#__PURE__*/React__default.createElement(ReactSelectCreatable, Object.assign({}, rest, {
2370
2381
  styles: {
2371
2382
  ...selectStyles(colorMode),
2372
2383
  ...styles
@@ -2383,7 +2394,7 @@ const Tab = /*#__PURE__*/react.forwardRef((props, ref) => {
2383
2394
  });
2384
2395
  const isSelected = !!tabProps['aria-selected'];
2385
2396
  const styles = react.useMultiStyleConfig('Tabs', tabProps);
2386
- return /*#__PURE__*/React$1.createElement(react.Button, Object.assign({
2397
+ return /*#__PURE__*/React.createElement(react.Button, Object.assign({
2387
2398
  p: 3,
2388
2399
  fontSize: "text.md",
2389
2400
  _selected: {
@@ -2396,20 +2407,20 @@ const Tab = /*#__PURE__*/react.forwardRef((props, ref) => {
2396
2407
  bg: 'none'
2397
2408
  },
2398
2409
  __css: styles.tab
2399
- }, tabProps), /*#__PURE__*/React$1.createElement(react.Flex, null, (_props$leftAddon = props.leftAddon) === null || _props$leftAddon === void 0 ? void 0 : _props$leftAddon.call(props, {
2410
+ }, tabProps), /*#__PURE__*/React.createElement(react.Flex, null, (_props$leftAddon = props.leftAddon) === null || _props$leftAddon === void 0 ? void 0 : _props$leftAddon.call(props, {
2400
2411
  isSelected
2401
2412
  }), tabProps.children, (_props$rightAddon = props.rightAddon) === null || _props$rightAddon === void 0 ? void 0 : _props$rightAddon.call(props, {
2402
2413
  isSelected
2403
2414
  })));
2404
2415
  });
2405
2416
 
2406
- const TabList = /*#__PURE__*/react.forwardRef((props, ref) => React.createElement(react.TabList, {
2417
+ const TabList = /*#__PURE__*/react.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(react.TabList, {
2407
2418
  borderBottom: "1px solid",
2408
2419
  borderColor: react.useColorModeValue('gray.200', 'bright-gray.800'),
2409
2420
  ref: ref
2410
2421
  }, props.children));
2411
2422
 
2412
- const TabPanel = /*#__PURE__*/react.forwardRef((props, ref) => React.createElement(react.TabPanel, {
2423
+ const TabPanel = /*#__PURE__*/react.forwardRef((props, ref) => /*#__PURE__*/React__default.createElement(react.TabPanel, {
2413
2424
  px: 0,
2414
2425
  ref: ref
2415
2426
  }, props.children));
@@ -2433,9 +2444,9 @@ const Uploader = ({
2433
2444
  validator,
2434
2445
  ...props
2435
2446
  }) => {
2436
- const [selectedFirstFile, setSelectedFirstFile] = React$1.useState();
2437
- const [isSelected, setIsSelected] = React$1.useState(selected || false);
2438
- const onDrop = React$1.useCallback(acceptedFiles => {
2447
+ const [selectedFirstFile, setSelectedFirstFile] = React.useState();
2448
+ const [isSelected, setIsSelected] = React.useState(selected || false);
2449
+ const onDrop = React.useCallback(acceptedFiles => {
2439
2450
  if (acceptedFiles.length > 0) {
2440
2451
  onHandleUploadFile === null || onHandleUploadFile === void 0 ? void 0 : onHandleUploadFile(acceptedFiles);
2441
2452
  if (!multiple) {
@@ -2456,46 +2467,46 @@ const Uploader = ({
2456
2467
  multiple,
2457
2468
  validator
2458
2469
  });
2459
- React$1.useEffect(() => {
2470
+ React.useEffect(() => {
2460
2471
  if (fileRejections.length > 0 && onHandleRejections) {
2461
2472
  onHandleRejections(fileRejections);
2462
2473
  }
2463
2474
  }, [fileRejections, onHandleRejections]);
2464
- const isError = React$1.useMemo(() => {
2475
+ const isError = React.useMemo(() => {
2465
2476
  const error = fileRejections.length > 0;
2466
2477
  if (error) {
2467
2478
  setIsSelected(false);
2468
2479
  }
2469
2480
  return error;
2470
2481
  }, [fileRejections]);
2471
- React$1.useEffect(() => {
2482
+ React.useEffect(() => {
2472
2483
  setIsSelected(selected !== null && selected !== void 0 ? selected : false);
2473
2484
  }, [selected]);
2474
- return /*#__PURE__*/React$1.createElement(react.Stack, {
2485
+ return /*#__PURE__*/React.createElement(react.Stack, {
2475
2486
  direction: "column"
2476
- }, /*#__PURE__*/React$1.createElement(react.Flex, Object.assign({
2487
+ }, /*#__PURE__*/React.createElement(react.Flex, Object.assign({
2477
2488
  minH: 200,
2478
2489
  border: "1px dashed",
2479
2490
  borderColor: isError ? 'danger.500' : 'primary.500',
2480
2491
  alignItems: "center",
2481
2492
  justifyContent: "center",
2482
2493
  cursor: "pointer"
2483
- }, props, getRootProps()), /*#__PURE__*/React$1.createElement("input", Object.assign({}, getInputProps())), isDragActive ? /*#__PURE__*/React$1.createElement(react.Text, null, messages.dragActive) : /*#__PURE__*/React$1.createElement(react.Flex, {
2494
+ }, props, getRootProps()), /*#__PURE__*/React.createElement("input", Object.assign({}, getInputProps())), isDragActive ? /*#__PURE__*/React.createElement(react.Text, null, messages.dragActive) : /*#__PURE__*/React.createElement(react.Flex, {
2484
2495
  flexDirection: "column",
2485
2496
  alignItems: "center",
2486
2497
  color: isError ? 'danger.500' : 'primary.500'
2487
- }, !multiple && isSelected && /*#__PURE__*/React$1.createElement(react.Heading, {
2498
+ }, !multiple && isSelected && /*#__PURE__*/React.createElement(react.Heading, {
2488
2499
  fontWeight: 400,
2489
2500
  fontSize: "18px",
2490
2501
  lineHeight: 28,
2491
2502
  color: "black.high",
2492
2503
  mb: 2
2493
- }, selectedFirstFile === null || selectedFirstFile === void 0 ? void 0 : selectedFirstFile.name), !isSelected && /*#__PURE__*/React$1.createElement(react.Heading, {
2504
+ }, selectedFirstFile === null || selectedFirstFile === void 0 ? void 0 : selectedFirstFile.name), !isSelected && /*#__PURE__*/React.createElement(react.Heading, {
2494
2505
  fontWeight: 400,
2495
2506
  fontSize: "18px",
2496
2507
  lineHeight: 28,
2497
2508
  mb: 2
2498
- }, messages.uploadFile), isSelected ? /*#__PURE__*/React$1.createElement(react.Text, null, messages.dragReplace) : /*#__PURE__*/React$1.createElement(react.Text, null, messages.dragInActive))), renderError === null || renderError === void 0 ? void 0 : renderError(fileRejections));
2509
+ }, messages.uploadFile), isSelected ? /*#__PURE__*/React.createElement(react.Text, null, messages.dragReplace) : /*#__PURE__*/React.createElement(react.Text, null, messages.dragInActive))), renderError === null || renderError === void 0 ? void 0 : renderError(fileRejections));
2499
2510
  };
2500
2511
  Uploader.defaultProps = {
2501
2512
  onHandleUploadFile: undefined,
@@ -2975,13 +2986,13 @@ const theme = /*#__PURE__*/react.extendTheme({
2975
2986
  config
2976
2987
  });
2977
2988
 
2978
- const ProviderContext = /*#__PURE__*/React$1.createContext({
2989
+ const ProviderContext = /*#__PURE__*/React.createContext({
2979
2990
  instance: undefined
2980
2991
  });
2981
2992
  const useInternalUI = () => {
2982
2993
  const {
2983
2994
  instance
2984
- } = React$1.useContext(ProviderContext);
2995
+ } = React.useContext(ProviderContext);
2985
2996
  return {
2986
2997
  instance
2987
2998
  };
@@ -2992,8 +3003,8 @@ const Provider = ({
2992
3003
  requestInterceptors,
2993
3004
  responseInterceptors
2994
3005
  }) => {
2995
- const instanceRef = React$1.useRef(axios.create(config));
2996
- React$1.useEffect(() => {
3006
+ const instanceRef = React.useRef(axios.create(config));
3007
+ React.useEffect(() => {
2997
3008
  requestInterceptors === null || requestInterceptors === void 0 ? void 0 : requestInterceptors.forEach(interceptor => {
2998
3009
  instanceRef.current.interceptors.request.use(interceptor);
2999
3010
  });
@@ -3001,10 +3012,10 @@ const Provider = ({
3001
3012
  instanceRef.current.interceptors.response.use(interceptor);
3002
3013
  });
3003
3014
  }, [requestInterceptors, responseInterceptors]);
3004
- const provider = React$1.useMemo(() => ({
3015
+ const provider = React.useMemo(() => ({
3005
3016
  instance: instanceRef.current
3006
3017
  }), []);
3007
- return React.createElement(ProviderContext.Provider, {
3018
+ return /*#__PURE__*/React__default.createElement(ProviderContext.Provider, {
3008
3019
  value: provider
3009
3020
  }, children);
3010
3021
  };
@@ -3100,12 +3111,6 @@ Object.defineProperty(exports, 'Modal', {
3100
3111
  return react.Modal;
3101
3112
  }
3102
3113
  });
3103
- Object.defineProperty(exports, 'ModalBody', {
3104
- enumerable: true,
3105
- get: function () {
3106
- return react.ModalBody;
3107
- }
3108
- });
3109
3114
  Object.defineProperty(exports, 'ModalContent', {
3110
3115
  enumerable: true,
3111
3116
  get: function () {
@@ -3257,6 +3262,7 @@ exports.Field = Field;
3257
3262
  exports.Header = Header;
3258
3263
  exports.InputField = InputField;
3259
3264
  exports.MainMenu = Navigation;
3265
+ exports.ModalBody = ModalBody;
3260
3266
  exports.ModalCloseButton = ModalCloseButton;
3261
3267
  exports.ModalFooter = ModalFooter;
3262
3268
  exports.ModalHeader = ModalHeader;