@ebay/ui-core-react 8.5.2 → 8.6.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/README.md +103 -84
- package/common/__mocks__/random-id.d.ts.map +1 -1
- package/common/component-utils/forwardRef.d.ts +1 -1
- package/common/component-utils/forwardRef.d.ts.map +1 -1
- package/common/component-utils/index.d.ts +2 -2
- package/common/component-utils/index.d.ts.map +1 -1
- package/common/component-utils/utils.d.ts +2 -2
- package/common/component-utils/utils.d.ts.map +1 -1
- package/common/debounce.d.ts.map +1 -1
- package/common/dropdown.d.ts +10 -10
- package/common/dropdown.d.ts.map +1 -1
- 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 +4 -4
- package/common/event-utils/types.d.ts.map +1 -1
- package/common/event-utils/use-key-press.d.ts.map +1 -1
- package/common/event-utils/use-roving-index.d.ts +1 -1
- package/common/event-utils/use-roving-index.d.ts.map +1 -1
- package/common/floating-label-utils/hooks.d.ts +6 -6
- package/common/floating-label-utils/hooks.d.ts.map +1 -1
- package/common/notice-utils/notice-content.d.ts +2 -2
- package/common/notice-utils/notice-content.d.ts.map +1 -1
- package/common/notice-utils/notice-cta.d.ts +2 -2
- package/common/notice-utils/notice-cta.d.ts.map +1 -1
- package/common/notice-utils/notice-footer.d.ts +2 -2
- package/common/notice-utils/notice-footer.d.ts.map +1 -1
- package/common/notice-utils/notice-title.d.ts +3 -3
- package/common/notice-utils/notice-title.d.ts.map +1 -1
- package/common/random-id.d.ts.map +1 -1
- package/common/range.d.ts.map +1 -1
- package/common/tooltip-utils/constants.d.ts +2 -2
- package/common/tooltip-utils/constants.d.ts.map +1 -1
- package/common/tooltip-utils/index.d.ts +7 -7
- package/common/tooltip-utils/index.d.ts.map +1 -1
- package/common/tooltip-utils/tooltip-close-button.d.ts +1 -1
- package/common/tooltip-utils/tooltip-close-button.d.ts.map +1 -1
- package/common/tooltip-utils/tooltip-content.d.ts +2 -2
- package/common/tooltip-utils/tooltip-content.d.ts.map +1 -1
- package/common/tooltip-utils/tooltip-footer.d.ts +2 -2
- package/common/tooltip-utils/tooltip-footer.d.ts.map +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.d.ts +3 -3
- package/common/tooltip-utils/tooltip.d.ts.map +1 -1
- 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 +1 -1
- package/common/tooltip-utils/use-tooltip.d.ts.map +1 -1
- package/dialog-previous-button-B1dTCOv2.js +1 -0
- package/ebay-accordion/accordion.d.ts +5 -5
- package/ebay-accordion/accordion.d.ts.map +1 -1
- package/ebay-accordion/index.d.ts +2 -2
- package/ebay-accordion/index.d.ts.map +1 -1
- package/ebay-accordion/index.js +2 -2
- package/ebay-alert-dialog/README.md +14 -11
- package/ebay-alert-dialog/alert-dialog.d.ts +2 -2
- package/ebay-alert-dialog/alert-dialog.d.ts.map +1 -1
- package/ebay-alert-dialog/index.d.ts +1 -1
- package/ebay-alert-dialog/index.d.ts.map +1 -1
- package/ebay-alert-dialog/index.js +1 -1
- package/ebay-avatar/avatar-image.d.ts +2 -2
- package/ebay-avatar/avatar-image.d.ts.map +1 -1
- package/ebay-avatar/avatar.d.ts +3 -3
- package/ebay-avatar/avatar.d.ts.map +1 -1
- package/ebay-avatar/index.d.ts +3 -3
- package/ebay-avatar/index.d.ts.map +1 -1
- package/ebay-avatar/types.d.ts +1 -1
- package/ebay-avatar/utils.d.ts +1 -1
- package/ebay-avatar/utils.d.ts.map +1 -1
- package/ebay-badge/README.md +13 -8
- package/ebay-badge/badge.d.ts +3 -3
- package/ebay-badge/badge.d.ts.map +1 -1
- package/ebay-badge/index.d.ts +1 -1
- package/ebay-badge/index.d.ts.map +1 -1
- package/ebay-breadcrumbs/README.md +18 -13
- package/ebay-breadcrumbs/breadcrumb-item.d.ts +3 -3
- package/ebay-breadcrumbs/breadcrumb-item.d.ts.map +1 -1
- package/ebay-breadcrumbs/breadcrumbs.d.ts +3 -3
- package/ebay-breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/ebay-breadcrumbs/index.d.ts +2 -2
- package/ebay-breadcrumbs/index.d.ts.map +1 -1
- package/ebay-button/README.md +34 -23
- package/ebay-button/button-cell.d.ts +3 -3
- package/ebay-button/button-cell.d.ts.map +1 -1
- package/ebay-button/button-expand.d.ts +1 -1
- package/ebay-button/button-expand.d.ts.map +1 -1
- package/ebay-button/button-loading.d.ts +1 -1
- package/ebay-button/button-loading.d.ts.map +1 -1
- package/ebay-button/button-text.d.ts +2 -2
- package/ebay-button/button-text.d.ts.map +1 -1
- package/ebay-button/button.d.ts +3 -3
- package/ebay-button/button.d.ts.map +1 -1
- package/ebay-button/index.d.ts +3 -3
- package/ebay-button/index.d.ts.map +1 -1
- package/ebay-button/types.d.ts +5 -5
- package/ebay-button/types.d.ts.map +1 -1
- package/ebay-calendar/README.md +23 -20
- package/ebay-calendar/calendar.d.ts +2 -2
- package/ebay-calendar/calendar.d.ts.map +1 -1
- package/ebay-calendar/date-utils.d.ts +1 -1
- package/ebay-calendar/date-utils.d.ts.map +1 -1
- package/ebay-calendar/index.d.ts +1 -1
- package/ebay-calendar/index.d.ts.map +1 -1
- package/ebay-carousel/README.md +21 -22
- package/ebay-carousel/carousel-control-button.d.ts +2 -2
- package/ebay-carousel/carousel-control-button.d.ts.map +1 -1
- package/ebay-carousel/carousel-item.d.ts +3 -3
- package/ebay-carousel/carousel-item.d.ts.map +1 -1
- package/ebay-carousel/carousel-list.d.ts +2 -2
- package/ebay-carousel/carousel-list.d.ts.map +1 -1
- package/ebay-carousel/carousel.d.ts +2 -2
- package/ebay-carousel/carousel.d.ts.map +1 -1
- package/ebay-carousel/helpers.d.ts +5 -5
- package/ebay-carousel/helpers.d.ts.map +1 -1
- package/ebay-carousel/index.d.ts +2 -2
- package/ebay-carousel/index.d.ts.map +1 -1
- package/ebay-carousel/index.js +1 -1
- package/ebay-carousel/scroll-to-transition.d.ts.map +1 -1
- package/ebay-carousel/types.d.ts +5 -5
- package/ebay-carousel/types.d.ts.map +1 -1
- package/ebay-ccd/README.md +11 -17
- package/ebay-ccd/ccd.d.ts +4 -4
- package/ebay-ccd/ccd.d.ts.map +1 -1
- package/ebay-ccd/index.d.ts +1 -1
- package/ebay-character-count/README.md +6 -6
- package/ebay-character-count/character-count.d.ts +3 -3
- package/ebay-character-count/character-count.d.ts.map +1 -1
- package/ebay-character-count/index.d.ts +2 -2
- package/ebay-checkbox/README.md +14 -9
- package/ebay-checkbox/checkbox.d.ts +3 -3
- package/ebay-checkbox/checkbox.d.ts.map +1 -1
- package/ebay-checkbox/index.d.ts +2 -2
- package/ebay-checkbox/index.d.ts.map +1 -1
- package/ebay-checkbox/types.d.ts +2 -2
- package/ebay-checkbox/types.d.ts.map +1 -1
- package/ebay-chip/README.md +6 -10
- package/ebay-chip/chip.d.ts +3 -3
- package/ebay-chip/chip.d.ts.map +1 -1
- package/ebay-chip/index.d.ts +1 -1
- package/ebay-chip/index.d.ts.map +1 -1
- package/ebay-chips-combobox/chips-combobox.d.ts +4 -4
- package/ebay-chips-combobox/chips-combobox.d.ts.map +1 -1
- package/ebay-chips-combobox/index.d.ts +3 -3
- package/ebay-chips-combobox/index.d.ts.map +1 -1
- package/ebay-chips-combobox/types.d.ts +1 -1
- package/ebay-chips-combobox/types.d.ts.map +1 -1
- package/ebay-combobox/combobox-button.d.ts +2 -2
- package/ebay-combobox/combobox-button.d.ts.map +1 -1
- package/ebay-combobox/combobox-option.d.ts +2 -2
- package/ebay-combobox/combobox-option.d.ts.map +1 -1
- package/ebay-combobox/combobox.d.ts +3 -3
- package/ebay-combobox/combobox.d.ts.map +1 -1
- package/ebay-combobox/index.d.ts +4 -4
- package/ebay-combobox/index.d.ts.map +1 -1
- package/ebay-combobox/types.d.ts +4 -4
- package/ebay-combobox/types.d.ts.map +1 -1
- package/ebay-confirm-dialog/README.md +17 -13
- package/ebay-confirm-dialog/confirm-dialog.d.ts +3 -3
- package/ebay-confirm-dialog/confirm-dialog.d.ts.map +1 -1
- package/ebay-confirm-dialog/index.d.ts +1 -1
- package/ebay-confirm-dialog/index.d.ts.map +1 -1
- package/ebay-confirm-dialog/index.js +1 -1
- package/ebay-cta-button/README.md +15 -9
- 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/index.d.ts +1 -1
- package/ebay-cta-button/index.d.ts.map +1 -1
- package/ebay-date-textbox/README.md +25 -24
- package/ebay-date-textbox/date-textbox.d.ts +4 -4
- package/ebay-date-textbox/date-textbox.d.ts.map +1 -1
- package/ebay-date-textbox/index.d.ts +1 -1
- package/ebay-date-textbox/index.d.ts.map +1 -1
- package/ebay-details/ebay-details.d.ts +5 -6
- package/ebay-details/ebay-details.d.ts.map +1 -1
- package/ebay-details/index.d.ts +1 -1
- package/ebay-details/index.d.ts.map +1 -1
- package/ebay-details/index.js +1 -1
- package/ebay-details-BuPepKYE.js +1 -0
- package/ebay-dialog-base/README.md +2 -6
- package/ebay-dialog-base/components/animation.d.ts +2 -2
- package/ebay-dialog-base/components/animation.d.ts.map +1 -1
- 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-close-button.d.ts +1 -1
- package/ebay-dialog-base/components/dialog-close-button.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 +2 -2
- package/ebay-dialog-base/components/dialog-header.d.ts.map +1 -1
- package/ebay-dialog-base/components/dialog-previous-button.d.ts +2 -2
- package/ebay-dialog-base/components/dialog-previous-button.d.ts.map +1 -1
- package/ebay-dialog-base/components/dialogBase.d.ts +8 -8
- package/ebay-dialog-base/components/dialogBase.d.ts.map +1 -1
- package/ebay-dialog-base/dialog-base-with-state.d.ts +2 -2
- package/ebay-dialog-base/dialog-base-with-state.d.ts.map +1 -1
- package/ebay-dialog-base/index.d.ts +9 -9
- package/ebay-dialog-base/index.d.ts.map +1 -1
- package/ebay-dialog-base/index.js +1 -1
- package/ebay-dialog-base/types.d.ts +1 -1
- package/ebay-dialog-base/types.d.ts.map +1 -1
- package/ebay-drawer-dialog-deprecated/README.md +18 -8
- package/ebay-drawer-dialog-deprecated/components/drawer.d.ts +2 -2
- package/ebay-drawer-dialog-deprecated/components/drawer.d.ts.map +1 -1
- package/ebay-drawer-dialog-deprecated/index.d.ts +1 -1
- package/ebay-drawer-dialog-deprecated/index.d.ts.map +1 -1
- package/ebay-drawer-dialog-deprecated/index.js +1 -1
- package/ebay-education-notice/README.md +6 -9
- package/ebay-education-notice/education-notice-footer.d.ts +1 -1
- package/ebay-education-notice/education-notice-footer.d.ts.map +1 -1
- package/ebay-education-notice/education-notice-title.d.ts +2 -2
- package/ebay-education-notice/education-notice-title.d.ts.map +1 -1
- package/ebay-education-notice/education-notice.d.ts +6 -6
- package/ebay-education-notice/education-notice.d.ts.map +1 -1
- package/ebay-education-notice/index.d.ts +4 -4
- package/ebay-education-notice/index.d.ts.map +1 -1
- package/ebay-education-notice/types.d.ts +1 -1
- package/ebay-education-notice/types.d.ts.map +1 -1
- package/ebay-eek/README.md +13 -8
- package/ebay-eek/eek-rating.d.ts +1 -1
- package/ebay-eek/eek-rating.d.ts.map +1 -1
- package/ebay-eek/eek-util.d.ts +1 -1
- package/ebay-eek/eek-util.d.ts.map +1 -1
- package/ebay-eek/index.d.ts +1 -1
- package/ebay-eek/index.d.ts.map +1 -1
- package/ebay-fake-link/fake-link.d.ts +4 -4
- package/ebay-fake-link/fake-link.d.ts.map +1 -1
- package/ebay-fake-link/index.d.ts +1 -1
- package/ebay-fake-link/index.d.ts.map +1 -1
- package/ebay-fake-menu/README.md +23 -15
- package/ebay-fake-menu/index.d.ts +3 -3
- package/ebay-fake-menu/index.d.ts.map +1 -1
- package/ebay-fake-menu/menu-item-separator.d.ts +2 -2
- package/ebay-fake-menu/menu-item-separator.d.ts.map +1 -1
- package/ebay-fake-menu/menu-item.d.ts +3 -3
- package/ebay-fake-menu/menu-item.d.ts.map +1 -1
- package/ebay-fake-menu/menu.d.ts +3 -3
- package/ebay-fake-menu/menu.d.ts.map +1 -1
- package/ebay-fake-menu-button/README.md +34 -31
- package/ebay-fake-menu-button/index.d.ts +4 -4
- package/ebay-fake-menu-button/index.d.ts.map +1 -1
- package/ebay-fake-menu-button/menu-button-item.d.ts +2 -2
- package/ebay-fake-menu-button/menu-button-item.d.ts.map +1 -1
- package/ebay-fake-menu-button/menu-button-label.d.ts +1 -1
- package/ebay-fake-menu-button/menu-button-label.d.ts.map +1 -1
- package/ebay-fake-menu-button/menu-button-separator.d.ts +2 -2
- package/ebay-fake-menu-button/menu-button-separator.d.ts.map +1 -1
- package/ebay-fake-menu-button/menu-button.d.ts +5 -5
- package/ebay-fake-menu-button/menu-button.d.ts.map +1 -1
- package/ebay-fake-tabs/README.md +14 -9
- package/ebay-fake-tabs/fake-tabs.d.ts +2 -2
- package/ebay-fake-tabs/fake-tabs.d.ts.map +1 -1
- package/ebay-fake-tabs/index.d.ts +2 -2
- package/ebay-fake-tabs/index.d.ts.map +1 -1
- package/ebay-fake-tabs/tab.d.ts +3 -3
- package/ebay-fake-tabs/tab.d.ts.map +1 -1
- package/ebay-field/README.md +30 -21
- package/ebay-field/description.d.ts +3 -3
- package/ebay-field/description.d.ts.map +1 -1
- package/ebay-field/field.d.ts +2 -2
- package/ebay-field/field.d.ts.map +1 -1
- package/ebay-field/index.d.ts +4 -4
- package/ebay-field/index.d.ts.map +1 -1
- package/ebay-field/label.d.ts +3 -3
- package/ebay-field/label.d.ts.map +1 -1
- package/ebay-field/types.d.ts +4 -4
- package/ebay-field/types.d.ts.map +1 -1
- package/ebay-file-input/README.md +4 -8
- package/ebay-file-input/file-input.d.ts +3 -3
- package/ebay-file-input/file-input.d.ts.map +1 -1
- package/ebay-file-input/index.d.ts +1 -1
- package/ebay-file-input/index.d.ts.map +1 -1
- package/ebay-file-input/types.d.ts +1 -1
- package/ebay-file-preview-card/README.md +25 -8
- package/ebay-file-preview-card/ebay-file-preview-card-action.d.ts +6 -0
- package/ebay-file-preview-card/ebay-file-preview-card-action.d.ts.map +1 -0
- package/ebay-file-preview-card/file-preview-action.d.ts +10 -7
- package/ebay-file-preview-card/file-preview-action.d.ts.map +1 -1
- package/ebay-file-preview-card/file-preview-card.d.ts +9 -7
- package/ebay-file-preview-card/file-preview-card.d.ts.map +1 -1
- package/ebay-file-preview-card/file-preview-content.d.ts +3 -3
- package/ebay-file-preview-card/file-preview-content.d.ts.map +1 -1
- package/ebay-file-preview-card/file-preview-label.d.ts +2 -2
- package/ebay-file-preview-card/file-preview-label.d.ts.map +1 -1
- package/ebay-file-preview-card/index.d.ts +3 -2
- package/ebay-file-preview-card/index.d.ts.map +1 -1
- package/ebay-file-preview-card/index.js +1 -1
- package/ebay-file-preview-card/types.d.ts +2 -2
- package/ebay-file-preview-card/types.d.ts.map +1 -1
- package/ebay-file-preview-card-group/README.md +5 -4
- package/ebay-file-preview-card-group/file-preview-card-group.d.ts +6 -5
- package/ebay-file-preview-card-group/file-preview-card-group.d.ts.map +1 -1
- package/ebay-file-preview-card-group/index.d.ts +1 -1
- package/ebay-file-preview-card-group/index.d.ts.map +1 -1
- package/ebay-file-preview-card-group/index.js +1 -1
- package/ebay-file-preview-card-group/types.d.ts +2 -2
- package/ebay-file-preview-card-group/types.d.ts.map +1 -1
- package/ebay-filter/filter.d.ts +3 -3
- package/ebay-filter/filter.d.ts.map +1 -1
- package/ebay-filter/index.d.ts +2 -2
- package/ebay-filter/index.d.ts.map +1 -1
- package/ebay-filter/types.d.ts +1 -1
- package/ebay-filter/types.d.ts.map +1 -1
- package/ebay-filter-menu/filter-menu-footer-button.d.ts +4 -4
- package/ebay-filter-menu/filter-menu-footer-button.d.ts.map +1 -1
- package/ebay-filter-menu/filter-menu-item.d.ts +4 -4
- package/ebay-filter-menu/filter-menu-item.d.ts.map +1 -1
- package/ebay-filter-menu/filter-menu.d.ts +3 -3
- package/ebay-filter-menu/filter-menu.d.ts.map +1 -1
- package/ebay-filter-menu/index.d.ts +4 -4
- package/ebay-filter-menu/index.d.ts.map +1 -1
- package/ebay-filter-menu/types.d.ts +3 -3
- package/ebay-filter-menu/types.d.ts.map +1 -1
- package/ebay-filter-menu-button/README.md +5 -5
- package/ebay-filter-menu-button/filter-menu-button.d.ts +2 -2
- package/ebay-filter-menu-button/filter-menu-button.d.ts.map +1 -1
- package/ebay-filter-menu-button/index.d.ts +2 -2
- package/ebay-filter-menu-button/index.d.ts.map +1 -1
- package/ebay-fullscreen-dialog-deprecated/README.md +13 -10
- package/ebay-fullscreen-dialog-deprecated/fullscreen-dialog.d.ts +3 -3
- package/ebay-fullscreen-dialog-deprecated/fullscreen-dialog.d.ts.map +1 -1
- package/ebay-fullscreen-dialog-deprecated/index.d.ts +1 -1
- package/ebay-fullscreen-dialog-deprecated/index.d.ts.map +1 -1
- package/ebay-fullscreen-dialog-deprecated/index.js +1 -1
- package/ebay-icon/README.md +13 -9
- package/ebay-icon/icon.d.ts +5 -5
- package/ebay-icon/icon.d.ts.map +1 -1
- package/ebay-icon/index.d.ts +2 -2
- package/ebay-icon/index.d.ts.map +1 -1
- package/ebay-icon-button/README.md +23 -15
- 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/index.d.ts +1 -1
- package/ebay-icon-button/index.d.ts.map +1 -1
- package/ebay-image-placeholder/README.md +1 -6
- package/ebay-image-placeholder/image-placeholder.d.ts +1 -1
- package/ebay-image-placeholder/image-placeholder.d.ts.map +1 -1
- package/ebay-image-placeholder/index.d.ts +1 -1
- package/ebay-image-placeholder/index.d.ts.map +1 -1
- package/ebay-infotip/README.md +17 -20
- package/ebay-infotip/ebay-infotip-content.d.ts +3 -3
- package/ebay-infotip/ebay-infotip-content.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip-heading.d.ts +2 -2
- package/ebay-infotip/ebay-infotip-heading.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip-host.d.ts +4 -4
- package/ebay-infotip/ebay-infotip-host.d.ts.map +1 -1
- package/ebay-infotip/ebay-infotip.d.ts +5 -5
- package/ebay-infotip/ebay-infotip.d.ts.map +1 -1
- package/ebay-infotip/index.d.ts +5 -5
- package/ebay-infotip/index.d.ts.map +1 -1
- package/ebay-infotip/index.js +1 -1
- package/ebay-infotip/types.d.ts +1 -1
- package/ebay-infotip/types.d.ts.map +1 -1
- package/ebay-inline-notice/README.md +8 -8
- package/ebay-inline-notice/index.d.ts +3 -3
- package/ebay-inline-notice/index.d.ts.map +1 -1
- package/ebay-inline-notice/inline-notice.d.ts +4 -4
- package/ebay-inline-notice/inline-notice.d.ts.map +1 -1
- package/ebay-inline-notice/types.d.ts +1 -1
- package/ebay-inline-notice/types.d.ts.map +1 -1
- package/ebay-lightbox-dialog/README.md +17 -13
- package/ebay-lightbox-dialog/index.d.ts +1 -1
- package/ebay-lightbox-dialog/index.d.ts.map +1 -1
- package/ebay-lightbox-dialog/index.js +1 -1
- package/ebay-lightbox-dialog/lightbox-dialog.d.ts +7 -7
- package/ebay-lightbox-dialog/lightbox-dialog.d.ts.map +1 -1
- package/ebay-listbox/README.md +16 -26
- package/ebay-listbox/index.d.ts +3 -3
- package/ebay-listbox/index.d.ts.map +1 -1
- package/ebay-listbox/listbox-option-description.d.ts +2 -2
- package/ebay-listbox/listbox-option-description.d.ts.map +1 -1
- package/ebay-listbox/listbox-option.d.ts +2 -2
- package/ebay-listbox/listbox-option.d.ts.map +1 -1
- package/ebay-listbox/listbox.d.ts +5 -5
- package/ebay-listbox/listbox.d.ts.map +1 -1
- package/ebay-listbox-button/README.md +17 -9
- package/ebay-listbox-button/index.d.ts +2 -2
- package/ebay-listbox-button/index.d.ts.map +1 -1
- package/ebay-listbox-button/listbox-button-option.d.ts +3 -3
- package/ebay-listbox-button/listbox-button-option.d.ts.map +1 -1
- package/ebay-listbox-button/listbox-button.d.ts +3 -3
- package/ebay-listbox-button/listbox-button.d.ts.map +1 -1
- package/ebay-menu/README.md +24 -20
- package/ebay-menu/index.d.ts +4 -4
- package/ebay-menu/index.d.ts.map +1 -1
- package/ebay-menu/menu-item-separator.d.ts +2 -2
- package/ebay-menu/menu-item-separator.d.ts.map +1 -1
- package/ebay-menu/menu-item.d.ts +3 -3
- package/ebay-menu/menu-item.d.ts.map +1 -1
- package/ebay-menu/menu.d.ts +2 -2
- package/ebay-menu/menu.d.ts.map +1 -1
- package/ebay-menu/types.d.ts +7 -7
- package/ebay-menu/types.d.ts.map +1 -1
- package/ebay-menu-button/README.md +33 -30
- package/ebay-menu-button/index.d.ts +5 -5
- package/ebay-menu-button/index.d.ts.map +1 -1
- package/ebay-menu-button/menu-button-item.d.ts +1 -1
- package/ebay-menu-button/menu-button-item.d.ts.map +1 -1
- package/ebay-menu-button/menu-button-label.d.ts +1 -1
- package/ebay-menu-button/menu-button-label.d.ts.map +1 -1
- package/ebay-menu-button/menu-button-separator.d.ts +2 -2
- package/ebay-menu-button/menu-button-separator.d.ts.map +1 -1
- package/ebay-menu-button/menu-button.d.ts +2 -2
- package/ebay-menu-button/menu-button.d.ts.map +1 -1
- package/ebay-menu-button/types.d.ts +6 -6
- package/ebay-menu-button/types.d.ts.map +1 -1
- package/ebay-notice-base/components/ebay-notice-content/index.d.ts +1 -1
- package/ebay-notice-base/components/ebay-notice-content/index.d.ts.map +1 -1
- package/ebay-notice-base/components/ebay-notice-content/notice-content.d.ts +3 -3
- package/ebay-notice-base/components/ebay-notice-content/notice-content.d.ts.map +1 -1
- package/ebay-notice-base/components/ebay-notice-title/index.d.ts +1 -1
- package/ebay-notice-base/components/ebay-notice-title/index.d.ts.map +1 -1
- package/ebay-notice-base/components/ebay-notice-title/notice-title.d.ts +1 -1
- package/ebay-notice-base/components/ebay-notice-title/notice-title.d.ts.map +1 -1
- package/ebay-notice-base/index.d.ts +2 -2
- package/ebay-notice-base/index.d.ts.map +1 -1
- package/ebay-page-notice/README.md +13 -11
- package/ebay-page-notice/index.d.ts +5 -5
- package/ebay-page-notice/index.d.ts.map +1 -1
- 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 +2 -2
- package/ebay-page-notice/page-notice-title.d.ts.map +1 -1
- package/ebay-page-notice/page-notice.d.ts +4 -4
- package/ebay-page-notice/page-notice.d.ts.map +1 -1
- package/ebay-pagination/README.md +29 -23
- package/ebay-pagination/const.d.ts.map +1 -1
- package/ebay-pagination/helpers.d.ts +1 -1
- package/ebay-pagination/helpers.d.ts.map +1 -1
- package/ebay-pagination/index.d.ts +3 -3
- package/ebay-pagination/index.d.ts.map +1 -1
- package/ebay-pagination/pagination-item.d.ts +4 -4
- package/ebay-pagination/pagination-item.d.ts.map +1 -1
- package/ebay-pagination/pagination.d.ts +4 -4
- package/ebay-pagination/pagination.d.ts.map +1 -1
- package/ebay-pagination/types.d.ts +2 -2
- package/ebay-pagination/types.d.ts.map +1 -1
- package/ebay-panel-dialog/README.md +14 -11
- package/ebay-panel-dialog/index.d.ts +1 -1
- package/ebay-panel-dialog/index.d.ts.map +1 -1
- package/ebay-panel-dialog/index.js +1 -1
- package/ebay-panel-dialog/panel-dialog.d.ts +4 -4
- package/ebay-panel-dialog/panel-dialog.d.ts.map +1 -1
- package/ebay-progress-bar/README.md +13 -8
- package/ebay-progress-bar/index.d.ts +1 -1
- package/ebay-progress-bar/index.d.ts.map +1 -1
- package/ebay-progress-bar/progress-bar.d.ts +2 -2
- package/ebay-progress-bar/progress-bar.d.ts.map +1 -1
- package/ebay-progress-bar-expressive/README.md +12 -9
- package/ebay-progress-bar-expressive/index.d.ts +2 -2
- package/ebay-progress-bar-expressive/index.d.ts.map +1 -1
- package/ebay-progress-bar-expressive/progress-bar-expressive-message.d.ts +2 -2
- package/ebay-progress-bar-expressive/progress-bar-expressive-message.d.ts.map +1 -1
- package/ebay-progress-bar-expressive/progress-bar-expressive.d.ts +3 -3
- package/ebay-progress-bar-expressive/progress-bar-expressive.d.ts.map +1 -1
- package/ebay-progress-spinner/README.md +12 -7
- package/ebay-progress-spinner/index.d.ts +1 -1
- package/ebay-progress-spinner/index.d.ts.map +1 -1
- package/ebay-progress-spinner/progress-spinner.d.ts +4 -4
- package/ebay-progress-spinner/progress-spinner.d.ts.map +1 -1
- package/ebay-progress-stepper/README.md +13 -12
- package/ebay-progress-stepper/ebay-progress-step.d.ts +2 -2
- package/ebay-progress-stepper/ebay-progress-step.d.ts.map +1 -1
- package/ebay-progress-stepper/ebay-progress-stepper.d.ts +2 -2
- package/ebay-progress-stepper/ebay-progress-stepper.d.ts.map +1 -1
- 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/index.d.ts +4 -4
- package/ebay-progress-stepper/index.d.ts.map +1 -1
- package/ebay-progress-stepper/types.d.ts +2 -2
- package/ebay-radio/README.md +19 -11
- package/ebay-radio/index.d.ts +1 -1
- package/ebay-radio/index.d.ts.map +1 -1
- package/ebay-radio/radio.d.ts +4 -4
- package/ebay-radio/radio.d.ts.map +1 -1
- package/ebay-section-notice/README.md +15 -13
- package/ebay-section-notice/index.d.ts +5 -5
- package/ebay-section-notice/index.d.ts.map +1 -1
- package/ebay-section-notice/section-notice-cta.d.ts +1 -1
- package/ebay-section-notice/section-notice-cta.d.ts.map +1 -1
- 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 +2 -2
- package/ebay-section-notice/section-notice-title.d.ts.map +1 -1
- package/ebay-section-notice/section-notice.d.ts +6 -6
- package/ebay-section-notice/section-notice.d.ts.map +1 -1
- package/ebay-section-title/README.md +23 -16
- package/ebay-section-title/cta.d.ts +2 -2
- package/ebay-section-title/cta.d.ts.map +1 -1
- package/ebay-section-title/index.d.ts +5 -5
- package/ebay-section-title/index.d.ts.map +1 -1
- package/ebay-section-title/info.d.ts +2 -2
- package/ebay-section-title/info.d.ts.map +1 -1
- package/ebay-section-title/overflow.d.ts +2 -2
- package/ebay-section-title/overflow.d.ts.map +1 -1
- package/ebay-section-title/section-title.d.ts +2 -2
- package/ebay-section-title/section-title.d.ts.map +1 -1
- package/ebay-section-title/subtitle.d.ts +2 -2
- package/ebay-section-title/subtitle.d.ts.map +1 -1
- package/ebay-section-title/title.d.ts +2 -2
- package/ebay-section-title/title.d.ts.map +1 -1
- package/ebay-segmented-buttons/README.md +11 -8
- package/ebay-segmented-buttons/button.d.ts +2 -2
- package/ebay-segmented-buttons/button.d.ts.map +1 -1
- package/ebay-segmented-buttons/index.d.ts +3 -3
- package/ebay-segmented-buttons/index.d.ts.map +1 -1
- package/ebay-segmented-buttons/segmented-buttons.d.ts +2 -2
- package/ebay-segmented-buttons/segmented-buttons.d.ts.map +1 -1
- package/ebay-segmented-buttons/types.d.ts +5 -5
- package/ebay-segmented-buttons/types.d.ts.map +1 -1
- package/ebay-select/README.md +38 -27
- package/ebay-select/ebay-select-option.d.ts +2 -2
- package/ebay-select/ebay-select-option.d.ts.map +1 -1
- package/ebay-select/ebay-select.d.ts +4 -4
- package/ebay-select/ebay-select.d.ts.map +1 -1
- package/ebay-select/index.d.ts +2 -2
- package/ebay-select/index.d.ts.map +1 -1
- package/ebay-signal/README.md +13 -6
- package/ebay-signal/index.d.ts +1 -1
- package/ebay-signal/index.d.ts.map +1 -1
- package/ebay-signal/signal.d.ts +3 -3
- package/ebay-signal/signal.d.ts.map +1 -1
- package/ebay-skeleton/ebay-skeleton-avatar.d.ts +2 -2
- package/ebay-skeleton/ebay-skeleton-avatar.d.ts.map +1 -1
- package/ebay-skeleton/ebay-skeleton-button.d.ts +3 -3
- package/ebay-skeleton/ebay-skeleton-button.d.ts.map +1 -1
- package/ebay-skeleton/ebay-skeleton-image.d.ts +2 -2
- package/ebay-skeleton/ebay-skeleton-image.d.ts.map +1 -1
- package/ebay-skeleton/ebay-skeleton-text.d.ts +3 -3
- package/ebay-skeleton/ebay-skeleton-text.d.ts.map +1 -1
- package/ebay-skeleton/ebay-skeleton-textbox.d.ts +2 -2
- package/ebay-skeleton/ebay-skeleton-textbox.d.ts.map +1 -1
- package/ebay-skeleton/ebay-skeleton.d.ts +3 -3
- package/ebay-skeleton/ebay-skeleton.d.ts.map +1 -1
- package/ebay-skeleton/index.d.ts +6 -6
- package/ebay-skeleton/index.d.ts.map +1 -1
- package/ebay-skeleton/types.d.ts +4 -4
- package/ebay-skeleton/types.d.ts.map +1 -1
- package/ebay-snackbar-dialog/README.md +21 -16
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.d.ts +1 -1
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.d.ts.map +1 -1
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog.d.ts +4 -4
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog.d.ts.map +1 -1
- package/ebay-snackbar-dialog/index.d.ts +2 -2
- package/ebay-snackbar-dialog/index.d.ts.map +1 -1
- package/ebay-snackbar-dialog/index.js +1 -1
- package/ebay-split-button/README.md +29 -23
- package/ebay-split-button/index.d.ts +2 -2
- package/ebay-split-button/index.d.ts.map +1 -1
- package/ebay-split-button/split-button.d.ts +2 -2
- package/ebay-split-button/split-button.d.ts.map +1 -1
- package/ebay-split-button/types.d.ts +5 -5
- package/ebay-split-button/types.d.ts.map +1 -1
- package/ebay-star-rating/README.md +13 -7
- package/ebay-star-rating/index.d.ts +1 -1
- package/ebay-star-rating/index.d.ts.map +1 -1
- package/ebay-star-rating/star-rating.d.ts +2 -2
- package/ebay-star-rating/star-rating.d.ts.map +1 -1
- package/ebay-star-rating-select/README.md +20 -14
- package/ebay-star-rating-select/index.d.ts +1 -1
- package/ebay-star-rating-select/index.d.ts.map +1 -1
- package/ebay-star-rating-select/star-rating-select.d.ts +3 -3
- package/ebay-star-rating-select/star-rating-select.d.ts.map +1 -1
- package/ebay-svg/README.md +11 -8
- package/ebay-svg/index.d.ts +1 -1
- package/ebay-svg/index.d.ts.map +1 -1
- package/ebay-svg/svg.d.ts +2 -2
- package/ebay-svg/svg.d.ts.map +1 -1
- package/ebay-switch/README.md +13 -6
- package/ebay-switch/ebay-switch.d.ts +3 -3
- package/ebay-switch/ebay-switch.d.ts.map +1 -1
- package/ebay-switch/index.d.ts +1 -1
- package/ebay-switch/index.d.ts.map +1 -1
- package/ebay-table/index.d.ts +5 -5
- package/ebay-table/index.d.ts.map +1 -1
- package/ebay-table/table-cell.d.ts +3 -3
- package/ebay-table/table-cell.d.ts.map +1 -1
- package/ebay-table/table-header.d.ts +3 -3
- package/ebay-table/table-header.d.ts.map +1 -1
- package/ebay-table/table-row.d.ts +4 -4
- package/ebay-table/table-row.d.ts.map +1 -1
- package/ebay-table/table.d.ts +4 -4
- package/ebay-table/table.d.ts.map +1 -1
- package/ebay-table/types.d.ts +7 -7
- package/ebay-table/types.d.ts.map +1 -1
- package/ebay-tabs/README.md +16 -10
- package/ebay-tabs/index.d.ts +4 -4
- package/ebay-tabs/index.d.ts.map +1 -1
- package/ebay-tabs/tab-panel.d.ts +2 -2
- package/ebay-tabs/tab-panel.d.ts.map +1 -1
- package/ebay-tabs/tab.d.ts +2 -2
- package/ebay-tabs/tab.d.ts.map +1 -1
- package/ebay-tabs/tabs.d.ts +2 -2
- package/ebay-tabs/tabs.d.ts.map +1 -1
- package/ebay-tabs/types.d.ts +4 -4
- package/ebay-tabs/types.d.ts.map +1 -1
- package/ebay-textbox/README.md +38 -29
- package/ebay-textbox/index.d.ts +6 -6
- package/ebay-textbox/index.d.ts.map +1 -1
- package/ebay-textbox/postfix-icon.d.ts +2 -2
- package/ebay-textbox/postfix-icon.d.ts.map +1 -1
- package/ebay-textbox/postfix-text.d.ts +2 -2
- package/ebay-textbox/postfix-text.d.ts.map +1 -1
- package/ebay-textbox/prefix-icon.d.ts +2 -2
- package/ebay-textbox/prefix-icon.d.ts.map +1 -1
- package/ebay-textbox/prefix-text.d.ts +2 -2
- package/ebay-textbox/prefix-text.d.ts.map +1 -1
- package/ebay-textbox/textbox.d.ts +5 -5
- package/ebay-textbox/textbox.d.ts.map +1 -1
- package/ebay-textbox/types.d.ts +6 -6
- package/ebay-textbox/types.d.ts.map +1 -1
- package/ebay-toast-dialog/README.md +7 -6
- package/ebay-toast-dialog/components/toast.d.ts +3 -3
- package/ebay-toast-dialog/components/toast.d.ts.map +1 -1
- package/ebay-toast-dialog/index.d.ts +1 -1
- package/ebay-toast-dialog/index.d.ts.map +1 -1
- package/ebay-toast-dialog/index.js +1 -1
- package/ebay-toggle-button/index.d.ts +2 -2
- package/ebay-toggle-button/index.d.ts.map +1 -1
- package/ebay-toggle-button/toggle-button.d.ts +2 -2
- package/ebay-toggle-button/toggle-button.d.ts.map +1 -1
- package/ebay-toggle-button/types.d.ts +5 -5
- package/ebay-toggle-button/types.d.ts.map +1 -1
- package/ebay-toggle-button-group/README.md +12 -12
- package/ebay-toggle-button-group/index.d.ts +2 -2
- package/ebay-toggle-button-group/index.d.ts.map +1 -1
- package/ebay-toggle-button-group/toggle-button-group.d.ts +2 -2
- package/ebay-toggle-button-group/toggle-button-group.d.ts.map +1 -1
- package/ebay-toggle-button-group/types.d.ts +5 -5
- package/ebay-toggle-button-group/types.d.ts.map +1 -1
- package/ebay-tooltip/README.md +10 -7
- package/ebay-tooltip/ebay-tooltip-content.d.ts +3 -3
- package/ebay-tooltip/ebay-tooltip-content.d.ts.map +1 -1
- package/ebay-tooltip/ebay-tooltip-host.d.ts +3 -3
- package/ebay-tooltip/ebay-tooltip-host.d.ts.map +1 -1
- package/ebay-tooltip/ebay-tooltip.d.ts +3 -3
- package/ebay-tooltip/ebay-tooltip.d.ts.map +1 -1
- package/ebay-tooltip/index.d.ts +5 -5
- package/ebay-tooltip/index.d.ts.map +1 -1
- package/ebay-tourtip/README.md +23 -26
- package/ebay-tourtip/ebay-tourtip-content.d.ts +3 -3
- package/ebay-tourtip/ebay-tourtip-content.d.ts.map +1 -1
- package/ebay-tourtip/ebay-tourtip-footer.d.ts +2 -2
- package/ebay-tourtip/ebay-tourtip-footer.d.ts.map +1 -1
- package/ebay-tourtip/ebay-tourtip-heading.d.ts +2 -2
- package/ebay-tourtip/ebay-tourtip-heading.d.ts.map +1 -1
- package/ebay-tourtip/ebay-tourtip-host.d.ts +3 -3
- package/ebay-tourtip/ebay-tourtip-host.d.ts.map +1 -1
- package/ebay-tourtip/ebay-tourtip.d.ts +4 -4
- package/ebay-tourtip/ebay-tourtip.d.ts.map +1 -1
- package/ebay-tourtip/index.d.ts +6 -6
- package/ebay-tourtip/index.d.ts.map +1 -1
- package/ebay-tri-state-checkbox/Readme.md +15 -12
- package/ebay-tri-state-checkbox/index.d.ts +2 -2
- package/ebay-tri-state-checkbox/index.d.ts.map +1 -1
- package/ebay-tri-state-checkbox/tri-state-checkbox.d.ts +3 -3
- package/ebay-tri-state-checkbox/tri-state-checkbox.d.ts.map +1 -1
- package/ebay-tri-state-checkbox/types.d.ts +3 -3
- package/ebay-tri-state-checkbox/types.d.ts.map +1 -1
- package/ebay-video/README.md +24 -19
- package/ebay-video/const.d.ts.map +1 -1
- package/ebay-video/controls.d.ts.map +1 -1
- package/ebay-video/index.d.ts +3 -3
- package/ebay-video/index.d.ts.map +1 -1
- package/ebay-video/reportButton.d.ts +1 -1
- package/ebay-video/reportButton.d.ts.map +1 -1
- package/ebay-video/source.d.ts +2 -2
- package/ebay-video/source.d.ts.map +1 -1
- package/ebay-video/types.d.ts +3 -3
- package/ebay-video/types.d.ts.map +1 -1
- package/ebay-video/video.d.ts +4 -4
- package/ebay-video/video.d.ts.map +1 -1
- package/events/index.d.ts +4 -4
- package/events/index.d.ts.map +1 -1
- package/file-preview-card-BD6TIsY7.js +1 -0
- package/{lightbox-dialog-B19PMyMY.js → lightbox-dialog-DqcQsTSy.js} +1 -1
- package/package.json +79 -78
- package/utils/index.d.ts +6 -6
- package/utils/index.d.ts.map +1 -1
- package/dialog-previous-button-DR6Ujner.js +0 -1
- package/ebay-details-CwOA53up.js +0 -1
- package/file-preview-card-D4qnvGtF.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ComponentProps, FC } from
|
|
2
|
-
import { CheckboxState, TriStateCheckboxChangeHandler, TriStateCheckboxFocusHandler, TriStateCheckboxKeyDownHandler, Size } from
|
|
3
|
-
export type EbayTriStateCheckboxProps = Omit<ComponentProps<
|
|
1
|
+
import React, { ComponentProps, FC } from "react";
|
|
2
|
+
import { CheckboxState, TriStateCheckboxChangeHandler, TriStateCheckboxFocusHandler, TriStateCheckboxKeyDownHandler, Size } from "./types";
|
|
3
|
+
export type EbayTriStateCheckboxProps = Omit<ComponentProps<"input">, "size" | "onChange" | "onFocus" | "onKeyDown" | "checked" | "defaultChecked" | "ref"> & {
|
|
4
4
|
checked?: CheckboxState;
|
|
5
5
|
defaultChecked?: CheckboxState;
|
|
6
6
|
skipMixed?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tri-state-checkbox.d.ts","sourceRoot":"","sources":["../../src/ebay-tri-state-checkbox/tri-state-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAe,cAAc,EAAE,EAAE,EAAuC,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"tri-state-checkbox.d.ts","sourceRoot":"","sources":["../../src/ebay-tri-state-checkbox/tri-state-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAe,cAAc,EAAE,EAAE,EAAuC,MAAM,OAAO,CAAC;AAGpG,OAAO,EACH,aAAa,EACb,6BAA6B,EAC7B,4BAA4B,EAC5B,8BAA8B,EAC9B,IAAI,EACP,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,yBAAyB,GAAG,IAAI,CACxC,cAAc,CAAC,OAAO,CAAC,EACvB,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,gBAAgB,GAAG,KAAK,CACvF,GAAG;IACA,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,6BAA6B,CAAC;IACzC,OAAO,CAAC,EAAE,4BAA4B,CAAC;IACvC,SAAS,CAAC,EAAE,8BAA8B,CAAC;IAC3C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAChD,CAAC;AAIF,QAAA,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA2EvD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EbayChangeEventHandler, EbayFocusEventHandler, EbayKeyboardEventHandler } from
|
|
2
|
-
export type Size =
|
|
3
|
-
export type CheckboxState =
|
|
1
|
+
import { EbayChangeEventHandler, EbayFocusEventHandler, EbayKeyboardEventHandler } from "src/events";
|
|
2
|
+
export type Size = "default" | "large";
|
|
3
|
+
export type CheckboxState = "true" | "false" | "mixed";
|
|
4
4
|
export type TriStateCheckboxEventData = {
|
|
5
5
|
value: string | number;
|
|
6
6
|
checked: CheckboxState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-tri-state-checkbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-tri-state-checkbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAErG,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC;AACvC,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAEvD,MAAM,MAAM,yBAAyB,GAAG;IACpC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,sBAAsB,CAAC,gBAAgB,EAAE,yBAAyB,CAAC,CAAC;AAChH,MAAM,MAAM,4BAA4B,GAAG,qBAAqB,CAAC,gBAAgB,EAAE,yBAAyB,CAAC,CAAC;AAC9G,MAAM,MAAM,8BAA8B,GAAG,wBAAwB,CAAC,gBAAgB,EAAE,yBAAyB,CAAC,CAAC"}
|
package/ebay-video/README.md
CHANGED
|
@@ -4,12 +4,15 @@ Video player. Supports either MPD or M3U8 playlist formats.
|
|
|
4
4
|
Natively uses `shaka` player under the hood. For resizing, `ebay-video` supports fixed width or variable width. If no width is provided the video tag will resize based on the container size.
|
|
5
5
|
|
|
6
6
|
## Demo
|
|
7
|
+
|
|
7
8
|
[Storybook](https://opensource.ebay.com/ebayui-core-react/main/?path=/story/media-ebay-video--default)
|
|
8
9
|
|
|
9
10
|
## Usage
|
|
11
|
+
|
|
10
12
|
```bash
|
|
11
13
|
yarn add @ebay/ui-core-react shaka-player
|
|
12
14
|
```
|
|
15
|
+
|
|
13
16
|
```jsx
|
|
14
17
|
import { EbayVideo } from '@ebay/ui-core-react/ebay-video'
|
|
15
18
|
import '@ebay/skin/video'
|
|
@@ -27,31 +30,33 @@ import 'shaka-player/dist/controls.css'
|
|
|
27
30
|
|
|
28
31
|
## EbayVideo Props
|
|
29
32
|
|
|
30
|
-
| Name | Type
|
|
31
|
-
|
|
32
|
-
| width | Number
|
|
33
|
-
| height | Number
|
|
34
|
-
| thumbnail | String
|
|
35
|
-
| action | String
|
|
36
|
-
| volume | Number
|
|
37
|
-
| volumeSlider | Boolean
|
|
38
|
-
| muted | Boolean
|
|
39
|
-
| playView | String
|
|
40
|
-
| a11yLoadText | String
|
|
41
|
-
| a11yPlayText | String
|
|
42
|
-
| errorText | String
|
|
43
|
-
| reportText | String
|
|
33
|
+
| Name | Type | Required | Description |
|
|
34
|
+
| ------------ | ------- | -------- | ------------------------------------------------------------------------------------------------------------------- |
|
|
35
|
+
| width | Number | No | |
|
|
36
|
+
| height | Number | No | |
|
|
37
|
+
| thumbnail | String | No | URL path for the video thumbnail |
|
|
38
|
+
| action | String | No | `play` or `pause`: will programatically perform the given action |
|
|
39
|
+
| volume | Number | No | sets sound volume |
|
|
40
|
+
| volumeSlider | Boolean | No | keep or remove volume slider, default is `false` |
|
|
41
|
+
| muted | Boolean | No | mute or unmute video, default is `false` |
|
|
42
|
+
| playView | String | No | `inline` or `fullscreen`. When player starts to play, will either play `inline` (default) or switch to `fullscreen` |
|
|
43
|
+
| a11yLoadText | String | Yes | a11y text for the loading spinner |
|
|
44
|
+
| a11yPlayText | String | Yes | a11y text for the play button |
|
|
45
|
+
| errorText | String | Yes | content for error when an either the library or video cannot load |
|
|
46
|
+
| reportText | String | Yes | text for report button |
|
|
44
47
|
|
|
45
48
|
## Callbacks
|
|
49
|
+
|
|
46
50
|
| Name | Required | Description | Arguments |
|
|
47
|
-
|
|
51
|
+
| -------------- | -------- | ---------------------------------------------------------------- | ------------------------------------------- |
|
|
48
52
|
| onLoadError | No | triggered when there is a load error with video player or source | (Event) |
|
|
49
53
|
| onPlay | No | triggered when playback starts | (Event, { player }) |
|
|
50
54
|
| onVolumeChange | No | triggered when volume is changed | (Event, { volume: number, muted: boolean }) |
|
|
51
55
|
| onReport | No | triggered when report button is clicked | |
|
|
52
56
|
|
|
53
57
|
## EbayVideoSource Props
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
+
|
|
59
|
+
| Name | Type | Required | Description |
|
|
60
|
+
| ---- | ------ | -------- | ------------------------------ |
|
|
61
|
+
| src | String | Yes | video/playlist URL |
|
|
62
|
+
| type | String | No | playlist type, `hls` or `dash` |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../src/ebay-video/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,OAAO,
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../src/ebay-video/const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,kBAAkB;;;;CAa9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/ebay-video/controls.tsx"],"names":[],"mappings":"AAQA,wBAAgB,cAAc,CAAC,QAAQ,aAAW,GAAG;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/ebay-video/controls.tsx"],"names":[],"mappings":"AAQA,wBAAgB,cAAc,CAAC,QAAQ,aAAW,GAAG;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,CAiCnE"}
|
package/ebay-video/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as EbayVideo, type EbayVideoProps } from
|
|
2
|
-
export { default as EbayVideoSource } from
|
|
3
|
-
export type { VideoAction, VideoPlayView, VideoSourceType, VideoSource, Player } from
|
|
1
|
+
export { default as EbayVideo, type EbayVideoProps } from "./video";
|
|
2
|
+
export { default as EbayVideoSource } from "./source";
|
|
3
|
+
export type { VideoAction, VideoPlayView, VideoSourceType, VideoSource, Player } from "./types";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-video/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ebay-video/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reportButton.d.ts","sourceRoot":"","sources":["../../src/ebay-video/reportButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"reportButton.d.ts","sourceRoot":"","sources":["../../src/ebay-video/reportButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG9C,KAAK,iBAAiB,GAAG;IACrB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,wBAAwB,iBAAiB,KAAG,GAAG,CAAC,OAK5E,CAAC"}
|
package/ebay-video/source.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentProps, FC } from
|
|
2
|
-
export type EbayVideoSourceProps = ComponentProps<
|
|
1
|
+
import { ComponentProps, FC } from "react";
|
|
2
|
+
export type EbayVideoSourceProps = ComponentProps<"source">;
|
|
3
3
|
declare const EbayVideoSource: FC<EbayVideoSourceProps>;
|
|
4
4
|
export default EbayVideoSource;
|
|
5
5
|
//# sourceMappingURL=source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../src/ebay-video/source.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../src/ebay-video/source.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE5D,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAAyC,CAAC;AAExF,eAAe,eAAe,CAAC"}
|
package/ebay-video/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type VideoAction =
|
|
2
|
-
export type VideoPlayView =
|
|
3
|
-
export type VideoSourceType =
|
|
1
|
+
export type VideoAction = "play" | "pause";
|
|
2
|
+
export type VideoPlayView = "inline" | "fullscreen";
|
|
3
|
+
export type VideoSourceType = "dash" | "hls";
|
|
4
4
|
export type VideoSource = {
|
|
5
5
|
src: string;
|
|
6
6
|
type?: VideoSourceType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-video/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-video/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;AAC3C,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,KAAK,CAAC;AAC7C,MAAM,MAAM,WAAW,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC"}
|
package/ebay-video/video.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentProps, FC, MouseEvent } from
|
|
2
|
-
import { Player, VideoAction, VideoPlayView } from
|
|
3
|
-
import { EbayEventHandler } from
|
|
1
|
+
import { ComponentProps, FC, MouseEvent } from "react";
|
|
2
|
+
import { Player, VideoAction, VideoPlayView } from "./types";
|
|
3
|
+
import { EbayEventHandler } from "../common/event-utils/types";
|
|
4
4
|
export type PlayEventProps = {
|
|
5
5
|
player: Player;
|
|
6
6
|
};
|
|
@@ -8,7 +8,7 @@ export type VolumeChangeProps = {
|
|
|
8
8
|
volume: number;
|
|
9
9
|
muted: boolean;
|
|
10
10
|
};
|
|
11
|
-
export type EbayVideoProps = Omit<ComponentProps<
|
|
11
|
+
export type EbayVideoProps = Omit<ComponentProps<"video">, "onPlay" | "onVolumeChange"> & {
|
|
12
12
|
width?: number;
|
|
13
13
|
height?: number;
|
|
14
14
|
thumbnail?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../src/ebay-video/video.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAkB,UAAU,EAA+B,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../src/ebay-video/video.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAkB,UAAU,EAA+B,MAAM,OAAO,CAAC;AAS3G,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,MAAM,cAAc,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,QAAQ,GAAG,gBAAgB,CAAC,GAAG;IACtF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;IAEzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;IAC5D,cAAc,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IACvE,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC9D,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAwNjC,CAAC;AAgBF,eAAe,SAAS,CAAC"}
|
package/events/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { addEventListener, handleActionKeydown, handleEnterKeydown, handleEscapeKeydown, handleLeftRightArrowsKeydown, handleResize, handleTextInput, handleUpDownArrowsKeydown, isActionKey, preventDefaultIfHijax, removeEventListener, wrapEvent } from
|
|
2
|
-
export type { EbayChangeEventHandler, EbayEventHandler, EbayFocusEventHandler, EbayKeyboardEventHandler, EbayMouseEventHandler } from
|
|
3
|
-
export { default as useKeyPress } from
|
|
4
|
-
export { default as useRovingIndex } from
|
|
1
|
+
export { addEventListener, handleActionKeydown, handleEnterKeydown, handleEscapeKeydown, handleLeftRightArrowsKeydown, handleResize, handleTextInput, handleUpDownArrowsKeydown, isActionKey, preventDefaultIfHijax, removeEventListener, wrapEvent, } from "../common/event-utils";
|
|
2
|
+
export type { EbayChangeEventHandler, EbayEventHandler, EbayFocusEventHandler, EbayKeyboardEventHandler, EbayMouseEventHandler, } from "../common/event-utils/types";
|
|
3
|
+
export { default as useKeyPress } from "../common/event-utils/use-key-press";
|
|
4
|
+
export { default as useRovingIndex } from "../common/event-utils/use-roving-index";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/events/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAC5B,YAAY,EACZ,eAAe,EACf,yBAAyB,EACzB,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAC5B,YAAY,EACZ,eAAe,EACf,yBAAyB,EACzB,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,SAAS,GACZ,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACR,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,GACxB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAE7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,wCAAwC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const O=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),g=require("classnames"),P=require("./utils-C9NL3q0j.js"),N=require("./icon-button-CHW6Lezn.js"),j=require("./menu-button-label-BsTtpKB2.js"),C=require("./menu-mTGSTnD8.js"),U=require("./progress-spinner-BQ5Ms2Nu.js"),M=require("./icon-C-bWGO-9.js"),L=({status:t,menuActions:r,onMenuAction:l,deleteText:s,onCancel:a,onDelete:i,onAction:E,a11yCancelUploadText:u,action:n})=>{const f=(c,d)=>{var o;if(d){const v=(o=d.checked)===null||o===void 0?void 0:o[0],p=r&&v!==void 0&&v in r?r[v].event:null;p&&l?l(c,Object.assign(Object.assign({},d),{eventName:p})):i&&i(c)}};return t==="uploading"?e.createElement(N.EbayIconButton,{"aria-label":u,onClick:a,className:"file-preview-card__action",icon:"close16"}):r!=null&&r.length?e.createElement(e.Fragment,null,e.createElement(j.EbayMenuButton,{variant:"overflow",className:"file-preview-card__action",onSelect:f},r.map(c=>e.createElement(C.EbayMenuItem,{value:c.event,key:c.label},c.label)),e.createElement(C.EbayMenuItem,{key:"delete",value:"delete"},s))):n!=null&&n.props&&n.props.icon&&n.props["aria-label"]?e.createElement(N.EbayIconButton,Object.assign({onClick:E,className:g("file-preview-card__action",n.props.className)},n.props)):s?e.createElement(N.EbayIconButton,{"aria-label":s,className:"file-preview-card__action",icon:"delete16",onClick:i}):e.createElement(e.Fragment,null)},F=({file:t,status:r,seeMore:l})=>{if(r==="uploading")return e.createElement(U.EbayProgressSpinner,{className:"file-preview-card__asset"});switch(t==null?void 0:t.type){case"video":return e.createElement("video",{className:"file-preview-card__asset",src:t.src});case"image":return e.createElement("img",{className:g("file-preview-card__asset",{"file-preview-card__asset--fade":l&&l>0}),src:t==null?void 0:t.src,alt:t==null?void 0:t.name});default:return e.createElement(M.EbayIcon,{name:"file24",className:"file-preview-card__asset"})}},R=({file:t,infoText:r})=>t&&t.type!=="image"?e.createElement("div",{className:"file-preview-card__info"},t.type==="video"&&e.createElement(M.EbayIcon,{name:"play16",className:"file-preview-card__video-icon"}),r||t.name.substring(t.name.lastIndexOf(".")+1).toUpperCase()):e.createElement(e.Fragment,null),h=()=>null,A=t=>{var{a11yCancelUploadText:r,status:l,as:s="div",file:a,seeMore:i,deleteText:E,footerTitle:u,footerSubtitle:n,a11ySeeMoreText:f,menuActions:c,infoText:d,href:o,onCancel:v,onDelete:p,onMenuAction:S,onSeeMore:q,onAction:x,className:I,children:T}=t,k=O.__rest(t,["a11yCancelUploadText","status","as","file","seeMore","deleteText","footerTitle","footerSubtitle","a11ySeeMoreText","menuActions","infoText","href","onCancel","onDelete","onMenuAction","onSeeMore","onAction","className","children"]);const B=P.findComponent(T,h),b=e.useMemo(()=>{var _,y;if(!a)return;let w=a,m;return!((_=a==null?void 0:a.type)===null||_===void 0)&&_.startsWith("image")?m="image":!((y=a==null?void 0:a.type)===null||y===void 0)&&y.startsWith("video")&&(m="video"),a instanceof File&&(w={name:a.name,type:m,src:m?URL.createObjectURL(a):void 0}),w.type=m,w},[a]);return e.createElement(s,Object.assign({className:g("file-preview-card",I)},k),e.createElement("div",{className:"file-preview-card__body"},o?e.createElement("a",{href:o},e.createElement(F,{file:b,status:l,seeMore:i})):e.createElement(F,{file:b,status:l,seeMore:i}),i&&i>0?e.createElement("button",{type:"button",className:"file-preview-card__see-more",onClick:q,"aria-label":f},e.createElement("span",null,"+",i)):e.createElement(L,{a11yCancelUploadText:r,status:l,menuActions:c,onMenuAction:S,deleteText:E,onCancel:v,onDelete:p,onAction:x,action:B}),e.createElement(R,{file:b,infoText:d})),u&&e.createElement("div",{className:"file-preview-card__footer"},e.createElement("span",null,u),n&&e.createElement("span",null,n)))};exports.EbayFilePreviewCard=A;exports.EbayFilePreviewCardAction=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const b=require("./tslib.es6-C4EgNkz1.js"),s=require("react"),n=require("classnames"),d=require("./dialog-previous-button-
|
|
1
|
+
"use strict";const b=require("./tslib.es6-C4EgNkz1.js"),s=require("react"),n=require("classnames"),d=require("./dialog-previous-button-B1dTCOv2.js");require("./icon-button-CHW6Lezn.js");const m=e=>{var{open:l,mode:r,size:t,bannerImgSrc:o,bannerImgPosition:g,onClose:a=()=>{}}=e,i=b.__rest(e,["open","mode","size","bannerImgSrc","bannerImgPosition","onClose"]);const c=o?s.createElement("div",{className:"lightbox-dialog__image",style:{backgroundImage:`url(${o})`,backgroundPosition:g}}):i.top;return s.createElement(d.DialogBaseWithState,Object.assign({buttonPosition:"right"},i,{classPrefix:"lightbox-dialog",onCloseBtnClick:a,onBackgroundClick:a,className:n(i.className,"lightbox-dialog--mask-fade",{[`lightbox-dialog--${t}`]:t,"lightbox-dialog--expressive":o}),windowClass:n("lightbox-dialog__window--animate",{"lightbox-dialog__window--mini":r==="mini"}),top:c,open:l}))};exports.EbayLightboxDialog=m;
|
package/package.json
CHANGED
|
@@ -1,81 +1,82 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
"name": "@ebay/ui-core-react",
|
|
3
|
+
"version": "8.6.0",
|
|
4
|
+
"description": "Skin components build off React",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"React",
|
|
7
|
+
"Skin",
|
|
8
|
+
"EbayUI"
|
|
9
|
+
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git@github.com:eBay/evo-web"
|
|
13
|
+
},
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"author": "tmanyanov@ebay.com",
|
|
16
|
+
"exports": {
|
|
17
|
+
"./package.json": "./package.json",
|
|
18
|
+
"./*": {
|
|
19
|
+
"types": "./*/index.d.ts",
|
|
20
|
+
"default": "./*/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "npm run clean && npm run type:check && npm run test && vite build && npm run copy && npm run smoke-test",
|
|
25
|
+
"build:storybook": "storybook build",
|
|
26
|
+
"clean": "node scripts/clean",
|
|
27
|
+
"copy": "copyfiles package.json README.md dist; npm run copy:rest",
|
|
28
|
+
"copy:rest": "copyfiles -u 1 'src/**/*.md' dist",
|
|
29
|
+
"coverage": "npm run clean && npm run test -- --coverage --ci",
|
|
30
|
+
"deploy": "storybook build -o ./_site/$(git branch --show-current)",
|
|
31
|
+
"format": "eslint . --fix 'src/**/*.{ts,tsx}' && prettier . --write --log-level=warn",
|
|
32
|
+
"lint": "eslint . --ext .ts,.tsx && prettier . --check --log-level=warn",
|
|
33
|
+
"release": "npm run build",
|
|
34
|
+
"smoke-test": "npm run smoke-test:react-16 && npm run smoke-test:react-18 && npm run smoke-test:react-19",
|
|
35
|
+
"smoke-test:react-16": "cd ./smoke-tests/react-16 && npm install && npm run test",
|
|
36
|
+
"smoke-test:react-18": "cd ./smoke-tests/react-18 && npm install && npm run test",
|
|
37
|
+
"smoke-test:react-19": "cd ./smoke-tests/react-19 && npm install && npm run test",
|
|
38
|
+
"storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 9001 -c .storybook --no-open",
|
|
39
|
+
"test": "jest",
|
|
40
|
+
"type:check": "tsc --noEmit",
|
|
41
|
+
"update-icons": "node ./scripts/update-icons",
|
|
42
|
+
"version": "npm run update-icons && git add -A src"
|
|
43
|
+
},
|
|
44
|
+
"lint-staged": {
|
|
45
|
+
"*.{ts,tsx}": [
|
|
46
|
+
"eslint --fix",
|
|
47
|
+
"prettier --write"
|
|
48
|
+
],
|
|
49
|
+
"*.md": [
|
|
50
|
+
"prettier --write"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"resolutions": {
|
|
54
|
+
"@storybook/addon-actions": "~7.5.3",
|
|
55
|
+
"string-width": "4.2.3"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@floating-ui/react": "^0.27.8",
|
|
59
|
+
"classnames": "^2.5.1",
|
|
60
|
+
"makeup-active-descendant": "^0.7.8",
|
|
61
|
+
"makeup-expander": "^0.11.7",
|
|
62
|
+
"makeup-floating-label": "^0.4.7",
|
|
63
|
+
"makeup-keyboard-trap": "^0.5.5",
|
|
64
|
+
"makeup-prevent-scroll-keys": "^0.3.4",
|
|
65
|
+
"makeup-roving-tabindex": "^0.7.5",
|
|
66
|
+
"makeup-screenreader-trap": "^0.5.4",
|
|
67
|
+
"makeup-typeahead": "^0.3.3",
|
|
68
|
+
"react-remove-scroll": "^2.6.3"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"@ebay/skin": "^19.0.0",
|
|
72
|
+
"react": ">= 16.0.0",
|
|
73
|
+
"react-dom": ">= 16.0.0"
|
|
74
|
+
},
|
|
75
|
+
"optionalDependencies": {
|
|
76
|
+
"shaka-player": "^4.14.12"
|
|
77
|
+
},
|
|
78
|
+
"publishConfig": {
|
|
79
|
+
"directory": "dist",
|
|
80
|
+
"registry": "https://registry.npmjs.org"
|
|
14
81
|
}
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"clean": "node scripts/clean",
|
|
18
|
-
"lint": "eslint . --ext ts,tsx",
|
|
19
|
-
"lint:ci": "eslint . --ext .ts,.tsx -f @microsoft/eslint-formatter-sarif -o eslint-results.sarif",
|
|
20
|
-
"coverage": "npm run clean && npm run test -- --coverage --ci",
|
|
21
|
-
"eslint-local": "eslint . --ext ts,tsx",
|
|
22
|
-
"eslint": "eslint . --ext .ts,.tsx -f checkstyle -o ./lint/checkstyle-result.xml",
|
|
23
|
-
"format": "eslint . --fix 'src/**/*.{ts,tsx}'",
|
|
24
|
-
"storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 9001 -c .storybook --no-open",
|
|
25
|
-
"deploy": "storybook build -o ./_site/$(git branch --show-current)",
|
|
26
|
-
"build:storybook": "storybook build",
|
|
27
|
-
"test": "jest",
|
|
28
|
-
"smoke-test": "npm run smoke-test:react-16 && npm run smoke-test:react-18 && npm run smoke-test:react-19",
|
|
29
|
-
"smoke-test:react-16": "cd ./smoke-tests/react-16 && npm install && npm run test",
|
|
30
|
-
"smoke-test:react-18": "cd ./smoke-tests/react-18 && npm install && npm run test",
|
|
31
|
-
"smoke-test:react-19": "cd ./smoke-tests/react-19 && npm install && npm run test",
|
|
32
|
-
"build": "npm run clean && npm run type:check && npm run test && vite build && npm run copy && npm run smoke-test",
|
|
33
|
-
"type:check": "tsc --noEmit",
|
|
34
|
-
"update-icons": "node ./scripts/update-icons",
|
|
35
|
-
"copy": "copyfiles package.json README.md dist; npm run copy:rest",
|
|
36
|
-
"copy:rest": "copyfiles -u 1 'src/**/*.md' dist",
|
|
37
|
-
"release": "npm run build",
|
|
38
|
-
"version": "npm run update-icons && git add -A src"
|
|
39
|
-
},
|
|
40
|
-
"lint-staged": {
|
|
41
|
-
"src/**/*.{ts,tsx}": [
|
|
42
|
-
"eslint --fix"
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"repository": {
|
|
46
|
-
"type": "git",
|
|
47
|
-
"url": "git@github.com:eBay/evo-web"
|
|
48
|
-
},
|
|
49
|
-
"keywords": [
|
|
50
|
-
"React",
|
|
51
|
-
"Skin",
|
|
52
|
-
"EbayUI"
|
|
53
|
-
],
|
|
54
|
-
"author": "tmanyanov@ebay.com",
|
|
55
|
-
"license": "ISC",
|
|
56
|
-
"peerDependencies": {
|
|
57
|
-
"@ebay/skin": "^19.0.0",
|
|
58
|
-
"react": ">= 16.0.0",
|
|
59
|
-
"react-dom": ">= 16.0.0"
|
|
60
|
-
},
|
|
61
|
-
"optionalDependencies": {
|
|
62
|
-
"shaka-player": "^4.14.12"
|
|
63
|
-
},
|
|
64
|
-
"dependencies": {
|
|
65
|
-
"@floating-ui/react": "^0.27.8",
|
|
66
|
-
"classnames": "^2.5.1",
|
|
67
|
-
"makeup-active-descendant": "^0.7.8",
|
|
68
|
-
"makeup-expander": "^0.11.7",
|
|
69
|
-
"makeup-floating-label": "^0.4.7",
|
|
70
|
-
"makeup-keyboard-trap": "^0.5.5",
|
|
71
|
-
"makeup-prevent-scroll-keys": "^0.3.4",
|
|
72
|
-
"makeup-roving-tabindex": "^0.7.5",
|
|
73
|
-
"makeup-screenreader-trap": "^0.5.4",
|
|
74
|
-
"makeup-typeahead": "^0.3.3",
|
|
75
|
-
"react-remove-scroll": "^2.6.3"
|
|
76
|
-
},
|
|
77
|
-
"resolutions": {
|
|
78
|
-
"@storybook/addon-actions": "~7.5.3",
|
|
79
|
-
"string-width": "4.2.3"
|
|
80
|
-
}
|
|
81
82
|
}
|
package/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { useRandomId } from
|
|
2
|
-
export { debounce } from
|
|
3
|
-
export { withForwardRef } from
|
|
4
|
-
export { excludeComponent, filterBy, filterByType, findComponent } from
|
|
5
|
-
export { scroll } from
|
|
6
|
-
export { useReducedMotion, isReducedMotion } from
|
|
1
|
+
export { useRandomId } from "../common/random-id";
|
|
2
|
+
export { debounce } from "../common/debounce";
|
|
3
|
+
export { withForwardRef } from "../common/component-utils/forwardRef";
|
|
4
|
+
export { excludeComponent, filterBy, filterByType, findComponent } from "../common/component-utils/utils";
|
|
5
|
+
export { scroll } from "./scroll";
|
|
6
|
+
export { useReducedMotion, isReducedMotion } from "./reduced-motion";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAC1G,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const _=require("./tslib.es6-C4EgNkz1.js"),o=require("react"),re=require("react-remove-scroll"),h=require("classnames"),ae=require("makeup-screenreader-trap"),ie=require("makeup-keyboard-trap"),se=require("./icon-C-bWGO-9.js"),le=require("./random-id-DlJj_RWH.js"),ce=require("./icon-button-CHW6Lezn.js");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=z(ae),T=z(ie),A=e=>{var{children:t}=e,n=_.__rest(e,["children"]);return o.createElement("h2",Object.assign({},n),t)},q=({children:e})=>o.createElement(o.Fragment,null,e),F=({children:e})=>o.createElement(o.Fragment,null,e);function K({open:e,classPrefix:t,transitionElement:n,dialogRef:r,dialogWindowRef:u,enabled:m,onTransitionEnd:d}){const s=o.useRef(e);o.useLayoutEffect(()=>{if(!m)return;let i=[u,r];n==="window"?i=[u]:n==="root"&&(i=[r]);let a;return e?a=de({dialog:r,waitFor:i,classPrefix:t,onTransitionEnd:d}):s.current!==e&&(a=ue({dialog:r,waitFor:i,classPrefix:t,onTransitionEnd:d})),s.current=e,()=>{a&&a()}},[e,m])}function de({dialog:e,waitFor:t,classPrefix:n,onTransitionEnd:r}){return V(e,t,`${n}--show`,r)}function ue({dialog:e,waitFor:t,classPrefix:n,onTransitionEnd:r}){return V(e,t,`${n}--hide`,r)}function V(e,t,n,r){if(!e.current||!n)return;let u=0;const m=t?t.length:0,d=`${n}-init`;return e.current.classList.add(d),me(()=>{e.current&&(e.current.classList.add(n),e.current.classList.remove(d),t.forEach(s=>{const i=()=>{var a,b;++u===m&&((a=e.current)===null||a===void 0||a.classList.remove(n),r(),(b=s.current)===null||b===void 0||b.removeEventListener("transitionend",i))};s.current.addEventListener("transitionend",i,{once:!0})}))})}function me(e){let t,n;return window.requestAnimationFrame?(t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(e)}),n=window.cancelAnimationFrame):(t=window.setTimeout(e,26),n=window.clearTimeout),()=>{t&&(n(t),t=void 0)}}const fe=e=>{var t,{baseEl:n="div",classPrefix:r="drawer-dialog",windowClass:u,windowType:m,mainId:d,top:s,header:i,buttonPosition:a="right",children:b,ariaLabelledby:B,a11yCloseText:C,onCloseBtnClick:y=()=>{},footer:E,actions:D,onScroll:l,open:c=!1,onOpen:G=()=>{},onBackgroundClick:j=()=>{},ignoreEscape:J,closeButton:Q,previousButton:U,isModal:w,role:X="dialog",focus:I,transitionElement:Y,animated:S,closeButtonClass:Z}=e,P=_.__rest(e,["baseEl","classPrefix","windowClass","windowType","mainId","top","header","buttonPosition","children","ariaLabelledby","a11yCloseText","onCloseBtnClick","footer","actions","onScroll","open","onOpen","onBackgroundClick","ignoreEscape","closeButton","previousButton","isModal","role","focus","transitionElement","animated","closeButtonClass"]);const R=o.useRef(null),g=o.useRef(null),M=o.useRef(null),[ee,te]=o.useState("");o.useEffect(()=>{te(le.randomId())},[]),o.useEffect(()=>{let f;const p=v=>{g.current&&!g.current.contains(v.target)&&j(v)};return c&&a!=="hidden"&&(f=window.setTimeout(()=>{document.addEventListener("click",p,!1)})),()=>{clearTimeout(f),document.removeEventListener("click",p,!1)}},[j,c]),o.useEffect(()=>(c&&w?(O.trap(g.current),T.trap(g.current)):(O.untrap(),T.untrap()),()=>{O.untrap(),T.untrap()}),[c,w]),K({open:c,classPrefix:r,transitionElement:Y,dialogRef:R,dialogWindowRef:g,enabled:S,onTransitionEnd:()=>x(c)});const L=f=>{!J&&f.key==="Escape"&&(f.stopPropagation(),y(f))};o.useEffect(()=>{S||x(c),c&&G()},[c]);function x(f){var p,v;if(f)return I?(p=I.current)===null||p===void 0||p.focus():w&&((v=M.current)===null||v===void 0||v.focus()),document.addEventListener("keydown",L,!1),()=>document.removeEventListener("keydown",L,!1)}const H=a!=="hidden"&&o.createElement("button",{ref:M,className:h("icon-btn",Z,`${r}__close`,{"icon-btn--transparent":r==="toast-dialog"}),type:"button","aria-label":C,onClick:y},Q||o.createElement(se.EbayIcon,{name:"close16"})),ne=m?`${r}__${m}-window`:`${r}__window`,W=((t=i==null?void 0:i.props)===null||t===void 0?void 0:t.id)||`dialog-title-${ee}`,oe=B||W,k=i?o.cloneElement(i,Object.assign(Object.assign({},i.props),{id:W})):null;return o.createElement(n,Object.assign({},P,{"aria-labelledby":oe,"aria-modal":"true",role:X,hidden:!c,className:h(r,P.className),"aria-live":w?void 0:"polite",ref:R,onKeyDown:L}),o.createElement("div",{className:h(ne,u),ref:g},s,k&&o.createElement("div",{className:`${r}__header`},U,a==="right"&&k,a!=="bottom"&&H,(a==="left"||a==="hidden")&&k),o.createElement("div",{id:d,className:`${r}__main`,onScroll:l},b),D?o.createElement("div",{className:`${r}__actions`},D):null,E||a==="bottom"?o.createElement("div",{className:`${r}__footer`},E,a==="bottom"&&H):null))},be=e=>{var{isModal:t,open:n,children:r,animated:u=!0}=e,m=_.__rest(e,["isModal","open","children","animated"]);const d=t!==!1,s=o.Children.toArray(r),i=s.find(l=>l.type===A),a=s.find(l=>l.type===q),b=s.find(l=>l.type===$),B=s.find(l=>l.type===F),C=s.find(l=>l.type===N),y=s.filter(l=>![A,q,F,$,N].some(c=>c===l.type)),E=o.createElement(fe,Object.assign({},m,{open:n,isModal:d,header:i,footer:a,actions:b,closeButton:B,previousButton:C,animated:u}),y);return u||n?d?o.createElement(re.RemoveScroll,{enabled:n},E):E:null},$=({children:e})=>o.createElement(o.Fragment,null,e),N=e=>{var{className:t,icon:n}=e,r=_.__rest(e,["className","icon"]);return o.createElement(ce.EbayIconButton,Object.assign({},r,{icon:n||"chevronLeft16",className:h(t,"lightbox-dialog__prev")}))};exports.DialogBaseWithState=be;exports.EbayDialogActions=$;exports.EbayDialogCloseButton=F;exports.EbayDialogFooter=q;exports.EbayDialogHeader=A;exports.EbayDialogPreviousButton=N;exports.useDialogAnimation=K;
|
package/ebay-details-CwOA53up.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const y=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),a=require("classnames"),s=require("./icon-C-bWGO-9.js"),N=t=>{var{size:r,alignment:m,layout:n,text:o,as:i="div",className:d,open:_,onToggle:l,children:u}=t,E=y.__rest(t,["size","alignment","layout","text","as","className","open","onToggle","children"]);const g=l&&(c=>{l(c,{open:c.currentTarget.open})});return e.createElement("details",Object.assign({open:_,onToggle:g,className:a("details",d)},E),e.createElement("summary",{className:a("details__summary",{"details__summary--small":r==="small","details__summary--center":m==="center"})},e.createElement("span",{className:"details__label"},o),e.createElement("span",{className:"details__icon",hidden:!0},n==="accordion"?e.createElement(e.Fragment,null,e.createElement(s.EbayIcon,{className:"details__expand",name:"add16"}),e.createElement(s.EbayIcon,{className:"details__collapse",name:"remove16"})):e.createElement(s.EbayIcon,{name:"chevronDown16"}))),e.createElement(i,{className:a({details__content:n==="accordion"})},u))};exports.EbayDetails=N;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const S=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),y=require("./icon-button-CHW6Lezn.js"),x=require("./menu-button-label-BsTtpKB2.js"),w=require("./menu-mTGSTnD8.js"),I=require("classnames"),T=require("./progress-spinner-BQ5Ms2Nu.js"),g=require("./icon-C-bWGO-9.js"),q=({status:t,menuActions:n,onMenuAction:l,deleteText:u,onCancel:a,onDelete:i,a11yCancelUploadText:p})=>{const v=(r,c)=>{var o;if(c){const s=(o=c.checked)===null||o===void 0?void 0:o[0],m=n&&s!==void 0&&s in n?n[s].event:null;m&&l?l(r,Object.assign(Object.assign({},c),{eventName:m})):i&&i(r)}};return t==="uploading"?e.createElement(y.EbayIconButton,{"aria-label":p,onClick:a,className:"file-preview-card__action",icon:"close16"}):n!=null&&n.length?e.createElement(e.Fragment,null,e.createElement(x.EbayMenuButton,{variant:"overflow",className:"file-preview-card__action",onSelect:v},n.map(r=>e.createElement(w.EbayMenuItem,{value:r.event,key:r.label},r.label)),e.createElement(w.EbayMenuItem,{key:"delete",value:"delete"},u))):e.createElement(y.EbayIconButton,{"aria-label":u,className:"file-preview-card__action",icon:"delete16",onClick:i})},h=({file:t,status:n,seeMore:l})=>{if(n==="uploading")return e.createElement(T.EbayProgressSpinner,{className:"file-preview-card__asset"});switch(t==null?void 0:t.type){case"video":return e.createElement("video",{className:"file-preview-card__asset",src:t.src});case"image":return e.createElement("img",{className:I("file-preview-card__asset",{"file-preview-card__asset--fade":l&&l>0}),src:t==null?void 0:t.src,alt:t==null?void 0:t.name});default:return e.createElement(g.EbayIcon,{name:"file24",className:"file-preview-card__asset"})}},k=({file:t,infoText:n})=>t&&t.type!=="image"?e.createElement("div",{className:"file-preview-card__info"},t.type==="video"&&e.createElement(g.EbayIcon,{name:"play16",className:"file-preview-card__video-icon"}),n||t.name.substring(t.name.lastIndexOf(".")+1).toUpperCase()):e.createElement(e.Fragment,null),B=t=>{var{a11yCancelUploadText:n,status:l,as:u="div",file:a,seeMore:i,deleteText:p,footerTitle:v,footerSubtitle:r,a11ySeeMoreText:c,menuActions:o,infoText:s,onCancel:m,onDelete:N,onMenuAction:M,onSeeMore:C}=t,F=S.__rest(t,["a11yCancelUploadText","status","as","file","seeMore","deleteText","footerTitle","footerSubtitle","a11ySeeMoreText","menuActions","infoText","onCancel","onDelete","onMenuAction","onSeeMore"]);const _=e.useMemo(()=>{var E,b;if(!a)return;let f=a,d;return!((E=a==null?void 0:a.type)===null||E===void 0)&&E.startsWith("image")?d="image":!((b=a==null?void 0:a.type)===null||b===void 0)&&b.startsWith("video")&&(d="video"),a instanceof File&&(f={name:a.name,type:d,src:d?URL.createObjectURL(a):void 0}),f.type=d,f},[a]);return e.createElement(u,Object.assign({className:"file-preview-card"},F),e.createElement("div",{className:"file-preview-card__body"},e.createElement(h,{file:_,status:l,seeMore:i}),i&&i>0?e.createElement("button",{type:"button",className:"file-preview-card__see-more",onClick:C,"aria-label":c},e.createElement("span",null,"+",i)):e.createElement(q,{a11yCancelUploadText:n,status:l,menuActions:o,onMenuAction:M,deleteText:p,onCancel:m,onDelete:N}),e.createElement(k,{file:_,infoText:s})),v&&e.createElement("div",{className:"file-preview-card__footer"},e.createElement("span",null,v),r&&e.createElement("span",null,r)))};exports.EbayFileInput=B;
|