@undefine-ui/design-system 2.14.1 → 2.15.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/dist/index.cjs CHANGED
@@ -39,6 +39,7 @@ __export(index_exports, {
39
39
  CloudUpload: () => CloudUpload,
40
40
  Copy: () => Copy,
41
41
  CopyButton: () => CopyButton,
42
+ EmptyContent: () => EmptyContent,
42
43
  Eye: () => Eye,
43
44
  EyeClosed: () => EyeClosed,
44
45
  Field: () => Field,
@@ -1506,6 +1507,18 @@ function shadows(colorScheme) {
1506
1507
  }
1507
1508
 
1508
1509
  // src/theme/core/components/list.ts
1510
+ var MuiList = {
1511
+ /** **************************************
1512
+ * STYLE
1513
+ *************************************** */
1514
+ styleOverrides: {
1515
+ root: ({ theme }) => ({
1516
+ '&[role="listbox"]': {
1517
+ padding: theme.spacing(0, 1)
1518
+ }
1519
+ })
1520
+ }
1521
+ };
1509
1522
  var MuiListSubheader = {
1510
1523
  /** **************************************
1511
1524
  * STYLE
@@ -1558,6 +1571,7 @@ var MuiListItemText = {
1558
1571
  styleOverrides: { root: { margin: 0 }, multiline: { margin: 0 } }
1559
1572
  };
1560
1573
  var list = {
1574
+ MuiList,
1561
1575
  MuiListSubheader,
1562
1576
  MuiListItemIcon,
1563
1577
  MuiListItemAvatar,
@@ -1566,6 +1580,12 @@ var list = {
1566
1580
 
1567
1581
  // src/theme/core/components/card.ts
1568
1582
  var MuiCard = {
1583
+ /** **************************************
1584
+ * DEFAULT PROPS
1585
+ *************************************** */
1586
+ defaultProps: {
1587
+ variant: "outlined"
1588
+ },
1569
1589
  /** **************************************
1570
1590
  * STYLE
1571
1591
  *************************************** */
@@ -1573,12 +1593,12 @@ var MuiCard = {
1573
1593
  root: ({ theme, ownerState }) => ({
1574
1594
  position: "relative",
1575
1595
  boxShadow: theme.customShadows["shadow-sm"],
1576
- borderRadius: Number(theme.shape.borderRadius) * 2,
1596
+ borderRadius: theme.radius["radius-md"],
1577
1597
  zIndex: 0,
1578
1598
  // Fix Safari overflow: hidden with border radius
1579
1599
  ...ownerState.variant === "outlined" && {
1580
1600
  boxShadow: "none",
1581
- borderColor: varAlpha(theme.palette.grey["200Channel"])
1601
+ borderColor: theme.vars.palette.border.mute
1582
1602
  }
1583
1603
  })
1584
1604
  }
@@ -3666,9 +3686,9 @@ var slider = {
3666
3686
 
3667
3687
  // src/theme/core/components/button.tsx
3668
3688
  var import_Button = require("@mui/material/Button");
3669
- var import_styles12 = require("@mui/material/styles");
3689
+ var import_styles11 = require("@mui/material/styles");
3670
3690
  var import_jsx_runtime33 = require("react/jsx-runtime");
3671
- var spin = import_styles12.keyframes`
3691
+ var spin = import_styles11.keyframes`
3672
3692
  0% {
3673
3693
  transform: rotate(0deg);
3674
3694
  }
@@ -3784,7 +3804,7 @@ var MuiButton = {
3784
3804
  *************************************** */
3785
3805
  defaultProps: {
3786
3806
  color: "primary",
3787
- variant: "outlined",
3807
+ variant: "contained",
3788
3808
  disableElevation: true,
3789
3809
  disableRipple: true,
3790
3810
  loadingIndicator: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { icon: "Loader" })
@@ -4868,12 +4888,11 @@ var MuiPagination = {
4868
4888
  */
4869
4889
  outlined: ({ ownerState, theme }) => ({
4870
4890
  [`& .${import_PaginationItem.paginationItemClasses.root}`]: {
4871
- borderColor: varAlpha(theme.vars.palette.grey["500Channel"], 0.24),
4891
+ borderColor: theme.vars.palette.border.mute,
4892
+ borderRadius: theme.radius["radius-sm"],
4872
4893
  [`&.${import_PaginationItem.paginationItemClasses.selected}`]: {
4873
- borderColor: "currentColor",
4874
- fontWeight: theme.typography.fontWeightSemiBold,
4875
4894
  ...ownerState.color === "standard" && {
4876
- backgroundColor: varAlpha(theme.vars.palette.grey["500Channel"], 0.08)
4895
+ backgroundColor: theme.vars.palette.neutral[200]
4877
4896
  }
4878
4897
  }
4879
4898
  }
@@ -4967,30 +4986,42 @@ var MuiDataGrid = {
4967
4986
  styleOverrides: {
4968
4987
  root: ({ theme }) => ({
4969
4988
  "--unstable_DataGrid-radius": 0,
4970
- "--DataGrid-rowBorderColor": theme.vars.palette.divider,
4971
- "--DataGrid-containerBackground": theme.vars.palette.background.neutral,
4989
+ "--DataGrid-rowBorderColor": theme.vars.palette.border.mute,
4990
+ "--DataGrid-containerBackground": theme.vars.palette.neutral[50],
4972
4991
  "--unstable_DataGrid-headWeight": theme.typography.fontWeightSemiBold,
4973
4992
  borderWidth: 0,
4974
4993
  scrollbarWidth: "thin",
4975
4994
  scrollbarColor: `${varAlpha(theme.vars.palette.text.disableChannel, 0.4)} ${varAlpha(theme.vars.palette.text.disableChannel, 0.08)}`,
4976
- "& .MuiDataGrid-filler > div": { borderTopStyle: "dashed" },
4977
- "& .MuiDataGrid-topContainer::after": { height: 0 }
4995
+ "& .MuiDataGrid-filler > div": { borderTopStyle: "solid" },
4996
+ "& .MuiDataGrid-topContainer::after": { height: 0 },
4997
+ minHeight: 320
4978
4998
  }),
4979
4999
  withBorderColor: { borderColor: "var(--DataGrid-rowBorderColor)" },
4980
5000
  /**
4981
5001
  * Column
4982
5002
  */
5003
+ columnHeaders: ({ theme }) => ({
5004
+ height: theme.spacing(5)
5005
+ }),
4983
5006
  columnHeader: ({ theme }) => ({
4984
- fontSize: 14,
4985
- color: theme.vars.palette.text.secondary,
5007
+ ...theme.typography.body2,
5008
+ color: theme.vars.palette.text.body,
5009
+ backgroundColor: theme.vars.palette.neutral[50],
5010
+ height: theme.spacing(5),
4986
5011
  "&--sorted": { color: theme.vars.palette.text.primary }
4987
5012
  }),
4988
- columnSeparator: { color: "var(--DataGrid-rowBorderColor)" },
5013
+ columnHeaderTitle: ({ theme }) => ({
5014
+ fontWeight: theme.typography.fontWeightMedium
5015
+ }),
5016
+ columnSeparator: { color: "var(--DataGrid-rowBorderColor)", visibility: "hidden" },
4989
5017
  /**
4990
5018
  * Row, Cell
4991
5019
  */
4992
5020
  cell: ({ theme }) => ({
4993
- borderTopStyle: "dashed",
5021
+ fontSize: theme.typography.pxToRem(14),
5022
+ fontWeight: theme.typography.fontWeightMedium,
5023
+ color: theme.vars.palette.text.header,
5024
+ borderTopStyle: "solid",
4994
5025
  "&--editing": {
4995
5026
  boxShadow: "none",
4996
5027
  backgroundColor: varAlpha(theme.vars.palette.primary.mainChannel, 0.08)
@@ -5050,13 +5081,8 @@ var MuiDataGrid = {
5050
5081
  /**
5051
5082
  * Footer
5052
5083
  */
5053
- footerContainer: { minHeight: "auto", borderTopStyle: "dashed" },
5084
+ footerContainer: { minHeight: "auto", borderTopStyle: "solid" },
5054
5085
  selectedRowCount: { display: "none", whiteSpace: "nowrap" },
5055
- overlay: ({ theme }) => ({
5056
- [`& .${import_CircularProgress.circularProgressClasses.root}`]: {
5057
- color: theme.vars.palette.text.primary
5058
- }
5059
- }),
5060
5086
  /**
5061
5087
  * Column panel
5062
5088
  */
@@ -5095,6 +5121,12 @@ var MuiDataGrid = {
5095
5121
  backgroundColor: varAlpha(theme.vars.palette.grey["500Channel"], 0.16),
5096
5122
  [`& .${import_SvgIcon2.svgIconClasses.root}`]: { width: 16, height: 16 }
5097
5123
  }
5124
+ }),
5125
+ /** Overlay */
5126
+ overlay: ({ theme }) => ({
5127
+ [`& .${import_CircularProgress.circularProgressClasses.root}`]: {
5128
+ color: theme.vars.palette.text.primary
5129
+ }
5098
5130
  })
5099
5131
  }
5100
5132
  };
@@ -5409,7 +5441,7 @@ var MuiAutocomplete = {
5409
5441
  ...paper({ theme, dropdown: true })
5410
5442
  }),
5411
5443
  listbox: ({ theme }) => ({
5412
- padding: 0,
5444
+ padding: theme.spacing(0, 1),
5413
5445
  [`& .${import_Autocomplete3.autocompleteClasses.option}`]: {
5414
5446
  ...menuItem(theme)
5415
5447
  }
@@ -5743,7 +5775,7 @@ var breakpoints = () => ({
5743
5775
  sm: 600,
5744
5776
  md: 900,
5745
5777
  lg: 1200,
5746
- xl: 1536
5778
+ xl: 1400
5747
5779
  }
5748
5780
  });
5749
5781
 
@@ -5779,7 +5811,7 @@ function customSpacing(baseSpacing) {
5779
5811
  }
5780
5812
 
5781
5813
  // src/theme/create-theme.ts
5782
- var import_styles30 = require("@mui/material/styles");
5814
+ var import_styles29 = require("@mui/material/styles");
5783
5815
 
5784
5816
  // src/theme/with-settings/update-theme.ts
5785
5817
  var updateCoreWithSettings = (theme, settings) => {
@@ -5868,7 +5900,7 @@ var createTheme = (settings) => {
5868
5900
  shouldSkipGeneratingVar
5869
5901
  };
5870
5902
  const updateTheme = updateCoreWithSettings(initialTheme, settings);
5871
- const theme = (0, import_styles30.extendTheme)(updateTheme, updateComponentsWithSettings(settings));
5903
+ const theme = (0, import_styles29.extendTheme)(updateTheme, updateComponentsWithSettings(settings));
5872
5904
  return theme;
5873
5905
  };
5874
5906
  var shouldSkipGeneratingVar = (keys) => {
@@ -5904,7 +5936,7 @@ var schemeConfig = {
5904
5936
 
5905
5937
  // src/theme/ThemeProvider.tsx
5906
5938
  var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"), 1);
5907
- var import_styles31 = require("@mui/material/styles");
5939
+ var import_styles30 = require("@mui/material/styles");
5908
5940
  var import__ = require("@fontsource/work-sans/300.css");
5909
5941
  var import__2 = require("@fontsource/work-sans/400.css");
5910
5942
  var import__3 = require("@fontsource/work-sans/500.css");
@@ -5921,7 +5953,7 @@ var ThemeProvider = ({ children }) => {
5921
5953
  const settings = useSettings();
5922
5954
  const theme = createTheme(settings);
5923
5955
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
5924
- import_styles31.ThemeProvider,
5956
+ import_styles30.ThemeProvider,
5925
5957
  {
5926
5958
  theme,
5927
5959
  defaultMode: schemeConfig.defaultMode,
@@ -6084,43 +6116,115 @@ var AnimatedLogo = () => {
6084
6116
  };
6085
6117
 
6086
6118
  // src/components/Table/Table.tsx
6087
- var import_Box4 = __toESM(require("@mui/material/Box"), 1);
6088
6119
  var import_x_data_grid2 = require("@mui/x-data-grid");
6089
6120
 
6090
6121
  // src/components/Table/components/TableNoRows.tsx
6122
+ var import_styles31 = require("@mui/material/styles");
6123
+
6124
+ // src/components/EmptyContent/index.tsx
6091
6125
  var import_Box3 = __toESM(require("@mui/material/Box"), 1);
6092
- var import_styles32 = require("@mui/material/styles");
6126
+ var import_Stack = __toESM(require("@mui/material/Stack"), 1);
6127
+ var import_Typography2 = __toESM(require("@mui/material/Typography"), 1);
6093
6128
  var import_jsx_runtime40 = require("react/jsx-runtime");
6094
- var StyledGridOverlay = (0, import_styles32.styled)("div")(({ theme }) => ({
6095
- display: "flex",
6096
- flexDirection: "column",
6097
- alignItems: "center",
6098
- justifyContent: "center",
6099
- padding: theme.spacing(3),
6129
+ var EmptyContent = ({
6130
+ sx,
6131
+ imgUrl,
6132
+ action: action2,
6133
+ filled,
6134
+ slotProps,
6135
+ description,
6136
+ title = "No data",
6137
+ ...rest
6138
+ }) => {
6139
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
6140
+ import_Stack.default,
6141
+ {
6142
+ flexGrow: 1,
6143
+ alignItems: "center",
6144
+ justifyContent: "center",
6145
+ sx: {
6146
+ px: 3,
6147
+ height: 1,
6148
+ ...filled && {
6149
+ borderRadius: (theme) => theme.radius["radius-lg"],
6150
+ bgcolor: (theme) => theme.vars.palette.neutral[50],
6151
+ border: (theme) => `dashed 1px ${theme.vars.palette.border.default}`
6152
+ },
6153
+ ...sx
6154
+ },
6155
+ ...rest,
6156
+ children: [
6157
+ imgUrl && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6158
+ import_Box3.default,
6159
+ {
6160
+ component: "img",
6161
+ alt: "empty content",
6162
+ src: imgUrl,
6163
+ sx: { width: 1, maxWidth: 160, ...slotProps?.img, mb: 2 }
6164
+ }
6165
+ ),
6166
+ title && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6167
+ import_Typography2.default,
6168
+ {
6169
+ variant: filled ? "h7" : "h6",
6170
+ sx: {
6171
+ mb: 0.5,
6172
+ textAlign: "center",
6173
+ fontWeight: 500,
6174
+ ...slotProps?.title,
6175
+ color: "text.header"
6176
+ },
6177
+ children: title
6178
+ }
6179
+ ),
6180
+ description && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
6181
+ import_Typography2.default,
6182
+ {
6183
+ variant: "h8",
6184
+ sx: {
6185
+ mb: 3,
6186
+ textAlign: "center",
6187
+ color: "text.body",
6188
+ ...slotProps?.description
6189
+ },
6190
+ children: description
6191
+ }
6192
+ ),
6193
+ action2 && action2
6194
+ ]
6195
+ }
6196
+ );
6197
+ };
6198
+
6199
+ // src/components/Table/components/TableNoRows.tsx
6200
+ var import_jsx_runtime41 = require("react/jsx-runtime");
6201
+ var StyledGridOverlay = (0, import_styles31.styled)("div")(({ theme }) => ({
6202
+ padding: theme.spacing(1.5, 3, 3),
6203
+ width: "100%",
6100
6204
  height: "100%"
6101
6205
  }));
6102
- var TableNoRows = ({ noRowsTitle = "No Rows" }) => {
6103
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(StyledGridOverlay, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_Box3.default, { sx: { mt: 1 }, children: noRowsTitle }) });
6206
+ var TableNoRows = (props) => {
6207
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(StyledGridOverlay, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(EmptyContent, { ...props, sx: { width: "100%" } }) });
6104
6208
  };
6105
6209
  var TableNoRows_default = TableNoRows;
6106
6210
 
6107
6211
  // src/components/Table/components/TablePagination.tsx
6108
- var import_Stack = __toESM(require("@mui/material/Stack"), 1);
6109
- var import_Typography2 = __toESM(require("@mui/material/Typography"), 1);
6212
+ var import_Stack2 = __toESM(require("@mui/material/Stack"), 1);
6213
+ var import_Button3 = __toESM(require("@mui/material/Button"), 1);
6214
+ var import_styles32 = require("@mui/material/styles");
6215
+ var import_Typography3 = __toESM(require("@mui/material/Typography"), 1);
6110
6216
  var import_Pagination = __toESM(require("@mui/material/Pagination"), 1);
6111
6217
  var import_PaginationItem2 = __toESM(require("@mui/material/PaginationItem"), 1);
6112
6218
  var import_x_data_grid = require("@mui/x-data-grid");
6113
- var import_jsx_runtime41 = require("react/jsx-runtime");
6219
+ var import_jsx_runtime42 = require("react/jsx-runtime");
6114
6220
  var TablePagination = () => {
6221
+ const theme = (0, import_styles32.useTheme)();
6115
6222
  const apiRef = (0, import_x_data_grid.useGridApiContext)();
6116
6223
  const page = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageSelector);
6117
6224
  const pageCount = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageCountSelector);
6118
6225
  const pageSize = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageSizeSelector);
6119
- const rowCount = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridRowCountSelector);
6120
- const from = page * pageSize + 1;
6121
- const to = Math.min((page + 1) * pageSize, rowCount);
6122
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
6123
- import_Stack.default,
6226
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
6227
+ import_Stack2.default,
6124
6228
  {
6125
6229
  direction: "row",
6126
6230
  alignItems: { xs: "flex-end", md: "center" },
@@ -6128,38 +6232,62 @@ var TablePagination = () => {
6128
6232
  width: 1,
6129
6233
  p: 1.5,
6130
6234
  children: [
6131
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
6132
- import_Stack.default,
6235
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_Stack2.default, { direction: "row", alignItems: "center", spacing: 1, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
6236
+ import_Typography3.default,
6237
+ {
6238
+ variant: "h8",
6239
+ color: "text.header",
6240
+ fontFamily: theme.typography.fontSecondaryFamily,
6241
+ children: [
6242
+ pageSize,
6243
+ " rows per page"
6244
+ ]
6245
+ }
6246
+ ) }),
6247
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6248
+ import_Stack2.default,
6133
6249
  {
6134
6250
  direction: { xs: "column", md: "row" },
6135
6251
  alignItems: { xs: "flex-start", md: "center" },
6136
6252
  spacing: 2,
6137
- children: [
6138
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6139
- import_Pagination.default,
6140
- {
6141
- size: "medium",
6142
- variant: "outlined",
6143
- shape: "rounded",
6144
- page: page + 1,
6145
- count: pageCount,
6146
- siblingCount: 1,
6147
- showFirstButton: true,
6148
- showLastButton: true,
6149
- onChange: (_, value) => apiRef.current.setPage(value - 1),
6150
- renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_PaginationItem2.default, { ...item })
6151
- }
6152
- ),
6153
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_Stack.default, { direction: "row", alignItems: "center", spacing: 1, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_Typography2.default, { variant: "body2", color: "text.secondary", children: [
6154
- pageSize,
6155
- " Items per page"
6156
- ] }) })
6157
- ]
6253
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6254
+ import_Pagination.default,
6255
+ {
6256
+ size: "medium",
6257
+ variant: "outlined",
6258
+ shape: "rounded",
6259
+ page: page + 1,
6260
+ count: pageCount,
6261
+ siblingCount: 1,
6262
+ hideNextButton: true,
6263
+ hidePrevButton: true,
6264
+ onChange: (_, value) => apiRef.current.setPage(value - 1),
6265
+ renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_PaginationItem2.default, { ...item })
6266
+ }
6267
+ )
6158
6268
  }
6159
6269
  ),
6160
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_Typography2.default, { variant: "body2", color: "text.secondary", children: [
6161
- `${from} \u2013 ${to} of ${rowCount !== -1 ? rowCount : `more than ${to}`} items`,
6162
- " "
6270
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_Stack2.default, { direction: "row", alignItems: "center", spacing: 1, children: [
6271
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6272
+ import_Button3.default,
6273
+ {
6274
+ color: "inherit",
6275
+ variant: page === 0 ? "contained" : "outlined",
6276
+ disabled: page === 0,
6277
+ onClick: () => apiRef.current.setPage(page - 1),
6278
+ children: "Previous"
6279
+ }
6280
+ ),
6281
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6282
+ import_Button3.default,
6283
+ {
6284
+ color: "inherit",
6285
+ variant: page >= pageCount - 1 ? "contained" : "outlined",
6286
+ disabled: page >= pageCount - 1,
6287
+ onClick: () => apiRef.current.setPage(page + 1),
6288
+ children: "Next"
6289
+ }
6290
+ )
6163
6291
  ] })
6164
6292
  ]
6165
6293
  }
@@ -6167,29 +6295,35 @@ var TablePagination = () => {
6167
6295
  };
6168
6296
 
6169
6297
  // src/components/Table/Table.tsx
6170
- var import_jsx_runtime42 = require("react/jsx-runtime");
6298
+ var import_jsx_runtime43 = require("react/jsx-runtime");
6171
6299
  var Table = (props) => {
6172
- const { data, showToolbar = false, ...rest } = props;
6173
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_Box4.default, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6300
+ const { data, showFooter = true, sx, ...rest } = props;
6301
+ const isEmpty = data.length === 0;
6302
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
6174
6303
  import_x_data_grid2.DataGrid,
6175
6304
  {
6176
- rowHeight: 64,
6305
+ rowHeight: 56,
6177
6306
  rows: data,
6178
6307
  pagination: true,
6179
- showToolbar,
6180
6308
  disableColumnFilter: true,
6309
+ disableColumnSelector: true,
6310
+ disableColumnSorting: true,
6311
+ disableColumnMenu: true,
6181
6312
  slots: {
6182
6313
  pagination: TablePagination,
6314
+ noRowsOverlay: TableNoRows_default,
6183
6315
  noResultsOverlay: TableNoRows_default,
6184
- // noRowsOverlay: TableNoRows,
6185
6316
  ...rest.slots
6186
6317
  },
6187
6318
  slotProps: {
6188
- noResultsOverlay: {
6189
- title: "No Results"
6190
- },
6191
6319
  noRowsOverlay: {
6192
- title: "No Results"
6320
+ filled: true,
6321
+ title: "No booking data yet",
6322
+ description: "Try adjusting your search or filter to find what you are looking for."
6323
+ },
6324
+ noResultsOverlay: {
6325
+ title: "No booking data yet",
6326
+ description: "Try adjusting your search or filter to find what you are looking for."
6193
6327
  },
6194
6328
  loadingOverlay: {
6195
6329
  variant: "skeleton"
@@ -6204,14 +6338,21 @@ var Table = (props) => {
6204
6338
  }
6205
6339
  },
6206
6340
  disableRowSelectionOnClick: true,
6341
+ pageSizeOptions: [5, 10, 25, 50, 75, 100],
6342
+ sx: {
6343
+ "& .MuiDataGrid-footerContainer": {
6344
+ display: !isEmpty && showFooter ? "flex" : "none"
6345
+ },
6346
+ ...sx
6347
+ },
6207
6348
  ...rest
6208
6349
  }
6209
- ) });
6350
+ );
6210
6351
  };
6211
6352
 
6212
6353
  // src/components/Image/index.tsx
6213
6354
  var import_react12 = require("react");
6214
- var import_Box5 = __toESM(require("@mui/material/Box"), 1);
6355
+ var import_Box4 = __toESM(require("@mui/material/Box"), 1);
6215
6356
  var import_Skeleton = __toESM(require("@mui/material/Skeleton"), 1);
6216
6357
 
6217
6358
  // src/components/Image/classes.ts
@@ -6222,7 +6363,7 @@ var imageClasses = {
6222
6363
  };
6223
6364
 
6224
6365
  // src/components/Image/index.tsx
6225
- var import_jsx_runtime43 = require("react/jsx-runtime");
6366
+ var import_jsx_runtime44 = require("react/jsx-runtime");
6226
6367
  var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6227
6368
  const {
6228
6369
  src,
@@ -6321,8 +6462,8 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6321
6462
  const showLoader = status === "idle" || status === "loading";
6322
6463
  const showError = status === "error";
6323
6464
  const loadingAttr = lazy ? "lazy" : imgLoading ?? "eager";
6324
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
6325
- import_Box5.default,
6465
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
6466
+ import_Box4.default,
6326
6467
  {
6327
6468
  className: imageClasses.root.concat(className ? ` ${className}` : ""),
6328
6469
  sx: {
@@ -6336,7 +6477,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6336
6477
  },
6337
6478
  ...rest,
6338
6479
  children: [
6339
- showLoader && (loadingIndicator ?? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
6480
+ showLoader && (loadingIndicator ?? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6340
6481
  import_Skeleton.default,
6341
6482
  {
6342
6483
  animation: "wave",
@@ -6351,8 +6492,8 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6351
6492
  }
6352
6493
  }
6353
6494
  )),
6354
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
6355
- import_Box5.default,
6495
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6496
+ import_Box4.default,
6356
6497
  {
6357
6498
  ref: setRefs,
6358
6499
  component: "img",
@@ -6380,8 +6521,8 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6380
6521
  }
6381
6522
  }
6382
6523
  ),
6383
- withOverlay && !showError && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
6384
- import_Box5.default,
6524
+ withOverlay && !showError && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6525
+ import_Box4.default,
6385
6526
  {
6386
6527
  className: imageClasses.overlay,
6387
6528
  sx: {
@@ -6392,8 +6533,8 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6392
6533
  children: overlay
6393
6534
  }
6394
6535
  ),
6395
- showError && (renderError ?? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
6396
- import_Box5.default,
6536
+ showError && (renderError ?? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6537
+ import_Box4.default,
6397
6538
  {
6398
6539
  className: imageClasses.overlay,
6399
6540
  sx: {
@@ -6417,18 +6558,18 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6417
6558
 
6418
6559
  // src/components/Upload/Upload.tsx
6419
6560
  var import_react_dropzone = require("react-dropzone");
6420
- var import_Box11 = __toESM(require("@mui/material/Box"), 1);
6421
- var import_Stack3 = __toESM(require("@mui/material/Stack"), 1);
6422
- var import_Button3 = __toESM(require("@mui/material/Button"), 1);
6561
+ var import_Box10 = __toESM(require("@mui/material/Box"), 1);
6562
+ var import_Stack4 = __toESM(require("@mui/material/Stack"), 1);
6563
+ var import_Button4 = __toESM(require("@mui/material/Button"), 1);
6423
6564
  var import_FormHelperText = __toESM(require("@mui/material/FormHelperText"), 1);
6424
6565
 
6425
6566
  // src/components/Upload/components/Placeholder.tsx
6426
- var import_Stack2 = __toESM(require("@mui/material/Stack"), 1);
6427
- var import_Box6 = __toESM(require("@mui/material/Box"), 1);
6428
- var import_jsx_runtime44 = require("react/jsx-runtime");
6567
+ var import_Stack3 = __toESM(require("@mui/material/Stack"), 1);
6568
+ var import_Box5 = __toESM(require("@mui/material/Box"), 1);
6569
+ var import_jsx_runtime45 = require("react/jsx-runtime");
6429
6570
  var UploadPlaceholder = ({ hasError, ...rest }) => {
6430
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
6431
- import_Box6.default,
6571
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
6572
+ import_Box5.default,
6432
6573
  {
6433
6574
  sx: {
6434
6575
  display: "flex",
@@ -6438,7 +6579,7 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
6438
6579
  },
6439
6580
  ...rest,
6440
6581
  children: [
6441
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6582
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6442
6583
  Icon,
6443
6584
  {
6444
6585
  icon: "CloudUpload",
@@ -6449,11 +6590,11 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
6449
6590
  }
6450
6591
  }
6451
6592
  ),
6452
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_Stack2.default, { spacing: 1, sx: { textAlign: "center", mt: 2 }, children: [
6453
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_Box6.default, { sx: { typography: "h8" }, children: [
6593
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_Stack3.default, { spacing: 1, sx: { textAlign: "center", mt: 2 }, children: [
6594
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_Box5.default, { sx: { typography: "h8" }, children: [
6454
6595
  "Drag files here or",
6455
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6456
- import_Box6.default,
6596
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6597
+ import_Box5.default,
6457
6598
  {
6458
6599
  component: "span",
6459
6600
  sx: {
@@ -6465,8 +6606,8 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
6465
6606
  }
6466
6607
  )
6467
6608
  ] }),
6468
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
6469
- import_Box6.default,
6609
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
6610
+ import_Box5.default,
6470
6611
  {
6471
6612
  sx: {
6472
6613
  typography: "bodyMd",
@@ -6487,9 +6628,9 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
6487
6628
  };
6488
6629
 
6489
6630
  // src/components/Upload/components/RejectionFiles.tsx
6490
- var import_Box7 = __toESM(require("@mui/material/Box"), 1);
6631
+ var import_Box6 = __toESM(require("@mui/material/Box"), 1);
6491
6632
  var import_Paper2 = __toESM(require("@mui/material/Paper"), 1);
6492
- var import_Typography3 = __toESM(require("@mui/material/Typography"), 1);
6633
+ var import_Typography4 = __toESM(require("@mui/material/Typography"), 1);
6493
6634
 
6494
6635
  // src/components/Upload/utils.tsx
6495
6636
  var fileTypeByUrl = (fileUrl = "") => {
@@ -6520,12 +6661,12 @@ var fileData = (file) => {
6520
6661
  };
6521
6662
 
6522
6663
  // src/components/Upload/components/RejectionFiles.tsx
6523
- var import_jsx_runtime45 = require("react/jsx-runtime");
6664
+ var import_jsx_runtime46 = require("react/jsx-runtime");
6524
6665
  var RejectionFiles = ({ files }) => {
6525
6666
  if (!files.length) {
6526
6667
  return null;
6527
6668
  }
6528
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6669
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6529
6670
  import_Paper2.default,
6530
6671
  {
6531
6672
  variant: "outlined",
@@ -6540,13 +6681,13 @@ var RejectionFiles = ({ files }) => {
6540
6681
  },
6541
6682
  children: files.map(({ file, errors }) => {
6542
6683
  const { path, size } = fileData(file);
6543
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_Box7.default, { sx: { my: 1 }, children: [
6544
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_Typography3.default, { variant: "subtitle2", noWrap: true, children: [
6684
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_Box6.default, { sx: { my: 1 }, children: [
6685
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_Typography4.default, { variant: "subtitle2", noWrap: true, children: [
6545
6686
  path,
6546
6687
  " - ",
6547
6688
  size ? fData(size) : ""
6548
6689
  ] }),
6549
- errors.map((error2) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_Box7.default, { component: "span", sx: { typography: "caption" }, children: [
6690
+ errors.map((error2) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_Box6.default, { component: "span", sx: { typography: "caption" }, children: [
6550
6691
  "- ",
6551
6692
  error2.message
6552
6693
  ] }, error2.code))
@@ -6557,12 +6698,12 @@ var RejectionFiles = ({ files }) => {
6557
6698
  };
6558
6699
 
6559
6700
  // src/components/Upload/components/UploadProgress.tsx
6560
- var import_Box8 = __toESM(require("@mui/material/Box"), 1);
6701
+ var import_Box7 = __toESM(require("@mui/material/Box"), 1);
6561
6702
  var import_CircularProgress2 = __toESM(require("@mui/material/CircularProgress"), 1);
6562
- var import_jsx_runtime46 = require("react/jsx-runtime");
6703
+ var import_jsx_runtime47 = require("react/jsx-runtime");
6563
6704
  var UploadProgress = ({ progress: progress2 = 20 }) => {
6564
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
6565
- import_Box8.default,
6705
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
6706
+ import_Box7.default,
6566
6707
  {
6567
6708
  sx: {
6568
6709
  display: "flex",
@@ -6572,8 +6713,8 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
6572
6713
  height: "100%"
6573
6714
  },
6574
6715
  children: [
6575
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_Box8.default, { sx: { position: "relative", display: "inline-flex" }, children: [
6576
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6716
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_Box7.default, { sx: { position: "relative", display: "inline-flex" }, children: [
6717
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6577
6718
  import_CircularProgress2.default,
6578
6719
  {
6579
6720
  variant: "determinate",
@@ -6586,7 +6727,7 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
6586
6727
  }
6587
6728
  }
6588
6729
  ),
6589
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6730
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6590
6731
  import_CircularProgress2.default,
6591
6732
  {
6592
6733
  variant: "determinate",
@@ -6598,8 +6739,8 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
6598
6739
  }
6599
6740
  }
6600
6741
  ),
6601
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6602
- import_Box8.default,
6742
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6743
+ import_Box7.default,
6603
6744
  {
6604
6745
  sx: {
6605
6746
  top: 0,
@@ -6611,11 +6752,11 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
6611
6752
  alignItems: "center",
6612
6753
  justifyContent: "center"
6613
6754
  },
6614
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_Box8.default, { sx: { typography: "h6", color: "common.black" }, children: `${Math.round(progress2)}` })
6755
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_Box7.default, { sx: { typography: "h6", color: "common.black" }, children: `${Math.round(progress2)}` })
6615
6756
  }
6616
6757
  )
6617
6758
  ] }),
6618
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_Box8.default, { sx: { mt: 2, typography: "h6" }, children: "Uploading" })
6759
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_Box7.default, { sx: { mt: 2, typography: "h6" }, children: "Uploading" })
6619
6760
  ]
6620
6761
  }
6621
6762
  );
@@ -6623,18 +6764,18 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
6623
6764
 
6624
6765
  // src/components/Upload/components/MultiFilePreview.tsx
6625
6766
  var import_react13 = require("react");
6626
- var import_Box10 = __toESM(require("@mui/material/Box"), 1);
6767
+ var import_Box9 = __toESM(require("@mui/material/Box"), 1);
6627
6768
  var import_IconButton3 = __toESM(require("@mui/material/IconButton"), 1);
6628
6769
 
6629
6770
  // src/components/Upload/components/SingleFilePreview.tsx
6630
- var import_Box9 = __toESM(require("@mui/material/Box"), 1);
6771
+ var import_Box8 = __toESM(require("@mui/material/Box"), 1);
6631
6772
  var import_IconButton2 = __toESM(require("@mui/material/IconButton"), 1);
6632
- var import_jsx_runtime47 = require("react/jsx-runtime");
6773
+ var import_jsx_runtime48 = require("react/jsx-runtime");
6633
6774
  var SingleFilePreview = ({ file }) => {
6634
6775
  const fileName = typeof file === "string" ? file : file.name;
6635
6776
  const previewUrl = typeof file === "string" ? file : URL.createObjectURL(file);
6636
- const renderImg = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6637
- import_Box9.default,
6777
+ const renderImg = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6778
+ import_Box8.default,
6638
6779
  {
6639
6780
  component: "img",
6640
6781
  alt: fileName,
@@ -6647,8 +6788,8 @@ var SingleFilePreview = ({ file }) => {
6647
6788
  }
6648
6789
  }
6649
6790
  );
6650
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6651
- import_Box9.default,
6791
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6792
+ import_Box8.default,
6652
6793
  {
6653
6794
  sx: {
6654
6795
  p: 1,
@@ -6663,7 +6804,7 @@ var SingleFilePreview = ({ file }) => {
6663
6804
  );
6664
6805
  };
6665
6806
  var DeleteButton = ({ sx, ...rest }) => {
6666
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6807
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6667
6808
  import_IconButton2.default,
6668
6809
  {
6669
6810
  size: "small",
@@ -6682,13 +6823,13 @@ var DeleteButton = ({ sx, ...rest }) => {
6682
6823
  ...sx
6683
6824
  },
6684
6825
  ...rest,
6685
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { icon: "XMark", sx: { width: 18, height: 18 } })
6826
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { icon: "XMark", sx: { width: 18, height: 18 } })
6686
6827
  }
6687
6828
  );
6688
6829
  };
6689
6830
 
6690
6831
  // src/components/Upload/components/MultiFilePreview.tsx
6691
- var import_jsx_runtime48 = require("react/jsx-runtime");
6832
+ var import_jsx_runtime49 = require("react/jsx-runtime");
6692
6833
  var MultiFilePreview = ({ files, onRemove }) => {
6693
6834
  const scrollRef = (0, import_react13.useRef)(null);
6694
6835
  const handleScroll = (direction) => {
@@ -6702,8 +6843,8 @@ var MultiFilePreview = ({ files, onRemove }) => {
6702
6843
  }
6703
6844
  };
6704
6845
  const showNavigation = files.length > 2;
6705
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_Box10.default, { sx: { position: "relative", width: 1 }, children: [
6706
- showNavigation && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6846
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_Box9.default, { sx: { position: "relative", width: 1 }, children: [
6847
+ showNavigation && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6707
6848
  import_IconButton3.default,
6708
6849
  {
6709
6850
  size: "small",
@@ -6720,11 +6861,11 @@ var MultiFilePreview = ({ files, onRemove }) => {
6720
6861
  bgcolor: (theme) => varAlpha(theme.vars.palette.common.whiteChannel, 1)
6721
6862
  }
6722
6863
  },
6723
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { icon: "NavArrowLeft", width: 20 })
6864
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: "NavArrowLeft", width: 20 })
6724
6865
  }
6725
6866
  ),
6726
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6727
- import_Box10.default,
6867
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6868
+ import_Box9.default,
6728
6869
  {
6729
6870
  ref: scrollRef,
6730
6871
  sx: {
@@ -6742,8 +6883,8 @@ var MultiFilePreview = ({ files, onRemove }) => {
6742
6883
  children: files.map((file, index) => {
6743
6884
  const fileName = typeof file === "string" ? file : file.name;
6744
6885
  const previewUrl = typeof file === "string" ? file : URL.createObjectURL(file);
6745
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
6746
- import_Box10.default,
6886
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
6887
+ import_Box9.default,
6747
6888
  {
6748
6889
  sx: {
6749
6890
  position: "relative",
@@ -6754,8 +6895,8 @@ var MultiFilePreview = ({ files, onRemove }) => {
6754
6895
  flexShrink: 0
6755
6896
  },
6756
6897
  children: [
6757
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6758
- import_Box10.default,
6898
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6899
+ import_Box9.default,
6759
6900
  {
6760
6901
  component: "img",
6761
6902
  alt: fileName,
@@ -6768,7 +6909,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
6768
6909
  }
6769
6910
  }
6770
6911
  ),
6771
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6912
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6772
6913
  DeleteButton,
6773
6914
  {
6774
6915
  onClick: (e) => {
@@ -6784,7 +6925,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
6784
6925
  })
6785
6926
  }
6786
6927
  ),
6787
- showNavigation && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6928
+ showNavigation && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6788
6929
  import_IconButton3.default,
6789
6930
  {
6790
6931
  size: "small",
@@ -6801,14 +6942,14 @@ var MultiFilePreview = ({ files, onRemove }) => {
6801
6942
  bgcolor: (theme) => varAlpha(theme.vars.palette.common.whiteChannel, 1)
6802
6943
  }
6803
6944
  },
6804
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon, { icon: "NavArrowRight", width: 20 })
6945
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: "NavArrowRight", width: 20 })
6805
6946
  }
6806
6947
  )
6807
6948
  ] });
6808
6949
  };
6809
6950
 
6810
6951
  // src/components/Upload/Upload.tsx
6811
- var import_jsx_runtime49 = require("react/jsx-runtime");
6952
+ var import_jsx_runtime50 = require("react/jsx-runtime");
6812
6953
  var Upload = ({
6813
6954
  sx,
6814
6955
  value,
@@ -6835,20 +6976,20 @@ var Upload = ({
6835
6976
  const hasError = isDragReject || !!error2;
6836
6977
  const renderContent = () => {
6837
6978
  if (isUploading) {
6838
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(UploadProgress, { progress: uploadProgress });
6979
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(UploadProgress, { progress: uploadProgress });
6839
6980
  }
6840
6981
  if (hasFile) {
6841
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SingleFilePreview, { file: value });
6982
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SingleFilePreview, { file: value });
6842
6983
  }
6843
6984
  if (hasFiles) {
6844
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MultiFilePreview, { files: value, onRemove });
6985
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(MultiFilePreview, { files: value, onRemove });
6845
6986
  }
6846
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(UploadPlaceholder, { hasError });
6987
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(UploadPlaceholder, { hasError });
6847
6988
  };
6848
6989
  const shouldShowDropzone = !hasFile && !hasFiles && !isUploading;
6849
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_Box11.default, { sx: { width: 1, position: "relative", ...sx }, children: [
6850
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
6851
- import_Box11.default,
6990
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_Box10.default, { sx: { width: 1, position: "relative", ...sx }, children: [
6991
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
6992
+ import_Box10.default,
6852
6993
  {
6853
6994
  ...shouldShowDropzone ? getRootProps() : {},
6854
6995
  sx: {
@@ -6886,52 +7027,52 @@ var Upload = ({
6886
7027
  }
6887
7028
  },
6888
7029
  children: [
6889
- shouldShowDropzone && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("input", { ...getInputProps() }),
7030
+ shouldShowDropzone && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("input", { ...getInputProps() }),
6890
7031
  renderContent()
6891
7032
  ]
6892
7033
  }
6893
7034
  ),
6894
- hasFile && !isUploading && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DeleteButton, { onClick: onDelete }),
6895
- hasFiles && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_Stack3.default, { direction: "row", spacing: 2, sx: { mt: 2 }, children: [
6896
- onRemoveAll && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6897
- import_Button3.default,
7035
+ hasFile && !isUploading && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DeleteButton, { onClick: onDelete }),
7036
+ hasFiles && /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_Stack4.default, { direction: "row", spacing: 2, sx: { mt: 2 }, children: [
7037
+ onRemoveAll && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7038
+ import_Button4.default,
6898
7039
  {
6899
7040
  variant: "outlined",
6900
7041
  color: "inherit",
6901
7042
  size: "small",
6902
7043
  onClick: onRemoveAll,
6903
- startIcon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: "Trash", sx: { width: 14, height: 14 } }),
7044
+ startIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { icon: "Trash", sx: { width: 14, height: 14 } }),
6904
7045
  children: "Remove all"
6905
7046
  }
6906
7047
  ),
6907
- onUpload && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6908
- import_Button3.default,
7048
+ onUpload && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7049
+ import_Button4.default,
6909
7050
  {
6910
7051
  variant: "contained",
6911
7052
  size: "small",
6912
7053
  onClick: onUpload,
6913
- startIcon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: "CloudUpload", sx: { width: 14, height: 14 } }),
7054
+ startIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { icon: "CloudUpload", sx: { width: 14, height: 14 } }),
6914
7055
  children: "Upload files"
6915
7056
  }
6916
7057
  )
6917
7058
  ] }),
6918
- helperText && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_FormHelperText.default, { error: !!error2, sx: { color: "text.body", fontWeight: 500, mt: 1 }, children: helperText }),
6919
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(RejectionFiles, { files: [...fileRejections] })
7059
+ helperText && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_FormHelperText.default, { error: !!error2, sx: { color: "text.body", fontWeight: 500, mt: 1 }, children: helperText }),
7060
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(RejectionFiles, { files: [...fileRejections] })
6920
7061
  ] });
6921
7062
  };
6922
7063
 
6923
7064
  // src/components/HookForm/Form.tsx
6924
7065
  var import_react_hook_form = require("react-hook-form");
6925
- var import_Box12 = __toESM(require("@mui/material/Box"), 1);
6926
- var import_jsx_runtime50 = require("react/jsx-runtime");
7066
+ var import_Box11 = __toESM(require("@mui/material/Box"), 1);
7067
+ var import_jsx_runtime51 = require("react/jsx-runtime");
6927
7068
  var Form = ({
6928
7069
  children,
6929
7070
  onSubmit,
6930
7071
  methods,
6931
7072
  ...rest
6932
7073
  }) => {
6933
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_hook_form.FormProvider, { ...methods, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
6934
- import_Box12.default,
7074
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_hook_form.FormProvider, { ...methods, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7075
+ import_Box11.default,
6935
7076
  {
6936
7077
  component: "form",
6937
7078
  onSubmit: (e) => {
@@ -6950,16 +7091,16 @@ var Form = ({
6950
7091
 
6951
7092
  // src/components/HookForm/RHFSwitch.tsx
6952
7093
  var import_react_hook_form2 = require("react-hook-form");
6953
- var import_Stack4 = __toESM(require("@mui/material/Stack"), 1);
6954
- var import_Box13 = __toESM(require("@mui/material/Box"), 1);
6955
- var import_Typography4 = __toESM(require("@mui/material/Typography"), 1);
7094
+ var import_Stack5 = __toESM(require("@mui/material/Stack"), 1);
7095
+ var import_Box12 = __toESM(require("@mui/material/Box"), 1);
7096
+ var import_Typography5 = __toESM(require("@mui/material/Typography"), 1);
6956
7097
  var import_Switch2 = __toESM(require("@mui/material/Switch"), 1);
6957
7098
  var import_FormGroup = __toESM(require("@mui/material/FormGroup"), 1);
6958
7099
  var import_FormLabel = __toESM(require("@mui/material/FormLabel"), 1);
6959
7100
  var import_FormControl = __toESM(require("@mui/material/FormControl"), 1);
6960
7101
  var import_FormHelperText2 = __toESM(require("@mui/material/FormHelperText"), 1);
6961
7102
  var import_FormControlLabel2 = __toESM(require("@mui/material/FormControlLabel"), 1);
6962
- var import_jsx_runtime51 = require("react/jsx-runtime");
7103
+ var import_jsx_runtime52 = require("react/jsx-runtime");
6963
7104
  var RHFSwitch = ({
6964
7105
  name,
6965
7106
  description,
@@ -6971,16 +7112,16 @@ var RHFSwitch = ({
6971
7112
  }) => {
6972
7113
  const { control } = (0, import_react_hook_form2.useFormContext)();
6973
7114
  const baseAriaLabel = `Switch ${name}`;
6974
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7115
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6975
7116
  import_react_hook_form2.Controller,
6976
7117
  {
6977
7118
  name,
6978
7119
  control,
6979
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_Box13.default, { sx: slotProps?.wrap, children: [
6980
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7120
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_Box12.default, { sx: slotProps?.wrap, children: [
7121
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6981
7122
  import_FormControlLabel2.default,
6982
7123
  {
6983
- control: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7124
+ control: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6984
7125
  import_Switch2.default,
6985
7126
  {
6986
7127
  ...field,
@@ -6995,9 +7136,9 @@ var RHFSwitch = ({
6995
7136
  }
6996
7137
  }
6997
7138
  ),
6998
- label: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_Stack4.default, { children: [
6999
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_Typography4.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: label }),
7000
- description && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_Typography4.default, { variant: "body2", color: "textBody", children: description })
7139
+ label: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_Stack5.default, { children: [
7140
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_Typography5.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: label }),
7141
+ description && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_Typography5.default, { variant: "body2", color: "textBody", children: description })
7001
7142
  ] }),
7002
7143
  sx: {
7003
7144
  alignItems: description ? "flex-start" : "center",
@@ -7006,7 +7147,7 @@ var RHFSwitch = ({
7006
7147
  ...other
7007
7148
  }
7008
7149
  ),
7009
- (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7150
+ (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7010
7151
  import_FormHelperText2.default,
7011
7152
  {
7012
7153
  error: !!error2,
@@ -7029,19 +7170,19 @@ var RHFMultiSwitch = ({
7029
7170
  }) => {
7030
7171
  const { control } = (0, import_react_hook_form2.useFormContext)();
7031
7172
  const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
7032
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7173
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7033
7174
  import_react_hook_form2.Controller,
7034
7175
  {
7035
7176
  name,
7036
7177
  control,
7037
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
7178
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7038
7179
  import_FormControl.default,
7039
7180
  {
7040
7181
  component: "fieldset",
7041
7182
  sx: slotProps?.formControl?.sx,
7042
7183
  ...slotProps?.formControl,
7043
7184
  children: [
7044
- label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7185
+ label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7045
7186
  import_FormLabel.default,
7046
7187
  {
7047
7188
  component: "legend",
@@ -7050,12 +7191,12 @@ var RHFMultiSwitch = ({
7050
7191
  children: label
7051
7192
  }
7052
7193
  ),
7053
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_FormGroup.default, { ...other, children: options.map((option) => {
7194
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_FormGroup.default, { ...other, children: options.map((option) => {
7054
7195
  const itemAriaLabel = option.label || `Option ${option.value}`;
7055
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7196
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7056
7197
  import_FormControlLabel2.default,
7057
7198
  {
7058
- control: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7199
+ control: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7059
7200
  import_Switch2.default,
7060
7201
  {
7061
7202
  checked: (field.value || []).includes(option.value),
@@ -7078,7 +7219,7 @@ var RHFMultiSwitch = ({
7078
7219
  option.value
7079
7220
  );
7080
7221
  }) }),
7081
- (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_FormHelperText2.default, { error: !!error2, sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
7222
+ (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_FormHelperText2.default, { error: !!error2, sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
7082
7223
  ]
7083
7224
  }
7084
7225
  )
@@ -7088,10 +7229,10 @@ var RHFMultiSwitch = ({
7088
7229
 
7089
7230
  // src/components/HookForm/RHFUpload.tsx
7090
7231
  var import_react_hook_form3 = require("react-hook-form");
7091
- var import_jsx_runtime52 = require("react/jsx-runtime");
7232
+ var import_jsx_runtime53 = require("react/jsx-runtime");
7092
7233
  var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
7093
7234
  const { control, setValue } = (0, import_react_hook_form3.useFormContext)();
7094
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7235
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7095
7236
  import_react_hook_form3.Controller,
7096
7237
  {
7097
7238
  name,
@@ -7119,7 +7260,7 @@ var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
7119
7260
  const onRemoveAll = () => {
7120
7261
  setValue(name, [], { shouldValidate: true });
7121
7262
  };
7122
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7263
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7123
7264
  Upload,
7124
7265
  {
7125
7266
  multiple,
@@ -7145,11 +7286,11 @@ var import_react_hook_form4 = require("react-hook-form");
7145
7286
  // src/components/OTPInput/index.tsx
7146
7287
  var import_react14 = require("react");
7147
7288
  var import_styles37 = require("@mui/material/styles");
7148
- var import_Box14 = __toESM(require("@mui/material/Box"), 1);
7289
+ var import_Box13 = __toESM(require("@mui/material/Box"), 1);
7149
7290
  var import_FormHelperText3 = __toESM(require("@mui/material/FormHelperText"), 1);
7150
7291
  var import_InputBase3 = require("@mui/material/InputBase");
7151
7292
  var import_TextField2 = __toESM(require("@mui/material/TextField"), 1);
7152
- var import_jsx_runtime53 = require("react/jsx-runtime");
7293
+ var import_jsx_runtime54 = require("react/jsx-runtime");
7153
7294
  var OTPInput = (props) => {
7154
7295
  const { length = 6, onChange, onComplete, error: error2, helperText, containerProps, ...rest } = props;
7155
7296
  const theme = (0, import_styles37.useTheme)();
@@ -7217,9 +7358,9 @@ var OTPInput = (props) => {
7217
7358
  onComplete?.(newOtp.join(""));
7218
7359
  }
7219
7360
  };
7220
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
7221
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_Box14.default, { display: "flex", justifyContent: "center", ...containerProps, children: otp.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7222
- import_Box14.default,
7361
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
7362
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_Box13.default, { display: "flex", justifyContent: "center", ...containerProps, children: otp.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7363
+ import_Box13.default,
7223
7364
  {
7224
7365
  display: "flex",
7225
7366
  alignItems: "center",
@@ -7228,7 +7369,7 @@ var OTPInput = (props) => {
7228
7369
  mr: 1.5
7229
7370
  }
7230
7371
  },
7231
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7372
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7232
7373
  import_TextField2.default,
7233
7374
  {
7234
7375
  size: "medium",
@@ -7311,21 +7452,21 @@ var OTPInput = (props) => {
7311
7452
  },
7312
7453
  index
7313
7454
  )) }),
7314
- error2 && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_FormHelperText3.default, { sx: { color: "error.main" }, children: helperText })
7455
+ error2 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_FormHelperText3.default, { sx: { color: "error.main" }, children: helperText })
7315
7456
  ] });
7316
7457
  };
7317
7458
  var OTPInput_default = OTPInput;
7318
7459
 
7319
7460
  // src/components/HookForm/RHFOTPInput.tsx
7320
- var import_jsx_runtime54 = require("react/jsx-runtime");
7461
+ var import_jsx_runtime55 = require("react/jsx-runtime");
7321
7462
  var RHFOTPInput = ({ name, length = 6, helperText, ...rest }) => {
7322
7463
  const { control, setValue } = (0, import_react_hook_form4.useFormContext)();
7323
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7464
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7324
7465
  import_react_hook_form4.Controller,
7325
7466
  {
7326
7467
  name,
7327
7468
  control,
7328
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7469
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7329
7470
  OTPInput_default,
7330
7471
  {
7331
7472
  length,
@@ -7345,16 +7486,16 @@ var import_react_hook_form5 = require("react-hook-form");
7345
7486
  var import_IconButton4 = __toESM(require("@mui/material/IconButton"), 1);
7346
7487
  var import_InputAdornment2 = __toESM(require("@mui/material/InputAdornment"), 1);
7347
7488
  var import_TextField3 = __toESM(require("@mui/material/TextField"), 1);
7348
- var import_jsx_runtime55 = require("react/jsx-runtime");
7489
+ var import_jsx_runtime56 = require("react/jsx-runtime");
7349
7490
  var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
7350
7491
  const { control } = (0, import_react_hook_form5.useFormContext)();
7351
7492
  const passwordVisibility = useBoolean();
7352
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7493
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7353
7494
  import_react_hook_form5.Controller,
7354
7495
  {
7355
7496
  name,
7356
7497
  control,
7357
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7498
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7358
7499
  import_TextField3.default,
7359
7500
  {
7360
7501
  ...field,
@@ -7375,7 +7516,7 @@ var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
7375
7516
  input: {
7376
7517
  ...slotProps?.input,
7377
7518
  ...type === "password" && {
7378
- endAdornment: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_InputAdornment2.default, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_IconButton4.default, { edge: "end", onClick: passwordVisibility.onToggle, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7519
+ endAdornment: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_InputAdornment2.default, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_IconButton4.default, { edge: "end", onClick: passwordVisibility.onToggle, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7379
7520
  Icon,
7380
7521
  {
7381
7522
  icon: passwordVisibility.value ? "EyeClosed" : "Eye",
@@ -7394,15 +7535,15 @@ var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
7394
7535
 
7395
7536
  // src/components/HookForm/RHFRadioGroup.tsx
7396
7537
  var import_react_hook_form6 = require("react-hook-form");
7397
- var import_Stack5 = __toESM(require("@mui/material/Stack"), 1);
7398
- var import_Typography5 = __toESM(require("@mui/material/Typography"), 1);
7538
+ var import_Stack6 = __toESM(require("@mui/material/Stack"), 1);
7539
+ var import_Typography6 = __toESM(require("@mui/material/Typography"), 1);
7399
7540
  var import_Radio2 = __toESM(require("@mui/material/Radio"), 1);
7400
7541
  var import_FormControlLabel3 = __toESM(require("@mui/material/FormControlLabel"), 1);
7401
7542
  var import_FormLabel2 = __toESM(require("@mui/material/FormLabel"), 1);
7402
7543
  var import_RadioGroup = __toESM(require("@mui/material/RadioGroup"), 1);
7403
7544
  var import_FormControl2 = __toESM(require("@mui/material/FormControl"), 1);
7404
7545
  var import_FormHelperText4 = __toESM(require("@mui/material/FormHelperText"), 1);
7405
- var import_jsx_runtime56 = require("react/jsx-runtime");
7546
+ var import_jsx_runtime57 = require("react/jsx-runtime");
7406
7547
  var RHFRadioGroup = ({
7407
7548
  name,
7408
7549
  label,
@@ -7414,13 +7555,13 @@ var RHFRadioGroup = ({
7414
7555
  const { control } = (0, import_react_hook_form6.useFormContext)();
7415
7556
  const labelledby = `${name}-radio-buttons-group-label`;
7416
7557
  const ariaLabel = (val) => `Radio ${val}`;
7417
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7558
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7418
7559
  import_react_hook_form6.Controller,
7419
7560
  {
7420
7561
  name,
7421
7562
  control,
7422
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_FormControl2.default, { component: "fieldset", sx: slotProps?.wrap, children: [
7423
- label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7563
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_FormControl2.default, { component: "fieldset", sx: slotProps?.wrap, children: [
7564
+ label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7424
7565
  import_FormLabel2.default,
7425
7566
  {
7426
7567
  id: labelledby,
@@ -7430,11 +7571,11 @@ var RHFRadioGroup = ({
7430
7571
  children: label
7431
7572
  }
7432
7573
  ),
7433
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_RadioGroup.default, { ...field, "aria-labelledby": labelledby, ...other, children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7574
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_RadioGroup.default, { ...field, "aria-labelledby": labelledby, ...other, children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7434
7575
  import_FormControlLabel3.default,
7435
7576
  {
7436
7577
  value: option.value,
7437
- control: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7578
+ control: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7438
7579
  import_Radio2.default,
7439
7580
  {
7440
7581
  ...slotProps?.radio,
@@ -7446,9 +7587,9 @@ var RHFRadioGroup = ({
7446
7587
  }
7447
7588
  }
7448
7589
  ),
7449
- label: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_Stack5.default, { children: [
7450
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_Typography5.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: option.label }),
7451
- option?.description && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_Typography5.default, { variant: "body2", color: "textBody", children: option?.description })
7590
+ label: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_Stack6.default, { children: [
7591
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_Typography6.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: option.label }),
7592
+ option?.description && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_Typography6.default, { variant: "body2", color: "textBody", children: option?.description })
7452
7593
  ] }),
7453
7594
  sx: {
7454
7595
  alignItems: option?.description ? "flex-start" : "center"
@@ -7456,7 +7597,7 @@ var RHFRadioGroup = ({
7456
7597
  },
7457
7598
  option.value
7458
7599
  )) }),
7459
- (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_FormHelperText4.default, { error: !!error2, sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
7600
+ (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_FormHelperText4.default, { error: !!error2, sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
7460
7601
  ] })
7461
7602
  }
7462
7603
  );
@@ -7466,7 +7607,7 @@ var RHFRadioGroup = ({
7466
7607
  var import_react_hook_form7 = require("react-hook-form");
7467
7608
  var import_TextField4 = __toESM(require("@mui/material/TextField"), 1);
7468
7609
  var import_Autocomplete4 = __toESM(require("@mui/material/Autocomplete"), 1);
7469
- var import_jsx_runtime57 = require("react/jsx-runtime");
7610
+ var import_jsx_runtime58 = require("react/jsx-runtime");
7470
7611
  var RHFAutocomplete = ({
7471
7612
  name,
7472
7613
  label,
@@ -7477,12 +7618,12 @@ var RHFAutocomplete = ({
7477
7618
  ...other
7478
7619
  }) => {
7479
7620
  const { control, setValue } = (0, import_react_hook_form7.useFormContext)();
7480
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7621
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7481
7622
  import_react_hook_form7.Controller,
7482
7623
  {
7483
7624
  name,
7484
7625
  control,
7485
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7626
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7486
7627
  import_Autocomplete4.default,
7487
7628
  {
7488
7629
  ...field,
@@ -7491,7 +7632,7 @@ var RHFAutocomplete = ({
7491
7632
  setValue(name, newValue, { shouldValidate: true });
7492
7633
  handleChange?.(newValue);
7493
7634
  },
7494
- renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7635
+ renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7495
7636
  import_TextField4.default,
7496
7637
  {
7497
7638
  label,
@@ -7511,16 +7652,16 @@ var RHFAutocomplete = ({
7511
7652
 
7512
7653
  // src/components/HookForm/RHFCheckbox.tsx
7513
7654
  var import_react_hook_form8 = require("react-hook-form");
7514
- var import_Stack6 = __toESM(require("@mui/material/Stack"), 1);
7515
- var import_Box15 = __toESM(require("@mui/material/Box"), 1);
7516
- var import_Typography6 = __toESM(require("@mui/material/Typography"), 1);
7655
+ var import_Stack7 = __toESM(require("@mui/material/Stack"), 1);
7656
+ var import_Box14 = __toESM(require("@mui/material/Box"), 1);
7657
+ var import_Typography7 = __toESM(require("@mui/material/Typography"), 1);
7517
7658
  var import_Checkbox3 = __toESM(require("@mui/material/Checkbox"), 1);
7518
7659
  var import_FormGroup2 = __toESM(require("@mui/material/FormGroup"), 1);
7519
7660
  var import_FormLabel3 = __toESM(require("@mui/material/FormLabel"), 1);
7520
7661
  var import_FormControl3 = __toESM(require("@mui/material/FormControl"), 1);
7521
7662
  var import_FormHelperText5 = __toESM(require("@mui/material/FormHelperText"), 1);
7522
7663
  var import_FormControlLabel4 = __toESM(require("@mui/material/FormControlLabel"), 1);
7523
- var import_jsx_runtime58 = require("react/jsx-runtime");
7664
+ var import_jsx_runtime59 = require("react/jsx-runtime");
7524
7665
  var RHFCheckbox = ({
7525
7666
  name,
7526
7667
  description,
@@ -7532,16 +7673,16 @@ var RHFCheckbox = ({
7532
7673
  }) => {
7533
7674
  const { control } = (0, import_react_hook_form8.useFormContext)();
7534
7675
  const baseAriaLabel = `Checkbox for ${name}`;
7535
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7676
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7536
7677
  import_react_hook_form8.Controller,
7537
7678
  {
7538
7679
  name,
7539
7680
  control,
7540
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_Box15.default, { sx: slotProps?.wrap, children: [
7541
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7681
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_Box14.default, { sx: slotProps?.wrap, children: [
7682
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7542
7683
  import_FormControlLabel4.default,
7543
7684
  {
7544
- control: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7685
+ control: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7545
7686
  import_Checkbox3.default,
7546
7687
  {
7547
7688
  ...field,
@@ -7556,9 +7697,9 @@ var RHFCheckbox = ({
7556
7697
  }
7557
7698
  }
7558
7699
  ),
7559
- label: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_Stack6.default, { children: [
7560
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_Typography6.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: label }),
7561
- description && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_Typography6.default, { variant: "body2", color: "textBody", children: description })
7700
+ label: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_Stack7.default, { children: [
7701
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_Typography7.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: label }),
7702
+ description && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_Typography7.default, { variant: "body2", color: "textBody", children: description })
7562
7703
  ] }),
7563
7704
  sx: {
7564
7705
  alignItems: description ? "flex-start" : "center",
@@ -7567,7 +7708,7 @@ var RHFCheckbox = ({
7567
7708
  ...other
7568
7709
  }
7569
7710
  ),
7570
- (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_FormHelperText5.default, { error: !!error2, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
7711
+ (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_FormHelperText5.default, { error: !!error2, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
7571
7712
  ] })
7572
7713
  }
7573
7714
  );
@@ -7583,13 +7724,13 @@ var RHFMultiCheckbox = ({
7583
7724
  }) => {
7584
7725
  const { control } = (0, import_react_hook_form8.useFormContext)();
7585
7726
  const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
7586
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7727
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7587
7728
  import_react_hook_form8.Controller,
7588
7729
  {
7589
7730
  name,
7590
7731
  control,
7591
7732
  defaultValue: [],
7592
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
7733
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
7593
7734
  import_FormControl3.default,
7594
7735
  {
7595
7736
  component: "fieldset",
@@ -7597,7 +7738,7 @@ var RHFMultiCheckbox = ({
7597
7738
  sx: slotProps?.formControl?.sx,
7598
7739
  ...slotProps?.formControl,
7599
7740
  children: [
7600
- label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7741
+ label && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7601
7742
  import_FormLabel3.default,
7602
7743
  {
7603
7744
  component: "legend",
@@ -7606,12 +7747,12 @@ var RHFMultiCheckbox = ({
7606
7747
  children: label
7607
7748
  }
7608
7749
  ),
7609
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_FormGroup2.default, { row, ...other, children: options.map((option) => {
7750
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_FormGroup2.default, { row, ...other, children: options.map((option) => {
7610
7751
  const itemAriaLabel = option.label || `Option ${option.value}`;
7611
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7752
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7612
7753
  import_FormControlLabel4.default,
7613
7754
  {
7614
- control: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7755
+ control: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7615
7756
  import_Checkbox3.default,
7616
7757
  {
7617
7758
  checked: (field.value || []).includes(option.value),
@@ -7629,9 +7770,9 @@ var RHFMultiCheckbox = ({
7629
7770
  }
7630
7771
  }
7631
7772
  ),
7632
- label: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_Stack6.default, { children: [
7633
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_Typography6.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: option.label }),
7634
- option?.description && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_Typography6.default, { variant: "body2", color: "textBody", children: option?.description })
7773
+ label: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_Stack7.default, { children: [
7774
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_Typography7.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: option.label }),
7775
+ option?.description && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_Typography7.default, { variant: "body2", color: "textBody", children: option?.description })
7635
7776
  ] }),
7636
7777
  sx: {
7637
7778
  alignItems: option?.description ? "flex-start" : "center"
@@ -7640,7 +7781,7 @@ var RHFMultiCheckbox = ({
7640
7781
  option.value
7641
7782
  );
7642
7783
  }) }),
7643
- (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7784
+ (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7644
7785
  import_FormHelperText5.default,
7645
7786
  {
7646
7787
  sx: { mx: 0, ...slotProps?.formHelperText?.sx },
@@ -7670,29 +7811,29 @@ var Field = {
7670
7811
  // src/components/CopyButton/index.tsx
7671
7812
  var import_Tooltip2 = __toESM(require("@mui/material/Tooltip"), 1);
7672
7813
  var import_IconButton5 = __toESM(require("@mui/material/IconButton"), 1);
7673
- var import_jsx_runtime59 = require("react/jsx-runtime");
7814
+ var import_jsx_runtime60 = require("react/jsx-runtime");
7674
7815
  var CopyButton = ({ text: text2, size = "small" }) => {
7675
7816
  const { copy, isCopied } = useCopyToClipboard();
7676
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_Tooltip2.default, { title: isCopied ? "Copied" : "Copy", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7817
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_Tooltip2.default, { title: isCopied ? "Copied" : "Copy", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7677
7818
  import_IconButton5.default,
7678
7819
  {
7679
7820
  size,
7680
7821
  onClick: () => copy(text2),
7681
7822
  "aria-label": "copy token",
7682
7823
  sx: { color: "icon.black" },
7683
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { icon: isCopied ? "ClipboardCheck" : "Copy", sx: { width: 20, height: 20 } })
7824
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { icon: isCopied ? "ClipboardCheck" : "Copy", sx: { width: 20, height: 20 } })
7684
7825
  }
7685
7826
  ) });
7686
7827
  };
7687
7828
 
7688
7829
  // src/components/LoadingScreen/index.tsx
7689
7830
  var import_Portal = __toESM(require("@mui/material/Portal"), 1);
7690
- var import_Box16 = __toESM(require("@mui/material/Box"), 1);
7831
+ var import_Box15 = __toESM(require("@mui/material/Box"), 1);
7691
7832
  var import_LinearProgress = __toESM(require("@mui/material/LinearProgress"), 1);
7692
- var import_jsx_runtime60 = require("react/jsx-runtime");
7833
+ var import_jsx_runtime61 = require("react/jsx-runtime");
7693
7834
  var LoadingScreen = ({ portal, sx, ...rest }) => {
7694
- const content = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7695
- import_Box16.default,
7835
+ const content = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
7836
+ import_Box15.default,
7696
7837
  {
7697
7838
  sx: {
7698
7839
  px: 5,
@@ -7705,17 +7846,17 @@ var LoadingScreen = ({ portal, sx, ...rest }) => {
7705
7846
  ...sx
7706
7847
  },
7707
7848
  ...rest,
7708
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_LinearProgress.default, { color: "primary", sx: { width: 1, maxWidth: 360 } })
7849
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_LinearProgress.default, { color: "primary", sx: { width: 1, maxWidth: 360 } })
7709
7850
  }
7710
7851
  );
7711
7852
  if (portal) {
7712
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_Portal.default, { children: content });
7853
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_Portal.default, { children: content });
7713
7854
  }
7714
7855
  return content;
7715
7856
  };
7716
7857
  var SplashScreen = ({ portal, sx, ...rest }) => {
7717
- const content = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7718
- import_Box16.default,
7858
+ const content = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
7859
+ import_Box15.default,
7719
7860
  {
7720
7861
  sx: {
7721
7862
  right: 0,
@@ -7731,11 +7872,11 @@ var SplashScreen = ({ portal, sx, ...rest }) => {
7731
7872
  ...sx
7732
7873
  },
7733
7874
  ...rest,
7734
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(AnimatedLogo, {})
7875
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AnimatedLogo, {})
7735
7876
  }
7736
7877
  );
7737
7878
  if (portal) {
7738
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_Portal.default, { children: content });
7879
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_Portal.default, { children: content });
7739
7880
  }
7740
7881
  return content;
7741
7882
  };
@@ -7750,6 +7891,7 @@ var SplashScreen = ({ portal, sx, ...rest }) => {
7750
7891
  CloudUpload,
7751
7892
  Copy,
7752
7893
  CopyButton,
7894
+ EmptyContent,
7753
7895
  Eye,
7754
7896
  EyeClosed,
7755
7897
  Field,