@m4l/components 0.1.26 → 0.1.28
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/assets/Logo/index.228dcb5a.js +42 -35
- package/commonjs.565e6834.js +5 -5
- package/components/CommonActions/components/ActionCancel/index.e498eeb2.js +17 -0
- package/components/CommonActions/components/ActionFormCancel/index.4ff0ad73.js +64 -0
- package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +28 -22
- package/components/CommonActions/components/ActionIntro/index.60ef7bd7.js +18 -0
- package/components/CommonActions/components/Actions/index.0645e30f.js +867 -0
- package/components/DataGrid/index.76d8fd25.js +1075 -0
- package/components/DynamicFilter/index.342ba5fe.js +1577 -0
- package/components/ErrorLabel/index.c8615f16.js +13 -12
- package/components/Icon/index.619c31c4.js +96 -0
- package/components/Icon/types.d.ts +2 -1
- package/components/Image/index.93d5f37f.js +190 -0
- package/components/Loadable/index.f5518558.js +8 -8
- package/components/ModalDialog/index.9ea10764.js +184 -0
- package/components/NoItemSelected/{index.9609a7f7.js → index.46d2f632.js} +52 -41
- package/components/ObjectLogs/index.f941fb79.js +288 -0
- package/components/Page/index.4237c241.js +22 -20
- package/components/PaperForm/index.ec9cb8c9.js +112 -0
- package/components/Period/index.2941fbda.js +249 -0
- package/components/PropertyValue/index.dfcfe1ba.js +147 -0
- package/components/PropertyValue/styles.d.ts +2 -1
- package/components/PropertyValue/types.d.ts +3 -3
- package/components/Resizeable/index.45995d2b.js +19 -19
- package/components/ScrollBar/index.39eeb2de.js +26 -21
- package/components/ScrollToTop/index.e06f98f6.js +8 -7
- package/components/SplitLayout/index.4032673d.js +35 -33
- package/components/animate/LoadingScreen/index.1d0c4307.js +33 -33
- package/components/animate/MotionContainer/index.8d9f9d80.js +25 -22
- package/components/animate/MotionLazyContainer/index.572dd012.js +10 -10
- package/components/animate/features.0fbf41e1.js +3 -3
- package/components/animate/variants/bounce.784aaaaa.js +16 -13
- package/components/animate/variants/container.11f82b76.js +8 -6
- package/components/animate/variants/fade.b561c0fc.js +32 -28
- package/components/animate/variants/transition.bd46b9ce.js +17 -12
- package/components/formatters/BooleanFormatter/index.8da35c9c.js +55 -0
- package/components/formatters/DateFormatter/index.1b9baacc.js +69 -0
- package/components/formatters/index.689a8086.js +119 -0
- package/components/hook-form/RHFAutocomplete/index.59a68f9f.js +224 -0
- package/components/hook-form/RHFAutocompleteAsync/index.c3083062.js +87 -0
- package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +49 -39
- package/components/hook-form/RHFDateTime/index.9231a7c7.js +69 -56
- package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +23 -23
- package/components/hook-form/RHFPeriod/index.64a228d5.js +55 -0
- package/components/hook-form/RHFRadioGroup/index.b3335e13.js +29 -29
- package/components/hook-form/RHFSelect/index.b6ca8bb2.js +24 -24
- package/components/hook-form/RHFTextField/index.f9aaaa90.js +146 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/index.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/styles.d.ts +4 -3
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/index.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/subcomponents/Skeleton/styles.d.ts +0 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/{components → subcomponents}/UploadImage/types.d.ts +0 -0
- package/components/hook-form/RHFUpload/index.d5cc7c13.js +285 -0
- package/components/mui_extended/Accordion/index.a02ac6ae.js +107 -0
- package/components/mui_extended/Avatar/index.fe06afd7.js +51 -0
- package/components/mui_extended/BoxIcon/index.e638ecc8.js +10 -10
- package/components/mui_extended/Breadcrumbs/index.5e37d903.js +49 -44
- package/components/mui_extended/Button/index.53b56958.js +178 -0
- package/components/mui_extended/CircularProgress/index.ad569afd.js +8 -6
- package/components/mui_extended/IconButton/index.a321e5cb.js +120 -0
- package/components/mui_extended/IconButton/index.d.ts +1 -1
- package/components/mui_extended/LinkWithRoute/index.16436ab8.js +25 -21
- package/components/mui_extended/Pager/index.c0865b70.js +141 -0
- package/components/mui_extended/Popover/index.705275a4.js +278 -0
- package/components/mui_extended/Tab/index.e0653a0a.js +25 -21
- package/components/mui_extended/Typography/index.e5494696.js +25 -21
- package/contexts/ModalContext/index.b92fa565.js +153 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/index.d.ts +0 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/styles.d.ts +0 -0
- package/contexts/ModalContext/{components → subcomponents}/ContentConfirm/types.d.ts +0 -0
- package/contexts/RHFormContext/index.b142190a.js +63 -0
- package/hooks/useFormAddEdit/index.d4845f1a.js +40 -22
- package/hooks/useModal/index.5fee01a3.js +11 -0
- package/index.js +153 -153
- package/package.json +2 -1
- package/react-data-grid.d46d625e.js +2206 -1663
- package/react-draggable.20e95c61.js +800 -553
- package/react-json-view.f56a7f8e.js +2344 -2340
- package/react-resizable.5277deaf.js +470 -298
- package/react-splitter-layout.7810ac1b.js +130 -128
- package/utils/index.214d9542.js +500 -354
- package/components/CommonActions/components/ActionCancel/index.6736b782.js +0 -17
- package/components/CommonActions/components/ActionFormCancel/index.281ee166.js +0 -49
- package/components/CommonActions/components/ActionIntro/index.4665a611.js +0 -18
- package/components/CommonActions/components/Actions/index.cd7b2671.js +0 -742
- package/components/DataGrid/index.2caf6231.js +0 -894
- package/components/DynamicFilter/index.f2377369.js +0 -1157
- package/components/Icon/index.f569765b.js +0 -82
- package/components/Image/index.c9da2d5a.js +0 -152
- package/components/ModalDialog/index.bee344a5.js +0 -168
- package/components/ObjectLogs/index.6b6f95e6.js +0 -266
- package/components/PaperForm/index.3f8c7ef2.js +0 -105
- package/components/Period/index.a112ce37.js +0 -175
- package/components/PropertyValue/index.ab3dd7e9.js +0 -116
- package/components/contexts/RHFormContext/index.33dba822.js +0 -56
- package/components/formatters/BooleanFormatter/index.3ec56305.js +0 -42
- package/components/formatters/DateFormatter/index.08d8823b.js +0 -57
- package/components/formatters/index.6959c2de.js +0 -106
- package/components/hook-form/RHFAutocomplete/index.5eee9d7c.js +0 -174
- package/components/hook-form/RHFAutocompleteAsync/index.757b5080.js +0 -65
- package/components/hook-form/RHFPeriod/index.979d0898.js +0 -51
- package/components/hook-form/RHFTextField/index.ba2a8f67.js +0 -129
- package/components/hook-form/RHFUpload/index.6347159a.js +0 -258
- package/components/mui_extended/Accordion/index.49f5df8e.js +0 -103
- package/components/mui_extended/Avatar/index.dadb0528.js +0 -37
- package/components/mui_extended/Button/index.52d18aea.js +0 -144
- package/components/mui_extended/IconButton/index.4b5ce8b5.js +0 -103
- package/components/mui_extended/Pager/index.951b6975.js +0 -126
- package/components/mui_extended/Popover/index.4da8587a.js +0 -252
- package/contexts/ModalContext/index.5388dfd5.js +0 -136
- package/hooks/useModal/index.3b1ff084.js +0 -11
- package/node_modules.168cb897.js +0 -55
|
@@ -1,371 +1,543 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import React$2 from "react";
|
|
2
|
+
import { c as cjs } from "./react-draggable.20e95c61.js";
|
|
3
|
+
import { u as utils } from "./utils/index.214d9542.js";
|
|
4
|
+
import require$$1 from "prop-types";
|
|
5
|
+
var reactResizable = { exports: {} };
|
|
6
|
+
var Resizable$1 = {};
|
|
7
|
+
var propTypes = {};
|
|
8
|
+
propTypes.__esModule = true;
|
|
9
|
+
propTypes.resizableProps = void 0;
|
|
10
|
+
var _propTypes$2 = _interopRequireDefault$1(require$$1);
|
|
11
|
+
function _interopRequireDefault$1(obj) {
|
|
12
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
11
13
|
}
|
|
12
|
-
var
|
|
13
|
-
axis:
|
|
14
|
-
className:
|
|
15
|
-
children:
|
|
16
|
-
draggableOpts:
|
|
17
|
-
allowAnyClick:
|
|
18
|
-
cancel:
|
|
19
|
-
children:
|
|
20
|
-
disabled:
|
|
21
|
-
enableUserSelectHack:
|
|
22
|
-
offsetParent:
|
|
23
|
-
grid:
|
|
24
|
-
handle:
|
|
25
|
-
nodeRef:
|
|
26
|
-
onStart:
|
|
27
|
-
onDrag:
|
|
28
|
-
onStop:
|
|
29
|
-
onMouseDown:
|
|
30
|
-
scale:
|
|
14
|
+
var resizableProps = {
|
|
15
|
+
axis: _propTypes$2.default.oneOf(["both", "x", "y", "none"]),
|
|
16
|
+
className: _propTypes$2.default.string,
|
|
17
|
+
children: _propTypes$2.default.element.isRequired,
|
|
18
|
+
draggableOpts: _propTypes$2.default.shape({
|
|
19
|
+
allowAnyClick: _propTypes$2.default.bool,
|
|
20
|
+
cancel: _propTypes$2.default.string,
|
|
21
|
+
children: _propTypes$2.default.node,
|
|
22
|
+
disabled: _propTypes$2.default.bool,
|
|
23
|
+
enableUserSelectHack: _propTypes$2.default.bool,
|
|
24
|
+
offsetParent: _propTypes$2.default.node,
|
|
25
|
+
grid: _propTypes$2.default.arrayOf(_propTypes$2.default.number),
|
|
26
|
+
handle: _propTypes$2.default.string,
|
|
27
|
+
nodeRef: _propTypes$2.default.object,
|
|
28
|
+
onStart: _propTypes$2.default.func,
|
|
29
|
+
onDrag: _propTypes$2.default.func,
|
|
30
|
+
onStop: _propTypes$2.default.func,
|
|
31
|
+
onMouseDown: _propTypes$2.default.func,
|
|
32
|
+
scale: _propTypes$2.default.number
|
|
31
33
|
}),
|
|
32
|
-
height:
|
|
33
|
-
handle:
|
|
34
|
-
handleSize:
|
|
35
|
-
lockAspectRatio:
|
|
36
|
-
maxConstraints:
|
|
37
|
-
minConstraints:
|
|
38
|
-
onResizeStop:
|
|
39
|
-
onResizeStart:
|
|
40
|
-
onResize:
|
|
41
|
-
resizeHandles:
|
|
42
|
-
transformScale:
|
|
43
|
-
width:
|
|
34
|
+
height: _propTypes$2.default.number.isRequired,
|
|
35
|
+
handle: _propTypes$2.default.oneOfType([_propTypes$2.default.node, _propTypes$2.default.func]),
|
|
36
|
+
handleSize: _propTypes$2.default.arrayOf(_propTypes$2.default.number),
|
|
37
|
+
lockAspectRatio: _propTypes$2.default.bool,
|
|
38
|
+
maxConstraints: _propTypes$2.default.arrayOf(_propTypes$2.default.number),
|
|
39
|
+
minConstraints: _propTypes$2.default.arrayOf(_propTypes$2.default.number),
|
|
40
|
+
onResizeStop: _propTypes$2.default.func,
|
|
41
|
+
onResizeStart: _propTypes$2.default.func,
|
|
42
|
+
onResize: _propTypes$2.default.func,
|
|
43
|
+
resizeHandles: _propTypes$2.default.arrayOf(_propTypes$2.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])),
|
|
44
|
+
transformScale: _propTypes$2.default.number,
|
|
45
|
+
width: _propTypes$2.default.number.isRequired
|
|
44
46
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
propTypes.resizableProps = resizableProps;
|
|
48
|
+
Resizable$1.__esModule = true;
|
|
49
|
+
Resizable$1.default = void 0;
|
|
50
|
+
var React$1 = _interopRequireWildcard$1(React$2);
|
|
51
|
+
var _reactDraggable = cjs.exports;
|
|
52
|
+
var _utils = utils;
|
|
53
|
+
var _propTypes$1 = propTypes;
|
|
54
|
+
var _excluded$1 = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
|
|
55
|
+
function _getRequireWildcardCache$1(nodeInterop) {
|
|
56
|
+
if (typeof WeakMap !== "function")
|
|
51
57
|
return null;
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
59
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
60
|
+
return (_getRequireWildcardCache$1 = function _getRequireWildcardCache2(nodeInterop2) {
|
|
61
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
62
|
+
})(nodeInterop);
|
|
56
63
|
}
|
|
57
|
-
function
|
|
58
|
-
if (!
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
function _interopRequireWildcard$1(obj, nodeInterop) {
|
|
65
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
69
|
+
return { default: obj };
|
|
70
|
+
}
|
|
71
|
+
var cache = _getRequireWildcardCache$1(nodeInterop);
|
|
72
|
+
if (cache && cache.has(obj)) {
|
|
73
|
+
return cache.get(obj);
|
|
74
|
+
}
|
|
75
|
+
var newObj = {};
|
|
76
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
77
|
+
for (var key in obj) {
|
|
78
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
79
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
80
|
+
if (desc && (desc.get || desc.set)) {
|
|
81
|
+
Object.defineProperty(newObj, key, desc);
|
|
82
|
+
} else {
|
|
83
|
+
newObj[key] = obj[key];
|
|
84
|
+
}
|
|
70
85
|
}
|
|
71
|
-
|
|
86
|
+
}
|
|
87
|
+
newObj.default = obj;
|
|
88
|
+
if (cache) {
|
|
89
|
+
cache.set(obj, newObj);
|
|
90
|
+
}
|
|
91
|
+
return newObj;
|
|
72
92
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
93
|
+
function _extends$1() {
|
|
94
|
+
_extends$1 = Object.assign || function(target) {
|
|
75
95
|
for (var i = 1; i < arguments.length; i++) {
|
|
76
|
-
var
|
|
77
|
-
for (var
|
|
78
|
-
Object.prototype.hasOwnProperty.call(
|
|
96
|
+
var source = arguments[i];
|
|
97
|
+
for (var key in source) {
|
|
98
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
99
|
+
target[key] = source[key];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
79
102
|
}
|
|
80
|
-
return
|
|
81
|
-
}
|
|
103
|
+
return target;
|
|
104
|
+
};
|
|
105
|
+
return _extends$1.apply(this, arguments);
|
|
82
106
|
}
|
|
83
|
-
function
|
|
84
|
-
if (
|
|
107
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
108
|
+
if (source == null)
|
|
85
109
|
return {};
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
110
|
+
var target = {};
|
|
111
|
+
var sourceKeys = Object.keys(source);
|
|
112
|
+
var key, i;
|
|
113
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
114
|
+
key = sourceKeys[i];
|
|
115
|
+
if (excluded.indexOf(key) >= 0)
|
|
116
|
+
continue;
|
|
117
|
+
target[key] = source[key];
|
|
118
|
+
}
|
|
119
|
+
return target;
|
|
90
120
|
}
|
|
91
|
-
function
|
|
92
|
-
var
|
|
121
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
122
|
+
var keys = Object.keys(object);
|
|
93
123
|
if (Object.getOwnPropertySymbols) {
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
124
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
125
|
+
if (enumerableOnly) {
|
|
126
|
+
symbols = symbols.filter(function(sym) {
|
|
127
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
keys.push.apply(keys, symbols);
|
|
98
131
|
}
|
|
99
|
-
return
|
|
132
|
+
return keys;
|
|
100
133
|
}
|
|
101
|
-
function
|
|
134
|
+
function _objectSpread$1(target) {
|
|
102
135
|
for (var i = 1; i < arguments.length; i++) {
|
|
103
|
-
var
|
|
104
|
-
i % 2
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
})
|
|
136
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
137
|
+
if (i % 2) {
|
|
138
|
+
ownKeys$1(Object(source), true).forEach(function(key) {
|
|
139
|
+
_defineProperty$1(target, key, source[key]);
|
|
140
|
+
});
|
|
141
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
142
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
143
|
+
} else {
|
|
144
|
+
ownKeys$1(Object(source)).forEach(function(key) {
|
|
145
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
146
|
+
});
|
|
147
|
+
}
|
|
109
148
|
}
|
|
110
|
-
return
|
|
149
|
+
return target;
|
|
111
150
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
151
|
+
function _defineProperty$1(obj, key, value) {
|
|
152
|
+
if (key in obj) {
|
|
153
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
154
|
+
} else {
|
|
155
|
+
obj[key] = value;
|
|
156
|
+
}
|
|
157
|
+
return obj;
|
|
114
158
|
}
|
|
115
|
-
function
|
|
116
|
-
|
|
159
|
+
function _inheritsLoose$1(subClass, superClass) {
|
|
160
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
161
|
+
subClass.prototype.constructor = subClass;
|
|
162
|
+
_setPrototypeOf$1(subClass, superClass);
|
|
117
163
|
}
|
|
118
|
-
function
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
164
|
+
function _setPrototypeOf$1(o, p) {
|
|
165
|
+
_setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
|
|
166
|
+
o2.__proto__ = p2;
|
|
167
|
+
return o2;
|
|
168
|
+
};
|
|
169
|
+
return _setPrototypeOf$1(o, p);
|
|
122
170
|
}
|
|
123
|
-
var
|
|
124
|
-
|
|
125
|
-
function
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
171
|
+
var Resizable = /* @__PURE__ */ function(_React$Component) {
|
|
172
|
+
_inheritsLoose$1(Resizable2, _React$Component);
|
|
173
|
+
function Resizable2() {
|
|
174
|
+
var _this;
|
|
175
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
176
|
+
args[_key] = arguments[_key];
|
|
177
|
+
}
|
|
178
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
179
|
+
_this.handleRefs = {};
|
|
180
|
+
_this.lastHandleRect = null;
|
|
181
|
+
_this.slack = null;
|
|
182
|
+
return _this;
|
|
129
183
|
}
|
|
130
|
-
var
|
|
131
|
-
|
|
184
|
+
var _proto = Resizable2.prototype;
|
|
185
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
132
186
|
this.resetData();
|
|
133
|
-
}
|
|
187
|
+
};
|
|
188
|
+
_proto.resetData = function resetData() {
|
|
134
189
|
this.lastHandleRect = this.slack = null;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
190
|
+
};
|
|
191
|
+
_proto.runConstraints = function runConstraints(width, height) {
|
|
192
|
+
var _this$props = this.props, minConstraints = _this$props.minConstraints, maxConstraints = _this$props.maxConstraints, lockAspectRatio = _this$props.lockAspectRatio;
|
|
193
|
+
if (!minConstraints && !maxConstraints && !lockAspectRatio)
|
|
194
|
+
return [width, height];
|
|
195
|
+
if (lockAspectRatio) {
|
|
196
|
+
var ratio = this.props.width / this.props.height;
|
|
197
|
+
var deltaW = width - this.props.width;
|
|
198
|
+
var deltaH = height - this.props.height;
|
|
199
|
+
if (Math.abs(deltaW) > Math.abs(deltaH * ratio)) {
|
|
200
|
+
height = width / ratio;
|
|
201
|
+
} else {
|
|
202
|
+
width = height * ratio;
|
|
203
|
+
}
|
|
142
204
|
}
|
|
143
|
-
var
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
205
|
+
var oldW = width, oldH = height;
|
|
206
|
+
var _ref = this.slack || [0, 0], slackW = _ref[0], slackH = _ref[1];
|
|
207
|
+
width += slackW;
|
|
208
|
+
height += slackH;
|
|
209
|
+
if (minConstraints) {
|
|
210
|
+
width = Math.max(minConstraints[0], width);
|
|
211
|
+
height = Math.max(minConstraints[1], height);
|
|
212
|
+
}
|
|
213
|
+
if (maxConstraints) {
|
|
214
|
+
width = Math.min(maxConstraints[0], width);
|
|
215
|
+
height = Math.min(maxConstraints[1], height);
|
|
216
|
+
}
|
|
217
|
+
this.slack = [slackW + (oldW - width), slackH + (oldH - height)];
|
|
218
|
+
return [width, height];
|
|
219
|
+
};
|
|
220
|
+
_proto.resizeHandler = function resizeHandler(handlerName, axis) {
|
|
221
|
+
var _this2 = this;
|
|
222
|
+
return function(e, _ref2) {
|
|
223
|
+
var node = _ref2.node, deltaX = _ref2.deltaX, deltaY = _ref2.deltaY;
|
|
224
|
+
if (handlerName === "onResizeStart")
|
|
225
|
+
_this2.resetData();
|
|
226
|
+
var canDragX = (_this2.props.axis === "both" || _this2.props.axis === "x") && axis !== "n" && axis !== "s";
|
|
227
|
+
var canDragY = (_this2.props.axis === "both" || _this2.props.axis === "y") && axis !== "e" && axis !== "w";
|
|
228
|
+
if (!canDragX && !canDragY)
|
|
229
|
+
return;
|
|
230
|
+
var axisV = axis[0];
|
|
231
|
+
var axisH = axis[axis.length - 1];
|
|
232
|
+
var handleRect = node.getBoundingClientRect();
|
|
233
|
+
if (_this2.lastHandleRect != null) {
|
|
234
|
+
if (axisH === "w") {
|
|
235
|
+
var deltaLeftSinceLast = handleRect.left - _this2.lastHandleRect.left;
|
|
236
|
+
deltaX += deltaLeftSinceLast;
|
|
237
|
+
}
|
|
238
|
+
if (axisV === "n") {
|
|
239
|
+
var deltaTopSinceLast = handleRect.top - _this2.lastHandleRect.top;
|
|
240
|
+
deltaY += deltaTopSinceLast;
|
|
162
241
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
242
|
+
}
|
|
243
|
+
_this2.lastHandleRect = handleRect;
|
|
244
|
+
if (axisH === "w")
|
|
245
|
+
deltaX = -deltaX;
|
|
246
|
+
if (axisV === "n")
|
|
247
|
+
deltaY = -deltaY;
|
|
248
|
+
var width = _this2.props.width + (canDragX ? deltaX / _this2.props.transformScale : 0);
|
|
249
|
+
var height = _this2.props.height + (canDragY ? deltaY / _this2.props.transformScale : 0);
|
|
250
|
+
var _this2$runConstraints = _this2.runConstraints(width, height);
|
|
251
|
+
width = _this2$runConstraints[0];
|
|
252
|
+
height = _this2$runConstraints[1];
|
|
253
|
+
var dimensionsChanged = width !== _this2.props.width || height !== _this2.props.height;
|
|
254
|
+
var cb = typeof _this2.props[handlerName] === "function" ? _this2.props[handlerName] : null;
|
|
255
|
+
var shouldSkipCb = handlerName === "onResize" && !dimensionsChanged;
|
|
256
|
+
if (cb && !shouldSkipCb) {
|
|
257
|
+
e.persist == null ? void 0 : e.persist();
|
|
258
|
+
cb(e, {
|
|
259
|
+
node,
|
|
169
260
|
size: {
|
|
170
|
-
width
|
|
171
|
-
height
|
|
261
|
+
width,
|
|
262
|
+
height
|
|
172
263
|
},
|
|
173
|
-
handle:
|
|
174
|
-
})
|
|
264
|
+
handle: axis
|
|
265
|
+
});
|
|
175
266
|
}
|
|
267
|
+
if (handlerName === "onResizeStop")
|
|
268
|
+
_this2.resetData();
|
|
176
269
|
};
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
270
|
+
};
|
|
271
|
+
_proto.renderResizeHandle = function renderResizeHandle(handleAxis, ref) {
|
|
272
|
+
var handle = this.props.handle;
|
|
273
|
+
if (!handle) {
|
|
274
|
+
return /* @__PURE__ */ React$1.createElement("span", {
|
|
275
|
+
className: "react-resizable-handle react-resizable-handle-" + handleAxis,
|
|
276
|
+
ref
|
|
183
277
|
});
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
278
|
+
}
|
|
279
|
+
if (typeof handle === "function") {
|
|
280
|
+
return handle(handleAxis, ref);
|
|
281
|
+
}
|
|
282
|
+
var isDOMElement = typeof handle.type === "string";
|
|
283
|
+
var props = _objectSpread$1({
|
|
284
|
+
ref
|
|
285
|
+
}, isDOMElement ? {} : {
|
|
286
|
+
handleAxis
|
|
190
287
|
});
|
|
191
|
-
return /* @__PURE__ */
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
var
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
288
|
+
return /* @__PURE__ */ React$1.cloneElement(handle, props);
|
|
289
|
+
};
|
|
290
|
+
_proto.render = function render() {
|
|
291
|
+
var _this3 = this;
|
|
292
|
+
var _this$props2 = this.props, children = _this$props2.children, className = _this$props2.className, draggableOpts = _this$props2.draggableOpts;
|
|
293
|
+
_this$props2.width;
|
|
294
|
+
_this$props2.height;
|
|
295
|
+
_this$props2.handle;
|
|
296
|
+
_this$props2.handleSize;
|
|
297
|
+
_this$props2.lockAspectRatio;
|
|
298
|
+
_this$props2.axis;
|
|
299
|
+
_this$props2.minConstraints;
|
|
300
|
+
_this$props2.maxConstraints;
|
|
301
|
+
_this$props2.onResize;
|
|
302
|
+
_this$props2.onResizeStop;
|
|
303
|
+
_this$props2.onResizeStart;
|
|
304
|
+
var resizeHandles = _this$props2.resizeHandles;
|
|
305
|
+
_this$props2.transformScale;
|
|
306
|
+
var p = _objectWithoutPropertiesLoose$1(_this$props2, _excluded$1);
|
|
307
|
+
return (0, _utils.cloneElement)(children, _objectSpread$1(_objectSpread$1({}, p), {}, {
|
|
308
|
+
className: (className ? className + " " : "") + "react-resizable",
|
|
309
|
+
children: [].concat(children.props.children, resizeHandles.map(function(handleAxis) {
|
|
310
|
+
var _this3$handleRefs$han;
|
|
311
|
+
var ref = (_this3$handleRefs$han = _this3.handleRefs[handleAxis]) != null ? _this3$handleRefs$han : _this3.handleRefs[handleAxis] = /* @__PURE__ */ React$1.createRef();
|
|
312
|
+
return /* @__PURE__ */ React$1.createElement(_reactDraggable.DraggableCore, _extends$1({}, draggableOpts, {
|
|
313
|
+
nodeRef: ref,
|
|
314
|
+
key: "resizableHandle-" + handleAxis,
|
|
315
|
+
onStop: _this3.resizeHandler("onResizeStop", handleAxis),
|
|
316
|
+
onStart: _this3.resizeHandler("onResizeStart", handleAxis),
|
|
317
|
+
onDrag: _this3.resizeHandler("onResize", handleAxis)
|
|
318
|
+
}), _this3.renderResizeHandle(handleAxis, ref));
|
|
209
319
|
}))
|
|
210
320
|
}));
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
321
|
+
};
|
|
322
|
+
return Resizable2;
|
|
323
|
+
}(React$1.Component);
|
|
324
|
+
Resizable$1.default = Resizable;
|
|
325
|
+
Resizable.propTypes = _propTypes$1.resizableProps;
|
|
326
|
+
Resizable.defaultProps = {
|
|
216
327
|
axis: "both",
|
|
217
328
|
handleSize: [20, 20],
|
|
218
|
-
lockAspectRatio:
|
|
329
|
+
lockAspectRatio: false,
|
|
219
330
|
minConstraints: [20, 20],
|
|
220
|
-
maxConstraints: [
|
|
331
|
+
maxConstraints: [Infinity, Infinity],
|
|
221
332
|
resizeHandles: ["se"],
|
|
222
333
|
transformScale: 1
|
|
223
334
|
};
|
|
224
|
-
var
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
var
|
|
228
|
-
|
|
229
|
-
|
|
335
|
+
var ResizableBox$2 = {};
|
|
336
|
+
ResizableBox$2.__esModule = true;
|
|
337
|
+
ResizableBox$2.default = void 0;
|
|
338
|
+
var React = _interopRequireWildcard(React$2);
|
|
339
|
+
var _propTypes = _interopRequireDefault(require$$1);
|
|
340
|
+
var _Resizable = _interopRequireDefault(Resizable$1);
|
|
341
|
+
var _propTypes2 = propTypes;
|
|
342
|
+
var _excluded = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
|
|
343
|
+
function _interopRequireDefault(obj) {
|
|
344
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
230
345
|
}
|
|
231
|
-
function
|
|
232
|
-
if (typeof WeakMap
|
|
346
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
347
|
+
if (typeof WeakMap !== "function")
|
|
233
348
|
return null;
|
|
234
|
-
var
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
349
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
350
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
351
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
|
|
352
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
353
|
+
})(nodeInterop);
|
|
238
354
|
}
|
|
239
|
-
function
|
|
240
|
-
if (!
|
|
241
|
-
return
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
355
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
356
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
357
|
+
return obj;
|
|
358
|
+
}
|
|
359
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
360
|
+
return { default: obj };
|
|
361
|
+
}
|
|
362
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
363
|
+
if (cache && cache.has(obj)) {
|
|
364
|
+
return cache.get(obj);
|
|
365
|
+
}
|
|
366
|
+
var newObj = {};
|
|
367
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
368
|
+
for (var key in obj) {
|
|
369
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
370
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
371
|
+
if (desc && (desc.get || desc.set)) {
|
|
372
|
+
Object.defineProperty(newObj, key, desc);
|
|
373
|
+
} else {
|
|
374
|
+
newObj[key] = obj[key];
|
|
375
|
+
}
|
|
252
376
|
}
|
|
253
|
-
|
|
377
|
+
}
|
|
378
|
+
newObj.default = obj;
|
|
379
|
+
if (cache) {
|
|
380
|
+
cache.set(obj, newObj);
|
|
381
|
+
}
|
|
382
|
+
return newObj;
|
|
254
383
|
}
|
|
255
|
-
function
|
|
256
|
-
|
|
384
|
+
function _extends() {
|
|
385
|
+
_extends = Object.assign || function(target) {
|
|
257
386
|
for (var i = 1; i < arguments.length; i++) {
|
|
258
|
-
var
|
|
259
|
-
for (var
|
|
260
|
-
Object.prototype.hasOwnProperty.call(
|
|
387
|
+
var source = arguments[i];
|
|
388
|
+
for (var key in source) {
|
|
389
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
390
|
+
target[key] = source[key];
|
|
391
|
+
}
|
|
392
|
+
}
|
|
261
393
|
}
|
|
262
|
-
return
|
|
263
|
-
}
|
|
394
|
+
return target;
|
|
395
|
+
};
|
|
396
|
+
return _extends.apply(this, arguments);
|
|
264
397
|
}
|
|
265
|
-
function
|
|
266
|
-
var
|
|
398
|
+
function ownKeys(object, enumerableOnly) {
|
|
399
|
+
var keys = Object.keys(object);
|
|
267
400
|
if (Object.getOwnPropertySymbols) {
|
|
268
|
-
var
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
401
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
402
|
+
if (enumerableOnly) {
|
|
403
|
+
symbols = symbols.filter(function(sym) {
|
|
404
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
keys.push.apply(keys, symbols);
|
|
272
408
|
}
|
|
273
|
-
return
|
|
409
|
+
return keys;
|
|
274
410
|
}
|
|
275
|
-
function
|
|
411
|
+
function _objectSpread(target) {
|
|
276
412
|
for (var i = 1; i < arguments.length; i++) {
|
|
277
|
-
var
|
|
278
|
-
i % 2
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
})
|
|
413
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
414
|
+
if (i % 2) {
|
|
415
|
+
ownKeys(Object(source), true).forEach(function(key) {
|
|
416
|
+
_defineProperty(target, key, source[key]);
|
|
417
|
+
});
|
|
418
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
419
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
420
|
+
} else {
|
|
421
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
422
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
423
|
+
});
|
|
424
|
+
}
|
|
283
425
|
}
|
|
284
|
-
return
|
|
426
|
+
return target;
|
|
285
427
|
}
|
|
286
|
-
function
|
|
287
|
-
|
|
428
|
+
function _defineProperty(obj, key, value) {
|
|
429
|
+
if (key in obj) {
|
|
430
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
431
|
+
} else {
|
|
432
|
+
obj[key] = value;
|
|
433
|
+
}
|
|
434
|
+
return obj;
|
|
288
435
|
}
|
|
289
|
-
function
|
|
290
|
-
if (
|
|
436
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
437
|
+
if (source == null)
|
|
291
438
|
return {};
|
|
292
|
-
var
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
439
|
+
var target = {};
|
|
440
|
+
var sourceKeys = Object.keys(source);
|
|
441
|
+
var key, i;
|
|
442
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
443
|
+
key = sourceKeys[i];
|
|
444
|
+
if (excluded.indexOf(key) >= 0)
|
|
445
|
+
continue;
|
|
446
|
+
target[key] = source[key];
|
|
447
|
+
}
|
|
448
|
+
return target;
|
|
296
449
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
450
|
+
function _inheritsLoose(subClass, superClass) {
|
|
451
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
452
|
+
subClass.prototype.constructor = subClass;
|
|
453
|
+
_setPrototypeOf(subClass, superClass);
|
|
299
454
|
}
|
|
300
|
-
function
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
455
|
+
function _setPrototypeOf(o, p) {
|
|
456
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
|
|
457
|
+
o2.__proto__ = p2;
|
|
458
|
+
return o2;
|
|
459
|
+
};
|
|
460
|
+
return _setPrototypeOf(o, p);
|
|
304
461
|
}
|
|
305
|
-
var
|
|
306
|
-
|
|
307
|
-
function
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
462
|
+
var ResizableBox$1 = /* @__PURE__ */ function(_React$Component) {
|
|
463
|
+
_inheritsLoose(ResizableBox2, _React$Component);
|
|
464
|
+
function ResizableBox2() {
|
|
465
|
+
var _this;
|
|
466
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
467
|
+
args[_key] = arguments[_key];
|
|
468
|
+
}
|
|
469
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
470
|
+
_this.state = {
|
|
471
|
+
width: _this.props.width,
|
|
472
|
+
height: _this.props.height,
|
|
473
|
+
propsWidth: _this.props.width,
|
|
474
|
+
propsHeight: _this.props.height
|
|
475
|
+
};
|
|
476
|
+
_this.onResize = function(e, data) {
|
|
477
|
+
var size = data.size;
|
|
478
|
+
if (_this.props.onResize) {
|
|
479
|
+
e.persist == null ? void 0 : e.persist();
|
|
480
|
+
_this.setState(size, function() {
|
|
481
|
+
return _this.props.onResize && _this.props.onResize(e, data);
|
|
482
|
+
});
|
|
483
|
+
} else {
|
|
484
|
+
_this.setState(size);
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
return _this;
|
|
321
488
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
489
|
+
ResizableBox2.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {
|
|
490
|
+
if (state.propsWidth !== props.width || state.propsHeight !== props.height) {
|
|
491
|
+
return {
|
|
492
|
+
width: props.width,
|
|
493
|
+
height: props.height,
|
|
494
|
+
propsWidth: props.width,
|
|
495
|
+
propsHeight: props.height
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
return null;
|
|
329
499
|
};
|
|
330
|
-
var
|
|
331
|
-
|
|
332
|
-
var
|
|
333
|
-
|
|
334
|
-
var
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
500
|
+
var _proto = ResizableBox2.prototype;
|
|
501
|
+
_proto.render = function render() {
|
|
502
|
+
var _this$props = this.props, handle = _this$props.handle, handleSize = _this$props.handleSize;
|
|
503
|
+
_this$props.onResize;
|
|
504
|
+
var onResizeStart = _this$props.onResizeStart, onResizeStop = _this$props.onResizeStop, draggableOpts = _this$props.draggableOpts, minConstraints = _this$props.minConstraints, maxConstraints = _this$props.maxConstraints, lockAspectRatio = _this$props.lockAspectRatio, axis = _this$props.axis;
|
|
505
|
+
_this$props.width;
|
|
506
|
+
_this$props.height;
|
|
507
|
+
var resizeHandles = _this$props.resizeHandles, style = _this$props.style, transformScale = _this$props.transformScale, props = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
508
|
+
return /* @__PURE__ */ React.createElement(_Resizable.default, {
|
|
509
|
+
axis,
|
|
510
|
+
draggableOpts,
|
|
511
|
+
handle,
|
|
512
|
+
handleSize,
|
|
342
513
|
height: this.state.height,
|
|
343
|
-
lockAspectRatio
|
|
344
|
-
maxConstraints
|
|
345
|
-
minConstraints
|
|
346
|
-
onResizeStart
|
|
514
|
+
lockAspectRatio,
|
|
515
|
+
maxConstraints,
|
|
516
|
+
minConstraints,
|
|
517
|
+
onResizeStart,
|
|
347
518
|
onResize: this.onResize,
|
|
348
|
-
onResizeStop
|
|
349
|
-
resizeHandles
|
|
350
|
-
transformScale
|
|
519
|
+
onResizeStop,
|
|
520
|
+
resizeHandles,
|
|
521
|
+
transformScale,
|
|
351
522
|
width: this.state.width
|
|
352
|
-
}, /* @__PURE__ */
|
|
353
|
-
style:
|
|
523
|
+
}, /* @__PURE__ */ React.createElement("div", _extends({}, props, {
|
|
524
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
354
525
|
width: this.state.width + "px",
|
|
355
526
|
height: this.state.height + "px"
|
|
356
527
|
})
|
|
357
528
|
})));
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
529
|
+
};
|
|
530
|
+
return ResizableBox2;
|
|
531
|
+
}(React.Component);
|
|
532
|
+
ResizableBox$2.default = ResizableBox$1;
|
|
533
|
+
ResizableBox$1.propTypes = _objectSpread(_objectSpread({}, _propTypes2.resizableProps), {}, {
|
|
534
|
+
children: _propTypes.default.element
|
|
363
535
|
});
|
|
364
|
-
|
|
536
|
+
reactResizable.exports = function() {
|
|
365
537
|
throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
|
|
366
538
|
};
|
|
367
|
-
|
|
368
|
-
var
|
|
539
|
+
reactResizable.exports.Resizable = Resizable$1.default;
|
|
540
|
+
var ResizableBox = reactResizable.exports.ResizableBox = ResizableBox$2.default;
|
|
369
541
|
export {
|
|
370
|
-
|
|
542
|
+
ResizableBox as R
|
|
371
543
|
};
|