@undefine-ui/design-system 2.14.2 → 2.15.1

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,
@@ -1579,6 +1580,12 @@ var list = {
1579
1580
 
1580
1581
  // src/theme/core/components/card.ts
1581
1582
  var MuiCard = {
1583
+ /** **************************************
1584
+ * DEFAULT PROPS
1585
+ *************************************** */
1586
+ defaultProps: {
1587
+ variant: "outlined"
1588
+ },
1582
1589
  /** **************************************
1583
1590
  * STYLE
1584
1591
  *************************************** */
@@ -1586,12 +1593,12 @@ var MuiCard = {
1586
1593
  root: ({ theme, ownerState }) => ({
1587
1594
  position: "relative",
1588
1595
  boxShadow: theme.customShadows["shadow-sm"],
1589
- borderRadius: Number(theme.shape.borderRadius) * 2,
1596
+ borderRadius: theme.radius["radius-md"],
1590
1597
  zIndex: 0,
1591
1598
  // Fix Safari overflow: hidden with border radius
1592
1599
  ...ownerState.variant === "outlined" && {
1593
1600
  boxShadow: "none",
1594
- borderColor: varAlpha(theme.palette.grey["200Channel"])
1601
+ borderColor: theme.vars.palette.border.mute
1595
1602
  }
1596
1603
  })
1597
1604
  }
@@ -3679,9 +3686,9 @@ var slider = {
3679
3686
 
3680
3687
  // src/theme/core/components/button.tsx
3681
3688
  var import_Button = require("@mui/material/Button");
3682
- var import_styles12 = require("@mui/material/styles");
3689
+ var import_styles11 = require("@mui/material/styles");
3683
3690
  var import_jsx_runtime33 = require("react/jsx-runtime");
3684
- var spin = import_styles12.keyframes`
3691
+ var spin = import_styles11.keyframes`
3685
3692
  0% {
3686
3693
  transform: rotate(0deg);
3687
3694
  }
@@ -3797,7 +3804,7 @@ var MuiButton = {
3797
3804
  *************************************** */
3798
3805
  defaultProps: {
3799
3806
  color: "primary",
3800
- variant: "outlined",
3807
+ variant: "contained",
3801
3808
  disableElevation: true,
3802
3809
  disableRipple: true,
3803
3810
  loadingIndicator: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { icon: "Loader" })
@@ -4881,12 +4888,11 @@ var MuiPagination = {
4881
4888
  */
4882
4889
  outlined: ({ ownerState, theme }) => ({
4883
4890
  [`& .${import_PaginationItem.paginationItemClasses.root}`]: {
4884
- borderColor: varAlpha(theme.vars.palette.grey["500Channel"], 0.24),
4891
+ borderColor: theme.vars.palette.border.mute,
4892
+ borderRadius: theme.radius["radius-sm"],
4885
4893
  [`&.${import_PaginationItem.paginationItemClasses.selected}`]: {
4886
- borderColor: "currentColor",
4887
- fontWeight: theme.typography.fontWeightSemiBold,
4888
4894
  ...ownerState.color === "standard" && {
4889
- backgroundColor: varAlpha(theme.vars.palette.grey["500Channel"], 0.08)
4895
+ backgroundColor: theme.vars.palette.neutral[200]
4890
4896
  }
4891
4897
  }
4892
4898
  }
@@ -4980,30 +4986,42 @@ var MuiDataGrid = {
4980
4986
  styleOverrides: {
4981
4987
  root: ({ theme }) => ({
4982
4988
  "--unstable_DataGrid-radius": 0,
4983
- "--DataGrid-rowBorderColor": theme.vars.palette.divider,
4984
- "--DataGrid-containerBackground": theme.vars.palette.background.neutral,
4989
+ "--DataGrid-rowBorderColor": theme.vars.palette.border.mute,
4990
+ "--DataGrid-containerBackground": theme.vars.palette.neutral[50],
4985
4991
  "--unstable_DataGrid-headWeight": theme.typography.fontWeightSemiBold,
4986
4992
  borderWidth: 0,
4987
4993
  scrollbarWidth: "thin",
4988
4994
  scrollbarColor: `${varAlpha(theme.vars.palette.text.disableChannel, 0.4)} ${varAlpha(theme.vars.palette.text.disableChannel, 0.08)}`,
4989
- "& .MuiDataGrid-filler > div": { borderTopStyle: "dashed" },
4990
- "& .MuiDataGrid-topContainer::after": { height: 0 }
4995
+ "& .MuiDataGrid-filler > div": { borderTopStyle: "solid" },
4996
+ "& .MuiDataGrid-topContainer::after": { height: 0 },
4997
+ minHeight: 320
4991
4998
  }),
4992
4999
  withBorderColor: { borderColor: "var(--DataGrid-rowBorderColor)" },
4993
5000
  /**
4994
5001
  * Column
4995
5002
  */
5003
+ columnHeaders: ({ theme }) => ({
5004
+ height: theme.spacing(5)
5005
+ }),
4996
5006
  columnHeader: ({ theme }) => ({
4997
- fontSize: 14,
4998
- 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),
4999
5011
  "&--sorted": { color: theme.vars.palette.text.primary }
5000
5012
  }),
5001
- columnSeparator: { color: "var(--DataGrid-rowBorderColor)" },
5013
+ columnHeaderTitle: ({ theme }) => ({
5014
+ fontWeight: theme.typography.fontWeightMedium
5015
+ }),
5016
+ columnSeparator: { color: "var(--DataGrid-rowBorderColor)", visibility: "hidden" },
5002
5017
  /**
5003
5018
  * Row, Cell
5004
5019
  */
5005
5020
  cell: ({ theme }) => ({
5006
- borderTopStyle: "dashed",
5021
+ fontSize: theme.typography.pxToRem(14),
5022
+ fontWeight: theme.typography.fontWeightMedium,
5023
+ color: theme.vars.palette.text.header,
5024
+ borderTopStyle: "solid",
5007
5025
  "&--editing": {
5008
5026
  boxShadow: "none",
5009
5027
  backgroundColor: varAlpha(theme.vars.palette.primary.mainChannel, 0.08)
@@ -5063,13 +5081,8 @@ var MuiDataGrid = {
5063
5081
  /**
5064
5082
  * Footer
5065
5083
  */
5066
- footerContainer: { minHeight: "auto", borderTopStyle: "dashed" },
5084
+ footerContainer: { minHeight: "auto", borderTopStyle: "solid" },
5067
5085
  selectedRowCount: { display: "none", whiteSpace: "nowrap" },
5068
- overlay: ({ theme }) => ({
5069
- [`& .${import_CircularProgress.circularProgressClasses.root}`]: {
5070
- color: theme.vars.palette.text.primary
5071
- }
5072
- }),
5073
5086
  /**
5074
5087
  * Column panel
5075
5088
  */
@@ -5108,6 +5121,12 @@ var MuiDataGrid = {
5108
5121
  backgroundColor: varAlpha(theme.vars.palette.grey["500Channel"], 0.16),
5109
5122
  [`& .${import_SvgIcon2.svgIconClasses.root}`]: { width: 16, height: 16 }
5110
5123
  }
5124
+ }),
5125
+ /** Overlay */
5126
+ overlay: ({ theme }) => ({
5127
+ [`& .${import_CircularProgress.circularProgressClasses.root}`]: {
5128
+ color: theme.vars.palette.text.primary
5129
+ }
5111
5130
  })
5112
5131
  }
5113
5132
  };
@@ -5756,7 +5775,7 @@ var breakpoints = () => ({
5756
5775
  sm: 600,
5757
5776
  md: 900,
5758
5777
  lg: 1200,
5759
- xl: 1536
5778
+ xl: 1400
5760
5779
  }
5761
5780
  });
5762
5781
 
@@ -5792,7 +5811,7 @@ function customSpacing(baseSpacing) {
5792
5811
  }
5793
5812
 
5794
5813
  // src/theme/create-theme.ts
5795
- var import_styles30 = require("@mui/material/styles");
5814
+ var import_styles29 = require("@mui/material/styles");
5796
5815
 
5797
5816
  // src/theme/with-settings/update-theme.ts
5798
5817
  var updateCoreWithSettings = (theme, settings) => {
@@ -5865,7 +5884,7 @@ var createTheme = (settings) => {
5865
5884
  const initialTheme = {
5866
5885
  cssVariables: true,
5867
5886
  colorSchemes,
5868
- breakpoints,
5887
+ breakpoints: breakpoints(),
5869
5888
  defaultColorScheme: settings.colorScheme,
5870
5889
  colorSchemeSelector: "data-mui-color-scheme",
5871
5890
  shadows: shadows(settings.colorScheme),
@@ -5881,7 +5900,7 @@ var createTheme = (settings) => {
5881
5900
  shouldSkipGeneratingVar
5882
5901
  };
5883
5902
  const updateTheme = updateCoreWithSettings(initialTheme, settings);
5884
- const theme = (0, import_styles30.extendTheme)(updateTheme, updateComponentsWithSettings(settings));
5903
+ const theme = (0, import_styles29.extendTheme)(updateTheme, updateComponentsWithSettings(settings));
5885
5904
  return theme;
5886
5905
  };
5887
5906
  var shouldSkipGeneratingVar = (keys) => {
@@ -5917,7 +5936,7 @@ var schemeConfig = {
5917
5936
 
5918
5937
  // src/theme/ThemeProvider.tsx
5919
5938
  var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"), 1);
5920
- var import_styles31 = require("@mui/material/styles");
5939
+ var import_styles30 = require("@mui/material/styles");
5921
5940
  var import__ = require("@fontsource/work-sans/300.css");
5922
5941
  var import__2 = require("@fontsource/work-sans/400.css");
5923
5942
  var import__3 = require("@fontsource/work-sans/500.css");
@@ -5934,7 +5953,7 @@ var ThemeProvider = ({ children }) => {
5934
5953
  const settings = useSettings();
5935
5954
  const theme = createTheme(settings);
5936
5955
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
5937
- import_styles31.ThemeProvider,
5956
+ import_styles30.ThemeProvider,
5938
5957
  {
5939
5958
  theme,
5940
5959
  defaultMode: schemeConfig.defaultMode,
@@ -6097,43 +6116,115 @@ var AnimatedLogo = () => {
6097
6116
  };
6098
6117
 
6099
6118
  // src/components/Table/Table.tsx
6100
- var import_Box4 = __toESM(require("@mui/material/Box"), 1);
6101
6119
  var import_x_data_grid2 = require("@mui/x-data-grid");
6102
6120
 
6103
6121
  // src/components/Table/components/TableNoRows.tsx
6122
+ var import_styles31 = require("@mui/material/styles");
6123
+
6124
+ // src/components/EmptyContent/index.tsx
6104
6125
  var import_Box3 = __toESM(require("@mui/material/Box"), 1);
6105
- 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);
6106
6128
  var import_jsx_runtime40 = require("react/jsx-runtime");
6107
- var StyledGridOverlay = (0, import_styles32.styled)("div")(({ theme }) => ({
6108
- display: "flex",
6109
- flexDirection: "column",
6110
- alignItems: "center",
6111
- justifyContent: "center",
6112
- 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%",
6113
6204
  height: "100%"
6114
6205
  }));
6115
- var TableNoRows = ({ noRowsTitle = "No Rows" }) => {
6116
- 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%" } }) });
6117
6208
  };
6118
6209
  var TableNoRows_default = TableNoRows;
6119
6210
 
6120
6211
  // src/components/Table/components/TablePagination.tsx
6121
- var import_Stack = __toESM(require("@mui/material/Stack"), 1);
6122
- 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);
6123
6216
  var import_Pagination = __toESM(require("@mui/material/Pagination"), 1);
6124
6217
  var import_PaginationItem2 = __toESM(require("@mui/material/PaginationItem"), 1);
6125
6218
  var import_x_data_grid = require("@mui/x-data-grid");
6126
- var import_jsx_runtime41 = require("react/jsx-runtime");
6219
+ var import_jsx_runtime42 = require("react/jsx-runtime");
6127
6220
  var TablePagination = () => {
6221
+ const theme = (0, import_styles32.useTheme)();
6128
6222
  const apiRef = (0, import_x_data_grid.useGridApiContext)();
6129
6223
  const page = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageSelector);
6130
6224
  const pageCount = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageCountSelector);
6131
6225
  const pageSize = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageSizeSelector);
6132
- const rowCount = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridRowCountSelector);
6133
- const from = page * pageSize + 1;
6134
- const to = Math.min((page + 1) * pageSize, rowCount);
6135
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
6136
- import_Stack.default,
6226
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
6227
+ import_Stack2.default,
6137
6228
  {
6138
6229
  direction: "row",
6139
6230
  alignItems: { xs: "flex-end", md: "center" },
@@ -6141,38 +6232,62 @@ var TablePagination = () => {
6141
6232
  width: 1,
6142
6233
  p: 1.5,
6143
6234
  children: [
6144
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
6145
- 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,
6146
6249
  {
6147
6250
  direction: { xs: "column", md: "row" },
6148
6251
  alignItems: { xs: "flex-start", md: "center" },
6149
6252
  spacing: 2,
6150
- children: [
6151
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
6152
- import_Pagination.default,
6153
- {
6154
- size: "medium",
6155
- variant: "outlined",
6156
- shape: "rounded",
6157
- page: page + 1,
6158
- count: pageCount,
6159
- siblingCount: 1,
6160
- showFirstButton: true,
6161
- showLastButton: true,
6162
- onChange: (_, value) => apiRef.current.setPage(value - 1),
6163
- renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_PaginationItem2.default, { ...item })
6164
- }
6165
- ),
6166
- /* @__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: [
6167
- pageSize,
6168
- " Items per page"
6169
- ] }) })
6170
- ]
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
+ )
6171
6268
  }
6172
6269
  ),
6173
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_Typography2.default, { variant: "body2", color: "text.secondary", children: [
6174
- `${from} \u2013 ${to} of ${rowCount !== -1 ? rowCount : `more than ${to}`} items`,
6175
- " "
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
+ )
6176
6291
  ] })
6177
6292
  ]
6178
6293
  }
@@ -6180,29 +6295,35 @@ var TablePagination = () => {
6180
6295
  };
6181
6296
 
6182
6297
  // src/components/Table/Table.tsx
6183
- var import_jsx_runtime42 = require("react/jsx-runtime");
6298
+ var import_jsx_runtime43 = require("react/jsx-runtime");
6184
6299
  var Table = (props) => {
6185
- const { data, showToolbar = false, ...rest } = props;
6186
- 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)(
6187
6303
  import_x_data_grid2.DataGrid,
6188
6304
  {
6189
- rowHeight: 64,
6305
+ rowHeight: 56,
6190
6306
  rows: data,
6191
6307
  pagination: true,
6192
- showToolbar,
6193
6308
  disableColumnFilter: true,
6309
+ disableColumnSelector: true,
6310
+ disableColumnSorting: true,
6311
+ disableColumnMenu: true,
6194
6312
  slots: {
6195
6313
  pagination: TablePagination,
6314
+ noRowsOverlay: TableNoRows_default,
6196
6315
  noResultsOverlay: TableNoRows_default,
6197
- // noRowsOverlay: TableNoRows,
6198
6316
  ...rest.slots
6199
6317
  },
6200
6318
  slotProps: {
6201
- noResultsOverlay: {
6202
- title: "No Results"
6203
- },
6204
6319
  noRowsOverlay: {
6205
- 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."
6206
6327
  },
6207
6328
  loadingOverlay: {
6208
6329
  variant: "skeleton"
@@ -6217,14 +6338,21 @@ var Table = (props) => {
6217
6338
  }
6218
6339
  },
6219
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
+ },
6220
6348
  ...rest
6221
6349
  }
6222
- ) });
6350
+ );
6223
6351
  };
6224
6352
 
6225
6353
  // src/components/Image/index.tsx
6226
6354
  var import_react12 = require("react");
6227
- var import_Box5 = __toESM(require("@mui/material/Box"), 1);
6355
+ var import_Box4 = __toESM(require("@mui/material/Box"), 1);
6228
6356
  var import_Skeleton = __toESM(require("@mui/material/Skeleton"), 1);
6229
6357
 
6230
6358
  // src/components/Image/classes.ts
@@ -6235,7 +6363,7 @@ var imageClasses = {
6235
6363
  };
6236
6364
 
6237
6365
  // src/components/Image/index.tsx
6238
- var import_jsx_runtime43 = require("react/jsx-runtime");
6366
+ var import_jsx_runtime44 = require("react/jsx-runtime");
6239
6367
  var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6240
6368
  const {
6241
6369
  src,
@@ -6334,8 +6462,8 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6334
6462
  const showLoader = status === "idle" || status === "loading";
6335
6463
  const showError = status === "error";
6336
6464
  const loadingAttr = lazy ? "lazy" : imgLoading ?? "eager";
6337
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
6338
- import_Box5.default,
6465
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
6466
+ import_Box4.default,
6339
6467
  {
6340
6468
  className: imageClasses.root.concat(className ? ` ${className}` : ""),
6341
6469
  sx: {
@@ -6349,7 +6477,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6349
6477
  },
6350
6478
  ...rest,
6351
6479
  children: [
6352
- showLoader && (loadingIndicator ?? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
6480
+ showLoader && (loadingIndicator ?? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6353
6481
  import_Skeleton.default,
6354
6482
  {
6355
6483
  animation: "wave",
@@ -6364,8 +6492,8 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6364
6492
  }
6365
6493
  }
6366
6494
  )),
6367
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
6368
- import_Box5.default,
6495
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6496
+ import_Box4.default,
6369
6497
  {
6370
6498
  ref: setRefs,
6371
6499
  component: "img",
@@ -6393,8 +6521,8 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6393
6521
  }
6394
6522
  }
6395
6523
  ),
6396
- withOverlay && !showError && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
6397
- import_Box5.default,
6524
+ withOverlay && !showError && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6525
+ import_Box4.default,
6398
6526
  {
6399
6527
  className: imageClasses.overlay,
6400
6528
  sx: {
@@ -6405,8 +6533,8 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6405
6533
  children: overlay
6406
6534
  }
6407
6535
  ),
6408
- showError && (renderError ?? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
6409
- import_Box5.default,
6536
+ showError && (renderError ?? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6537
+ import_Box4.default,
6410
6538
  {
6411
6539
  className: imageClasses.overlay,
6412
6540
  sx: {
@@ -6430,18 +6558,18 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
6430
6558
 
6431
6559
  // src/components/Upload/Upload.tsx
6432
6560
  var import_react_dropzone = require("react-dropzone");
6433
- var import_Box11 = __toESM(require("@mui/material/Box"), 1);
6434
- var import_Stack3 = __toESM(require("@mui/material/Stack"), 1);
6435
- 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);
6436
6564
  var import_FormHelperText = __toESM(require("@mui/material/FormHelperText"), 1);
6437
6565
 
6438
6566
  // src/components/Upload/components/Placeholder.tsx
6439
- var import_Stack2 = __toESM(require("@mui/material/Stack"), 1);
6440
- var import_Box6 = __toESM(require("@mui/material/Box"), 1);
6441
- 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");
6442
6570
  var UploadPlaceholder = ({ hasError, ...rest }) => {
6443
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
6444
- import_Box6.default,
6571
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
6572
+ import_Box5.default,
6445
6573
  {
6446
6574
  sx: {
6447
6575
  display: "flex",
@@ -6451,7 +6579,7 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
6451
6579
  },
6452
6580
  ...rest,
6453
6581
  children: [
6454
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6582
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6455
6583
  Icon,
6456
6584
  {
6457
6585
  icon: "CloudUpload",
@@ -6462,11 +6590,11 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
6462
6590
  }
6463
6591
  }
6464
6592
  ),
6465
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_Stack2.default, { spacing: 1, sx: { textAlign: "center", mt: 2 }, children: [
6466
- /* @__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: [
6467
6595
  "Drag files here or",
6468
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
6469
- import_Box6.default,
6596
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6597
+ import_Box5.default,
6470
6598
  {
6471
6599
  component: "span",
6472
6600
  sx: {
@@ -6478,8 +6606,8 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
6478
6606
  }
6479
6607
  )
6480
6608
  ] }),
6481
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
6482
- import_Box6.default,
6609
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
6610
+ import_Box5.default,
6483
6611
  {
6484
6612
  sx: {
6485
6613
  typography: "bodyMd",
@@ -6500,9 +6628,9 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
6500
6628
  };
6501
6629
 
6502
6630
  // src/components/Upload/components/RejectionFiles.tsx
6503
- var import_Box7 = __toESM(require("@mui/material/Box"), 1);
6631
+ var import_Box6 = __toESM(require("@mui/material/Box"), 1);
6504
6632
  var import_Paper2 = __toESM(require("@mui/material/Paper"), 1);
6505
- var import_Typography3 = __toESM(require("@mui/material/Typography"), 1);
6633
+ var import_Typography4 = __toESM(require("@mui/material/Typography"), 1);
6506
6634
 
6507
6635
  // src/components/Upload/utils.tsx
6508
6636
  var fileTypeByUrl = (fileUrl = "") => {
@@ -6533,12 +6661,12 @@ var fileData = (file) => {
6533
6661
  };
6534
6662
 
6535
6663
  // src/components/Upload/components/RejectionFiles.tsx
6536
- var import_jsx_runtime45 = require("react/jsx-runtime");
6664
+ var import_jsx_runtime46 = require("react/jsx-runtime");
6537
6665
  var RejectionFiles = ({ files }) => {
6538
6666
  if (!files.length) {
6539
6667
  return null;
6540
6668
  }
6541
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
6669
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6542
6670
  import_Paper2.default,
6543
6671
  {
6544
6672
  variant: "outlined",
@@ -6553,13 +6681,13 @@ var RejectionFiles = ({ files }) => {
6553
6681
  },
6554
6682
  children: files.map(({ file, errors }) => {
6555
6683
  const { path, size } = fileData(file);
6556
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_Box7.default, { sx: { my: 1 }, children: [
6557
- /* @__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: [
6558
6686
  path,
6559
6687
  " - ",
6560
6688
  size ? fData(size) : ""
6561
6689
  ] }),
6562
- 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: [
6563
6691
  "- ",
6564
6692
  error2.message
6565
6693
  ] }, error2.code))
@@ -6570,12 +6698,12 @@ var RejectionFiles = ({ files }) => {
6570
6698
  };
6571
6699
 
6572
6700
  // src/components/Upload/components/UploadProgress.tsx
6573
- var import_Box8 = __toESM(require("@mui/material/Box"), 1);
6701
+ var import_Box7 = __toESM(require("@mui/material/Box"), 1);
6574
6702
  var import_CircularProgress2 = __toESM(require("@mui/material/CircularProgress"), 1);
6575
- var import_jsx_runtime46 = require("react/jsx-runtime");
6703
+ var import_jsx_runtime47 = require("react/jsx-runtime");
6576
6704
  var UploadProgress = ({ progress: progress2 = 20 }) => {
6577
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
6578
- import_Box8.default,
6705
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
6706
+ import_Box7.default,
6579
6707
  {
6580
6708
  sx: {
6581
6709
  display: "flex",
@@ -6585,8 +6713,8 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
6585
6713
  height: "100%"
6586
6714
  },
6587
6715
  children: [
6588
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_Box8.default, { sx: { position: "relative", display: "inline-flex" }, children: [
6589
- /* @__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)(
6590
6718
  import_CircularProgress2.default,
6591
6719
  {
6592
6720
  variant: "determinate",
@@ -6599,7 +6727,7 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
6599
6727
  }
6600
6728
  }
6601
6729
  ),
6602
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6730
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6603
6731
  import_CircularProgress2.default,
6604
6732
  {
6605
6733
  variant: "determinate",
@@ -6611,8 +6739,8 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
6611
6739
  }
6612
6740
  }
6613
6741
  ),
6614
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
6615
- import_Box8.default,
6742
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6743
+ import_Box7.default,
6616
6744
  {
6617
6745
  sx: {
6618
6746
  top: 0,
@@ -6624,11 +6752,11 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
6624
6752
  alignItems: "center",
6625
6753
  justifyContent: "center"
6626
6754
  },
6627
- 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)}` })
6628
6756
  }
6629
6757
  )
6630
6758
  ] }),
6631
- /* @__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" })
6632
6760
  ]
6633
6761
  }
6634
6762
  );
@@ -6636,18 +6764,18 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
6636
6764
 
6637
6765
  // src/components/Upload/components/MultiFilePreview.tsx
6638
6766
  var import_react13 = require("react");
6639
- var import_Box10 = __toESM(require("@mui/material/Box"), 1);
6767
+ var import_Box9 = __toESM(require("@mui/material/Box"), 1);
6640
6768
  var import_IconButton3 = __toESM(require("@mui/material/IconButton"), 1);
6641
6769
 
6642
6770
  // src/components/Upload/components/SingleFilePreview.tsx
6643
- var import_Box9 = __toESM(require("@mui/material/Box"), 1);
6771
+ var import_Box8 = __toESM(require("@mui/material/Box"), 1);
6644
6772
  var import_IconButton2 = __toESM(require("@mui/material/IconButton"), 1);
6645
- var import_jsx_runtime47 = require("react/jsx-runtime");
6773
+ var import_jsx_runtime48 = require("react/jsx-runtime");
6646
6774
  var SingleFilePreview = ({ file }) => {
6647
6775
  const fileName = typeof file === "string" ? file : file.name;
6648
6776
  const previewUrl = typeof file === "string" ? file : URL.createObjectURL(file);
6649
- const renderImg = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6650
- import_Box9.default,
6777
+ const renderImg = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6778
+ import_Box8.default,
6651
6779
  {
6652
6780
  component: "img",
6653
6781
  alt: fileName,
@@ -6660,8 +6788,8 @@ var SingleFilePreview = ({ file }) => {
6660
6788
  }
6661
6789
  }
6662
6790
  );
6663
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6664
- import_Box9.default,
6791
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6792
+ import_Box8.default,
6665
6793
  {
6666
6794
  sx: {
6667
6795
  p: 1,
@@ -6676,7 +6804,7 @@ var SingleFilePreview = ({ file }) => {
6676
6804
  );
6677
6805
  };
6678
6806
  var DeleteButton = ({ sx, ...rest }) => {
6679
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
6807
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6680
6808
  import_IconButton2.default,
6681
6809
  {
6682
6810
  size: "small",
@@ -6695,13 +6823,13 @@ var DeleteButton = ({ sx, ...rest }) => {
6695
6823
  ...sx
6696
6824
  },
6697
6825
  ...rest,
6698
- 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 } })
6699
6827
  }
6700
6828
  );
6701
6829
  };
6702
6830
 
6703
6831
  // src/components/Upload/components/MultiFilePreview.tsx
6704
- var import_jsx_runtime48 = require("react/jsx-runtime");
6832
+ var import_jsx_runtime49 = require("react/jsx-runtime");
6705
6833
  var MultiFilePreview = ({ files, onRemove }) => {
6706
6834
  const scrollRef = (0, import_react13.useRef)(null);
6707
6835
  const handleScroll = (direction) => {
@@ -6715,8 +6843,8 @@ var MultiFilePreview = ({ files, onRemove }) => {
6715
6843
  }
6716
6844
  };
6717
6845
  const showNavigation = files.length > 2;
6718
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_Box10.default, { sx: { position: "relative", width: 1 }, children: [
6719
- 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)(
6720
6848
  import_IconButton3.default,
6721
6849
  {
6722
6850
  size: "small",
@@ -6733,11 +6861,11 @@ var MultiFilePreview = ({ files, onRemove }) => {
6733
6861
  bgcolor: (theme) => varAlpha(theme.vars.palette.common.whiteChannel, 1)
6734
6862
  }
6735
6863
  },
6736
- 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 })
6737
6865
  }
6738
6866
  ),
6739
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6740
- import_Box10.default,
6867
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6868
+ import_Box9.default,
6741
6869
  {
6742
6870
  ref: scrollRef,
6743
6871
  sx: {
@@ -6755,8 +6883,8 @@ var MultiFilePreview = ({ files, onRemove }) => {
6755
6883
  children: files.map((file, index) => {
6756
6884
  const fileName = typeof file === "string" ? file : file.name;
6757
6885
  const previewUrl = typeof file === "string" ? file : URL.createObjectURL(file);
6758
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
6759
- import_Box10.default,
6886
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
6887
+ import_Box9.default,
6760
6888
  {
6761
6889
  sx: {
6762
6890
  position: "relative",
@@ -6767,8 +6895,8 @@ var MultiFilePreview = ({ files, onRemove }) => {
6767
6895
  flexShrink: 0
6768
6896
  },
6769
6897
  children: [
6770
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6771
- import_Box10.default,
6898
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6899
+ import_Box9.default,
6772
6900
  {
6773
6901
  component: "img",
6774
6902
  alt: fileName,
@@ -6781,7 +6909,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
6781
6909
  }
6782
6910
  }
6783
6911
  ),
6784
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6912
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6785
6913
  DeleteButton,
6786
6914
  {
6787
6915
  onClick: (e) => {
@@ -6797,7 +6925,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
6797
6925
  })
6798
6926
  }
6799
6927
  ),
6800
- showNavigation && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
6928
+ showNavigation && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6801
6929
  import_IconButton3.default,
6802
6930
  {
6803
6931
  size: "small",
@@ -6814,14 +6942,14 @@ var MultiFilePreview = ({ files, onRemove }) => {
6814
6942
  bgcolor: (theme) => varAlpha(theme.vars.palette.common.whiteChannel, 1)
6815
6943
  }
6816
6944
  },
6817
- 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 })
6818
6946
  }
6819
6947
  )
6820
6948
  ] });
6821
6949
  };
6822
6950
 
6823
6951
  // src/components/Upload/Upload.tsx
6824
- var import_jsx_runtime49 = require("react/jsx-runtime");
6952
+ var import_jsx_runtime50 = require("react/jsx-runtime");
6825
6953
  var Upload = ({
6826
6954
  sx,
6827
6955
  value,
@@ -6848,20 +6976,20 @@ var Upload = ({
6848
6976
  const hasError = isDragReject || !!error2;
6849
6977
  const renderContent = () => {
6850
6978
  if (isUploading) {
6851
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(UploadProgress, { progress: uploadProgress });
6979
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(UploadProgress, { progress: uploadProgress });
6852
6980
  }
6853
6981
  if (hasFile) {
6854
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SingleFilePreview, { file: value });
6982
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SingleFilePreview, { file: value });
6855
6983
  }
6856
6984
  if (hasFiles) {
6857
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MultiFilePreview, { files: value, onRemove });
6985
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(MultiFilePreview, { files: value, onRemove });
6858
6986
  }
6859
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(UploadPlaceholder, { hasError });
6987
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(UploadPlaceholder, { hasError });
6860
6988
  };
6861
6989
  const shouldShowDropzone = !hasFile && !hasFiles && !isUploading;
6862
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_Box11.default, { sx: { width: 1, position: "relative", ...sx }, children: [
6863
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
6864
- 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,
6865
6993
  {
6866
6994
  ...shouldShowDropzone ? getRootProps() : {},
6867
6995
  sx: {
@@ -6899,52 +7027,52 @@ var Upload = ({
6899
7027
  }
6900
7028
  },
6901
7029
  children: [
6902
- shouldShowDropzone && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("input", { ...getInputProps() }),
7030
+ shouldShowDropzone && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("input", { ...getInputProps() }),
6903
7031
  renderContent()
6904
7032
  ]
6905
7033
  }
6906
7034
  ),
6907
- hasFile && !isUploading && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DeleteButton, { onClick: onDelete }),
6908
- hasFiles && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_Stack3.default, { direction: "row", spacing: 2, sx: { mt: 2 }, children: [
6909
- onRemoveAll && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6910
- 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,
6911
7039
  {
6912
7040
  variant: "outlined",
6913
7041
  color: "inherit",
6914
7042
  size: "small",
6915
7043
  onClick: onRemoveAll,
6916
- 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 } }),
6917
7045
  children: "Remove all"
6918
7046
  }
6919
7047
  ),
6920
- onUpload && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6921
- import_Button3.default,
7048
+ onUpload && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7049
+ import_Button4.default,
6922
7050
  {
6923
7051
  variant: "contained",
6924
7052
  size: "small",
6925
7053
  onClick: onUpload,
6926
- 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 } }),
6927
7055
  children: "Upload files"
6928
7056
  }
6929
7057
  )
6930
7058
  ] }),
6931
- helperText && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_FormHelperText.default, { error: !!error2, sx: { color: "text.body", fontWeight: 500, mt: 1 }, children: helperText }),
6932
- /* @__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] })
6933
7061
  ] });
6934
7062
  };
6935
7063
 
6936
7064
  // src/components/HookForm/Form.tsx
6937
7065
  var import_react_hook_form = require("react-hook-form");
6938
- var import_Box12 = __toESM(require("@mui/material/Box"), 1);
6939
- 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");
6940
7068
  var Form = ({
6941
7069
  children,
6942
7070
  onSubmit,
6943
7071
  methods,
6944
7072
  ...rest
6945
7073
  }) => {
6946
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_hook_form.FormProvider, { ...methods, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
6947
- 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,
6948
7076
  {
6949
7077
  component: "form",
6950
7078
  onSubmit: (e) => {
@@ -6963,16 +7091,16 @@ var Form = ({
6963
7091
 
6964
7092
  // src/components/HookForm/RHFSwitch.tsx
6965
7093
  var import_react_hook_form2 = require("react-hook-form");
6966
- var import_Stack4 = __toESM(require("@mui/material/Stack"), 1);
6967
- var import_Box13 = __toESM(require("@mui/material/Box"), 1);
6968
- 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);
6969
7097
  var import_Switch2 = __toESM(require("@mui/material/Switch"), 1);
6970
7098
  var import_FormGroup = __toESM(require("@mui/material/FormGroup"), 1);
6971
7099
  var import_FormLabel = __toESM(require("@mui/material/FormLabel"), 1);
6972
7100
  var import_FormControl = __toESM(require("@mui/material/FormControl"), 1);
6973
7101
  var import_FormHelperText2 = __toESM(require("@mui/material/FormHelperText"), 1);
6974
7102
  var import_FormControlLabel2 = __toESM(require("@mui/material/FormControlLabel"), 1);
6975
- var import_jsx_runtime51 = require("react/jsx-runtime");
7103
+ var import_jsx_runtime52 = require("react/jsx-runtime");
6976
7104
  var RHFSwitch = ({
6977
7105
  name,
6978
7106
  description,
@@ -6984,16 +7112,16 @@ var RHFSwitch = ({
6984
7112
  }) => {
6985
7113
  const { control } = (0, import_react_hook_form2.useFormContext)();
6986
7114
  const baseAriaLabel = `Switch ${name}`;
6987
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7115
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6988
7116
  import_react_hook_form2.Controller,
6989
7117
  {
6990
7118
  name,
6991
7119
  control,
6992
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_Box13.default, { sx: slotProps?.wrap, children: [
6993
- /* @__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)(
6994
7122
  import_FormControlLabel2.default,
6995
7123
  {
6996
- control: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7124
+ control: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
6997
7125
  import_Switch2.default,
6998
7126
  {
6999
7127
  ...field,
@@ -7008,9 +7136,9 @@ var RHFSwitch = ({
7008
7136
  }
7009
7137
  }
7010
7138
  ),
7011
- label: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_Stack4.default, { children: [
7012
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_Typography4.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: label }),
7013
- 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 })
7014
7142
  ] }),
7015
7143
  sx: {
7016
7144
  alignItems: description ? "flex-start" : "center",
@@ -7019,7 +7147,7 @@ var RHFSwitch = ({
7019
7147
  ...other
7020
7148
  }
7021
7149
  ),
7022
- (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7150
+ (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7023
7151
  import_FormHelperText2.default,
7024
7152
  {
7025
7153
  error: !!error2,
@@ -7042,19 +7170,19 @@ var RHFMultiSwitch = ({
7042
7170
  }) => {
7043
7171
  const { control } = (0, import_react_hook_form2.useFormContext)();
7044
7172
  const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
7045
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7173
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7046
7174
  import_react_hook_form2.Controller,
7047
7175
  {
7048
7176
  name,
7049
7177
  control,
7050
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
7178
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7051
7179
  import_FormControl.default,
7052
7180
  {
7053
7181
  component: "fieldset",
7054
7182
  sx: slotProps?.formControl?.sx,
7055
7183
  ...slotProps?.formControl,
7056
7184
  children: [
7057
- label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7185
+ label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7058
7186
  import_FormLabel.default,
7059
7187
  {
7060
7188
  component: "legend",
@@ -7063,12 +7191,12 @@ var RHFMultiSwitch = ({
7063
7191
  children: label
7064
7192
  }
7065
7193
  ),
7066
- /* @__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) => {
7067
7195
  const itemAriaLabel = option.label || `Option ${option.value}`;
7068
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7196
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7069
7197
  import_FormControlLabel2.default,
7070
7198
  {
7071
- control: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7199
+ control: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7072
7200
  import_Switch2.default,
7073
7201
  {
7074
7202
  checked: (field.value || []).includes(option.value),
@@ -7091,7 +7219,7 @@ var RHFMultiSwitch = ({
7091
7219
  option.value
7092
7220
  );
7093
7221
  }) }),
7094
- (!!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 })
7095
7223
  ]
7096
7224
  }
7097
7225
  )
@@ -7101,10 +7229,10 @@ var RHFMultiSwitch = ({
7101
7229
 
7102
7230
  // src/components/HookForm/RHFUpload.tsx
7103
7231
  var import_react_hook_form3 = require("react-hook-form");
7104
- var import_jsx_runtime52 = require("react/jsx-runtime");
7232
+ var import_jsx_runtime53 = require("react/jsx-runtime");
7105
7233
  var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
7106
7234
  const { control, setValue } = (0, import_react_hook_form3.useFormContext)();
7107
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7235
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7108
7236
  import_react_hook_form3.Controller,
7109
7237
  {
7110
7238
  name,
@@ -7132,7 +7260,7 @@ var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
7132
7260
  const onRemoveAll = () => {
7133
7261
  setValue(name, [], { shouldValidate: true });
7134
7262
  };
7135
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7263
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7136
7264
  Upload,
7137
7265
  {
7138
7266
  multiple,
@@ -7158,11 +7286,11 @@ var import_react_hook_form4 = require("react-hook-form");
7158
7286
  // src/components/OTPInput/index.tsx
7159
7287
  var import_react14 = require("react");
7160
7288
  var import_styles37 = require("@mui/material/styles");
7161
- var import_Box14 = __toESM(require("@mui/material/Box"), 1);
7289
+ var import_Box13 = __toESM(require("@mui/material/Box"), 1);
7162
7290
  var import_FormHelperText3 = __toESM(require("@mui/material/FormHelperText"), 1);
7163
7291
  var import_InputBase3 = require("@mui/material/InputBase");
7164
7292
  var import_TextField2 = __toESM(require("@mui/material/TextField"), 1);
7165
- var import_jsx_runtime53 = require("react/jsx-runtime");
7293
+ var import_jsx_runtime54 = require("react/jsx-runtime");
7166
7294
  var OTPInput = (props) => {
7167
7295
  const { length = 6, onChange, onComplete, error: error2, helperText, containerProps, ...rest } = props;
7168
7296
  const theme = (0, import_styles37.useTheme)();
@@ -7230,9 +7358,9 @@ var OTPInput = (props) => {
7230
7358
  onComplete?.(newOtp.join(""));
7231
7359
  }
7232
7360
  };
7233
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
7234
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_Box14.default, { display: "flex", justifyContent: "center", ...containerProps, children: otp.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7235
- 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,
7236
7364
  {
7237
7365
  display: "flex",
7238
7366
  alignItems: "center",
@@ -7241,7 +7369,7 @@ var OTPInput = (props) => {
7241
7369
  mr: 1.5
7242
7370
  }
7243
7371
  },
7244
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7372
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7245
7373
  import_TextField2.default,
7246
7374
  {
7247
7375
  size: "medium",
@@ -7324,21 +7452,21 @@ var OTPInput = (props) => {
7324
7452
  },
7325
7453
  index
7326
7454
  )) }),
7327
- 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 })
7328
7456
  ] });
7329
7457
  };
7330
7458
  var OTPInput_default = OTPInput;
7331
7459
 
7332
7460
  // src/components/HookForm/RHFOTPInput.tsx
7333
- var import_jsx_runtime54 = require("react/jsx-runtime");
7461
+ var import_jsx_runtime55 = require("react/jsx-runtime");
7334
7462
  var RHFOTPInput = ({ name, length = 6, helperText, ...rest }) => {
7335
7463
  const { control, setValue } = (0, import_react_hook_form4.useFormContext)();
7336
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7464
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7337
7465
  import_react_hook_form4.Controller,
7338
7466
  {
7339
7467
  name,
7340
7468
  control,
7341
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7469
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7342
7470
  OTPInput_default,
7343
7471
  {
7344
7472
  length,
@@ -7358,16 +7486,16 @@ var import_react_hook_form5 = require("react-hook-form");
7358
7486
  var import_IconButton4 = __toESM(require("@mui/material/IconButton"), 1);
7359
7487
  var import_InputAdornment2 = __toESM(require("@mui/material/InputAdornment"), 1);
7360
7488
  var import_TextField3 = __toESM(require("@mui/material/TextField"), 1);
7361
- var import_jsx_runtime55 = require("react/jsx-runtime");
7489
+ var import_jsx_runtime56 = require("react/jsx-runtime");
7362
7490
  var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
7363
7491
  const { control } = (0, import_react_hook_form5.useFormContext)();
7364
7492
  const passwordVisibility = useBoolean();
7365
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7493
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7366
7494
  import_react_hook_form5.Controller,
7367
7495
  {
7368
7496
  name,
7369
7497
  control,
7370
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7498
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7371
7499
  import_TextField3.default,
7372
7500
  {
7373
7501
  ...field,
@@ -7388,7 +7516,7 @@ var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
7388
7516
  input: {
7389
7517
  ...slotProps?.input,
7390
7518
  ...type === "password" && {
7391
- 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)(
7392
7520
  Icon,
7393
7521
  {
7394
7522
  icon: passwordVisibility.value ? "EyeClosed" : "Eye",
@@ -7407,15 +7535,15 @@ var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
7407
7535
 
7408
7536
  // src/components/HookForm/RHFRadioGroup.tsx
7409
7537
  var import_react_hook_form6 = require("react-hook-form");
7410
- var import_Stack5 = __toESM(require("@mui/material/Stack"), 1);
7411
- 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);
7412
7540
  var import_Radio2 = __toESM(require("@mui/material/Radio"), 1);
7413
7541
  var import_FormControlLabel3 = __toESM(require("@mui/material/FormControlLabel"), 1);
7414
7542
  var import_FormLabel2 = __toESM(require("@mui/material/FormLabel"), 1);
7415
7543
  var import_RadioGroup = __toESM(require("@mui/material/RadioGroup"), 1);
7416
7544
  var import_FormControl2 = __toESM(require("@mui/material/FormControl"), 1);
7417
7545
  var import_FormHelperText4 = __toESM(require("@mui/material/FormHelperText"), 1);
7418
- var import_jsx_runtime56 = require("react/jsx-runtime");
7546
+ var import_jsx_runtime57 = require("react/jsx-runtime");
7419
7547
  var RHFRadioGroup = ({
7420
7548
  name,
7421
7549
  label,
@@ -7427,13 +7555,13 @@ var RHFRadioGroup = ({
7427
7555
  const { control } = (0, import_react_hook_form6.useFormContext)();
7428
7556
  const labelledby = `${name}-radio-buttons-group-label`;
7429
7557
  const ariaLabel = (val) => `Radio ${val}`;
7430
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7558
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7431
7559
  import_react_hook_form6.Controller,
7432
7560
  {
7433
7561
  name,
7434
7562
  control,
7435
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_FormControl2.default, { component: "fieldset", sx: slotProps?.wrap, children: [
7436
- 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)(
7437
7565
  import_FormLabel2.default,
7438
7566
  {
7439
7567
  id: labelledby,
@@ -7443,11 +7571,11 @@ var RHFRadioGroup = ({
7443
7571
  children: label
7444
7572
  }
7445
7573
  ),
7446
- /* @__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)(
7447
7575
  import_FormControlLabel3.default,
7448
7576
  {
7449
7577
  value: option.value,
7450
- control: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7578
+ control: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7451
7579
  import_Radio2.default,
7452
7580
  {
7453
7581
  ...slotProps?.radio,
@@ -7459,9 +7587,9 @@ var RHFRadioGroup = ({
7459
7587
  }
7460
7588
  }
7461
7589
  ),
7462
- label: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_Stack5.default, { children: [
7463
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_Typography5.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: option.label }),
7464
- 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 })
7465
7593
  ] }),
7466
7594
  sx: {
7467
7595
  alignItems: option?.description ? "flex-start" : "center"
@@ -7469,7 +7597,7 @@ var RHFRadioGroup = ({
7469
7597
  },
7470
7598
  option.value
7471
7599
  )) }),
7472
- (!!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 })
7473
7601
  ] })
7474
7602
  }
7475
7603
  );
@@ -7479,7 +7607,7 @@ var RHFRadioGroup = ({
7479
7607
  var import_react_hook_form7 = require("react-hook-form");
7480
7608
  var import_TextField4 = __toESM(require("@mui/material/TextField"), 1);
7481
7609
  var import_Autocomplete4 = __toESM(require("@mui/material/Autocomplete"), 1);
7482
- var import_jsx_runtime57 = require("react/jsx-runtime");
7610
+ var import_jsx_runtime58 = require("react/jsx-runtime");
7483
7611
  var RHFAutocomplete = ({
7484
7612
  name,
7485
7613
  label,
@@ -7490,12 +7618,12 @@ var RHFAutocomplete = ({
7490
7618
  ...other
7491
7619
  }) => {
7492
7620
  const { control, setValue } = (0, import_react_hook_form7.useFormContext)();
7493
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7621
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7494
7622
  import_react_hook_form7.Controller,
7495
7623
  {
7496
7624
  name,
7497
7625
  control,
7498
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7626
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7499
7627
  import_Autocomplete4.default,
7500
7628
  {
7501
7629
  ...field,
@@ -7504,7 +7632,7 @@ var RHFAutocomplete = ({
7504
7632
  setValue(name, newValue, { shouldValidate: true });
7505
7633
  handleChange?.(newValue);
7506
7634
  },
7507
- renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7635
+ renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7508
7636
  import_TextField4.default,
7509
7637
  {
7510
7638
  label,
@@ -7524,16 +7652,16 @@ var RHFAutocomplete = ({
7524
7652
 
7525
7653
  // src/components/HookForm/RHFCheckbox.tsx
7526
7654
  var import_react_hook_form8 = require("react-hook-form");
7527
- var import_Stack6 = __toESM(require("@mui/material/Stack"), 1);
7528
- var import_Box15 = __toESM(require("@mui/material/Box"), 1);
7529
- 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);
7530
7658
  var import_Checkbox3 = __toESM(require("@mui/material/Checkbox"), 1);
7531
7659
  var import_FormGroup2 = __toESM(require("@mui/material/FormGroup"), 1);
7532
7660
  var import_FormLabel3 = __toESM(require("@mui/material/FormLabel"), 1);
7533
7661
  var import_FormControl3 = __toESM(require("@mui/material/FormControl"), 1);
7534
7662
  var import_FormHelperText5 = __toESM(require("@mui/material/FormHelperText"), 1);
7535
7663
  var import_FormControlLabel4 = __toESM(require("@mui/material/FormControlLabel"), 1);
7536
- var import_jsx_runtime58 = require("react/jsx-runtime");
7664
+ var import_jsx_runtime59 = require("react/jsx-runtime");
7537
7665
  var RHFCheckbox = ({
7538
7666
  name,
7539
7667
  description,
@@ -7545,16 +7673,16 @@ var RHFCheckbox = ({
7545
7673
  }) => {
7546
7674
  const { control } = (0, import_react_hook_form8.useFormContext)();
7547
7675
  const baseAriaLabel = `Checkbox for ${name}`;
7548
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7676
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7549
7677
  import_react_hook_form8.Controller,
7550
7678
  {
7551
7679
  name,
7552
7680
  control,
7553
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_Box15.default, { sx: slotProps?.wrap, children: [
7554
- /* @__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)(
7555
7683
  import_FormControlLabel4.default,
7556
7684
  {
7557
- control: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7685
+ control: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7558
7686
  import_Checkbox3.default,
7559
7687
  {
7560
7688
  ...field,
@@ -7569,9 +7697,9 @@ var RHFCheckbox = ({
7569
7697
  }
7570
7698
  }
7571
7699
  ),
7572
- label: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_Stack6.default, { children: [
7573
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_Typography6.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: label }),
7574
- 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 })
7575
7703
  ] }),
7576
7704
  sx: {
7577
7705
  alignItems: description ? "flex-start" : "center",
@@ -7580,7 +7708,7 @@ var RHFCheckbox = ({
7580
7708
  ...other
7581
7709
  }
7582
7710
  ),
7583
- (!!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 })
7584
7712
  ] })
7585
7713
  }
7586
7714
  );
@@ -7596,13 +7724,13 @@ var RHFMultiCheckbox = ({
7596
7724
  }) => {
7597
7725
  const { control } = (0, import_react_hook_form8.useFormContext)();
7598
7726
  const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
7599
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7727
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7600
7728
  import_react_hook_form8.Controller,
7601
7729
  {
7602
7730
  name,
7603
7731
  control,
7604
7732
  defaultValue: [],
7605
- render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
7733
+ render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
7606
7734
  import_FormControl3.default,
7607
7735
  {
7608
7736
  component: "fieldset",
@@ -7610,7 +7738,7 @@ var RHFMultiCheckbox = ({
7610
7738
  sx: slotProps?.formControl?.sx,
7611
7739
  ...slotProps?.formControl,
7612
7740
  children: [
7613
- label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7741
+ label && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7614
7742
  import_FormLabel3.default,
7615
7743
  {
7616
7744
  component: "legend",
@@ -7619,12 +7747,12 @@ var RHFMultiCheckbox = ({
7619
7747
  children: label
7620
7748
  }
7621
7749
  ),
7622
- /* @__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) => {
7623
7751
  const itemAriaLabel = option.label || `Option ${option.value}`;
7624
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7752
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7625
7753
  import_FormControlLabel4.default,
7626
7754
  {
7627
- control: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7755
+ control: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7628
7756
  import_Checkbox3.default,
7629
7757
  {
7630
7758
  checked: (field.value || []).includes(option.value),
@@ -7642,9 +7770,9 @@ var RHFMultiCheckbox = ({
7642
7770
  }
7643
7771
  }
7644
7772
  ),
7645
- label: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_Stack6.default, { children: [
7646
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_Typography6.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: option.label }),
7647
- 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 })
7648
7776
  ] }),
7649
7777
  sx: {
7650
7778
  alignItems: option?.description ? "flex-start" : "center"
@@ -7653,7 +7781,7 @@ var RHFMultiCheckbox = ({
7653
7781
  option.value
7654
7782
  );
7655
7783
  }) }),
7656
- (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7784
+ (!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7657
7785
  import_FormHelperText5.default,
7658
7786
  {
7659
7787
  sx: { mx: 0, ...slotProps?.formHelperText?.sx },
@@ -7683,29 +7811,29 @@ var Field = {
7683
7811
  // src/components/CopyButton/index.tsx
7684
7812
  var import_Tooltip2 = __toESM(require("@mui/material/Tooltip"), 1);
7685
7813
  var import_IconButton5 = __toESM(require("@mui/material/IconButton"), 1);
7686
- var import_jsx_runtime59 = require("react/jsx-runtime");
7814
+ var import_jsx_runtime60 = require("react/jsx-runtime");
7687
7815
  var CopyButton = ({ text: text2, size = "small" }) => {
7688
7816
  const { copy, isCopied } = useCopyToClipboard();
7689
- 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)(
7690
7818
  import_IconButton5.default,
7691
7819
  {
7692
7820
  size,
7693
7821
  onClick: () => copy(text2),
7694
7822
  "aria-label": "copy token",
7695
7823
  sx: { color: "icon.black" },
7696
- 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 } })
7697
7825
  }
7698
7826
  ) });
7699
7827
  };
7700
7828
 
7701
7829
  // src/components/LoadingScreen/index.tsx
7702
7830
  var import_Portal = __toESM(require("@mui/material/Portal"), 1);
7703
- var import_Box16 = __toESM(require("@mui/material/Box"), 1);
7831
+ var import_Box15 = __toESM(require("@mui/material/Box"), 1);
7704
7832
  var import_LinearProgress = __toESM(require("@mui/material/LinearProgress"), 1);
7705
- var import_jsx_runtime60 = require("react/jsx-runtime");
7833
+ var import_jsx_runtime61 = require("react/jsx-runtime");
7706
7834
  var LoadingScreen = ({ portal, sx, ...rest }) => {
7707
- const content = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7708
- import_Box16.default,
7835
+ const content = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
7836
+ import_Box15.default,
7709
7837
  {
7710
7838
  sx: {
7711
7839
  px: 5,
@@ -7718,17 +7846,17 @@ var LoadingScreen = ({ portal, sx, ...rest }) => {
7718
7846
  ...sx
7719
7847
  },
7720
7848
  ...rest,
7721
- 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 } })
7722
7850
  }
7723
7851
  );
7724
7852
  if (portal) {
7725
- 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 });
7726
7854
  }
7727
7855
  return content;
7728
7856
  };
7729
7857
  var SplashScreen = ({ portal, sx, ...rest }) => {
7730
- const content = /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7731
- import_Box16.default,
7858
+ const content = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
7859
+ import_Box15.default,
7732
7860
  {
7733
7861
  sx: {
7734
7862
  right: 0,
@@ -7744,11 +7872,11 @@ var SplashScreen = ({ portal, sx, ...rest }) => {
7744
7872
  ...sx
7745
7873
  },
7746
7874
  ...rest,
7747
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(AnimatedLogo, {})
7875
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AnimatedLogo, {})
7748
7876
  }
7749
7877
  );
7750
7878
  if (portal) {
7751
- 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 });
7752
7880
  }
7753
7881
  return content;
7754
7882
  };
@@ -7763,6 +7891,7 @@ var SplashScreen = ({ portal, sx, ...rest }) => {
7763
7891
  CloudUpload,
7764
7892
  Copy,
7765
7893
  CopyButton,
7894
+ EmptyContent,
7766
7895
  Eye,
7767
7896
  EyeClosed,
7768
7897
  Field,