@ebay/ui-core-react 7.3.1 → 7.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +236 -0
- package/LICENSE.md +21 -0
- package/dist/ebay-dialog-base/components/animation/index.js +1 -0
- package/dist/ebay-dialog-base/components/animation.d.ts.map +1 -0
- package/jest.config.js +52 -0
- package/package.json +1 -1
- package/src/common/__mocks__/random-id.ts +2 -0
- package/src/common/component-utils/array.polyfill.flat.ts +34 -0
- package/src/common/component-utils/forwardRef.tsx +15 -0
- package/src/common/component-utils/index.ts +2 -0
- package/src/common/component-utils/utils.ts +23 -0
- package/src/common/debounce.ts +11 -0
- package/src/common/event-utils/__tests__/helpers.ts +4 -0
- package/src/common/event-utils/__tests__/use-key-press.spec.tsx +30 -0
- package/src/common/event-utils/__tests__/use-roving-index.spec.tsx +81 -0
- package/src/common/event-utils/index.ts +128 -0
- package/src/common/event-utils/types.ts +38 -0
- package/src/common/event-utils/use-key-press.ts +38 -0
- package/src/common/event-utils/use-roving-index.ts +41 -0
- package/src/common/floating-label-utils/hooks.tsx +162 -0
- package/src/common/notice-utils/notice-content.tsx +19 -0
- package/src/common/notice-utils/notice-cta.tsx +15 -0
- package/src/common/notice-utils/notice-footer.tsx +15 -0
- package/src/common/notice-utils/notice-title.tsx +19 -0
- package/src/common/random-id.ts +14 -0
- package/src/common/range.ts +2 -0
- package/src/common/tooltip-utils/constants.ts +96 -0
- package/src/common/tooltip-utils/index.ts +7 -0
- package/src/common/tooltip-utils/tooltip-close-button.tsx +10 -0
- package/src/common/tooltip-utils/tooltip-content.tsx +62 -0
- package/src/common/tooltip-utils/tooltip-footer.tsx +15 -0
- package/src/common/tooltip-utils/tooltip-host.tsx +24 -0
- package/src/common/tooltip-utils/tooltip.tsx +49 -0
- package/src/common/tooltip-utils/types.ts +7 -0
- package/src/common/tooltip-utils/use-tooltip.ts +39 -0
- package/src/ebay-alert-dialog/__tests__/index.spec.tsx +36 -0
- package/src/ebay-alert-dialog/__tests__/index.stories.tsx +77 -0
- package/src/ebay-alert-dialog/__tests__/render.spec.tsx +16 -0
- package/src/ebay-alert-dialog/alert-dialog.tsx +53 -0
- package/src/ebay-alert-dialog/index.ts +1 -0
- package/src/ebay-badge/__tests__/index.spec.tsx +47 -0
- package/src/ebay-badge/__tests__/index.stories.tsx +31 -0
- package/src/ebay-badge/badge.tsx +32 -0
- package/src/ebay-badge/index.ts +1 -0
- package/src/ebay-breadcrumbs/__tests__/index.spec.tsx +40 -0
- package/src/ebay-breadcrumbs/__tests__/index.stories.tsx +94 -0
- package/src/ebay-breadcrumbs/__tests__/render.spec.tsx +59 -0
- package/src/ebay-breadcrumbs/breadcrumb-item.tsx +39 -0
- package/src/ebay-breadcrumbs/breadcrumbs.tsx +61 -0
- package/src/ebay-breadcrumbs/index.ts +2 -0
- package/src/ebay-button/__tests__/index.spec.tsx +131 -0
- package/src/ebay-button/__tests__/index.stories.tsx +406 -0
- package/src/ebay-button/button-cell.tsx +21 -0
- package/src/ebay-button/button-expand.tsx +18 -0
- package/src/ebay-button/button-loading.tsx +11 -0
- package/src/ebay-button/button-text.tsx +10 -0
- package/src/ebay-button/button.tsx +154 -0
- package/src/ebay-button/index.ts +3 -0
- package/src/ebay-button/types.ts +9 -0
- package/src/ebay-calendar/__tests__/__snapshots__/render.spec.tsx.snap +27 -0
- package/src/ebay-calendar/__tests__/index.spec.tsx +99 -0
- package/src/ebay-calendar/__tests__/index.stories.tsx +65 -0
- package/src/ebay-calendar/__tests__/render.spec.tsx +68 -0
- package/src/ebay-calendar/calendar.tsx +461 -0
- package/src/ebay-calendar/date-utils.ts +63 -0
- package/src/ebay-calendar/index.ts +1 -0
- package/src/ebay-carousel/__tests__/__snapshots__/index.spec.tsx.snap +39 -0
- package/src/ebay-carousel/__tests__/index.spec.tsx +55 -0
- package/src/ebay-carousel/__tests__/index.stories.tsx +68 -0
- package/src/ebay-carousel/carousel-control-button.tsx +45 -0
- package/src/ebay-carousel/carousel-item.tsx +52 -0
- package/src/ebay-carousel/carousel-list.tsx +102 -0
- package/src/ebay-carousel/carousel.tsx +137 -0
- package/src/ebay-carousel/helpers.ts +159 -0
- package/src/ebay-carousel/index.ts +2 -0
- package/src/ebay-carousel/scroll-to-transition.ts +123 -0
- package/src/ebay-carousel/types.ts +11 -0
- package/src/ebay-checkbox/__tests__/index.spec.tsx +36 -0
- package/src/ebay-checkbox/__tests__/index.stories.tsx +162 -0
- package/src/ebay-checkbox/__tests__/render.spec.tsx +39 -0
- package/src/ebay-checkbox/checkbox.tsx +89 -0
- package/src/ebay-checkbox/index.ts +1 -0
- package/src/ebay-confirm-dialog/__tests__/index.spec.tsx +59 -0
- package/src/ebay-confirm-dialog/__tests__/index.stories.tsx +70 -0
- package/src/ebay-confirm-dialog/__tests__/render.spec.tsx +42 -0
- package/src/ebay-confirm-dialog/confirm-dialog.tsx +63 -0
- package/src/ebay-confirm-dialog/index.ts +1 -0
- package/src/ebay-cta-button/__tests__/index.spec.tsx +48 -0
- package/src/ebay-cta-button/__tests__/index.stories.tsx +58 -0
- package/src/ebay-cta-button/cta-button.tsx +40 -0
- package/src/ebay-cta-button/index.ts +1 -0
- package/src/ebay-date-textbox/__tests__/__snapshots__/render.spec.tsx.snap +27 -0
- package/src/ebay-date-textbox/__tests__/index.spec.tsx +148 -0
- package/src/ebay-date-textbox/__tests__/index.stories.tsx +55 -0
- package/src/ebay-date-textbox/__tests__/render.spec.tsx +94 -0
- package/src/ebay-date-textbox/date-textbox.tsx +227 -0
- package/src/ebay-date-textbox/index.ts +1 -0
- package/src/ebay-dialog-base/__tests__/index.spec.tsx +83 -0
- package/src/ebay-dialog-base/__tests__/mocks.tsx +38 -0
- package/src/ebay-dialog-base/__tests__/server.spec.tsx +33 -0
- package/src/ebay-dialog-base/components/animation.ts +144 -0
- package/src/ebay-dialog-base/components/dialog-actions.tsx +9 -0
- package/src/ebay-dialog-base/components/dialog-close-button.tsx +9 -0
- package/src/ebay-dialog-base/components/dialog-footer.tsx +9 -0
- package/src/ebay-dialog-base/components/dialog-header.tsx +10 -0
- package/src/ebay-dialog-base/components/dialog-previous-button.tsx +23 -0
- package/src/ebay-dialog-base/components/dialogBase.tsx +234 -0
- package/src/ebay-dialog-base/dialog-base-with-state.tsx +61 -0
- package/src/ebay-dialog-base/index.ts +8 -0
- package/src/ebay-drawer-dialog/__tests__/index.spec.tsx +53 -0
- package/src/ebay-drawer-dialog/__tests__/index.stories.tsx +244 -0
- package/src/ebay-drawer-dialog/components/drawer.tsx +120 -0
- package/src/ebay-drawer-dialog/index.ts +1 -0
- package/src/ebay-eek/__tests__/index.spec.tsx +81 -0
- package/src/ebay-eek/__tests__/index.stories.tsx +102 -0
- package/src/ebay-eek/__tests__/render.spec.tsx +49 -0
- package/src/ebay-eek/eek-rating.tsx +46 -0
- package/src/ebay-eek/eek-util.ts +34 -0
- package/src/ebay-eek/index.ts +1 -0
- package/src/ebay-fake-menu/__tests__/index.spec.tsx +79 -0
- package/src/ebay-fake-menu/__tests__/index.stories.tsx +127 -0
- package/src/ebay-fake-menu/__tests__/render.spec.tsx +70 -0
- package/src/ebay-fake-menu/index.ts +3 -0
- package/src/ebay-fake-menu/menu-item-separator.tsx +17 -0
- package/src/ebay-fake-menu/menu-item.tsx +84 -0
- package/src/ebay-fake-menu/menu.tsx +58 -0
- package/src/ebay-fake-menu-button/__tests__/__snapshots__/render.spec.tsx.snap +79 -0
- package/src/ebay-fake-menu-button/__tests__/index.spec.tsx +99 -0
- package/src/ebay-fake-menu-button/__tests__/index.stories.tsx +202 -0
- package/src/ebay-fake-menu-button/__tests__/render.spec.tsx +166 -0
- package/src/ebay-fake-menu-button/index.ts +8 -0
- package/src/ebay-fake-menu-button/menu-button-item.tsx +6 -0
- package/src/ebay-fake-menu-button/menu-button-label.tsx +7 -0
- package/src/ebay-fake-menu-button/menu-button-separator.tsx +17 -0
- package/src/ebay-fake-menu-button/menu-button.tsx +147 -0
- package/src/ebay-fake-tabs/__tests__/index.spec.tsx +35 -0
- package/src/ebay-fake-tabs/__tests__/index.stories.tsx +54 -0
- package/src/ebay-fake-tabs/fake-tabs.tsx +41 -0
- package/src/ebay-fake-tabs/index.ts +2 -0
- package/src/ebay-fake-tabs/tab.tsx +23 -0
- package/src/ebay-field/__tests__/index.spec.tsx +42 -0
- package/src/ebay-field/__tests__/index.stories.tsx +159 -0
- package/src/ebay-field/description.tsx +30 -0
- package/src/ebay-field/field.tsx +24 -0
- package/src/ebay-field/index.ts +4 -0
- package/src/ebay-field/label.tsx +31 -0
- package/src/ebay-field/types.ts +7 -0
- package/src/ebay-fullscreen-dialog/__tests__/index.spec.tsx +52 -0
- package/src/ebay-fullscreen-dialog/__tests__/index.stories.tsx +96 -0
- package/src/ebay-fullscreen-dialog/__tests__/render.spec.tsx +44 -0
- package/src/ebay-fullscreen-dialog/fullscreen-dialog.tsx +32 -0
- package/src/ebay-fullscreen-dialog/index.ts +1 -0
- package/src/ebay-icon/__tests__/constants.ts +782 -0
- package/src/ebay-icon/__tests__/index.spec.tsx +46 -0
- package/src/ebay-icon/__tests__/index.stories.tsx +47 -0
- package/src/ebay-icon/icon.tsx +104 -0
- package/src/ebay-icon/index.ts +2 -0
- package/src/ebay-icon/types.ts +779 -0
- package/src/ebay-icon-button/__tests__/index.spec.tsx +59 -0
- package/src/ebay-icon-button/__tests__/index.stories.tsx +64 -0
- package/src/ebay-icon-button/__tests__/render.spec.tsx +61 -0
- package/src/ebay-icon-button/icon-button.tsx +84 -0
- package/src/ebay-icon-button/index.ts +1 -0
- package/src/ebay-infotip/__tests__/__snapshots__/render.spec.tsx.snap +40 -0
- package/src/ebay-infotip/__tests__/index.spec.tsx +108 -0
- package/src/ebay-infotip/__tests__/index.stories.tsx +204 -0
- package/src/ebay-infotip/__tests__/render.spec.tsx +121 -0
- package/src/ebay-infotip/ebay-infotip-content.tsx +10 -0
- package/src/ebay-infotip/ebay-infotip-heading.tsx +13 -0
- package/src/ebay-infotip/ebay-infotip-host.tsx +37 -0
- package/src/ebay-infotip/ebay-infotip.tsx +125 -0
- package/src/ebay-infotip/index.ts +5 -0
- package/src/ebay-infotip/types.ts +1 -0
- package/src/ebay-inline-notice/__tests__/index.spec.tsx +68 -0
- package/src/ebay-inline-notice/__tests__/index.stories.tsx +95 -0
- package/src/ebay-inline-notice/index.ts +3 -0
- package/src/ebay-inline-notice/inline-notice.tsx +62 -0
- package/src/ebay-inline-notice/types.ts +1 -0
- package/src/ebay-lightbox-dialog/__tests__/index.spec.tsx +52 -0
- package/src/ebay-lightbox-dialog/__tests__/index.stories.tsx +274 -0
- package/src/ebay-lightbox-dialog/index.ts +1 -0
- package/src/ebay-lightbox-dialog/lightbox-dialog.tsx +38 -0
- package/src/ebay-listbox-button/__tests__/__snapshots__/render.spec.tsx.snap +118 -0
- package/src/ebay-listbox-button/__tests__/index.spec.tsx +221 -0
- package/src/ebay-listbox-button/__tests__/index.stories.tsx +183 -0
- package/src/ebay-listbox-button/__tests__/render.spec.tsx +140 -0
- package/src/ebay-listbox-button/__tests__/statefull-test.tsx +34 -0
- package/src/ebay-listbox-button/index.ts +2 -0
- package/src/ebay-listbox-button/listbox-button-option.tsx +40 -0
- package/src/ebay-listbox-button/listbox-button.tsx +320 -0
- package/src/ebay-menu/__tests__/index.spec.tsx +287 -0
- package/src/ebay-menu/__tests__/index.stories.tsx +160 -0
- package/src/ebay-menu/index.ts +11 -0
- package/src/ebay-menu/menu-item-separator.tsx +17 -0
- package/src/ebay-menu/menu-item.tsx +69 -0
- package/src/ebay-menu/menu.tsx +174 -0
- package/src/ebay-menu/types.ts +30 -0
- package/src/ebay-menu-button/__tests__/__snapshots__/render.spec.tsx.snap +118 -0
- package/src/ebay-menu-button/__tests__/index.spec.tsx +104 -0
- package/src/ebay-menu-button/__tests__/index.stories.tsx +325 -0
- package/src/ebay-menu-button/__tests__/render.spec.tsx +202 -0
- package/src/ebay-menu-button/index.ts +10 -0
- package/src/ebay-menu-button/menu-button-item.tsx +4 -0
- package/src/ebay-menu-button/menu-button-label.tsx +5 -0
- package/src/ebay-menu-button/menu-button-separator.tsx +17 -0
- package/src/ebay-menu-button/menu-button.tsx +169 -0
- package/src/ebay-menu-button/types.ts +39 -0
- package/src/ebay-notice-base/components/ebay-notice-content/__tests__/index.spec.tsx +29 -0
- package/src/ebay-notice-base/components/ebay-notice-content/index.ts +1 -0
- package/src/ebay-notice-base/components/ebay-notice-content/notice-content.tsx +12 -0
- package/src/ebay-notice-base/components/ebay-notice-title/index.ts +1 -0
- package/src/ebay-notice-base/components/ebay-notice-title/notice-title.tsx +13 -0
- package/src/ebay-notice-base/index.ts +2 -0
- package/src/ebay-page-notice/__tests__/__snapshots__/render.spec.tsx.snap +112 -0
- package/src/ebay-page-notice/__tests__/index.spec.tsx +91 -0
- package/src/ebay-page-notice/__tests__/index.stories.tsx +117 -0
- package/src/ebay-page-notice/__tests__/render.spec.tsx +175 -0
- package/src/ebay-page-notice/index.ts +5 -0
- package/src/ebay-page-notice/page-notice-cta.tsx +15 -0
- package/src/ebay-page-notice/page-notice-footer.tsx +15 -0
- package/src/ebay-page-notice/page-notice-title.tsx +16 -0
- package/src/ebay-page-notice/page-notice.tsx +77 -0
- package/src/ebay-pagination/__tests__/__snapshots__/render.spec.tsx.snap +53 -0
- package/src/ebay-pagination/__tests__/helpers.spec.ts +171 -0
- package/src/ebay-pagination/__tests__/index.spec.tsx +130 -0
- package/src/ebay-pagination/__tests__/index.stories.tsx +317 -0
- package/src/ebay-pagination/__tests__/render.spec.tsx +129 -0
- package/src/ebay-pagination/const.ts +5 -0
- package/src/ebay-pagination/helpers.ts +119 -0
- package/src/ebay-pagination/index.ts +3 -0
- package/src/ebay-pagination/pagination-item.tsx +126 -0
- package/src/ebay-pagination/pagination.tsx +193 -0
- package/src/ebay-pagination/types.ts +2 -0
- package/src/ebay-panel-dialog/__tests__/index.spec.tsx +52 -0
- package/src/ebay-panel-dialog/__tests__/index.stories.tsx +124 -0
- package/src/ebay-panel-dialog/index.ts +1 -0
- package/src/ebay-panel-dialog/panel-dialog.tsx +40 -0
- package/src/ebay-progress-bar/__tests__/index.spec.tsx +41 -0
- package/src/ebay-progress-bar/__tests__/index.stories.tsx +50 -0
- package/src/ebay-progress-bar/index.ts +1 -0
- package/src/ebay-progress-bar/progress-bar.tsx +23 -0
- package/src/ebay-progress-spinner/__tests__/index.spec.tsx +19 -0
- package/src/ebay-progress-spinner/__tests__/index.stories.tsx +24 -0
- package/src/ebay-progress-spinner/index.ts +1 -0
- package/src/ebay-progress-spinner/progress-spinner.tsx +42 -0
- package/src/ebay-progress-stepper/__tests__/__snapshots__/index.spec.tsx.snap +183 -0
- package/src/ebay-progress-stepper/__tests__/index.spec.tsx +129 -0
- package/src/ebay-progress-stepper/__tests__/index.stories.tsx +170 -0
- package/src/ebay-progress-stepper/ebay-progress-step.tsx +58 -0
- package/src/ebay-progress-stepper/ebay-progress-stepper.tsx +68 -0
- package/src/ebay-progress-stepper/ebay-progress-title.tsx +13 -0
- package/src/ebay-progress-stepper/index.ts +4 -0
- package/src/ebay-progress-stepper/types.ts +3 -0
- package/src/ebay-radio/__tests__/index.spec.tsx +48 -0
- package/src/ebay-radio/__tests__/index.stories.tsx +193 -0
- package/src/ebay-radio/__tests__/render.spec.tsx +57 -0
- package/src/ebay-radio/index.ts +1 -0
- package/src/ebay-radio/radio.tsx +85 -0
- package/src/ebay-section-notice/__tests__/index.spec.tsx +109 -0
- package/src/ebay-section-notice/__tests__/index.stories.tsx +199 -0
- package/src/ebay-section-notice/index.ts +9 -0
- package/src/ebay-section-notice/section-notice-cta.tsx +15 -0
- package/src/ebay-section-notice/section-notice-footer.tsx +15 -0
- package/src/ebay-section-notice/section-notice-title.tsx +15 -0
- package/src/ebay-section-notice/section-notice.tsx +107 -0
- package/src/ebay-section-title/__tests__/index.spec.tsx +62 -0
- package/src/ebay-section-title/__tests__/index.stories.tsx +79 -0
- package/src/ebay-section-title/cta.tsx +26 -0
- package/src/ebay-section-title/index.ts +5 -0
- package/src/ebay-section-title/info.tsx +19 -0
- package/src/ebay-section-title/overflow.tsx +19 -0
- package/src/ebay-section-title/section-title.tsx +41 -0
- package/src/ebay-section-title/subtitle.tsx +19 -0
- package/src/ebay-section-title/title.tsx +19 -0
- package/src/ebay-segmented-buttons/__tests__/index.spec.tsx +42 -0
- package/src/ebay-segmented-buttons/__tests__/index.stories.tsx +52 -0
- package/src/ebay-segmented-buttons/button.tsx +39 -0
- package/src/ebay-segmented-buttons/index.ts +3 -0
- package/src/ebay-segmented-buttons/segmented-buttons.tsx +47 -0
- package/src/ebay-segmented-buttons/types.ts +15 -0
- package/src/ebay-select/__tests__/__snapshots__/render.spec.tsx.snap +16 -0
- package/src/ebay-select/__tests__/index.spec.tsx +99 -0
- package/src/ebay-select/__tests__/index.stories.tsx +221 -0
- package/src/ebay-select/__tests__/render.spec.tsx +92 -0
- package/src/ebay-select/ebay-select-option.tsx +10 -0
- package/src/ebay-select/ebay-select.tsx +164 -0
- package/src/ebay-select/index.ts +2 -0
- package/src/ebay-signal/__tests__/index.spec.tsx +26 -0
- package/src/ebay-signal/__tests__/index.stories.tsx +37 -0
- package/src/ebay-signal/index.ts +1 -0
- package/src/ebay-signal/signal.tsx +15 -0
- package/src/ebay-snackbar-dialog/__tests__/index.spec.tsx +151 -0
- package/src/ebay-snackbar-dialog/__tests__/index.stories.tsx +83 -0
- package/src/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.tsx +12 -0
- package/src/ebay-snackbar-dialog/components/ebay-snackbar-dialog.tsx +132 -0
- package/src/ebay-snackbar-dialog/index.ts +2 -0
- package/src/ebay-split-button/__tests__/__snapshots__/render.spec.tsx.snap +118 -0
- package/src/ebay-split-button/__tests__/index.spec.tsx +168 -0
- package/src/ebay-split-button/__tests__/index.stories.tsx +241 -0
- package/src/ebay-split-button/__tests__/render.spec.tsx +156 -0
- package/src/ebay-split-button/index.ts +5 -0
- package/src/ebay-split-button/split-button.tsx +54 -0
- package/src/ebay-split-button/types.ts +19 -0
- package/src/ebay-star-rating/__tests__/__snapshots__/index.spec.tsx.snap +307 -0
- package/src/ebay-star-rating/__tests__/index.spec.tsx +30 -0
- package/src/ebay-star-rating/__tests__/index.stories.tsx +35 -0
- package/src/ebay-star-rating/index.ts +1 -0
- package/src/ebay-star-rating/star-rating.tsx +29 -0
- package/src/ebay-star-rating-select/__tests__/__snapshots__/index.spec.tsx.snap +679 -0
- package/src/ebay-star-rating-select/__tests__/index.spec.tsx +105 -0
- package/src/ebay-star-rating-select/__tests__/index.stories.tsx +73 -0
- package/src/ebay-star-rating-select/__tests__/mocks.tsx +26 -0
- package/src/ebay-star-rating-select/index.ts +1 -0
- package/src/ebay-star-rating-select/star-rating-select.tsx +95 -0
- package/src/ebay-svg/__tests__/index.stories.tsx +16 -0
- package/src/ebay-svg/index.ts +1 -0
- package/src/ebay-svg/svg.tsx +23 -0
- package/src/ebay-svg/symbols.tsx +808 -0
- package/src/ebay-switch/__tests__/index.spec.tsx +28 -0
- package/src/ebay-switch/__tests__/index.stories.tsx +71 -0
- package/src/ebay-switch/__tests__/render.spec.tsx +37 -0
- package/src/ebay-switch/ebay-switch.tsx +56 -0
- package/src/ebay-switch/index.ts +1 -0
- package/src/ebay-tabs/__tests__/index.spec.tsx +205 -0
- package/src/ebay-tabs/__tests__/index.stories.tsx +301 -0
- package/src/ebay-tabs/index.ts +4 -0
- package/src/ebay-tabs/tab-panel.tsx +32 -0
- package/src/ebay-tabs/tab.tsx +38 -0
- package/src/ebay-tabs/tabs.tsx +104 -0
- package/src/ebay-tabs/types.ts +19 -0
- package/src/ebay-textbox/__tests__/__snapshots__/render.spec.tsx.snap +57 -0
- package/src/ebay-textbox/__tests__/index.spec.tsx +155 -0
- package/src/ebay-textbox/__tests__/index.stories.tsx +391 -0
- package/src/ebay-textbox/__tests__/render.spec.tsx +140 -0
- package/src/ebay-textbox/index.ts +7 -0
- package/src/ebay-textbox/postfix-icon.tsx +21 -0
- package/src/ebay-textbox/postfix-text.tsx +8 -0
- package/src/ebay-textbox/prefix-icon.tsx +12 -0
- package/src/ebay-textbox/prefix-text.tsx +8 -0
- package/src/ebay-textbox/textbox.tsx +209 -0
- package/src/ebay-textbox/types.ts +18 -0
- package/src/ebay-toast-dialog/__tests__/index.spec.tsx +41 -0
- package/src/ebay-toast-dialog/__tests__/index.stories.tsx +131 -0
- package/src/ebay-toast-dialog/components/toast.tsx +26 -0
- package/src/ebay-toast-dialog/index.ts +1 -0
- package/src/ebay-tooltip/__tests__/index.spec.tsx +183 -0
- package/src/ebay-tooltip/__tests__/index.stories.tsx +104 -0
- package/src/ebay-tooltip/__tests__/render.spec.tsx +79 -0
- package/src/ebay-tooltip/ebay-tooltip-content.tsx +11 -0
- package/src/ebay-tooltip/ebay-tooltip-host.tsx +11 -0
- package/src/ebay-tooltip/ebay-tooltip.tsx +96 -0
- package/src/ebay-tooltip/index.ts +8 -0
- package/src/ebay-tourtip/__tests__/__snapshots__/render.spec.tsx.snap +14 -0
- package/src/ebay-tourtip/__tests__/index.spec.tsx +105 -0
- package/src/ebay-tourtip/__tests__/index.stories.tsx +116 -0
- package/src/ebay-tourtip/__tests__/render.spec.tsx +214 -0
- package/src/ebay-tourtip/ebay-tourtip-content.tsx +11 -0
- package/src/ebay-tourtip/ebay-tourtip-footer.tsx +19 -0
- package/src/ebay-tourtip/ebay-tourtip-heading.tsx +23 -0
- package/src/ebay-tourtip/ebay-tourtip-host.tsx +11 -0
- package/src/ebay-tourtip/ebay-tourtip.tsx +89 -0
- package/src/ebay-tourtip/index.ts +6 -0
- package/src/ebay-video/__tests__/index.spec.tsx +39 -0
- package/src/ebay-video/__tests__/index.stories.tsx +147 -0
- package/src/ebay-video/__tests__/render.spec.tsx +55 -0
- package/src/ebay-video/const.ts +16 -0
- package/src/ebay-video/controls.tsx +42 -0
- package/src/ebay-video/index.ts +9 -0
- package/src/ebay-video/reportButton.tsx +13 -0
- package/src/ebay-video/shaka-player.d.ts +4 -0
- package/src/ebay-video/source.tsx +7 -0
- package/src/ebay-video/types.ts +10 -0
- package/src/ebay-video/video.tsx +291 -0
- package/src/events/index.ts +30 -0
- package/src/utils/index.ts +9 -0
- package/tsconfig.json +42 -0
- package/vite.config.mjs +50 -0
- package/ebay-dialog-base/components/animation/index.js +0 -1
- package/ebay-dialog-base/components/animation.d.ts.map +0 -1
- /package/{array.polyfill.flat-5BAolFdk.js → dist/array.polyfill.flat-5BAolFdk.js} +0 -0
- /package/{badge-CoHKfiPt.js → dist/badge-CoHKfiPt.js} +0 -0
- /package/{button-DGuEBUDJ.js → dist/button-DGuEBUDJ.js} +0 -0
- /package/{calendar-lAu6VfAb.js → dist/calendar-lAu6VfAb.js} +0 -0
- /package/{common → dist/common}/__mocks__/random-id.d.ts +0 -0
- /package/{common → dist/common}/__mocks__/random-id.d.ts.map +0 -0
- /package/{common → dist/common}/component-utils/array.polyfill.flat.d.ts +0 -0
- /package/{common → dist/common}/component-utils/array.polyfill.flat.d.ts.map +0 -0
- /package/{common → dist/common}/component-utils/forwardRef/index.js +0 -0
- /package/{common → dist/common}/component-utils/forwardRef.d.ts +0 -0
- /package/{common → dist/common}/component-utils/forwardRef.d.ts.map +0 -0
- /package/{common → dist/common}/component-utils/index.d.ts +0 -0
- /package/{common → dist/common}/component-utils/index.d.ts.map +0 -0
- /package/{common → dist/common}/component-utils/index.js +0 -0
- /package/{common → dist/common}/component-utils/utils/index.js +0 -0
- /package/{common → dist/common}/component-utils/utils.d.ts +0 -0
- /package/{common → dist/common}/component-utils/utils.d.ts.map +0 -0
- /package/{common → dist/common}/debounce.d.ts +0 -0
- /package/{common → dist/common}/debounce.d.ts.map +0 -0
- /package/{common → dist/common}/event-utils/index.d.ts +0 -0
- /package/{common → dist/common}/event-utils/index.d.ts.map +0 -0
- /package/{common → dist/common}/event-utils/index.js +0 -0
- /package/{common → dist/common}/event-utils/types.d.ts +0 -0
- /package/{common → dist/common}/event-utils/types.d.ts.map +0 -0
- /package/{common → dist/common}/event-utils/use-key-press.d.ts +0 -0
- /package/{common → dist/common}/event-utils/use-key-press.d.ts.map +0 -0
- /package/{common → dist/common}/event-utils/use-roving-index.d.ts +0 -0
- /package/{common → dist/common}/event-utils/use-roving-index.d.ts.map +0 -0
- /package/{common → dist/common}/floating-label-utils/hooks/index.js +0 -0
- /package/{common → dist/common}/floating-label-utils/hooks.d.ts +0 -0
- /package/{common → dist/common}/floating-label-utils/hooks.d.ts.map +0 -0
- /package/{common → dist/common}/notice-utils/notice-content.d.ts +0 -0
- /package/{common → dist/common}/notice-utils/notice-content.d.ts.map +0 -0
- /package/{common → dist/common}/notice-utils/notice-cta/index.js +0 -0
- /package/{common → dist/common}/notice-utils/notice-cta.d.ts +0 -0
- /package/{common → dist/common}/notice-utils/notice-cta.d.ts.map +0 -0
- /package/{common → dist/common}/notice-utils/notice-footer.d.ts +0 -0
- /package/{common → dist/common}/notice-utils/notice-footer.d.ts.map +0 -0
- /package/{common → dist/common}/notice-utils/notice-title.d.ts +0 -0
- /package/{common → dist/common}/notice-utils/notice-title.d.ts.map +0 -0
- /package/{common → dist/common}/random-id/index.js +0 -0
- /package/{common → dist/common}/random-id.d.ts +0 -0
- /package/{common → dist/common}/random-id.d.ts.map +0 -0
- /package/{common → dist/common}/range.d.ts +0 -0
- /package/{common → dist/common}/range.d.ts.map +0 -0
- /package/{common → dist/common}/tooltip-utils/constants/index.js +0 -0
- /package/{common → dist/common}/tooltip-utils/constants.d.ts +0 -0
- /package/{common → dist/common}/tooltip-utils/constants.d.ts.map +0 -0
- /package/{common → dist/common}/tooltip-utils/index.d.ts +0 -0
- /package/{common → dist/common}/tooltip-utils/index.d.ts.map +0 -0
- /package/{common → dist/common}/tooltip-utils/index.js +0 -0
- /package/{common → dist/common}/tooltip-utils/tooltip-close-button.d.ts +0 -0
- /package/{common → dist/common}/tooltip-utils/tooltip-close-button.d.ts.map +0 -0
- /package/{common → dist/common}/tooltip-utils/tooltip-content.d.ts +0 -0
- /package/{common → dist/common}/tooltip-utils/tooltip-content.d.ts.map +0 -0
- /package/{common → dist/common}/tooltip-utils/tooltip-footer.d.ts +0 -0
- /package/{common → dist/common}/tooltip-utils/tooltip-footer.d.ts.map +0 -0
- /package/{common → dist/common}/tooltip-utils/tooltip-host.d.ts +0 -0
- /package/{common → dist/common}/tooltip-utils/tooltip-host.d.ts.map +0 -0
- /package/{common → dist/common}/tooltip-utils/tooltip.d.ts +0 -0
- /package/{common → dist/common}/tooltip-utils/tooltip.d.ts.map +0 -0
- /package/{common → dist/common}/tooltip-utils/types.d.ts +0 -0
- /package/{common → dist/common}/tooltip-utils/types.d.ts.map +0 -0
- /package/{common → dist/common}/tooltip-utils/use-tooltip.d.ts +0 -0
- /package/{common → dist/common}/tooltip-utils/use-tooltip.d.ts.map +0 -0
- /package/{debounce-BQsYxxOL.js → dist/debounce-BQsYxxOL.js} +0 -0
- /package/{dialog-previous-button-CpuFLkQp.js → dist/dialog-previous-button-CpuFLkQp.js} +0 -0
- /package/{drawer-rqXAEeqd.js → dist/drawer-rqXAEeqd.js} +0 -0
- /package/{ebay-alert-dialog → dist/ebay-alert-dialog}/alert-dialog.d.ts +0 -0
- /package/{ebay-alert-dialog → dist/ebay-alert-dialog}/alert-dialog.d.ts.map +0 -0
- /package/{ebay-alert-dialog → dist/ebay-alert-dialog}/index.d.ts +0 -0
- /package/{ebay-alert-dialog → dist/ebay-alert-dialog}/index.d.ts.map +0 -0
- /package/{ebay-alert-dialog → dist/ebay-alert-dialog}/index.js +0 -0
- /package/{ebay-badge → dist/ebay-badge}/badge.d.ts +0 -0
- /package/{ebay-badge → dist/ebay-badge}/badge.d.ts.map +0 -0
- /package/{ebay-badge → dist/ebay-badge}/index.d.ts +0 -0
- /package/{ebay-badge → dist/ebay-badge}/index.d.ts.map +0 -0
- /package/{ebay-badge → dist/ebay-badge}/index.js +0 -0
- /package/{ebay-breadcrumbs → dist/ebay-breadcrumbs}/breadcrumb-item.d.ts +0 -0
- /package/{ebay-breadcrumbs → dist/ebay-breadcrumbs}/breadcrumb-item.d.ts.map +0 -0
- /package/{ebay-breadcrumbs → dist/ebay-breadcrumbs}/breadcrumbs.d.ts +0 -0
- /package/{ebay-breadcrumbs → dist/ebay-breadcrumbs}/breadcrumbs.d.ts.map +0 -0
- /package/{ebay-breadcrumbs → dist/ebay-breadcrumbs}/index.d.ts +0 -0
- /package/{ebay-breadcrumbs → dist/ebay-breadcrumbs}/index.d.ts.map +0 -0
- /package/{ebay-breadcrumbs → dist/ebay-breadcrumbs}/index.js +0 -0
- /package/{ebay-button → dist/ebay-button}/button-cell.d.ts +0 -0
- /package/{ebay-button → dist/ebay-button}/button-cell.d.ts.map +0 -0
- /package/{ebay-button → dist/ebay-button}/button-expand.d.ts +0 -0
- /package/{ebay-button → dist/ebay-button}/button-expand.d.ts.map +0 -0
- /package/{ebay-button → dist/ebay-button}/button-loading.d.ts +0 -0
- /package/{ebay-button → dist/ebay-button}/button-loading.d.ts.map +0 -0
- /package/{ebay-button → dist/ebay-button}/button-text.d.ts +0 -0
- /package/{ebay-button → dist/ebay-button}/button-text.d.ts.map +0 -0
- /package/{ebay-button → dist/ebay-button}/button.d.ts +0 -0
- /package/{ebay-button → dist/ebay-button}/button.d.ts.map +0 -0
- /package/{ebay-button → dist/ebay-button}/index.d.ts +0 -0
- /package/{ebay-button → dist/ebay-button}/index.d.ts.map +0 -0
- /package/{ebay-button → dist/ebay-button}/index.js +0 -0
- /package/{ebay-button → dist/ebay-button}/types.d.ts +0 -0
- /package/{ebay-button → dist/ebay-button}/types.d.ts.map +0 -0
- /package/{ebay-calendar → dist/ebay-calendar}/calendar.d.ts +0 -0
- /package/{ebay-calendar → dist/ebay-calendar}/calendar.d.ts.map +0 -0
- /package/{ebay-calendar → dist/ebay-calendar}/date-utils.d.ts +0 -0
- /package/{ebay-calendar → dist/ebay-calendar}/date-utils.d.ts.map +0 -0
- /package/{ebay-calendar → dist/ebay-calendar}/index.d.ts +0 -0
- /package/{ebay-calendar → dist/ebay-calendar}/index.d.ts.map +0 -0
- /package/{ebay-calendar → dist/ebay-calendar}/index.js +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/carousel-control-button.d.ts +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/carousel-control-button.d.ts.map +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/carousel-item.d.ts +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/carousel-item.d.ts.map +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/carousel-list.d.ts +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/carousel-list.d.ts.map +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/carousel.d.ts +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/carousel.d.ts.map +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/helpers.d.ts +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/helpers.d.ts.map +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/index.d.ts +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/index.d.ts.map +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/index.js +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/scroll-to-transition.d.ts +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/scroll-to-transition.d.ts.map +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/types.d.ts +0 -0
- /package/{ebay-carousel → dist/ebay-carousel}/types.d.ts.map +0 -0
- /package/{ebay-checkbox → dist/ebay-checkbox}/checkbox.d.ts +0 -0
- /package/{ebay-checkbox → dist/ebay-checkbox}/checkbox.d.ts.map +0 -0
- /package/{ebay-checkbox → dist/ebay-checkbox}/index.d.ts +0 -0
- /package/{ebay-checkbox → dist/ebay-checkbox}/index.d.ts.map +0 -0
- /package/{ebay-checkbox → dist/ebay-checkbox}/index.js +0 -0
- /package/{ebay-confirm-dialog → dist/ebay-confirm-dialog}/confirm-dialog.d.ts +0 -0
- /package/{ebay-confirm-dialog → dist/ebay-confirm-dialog}/confirm-dialog.d.ts.map +0 -0
- /package/{ebay-confirm-dialog → dist/ebay-confirm-dialog}/index.d.ts +0 -0
- /package/{ebay-confirm-dialog → dist/ebay-confirm-dialog}/index.d.ts.map +0 -0
- /package/{ebay-confirm-dialog → dist/ebay-confirm-dialog}/index.js +0 -0
- /package/{ebay-cta-button → dist/ebay-cta-button}/cta-button.d.ts +0 -0
- /package/{ebay-cta-button → dist/ebay-cta-button}/cta-button.d.ts.map +0 -0
- /package/{ebay-cta-button → dist/ebay-cta-button}/index.d.ts +0 -0
- /package/{ebay-cta-button → dist/ebay-cta-button}/index.d.ts.map +0 -0
- /package/{ebay-cta-button → dist/ebay-cta-button}/index.js +0 -0
- /package/{ebay-date-textbox → dist/ebay-date-textbox}/date-textbox.d.ts +0 -0
- /package/{ebay-date-textbox → dist/ebay-date-textbox}/date-textbox.d.ts.map +0 -0
- /package/{ebay-date-textbox → dist/ebay-date-textbox}/index.d.ts +0 -0
- /package/{ebay-date-textbox → dist/ebay-date-textbox}/index.d.ts.map +0 -0
- /package/{ebay-date-textbox → dist/ebay-date-textbox}/index.js +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/animation.d.ts +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-actions.d.ts +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-actions.d.ts.map +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-close-button.d.ts +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-close-button.d.ts.map +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-footer/index.js +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-footer.d.ts +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-footer.d.ts.map +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-header/index.js +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-header.d.ts +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-header.d.ts.map +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-previous-button.d.ts +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialog-previous-button.d.ts.map +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialogBase.d.ts +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/components/dialogBase.d.ts.map +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/dialog-base-with-state.d.ts +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/dialog-base-with-state.d.ts.map +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/index.d.ts +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/index.d.ts.map +0 -0
- /package/{ebay-dialog-base → dist/ebay-dialog-base}/index.js +0 -0
- /package/{ebay-drawer-dialog → dist/ebay-drawer-dialog}/components/drawer.d.ts +0 -0
- /package/{ebay-drawer-dialog → dist/ebay-drawer-dialog}/components/drawer.d.ts.map +0 -0
- /package/{ebay-drawer-dialog → dist/ebay-drawer-dialog}/index.d.ts +0 -0
- /package/{ebay-drawer-dialog → dist/ebay-drawer-dialog}/index.d.ts.map +0 -0
- /package/{ebay-drawer-dialog → dist/ebay-drawer-dialog}/index.js +0 -0
- /package/{ebay-eek → dist/ebay-eek}/eek-rating.d.ts +0 -0
- /package/{ebay-eek → dist/ebay-eek}/eek-rating.d.ts.map +0 -0
- /package/{ebay-eek → dist/ebay-eek}/eek-util.d.ts +0 -0
- /package/{ebay-eek → dist/ebay-eek}/eek-util.d.ts.map +0 -0
- /package/{ebay-eek → dist/ebay-eek}/index.d.ts +0 -0
- /package/{ebay-eek → dist/ebay-eek}/index.d.ts.map +0 -0
- /package/{ebay-eek → dist/ebay-eek}/index.js +0 -0
- /package/{ebay-fake-menu → dist/ebay-fake-menu}/index.d.ts +0 -0
- /package/{ebay-fake-menu → dist/ebay-fake-menu}/index.d.ts.map +0 -0
- /package/{ebay-fake-menu → dist/ebay-fake-menu}/index.js +0 -0
- /package/{ebay-fake-menu → dist/ebay-fake-menu}/menu-item/index.js +0 -0
- /package/{ebay-fake-menu → dist/ebay-fake-menu}/menu-item-separator.d.ts +0 -0
- /package/{ebay-fake-menu → dist/ebay-fake-menu}/menu-item-separator.d.ts.map +0 -0
- /package/{ebay-fake-menu → dist/ebay-fake-menu}/menu-item.d.ts +0 -0
- /package/{ebay-fake-menu → dist/ebay-fake-menu}/menu-item.d.ts.map +0 -0
- /package/{ebay-fake-menu → dist/ebay-fake-menu}/menu.d.ts +0 -0
- /package/{ebay-fake-menu → dist/ebay-fake-menu}/menu.d.ts.map +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/index.d.ts +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/index.d.ts.map +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/index.js +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/menu-button/index.js +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/menu-button-item.d.ts +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/menu-button-item.d.ts.map +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/menu-button-label.d.ts +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/menu-button-label.d.ts.map +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/menu-button-separator.d.ts +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/menu-button-separator.d.ts.map +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/menu-button.d.ts +0 -0
- /package/{ebay-fake-menu-button → dist/ebay-fake-menu-button}/menu-button.d.ts.map +0 -0
- /package/{ebay-fake-tabs → dist/ebay-fake-tabs}/fake-tabs.d.ts +0 -0
- /package/{ebay-fake-tabs → dist/ebay-fake-tabs}/fake-tabs.d.ts.map +0 -0
- /package/{ebay-fake-tabs → dist/ebay-fake-tabs}/index.d.ts +0 -0
- /package/{ebay-fake-tabs → dist/ebay-fake-tabs}/index.d.ts.map +0 -0
- /package/{ebay-fake-tabs → dist/ebay-fake-tabs}/index.js +0 -0
- /package/{ebay-fake-tabs → dist/ebay-fake-tabs}/tab.d.ts +0 -0
- /package/{ebay-fake-tabs → dist/ebay-fake-tabs}/tab.d.ts.map +0 -0
- /package/{ebay-field → dist/ebay-field}/description.d.ts +0 -0
- /package/{ebay-field → dist/ebay-field}/description.d.ts.map +0 -0
- /package/{ebay-field → dist/ebay-field}/field.d.ts +0 -0
- /package/{ebay-field → dist/ebay-field}/field.d.ts.map +0 -0
- /package/{ebay-field → dist/ebay-field}/index.d.ts +0 -0
- /package/{ebay-field → dist/ebay-field}/index.d.ts.map +0 -0
- /package/{ebay-field → dist/ebay-field}/index.js +0 -0
- /package/{ebay-field → dist/ebay-field}/label.d.ts +0 -0
- /package/{ebay-field → dist/ebay-field}/label.d.ts.map +0 -0
- /package/{ebay-field → dist/ebay-field}/types.d.ts +0 -0
- /package/{ebay-field → dist/ebay-field}/types.d.ts.map +0 -0
- /package/{ebay-fullscreen-dialog → dist/ebay-fullscreen-dialog}/fullscreen-dialog.d.ts +0 -0
- /package/{ebay-fullscreen-dialog → dist/ebay-fullscreen-dialog}/fullscreen-dialog.d.ts.map +0 -0
- /package/{ebay-fullscreen-dialog → dist/ebay-fullscreen-dialog}/index.d.ts +0 -0
- /package/{ebay-fullscreen-dialog → dist/ebay-fullscreen-dialog}/index.d.ts.map +0 -0
- /package/{ebay-fullscreen-dialog → dist/ebay-fullscreen-dialog}/index.js +0 -0
- /package/{ebay-icon → dist/ebay-icon}/icon.d.ts +0 -0
- /package/{ebay-icon → dist/ebay-icon}/icon.d.ts.map +0 -0
- /package/{ebay-icon → dist/ebay-icon}/index.d.ts +0 -0
- /package/{ebay-icon → dist/ebay-icon}/index.d.ts.map +0 -0
- /package/{ebay-icon → dist/ebay-icon}/index.js +0 -0
- /package/{ebay-icon → dist/ebay-icon}/types.d.ts +0 -0
- /package/{ebay-icon → dist/ebay-icon}/types.d.ts.map +0 -0
- /package/{ebay-icon-button → dist/ebay-icon-button}/icon-button.d.ts +0 -0
- /package/{ebay-icon-button → dist/ebay-icon-button}/icon-button.d.ts.map +0 -0
- /package/{ebay-icon-button → dist/ebay-icon-button}/index.d.ts +0 -0
- /package/{ebay-icon-button → dist/ebay-icon-button}/index.d.ts.map +0 -0
- /package/{ebay-icon-button → dist/ebay-icon-button}/index.js +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/ebay-infotip-content.d.ts +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/ebay-infotip-content.d.ts.map +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/ebay-infotip-heading.d.ts +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/ebay-infotip-heading.d.ts.map +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/ebay-infotip-host.d.ts +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/ebay-infotip-host.d.ts.map +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/ebay-infotip.d.ts +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/ebay-infotip.d.ts.map +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/index.d.ts +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/index.d.ts.map +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/index.js +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/types.d.ts +0 -0
- /package/{ebay-infotip → dist/ebay-infotip}/types.d.ts.map +0 -0
- /package/{ebay-inline-notice → dist/ebay-inline-notice}/index.d.ts +0 -0
- /package/{ebay-inline-notice → dist/ebay-inline-notice}/index.d.ts.map +0 -0
- /package/{ebay-inline-notice → dist/ebay-inline-notice}/index.js +0 -0
- /package/{ebay-inline-notice → dist/ebay-inline-notice}/inline-notice.d.ts +0 -0
- /package/{ebay-inline-notice → dist/ebay-inline-notice}/inline-notice.d.ts.map +0 -0
- /package/{ebay-inline-notice → dist/ebay-inline-notice}/types.d.ts +0 -0
- /package/{ebay-inline-notice → dist/ebay-inline-notice}/types.d.ts.map +0 -0
- /package/{ebay-lightbox-dialog → dist/ebay-lightbox-dialog}/index.d.ts +0 -0
- /package/{ebay-lightbox-dialog → dist/ebay-lightbox-dialog}/index.d.ts.map +0 -0
- /package/{ebay-lightbox-dialog → dist/ebay-lightbox-dialog}/index.js +0 -0
- /package/{ebay-lightbox-dialog → dist/ebay-lightbox-dialog}/lightbox-dialog.d.ts +0 -0
- /package/{ebay-lightbox-dialog → dist/ebay-lightbox-dialog}/lightbox-dialog.d.ts.map +0 -0
- /package/{ebay-listbox-button → dist/ebay-listbox-button}/index.d.ts +0 -0
- /package/{ebay-listbox-button → dist/ebay-listbox-button}/index.d.ts.map +0 -0
- /package/{ebay-listbox-button → dist/ebay-listbox-button}/index.js +0 -0
- /package/{ebay-listbox-button → dist/ebay-listbox-button}/listbox-button-option.d.ts +0 -0
- /package/{ebay-listbox-button → dist/ebay-listbox-button}/listbox-button-option.d.ts.map +0 -0
- /package/{ebay-listbox-button → dist/ebay-listbox-button}/listbox-button.d.ts +0 -0
- /package/{ebay-listbox-button → dist/ebay-listbox-button}/listbox-button.d.ts.map +0 -0
- /package/{ebay-menu → dist/ebay-menu}/index.d.ts +0 -0
- /package/{ebay-menu → dist/ebay-menu}/index.d.ts.map +0 -0
- /package/{ebay-menu → dist/ebay-menu}/index.js +0 -0
- /package/{ebay-menu → dist/ebay-menu}/menu-item-separator.d.ts +0 -0
- /package/{ebay-menu → dist/ebay-menu}/menu-item-separator.d.ts.map +0 -0
- /package/{ebay-menu → dist/ebay-menu}/menu-item.d.ts +0 -0
- /package/{ebay-menu → dist/ebay-menu}/menu-item.d.ts.map +0 -0
- /package/{ebay-menu → dist/ebay-menu}/menu.d.ts +0 -0
- /package/{ebay-menu → dist/ebay-menu}/menu.d.ts.map +0 -0
- /package/{ebay-menu → dist/ebay-menu}/types.d.ts +0 -0
- /package/{ebay-menu → dist/ebay-menu}/types.d.ts.map +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/index.d.ts +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/index.d.ts.map +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/index.js +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/menu-button-item.d.ts +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/menu-button-item.d.ts.map +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/menu-button-label.d.ts +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/menu-button-label.d.ts.map +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/menu-button-separator.d.ts +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/menu-button-separator.d.ts.map +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/menu-button.d.ts +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/menu-button.d.ts.map +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/types.d.ts +0 -0
- /package/{ebay-menu-button → dist/ebay-menu-button}/types.d.ts.map +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/components/ebay-notice-content/index.d.ts +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/components/ebay-notice-content/index.d.ts.map +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/components/ebay-notice-content/notice-content.d.ts +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/components/ebay-notice-content/notice-content.d.ts.map +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/components/ebay-notice-title/index.d.ts +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/components/ebay-notice-title/index.d.ts.map +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/components/ebay-notice-title/notice-title.d.ts +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/components/ebay-notice-title/notice-title.d.ts.map +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/index.d.ts +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/index.d.ts.map +0 -0
- /package/{ebay-notice-base → dist/ebay-notice-base}/index.js +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/index.d.ts +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/index.d.ts.map +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/index.js +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/page-notice-cta.d.ts +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/page-notice-cta.d.ts.map +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/page-notice-footer.d.ts +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/page-notice-footer.d.ts.map +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/page-notice-title.d.ts +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/page-notice-title.d.ts.map +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/page-notice.d.ts +0 -0
- /package/{ebay-page-notice → dist/ebay-page-notice}/page-notice.d.ts.map +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/const.d.ts +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/const.d.ts.map +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/helpers.d.ts +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/helpers.d.ts.map +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/index.d.ts +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/index.d.ts.map +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/index.js +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/pagination-item.d.ts +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/pagination-item.d.ts.map +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/pagination.d.ts +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/pagination.d.ts.map +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/types.d.ts +0 -0
- /package/{ebay-pagination → dist/ebay-pagination}/types.d.ts.map +0 -0
- /package/{ebay-panel-dialog → dist/ebay-panel-dialog}/index.d.ts +0 -0
- /package/{ebay-panel-dialog → dist/ebay-panel-dialog}/index.d.ts.map +0 -0
- /package/{ebay-panel-dialog → dist/ebay-panel-dialog}/index.js +0 -0
- /package/{ebay-panel-dialog → dist/ebay-panel-dialog}/panel-dialog.d.ts +0 -0
- /package/{ebay-panel-dialog → dist/ebay-panel-dialog}/panel-dialog.d.ts.map +0 -0
- /package/{ebay-progress-bar → dist/ebay-progress-bar}/index.d.ts +0 -0
- /package/{ebay-progress-bar → dist/ebay-progress-bar}/index.d.ts.map +0 -0
- /package/{ebay-progress-bar → dist/ebay-progress-bar}/index.js +0 -0
- /package/{ebay-progress-bar → dist/ebay-progress-bar}/progress-bar.d.ts +0 -0
- /package/{ebay-progress-bar → dist/ebay-progress-bar}/progress-bar.d.ts.map +0 -0
- /package/{ebay-progress-spinner → dist/ebay-progress-spinner}/index.d.ts +0 -0
- /package/{ebay-progress-spinner → dist/ebay-progress-spinner}/index.d.ts.map +0 -0
- /package/{ebay-progress-spinner → dist/ebay-progress-spinner}/index.js +0 -0
- /package/{ebay-progress-spinner → dist/ebay-progress-spinner}/progress-spinner.d.ts +0 -0
- /package/{ebay-progress-spinner → dist/ebay-progress-spinner}/progress-spinner.d.ts.map +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/ebay-progress-step.d.ts +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/ebay-progress-step.d.ts.map +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/ebay-progress-stepper.d.ts +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/ebay-progress-stepper.d.ts.map +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/ebay-progress-title.d.ts +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/ebay-progress-title.d.ts.map +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/index.d.ts +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/index.d.ts.map +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/index.js +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/types.d.ts +0 -0
- /package/{ebay-progress-stepper → dist/ebay-progress-stepper}/types.d.ts.map +0 -0
- /package/{ebay-radio → dist/ebay-radio}/index.d.ts +0 -0
- /package/{ebay-radio → dist/ebay-radio}/index.d.ts.map +0 -0
- /package/{ebay-radio → dist/ebay-radio}/index.js +0 -0
- /package/{ebay-radio → dist/ebay-radio}/radio/index.js +0 -0
- /package/{ebay-radio → dist/ebay-radio}/radio.d.ts +0 -0
- /package/{ebay-radio → dist/ebay-radio}/radio.d.ts.map +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/index.d.ts +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/index.d.ts.map +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/index.js +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/section-notice-cta.d.ts +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/section-notice-cta.d.ts.map +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/section-notice-footer.d.ts +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/section-notice-footer.d.ts.map +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/section-notice-title.d.ts +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/section-notice-title.d.ts.map +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/section-notice.d.ts +0 -0
- /package/{ebay-section-notice → dist/ebay-section-notice}/section-notice.d.ts.map +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/cta.d.ts +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/cta.d.ts.map +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/index.d.ts +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/index.d.ts.map +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/index.js +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/info.d.ts +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/info.d.ts.map +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/overflow.d.ts +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/overflow.d.ts.map +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/section-title.d.ts +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/section-title.d.ts.map +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/subtitle.d.ts +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/subtitle.d.ts.map +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/title.d.ts +0 -0
- /package/{ebay-section-title → dist/ebay-section-title}/title.d.ts.map +0 -0
- /package/{ebay-segmented-buttons → dist/ebay-segmented-buttons}/button.d.ts +0 -0
- /package/{ebay-segmented-buttons → dist/ebay-segmented-buttons}/button.d.ts.map +0 -0
- /package/{ebay-segmented-buttons → dist/ebay-segmented-buttons}/index.d.ts +0 -0
- /package/{ebay-segmented-buttons → dist/ebay-segmented-buttons}/index.d.ts.map +0 -0
- /package/{ebay-segmented-buttons → dist/ebay-segmented-buttons}/index.js +0 -0
- /package/{ebay-segmented-buttons → dist/ebay-segmented-buttons}/segmented-buttons.d.ts +0 -0
- /package/{ebay-segmented-buttons → dist/ebay-segmented-buttons}/segmented-buttons.d.ts.map +0 -0
- /package/{ebay-segmented-buttons → dist/ebay-segmented-buttons}/types.d.ts +0 -0
- /package/{ebay-segmented-buttons → dist/ebay-segmented-buttons}/types.d.ts.map +0 -0
- /package/{ebay-select → dist/ebay-select}/ebay-select-option.d.ts +0 -0
- /package/{ebay-select → dist/ebay-select}/ebay-select-option.d.ts.map +0 -0
- /package/{ebay-select → dist/ebay-select}/ebay-select.d.ts +0 -0
- /package/{ebay-select → dist/ebay-select}/ebay-select.d.ts.map +0 -0
- /package/{ebay-select → dist/ebay-select}/index.d.ts +0 -0
- /package/{ebay-select → dist/ebay-select}/index.d.ts.map +0 -0
- /package/{ebay-select → dist/ebay-select}/index.js +0 -0
- /package/{ebay-signal → dist/ebay-signal}/index.d.ts +0 -0
- /package/{ebay-signal → dist/ebay-signal}/index.d.ts.map +0 -0
- /package/{ebay-signal → dist/ebay-signal}/index.js +0 -0
- /package/{ebay-signal → dist/ebay-signal}/signal.d.ts +0 -0
- /package/{ebay-signal → dist/ebay-signal}/signal.d.ts.map +0 -0
- /package/{ebay-snackbar-dialog → dist/ebay-snackbar-dialog}/components/ebay-snackbar-dialog-action.d.ts +0 -0
- /package/{ebay-snackbar-dialog → dist/ebay-snackbar-dialog}/components/ebay-snackbar-dialog-action.d.ts.map +0 -0
- /package/{ebay-snackbar-dialog → dist/ebay-snackbar-dialog}/components/ebay-snackbar-dialog.d.ts +0 -0
- /package/{ebay-snackbar-dialog → dist/ebay-snackbar-dialog}/components/ebay-snackbar-dialog.d.ts.map +0 -0
- /package/{ebay-snackbar-dialog → dist/ebay-snackbar-dialog}/index.d.ts +0 -0
- /package/{ebay-snackbar-dialog → dist/ebay-snackbar-dialog}/index.d.ts.map +0 -0
- /package/{ebay-snackbar-dialog → dist/ebay-snackbar-dialog}/index.js +0 -0
- /package/{ebay-split-button → dist/ebay-split-button}/index.d.ts +0 -0
- /package/{ebay-split-button → dist/ebay-split-button}/index.d.ts.map +0 -0
- /package/{ebay-split-button → dist/ebay-split-button}/index.js +0 -0
- /package/{ebay-split-button → dist/ebay-split-button}/split-button.d.ts +0 -0
- /package/{ebay-split-button → dist/ebay-split-button}/split-button.d.ts.map +0 -0
- /package/{ebay-split-button → dist/ebay-split-button}/types.d.ts +0 -0
- /package/{ebay-split-button → dist/ebay-split-button}/types.d.ts.map +0 -0
- /package/{ebay-star-rating → dist/ebay-star-rating}/index.d.ts +0 -0
- /package/{ebay-star-rating → dist/ebay-star-rating}/index.d.ts.map +0 -0
- /package/{ebay-star-rating → dist/ebay-star-rating}/index.js +0 -0
- /package/{ebay-star-rating → dist/ebay-star-rating}/star-rating.d.ts +0 -0
- /package/{ebay-star-rating → dist/ebay-star-rating}/star-rating.d.ts.map +0 -0
- /package/{ebay-star-rating-select → dist/ebay-star-rating-select}/index.d.ts +0 -0
- /package/{ebay-star-rating-select → dist/ebay-star-rating-select}/index.d.ts.map +0 -0
- /package/{ebay-star-rating-select → dist/ebay-star-rating-select}/index.js +0 -0
- /package/{ebay-star-rating-select → dist/ebay-star-rating-select}/star-rating-select.d.ts +0 -0
- /package/{ebay-star-rating-select → dist/ebay-star-rating-select}/star-rating-select.d.ts.map +0 -0
- /package/{ebay-svg → dist/ebay-svg}/index.d.ts +0 -0
- /package/{ebay-svg → dist/ebay-svg}/index.d.ts.map +0 -0
- /package/{ebay-svg → dist/ebay-svg}/index.js +0 -0
- /package/{ebay-svg → dist/ebay-svg}/svg.d.ts +0 -0
- /package/{ebay-svg → dist/ebay-svg}/svg.d.ts.map +0 -0
- /package/{ebay-svg → dist/ebay-svg}/symbols.d.ts +0 -0
- /package/{ebay-svg → dist/ebay-svg}/symbols.d.ts.map +0 -0
- /package/{ebay-switch → dist/ebay-switch}/ebay-switch.d.ts +0 -0
- /package/{ebay-switch → dist/ebay-switch}/ebay-switch.d.ts.map +0 -0
- /package/{ebay-switch → dist/ebay-switch}/index.d.ts +0 -0
- /package/{ebay-switch → dist/ebay-switch}/index.d.ts.map +0 -0
- /package/{ebay-switch → dist/ebay-switch}/index.js +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/index.d.ts +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/index.d.ts.map +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/index.js +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/tab-panel.d.ts +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/tab-panel.d.ts.map +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/tab.d.ts +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/tab.d.ts.map +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/tabs.d.ts +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/tabs.d.ts.map +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/types.d.ts +0 -0
- /package/{ebay-tabs → dist/ebay-tabs}/types.d.ts.map +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/index.d.ts +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/index.d.ts.map +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/index.js +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/postfix-icon.d.ts +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/postfix-icon.d.ts.map +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/postfix-text.d.ts +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/postfix-text.d.ts.map +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/prefix-icon.d.ts +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/prefix-icon.d.ts.map +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/prefix-text.d.ts +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/prefix-text.d.ts.map +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/textbox.d.ts +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/textbox.d.ts.map +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/types.d.ts +0 -0
- /package/{ebay-textbox → dist/ebay-textbox}/types.d.ts.map +0 -0
- /package/{ebay-toast-dialog → dist/ebay-toast-dialog}/components/toast.d.ts +0 -0
- /package/{ebay-toast-dialog → dist/ebay-toast-dialog}/components/toast.d.ts.map +0 -0
- /package/{ebay-toast-dialog → dist/ebay-toast-dialog}/index.d.ts +0 -0
- /package/{ebay-toast-dialog → dist/ebay-toast-dialog}/index.d.ts.map +0 -0
- /package/{ebay-toast-dialog → dist/ebay-toast-dialog}/index.js +0 -0
- /package/{ebay-tooltip → dist/ebay-tooltip}/ebay-tooltip-content.d.ts +0 -0
- /package/{ebay-tooltip → dist/ebay-tooltip}/ebay-tooltip-content.d.ts.map +0 -0
- /package/{ebay-tooltip → dist/ebay-tooltip}/ebay-tooltip-host.d.ts +0 -0
- /package/{ebay-tooltip → dist/ebay-tooltip}/ebay-tooltip-host.d.ts.map +0 -0
- /package/{ebay-tooltip → dist/ebay-tooltip}/ebay-tooltip.d.ts +0 -0
- /package/{ebay-tooltip → dist/ebay-tooltip}/ebay-tooltip.d.ts.map +0 -0
- /package/{ebay-tooltip → dist/ebay-tooltip}/index.d.ts +0 -0
- /package/{ebay-tooltip → dist/ebay-tooltip}/index.d.ts.map +0 -0
- /package/{ebay-tooltip → dist/ebay-tooltip}/index.js +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/ebay-tourtip-content.d.ts +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/ebay-tourtip-content.d.ts.map +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/ebay-tourtip-footer.d.ts +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/ebay-tourtip-footer.d.ts.map +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/ebay-tourtip-heading.d.ts +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/ebay-tourtip-heading.d.ts.map +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/ebay-tourtip-host.d.ts +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/ebay-tourtip-host.d.ts.map +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/ebay-tourtip.d.ts +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/ebay-tourtip.d.ts.map +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/index.d.ts +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/index.d.ts.map +0 -0
- /package/{ebay-tourtip → dist/ebay-tourtip}/index.js +0 -0
- /package/{ebay-video → dist/ebay-video}/const.d.ts +0 -0
- /package/{ebay-video → dist/ebay-video}/const.d.ts.map +0 -0
- /package/{ebay-video → dist/ebay-video}/controls.d.ts +0 -0
- /package/{ebay-video → dist/ebay-video}/controls.d.ts.map +0 -0
- /package/{ebay-video → dist/ebay-video}/index.d.ts +0 -0
- /package/{ebay-video → dist/ebay-video}/index.d.ts.map +0 -0
- /package/{ebay-video → dist/ebay-video}/index.js +0 -0
- /package/{ebay-video → dist/ebay-video}/reportButton.d.ts +0 -0
- /package/{ebay-video → dist/ebay-video}/reportButton.d.ts.map +0 -0
- /package/{ebay-video → dist/ebay-video}/source.d.ts +0 -0
- /package/{ebay-video → dist/ebay-video}/source.d.ts.map +0 -0
- /package/{ebay-video → dist/ebay-video}/types.d.ts +0 -0
- /package/{ebay-video → dist/ebay-video}/types.d.ts.map +0 -0
- /package/{ebay-video → dist/ebay-video}/video.d.ts +0 -0
- /package/{ebay-video → dist/ebay-video}/video.d.ts.map +0 -0
- /package/{events → dist/events}/index.d.ts +0 -0
- /package/{events → dist/events}/index.d.ts.map +0 -0
- /package/{events → dist/events}/index.js +0 -0
- /package/{icon-TuxfQndO.js → dist/icon-TuxfQndO.js} +0 -0
- /package/{icon-button-Cwaj-eT9.js → dist/icon-button-Cwaj-eT9.js} +0 -0
- /package/{label-CnrpYJ-g.js → dist/label-CnrpYJ-g.js} +0 -0
- /package/{menu-CV-INYLM.js → dist/menu-CV-INYLM.js} +0 -0
- /package/{menu-_LzP6yje.js → dist/menu-_LzP6yje.js} +0 -0
- /package/{menu-button-BZ66jxvI.js → dist/menu-button-BZ66jxvI.js} +0 -0
- /package/{notice-content-9iF4T8uB.js → dist/notice-content-9iF4T8uB.js} +0 -0
- /package/{notice-content-C0ZStfuX.js → dist/notice-content-C0ZStfuX.js} +0 -0
- /package/{notice-footer-Cw1DMzoB.js → dist/notice-footer-Cw1DMzoB.js} +0 -0
- /package/{progress-spinner-U2qOANON.js → dist/progress-spinner-U2qOANON.js} +0 -0
- /package/{range-DOsPN0h5.js → dist/range-DOsPN0h5.js} +0 -0
- /package/{textbox-dUhinDwj.js → dist/textbox-dUhinDwj.js} +0 -0
- /package/{use-roving-index-DoAVBgsp.js → dist/use-roving-index-DoAVBgsp.js} +0 -0
- /package/{use-tooltip-CL3_zAeg.js → dist/use-tooltip-CL3_zAeg.js} +0 -0
- /package/{utils → dist/utils}/index.d.ts +0 -0
- /package/{utils → dist/utils}/index.d.ts.map +0 -0
- /package/{utils → dist/utils}/index.js +0 -0
- /package/{ebay-alert-dialog → src/ebay-alert-dialog}/README.md +0 -0
- /package/{ebay-badge → src/ebay-badge}/README.md +0 -0
- /package/{ebay-breadcrumbs → src/ebay-breadcrumbs}/README.md +0 -0
- /package/{ebay-button → src/ebay-button}/README.md +0 -0
- /package/{ebay-calendar → src/ebay-calendar}/README.md +0 -0
- /package/{ebay-carousel → src/ebay-carousel}/README.md +0 -0
- /package/{ebay-checkbox → src/ebay-checkbox}/README.md +0 -0
- /package/{ebay-confirm-dialog → src/ebay-confirm-dialog}/README.md +0 -0
- /package/{ebay-cta-button → src/ebay-cta-button}/README.md +0 -0
- /package/{ebay-date-textbox → src/ebay-date-textbox}/README.md +0 -0
- /package/{ebay-dialog-base → src/ebay-dialog-base}/README.md +0 -0
- /package/{ebay-drawer-dialog → src/ebay-drawer-dialog}/README.md +0 -0
- /package/{ebay-eek → src/ebay-eek}/README.md +0 -0
- /package/{ebay-fake-menu → src/ebay-fake-menu}/README.md +0 -0
- /package/{ebay-fake-menu-button → src/ebay-fake-menu-button}/README.md +0 -0
- /package/{ebay-fake-tabs → src/ebay-fake-tabs}/README.md +0 -0
- /package/{ebay-field → src/ebay-field}/README.md +0 -0
- /package/{ebay-fullscreen-dialog → src/ebay-fullscreen-dialog}/README.md +0 -0
- /package/{ebay-icon → src/ebay-icon}/README.md +0 -0
- /package/{ebay-icon-button → src/ebay-icon-button}/README.md +0 -0
- /package/{ebay-infotip → src/ebay-infotip}/README.md +0 -0
- /package/{ebay-inline-notice → src/ebay-inline-notice}/README.md +0 -0
- /package/{ebay-lightbox-dialog → src/ebay-lightbox-dialog}/README.md +0 -0
- /package/{ebay-listbox-button → src/ebay-listbox-button}/README.md +0 -0
- /package/{ebay-menu → src/ebay-menu}/README.md +0 -0
- /package/{ebay-menu-button → src/ebay-menu-button}/README.md +0 -0
- /package/{ebay-page-notice → src/ebay-page-notice}/README.md +0 -0
- /package/{ebay-pagination → src/ebay-pagination}/README.md +0 -0
- /package/{ebay-panel-dialog → src/ebay-panel-dialog}/README.md +0 -0
- /package/{ebay-progress-bar → src/ebay-progress-bar}/README.md +0 -0
- /package/{ebay-progress-spinner → src/ebay-progress-spinner}/README.md +0 -0
- /package/{ebay-progress-stepper → src/ebay-progress-stepper}/README.md +0 -0
- /package/{ebay-radio → src/ebay-radio}/README.md +0 -0
- /package/{ebay-section-notice → src/ebay-section-notice}/README.md +0 -0
- /package/{ebay-section-title → src/ebay-section-title}/README.md +0 -0
- /package/{ebay-segmented-buttons → src/ebay-segmented-buttons}/README.md +0 -0
- /package/{ebay-select → src/ebay-select}/README.md +0 -0
- /package/{ebay-signal → src/ebay-signal}/README.md +0 -0
- /package/{ebay-snackbar-dialog → src/ebay-snackbar-dialog}/README.md +0 -0
- /package/{ebay-split-button → src/ebay-split-button}/README.md +0 -0
- /package/{ebay-star-rating → src/ebay-star-rating}/README.md +0 -0
- /package/{ebay-star-rating-select → src/ebay-star-rating-select}/README.md +0 -0
- /package/{ebay-svg → src/ebay-svg}/README.md +0 -0
- /package/{ebay-switch → src/ebay-switch}/README.md +0 -0
- /package/{ebay-tabs → src/ebay-tabs}/README.md +0 -0
- /package/{ebay-textbox → src/ebay-textbox}/README.md +0 -0
- /package/{ebay-toast-dialog → src/ebay-toast-dialog}/README.md +0 -0
- /package/{ebay-tooltip → src/ebay-tooltip}/README.md +0 -0
- /package/{ebay-tourtip → src/ebay-tourtip}/README.md +0 -0
- /package/{ebay-video → src/ebay-video}/README.md +0 -0
- /package/{events → src/events}/README.md +0 -0
- /package/{utils → src/utils}/README.md +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import React, { cloneElement, FC, useEffect, useRef, useState } from 'react'
|
|
2
|
+
import classnames from 'classnames'
|
|
3
|
+
import { filterByType, findComponent } from '../common/component-utils'
|
|
4
|
+
|
|
5
|
+
import { EbayMenu, EbayMenuChangeEventHandler } from '../ebay-menu'
|
|
6
|
+
import { EbayButton } from '../ebay-button'
|
|
7
|
+
import { EbayIconButton } from '../ebay-icon-button'
|
|
8
|
+
import { EbayIcon } from '../ebay-icon'
|
|
9
|
+
import { EbayMenuButtonItem, EbayMenuButtonLabel, EbayMenuButtonSeparator, LabelProps, MenuButtonProps } from './index'
|
|
10
|
+
import { randomId } from '../common/random-id'
|
|
11
|
+
import { handleEscapeKeydown } from '../common/event-utils'
|
|
12
|
+
|
|
13
|
+
const EbayMenuButton: FC<MenuButtonProps> = ({
|
|
14
|
+
type,
|
|
15
|
+
variant = 'button',
|
|
16
|
+
className,
|
|
17
|
+
text = '',
|
|
18
|
+
fixWidth,
|
|
19
|
+
reverse,
|
|
20
|
+
expanded: defaultExpanded,
|
|
21
|
+
noToggleIcon,
|
|
22
|
+
checked,
|
|
23
|
+
collapseOnSelect,
|
|
24
|
+
a11yText,
|
|
25
|
+
prefixId,
|
|
26
|
+
prefixLabel,
|
|
27
|
+
onClick = () => {},
|
|
28
|
+
onExpand = () => {},
|
|
29
|
+
onCollapse = () => {},
|
|
30
|
+
onChange = () => {},
|
|
31
|
+
onSelect = () => {},
|
|
32
|
+
children,
|
|
33
|
+
...rest
|
|
34
|
+
}) => {
|
|
35
|
+
const [expanded, setExpanded] = useState(defaultExpanded)
|
|
36
|
+
const [menuId, setMenuId] = useState<string | undefined>()
|
|
37
|
+
const buttonRef = useRef(null)
|
|
38
|
+
const menuRef = useRef()
|
|
39
|
+
|
|
40
|
+
const menuItems = filterByType(children, [EbayMenuButtonItem, EbayMenuButtonSeparator])
|
|
41
|
+
const defaultIndexes = menuItems.map((item) => Boolean(item.props.checked))
|
|
42
|
+
const [checkedIndexes, setCheckedIndexes] = useState<boolean[]>(defaultIndexes)
|
|
43
|
+
|
|
44
|
+
const menuButtonLabel = findComponent(children, EbayMenuButtonLabel)
|
|
45
|
+
const icon = findComponent(children, EbayIcon)
|
|
46
|
+
const label = labelWithPrefixAndIcon({ text, prefixId, prefixLabel, menuButtonLabel, icon })
|
|
47
|
+
const wrapperClasses = classnames('menu-button', className)
|
|
48
|
+
|
|
49
|
+
const menuClasses = classnames('menu-button__menu', {
|
|
50
|
+
'menu-button__menu--fix-width': fixWidth,
|
|
51
|
+
'menu-button__menu--reverse': reverse
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
const handleBackgroundClick = (e: React.MouseEvent) => {
|
|
56
|
+
const menuEl = menuRef.current as HTMLDivElement
|
|
57
|
+
const menuClicked = menuEl && menuEl.contains(e.target as Node)
|
|
58
|
+
if (collapseOnSelect || !menuClicked) {
|
|
59
|
+
setExpanded(false)
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (expanded) {
|
|
64
|
+
onExpand()
|
|
65
|
+
// On React 18 useEffect hooks runs synchronous instead of asynchronous as React 17 or prior
|
|
66
|
+
// causing the event listener to be attached to the document at the same time that the dialog
|
|
67
|
+
// opens. Adding a timeout so the event is attached after the click event that opened the modal
|
|
68
|
+
// is finished.
|
|
69
|
+
setTimeout(() => {
|
|
70
|
+
document.addEventListener('click', handleBackgroundClick as any, false)
|
|
71
|
+
})
|
|
72
|
+
} else if (expanded === false) {
|
|
73
|
+
onCollapse()
|
|
74
|
+
}
|
|
75
|
+
return () => document.removeEventListener('click', handleBackgroundClick as any, false)
|
|
76
|
+
}, [expanded])
|
|
77
|
+
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
setMenuId(randomId())
|
|
80
|
+
}, [])
|
|
81
|
+
|
|
82
|
+
const handleMenuKeydown = (e) => {
|
|
83
|
+
handleEscapeKeydown(e, () => {
|
|
84
|
+
setExpanded(false)
|
|
85
|
+
buttonRef.current?.focus()
|
|
86
|
+
})
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const buttonProps = {
|
|
90
|
+
ref: buttonRef as any,
|
|
91
|
+
className: 'menu-button__button',
|
|
92
|
+
'aria-expanded': !!expanded,
|
|
93
|
+
'aria-haspopup': true,
|
|
94
|
+
'aria-label': a11yText,
|
|
95
|
+
'aria-controls': menuId,
|
|
96
|
+
'aria-labelledby': prefixId,
|
|
97
|
+
onClick: e => {
|
|
98
|
+
setExpanded(!expanded)
|
|
99
|
+
onClick(e)
|
|
100
|
+
},
|
|
101
|
+
...rest
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const handleOnChange: EbayMenuChangeEventHandler = (e, eventProps) => {
|
|
105
|
+
if (type === 'radio' || type === 'checkbox') {
|
|
106
|
+
const newCheckedIndexes = checkedIndexes.map((_, i) => eventProps.indexes.includes(i))
|
|
107
|
+
setCheckedIndexes(newCheckedIndexes)
|
|
108
|
+
}
|
|
109
|
+
onChange(e, eventProps)
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const checkedIndex = () => {
|
|
113
|
+
const index = checkedIndexes.findIndex(Boolean)
|
|
114
|
+
return index > -1 ? index : checked
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return (
|
|
118
|
+
<span className={wrapperClasses}>
|
|
119
|
+
{variant === 'overflow' ?
|
|
120
|
+
<EbayIconButton icon="overflowVertical16" {...buttonProps} /> :
|
|
121
|
+
<EbayButton
|
|
122
|
+
variant={variant === 'form' ? 'form' : undefined}
|
|
123
|
+
bodyState={noToggleIcon ? undefined : 'expand'}
|
|
124
|
+
{...buttonProps}
|
|
125
|
+
>
|
|
126
|
+
{label}
|
|
127
|
+
</EbayButton>
|
|
128
|
+
}
|
|
129
|
+
{expanded &&
|
|
130
|
+
<EbayMenu
|
|
131
|
+
baseEl="div"
|
|
132
|
+
ref={menuRef}
|
|
133
|
+
type={type}
|
|
134
|
+
className={menuClasses}
|
|
135
|
+
tabIndex={-1}
|
|
136
|
+
id={menuId}
|
|
137
|
+
autofocus
|
|
138
|
+
checked={checkedIndex()}
|
|
139
|
+
onKeyDown={handleMenuKeydown}
|
|
140
|
+
onChange={handleOnChange}
|
|
141
|
+
onSelect={onSelect}
|
|
142
|
+
>
|
|
143
|
+
{menuItems.map((item, i) =>
|
|
144
|
+
cloneElement(item, {
|
|
145
|
+
...item.props,
|
|
146
|
+
className: classnames(item.props.className, 'menu-button__item'),
|
|
147
|
+
key: i,
|
|
148
|
+
checked: checkedIndexes[i]
|
|
149
|
+
})
|
|
150
|
+
)}
|
|
151
|
+
</EbayMenu>
|
|
152
|
+
}
|
|
153
|
+
</span>
|
|
154
|
+
)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function labelWithPrefixAndIcon({ text, prefixId, prefixLabel, menuButtonLabel, icon }: LabelProps) {
|
|
158
|
+
const textLabelElement = text.length ? <span>{text}</span> : null
|
|
159
|
+
const prefixLabelElement = !prefixId && prefixLabel && [
|
|
160
|
+
<span className="menu-button-prefix-label">{prefixLabel}</span>,
|
|
161
|
+
<> </>
|
|
162
|
+
]
|
|
163
|
+
const labelWithPrefix = [prefixLabelElement, menuButtonLabel || textLabelElement]
|
|
164
|
+
const labelArray = [icon, labelWithPrefix].flat().filter(Boolean) as JSX.Element[]
|
|
165
|
+
|
|
166
|
+
return labelArray.length ? labelArray : null
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export default EbayMenuButton
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EbayMenuChangeEventHandler, EbayMenuSelectEventHandler, EbayMenuType } from '../ebay-menu'
|
|
2
|
+
import { EbayButtonProps } from '../ebay-button'
|
|
3
|
+
import { ComponentProps, ReactElement } from 'react'
|
|
4
|
+
|
|
5
|
+
export type EbayMenuButtonVariant = 'overflow' | 'form' | 'button'
|
|
6
|
+
|
|
7
|
+
export type EbayMenuButtonProps = {
|
|
8
|
+
a11yText?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
fixWidth?: boolean;
|
|
11
|
+
reverse?: boolean;
|
|
12
|
+
text?: string;
|
|
13
|
+
type?: EbayMenuType;
|
|
14
|
+
variant?: EbayMenuButtonVariant;
|
|
15
|
+
onCollapse?: () => void;
|
|
16
|
+
onExpand?: () => void;
|
|
17
|
+
onChange?: EbayMenuChangeEventHandler;
|
|
18
|
+
onSelect?: EbayMenuSelectEventHandler;
|
|
19
|
+
expanded?: boolean;
|
|
20
|
+
noToggleIcon?: boolean;
|
|
21
|
+
checked?: number;
|
|
22
|
+
collapseOnSelect?: boolean;
|
|
23
|
+
prefixId?: string;
|
|
24
|
+
prefixLabel?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type MenuEvents = 'onSelect' | 'onChange'
|
|
28
|
+
export type MenuButtonProps = Omit<EbayButtonProps, 'type' | 'variant' | 'onKeyDown'> &
|
|
29
|
+
Omit<ComponentProps<'button'>, 'type' | MenuEvents> &
|
|
30
|
+
Omit<ComponentProps<'a'>, MenuEvents> &
|
|
31
|
+
EbayMenuButtonProps
|
|
32
|
+
|
|
33
|
+
export type LabelProps = {
|
|
34
|
+
text?: string;
|
|
35
|
+
prefixId?: string;
|
|
36
|
+
prefixLabel?: string;
|
|
37
|
+
menuButtonLabel?: ReactElement;
|
|
38
|
+
icon?: JSX.Element;
|
|
39
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { render } from '@testing-library/react'
|
|
3
|
+
import NoticeContent from '../../../../common/notice-utils/notice-content'
|
|
4
|
+
|
|
5
|
+
describe('<NoticeContent>', () => {
|
|
6
|
+
describe('when inline', () => {
|
|
7
|
+
it('should render the content in a <span>', () => {
|
|
8
|
+
const wrapper = render(
|
|
9
|
+
<NoticeContent type="inline">
|
|
10
|
+
<p>I am a notice!</p>
|
|
11
|
+
</NoticeContent>
|
|
12
|
+
)
|
|
13
|
+
expect(wrapper.container.querySelectorAll('span').length).toBe(1)
|
|
14
|
+
expect(wrapper.container.querySelectorAll('div').length).toBe(0)
|
|
15
|
+
})
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
describe('when not inline', () => {
|
|
19
|
+
it('should render the content in a <span>', () => {
|
|
20
|
+
const wrapper = render(
|
|
21
|
+
<NoticeContent type="section">
|
|
22
|
+
<p>I am a notice!</p>
|
|
23
|
+
</NoticeContent>
|
|
24
|
+
)
|
|
25
|
+
expect(wrapper.container.querySelectorAll('span').length).toBe(0)
|
|
26
|
+
expect(wrapper.container.querySelectorAll('div').length).toBe(1)
|
|
27
|
+
})
|
|
28
|
+
})
|
|
29
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EbayNoticeContent } from './notice-content'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This Component is used only for finding it as a child of EbayInlineNotice, EbaySectionNotice, or EbayPageNotice
|
|
3
|
+
* and pass the properties to NoticeContent
|
|
4
|
+
*/
|
|
5
|
+
import { FC } from 'react'
|
|
6
|
+
import { NoticeContentProps } from '../../../common/notice-utils/notice-content'
|
|
7
|
+
|
|
8
|
+
type Props = Omit<NoticeContentProps, 'type'>
|
|
9
|
+
|
|
10
|
+
const EbayNoticeContent: FC<Props> = () => null
|
|
11
|
+
|
|
12
|
+
export default EbayNoticeContent
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EbayNoticeTitle } from './notice-title'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react'
|
|
2
|
+
|
|
3
|
+
type EbayNoticeTitleProps = {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const EbayNoticeTitle = ({ children }: EbayNoticeTitleProps): ReactNode => (
|
|
8
|
+
<span className="page-notice__title">
|
|
9
|
+
{children}
|
|
10
|
+
</span>
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
export default EbayNoticeTitle
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`ebay-page-notice rendering renders attention message story correctly 1`] = `
|
|
4
|
+
<svg
|
|
5
|
+
aria-label="Attention"
|
|
6
|
+
class="icon icon--16 icon--attention-filled"
|
|
7
|
+
focusable="false"
|
|
8
|
+
role="img"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
>
|
|
11
|
+
<use
|
|
12
|
+
xlink:href="#icon-attention-filled-16"
|
|
13
|
+
/>
|
|
14
|
+
</svg>
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
exports[`ebay-page-notice rendering renders confirmation message story correctly 1`] = `
|
|
18
|
+
<svg
|
|
19
|
+
aria-label="Success"
|
|
20
|
+
class="icon icon--16 icon--confirmation-filled"
|
|
21
|
+
focusable="false"
|
|
22
|
+
role="img"
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
>
|
|
25
|
+
<use
|
|
26
|
+
xlink:href="#icon-confirmation-filled-16"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
exports[`ebay-page-notice rendering renders dismissible message with cta story correctly 1`] = `
|
|
32
|
+
<svg
|
|
33
|
+
aria-label="Congratulations"
|
|
34
|
+
class="icon icon--16 icon--information-filled"
|
|
35
|
+
focusable="false"
|
|
36
|
+
role="img"
|
|
37
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
38
|
+
>
|
|
39
|
+
<use
|
|
40
|
+
xlink:href="#icon-information-filled-16"
|
|
41
|
+
/>
|
|
42
|
+
</svg>
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
exports[`ebay-page-notice rendering renders dismissible message with cta story correctly 2`] = `
|
|
46
|
+
<svg
|
|
47
|
+
aria-hidden="true"
|
|
48
|
+
class="icon icon--16"
|
|
49
|
+
focusable="false"
|
|
50
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
51
|
+
>
|
|
52
|
+
<use
|
|
53
|
+
xlink:href="#icon-close-16"
|
|
54
|
+
/>
|
|
55
|
+
</svg>
|
|
56
|
+
`;
|
|
57
|
+
|
|
58
|
+
exports[`ebay-page-notice rendering renders dismissible notice story correctly 1`] = `
|
|
59
|
+
<svg
|
|
60
|
+
aria-label="Information"
|
|
61
|
+
class="icon icon--16 icon--information-filled"
|
|
62
|
+
focusable="false"
|
|
63
|
+
role="img"
|
|
64
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
65
|
+
>
|
|
66
|
+
<use
|
|
67
|
+
xlink:href="#icon-information-filled-16"
|
|
68
|
+
/>
|
|
69
|
+
</svg>
|
|
70
|
+
`;
|
|
71
|
+
|
|
72
|
+
exports[`ebay-page-notice rendering renders information message story correctly 1`] = `
|
|
73
|
+
<svg
|
|
74
|
+
aria-label="Information"
|
|
75
|
+
class="icon icon--16 icon--information-filled"
|
|
76
|
+
focusable="false"
|
|
77
|
+
role="img"
|
|
78
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
79
|
+
>
|
|
80
|
+
<use
|
|
81
|
+
xlink:href="#icon-information-filled-16"
|
|
82
|
+
/>
|
|
83
|
+
</svg>
|
|
84
|
+
`;
|
|
85
|
+
|
|
86
|
+
exports[`ebay-page-notice rendering renders message with footer story correctly 1`] = `
|
|
87
|
+
<svg
|
|
88
|
+
aria-label="Congratulations"
|
|
89
|
+
class="icon icon--16 icon--confirmation-filled"
|
|
90
|
+
focusable="false"
|
|
91
|
+
role="img"
|
|
92
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
93
|
+
>
|
|
94
|
+
<use
|
|
95
|
+
xlink:href="#icon-confirmation-filled-16"
|
|
96
|
+
/>
|
|
97
|
+
</svg>
|
|
98
|
+
`;
|
|
99
|
+
|
|
100
|
+
exports[`ebay-page-notice rendering renders simple usage with id story correctly 1`] = `
|
|
101
|
+
<svg
|
|
102
|
+
aria-label="Success"
|
|
103
|
+
class="icon icon--16 icon--confirmation-filled"
|
|
104
|
+
focusable="false"
|
|
105
|
+
role="img"
|
|
106
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
107
|
+
>
|
|
108
|
+
<use
|
|
109
|
+
xlink:href="#icon-confirmation-filled-16"
|
|
110
|
+
/>
|
|
111
|
+
</svg>
|
|
112
|
+
`;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { act, render } from '@testing-library/react'
|
|
3
|
+
import userEvent from '@testing-library/user-event'
|
|
4
|
+
import { EbayNoticeContent, EbayPageNotice, EbayPageNoticeTitle } from '../index'
|
|
5
|
+
|
|
6
|
+
jest.mock('../../common/random-id')
|
|
7
|
+
|
|
8
|
+
const clickEvent = expect.objectContaining({ type: 'click' })
|
|
9
|
+
const keyDownEvent = expect.objectContaining({ type: 'keydown' })
|
|
10
|
+
|
|
11
|
+
describe('<EbayPageNotice>', () => {
|
|
12
|
+
describe('when a page title exists', () => {
|
|
13
|
+
it('should render the title within the notice content', () => {
|
|
14
|
+
const noticeContentSelector = 'div.page-notice__main'
|
|
15
|
+
const wrapper = render(
|
|
16
|
+
<EbayPageNotice status="confirmation">
|
|
17
|
+
<EbayNoticeContent>
|
|
18
|
+
<EbayPageNoticeTitle>Here is the title</EbayPageNoticeTitle>
|
|
19
|
+
<p id="details">Here is some details</p>
|
|
20
|
+
</EbayNoticeContent>
|
|
21
|
+
</EbayPageNotice>
|
|
22
|
+
)
|
|
23
|
+
expect(wrapper.container.querySelector(noticeContentSelector)).toBeTruthy()
|
|
24
|
+
expect(wrapper.container.querySelector(`${noticeContentSelector} > p#details`)).toBeTruthy()
|
|
25
|
+
expect(wrapper.getByText('Here is the title')).toBeTruthy()
|
|
26
|
+
})
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
describe('when aria-label is given', () => {
|
|
30
|
+
it('should add the text to the icon as an aria-label', () => {
|
|
31
|
+
const wrapper = render(
|
|
32
|
+
<EbayPageNotice status="confirmation" aria-label="Success Confirmation">
|
|
33
|
+
<EbayNoticeContent>
|
|
34
|
+
<p>You did it.</p>
|
|
35
|
+
</EbayNoticeContent>
|
|
36
|
+
</EbayPageNotice>
|
|
37
|
+
)
|
|
38
|
+
expect(wrapper.container.querySelector('svg')).toHaveAttribute('role', 'img')
|
|
39
|
+
})
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
describe('on using the notice with no content', () => {
|
|
43
|
+
it('should throw an error', () => {
|
|
44
|
+
jest.spyOn(console, 'error').mockImplementation(() => null)
|
|
45
|
+
expect(() => {
|
|
46
|
+
render(<EbayPageNotice />)
|
|
47
|
+
}).toThrowError(`EbayPageNotice: Please use a EbayNoticeContent that defines the content of the notice`);
|
|
48
|
+
(console.error as jest.Mock).mockRestore()
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
describe('when allyDismissText is provided...', () => {
|
|
53
|
+
let wrapper
|
|
54
|
+
let dismissButton
|
|
55
|
+
const dismissMock = jest.fn()
|
|
56
|
+
|
|
57
|
+
beforeEach(async () => {
|
|
58
|
+
wrapper = render(
|
|
59
|
+
<EbayPageNotice status="information" aria-label="Information" a11yDismissText="Close" onDismiss={dismissMock}>
|
|
60
|
+
<EbayNoticeContent>
|
|
61
|
+
<p>Content</p>
|
|
62
|
+
</EbayNoticeContent>
|
|
63
|
+
</EbayPageNotice>
|
|
64
|
+
)
|
|
65
|
+
dismissButton = await wrapper.getByRole('button', { name: 'Close' })
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
it('should add a close button with the provided label.', () => {
|
|
69
|
+
expect(dismissButton).not.toBeNull()
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
it('should hide the notice when the dismiss button is clicked.', async () => {
|
|
73
|
+
expect(wrapper.getByRole('region', { name: 'Information' })).toBeVisible()
|
|
74
|
+
act(() => {
|
|
75
|
+
dismissButton.click()
|
|
76
|
+
})
|
|
77
|
+
expect(wrapper.queryByRole('region', { name: 'Information' })).toBeNull()
|
|
78
|
+
expect(dismissMock).toHaveBeenCalledWith(clickEvent)
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it('should hide the notice when the user focuses the dismiss button and presses space', async () => {
|
|
82
|
+
expect(wrapper.getByRole('region', { name: 'Information' })).toBeVisible()
|
|
83
|
+
await dismissButton.focus()
|
|
84
|
+
act(() => {
|
|
85
|
+
userEvent.type(dismissButton, ' ')
|
|
86
|
+
})
|
|
87
|
+
expect(wrapper.queryByRole('region', { name: 'Information' })).toBeNull()
|
|
88
|
+
expect(dismissMock).toHaveBeenCalled()
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
})
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import {
|
|
3
|
+
EbayPageNotice,
|
|
4
|
+
EbayNoticeContent,
|
|
5
|
+
EbayPageNoticeTitle,
|
|
6
|
+
EbayPageNoticeFooter,
|
|
7
|
+
EbayPageNoticeCTA
|
|
8
|
+
} from '..'
|
|
9
|
+
import { action } from '@storybook/addon-actions'
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
title: 'notices & tips/ebay-page-notice'
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const SimpleUsage = () => (
|
|
16
|
+
<>
|
|
17
|
+
<EbayPageNotice aria-label="Default">
|
|
18
|
+
<EbayNoticeContent>text message</EbayNoticeContent>
|
|
19
|
+
</EbayPageNotice>
|
|
20
|
+
</>
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
export const SimpleUsageWithId = () => (
|
|
24
|
+
<>
|
|
25
|
+
<EbayPageNotice status="confirmation" aria-label="Success" id="main-page-notice">
|
|
26
|
+
<EbayNoticeContent>text message</EbayNoticeContent>
|
|
27
|
+
</EbayPageNotice>
|
|
28
|
+
</>
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
export const ConfirmationMessage = () => (
|
|
32
|
+
<>
|
|
33
|
+
<EbayPageNotice status="confirmation" aria-label="Success">
|
|
34
|
+
<EbayNoticeContent>
|
|
35
|
+
<EbayPageNoticeTitle>Congrats!</EbayPageNoticeTitle>
|
|
36
|
+
<p>
|
|
37
|
+
You just listed <a href="#">Spam and Eggs From the Cows Perspective</a> (paperback).
|
|
38
|
+
</p>
|
|
39
|
+
</EbayNoticeContent>
|
|
40
|
+
</EbayPageNotice>
|
|
41
|
+
</>
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
export const InformationMessage = () => (
|
|
45
|
+
<>
|
|
46
|
+
<EbayPageNotice status="information" aria-label="Information">
|
|
47
|
+
<EbayNoticeContent>
|
|
48
|
+
<EbayPageNoticeTitle>Good news!</EbayPageNoticeTitle>
|
|
49
|
+
<p>
|
|
50
|
+
You get free shipping on your next pair of shoes! <a href="#">Learn more</a>.
|
|
51
|
+
</p>
|
|
52
|
+
</EbayNoticeContent>
|
|
53
|
+
</EbayPageNotice>
|
|
54
|
+
</>
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
export const AttentionMessage = () => (
|
|
58
|
+
<>
|
|
59
|
+
<EbayPageNotice status="attention" aria-label="Attention">
|
|
60
|
+
<EbayNoticeContent>
|
|
61
|
+
<EbayPageNoticeTitle>Error.</EbayPageNoticeTitle>
|
|
62
|
+
<p>
|
|
63
|
+
Please take another look at the following:
|
|
64
|
+
<br />
|
|
65
|
+
<a href="#">Card number</a>, <a href="#">Expiration date</a> &{' '}
|
|
66
|
+
<a href="#">Security code</a>.
|
|
67
|
+
</p>
|
|
68
|
+
</EbayNoticeContent>
|
|
69
|
+
</EbayPageNotice>
|
|
70
|
+
</>
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
export const MessageWithFooter = () => (
|
|
74
|
+
<>
|
|
75
|
+
<EbayPageNotice status="confirmation" aria-label="Congratulations">
|
|
76
|
+
<EbayNoticeContent>
|
|
77
|
+
<EbayPageNoticeTitle>Your order's in!</EbayPageNoticeTitle>
|
|
78
|
+
<p>We'll email updates to jonsnow@gmail.com. You should get it by Thu, Sept 22.</p>
|
|
79
|
+
</EbayNoticeContent>
|
|
80
|
+
<EbayPageNoticeFooter>
|
|
81
|
+
<a href="https://ebay.com">Action</a>
|
|
82
|
+
</EbayPageNoticeFooter>
|
|
83
|
+
</EbayPageNotice>
|
|
84
|
+
</>
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
export const DismissibleNotice = () => (
|
|
88
|
+
<>
|
|
89
|
+
<EbayPageNotice
|
|
90
|
+
status="information"
|
|
91
|
+
aria-label="Information"
|
|
92
|
+
a11yDismissText="Close"
|
|
93
|
+
onDismiss={(e) => action('onDismiss')(e)}
|
|
94
|
+
>
|
|
95
|
+
<EbayNoticeContent>
|
|
96
|
+
<EbayPageNoticeTitle>Good news!</EbayPageNoticeTitle>
|
|
97
|
+
<p>
|
|
98
|
+
You get free shipping on your next pair of shoes! <a href="#">Learn more</a>.
|
|
99
|
+
</p>
|
|
100
|
+
</EbayNoticeContent>
|
|
101
|
+
</EbayPageNotice>
|
|
102
|
+
</>
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
export const DismissibleMessageWithCta = () => (
|
|
106
|
+
<>
|
|
107
|
+
<EbayPageNotice status="information" aria-label="Congratulations" a11yDismissText="Close">
|
|
108
|
+
<EbayNoticeContent>
|
|
109
|
+
<EbayPageNoticeTitle>Your order's in!</EbayPageNoticeTitle>
|
|
110
|
+
<p>We'll email updates to jonsnow@gmail.com. You should get it by Thu, Sept 22.</p>
|
|
111
|
+
</EbayNoticeContent>
|
|
112
|
+
<EbayPageNoticeCTA>
|
|
113
|
+
<a href="https://ebay.com">Action</a>
|
|
114
|
+
</EbayPageNoticeCTA>
|
|
115
|
+
</EbayPageNotice>
|
|
116
|
+
</>
|
|
117
|
+
)
|