@ebay/ui-core-react 1.0.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 (524) hide show
  1. package/README.md +186 -0
  2. package/common/component-utils/forwardRef.d.ts +3 -0
  3. package/common/component-utils/forwardRef.d.ts.map +1 -0
  4. package/common/component-utils/forwardRef.js +45 -0
  5. package/common/component-utils/index.d.ts +3 -0
  6. package/common/component-utils/index.d.ts.map +1 -0
  7. package/common/component-utils/index.js +14 -0
  8. package/common/component-utils/usePrevious.d.ts +2 -0
  9. package/common/component-utils/usePrevious.d.ts.map +1 -0
  10. package/common/component-utils/usePrevious.js +12 -0
  11. package/common/component-utils/utils.d.ts +6 -0
  12. package/common/component-utils/utils.d.ts.map +1 -0
  13. package/common/component-utils/utils.js +37 -0
  14. package/common/debounce.d.ts +2 -0
  15. package/common/debounce.d.ts.map +1 -0
  16. package/common/debounce.js +26 -0
  17. package/common/event-utils/index.d.ts +15 -0
  18. package/common/event-utils/index.d.ts.map +1 -0
  19. package/common/event-utils/index.js +118 -0
  20. package/common/event-utils/types.d.ts +6 -0
  21. package/common/event-utils/types.d.ts.map +1 -0
  22. package/common/event-utils/types.js +2 -0
  23. package/common/event-utils/use-key-press.d.ts +3 -0
  24. package/common/event-utils/use-key-press.d.ts.map +1 -0
  25. package/common/event-utils/use-key-press.js +35 -0
  26. package/common/event-utils/use-roving-index.d.ts +4 -0
  27. package/common/event-utils/use-roving-index.d.ts.map +1 -0
  28. package/common/event-utils/use-roving-index.js +44 -0
  29. package/common/notice-utils/notice-content.d.ts +9 -0
  30. package/common/notice-utils/notice-content.d.ts.map +1 -0
  31. package/common/notice-utils/notice-content.js +13 -0
  32. package/common/notice-utils/notice-footer.d.ts +8 -0
  33. package/common/notice-utils/notice-footer.d.ts.map +1 -0
  34. package/common/notice-utils/notice-footer.js +34 -0
  35. package/common/notice-utils/notice-title.d.ts +9 -0
  36. package/common/notice-utils/notice-title.d.ts.map +1 -0
  37. package/common/notice-utils/notice-title.js +35 -0
  38. package/common/random-id.d.ts +2 -0
  39. package/common/random-id.d.ts.map +1 -0
  40. package/common/random-id.js +4 -0
  41. package/common/tooltip-utils/constants-legacy.d.ts +10 -0
  42. package/common/tooltip-utils/constants-legacy.d.ts.map +1 -0
  43. package/common/tooltip-utils/constants-legacy.js +16 -0
  44. package/common/tooltip-utils/constants.d.ts +6 -0
  45. package/common/tooltip-utils/constants.d.ts.map +1 -0
  46. package/common/tooltip-utils/constants.js +86 -0
  47. package/common/tooltip-utils/index.d.ts +8 -0
  48. package/common/tooltip-utils/index.d.ts.map +1 -0
  49. package/common/tooltip-utils/index.js +16 -0
  50. package/common/tooltip-utils/tooltip-close-button.d.ts +8 -0
  51. package/common/tooltip-utils/tooltip-close-button.d.ts.map +1 -0
  52. package/common/tooltip-utils/tooltip-close-button.js +8 -0
  53. package/common/tooltip-utils/tooltip-content.d.ts +15 -0
  54. package/common/tooltip-utils/tooltip-content.d.ts.map +1 -0
  55. package/common/tooltip-utils/tooltip-content.js +33 -0
  56. package/common/tooltip-utils/tooltip-host.d.ts +8 -0
  57. package/common/tooltip-utils/tooltip-host.d.ts.map +1 -0
  58. package/common/tooltip-utils/tooltip-host.js +35 -0
  59. package/common/tooltip-utils/tooltip.d.ts +10 -0
  60. package/common/tooltip-utils/tooltip.d.ts.map +1 -0
  61. package/common/tooltip-utils/tooltip.js +74 -0
  62. package/common/tooltip-utils/types.d.ts +3 -0
  63. package/common/tooltip-utils/types.d.ts.map +1 -0
  64. package/common/tooltip-utils/types.js +2 -0
  65. package/common/tooltip-utils/use-tooltip.d.ts +13 -0
  66. package/common/tooltip-utils/use-tooltip.d.ts.map +1 -0
  67. package/common/tooltip-utils/use-tooltip.js +25 -0
  68. package/ebay-alert-dialog/README.md +32 -0
  69. package/ebay-alert-dialog/alert-dialog.d.ts +11 -0
  70. package/ebay-alert-dialog/alert-dialog.d.ts.map +1 -0
  71. package/ebay-alert-dialog/alert-dialog.js +62 -0
  72. package/ebay-alert-dialog/index.d.ts +2 -0
  73. package/ebay-alert-dialog/index.d.ts.map +1 -0
  74. package/ebay-alert-dialog/index.js +4 -0
  75. package/ebay-badge/README.md +36 -0
  76. package/ebay-badge/badge.d.ts +9 -0
  77. package/ebay-badge/badge.d.ts.map +1 -0
  78. package/ebay-badge/badge.js +36 -0
  79. package/ebay-badge/index.d.ts +2 -0
  80. package/ebay-badge/index.d.ts.map +1 -0
  81. package/ebay-badge/index.js +4 -0
  82. package/ebay-breadcrumbs/README.md +48 -0
  83. package/ebay-breadcrumbs/breadcrumb-item.d.ts +14 -0
  84. package/ebay-breadcrumbs/breadcrumb-item.d.ts.map +1 -0
  85. package/ebay-breadcrumbs/breadcrumb-item.js +38 -0
  86. package/ebay-breadcrumbs/breadcrumbs.d.ts +17 -0
  87. package/ebay-breadcrumbs/breadcrumbs.d.ts.map +1 -0
  88. package/ebay-breadcrumbs/breadcrumbs.js +71 -0
  89. package/ebay-breadcrumbs/index.d.ts +3 -0
  90. package/ebay-breadcrumbs/index.d.ts.map +1 -0
  91. package/ebay-breadcrumbs/index.js +6 -0
  92. package/ebay-button/README.md +57 -0
  93. package/ebay-button/button-cell.d.ts +8 -0
  94. package/ebay-button/button-cell.d.ts.map +1 -0
  95. package/ebay-button/button-cell.js +40 -0
  96. package/ebay-button/button-loading.d.ts +4 -0
  97. package/ebay-button/button-loading.d.ts.map +1 -0
  98. package/ebay-button/button-loading.js +11 -0
  99. package/ebay-button/button.d.ts +19 -0
  100. package/ebay-button/button.d.ts.map +1 -0
  101. package/ebay-button/button.js +83 -0
  102. package/ebay-button/index.d.ts +4 -0
  103. package/ebay-button/index.d.ts.map +1 -0
  104. package/ebay-button/index.js +6 -0
  105. package/ebay-button/types.d.ts +4 -0
  106. package/ebay-button/types.d.ts.map +1 -0
  107. package/ebay-button/types.js +2 -0
  108. package/ebay-checkbox/README.md +46 -0
  109. package/ebay-checkbox/checkbox.d.ts +10 -0
  110. package/ebay-checkbox/checkbox.d.ts.map +1 -0
  111. package/ebay-checkbox/checkbox.js +79 -0
  112. package/ebay-checkbox/index.d.ts +2 -0
  113. package/ebay-checkbox/index.d.ts.map +1 -0
  114. package/ebay-checkbox/index.js +4 -0
  115. package/ebay-confirm-dialog/README.md +34 -0
  116. package/ebay-confirm-dialog/confirm-dialog.d.ts +13 -0
  117. package/ebay-confirm-dialog/confirm-dialog.d.ts.map +1 -0
  118. package/ebay-confirm-dialog/confirm-dialog.js +63 -0
  119. package/ebay-confirm-dialog/index.d.ts +2 -0
  120. package/ebay-confirm-dialog/index.d.ts.map +1 -0
  121. package/ebay-confirm-dialog/index.js +4 -0
  122. package/ebay-cta-button/README.md +34 -0
  123. package/ebay-cta-button/cta-button.d.ts +12 -0
  124. package/ebay-cta-button/cta-button.d.ts.map +1 -0
  125. package/ebay-cta-button/cta-button.js +41 -0
  126. package/ebay-cta-button/index.d.ts +2 -0
  127. package/ebay-cta-button/index.d.ts.map +1 -0
  128. package/ebay-cta-button/index.js +4 -0
  129. package/ebay-dialog/README.md +4 -0
  130. package/ebay-dialog-base/README.md +36 -0
  131. package/ebay-dialog-base/components/animation.d.ts +14 -0
  132. package/ebay-dialog-base/components/animation.d.ts.map +1 -0
  133. package/ebay-dialog-base/components/animation.js +99 -0
  134. package/ebay-dialog-base/components/dialog-close-button.d.ts +4 -0
  135. package/ebay-dialog-base/components/dialog-close-button.d.ts.map +1 -0
  136. package/ebay-dialog-base/components/dialog-close-button.js +11 -0
  137. package/ebay-dialog-base/components/dialog-footer.d.ts +7 -0
  138. package/ebay-dialog-base/components/dialog-footer.d.ts.map +1 -0
  139. package/ebay-dialog-base/components/dialog-footer.js +11 -0
  140. package/ebay-dialog-base/components/dialog-header.d.ts +5 -0
  141. package/ebay-dialog-base/components/dialog-header.d.ts.map +1 -0
  142. package/ebay-dialog-base/components/dialog-header.js +33 -0
  143. package/ebay-dialog-base/components/dialogBase.d.ts +31 -0
  144. package/ebay-dialog-base/components/dialogBase.d.ts.map +1 -0
  145. package/ebay-dialog-base/components/dialogBase.js +149 -0
  146. package/ebay-dialog-base/dialog-base-with-state.d.ts +5 -0
  147. package/ebay-dialog-base/dialog-base-with-state.d.ts.map +1 -0
  148. package/ebay-dialog-base/dialog-base-with-state.js +68 -0
  149. package/ebay-dialog-base/index.d.ts +6 -0
  150. package/ebay-dialog-base/index.d.ts.map +1 -0
  151. package/ebay-dialog-base/index.js +10 -0
  152. package/ebay-drawer-dialog/README.md +60 -0
  153. package/ebay-drawer-dialog/components/drawer.d.ts +18 -0
  154. package/ebay-drawer-dialog/components/drawer.d.ts.map +1 -0
  155. package/ebay-drawer-dialog/components/drawer.js +120 -0
  156. package/ebay-drawer-dialog/index.d.ts +2 -0
  157. package/ebay-drawer-dialog/index.d.ts.map +1 -0
  158. package/ebay-drawer-dialog/index.js +4 -0
  159. package/ebay-eek/README.md +34 -0
  160. package/ebay-eek/eek-rating.d.ts +11 -0
  161. package/ebay-eek/eek-rating.d.ts.map +1 -0
  162. package/ebay-eek/eek-rating.js +25 -0
  163. package/ebay-eek/eek-util.d.ts +4 -0
  164. package/ebay-eek/eek-util.d.ts.map +1 -0
  165. package/ebay-eek/eek-util.js +33 -0
  166. package/ebay-eek/index.d.ts +2 -0
  167. package/ebay-eek/index.d.ts.map +1 -0
  168. package/ebay-eek/index.js +4 -0
  169. package/ebay-expand-button/README.md +36 -0
  170. package/ebay-expand-button/expand-button.d.ts +13 -0
  171. package/ebay-expand-button/expand-button.d.ts.map +1 -0
  172. package/ebay-expand-button/expand-button.js +73 -0
  173. package/ebay-expand-button/index.d.ts +2 -0
  174. package/ebay-expand-button/index.d.ts.map +1 -0
  175. package/ebay-expand-button/index.js +4 -0
  176. package/ebay-field/README.md +53 -0
  177. package/ebay-field/description.d.ts +9 -0
  178. package/ebay-field/description.d.ts.map +1 -0
  179. package/ebay-field/description.js +38 -0
  180. package/ebay-field/enums.d.ts +20 -0
  181. package/ebay-field/enums.d.ts.map +1 -0
  182. package/ebay-field/enums.js +27 -0
  183. package/ebay-field/field.d.ts +10 -0
  184. package/ebay-field/field.d.ts.map +1 -0
  185. package/ebay-field/field.js +13 -0
  186. package/ebay-field/index.d.ts +6 -0
  187. package/ebay-field/index.d.ts.map +1 -0
  188. package/ebay-field/index.js +12 -0
  189. package/ebay-field/label.d.ts +11 -0
  190. package/ebay-field/label.d.ts.map +1 -0
  191. package/ebay-field/label.js +40 -0
  192. package/ebay-field/types.d.ts +5 -0
  193. package/ebay-field/types.d.ts.map +1 -0
  194. package/ebay-field/types.js +2 -0
  195. package/ebay-floating-label/README.md +51 -0
  196. package/ebay-floating-label/floating-label.d.ts +10 -0
  197. package/ebay-floating-label/floating-label.d.ts.map +1 -0
  198. package/ebay-floating-label/floating-label.js +40 -0
  199. package/ebay-floating-label/hooks.d.ts +26 -0
  200. package/ebay-floating-label/hooks.d.ts.map +1 -0
  201. package/ebay-floating-label/hooks.js +135 -0
  202. package/ebay-floating-label/index.d.ts +3 -0
  203. package/ebay-floating-label/index.d.ts.map +1 -0
  204. package/ebay-floating-label/index.js +4 -0
  205. package/ebay-fullscreen-dialog/README.md +33 -0
  206. package/ebay-fullscreen-dialog/fullscreen-dialog.d.ts +11 -0
  207. package/ebay-fullscreen-dialog/fullscreen-dialog.d.ts.map +1 -0
  208. package/ebay-fullscreen-dialog/fullscreen-dialog.js +36 -0
  209. package/ebay-fullscreen-dialog/index.d.ts +2 -0
  210. package/ebay-fullscreen-dialog/index.d.ts.map +1 -0
  211. package/ebay-fullscreen-dialog/index.js +4 -0
  212. package/ebay-icon/README.md +21 -0
  213. package/ebay-icon/icon.d.ts +14 -0
  214. package/ebay-icon/icon.d.ts.map +1 -0
  215. package/ebay-icon/icon.js +87 -0
  216. package/ebay-icon/index.d.ts +3 -0
  217. package/ebay-icon/index.d.ts.map +1 -0
  218. package/ebay-icon/index.js +4 -0
  219. package/ebay-icon/types.d.ts +2 -0
  220. package/ebay-icon/types.d.ts.map +1 -0
  221. package/ebay-icon/types.js +3 -0
  222. package/ebay-icon-button/README.md +36 -0
  223. package/ebay-icon-button/icon-button.d.ts +15 -0
  224. package/ebay-icon-button/icon-button.d.ts.map +1 -0
  225. package/ebay-icon-button/icon-button.js +45 -0
  226. package/ebay-icon-button/index.d.ts +2 -0
  227. package/ebay-icon-button/index.d.ts.map +1 -0
  228. package/ebay-icon-button/index.js +4 -0
  229. package/ebay-infotip/README.md +82 -0
  230. package/ebay-infotip/ebay-infotip-content.d.ts +8 -0
  231. package/ebay-infotip/ebay-infotip-content.d.ts.map +1 -0
  232. package/ebay-infotip/ebay-infotip-content.js +15 -0
  233. package/ebay-infotip/ebay-infotip-heading.d.ts +5 -0
  234. package/ebay-infotip/ebay-infotip-heading.d.ts.map +1 -0
  235. package/ebay-infotip/ebay-infotip-heading.js +34 -0
  236. package/ebay-infotip/ebay-infotip-host.d.ts +14 -0
  237. package/ebay-infotip/ebay-infotip-host.d.ts.map +1 -0
  238. package/ebay-infotip/ebay-infotip-host.js +39 -0
  239. package/ebay-infotip/ebay-infotip.d.ts +21 -0
  240. package/ebay-infotip/ebay-infotip.d.ts.map +1 -0
  241. package/ebay-infotip/ebay-infotip.js +84 -0
  242. package/ebay-infotip/enums.d.ts +8 -0
  243. package/ebay-infotip/enums.d.ts.map +1 -0
  244. package/ebay-infotip/enums.js +10 -0
  245. package/ebay-infotip/index.d.ts +7 -0
  246. package/ebay-infotip/index.d.ts.map +1 -0
  247. package/ebay-infotip/index.js +12 -0
  248. package/ebay-infotip/types.d.ts +2 -0
  249. package/ebay-infotip/types.d.ts.map +1 -0
  250. package/ebay-infotip/types.js +2 -0
  251. package/ebay-inline-notice/README.md +44 -0
  252. package/ebay-inline-notice/index.d.ts +4 -0
  253. package/ebay-inline-notice/index.d.ts.map +1 -0
  254. package/ebay-inline-notice/index.js +6 -0
  255. package/ebay-inline-notice/inline-notice.d.ts +13 -0
  256. package/ebay-inline-notice/inline-notice.d.ts.map +1 -0
  257. package/ebay-inline-notice/inline-notice.js +62 -0
  258. package/ebay-inline-notice/types.d.ts +2 -0
  259. package/ebay-inline-notice/types.d.ts.map +1 -0
  260. package/ebay-inline-notice/types.js +2 -0
  261. package/ebay-legacy-floating-label/README.md +47 -0
  262. package/ebay-legacy-floating-label/index.d.ts +2 -0
  263. package/ebay-legacy-floating-label/index.d.ts.map +1 -0
  264. package/ebay-legacy-floating-label/index.js +4 -0
  265. package/ebay-legacy-floating-label/legacy-floating-label.d.ts +8 -0
  266. package/ebay-legacy-floating-label/legacy-floating-label.d.ts.map +1 -0
  267. package/ebay-legacy-floating-label/legacy-floating-label.js +91 -0
  268. package/ebay-lightbox-dialog/README.md +34 -0
  269. package/ebay-lightbox-dialog/index.d.ts +2 -0
  270. package/ebay-lightbox-dialog/index.d.ts.map +1 -0
  271. package/ebay-lightbox-dialog/index.js +4 -0
  272. package/ebay-lightbox-dialog/lightbox-dialog.d.ts +12 -0
  273. package/ebay-lightbox-dialog/lightbox-dialog.d.ts.map +1 -0
  274. package/ebay-lightbox-dialog/lightbox-dialog.js +39 -0
  275. package/ebay-listbox-button/README.md +38 -0
  276. package/ebay-listbox-button/index.d.ts +3 -0
  277. package/ebay-listbox-button/index.d.ts.map +1 -0
  278. package/ebay-listbox-button/index.js +6 -0
  279. package/ebay-listbox-button/listbox-button-option.d.ts +10 -0
  280. package/ebay-listbox-button/listbox-button-option.d.ts.map +1 -0
  281. package/ebay-listbox-button/listbox-button-option.js +38 -0
  282. package/ebay-listbox-button/listbox-button.d.ts +12 -0
  283. package/ebay-listbox-button/listbox-button.d.ts.map +1 -0
  284. package/ebay-listbox-button/listbox-button.js +235 -0
  285. package/ebay-menu/README.md +54 -0
  286. package/ebay-menu/index.d.ts +5 -0
  287. package/ebay-menu/index.d.ts.map +1 -0
  288. package/ebay-menu/index.js +8 -0
  289. package/ebay-menu/menu-item-separator.d.ts +5 -0
  290. package/ebay-menu/menu-item-separator.d.ts.map +1 -0
  291. package/ebay-menu/menu-item-separator.js +34 -0
  292. package/ebay-menu/menu-item.d.ts +12 -0
  293. package/ebay-menu/menu-item.d.ts.map +1 -0
  294. package/ebay-menu/menu-item.js +65 -0
  295. package/ebay-menu/menu.d.ts +15 -0
  296. package/ebay-menu/menu.d.ts.map +1 -0
  297. package/ebay-menu/menu.js +127 -0
  298. package/ebay-menu/types.d.ts +3 -0
  299. package/ebay-menu/types.d.ts.map +1 -0
  300. package/ebay-menu/types.js +2 -0
  301. package/ebay-notice-base/components/ebay-notice-content/index.d.ts +2 -0
  302. package/ebay-notice-base/components/ebay-notice-content/index.d.ts.map +1 -0
  303. package/ebay-notice-base/components/ebay-notice-content/index.js +4 -0
  304. package/ebay-notice-base/components/ebay-notice-content/notice-content.d.ts +8 -0
  305. package/ebay-notice-base/components/ebay-notice-content/notice-content.d.ts.map +1 -0
  306. package/ebay-notice-base/components/ebay-notice-content/notice-content.js +4 -0
  307. package/ebay-notice-base/components/ebay-notice-title/index.d.ts +2 -0
  308. package/ebay-notice-base/components/ebay-notice-title/index.d.ts.map +1 -0
  309. package/ebay-notice-base/components/ebay-notice-title/index.js +4 -0
  310. package/ebay-notice-base/components/ebay-notice-title/notice-title.d.ts +4 -0
  311. package/ebay-notice-base/components/ebay-notice-title/notice-title.d.ts.map +1 -0
  312. package/ebay-notice-base/components/ebay-notice-title/notice-title.js +11 -0
  313. package/ebay-notice-base/index.d.ts +3 -0
  314. package/ebay-notice-base/index.d.ts.map +1 -0
  315. package/ebay-notice-base/index.js +6 -0
  316. package/ebay-notice-content/README.md +6 -0
  317. package/ebay-notice-content/index.d.ts +2 -0
  318. package/ebay-notice-content/index.d.ts.map +1 -0
  319. package/ebay-notice-content/index.js +4 -0
  320. package/ebay-page-notice/README.md +48 -0
  321. package/ebay-page-notice/index.d.ts +5 -0
  322. package/ebay-page-notice/index.d.ts.map +1 -0
  323. package/ebay-page-notice/index.js +10 -0
  324. package/ebay-page-notice/page-notice-footer.d.ts +8 -0
  325. package/ebay-page-notice/page-notice-footer.d.ts.map +1 -0
  326. package/ebay-page-notice/page-notice-footer.js +12 -0
  327. package/ebay-page-notice/page-notice-title.d.ts +8 -0
  328. package/ebay-page-notice/page-notice-title.d.ts.map +1 -0
  329. package/ebay-page-notice/page-notice-title.js +34 -0
  330. package/ebay-page-notice/page-notice.d.ts +8 -0
  331. package/ebay-page-notice/page-notice.d.ts.map +1 -0
  332. package/ebay-page-notice/page-notice.js +45 -0
  333. package/ebay-pagination/README.md +72 -0
  334. package/ebay-pagination/const.d.ts +3 -0
  335. package/ebay-pagination/const.d.ts.map +1 -0
  336. package/ebay-pagination/const.js +5 -0
  337. package/ebay-pagination/helpers.d.ts +11 -0
  338. package/ebay-pagination/helpers.d.ts.map +1 -0
  339. package/ebay-pagination/helpers.js +67 -0
  340. package/ebay-pagination/index.d.ts +4 -0
  341. package/ebay-pagination/index.d.ts.map +1 -0
  342. package/ebay-pagination/index.js +6 -0
  343. package/ebay-pagination/pagination-item.d.ts +23 -0
  344. package/ebay-pagination/pagination-item.d.ts.map +1 -0
  345. package/ebay-pagination/pagination-item.js +62 -0
  346. package/ebay-pagination/pagination.d.ts +17 -0
  347. package/ebay-pagination/pagination.d.ts.map +1 -0
  348. package/ebay-pagination/pagination.js +119 -0
  349. package/ebay-pagination/types.d.ts +3 -0
  350. package/ebay-pagination/types.d.ts.map +1 -0
  351. package/ebay-pagination/types.js +2 -0
  352. package/ebay-panel-dialog/README.md +34 -0
  353. package/ebay-panel-dialog/index.d.ts +2 -0
  354. package/ebay-panel-dialog/index.d.ts.map +1 -0
  355. package/ebay-panel-dialog/index.js +4 -0
  356. package/ebay-panel-dialog/panel-dialog.d.ts +13 -0
  357. package/ebay-panel-dialog/panel-dialog.d.ts.map +1 -0
  358. package/ebay-panel-dialog/panel-dialog.js +39 -0
  359. package/ebay-progress-bar/README.md +34 -0
  360. package/ebay-progress-bar/index.d.ts +2 -0
  361. package/ebay-progress-bar/index.d.ts.map +1 -0
  362. package/ebay-progress-bar/index.js +4 -0
  363. package/ebay-progress-bar/progress-bar.d.ts +7 -0
  364. package/ebay-progress-bar/progress-bar.d.ts.map +1 -0
  365. package/ebay-progress-bar/progress-bar.js +34 -0
  366. package/ebay-progress-spinner/README.md +33 -0
  367. package/ebay-progress-spinner/index.d.ts +2 -0
  368. package/ebay-progress-spinner/index.d.ts.map +1 -0
  369. package/ebay-progress-spinner/index.js +4 -0
  370. package/ebay-progress-spinner/progress-spinner.d.ts +10 -0
  371. package/ebay-progress-spinner/progress-spinner.d.ts.map +1 -0
  372. package/ebay-progress-spinner/progress-spinner.js +40 -0
  373. package/ebay-progress-stepper/README.md +84 -0
  374. package/ebay-progress-stepper/ebay-progress-step.d.ts +13 -0
  375. package/ebay-progress-stepper/ebay-progress-step.d.ts.map +1 -0
  376. package/ebay-progress-stepper/ebay-progress-step.js +82 -0
  377. package/ebay-progress-stepper/ebay-progress-stepper.d.ts +11 -0
  378. package/ebay-progress-stepper/ebay-progress-stepper.d.ts.map +1 -0
  379. package/ebay-progress-stepper/ebay-progress-stepper.js +77 -0
  380. package/ebay-progress-stepper/ebay-progress-title.d.ts +8 -0
  381. package/ebay-progress-stepper/ebay-progress-title.d.ts.map +1 -0
  382. package/ebay-progress-stepper/ebay-progress-title.js +8 -0
  383. package/ebay-progress-stepper/index.d.ts +5 -0
  384. package/ebay-progress-stepper/index.d.ts.map +1 -0
  385. package/ebay-progress-stepper/index.js +8 -0
  386. package/ebay-progress-stepper/types.d.ts +4 -0
  387. package/ebay-progress-stepper/types.d.ts.map +1 -0
  388. package/ebay-progress-stepper/types.js +2 -0
  389. package/ebay-radio/README.md +52 -0
  390. package/ebay-radio/index.d.ts +2 -0
  391. package/ebay-radio/index.d.ts.map +1 -0
  392. package/ebay-radio/index.js +4 -0
  393. package/ebay-radio/radio.d.ts +10 -0
  394. package/ebay-radio/radio.d.ts.map +1 -0
  395. package/ebay-radio/radio.js +76 -0
  396. package/ebay-section-notice/README.md +47 -0
  397. package/ebay-section-notice/index.d.ts +5 -0
  398. package/ebay-section-notice/index.d.ts.map +1 -0
  399. package/ebay-section-notice/index.js +10 -0
  400. package/ebay-section-notice/section-notice-footer.d.ts +8 -0
  401. package/ebay-section-notice/section-notice-footer.d.ts.map +1 -0
  402. package/ebay-section-notice/section-notice-footer.js +12 -0
  403. package/ebay-section-notice/section-notice-title.d.ts +8 -0
  404. package/ebay-section-notice/section-notice-title.d.ts.map +1 -0
  405. package/ebay-section-notice/section-notice-title.js +34 -0
  406. package/ebay-section-notice/section-notice.d.ts +10 -0
  407. package/ebay-section-notice/section-notice.d.ts.map +1 -0
  408. package/ebay-section-notice/section-notice.js +50 -0
  409. package/ebay-section-title/README.md +70 -0
  410. package/ebay-section-title/cta.d.ts +10 -0
  411. package/ebay-section-title/cta.d.ts.map +1 -0
  412. package/ebay-section-title/cta.js +41 -0
  413. package/ebay-section-title/index.d.ts +6 -0
  414. package/ebay-section-title/index.d.ts.map +1 -0
  415. package/ebay-section-title/index.js +12 -0
  416. package/ebay-section-title/info.d.ts +5 -0
  417. package/ebay-section-title/info.d.ts.map +1 -0
  418. package/ebay-section-title/info.js +34 -0
  419. package/ebay-section-title/overflow.d.ts +5 -0
  420. package/ebay-section-title/overflow.d.ts.map +1 -0
  421. package/ebay-section-title/overflow.js +34 -0
  422. package/ebay-section-title/section-title.d.ts +9 -0
  423. package/ebay-section-title/section-title.d.ts.map +1 -0
  424. package/ebay-section-title/section-title.js +49 -0
  425. package/ebay-section-title/subtitle.d.ts +5 -0
  426. package/ebay-section-title/subtitle.d.ts.map +1 -0
  427. package/ebay-section-title/subtitle.js +34 -0
  428. package/ebay-section-title/title.d.ts +5 -0
  429. package/ebay-section-title/title.d.ts.map +1 -0
  430. package/ebay-section-title/title.js +34 -0
  431. package/ebay-select/README.md +62 -0
  432. package/ebay-select/ebay-select-option.d.ts +7 -0
  433. package/ebay-select/ebay-select-option.d.ts.map +1 -0
  434. package/ebay-select/ebay-select-option.js +33 -0
  435. package/ebay-select/ebay-select.d.ts +13 -0
  436. package/ebay-select/ebay-select.d.ts.map +1 -0
  437. package/ebay-select/ebay-select.js +137 -0
  438. package/ebay-select/index.d.ts +3 -0
  439. package/ebay-select/index.d.ts.map +1 -0
  440. package/ebay-select/index.js +6 -0
  441. package/ebay-signal/README.md +35 -0
  442. package/ebay-signal/index.d.ts +2 -0
  443. package/ebay-signal/index.d.ts.map +1 -0
  444. package/ebay-signal/index.js +4 -0
  445. package/ebay-signal/signal.d.ts +8 -0
  446. package/ebay-signal/signal.d.ts.map +1 -0
  447. package/ebay-signal/signal.js +35 -0
  448. package/ebay-svg/README.md +19 -0
  449. package/ebay-svg/index.d.ts +2 -0
  450. package/ebay-svg/index.d.ts.map +1 -0
  451. package/ebay-svg/index.js +4 -0
  452. package/ebay-svg/svg.d.ts +4 -0
  453. package/ebay-svg/svg.d.ts.map +1 -0
  454. package/ebay-svg/svg.js +545 -0
  455. package/ebay-switch/README.md +33 -0
  456. package/ebay-switch/ebay-switch.d.ts +7 -0
  457. package/ebay-switch/ebay-switch.d.ts.map +1 -0
  458. package/ebay-switch/ebay-switch.js +64 -0
  459. package/ebay-switch/index.d.ts +2 -0
  460. package/ebay-switch/index.d.ts.map +1 -0
  461. package/ebay-switch/index.js +4 -0
  462. package/ebay-tab/README.md +1 -0
  463. package/ebay-tab/enums.d.ts +14 -0
  464. package/ebay-tab/enums.d.ts.map +1 -0
  465. package/ebay-tab/enums.js +17 -0
  466. package/ebay-tab/index.d.ts +6 -0
  467. package/ebay-tab/index.d.ts.map +1 -0
  468. package/ebay-tab/index.js +12 -0
  469. package/ebay-tabs/README.md +59 -0
  470. package/ebay-tabs/index.d.ts +5 -0
  471. package/ebay-tabs/index.d.ts.map +1 -0
  472. package/ebay-tabs/index.js +8 -0
  473. package/ebay-tabs/tab-panel.d.ts +9 -0
  474. package/ebay-tabs/tab-panel.d.ts.map +1 -0
  475. package/ebay-tabs/tab-panel.js +35 -0
  476. package/ebay-tabs/tab.d.ts +12 -0
  477. package/ebay-tabs/tab.d.ts.map +1 -0
  478. package/ebay-tabs/tab.js +36 -0
  479. package/ebay-tabs/tabs.d.ts +28 -0
  480. package/ebay-tabs/tabs.d.ts.map +1 -0
  481. package/ebay-tabs/tabs.js +137 -0
  482. package/ebay-tabs/types.d.ts +3 -0
  483. package/ebay-tabs/types.d.ts.map +1 -0
  484. package/ebay-tabs/types.js +2 -0
  485. package/ebay-textbox/README.md +72 -0
  486. package/ebay-textbox/index.d.ts +5 -0
  487. package/ebay-textbox/index.d.ts.map +1 -0
  488. package/ebay-textbox/index.js +8 -0
  489. package/ebay-textbox/postfix-icon.d.ts +5 -0
  490. package/ebay-textbox/postfix-icon.d.ts.map +1 -0
  491. package/ebay-textbox/postfix-icon.js +15 -0
  492. package/ebay-textbox/prefix-icon.d.ts +5 -0
  493. package/ebay-textbox/prefix-icon.d.ts.map +1 -0
  494. package/ebay-textbox/prefix-icon.js +12 -0
  495. package/ebay-textbox/textbox.d.ts +20 -0
  496. package/ebay-textbox/textbox.d.ts.map +1 -0
  497. package/ebay-textbox/textbox.js +106 -0
  498. package/ebay-textbox/types.d.ts +9 -0
  499. package/ebay-textbox/types.d.ts.map +1 -0
  500. package/ebay-textbox/types.js +2 -0
  501. package/ebay-toast-dialog/README.md +24 -0
  502. package/ebay-toast-dialog/components/toast.d.ts +8 -0
  503. package/ebay-toast-dialog/components/toast.d.ts.map +1 -0
  504. package/ebay-toast-dialog/components/toast.js +36 -0
  505. package/ebay-toast-dialog/index.d.ts +2 -0
  506. package/ebay-toast-dialog/index.d.ts.map +1 -0
  507. package/ebay-toast-dialog/index.js +4 -0
  508. package/ebay-tooltip/README.md +55 -0
  509. package/ebay-tooltip/ebay-tooltip-content.d.ts +8 -0
  510. package/ebay-tooltip/ebay-tooltip-content.d.ts.map +1 -0
  511. package/ebay-tooltip/ebay-tooltip-content.js +8 -0
  512. package/ebay-tooltip/ebay-tooltip-host.d.ts +8 -0
  513. package/ebay-tooltip/ebay-tooltip-host.d.ts.map +1 -0
  514. package/ebay-tooltip/ebay-tooltip-host.js +8 -0
  515. package/ebay-tooltip/ebay-tooltip.d.ts +12 -0
  516. package/ebay-tooltip/ebay-tooltip.d.ts.map +1 -0
  517. package/ebay-tooltip/ebay-tooltip.js +92 -0
  518. package/ebay-tooltip/index.d.ts +6 -0
  519. package/ebay-tooltip/index.d.ts.map +1 -0
  520. package/ebay-tooltip/index.js +13 -0
  521. package/index.d.ts +38 -0
  522. package/index.d.ts.map +1 -0
  523. package/index.js +114 -0
  524. package/package.json +106 -0
@@ -0,0 +1,6 @@
1
+ export { default as EbaySectionTitle } from './section-title';
2
+ export { default as EbaySectionTitleTitle } from './title';
3
+ export { default as EbaySectionTitleSubtitle } from './subtitle';
4
+ export { default as EbaySectionTitleInfo } from './info';
5
+ export { default as EbaySectionTitleOverflow } from './overflow';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-section-title/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var section_title_1 = require("./section-title");
4
+ Object.defineProperty(exports, "EbaySectionTitle", { enumerable: true, get: function () { return section_title_1.default; } });
5
+ var title_1 = require("./title");
6
+ Object.defineProperty(exports, "EbaySectionTitleTitle", { enumerable: true, get: function () { return title_1.default; } });
7
+ var subtitle_1 = require("./subtitle");
8
+ Object.defineProperty(exports, "EbaySectionTitleSubtitle", { enumerable: true, get: function () { return subtitle_1.default; } });
9
+ var info_1 = require("./info");
10
+ Object.defineProperty(exports, "EbaySectionTitleInfo", { enumerable: true, get: function () { return info_1.default; } });
11
+ var overflow_1 = require("./overflow");
12
+ Object.defineProperty(exports, "EbaySectionTitleOverflow", { enumerable: true, get: function () { return overflow_1.default; } });
@@ -0,0 +1,5 @@
1
+ import { ComponentProps, FC } from 'react';
2
+ declare type Props = ComponentProps<'div'>;
3
+ declare const Info: FC<Props>;
4
+ export default Info;
5
+ //# sourceMappingURL=info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../src/ebay-section-title/info.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjD,aAAK,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;AAElC,QAAA,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAWnB,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var react_1 = __importDefault(require("react"));
29
+ var classnames_1 = __importDefault(require("classnames"));
30
+ var Info = function (_a) {
31
+ var className = _a.className, children = _a.children, rest = __rest(_a, ["className", "children"]);
32
+ return (react_1.default.createElement("div", __assign({}, rest, { className: classnames_1.default(className, 'section-title__info') }), children));
33
+ };
34
+ exports.default = Info;
@@ -0,0 +1,5 @@
1
+ import { ComponentProps, FC } from 'react';
2
+ declare type Props = ComponentProps<'div'>;
3
+ declare const Overflow: FC<Props>;
4
+ export default Overflow;
5
+ //# sourceMappingURL=overflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overflow.d.ts","sourceRoot":"","sources":["../../src/ebay-section-title/overflow.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjD,aAAK,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;AAElC,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,KAAK,CAWvB,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var react_1 = __importDefault(require("react"));
29
+ var classnames_1 = __importDefault(require("classnames"));
30
+ var Overflow = function (_a) {
31
+ var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
32
+ return (react_1.default.createElement("div", __assign({}, rest, { className: classnames_1.default(className, 'section-title__overflow') }), children));
33
+ };
34
+ exports.default = Overflow;
@@ -0,0 +1,9 @@
1
+ import { FC, HTMLProps, ReactNode } from 'react';
2
+ export declare type EbaySectionTitleProps = Omit<HTMLProps<HTMLDivElement>, 'title' | 'size'> & {
3
+ size?: 'small' | 'large' | 'giant';
4
+ href?: string;
5
+ ctaText?: ReactNode;
6
+ };
7
+ declare const EbaySectionTitle: FC<EbaySectionTitleProps>;
8
+ export default EbaySectionTitle;
9
+ //# sourceMappingURL=section-title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section-title.d.ts","sourceRoot":"","sources":["../../src/ebay-section-title/section-title.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWvD,oBAAY,qBAAqB,GAAG,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,GAAC,MAAM,CAAC,GAAG;IACtF,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,CAAC;CACnB,CAAA;AAED,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAyB/C,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var react_1 = __importDefault(require("react"));
29
+ var classnames_1 = __importDefault(require("classnames"));
30
+ var component_utils_1 = require("../common/component-utils");
31
+ var index_1 = require("./index");
32
+ var cta_1 = __importDefault(require("./cta"));
33
+ var EbaySectionTitle = function (_a) {
34
+ var _b;
35
+ var href = _a.href, ctaText = _a.ctaText, size = _a.size, className = _a.className, children = _a.children, rest = __rest(_a, ["href", "ctaText", "size", "className", "children"]);
36
+ var sectionTitleClass = classnames_1.default(className, 'section-title', (_b = {},
37
+ _b["section-title--" + size] = size,
38
+ _b));
39
+ var title = component_utils_1.findComponent(children, index_1.EbaySectionTitleTitle);
40
+ var subtitle = component_utils_1.findComponent(children, index_1.EbaySectionTitleSubtitle);
41
+ var info = component_utils_1.findComponent(children, index_1.EbaySectionTitleInfo);
42
+ var overflow = component_utils_1.findComponent(children, index_1.EbaySectionTitleOverflow);
43
+ return (react_1.default.createElement("div", __assign({}, rest, { className: sectionTitleClass }),
44
+ react_1.default.createElement("div", { className: "section-title__title-container" },
45
+ title || react_1.default.createElement(index_1.EbaySectionTitleTitle, null, children),
46
+ subtitle),
47
+ href && react_1.default.createElement(cta_1.default, { href: href, ctaText: ctaText }) || info || overflow));
48
+ };
49
+ exports.default = EbaySectionTitle;
@@ -0,0 +1,5 @@
1
+ import { ComponentProps, FC } from 'react';
2
+ declare type Props = ComponentProps<'span'>;
3
+ declare const Subtitle: FC<Props>;
4
+ export default Subtitle;
5
+ //# sourceMappingURL=subtitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subtitle.d.ts","sourceRoot":"","sources":["../../src/ebay-section-title/subtitle.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjD,aAAK,KAAK,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAEnC,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,KAAK,CAWvB,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var react_1 = __importDefault(require("react"));
29
+ var classnames_1 = __importDefault(require("classnames"));
30
+ var Subtitle = function (_a) {
31
+ var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
32
+ return (react_1.default.createElement("span", __assign({}, rest, { className: classnames_1.default(className, 'section-title__subtitle') }), children));
33
+ };
34
+ exports.default = Subtitle;
@@ -0,0 +1,5 @@
1
+ import { ComponentProps, FC } from 'react';
2
+ declare type Props = ComponentProps<'h2'>;
3
+ declare const Title: FC<Props>;
4
+ export default Title;
5
+ //# sourceMappingURL=title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../src/ebay-section-title/title.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjD,aAAK,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;AAEjC,QAAA,MAAM,KAAK,EAAE,EAAE,CAAC,KAAK,CAWpB,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var react_1 = __importDefault(require("react"));
29
+ var classnames_1 = __importDefault(require("classnames"));
30
+ var Title = function (_a) {
31
+ var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
32
+ return (react_1.default.createElement("h2", __assign({}, rest, { className: classnames_1.default(className, 'section-title__title') }), children));
33
+ };
34
+ exports.default = Title;
@@ -0,0 +1,62 @@
1
+ # EbaySelect
2
+ This component is used to create a native `<select>` form element with default browser styling.
3
+
4
+ ## Demo
5
+ [Storybook](https://opensource.ebay.com/ebayui-core-react/main/?path=/story/ebay-select--default)
6
+
7
+ ## Import JS
8
+ ```jsx harmony
9
+ import { EbaySelect, EbaySelectOption } from '@ebay/ui-core-react/ebay-select'
10
+ ```
11
+ ## Import following styles from SKIN
12
+ ```jsx harmony
13
+ import '@ebay/skin/select';
14
+ ```
15
+ ## Import styles using SCSS/CSS
16
+ ```jsx harmony
17
+ import '@ebay/skin/select.css'
18
+ ```
19
+
20
+ ## Usage
21
+ When no selected option is specified:
22
+ ```jsx harmony
23
+ <EbaySelect name='formSelect'>
24
+ <EbaySelectOption value='1'>Option 1</EbaySelectOption>
25
+ <EbaySelectOption value='2'>Option 2</EbaySelectOption>
26
+ <EbaySelectOption value='3'>Option 3</EbaySelectOption>
27
+ </EbaySelect>
28
+ ```
29
+
30
+ When a selected option is specified:
31
+ ```jsx harmony
32
+ <EbaySelect name='formSelect' value='2'>
33
+ <EbaySelectOption value='1'>Option 1</EbaySelectOption>
34
+ <EbaySelectOption value='2'>Option 2</EbaySelectOption>
35
+ <EbaySelectOption value='3'>Option 3</EbaySelectOption>
36
+ </EbaySelect>
37
+ ```
38
+ Please look at this documentation as to the recommended way in React to pre-select a value:
39
+ https://reactjs.org/docs/forms.html#the-select-tag. Notice that the selected value is set right in the props of `<EbaySelect/>`.
40
+
41
+ ## EbaySelect Attributes
42
+
43
+ | Name | Type | Required | Description |
44
+ | --------------- | -------- | -------- | ------------------------------------------------------------ |
45
+ | `name` | String | Yes | passed to the `<select>` element |
46
+ | `value` | String | No | Set the value of the `<select>` element. Use this for **controlled component**. |
47
+ | `defaultValue` | String | No | Set the initial value for `<select>` elemtn, only for **uncontrolled component**. |
48
+ | `disabled` | String | No | passed to the `<select>` element, default is `false` |
49
+ | `className` | String | No | passed to the wrapper-element of the `<select>` element |
50
+ | `borderless` | String | No | whether button has borders, default is `false` |
51
+ | `onChange` | Function | No | { el, index, selected } |
52
+ | `floatingLabel` | String | No | Indicates that the select is a floating label type and renders it as a label |
53
+ | `inputSize` | String | No | `default` (default), `large` |
54
+ | `invalid` | Boolean | No | Indicates a field-level error with red border if true |
55
+
56
+ ## EbaySelectOption Attributes
57
+
58
+ | Name | Type | Required | Description |
59
+ | ------- | ------ | -------- | -------------------------------- |
60
+ | `value` | String | Yes | passed to the `<option>` element |
61
+
62
+ It supports all the supported aria attributes (e.g. `aria-label`, `aria-invalid`)
@@ -0,0 +1,7 @@
1
+ import { ComponentProps, FC } from 'react';
2
+ declare type OptionProps = ComponentProps<'option'> & {
3
+ optgroup?: string;
4
+ };
5
+ declare const EbaySelectOption: FC<OptionProps>;
6
+ export default EbaySelectOption;
7
+ //# sourceMappingURL=ebay-select-option.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ebay-select-option.d.ts","sourceRoot":"","sources":["../../src/ebay-select/ebay-select-option.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjD,aAAK,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,WAAW,CACG,CAAA;AAEzC,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var react_1 = __importDefault(require("react"));
29
+ var EbaySelectOption = function (_a) {
30
+ var children = _a.children, rest = __rest(_a, ["children"]);
31
+ return react_1.default.createElement("option", __assign({}, rest), children);
32
+ };
33
+ exports.default = EbaySelectOption;
@@ -0,0 +1,13 @@
1
+ import { ChangeEvent, ComponentProps, FC } from 'react';
2
+ declare type SelectValue = string | ReadonlyArray<string> | number;
3
+ export declare type EbaySelectProps = ComponentProps<'select'> & {
4
+ borderless?: boolean;
5
+ defaultValue?: SelectValue;
6
+ onChange?: (e: ChangeEvent<HTMLSelectElement>, selectedIndex: number, newValue: SelectValue) => void;
7
+ floatingLabel?: string;
8
+ inputSize?: 'default' | 'large';
9
+ invalid?: boolean;
10
+ };
11
+ declare const EbaySelect: FC<EbaySelectProps>;
12
+ export default EbaySelect;
13
+ //# sourceMappingURL=ebay-select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ebay-select.d.ts","sourceRoot":"","sources":["../../src/ebay-select/ebay-select.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,WAAW,EAAgB,cAAc,EAAE,EAAE,EAAgC,MAAM,OAAO,CAAA;AAS1G,aAAK,WAAW,GAAG,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAC3D,oBAAY,eAAe,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IACrD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,KAAK,IAAI,CAAC;IACrG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAiFnC,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
32
+ var __rest = (this && this.__rest) || function (s, e) {
33
+ var t = {};
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
35
+ t[p] = s[p];
36
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
37
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
38
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
39
+ t[p[i]] = s[p[i]];
40
+ }
41
+ return t;
42
+ };
43
+ var __importDefault = (this && this.__importDefault) || function (mod) {
44
+ return (mod && mod.__esModule) ? mod : { "default": mod };
45
+ };
46
+ Object.defineProperty(exports, "__esModule", { value: true });
47
+ var react_1 = __importStar(require("react"));
48
+ var classnames_1 = __importDefault(require("classnames"));
49
+ var ebay_select_option_1 = __importDefault(require("./ebay-select-option"));
50
+ var ebay_icon_1 = require("../ebay-icon");
51
+ var component_utils_1 = require("../common/component-utils");
52
+ var hooks_1 = require("../ebay-floating-label/hooks");
53
+ var isControlled = function (value) { return typeof value !== 'undefined'; };
54
+ var EbaySelect = function (_a) {
55
+ var controlledValue = _a.value, defaultValue = _a.defaultValue, className = _a.className, borderless = _a.borderless, name = _a.name, disabled = _a.disabled, _b = _a.onChange, onChange = _b === void 0 ? function () { } : _b, _c = _a.onBlur, onBlur = _c === void 0 ? function () { } : _c, _d = _a.onFocus, onFocus = _d === void 0 ? function () { } : _d, floatingLabel = _a.floatingLabel, children = _a.children, inputSize = _a.inputSize, invalid = _a.invalid, rest = __rest(_a, ["value", "defaultValue", "className", "borderless", "name", "disabled", "onChange", "onBlur", "onFocus", "floatingLabel", "children", "inputSize", "invalid"]);
56
+ var isFieldInvalid = invalid || rest['aria-invalid'] === 'true';
57
+ var _e = react_1.useState(defaultValue), value = _e[0], setValue = _e[1];
58
+ var selectRef = react_1.useRef(null);
59
+ var _f = hooks_1.useFloatingLabel({
60
+ ref: selectRef,
61
+ inputId: rest.id,
62
+ className: className,
63
+ disabled: disabled,
64
+ label: floatingLabel,
65
+ inputValue: controlledValue,
66
+ inputSize: inputSize,
67
+ invalid: isFieldInvalid
68
+ }), label = _f.label, Container = _f.Container, onFloatingLabelBlur = _f.onBlur, onFloatingLabelFocus = _f.onFocus, ref = _f.ref;
69
+ var handleSelectChange = function (e) {
70
+ var _a = e.target, newValue = _a.value, selectedIndex = _a.selectedIndex;
71
+ if (!isControlled(controlledValue)) {
72
+ setValue(newValue);
73
+ }
74
+ onChange(e, selectedIndex, newValue);
75
+ };
76
+ var handleBlur = function (event) {
77
+ onBlur(event);
78
+ onFloatingLabelBlur();
79
+ };
80
+ var handleFocus = function (event) {
81
+ onFocus(event);
82
+ onFloatingLabelFocus();
83
+ };
84
+ var selectClassName = classnames_1.default('select', className, {
85
+ 'select--borderless': borderless,
86
+ 'select--large': inputSize === "large"
87
+ });
88
+ return (react_1.default.createElement(Container, null,
89
+ label,
90
+ react_1.default.createElement("span", { className: selectClassName },
91
+ react_1.default.createElement("select", __assign({}, rest, { name: name, value: isControlled(controlledValue) ? controlledValue : value, disabled: disabled, onChange: handleSelectChange, onBlur: handleBlur, onFocus: handleFocus, ref: ref }), options(children)),
92
+ react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "dropdown", height: "8", width: "8" }))));
93
+ };
94
+ exports.default = EbaySelect;
95
+ function optionGroups(data) {
96
+ var optGroups = {};
97
+ data.forEach(function (opt) {
98
+ var option = opt.props;
99
+ if (option.optgroup) {
100
+ if (!Object.prototype.hasOwnProperty.call(optGroups, option.optgroup)) {
101
+ optGroups[option.optgroup] = [];
102
+ }
103
+ optGroups[option.optgroup].push(option);
104
+ }
105
+ });
106
+ return optGroups;
107
+ }
108
+ function options(children) {
109
+ var renderedGroups = [];
110
+ var allOptions = [];
111
+ var optGroups = {};
112
+ var withinGroup = false;
113
+ var childrenOpts = component_utils_1.filterByType(children, ebay_select_option_1.default).map(function (c) { return react_1.cloneElement(c, {}); });
114
+ if (childrenOpts) {
115
+ optGroups = optionGroups(childrenOpts);
116
+ var currentGroupName_1;
117
+ childrenOpts.forEach(function (option, idx) {
118
+ var _a = option.props, value = _a.value, optionClassName = _a.optionClassName, optionChildren = _a.children, optgroup = _a.optgroup;
119
+ withinGroup = optgroup && renderedGroups.indexOf(optgroup) === -1;
120
+ if (withinGroup) { // This will always be true when the very first group is encountered.
121
+ currentGroupName_1 = optgroup;
122
+ var currentGroupOptions = optGroups[currentGroupName_1];
123
+ var opts = currentGroupOptions.map(function (groupOption) { return (react_1.default.createElement(ebay_select_option_1.default, { key: "opt-" + groupOption.value, value: groupOption.value, className: groupOption.optionClassName }, groupOption.children)); });
124
+ allOptions.push(react_1.default.createElement("optgroup", { key: idx, label: optgroup }, opts));
125
+ renderedGroups.push(optgroup);
126
+ }
127
+ else if (!optgroup) {
128
+ /**
129
+ * The check below is necessary because we could still be in a group which has already
130
+ * been added to the renderedGroups array. In that case it will be skipped.
131
+ */
132
+ allOptions.push(react_1.default.createElement(ebay_select_option_1.default, { key: idx, value: value, className: optionClassName }, optionChildren));
133
+ }
134
+ });
135
+ return allOptions;
136
+ }
137
+ }
@@ -0,0 +1,3 @@
1
+ export { default as EbaySelect, EbaySelectProps } from './ebay-select';
2
+ export { default as EbaySelectOption } from './ebay-select-option';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ebay_select_1 = require("./ebay-select");
4
+ Object.defineProperty(exports, "EbaySelect", { enumerable: true, get: function () { return ebay_select_1.default; } });
5
+ var ebay_select_option_1 = require("./ebay-select-option");
6
+ Object.defineProperty(exports, "EbaySelectOption", { enumerable: true, get: function () { return ebay_select_option_1.default; } });
@@ -0,0 +1,35 @@
1
+ # ebay-signal
2
+
3
+ ##Description
4
+ Signals are data-backed recommendations to help customers make more informed decisions. There are four signal statuses, each corresponding to a specific color: `trustworthy`, `recent`, `time-sensitive` & `neutral`. Defaults to `neutral` if none specified.
5
+
6
+ ## Demo
7
+ [Storybook](https://opensource.ebay.com/ebayui-core-react/main/?path=/story/ebay-signal)
8
+
9
+ ## Usage
10
+ ```
11
+ yarn add @ebay/ui-core-react
12
+ ```
13
+ ### Import JS
14
+ ```jsx harmony
15
+ import { EbaySignal } from '@ebay/ui-core-react/ebay-signal';
16
+ ```
17
+ ## Import styles from Skin
18
+ ```jsx harmony
19
+ import '@ebay/skin/signal'
20
+ ```
21
+
22
+ ## ...or using SCSS/CSS
23
+ ```jsx harmony
24
+ import '@ebay/skin/signal.css'
25
+ ```
26
+
27
+ ```jsx harmony
28
+ <EbaySignal status="trustworthy">Trustworthy</EbaySignal>
29
+ ```
30
+
31
+ ## Attributes
32
+
33
+ Name | Type | Stateful | Description
34
+ --- | --- | --- | ---
35
+ `status` | String | No | Status of signal; determines color. Possible values: `trustworthy`, `recent`, `time-sensitive` & `neutral` (default)
@@ -0,0 +1,2 @@
1
+ export { default as EbaySignal, SignalStatus } from './signal';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-signal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var signal_1 = require("./signal");
4
+ Object.defineProperty(exports, "EbaySignal", { enumerable: true, get: function () { return signal_1.default; } });
@@ -0,0 +1,8 @@
1
+ import { FC, ComponentProps } from 'react';
2
+ export declare type SignalStatus = 'neutral' | 'trustworthy' | 'time-sensitive' | 'recent';
3
+ declare type Props = ComponentProps<'span'> & {
4
+ status?: SignalStatus;
5
+ };
6
+ declare const EbaySignal: FC<Props>;
7
+ export default EbaySignal;
8
+ //# sourceMappingURL=signal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../src/ebay-signal/signal.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGjD,oBAAY,YAAY,GAAG,SAAS,GAAG,aAAa,GAAG,gBAAgB,GAAG,QAAQ,CAAA;AAElF,aAAK,KAAK,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAClC,MAAM,CAAC,EAAE,YAAY,CAAA;CACxB,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,KAAK,CAGzB,CAAA;AAED,eAAe,UAAU,CAAA"}