@ebay/ui-core-react 9.0.0 → 9.2.0

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 (53) hide show
  1. package/ebay-file-preview-card/README.md +1 -0
  2. package/ebay-file-preview-card/file-preview-action.d.ts +1 -0
  3. package/ebay-file-preview-card/file-preview-action.d.ts.map +1 -1
  4. package/ebay-file-preview-card/file-preview-card.d.ts +1 -0
  5. package/ebay-file-preview-card/file-preview-card.d.ts.map +1 -1
  6. package/ebay-file-preview-card/index.js +1 -1
  7. package/ebay-file-preview-card-group/index.js +1 -1
  8. package/ebay-icon/icons/ebay-icon-authenticity-guarantee-filled-16.d.ts +3 -0
  9. package/ebay-icon/icons/ebay-icon-authenticity-guarantee-filled-16.d.ts.map +1 -0
  10. package/ebay-icon/icons/ebay-icon-authenticity-guarantee-filled-24.d.ts +3 -0
  11. package/ebay-icon/icons/ebay-icon-authenticity-guarantee-filled-24.d.ts.map +1 -0
  12. package/ebay-icon/icons/ebay-icon-github-24.d.ts +3 -0
  13. package/ebay-icon/icons/ebay-icon-github-24.d.ts.map +1 -0
  14. package/ebay-icon/icons/ebay-icon-money-back-guarantee-filled-16.d.ts +3 -0
  15. package/ebay-icon/icons/ebay-icon-money-back-guarantee-filled-16.d.ts.map +1 -0
  16. package/ebay-icon/icons/ebay-icon-money-back-guarantee-filled-24.d.ts +3 -0
  17. package/ebay-icon/icons/ebay-icon-money-back-guarantee-filled-24.d.ts.map +1 -0
  18. package/ebay-icon/icons/ebay-icon-note-12.d.ts +3 -0
  19. package/ebay-icon/icons/ebay-icon-note-12.d.ts.map +1 -0
  20. package/ebay-icon/icons/ebay-icon-profile-verification-16.d.ts +3 -0
  21. package/ebay-icon/icons/ebay-icon-profile-verification-16.d.ts.map +1 -0
  22. package/ebay-icon/icons/ebay-icon-profile-verification-20.d.ts +3 -0
  23. package/ebay-icon/icons/ebay-icon-profile-verification-20.d.ts.map +1 -0
  24. package/ebay-icon/icons/ebay-icon-profile-verification-24.d.ts +3 -0
  25. package/ebay-icon/icons/ebay-icon-profile-verification-24.d.ts.map +1 -0
  26. package/ebay-icon/icons/ebay-icon-top-service-filled-16.d.ts +3 -0
  27. package/ebay-icon/icons/ebay-icon-top-service-filled-16.d.ts.map +1 -0
  28. package/ebay-icon/icons/ebay-icon-top-service-filled-24.d.ts +3 -0
  29. package/ebay-icon/icons/ebay-icon-top-service-filled-24.d.ts.map +1 -0
  30. package/ebay-icon/icons/ebay-icon-truck-shipped-12.d.ts +3 -0
  31. package/ebay-icon/icons/ebay-icon-truck-shipped-12.d.ts.map +1 -0
  32. package/ebay-icon/types.d.ts +1 -1
  33. package/ebay-icon/types.d.ts.map +1 -1
  34. package/ebay-item-tile/index.js +1 -1
  35. package/ebay-item-tile-group/index.js +1 -1
  36. package/ebay-svg/index.js +1 -1
  37. package/ebay-svg/symbols.d.ts.map +1 -1
  38. package/file-preview-card-C28-H6Zw.js +1 -0
  39. package/icons/ebay-icon-authenticity-guarantee-filled-16/index.js +1 -0
  40. package/icons/ebay-icon-authenticity-guarantee-filled-24/index.js +1 -0
  41. package/icons/ebay-icon-github-24/index.js +1 -0
  42. package/icons/ebay-icon-money-back-guarantee-filled-16/index.js +1 -0
  43. package/icons/ebay-icon-money-back-guarantee-filled-24/index.js +1 -0
  44. package/icons/ebay-icon-note-12/index.js +1 -0
  45. package/icons/ebay-icon-profile-verification-16/index.js +1 -0
  46. package/icons/ebay-icon-profile-verification-20/index.js +1 -0
  47. package/icons/ebay-icon-profile-verification-24/index.js +1 -0
  48. package/icons/ebay-icon-top-service-filled-16/index.js +1 -0
  49. package/icons/ebay-icon-top-service-filled-24/index.js +1 -0
  50. package/icons/ebay-icon-truck-shipped-12/index.js +1 -0
  51. package/{item-tile-CpH9pgq8.js → item-tile-Dd22jWQA.js} +1 -1
  52. package/package.json +1 -1
  53. package/file-preview-card-DnIUegpg.js +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../src/ebay-svg/symbols.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,OAAO,qBAigCnB,CAAA"}
1
+ {"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../src/ebay-svg/symbols.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,OAAO,qBA6gCnB,CAAA"}
@@ -0,0 +1 @@
1
+ "use strict";const k=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),C=require("classnames"),O=require("./utils-C9NL3q0j.js"),g=require("./icon-button-AJ6dtyvc.js"),j=require("./menu-button-tvdOBhp1.js"),F=require("./menu-Bvnencku.js"),U=require("./icons/ebay-icon-close-16/index.js"),L=require("./icons/ebay-icon-delete-16/index.js"),R=require("./progress-spinner-DTmNtD59.js"),A=require("./icons/ebay-icon-file-24/index.js"),D=require("./icons/ebay-icon-play-16/index.js"),W=({status:t,menuActions:n,onMenuAction:r,deleteText:s,onCancel:a,onDelete:l,onAction:b,a11yCancelUploadText:m,a11yMenuButtonText:E,action:i})=>{const y=(c,u)=>{var o;if(u){const d=(o=u.checked)===null||o===void 0?void 0:o[0],p=n&&d!==void 0&&d in n?n[d].event:null;p&&r?r(c,Object.assign(Object.assign({},u),{eventName:p})):l&&l(c)}};return t==="uploading"?e.createElement(g.EbayIconButton,{"aria-label":m,onClick:a,className:"file-preview-card__action",icon:e.createElement(U.EbayIconClose16,null)}):n?.length?e.createElement(e.Fragment,null,e.createElement(j.EbayMenuButton,{variant:"overflow",className:"file-preview-card__action",a11yText:E,onSelect:y},n.map(c=>e.createElement(F.EbayMenuItem,{value:c.event,key:c.label},c.label)),e.createElement(F.EbayMenuItem,{key:"delete",value:"delete"},s))):i?.props&&i.props.icon&&i.props["aria-label"]?e.createElement(g.EbayIconButton,Object.assign({onClick:b,className:C("file-preview-card__action",i.props.className)},i.props)):s?e.createElement(g.EbayIconButton,{"aria-label":s,className:"file-preview-card__action",icon:e.createElement(L.EbayIconDelete16,null),onClick:l}):e.createElement(e.Fragment,null)},I=({file:t,status:n,seeMore:r})=>{if(n==="uploading")return e.createElement(R.EbayProgressSpinner,{className:"file-preview-card__asset"});switch(t?.type){case"video":return e.createElement("video",{className:"file-preview-card__asset",src:t.src});case"image":return e.createElement("img",{className:C("file-preview-card__asset",{"file-preview-card__asset--fade":r&&r>0}),src:t?.src,alt:t?.name});default:return e.createElement(A.EbayIconFile24,{className:"file-preview-card__asset"})}},z=({file:t,infoText:n})=>t&&t.type!=="image"?e.createElement("div",{className:"file-preview-card__info"},t.type==="video"&&e.createElement(D.EbayIconPlay16,{className:"file-preview-card__video-icon"}),n||t.name.substring(t.name.lastIndexOf(".")+1).toUpperCase()):e.createElement(e.Fragment,null),M=()=>null,G=t=>{var{a11yCancelUploadText:n,status:r,as:s="div",file:a,seeMore:l,deleteText:b,footerTitle:m,footerSubtitle:E,a11ySeeMoreText:i,menuActions:y,a11yMenuButtonText:c,infoText:u,href:o,onCancel:d,onDelete:p,onMenuAction:q,onSeeMore:x,onAction:T,className:h,children:S}=t,B=k.__rest(t,["a11yCancelUploadText","status","as","file","seeMore","deleteText","footerTitle","footerSubtitle","a11ySeeMoreText","menuActions","a11yMenuButtonText","infoText","href","onCancel","onDelete","onMenuAction","onSeeMore","onAction","className","children"]);const P=O.findComponent(S,M),f=e.useMemo(()=>{var _,w;if(!a)return;let N=a,v;return!((_=a?.type)===null||_===void 0)&&_.startsWith("image")?v="image":!((w=a?.type)===null||w===void 0)&&w.startsWith("video")&&(v="video"),a instanceof File&&(N={name:a.name,type:v,src:v?URL.createObjectURL(a):void 0}),N.type=v,N},[a]);return e.createElement(s,Object.assign({className:C("file-preview-card",h)},B),e.createElement("div",{className:"file-preview-card__body"},o?e.createElement("a",{href:o},e.createElement(I,{file:f,status:r,seeMore:l})):e.createElement(I,{file:f,status:r,seeMore:l}),l&&l>0?e.createElement("button",{type:"button",className:"file-preview-card__see-more",onClick:x,"aria-label":i},e.createElement("span",null,"+",l)):e.createElement(W,{a11yCancelUploadText:n,a11yMenuButtonText:c,status:r,menuActions:y,onMenuAction:q,deleteText:b,onCancel:d,onDelete:p,onAction:T,action:P}),e.createElement(z,{file:f,infoText:u})),m&&e.createElement("div",{className:"file-preview-card__footer"},e.createElement("span",null,m),E&&e.createElement("span",null,E)))};exports.EbayFilePreviewCard=G;exports.EbayFilePreviewCardAction=M;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),a=require("../../icon-I30uh1Ov.js"),i='<symbol viewBox="0 0 16 16" id="icon-authenticity-guarantee-filled-16"><path d="M8 0c.9 0 1.716.356 2.315.936.279.268.656.424 1.042.431a3.32 3.32 0 0 1 2.3.977c.636.636.962 1.466.976 2.3.007.386.163.763.432 1.04.579.6.935 1.417.935 2.316 0 .9-.356 1.717-.935 2.316a1.547 1.547 0 0 0-.432 1.041 3.323 3.323 0 0 1-.976 2.3 3.323 3.323 0 0 1-2.3.976 1.549 1.549 0 0 0-1.042.432C9.715 15.644 8.9 16 8 16a3.32 3.32 0 0 1-2.315-.935 1.549 1.549 0 0 0-1.042-.432 3.322 3.322 0 0 1-2.3-.976 3.322 3.322 0 0 1-.975-2.299 1.549 1.549 0 0 0-.431-1.042A3.323 3.323 0 0 1 0 8c0-.9.357-1.716.937-2.315.268-.278.424-.656.43-1.042.015-.834.34-1.664.977-2.3a3.323 3.323 0 0 1 2.299-.976 1.547 1.547 0 0 0 1.04-.431A3.324 3.324 0 0 1 8 0Zm3.207 5.793a1 1 0 0 0-1.414 0L7 8.586l-.793-.793a1 1 0 1 0-1.414 1.414l1.5 1.5a1 1 0 0 0 1.414 0l3.5-3.5a1 1 0 0 0 0-1.414Z"/></symbol>',n=e=>t.createElement(a.EbayIcon,Object.assign({},e,{name:"authenticityGuaranteeFilled16",__type:"icon",__symbol:i}));exports.EbayIconAuthenticityGuaranteeFilled16=n;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),a=require("../../icon-I30uh1Ov.js"),i='<symbol viewBox="0 0 24 24" id="icon-authenticity-guarantee-filled-24"><path d="M12 0a4.98 4.98 0 0 1 3.24 1.191 3.757 3.757 0 0 0 2.112.875 4.98 4.98 0 0 1 3.133 1.449 4.98 4.98 0 0 1 1.449 3.132c.061.771.374 1.525.876 2.114A4.98 4.98 0 0 1 24 12a4.982 4.982 0 0 1-1.19 3.24 3.755 3.755 0 0 0-.875 2.112 4.983 4.983 0 0 1-1.449 3.133 4.982 4.982 0 0 1-3.134 1.449 3.757 3.757 0 0 0-2.113.875A4.98 4.98 0 0 1 12 24a4.98 4.98 0 0 1-3.24-1.191 3.757 3.757 0 0 0-2.113-.875 4.98 4.98 0 0 1-3.131-1.449 4.983 4.983 0 0 1-1.45-3.133 3.757 3.757 0 0 0-.875-2.113A4.98 4.98 0 0 1 0 12a4.98 4.98 0 0 1 1.191-3.24 3.756 3.756 0 0 0 .876-2.113 4.982 4.982 0 0 1 1.449-3.132 4.98 4.98 0 0 1 3.131-1.449 3.757 3.757 0 0 0 2.114-.875A4.98 4.98 0 0 1 12 0Zm4.71 8.621a1 1 0 0 0-1.413 0l-4.632 4.632-1.962-1.963a1 1 0 0 0-1.414 1.414l2.669 2.67a1 1 0 0 0 1.414 0l5.339-5.339a1 1 0 0 0 0-1.414Z"/></symbol>',n=e=>t.createElement(a.EbayIcon,Object.assign({},e,{name:"authenticityGuaranteeFilled24",__type:"icon",__symbol:i}));exports.EbayIconAuthenticityGuaranteeFilled24=n;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),c=require("../../icon-I30uh1Ov.js"),o='<symbol viewBox="0 0 24 24" id="icon-github-24"><path d="M12 0c6.627 0 12 5.373 12 12 0 5.488-3.685 10.11-8.714 11.54-.075-.897-.266-2.775-.266-4.1 0-1.162-.384-1.896-.829-2.283 2.73-.306 5.58-1.344 5.58-6.07 0-1.344-.464-2.444-1.252-3.3.12-.306.545-1.57-.122-3.26-.034-.01-1.07-.3-3.357 1.263a11.75 11.75 0 0 0-3.053-.407 11.749 11.749 0 0 0-3.053.407C6.627 4.214 5.593 4.522 5.577 4.527c-.667 1.69-.243 2.954-.122 3.26a4.82 4.82 0 0 0-1.253 3.3c0 4.726 2.851 5.785 5.56 6.07-.343.306-.667.856-.768 1.65-.708.327-2.467.856-3.558-1.018-.014-.024-.66-1.182-1.881-1.263-.025 0-1.18.009-.081.754.011.006.813.377 1.355 1.792.005.015.719 2.198 4.105 1.467 0 .807.012 2.33.017 3.068C3.801 22.258 0 17.574 0 12 0 5.373 5.373 0 12 0Z"/></symbol>',i=e=>t.createElement(c.EbayIcon,Object.assign({},e,{name:"github24",__type:"icon",__symbol:o}));exports.EbayIconGithub24=i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=require("../../icon-I30uh1Ov.js"),c='<symbol viewBox="0 0 16 16" id="icon-money-back-guarantee-filled-16"><path d="M7.008.356a1.56 1.56 0 0 1 1.984 0c1.607 1.33 3.721 1.74 4.655 1.855.733.09 1.353.71 1.353 1.516v4.272c0 1.288-.336 2.667-1.307 4.025-.96 1.344-2.5 2.612-4.82 3.77a1.955 1.955 0 0 1-1.746 0c-2.32-1.158-3.86-2.427-4.82-3.77C1.336 10.666 1 9.287 1 8V3.727C1 2.92 1.62 2.3 2.353 2.21 3.287 2.096 5.4 1.686 7.008.356Zm4.199 5.436a1 1 0 0 0-1.414 0L7 8.585l-.793-.793a1 1 0 1 0-1.414 1.414l1.5 1.5a1 1 0 0 0 1.414 0l3.5-3.5a1 1 0 0 0 0-1.414Z"/></symbol>',o=e=>a.createElement(n.EbayIcon,Object.assign({},e,{name:"moneyBackGuaranteeFilled16",__type:"icon",__symbol:c}));exports.EbayIconMoneyBackGuaranteeFilled16=o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("../../icon-I30uh1Ov.js"),n='<symbol viewBox="0 0 24 24" id="icon-money-back-guarantee-filled-24"><path d="M10.852.348a2.069 2.069 0 0 1 2.296 0c3.296 2.204 6.483 2.909 7.578 3.097A1.53 1.53 0 0 1 22 4.945v6.04c0 2.788-.571 5.186-2.059 7.316-1.473 2.11-3.778 3.86-7.063 5.49a1.98 1.98 0 0 1-1.756 0c-3.285-1.63-5.59-3.38-7.063-5.49C2.57 16.171 2 13.773 2 10.986v-6.04c0-.769.57-1.38 1.274-1.501 1.095-.188 4.282-.893 7.578-3.097Zm5.859 8.271a1 1 0 0 0-1.414 0l-4.632 4.631-1.962-1.962a1 1 0 0 0-1.414 1.415l2.669 2.67a1 1 0 0 0 1.414 0l5.339-5.34a1 1 0 0 0 0-1.414Z"/></symbol>',o=e=>a.createElement(c.EbayIcon,Object.assign({},e,{name:"moneyBackGuaranteeFilled24",__type:"icon",__symbol:n}));exports.EbayIconMoneyBackGuaranteeFilled24=o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),o=require("../../icon-I30uh1Ov.js"),t='<symbol viewBox="0 0 12 12" id="icon-note-12"><path d="M8.5.5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h5ZM3.5 2a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-5Zm2.75 4a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1 0-1.5h1.5Zm1-2.52a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1 0-1.5h2.5Z"/></symbol>',n=e=>a.createElement(o.EbayIcon,Object.assign({},e,{name:"note12",__type:"icon",__symbol:t}));exports.EbayIconNote12=n;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),o=require("../../icon-I30uh1Ov.js"),a='<symbol viewBox="0 0 16 16" id="icon-profile-verification-16"><path d="M8 8a6.343 6.343 0 0 1 2.073.348 1.001 1.001 0 0 1-.655 1.89A4.322 4.322 0 0 0 8 10c-2.056 0-3.512 1.182-3.897 3H6.5a1 1 0 0 1 0 2h-3c-.804 0-1.55-.67-1.476-1.581l.03-.298C2.44 10.076 4.819 8.001 8 8Zm5.293 2.623a1 1 0 0 1 1.414 1.414l-2.667 2.667a1 1 0 0 1-1.414 0L9.293 13.37a1 1 0 0 1 1.414-1.414l.626.626 1.96-1.959ZM8 0a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm0 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"/></symbol>',c=e=>i.createElement(o.EbayIcon,Object.assign({},e,{name:"profileVerification16",__type:"icon",__symbol:a}));exports.EbayIconProfileVerification16=c;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),o=require("../../icon-I30uh1Ov.js"),a='<symbol viewBox="0 0 20 20" id="icon-profile-verification-20"><path d="M10 10a7.65 7.65 0 0 1 3.715.959 1 1 0 1 1-.97 1.749A5.65 5.65 0 0 0 10 12c-2.78 0-5.376 2.273-5.902 5H9a1 1 0 1 1 0 2H3.75c-.93 0-1.83-.781-1.697-1.87l.052-.358C2.741 13.076 6.167 10 10 10Zm6.793 3.293a1 1 0 0 1 1.414 1.414l-3.333 3.333a1 1 0 0 1-1.414 0l-1.667-1.666a1 1 0 0 1 1.414-1.414l.959.959 2.627-2.626ZM10 1a4 4 0 1 1 0 8 4 4 0 0 1 0-8Zm0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z"/></symbol>',c=e=>i.createElement(o.EbayIcon,Object.assign({},e,{name:"profileVerification20",__type:"icon",__symbol:a}));exports.EbayIconProfileVerification20=c;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),o=require("../../icon-I30uh1Ov.js"),a='<symbol viewBox="0 0 24 24" id="icon-profile-verification-24"><path d="M12 12a8.979 8.979 0 0 1 4.5 1.205 1 1 0 0 1-1.001 1.73A6.961 6.961 0 0 0 12 14a7 7 0 0 0-6.928 6H11a1 1 0 0 1 0 2H5c-1.067 0-2.084-.893-1.931-2.121l.061-.414C3.86 15.225 7.552 12 12 12Zm8.293 4.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 1 1 1.414-1.414L17 19.586l3.293-3.293ZM12 1a5 5 0 1 1-.001 10 5 5 0 0 1 0-10Zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z"/></symbol>',c=e=>i.createElement(o.EbayIcon,Object.assign({},e,{name:"profileVerification24",__type:"icon",__symbol:a}));exports.EbayIconProfileVerification24=c;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),o=require("../../icon-I30uh1Ov.js"),c='<symbol viewBox="0 0 16 16" id="icon-top-service-filled-16"><path d="M12.501 0a2.5 2.5 0 0 1 2.5 2.5v11.17c0 1.73-1.82 2.859-3.371 2.09l-3.48-1.727a.334.334 0 0 0-.296 0L4.37 15.761C2.82 16.53 1 15.4 1 13.67L1.001 2.5a2.5 2.5 0 0 1 2.5-2.5h9Zm-3.85 3.372a.76.76 0 0 0-1.304 0l-.975 1.624-1.778.4a.76.76 0 0 0-.414 1.233l1.175 1.386-.257 2.134a.76.76 0 0 0 1.116.76l1.785-.966 1.784.966a.76.76 0 0 0 1.117-.76l-.258-2.134 1.175-1.386a.76.76 0 0 0-.413-1.233l-1.779-.4-.975-1.624ZM8.67 6.32l1.212.272-.808.953.165 1.365L8 8.237l-1.241.672.165-1.365-.808-.953 1.212-.272L8 5.201l.67 1.118Z"/></symbol>',i=e=>l.createElement(o.EbayIcon,Object.assign({},e,{name:"topServiceFilled16",__type:"icon",__symbol:c}));exports.EbayIconTopServiceFilled16=i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),c=require("../../icon-I30uh1Ov.js"),o='<symbol viewBox="0 0 24 24" id="icon-top-service-filled-24"><path d="M19 0a3 3 0 0 1 3 3v17.99c0 2.42-2.72 3.844-4.71 2.464l-4.717-3.271a1 1 0 0 0-1.14 0L6.71 23.457C4.719 24.837 2 23.413 2 20.992V3a3 3 0 0 1 3-3h14Zm-5.713 4.736a1.5 1.5 0 0 0-2.574 0l-1.26 2.109-2.283.512a1.5 1.5 0 0 0-.816 2.433l1.51 1.787-.33 2.742c-.146 1.21 1.135 2.08 2.205 1.498L12 14.59l2.26 1.228c1.071.582 2.351-.288 2.206-1.498l-.33-2.742 1.51-1.787a1.5 1.5 0 0 0-.816-2.433l-2.282-.512-1.26-2.109Zm-.257 3.466a1.1 1.1 0 0 0 .702.509l1.855.417-1.232 1.457a1.1 1.1 0 0 0-.253.842l.262 2.17-1.839-1a1.1 1.1 0 0 0-1.05 0l-1.84 1 .261-2.17a1.1 1.1 0 0 0-.251-.842L8.413 9.128l1.855-.417a1.1 1.1 0 0 0 .702-.509L12 6.48l1.03 1.722Z"/></symbol>',a=e=>l.createElement(c.EbayIcon,Object.assign({},e,{name:"topServiceFilled24",__type:"icon",__symbol:o}));exports.EbayIconTopServiceFilled24=a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("../../icon-I30uh1Ov.js"),o='<symbol viewBox="0 0 12 12" id="icon-truck-shipped-12"><path d="M6.3 1a1.95 1.95 0 0 1 1.95 1.95v.8h1.14a1.5 1.5 0 0 1 1.17.563L11.67 5.7c.214.266.33.597.33.938V8a1.5 1.5 0 0 1-1.5 1.5h-1a1.5 1.5 0 0 1-3 0H4a1.5 1.5 0 0 1-3 0H.75a.75.75 0 0 1 0-1.5H6.3a.45.45 0 0 0 .45-.45v-4.6a.45.45 0 0 0-.45-.45H.75a.75.75 0 0 1 0-1.5H6.3Zm1.95 6.55c0 .155-.02.305-.055.45H10.5V6.638L9.39 5.25H8.25v2.3ZM3.75 4.5a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h3Z"/></symbol>',t=e=>a.createElement(c.EbayIcon,Object.assign({},e,{name:"truckShipped12",__type:"icon",__symbol:o}));exports.EbayIconTruckShipped12=t;
@@ -1 +1 @@
1
- "use strict";const a=require("./tslib.es6-C4EgNkz1.js"),i=require("react"),I=require("classnames"),s=require("./utils-C9NL3q0j.js"),m=require("./file-preview-card-DnIUegpg.js"),o=()=>null,E=e=>{var{children:l}=e,t=a.__rest(e,["children"]);return i.createElement("div",Object.assign({className:"item-tile__section-primary"},t),l)},d=e=>{var{href:l,children:t}=e,n=a.__rest(e,["href","children"]);return i.createElement("a",Object.assign({href:l,className:"item-tile__title"},n),t)},b=e=>{var{children:l}=e,t=a.__rest(e,["children"]);return i.createElement("div",Object.assign({className:"item-tile__subtitle"},t),l)},u=e=>{var{as:l="p",children:t}=e,n=a.__rest(e,["as","children"]);return i.createElement(l,Object.assign({},n),t)},N=({title:e,subtitle:l,descriptions:t})=>i.createElement(i.Fragment,null,e||l?i.createElement("div",{className:"item-tile__section-secondary"},e,l):null,t?.length?i.createElement("div",{className:"item-tile__section-tertiary"},t):null),g=e=>{var{file:l,href:t,layout:n,className:y,onAction:_,children:r}=e,v=a.__rest(e,["file","href","layout","className","onAction","children"]);const h=s.findComponent(r,E),T=s.findComponent(r,d),p=s.findComponent(r,b),c=s.findComponent(r,o),f=s.filterByType(r,u);return i.createElement("div",Object.assign({className:I(y,"item-tile",{"item-tile--list-view":n==="list"})},v),l&&i.createElement("div",{className:"item-tile__header"},i.createElement(m.EbayFilePreviewCard,{file:l,href:t,onAction:_},c&&i.createElement(m.EbayFilePreviewCardAction,Object.assign({},c.props)))),i.createElement("div",{className:"item-tile__body"},h,i.createElement(N,{title:T,subtitle:p,descriptions:f})))};exports.EbayItemTile=g;exports.EbayItemTileAction=o;exports.EbayItemTileDescription=u;exports.EbayItemTileSubtitle=b;exports.EbayItemTileSupertitle=E;exports.EbayItemTileTitle=d;
1
+ "use strict";const a=require("./tslib.es6-C4EgNkz1.js"),i=require("react"),I=require("classnames"),s=require("./utils-C9NL3q0j.js"),m=require("./file-preview-card-C28-H6Zw.js"),o=()=>null,E=e=>{var{children:l}=e,t=a.__rest(e,["children"]);return i.createElement("div",Object.assign({className:"item-tile__section-primary"},t),l)},d=e=>{var{href:l,children:t}=e,n=a.__rest(e,["href","children"]);return i.createElement("a",Object.assign({href:l,className:"item-tile__title"},n),t)},b=e=>{var{children:l}=e,t=a.__rest(e,["children"]);return i.createElement("div",Object.assign({className:"item-tile__subtitle"},t),l)},u=e=>{var{as:l="p",children:t}=e,n=a.__rest(e,["as","children"]);return i.createElement(l,Object.assign({},n),t)},N=({title:e,subtitle:l,descriptions:t})=>i.createElement(i.Fragment,null,e||l?i.createElement("div",{className:"item-tile__section-secondary"},e,l):null,t?.length?i.createElement("div",{className:"item-tile__section-tertiary"},t):null),g=e=>{var{file:l,href:t,layout:n,className:y,onAction:_,children:r}=e,v=a.__rest(e,["file","href","layout","className","onAction","children"]);const h=s.findComponent(r,E),T=s.findComponent(r,d),p=s.findComponent(r,b),c=s.findComponent(r,o),f=s.filterByType(r,u);return i.createElement("div",Object.assign({className:I(y,"item-tile",{"item-tile--list-view":n==="list"})},v),l&&i.createElement("div",{className:"item-tile__header"},i.createElement(m.EbayFilePreviewCard,{file:l,href:t,onAction:_},c&&i.createElement(m.EbayFilePreviewCardAction,Object.assign({},c.props)))),i.createElement("div",{className:"item-tile__body"},h,i.createElement(N,{title:T,subtitle:p,descriptions:f})))};exports.EbayItemTile=g;exports.EbayItemTileAction=o;exports.EbayItemTileDescription=u;exports.EbayItemTileSubtitle=b;exports.EbayItemTileSupertitle=E;exports.EbayItemTileTitle=d;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebay/ui-core-react",
3
- "version": "9.0.0",
3
+ "version": "9.2.0",
4
4
  "description": "Skin components build off React",
5
5
  "keywords": [
6
6
  "React",
@@ -1 +0,0 @@
1
- "use strict";const k=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),g=require("classnames"),B=require("./utils-C9NL3q0j.js"),N=require("./icon-button-AJ6dtyvc.js"),O=require("./menu-button-tvdOBhp1.js"),C=require("./menu-Bvnencku.js"),j=require("./icons/ebay-icon-close-16/index.js"),U=require("./icons/ebay-icon-delete-16/index.js"),L=require("./progress-spinner-DTmNtD59.js"),R=require("./icons/ebay-icon-file-24/index.js"),A=require("./icons/ebay-icon-play-16/index.js"),D=({status:t,menuActions:n,onMenuAction:l,deleteText:s,onCancel:a,onDelete:i,onAction:p,a11yCancelUploadText:m,action:r})=>{const b=(c,u)=>{var o;if(u){const d=(o=u.checked)===null||o===void 0?void 0:o[0],E=n&&d!==void 0&&d in n?n[d].event:null;E&&l?l(c,Object.assign(Object.assign({},u),{eventName:E})):i&&i(c)}};return t==="uploading"?e.createElement(N.EbayIconButton,{"aria-label":m,onClick:a,className:"file-preview-card__action",icon:e.createElement(j.EbayIconClose16,null)}):n?.length?e.createElement(e.Fragment,null,e.createElement(O.EbayMenuButton,{variant:"overflow",className:"file-preview-card__action",onSelect:b},n.map(c=>e.createElement(C.EbayMenuItem,{value:c.event,key:c.label},c.label)),e.createElement(C.EbayMenuItem,{key:"delete",value:"delete"},s))):r?.props&&r.props.icon&&r.props["aria-label"]?e.createElement(N.EbayIconButton,Object.assign({onClick:p,className:g("file-preview-card__action",r.props.className)},r.props)):s?e.createElement(N.EbayIconButton,{"aria-label":s,className:"file-preview-card__action",icon:e.createElement(U.EbayIconDelete16,null),onClick:i}):e.createElement(e.Fragment,null)},F=({file:t,status:n,seeMore:l})=>{if(n==="uploading")return e.createElement(L.EbayProgressSpinner,{className:"file-preview-card__asset"});switch(t?.type){case"video":return e.createElement("video",{className:"file-preview-card__asset",src:t.src});case"image":return e.createElement("img",{className:g("file-preview-card__asset",{"file-preview-card__asset--fade":l&&l>0}),src:t?.src,alt:t?.name});default:return e.createElement(R.EbayIconFile24,{className:"file-preview-card__asset"})}},W=({file:t,infoText:n})=>t&&t.type!=="image"?e.createElement("div",{className:"file-preview-card__info"},t.type==="video"&&e.createElement(A.EbayIconPlay16,{className:"file-preview-card__video-icon"}),n||t.name.substring(t.name.lastIndexOf(".")+1).toUpperCase()):e.createElement(e.Fragment,null),I=()=>null,z=t=>{var{a11yCancelUploadText:n,status:l,as:s="div",file:a,seeMore:i,deleteText:p,footerTitle:m,footerSubtitle:r,a11ySeeMoreText:b,menuActions:c,infoText:u,href:o,onCancel:d,onDelete:E,onMenuAction:q,onSeeMore:M,onAction:h,className:S,children:x}=t,P=k.__rest(t,["a11yCancelUploadText","status","as","file","seeMore","deleteText","footerTitle","footerSubtitle","a11ySeeMoreText","menuActions","infoText","href","onCancel","onDelete","onMenuAction","onSeeMore","onAction","className","children"]);const T=B.findComponent(x,I),y=e.useMemo(()=>{var f,_;if(!a)return;let w=a,v;return!((f=a?.type)===null||f===void 0)&&f.startsWith("image")?v="image":!((_=a?.type)===null||_===void 0)&&_.startsWith("video")&&(v="video"),a instanceof File&&(w={name:a.name,type:v,src:v?URL.createObjectURL(a):void 0}),w.type=v,w},[a]);return e.createElement(s,Object.assign({className:g("file-preview-card",S)},P),e.createElement("div",{className:"file-preview-card__body"},o?e.createElement("a",{href:o},e.createElement(F,{file:y,status:l,seeMore:i})):e.createElement(F,{file:y,status:l,seeMore:i}),i&&i>0?e.createElement("button",{type:"button",className:"file-preview-card__see-more",onClick:M,"aria-label":b},e.createElement("span",null,"+",i)):e.createElement(D,{a11yCancelUploadText:n,status:l,menuActions:c,onMenuAction:q,deleteText:p,onCancel:d,onDelete:E,onAction:h,action:T}),e.createElement(W,{file:y,infoText:u})),m&&e.createElement("div",{className:"file-preview-card__footer"},e.createElement("span",null,m),r&&e.createElement("span",null,r)))};exports.EbayFilePreviewCard=z;exports.EbayFilePreviewCardAction=I;