@natoora-libs/core 0.1.14 → 0.1.16
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
|
{
|
|
@@ -7740,7 +7740,10 @@ var TableDesktopFooter = ({
|
|
|
7740
7740
|
|
|
7741
7741
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7742
7742
|
var import_react38 = require("react");
|
|
7743
|
-
var
|
|
7743
|
+
var import_Check2 = __toESM(require("@mui/icons-material/Check"), 1);
|
|
7744
|
+
var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
|
|
7745
|
+
var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
|
|
7746
|
+
var import_material66 = require("@mui/material");
|
|
7744
7747
|
|
|
7745
7748
|
// src/components/TableDesktopRowCell/TableDesktopSmartSelect.tsx
|
|
7746
7749
|
var import_react36 = require("react");
|
|
@@ -7798,12 +7801,9 @@ var TableDesktopSmartSelect = (0, import_react36.memo)(({
|
|
|
7798
7801
|
);
|
|
7799
7802
|
});
|
|
7800
7803
|
|
|
7801
|
-
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7802
|
-
var import_Check2 = __toESM(require("@mui/icons-material/Check"), 1);
|
|
7803
|
-
|
|
7804
7804
|
// src/components/TableDesktopRowCell/TableDesktopTextField.tsx
|
|
7805
|
-
var import_TextField = __toESM(require("@mui/material/TextField"), 1);
|
|
7806
7805
|
var import_react37 = require("react");
|
|
7806
|
+
var import_material65 = require("@mui/material");
|
|
7807
7807
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
7808
7808
|
var TableDesktopTextField = ({
|
|
7809
7809
|
rowId,
|
|
@@ -7813,34 +7813,54 @@ var TableDesktopTextField = ({
|
|
|
7813
7813
|
validateInput,
|
|
7814
7814
|
onUpdateEditableCell
|
|
7815
7815
|
}) => {
|
|
7816
|
-
const [
|
|
7817
|
-
const
|
|
7816
|
+
const [input, setInput] = (0, import_react37.useState)(editInitialValue);
|
|
7817
|
+
const hasValidationError = (0, import_react37.useMemo)(() => !validateInput?.(input), [input, validateInput]);
|
|
7818
|
+
const commitValue = (value) => {
|
|
7819
|
+
if (hasValidationError) {
|
|
7820
|
+
return;
|
|
7821
|
+
}
|
|
7822
|
+
onUpdateEditableCell?.(rowId, value);
|
|
7823
|
+
};
|
|
7824
|
+
const handleKeyDown = (e) => {
|
|
7825
|
+
if (e.key === "Enter") {
|
|
7826
|
+
e.preventDefault();
|
|
7827
|
+
commitValue(input);
|
|
7828
|
+
}
|
|
7829
|
+
};
|
|
7818
7830
|
return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7819
|
-
|
|
7831
|
+
import_material65.TextField,
|
|
7820
7832
|
{
|
|
7821
7833
|
fullWidth: true,
|
|
7822
7834
|
variant: "standard",
|
|
7823
|
-
|
|
7835
|
+
value: input,
|
|
7824
7836
|
label: inputLabel,
|
|
7825
|
-
error:
|
|
7837
|
+
error: hasValidationError,
|
|
7826
7838
|
disabled,
|
|
7827
|
-
|
|
7828
|
-
|
|
7839
|
+
onKeyDown: handleKeyDown,
|
|
7840
|
+
onChange: ({ target: { value } }) => {
|
|
7841
|
+
setInput(value);
|
|
7829
7842
|
},
|
|
7830
|
-
onBlur: ({ target: { value
|
|
7831
|
-
|
|
7832
|
-
return;
|
|
7833
|
-
}
|
|
7834
|
-
onUpdateEditableCell?.(rowId, value2);
|
|
7843
|
+
onBlur: ({ target: { value } }) => {
|
|
7844
|
+
commitValue(value);
|
|
7835
7845
|
}
|
|
7836
7846
|
}
|
|
7837
7847
|
);
|
|
7838
7848
|
};
|
|
7839
7849
|
|
|
7840
7850
|
// src/components/TableDesktopRowCell/TableDesktopRowCell.tsx
|
|
7841
|
-
var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
|
|
7842
|
-
var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
|
|
7843
7851
|
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
7852
|
+
var getReadOnlyBooleanIcon = (value) => {
|
|
7853
|
+
if (value) {
|
|
7854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Check2.default, { sx: { fontSize: 16 } });
|
|
7855
|
+
}
|
|
7856
|
+
return "-";
|
|
7857
|
+
};
|
|
7858
|
+
var renderReadOnlyValue = (value) => {
|
|
7859
|
+
if (typeof value === "boolean") {
|
|
7860
|
+
return getReadOnlyBooleanIcon(value);
|
|
7861
|
+
}
|
|
7862
|
+
return value;
|
|
7863
|
+
};
|
|
7844
7864
|
var TableDesktopRowCell = ({
|
|
7845
7865
|
inputLabel,
|
|
7846
7866
|
editInitialValue,
|
|
@@ -7896,7 +7916,7 @@ var TableDesktopRowCell = ({
|
|
|
7896
7916
|
}
|
|
7897
7917
|
),
|
|
7898
7918
|
"checkbox": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7899
|
-
|
|
7919
|
+
import_material66.Checkbox,
|
|
7900
7920
|
{
|
|
7901
7921
|
disableRipple: true,
|
|
7902
7922
|
disabled,
|
|
@@ -7918,7 +7938,7 @@ var TableDesktopRowCell = ({
|
|
|
7918
7938
|
}
|
|
7919
7939
|
),
|
|
7920
7940
|
"numeric": /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7921
|
-
|
|
7941
|
+
import_material66.TextField,
|
|
7922
7942
|
{
|
|
7923
7943
|
fullWidth: true,
|
|
7924
7944
|
variant: "standard",
|
|
@@ -7939,18 +7959,12 @@ var TableDesktopRowCell = ({
|
|
|
7939
7959
|
}
|
|
7940
7960
|
)
|
|
7941
7961
|
};
|
|
7942
|
-
const getReadOnlyBooleanIcon = (value) => {
|
|
7943
|
-
if (value) {
|
|
7944
|
-
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Check2.default, { sx: { fontSize: 16 } });
|
|
7945
|
-
}
|
|
7946
|
-
return "-";
|
|
7947
|
-
};
|
|
7948
7962
|
const handleEditClick = (e) => {
|
|
7949
7963
|
e.stopPropagation();
|
|
7950
7964
|
setIsEditMode((prev) => !prev);
|
|
7951
7965
|
};
|
|
7952
|
-
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7953
|
-
|
|
7966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.Tooltip, { title: isOverflowed ? String(readOnlyValue) : "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7967
|
+
import_material66.TableCell,
|
|
7954
7968
|
{
|
|
7955
7969
|
align: "left",
|
|
7956
7970
|
onMouseEnter: () => editableCellType && !disabled && setIsCellHovered(true),
|
|
@@ -7968,7 +7982,7 @@ var TableDesktopRowCell = ({
|
|
|
7968
7982
|
background: isEditMode ? colors.lightBlueBackground : (theme) => theme.palette.background.default
|
|
7969
7983
|
},
|
|
7970
7984
|
children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
|
|
7971
|
-
|
|
7985
|
+
import_material66.Box,
|
|
7972
7986
|
{
|
|
7973
7987
|
p: 1,
|
|
7974
7988
|
ref: cellRef,
|
|
@@ -7976,8 +7990,8 @@ var TableDesktopRowCell = ({
|
|
|
7976
7990
|
textOverflow: "ellipsis",
|
|
7977
7991
|
whiteSpace: "nowrap",
|
|
7978
7992
|
children: [
|
|
7979
|
-
isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7980
|
-
|
|
7993
|
+
isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_material66.Tooltip, { title: isEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
7994
|
+
import_material66.IconButton,
|
|
7981
7995
|
{
|
|
7982
7996
|
onClick: handleEditClick,
|
|
7983
7997
|
sx: {
|
|
@@ -7994,7 +8008,7 @@ var TableDesktopRowCell = ({
|
|
|
7994
8008
|
children: isEditMode ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_Edit.default, { fontSize: "small" })
|
|
7995
8009
|
}
|
|
7996
8010
|
) }) : null,
|
|
7997
|
-
isEditMode && editableCellType ? editableComponents[editableCellType] :
|
|
8011
|
+
isEditMode && editableCellType ? editableComponents[editableCellType] : renderReadOnlyValue(readOnlyValue)
|
|
7998
8012
|
]
|
|
7999
8013
|
}
|
|
8000
8014
|
)
|
|
@@ -8005,7 +8019,7 @@ var TableDesktopRowCell = ({
|
|
|
8005
8019
|
// src/components/TableHeader/TableHeader.tsx
|
|
8006
8020
|
var import_react39 = require("react");
|
|
8007
8021
|
var import_icons_material12 = require("@mui/icons-material");
|
|
8008
|
-
var
|
|
8022
|
+
var import_material67 = require("@mui/material");
|
|
8009
8023
|
var import_mui57 = require("tss-react/mui");
|
|
8010
8024
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
8011
8025
|
var useStyles51 = (0, import_mui57.makeStyles)()(() => ({
|
|
@@ -8052,8 +8066,8 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
8052
8066
|
});
|
|
8053
8067
|
setSortableCells(sortedCells);
|
|
8054
8068
|
};
|
|
8055
|
-
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8056
|
-
|
|
8069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8070
|
+
import_material67.TableSortLabel,
|
|
8057
8071
|
{
|
|
8058
8072
|
className: classes.sortLabel,
|
|
8059
8073
|
direction: cell?.direction || "asc",
|
|
@@ -8066,7 +8080,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
8066
8080
|
var TableHeader_default = (0, import_react39.memo)(TableHeader);
|
|
8067
8081
|
|
|
8068
8082
|
// src/components/TextDivider/TextDivider.tsx
|
|
8069
|
-
var
|
|
8083
|
+
var import_material68 = require("@mui/material");
|
|
8070
8084
|
var import_mui58 = require("tss-react/mui");
|
|
8071
8085
|
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
8072
8086
|
var useStyles52 = (0, import_mui58.makeStyles)()(() => ({
|
|
@@ -8106,18 +8120,18 @@ var TextDivider = ({
|
|
|
8106
8120
|
const { classes } = useStyles52();
|
|
8107
8121
|
const iconColor = color ?? colors.neutral900;
|
|
8108
8122
|
return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
8109
|
-
|
|
8123
|
+
import_material68.Box,
|
|
8110
8124
|
{
|
|
8111
8125
|
display: "flex",
|
|
8112
8126
|
alignItems: "center",
|
|
8113
8127
|
justifyContent: "space-between",
|
|
8114
8128
|
className: classes.container,
|
|
8115
8129
|
children: [
|
|
8116
|
-
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8117
|
-
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8130
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Divider, { className: classes.leftDivider }),
|
|
8131
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(import_material68.Box, { className: classes.center, children: [
|
|
8118
8132
|
Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
8119
8133
|
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8120
|
-
|
|
8134
|
+
import_material68.Typography,
|
|
8121
8135
|
{
|
|
8122
8136
|
color: "textSecondary",
|
|
8123
8137
|
className: classes.title,
|
|
@@ -8127,7 +8141,7 @@ var TextDivider = ({
|
|
|
8127
8141
|
),
|
|
8128
8142
|
Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
8129
8143
|
] }) }),
|
|
8130
|
-
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8144
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Divider, { className: classes.rightDivider })
|
|
8131
8145
|
]
|
|
8132
8146
|
}
|
|
8133
8147
|
);
|
|
@@ -8241,7 +8255,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
8241
8255
|
|
|
8242
8256
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
8243
8257
|
var import_react40 = require("react");
|
|
8244
|
-
var
|
|
8258
|
+
var import_material69 = require("@mui/material");
|
|
8245
8259
|
var import_mui60 = require("tss-react/mui");
|
|
8246
8260
|
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
8247
8261
|
var useStyles54 = (0, import_mui60.makeStyles)()((theme) => ({
|
|
@@ -8263,8 +8277,8 @@ var TheToolbar = ({
|
|
|
8263
8277
|
rightSection
|
|
8264
8278
|
}) => {
|
|
8265
8279
|
const { classes } = useStyles54();
|
|
8266
|
-
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
|
|
8267
|
-
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material69.Box, { children: [
|
|
8281
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material69.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_material69.Toolbar, { className: classes.topBar, children: [
|
|
8268
8282
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8269
8283
|
RoundButton_default,
|
|
8270
8284
|
{
|
|
@@ -8283,8 +8297,8 @@ var TheToolbar = ({
|
|
|
8283
8297
|
imageLogoLightSmall
|
|
8284
8298
|
}
|
|
8285
8299
|
),
|
|
8286
|
-
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8287
|
-
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8300
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material69.Box, { ml: 2, children: leftSection }),
|
|
8301
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material69.Box, { ml: "auto", children: rightSection })
|
|
8288
8302
|
] }) }),
|
|
8289
8303
|
LeftDrawer
|
|
8290
8304
|
] });
|
|
@@ -8292,7 +8306,7 @@ var TheToolbar = ({
|
|
|
8292
8306
|
var TheToolbar_default = (0, import_react40.memo)(TheToolbar);
|
|
8293
8307
|
|
|
8294
8308
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
8295
|
-
var
|
|
8309
|
+
var import_material70 = require("@mui/material");
|
|
8296
8310
|
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
8297
8311
|
var ToastMessage = ({
|
|
8298
8312
|
toastType,
|
|
@@ -8300,14 +8314,14 @@ var ToastMessage = ({
|
|
|
8300
8314
|
open,
|
|
8301
8315
|
onClose
|
|
8302
8316
|
}) => /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8303
|
-
|
|
8317
|
+
import_material70.Snackbar,
|
|
8304
8318
|
{
|
|
8305
8319
|
open,
|
|
8306
8320
|
autoHideDuration: 1500,
|
|
8307
8321
|
onClose,
|
|
8308
8322
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
8309
8323
|
children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8310
|
-
|
|
8324
|
+
import_material70.Alert,
|
|
8311
8325
|
{
|
|
8312
8326
|
elevation: 6,
|
|
8313
8327
|
variant: "filled",
|
|
@@ -8333,7 +8347,7 @@ var ToastMessage = ({
|
|
|
8333
8347
|
var ToastMessage_default = ToastMessage;
|
|
8334
8348
|
|
|
8335
8349
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
8336
|
-
var
|
|
8350
|
+
var import_material71 = require("@mui/material");
|
|
8337
8351
|
var import_mui61 = require("tss-react/mui");
|
|
8338
8352
|
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
8339
8353
|
var useStyles55 = (0, import_mui61.makeStyles)()((theme) => ({
|
|
@@ -8366,19 +8380,19 @@ var TwoButtonDialog = ({
|
|
|
8366
8380
|
}) => {
|
|
8367
8381
|
const { classes } = useStyles55();
|
|
8368
8382
|
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8369
|
-
|
|
8383
|
+
import_material71.Dialog,
|
|
8370
8384
|
{
|
|
8371
8385
|
open,
|
|
8372
8386
|
disableEnforceFocus: true,
|
|
8373
8387
|
maxWidth: "sm",
|
|
8374
8388
|
fullWidth: true,
|
|
8375
8389
|
closeAfterTransition: true,
|
|
8376
|
-
BackdropComponent:
|
|
8390
|
+
BackdropComponent: import_material71.Backdrop,
|
|
8377
8391
|
BackdropProps: { timeout: 500 },
|
|
8378
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8379
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
|
|
8380
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8381
|
-
|
|
8392
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material71.Paper, { className: classes.paper, children: [
|
|
8393
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material71.Box, { className: classes.mb, children: [
|
|
8394
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8395
|
+
import_material71.Box,
|
|
8382
8396
|
{
|
|
8383
8397
|
sx: {
|
|
8384
8398
|
fontWeight: 600
|
|
@@ -8387,21 +8401,21 @@ var TwoButtonDialog = ({
|
|
|
8387
8401
|
}
|
|
8388
8402
|
) }),
|
|
8389
8403
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
|
|
8390
|
-
|
|
8404
|
+
import_material71.Box,
|
|
8391
8405
|
{
|
|
8392
8406
|
className: classes.mt,
|
|
8393
8407
|
sx: {
|
|
8394
8408
|
fontWeight: 600
|
|
8395
8409
|
},
|
|
8396
8410
|
children: [
|
|
8397
|
-
subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8398
|
-
subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8411
|
+
subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Typography, { variant: "subtitle1", children: subtitle1 }),
|
|
8412
|
+
subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Typography, { variant: "subtitle1", children: subtitle2 })
|
|
8399
8413
|
]
|
|
8400
8414
|
}
|
|
8401
8415
|
)
|
|
8402
8416
|
] }),
|
|
8403
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8404
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
|
|
8417
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material71.Divider, {}),
|
|
8418
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material71.Box, { className: classes.buttonContainer, children: [
|
|
8405
8419
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8406
8420
|
FilledButton_default,
|
|
8407
8421
|
{
|
|
@@ -8433,11 +8447,11 @@ var TwoButtonDialog_default = TwoButtonDialog;
|
|
|
8433
8447
|
|
|
8434
8448
|
// src/components/UserBust/UserBust.tsx
|
|
8435
8449
|
var import_react41 = require("react");
|
|
8436
|
-
var
|
|
8450
|
+
var import_material72 = require("@mui/material");
|
|
8437
8451
|
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
8438
8452
|
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { children: [
|
|
8439
8453
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
8440
|
-
|
|
8454
|
+
import_material72.Avatar,
|
|
8441
8455
|
{
|
|
8442
8456
|
src: user.profile_picture,
|
|
8443
8457
|
alt: "user_avatar",
|
|
@@ -8445,8 +8459,8 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, i
|
|
|
8445
8459
|
}
|
|
8446
8460
|
),
|
|
8447
8461
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { style: { paddingTop: 16 }, children: [
|
|
8448
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
8449
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
8462
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material72.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
8463
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material72.Typography, { ...typographyProps.username, children: user.username })
|
|
8450
8464
|
] })
|
|
8451
8465
|
] });
|
|
8452
8466
|
var UserBust_default = (0, import_react41.memo)(UserBust);
|