@corva/ui 0.100.0-39 → 0.100.0-40
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/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
- package/cjs-bundle/componentsV2/Menu/Menu.js +1 -1
- package/cjs-bundle/componentsV2/Menu/Menu.scss.js +1 -1
- package/cjs-bundle/componentsV2/Paper/Paper.js +1 -1
- package/cjs-bundle/componentsV2/Popover/Popover.js +1 -1
- package/cjs-bundle/componentsV2/Popover/Popover.scss.js +1 -1
- package/cjs-bundle/componentsV2/Popover/utils.js +1 -0
- package/cjs-bundle/componentsV2/Popper/Popper.js +1 -0
- package/cjs-bundle/componentsV2/index.js +1 -1
- package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
- package/componentsV2/Menu/Menu.d.ts +3 -4
- package/componentsV2/Menu/Menu.d.ts.map +1 -1
- package/componentsV2/Menu/Menu.js +1 -1
- package/componentsV2/Menu/Menu.scss.js +1 -1
- package/componentsV2/Menu/Menu.stories.d.ts +1 -0
- package/componentsV2/Menu/Menu.stories.d.ts.map +1 -1
- package/componentsV2/Paper/Paper.d.ts +3 -1
- package/componentsV2/Paper/Paper.d.ts.map +1 -1
- package/componentsV2/Paper/Paper.js +1 -1
- package/componentsV2/Popover/Popover.d.ts +15 -45
- package/componentsV2/Popover/Popover.d.ts.map +1 -1
- package/componentsV2/Popover/Popover.js +1 -1
- package/componentsV2/Popover/Popover.scss.js +1 -1
- package/componentsV2/Popover/Popover.stories.d.ts +0 -2
- package/componentsV2/Popover/Popover.stories.d.ts.map +1 -1
- package/componentsV2/Popover/utils.d.ts +7 -0
- package/componentsV2/Popover/utils.d.ts.map +1 -0
- package/componentsV2/Popover/utils.js +1 -0
- package/componentsV2/Popper/Popper.d.ts +37 -0
- package/componentsV2/Popper/Popper.d.ts.map +1 -0
- package/componentsV2/Popper/Popper.js +1 -0
- package/componentsV2/Popper/Popper.stories.d.ts +8 -0
- package/componentsV2/Popper/Popper.stories.d.ts.map +1 -0
- package/componentsV2/Popper/index.d.ts +2 -0
- package/componentsV2/Popper/index.d.ts.map +1 -0
- package/componentsV2/index.d.ts +1 -0
- package/componentsV2/index.d.ts.map +1 -1
- package/componentsV2/index.js +1 -1
- package/package.json +1 -1
- package/cjs-bundle/componentsV2/Popover/DcPopover.js +0 -1
- package/componentsV2/Popover/DcPopover.d.ts +0 -3
- package/componentsV2/Popover/DcPopover.d.ts.map +0 -1
- package/componentsV2/Popover/DcPopover.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),o=require("react"),s=require("classnames"),r=require("@material-ui/core"),n=require("../IconButton/index.js"),i=require("../../icons/iconParkIcons.js");require("../../componentsV2/Text/Text.js"),require("../../componentsV2/Grid/Grid.js"),require("../../componentsV2/Grid/Grid.scss.js"),require("../../componentsV2/Header/Header.scss.js"),require("../../componentsV2/Button/Button.js"),require("../../componentsV2/ButtonIcon/ButtonIcon.js");var t=require("../../componentsV2/Tooltip/Tooltip.js");require("../../componentsV2/Popover/Popover.js"),require("../../componentsV2/Radio/Radio.js"),require("../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js"),require("../../componentsV2/Checkbox/Checkbox.js"),require("../../componentsV2/TextInput/TextInput.js"),require("lodash"),require("../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js"),require("../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js"),require("../../componentsV2/TextLink/TextLink.js"),require("../../componentsV2/Chip/Chip.js"),require("../../componentsV2/ChipAlert/ChipAlert.js"),require("../../componentsV2/ChipIndicator/ChipIndicator.js"),require("../../componentsV2/Avatar/Avatar.js"),require("../../componentsV2/Avatar/constants.js"),require("../../componentsV2/AvatarGroup/AvatarGroup.scss.js"),require("@material-ui/lab"),require("../../componentsV2/ToggleButtons/ToggleButtons.scss.js"),require("../../componentsV2/
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),o=require("react"),s=require("classnames"),r=require("@material-ui/core"),n=require("../IconButton/index.js"),i=require("../../icons/iconParkIcons.js");require("../../componentsV2/Text/Text.js"),require("../../componentsV2/Grid/Grid.js"),require("../../componentsV2/Grid/Grid.scss.js"),require("../../componentsV2/Header/Header.scss.js"),require("../../componentsV2/Button/Button.js"),require("../../componentsV2/ButtonIcon/ButtonIcon.js");var t=require("../../componentsV2/Tooltip/Tooltip.js");require("uuid"),require("../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js"),require("../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js"),require("../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js"),require("../../componentsV2/Paper/Paper.js"),require("../../componentsV2/Popover/Popover.scss.js"),require("../../componentsV2/Radio/Radio.js"),require("../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js"),require("../../componentsV2/Checkbox/Checkbox.js"),require("../../componentsV2/TextInput/TextInput.js"),require("lodash"),require("../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js"),require("../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js"),require("../../componentsV2/TextLink/TextLink.js"),require("../../componentsV2/Chip/Chip.js"),require("../../componentsV2/ChipAlert/ChipAlert.js"),require("../../componentsV2/ChipIndicator/ChipIndicator.js"),require("../../componentsV2/Avatar/Avatar.js"),require("../../componentsV2/Avatar/constants.js"),require("../../componentsV2/AvatarGroup/AvatarGroup.scss.js"),require("@material-ui/lab"),require("../../componentsV2/ToggleButtons/ToggleButtons.scss.js"),require("../../componentsV2/Modal/Modal.scss.js"),require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../componentsV2/Menu/Menu.js"),require("../../componentsV2/Counter/Counter.js"),require("../../componentsV2/BadgeBase/BadgeBase.scss.js"),require("../../componentsV2/BadgeDot/BadgeDot.scss.js"),require("../../componentsV2/LoaderLinear/LoaderLinear.scss.js"),require("../../componentsV2/Switch/Switch.js"),require("../../componentsV2/Tabs/Tabs.js"),require("../../componentsV2/EmptyState/EmptyState.scss.js"),require("../../componentsV2/FileIcon/FileIcon.js"),require("react-dropzone"),require("../../utils/index.js"),require("../../componentsV2/FilesDropzone/FilesDropzone.scss.js"),require("../../componentsV2/Skeleton/Skeleton.scss.js"),require("../../utils/main.js"),require("../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js"),require("../../componentsV2/Stepper/Step/Step.scss.js"),require("../../componentsV2/Stepper/Stepper.scss.js"),require("../../componentsV2/ButtonLive/ButtonLive.js"),require("../../componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js"),require("../../componentsV2/IndicatorLive/IndicatorLive.scss.js"),require("../../componentsV2/Accordion/Accordion.scss.js"),require("../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js");var c=require("./RealTimeSidebarContext.js"),u=require("./enums.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=a(s),p=r.makeStyles((function(e){return{button:{fontSize:14,fontWeight:500},buttonIcon:{fontSize:24,marginRight:8},closedButton:{marginBottom:"78px",zIndex:1e3},rtSidebarFooter:{position:"absolute",right:0,"&.vertical":{left:0,bottom:0},"&.horizontal":{top:0}},rtSidebarFooterIcon:{color:e.palette.primary.text6},rtSidebarFooterActions:{display:"flex",paddingRight:"5px",alignItems:"center",height:48,width:48,padding:6,"&.horizontal":{flexDirection:"row-reverse"}},actionButton:{padding:12,height:36,width:36},openToggleContainer:{alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,padding:6,position:"absolute",width:"100%",justifyContent:"flex-start",paddingRight:6},collapseTooltip:{marginTop:-8},expandTooltip:{marginTop:-48}}}));var l=o.memo((function(s){var a=s.onSidebarOpened,l=s.onSidebarClosed,m=p(),j=o.useContext(c),q=j.isSidebarOpen,I=j.orientation,x=j.handleOpenCloseDialog;return e.jsx("div",{className:d.default(m.rtSidebarFooter,I),"data-testid":"sidebar_footer",children:q?e.jsx(r.Box,{className:m.openToggleContainer,children:e.jsx(t.Tooltip,{title:"Collapse",className:m.collapseTooltip,children:e.jsxs("div",{className:d.default(m.rtSidebarFooterActions,I),children:[e.jsx(n,{"data-testid":"sidebar_close_button",onClick:l,className:m.actionButton,children:I===u.ORIENTATIONS.vertical?e.jsx(i.RightIcon,{}):e.jsx(i.UpIcon,{className:m.rtSidebarFooterIcon})}),I===u.ORIENTATIONS.horizontal&&e.jsx(n,{color:"primary",tooltipProps:{title:"Add"},onClick:function(){return x(!0)},className:m.actionButton,children:e.jsx(i.PlusIcon,{})})]})})}):e.jsx(t.Tooltip,{title:"Expand",className:m.expandTooltip,children:e.jsx("div",{className:d.default(m.rtSidebarFooterActions,I),children:e.jsx(n,{onClick:a,"data-testid":"sidebar_open_button",className:d.default(m.closedButton,m.actionButton),children:I===u.ORIENTATIONS.vertical?e.jsx(i.LeftIcon,{}):e.jsx(i.DownIcon,{})})})})})}));module.exports=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),t=require("classnames"),i=require("react"),n=require("../Popover/Popover.js"),s=require("./MenuItem/MenuItem.js"),u=require("./MenuGroup/MenuGroup.js"),o=require("./MenuDivider/MenuDivider.js"),a=require("./Menu.scss.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(t),d=function(t){var s=t.className,u=t.children,o=t.containerRef,l=t.placement,d=void 0===l?"bottom-start":l,m=e.__rest(t,["className","children","containerRef","placement"]),v=i.useMemo((function(){var e=(null==d?void 0:d.startsWith("top"))||(null==d?void 0:d.startsWith("bottom")),r=(null==d?void 0:d.startsWith("left"))||(null==d?void 0:d.startsWith("right"));return c.default(a.root,e&&a.marginVertical,r&&a.marginHorizontal,s)}),[d,s]);return r.jsx(n.Popover,e.__assign({},m,{className:v,placement:d,children:r.jsx("div",{className:a.content,ref:o,children:u})}))};d.Item=s.MenuItem,d.Group=u.MenuGroup,d.Divider=o.MenuDivider;var m=d;exports.Menu=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')('.Menu_root__TBmYi{position:relative}.Menu_root__TBmYi:before{background:linear-gradient(180deg,rgb(from var(--corvaui-background) r g b/1) 0,rgb(from var(--corvaui-background) r g b/0) 100%);inset:0 10px auto 0}.Menu_root__TBmYi:after,.Menu_root__TBmYi:before{content:"";height:8px;position:absolute;z-index:1}.Menu_root__TBmYi:after{background:linear-gradient(0deg,rgb(from var(--corvaui-background) r g b/1) 0,rgb(from var(--corvaui-background) r g b/0) 100%);inset:auto 10px 0 0}.Menu_content__6jGcL{height:100%;overflow:auto;padding:8px 16px}.Menu_marginVertical__2QM0H{margin:8px 0}.Menu_marginHorizontal__eWQeu{margin:0 8px}'),module.exports={spacing:"8",root:"Menu_root__TBmYi",content:"Menu_content__6jGcL",marginVertical:"Menu_marginVertical__2QM0H",marginHorizontal:"Menu_marginHorizontal__eWQeu"};
|
|
1
|
+
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')('.Menu_root__TBmYi{overflow-x:hidden;overflow-y:auto;position:relative}.Menu_root__TBmYi:before{background:linear-gradient(180deg,rgb(from var(--corvaui-background) r g b/1) 0,rgb(from var(--corvaui-background) r g b/0) 100%);inset:0 10px auto 0}.Menu_root__TBmYi:after,.Menu_root__TBmYi:before{content:"";height:8px;position:absolute;z-index:1}.Menu_root__TBmYi:after{background:linear-gradient(0deg,rgb(from var(--corvaui-background) r g b/1) 0,rgb(from var(--corvaui-background) r g b/0) 100%);inset:auto 10px 0 0}.Menu_content__6jGcL{height:100%;overflow:auto;padding:8px 16px}.Menu_marginVertical__2QM0H{margin:8px 0}.Menu_marginHorizontal__eWQeu{margin:0 8px}'),module.exports={spacing:"8",root:"Menu_root__TBmYi",content:"Menu_content__6jGcL",marginVertical:"Menu_marginVertical__2QM0H",marginHorizontal:"Menu_marginHorizontal__eWQeu"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),s=require("react"),t=require("@material-ui/core"),a=require("classnames"),o=require("./Paper.scss.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(a),i=s.forwardRef((function(s,a){var n=s.children,i=s.className,l=s.testId,c=s.onMouseLeave,d=s.onMouseEnter,f=e.__rest(s,["children","className","testId","onMouseLeave","onMouseEnter"]);return r.jsx(t.Paper,e.__assign({className:u.default(o.root,i),"data-testid":l,ref:a,tabIndex:-1,elevation:0,onMouseEnter:d,onMouseLeave:c},f,{children:n}))}));exports.Paper=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),o=require("@material-ui/core"),s=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),o=require("react"),n=require("@material-ui/core"),s=require("classnames"),t=require("../Popper/Popper.js"),c=require("../Paper/Paper.js"),a=require("./utils.js"),i=require("./Popover.scss.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=u(s);exports.Popover=function(s){var u=s.children,d=s.open,p=s.onClose,v=s.className,f=s.closeOnBackdropClick,m=void 0===f||f,j=s.closeOnEscape,b=void 0===j||j,k=s.backdrop,E=void 0===k||k,P=s.anchorEl,q=s.preventScroll,x=void 0===q||q,h=s.placement,y=void 0===h?"bottom-start":h,C=s.onMouseLeave,M=s.onMouseEnter,N=o.useCallback((function(){p&&m&&p("backdropClick")}),[p,m]);return o.useEffect((function(){var e=function(e){"Escape"!==e.key&&"Esc"!==e.key||null==p||p("escapeKey")};return d&&b?(document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}):function(){}}),[p,b,d]),o.useEffect((function(){return d&&x?a.disableScroll(document.body):function(){}}),[d,x]),r.jsxs(r.Fragment,{children:[E&&r.jsx(t.Popper,{open:d,className:i.root,children:r.jsx("div",{className:i.backdrop,onClick:N})}),r.jsx(t.Popper,{open:d,anchorEl:P,placement:y,className:i.root,transition:!0,children:function(o){var s=o.TransitionProps;return r.jsx(n.Grow,e.__assign({},s,{timeout:"auto",disableStrictModeCompat:!0,children:r.jsx(c.Paper,{className:l.default(i.paper,v),onMouseEnter:M,onMouseLeave:C,children:u})}))}})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')(".
|
|
1
|
+
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')(".Popover_root__jbuJL{z-index:1300}.Popover_backdrop__MLBZb{inset:0;position:fixed}.Popover_paper__wjJL5{max-height:calc(100vh - 32px);max-width:calc(100vw - 32px);min-height:16px;min-width:16px;outline:0;overflow-x:hidden;overflow-y:auto}"),module.exports={root:"Popover_root__jbuJL",backdrop:"Popover_backdrop__MLBZb",paper:"Popover_paper__wjJL5"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.disableScroll=function(e){var t,o=[];if(function(e){return document.body===e?window.innerWidth>document.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(e)){var r=function(e){void 0===e&&(e=window);var t=e.document.documentElement.clientWidth;return e.innerWidth-t}(window);o.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat((t=e,(parseInt(window.getComputedStyle(t).paddingRight,10)||0)+r),"px")}var l=e.parentElement,n="HTML"===(null==l?void 0:l.nodeName)&&"scroll"===window.getComputedStyle(l).overflowY?l:e;return o.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden",function(){o.forEach((function(e){var t=e.value,o=e.el,r=e.property;t?o.style.setProperty(r,t):o.style.removeProperty(r)}))}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),s=require("@material-ui/core"),n=require("../../effects/useDelayedDcFullscreenElemOpen.js"),i=require("../../components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js"),o=require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js");function l(i){var l=i.children,c=i.open,p=e.__rest(i,["children","open"]),t=n.useDelayedDcFullscreenElemOpen({isOpen:c}).delayedIsOpen;return r.jsx(s.Popper,e.__assign({},p,{open:t,children:r.jsx(o.IsInsideDcFullscreenElemProvider,{children:l})}))}exports.Popper=function(n){var c=i.useIsInsideDcApp(),p=o.useIsInsideDcFullscreenElem(),t=c&&!p?l:s.Popper;return r.jsx(t,e.__assign({},n))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Text/Text.js"),r=require("./Grid/Grid.js"),o=require("./Grid/Cell.js"),t=require("./Header/Header.js"),i=require("./Button/Button.js"),p=require("./ButtonIcon/ButtonIcon.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Text/Text.js"),r=require("./Grid/Grid.js"),o=require("./Grid/Cell.js"),t=require("./Header/Header.js"),i=require("./Button/Button.js"),p=require("./ButtonIcon/ButtonIcon.js"),s=require("./Tooltip/Tooltip.js"),u=require("./Popover/Popover.js"),a=require("./Radio/Radio.js"),n=require("./RadioGroup/RadioGroup.js"),d=require("./Checkbox/Checkbox.js"),x=require("./CheckboxGroup/CheckboxGroup.js"),c=require("./TextInput/TextInput.js"),l=require("./TextEndTruncated/TextEndTruncated.js"),j=require("./TextMiddleTruncated/TextMiddleTruncated.js"),T=require("./TextLink/TextLink.js"),q=require("./LoaderCircular/LoaderCircular.js"),C=require("./Chip/Chip.js"),B=require("./ChipAlert/ChipAlert.js"),h=require("./ChipIndicator/ChipIndicator.js"),L=require("./Avatar/Avatar.js"),v=require("./AvatarGroup/AvatarGroup.js"),b=require("./ToggleButtons/ToggleButtons.js"),I=require("./Paper/Paper.js"),G=require("./Modal/Modal.js"),g=require("./Menu/Menu.js"),k=require("./Counter/Counter.js"),A=require("./BadgeCounter/BadgeCounter.js"),S=require("./BadgeDot/BadgeDot.js"),M=require("./LoaderLinear/LoaderLinear.js"),P=require("./Switch/Switch.js"),y=require("./Tabs/Tabs.js"),m=require("./EmptyState/EmptyState.js"),D=require("./FileIcon/FileIcon.js"),E=require("./FilesDropzone/FilesDropzone.js"),F=require("./Skeleton/Skeleton.js"),R=require("./CopyToClipboard/CopyToClipboard.js"),w=require("./Stepper/Stepper.js"),z=require("./ButtonLive/ButtonLive.js"),H=require("./IndicatorLive/IndicatorLive.js"),_=require("./Accordion/Accordion.js"),f=require("./Breadcrumbs/Breadcrumbs.js"),O=require("./Popper/Popper.js");exports.Text=e.Text,exports.Grid=r.Grid,exports.Cell=o.Cell,exports.Header=t.Header,exports.Button=i.Button,exports.ButtonIcon=p.ButtonIcon,exports.Tooltip=s.Tooltip,exports.Popover=u.Popover,exports.Radio=a.Radio,exports.RadioGroup=n.RadioGroup,exports.Checkbox=d.Checkbox,exports.CheckboxGroup=x.CheckboxGroup,exports.TextInput=c.TextInput,exports.TextEndTruncated=l.TextEndTruncated,exports.TextMiddleTruncated=j.TextMiddleTruncated,exports.TextLink=T.TextLink,exports.LoaderCircular=q.LoaderCircular,exports.Chip=C.Chip,exports.ChipAlert=B.ChipAlert,exports.ChipIndicator=h.ChipIndicator,exports.Avatar=L.Avatar,exports.AvatarGroup=v.AvatarGroup,exports.ToggleButtons=b.ToggleButtons,exports.Paper=I.Paper,exports.Modal=G.Modal,exports.Menu=g.Menu,exports.Counter=k.Counter,exports.BadgeCounter=A.BadgeCounter,exports.BadgeDot=S.BadgeDot,exports.LoaderLinear=M.LoaderLinear,exports.Switch=P.Switch,exports.Tabs=y.Tabs,exports.EmptyState=m.EmptyState,exports.FileIcon=D.FileIcon,exports.FilesDropzone=E.FilesDropzone,exports.Skeleton=F.Skeleton,exports.CopyToClipboard=R.CopyToClipboard,exports.Stepper=w.Stepper,exports.ButtonLive=z.ButtonLive,exports.IndicatorLive=H.IndicatorLive,exports.Accordion=_.Accordion,exports.Breadcrumbs=f.Breadcrumbs,exports.Popper=O.Popper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o,jsxs as t}from"react/jsx-runtime";import{memo as s,useContext as n}from"react";import e from"classnames";import{makeStyles as i,Box as r}from"@material-ui/core";import c from"../IconButton/index.js";import{RightIcon as p,UpIcon as m,PlusIcon as a,LeftIcon as d,DownIcon as l}from"../../icons/iconParkIcons.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Grid.scss.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import{Tooltip as u}from"../../componentsV2/Tooltip/Tooltip.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"lodash";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/Avatar/constants.js";import"../../componentsV2/AvatarGroup/AvatarGroup.scss.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/
|
|
1
|
+
import{jsx as o,jsxs as t}from"react/jsx-runtime";import{memo as s,useContext as n}from"react";import e from"classnames";import{makeStyles as i,Box as r}from"@material-ui/core";import c from"../IconButton/index.js";import{RightIcon as p,UpIcon as m,PlusIcon as a,LeftIcon as d,DownIcon as l}from"../../icons/iconParkIcons.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Grid.scss.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import{Tooltip as u}from"../../componentsV2/Tooltip/Tooltip.js";import"uuid";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/Popover/Popover.scss.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"lodash";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/Avatar/constants.js";import"../../componentsV2/AvatarGroup/AvatarGroup.scss.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"react-dropzone";import"../../utils/index.js";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js";import"../../componentsV2/IndicatorLive/IndicatorLive.scss.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import j from"./RealTimeSidebarContext.js";import{ORIENTATIONS as I}from"./enums.js";var h=i((function(o){return{button:{fontSize:14,fontWeight:500},buttonIcon:{fontSize:24,marginRight:8},closedButton:{marginBottom:"78px",zIndex:1e3},rtSidebarFooter:{position:"absolute",right:0,"&.vertical":{left:0,bottom:0},"&.horizontal":{top:0}},rtSidebarFooterIcon:{color:o.palette.primary.text6},rtSidebarFooterActions:{display:"flex",paddingRight:"5px",alignItems:"center",height:48,width:48,padding:6,"&.horizontal":{flexDirection:"row-reverse"}},actionButton:{padding:12,height:36,width:36},openToggleContainer:{alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,padding:6,position:"absolute",width:"100%",justifyContent:"flex-start",paddingRight:6},collapseTooltip:{marginTop:-8},expandTooltip:{marginTop:-48}}}));var C=s((function(s){var i=s.onSidebarOpened,C=s.onSidebarClosed,V=h(),b=n(j),v=b.isSidebarOpen,x=b.orientation,g=b.handleOpenCloseDialog;return o("div",{className:e(V.rtSidebarFooter,x),"data-testid":"sidebar_footer",children:v?o(r,{className:V.openToggleContainer,children:o(u,{title:"Collapse",className:V.collapseTooltip,children:t("div",{className:e(V.rtSidebarFooterActions,x),children:[o(c,{"data-testid":"sidebar_close_button",onClick:C,className:V.actionButton,children:x===I.vertical?o(p,{}):o(m,{className:V.rtSidebarFooterIcon})}),x===I.horizontal&&o(c,{color:"primary",tooltipProps:{title:"Add"},onClick:function(){return g(!0)},className:V.actionButton,children:o(a,{})})]})})}):o(u,{title:"Expand",className:V.expandTooltip,children:o("div",{className:e(V.rtSidebarFooterActions,x),children:o(c,{onClick:i,"data-testid":"sidebar_open_button",className:e(V.closedButton,V.actionButton),children:x===I.vertical?o(d,{}):o(l,{})})})})})}));export{C as default};
|
|
@@ -9,12 +9,11 @@ export type MenuProps = {
|
|
|
9
9
|
*/
|
|
10
10
|
anchorEl: Required<PopoverProps>['anchorEl'];
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Ref to content container
|
|
13
13
|
*/
|
|
14
|
-
anchorOrigin?: PopoverProps['anchorOrigin'];
|
|
15
14
|
containerRef?: Ref<HTMLDivElement>;
|
|
16
|
-
} & Omit<PopoverProps, '
|
|
17
|
-
declare const MenuBase: ({ className,
|
|
15
|
+
} & Omit<PopoverProps, 'anchorEl'>;
|
|
16
|
+
declare const MenuBase: ({ className, children, containerRef, placement, ...rest }: MenuProps) => JSX.Element;
|
|
18
17
|
type MenuType = typeof MenuBase & {
|
|
19
18
|
Item: typeof MenuItem;
|
|
20
19
|
Group: typeof MenuGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Menu/Menu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAW,MAAM,OAAO,CAAC;AAErC,OAAO,EAAW,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,CAAC;IAC7C;;OAEG;IACH,YAAY,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Menu/Menu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAW,MAAM,OAAO,CAAC;AAErC,OAAO,EAAW,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,CAAC;IAC7C;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CACpC,GAAG,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AAEnC,QAAA,MAAM,QAAQ,8DAMX,SAAS,gBAqBX,CAAC;AAEF,KAAK,QAAQ,GAAG,OAAO,QAAQ,GAAG;IAChC,IAAI,EAAE,OAAO,QAAQ,CAAC;IACtB,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB,OAAO,EAAE,OAAO,WAAW,CAAC;CAC7B,CAAC;AAMF,eAAO,MAAM,IAAI,EAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as r,__assign as
|
|
1
|
+
import{__rest as r,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import o from"classnames";import{useMemo as i}from"react";import{Popover as n}from"../Popover/Popover.js";import{MenuItem as m}from"./MenuItem/MenuItem.js";import{MenuGroup as s}from"./MenuGroup/MenuGroup.js";import{MenuDivider as a}from"./MenuDivider/MenuDivider.js";import l from"./Menu.scss.js";var c=function(m){var s=m.className,a=m.children,c=m.containerRef,u=m.placement,p=void 0===u?"bottom-start":u,d=r(m,["className","children","containerRef","placement"]),f=i((function(){var r=(null==p?void 0:p.startsWith("top"))||(null==p?void 0:p.startsWith("bottom")),t=(null==p?void 0:p.startsWith("left"))||(null==p?void 0:p.startsWith("right"));return o(l.root,r&&l.marginVertical,t&&l.marginHorizontal,s)}),[p,s]);return e(n,t({},d,{className:f,placement:p,children:e("div",{className:l.content,ref:c,children:a})}))};c.Item=m,c.Group=s,c.Divider=a;var u=c;export{u as Menu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from'./../../ext-esm/style-inject/dist/style-inject.es.js';var o={spacing:"8",root:"Menu_root__TBmYi",content:"Menu_content__6jGcL",marginVertical:"Menu_marginVertical__2QM0H",marginHorizontal:"Menu_marginHorizontal__eWQeu"};r('.Menu_root__TBmYi{position:relative}.Menu_root__TBmYi:before{background:linear-gradient(180deg,rgb(from var(--corvaui-background) r g b/1) 0,rgb(from var(--corvaui-background) r g b/0) 100%);inset:0 10px auto 0}.Menu_root__TBmYi:after,.Menu_root__TBmYi:before{content:"";height:8px;position:absolute;z-index:1}.Menu_root__TBmYi:after{background:linear-gradient(0deg,rgb(from var(--corvaui-background) r g b/1) 0,rgb(from var(--corvaui-background) r g b/0) 100%);inset:auto 10px 0 0}.Menu_content__6jGcL{height:100%;overflow:auto;padding:8px 16px}.Menu_marginVertical__2QM0H{margin:8px 0}.Menu_marginHorizontal__eWQeu{margin:0 8px}');export{o as default};
|
|
1
|
+
import r from'./../../ext-esm/style-inject/dist/style-inject.es.js';var o={spacing:"8",root:"Menu_root__TBmYi",content:"Menu_content__6jGcL",marginVertical:"Menu_marginVertical__2QM0H",marginHorizontal:"Menu_marginHorizontal__eWQeu"};r('.Menu_root__TBmYi{overflow-x:hidden;overflow-y:auto;position:relative}.Menu_root__TBmYi:before{background:linear-gradient(180deg,rgb(from var(--corvaui-background) r g b/1) 0,rgb(from var(--corvaui-background) r g b/0) 100%);inset:0 10px auto 0}.Menu_root__TBmYi:after,.Menu_root__TBmYi:before{content:"";height:8px;position:absolute;z-index:1}.Menu_root__TBmYi:after{background:linear-gradient(0deg,rgb(from var(--corvaui-background) r g b/1) 0,rgb(from var(--corvaui-background) r g b/0) 100%);inset:auto 10px 0 0}.Menu_content__6jGcL{height:100%;overflow:auto;padding:8px 16px}.Menu_marginVertical__2QM0H{margin:8px 0}.Menu_marginHorizontal__eWQeu{margin:0 8px}');export{o as default};
|
|
@@ -11,4 +11,5 @@ export declare const PrefixAndSuffix: () => JSX.Element;
|
|
|
11
11
|
export declare const Checkboxes: () => JSX.Element;
|
|
12
12
|
export declare const Groups: () => JSX.Element;
|
|
13
13
|
export declare const ConstrainedMenu: () => JSX.Element;
|
|
14
|
+
export declare const OpenOnHover: () => JSX.Element;
|
|
14
15
|
//# sourceMappingURL=Menu.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Menu/Menu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAuC,MAAM,OAAO,CAAC;AAQ5E,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI9B,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAkBF,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,OAAO,UAAW,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,gBAgCrD,CAAC;AAEF,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Menu/Menu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAuC,MAAM,OAAO,CAAC;AAQ5E,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI9B,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAkBF,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,OAAO,UAAW,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,gBAgCrD,CAAC;AAEF,eAAO,MAAM,WAAW,mBAsBvB,CAAC;AAMF,eAAO,MAAM,KAAK,mBA2BjB,CAAC;AAQF,eAAO,MAAM,eAAe,mBAoB3B,CAAC;AAQF,eAAO,MAAM,UAAU,mBAmDtB,CAAC;AAMF,eAAO,MAAM,MAAM,mBA0BlB,CAAC;AAKF,eAAO,MAAM,eAAe,mBAsB3B,CAAC;AAQF,eAAO,MAAM,WAAW,mBAsCvB,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
export type PaperProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Component contents
|
|
5
5
|
*/
|
|
6
6
|
children?: ReactNode;
|
|
7
|
+
onMouseEnter?: MouseEventHandler;
|
|
8
|
+
onMouseLeave?: MouseEventHandler;
|
|
7
9
|
className?: string;
|
|
8
10
|
testId?: string;
|
|
9
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paper.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Paper/Paper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Paper.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Paper/Paper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMjE,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,KAAK,uGA4BjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{forwardRef as
|
|
1
|
+
import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{forwardRef as s}from"react";import{Paper as t}from"@material-ui/core";import a from"classnames";import n from"./Paper.scss.js";var m=s((function(s,m){var i=s.children,c=s.className,l=s.testId,u=s.onMouseLeave,d=s.onMouseEnter,p=e(s,["children","className","testId","onMouseLeave","onMouseEnter"]);return r(t,o({className:a(n.root,c),"data-testid":l,ref:m,tabIndex:-1,elevation:0,onMouseEnter:d,onMouseLeave:u},p,{children:i}))}));export{m as Paper};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { PopperProps } from '../Popper';
|
|
2
3
|
export type PopoverProps = {
|
|
3
4
|
open: boolean;
|
|
5
|
+
placement?: PopperProps['placement'];
|
|
6
|
+
/**
|
|
7
|
+
* A HTML element, or a function that returns it. It's used to set the position of the popover.
|
|
8
|
+
*/
|
|
9
|
+
anchorEl?: HTMLElement | (() => HTMLElement) | null;
|
|
4
10
|
/**
|
|
5
11
|
* The content of the component.
|
|
6
12
|
*/
|
|
@@ -9,52 +15,16 @@ export type PopoverProps = {
|
|
|
9
15
|
closeOnBackdropClick?: boolean;
|
|
10
16
|
closeOnEscape?: boolean;
|
|
11
17
|
/**
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
transformOrigin?: {
|
|
15
|
-
horizontal: 'center' | 'left' | 'right' | number;
|
|
16
|
-
vertical: 'bottom' | 'center' | 'top' | number;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Restore focus to previously focused element once popover is hidden
|
|
20
|
-
*/
|
|
21
|
-
restoreFocus?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Determines if backdrop is clickable/prevents scroll
|
|
18
|
+
* Determines if backdrop should be rendered
|
|
24
19
|
*/
|
|
25
20
|
backdrop?: boolean;
|
|
26
|
-
className?: string;
|
|
27
|
-
} & ({
|
|
28
|
-
/**
|
|
29
|
-
* A HTML element, or a function that returns it. It's used to set the position of the popover.
|
|
30
|
-
*
|
|
31
|
-
* Mutually exclusive with `position`
|
|
32
|
-
*/
|
|
33
|
-
anchorEl: HTMLElement | (() => HTMLElement) | null;
|
|
34
21
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* Mutually exclusive with `position`
|
|
38
|
-
*
|
|
39
|
-
* @default { vertical: 'top', horizontal: 'left',}
|
|
22
|
+
* Prevents scroll when open
|
|
40
23
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Defines Popover's position relative to application's viewport.
|
|
49
|
-
*
|
|
50
|
-
* Mutually exclusive with `anchorEl` and `anchorOrigin` props
|
|
51
|
-
*/
|
|
52
|
-
position: {
|
|
53
|
-
left: number;
|
|
54
|
-
top: number;
|
|
55
|
-
};
|
|
56
|
-
anchorEl?: never;
|
|
57
|
-
anchorOrigin?: never;
|
|
58
|
-
});
|
|
59
|
-
export declare const Popover: ({ children, open, onClose, transformOrigin, className, closeOnBackdropClick, closeOnEscape, restoreFocus, backdrop, ...positionProps }: PopoverProps) => JSX.Element;
|
|
24
|
+
preventScroll?: boolean;
|
|
25
|
+
onMouseEnter?: MouseEventHandler;
|
|
26
|
+
onMouseLeave?: MouseEventHandler;
|
|
27
|
+
className?: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const Popover: ({ children, open, onClose, className, closeOnBackdropClick, closeOnEscape, backdrop, anchorEl, preventScroll, placement, onMouseLeave, onMouseEnter, }: PopoverProps) => JSX.Element;
|
|
60
30
|
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Popover/Popover.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAC;AAI7E,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAOhD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO,CAAC;IAEd,SAAS,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,GAAG,IAAI,CAAC;IAEpD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,GAAG,WAAW,KAAK,IAAI,CAAC;IAC1D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,OAAO,2JAajB,YAAY,gBA+Dd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,Fragment as r,jsx as n}from"react/jsx-runtime";import{useCallback as t,useEffect as i}from"react";import{Grow as c}from"@material-ui/core";import s from"classnames";import{Popper as a}from"../Popper/Popper.js";import{Paper as m}from"../Paper/Paper.js";import{disableScroll as p}from"./utils.js";import l from"./Popover.scss.js";var d=function(d){var u=d.children,f=d.open,v=d.onClose,k=d.className,E=d.closeOnBackdropClick,b=void 0===E||E,h=d.closeOnEscape,j=void 0===h||h,y=d.backdrop,P=void 0===y||y,C=d.anchorEl,M=d.preventScroll,N=void 0===M||M,L=d.placement,w=void 0===L?"bottom-start":L,x=d.onMouseLeave,O=d.onMouseEnter,S=t((function(){v&&b&&v("backdropClick")}),[v,b]);return i((function(){var o=function(o){"Escape"!==o.key&&"Esc"!==o.key||null==v||v("escapeKey")};return f&&j?(document.addEventListener("keydown",o),function(){document.removeEventListener("keydown",o)}):function(){}}),[v,j,f]),i((function(){return f&&N?p(document.body):function(){}}),[f,N]),e(r,{children:[P&&n(a,{open:f,className:l.root,children:n("div",{className:l.backdrop,onClick:S})}),n(a,{open:f,anchorEl:C,placement:w,className:l.root,transition:!0,children:function(e){var r=e.TransitionProps;return n(c,o({},r,{timeout:"auto",disableStrictModeCompat:!0,children:n(m,{className:s(l.paper,k),onMouseEnter:O,onMouseLeave:x,children:u})}))}})]})};export{d as Popover};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={
|
|
1
|
+
import o from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={root:"Popover_root__jbuJL",backdrop:"Popover_backdrop__MLBZb",paper:"Popover_paper__wjJL5"};o(".Popover_root__jbuJL{z-index:1300}.Popover_backdrop__MLBZb{inset:0;position:fixed}.Popover_paper__wjJL5{max-height:calc(100vh - 32px);max-width:calc(100vw - 32px);min-height:16px;min-width:16px;outline:0;overflow-x:hidden;overflow-y:auto}");export{e as default};
|
|
@@ -5,8 +5,6 @@ type Props = ComponentProps<typeof Popover>;
|
|
|
5
5
|
declare const meta: Meta<Props>;
|
|
6
6
|
export default meta;
|
|
7
7
|
export declare const Default: (props: Omit<Props, "position">) => JSX.Element;
|
|
8
|
-
export declare const PositioningModes: () => JSX.Element;
|
|
9
8
|
export declare const CloseVectors: () => JSX.Element;
|
|
10
9
|
export declare const OpenOnHover: () => JSX.Element;
|
|
11
|
-
export declare const AnchorPlayground: () => JSX.Element;
|
|
12
10
|
//# sourceMappingURL=Popover.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Popover/Popover.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Popover/Popover.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAoB,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAKxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC;AAE5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAkBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,gBAqBrD,CAAC;AAGF,eAAO,MAAM,YAAY,mBA2BxB,CAAC;AAQF,eAAO,MAAM,WAAW,mBAkCvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Popover/utils.ts"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,eAAO,MAAM,aAAa,cAAe,WAAW,eA+DnD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e){var t,o=[];if(function(e){return document.body===e?window.innerWidth>document.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(e)){var r=function(e){void 0===e&&(e=window);var t=e.document.documentElement.clientWidth;return e.innerWidth-t}(window);o.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat((t=e,(parseInt(window.getComputedStyle(t).paddingRight,10)||0)+r),"px")}var n=e.parentElement,l="HTML"===(null==n?void 0:n.nodeName)&&"scroll"===window.getComputedStyle(n).overflowY?n:e;return o.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden",function(){o.forEach((function(e){var t=e.value,o=e.el,r=e.property;t?o.style.setProperty(r,t):o.style.removeProperty(r)}))}};export{e as disableScroll};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PopperPlacementType as MuiPopperPlacementType } from '@material-ui/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { TransitionProps } from '@material-ui/core/transitions/transition';
|
|
4
|
+
export type PopperProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Contents of the popover
|
|
7
|
+
*/
|
|
8
|
+
children: ReactNode | ((props: {
|
|
9
|
+
placement: MuiPopperPlacementType;
|
|
10
|
+
TransitionProps?: TransitionProps;
|
|
11
|
+
}) => ReactNode);
|
|
12
|
+
open: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Defines an HTML node to which the content will be positioned
|
|
15
|
+
*/
|
|
16
|
+
anchorEl?: HTMLElement | (() => HTMLElement) | null;
|
|
17
|
+
/**
|
|
18
|
+
* Defines placement
|
|
19
|
+
* @default bottom
|
|
20
|
+
*/
|
|
21
|
+
placement?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
22
|
+
/**
|
|
23
|
+
* Popper's modifiers. See [documentation](https://popper.js.org/docs/v1/#modifiers)
|
|
24
|
+
*/
|
|
25
|
+
modifiers?: object;
|
|
26
|
+
/**
|
|
27
|
+
* Element where Popper will mount. Default - `document.body`
|
|
28
|
+
*/
|
|
29
|
+
container?: HTMLElement;
|
|
30
|
+
/**
|
|
31
|
+
* Help supporting a react-transition-group/Transition component
|
|
32
|
+
*/
|
|
33
|
+
transition?: boolean;
|
|
34
|
+
className?: string;
|
|
35
|
+
};
|
|
36
|
+
export declare function Popper(props: PopperProps): JSX.Element;
|
|
37
|
+
//# sourceMappingURL=Popper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popper.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Popper/Popper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,IAAI,sBAAsB,EAC9C,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAS3E,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,QAAQ,EACJ,SAAS,GACT,CAAC,CAAC,KAAK,EAAE;QACP,SAAS,EAAE,sBAAsB,CAAC;QAClC,eAAe,CAAC,EAAE,eAAe,CAAC;KACnC,KAAK,SAAS,CAAC,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,GAAG,IAAI,CAAC;IACpD;;;OAGG;IACH,SAAS,CAAC,EACN,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,MAAM,GACN,WAAW,GACX,aAAa,GACb,OAAO,GACP,SAAS,GACT,WAAW,GACX,KAAK,CAAC;IAEV;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAYF,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,eAOxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as e,__rest as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n}from"react/jsx-runtime";import{Popper as o}from"@material-ui/core";import{useDelayedDcFullscreenElemOpen as i}from"../../effects/useDelayedDcFullscreenElemOpen.js";import{useIsInsideDcApp as s}from"../../components/DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import{useIsInsideDcFullscreenElem as t,IsInsideDcFullscreenElemProvider as p}from"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";function m(s){var t=s.children,m=s.open,c=r(s,["children","open"]),l=i({isOpen:m}).delayedIsOpen;return n(o,e({},c,{open:l,children:n(p,{children:t})}))}function c(r){var i=s(),p=t();return n(i&&!p?m:o,e({},r))}export{c as Popper};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { Popper } from './Popper';
|
|
4
|
+
type Props = ComponentProps<typeof Popper>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Popper.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popper.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Popper/Popper.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAKjD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAgBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAUnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Popper/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
package/componentsV2/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/componentsV2/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/componentsV2/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
|
package/componentsV2/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Text}from"./Text/Text.js";export{Grid}from"./Grid/Grid.js";export{Cell}from"./Grid/Cell.js";export{Header}from"./Header/Header.js";export{Button}from"./Button/Button.js";export{ButtonIcon}from"./ButtonIcon/ButtonIcon.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{Popover}from"./Popover/Popover.js";export{Radio}from"./Radio/Radio.js";export{RadioGroup}from"./RadioGroup/RadioGroup.js";export{Checkbox}from"./Checkbox/Checkbox.js";export{CheckboxGroup}from"./CheckboxGroup/CheckboxGroup.js";export{TextInput}from"./TextInput/TextInput.js";export{TextEndTruncated}from"./TextEndTruncated/TextEndTruncated.js";export{TextMiddleTruncated}from"./TextMiddleTruncated/TextMiddleTruncated.js";export{TextLink}from"./TextLink/TextLink.js";export{LoaderCircular}from"./LoaderCircular/LoaderCircular.js";export{Chip}from"./Chip/Chip.js";export{ChipAlert}from"./ChipAlert/ChipAlert.js";export{ChipIndicator}from"./ChipIndicator/ChipIndicator.js";export{Avatar}from"./Avatar/Avatar.js";export{AvatarGroup}from"./AvatarGroup/AvatarGroup.js";export{ToggleButtons}from"./ToggleButtons/ToggleButtons.js";export{Paper}from"./Paper/Paper.js";export{Modal}from"./Modal/Modal.js";export{Menu}from"./Menu/Menu.js";export{Counter}from"./Counter/Counter.js";export{BadgeCounter}from"./BadgeCounter/BadgeCounter.js";export{BadgeDot}from"./BadgeDot/BadgeDot.js";export{LoaderLinear}from"./LoaderLinear/LoaderLinear.js";export{Switch}from"./Switch/Switch.js";export{Tabs}from"./Tabs/Tabs.js";export{EmptyState}from"./EmptyState/EmptyState.js";export{FileIcon}from"./FileIcon/FileIcon.js";export{FilesDropzone}from"./FilesDropzone/FilesDropzone.js";export{Skeleton}from"./Skeleton/Skeleton.js";export{CopyToClipboard}from"./CopyToClipboard/CopyToClipboard.js";export{Stepper}from"./Stepper/Stepper.js";export{ButtonLive}from"./ButtonLive/ButtonLive.js";export{IndicatorLive}from"./IndicatorLive/IndicatorLive.js";export{Accordion}from"./Accordion/Accordion.js";export{Breadcrumbs}from"./Breadcrumbs/Breadcrumbs.js";
|
|
1
|
+
export{Text}from"./Text/Text.js";export{Grid}from"./Grid/Grid.js";export{Cell}from"./Grid/Cell.js";export{Header}from"./Header/Header.js";export{Button}from"./Button/Button.js";export{ButtonIcon}from"./ButtonIcon/ButtonIcon.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{Popover}from"./Popover/Popover.js";export{Radio}from"./Radio/Radio.js";export{RadioGroup}from"./RadioGroup/RadioGroup.js";export{Checkbox}from"./Checkbox/Checkbox.js";export{CheckboxGroup}from"./CheckboxGroup/CheckboxGroup.js";export{TextInput}from"./TextInput/TextInput.js";export{TextEndTruncated}from"./TextEndTruncated/TextEndTruncated.js";export{TextMiddleTruncated}from"./TextMiddleTruncated/TextMiddleTruncated.js";export{TextLink}from"./TextLink/TextLink.js";export{LoaderCircular}from"./LoaderCircular/LoaderCircular.js";export{Chip}from"./Chip/Chip.js";export{ChipAlert}from"./ChipAlert/ChipAlert.js";export{ChipIndicator}from"./ChipIndicator/ChipIndicator.js";export{Avatar}from"./Avatar/Avatar.js";export{AvatarGroup}from"./AvatarGroup/AvatarGroup.js";export{ToggleButtons}from"./ToggleButtons/ToggleButtons.js";export{Paper}from"./Paper/Paper.js";export{Modal}from"./Modal/Modal.js";export{Menu}from"./Menu/Menu.js";export{Counter}from"./Counter/Counter.js";export{BadgeCounter}from"./BadgeCounter/BadgeCounter.js";export{BadgeDot}from"./BadgeDot/BadgeDot.js";export{LoaderLinear}from"./LoaderLinear/LoaderLinear.js";export{Switch}from"./Switch/Switch.js";export{Tabs}from"./Tabs/Tabs.js";export{EmptyState}from"./EmptyState/EmptyState.js";export{FileIcon}from"./FileIcon/FileIcon.js";export{FilesDropzone}from"./FilesDropzone/FilesDropzone.js";export{Skeleton}from"./Skeleton/Skeleton.js";export{CopyToClipboard}from"./CopyToClipboard/CopyToClipboard.js";export{Stepper}from"./Stepper/Stepper.js";export{ButtonLive}from"./ButtonLive/ButtonLive.js";export{IndicatorLive}from"./IndicatorLive/IndicatorLive.js";export{Accordion}from"./Accordion/Accordion.js";export{Breadcrumbs}from"./Breadcrumbs/Breadcrumbs.js";export{Popper}from"./Popper/Popper.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),s=require("@material-ui/core"),n=require("../../effects/useDelayedDcFullscreenElemOpen.js"),i=require("../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js");exports.DcPopover=function(o){var l=o.children,t=o.open,c=e.__rest(o,["children","open"]),u=n.useDelayedDcFullscreenElemOpen({isOpen:t}).delayedIsOpen;return r.jsx(s.Popover,e.__assign({},c,{open:u,TransitionProps:e.__assign(e.__assign({},c.TransitionProps),{enter:!0,exit:!1}),children:r.jsx(i.IsInsideDcFullscreenElemProvider,{children:l})}))};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DcPopover.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Popover/DcPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,YAAY,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAK3F,eAAO,MAAM,SAAS,gDAAiD,eAAe,gBAYrF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n}from"react/jsx-runtime";import{Popover as o}from"@material-ui/core";import{useDelayedDcFullscreenElemOpen as i}from"../../effects/useDelayedDcFullscreenElemOpen.js";import{IsInsideDcFullscreenElemProvider as s}from"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";var t=function(t){var l=t.children,m=t.open,p=e(t,["children","open"]),c=i({isOpen:m}).delayedIsOpen;return n(o,r({},p,{open:c,TransitionProps:r(r({},p.TransitionProps),{enter:!0,exit:!1}),children:n(s,{children:l})}))};export{t as DcPopover};
|