@openfin/ui-library 0.8.0-alpha.1671470842 → 0.8.0-alpha.1671493757

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -95,7 +95,9 @@ var e={1521:(e,t,n)=>{n.r(t),n.d(t,{ActivityLogIcon:()=>i,AlignBaselineIcon:()=>
95
95
  border-color: ${({theme:e})=>e.palette.inputFocused};
96
96
  }
97
97
  `}}},4130:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4249),t),o(n(6126),t)},9644:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandDirection=void 0,(n=t.ExpandDirection||(t.ExpandDirection={}))[n.Up=0]="Up",n[n.Down=1]="Down"},4021: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.ExpandableButton=void 0;const o=n(5893),i=n(6689),l=n(4130),a=r(n(7518)),c=n(9634),s=n(9141),u=n(3030),d=n(1335),C=n(9644);t.ExpandableButton=e=>{var t,n,r,a,c,f;const[b,y]=(0,i.useState)({show:!1,requestedByCollapse:!1}),x={size:e.size,kind:e.kind,disabled:e.disabled},L=Object.assign(Object.assign({},e),{shape:l.ButtonShape.square,"aria-label":null!==(t=e["aria-label"])&&void 0!==t?t:`Primary Button ${e.title}`}),M=null!==(n=e.expandDirection)&&void 0!==n?n:C.ExpandDirection.Down;return(0,i.useEffect)((()=>{if(!b.requestedByCollapse)return;const e=setTimeout((()=>y({requestedByCollapse:!1,show:!1})),200);return()=>clearTimeout(e)}),[b.requestedByCollapse]),(0,o.jsxs)(w,{children:[(0,o.jsxs)(m,{children:[(0,o.jsx)(v,Object.assign({},L,{children:(0,o.jsx)(p,{children:null!==(r=e.children)&&void 0!==r?r:L.title})})),e.secondaryButtons&&e.secondaryButtons.length>0&&(0,o.jsx)(d.Box,Object.assign({id:"dropdown-container"},{children:(0,o.jsxs)(g,Object.assign({},x,{role:"combobox",onClick:()=>{b.requestedByCollapse||y({requestedByCollapse:!1,show:!b.show})},"aria-label":"Expand Secondary Buttons Panel","aria-expanded":b.show},{children:[M===C.ExpandDirection.Down&&(0,o.jsx)(h,{kind:null!==(a=e.kind)&&void 0!==a?a:l.ButtonKind.primary,icon:"CaretDownIcon"}),M===C.ExpandDirection.Up&&(0,o.jsx)(h,{kind:null!==(c=e.kind)&&void 0!==c?c:l.ButtonKind.primary,icon:"CaretUpIcon"})]}))}))]}),e.secondaryButtons&&e.secondaryButtons.length>0&&(0,o.jsx)(s.AnimatePresence,{children:b.show&&(0,o.jsx)(u.ExpandablePanel,{expandDirection:M,secondaryButtons:null!==(f=e.secondaryButtons)&&void 0!==f?f:[],closePanelOnSecondaryButtonClick:e.closePanelOnSecondaryButtonClick,onCollapseRequest:()=>y({show:!1,requestedByCollapse:!0}),buttonSize:e.size})})]})};const f={[l.ButtonKind.primary]:e=>e.palette.brandPrimaryText,[l.ButtonKind.secondary]:e=>e.palette.brandSecondaryText,[l.ButtonKind.textOnly]:e=>e.palette.textDefault},h=(0,a.default)(c.Icon)`
98
- color: ${({theme:e,kind:t})=>f[t](e)};
98
+ svg path {
99
+ color: ${({theme:e,kind:t})=>f[t](e)};
100
+ }
99
101
  line-height: ${({theme:e})=>e.lineHeight.ui};
100
102
  font-weight: ${({theme:e})=>e.fontWeight.bold};
101
103
  `,v=(0,a.default)(l.Button)`
@@ -174,7 +176,8 @@ var e={1521:(e,t,n)=>{n.r(t),n.d(t,{ActivityLogIcon:()=>i,AlignBaselineIcon:()=>
174
176
  background: ${e=>e.theme.palette.background2};
175
177
  }
176
178
 
177
- &:disabled {
179
+ &:disabled,
180
+ &:active:disabled {
178
181
  color: ${({theme:e})=>e.palette.textInactive};
179
182
  background: ${e=>e.theme.palette.background4};
180
183
  opacity: unset;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfin/ui-library",
3
3
  "description": "OpenFin UI Component Library",
4
- "version": "0.8.0-alpha.1671470842",
4
+ "version": "0.8.0-alpha.1671493757",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",