@ebay/ui-core-react 7.0.0 → 7.1.0-alpha.2

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 (366) hide show
  1. package/array.polyfill.flat-5BAolFdk.js +1 -0
  2. package/array.polyfill.flat-Bj5UhY_-.mjs +10 -0
  3. package/badge-BX5HuO-3.mjs +9 -0
  4. package/badge-CoHKfiPt.js +1 -0
  5. package/button-B06HeRsZ.mjs +63 -0
  6. package/button-o4ao46WM.js +1 -0
  7. package/calendar-CPKqwJVQ.js +1 -0
  8. package/calendar-Dq0eM9VC.mjs +216 -0
  9. package/debounce-BQsYxxOL.js +1 -0
  10. package/debounce-u81vJ6wg.mjs +9 -0
  11. package/dialog-previous-button-7ePoYWyj.js +1 -0
  12. package/dialog-previous-button-gmkm4c8J.mjs +146 -0
  13. package/drawer-BxxlJwkZ.js +1 -0
  14. package/drawer-Dcg135Bb.mjs +40 -0
  15. package/ebay-alert-dialog.js +1 -0
  16. package/ebay-alert-dialog.mjs +22 -0
  17. package/ebay-badge.js +1 -0
  18. package/ebay-badge.mjs +4 -0
  19. package/ebay-breadcrumbs.js +1 -0
  20. package/ebay-breadcrumbs.mjs +39 -0
  21. package/ebay-button.js +1 -0
  22. package/ebay-button.mjs +5 -0
  23. package/ebay-calendar.js +1 -0
  24. package/ebay-calendar.mjs +4 -0
  25. package/ebay-carousel.js +1 -0
  26. package/ebay-carousel.mjs +229 -0
  27. package/ebay-checkbox/README.md +12 -0
  28. package/ebay-checkbox.js +1 -0
  29. package/ebay-checkbox.mjs +43 -0
  30. package/ebay-confirm-dialog.js +1 -0
  31. package/ebay-confirm-dialog.mjs +24 -0
  32. package/ebay-cta-button.js +1 -0
  33. package/ebay-cta-button.mjs +20 -0
  34. package/ebay-date-textbox.js +1 -0
  35. package/ebay-date-textbox.mjs +74 -0
  36. package/ebay-dialog-base.js +1 -0
  37. package/ebay-dialog-base.mjs +9 -0
  38. package/ebay-drawer-dialog.js +1 -0
  39. package/ebay-drawer-dialog.mjs +4 -0
  40. package/ebay-eek.js +1 -0
  41. package/ebay-eek.mjs +42 -0
  42. package/ebay-fake-menu-button.js +1 -0
  43. package/ebay-fake-menu-button.mjs +7 -0
  44. package/ebay-fake-menu.js +1 -0
  45. package/ebay-fake-menu.mjs +9 -0
  46. package/ebay-fake-tabs.js +1 -0
  47. package/ebay-fake-tabs.mjs +27 -0
  48. package/ebay-field.js +1 -0
  49. package/ebay-field.mjs +19 -0
  50. package/ebay-fullscreen-dialog.js +1 -0
  51. package/ebay-fullscreen-dialog.mjs +9 -0
  52. package/ebay-icon/icon.d.ts.map +1 -1
  53. package/ebay-icon-button/README.md +2 -0
  54. package/ebay-icon-button.js +1 -0
  55. package/ebay-icon-button.mjs +4 -0
  56. package/ebay-icon.js +1 -0
  57. package/ebay-icon.mjs +4 -0
  58. package/ebay-infotip.js +1 -0
  59. package/ebay-infotip.mjs +59 -0
  60. package/ebay-inline-notice.js +1 -0
  61. package/ebay-inline-notice.mjs +31 -0
  62. package/ebay-lightbox-dialog.js +1 -0
  63. package/ebay-lightbox-dialog.mjs +11 -0
  64. package/ebay-listbox-button.js +2 -0
  65. package/ebay-listbox-button.mjs +170 -0
  66. package/ebay-menu/menu.d.ts +1 -1
  67. package/ebay-menu/menu.d.ts.map +1 -1
  68. package/ebay-menu-button.js +1 -0
  69. package/ebay-menu-button.mjs +82 -0
  70. package/ebay-menu.js +1 -0
  71. package/ebay-menu.mjs +9 -0
  72. package/ebay-notice-base.js +1 -0
  73. package/ebay-notice-base.mjs +7 -0
  74. package/ebay-page-notice.js +1 -0
  75. package/ebay-page-notice.mjs +42 -0
  76. package/ebay-pagination.js +1 -0
  77. package/ebay-pagination.mjs +159 -0
  78. package/ebay-panel-dialog.js +1 -0
  79. package/ebay-panel-dialog.mjs +11 -0
  80. package/ebay-progress-bar.js +1 -0
  81. package/ebay-progress-bar.mjs +6 -0
  82. package/ebay-progress-spinner/progress-spinner.d.ts.map +1 -1
  83. package/ebay-progress-spinner.js +1 -0
  84. package/ebay-progress-spinner.mjs +4 -0
  85. package/ebay-progress-stepper.js +1 -0
  86. package/ebay-progress-stepper.mjs +63 -0
  87. package/ebay-radio.js +1 -0
  88. package/ebay-radio.mjs +42 -0
  89. package/ebay-section-notice.js +1 -0
  90. package/ebay-section-notice.mjs +46 -0
  91. package/ebay-section-title/index.d.ts.map +1 -1
  92. package/ebay-section-title.js +1 -0
  93. package/ebay-section-title.mjs +24 -0
  94. package/ebay-select.js +1 -0
  95. package/ebay-select.mjs +69 -0
  96. package/ebay-signal.js +1 -0
  97. package/ebay-signal.mjs +9 -0
  98. package/ebay-snackbar-dialog.js +1 -0
  99. package/ebay-snackbar-dialog.mjs +46 -0
  100. package/ebay-split-button.js +1 -0
  101. package/ebay-split-button.mjs +20 -0
  102. package/ebay-star-rating-select.js +1 -0
  103. package/ebay-star-rating-select.mjs +36 -0
  104. package/ebay-star-rating.js +1 -0
  105. package/ebay-star-rating.mjs +8 -0
  106. package/ebay-svg.js +1 -0
  107. package/ebay-svg.mjs +4753 -0
  108. package/ebay-switch.js +1 -0
  109. package/ebay-switch.mjs +25 -0
  110. package/ebay-tabs.js +1 -0
  111. package/ebay-tabs.mjs +66 -0
  112. package/ebay-textbox.js +1 -0
  113. package/ebay-textbox.mjs +8 -0
  114. package/ebay-toast-dialog.js +1 -0
  115. package/ebay-toast-dialog.mjs +9 -0
  116. package/ebay-tooltip.js +1 -0
  117. package/ebay-tooltip.mjs +39 -0
  118. package/ebay-tourtip.js +1 -0
  119. package/ebay-tourtip.mjs +43 -0
  120. package/ebay-video.js +1 -0
  121. package/ebay-video.mjs +173 -0
  122. package/hooks-Ctier7Yv.js +1 -0
  123. package/hooks-r29zhPsY.mjs +63 -0
  124. package/icon-B_a65KUD.mjs +42 -0
  125. package/icon-DK6eEQD8.js +1 -0
  126. package/icon-button-BB6GFLm7.js +1 -0
  127. package/icon-button-Dy8rjzH7.mjs +24 -0
  128. package/index-B5oC9Rl1.mjs +22 -0
  129. package/index-DbjwTbDP.js +1 -0
  130. package/label-CnrpYJ-g.js +1 -0
  131. package/label-DgOo6Mql.mjs +19 -0
  132. package/menu-CR1Dxl2m.mjs +154 -0
  133. package/menu-DZU8jEPV.js +1 -0
  134. package/menu-button-label-BcgasGA4.js +1 -0
  135. package/menu-button-label-vVnRKJRU.mjs +68 -0
  136. package/menu-item-DBi1NcrM.js +1 -0
  137. package/menu-item-jlKZ3uT4.mjs +67 -0
  138. package/notice-content-9iF4T8uB.js +1 -0
  139. package/notice-content-BVZMfcMH.mjs +4 -0
  140. package/notice-content-C0ZStfuX.js +1 -0
  141. package/notice-content-CdXVjKzD.mjs +9 -0
  142. package/notice-footer-BFa2IeY9.mjs +10 -0
  143. package/notice-footer-Cw1DMzoB.js +1 -0
  144. package/package.json +19 -8
  145. package/progress-spinner-BugUcF5c.mjs +19 -0
  146. package/progress-spinner-CDgxI8R_.js +1 -0
  147. package/range-DC7seOVT.mjs +4 -0
  148. package/range-DOsPN0h5.js +1 -0
  149. package/textbox-BxYjEAZK.mjs +100 -0
  150. package/textbox-WnB-9F4y.js +1 -0
  151. package/use-tooltip-BavqG36Z.js +1 -0
  152. package/use-tooltip-Bibsm2rU.mjs +158 -0
  153. package/utils-BipBqkOS.mjs +21 -0
  154. package/utils-C9NL3q0j.js +1 -0
  155. package/common/component-utils/array.polyfill.flat.js +0 -32
  156. package/common/component-utils/forwardRef.js +0 -37
  157. package/common/component-utils/index.js +0 -18
  158. package/common/component-utils/usePrevious.js +0 -12
  159. package/common/component-utils/utils.js +0 -26
  160. package/common/debounce.js +0 -11
  161. package/common/event-utils/index.js +0 -123
  162. package/common/event-utils/types.js +0 -14
  163. package/common/event-utils/use-key-press.js +0 -33
  164. package/common/event-utils/use-roving-index.js +0 -35
  165. package/common/floating-label-utils/hooks.js +0 -133
  166. package/common/notice-utils/notice-content.js +0 -12
  167. package/common/notice-utils/notice-cta.js +0 -23
  168. package/common/notice-utils/notice-footer.js +0 -23
  169. package/common/notice-utils/notice-title.js +0 -24
  170. package/common/random-id.js +0 -5
  171. package/common/range.js +0 -5
  172. package/common/tooltip-utils/constants.js +0 -95
  173. package/common/tooltip-utils/index.js +0 -19
  174. package/common/tooltip-utils/tooltip-close-button.js +0 -8
  175. package/common/tooltip-utils/tooltip-content.js +0 -25
  176. package/common/tooltip-utils/tooltip-footer.js +0 -9
  177. package/common/tooltip-utils/tooltip-host.js +0 -24
  178. package/common/tooltip-utils/tooltip.js +0 -60
  179. package/common/tooltip-utils/types.js +0 -2
  180. package/common/tooltip-utils/use-tooltip.js +0 -27
  181. package/ebay-alert-dialog/alert-dialog.js +0 -55
  182. package/ebay-alert-dialog/index.js +0 -8
  183. package/ebay-badge/badge.js +0 -25
  184. package/ebay-badge/index.js +0 -8
  185. package/ebay-breadcrumbs/breadcrumb-item.js +0 -27
  186. package/ebay-breadcrumbs/breadcrumbs.js +0 -64
  187. package/ebay-breadcrumbs/index.js +0 -10
  188. package/ebay-button/button-cell.js +0 -29
  189. package/ebay-button/button-expand.js +0 -13
  190. package/ebay-button/button-loading.js +0 -11
  191. package/ebay-button/button-text.js +0 -9
  192. package/ebay-button/button.js +0 -95
  193. package/ebay-button/index.js +0 -10
  194. package/ebay-button/types.js +0 -2
  195. package/ebay-calendar/calendar.js +0 -306
  196. package/ebay-calendar/date-utils.js +0 -58
  197. package/ebay-calendar/index.js +0 -8
  198. package/ebay-carousel/carousel-control-button.js +0 -24
  199. package/ebay-carousel/carousel-item.js +0 -59
  200. package/ebay-carousel/carousel-list.js +0 -81
  201. package/ebay-carousel/carousel.js +0 -109
  202. package/ebay-carousel/helpers.js +0 -123
  203. package/ebay-carousel/index.js +0 -10
  204. package/ebay-carousel/scroll-to-transition.js +0 -102
  205. package/ebay-carousel/types.js +0 -2
  206. package/ebay-checkbox/checkbox.js +0 -77
  207. package/ebay-checkbox/index.js +0 -8
  208. package/ebay-confirm-dialog/confirm-dialog.js +0 -56
  209. package/ebay-confirm-dialog/index.js +0 -8
  210. package/ebay-cta-button/cta-button.js +0 -30
  211. package/ebay-cta-button/index.js +0 -8
  212. package/ebay-date-textbox/date-textbox.js +0 -179
  213. package/ebay-date-textbox/index.js +0 -8
  214. package/ebay-dialog-base/components/animation.js +0 -96
  215. package/ebay-dialog-base/components/dialog-actions.js +0 -8
  216. package/ebay-dialog-base/components/dialog-close-button.js +0 -8
  217. package/ebay-dialog-base/components/dialog-footer.js +0 -8
  218. package/ebay-dialog-base/components/dialog-header.js +0 -22
  219. package/ebay-dialog-base/components/dialog-previous-button.js +0 -24
  220. package/ebay-dialog-base/components/dialogBase.js +0 -152
  221. package/ebay-dialog-base/dialog-base-with-state.js +0 -63
  222. package/ebay-dialog-base/index.js +0 -18
  223. package/ebay-drawer-dialog/components/drawer.js +0 -104
  224. package/ebay-drawer-dialog/index.js +0 -8
  225. package/ebay-eek/eek-rating.js +0 -23
  226. package/ebay-eek/eek-util.js +0 -34
  227. package/ebay-eek/index.js +0 -8
  228. package/ebay-fake-menu/index.js +0 -12
  229. package/ebay-fake-menu/menu-item-separator.js +0 -23
  230. package/ebay-fake-menu/menu-item.js +0 -72
  231. package/ebay-fake-menu/menu.js +0 -57
  232. package/ebay-fake-menu-button/index.js +0 -14
  233. package/ebay-fake-menu-button/menu-button-item.js +0 -5
  234. package/ebay-fake-menu-button/menu-button-label.js +0 -8
  235. package/ebay-fake-menu-button/menu-button-separator.js +0 -23
  236. package/ebay-fake-menu-button/menu-button.js +0 -105
  237. package/ebay-fake-tabs/fake-tabs.js +0 -54
  238. package/ebay-fake-tabs/index.js +0 -10
  239. package/ebay-fake-tabs/tab.js +0 -24
  240. package/ebay-field/description.js +0 -26
  241. package/ebay-field/field.js +0 -12
  242. package/ebay-field/index.js +0 -12
  243. package/ebay-field/label.js +0 -29
  244. package/ebay-field/types.js +0 -2
  245. package/ebay-fullscreen-dialog/fullscreen-dialog.js +0 -25
  246. package/ebay-fullscreen-dialog/index.js +0 -8
  247. package/ebay-icon/icon.js +0 -89
  248. package/ebay-icon/index.js +0 -8
  249. package/ebay-icon/types.js +0 -3
  250. package/ebay-icon-button/icon-button.js +0 -40
  251. package/ebay-icon-button/index.js +0 -8
  252. package/ebay-infotip/ebay-infotip-content.js +0 -12
  253. package/ebay-infotip/ebay-infotip-heading.js +0 -23
  254. package/ebay-infotip/ebay-infotip-host.js +0 -28
  255. package/ebay-infotip/ebay-infotip.js +0 -79
  256. package/ebay-infotip/index.js +0 -14
  257. package/ebay-infotip/types.js +0 -2
  258. package/ebay-inline-notice/index.js +0 -10
  259. package/ebay-inline-notice/inline-notice.js +0 -66
  260. package/ebay-inline-notice/types.js +0 -2
  261. package/ebay-lightbox-dialog/index.js +0 -8
  262. package/ebay-lightbox-dialog/lightbox-dialog.js +0 -27
  263. package/ebay-listbox-button/index.js +0 -10
  264. package/ebay-listbox-button/listbox-button-option.js +0 -27
  265. package/ebay-listbox-button/listbox-button.js +0 -252
  266. package/ebay-menu/index.js +0 -27
  267. package/ebay-menu/menu-item-separator.js +0 -23
  268. package/ebay-menu/menu-item.js +0 -67
  269. package/ebay-menu/menu.js +0 -149
  270. package/ebay-menu/types.js +0 -2
  271. package/ebay-menu-button/index.js +0 -29
  272. package/ebay-menu-button/menu-button-item.js +0 -5
  273. package/ebay-menu-button/menu-button-label.js +0 -8
  274. package/ebay-menu-button/menu-button-separator.js +0 -23
  275. package/ebay-menu-button/menu-button.js +0 -132
  276. package/ebay-menu-button/types.js +0 -2
  277. package/ebay-notice-base/components/ebay-notice-content/index.js +0 -8
  278. package/ebay-notice-base/components/ebay-notice-content/notice-content.js +0 -4
  279. package/ebay-notice-base/components/ebay-notice-title/index.js +0 -8
  280. package/ebay-notice-base/components/ebay-notice-title/notice-title.js +0 -8
  281. package/ebay-notice-base/index.js +0 -7
  282. package/ebay-page-notice/index.js +0 -16
  283. package/ebay-page-notice/page-notice-cta.js +0 -9
  284. package/ebay-page-notice/page-notice-footer.js +0 -9
  285. package/ebay-page-notice/page-notice-title.js +0 -23
  286. package/ebay-page-notice/page-notice.js +0 -66
  287. package/ebay-pagination/const.js +0 -8
  288. package/ebay-pagination/helpers.js +0 -92
  289. package/ebay-pagination/index.js +0 -10
  290. package/ebay-pagination/pagination-item.js +0 -55
  291. package/ebay-pagination/pagination.js +0 -146
  292. package/ebay-pagination/types.js +0 -2
  293. package/ebay-panel-dialog/index.js +0 -8
  294. package/ebay-panel-dialog/panel-dialog.js +0 -27
  295. package/ebay-progress-bar/index.js +0 -8
  296. package/ebay-progress-bar/progress-bar.js +0 -23
  297. package/ebay-progress-spinner/index.js +0 -8
  298. package/ebay-progress-spinner/progress-spinner.js +0 -30
  299. package/ebay-progress-stepper/ebay-progress-step.js +0 -64
  300. package/ebay-progress-stepper/ebay-progress-stepper.js +0 -70
  301. package/ebay-progress-stepper/ebay-progress-title.js +0 -5
  302. package/ebay-progress-stepper/index.js +0 -12
  303. package/ebay-progress-stepper/types.js +0 -2
  304. package/ebay-radio/index.js +0 -8
  305. package/ebay-radio/radio.js +0 -71
  306. package/ebay-section-notice/index.js +0 -14
  307. package/ebay-section-notice/section-notice-footer.js +0 -9
  308. package/ebay-section-notice/section-notice-title.js +0 -23
  309. package/ebay-section-notice/section-notice.js +0 -82
  310. package/ebay-section-title/cta.js +0 -26
  311. package/ebay-section-title/index.js +0 -16
  312. package/ebay-section-title/info.js +0 -23
  313. package/ebay-section-title/overflow.js +0 -23
  314. package/ebay-section-title/section-title.js +0 -35
  315. package/ebay-section-title/subtitle.js +0 -23
  316. package/ebay-section-title/title.js +0 -23
  317. package/ebay-select/ebay-select-option.js +0 -22
  318. package/ebay-select/ebay-select.js +0 -129
  319. package/ebay-select/index.js +0 -10
  320. package/ebay-signal/index.js +0 -8
  321. package/ebay-signal/signal.js +0 -24
  322. package/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.js +0 -24
  323. package/ebay-snackbar-dialog/components/ebay-snackbar-dialog.js +0 -122
  324. package/ebay-snackbar-dialog/index.js +0 -7
  325. package/ebay-split-button/index.js +0 -23
  326. package/ebay-split-button/split-button.js +0 -30
  327. package/ebay-split-button/types.js +0 -2
  328. package/ebay-star-rating/index.js +0 -23
  329. package/ebay-star-rating/star-rating.js +0 -26
  330. package/ebay-star-rating-select/index.js +0 -23
  331. package/ebay-star-rating-select/star-rating-select.js +0 -82
  332. package/ebay-svg/index.js +0 -8
  333. package/ebay-svg/svg.js +0 -2548
  334. package/ebay-switch/ebay-switch.js +0 -61
  335. package/ebay-switch/index.js +0 -8
  336. package/ebay-tabs/index.js +0 -12
  337. package/ebay-tabs/tab-panel.js +0 -24
  338. package/ebay-tabs/tab.js +0 -24
  339. package/ebay-tabs/tabs.js +0 -90
  340. package/ebay-tabs/types.js +0 -2
  341. package/ebay-textbox/index.js +0 -16
  342. package/ebay-textbox/postfix-icon.js +0 -26
  343. package/ebay-textbox/postfix-text.js +0 -8
  344. package/ebay-textbox/prefix-icon.js +0 -23
  345. package/ebay-textbox/prefix-text.js +0 -8
  346. package/ebay-textbox/textbox.js +0 -147
  347. package/ebay-textbox/types.js +0 -2
  348. package/ebay-toast-dialog/components/toast.js +0 -26
  349. package/ebay-toast-dialog/index.js +0 -8
  350. package/ebay-tooltip/ebay-tooltip-content.js +0 -8
  351. package/ebay-tooltip/ebay-tooltip-host.js +0 -8
  352. package/ebay-tooltip/ebay-tooltip.js +0 -85
  353. package/ebay-tooltip/index.js +0 -14
  354. package/ebay-tourtip/ebay-tourtip-content.js +0 -8
  355. package/ebay-tourtip/ebay-tourtip-footer.js +0 -10
  356. package/ebay-tourtip/ebay-tourtip-heading.js +0 -24
  357. package/ebay-tourtip/ebay-tourtip-host.js +0 -8
  358. package/ebay-tourtip/ebay-tourtip.js +0 -70
  359. package/ebay-tourtip/index.js +0 -18
  360. package/ebay-video/const.js +0 -19
  361. package/ebay-video/controls.js +0 -40
  362. package/ebay-video/index.js +0 -25
  363. package/ebay-video/reportButton.js +0 -12
  364. package/ebay-video/source.js +0 -22
  365. package/ebay-video/types.js +0 -2
  366. package/ebay-video/video.js +0 -210
package/ebay-switch.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),b=require("classnames"),o=s=>typeof s<"u",w=({id:s,value:i,name:r,className:u,checked:e,defaultChecked:h=!1,onChange:d=()=>{},...m})=>{const[a,c]=t.useState(h);t.useEffect(()=>{c(!!e)},[e]);const p=n=>{const{value:f="",checked:l=!1}=n.target||{};d(n,{value:f,checked:l}),c(l)};return t.createElement("span",{className:"switch"},t.createElement("input",{...m,className:b("switch__control",u),id:s,role:"switch",type:"checkbox",value:i,"aria-checked":o(e)?e:a,checked:o(e)?e:a,name:r,onChange:p}),t.createElement("span",{className:"switch__button"}))};exports.EbaySwitch=w;
@@ -0,0 +1,25 @@
1
+ import a, { useState as C, useEffect as w } from "react";
2
+ import E from "classnames";
3
+ const l = (t) => typeof t < "u", b = ({ id: t, value: r, name: i, className: h, checked: e, defaultChecked: m = !1, onChange: u = () => {
4
+ }, ...p }) => {
5
+ const [s, c] = C(m);
6
+ w(() => {
7
+ c(!!e);
8
+ }, [e]);
9
+ const f = (n) => {
10
+ const { value: d = "", checked: o = !1 } = n.target || {};
11
+ u(n, {
12
+ value: d,
13
+ checked: o
14
+ }), c(o);
15
+ };
16
+ return a.createElement(
17
+ "span",
18
+ { className: "switch" },
19
+ a.createElement("input", { ...p, className: E("switch__control", h), id: t, role: "switch", type: "checkbox", value: r, "aria-checked": l(e) ? e : s, checked: l(e) ? e : s, name: i, onChange: f }),
20
+ a.createElement("span", { className: "switch__button" })
21
+ );
22
+ };
23
+ export {
24
+ b as EbaySwitch
25
+ };
package/ebay-tabs.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),i=require("classnames"),x=require("./index-DbjwTbDP.js"),E=require("./utils-C9NL3q0j.js"),_=({children:l,index:c,parentId:n,selected:o,focused:r,className:d,refCallback:m,...b})=>a.createElement("div",{...b,ref:m,"aria-controls":`${n||"default"}-tabpanel-${c}`,"aria-selected":o,className:i(d,"tabs__item"),id:`${n||"default"}-tab-${c}`,role:"tab",tabIndex:r?0:-1},a.createElement("span",null,l)),h=({children:l,index:c,parentId:n,selected:o,className:r,...d})=>a.createElement("div",{...d,"aria-labelledby":`default-tab-${c}`,className:i(r,"tabs__panel"),id:`${n||"default"}-tabpanel-${c}`,role:"tabpanel",hidden:!o},a.createElement("div",{className:"tabs__cell"},l)),D=({id:l,className:c,index:n=0,size:o="medium",activation:r="auto",onSelect:d=()=>{},onTabSelect:m=()=>{},children:b})=>{const I=[],[f,N]=a.useState(n),[p,T]=a.useState(n),u=e=>{d({selectedIndex:e}),m(e),N(e)},w=(e,t)=>{x.handleActionKeydown(e,()=>{e.preventDefault(),r==="manual"&&u(t)}),x.handleLeftRightArrowsKeydown(e,()=>{var g;e.preventDefault();const s=E.filterByType(b,_).length,q=["Left","ArrowLeft"].includes(e.key)?-1:1,y=((p===void 0?f:p)+s+q)%s;T(y),(g=I[y])==null||g.focus(),r!=="manual"&&u(y)})};a.useEffect(()=>{u(n)},[n]);const S=o==="large",v=E.filterByType(b,_).map((e,t)=>a.cloneElement(e,{...e.props,refCallback:s=>{I[t]=s},index:t,parentId:l,selected:f===t,focused:p===t,onClick:()=>{u(t),T(t)},onKeyDown:s=>{w(s,t)}})),P=E.filterByType(b,h).map((e,t)=>{const s={index:t,parentId:l,selected:f===t,children:e.props.children};return a.cloneElement(e,s)});return a.createElement("div",{id:l,className:i(c,"tabs")},a.createElement("div",{className:i("tabs__items",{"tabs__items--large":S}),role:"tablist"},v),a.createElement("div",{className:"tabs__content"},P))};exports.EbayTab=_;exports.EbayTabPanel=h;exports.EbayTabs=D;
package/ebay-tabs.mjs ADDED
@@ -0,0 +1,66 @@
1
+ import c, { useState as x, useEffect as L, cloneElement as g } from "react";
2
+ import f from "classnames";
3
+ import { h as P, a as k } from "./index-B5oC9Rl1.mjs";
4
+ import { b as _ } from "./utils-BipBqkOS.mjs";
5
+ const N = ({ children: n, index: l, parentId: t, selected: r, focused: o, className: d, refCallback: u, ...m }) => c.createElement(
6
+ "div",
7
+ { ...m, ref: u, "aria-controls": `${t || "default"}-tabpanel-${l}`, "aria-selected": r, className: f(d, "tabs__item"), id: `${t || "default"}-tab-${l}`, role: "tab", tabIndex: o ? 0 : -1 },
8
+ c.createElement("span", null, n)
9
+ ), A = ({ children: n, index: l, parentId: t, selected: r, className: o, ...d }) => c.createElement(
10
+ "div",
11
+ { ...d, "aria-labelledby": `default-tab-${l}`, className: f(o, "tabs__panel"), id: `${t || "default"}-tabpanel-${l}`, role: "tabpanel", hidden: !r },
12
+ c.createElement("div", { className: "tabs__cell" }, n)
13
+ ), H = ({ id: n, className: l, index: t = 0, size: r = "medium", activation: o = "auto", onSelect: d = () => {
14
+ }, onTabSelect: u = () => {
15
+ }, children: m }) => {
16
+ const y = [], [p, T] = x(t), [i, I] = x(t), b = (e) => {
17
+ d({ selectedIndex: e }), u(e), T(e);
18
+ }, $ = (e, a) => {
19
+ P(e, () => {
20
+ e.preventDefault(), o === "manual" && b(a);
21
+ }), k(e, () => {
22
+ var h;
23
+ e.preventDefault();
24
+ const s = _(m, N).length, K = ["Left", "ArrowLeft"].includes(e.key) ? -1 : 1, E = ((i === void 0 ? p : i) + s + K) % s;
25
+ I(E), (h = y[E]) == null || h.focus(), o !== "manual" && b(E);
26
+ });
27
+ };
28
+ L(() => {
29
+ b(t);
30
+ }, [t]);
31
+ const w = r === "large", v = _(m, N).map((e, a) => g(e, {
32
+ ...e.props,
33
+ refCallback: (s) => {
34
+ y[a] = s;
35
+ },
36
+ index: a,
37
+ parentId: n,
38
+ selected: p === a,
39
+ focused: i === a,
40
+ onClick: () => {
41
+ b(a), I(a);
42
+ },
43
+ onKeyDown: (s) => {
44
+ $(s, a);
45
+ }
46
+ })), D = _(m, A).map((e, a) => {
47
+ const s = {
48
+ index: a,
49
+ parentId: n,
50
+ selected: p === a,
51
+ children: e.props.children
52
+ };
53
+ return g(e, s);
54
+ });
55
+ return c.createElement(
56
+ "div",
57
+ { id: n, className: f(l, "tabs") },
58
+ c.createElement("div", { className: f("tabs__items", { "tabs__items--large": w }), role: "tablist" }, v),
59
+ c.createElement("div", { className: "tabs__content" }, D)
60
+ );
61
+ };
62
+ export {
63
+ N as EbayTab,
64
+ A as EbayTabPanel,
65
+ H as EbayTabs
66
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./textbox-WnB-9F4y.js");exports.EbayTextbox=x.EbayTextbox;exports.EbayTextboxPostfixIcon=x.EbayTextboxPostfixIcon;exports.EbayTextboxPostfixText=x.EbayTextboxPostfixText;exports.EbayTextboxPrefixIcon=x.EbayTextboxPrefixIcon;exports.EbayTextboxPrefixText=x.EbayTextboxPrefixText;
@@ -0,0 +1,8 @@
1
+ import { E as b, c as o, d as e, a as t, b as s } from "./textbox-BxYjEAZK.mjs";
2
+ export {
3
+ b as EbayTextbox,
4
+ o as EbayTextboxPostfixIcon,
5
+ e as EbayTextboxPostfixText,
6
+ t as EbayTextboxPrefixIcon,
7
+ s as EbayTextboxPrefixText
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),s=require("classnames"),i=require("./dialog-previous-button-7ePoYWyj.js");require("./icon-button-BB6GFLm7.js");const r=({className:t,onClose:e=()=>{},...o})=>a.createElement(i.DialogBaseWithState,{...o,isModal:!1,baseEl:"aside",classPrefix:"toast-dialog",buttonPosition:"right",transitionElement:"root",className:s(t,"toast-dialog--transition"),onCloseBtnClick:e});exports.EbayToast=r;
@@ -0,0 +1,9 @@
1
+ import s from "react";
2
+ import i from "classnames";
3
+ import { D as e } from "./dialog-previous-button-gmkm4c8J.mjs";
4
+ import "./icon-button-Dy8rjzH7.mjs";
5
+ const c = ({ className: t, onClose: o = () => {
6
+ }, ...a }) => s.createElement(e, { ...a, isModal: !1, baseEl: "aside", classPrefix: "toast-dialog", buttonPosition: "right", transitionElement: "root", className: i(t, "toast-dialog--transition"), onCloseBtnClick: o });
7
+ export {
8
+ c as EbayToast
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),u=require("./utils-C9NL3q0j.js"),t=require("./use-tooltip-BavqG36Z.js");require("classnames");require("./icon-DK6eEQD8.js");require("./array.polyfill.flat-5BAolFdk.js");const c=()=>null,T=()=>null,g=({className:E,pointer:y,overlayStyle:f,noHover:l,onFocus:h=()=>{},onBlur:b=()=>{},onMouseEnter:d=()=>{},onMouseLeave:m=()=>{},onExpand:q,onCollapse:C,children:i,...M})=>{const{isExpanded:O,expandTooltip:s,collapseTooltip:r}=t.useTooltip({onCollapse:C,onExpand:q}),n=e.useRef(),w=o=>{d(o),l||(clearTimeout(n.current),s())},H=o=>{m(o),l||(clearTimeout(n.current),n.current=setTimeout(()=>{r()},300))},P=o=>{h(o),s()},R=o=>{b(o),r()},p=u.findComponent(i,c),a=u.findComponent(i,T);if(!a)throw new Error("EbayTooltip: Please use a EbayTooltipHost that defines the host of the tooltip");if(!p)throw new Error("EbayTooltip: Please use a EbayTooltipContent that defines the content of the tooltip");return e.createElement(t.Tooltip,{...M,className:E,type:"tooltip",isExpanded:O,onFocus:P,onBlur:R,onMouseEnter:w,onMouseLeave:H},e.createElement(t.TooltipHost,{...a.props}),e.createElement(t.TooltipContent,{...p.props,type:"tooltip",style:f,pointer:y}))};exports.Tooltip=t.Tooltip;exports.EbayTooltip=g;exports.EbayTooltipContent=c;exports.EbayTooltipHost=T;
@@ -0,0 +1,39 @@
1
+ import e, { useRef as R } from "react";
2
+ import { f as p } from "./utils-BipBqkOS.mjs";
3
+ import { u as B, T as F, a as H, b as L } from "./use-tooltip-Bibsm2rU.mjs";
4
+ import "classnames";
5
+ import "./icon-B_a65KUD.mjs";
6
+ import "./array.polyfill.flat-Bj5UhY_-.mjs";
7
+ const P = () => null, v = () => null, D = ({ className: c, pointer: u, overlayStyle: m, noHover: n, onFocus: T = () => {
8
+ }, onBlur: f = () => {
9
+ }, onMouseEnter: E = () => {
10
+ }, onMouseLeave: h = () => {
11
+ }, onExpand: y, onCollapse: d, children: s, ...b }) => {
12
+ const { isExpanded: w, expandTooltip: l, collapseTooltip: r } = B({ onCollapse: d, onExpand: y }), t = R(), C = (o) => {
13
+ E(o), n || (clearTimeout(t.current), l());
14
+ }, M = (o) => {
15
+ h(o), n || (clearTimeout(t.current), t.current = setTimeout(() => {
16
+ r();
17
+ }, 300));
18
+ }, O = (o) => {
19
+ T(o), l();
20
+ }, x = (o) => {
21
+ f(o), r();
22
+ }, a = p(s, P), i = p(s, v);
23
+ if (!i)
24
+ throw new Error("EbayTooltip: Please use a EbayTooltipHost that defines the host of the tooltip");
25
+ if (!a)
26
+ throw new Error("EbayTooltip: Please use a EbayTooltipContent that defines the content of the tooltip");
27
+ return e.createElement(
28
+ F,
29
+ { ...b, className: c, type: "tooltip", isExpanded: w, onFocus: O, onBlur: x, onMouseEnter: C, onMouseLeave: M },
30
+ e.createElement(H, { ...i.props }),
31
+ e.createElement(L, { ...a.props, type: "tooltip", style: m, pointer: u })
32
+ );
33
+ };
34
+ export {
35
+ D as EbayTooltip,
36
+ P as EbayTooltipContent,
37
+ v as EbayTooltipHost,
38
+ F as Tooltip
39
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),i=require("./utils-C9NL3q0j.js"),n=require("./use-tooltip-BavqG36Z.js"),F=require("classnames");require("./icon-DK6eEQD8.js");require("./array.polyfill.flat-5BAolFdk.js");const T=()=>null,d=()=>null,y=({index:e,children:r})=>t.createElement(t.Fragment,null,e!==void 0&&t.createElement("span",{className:"tourtip__index"},e),r),f=({as:e,children:r,className:a,...o})=>{const s=e||"h2";return t.createElement(s,{...o,className:F("tourtip__heading",a)},r)},P=({a11yCloseText:e,"aria-label":r,className:a,children:o,onCollapse:s,onExpand:b,overlayStyle:m,pointer:h,...C})=>{const p=t.useRef(),{isExpanded:u,collapseTooltip:g}=n.useTooltip({onExpand:b,onCollapse:s,initialExpanded:!0,hostRef:p}),H=t.useRef(),l=i.findComponent(o,T);if(!l)throw new Error("EbayTourtip: Please use a EbayTourtipContent that defines the content of the tourtip");const{children:q,contentProps:w}=l.props,c=i.findComponent(o,d);if(!c)throw new Error("EbayTourtip: Please use a EbayTourtipHost that defines the host of the tourtip");const R=i.findComponent(o,f),E=i.findComponent(o,y);return t.createElement(n.Tooltip,{...C,className:a,type:"tourtip",isExpanded:u,ref:H},t.createElement(n.TooltipHost,{...c.props,forwardedRef:p,"aria-label":r,"aria-expanded":u}),t.createElement(n.TooltipContent,{...w,a11yCloseText:e,onClose:g,pointer:h,showCloseButton:!0,style:m,type:"tourtip"},R,q,E&&t.createElement(n.TooltipFooter,{type:"tourtip"},E)))};exports.Tooltip=n.Tooltip;exports.EbayTourtip=P;exports.EbayTourtipContent=T;exports.EbayTourtipFooter=y;exports.EbayTourtipHeading=f;exports.EbayTourtipHost=d;
@@ -0,0 +1,43 @@
1
+ import t, { useRef as m } from "react";
2
+ import { f as n } from "./utils-BipBqkOS.mjs";
3
+ import { u as w, T as H, a as R, b as x, c as _ } from "./use-tooltip-Bibsm2rU.mjs";
4
+ import F from "classnames";
5
+ import "./icon-B_a65KUD.mjs";
6
+ import "./array.polyfill.flat-Bj5UhY_-.mjs";
7
+ const N = () => null, P = () => null, v = ({ index: o, children: r }) => t.createElement(
8
+ t.Fragment,
9
+ null,
10
+ o !== void 0 && t.createElement("span", { className: "tourtip__index" }, o),
11
+ r
12
+ ), B = ({ as: o, children: r, className: a, ...e }) => {
13
+ const s = o || "h2";
14
+ return t.createElement(s, { ...e, className: F("tourtip__heading", a) }, r);
15
+ }, G = ({ a11yCloseText: o, "aria-label": r, className: a, children: e, onCollapse: s, onExpand: E, overlayStyle: f, pointer: T, ...d }) => {
16
+ const i = m(), { isExpanded: p, collapseTooltip: h } = w({ onExpand: E, onCollapse: s, initialExpanded: !0, hostRef: i }), y = m(), l = n(e, N);
17
+ if (!l)
18
+ throw new Error("EbayTourtip: Please use a EbayTourtipContent that defines the content of the tourtip");
19
+ const { children: b, contentProps: C } = l.props, c = n(e, P);
20
+ if (!c)
21
+ throw new Error("EbayTourtip: Please use a EbayTourtipHost that defines the host of the tourtip");
22
+ const g = n(e, B), u = n(e, v);
23
+ return t.createElement(
24
+ H,
25
+ { ...d, className: a, type: "tourtip", isExpanded: p, ref: y },
26
+ t.createElement(R, { ...c.props, forwardedRef: i, "aria-label": r, "aria-expanded": p }),
27
+ t.createElement(
28
+ x,
29
+ { ...C, a11yCloseText: o, onClose: h, pointer: T, showCloseButton: !0, style: f, type: "tourtip" },
30
+ g,
31
+ b,
32
+ u && t.createElement(_, { type: "tourtip" }, u)
33
+ )
34
+ );
35
+ };
36
+ export {
37
+ G as EbayTourtip,
38
+ N as EbayTourtipContent,
39
+ v as EbayTourtipFooter,
40
+ B as EbayTourtipHeading,
41
+ P as EbayTourtipHost,
42
+ H as Tooltip
43
+ };
package/ebay-video.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";var U=Object.defineProperty;var X=(n,r,a)=>r in n?U(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a;var T=(n,r,a)=>X(n,typeof r!="symbol"?r+"":r,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),b=require("classnames"),d=require("shaka-player/dist/shaka-player.ui"),Z=require("./utils-C9NL3q0j.js"),R=require("./icon-DK6eEQD8.js"),ee=require("./progress-spinner-CDgxI8R_.js"),te=require("react-dom/client"),w=({...n})=>e.createElement("source",{...n}),ne=7e3,re=11,V={addBigPlayButton:!1,addSeekBar:!0,controlPanelElements:["play_pause","time_and_duration","spacer","mute","report","captions","fullscreen"]},ae=({callback:n,children:r})=>e.createElement("button",{className:"video-player__report-button",ref:n},e.createElement(R.EbayIcon,{name:"flag24"}),r);function oe(n=()=>{}){const r=class extends d.ui.Element{constructor(a,u,y){super(a,u);const i=document.createElement("div"),E=()=>{const m=i.firstChild;a.appendChild(m),i.remove(),this.eventManager.listen(m,"click",n)};te.createRoot(i).render(e.createElement(ae,{callback:E},y))}};return r.Factory=class{constructor(a){T(this,"reportText");this.reportText=a}create(a,u){return new r(a,u,this.reportText)}},{Report:r}}const le=({width:n,height:r,thumbnail:a,action:u,muted:y,playView:i="inline",a11yLoadText:E,a11yPlayText:m,reportText:_,volumeSlider:A,volume:x=1,hideReportButton:I,errorText:L,onVolumeChange:F=()=>{},onLoadError:M=()=>{},onPlay:z=()=>{},onReport:$=()=>{},children:j,...D})=>{const[P,v]=e.useState(),[S,H]=e.useState(),[k,W]=e.useState(),[h,C]=e.useState(),N=e.useRef(null),l=e.useRef(null),s=e.useRef(null),p=e.useRef(null),f=Z.filterByType(j,w).map(({props:t})=>t),B=t=>{v(!0),C(!0),M(t)},g=(t=0)=>{var o;!f.length||!s.current||(v(!1),s.current.load((o=f[t])==null?void 0:o.src).then(()=>{C(!1)}).catch(c=>{switch(console.error(c),c.code){case ne:return;case re:setTimeout(()=>g(t),0);break;default:{const q=f.length>t+1&&t+1;q?setTimeout(()=>g(q),0):B(c)}}}).finally(()=>{v(!0)}))};e.useEffect(()=>{const t=l.current,o=N.current;if(!(!t||!o)&&(t.volume=x,d.polyfill.installAll(),s.current=new d.Player(t),!!s.current)){if(s.current.addEventListener("error",B),s.current.addEventListener("buffering",c=>{H(c.buffering)}),p.current=new d.ui.Overlay(s.current,o,t,_),p.current.configure({addBigPlayButton:!0,controlPanelElements:[],addSeekBar:!1}),!I){const{Report:c}=oe($);d.ui.Controls.registerElement("report",new c.Factory(_))}g(),ce(o)}},[]),e.useEffect(()=>{switch(u){case"play":l.current.play();break;case"pause":l.current.pause();break}},[u]);const Y=()=>{if(!p.current)return;const t=A?{controlPanelElements:se(V.controlPanelElements)}:{};p.current.configure({...V,...t}),l.current.controls=!1},G=t=>{t.stopPropagation(),Y(),i==="fullscreen"&&l.current.requestFullscreen(),W(!0),z(t,{player:s.current})},J=()=>{l.current.play()},K=t=>{const o=t.currentTarget;F(t,{volume:Math.round((o.volume+Number.EPSILON)*100)/100,muted:o.muted})},Q=()=>{l.current.controls=!1},O={width:n?`${n}px`:void 0,height:r?`${r}px`:void 0};return e.createElement("div",{style:O,className:b("video-player",{"video-player--poster":!k})},!k&&P&&!h&&!S&&e.createElement("div",{className:"shaka-play-button-container"},e.createElement("button",{onClick:J,className:"shaka-play-button",style:{opacity:1,zIndex:999},"aria-label":m},e.createElement(R.EbayIcon,{name:"playFilled64Colored"}))),e.createElement("div",{className:"video-player__container",ref:N},e.createElement("video",{ref:l,style:O,poster:a,muted:y||!1,onPlaying:G,onPause:Q,onVolumeChange:K,...D},f.map((t,o)=>e.createElement("source",{key:o,...t})))),e.createElement("div",{className:b("video-player__overlay",{"video-player__overlay--hidden":!h})},e.createElement(R.EbayIcon,{name:"attention64"}),e.createElement("div",{className:"video-player__overlay-text"},L)),e.createElement("div",{className:b("video-player__overlay",{"video-player__overlay--hidden":P&&(h||!S)})},e.createElement(ee.EbayProgressSpinner,{size:"large","aria-label":E})))};function se(n){const r=n.length-2>0?n.length-2:n.length,a=[...n];return a.splice(r,0,"volume"),a}function ce(n){const r=n.querySelectorAll(".shaka-spinner")[0];r&&r.setAttribute("hidden","")}exports.EbayVideo=le;exports.EbayVideoSource=w;
package/ebay-video.mjs ADDED
@@ -0,0 +1,173 @@
1
+ var Z = Object.defineProperty;
2
+ var ee = (t, r, n) => r in t ? Z(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
+ var A = (t, r, n) => ee(t, typeof r != "symbol" ? r + "" : r, n);
4
+ import o, { useState as f, useRef as y, useEffect as V } from "react";
5
+ import R from "classnames";
6
+ import E, { ui as te } from "shaka-player/dist/shaka-player.ui";
7
+ import { b as re } from "./utils-BipBqkOS.mjs";
8
+ import { E as P } from "./icon-B_a65KUD.mjs";
9
+ import { E as ne } from "./progress-spinner-BugUcF5c.mjs";
10
+ import { createRoot as oe } from "react-dom/client";
11
+ const ae = ({ ...t }) => o.createElement("source", { ...t }), le = 7e3, se = 11, L = {
12
+ addBigPlayButton: !1,
13
+ addSeekBar: !0,
14
+ controlPanelElements: [
15
+ "play_pause",
16
+ "time_and_duration",
17
+ "spacer",
18
+ "mute",
19
+ "report",
20
+ "captions",
21
+ // 'quality', // uncomment this to show a gear icon for video quality control
22
+ "fullscreen"
23
+ ]
24
+ }, ce = ({ callback: t, children: r }) => o.createElement(
25
+ "button",
26
+ { className: "video-player__report-button", ref: t },
27
+ o.createElement(P, { name: "flag24" }),
28
+ r
29
+ );
30
+ function ie(t = () => {
31
+ }) {
32
+ const r = class extends te.Element {
33
+ constructor(n, i, v) {
34
+ super(n, i);
35
+ const u = document.createElement("div"), h = () => {
36
+ const d = u.firstChild;
37
+ n.appendChild(d), u.remove(), this.eventManager.listen(d, "click", t);
38
+ };
39
+ oe(u).render(o.createElement(ce, { callback: h }, v));
40
+ }
41
+ };
42
+ return r.Factory = class {
43
+ constructor(n) {
44
+ A(this, "reportText");
45
+ this.reportText = n;
46
+ }
47
+ create(n, i) {
48
+ return new r(n, i, this.reportText);
49
+ }
50
+ }, { Report: r };
51
+ }
52
+ const be = ({ width: t, height: r, thumbnail: n, action: i, muted: v, playView: u = "inline", a11yLoadText: h, a11yPlayText: d, reportText: k, volumeSlider: F, volume: I = 1, hideReportButton: q, errorText: z, onVolumeChange: M = () => {
53
+ }, onLoadError: $ = () => {
54
+ }, onPlay: D = () => {
55
+ }, onReport: H = () => {
56
+ }, children: W, ...Y }) => {
57
+ const [C, g] = f(), [N, j] = f(), [B, G] = f(), [b, S] = f(), O = y(null), l = y(null), s = y(null), m = y(null), p = re(W, ae).map(({ props: e }) => e), w = (e) => {
58
+ g(!0), S(!0), $(e);
59
+ }, _ = (e = 0) => {
60
+ var a;
61
+ !p.length || !s.current || (g(!1), s.current.load((a = p[e]) == null ? void 0 : a.src).then(() => {
62
+ S(!1);
63
+ }).catch((c) => {
64
+ switch (console.error(c), c.code) {
65
+ case le:
66
+ return;
67
+ case se:
68
+ setTimeout(() => _(e), 0);
69
+ break;
70
+ default: {
71
+ const x = p.length > e + 1 && e + 1;
72
+ x ? setTimeout(() => _(x), 0) : w(c);
73
+ }
74
+ }
75
+ }).finally(() => {
76
+ g(!0);
77
+ }));
78
+ };
79
+ V(() => {
80
+ const e = l.current, a = O.current;
81
+ if (!(!e || !a) && (e.volume = I, E.polyfill.installAll(), s.current = new E.Player(e), !!s.current)) {
82
+ if (s.current.addEventListener("error", w), s.current.addEventListener("buffering", (c) => {
83
+ j(c.buffering);
84
+ }), m.current = new E.ui.Overlay(s.current, a, e, k), m.current.configure({
85
+ addBigPlayButton: !0,
86
+ controlPanelElements: [],
87
+ addSeekBar: !1
88
+ }), !q) {
89
+ const { Report: c } = ie(H);
90
+ E.ui.Controls.registerElement("report", new c.Factory(k));
91
+ }
92
+ _(), de(a);
93
+ }
94
+ }, []), V(() => {
95
+ switch (i) {
96
+ case "play":
97
+ l.current.play();
98
+ break;
99
+ case "pause":
100
+ l.current.pause();
101
+ break;
102
+ }
103
+ }, [i]);
104
+ const J = () => {
105
+ if (!m.current)
106
+ return;
107
+ const e = F ? {
108
+ controlPanelElements: ue(L.controlPanelElements)
109
+ } : {};
110
+ m.current.configure({
111
+ ...L,
112
+ ...e
113
+ }), l.current.controls = !1;
114
+ }, K = (e) => {
115
+ e.stopPropagation(), J(), u === "fullscreen" && l.current.requestFullscreen(), G(!0), D(e, { player: s.current });
116
+ }, Q = () => {
117
+ l.current.play();
118
+ }, U = (e) => {
119
+ const a = e.currentTarget;
120
+ M(e, {
121
+ volume: Math.round((a.volume + Number.EPSILON) * 100) / 100,
122
+ muted: a.muted
123
+ });
124
+ }, X = () => {
125
+ l.current.controls = !1;
126
+ }, T = {
127
+ width: t ? `${t}px` : void 0,
128
+ height: r ? `${r}px` : void 0
129
+ };
130
+ return o.createElement(
131
+ "div",
132
+ { style: T, className: R("video-player", { "video-player--poster": !B }) },
133
+ !B && C && !b && !N && o.createElement(
134
+ "div",
135
+ { className: "shaka-play-button-container" },
136
+ o.createElement(
137
+ "button",
138
+ { onClick: Q, className: "shaka-play-button", style: { opacity: 1, zIndex: 999 }, "aria-label": d },
139
+ o.createElement(P, { name: "playFilled64Colored" })
140
+ )
141
+ ),
142
+ o.createElement(
143
+ "div",
144
+ { className: "video-player__container", ref: O },
145
+ o.createElement("video", { ref: l, style: T, poster: n, muted: v || !1, onPlaying: K, onPause: X, onVolumeChange: U, ...Y }, p.map((e, a) => o.createElement("source", { key: a, ...e })))
146
+ ),
147
+ o.createElement(
148
+ "div",
149
+ { className: R("video-player__overlay", { "video-player__overlay--hidden": !b }) },
150
+ o.createElement(P, { name: "attention64" }),
151
+ o.createElement("div", { className: "video-player__overlay-text" }, z)
152
+ ),
153
+ o.createElement(
154
+ "div",
155
+ { className: R("video-player__overlay", {
156
+ "video-player__overlay--hidden": C && (b || !N)
157
+ }) },
158
+ o.createElement(ne, { size: "large", "aria-label": h })
159
+ )
160
+ );
161
+ };
162
+ function ue(t) {
163
+ const r = t.length - 2 > 0 ? t.length - 2 : t.length, n = [...t];
164
+ return n.splice(r, 0, "volume"), n;
165
+ }
166
+ function de(t) {
167
+ const r = t.querySelectorAll(".shaka-spinner")[0];
168
+ r && r.setAttribute("hidden", "");
169
+ }
170
+ export {
171
+ be as EbayVideo,
172
+ ae as EbayVideoSource
173
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("react"),N=require("classnames"),n="floating-label__label",T=["rgb(245, 245, 245)","rgb(247, 247, 247)"],v=t=>t&&!T.includes(getComputedStyle(t).backgroundColor),g=t=>{var a;return((a=t==null?void 0:t.value)==null?void 0:a.length)>0},p=t=>(t==null?void 0:t.tagName)==="SELECT",f=(t,a)=>{if(p(t)&&!g(t.querySelector("option"))){t.style["min-width"]="";const l=t.offsetWidth;t.querySelector("option").text=a,!a&&l>t.offsetWidth&&(t.style["min-width"]=`${l}px`)}},G=t=>p(t)?t.querySelector("option").text:t==null?void 0:t.placeholder;function I({ref:t,inputId:a,className:l,disabled:q,label:c,inputSize:y,inputValue:d,placeholder:b,invalid:R,opaqueLabel:$,type:m,onMount:B=()=>{}}){const L=o.useRef(null),s=()=>t||L,[F,u]=o.useState(!!d),[k,h]=o.useState(!1),[i,C]=o.useState(!1),E=o.useRef(""),A=()=>{var e;h(!0),u(g((e=s())==null?void 0:e.current)),C(!1),f(s().current,"")},P=()=>{var e;h(!0),u(!0),C(!0),f((e=s())==null?void 0:e.current,E.current)};o.useEffect(()=>{var e,r;c&&(E.current=G((e=s())==null?void 0:e.current),f((r=s())==null?void 0:r.current,""),B())},[]),o.useEffect(()=>{var e,r,x;c&&u(i||g((e=s())==null?void 0:e.current)||v((x=(r=s())==null?void 0:r.current)==null?void 0:x.parentNode))},[i,d]);const W=N(l,n,{[`${n}--disabled`]:q,[`${n}--animate`]:k,[`${n}--inline`]:!F&&m!=="date",[`${n}--focus`]:i,[`${n}--invalid`]:R}),S=N("floating-label",{"floating-label--large":y==="large","floating-label--opaque":$}),_=o.useCallback(({children:e})=>o.createElement(o.Fragment,null,e),[]),w=o.useCallback(({children:e})=>o.createElement("span",{className:S},e),[S]);return c?{label:o.createElement("label",{htmlFor:a,className:W},c),Container:w,onBlur:A,onFocus:P,ref:s(),placeholder:F?b:null}:{label:null,Container:_,onBlur:()=>{},onFocus:()=>{},ref:s(),placeholder:b}}exports.useFloatingLabel=I;
@@ -0,0 +1,63 @@
1
+ import c, { useRef as N, useState as f, useEffect as S, useCallback as y } from "react";
2
+ import $ from "classnames";
3
+ const n = "floating-label__label", O = [
4
+ "rgb(245, 245, 245)",
5
+ "rgb(247, 247, 247)"
6
+ // From skin version 12.6.0
7
+ ], j = (t) => t && !O.includes(getComputedStyle(t).backgroundColor), g = (t) => {
8
+ var r;
9
+ return ((r = t == null ? void 0 : t.value) == null ? void 0 : r.length) > 0;
10
+ }, B = (t) => (t == null ? void 0 : t.tagName) === "SELECT", d = (t, r) => {
11
+ if (B(t) && !g(t.querySelector("option"))) {
12
+ t.style["min-width"] = "";
13
+ const l = t.offsetWidth;
14
+ t.querySelector("option").text = r, !r && l > t.offsetWidth && (t.style["min-width"] = `${l}px`);
15
+ }
16
+ }, z = (t) => B(t) ? t.querySelector("option").text : t == null ? void 0 : t.placeholder;
17
+ function K({ ref: t, inputId: r, className: l, disabled: R, label: s, inputSize: q, inputValue: b, placeholder: h, invalid: L, opaqueLabel: k, type: A, onMount: P = () => {
18
+ } }) {
19
+ const W = N(null), o = () => t || W, [F, i] = f(!!b), [_, C] = f(!1), [u, m] = f(!1), p = N(""), w = () => {
20
+ var e;
21
+ C(!0), i(g((e = o()) == null ? void 0 : e.current)), m(!1), d(o().current, "");
22
+ }, T = () => {
23
+ var e;
24
+ C(!0), i(!0), m(!0), d((e = o()) == null ? void 0 : e.current, p.current);
25
+ };
26
+ S(() => {
27
+ var e, a;
28
+ s && (p.current = z((e = o()) == null ? void 0 : e.current), d((a = o()) == null ? void 0 : a.current, ""), P());
29
+ }, []), S(() => {
30
+ var e, a, x;
31
+ s && i(u || g((e = o()) == null ? void 0 : e.current) || j((x = (a = o()) == null ? void 0 : a.current) == null ? void 0 : x.parentNode));
32
+ }, [u, b]);
33
+ const v = $(l, n, {
34
+ [`${n}--disabled`]: R,
35
+ [`${n}--animate`]: _,
36
+ [`${n}--inline`]: !F && A !== "date",
37
+ [`${n}--focus`]: u,
38
+ [`${n}--invalid`]: L
39
+ }), E = $("floating-label", {
40
+ "floating-label--large": q === "large",
41
+ "floating-label--opaque": k
42
+ }), G = y(({ children: e }) => c.createElement(c.Fragment, null, e), []), I = y(({ children: e }) => c.createElement("span", { className: E }, e), [E]);
43
+ return s ? {
44
+ label: c.createElement("label", { htmlFor: r, className: v }, s),
45
+ Container: I,
46
+ onBlur: w,
47
+ onFocus: T,
48
+ ref: o(),
49
+ placeholder: F ? h : null
50
+ } : {
51
+ label: null,
52
+ Container: G,
53
+ onBlur: () => {
54
+ },
55
+ onFocus: () => {
56
+ },
57
+ ref: o(),
58
+ placeholder: h
59
+ };
60
+ }
61
+ export {
62
+ K as u
63
+ };
@@ -0,0 +1,42 @@
1
+ import o, { forwardRef as g, useState as p, useEffect as w } from "react";
2
+ import I from "classnames";
3
+ import "./array.polyfill.flat-Bj5UhY_-.mjs";
4
+ const E = (n) => n.displayName || n.name || "Component", h = (n) => {
5
+ const e = g((t, a) => o.createElement(n, { ...t, forwardedRef: a }));
6
+ return e.displayName = E(n), e;
7
+ }, $ = () => Math.random().toString(16).slice(-4), y = ({ name: n, className: e, noSkinClasses: t = !1, a11yText: a, a11yVariant: c, forwardedRef: l, ...d }) => {
8
+ const [m, f] = p("");
9
+ w(() => {
10
+ f($());
11
+ }, []);
12
+ const s = c === "label", i = a && `icon-title-${m}`, u = a ? {
13
+ "aria-labelledby": s ? void 0 : i,
14
+ "aria-label": s ? a : void 0,
15
+ role: "img"
16
+ } : {
17
+ "aria-hidden": !0
18
+ }, r = v(n), N = ["icon", `icon--${R(r) || r}`, k(r)].filter(Boolean).join(" "), b = I(e, { [N]: !t });
19
+ return o.createElement(
20
+ "svg",
21
+ { ...d, className: b, xmlns: "http://www.w3.org/2000/svg", focusable: !1, ref: l, ...u },
22
+ a && !s && o.createElement("title", { id: i }, a),
23
+ o.createElement("use", { xlinkHref: `#icon-${r}` })
24
+ );
25
+ };
26
+ function R(n) {
27
+ const e = n.split("-"), t = e[e.length - 1];
28
+ return t === "colored" ? e[e.length - 2] : isNaN(Number(t)) ? "" : t;
29
+ }
30
+ function k(n) {
31
+ const e = n.split("-"), t = e.indexOf("filled");
32
+ return t === -1 ? "" : `icon--${e.slice(0, t + 1).join("-")}`;
33
+ }
34
+ function v(n) {
35
+ return n.replace(/([0-9]+)/g, (e, t) => `-${t}`).replace(/([A-Z])/g, (e, t) => `-${t.toLowerCase()}`);
36
+ }
37
+ const j = h(y);
38
+ export {
39
+ j as E,
40
+ $ as r,
41
+ h as w
42
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=require("react"),I=require("classnames");require("./array.polyfill.flat-5BAolFdk.js");const h=t=>t.displayName||t.name||"Component",c=t=>{const e=a.forwardRef((n,r)=>a.createElement(t,{...n,forwardedRef:r}));return e.displayName=h(t),e},l=()=>Math.random().toString(16).slice(-4),p=({name:t,className:e,noSkinClasses:n=!1,a11yText:r,a11yVariant:d,forwardedRef:f,...m})=>{const[u,b]=a.useState("");a.useEffect(()=>{b(l())},[]);const o=d==="label",i=r&&`icon-title-${u}`,N=r?{"aria-labelledby":o?void 0:i,"aria-label":o?r:void 0,role:"img"}:{"aria-hidden":!0},s=R(t),w=["icon",`icon--${E(s)||s}`,y(s)].filter(Boolean).join(" "),g=I(e,{[w]:!n});return a.createElement("svg",{...m,className:g,xmlns:"http://www.w3.org/2000/svg",focusable:!1,ref:f,...N},r&&!o&&a.createElement("title",{id:i},r),a.createElement("use",{xlinkHref:`#icon-${s}`}))};function E(t){const e=t.split("-"),n=e[e.length-1];return n==="colored"?e[e.length-2]:isNaN(Number(n))?"":n}function y(t){const e=t.split("-"),n=e.indexOf("filled");return n===-1?"":`icon--${e.slice(0,n+1).join("-")}`}function R(t){return t.replace(/([0-9]+)/g,(e,n)=>`-${n}`).replace(/([A-Z])/g,(e,n)=>`-${n.toLowerCase()}`)}const $=c(p);exports.EbayIcon=$;exports.randomId=l;exports.withForwardRef=c;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react"),p=require("classnames"),y=require("./icon-DK6eEQD8.js"),w=require("./badge-CoHKfiPt.js");require("./array.polyfill.flat-5BAolFdk.js");const B=({href:c,icon:E,badgeNumber:a,badgeAriaLabel:m,transparent:b,className:q,forwardedRef:o,size:r,onEscape:$=()=>{},onKeyDown:k=()=>{},...s})=>{const n=c?"icon-link":"icon-btn",i=p(q,n,r&&`${n}--${r}`,{[`${n}--badged`]:a,[`${n}--transparent`]:b}),l=e.createElement(e.Fragment,null,e.createElement(y.EbayIcon,{name:E}),a&&e.createElement(w.EbayBadge,{type:"icon",number:a,"aria-label":m})),u=t=>{(t.key==="Escape"||t.key==="Esc")&&$(t),k(t)};return c?e.createElement("a",{ref:o,className:i,href:c,onKeyDown:u,...s},l):e.createElement("button",{ref:o,type:"button",className:i,onKeyDown:u,...s},l)},I=y.withForwardRef(B);exports.EbayIconButton=I;
@@ -0,0 +1,24 @@
1
+ import t from "react";
2
+ import w from "classnames";
3
+ import { w as $, E as k } from "./icon-B_a65KUD.mjs";
4
+ import { E as B } from "./badge-BX5HuO-3.mjs";
5
+ import "./array.polyfill.flat-Bj5UhY_-.mjs";
6
+ const D = ({ href: a, icon: i, badgeNumber: o, badgeAriaLabel: y, transparent: p, className: b, forwardedRef: c, size: r, onEscape: f = () => {
7
+ }, onKeyDown: u = () => {
8
+ }, ...s }) => {
9
+ const n = a ? "icon-link" : "icon-btn", m = w(b, n, r && `${n}--${r}`, {
10
+ [`${n}--badged`]: o,
11
+ [`${n}--transparent`]: p
12
+ }), l = t.createElement(
13
+ t.Fragment,
14
+ null,
15
+ t.createElement(k, { name: i }),
16
+ o && t.createElement(B, { type: "icon", number: o, "aria-label": y })
17
+ ), E = (e) => {
18
+ (e.key === "Escape" || e.key === "Esc") && f(e), u(e);
19
+ };
20
+ return a ? t.createElement("a", { ref: c, className: m, href: a, onKeyDown: E, ...s }, l) : t.createElement("button", { ref: c, type: "button", className: m, onKeyDown: E, ...s }, l);
21
+ }, g = $(D);
22
+ export {
23
+ g as E
24
+ };
@@ -0,0 +1,22 @@
1
+ function i(n, e, t = () => {
2
+ }) {
3
+ n.includes(e.key) && t();
4
+ }
5
+ function c(n, e) {
6
+ o(n.key) && e();
7
+ }
8
+ function o(n) {
9
+ return [" ", "Enter"].includes(n);
10
+ }
11
+ function a(n, e) {
12
+ i(["Esc", "Escape"], n, e);
13
+ }
14
+ function s(n, e) {
15
+ i(["Left", "ArrowLeft", "Right", "ArrowRight"], n, e);
16
+ }
17
+ export {
18
+ s as a,
19
+ a as b,
20
+ c as h,
21
+ o as i
22
+ };
@@ -0,0 +1 @@
1
+ "use strict";function t(n,e,o=()=>{}){n.includes(e.key)&&o()}function c(n,e){i(n.key)&&e()}function i(n){return[" ","Enter"].includes(n)}function d(n,e){t(["Esc","Escape"],n,e)}function r(n,e){t(["Left","ArrowLeft","Right","ArrowRight"],n,e)}exports.handleActionKeydown=c;exports.handleEscapeKeydown=d;exports.handleLeftRightArrowsKeydown=r;exports.isActionKey=i;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react"),d=require("classnames"),i=({className:l,children:a,stacked:s=!1,required:t=!1,position:r="start",...n})=>{const c=d("field__label",l,{"field__label--stacked":s},{"field__label--end":r==="end"}),u=t?e.createElement(e.Fragment,null," ",e.createElement("sup",null,"*")):null;return e.createElement("label",{className:c,...n},a,u)};exports.Label=i;
@@ -0,0 +1,19 @@
1
+ import e from "react";
2
+ import o from "classnames";
3
+ const i = ({ className: l, children: a, stacked: t = !1, required: r = !1, position: s = "start", ...n }) => {
4
+ const m = o("field__label", l, { "field__label--stacked": t }, { "field__label--end": s === "end" }), c = r ? e.createElement(
5
+ e.Fragment,
6
+ null,
7
+ " ",
8
+ e.createElement("sup", null, "*")
9
+ ) : null;
10
+ return e.createElement(
11
+ "label",
12
+ { className: m, ...n },
13
+ a,
14
+ c
15
+ );
16
+ };
17
+ export {
18
+ i as L
19
+ };