tek-wallet 0.0.424 → 0.0.425
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/ui/Button/index.js +2 -2
- package/dist/components/ui/CopyTextComponent/index.js +1 -1
- package/dist/components/ui/DialogContentLayout/index.js +1 -1
- package/dist/components/ui/Fees/index.js +1 -1
- package/dist/components/ui/Formatter/index.js +1 -1
- package/dist/components/ui/FunctionItem/index.js +1 -1
- package/dist/components/ui/Input/index.js +1 -1
- package/dist/components/ui/NetworkSelection/index.js +1 -1
- package/dist/components/ui/ReceiveFunction/index.js +3 -3
- package/dist/components/ui/TokenItem/index.js +1 -1
- package/dist/components/ui/TokenSelection/index.js +2 -2
- package/dist/providers/RealtimeProvider/index.js +11 -3
- package/dist/theme/mui/theme.js +4 -4
- package/package.json +1 -1
|
@@ -56,13 +56,13 @@ Button.Primary = function (props) {
|
|
|
56
56
|
color: theme.palette.text.white24,
|
|
57
57
|
},
|
|
58
58
|
_a);
|
|
59
|
-
return ((0, jsx_runtime_1.jsxs)(Button, __assign({}, rest, { variant: "contained", color: "primary", status: status, sx: __assign({ borderRadius: theme.mixins.
|
|
59
|
+
return ((0, jsx_runtime_1.jsxs)(Button, __assign({}, rest, { variant: "contained", color: "primary", status: status, sx: __assign({ borderRadius: theme.mixins.customRadius.full, "&.Mui-disabled": __assign({}, disabledStyles[status]) }, sx), children: [status === BUTTON_STATUS.LOADING && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "inherit", size: 20 }), "Processing"] })), status === BUTTON_STATUS.ERROR && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Error" }), status === BUTTON_STATUS.ENABLED && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children }), status === BUTTON_STATUS.DISABLED && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children })] })));
|
|
60
60
|
};
|
|
61
61
|
Button.Primary.displayName = "Button.Primary";
|
|
62
62
|
Button.Secondary = function (props) {
|
|
63
63
|
var sx = props.sx, rest = __rest(props, ["sx"]);
|
|
64
64
|
var theme = (0, material_1.useTheme)();
|
|
65
|
-
return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "outlined", color: "secondary", sx: __assign({ borderRadius: theme.mixins.
|
|
65
|
+
return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "outlined", color: "secondary", sx: __assign({ borderRadius: theme.mixins.customRadius.full, borderColor: "currentColor" }, sx) })));
|
|
66
66
|
};
|
|
67
67
|
Button.Secondary.displayName = "Button.Secondary";
|
|
68
68
|
Button.Text = function (props) {
|
|
@@ -92,7 +92,7 @@ var CopyTextComponent = function (_a) {
|
|
|
92
92
|
inset: "-0.125rem",
|
|
93
93
|
backgroundColor: theme.palette.background.black64,
|
|
94
94
|
backdropFilter: "blur(12px)",
|
|
95
|
-
borderRadius: theme.mixins.
|
|
95
|
+
borderRadius: theme.mixins.customRadius.r12,
|
|
96
96
|
transition: "opacity 0.3s ease-in-out",
|
|
97
97
|
}, children: [iconSuccess || ((0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("copied_check"), sx: {
|
|
98
98
|
width: "1rem",
|
|
@@ -31,7 +31,7 @@ var Text_1 = __importDefault(require("../Text"));
|
|
|
31
31
|
function DialogContentLayout(props) {
|
|
32
32
|
var content = props.content, actions = props.actions, sx = props.sx, rest = __rest(props, ["content", "actions", "sx"]);
|
|
33
33
|
var theme = (0, material_1.useTheme)();
|
|
34
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: __assign(__assign(__assign(__assign({}, theme.mixins.column), { borderRadius: theme.mixins.
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: __assign(__assign(__assign(__assign({}, theme.mixins.column), { borderRadius: theme.mixins.customRadius.r12, backgroundColor: theme.palette.background.black, boxShadow: theme.shadows[1], minWidth: "12rem" }), theme.mixins.dialogContent), sx) }, rest, { children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
35
35
|
padding: theme.mixins.customPadding.p12,
|
|
36
36
|
}, children: content }), !!actions && (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
37
37
|
px: theme.mixins.customPadding.p12,
|
|
@@ -87,7 +87,7 @@ function Fees(props) {
|
|
|
87
87
|
return ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { sx: __assign({ "&.MuiAccordion-root": {
|
|
88
88
|
backgroundColor: "transparent",
|
|
89
89
|
margin: 0,
|
|
90
|
-
borderRadius: theme.mixins.
|
|
90
|
+
borderRadius: theme.mixins.customRadius.r12,
|
|
91
91
|
}, "&.MuiAccordion-root::before": {
|
|
92
92
|
display: "none",
|
|
93
93
|
}, "& .MuiAccordionSummary-root": {
|
|
@@ -52,7 +52,7 @@ var Formatter = function (_a) {
|
|
|
52
52
|
"& .MuiPaper-root": {
|
|
53
53
|
backdropFilter: "blur(10px)",
|
|
54
54
|
backgroundColor: "background.black64",
|
|
55
|
-
borderRadius: theme.mixins.
|
|
55
|
+
borderRadius: theme.mixins.customRadius.r12,
|
|
56
56
|
padding: "".concat(theme.mixins.customPadding.p8, " ").concat(theme.mixins.customPadding.p12),
|
|
57
57
|
color: "text.white",
|
|
58
58
|
fontSize: "1.2em",
|
|
@@ -21,7 +21,7 @@ var Text_1 = __importDefault(require("../Text"));
|
|
|
21
21
|
var FunctionItem = function (props) {
|
|
22
22
|
var theme = (0, material_1.useTheme)();
|
|
23
23
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.column), { alignItems: "center", gap: theme.mixins.gaps.g6 }), props.sx), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: props.icon, sx: {
|
|
24
|
-
borderRadius: theme.mixins.
|
|
24
|
+
borderRadius: theme.mixins.customRadius.full,
|
|
25
25
|
}, width: 44 }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
26
26
|
color: "text.white",
|
|
27
27
|
fontSize: theme.typography.fontSize13,
|
|
@@ -28,7 +28,7 @@ var react_1 = require("react");
|
|
|
28
28
|
var Input = (0, react_1.forwardRef)(function (props, inputRef) {
|
|
29
29
|
var inputRest = props.inputRest, leftPart = props.leftPart, rightPart = props.rightPart, sx = props.sx, inputSx = props.inputSx, rest = __rest(props, ["inputRest", "leftPart", "rightPart", "sx", "inputSx"]);
|
|
30
30
|
var theme = (0, material_1.useTheme)();
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: inputRef, sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, borderRadius: theme.mixins.
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: inputRef, sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, borderRadius: theme.mixins.customRadius.r12, padding: 0, backgroundColor: "background.white16", border: "1px solid ".concat(theme.palette.border.white24), backdropFilter: "blur(10px)" }), sx) }, rest, { children: [leftPart, (0, jsx_runtime_1.jsx)(material_1.TextField, __assign({}, inputRest, {
|
|
32
32
|
// variant="outlined"
|
|
33
33
|
sx: __assign({ backgroundColor: "transparent", border: "none", outline: "none", flex: 1, height: "fit-content", minHeight: "unset", "& .MuiInputBase-input": {
|
|
34
34
|
border: "none",
|
|
@@ -37,6 +37,6 @@ var NetworkSelection = function (props) {
|
|
|
37
37
|
var networkData = (0, react_1.useMemo)(function () { return (0, parsePropsData_1.default)(networkDataString); }, [networkDataString]);
|
|
38
38
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { sx: __assign(__assign({}, theme.mixins.row), { backgroundColor: props.active
|
|
39
39
|
? "background.secondary16"
|
|
40
|
-
: "background.white16", padding: "".concat(theme.mixins.customPadding.p16, " ").concat(theme.mixins.customPadding.p8), borderRadius: theme.mixins.
|
|
40
|
+
: "background.white16", padding: "".concat(theme.mixins.customPadding.p16, " ").concat(theme.mixins.customPadding.p8), borderRadius: theme.mixins.customRadius.r12, border: "1px solid", borderColor: props.active ? "border.secondary" : "border.white24", gap: theme.mixins.gaps.g8 }), onClick: function () { return onClick === null || onClick === void 0 ? void 0 : onClick(networkData); }, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: networkData === null || networkData === void 0 ? void 0 : networkData.icon, sx: { borderRadius: theme.mixins.customRadius.full }, width: 24 }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: "text.white", whiteSpace: "nowrap", textTransform: "capitalize" }), children: networkData === null || networkData === void 0 ? void 0 : networkData.name })] })));
|
|
41
41
|
};
|
|
42
42
|
exports.default = NetworkSelection;
|
|
@@ -318,14 +318,14 @@ var ReceiveFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
318
318
|
display: "flex",
|
|
319
319
|
flexDirection: "column",
|
|
320
320
|
gap: theme.mixins.gaps.g16,
|
|
321
|
-
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ width: "100%" }, theme.mixins.column), { gap: theme.mixins.gaps.g12, backgroundColor: theme.palette.background.black24, borderRadius: theme.mixins.
|
|
321
|
+
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ width: "100%" }, theme.mixins.column), { gap: theme.mixins.gaps.g12, backgroundColor: theme.palette.background.black24, borderRadius: theme.mixins.customRadius.r16, padding: theme.mixins.customPadding.p16, alignItems: "flex-start", backdropFilter: "blur(10px)" }), id: "share-receive-info", children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, color: "text.white", alignSelf: "center" }), children: (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { textAlign: "center" }), children: ["Receive", " ", (0, jsx_runtime_1.jsxs)("strong", { children: [!!amount && (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: amount }), " ", selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name] }), " ", selectedMethod === ReceiveMethods.RECEIVE_INTERNAL
|
|
322
322
|
? "Internally"
|
|
323
323
|
: "Externally"] }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
324
324
|
position: "relative",
|
|
325
325
|
width: "fit-content",
|
|
326
326
|
height: "fit-content",
|
|
327
327
|
alignSelf: "center",
|
|
328
|
-
borderRadius: theme.mixins.
|
|
328
|
+
borderRadius: theme.mixins.customRadius.r12,
|
|
329
329
|
overflow: "hidden",
|
|
330
330
|
backgroundColor: theme.palette.background.white,
|
|
331
331
|
backdropFilter: "blur(10px)",
|
|
@@ -333,7 +333,7 @@ var ReceiveFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
333
333
|
transform: "translateX(0.5rem)",
|
|
334
334
|
} }), onClick: handleBack, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.name }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("right_arrow"), width: 10 })] })] })), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, color: "text.white" }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: selectedMethod === ReceiveMethods.RECEIVE_INTERNAL
|
|
335
335
|
? "Internal address"
|
|
336
|
-
: "Address" }), selectedMethod === ReceiveMethods.RECEIVE_INTERNAL && ((0, jsx_runtime_1.jsx)(CustomTooltip_1.default, { trigger: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("tooltip"), width: 16 }), children: (0, jsx_runtime_1.jsx)(DialogContentLayout_1.default, { content: (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.mixins.warning), children: ["This address is used to receive token by internal transfer. You can not use it for blockchain transaction. If you want to receive token by blockchain, please select the", " ", (0, jsx_runtime_1.jsx)("strong", { children: "Receive External" }), " method instead."] }) }) }))] }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { wordBreak: "break-all" }), children: (0, jsx_runtime_1.jsx)(CopyTextComponent_1.default, { value: receiveAddress || "", children: receiveAddress }) })] }), !!warningMessage && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, backgroundColor: theme.palette.background.white16, borderRadius: theme.mixins.
|
|
336
|
+
: "Address" }), selectedMethod === ReceiveMethods.RECEIVE_INTERNAL && ((0, jsx_runtime_1.jsx)(CustomTooltip_1.default, { trigger: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("tooltip"), width: 16 }), children: (0, jsx_runtime_1.jsx)(DialogContentLayout_1.default, { content: (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.mixins.warning), children: ["This address is used to receive token by internal transfer. You can not use it for blockchain transaction. If you want to receive token by blockchain, please select the", " ", (0, jsx_runtime_1.jsx)("strong", { children: "Receive External" }), " method instead."] }) }) }))] }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { wordBreak: "break-all" }), children: (0, jsx_runtime_1.jsx)(CopyTextComponent_1.default, { value: receiveAddress || "", children: receiveAddress }) })] }), !!warningMessage && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, backgroundColor: theme.palette.background.white16, borderRadius: theme.mixins.customRadius.r12, padding: theme.mixins.customPadding.p8 }), children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: warningMessage }) }))] }), (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: amountDrawerRef, sx: {
|
|
337
337
|
width: "100%",
|
|
338
338
|
display: "flex",
|
|
339
339
|
justifyContent: "center",
|
|
@@ -31,7 +31,7 @@ var TokenItem = function (props) {
|
|
|
31
31
|
gap: theme.mixins.gaps.g12,
|
|
32
32
|
py: theme.mixins.customPadding.p8,
|
|
33
33
|
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, sx: {
|
|
34
|
-
borderRadius: theme.mixins.
|
|
34
|
+
borderRadius: theme.mixins.customRadius.full,
|
|
35
35
|
}, src: currency.link }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { flex: 1 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: currency.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: currency.full_name })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g1, justifyContent: "center" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: +((_a = tokenData.current_value) !== null && _a !== void 0 ? _a : 0) }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: 100 }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g1, textAlign: "right" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: 70000 }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: 3.72 }) })] })] }));
|
|
36
36
|
};
|
|
37
37
|
exports.default = TokenItem;
|
|
@@ -47,8 +47,8 @@ var TokenSelection = function (props) {
|
|
|
47
47
|
}, [balance, tokenData]);
|
|
48
48
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ onClick: function () { return onClick === null || onClick === void 0 ? void 0 : onClick(tokenData); }, sx: __assign({ backgroundColor: props.active
|
|
49
49
|
? "background.secondary16"
|
|
50
|
-
: "background.white16", border: "1px solid", borderColor: props.active ? "border.secondary" : "transparent", borderRadius: theme.mixins.
|
|
51
|
-
borderRadius: theme.mixins.
|
|
50
|
+
: "background.white16", border: "1px solid", borderColor: props.active ? "border.secondary" : "transparent", borderRadius: theme.mixins.customRadius.r16, padding: theme.mixins.customPadding.p12, display: "flex", alignItems: "center", cursor: "pointer" }, sx) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, src: tokenData === null || tokenData === void 0 ? void 0 : tokenData.icon, sx: {
|
|
51
|
+
borderRadius: theme.mixins.customRadius.full,
|
|
52
52
|
} }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.value, children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.valueDescription, children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.full_name })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { marginLeft: "auto", alignItems: "end" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.value, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balance }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.valueDescription, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balanceInUSD, start: "~ $" }) })] })] })));
|
|
53
53
|
};
|
|
54
54
|
exports.default = TokenSelection;
|
|
@@ -70,12 +70,17 @@ exports.initialRealtime = {
|
|
|
70
70
|
isConnected: false,
|
|
71
71
|
pushNotification: function () { },
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
74
|
+
function SlideTransition(props) {
|
|
74
75
|
return (0, jsx_runtime_1.jsx)(Slide_1.default, __assign({}, props, { direction: "down" }));
|
|
75
76
|
}
|
|
77
|
+
function GrowTransition(props) {
|
|
78
|
+
return (0, jsx_runtime_1.jsx)(material_1.Grow, __assign({}, props));
|
|
79
|
+
}
|
|
76
80
|
exports.RealtimeContext = react_1.default.createContext(exports.initialRealtime);
|
|
77
81
|
function RealtimeProvider(_a) {
|
|
78
82
|
var children = _a.children;
|
|
83
|
+
var theme = (0, material_1.useTheme)();
|
|
79
84
|
var masterWallet = (0, useWalletData_1.default)().masterWallet;
|
|
80
85
|
var _b = (0, react_1.useState)(exports.initialRealtime.isConnected), isConnected = _b[0], setIsConnected = _b[1];
|
|
81
86
|
var _c = (0, react_1.useState)(exports.initialRealtime.transaction), transaction = _c[0], setTransaction = _c[1];
|
|
@@ -116,9 +121,12 @@ function RealtimeProvider(_a) {
|
|
|
116
121
|
horizontal: (_e = (_d = notification === null || notification === void 0 ? void 0 : notification.anchorOrigin) === null || _d === void 0 ? void 0 : _d.horizontal) !== null && _e !== void 0 ? _e : "right",
|
|
117
122
|
}, onClose: function () {
|
|
118
123
|
closeNotification(notification.id);
|
|
119
|
-
}, slots: { transition: GrowTransition }, autoHideDuration: (_f = notification.duration) !== null && _f !== void 0 ? _f : 2000, children: (0, jsx_runtime_1.jsx)(material_1.Alert, { onClose: function () {
|
|
124
|
+
}, slots: { transition: GrowTransition }, autoHideDuration: (_f = notification.duration) !== null && _f !== void 0 ? _f : 2000, children: (0, jsx_runtime_1.jsx)(material_1.Alert, { icon: false, onClose: function () {
|
|
120
125
|
closeNotification(notification.id);
|
|
121
|
-
}, severity: notification.type,
|
|
126
|
+
}, severity: notification.type, sx: {
|
|
127
|
+
width: "fit-content",
|
|
128
|
+
borderRadius: theme.mixins.customRadius.r16,
|
|
129
|
+
}, children: notification.message }) }, notification.id));
|
|
122
130
|
}) })] }));
|
|
123
131
|
}
|
|
124
132
|
exports.default = RealtimeProvider;
|
package/dist/theme/mui/theme.js
CHANGED
|
@@ -113,7 +113,7 @@ var customMargin = {
|
|
|
113
113
|
m40: "2.5rem",
|
|
114
114
|
m48: "3rem",
|
|
115
115
|
};
|
|
116
|
-
var
|
|
116
|
+
var customRadius = {
|
|
117
117
|
full: "999px",
|
|
118
118
|
r12: "0.75rem",
|
|
119
119
|
r16: "1rem",
|
|
@@ -166,7 +166,7 @@ var theme = (0, styles_1.createTheme)({
|
|
|
166
166
|
pagePadding: pagePadding,
|
|
167
167
|
customPadding: customPadding,
|
|
168
168
|
customMargin: customMargin,
|
|
169
|
-
|
|
169
|
+
customRadius: customRadius,
|
|
170
170
|
gaps: gaps,
|
|
171
171
|
row: {
|
|
172
172
|
display: "flex",
|
|
@@ -243,7 +243,7 @@ var theme = (0, styles_1.createTheme)({
|
|
|
243
243
|
gap: gaps.g12,
|
|
244
244
|
padding: customPadding.p12,
|
|
245
245
|
backgroundColor: "background.white16",
|
|
246
|
-
borderRadius:
|
|
246
|
+
borderRadius: customRadius.r16,
|
|
247
247
|
},
|
|
248
248
|
listTitle: {
|
|
249
249
|
color: "text.white",
|
|
@@ -265,7 +265,7 @@ var theme = (0, styles_1.createTheme)({
|
|
|
265
265
|
minHeight: "unset",
|
|
266
266
|
minWidth: "unset",
|
|
267
267
|
width: "fit-content",
|
|
268
|
-
borderRadius:
|
|
268
|
+
borderRadius: customRadius.full,
|
|
269
269
|
lineHeight: typography.leading100,
|
|
270
270
|
},
|
|
271
271
|
dialogContent: {
|