@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,83 @@
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 forwardRef_1 = require("../common/component-utils/forwardRef");
50
+ var ebay_icon_1 = require("../ebay-icon");
51
+ var button_loading_1 = __importDefault(require("./button-loading"));
52
+ function isIconOnly(children) {
53
+ var childrenArray = react_1.Children.toArray(children);
54
+ return childrenArray.length === 1 && childrenArray[0].type === ebay_icon_1.EbayIcon;
55
+ }
56
+ var EbayButton = function (_a) {
57
+ var _b, _c, _d, _e;
58
+ var _f = _a.priority, priority = _f === void 0 ? 'secondary' : _f, _g = _a.size, size = _g === void 0 ? 'default' : _g, bodyState = _a.bodyState, _h = _a.transparent, transparent = _h === void 0 ? false : _h, _j = _a.fluid, fluid = _j === void 0 ? false : _j, disabled = _a.disabled, partiallyDisabled = _a.partiallyDisabled, children = _a.children, _k = _a.onEscape, onEscape = _k === void 0 ? function () { } : _k, _l = _a.truncate, truncate = _l === void 0 ? false : _l, href = _a.href, extraClasses = _a.className, forwardedRef = _a.forwardedRef, rest = __rest(_a, ["priority", "size", "bodyState", "transparent", "fluid", "disabled", "partiallyDisabled", "children", "onEscape", "truncate", "href", "className", "forwardedRef"]);
59
+ var iconOnly = isIconOnly(children);
60
+ var classPrefix = href ? 'fake-btn' : 'btn';
61
+ var priorityStyles = {
62
+ delete: classPrefix + "--delete",
63
+ primary: classPrefix + "--primary",
64
+ secondary: classPrefix + "--secondary",
65
+ tertiary: classPrefix + "--tertiary",
66
+ none: ''
67
+ };
68
+ var sizeStyles = {
69
+ large: classPrefix + "--large",
70
+ default: ''
71
+ };
72
+ var isLoading = bodyState === "loading";
73
+ var className = classnames_1.default(classPrefix, extraClasses, priorityStyles[priority], sizeStyles[size], (_b = {}, _b[classPrefix + "--icon-only"] = iconOnly, _b), (_c = {}, _c[classPrefix + "--transparent"] = transparent, _c), (_d = {}, _d[classPrefix + "--fluid"] = fluid, _d), (_e = {}, _e[classPrefix + "--truncated"] = truncate, _e));
74
+ var onKeyDown = function (e) {
75
+ if (e.key === 'Escape' || e.key === 'Esc') {
76
+ onEscape(e);
77
+ }
78
+ };
79
+ var bodyContent = isLoading ? react_1.default.createElement(button_loading_1.default, null) : children;
80
+ var ariaLive = isLoading ? "polite" : null;
81
+ return href ? (react_1.default.createElement("a", __assign({ className: className, href: disabled ? undefined : href, ref: forwardedRef, onKeyDown: onKeyDown, "aria-live": ariaLive }, rest), bodyContent)) : (react_1.default.createElement("button", __assign({ disabled: disabled, "aria-disabled": partiallyDisabled, "aria-live": ariaLive, className: className, ref: forwardedRef, onKeyDown: onKeyDown }, rest), bodyContent));
82
+ };
83
+ exports.default = forwardRef_1.withForwardRef(EbayButton);
@@ -0,0 +1,4 @@
1
+ export { default as EbayButton, EbayButtonProps } from './button';
2
+ export { default as EbayButtonCell } from './button-cell';
3
+ export { Size, Priority } from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var button_1 = require("./button");
4
+ Object.defineProperty(exports, "EbayButton", { enumerable: true, get: function () { return button_1.default; } });
5
+ var button_cell_1 = require("./button-cell");
6
+ Object.defineProperty(exports, "EbayButtonCell", { enumerable: true, get: function () { return button_cell_1.default; } });
@@ -0,0 +1,4 @@
1
+ export declare type Priority = 'primary' | 'secondary' | 'tertiary' | 'delete' | 'none';
2
+ export declare type Size = 'default' | 'large';
3
+ export declare type BodyState = 'loading';
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-button/types.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE/E,oBAAY,IAAI,GAAG,SAAS,GAAG,OAAO,CAAA;AAEtC,oBAAY,SAAS,GAAG,SAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ # ebay-checkbox
2
+
3
+ ## Demo
4
+ [Storybook](https://opensource.ebay.com/ebayui-core-react/main/?path=/story/ebay-checkbox--default-checkbox-button)
5
+
6
+ ## Usage
7
+ ```
8
+ yarn add @ebay/ui-core-react
9
+ ```
10
+ ### Import JS
11
+ ```jsx harmony
12
+ import { EbayCheckbox } from '@ebay/ui-core-react/ebay-checkbox'
13
+ ```
14
+
15
+ ## Import following styles from Skin
16
+ ```jsx harmony
17
+ import '@ebay/skin/checkbox'
18
+ ```
19
+
20
+ ## ...or using SCSS/CSS
21
+ ```jsx harmony
22
+ import '@ebay/skin/checkbox.css'
23
+ ```
24
+
25
+ ```jsx
26
+ import { EbayLabel } from '@ebay/ui-core-react/ebay-field';
27
+
28
+ <EbayCheckbox id="checkbox-1">
29
+ <EbayLabel>Remember me!</EbayLabel>
30
+ </EbayCheckbox>
31
+ ```
32
+
33
+ ## Attributes
34
+
35
+ Name | Type | Stateful | Description
36
+ --- | --- | --- | ---
37
+ `size` | String | No | No | Either `large` or `regular` (default). Sets the checkbox icon size. For mweb this should be set to `large`. (Note: The dimensions of the radio will not change, but only the icon)
38
+ `disabled` | Boolean | No |
39
+ `checked` | Boolean | No | No | indicates the checked value of the input element, required for a controlled component.
40
+ `defaultChecked` | Boolean | No | No | indicates the default checked input element value. Use when the component is not controlled.
41
+ `onChange` | Function | Callback fired when `checked` is changed, with param `{ originalEvent, value }`
42
+ `onFocus` | Function | Callback fired when button is focused, with param `{ originalEvent, value }`
43
+
44
+ It supports all the events supported by an input element (e.g. `onChange`)
45
+ Note: For this component, `className`/`style` are applied to the root tag, while all other HTML attributes are applied to the `input` tag.
46
+
@@ -0,0 +1,10 @@
1
+ import { FC, ChangeEvent, ComponentProps } from 'react';
2
+ declare type Size = 'default' | 'large';
3
+ declare type InputProps = Omit<ComponentProps<'input'>, 'size'>;
4
+ declare type EbayCheckboxProps = {
5
+ size?: Size;
6
+ onChange?: (e: ChangeEvent<HTMLInputElement>, value: string | number, checked: boolean) => void;
7
+ };
8
+ declare const EbayCheckbox: FC<InputProps & EbayCheckboxProps>;
9
+ export default EbayCheckbox;
10
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/ebay-checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAY,WAAW,EAAE,cAAc,EAAgB,MAAM,OAAO,CAAA;AAMtF,aAAK,IAAI,GAAG,SAAS,GAAG,OAAO,CAAA;AAC/B,aAAK,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAA;AACvD,aAAK,iBAAiB,GAAG;IACrB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACnG,CAAA;AAID,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,UAAU,GAAG,iBAAiB,CAsDpD,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,79 @@
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_icon_1 = require("../ebay-icon");
50
+ var ebay_field_1 = require("../ebay-field");
51
+ var component_utils_1 = require("../common/component-utils");
52
+ var isControlled = function (checked) { return typeof checked !== 'undefined'; };
53
+ var EbayCheckbox = function (_a) {
54
+ var id = _a.id, _b = _a.size, size = _b === void 0 ? 'default' : _b, className = _a.className, style = _a.style, checked = _a.checked, _c = _a.defaultChecked, defaultChecked = _c === void 0 ? false : _c, _d = _a.onChange, onChange = _d === void 0 ? function () { } : _d, children = _a.children, rest = __rest(_a, ["id", "size", "className", "style", "checked", "defaultChecked", "onChange", "children"]);
55
+ var _e = react_1.useState(defaultChecked), isChecked = _e[0], setChecked = _e[1];
56
+ var handleChange = function (e) {
57
+ var input = e.target;
58
+ onChange(e, input === null || input === void 0 ? void 0 : input.value, input === null || input === void 0 ? void 0 : input.checked);
59
+ setChecked(input === null || input === void 0 ? void 0 : input.checked);
60
+ };
61
+ var containerClass = classnames_1.default('checkbox', className, { 'checkbox--large': size === 'large' });
62
+ var iconChecked = size === 'large' ?
63
+ react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "checkboxCheckedLarge", className: "checkbox__checked" }) :
64
+ react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "checkboxChecked", className: "checkbox__checked" });
65
+ var iconUnChecked = size === 'large' ?
66
+ react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "checkboxUncheckedLarge", className: "checkbox__unchecked" }) :
67
+ react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "checkboxUnchecked", className: "checkbox__unchecked" });
68
+ var ebayLabel = component_utils_1.findComponent(children, ebay_field_1.EbayLabel);
69
+ return (react_1.default.createElement(react_1.default.Fragment, null,
70
+ react_1.default.createElement("span", { className: containerClass, style: __assign(__assign({}, style), { alignItems: 'center' }) },
71
+ react_1.default.createElement("input", __assign({}, rest, { id: id, className: "checkbox__control", type: "checkbox", checked: isControlled(checked) ? checked : isChecked, onChange: handleChange })),
72
+ react_1.default.createElement("span", { className: "checkbox__icon", hidden: true },
73
+ iconChecked,
74
+ iconUnChecked)),
75
+ ebayLabel ?
76
+ react_1.cloneElement(ebayLabel, __assign(__assign({}, ebayLabel.props), { position: 'end', htmlFor: id })) :
77
+ children));
78
+ };
79
+ exports.default = EbayCheckbox;
@@ -0,0 +1,2 @@
1
+ export { default as EbayCheckbox } from './checkbox';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var checkbox_1 = require("./checkbox");
4
+ Object.defineProperty(exports, "EbayCheckbox", { enumerable: true, get: function () { return checkbox_1.default; } });
@@ -0,0 +1,34 @@
1
+ # EbayConfirmDialog
2
+
3
+ ## Usage
4
+
5
+ ```react
6
+ <EbayConfirmDialog open a11yClosetext="Close">
7
+ <EbayDialogHeader>Heading</EbayDialogHeader>
8
+ <p>Body content</p>
9
+ </EbayConfirmDialog>
10
+ ```
11
+
12
+ ## Attributes
13
+
14
+ Name | Type | Stateful | Required | Description
15
+ --- | --- | --- | --- | ---
16
+ `open` | Boolean | Yes | No | Whether dialog is open.
17
+ `focus` | String | No | No | An id for an element which will receive focus when the drawer opens (defaults to close button).
18
+ `a11yCloseText` | String | No | Yes | A11y text for close button and mask.
19
+ `confirmText` | String | No | Yes | Text for confirm button |
20
+ `rejectText` | String | No | Yes | Text for reject button |
21
+ `animated` | Boolean | Yes | No | Renders the dialog with an animation. Note that the dialog will always be present in the DOM
22
+
23
+ ## Events
24
+
25
+ Event | Data | Description
26
+ --- | --- | ---
27
+ `onConfirm` | | Triggered when confirm button is clicked
28
+ `onReject` | | Trigered when reject button is clicked
29
+
30
+ ## EbayDialogHeader
31
+ Will render a header content for the dialog. Will always render the header element even if this is not present
32
+
33
+ ## EbayDialogFooter
34
+ Will render the footer content for the dialog. If not present then will not have any footer.
@@ -0,0 +1,13 @@
1
+ import { FC } from 'react';
2
+ import { DialogBaseProps } from '../ebay-dialog-base';
3
+ export interface Props<T = any> extends DialogBaseProps<T> {
4
+ open?: boolean;
5
+ confirmText: string;
6
+ rejectText: string;
7
+ onOpen?: () => void;
8
+ onReject?: () => void;
9
+ onConfirm?: () => void;
10
+ }
11
+ declare const EbayConfirmDialog: FC<Props>;
12
+ export default EbayConfirmDialog;
13
+ //# sourceMappingURL=confirm-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirm-dialog.d.ts","sourceRoot":"","sources":["../../src/ebay-confirm-dialog/confirm-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;IACtD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,KAAK,CA8ChC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -0,0 +1,63 @@
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_dialog_base_1 = require("../ebay-dialog-base");
50
+ var ebay_button_1 = require("../ebay-button");
51
+ var classPrefix = 'confirm-dialog';
52
+ var EbayConfirmDialog = function (_a) {
53
+ var _b = _a.a11yCloseText, a11yCloseText = _b === void 0 ? 'Close Dialog' : _b, confirmText = _a.confirmText, rejectText = _a.rejectText, _c = _a.onOpen, onOpen = _c === void 0 ? function () { } : _c, _d = _a.onReject, onReject = _d === void 0 ? function () { } : _d, _e = _a.onConfirm, onConfirm = _e === void 0 ? function () { } : _e, rest = __rest(_a, ["a11yCloseText", "confirmText", "rejectText", "onOpen", "onReject", "onConfirm"]);
54
+ var confirmBtnRef = react_1.useRef(null);
55
+ var confirmId = 'confirm-dialog-confirm';
56
+ var mainId = 'confirm-dialog-main';
57
+ return (react_1.default.createElement(ebay_dialog_base_1.DialogBaseWithState, __assign({ focus: confirmBtnRef }, rest, { a11yCloseText: a11yCloseText, role: "dialog", mainId: mainId, classPrefix: classPrefix, className: classnames_1.default(rest.className, classPrefix + "--mask-fade"), windowClass: classPrefix + "__window " + classPrefix + "__window--fade", buttonPosition: "hidden", onCloseBtnClick: onReject }),
58
+ rest.children,
59
+ react_1.default.createElement(ebay_dialog_base_1.EbayDialogFooter, null,
60
+ react_1.default.createElement(ebay_button_1.EbayButton, { onClick: onReject, className: "confirm-dialog__reject" }, rejectText),
61
+ react_1.default.createElement(ebay_button_1.EbayButton, { ref: confirmBtnRef, priority: "primary", onClick: onConfirm, id: confirmId, "aria-describedby": mainId, className: "confirm-dialog__confirm" }, confirmText))));
62
+ };
63
+ exports.default = EbayConfirmDialog;
@@ -0,0 +1,2 @@
1
+ export { default as EbayConfirmDialog } from './confirm-dialog';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-confirm-dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var confirm_dialog_1 = require("./confirm-dialog");
4
+ Object.defineProperty(exports, "EbayConfirmDialog", { enumerable: true, get: function () { return confirm_dialog_1.default; } });
@@ -0,0 +1,34 @@
1
+ # EbayCtaButton
2
+
3
+ ## Demo
4
+ [Storybook](https://opensource.ebay.com/ebayui-core-react/main/?path=/story/ebay-cta-button--default)
5
+
6
+ ## Usage
7
+
8
+ ### Import JS
9
+ ```jsx harmony
10
+ import { EbayCtaButton } from '@ebay/ui-core-react/ebay-cta-button'
11
+ ```
12
+
13
+ ### Import following styles from SKIN
14
+ ```jsx harmony
15
+ import "@ebay/skin/cta-button"
16
+ ```
17
+
18
+ ### Or import styles using SCSS/CSS
19
+ ```jsx harmony
20
+ import '@ebay/skin/cta-button.css'
21
+ ```
22
+
23
+ ### Big button
24
+ ```jsx harmony
25
+ <EbayCtaButton size="large">I'm a big CTA button!</EbayCtaButton>
26
+ ```
27
+
28
+ ## Attributes
29
+ Name | Type | Stateful | Required | Description | Data
30
+ --- | --- | --- | --- | --- | ---
31
+ `size` | String | No | No | can be only `large` or just omit it for default appearance
32
+ `href` | String | No | No | URL
33
+ `fluid` | Boolean | No | No | takes the whole width of the parent element
34
+ `truncate` | Boolean | No | No | will truncate the text of the button onto a single line, and adds an ellipsis, when the button's text overflows
@@ -0,0 +1,12 @@
1
+ import React, { ComponentProps, RefObject } from 'react';
2
+ import { Size } from '../ebay-button';
3
+ declare type HTMLAnchorProps = ComponentProps<'a'>;
4
+ declare type Props = HTMLAnchorProps & {
5
+ fluid?: boolean;
6
+ truncate?: boolean;
7
+ size?: Size;
8
+ forwardedRef?: RefObject<HTMLAnchorElement>;
9
+ };
10
+ declare const _default: React.ForwardRefExoticComponent<Pick<Props, "slot" | "style" | "title" | "type" | "download" | "className" | "forwardedRef" | "color" | "id" | "lang" | "media" | "target" | "role" | "tabIndex" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "size" | "fluid" | "truncate" | "hrefLang" | "ping" | "rel" | "referrerPolicy"> & React.RefAttributes<React.FC<Props>>>;
11
+ export default _default;
12
+ //# sourceMappingURL=cta-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cta-button.d.ts","sourceRoot":"","sources":["../../src/ebay-cta-button/cta-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAM,SAAS,EAAE,MAAM,OAAO,CAAA;AAI5D,OAAO,EAAkB,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAErD,aAAK,eAAe,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAC3C,aAAK,KAAK,GAAG,eAAe,GAAG;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,YAAY,CAAC,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC;CAC/C,CAAA;;AA2BD,wBAA4C"}
@@ -0,0 +1,41 @@
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 forwardRef_1 = require("../common/component-utils/forwardRef");
31
+ var ebay_icon_1 = require("../ebay-icon");
32
+ var ebay_button_1 = require("../ebay-button");
33
+ var EbayCtaButton = function (_a) {
34
+ var size = _a.size, children = _a.children, fluid = _a.fluid, truncate = _a.truncate, forwardedRef = _a.forwardedRef, extraClasses = _a.className, rest = __rest(_a, ["size", "children", "fluid", "truncate", "forwardedRef", "className"]);
35
+ var className = classnames_1.default(extraClasses, 'cta-btn', { 'cta-btn--large': size === 'large' }, { 'cta-btn--fluid': fluid }, { 'cta-btn--truncated': truncate });
36
+ return (react_1.default.createElement("a", __assign({}, rest, { className: className, ref: forwardedRef }),
37
+ react_1.default.createElement(ebay_button_1.EbayButtonCell, { type: "cta" },
38
+ react_1.default.createElement("span", null, children),
39
+ react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "cta", width: 8, height: 8 }))));
40
+ };
41
+ exports.default = forwardRef_1.withForwardRef(EbayCtaButton);
@@ -0,0 +1,2 @@
1
+ export { default as EbayCtaButton } from './cta-button';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-cta-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var cta_button_1 = require("./cta-button");
4
+ Object.defineProperty(exports, "EbayCtaButton", { enumerable: true, get: function () { return cta_button_1.default; } });
@@ -0,0 +1,4 @@
1
+ # EbayDialog
2
+
3
+ ## Deprecated
4
+ Use [EbayFullscreenDialog](../ebay-fullscreen-dialog), [EbayLightboxDialog](../ebay-lightbox-dialog), [EbayPanelDialog](../ebay-panel-dialog), [EbayDrawerDialog](../ebay-drawer-dialog) instead.
@@ -0,0 +1,36 @@
1
+ # DialogBase
2
+
3
+ ## DialogBase Usage
4
+
5
+ ```react
6
+ <DialogBase
7
+ open
8
+ a11yClosetext = "Close DialogBase"
9
+ onCloseBtnClick={ handleCloseBtnClick }>
10
+
11
+ <h1>Hello World</h1>
12
+
13
+ </DialogBase>
14
+ ```
15
+
16
+ ## Attributes
17
+
18
+ Name | Type | Stateful | Required | Description
19
+ --- | --- | --- | --- | ---
20
+ `baseEl` | string| No | No | --- div' , 'span', 'aside'
21
+ `open` | Boolean | Yes | No | Whether drawer is open.
22
+ `classPrefix` | drawer or toast or dialog | No | No | "" (default) / modifies the base prefix for all classes in the component
23
+ `windowClass` | String | No | No | "" (default) / modifies the base prefix for all Skin classes in the component
24
+ `header` | String | No | No | element placeholder
25
+ `footer` | String | No | No | element placeholder
26
+ `isModal` | Boolean | No | No | Whether drawer is model.
27
+ `top` | --- | --- | --- | ---
28
+ `buttonPosition` | string | --- | --- | top or right or bottom or left
29
+ `a11yCloseText`| String | No | Yes | A11y text for close button and mask.
30
+ `animated` | Boolean | Yes | No | Renders the dialog with an animation. Note that the dialog will always be present in the DOM
31
+
32
+ ## Events
33
+
34
+ Event | Data | Description
35
+ `onCloseBtnClick` | --- | --- | --- | ---
36
+ `OnBackgroundClick` | --- | --- | --- | ---
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ interface DialogAnimationHookProps {
3
+ open?: boolean;
4
+ transitionElement?: TransitionElement;
5
+ classPrefix: string;
6
+ dialogRef: React.RefObject<HTMLElement>;
7
+ dialogWindowRef: React.RefObject<HTMLElement>;
8
+ enabled?: boolean;
9
+ onTransitionEnd: () => void;
10
+ }
11
+ export declare type TransitionElement = 'window' | 'root';
12
+ export declare function useDialogAnimation({ open, classPrefix, transitionElement, dialogRef, dialogWindowRef, enabled, onTransitionEnd }: DialogAnimationHookProps): void;
13
+ export {};
14
+ //# sourceMappingURL=animation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/ebay-dialog-base/components/animation.ts"],"names":[],"mappings":";AAWA,UAAU,wBAAwB;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED,oBAAY,iBAAiB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElD,wBAAgB,kBAAkB,CAAC,EAC/B,IAAI,EACJ,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,OAAO,EACP,eAAe,EAClB,EAAE,wBAAwB,GAAG,IAAI,CA0CjC"}