@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.
- package/dist/components/index.cjs +218 -100
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +16 -2
- package/dist/components/index.d.ts +16 -2
- package/dist/components/index.js +200 -83
- package/dist/components/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -2781,7 +2781,7 @@ var RoundButton = ({
|
|
|
2781
2781
|
onClick(e);
|
|
2782
2782
|
}
|
|
2783
2783
|
};
|
|
2784
|
-
const
|
|
2784
|
+
const Button15 = /* @__PURE__ */ jsx63(
|
|
2785
2785
|
Fab,
|
|
2786
2786
|
{
|
|
2787
2787
|
className: cx(
|
|
@@ -2805,7 +2805,7 @@ var RoundButton = ({
|
|
|
2805
2805
|
children: icon ? iconComponentMap[icon] : children || ""
|
|
2806
2806
|
}
|
|
2807
2807
|
);
|
|
2808
|
-
return tooltip ? /* @__PURE__ */ jsx63(Tooltip2, { title: tooltip, children:
|
|
2808
|
+
return tooltip ? /* @__PURE__ */ jsx63(Tooltip2, { title: tooltip, children: Button15 }) : Button15;
|
|
2809
2809
|
};
|
|
2810
2810
|
var RoundButton_default = RoundButton;
|
|
2811
2811
|
|
|
@@ -7456,9 +7456,90 @@ var Table2 = ({
|
|
|
7456
7456
|
};
|
|
7457
7457
|
var Table_default = Table2;
|
|
7458
7458
|
|
|
7459
|
+
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
7460
|
+
import Refresh3 from "@mui/icons-material/Refresh";
|
|
7461
|
+
import { Box as Box33, Button as Button13, MenuItem as MenuItem4, Pagination as Pagination2, Select as Select4, Stack, Typography as Typography27 } from "@mui/material";
|
|
7462
|
+
import { jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7463
|
+
var TableDesktopFooter = ({
|
|
7464
|
+
numPages,
|
|
7465
|
+
page,
|
|
7466
|
+
pageSize,
|
|
7467
|
+
pageSizeOptions,
|
|
7468
|
+
handlePageChange,
|
|
7469
|
+
handlePageSizeChange,
|
|
7470
|
+
refetch,
|
|
7471
|
+
isFetching
|
|
7472
|
+
}) => {
|
|
7473
|
+
return /* @__PURE__ */ jsxs78(
|
|
7474
|
+
Box33,
|
|
7475
|
+
{
|
|
7476
|
+
py: 1,
|
|
7477
|
+
gap: 2,
|
|
7478
|
+
display: "flex",
|
|
7479
|
+
justifyContent: "space-between",
|
|
7480
|
+
alignItems: "center",
|
|
7481
|
+
borderTop: `1px solid ${colors.neutral300}`,
|
|
7482
|
+
bgcolor: (theme) => theme.palette.background.default,
|
|
7483
|
+
children: [
|
|
7484
|
+
/* @__PURE__ */ jsxs78(
|
|
7485
|
+
Button13,
|
|
7486
|
+
{
|
|
7487
|
+
disableRipple: true,
|
|
7488
|
+
variant: "outlined",
|
|
7489
|
+
onClick: () => refetch(),
|
|
7490
|
+
disabled: isFetching,
|
|
7491
|
+
sx: {
|
|
7492
|
+
ml: 1,
|
|
7493
|
+
gap: 1,
|
|
7494
|
+
borderRadius: 25,
|
|
7495
|
+
color: colors.neutral800,
|
|
7496
|
+
borderColor: colors.neutral600
|
|
7497
|
+
},
|
|
7498
|
+
children: [
|
|
7499
|
+
/* @__PURE__ */ jsx114(
|
|
7500
|
+
Refresh3,
|
|
7501
|
+
{
|
|
7502
|
+
fontSize: "small",
|
|
7503
|
+
color: isFetching ? "disabled" : "primary"
|
|
7504
|
+
}
|
|
7505
|
+
),
|
|
7506
|
+
"REFRESH"
|
|
7507
|
+
]
|
|
7508
|
+
}
|
|
7509
|
+
),
|
|
7510
|
+
/* @__PURE__ */ jsxs78(Box33, { display: "flex", children: [
|
|
7511
|
+
/* @__PURE__ */ jsxs78(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
7512
|
+
/* @__PURE__ */ jsx114(Typography27, { children: "Rows per page:" }),
|
|
7513
|
+
/* @__PURE__ */ jsx114(
|
|
7514
|
+
Select4,
|
|
7515
|
+
{
|
|
7516
|
+
value: pageSize,
|
|
7517
|
+
onChange: handlePageSizeChange,
|
|
7518
|
+
size: "small",
|
|
7519
|
+
"data-testid": "page-size-options-select",
|
|
7520
|
+
variant: "standard",
|
|
7521
|
+
children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx114(MenuItem4, { value: size, children: size }, size))
|
|
7522
|
+
}
|
|
7523
|
+
)
|
|
7524
|
+
] }),
|
|
7525
|
+
/* @__PURE__ */ jsx114(
|
|
7526
|
+
Pagination2,
|
|
7527
|
+
{
|
|
7528
|
+
color: "standard",
|
|
7529
|
+
count: numPages,
|
|
7530
|
+
page,
|
|
7531
|
+
onChange: handlePageChange
|
|
7532
|
+
}
|
|
7533
|
+
)
|
|
7534
|
+
] })
|
|
7535
|
+
]
|
|
7536
|
+
}
|
|
7537
|
+
);
|
|
7538
|
+
};
|
|
7539
|
+
|
|
7459
7540
|
// src/components/TableDesktopRowActions/TableDesktopRowActions.tsx
|
|
7460
|
-
import { Box as
|
|
7461
|
-
import { jsx as
|
|
7541
|
+
import { Box as Box34, TableCell as TableCell4 } from "@mui/material";
|
|
7542
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
7462
7543
|
var TableDesktopRowActions = ({
|
|
7463
7544
|
isRowHovered,
|
|
7464
7545
|
children,
|
|
@@ -7466,7 +7547,7 @@ var TableDesktopRowActions = ({
|
|
|
7466
7547
|
zIndex = 1,
|
|
7467
7548
|
backgroundColor
|
|
7468
7549
|
}) => {
|
|
7469
|
-
return isRowHovered ? /* @__PURE__ */
|
|
7550
|
+
return isRowHovered ? /* @__PURE__ */ jsx115(
|
|
7470
7551
|
TableCell4,
|
|
7471
7552
|
{
|
|
7472
7553
|
padding: "none",
|
|
@@ -7479,8 +7560,8 @@ var TableDesktopRowActions = ({
|
|
|
7479
7560
|
justifyContent: "flex-end",
|
|
7480
7561
|
alignItems: "center"
|
|
7481
7562
|
},
|
|
7482
|
-
children: /* @__PURE__ */
|
|
7483
|
-
|
|
7563
|
+
children: /* @__PURE__ */ jsx115(
|
|
7564
|
+
Box34,
|
|
7484
7565
|
{
|
|
7485
7566
|
sx,
|
|
7486
7567
|
display: "flex",
|
|
@@ -7494,12 +7575,12 @@ var TableDesktopRowActions = ({
|
|
|
7494
7575
|
};
|
|
7495
7576
|
|
|
7496
7577
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7497
|
-
import { useEffect as useEffect13, useRef as useRef5, useState as
|
|
7498
|
-
import { Checkbox as Checkbox6, TableCell as TableCell5, TextField as
|
|
7578
|
+
import { useEffect as useEffect13, useRef as useRef5, useState as useState20 } from "react";
|
|
7579
|
+
import { Checkbox as Checkbox6, TableCell as TableCell5, TextField as TextField9, Tooltip as Tooltip7 } from "@mui/material";
|
|
7499
7580
|
|
|
7500
7581
|
// src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
|
|
7501
7582
|
import { useState as useState18, memo as memo22, useEffect as useEffect12 } from "react";
|
|
7502
|
-
import { jsx as
|
|
7583
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
7503
7584
|
var resolveValue = (value) => {
|
|
7504
7585
|
if (typeof value === "string") {
|
|
7505
7586
|
return value;
|
|
@@ -7530,7 +7611,7 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7530
7611
|
setOptions(parsedOptions);
|
|
7531
7612
|
}
|
|
7532
7613
|
}, [filterOptions]);
|
|
7533
|
-
return /* @__PURE__ */
|
|
7614
|
+
return /* @__PURE__ */ jsx116(
|
|
7534
7615
|
SmartSelect_default,
|
|
7535
7616
|
{
|
|
7536
7617
|
ref,
|
|
@@ -7553,7 +7634,43 @@ var TableDesktopSmartSelect = memo22(({
|
|
|
7553
7634
|
|
|
7554
7635
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7555
7636
|
import CheckIcon2 from "@mui/icons-material/Check";
|
|
7556
|
-
|
|
7637
|
+
|
|
7638
|
+
// src/components/TableDesktopRowCell/TableDesktopTextField.tsx
|
|
7639
|
+
import TextField8 from "@mui/material/TextField";
|
|
7640
|
+
import { useMemo as useMemo4, useState as useState19 } from "react";
|
|
7641
|
+
import { jsx as jsx117 } from "react/jsx-runtime";
|
|
7642
|
+
var TableDesktopTextField = ({
|
|
7643
|
+
rowId,
|
|
7644
|
+
editInitialValue,
|
|
7645
|
+
inputLabel,
|
|
7646
|
+
validateInput,
|
|
7647
|
+
onUpdateEditableCell
|
|
7648
|
+
}) => {
|
|
7649
|
+
const [value, setValue] = useState19(editInitialValue);
|
|
7650
|
+
const hasError = useMemo4(() => !validateInput?.(value), [value, validateInput]);
|
|
7651
|
+
return /* @__PURE__ */ jsx117(
|
|
7652
|
+
TextField8,
|
|
7653
|
+
{
|
|
7654
|
+
fullWidth: true,
|
|
7655
|
+
variant: "standard",
|
|
7656
|
+
defaultValue: value,
|
|
7657
|
+
label: inputLabel,
|
|
7658
|
+
error: hasError,
|
|
7659
|
+
onChange: ({ target: { value: value2 } }) => {
|
|
7660
|
+
setValue(value2);
|
|
7661
|
+
},
|
|
7662
|
+
onBlur: ({ target: { value: value2 } }) => {
|
|
7663
|
+
if (hasError) {
|
|
7664
|
+
return;
|
|
7665
|
+
}
|
|
7666
|
+
onUpdateEditableCell?.(rowId, value2);
|
|
7667
|
+
}
|
|
7668
|
+
}
|
|
7669
|
+
);
|
|
7670
|
+
};
|
|
7671
|
+
|
|
7672
|
+
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7673
|
+
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
7557
7674
|
var TableDesktopRowCell = ({
|
|
7558
7675
|
ref,
|
|
7559
7676
|
inputLabel,
|
|
@@ -7567,10 +7684,11 @@ var TableDesktopRowCell = ({
|
|
|
7567
7684
|
filterOptions,
|
|
7568
7685
|
refetchFilterOptions,
|
|
7569
7686
|
isFetchingFilterOptions,
|
|
7687
|
+
validateInput,
|
|
7570
7688
|
onUpdateEditableCell
|
|
7571
7689
|
}) => {
|
|
7572
7690
|
const cellRef = useRef5(null);
|
|
7573
|
-
const [isOverflowed, setIsOverflowed] =
|
|
7691
|
+
const [isOverflowed, setIsOverflowed] = useState20(false);
|
|
7574
7692
|
useEffect13(() => {
|
|
7575
7693
|
const ref2 = cellRef.current;
|
|
7576
7694
|
if (ref2) {
|
|
@@ -7578,7 +7696,7 @@ var TableDesktopRowCell = ({
|
|
|
7578
7696
|
}
|
|
7579
7697
|
}, [readOnlyValue, width]);
|
|
7580
7698
|
const editableComponents = {
|
|
7581
|
-
"select": /* @__PURE__ */
|
|
7699
|
+
"select": /* @__PURE__ */ jsx118(
|
|
7582
7700
|
TableDesktopSmartSelect,
|
|
7583
7701
|
{
|
|
7584
7702
|
ref,
|
|
@@ -7592,7 +7710,7 @@ var TableDesktopRowCell = ({
|
|
|
7592
7710
|
onUpdateEditableCell
|
|
7593
7711
|
}
|
|
7594
7712
|
),
|
|
7595
|
-
"checkbox": /* @__PURE__ */
|
|
7713
|
+
"checkbox": /* @__PURE__ */ jsx118(
|
|
7596
7714
|
Checkbox6,
|
|
7597
7715
|
{
|
|
7598
7716
|
disableRipple: true,
|
|
@@ -7602,20 +7720,18 @@ var TableDesktopRowCell = ({
|
|
|
7602
7720
|
}
|
|
7603
7721
|
}
|
|
7604
7722
|
),
|
|
7605
|
-
"text": /* @__PURE__ */
|
|
7606
|
-
|
|
7723
|
+
"text": /* @__PURE__ */ jsx118(
|
|
7724
|
+
TableDesktopTextField,
|
|
7607
7725
|
{
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
onUpdateEditableCell?.(rowId, value);
|
|
7614
|
-
}
|
|
7726
|
+
rowId,
|
|
7727
|
+
editInitialValue,
|
|
7728
|
+
inputLabel: inputLabel ?? "",
|
|
7729
|
+
validateInput,
|
|
7730
|
+
onUpdateEditableCell
|
|
7615
7731
|
}
|
|
7616
7732
|
),
|
|
7617
|
-
"numeric": /* @__PURE__ */
|
|
7618
|
-
|
|
7733
|
+
"numeric": /* @__PURE__ */ jsx118(
|
|
7734
|
+
TextField9,
|
|
7619
7735
|
{
|
|
7620
7736
|
fullWidth: true,
|
|
7621
7737
|
variant: "standard",
|
|
@@ -7637,11 +7753,11 @@ var TableDesktopRowCell = ({
|
|
|
7637
7753
|
};
|
|
7638
7754
|
const getReadOnlyBooleanIcon = (value) => {
|
|
7639
7755
|
if (value) {
|
|
7640
|
-
return /* @__PURE__ */
|
|
7756
|
+
return /* @__PURE__ */ jsx118(CheckIcon2, { sx: { fontSize: 16 } });
|
|
7641
7757
|
}
|
|
7642
7758
|
return "-";
|
|
7643
7759
|
};
|
|
7644
|
-
return /* @__PURE__ */
|
|
7760
|
+
return /* @__PURE__ */ jsx118(Tooltip7, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ jsx118(
|
|
7645
7761
|
TableCell5,
|
|
7646
7762
|
{
|
|
7647
7763
|
ref: cellRef,
|
|
@@ -7658,11 +7774,11 @@ var TableDesktopRowCell = ({
|
|
|
7658
7774
|
};
|
|
7659
7775
|
|
|
7660
7776
|
// src/components/TableHeader/TableHeader.tsx
|
|
7661
|
-
import { memo as memo23, useEffect as useEffect14, useState as
|
|
7777
|
+
import { memo as memo23, useEffect as useEffect14, useState as useState21 } from "react";
|
|
7662
7778
|
import { ImportExport as ImportExportIcon } from "@mui/icons-material";
|
|
7663
7779
|
import { TableCell as TableCell6, TableHead as TableHead3, TableRow as TableRow4, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
7664
7780
|
import { makeStyles as makeStyles50 } from "tss-react/mui";
|
|
7665
|
-
import { jsx as
|
|
7781
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
7666
7782
|
var useStyles50 = makeStyles50()(() => ({
|
|
7667
7783
|
sortLabel: {
|
|
7668
7784
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -7671,7 +7787,7 @@ var useStyles50 = makeStyles50()(() => ({
|
|
|
7671
7787
|
}
|
|
7672
7788
|
}));
|
|
7673
7789
|
var TableHeader = ({ cells, onSort = null }) => {
|
|
7674
|
-
const [sortableCells, setSortableCells] =
|
|
7790
|
+
const [sortableCells, setSortableCells] = useState21([]);
|
|
7675
7791
|
const { classes } = useStyles50();
|
|
7676
7792
|
useEffect14(() => {
|
|
7677
7793
|
setSortableCells(cells);
|
|
@@ -7707,7 +7823,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7707
7823
|
});
|
|
7708
7824
|
setSortableCells(sortedCells);
|
|
7709
7825
|
};
|
|
7710
|
-
return /* @__PURE__ */
|
|
7826
|
+
return /* @__PURE__ */ jsx119(TableHead3, { children: /* @__PURE__ */ jsx119(TableRow4, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx119(TableCell6, { children: cell.isSortable ? /* @__PURE__ */ jsx119(
|
|
7711
7827
|
TableSortLabel3,
|
|
7712
7828
|
{
|
|
7713
7829
|
className: classes.sortLabel,
|
|
@@ -7721,9 +7837,9 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
7721
7837
|
var TableHeader_default = memo23(TableHeader);
|
|
7722
7838
|
|
|
7723
7839
|
// src/components/TextDivider/TextDivider.tsx
|
|
7724
|
-
import { Box as
|
|
7840
|
+
import { Box as Box35, Typography as Typography28, Divider as Divider10, Button as Button14 } from "@mui/material";
|
|
7725
7841
|
import { makeStyles as makeStyles51 } from "tss-react/mui";
|
|
7726
|
-
import { jsx as
|
|
7842
|
+
import { jsx as jsx120, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7727
7843
|
var useStyles51 = makeStyles51()(() => ({
|
|
7728
7844
|
icon: {
|
|
7729
7845
|
fontSize: 20
|
|
@@ -7760,19 +7876,19 @@ var TextDivider = ({
|
|
|
7760
7876
|
}) => {
|
|
7761
7877
|
const { classes } = useStyles51();
|
|
7762
7878
|
const iconColor = color ?? colors.neutral900;
|
|
7763
|
-
return /* @__PURE__ */
|
|
7764
|
-
|
|
7879
|
+
return /* @__PURE__ */ jsxs79(
|
|
7880
|
+
Box35,
|
|
7765
7881
|
{
|
|
7766
7882
|
display: "flex",
|
|
7767
7883
|
alignItems: "center",
|
|
7768
7884
|
justifyContent: "space-between",
|
|
7769
7885
|
className: classes.container,
|
|
7770
7886
|
children: [
|
|
7771
|
-
/* @__PURE__ */
|
|
7772
|
-
/* @__PURE__ */
|
|
7773
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */
|
|
7774
|
-
/* @__PURE__ */
|
|
7775
|
-
|
|
7887
|
+
/* @__PURE__ */ jsx120(Divider10, { className: classes.leftDivider }),
|
|
7888
|
+
/* @__PURE__ */ jsx120(Button14, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs79(Box35, { className: classes.center, children: [
|
|
7889
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx120(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
7890
|
+
/* @__PURE__ */ jsx120(
|
|
7891
|
+
Typography28,
|
|
7776
7892
|
{
|
|
7777
7893
|
color: "textSecondary",
|
|
7778
7894
|
className: classes.title,
|
|
@@ -7780,9 +7896,9 @@ var TextDivider = ({
|
|
|
7780
7896
|
children: title
|
|
7781
7897
|
}
|
|
7782
7898
|
),
|
|
7783
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */
|
|
7899
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx120(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
7784
7900
|
] }) }),
|
|
7785
|
-
/* @__PURE__ */
|
|
7901
|
+
/* @__PURE__ */ jsx120(Divider10, { className: classes.rightDivider })
|
|
7786
7902
|
]
|
|
7787
7903
|
}
|
|
7788
7904
|
);
|
|
@@ -7794,7 +7910,7 @@ import { DateRangePicker } from "react-dates";
|
|
|
7794
7910
|
import { makeStyles as makeStyles52 } from "tss-react/mui";
|
|
7795
7911
|
import "react-dates/initialize";
|
|
7796
7912
|
import "react-dates/lib/css/_datepicker.css";
|
|
7797
|
-
import { jsx as
|
|
7913
|
+
import { jsx as jsx121 } from "react/jsx-runtime";
|
|
7798
7914
|
var useStyles52 = makeStyles52()((theme) => ({
|
|
7799
7915
|
wrapper: {
|
|
7800
7916
|
"& .DateRangePicker": {
|
|
@@ -7890,15 +8006,15 @@ var ThemedDateRangePicker = ({
|
|
|
7890
8006
|
...props
|
|
7891
8007
|
}) => {
|
|
7892
8008
|
const { classes, cx } = useStyles52();
|
|
7893
|
-
return /* @__PURE__ */
|
|
8009
|
+
return /* @__PURE__ */ jsx121("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx121(DateRangePicker, { ...props }) });
|
|
7894
8010
|
};
|
|
7895
8011
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
7896
8012
|
|
|
7897
8013
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
7898
8014
|
import { memo as memo24 } from "react";
|
|
7899
|
-
import { AppBar, Box as
|
|
8015
|
+
import { AppBar, Box as Box36, Toolbar } from "@mui/material";
|
|
7900
8016
|
import { makeStyles as makeStyles53 } from "tss-react/mui";
|
|
7901
|
-
import { jsx as
|
|
8017
|
+
import { jsx as jsx122, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7902
8018
|
var useStyles53 = makeStyles53()((theme) => ({
|
|
7903
8019
|
menuButton: {
|
|
7904
8020
|
color: theme.palette.primary.contrastText
|
|
@@ -7918,9 +8034,9 @@ var TheToolbar = ({
|
|
|
7918
8034
|
rightSection
|
|
7919
8035
|
}) => {
|
|
7920
8036
|
const { classes } = useStyles53();
|
|
7921
|
-
return /* @__PURE__ */
|
|
7922
|
-
/* @__PURE__ */
|
|
7923
|
-
/* @__PURE__ */
|
|
8037
|
+
return /* @__PURE__ */ jsxs80(Box36, { children: [
|
|
8038
|
+
/* @__PURE__ */ jsx122(AppBar, { children: /* @__PURE__ */ jsxs80(Toolbar, { className: classes.topBar, children: [
|
|
8039
|
+
/* @__PURE__ */ jsx122(
|
|
7924
8040
|
RoundButton_default,
|
|
7925
8041
|
{
|
|
7926
8042
|
className: classes.menuButton,
|
|
@@ -7929,7 +8045,7 @@ var TheToolbar = ({
|
|
|
7929
8045
|
onClick: handleOpen
|
|
7930
8046
|
}
|
|
7931
8047
|
),
|
|
7932
|
-
/* @__PURE__ */
|
|
8048
|
+
/* @__PURE__ */ jsx122(
|
|
7933
8049
|
CompanyLogo_default,
|
|
7934
8050
|
{
|
|
7935
8051
|
size: "small",
|
|
@@ -7938,8 +8054,8 @@ var TheToolbar = ({
|
|
|
7938
8054
|
imageLogoLightSmall
|
|
7939
8055
|
}
|
|
7940
8056
|
),
|
|
7941
|
-
/* @__PURE__ */
|
|
7942
|
-
/* @__PURE__ */
|
|
8057
|
+
/* @__PURE__ */ jsx122(Box36, { ml: 2, children: leftSection }),
|
|
8058
|
+
/* @__PURE__ */ jsx122(Box36, { ml: "auto", children: rightSection })
|
|
7943
8059
|
] }) }),
|
|
7944
8060
|
LeftDrawer
|
|
7945
8061
|
] });
|
|
@@ -7948,20 +8064,20 @@ var TheToolbar_default = memo24(TheToolbar);
|
|
|
7948
8064
|
|
|
7949
8065
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
7950
8066
|
import { Alert as MuiAlert, Snackbar } from "@mui/material";
|
|
7951
|
-
import { jsx as
|
|
8067
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
7952
8068
|
var ToastMessage = ({
|
|
7953
8069
|
toastType,
|
|
7954
8070
|
toastMessage,
|
|
7955
8071
|
open,
|
|
7956
8072
|
onClose
|
|
7957
|
-
}) => /* @__PURE__ */
|
|
8073
|
+
}) => /* @__PURE__ */ jsx123(
|
|
7958
8074
|
Snackbar,
|
|
7959
8075
|
{
|
|
7960
8076
|
open,
|
|
7961
8077
|
autoHideDuration: 1500,
|
|
7962
8078
|
onClose,
|
|
7963
8079
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
7964
|
-
children: /* @__PURE__ */
|
|
8080
|
+
children: /* @__PURE__ */ jsx123(
|
|
7965
8081
|
MuiAlert,
|
|
7966
8082
|
{
|
|
7967
8083
|
elevation: 6,
|
|
@@ -7989,16 +8105,16 @@ var ToastMessage_default = ToastMessage;
|
|
|
7989
8105
|
|
|
7990
8106
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
7991
8107
|
import {
|
|
7992
|
-
Typography as
|
|
8108
|
+
Typography as Typography29,
|
|
7993
8109
|
Dialog as Dialog5,
|
|
7994
8110
|
Backdrop,
|
|
7995
|
-
Box as
|
|
8111
|
+
Box as Box37,
|
|
7996
8112
|
Divider as Divider11,
|
|
7997
8113
|
Paper as Paper12,
|
|
7998
8114
|
Fade as Fade2
|
|
7999
8115
|
} from "@mui/material";
|
|
8000
8116
|
import { makeStyles as makeStyles54 } from "tss-react/mui";
|
|
8001
|
-
import { jsx as
|
|
8117
|
+
import { jsx as jsx124, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8002
8118
|
var useStyles54 = makeStyles54()((theme) => ({
|
|
8003
8119
|
paper: {
|
|
8004
8120
|
padding: theme.spacing(2)
|
|
@@ -8028,7 +8144,7 @@ var TwoButtonDialog = ({
|
|
|
8028
8144
|
cancelButton
|
|
8029
8145
|
}) => {
|
|
8030
8146
|
const { classes } = useStyles54();
|
|
8031
|
-
return /* @__PURE__ */
|
|
8147
|
+
return /* @__PURE__ */ jsx124(
|
|
8032
8148
|
Dialog5,
|
|
8033
8149
|
{
|
|
8034
8150
|
open,
|
|
@@ -8038,10 +8154,10 @@ var TwoButtonDialog = ({
|
|
|
8038
8154
|
closeAfterTransition: true,
|
|
8039
8155
|
BackdropComponent: Backdrop,
|
|
8040
8156
|
BackdropProps: { timeout: 500 },
|
|
8041
|
-
children: /* @__PURE__ */
|
|
8042
|
-
/* @__PURE__ */
|
|
8043
|
-
/* @__PURE__ */
|
|
8044
|
-
|
|
8157
|
+
children: /* @__PURE__ */ jsx124(Fade2, { in: open, children: /* @__PURE__ */ jsxs81(Paper12, { className: classes.paper, children: [
|
|
8158
|
+
/* @__PURE__ */ jsxs81(Box37, { className: classes.mb, children: [
|
|
8159
|
+
/* @__PURE__ */ jsx124(Typography29, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx124(
|
|
8160
|
+
Box37,
|
|
8045
8161
|
{
|
|
8046
8162
|
sx: {
|
|
8047
8163
|
fontWeight: 600
|
|
@@ -8049,23 +8165,23 @@ var TwoButtonDialog = ({
|
|
|
8049
8165
|
children: title
|
|
8050
8166
|
}
|
|
8051
8167
|
) }),
|
|
8052
|
-
/* @__PURE__ */
|
|
8053
|
-
|
|
8168
|
+
/* @__PURE__ */ jsxs81(
|
|
8169
|
+
Box37,
|
|
8054
8170
|
{
|
|
8055
8171
|
className: classes.mt,
|
|
8056
8172
|
sx: {
|
|
8057
8173
|
fontWeight: 600
|
|
8058
8174
|
},
|
|
8059
8175
|
children: [
|
|
8060
|
-
subtitle1 && /* @__PURE__ */
|
|
8061
|
-
subtitle2 && /* @__PURE__ */
|
|
8176
|
+
subtitle1 && /* @__PURE__ */ jsx124(Typography29, { variant: "subtitle1", children: subtitle1 }),
|
|
8177
|
+
subtitle2 && /* @__PURE__ */ jsx124(Typography29, { variant: "subtitle1", children: subtitle2 })
|
|
8062
8178
|
]
|
|
8063
8179
|
}
|
|
8064
8180
|
)
|
|
8065
8181
|
] }),
|
|
8066
|
-
/* @__PURE__ */
|
|
8067
|
-
/* @__PURE__ */
|
|
8068
|
-
/* @__PURE__ */
|
|
8182
|
+
/* @__PURE__ */ jsx124(Divider11, {}),
|
|
8183
|
+
/* @__PURE__ */ jsxs81(Box37, { className: classes.buttonContainer, children: [
|
|
8184
|
+
/* @__PURE__ */ jsx124(
|
|
8069
8185
|
FilledButton_default,
|
|
8070
8186
|
{
|
|
8071
8187
|
copy: cancelLabel,
|
|
@@ -8078,7 +8194,7 @@ var TwoButtonDialog = ({
|
|
|
8078
8194
|
}
|
|
8079
8195
|
}
|
|
8080
8196
|
),
|
|
8081
|
-
/* @__PURE__ */
|
|
8197
|
+
/* @__PURE__ */ jsx124(
|
|
8082
8198
|
FilledButton_default,
|
|
8083
8199
|
{
|
|
8084
8200
|
color: "primary",
|
|
@@ -8087,7 +8203,7 @@ var TwoButtonDialog = ({
|
|
|
8087
8203
|
}
|
|
8088
8204
|
)
|
|
8089
8205
|
] }),
|
|
8090
|
-
/* @__PURE__ */
|
|
8206
|
+
/* @__PURE__ */ jsx124(Loading_default, { isLoading: dialogLoading })
|
|
8091
8207
|
] }) })
|
|
8092
8208
|
}
|
|
8093
8209
|
);
|
|
@@ -8096,10 +8212,10 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8096
8212
|
|
|
8097
8213
|
// src/components/UserBust/UserBust.tsx
|
|
8098
8214
|
import { memo as memo25 } from "react";
|
|
8099
|
-
import { Avatar as Avatar2, Typography as
|
|
8100
|
-
import { jsx as
|
|
8101
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */
|
|
8102
|
-
/* @__PURE__ */
|
|
8215
|
+
import { Avatar as Avatar2, Typography as Typography30 } from "@mui/material";
|
|
8216
|
+
import { jsx as jsx125, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8217
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs82("div", { children: [
|
|
8218
|
+
/* @__PURE__ */ jsx125(
|
|
8103
8219
|
Avatar2,
|
|
8104
8220
|
{
|
|
8105
8221
|
src: user.profile_picture,
|
|
@@ -8107,18 +8223,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs8
|
|
|
8107
8223
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
8108
8224
|
}
|
|
8109
8225
|
),
|
|
8110
|
-
/* @__PURE__ */
|
|
8111
|
-
/* @__PURE__ */
|
|
8112
|
-
/* @__PURE__ */
|
|
8226
|
+
/* @__PURE__ */ jsxs82("div", { style: { paddingTop: 16 }, children: [
|
|
8227
|
+
/* @__PURE__ */ jsx125(Typography30, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8228
|
+
/* @__PURE__ */ jsx125(Typography30, { ...typographyProps.username, children: user.username })
|
|
8113
8229
|
] })
|
|
8114
8230
|
] });
|
|
8115
8231
|
var UserBust_default = memo25(UserBust);
|
|
8116
8232
|
|
|
8117
8233
|
// src/components/icons/IconChart.tsx
|
|
8118
|
-
import { jsx as
|
|
8234
|
+
import { jsx as jsx126 } from "react/jsx-runtime";
|
|
8119
8235
|
var SvgIconChart = (props) => {
|
|
8120
8236
|
const { fill } = props;
|
|
8121
|
-
return /* @__PURE__ */
|
|
8237
|
+
return /* @__PURE__ */ jsx126(
|
|
8122
8238
|
"svg",
|
|
8123
8239
|
{
|
|
8124
8240
|
width: "20",
|
|
@@ -8127,7 +8243,7 @@ var SvgIconChart = (props) => {
|
|
|
8127
8243
|
fill: "none",
|
|
8128
8244
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8129
8245
|
...props,
|
|
8130
|
-
children: /* @__PURE__ */
|
|
8246
|
+
children: /* @__PURE__ */ jsx126(
|
|
8131
8247
|
"path",
|
|
8132
8248
|
{
|
|
8133
8249
|
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",
|
|
@@ -8205,6 +8321,7 @@ export {
|
|
|
8205
8321
|
Switch_default as Switch,
|
|
8206
8322
|
Table_default as Table,
|
|
8207
8323
|
TableDesktop_default as TableDesktop,
|
|
8324
|
+
TableDesktopFooter,
|
|
8208
8325
|
TableDesktopRowActions,
|
|
8209
8326
|
TableDesktopRowCell,
|
|
8210
8327
|
TableDesktopSmartSelect,
|