@natoora-libs/core 0.1.9-dev-doug-3 → 0.1.9-dev-doug-5

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.
@@ -383,6 +383,7 @@ __export(components_exports, {
383
383
  Switch: () => Switch_default,
384
384
  Table: () => Table_default,
385
385
  TableDesktop: () => TableDesktop_default,
386
+ TableDesktopFooter: () => TableDesktopFooter,
386
387
  TableDesktopRowActions: () => TableDesktopRowActions,
387
388
  TableDesktopRowCell: () => TableDesktopRowCell,
388
389
  TableDesktopSmartSelect: () => TableDesktopSmartSelect,
@@ -3082,7 +3083,7 @@ var RoundButton = ({
3082
3083
  onClick(e);
3083
3084
  }
3084
3085
  };
3085
- const Button14 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3086
+ const Button15 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3086
3087
  import_material16.Fab,
3087
3088
  {
3088
3089
  className: cx(
@@ -3106,7 +3107,7 @@ var RoundButton = ({
3106
3107
  children: icon ? iconComponentMap[icon] : children || ""
3107
3108
  }
3108
3109
  );
3109
- return tooltip ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material16.Tooltip, { title: tooltip, children: Button14 }) : Button14;
3110
+ return tooltip ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material16.Tooltip, { title: tooltip, children: Button15 }) : Button15;
3110
3111
  };
3111
3112
  var RoundButton_default = RoundButton;
3112
3113
 
@@ -7693,9 +7694,90 @@ var Table2 = ({
7693
7694
  };
7694
7695
  var Table_default = Table2;
7695
7696
 
7696
- // src/components/TableDesktopRowActions/TableDesktopRowActions.tsx
7697
+ // src/components/TableDesktopFooter/TableDesktopFooter.tsx
7698
+ var import_Refresh = __toESM(require("@mui/icons-material/Refresh"), 1);
7697
7699
  var import_material64 = require("@mui/material");
7698
7700
  var import_jsx_runtime115 = require("react/jsx-runtime");
7701
+ var TableDesktopFooter = ({
7702
+ numPages,
7703
+ page,
7704
+ pageSize,
7705
+ pageSizeOptions,
7706
+ handlePageChange,
7707
+ handlePageSizeChange,
7708
+ refetch,
7709
+ isFetching
7710
+ }) => {
7711
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
7712
+ import_material64.Box,
7713
+ {
7714
+ py: 1,
7715
+ gap: 2,
7716
+ display: "flex",
7717
+ justifyContent: "space-between",
7718
+ alignItems: "center",
7719
+ borderTop: `1px solid ${colors.neutral300}`,
7720
+ bgcolor: (theme) => theme.palette.background.default,
7721
+ children: [
7722
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
7723
+ import_material64.Button,
7724
+ {
7725
+ disableRipple: true,
7726
+ variant: "outlined",
7727
+ onClick: () => refetch(),
7728
+ disabled: isFetching,
7729
+ sx: {
7730
+ ml: 1,
7731
+ gap: 1,
7732
+ borderRadius: 25,
7733
+ color: colors.neutral800,
7734
+ borderColor: colors.neutral600
7735
+ },
7736
+ children: [
7737
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7738
+ import_Refresh.default,
7739
+ {
7740
+ fontSize: "small",
7741
+ color: isFetching ? "disabled" : "primary"
7742
+ }
7743
+ ),
7744
+ "REFRESH"
7745
+ ]
7746
+ }
7747
+ ),
7748
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material64.Box, { display: "flex", children: [
7749
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material64.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
7750
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material64.Typography, { children: "Rows per page:" }),
7751
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7752
+ import_material64.Select,
7753
+ {
7754
+ value: pageSize,
7755
+ onChange: handlePageSizeChange,
7756
+ size: "small",
7757
+ "data-testid": "page-size-options-select",
7758
+ variant: "standard",
7759
+ children: pageSizeOptions.map((size) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material64.MenuItem, { value: size, children: size }, size))
7760
+ }
7761
+ )
7762
+ ] }),
7763
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7764
+ import_material64.Pagination,
7765
+ {
7766
+ color: "standard",
7767
+ count: numPages,
7768
+ page,
7769
+ onChange: handlePageChange
7770
+ }
7771
+ )
7772
+ ] })
7773
+ ]
7774
+ }
7775
+ );
7776
+ };
7777
+
7778
+ // src/components/TableDesktopRowActions/TableDesktopRowActions.tsx
7779
+ var import_material65 = require("@mui/material");
7780
+ var import_jsx_runtime116 = require("react/jsx-runtime");
7699
7781
  var TableDesktopRowActions = ({
7700
7782
  isRowHovered,
7701
7783
  children,
@@ -7703,8 +7785,8 @@ var TableDesktopRowActions = ({
7703
7785
  zIndex = 1,
7704
7786
  backgroundColor
7705
7787
  }) => {
7706
- return isRowHovered ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7707
- import_material64.TableCell,
7788
+ return isRowHovered ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7789
+ import_material65.TableCell,
7708
7790
  {
7709
7791
  padding: "none",
7710
7792
  sx: {
@@ -7716,8 +7798,8 @@ var TableDesktopRowActions = ({
7716
7798
  justifyContent: "flex-end",
7717
7799
  alignItems: "center"
7718
7800
  },
7719
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7720
- import_material64.Box,
7801
+ children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7802
+ import_material65.Box,
7721
7803
  {
7722
7804
  sx,
7723
7805
  display: "flex",
@@ -7731,12 +7813,12 @@ var TableDesktopRowActions = ({
7731
7813
  };
7732
7814
 
7733
7815
  // src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
7734
- var import_react37 = require("react");
7735
- var import_material65 = require("@mui/material");
7816
+ var import_react38 = require("react");
7817
+ var import_material66 = require("@mui/material");
7736
7818
 
7737
7819
  // src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
7738
7820
  var import_react36 = require("react");
7739
- var import_jsx_runtime116 = require("react/jsx-runtime");
7821
+ var import_jsx_runtime117 = require("react/jsx-runtime");
7740
7822
  var resolveValue = (value) => {
7741
7823
  if (typeof value === "string") {
7742
7824
  return value;
@@ -7767,7 +7849,7 @@ var TableDesktopSmartSelect = (0, import_react36.memo)(({
7767
7849
  setOptions(parsedOptions);
7768
7850
  }
7769
7851
  }, [filterOptions]);
7770
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7852
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7771
7853
  SmartSelect_default,
7772
7854
  {
7773
7855
  ref,
@@ -7790,7 +7872,43 @@ var TableDesktopSmartSelect = (0, import_react36.memo)(({
7790
7872
 
7791
7873
  // src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
7792
7874
  var import_Check2 = __toESM(require("@mui/icons-material/Check"), 1);
7793
- var import_jsx_runtime117 = require("react/jsx-runtime");
7875
+
7876
+ // src/components/TableDesktopRowCell/TableDesktopTextField.tsx
7877
+ var import_TextField = __toESM(require("@mui/material/TextField"), 1);
7878
+ var import_react37 = require("react");
7879
+ var import_jsx_runtime118 = require("react/jsx-runtime");
7880
+ var TableDesktopTextField = ({
7881
+ rowId,
7882
+ editInitialValue,
7883
+ inputLabel,
7884
+ validateInput,
7885
+ onUpdateEditableCell
7886
+ }) => {
7887
+ const [value, setValue] = (0, import_react37.useState)(editInitialValue);
7888
+ const hasError = (0, import_react37.useMemo)(() => !validateInput?.(value), [value, validateInput]);
7889
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7890
+ import_TextField.default,
7891
+ {
7892
+ fullWidth: true,
7893
+ variant: "standard",
7894
+ defaultValue: value,
7895
+ label: inputLabel,
7896
+ error: hasError,
7897
+ onChange: ({ target: { value: value2 } }) => {
7898
+ setValue(value2);
7899
+ },
7900
+ onBlur: ({ target: { value: value2 } }) => {
7901
+ if (hasError) {
7902
+ return;
7903
+ }
7904
+ onUpdateEditableCell?.(rowId, value2);
7905
+ }
7906
+ }
7907
+ );
7908
+ };
7909
+
7910
+ // src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
7911
+ var import_jsx_runtime119 = require("react/jsx-runtime");
7794
7912
  var TableDesktopRowCell = ({
7795
7913
  ref,
7796
7914
  inputLabel,
@@ -7804,18 +7922,19 @@ var TableDesktopRowCell = ({
7804
7922
  filterOptions,
7805
7923
  refetchFilterOptions,
7806
7924
  isFetchingFilterOptions,
7925
+ validateInput,
7807
7926
  onUpdateEditableCell
7808
7927
  }) => {
7809
- const cellRef = (0, import_react37.useRef)(null);
7810
- const [isOverflowed, setIsOverflowed] = (0, import_react37.useState)(false);
7811
- (0, import_react37.useEffect)(() => {
7928
+ const cellRef = (0, import_react38.useRef)(null);
7929
+ const [isOverflowed, setIsOverflowed] = (0, import_react38.useState)(false);
7930
+ (0, import_react38.useEffect)(() => {
7812
7931
  const ref2 = cellRef.current;
7813
7932
  if (ref2) {
7814
7933
  setIsOverflowed(ref2.scrollWidth > ref2.clientWidth);
7815
7934
  }
7816
7935
  }, [readOnlyValue, width]);
7817
7936
  const editableComponents = {
7818
- "select": /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7937
+ "select": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7819
7938
  TableDesktopSmartSelect,
7820
7939
  {
7821
7940
  ref,
@@ -7829,8 +7948,8 @@ var TableDesktopRowCell = ({
7829
7948
  onUpdateEditableCell
7830
7949
  }
7831
7950
  ),
7832
- "checkbox": /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7833
- import_material65.Checkbox,
7951
+ "checkbox": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7952
+ import_material66.Checkbox,
7834
7953
  {
7835
7954
  disableRipple: true,
7836
7955
  defaultChecked: editInitialValue,
@@ -7839,20 +7958,18 @@ var TableDesktopRowCell = ({
7839
7958
  }
7840
7959
  }
7841
7960
  ),
7842
- "text": /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7843
- import_material65.TextField,
7961
+ "text": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7962
+ TableDesktopTextField,
7844
7963
  {
7845
- fullWidth: true,
7846
- variant: "standard",
7847
- defaultValue: editInitialValue,
7848
- label: inputLabel,
7849
- onBlur: ({ target: { value } }) => {
7850
- onUpdateEditableCell?.(rowId, value);
7851
- }
7964
+ rowId,
7965
+ editInitialValue,
7966
+ inputLabel: inputLabel ?? "",
7967
+ validateInput,
7968
+ onUpdateEditableCell
7852
7969
  }
7853
7970
  ),
7854
- "numeric": /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7855
- import_material65.TextField,
7971
+ "numeric": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7972
+ import_material66.TextField,
7856
7973
  {
7857
7974
  fullWidth: true,
7858
7975
  variant: "standard",
@@ -7874,12 +7991,12 @@ var TableDesktopRowCell = ({
7874
7991
  };
7875
7992
  const getReadOnlyBooleanIcon = (value) => {
7876
7993
  if (value) {
7877
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_Check2.default, { sx: { fontSize: 16 } });
7994
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Check2.default, { sx: { fontSize: 16 } });
7878
7995
  }
7879
7996
  return "-";
7880
7997
  };
7881
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material65.Tooltip, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7882
- import_material65.TableCell,
7998
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.Tooltip, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7999
+ import_material66.TableCell,
7883
8000
  {
7884
8001
  ref: cellRef,
7885
8002
  align: "left",
@@ -7895,11 +8012,11 @@ var TableDesktopRowCell = ({
7895
8012
  };
7896
8013
 
7897
8014
  // src/components/TableHeader/TableHeader.tsx
7898
- var import_react38 = require("react");
8015
+ var import_react39 = require("react");
7899
8016
  var import_icons_material12 = require("@mui/icons-material");
7900
- var import_material66 = require("@mui/material");
8017
+ var import_material67 = require("@mui/material");
7901
8018
  var import_mui57 = require("tss-react/mui");
7902
- var import_jsx_runtime118 = require("react/jsx-runtime");
8019
+ var import_jsx_runtime120 = require("react/jsx-runtime");
7903
8020
  var useStyles51 = (0, import_mui57.makeStyles)()(() => ({
7904
8021
  sortLabel: {
7905
8022
  "& .MuiTableSortLabel-icon": {
@@ -7908,9 +8025,9 @@ var useStyles51 = (0, import_mui57.makeStyles)()(() => ({
7908
8025
  }
7909
8026
  }));
7910
8027
  var TableHeader = ({ cells, onSort = null }) => {
7911
- const [sortableCells, setSortableCells] = (0, import_react38.useState)([]);
8028
+ const [sortableCells, setSortableCells] = (0, import_react39.useState)([]);
7912
8029
  const { classes } = useStyles51();
7913
- (0, import_react38.useEffect)(() => {
8030
+ (0, import_react39.useEffect)(() => {
7914
8031
  setSortableCells(cells);
7915
8032
  }, []);
7916
8033
  const getNewSortDirection = (direction) => {
@@ -7944,8 +8061,8 @@ var TableHeader = ({ cells, onSort = null }) => {
7944
8061
  });
7945
8062
  setSortableCells(sortedCells);
7946
8063
  };
7947
- return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material66.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material66.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material66.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7948
- import_material66.TableSortLabel,
8064
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
8065
+ import_material67.TableSortLabel,
7949
8066
  {
7950
8067
  className: classes.sortLabel,
7951
8068
  direction: cell?.direction || "asc",
@@ -7955,12 +8072,12 @@ var TableHeader = ({ cells, onSort = null }) => {
7955
8072
  }
7956
8073
  ) : cell.label }, cell.label || key)) }) });
7957
8074
  };
7958
- var TableHeader_default = (0, import_react38.memo)(TableHeader);
8075
+ var TableHeader_default = (0, import_react39.memo)(TableHeader);
7959
8076
 
7960
8077
  // src/components/TextDivider/TextDivider.tsx
7961
- var import_material67 = require("@mui/material");
8078
+ var import_material68 = require("@mui/material");
7962
8079
  var import_mui58 = require("tss-react/mui");
7963
- var import_jsx_runtime119 = require("react/jsx-runtime");
8080
+ var import_jsx_runtime121 = require("react/jsx-runtime");
7964
8081
  var useStyles52 = (0, import_mui58.makeStyles)()(() => ({
7965
8082
  icon: {
7966
8083
  fontSize: 20
@@ -7997,19 +8114,19 @@ var TextDivider = ({
7997
8114
  }) => {
7998
8115
  const { classes } = useStyles52();
7999
8116
  const iconColor = color ?? colors.neutral900;
8000
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
8001
- import_material67.Box,
8117
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
8118
+ import_material68.Box,
8002
8119
  {
8003
8120
  display: "flex",
8004
8121
  alignItems: "center",
8005
8122
  justifyContent: "space-between",
8006
8123
  className: classes.container,
8007
8124
  children: [
8008
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material67.Divider, { className: classes.leftDivider }),
8009
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material67.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_material67.Box, { className: classes.center, children: [
8010
- Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
8011
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8012
- import_material67.Typography,
8125
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Divider, { className: classes.leftDivider }),
8126
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_material68.Box, { className: classes.center, children: [
8127
+ Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
8128
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8129
+ import_material68.Typography,
8013
8130
  {
8014
8131
  color: "textSecondary",
8015
8132
  className: classes.title,
@@ -8017,9 +8134,9 @@ var TextDivider = ({
8017
8134
  children: title
8018
8135
  }
8019
8136
  ),
8020
- Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
8137
+ Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
8021
8138
  ] }) }),
8022
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material67.Divider, { className: classes.rightDivider })
8139
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Divider, { className: classes.rightDivider })
8023
8140
  ]
8024
8141
  }
8025
8142
  );
@@ -8031,7 +8148,7 @@ var import_react_dates = require("react-dates");
8031
8148
  var import_mui59 = require("tss-react/mui");
8032
8149
  var import_initialize = require("react-dates/initialize");
8033
8150
  var import_datepicker = require("react-dates/lib/css/_datepicker.css");
8034
- var import_jsx_runtime120 = require("react/jsx-runtime");
8151
+ var import_jsx_runtime122 = require("react/jsx-runtime");
8035
8152
  var useStyles53 = (0, import_mui59.makeStyles)()((theme) => ({
8036
8153
  wrapper: {
8037
8154
  "& .DateRangePicker": {
@@ -8127,15 +8244,15 @@ var ThemedDateRangePicker = ({
8127
8244
  ...props
8128
8245
  }) => {
8129
8246
  const { classes, cx } = useStyles53();
8130
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_react_dates.DateRangePicker, { ...props }) });
8247
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_react_dates.DateRangePicker, { ...props }) });
8131
8248
  };
8132
8249
  var ThemedDateRangePicker_default = ThemedDateRangePicker;
8133
8250
 
8134
8251
  // src/components/TheToolbar/TheToolbar.tsx
8135
- var import_react39 = require("react");
8136
- var import_material68 = require("@mui/material");
8252
+ var import_react40 = require("react");
8253
+ var import_material69 = require("@mui/material");
8137
8254
  var import_mui60 = require("tss-react/mui");
8138
- var import_jsx_runtime121 = require("react/jsx-runtime");
8255
+ var import_jsx_runtime123 = require("react/jsx-runtime");
8139
8256
  var useStyles54 = (0, import_mui60.makeStyles)()((theme) => ({
8140
8257
  menuButton: {
8141
8258
  color: theme.palette.primary.contrastText
@@ -8155,9 +8272,9 @@ var TheToolbar = ({
8155
8272
  rightSection
8156
8273
  }) => {
8157
8274
  const { classes } = useStyles54();
8158
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_material68.Box, { children: [
8159
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_material68.Toolbar, { className: classes.topBar, children: [
8160
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8275
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material69.Box, { children: [
8276
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material69.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material69.Toolbar, { className: classes.topBar, children: [
8277
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8161
8278
  RoundButton_default,
8162
8279
  {
8163
8280
  className: classes.menuButton,
@@ -8166,7 +8283,7 @@ var TheToolbar = ({
8166
8283
  onClick: handleOpen
8167
8284
  }
8168
8285
  ),
8169
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8286
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8170
8287
  CompanyLogo_default,
8171
8288
  {
8172
8289
  size: "small",
@@ -8175,31 +8292,31 @@ var TheToolbar = ({
8175
8292
  imageLogoLightSmall
8176
8293
  }
8177
8294
  ),
8178
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Box, { ml: 2, children: leftSection }),
8179
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Box, { ml: "auto", children: rightSection })
8295
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material69.Box, { ml: 2, children: leftSection }),
8296
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material69.Box, { ml: "auto", children: rightSection })
8180
8297
  ] }) }),
8181
8298
  LeftDrawer
8182
8299
  ] });
8183
8300
  };
8184
- var TheToolbar_default = (0, import_react39.memo)(TheToolbar);
8301
+ var TheToolbar_default = (0, import_react40.memo)(TheToolbar);
8185
8302
 
8186
8303
  // src/components/ToastMessage/ToastMessage.tsx
8187
- var import_material69 = require("@mui/material");
8188
- var import_jsx_runtime122 = require("react/jsx-runtime");
8304
+ var import_material70 = require("@mui/material");
8305
+ var import_jsx_runtime124 = require("react/jsx-runtime");
8189
8306
  var ToastMessage = ({
8190
8307
  toastType,
8191
8308
  toastMessage,
8192
8309
  open,
8193
8310
  onClose
8194
- }) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8195
- import_material69.Snackbar,
8311
+ }) => /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8312
+ import_material70.Snackbar,
8196
8313
  {
8197
8314
  open,
8198
8315
  autoHideDuration: 1500,
8199
8316
  onClose,
8200
8317
  anchorOrigin: { vertical: "top", horizontal: "right" },
8201
- children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8202
- import_material69.Alert,
8318
+ children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8319
+ import_material70.Alert,
8203
8320
  {
8204
8321
  elevation: 6,
8205
8322
  variant: "filled",
@@ -8225,9 +8342,9 @@ var ToastMessage = ({
8225
8342
  var ToastMessage_default = ToastMessage;
8226
8343
 
8227
8344
  // src/components/TwoButtonDialog/TwoButtonDialog.tsx
8228
- var import_material70 = require("@mui/material");
8345
+ var import_material71 = require("@mui/material");
8229
8346
  var import_mui61 = require("tss-react/mui");
8230
- var import_jsx_runtime123 = require("react/jsx-runtime");
8347
+ var import_jsx_runtime125 = require("react/jsx-runtime");
8231
8348
  var useStyles55 = (0, import_mui61.makeStyles)()((theme) => ({
8232
8349
  paper: {
8233
8350
  padding: theme.spacing(2)
@@ -8257,20 +8374,20 @@ var TwoButtonDialog = ({
8257
8374
  cancelButton
8258
8375
  }) => {
8259
8376
  const { classes } = useStyles55();
8260
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8261
- import_material70.Dialog,
8377
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8378
+ import_material71.Dialog,
8262
8379
  {
8263
8380
  open,
8264
8381
  disableEnforceFocus: true,
8265
8382
  maxWidth: "sm",
8266
8383
  fullWidth: true,
8267
8384
  closeAfterTransition: true,
8268
- BackdropComponent: import_material70.Backdrop,
8385
+ BackdropComponent: import_material71.Backdrop,
8269
8386
  BackdropProps: { timeout: 500 },
8270
- children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material70.Paper, { className: classes.paper, children: [
8271
- /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material70.Box, { className: classes.mb, children: [
8272
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8273
- import_material70.Box,
8387
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material71.Paper, { className: classes.paper, children: [
8388
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material71.Box, { className: classes.mb, children: [
8389
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8390
+ import_material71.Box,
8274
8391
  {
8275
8392
  sx: {
8276
8393
  fontWeight: 600
@@ -8278,23 +8395,23 @@ var TwoButtonDialog = ({
8278
8395
  children: title
8279
8396
  }
8280
8397
  ) }),
8281
- /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
8282
- import_material70.Box,
8398
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
8399
+ import_material71.Box,
8283
8400
  {
8284
8401
  className: classes.mt,
8285
8402
  sx: {
8286
8403
  fontWeight: 600
8287
8404
  },
8288
8405
  children: [
8289
- subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Typography, { variant: "subtitle1", children: subtitle1 }),
8290
- subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Typography, { variant: "subtitle1", children: subtitle2 })
8406
+ subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Typography, { variant: "subtitle1", children: subtitle1 }),
8407
+ subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Typography, { variant: "subtitle1", children: subtitle2 })
8291
8408
  ]
8292
8409
  }
8293
8410
  )
8294
8411
  ] }),
8295
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Divider, {}),
8296
- /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material70.Box, { className: classes.buttonContainer, children: [
8297
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8412
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Divider, {}),
8413
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material71.Box, { className: classes.buttonContainer, children: [
8414
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8298
8415
  FilledButton_default,
8299
8416
  {
8300
8417
  copy: cancelLabel,
@@ -8307,7 +8424,7 @@ var TwoButtonDialog = ({
8307
8424
  }
8308
8425
  }
8309
8426
  ),
8310
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8427
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8311
8428
  FilledButton_default,
8312
8429
  {
8313
8430
  color: "primary",
@@ -8316,7 +8433,7 @@ var TwoButtonDialog = ({
8316
8433
  }
8317
8434
  )
8318
8435
  ] }),
8319
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Loading_default, { isLoading: dialogLoading })
8436
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Loading_default, { isLoading: dialogLoading })
8320
8437
  ] }) })
8321
8438
  }
8322
8439
  );
@@ -8324,30 +8441,30 @@ var TwoButtonDialog = ({
8324
8441
  var TwoButtonDialog_default = TwoButtonDialog;
8325
8442
 
8326
8443
  // src/components/UserBust/UserBust.tsx
8327
- var import_react40 = require("react");
8328
- var import_material71 = require("@mui/material");
8329
- var import_jsx_runtime124 = require("react/jsx-runtime");
8330
- var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { children: [
8331
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8332
- import_material71.Avatar,
8444
+ var import_react41 = require("react");
8445
+ var import_material72 = require("@mui/material");
8446
+ var import_jsx_runtime126 = require("react/jsx-runtime");
8447
+ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { children: [
8448
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8449
+ import_material72.Avatar,
8333
8450
  {
8334
8451
  src: user.profile_picture,
8335
8452
  alt: "user_avatar",
8336
8453
  style: { width: avatarProps.width, height: avatarProps.height }
8337
8454
  }
8338
8455
  ),
8339
- /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { style: { paddingTop: 16 }, children: [
8340
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material71.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
8341
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material71.Typography, { ...typographyProps.username, children: user.username })
8456
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { style: { paddingTop: 16 }, children: [
8457
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material72.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
8458
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material72.Typography, { ...typographyProps.username, children: user.username })
8342
8459
  ] })
8343
8460
  ] });
8344
- var UserBust_default = (0, import_react40.memo)(UserBust);
8461
+ var UserBust_default = (0, import_react41.memo)(UserBust);
8345
8462
 
8346
8463
  // src/components/icons/IconChart.tsx
8347
- var import_jsx_runtime125 = require("react/jsx-runtime");
8464
+ var import_jsx_runtime127 = require("react/jsx-runtime");
8348
8465
  var SvgIconChart = (props) => {
8349
8466
  const { fill } = props;
8350
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8467
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
8351
8468
  "svg",
8352
8469
  {
8353
8470
  width: "20",
@@ -8356,7 +8473,7 @@ var SvgIconChart = (props) => {
8356
8473
  fill: "none",
8357
8474
  xmlns: "http://www.w3.org/2000/svg",
8358
8475
  ...props,
8359
- children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8476
+ children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
8360
8477
  "path",
8361
8478
  {
8362
8479
  d: "M2.49967 11.6667L2.91634 11.725L6.72467 7.91667C6.57467 7.375 6.71634 6.75833 7.15801 6.325C7.80801 5.66667 8.85801 5.66667 9.50801 6.325C9.94967 6.75833 10.0913 7.375 9.94134 7.91667L12.083 10.0583L12.4997 10C12.6497 10 12.7913 10 12.9163 10.0583L15.8913 7.08333C15.833 6.95833 15.833 6.81667 15.833 6.66667C15.833 6.22464 16.0086 5.80072 16.3212 5.48816C16.6337 5.17559 17.0576 5 17.4997 5C17.9417 5 18.3656 5.17559 18.6782 5.48816C18.9907 5.80072 19.1663 6.22464 19.1663 6.66667C19.1663 7.10869 18.9907 7.53262 18.6782 7.84518C18.3656 8.15774 17.9417 8.33333 17.4997 8.33333C17.3497 8.33333 17.208 8.33333 17.083 8.275L14.108 11.25C14.1663 11.375 14.1663 11.5167 14.1663 11.6667C14.1663 12.1087 13.9907 12.5326 13.6782 12.8452C13.3656 13.1577 12.9417 13.3333 12.4997 13.3333C12.0576 13.3333 11.6337 13.1577 11.3212 12.8452C11.0086 12.5326 10.833 12.1087 10.833 11.6667L10.8913 11.25L8.74967 9.10833C8.48301 9.16667 8.18301 9.16667 7.91634 9.10833L4.10801 12.9167L4.16634 13.3333C4.16634 13.7754 3.99075 14.1993 3.67819 14.5118C3.36563 14.8244 2.9417 15 2.49967 15C2.05765 15 1.63372 14.8244 1.32116 14.5118C1.0086 14.1993 0.833008 13.7754 0.833008 13.3333C0.833008 12.8913 1.0086 12.4674 1.32116 12.1548C1.63372 11.8423 2.05765 11.6667 2.49967 11.6667Z",
@@ -8435,6 +8552,7 @@ var IconChart_default = SvgIconChart;
8435
8552
  Switch,
8436
8553
  Table,
8437
8554
  TableDesktop,
8555
+ TableDesktopFooter,
8438
8556
  TableDesktopRowActions,
8439
8557
  TableDesktopRowCell,
8440
8558
  TableDesktopSmartSelect,