react-dialogger 1.1.21 → 1.1.22
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/components/CircularProgress.d.ts +1 -2
- package/components/CircularProgress.js +5 -8
- package/components/DialogActionBase.d.ts +1 -2
- package/components/DialogActionBase.js +10 -11
- package/components/DialogBase.d.ts +3 -3
- package/components/DialogBase.js +56 -76
- package/components/Futures/DialogCloseAction.d.ts +1 -2
- package/components/Futures/DialogCloseAction.js +4 -28
- package/components/Futures/DialogFullscreenAction.d.ts +1 -2
- package/components/Futures/DialogFullscreenAction.js +13 -36
- package/components/Futures/DialogHeaderActionsWrapper.d.ts +1 -1
- package/components/Futures/DialogHeaderActionsWrapper.js +2 -5
- package/components/Futures/DialogInfoAction.d.ts +1 -2
- package/components/Futures/DialogInfoAction.js +4 -15
- package/components/Futures/DialogProcessing.d.ts +1 -2
- package/components/Futures/DialogProcessing.js +2 -25
- package/components/RippleButton.js +3 -4
- package/components/icons/CloseIcon.d.ts +1 -2
- package/components/icons/CloseIcon.js +2 -7
- package/components/icons/FullscreenExitIcon.d.ts +1 -2
- package/components/icons/FullscreenExitIcon.js +2 -7
- package/components/icons/FullscreenIcon.d.ts +1 -2
- package/components/icons/FullscreenIcon.js +2 -7
- package/components/icons/InfoIcon.d.ts +1 -2
- package/components/icons/InfoIcon.js +2 -7
- package/components/icons/ResizeIcon.d.ts +1 -2
- package/components/icons/ResizeIcon.js +3 -8
- package/models/DialogAction.d.ts +1 -2
- package/models/DialogAction.js +2 -25
- package/package.json +2 -2
- package/components/Dependencies/Body.d.ts +0 -8
- package/components/Dependencies/Body.js +0 -40
- package/components/Dependencies/DialogBody.d.ts +0 -8
- package/components/Dependencies/DialogBody.js +0 -40
- package/types/FormikProps.d.ts +0 -302
@@ -1,34 +1,11 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
4
|
};
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
6
|
exports.DialogProcessing = void 0;
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
30
8
|
var CircularProgress_1 = __importDefault(require("../CircularProgress"));
|
31
|
-
var React = __importStar(require("react"));
|
32
9
|
var react_1 = require("react");
|
33
10
|
var DialogBase_1 = require("../DialogBase");
|
34
11
|
var DialogProcessing = function () {
|
@@ -36,6 +13,6 @@ var DialogProcessing = function () {
|
|
36
13
|
var dialogHeaderContext = (0, react_1.useContext)(DialogBase_1.DialogHeaderFooterContext);
|
37
14
|
var _dialog = dialogHeaderContext.dialog;
|
38
15
|
console.log('_dialog_isInProcess', _dialog.isInProcess());
|
39
|
-
return
|
16
|
+
return (0, jsx_runtime_1.jsx)(CircularProgress_1.default, { size: (_a = _dialog.dialogOptions.progress.size) !== null && _a !== void 0 ? _a : 20, inProcess: _dialog.isInProcess(), color: (_c = (_b = _dialog.dialogOptions.progress) === null || _b === void 0 ? void 0 : _b.color) !== null && _c !== void 0 ? _c : '#399aec' });
|
40
17
|
};
|
41
18
|
exports.DialogProcessing = DialogProcessing;
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
34
|
return result;
|
35
35
|
};
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
37
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
37
38
|
var React = __importStar(require("react"));
|
38
39
|
var react_1 = require("react");
|
39
40
|
exports.default = React.forwardRef(function (_a, ref) {
|
@@ -66,7 +67,7 @@ exports.default = React.forwardRef(function (_a, ref) {
|
|
66
67
|
rippleEffect: rippleEffect
|
67
68
|
}); });
|
68
69
|
console.log('Ripple_button_style', style);
|
69
|
-
return (
|
70
|
+
return ((0, jsx_runtime_1.jsxs)("button", {
|
70
71
|
// ref={buttonRef}
|
71
72
|
ref: ref, disabled: disabled, className: "ripple-button ripple-button-".concat(variant, " ripple-button-").concat(color, " ").concat(disabled ? 'ripple-button-disabled' : ''), onClick: function (e) {
|
72
73
|
//@ts-ignore
|
@@ -75,7 +76,5 @@ exports.default = React.forwardRef(function (_a, ref) {
|
|
75
76
|
setTimeout(function () {
|
76
77
|
onClick && onClick(e);
|
77
78
|
}, 200);
|
78
|
-
}, style: __assign(__assign(__assign({}, baseStyle), style), { fontFamily: fontFamily }) },
|
79
|
-
isRippling && React.createElement("span", { className: "ripple", style: { left: coords.x, top: coords.y } }),
|
80
|
-
React.createElement("span", { className: "content" }, children(ref.current))));
|
79
|
+
}, style: __assign(__assign(__assign({}, baseStyle), style), { fontFamily: fontFamily }), children: [isRippling && (0, jsx_runtime_1.jsx)("span", { className: "ripple", style: { left: coords.x, top: coords.y } }), (0, jsx_runtime_1.jsx)("span", { className: "content", children: children(ref.current) })] }));
|
81
80
|
});
|
@@ -10,14 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
10
10
|
};
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
-
};
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
var
|
14
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
18
15
|
exports.default = (function (_a) {
|
19
16
|
var size = _a.size, color = _a.color;
|
20
|
-
return
|
21
|
-
react_1.default.createElement("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "CloseIcon" },
|
22
|
-
react_1.default.createElement("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })));
|
17
|
+
return (0, jsx_runtime_1.jsx)("div", { className: 'close-icon icon-base', style: __assign({ fill: color }, size ? { width: size } : null), children: (0, jsx_runtime_1.jsx)("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "CloseIcon", children: (0, jsx_runtime_1.jsx)("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }) });
|
23
18
|
});
|
@@ -10,14 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
10
10
|
};
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
-
};
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
var
|
14
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
18
15
|
exports.default = (function (_a) {
|
19
16
|
var size = _a.size, color = _a.color;
|
20
|
-
return
|
21
|
-
react_1.default.createElement("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "FullscreenExitIcon" },
|
22
|
-
react_1.default.createElement("path", { d: "M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z" })));
|
17
|
+
return (0, jsx_runtime_1.jsx)("div", { className: 'fullscreen-exit-icon icon-base', style: __assign({ fill: color }, size ? { width: size } : null), children: (0, jsx_runtime_1.jsx)("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "FullscreenExitIcon", children: (0, jsx_runtime_1.jsx)("path", { d: "M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z" }) }) });
|
23
18
|
});
|
@@ -10,14 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
10
10
|
};
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
-
};
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
var
|
14
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
18
15
|
exports.default = (function (_a) {
|
19
16
|
var size = _a.size, color = _a.color;
|
20
|
-
return
|
21
|
-
react_1.default.createElement("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "FullscreenIcon", color: color },
|
22
|
-
react_1.default.createElement("path", { d: "M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z" })));
|
17
|
+
return (0, jsx_runtime_1.jsx)("div", { className: 'fullscreen-icon icon-base', style: __assign({ fill: color }, size ? { width: size } : null), children: (0, jsx_runtime_1.jsx)("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "FullscreenIcon", color: color, children: (0, jsx_runtime_1.jsx)("path", { d: "M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z" }) }) });
|
23
18
|
});
|
@@ -10,14 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
10
10
|
};
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
-
};
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
var
|
14
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
18
15
|
exports.default = (function (_a) {
|
19
16
|
var size = _a.size, color = _a.color;
|
20
|
-
return
|
21
|
-
react_1.default.createElement("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "InfoIcon" },
|
22
|
-
react_1.default.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" })));
|
17
|
+
return (0, jsx_runtime_1.jsx)("div", { className: 'info-icon icon-base', style: __assign({ fill: color }, size ? { width: size } : null), children: (0, jsx_runtime_1.jsx)("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "InfoIcon", children: (0, jsx_runtime_1.jsx)("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }) }) });
|
23
18
|
});
|
@@ -1,14 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
var
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
7
4
|
exports.default = (function (_a) {
|
8
5
|
var size = _a.size, color = _a.color;
|
9
|
-
return
|
6
|
+
return (0, jsx_runtime_1.jsx)("div", { className: 'resizable-handle-icon icon-base', style: {
|
10
7
|
fill: color
|
11
|
-
} }
|
12
|
-
react_1.default.createElement("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "ArrowBackIosNewIcon" },
|
13
|
-
react_1.default.createElement("path", { d: "M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z" })));
|
8
|
+
}, children: (0, jsx_runtime_1.jsx)("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "ArrowBackIosNewIcon", children: (0, jsx_runtime_1.jsx)("path", { d: "M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z" }) }) });
|
14
9
|
});
|
package/models/DialogAction.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { TDialogStateListenerForActionCallbackType, DialogActionOptionsType, TBVariant, TBColor, ActionProps, DialogActionType } from "../types/DialogActionTypes";
|
2
2
|
import DialogActionBase from "../components/DialogActionBase";
|
3
|
-
|
4
|
-
declare const ActionProgress: () => React.JSX.Element;
|
3
|
+
declare const ActionProgress: () => import("react/jsx-runtime").JSX.Element;
|
5
4
|
export { ActionProgress };
|
6
5
|
declare class DialogAction extends DialogActionBase {
|
7
6
|
constructor(name: string, options?: DialogActionOptionsType);
|
package/models/DialogAction.js
CHANGED
@@ -25,39 +25,16 @@ var __assign = (this && this.__assign) || function () {
|
|
25
25
|
};
|
26
26
|
return __assign.apply(this, arguments);
|
27
27
|
};
|
28
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
29
|
-
if (k2 === undefined) k2 = k;
|
30
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
31
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
32
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
33
|
-
}
|
34
|
-
Object.defineProperty(o, k2, desc);
|
35
|
-
}) : (function(o, m, k, k2) {
|
36
|
-
if (k2 === undefined) k2 = k;
|
37
|
-
o[k2] = m[k];
|
38
|
-
}));
|
39
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
40
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
41
|
-
}) : function(o, v) {
|
42
|
-
o["default"] = v;
|
43
|
-
});
|
44
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
45
|
-
if (mod && mod.__esModule) return mod;
|
46
|
-
var result = {};
|
47
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
48
|
-
__setModuleDefault(result, mod);
|
49
|
-
return result;
|
50
|
-
};
|
51
28
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
52
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
53
30
|
};
|
54
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
55
32
|
exports.DialogAction = exports.ActionProgress = void 0;
|
33
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
56
34
|
var DialogActionBase_1 = __importDefault(require("../components/DialogActionBase"));
|
57
35
|
var CircularProgress_1 = __importDefault(require("../components/CircularProgress"));
|
58
|
-
var React = __importStar(require("react"));
|
59
36
|
var ActionProgress = function () {
|
60
|
-
return
|
37
|
+
return (0, jsx_runtime_1.jsx)(CircularProgress_1.default, { size: 20, inProcess: { inProcess: true } });
|
61
38
|
};
|
62
39
|
exports.ActionProgress = ActionProgress;
|
63
40
|
var DialogAction = /** @class */ (function (_super) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-dialogger",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.22",
|
4
4
|
"description": "This package is a continuation of the react-araci package. Due to an error, react-araci was removed, and it has been decided to continue under the new package name react-dialogger",
|
5
5
|
"main": "index.js",
|
6
6
|
"author": "Sueleyman Topaloglu",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
}
|
22
22
|
],
|
23
23
|
"scripts": {
|
24
|
-
"pb": "
|
24
|
+
"pb": "npm version patch && npm publish && cp ./package.json ../src/dist.package.json"
|
25
25
|
},
|
26
26
|
"keywords": [
|
27
27
|
"react",
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { TDialogCallbackNodeFn } from "../../types/DialogTypes";
|
2
|
-
import * as React from "react";
|
3
|
-
import { IDialogDef } from "react-dialogger/types";
|
4
|
-
declare const Body: ({ body, apiRef }: {
|
5
|
-
body: TDialogCallbackNodeFn;
|
6
|
-
apiRef?: IDialogDef;
|
7
|
-
}) => React.JSX.Element;
|
8
|
-
export default Body;
|
@@ -1,40 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
var React = __importStar(require("react"));
|
27
|
-
var Body = function (_a) {
|
28
|
-
var body = _a.body, apiRef = _a.apiRef;
|
29
|
-
if (body instanceof Function) {
|
30
|
-
return React.createElement("div", { ref: apiRef._dialogBodyRef, className: 'dialog-body', style: { height: '100%' } },
|
31
|
-
apiRef.Placeholder(apiRef._holder),
|
32
|
-
body(apiRef));
|
33
|
-
}
|
34
|
-
return React.createElement("div", { style: { height: '100%', padding: 10 } }, apiRef._holder ?
|
35
|
-
apiRef.Placeholder(apiRef._holder)
|
36
|
-
:
|
37
|
-
//@ts-ignore
|
38
|
-
body);
|
39
|
-
};
|
40
|
-
exports.default = Body;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { TDialogCallbackNodeFn } from "../../types/DialogTypes";
|
2
|
-
import * as React from "react";
|
3
|
-
import DialogBase from "../DialogBase";
|
4
|
-
declare const DialogBody: ({ body, apiRef }: {
|
5
|
-
body: TDialogCallbackNodeFn;
|
6
|
-
apiRef?: DialogBase;
|
7
|
-
}) => React.JSX.Element;
|
8
|
-
export default DialogBody;
|
@@ -1,40 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
var React = __importStar(require("react"));
|
27
|
-
var DialogBody = function (_a) {
|
28
|
-
var body = _a.body, apiRef = _a.apiRef;
|
29
|
-
if (body instanceof Function) {
|
30
|
-
return React.createElement("div", { ref: apiRef.dialogBodyRef, className: 'dialog-body', style: { height: '100%' } },
|
31
|
-
apiRef.Placeholder(apiRef.holder),
|
32
|
-
body(apiRef));
|
33
|
-
}
|
34
|
-
return React.createElement("div", { style: { height: '100%', padding: 10 } }, apiRef.holder ?
|
35
|
-
apiRef.Placeholder(apiRef.holder)
|
36
|
-
:
|
37
|
-
//@ts-ignore
|
38
|
-
body);
|
39
|
-
};
|
40
|
-
exports.default = DialogBody;
|