@natoora-libs/core 0.1.18-dev-doug-2 → 0.1.18-dev-doug-3

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.
@@ -123,10 +123,16 @@ type TableDesktopProps = {
123
123
  declare const TableDesktop: ({ data, headCells, RenderItem, appliedFilters, headerFilters, children, height, rowHeight, totalDataCount, isLoading, rowsPerPage, enableEditMode, enableCheckboxSelection, disableInternalSort, updateSort, showClearFilterButton, handleClickOnClearFiltersButton, deleteItem, keyField, tableLayout, onApplyFilters, shouldShowCheckOnFilter, components, componentsProps, }: TableDesktopProps) => react_jsx_runtime.JSX.Element;
124
124
 
125
125
  type AutocompleteFilterMenuContentProps = {
126
- headCell: HeadCell;
126
+ columnId: string;
127
+ labelFieldName: string;
127
128
  selectedFilterOptions: HeaderFilterOptions;
129
+ isLoading?: boolean;
130
+ maxWidth?: number;
131
+ maxHeight?: number;
128
132
  onFilterOptionChange: (option: string | HeaderFilterObject) => void;
129
133
  onApplyFiltersClick: (shouldSave: boolean) => void;
134
+ filterOptions: HeadCell["filterOptions"];
135
+ onAutocompleteFilterChange: HeadCell["onAutocompleteFilterChange"];
130
136
  shouldShowCheckOnFilter?: TableDesktopProps["shouldShowCheckOnFilter"];
131
137
  };
132
138
  declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentProps>;
@@ -279,9 +285,13 @@ interface ActionButtonProps {
279
285
  declare function ActionButton(props: ActionButtonProps): react_jsx_runtime.JSX.Element;
280
286
 
281
287
  type CheckboxFilterMenuContentProps = {
282
- headCell: HeadCell;
288
+ columnId: string;
289
+ labelFieldName: string;
290
+ isLoading?: boolean;
283
291
  selectedFilterOptions: HeaderFilterOptions;
284
292
  filterOptions: HeaderFilterOptions;
293
+ maxHeight?: number;
294
+ width?: number;
285
295
  shouldShowCheckOnFilter?: TableDesktopProps["shouldShowCheckOnFilter"];
286
296
  onSelectAllChange: (checked: boolean) => void;
287
297
  onFilterOptionChange: (option: string | HeaderFilterObject) => void;
@@ -530,6 +540,7 @@ declare const _default$b: React.MemoExoticComponent<({ closeDialog, userName, de
530
540
 
531
541
  type DynamicOverflowTooltipProps = {
532
542
  arrow?: boolean;
543
+ maxWidth?: number | string;
533
544
  children: ReactElement | string | number | null;
534
545
  tooltipDescription: string;
535
546
  };
@@ -123,10 +123,16 @@ type TableDesktopProps = {
123
123
  declare const TableDesktop: ({ data, headCells, RenderItem, appliedFilters, headerFilters, children, height, rowHeight, totalDataCount, isLoading, rowsPerPage, enableEditMode, enableCheckboxSelection, disableInternalSort, updateSort, showClearFilterButton, handleClickOnClearFiltersButton, deleteItem, keyField, tableLayout, onApplyFilters, shouldShowCheckOnFilter, components, componentsProps, }: TableDesktopProps) => react_jsx_runtime.JSX.Element;
124
124
 
125
125
  type AutocompleteFilterMenuContentProps = {
126
- headCell: HeadCell;
126
+ columnId: string;
127
+ labelFieldName: string;
127
128
  selectedFilterOptions: HeaderFilterOptions;
129
+ isLoading?: boolean;
130
+ maxWidth?: number;
131
+ maxHeight?: number;
128
132
  onFilterOptionChange: (option: string | HeaderFilterObject) => void;
129
133
  onApplyFiltersClick: (shouldSave: boolean) => void;
134
+ filterOptions: HeadCell["filterOptions"];
135
+ onAutocompleteFilterChange: HeadCell["onAutocompleteFilterChange"];
130
136
  shouldShowCheckOnFilter?: TableDesktopProps["shouldShowCheckOnFilter"];
131
137
  };
132
138
  declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentProps>;
@@ -279,9 +285,13 @@ interface ActionButtonProps {
279
285
  declare function ActionButton(props: ActionButtonProps): react_jsx_runtime.JSX.Element;
280
286
 
281
287
  type CheckboxFilterMenuContentProps = {
282
- headCell: HeadCell;
288
+ columnId: string;
289
+ labelFieldName: string;
290
+ isLoading?: boolean;
283
291
  selectedFilterOptions: HeaderFilterOptions;
284
292
  filterOptions: HeaderFilterOptions;
293
+ maxHeight?: number;
294
+ width?: number;
285
295
  shouldShowCheckOnFilter?: TableDesktopProps["shouldShowCheckOnFilter"];
286
296
  onSelectAllChange: (checked: boolean) => void;
287
297
  onFilterOptionChange: (option: string | HeaderFilterObject) => void;
@@ -530,6 +540,7 @@ declare const _default$b: React.MemoExoticComponent<({ closeDialog, userName, de
530
540
 
531
541
  type DynamicOverflowTooltipProps = {
532
542
  arrow?: boolean;
543
+ maxWidth?: number | string;
533
544
  children: ReactElement | string | number | null;
534
545
  tooltipDescription: string;
535
546
  };
@@ -459,7 +459,7 @@ var AppLabel_default = AppLabel;
459
459
 
460
460
  // src/components/AutocompleteFilterMenuContent/AutocompleteFilterMenuContent.tsx
461
461
  import CheckIcon2 from "@mui/icons-material/Check";
462
- import { Box as Box7, Button as Button4, Chip as Chip2, Divider, Tooltip as Tooltip4, Typography as Typography4 } from "@mui/material";
462
+ import { Box as Box7, Button as Button4, Chip as Chip2, Divider, Skeleton, Tooltip as Tooltip4, Typography as Typography4 } from "@mui/material";
463
463
 
464
464
  // src/utils/resolveObjectType.ts
465
465
  var resolveObjectType = (object, fieldName) => {
@@ -676,6 +676,7 @@ var useCheckOverflow = ({
676
676
  import { jsx as jsx7 } from "react/jsx-runtime";
677
677
  var DynamicOverflowTooltip = ({
678
678
  arrow = false,
679
+ maxWidth = "auto",
679
680
  children,
680
681
  tooltipDescription
681
682
  }) => {
@@ -691,6 +692,7 @@ var DynamicOverflowTooltip = ({
691
692
  {
692
693
  ref,
693
694
  sx: {
695
+ maxWidth,
694
696
  overflowX: "hidden",
695
697
  whiteSpace: "nowrap",
696
698
  textOverflow: "ellipsis"
@@ -827,20 +829,40 @@ var SearchFieldDebounced = ({
827
829
 
828
830
  // src/components/AutocompleteFilterMenuContent/AutocompleteFilterMenuContent.tsx
829
831
  import { Fragment, jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
830
- var MAX_HEIGHT = 500;
831
- var MAX_WIDTH = 208;
832
832
  var AutocompleteFilterMenuContent = ({
833
+ columnId,
834
+ labelFieldName,
833
835
  selectedFilterOptions,
836
+ isLoading = false,
837
+ maxWidth = 208,
838
+ maxHeight = 500,
834
839
  onFilterOptionChange,
835
840
  onApplyFiltersClick,
836
841
  shouldShowCheckOnFilter,
837
- headCell: {
838
- onAutocompleteFilterChange,
839
- filterOptions,
840
- fieldName: labelFieldName = "",
841
- id: columnId
842
- }
842
+ onAutocompleteFilterChange,
843
+ filterOptions
843
844
  }) => {
845
+ const renderLoading = () => /* @__PURE__ */ jsx10(Skeleton, { variant: "rounded", height: 26, sx: { m: 1 } });
846
+ const renderOptions = () => filterOptions?.length ? /* @__PURE__ */ jsx10(
847
+ FilterOptionsCheckboxes,
848
+ {
849
+ columnId,
850
+ maxWidth,
851
+ labelFieldName,
852
+ filterOptions,
853
+ selectedFilterOptions,
854
+ onFilterOptionChange,
855
+ shouldShowCheckOnFilter
856
+ }
857
+ ) : /* @__PURE__ */ jsx10(
858
+ Typography4,
859
+ {
860
+ variant: "body2",
861
+ color: "textSecondary",
862
+ sx: { p: 1, maxWidth: 260 },
863
+ children: "Start searching (minimum 3 characters) to view the results."
864
+ }
865
+ );
844
866
  return /* @__PURE__ */ jsxs6(Box7, { sx: { display: "flex", flexDirection: "column" }, children: [
845
867
  /* @__PURE__ */ jsx10(
846
868
  SearchFieldDebounced,
@@ -858,9 +880,9 @@ var AutocompleteFilterMenuContent = ({
858
880
  Box7,
859
881
  {
860
882
  sx: {
883
+ maxHeight,
861
884
  display: "flex",
862
885
  flexDirection: "column",
863
- maxHeight: MAX_HEIGHT,
864
886
  overflowX: "hidden",
865
887
  "&::-webkit-scrollbar": {
866
888
  width: "8px",
@@ -905,9 +927,10 @@ var AutocompleteFilterMenuContent = ({
905
927
  justifyContent: "space-between"
906
928
  },
907
929
  children: [
908
- /* @__PURE__ */ jsx10(Box7, { sx: { maxWidth: MAX_WIDTH }, children: /* @__PURE__ */ jsx10(
930
+ /* @__PURE__ */ jsx10(Box7, { sx: { maxWidth }, children: /* @__PURE__ */ jsx10(
909
931
  Chip2,
910
932
  {
933
+ size: "small",
911
934
  label: filterLabel,
912
935
  onDelete: () => onFilterOptionChange(option)
913
936
  }
@@ -922,26 +945,7 @@ var AutocompleteFilterMenuContent = ({
922
945
  ),
923
946
  /* @__PURE__ */ jsx10(Divider, { sx: { my: 0.5 } })
924
947
  ] }) : null,
925
- /* @__PURE__ */ jsx10(Box7, { sx: { p: 1 }, children: !filterOptions?.length ? /* @__PURE__ */ jsx10(
926
- Typography4,
927
- {
928
- variant: "body2",
929
- color: "textSecondary",
930
- sx: { p: 1, maxWidth: 260 },
931
- children: "Start searching (minimum 3 characters) to view the results."
932
- }
933
- ) : /* @__PURE__ */ jsx10(
934
- FilterOptionsCheckboxes,
935
- {
936
- columnId,
937
- maxWidth: MAX_WIDTH,
938
- labelFieldName,
939
- filterOptions,
940
- selectedFilterOptions,
941
- onFilterOptionChange,
942
- shouldShowCheckOnFilter
943
- }
944
- ) })
948
+ /* @__PURE__ */ jsx10(Box7, { sx: { p: 1 }, children: isLoading ? renderLoading() : renderOptions() })
945
949
  ]
946
950
  }
947
951
  ),
@@ -3209,22 +3213,32 @@ function ActionButton(props) {
3209
3213
  }
3210
3214
 
3211
3215
  // src/components/CheckboxFilterMenuContent/CheckboxFilterMenuContent.tsx
3212
- import { Box as Box12, Button as Button12, Checkbox as Checkbox2, Divider as Divider2, FormControlLabel, Tooltip as Tooltip6, Typography as Typography8 } from "@mui/material";
3216
+ import { Box as Box12, Button as Button12, Checkbox as Checkbox2, Divider as Divider2, FormControlLabel, Skeleton as Skeleton2, Tooltip as Tooltip6, Typography as Typography8 } from "@mui/material";
3213
3217
  import { jsx as jsx71, jsxs as jsxs40 } from "react/jsx-runtime";
3214
- var MAX_HEIGHT2 = 500;
3215
3218
  var CheckboxFilterMenuContent = ({
3219
+ columnId,
3220
+ labelFieldName,
3221
+ isLoading = false,
3216
3222
  selectedFilterOptions,
3217
3223
  filterOptions,
3224
+ maxHeight = 500,
3225
+ width = 276,
3218
3226
  shouldShowCheckOnFilter,
3219
3227
  onSelectAllChange,
3220
3228
  onFilterOptionChange,
3221
- onApplyFiltersClick,
3222
- headCell: {
3223
- id: columnId,
3224
- fieldName: labelFieldName = ""
3225
- }
3229
+ onApplyFiltersClick
3226
3230
  }) => {
3227
- return /* @__PURE__ */ jsxs40(Box12, { sx: { display: "flex", flexDirection: "column" }, children: [
3231
+ const renderLoading = () => /* @__PURE__ */ jsxs40(Box12, { "data-testid": "loading-skeletons", sx: { width }, children: [
3232
+ /* @__PURE__ */ jsx71(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } }),
3233
+ /* @__PURE__ */ jsx71(Divider2, {}),
3234
+ /* @__PURE__ */ jsx71(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } }),
3235
+ /* @__PURE__ */ jsx71(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } }),
3236
+ /* @__PURE__ */ jsx71(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } }),
3237
+ /* @__PURE__ */ jsx71(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } }),
3238
+ /* @__PURE__ */ jsx71(Divider2, {}),
3239
+ /* @__PURE__ */ jsx71(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } })
3240
+ ] });
3241
+ const renderContent = () => /* @__PURE__ */ jsxs40(Box12, { sx: { display: "flex", flexDirection: "column" }, children: [
3228
3242
  /* @__PURE__ */ jsx71(Box12, { sx: { px: 2, pt: 1 }, children: /* @__PURE__ */ jsx71(
3229
3243
  FormControlLabel,
3230
3244
  {
@@ -3269,17 +3283,9 @@ var CheckboxFilterMenuContent = ({
3269
3283
  sx: {
3270
3284
  pl: 0.5,
3271
3285
  pr: 2,
3272
- maxHeight: MAX_HEIGHT2
3286
+ maxHeight
3273
3287
  },
3274
- children: !filterOptions?.length ? /* @__PURE__ */ jsx71(
3275
- Typography8,
3276
- {
3277
- variant: "body2",
3278
- color: "textSecondary",
3279
- sx: { py: 1, px: 2 },
3280
- children: "No options available."
3281
- }
3282
- ) : /* @__PURE__ */ jsx71(
3288
+ children: filterOptions?.length ? /* @__PURE__ */ jsx71(
3283
3289
  FilterOptionsCheckboxes,
3284
3290
  {
3285
3291
  columnId,
@@ -3289,6 +3295,14 @@ var CheckboxFilterMenuContent = ({
3289
3295
  onFilterOptionChange,
3290
3296
  shouldShowCheckOnFilter
3291
3297
  }
3298
+ ) : /* @__PURE__ */ jsx71(
3299
+ Typography8,
3300
+ {
3301
+ variant: "body2",
3302
+ color: "textSecondary",
3303
+ sx: { py: 1, px: 2 },
3304
+ children: "No options available."
3305
+ }
3292
3306
  )
3293
3307
  }
3294
3308
  )
@@ -3329,6 +3343,10 @@ var CheckboxFilterMenuContent = ({
3329
3343
  }
3330
3344
  )
3331
3345
  ] });
3346
+ if (isLoading) {
3347
+ return renderLoading();
3348
+ }
3349
+ return renderContent();
3332
3350
  };
3333
3351
 
3334
3352
  // src/components/CompanyLogo/CompanyLogo.tsx
@@ -4040,7 +4058,7 @@ var ControlledValidTextInput_default = ControlledValidTextInput;
4040
4058
 
4041
4059
  // src/components/DataGrid/DataGrid.tsx
4042
4060
  import { useState as useState4 } from "react";
4043
- import { Paper as Paper2, Skeleton } from "@mui/material";
4061
+ import { Paper as Paper2, Skeleton as Skeleton3 } from "@mui/material";
4044
4062
  import { DataGrid as MUIDataGrid } from "@mui/x-data-grid";
4045
4063
  import { makeStyles as makeStyles21 } from "tss-react/mui";
4046
4064
  import { Fragment as Fragment2, jsx as jsx80, jsxs as jsxs46 } from "react/jsx-runtime";
@@ -4098,7 +4116,7 @@ var DataGrid = ({
4098
4116
  height: height || rows.length * rowHeight + headerAndFooterHeight
4099
4117
  },
4100
4118
  children: /* @__PURE__ */ jsx80(Paper2, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx80("div", { children: [...Array(Math.floor(10))].map((i) => /* @__PURE__ */ jsx80(
4101
- Skeleton,
4119
+ Skeleton3,
4102
4120
  {
4103
4121
  animation: "pulse",
4104
4122
  style: { margin: "8px", opacity: 0.4 },
@@ -7026,14 +7044,11 @@ var Switch_default = memo19(LabelledSwitch);
7026
7044
  // src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
7027
7045
  import { useMemo as useMemo2, useState as useState16, useEffect as useEffect11, memo as memo20 } from "react";
7028
7046
  import {
7029
- Box as Box32,
7030
- Divider as Divider11,
7031
- Menu as Menu4,
7032
- Skeleton as Skeleton2
7047
+ Menu as Menu4
7033
7048
  } from "@mui/material";
7034
7049
  import classNames3 from "classnames";
7035
7050
  import { Fragment as Fragment12, jsx as jsx113, jsxs as jsxs76 } from "react/jsx-runtime";
7036
- var MAX_WIDTH2 = 276;
7051
+ var MAX_WIDTH = 276;
7037
7052
  var findFilterIndex = (filters, filterOption) => filters.findIndex((item) => {
7038
7053
  if (typeof item === "string" && typeof filterOption === "string") {
7039
7054
  return item === filterOption;
@@ -7105,50 +7120,6 @@ var SmartTableHeaderFilterMenu = memo20(({
7105
7120
  useEffect11(() => {
7106
7121
  setSelectedFilterOptions(headerFilters[headCell.id] ?? []);
7107
7122
  }, [headerFilters, headCell.id]);
7108
- const renderLoadingSkeletons = /* @__PURE__ */ jsxs76(Box32, { "data-testid": "loading-skeletons", sx: { width: MAX_WIDTH2 }, children: [
7109
- /* @__PURE__ */ jsx113(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } }),
7110
- /* @__PURE__ */ jsx113(Divider11, {}),
7111
- /* @__PURE__ */ jsx113(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } }),
7112
- /* @__PURE__ */ jsx113(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } }),
7113
- /* @__PURE__ */ jsx113(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } }),
7114
- /* @__PURE__ */ jsx113(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } }),
7115
- /* @__PURE__ */ jsx113(Divider11, {}),
7116
- /* @__PURE__ */ jsx113(Skeleton2, { variant: "rounded", height: 24, sx: { m: 1 } })
7117
- ] });
7118
- const renderMenuContent = useMemo2(() => {
7119
- if (headCell.isAutocompleteFilterMenu) {
7120
- return /* @__PURE__ */ jsx113(
7121
- AutocompleteFilterMenuContent,
7122
- {
7123
- headCell,
7124
- selectedFilterOptions,
7125
- onFilterOptionChange: handleFilterOptionChange,
7126
- onApplyFiltersClick: handleApplyFiltersClick,
7127
- shouldShowCheckOnFilter
7128
- }
7129
- );
7130
- }
7131
- return /* @__PURE__ */ jsx113(
7132
- CheckboxFilterMenuContent,
7133
- {
7134
- headCell,
7135
- selectedFilterOptions,
7136
- filterOptions: filterOptionsData ?? [],
7137
- onSelectAllChange: handleSelectAllChange,
7138
- onFilterOptionChange: handleFilterOptionChange,
7139
- onApplyFiltersClick: handleApplyFiltersClick,
7140
- shouldShowCheckOnFilter
7141
- }
7142
- );
7143
- }, [
7144
- headCell,
7145
- selectedFilterOptions,
7146
- handleFilterOptionChange,
7147
- handleApplyFiltersClick,
7148
- shouldShowCheckOnFilter,
7149
- filterOptionsData,
7150
- handleSelectAllChange
7151
- ]);
7152
7123
  return /* @__PURE__ */ jsxs76(Fragment12, { children: [
7153
7124
  /* @__PURE__ */ jsx113(
7154
7125
  ActiveFiltersIconButton,
@@ -7169,12 +7140,38 @@ var SmartTableHeaderFilterMenu = memo20(({
7169
7140
  "data-testid": "filter-menu",
7170
7141
  slotProps: {
7171
7142
  list: {
7172
- sx: { p: 0, maxWidth: MAX_WIDTH2 }
7143
+ sx: { p: 0, maxWidth: MAX_WIDTH }
7173
7144
  }
7174
7145
  },
7175
7146
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
7176
7147
  transformOrigin: { vertical: "top", horizontal: "right" },
7177
- children: headCell.isFetchingFilterOptions ? renderLoadingSkeletons : renderMenuContent
7148
+ children: headCell.isAutocompleteFilterMenu ? /* @__PURE__ */ jsx113(
7149
+ AutocompleteFilterMenuContent,
7150
+ {
7151
+ columnId: headCell.id,
7152
+ labelFieldName: headCell.fieldName ?? "",
7153
+ isLoading: headCell.isFetchingFilterOptions,
7154
+ filterOptions: headCell.filterOptions,
7155
+ onAutocompleteFilterChange: headCell.onAutocompleteFilterChange,
7156
+ selectedFilterOptions,
7157
+ onFilterOptionChange: handleFilterOptionChange,
7158
+ onApplyFiltersClick: handleApplyFiltersClick,
7159
+ shouldShowCheckOnFilter
7160
+ }
7161
+ ) : /* @__PURE__ */ jsx113(
7162
+ CheckboxFilterMenuContent,
7163
+ {
7164
+ columnId: headCell.id,
7165
+ labelFieldName: headCell.fieldName ?? "",
7166
+ isLoading: headCell.isFetchingFilterOptions,
7167
+ selectedFilterOptions,
7168
+ filterOptions: filterOptionsData ?? [],
7169
+ onSelectAllChange: handleSelectAllChange,
7170
+ onFilterOptionChange: handleFilterOptionChange,
7171
+ onApplyFiltersClick: handleApplyFiltersClick,
7172
+ shouldShowCheckOnFilter
7173
+ }
7174
+ )
7178
7175
  }
7179
7176
  )
7180
7177
  ] });
@@ -7183,7 +7180,7 @@ var SmartTableHeaderFilterMenu = memo20(({
7183
7180
  // src/components/SmartTableHeader/SmartTableHeader.tsx
7184
7181
  import { memo as memo21 } from "react";
7185
7182
  import {
7186
- Box as Box33,
7183
+ Box as Box32,
7187
7184
  Checkbox as Checkbox6,
7188
7185
  TableCell,
7189
7186
  TableHead,
@@ -7253,7 +7250,7 @@ var SmartTableHeader = memo21(({
7253
7250
  }
7254
7251
  },
7255
7252
  children: /* @__PURE__ */ jsxs77(
7256
- Box33,
7253
+ Box32,
7257
7254
  {
7258
7255
  display: "flex",
7259
7256
  flexDirection: "row",
@@ -7313,7 +7310,7 @@ var SmartTableHeader = memo21(({
7313
7310
  var import_debounce = __toESM(require_debounce(), 1);
7314
7311
  import { useLayoutEffect, useState as useState17 } from "react";
7315
7312
  import {
7316
- Box as Box35,
7313
+ Box as Box34,
7317
7314
  Paper as Paper10,
7318
7315
  Table as MUITable,
7319
7316
  TableBody,
@@ -7327,13 +7324,13 @@ import { makeStyles as makeStyles45 } from "tss-react/mui";
7327
7324
  import { v4 as uuidv4 } from "uuid";
7328
7325
 
7329
7326
  // src/components/TableLoading/TableLoading.tsx
7330
- import { Box as Box34, Skeleton as Skeleton3 } from "@mui/material";
7327
+ import { Box as Box33, Skeleton as Skeleton4 } from "@mui/material";
7331
7328
  import { jsx as jsx115 } from "react/jsx-runtime";
7332
7329
  var TableLoading = ({
7333
7330
  rowsPerPage,
7334
7331
  rowHeight
7335
- }) => /* @__PURE__ */ jsx115(Box34, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx115(
7336
- Skeleton3,
7332
+ }) => /* @__PURE__ */ jsx115(Box33, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx115(
7333
+ Skeleton4,
7337
7334
  {
7338
7335
  animation: "pulse",
7339
7336
  "data-testid": "table-loading-skeleton",
@@ -7470,7 +7467,7 @@ var Table = ({
7470
7467
  }
7471
7468
  return rowsComponents;
7472
7469
  };
7473
- return /* @__PURE__ */ jsx116(Paper10, { className: classes.root, children: /* @__PURE__ */ jsx116(Box35, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx116(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx116(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs78(MUITable, { size: "medium", stickyHeader: true, children: [
7470
+ return /* @__PURE__ */ jsx116(Paper10, { className: classes.root, children: /* @__PURE__ */ jsx116(Box34, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx116(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx116(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs78(MUITable, { size: "medium", stickyHeader: true, children: [
7474
7471
  /* @__PURE__ */ jsx116(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx116(TableRow2, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx116(
7475
7472
  TableCell2,
7476
7473
  {
@@ -7507,12 +7504,12 @@ import {
7507
7504
  Table as Table2,
7508
7505
  TableBody as TableBody3,
7509
7506
  TableContainer as TableContainer2,
7510
- Box as Box38
7507
+ Box as Box37
7511
7508
  } from "@mui/material";
7512
7509
 
7513
7510
  // src/components/TableDesktopFooter/TableDesktopFooter.tsx
7514
7511
  import Refresh3 from "@mui/icons-material/Refresh";
7515
- import { Box as Box36, Button as Button15, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as Typography28 } from "@mui/material";
7512
+ import { Box as Box35, Button as Button15, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as Typography28 } from "@mui/material";
7516
7513
  import { jsx as jsx117, jsxs as jsxs79 } from "react/jsx-runtime";
7517
7514
  var TableDesktopFooter = ({
7518
7515
  numPages,
@@ -7525,7 +7522,7 @@ var TableDesktopFooter = ({
7525
7522
  isFetching
7526
7523
  }) => {
7527
7524
  return /* @__PURE__ */ jsxs79(
7528
- Box36,
7525
+ Box35,
7529
7526
  {
7530
7527
  py: 1,
7531
7528
  gap: 2,
@@ -7561,7 +7558,7 @@ var TableDesktopFooter = ({
7561
7558
  ]
7562
7559
  }
7563
7560
  ),
7564
- /* @__PURE__ */ jsxs79(Box36, { display: "flex", children: [
7561
+ /* @__PURE__ */ jsxs79(Box35, { display: "flex", children: [
7565
7562
  /* @__PURE__ */ jsxs79(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
7566
7563
  /* @__PURE__ */ jsx117(Typography28, { children: "Rows per page:" }),
7567
7564
  /* @__PURE__ */ jsx117(
@@ -7591,7 +7588,7 @@ var TableDesktopFooter = ({
7591
7588
  };
7592
7589
 
7593
7590
  // src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
7594
- import { Skeleton as Skeleton4, TableCell as TableCell3, TableRow as TableRow3 } from "@mui/material";
7591
+ import { Skeleton as Skeleton5, TableCell as TableCell3, TableRow as TableRow3 } from "@mui/material";
7595
7592
  import { jsx as jsx118 } from "react/jsx-runtime";
7596
7593
  var getRange = (n) => Array.from({ length: n }, (_, i) => i + 1);
7597
7594
  var TableDesktopLoadingState = ({
@@ -7601,7 +7598,7 @@ var TableDesktopLoadingState = ({
7601
7598
  rowHeight
7602
7599
  }) => {
7603
7600
  return getRange(Math.min(numRows, rowsPerPage)).map((rowNum) => /* @__PURE__ */ jsx118(TableRow3, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ jsx118(TableCell3, { children: /* @__PURE__ */ jsx118(
7604
- Skeleton4,
7601
+ Skeleton5,
7605
7602
  {
7606
7603
  animation: "pulse",
7607
7604
  variant: "rounded",
@@ -7762,7 +7759,7 @@ var TableDesktopRows = ({
7762
7759
  };
7763
7760
 
7764
7761
  // src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
7765
- import { Box as Box37, Button as Button17, Typography as Typography30 } from "@mui/material";
7762
+ import { Box as Box36, Button as Button17, Typography as Typography30 } from "@mui/material";
7766
7763
  import { jsx as jsx121, jsxs as jsxs82 } from "react/jsx-runtime";
7767
7764
  var TableDesktopRowSelectionBar = ({
7768
7765
  isEveryRowInPageSelected,
@@ -7783,7 +7780,7 @@ var TableDesktopRowSelectionBar = ({
7783
7780
  return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
7784
7781
  };
7785
7782
  return isAnyRowSelected ? /* @__PURE__ */ jsxs82(
7786
- Box37,
7783
+ Box36,
7787
7784
  {
7788
7785
  sx: {
7789
7786
  p: 1,
@@ -8025,7 +8022,7 @@ var TableDesktop = ({
8025
8022
  ]
8026
8023
  );
8027
8024
  return /* @__PURE__ */ jsx123(
8028
- Box38,
8025
+ Box37,
8029
8026
  {
8030
8027
  sx: {
8031
8028
  height,
@@ -8585,7 +8582,7 @@ var TableHeader = ({ cells, onSort = null }) => {
8585
8582
  var TableHeader_default = memo24(TableHeader);
8586
8583
 
8587
8584
  // src/components/TextDivider/TextDivider.tsx
8588
- import { Box as Box39, Typography as Typography32, Divider as Divider12, Button as Button18 } from "@mui/material";
8585
+ import { Box as Box38, Typography as Typography32, Divider as Divider11, Button as Button18 } from "@mui/material";
8589
8586
  import { makeStyles as makeStyles48 } from "tss-react/mui";
8590
8587
  import { jsx as jsx130, jsxs as jsxs86 } from "react/jsx-runtime";
8591
8588
  var useStyles48 = makeStyles48()(() => ({
@@ -8625,15 +8622,15 @@ var TextDivider = ({
8625
8622
  const { classes } = useStyles48();
8626
8623
  const iconColor = color ?? colors.neutral900;
8627
8624
  return /* @__PURE__ */ jsxs86(
8628
- Box39,
8625
+ Box38,
8629
8626
  {
8630
8627
  display: "flex",
8631
8628
  alignItems: "center",
8632
8629
  justifyContent: "space-between",
8633
8630
  className: classes.container,
8634
8631
  children: [
8635
- /* @__PURE__ */ jsx130(Divider12, { className: classes.leftDivider }),
8636
- /* @__PURE__ */ jsx130(Button18, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs86(Box39, { className: classes.center, children: [
8632
+ /* @__PURE__ */ jsx130(Divider11, { className: classes.leftDivider }),
8633
+ /* @__PURE__ */ jsx130(Button18, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs86(Box38, { className: classes.center, children: [
8637
8634
  Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx130(Icon2, { className: classes.icon, style: { color: iconColor } }),
8638
8635
  /* @__PURE__ */ jsx130(
8639
8636
  Typography32,
@@ -8646,7 +8643,7 @@ var TextDivider = ({
8646
8643
  ),
8647
8644
  Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx130(Icon2, { className: classes.icon, style: { color: iconColor } })
8648
8645
  ] }) }),
8649
- /* @__PURE__ */ jsx130(Divider12, { className: classes.rightDivider })
8646
+ /* @__PURE__ */ jsx130(Divider11, { className: classes.rightDivider })
8650
8647
  ]
8651
8648
  }
8652
8649
  );
@@ -8760,7 +8757,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
8760
8757
 
8761
8758
  // src/components/TheToolbar/TheToolbar.tsx
8762
8759
  import { memo as memo25 } from "react";
8763
- import { AppBar, Box as Box40, Toolbar } from "@mui/material";
8760
+ import { AppBar, Box as Box39, Toolbar } from "@mui/material";
8764
8761
  import { makeStyles as makeStyles50 } from "tss-react/mui";
8765
8762
  import { jsx as jsx132, jsxs as jsxs87 } from "react/jsx-runtime";
8766
8763
  var useStyles50 = makeStyles50()((theme) => ({
@@ -8782,7 +8779,7 @@ var TheToolbar = ({
8782
8779
  rightSection
8783
8780
  }) => {
8784
8781
  const { classes } = useStyles50();
8785
- return /* @__PURE__ */ jsxs87(Box40, { children: [
8782
+ return /* @__PURE__ */ jsxs87(Box39, { children: [
8786
8783
  /* @__PURE__ */ jsx132(AppBar, { children: /* @__PURE__ */ jsxs87(Toolbar, { className: classes.topBar, children: [
8787
8784
  /* @__PURE__ */ jsx132(
8788
8785
  RoundButton_default,
@@ -8802,8 +8799,8 @@ var TheToolbar = ({
8802
8799
  imageLogoLightSmall
8803
8800
  }
8804
8801
  ),
8805
- /* @__PURE__ */ jsx132(Box40, { ml: 2, children: leftSection }),
8806
- /* @__PURE__ */ jsx132(Box40, { ml: "auto", children: rightSection })
8802
+ /* @__PURE__ */ jsx132(Box39, { ml: 2, children: leftSection }),
8803
+ /* @__PURE__ */ jsx132(Box39, { ml: "auto", children: rightSection })
8807
8804
  ] }) }),
8808
8805
  LeftDrawer
8809
8806
  ] });
@@ -8856,8 +8853,8 @@ import {
8856
8853
  Typography as Typography33,
8857
8854
  Dialog as Dialog5,
8858
8855
  Backdrop,
8859
- Box as Box41,
8860
- Divider as Divider13,
8856
+ Box as Box40,
8857
+ Divider as Divider12,
8861
8858
  Paper as Paper12,
8862
8859
  Fade as Fade2
8863
8860
  } from "@mui/material";
@@ -8903,9 +8900,9 @@ var TwoButtonDialog = ({
8903
8900
  BackdropComponent: Backdrop,
8904
8901
  BackdropProps: { timeout: 500 },
8905
8902
  children: /* @__PURE__ */ jsx134(Fade2, { in: open, children: /* @__PURE__ */ jsxs88(Paper12, { className: classes.paper, children: [
8906
- /* @__PURE__ */ jsxs88(Box41, { className: classes.mb, children: [
8903
+ /* @__PURE__ */ jsxs88(Box40, { className: classes.mb, children: [
8907
8904
  /* @__PURE__ */ jsx134(Typography33, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx134(
8908
- Box41,
8905
+ Box40,
8909
8906
  {
8910
8907
  sx: {
8911
8908
  fontWeight: 600
@@ -8914,7 +8911,7 @@ var TwoButtonDialog = ({
8914
8911
  }
8915
8912
  ) }),
8916
8913
  /* @__PURE__ */ jsxs88(
8917
- Box41,
8914
+ Box40,
8918
8915
  {
8919
8916
  className: classes.mt,
8920
8917
  sx: {
@@ -8927,8 +8924,8 @@ var TwoButtonDialog = ({
8927
8924
  }
8928
8925
  )
8929
8926
  ] }),
8930
- /* @__PURE__ */ jsx134(Divider13, {}),
8931
- /* @__PURE__ */ jsxs88(Box41, { className: classes.buttonContainer, children: [
8927
+ /* @__PURE__ */ jsx134(Divider12, {}),
8928
+ /* @__PURE__ */ jsxs88(Box40, { className: classes.buttonContainer, children: [
8932
8929
  /* @__PURE__ */ jsx134(
8933
8930
  FilledButton_default,
8934
8931
  {