@openfin/ui-library 0.30.9-alpha.1749740453 → 0.30.9

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 +12 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -272,17 +272,9 @@ var e={1193:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(1601),o=n.n(r),a=n(6
272
272
  align-items: center;
273
273
 
274
274
  user-select: none;
275
- `},8307:function(e,t,n){var r,o=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]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),i=0;i<n.length;i++)"default"!==n[i]&&o(t,e,n[i]);return a(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.ContentMenuItemContainer=t.ContentMenuItem=void 0;const l=n(4848),s=i(n(2770)),c=n(6418),u=n(5917),d=n(5699),f=n(2094);t.ContentMenuItem=({entry:e,active:n,handleClick:r,handleBookmark:o})=>{var a;const{label:i,type:s}=e;return(0,l.jsxs)(t.ContentMenuItemContainer,{id:`content-menu-item-${e.id}`,onClick:t=>r(e,t),active:n,children:["item"===s&&(0,l.jsx)(d.IconWithFallback,{iconUrl:e.icon}),(0,l.jsx)(p,{size:"base",weight:"normal",children:i}),(0,l.jsxs)(h,{side:"right",children:[(0,l.jsx)(b,{bookmarked:e.bookmarked,onClick:t=>{null==t||t.stopPropagation(),o&&o(e)},"data-testid":`content-menu-item-${e.id}-bookmark-icon`,children:e.bookmarked?(0,l.jsx)(u.Icon,{icon:"StarFilledIcon"}):(0,l.jsx)(u.Icon,{icon:"StarIcon"})}),"item"===e.type&&"desktop"===(null===(a=e.itemData)||void 0===a?void 0:a.appType)&&(0,l.jsx)(u.Icon,{icon:"ArrowTopRightIcon"})]}),"folder"===s&&(0,l.jsx)(c.MenuItemIconContainer,{side:"right","data-testid":`content-menu-item-${e.id}-chevron-icon`,children:(0,l.jsx)(c.MenuItemRightIcon,{icon:"ChevronRightIcon"})})]})};const p=(0,s.default)(c.MenuItemText)`
275
+ `},8307:function(e,t,n){var r,o=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]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),i=0;i<n.length;i++)"default"!==n[i]&&o(t,e,n[i]);return a(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.ContentMenuItemContainer=t.ContentMenuItem=void 0;const l=n(4848),s=i(n(2770)),c=n(6418),u=n(5917),d=n(5699),f=n(2094);t.ContentMenuItem=({entry:e,active:n,handleClick:r,handleBookmark:o})=>{var a;const{label:i,type:s}=e;return(0,l.jsxs)(t.ContentMenuItemContainer,{id:`content-menu-item-${e.id}`,onClick:t=>r(e,t),active:n,children:["item"===s&&(0,l.jsx)(d.IconWithFallback,{iconUrl:e.icon}),(0,l.jsx)(p,{size:"base",weight:"normal",children:i}),(0,l.jsx)(h,{side:"right",bookmarked:e.bookmarked,onClick:t=>{null==t||t.stopPropagation(),o&&o(e)},"data-testid":`content-menu-item-${e.id}-bookmark-icon`,children:(0,l.jsxs)(b,{children:[e.bookmarked?(0,l.jsx)(u.Icon,{icon:"StarFilledIcon"}):(0,l.jsx)(u.Icon,{icon:"StarIcon"}),"item"===e.type&&"desktop"===(null===(a=e.itemData)||void 0===a?void 0:a.appType)&&(0,l.jsx)(u.Icon,{icon:"ArrowTopRightIcon"})]})}),"folder"===s&&(0,l.jsx)(c.MenuItemIconContainer,{side:"right","data-testid":`content-menu-item-${e.id}-chevron-icon`,children:(0,l.jsx)(c.MenuItemRightIcon,{icon:"ChevronRightIcon"})})]})};const p=(0,s.default)(c.MenuItemText)`
276
276
  padding-right: ${({theme:e})=>e.px.large};
277
277
  `,h=(0,s.default)(c.MenuItemIconContainer)`
278
- svg {
279
- height: ${({theme:e})=>e.px.large};
280
- width: ${({theme:e})=>e.px.large};
281
- }
282
- display: flex;
283
- flex-direction: row;
284
- gap: ${({theme:e})=>e.px.small};
285
- `,b=(0,s.default)(f.Box)`
286
278
  ${({bookmarked:e})=>e?s.css`
287
279
  & + ${c.MenuItemIconContainer} {
288
280
  margin-left: unset;
@@ -290,6 +282,15 @@ var e={1193:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(1601),o=n.n(r),a=n(6
290
282
  `:s.css`
291
283
  display: none;
292
284
  `};
285
+
286
+ svg {
287
+ height: ${({theme:e})=>e.px.large};
288
+ width: ${({theme:e})=>e.px.large};
289
+ }
290
+ `,b=(0,s.default)(f.Box)`
291
+ display: flex;
292
+ flex-direction: row;
293
+ gap: ${({theme:e})=>e.px.small};
293
294
  `;t.ContentMenuItemContainer=(0,s.default)(c.MenuItemInnerContainer).attrs((({active:e})=>({className:["content-menu-item-container",e?"content-menu-item-container-active":""].filter(Boolean).join(" ")})))`
294
295
  ${({theme:e,active:t})=>t&&s.css`
295
296
  background-color: ${e.palette.background3};
@@ -297,11 +298,11 @@ var e={1193:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(1601),o=n.n(r),a=n(6
297
298
  &:hover {
298
299
  background-color: ${({theme:e})=>e.palette.background2};
299
300
 
300
- ${b} {
301
+ ${h} {
301
302
  display: block;
302
303
  }
303
304
 
304
- ${b} + ${c.MenuItemIconContainer} {
305
+ ${h} + ${c.MenuItemIconContainer} {
305
306
  margin-left: unset;
306
307
  }
307
308
  }
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.30.9-alpha.1749740453",
4
+ "version": "0.30.9",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": {