@corva/ui 0.38.0-1 → 0.38.0-12

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.
Files changed (106) hide show
  1. package/CLI/components/App/App.js +1 -1
  2. package/CLI/hocs/withAppDataProviderHOC.js +1 -1
  3. package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
  4. package/CLI/hocs/withReactRouterHOC.js +1 -1
  5. package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
  6. package/_virtual/regeneratorRuntime.js +1 -0
  7. package/_virtual/typeof.js +1 -0
  8. package/components/AddComment/Popover.js +1 -1
  9. package/components/AddComment/Popup.js +1 -1
  10. package/components/AddComment/components/Content.js +1 -1
  11. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  12. package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  13. package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -1
  14. package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -1
  15. package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
  16. package/components/BICOffsetPickerDialog/components/WellSection/WellListItem.js +1 -1
  17. package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  18. package/components/BICOffsetPickerDialog/index.js +1 -1
  19. package/components/Breadcrumbs/index.js +1 -1
  20. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  21. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  22. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  23. package/components/ChartActionsList/ChartActionsList.js +1 -1
  24. package/components/Chip/index.js +1 -1
  25. package/components/CollapsableSidebar.js +1 -1
  26. package/components/CommentsInfo/index.js +1 -1
  27. package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
  28. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  29. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  30. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  31. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  32. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  33. package/components/DevCenter/DevCenterAppContainer/components/{DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js → DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js} +1 -1
  34. package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js +1 -0
  35. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  36. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  37. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  38. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  39. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  40. package/components/DocumentViewer/DocumentViewer.js +1 -1
  41. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  42. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  43. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  44. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  45. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  46. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  47. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  48. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  49. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  50. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  51. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  52. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  53. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  54. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  55. package/components/FeedItem/FeedItem.js +1 -1
  56. package/components/FeedItem/editModals/DvdCommentEdit/DvdCommentEdit.js +1 -1
  57. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
  58. package/components/IconButton/index.js +1 -1
  59. package/components/IconMenu/index.js +1 -1
  60. package/components/Modal/CorvaModal.css.js +1 -0
  61. package/components/Modal/CorvaModal.js +1 -0
  62. package/components/Modal/DcCorvaModal.js +1 -0
  63. package/components/Modal/Modal.js +1 -0
  64. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  65. package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -1
  66. package/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -1
  67. package/components/OffsetWellPickerV2/components/Filter/RadiusInput.js +1 -1
  68. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  69. package/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
  70. package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js +1 -1
  71. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  72. package/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
  73. package/components/OffsetWellPickerV2/components/Map/popupGenerator.js +1 -1
  74. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  75. package/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -1
  76. package/components/OffsetWellPickerV2/components/Table/index.js +1 -1
  77. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  78. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  79. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -1
  80. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/AutoCompleteAssetSearch/AssetResultSection.js +1 -1
  81. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  82. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  83. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  84. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  85. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  86. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  87. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  88. package/components/ParameterCharts/AddEditTrack.js +1 -1
  89. package/components/ParameterCharts/components/TraceHeader.js +1 -1
  90. package/components/ParameterCharts/components/TrackSettings.js +1 -1
  91. package/components/Popover/Popover.js +1 -0
  92. package/components/Popper/Popper.js +1 -0
  93. package/components/SwitchControl/index.js +1 -1
  94. package/components/Tooltip/MuiTooltipDcWrapper.js +1 -1
  95. package/components/Tooltip/Tooltip.js +1 -1
  96. package/components/TracesEditModal/TracesEditModal.js +1 -1
  97. package/components/index.js +1 -1
  98. package/effects/useDelayedDcFullscreenElemOpen.js +1 -0
  99. package/ext-cjs/@babel/runtime/helpers/regeneratorRuntime.js +1 -0
  100. package/ext-cjs/@babel/runtime/helpers/typeof.js +1 -0
  101. package/ext-cjs/@babel/runtime/regenerator/index.js +1 -1
  102. package/package.json +4 -3
  103. package/_virtual/runtime.js +0 -1
  104. package/components/Modal/Modal.css.js +0 -1
  105. package/components/Modal/index.js +0 -1
  106. package/ext-cjs/regenerator-runtime/runtime.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../../_virtual/_commonjsHelpers.js"),r=require("./typeof.js"),e=t.createCommonjsModule((function(t){var e=r._typeof_1.default;function n(){t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof v?r:v,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return G()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=E(a,e);if(c){if(c===p)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=l(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function l(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var p={};function v(){}function d(){}function y(){}var g={};f(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(k([])));w&&w!==o&&i.call(w,c)&&(g=w);var x=y.prototype=v.prototype=Object.create(g);function L(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function _(t,r){function n(o,a,c,u){var s=l(t[o],t,a);if("throw"!==s.type){var f=s.arg,h=f.value;return h&&"object"==e(h)&&i.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(h).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(s.arg)}var o;this._invoke=function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,E(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=l(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function b(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function j(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function k(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(i.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:G}}function G(){return{value:void 0,done:!0}}return d.prototype=y,f(x,"constructor",y),f(y,"constructor",d),d.displayName=f(y,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,f(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},r.awrap=function(t){return{__await:t}},L(_.prototype),f(_.prototype,u,(function(){return this})),r.AsyncIterator=_,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new _(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(x),f(x,s,"Generator"),f(x,c,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=r,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}));t.getDefaultExportFromCjs(e),exports.regeneratorRuntime=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("../../../../_virtual/_commonjsHelpers.js"),e=o.createCommonjsModule((function(o){function e(t){return o.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o.exports.__esModule=!0,o.exports.default=o.exports,e(t)}o.exports=e,o.exports.__esModule=!0,o.exports.default=o.exports}));o.getDefaultExportFromCjs(e),exports._typeof_1=e;
@@ -1 +1 @@
1
- "use strict";var e=require("../../../regenerator-runtime/runtime.js");module.exports=e;
1
+ "use strict";var e=require("../helpers/regeneratorRuntime.js").regeneratorRuntime(),r=e;try{regeneratorRuntime=e}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}module.exports=r;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.38.0-1",
3
+ "version": "0.38.0-12",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -53,7 +53,7 @@
53
53
  ],
54
54
  "moduleNameMapper": {
55
55
  "~(.*)": "<rootDir>/src/$1",
56
- "\\.(css|less)$": "identity-obj-proxy"
56
+ "\\.(css|less|scss)$": "identity-obj-proxy"
57
57
  },
58
58
  "setupFiles": [
59
59
  "<rootDir>/jest/setEnvVars.js"
@@ -192,6 +192,7 @@
192
192
  "@storybook/theming": "6.4.9",
193
193
  "@testing-library/jest-dom": "^5.11.4",
194
194
  "@testing-library/react": "^11.1.0",
195
+ "@testing-library/react-hooks": "^8.0.1",
195
196
  "@testing-library/user-event": "^12.1.10",
196
197
  "@tsconfig/create-react-app": "^1.0.2",
197
198
  "babel-plugin-external-helpers": "^6.22.0",
@@ -219,6 +220,6 @@
219
220
  "storybook-addon-external-links": "2.0.0"
220
221
  },
221
222
  "engines": {
222
- "node": ">=10"
223
+ "node": ">=16"
223
224
  }
224
225
  }
@@ -1 +0,0 @@
1
- "use strict";var e=require('./../ext-cjs/regenerator-runtime/runtime.js');module.exports=e;
@@ -1 +0,0 @@
1
- import o from'./../../ext-esm/style-inject/dist/style-inject.es.js';var l={small:"Modal_small__FXy7-",medium:"Modal_medium__WNhU6",large:"Modal_large__43H7j",extraLarge:"Modal_extraLarge__1FIXV",modalWrapper:"Modal_modalWrapper__12shD",modalContainer:"Modal_modalContainer__HVR1v",modalMobileContainer:"Modal_modalMobileContainer__8N8Z7",modalStaticFooter:"Modal_modalStaticFooter__ZcuNs",modalMobileStaticFooter:"Modal_modalMobileStaticFooter__SiBsk",modalMobile:"Modal_modalMobile__Xx7dU",modalTitle:"Modal_modalTitle__BVjhe",modalMobileTitle:"Modal_modalMobileTitle__RFpGa",filtersTitle:"Modal_filtersTitle__utGL-",modalTitleText:"Modal_modalTitleText__sefpB",modalMobileTitleText:"Modal_modalMobileTitleText__Nvquw",modalTitleWithClose:"Modal_modalTitleWithClose__STwSN",modalActions:"Modal_modalActions__G-sPQ",modalMobileActions:"Modal_modalMobileActions__wbFgo",modalActionsSticky:"Modal_modalActionsSticky__z0NUK",modalContent:"Modal_modalContent__aXUVW",modalMobileContent:"Modal_modalMobileContent__YatfP",settings:"Modal_settings__tm6NR",filters:"Modal_filters__xg42o"};o(".Modal_small__FXy7-{width:416px}.Modal_medium__WNhU6{width:552px}.Modal_large__43H7j{width:768px}.Modal_extraLarge__1FIXV{height:80%;max-width:1152px;width:80%}.Modal_modalWrapper__12shD{display:flex;height:100%;width:100%}.Modal_modalContainer__HVR1v{background-color:#414141;border-radius:4px;display:flex;flex-direction:column;margin:auto;max-height:80%;max-width:80%;outline:none}.Modal_modalMobileContainer__8N8Z7{background-color:#414141;display:flex;flex-direction:column;outline:none;padding-bottom:16px}.Modal_modalStaticFooter__ZcuNs{overflow-y:scroll;padding-bottom:0}.Modal_modalMobileStaticFooter__SiBsk{margin-top:60px;overflow-y:scroll;padding-bottom:16px}.Modal_modalMobileStaticFooter__SiBsk,.Modal_modalMobile__Xx7dU{border-radius:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%}.Modal_modalMobile__Xx7dU{padding:0}.Modal_modalTitle__BVjhe{color:#fff;font-size:20px;line-height:28px;padding:40px 40px 16px}.Modal_modalStaticFooter__ZcuNs .Modal_modalTitle__BVjhe{box-shadow:0 16px 10px #414141;z-index:1}.Modal_modalMobileTitle__RFpGa{background-color:#414141;display:flex;left:0;margin-bottom:auto;padding:0 16px;position:fixed;top:0;width:100%}.Modal_filtersTitle__utGL-{border-bottom:1px solid #333}.Modal_modalTitleText__sefpB{line-height:28px;padding:4px 0}.Modal_modalMobileTitleText__Nvquw{color:#fff;font-size:20px;line-height:28px;padding:16px 16px 16px 0}.Modal_modalTitleWithClose__STwSN{display:flex;justify-content:space-between}.Modal_modalActions__G-sPQ{align-items:center;display:flex;margin-top:auto;padding:32px 40px 40px}.Modal_modalMobileActions__wbFgo{bottom:0;display:flex;left:0;margin-top:auto;padding:8px 16px;position:absolute;width:100%}.Modal_modalActionsSticky__z0NUK{background:#414141;box-shadow:0 -16px 10px #414141;padding:8px 40px 40px}.Modal_modalContent__aXUVW{overflow-y:auto;padding:0 40px}.Modal_modalMobileContent__YatfP{overflow-y:scroll;padding:4px 16px 92px}.Modal_modalMobile__Xx7dU .Modal_modalContent__aXUVW{padding:28px 32px}.Modal_settings__tm6NR,.Modal_settings__tm6NR .Modal_modalMobileContainer__8N8Z7,.Modal_settings__tm6NR .Modal_modalMobileContent__YatfP,.Modal_settings__tm6NR .Modal_modalMobileTitle__RFpGa{background-color:#414141}.Modal_filters__xg42o,.Modal_filters__xg42o .Modal_modalMobileContainer__8N8Z7,.Modal_filters__xg42o .Modal_modalMobileContent__YatfP,.Modal_filters__xg42o .Modal_modalMobileTitle__RFpGa{background-color:#272727}.Modal_settings__tm6NR .Modal_modalMobileActions__wbFgo{background-color:#414141;box-shadow:0 -8px 10px #414141}.Modal_filters__xg42o .Modal_modalMobileActions__wbFgo{background-color:#272727;box-shadow:0 -8px 10px #272727}.Modal_settings__tm6NR .Modal_modalMobileTitle__RFpGa{box-shadow:0 8px 10px #414141}.Modal_filters__xg42o .Modal_modalMobileTitle__RFpGa{box-shadow:0 8px 10px #272727}");export{l as default};
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/objectWithoutProperties";import o from"@babel/runtime/helpers/defineProperty";import t from"prop-types";import i from"classnames";import{noop as s}from"lodash";import{withStyles as r,IconButton as n,makeStyles as l,Modal as a,Tooltip as c}from"@material-ui/core";import{Close as m,CloseRounded as d}from"@material-ui/icons";import{isNativeDetected as p,isMobileDetected as u}from"../../utils/mobileDetect.js";import C from"./Modal.css.js";import{jsx as b,jsxs as h}from"react/jsx-runtime";var f,y=["title","children","actions","open","isCloseIconHidden","onClose","isNative","isMobile","stickyFooter","contentContainerClassName","contentClassName","stickyFooterClassName","size","type","rootClassName","actionsClassName"];function N(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,i)}return t}function g(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?N(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):N(Object(i)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))}))}return e}var v="filters",O="settings",T=(o(f={},v,"Filters"),o(f,O,"Settings"),f),j=r({root:{position:"absolute",right:28,top:24,color:"#9E9E9E",fontSize:"14px",paddingTop:8,width:14,height:14,"&.MuiIconButton-root":{padding:0},"& svg":{transform:"scale(1.8)",width:14,height:14}}})(n),k=r((function(e){return{root:{color:e.palette.primary.text6,"&:hover":{color:"white",cursor:"pointer"}}}}))(m),M=l((function(e){return{closeTooltip:{marginTop:8},closeButton:{padding:"4px 6px",width:"36px",height:"36px","&:hover":{backgroundColor:e.palette.background.b7}}}}));function F(t){var s,r,l=t.title,m=t.children,p=t.actions,u=t.open,f=t.isCloseIconHidden,N=t.onClose,O=t.isNative,F=t.isMobile,P=t.stickyFooter,w=t.contentContainerClassName,x=t.contentClassName,S=t.stickyFooterClassName,z=t.size,D=t.type,E=t.rootClassName,I=t.actionsClassName,H=e(t,y),A=O||F,B=M();return b(a,g(g({open:u,onClose:N,className:i((s={"c-modal":!A},o(s,C.modalWrapper,!0),o(s,E,!0),o(s,C[D],A&&D),s))},H),{},{children:h("div",{className:i((r={},o(r,C[z],!A),o(r,C.modalContainer,!A),o(r,C.modalMobileContainer,!A),o(r,C.modalStaticFooter,!A&&P),o(r,w,!0),o(r,C.modalMobileContainer,A),o(r,C.modalMobileStaticFooter,A),r)),children:[A&&h("div",{className:i(C.modalMobileTitle,D===v&&C.filtersTitle),children:[b(j,{onClick:N,children:b(d,{})}),b("div",{className:C.modalMobileTitleText,children:l||T[D]})]}),!A&&l&&h("div",{className:i(C.modalTitle,!f&&C.modalTitleWithClose),children:[b("div",{className:C.modalTitleText,children:l}),!f&&b(c,{title:"Close",classes:{tooltip:B.closeTooltip},placement:"bottom",children:b(n,{onClick:N,classes:{root:B.closeButton},children:b(k,{})})})]}),m&&b("div",{className:i(!A&&C.modalContent,A&&C.modalMobileContent,x),children:m}),p&&b("div",{className:i(A&&C.modalMobileActions,!P&&C.modalActions,P&&C.modalActionsSticky,P&&S,I),children:p})]})}))}F.propTypes={title:t.oneOfType([t.string,t.node]),children:t.oneOfType([t.string,t.node]),actions:t.oneOfType([t.string,t.node,t.array]),stickyFooter:t.bool,open:t.bool.isRequired,onClose:t.func,isNative:t.bool,isMobile:t.bool,isCloseIconHidden:t.bool,contentClassName:t.string,actionsClassName:t.string,contentContainerClassName:t.string,stickyFooterClassName:t.string,rootClassName:t.string,size:t.string,type:t.string},F.defaultProps={title:"",children:null,actions:"",stickyFooter:!1,onClose:s,isNative:p,isMobile:u,isCloseIconHidden:!1,contentClassName:null,actionsClassName:null,contentContainerClassName:null,stickyFooterClassName:null,size:null,type:"",rootClassName:null};export{F as default};
@@ -1 +0,0 @@
1
- "use strict";var t=require("../../_virtual/_commonjsHelpers.js").createCommonjsModule((function(t){var r=function(t){var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof g?r:g,i=Object.create(o.prototype),a=new G(n||[]);return i._invoke=function(t,r,e){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return T()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=j(a,e);if(c){if(c===v)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===l)throw n=y,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var u=f(t,r,e);if("normal"===u.type){if(n=e.done?y:s,u.arg===v)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=y,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var l="suspendedStart",s="suspendedYield",p="executing",y="completed",v={};function g(){}function d(){}function m(){}var w={};u(w,i,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(N([])));x&&x!==e&&n.call(x,i)&&(w=x);var b=m.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function _(t,r){function e(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==typeof l&&n.call(l,"__await")?r.resolve(l.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(l).then((function(t){h.value=t,a(h)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}function j(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:T}}function T(){return{value:r,done:!0}}return d.prototype=m,u(b,"constructor",m),u(m,"constructor",d),d.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(_.prototype),u(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new _(h(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,G.prototype={constructor:G,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),v},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;k(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}));module.exports=t;