@symply.io/basic-components 1.3.7 → 1.3.8
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/Copyright/index.js
CHANGED
@@ -17,9 +17,7 @@ import useCustomTheme from "../useCustomTheme";
|
|
17
17
|
function Copyright(props) {
|
18
18
|
var primaryColor = props.primaryColor, secondaryColor = props.secondaryColor;
|
19
19
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
20
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Typography, __assign({ sx: { fontSize: 16, fontWeight: 400 }, color: "textSecondary", align: "center" }, { children: ["Copyright © ", _jsx(Link, __assign({ color: "inherit", href: "https://symply.io/" }, { children: "Symply Software Inc" })), "\u00A0", new Date().getFullYear()
|
21
|
-
? "2020-".concat(new Date().getFullYear())
|
22
|
-
: new Date().getFullYear(), "."] })) })));
|
20
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Typography, __assign({ sx: { fontSize: 16, fontWeight: 400 }, color: "textSecondary", align: "center" }, { children: ["Copyright © ", _jsx(Link, __assign({ color: "inherit", href: "https://symply.io/" }, { children: "Symply Software Inc" })), "\u00A0", new Date().getFullYear(), "."] })) })));
|
23
21
|
}
|
24
22
|
export default Copyright;
|
25
23
|
export * from "./types";
|
@@ -34,20 +34,20 @@ import { green, amber, red, blue } from "@mui/material/colors";
|
|
34
34
|
import useCustomTheme from "../useCustomTheme";
|
35
35
|
var ToastPrompt = function (props) {
|
36
36
|
var _a;
|
37
|
-
var _b = props.open, open = _b === void 0 ? false : _b, _c = props.vertical, vertical = _c === void 0 ? "
|
37
|
+
var _b = props.open, open = _b === void 0 ? false : _b, _c = props.vertical, vertical = _c === void 0 ? "bottom" : _c, _d = props.horizontal, horizontal = _d === void 0 ? "left" : _d, _e = props.timeout, timeout = _e === void 0 ? 3000 : _e, onClose = props.onClose, _f = props.transitionDirection, transitionDirection = _f === void 0 ? "up" : _f, _g = props.message, message = _g === void 0 ? "Unknown message" : _g, _h = props.icon, icon = _h === void 0 ? _jsx(_Fragment, {}) : _h, _j = props.variant, variant = _j === void 0 ? "info" : _j, other = __rest(props, ["open", "vertical", "horizontal", "timeout", "onClose", "transitionDirection", "message", "icon", "variant"]);
|
38
38
|
var theme = useCustomTheme();
|
39
39
|
var styles = {
|
40
40
|
success: {
|
41
|
-
backgroundColor: green[
|
41
|
+
backgroundColor: green[500]
|
42
42
|
},
|
43
43
|
error: {
|
44
|
-
backgroundColor: red[
|
44
|
+
backgroundColor: red[400]
|
45
45
|
},
|
46
46
|
info: {
|
47
47
|
backgroundColor: blue[600]
|
48
48
|
},
|
49
49
|
warning: {
|
50
|
-
backgroundColor: amber[
|
50
|
+
backgroundColor: amber["A700"]
|
51
51
|
}
|
52
52
|
};
|
53
53
|
var Transition = function (args) {
|