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

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 +11 -12
  2. package/package.json +5 -2
package/dist/index.js CHANGED
@@ -272,25 +272,24 @@ 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),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)`
276
276
  padding-right: ${({theme:e})=>e.px.large};
277
277
  `,h=(0,s.default)(c.MenuItemIconContainer)`
278
- ${({bookmarked:e})=>e?s.css`
279
- & + ${c.MenuItemIconContainer} {
280
- margin-left: unset;
281
- }
282
- `:s.css`
283
- display: none;
284
- `};
285
-
286
278
  svg {
287
279
  height: ${({theme:e})=>e.px.large};
288
280
  width: ${({theme:e})=>e.px.large};
289
281
  }
290
- `,b=(0,s.default)(f.Box)`
291
282
  display: flex;
292
283
  flex-direction: row;
293
284
  gap: ${({theme:e})=>e.px.small};
285
+ `,b=(0,s.default)(f.Box)`
286
+ ${({bookmarked:e})=>e?s.css`
287
+ & + ${c.MenuItemIconContainer} {
288
+ margin-left: unset;
289
+ }
290
+ `:s.css`
291
+ display: none;
292
+ `};
294
293
  `;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
294
  ${({theme:e,active:t})=>t&&s.css`
296
295
  background-color: ${e.palette.background3};
@@ -298,11 +297,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
297
  &:hover {
299
298
  background-color: ${({theme:e})=>e.palette.background2};
300
299
 
301
- ${h} {
300
+ ${b} {
302
301
  display: block;
303
302
  }
304
303
 
305
- ${h} + ${c.MenuItemIconContainer} {
304
+ ${b} + ${c.MenuItemIconContainer} {
306
305
  margin-left: unset;
307
306
  }
308
307
  }
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@openfin/ui-library",
3
3
  "description": "OpenFin UI Component Library",
4
- "version": "0.30.8",
4
+ "version": "0.30.9-alpha.1749740453",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "repository": "github:openfin/ui-library",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/openfin/ui-library.git"
10
+ },
8
11
  "homepage": "https://cdn.openfin.co/workspace/storybook",
9
12
  "files": [
10
13
  "dist/**/*"