@openfin/ui-library 0.30.5-alpha.1747059361 → 0.30.5

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 +10 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -272,25 +272,21 @@ 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.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:"BookmarkFilled"}):(0,l.jsx)(u.Icon,{icon:"BookmarkOutlined"}),"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);t.ContentMenuItem=({entry:e,active:n,handleClick:r,handleBookmark:o})=>{const{label:a,type:i}=e;return(0,l.jsxs)(t.ContentMenuItemContainer,{id:`content-menu-item-${e.id}`,onClick:t=>r(e,t),active:n,children:["item"===i&&(0,l.jsx)(d.IconWithFallback,{iconUrl:e.icon}),(0,l.jsx)(f,{size:"base",weight:"normal",children:a}),(0,l.jsx)(p,{side:"right",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"})}),"folder"===i&&(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 f=(0,s.default)(c.MenuItemText)`
276
276
  padding-right: ${({theme:e})=>e.px.large};
277
- `,h=(0,s.default)(c.MenuItemIconContainer)`
277
+ `,p=(0,s.default)(c.MenuItemIconContainer)`
278
278
  ${({bookmarked:e})=>e?s.css`
279
- & + ${c.MenuItemIconContainer} {
280
- margin-left: unset;
281
- }
282
- `:s.css`
283
- display: none;
284
- `};
279
+ & + ${c.MenuItemIconContainer} {
280
+ margin-left: unset;
281
+ }
282
+ `:s.css`
283
+ display: none;
284
+ `};
285
285
 
286
286
  svg {
287
287
  height: ${({theme:e})=>e.px.large};
288
288
  width: ${({theme:e})=>e.px.large};
289
289
  }
290
- `,b=(0,s.default)(f.Box)`
291
- display: flex;
292
- flex-direction: row;
293
- gap: ${({theme:e})=>e.px.small};
294
290
  `;t.ContentMenuItemContainer=(0,s.default)(c.MenuItemInnerContainer).attrs((({active:e})=>({className:["content-menu-item-container",e?"content-menu-item-container-active":""].filter(Boolean).join(" ")})))`
295
291
  ${({theme:e,active:t})=>t&&s.css`
296
292
  background-color: ${e.palette.background3};
@@ -298,11 +294,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
298
294
  &:hover {
299
295
  background-color: ${({theme:e})=>e.palette.background2};
300
296
 
301
- ${h} {
297
+ ${p} {
302
298
  display: block;
303
299
  }
304
300
 
305
- ${h} + ${c.MenuItemIconContainer} {
301
+ ${p} + ${c.MenuItemIconContainer} {
306
302
  margin-left: unset;
307
303
  }
308
304
  }
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.5-alpha.1747059361",
4
+ "version": "0.30.5",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",