@symply.io/basic-components 1.6.4-alpha.1 → 1.6.5-alpha.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.
- package/MenuButtonGroup/index.js +2 -4
- package/README.md +1 -0
- package/package.json +1 -1
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-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,
|
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, elevation: 2, anchorOrigin: {
|
79
79
|
vertical: "bottom",
|
80
80
|
horizontal: "center"
|
81
81
|
}, transformOrigin: {
|
@@ -92,9 +92,7 @@ function MenuButtonGroup(props) {
|
|
92
92
|
case 1:
|
93
93
|
_a.sent();
|
94
94
|
_a.label = 2;
|
95
|
-
case 2:
|
96
|
-
onClose();
|
97
|
-
return [2];
|
95
|
+
case 2: return [2];
|
98
96
|
}
|
99
97
|
});
|
100
98
|
}); } }), buttonText));
|
package/README.md
CHANGED
@@ -376,6 +376,7 @@ import DataTable, { useDataTable } from '@symply.io/basic-components/DataTable';
|
|
376
376
|
| footers | Array\<TableFooterCellProps> | [] | false | The cells for the footer. (from the hook) |
|
377
377
|
| headers | Array\<TableHeaderCellProps\> | | true | The cells for the header. (from the hook) |
|
378
378
|
| noDataText | string | 'No Data!' | false | The text when no data rendered. |
|
379
|
+
| onContextMenu | func | | false | The function for row right-clicking.<br />**Signature:**<br/>`function(event: MouseEvent, row: RowProps) => unknown` |
|
379
380
|
| onCustomizeRowBgColor | func | | false | The function for customizing the row background color.<br />**Signature:**<br/>`function(props: {row: RowProps, columns: Array\<ColumnProps\>}) => {normal?: HexColor;<br/> hover?: HexColor;<br/>}` |
|
380
381
|
| onRowClick | func | | false | The function for row clicking.<br />**Signature:**<br/>`function(row: RowProps) => unknown` |
|
381
382
|
| rows | Array<RowProps\> | | true | The rows for the table. (from the hook) |
|