@ebay/ui-core-react 5.6.3 → 5.7.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.
- package/common/component-utils/forwardRef.js +9 -4
- package/common/component-utils/index.js +6 -2
- package/common/component-utils/usePrevious.js +2 -2
- package/common/debounce.js +9 -7
- package/common/event-utils/index.d.ts +2 -2
- package/common/event-utils/index.d.ts.map +1 -1
- package/common/event-utils/types.d.ts +10 -10
- package/common/event-utils/types.d.ts.map +1 -1
- package/common/event-utils/use-key-press.js +3 -3
- package/common/event-utils/use-roving-index.d.ts.map +1 -1
- package/common/event-utils/use-roving-index.js +12 -10
- package/common/floating-label-utils/hooks.d.ts +3 -3
- package/common/floating-label-utils/hooks.d.ts.map +1 -1
- package/common/floating-label-utils/hooks.js +22 -18
- package/common/notice-utils/notice-content.d.ts +1 -1
- package/common/notice-utils/notice-content.d.ts.map +1 -1
- package/common/notice-utils/notice-content.js +1 -1
- package/common/notice-utils/notice-cta.d.ts +1 -1
- package/common/notice-utils/notice-cta.d.ts.map +1 -1
- package/common/notice-utils/notice-cta.js +1 -1
- package/common/notice-utils/notice-footer.d.ts +1 -1
- package/common/notice-utils/notice-footer.d.ts.map +1 -1
- package/common/notice-utils/notice-footer.js +1 -1
- package/common/notice-utils/notice-title.d.ts +1 -1
- package/common/notice-utils/notice-title.d.ts.map +1 -1
- package/common/notice-utils/notice-title.js +1 -1
- package/common/random-id.js +2 -1
- package/common/range.js +2 -1
- package/common/tooltip-utils/index.js +8 -4
- package/common/tooltip-utils/tooltip-content.d.ts +1 -1
- package/common/tooltip-utils/tooltip-content.d.ts.map +1 -1
- package/common/tooltip-utils/tooltip-content.js +9 -9
- package/common/tooltip-utils/tooltip-footer.d.ts +1 -1
- package/common/tooltip-utils/tooltip-footer.d.ts.map +1 -1
- package/common/tooltip-utils/tooltip-footer.js +1 -1
- package/common/tooltip-utils/tooltip-host.d.ts +1 -1
- package/common/tooltip-utils/tooltip-host.d.ts.map +1 -1
- package/common/tooltip-utils/tooltip-host.js +1 -1
- package/common/tooltip-utils/tooltip.d.ts +2 -2
- package/common/tooltip-utils/tooltip.d.ts.map +1 -1
- package/common/tooltip-utils/tooltip.js +12 -8
- package/common/tooltip-utils/types.d.ts +2 -2
- package/common/tooltip-utils/types.d.ts.map +1 -1
- package/common/tooltip-utils/use-tooltip.d.ts +2 -2
- package/common/tooltip-utils/use-tooltip.d.ts.map +1 -1
- package/common/tooltip-utils/use-tooltip.js +3 -2
- package/ebay-alert-dialog/alert-dialog.js +8 -4
- package/ebay-alert-dialog/index.js +5 -1
- package/ebay-badge/badge.d.ts +2 -2
- package/ebay-badge/badge.d.ts.map +1 -1
- package/ebay-badge/badge.js +1 -1
- package/ebay-badge/index.js +5 -1
- package/ebay-breadcrumbs/breadcrumb-item.d.ts +2 -2
- package/ebay-breadcrumbs/breadcrumb-item.d.ts.map +1 -1
- package/ebay-breadcrumbs/breadcrumbs.d.ts +1 -1
- package/ebay-breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/ebay-breadcrumbs/breadcrumbs.js +9 -5
- package/ebay-breadcrumbs/index.js +6 -2
- package/ebay-button/button-cell.d.ts +2 -2
- package/ebay-button/button-cell.d.ts.map +1 -1
- package/ebay-button/button-cell.js +1 -1
- package/ebay-button/button-text.d.ts +1 -1
- package/ebay-button/button-text.d.ts.map +1 -1
- package/ebay-button/button-text.js +1 -1
- package/ebay-button/button.d.ts +3 -3
- package/ebay-button/button.d.ts.map +1 -1
- package/ebay-button/button.js +14 -10
- package/ebay-button/index.js +6 -2
- package/ebay-button/types.d.ts +5 -5
- package/ebay-button/types.d.ts.map +1 -1
- package/ebay-carousel/carousel-control-button.d.ts +1 -1
- package/ebay-carousel/carousel-control-button.d.ts.map +1 -1
- package/ebay-carousel/carousel-control-button.js +2 -2
- package/ebay-carousel/carousel-item.d.ts +3 -3
- package/ebay-carousel/carousel-item.d.ts.map +1 -1
- package/ebay-carousel/carousel-item.js +11 -7
- package/ebay-carousel/carousel-list.d.ts +1 -1
- package/ebay-carousel/carousel-list.d.ts.map +1 -1
- package/ebay-carousel/carousel-list.js +18 -14
- package/ebay-carousel/carousel.d.ts +1 -1
- package/ebay-carousel/carousel.d.ts.map +1 -1
- package/ebay-carousel/carousel.js +23 -19
- package/ebay-carousel/helpers.d.ts.map +1 -1
- package/ebay-carousel/helpers.js +19 -13
- package/ebay-carousel/index.js +6 -2
- package/ebay-carousel/scroll-to-transition.d.ts +1 -1
- package/ebay-carousel/scroll-to-transition.d.ts.map +1 -1
- package/ebay-carousel/types.d.ts +4 -4
- package/ebay-carousel/types.d.ts.map +1 -1
- package/ebay-checkbox/checkbox.d.ts +3 -3
- package/ebay-checkbox/checkbox.d.ts.map +1 -1
- package/ebay-checkbox/checkbox.js +10 -6
- package/ebay-checkbox/index.js +5 -1
- package/ebay-confirm-dialog/confirm-dialog.js +8 -4
- package/ebay-confirm-dialog/index.js +5 -1
- package/ebay-cta-button/cta-button.d.ts +3 -3
- package/ebay-cta-button/cta-button.d.ts.map +1 -1
- package/ebay-cta-button/cta-button.js +2 -2
- package/ebay-cta-button/index.js +5 -1
- package/ebay-dialog-base/components/animation.d.ts +1 -1
- package/ebay-dialog-base/components/animation.d.ts.map +1 -1
- package/ebay-dialog-base/components/animation.js +5 -5
- package/ebay-dialog-base/components/dialog-actions.d.ts +1 -1
- package/ebay-dialog-base/components/dialog-actions.d.ts.map +1 -1
- package/ebay-dialog-base/components/dialog-footer.d.ts +1 -1
- package/ebay-dialog-base/components/dialog-footer.d.ts.map +1 -1
- package/ebay-dialog-base/components/dialog-header.d.ts +1 -1
- package/ebay-dialog-base/components/dialog-header.d.ts.map +1 -1
- package/ebay-dialog-base/components/dialog-previous-button.d.ts +1 -1
- package/ebay-dialog-base/components/dialog-previous-button.d.ts.map +1 -1
- package/ebay-dialog-base/components/dialog-previous-button.js +1 -1
- package/ebay-dialog-base/components/dialogBase.d.ts +3 -3
- package/ebay-dialog-base/components/dialogBase.d.ts.map +1 -1
- package/ebay-dialog-base/components/dialogBase.js +28 -23
- package/ebay-dialog-base/dialog-base-with-state.d.ts.map +1 -1
- package/ebay-dialog-base/dialog-base-with-state.js +8 -3
- package/ebay-dialog-base/index.js +10 -6
- package/ebay-drawer-dialog/components/drawer.js +11 -7
- package/ebay-drawer-dialog/index.js +5 -1
- package/ebay-eek/eek-rating.d.ts +1 -1
- package/ebay-eek/eek-rating.d.ts.map +1 -1
- package/ebay-eek/eek-rating.js +3 -3
- package/ebay-eek/index.js +5 -1
- package/ebay-fake-menu/index.js +7 -3
- package/ebay-fake-menu/menu-item-separator.d.ts +1 -1
- package/ebay-fake-menu/menu-item-separator.d.ts.map +1 -1
- package/ebay-fake-menu/menu-item-separator.js +1 -1
- package/ebay-fake-menu/menu-item.d.ts +1 -1
- package/ebay-fake-menu/menu-item.d.ts.map +1 -1
- package/ebay-fake-menu/menu-item.js +9 -5
- package/ebay-fake-menu/menu.d.ts +2 -2
- package/ebay-fake-menu/menu.d.ts.map +1 -1
- package/ebay-fake-menu/menu.js +8 -4
- package/ebay-fake-menu-button/index.js +8 -4
- package/ebay-fake-menu-button/menu-button-separator.d.ts +1 -1
- package/ebay-fake-menu-button/menu-button-separator.d.ts.map +1 -1
- package/ebay-fake-menu-button/menu-button-separator.js +1 -1
- package/ebay-fake-menu-button/menu-button.d.ts +4 -4
- package/ebay-fake-menu-button/menu-button.d.ts.map +1 -1
- package/ebay-fake-menu-button/menu-button.js +20 -16
- package/ebay-fake-tabs/fake-tabs.d.ts +1 -1
- package/ebay-fake-tabs/fake-tabs.d.ts.map +1 -1
- package/ebay-fake-tabs/fake-tabs.js +10 -6
- package/ebay-fake-tabs/index.js +6 -2
- package/ebay-fake-tabs/tab.d.ts +1 -1
- package/ebay-fake-tabs/tab.d.ts.map +1 -1
- package/ebay-fake-tabs/tab.js +1 -1
- package/ebay-field/description.d.ts +1 -1
- package/ebay-field/description.d.ts.map +1 -1
- package/ebay-field/description.js +1 -1
- package/ebay-field/field.d.ts +1 -1
- package/ebay-field/field.d.ts.map +1 -1
- package/ebay-field/field.js +1 -1
- package/ebay-field/index.js +7 -3
- package/ebay-field/label.d.ts +1 -1
- package/ebay-field/label.d.ts.map +1 -1
- package/ebay-field/label.js +1 -1
- package/ebay-field/types.d.ts +4 -4
- package/ebay-field/types.d.ts.map +1 -1
- package/ebay-fullscreen-dialog/fullscreen-dialog.js +1 -1
- package/ebay-fullscreen-dialog/index.js +5 -1
- package/ebay-icon/icon.d.ts +3 -3
- package/ebay-icon/icon.d.ts.map +1 -1
- package/ebay-icon/icon.js +15 -11
- package/ebay-icon/index.js +5 -1
- package/ebay-icon/types.d.ts +1 -1
- package/ebay-icon/types.d.ts.map +1 -1
- package/ebay-icon-button/icon-button.d.ts +5 -5
- package/ebay-icon-button/icon-button.d.ts.map +1 -1
- package/ebay-icon-button/icon-button.js +4 -4
- package/ebay-icon-button/index.js +5 -1
- package/ebay-infotip/ebay-infotip-heading.d.ts +1 -1
- package/ebay-infotip/ebay-infotip-heading.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip-heading.js +1 -1
- package/ebay-infotip/ebay-infotip-host.d.ts +2 -2
- package/ebay-infotip/ebay-infotip-host.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip-host.js +2 -2
- package/ebay-infotip/ebay-infotip.d.ts +1 -1
- package/ebay-infotip/ebay-infotip.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip.js +14 -11
- package/ebay-infotip/index.js +8 -4
- package/ebay-infotip/types.d.ts +1 -1
- package/ebay-infotip/types.d.ts.map +1 -1
- package/ebay-inline-notice/index.js +5 -1
- package/ebay-inline-notice/inline-notice.d.ts +1 -1
- package/ebay-inline-notice/inline-notice.d.ts.map +1 -1
- package/ebay-inline-notice/inline-notice.js +10 -6
- package/ebay-inline-notice/types.d.ts +1 -1
- package/ebay-inline-notice/types.d.ts.map +1 -1
- package/ebay-lightbox-dialog/index.js +5 -1
- package/ebay-lightbox-dialog/lightbox-dialog.d.ts +1 -1
- package/ebay-lightbox-dialog/lightbox-dialog.d.ts.map +1 -1
- package/ebay-lightbox-dialog/lightbox-dialog.js +2 -2
- package/ebay-listbox-button/index.js +6 -2
- package/ebay-listbox-button/listbox-button-option.d.ts +1 -1
- package/ebay-listbox-button/listbox-button-option.d.ts.map +1 -1
- package/ebay-listbox-button/listbox-button-option.js +2 -2
- package/ebay-listbox-button/listbox-button.d.ts +2 -2
- package/ebay-listbox-button/listbox-button.d.ts.map +1 -1
- package/ebay-listbox-button/listbox-button.js +22 -18
- package/ebay-menu/index.js +13 -5
- package/ebay-menu/menu-item-separator.d.ts +1 -1
- package/ebay-menu/menu-item-separator.d.ts.map +1 -1
- package/ebay-menu/menu-item-separator.js +1 -1
- package/ebay-menu/menu-item.d.ts +1 -1
- package/ebay-menu/menu-item.d.ts.map +1 -1
- package/ebay-menu/menu-item.js +9 -5
- package/ebay-menu/menu.d.ts +1 -1
- package/ebay-menu/menu.js +23 -17
- package/ebay-menu/types.d.ts +10 -10
- package/ebay-menu/types.d.ts.map +1 -1
- package/ebay-menu-button/index.js +14 -6
- package/ebay-menu-button/menu-button-separator.d.ts +1 -1
- package/ebay-menu-button/menu-button-separator.d.ts.map +1 -1
- package/ebay-menu-button/menu-button-separator.js +1 -1
- package/ebay-menu-button/menu-button.d.ts +3 -3
- package/ebay-menu-button/menu-button.d.ts.map +1 -1
- package/ebay-menu-button/menu-button.js +21 -17
- package/ebay-menu-button/types.d.ts +1 -1
- package/ebay-menu-button/types.d.ts.map +1 -1
- package/ebay-notice-base/components/ebay-notice-content/index.js +5 -1
- package/ebay-notice-base/components/ebay-notice-content/notice-content.d.ts +1 -1
- package/ebay-notice-base/components/ebay-notice-content/notice-content.d.ts.map +1 -1
- package/ebay-notice-base/components/ebay-notice-title/index.js +5 -1
- package/ebay-notice-base/index.js +1 -0
- package/ebay-page-notice/index.js +8 -4
- package/ebay-page-notice/page-notice-cta.d.ts +1 -1
- package/ebay-page-notice/page-notice-cta.d.ts.map +1 -1
- package/ebay-page-notice/page-notice-footer.d.ts +1 -1
- package/ebay-page-notice/page-notice-footer.d.ts.map +1 -1
- package/ebay-page-notice/page-notice-title.d.ts +1 -1
- package/ebay-page-notice/page-notice-title.d.ts.map +1 -1
- package/ebay-page-notice/page-notice.d.ts +2 -2
- package/ebay-page-notice/page-notice.d.ts.map +1 -1
- package/ebay-page-notice/page-notice.js +10 -6
- package/ebay-pagination/index.js +6 -2
- package/ebay-pagination/pagination-item.d.ts +4 -4
- package/ebay-pagination/pagination-item.d.ts.map +1 -1
- package/ebay-pagination/pagination-item.js +3 -3
- package/ebay-pagination/pagination.d.ts +1 -1
- package/ebay-pagination/pagination.d.ts.map +1 -1
- package/ebay-pagination/pagination.js +38 -26
- package/ebay-pagination/types.d.ts +2 -2
- package/ebay-pagination/types.d.ts.map +1 -1
- package/ebay-panel-dialog/index.js +5 -1
- package/ebay-panel-dialog/panel-dialog.d.ts +1 -1
- package/ebay-panel-dialog/panel-dialog.d.ts.map +1 -1
- package/ebay-panel-dialog/panel-dialog.js +2 -2
- package/ebay-progress-bar/index.js +5 -1
- package/ebay-progress-bar/progress-bar.d.ts +1 -1
- package/ebay-progress-bar/progress-bar.d.ts.map +1 -1
- package/ebay-progress-bar/progress-bar.js +1 -1
- package/ebay-progress-spinner/index.js +5 -1
- package/ebay-progress-spinner/progress-spinner.d.ts +3 -3
- package/ebay-progress-spinner/progress-spinner.d.ts.map +1 -1
- package/ebay-progress-spinner/progress-spinner.js +1 -1
- package/ebay-progress-stepper/ebay-progress-step.d.ts +1 -1
- package/ebay-progress-stepper/ebay-progress-step.d.ts.map +1 -1
- package/ebay-progress-stepper/ebay-progress-step.js +7 -3
- package/ebay-progress-stepper/ebay-progress-stepper.d.ts +1 -1
- package/ebay-progress-stepper/ebay-progress-stepper.d.ts.map +1 -1
- package/ebay-progress-stepper/ebay-progress-stepper.js +8 -4
- package/ebay-progress-stepper/ebay-progress-title.d.ts +1 -1
- package/ebay-progress-stepper/ebay-progress-title.d.ts.map +1 -1
- package/ebay-progress-stepper/ebay-progress-title.js +1 -1
- package/ebay-progress-stepper/index.js +7 -3
- package/ebay-progress-stepper/types.d.ts +2 -2
- package/ebay-progress-stepper/types.d.ts.map +1 -1
- package/ebay-radio/index.js +5 -1
- package/ebay-radio/radio.d.ts +3 -3
- package/ebay-radio/radio.d.ts.map +1 -1
- package/ebay-radio/radio.js +8 -4
- package/ebay-section-notice/index.js +7 -3
- package/ebay-section-notice/section-notice-footer.d.ts +1 -1
- package/ebay-section-notice/section-notice-footer.d.ts.map +1 -1
- package/ebay-section-notice/section-notice-title.d.ts +1 -1
- package/ebay-section-notice/section-notice-title.d.ts.map +1 -1
- package/ebay-section-notice/section-notice.d.ts +2 -2
- package/ebay-section-notice/section-notice.d.ts.map +1 -1
- package/ebay-section-notice/section-notice.js +12 -8
- package/ebay-section-title/cta.d.ts +1 -1
- package/ebay-section-title/cta.d.ts.map +1 -1
- package/ebay-section-title/cta.js +1 -1
- package/ebay-section-title/index.js +9 -5
- package/ebay-section-title/info.d.ts +1 -1
- package/ebay-section-title/info.d.ts.map +1 -1
- package/ebay-section-title/info.js +1 -1
- package/ebay-section-title/overflow.d.ts +1 -1
- package/ebay-section-title/overflow.d.ts.map +1 -1
- package/ebay-section-title/overflow.js +1 -1
- package/ebay-section-title/section-title.d.ts +1 -1
- package/ebay-section-title/section-title.d.ts.map +1 -1
- package/ebay-section-title/section-title.js +5 -5
- package/ebay-section-title/subtitle.d.ts +1 -1
- package/ebay-section-title/subtitle.d.ts.map +1 -1
- package/ebay-section-title/subtitle.js +1 -1
- package/ebay-section-title/title.d.ts +1 -1
- package/ebay-section-title/title.d.ts.map +1 -1
- package/ebay-section-title/title.js +1 -1
- package/ebay-select/ebay-select-option.d.ts +1 -1
- package/ebay-select/ebay-select-option.d.ts.map +1 -1
- package/ebay-select/ebay-select.d.ts +3 -3
- package/ebay-select/ebay-select.d.ts.map +1 -1
- package/ebay-select/ebay-select.js +12 -8
- package/ebay-select/index.js +6 -2
- package/ebay-signal/index.js +5 -1
- package/ebay-signal/signal.d.ts +2 -2
- package/ebay-signal/signal.d.ts.map +1 -1
- package/ebay-signal/signal.js +1 -1
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.d.ts.map +1 -1
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.js +3 -2
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog.d.ts +1 -1
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog.d.ts.map +1 -1
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog.js +14 -9
- package/ebay-snackbar-dialog/index.js +1 -0
- package/ebay-split-button/index.js +11 -3
- package/ebay-split-button/split-button.js +2 -2
- package/ebay-split-button/types.d.ts +3 -3
- package/ebay-split-button/types.d.ts.map +1 -1
- package/ebay-star-rating/index.js +11 -3
- package/ebay-star-rating/star-rating.d.ts +1 -1
- package/ebay-star-rating/star-rating.d.ts.map +1 -1
- package/ebay-star-rating/star-rating.js +2 -2
- package/ebay-star-rating-select/index.js +11 -3
- package/ebay-star-rating-select/star-rating-select.d.ts +2 -2
- package/ebay-star-rating-select/star-rating-select.d.ts.map +1 -1
- package/ebay-star-rating-select/star-rating-select.js +12 -8
- package/ebay-svg/index.js +5 -1
- package/ebay-switch/ebay-switch.d.ts +1 -1
- package/ebay-switch/ebay-switch.d.ts.map +1 -1
- package/ebay-switch/ebay-switch.js +9 -5
- package/ebay-switch/index.js +5 -1
- package/ebay-tabs/index.d.ts +1 -1
- package/ebay-tabs/index.d.ts.map +1 -1
- package/ebay-tabs/index.js +7 -3
- package/ebay-tabs/tab-panel.d.ts +1 -1
- package/ebay-tabs/tab-panel.d.ts.map +1 -1
- package/ebay-tabs/tab-panel.js +1 -1
- package/ebay-tabs/tab.d.ts +1 -1
- package/ebay-tabs/tab.d.ts.map +1 -1
- package/ebay-tabs/tab.js +1 -1
- package/ebay-tabs/tabs.d.ts +2 -14
- package/ebay-tabs/tabs.d.ts.map +1 -1
- package/ebay-tabs/tabs.js +18 -14
- package/ebay-tabs/types.d.ts +16 -2
- package/ebay-tabs/types.d.ts.map +1 -1
- package/ebay-textbox/index.js +7 -3
- package/ebay-textbox/textbox.d.ts +4 -4
- package/ebay-textbox/textbox.d.ts.map +1 -1
- package/ebay-textbox/textbox.js +16 -12
- package/ebay-textbox/types.d.ts +2 -2
- package/ebay-textbox/types.d.ts.map +1 -1
- package/ebay-toast-dialog/components/toast.d.ts +1 -1
- package/ebay-toast-dialog/components/toast.d.ts.map +1 -1
- package/ebay-toast-dialog/components/toast.js +3 -2
- package/ebay-toast-dialog/index.js +5 -1
- package/ebay-tooltip/ebay-tooltip.d.ts +1 -1
- package/ebay-tooltip/ebay-tooltip.d.ts.map +1 -1
- package/ebay-tooltip/ebay-tooltip.js +10 -6
- package/ebay-tooltip/index.js +7 -3
- package/ebay-tourtip/ebay-tourtip-footer.d.ts +1 -1
- package/ebay-tourtip/ebay-tourtip-footer.d.ts.map +1 -1
- package/ebay-tourtip/ebay-tourtip-heading.d.ts +1 -1
- package/ebay-tourtip/ebay-tourtip-heading.d.ts.map +1 -1
- package/ebay-tourtip/ebay-tourtip-heading.js +1 -1
- package/ebay-tourtip/ebay-tourtip.d.ts +1 -1
- package/ebay-tourtip/ebay-tourtip.d.ts.map +1 -1
- package/ebay-tourtip/ebay-tourtip.js +13 -9
- package/ebay-tourtip/index.js +9 -5
- package/ebay-video/controls.js +3 -1
- package/ebay-video/index.js +12 -4
- package/ebay-video/reportButton.js +2 -1
- package/ebay-video/source.d.ts +1 -1
- package/ebay-video/source.d.ts.map +1 -1
- package/ebay-video/types.d.ts +5 -5
- package/ebay-video/types.d.ts.map +1 -1
- package/ebay-video/video.d.ts +3 -3
- package/ebay-video/video.d.ts.map +1 -1
- package/ebay-video/video.js +32 -26
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { ComponentProps, RefObject } from 'react';
|
|
2
2
|
import { TooltipType } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type TooltipProps = ComponentProps<'span'> & {
|
|
4
4
|
type?: TooltipType;
|
|
5
5
|
isExpanded?: boolean;
|
|
6
6
|
forwardedRef?: RefObject<HTMLSpanElement>;
|
|
7
7
|
};
|
|
8
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<TooltipProps, "
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<TooltipProps, "forwardedRef" | "type" | "key" | "isExpanded" | keyof React.HTMLAttributes<HTMLSpanElement>> & React.RefAttributes<React.FC<TooltipProps>>>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,cAAc,EAAM,SAAS,EAAE,MAAM,OAAO,CAAA;AAI1E,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGrC,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,cAAc,EAAM,SAAS,EAAE,MAAM,OAAO,CAAA;AAI1E,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGrC,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAChD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CAC7C,CAAA;;AAqCD,wBAAsC"}
|
|
@@ -12,7 +12,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
14
|
if (k2 === undefined) k2 = k;
|
|
15
|
-
Object.
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
16
20
|
}) : (function(o, m, k, k2) {
|
|
17
21
|
if (k2 === undefined) k2 = k;
|
|
18
22
|
o[k2] = m[k];
|
|
@@ -25,7 +29,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
29
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
30
|
if (mod && mod.__esModule) return mod;
|
|
27
31
|
var result = {};
|
|
28
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
33
|
__setModuleDefault(result, mod);
|
|
30
34
|
return result;
|
|
31
35
|
};
|
|
@@ -53,16 +57,16 @@ var Tooltip = function (_a) {
|
|
|
53
57
|
var _b;
|
|
54
58
|
var _c;
|
|
55
59
|
var className = _a.className, type = _a.type, isExpanded = _a.isExpanded, children = _a.children, forwardedRef = _a.forwardedRef, rest = __rest(_a, ["className", "type", "isExpanded", "children", "forwardedRef"]);
|
|
56
|
-
var originalHostComponent = component_utils_1.findComponent(children, tooltip_host_1.default);
|
|
57
|
-
var content = component_utils_1.excludeComponent(children, tooltip_host_1.default)[0];
|
|
60
|
+
var originalHostComponent = (0, component_utils_1.findComponent)(children, tooltip_host_1.default);
|
|
61
|
+
var content = (0, component_utils_1.excludeComponent)(children, tooltip_host_1.default)[0];
|
|
58
62
|
if (!originalHostComponent) {
|
|
59
63
|
throw new Error("Tooltip: Please use a TooltipHost that defines the host of the tooltip");
|
|
60
64
|
}
|
|
61
|
-
var host = react_1.cloneElement(originalHostComponent, __assign({ className: type
|
|
62
|
-
return (react_1.default.createElement("span", __assign({}, rest, { ref: forwardedRef, className: classnames_1.default(className, type, (_b = {},
|
|
63
|
-
_b[type
|
|
65
|
+
var host = (0, react_1.cloneElement)(originalHostComponent, __assign({ className: "".concat(type, "__host"), 'aria-expanded': isExpanded, 'aria-describedby': (_c = content === null || content === void 0 ? void 0 : content.props) === null || _c === void 0 ? void 0 : _c.id }, originalHostComponent.props));
|
|
66
|
+
return (react_1.default.createElement("span", __assign({}, rest, { ref: forwardedRef, className: (0, classnames_1.default)(className, type, (_b = {},
|
|
67
|
+
_b["".concat(type, "--expanded")] = isExpanded,
|
|
64
68
|
_b)) }),
|
|
65
69
|
host,
|
|
66
70
|
content));
|
|
67
71
|
};
|
|
68
|
-
exports.default = forwardRef_1.withForwardRef(Tooltip);
|
|
72
|
+
exports.default = (0, forwardRef_1.withForwardRef)(Tooltip);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type TooltipType = 'tooltip' | 'infotip' | 'tourtip';
|
|
2
|
+
export type PointerDirection = 'top' | 'top-left' | 'top-right' | 'right' | 'right-bottom' | 'right-top' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-bottom' | 'left-top';
|
|
3
3
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE3D,MAAM,MAAM,gBAAgB,GACxB,KAAK,GAAG,UAAU,GAAG,WAAW,GAChC,OAAO,GAAG,cAAc,GAAG,WAAW,GACtC,QAAQ,GAAG,aAAa,GAAG,cAAc,GACzC,MAAM,GAAG,aAAa,GAAG,UAAU,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
|
|
2
|
+
type UseTooltipArgs = {
|
|
3
3
|
onExpand: () => void;
|
|
4
4
|
onCollapse: () => void;
|
|
5
5
|
initialExpanded?: boolean;
|
|
6
6
|
hostRef?: RefObject<HTMLElement>;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type UseTooltip = {
|
|
9
9
|
isExpanded: boolean;
|
|
10
10
|
expandTooltip: () => void;
|
|
11
11
|
collapseTooltip: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-tooltip.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/use-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAE3C,
|
|
1
|
+
{"version":3,"file":"use-tooltip.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/use-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAE3C,KAAK,cAAc,GAAG;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;CACpC,CAAC;AAEF,KAAK,UAAU,GAAG;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,UAAU,uDAAgE,cAAc,KAAG,UAuBvG,CAAA"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useTooltip = void 0;
|
|
4
4
|
var react_1 = require("react");
|
|
5
|
-
|
|
5
|
+
var useTooltip = function (_a) {
|
|
6
6
|
var onExpand = _a.onExpand, onCollapse = _a.onCollapse, _b = _a.initialExpanded, initialExpanded = _b === void 0 ? false : _b, hostRef = _a.hostRef;
|
|
7
|
-
var _c = react_1.useState(initialExpanded), isExpanded = _c[0], setIsExpanded = _c[1];
|
|
7
|
+
var _c = (0, react_1.useState)(initialExpanded), isExpanded = _c[0], setIsExpanded = _c[1];
|
|
8
8
|
var expandTooltip = function () {
|
|
9
9
|
setIsExpanded(true);
|
|
10
10
|
if (onExpand) {
|
|
@@ -25,3 +25,4 @@ exports.useTooltip = function (_a) {
|
|
|
25
25
|
collapseTooltip: collapseTooltip
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
+
exports.useTooltip = useTooltip;
|
|
@@ -12,7 +12,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
14
|
if (k2 === undefined) k2 = k;
|
|
15
|
-
Object.
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
16
20
|
}) : (function(o, m, k, k2) {
|
|
17
21
|
if (k2 === undefined) k2 = k;
|
|
18
22
|
o[k2] = m[k];
|
|
@@ -25,7 +29,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
29
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
30
|
if (mod && mod.__esModule) return mod;
|
|
27
31
|
var result = {};
|
|
28
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
33
|
__setModuleDefault(result, mod);
|
|
30
34
|
return result;
|
|
31
35
|
};
|
|
@@ -51,10 +55,10 @@ var ebay_button_1 = require("../ebay-button");
|
|
|
51
55
|
var classPrefix = 'alert-dialog';
|
|
52
56
|
var EbayAlertDialog = function (_a) {
|
|
53
57
|
var _b = _a.a11yCloseText, a11yCloseText = _b === void 0 ? 'Close Dialog' : _b, confirmText = _a.confirmText, _c = _a.onConfirm, onConfirm = _c === void 0 ? function () { } : _c, rest = __rest(_a, ["a11yCloseText", "confirmText", "onConfirm"]);
|
|
54
|
-
var confirmBtnRef = react_1.useRef(null);
|
|
58
|
+
var confirmBtnRef = (0, react_1.useRef)(null);
|
|
55
59
|
var confirmId = 'alert-dialog-confirm';
|
|
56
60
|
var mainId = 'alert-dialog-main';
|
|
57
|
-
return (react_1.default.createElement(ebay_dialog_base_1.DialogBaseWithState, __assign({ focus: confirmBtnRef }, rest, { a11yCloseText: a11yCloseText, role: "alertdialog", classPrefix: classPrefix, ignoreEscape: true, mainId: mainId, buttonPosition: "hidden", className: classnames_1.default(rest.className, classPrefix
|
|
61
|
+
return (react_1.default.createElement(ebay_dialog_base_1.DialogBaseWithState, __assign({ focus: confirmBtnRef }, rest, { a11yCloseText: a11yCloseText, role: "alertdialog", classPrefix: classPrefix, ignoreEscape: true, mainId: mainId, buttonPosition: "hidden", className: (0, classnames_1.default)(rest.className, "".concat(classPrefix, "--mask-fade")), windowClass: "".concat(classPrefix, "__window ").concat(classPrefix, "__window--fade") }),
|
|
58
62
|
rest.children,
|
|
59
63
|
react_1.default.createElement(ebay_dialog_base_1.EbayDialogFooter, null,
|
|
60
64
|
react_1.default.createElement(ebay_button_1.EbayButton, { priority: "primary", "aria-describedby": mainId, onClick: onConfirm, ref: confirmBtnRef, id: confirmId, className: "alert-dialog__acknowledge" }, confirmText))));
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.EbayAlertDialog = void 0;
|
|
3
7
|
var alert_dialog_1 = require("./alert-dialog");
|
|
4
|
-
Object.defineProperty(exports, "EbayAlertDialog", { enumerable: true, get: function () { return alert_dialog_1.default; } });
|
|
8
|
+
Object.defineProperty(exports, "EbayAlertDialog", { enumerable: true, get: function () { return __importDefault(alert_dialog_1).default; } });
|
package/ebay-badge/badge.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, FC } from 'react';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type EbayBadgeType = 'menu' | 'icon' | 'img';
|
|
3
|
+
type Props = ComponentProps<'span'> & {
|
|
4
4
|
type?: EbayBadgeType;
|
|
5
5
|
number: number | string;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/ebay-badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjD,
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/ebay-badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAA;AAEnD,KAAK,KAAK,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAClC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,KAAK,CAmBxB,CAAA;AAED,eAAe,SAAS,CAAA"}
|
package/ebay-badge/badge.js
CHANGED
|
@@ -31,6 +31,6 @@ var EbayBadge = function (_a) {
|
|
|
31
31
|
var number = _a.number, _b = _a.type, type = _b === void 0 ? 'img' : _b, className = _a.className, rest = __rest(_a, ["number", "type", "className"]);
|
|
32
32
|
// Parse in case user provided a string by mistake
|
|
33
33
|
var parsed = Math.round(parseInt(String(number), 10));
|
|
34
|
-
return parsed <= 0 ? null : (react_1.default.createElement("span", __assign({}, rest, { className: classnames_1.default('badge', className), role: type === 'img' ? 'img' : undefined, "aria-hidden": type !== 'img' }), parsed > 99 ? '99+' : parsed));
|
|
34
|
+
return parsed <= 0 ? null : (react_1.default.createElement("span", __assign({}, rest, { className: (0, classnames_1.default)('badge', className), role: type === 'img' ? 'img' : undefined, "aria-hidden": type !== 'img' }), parsed > 99 ? '99+' : parsed));
|
|
35
35
|
};
|
|
36
36
|
exports.default = EbayBadge;
|
package/ebay-badge/index.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.EbayBadge = void 0;
|
|
3
7
|
var badge_1 = require("./badge");
|
|
4
|
-
Object.defineProperty(exports, "EbayBadge", { enumerable: true, get: function () { return badge_1.default; } });
|
|
8
|
+
Object.defineProperty(exports, "EbayBadge", { enumerable: true, get: function () { return __importDefault(badge_1).default; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, FC, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type ItemAttributes = ComponentProps<'a'> & ComponentProps<'button'>;
|
|
3
|
+
type BreadcrumbItemProps = ItemAttributes & {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
tag?: 'a' | 'button';
|
|
6
6
|
href?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-item.d.ts","sourceRoot":"","sources":["../../src/ebay-breadcrumbs/breadcrumb-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG/E,
|
|
1
|
+
{"version":3,"file":"breadcrumb-item.d.ts","sourceRoot":"","sources":["../../src/ebay-breadcrumbs/breadcrumb-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG/E,KAAK,cAAc,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAErE,KAAK,mBAAmB,GAAG,cAAc,GAAG;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,GAAG,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAqB3C,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
2
|
import { EbayEventHandler } from '../common/event-utils/types';
|
|
3
|
-
|
|
3
|
+
type BreadcrumbProps = Omit<ComponentProps<'div'>, 'onSelect'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Breadcrumbs expects `<EbayBreadcrumbItem/>` as children.
|
|
6
6
|
* Other elements will not work.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/ebay-breadcrumbs/breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA0B,cAAc,EAAE,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAElG,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAE9D,
|
|
1
|
+
{"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/ebay-breadcrumbs/breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA0B,cAAc,EAAE,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAElG,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAE9D,KAAK,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IAC7D;;;;;OAKG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAC;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;CAC5C,CAAA;AAED,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,eAAe,CAwCpC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -12,7 +12,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
14
|
if (k2 === undefined) k2 = k;
|
|
15
|
-
Object.
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
16
20
|
}) : (function(o, m, k, k2) {
|
|
17
21
|
if (k2 === undefined) k2 = k;
|
|
18
22
|
o[k2] = m[k];
|
|
@@ -25,7 +29,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
29
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
30
|
if (mod && mod.__esModule) return mod;
|
|
27
31
|
var result = {};
|
|
28
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
33
|
__setModuleDefault(result, mod);
|
|
30
34
|
return result;
|
|
31
35
|
};
|
|
@@ -48,12 +52,12 @@ var react_1 = __importStar(require("react"));
|
|
|
48
52
|
var classnames_1 = __importDefault(require("classnames"));
|
|
49
53
|
var Breadcrumbs = function (_a) {
|
|
50
54
|
var _b = _a.a11yHeadingText, a11yHeadingText = _b === void 0 ? 'Page navigation' : _b, _c = _a.a11yHeadingTag, a11yHeadingTag = _c === void 0 ? 'h2' : _c, _d = _a.id, id = _d === void 0 ? 'ebay-breadcrumb' : _d, _e = _a.children, breadcrumbItems = _e === void 0 ? [] : _e, className = _a.className, _f = _a.onSelect, onSelect = _f === void 0 ? function () { } : _f, rest = __rest(_a, ["a11yHeadingText", "a11yHeadingTag", "id", "children", "className", "onSelect"]);
|
|
51
|
-
var headingId = id
|
|
55
|
+
var headingId = "".concat(id, "-breadcrumbs-heading");
|
|
52
56
|
var lastItemIndex = react_1.Children.count(breadcrumbItems) - 1;
|
|
53
57
|
var A11yHeadingTag = a11yHeadingTag;
|
|
54
58
|
var anyLink = react_1.Children.toArray(breadcrumbItems).some(function (item) { return item.props.href; });
|
|
55
59
|
var tag = anyLink ? 'a' : 'button';
|
|
56
|
-
return (react_1.default.createElement("nav", __assign({}, rest, { "aria-labelledby": headingId, className: classnames_1.default('breadcrumbs', className), role: "navigation" }),
|
|
60
|
+
return (react_1.default.createElement("nav", __assign({}, rest, { "aria-labelledby": headingId, className: (0, classnames_1.default)('breadcrumbs', className), role: "navigation" }),
|
|
57
61
|
react_1.default.createElement(A11yHeadingTag, { id: headingId, className: "clipped" }, a11yHeadingText),
|
|
58
62
|
react_1.default.createElement("ul", null, react_1.Children.map(breadcrumbItems, function (item, index) {
|
|
59
63
|
var isLastItem = index === lastItemIndex;
|
|
@@ -65,7 +69,7 @@ var Breadcrumbs = function (_a) {
|
|
|
65
69
|
children: children,
|
|
66
70
|
onClick: function (event) { return onSelect(event); }
|
|
67
71
|
};
|
|
68
|
-
return react_1.cloneElement(item, itemProps);
|
|
72
|
+
return (0, react_1.cloneElement)(item, itemProps);
|
|
69
73
|
}))));
|
|
70
74
|
};
|
|
71
75
|
exports.default = Breadcrumbs;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.EbayBreadcrumbItem = exports.EbayBreadcrumbs = void 0;
|
|
3
7
|
var breadcrumbs_1 = require("./breadcrumbs");
|
|
4
|
-
Object.defineProperty(exports, "EbayBreadcrumbs", { enumerable: true, get: function () { return breadcrumbs_1.default; } });
|
|
8
|
+
Object.defineProperty(exports, "EbayBreadcrumbs", { enumerable: true, get: function () { return __importDefault(breadcrumbs_1).default; } });
|
|
5
9
|
var breadcrumb_item_1 = require("./breadcrumb-item");
|
|
6
|
-
Object.defineProperty(exports, "EbayBreadcrumbItem", { enumerable: true, get: function () { return breadcrumb_item_1.default; } });
|
|
10
|
+
Object.defineProperty(exports, "EbayBreadcrumbItem", { enumerable: true, get: function () { return __importDefault(breadcrumb_item_1).default; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, FC } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type ButtonType = 'cta' | 'fake' | 'expand' | 'default';
|
|
3
|
+
type Props = ComponentProps<'span'> & {
|
|
4
4
|
type?: ButtonType;
|
|
5
5
|
};
|
|
6
6
|
declare const EbayButtonCell: FC<Props>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-cell.d.ts","sourceRoot":"","sources":["../../src/ebay-button/button-cell.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjD,
|
|
1
|
+
{"version":3,"file":"button-cell.d.ts","sourceRoot":"","sources":["../../src/ebay-button/button-cell.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAEjD,KAAK,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;AACvD,KAAK,KAAK,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAClC,IAAI,CAAC,EAAE,UAAU,CAAC;CACrB,CAAA;AASD,QAAA,MAAM,cAAc,EAAC,EAAE,CAAC,KAAK,CAI0D,CAAA;AAEvF,eAAe,cAAc,CAAA"}
|
|
@@ -34,7 +34,7 @@ var classNames = {
|
|
|
34
34
|
};
|
|
35
35
|
var EbayButtonCell = function (_a) {
|
|
36
36
|
var _b = _a.type, type = _b === void 0 ? 'default' : _b, children = _a.children, rest = __rest(_a, ["type", "children"]);
|
|
37
|
-
return react_1.default.createElement("span", __assign({ className: classNames[type]
|
|
37
|
+
return react_1.default.createElement("span", __assign({ className: "".concat(classNames[type], "btn__cell") }, rest),
|
|
38
38
|
react_1.default.createElement(react_1.default.Fragment, null, children));
|
|
39
39
|
};
|
|
40
40
|
exports.default = EbayButtonCell;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-text.d.ts","sourceRoot":"","sources":["../../src/ebay-button/button-text.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjD,
|
|
1
|
+
{"version":3,"file":"button-text.d.ts","sourceRoot":"","sources":["../../src/ebay-button/button-text.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAGjD,KAAK,KAAK,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAEnC,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAE7B,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -7,6 +7,6 @@ var react_1 = __importDefault(require("react"));
|
|
|
7
7
|
var classnames_1 = __importDefault(require("classnames"));
|
|
8
8
|
var EbayButtonText = function (_a) {
|
|
9
9
|
var className = _a.className, children = _a.children;
|
|
10
|
-
return (react_1.default.createElement("span", { className: classnames_1.default(className, 'btn__text') }, children));
|
|
10
|
+
return (react_1.default.createElement("span", { className: (0, classnames_1.default)(className, 'btn__text') }, children));
|
|
11
11
|
};
|
|
12
12
|
exports.default = EbayButtonText;
|
package/ebay-button/button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentProps, KeyboardEvent, MouseEvent, RefObject } from 'react';
|
|
2
2
|
import { Priority, Size, BodyState, Variant, Split } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type EbayButtonProps = {
|
|
4
4
|
fluid?: boolean;
|
|
5
5
|
partiallyDisabled?: boolean;
|
|
6
6
|
truncate?: boolean;
|
|
@@ -17,7 +17,7 @@ export declare type EbayButtonProps = {
|
|
|
17
17
|
borderless?: boolean;
|
|
18
18
|
fixedHeight?: boolean;
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "form" | "slot" | "style" | "title" | "type" | "key" | "value" | "className" | "disabled" | "placeholder" | "children" | "
|
|
20
|
+
type Props = ComponentProps<'button'> & ComponentProps<'a'> & EbayButtonProps;
|
|
21
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "split" | "form" | "slot" | "style" | "title" | "forwardedRef" | "type" | "key" | "value" | "className" | "disabled" | "placeholder" | "children" | "name" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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" | "autoFocus" | "download" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "hrefLang" | "media" | "rel" | "target" | "transparent" | "onEscape" | "ping" | "referrerPolicy" | "priority" | "variant" | "bodyState" | "fluid" | "partiallyDisabled" | "truncate" | "borderless" | "fixedHeight"> & React.RefAttributes<React.FC<Props>>>;
|
|
22
22
|
export default _default;
|
|
23
23
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ebay-button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEV,cAAc,EAEd,aAAa,EACb,UAAU,EAGV,SAAS,EACZ,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAKnE,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ebay-button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEV,cAAc,EAEd,aAAa,EACb,UAAU,EAGV,SAAS,EACZ,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAKnE,MAAM,MAAM,eAAe,GAAG;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7E,YAAY,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IAChE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB,CAAA;AAED,KAAK,KAAK,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC;;AAqH9E,wBAAyC"}
|
package/ebay-button/button.js
CHANGED
|
@@ -12,7 +12,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
14
|
if (k2 === undefined) k2 = k;
|
|
15
|
-
Object.
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
16
20
|
}) : (function(o, m, k, k2) {
|
|
17
21
|
if (k2 === undefined) k2 = k;
|
|
18
22
|
o[k2] = m[k];
|
|
@@ -25,7 +29,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
29
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
30
|
if (mod && mod.__esModule) return mod;
|
|
27
31
|
var result = {};
|
|
28
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
33
|
__setModuleDefault(result, mod);
|
|
30
34
|
return result;
|
|
31
35
|
};
|
|
@@ -54,26 +58,26 @@ var EbayButton = function (_a) {
|
|
|
54
58
|
var _b = _a.priority, priority = _b === void 0 ? 'secondary' : _b, _c = _a.variant, variant = _c === void 0 ? 'standard' : _c, _d = _a.size, size = _d === void 0 ? 'regular' : _d, bodyState = _a.bodyState, split = _a.split, _e = _a.transparent, transparent = _e === void 0 ? false : _e, _f = _a.fluid, fluid = _f === void 0 ? false : _f, disabled = _a.disabled, partiallyDisabled = _a.partiallyDisabled, children = _a.children, _g = _a.onKeyDown, onKeyDown = _g === void 0 ? function () { } : _g, _h = _a.onEscape, onEscape = _h === void 0 ? function () { } : _h, _j = _a.truncate, truncate = _j === void 0 ? false : _j, href = _a.href, extraClasses = _a.className, forwardedRef = _a.forwardedRef, borderless = _a.borderless, fixedHeight = _a.fixedHeight, rest = __rest(_a, ["priority", "variant", "size", "bodyState", "split", "transparent", "fluid", "disabled", "partiallyDisabled", "children", "onKeyDown", "onEscape", "truncate", "href", "className", "forwardedRef", "borderless", "fixedHeight"]);
|
|
55
59
|
var classPrefix = href ? 'fake-btn' : 'btn';
|
|
56
60
|
var priorityStyles = {
|
|
57
|
-
primary: classPrefix
|
|
58
|
-
secondary: classPrefix
|
|
59
|
-
tertiary: classPrefix
|
|
61
|
+
primary: "".concat(classPrefix, "--primary"),
|
|
62
|
+
secondary: "".concat(classPrefix, "--secondary"),
|
|
63
|
+
tertiary: "".concat(classPrefix, "--tertiary"),
|
|
60
64
|
none: ''
|
|
61
65
|
};
|
|
62
66
|
var sizeStyles = {
|
|
63
|
-
large: classPrefix
|
|
67
|
+
large: "".concat(classPrefix, "--large"),
|
|
64
68
|
regular: '',
|
|
65
69
|
default: ''
|
|
66
70
|
};
|
|
67
71
|
var splitStyles = {
|
|
68
|
-
start: classPrefix
|
|
69
|
-
end: classPrefix
|
|
72
|
+
start: "".concat(classPrefix, "--split-start"),
|
|
73
|
+
end: "".concat(classPrefix, "--split-end")
|
|
70
74
|
};
|
|
71
75
|
var isDestructive = variant === 'destructive';
|
|
72
76
|
var isForm = variant === 'form';
|
|
73
77
|
var isLoading = bodyState === 'loading';
|
|
74
78
|
var isExpand = bodyState === 'expand';
|
|
75
79
|
var isSlim = isForm && (isIconOnly(children) || (isExpand && !children));
|
|
76
|
-
var className = classnames_1.default(classPrefix, extraClasses, priorityStyles[isForm || borderless ? 'none' : priority], sizeStyles[size], splitStyles[split], isDestructive && classPrefix
|
|
80
|
+
var className = (0, classnames_1.default)(classPrefix, extraClasses, priorityStyles[isForm || borderless ? 'none' : priority], sizeStyles[size], splitStyles[split], isDestructive && "".concat(classPrefix, "--destructive"), isForm && "".concat(classPrefix, "--form"), isSlim && "".concat(classPrefix, "--slim"), transparent && "".concat(classPrefix, "--transparent"), fluid && "".concat(classPrefix, "--fluid"), truncate && "".concat(classPrefix, "--truncated"), borderless && "".concat(classPrefix, "--borderless"), fixedHeight && (sizeStyles[size] ? "".concat(sizeStyles[size], "-").concat(fixedHeight) : "".concat(classPrefix, "--fixed-height")));
|
|
77
81
|
var keyDownHandler = function (e) {
|
|
78
82
|
onKeyDown(e);
|
|
79
83
|
if (e.key === 'Escape' || e.key === 'Esc') {
|
|
@@ -99,4 +103,4 @@ function isIconOnly(children) {
|
|
|
99
103
|
var childrenArray = react_1.Children.toArray(children);
|
|
100
104
|
return childrenArray.length === 1 && childrenArray[0].type === ebay_icon_1.EbayIcon;
|
|
101
105
|
}
|
|
102
|
-
exports.default = component_utils_1.withForwardRef(EbayButton);
|
|
106
|
+
exports.default = (0, component_utils_1.withForwardRef)(EbayButton);
|
package/ebay-button/index.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.EbayButtonCell = exports.EbayButton = void 0;
|
|
3
7
|
var button_1 = require("./button");
|
|
4
|
-
Object.defineProperty(exports, "EbayButton", { enumerable: true, get: function () { return button_1.default; } });
|
|
8
|
+
Object.defineProperty(exports, "EbayButton", { enumerable: true, get: function () { return __importDefault(button_1).default; } });
|
|
5
9
|
var button_cell_1 = require("./button-cell");
|
|
6
|
-
Object.defineProperty(exports, "EbayButtonCell", { enumerable: true, get: function () { return button_cell_1.default; } });
|
|
10
|
+
Object.defineProperty(exports, "EbayButtonCell", { enumerable: true, get: function () { return __importDefault(button_cell_1).default; } });
|
package/ebay-button/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export type Priority = 'primary' | 'secondary' | 'tertiary' | 'none';
|
|
2
|
+
export type Variant = 'standard' | 'destructive' | 'form';
|
|
3
|
+
export type Size = 'default' | 'regular' | 'large';
|
|
4
|
+
export type BodyState = 'loading' | 'expand' | 'reset' | 'none';
|
|
5
|
+
export type Split = 'start' | 'end';
|
|
6
6
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-button/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-button/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAA;AAEpE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,aAAa,GAAG,MAAM,CAAA;AAEzD,MAAM,MAAM,IAAI,GAAG,SAAS,GAAoB,SAAS,GAAG,OAAO,CAAA;AAEnE,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;AAE/D,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-control-button.d.ts","sourceRoot":"","sources":["../../src/ebay-carousel/carousel-control-button.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGjD,OAAO,EAAE,mBAAmB,EAAqB,MAAM,SAAS,CAAA;AAEhE,
|
|
1
|
+
{"version":3,"file":"carousel-control-button.d.ts","sourceRoot":"","sources":["../../src/ebay-carousel/carousel-control-button.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGjD,OAAO,EAAE,mBAAmB,EAAqB,MAAM,SAAS,CAAA;AAEhE,KAAK,oBAAoB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,iBAAiB,CAAC,EAAE,EAAE,SAAS,EAAE;;KAAA,KAAK,IAAI,CAAC;CAC9E,CAAA;AAYD,QAAA,MAAM,qBAAqB,EAAE,EAAE,CAAC,oBAAoB,CAmBnD,CAAA;AAED,eAAe,qBAAqB,CAAA"}
|
|
@@ -19,7 +19,7 @@ var CarouselControlButton = function (_a) {
|
|
|
19
19
|
var handleOnClick = function (event) {
|
|
20
20
|
onClick(event, { direction: typeToDirection[type] });
|
|
21
21
|
};
|
|
22
|
-
return (react_1.default.createElement("button", { className: classnames_1.default('carousel__control', "carousel__control--"
|
|
23
|
-
react_1.default.createElement(ebay_icon_1.EbayIcon, { className: classnames_1.default('icon', "icon--carousel-"
|
|
22
|
+
return (react_1.default.createElement("button", { className: (0, classnames_1.default)('carousel__control', "carousel__control--".concat(type)), "aria-label": label, "aria-disabled": disabled, disabled: disabled, onClick: handleOnClick },
|
|
23
|
+
react_1.default.createElement(ebay_icon_1.EbayIcon, { className: (0, classnames_1.default)('icon', "icon--carousel-".concat(type)), focusable: false, name: icon[type], "aria-hidden": hidden })));
|
|
24
24
|
};
|
|
25
25
|
exports.default = CarouselControlButton;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { ComponentProps, RefObject } from 'react';
|
|
2
2
|
import { ListItemRef } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type ListProps = ComponentProps<'li'>;
|
|
4
|
+
type CarouselItemProps = ListProps & {
|
|
5
5
|
slideWidth?: number;
|
|
6
6
|
offset?: number;
|
|
7
7
|
className?: string;
|
|
8
8
|
forwardedRef?: RefObject<ListItemRef>;
|
|
9
9
|
};
|
|
10
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<CarouselItemProps, "
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<CarouselItemProps, "forwardedRef" | "key" | "offset" | "slideWidth" | keyof React.LiHTMLAttributes<HTMLLIElement>> & React.RefAttributes<React.FC<CarouselItemProps>>>;
|
|
11
11
|
export default _default;
|
|
12
12
|
//# sourceMappingURL=carousel-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-item.d.ts","sourceRoot":"","sources":["../../src/ebay-carousel/carousel-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACV,cAAc,EAEd,SAAS,EAIZ,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,
|
|
1
|
+
{"version":3,"file":"carousel-item.d.ts","sourceRoot":"","sources":["../../src/ebay-carousel/carousel-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACV,cAAc,EAEd,SAAS,EAIZ,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,KAAK,SAAS,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;AACrC,KAAK,iBAAiB,GAAG,SAAS,GAAG;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;CACxC,CAAC;;AAiCF,wBAA+C"}
|