@ebay/ui-core-react 8.3.0 → 8.4.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 (156) hide show
  1. package/{calendar-D91b1JOr.js → calendar-C0wOay3d.js} +1 -1
  2. package/combobox-BzM04rYV.js +1 -0
  3. package/common/component-utils/forwardRef.d.ts +2 -2
  4. package/common/component-utils/forwardRef.d.ts.map +1 -1
  5. package/common/component-utils/utils.d.ts +4 -4
  6. package/common/component-utils/utils.d.ts.map +1 -1
  7. package/common/event-utils/index.d.ts.map +1 -1
  8. package/common/event-utils/types.d.ts.map +1 -1
  9. package/common/event-utils/use-roving-index.d.ts.map +1 -1
  10. package/common/floating-label-utils/hooks.d.ts.map +1 -1
  11. package/common/notice-utils/notice-content.d.ts +1 -1
  12. package/common/notice-utils/notice-content.d.ts.map +1 -1
  13. package/common/range.d.ts.map +1 -1
  14. package/common/tooltip-utils/constants.d.ts +2 -1
  15. package/common/tooltip-utils/constants.d.ts.map +1 -1
  16. package/common/tooltip-utils/tooltip-host.d.ts +3 -3
  17. package/common/tooltip-utils/tooltip-host.d.ts.map +1 -1
  18. package/common/tooltip-utils/use-tooltip.d.ts.map +1 -1
  19. package/dropdown-BGdrijmi.js +1 -0
  20. package/ebay-accordion/accordion.d.ts.map +1 -1
  21. package/ebay-accordion/index.js +2 -2
  22. package/ebay-alert-dialog/alert-dialog.d.ts.map +1 -1
  23. package/ebay-avatar/avatar-image.d.ts.map +1 -1
  24. package/ebay-breadcrumbs/breadcrumb-item.d.ts +1 -1
  25. package/ebay-breadcrumbs/breadcrumb-item.d.ts.map +1 -1
  26. package/ebay-breadcrumbs/breadcrumbs.d.ts +1 -1
  27. package/ebay-breadcrumbs/breadcrumbs.d.ts.map +1 -1
  28. package/ebay-calendar/calendar.d.ts.map +1 -1
  29. package/ebay-calendar/index.js +1 -1
  30. package/ebay-carousel/carousel-item.d.ts +3 -3
  31. package/ebay-carousel/carousel-item.d.ts.map +1 -1
  32. package/ebay-carousel/helpers.d.ts.map +1 -1
  33. package/ebay-carousel/index.js +1 -1
  34. package/ebay-chips-combobox/index.js +1 -1
  35. package/ebay-combobox/combobox.d.ts +1 -2
  36. package/ebay-combobox/combobox.d.ts.map +1 -1
  37. package/ebay-combobox/index.js +1 -1
  38. package/ebay-confirm-dialog/confirm-dialog.d.ts.map +1 -1
  39. package/ebay-date-textbox/index.js +1 -1
  40. package/ebay-dialog-base/components/dialog-header.d.ts +2 -2
  41. package/ebay-dialog-base/components/dialog-header.d.ts.map +1 -1
  42. package/ebay-dialog-base/components/dialogBase.d.ts +2 -1
  43. package/ebay-dialog-base/components/dialogBase.d.ts.map +1 -1
  44. package/ebay-dialog-base/dialog-base-with-state.d.ts.map +1 -1
  45. package/ebay-drawer-dialog-deprecated/components/drawer.d.ts.map +1 -1
  46. package/ebay-drawer-dialog-deprecated/index.js +1 -1
  47. package/ebay-education-notice/education-notice.d.ts +0 -1
  48. package/ebay-education-notice/education-notice.d.ts.map +1 -1
  49. package/ebay-education-notice/index.js +1 -1
  50. package/ebay-eek/eek-util.d.ts.map +1 -1
  51. package/ebay-fake-menu/index.js +1 -1
  52. package/ebay-fake-menu/menu-item-separator.d.ts.map +1 -1
  53. package/ebay-fake-menu/menu-item.d.ts +1 -1
  54. package/ebay-fake-menu/menu-item.d.ts.map +1 -1
  55. package/ebay-fake-menu/menu.d.ts +2 -2
  56. package/ebay-fake-menu/menu.d.ts.map +1 -1
  57. package/ebay-fake-menu-button/index.js +1 -1
  58. package/ebay-fake-menu-button/menu-button-separator.d.ts +2 -2
  59. package/ebay-fake-menu-button/menu-button-separator.d.ts.map +1 -1
  60. package/ebay-fake-menu-button/menu-button.d.ts.map +1 -1
  61. package/ebay-file-preview-card/file-preview-content.d.ts.map +1 -1
  62. package/ebay-file-preview-card/index.js +1 -1
  63. package/ebay-filter-menu/index.js +1 -1
  64. package/ebay-filter-menu-button/filter-menu-button.d.ts.map +1 -1
  65. package/ebay-filter-menu-button/index.js +1 -1
  66. package/ebay-fullscreen-dialog-deprecated/fullscreen-dialog.d.ts.map +1 -1
  67. package/ebay-icon/types.d.ts +1 -1
  68. package/ebay-icon/types.d.ts.map +1 -1
  69. package/ebay-icon-button/icon-button.d.ts +2 -5
  70. package/ebay-icon-button/icon-button.d.ts.map +1 -1
  71. package/ebay-infotip/ebay-infotip-host.d.ts +1 -1
  72. package/ebay-infotip/ebay-infotip-host.d.ts.map +1 -1
  73. package/ebay-infotip/ebay-infotip.d.ts +1 -1
  74. package/ebay-infotip/ebay-infotip.d.ts.map +1 -1
  75. package/ebay-infotip/index.js +1 -1
  76. package/ebay-lightbox-dialog/lightbox-dialog.d.ts.map +1 -1
  77. package/ebay-listbox/index.js +1 -1
  78. package/ebay-listbox/listbox.d.ts.map +1 -1
  79. package/ebay-listbox-button/index.js +2 -2
  80. package/ebay-listbox-button/listbox-button-option.d.ts +4 -4
  81. package/ebay-listbox-button/listbox-button-option.d.ts.map +1 -1
  82. package/ebay-listbox-button/listbox-button.d.ts.map +1 -1
  83. package/ebay-menu/index.js +1 -1
  84. package/ebay-menu/menu-item-separator.d.ts.map +1 -1
  85. package/ebay-menu/menu.d.ts.map +1 -1
  86. package/ebay-menu/types.d.ts +1 -1
  87. package/ebay-menu-button/index.js +1 -1
  88. package/ebay-menu-button/menu-button-separator.d.ts.map +1 -1
  89. package/ebay-menu-button/menu-button.d.ts.map +1 -1
  90. package/ebay-menu-button/types.d.ts +1 -1
  91. package/ebay-menu-button/types.d.ts.map +1 -1
  92. package/ebay-notice-base/components/ebay-notice-title/notice-title.d.ts.map +1 -1
  93. package/ebay-page-notice/index.js +1 -1
  94. package/ebay-page-notice/page-notice.d.ts.map +1 -1
  95. package/ebay-pagination/index.js +1 -1
  96. package/ebay-pagination/pagination-item.d.ts +1 -1
  97. package/ebay-pagination/pagination-item.d.ts.map +1 -1
  98. package/ebay-panel-dialog/panel-dialog.d.ts.map +1 -1
  99. package/ebay-radio/index.js +1 -1
  100. package/ebay-radio/radio.d.ts.map +1 -1
  101. package/ebay-section-notice/index.js +1 -1
  102. package/ebay-section-notice/section-notice.d.ts.map +1 -1
  103. package/ebay-select/index.js +1 -1
  104. package/ebay-skeleton/ebay-skeleton-avatar.d.ts.map +1 -1
  105. package/ebay-skeleton/ebay-skeleton-button.d.ts.map +1 -1
  106. package/ebay-skeleton/ebay-skeleton-image.d.ts.map +1 -1
  107. package/ebay-skeleton/ebay-skeleton-text.d.ts.map +1 -1
  108. package/ebay-skeleton/ebay-skeleton-textbox.d.ts.map +1 -1
  109. package/ebay-skeleton/types.d.ts +1 -0
  110. package/ebay-skeleton/types.d.ts.map +1 -1
  111. package/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.d.ts +1 -1
  112. package/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.d.ts.map +1 -1
  113. package/ebay-snackbar-dialog/components/ebay-snackbar-dialog.d.ts.map +1 -1
  114. package/ebay-snackbar-dialog/index.js +1 -1
  115. package/ebay-split-button/index.js +1 -1
  116. package/ebay-svg/index.js +1 -1
  117. package/ebay-svg/symbols.d.ts.map +1 -1
  118. package/ebay-table/index.js +1 -1
  119. package/ebay-table/table-header.d.ts.map +1 -1
  120. package/ebay-table/table-row.d.ts +2 -2
  121. package/ebay-table/table-row.d.ts.map +1 -1
  122. package/ebay-table/table.d.ts.map +1 -1
  123. package/ebay-textbox/index.js +1 -1
  124. package/ebay-textbox/postfix-icon.d.ts.map +1 -1
  125. package/ebay-textbox/prefix-icon.d.ts.map +1 -1
  126. package/ebay-textbox/textbox.d.ts.map +1 -1
  127. package/ebay-tooltip/index.js +1 -1
  128. package/ebay-tourtip/ebay-tourtip.d.ts +1 -1
  129. package/ebay-tourtip/ebay-tourtip.d.ts.map +1 -1
  130. package/ebay-tourtip/index.js +1 -1
  131. package/ebay-tri-state-checkbox/index.js +1 -1
  132. package/ebay-tri-state-checkbox/tri-state-checkbox.d.ts.map +1 -1
  133. package/ebay-video/controls.d.ts.map +1 -1
  134. package/ebay-video/index.js +1 -1
  135. package/ebay-video/reportButton.d.ts.map +1 -1
  136. package/ebay-video/types.d.ts +1 -1
  137. package/ebay-video/types.d.ts.map +1 -1
  138. package/ebay-video/video.d.ts.map +1 -1
  139. package/filter-menu-CzHlWYrY.js +1 -0
  140. package/hooks-B4eFIQlH.js +1 -0
  141. package/menu-DmmYhPJU.js +1 -0
  142. package/{menu-button-label-DYmCCAX3.js → menu-button-label-BCs24-MK.js} +1 -1
  143. package/{menu-button-label-gQ_TH2Br.js → menu-button-label-DFjHo8Lr.js} +1 -1
  144. package/menu-item-C24G4so-.js +1 -0
  145. package/package.json +12 -73
  146. package/radio-D-YF8WXv.js +1 -0
  147. package/{textbox-XeJt9mMq.js → textbox-B6zeeYue.js} +1 -1
  148. package/tri-state-checkbox-Lrf47q9t.js +1 -0
  149. package/combobox-BcAuEyib.js +0 -1
  150. package/dropdown-BLiIyhWy.js +0 -1
  151. package/filter-menu-Drtczmts.js +0 -1
  152. package/hooks-DqYMvHrS.js +0 -1
  153. package/menu-Bn7XgUPD.js +0 -1
  154. package/menu-item-Bh7_6CFn.js +0 -1
  155. package/radio-D1pzF7Mn.js +0 -1
  156. package/tri-state-checkbox-f-0yBnVG.js +0 -1
@@ -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-DYmCCAX3.js"),H=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,d=null){const c=d==="show-last"||d==="overflow"&&e>A,W=d==="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=(c?h:_)+o,y=g>=e,m=n<=Q,w=(p,s)=>{const r=k(e,p,s);return o>2?(r[s-2]="dots",r[s-1]="hidden",r[e-1]="visible"):o>1&&(r[s-1]="dots"),r},T=(p,s)=>{if(m)return w(0,s);if(y){const f=k(e,e-ae,e);return f[0]="visible",f[1]="dots",f}const r=k(e,n-V,n+V+1);return r[0]="visible",r[1]=m?"visible":"dots",r[e-2]="dots",r[e-1]="visible",r};return y&&e<=A?k(e,e-o):c?W?T(h,g):w(h,g):k(e,_,g)}function ce(e,n,a,d="show-range"){if(e===-1)return[];const c=d==="overflow"?A:le(Math.min(a,n),oe,A);return se(a,e-1,c,d)}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:d="Pagination - Current Page",a11yPreviousText:c="Previous page",a11yNextText:W="Next page",variant:o="show-range",fluid:_=!1,onPrevious:h=()=>{},onNext:g=()=>{},onSelect:y=()=>{},children:m}=e,w=Y.__rest(e,["id","className","a11yCurrentText","a11yPreviousText","a11yNextText","variant","fluid","onPrevious","onNext","onSelect","children"]);const T=t.useRef(null),p=t.useRef([]);p.current=t.Children.map(m,t.createRef);const s=re.filterBy(m,({props:i})=>i.type===void 0||i.type==="page").length,r=t.useRef(0),f=t.useRef(0),j=()=>{var i,v,b,x;const E=f.current||((v=(i=p.current[0])===null||i===void 0?void 0:i.current)===null||v===void 0?void 0:v.offsetWidth);f.current=E;const u=r.current||((x=(b=p.current[1])===null||b===void 0?void 0:b.current)===null||x===void 0?void 0:x.offsetWidth);return r.current=u,u?Math.floor((ue(T.current)-E*2)/u):0},[S,L]=t.useState([]),[I,O]=t.useState(0),R=i=>{const v=i||p.current.findIndex(E=>{var u;return((u=E.current)===null||u===void 0?void 0:u.getAttribute("aria-current"))==="page"}),b=j(),x=ce(v,b,s,o);O(v),L(["hidden",...x])};t.useEffect(()=>{const i=ne.debounce(R,16);return R(),window.addEventListener("resize",()=>i()),()=>{window.removeEventListener("resize",()=>i())}},[m]);const C=i=>{let v=0;const b=[],x=[],E=[],u=S.indexOf("dots"),B=S.lastIndexOf("dots");return t.Children.map(m,(U,N)=>{const{type:P="page",current:Z,disabled:ee,href:G,children:X}=U.props,q=S[N]==="dots",z=`${n}-item-${N}`,J=S[N]==="hidden",te={current:Z,disabled:ee,href:G,type:q&&P==="page"?"separator":P,children:q?t.createElement($.EbayIcon,{name:"overflowHorizontal24",focusable:!1}):X,pageIndex:P==="page"?v++:void 0,key:z,hide:J,onPrevious:h,onNext:g,onSelect:y,a11yPreviousText:c,a11yNextText:W,ref:p.current[N]};if((J||q)&&P==="page"){const D=t.createElement(K.EbayFakeMenuButtonItem,{key:z,href:G,onClick:F=>{G||F.preventDefault();const M=F.currentTarget;y(F,{value:(M==null?void 0:M.innerText)||"",index:v}),R(Number(M==null?void 0:M.innerText))}},X);u===B&&E.push(D),I-2>u&&N<I&&b.push(D),I+2<B&&N>I&&x.push(D)}if(i==="page"&&q&&o==="overflow"){let D=E;return u!==B&&(D=N===2?b:x),t.createElement("li",{key:z},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})},l=`${n}-pagination-heading`;return t.createElement("nav",Object.assign({},w,{role:"navigation",className:H(a,"pagination",{"pagination--fluid":_}),"aria-labelledby":l,ref:T}),t.createElement("span",{"aria-live":"polite",role:"status"},t.createElement("h2",{className:"clipped",id:l},d)),C("previous"),t.createElement("ol",{className:"pagination__items"},C("page")),C("next"))},fe=e=>{var{pageIndex:n=0,key:a,current:d,disabled:c,type:W="page",href:o,hide:_,children:h,a11yPreviousText:g="Previous page",a11yNextText:y="Next page",onSelect:m,onNext:w,onPrevious:T,className:p,style:s,forwardedRef:r}=e,f=Y.__rest(e,["pageIndex","key","current","disabled","type","href","hide","children","a11yPreviousText","a11yNextText","onSelect","onNext","onPrevious","className","style","forwardedRef"]);const j=l=>{var i;m(l,{value:((i=l.currentTarget)===null||i===void 0?void 0:i.innerText)||"",index:n})},S=l=>{l.currentTarget.getAttribute("aria-disabled")||w(l)},L=l=>{l.currentTarget.getAttribute("aria-disabled")||T(l)},I=!!o,O=I?"a":"button",R=I?"icon-link":"icon-btn",C=Object.assign(Object.assign({},s),{minWidth:"40px"});switch(W){case"previous":return t.createElement(O,Object.assign({},f,{ref:r,"aria-disabled":c?"true":void 0,"aria-label":g,href:c?void 0:o,className:H(R,"pagination__previous"),style:C,onClick:L}),t.createElement($.EbayIcon,{name:"arrowLeft16"}));case"next":return t.createElement(O,Object.assign({},f,{ref:r,"aria-disabled":c?"true":void 0,"aria-label":y,href:c?void 0:o,className:H(R,"pagination__next"),style:C,onClick:S}),t.createElement($.EbayIcon,{name:"arrowRight16"}));case"separator":return t.createElement("span",{key:a,style:s,className:"pagination__item",ref:r,role:"separator"},h);default:return t.createElement("li",Object.assign({},f,{hidden:_}),t.createElement(O,{ref:r,"aria-current":d?"page":void 0,href:o,className:"pagination__item",style:s,key:a,onClick:j},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-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,7 +1,7 @@
1
1
  import React, { Key, ReactNode, RefObject, StyleHTMLAttributes, ComponentProps } from 'react';
2
2
  import { EbayEventHandler } from '../common/event-utils/types';
3
3
  export type PaginationItemType = 'previous' | 'next' | 'page' | 'separator';
4
- type HtmlProps = Omit<ComponentProps<'button'>, 'type'> & ComponentProps<'a'> & ComponentProps<'li'>;
4
+ type HtmlProps = Omit<ComponentProps<'button'>, 'type' | 'onSelect'> & Omit<ComponentProps<'a'>, 'onSelect'> & Omit<ComponentProps<'li'>, 'onSelect'>;
5
5
  export type PaginationItemProps = HtmlProps & {
6
6
  pageIndex?: number;
7
7
  key?: Key;
@@ -1 +1 @@
1
- {"version":3,"file":"pagination-item.d.ts","sourceRoot":"","sources":["../../src/ebay-pagination/pagination-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAIjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAE9D,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAA;AAC3E,KAAK,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;AACpG,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D,KAAK,CAAC,EAAE,mBAAmB,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IACnE,YAAY,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IAChE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;;AAqGF,wBAAiD"}
1
+ {"version":3,"file":"pagination-item.d.ts","sourceRoot":"","sources":["../../src/ebay-pagination/pagination-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAIjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAE9D,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAA;AAC3E,KAAK,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAA;AACrJ,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D,KAAK,CAAC,EAAE,mBAAmB,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IACnE,YAAY,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IAChE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;;AAqGF,wBAAiD"}
@@ -1 +1 @@
1
- {"version":3,"file":"panel-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-panel-dialog/panel-dialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,eAAe,EAAuB,MAAM,qBAAqB,CAAA;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAInE,KAAK,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;AAE/B,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC;AAED,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,KAAK,CAsB9B,CAAA;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"panel-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-panel-dialog/panel-dialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,eAAe,EAAuB,MAAM,qBAAqB,CAAA;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAInE,KAAK,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;AAG/B,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC;AAED,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,KAAK,CAsB9B,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../radio-D1pzF7Mn.js");exports.EbayRadio=e.EbayRadio;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../radio-D-YF8WXv.js");exports.EbayRadio=e.EbayRadio;
@@ -1 +1 @@
1
- {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/ebay-radio/radio.tsx"],"names":[],"mappings":"AAAA,OAAc,EAGV,cAAc,EAAE,EAAE,EACrB,MAAM,OAAO,CAAA;AAId,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAErH,KAAK,IAAI,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/B,KAAK,cAAc,GAAG;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,sBAAsB,CAAC,gBAAgB,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IAChF,OAAO,CAAC,EAAE,qBAAqB,CAAC,gBAAgB,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9E,SAAS,CAAC,EAAE,wBAAwB,CAAC,gBAAgB,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;CACtF,CAAA;AACD,KAAK,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC,CAAA;AAE9F,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,UAAU,GAAG,cAAc,CA8D9C,CAAA;AAED,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/ebay-radio/radio.tsx"],"names":[],"mappings":"AAAA,OAAc,EAGV,cAAc,EAAE,EAAE,EACrB,MAAM,OAAO,CAAA;AAId,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAGrH,KAAK,IAAI,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/B,KAAK,cAAc,GAAG;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,sBAAsB,CAAC,gBAAgB,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IAChF,OAAO,CAAC,EAAE,qBAAqB,CAAC,gBAAgB,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9E,SAAS,CAAC,EAAE,wBAAwB,CAAC,gBAAgB,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;CACtF,CAAA;AACD,KAAK,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC,CAAA;AAE9F,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,UAAU,GAAG,cAAc,CA6D9C,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),$=require("classnames"),E=require("../notice-content-C0ZStfuX.js"),A=require("../notice-content-9iF4T8uB.js"),b=require("../icon-hO_8pLp7.js"),F=require("../random-id-DlJj_RWH.js"),N=require("../notice-footer-G6VPjVZu.js"),j=require("../notice-cta-CKl_qBge.js"),v=n=>{var{status:t="general",children:i,className:s,"aria-label":o,"aria-roledescription":C="Notice",a11yDismissText:d,educationIcon:p,iconClass:S,prominent:f,onDismiss:g=()=>{}}=n,T=y.__rest(n,["status","children","className","aria-label","aria-roledescription","a11yDismissText","educationIcon","iconClass","prominent","onDismiss"]);const[q,I]=e.useState(!1),[m,D]=e.useState("");e.useEffect(()=>{D(F.randomId())},[]);const u=e.Children.toArray(i).find(({type:l})=>l===E.EbayNoticeContent),c=t!=="general"&&t!=="none",r=t==="education";let a=null;if(c&&(r?a=p||"lightbulb24":a=`${t}Filled16`),!u)throw new Error("EbaySectionNotice: Please use a EbayNoticeContent that defines the content of the notice");const _=l=>{I(!0),g(l)};return q?null:e.createElement("section",Object.assign({},T,{className:$(s,"section-notice",{[`section-notice--${t}`]:c,"section-notice--education":r&&f,"section-notice--large-icon":r}),role:"region","aria-label":c?null:o,"aria-labelledby":c?`section-notice-${t}-${m}`:null,"aria-roledescription":C}),a&&e.createElement("div",{className:"section-notice__header",id:`section-notice-${t}-${m}`},e.createElement(b.EbayIcon,{className:S,name:a,a11yText:o,a11yVariant:"label"})),e.createElement(A.NoticeContent,Object.assign({},u.props,{type:"section"})),i,d&&e.createElement(h,null,e.createElement("button",{"aria-label":d,className:"fake-link page-notice__dismiss",onClick:_},e.createElement(b.EbayIcon,{name:"close16"}))))},O=n=>{var{className:t,as:i,children:s}=n,o=y.__rest(n,["className","as","children"]);return e.createElement(N.NoticeTitle,Object.assign({},o,{className:t,as:i,type:"section"}),s)},h=({className:n,children:t})=>e.createElement(N.NoticeFooter,{className:n,type:"section"},t),k=({className:n,children:t})=>e.createElement(j.NoticeCTA,{className:n,type:"section"},t);exports.EbayNoticeContent=E.EbayNoticeContent;exports.EbaySectionNotice=v;exports.EbaySectionNoticeCTA=k;exports.EbaySectionNoticeFooter=h;exports.EbaySectionNoticeTitle=O;
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 +1 @@
1
- {"version":3,"file":"section-notice.d.ts","sourceRoot":"","sources":["../../src/ebay-section-notice/section-notice.tsx"],"names":[],"mappings":"AAAA,OAAc,EACV,cAAc,EACd,EAAE,EAEF,oBAAoB,EAEpB,iBAAiB,EAEpB,MAAM,OAAO,CAAA;AAId,OAAO,EAAY,IAAI,EAAE,MAAM,cAAc,CAAA;AAI7C,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,GAAG,aAAa,GAAG,WAAW,CAAA;AACjH,MAAM,MAAM,KAAK,GAAG,cAAc,CAAC,SAAS,CAAC,GAAG;IAC5C,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,iBAAiB,GAAG,oBAAoB,CAAC;IACrD,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAA;AAED,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,KAAK,CA2EhC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"section-notice.d.ts","sourceRoot":"","sources":["../../src/ebay-section-notice/section-notice.tsx"],"names":[],"mappings":"AAAA,OAAc,EACV,cAAc,EACd,EAAE,EACF,oBAAoB,EACpB,iBAAiB,EAEpB,MAAM,OAAO,CAAA;AAId,OAAO,EAAY,IAAI,EAAE,MAAM,cAAc,CAAA;AAK7C,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,GAAG,aAAa,GAAG,WAAW,CAAA;AACjH,MAAM,MAAM,KAAK,GAAG,cAAc,CAAC,SAAS,CAAC,GAAG;IAC5C,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,iBAAiB,GAAG,oBAAoB,CAAC;IACrD,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAA;AAED,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAyEhC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=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-DqYMvHrS.js"),d=t=>{var{children:e}=t,l=w.__rest(t,["children"]);return n.createElement("option",Object.assign({},l),e)},S=t=>typeof t<"u",z=t=>{var{value:e,defaultValue:l,className:o,borderless:u,name:i,disabled:a,onChange:f=()=>{},onBlur:p=()=>{},onFocus:h=()=>{},floatingLabel:m,forwardedRef:b,children:r,inputSize:g,invalid:v}=t,s=w.__rest(t,["value","defaultValue","className","borderless","name","disabled","onChange","onBlur","onFocus","floatingLabel","forwardedRef","children","inputSize","invalid"]);const C=v||s["aria-invalid"]==="true",[N,O]=n.useState(l),E=x.useFloatingLabel({text:m,disabled:a,size:g,invalid:C}),F=c=>{const{value:y,selectedIndex:B}=c.target;S(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:s.id}),n.createElement("span",{className:L},n.createElement("select",Object.assign({},s,{name:i,value:S(e)?e:N,disabled:a,onChange:F,onBlur:G,onFocus:q,ref:b}),_(r)),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(a=>n.cloneElement(a,{}));if(i){o=T(i);let a;return i.forEach((f,p)=>{const{value:h,optionClassName:m,children:b,optgroup:r}=f.props;if(u=r&&e.indexOf(r)===-1,u){a=r;const v=o[a].map(s=>n.createElement(d,{key:`opt-${s.value}`,value:s.value,className:s.optionClassName},s.children));l.push(n.createElement("optgroup",{key:p,label:r},v)),e.push(r)}else r||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-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 +1 @@
1
- {"version":3,"file":"ebay-skeleton-avatar.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/ebay-skeleton-avatar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,iBAAiB,IAAI,0BAA0B,CAAC,CAAC,CAAC,CAAA;AAEhG,QAAA,MAAM,kBAAkB,8EAA6E,SAMpG,CAAA;AAED,eAAe,kBAAkB,CAAA"}
1
+ {"version":3,"file":"ebay-skeleton-avatar.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/ebay-skeleton-avatar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,iBAAiB,IAAI,0BAA0B,CAAC,CAAC,CAAC,CAAA;AAEhG,QAAA,MAAM,kBAAkB,GAAI,CAAC,SAAS,iBAAiB,GAAG,KAAK,EAAE,OAAO,uBAAuB,CAAC,CAAC,CAAC,KAAG,SAMpG,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ebay-skeleton-button.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/ebay-skeleton-button.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,iBAAiB,IAAI,0BAA0B,CAAC,CAAC,CAAC,GAAG;IAC/F,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC5B,CAAA;AAED,QAAA,MAAM,kBAAkB,8EAA6E,SAYpG,CAAA;AACD,eAAe,kBAAkB,CAAA"}
1
+ {"version":3,"file":"ebay-skeleton-button.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/ebay-skeleton-button.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,iBAAiB,IAAI,0BAA0B,CAAC,CAAC,CAAC,GAAG;IAC/F,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC5B,CAAA;AAED,QAAA,MAAM,kBAAkB,GAAI,CAAC,SAAS,iBAAiB,GAAG,KAAK,EAAE,OAAO,uBAAuB,CAAC,CAAC,CAAC,KAAG,SAYpG,CAAA;AACD,eAAe,kBAAkB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ebay-skeleton-image.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/ebay-skeleton-image.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,iBAAiB,IAAI,0BAA0B,CAAC,CAAC,CAAC,CAAA;AAE/F,QAAA,MAAM,iBAAiB,6EAA4E,SAQlG,CAAA;AAED,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"ebay-skeleton-image.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/ebay-skeleton-image.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,iBAAiB,IAAI,0BAA0B,CAAC,CAAC,CAAC,CAAA;AAE/F,QAAA,MAAM,iBAAiB,GAAI,CAAC,SAAS,iBAAiB,GAAG,KAAK,EAAE,OAAO,sBAAsB,CAAC,CAAC,CAAC,KAAG,SAQlG,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ebay-skeleton-text.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/ebay-skeleton-text.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,iBAAiB,IAAI,0BAA0B,CAAC,CAAC,CAAC,GAAG;IAC7F,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAA;AAED,QAAA,MAAM,gBAAgB,4EAA2E,SAchG,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"ebay-skeleton-text.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/ebay-skeleton-text.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,iBAAiB,IAAI,0BAA0B,CAAC,CAAC,CAAC,GAAG;IAC7F,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAA;AAED,QAAA,MAAM,gBAAgB,GAAI,CAAC,SAAS,iBAAiB,GAAG,KAAK,EAAE,OAAO,qBAAqB,CAAC,CAAC,CAAC,KAAG,SAchG,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ebay-skeleton-textbox.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/ebay-skeleton-textbox.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,iBAAiB,IAAI,0BAA0B,CAAC,CAAC,CAAC,CAAA;AAEjG,QAAA,MAAM,mBAAmB,+EAA8E,SAStG,CAAA;AAED,eAAe,mBAAmB,CAAA"}
1
+ {"version":3,"file":"ebay-skeleton-textbox.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/ebay-skeleton-textbox.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,iBAAiB,IAAI,0BAA0B,CAAC,CAAC,CAAC,CAAA;AAEjG,QAAA,MAAM,mBAAmB,GAAI,CAAC,SAAS,iBAAiB,GAAG,KAAK,EAAE,OAAO,wBAAwB,CAAC,CAAC,CAAC,KAAG,SAStG,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  export type SupportedElements = 'div' | 'span';
2
3
  export type BaseSkeletonComponentProps<T extends SupportedElements = 'div'> = {
3
4
  as?: T;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,MAAM,CAAA;AAE9C,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,iBAAiB,GAAG,KAAK,IAAI;IAC1E,EAAE,CAAC,EAAE,CAAC,CAAC;CACV,GAAG,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-skeleton/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,MAAM,CAAA;AAE9C,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,iBAAiB,GAAG,KAAK,IAAI;IAC1E,EAAE,CAAC,EAAE,CAAC,CAAC;CACV,GAAG,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import { ComponentProps, ReactElement } from 'react';
2
- export declare const EbaySnackbarDialogAction: ({ className, children, ...rest }: ComponentProps<'button'>) => ReactElement;
2
+ export declare const EbaySnackbarDialogAction: ({ className, children, ...rest }: ComponentProps<"button">) => ReactElement;
3
3
  //# sourceMappingURL=ebay-snackbar-dialog-action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ebay-snackbar-dialog-action.d.ts","sourceRoot":"","sources":["../../../src/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAE3D,eAAO,MAAM,wBAAwB,qCAIlC,eAAe,QAAQ,CAAC,KAAG,YAI7B,CAAA"}
1
+ {"version":3,"file":"ebay-snackbar-dialog-action.d.ts","sourceRoot":"","sources":["../../../src/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAE3D,eAAO,MAAM,wBAAwB,GAAI,kCAItC,cAAc,CAAC,QAAQ,CAAC,KAAG,YAI7B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ebay-snackbar-dialog.d.ts","sourceRoot":"","sources":["../../../src/ebay-snackbar-dialog/components/ebay-snackbar-dialog.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,YAAY,EAA+B,MAAM,OAAO,CAAA;AACjH,OAAO,EAAE,eAAe,EAA0C,MAAM,wBAAwB,CAAA;AAGhG,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,eAAe,CAAC,GAAG;IACxF,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,oBAAoB,CAAC;CAC1E,CAAA;AAID,eAAO,MAAM,kBAAkB,8EAS5B,uBAAuB,KAAG,YA4G5B,CAAA"}
1
+ {"version":3,"file":"ebay-snackbar-dialog.d.ts","sourceRoot":"","sources":["../../../src/ebay-snackbar-dialog/components/ebay-snackbar-dialog.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,YAAY,EAA+B,MAAM,OAAO,CAAA;AACjH,OAAO,EAAE,eAAe,EAA0C,MAAM,wBAAwB,CAAA;AAIhG,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,eAAe,CAAC,GAAG;IACxF,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,oBAAoB,CAAC;CAC1E,CAAA;AAID,eAAO,MAAM,kBAAkB,GAAI,2EAShC,uBAAuB,KAAG,YA2G5B,CAAA"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../tslib.es6-C4EgNkz1.js"),k=require("classnames"),e=require("react"),h=require("../dialog-previous-button-ns64Jg1v.js");require("../icon-button-DPIjQGta.js");const f=o=>{var{className:c,children:r}=o,i=p.__rest(o,["className","children"]);return e.createElement("button",Object.assign({className:k(c,"fake-link")},i),r)},R=6e3,B=o=>{var{className:c,onOpen:r=()=>{},onClose:i=()=>{},layout:C,open:u,children:D,onAction:d}=o,S=p.__rest(o,["className","onOpen","onClose","layout","open","children","onAction"]);const t=e.useRef(new Set),g=e.useRef(),[A,v]=e.useState(u),y=e.Children.toArray(D),s=y.find(n=>n.type===f),T=y.filter(n=>n.type!==f),a=()=>{clearTimeout(g.current)},b=()=>{v(!1),i()},m=()=>{t.current.size===0&&(a(),g.current=setTimeout(()=>{b()},R))},_=()=>{v(!0),r(),m()},N=()=>{a(),t.current.add("focus")},O=()=>{t.current.delete("focus"),m()},q=()=>{a(),t.current.add("mouseEnter")},M=()=>{t.current.delete("mouseEnter"),m()},w=n=>{var l,E;a(),d==null||d(n),(E=(l=s==null?void 0:s.props)===null||l===void 0?void 0:l.onClick)===null||E===void 0||E.call(l,n),b()};return e.useEffect(()=>()=>{a()},[]),e.useEffect(()=>{u?_():b()},[u]),e.createElement(h.DialogBaseWithState,Object.assign({},S,{open:A,isModal:!1,baseEl:"aside",classPrefix:"snackbar-dialog",transitionElement:"root",a11yCloseText:"",buttonPosition:"hidden",className:k(c,"snackbar-dialog--transition"),windowClass:C==="column"&&"snackbar-dialog__window--column",onFocus:N,onBlur:O,onMouseEnter:q,onMouseLeave:M}),T,s?e.createElement(h.EbayDialogActions,null,e.cloneElement(s,{onClick:w})):null)};exports.EbaySnackbarDialog=B;exports.EbaySnackbarDialogAction=f;
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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../tslib.es6-C4EgNkz1.js"),n=require("react"),s=require("../utils-C9NL3q0j.js"),g=require("../button-C3RhAySI.js"),i=require("../menu-button-label-gQ_TH2Br.js"),x=require("../menu-Bn7XgUPD.js");require("classnames");const q=a=>{var{a11yMenuText:u,children:o,type:l,bodyState:t,a11yButtonLoadingText:y,onCollapse:c,onExpand:p,onSelect:b=()=>{},onChange:d=()=>{},ref:T}=a,e=S.__rest(a,["a11yMenuText","children","type","bodyState","a11yButtonLoadingText","onCollapse","onExpand","onSelect","onChange","ref"]);const r=[x.EbayMenuItem,i.EbayMenuButtonSeparator],m=s.filterBy(o,B=>!r.includes(B.type)),E=s.filterByType(o,r);return n.createElement("span",{className:"split-button"},n.createElement(g.EbayButton,Object.assign({"aria-label":t==="loading"?y:void 0},e,{split:"start",bodyState:t==="expand"?void 0:t}),m),n.createElement(i.EbayMenuButton,{priority:e.priority,disabled:e.disabled,transparent:e.transparent,size:e.size,type:l,split:"end",reverse:!0,a11yText:u,onCollapse:c,onExpand:p,onSelect:b,onChange:d},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-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;