@ebay/ui-core-react 8.4.0 → 8.5.1

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 (132) hide show
  1. package/README.md +5 -2
  2. package/{button-C3RhAySI.js → button-DhwBC3vw.js} +1 -1
  3. package/{calendar-C0wOay3d.js → calendar-Bnx_QLoQ.js} +1 -1
  4. package/{checkbox-BziMKlXl.js → checkbox-ebkMhvbJ.js} +1 -1
  5. package/{chip-CFq5Sx2d.js → chip-CfMEg9CT.js} +1 -1
  6. package/{dialog-previous-button-ns64Jg1v.js → dialog-previous-button-DR6Ujner.js} +1 -1
  7. package/ebay-accordion/accordion.d.ts.map +1 -1
  8. package/ebay-accordion/index.js +2 -2
  9. package/ebay-alert-dialog/index.js +1 -1
  10. package/ebay-avatar/index.js +1 -1
  11. package/ebay-breadcrumbs/index.js +1 -1
  12. package/ebay-button/index.js +1 -1
  13. package/ebay-calendar/index.js +1 -1
  14. package/ebay-carousel/index.js +1 -1
  15. package/ebay-ccd/README.md +64 -0
  16. package/ebay-ccd/ccd.d.ts +14 -0
  17. package/ebay-ccd/ccd.d.ts.map +1 -0
  18. package/ebay-ccd/index.d.ts +2 -0
  19. package/ebay-ccd/index.d.ts.map +1 -0
  20. package/ebay-ccd/index.js +1 -0
  21. package/ebay-character-count/README.md +44 -0
  22. package/ebay-character-count/character-count.d.ts +14 -0
  23. package/ebay-character-count/character-count.d.ts.map +1 -0
  24. package/ebay-character-count/index.d.ts +3 -0
  25. package/ebay-character-count/index.d.ts.map +1 -0
  26. package/ebay-character-count/index.js +1 -0
  27. package/ebay-checkbox/index.js +1 -1
  28. package/ebay-chip/index.js +1 -1
  29. package/ebay-chips-combobox/index.js +1 -1
  30. package/ebay-confirm-dialog/index.js +1 -1
  31. package/ebay-cta-button/index.js +1 -1
  32. package/ebay-date-textbox/index.js +1 -1
  33. package/ebay-details/index.js +1 -1
  34. package/{ebay-details-Co3xp8NP.js → ebay-details-CwOA53up.js} +1 -1
  35. package/ebay-dialog-base/index.js +1 -1
  36. package/ebay-drawer-dialog-deprecated/index.js +1 -1
  37. package/ebay-education-notice/index.js +1 -1
  38. package/ebay-eek/index.js +1 -1
  39. package/ebay-fake-menu/index.js +1 -1
  40. package/ebay-fake-menu-button/index.js +1 -1
  41. package/ebay-field/index.js +1 -1
  42. package/ebay-field/types.d.ts +1 -1
  43. package/ebay-field/types.d.ts.map +1 -1
  44. package/ebay-file-input/README.md +59 -0
  45. package/ebay-file-input/file-input.d.ts +13 -0
  46. package/ebay-file-input/file-input.d.ts.map +1 -0
  47. package/ebay-file-input/index.d.ts +2 -0
  48. package/ebay-file-input/index.d.ts.map +1 -0
  49. package/ebay-file-input/index.js +1 -0
  50. package/ebay-file-input/types.d.ts +6 -0
  51. package/ebay-file-input/types.d.ts.map +1 -0
  52. package/ebay-file-preview-card/file-preview-action.d.ts +2 -2
  53. package/ebay-file-preview-card/file-preview-action.d.ts.map +1 -1
  54. package/ebay-file-preview-card/file-preview-card.d.ts +3 -3
  55. package/ebay-file-preview-card/file-preview-card.d.ts.map +1 -1
  56. package/ebay-file-preview-card/index.js +1 -1
  57. package/ebay-file-preview-card/types.d.ts +1 -2
  58. package/ebay-file-preview-card/types.d.ts.map +1 -1
  59. package/ebay-file-preview-card-group/README.md +65 -0
  60. package/ebay-file-preview-card-group/file-preview-card-group.d.ts +12 -0
  61. package/ebay-file-preview-card-group/file-preview-card-group.d.ts.map +1 -0
  62. package/ebay-file-preview-card-group/index.d.ts +2 -0
  63. package/ebay-file-preview-card-group/index.d.ts.map +1 -0
  64. package/ebay-file-preview-card-group/index.js +1 -0
  65. package/ebay-file-preview-card-group/types.d.ts +13 -0
  66. package/ebay-file-preview-card-group/types.d.ts.map +1 -0
  67. package/ebay-filter-menu/index.js +1 -1
  68. package/ebay-filter-menu-button/index.js +1 -1
  69. package/ebay-fullscreen-dialog-deprecated/index.js +1 -1
  70. package/ebay-icon/icon.d.ts +6 -0
  71. package/ebay-icon/icon.d.ts.map +1 -1
  72. package/ebay-icon/index.js +1 -1
  73. package/ebay-icon/types.d.ts +1 -1
  74. package/ebay-icon/types.d.ts.map +1 -1
  75. package/ebay-icon-button/index.js +1 -1
  76. package/ebay-image-placeholder/README.md +46 -0
  77. package/ebay-image-placeholder/image-placeholder.d.ts +6 -0
  78. package/ebay-image-placeholder/image-placeholder.d.ts.map +1 -0
  79. package/ebay-image-placeholder/index.d.ts +2 -0
  80. package/ebay-image-placeholder/index.d.ts.map +1 -0
  81. package/ebay-image-placeholder/index.js +1 -0
  82. package/ebay-infotip/index.js +1 -1
  83. package/ebay-inline-notice/index.js +1 -1
  84. package/ebay-lightbox-dialog/index.js +1 -1
  85. package/ebay-listbox/index.js +1 -1
  86. package/ebay-listbox-button/index.js +1 -1
  87. package/ebay-menu/index.js +1 -1
  88. package/ebay-menu-button/index.js +1 -1
  89. package/ebay-page-notice/index.js +1 -1
  90. package/ebay-pagination/index.js +1 -1
  91. package/ebay-panel-dialog/index.js +1 -1
  92. package/ebay-progress-spinner/index.js +1 -1
  93. package/ebay-progress-stepper/index.js +1 -1
  94. package/ebay-radio/index.js +1 -1
  95. package/ebay-section-notice/index.js +1 -1
  96. package/ebay-segmented-buttons/index.js +1 -1
  97. package/ebay-select/index.js +1 -1
  98. package/ebay-snackbar-dialog/index.js +1 -1
  99. package/ebay-split-button/index.js +1 -1
  100. package/ebay-star-rating/index.js +1 -1
  101. package/ebay-star-rating-select/index.js +1 -1
  102. package/ebay-svg/index.js +1 -1
  103. package/ebay-table/README.md +1 -0
  104. package/ebay-table/index.js +1 -1
  105. package/ebay-table/table.d.ts +1 -0
  106. package/ebay-table/table.d.ts.map +1 -1
  107. package/ebay-textbox/index.js +1 -1
  108. package/ebay-toast-dialog/index.js +1 -1
  109. package/ebay-toggle-button/index.js +1 -1
  110. package/ebay-toggle-button-group/index.js +1 -1
  111. package/ebay-tooltip/index.js +1 -1
  112. package/ebay-tourtip/index.js +1 -1
  113. package/ebay-tri-state-checkbox/index.js +1 -1
  114. package/ebay-video/index.js +1 -1
  115. package/file-preview-card-D4qnvGtF.js +1 -0
  116. package/{filter-menu-CzHlWYrY.js → filter-menu-DVoaD81G.js} +1 -1
  117. package/icon-C-bWGO-9.js +1 -0
  118. package/{icon-button-DPIjQGta.js → icon-button-CHW6Lezn.js} +1 -1
  119. package/lightbox-dialog-B19PMyMY.js +1 -0
  120. package/{menu-button-label-DFjHo8Lr.js → menu-button-label-BsTtpKB2.js} +1 -1
  121. package/{menu-button-label-BCs24-MK.js → menu-button-label-CN_zoO9F.js} +1 -1
  122. package/{menu-item-C24G4so-.js → menu-item-D_m4VPNi.js} +1 -1
  123. package/{menu-DmmYhPJU.js → menu-mTGSTnD8.js} +1 -1
  124. package/package.json +18 -14
  125. package/{progress-spinner-CTs1iaUV.js → progress-spinner-BQ5Ms2Nu.js} +1 -1
  126. package/{radio-D-YF8WXv.js → radio-DLgEB-qH.js} +1 -1
  127. package/{textbox-B6zeeYue.js → textbox-BYNinHFi.js} +1 -1
  128. package/{toggle-button-CugK7Hwz.js → toggle-button-BLFYrRDI.js} +1 -1
  129. package/{tri-state-checkbox-Lrf47q9t.js → tri-state-checkbox-BLbLOJc1.js} +1 -1
  130. package/{use-tooltip-BTMlwcb6.js → use-tooltip-mcJqLqOg.js} +1 -1
  131. package/icon-hO_8pLp7.js +0 -1
  132. package/lightbox-dialog-2MA5lJCC.js +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),R=require("classnames"),d=require("../utils-C9NL3q0j.js"),c=require("../use-tooltip-BTMlwcb6.js"),P=require("../dialog-previous-button-ns64Jg1v.js");require("react-remove-scroll");require("makeup-screenreader-trap");require("makeup-keyboard-trap");const F=require("../icon-hO_8pLp7.js");require("../icon-button-DPIjQGta.js");const $=require("classnames/dedupe"),D=require("../forwardRef-DBQKIlPy.js"),B=require("../lightbox-dialog-2MA5lJCC.js"),M=t=>{var{icon:n,className:o,children:i,forwardedRef:p,variant:u}=t,a=g.__rest(t,["icon","className","children","forwardedRef","variant"]);const f=u==="modal"?"dialog--mini":"infotip",s=e.createElement(F.EbayIcon,{name:n}),r=i instanceof Function?i({icon:s}):i;return e.createElement("button",Object.assign({},a,{className:$("icon-btn icon-btn--transparent",o,`${f}__host`),type:"button",ref:p}),r||s)},E=D.withForwardRef(M),S=({variant:t="default",pointer:n,overlayStyle:o,disabled:i,onExpand:p,onCollapse:u,children:a,initialExpanded:f,icon:s="information16",a11yCloseText:r,"aria-label":H,className:j})=>{const y=e.useRef(null),{isExpanded:l,expandTooltip:v,collapseTooltip:m}=c.useTooltip({onCollapse:u,onExpand:p,initialExpanded:f,hostRef:y}),b=t==="modal",O=e.useRef(null),h=d.findComponent(a,T),q=d.findComponent(a,w),C=d.findComponent(a,E)||e.createElement(E),x=()=>{l?m():v()};if(!q)throw new Error("EbayInfotip: Please use a EbayInfotipContent that defines the content of the infotip");const I=q.props,{children:_}=I,N=g.__rest(I,["children"]);return e.createElement(e.Fragment,null,e.createElement(c.Tooltip,{type:"infotip",isExpanded:l,className:R(j,{"dialog--mini":b}),ref:O},e.createElement(c.TooltipHost,null,e.cloneElement(C,Object.assign({ref:y,onClick:x,disabled:i,variant:t,"aria-label":H,"aria-expanded":l,icon:s},C.props))),!b&&e.createElement(c.TooltipContent,Object.assign({},N,{type:"infotip",style:o,pointer:n,showCloseButton:!0,a11yCloseText:r,onClose:m}),h,_)),b&&e.createElement(B.EbayLightboxDialog,Object.assign({},N,{open:l,onClose:m,a11yCloseText:r,className:"dialog--mini__overlay"}),e.createElement(P.EbayDialogHeader,null,h),_))},T=t=>{var{className:n}=t,o=g.__rest(t,["className"]);return e.createElement("span",Object.assign({},o,{className:R("infotip__heading",n)}))},w=({children:t})=>e.createElement(e.Fragment,null,t);exports.EbayInfotip=S;exports.EbayInfotipContent=w;exports.EbayInfotipHeading=T;exports.EbayInfotipHost=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),R=require("classnames"),d=require("../utils-C9NL3q0j.js"),c=require("../use-tooltip-mcJqLqOg.js"),P=require("../dialog-previous-button-DR6Ujner.js");require("react-remove-scroll");require("makeup-screenreader-trap");require("makeup-keyboard-trap");const F=require("../icon-C-bWGO-9.js");require("../icon-button-CHW6Lezn.js");const $=require("classnames/dedupe"),D=require("../forwardRef-DBQKIlPy.js"),B=require("../lightbox-dialog-B19PMyMY.js"),M=t=>{var{icon:n,className:o,children:i,forwardedRef:p,variant:u}=t,a=g.__rest(t,["icon","className","children","forwardedRef","variant"]);const f=u==="modal"?"dialog--mini":"infotip",s=e.createElement(F.EbayIcon,{name:n}),r=i instanceof Function?i({icon:s}):i;return e.createElement("button",Object.assign({},a,{className:$("icon-btn icon-btn--transparent",o,`${f}__host`),type:"button",ref:p}),r||s)},E=D.withForwardRef(M),S=({variant:t="default",pointer:n,overlayStyle:o,disabled:i,onExpand:p,onCollapse:u,children:a,initialExpanded:f,icon:s="information16",a11yCloseText:r,"aria-label":H,className:j})=>{const y=e.useRef(null),{isExpanded:l,expandTooltip:v,collapseTooltip:m}=c.useTooltip({onCollapse:u,onExpand:p,initialExpanded:f,hostRef:y}),b=t==="modal",O=e.useRef(null),h=d.findComponent(a,T),q=d.findComponent(a,w),C=d.findComponent(a,E)||e.createElement(E),x=()=>{l?m():v()};if(!q)throw new Error("EbayInfotip: Please use a EbayInfotipContent that defines the content of the infotip");const I=q.props,{children:_}=I,N=g.__rest(I,["children"]);return e.createElement(e.Fragment,null,e.createElement(c.Tooltip,{type:"infotip",isExpanded:l,className:R(j,{"dialog--mini":b}),ref:O},e.createElement(c.TooltipHost,null,e.cloneElement(C,Object.assign({ref:y,onClick:x,disabled:i,variant:t,"aria-label":H,"aria-expanded":l,icon:s},C.props))),!b&&e.createElement(c.TooltipContent,Object.assign({},N,{type:"infotip",style:o,pointer:n,showCloseButton:!0,a11yCloseText:r,onClose:m}),h,_)),b&&e.createElement(B.EbayLightboxDialog,Object.assign({},N,{open:l,onClose:m,a11yCloseText:r,className:"dialog--mini__overlay"}),e.createElement(P.EbayDialogHeader,null,h),_))},T=t=>{var{className:n}=t,o=g.__rest(t,["className"]);return e.createElement("span",Object.assign({},o,{className:R("infotip__heading",n)}))},w=({children:t})=>e.createElement(e.Fragment,null,t);exports.EbayInfotip=S;exports.EbayInfotipContent=w;exports.EbayInfotipHeading=T;exports.EbayInfotipHost=E;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),E=require("classnames"),c=require("../notice-content-C0ZStfuX.js"),d=require("../notice-content-9iF4T8uB.js"),y=require("../utils-C9NL3q0j.js"),m=require("../icon-hO_8pLp7.js"),h=i=>{var{className:r,status:t="general",children:s,hidden:n=!1,"aria-label":l,onNoticeShow:u=()=>{}}=i,b=N.__rest(i,["className","status","children","hidden","aria-label","onNoticeShow"]);if(e.useEffect(()=>{n||u()},[n]),n)return null;const a=y.findComponent(s,c.EbayNoticeContent);if(!a)throw new Error("EbayInlineNotice: Please use a EbayNoticeContent that defines the content of the notice");const o=t==="general";return e.createElement("div",Object.assign({},b,{className:E(r,"inline-notice",{[`inline-notice--${t}`]:!o})}),o?null:e.createElement("span",{className:"inline-notice__header"},e.createElement(m.EbayIcon,{name:`${t}Filled16`,a11yText:l,a11yVariant:"label"})),e.createElement(d.NoticeContent,Object.assign({},a.props,{type:"inline"})))};exports.EbayNoticeContent=c.EbayNoticeContent;exports.EbayInlineNotice=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),E=require("classnames"),c=require("../notice-content-C0ZStfuX.js"),d=require("../notice-content-9iF4T8uB.js"),y=require("../utils-C9NL3q0j.js"),m=require("../icon-C-bWGO-9.js"),h=i=>{var{className:r,status:t="general",children:s,hidden:n=!1,"aria-label":l,onNoticeShow:u=()=>{}}=i,b=N.__rest(i,["className","status","children","hidden","aria-label","onNoticeShow"]);if(e.useEffect(()=>{n||u()},[n]),n)return null;const a=y.findComponent(s,c.EbayNoticeContent);if(!a)throw new Error("EbayInlineNotice: Please use a EbayNoticeContent that defines the content of the notice");const o=t==="general";return e.createElement("div",Object.assign({},b,{className:E(r,"inline-notice",{[`inline-notice--${t}`]:!o})}),o?null:e.createElement("span",{className:"inline-notice__header"},e.createElement(m.EbayIcon,{name:`${t}Filled16`,a11yText:l,a11yVariant:"label"})),e.createElement(d.NoticeContent,Object.assign({},a.props,{type:"inline"})))};exports.EbayNoticeContent=c.EbayNoticeContent;exports.EbayInlineNotice=h;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../lightbox-dialog-2MA5lJCC.js");exports.EbayLightboxDialog=o.EbayLightboxDialog;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../lightbox-dialog-B19PMyMY.js");exports.EbayLightboxDialog=o.EbayLightboxDialog;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),M=require("makeup-active-descendant"),m=require("makeup-typeahead"),y=require("classnames"),T=require("../utils-C9NL3q0j.js"),B=require("../scroll-OgAngNzq.js"),F=require("../icon-hO_8pLp7.js"),k=o=>{var{children:i,className:p}=o,f=I.__rest(o,["children","className"]);return e.createElement("div",Object.assign({className:y("listbox__description",p)},f),i)},q=o=>{var{className:i,icon:p,text:f,children:b,disabled:E,tabIndex:g,selected:c}=o,_=I.__rest(o,["className","icon","text","children","disabled","tabIndex","selected"]);const s=T.filterByType(b,k),v=f||(s!=null&&s.length?"":b);return e.createElement("div",Object.assign({},_,{tabIndex:E?-1:g,className:y("listbox__option",i),"aria-disabled":E,"aria-selected":c,role:"option"}),p?e.createElement("span",{className:"listbox__value"},p,v?e.createElement("span",null,v):null,s!=null&&s.length?s:null):e.createElement(e.Fragment,null,e.createElement("span",{className:"listbox__value"},v),s!=null&&s.length?s:null),e.createElement(F.EbayIcon,{name:"tick16"}))};var D;const{default:K=m}=(D=m==null?void 0:m.default)!=null&&D.__esModule?m.default:m,P=1300,G=o=>{var i,{name:p,className:f,disabled:b,children:E,tabIndex:g=0,listSelection:c,maxHeight:_,typeaheadTimeoutLength:s,selectClassName:v,onChange:R=()=>{},onEscape:w=()=>{}}=o,S=I.__rest(o,["name","className","disabled","children","tabIndex","listSelection","maxHeight","typeaheadTimeoutLength","selectClassName","onChange","onEscape"]);const l=T.filterByType(E,q),N=l.findIndex(t=>t.props.selected),[u,L]=e.useState(l.findIndex(t=>t.props.selected));e.useEffect(()=>{N!==u&&L(N)},[N]);const r=e.useRef(null),d=e.useRef(null),h=e.useRef(null),x=e.useRef(!1);function C(t,n,a){n===u||l[n].props.disabled||(L(n),R(t,{index:n,selected:[l[n].props.value],wasClicked:a}))}function j(t){switch(t.code){case"Esc":case"Escape":w();break;case"Space":case"Enter":C(t,d.current.index,!1);break}const n=h.current.getIndex(r.current.children,t.key,s||P);if(n!==-1){d.current.index=n;const a=r.current.querySelectorAll("[role=option]")[n];r.current.scrollTop=a.offsetTop-r.current.offsetHeight/2}}function A(){x.current=!0}return e.useEffect(()=>{const t=n=>{const a=parseInt(n.detail.toIndex,10),O=r.current?r.current.querySelectorAll("[role=option]")[u]:null,H=x.current;B.scroll(O),x.current&&(x.current=!1),C(n,a,H)};if(l.length&&!b){const n=r.current,a=r.current;d.current=M.createLinear(n,a,a,".listbox__option[role=option]",{activeDescendantClassName:"listbox__option--active",autoInit:u,autoReset:null,autoScroll:c!=="auto"}),h.current=K()}return c==="auto"&&r.current.addEventListener("activeDescendantChange",t),()=>{d.current&&(d.current.reset(),d.current.destroy(),d.current=void 0),h.current&&(h.current.destroy(),h.current=void 0),r.current&&r.current.removeEventListener("activeDescendantChange",t)}},[u,b,c]),e.createElement(e.Fragment,null,e.createElement("div",Object.assign({},S,{tabIndex:g,ref:r,role:"listbox",onKeyDown:c!=="auto"?j:void 0,className:y("listbox__options",f),style:{maxHeight:_}}),l.map((t,n)=>e.cloneElement(t,Object.assign(Object.assign({key:t.props.value||n},t.props),{onMouseDown:c==="auto"?A:void 0,onClick:a=>{c!=="auto"&&C(a,n,!0)},selected:n===u})))),e.createElement("select",{hidden:!0,className:y("listbox__native",v),name:p,disabled:b,value:(i=l[u])===null||i===void 0?void 0:i.props.value,onChange:()=>{}},l.map((t,n)=>e.createElement("option",{key:t.props.value||n,value:t.props.value,disabled:t.props.disabled}))))};exports.EbayListbox=G;exports.EbayListboxOption=q;exports.EbayListboxOptionDescription=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),M=require("makeup-active-descendant"),m=require("makeup-typeahead"),y=require("classnames"),T=require("../utils-C9NL3q0j.js"),B=require("../scroll-OgAngNzq.js"),F=require("../icon-C-bWGO-9.js"),k=o=>{var{children:i,className:p}=o,f=I.__rest(o,["children","className"]);return e.createElement("div",Object.assign({className:y("listbox__description",p)},f),i)},q=o=>{var{className:i,icon:p,text:f,children:b,disabled:E,tabIndex:g,selected:c}=o,_=I.__rest(o,["className","icon","text","children","disabled","tabIndex","selected"]);const s=T.filterByType(b,k),v=f||(s!=null&&s.length?"":b);return e.createElement("div",Object.assign({},_,{tabIndex:E?-1:g,className:y("listbox__option",i),"aria-disabled":E,"aria-selected":c,role:"option"}),p?e.createElement("span",{className:"listbox__value"},p,v?e.createElement("span",null,v):null,s!=null&&s.length?s:null):e.createElement(e.Fragment,null,e.createElement("span",{className:"listbox__value"},v),s!=null&&s.length?s:null),e.createElement(F.EbayIcon,{name:"tick16"}))};var D;const{default:K=m}=(D=m==null?void 0:m.default)!=null&&D.__esModule?m.default:m,P=1300,G=o=>{var i,{name:p,className:f,disabled:b,children:E,tabIndex:g=0,listSelection:c,maxHeight:_,typeaheadTimeoutLength:s,selectClassName:v,onChange:R=()=>{},onEscape:w=()=>{}}=o,S=I.__rest(o,["name","className","disabled","children","tabIndex","listSelection","maxHeight","typeaheadTimeoutLength","selectClassName","onChange","onEscape"]);const l=T.filterByType(E,q),N=l.findIndex(t=>t.props.selected),[u,L]=e.useState(l.findIndex(t=>t.props.selected));e.useEffect(()=>{N!==u&&L(N)},[N]);const r=e.useRef(null),d=e.useRef(null),h=e.useRef(null),x=e.useRef(!1);function C(t,n,a){n===u||l[n].props.disabled||(L(n),R(t,{index:n,selected:[l[n].props.value],wasClicked:a}))}function j(t){switch(t.code){case"Esc":case"Escape":w();break;case"Space":case"Enter":C(t,d.current.index,!1);break}const n=h.current.getIndex(r.current.children,t.key,s||P);if(n!==-1){d.current.index=n;const a=r.current.querySelectorAll("[role=option]")[n];r.current.scrollTop=a.offsetTop-r.current.offsetHeight/2}}function A(){x.current=!0}return e.useEffect(()=>{const t=n=>{const a=parseInt(n.detail.toIndex,10),O=r.current?r.current.querySelectorAll("[role=option]")[u]:null,H=x.current;B.scroll(O),x.current&&(x.current=!1),C(n,a,H)};if(l.length&&!b){const n=r.current,a=r.current;d.current=M.createLinear(n,a,a,".listbox__option[role=option]",{activeDescendantClassName:"listbox__option--active",autoInit:u,autoReset:null,autoScroll:c!=="auto"}),h.current=K()}return c==="auto"&&r.current.addEventListener("activeDescendantChange",t),()=>{d.current&&(d.current.reset(),d.current.destroy(),d.current=void 0),h.current&&(h.current.destroy(),h.current=void 0),r.current&&r.current.removeEventListener("activeDescendantChange",t)}},[u,b,c]),e.createElement(e.Fragment,null,e.createElement("div",Object.assign({},S,{tabIndex:g,ref:r,role:"listbox",onKeyDown:c!=="auto"?j:void 0,className:y("listbox__options",f),style:{maxHeight:_}}),l.map((t,n)=>e.cloneElement(t,Object.assign(Object.assign({key:t.props.value||n},t.props),{onMouseDown:c==="auto"?A:void 0,onClick:a=>{c!=="auto"&&C(a,n,!0)},selected:n===u})))),e.createElement("select",{hidden:!0,className:y("listbox__native",v),name:p,disabled:b,value:(i=l[u])===null||i===void 0?void 0:i.props.value,onChange:()=>{}},l.map((t,n)=>e.createElement("option",{key:t.props.value||n,value:t.props.value,disabled:t.props.disabled}))))};exports.EbayListbox=G;exports.EbayListboxOption=q;exports.EbayListboxOptionDescription=k;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("../tslib.es6-C4EgNkz1.js"),n=require("react"),N=require("classnames"),$=require("../icon-hO_8pLp7.js"),ve=require("../utils-C9NL3q0j.js"),xe=require("../dropdown-BGdrijmi.js"),V=u=>{var{value:p,children:v,selected:x,onClick:b,index:g,innerRef:E,className:y}=u,O=U.__rest(u,["value","children","selected","onClick","index","innerRef","className"]);const k=N("listbox-button__option",y,{"listbox-button__option--active":x});return n.createElement("div",Object.assign({},O,{className:k,role:"option","aria-selected":x,ref:E,onClick:d=>{b(d,p,g)}}),n.createElement("span",{className:"listbox-button__value"},v),n.createElement($.EbayIcon,{name:"tick16"}))},ge=u=>{var p,{children:v,name:x,value:b,selected:g,borderless:E,fluid:y,className:O,maxHeight:k,prefixId:d,prefixLabel:S,floatingLabel:_,unselectedText:W="-",onChange:L=()=>{},onCollapse:z=()=>{},onExpand:G=()=>{}}=u,J=U.__rest(u,["children","name","value","selected","borderless","fluid","className","maxHeight","prefixId","prefixLabel","floatingLabel","unselectedText","onChange","onCollapse","onExpand"]);const i=n.useRef(null),C=n.useRef(new Map),l=ve.filterByType(v,V);if(!l.length)throw new Error(`EbayListboxButton: Please use a
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("../tslib.es6-C4EgNkz1.js"),n=require("react"),N=require("classnames"),$=require("../icon-C-bWGO-9.js"),ve=require("../utils-C9NL3q0j.js"),xe=require("../dropdown-BGdrijmi.js"),V=u=>{var{value:p,children:v,selected:x,onClick:b,index:g,innerRef:E,className:y}=u,O=U.__rest(u,["value","children","selected","onClick","index","innerRef","className"]);const k=N("listbox-button__option",y,{"listbox-button__option--active":x});return n.createElement("div",Object.assign({},O,{className:k,role:"option","aria-selected":x,ref:E,onClick:d=>{b(d,p,g)}}),n.createElement("span",{className:"listbox-button__value"},v),n.createElement($.EbayIcon,{name:"tick16"}))},ge=u=>{var p,{children:v,name:x,value:b,selected:g,borderless:E,fluid:y,className:O,maxHeight:k,prefixId:d,prefixLabel:S,floatingLabel:_,unselectedText:W="-",onChange:L=()=>{},onCollapse:z=()=>{},onExpand:G=()=>{}}=u,J=U.__rest(u,["children","name","value","selected","borderless","fluid","className","maxHeight","prefixId","prefixLabel","floatingLabel","unselectedText","onChange","onCollapse","onExpand"]);const i=n.useRef(null),C=n.useRef(new Map),l=ve.filterByType(v,V);if(!l.length)throw new Error(`EbayListboxButton: Please use a
2
2
  EbayListboxButtonOption that defines the options of the listbox`);const Q=()=>{const e=g!==void 0?g:l.findIndex(({props:s})=>b!==void 0&&s.value===b),t=e>-1||_?e:void 0;return{option:l[t],index:t}},{option:T,index:D}=Q(),[a,f]=n.useState(T),[o,I]=n.useState(D),[m,R]=n.useState(),[X,Y]=n.useState(!1),[H,A]=n.useState(),{overlayStyles:Z,refs:h}=xe.useFloatingDropdown({open:m}),w=h.host,ee=h.overlay;n.useEffect(()=>{f(T)},[b]);const c=n.Children.toArray(v),q=e=>c[e].props.value,te=n.useCallback(e=>c.findIndex(({props:t})=>t.value===e),[c]),ne=e=>C.current.get(e),r=()=>{R(!1),z()},oe=()=>{R(!0),G()},se=()=>{m?r():oe()},j=(e,t)=>{f(c[t]),I(t),r(),w.current.focus(),L(e,{index:t,selected:[String(q(t))],wasClicked:H}),A(!1)},ae=()=>{r(),f(c[D])},le=e=>{const t=i.current.children[e];t.setAttribute("aria-selected","true"),t.classList.add("listbox-button__option--active")},ce=e=>{const t=i.current.children[e];t.setAttribute("aria-selected","false"),t.classList.remove("listbox-button__option--active")},ie=e=>{const t=ee.current,s=ne(e);if(t.scrollHeight>t.clientHeight){const me=t.clientHeight+t.scrollTop,M=s.offsetTop+s.offsetHeight;M>me?t.scrollTop=M-t.clientHeight:s.offsetTop<t.scrollTop&&(t.scrollTop=s.offsetTop)}},P=e=>{le(o===void 0||e===-1?0:e),ce(o===void 0||o===-1?0:o),ie(e),I(e),f(c[e])},F=e=>setTimeout(()=>{var t;return(t=i==null?void 0:i.current)===null||t===void 0?void 0:t.focus(e)},0),re=()=>{se(),F({preventScroll:!0})},ue=e=>{switch(e.key){case"Escape":r();break;case"Enter":F();break}},pe=e=>{switch(e.key){case" ":case"PageUp":case"PageDown":case"Home":case"End":e.preventDefault();break;case"Down":case"ArrowDown":e.preventDefault(),o!==l.length-1&&P(o<l.length-1?o+1:0);break;case"Up":case"ArrowUp":e.preventDefault(),o!==0&&P(o>0?o-1:l.length-1);break;case"Enter":r(),setTimeout(()=>f(c[o])),setTimeout(()=>w.current.focus(),0),L(e,{index:o,selected:[String(q(o))],wasClicked:H});break;case"Esc":case"Escape":ae();break}},B=l.map((e,t)=>n.cloneElement(e,{index:t,key:t,selected:a&&e.props.value===a.props.value,id:e.props.id||`listbox_btn_${e.props.value}_${t}`,onClick:s=>j(s,t),innerRef:s=>{s?C.current.set(t,s):C.current.delete(t)}})),be=N("listbox-button",O,{"listbox-button--fluid":y}),de=N("btn",{"btn--form":!E,"btn--borderless":E,"btn--floating-label":_&&a}),K=d&&"expand-btn-text",fe=n.createElement(n.Fragment,null,_&&n.createElement("span",{className:"btn__floating-label"},_),S&&n.createElement("span",{className:"btn__label"},S),n.createElement("span",{className:"btn__text",id:K},(a==null?void 0:a.props.children)||W));return n.createElement("span",{className:be},n.createElement("button",Object.assign({},J,{onFocus:()=>Y(!0),type:"button",className:de,"aria-expanded":!!m,"aria-haspopup":"listbox","aria-labelledby":d&&`${d} ${K}`,onClick:re,onMouseDown:e=>e.preventDefault(),onKeyUp:ue,ref:h.setHost}),n.createElement("span",{className:"btn__cell"},fe,n.createElement($.EbayIcon,{name:"chevronDown12"}))),(m||X)&&n.createElement("div",{className:"listbox-button__listbox",ref:h.setOverlay,style:Object.assign(Object.assign({},Z),{maxHeight:k})},n.createElement("div",{className:"listbox-button__options",role:"listbox",tabIndex:m?0:-1,ref:i,"aria-activedescendant":(p=B[o])===null||p===void 0?void 0:p.props.id,onKeyDown:e=>pe(e),onMouseDown:e=>{e.preventDefault(),A(!0)},onBlur:()=>{r(),setTimeout(()=>w.current.focus(),0)}},B)),n.createElement("select",{hidden:!0,className:"listbox-button__native",name:x,onChange:e=>j(e,te(e.target.value)),value:a?a==null?void 0:a.props.value:""},B.map((e,t)=>n.createElement("option",{value:e.props.value,key:t}))))};exports.EbayListboxButton=ge;exports.EbayListboxButtonOption=V;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../menu-DmmYhPJU.js"),s=require("../tslib.es6-C4EgNkz1.js"),n=require("react"),u=require("classnames"),c=e=>{var{className:r}=e,t=s.__rest(e,["className"]);return n.createElement("hr",Object.assign({},t,{className:u(r,"menu__separator")}))};exports.EbayMenu=a.EbayMenu;exports.EbayMenuItem=a.EbayMenuItem;exports.EbayMenuSeparator=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../menu-mTGSTnD8.js"),s=require("../tslib.es6-C4EgNkz1.js"),n=require("react"),u=require("classnames"),c=e=>{var{className:r}=e,t=s.__rest(e,["className"]);return n.createElement("hr",Object.assign({},t,{className:u(r,"menu__separator")}))};exports.EbayMenu=a.EbayMenu;exports.EbayMenuItem=a.EbayMenuItem;exports.EbayMenuSeparator=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../menu-button-label-DFjHo8Lr.js"),t=require("../menu-DmmYhPJU.js");require("react");require("classnames");exports.EbayMenuButton=e.EbayMenuButton;exports.EbayMenuButtonLabel=e.EbayMenuButtonLabel;exports.EbayMenuButtonSeparator=e.EbayMenuButtonSeparator;exports.EbayMenuButtonItem=t.EbayMenuItem;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../menu-button-label-BsTtpKB2.js"),t=require("../menu-mTGSTnD8.js");require("react");require("classnames");exports.EbayMenuButton=e.EbayMenuButton;exports.EbayMenuButtonLabel=e.EbayMenuButtonLabel;exports.EbayMenuButtonSeparator=e.EbayMenuButtonSeparator;exports.EbayMenuButtonItem=t.EbayMenuItem;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),C=require("../notice-content-9iF4T8uB.js"),l=require("../notice-content-C0ZStfuX.js"),c=require("../icon-hO_8pLp7.js"),P=require("../utils-C9NL3q0j.js");require("classnames");const b=require("../notice-footer-G6VPjVZu.js"),h=require("../notice-cta-CKl_qBge.js"),T=t=>{var{id:a,status:n="general",children:i,a11yDismissText:s,"aria-label":u,onDismiss:y=()=>{}}=t,E=r.__rest(t,["id","status","children","a11yDismissText","aria-label","onDismiss"]);const[g,N]=e.useState(!1),o=P.findComponent(i,l.EbayNoticeContent);if(!o)throw new Error("EbayPageNotice: Please use a EbayNoticeContent that defines the content of the notice");const d=p=>{N(!0),y(p)};return g?null:e.createElement("section",Object.assign({},E,{"aria-labelledby":a||`${n}-status`,className:`page-notice ${n!=="general"?`page-notice--${n}`:""}`}),n!=="general"?e.createElement("div",{className:"page-notice__header",id:a||`${n}-status`},e.createElement(c.EbayIcon,{name:`${n}Filled16`,a11yText:u,a11yVariant:"label"})):null,e.createElement(C.NoticeContent,Object.assign({},o.props,{type:"page"})),i,s&&e.createElement(m,null,e.createElement("button",{"aria-label":s,className:"fake-link page-notice__dismiss",onClick:d},e.createElement(c.EbayIcon,{name:"close16"}))))},q=t=>{var{className:a,as:n,children:i}=t,s=r.__rest(t,["className","as","children"]);return e.createElement(b.NoticeTitle,Object.assign({},s,{className:a,as:n,type:"page"}),i)},m=({className:t,children:a})=>e.createElement(b.NoticeFooter,{className:t,type:"page"},a),f=({className:t,children:a})=>e.createElement(h.NoticeCTA,{className:t,type:"page"},a);exports.EbayNoticeContent=l.EbayNoticeContent;exports.EbayPageNotice=T;exports.EbayPageNoticeCTA=f;exports.EbayPageNoticeFooter=m;exports.EbayPageNoticeTitle=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),C=require("../notice-content-9iF4T8uB.js"),l=require("../notice-content-C0ZStfuX.js"),c=require("../icon-C-bWGO-9.js"),P=require("../utils-C9NL3q0j.js");require("classnames");const b=require("../notice-footer-G6VPjVZu.js"),h=require("../notice-cta-CKl_qBge.js"),T=t=>{var{id:a,status:n="general",children:i,a11yDismissText:s,"aria-label":u,onDismiss:y=()=>{}}=t,E=r.__rest(t,["id","status","children","a11yDismissText","aria-label","onDismiss"]);const[g,N]=e.useState(!1),o=P.findComponent(i,l.EbayNoticeContent);if(!o)throw new Error("EbayPageNotice: Please use a EbayNoticeContent that defines the content of the notice");const d=p=>{N(!0),y(p)};return g?null:e.createElement("section",Object.assign({},E,{"aria-labelledby":a||`${n}-status`,className:`page-notice ${n!=="general"?`page-notice--${n}`:""}`}),n!=="general"?e.createElement("div",{className:"page-notice__header",id:a||`${n}-status`},e.createElement(c.EbayIcon,{name:`${n}Filled16`,a11yText:u,a11yVariant:"label"})):null,e.createElement(C.NoticeContent,Object.assign({},o.props,{type:"page"})),i,s&&e.createElement(m,null,e.createElement("button",{"aria-label":s,className:"fake-link page-notice__dismiss",onClick:d},e.createElement(c.EbayIcon,{name:"close16"}))))},q=t=>{var{className:a,as:n,children:i}=t,s=r.__rest(t,["className","as","children"]);return e.createElement(b.NoticeTitle,Object.assign({},s,{className:a,as:n,type:"page"}),i)},m=({className:t,children:a})=>e.createElement(b.NoticeFooter,{className:t,type:"page"},a),f=({className:t,children:a})=>e.createElement(h.NoticeCTA,{className:t,type:"page"},a);exports.EbayNoticeContent=l.EbayNoticeContent;exports.EbayPageNotice=T;exports.EbayPageNoticeCTA=f;exports.EbayPageNoticeFooter=m;exports.EbayPageNoticeTitle=q;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("../tslib.es6-C4EgNkz1.js"),t=require("react"),K=require("../menu-button-label-BCs24-MK.js"),q=require("classnames"),ne=require("../debounce-BQsYxxOL.js"),re=require("../utils-C9NL3q0j.js"),$=require("../icon-hO_8pLp7.js"),ie=require("../forwardRef-DBQKIlPy.js");require("../array.polyfill.flat-5BAolFdk.js");const oe=1,A=9,Q=4,V=2,ae=A-V;function se(e,n,a=e,f=null){const l=f==="show-last"||f==="overflow"&&e>A,W=f==="overflow"&&e>A,o=Math.min(a,e),_=Math.max(0,n-Math.ceil((o-1)/2)),h=o<Q?n:Math.max(0,n-Math.floor((o-1)/2)),g=(l?h:_)+o,y=g>=e,p=n<=Q,w=(s,c)=>{const r=k(e,s,c);return o>2?(r[c-2]="dots",r[c-1]="hidden",r[e-1]="visible"):o>1&&(r[c-1]="dots"),r},T=(s,c)=>{if(p)return w(0,c);if(y){const m=k(e,e-ae,e);return m[0]="visible",m[1]="dots",m}const r=k(e,n-V,n+V+1);return r[0]="visible",r[1]=p?"visible":"dots",r[e-2]="dots",r[e-1]="visible",r};return y&&e<=A?k(e,e-o):l?W?T(h,g):w(h,g):k(e,_,g)}function ce(e,n,a,f="show-range"){if(e===-1)return[];const l=f==="overflow"?A:le(Math.min(a,n),oe,A);return se(a,e-1,l,f)}function le(e,n,a){return e<=n?n:e>=a?a:e}function k(e,n,a){return Array(e).fill("hidden").fill("visible",n,a)}function ue(e){if(!e)return 0;e.style.width="100vw";const n=e.offsetWidth;return e.style.width=null,n}const de=e=>{var{id:n="ebay-pagination",className:a,a11yCurrentText:f="Pagination - Current Page",a11yPreviousText:l="Previous page",a11yNextText:W="Next page",variant:o="show-range",fluid:_=!1,onPrevious:h=()=>{},onNext:g=()=>{},onSelect:y=()=>{},children:p}=e,w=Y.__rest(e,["id","className","a11yCurrentText","a11yPreviousText","a11yNextText","variant","fluid","onPrevious","onNext","onSelect","children"]);const T=t.useRef(null),s=t.useRef([]);s.current=t.Children.map(p,t.createRef);const c=re.filterBy(p,({props:i})=>i.type===void 0||i.type==="page").length,r=t.useRef(0),m=t.useRef(0),L=()=>{var i,v,b,x;const E=m.current||((v=(i=s.current[0])===null||i===void 0?void 0:i.current)===null||v===void 0?void 0:v.offsetWidth);m.current=E;const d=r.current||((x=(b=s.current[1])===null||b===void 0?void 0:b.current)===null||x===void 0?void 0:x.offsetWidth);return r.current=d,d?Math.floor((ue(T.current)-E*2)/d):0},[S,B]=t.useState([]),[I,O]=t.useState(0),R=i=>{const v=i||s.current.findIndex(E=>{var d;return((d=E.current)===null||d===void 0?void 0:d.getAttribute("aria-current"))==="page"}),b=L(),x=ce(v,b,c,o);O(v),B(["hidden",...x])};t.useEffect(()=>{const i=ne.debounce(R,16);return R(),window.addEventListener("resize",()=>i()),()=>{window.removeEventListener("resize",()=>i())}},[p]);const C=i=>{let v=0;const b=[],x=[],E=[],d=S.indexOf("dots"),G=S.lastIndexOf("dots");return t.Children.map(p,(U,N)=>{const{type:P="page",current:Z,disabled:ee,href:z,children:X}=U.props,j=S[N]==="dots",F=`${n}-item-${N}`,J=S[N]==="hidden",te={current:Z,disabled:ee,href:z,type:j&&P==="page"?"separator":P,children:j?t.createElement($.EbayIcon,{name:"overflowHorizontal24",focusable:!1}):X,pageIndex:P==="page"?v++:void 0,key:F,hide:J,onPrevious:h,onNext:g,onSelect:y,a11yPreviousText:l,a11yNextText:W,ref:s.current[N]};if((J||j)&&P==="page"){const D=t.createElement(K.EbayFakeMenuButtonItem,{key:F,href:z,onClick:H=>{z||H.preventDefault();const M=H.currentTarget;y(H,{value:(M==null?void 0:M.innerText)||"",index:v}),R(Number(M==null?void 0:M.innerText))}},X);d===G&&E.push(D),I-2>d&&N<I&&b.push(D),I+2<G&&N>I&&x.push(D)}if(i==="page"&&j&&o==="overflow"){let D=E;return d!==G&&(D=N===2?b:x),t.createElement("li",{key:F},t.createElement("span",{className:"pagination__item",role:"separator"},t.createElement(K.EbayMenuButton,{a11yText:"Menu",borderless:!0,variant:"overflow",noToggleIcon:!0},D)))}return i===P?t.cloneElement(U,te):null})},u=`${n}-pagination-heading`;return t.createElement("nav",Object.assign({},w,{role:"navigation",className:q(a,"pagination",{"pagination--fluid":_}),"aria-labelledby":u,ref:T}),t.createElement("span",{"aria-live":"polite",role:"status"},t.createElement("h2",{className:"clipped",id:u},f)),C("previous"),t.createElement("ol",{className:"pagination__items"},C("page")),C("next"))},fe=e=>{var{pageIndex:n=0,key:a,current:f,disabled:l,type:W="page",href:o,hide:_,children:h,a11yPreviousText:g="Previous page",a11yNextText:y="Next page",onSelect:p,onNext:w,onPrevious:T,className:s,style:c,forwardedRef:r}=e,m=Y.__rest(e,["pageIndex","key","current","disabled","type","href","hide","children","a11yPreviousText","a11yNextText","onSelect","onNext","onPrevious","className","style","forwardedRef"]);const L=u=>{var i;p(u,{value:((i=u.currentTarget)===null||i===void 0?void 0:i.innerText)||"",index:n})},S=u=>{u.currentTarget.getAttribute("aria-disabled")||w(u)},B=u=>{u.currentTarget.getAttribute("aria-disabled")||T(u)},I=!!o,O=I?"a":"button",R=I?"icon-link":"icon-btn",C=Object.assign(Object.assign({},c),{minWidth:"40px"});switch(W){case"previous":return t.createElement(O,Object.assign({},m,{ref:r,"aria-disabled":l?"true":void 0,"aria-label":g,href:l?void 0:o,className:q(s,R,"pagination__previous"),style:C,onClick:B}),t.createElement($.EbayIcon,{name:"arrowLeft16"}));case"next":return t.createElement(O,Object.assign({},m,{ref:r,"aria-disabled":l?"true":void 0,"aria-label":y,href:l?void 0:o,className:q(s,R,"pagination__next"),style:C,onClick:S}),t.createElement($.EbayIcon,{name:"arrowRight16"}));case"separator":return t.createElement("span",{key:a,style:c,className:q(s,"pagination__item"),ref:r,role:"separator"},h);default:return t.createElement("li",Object.assign({},m,{hidden:_}),t.createElement(O,{ref:r,"aria-current":f?"page":void 0,href:o,className:q(s,"pagination__item"),style:c,key:a,onClick:L},h))}},me=ie.withForwardRef(fe);exports.EbayPagination=de;exports.EbayPaginationItem=me;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("../tslib.es6-C4EgNkz1.js"),t=require("react"),K=require("../menu-button-label-CN_zoO9F.js"),q=require("classnames"),ne=require("../debounce-BQsYxxOL.js"),re=require("../utils-C9NL3q0j.js"),$=require("../icon-C-bWGO-9.js"),ie=require("../forwardRef-DBQKIlPy.js");require("../array.polyfill.flat-5BAolFdk.js");const oe=1,A=9,Q=4,V=2,ae=A-V;function se(e,n,a=e,f=null){const l=f==="show-last"||f==="overflow"&&e>A,W=f==="overflow"&&e>A,o=Math.min(a,e),_=Math.max(0,n-Math.ceil((o-1)/2)),h=o<Q?n:Math.max(0,n-Math.floor((o-1)/2)),g=(l?h:_)+o,y=g>=e,p=n<=Q,w=(s,c)=>{const r=k(e,s,c);return o>2?(r[c-2]="dots",r[c-1]="hidden",r[e-1]="visible"):o>1&&(r[c-1]="dots"),r},T=(s,c)=>{if(p)return w(0,c);if(y){const m=k(e,e-ae,e);return m[0]="visible",m[1]="dots",m}const r=k(e,n-V,n+V+1);return r[0]="visible",r[1]=p?"visible":"dots",r[e-2]="dots",r[e-1]="visible",r};return y&&e<=A?k(e,e-o):l?W?T(h,g):w(h,g):k(e,_,g)}function ce(e,n,a,f="show-range"){if(e===-1)return[];const l=f==="overflow"?A:le(Math.min(a,n),oe,A);return se(a,e-1,l,f)}function le(e,n,a){return e<=n?n:e>=a?a:e}function k(e,n,a){return Array(e).fill("hidden").fill("visible",n,a)}function ue(e){if(!e)return 0;e.style.width="100vw";const n=e.offsetWidth;return e.style.width=null,n}const de=e=>{var{id:n="ebay-pagination",className:a,a11yCurrentText:f="Pagination - Current Page",a11yPreviousText:l="Previous page",a11yNextText:W="Next page",variant:o="show-range",fluid:_=!1,onPrevious:h=()=>{},onNext:g=()=>{},onSelect:y=()=>{},children:p}=e,w=Y.__rest(e,["id","className","a11yCurrentText","a11yPreviousText","a11yNextText","variant","fluid","onPrevious","onNext","onSelect","children"]);const T=t.useRef(null),s=t.useRef([]);s.current=t.Children.map(p,t.createRef);const c=re.filterBy(p,({props:i})=>i.type===void 0||i.type==="page").length,r=t.useRef(0),m=t.useRef(0),L=()=>{var i,v,b,x;const E=m.current||((v=(i=s.current[0])===null||i===void 0?void 0:i.current)===null||v===void 0?void 0:v.offsetWidth);m.current=E;const d=r.current||((x=(b=s.current[1])===null||b===void 0?void 0:b.current)===null||x===void 0?void 0:x.offsetWidth);return r.current=d,d?Math.floor((ue(T.current)-E*2)/d):0},[S,B]=t.useState([]),[I,O]=t.useState(0),R=i=>{const v=i||s.current.findIndex(E=>{var d;return((d=E.current)===null||d===void 0?void 0:d.getAttribute("aria-current"))==="page"}),b=L(),x=ce(v,b,c,o);O(v),B(["hidden",...x])};t.useEffect(()=>{const i=ne.debounce(R,16);return R(),window.addEventListener("resize",()=>i()),()=>{window.removeEventListener("resize",()=>i())}},[p]);const C=i=>{let v=0;const b=[],x=[],E=[],d=S.indexOf("dots"),G=S.lastIndexOf("dots");return t.Children.map(p,(U,N)=>{const{type:P="page",current:Z,disabled:ee,href:z,children:X}=U.props,j=S[N]==="dots",F=`${n}-item-${N}`,J=S[N]==="hidden",te={current:Z,disabled:ee,href:z,type:j&&P==="page"?"separator":P,children:j?t.createElement($.EbayIcon,{name:"overflowHorizontal24",focusable:!1}):X,pageIndex:P==="page"?v++:void 0,key:F,hide:J,onPrevious:h,onNext:g,onSelect:y,a11yPreviousText:l,a11yNextText:W,ref:s.current[N]};if((J||j)&&P==="page"){const D=t.createElement(K.EbayFakeMenuButtonItem,{key:F,href:z,onClick:H=>{z||H.preventDefault();const M=H.currentTarget;y(H,{value:(M==null?void 0:M.innerText)||"",index:v}),R(Number(M==null?void 0:M.innerText))}},X);d===G&&E.push(D),I-2>d&&N<I&&b.push(D),I+2<G&&N>I&&x.push(D)}if(i==="page"&&j&&o==="overflow"){let D=E;return d!==G&&(D=N===2?b:x),t.createElement("li",{key:F},t.createElement("span",{className:"pagination__item",role:"separator"},t.createElement(K.EbayMenuButton,{a11yText:"Menu",borderless:!0,variant:"overflow",noToggleIcon:!0},D)))}return i===P?t.cloneElement(U,te):null})},u=`${n}-pagination-heading`;return t.createElement("nav",Object.assign({},w,{role:"navigation",className:q(a,"pagination",{"pagination--fluid":_}),"aria-labelledby":u,ref:T}),t.createElement("span",{"aria-live":"polite",role:"status"},t.createElement("h2",{className:"clipped",id:u},f)),C("previous"),t.createElement("ol",{className:"pagination__items"},C("page")),C("next"))},fe=e=>{var{pageIndex:n=0,key:a,current:f,disabled:l,type:W="page",href:o,hide:_,children:h,a11yPreviousText:g="Previous page",a11yNextText:y="Next page",onSelect:p,onNext:w,onPrevious:T,className:s,style:c,forwardedRef:r}=e,m=Y.__rest(e,["pageIndex","key","current","disabled","type","href","hide","children","a11yPreviousText","a11yNextText","onSelect","onNext","onPrevious","className","style","forwardedRef"]);const L=u=>{var i;p(u,{value:((i=u.currentTarget)===null||i===void 0?void 0:i.innerText)||"",index:n})},S=u=>{u.currentTarget.getAttribute("aria-disabled")||w(u)},B=u=>{u.currentTarget.getAttribute("aria-disabled")||T(u)},I=!!o,O=I?"a":"button",R=I?"icon-link":"icon-btn",C=Object.assign(Object.assign({},c),{minWidth:"40px"});switch(W){case"previous":return t.createElement(O,Object.assign({},m,{ref:r,"aria-disabled":l?"true":void 0,"aria-label":g,href:l?void 0:o,className:q(s,R,"pagination__previous"),style:C,onClick:B}),t.createElement($.EbayIcon,{name:"arrowLeft16"}));case"next":return t.createElement(O,Object.assign({},m,{ref:r,"aria-disabled":l?"true":void 0,"aria-label":y,href:l?void 0:o,className:q(s,R,"pagination__next"),style:C,onClick:S}),t.createElement($.EbayIcon,{name:"arrowRight16"}));case"separator":return t.createElement("span",{key:a,style:c,className:q(s,"pagination__item"),ref:r,role:"separator"},h);default:return t.createElement("li",Object.assign({},m,{hidden:_}),t.createElement(O,{ref:r,"aria-current":f?"page":void 0,href:o,className:q(s,"pagination__item"),style:c,key:a,onClick:L},h))}},me=ie.withForwardRef(fe);exports.EbayPagination=de;exports.EbayPaginationItem=me;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../tslib.es6-C4EgNkz1.js"),d=require("react"),t=require("classnames"),u=require("../dialog-previous-button-ns64Jg1v.js");require("../icon-button-DPIjQGta.js");const e="panel-dialog",g=o=>{var{open:i,animated:s,position:n="start",onClose:a=()=>{},className:l}=o,r=c.__rest(o,["open","animated","position","onClose","className"]);return d.createElement(u.DialogBaseWithState,Object.assign({},r,{"aria-label":"Infotip",classPrefix:e,buttonPosition:"right",onCloseBtnClick:a,onBackgroundClick:a,animated:s,className:t(l,{[`${e}--mask-fade-slow`]:s}),windowClass:t(`${e}__window--slide`,{[`${e}__window--end`]:n==="end"}),open:i}))};exports.EbayPanelDialog=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../tslib.es6-C4EgNkz1.js"),d=require("react"),t=require("classnames"),u=require("../dialog-previous-button-DR6Ujner.js");require("../icon-button-CHW6Lezn.js");const e="panel-dialog",g=o=>{var{open:i,animated:s,position:n="start",onClose:a=()=>{},className:l}=o,r=c.__rest(o,["open","animated","position","onClose","className"]);return d.createElement(u.DialogBaseWithState,Object.assign({},r,{"aria-label":"Infotip",classPrefix:e,buttonPosition:"right",onCloseBtnClick:a,onBackgroundClick:a,animated:s,className:t(l,{[`${e}--mask-fade-slow`]:s}),windowClass:t(`${e}__window--slide`,{[`${e}__window--end`]:n==="end"}),open:i}))};exports.EbayPanelDialog=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../progress-spinner-CTs1iaUV.js");exports.EbayProgressSpinner=e.EbayProgressSpinner;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../progress-spinner-BQ5Ms2Nu.js");exports.EbayProgressSpinner=e.EbayProgressSpinner;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../tslib.es6-C4EgNkz1.js"),t=require("react"),y=require("classnames"),b=require("../icon-hO_8pLp7.js"),f=e=>{var{direction:r="row",defaultState:s="active",children:a,className:p}=e,l=d.__rest(e,["direction","defaultState","children","className"]);const c=t.Children.toArray(a),o=_(c,s);return t.createElement("div",Object.assign({},l,{className:y(p,"progress-stepper",{"progress-stepper--vertical":r==="column"})}),t.createElement("div",{role:"list",className:"progress-stepper__items"},c.map((i,n)=>t.createElement(t.Fragment,{key:n},n>0&&t.createElement("hr",{className:"progress-stepper__separator",role:"presentation"}),t.cloneElement(i,Object.assign(Object.assign({state:v(n,o)},i.props),{current:o===n}))))))};function _(e,r){const s=e.findIndex(a=>a.props.current);if(s===-1)switch(r){case"complete":return e.length-1;case"upcoming":return 0}return s}function v(e,r){if(e<=r)return"complete";if(e>r)return"upcoming"}const N={complete:"stepperConfirmation24",attention:"stepperAttention24",upcoming:"stepperUpcoming24",active:"stepperConfirmation24"},h=e=>{var{current:r,state:s="complete",children:a,className:p}=e,l=d.__rest(e,["current","state","children","className"]);const c=t.Children.toArray(a),o=c.find(m=>m.type===u),i=c.filter(m=>m.type!==u),n=y(p,"progress-stepper__item",{"progress-stepper__item--attention":s==="attention"}),g=N[s],E=r?"current":s;return t.createElement("div",Object.assign({},l,{className:n,role:"listitem","aria-current":r?"step":void 0}),t.createElement("div",{className:"progress-stepper__icon"},g&&t.createElement(b.EbayIcon,{name:g,"aria-label":E})),t.createElement("div",{className:"progress-stepper__text"},o,i))},u=({as:e="h4",children:r})=>t.createElement(e,{},r);exports.EbayProgressStep=h;exports.EbayProgressStepper=f;exports.EbayProgressTitle=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../tslib.es6-C4EgNkz1.js"),t=require("react"),y=require("classnames"),b=require("../icon-C-bWGO-9.js"),f=e=>{var{direction:r="row",defaultState:s="active",children:a,className:p}=e,l=d.__rest(e,["direction","defaultState","children","className"]);const c=t.Children.toArray(a),o=_(c,s);return t.createElement("div",Object.assign({},l,{className:y(p,"progress-stepper",{"progress-stepper--vertical":r==="column"})}),t.createElement("div",{role:"list",className:"progress-stepper__items"},c.map((i,n)=>t.createElement(t.Fragment,{key:n},n>0&&t.createElement("hr",{className:"progress-stepper__separator",role:"presentation"}),t.cloneElement(i,Object.assign(Object.assign({state:v(n,o)},i.props),{current:o===n}))))))};function _(e,r){const s=e.findIndex(a=>a.props.current);if(s===-1)switch(r){case"complete":return e.length-1;case"upcoming":return 0}return s}function v(e,r){if(e<=r)return"complete";if(e>r)return"upcoming"}const N={complete:"stepperConfirmation24",attention:"stepperAttention24",upcoming:"stepperUpcoming24",active:"stepperConfirmation24"},h=e=>{var{current:r,state:s="complete",children:a,className:p}=e,l=d.__rest(e,["current","state","children","className"]);const c=t.Children.toArray(a),o=c.find(m=>m.type===u),i=c.filter(m=>m.type!==u),n=y(p,"progress-stepper__item",{"progress-stepper__item--attention":s==="attention"}),g=N[s],E=r?"current":s;return t.createElement("div",Object.assign({},l,{className:n,role:"listitem","aria-current":r?"step":void 0}),t.createElement("div",{className:"progress-stepper__icon"},g&&t.createElement(b.EbayIcon,{name:g,"aria-label":E})),t.createElement("div",{className:"progress-stepper__text"},o,i))},u=({as:e="h4",children:r})=>t.createElement(e,{},r);exports.EbayProgressStep=h;exports.EbayProgressStepper=f;exports.EbayProgressTitle=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../radio-D-YF8WXv.js");exports.EbayRadio=e.EbayRadio;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../radio-DLgEB-qH.js");exports.EbayRadio=e.EbayRadio;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../tslib.es6-C4EgNkz1.js"),t=require("react"),$=require("classnames"),E=require("../notice-content-C0ZStfuX.js"),F=require("../notice-content-9iF4T8uB.js"),d=require("../icon-hO_8pLp7.js"),j=require("../random-id-DlJj_RWH.js"),v=require("../utils-C9NL3q0j.js"),N=require("../notice-footer-G6VPjVZu.js"),O=require("../notice-cta-CKl_qBge.js"),k=n=>{var{status:e="general",children:i,className:a,"aria-label":o,"aria-roledescription":p="Notice",a11yDismissText:l,educationIcon:C,iconClass:S,prominent:h,onDismiss:f=()=>{}}=n,g=b.__rest(n,["status","children","className","aria-label","aria-roledescription","a11yDismissText","educationIcon","iconClass","prominent","onDismiss"]);const[q,T]=t.useState(!1),[m,I]=t.useState("");t.useEffect(()=>{I(j.randomId())},[]);const u=v.findComponent(i,E.EbayNoticeContent),c=e!=="general"&&e!=="none",r=e==="education";let s=null;if(c&&(r?s=C||"lightbulb24":s=`${e}Filled16`),!u)throw new Error("EbaySectionNotice: Please use a EbayNoticeContent that defines the content of the notice");const D=_=>{T(!0),f(_)};return q?null:t.createElement("section",Object.assign({},g,{className:$(a,"section-notice",{[`section-notice--${e}`]:c,"section-notice--education":r&&h,"section-notice--large-icon":r}),"aria-label":c?null:o,"aria-labelledby":c?`section-notice-${e}-${m}`:null,"aria-roledescription":p}),s&&t.createElement("div",{className:"section-notice__header",id:`section-notice-${e}-${m}`},t.createElement(d.EbayIcon,{className:S,name:s,a11yText:o,a11yVariant:"label"})),t.createElement(F.NoticeContent,Object.assign({},u.props,{type:"section"})),i,l&&t.createElement(y,null,t.createElement("button",{"aria-label":l,className:"fake-link page-notice__dismiss",onClick:D},t.createElement(d.EbayIcon,{name:"close16"}))))},x=n=>{var{className:e,as:i,children:a}=n,o=b.__rest(n,["className","as","children"]);return t.createElement(N.NoticeTitle,Object.assign({},o,{className:e,as:i,type:"section"}),a)},y=({className:n,children:e})=>t.createElement(N.NoticeFooter,{className:n,type:"section"},e),A=({className:n,children:e})=>t.createElement(O.NoticeCTA,{className:n,type:"section"},e);exports.EbayNoticeContent=E.EbayNoticeContent;exports.EbaySectionNotice=k;exports.EbaySectionNoticeCTA=A;exports.EbaySectionNoticeFooter=y;exports.EbaySectionNoticeTitle=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../tslib.es6-C4EgNkz1.js"),t=require("react"),$=require("classnames"),E=require("../notice-content-C0ZStfuX.js"),F=require("../notice-content-9iF4T8uB.js"),d=require("../icon-C-bWGO-9.js"),j=require("../random-id-DlJj_RWH.js"),v=require("../utils-C9NL3q0j.js"),N=require("../notice-footer-G6VPjVZu.js"),O=require("../notice-cta-CKl_qBge.js"),k=n=>{var{status:e="general",children:i,className:a,"aria-label":o,"aria-roledescription":p="Notice",a11yDismissText:l,educationIcon:C,iconClass:S,prominent:h,onDismiss:f=()=>{}}=n,g=b.__rest(n,["status","children","className","aria-label","aria-roledescription","a11yDismissText","educationIcon","iconClass","prominent","onDismiss"]);const[q,T]=t.useState(!1),[m,I]=t.useState("");t.useEffect(()=>{I(j.randomId())},[]);const u=v.findComponent(i,E.EbayNoticeContent),c=e!=="general"&&e!=="none",r=e==="education";let s=null;if(c&&(r?s=C||"lightbulb24":s=`${e}Filled16`),!u)throw new Error("EbaySectionNotice: Please use a EbayNoticeContent that defines the content of the notice");const D=_=>{T(!0),f(_)};return q?null:t.createElement("section",Object.assign({},g,{className:$(a,"section-notice",{[`section-notice--${e}`]:c,"section-notice--education":r&&h,"section-notice--large-icon":r}),"aria-label":c?null:o,"aria-labelledby":c?`section-notice-${e}-${m}`:null,"aria-roledescription":p}),s&&t.createElement("div",{className:"section-notice__header",id:`section-notice-${e}-${m}`},t.createElement(d.EbayIcon,{className:S,name:s,a11yText:o,a11yVariant:"label"})),t.createElement(F.NoticeContent,Object.assign({},u.props,{type:"section"})),i,l&&t.createElement(y,null,t.createElement("button",{"aria-label":l,className:"fake-link page-notice__dismiss",onClick:D},t.createElement(d.EbayIcon,{name:"close16"}))))},x=n=>{var{className:e,as:i,children:a}=n,o=b.__rest(n,["className","as","children"]);return t.createElement(N.NoticeTitle,Object.assign({},o,{className:e,as:i,type:"section"}),a)},y=({className:n,children:e})=>t.createElement(N.NoticeFooter,{className:n,type:"section"},e),A=({className:n,children:e})=>t.createElement(O.NoticeCTA,{className:n,type:"section"},e);exports.EbayNoticeContent=E.EbayNoticeContent;exports.EbaySectionNotice=k;exports.EbaySectionNoticeCTA=A;exports.EbaySectionNoticeFooter=y;exports.EbaySectionNoticeTitle=x;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),E=require("classnames"),b=require("../utils-C9NL3q0j.js"),g=require("../icon-hO_8pLp7.js"),p=n=>{var{selected:l,children:s,className:u}=n,i=m.__rest(n,["selected","children","className"]);const a=b.findComponent(s,g.EbayIcon),o=()=>{const d=b.excludeComponent(s,g.EbayIcon);return e.createElement("span",{className:"segmented-buttons__button-cell"},a,e.createElement("span",null,d))};return e.createElement("li",null,e.createElement("button",Object.assign({className:E("segmented-buttons__button",u),"aria-current":l||void 0},i),a?o():s))},v=n=>{var{size:l,className:s,onChange:u=()=>{},children:i}=n,a=m.__rest(n,["size","className","onChange","children"]);const o=b.filterByType(i,p),[d,_]=e.useState(o.findIndex(t=>t.props.selected)||0),y=(t,c,r)=>{_(c),u(t,{index:c,value:r})};return e.createElement("div",Object.assign({className:E("segmented-buttons",l&&`segmented-buttons--${l}`,s)},a),e.createElement("ul",null,o.map((t,c)=>{const r=t.props,{value:h}=r,N=m.__rest(r,["value"]);return e.cloneElement(t,Object.assign(Object.assign({},N),{onClick:S=>y(S,c,h),selected:c===d}))})))};exports.EbaySegmentedButton=p;exports.EbaySegmentedButtons=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),E=require("classnames"),b=require("../utils-C9NL3q0j.js"),g=require("../icon-C-bWGO-9.js"),p=n=>{var{selected:l,children:s,className:u}=n,i=m.__rest(n,["selected","children","className"]);const a=b.findComponent(s,g.EbayIcon),o=()=>{const d=b.excludeComponent(s,g.EbayIcon);return e.createElement("span",{className:"segmented-buttons__button-cell"},a,e.createElement("span",null,d))};return e.createElement("li",null,e.createElement("button",Object.assign({className:E("segmented-buttons__button",u),"aria-current":l||void 0},i),a?o():s))},v=n=>{var{size:l,className:s,onChange:u=()=>{},children:i}=n,a=m.__rest(n,["size","className","onChange","children"]);const o=b.filterByType(i,p),[d,_]=e.useState(o.findIndex(t=>t.props.selected)||0),y=(t,c,r)=>{_(c),u(t,{index:c,value:r})};return e.createElement("div",Object.assign({className:E("segmented-buttons",l&&`segmented-buttons--${l}`,s)},a),e.createElement("ul",null,o.map((t,c)=>{const r=t.props,{value:h}=r,N=m.__rest(r,["value"]);return e.cloneElement(t,Object.assign(Object.assign({},N),{onClick:S=>y(S,c,h),selected:c===d}))})))};exports.EbaySegmentedButton=p;exports.EbaySegmentedButtons=v;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../tslib.es6-C4EgNkz1.js"),n=require("react"),R=require("classnames"),V=require("../icon-hO_8pLp7.js"),j=require("../forwardRef-DBQKIlPy.js"),k=require("../utils-C9NL3q0j.js"),x=require("../hooks-B4eFIQlH.js"),d=t=>{var{children:e}=t,l=S.__rest(t,["children"]);return n.createElement("option",Object.assign({},l),e)},N=t=>typeof t<"u",z=t=>{var{value:e,defaultValue:l,className:o,borderless:u,name:i,disabled:r,onChange:f=()=>{},onBlur:p=()=>{},onFocus:h=()=>{},floatingLabel:m,forwardedRef:b,children:s,inputSize:g,invalid:v}=t,a=S.__rest(t,["value","defaultValue","className","borderless","name","disabled","onChange","onBlur","onFocus","floatingLabel","forwardedRef","children","inputSize","invalid"]);const w=v||a["aria-invalid"]==="true",[C,O]=n.useState(l),E=x.useFloatingLabel({text:m,disabled:r,size:g,invalid:w}),F=c=>{const{value:y,selectedIndex:B}=c.target;N(e)||O(y),f(c,{index:B,selected:[y]})},G=c=>{p(c)},q=c=>{h(c)},L=R("select",o,{"select--borderless":u,"select--large":g==="large"});return n.createElement(E.Container,null,n.createElement(E.Label,{htmlFor:a.id}),n.createElement("span",{className:L},n.createElement("select",Object.assign({},a,{name:i,value:N(e)?e:C,disabled:r,onChange:F,onBlur:G,onFocus:q,ref:b}),_(s)),n.createElement(V.EbayIcon,{name:"chevronDown12",height:"8",width:"8"})))},I=j.withForwardRef(z);function T(t){const e={};return t.forEach(l=>{const o=l.props;o.optgroup&&(Object.prototype.hasOwnProperty.call(e,o.optgroup)||(e[o.optgroup]=[]),e[o.optgroup].push(o))}),e}function _(t){const e=[],l=[];let o={},u=!1;const i=k.filterByType(t,d).map(r=>n.cloneElement(r,{}));if(i){o=T(i);let r;return i.forEach((f,p)=>{const{value:h,className:m,children:b,optgroup:s}=f.props;if(u=s&&e.indexOf(s)===-1,u){r=s;const v=o[r].map(a=>n.createElement(d,{key:`opt-${a.value}`,value:a.value,className:a.className},a.children));l.push(n.createElement("optgroup",{key:p,label:s},v)),e.push(s)}else s||l.push(n.createElement(d,{key:p,value:h,className:m},b))}),l}}exports.EbaySelect=I;exports.EbaySelectOption=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../tslib.es6-C4EgNkz1.js"),n=require("react"),R=require("classnames"),V=require("../icon-C-bWGO-9.js"),j=require("../forwardRef-DBQKIlPy.js"),k=require("../utils-C9NL3q0j.js"),x=require("../hooks-B4eFIQlH.js"),d=t=>{var{children:e}=t,l=S.__rest(t,["children"]);return n.createElement("option",Object.assign({},l),e)},N=t=>typeof t<"u",z=t=>{var{value:e,defaultValue:l,className:o,borderless:u,name:i,disabled:r,onChange:f=()=>{},onBlur:p=()=>{},onFocus:h=()=>{},floatingLabel:m,forwardedRef:b,children:s,inputSize:g,invalid:v}=t,a=S.__rest(t,["value","defaultValue","className","borderless","name","disabled","onChange","onBlur","onFocus","floatingLabel","forwardedRef","children","inputSize","invalid"]);const w=v||a["aria-invalid"]==="true",[C,O]=n.useState(l),E=x.useFloatingLabel({text:m,disabled:r,size:g,invalid:w}),F=c=>{const{value:y,selectedIndex:B}=c.target;N(e)||O(y),f(c,{index:B,selected:[y]})},G=c=>{p(c)},q=c=>{h(c)},L=R("select",o,{"select--borderless":u,"select--large":g==="large"});return n.createElement(E.Container,null,n.createElement(E.Label,{htmlFor:a.id}),n.createElement("span",{className:L},n.createElement("select",Object.assign({},a,{name:i,value:N(e)?e:C,disabled:r,onChange:F,onBlur:G,onFocus:q,ref:b}),_(s)),n.createElement(V.EbayIcon,{name:"chevronDown12",height:"8",width:"8"})))},I=j.withForwardRef(z);function T(t){const e={};return t.forEach(l=>{const o=l.props;o.optgroup&&(Object.prototype.hasOwnProperty.call(e,o.optgroup)||(e[o.optgroup]=[]),e[o.optgroup].push(o))}),e}function _(t){const e=[],l=[];let o={},u=!1;const i=k.filterByType(t,d).map(r=>n.cloneElement(r,{}));if(i){o=T(i);let r;return i.forEach((f,p)=>{const{value:h,className:m,children:b,optgroup:s}=f.props;if(u=s&&e.indexOf(s)===-1,u){r=s;const v=o[r].map(a=>n.createElement(d,{key:`opt-${a.value}`,value:a.value,className:a.className},a.children));l.push(n.createElement("optgroup",{key:p,label:s},v)),e.push(s)}else s||l.push(n.createElement(d,{key:p,value:h,className:m},b))}),l}}exports.EbaySelect=I;exports.EbaySelectOption=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../tslib.es6-C4EgNkz1.js"),y=require("classnames"),e=require("react"),h=require("../dialog-previous-button-ns64Jg1v.js");require("../icon-button-DPIjQGta.js");const k=require("../utils-C9NL3q0j.js"),E=n=>{var{className:l,children:c}=n,r=C.__rest(n,["className","children"]);return e.createElement("button",Object.assign({className:y(l,"fake-link")},r),c)},R=6e3,B=n=>{var{className:l,onOpen:c=()=>{},onClose:r=()=>{},layout:D,open:i,children:f,onAction:u}=n,S=C.__rest(n,["className","onOpen","onClose","layout","open","children","onAction"]);const o=e.useRef(new Set),g=e.useRef(null),[T,v]=e.useState(i),t=k.findComponent(f,E),_=k.excludeComponent(f,E),s=()=>{clearTimeout(g.current)},d=()=>{v(!1),r()},m=()=>{o.current.size===0&&(s(),g.current=setTimeout(()=>{d()},R))},q=()=>{v(!0),c(),m()},N=()=>{s(),o.current.add("focus")},O=()=>{o.current.delete("focus"),m()},A=()=>{s(),o.current.add("mouseEnter")},M=()=>{o.current.delete("mouseEnter"),m()},w=p=>{var a,b;s(),u==null||u(p),(b=(a=t==null?void 0:t.props)===null||a===void 0?void 0:a.onClick)===null||b===void 0||b.call(a,p),d()};return e.useEffect(()=>()=>{s()},[]),e.useEffect(()=>{i?q():d()},[i]),e.createElement(h.DialogBaseWithState,Object.assign({},S,{open:T,isModal:!1,baseEl:"aside",classPrefix:"snackbar-dialog",transitionElement:"root",a11yCloseText:"",buttonPosition:"hidden",className:y(l,"snackbar-dialog--transition"),windowClass:D==="column"&&"snackbar-dialog__window--column",onFocus:N,onBlur:O,onMouseEnter:A,onMouseLeave:M}),_,t?e.createElement(h.EbayDialogActions,null,e.cloneElement(t,{onClick:w})):null)};exports.EbaySnackbarDialog=B;exports.EbaySnackbarDialogAction=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../tslib.es6-C4EgNkz1.js"),y=require("classnames"),e=require("react"),h=require("../dialog-previous-button-DR6Ujner.js");require("../icon-button-CHW6Lezn.js");const k=require("../utils-C9NL3q0j.js"),E=n=>{var{className:l,children:c}=n,r=C.__rest(n,["className","children"]);return e.createElement("button",Object.assign({className:y(l,"fake-link")},r),c)},R=6e3,B=n=>{var{className:l,onOpen:c=()=>{},onClose:r=()=>{},layout:D,open:i,children:f,onAction:u}=n,S=C.__rest(n,["className","onOpen","onClose","layout","open","children","onAction"]);const o=e.useRef(new Set),g=e.useRef(null),[T,v]=e.useState(i),t=k.findComponent(f,E),_=k.excludeComponent(f,E),s=()=>{clearTimeout(g.current)},d=()=>{v(!1),r()},m=()=>{o.current.size===0&&(s(),g.current=setTimeout(()=>{d()},R))},q=()=>{v(!0),c(),m()},N=()=>{s(),o.current.add("focus")},O=()=>{o.current.delete("focus"),m()},A=()=>{s(),o.current.add("mouseEnter")},M=()=>{o.current.delete("mouseEnter"),m()},w=p=>{var a,b;s(),u==null||u(p),(b=(a=t==null?void 0:t.props)===null||a===void 0?void 0:a.onClick)===null||b===void 0||b.call(a,p),d()};return e.useEffect(()=>()=>{s()},[]),e.useEffect(()=>{i?q():d()},[i]),e.createElement(h.DialogBaseWithState,Object.assign({},S,{open:T,isModal:!1,baseEl:"aside",classPrefix:"snackbar-dialog",transitionElement:"root",a11yCloseText:"",buttonPosition:"hidden",className:y(l,"snackbar-dialog--transition"),windowClass:D==="column"&&"snackbar-dialog__window--column",onFocus:N,onBlur:O,onMouseEnter:A,onMouseLeave:M}),_,t?e.createElement(h.EbayDialogActions,null,e.cloneElement(t,{onClick:w})):null)};exports.EbaySnackbarDialog=B;exports.EbaySnackbarDialogAction=E;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../tslib.es6-C4EgNkz1.js"),n=require("react"),i=require("../utils-C9NL3q0j.js"),g=require("../button-C3RhAySI.js"),s=require("../menu-button-label-DFjHo8Lr.js"),x=require("../menu-DmmYhPJU.js");require("classnames");const q=o=>{var{a11yMenuText:u,children:a,type:l,bodyState:t,a11yButtonLoadingText:y,onCollapse:c,onExpand:d,onSelect:p=()=>{},onChange:b=()=>{}}=o,e=S.__rest(o,["a11yMenuText","children","type","bodyState","a11yButtonLoadingText","onCollapse","onExpand","onSelect","onChange"]);const r=[x.EbayMenuItem,s.EbayMenuButtonSeparator],m=i.filterBy(a,B=>!r.includes(B.type)),E=i.filterByType(a,r);return n.createElement("span",{className:"split-button"},n.createElement(g.EbayButton,Object.assign({"aria-label":t==="loading"?y:void 0},e,{ref:void 0,split:"start",bodyState:t==="expand"?void 0:t}),m),n.createElement(s.EbayMenuButton,{priority:e.priority,disabled:e.disabled,transparent:e.transparent,size:e.size,type:l,split:"end",reverse:!0,a11yText:u,onCollapse:c,onExpand:d,onSelect:p,onChange:b},E))};exports.EbaySplitButton=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../tslib.es6-C4EgNkz1.js"),n=require("react"),i=require("../utils-C9NL3q0j.js"),g=require("../button-DhwBC3vw.js"),s=require("../menu-button-label-BsTtpKB2.js"),x=require("../menu-mTGSTnD8.js");require("classnames");const q=o=>{var{a11yMenuText:u,children:a,type:l,bodyState:t,a11yButtonLoadingText:y,onCollapse:c,onExpand:d,onSelect:p=()=>{},onChange:b=()=>{}}=o,e=S.__rest(o,["a11yMenuText","children","type","bodyState","a11yButtonLoadingText","onCollapse","onExpand","onSelect","onChange"]);const r=[x.EbayMenuItem,s.EbayMenuButtonSeparator],m=i.filterBy(a,B=>!r.includes(B.type)),E=i.filterByType(a,r);return n.createElement("span",{className:"split-button"},n.createElement(g.EbayButton,Object.assign({"aria-label":t==="loading"?y:void 0},e,{ref:void 0,split:"start",bodyState:t==="expand"?void 0:t}),m),n.createElement(s.EbayMenuButton,{priority:e.priority,disabled:e.disabled,transparent:e.transparent,size:e.size,type:l,split:"end",reverse:!0,a11yText:u,onCollapse:c,onExpand:d,onSelect:p,onChange:b},E))};exports.EbaySplitButton=q;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../tslib.es6-C4EgNkz1.js"),a=require("react"),l=require("classnames"),o=require("../icon-hO_8pLp7.js"),m=require("../range-DOsPN0h5.js"),u=m.range(1,5),g=e=>{var{value:t,a11yText:r,className:s}=e,n=i.__rest(e,["value","a11yText","className"]);return a.createElement("div",Object.assign({role:"img","aria-label":r,className:l("star-rating",s),"data-stars":t},n),u.map(c=>a.createElement(o.EbayIcon,{key:c,className:"star-rating__icon",name:"starDynamic"})))};exports.EbayStarRating=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../tslib.es6-C4EgNkz1.js"),a=require("react"),l=require("classnames"),o=require("../icon-C-bWGO-9.js"),m=require("../range-DOsPN0h5.js"),u=m.range(1,5),g=e=>{var{value:t,a11yText:r,className:s}=e,n=i.__rest(e,["value","a11yText","className"]);return a.createElement("div",Object.assign({role:"img","aria-label":r,className:l("star-rating",s),"data-stars":t},n),u.map(c=>a.createElement(o.EbayIcon,{key:c,className:"star-rating__icon",name:"starDynamic"})))};exports.EbayStarRating=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../tslib.es6-C4EgNkz1.js"),t=require("react"),d=require("classnames"),k=require("../icon-hO_8pLp7.js"),q=require("../range-DOsPN0h5.js"),C=require("../random-id-DlJj_RWH.js"),D=q.range(1,5),s=r=>{let a=parseInt(r,0)||0;return a>5&&(a=0),a},I=r=>{var{value:a=0,a11yText:i,className:m,a11yStarText:l=[],disabled:c,onChange:g=()=>{},onFocus:y=()=>{},onKeyDown:v=()=>{},name:_}=r,b=h.__rest(r,["value","a11yText","className","a11yStarText","disabled","onChange","onFocus","onKeyDown","name"]);const f=C.useRandomId(),p=_||`star-rating-${f}`,[u,o]=t.useState(s(a));t.useEffect(()=>{o(s(a))},[a]);const E=e=>n=>{c||(o(s(e)),v(n,{value:e}))},N=e=>n=>{c||(o(s(e)),g(n,{value:e}))},S=e=>n=>{c||(o(s(e)),y(n,{value:e}))};return t.createElement("div",Object.assign({role:i&&"radiogroup","aria-label":i,className:d("star-rating-select",m)},b),D.map(e=>t.createElement("span",{className:"star-rating-select__radio",key:e},t.createElement("input",{"aria-label":l==null?void 0:l[e-1],className:d("star-rating-select__control",{"star-rating-select__control--filled":e<=u}),type:"radio",name:p,value:e,disabled:c,defaultChecked:u===e,onClick:N(e),onFocus:S(e),onKeyDown:E(e)}),t.createElement("span",{className:"star-rating-select__radio-icon"},t.createElement(k.EbayIcon,{className:"star-rating__icon",name:"starDynamic"})))))};exports.EbayStarRatingSelect=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../tslib.es6-C4EgNkz1.js"),t=require("react"),d=require("classnames"),k=require("../icon-C-bWGO-9.js"),q=require("../range-DOsPN0h5.js"),C=require("../random-id-DlJj_RWH.js"),D=q.range(1,5),s=r=>{let a=parseInt(r,0)||0;return a>5&&(a=0),a},I=r=>{var{value:a=0,a11yText:i,className:m,a11yStarText:l=[],disabled:c,onChange:g=()=>{},onFocus:y=()=>{},onKeyDown:v=()=>{},name:_}=r,b=h.__rest(r,["value","a11yText","className","a11yStarText","disabled","onChange","onFocus","onKeyDown","name"]);const f=C.useRandomId(),p=_||`star-rating-${f}`,[u,o]=t.useState(s(a));t.useEffect(()=>{o(s(a))},[a]);const E=e=>n=>{c||(o(s(e)),v(n,{value:e}))},N=e=>n=>{c||(o(s(e)),g(n,{value:e}))},S=e=>n=>{c||(o(s(e)),y(n,{value:e}))};return t.createElement("div",Object.assign({role:i&&"radiogroup","aria-label":i,className:d("star-rating-select",m)},b),D.map(e=>t.createElement("span",{className:"star-rating-select__radio",key:e},t.createElement("input",{"aria-label":l==null?void 0:l[e-1],className:d("star-rating-select__control",{"star-rating-select__control--filled":e<=u}),type:"radio",name:p,value:e,disabled:c,defaultChecked:u===e,onClick:N(e),onFocus:S(e),onKeyDown:E(e)}),t.createElement("span",{className:"star-rating-select__radio-icon"},t.createElement(k.EbayIcon,{className:"star-rating__icon",name:"starDynamic"})))))};exports.EbayStarRatingSelect=I;