@natoora-libs/core 0.1.13-dev-doug-2 → 0.1.13-dev-doug-4
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.
|
@@ -6910,7 +6910,7 @@ var SmartTableHeader = ({
|
|
|
6910
6910
|
flexDirection: "row",
|
|
6911
6911
|
gap: headCell.disableSort ? 1 : 0,
|
|
6912
6912
|
children: [
|
|
6913
|
-
headCell.disableSort ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_material58.Typography, { variant: "subtitle2", mt: 0.25, fontWeight: 600, children: headCell.label }) : /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
|
|
6913
|
+
headCell.disableSort ? headCell.RenderHeader ?? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_material58.Tooltip, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_material58.Typography, { variant: "subtitle2", mt: 0.25, fontWeight: 600, children: headCell.label }) }) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_material58.Tooltip, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
|
|
6914
6914
|
import_material58.TableSortLabel,
|
|
6915
6915
|
{
|
|
6916
6916
|
"data-testid": "table-sort-label",
|
|
@@ -6922,7 +6922,7 @@ var SmartTableHeader = ({
|
|
|
6922
6922
|
orderBy === headCell.id ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
|
|
6923
6923
|
]
|
|
6924
6924
|
}
|
|
6925
|
-
),
|
|
6925
|
+
) }),
|
|
6926
6926
|
headCell.refetchFilterOptions ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6927
6927
|
SmartTableHeaderFilterMenu_default,
|
|
6928
6928
|
{
|
|
@@ -7711,7 +7711,10 @@ var TableDesktopFooter = ({
|
|
|
7711
7711
|
|
|
7712
7712
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7713
7713
|
var import_react38 = require("react");
|
|
7714
|
-
var
|
|
7714
|
+
var import_Check2 = __toESM(require("@mui/icons-material/Check"), 1);
|
|
7715
|
+
var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
|
|
7716
|
+
var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
|
|
7717
|
+
var import_material66 = require("@mui/material");
|
|
7715
7718
|
|
|
7716
7719
|
// src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
|
|
7717
7720
|
var import_react36 = require("react");
|
|
@@ -7769,12 +7772,9 @@ var TableDesktopSmartSelect = (0, import_react36.memo)(({
|
|
|
7769
7772
|
);
|
|
7770
7773
|
});
|
|
7771
7774
|
|
|
7772
|
-
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7773
|
-
var import_Check2 = __toESM(require("@mui/icons-material/Check"), 1);
|
|
7774
|
-
|
|
7775
7775
|
// src/components/TableDesktopRowCell/TableDesktopTextField.tsx
|
|
7776
|
-
var import_TextField = __toESM(require("@mui/material/TextField"), 1);
|
|
7777
7776
|
var import_react37 = require("react");
|
|
7777
|
+
var import_material65 = require("@mui/material");
|
|
7778
7778
|
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
7779
7779
|
var TableDesktopTextField = ({
|
|
7780
7780
|
rowId,
|
|
@@ -7784,34 +7784,54 @@ var TableDesktopTextField = ({
|
|
|
7784
7784
|
validateInput,
|
|
7785
7785
|
onUpdateEditableCell
|
|
7786
7786
|
}) => {
|
|
7787
|
-
const [
|
|
7788
|
-
const
|
|
7787
|
+
const [input, setInput] = (0, import_react37.useState)(editInitialValue);
|
|
7788
|
+
const hasValidationError = (0, import_react37.useMemo)(() => !validateInput?.(input), [input, validateInput]);
|
|
7789
|
+
const commitValue = (value) => {
|
|
7790
|
+
if (hasValidationError) {
|
|
7791
|
+
return;
|
|
7792
|
+
}
|
|
7793
|
+
onUpdateEditableCell?.(rowId, value);
|
|
7794
|
+
};
|
|
7795
|
+
const handleKeyDown = (e) => {
|
|
7796
|
+
if (e.key === "Enter") {
|
|
7797
|
+
e.preventDefault();
|
|
7798
|
+
commitValue(input);
|
|
7799
|
+
}
|
|
7800
|
+
};
|
|
7789
7801
|
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
7790
|
-
|
|
7802
|
+
import_material65.TextField,
|
|
7791
7803
|
{
|
|
7792
7804
|
fullWidth: true,
|
|
7793
7805
|
variant: "standard",
|
|
7794
|
-
|
|
7806
|
+
value: input,
|
|
7795
7807
|
label: inputLabel,
|
|
7796
|
-
error:
|
|
7808
|
+
error: hasValidationError,
|
|
7797
7809
|
disabled,
|
|
7798
|
-
|
|
7799
|
-
|
|
7810
|
+
onKeyDown: handleKeyDown,
|
|
7811
|
+
onChange: ({ target: { value } }) => {
|
|
7812
|
+
setInput(value);
|
|
7800
7813
|
},
|
|
7801
|
-
onBlur: ({ target: { value
|
|
7802
|
-
|
|
7803
|
-
return;
|
|
7804
|
-
}
|
|
7805
|
-
onUpdateEditableCell?.(rowId, value2);
|
|
7814
|
+
onBlur: ({ target: { value } }) => {
|
|
7815
|
+
commitValue(value);
|
|
7806
7816
|
}
|
|
7807
7817
|
}
|
|
7808
7818
|
);
|
|
7809
7819
|
};
|
|
7810
7820
|
|
|
7811
7821
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7812
|
-
var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
|
|
7813
|
-
var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
|
|
7814
7822
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
7823
|
+
var getReadOnlyBooleanIcon = (value) => {
|
|
7824
|
+
if (value) {
|
|
7825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_Check2.default, { sx: { fontSize: 16 } });
|
|
7826
|
+
}
|
|
7827
|
+
return "-";
|
|
7828
|
+
};
|
|
7829
|
+
var renderReadOnlyValue = (value) => {
|
|
7830
|
+
if (typeof value === "boolean") {
|
|
7831
|
+
return getReadOnlyBooleanIcon(value);
|
|
7832
|
+
}
|
|
7833
|
+
return value;
|
|
7834
|
+
};
|
|
7815
7835
|
var TableDesktopRowCell = ({
|
|
7816
7836
|
inputLabel,
|
|
7817
7837
|
editInitialValue,
|
|
@@ -7867,7 +7887,7 @@ var TableDesktopRowCell = ({
|
|
|
7867
7887
|
}
|
|
7868
7888
|
),
|
|
7869
7889
|
"checkbox": /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7870
|
-
|
|
7890
|
+
import_material66.Checkbox,
|
|
7871
7891
|
{
|
|
7872
7892
|
disableRipple: true,
|
|
7873
7893
|
disabled,
|
|
@@ -7889,7 +7909,7 @@ var TableDesktopRowCell = ({
|
|
|
7889
7909
|
}
|
|
7890
7910
|
),
|
|
7891
7911
|
"numeric": /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7892
|
-
|
|
7912
|
+
import_material66.TextField,
|
|
7893
7913
|
{
|
|
7894
7914
|
fullWidth: true,
|
|
7895
7915
|
variant: "standard",
|
|
@@ -7910,18 +7930,12 @@ var TableDesktopRowCell = ({
|
|
|
7910
7930
|
}
|
|
7911
7931
|
)
|
|
7912
7932
|
};
|
|
7913
|
-
const getReadOnlyBooleanIcon = (value) => {
|
|
7914
|
-
if (value) {
|
|
7915
|
-
return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_Check2.default, { sx: { fontSize: 16 } });
|
|
7916
|
-
}
|
|
7917
|
-
return "-";
|
|
7918
|
-
};
|
|
7919
7933
|
const handleEditClick = (e) => {
|
|
7920
7934
|
e.stopPropagation();
|
|
7921
7935
|
setIsEditMode((prev) => !prev);
|
|
7922
7936
|
};
|
|
7923
|
-
return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7924
|
-
|
|
7937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material66.Tooltip, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7938
|
+
import_material66.TableCell,
|
|
7925
7939
|
{
|
|
7926
7940
|
align: "left",
|
|
7927
7941
|
onMouseEnter: () => editableCellType && !disabled && setIsCellHovered(true),
|
|
@@ -7939,7 +7953,7 @@ var TableDesktopRowCell = ({
|
|
|
7939
7953
|
background: isEditMode ? colors.lightBlueBackground : (theme) => theme.palette.background.default
|
|
7940
7954
|
},
|
|
7941
7955
|
children: /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
|
|
7942
|
-
|
|
7956
|
+
import_material66.Box,
|
|
7943
7957
|
{
|
|
7944
7958
|
p: 1,
|
|
7945
7959
|
ref: cellRef,
|
|
@@ -7947,8 +7961,8 @@ var TableDesktopRowCell = ({
|
|
|
7947
7961
|
textOverflow: "ellipsis",
|
|
7948
7962
|
whiteSpace: "nowrap",
|
|
7949
7963
|
children: [
|
|
7950
|
-
isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7951
|
-
|
|
7964
|
+
isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material66.Tooltip, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7965
|
+
import_material66.IconButton,
|
|
7952
7966
|
{
|
|
7953
7967
|
onClick: handleEditClick,
|
|
7954
7968
|
sx: {
|
|
@@ -7965,7 +7979,7 @@ var TableDesktopRowCell = ({
|
|
|
7965
7979
|
children: isEditMode ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_Edit.default, { fontSize: "small" })
|
|
7966
7980
|
}
|
|
7967
7981
|
) }) : null,
|
|
7968
|
-
isEditMode && editableCellType ? editableComponents[editableCellType] :
|
|
7982
|
+
isEditMode && editableCellType ? editableComponents[editableCellType] : renderReadOnlyValue(readOnlyValue)
|
|
7969
7983
|
]
|
|
7970
7984
|
}
|
|
7971
7985
|
)
|
|
@@ -7976,7 +7990,7 @@ var TableDesktopRowCell = ({
|
|
|
7976
7990
|
// src/components/TableHeader/TableHeader.tsx
|
|
7977
7991
|
var import_react39 = require("react");
|
|
7978
7992
|
var import_icons_material12 = require("@mui/icons-material");
|
|
7979
|
-
var
|
|
7993
|
+
var import_material67 = require("@mui/material");
|
|
7980
7994
|
var import_mui57 = require("tss-react/mui");
|
|
7981
7995
|
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
7982
7996
|
var useStyles51 = (0, import_mui57.makeStyles)()(() => ({
|
|
@@ -8023,8 +8037,8 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
8023
8037
|
});
|
|
8024
8038
|
setSortableCells(sortedCells);
|
|
8025
8039
|
};
|
|
8026
|
-
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
8027
|
-
|
|
8040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material67.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material67.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material67.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
8041
|
+
import_material67.TableSortLabel,
|
|
8028
8042
|
{
|
|
8029
8043
|
className: classes.sortLabel,
|
|
8030
8044
|
direction: cell?.direction || "asc",
|
|
@@ -8037,7 +8051,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
8037
8051
|
var TableHeader_default = (0, import_react39.memo)(TableHeader);
|
|
8038
8052
|
|
|
8039
8053
|
// src/components/TextDivider/TextDivider.tsx
|
|
8040
|
-
var
|
|
8054
|
+
var import_material68 = require("@mui/material");
|
|
8041
8055
|
var import_mui58 = require("tss-react/mui");
|
|
8042
8056
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
8043
8057
|
var useStyles52 = (0, import_mui58.makeStyles)()(() => ({
|
|
@@ -8077,18 +8091,18 @@ var TextDivider = ({
|
|
|
8077
8091
|
const { classes } = useStyles52();
|
|
8078
8092
|
const iconColor = color ?? colors.neutral900;
|
|
8079
8093
|
return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
|
|
8080
|
-
|
|
8094
|
+
import_material68.Box,
|
|
8081
8095
|
{
|
|
8082
8096
|
display: "flex",
|
|
8083
8097
|
alignItems: "center",
|
|
8084
8098
|
justifyContent: "space-between",
|
|
8085
8099
|
className: classes.container,
|
|
8086
8100
|
children: [
|
|
8087
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8088
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8101
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material68.Divider, { className: classes.leftDivider }),
|
|
8102
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material68.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material68.Box, { className: classes.center, children: [
|
|
8089
8103
|
Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
8090
8104
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8091
|
-
|
|
8105
|
+
import_material68.Typography,
|
|
8092
8106
|
{
|
|
8093
8107
|
color: "textSecondary",
|
|
8094
8108
|
className: classes.title,
|
|
@@ -8098,7 +8112,7 @@ var TextDivider = ({
|
|
|
8098
8112
|
),
|
|
8099
8113
|
Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
8100
8114
|
] }) }),
|
|
8101
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8115
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material68.Divider, { className: classes.rightDivider })
|
|
8102
8116
|
]
|
|
8103
8117
|
}
|
|
8104
8118
|
);
|
|
@@ -8212,7 +8226,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
8212
8226
|
|
|
8213
8227
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
8214
8228
|
var import_react40 = require("react");
|
|
8215
|
-
var
|
|
8229
|
+
var import_material69 = require("@mui/material");
|
|
8216
8230
|
var import_mui60 = require("tss-react/mui");
|
|
8217
8231
|
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
8218
8232
|
var useStyles54 = (0, import_mui60.makeStyles)()((theme) => ({
|
|
@@ -8234,8 +8248,8 @@ var TheToolbar = ({
|
|
|
8234
8248
|
rightSection
|
|
8235
8249
|
}) => {
|
|
8236
8250
|
const { classes } = useStyles54();
|
|
8237
|
-
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
8238
|
-
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_material69.Box, { children: [
|
|
8252
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material69.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_material69.Toolbar, { className: classes.topBar, children: [
|
|
8239
8253
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8240
8254
|
RoundButton_default,
|
|
8241
8255
|
{
|
|
@@ -8254,8 +8268,8 @@ var TheToolbar = ({
|
|
|
8254
8268
|
imageLogoLightSmall
|
|
8255
8269
|
}
|
|
8256
8270
|
),
|
|
8257
|
-
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8258
|
-
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8271
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material69.Box, { ml: 2, children: leftSection }),
|
|
8272
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material69.Box, { ml: "auto", children: rightSection })
|
|
8259
8273
|
] }) }),
|
|
8260
8274
|
LeftDrawer
|
|
8261
8275
|
] });
|
|
@@ -8263,7 +8277,7 @@ var TheToolbar = ({
|
|
|
8263
8277
|
var TheToolbar_default = (0, import_react40.memo)(TheToolbar);
|
|
8264
8278
|
|
|
8265
8279
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
8266
|
-
var
|
|
8280
|
+
var import_material70 = require("@mui/material");
|
|
8267
8281
|
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
8268
8282
|
var ToastMessage = ({
|
|
8269
8283
|
toastType,
|
|
@@ -8271,14 +8285,14 @@ var ToastMessage = ({
|
|
|
8271
8285
|
open,
|
|
8272
8286
|
onClose
|
|
8273
8287
|
}) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8274
|
-
|
|
8288
|
+
import_material70.Snackbar,
|
|
8275
8289
|
{
|
|
8276
8290
|
open,
|
|
8277
8291
|
autoHideDuration: 1500,
|
|
8278
8292
|
onClose,
|
|
8279
8293
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
8280
8294
|
children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8281
|
-
|
|
8295
|
+
import_material70.Alert,
|
|
8282
8296
|
{
|
|
8283
8297
|
elevation: 6,
|
|
8284
8298
|
variant: "filled",
|
|
@@ -8304,7 +8318,7 @@ var ToastMessage = ({
|
|
|
8304
8318
|
var ToastMessage_default = ToastMessage;
|
|
8305
8319
|
|
|
8306
8320
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
8307
|
-
var
|
|
8321
|
+
var import_material71 = require("@mui/material");
|
|
8308
8322
|
var import_mui61 = require("tss-react/mui");
|
|
8309
8323
|
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
8310
8324
|
var useStyles55 = (0, import_mui61.makeStyles)()((theme) => ({
|
|
@@ -8337,19 +8351,19 @@ var TwoButtonDialog = ({
|
|
|
8337
8351
|
}) => {
|
|
8338
8352
|
const { classes } = useStyles55();
|
|
8339
8353
|
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8340
|
-
|
|
8354
|
+
import_material71.Dialog,
|
|
8341
8355
|
{
|
|
8342
8356
|
open,
|
|
8343
8357
|
disableEnforceFocus: true,
|
|
8344
8358
|
maxWidth: "sm",
|
|
8345
8359
|
fullWidth: true,
|
|
8346
8360
|
closeAfterTransition: true,
|
|
8347
|
-
BackdropComponent:
|
|
8361
|
+
BackdropComponent: import_material71.Backdrop,
|
|
8348
8362
|
BackdropProps: { timeout: 500 },
|
|
8349
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8350
|
-
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
8351
|
-
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8352
|
-
|
|
8363
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material71.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_material71.Paper, { className: classes.paper, children: [
|
|
8364
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_material71.Box, { className: classes.mb, children: [
|
|
8365
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material71.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8366
|
+
import_material71.Box,
|
|
8353
8367
|
{
|
|
8354
8368
|
sx: {
|
|
8355
8369
|
fontWeight: 600
|
|
@@ -8358,21 +8372,21 @@ var TwoButtonDialog = ({
|
|
|
8358
8372
|
}
|
|
8359
8373
|
) }),
|
|
8360
8374
|
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
8361
|
-
|
|
8375
|
+
import_material71.Box,
|
|
8362
8376
|
{
|
|
8363
8377
|
className: classes.mt,
|
|
8364
8378
|
sx: {
|
|
8365
8379
|
fontWeight: 600
|
|
8366
8380
|
},
|
|
8367
8381
|
children: [
|
|
8368
|
-
subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8369
|
-
subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8382
|
+
subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material71.Typography, { variant: "subtitle1", children: subtitle1 }),
|
|
8383
|
+
subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material71.Typography, { variant: "subtitle1", children: subtitle2 })
|
|
8370
8384
|
]
|
|
8371
8385
|
}
|
|
8372
8386
|
)
|
|
8373
8387
|
] }),
|
|
8374
|
-
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8375
|
-
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
8388
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_material71.Divider, {}),
|
|
8389
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_material71.Box, { className: classes.buttonContainer, children: [
|
|
8376
8390
|
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8377
8391
|
FilledButton_default,
|
|
8378
8392
|
{
|
|
@@ -8404,11 +8418,11 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8404
8418
|
|
|
8405
8419
|
// src/components/UserBust/UserBust.tsx
|
|
8406
8420
|
var import_react41 = require("react");
|
|
8407
|
-
var
|
|
8421
|
+
var import_material72 = require("@mui/material");
|
|
8408
8422
|
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
8409
8423
|
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { children: [
|
|
8410
8424
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8411
|
-
|
|
8425
|
+
import_material72.Avatar,
|
|
8412
8426
|
{
|
|
8413
8427
|
src: user.profile_picture,
|
|
8414
8428
|
alt: "user_avatar",
|
|
@@ -8416,8 +8430,8 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, i
|
|
|
8416
8430
|
}
|
|
8417
8431
|
),
|
|
8418
8432
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { style: { paddingTop: 16 }, children: [
|
|
8419
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8420
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8433
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8434
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Typography, { ...typographyProps.username, children: user.username })
|
|
8421
8435
|
] })
|
|
8422
8436
|
] });
|
|
8423
8437
|
var UserBust_default = (0, import_react41.memo)(UserBust);
|