@openfin/ui-library 0.8.0-alpha.1670011425 → 0.8.0-alpha.1670018115
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/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -109,7 +109,7 @@ var e={1521:(e,t,n)=>{n.r(t),n.d(t,{ActivityLogIcon:()=>i,AlignBaselineIcon:()=>
|
|
|
109
109
|
`,p=a.default.div`
|
|
110
110
|
position: relative;
|
|
111
111
|
display: inline-block;
|
|
112
|
-
`},2128:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setupExpandablePanel=void 0;const r=n(9644);t.setupExpandablePanel=(e,t)=>{if(!e||0===e.childNodes.length)return;const n=e.parentElement,o=null==n?void 0:n.getBoundingClientRect(),i=e.getBoundingClientRect();if(!o)return;const l=i.height,a=i.width>o.width?o.width:i.width;e.style.width=`${a}px`,e.style.opacity="1",e.style.left="0px",t===r.ExpandDirection.Down&&(e.style.top=`${o.height}px`),t===r.ExpandDirection.Up&&(e.style.top=-1*l+"px")}},3030:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandablePanel=void 0;const o=n(5893),i=r(n(7518)),l=n(9141),a=n(4130),c=n(1335),s=n(2128),u=r(n(4483)),d={type:"spring",duration:.2,bounce:.25};t.ExpandablePanel=e=>{const t=`${e.panelId}-expandable-panel`;return(0,o.jsx)(u.default,Object.assign({focusTrapOptions:{fallbackFocus:`#${t}`,clickOutsideDeactivates:!0,onDeactivate:e.onCollapseRequest}},{children:(0,o.jsx)(f,Object.assign({ref:t=>(0,s.setupExpandablePanel)(t,e.expandDirection),tabIndex:0,id:t,initial:"initial",exit:"hidden",animate:"visible",role:"menu",transition:d},{children:e.secondaryButtons.map(((t,n)=>(0,o.jsx)(a.Button,Object.assign({className:"menu-item",tabIndex:n+1,title:t.title,role:"menuitem",size:e.buttonSize,disabled:t.disabled,kind:"textOnly",onClick:n=>((t,n)=>{e.closePanelOnSecondaryButtonClick?(n.onClick(t),e.onCollapseRequest()):n.onClick(t,(()=>e.onCollapseRequest()))})(n,t),"aria-label":t.title},{children:(0,o.jsx)(C,Object.assign({"aria-label":t.title},{children:t.title}))}),n)))}),"expandablePanel")}))};const C=(0,i.default)(c.Box)`
|
|
112
|
+
`},2128:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setupExpandablePanel=void 0;const r=n(9644);t.setupExpandablePanel=(e,t)=>{if(!e||0===e.childNodes.length)return;const n=e.parentElement,o=null==n?void 0:n.getBoundingClientRect(),i=e.getBoundingClientRect();if(!o)return;const l=i.height,a=i.width>o.width?o.width:i.width;e.style.width=`${a}px`,e.style.opacity="1",e.style.left=a<o.width?o.width-a+"px":"0px",t===r.ExpandDirection.Down&&(e.style.top=`${o.height}px`),t===r.ExpandDirection.Up&&(e.style.top=-1*l+"px")}},3030:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandablePanel=void 0;const o=n(5893),i=r(n(7518)),l=n(9141),a=n(4130),c=n(1335),s=n(2128),u=r(n(4483)),d={type:"spring",duration:.2,bounce:.25};t.ExpandablePanel=e=>{const t=`${e.panelId}-expandable-panel`;return(0,o.jsx)(u.default,Object.assign({focusTrapOptions:{fallbackFocus:`#${t}`,clickOutsideDeactivates:!0,onDeactivate:e.onCollapseRequest}},{children:(0,o.jsx)(f,Object.assign({ref:t=>(0,s.setupExpandablePanel)(t,e.expandDirection),tabIndex:0,id:t,initial:"initial",exit:"hidden",animate:"visible",role:"menu",transition:d},{children:e.secondaryButtons.map(((t,n)=>(0,o.jsx)(a.Button,Object.assign({className:"menu-item",tabIndex:n+1,title:t.title,role:"menuitem",size:e.buttonSize,disabled:t.disabled,kind:"textOnly",onClick:n=>((t,n)=>{e.closePanelOnSecondaryButtonClick?(n.onClick(t),e.onCollapseRequest()):n.onClick(t,(()=>e.onCollapseRequest()))})(n,t),"aria-label":t.title},{children:(0,o.jsx)(C,Object.assign({"aria-label":t.title},{children:t.title}))}),n)))}),"expandablePanel")}))};const C=(0,i.default)(c.Box)`
|
|
113
113
|
padding: ${({theme:e})=>`0 ${e.px.xsmall}`};
|
|
114
114
|
white-space: nowrap;
|
|
115
115
|
text-overflow: ellipsis;
|
package/package.json
CHANGED