@natoora-libs/core 0.2.8 → 0.2.9-dev-doug-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/components/index.cjs +100 -111
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +6 -65
- package/dist/components/index.d.ts +6 -65
- package/dist/components/index.js +179 -189
- package/dist/components/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -384,7 +384,7 @@ __export(components_exports, {
|
|
|
384
384
|
SearchWithFiltersForTable: () => SearchWithFiltersForTable_default,
|
|
385
385
|
SectionName: () => SectionName_default,
|
|
386
386
|
SmartMultipleSelect: () => SmartMultipleSelect,
|
|
387
|
-
SmartSelect: () =>
|
|
387
|
+
SmartSelect: () => SmartSelect,
|
|
388
388
|
SmartTableHeader: () => SmartTableHeader,
|
|
389
389
|
SmartTableHeaderFilterMenu: () => SmartTableHeaderFilterMenu,
|
|
390
390
|
SquareButton: () => SquareButton_default,
|
|
@@ -7320,7 +7320,8 @@ var SmartMultipleSelect = ({
|
|
|
7320
7320
|
isLoading,
|
|
7321
7321
|
disabled,
|
|
7322
7322
|
emptyMessage = "No options.",
|
|
7323
|
-
helperText
|
|
7323
|
+
helperText,
|
|
7324
|
+
menuProps
|
|
7324
7325
|
}) => {
|
|
7325
7326
|
const [localValues, setLocalValues] = (0, import_react34.useState)(defaultValues ?? []);
|
|
7326
7327
|
const handleChangeOption = (option) => {
|
|
@@ -7365,7 +7366,7 @@ var SmartMultipleSelect = ({
|
|
|
7365
7366
|
option.value ?? index
|
|
7366
7367
|
);
|
|
7367
7368
|
}) });
|
|
7368
|
-
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material62.FormControl, { fullWidth: true, variant, children: [
|
|
7369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material62.FormControl, { fullWidth: true, size, variant, disabled, children: [
|
|
7369
7370
|
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.InputLabel, { children: inputLabel }),
|
|
7370
7371
|
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7371
7372
|
import_material62.Select,
|
|
@@ -7375,6 +7376,7 @@ var SmartMultipleSelect = ({
|
|
|
7375
7376
|
disabled,
|
|
7376
7377
|
value: values ?? localValues,
|
|
7377
7378
|
defaultValue: defaultValues,
|
|
7379
|
+
MenuProps: menuProps,
|
|
7378
7380
|
onOpen,
|
|
7379
7381
|
onClose: () => onClose?.(localValues),
|
|
7380
7382
|
renderValue: (selectedValues) => {
|
|
@@ -7401,19 +7403,12 @@ var SmartMultipleSelect = ({
|
|
|
7401
7403
|
// src/components/SmartSelect/SmartSelect.tsx
|
|
7402
7404
|
var import_react35 = require("react");
|
|
7403
7405
|
var import_material63 = require("@mui/material");
|
|
7404
|
-
var import_mui49 = require("tss-react/mui");
|
|
7405
7406
|
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
7406
|
-
var useStyles44 = (0, import_mui49.makeStyles)()(() => ({
|
|
7407
|
-
container: {
|
|
7408
|
-
display: "flex",
|
|
7409
|
-
flexDirection: "column"
|
|
7410
|
-
}
|
|
7411
|
-
}));
|
|
7412
7407
|
var SmartSelect = (0, import_react35.forwardRef)(
|
|
7413
7408
|
({
|
|
7414
7409
|
value,
|
|
7415
7410
|
defaultOption,
|
|
7416
|
-
options,
|
|
7411
|
+
options = [],
|
|
7417
7412
|
refetch,
|
|
7418
7413
|
isFetching = false,
|
|
7419
7414
|
onChange,
|
|
@@ -7428,54 +7423,80 @@ var SmartSelect = (0, import_react35.forwardRef)(
|
|
|
7428
7423
|
emptyMessage = "No options",
|
|
7429
7424
|
menuProps
|
|
7430
7425
|
}, ref) => {
|
|
7431
|
-
const
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7426
|
+
const visibleOptions = (0, import_react35.useMemo)(() => {
|
|
7427
|
+
const baseOptions = [
|
|
7428
|
+
...allowBlankOption ? [{ value: "", label: "None" }] : [],
|
|
7429
|
+
...options ?? []
|
|
7430
|
+
];
|
|
7431
|
+
const isSelectedInOptions = baseOptions.some((o) => o.value === value);
|
|
7432
|
+
if (value && !isSelectedInOptions && defaultOption?.value === value) {
|
|
7433
|
+
return [...baseOptions, defaultOption];
|
|
7437
7434
|
}
|
|
7438
|
-
|
|
7435
|
+
return baseOptions;
|
|
7436
|
+
}, [options, value, defaultOption]);
|
|
7439
7437
|
const handleOpen = () => {
|
|
7440
|
-
|
|
7441
|
-
if (!localOptions.length) {
|
|
7438
|
+
if (!options?.length) {
|
|
7442
7439
|
refetch?.();
|
|
7443
7440
|
}
|
|
7444
7441
|
};
|
|
7445
|
-
const handleClose = () => setOpen(false);
|
|
7446
|
-
const defaultOptionValueIsValid = defaultOption?.value !== void 0;
|
|
7447
|
-
const defaultOptionLabelIsValid = defaultOption?.label !== void 0;
|
|
7448
|
-
let combinedOptions = [];
|
|
7449
|
-
if (localOptions.length > 0) {
|
|
7450
|
-
combinedOptions = localOptions.filter(
|
|
7451
|
-
(option) => option.value !== void 0 && option.label !== void 0
|
|
7452
|
-
);
|
|
7453
|
-
if (allowBlankOption) {
|
|
7454
|
-
combinedOptions.unshift({
|
|
7455
|
-
value: "",
|
|
7456
|
-
label: "None"
|
|
7457
|
-
});
|
|
7458
|
-
}
|
|
7459
|
-
} else if (defaultOption !== null && defaultOptionValueIsValid && defaultOptionLabelIsValid) {
|
|
7460
|
-
combinedOptions = [defaultOption];
|
|
7461
|
-
} else {
|
|
7462
|
-
combinedOptions = [];
|
|
7463
|
-
}
|
|
7464
7442
|
const handleChange = (event) => {
|
|
7465
7443
|
const selectedId = event.target.value;
|
|
7466
|
-
const selectedOption =
|
|
7467
|
-
(option) => option
|
|
7444
|
+
const selectedOption = visibleOptions.find(
|
|
7445
|
+
(option) => option.value === selectedId
|
|
7468
7446
|
);
|
|
7469
7447
|
if (selectedOption) {
|
|
7470
7448
|
onChange(selectedOption);
|
|
7471
7449
|
}
|
|
7472
7450
|
};
|
|
7451
|
+
const renderMenuContent = () => {
|
|
7452
|
+
if (isFetching) {
|
|
7453
|
+
return [
|
|
7454
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7455
|
+
import_material63.Box,
|
|
7456
|
+
{
|
|
7457
|
+
"data-testid": "select-loading",
|
|
7458
|
+
sx: {
|
|
7459
|
+
display: "flex",
|
|
7460
|
+
justifyContent: "center",
|
|
7461
|
+
alignItems: "center",
|
|
7462
|
+
p: 2
|
|
7463
|
+
},
|
|
7464
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.CircularProgress, { size: 24 })
|
|
7465
|
+
},
|
|
7466
|
+
"select-loading"
|
|
7467
|
+
),
|
|
7468
|
+
// Hidden default item to satisfy MUI validation
|
|
7469
|
+
defaultOption ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7470
|
+
import_material63.MenuItem,
|
|
7471
|
+
{
|
|
7472
|
+
"data-testid": "hidden-default-item",
|
|
7473
|
+
value: defaultOption?.value,
|
|
7474
|
+
sx: { display: "none" },
|
|
7475
|
+
children: defaultOption?.label
|
|
7476
|
+
},
|
|
7477
|
+
"hidden-default-item"
|
|
7478
|
+
) : null
|
|
7479
|
+
];
|
|
7480
|
+
}
|
|
7481
|
+
if (!visibleOptions.length) {
|
|
7482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.MenuItem, { disabled: true, "data-testid": `${dataTestId}-empty-message`, children: emptyMessage });
|
|
7483
|
+
}
|
|
7484
|
+
return visibleOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7485
|
+
import_material63.MenuItem,
|
|
7486
|
+
{
|
|
7487
|
+
value: option.value,
|
|
7488
|
+
"data-testid": `${dataTestId}-option-${option?.value}`,
|
|
7489
|
+
disabled: option.disabled,
|
|
7490
|
+
children: option.label
|
|
7491
|
+
},
|
|
7492
|
+
option.value
|
|
7493
|
+
));
|
|
7494
|
+
};
|
|
7473
7495
|
return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
|
|
7474
7496
|
import_material63.FormControl,
|
|
7475
7497
|
{
|
|
7476
7498
|
fullWidth: true,
|
|
7477
7499
|
size,
|
|
7478
|
-
className: classes.container,
|
|
7479
7500
|
error,
|
|
7480
7501
|
variant,
|
|
7481
7502
|
"data-testid": dataTestId,
|
|
@@ -7489,53 +7510,19 @@ var SmartSelect = (0, import_react35.forwardRef)(
|
|
|
7489
7510
|
children: inputLabel
|
|
7490
7511
|
}
|
|
7491
7512
|
),
|
|
7492
|
-
/* @__PURE__ */ (0, import_jsx_runtime116.
|
|
7513
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7493
7514
|
import_material63.Select,
|
|
7494
7515
|
{
|
|
7495
7516
|
ref,
|
|
7496
|
-
size,
|
|
7497
|
-
disabled,
|
|
7498
7517
|
labelId: "smart-select-label",
|
|
7518
|
+
id: `${dataTestId}-select`,
|
|
7519
|
+
"data-testid": `${dataTestId}-select`,
|
|
7499
7520
|
value: value ?? "",
|
|
7500
7521
|
onChange: handleChange,
|
|
7501
7522
|
onOpen: handleOpen,
|
|
7502
|
-
error,
|
|
7503
|
-
onClose: handleClose,
|
|
7504
|
-
open,
|
|
7505
|
-
"data-testid": `${dataTestId}-select`,
|
|
7506
|
-
id: `${dataTestId}-select`,
|
|
7507
|
-
MenuProps: menuProps,
|
|
7508
7523
|
label: inputLabel,
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
import_material63.MenuItem,
|
|
7512
|
-
{
|
|
7513
|
-
disabled: true,
|
|
7514
|
-
"data-testid": `${dataTestId}-loading`,
|
|
7515
|
-
id: `${dataTestId}-loading`,
|
|
7516
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.CircularProgress, { size: 24 })
|
|
7517
|
-
}
|
|
7518
|
-
),
|
|
7519
|
-
(defaultOption === null || !defaultOptionLabelIsValid || !defaultOptionValueIsValid) && !isFetching && options?.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.MenuItem, { disabled: true, "data-testid": `${dataTestId}-empty-message`, children: emptyMessage }),
|
|
7520
|
-
localOptions.length === 0 && !isFetching && options?.length !== 0 && defaultOptionLabelIsValid && defaultOptionValueIsValid && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7521
|
-
import_material63.MenuItem,
|
|
7522
|
-
{
|
|
7523
|
-
value: defaultOption?.value,
|
|
7524
|
-
"data-testid": `${dataTestId}-default-option`,
|
|
7525
|
-
children: defaultOption?.label
|
|
7526
|
-
}
|
|
7527
|
-
),
|
|
7528
|
-
!isFetching && combinedOptions.length > 0 && combinedOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7529
|
-
import_material63.MenuItem,
|
|
7530
|
-
{
|
|
7531
|
-
value: option?.value,
|
|
7532
|
-
"data-testid": `${dataTestId}-option-${option?.value}`,
|
|
7533
|
-
disabled: option?.disabled,
|
|
7534
|
-
children: option?.label
|
|
7535
|
-
},
|
|
7536
|
-
option?.value
|
|
7537
|
-
))
|
|
7538
|
-
]
|
|
7524
|
+
MenuProps: menuProps,
|
|
7525
|
+
children: renderMenuContent()
|
|
7539
7526
|
}
|
|
7540
7527
|
),
|
|
7541
7528
|
helperText && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.FormHelperText, { "data-testid": `${dataTestId}-helper-text`, children: helperText })
|
|
@@ -7544,15 +7531,14 @@ var SmartSelect = (0, import_react35.forwardRef)(
|
|
|
7544
7531
|
);
|
|
7545
7532
|
}
|
|
7546
7533
|
);
|
|
7547
|
-
var SmartSelect_default = SmartSelect;
|
|
7548
7534
|
|
|
7549
7535
|
// src/components/SquareLabel/SquareLabel.tsx
|
|
7550
7536
|
var import_react36 = require("react");
|
|
7551
7537
|
var import_material64 = require("@mui/material");
|
|
7552
7538
|
var import_colors52 = require("@mui/material/colors");
|
|
7553
|
-
var
|
|
7539
|
+
var import_mui49 = require("tss-react/mui");
|
|
7554
7540
|
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
7555
|
-
var
|
|
7541
|
+
var useStyles44 = (0, import_mui49.makeStyles)()((theme) => ({
|
|
7556
7542
|
red: {
|
|
7557
7543
|
backgroundColor: import_colors52.red["50"],
|
|
7558
7544
|
color: import_colors52.red["500"],
|
|
@@ -7565,7 +7551,7 @@ var useStyles45 = (0, import_mui50.makeStyles)()((theme) => ({
|
|
|
7565
7551
|
}
|
|
7566
7552
|
}));
|
|
7567
7553
|
var SquareLabel = ({ color, copy }) => {
|
|
7568
|
-
const { classes } =
|
|
7554
|
+
const { classes } = useStyles44();
|
|
7569
7555
|
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.Typography, { className: classes[color], children: copy });
|
|
7570
7556
|
};
|
|
7571
7557
|
var SquareLabel_default = (0, import_react36.memo)(SquareLabel);
|
|
@@ -7573,7 +7559,7 @@ var SquareLabel_default = (0, import_react36.memo)(SquareLabel);
|
|
|
7573
7559
|
// src/components/Switch/Switch.tsx
|
|
7574
7560
|
var import_react37 = require("react");
|
|
7575
7561
|
var import_material65 = require("@mui/material");
|
|
7576
|
-
var
|
|
7562
|
+
var import_mui50 = require("tss-react/mui");
|
|
7577
7563
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
7578
7564
|
var LSwitch = ({
|
|
7579
7565
|
checked,
|
|
@@ -7606,7 +7592,7 @@ var LSwitch = ({
|
|
|
7606
7592
|
]
|
|
7607
7593
|
}
|
|
7608
7594
|
) });
|
|
7609
|
-
var LabelledSwitch = (0,
|
|
7595
|
+
var LabelledSwitch = (0, import_mui50.withStyles)(LSwitch, (theme) => ({
|
|
7610
7596
|
c_switch: {},
|
|
7611
7597
|
default: {
|
|
7612
7598
|
margin: 16,
|
|
@@ -7892,7 +7878,7 @@ var SmartTableHeader = (0, import_react39.memo)(
|
|
|
7892
7878
|
var import_react40 = require("react");
|
|
7893
7879
|
var import_material69 = require("@mui/material");
|
|
7894
7880
|
var import_debounce = __toESM(require_debounce(), 1);
|
|
7895
|
-
var
|
|
7881
|
+
var import_mui51 = require("tss-react/mui");
|
|
7896
7882
|
var import_uuid = require("uuid");
|
|
7897
7883
|
|
|
7898
7884
|
// src/components/TableLoading/TableLoading.tsx
|
|
@@ -7951,7 +7937,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
7951
7937
|
|
|
7952
7938
|
// src/components/Table/Table.tsx
|
|
7953
7939
|
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
7954
|
-
var
|
|
7940
|
+
var useStyles45 = (0, import_mui51.makeStyles)()(() => ({
|
|
7955
7941
|
root: {
|
|
7956
7942
|
height: "calc(100vh - 262px)",
|
|
7957
7943
|
overflow: "scroll"
|
|
@@ -7990,7 +7976,7 @@ var Table = ({
|
|
|
7990
7976
|
appliedFilters?.sortField || "delivery_date"
|
|
7991
7977
|
);
|
|
7992
7978
|
const [rowsPerPage, setRowsPerPage] = (0, import_react40.useState)(defaultRowsPerPage);
|
|
7993
|
-
const { classes } =
|
|
7979
|
+
const { classes } = useStyles45();
|
|
7994
7980
|
const rowHeight = 56;
|
|
7995
7981
|
const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
|
|
7996
7982
|
const handleRequestSort = (event, property) => {
|
|
@@ -8287,9 +8273,9 @@ var TableDesktopRowSelectionBar = ({
|
|
|
8287
8273
|
|
|
8288
8274
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
8289
8275
|
var import_material73 = require("@mui/material");
|
|
8290
|
-
var
|
|
8276
|
+
var import_mui52 = require("tss-react/mui");
|
|
8291
8277
|
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
8292
|
-
var
|
|
8278
|
+
var useStyles46 = (0, import_mui52.makeStyles)()(() => ({
|
|
8293
8279
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
8294
8280
|
tableCellDefault: { padding: 24 }
|
|
8295
8281
|
}));
|
|
@@ -8299,7 +8285,7 @@ var TableEmptyResult = ({
|
|
|
8299
8285
|
handleClickOnClearFiltersButton = () => {
|
|
8300
8286
|
}
|
|
8301
8287
|
}) => {
|
|
8302
|
-
const { classes } =
|
|
8288
|
+
const { classes } = useStyles46();
|
|
8303
8289
|
return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material73.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
|
|
8304
8290
|
import_material73.TableCell,
|
|
8305
8291
|
{
|
|
@@ -8631,6 +8617,7 @@ var TableDesktopSmartMultipleSelect = ({
|
|
|
8631
8617
|
disabled,
|
|
8632
8618
|
defaultValues,
|
|
8633
8619
|
menuOptions: filterOptions,
|
|
8620
|
+
menuProps: { disableRestoreFocus: true },
|
|
8634
8621
|
isLoading: isFetchingFilterOptions,
|
|
8635
8622
|
onOpen: () => {
|
|
8636
8623
|
if (!filterOptions?.length) {
|
|
@@ -8675,7 +8662,7 @@ var TableDesktopSmartSelect = ({
|
|
|
8675
8662
|
const valueId = resolveObjectType(value ?? "", "id");
|
|
8676
8663
|
const valueLabel = resolveObjectType(value ?? "", fieldName);
|
|
8677
8664
|
return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
|
|
8678
|
-
|
|
8665
|
+
SmartSelect,
|
|
8679
8666
|
{
|
|
8680
8667
|
ref,
|
|
8681
8668
|
value: valueId,
|
|
@@ -8685,6 +8672,7 @@ var TableDesktopSmartSelect = ({
|
|
|
8685
8672
|
disabled,
|
|
8686
8673
|
variant,
|
|
8687
8674
|
size,
|
|
8675
|
+
menuProps: { disableRestoreFocus: true },
|
|
8688
8676
|
refetch: refetchFilterOptions,
|
|
8689
8677
|
isFetching: isFetchingFilterOptions,
|
|
8690
8678
|
defaultOption: {
|
|
@@ -8994,6 +8982,7 @@ var TableDesktopFooter = ({
|
|
|
8994
8982
|
variant: "text",
|
|
8995
8983
|
onClick: () => refetchData(),
|
|
8996
8984
|
disabled: isFetching,
|
|
8985
|
+
"aria-label": "refresh-button",
|
|
8997
8986
|
sx: {
|
|
8998
8987
|
ml: 1,
|
|
8999
8988
|
gap: 1
|
|
@@ -9002,14 +8991,14 @@ var TableDesktopFooter = ({
|
|
|
9002
8991
|
import_Refresh.default,
|
|
9003
8992
|
{
|
|
9004
8993
|
fontSize: "small",
|
|
9005
|
-
color: isFetching ? "disabled" : "
|
|
8994
|
+
color: isFetching ? "disabled" : "action"
|
|
9006
8995
|
}
|
|
9007
8996
|
)
|
|
9008
8997
|
}
|
|
9009
8998
|
) : null,
|
|
9010
8999
|
/* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material77.Box, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
|
|
9011
9000
|
pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material77.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
9012
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material77.Typography, { children: "Rows per page:" }),
|
|
9001
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material77.Typography, { fontSize: 12, children: "Rows per page:" }),
|
|
9013
9002
|
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9014
9003
|
import_material77.Select,
|
|
9015
9004
|
{
|
|
@@ -9393,9 +9382,9 @@ var TableDesktopToolbar = ({
|
|
|
9393
9382
|
var import_react48 = require("react");
|
|
9394
9383
|
var import_icons_material12 = require("@mui/icons-material");
|
|
9395
9384
|
var import_material80 = require("@mui/material");
|
|
9396
|
-
var
|
|
9385
|
+
var import_mui53 = require("tss-react/mui");
|
|
9397
9386
|
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
9398
|
-
var
|
|
9387
|
+
var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
|
|
9399
9388
|
sortLabel: {
|
|
9400
9389
|
"& .MuiTableSortLabel-icon": {
|
|
9401
9390
|
opacity: 1
|
|
@@ -9404,7 +9393,7 @@ var useStyles48 = (0, import_mui54.makeStyles)()(() => ({
|
|
|
9404
9393
|
}));
|
|
9405
9394
|
var TableHeader = ({ cells, onSort = null }) => {
|
|
9406
9395
|
const [sortableCells, setSortableCells] = (0, import_react48.useState)([]);
|
|
9407
|
-
const { classes } =
|
|
9396
|
+
const { classes } = useStyles47();
|
|
9408
9397
|
(0, import_react48.useEffect)(() => {
|
|
9409
9398
|
setSortableCells(cells);
|
|
9410
9399
|
}, []);
|
|
@@ -9454,9 +9443,9 @@ var TableHeader_default = (0, import_react48.memo)(TableHeader);
|
|
|
9454
9443
|
|
|
9455
9444
|
// src/components/TextDivider/TextDivider.tsx
|
|
9456
9445
|
var import_material81 = require("@mui/material");
|
|
9457
|
-
var
|
|
9446
|
+
var import_mui54 = require("tss-react/mui");
|
|
9458
9447
|
var import_jsx_runtime138 = require("react/jsx-runtime");
|
|
9459
|
-
var
|
|
9448
|
+
var useStyles48 = (0, import_mui54.makeStyles)()(() => ({
|
|
9460
9449
|
icon: {
|
|
9461
9450
|
fontSize: 20
|
|
9462
9451
|
},
|
|
@@ -9490,7 +9479,7 @@ var TextDivider = ({
|
|
|
9490
9479
|
iconPosition = "left",
|
|
9491
9480
|
titleWeight = "400"
|
|
9492
9481
|
}) => {
|
|
9493
|
-
const { classes } =
|
|
9482
|
+
const { classes } = useStyles48();
|
|
9494
9483
|
const iconColor = color ?? colors.neutral900;
|
|
9495
9484
|
return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(
|
|
9496
9485
|
import_material81.Box,
|
|
@@ -9523,11 +9512,11 @@ var TextDivider_default = TextDivider;
|
|
|
9523
9512
|
|
|
9524
9513
|
// src/components/ThemedDateRangePicker/ThemedDateRangePicker.tsx
|
|
9525
9514
|
var import_react_dates = require("react-dates");
|
|
9526
|
-
var
|
|
9515
|
+
var import_mui55 = require("tss-react/mui");
|
|
9527
9516
|
var import_initialize = require("react-dates/initialize");
|
|
9528
9517
|
var import_datepicker = require("react-dates/lib/css/_datepicker.css");
|
|
9529
9518
|
var import_jsx_runtime139 = require("react/jsx-runtime");
|
|
9530
|
-
var
|
|
9519
|
+
var useStyles49 = (0, import_mui55.makeStyles)()((theme) => ({
|
|
9531
9520
|
wrapper: {
|
|
9532
9521
|
"& .DateRangePicker": {
|
|
9533
9522
|
backgroundColor: theme.palette.mode === "dark" ? theme.palette.grey[900] : colors.neutral100,
|
|
@@ -9621,7 +9610,7 @@ var ThemedDateRangePicker = ({
|
|
|
9621
9610
|
className,
|
|
9622
9611
|
...props
|
|
9623
9612
|
}) => {
|
|
9624
|
-
const { classes, cx } =
|
|
9613
|
+
const { classes, cx } = useStyles49();
|
|
9625
9614
|
return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_react_dates.DateRangePicker, { ...props }) });
|
|
9626
9615
|
};
|
|
9627
9616
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
@@ -9629,9 +9618,9 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
9629
9618
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
9630
9619
|
var import_react49 = require("react");
|
|
9631
9620
|
var import_material82 = require("@mui/material");
|
|
9632
|
-
var
|
|
9621
|
+
var import_mui56 = require("tss-react/mui");
|
|
9633
9622
|
var import_jsx_runtime140 = require("react/jsx-runtime");
|
|
9634
|
-
var
|
|
9623
|
+
var useStyles50 = (0, import_mui56.makeStyles)()((theme) => ({
|
|
9635
9624
|
menuButton: {
|
|
9636
9625
|
color: theme.palette.primary.contrastText
|
|
9637
9626
|
},
|
|
@@ -9649,7 +9638,7 @@ var TheToolbar = ({
|
|
|
9649
9638
|
leftSection,
|
|
9650
9639
|
rightSection
|
|
9651
9640
|
}) => {
|
|
9652
|
-
const { classes } =
|
|
9641
|
+
const { classes } = useStyles50();
|
|
9653
9642
|
return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material82.Box, { children: [
|
|
9654
9643
|
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material82.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material82.Toolbar, { className: classes.topBar, children: [
|
|
9655
9644
|
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
@@ -9721,9 +9710,9 @@ var ToastMessage_default = ToastMessage;
|
|
|
9721
9710
|
|
|
9722
9711
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
9723
9712
|
var import_material84 = require("@mui/material");
|
|
9724
|
-
var
|
|
9713
|
+
var import_mui57 = require("tss-react/mui");
|
|
9725
9714
|
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
9726
|
-
var
|
|
9715
|
+
var useStyles51 = (0, import_mui57.makeStyles)()((theme) => ({
|
|
9727
9716
|
paper: {
|
|
9728
9717
|
padding: theme.spacing(2)
|
|
9729
9718
|
},
|
|
@@ -9751,7 +9740,7 @@ var TwoButtonDialog = ({
|
|
|
9751
9740
|
cancelLabel = "CANCEL",
|
|
9752
9741
|
cancelButton
|
|
9753
9742
|
}) => {
|
|
9754
|
-
const { classes } =
|
|
9743
|
+
const { classes } = useStyles51();
|
|
9755
9744
|
return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
9756
9745
|
import_material84.Dialog,
|
|
9757
9746
|
{
|