@corva/ui 0.25.0-3 → 0.25.0-4

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.
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/drillstring.js";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as o,jsx as t}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/ColorPicker.js";import"../../../components/ParameterCharts/AddEditTrack.js";import"../../../components/ParameterCharts/ParameterCharts.js";import"../../../components/ChartActionsList/ChartActionsList.js";import"../../../components/SettingEditors/ColorEditor/index.js";import"../../../components/SettingEditors/DropdownEditor/index.js";import"../../../components/SettingEditors/RadioEditor/index.js";import"../../../components/SwitchControl/index.js";import"../../../components/RangeSlider/RangeSlider.js";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import"../../../components/Breadcrumbs/index.js";import"../../../components/VirtualizedTable/index.js";import"../../../components/EmptyView/index.js";import"../../../components/EmptyView/EmptyAppView/index.js";import"../../../components/Button/index.js";import"../../../components/MenuItem/index.js";import"../../../components/ContextMenuItem/index.js";import"../../../components/FolderMenuItem/index.js";import"../../../components/EditableItem/EditableItem/index.js";import"../../../components/EditableItem/EditableItemWithBadge/index.js";import"../../../components/Checkbox/index.js";import"../../../components/FolderMenuItemWithLinks/index.js";import"../../../components/IconButton/index.js";import"../../../components/Chip/index.js";import"../../../components/Counter/index.js";import"../../../components/AnchorsList/AnchorsList.js";import"../../../components/Select/index.js";import"../../../components/Tabs/Tabs.js";import"../../../components/Tabs/Tab.js";import"../../../components/Drillstring/BHASchematic.js";import"../../../components/Drillstring/BHAComponentIcon.js";import"../../../components/Drillstring/BHATable/index.js";import"../../../components/Drillstring/BHAComponentDetail/index.js";import"../../../components/Casing/CasingComponentIcon.js";import"../../../components/Casing/CasingTable/index.js";import"../../../components/WellSummary/WellSummaryItemLabel.js";import"../../../components/WellSummary/WellSummaryItemTitle.js";import"../../../components/WellSummary/WellSummaryItemValue.js";import"../../../components/WellSummary/ActivitySummaryChart.js";import"../../../components/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import e from"../../../components/Notifications/NotificationsContainer.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/Table/TableToolbar/TableToolbar.js";import"../../../components/PriceInput/PriceInput.js";import"../../../components/LabelsCounter/LabelsCounter.js";import"../../../components/Stepper/Step.js";import"../../../components/Stepper/StepsWrapper.js";import"../../../components/Stepper/Stepper.js";import"../../../components/Comment/CommentIcon/index.js";import"../../../components/FilesLoader/FilesLoader.js";import{AuthContext as n}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as r}from"../../constants/index.js";import s from"./components/AppBar/AppBar.js";import i from"./App.css.js";import p from"../../hocs/effects/useProvideAuth.js";function m(m){var c=m.children,a=m.router,l=p(a),j=!r.test(a.location.pathname)&&!l.loading;return o(n.Provider,{value:l,children:[!j&&c,j&&o("div",{className:i.app,children:[t(e,{}),t(s,{}),t("div",{className:i.appContent,children:c})]})]})}export default m;
1
+ import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../constants/goals.js";import"../../../constants/apps.js";import"../../../constants/completion.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/drillstring.js";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as o,jsx as t}from"react/jsx-runtime";import"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../components/Modal/index.js";import"../../../components/IconMenu/index.js";import"../../../components/StyledMenuItem/index.js";import"../../../components/LoadingIndicator/LoadingIndicator.js";import"../../../components/Tooltip.js";import"../../../components/Avatar/index.js";import"../../../components/Annotations/AnnotationsContext.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../components/ConfirmationDialog.js";import"../../../components/Annotations/components/AnnotationsList/index.js";import"../../../components/Annotations/components/LastAnnotation/index.js";import"../../../components/PadModeSelect/PadModeSelect.js";import"../../../components/DevCenter/AppHeader/AppHeader.js";import"../../../components/DevCenter/AppSideBar/AppSideBar.js";import"../../../components/DevCenter/AppContext.js";import"../../../components/DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../components/ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../../components/ErrorBoundary/ErrorBoundary.js";import"../../../components/Typography.js";import"../../../components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../components/SlateFormattedText/RenderElements.js";import"../../../components/SlateFormattedText/SlateFormattedText.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../components/DevCenter/NavigationBar/NavigationBar.js";import"../../../components/DevCenter/SideBar/SideBar.js";import"../../../components/TruncatedText/index.js";import"../../../components/AssetEditor/SingleAssetEditor.js";import"../../../components/AssetEditor/AssetEditorAutocomplete.js";import"../../../components/AssetEditor/index.js";import"../../../components/AppVersionsSelect/AppVersionsSelect.js";import"../../../components/CollapsableSidebar.js";import"../../../components/DateTimePicker/index.js";import"../../../components/DatePicker/index.js";import"../../../components/ColorPicker/ColorPicker.js";import"../../../components/ParameterCharts/AddEditTrack.js";import"../../../components/ParameterCharts/ParameterCharts.js";import"../../../components/ChartActionsList/ChartActionsList.js";import"../../../components/SettingEditors/ColorEditor/index.js";import"../../../components/SettingEditors/DropdownEditor/index.js";import"../../../components/SettingEditors/RadioEditor/index.js";import"../../../components/SwitchControl/index.js";import"../../../components/RangeSlider/RangeSlider.js";import"../../../components/Login/components/Login.js";import"../../../components/Login/components/PasswordField.js";import"../../../components/Login/components/Chip.js";import"../../../components/Login/components/StepFooter.js";import"../../../components/Login/components/StepContent.js";import"../../../components/Login/components/StepHeader.js";import"../../../components/Login/components/Step.js";import"../../../components/Login/components/OrDivider.js";import"../../../components/Login/components/HiddenEmailField.js";import"../../../components/Login/components/EmailField.js";import"../../../components/Breadcrumbs/index.js";import"../../../components/VirtualizedTable/index.js";import"../../../components/EmptyView/index.js";import"../../../components/EmptyView/EmptyAppView/index.js";import"../../../components/Button/index.js";import"../../../components/MenuItem/index.js";import"../../../components/ContextMenuItem/index.js";import"../../../components/FolderMenuItem/index.js";import"../../../components/EditableItem/EditableItem/index.js";import"../../../components/EditableItem/EditableItemWithBadge/index.js";import"../../../components/Checkbox/index.js";import"../../../components/FolderMenuItemWithLinks/index.js";import"../../../components/IconButton/index.js";import"../../../components/Chip/index.js";import"../../../components/Counter/index.js";import"../../../components/AnchorsList/AnchorsList.js";import"../../../components/Select/index.js";import"../../../components/Tabs/Tabs.js";import"../../../components/Tabs/Tab.js";import"../../../components/Drillstring/BHASchematic.js";import"../../../components/Drillstring/BHAComponentIcon.js";import"../../../components/Drillstring/BHATable/index.js";import"../../../components/Drillstring/BHAComponentDetail/index.js";import"../../../components/Casing/CasingComponentIcon.js";import"../../../components/Casing/CasingTable/index.js";import"../../../components/WellSummary/WellSummaryItemLabel.js";import"../../../components/WellSummary/WellSummaryItemTitle.js";import"../../../components/WellSummary/WellSummaryItemValue.js";import"../../../components/WellSummary/ActivitySummaryChart.js";import"../../../components/WellSummary/FracWirelineTimeChart.js";import"../../../components/BICOffsetPickerDialog/index.js";import"../../../components/OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../components/Notifications/Notifications.js";import e from"../../../components/Notifications/NotificationsContainer.js";import"../../../components/TextLink/index.js";import"../../../components/Template/TemplatePopover/index.js";import"../../../components/PinnableFilters/PinnableFilters.js";import"../../../components/HeaderLayout/HeaderLayout.js";import"../../../components/Table/TableToolbar/TableToolbar.js";import"../../../components/PriceInput/PriceInput.js";import"../../../components/LabelsCounter/LabelsCounter.js";import"../../../components/Stepper/Step.js";import"../../../components/Stepper/StepsWrapper.js";import"../../../components/Stepper/Stepper.js";import"../../../components/Comment/CommentIcon/index.js";import"../../../components/FilesLoader/FilesLoader.js";import{AuthContext as n}from"../../context/auth.js";import{LOGIN_ROUTE_REG_EXP as r}from"../../constants/index.js";import s from"./components/AppBar/AppBar.js";import i from"../../hocs/withMUIProvidersHOC.js";import p from"../../hocs/effects/useProvideAuth.js";import m from"./App.css.js";var c=i((function(i){var c=i.children,a=i.router,l=i.toggleTheme,j=p(a),d=!r.test(a.location.pathname)&&!j.loading;return o(n.Provider,{value:j,children:[!d&&c,d&&o("div",{className:m.app,children:[t(e,{}),t(s,{toggleTheme:l}),t("div",{className:m.appContent,children:c})]})]})}));export default c;
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/slicedToArray";import{jsx as o,jsxs as e}from"react/jsx-runtime";import{makeStyles as n,Menu as t,MenuItem as i,AppBar as a,Toolbar as c,IconButton as l,Typography as u}from"@material-ui/core";import{useState as s}from"react";import{useAuth as p}from"../../../../context/auth.js";import m from"@material-ui/icons/AccountCircle";import d from"../../../../assets/DevCenterLogo.js";var f=n((function(r){return{grow:{flexGrow:1},flex:{display:"flex"},appBar:{backgroundColor:"rgb(30, 31, 31)"},iconButtonRoot:{borderRadius:"unset"},userProfileIcon:{marginLeft:4}}}));function h(){var n=f(),h=p(),g=h.user,v=h.logout,b=s(null),x=r(b,2),C=x[0],B=x[1],N=Boolean(C),k=function(){return B(null)},j=g.first_name,w=g.last_name,A="".concat(j[0]).concat(w[0]).toUpperCase(),O=o(t,{anchorEl:C,id:"app-bar-menu",keepMounted:!0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:N,onClose:k,children:o(i,{onClick:function(){v(),k()},children:"Sign Out"})});return e("div",{children:[o(a,{position:"static",className:n.appBar,children:e(c,{children:[o(d,{}),o("div",{className:n.grow}),o("div",{children:o(l,{edge:"end","aria-label":"account of current user","aria-controls":"app-bar-menu","aria-haspopup":"true",onClick:function(r){return B(r.currentTarget)},color:"inherit",className:n.iconButtonRoot,children:e("div",{className:n.flex,children:[o(u,{children:A}),o(m,{className:n.userProfileIcon})]})})})]})}),O]})}export default h;
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{jsx as r,jsxs as o}from"react/jsx-runtime";import{makeStyles as t,useTheme as i,Menu as n,MenuItem as a,AppBar as l,Toolbar as c,Tooltip as m,IconButton as s,Typography as p}from"@material-ui/core";import{useState as u}from"react";import h from"prop-types";import d from"../../../../../components/SwitchControl/index.js";import{useAuth as f}from"../../../../context/auth.js";import g from"@material-ui/icons/AccountCircle";import b from"../../../../assets/DevCenterLogo.js";import{isPDFReportsFeatureActive as v}from"../../../../flags/index.js";var T=t((function(e){return{grow:{flexGrow:1},flex:{display:"flex"},appBar:{backgroundColor:"rgb(30, 31, 31)"},iconButtonRoot:{borderRadius:"unset"},userProfileIcon:{marginLeft:4},toggleThemeRoot:{marginRight:32}}}));function x(t){var h=t.toggleTheme,x=T(),C=f(),R=C.user,k=C.logout,w=i(),B=u(null),N=e(B,2),j=N[0],y=N[1],L=Boolean(j),z=function(){return y(null)},A=R.first_name,D=R.last_name,O="".concat(A[0]).concat(D[0]).toUpperCase(),P=r(n,{anchorEl:j,id:"app-bar-menu",keepMounted:!0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:L,onClose:z,children:r(a,{onClick:function(){k(),z()},children:"Sign Out"})});return o("div",{children:[r(l,{position:"static",className:x.appBar,children:o(c,{children:[r(b,{}),r("div",{className:x.grow}),v()&&r(m,{title:"Switch to white theme to tune your app for PDF reports",placement:"bottom",children:r("div",{children:r(d,{className:x.toggleThemeRoot,leftLabel:"Dark Theme",rightLabel:"White Theme",onChange:h,checked:w.isLightTheme,size:"small",title:""})})}),r("div",{children:r(s,{edge:"end","aria-label":"account of current user","aria-controls":"app-bar-menu","aria-haspopup":"true",onClick:function(e){return y(e.currentTarget)},color:"inherit",className:x.iconButtonRoot,children:o("div",{className:x.flex,children:[r(p,{children:O}),r(g,{className:x.userProfileIcon})]})})})]})}),P]})}x.propTypes={toggleTheme:h.func.isRequired};export default x;
@@ -0,0 +1 @@
1
+ var t=function(){return!!localStorage.getItem("PDF_REPORTS")};export{t as isPDFReportsFeatureActive};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{initHighcharts as s}from"../../config/highcharts/highcharts.js";import{initializeSocketClient as r}from"../../clients/subscriptions.js";import"../../styles/mapbox.global.css.js";import"../../styles/generatedThemesVariables.global.css.js";import o from"./withAppDataProviderHOC.js";import i from"./withCLIAppSettingsHOC.js";import e from"./withMUIProvidersHOC.js";import a from"./withReactRouterHOC.js";import m from"./withGridLayoutHOC/withGridLayoutHOC.js";import"../../styles/index.global.css.js";import"../../styles/reactVirtualized.global.css.js";import{withDevCenterRouterHOC as p}from"./withDevCenterRouterHOC.js";navigator.platform.indexOf("Mac")>-1||import("../../styles/customScrollbars.global.css.js"),s(),r();export default function(s){var r=s.component,n=s.settings,l=s.manifest,c=s.packageJson;return function(){var s=p(m(i(o({CLIAppComponent:r,CLIAppSettings:n,packageJson:c})))),f=e(a(s));return t(f,{manifest:l,dashboardProps:{}})}}
1
+ import{jsx as t}from"react/jsx-runtime";import{initHighcharts as s}from"../../config/highcharts/highcharts.js";import{initializeSocketClient as r}from"../../clients/subscriptions.js";import"../../styles/mapbox.global.css.js";import"../../styles/generatedThemesVariables.global.css.js";import o from"./withAppDataProviderHOC.js";import i from"./withCLIAppSettingsHOC.js";import e from"./withReactRouterHOC.js";import a from"./withGridLayoutHOC/withGridLayoutHOC.js";import{withDevCenterRouterHOC as m}from"./withDevCenterRouterHOC.js";import"../../styles/index.global.css.js";import"../../styles/reactVirtualized.global.css.js";navigator.platform.indexOf("Mac")>-1||import("../../styles/customScrollbars.global.css.js"),s(),r();export default function(s){var r=s.component,p=s.settings,n=s.manifest,l=s.packageJson;return function(){var s=m(a(i(o({CLIAppComponent:r,CLIAppSettings:p,packageJson:l})))),c=e(s);return t(c,{manifest:n,dashboardProps:{}})}}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import r from"moment";import{jsx as t}from"react/jsx-runtime";import{MuiThemeProvider as o}from"@material-ui/core";import{darkTheme as n}from"../../config/theme/index.js";import{MuiPickersUtilsProvider as i}from"@material-ui/pickers";import c from"@date-io/moment";function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function p(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?m(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}export default function(e){return function(m){return t(o,{theme:n,children:t(i,{libInstance:r,utils:c,children:t(e,p({},m))})})}}
1
+ import r from"@babel/runtime/helpers/defineProperty";import e from"moment";import t from"@babel/runtime/helpers/slicedToArray";import{jsx as o}from"react/jsx-runtime";import{MuiThemeProvider as n}from"@material-ui/core";import{darkTheme as i,lightTheme as c}from"../../config/theme/index.js";import{useState as m}from"react";import{MuiPickersUtilsProvider as p}from"@material-ui/pickers";import f from"@date-io/moment";function u(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function a(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}export default function(r){return function(u){var l=m(i),b=t(l,2),s=b[0],O=b[1];return o(n,{theme:s,children:o(p,{libInstance:e,utils:f,children:o(r,a(a({},u),{},{toggleTheme:function(){return O(s===i?c:i)}}))})})}}
@@ -1 +1 @@
1
- import{jsxs as e,jsx as i}from"react/jsx-runtime";import{makeStyles as t,Typography as r}from"@material-ui/core";import a from"prop-types";import o from"classnames";var p=t({wrapper:{position:"relative",width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",padding:"16px",zIndex:1,"@media (max-height:300px)":{paddingTop:"56px"},"@media (max-width:500px)":{paddingTop:"128px"}},errorImage:{width:"390px",height:"300px",marginTop:"24px","@media (max-height:400px)":{width:"260px",height:"200px"},"@media (max-height:300px)":{display:"none"},"@media (max-width:500px)":{width:"260px",height:"200px"}},title:{fontSize:"32px",fontStyle:"italic",color:"#9E9E9E",lineHeight:"37px",fontWeight:"normal","@media (max-height:400px)":{fontSize:"24px"},"@media (max-width:500px)":{fontSize:"24px"}},description:{fontSize:"16px",color:"#9E9E9E"},arrow:{position:"absolute",top:0,right:0,zIndex:-1,"@media (max-width: 960px)":{display:"none"}}});function s(t){var a=t.title,s=t.description,d=t.showArrow,n=t.customStyles,m=p();return e("div",{className:o(m.wrapper,n.wrapper),children:[i(r,{className:o(m.title,n.title),children:a}),i(r,{className:o(m.description,n.description),children:s}),i("img",{src:"/static/media/5010eaf4520add4dcd713ce1fdbda5ea.png",className:m.errorImage,alt:"error state"}),d&&i("img",{src:"/static/media/1be6a0ee1d46b5f5c15203014864e086.svg",alt:"arrow",className:o(m.arrow,n.arrow)})]})}s.propTypes={title:a.string,description:a.string,showArrow:a.bool,customStyles:a.shape({wrapper:a.string,title:a.string,description:a.string,arrow:a.string})},s.defaultProps={title:"No Data Available",description:"",showArrow:!1,customStyles:{}};export default s;
1
+ import{jsxs as i,jsx as e}from"react/jsx-runtime";import{makeStyles as t,Typography as r}from"@material-ui/core";import a from"prop-types";import o from"classnames";var p=t({wrapper:{position:"relative",width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",padding:"16px",zIndex:1,"@media (max-height:350px)":{paddingTop:"56px"},"@media (max-width:500px)":{paddingTop:"128px"}},errorImage:{width:"390px",height:"300px",marginTop:"24px","@media (max-height:400px)":{width:"260px",height:"200px"},"@media (max-height:350px), (max-width: 580px) and (max-height:550px)":{display:"none"},"@media (max-width:500px)":{width:"260px",height:"200px"}},title:{fontSize:"32px",fontStyle:"italic",color:"#9E9E9E",lineHeight:"37px",fontWeight:"normal","@media (max-height:400px)":{fontSize:"24px"},"@media (max-width:500px)":{fontSize:"24px"}},description:{fontSize:"16px",color:"#9E9E9E"},arrow:{position:"absolute",top:0,right:0,zIndex:-1,"@media (max-width: 960px)":{display:"none"}}});function s(t){var a=t.title,s=t.description,d=t.showArrow,n=t.customStyles,m=p();return i("div",{className:o(m.wrapper,n.wrapper),children:[e(r,{className:o(m.title,n.title),children:a}),e(r,{className:o(m.description,n.description),children:s}),e("img",{src:"/static/media/5010eaf4520add4dcd713ce1fdbda5ea.png",className:m.errorImage,alt:"error state"}),d&&e("img",{src:"/static/media/1be6a0ee1d46b5f5c15203014864e086.svg",alt:"arrow",className:o(m.arrow,n.arrow)})]})}s.propTypes={title:a.string,description:a.string,showArrow:a.bool,customStyles:a.shape({wrapper:a.string,title:a.string,description:a.string,arrow:a.string})},s.defaultProps={title:"No Data Available",description:"",showArrow:!1,customStyles:{}};export default s;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{jsxs as i,jsx as a}from"react/jsx-runtime";import{withStyles as l,Grid as t,Typography as r,Switch as o}from"@material-ui/core";import s from"prop-types";import c from"classnames";import n from"./style.css.js";var d=function(l){var s,d,b=l.title,m=l.leftLabel,p=l.rightLabel,h=l.checked,f=l.onChange,g=l.disabled,u=l.classes,L=l.size,k=m&&p;return i("div",{children:[b&&a("div",{className:n.switchControlTitle,children:b}),a("div",{className:n.switchControlWithLabels,children:i(t,{component:"label",container:!0,alignItems:"center",spacing:0,children:[m&&a(t,{item:!0,children:a(r,{variant:"body2",className:c(u.label,"small"===L&&u.labelSmall,!h&&!g&&u.activeLabel,g&&u.disabledLabel),children:m})}),a(t,{item:!0,children:a(o,{checked:h,onChange:f,color:"primary",disabled:g,classes:{root:u.root,switchBase:c((s={},e(s,u.switchBase,k||h&&!g),e(s,u.switchBaseDisabled,g&&(k||h)),e(s,u.switchBaseDisabledNoLabels,!k&&g&&!h),s)),track:c((d={},e(d,u.track,k||h&&!g),e(d,u.trackDisabled,g&&(k||h)),e(d,u.trackDisabledNoLabels,!k&&g&&!h),d))},size:L})}),p&&a(t,{item:!0,children:a(r,{variant:"body2",className:c(u.label,"small"===L&&u.labelSmall,h&&u.activeLabel,g&&u.disabledLabel),children:p})})]})})]})};d.propTypes={title:s.string,leftLabel:s.string,rightLabel:s.string,checked:s.bool.isRequired,onChange:s.func.isRequired,disabled:s.bool,classes:s.shape({}).isRequired,size:s.string},d.defaultProps={title:"",leftLabel:"",rightLabel:"",disabled:!1,size:"medium"};var b=l({root:{paddingLeft:10,paddingRight:10,width:56,"&.MuiSwitch-sizeSmall":{width:48,"& .MuiSwitch-switchBase":{paddingLeft:7}}},switchBase:{color:"#03BCD4","&.Mui-checked":{paddingLeft:7}},switchBaseDisabled:{color:"#196069 !important"},track:{backgroundColor:"#196069 !important",opacity:"1 !important",border:"none"},trackDisabled:{backgroundColor:"#223D40 !important",opacity:"1 !important",border:"none"},switchBaseDisabledNoLabels:{color:"#545454 !important"},trackDisabledNoLabels:{backgroundColor:"#3D3D3D !important",opacity:"1 !important",border:"none"},label:{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"16px",lineHeight:"22px",color:"#bdbdbd",margin:"8px 0px",cursor:"pointer"},labelSmall:{fontSize:"14px",lineHeight:"20px"},disabledLabel:{cursor:"default",color:"#616161"},activeLabel:{color:"#ffffff"}})(d);export default b;
1
+ import e from"@babel/runtime/helpers/defineProperty";import{jsxs as a,jsx as i}from"react/jsx-runtime";import{withStyles as l,Grid as t,Typography as r,Switch as s}from"@material-ui/core";import o from"prop-types";import c from"classnames";import n from"./style.css.js";var d=function(l){var o,d,b=l.title,m=l.leftLabel,p=l.rightLabel,h=l.checked,f=l.onChange,g=l.disabled,u=l.classes,L=l.size,k=l.className,w=m&&p;return a("div",{className:k,children:[b&&i("div",{className:n.switchControlTitle,children:b}),i("div",{className:n.switchControlWithLabels,children:a(t,{component:"label",container:!0,alignItems:"center",spacing:0,children:[m&&i(t,{item:!0,children:i(r,{variant:"body2",className:c(u.label,"small"===L&&u.labelSmall,!h&&!g&&u.activeLabel,g&&u.disabledLabel),children:m})}),i(t,{item:!0,children:i(s,{checked:h,onChange:f,color:"primary",disabled:g,classes:{root:u.root,switchBase:c((o={},e(o,u.switchBase,w||h&&!g),e(o,u.switchBaseDisabled,g&&(w||h)),e(o,u.switchBaseDisabledNoLabels,!w&&g&&!h),o)),track:c((d={},e(d,u.track,w||h&&!g),e(d,u.trackDisabled,g&&(w||h)),e(d,u.trackDisabledNoLabels,!w&&g&&!h),d))},size:L})}),p&&i(t,{item:!0,children:i(r,{variant:"body2",className:c(u.label,"small"===L&&u.labelSmall,h&&u.activeLabel,g&&u.disabledLabel),children:p})})]})})]})};d.propTypes={title:o.string,leftLabel:o.string,rightLabel:o.string,checked:o.bool.isRequired,onChange:o.func.isRequired,disabled:o.bool,classes:o.shape({}).isRequired,size:o.string,className:o.string},d.defaultProps={title:"",leftLabel:"",rightLabel:"",disabled:!1,size:"medium",className:""};var b=l({root:{paddingLeft:10,paddingRight:10,width:56,"&.MuiSwitch-sizeSmall":{width:48,"& .MuiSwitch-switchBase":{paddingLeft:7}}},switchBase:{color:"#03BCD4","&.Mui-checked":{paddingLeft:7}},switchBaseDisabled:{color:"#196069 !important"},track:{backgroundColor:"#196069 !important",opacity:"1 !important",border:"none"},trackDisabled:{backgroundColor:"#223D40 !important",opacity:"1 !important",border:"none"},switchBaseDisabledNoLabels:{color:"#545454 !important"},trackDisabledNoLabels:{backgroundColor:"#3D3D3D !important",opacity:"1 !important",border:"none"},label:{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"16px",lineHeight:"22px",color:"#bdbdbd",margin:"8px 0px",cursor:"pointer"},labelSmall:{fontSize:"14px",lineHeight:"20px"},disabledLabel:{cursor:"default",color:"#616161"},activeLabel:{color:"#ffffff"}})(d);export default b;
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import{jsx as o}from"react/jsx-runtime";import{createMuiTheme as e}from"@material-ui/core";import t from"@material-ui/icons/Close";import i from"./palette.mjs.js";import{dateTimePickerThemeOverrides as p}from"./dateTimePickerThemeOverrides.js";import m from"./accordionOverrides.js";import n from"./buttonOverrides.js";import a from"./checkboxOverrides.js";import c from"./chipOverrides.js";import s from"./fabOverrides.js";import d from"./formControlLabelOverrides.js";import l from"./formGroupOverrides.js";import u from"./radioOverrides.js";import f from"./tableOverrides.js";import g from"./textFieldOverrides.js";import b from"./tooltipOverrides.js";import{lightThemeVariables as x,darkThemeVariables as O}from"./themeVariables.mjs.js";import j from"./toggleButtonsGroupOverrides.js";function h(r,o){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);o&&(t=t.filter((function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),e.push.apply(e,t)}return e}function y(o){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?h(Object(t),!0).forEach((function(e){r(o,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))}))}return o}var v=i.primary,M=v.text7,k=v.text9,w={overrides:y(y(y(y(y(y(y(y(y(y(y(y(y({MuiMenu:{paper:{root:{overscrollBehaviorY:"contain","& .MuiMenuItem-root":{backgroundColor:i.background.b9,"&$selected":{backgroundColor:i.primary.text9}}}}},MuiMenuItem:{root:{minHeight:36,color:i.primary.contrastText}},MuiTooltip:{tooltip:{backgroundColor:i.background.b9}},MuiSwitch:{switchBase:{color:M},track:{backgroundColor:k,opacity:1},colorPrimary:{"&$checked":{"& + $track":{opacity:.38}}},colorSecondary:{"&$checked":{"& + $track":{opacity:.38}}}},MuiDialogTitle:{root:{padding:"40px 40px 16px 40px","@media (max-width: 960px)":{padding:"16px"}}},MuiDialogContent:{root:{padding:"0 40px 0 40px","@media (max-width: 960px)":{padding:"0 16px"}}},MuiDialogContentText:{root:{color:i.primary.text6,lineHeight:"22.5px",marginBottom:0}},MuiDialogActions:{root:{padding:"32px 40px 40px 40px","@media (max-width: 960px)":{padding:16}},spacing:{"&>:not(:first-child)":{marginLeft:16}}},MuiListItemIcon:{root:{minWidth:48}}},m),n),a),c),p),s),d),l),u),f),g),b),j)},C={MuiMenu:{getContentAnchorEl:function(){return null}},MuiCheckbox:{color:"primary"},MuiRadio:{color:"primary"},MuiChip:{deleteIcon:o(t,{})}},P=e(y(y(y({props:C},x),w),{},{isLightTheme:!0})),D=e(y(y({props:C},O),{},{palette:y(y({},O.palette),{},{type:"dark"})},w));export{D as darkTheme,P as lightTheme};
1
+ import r from"@babel/runtime/helpers/defineProperty";import{jsx as o}from"react/jsx-runtime";import{createMuiTheme as e}from"@material-ui/core";import t from"@material-ui/icons/Close";import i from"./palette.mjs.js";import{dateTimePickerThemeOverrides as p}from"./dateTimePickerThemeOverrides.js";import m from"./accordionOverrides.js";import a from"./buttonOverrides.js";import n from"./checkboxOverrides.js";import c from"./chipOverrides.js";import s from"./fabOverrides.js";import d from"./formControlLabelOverrides.js";import l from"./formGroupOverrides.js";import u from"./radioOverrides.js";import f from"./tableOverrides.js";import g from"./textFieldOverrides.js";import b from"./tooltipOverrides.js";import{lightThemeVariables as x,darkThemeVariables as O}from"./themeVariables.mjs.js";import j from"./toggleButtonsGroupOverrides.js";function h(r,o){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);o&&(t=t.filter((function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),e.push.apply(e,t)}return e}function y(o){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?h(Object(t),!0).forEach((function(e){r(o,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))}))}return o}var v=i.primary,M=v.text7,k=v.text9,w={overrides:y(y(y(y(y(y(y(y(y(y(y(y(y({MuiMenu:{paper:{root:{overscrollBehaviorY:"contain","& .MuiMenuItem-root":{backgroundColor:i.background.b9,"&$selected":{backgroundColor:i.primary.text9}}}}},MuiMenuItem:{root:{minHeight:36,color:i.primary.contrastText}},MuiTooltip:{tooltip:{backgroundColor:i.background.b9}},MuiSwitch:{switchBase:{color:M},track:{backgroundColor:k,opacity:1},colorPrimary:{"&$checked":{"& + $track":{opacity:.38}}},colorSecondary:{"&$checked":{"& + $track":{opacity:.38}}}},MuiDialogTitle:{root:{padding:"40px 40px 16px 40px","@media (max-width: 960px)":{padding:"16px"}}},MuiDialogContent:{root:{padding:"0 40px 0 40px","@media (max-width: 960px)":{padding:"0 16px"}}},MuiDialogContentText:{root:{color:i.primary.text6,lineHeight:"22.5px",marginBottom:0}},MuiDialogActions:{root:{padding:"32px 40px 40px 40px","@media (max-width: 960px)":{padding:16}},spacing:{"&>:not(:first-child)":{marginLeft:16}}},MuiListItemIcon:{root:{minWidth:48}}},m),a),n),c),p),s),d),l),u),f),g),b),j)},C={MuiMenu:{getContentAnchorEl:function(){return null}},MuiCheckbox:{color:"primary"},MuiRadio:{color:"primary"},MuiChip:{deleteIcon:o(t,{})}},P=e(y(y(y({props:C},x),w),{},{isLightTheme:!0})),D=e(y(y(y({props:C},O),{},{palette:y(y({},O.palette),{},{type:"dark"})},w),{},{isDarkTheme:!0}));export{D as darkTheme,P as lightTheme};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.25.0-3",
3
+ "version": "0.25.0-4",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"