@ainias42/react-bootstrap-mobile 0.1.17 → 0.1.19
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/.npnignore +3 -0
- package/bootstrapReactMobile.ts +1 -0
- package/dist/bootstrapReactMobile.d.ts +1 -0
- package/dist/bootstrapReactMobile.js +427 -379
- package/dist/bootstrapReactMobile.js.map +1 -1
- package/dist/src/Components/FormElements/ColorInput/ColorInput.d.ts +2 -1
- package/dist/src/Components/Icon/DoubleIcon.d.ts +7 -0
- package/dist/src/Components/Layout/InlineBlock.d.ts +3 -1
- package/dist/src/Components/Menu/HoverMenu.d.ts +1 -1
- package/package.json +1 -1
- package/src/Components/FormElements/ColorInput/ColorInput.tsx +43 -40
- package/src/Components/FormElements/SearchSelectInput/seachSelectInput.scss +2 -0
- package/src/Components/FormElements/Select/Select.tsx +3 -3
- package/src/Components/Hooks/useKeyListener.ts +1 -1
- package/src/Components/Icon/DoubleIcon.tsx +34 -0
- package/src/Components/Icon/icon.scss +11 -0
- package/src/Components/Layout/InlineBlock.tsx +3 -1
- package/src/Components/Menu/HoverMenu.tsx +11 -4
- package/src/Components/Toast/toast.scss +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @ainias42/react-bootstrap-mobile v0.1.
|
|
3
|
+
* @ainias42/react-bootstrap-mobile v0.1.18
|
|
4
4
|
* git+https://github.com/Ainias/Bootstrap-React-Mobile.git
|
|
5
5
|
* Copyright (c) Silas Günther and project contributors.
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
@@ -1518,7 +1518,7 @@ var ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = __webpack_require__(7537);
|
|
|
1518
1518
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3645);
|
|
1519
1519
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);
|
|
1520
1520
|
// Module
|
|
1521
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.input__sEopK{display:inline-block;width:100%;position:relative;padding-bottom:.1rem}.input__sEopK:focus-within .selectableOptionContainer__kutkQ{display:inherit}.material-design .input__sEopK{background-image:linear-gradient(to top, transparent 1px, #afafaf 1px);background-size:100% 2px;background-repeat:no-repeat;background-position:center bottom;padding-bottom:2px}.material-design .input__sEopK:focus{background-image:linear-gradient(var(--flavor-accent), var(--flavor-accent)),linear-gradient(to top, transparent 1px, #afafaf 1px)}.flat-design .input__sEopK,.flat-design .input__sEopK:focus{border-bottom:1px solid var(--border-light)}.input__sEopK .label__jJsSu{display:block;font-weight:bold}.input__sEopK .text__v0KcT{width:100%;background-color:rgba(0,0,0,0);border:0;outline:none;padding:0;background-image:none}.material-design .input__sEopK .text__v0KcT{color:#212121}.flat-design .input__sEopK .text__v0KcT{color:#1f1f21}.inputContainer__R_CDq{display:flex}.tag__BTX7E{color:#fff;background-color:var(--flavor-accent);padding:.1rem .2rem;margin-right:.1rem;margin-bottom:.1rem;border-radius:4px}.selectableOptionContainer__kutkQ{display:none;position:fixed;background-color:#fff;z-index:1100;border:1px solid var(--border-light)}.selectableOptionContainer__kutkQ .selectableOption__HHU91{padding-left:.2rem;padding-right:.2rem;cursor:pointer}.selectableOptionContainer__kutkQ .selectableOption__HHU91.active__JedWZ{color:#fff;background-color:var(--flavor-accent)}`, "",{"version":3,"sources":["webpack://./src/Components/FormElements/SearchSelectInput/seachSelectInput.scss","webpack://./src/scss/_designMixin.scss"],"names":[],"mappings":"AAGA,cACE,oBAAA,CACA,UAAA,CACA,iBAAA,CACA,oBAAA,CAGE,6DACE,eAAA,CCPO,+BDYT,sEAAA,CACA,wBAAA,CACA,2BAAA,CACA,iCAAA,CACA,kBAAA,CAEA,qCACE,kIAAA,CAMF,4DACE,2CAAA,CAIJ,4BACE,aAAA,CACA,gBAAA,CAGF,2BACE,UAAA,CACA,8BAAA,CACA,QAAA,CACA,YAAA,CACA,SAAA,CACA,qBAAA,CCzCS,4CD4CP,aAAA,CC5CO,wCDgDP,aAAA,CAKN,uBACE,YAAA,CAIF,YACE,UAAA,CACA,qCAAA,CACA,mBAAA,CACA,kBAAA,CACA,mBAAA,CACA,iBAAA,CAGF,kCACE,YAAA,CACA,cAAA,CACA,qBAAA,CACA,YAAA,CACA,oCAAA,CAGA,2DACE,kBAAA,CACA,mBAAA,CACA,cAAA,CAEA,yEACE,UAAA,CACA,qCAAA","sourcesContent":["@import \"../../../scss/variables\";\n@import \"../../../scss/designMixin\";\n\n.input {\n display: inline-block;\n width: 100%;\n position: relative;\n padding-bottom: 0.1rem;\n\n &:focus-within {\n .selectableOptionContainer {\n display: inherit;\n }\n }\n\n @include design($material) {\n background-image: linear-gradient(to top, transparent 1px, #afafaf 1px);\n background-size: 100% 2px;\n background-repeat: no-repeat;\n background-position: center bottom;\n padding-bottom: 2px;\n\n &:focus {\n background-image: linear-gradient(var(--flavor-accent), var(--flavor-accent)),\n linear-gradient(to top, transparent 1px, #afafaf 1px);\n }\n }\n\n @include design($flat) {\n &, &:focus {\n border-bottom: 1px solid var(--border-light);\n }\n }\n\n .label {\n display: block;\n font-weight: bold;\n }\n\n .text {\n width: 100%;\n background-color: transparent;\n border: 0;\n outline: none;\n padding: 0;\n background-image: none;\n\n @include design($material) {\n color: #212121;\n }\n\n @include design($flat) {\n color: #1f1f21;\n }\n }\n}\n\n.inputContainer {\n display: flex;\n\n}\n\n.tag {\n color: white;\n background-color: var(--flavor-accent);\n padding: 0.1rem 0.2rem;\n margin-right: 0.1rem;\n margin-bottom: 0.1rem;\n border-radius: 4px;\n}\n\n.selectableOptionContainer {\n display: none;\n position: fixed;\n background-color: white;\n z-index: 1100;\n border: 1px solid var(--border-light);\n\n\n .selectableOption {\n padding-left: 0.2rem;\n padding-right: 0.2rem;\n cursor: pointer;\n\n &.active {\n color: white;\n background-color: var(--flavor-accent);\n }\n }\n}\n","@use 'sass:selector';\n\n@mixin design($designName) {\n @if & {\n @at-root #{selector.nest(':global(.'+$designName+\")\", &)} {\n @content\n }\n } @else {\n :global(.#{$designName}) {\n @content\n }\n }\n}\n"],"sourceRoot":""}]);
|
|
1521
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.input__sEopK{display:inline-block;width:100%;position:relative;padding-bottom:.1rem}.input__sEopK:focus-within .selectableOptionContainer__kutkQ{display:inherit}.material-design .input__sEopK{background-image:linear-gradient(to top, transparent 1px, #afafaf 1px);background-size:100% 2px;background-repeat:no-repeat;background-position:center bottom;padding-bottom:2px}.material-design .input__sEopK:focus{background-image:linear-gradient(var(--flavor-accent), var(--flavor-accent)),linear-gradient(to top, transparent 1px, #afafaf 1px)}.flat-design .input__sEopK,.flat-design .input__sEopK:focus{border-bottom:1px solid var(--border-light)}.input__sEopK .label__jJsSu{display:block;font-weight:bold}.input__sEopK .text__v0KcT{width:100%;background-color:rgba(0,0,0,0);border:0;outline:none;padding:0;background-image:none}.material-design .input__sEopK .text__v0KcT{color:#212121}.flat-design .input__sEopK .text__v0KcT{color:#1f1f21}.inputContainer__R_CDq{display:flex}.tag__BTX7E{--text-primary-default-color: white;color:#fff;background-color:var(--flavor-accent);padding:.1rem .2rem;margin-right:.1rem;margin-bottom:.1rem;border-radius:4px}.selectableOptionContainer__kutkQ{display:none;position:fixed;background-color:#fff;z-index:1100;border:1px solid var(--border-light)}.selectableOptionContainer__kutkQ .selectableOption__HHU91{padding-left:.2rem;padding-right:.2rem;cursor:pointer}.selectableOptionContainer__kutkQ .selectableOption__HHU91.active__JedWZ{--text-primary-default-color: white;color:#fff;background-color:var(--flavor-accent)}`, "",{"version":3,"sources":["webpack://./src/Components/FormElements/SearchSelectInput/seachSelectInput.scss","webpack://./src/scss/_designMixin.scss"],"names":[],"mappings":"AAGA,cACE,oBAAA,CACA,UAAA,CACA,iBAAA,CACA,oBAAA,CAGE,6DACE,eAAA,CCPO,+BDYT,sEAAA,CACA,wBAAA,CACA,2BAAA,CACA,iCAAA,CACA,kBAAA,CAEA,qCACE,kIAAA,CAMF,4DACE,2CAAA,CAIJ,4BACE,aAAA,CACA,gBAAA,CAGF,2BACE,UAAA,CACA,8BAAA,CACA,QAAA,CACA,YAAA,CACA,SAAA,CACA,qBAAA,CCzCS,4CD4CP,aAAA,CC5CO,wCDgDP,aAAA,CAKN,uBACE,YAAA,CAIF,YACE,mCAAA,CACA,UAAA,CACA,qCAAA,CACA,mBAAA,CACA,kBAAA,CACA,mBAAA,CACA,iBAAA,CAGF,kCACE,YAAA,CACA,cAAA,CACA,qBAAA,CACA,YAAA,CACA,oCAAA,CAGA,2DACE,kBAAA,CACA,mBAAA,CACA,cAAA,CAEA,yEACE,mCAAA,CACA,UAAA,CACA,qCAAA","sourcesContent":["@import \"../../../scss/variables\";\n@import \"../../../scss/designMixin\";\n\n.input {\n display: inline-block;\n width: 100%;\n position: relative;\n padding-bottom: 0.1rem;\n\n &:focus-within {\n .selectableOptionContainer {\n display: inherit;\n }\n }\n\n @include design($material) {\n background-image: linear-gradient(to top, transparent 1px, #afafaf 1px);\n background-size: 100% 2px;\n background-repeat: no-repeat;\n background-position: center bottom;\n padding-bottom: 2px;\n\n &:focus {\n background-image: linear-gradient(var(--flavor-accent), var(--flavor-accent)),\n linear-gradient(to top, transparent 1px, #afafaf 1px);\n }\n }\n\n @include design($flat) {\n &, &:focus {\n border-bottom: 1px solid var(--border-light);\n }\n }\n\n .label {\n display: block;\n font-weight: bold;\n }\n\n .text {\n width: 100%;\n background-color: transparent;\n border: 0;\n outline: none;\n padding: 0;\n background-image: none;\n\n @include design($material) {\n color: #212121;\n }\n\n @include design($flat) {\n color: #1f1f21;\n }\n }\n}\n\n.inputContainer {\n display: flex;\n\n}\n\n.tag {\n --text-primary-default-color: white;\n color: white;\n background-color: var(--flavor-accent);\n padding: 0.1rem 0.2rem;\n margin-right: 0.1rem;\n margin-bottom: 0.1rem;\n border-radius: 4px;\n}\n\n.selectableOptionContainer {\n display: none;\n position: fixed;\n background-color: white;\n z-index: 1100;\n border: 1px solid var(--border-light);\n\n\n .selectableOption {\n padding-left: 0.2rem;\n padding-right: 0.2rem;\n cursor: pointer;\n\n &.active {\n --text-primary-default-color: white;\n color: white;\n background-color: var(--flavor-accent);\n }\n }\n}\n","@use 'sass:selector';\n\n@mixin design($designName) {\n @if & {\n @at-root #{selector.nest(':global(.'+$designName+\")\", &)} {\n @content\n }\n } @else {\n :global(.#{$designName}) {\n @content\n }\n }\n}\n"],"sourceRoot":""}]);
|
|
1522
1522
|
// Exports
|
|
1523
1523
|
___CSS_LOADER_EXPORT___.locals = {
|
|
1524
1524
|
"input": `input__sEopK`,
|
|
@@ -1625,11 +1625,13 @@ var ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = __webpack_require__(7537);
|
|
|
1625
1625
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3645);
|
|
1626
1626
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);
|
|
1627
1627
|
// Module
|
|
1628
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.margin__TTRt0{margin-left:.3rem;margin-right:.3rem}.imgIcon__eyCWg{width:calc(1em + 4px);height:calc(1em + 4px);object-fit:contain}`, "",{"version":3,"sources":["webpack://./src/Components/Icon/icon.scss"],"names":[],"mappings":"AAAA,eACE,iBAAA,CACA,kBAAA,CAEF,gBACE,qBAAA,CACA,sBAAA,CACA,kBAAA","sourcesContent":[".margin {\n margin-left: 0.3rem;\n margin-right: 0.3rem;\n}\n.imgIcon {\n width: calc(1em + 4px);\n height: calc(1em + 4px);\n object-fit: contain;\n}\n"],"sourceRoot":""}]);
|
|
1628
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.margin__TTRt0{margin-left:.3rem;margin-right:.3rem}.imgIcon__eyCWg{width:calc(1em + 4px);height:calc(1em + 4px);object-fit:contain}.doubleIconContainer__Lj1vi{position:relative;padding:3px}.doubleIconContainer__Lj1vi .secondIcon__pYOc7{position:absolute;right:3px;bottom:3px;pointer-events:none}`, "",{"version":3,"sources":["webpack://./src/Components/Icon/icon.scss"],"names":[],"mappings":"AAAA,eACE,iBAAA,CACA,kBAAA,CAEF,gBACE,qBAAA,CACA,sBAAA,CACA,kBAAA,CAGF,4BACE,iBAAA,CACA,WAAA,CACA,+CACE,iBAAA,CACA,SAAA,CACA,UAAA,CACA,mBAAA","sourcesContent":[".margin {\n margin-left: 0.3rem;\n margin-right: 0.3rem;\n}\n.imgIcon {\n width: calc(1em + 4px);\n height: calc(1em + 4px);\n object-fit: contain;\n}\n\n.doubleIconContainer {\n position: relative;\n padding: 3px;\n .secondIcon {\n position: absolute;\n right: 3px;\n bottom: 3px;\n pointer-events: none;\n }\n}\n"],"sourceRoot":""}]);
|
|
1629
1629
|
// Exports
|
|
1630
1630
|
___CSS_LOADER_EXPORT___.locals = {
|
|
1631
1631
|
"margin": `margin__TTRt0`,
|
|
1632
|
-
"imgIcon": `imgIcon__eyCWg
|
|
1632
|
+
"imgIcon": `imgIcon__eyCWg`,
|
|
1633
|
+
"doubleIconContainer": `doubleIconContainer__Lj1vi`,
|
|
1634
|
+
"secondIcon": `secondIcon__pYOc7`
|
|
1633
1635
|
};
|
|
1634
1636
|
module.exports = ___CSS_LOADER_EXPORT___;
|
|
1635
1637
|
|
|
@@ -2298,7 +2300,7 @@ var ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = __webpack_require__(7537);
|
|
|
2298
2300
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3645);
|
|
2299
2301
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);
|
|
2300
2302
|
// Module
|
|
2301
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.toastContainer__Cr4Pc{position:fixed;left:0;right:0;bottom:3rem;margin:auto;max-width:576px;z-index:1;display:flex;align-items:center;flex-direction:column}.toast__sXrim{background-color:rgba(0,0,0,.8);min-height:48px;line-height:1.5;color:#fff;font-size:.77rem;letter-spacing:normal;transition-duration:.25s;margin:8px}.toast__sXrim.hiding__VMWIu{opacity:0}.material-design .toast__sXrim{padding:16px 24px}.flat-design .toast__sXrim{border-radius:.5rem;padding:16px}.toast__sXrim .action__WbNF_{text-transform:uppercase;margin-left:24px}.material-design .toast__sXrim .action__WbNF_{color:#bbdefb}.flat-design .toast__sXrim .action__WbNF_{color:#fff}`, "",{"version":3,"sources":["webpack://./src/Components/Toast/toast.scss","webpack://./src/scss/_designMixin.scss"],"names":[],"mappings":"AAGA,uBACE,cAAA,CACA,MAAA,CACA,OAAA,CACA,WAAA,CACA,WAAA,CACA,eAAA,CACA,SAAA,CACA,YAAA,CACA,kBAAA,CACA,qBAAA,CAGF,cACE,+BAAA,CACA,eAAA,CACA,eAAA,CACA,UAAA,CACA,gBAAA,CACA,qBAAA,CACA,wBAAA,CACA,UAAA,CAEA,4BACE,SAAA,
|
|
2303
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.toastContainer__Cr4Pc{position:fixed;left:0;right:0;bottom:3rem;margin:auto;max-width:576px;z-index:1;display:flex;align-items:center;flex-direction:column}.toast__sXrim{background-color:rgba(0,0,0,.8);min-height:48px;line-height:1.5;--text-primary-default-color: white;color:#fff;font-size:.77rem;letter-spacing:normal;transition-duration:.25s;margin:8px}.toast__sXrim.hiding__VMWIu{opacity:0}.material-design .toast__sXrim{padding:16px 24px}.flat-design .toast__sXrim{border-radius:.5rem;padding:16px}.toast__sXrim .action__WbNF_{text-transform:uppercase;margin-left:24px}.material-design .toast__sXrim .action__WbNF_{color:#bbdefb}.flat-design .toast__sXrim .action__WbNF_{color:#fff}`, "",{"version":3,"sources":["webpack://./src/Components/Toast/toast.scss","webpack://./src/scss/_designMixin.scss"],"names":[],"mappings":"AAGA,uBACE,cAAA,CACA,MAAA,CACA,OAAA,CACA,WAAA,CACA,WAAA,CACA,eAAA,CACA,SAAA,CACA,YAAA,CACA,kBAAA,CACA,qBAAA,CAGF,cACE,+BAAA,CACA,eAAA,CACA,eAAA,CACA,mCAAA,CACA,UAAA,CACA,gBAAA,CACA,qBAAA,CACA,wBAAA,CACA,UAAA,CAEA,4BACE,SAAA,CCxBS,+BD4BT,iBAAA,CC5BS,2BDgCT,mBAAA,CACA,YAAA,CAGF,6BACE,wBAAA,CACA,gBAAA,CCtCS,8CDyCP,aAAA,CCzCO,0CD4CP,UAAA","sourcesContent":["@import \"../../scss/variables\";\n@import \"../../scss/designMixin\";\n\n.toastContainer {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 3rem;\n margin: auto;\n max-width: map-get($grid-breakpoints, \"sm\");\n z-index: 1;\n display: flex;\n align-items: center;\n flex-direction: column;\n}\n\n.toast {\n background-color: rgba(0, 0, 0, 0.8);\n min-height: 48px;\n line-height: 1.5;\n --text-primary-default-color: white;\n color: white;\n font-size: 0.77rem;\n letter-spacing: normal;\n transition-duration: 0.25s;\n margin: 8px;\n\n &.hiding {\n opacity: 0;\n }\n\n @include design($material) {\n padding: 16px 24px;\n }\n\n @include design($flat) {\n border-radius: 0.5rem;\n padding: 16px;\n }\n\n .action {\n text-transform: uppercase;\n margin-left: 24px;\n\n @include design($material) {\n color: #bbdefb\n }\n @include design($flat) {\n color: #ffffff;\n }\n }\n\n}\n","@use 'sass:selector';\n\n@mixin design($designName) {\n @if & {\n @at-root #{selector.nest(':global(.'+$designName+\")\", &)} {\n @content\n }\n } @else {\n :global(.#{$designName}) {\n @content\n }\n }\n}\n"],"sourceRoot":""}]);
|
|
2302
2304
|
// Exports
|
|
2303
2305
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2304
2306
|
"toastContainer": `toastContainer__Cr4Pc`,
|
|
@@ -9619,6 +9621,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
9619
9621
|
DialogBackground: () => (/* reexport */ DialogBackground),
|
|
9620
9622
|
DialogContainer: () => (/* reexport */ DialogContainer),
|
|
9621
9623
|
DialogProvider: () => (/* reexport */ DialogProvider),
|
|
9624
|
+
DoubleIcon: () => (/* reexport */ DoubleIcon),
|
|
9622
9625
|
DragItem: () => (/* reexport */ DragItemMemo),
|
|
9623
9626
|
DropArea: () => (/* reexport */ DropAreaMemo),
|
|
9624
9627
|
FileInput: () => (/* reexport */ FileInput),
|
|
@@ -22274,6 +22277,266 @@ function useSharedSelectedColor(key, numberSavedColors = 15) {
|
|
|
22274
22277
|
addColor
|
|
22275
22278
|
};
|
|
22276
22279
|
}
|
|
22280
|
+
// EXTERNAL MODULE: ./src/Components/Menu/menu.scss
|
|
22281
|
+
var menu = __webpack_require__(1266);
|
|
22282
|
+
var menu_default = /*#__PURE__*/__webpack_require__.n(menu);
|
|
22283
|
+
;// CONCATENATED MODULE: ./src/helper/withRenderBrowserOnly.tsx
|
|
22284
|
+
var withRenderBrowserOnly_rest = undefined && undefined.__rest || function (s, e) {
|
|
22285
|
+
var t = {};
|
|
22286
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
22287
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22288
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
22289
|
+
}
|
|
22290
|
+
return t;
|
|
22291
|
+
};
|
|
22292
|
+
|
|
22293
|
+
function withRenderBrowserOnly(Component) {
|
|
22294
|
+
const displayName = `WithRenderBrowserOnly(${Component.displayName || Component.name})`;
|
|
22295
|
+
const HocComponent = (_a, ref) => {
|
|
22296
|
+
var {
|
|
22297
|
+
children
|
|
22298
|
+
} = _a,
|
|
22299
|
+
props = withRenderBrowserOnly_rest(_a, ["children"]);
|
|
22300
|
+
const [isBrowser, setIsBrowser] = (0,external_react_.useState)(false);
|
|
22301
|
+
(0,external_react_.useEffect)(() => setIsBrowser(true), []);
|
|
22302
|
+
if (!isBrowser) {
|
|
22303
|
+
return null;
|
|
22304
|
+
}
|
|
22305
|
+
const newProps = props;
|
|
22306
|
+
if (ref && Object.keys(ref).length > 0) {
|
|
22307
|
+
newProps.ref = ref;
|
|
22308
|
+
}
|
|
22309
|
+
return (
|
|
22310
|
+
/*#__PURE__*/
|
|
22311
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
22312
|
+
// @ts-ignore
|
|
22313
|
+
external_react_default().createElement(Component, newProps, children)
|
|
22314
|
+
);
|
|
22315
|
+
};
|
|
22316
|
+
HocComponent.displayName = displayName;
|
|
22317
|
+
return HocComponent;
|
|
22318
|
+
}
|
|
22319
|
+
;// CONCATENATED MODULE: ./src/WindowContext/WindowContext.ts
|
|
22320
|
+
|
|
22321
|
+
const WindowContext = /*#__PURE__*/external_react_default().createContext(undefined);
|
|
22322
|
+
WindowContext.displayName = 'WindowContext';
|
|
22323
|
+
function useWindow() {
|
|
22324
|
+
var _a;
|
|
22325
|
+
return (_a = (0,external_react_.useContext)(WindowContext)) !== null && _a !== void 0 ? _a : typeof window !== 'undefined' ? window : undefined;
|
|
22326
|
+
}
|
|
22327
|
+
;// CONCATENATED MODULE: ./src/Components/Menu/MenuCloseContext.ts
|
|
22328
|
+
|
|
22329
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
22330
|
+
const MenuCloseContext = /*#__PURE__*/external_react_default().createContext(() => {});
|
|
22331
|
+
const MenuCloseContextProvider = MenuCloseContext.Provider;
|
|
22332
|
+
function useMenuClose() {
|
|
22333
|
+
return (0,external_react_.useContext)(MenuCloseContext);
|
|
22334
|
+
}
|
|
22335
|
+
;// CONCATENATED MODULE: ./src/Components/Menu/MenuItem.tsx
|
|
22336
|
+
function MenuItem_extends() { MenuItem_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return MenuItem_extends.apply(this, arguments); }
|
|
22337
|
+
var MenuItem_rest = undefined && undefined.__rest || function (s, e) {
|
|
22338
|
+
var t = {};
|
|
22339
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
22340
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22341
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
22342
|
+
}
|
|
22343
|
+
return t;
|
|
22344
|
+
};
|
|
22345
|
+
|
|
22346
|
+
|
|
22347
|
+
|
|
22348
|
+
|
|
22349
|
+
|
|
22350
|
+
|
|
22351
|
+
|
|
22352
|
+
|
|
22353
|
+
|
|
22354
|
+
const MenuItem = withMemo(function MenuItem(_a) {
|
|
22355
|
+
// Refs
|
|
22356
|
+
var {
|
|
22357
|
+
children,
|
|
22358
|
+
icon,
|
|
22359
|
+
iconColor,
|
|
22360
|
+
className,
|
|
22361
|
+
onClick,
|
|
22362
|
+
onMouseEnter,
|
|
22363
|
+
onMouseLeave,
|
|
22364
|
+
active,
|
|
22365
|
+
item,
|
|
22366
|
+
disabled = false
|
|
22367
|
+
} = _a,
|
|
22368
|
+
props = MenuItem_rest(_a, ["children", "icon", "iconColor", "className", "onClick", "onMouseEnter", "onMouseLeave", "active", "item", "disabled"]);
|
|
22369
|
+
// States/Variables/Selectors
|
|
22370
|
+
const close = useMenuClose();
|
|
22371
|
+
// Dispatch
|
|
22372
|
+
// Callbacks
|
|
22373
|
+
const onClickInner = (0,external_react_.useCallback)(() => {
|
|
22374
|
+
if (disabled) {
|
|
22375
|
+
return;
|
|
22376
|
+
}
|
|
22377
|
+
onClick(item);
|
|
22378
|
+
close();
|
|
22379
|
+
}, [close, disabled, item, onClick]);
|
|
22380
|
+
const onMouseEnterInner = (0,external_react_.useCallback)(() => {
|
|
22381
|
+
if (disabled) {
|
|
22382
|
+
return;
|
|
22383
|
+
}
|
|
22384
|
+
onMouseEnter === null || onMouseEnter === void 0 ? void 0 : onMouseEnter(item);
|
|
22385
|
+
}, [disabled, item, onMouseEnter]);
|
|
22386
|
+
const onMouseLeaveInner = (0,external_react_.useCallback)(() => {
|
|
22387
|
+
if (disabled) {
|
|
22388
|
+
return;
|
|
22389
|
+
}
|
|
22390
|
+
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(item);
|
|
22391
|
+
}, [disabled, item, onMouseLeave]);
|
|
22392
|
+
// Effects
|
|
22393
|
+
// Other
|
|
22394
|
+
const childElements = typeof children === "string" ? /*#__PURE__*/external_react_default().createElement(tmp, null, children) : children;
|
|
22395
|
+
// RenderFunctions
|
|
22396
|
+
return /*#__PURE__*/external_react_default().createElement(ClickableMemo, MenuItem_extends({
|
|
22397
|
+
className: classnames_default()((menu_default()).item, {
|
|
22398
|
+
[(menu_default()).disabled]: disabled,
|
|
22399
|
+
[(menu_default()).active]: active
|
|
22400
|
+
}, className)
|
|
22401
|
+
}, props, {
|
|
22402
|
+
onClick: onClickInner,
|
|
22403
|
+
onMouseEnter: onMouseEnterInner,
|
|
22404
|
+
onMouseLeave: onMouseLeaveInner,
|
|
22405
|
+
__allowChildren: "all"
|
|
22406
|
+
}), /*#__PURE__*/external_react_default().createElement(BlockMemo, {
|
|
22407
|
+
className: classnames_default()((menu_default()).itemChildren)
|
|
22408
|
+
}, !!icon && /*#__PURE__*/external_react_default().createElement(Icon, {
|
|
22409
|
+
icon: icon,
|
|
22410
|
+
color: iconColor,
|
|
22411
|
+
className: (menu_default()).icon
|
|
22412
|
+
}), childElements));
|
|
22413
|
+
}, (menu_default()), "text");
|
|
22414
|
+
;// CONCATENATED MODULE: external "react-dom"
|
|
22415
|
+
const external_react_dom_namespaceObject = require("react-dom");
|
|
22416
|
+
;// CONCATENATED MODULE: ./src/Components/Menu/Menu.tsx
|
|
22417
|
+
|
|
22418
|
+
|
|
22419
|
+
|
|
22420
|
+
|
|
22421
|
+
|
|
22422
|
+
|
|
22423
|
+
|
|
22424
|
+
|
|
22425
|
+
|
|
22426
|
+
|
|
22427
|
+
|
|
22428
|
+
const MENU_CONTAINER_CLASS = "rbm-menu-container";
|
|
22429
|
+
const Menu = withMemo(withRenderBrowserOnly(function Menu({
|
|
22430
|
+
className,
|
|
22431
|
+
style,
|
|
22432
|
+
items,
|
|
22433
|
+
y,
|
|
22434
|
+
x,
|
|
22435
|
+
isOpen,
|
|
22436
|
+
onClose,
|
|
22437
|
+
children,
|
|
22438
|
+
offsetY = 0,
|
|
22439
|
+
offsetX = 0
|
|
22440
|
+
}) {
|
|
22441
|
+
// Variables
|
|
22442
|
+
// Refs
|
|
22443
|
+
const menuRef = (0,external_react_.useRef)(null);
|
|
22444
|
+
const window = useWindow();
|
|
22445
|
+
// States
|
|
22446
|
+
const [portalContainer] = (0,external_react_.useState)(() => {
|
|
22447
|
+
return document.createElement('div');
|
|
22448
|
+
});
|
|
22449
|
+
const [innerX, setInnerX] = (0,external_react_.useState)(x);
|
|
22450
|
+
const [innerY, setInnerY] = (0,external_react_.useState)(y);
|
|
22451
|
+
// Selectors
|
|
22452
|
+
// Callbacks
|
|
22453
|
+
// Effects
|
|
22454
|
+
(0,external_react_.useEffect)(() => {
|
|
22455
|
+
if (isOpen) {
|
|
22456
|
+
const listener = e => {
|
|
22457
|
+
var _a;
|
|
22458
|
+
if (!((_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
|
|
22459
|
+
onClose();
|
|
22460
|
+
}
|
|
22461
|
+
};
|
|
22462
|
+
window === null || window === void 0 ? void 0 : window.addEventListener('mousedown', listener, {
|
|
22463
|
+
capture: true
|
|
22464
|
+
});
|
|
22465
|
+
return () => window === null || window === void 0 ? void 0 : window.removeEventListener('mousedown', listener, {
|
|
22466
|
+
capture: true
|
|
22467
|
+
});
|
|
22468
|
+
}
|
|
22469
|
+
return undefined;
|
|
22470
|
+
}, [isOpen, onClose, window]);
|
|
22471
|
+
(0,external_react_.useLayoutEffect)(() => {
|
|
22472
|
+
if (!isOpen) {
|
|
22473
|
+
return;
|
|
22474
|
+
}
|
|
22475
|
+
let elem = window === null || window === void 0 ? void 0 : window.document.body.querySelector("." + MENU_CONTAINER_CLASS);
|
|
22476
|
+
if (!elem) {
|
|
22477
|
+
elem = window === null || window === void 0 ? void 0 : window.document.body;
|
|
22478
|
+
}
|
|
22479
|
+
elem === null || elem === void 0 ? void 0 : elem.appendChild(portalContainer);
|
|
22480
|
+
}, [isOpen, portalContainer, window === null || window === void 0 ? void 0 : window.document.body]);
|
|
22481
|
+
(0,external_react_.useLayoutEffect)(() => {
|
|
22482
|
+
var _a;
|
|
22483
|
+
if (!menuRef.current) {
|
|
22484
|
+
return;
|
|
22485
|
+
}
|
|
22486
|
+
const width = parseFloat(getComputedStyle(menuRef.current).width);
|
|
22487
|
+
let newX = x;
|
|
22488
|
+
if (newX > ((_a = window === null || window === void 0 ? void 0 : window.innerWidth) !== null && _a !== void 0 ? _a : 0) - width) {
|
|
22489
|
+
newX -= width + offsetX;
|
|
22490
|
+
}
|
|
22491
|
+
if (newX < 0) {
|
|
22492
|
+
newX = 0;
|
|
22493
|
+
}
|
|
22494
|
+
setInnerX(newX);
|
|
22495
|
+
}, [offsetX, window === null || window === void 0 ? void 0 : window.innerWidth, x]);
|
|
22496
|
+
(0,external_react_.useLayoutEffect)(() => {
|
|
22497
|
+
var _a;
|
|
22498
|
+
if (!menuRef.current) {
|
|
22499
|
+
return;
|
|
22500
|
+
}
|
|
22501
|
+
const height = parseFloat(getComputedStyle(menuRef.current).height);
|
|
22502
|
+
let newY = y;
|
|
22503
|
+
if (newY > ((_a = window === null || window === void 0 ? void 0 : window.innerHeight) !== null && _a !== void 0 ? _a : 0) - height) {
|
|
22504
|
+
newY -= height + offsetY;
|
|
22505
|
+
}
|
|
22506
|
+
if (newY < 0) {
|
|
22507
|
+
newY = 0;
|
|
22508
|
+
}
|
|
22509
|
+
setInnerY(newY);
|
|
22510
|
+
}, [offsetY, window === null || window === void 0 ? void 0 : window.innerHeight, y]);
|
|
22511
|
+
// Other
|
|
22512
|
+
// Render Functions
|
|
22513
|
+
if (!isOpen) {
|
|
22514
|
+
return null;
|
|
22515
|
+
}
|
|
22516
|
+
return /*#__PURE__*/external_react_.createElement(external_react_.Fragment, null, /*#__PURE__*/(0,external_react_dom_namespaceObject.createPortal)( /*#__PURE__*/external_react_.createElement(MenuCloseContextProvider, {
|
|
22517
|
+
value: onClose
|
|
22518
|
+
}, /*#__PURE__*/external_react_.createElement(BlockMemo, {
|
|
22519
|
+
className: classnames_default()(className, (menu_default()).menu),
|
|
22520
|
+
style: Object.assign(Object.assign({}, style), {
|
|
22521
|
+
top: innerY,
|
|
22522
|
+
left: innerX
|
|
22523
|
+
}),
|
|
22524
|
+
ref: menuRef,
|
|
22525
|
+
__allowChildren: "all"
|
|
22526
|
+
}, items === null || items === void 0 ? void 0 : items.map(item => {
|
|
22527
|
+
const icon = !!item.icon && typeof item.icon === "object" && "color" in item.icon ? item.icon.icon : item.icon;
|
|
22528
|
+
const iconColor = !!item.icon && typeof item.icon === "object" && "color" in item.icon ? item.icon.color : undefined;
|
|
22529
|
+
return /*#__PURE__*/external_react_.createElement(MenuItem, {
|
|
22530
|
+
key: item.key,
|
|
22531
|
+
onClick: item.callback,
|
|
22532
|
+
className: classnames_default()((menu_default()).item, item.className),
|
|
22533
|
+
onMouseEnter: item.onMouseEnter,
|
|
22534
|
+
icon: icon,
|
|
22535
|
+
iconColor: iconColor,
|
|
22536
|
+
onMouseLeave: item.onMouseLeave
|
|
22537
|
+
}, item.label);
|
|
22538
|
+
}), children)), portalContainer));
|
|
22539
|
+
}), (menu_default()));
|
|
22277
22540
|
;// CONCATENATED MODULE: ./src/Components/FormElements/ColorInput/ColorInput.tsx
|
|
22278
22541
|
var ColorInput_rest = undefined && undefined.__rest || function (s, e) {
|
|
22279
22542
|
var t = {};
|
|
@@ -22290,6 +22553,7 @@ var ColorInput_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
22290
22553
|
|
|
22291
22554
|
|
|
22292
22555
|
|
|
22556
|
+
|
|
22293
22557
|
function convertToHex(color, disableAlpha) {
|
|
22294
22558
|
let newColor = `#${color.r.toString(16).padStart(2, '0')}${color.g.toString(16).padStart(2, '0')}${color.b.toString(16).padStart(2, '0')}`;
|
|
22295
22559
|
if (color.a !== undefined && !disableAlpha) {
|
|
@@ -22311,11 +22575,11 @@ function ColorInput(_a) {
|
|
|
22311
22575
|
onClose,
|
|
22312
22576
|
disableAlpha,
|
|
22313
22577
|
presetColors,
|
|
22314
|
-
sharedColorKey
|
|
22578
|
+
sharedColorKey = "default",
|
|
22579
|
+
disabled
|
|
22315
22580
|
} = _a,
|
|
22316
|
-
otherProps = ColorInput_rest(_a, ["defaultValue", "value", "label", "onChangeColor", "onChangeColorComplete", "onOpen", "onClose", "disableAlpha", "presetColors", "sharedColorKey"]);
|
|
22581
|
+
otherProps = ColorInput_rest(_a, ["defaultValue", "value", "label", "onChangeColor", "onChangeColorComplete", "onOpen", "onClose", "disableAlpha", "presetColors", "sharedColorKey", "disabled"]);
|
|
22317
22582
|
// Refs
|
|
22318
|
-
const containerRef = (0,external_react_.useRef)(null);
|
|
22319
22583
|
const modalRef = (0,external_react_.useRef)(null);
|
|
22320
22584
|
// States
|
|
22321
22585
|
const [color, setColor] = (0,external_react_.useState)((_b = value !== null && value !== void 0 ? value : defaultValue) !== null && _b !== void 0 ? _b : '#000000FF');
|
|
@@ -22328,6 +22592,7 @@ function ColorInput(_a) {
|
|
|
22328
22592
|
colors,
|
|
22329
22593
|
addColor
|
|
22330
22594
|
} = useSharedSelectedColor(sharedColorKey);
|
|
22595
|
+
const realIsOpen = disabled !== true && isOpen;
|
|
22331
22596
|
const colVal = value !== null && value !== void 0 ? value : color;
|
|
22332
22597
|
// Selectors
|
|
22333
22598
|
// Callbacks
|
|
@@ -22347,21 +22612,22 @@ function ColorInput(_a) {
|
|
|
22347
22612
|
onChangeColorComplete(hexColor);
|
|
22348
22613
|
}
|
|
22349
22614
|
}, [disableAlpha, onChangeColorComplete]);
|
|
22350
|
-
const
|
|
22351
|
-
|
|
22352
|
-
|
|
22353
|
-
|
|
22354
|
-
onClose === null || onClose === void 0 ? void 0 : onClose(colVal);
|
|
22355
|
-
}
|
|
22615
|
+
const onMenuClose = (0,external_react_.useCallback)(() => {
|
|
22616
|
+
setIsOpen(false);
|
|
22617
|
+
addColor(colVal);
|
|
22618
|
+
onClose === null || onClose === void 0 ? void 0 : onClose(colVal);
|
|
22356
22619
|
}, [addColor, colVal, onClose]);
|
|
22357
22620
|
const openElement = (0,external_react_.useCallback)(e => {
|
|
22621
|
+
if (disabled) {
|
|
22622
|
+
return;
|
|
22623
|
+
}
|
|
22358
22624
|
setIsOpen(true);
|
|
22359
22625
|
setPosition({
|
|
22360
22626
|
x: e.clientX,
|
|
22361
22627
|
y: e.clientY
|
|
22362
22628
|
});
|
|
22363
22629
|
onOpen === null || onOpen === void 0 ? void 0 : onOpen(colVal);
|
|
22364
|
-
}, [colVal, onOpen]);
|
|
22630
|
+
}, [colVal, disabled, onOpen]);
|
|
22365
22631
|
// Effects
|
|
22366
22632
|
(0,external_react_.useLayoutEffect)(() => {
|
|
22367
22633
|
if (!modalRef.current) {
|
|
@@ -22370,34 +22636,30 @@ function ColorInput(_a) {
|
|
|
22370
22636
|
const dimension = modalRef.current.getBoundingClientRect();
|
|
22371
22637
|
if (dimension.right > window.innerWidth || dimension.bottom > window.innerHeight) {
|
|
22372
22638
|
const newPosition = {
|
|
22373
|
-
x: Math.max(0, Math.min(window.innerWidth - dimension.width, position.x)),
|
|
22374
|
-
y: Math.max(0, Math.min(window.innerHeight - dimension.height, position.y))
|
|
22639
|
+
x: Math.max(0, Math.min(window.innerWidth - dimension.width - 3, position.x)),
|
|
22640
|
+
y: Math.max(0, Math.min(window.innerHeight - dimension.height - 3, position.y))
|
|
22375
22641
|
};
|
|
22376
|
-
|
|
22642
|
+
if (newPosition.x !== position.x || newPosition.y !== position.y) {
|
|
22643
|
+
setPosition(newPosition);
|
|
22644
|
+
}
|
|
22377
22645
|
}
|
|
22378
22646
|
}, [position]);
|
|
22379
22647
|
// Other
|
|
22380
22648
|
// Render Functions
|
|
22381
22649
|
return /*#__PURE__*/external_react_.createElement("span", {
|
|
22382
22650
|
className: (colorInput_default()).colorInput
|
|
22383
|
-
},
|
|
22384
|
-
|
|
22385
|
-
|
|
22386
|
-
|
|
22387
|
-
|
|
22388
|
-
className: (colorInput_default()).modal,
|
|
22389
|
-
style: {
|
|
22390
|
-
top: position.y,
|
|
22391
|
-
left: position.x
|
|
22392
|
-
},
|
|
22393
|
-
ref: modalRef
|
|
22651
|
+
}, /*#__PURE__*/external_react_.createElement(Menu, {
|
|
22652
|
+
x: position.x,
|
|
22653
|
+
y: position.y,
|
|
22654
|
+
isOpen: realIsOpen,
|
|
22655
|
+
onClose: onMenuClose
|
|
22394
22656
|
}, /*#__PURE__*/external_react_.createElement(sketch_Sketch, {
|
|
22395
22657
|
color: colVal,
|
|
22396
22658
|
onChange: onChange,
|
|
22397
22659
|
onChangeComplete: onChangeComplete,
|
|
22398
22660
|
disableAlpha: disableAlpha,
|
|
22399
22661
|
presetColors: presetColors !== null && presetColors !== void 0 ? presetColors : colors
|
|
22400
|
-
}))
|
|
22662
|
+
})), /*#__PURE__*/external_react_.createElement("span", {
|
|
22401
22663
|
onClick: openElement,
|
|
22402
22664
|
className: (colorInput_default()).label
|
|
22403
22665
|
}, label), /*#__PURE__*/external_react_.createElement("span", {
|
|
@@ -22956,14 +23218,6 @@ const PasswordInput = withForwardRef(function PasswordInput(_a, ref) {
|
|
|
22956
23218
|
// EXTERNAL MODULE: ./src/Components/FormElements/SearchSelectInput/seachSelectInput.scss
|
|
22957
23219
|
var seachSelectInput = __webpack_require__(2399);
|
|
22958
23220
|
var seachSelectInput_default = /*#__PURE__*/__webpack_require__.n(seachSelectInput);
|
|
22959
|
-
;// CONCATENATED MODULE: ./src/WindowContext/WindowContext.ts
|
|
22960
|
-
|
|
22961
|
-
const WindowContext = /*#__PURE__*/external_react_default().createContext(undefined);
|
|
22962
|
-
WindowContext.displayName = 'WindowContext';
|
|
22963
|
-
function useWindow() {
|
|
22964
|
-
var _a;
|
|
22965
|
-
return (_a = (0,external_react_.useContext)(WindowContext)) !== null && _a !== void 0 ? _a : typeof window !== 'undefined' ? window : undefined;
|
|
22966
|
-
}
|
|
22967
23221
|
;// CONCATENATED MODULE: ./src/Components/FormElements/SearchSelectInput/SearchSelectInput.tsx
|
|
22968
23222
|
|
|
22969
23223
|
|
|
@@ -23146,7 +23400,7 @@ const Select = withMemo(function Select(_a) {
|
|
|
23146
23400
|
// States
|
|
23147
23401
|
// Selectors
|
|
23148
23402
|
// Callbacks
|
|
23149
|
-
const onChangeWithData =
|
|
23403
|
+
const [onChangeWithData, propsWithoutData] = useListenerWithExtractedProps('onChange', otherProps);
|
|
23150
23404
|
const onChange = (0,external_react_.useCallback)(e => {
|
|
23151
23405
|
onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(e.target.value);
|
|
23152
23406
|
onChangeWithData(e);
|
|
@@ -23165,7 +23419,7 @@ const Select = withMemo(function Select(_a) {
|
|
|
23165
23419
|
style: style
|
|
23166
23420
|
}, label ? /*#__PURE__*/external_react_.createElement("span", {
|
|
23167
23421
|
className: (select_default()).label
|
|
23168
|
-
}, label) : null, /*#__PURE__*/external_react_.createElement("select", Select_extends({},
|
|
23422
|
+
}, label) : null, /*#__PURE__*/external_react_.createElement("select", Select_extends({}, propsWithoutData, {
|
|
23169
23423
|
className: (select_default()).input,
|
|
23170
23424
|
onChange: onChange
|
|
23171
23425
|
}), options.map(option => {
|
|
@@ -23606,7 +23860,7 @@ function useKeyUpListener(key, listener, dependencies = [], ignoreFormElements =
|
|
|
23606
23860
|
(0,external_react_.useEffect)(() => {
|
|
23607
23861
|
const lowercaseKey = key.toLowerCase();
|
|
23608
23862
|
const keyListener = e => {
|
|
23609
|
-
if (e.key.toLowerCase() === lowercaseKey && (!ignoreFormElements || !isFormElement(e.target))) {
|
|
23863
|
+
if ((e.key === "Meta" || e.key.toLowerCase() === lowercaseKey) && (!ignoreFormElements || !isFormElement(e.target))) {
|
|
23610
23864
|
listener(e);
|
|
23611
23865
|
}
|
|
23612
23866
|
};
|
|
@@ -23708,6 +23962,46 @@ function useWindowDimensions() {
|
|
|
23708
23962
|
y: (_b = window === null || window === void 0 ? void 0 : window.innerHeight) !== null && _b !== void 0 ? _b : 0
|
|
23709
23963
|
};
|
|
23710
23964
|
}
|
|
23965
|
+
;// CONCATENATED MODULE: ./src/Components/Icon/DoubleIcon.tsx
|
|
23966
|
+
function DoubleIcon_extends() { DoubleIcon_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return DoubleIcon_extends.apply(this, arguments); }
|
|
23967
|
+
var DoubleIcon_rest = undefined && undefined.__rest || function (s, e) {
|
|
23968
|
+
var t = {};
|
|
23969
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
23970
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23971
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
23972
|
+
}
|
|
23973
|
+
return t;
|
|
23974
|
+
};
|
|
23975
|
+
|
|
23976
|
+
|
|
23977
|
+
|
|
23978
|
+
|
|
23979
|
+
|
|
23980
|
+
const DoubleIcon = withMemo(function DoubleIcon(_a) {
|
|
23981
|
+
// Refs
|
|
23982
|
+
var {
|
|
23983
|
+
secondIcon,
|
|
23984
|
+
secondIconColor,
|
|
23985
|
+
color
|
|
23986
|
+
} = _a,
|
|
23987
|
+
otherProps = DoubleIcon_rest(_a, ["secondIcon", "secondIconColor", "color"]);
|
|
23988
|
+
// States/Variables/Selectors
|
|
23989
|
+
// Dispatch
|
|
23990
|
+
// Callbacks
|
|
23991
|
+
// Effects
|
|
23992
|
+
// Other
|
|
23993
|
+
// RenderFunctions
|
|
23994
|
+
return /*#__PURE__*/external_react_default().createElement(InlineBlockMemo, {
|
|
23995
|
+
className: (icon_default()).doubleIconContainer
|
|
23996
|
+
}, /*#__PURE__*/external_react_default().createElement(Icon, DoubleIcon_extends({}, otherProps, {
|
|
23997
|
+
color: color
|
|
23998
|
+
})), /*#__PURE__*/external_react_default().createElement(Icon, {
|
|
23999
|
+
icon: secondIcon,
|
|
24000
|
+
size: "xs",
|
|
24001
|
+
className: (icon_default()).secondIcon,
|
|
24002
|
+
color: secondIconColor !== null && secondIconColor !== void 0 ? secondIconColor : color
|
|
24003
|
+
}));
|
|
24004
|
+
}, (icon_default()));
|
|
23711
24005
|
// EXTERNAL MODULE: ./src/Components/InViewport/inViewport.scss
|
|
23712
24006
|
var inViewport = __webpack_require__(4283);
|
|
23713
24007
|
var inViewport_default = /*#__PURE__*/__webpack_require__.n(inViewport);
|
|
@@ -26472,367 +26766,115 @@ const List = withMemo(function List({
|
|
|
26472
26766
|
index,
|
|
26473
26767
|
style: itemStyle
|
|
26474
26768
|
}) => renderItem(items[index], itemStyle, index), [items, renderItem]);
|
|
26475
|
-
const setHeight = (0,external_react_.useCallback)((_, height) => setItemHeight(height), []);
|
|
26476
|
-
// Effects
|
|
26477
|
-
// Other
|
|
26478
|
-
// Render Functions
|
|
26479
|
-
return /*#__PURE__*/external_react_.createElement(AutoSizer, null, ({
|
|
26480
|
-
height,
|
|
26481
|
-
width
|
|
26482
|
-
}) => {
|
|
26483
|
-
return /*#__PURE__*/external_react_.createElement(external_react_.Fragment, null, initialItemHeight === 0 && items.length > 0 && /*#__PURE__*/external_react_.createElement(SizeCalculatorMemo, {
|
|
26484
|
-
onSize: setHeight,
|
|
26485
|
-
absolute: true
|
|
26486
|
-
}, renderItem(items[0], {
|
|
26487
|
-
position: 'relative',
|
|
26488
|
-
top: '0px',
|
|
26489
|
-
left: '0px',
|
|
26490
|
-
width: '100%',
|
|
26491
|
-
zIndex: -1
|
|
26492
|
-
}, 0)), height !== undefined && width !== undefined && /*#__PURE__*/external_react_.createElement(FixedSizeList, {
|
|
26493
|
-
height: height,
|
|
26494
|
-
itemCount: items.length,
|
|
26495
|
-
width: width,
|
|
26496
|
-
itemSize: itemHeight,
|
|
26497
|
-
style: style,
|
|
26498
|
-
className: className,
|
|
26499
|
-
itemData: items
|
|
26500
|
-
}, renderItemInner));
|
|
26501
|
-
});
|
|
26502
|
-
}, (list_default()));
|
|
26503
|
-
// EXTERNAL MODULE: ./src/Components/LoadingCircle/loadingCircle.scss
|
|
26504
|
-
var loadingCircle = __webpack_require__(5191);
|
|
26505
|
-
var loadingCircle_default = /*#__PURE__*/__webpack_require__.n(loadingCircle);
|
|
26506
|
-
;// CONCATENATED MODULE: ./src/Components/LoadingCircle/LoadingCircle.tsx
|
|
26507
|
-
|
|
26508
|
-
|
|
26509
|
-
|
|
26510
|
-
|
|
26511
|
-
function LoadingCircle({
|
|
26512
|
-
size = 32,
|
|
26513
|
-
className,
|
|
26514
|
-
style
|
|
26515
|
-
}) {
|
|
26516
|
-
// Variables
|
|
26517
|
-
// States
|
|
26518
|
-
// Refs
|
|
26519
|
-
// Callbacks
|
|
26520
|
-
// Effects
|
|
26521
|
-
// Other
|
|
26522
|
-
// Render Functions
|
|
26523
|
-
return /*#__PURE__*/external_react_.createElement("svg", {
|
|
26524
|
-
className: classnames_default()((loadingCircle_default()).loadingCircle, className),
|
|
26525
|
-
viewBox: `0 0 ${size} ${size}`,
|
|
26526
|
-
width: size,
|
|
26527
|
-
height: size,
|
|
26528
|
-
style: style
|
|
26529
|
-
}, /*#__PURE__*/external_react_.createElement("circle", {
|
|
26530
|
-
cx: "50%",
|
|
26531
|
-
cy: "50%",
|
|
26532
|
-
r: "40%",
|
|
26533
|
-
fill: "none",
|
|
26534
|
-
className: (loadingCircle_default()).spinner
|
|
26535
|
-
}));
|
|
26536
|
-
}
|
|
26537
|
-
const LoadingCircleMemo = withMemo(LoadingCircle, (loadingCircle_default()));
|
|
26538
|
-
|
|
26539
|
-
// EXTERNAL MODULE: ./src/Components/LoadingArea/loadingArea.scss
|
|
26540
|
-
var loadingArea = __webpack_require__(7150);
|
|
26541
|
-
var loadingArea_default = /*#__PURE__*/__webpack_require__.n(loadingArea);
|
|
26542
|
-
;// CONCATENATED MODULE: ./src/Components/LoadingArea/LoadingArea.tsx
|
|
26543
|
-
|
|
26544
|
-
|
|
26545
|
-
|
|
26546
|
-
|
|
26547
|
-
|
|
26548
|
-
function LoadingArea({
|
|
26549
|
-
loading,
|
|
26550
|
-
fullWidth = false,
|
|
26551
|
-
fullSize = false,
|
|
26552
|
-
fullHeight = false,
|
|
26553
|
-
opacity = 0.65,
|
|
26554
|
-
className,
|
|
26555
|
-
style,
|
|
26556
|
-
children
|
|
26557
|
-
}) {
|
|
26558
|
-
// Variables
|
|
26559
|
-
if (fullSize) {
|
|
26560
|
-
fullHeight = true;
|
|
26561
|
-
fullWidth = true;
|
|
26562
|
-
}
|
|
26563
|
-
// States
|
|
26564
|
-
// Refs
|
|
26565
|
-
// Callbacks
|
|
26566
|
-
// Effects
|
|
26567
|
-
// Other
|
|
26568
|
-
// Render Functions
|
|
26569
|
-
return /*#__PURE__*/external_react_.createElement("span", {
|
|
26570
|
-
className: classnames_default()((loadingArea_default()).loadingArea, className, {
|
|
26571
|
-
'full-height': fullHeight,
|
|
26572
|
-
'full-width': fullWidth
|
|
26573
|
-
}),
|
|
26574
|
-
style: style
|
|
26575
|
-
}, children, loading ? /*#__PURE__*/external_react_.createElement("span", {
|
|
26576
|
-
className: (loadingArea_default()).curtain,
|
|
26577
|
-
style: {
|
|
26578
|
-
opacity
|
|
26579
|
-
}
|
|
26580
|
-
}, /*#__PURE__*/external_react_.createElement(LoadingCircleMemo, null)) : null);
|
|
26581
|
-
}
|
|
26582
|
-
const LoadingAreaMemo = withMemo(LoadingArea, (loadingArea_default()));
|
|
26583
|
-
|
|
26584
|
-
// EXTERNAL MODULE: ./src/Components/Menu/menu.scss
|
|
26585
|
-
var menu = __webpack_require__(1266);
|
|
26586
|
-
var menu_default = /*#__PURE__*/__webpack_require__.n(menu);
|
|
26587
|
-
;// CONCATENATED MODULE: ./src/helper/withRenderBrowserOnly.tsx
|
|
26588
|
-
var withRenderBrowserOnly_rest = undefined && undefined.__rest || function (s, e) {
|
|
26589
|
-
var t = {};
|
|
26590
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
26591
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
26592
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26593
|
-
}
|
|
26594
|
-
return t;
|
|
26595
|
-
};
|
|
26596
|
-
|
|
26597
|
-
function withRenderBrowserOnly(Component) {
|
|
26598
|
-
const displayName = `WithRenderBrowserOnly(${Component.displayName || Component.name})`;
|
|
26599
|
-
const HocComponent = (_a, ref) => {
|
|
26600
|
-
var {
|
|
26601
|
-
children
|
|
26602
|
-
} = _a,
|
|
26603
|
-
props = withRenderBrowserOnly_rest(_a, ["children"]);
|
|
26604
|
-
const [isBrowser, setIsBrowser] = (0,external_react_.useState)(false);
|
|
26605
|
-
(0,external_react_.useEffect)(() => setIsBrowser(true), []);
|
|
26606
|
-
if (!isBrowser) {
|
|
26607
|
-
return null;
|
|
26608
|
-
}
|
|
26609
|
-
const newProps = props;
|
|
26610
|
-
if (ref && Object.keys(ref).length > 0) {
|
|
26611
|
-
newProps.ref = ref;
|
|
26612
|
-
}
|
|
26613
|
-
return (
|
|
26614
|
-
/*#__PURE__*/
|
|
26615
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
26616
|
-
// @ts-ignore
|
|
26617
|
-
external_react_default().createElement(Component, newProps, children)
|
|
26618
|
-
);
|
|
26619
|
-
};
|
|
26620
|
-
HocComponent.displayName = displayName;
|
|
26621
|
-
return HocComponent;
|
|
26622
|
-
}
|
|
26623
|
-
;// CONCATENATED MODULE: ./src/Components/Menu/MenuCloseContext.ts
|
|
26624
|
-
|
|
26625
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
26626
|
-
const MenuCloseContext = /*#__PURE__*/external_react_default().createContext(() => {});
|
|
26627
|
-
const MenuCloseContextProvider = MenuCloseContext.Provider;
|
|
26628
|
-
function useMenuClose() {
|
|
26629
|
-
return (0,external_react_.useContext)(MenuCloseContext);
|
|
26630
|
-
}
|
|
26631
|
-
;// CONCATENATED MODULE: ./src/Components/Menu/MenuItem.tsx
|
|
26632
|
-
function MenuItem_extends() { MenuItem_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return MenuItem_extends.apply(this, arguments); }
|
|
26633
|
-
var MenuItem_rest = undefined && undefined.__rest || function (s, e) {
|
|
26634
|
-
var t = {};
|
|
26635
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
26636
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
26637
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26638
|
-
}
|
|
26639
|
-
return t;
|
|
26640
|
-
};
|
|
26641
|
-
|
|
26642
|
-
|
|
26643
|
-
|
|
26644
|
-
|
|
26645
|
-
|
|
26769
|
+
const setHeight = (0,external_react_.useCallback)((_, height) => setItemHeight(height), []);
|
|
26770
|
+
// Effects
|
|
26771
|
+
// Other
|
|
26772
|
+
// Render Functions
|
|
26773
|
+
return /*#__PURE__*/external_react_.createElement(AutoSizer, null, ({
|
|
26774
|
+
height,
|
|
26775
|
+
width
|
|
26776
|
+
}) => {
|
|
26777
|
+
return /*#__PURE__*/external_react_.createElement(external_react_.Fragment, null, initialItemHeight === 0 && items.length > 0 && /*#__PURE__*/external_react_.createElement(SizeCalculatorMemo, {
|
|
26778
|
+
onSize: setHeight,
|
|
26779
|
+
absolute: true
|
|
26780
|
+
}, renderItem(items[0], {
|
|
26781
|
+
position: 'relative',
|
|
26782
|
+
top: '0px',
|
|
26783
|
+
left: '0px',
|
|
26784
|
+
width: '100%',
|
|
26785
|
+
zIndex: -1
|
|
26786
|
+
}, 0)), height !== undefined && width !== undefined && /*#__PURE__*/external_react_.createElement(FixedSizeList, {
|
|
26787
|
+
height: height,
|
|
26788
|
+
itemCount: items.length,
|
|
26789
|
+
width: width,
|
|
26790
|
+
itemSize: itemHeight,
|
|
26791
|
+
style: style,
|
|
26792
|
+
className: className,
|
|
26793
|
+
itemData: items
|
|
26794
|
+
}, renderItemInner));
|
|
26795
|
+
});
|
|
26796
|
+
}, (list_default()));
|
|
26797
|
+
// EXTERNAL MODULE: ./src/Components/LoadingCircle/loadingCircle.scss
|
|
26798
|
+
var loadingCircle = __webpack_require__(5191);
|
|
26799
|
+
var loadingCircle_default = /*#__PURE__*/__webpack_require__.n(loadingCircle);
|
|
26800
|
+
;// CONCATENATED MODULE: ./src/Components/LoadingCircle/LoadingCircle.tsx
|
|
26646
26801
|
|
|
26647
26802
|
|
|
26648
26803
|
|
|
26649
26804
|
|
|
26650
|
-
|
|
26805
|
+
function LoadingCircle({
|
|
26806
|
+
size = 32,
|
|
26807
|
+
className,
|
|
26808
|
+
style
|
|
26809
|
+
}) {
|
|
26810
|
+
// Variables
|
|
26811
|
+
// States
|
|
26651
26812
|
// Refs
|
|
26652
|
-
var {
|
|
26653
|
-
children,
|
|
26654
|
-
icon,
|
|
26655
|
-
iconColor,
|
|
26656
|
-
className,
|
|
26657
|
-
onClick,
|
|
26658
|
-
onMouseEnter,
|
|
26659
|
-
onMouseLeave,
|
|
26660
|
-
active,
|
|
26661
|
-
item,
|
|
26662
|
-
disabled = false
|
|
26663
|
-
} = _a,
|
|
26664
|
-
props = MenuItem_rest(_a, ["children", "icon", "iconColor", "className", "onClick", "onMouseEnter", "onMouseLeave", "active", "item", "disabled"]);
|
|
26665
|
-
// States/Variables/Selectors
|
|
26666
|
-
const close = useMenuClose();
|
|
26667
|
-
// Dispatch
|
|
26668
26813
|
// Callbacks
|
|
26669
|
-
const onClickInner = (0,external_react_.useCallback)(() => {
|
|
26670
|
-
if (disabled) {
|
|
26671
|
-
return;
|
|
26672
|
-
}
|
|
26673
|
-
onClick(item);
|
|
26674
|
-
close();
|
|
26675
|
-
}, [close, disabled, item, onClick]);
|
|
26676
|
-
const onMouseEnterInner = (0,external_react_.useCallback)(() => {
|
|
26677
|
-
if (disabled) {
|
|
26678
|
-
return;
|
|
26679
|
-
}
|
|
26680
|
-
onMouseEnter === null || onMouseEnter === void 0 ? void 0 : onMouseEnter(item);
|
|
26681
|
-
}, [disabled, item, onMouseEnter]);
|
|
26682
|
-
const onMouseLeaveInner = (0,external_react_.useCallback)(() => {
|
|
26683
|
-
if (disabled) {
|
|
26684
|
-
return;
|
|
26685
|
-
}
|
|
26686
|
-
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(item);
|
|
26687
|
-
}, [disabled, item, onMouseLeave]);
|
|
26688
26814
|
// Effects
|
|
26689
26815
|
// Other
|
|
26690
|
-
|
|
26691
|
-
|
|
26692
|
-
|
|
26693
|
-
|
|
26694
|
-
|
|
26695
|
-
|
|
26696
|
-
|
|
26697
|
-
},
|
|
26698
|
-
|
|
26699
|
-
|
|
26700
|
-
|
|
26701
|
-
|
|
26702
|
-
|
|
26703
|
-
|
|
26704
|
-
|
|
26705
|
-
|
|
26706
|
-
color: iconColor,
|
|
26707
|
-
className: (menu_default()).icon
|
|
26708
|
-
}), childElements));
|
|
26709
|
-
}, (menu_default()), "text");
|
|
26710
|
-
;// CONCATENATED MODULE: external "react-dom"
|
|
26711
|
-
const external_react_dom_namespaceObject = require("react-dom");
|
|
26712
|
-
;// CONCATENATED MODULE: ./src/Components/Menu/Menu.tsx
|
|
26713
|
-
|
|
26714
|
-
|
|
26715
|
-
|
|
26716
|
-
|
|
26717
|
-
|
|
26816
|
+
// Render Functions
|
|
26817
|
+
return /*#__PURE__*/external_react_.createElement("svg", {
|
|
26818
|
+
className: classnames_default()((loadingCircle_default()).loadingCircle, className),
|
|
26819
|
+
viewBox: `0 0 ${size} ${size}`,
|
|
26820
|
+
width: size,
|
|
26821
|
+
height: size,
|
|
26822
|
+
style: style
|
|
26823
|
+
}, /*#__PURE__*/external_react_.createElement("circle", {
|
|
26824
|
+
cx: "50%",
|
|
26825
|
+
cy: "50%",
|
|
26826
|
+
r: "40%",
|
|
26827
|
+
fill: "none",
|
|
26828
|
+
className: (loadingCircle_default()).spinner
|
|
26829
|
+
}));
|
|
26830
|
+
}
|
|
26831
|
+
const LoadingCircleMemo = withMemo(LoadingCircle, (loadingCircle_default()));
|
|
26718
26832
|
|
|
26833
|
+
// EXTERNAL MODULE: ./src/Components/LoadingArea/loadingArea.scss
|
|
26834
|
+
var loadingArea = __webpack_require__(7150);
|
|
26835
|
+
var loadingArea_default = /*#__PURE__*/__webpack_require__.n(loadingArea);
|
|
26836
|
+
;// CONCATENATED MODULE: ./src/Components/LoadingArea/LoadingArea.tsx
|
|
26719
26837
|
|
|
26720
26838
|
|
|
26721
26839
|
|
|
26722
26840
|
|
|
26723
26841
|
|
|
26724
|
-
|
|
26725
|
-
|
|
26842
|
+
function LoadingArea({
|
|
26843
|
+
loading,
|
|
26844
|
+
fullWidth = false,
|
|
26845
|
+
fullSize = false,
|
|
26846
|
+
fullHeight = false,
|
|
26847
|
+
opacity = 0.65,
|
|
26726
26848
|
className,
|
|
26727
26849
|
style,
|
|
26728
|
-
|
|
26729
|
-
y,
|
|
26730
|
-
x,
|
|
26731
|
-
isOpen,
|
|
26732
|
-
onClose,
|
|
26733
|
-
children,
|
|
26734
|
-
offsetY = 0,
|
|
26735
|
-
offsetX = 0
|
|
26850
|
+
children
|
|
26736
26851
|
}) {
|
|
26737
26852
|
// Variables
|
|
26738
|
-
|
|
26739
|
-
|
|
26740
|
-
|
|
26853
|
+
if (fullSize) {
|
|
26854
|
+
fullHeight = true;
|
|
26855
|
+
fullWidth = true;
|
|
26856
|
+
}
|
|
26741
26857
|
// States
|
|
26742
|
-
|
|
26743
|
-
return document.createElement('div');
|
|
26744
|
-
});
|
|
26745
|
-
const [innerX, setInnerX] = (0,external_react_.useState)(x);
|
|
26746
|
-
const [innerY, setInnerY] = (0,external_react_.useState)(y);
|
|
26747
|
-
// Selectors
|
|
26858
|
+
// Refs
|
|
26748
26859
|
// Callbacks
|
|
26749
26860
|
// Effects
|
|
26750
|
-
(0,external_react_.useEffect)(() => {
|
|
26751
|
-
if (isOpen) {
|
|
26752
|
-
const listener = e => {
|
|
26753
|
-
var _a;
|
|
26754
|
-
if (!((_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
|
|
26755
|
-
onClose();
|
|
26756
|
-
}
|
|
26757
|
-
};
|
|
26758
|
-
window === null || window === void 0 ? void 0 : window.addEventListener('mousedown', listener, {
|
|
26759
|
-
capture: true
|
|
26760
|
-
});
|
|
26761
|
-
return () => window === null || window === void 0 ? void 0 : window.removeEventListener('mousedown', listener, {
|
|
26762
|
-
capture: true
|
|
26763
|
-
});
|
|
26764
|
-
}
|
|
26765
|
-
return undefined;
|
|
26766
|
-
}, [isOpen, onClose, window]);
|
|
26767
|
-
(0,external_react_.useLayoutEffect)(() => {
|
|
26768
|
-
if (!isOpen) {
|
|
26769
|
-
return;
|
|
26770
|
-
}
|
|
26771
|
-
let elem = window === null || window === void 0 ? void 0 : window.document.body.querySelector("." + MENU_CONTAINER_CLASS);
|
|
26772
|
-
if (!elem) {
|
|
26773
|
-
elem = window === null || window === void 0 ? void 0 : window.document.body;
|
|
26774
|
-
}
|
|
26775
|
-
elem === null || elem === void 0 ? void 0 : elem.appendChild(portalContainer);
|
|
26776
|
-
}, [isOpen, portalContainer, window === null || window === void 0 ? void 0 : window.document.body]);
|
|
26777
|
-
(0,external_react_.useLayoutEffect)(() => {
|
|
26778
|
-
var _a;
|
|
26779
|
-
if (!menuRef.current) {
|
|
26780
|
-
return;
|
|
26781
|
-
}
|
|
26782
|
-
const width = parseFloat(getComputedStyle(menuRef.current).width);
|
|
26783
|
-
let newX = x;
|
|
26784
|
-
if (newX > ((_a = window === null || window === void 0 ? void 0 : window.innerWidth) !== null && _a !== void 0 ? _a : 0) - width) {
|
|
26785
|
-
newX -= width + offsetX;
|
|
26786
|
-
}
|
|
26787
|
-
if (newX < 0) {
|
|
26788
|
-
newX = 0;
|
|
26789
|
-
}
|
|
26790
|
-
setInnerX(newX);
|
|
26791
|
-
}, [offsetX, window === null || window === void 0 ? void 0 : window.innerWidth, x]);
|
|
26792
|
-
(0,external_react_.useLayoutEffect)(() => {
|
|
26793
|
-
var _a;
|
|
26794
|
-
if (!menuRef.current) {
|
|
26795
|
-
return;
|
|
26796
|
-
}
|
|
26797
|
-
const height = parseFloat(getComputedStyle(menuRef.current).height);
|
|
26798
|
-
let newY = y;
|
|
26799
|
-
if (newY > ((_a = window === null || window === void 0 ? void 0 : window.innerHeight) !== null && _a !== void 0 ? _a : 0) - height) {
|
|
26800
|
-
newY -= height + offsetY;
|
|
26801
|
-
}
|
|
26802
|
-
if (newY < 0) {
|
|
26803
|
-
newY = 0;
|
|
26804
|
-
}
|
|
26805
|
-
setInnerY(newY);
|
|
26806
|
-
}, [offsetY, window === null || window === void 0 ? void 0 : window.innerHeight, y]);
|
|
26807
26861
|
// Other
|
|
26808
26862
|
// Render Functions
|
|
26809
|
-
|
|
26810
|
-
|
|
26811
|
-
|
|
26812
|
-
|
|
26813
|
-
value: onClose
|
|
26814
|
-
}, /*#__PURE__*/external_react_.createElement(BlockMemo, {
|
|
26815
|
-
className: classnames_default()(className, (menu_default()).menu),
|
|
26816
|
-
style: Object.assign(Object.assign({}, style), {
|
|
26817
|
-
top: innerY,
|
|
26818
|
-
left: innerX
|
|
26863
|
+
return /*#__PURE__*/external_react_.createElement("span", {
|
|
26864
|
+
className: classnames_default()((loadingArea_default()).loadingArea, className, {
|
|
26865
|
+
'full-height': fullHeight,
|
|
26866
|
+
'full-width': fullWidth
|
|
26819
26867
|
}),
|
|
26820
|
-
|
|
26821
|
-
|
|
26822
|
-
|
|
26823
|
-
|
|
26824
|
-
|
|
26825
|
-
|
|
26826
|
-
|
|
26827
|
-
|
|
26828
|
-
|
|
26829
|
-
|
|
26830
|
-
icon: icon,
|
|
26831
|
-
iconColor: iconColor,
|
|
26832
|
-
onMouseLeave: item.onMouseLeave
|
|
26833
|
-
}, item.label);
|
|
26834
|
-
}), children)), portalContainer));
|
|
26835
|
-
}), (menu_default()));
|
|
26868
|
+
style: style
|
|
26869
|
+
}, children, loading ? /*#__PURE__*/external_react_.createElement("span", {
|
|
26870
|
+
className: (loadingArea_default()).curtain,
|
|
26871
|
+
style: {
|
|
26872
|
+
opacity
|
|
26873
|
+
}
|
|
26874
|
+
}, /*#__PURE__*/external_react_.createElement(LoadingCircleMemo, null)) : null);
|
|
26875
|
+
}
|
|
26876
|
+
const LoadingAreaMemo = withMemo(LoadingArea, (loadingArea_default()));
|
|
26877
|
+
|
|
26836
26878
|
;// CONCATENATED MODULE: ./src/Components/Menu/HoverMenu.tsx
|
|
26837
26879
|
|
|
26838
26880
|
|
|
@@ -26903,6 +26945,11 @@ const HoverMenu = withMemo(function HoverMenu({
|
|
|
26903
26945
|
recalculatePosition();
|
|
26904
26946
|
setIsOpen(true);
|
|
26905
26947
|
}, [recalculatePosition]);
|
|
26948
|
+
const onClickInner = (0,external_react_.useCallback)(() => {
|
|
26949
|
+
if ((onClick === null || onClick === void 0 ? void 0 : onClick()) !== false) {
|
|
26950
|
+
open();
|
|
26951
|
+
}
|
|
26952
|
+
}, [onClick, open]);
|
|
26906
26953
|
// Effects
|
|
26907
26954
|
// Other
|
|
26908
26955
|
// RenderFunctions
|
|
@@ -26910,7 +26957,7 @@ const HoverMenu = withMemo(function HoverMenu({
|
|
|
26910
26957
|
onMouseEnter: open,
|
|
26911
26958
|
onMouseLeave: close,
|
|
26912
26959
|
useReactOnMouseLeave: true,
|
|
26913
|
-
onClick:
|
|
26960
|
+
onClick: onClickInner,
|
|
26914
26961
|
className: classnames_default()((menu_default()).hoverMenu, {
|
|
26915
26962
|
[(menu_default()).open]: isOpen
|
|
26916
26963
|
}, className),
|
|
@@ -27917,6 +27964,7 @@ function nonEmptyString(str, other = Characters.NBSP) {
|
|
|
27917
27964
|
|
|
27918
27965
|
|
|
27919
27966
|
|
|
27967
|
+
|
|
27920
27968
|
|
|
27921
27969
|
|
|
27922
27970
|
})();
|