@natoora-libs/core 0.1.9-dev-doug-1 → 0.1.9-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.
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
- import React__default, { MouseEvent, ReactNode, ComponentType, ChangeEvent, FC, Ref, RefObject, ComponentProps, SVGProps } from 'react';
2
+ import React__default, { MouseEvent, ReactNode, ComponentType, ChangeEvent, FC, RefObject, ComponentProps, SVGProps } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
5
5
  import { UseMutateAsyncFunction } from 'react-query';
6
- import { MenuProps, Theme, Typography } from '@mui/material';
6
+ import { MenuProps, SxProps, Theme, Typography } from '@mui/material';
7
7
  import { DateRangePickerShape } from 'react-dates';
8
8
 
9
9
  type ActiveFiltersIconButtonProps = {
@@ -712,7 +712,7 @@ declare const _default$9: React.MemoExoticComponent<(props: SearchAndFilterHeade
712
712
  type SearchFieldDebouncedProps = {
713
713
  onSearch: (value: string) => void;
714
714
  initialValue?: string;
715
- debounceMs?: number;
715
+ debounceDelay?: number;
716
716
  };
717
717
  declare const SearchFieldDebounced: React__default.FC<SearchFieldDebouncedProps>;
718
718
 
@@ -866,6 +866,7 @@ type HeadCell = {
866
866
  disablePadding?: boolean;
867
867
  width?: number | string;
868
868
  enabled?: boolean;
869
+ disableSort?: boolean;
869
870
  RenderHeader?: ReactNode;
870
871
  editableCellType?: EditableCellType;
871
872
  onUpdateEditableCell?: (rowId: number, newValue: string | number | boolean) => void;
@@ -942,21 +943,11 @@ interface TableProps {
942
943
  declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
943
944
 
944
945
  type TableDesktopRowActionsProps = {
945
- rowRef: Ref<unknown>;
946
946
  isRowHovered: boolean;
947
- top?: number | string;
948
- right?: number | string;
949
- bottom?: number | string;
950
- left?: number | string;
947
+ children: ReactNode;
948
+ sx?: SxProps<Theme>;
951
949
  zIndex?: number | string;
952
- px?: number | string;
953
- py?: number | string;
954
- pt?: number | string;
955
- pb?: number | string;
956
- pr?: number | string;
957
- pl?: number | string;
958
950
  backgroundColor?: string | ((theme: Theme) => string);
959
- children: ReactNode;
960
951
  };
961
952
  declare const TableDesktopRowActions: FC<TableDesktopRowActionsProps>;
962
953
 
@@ -972,7 +963,7 @@ type TableDesktopRowCellProps = {
972
963
  inputLabel: HeadCell["label"];
973
964
  filterOptions?: HeadCell["filterOptions"];
974
965
  refetchFilterOptions?: HeadCell["refetchFilterOptions"];
975
- isFetchingFilterOptions: HeadCell["isFetchingFilterOptions"];
966
+ isFetchingFilterOptions?: HeadCell["isFetchingFilterOptions"];
976
967
  onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
977
968
  };
978
969
  declare const TableDesktopRowCell: FC<TableDesktopRowCellProps>;
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
- import React__default, { MouseEvent, ReactNode, ComponentType, ChangeEvent, FC, Ref, RefObject, ComponentProps, SVGProps } from 'react';
2
+ import React__default, { MouseEvent, ReactNode, ComponentType, ChangeEvent, FC, RefObject, ComponentProps, SVGProps } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { Control, ControllerRenderProps, ControllerFieldState, UseFormTrigger, UseFormReturn, FieldValues } from 'react-hook-form';
5
5
  import { UseMutateAsyncFunction } from 'react-query';
6
- import { MenuProps, Theme, Typography } from '@mui/material';
6
+ import { MenuProps, SxProps, Theme, Typography } from '@mui/material';
7
7
  import { DateRangePickerShape } from 'react-dates';
8
8
 
9
9
  type ActiveFiltersIconButtonProps = {
@@ -712,7 +712,7 @@ declare const _default$9: React.MemoExoticComponent<(props: SearchAndFilterHeade
712
712
  type SearchFieldDebouncedProps = {
713
713
  onSearch: (value: string) => void;
714
714
  initialValue?: string;
715
- debounceMs?: number;
715
+ debounceDelay?: number;
716
716
  };
717
717
  declare const SearchFieldDebounced: React__default.FC<SearchFieldDebouncedProps>;
718
718
 
@@ -866,6 +866,7 @@ type HeadCell = {
866
866
  disablePadding?: boolean;
867
867
  width?: number | string;
868
868
  enabled?: boolean;
869
+ disableSort?: boolean;
869
870
  RenderHeader?: ReactNode;
870
871
  editableCellType?: EditableCellType;
871
872
  onUpdateEditableCell?: (rowId: number, newValue: string | number | boolean) => void;
@@ -942,21 +943,11 @@ interface TableProps {
942
943
  declare const Table: ({ appliedFilters, data, doNotCalculateRows, headCells, isLoading, onRowClick, page, RenderItem, rowsPerPage: defaultRowsPerPage, serverRendered, updateSort, }: TableProps) => react_jsx_runtime.JSX.Element;
943
944
 
944
945
  type TableDesktopRowActionsProps = {
945
- rowRef: Ref<unknown>;
946
946
  isRowHovered: boolean;
947
- top?: number | string;
948
- right?: number | string;
949
- bottom?: number | string;
950
- left?: number | string;
947
+ children: ReactNode;
948
+ sx?: SxProps<Theme>;
951
949
  zIndex?: number | string;
952
- px?: number | string;
953
- py?: number | string;
954
- pt?: number | string;
955
- pb?: number | string;
956
- pr?: number | string;
957
- pl?: number | string;
958
950
  backgroundColor?: string | ((theme: Theme) => string);
959
- children: ReactNode;
960
951
  };
961
952
  declare const TableDesktopRowActions: FC<TableDesktopRowActionsProps>;
962
953
 
@@ -972,7 +963,7 @@ type TableDesktopRowCellProps = {
972
963
  inputLabel: HeadCell["label"];
973
964
  filterOptions?: HeadCell["filterOptions"];
974
965
  refetchFilterOptions?: HeadCell["refetchFilterOptions"];
975
- isFetchingFilterOptions: HeadCell["isFetchingFilterOptions"];
966
+ isFetchingFilterOptions?: HeadCell["isFetchingFilterOptions"];
976
967
  onUpdateEditableCell?: HeadCell["onUpdateEditableCell"];
977
968
  };
978
969
  declare const TableDesktopRowCell: FC<TableDesktopRowCellProps>;
@@ -6226,7 +6226,7 @@ import { jsx as jsx103 } from "react/jsx-runtime";
6226
6226
  var SearchFieldDebounced = ({
6227
6227
  onSearch,
6228
6228
  initialValue = "",
6229
- debounceMs = 500
6229
+ debounceDelay = 500
6230
6230
  }) => {
6231
6231
  const [value, setValue] = useState13(initialValue);
6232
6232
  const debounceRef = useRef4(null);
@@ -6238,7 +6238,7 @@ var SearchFieldDebounced = ({
6238
6238
  ;
6239
6239
  debounceRef.current = window.setTimeout(() => {
6240
6240
  onSearch(e.target.value);
6241
- }, debounceMs);
6241
+ }, debounceDelay);
6242
6242
  };
6243
6243
  useEffect8(() => {
6244
6244
  return () => {
@@ -6592,7 +6592,7 @@ var Switch_default = memo19(LabelledSwitch);
6592
6592
  import { useMemo as useMemo3, useState as useState16, useEffect as useEffect11, memo as memo21 } from "react";
6593
6593
  import CheckIcon from "@mui/icons-material/Check";
6594
6594
  import {
6595
- Box as Box29,
6595
+ Box as Box30,
6596
6596
  Checkbox as Checkbox5,
6597
6597
  Divider as Divider9,
6598
6598
  FormControlLabel as FormControlLabel3,
@@ -6616,18 +6616,20 @@ import {
6616
6616
  TableBody,
6617
6617
  TableContainer,
6618
6618
  Skeleton as Skeleton2,
6619
- Box as Box28
6619
+ Box as Box29
6620
6620
  } from "@mui/material";
6621
6621
  import { makeStyles as makeStyles47 } from "tss-react/mui";
6622
6622
 
6623
6623
  // src/components/SmartTableHeader/SmartTableHeader.tsx
6624
6624
  import { memo as memo20 } from "react";
6625
6625
  import {
6626
+ Box as Box28,
6626
6627
  Checkbox as Checkbox4,
6627
6628
  TableCell,
6628
6629
  TableHead,
6629
6630
  TableRow,
6630
- TableSortLabel
6631
+ TableSortLabel,
6632
+ Typography as Typography25
6631
6633
  } from "@mui/material";
6632
6634
  import { makeStyles as makeStyles45 } from "tss-react/mui";
6633
6635
  import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
@@ -6653,7 +6655,7 @@ var useStyles45 = makeStyles45()((theme) => ({
6653
6655
  },
6654
6656
  tableHeaderContent: {
6655
6657
  borderBottom: "1px solid",
6656
- borderBottomColor: colors.neutral250,
6658
+ borderBottomColor: colors.neutral300,
6657
6659
  whiteSpace: "nowrap",
6658
6660
  "& .filter-menu-trigger": {
6659
6661
  visibility: "hidden",
@@ -6714,38 +6716,46 @@ var SmartTableHeader = ({
6714
6716
  onChange: onSelectAllClick
6715
6717
  }
6716
6718
  ) }) : null,
6717
- headCells.map((headCell) => /* @__PURE__ */ jsxs73(
6719
+ headCells.map((headCell) => /* @__PURE__ */ jsx108(
6718
6720
  TableCell,
6719
6721
  {
6720
6722
  className: classes.tableHeaderContent,
6721
6723
  align: "left",
6722
- sx: { width: headCell.width ?? "auto" },
6724
+ width: headCell.width ?? "auto",
6723
6725
  sortDirection: orderBy === headCell.id ? order : false,
6724
- children: [
6725
- /* @__PURE__ */ jsxs73(
6726
- TableSortLabel,
6727
- {
6728
- "data-testid": "table-sort-label",
6729
- active: isSortActive(headCell.id),
6730
- direction: orderBy === headCell.id ? order : "asc",
6731
- onClick: createSortHandler(headCell.id),
6732
- children: [
6733
- headCell.RenderHeader ?? headCell.label,
6734
- orderBy === headCell.id ? /* @__PURE__ */ jsx108("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
6735
- ]
6736
- }
6737
- ),
6738
- headCell.refetchFilterOptions ? /* @__PURE__ */ jsx108(
6739
- SmartTableHeaderFilterMenu_default,
6740
- {
6741
- headCell,
6742
- headerFilters,
6743
- numActiveFilters: headerFilters[headCell.id]?.length ?? 0,
6744
- onApplyFilters,
6745
- shouldShowCheckOnFilter
6746
- }
6747
- ) : null
6748
- ]
6726
+ children: /* @__PURE__ */ jsxs73(
6727
+ Box28,
6728
+ {
6729
+ display: "flex",
6730
+ flexDirection: "row",
6731
+ gap: headCell.disableSort ? 1 : 0,
6732
+ children: [
6733
+ headCell.disableSort ? /* @__PURE__ */ jsx108(Typography25, { variant: "subtitle2", mt: 0.25, fontWeight: 600, children: headCell.label }) : /* @__PURE__ */ jsxs73(
6734
+ TableSortLabel,
6735
+ {
6736
+ "data-testid": "table-sort-label",
6737
+ active: isSortActive(headCell.id),
6738
+ direction: orderBy === headCell.id ? order : "asc",
6739
+ onClick: createSortHandler(headCell.id),
6740
+ children: [
6741
+ headCell.RenderHeader ?? headCell.label,
6742
+ orderBy === headCell.id ? /* @__PURE__ */ jsx108("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
6743
+ ]
6744
+ }
6745
+ ),
6746
+ headCell.refetchFilterOptions ? /* @__PURE__ */ jsx108(
6747
+ SmartTableHeaderFilterMenu_default,
6748
+ {
6749
+ headCell,
6750
+ headerFilters,
6751
+ numActiveFilters: headerFilters[headCell.id]?.length ?? 0,
6752
+ onApplyFilters,
6753
+ shouldShowCheckOnFilter
6754
+ }
6755
+ ) : null
6756
+ ]
6757
+ }
6758
+ )
6749
6759
  },
6750
6760
  headCell.id
6751
6761
  ))
@@ -6754,7 +6764,7 @@ var SmartTableHeader = ({
6754
6764
  var SmartTableHeader_default = memo20(SmartTableHeader);
6755
6765
 
6756
6766
  // src/components/TableEmptyResult/TableEmptyResult.tsx
6757
- import { TableCell as TableCell2, TableRow as TableRow2, Typography as Typography25 } from "@mui/material";
6767
+ import { TableCell as TableCell2, TableRow as TableRow2, Typography as Typography26 } from "@mui/material";
6758
6768
  import { makeStyles as makeStyles46 } from "tss-react/mui";
6759
6769
  import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
6760
6770
  var useStyles46 = makeStyles46()(() => ({
@@ -6776,8 +6786,8 @@ var TableEmptyResult = ({
6776
6786
  align: "center",
6777
6787
  children: [
6778
6788
  /* @__PURE__ */ jsx109(EmptyGlassIcon_default, {}),
6779
- /* @__PURE__ */ jsx109(Typography25, { variant: "h6", children: "No results found." }),
6780
- /* @__PURE__ */ jsx109(Typography25, { variant: "subtitle1", children: "Search without applied filters?" }),
6789
+ /* @__PURE__ */ jsx109(Typography26, { variant: "h6", children: "No results found." }),
6790
+ /* @__PURE__ */ jsx109(Typography26, { variant: "subtitle1", children: "Search without applied filters?" }),
6781
6791
  /* @__PURE__ */ jsx109(
6782
6792
  FilledButton_default,
6783
6793
  {
@@ -6983,7 +6993,7 @@ var TableDesktop = ({
6983
6993
  }
6984
6994
  }, [enableCheckboxSelection]);
6985
6995
  return /* @__PURE__ */ jsx110("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsxs75(Paper10, { className: classes.paper, children: [
6986
- isLoading ? /* @__PURE__ */ jsx110(Box28, { width: "100%", overflow: "hidden", children: [...Array(Math.floor(rowsPerPage ?? 50))].map((_, index) => /* @__PURE__ */ jsx110(
6996
+ isLoading ? /* @__PURE__ */ jsx110(Box29, { width: "100%", overflow: "hidden", children: [...Array(Math.floor(rowsPerPage ?? 50))].map((_, index) => /* @__PURE__ */ jsx110(
6987
6997
  Skeleton2,
6988
6998
  {
6989
6999
  animation: "pulse",
@@ -7066,7 +7076,8 @@ var useStyles48 = makeStyles48()((theme) => ({
7066
7076
  },
7067
7077
  applyFilterButtonsContainer: {
7068
7078
  display: "flex",
7069
- padding: theme.spacing(0, 1)
7079
+ padding: theme.spacing(0, 1),
7080
+ justifyContent: "space-between"
7070
7081
  },
7071
7082
  saveAsDefaultButton: {
7072
7083
  color: theme.palette.primary.main
@@ -7099,8 +7110,9 @@ var SmartTableHeaderFilterMenu = ({
7099
7110
  headerFilters[headCell.id] ?? []
7100
7111
  );
7101
7112
  useEffect11(() => {
7102
- if (headCell.filterOptions)
7113
+ if (headCell.filterOptions) {
7103
7114
  setFilterOptionsData(headCell.filterOptions);
7115
+ }
7104
7116
  }, [headCell.filterOptions]);
7105
7117
  const numFilterOptions = useMemo3(() => filterOptionsData?.length ?? 0, [filterOptionsData?.length]);
7106
7118
  const numCurrentSelectedFilters = selectedFilters.length;
@@ -7144,7 +7156,7 @@ var SmartTableHeaderFilterMenu = ({
7144
7156
  const isOptionChecked = useMemo3(() => (resolvedOption) => !!selectedFilters?.some(
7145
7157
  (value) => resolveOptionType(value, headCell.fieldName ?? "") === resolvedOption
7146
7158
  ), [selectedFilters]);
7147
- const loadingSkeletons = /* @__PURE__ */ jsxs76(Box29, { "data-testid": "loading-skeletons", width: 272, children: [
7159
+ const loadingSkeletons = /* @__PURE__ */ jsxs76(Box30, { "data-testid": "loading-skeletons", width: 272, children: [
7148
7160
  /* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
7149
7161
  /* @__PURE__ */ jsx111(Divider9, {}),
7150
7162
  /* @__PURE__ */ jsx111(Skeleton3, { variant: "rounded", className: classes.skeleton }),
@@ -7174,8 +7186,8 @@ var SmartTableHeaderFilterMenu = ({
7174
7186
  "data-testid": "filter-menu",
7175
7187
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
7176
7188
  transformOrigin: { vertical: "top", horizontal: "right" },
7177
- children: false ? loadingSkeletons : /* @__PURE__ */ jsxs76(Box29, { className: classes.filterMenu, children: [
7178
- /* @__PURE__ */ jsx111(Box29, { px: 3, mb: 0.5, children: /* @__PURE__ */ jsx111(
7189
+ children: headCell.isFetchingFilterOptions ? loadingSkeletons : /* @__PURE__ */ jsxs76(Box30, { className: classes.filterMenu, children: [
7190
+ /* @__PURE__ */ jsx111(Box30, { px: 3, mb: 0.5, children: /* @__PURE__ */ jsx111(
7179
7191
  FormControlLabel3,
7180
7192
  {
7181
7193
  label: "Select All",
@@ -7197,11 +7209,11 @@ var SmartTableHeaderFilterMenu = ({
7197
7209
  }
7198
7210
  ) }),
7199
7211
  /* @__PURE__ */ jsx111(Divider9, { sx: { mb: 0.5 } }),
7200
- /* @__PURE__ */ jsx111(Box29, { className: classes.filterOptions, children: filterOptionsData?.map(
7212
+ /* @__PURE__ */ jsx111(Box30, { className: classes.filterOptions, children: filterOptionsData?.map(
7201
7213
  (option) => {
7202
7214
  const resolvedOption = resolveOptionType(option, headCell.fieldName ?? "");
7203
7215
  return /* @__PURE__ */ jsxs76(
7204
- Box29,
7216
+ Box30,
7205
7217
  {
7206
7218
  className: classes.filter,
7207
7219
  children: [
@@ -7228,7 +7240,7 @@ var SmartTableHeaderFilterMenu = ({
7228
7240
  }
7229
7241
  ) }),
7230
7242
  /* @__PURE__ */ jsx111(Divider9, { sx: { mb: 0.5 } }),
7231
- /* @__PURE__ */ jsxs76(Box29, { className: classes.applyFilterButtonsContainer, children: [
7243
+ /* @__PURE__ */ jsxs76(Box30, { className: classes.applyFilterButtonsContainer, children: [
7232
7244
  /* @__PURE__ */ jsx111(
7233
7245
  ExtendedButton_default,
7234
7246
  {
@@ -7261,7 +7273,7 @@ var SmartTableHeaderFilterMenu_default = memo21(SmartTableHeaderFilterMenu);
7261
7273
  var import_debounce = __toESM(require_debounce(), 1);
7262
7274
  import { useLayoutEffect, useState as useState17 } from "react";
7263
7275
  import {
7264
- Box as Box31,
7276
+ Box as Box32,
7265
7277
  Paper as Paper11,
7266
7278
  Table as MUITable,
7267
7279
  TableBody as TableBody2,
@@ -7275,12 +7287,12 @@ import { makeStyles as makeStyles49 } from "tss-react/mui";
7275
7287
  import { v4 as uuidv4 } from "uuid";
7276
7288
 
7277
7289
  // src/components/TableLoading/TableLoading.tsx
7278
- import { Box as Box30, Skeleton as Skeleton4 } from "@mui/material";
7290
+ import { Box as Box31, Skeleton as Skeleton4 } from "@mui/material";
7279
7291
  import { jsx as jsx112 } from "react/jsx-runtime";
7280
7292
  var TableLoading = ({
7281
7293
  rowsPerPage,
7282
7294
  rowHeight
7283
- }) => /* @__PURE__ */ jsx112(Box30, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx112(
7295
+ }) => /* @__PURE__ */ jsx112(Box31, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx112(
7284
7296
  Skeleton4,
7285
7297
  {
7286
7298
  animation: "pulse",
@@ -7418,7 +7430,7 @@ var Table2 = ({
7418
7430
  }
7419
7431
  return rowsComponents;
7420
7432
  };
7421
- return /* @__PURE__ */ jsx113(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx113(Box31, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx113(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx113(TableContainer2, { className: classes.container, children: /* @__PURE__ */ jsxs77(MUITable, { size: "medium", stickyHeader: true, children: [
7433
+ return /* @__PURE__ */ jsx113(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx113(Box32, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx113(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx113(TableContainer2, { className: classes.container, children: /* @__PURE__ */ jsxs77(MUITable, { size: "medium", stickyHeader: true, children: [
7422
7434
  /* @__PURE__ */ jsx113(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx113(TableRow3, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx113(
7423
7435
  TableCell3,
7424
7436
  {
@@ -7445,53 +7457,35 @@ var Table2 = ({
7445
7457
  var Table_default = Table2;
7446
7458
 
7447
7459
  // src/components/TableDesktopRowActions/TableDesktopRowActions.tsx
7448
- import { Box as Box32, TableCell as TableCell4 } from "@mui/material";
7460
+ import { Box as Box33, TableCell as TableCell4 } from "@mui/material";
7449
7461
  import { jsx as jsx114 } from "react/jsx-runtime";
7450
7462
  var TableDesktopRowActions = ({
7451
- rowRef,
7452
7463
  isRowHovered,
7453
- px,
7454
- py,
7455
- pt,
7456
- pb,
7457
- pr,
7458
- pl,
7459
- top = 0,
7460
- right = 0,
7461
- bottom = 0,
7462
- left = 0,
7464
+ children,
7465
+ sx,
7463
7466
  zIndex = 1,
7464
- backgroundColor,
7465
- children
7467
+ backgroundColor
7466
7468
  }) => {
7467
7469
  return isRowHovered ? /* @__PURE__ */ jsx114(
7468
7470
  TableCell4,
7469
7471
  {
7470
- ref: rowRef,
7471
7472
  padding: "none",
7472
7473
  sx: {
7473
- top,
7474
- right,
7475
- bottom,
7476
- left,
7474
+ top: 0,
7475
+ right: 0,
7477
7476
  zIndex,
7478
7477
  position: "sticky",
7479
7478
  display: "flex",
7480
- justifyContent: "flex-end"
7479
+ justifyContent: "flex-end",
7480
+ alignItems: "center"
7481
7481
  },
7482
7482
  children: /* @__PURE__ */ jsx114(
7483
- Box32,
7483
+ Box33,
7484
7484
  {
7485
- px,
7486
- py,
7487
- pt,
7488
- pb,
7489
- pr,
7490
- pl,
7485
+ sx,
7491
7486
  display: "flex",
7492
7487
  flexDirection: "row",
7493
- borderLeft: `1px solid ${colors.neutral300}`,
7494
- bgcolor: backgroundColor ?? ((theme) => theme.palette.background.default),
7488
+ bgcolor: backgroundColor ?? colors.neutral100,
7495
7489
  children
7496
7490
  }
7497
7491
  )
@@ -7506,7 +7500,7 @@ import { Checkbox as Checkbox6, TableCell as TableCell5, TextField as TextField8
7506
7500
  // src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
7507
7501
  import { useState as useState18, memo as memo22, useEffect as useEffect12 } from "react";
7508
7502
  import { jsx as jsx115 } from "react/jsx-runtime";
7509
- var getValueId = (value) => {
7503
+ var resolveValue = (value) => {
7510
7504
  if (typeof value === "string") {
7511
7505
  return value;
7512
7506
  }
@@ -7525,12 +7519,12 @@ var TableDesktopSmartSelect = memo22(({
7525
7519
  }) => {
7526
7520
  const [value, setValue] = useState18(initialValue);
7527
7521
  const [options, setOptions] = useState18();
7528
- const valueId = getValueId(value);
7522
+ const valueId = resolveValue(value);
7529
7523
  const valueLabel = resolveOptionType(value, fieldName);
7530
7524
  useEffect12(() => {
7531
7525
  if (filterOptions) {
7532
7526
  const parsedOptions = filterOptions?.map((option) => ({
7533
- value: getValueId(option),
7527
+ value: resolveValue(option),
7534
7528
  label: String(resolveOptionType(option, fieldName))
7535
7529
  }));
7536
7530
  setOptions(parsedOptions);
@@ -7588,10 +7582,10 @@ var TableDesktopRowCell = ({
7588
7582
  TableDesktopSmartSelect,
7589
7583
  {
7590
7584
  ref,
7585
+ rowId,
7586
+ fieldName,
7591
7587
  initialValue: editInitialValue,
7592
7588
  inputLabel: inputLabel ?? "",
7593
- fieldName,
7594
- rowId,
7595
7589
  filterOptions,
7596
7590
  refetchFilterOptions,
7597
7591
  isFetchingFilterOptions,
@@ -7727,7 +7721,7 @@ var TableHeader = ({ cells, onSort = null }) => {
7727
7721
  var TableHeader_default = memo23(TableHeader);
7728
7722
 
7729
7723
  // src/components/TextDivider/TextDivider.tsx
7730
- import { Box as Box33, Typography as Typography26, Divider as Divider10, Button as Button13 } from "@mui/material";
7724
+ import { Box as Box34, Typography as Typography27, Divider as Divider10, Button as Button13 } from "@mui/material";
7731
7725
  import { makeStyles as makeStyles51 } from "tss-react/mui";
7732
7726
  import { jsx as jsx118, jsxs as jsxs78 } from "react/jsx-runtime";
7733
7727
  var useStyles51 = makeStyles51()(() => ({
@@ -7767,7 +7761,7 @@ var TextDivider = ({
7767
7761
  const { classes } = useStyles51();
7768
7762
  const iconColor = color ?? colors.neutral900;
7769
7763
  return /* @__PURE__ */ jsxs78(
7770
- Box33,
7764
+ Box34,
7771
7765
  {
7772
7766
  display: "flex",
7773
7767
  alignItems: "center",
@@ -7775,10 +7769,10 @@ var TextDivider = ({
7775
7769
  className: classes.container,
7776
7770
  children: [
7777
7771
  /* @__PURE__ */ jsx118(Divider10, { className: classes.leftDivider }),
7778
- /* @__PURE__ */ jsx118(Button13, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs78(Box33, { className: classes.center, children: [
7772
+ /* @__PURE__ */ jsx118(Button13, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs78(Box34, { className: classes.center, children: [
7779
7773
  Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx118(Icon2, { className: classes.icon, style: { color: iconColor } }),
7780
7774
  /* @__PURE__ */ jsx118(
7781
- Typography26,
7775
+ Typography27,
7782
7776
  {
7783
7777
  color: "textSecondary",
7784
7778
  className: classes.title,
@@ -7902,7 +7896,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
7902
7896
 
7903
7897
  // src/components/TheToolbar/TheToolbar.tsx
7904
7898
  import { memo as memo24 } from "react";
7905
- import { AppBar, Box as Box34, Toolbar } from "@mui/material";
7899
+ import { AppBar, Box as Box35, Toolbar } from "@mui/material";
7906
7900
  import { makeStyles as makeStyles53 } from "tss-react/mui";
7907
7901
  import { jsx as jsx120, jsxs as jsxs79 } from "react/jsx-runtime";
7908
7902
  var useStyles53 = makeStyles53()((theme) => ({
@@ -7924,7 +7918,7 @@ var TheToolbar = ({
7924
7918
  rightSection
7925
7919
  }) => {
7926
7920
  const { classes } = useStyles53();
7927
- return /* @__PURE__ */ jsxs79(Box34, { children: [
7921
+ return /* @__PURE__ */ jsxs79(Box35, { children: [
7928
7922
  /* @__PURE__ */ jsx120(AppBar, { children: /* @__PURE__ */ jsxs79(Toolbar, { className: classes.topBar, children: [
7929
7923
  /* @__PURE__ */ jsx120(
7930
7924
  RoundButton_default,
@@ -7944,8 +7938,8 @@ var TheToolbar = ({
7944
7938
  imageLogoLightSmall
7945
7939
  }
7946
7940
  ),
7947
- /* @__PURE__ */ jsx120(Box34, { ml: 2, children: leftSection }),
7948
- /* @__PURE__ */ jsx120(Box34, { ml: "auto", children: rightSection })
7941
+ /* @__PURE__ */ jsx120(Box35, { ml: 2, children: leftSection }),
7942
+ /* @__PURE__ */ jsx120(Box35, { ml: "auto", children: rightSection })
7949
7943
  ] }) }),
7950
7944
  LeftDrawer
7951
7945
  ] });
@@ -7995,10 +7989,10 @@ var ToastMessage_default = ToastMessage;
7995
7989
 
7996
7990
  // src/components/TwoButtonDialog/TwoButtonDialog.tsx
7997
7991
  import {
7998
- Typography as Typography27,
7992
+ Typography as Typography28,
7999
7993
  Dialog as Dialog5,
8000
7994
  Backdrop,
8001
- Box as Box35,
7995
+ Box as Box36,
8002
7996
  Divider as Divider11,
8003
7997
  Paper as Paper12,
8004
7998
  Fade as Fade2
@@ -8045,9 +8039,9 @@ var TwoButtonDialog = ({
8045
8039
  BackdropComponent: Backdrop,
8046
8040
  BackdropProps: { timeout: 500 },
8047
8041
  children: /* @__PURE__ */ jsx122(Fade2, { in: open, children: /* @__PURE__ */ jsxs80(Paper12, { className: classes.paper, children: [
8048
- /* @__PURE__ */ jsxs80(Box35, { className: classes.mb, children: [
8049
- /* @__PURE__ */ jsx122(Typography27, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx122(
8050
- Box35,
8042
+ /* @__PURE__ */ jsxs80(Box36, { className: classes.mb, children: [
8043
+ /* @__PURE__ */ jsx122(Typography28, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx122(
8044
+ Box36,
8051
8045
  {
8052
8046
  sx: {
8053
8047
  fontWeight: 600
@@ -8056,21 +8050,21 @@ var TwoButtonDialog = ({
8056
8050
  }
8057
8051
  ) }),
8058
8052
  /* @__PURE__ */ jsxs80(
8059
- Box35,
8053
+ Box36,
8060
8054
  {
8061
8055
  className: classes.mt,
8062
8056
  sx: {
8063
8057
  fontWeight: 600
8064
8058
  },
8065
8059
  children: [
8066
- subtitle1 && /* @__PURE__ */ jsx122(Typography27, { variant: "subtitle1", children: subtitle1 }),
8067
- subtitle2 && /* @__PURE__ */ jsx122(Typography27, { variant: "subtitle1", children: subtitle2 })
8060
+ subtitle1 && /* @__PURE__ */ jsx122(Typography28, { variant: "subtitle1", children: subtitle1 }),
8061
+ subtitle2 && /* @__PURE__ */ jsx122(Typography28, { variant: "subtitle1", children: subtitle2 })
8068
8062
  ]
8069
8063
  }
8070
8064
  )
8071
8065
  ] }),
8072
8066
  /* @__PURE__ */ jsx122(Divider11, {}),
8073
- /* @__PURE__ */ jsxs80(Box35, { className: classes.buttonContainer, children: [
8067
+ /* @__PURE__ */ jsxs80(Box36, { className: classes.buttonContainer, children: [
8074
8068
  /* @__PURE__ */ jsx122(
8075
8069
  FilledButton_default,
8076
8070
  {
@@ -8102,7 +8096,7 @@ var TwoButtonDialog_default = TwoButtonDialog;
8102
8096
 
8103
8097
  // src/components/UserBust/UserBust.tsx
8104
8098
  import { memo as memo25 } from "react";
8105
- import { Avatar as Avatar2, Typography as Typography28 } from "@mui/material";
8099
+ import { Avatar as Avatar2, Typography as Typography29 } from "@mui/material";
8106
8100
  import { jsx as jsx123, jsxs as jsxs81 } from "react/jsx-runtime";
8107
8101
  var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs81("div", { children: [
8108
8102
  /* @__PURE__ */ jsx123(
@@ -8114,8 +8108,8 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs8
8114
8108
  }
8115
8109
  ),
8116
8110
  /* @__PURE__ */ jsxs81("div", { style: { paddingTop: 16 }, children: [
8117
- /* @__PURE__ */ jsx123(Typography28, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
8118
- /* @__PURE__ */ jsx123(Typography28, { ...typographyProps.username, children: user.username })
8111
+ /* @__PURE__ */ jsx123(Typography29, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
8112
+ /* @__PURE__ */ jsx123(Typography29, { ...typographyProps.username, children: user.username })
8119
8113
  ] })
8120
8114
  ] });
8121
8115
  var UserBust_default = memo25(UserBust);