@ebay/ui-core-react 7.0.0 → 7.1.0-alpha.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/array.polyfill.flat-5BAolFdk.js +1 -0
- package/array.polyfill.flat-Bj5UhY_-.mjs +10 -0
- package/badge-BX5HuO-3.mjs +9 -0
- package/badge-CoHKfiPt.js +1 -0
- package/button-B06HeRsZ.mjs +63 -0
- package/button-o4ao46WM.js +1 -0
- package/calendar-CPKqwJVQ.js +1 -0
- package/calendar-Dq0eM9VC.mjs +216 -0
- package/debounce-BQsYxxOL.js +1 -0
- package/debounce-u81vJ6wg.mjs +9 -0
- package/dialog-previous-button-7ePoYWyj.js +1 -0
- package/dialog-previous-button-gmkm4c8J.mjs +146 -0
- package/drawer-BxxlJwkZ.js +1 -0
- package/drawer-Dcg135Bb.mjs +40 -0
- package/ebay-alert-dialog.js +1 -0
- package/ebay-alert-dialog.mjs +22 -0
- package/ebay-badge.js +1 -0
- package/ebay-badge.mjs +4 -0
- package/ebay-breadcrumbs.js +1 -0
- package/ebay-breadcrumbs.mjs +39 -0
- package/ebay-button.js +1 -0
- package/ebay-button.mjs +5 -0
- package/ebay-calendar.js +1 -0
- package/ebay-calendar.mjs +4 -0
- package/ebay-carousel.js +1 -0
- package/ebay-carousel.mjs +229 -0
- package/ebay-checkbox/README.md +12 -0
- package/ebay-checkbox.js +1 -0
- package/ebay-checkbox.mjs +43 -0
- package/ebay-confirm-dialog.js +1 -0
- package/ebay-confirm-dialog.mjs +24 -0
- package/ebay-cta-button.js +1 -0
- package/ebay-cta-button.mjs +20 -0
- package/ebay-date-textbox.js +1 -0
- package/ebay-date-textbox.mjs +74 -0
- package/ebay-dialog-base.js +1 -0
- package/ebay-dialog-base.mjs +9 -0
- package/ebay-drawer-dialog.js +1 -0
- package/ebay-drawer-dialog.mjs +4 -0
- package/ebay-eek.js +1 -0
- package/ebay-eek.mjs +42 -0
- package/ebay-fake-menu-button.js +1 -0
- package/ebay-fake-menu-button.mjs +7 -0
- package/ebay-fake-menu.js +1 -0
- package/ebay-fake-menu.mjs +9 -0
- package/ebay-fake-tabs.js +1 -0
- package/ebay-fake-tabs.mjs +27 -0
- package/ebay-field.js +1 -0
- package/ebay-field.mjs +19 -0
- package/ebay-fullscreen-dialog.js +1 -0
- package/ebay-fullscreen-dialog.mjs +9 -0
- package/ebay-icon/icon.d.ts.map +1 -1
- package/ebay-icon-button/README.md +2 -0
- package/ebay-icon-button.js +1 -0
- package/ebay-icon-button.mjs +4 -0
- package/ebay-icon.js +1 -0
- package/ebay-icon.mjs +4 -0
- package/ebay-infotip.js +1 -0
- package/ebay-infotip.mjs +59 -0
- package/ebay-inline-notice.js +1 -0
- package/ebay-inline-notice.mjs +31 -0
- package/ebay-lightbox-dialog.js +1 -0
- package/ebay-lightbox-dialog.mjs +11 -0
- package/ebay-listbox-button.js +2 -0
- package/ebay-listbox-button.mjs +170 -0
- package/ebay-menu/menu.d.ts +1 -1
- package/ebay-menu/menu.d.ts.map +1 -1
- package/ebay-menu-button.js +1 -0
- package/ebay-menu-button.mjs +82 -0
- package/ebay-menu.js +1 -0
- package/ebay-menu.mjs +9 -0
- package/ebay-notice-base.js +1 -0
- package/ebay-notice-base.mjs +7 -0
- package/ebay-page-notice.js +1 -0
- package/ebay-page-notice.mjs +42 -0
- package/ebay-pagination.js +1 -0
- package/ebay-pagination.mjs +159 -0
- package/ebay-panel-dialog.js +1 -0
- package/ebay-panel-dialog.mjs +11 -0
- package/ebay-progress-bar.js +1 -0
- package/ebay-progress-bar.mjs +6 -0
- package/ebay-progress-spinner/progress-spinner.d.ts.map +1 -1
- package/ebay-progress-spinner.js +1 -0
- package/ebay-progress-spinner.mjs +4 -0
- package/ebay-progress-stepper.js +1 -0
- package/ebay-progress-stepper.mjs +63 -0
- package/ebay-radio.js +1 -0
- package/ebay-radio.mjs +42 -0
- package/ebay-section-notice.js +1 -0
- package/ebay-section-notice.mjs +46 -0
- package/ebay-section-title/index.d.ts.map +1 -1
- package/ebay-section-title.js +1 -0
- package/ebay-section-title.mjs +24 -0
- package/ebay-select.js +1 -0
- package/ebay-select.mjs +69 -0
- package/ebay-signal.js +1 -0
- package/ebay-signal.mjs +9 -0
- package/ebay-snackbar-dialog.js +1 -0
- package/ebay-snackbar-dialog.mjs +46 -0
- package/ebay-split-button.js +1 -0
- package/ebay-split-button.mjs +20 -0
- package/ebay-star-rating-select.js +1 -0
- package/ebay-star-rating-select.mjs +36 -0
- package/ebay-star-rating.js +1 -0
- package/ebay-star-rating.mjs +8 -0
- package/ebay-svg.js +1 -0
- package/ebay-svg.mjs +4753 -0
- package/ebay-switch.js +1 -0
- package/ebay-switch.mjs +25 -0
- package/ebay-tabs.js +1 -0
- package/ebay-tabs.mjs +66 -0
- package/ebay-textbox.js +1 -0
- package/ebay-textbox.mjs +8 -0
- package/ebay-toast-dialog.js +1 -0
- package/ebay-toast-dialog.mjs +9 -0
- package/ebay-tooltip.js +1 -0
- package/ebay-tooltip.mjs +39 -0
- package/ebay-tourtip.js +1 -0
- package/ebay-tourtip.mjs +43 -0
- package/ebay-video.js +1 -0
- package/ebay-video.mjs +173 -0
- package/hooks-Ctier7Yv.js +1 -0
- package/hooks-r29zhPsY.mjs +63 -0
- package/icon-B_a65KUD.mjs +42 -0
- package/icon-DK6eEQD8.js +1 -0
- package/icon-button-BB6GFLm7.js +1 -0
- package/icon-button-Dy8rjzH7.mjs +24 -0
- package/index-B5oC9Rl1.mjs +22 -0
- package/index-DbjwTbDP.js +1 -0
- package/label-CnrpYJ-g.js +1 -0
- package/label-DgOo6Mql.mjs +19 -0
- package/menu-CR1Dxl2m.mjs +154 -0
- package/menu-DZU8jEPV.js +1 -0
- package/menu-button-label-BcgasGA4.js +1 -0
- package/menu-button-label-vVnRKJRU.mjs +68 -0
- package/menu-item-DBi1NcrM.js +1 -0
- package/menu-item-jlKZ3uT4.mjs +67 -0
- package/notice-content-9iF4T8uB.js +1 -0
- package/notice-content-BVZMfcMH.mjs +4 -0
- package/notice-content-C0ZStfuX.js +1 -0
- package/notice-content-CdXVjKzD.mjs +9 -0
- package/notice-footer-BFa2IeY9.mjs +10 -0
- package/notice-footer-Cw1DMzoB.js +1 -0
- package/package.json +19 -8
- package/progress-spinner-BugUcF5c.mjs +19 -0
- package/progress-spinner-CDgxI8R_.js +1 -0
- package/range-DC7seOVT.mjs +4 -0
- package/range-DOsPN0h5.js +1 -0
- package/textbox-BxYjEAZK.mjs +100 -0
- package/textbox-WnB-9F4y.js +1 -0
- package/use-tooltip-BavqG36Z.js +1 -0
- package/use-tooltip-Bibsm2rU.mjs +158 -0
- package/utils-BipBqkOS.mjs +21 -0
- package/utils-C9NL3q0j.js +1 -0
- package/common/component-utils/array.polyfill.flat.js +0 -32
- package/common/component-utils/forwardRef.js +0 -37
- package/common/component-utils/index.js +0 -18
- package/common/component-utils/usePrevious.js +0 -12
- package/common/component-utils/utils.js +0 -26
- package/common/debounce.js +0 -11
- package/common/event-utils/index.js +0 -123
- package/common/event-utils/types.js +0 -14
- package/common/event-utils/use-key-press.js +0 -33
- package/common/event-utils/use-roving-index.js +0 -35
- package/common/floating-label-utils/hooks.js +0 -133
- package/common/notice-utils/notice-content.js +0 -12
- package/common/notice-utils/notice-cta.js +0 -23
- package/common/notice-utils/notice-footer.js +0 -23
- package/common/notice-utils/notice-title.js +0 -24
- package/common/random-id.js +0 -5
- package/common/range.js +0 -5
- package/common/tooltip-utils/constants.js +0 -95
- package/common/tooltip-utils/index.js +0 -19
- package/common/tooltip-utils/tooltip-close-button.js +0 -8
- package/common/tooltip-utils/tooltip-content.js +0 -25
- package/common/tooltip-utils/tooltip-footer.js +0 -9
- package/common/tooltip-utils/tooltip-host.js +0 -24
- package/common/tooltip-utils/tooltip.js +0 -60
- package/common/tooltip-utils/types.js +0 -2
- package/common/tooltip-utils/use-tooltip.js +0 -27
- package/ebay-alert-dialog/alert-dialog.js +0 -55
- package/ebay-alert-dialog/index.js +0 -8
- package/ebay-badge/badge.js +0 -25
- package/ebay-badge/index.js +0 -8
- package/ebay-breadcrumbs/breadcrumb-item.js +0 -27
- package/ebay-breadcrumbs/breadcrumbs.js +0 -64
- package/ebay-breadcrumbs/index.js +0 -10
- package/ebay-button/button-cell.js +0 -29
- package/ebay-button/button-expand.js +0 -13
- package/ebay-button/button-loading.js +0 -11
- package/ebay-button/button-text.js +0 -9
- package/ebay-button/button.js +0 -95
- package/ebay-button/index.js +0 -10
- package/ebay-button/types.js +0 -2
- package/ebay-calendar/calendar.js +0 -306
- package/ebay-calendar/date-utils.js +0 -58
- package/ebay-calendar/index.js +0 -8
- package/ebay-carousel/carousel-control-button.js +0 -24
- package/ebay-carousel/carousel-item.js +0 -59
- package/ebay-carousel/carousel-list.js +0 -81
- package/ebay-carousel/carousel.js +0 -109
- package/ebay-carousel/helpers.js +0 -123
- package/ebay-carousel/index.js +0 -10
- package/ebay-carousel/scroll-to-transition.js +0 -102
- package/ebay-carousel/types.js +0 -2
- package/ebay-checkbox/checkbox.js +0 -77
- package/ebay-checkbox/index.js +0 -8
- package/ebay-confirm-dialog/confirm-dialog.js +0 -56
- package/ebay-confirm-dialog/index.js +0 -8
- package/ebay-cta-button/cta-button.js +0 -30
- package/ebay-cta-button/index.js +0 -8
- package/ebay-date-textbox/date-textbox.js +0 -179
- package/ebay-date-textbox/index.js +0 -8
- package/ebay-dialog-base/components/animation.js +0 -96
- package/ebay-dialog-base/components/dialog-actions.js +0 -8
- package/ebay-dialog-base/components/dialog-close-button.js +0 -8
- package/ebay-dialog-base/components/dialog-footer.js +0 -8
- package/ebay-dialog-base/components/dialog-header.js +0 -22
- package/ebay-dialog-base/components/dialog-previous-button.js +0 -24
- package/ebay-dialog-base/components/dialogBase.js +0 -152
- package/ebay-dialog-base/dialog-base-with-state.js +0 -63
- package/ebay-dialog-base/index.js +0 -18
- package/ebay-drawer-dialog/components/drawer.js +0 -104
- package/ebay-drawer-dialog/index.js +0 -8
- package/ebay-eek/eek-rating.js +0 -23
- package/ebay-eek/eek-util.js +0 -34
- package/ebay-eek/index.js +0 -8
- package/ebay-fake-menu/index.js +0 -12
- package/ebay-fake-menu/menu-item-separator.js +0 -23
- package/ebay-fake-menu/menu-item.js +0 -72
- package/ebay-fake-menu/menu.js +0 -57
- package/ebay-fake-menu-button/index.js +0 -14
- package/ebay-fake-menu-button/menu-button-item.js +0 -5
- package/ebay-fake-menu-button/menu-button-label.js +0 -8
- package/ebay-fake-menu-button/menu-button-separator.js +0 -23
- package/ebay-fake-menu-button/menu-button.js +0 -105
- package/ebay-fake-tabs/fake-tabs.js +0 -54
- package/ebay-fake-tabs/index.js +0 -10
- package/ebay-fake-tabs/tab.js +0 -24
- package/ebay-field/description.js +0 -26
- package/ebay-field/field.js +0 -12
- package/ebay-field/index.js +0 -12
- package/ebay-field/label.js +0 -29
- package/ebay-field/types.js +0 -2
- package/ebay-fullscreen-dialog/fullscreen-dialog.js +0 -25
- package/ebay-fullscreen-dialog/index.js +0 -8
- package/ebay-icon/icon.js +0 -89
- package/ebay-icon/index.js +0 -8
- package/ebay-icon/types.js +0 -3
- package/ebay-icon-button/icon-button.js +0 -40
- package/ebay-icon-button/index.js +0 -8
- package/ebay-infotip/ebay-infotip-content.js +0 -12
- package/ebay-infotip/ebay-infotip-heading.js +0 -23
- package/ebay-infotip/ebay-infotip-host.js +0 -28
- package/ebay-infotip/ebay-infotip.js +0 -79
- package/ebay-infotip/index.js +0 -14
- package/ebay-infotip/types.js +0 -2
- package/ebay-inline-notice/index.js +0 -10
- package/ebay-inline-notice/inline-notice.js +0 -66
- package/ebay-inline-notice/types.js +0 -2
- package/ebay-lightbox-dialog/index.js +0 -8
- package/ebay-lightbox-dialog/lightbox-dialog.js +0 -27
- package/ebay-listbox-button/index.js +0 -10
- package/ebay-listbox-button/listbox-button-option.js +0 -27
- package/ebay-listbox-button/listbox-button.js +0 -252
- package/ebay-menu/index.js +0 -27
- package/ebay-menu/menu-item-separator.js +0 -23
- package/ebay-menu/menu-item.js +0 -67
- package/ebay-menu/menu.js +0 -149
- package/ebay-menu/types.js +0 -2
- package/ebay-menu-button/index.js +0 -29
- package/ebay-menu-button/menu-button-item.js +0 -5
- package/ebay-menu-button/menu-button-label.js +0 -8
- package/ebay-menu-button/menu-button-separator.js +0 -23
- package/ebay-menu-button/menu-button.js +0 -132
- package/ebay-menu-button/types.js +0 -2
- package/ebay-notice-base/components/ebay-notice-content/index.js +0 -8
- package/ebay-notice-base/components/ebay-notice-content/notice-content.js +0 -4
- package/ebay-notice-base/components/ebay-notice-title/index.js +0 -8
- package/ebay-notice-base/components/ebay-notice-title/notice-title.js +0 -8
- package/ebay-notice-base/index.js +0 -7
- package/ebay-page-notice/index.js +0 -16
- package/ebay-page-notice/page-notice-cta.js +0 -9
- package/ebay-page-notice/page-notice-footer.js +0 -9
- package/ebay-page-notice/page-notice-title.js +0 -23
- package/ebay-page-notice/page-notice.js +0 -66
- package/ebay-pagination/const.js +0 -8
- package/ebay-pagination/helpers.js +0 -92
- package/ebay-pagination/index.js +0 -10
- package/ebay-pagination/pagination-item.js +0 -55
- package/ebay-pagination/pagination.js +0 -146
- package/ebay-pagination/types.js +0 -2
- package/ebay-panel-dialog/index.js +0 -8
- package/ebay-panel-dialog/panel-dialog.js +0 -27
- package/ebay-progress-bar/index.js +0 -8
- package/ebay-progress-bar/progress-bar.js +0 -23
- package/ebay-progress-spinner/index.js +0 -8
- package/ebay-progress-spinner/progress-spinner.js +0 -30
- package/ebay-progress-stepper/ebay-progress-step.js +0 -64
- package/ebay-progress-stepper/ebay-progress-stepper.js +0 -70
- package/ebay-progress-stepper/ebay-progress-title.js +0 -5
- package/ebay-progress-stepper/index.js +0 -12
- package/ebay-progress-stepper/types.js +0 -2
- package/ebay-radio/index.js +0 -8
- package/ebay-radio/radio.js +0 -71
- package/ebay-section-notice/index.js +0 -14
- package/ebay-section-notice/section-notice-footer.js +0 -9
- package/ebay-section-notice/section-notice-title.js +0 -23
- package/ebay-section-notice/section-notice.js +0 -82
- package/ebay-section-title/cta.js +0 -26
- package/ebay-section-title/index.js +0 -16
- package/ebay-section-title/info.js +0 -23
- package/ebay-section-title/overflow.js +0 -23
- package/ebay-section-title/section-title.js +0 -35
- package/ebay-section-title/subtitle.js +0 -23
- package/ebay-section-title/title.js +0 -23
- package/ebay-select/ebay-select-option.js +0 -22
- package/ebay-select/ebay-select.js +0 -129
- package/ebay-select/index.js +0 -10
- package/ebay-signal/index.js +0 -8
- package/ebay-signal/signal.js +0 -24
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog-action.js +0 -24
- package/ebay-snackbar-dialog/components/ebay-snackbar-dialog.js +0 -122
- package/ebay-snackbar-dialog/index.js +0 -7
- package/ebay-split-button/index.js +0 -23
- package/ebay-split-button/split-button.js +0 -30
- package/ebay-split-button/types.js +0 -2
- package/ebay-star-rating/index.js +0 -23
- package/ebay-star-rating/star-rating.js +0 -26
- package/ebay-star-rating-select/index.js +0 -23
- package/ebay-star-rating-select/star-rating-select.js +0 -82
- package/ebay-svg/index.js +0 -8
- package/ebay-svg/svg.js +0 -2548
- package/ebay-switch/ebay-switch.js +0 -61
- package/ebay-switch/index.js +0 -8
- package/ebay-tabs/index.js +0 -12
- package/ebay-tabs/tab-panel.js +0 -24
- package/ebay-tabs/tab.js +0 -24
- package/ebay-tabs/tabs.js +0 -90
- package/ebay-tabs/types.js +0 -2
- package/ebay-textbox/index.js +0 -16
- package/ebay-textbox/postfix-icon.js +0 -26
- package/ebay-textbox/postfix-text.js +0 -8
- package/ebay-textbox/prefix-icon.js +0 -23
- package/ebay-textbox/prefix-text.js +0 -8
- package/ebay-textbox/textbox.js +0 -147
- package/ebay-textbox/types.js +0 -2
- package/ebay-toast-dialog/components/toast.js +0 -26
- package/ebay-toast-dialog/index.js +0 -8
- package/ebay-tooltip/ebay-tooltip-content.js +0 -8
- package/ebay-tooltip/ebay-tooltip-host.js +0 -8
- package/ebay-tooltip/ebay-tooltip.js +0 -85
- package/ebay-tooltip/index.js +0 -14
- package/ebay-tourtip/ebay-tourtip-content.js +0 -8
- package/ebay-tourtip/ebay-tourtip-footer.js +0 -10
- package/ebay-tourtip/ebay-tourtip-heading.js +0 -24
- package/ebay-tourtip/ebay-tourtip-host.js +0 -8
- package/ebay-tourtip/ebay-tourtip.js +0 -70
- package/ebay-tourtip/index.js +0 -18
- package/ebay-video/const.js +0 -19
- package/ebay-video/controls.js +0 -40
- package/ebay-video/index.js +0 -25
- package/ebay-video/reportButton.js +0 -12
- package/ebay-video/source.js +0 -22
- package/ebay-video/types.js +0 -2
- package/ebay-video/video.js +0 -210
package/ebay-carousel.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),R=require("classnames"),O=require("./icon-DK6eEQD8.js"),x=require("./debounce-BQsYxxOL.js");require("./array.polyfill.flat-5BAolFdk.js");const A={prev:"chevronLeft12",next:"chevronRight12"},D={prev:"LEFT",next:"RIGHT"},q=({type:e,label:t,hidden:n,disabled:r,onClick:l})=>{const c=s=>{l(s,{direction:D[e]})};return o.createElement("button",{className:R("carousel__control",`carousel__control--${e}`),"aria-label":t,"aria-disabled":r,disabled:r,onClick:c},o.createElement(O.EbayIcon,{className:R("icon",`icon--carousel-${e}`),focusable:!1,name:A[e],"aria-hidden":n}))};function V(e){const t=e.parentElement,n=t?t.firstElementChild.getBoundingClientRect().left:0,{left:r,right:l}=e.getBoundingClientRect();return{left:r-n,right:l-n}}const H=e=>getComputedStyle(e).overflowX!=="visible",y=(e,t)=>{if(!e.length)return 0;const n=e[e.length-1];return Math.max(n.right-t,0)||0},W=(e,t,n)=>e.length&&Math.min(e[t].left,y(e,n))||0,j=(e,t,n,r,l,c)=>o.Children.map(e,(s,a)=>{const{style:i={}}=s.props;let d;if(n){const u=n+n%1;d=`calc(${100/u}% - ${(u-1)*c/u}px)`}const f=n?a%n===0:!0;return o.cloneElement(s,{...s.props,slideWidth:r,offset:l,ref:u=>{t.current[a]=u},className:f?"carousel__snap-point":s.props.className,style:{...i,width:d||i.width,marginRight:c&&a!==o.Children.count(e)-1?`${c}px`:i.marginRight}})}),B=(e,t,n)=>{if(e>0){let r=e;return r%=t.length||1,r-=r%(n||1),r=Math.abs(r),r}return 0},G=(e,t,n=e)=>{if(t)return Math.ceil(n/t)},X=e=>e==="LEFT"?-1:1,J=(e,t,n,r,l)=>{let c=t,s;if(e==="LEFT"&&c===0)c=n.length-1;else{do{const a=X(e);s=n[c+=a]}while(s&&s.fullyVisible);if(e==="LEFT"&&!l){const a=s.right-r;do s=n[--c];while(s&&s.left>=a);c+=1}}return B(c,n,l)},K=(e,t,n,r=1,l)=>{let c;if(e>=y(t,n)-l)c=t.length-1;else{const s=t.length;let a=0,i=Math.ceil(s/r)-1;for(;i-a>1;){const u=Math.floor((a+i)/2);e>t[u*r].left?a=u:i=u}const d=Math.abs(e-t[a*r].left),f=Math.abs(e-t[i*r].left);c=B((d>f?i:a)*r,t,r)}return c},Q=(e,t)=>{let n,r,l;return function c(){const{scrollLeft:s}=e;if(l!==s){l=s,n=setTimeout(()=>{r=requestAnimationFrame(c)},90);return}t(l)}(),()=>{clearTimeout(n),cancelAnimationFrame(r)}},U=typeof window<"u"&&"scrollBehavior"in document.body.style;function $(e,t,n){if(U)return e.scrollTo({left:t}),Q(e,n);let r,l,c=requestAnimationFrame(u=>{const{scrollLeft:g}=e,L=t-g,h=450;(function T(C){const m=C-u;if(m>h)return e.scrollLeft=t,s(),n();e.scrollLeft=Y(m/h)*L+g,c=requestAnimationFrame(T)})(u)});return e.addEventListener("touchstart",a),s;function s(){cancelAnimationFrame(c),r===void 0?d():(l&&l(),f())}function a(){s(),r=e.scrollLeft,e.addEventListener("touchend",i)}function i(){f(),r===e.scrollLeft&&(l=$(e,t,n))}function d(){e.removeEventListener("touchstart",a)}function f(){e.removeEventListener("touchend",i)}}function Y(e){return e<.5?2*e*e:-1+(4-2*e)*e}const Z=({gap:e=16,itemsPerSlide:t,slideWidth:n,offset:r,activeIndex:l,nextControlDisabled:c,className:s,itemsRef:a,children:i,onSetActiveIndex:d,onScroll:f})=>{const[u,g]=o.useState(0),[L,h]=o.useState(!1),[T,C]=o.useState(!1),m=o.useRef(null),E=o.useRef(null);o.useEffect(()=>{if(!o.Children.count(i)||!m.current)return;if(L){h(!1);return}const b=m.current;H(b)?(C(!0),$(b,r,()=>C(!1))):g(r)},[r]);const p=o.useCallback(()=>{const v=m.current.scrollLeft,b=K(v,a.current,n,t,e);b!==l&&(h(!0),d(b),f({index:b}))},[m.current,a.current,n,l,d]),w=()=>{E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{T||p()},640)};return o.createElement("div",{className:R("carousel__viewport",{"carousel__viewport--mask":!c},s)},o.createElement("ul",{className:"carousel__list",ref:m,onScroll:w,style:{transform:`translate3d(${-u}px, 0, 0)`}},j(i,a,t,n,r,e)))},P=({gap:e=16,index:t=0,itemsPerSlide:n,a11yPreviousText:r,a11yNextText:l,onScroll:c=()=>{},onNext:s=()=>{},onPrevious:a=()=>{},onSlide:i=()=>{},className:d,children:f,...u})=>{const[g,L]=o.useState(t),[h,T]=o.useState(0),[C,m]=o.useState(0),E=o.useRef(null),p=o.useRef([]),w=o.Children.count(f),v=Math.floor(n)||void 0,b=w<=v,I=b||C===0,_=b||C===y(p.current,h),N=()=>{if(!E.current)return;const{width:S}=E.current.getBoundingClientRect();T(S)};o.useEffect(()=>(window.addEventListener("resize",x.debounce(N,16)),()=>{window.removeEventListener("resize",x.debounce(N,16))}),[]),o.useEffect(()=>{m(W(p.current,g,h))},[g,h]),o.useEffect(()=>{t>=0&&t<=w-1&&L(t)},[t]),o.useEffect(()=>{p.current=p.current.splice(0,w)},[f]),o.useEffect(()=>{const{width:S}=E.current.getBoundingClientRect();T(S)},[E.current]);const F=(S,{direction:M})=>{const k=J(M,g,p.current,h,v),z=G(g,v,k);L(k),M==="LEFT"?a(S):s(S),i({slide:z})};return o.createElement("div",{className:R("carousel",d,{"carousel--slides":v,"carousel--peek":v%1===0}),...u},o.createElement("div",{ref:E,className:"carousel__container"},o.createElement(q,{label:r,type:"prev",disabled:I,onClick:F}),o.createElement(Z,{itemsRef:p,offset:C,gap:e,itemsPerSlide:v,nextControlDisabled:_,activeIndex:g,onScroll:c,onSetActiveIndex:L,slideWidth:h},f),o.createElement(q,{type:"next",label:l,disabled:_,onClick:F})))},ee=({slideWidth:e,offset:t,forwardedRef:n,children:r,...l})=>{const c=o.useRef(),[s,a]=o.useState(!1);return o.useImperativeHandle(n,()=>{if(!c.current)return;const{left:i,right:d}=V(c.current),f=i===void 0||i-t>=-.01&&d-t<=e+.01;return a(f),{left:i,right:d,fullyVisible:f}},[e,t]),o.createElement("li",{ref:c,"aria-hidden":!s,...l},r)},te=O.withForwardRef(ee);exports.EbayCarousel=P;exports.EbayCarouselItem=te;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import g, { Children as N, cloneElement as H, useState as w, useRef as y, useEffect as R, useCallback as W, useImperativeHandle as G } from "react";
|
|
2
|
+
import S from "classnames";
|
|
3
|
+
import { E as X, w as j } from "./icon-B_a65KUD.mjs";
|
|
4
|
+
import { d as A } from "./debounce-u81vJ6wg.mjs";
|
|
5
|
+
import "./array.polyfill.flat-Bj5UhY_-.mjs";
|
|
6
|
+
const J = {
|
|
7
|
+
prev: "chevronLeft12",
|
|
8
|
+
next: "chevronRight12"
|
|
9
|
+
}, K = {
|
|
10
|
+
prev: "LEFT",
|
|
11
|
+
next: "RIGHT"
|
|
12
|
+
}, $ = ({ type: t, label: e, hidden: n, disabled: r, onClick: l }) => {
|
|
13
|
+
const o = (c) => {
|
|
14
|
+
l(c, { direction: K[t] });
|
|
15
|
+
};
|
|
16
|
+
return g.createElement(
|
|
17
|
+
"button",
|
|
18
|
+
{ className: S("carousel__control", `carousel__control--${t}`), "aria-label": e, "aria-disabled": r, disabled: r, onClick: o },
|
|
19
|
+
g.createElement(X, { className: S("icon", `icon--carousel-${t}`), focusable: !1, name: J[t], "aria-hidden": n })
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
function Q(t) {
|
|
23
|
+
const e = t.parentElement, n = e ? e.firstElementChild.getBoundingClientRect().left : 0, { left: r, right: l } = t.getBoundingClientRect();
|
|
24
|
+
return {
|
|
25
|
+
left: r - n,
|
|
26
|
+
right: l - n
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const U = (t) => getComputedStyle(t).overflowX !== "visible", F = (t, e) => {
|
|
30
|
+
if (!t.length)
|
|
31
|
+
return 0;
|
|
32
|
+
const n = t[t.length - 1];
|
|
33
|
+
return Math.max(n.right - e, 0) || 0;
|
|
34
|
+
}, Y = (t, e, n) => t.length && Math.min(t[e].left, F(t, n)) || 0, Z = (t, e, n, r, l, o) => N.map(t, (c, s) => {
|
|
35
|
+
const { style: a = {} } = c.props;
|
|
36
|
+
let f;
|
|
37
|
+
if (n) {
|
|
38
|
+
const i = n + n % 1;
|
|
39
|
+
f = `calc(${100 / i}% - ${(i - 1) * o / i}px)`;
|
|
40
|
+
}
|
|
41
|
+
const u = n ? s % n === 0 : !0;
|
|
42
|
+
return H(c, {
|
|
43
|
+
...c.props,
|
|
44
|
+
slideWidth: r,
|
|
45
|
+
offset: l,
|
|
46
|
+
ref: (i) => {
|
|
47
|
+
e.current[s] = i;
|
|
48
|
+
},
|
|
49
|
+
className: u ? "carousel__snap-point" : c.props.className,
|
|
50
|
+
style: {
|
|
51
|
+
...a,
|
|
52
|
+
width: f || a.width,
|
|
53
|
+
marginRight: o && s !== N.count(t) - 1 ? `${o}px` : a.marginRight
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}), D = (t, e, n) => {
|
|
57
|
+
if (t > 0) {
|
|
58
|
+
let r = t;
|
|
59
|
+
return r %= e.length || 1, r -= r % (n || 1), r = Math.abs(r), r;
|
|
60
|
+
}
|
|
61
|
+
return 0;
|
|
62
|
+
}, P = (t, e, n = t) => {
|
|
63
|
+
if (e)
|
|
64
|
+
return Math.ceil(n / e);
|
|
65
|
+
}, tt = (t) => t === "LEFT" ? -1 : 1, et = (t, e, n, r, l) => {
|
|
66
|
+
let o = e, c;
|
|
67
|
+
if (t === "LEFT" && o === 0)
|
|
68
|
+
o = n.length - 1;
|
|
69
|
+
else {
|
|
70
|
+
do {
|
|
71
|
+
const s = tt(t);
|
|
72
|
+
c = n[o += s];
|
|
73
|
+
} while (c && c.fullyVisible);
|
|
74
|
+
if (t === "LEFT" && !l) {
|
|
75
|
+
const s = c.right - r;
|
|
76
|
+
do
|
|
77
|
+
c = n[--o];
|
|
78
|
+
while (c && c.left >= s);
|
|
79
|
+
o += 1;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return D(o, n, l);
|
|
83
|
+
}, nt = (t, e, n, r = 1, l) => {
|
|
84
|
+
let o;
|
|
85
|
+
if (t >= F(e, n) - l)
|
|
86
|
+
o = e.length - 1;
|
|
87
|
+
else {
|
|
88
|
+
const c = e.length;
|
|
89
|
+
let s = 0, a = Math.ceil(c / r) - 1;
|
|
90
|
+
for (; a - s > 1; ) {
|
|
91
|
+
const i = Math.floor((s + a) / 2);
|
|
92
|
+
t > e[i * r].left ? s = i : a = i;
|
|
93
|
+
}
|
|
94
|
+
const f = Math.abs(t - e[s * r].left), u = Math.abs(t - e[a * r].left);
|
|
95
|
+
o = D((f > u ? a : s) * r, e, r);
|
|
96
|
+
}
|
|
97
|
+
return o;
|
|
98
|
+
}, rt = (t, e) => {
|
|
99
|
+
let n, r, l;
|
|
100
|
+
return function o() {
|
|
101
|
+
const { scrollLeft: c } = t;
|
|
102
|
+
if (l !== c) {
|
|
103
|
+
l = c, n = setTimeout(() => {
|
|
104
|
+
r = requestAnimationFrame(o);
|
|
105
|
+
}, 90);
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
e(l);
|
|
109
|
+
}(), () => {
|
|
110
|
+
clearTimeout(n), cancelAnimationFrame(r);
|
|
111
|
+
};
|
|
112
|
+
}, ot = typeof window < "u" && "scrollBehavior" in document.body.style;
|
|
113
|
+
function V(t, e, n) {
|
|
114
|
+
if (ot)
|
|
115
|
+
return t.scrollTo({ left: e }), rt(t, n);
|
|
116
|
+
let r, l, o = requestAnimationFrame((i) => {
|
|
117
|
+
const { scrollLeft: d } = t, L = e - d, h = 450;
|
|
118
|
+
(function T(C) {
|
|
119
|
+
const m = C - i;
|
|
120
|
+
if (m > h)
|
|
121
|
+
return t.scrollLeft = e, c(), n();
|
|
122
|
+
t.scrollLeft = ct(m / h) * L + d, o = requestAnimationFrame(T);
|
|
123
|
+
})(i);
|
|
124
|
+
});
|
|
125
|
+
return t.addEventListener("touchstart", s), c;
|
|
126
|
+
function c() {
|
|
127
|
+
cancelAnimationFrame(o), r === void 0 ? f() : (l && l(), u());
|
|
128
|
+
}
|
|
129
|
+
function s() {
|
|
130
|
+
c(), r = t.scrollLeft, t.addEventListener("touchend", a);
|
|
131
|
+
}
|
|
132
|
+
function a() {
|
|
133
|
+
u(), r === t.scrollLeft && (l = V(t, e, n));
|
|
134
|
+
}
|
|
135
|
+
function f() {
|
|
136
|
+
t.removeEventListener("touchstart", s);
|
|
137
|
+
}
|
|
138
|
+
function u() {
|
|
139
|
+
t.removeEventListener("touchend", a);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function ct(t) {
|
|
143
|
+
return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
|
|
144
|
+
}
|
|
145
|
+
const lt = ({ gap: t = 16, itemsPerSlide: e, slideWidth: n, offset: r, activeIndex: l, nextControlDisabled: o, className: c, itemsRef: s, children: a, onSetActiveIndex: f, onScroll: u }) => {
|
|
146
|
+
const [i, d] = w(0), [L, h] = w(!1), [T, C] = w(!1), m = y(null), E = y(null);
|
|
147
|
+
R(() => {
|
|
148
|
+
if (!N.count(a) || !m.current)
|
|
149
|
+
return;
|
|
150
|
+
if (L) {
|
|
151
|
+
h(!1);
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const v = m.current;
|
|
155
|
+
U(v) ? (C(!0), V(v, r, () => C(!1))) : d(r);
|
|
156
|
+
}, [r]);
|
|
157
|
+
const b = W(() => {
|
|
158
|
+
const p = m.current.scrollLeft, v = nt(p, s.current, n, e, t);
|
|
159
|
+
v !== l && (h(!0), f(v), u({ index: v }));
|
|
160
|
+
}, [m.current, s.current, n, l, f]), _ = () => {
|
|
161
|
+
E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
162
|
+
T || b();
|
|
163
|
+
}, 640);
|
|
164
|
+
};
|
|
165
|
+
return g.createElement(
|
|
166
|
+
"div",
|
|
167
|
+
{ className: S("carousel__viewport", {
|
|
168
|
+
"carousel__viewport--mask": !o
|
|
169
|
+
}, c) },
|
|
170
|
+
g.createElement("ul", { className: "carousel__list", ref: m, onScroll: _, style: { transform: `translate3d(${-i}px, 0, 0)` } }, Z(a, s, e, n, r, t))
|
|
171
|
+
);
|
|
172
|
+
}, dt = ({ gap: t = 16, index: e = 0, itemsPerSlide: n, a11yPreviousText: r, a11yNextText: l, onScroll: o = () => {
|
|
173
|
+
}, onNext: c = () => {
|
|
174
|
+
}, onPrevious: s = () => {
|
|
175
|
+
}, onSlide: a = () => {
|
|
176
|
+
}, className: f, children: u, ...i }) => {
|
|
177
|
+
const [d, L] = w(e), [h, T] = w(0), [C, m] = w(0), E = y(null), b = y([]), _ = N.count(u), p = Math.floor(n) || void 0, v = _ <= p, k = v || C === 0, x = v || C === F(b.current, h), M = () => {
|
|
178
|
+
if (!E.current)
|
|
179
|
+
return;
|
|
180
|
+
const { width: I } = E.current.getBoundingClientRect();
|
|
181
|
+
T(I);
|
|
182
|
+
};
|
|
183
|
+
R(() => (window.addEventListener("resize", A(M, 16)), () => {
|
|
184
|
+
window.removeEventListener("resize", A(M, 16));
|
|
185
|
+
}), []), R(() => {
|
|
186
|
+
m(Y(b.current, d, h));
|
|
187
|
+
}, [d, h]), R(() => {
|
|
188
|
+
e >= 0 && e <= _ - 1 && L(e);
|
|
189
|
+
}, [e]), R(() => {
|
|
190
|
+
b.current = b.current.splice(0, _);
|
|
191
|
+
}, [u]), R(() => {
|
|
192
|
+
const { width: I } = E.current.getBoundingClientRect();
|
|
193
|
+
T(I);
|
|
194
|
+
}, [E.current]);
|
|
195
|
+
const B = (I, { direction: O }) => {
|
|
196
|
+
const z = et(O, d, b.current, h, p), q = P(d, p, z);
|
|
197
|
+
L(z), O === "LEFT" ? s(I) : c(I), a({ slide: q });
|
|
198
|
+
};
|
|
199
|
+
return g.createElement(
|
|
200
|
+
"div",
|
|
201
|
+
{ className: S("carousel", f, {
|
|
202
|
+
"carousel--slides": p,
|
|
203
|
+
"carousel--peek": p % 1 === 0
|
|
204
|
+
}), ...i },
|
|
205
|
+
g.createElement(
|
|
206
|
+
"div",
|
|
207
|
+
{ ref: E, className: "carousel__container" },
|
|
208
|
+
g.createElement($, { label: r, type: "prev", disabled: k, onClick: B }),
|
|
209
|
+
g.createElement(lt, { itemsRef: b, offset: C, gap: t, itemsPerSlide: p, nextControlDisabled: x, activeIndex: d, onScroll: o, onSetActiveIndex: L, slideWidth: h }, u),
|
|
210
|
+
g.createElement($, { type: "next", label: l, disabled: x, onClick: B })
|
|
211
|
+
)
|
|
212
|
+
);
|
|
213
|
+
}, st = ({ slideWidth: t, offset: e, forwardedRef: n, children: r, ...l }) => {
|
|
214
|
+
const o = y(), [c, s] = w(!1);
|
|
215
|
+
return G(n, () => {
|
|
216
|
+
if (!o.current)
|
|
217
|
+
return;
|
|
218
|
+
const { left: a, right: f } = Q(o.current), u = a === void 0 || a - e >= -0.01 && f - e <= t + 0.01;
|
|
219
|
+
return s(u), {
|
|
220
|
+
left: a,
|
|
221
|
+
right: f,
|
|
222
|
+
fullyVisible: u
|
|
223
|
+
};
|
|
224
|
+
}, [t, e]), g.createElement("li", { ref: o, "aria-hidden": !c, ...l }, r);
|
|
225
|
+
}, mt = j(st);
|
|
226
|
+
export {
|
|
227
|
+
dt as EbayCarousel,
|
|
228
|
+
mt as EbayCarouselItem
|
|
229
|
+
};
|
package/ebay-checkbox/README.md
CHANGED
|
@@ -22,6 +22,18 @@ import '@ebay/skin/checkbox'
|
|
|
22
22
|
import '@ebay/skin/checkbox.css'
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
## Import EbaySvg
|
|
26
|
+
|
|
27
|
+
After you render the EbayCheckbox component in your application, if you do not see the checkbox svg, you should add import and render EbaySvg component once at the root level of your application (usually layout file).
|
|
28
|
+
|
|
29
|
+
```jsx
|
|
30
|
+
import { EbaySvg } from "@ebay/ui-core-react/ebay-svg";
|
|
31
|
+
|
|
32
|
+
// Render this in your layout or root level component.
|
|
33
|
+
<EbaySvg />
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
25
37
|
```jsx
|
|
26
38
|
import { EbayLabel } from '@ebay/ui-core-react/ebay-field';
|
|
27
39
|
|
package/ebay-checkbox.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),q=require("classnames"),o=require("./icon-DK6eEQD8.js"),I=require("./label-CnrpYJ-g.js"),F=require("./utils-C9NL3q0j.js"),B=a=>typeof a<"u",S=({id:a,size:t="default",className:k,style:d,checked:s,defaultChecked:b=!1,onChange:m=()=>{},onFocus:u=()=>{},onKeyDown:i=()=>{},children:h,inputRef:x,...E})=>{const[g,y]=c.useState(b),C=n=>{const e=n.target;m(n,{value:e==null?void 0:e.value,checked:!!(e!=null&&e.checked)}),y(e==null?void 0:e.checked)},_=n=>{var e,r;return u(n,{value:(e=n.target)==null?void 0:e.value,checked:!!((r=n.target)!=null&&r.checked)})},N=n=>{const e=n.target;i(n,{value:e.value,checked:!!e.checked})},f=q("checkbox",k,{"checkbox--large":t==="large"}),v=t==="large"?c.createElement(o.EbayIcon,{name:"checkboxChecked24",className:"checkbox__checked"}):c.createElement(o.EbayIcon,{name:"checkboxChecked18",className:"checkbox__checked"}),p=t==="large"?c.createElement(o.EbayIcon,{name:"checkboxUnchecked24",className:"checkbox__unchecked"}):c.createElement(o.EbayIcon,{name:"checkboxUnchecked18",className:"checkbox__unchecked"}),l=F.findComponent(h,I.Label);return c.createElement(c.Fragment,null,c.createElement("span",{className:f,style:{...d,alignItems:"center"}},c.createElement("input",{...E,id:a,className:"checkbox__control",type:"checkbox",checked:B(s)?s:g,onChange:C,onFocus:_,onKeyDown:N,ref:x}),c.createElement("span",{className:"checkbox__icon",hidden:!0},v,p)),l?c.cloneElement(l,{...l.props,position:"end",htmlFor:a}):h)};exports.EbayCheckbox=S;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import a, { useState as F, cloneElement as B } from "react";
|
|
2
|
+
import L from "classnames";
|
|
3
|
+
import { E as n } from "./icon-B_a65KUD.mjs";
|
|
4
|
+
import { L as U } from "./label-DgOo6Mql.mjs";
|
|
5
|
+
import { f as w } from "./utils-BipBqkOS.mjs";
|
|
6
|
+
const D = (o) => typeof o < "u", q = ({ id: o, size: t = "default", className: m, style: k, checked: s, defaultChecked: d = !1, onChange: b = () => {
|
|
7
|
+
}, onFocus: x = () => {
|
|
8
|
+
}, onKeyDown: u = () => {
|
|
9
|
+
}, children: h, inputRef: f, ...g }) => {
|
|
10
|
+
const [C, E] = F(d), _ = (c) => {
|
|
11
|
+
const e = c.target;
|
|
12
|
+
b(c, { value: e == null ? void 0 : e.value, checked: !!(e != null && e.checked) }), E(e == null ? void 0 : e.checked);
|
|
13
|
+
}, p = (c) => {
|
|
14
|
+
var e, r;
|
|
15
|
+
return x(c, { value: (e = c.target) == null ? void 0 : e.value, checked: !!((r = c.target) != null && r.checked) });
|
|
16
|
+
}, i = (c) => {
|
|
17
|
+
const e = c.target;
|
|
18
|
+
u(c, { value: e.value, checked: !!e.checked });
|
|
19
|
+
}, y = L("checkbox", m, { "checkbox--large": t === "large" }), N = t === "large" ? a.createElement(n, { name: "checkboxChecked24", className: "checkbox__checked" }) : a.createElement(n, { name: "checkboxChecked18", className: "checkbox__checked" }), v = t === "large" ? a.createElement(n, { name: "checkboxUnchecked24", className: "checkbox__unchecked" }) : a.createElement(n, { name: "checkboxUnchecked18", className: "checkbox__unchecked" }), l = w(h, U);
|
|
20
|
+
return a.createElement(
|
|
21
|
+
a.Fragment,
|
|
22
|
+
null,
|
|
23
|
+
a.createElement(
|
|
24
|
+
"span",
|
|
25
|
+
{ className: y, style: { ...k, alignItems: "center" } },
|
|
26
|
+
a.createElement("input", { ...g, id: o, className: "checkbox__control", type: "checkbox", checked: D(s) ? s : C, onChange: _, onFocus: p, onKeyDown: i, ref: f }),
|
|
27
|
+
a.createElement(
|
|
28
|
+
"span",
|
|
29
|
+
{ className: "checkbox__icon", hidden: !0 },
|
|
30
|
+
N,
|
|
31
|
+
v
|
|
32
|
+
)
|
|
33
|
+
),
|
|
34
|
+
l ? B(l, {
|
|
35
|
+
...l.props,
|
|
36
|
+
position: "end",
|
|
37
|
+
htmlFor: o
|
|
38
|
+
}) : h
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
q as EbayCheckbox
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),u=require("classnames"),t=require("./dialog-previous-button-7ePoYWyj.js");require("./icon-button-BB6GFLm7.js");const c=require("./button-o4ao46WM.js"),o="confirm-dialog",g=({a11yCloseText:l="Close Dialog",confirmText:s,rejectText:m,onReject:a=()=>{},onConfirm:d=()=>{},...i})=>{const n=e.useRef(null),f="confirm-dialog-confirm",r="confirm-dialog-main";return e.createElement(t.DialogBaseWithState,{focus:n,...i,a11yCloseText:l,role:"dialog",mainId:r,classPrefix:o,className:u(i.className,`${o}--mask-fade`),windowClass:`${o}__window ${o}__window--fade`,buttonPosition:"hidden",onCloseBtnClick:a},i.children,e.createElement(t.EbayDialogFooter,null,e.createElement(c.EbayButton,{onClick:a,className:"confirm-dialog__reject"},m),e.createElement(c.EbayButton,{ref:n,priority:"primary",onClick:d,id:f,"aria-describedby":r,className:"confirm-dialog__confirm"},s)))};exports.EbayConfirmDialog=g;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import o, { useRef as d } from "react";
|
|
2
|
+
import g from "classnames";
|
|
3
|
+
import { D as p, a as E } from "./dialog-previous-button-gmkm4c8J.mjs";
|
|
4
|
+
import "./icon-button-Dy8rjzH7.mjs";
|
|
5
|
+
import { E as l } from "./button-B06HeRsZ.mjs";
|
|
6
|
+
const i = "confirm-dialog", y = ({ a11yCloseText: m = "Close Dialog", confirmText: c, rejectText: t, onReject: e = () => {
|
|
7
|
+
}, onConfirm: s = () => {
|
|
8
|
+
}, ...a }) => {
|
|
9
|
+
const n = d(null), f = "confirm-dialog-confirm", r = "confirm-dialog-main";
|
|
10
|
+
return o.createElement(
|
|
11
|
+
p,
|
|
12
|
+
{ focus: n, ...a, a11yCloseText: m, role: "dialog", mainId: r, classPrefix: i, className: g(a.className, `${i}--mask-fade`), windowClass: `${i}__window ${i}__window--fade`, buttonPosition: "hidden", onCloseBtnClick: e },
|
|
13
|
+
a.children,
|
|
14
|
+
o.createElement(
|
|
15
|
+
E,
|
|
16
|
+
null,
|
|
17
|
+
o.createElement(l, { onClick: e, className: "confirm-dialog__reject" }, t),
|
|
18
|
+
o.createElement(l, { ref: n, priority: "primary", onClick: s, id: f, "aria-describedby": r, className: "confirm-dialog__confirm" }, c)
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
y as EbayConfirmDialog
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),b=require("classnames"),e=require("./icon-DK6eEQD8.js"),i=require("./button-o4ao46WM.js"),m=({size:a,children:n,fluid:c,truncate:r,forwardedRef:o,className:l,...s})=>{const u=b(l,"cta-btn",{"cta-btn--large":a==="large"},{"cta-btn--fluid":c},{"cta-btn--truncated":r});return t.createElement("a",{...s,className:u,ref:o},t.createElement(i.EbayButtonCell,{type:"cta"},t.createElement("span",null,n),t.createElement(e.EbayIcon,{name:"arrowRight24"})))},E=e.withForwardRef(m);exports.EbayCtaButton=E;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import t from "react";
|
|
2
|
+
import l from "classnames";
|
|
3
|
+
import { w as E, E as b } from "./icon-B_a65KUD.mjs";
|
|
4
|
+
import { a as u } from "./button-B06HeRsZ.mjs";
|
|
5
|
+
const f = ({ size: a, children: e, fluid: r, truncate: n, forwardedRef: c, className: o, ...m }) => {
|
|
6
|
+
const s = l(o, "cta-btn", { "cta-btn--large": a === "large" }, { "cta-btn--fluid": r }, { "cta-btn--truncated": n });
|
|
7
|
+
return t.createElement(
|
|
8
|
+
"a",
|
|
9
|
+
{ ...m, className: s, ref: c },
|
|
10
|
+
t.createElement(
|
|
11
|
+
u,
|
|
12
|
+
{ type: "cta" },
|
|
13
|
+
t.createElement("span", null, e),
|
|
14
|
+
t.createElement(b, { name: "arrowRight24" })
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
}, B = E(f);
|
|
18
|
+
export {
|
|
19
|
+
B as EbayCtaButton
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),k=require("makeup-expander"),S=require("./calendar-CPKqwJVQ.js"),i=require("./textbox-WnB-9F4y.js");require("./icon-DK6eEQD8.js");const H=require("classnames"),U=600,V=({className:O,inputPlaceholderText:E="YYYY-MM-DD",a11yOpenPopoverText:T="open calendar",range:o,value:v,rangeEnd:g,defaultValue:D,defaultRangeEnd:R,collapseOnSelect:_,onChange:p=()=>{},onInputChange:M=()=>{},onInputRangeEndChange:P=()=>{},...q})=>{const m=n.useRef(),l=n.useRef(null),[w,d]=n.useState(D||""),[A,u]=n.useState(R||""),f=i.isControlled(v)?v:w,y=i.isControlled(g)?g:A,[s,b]=n.useState(()=>S.dateArgToISO(f)),[c,x]=n.useState(()=>S.dateArgToISO(y)),[C,I]=n.useState(!1),[L,Y]=n.useState(1),B=()=>{I(!0)},z=()=>{I(!1)};n.useEffect(()=>{if(!l.current)return;m.current=new k(l.current,{hostSelector:".ebay-date-textbox--main > .icon-btn",contentSelector:".date-textbox__popover",expandOnClick:!0,autoCollapse:!0}),l.current.addEventListener("expander-expand",B),l.current.addEventListener("expander-collapse",z);const e=()=>{Y(document.documentElement.clientWidth<U?1:2)};return e(),window.addEventListener("resize",e),()=>{var t;(t=m.current)==null||t.destroy(),window.removeEventListener("resize",e)}},[]);const h=(e,t)=>{const r=new Date(e.target.value),a=isNaN(r.getTime())?null:S.toISO(r);t===0?(b(a),d(a||"")):(x(a),u(a||"")),o?p(e,{rangeStart:t===0?a:s,rangeEnd:t===1?a:c}):p(e,{selected:a})},F=(e,{iso:t})=>{if(b(t),d(t),o){const r=s||c,a={rangeStart:t,rangeEnd:r};s&&c?(u(""),x(null),a.rangeEnd=null):r&&(r<t?(b(r),d(r),u(t),x(t),a.rangeStart=r,a.rangeEnd=t):(b(t),d(t),u(r),x(r),a.rangeStart=t,a.rangeEnd=r)),p(e,a)}else p(e,{selected:t});_&&(m.current.expanded=!1)},N=(e,t)=>{t===0?(d(e.target.value),M(e)):(u(e.target.value),P(e))},[W,j]=Array.isArray(E)?E:[E,E];return n.createElement("span",{className:H("date-textbox",O),ref:l},o&&n.createElement(i.EbayTextbox,{value:f,placeholder:W,onInputChange:e=>N(e,0),onBlur:e=>h(e,0)}),n.createElement(i.EbayTextbox,{className:"ebay-date-textbox--main",placeholder:j,value:o?y:f,onInputChange:e=>N(e,o?1:0),onBlur:e=>h(e,o?1:0)},n.createElement(i.EbayTextboxPostfixIcon,{name:"calendar24",buttonAriaLabel:T})),n.createElement("div",{hidden:!C,className:"date-textbox__popover"},n.createElement(S.EbayCalendar,{...q,range:o,interactive:!0,navigable:!0,numMonths:L,selected:s&&c?[s,c]:s||c||void 0,onSelect:F})))};exports.EbayDateTextbox=V;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import l, { useRef as y, useState as c, useEffect as q } from "react";
|
|
2
|
+
import G from "makeup-expander";
|
|
3
|
+
import { d as _, E as J, t as K } from "./calendar-Dq0eM9VC.mjs";
|
|
4
|
+
import { E as D, c as Q, i as O } from "./textbox-BxYjEAZK.mjs";
|
|
5
|
+
import "./icon-B_a65KUD.mjs";
|
|
6
|
+
import X from "classnames";
|
|
7
|
+
const Z = 600, oe = ({ className: R, inputPlaceholderText: m = "YYYY-MM-DD", a11yOpenPopoverText: w = "open calendar", range: r, value: v, rangeEnd: S, defaultValue: L, defaultRangeEnd: M, collapseOnSelect: P, onChange: p = () => {
|
|
8
|
+
}, onInputChange: A = () => {
|
|
9
|
+
}, onInputRangeEndChange: C = () => {
|
|
10
|
+
}, ...T }) => {
|
|
11
|
+
const x = y(), d = y(null), [Y, u] = c(L || ""), [B, i] = c(M || ""), b = O(v) ? v : Y, g = O(S) ? S : B, [o, E] = c(() => _(b)), [s, f] = c(() => _(g)), [z, I] = c(!1), [F, W] = c(1), k = () => {
|
|
12
|
+
I(!0);
|
|
13
|
+
}, H = () => {
|
|
14
|
+
I(!1);
|
|
15
|
+
};
|
|
16
|
+
q(() => {
|
|
17
|
+
if (!d.current)
|
|
18
|
+
return;
|
|
19
|
+
x.current = new G(d.current, {
|
|
20
|
+
hostSelector: ".ebay-date-textbox--main > .icon-btn",
|
|
21
|
+
contentSelector: ".date-textbox__popover",
|
|
22
|
+
expandOnClick: !0,
|
|
23
|
+
autoCollapse: !0
|
|
24
|
+
}), d.current.addEventListener("expander-expand", k), d.current.addEventListener("expander-collapse", H);
|
|
25
|
+
const e = () => {
|
|
26
|
+
W(document.documentElement.clientWidth < Z ? 1 : 2);
|
|
27
|
+
};
|
|
28
|
+
return e(), window.addEventListener("resize", e), () => {
|
|
29
|
+
var t;
|
|
30
|
+
(t = x.current) == null || t.destroy(), window.removeEventListener("resize", e);
|
|
31
|
+
};
|
|
32
|
+
}, []);
|
|
33
|
+
const h = (e, t) => {
|
|
34
|
+
const a = new Date(e.target.value), n = isNaN(a.getTime()) ? null : K(a);
|
|
35
|
+
t === 0 ? (E(n), u(n || "")) : (f(n), i(n || "")), r ? p(e, {
|
|
36
|
+
rangeStart: t === 0 ? n : o,
|
|
37
|
+
rangeEnd: t === 1 ? n : s
|
|
38
|
+
}) : p(e, {
|
|
39
|
+
selected: n
|
|
40
|
+
});
|
|
41
|
+
}, U = (e, { iso: t }) => {
|
|
42
|
+
if (E(t), u(t), r) {
|
|
43
|
+
const a = o || s, n = {
|
|
44
|
+
rangeStart: t,
|
|
45
|
+
rangeEnd: a
|
|
46
|
+
};
|
|
47
|
+
o && s ? (i(""), f(null), n.rangeEnd = null) : a && (a < t ? (E(a), u(a), i(t), f(t), n.rangeStart = a, n.rangeEnd = t) : (E(t), u(t), i(a), f(a), n.rangeStart = t, n.rangeEnd = a)), p(e, n);
|
|
48
|
+
} else
|
|
49
|
+
p(e, {
|
|
50
|
+
selected: t
|
|
51
|
+
});
|
|
52
|
+
P && (x.current.expanded = !1);
|
|
53
|
+
}, N = (e, t) => {
|
|
54
|
+
t === 0 ? (u(e.target.value), A(e)) : (i(e.target.value), C(e));
|
|
55
|
+
}, [V, j] = Array.isArray(m) ? m : [m, m];
|
|
56
|
+
return l.createElement(
|
|
57
|
+
"span",
|
|
58
|
+
{ className: X("date-textbox", R), ref: d },
|
|
59
|
+
r && l.createElement(D, { value: b, placeholder: V, onInputChange: (e) => N(e, 0), onBlur: (e) => h(e, 0) }),
|
|
60
|
+
l.createElement(
|
|
61
|
+
D,
|
|
62
|
+
{ className: "ebay-date-textbox--main", placeholder: j, value: r ? g : b, onInputChange: (e) => N(e, r ? 1 : 0), onBlur: (e) => h(e, r ? 1 : 0) },
|
|
63
|
+
l.createElement(Q, { name: "calendar24", buttonAriaLabel: w })
|
|
64
|
+
),
|
|
65
|
+
l.createElement(
|
|
66
|
+
"div",
|
|
67
|
+
{ hidden: !z, className: "date-textbox__popover" },
|
|
68
|
+
l.createElement(J, { ...T, range: r, interactive: !0, navigable: !0, numMonths: F, selected: o && s ? [o, s] : o || s || void 0, onSelect: U })
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
oe as EbayDateTextbox
|
|
74
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./dialog-previous-button-7ePoYWyj.js");exports.DialogBaseWithState=o.DialogBaseWithState;exports.EbayDialogActions=o.EbayDialogActions;exports.EbayDialogCloseButton=o.EbayDialogCloseButton;exports.EbayDialogFooter=o.EbayDialogFooter;exports.EbayDialogHeader=o.EbayDialogHeader;exports.EbayDialogPreviousButton=o.EbayDialogPreviousButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { D as s, c as t, b as i, a as e, E as l, d as D } from "./dialog-previous-button-gmkm4c8J.mjs";
|
|
2
|
+
export {
|
|
3
|
+
s as DialogBaseWithState,
|
|
4
|
+
t as EbayDialogActions,
|
|
5
|
+
i as EbayDialogCloseButton,
|
|
6
|
+
e as EbayDialogFooter,
|
|
7
|
+
l as EbayDialogHeader,
|
|
8
|
+
D as EbayDialogPreviousButton
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./drawer-BxxlJwkZ.js");exports.EbayDrawerDialog=e.EbayDrawerDialog;
|
package/ebay-eek.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),u=require("classnames"),i=require("./icon-DK6eEQD8.js"),d={"A+++":["D","E","G"],"A++":["E","G"],"A+":["F","G"],A:["G"]},E=r=>{const{max:t,min:n,rating:s}=r,l=d[t];if(!(l&&l.indexOf(n)>-1))return null;let e=t,c=1;for(;e!==s;){if(c++,n===e)return null;e.length>1?e=e.slice(0,e.length-1):e=String.fromCharCode(e.charCodeAt(0)+1)}return c>7?7:c},m=({min:r="",max:t="",rating:n,a11yText:s,className:l})=>{const e=E({rating:n,min:r,max:t}),c=u(l,"eek",{[`eek--rating-${e}`]:!!e}),o=`Energy Rating: ${n}. Range: ${t} - ${r}.`;return a.createElement("div",{className:c,role:"figure","aria-label":s||o},a.createElement("div",{className:"eek__container","aria-hidden":!0},a.createElement("span",{className:"eek__rating-range"},a.createElement("span",{"aria-hidden":"true"},t),a.createElement(i.EbayIcon,{name:"eekRangeArrow"}),a.createElement("span",{"aria-hidden":"true"},r)),a.createElement("span",{className:"eek__rating","aria-hidden":"true"},n)),a.createElement(i.EbayIcon,{name:"eekArrow"}))};exports.EbayEek=m;
|
package/ebay-eek.mjs
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import a from "react";
|
|
2
|
+
import m from "classnames";
|
|
3
|
+
import { E as c } from "./icon-B_a65KUD.mjs";
|
|
4
|
+
const d = {
|
|
5
|
+
"A+++": ["D", "E", "G"],
|
|
6
|
+
"A++": ["E", "G"],
|
|
7
|
+
"A+": ["F", "G"],
|
|
8
|
+
A: ["G"]
|
|
9
|
+
}, E = (n) => {
|
|
10
|
+
const { max: t, min: r, rating: i } = n, s = d[t];
|
|
11
|
+
if (!(s && s.indexOf(r) > -1))
|
|
12
|
+
return null;
|
|
13
|
+
let e = t, l = 1;
|
|
14
|
+
for (; e !== i; ) {
|
|
15
|
+
if (l++, r === e)
|
|
16
|
+
return null;
|
|
17
|
+
e.length > 1 ? e = e.slice(0, e.length - 1) : e = String.fromCharCode(e.charCodeAt(0) + 1);
|
|
18
|
+
}
|
|
19
|
+
return l > 7 ? 7 : l;
|
|
20
|
+
}, p = ({ min: n = "", max: t = "", rating: r, a11yText: i, className: s }) => {
|
|
21
|
+
const e = E({ rating: r, min: n, max: t }), l = m(s, "eek", { [`eek--rating-${e}`]: !!e }), o = `Energy Rating: ${r}. Range: ${t} - ${n}.`;
|
|
22
|
+
return a.createElement(
|
|
23
|
+
"div",
|
|
24
|
+
{ className: l, role: "figure", "aria-label": i || o },
|
|
25
|
+
a.createElement(
|
|
26
|
+
"div",
|
|
27
|
+
{ className: "eek__container", "aria-hidden": !0 },
|
|
28
|
+
a.createElement(
|
|
29
|
+
"span",
|
|
30
|
+
{ className: "eek__rating-range" },
|
|
31
|
+
a.createElement("span", { "aria-hidden": "true" }, t),
|
|
32
|
+
a.createElement(c, { name: "eekRangeArrow" }),
|
|
33
|
+
a.createElement("span", { "aria-hidden": "true" }, n)
|
|
34
|
+
),
|
|
35
|
+
a.createElement("span", { className: "eek__rating", "aria-hidden": "true" }, r)
|
|
36
|
+
),
|
|
37
|
+
a.createElement(c, { name: "eekArrow" })
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
p as EbayEek
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./menu-button-label-BcgasGA4.js");exports.EbayFakeMenuButton=e.EbayMenuButton;exports.EbayFakeMenuButtonItem=e.EbayFakeMenuButtonItem;exports.EbayFakeMenuButtonLabel=e.EbayFakeMenuButtonLabel;exports.EbayFakeMenuButtonSeparator=e.EbayMenuButtonSeparator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./menu-item-DBi1NcrM.js"),t=require("react"),n=require("classnames"),u=({className:a,...r})=>t.createElement("hr",{...r,className:n(a,"fake-menu__separator"),role:"separator"});exports.EbayFakeMenu=e.EbayFakeMenu;exports.EbayFakeMenuItem=e.EbayMenuItem;exports.EbayFakeMenuSeparator=u;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { E, a as c } from "./menu-item-jlKZ3uT4.mjs";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import t from "classnames";
|
|
4
|
+
const s = ({ className: a, ...e }) => r.createElement("hr", { ...e, className: t(a, "fake-menu__separator"), role: "separator" });
|
|
5
|
+
export {
|
|
6
|
+
E as EbayFakeMenu,
|
|
7
|
+
c as EbayFakeMenuItem,
|
|
8
|
+
s as EbayFakeMenuSeparator
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),m=require("classnames"),o=require("./utils-C9NL3q0j.js"),c=({children:t,href:s,ariaCurrent:n,className:a,...r})=>e.createElement("li",{...r,className:m(a,"fake-tabs__item")},e.createElement("a",{href:s,"aria-current":n},t)),f=({selectedIndex:t=0,tabMatchesCurrentUrl:s,className:n,children:a,...r})=>{const b=s===!1?"true":"page",i=o.filterByType(a,c).map((l,E)=>e.cloneElement(l,{...l.props,ariaCurrent:t===E?b:null})),u=o.excludeComponent(a,c);return e.createElement("div",{...r,className:m(n,"fake-tabs")},e.createElement("ul",{className:"fake-tabs__items"},i),e.createElement("div",{className:"fake-tabs__content"},e.createElement("div",{className:"fake-tabs__cell"},u)))};exports.EbayFakeTab=c;exports.EbayFakeTabs=f;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import e, { cloneElement as p } from "react";
|
|
2
|
+
import m from "classnames";
|
|
3
|
+
import { b as E, e as u } from "./utils-BipBqkOS.mjs";
|
|
4
|
+
const l = ({ children: t, href: s, ariaCurrent: r, className: a, ...n }) => e.createElement(
|
|
5
|
+
"li",
|
|
6
|
+
{ ...n, className: m(a, "fake-tabs__item") },
|
|
7
|
+
e.createElement("a", { href: s, "aria-current": r }, t)
|
|
8
|
+
), d = ({ selectedIndex: t = 0, tabMatchesCurrentUrl: s, className: r, children: a, ...n }) => {
|
|
9
|
+
const o = s === !1 ? "true" : "page", b = E(a, l).map((c, f) => p(c, {
|
|
10
|
+
...c.props,
|
|
11
|
+
ariaCurrent: t === f ? o : null
|
|
12
|
+
})), i = u(a, l);
|
|
13
|
+
return e.createElement(
|
|
14
|
+
"div",
|
|
15
|
+
{ ...n, className: m(r, "fake-tabs") },
|
|
16
|
+
e.createElement("ul", { className: "fake-tabs__items" }, b),
|
|
17
|
+
e.createElement(
|
|
18
|
+
"div",
|
|
19
|
+
{ className: "fake-tabs__content" },
|
|
20
|
+
e.createElement("div", { className: "fake-tabs__cell" }, i)
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
l as EbayFakeTab,
|
|
26
|
+
d as EbayFakeTabs
|
|
27
|
+
};
|
package/ebay-field.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),a=require("classnames"),o=require("./label-CnrpYJ-g.js"),p=({className:e,layout:l="inline",children:t})=>{const n=l==="block"?"div":"span";return r.createElement(n,{className:a("field",e)},t)},d=({type:e,position:l="below",className:t,children:n,...s})=>{const i=a(t,"field__description",{[`field__description--${e}`]:e}),c=l==="below"?"div":"span";return r.createElement(c,{...s,className:i},r.createElement("span",null,n))};exports.EbayLabel=o.Label;exports.EbayField=p;exports.EbayFieldDescription=d;
|
package/ebay-field.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import t from "react";
|
|
2
|
+
import l from "classnames";
|
|
3
|
+
import { L as f } from "./label-DgOo6Mql.mjs";
|
|
4
|
+
const m = ({ className: e, layout: a = "inline", children: r }) => {
|
|
5
|
+
const s = a === "block" ? "div" : "span";
|
|
6
|
+
return t.createElement(s, { className: l("field", e) }, r);
|
|
7
|
+
}, d = ({ type: e, position: a = "below", className: r, children: s, ...n }) => {
|
|
8
|
+
const i = l(r, "field__description", { [`field__description--${e}`]: e }), o = a === "below" ? "div" : "span";
|
|
9
|
+
return t.createElement(
|
|
10
|
+
o,
|
|
11
|
+
{ ...n, className: i },
|
|
12
|
+
t.createElement("span", null, s)
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
m as EbayField,
|
|
17
|
+
d as EbayFieldDescription,
|
|
18
|
+
f as EbayLabel
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),o=require("classnames"),r=require("./dialog-previous-button-7ePoYWyj.js");require("./icon-button-BB6GFLm7.js");const e="fullscreen-dialog",c=({open:s,onClose:t=()=>{},className:i,animated:l,...n})=>a.createElement(r.DialogBaseWithState,{...n,classPrefix:e,buttonPosition:"right",onCloseBtnClick:t,transitionElement:"window",animated:l,className:o(i,`${e}--mask-fade-slow`),windowClass:o(`${e}__window`,`${e}__window--slide`),open:s});exports.EbayFullscreenDialog=c;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import n from "react";
|
|
2
|
+
import s from "classnames";
|
|
3
|
+
import { D as r } from "./dialog-previous-button-gmkm4c8J.mjs";
|
|
4
|
+
import "./icon-button-Dy8rjzH7.mjs";
|
|
5
|
+
const o = "fullscreen-dialog", f = ({ open: t, onClose: e = () => {
|
|
6
|
+
}, className: i, animated: a, ...l }) => n.createElement(r, { ...l, classPrefix: o, buttonPosition: "right", onCloseBtnClick: e, transitionElement: "window", animated: a, className: s(i, `${o}--mask-fade-slow`), windowClass: s(`${o}__window`, `${o}__window--slide`), open: t });
|
|
7
|
+
export {
|
|
8
|
+
f as EbayFullscreenDialog
|
|
9
|
+
};
|
package/ebay-icon/icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/ebay-icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,GAAG,EAAE,QAAQ,EAAuB,MAAM,OAAO,CAAA;AAIrE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;CACrC,CAAC;;
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/ebay-icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,GAAG,EAAE,QAAQ,EAAuB,MAAM,OAAO,CAAA;AAIrE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;CACrC,CAAC;;AAwFF,wBAAuC"}
|
|
@@ -13,11 +13,13 @@ import { EbayIconButton } from '@ebay/ui-core-react/ebay-icon-button'
|
|
|
13
13
|
|
|
14
14
|
### Import following styles from SKIN
|
|
15
15
|
```jsx harmony
|
|
16
|
+
import "@ebay/skin/icon"
|
|
16
17
|
import "@ebay/skin/icon-button"
|
|
17
18
|
```
|
|
18
19
|
|
|
19
20
|
### Or import styles using SCSS/CSS
|
|
20
21
|
```jsx harmony
|
|
22
|
+
import '@ebay/skin/icon.css'
|
|
21
23
|
import '@ebay/skin/icon-button.css'
|
|
22
24
|
```
|
|
23
25
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./icon-button-BB6GFLm7.js");exports.EbayIconButton=t.EbayIconButton;
|