@ebay/ui-core-react 7.2.0 → 7.2.2-alpha.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 (748) hide show
  1. package/@types/common/__mocks__/random-id.d.ts +3 -0
  2. package/@types/common/__mocks__/random-id.d.ts.map +1 -0
  3. package/@types/common/component-utils/array.polyfill.flat.d.ts.map +1 -0
  4. package/@types/common/component-utils/forwardRef.d.ts.map +1 -0
  5. package/@types/common/component-utils/index.d.ts.map +1 -0
  6. package/@types/common/component-utils/utils.d.ts.map +1 -0
  7. package/@types/common/debounce.d.ts.map +1 -0
  8. package/{common → @types/common}/event-utils/index.d.ts +2 -2
  9. package/@types/common/event-utils/index.d.ts.map +1 -0
  10. package/@types/common/event-utils/types.d.ts.map +1 -0
  11. package/@types/common/event-utils/use-key-press.d.ts.map +1 -0
  12. package/@types/common/event-utils/use-roving-index.d.ts.map +1 -0
  13. package/@types/common/floating-label-utils/hooks.d.ts.map +1 -0
  14. package/@types/common/notice-utils/notice-content.d.ts.map +1 -0
  15. package/@types/common/notice-utils/notice-cta.d.ts.map +1 -0
  16. package/@types/common/notice-utils/notice-footer.d.ts.map +1 -0
  17. package/@types/common/notice-utils/notice-title.d.ts.map +1 -0
  18. package/@types/common/random-id.d.ts +3 -0
  19. package/@types/common/random-id.d.ts.map +1 -0
  20. package/@types/common/range.d.ts.map +1 -0
  21. package/@types/common/tooltip-utils/constants.d.ts.map +1 -0
  22. package/@types/common/tooltip-utils/index.d.ts.map +1 -0
  23. package/@types/common/tooltip-utils/tooltip-close-button.d.ts.map +1 -0
  24. package/@types/common/tooltip-utils/tooltip-content.d.ts.map +1 -0
  25. package/@types/common/tooltip-utils/tooltip-footer.d.ts.map +1 -0
  26. package/@types/common/tooltip-utils/tooltip-host.d.ts.map +1 -0
  27. package/@types/common/tooltip-utils/tooltip.d.ts.map +1 -0
  28. package/@types/common/tooltip-utils/types.d.ts.map +1 -0
  29. package/@types/common/tooltip-utils/use-tooltip.d.ts.map +1 -0
  30. package/@types/ebay-alert-dialog/alert-dialog.d.ts.map +1 -0
  31. package/@types/ebay-alert-dialog/index.d.ts.map +1 -0
  32. package/@types/ebay-badge/badge.d.ts.map +1 -0
  33. package/@types/ebay-badge/index.d.ts.map +1 -0
  34. package/@types/ebay-breadcrumbs/breadcrumb-item.d.ts.map +1 -0
  35. package/@types/ebay-breadcrumbs/breadcrumbs.d.ts.map +1 -0
  36. package/@types/ebay-breadcrumbs/index.d.ts.map +1 -0
  37. package/@types/ebay-button/button-cell.d.ts.map +1 -0
  38. package/@types/ebay-button/button-expand.d.ts.map +1 -0
  39. package/@types/ebay-button/button-loading.d.ts.map +1 -0
  40. package/@types/ebay-button/button-text.d.ts.map +1 -0
  41. package/@types/ebay-button/button.d.ts.map +1 -0
  42. package/@types/ebay-button/index.d.ts.map +1 -0
  43. package/@types/ebay-button/types.d.ts.map +1 -0
  44. package/@types/ebay-calendar/calendar.d.ts.map +1 -0
  45. package/@types/ebay-calendar/date-utils.d.ts.map +1 -0
  46. package/@types/ebay-calendar/index.d.ts.map +1 -0
  47. package/@types/ebay-carousel/carousel-control-button.d.ts.map +1 -0
  48. package/@types/ebay-carousel/carousel-item.d.ts.map +1 -0
  49. package/@types/ebay-carousel/carousel-list.d.ts.map +1 -0
  50. package/@types/ebay-carousel/carousel.d.ts.map +1 -0
  51. package/@types/ebay-carousel/helpers.d.ts.map +1 -0
  52. package/@types/ebay-carousel/index.d.ts.map +1 -0
  53. package/@types/ebay-carousel/scroll-to-transition.d.ts.map +1 -0
  54. package/@types/ebay-carousel/types.d.ts.map +1 -0
  55. package/@types/ebay-checkbox/checkbox.d.ts.map +1 -0
  56. package/@types/ebay-checkbox/index.d.ts.map +1 -0
  57. package/@types/ebay-confirm-dialog/confirm-dialog.d.ts.map +1 -0
  58. package/@types/ebay-confirm-dialog/index.d.ts.map +1 -0
  59. package/@types/ebay-cta-button/cta-button.d.ts.map +1 -0
  60. package/@types/ebay-cta-button/index.d.ts.map +1 -0
  61. package/@types/ebay-date-textbox/date-textbox.d.ts.map +1 -0
  62. package/@types/ebay-date-textbox/index.d.ts.map +1 -0
  63. package/@types/ebay-dialog-base/components/animation.d.ts.map +1 -0
  64. package/@types/ebay-dialog-base/components/dialog-actions.d.ts.map +1 -0
  65. package/@types/ebay-dialog-base/components/dialog-close-button.d.ts.map +1 -0
  66. package/@types/ebay-dialog-base/components/dialog-footer.d.ts.map +1 -0
  67. package/@types/ebay-dialog-base/components/dialog-header.d.ts.map +1 -0
  68. package/@types/ebay-dialog-base/components/dialog-previous-button.d.ts.map +1 -0
  69. package/@types/ebay-dialog-base/components/dialogBase.d.ts.map +1 -0
  70. package/@types/ebay-dialog-base/dialog-base-with-state.d.ts.map +1 -0
  71. package/{ebay-dialog-base → @types/ebay-dialog-base}/index.d.ts +1 -0
  72. package/@types/ebay-dialog-base/index.d.ts.map +1 -0
  73. package/@types/ebay-drawer-dialog/components/drawer.d.ts.map +1 -0
  74. package/@types/ebay-drawer-dialog/index.d.ts.map +1 -0
  75. package/@types/ebay-eek/eek-rating.d.ts.map +1 -0
  76. package/@types/ebay-eek/eek-util.d.ts.map +1 -0
  77. package/@types/ebay-eek/index.d.ts.map +1 -0
  78. package/@types/ebay-fake-menu/index.d.ts.map +1 -0
  79. package/@types/ebay-fake-menu/menu-item-separator.d.ts.map +1 -0
  80. package/@types/ebay-fake-menu/menu-item.d.ts.map +1 -0
  81. package/@types/ebay-fake-menu/menu.d.ts.map +1 -0
  82. package/{ebay-fake-menu-button → @types/ebay-fake-menu-button}/index.d.ts +1 -1
  83. package/@types/ebay-fake-menu-button/index.d.ts.map +1 -0
  84. package/@types/ebay-fake-menu-button/menu-button-item.d.ts.map +1 -0
  85. package/@types/ebay-fake-menu-button/menu-button-label.d.ts.map +1 -0
  86. package/@types/ebay-fake-menu-button/menu-button-separator.d.ts.map +1 -0
  87. package/@types/ebay-fake-menu-button/menu-button.d.ts.map +1 -0
  88. package/@types/ebay-fake-tabs/fake-tabs.d.ts.map +1 -0
  89. package/@types/ebay-fake-tabs/index.d.ts.map +1 -0
  90. package/@types/ebay-fake-tabs/tab.d.ts.map +1 -0
  91. package/@types/ebay-field/description.d.ts.map +1 -0
  92. package/@types/ebay-field/field.d.ts.map +1 -0
  93. package/@types/ebay-field/index.d.ts.map +1 -0
  94. package/@types/ebay-field/label.d.ts.map +1 -0
  95. package/@types/ebay-field/types.d.ts.map +1 -0
  96. package/@types/ebay-fullscreen-dialog/fullscreen-dialog.d.ts.map +1 -0
  97. package/@types/ebay-fullscreen-dialog/index.d.ts.map +1 -0
  98. package/@types/ebay-icon/icon.d.ts.map +1 -0
  99. package/@types/ebay-icon/index.d.ts.map +1 -0
  100. package/@types/ebay-icon/types.d.ts.map +1 -0
  101. package/@types/ebay-icon-button/icon-button.d.ts.map +1 -0
  102. package/@types/ebay-icon-button/index.d.ts.map +1 -0
  103. package/@types/ebay-infotip/ebay-infotip-content.d.ts.map +1 -0
  104. package/@types/ebay-infotip/ebay-infotip-heading.d.ts.map +1 -0
  105. package/@types/ebay-infotip/ebay-infotip-host.d.ts.map +1 -0
  106. package/@types/ebay-infotip/ebay-infotip.d.ts.map +1 -0
  107. package/@types/ebay-infotip/index.d.ts.map +1 -0
  108. package/@types/ebay-infotip/types.d.ts.map +1 -0
  109. package/@types/ebay-inline-notice/index.d.ts.map +1 -0
  110. package/@types/ebay-inline-notice/inline-notice.d.ts.map +1 -0
  111. package/@types/ebay-inline-notice/types.d.ts.map +1 -0
  112. package/@types/ebay-lightbox-dialog/index.d.ts.map +1 -0
  113. package/@types/ebay-lightbox-dialog/lightbox-dialog.d.ts.map +1 -0
  114. package/@types/ebay-listbox-button/index.d.ts.map +1 -0
  115. package/@types/ebay-listbox-button/listbox-button-option.d.ts.map +1 -0
  116. package/@types/ebay-listbox-button/listbox-button.d.ts.map +1 -0
  117. package/@types/ebay-menu/index.d.ts.map +1 -0
  118. package/@types/ebay-menu/menu-item-separator.d.ts.map +1 -0
  119. package/@types/ebay-menu/menu-item.d.ts.map +1 -0
  120. package/@types/ebay-menu/menu.d.ts.map +1 -0
  121. package/@types/ebay-menu/types.d.ts.map +1 -0
  122. package/@types/ebay-menu-button/index.d.ts.map +1 -0
  123. package/@types/ebay-menu-button/menu-button-item.d.ts.map +1 -0
  124. package/@types/ebay-menu-button/menu-button-label.d.ts.map +1 -0
  125. package/@types/ebay-menu-button/menu-button-separator.d.ts.map +1 -0
  126. package/@types/ebay-menu-button/menu-button.d.ts.map +1 -0
  127. package/@types/ebay-menu-button/types.d.ts.map +1 -0
  128. package/@types/ebay-notice-base/components/ebay-notice-content/index.d.ts.map +1 -0
  129. package/@types/ebay-notice-base/components/ebay-notice-content/notice-content.d.ts.map +1 -0
  130. package/@types/ebay-notice-base/components/ebay-notice-title/index.d.ts.map +1 -0
  131. package/@types/ebay-notice-base/components/ebay-notice-title/notice-title.d.ts.map +1 -0
  132. package/@types/ebay-notice-base/index.d.ts.map +1 -0
  133. package/@types/ebay-page-notice/index.d.ts.map +1 -0
  134. package/@types/ebay-page-notice/page-notice-cta.d.ts.map +1 -0
  135. package/@types/ebay-page-notice/page-notice-footer.d.ts.map +1 -0
  136. package/@types/ebay-page-notice/page-notice-title.d.ts.map +1 -0
  137. package/@types/ebay-page-notice/page-notice.d.ts.map +1 -0
  138. package/@types/ebay-pagination/const.d.ts.map +1 -0
  139. package/@types/ebay-pagination/helpers.d.ts.map +1 -0
  140. package/@types/ebay-pagination/index.d.ts.map +1 -0
  141. package/@types/ebay-pagination/pagination-item.d.ts.map +1 -0
  142. package/@types/ebay-pagination/pagination.d.ts.map +1 -0
  143. package/@types/ebay-pagination/types.d.ts.map +1 -0
  144. package/@types/ebay-panel-dialog/index.d.ts.map +1 -0
  145. package/@types/ebay-panel-dialog/panel-dialog.d.ts.map +1 -0
  146. package/@types/ebay-progress-bar/index.d.ts.map +1 -0
  147. package/@types/ebay-progress-bar/progress-bar.d.ts.map +1 -0
  148. package/@types/ebay-progress-spinner/index.d.ts.map +1 -0
  149. package/@types/ebay-progress-spinner/progress-spinner.d.ts.map +1 -0
  150. package/@types/ebay-progress-stepper/ebay-progress-step.d.ts.map +1 -0
  151. package/@types/ebay-progress-stepper/ebay-progress-stepper.d.ts.map +1 -0
  152. package/@types/ebay-progress-stepper/ebay-progress-title.d.ts.map +1 -0
  153. package/@types/ebay-progress-stepper/index.d.ts.map +1 -0
  154. package/@types/ebay-progress-stepper/types.d.ts.map +1 -0
  155. package/@types/ebay-radio/index.d.ts.map +1 -0
  156. package/@types/ebay-radio/radio.d.ts.map +1 -0
  157. package/{ebay-section-notice → @types/ebay-section-notice}/index.d.ts +1 -0
  158. package/@types/ebay-section-notice/index.d.ts.map +1 -0
  159. package/@types/ebay-section-notice/section-notice-cta.d.ts +8 -0
  160. package/@types/ebay-section-notice/section-notice-cta.d.ts.map +1 -0
  161. package/@types/ebay-section-notice/section-notice-footer.d.ts.map +1 -0
  162. package/@types/ebay-section-notice/section-notice-title.d.ts.map +1 -0
  163. package/@types/ebay-section-notice/section-notice.d.ts.map +1 -0
  164. package/@types/ebay-section-title/cta.d.ts.map +1 -0
  165. package/@types/ebay-section-title/index.d.ts.map +1 -0
  166. package/@types/ebay-section-title/info.d.ts.map +1 -0
  167. package/@types/ebay-section-title/overflow.d.ts.map +1 -0
  168. package/@types/ebay-section-title/section-title.d.ts.map +1 -0
  169. package/@types/ebay-section-title/subtitle.d.ts.map +1 -0
  170. package/@types/ebay-section-title/title.d.ts.map +1 -0
  171. package/@types/ebay-segmented-buttons/button.d.ts.map +1 -0
  172. package/@types/ebay-segmented-buttons/index.d.ts.map +1 -0
  173. package/@types/ebay-segmented-buttons/segmented-buttons.d.ts.map +1 -0
  174. package/@types/ebay-segmented-buttons/types.d.ts.map +1 -0
  175. package/@types/ebay-select/ebay-select-option.d.ts.map +1 -0
  176. package/@types/ebay-select/ebay-select.d.ts.map +1 -0
  177. package/@types/ebay-select/index.d.ts.map +1 -0
  178. package/@types/ebay-signal/index.d.ts.map +1 -0
  179. package/@types/ebay-signal/signal.d.ts.map +1 -0
  180. package/@types/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.d.ts.map +1 -0
  181. package/@types/ebay-snackbar-dialog/components/ebay-snackbar-dialog.d.ts.map +1 -0
  182. package/@types/ebay-snackbar-dialog/index.d.ts.map +1 -0
  183. package/@types/ebay-split-button/index.d.ts.map +1 -0
  184. package/@types/ebay-split-button/split-button.d.ts.map +1 -0
  185. package/@types/ebay-split-button/types.d.ts.map +1 -0
  186. package/@types/ebay-star-rating/index.d.ts.map +1 -0
  187. package/@types/ebay-star-rating/star-rating.d.ts.map +1 -0
  188. package/@types/ebay-star-rating-select/index.d.ts.map +1 -0
  189. package/@types/ebay-star-rating-select/star-rating-select.d.ts.map +1 -0
  190. package/@types/ebay-svg/index.d.ts.map +1 -0
  191. package/@types/ebay-svg/svg.d.ts.map +1 -0
  192. package/@types/ebay-switch/ebay-switch.d.ts.map +1 -0
  193. package/@types/ebay-switch/index.d.ts.map +1 -0
  194. package/@types/ebay-tabs/index.d.ts.map +1 -0
  195. package/@types/ebay-tabs/tab-panel.d.ts.map +1 -0
  196. package/@types/ebay-tabs/tab.d.ts.map +1 -0
  197. package/@types/ebay-tabs/tabs.d.ts.map +1 -0
  198. package/@types/ebay-tabs/types.d.ts.map +1 -0
  199. package/{ebay-textbox → @types/ebay-textbox}/index.d.ts +1 -0
  200. package/@types/ebay-textbox/index.d.ts.map +1 -0
  201. package/@types/ebay-textbox/postfix-icon.d.ts.map +1 -0
  202. package/@types/ebay-textbox/postfix-text.d.ts.map +1 -0
  203. package/@types/ebay-textbox/prefix-icon.d.ts.map +1 -0
  204. package/@types/ebay-textbox/prefix-text.d.ts.map +1 -0
  205. package/@types/ebay-textbox/textbox.d.ts.map +1 -0
  206. package/@types/ebay-textbox/types.d.ts.map +1 -0
  207. package/@types/ebay-toast-dialog/components/toast.d.ts.map +1 -0
  208. package/@types/ebay-toast-dialog/index.d.ts.map +1 -0
  209. package/@types/ebay-tooltip/ebay-tooltip-content.d.ts.map +1 -0
  210. package/@types/ebay-tooltip/ebay-tooltip-host.d.ts.map +1 -0
  211. package/@types/ebay-tooltip/ebay-tooltip.d.ts.map +1 -0
  212. package/@types/ebay-tooltip/index.d.ts +6 -0
  213. package/@types/ebay-tooltip/index.d.ts.map +1 -0
  214. package/@types/ebay-tourtip/ebay-tourtip-content.d.ts.map +1 -0
  215. package/@types/ebay-tourtip/ebay-tourtip-footer.d.ts.map +1 -0
  216. package/@types/ebay-tourtip/ebay-tourtip-heading.d.ts.map +1 -0
  217. package/@types/ebay-tourtip/ebay-tourtip-host.d.ts.map +1 -0
  218. package/@types/ebay-tourtip/ebay-tourtip.d.ts.map +1 -0
  219. package/@types/ebay-tourtip/index.d.ts.map +1 -0
  220. package/@types/ebay-video/const.d.ts.map +1 -0
  221. package/@types/ebay-video/controls.d.ts.map +1 -0
  222. package/@types/ebay-video/index.d.ts.map +1 -0
  223. package/@types/ebay-video/reportButton.d.ts.map +1 -0
  224. package/@types/ebay-video/source.d.ts.map +1 -0
  225. package/@types/ebay-video/types.d.ts.map +1 -0
  226. package/@types/ebay-video/video.d.ts.map +1 -0
  227. package/@types/events/index.d.ts +5 -0
  228. package/@types/events/index.d.ts.map +1 -0
  229. package/@types/utils/index.d.ts +5 -0
  230. package/@types/utils/index.d.ts.map +1 -0
  231. package/README.md +19 -10
  232. package/button-CbntI39l.js +1 -0
  233. package/{calendar-CPKqwJVQ.js → calendar-CHO7Qep-.js} +1 -1
  234. package/common/component-utils/forwardRef.js +1 -0
  235. package/common/component-utils/utils.js +1 -0
  236. package/common/component-utils.js +1 -0
  237. package/common/event-utils.js +1 -0
  238. package/common/floating-label-utils/hooks.js +1 -0
  239. package/common/notice-utils/notice-cta.js +1 -0
  240. package/common/random-id.js +1 -0
  241. package/common/tooltip-utils/constants.js +1 -0
  242. package/common/tooltip-utils.js +1 -0
  243. package/dialog-previous-button-BuuaWh0J.js +1 -0
  244. package/drawer-Bq-TDCjm.js +1 -0
  245. package/ebay-alert-dialog.js +1 -1
  246. package/ebay-breadcrumbs.js +1 -1
  247. package/ebay-button.js +1 -1
  248. package/ebay-calendar.js +1 -1
  249. package/ebay-carousel.js +1 -1
  250. package/ebay-checkbox.js +1 -1
  251. package/ebay-confirm-dialog.js +1 -1
  252. package/ebay-cta-button.js +1 -1
  253. package/ebay-date-textbox.js +1 -1
  254. package/ebay-dialog-base/components/animation.js +1 -0
  255. package/ebay-dialog-base/components/dialog-footer.js +1 -0
  256. package/ebay-dialog-base/components/dialog-header.js +1 -0
  257. package/ebay-dialog-base.js +1 -1
  258. package/ebay-drawer-dialog.js +1 -1
  259. package/ebay-eek.js +1 -1
  260. package/ebay-fake-menu/menu-item.js +1 -0
  261. package/ebay-fake-menu-button/menu-button.js +1 -0
  262. package/ebay-fake-menu-button.js +1 -1
  263. package/ebay-fake-menu.js +1 -1
  264. package/ebay-fake-tabs.js +1 -1
  265. package/ebay-fullscreen-dialog.js +1 -1
  266. package/ebay-icon-button.js +1 -1
  267. package/ebay-icon.js +1 -1
  268. package/ebay-infotip.js +1 -1
  269. package/ebay-inline-notice.js +1 -1
  270. package/ebay-lightbox-dialog.js +1 -1
  271. package/ebay-listbox-button.js +2 -2
  272. package/ebay-menu-button.js +1 -1
  273. package/ebay-menu.js +1 -1
  274. package/ebay-page-notice.js +1 -1
  275. package/ebay-pagination.js +1 -1
  276. package/ebay-panel-dialog.js +1 -1
  277. package/ebay-progress-spinner.js +1 -1
  278. package/ebay-progress-stepper.js +1 -1
  279. package/ebay-radio/radio.js +1 -0
  280. package/ebay-radio.js +1 -1
  281. package/ebay-section-notice.js +1 -1
  282. package/ebay-section-title.js +1 -1
  283. package/ebay-segmented-buttons.js +1 -1
  284. package/ebay-select.js +1 -1
  285. package/ebay-snackbar-dialog.js +1 -1
  286. package/ebay-split-button.js +1 -1
  287. package/ebay-star-rating-select.js +1 -1
  288. package/ebay-star-rating.js +1 -1
  289. package/ebay-tabs.js +1 -1
  290. package/ebay-textbox.js +1 -1
  291. package/ebay-toast-dialog.js +1 -1
  292. package/ebay-tooltip.js +1 -1
  293. package/ebay-tourtip.js +1 -1
  294. package/ebay-video.js +1 -1
  295. package/events/README.md +13 -0
  296. package/events.js +1 -0
  297. package/icon-DEn4Lfbd.js +1 -0
  298. package/icon-button-BDXS3wjO.js +1 -0
  299. package/menu-DClVntri.js +1 -0
  300. package/menu-_LzP6yje.js +1 -0
  301. package/menu-button-0pEi9ehP.js +1 -0
  302. package/package.json +73 -2
  303. package/{progress-spinner-CDgxI8R_.js → progress-spinner-DoPMRkS9.js} +1 -1
  304. package/textbox-PCHsZ_Dx.js +1 -0
  305. package/use-roving-index-DoAVBgsp.js +1 -0
  306. package/use-tooltip-DasQr8Xw.js +1 -0
  307. package/utils/README.md +15 -0
  308. package/utils.js +1 -0
  309. package/button-o4ao46WM.js +0 -1
  310. package/common/component-utils/array.polyfill.flat.d.ts.map +0 -1
  311. package/common/component-utils/forwardRef.d.ts.map +0 -1
  312. package/common/component-utils/index.d.ts.map +0 -1
  313. package/common/component-utils/usePrevious.d.ts +0 -2
  314. package/common/component-utils/usePrevious.d.ts.map +0 -1
  315. package/common/component-utils/utils.d.ts.map +0 -1
  316. package/common/debounce.d.ts.map +0 -1
  317. package/common/event-utils/index.d.ts.map +0 -1
  318. package/common/event-utils/types.d.ts.map +0 -1
  319. package/common/event-utils/use-key-press.d.ts.map +0 -1
  320. package/common/event-utils/use-roving-index.d.ts.map +0 -1
  321. package/common/floating-label-utils/hooks.d.ts.map +0 -1
  322. package/common/notice-utils/notice-content.d.ts.map +0 -1
  323. package/common/notice-utils/notice-cta.d.ts.map +0 -1
  324. package/common/notice-utils/notice-footer.d.ts.map +0 -1
  325. package/common/notice-utils/notice-title.d.ts.map +0 -1
  326. package/common/random-id.d.ts +0 -2
  327. package/common/random-id.d.ts.map +0 -1
  328. package/common/range.d.ts.map +0 -1
  329. package/common/tooltip-utils/constants.d.ts.map +0 -1
  330. package/common/tooltip-utils/index.d.ts.map +0 -1
  331. package/common/tooltip-utils/tooltip-close-button.d.ts.map +0 -1
  332. package/common/tooltip-utils/tooltip-content.d.ts.map +0 -1
  333. package/common/tooltip-utils/tooltip-footer.d.ts.map +0 -1
  334. package/common/tooltip-utils/tooltip-host.d.ts.map +0 -1
  335. package/common/tooltip-utils/tooltip.d.ts.map +0 -1
  336. package/common/tooltip-utils/types.d.ts.map +0 -1
  337. package/common/tooltip-utils/use-tooltip.d.ts.map +0 -1
  338. package/dialog-previous-button-7ePoYWyj.js +0 -1
  339. package/drawer-BxxlJwkZ.js +0 -1
  340. package/ebay-alert-dialog/alert-dialog.d.ts.map +0 -1
  341. package/ebay-alert-dialog/index.d.ts.map +0 -1
  342. package/ebay-badge/badge.d.ts.map +0 -1
  343. package/ebay-badge/index.d.ts.map +0 -1
  344. package/ebay-breadcrumbs/breadcrumb-item.d.ts.map +0 -1
  345. package/ebay-breadcrumbs/breadcrumbs.d.ts.map +0 -1
  346. package/ebay-breadcrumbs/index.d.ts.map +0 -1
  347. package/ebay-button/button-cell.d.ts.map +0 -1
  348. package/ebay-button/button-expand.d.ts.map +0 -1
  349. package/ebay-button/button-loading.d.ts.map +0 -1
  350. package/ebay-button/button-text.d.ts.map +0 -1
  351. package/ebay-button/button.d.ts.map +0 -1
  352. package/ebay-button/index.d.ts.map +0 -1
  353. package/ebay-button/types.d.ts.map +0 -1
  354. package/ebay-calendar/calendar.d.ts.map +0 -1
  355. package/ebay-calendar/date-utils.d.ts.map +0 -1
  356. package/ebay-calendar/index.d.ts.map +0 -1
  357. package/ebay-carousel/carousel-control-button.d.ts.map +0 -1
  358. package/ebay-carousel/carousel-item.d.ts.map +0 -1
  359. package/ebay-carousel/carousel-list.d.ts.map +0 -1
  360. package/ebay-carousel/carousel.d.ts.map +0 -1
  361. package/ebay-carousel/helpers.d.ts.map +0 -1
  362. package/ebay-carousel/index.d.ts.map +0 -1
  363. package/ebay-carousel/scroll-to-transition.d.ts.map +0 -1
  364. package/ebay-carousel/types.d.ts.map +0 -1
  365. package/ebay-checkbox/checkbox.d.ts.map +0 -1
  366. package/ebay-checkbox/index.d.ts.map +0 -1
  367. package/ebay-confirm-dialog/confirm-dialog.d.ts.map +0 -1
  368. package/ebay-confirm-dialog/index.d.ts.map +0 -1
  369. package/ebay-cta-button/cta-button.d.ts.map +0 -1
  370. package/ebay-cta-button/index.d.ts.map +0 -1
  371. package/ebay-date-textbox/date-textbox.d.ts.map +0 -1
  372. package/ebay-date-textbox/index.d.ts.map +0 -1
  373. package/ebay-dialog-base/components/animation.d.ts.map +0 -1
  374. package/ebay-dialog-base/components/dialog-actions.d.ts.map +0 -1
  375. package/ebay-dialog-base/components/dialog-close-button.d.ts.map +0 -1
  376. package/ebay-dialog-base/components/dialog-footer.d.ts.map +0 -1
  377. package/ebay-dialog-base/components/dialog-header.d.ts.map +0 -1
  378. package/ebay-dialog-base/components/dialog-previous-button.d.ts.map +0 -1
  379. package/ebay-dialog-base/components/dialogBase.d.ts.map +0 -1
  380. package/ebay-dialog-base/dialog-base-with-state.d.ts.map +0 -1
  381. package/ebay-dialog-base/index.d.ts.map +0 -1
  382. package/ebay-drawer-dialog/components/drawer.d.ts.map +0 -1
  383. package/ebay-drawer-dialog/index.d.ts.map +0 -1
  384. package/ebay-eek/eek-rating.d.ts.map +0 -1
  385. package/ebay-eek/eek-util.d.ts.map +0 -1
  386. package/ebay-eek/index.d.ts.map +0 -1
  387. package/ebay-fake-menu/index.d.ts.map +0 -1
  388. package/ebay-fake-menu/menu-item-separator.d.ts.map +0 -1
  389. package/ebay-fake-menu/menu-item.d.ts.map +0 -1
  390. package/ebay-fake-menu/menu.d.ts.map +0 -1
  391. package/ebay-fake-menu-button/index.d.ts.map +0 -1
  392. package/ebay-fake-menu-button/menu-button-item.d.ts.map +0 -1
  393. package/ebay-fake-menu-button/menu-button-label.d.ts.map +0 -1
  394. package/ebay-fake-menu-button/menu-button-separator.d.ts.map +0 -1
  395. package/ebay-fake-menu-button/menu-button.d.ts.map +0 -1
  396. package/ebay-fake-tabs/fake-tabs.d.ts.map +0 -1
  397. package/ebay-fake-tabs/index.d.ts.map +0 -1
  398. package/ebay-fake-tabs/tab.d.ts.map +0 -1
  399. package/ebay-field/description.d.ts.map +0 -1
  400. package/ebay-field/field.d.ts.map +0 -1
  401. package/ebay-field/index.d.ts.map +0 -1
  402. package/ebay-field/label.d.ts.map +0 -1
  403. package/ebay-field/types.d.ts.map +0 -1
  404. package/ebay-fullscreen-dialog/fullscreen-dialog.d.ts.map +0 -1
  405. package/ebay-fullscreen-dialog/index.d.ts.map +0 -1
  406. package/ebay-icon/icon.d.ts.map +0 -1
  407. package/ebay-icon/index.d.ts.map +0 -1
  408. package/ebay-icon/types.d.ts.map +0 -1
  409. package/ebay-icon-button/icon-button.d.ts.map +0 -1
  410. package/ebay-icon-button/index.d.ts.map +0 -1
  411. package/ebay-infotip/ebay-infotip-content.d.ts.map +0 -1
  412. package/ebay-infotip/ebay-infotip-heading.d.ts.map +0 -1
  413. package/ebay-infotip/ebay-infotip-host.d.ts.map +0 -1
  414. package/ebay-infotip/ebay-infotip.d.ts.map +0 -1
  415. package/ebay-infotip/index.d.ts.map +0 -1
  416. package/ebay-infotip/types.d.ts.map +0 -1
  417. package/ebay-inline-notice/index.d.ts.map +0 -1
  418. package/ebay-inline-notice/inline-notice.d.ts.map +0 -1
  419. package/ebay-inline-notice/types.d.ts.map +0 -1
  420. package/ebay-lightbox-dialog/index.d.ts.map +0 -1
  421. package/ebay-lightbox-dialog/lightbox-dialog.d.ts.map +0 -1
  422. package/ebay-listbox-button/index.d.ts.map +0 -1
  423. package/ebay-listbox-button/listbox-button-option.d.ts.map +0 -1
  424. package/ebay-listbox-button/listbox-button.d.ts.map +0 -1
  425. package/ebay-menu/index.d.ts.map +0 -1
  426. package/ebay-menu/menu-item-separator.d.ts.map +0 -1
  427. package/ebay-menu/menu-item.d.ts.map +0 -1
  428. package/ebay-menu/menu.d.ts.map +0 -1
  429. package/ebay-menu/types.d.ts.map +0 -1
  430. package/ebay-menu-button/index.d.ts.map +0 -1
  431. package/ebay-menu-button/menu-button-item.d.ts.map +0 -1
  432. package/ebay-menu-button/menu-button-label.d.ts.map +0 -1
  433. package/ebay-menu-button/menu-button-separator.d.ts.map +0 -1
  434. package/ebay-menu-button/menu-button.d.ts.map +0 -1
  435. package/ebay-menu-button/types.d.ts.map +0 -1
  436. package/ebay-notice-base/components/ebay-notice-content/index.d.ts.map +0 -1
  437. package/ebay-notice-base/components/ebay-notice-content/notice-content.d.ts.map +0 -1
  438. package/ebay-notice-base/components/ebay-notice-title/index.d.ts.map +0 -1
  439. package/ebay-notice-base/components/ebay-notice-title/notice-title.d.ts.map +0 -1
  440. package/ebay-notice-base/index.d.ts.map +0 -1
  441. package/ebay-page-notice/index.d.ts.map +0 -1
  442. package/ebay-page-notice/page-notice-cta.d.ts.map +0 -1
  443. package/ebay-page-notice/page-notice-footer.d.ts.map +0 -1
  444. package/ebay-page-notice/page-notice-title.d.ts.map +0 -1
  445. package/ebay-page-notice/page-notice.d.ts.map +0 -1
  446. package/ebay-pagination/const.d.ts.map +0 -1
  447. package/ebay-pagination/helpers.d.ts.map +0 -1
  448. package/ebay-pagination/index.d.ts.map +0 -1
  449. package/ebay-pagination/pagination-item.d.ts.map +0 -1
  450. package/ebay-pagination/pagination.d.ts.map +0 -1
  451. package/ebay-pagination/types.d.ts.map +0 -1
  452. package/ebay-panel-dialog/index.d.ts.map +0 -1
  453. package/ebay-panel-dialog/panel-dialog.d.ts.map +0 -1
  454. package/ebay-progress-bar/index.d.ts.map +0 -1
  455. package/ebay-progress-bar/progress-bar.d.ts.map +0 -1
  456. package/ebay-progress-spinner/index.d.ts.map +0 -1
  457. package/ebay-progress-spinner/progress-spinner.d.ts.map +0 -1
  458. package/ebay-progress-stepper/ebay-progress-step.d.ts.map +0 -1
  459. package/ebay-progress-stepper/ebay-progress-stepper.d.ts.map +0 -1
  460. package/ebay-progress-stepper/ebay-progress-title.d.ts.map +0 -1
  461. package/ebay-progress-stepper/index.d.ts.map +0 -1
  462. package/ebay-progress-stepper/types.d.ts.map +0 -1
  463. package/ebay-radio/index.d.ts.map +0 -1
  464. package/ebay-radio/radio.d.ts.map +0 -1
  465. package/ebay-section-notice/index.d.ts.map +0 -1
  466. package/ebay-section-notice/section-notice-footer.d.ts.map +0 -1
  467. package/ebay-section-notice/section-notice-title.d.ts.map +0 -1
  468. package/ebay-section-notice/section-notice.d.ts.map +0 -1
  469. package/ebay-section-title/cta.d.ts.map +0 -1
  470. package/ebay-section-title/index.d.ts.map +0 -1
  471. package/ebay-section-title/info.d.ts.map +0 -1
  472. package/ebay-section-title/overflow.d.ts.map +0 -1
  473. package/ebay-section-title/section-title.d.ts.map +0 -1
  474. package/ebay-section-title/subtitle.d.ts.map +0 -1
  475. package/ebay-section-title/title.d.ts.map +0 -1
  476. package/ebay-segmented-buttons/button.d.ts.map +0 -1
  477. package/ebay-segmented-buttons/index.d.ts.map +0 -1
  478. package/ebay-segmented-buttons/segmented-buttons.d.ts.map +0 -1
  479. package/ebay-segmented-buttons/types.d.ts.map +0 -1
  480. package/ebay-select/ebay-select-option.d.ts.map +0 -1
  481. package/ebay-select/ebay-select.d.ts.map +0 -1
  482. package/ebay-select/index.d.ts.map +0 -1
  483. package/ebay-signal/index.d.ts.map +0 -1
  484. package/ebay-signal/signal.d.ts.map +0 -1
  485. package/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.d.ts.map +0 -1
  486. package/ebay-snackbar-dialog/components/ebay-snackbar-dialog.d.ts.map +0 -1
  487. package/ebay-snackbar-dialog/index.d.ts.map +0 -1
  488. package/ebay-split-button/index.d.ts.map +0 -1
  489. package/ebay-split-button/split-button.d.ts.map +0 -1
  490. package/ebay-split-button/types.d.ts.map +0 -1
  491. package/ebay-star-rating/index.d.ts.map +0 -1
  492. package/ebay-star-rating/star-rating.d.ts.map +0 -1
  493. package/ebay-star-rating-select/index.d.ts.map +0 -1
  494. package/ebay-star-rating-select/star-rating-select.d.ts.map +0 -1
  495. package/ebay-svg/index.d.ts.map +0 -1
  496. package/ebay-svg/svg.d.ts.map +0 -1
  497. package/ebay-switch/ebay-switch.d.ts.map +0 -1
  498. package/ebay-switch/index.d.ts.map +0 -1
  499. package/ebay-tabs/index.d.ts.map +0 -1
  500. package/ebay-tabs/tab-panel.d.ts.map +0 -1
  501. package/ebay-tabs/tab.d.ts.map +0 -1
  502. package/ebay-tabs/tabs.d.ts.map +0 -1
  503. package/ebay-tabs/types.d.ts.map +0 -1
  504. package/ebay-textbox/index.d.ts.map +0 -1
  505. package/ebay-textbox/postfix-icon.d.ts.map +0 -1
  506. package/ebay-textbox/postfix-text.d.ts.map +0 -1
  507. package/ebay-textbox/prefix-icon.d.ts.map +0 -1
  508. package/ebay-textbox/prefix-text.d.ts.map +0 -1
  509. package/ebay-textbox/textbox.d.ts.map +0 -1
  510. package/ebay-textbox/types.d.ts.map +0 -1
  511. package/ebay-toast-dialog/components/toast.d.ts.map +0 -1
  512. package/ebay-toast-dialog/index.d.ts.map +0 -1
  513. package/ebay-tooltip/ebay-tooltip-content.d.ts.map +0 -1
  514. package/ebay-tooltip/ebay-tooltip-host.d.ts.map +0 -1
  515. package/ebay-tooltip/ebay-tooltip.d.ts.map +0 -1
  516. package/ebay-tooltip/index.d.ts +0 -5
  517. package/ebay-tooltip/index.d.ts.map +0 -1
  518. package/ebay-tourtip/ebay-tourtip-content.d.ts.map +0 -1
  519. package/ebay-tourtip/ebay-tourtip-footer.d.ts.map +0 -1
  520. package/ebay-tourtip/ebay-tourtip-heading.d.ts.map +0 -1
  521. package/ebay-tourtip/ebay-tourtip-host.d.ts.map +0 -1
  522. package/ebay-tourtip/ebay-tourtip.d.ts.map +0 -1
  523. package/ebay-tourtip/index.d.ts.map +0 -1
  524. package/ebay-video/const.d.ts.map +0 -1
  525. package/ebay-video/controls.d.ts.map +0 -1
  526. package/ebay-video/index.d.ts.map +0 -1
  527. package/ebay-video/reportButton.d.ts.map +0 -1
  528. package/ebay-video/source.d.ts.map +0 -1
  529. package/ebay-video/types.d.ts.map +0 -1
  530. package/ebay-video/video.d.ts.map +0 -1
  531. package/hooks-Ctier7Yv.js +0 -1
  532. package/icon-DK6eEQD8.js +0 -1
  533. package/icon-button-BB6GFLm7.js +0 -1
  534. package/index-DbjwTbDP.js +0 -1
  535. package/menu-DZU8jEPV.js +0 -1
  536. package/menu-button-label-BcgasGA4.js +0 -1
  537. package/menu-item-DBi1NcrM.js +0 -1
  538. package/textbox-WnB-9F4y.js +0 -1
  539. package/use-tooltip-BavqG36Z.js +0 -1
  540. package/utils-C9NL3q0j.js +0 -1
  541. /package/{common → @types/common}/component-utils/array.polyfill.flat.d.ts +0 -0
  542. /package/{common → @types/common}/component-utils/forwardRef.d.ts +0 -0
  543. /package/{common → @types/common}/component-utils/index.d.ts +0 -0
  544. /package/{common → @types/common}/component-utils/utils.d.ts +0 -0
  545. /package/{common → @types/common}/debounce.d.ts +0 -0
  546. /package/{common → @types/common}/event-utils/types.d.ts +0 -0
  547. /package/{common → @types/common}/event-utils/use-key-press.d.ts +0 -0
  548. /package/{common → @types/common}/event-utils/use-roving-index.d.ts +0 -0
  549. /package/{common → @types/common}/floating-label-utils/hooks.d.ts +0 -0
  550. /package/{common → @types/common}/notice-utils/notice-content.d.ts +0 -0
  551. /package/{common → @types/common}/notice-utils/notice-cta.d.ts +0 -0
  552. /package/{common → @types/common}/notice-utils/notice-footer.d.ts +0 -0
  553. /package/{common → @types/common}/notice-utils/notice-title.d.ts +0 -0
  554. /package/{common → @types/common}/range.d.ts +0 -0
  555. /package/{common → @types/common}/tooltip-utils/constants.d.ts +0 -0
  556. /package/{common → @types/common}/tooltip-utils/index.d.ts +0 -0
  557. /package/{common → @types/common}/tooltip-utils/tooltip-close-button.d.ts +0 -0
  558. /package/{common → @types/common}/tooltip-utils/tooltip-content.d.ts +0 -0
  559. /package/{common → @types/common}/tooltip-utils/tooltip-footer.d.ts +0 -0
  560. /package/{common → @types/common}/tooltip-utils/tooltip-host.d.ts +0 -0
  561. /package/{common → @types/common}/tooltip-utils/tooltip.d.ts +0 -0
  562. /package/{common → @types/common}/tooltip-utils/types.d.ts +0 -0
  563. /package/{common → @types/common}/tooltip-utils/use-tooltip.d.ts +0 -0
  564. /package/{ebay-alert-dialog → @types/ebay-alert-dialog}/alert-dialog.d.ts +0 -0
  565. /package/{ebay-alert-dialog → @types/ebay-alert-dialog}/index.d.ts +0 -0
  566. /package/{ebay-badge → @types/ebay-badge}/badge.d.ts +0 -0
  567. /package/{ebay-badge → @types/ebay-badge}/index.d.ts +0 -0
  568. /package/{ebay-breadcrumbs → @types/ebay-breadcrumbs}/breadcrumb-item.d.ts +0 -0
  569. /package/{ebay-breadcrumbs → @types/ebay-breadcrumbs}/breadcrumbs.d.ts +0 -0
  570. /package/{ebay-breadcrumbs → @types/ebay-breadcrumbs}/index.d.ts +0 -0
  571. /package/{ebay-button → @types/ebay-button}/button-cell.d.ts +0 -0
  572. /package/{ebay-button → @types/ebay-button}/button-expand.d.ts +0 -0
  573. /package/{ebay-button → @types/ebay-button}/button-loading.d.ts +0 -0
  574. /package/{ebay-button → @types/ebay-button}/button-text.d.ts +0 -0
  575. /package/{ebay-button → @types/ebay-button}/button.d.ts +0 -0
  576. /package/{ebay-button → @types/ebay-button}/index.d.ts +0 -0
  577. /package/{ebay-button → @types/ebay-button}/types.d.ts +0 -0
  578. /package/{ebay-calendar → @types/ebay-calendar}/calendar.d.ts +0 -0
  579. /package/{ebay-calendar → @types/ebay-calendar}/date-utils.d.ts +0 -0
  580. /package/{ebay-calendar → @types/ebay-calendar}/index.d.ts +0 -0
  581. /package/{ebay-carousel → @types/ebay-carousel}/carousel-control-button.d.ts +0 -0
  582. /package/{ebay-carousel → @types/ebay-carousel}/carousel-item.d.ts +0 -0
  583. /package/{ebay-carousel → @types/ebay-carousel}/carousel-list.d.ts +0 -0
  584. /package/{ebay-carousel → @types/ebay-carousel}/carousel.d.ts +0 -0
  585. /package/{ebay-carousel → @types/ebay-carousel}/helpers.d.ts +0 -0
  586. /package/{ebay-carousel → @types/ebay-carousel}/index.d.ts +0 -0
  587. /package/{ebay-carousel → @types/ebay-carousel}/scroll-to-transition.d.ts +0 -0
  588. /package/{ebay-carousel → @types/ebay-carousel}/types.d.ts +0 -0
  589. /package/{ebay-checkbox → @types/ebay-checkbox}/checkbox.d.ts +0 -0
  590. /package/{ebay-checkbox → @types/ebay-checkbox}/index.d.ts +0 -0
  591. /package/{ebay-confirm-dialog → @types/ebay-confirm-dialog}/confirm-dialog.d.ts +0 -0
  592. /package/{ebay-confirm-dialog → @types/ebay-confirm-dialog}/index.d.ts +0 -0
  593. /package/{ebay-cta-button → @types/ebay-cta-button}/cta-button.d.ts +0 -0
  594. /package/{ebay-cta-button → @types/ebay-cta-button}/index.d.ts +0 -0
  595. /package/{ebay-date-textbox → @types/ebay-date-textbox}/date-textbox.d.ts +0 -0
  596. /package/{ebay-date-textbox → @types/ebay-date-textbox}/index.d.ts +0 -0
  597. /package/{ebay-dialog-base → @types/ebay-dialog-base}/components/animation.d.ts +0 -0
  598. /package/{ebay-dialog-base → @types/ebay-dialog-base}/components/dialog-actions.d.ts +0 -0
  599. /package/{ebay-dialog-base → @types/ebay-dialog-base}/components/dialog-close-button.d.ts +0 -0
  600. /package/{ebay-dialog-base → @types/ebay-dialog-base}/components/dialog-footer.d.ts +0 -0
  601. /package/{ebay-dialog-base → @types/ebay-dialog-base}/components/dialog-header.d.ts +0 -0
  602. /package/{ebay-dialog-base → @types/ebay-dialog-base}/components/dialog-previous-button.d.ts +0 -0
  603. /package/{ebay-dialog-base → @types/ebay-dialog-base}/components/dialogBase.d.ts +0 -0
  604. /package/{ebay-dialog-base → @types/ebay-dialog-base}/dialog-base-with-state.d.ts +0 -0
  605. /package/{ebay-drawer-dialog → @types/ebay-drawer-dialog}/components/drawer.d.ts +0 -0
  606. /package/{ebay-drawer-dialog → @types/ebay-drawer-dialog}/index.d.ts +0 -0
  607. /package/{ebay-eek → @types/ebay-eek}/eek-rating.d.ts +0 -0
  608. /package/{ebay-eek → @types/ebay-eek}/eek-util.d.ts +0 -0
  609. /package/{ebay-eek → @types/ebay-eek}/index.d.ts +0 -0
  610. /package/{ebay-fake-menu → @types/ebay-fake-menu}/index.d.ts +0 -0
  611. /package/{ebay-fake-menu → @types/ebay-fake-menu}/menu-item-separator.d.ts +0 -0
  612. /package/{ebay-fake-menu → @types/ebay-fake-menu}/menu-item.d.ts +0 -0
  613. /package/{ebay-fake-menu → @types/ebay-fake-menu}/menu.d.ts +0 -0
  614. /package/{ebay-fake-menu-button → @types/ebay-fake-menu-button}/menu-button-item.d.ts +0 -0
  615. /package/{ebay-fake-menu-button → @types/ebay-fake-menu-button}/menu-button-label.d.ts +0 -0
  616. /package/{ebay-fake-menu-button → @types/ebay-fake-menu-button}/menu-button-separator.d.ts +0 -0
  617. /package/{ebay-fake-menu-button → @types/ebay-fake-menu-button}/menu-button.d.ts +0 -0
  618. /package/{ebay-fake-tabs → @types/ebay-fake-tabs}/fake-tabs.d.ts +0 -0
  619. /package/{ebay-fake-tabs → @types/ebay-fake-tabs}/index.d.ts +0 -0
  620. /package/{ebay-fake-tabs → @types/ebay-fake-tabs}/tab.d.ts +0 -0
  621. /package/{ebay-field → @types/ebay-field}/description.d.ts +0 -0
  622. /package/{ebay-field → @types/ebay-field}/field.d.ts +0 -0
  623. /package/{ebay-field → @types/ebay-field}/index.d.ts +0 -0
  624. /package/{ebay-field → @types/ebay-field}/label.d.ts +0 -0
  625. /package/{ebay-field → @types/ebay-field}/types.d.ts +0 -0
  626. /package/{ebay-fullscreen-dialog → @types/ebay-fullscreen-dialog}/fullscreen-dialog.d.ts +0 -0
  627. /package/{ebay-fullscreen-dialog → @types/ebay-fullscreen-dialog}/index.d.ts +0 -0
  628. /package/{ebay-icon → @types/ebay-icon}/icon.d.ts +0 -0
  629. /package/{ebay-icon → @types/ebay-icon}/index.d.ts +0 -0
  630. /package/{ebay-icon → @types/ebay-icon}/types.d.ts +0 -0
  631. /package/{ebay-icon-button → @types/ebay-icon-button}/icon-button.d.ts +0 -0
  632. /package/{ebay-icon-button → @types/ebay-icon-button}/index.d.ts +0 -0
  633. /package/{ebay-infotip → @types/ebay-infotip}/ebay-infotip-content.d.ts +0 -0
  634. /package/{ebay-infotip → @types/ebay-infotip}/ebay-infotip-heading.d.ts +0 -0
  635. /package/{ebay-infotip → @types/ebay-infotip}/ebay-infotip-host.d.ts +0 -0
  636. /package/{ebay-infotip → @types/ebay-infotip}/ebay-infotip.d.ts +0 -0
  637. /package/{ebay-infotip → @types/ebay-infotip}/index.d.ts +0 -0
  638. /package/{ebay-infotip → @types/ebay-infotip}/types.d.ts +0 -0
  639. /package/{ebay-inline-notice → @types/ebay-inline-notice}/index.d.ts +0 -0
  640. /package/{ebay-inline-notice → @types/ebay-inline-notice}/inline-notice.d.ts +0 -0
  641. /package/{ebay-inline-notice → @types/ebay-inline-notice}/types.d.ts +0 -0
  642. /package/{ebay-lightbox-dialog → @types/ebay-lightbox-dialog}/index.d.ts +0 -0
  643. /package/{ebay-lightbox-dialog → @types/ebay-lightbox-dialog}/lightbox-dialog.d.ts +0 -0
  644. /package/{ebay-listbox-button → @types/ebay-listbox-button}/index.d.ts +0 -0
  645. /package/{ebay-listbox-button → @types/ebay-listbox-button}/listbox-button-option.d.ts +0 -0
  646. /package/{ebay-listbox-button → @types/ebay-listbox-button}/listbox-button.d.ts +0 -0
  647. /package/{ebay-menu → @types/ebay-menu}/index.d.ts +0 -0
  648. /package/{ebay-menu → @types/ebay-menu}/menu-item-separator.d.ts +0 -0
  649. /package/{ebay-menu → @types/ebay-menu}/menu-item.d.ts +0 -0
  650. /package/{ebay-menu → @types/ebay-menu}/menu.d.ts +0 -0
  651. /package/{ebay-menu → @types/ebay-menu}/types.d.ts +0 -0
  652. /package/{ebay-menu-button → @types/ebay-menu-button}/index.d.ts +0 -0
  653. /package/{ebay-menu-button → @types/ebay-menu-button}/menu-button-item.d.ts +0 -0
  654. /package/{ebay-menu-button → @types/ebay-menu-button}/menu-button-label.d.ts +0 -0
  655. /package/{ebay-menu-button → @types/ebay-menu-button}/menu-button-separator.d.ts +0 -0
  656. /package/{ebay-menu-button → @types/ebay-menu-button}/menu-button.d.ts +0 -0
  657. /package/{ebay-menu-button → @types/ebay-menu-button}/types.d.ts +0 -0
  658. /package/{ebay-notice-base → @types/ebay-notice-base}/components/ebay-notice-content/index.d.ts +0 -0
  659. /package/{ebay-notice-base → @types/ebay-notice-base}/components/ebay-notice-content/notice-content.d.ts +0 -0
  660. /package/{ebay-notice-base → @types/ebay-notice-base}/components/ebay-notice-title/index.d.ts +0 -0
  661. /package/{ebay-notice-base → @types/ebay-notice-base}/components/ebay-notice-title/notice-title.d.ts +0 -0
  662. /package/{ebay-notice-base → @types/ebay-notice-base}/index.d.ts +0 -0
  663. /package/{ebay-page-notice → @types/ebay-page-notice}/index.d.ts +0 -0
  664. /package/{ebay-page-notice → @types/ebay-page-notice}/page-notice-cta.d.ts +0 -0
  665. /package/{ebay-page-notice → @types/ebay-page-notice}/page-notice-footer.d.ts +0 -0
  666. /package/{ebay-page-notice → @types/ebay-page-notice}/page-notice-title.d.ts +0 -0
  667. /package/{ebay-page-notice → @types/ebay-page-notice}/page-notice.d.ts +0 -0
  668. /package/{ebay-pagination → @types/ebay-pagination}/const.d.ts +0 -0
  669. /package/{ebay-pagination → @types/ebay-pagination}/helpers.d.ts +0 -0
  670. /package/{ebay-pagination → @types/ebay-pagination}/index.d.ts +0 -0
  671. /package/{ebay-pagination → @types/ebay-pagination}/pagination-item.d.ts +0 -0
  672. /package/{ebay-pagination → @types/ebay-pagination}/pagination.d.ts +0 -0
  673. /package/{ebay-pagination → @types/ebay-pagination}/types.d.ts +0 -0
  674. /package/{ebay-panel-dialog → @types/ebay-panel-dialog}/index.d.ts +0 -0
  675. /package/{ebay-panel-dialog → @types/ebay-panel-dialog}/panel-dialog.d.ts +0 -0
  676. /package/{ebay-progress-bar → @types/ebay-progress-bar}/index.d.ts +0 -0
  677. /package/{ebay-progress-bar → @types/ebay-progress-bar}/progress-bar.d.ts +0 -0
  678. /package/{ebay-progress-spinner → @types/ebay-progress-spinner}/index.d.ts +0 -0
  679. /package/{ebay-progress-spinner → @types/ebay-progress-spinner}/progress-spinner.d.ts +0 -0
  680. /package/{ebay-progress-stepper → @types/ebay-progress-stepper}/ebay-progress-step.d.ts +0 -0
  681. /package/{ebay-progress-stepper → @types/ebay-progress-stepper}/ebay-progress-stepper.d.ts +0 -0
  682. /package/{ebay-progress-stepper → @types/ebay-progress-stepper}/ebay-progress-title.d.ts +0 -0
  683. /package/{ebay-progress-stepper → @types/ebay-progress-stepper}/index.d.ts +0 -0
  684. /package/{ebay-progress-stepper → @types/ebay-progress-stepper}/types.d.ts +0 -0
  685. /package/{ebay-radio → @types/ebay-radio}/index.d.ts +0 -0
  686. /package/{ebay-radio → @types/ebay-radio}/radio.d.ts +0 -0
  687. /package/{ebay-section-notice → @types/ebay-section-notice}/section-notice-footer.d.ts +0 -0
  688. /package/{ebay-section-notice → @types/ebay-section-notice}/section-notice-title.d.ts +0 -0
  689. /package/{ebay-section-notice → @types/ebay-section-notice}/section-notice.d.ts +0 -0
  690. /package/{ebay-section-title → @types/ebay-section-title}/cta.d.ts +0 -0
  691. /package/{ebay-section-title → @types/ebay-section-title}/index.d.ts +0 -0
  692. /package/{ebay-section-title → @types/ebay-section-title}/info.d.ts +0 -0
  693. /package/{ebay-section-title → @types/ebay-section-title}/overflow.d.ts +0 -0
  694. /package/{ebay-section-title → @types/ebay-section-title}/section-title.d.ts +0 -0
  695. /package/{ebay-section-title → @types/ebay-section-title}/subtitle.d.ts +0 -0
  696. /package/{ebay-section-title → @types/ebay-section-title}/title.d.ts +0 -0
  697. /package/{ebay-segmented-buttons → @types/ebay-segmented-buttons}/button.d.ts +0 -0
  698. /package/{ebay-segmented-buttons → @types/ebay-segmented-buttons}/index.d.ts +0 -0
  699. /package/{ebay-segmented-buttons → @types/ebay-segmented-buttons}/segmented-buttons.d.ts +0 -0
  700. /package/{ebay-segmented-buttons → @types/ebay-segmented-buttons}/types.d.ts +0 -0
  701. /package/{ebay-select → @types/ebay-select}/ebay-select-option.d.ts +0 -0
  702. /package/{ebay-select → @types/ebay-select}/ebay-select.d.ts +0 -0
  703. /package/{ebay-select → @types/ebay-select}/index.d.ts +0 -0
  704. /package/{ebay-signal → @types/ebay-signal}/index.d.ts +0 -0
  705. /package/{ebay-signal → @types/ebay-signal}/signal.d.ts +0 -0
  706. /package/{ebay-snackbar-dialog → @types/ebay-snackbar-dialog}/components/ebay-snackbar-dialog-action.d.ts +0 -0
  707. /package/{ebay-snackbar-dialog → @types/ebay-snackbar-dialog}/components/ebay-snackbar-dialog.d.ts +0 -0
  708. /package/{ebay-snackbar-dialog → @types/ebay-snackbar-dialog}/index.d.ts +0 -0
  709. /package/{ebay-split-button → @types/ebay-split-button}/index.d.ts +0 -0
  710. /package/{ebay-split-button → @types/ebay-split-button}/split-button.d.ts +0 -0
  711. /package/{ebay-split-button → @types/ebay-split-button}/types.d.ts +0 -0
  712. /package/{ebay-star-rating → @types/ebay-star-rating}/index.d.ts +0 -0
  713. /package/{ebay-star-rating → @types/ebay-star-rating}/star-rating.d.ts +0 -0
  714. /package/{ebay-star-rating-select → @types/ebay-star-rating-select}/index.d.ts +0 -0
  715. /package/{ebay-star-rating-select → @types/ebay-star-rating-select}/star-rating-select.d.ts +0 -0
  716. /package/{ebay-svg → @types/ebay-svg}/index.d.ts +0 -0
  717. /package/{ebay-svg → @types/ebay-svg}/svg.d.ts +0 -0
  718. /package/{ebay-switch → @types/ebay-switch}/ebay-switch.d.ts +0 -0
  719. /package/{ebay-switch → @types/ebay-switch}/index.d.ts +0 -0
  720. /package/{ebay-tabs → @types/ebay-tabs}/index.d.ts +0 -0
  721. /package/{ebay-tabs → @types/ebay-tabs}/tab-panel.d.ts +0 -0
  722. /package/{ebay-tabs → @types/ebay-tabs}/tab.d.ts +0 -0
  723. /package/{ebay-tabs → @types/ebay-tabs}/tabs.d.ts +0 -0
  724. /package/{ebay-tabs → @types/ebay-tabs}/types.d.ts +0 -0
  725. /package/{ebay-textbox → @types/ebay-textbox}/postfix-icon.d.ts +0 -0
  726. /package/{ebay-textbox → @types/ebay-textbox}/postfix-text.d.ts +0 -0
  727. /package/{ebay-textbox → @types/ebay-textbox}/prefix-icon.d.ts +0 -0
  728. /package/{ebay-textbox → @types/ebay-textbox}/prefix-text.d.ts +0 -0
  729. /package/{ebay-textbox → @types/ebay-textbox}/textbox.d.ts +0 -0
  730. /package/{ebay-textbox → @types/ebay-textbox}/types.d.ts +0 -0
  731. /package/{ebay-toast-dialog → @types/ebay-toast-dialog}/components/toast.d.ts +0 -0
  732. /package/{ebay-toast-dialog → @types/ebay-toast-dialog}/index.d.ts +0 -0
  733. /package/{ebay-tooltip → @types/ebay-tooltip}/ebay-tooltip-content.d.ts +0 -0
  734. /package/{ebay-tooltip → @types/ebay-tooltip}/ebay-tooltip-host.d.ts +0 -0
  735. /package/{ebay-tooltip → @types/ebay-tooltip}/ebay-tooltip.d.ts +0 -0
  736. /package/{ebay-tourtip → @types/ebay-tourtip}/ebay-tourtip-content.d.ts +0 -0
  737. /package/{ebay-tourtip → @types/ebay-tourtip}/ebay-tourtip-footer.d.ts +0 -0
  738. /package/{ebay-tourtip → @types/ebay-tourtip}/ebay-tourtip-heading.d.ts +0 -0
  739. /package/{ebay-tourtip → @types/ebay-tourtip}/ebay-tourtip-host.d.ts +0 -0
  740. /package/{ebay-tourtip → @types/ebay-tourtip}/ebay-tourtip.d.ts +0 -0
  741. /package/{ebay-tourtip → @types/ebay-tourtip}/index.d.ts +0 -0
  742. /package/{ebay-video → @types/ebay-video}/const.d.ts +0 -0
  743. /package/{ebay-video → @types/ebay-video}/controls.d.ts +0 -0
  744. /package/{ebay-video → @types/ebay-video}/index.d.ts +0 -0
  745. /package/{ebay-video → @types/ebay-video}/reportButton.d.ts +0 -0
  746. /package/{ebay-video → @types/ebay-video}/source.d.ts +0 -0
  747. /package/{ebay-video → @types/ebay-video}/types.d.ts +0 -0
  748. /package/{ebay-video → @types/ebay-video}/video.d.ts +0 -0
package/ebay-radio.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),N=require("classnames"),c=require("./icon-DK6eEQD8.js"),v=require("./label-CnrpYJ-g.js"),I=({size:r="default",checked:s,defaultChecked:d,className:i,style:m,id:o,onChange:u=()=>{},onFocus:h=()=>{},onKeyDown:y=()=>{},children:l,...E})=>{const g=a=>{var n;return u(a,{value:(n=a.target)==null?void 0:n.value})},b=a=>{var n;return h(a,{value:(n=a.target)==null?void 0:n.value})},_=a=>{const n=a.target;return y(a,{value:n==null?void 0:n.value})},k=N("radio",i,{"radio--large":r==="large"}),p=r==="large"?e.createElement(c.EbayIcon,{name:"radioChecked24",className:"radio__checked"}):e.createElement(c.EbayIcon,{name:"radioChecked18",className:"radio__checked"}),C=r==="large"?e.createElement(c.EbayIcon,{name:"radioUnchecked24",className:"radio__unchecked"}):e.createElement(c.EbayIcon,{name:"radioUnchecked18",className:"radio__unchecked"}),t=e.Children.toArray(l).find(a=>a.type===v.Label);return e.createElement(e.Fragment,null,e.createElement("span",{className:k,style:{...m,alignItems:"center"}},e.createElement("input",{...E,id:o,className:"radio__control",type:"radio",defaultChecked:d,checked:s,onChange:g,onFocus:b,onKeyDown:_}),e.createElement("span",{className:"radio__icon",hidden:!0},p,C)),t?e.cloneElement(t,{...t.props,position:"end",htmlFor:o}):l)};exports.EbayRadio=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ebay-radio/radio.js");exports.EbayRadio=e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),I=require("classnames"),m=require("./notice-content-C0ZStfuX.js"),T=require("./notice-content-9iF4T8uB.js"),s=require("./icon-DK6eEQD8.js"),y=require("./notice-footer-Cw1DMzoB.js"),_=({status:t="general",children:n,className:a,"aria-label":o,"aria-roledescription":u="Notice",a11yDismissText:d,educationIcon:S,iconClass:f,prominent:h,onDismiss:p=()=>{},...C})=>{const[g,$]=e.useState(!1),[E,q]=e.useState("");e.useEffect(()=>{q(s.randomId())},[]);const b=e.Children.toArray(n).find(({type:l})=>l===m.EbayNoticeContent),c=t!=="general"&&t!=="none",r=t==="education";let i=null;if(c&&(r?i=S||"lightbulb24":i=`${t}Filled16`),!b)throw new Error("EbaySectionNotice: Please use a EbayNoticeContent that defines the content of the notice");const F=l=>{$(!0),p(l)};return g?null:e.createElement("section",{...C,className:I(a,"section-notice",{[`section-notice--${t}`]:c,"section-notice--education":r&&h,"section-notice--large-icon":r}),role:"region","aria-label":c?null:o,"aria-labelledby":c?`section-notice-${t}-${E}`:null,"aria-roledescription":u},i&&e.createElement("div",{className:"section-notice__header",id:`section-notice-${t}-${E}`},e.createElement(s.EbayIcon,{className:f,name:i,a11yText:o,a11yVariant:"label"})),e.createElement(T.NoticeContent,{...b.props,type:"section"}),n,d&&e.createElement(N,null,e.createElement("button",{"aria-label":d,className:"fake-link page-notice__dismiss",onClick:F},e.createElement(s.EbayIcon,{name:"close16"}))))},k=({className:t,as:n,children:a,...o})=>e.createElement(y.NoticeTitle,{...o,className:t,as:n,type:"section"},a),N=({className:t,children:n})=>e.createElement(y.NoticeFooter,{className:t,type:"section"},n);exports.EbayNoticeContent=m.EbayNoticeContent;exports.EbaySectionNotice=_;exports.EbaySectionNoticeFooter=N;exports.EbaySectionNoticeTitle=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),I=require("classnames"),y=require("./notice-content-C0ZStfuX.js"),T=require("./notice-content-9iF4T8uB.js"),E=require("./icon-DEn4Lfbd.js"),A=require("./common/random-id.js"),b=require("./notice-footer-Cw1DMzoB.js"),F=require("./common/notice-utils/notice-cta.js"),k=({status:t="general",children:n,className:a,"aria-label":o,"aria-roledescription":u="Notice",a11yDismissText:s,educationIcon:S,iconClass:C,prominent:f,onDismiss:h=()=>{},...p})=>{const[g,q]=e.useState(!1),[d,_]=e.useState("");e.useEffect(()=>{_(A.randomId())},[]);const m=e.Children.toArray(n).find(({type:l})=>l===y.EbayNoticeContent),c=t!=="general"&&t!=="none",r=t==="education";let i=null;if(c&&(r?i=S||"lightbulb24":i=`${t}Filled16`),!m)throw new Error("EbaySectionNotice: Please use a EbayNoticeContent that defines the content of the notice");const $=l=>{q(!0),h(l)};return g?null:e.createElement("section",{...p,className:I(a,"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}-${d}`:null,"aria-roledescription":u},i&&e.createElement("div",{className:"section-notice__header",id:`section-notice-${t}-${d}`},e.createElement(E.EbayIcon,{className:C,name:i,a11yText:o,a11yVariant:"label"})),e.createElement(T.NoticeContent,{...m.props,type:"section"}),n,s&&e.createElement(N,null,e.createElement("button",{"aria-label":s,className:"fake-link page-notice__dismiss",onClick:$},e.createElement(E.EbayIcon,{name:"close16"}))))},v=({className:t,as:n,children:a,...o})=>e.createElement(b.NoticeTitle,{...o,className:t,as:n,type:"section"},a),N=({className:t,children:n})=>e.createElement(b.NoticeFooter,{className:t,type:"section"},n),w=({className:t,children:n})=>e.createElement(F,{className:t,type:"section"},n);exports.EbayNoticeContent=y.EbayNoticeContent;exports.EbaySectionNotice=k;exports.EbaySectionNoticeCTA=w;exports.EbaySectionNoticeFooter=N;exports.EbaySectionNoticeTitle=v;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),l=require("classnames"),s=require("./utils-C9NL3q0j.js"),v=({ctaText:e,href:t,className:n,...o})=>e?i.createElement("a",{...o,className:l("section-title__cta",n),href:t},e):null,T=({href:e,ctaText:t,className:n,children:o,...u})=>{const E=l(n,"section-title"),f=s.findComponent(o,c),b=s.findComponent(o,a),_=s.findComponent(o,r),S=s.findComponent(o,m);return i.createElement("div",{...u,className:E},i.createElement("div",{className:"section-title__title-container"},f||i.createElement(c,null,o),b),e&&i.createElement(v,{href:e,ctaText:t})||_||S)},c=({children:e,className:t,...n})=>i.createElement("h2",{...n,className:l(t,"section-title__title")},e),a=({children:e,className:t,...n})=>i.createElement("span",{...n,className:l(t,"section-title__subtitle")},e),r=({className:e,children:t,...n})=>i.createElement("div",{...n,className:l(e,"section-title__info")},t),m=({children:e,className:t,...n})=>i.createElement("div",{...n,className:l(t,"section-title__overflow")},e);exports.EbaySectionTitle=T;exports.EbaySectionTitleInfo=r;exports.EbaySectionTitleOverflow=m;exports.EbaySectionTitleSubtitle=a;exports.EbaySectionTitleTitle=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),l=require("classnames"),s=require("./common/component-utils/utils.js"),v=({ctaText:e,href:t,className:n,...i})=>e?o.createElement("a",{...i,className:l("section-title__cta",n),href:t},e):null,T=({href:e,ctaText:t,className:n,children:i,...u})=>{const E=l(n,"section-title"),_=s.findComponent(i,c),f=s.findComponent(i,a),b=s.findComponent(i,m),S=s.findComponent(i,r);return o.createElement("div",{...u,className:E},o.createElement("div",{className:"section-title__title-container"},_||o.createElement(c,null,i),f),e&&o.createElement(v,{href:e,ctaText:t})||b||S)},c=({children:e,className:t,...n})=>o.createElement("h2",{...n,className:l(t,"section-title__title")},e),a=({children:e,className:t,...n})=>o.createElement("span",{...n,className:l(t,"section-title__subtitle")},e),m=({className:e,children:t,...n})=>o.createElement("div",{...n,className:l(e,"section-title__info")},t),r=({children:e,className:t,...n})=>o.createElement("div",{...n,className:l(t,"section-title__overflow")},e);exports.EbaySectionTitle=T;exports.EbaySectionTitleInfo=m;exports.EbaySectionTitleOverflow=r;exports.EbaySectionTitleSubtitle=a;exports.EbaySectionTitleTitle=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),b=require("classnames"),d=require("./utils-C9NL3q0j.js"),i=require("./icon-DK6eEQD8.js"),E=({selected:o,children:n,className:u,...a})=>{const c=d.findComponent(n,i.EbayIcon),l=()=>{const r=d.excludeComponent(n,i.EbayIcon);return e.createElement("span",{className:"segmented-buttons__button-cell"},c,e.createElement("span",null,r))};return e.createElement("li",null,e.createElement("button",{className:b("segmented-buttons__button",u),"aria-current":o||void 0,...a},c?l():n))},x=({size:o,className:n,onChange:u=()=>{},children:a,...c})=>{const l=d.filterByType(a,E),[r,p]=e.useState(l.findIndex(t=>t.props.selected)||0),g=(t,s,m)=>{p(s),u(t,{index:s,value:m})};return e.createElement("div",{className:b("segmented-buttons",o&&`segmented-buttons--${o}`,n),...c},e.createElement("ul",null,l.map((t,s)=>{const{value:m,...y}=t.props;return e.cloneElement(t,{...y,onClick:S=>g(S,s,m),selected:s===r})})))};exports.EbaySegmentedButton=E;exports.EbaySegmentedButtons=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),b=require("classnames"),d=require("./common/component-utils/utils.js"),i=require("./icon-DEn4Lfbd.js"),p=({selected:s,children:n,className:u,...a})=>{const c=d.findComponent(n,i.EbayIcon),l=()=>{const r=d.excludeComponent(n,i.EbayIcon);return e.createElement("span",{className:"segmented-buttons__button-cell"},c,e.createElement("span",null,r))};return e.createElement("li",null,e.createElement("button",{className:b("segmented-buttons__button",u),"aria-current":s||void 0,...a},c?l():n))},_=({size:s,className:n,onChange:u=()=>{},children:a,...c})=>{const l=d.filterByType(a,p),[r,E]=e.useState(l.findIndex(t=>t.props.selected)||0),g=(t,o,m)=>{E(o),u(t,{index:o,value:m})};return e.createElement("div",{className:b("segmented-buttons",s&&`segmented-buttons--${s}`,n),...c},e.createElement("ul",null,l.map((t,o)=>{const{value:m,...y}=t.props;return e.cloneElement(t,{...y,onClick:S=>g(S,o,m),selected:o===r})})))};exports.EbaySegmentedButton=p;exports.EbaySegmentedButtons=_;
package/ebay-select.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),x=require("classnames"),F=require("./icon-DK6eEQD8.js"),P=require("./utils-C9NL3q0j.js"),R=require("./hooks-Ctier7Yv.js"),d=({children:e,...t})=>n.createElement("option",{...t},e),v=e=>typeof e<"u",T=({value:e,defaultValue:t,className:s,borderless:o,name:p,disabled:a,onChange:r=()=>{},onBlur:m=()=>{},onFocus:h=()=>{},floatingLabel:f,forwardedRef:y,children:E,inputSize:l,invalid:b,...i})=>{const c=b||i["aria-invalid"]==="true",[C,G]=n.useState(t),{label:S,Container:w,onBlur:N,onFocus:O,ref:q}=R.useFloatingLabel({ref:y,inputId:i.id,className:s,disabled:a,label:f,inputValue:e,inputSize:l,invalid:c}),B=u=>{const{value:g,selectedIndex:j}=u.target;v(e)||G(g),r(u,{index:j,selected:[g]})},k=u=>{m(u),N()},I=u=>{h(u),O()},L=x("select",s,{"select--borderless":o,"select--large":l==="large"});return n.createElement(w,null,S,n.createElement("span",{className:L},n.createElement("select",{...i,name:p,value:v(e)?e:C,disabled:a,onChange:B,onBlur:k,onFocus:I,ref:q},$(E)),n.createElement(F.EbayIcon,{name:"chevronDown12",height:"8",width:"8"})))},D=F.withForwardRef(T);function M(e){const t={};return e.forEach(s=>{const o=s.props;o.optgroup&&(Object.prototype.hasOwnProperty.call(t,o.optgroup)||(t[o.optgroup]=[]),t[o.optgroup].push(o))}),t}function $(e){const t=[],s=[];let o={},p=!1;const a=P.filterByType(e,d).map(r=>n.cloneElement(r,{}));if(a){o=M(a);let r;return a.forEach((m,h)=>{const{value:f,optionClassName:y,children:E,optgroup:l}=m.props;if(p=l&&t.indexOf(l)===-1,p){r=l;const i=o[r].map(c=>n.createElement(d,{key:`opt-${c.value}`,value:c.value,className:c.optionClassName},c.children));s.push(n.createElement("optgroup",{key:h,label:l},i)),t.push(l)}else l||s.push(n.createElement(d,{key:h,value:f,className:y},E))}),s}}exports.EbaySelect=D;exports.EbaySelectOption=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),L=require("classnames"),R=require("./icon-DEn4Lfbd.js"),U=require("./common/component-utils/forwardRef.js"),j=require("./common/component-utils/utils.js"),x=require("./common/floating-label-utils/hooks.js"),d=({children:e,...t})=>n.createElement("option",{...t},e),v=e=>typeof e<"u",P=({value:e,defaultValue:t,className:s,borderless:o,name:p,disabled:r,onChange:a=()=>{},onBlur:h=()=>{},onFocus:m=()=>{},floatingLabel:f,forwardedRef:b,children:y,inputSize:l,invalid:E,...u})=>{const c=E||u["aria-invalid"]==="true",[F,w]=n.useState(t),{label:C,Container:G,onBlur:S,onFocus:N,ref:O}=x.useFloatingLabel({ref:b,inputId:u.id,className:s,disabled:r,label:f,inputValue:e,inputSize:l,invalid:c}),q=i=>{const{value:g,selectedIndex:I}=i.target;v(e)||w(g),a(i,{index:I,selected:[g]})},_=i=>{h(i),S()},B=i=>{m(i),N()},k=L("select",s,{"select--borderless":o,"select--large":l==="large"});return n.createElement(G,null,C,n.createElement("span",{className:k},n.createElement("select",{...u,name:p,value:v(e)?e:F,disabled:r,onChange:q,onBlur:_,onFocus:B,ref:O},M(y)),n.createElement(R.EbayIcon,{name:"chevronDown12",height:"8",width:"8"})))},T=U.withForwardRef(P);function D(e){const t={};return e.forEach(s=>{const o=s.props;o.optgroup&&(Object.prototype.hasOwnProperty.call(t,o.optgroup)||(t[o.optgroup]=[]),t[o.optgroup].push(o))}),t}function M(e){const t=[],s=[];let o={},p=!1;const r=j.filterByType(e,d).map(a=>n.cloneElement(a,{}));if(r){o=D(r);let a;return r.forEach((h,m)=>{const{value:f,optionClassName:b,children:y,optgroup:l}=h.props;if(p=l&&t.indexOf(l)===-1,p){a=l;const u=o[a].map(c=>n.createElement(d,{key:`opt-${c.value}`,value:c.value,className:c.optionClassName},c.children));s.push(n.createElement("optgroup",{key:m,label:l},u)),t.push(l)}else l||s.push(n.createElement(d,{key:m,value:f,className:b},y))}),s}}exports.EbaySelect=T;exports.EbaySelectOption=d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("classnames"),e=require("react"),k=require("./dialog-previous-button-7ePoYWyj.js");require("./icon-button-BB6GFLm7.js");const f=({className:r,children:c,...l})=>e.createElement("button",{className:D(r,"fake-link"),...l},c),L=6e3,N=({className:r,onOpen:c=()=>{},onClose:l=()=>{},layout:S,open:i,children:h,onAction:u,...T})=>{const n=e.useRef(new Set),b=e.useRef(),[C,m]=e.useState(i),g=e.Children.toArray(h),o=g.find(t=>t.type===f),p=g.filter(t=>t.type!==f),s=()=>{clearTimeout(b.current)},d=()=>{m(!1),l()},E=()=>{n.current.size===0&&(s(),b.current=setTimeout(()=>{d()},L))},M=()=>{m(!0),c(),E()},q=()=>{s(),n.current.add("focus")},w=()=>{n.current.delete("focus"),E()},R=()=>{s(),n.current.add("mouseEnter")},v=()=>{n.current.delete("mouseEnter"),E()},B=t=>{var a,y;s(),u==null||u(t),(y=(a=o==null?void 0:o.props)==null?void 0:a.onClick)==null||y.call(a,t),d()};return e.useEffect(()=>()=>{s()},[]),e.useEffect(()=>{i?M():d()},[i]),e.createElement(k.DialogBaseWithState,{...T,open:C,isModal:!1,baseEl:"aside",classPrefix:"snackbar-dialog",transitionElement:"root",a11yCloseText:"",buttonPosition:"hidden",className:D(r,"snackbar-dialog--transition"),windowClass:S==="column"&&"snackbar-dialog__window--column",onFocus:q,onBlur:w,onMouseEnter:R,onMouseLeave:v},p,o?e.createElement(k.EbayDialogActions,null,e.cloneElement(o,{onClick:B})):null)};exports.EbaySnackbarDialog=N;exports.EbaySnackbarDialogAction=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("classnames"),e=require("react"),k=require("./dialog-previous-button-BuuaWh0J.js");require("./icon-button-BDXS3wjO.js");const f=({className:r,children:c,...l})=>e.createElement("button",{className:D(r,"fake-link"),...l},c),L=6e3,N=({className:r,onOpen:c=()=>{},onClose:l=()=>{},layout:S,open:i,children:h,onAction:u,...T})=>{const n=e.useRef(new Set),b=e.useRef(),[C,m]=e.useState(i),g=e.Children.toArray(h),o=g.find(t=>t.type===f),p=g.filter(t=>t.type!==f),s=()=>{clearTimeout(b.current)},d=()=>{m(!1),l()},E=()=>{n.current.size===0&&(s(),b.current=setTimeout(()=>{d()},L))},M=()=>{m(!0),c(),E()},q=()=>{s(),n.current.add("focus")},w=()=>{n.current.delete("focus"),E()},R=()=>{s(),n.current.add("mouseEnter")},v=()=>{n.current.delete("mouseEnter"),E()},B=t=>{var a,y;s(),u==null||u(t),(y=(a=o==null?void 0:o.props)==null?void 0:a.onClick)==null||y.call(a,t),d()};return e.useEffect(()=>()=>{s()},[]),e.useEffect(()=>{i?M():d()},[i]),e.createElement(k.DialogBaseWithState,{...T,open:C,isModal:!1,baseEl:"aside",classPrefix:"snackbar-dialog",transitionElement:"root",a11yCloseText:"",buttonPosition:"hidden",className:D(r,"snackbar-dialog--transition"),windowClass:S==="column"&&"snackbar-dialog__window--column",onFocus:q,onBlur:w,onMouseEnter:R,onMouseLeave:v},p,o?e.createElement(k.EbayDialogActions,null,e.cloneElement(o,{onClick:B})):null)};exports.EbaySnackbarDialog=N;exports.EbaySnackbarDialogAction=f;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),i=require("./utils-C9NL3q0j.js"),B=require("./button-o4ao46WM.js"),o=require("./ebay-menu-button.js"),q=require("./menu-DZU8jEPV.js");require("classnames");const M=({a11yMenuText:u,children:r,type:s,bodyState:t,a11yButtonLoadingText:l,onCollapse:c,onExpand:p,onSelect:b=()=>{},onChange:y=()=>{},ref:f,...e})=>{const a=[q.EbayMenuItem,o.EbayMenuButtonSeparator],m=i.filterBy(r,E=>!a.includes(E.type)),d=i.filterByType(r,a);return n.createElement("span",{className:"split-button"},n.createElement(B.EbayButton,{"aria-label":t==="loading"?l:void 0,...e,split:"start",bodyState:t==="expand"?void 0:t},m),n.createElement(o.EbayMenuButton,{priority:e.priority,disabled:e.disabled,transparent:e.transparent,size:e.size,type:s,split:"end",reverse:!0,a11yText:u,onCollapse:c,onExpand:p,onSelect:b,onChange:y},d))};exports.EbaySplitButton=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),a=require("./common/component-utils/utils.js"),B=require("./button-CbntI39l.js"),i=require("./ebay-menu-button.js"),q=require("./menu-DClVntri.js");require("classnames");const M=({a11yMenuText:u,children:r,type:s,bodyState:t,a11yButtonLoadingText:l,onCollapse:c,onExpand:p,onSelect:b=()=>{},onChange:m=()=>{},ref:f,...e})=>{const o=[q.EbayMenuItem,i.EbayMenuButtonSeparator],y=a.filterBy(r,E=>!o.includes(E.type)),d=a.filterByType(r,o);return n.createElement("span",{className:"split-button"},n.createElement(B.EbayButton,{"aria-label":t==="loading"?l:void 0,...e,split:"start",bodyState:t==="expand"?void 0:t},y),n.createElement(i.EbayMenuButton,{priority:e.priority,disabled:e.disabled,transparent:e.transparent,size:e.size,type:s,split:"end",reverse:!0,a11yText:u,onCollapse:c,onExpand:p,onSelect:b,onChange:m},d))};exports.EbaySplitButton=M;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),u=require("classnames"),m=require("./icon-DK6eEQD8.js"),v=require("./range-DOsPN0h5.js"),y=v.range(1,5),c=n=>{let t=parseInt(n,0)||0;return t>5&&(t=0),t},b=({value:n=0,a11yText:t,className:g,a11yStarText:o=[],disabled:s,onChange:d=()=>{},onFocus:_=()=>{},onKeyDown:f=()=>{},name:E=`star-rating-${m.randomId()}`,...p})=>{const[i,l]=a.useState(c(n));a.useEffect(()=>{l(c(n))},[n]);const h=e=>r=>{s||(l(c(e)),f(r,{value:e}))},k=e=>r=>{s||(l(c(e)),d(r,{value:e}))},N=e=>r=>{s||(l(c(e)),_(r,{value:e}))};return a.createElement("div",{role:t&&"radiogroup","aria-label":t,className:u("star-rating-select",g),...p},y.map(e=>a.createElement("span",{className:"star-rating-select__radio",key:e},a.createElement("input",{"aria-label":o==null?void 0:o[e-1],className:u("star-rating-select__control",{"star-rating-select__control--filled":e<=i}),type:"radio",name:E,value:e,disabled:s,defaultChecked:i===e,onClick:k(e),onFocus:N(e),onKeyDown:h(e)}),a.createElement("span",{className:"star-rating-select__radio-icon"},a.createElement(m.EbayIcon,{className:"star-rating__icon",name:"starDynamic"})))))};exports.EbayStarRatingSelect=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),u=require("classnames"),v=require("./icon-DEn4Lfbd.js"),y=require("./range-DOsPN0h5.js"),I=require("./common/random-id.js"),b=y.range(1,5),r=n=>{let a=parseInt(n,0)||0;return a>5&&(a=0),a},C=({value:n=0,a11yText:a,className:m,a11yStarText:l=[],disabled:s,onChange:g=()=>{},onFocus:d=()=>{},onKeyDown:_=()=>{},name:f,...p})=>{const E=I.useRandomId(),N=f||`star-rating-${E}`,[i,o]=t.useState(r(n));t.useEffect(()=>{o(r(n))},[n]);const h=e=>c=>{s||(o(r(e)),_(c,{value:e}))},k=e=>c=>{s||(o(r(e)),g(c,{value:e}))},q=e=>c=>{s||(o(r(e)),d(c,{value:e}))};return t.createElement("div",{role:a&&"radiogroup","aria-label":a,className:u("star-rating-select",m),...p},b.map(e=>t.createElement("span",{className:"star-rating-select__radio",key:e},t.createElement("input",{"aria-label":l==null?void 0:l[e-1],className:u("star-rating-select__control",{"star-rating-select__control--filled":e<=i}),type:"radio",name:N,value:e,disabled:s,defaultChecked:i===e,onClick:k(e),onFocus:q(e),onKeyDown:h(e)}),t.createElement("span",{className:"star-rating-select__radio-icon"},t.createElement(v.EbayIcon,{className:"star-rating__icon",name:"starDynamic"})))))};exports.EbayStarRatingSelect=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("classnames"),i=require("./icon-DK6eEQD8.js"),o=require("./range-DOsPN0h5.js"),l=o.range(1,5),m=({value:e,a11yText:t,className:r,...s})=>a.createElement("div",{role:"img","aria-label":t,className:c("star-rating",r),"data-stars":e,...s},l.map(n=>a.createElement(i.EbayIcon,{key:n,className:"star-rating__icon",name:"starDynamic"})));exports.EbayStarRating=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("classnames"),i=require("./icon-DEn4Lfbd.js"),o=require("./range-DOsPN0h5.js"),l=o.range(1,5),m=({value:e,a11yText:t,className:r,...s})=>a.createElement("div",{role:"img","aria-label":t,className:c("star-rating",r),"data-stars":e,...s},l.map(n=>a.createElement(i.EbayIcon,{key:n,className:"star-rating__icon",name:"starDynamic"})));exports.EbayStarRating=m;
package/ebay-tabs.js CHANGED
@@ -1 +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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),m=require("classnames"),h=require("./common/event-utils.js"),_=require("./common/component-utils/utils.js"),E=({children:l,index:c,parentId:n,selected:r,focused:o,className:d,refCallback:i,...b})=>a.createElement("div",{...b,ref:i,"aria-controls":`${n||"default"}-tabpanel-${c}`,"aria-selected":r,className:m(d,"tabs__item"),id:`${n||"default"}-tab-${c}`,role:"tab",tabIndex:o?0:-1},a.createElement("span",null,l)),x=({children:l,index:c,parentId:n,selected:r,className:o,...d})=>a.createElement("div",{...d,"aria-labelledby":`default-tab-${c}`,className:m(o,"tabs__panel"),id:`${n||"default"}-tabpanel-${c}`,role:"tabpanel",hidden:!r},a.createElement("div",{className:"tabs__cell"},l)),q=({id:l,className:c,index:n=0,size:r="medium",activation:o="auto",onSelect:d=()=>{},onTabSelect:i=()=>{},children:b})=>{const I=[],[f,N]=a.useState(n),[p,T]=a.useState(n),u=e=>{d({selectedIndex:e}),i(e),N(e)},$=(e,t)=>{h.handleActionKeydown(e,()=>{e.preventDefault(),o==="manual"&&u(t)}),h.handleLeftRightArrowsKeydown(e,()=>{var g;e.preventDefault();const s=_.filterByType(b,E).length,P=["Left","ArrowLeft"].includes(e.key)?-1:1,y=((p===void 0?f:p)+s+P)%s;T(y),(g=I[y])==null||g.focus(),o!=="manual"&&u(y)})};a.useEffect(()=>{u(n)},[n]);const v=r==="large",w=_.filterByType(b,E).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=>{$(s,t)}})),S=_.filterByType(b,x).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:m(c,"tabs")},a.createElement("div",{className:m("tabs__items",{"tabs__items--large":v}),role:"tablist"},w),a.createElement("div",{className:"tabs__content"},S))};exports.EbayTab=E;exports.EbayTabPanel=x;exports.EbayTabs=q;
package/ebay-textbox.js CHANGED
@@ -1 +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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./textbox-PCHsZ_Dx.js"),x=require("./common/floating-label-utils/hooks.js");exports.EbayTextbox=e.EbayTextbox;exports.EbayTextboxPostfixIcon=e.EbayTextboxPostfixIcon;exports.EbayTextboxPostfixText=e.EbayTextboxPostfixText;exports.EbayTextboxPrefixIcon=e.EbayTextboxPrefixIcon;exports.EbayTextboxPrefixText=e.EbayTextboxPrefixText;exports.useFloatingLabel=x.useFloatingLabel;
@@ -1 +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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),s=require("classnames"),i=require("./dialog-previous-button-BuuaWh0J.js");require("./icon-button-BDXS3wjO.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;
package/ebay-tooltip.js CHANGED
@@ -1 +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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("./common/component-utils/utils.js"),t=require("./use-tooltip-DasQr8Xw.js");require("classnames");require("./icon-DEn4Lfbd.js");require("./array.polyfill.flat-5BAolFdk.js");const c=require("./common/tooltip-utils/constants.js"),u=()=>null,E=()=>null,N=({className:m,pointer:y,overlayStyle:f,noHover:i,onFocus:h=()=>{},onBlur:b=()=>{},onMouseEnter:d=()=>{},onMouseLeave:O=()=>{},onExpand:_,onCollapse:R,children:l,...C})=>{const{isExpanded:I,expandTooltip:s,collapseTooltip:r}=t.useTooltip({onCollapse:R,onExpand:_}),n=e.useRef(),q=o=>{d(o),i||(clearTimeout(n.current),s())},P=o=>{O(o),i||(clearTimeout(n.current),n.current=setTimeout(()=>{r()},300))},F=o=>{h(o),s()},L=o=>{b(o),r()},p=a.findComponent(l,u),T=a.findComponent(l,E);if(!T)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,{...C,className:m,type:"tooltip",isExpanded:I,onFocus:F,onBlur:L,onMouseEnter:q,onMouseLeave:P},e.createElement(t.TooltipHost,{...T.props}),e.createElement(t.TooltipContent,{...p.props,type:"tooltip",style:f,pointer:y}))};exports.Tooltip=t.Tooltip;exports.TooltipFooter=t.TooltipFooter;exports.DEFAULT_POINTER_DIRECTION=c.DEFAULT_POINTER_DIRECTION;exports.POINTER_STYLES=c.POINTER_STYLES;exports.EbayTooltip=N;exports.EbayTooltipContent=u;exports.EbayTooltipHost=E;
package/ebay-tourtip.js CHANGED
@@ -1 +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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),i=require("./common/component-utils/utils.js"),n=require("./use-tooltip-DasQr8Xw.js"),_=require("classnames");require("./icon-DEn4Lfbd.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:_("tourtip__heading",a)},r)},F=({a11yCloseText:e,"aria-label":r,className:a,children:o,onCollapse:s,onExpand:m,overlayStyle:b,pointer:h,...C})=>{const p=t.useRef(),{isExpanded:u,collapseTooltip:g}=n.useTooltip({onExpand:m,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:b,type:"tourtip"},R,q,E&&t.createElement(n.TooltipFooter,{type:"tourtip"},E)))};exports.Tooltip=n.Tooltip;exports.EbayTourtip=F;exports.EbayTourtipContent=T;exports.EbayTourtipFooter=y;exports.EbayTourtipHeading=f;exports.EbayTourtipHost=d;
package/ebay-video.js CHANGED
@@ -1 +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;
1
+ "use strict";var Q=Object.defineProperty;var X=(n,r,o)=>r in n?Q(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o;var T=(n,r,o)=>X(n,typeof r!="symbol"?r+"":r,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),b=require("classnames"),d=require("shaka-player/dist/shaka-player.ui"),Z=require("./common/component-utils/utils.js"),_=require("./icon-DEn4Lfbd.js"),ee=require("./progress-spinner-DoPMRkS9.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"]},oe=({callback:n,children:r})=>e.createElement("button",{className:"video-player__report-button",ref:n},e.createElement(_.EbayIcon,{name:"flag24"}),r);function ae(n=()=>{}){const r=class extends d.ui.Element{constructor(o,u,y){super(o,u);const i=document.createElement("div"),E=()=>{const m=i.firstChild;o.appendChild(m),i.remove(),this.eventManager.listen(m,"click",n)};te.createRoot(i).render(e.createElement(oe,{callback:E},y))}};return r.Factory=class{constructor(o){T(this,"reportText");this.reportText=o}create(o,u){return new r(o,u,this.reportText)}},{Report:r}}const le=({width:n,height:r,thumbnail:o,action:u,muted:y,playView:i="inline",a11yLoadText:E,a11yPlayText:m,reportText:R,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,U]=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 a;!f.length||!s.current||(v(!1),s.current.load((a=f[t])==null?void 0:a.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,a=N.current;if(!(!t||!a)&&(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,a,t,R),p.current.configure({addBigPlayButton:!0,controlPanelElements:[],addSeekBar:!1}),!I){const{Report:c}=ae($);d.ui.Controls.registerElement("report",new c.Factory(R))}g(),ce(a)}},[]),e.useEffect(()=>{switch(u){case"play":l.current.play();break;case"pause":l.current.pause();break}},[u]);const W=()=>{if(!p.current)return;const t=A?{controlPanelElements:se(V.controlPanelElements)}:{};p.current.configure({...V,...t}),l.current.controls=!1},Y=t=>{t.stopPropagation(),W(),i==="fullscreen"&&l.current.requestFullscreen(),U(!0),z(t,{player:s.current})},G=()=>{l.current.play()},J=t=>{const a=t.currentTarget;F(t,{volume:Math.round((a.volume+Number.EPSILON)*100)/100,muted:a.muted})},K=()=>{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:G,className:"shaka-play-button",style:{opacity:1,zIndex:999},"aria-label":m},e.createElement(_.EbayIcon,{name:"playFilled64Colored"}))),e.createElement("div",{className:"video-player__container",ref:N},e.createElement("video",{ref:l,style:O,poster:o,muted:y||!1,onPlaying:Y,onPause:K,onVolumeChange:J,...D},f.map((t,a)=>e.createElement("source",{key:a,...t})))),e.createElement("div",{className:b("video-player__overlay",{"video-player__overlay--hidden":!h})},e.createElement(_.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,o=[...n];return o.splice(r,0,"volume"),o}function ce(n){const r=n.querySelectorAll(".shaka-spinner")[0];r&&r.setAttribute("hidden","")}exports.EbayVideo=le;exports.EbayVideoSource=w;
@@ -0,0 +1,13 @@
1
+ # events
2
+
3
+ Utils functions to handle events in your application.
4
+
5
+ ## Usage
6
+
7
+ ```jsx
8
+ import {
9
+ handleEnterKeydown,
10
+ useKeyPress,
11
+ ...
12
+ } from '@ebay/ui-core-react/events'
13
+ ```
package/events.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/event-utils.js"),n=require("./use-roving-index-DoAVBgsp.js");exports.addEventListener=e.addEventListener;exports.handleActionKeydown=e.handleActionKeydown;exports.handleEnterKeydown=e.handleEnterKeydown;exports.handleEscapeKeydown=e.handleEscapeKeydown;exports.handleLeftRightArrowsKeydown=e.handleLeftRightArrowsKeydown;exports.handleResize=e.handleResize;exports.handleTextInput=e.handleTextInput;exports.handleUpDownArrowsKeydown=e.handleUpDownArrowsKeydown;exports.isActionKey=e.isActionKey;exports.preventDefaultIfHijax=e.preventDefaultIfHijax;exports.removeEventListener=e.removeEventListener;exports.wrapEvent=e.wrapEvent;exports.useKeyPress=n.useKeyPress;exports.useRovingIndex=n.useRovingIndex;
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react"),N=require("classnames"),g=require("./common/component-utils/forwardRef.js");require("./array.polyfill.flat-5BAolFdk.js");const w=require("./common/random-id.js"),p=({name:o,className:n,noSkinClasses:e=!1,a11yText:t,a11yVariant:a,forwardedRef:l,...d})=>{const[m,u]=r.useState("");r.useEffect(()=>{u(w.randomId())},[]);const c=a==="label",i=t&&`icon-title-${m}`,f=t?{"aria-labelledby":c?void 0:i,"aria-label":c?t:void 0,role:"img"}:{"aria-hidden":!0},s=h(o),b=["icon",`icon--${E(s)||s}`,$(s)].filter(Boolean).join(" "),I=N(n,{[b]:!e});return r.createElement("svg",{...d,className:I,xmlns:"http://www.w3.org/2000/svg",focusable:!1,ref:l,...f},t&&!c&&r.createElement("title",{id:i},t),r.createElement("use",{xlinkHref:`#icon-${s}`}))};function E(o){const n=o.split("-"),e=n[n.length-1];return e==="colored"?n[n.length-2]:isNaN(Number(e))?"":e}function $(o){const n=o.split("-"),e=n.indexOf("filled");return e===-1?"":`icon--${n.slice(0,e+1).join("-")}`}function h(o){return o.replace(/([0-9]+)/g,(n,e)=>`-${e}`).replace(/([A-Z])/g,(n,e)=>`-${e.toLowerCase()}`)}const q=g.withForwardRef(p);exports.EbayIcon=q;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react"),w=require("classnames"),$=require("./icon-DEn4Lfbd.js"),d=require("./badge-CoHKfiPt.js"),k=require("./common/component-utils/forwardRef.js");require("./array.polyfill.flat-5BAolFdk.js");const B=({href:c,icon:m,badgeNumber:o,badgeAriaLabel:y,transparent:E,className:b,forwardedRef:a,size:r,onEscape:q=()=>{},onKeyDown:p=()=>{},...s})=>{const n=c?"icon-link":"icon-btn",i=w(b,n,r&&`${n}--${r}`,{[`${n}--badged`]:o,[`${n}--transparent`]:E}),l=e.createElement(e.Fragment,null,e.createElement($.EbayIcon,{name:m}),o&&e.createElement(d.EbayBadge,{type:"icon",number:o,"aria-label":y})),u=t=>{(t.key==="Escape"||t.key==="Esc")&&q(t),p(t)};return c?e.createElement("a",{ref:a,className:i,href:c,onKeyDown:u,...s},l):e.createElement("button",{ref:a,type:"button",className:i,onKeyDown:u,...s},l)},I=k.withForwardRef(B);exports.EbayIconButton=I;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("react"),V=require("classnames"),U=require("./use-roving-index-DoAVBgsp.js"),S=require("./common/event-utils.js"),T=require("./common/component-utils/forwardRef.js");require("./array.polyfill.flat-5BAolFdk.js");const $=require("./badge-CoHKfiPt.js"),j=require("./icon-DEn4Lfbd.js"),A=({className:d,checked:r,type:I,focused:a=!1,tabIndex:p,disabled:y,badgeNumber:f,badgeAriaLabel:h,children:v,...w})=>{const u=t.useRef(null),i=f!==void 0;t.useEffect(()=>{u.current&&a&&u.current.focus()},[u,a]);const x=["radio","checkbox"];return t.createElement("div",{"aria-label":h,...w,ref:u,className:V(d,"menu__item",i&&"menu__item--badged"),role:z(I),"aria-checked":x.includes(I)?r:void 0,"aria-disabled":y,tabIndex:a?0:p},t.createElement("span",{"aria-hidden":i},v,i&&t.createElement($.EbayBadge,{type:"menu",number:f})),t.createElement(j.EbayIcon,{name:"tick16"}))};function z(d){return{radio:"menuitemradio",checkbox:"menuitemcheckbox"}[d]||"menuitem"}const G=({baseEl:d="span",type:r,priority:I="secondary",checked:a,className:p,autofocus:y,onClick:f=()=>{},onKeyDown:h=()=>{},onChange:v=()=>{},onSelect:w=()=>{},forwardedRef:u,children:i,...x})=>{const m=t.Children.toArray(i),[C,q]=U.useRovingIndex(i,A,y===!0?0:void 0),[l,F]=t.useState(m.map(()=>!1)),B=n=>m.reduce((e,c,s)=>n[s]?[...e,c.props.value]:e,[]),g=n=>n.reduce((e,c,s)=>c?[...e,s]:e,[]),_=(n,e)=>({index:n,checked:g(e)}),R=(n,e)=>({..._(n,e),indexes:g(e),checkedValues:B(e)}),M=(n,e,c=!1)=>{let s=!1;const b=l.map((E,o)=>{const P=c?!1:E;return n===o?(E!==e&&(s=!0),e):P});if(s)return F(b),b},k=n=>{switch(r){case"radio":return M(n,!0,!0);case"checkbox":return M(n,!l[n],!1);default:return l.map((e,c)=>c===n)}};t.useEffect(()=>{if(r==="radio")if(a===void 0){const n=m.findIndex(e=>e.props.checked);n>-1&&k(n)}else k(a);else r==="checkbox"&&F(m.map(n=>!!n.props.checked))},[]);const K=(n,e,c)=>{switch(r){case"radio":case"checkbox":return v(n,R(e,c));default:return w(n,_(e,c))}},D=(n,e)=>{let c;switch(S.isActionKey(n.key)&&(c=k(e),c&&K(n,e,c)),r){case"radio":case"checkbox":return h(n,R(e,c||l));default:return h(n,_(e,c||l))}},N=(n,e)=>{q(e);const c=k(e);c&&K(n,e,c)};return t.createElement(d,{...x,className:V(p,"menu")},t.createElement("div",{className:"menu__items",role:"menu",ref:u},m.map((n,e)=>{const{onClick:c=()=>{},onFocus:s=()=>{},onKeyDown:b=()=>{},...E}=n.props;return t.cloneElement(n,{...E,type:r,focused:e===C,tabIndex:C===void 0?0:-1,checked:l[e],onFocus:o=>{q(e),s(o)},onClick:o=>{N(o,e),c(o),f(o)},onKeyDown:o=>{D(o,e),b(o)}})})))},H=T.withForwardRef(G);exports.EbayMenu=H;exports.EbayMenuItem=A;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react"),E=require("classnames"),f=({className:a,itemMatchesUrl:c=!0,onKeyDown:s=()=>{},onSelect:u=()=>{},children:l,...o})=>{const i=e.Children.toArray(l),m=c===!1?"true":"page";return e.createElement("div",{...o,className:E(a,"fake-menu")},e.createElement("ul",{className:"fake-menu__items",tabIndex:-1},i.map((t,r)=>{const{current:d,onClick:k=()=>{},...y}=t.props;return e.createElement("li",{key:r},e.cloneElement(t,{...y,"aria-current":d?m:void 0,onClick:n=>{u(n,{index:r}),k(n)},onKeyDown:n=>{s(n,{index:r})}}))})))};exports.EbayFakeMenu=f;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react"),s=require("classnames"),l=require("./common/component-utils/utils.js"),K=require("./common/event-utils.js"),T=require("./common/random-id.js"),D=require("./button-CbntI39l.js"),R=require("./icon-DEn4Lfbd.js"),U=require("./icon-button-BDXS3wjO.js"),z=require("./menu-_LzP6yje.js"),H=require("./ebay-fake-menu/menu-item.js"),p=H,y=({className:a,...r})=>e.createElement("hr",{...r,className:s(a,"menu-button__separator"),role:"separator"}),_=({children:a})=>e.createElement(e.Fragment,null,a),P=({a11yText:a,noToggleIcon:r,fixWidth:k,reverse:B,variant:i,expanded:M=!1,className:I,onCollapse:q=()=>{},onExpand:v=()=>{},onMouseDown:F=()=>{},onSelect:w=()=>{},text:d="",children:c,...x})=>{const[o,m]=e.useState(M),[b,N]=e.useState(),u=e.useRef(),f=l.findComponent(c,R.EbayIcon),C=l.findComponent(c,_)||(f?e.createElement("span",null,d):d),S=l.filterByType(c,[p,y]);e.useEffect(()=>{const n=t=>{u.current&&!u.current.contains(t.currentTarget)&&m(!1)};return o?(v(),setTimeout(()=>{document.addEventListener("click",n,!1)})):o===!1&&q(),()=>document.removeEventListener("click",n,!1)},[o]),e.useEffect(()=>{N(T.randomId())},[]);const h=n=>{K.handleEscapeKeydown(n,()=>{var t;m(!1),(t=u.current)==null||t.focus()})},L=s("fake-menu-button__menu",{"menu-button__menu--fix-width":k,"menu-button__menu--reverse":B}),E={ref:u,className:"fake-menu-button__button","aria-expanded":!!o,"aria-haspopup":!0,"aria-label":a,"aria-controls":b,onClick:()=>m(!o),...x};return e.createElement("span",{className:s("fake-menu-button",I)},i==="overflow"?e.createElement(U.EbayIconButton,{icon:"overflowHorizontal24",...E}):e.createElement(D.EbayButton,{variant:i==="form"?"form":void 0,bodyState:r?void 0:"expand",...E},f,C),o&&e.createElement(z.EbayFakeMenu,{className:L,id:b,tabIndex:-1,onKeyDown:h,onSelect:w},S.map((n,t)=>e.cloneElement(n,{...n.props,onMouseDown:g=>{F(g,{index:t})},className:s(n.props.className,"fake-menu-button__item"),key:t,autoFocus:t===0}))))};exports.EbayFakeMenuButtonItem=p;exports.EbayFakeMenuButtonLabel=_;exports.EbayMenuButton=P;exports.EbayMenuButtonSeparator=y;
package/package.json CHANGED
@@ -1,14 +1,85 @@
1
1
  {
2
2
  "name": "@ebay/ui-core-react",
3
- "version": "7.2.0",
3
+ "version": "7.2.2-alpha.0",
4
4
  "description": "Skin components build off React",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"
7
7
  },
8
8
  "exports": {
9
+ "./ebay-dialog-base/components/animation": {
10
+ "types": "./@types/ebay-dialog-base/components/animation.d.ts",
11
+ "default": "./ebay-dialog-base/components/animation.js"
12
+ },
13
+ "./ebay-dialog-base/components/dialog-header": {
14
+ "types": "./@types/ebay-dialog-base/components/dialog-header.d.ts",
15
+ "default": "./ebay-dialog-base/components/dialog-header.js"
16
+ },
17
+ "./ebay-dialog-base/components/dialog-footer": {
18
+ "types": "./@types/ebay-dialog-base/components/dialog-footer.d.ts",
19
+ "default": "./ebay-dialog-base/components/dialog-footer.js"
20
+ },
21
+ "./ebay-notice-base/components/*": {
22
+ "types": "./@types/ebay-notice-base/index.d.ts",
23
+ "default": "./ebay-notice-base.js"
24
+ },
25
+ "./common/component-utils/forwardRef": {
26
+ "types": "./@types/common/component-utils/forwardRef.d.ts",
27
+ "default": "./common/component-utils/forwardRef.js"
28
+ },
29
+ "./common/component-utils/utils": {
30
+ "types": "./@types/common/component-utils/utils.d.ts",
31
+ "default": "./common/component-utils/utils.js"
32
+ },
33
+ "./common/component-utils": {
34
+ "types": "./@types/common/component-utils/index.d.ts",
35
+ "default": "./common/component-utils.js"
36
+ },
37
+ "./common/event-utils/types": {
38
+ "types": "./@types/common/event-utils/event-utils/types.d.ts"
39
+ },
40
+ "./common/event-utils": {
41
+ "types": "./@types/common/event-utils/event-utils/index.d.ts",
42
+ "default": "./common/event-utils/event-utils.js"
43
+ },
44
+ "./common/floating-label-utils": {
45
+ "types": "./@types/common/floating-label-utils/hooks.d.ts",
46
+ "default": "./common/floating-label-utils/hooks.js"
47
+ },
48
+ "./common/notice-utils/notice-cta": {
49
+ "types": "./@types/common/notice-utils/notice-cta.d.ts",
50
+ "default": "./common/notice-utils/notice-cta.js"
51
+ },
52
+ "./common/random-id": {
53
+ "types": "./@types/common/random-id.d.ts",
54
+ "default": "./common/random-id.js"
55
+ },
56
+ "./common/tooltip-utils/constants": {
57
+ "types": "./@types/common/tooltip-utils/constants.d.ts",
58
+ "default": "./common/tooltip-utils/constants.js"
59
+ },
60
+ "./common/tooltip-utils/types": {
61
+ "types": "./@types/common/tooltip-utils/types.d.ts"
62
+ },
63
+ "./common/tooltip-utils": {
64
+ "types": "./@types/common/tooltip-utils/index.d.ts",
65
+ "default": "./common/tooltip-utils.js"
66
+ },
67
+ "./ebay-radio/radio": {
68
+ "types": "./@types/ebay-radio/radio.d.ts",
69
+ "default": "./ebay-radio/radio.js"
70
+ },
71
+ "./ebay-fake-menu-button/menu-button": {
72
+ "types": "./@types/ebay-fake-menu-button/menu-button.d.ts",
73
+ "default": "./ebay-fake-menu-button/menu-button.js"
74
+ },
75
+ "./ebay-fake-menu/menu-item": {
76
+ "types": "./@types/ebay-fake-menu/menu-item.d.ts",
77
+ "default": "./ebay-fake-menu/menu-item.js"
78
+ },
79
+
9
80
  "./package.json": "./package.json",
10
81
  "./*": {
11
- "types": "./*/index.d.ts",
82
+ "types": "./@types/*/index.d.ts",
12
83
  "default": "./*.js"
13
84
  }
14
85
  },
@@ -1 +1 @@
1
- "use strict";const s=require("react"),l=require("classnames"),i=require("./icon-DK6eEQD8.js"),t={default:"",small:"progress-spinner--small",large:"progress-spinner--large"},c={default:"spinner24",small:"spinner20",large:"spinner30"},o=({size:e="default","aria-label":r="Busy",className:a,...n})=>s.createElement("span",{...n,className:l("progress-spinner",t[e],a),"aria-label":r,role:"img"},s.createElement(i.EbayIcon,{name:c[e]}));exports.EbayProgressSpinner=o;
1
+ "use strict";const s=require("react"),l=require("classnames"),i=require("./icon-DEn4Lfbd.js"),t={default:"",small:"progress-spinner--small",large:"progress-spinner--large"},c={default:"spinner24",small:"spinner20",large:"spinner30"},o=({size:e="default","aria-label":r="Busy",className:a,...n})=>s.createElement("span",{...n,className:l("progress-spinner",t[e],a),"aria-label":r,role:"img"},s.createElement(i.EbayIcon,{name:c[e]}));exports.EbayProgressSpinner=o;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("react"),ue=require("classnames"),xe=require("./common/component-utils/forwardRef.js"),p=require("./common/component-utils/utils.js"),v=require("./icon-DEn4Lfbd.js"),be=require("./icon-button-BDXS3wjO.js"),de=require("./common/floating-label-utils/hooks.js"),P=({name:n,buttonAriaLabel:a,onClick:c=()=>{},...r})=>a?t.createElement(be.EbayIconButton,{"aria-label":a,icon:n,transparent:!0,onClick:c,...r}):t.createElement(v.EbayIcon,{name:n,...r}),w=n=>t.createElement("span",{...n}),B=({name:n,...a})=>t.createElement(v.EbayIcon,{name:n,...a}),_=n=>t.createElement("span",{...n}),m=n=>typeof n<"u",pe=({type:n="text",invalid:a,fluid:c,multiline:r,onChange:q=()=>{},onInputChange:F=()=>{},onFocus:N=()=>{},onBlur:K=()=>{},onKeyPress:k=()=>{},onKeyUp:U=()=>{},onKeyDown:L=()=>{},onInvalid:R=()=>{},onFloatingLabelInit:D=()=>{},onButtonClick:j=()=>{},autoFocus:E,defaultValue:f="",value:i,forwardedRef:M,inputSize:y="default",floatingLabel:O,children:u,placeholder:S,opaqueLabel:V,...s})=>{var T,h;const[I,W]=t.useState(f),[g,$]=t.useState(f),{label:G,Container:H,onBlur:J,onFocus:Q,ref:X,placeholder:Y}=de.useFloatingLabel({ref:M,inputId:s.id,className:s.className,disabled:s.disabled,label:O,inputSize:y,inputValue:i||g,placeholder:S,invalid:a,type:n,opaqueLabel:V,onMount:D}),C=e=>{var o;N(e,{value:((o=e==null?void 0:e.target)==null?void 0:o.value)||f}),Q()},Z=e=>{var l;const o=(l=e.target)==null?void 0:l.value;K(e,{value:o}),o!==I&&(q(e,{value:o}),W(o)),J()},z=e=>{const o=e.target;k(e,{value:o==null?void 0:o.value})},A=e=>{const o=e.target;U(e,{value:o==null?void 0:o.value})},ee=e=>{const o=e.target;L(e,{value:o==null?void 0:o.value})},oe=e=>{const o=e.target;R(e,{value:o==null?void 0:o.value})},ne=e=>{j(e,{value:I})};t.useEffect(()=>{E&&C()},[]);const te=e=>{var l;const o=(l=e.target)==null?void 0:l.value;m(i)||$(o),F(e,{value:o})},ae=r?"textarea":"input",se=c?"div":"span",le=p.findComponent(u,B),x=p.findComponent(u,_),ce=(T=x==null?void 0:x.props)==null?void 0:T.id,b=p.findComponent(u,P),d=p.findComponent(u,w),re=(h=d==null?void 0:d.props)==null?void 0:h.id,ie=ue("textbox",s.className,{"textbox--fluid":c,"textbox--large":y==="large","textbox--disabled":s.disabled,"textbox--invalid":a,"textbox--readonly":s.readOnly});return t.createElement(H,null,G,t.createElement(se,{className:ie},le,x,t.createElement(ae,{"aria-describedby":[ce,re].filter(Boolean).join(" ")||void 0,...s,className:"textbox__control",type:n,"aria-invalid":a,value:m(i)?i:g,onChange:te,onBlur:Z,onFocus:C,onKeyPress:z,onKeyUp:A,onKeyDown:ee,onInvalid:oe,autoFocus:E,ref:X,placeholder:Y}),d,b&&t.cloneElement(b,{...b.props,onClick:e=>{const{onClick:o=()=>{}}=b.props;o(e),ne(e)}})))},fe=xe.withForwardRef(pe);exports.EbayTextbox=fe;exports.EbayTextboxPostfixIcon=P;exports.EbayTextboxPostfixText=w;exports.EbayTextboxPrefixIcon=B;exports.EbayTextboxPrefixText=_;exports.isControlled=m;
@@ -0,0 +1 @@
1
+ "use strict";const o=require("react"),v=()=>{const[w,i]=o.useState(!1),[c,e]=o.useState(!1),s=({key:t})=>{const r={ArrowUp:i,ArrowDown:e}[t];r&&r(!1)},d=({key:t})=>{const r={ArrowUp:i,ArrowDown:e}[t];r&&r(!0)};return o.useEffect(()=>(window.addEventListener("keydown",d),window.addEventListener("keyup",s),()=>{window.removeEventListener("keydown",d),window.removeEventListener("keyup",s)}),[]),[w,c]},y=(w,i,c)=>{const[e,s]=o.useState(c),[d,t]=v(),r=o.Children.toArray(w).reduce((n,p,x)=>p.type===i?[...n,x]:n,[]),u=r.indexOf(e),a=()=>{if(u===-1)return e;const n=r[u-1];return n===void 0?e:n},f=()=>{if(u===-1)return e;const n=r[u+1];return n===void 0?e:n};return o.useEffect(()=>{d&&s(a()),t&&s(f())},[d,t]),[e,s]};exports.useKeyPress=v;exports.useRovingIndex=y;
@@ -0,0 +1 @@
1
+ "use strict";const o=require("react"),E=require("classnames"),N=require("./common/component-utils/forwardRef.js"),p=require("./common/component-utils/utils.js"),f=require("./icon-DEn4Lfbd.js"),_=require("./common/tooltip-utils/constants.js"),u=({children:e,className:t,forwardedRef:l,...n})=>(o.Children.only(e),o.cloneElement(e,{ref:l,...n,className:E(t,e.props.className)})),C=({className:e,type:t,isExpanded:l,children:n,forwardedRef:s,...r})=>{var m;const i=p.findComponent(n,u),c=p.excludeComponent(n,u)[0];if(!i)throw new Error("Tooltip: Please use a TooltipHost that defines the host of the tooltip");const a=o.cloneElement(i,{className:`${t}__host`,"aria-expanded":l,"aria-describedby":(m=c==null?void 0:c.props)==null?void 0:m.id,...i.props});return o.createElement("span",{...r,ref:s,className:E(e,t,{[`${t}--expanded`]:l})},a,c)},$=N.withForwardRef(C),b=()=>null,T=({children:e,className:t,type:l="tourtip"})=>o.createElement("div",{className:E(`${l}__footer`,t)},e),x=({id:e,style:t,pointer:l=_.DEFAULT_POINTER_DIRECTION,children:n,type:s="tooltip",showCloseButton:r,a11yCloseText:i,onClose:c})=>{const a=p.findComponent(n,b),m=p.findComponent(n,T),d=p.excludeComponent(n,T);return o.createElement("span",{className:`${s}__overlay`,id:e,role:_.TYPE_ROLES[s]||null,style:{..._.POINTER_STYLES[l],...t}},o.createElement("span",{className:`${s}__pointer ${s}__pointer--${l}`}),o.createElement("span",{className:`${s}__mask`},o.createElement("span",{className:`${s}__cell`},o.createElement("span",{className:`${s}__content`},d),r?o.createElement("button",{...a==null?void 0:a.props,className:`icon-btn icon-btn--transparent ${s}__close`,type:"button","aria-label":i,onClick:c},o.createElement(f.EbayIcon,{name:"close16"})):null,m)))},q=({onExpand:e,onCollapse:t,initialExpanded:l=!1,hostRef:n})=>{const[s,r]=o.useState(l);return{isExpanded:s,expandTooltip:()=>{r(!0),e&&e()},collapseTooltip:()=>{var a;r(!1),t&&t(),(a=n==null?void 0:n.current)==null||a.focus()}}};exports.Tooltip=$;exports.TooltipContent=x;exports.TooltipFooter=T;exports.TooltipHost=u;exports.useTooltip=q;
@@ -0,0 +1,15 @@
1
+ # utils
2
+
3
+ This is a collection of utility function to help you with your projects.
4
+
5
+ ## Usage
6
+
7
+ ```jsx
8
+ import {
9
+ useRandomId,
10
+ filterBy,
11
+ filterByType,
12
+ findComponent,
13
+ ...
14
+ } from '@ebay/ui-core-react/utils'
15
+ ```
package/utils.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./common/random-id.js"),n=require("./debounce-BQsYxxOL.js"),t=require("./common/component-utils/forwardRef.js"),e=require("./common/component-utils/utils.js");exports.useRandomId=o.useRandomId;exports.debounce=n.debounce;exports.withForwardRef=t.withForwardRef;exports.excludeComponent=e.excludeComponent;exports.filterBy=e.filterBy;exports.filterByType=e.filterByType;exports.findComponent=e.findComponent;
@@ -1 +0,0 @@
1
- "use strict";const t=require("react"),k=require("classnames"),l=require("./icon-DK6eEQD8.js");require("./array.polyfill.flat-5BAolFdk.js");const P=require("./progress-spinner-CDgxI8R_.js"),O={cta:"cta-",fake:"fake-",expand:"expand-",default:""},y=({type:n="default",children:a,...r})=>t.createElement("span",{className:`${O[n]}btn__cell`,...r},t.createElement(t.Fragment,null,a)),R=()=>t.createElement(y,null,t.createElement(P.EbayProgressSpinner,null)),T=({className:n,children:a})=>t.createElement("span",{className:k(n,"btn__text")},a),j=({children:n})=>n?t.createElement(y,null,t.createElement(T,null,n),t.createElement(l.EbayIcon,{name:"chevronDown12"})):t.createElement(l.EbayIcon,{name:"chevronDown12"}),G=({priority:n="secondary",variant:a="standard",size:r="regular",bodyState:m,split:D,transparent:N=!1,fluid:q=!1,disabled:E,partiallyDisabled:C,children:o,onKeyDown:S=()=>{},onEscape:I=()=>{},truncate:_=!1,href:c,className:h,forwardedRef:d,borderless:p,fixedHeight:$,...b})=>{const e=c?"fake-btn":"btn",F={primary:`${e}--primary`,secondary:`${e}--secondary`,tertiary:`${e}--tertiary`,none:""},i={large:`${e}--large`,small:`${e}--small`,regular:"",default:""},L={start:`${e}--split-start`,end:`${e}--split-end`},A=a==="destructive",u=a==="form",f=m==="loading",g=m==="expand",K=u&&(J(o)||g&&!o),B=k(e,h,F[u||p?"none":n],i[r],L[D],A&&`${e}--destructive`,u&&`${e}--form`,K&&`${e}--slim`,N&&`${e}--transparent`,q&&`${e}--fluid`,_&&`${e}--truncated`,p&&`${e}--borderless`,$&&(i[r]?`${i[r]}-${$}`:`${e}--fixed-height`)),v=s=>{S(s),(s.key==="Escape"||s.key==="Esc")&&I(s)},x=H(o,{isLoading:f,isExpand:g}),w=f?"polite":null;return c?t.createElement("a",{className:B,href:E?void 0:c,ref:d,onKeyDown:v,"aria-live":w,...b},x):t.createElement("button",{disabled:E,"aria-disabled":C,"aria-live":w,className:B,ref:d,onKeyDown:v,...b},x)};function H(n,{isLoading:a,isExpand:r}){switch(!0){case a:return t.createElement(R,null);case r:return t.createElement(j,null,n);default:return n}}function J(n){const a=t.Children.toArray(n);return a.length===1&&a[0].type===l.EbayIcon}const M=l.withForwardRef(G);exports.EbayButton=M;exports.EbayButtonCell=y;
@@ -1 +0,0 @@
1
- {"version":3,"file":"array.polyfill.flat.d.ts","sourceRoot":"","sources":["../../../src/common/component-utils/array.polyfill.flat.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"forwardRef.d.ts","sourceRoot":"","sources":["../../../src/common/component-utils/forwardRef.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAc,MAAM,OAAO,CAAA;AAO7C,eAAO,MAAM,cAAc,6IAO1B,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/component-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare function usePrevious<T>(value: T): T;
2
- //# sourceMappingURL=usePrevious.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePrevious.d.ts","sourceRoot":"","sources":["../../../src/common/component-utils/usePrevious.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAQ1C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/common/component-utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,uBAAuB,CAAA;AAE9B,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAc,EAAE,aAAa,EAAE,EAAE,GAAG,YAAY,GAAG,SAAS,CAGhG;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAc,EAAE,aAAa,EAAE,EAAE,GAAG,YAAY,EAAE,CAGzF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAc,EAAE,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,YAAY,EAAE,CAI5F;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAc,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,OAAO,GAAG,YAAY,EAAE,CAGxG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../src/common/debounce.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,SAAQ,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,EACvE,EAAE,EAAE,CAAC,EACL,EAAE,EAAE,MAAM,GACX,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAOlC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/event-utils/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAE7B,KAAK,QAAQ,GAAG,MAAM,IAAI,CAAA;AAqB1B,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAInF;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAIpF;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAE7C;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAEpF;AAED,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAE1F;AAED,wBAAgB,4BAA4B,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAE7F;AAGD,wBAAgB,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAwBhF;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAIlF;AAED,KAAK,OAAO,GAAG,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;AAIzC,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAKnE;AACD,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAKtE;AACD,wBAAgB,YAAY,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI,CAanD;AAED,wBAAgB,SAAS,CAAC,kBAAkB,EAAE,OAAkB,EAAE,iBAAiB,EAAE,OAAO,OAC7E,aAAa,KAAG,IAAI,CAMlC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/common/event-utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE1F,KAAK,YAAY,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAA;AAElF,KAAK,cAAc,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,GAAG,GAAG,QAAQ,GACvG,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAA;AAC5C,KAAK,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,KAAK,CAAA;AAMlE,MAAM,MAAM,GAAG,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAEpE,KAAK,gBAAgB,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAExF,MAAM,MAAM,gBAAgB,CAAC,WAAW,GAAG,OAAO,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACjF,gBAAgB,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC;AAC/D,MAAM,MAAM,qBAAqB,CAAC,WAAW,GAAG,OAAO,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACtF,gBAAgB,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC;AAC3D,MAAM,MAAM,wBAAwB,CAAC,WAAW,GAAG,OAAO,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACzF,gBAAgB,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC;AAC9D,MAAM,MAAM,sBAAsB,CAAC,WAAW,GAAG,OAAO,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACvF,gBAAgB,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC;AAC5D,MAAM,MAAM,qBAAqB,CAAC,WAAW,GAAG,OAAO,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACtF,gBAAgB,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-key-press.d.ts","sourceRoot":"","sources":["../../../src/common/event-utils/use-key-press.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,QAAO,CAAC,OAAO,EAAE,OAAO,CAiCxC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-roving-index.d.ts","sourceRoot":"","sources":["../../../src/common/event-utils/use-roving-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAE,EAAE,EAAgB,SAAS,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAA;AAG5G,QAAA,MAAM,cAAc,aACN,SAAS,iBACJ,EAAE,iBACF,MAAM,KACtB,CAAC,MAAM,EAAE,SAAS,eAAe,MAAM,CAAC,CAAC,CA+B3C,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/common/floating-label-utils/hooks.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA+B,EAAE,EAAE,SAAS,EAAe,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGjH,KAAK,QAAQ,GAAG,SAAS,CAAC,iBAAiB,GAAG,mBAAmB,GAAG,gBAAgB,CAAC,GAAG,GAAG,CAAA;AAC3F,KAAK,sBAAsB,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAChC,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,EAAE,CAAC;QAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IACxC,GAAG,EAAE,QAAQ,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACvB,CAAA;AA4CD,wBAAgB,gBAAgB,CAAC,EAC7B,GAAG,EACH,OAAO,EACP,SAAS,EACT,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,IAAI,EACJ,OAAkB,EACrB,EAAG,sBAAsB,GAAG,uBAAuB,CA8EnD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notice-content.d.ts","sourceRoot":"","sources":["../../../src/common/notice-utils/notice-content.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG5C,MAAM,MAAM,kBAAkB,GAAG;IAC7B,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAA;AAED,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAOzC,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notice-cta.d.ts","sourceRoot":"","sources":["../../../src/common/notice-utils/notice-cta.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjC,KAAK,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG;IAC3C,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,KAAK,CAIxB,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notice-footer.d.ts","sourceRoot":"","sources":["../../../src/common/notice-utils/notice-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjC,KAAK,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG;IAC3C,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CAI3B,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notice-title.d.ts","sourceRoot":"","sources":["../../../src/common/notice-utils/notice-title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjC,KAAK,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,GAAG;IAC/C,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAA;AAED,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,KAAK,CAO1B,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const randomId: () => string;
2
- //# sourceMappingURL=random-id.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"random-id.d.ts","sourceRoot":"","sources":["../../src/common/random-id.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,QAAO,MAA8C,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/common/range.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,MAAM,QAAO,MAAM,oBAAY,MAAM,EACwB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEvD,eAAO,MAAM,yBAAyB,EAAE,gBAA2B,CAAA;AAEnE,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIlD,CAAA;AAED,eAAO,MAAM,cAAc,EAAE;KAAG,GAAG,IAAI,gBAAgB,GAAG,GAAG;CAqF5D,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC5D,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip-close-button.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/tooltip-close-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE1B;;;GAGG;AAEH,QAAA,MAAM,kBAAkB,EAAE,EAAe,CAAA;AAEzC,eAAe,kBAAkB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip-content.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/tooltip-content.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG3D,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAKvD,MAAM,MAAM,mBAAmB,GAAG;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAA;AAED,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAwC3C,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip-footer.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/tooltip-footer.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjD,KAAK,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAA;AAED,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAK4C,CAAA;AAEtF,eAAe,aAAa,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip-host.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/tooltip-host.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0B,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG3E,MAAM,MAAM,gBAAgB,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;CACjC,CAAA;AAED,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAYrC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,cAAc,EAAM,SAAS,EAAE,MAAM,OAAO,CAAA;AAI1E,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGrC,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAChD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CAC7C,CAAA;;AAqCD,wBAAsC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE3D,MAAM,MAAM,gBAAgB,GACxB,KAAK,GAAG,UAAU,GAAG,WAAW,GAChC,OAAO,GAAG,cAAc,GAAG,WAAW,GACtC,QAAQ,GAAG,aAAa,GAAG,cAAc,GACzC,MAAM,GAAG,aAAa,GAAG,UAAU,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-tooltip.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/use-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAE3C,KAAK,cAAc,GAAG;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;CACpC,CAAC;AAEF,KAAK,UAAU,GAAG;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,UAAU,uDAAgE,cAAc,KAAG,UAuBvG,CAAA"}
@@ -1 +0,0 @@
1
- "use strict";const n=require("react"),ne=require("react-remove-scroll"),_=require("classnames"),re=require("makeup-screenreader-trap"),ae=require("makeup-keyboard-trap"),G=require("./icon-DK6eEQD8.js"),oe=require("./icon-button-BB6GFLm7.js");function J(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const L=J(re),A=J(ae),F=({children:t,...e})=>n.createElement("h2",{...e},t),$=({children:t})=>n.createElement(n.Fragment,null,t),q=({children:t})=>n.createElement(n.Fragment,null,t);function ie({open:t,classPrefix:e,transitionElement:r,dialogRef:o,dialogWindowRef:d,enabled:u,onTransitionEnd:i}){const c=n.useRef(!0);n.useLayoutEffect(()=>{if(!u)return;let s=[d,o];r==="window"?s=[d]:r==="root"&&(s=[o]);let l;return t?l=ce({dialog:o,waitFor:s,classPrefix:e,onTransitionEnd:i}):c.current||(l=se({dialog:o,waitFor:s,classPrefix:e,onTransitionEnd:i})),c.current=!1,()=>{l&&l()}},[t,u])}function ce({dialog:t,waitFor:e,classPrefix:r,onTransitionEnd:o}){return M(t,e,`${r}--show`,o)}function se({dialog:t,waitFor:e,classPrefix:r,onTransitionEnd:o}){return M(t,e,`${r}--hide`,o)}function M(t,e,r,o){if(!t.current||!r)return;let d=0;const u=e?e.length:0,i=`${r}-init`;return t.current.classList.add(i),le(()=>{t.current&&(t.current.classList.add(r),t.current.classList.remove(i),e.forEach(c=>{const s=()=>{var l,f;++d===u&&((l=t.current)==null||l.classList.remove(r),o(),(f=c.current)==null||f.removeEventListener("transitionend",s))};c.current.addEventListener("transitionend",s,{once:!0})}))})}function le(t){let e,r;return window.requestAnimationFrame?(e=window.requestAnimationFrame(()=>{e=window.requestAnimationFrame(t)}),r=window.cancelAnimationFrame):(e=window.setTimeout(t,26),r=window.clearTimeout),()=>{e&&(r(e),e=void 0)}}const ue=({baseEl:t="div",classPrefix:e="drawer-dialog",windowClass:r,windowType:o,mainId:d,top:u,header:i,buttonPosition:c="right",children:s,ariaLabelledby:l,a11yCloseText:f,onCloseBtnClick:w=()=>{},footer:b,actions:g,onScroll:T,open:a=!1,onOpen:h=()=>{},onBackgroundClick:k=()=>{},ignoreEscape:Q,closeButton:U,previousButton:V,isModal:p,role:X="dialog",focus:O,transitionElement:Y,animated:S,closeButtonClass:Z,...C})=>{var K;const I=n.useRef(null),E=n.useRef(null),j=n.useRef(null),[x,P]=n.useState("");n.useEffect(()=>{P(G.randomId())},[]),n.useEffect(()=>{let m;const y=v=>{E.current&&!E.current.contains(v.target)&&k(v)};return a&&c!=="hidden"&&(m=window.setTimeout(()=>{document.addEventListener("click",y,!1)})),()=>{clearTimeout(m),document.removeEventListener("click",y,!1)}},[k,a]),n.useEffect(()=>(a&&p?(L.trap(E.current),A.trap(E.current)):(L.untrap(),A.untrap()),()=>{L.untrap(),A.untrap()}),[a,p]),ie({open:a,classPrefix:e,transitionElement:Y,dialogRef:I,dialogWindowRef:E,enabled:S,onTransitionEnd:()=>H(a)});const D=m=>{!Q&&m.key==="Escape"&&(m.stopPropagation(),w(m))};n.useEffect(()=>{S||H(a),a&&h()},[a]);function H(m){var y,v;if(m)return O?(y=O.current)==null||y.focus():p&&((v=j.current)==null||v.focus()),document.addEventListener("keydown",D,!1),()=>document.removeEventListener("keydown",D,!1)}const W=c!=="hidden"&&n.createElement("button",{ref:j,className:_("icon-btn",Z,`${e}__close`,{"icon-btn--transparent":e==="toast-dialog"}),type:"button","aria-label":f,onClick:w},U||n.createElement(G.EbayIcon,{name:"close16"})),ee=o?`${e}__${o}-window`:`${e}__window`,z=((K=i==null?void 0:i.props)==null?void 0:K.id)||`dialog-title-${x}`,te=l||z,B=i?n.cloneElement(i,{...i.props,id:z}):null;return n.createElement(t,{...C,"aria-labelledby":te,"aria-modal":"true",role:X,hidden:!a,className:_(e,C.className),"aria-live":p?void 0:"polite",ref:I,onKeyDown:D},n.createElement("div",{className:_(ee,r),ref:E},u,B&&n.createElement("div",{className:`${e}__header`},V,c==="right"&&B,c!=="bottom"&&W,(c==="left"||c==="hidden")&&B),n.createElement("div",{id:d,className:`${e}__main`,onScroll:T},s),g?n.createElement("div",{className:`${e}__actions`},g):null,b||c==="bottom"?n.createElement("div",{className:`${e}__footer`},b,c==="bottom"&&W):null))},de=({isModal:t,open:e,children:r,animated:o=!0,...d})=>{const u=t!==!1,i=n.Children.toArray(r),c=i.find(a=>a.type===F),s=i.find(a=>a.type===$),l=i.find(a=>a.type===N),f=i.find(a=>a.type===q),w=i.find(a=>a.type===R),b=i.filter(a=>![F,$,q,N,R].some(h=>h===a.type)),g=n.createElement(ue,{...d,open:e,isModal:u,header:c,footer:s,actions:l,closeButton:f,previousButton:w,animated:o},b);return o||e?u?n.createElement(ne.RemoveScroll,{enabled:e},g):g:null},N=({children:t})=>n.createElement(n.Fragment,null,t),R=({className:t,icon:e,...r})=>n.createElement(oe.EbayIconButton,{...r,icon:e||"chevronLeft16",className:_(t,"lightbox-dialog__prev")});exports.DialogBaseWithState=de;exports.EbayDialogActions=N;exports.EbayDialogCloseButton=q;exports.EbayDialogFooter=$;exports.EbayDialogHeader=F;exports.EbayDialogPreviousButton=R;
@@ -1 +0,0 @@
1
- "use strict";const o=require("react"),m=require("classnames"),i=require("./dialog-previous-button-7ePoYWyj.js");require("./icon-button-BB6GFLm7.js");const y=30,t="drawer-dialog",q=({expanded:l=!1,noHandle:T,onClose:d=()=>{},onCollapsed:D=()=>{},onExpanded:_=()=>{},a11yMaximizeText:b,a11yMinimizeText:p,children:H,...u})=>{let a=[];const[s,w]=o.useState(l);o.useEffect(()=>{w(l)},[l]);const c=e=>{w(e),e?_():D()},S=e=>{a=Array.from(e.changedTouches).map(({identifier:r,pageY:n})=>({identifier:r,pageY:n}))},h=e=>{Array.from(e.changedTouches).forEach(({identifier:r})=>{const n=a.findIndex(f=>f.identifier===r);n>-1&&a.splice(n,1)})},x=e=>{a.length&&Array.from(e.changedTouches).forEach(({identifier:r,pageY:n})=>{const f=a.findIndex($=>$.identifier===r),E=n-a[f].pageY;E>y?(s?c(!1):d(),h(e)):E<-y&&(c(!0),h(e))})},C=T?null:o.createElement("button",{"aria-label":s?p:b,className:`${t}__handle`,onClick:()=>c(!s),onScroll:()=>c(!0),onTouchStart:S,onTouchMove:x,onTouchEnd:h,type:"button"}),g=o.Children.toArray(H),k=g.find(({type:e})=>e===i.EbayDialogHeader),A=g.filter(({type:e})=>e!==i.EbayDialogHeader);return o.createElement(i.DialogBaseWithState,{...u,classPrefix:t,onCloseBtnClick:d,className:m(u.className,`${t}--mask-fade-slow`),windowClass:m(u.windowClass,`${t}__window`,`${t}__window--slide`,{[`${t}__window--expanded`]:s}),onBackgroundClick:d,top:C},k||o.createElement(i.EbayDialogHeader,null),A)};exports.EbayDrawerDialog=q;
@@ -1 +0,0 @@
1
- {"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-alert-dialog/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAU,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,eAAe,EAAyC,MAAM,qBAAqB,CAAA;AAK5F,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,KAAK,CAqC9B,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-alert-dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/ebay-badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAA;AAEnD,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAClD,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAmBjC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"breadcrumb-item.d.ts","sourceRoot":"","sources":["../../src/ebay-breadcrumbs/breadcrumb-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG/E,KAAK,cAAc,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAErE,KAAK,mBAAmB,GAAG,cAAc,GAAG;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,GAAG,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAqB3C,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/ebay-breadcrumbs/breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA0B,cAAc,EAAE,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAElG,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAE9D,KAAK,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IAC7D;;;;;OAKG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAC;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;CAC5C,CAAA;AAED,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,eAAe,CAwCpC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-breadcrumbs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"button-cell.d.ts","sourceRoot":"","sources":["../../src/ebay-button/button-cell.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjD,KAAK,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;AACvD,KAAK,KAAK,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAClC,IAAI,CAAC,EAAE,UAAU,CAAC;CACrB,CAAA;AASD,QAAA,MAAM,cAAc,EAAC,EAAE,CAAC,KAAK,CAI0D,CAAA;AAEvF,eAAe,cAAc,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"button-expand.d.ts","sourceRoot":"","sources":["../../src/ebay-button/button-expand.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAK5C,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,CAU9C,CAAA;AAEL,eAAe,gBAAgB,CAAA"}