@compill/admin 1.0.55 → 1.0.56
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/index.cjs.js
CHANGED
@@ -1442,12 +1442,13 @@ function TableContainer(_a) {
|
|
1442
1442
|
|
1443
1443
|
function TableCreateButton(_a) {
|
1444
1444
|
var {
|
1445
|
+
icon,
|
1445
1446
|
children
|
1446
1447
|
} = _a,
|
1447
|
-
props = __rest$1(_a, ["children"]);
|
1448
|
+
props = __rest$1(_a, ["icon", "children"]);
|
1448
1449
|
return jsxRuntime.jsxs(admin.ButtonBarDialogButton, Object.assign({}, props, {
|
1449
1450
|
children: [jsxRuntime.jsx(ui.Icon, {
|
1450
|
-
path: mdiPlusThick
|
1451
|
+
path: icon !== null && icon !== void 0 ? icon : mdiPlusThick
|
1451
1452
|
}), children]
|
1452
1453
|
}));
|
1453
1454
|
}
|
@@ -2678,6 +2679,7 @@ function TableButtonBar({
|
|
2678
2679
|
}), buttonBar && buttonBar.map((button, index) => jsxRuntime.jsxs(React__default["default"].Fragment, {
|
2679
2680
|
children: [button.type === "create" && editView && jsxRuntime.jsx(TableCreateButton, {
|
2680
2681
|
buildDialog: createDialogFn(button.data),
|
2682
|
+
icon: button.icon,
|
2681
2683
|
children: button.label
|
2682
2684
|
}), button.type === "invalidate" && jsxRuntime.jsx(InvalidateButton, {
|
2683
2685
|
pathOrPermalink: button.pathOrPermalink
|
package/index.esm.js
CHANGED
@@ -1433,12 +1433,13 @@ function TableContainer(_a) {
|
|
1433
1433
|
|
1434
1434
|
function TableCreateButton(_a) {
|
1435
1435
|
var {
|
1436
|
+
icon,
|
1436
1437
|
children
|
1437
1438
|
} = _a,
|
1438
|
-
props = __rest$1(_a, ["children"]);
|
1439
|
+
props = __rest$1(_a, ["icon", "children"]);
|
1439
1440
|
return jsxs(ButtonBarDialogButton$1, Object.assign({}, props, {
|
1440
1441
|
children: [jsx(Icon, {
|
1441
|
-
path: mdiPlusThick
|
1442
|
+
path: icon !== null && icon !== void 0 ? icon : mdiPlusThick
|
1442
1443
|
}), children]
|
1443
1444
|
}));
|
1444
1445
|
}
|
@@ -2669,6 +2670,7 @@ function TableButtonBar({
|
|
2669
2670
|
}), buttonBar && buttonBar.map((button, index) => jsxs(React.Fragment, {
|
2670
2671
|
children: [button.type === "create" && editView && jsx(TableCreateButton, {
|
2671
2672
|
buildDialog: createDialogFn(button.data),
|
2673
|
+
icon: button.icon,
|
2672
2674
|
children: button.label
|
2673
2675
|
}), button.type === "invalidate" && jsx(InvalidateButton, {
|
2674
2676
|
pathOrPermalink: button.pathOrPermalink
|
package/package.json
CHANGED
@@ -1,3 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { DialogButtonProps } from "../buttons/DialogButton";
|
3
|
-
export declare function TableCreateButton({ children, ...props }:
|
3
|
+
export declare function TableCreateButton({ icon, children, ...props }: {
|
4
|
+
icon?: string;
|
5
|
+
} & DialogButtonProps): JSX.Element;
|