funda-ui 4.7.152 → 4.7.155
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/CascadingSelect/index.js +13 -6
- package/CascadingSelectE2E/index.js +13 -6
- package/Chatbox/index.css +8 -0
- package/Chatbox/index.d.ts +1 -0
- package/Chatbox/index.js +18 -8
- package/Date/index.js +13 -6
- package/DropdownMenu/index.js +13 -6
- package/EventCalendar/index.js +42 -35
- package/EventCalendarTimeline/index.js +55 -41
- package/LiveSearch/index.js +13 -6
- package/ModalDialog/index.js +13 -6
- package/RootPortal/index.d.ts +2 -1
- package/RootPortal/index.js +13 -6
- package/Select/index.js +13 -6
- package/Toast/index.js +13 -6
- package/Tooltip/index.js +13 -6
- package/lib/cjs/CascadingSelect/index.js +13 -6
- package/lib/cjs/CascadingSelectE2E/index.js +13 -6
- package/lib/cjs/Chatbox/index.d.ts +1 -0
- package/lib/cjs/Chatbox/index.js +18 -8
- package/lib/cjs/Date/index.js +13 -6
- package/lib/cjs/DropdownMenu/index.js +13 -6
- package/lib/cjs/EventCalendar/index.js +42 -35
- package/lib/cjs/EventCalendarTimeline/index.js +55 -41
- package/lib/cjs/LiveSearch/index.js +13 -6
- package/lib/cjs/ModalDialog/index.js +13 -6
- package/lib/cjs/RootPortal/index.d.ts +2 -1
- package/lib/cjs/RootPortal/index.js +13 -6
- package/lib/cjs/Select/index.js +13 -6
- package/lib/cjs/Toast/index.js +13 -6
- package/lib/cjs/Tooltip/index.js +13 -6
- package/lib/css/Chatbox/index.css +8 -0
- package/lib/esm/Chatbox/index.scss +9 -0
- package/lib/esm/Chatbox/index.tsx +7 -4
- package/lib/esm/RootPortal/index.tsx +14 -8
- package/lib/esm/Textarea/index.tsx +1 -0
- package/package.json +1 -1
package/CascadingSelect/index.js
CHANGED
|
@@ -171,7 +171,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
171
171
|
var RootPortal = function RootPortal(props) {
|
|
172
172
|
var containerClassName = props.containerClassName,
|
|
173
173
|
show = props.show,
|
|
174
|
-
children = props.children
|
|
174
|
+
children = props.children,
|
|
175
|
+
_props$usePortal = props.usePortal,
|
|
176
|
+
usePortal = _props$usePortal === void 0 ? true : _props$usePortal;
|
|
175
177
|
var containerRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
176
178
|
|
|
177
179
|
// Move HTML templates to tag end body </body>
|
|
@@ -182,15 +184,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
182
184
|
// Use `containerRef.current` to ensure the correctness of the nextjs framework. It may report an error document as undefined
|
|
183
185
|
|
|
184
186
|
(0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
if (usePortal) {
|
|
188
|
+
containerRef.current = document.createElement('div');
|
|
189
|
+
containerRef.current.className = "root-portal-container ".concat(containerClassName || '');
|
|
190
|
+
document.body.appendChild(containerRef.current);
|
|
191
|
+
}
|
|
188
192
|
return function () {
|
|
189
|
-
if (containerRef.current) {
|
|
193
|
+
if (usePortal && containerRef.current) {
|
|
190
194
|
containerRef.current.remove();
|
|
191
195
|
}
|
|
192
196
|
};
|
|
193
|
-
}, []);
|
|
197
|
+
}, [usePortal]);
|
|
198
|
+
if (!usePortal) {
|
|
199
|
+
return show ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, children) : null;
|
|
200
|
+
}
|
|
194
201
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, containerRef.current && show && /*#__PURE__*/(0, react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(children, containerRef.current));
|
|
195
202
|
};
|
|
196
203
|
/* harmony default export */
|
|
@@ -171,7 +171,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
171
171
|
var RootPortal = function RootPortal(props) {
|
|
172
172
|
var containerClassName = props.containerClassName,
|
|
173
173
|
show = props.show,
|
|
174
|
-
children = props.children
|
|
174
|
+
children = props.children,
|
|
175
|
+
_props$usePortal = props.usePortal,
|
|
176
|
+
usePortal = _props$usePortal === void 0 ? true : _props$usePortal;
|
|
175
177
|
var containerRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
176
178
|
|
|
177
179
|
// Move HTML templates to tag end body </body>
|
|
@@ -182,15 +184,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
182
184
|
// Use `containerRef.current` to ensure the correctness of the nextjs framework. It may report an error document as undefined
|
|
183
185
|
|
|
184
186
|
(0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
if (usePortal) {
|
|
188
|
+
containerRef.current = document.createElement('div');
|
|
189
|
+
containerRef.current.className = "root-portal-container ".concat(containerClassName || '');
|
|
190
|
+
document.body.appendChild(containerRef.current);
|
|
191
|
+
}
|
|
188
192
|
return function () {
|
|
189
|
-
if (containerRef.current) {
|
|
193
|
+
if (usePortal && containerRef.current) {
|
|
190
194
|
containerRef.current.remove();
|
|
191
195
|
}
|
|
192
196
|
};
|
|
193
|
-
}, []);
|
|
197
|
+
}, [usePortal]);
|
|
198
|
+
if (!usePortal) {
|
|
199
|
+
return show ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, children) : null;
|
|
200
|
+
}
|
|
194
201
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, containerRef.current && show && /*#__PURE__*/(0, react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(children, containerRef.current));
|
|
195
202
|
};
|
|
196
203
|
/* harmony default export */
|
package/Chatbox/index.css
CHANGED
|
@@ -154,6 +154,7 @@
|
|
|
154
154
|
right: 0;
|
|
155
155
|
z-index: 1031;
|
|
156
156
|
height: var(--custom-chatbox-h);
|
|
157
|
+
/* disable popup */
|
|
157
158
|
/* message list */
|
|
158
159
|
/* dot loading */
|
|
159
160
|
/* control area */
|
|
@@ -164,6 +165,12 @@
|
|
|
164
165
|
/* default questions */
|
|
165
166
|
/* Tooltip */
|
|
166
167
|
}
|
|
168
|
+
.custom-chatbox-container.popup-none {
|
|
169
|
+
position: relative;
|
|
170
|
+
bottom: auto;
|
|
171
|
+
right: auto;
|
|
172
|
+
box-shadow: none;
|
|
173
|
+
}
|
|
167
174
|
.custom-chatbox-container details {
|
|
168
175
|
font-style: italic;
|
|
169
176
|
margin: 0;
|
|
@@ -375,6 +382,7 @@
|
|
|
375
382
|
border: 1px solid var(--custom-chatbox-gray-color);
|
|
376
383
|
border-radius: 0.35rem;
|
|
377
384
|
transition: all 0.3s ease;
|
|
385
|
+
background: var(--custom-chatbox-input-bg);
|
|
378
386
|
}
|
|
379
387
|
.custom-chatbox-container .msgcontrol img, .custom-chatbox-container .msgcontrol svg, .custom-chatbox-container .msgcontrol video, .custom-chatbox-container .msgcontrol canvas, .custom-chatbox-container .msgcontrol audio, .custom-chatbox-container .msgcontrol iframe, .custom-chatbox-container .msgcontrol embed, .custom-chatbox-container .msgcontrol object {
|
|
380
388
|
display: inline;
|
package/Chatbox/index.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export declare type ChatboxProps = {
|
|
|
83
83
|
defaultQuestions?: QuestionData;
|
|
84
84
|
showCopyBtn?: boolean;
|
|
85
85
|
autoCopyReply?: boolean;
|
|
86
|
+
usePopUp?: boolean;
|
|
86
87
|
customRequest?: CustomRequestFunction;
|
|
87
88
|
renderParser?: (input: string) => Promise<string>;
|
|
88
89
|
requestBodyFormatter?: (body: any, contextData: Record<string, any>, conversationHistory: MessageDetail[]) => Promise<Record<string, any>>;
|
package/Chatbox/index.js
CHANGED
|
@@ -171,7 +171,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
171
171
|
var RootPortal = function RootPortal(props) {
|
|
172
172
|
var containerClassName = props.containerClassName,
|
|
173
173
|
show = props.show,
|
|
174
|
-
children = props.children
|
|
174
|
+
children = props.children,
|
|
175
|
+
_props$usePortal = props.usePortal,
|
|
176
|
+
usePortal = _props$usePortal === void 0 ? true : _props$usePortal;
|
|
175
177
|
var containerRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
176
178
|
|
|
177
179
|
// Move HTML templates to tag end body </body>
|
|
@@ -182,15 +184,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
182
184
|
// Use `containerRef.current` to ensure the correctness of the nextjs framework. It may report an error document as undefined
|
|
183
185
|
|
|
184
186
|
(0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
if (usePortal) {
|
|
188
|
+
containerRef.current = document.createElement('div');
|
|
189
|
+
containerRef.current.className = "root-portal-container ".concat(containerClassName || '');
|
|
190
|
+
document.body.appendChild(containerRef.current);
|
|
191
|
+
}
|
|
188
192
|
return function () {
|
|
189
|
-
if (containerRef.current) {
|
|
193
|
+
if (usePortal && containerRef.current) {
|
|
190
194
|
containerRef.current.remove();
|
|
191
195
|
}
|
|
192
196
|
};
|
|
193
|
-
}, []);
|
|
197
|
+
}, [usePortal]);
|
|
198
|
+
if (!usePortal) {
|
|
199
|
+
return show ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, children) : null;
|
|
200
|
+
}
|
|
194
201
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, containerRef.current && show && /*#__PURE__*/(0, react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(children, containerRef.current));
|
|
195
202
|
};
|
|
196
203
|
/* harmony default export */
|
|
@@ -4430,6 +4437,7 @@ var Chatbox = function Chatbox(props) {
|
|
|
4430
4437
|
toolkitButtons = currentProps.toolkitButtons,
|
|
4431
4438
|
newChatButton = currentProps.newChatButton,
|
|
4432
4439
|
maxHistoryLength = currentProps.maxHistoryLength,
|
|
4440
|
+
usePopUp = currentProps.usePopUp,
|
|
4433
4441
|
customRequest = currentProps.customRequest,
|
|
4434
4442
|
onQuestionClick = currentProps.onQuestionClick,
|
|
4435
4443
|
onCopyCallback = currentProps.onCopyCallback,
|
|
@@ -4502,6 +4510,7 @@ var Chatbox = function Chatbox(props) {
|
|
|
4502
4510
|
maxHistoryLength: maxHistoryLength,
|
|
4503
4511
|
toolkitButtons: toolkitButtons,
|
|
4504
4512
|
newChatButton: newChatButton,
|
|
4513
|
+
usePopUp: usePopUp,
|
|
4505
4514
|
customRequest: customRequest,
|
|
4506
4515
|
onQuestionClick: onQuestionClick,
|
|
4507
4516
|
onCopyCallback: onCopyCallback,
|
|
@@ -5548,6 +5557,7 @@ var Chatbox = function Chatbox(props) {
|
|
|
5548
5557
|
|
|
5549
5558
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((dist_cjs_default()), {
|
|
5550
5559
|
show: true,
|
|
5560
|
+
usePortal: args().usePopUp,
|
|
5551
5561
|
containerClassName: "Chatbox"
|
|
5552
5562
|
}, args().bubble ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
5553
5563
|
className: "".concat(args().prefix || 'custom-', "chatbox-circle"),
|
|
@@ -5584,7 +5594,7 @@ var Chatbox = function Chatbox(props) {
|
|
|
5584
5594
|
style: {
|
|
5585
5595
|
display: show ? 'block' : 'none'
|
|
5586
5596
|
},
|
|
5587
|
-
className: "".concat(args().prefix || 'custom-', "chatbox-container"),
|
|
5597
|
+
className: "".concat(args().prefix || 'custom-', "chatbox-container ").concat(typeof args().usePopUp !== 'undefined' && args().usePopUp === false ? 'popup-none' : ''),
|
|
5588
5598
|
ref: rootRef
|
|
5589
5599
|
}, msgList.length === 0 ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
5590
5600
|
className: "d-flex flex-column align-items-center justify-content-center ".concat(hasQuestion() ? '' : 'h-50')
|
|
@@ -5633,7 +5643,7 @@ var Chatbox = function Chatbox(props) {
|
|
|
5633
5643
|
}
|
|
5634
5644
|
});
|
|
5635
5645
|
})))) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
5636
|
-
className: "messages",
|
|
5646
|
+
className: "messages ".concat(msgList.length === 0 ? 'd-none' : ''),
|
|
5637
5647
|
ref: msgContainerRef
|
|
5638
5648
|
}, msgList.map(function (msg, index) {
|
|
5639
5649
|
var _msg$tag, _msg$tag2;
|
package/Date/index.js
CHANGED
|
@@ -2178,7 +2178,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
2178
2178
|
var RootPortal = function RootPortal(props) {
|
|
2179
2179
|
var containerClassName = props.containerClassName,
|
|
2180
2180
|
show = props.show,
|
|
2181
|
-
children = props.children
|
|
2181
|
+
children = props.children,
|
|
2182
|
+
_props$usePortal = props.usePortal,
|
|
2183
|
+
usePortal = _props$usePortal === void 0 ? true : _props$usePortal;
|
|
2182
2184
|
var containerRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
2183
2185
|
|
|
2184
2186
|
// Move HTML templates to tag end body </body>
|
|
@@ -2189,15 +2191,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
2189
2191
|
// Use `containerRef.current` to ensure the correctness of the nextjs framework. It may report an error document as undefined
|
|
2190
2192
|
|
|
2191
2193
|
(0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2194
|
+
if (usePortal) {
|
|
2195
|
+
containerRef.current = document.createElement('div');
|
|
2196
|
+
containerRef.current.className = "root-portal-container ".concat(containerClassName || '');
|
|
2197
|
+
document.body.appendChild(containerRef.current);
|
|
2198
|
+
}
|
|
2195
2199
|
return function () {
|
|
2196
|
-
if (containerRef.current) {
|
|
2200
|
+
if (usePortal && containerRef.current) {
|
|
2197
2201
|
containerRef.current.remove();
|
|
2198
2202
|
}
|
|
2199
2203
|
};
|
|
2200
|
-
}, []);
|
|
2204
|
+
}, [usePortal]);
|
|
2205
|
+
if (!usePortal) {
|
|
2206
|
+
return show ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, children) : null;
|
|
2207
|
+
}
|
|
2201
2208
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, containerRef.current && show && /*#__PURE__*/(0, react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(children, containerRef.current));
|
|
2202
2209
|
};
|
|
2203
2210
|
/* harmony default export */
|
package/DropdownMenu/index.js
CHANGED
|
@@ -171,7 +171,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
171
171
|
var RootPortal = function RootPortal(props) {
|
|
172
172
|
var containerClassName = props.containerClassName,
|
|
173
173
|
show = props.show,
|
|
174
|
-
children = props.children
|
|
174
|
+
children = props.children,
|
|
175
|
+
_props$usePortal = props.usePortal,
|
|
176
|
+
usePortal = _props$usePortal === void 0 ? true : _props$usePortal;
|
|
175
177
|
var containerRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
176
178
|
|
|
177
179
|
// Move HTML templates to tag end body </body>
|
|
@@ -182,15 +184,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
182
184
|
// Use `containerRef.current` to ensure the correctness of the nextjs framework. It may report an error document as undefined
|
|
183
185
|
|
|
184
186
|
(0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
if (usePortal) {
|
|
188
|
+
containerRef.current = document.createElement('div');
|
|
189
|
+
containerRef.current.className = "root-portal-container ".concat(containerClassName || '');
|
|
190
|
+
document.body.appendChild(containerRef.current);
|
|
191
|
+
}
|
|
188
192
|
return function () {
|
|
189
|
-
if (containerRef.current) {
|
|
193
|
+
if (usePortal && containerRef.current) {
|
|
190
194
|
containerRef.current.remove();
|
|
191
195
|
}
|
|
192
196
|
};
|
|
193
|
-
}, []);
|
|
197
|
+
}, [usePortal]);
|
|
198
|
+
if (!usePortal) {
|
|
199
|
+
return show ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, children) : null;
|
|
200
|
+
}
|
|
194
201
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, containerRef.current && show && /*#__PURE__*/(0, react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(children, containerRef.current));
|
|
195
202
|
};
|
|
196
203
|
/* harmony default export */
|
package/EventCalendar/index.js
CHANGED
|
@@ -190,7 +190,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
190
190
|
var RootPortal = function RootPortal(props) {
|
|
191
191
|
var containerClassName = props.containerClassName,
|
|
192
192
|
show = props.show,
|
|
193
|
-
children = props.children
|
|
193
|
+
children = props.children,
|
|
194
|
+
_props$usePortal = props.usePortal,
|
|
195
|
+
usePortal = _props$usePortal === void 0 ? true : _props$usePortal;
|
|
194
196
|
var containerRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
195
197
|
|
|
196
198
|
// Move HTML templates to tag end body </body>
|
|
@@ -201,15 +203,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
201
203
|
// Use `containerRef.current` to ensure the correctness of the nextjs framework. It may report an error document as undefined
|
|
202
204
|
|
|
203
205
|
(0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
206
|
+
if (usePortal) {
|
|
207
|
+
containerRef.current = document.createElement('div');
|
|
208
|
+
containerRef.current.className = "root-portal-container ".concat(containerClassName || '');
|
|
209
|
+
document.body.appendChild(containerRef.current);
|
|
210
|
+
}
|
|
207
211
|
return function () {
|
|
208
|
-
if (containerRef.current) {
|
|
212
|
+
if (usePortal && containerRef.current) {
|
|
209
213
|
containerRef.current.remove();
|
|
210
214
|
}
|
|
211
215
|
};
|
|
212
|
-
}, []);
|
|
216
|
+
}, [usePortal]);
|
|
217
|
+
if (!usePortal) {
|
|
218
|
+
return show ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, children) : null;
|
|
219
|
+
}
|
|
213
220
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, containerRef.current && show && /*#__PURE__*/(0, react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(children, containerRef.current));
|
|
214
221
|
};
|
|
215
222
|
/* harmony default export */
|
|
@@ -226,8 +233,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
226
233
|
/***/
|
|
227
234
|
},
|
|
228
235
|
|
|
229
|
-
/***/70: /***/function _(module, exports,
|
|
230
|
-
/* module decorator */module =
|
|
236
|
+
/***/70: /***/function _(module, exports, __nested_webpack_require_11781__) {
|
|
237
|
+
/* module decorator */module = __nested_webpack_require_11781__.nmd(module);
|
|
231
238
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
|
232
239
|
function _typeof(obj) {
|
|
233
240
|
"@babel/helpers - typeof";
|
|
@@ -604,8 +611,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
604
611
|
/***/
|
|
605
612
|
},
|
|
606
613
|
|
|
607
|
-
/***/85: /***/function _(module, exports,
|
|
608
|
-
/* module decorator */module =
|
|
614
|
+
/***/85: /***/function _(module, exports, __nested_webpack_require_31357__) {
|
|
615
|
+
/* module decorator */module = __nested_webpack_require_31357__.nmd(module);
|
|
609
616
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
|
610
617
|
function _typeof(obj) {
|
|
611
618
|
"@babel/helpers - typeof";
|
|
@@ -617,7 +624,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
617
624
|
}, _typeof(obj);
|
|
618
625
|
}
|
|
619
626
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
620
|
-
if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(
|
|
627
|
+
if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__nested_webpack_require_31357__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__nested_webpack_require_31357__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
|
|
621
628
|
})(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
|
|
622
629
|
return (/******/function () {
|
|
623
630
|
// webpackBootstrap
|
|
@@ -777,8 +784,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
777
784
|
/***/
|
|
778
785
|
},
|
|
779
786
|
|
|
780
|
-
/***/771: /***/function _(module, exports,
|
|
781
|
-
/* module decorator */module =
|
|
787
|
+
/***/771: /***/function _(module, exports, __nested_webpack_require_39445__) {
|
|
788
|
+
/* module decorator */module = __nested_webpack_require_39445__.nmd(module);
|
|
782
789
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
|
783
790
|
function _typeof(obj) {
|
|
784
791
|
"@babel/helpers - typeof";
|
|
@@ -790,7 +797,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
790
797
|
}, _typeof(obj);
|
|
791
798
|
}
|
|
792
799
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
793
|
-
if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(
|
|
800
|
+
if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__nested_webpack_require_39445__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__nested_webpack_require_39445__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
|
|
794
801
|
})(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
|
|
795
802
|
return (/******/function () {
|
|
796
803
|
// webpackBootstrap
|
|
@@ -1252,7 +1259,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1252
1259
|
/******/
|
|
1253
1260
|
/******/ // The require function
|
|
1254
1261
|
/******/
|
|
1255
|
-
function
|
|
1262
|
+
function __nested_webpack_require_61961__(moduleId) {
|
|
1256
1263
|
/******/ // Check if module is in cache
|
|
1257
1264
|
/******/var cachedModule = __webpack_module_cache__[moduleId];
|
|
1258
1265
|
/******/
|
|
@@ -1271,7 +1278,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1271
1278
|
/******/
|
|
1272
1279
|
/******/ // Execute the module function
|
|
1273
1280
|
/******/
|
|
1274
|
-
__webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
|
1281
|
+
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_61961__);
|
|
1275
1282
|
/******/
|
|
1276
1283
|
/******/ // Flag the module as loaded
|
|
1277
1284
|
/******/
|
|
@@ -1288,14 +1295,14 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1288
1295
|
/******/
|
|
1289
1296
|
(function () {
|
|
1290
1297
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
1291
|
-
/******/
|
|
1298
|
+
/******/__nested_webpack_require_61961__.n = function (module) {
|
|
1292
1299
|
/******/var getter = module && module.__esModule ? /******/function () {
|
|
1293
1300
|
return module['default'];
|
|
1294
1301
|
} : /******/function () {
|
|
1295
1302
|
return module;
|
|
1296
1303
|
};
|
|
1297
1304
|
/******/
|
|
1298
|
-
|
|
1305
|
+
__nested_webpack_require_61961__.d(getter, {
|
|
1299
1306
|
a: getter
|
|
1300
1307
|
});
|
|
1301
1308
|
/******/
|
|
@@ -1309,9 +1316,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1309
1316
|
/******/
|
|
1310
1317
|
(function () {
|
|
1311
1318
|
/******/ // define getter functions for harmony exports
|
|
1312
|
-
/******/
|
|
1319
|
+
/******/__nested_webpack_require_61961__.d = function (exports, definition) {
|
|
1313
1320
|
/******/for (var key in definition) {
|
|
1314
|
-
/******/if (
|
|
1321
|
+
/******/if (__nested_webpack_require_61961__.o(definition, key) && !__nested_webpack_require_61961__.o(exports, key)) {
|
|
1315
1322
|
/******/Object.defineProperty(exports, key, {
|
|
1316
1323
|
enumerable: true,
|
|
1317
1324
|
get: definition[key]
|
|
@@ -1328,7 +1335,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1328
1335
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1329
1336
|
/******/
|
|
1330
1337
|
(function () {
|
|
1331
|
-
/******/
|
|
1338
|
+
/******/__nested_webpack_require_61961__.o = function (obj, prop) {
|
|
1332
1339
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1333
1340
|
};
|
|
1334
1341
|
/******/
|
|
@@ -1338,7 +1345,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1338
1345
|
/******/
|
|
1339
1346
|
(function () {
|
|
1340
1347
|
/******/ // define __esModule on exports
|
|
1341
|
-
/******/
|
|
1348
|
+
/******/__nested_webpack_require_61961__.r = function (exports) {
|
|
1342
1349
|
/******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1343
1350
|
/******/Object.defineProperty(exports, Symbol.toStringTag, {
|
|
1344
1351
|
value: 'Module'
|
|
@@ -1357,7 +1364,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1357
1364
|
/******/ /* webpack/runtime/node module decorator */
|
|
1358
1365
|
/******/
|
|
1359
1366
|
(function () {
|
|
1360
|
-
/******/
|
|
1367
|
+
/******/__nested_webpack_require_61961__.nmd = function (module) {
|
|
1361
1368
|
/******/module.paths = [];
|
|
1362
1369
|
/******/
|
|
1363
1370
|
if (!module.children) module.children = [];
|
|
@@ -1374,34 +1381,34 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1374
1381
|
(function () {
|
|
1375
1382
|
"use strict";
|
|
1376
1383
|
|
|
1377
|
-
|
|
1384
|
+
__nested_webpack_require_61961__.r(__webpack_exports__);
|
|
1378
1385
|
/* harmony export */
|
|
1379
|
-
|
|
1386
|
+
__nested_webpack_require_61961__.d(__webpack_exports__, {
|
|
1380
1387
|
/* harmony export */"default": function _default() {
|
|
1381
1388
|
return __WEBPACK_DEFAULT_EXPORT__;
|
|
1382
1389
|
}
|
|
1383
1390
|
/* harmony export */
|
|
1384
1391
|
});
|
|
1385
1392
|
/* harmony import */
|
|
1386
|
-
var react__WEBPACK_IMPORTED_MODULE_0__ =
|
|
1393
|
+
var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_61961__(787);
|
|
1387
1394
|
/* harmony import */
|
|
1388
|
-
var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/
|
|
1395
|
+
var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_61961__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1389
1396
|
/* harmony import */
|
|
1390
|
-
var funda_root_portal__WEBPACK_IMPORTED_MODULE_1__ =
|
|
1397
|
+
var funda_root_portal__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_61961__(909);
|
|
1391
1398
|
/* harmony import */
|
|
1392
|
-
var funda_root_portal__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/
|
|
1399
|
+
var funda_root_portal__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nested_webpack_require_61961__.n(funda_root_portal__WEBPACK_IMPORTED_MODULE_1__);
|
|
1393
1400
|
/* harmony import */
|
|
1394
|
-
var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_2__ =
|
|
1401
|
+
var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_61961__(85);
|
|
1395
1402
|
/* harmony import */
|
|
1396
|
-
var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/
|
|
1403
|
+
var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nested_webpack_require_61961__.n(funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_2__);
|
|
1397
1404
|
/* harmony import */
|
|
1398
|
-
var funda_utils_dist_cjs_useDraggable__WEBPACK_IMPORTED_MODULE_3__ =
|
|
1405
|
+
var funda_utils_dist_cjs_useDraggable__WEBPACK_IMPORTED_MODULE_3__ = __nested_webpack_require_61961__(771);
|
|
1399
1406
|
/* harmony import */
|
|
1400
|
-
var funda_utils_dist_cjs_useDraggable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/
|
|
1407
|
+
var funda_utils_dist_cjs_useDraggable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__nested_webpack_require_61961__.n(funda_utils_dist_cjs_useDraggable__WEBPACK_IMPORTED_MODULE_3__);
|
|
1401
1408
|
/* harmony import */
|
|
1402
|
-
var funda_utils_dist_cjs_bodyScrollLock__WEBPACK_IMPORTED_MODULE_4__ =
|
|
1409
|
+
var funda_utils_dist_cjs_bodyScrollLock__WEBPACK_IMPORTED_MODULE_4__ = __nested_webpack_require_61961__(70);
|
|
1403
1410
|
/* harmony import */
|
|
1404
|
-
var funda_utils_dist_cjs_bodyScrollLock__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/
|
|
1411
|
+
var funda_utils_dist_cjs_bodyScrollLock__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__nested_webpack_require_61961__.n(funda_utils_dist_cjs_bodyScrollLock__WEBPACK_IMPORTED_MODULE_4__);
|
|
1405
1412
|
function _slicedToArray(arr, i) {
|
|
1406
1413
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
1407
1414
|
}
|