@symply.io/basic-components 1.3.5 → 1.3.7-beta.1
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.
@@ -38,8 +38,8 @@ function HeaderButtons(props) {
|
|
38
38
|
return (_jsx(Grid, __assign({ item: true, style: { textAlign: "end" } }, { children: _jsx(IconButton, __assign({ onClick: onClick, color: color, title: title, size: isLessThanSm ? "small" : size, disabled: disabled }, { children: icon })) }), title));
|
39
39
|
}
|
40
40
|
case HeaderButtonCategory.MenuButton: {
|
41
|
-
var btns = button.buttons, buttonText = button.buttonText, disabled = button.disabled, variant = button.variant, size = button.size;
|
42
|
-
return (_jsx(Grid, __assign({ item: true, xs: isLessThanSm ? 12 : undefined, style: { textAlign: "end" } }, { children: _jsx(MenuButtonGroup, { size: isLessThanSm ? "small" : size, variant: variant, buttons: btns, buttonText: buttonText, disabled: disabled }) }), buttonText));
|
41
|
+
var btns = button.buttons, buttonText = button.buttonText, disabled = button.disabled, variant = button.variant, size = button.size, color = button.color;
|
42
|
+
return (_jsx(Grid, __assign({ item: true, xs: isLessThanSm ? 12 : undefined, style: { textAlign: "end" } }, { children: _jsx(MenuButtonGroup, { size: isLessThanSm ? "small" : size, variant: variant, buttons: btns, color: color, buttonText: buttonText, disabled: disabled, primaryColor: primaryColor, secondaryColor: secondaryColor }) }), buttonText));
|
43
43
|
}
|
44
44
|
default:
|
45
45
|
return _jsx(_Fragment, {});
|
package/MenuButtonGroup/index.js
CHANGED
@@ -75,7 +75,7 @@ function MenuButtonGroup(props) {
|
|
75
75
|
var onClose = function () {
|
76
76
|
setAnchorEl(null);
|
77
77
|
};
|
78
|
-
return (_jsxs(ThemeProvider, __assign({ theme: theme }, { children: [_jsx(Button, __assign({ "aria-
|
78
|
+
return (_jsxs(ThemeProvider, __assign({ theme: theme }, { children: [_jsx(Button, __assign({ "aria-haspopup": "true", variant: variant, color: color, onClick: onClick, fullWidth: true, size: size, endIcon: _jsx(ArrowDropDownIcon, { fontSize: "small" }), disabled: disabled }, { children: buttonText })), _jsx(Menu, __assign({ id: "button-menu", anchorEl: anchorEl, keepMounted: true, elevation: 2, anchorOrigin: {
|
79
79
|
vertical: "bottom",
|
80
80
|
horizontal: "center"
|
81
81
|
}, transformOrigin: {
|
package/ToastPrompt/Logics.js
CHANGED
@@ -10,14 +10,14 @@ var __assign = (this && this.__assign) || function () {
|
|
10
10
|
return __assign.apply(this, arguments);
|
11
11
|
};
|
12
12
|
import { useState, cloneElement, forwardRef, useImperativeHandle } from "react";
|
13
|
-
var ERROR_MESSAGE = "
|
13
|
+
var ERROR_MESSAGE = "Internal Server Error";
|
14
14
|
var Logics = forwardRef(function (props, ref) {
|
15
15
|
var children = props.children;
|
16
16
|
var _a = useState({
|
17
17
|
open: false,
|
18
18
|
message: "Saved",
|
19
19
|
variant: "success",
|
20
|
-
timeout: 3500
|
20
|
+
timeout: 3500
|
21
21
|
}), promptProps = _a[0], setPromptProps = _a[1];
|
22
22
|
function hide(_, reason) {
|
23
23
|
if (reason === "clickaway") {
|
@@ -30,7 +30,7 @@ var Logics = forwardRef(function (props, ref) {
|
|
30
30
|
setPromptProps(__assign(__assign({}, promptProps), { open: true, variant: type, message: message === 400 ? ERROR_MESSAGE : message, timeout: timeout }));
|
31
31
|
}
|
32
32
|
useImperativeHandle(ref, function () { return ({
|
33
|
-
show: show
|
33
|
+
show: show
|
34
34
|
}); });
|
35
35
|
return cloneElement(children, __assign(__assign({}, promptProps), { onClose: hide }));
|
36
36
|
});
|