@ebay/ui-core-react 8.15.0 → 8.17.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/{dialog-previous-button-D-rmw6O1.js → dialog-previous-button-aXPjyhOT.js} +1 -1
- package/ebay-alert-dialog/index.js +1 -1
- package/ebay-confirm-dialog/index.js +1 -1
- package/ebay-date-textbox/index.js +1 -1
- package/ebay-dialog-base/index.js +1 -1
- package/ebay-drawer-dialog-deprecated/index.js +1 -1
- package/ebay-file-preview-card/index.js +1 -1
- package/ebay-file-preview-card-group/index.js +1 -1
- package/ebay-filter-input/README.md +106 -0
- package/ebay-filter-input/filter-input.d.ts +18 -0
- package/ebay-filter-input/filter-input.d.ts.map +1 -0
- package/ebay-filter-input/index.d.ts +2 -0
- package/ebay-filter-input/index.d.ts.map +1 -0
- package/ebay-filter-input/index.js +1 -0
- package/ebay-fullscreen-dialog-deprecated/index.js +1 -1
- package/ebay-icon/icons/ebay-icon-ai-search-filled-24.d.ts +3 -0
- package/ebay-icon/icons/ebay-icon-ai-search-filled-24.d.ts.map +1 -0
- package/ebay-icon/icons/ebay-icon-live-bag-filled-24.d.ts +3 -0
- package/ebay-icon/icons/ebay-icon-live-bag-filled-24.d.ts.map +1 -0
- package/ebay-icon/icons/ebay-icon-live-bag-play-filled-16-colored.d.ts +3 -0
- package/ebay-icon/icons/ebay-icon-live-bag-play-filled-16-colored.d.ts.map +1 -0
- package/ebay-icon/icons/ebay-icon-live-bag-play-filled-24-colored.d.ts +3 -0
- package/ebay-icon/icons/ebay-icon-live-bag-play-filled-24-colored.d.ts.map +1 -0
- package/ebay-icon/icons/ebay-icon-live-bag-play-filled-64-colored.d.ts +3 -0
- package/ebay-icon/icons/ebay-icon-live-bag-play-filled-64-colored.d.ts.map +1 -0
- package/ebay-icon/icons/ebay-icon-money-stack-blue-12-colored.d.ts +3 -0
- package/ebay-icon/icons/ebay-icon-money-stack-blue-12-colored.d.ts.map +1 -0
- package/ebay-icon/icons/ebay-icon-money-stack-blue-18-colored.d.ts +3 -0
- package/ebay-icon/icons/ebay-icon-money-stack-blue-18-colored.d.ts.map +1 -0
- package/ebay-icon/icons/ebay-icon-money-stack-blue-24-colored.d.ts +3 -0
- package/ebay-icon/icons/ebay-icon-money-stack-blue-24-colored.d.ts.map +1 -0
- package/ebay-icon/icons/ebay-icon-money-stack-blue-32-colored.d.ts +3 -0
- package/ebay-icon/icons/ebay-icon-money-stack-blue-32-colored.d.ts.map +1 -0
- package/ebay-icon/types.d.ts +1 -1
- package/ebay-icon/types.d.ts.map +1 -1
- package/ebay-infotip/index.js +1 -1
- package/ebay-item-tile/index.js +1 -1
- package/ebay-item-tile-group/index.js +1 -1
- package/ebay-lightbox-dialog/index.js +1 -1
- package/ebay-menu/index.js +1 -1
- package/ebay-menu/menu.d.ts.map +1 -1
- package/ebay-menu-button/index.js +1 -1
- package/ebay-number-input/index.js +1 -1
- package/ebay-panel-dialog/index.js +1 -1
- package/ebay-phone-input/index.js +1 -1
- package/ebay-snackbar-dialog/index.js +1 -1
- package/ebay-split-button/index.js +1 -1
- package/ebay-svg/index.js +1 -1
- package/ebay-svg/symbols.d.ts.map +1 -1
- package/ebay-table/README.md +3 -7
- package/ebay-textbox/index.js +1 -1
- package/ebay-textbox/textbox.d.ts +1 -0
- package/ebay-textbox/textbox.d.ts.map +1 -1
- package/ebay-toast-dialog/index.js +1 -1
- package/ebay-video/types.d.ts +1 -0
- package/ebay-video/types.d.ts.map +1 -1
- package/{file-preview-card-C2KakGGD.js → file-preview-card-Dikvua1q.js} +1 -1
- package/icons/ebay-icon-ai-search-filled-24/index.js +1 -0
- package/icons/ebay-icon-live-bag-filled-24/index.js +1 -0
- package/icons/ebay-icon-live-bag-play-filled-16-colored/index.js +1 -0
- package/icons/ebay-icon-live-bag-play-filled-24-colored/index.js +1 -0
- package/icons/ebay-icon-live-bag-play-filled-64-colored/index.js +1 -0
- package/icons/ebay-icon-money-stack-blue-12-colored/index.js +1 -0
- package/icons/ebay-icon-money-stack-blue-18-colored/index.js +1 -0
- package/icons/ebay-icon-money-stack-blue-24-colored/index.js +1 -0
- package/icons/ebay-icon-money-stack-blue-32-colored/index.js +1 -0
- package/icons/ebay-icon-stepper-confirmation-24/index.js +1 -1
- package/icons/ebay-icon-stepper-current-24/index.js +1 -1
- package/icons/ebay-icon-stepper-upcoming-24/index.js +1 -1
- package/{item-tile-CRNk_vOp.js → item-tile-BOdixw8F.js} +1 -1
- package/{lightbox-dialog--Xag7SCa.js → lightbox-dialog-DA3hBPt_.js} +1 -1
- package/menu-D1yitU4y.js +1 -0
- package/{menu-button-7r4Zgf7-.js → menu-button-IlgSfSj5.js} +1 -1
- package/package.json +3 -3
- package/textbox-5DvabGMY.js +1 -0
- package/menu-DwFmC8e3.js +0 -1
- package/textbox-DAb7vY_B.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../src/ebay-svg/symbols.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../src/ebay-svg/symbols.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,OAAO,qBA4+BnB,CAAA"}
|
package/ebay-table/README.md
CHANGED
|
@@ -41,13 +41,9 @@ import "@ebay/skin/table.css";
|
|
|
41
41
|
|
|
42
42
|
```tsx
|
|
43
43
|
<EbayTable>
|
|
44
|
-
<EbayTableHeader>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<EbayTableCell>Column 2</EbayTableCell>
|
|
48
|
-
<EbayTableCell>Column 3</EbayTableCell>
|
|
49
|
-
</EbayTableRow>
|
|
50
|
-
</EbayTableHeader>
|
|
44
|
+
<EbayTableHeader>Column 1</EbayTableHeader>
|
|
45
|
+
<EbayTableHeader>Column 2</EbayTableHeader>
|
|
46
|
+
<EbayTableHeader>Column 3</EbayTableHeader>
|
|
51
47
|
<EbayTableRow>
|
|
52
48
|
<EbayTableCell>Row 1, Cell 1</EbayTableCell>
|
|
53
49
|
<EbayTableCell>Row 1, Cell 2</EbayTableCell>
|
package/ebay-textbox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../textbox-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../textbox-5DvabGMY.js");exports.EbayTextbox=x.EbayTextbox;exports.EbayTextboxPostfixIcon=x.EbayTextboxPostfixIcon;exports.EbayTextboxPostfixText=x.EbayTextboxPostfixText;exports.EbayTextboxPrefixIcon=x.EbayTextboxPrefixIcon;exports.EbayTextboxPrefixText=x.EbayTextboxPrefixText;
|
|
@@ -25,6 +25,7 @@ export type EbayTextboxProps = {
|
|
|
25
25
|
onFloatingLabelInit?: () => void;
|
|
26
26
|
onButtonClick?: EbayKeyboardEventHandler<HTMLInputElement, TextboxEventProps> & EbayMouseEventHandler<HTMLInputElement, TextboxEventProps>;
|
|
27
27
|
forwardedRef?: Ref<HTMLTextAreaElement | HTMLInputElement>;
|
|
28
|
+
inputRef?: Ref<HTMLTextAreaElement | HTMLInputElement>;
|
|
28
29
|
opaqueLabel?: boolean;
|
|
29
30
|
} & Omit<TextInputProps, "onFocus" | "onBlur" | "onChange" | "onKeyPress" | "onKeyUp" | "onKeyDown" | "onInvalid">;
|
|
30
31
|
declare const _default: React.ForwardRefExoticComponent<Omit<EbayTextboxProps, "ref"> & React.RefAttributes<React.FC<EbayTextboxProps>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textbox.d.ts","sourceRoot":"","sources":["../../src/ebay-textbox/textbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAEV,cAAc,EAEd,GAAG,EASN,MAAM,OAAO,CAAC;AAQf,OAAO,EACH,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,YAAY,GAAI,QAAQ,OAAO,KAAG,OAAuC,CAAC;AAEvF,KAAK,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC;AAE3E,MAAM,MAAM,iBAAiB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAClD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,sBAAsB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC7F,aAAa,CAAC,EAAE,sBAAsB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAClG,OAAO,CAAC,EAAE,qBAAqB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC3F,MAAM,CAAC,EAAE,qBAAqB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC1F,UAAU,CAAC,EAAE,wBAAwB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IACjG,OAAO,CAAC,EAAE,wBAAwB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC9F,SAAS,CAAC,EAAE,wBAAwB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAChG,SAAS,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IACxF,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,wBAAwB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,GACzE,qBAAqB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC/D,YAAY,CAAC,EAAE,GAAG,CAAC,mBAAmB,GAAG,gBAAgB,CAAC,CAAC;IAC3D,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC,CAAC;;
|
|
1
|
+
{"version":3,"file":"textbox.d.ts","sourceRoot":"","sources":["../../src/ebay-textbox/textbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAEV,cAAc,EAEd,GAAG,EASN,MAAM,OAAO,CAAC;AAQf,OAAO,EACH,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,YAAY,GAAI,QAAQ,OAAO,KAAG,OAAuC,CAAC;AAEvF,KAAK,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC;AAE3E,MAAM,MAAM,iBAAiB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAClD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,sBAAsB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC7F,aAAa,CAAC,EAAE,sBAAsB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAClG,OAAO,CAAC,EAAE,qBAAqB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC3F,MAAM,CAAC,EAAE,qBAAqB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC1F,UAAU,CAAC,EAAE,wBAAwB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IACjG,OAAO,CAAC,EAAE,wBAAwB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC9F,SAAS,CAAC,EAAE,wBAAwB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAChG,SAAS,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,GAAG,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IACxF,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,wBAAwB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,GACzE,qBAAqB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC/D,YAAY,CAAC,EAAE,GAAG,CAAC,mBAAmB,GAAG,gBAAgB,CAAC,CAAC;IAC3D,QAAQ,CAAC,EAAE,GAAG,CAAC,mBAAmB,GAAG,gBAAgB,CAAC,CAAC;IACvD,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC,CAAC;;AAyJnH,wBAA6D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../tslib.es6-C4EgNkz1.js"),i=require("react"),r=require("classnames"),l=require("../dialog-previous-button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../tslib.es6-C4EgNkz1.js"),i=require("react"),r=require("classnames"),l=require("../dialog-previous-button-aXPjyhOT.js");require("../icon-button-AJ6dtyvc.js");require("../icon-I30uh1Ov.js");const n=e=>{var{className:t,onClose:s=()=>{}}=e,o=a.__rest(e,["className","onClose"]);return i.createElement(l.DialogBaseWithState,Object.assign({},o,{isModal:!1,baseEl:"aside",classPrefix:"toast-dialog",buttonPosition:"right",transitionElement:"root",className:r(t,"toast-dialog--transition"),onCloseBtnClick:s}))};exports.EbayToast=n;
|
package/ebay-video/types.d.ts
CHANGED
|
@@ -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,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"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ebay-video/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,yCAAyC,CAAC;AACjE,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const k=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),g=require("classnames"),B=require("./utils-C9NL3q0j.js"),N=require("./icon-button-AJ6dtyvc.js"),O=require("./menu-button-
|
|
1
|
+
"use strict";const k=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),g=require("classnames"),B=require("./utils-C9NL3q0j.js"),N=require("./icon-button-AJ6dtyvc.js"),O=require("./menu-button-IlgSfSj5.js"),C=require("./menu-D1yitU4y.js"),j=require("./icons/ebay-icon-close-16/index.js"),U=require("./icons/ebay-icon-delete-16/index.js"),L=require("./progress-spinner-DTmNtD59.js"),R=require("./icons/ebay-icon-file-24/index.js"),A=require("./icons/ebay-icon-play-16/index.js"),D=({status:t,menuActions:n,onMenuAction:l,deleteText:s,onCancel:a,onDelete:i,onAction:p,a11yCancelUploadText:m,action:r})=>{const b=(c,u)=>{var o;if(u){const d=(o=u.checked)===null||o===void 0?void 0:o[0],E=n&&d!==void 0&&d in n?n[d].event:null;E&&l?l(c,Object.assign(Object.assign({},u),{eventName:E})):i&&i(c)}};return t==="uploading"?e.createElement(N.EbayIconButton,{"aria-label":m,onClick:a,className:"file-preview-card__action",icon:e.createElement(j.EbayIconClose16,null)}):n?.length?e.createElement(e.Fragment,null,e.createElement(O.EbayMenuButton,{variant:"overflow",className:"file-preview-card__action",onSelect:b},n.map(c=>e.createElement(C.EbayMenuItem,{value:c.event,key:c.label},c.label)),e.createElement(C.EbayMenuItem,{key:"delete",value:"delete"},s))):r?.props&&r.props.icon&&r.props["aria-label"]?e.createElement(N.EbayIconButton,Object.assign({onClick:p,className:g("file-preview-card__action",r.props.className)},r.props)):s?e.createElement(N.EbayIconButton,{"aria-label":s,className:"file-preview-card__action",icon:e.createElement(U.EbayIconDelete16,null),onClick:i}):e.createElement(e.Fragment,null)},F=({file:t,status:n,seeMore:l})=>{if(n==="uploading")return e.createElement(L.EbayProgressSpinner,{className:"file-preview-card__asset"});switch(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?.src,alt:t?.name});default:return e.createElement(R.EbayIconFile24,{className:"file-preview-card__asset"})}},W=({file:t,infoText:n})=>t&&t.type!=="image"?e.createElement("div",{className:"file-preview-card__info"},t.type==="video"&&e.createElement(A.EbayIconPlay16,{className:"file-preview-card__video-icon"}),n||t.name.substring(t.name.lastIndexOf(".")+1).toUpperCase()):e.createElement(e.Fragment,null),I=()=>null,z=t=>{var{a11yCancelUploadText:n,status:l,as:s="div",file:a,seeMore:i,deleteText:p,footerTitle:m,footerSubtitle:r,a11ySeeMoreText:b,menuActions:c,infoText:u,href:o,onCancel:d,onDelete:E,onMenuAction:q,onSeeMore:M,onAction:h,className:S,children:x}=t,P=k.__rest(t,["a11yCancelUploadText","status","as","file","seeMore","deleteText","footerTitle","footerSubtitle","a11ySeeMoreText","menuActions","infoText","href","onCancel","onDelete","onMenuAction","onSeeMore","onAction","className","children"]);const T=B.findComponent(x,I),y=e.useMemo(()=>{var f,_;if(!a)return;let w=a,v;return!((f=a?.type)===null||f===void 0)&&f.startsWith("image")?v="image":!((_=a?.type)===null||_===void 0)&&_.startsWith("video")&&(v="video"),a instanceof File&&(w={name:a.name,type:v,src:v?URL.createObjectURL(a):void 0}),w.type=v,w},[a]);return e.createElement(s,Object.assign({className:g("file-preview-card",S)},P),e.createElement("div",{className:"file-preview-card__body"},o?e.createElement("a",{href:o},e.createElement(F,{file:y,status:l,seeMore:i})):e.createElement(F,{file:y,status:l,seeMore:i}),i&&i>0?e.createElement("button",{type:"button",className:"file-preview-card__see-more",onClick:M,"aria-label":b},e.createElement("span",null,"+",i)):e.createElement(D,{a11yCancelUploadText:n,status:l,menuActions:c,onMenuAction:q,deleteText:p,onCancel:d,onDelete:E,onAction:h,action:T}),e.createElement(W,{file:y,infoText:u})),m&&e.createElement("div",{className:"file-preview-card__footer"},e.createElement("span",null,m),r&&e.createElement("span",null,r)))};exports.EbayFilePreviewCard=z;exports.EbayFilePreviewCardAction=I;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),c=require("../../icon-I30uh1Ov.js"),a='<symbol viewBox="0 0 24 24" id="icon-ai-search-filled-24"><path d="M10 1a1.5 1.5 0 0 1 0 3 6 6 0 1 0 5.298 8.82 1.5 1.5 0 1 1 2.646 1.412 8.984 8.984 0 0 1-.609.982l5.726 5.725a1.5 1.5 0 1 1-2.122 2.122l-5.726-5.727A9 9 0 1 1 10 1Zm7.125-.293c.202-.943 1.548-.943 1.75 0l.352 1.636a1.864 1.864 0 0 0 1.43 1.43l1.636.352c.943.202.943 1.548 0 1.75l-1.636.352a1.864 1.864 0 0 0-1.43 1.431l-.352 1.635c-.203.943-1.547.943-1.75 0l-.352-1.635a1.865 1.865 0 0 0-1.431-1.431l-1.635-.352c-.943-.202-.943-1.548 0-1.75l1.635-.352a1.864 1.864 0 0 0 1.431-1.43l.352-1.636Z"/></symbol>',i=e=>l.createElement(c.EbayIcon,Object.assign({},e,{name:"aiSearchFilled24",__type:"icon",__symbol:a}));exports.EbayIconAiSearchFilled24=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),a=require("../../icon-I30uh1Ov.js"),i='<symbol viewBox="0 0 24 24" id="icon-live-bag-filled-24"><path d="M12 0a3.517 3.517 0 0 1 3.426 2.723L16.186 6H20.9A1.1 1.1 0 0 1 22 7.1V16a6 6 0 0 1-6 6H8a6 6 0 0 1-6-6V7.1A1.1 1.1 0 0 1 3.1 6h4.713l.761-3.277A3.517 3.517 0 0 1 12 0Zm-.875 10.923a.912.912 0 0 0-1.267.84v4.473a.912.912 0 0 0 1.383.782l3.706-2.238a.912.912 0 0 0 0-1.561l-3.706-2.237-.116-.06ZM12 2c-.706 0-1.318.487-1.477 1.174L9.867 6h4.266l-.655-2.826A1.517 1.517 0 0 0 12 2Z"/></symbol>',o=e=>l.createElement(a.EbayIcon,Object.assign({},e,{name:"liveBagFilled24",__type:"icon",__symbol:i}));exports.EbayIconLiveBagFilled24=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("../../icon-I30uh1Ov.js"),o='<symbol viewBox="0 0 16 16" id="icon-live-bag-play-filled-16-colored"><circle cx="8" cy="8" r="8" fill="#fff" fill-opacity=".88"/><path d="M8 3.005c.705 0 1.32.48 1.491 1.163l.335 1.337h2.038a.51.51 0 0 1 .511.51v3.813a2.552 2.552 0 0 1-2.552 2.552H6.177a2.552 2.552 0 0 1-2.552-2.552V6.016c0-.282.229-.511.51-.511h2.039l.336-1.337A1.537 1.537 0 0 1 8 3.005ZM4.562 9.828c0 .892.723 1.614 1.615 1.614h3.646c.892 0 1.614-.722 1.614-1.614V6.442h-1.375l.112.449a.47.47 0 0 1-.91.228l-.17-.677H6.907l-.17.677a.47.47 0 0 1-.91-.228l.112-.449H4.563v3.386Zm3.025-2.185.098.042 1.544.932a.38.38 0 0 1 0 .65l-1.544.932a.38.38 0 0 1-.577-.325V8.011a.38.38 0 0 1 .479-.368ZM8 3.943a.6.6 0 0 0-.581.453l-.278 1.109h1.718l-.277-1.109A.6.6 0 0 0 8 3.942Z" fill="#191919"/></symbol>',c=l=>e.createElement(a.EbayIcon,Object.assign({},l,{name:"liveBagPlayFilled16Colored",__type:"icon",__symbol:o}));exports.EbayIconLiveBagPlayFilled16Colored=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("../../icon-I30uh1Ov.js"),o='<symbol viewBox="0 0 24 24" id="icon-live-bag-play-filled-24-colored"><circle cx="12" cy="12" r="12" fill="#fff" fill-opacity=".88"/><path d="M12 4.5c1.057 0 1.98.72 2.236 1.745l.502 2.005h3.059c.423 0 .765.343.765.766v5.718a3.828 3.828 0 0 1-3.828 3.829H9.266a3.828 3.828 0 0 1-3.829-3.829V9.016c0-.423.343-.766.766-.766h3.059l.503-2.006A2.305 2.305 0 0 1 12 4.5ZM6.844 14.734a2.422 2.422 0 0 0 2.422 2.422h5.468a2.422 2.422 0 0 0 2.422-2.422V9.656h-2.065l.169.673a.702.702 0 1 1-1.364.342l-.254-1.015h-3.284l-.255 1.015a.702.702 0 1 1-1.363-.342l.17-.673H6.843v5.078Zm3.817-2.726a.57.57 0 0 1 .792-.525l.073.037 2.317 1.398a.57.57 0 0 1 0 .977l-2.317 1.397a.57.57 0 0 1-.865-.488v-2.796ZM12 5.906a.9.9 0 0 0-.871.68L10.71 8.25h2.578l-.417-1.663a.9.9 0 0 0-.872-.68Z" fill="#191919"/></symbol>',c=l=>e.createElement(a.EbayIcon,Object.assign({},l,{name:"liveBagPlayFilled24Colored",__type:"icon",__symbol:o}));exports.EbayIconLiveBagPlayFilled24Colored=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),a=require("../../icon-I30uh1Ov.js"),o='<symbol viewBox="0 0 64 64" id="icon-live-bag-play-filled-64-colored"><circle cx="32" cy="32.004" r="32" fill="#fff" fill-opacity=".88"/><path d="M32 11.504a6.008 6.008 0 0 1 5.852 4.65l1.3 5.6h8.052c1.038 0 1.879.841 1.879 1.879v15.204c0 5.66-4.59 10.25-10.25 10.25H25.167c-5.66 0-10.25-4.59-10.25-10.25V23.633a1.88 1.88 0 0 1 1.879-1.88h8.054l1.297-5.599A6.008 6.008 0 0 1 32 11.504ZM18.333 38.837a6.834 6.834 0 0 0 6.834 6.833h13.666a6.834 6.834 0 0 0 6.834-6.833V25.17h-5.724l.555 2.39a1.709 1.709 0 0 1-3.328.772l-.733-3.162h-8.872l-.734 3.162a1.709 1.709 0 0 1-3.328-.771l.555-2.391h-5.725v13.667ZM28.341 31.6a1.558 1.558 0 0 1 2.264-1.39l.098.056 6.332 3.82a1.557 1.557 0 0 1 0 2.668l-6.332 3.821a1.558 1.558 0 0 1-2.362-1.334V31.6ZM32 14.92a2.592 2.592 0 0 0-2.524 2.006l-1.12 4.828h7.288l-1.12-4.828A2.592 2.592 0 0 0 32 14.92Z" fill="#191919"/></symbol>',c=l=>e.createElement(a.EbayIcon,Object.assign({},l,{name:"liveBagPlayFilled64Colored",__type:"icon",__symbol:o}));exports.EbayIconLiveBagPlayFilled64Colored=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("../../icon-I30uh1Ov.js"),l='<symbol viewBox="0 0 20 12" id="icon-money-stack-blue-12-colored"><rect width="20" height="12" rx="2" fill="#0968F6"/><path d="M5.66 6.723a.375.375 0 0 1 .522.09L7.43 8.587a.563.563 0 0 0 .637.21l5.939-1.975a.375.375 0 0 1 .236.712L8.305 9.51a1.313 1.313 0 0 1-1.488-.49L5.568 7.246a.375.375 0 0 1 .091-.522Zm5.697-4.425a.938.938 0 0 1 1.067.353l1.563 2.244a.844.844 0 0 1-.424 1.283l-4.92 1.644a.937.937 0 0 1-1.066-.352L6.012 5.227a.844.844 0 0 1 .424-1.284l4.921-1.645ZM6.674 4.655a.094.094 0 0 0-.048.143L8.192 7.04a.188.188 0 0 0 .213.071l1.324-.443a3.188 3.188 0 0 1-.8-.74c-.459-.594-.673-1.27-.626-1.819l-1.63.546ZM9.7 3.853c-.308-.107-.463-.044-.52 0-.056.043-.155.177-.13.502.024.318.17.725.471 1.115.302.39.659.633.96.737.308.106.463.044.519 0 .056-.044.156-.177.13-.502-.024-.317-.17-.724-.47-1.114-.302-.39-.659-.635-.96-.738Zm1.894-.843-1.144.382c.287.182.564.43.803.74l.134.185c.366.546.533 1.14.492 1.631l1.445-.482a.094.094 0 0 0 .047-.143L11.81 3.08a.188.188 0 0 0-.214-.07Z" fill="#F5F9FF"/></symbol>',c=e=>o.createElement(a.EbayIcon,Object.assign({},e,{name:"moneyStackBlue12Colored",__type:"icon",__symbol:l}));exports.EbayIconMoneyStackBlue12Colored=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),o=require("../../icon-I30uh1Ov.js"),a='<symbol viewBox="0 0 30 18" id="icon-money-stack-blue-18-colored"><rect width="30" height="18" rx="2" fill="#0968F6"/><path d="M8.247 10.125a.583.583 0 0 1 .813.14l1.943 2.76a.875.875 0 0 0 .991.327l9.238-3.072a.583.583 0 1 1 .369 1.107l-9.239 3.072a2.042 2.042 0 0 1-2.313-.762l-1.943-2.76a.584.584 0 0 1 .141-.812Zm8.864-6.883a1.46 1.46 0 0 1 1.66.549l2.432 3.49c.5.719.17 1.717-.66 1.995l-7.653 2.559a1.46 1.46 0 0 1-1.659-.548l-2.435-3.49a1.313 1.313 0 0 1 .66-1.995l7.655-2.56ZM9.825 6.908a.146.146 0 0 0-.073.222l2.435 3.49c.075.105.21.15.333.109l2.06-.69a4.956 4.956 0 0 1-1.245-1.15c-.715-.925-1.046-1.975-.973-2.83l-2.537.85Zm4.71-1.249c-.478-.165-.72-.067-.808.001-.087.068-.243.277-.204.781.038.494.266 1.127.735 1.734.468.606 1.023.987 1.491 1.148.48.166.72.067.809 0 .087-.069.243-.277.204-.782-.038-.493-.266-1.126-.735-1.732-.468-.607-1.024-.988-1.492-1.15Zm3.279-1.201a.293.293 0 0 0-.333-.11l-1.779.594a4.95 4.95 0 0 1 1.248 1.153c.714.924 1.046 1.972.974 2.826l2.249-.751a.146.146 0 0 0 .073-.222l-2.432-3.49Z" fill="#F5F9FF"/></symbol>',c=e=>l.createElement(o.EbayIcon,Object.assign({},e,{name:"moneyStackBlue18Colored",__type:"icon",__symbol:a}));exports.EbayIconMoneyStackBlue18Colored=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),o=require("../../icon-I30uh1Ov.js"),a='<symbol viewBox="0 0 38 24" id="icon-money-stack-blue-24-colored"><rect width="38" height="24" rx="2" fill="#0968F6"/><path d="M10.318 13.445a.75.75 0 0 1 1.045.182l2.498 3.548c.286.405.804.576 1.275.42l11.878-3.95a.75.75 0 0 1 .472 1.423l-11.877 3.95a2.625 2.625 0 0 1-2.974-.98l-2.498-3.548a.75.75 0 0 1 .181-1.045Zm11.396-8.848a1.876 1.876 0 0 1 2.133.706l3.129 4.486a1.688 1.688 0 0 1-.85 2.566l-9.84 3.29a1.875 1.875 0 0 1-2.132-.705l-3.131-4.487a1.688 1.688 0 0 1 .848-2.566l9.843-3.29ZM12.347 9.31a.188.188 0 0 0-.094.285l3.13 4.486c.096.136.27.193.428.14l2.647-.885a6.373 6.373 0 0 1-1.6-1.48l-.137-.185c-.824-1.142-1.205-2.41-1.117-3.451l-3.257 1.09Zm6.055-1.606c-.616-.212-.926-.086-1.039.001-.113.087-.313.355-.263 1.005.049.635.342 1.45.945 2.23.602.78 1.316 1.27 1.918 1.477.616.212.926.085 1.039-.002.113-.087.314-.355.264-1.005-.05-.635-.343-1.448-.946-2.228-.602-.78-1.316-1.27-1.918-1.478Zm4.214-1.544a.375.375 0 0 0-.426-.14l-2.287.763a6.37 6.37 0 0 1 1.604 1.48l.138.186c.823 1.142 1.201 2.408 1.113 3.45l2.892-.967a.187.187 0 0 0 .095-.284L22.616 6.16Z" fill="#F5F9FF"/></symbol>',c=e=>l.createElement(o.EbayIcon,Object.assign({},e,{name:"moneyStackBlue24Colored",__type:"icon",__symbol:a}));exports.EbayIconMoneyStackBlue24Colored=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),o=require("../../icon-I30uh1Ov.js"),a='<symbol viewBox="0 0 50 32" id="icon-money-stack-blue-32-colored"><rect width="50" height="32" rx="2" fill="#0968F6"/><path d="M13.425 17.929a1 1 0 0 1 1.392.242l3.331 4.73a1.5 1.5 0 0 0 1.7.56l15.837-5.267a1 1 0 0 1 .63 1.899L20.48 25.358a3.5 3.5 0 0 1-3.966-1.306l-3.33-4.73a1 1 0 0 1 .242-1.393Zm15.194-11.8a2.501 2.501 0 0 1 2.844.942l4.17 5.983a2.25 2.25 0 0 1-1.131 3.42L21.381 20.86a2.5 2.5 0 0 1-2.843-.94l-4.175-5.98a2.25 2.25 0 0 1 1.132-3.422L28.62 6.13Zm-12.49 6.285a.25.25 0 0 0-.125.38l4.175 5.982a.5.5 0 0 0 .568.188l3.53-1.18a8.5 8.5 0 0 1-2.133-1.975l-.184-.246c-1.098-1.523-1.605-3.213-1.486-4.602l-4.345 1.453Zm8.073-2.141c-.82-.283-1.233-.115-1.384.001-.15.117-.419.474-.352 1.34.065.846.457 1.932 1.26 2.972.804 1.04 1.756 1.693 2.558 1.97.82.282 1.234.114 1.385-.002.15-.117.418-.474.351-1.34-.065-.846-.457-1.932-1.26-2.972-.804-1.04-1.755-1.693-2.558-1.97Zm5.62-2.058a.501.501 0 0 0-.57-.189l-3.046 1.018a8.5 8.5 0 0 1 2.136 1.976l.184.246c1.098 1.522 1.604 3.21 1.487 4.6l3.855-1.289a.25.25 0 0 0 .125-.38l-4.17-5.982Z" fill="#F5F9FF"/></symbol>',c=e=>l.createElement(o.EbayIcon,Object.assign({},e,{name:"moneyStackBlue32Colored",__type:"icon",__symbol:a}));exports.EbayIconMoneyStackBlue32Colored=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),n=require("../../icon-I30uh1Ov.js"),t='<symbol viewBox="0 0 24 24" id="icon-stepper-confirmation-24"><path d="M0 12C0 5.373 5.373 0 12 0c3.183 0 6.235 1.264 8.485 3.515A11.996 11.996 0 0124 12c0 6.627-5.373 12-12 12S0 18.627 0 12zm10.71 4.71l8-8h-.01a1 1 0 00-1.41-1.41L10 14.59 6.71 11.3a1 1 0 00-1.41 1.41l4 4a1 1 0 001.41 0z" fill="var(--progress-stepper-confirmation-icon, var(--color-background-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),n=require("../../icon-I30uh1Ov.js"),t='<symbol viewBox="0 0 24 24" id="icon-stepper-confirmation-24"><path d="M0 12C0 5.373 5.373 0 12 0c3.183 0 6.235 1.264 8.485 3.515A11.996 11.996 0 0124 12c0 6.627-5.373 12-12 12S0 18.627 0 12zm10.71 4.71l8-8h-.01a1 1 0 00-1.41-1.41L10 14.59 6.71 11.3a1 1 0 00-1.41 1.41l4 4a1 1 0 001.41 0z" fill="var(--progress-stepper-confirmation-icon, var(--color-background-accent))"/></symbol>',r=o=>e.createElement(n.EbayIcon,Object.assign({},o,{name:"stepperConfirmation24",__type:"icon",__symbol:t}));exports.EbayIconStepperConfirmation24=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),t=require("../../icon-I30uh1Ov.js"),c='<symbol viewBox="0 0 24 24" id="icon-stepper-current-24"><path fill-rule="evenodd" d="M2 12C2 6.476 6.478 2 12 2s10 4.476 10 10c0 5.522-4.478 10-10 10S2 17.522 2 12ZM12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12s12-5.373 12-12c0-6.628-5.373-12-12-12Zm0 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z" clip-rule="evenodd" fill="var(--progress-stepper-current-icon, var(--color-background-accent))"/></symbol>',n=e=>r.createElement(t.EbayIcon,Object.assign({},e,{name:"stepperCurrent24",__type:"icon",__symbol:c}));exports.EbayIconStepperCurrent24=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),n=require("../../icon-I30uh1Ov.js"),c='<symbol viewBox="0 0 24 25" fill="none" id="icon-stepper-upcoming-24"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 2.5C6.47759 2.5 2 6.97649 2 12.5C2 18.0223 6.47775 22.5 12 22.5C17.5223 22.5 22 18.0223 22 12.5C22 6.97649 17.5224 2.5 12 2.5ZM0 12.5C0 5.87176 5.37318 0.5 12 0.5C18.6268 0.5 24 5.87176 24 12.5C24 19.1268 18.6268 24.5 12 24.5C5.37318 24.5 0 19.1268 0 12.5Z" fill="var(--progress-stepper-upcoming-icon, var(--color-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),n=require("../../icon-I30uh1Ov.js"),c='<symbol viewBox="0 0 24 25" fill="none" id="icon-stepper-upcoming-24"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 2.5C6.47759 2.5 2 6.97649 2 12.5C2 18.0223 6.47775 22.5 12 22.5C17.5223 22.5 22 18.0223 22 12.5C22 6.97649 17.5224 2.5 12 2.5ZM0 12.5C0 5.87176 5.37318 0.5 12 0.5C18.6268 0.5 24 5.87176 24 12.5C24 19.1268 18.6268 24.5 12 24.5C5.37318 24.5 0 19.1268 0 12.5Z" fill="var(--progress-stepper-upcoming-icon, var(--color-border-medium))"/></symbol>',r=e=>o.createElement(n.EbayIcon,Object.assign({},e,{name:"stepperUpcoming24",__type:"icon",__symbol:c}));exports.EbayIconStepperUpcoming24=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./tslib.es6-C4EgNkz1.js"),i=require("react"),I=require("classnames"),s=require("./utils-C9NL3q0j.js"),m=require("./file-preview-card-
|
|
1
|
+
"use strict";const a=require("./tslib.es6-C4EgNkz1.js"),i=require("react"),I=require("classnames"),s=require("./utils-C9NL3q0j.js"),m=require("./file-preview-card-Dikvua1q.js"),o=()=>null,E=e=>{var{children:l}=e,t=a.__rest(e,["children"]);return i.createElement("div",Object.assign({className:"item-tile__section-primary"},t),l)},d=e=>{var{href:l,children:t}=e,n=a.__rest(e,["href","children"]);return i.createElement("a",Object.assign({href:l,className:"item-tile__title"},n),t)},b=e=>{var{children:l}=e,t=a.__rest(e,["children"]);return i.createElement("div",Object.assign({className:"item-tile__subtitle"},t),l)},u=e=>{var{as:l="p",children:t}=e,n=a.__rest(e,["as","children"]);return i.createElement(l,Object.assign({},n),t)},N=({title:e,subtitle:l,descriptions:t})=>i.createElement(i.Fragment,null,e||l?i.createElement("div",{className:"item-tile__section-secondary"},e,l):null,t?.length?i.createElement("div",{className:"item-tile__section-tertiary"},t):null),g=e=>{var{file:l,href:t,layout:n,className:y,onAction:_,children:r}=e,v=a.__rest(e,["file","href","layout","className","onAction","children"]);const h=s.findComponent(r,E),T=s.findComponent(r,d),p=s.findComponent(r,b),c=s.findComponent(r,o),f=s.filterByType(r,u);return i.createElement("div",Object.assign({className:I(y,"item-tile",{"item-tile--list-view":n==="list"})},v),l&&i.createElement("div",{className:"item-tile__header"},i.createElement(m.EbayFilePreviewCard,{file:l,href:t,onAction:_},c&&i.createElement(m.EbayFilePreviewCardAction,Object.assign({},c.props)))),i.createElement("div",{className:"item-tile__body"},h,i.createElement(N,{title:T,subtitle:p,descriptions:f})))};exports.EbayItemTile=g;exports.EbayItemTileAction=o;exports.EbayItemTileDescription=u;exports.EbayItemTileSubtitle=b;exports.EbayItemTileSupertitle=E;exports.EbayItemTileTitle=d;
|
|
@@ -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-aXPjyhOT.js");require("./icon-button-AJ6dtyvc.js");require("./icon-I30uh1Ov.js");const m=o=>{var{open:l,mode:r,size:t,bannerImgSrc:e,bannerImgPosition:g,onClose:a=()=>{}}=o,i=b.__rest(o,["open","mode","size","bannerImgSrc","bannerImgPosition","onClose"]);const c=e?s.createElement("div",{className:"lightbox-dialog__image",style:{backgroundImage:`url(${e})`,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":e}),windowClass:n("lightbox-dialog__window--animate",{"lightbox-dialog__window--mini":r==="mini"}),top:c,open:l}))};exports.EbayLightboxDialog=m;
|
package/menu-D1yitU4y.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const F=require("./tslib.es6-C4EgNkz1.js"),c=require("react"),V=require("classnames"),G=require("./use-roving-index-DoAVBgsp.js"),H=require("./index-Bsb1LHpi.js"),J=require("./forwardRef-DBQKIlPy.js");require("./array.polyfill.flat-5BAolFdk.js");const Q=require("./badge-BWhBKWCu.js"),U=require("./icons/ebay-icon-tick-16/index.js"),B=o=>{var{className:k,checked:r,type:f,focused:m=!1,tabIndex:w,disabled:p,badgeNumber:y,badgeAriaLabel:C,children:v,baseClass:_="menu"}=o,g=F.__rest(o,["className","checked","type","focused","tabIndex","disabled","badgeNumber","badgeAriaLabel","children","baseClass"]);const i=c.useRef(null),b=y!==void 0;c.useEffect(()=>{i.current&&m&&i.current.focus()},[i,m]);const R=["radio","checkbox"];return c.createElement("div",Object.assign({"aria-label":C},g,{ref:i,className:V(k,`${_}__item`,b&&`${_}__item--badged`),role:X(f),"aria-checked":R.includes(f)?r:void 0,"aria-disabled":p,tabIndex:m?0:w}),c.createElement("span",{"aria-hidden":b},v,b&&c.createElement(Q.EbayBadge,{type:"menu",number:y})),c.createElement(U.EbayIconTick16,null))};function X(o){return{radio:"menuitemradio",checkbox:"menuitemcheckbox"}[o]||"menuitem"}const Y=o=>{var{baseEl:k="span",type:r,checked:f,className:m,autofocus:w,classPrefix:p,reverse:y,fixWidth:C,fixed:v,onClick:_=()=>{},onKeyDown:g=()=>{},onChange:i=()=>{},onSelect:b=()=>{},forwardedRef:R,menuRef:S,children:K}=o,T=F.__rest(o,["baseEl","type","checked","className","autofocus","classPrefix","reverse","fixWidth","fixed","onClick","onKeyDown","onChange","onSelect","forwardedRef","menuRef","children"]);const h=c.Children.toArray(K),[D,j]=G.useRovingIndex(K,B,w===!0?0:void 0),[u,O]=c.useState(h.map(()=>!1)),L=n=>h.reduce((e,s,a)=>n[a]?[...e,s.props.value]:e,[]),A=n=>n.reduce((e,s,a)=>s?[...e,a]:e,[]),N=(n,e)=>({index:n,checked:A(e)}),M=(n,e)=>Object.assign(Object.assign({},N(n,e)),{indexes:A(e),checkedValues:L(e)}),P=(n,e,s=!1)=>{let a=!1;const I=u.map((E,l)=>{const q=s?!1:E;return n===l?(E!==e&&(a=!0),e):q});if(a)return O(I),I},x=n=>{switch(r){case"radio":return P(n,!0,!0);case"checkbox":return P(n,!u[n],!1);default:return u.map((e,s)=>s===n)}};c.useEffect(()=>{if(r==="radio")if(f===void 0){const n=h.findIndex(e=>e.props.checked);n>-1&&x(n)}else x(f);else r==="checkbox"&&O(h.map(n=>!!n.props.checked))},[]);const $=(n,e,s)=>{switch(r){case"radio":case"checkbox":return i(n,M(e,s));default:return b(n,N(e,s))}},W=(n,e)=>{let s;switch(H.isActionKey(n.key)&&(s=x(e),s&&$(n,e,s)),r){case"radio":case"checkbox":return g(n,M(e,s||u));default:return g(n,N(e,s||u))}},z=(n,e)=>{j(e);const s=x(e);s&&$(n,e,s)},d=p||"menu";return c.createElement(k,Object.assign({},T,{className:V(m,p?`${d}__menu`:"menu",y&&`${d}__menu--reverse`,v&&`${d}__menu--fixed`,C&&`${d}__menu--fix-width`),ref:R}),c.createElement("div",{className:`${d}__items`,role:"menu",ref:S},h.map((n,e)=>{const s=n.props,{onClick:a=()=>{},onFocus:I=()=>{},onKeyDown:E=()=>{},disabled:l}=s,q=F.__rest(s,["onClick","onFocus","onKeyDown","disabled"]);return c.cloneElement(n,Object.assign(Object.assign({},q),{disabled:l,type:r,baseClass:d,focused:e===D,tabIndex:D===void 0?0:-1,checked:u[e],onFocus:t=>{l||(j(e),I(t))},onClick:t=>{if(l){t.stopPropagation();return}z(t,e),a(t),_(t)},onKeyDown:t=>{l||(E(t),W(t,e))}}))})))},Z=J.withForwardRef(Y);exports.EbayMenu=Z;exports.EbayMenuItem=B;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const w=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),I=require("classnames"),g=require("./utils-C9NL3q0j.js"),q=require("./menu-
|
|
1
|
+
"use strict";const w=require("./tslib.es6-C4EgNkz1.js"),e=require("react"),I=require("classnames"),g=require("./utils-C9NL3q0j.js"),q=require("./menu-D1yitU4y.js"),ne=require("./button-xYFMCdP0.js"),te=require("./icon-button-AJ6dtyvc.js"),oe=require("./icon-I30uh1Ov.js"),ae=require("./random-id-DlJj_RWH.js"),se=require("./index-Bsb1LHpi.js"),ce=require("./dropdown-B6wMNyjP.js"),re=require("./icons/ebay-icon-chevron-down-12/index.js"),le=require("./icons/ebay-icon-overflow-vertical-16/index.js"),j=o=>{var{className:a}=o,s=w.__rest(o,["className"]);return e.createElement("hr",Object.assign({},s,{className:I(a,"menu-button__separator")}))},N=({children:o})=>e.createElement(e.Fragment,null,o),ie=o=>{var{type:a,variant:s="button",className:b,text:p="",fixWidth:f,reverse:r,strategy:E,expanded:l,noToggleIcon:y,checked:M,collapseOnSelect:S,a11yText:L,prefixId:v,prefixLabel:T,icon:D,onClick:A=()=>{},onExpand:F=()=>{},onCollapse:K=()=>{},onChange:R=()=>{},onSelect:W=()=>{},children:x}=o,P=w.__rest(o,["type","variant","className","text","fixWidth","reverse","strategy","expanded","noToggleIcon","checked","collapseOnSelect","a11yText","prefixId","prefixLabel","icon","onClick","onExpand","onCollapse","onChange","onSelect","children"]);const[c,h]=e.useState(l),[k,V]=e.useState(),{overlayStyles:H,refs:i}=ce.useFloatingDropdown({open:c,options:{reverse:r,strategy:E}}),$=i.host,z=i.overlay,C=g.filterByType(x,[q.EbayMenuItem,j]),u=C.map(n=>!!n.props.checked),[d,B]=e.useState(u);e.useEffect(()=>{u.join("|")!==d.join("|")&&B(u)},[u.join("|")]);const G=g.findComponent(x,N),J=D||g.findComponent(x,oe.EbayIcon),Q=ue({text:p,prefixId:v,prefixLabel:T,menuButtonLabel:G,icon:J}),U=I("menu-button",b);e.useEffect(()=>{const n=t=>{const m=z.current,_=m&&m.contains(t.target);(S||!_)&&h(!1)};return c?(F(),setTimeout(()=>{document.addEventListener("click",n,!1)})):c===!1&&K(),()=>document.removeEventListener("click",n,!1)},[c]),e.useEffect(()=>{V(ae.randomId())},[]);const X=n=>{se.handleEscapeKeydown(n,()=>{var t;h(!1),(t=$.current)===null||t===void 0||t.focus()})},O=Object.assign({ref:i.setHost,className:"menu-button__button","aria-expanded":!!c,"aria-haspopup":!0,"aria-label":L,"aria-controls":k,"aria-labelledby":v,onClick:n=>{h(!c),A(n)}},P),Y=(n,t)=>{if(a==="radio"||a==="checkbox"){const m=d.map((_,ee)=>t.indexes.includes(ee));B(m)}R(n,t)},Z=()=>{const n=d.findIndex(Boolean);return n>-1?n:M};return e.createElement("span",{className:U},s==="overflow"?e.createElement(te.EbayIconButton,Object.assign({icon:e.createElement(le.EbayIconOverflowVertical16,null)},O)):e.createElement(ne.EbayButton,Object.assign({variant:s==="form"?"form":void 0},O),Q,y?null:e.createElement(re.EbayIconChevronDown12,null)),c&&e.createElement(q.EbayMenu,{baseEl:"div",classPrefix:"menu-button",reverse:r,fixWidth:f,fixed:E==="fixed",ref:i.setOverlay,type:a,tabIndex:-1,id:k,autofocus:!0,checked:Z(),onKeyDown:X,onChange:Y,onSelect:W,style:H},C.map((n,t)=>e.cloneElement(n,Object.assign(Object.assign({},n.props),{className:I(n.props.className,"menu-button__item"),key:t,checked:d[t]})))))};function ue({text:o,prefixId:a,prefixLabel:s,menuButtonLabel:b,icon:p}){const f=o.length?e.createElement("span",null,o):null,r=!a&&s&&e.createElement(e.Fragment,null,e.createElement("span",{className:"menu-button-prefix-label",key:"prefix-label"},s)," ");return[p,r,b||f].filter(Boolean).map((l,y)=>e.cloneElement(l,Object.assign(Object.assign({},l.props),{key:y})))}exports.EbayMenuButton=ie;exports.EbayMenuButtonLabel=N;exports.EbayMenuButtonSeparator=j;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ebay/ui-core-react",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.17.0",
|
|
4
4
|
"description": "Skin components build off React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"copy": "copyfiles package.json README.md dist; npm run copy:rest",
|
|
32
32
|
"copy:rest": "copyfiles -u 1 'src/**/*.md' dist",
|
|
33
33
|
"coverage": "npm run clean && npm run test -- --coverage --ci",
|
|
34
|
-
"deploy": "storybook build -o ./_site/$(git branch --show-current)",
|
|
34
|
+
"deploy": "NODE_OPTIONS=--max-old-space-size=8192 storybook build -o ./_site/$(git branch --show-current)",
|
|
35
35
|
"format": "eslint . --fix 'src/**/*.{ts,tsx}' && prettier . --write --log-level=warn",
|
|
36
36
|
"lint": "eslint . --ext .ts,.tsx && prettier . --check --log-level=warn",
|
|
37
37
|
"release": "npm run build",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"react-dom": ">= 16.0.0"
|
|
79
79
|
},
|
|
80
80
|
"optionalDependencies": {
|
|
81
|
-
"shaka-player": "^4.16.
|
|
81
|
+
"shaka-player": "^4.16.9"
|
|
82
82
|
},
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"directory": "dist",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const h=require("./tslib.es6-C4EgNkz1.js"),o=require("react"),ce=require("classnames"),ue=require("./forwardRef-DBQKIlPy.js"),p=require("./utils-C9NL3q0j.js"),w=require("./icon-I30uh1Ov.js"),de=require("./icon-button-AJ6dtyvc.js"),be=require("./hooks-uidlIIid.js"),K=t=>{var{children:s,name:a,icon:l,buttonAriaLabel:i,onClick:u=()=>{}}=t,d=h.__rest(t,["children","name","icon","buttonAriaLabel","onClick"]);return a||l?i?o.createElement(de.EbayIconButton,Object.assign({"aria-label":i,icon:l||a,transparent:!0,onClick:u},d)):l||o.createElement(w.EbayIcon,Object.assign({name:a},d)):s},P=t=>o.createElement("span",Object.assign({},t)),F=t=>{var{children:s,name:a,icon:l}=t,i=h.__rest(t,["children","name","icon"]);return a?o.createElement(w.EbayIcon,Object.assign({name:a},i)):l||s},_=t=>o.createElement("span",Object.assign({},t)),m=t=>typeof t<"u",xe=t=>{var s,a,{type:l="text",invalid:i,fluid:u,multiline:d,onChange:q=()=>{},onInputChange:B=()=>{},onFocus:j=()=>{},onBlur:k=()=>{},onKeyPress:O=()=>{},onKeyUp:V=()=>{},onKeyDown:R=()=>{},onInvalid:N=()=>{},onFloatingLabelInit:S=()=>{},onButtonClick:D=()=>{},autoFocus:E,defaultValue:g="",value:y,forwardedRef:U,inputRef:z,inputSize:C="default",floatingLabel:$,floatingLabelStatic:A,children:b,placeholder:M,opaqueLabel:W}=t,c=h.__rest(t,["type","invalid","fluid","multiline","onChange","onInputChange","onFocus","onBlur","onKeyPress","onKeyUp","onKeyDown","onInvalid","onFloatingLabelInit","onButtonClick","autoFocus","defaultValue","value","forwardedRef","inputRef","inputSize","floatingLabel","floatingLabelStatic","children","placeholder","opaqueLabel"]);const[I,G]=o.useState(g),[H,J]=o.useState(g),T=be.useFloatingLabel({text:$,disabled:c.disabled,size:C,invalid:i,opaqueLabel:W,static:A||l==="date",onMount:S,containerTagName:u?"div":"span"}),L=n=>{var e;j(n,{value:((e=n?.target)===null||e===void 0?void 0:e.value)||g})},Q=n=>{var e;const r=(e=n.target)===null||e===void 0?void 0:e.value;k(n,{value:r}),r!==I&&(q(n,{value:r}),G(r))},X=n=>{const e=n.target;O(n,{value:e?.value})},Y=n=>{const e=n.target;V(n,{value:e?.value})},Z=n=>{const e=n.target;R(n,{value:e?.value})},ee=n=>{const e=n.target;N(n,{value:e?.value})},ne=n=>{D(n,{value:I})};o.useEffect(()=>{E&&L()},[]);const te=n=>{var e;const r=(e=n.target)===null||e===void 0?void 0:e.value;m(y)||J(r),B(n,{value:r})},oe=d?"textarea":"input",ae=u?"div":"span",le=p.findComponent(b,F),x=p.findComponent(b,_),ie=(s=x?.props)===null||s===void 0?void 0:s.id,v=p.findComponent(b,K),f=p.findComponent(b,P),se=(a=f?.props)===null||a===void 0?void 0:a.id,re=ce("textbox",c.className,{"textbox--fluid":u,"textbox--large":C==="large","textbox--disabled":c.disabled,"textbox--invalid":i,"textbox--readonly":c.readOnly});return o.createElement(T.Container,null,o.createElement(T.Label,{htmlFor:c.id}),o.createElement(ae,{className:re},le,x,o.createElement(oe,Object.assign({"aria-describedby":[ie,se].filter(Boolean).join(" ")||void 0},c,{className:"textbox__control",type:l,"aria-invalid":i,value:m(y)?y:H,onChange:te,onBlur:Q,onFocus:L,onKeyPress:X,onKeyUp:Y,onKeyDown:Z,onInvalid:ee,autoFocus:E,ref:z||U,placeholder:M})),f,v&&o.cloneElement(v,Object.assign(Object.assign({},v.props),{onClick:n=>{const{onClick:e=()=>{}}=v.props;e(n),ne(n)}}))))},ve=ue.withForwardRef(xe);exports.EbayTextbox=ve;exports.EbayTextboxPostfixIcon=K;exports.EbayTextboxPostfixText=P;exports.EbayTextboxPrefixIcon=F;exports.EbayTextboxPrefixText=_;exports.isControlled=m;
|
package/menu-DwFmC8e3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const q=require("./tslib.es6-C4EgNkz1.js"),n=require("react"),P=require("classnames"),z=require("./use-roving-index-DoAVBgsp.js"),G=require("./index-Bsb1LHpi.js"),H=require("./forwardRef-DBQKIlPy.js");require("./array.polyfill.flat-5BAolFdk.js");const J=require("./badge-BWhBKWCu.js"),Q=require("./icons/ebay-icon-tick-16/index.js"),V=o=>{var{className:h,checked:a,type:l,focused:f=!1,tabIndex:E,disabled:k,badgeNumber:y,badgeAriaLabel:w,children:C,baseClass:p="menu"}=o,_=q.__rest(o,["className","checked","type","focused","tabIndex","disabled","badgeNumber","badgeAriaLabel","children","baseClass"]);const u=n.useRef(null),m=y!==void 0;n.useEffect(()=>{u.current&&f&&u.current.focus()},[u,f]);const v=["radio","checkbox"];return n.createElement("div",Object.assign({"aria-label":w},_,{ref:u,className:P(h,`${p}__item`,m&&`${p}__item--badged`),role:U(l),"aria-checked":v.includes(l)?a:void 0,"aria-disabled":k,tabIndex:f?0:E}),n.createElement("span",{"aria-hidden":m},C,m&&n.createElement(J.EbayBadge,{type:"menu",number:y})),n.createElement(Q.EbayIconTick16,null))};function U(o){return{radio:"menuitemradio",checkbox:"menuitemcheckbox"}[o]||"menuitem"}const X=o=>{var{baseEl:h="span",type:a,checked:l,className:f,autofocus:E,classPrefix:k,reverse:y,fixWidth:w,fixed:C,onClick:p=()=>{},onKeyDown:_=()=>{},onChange:u=()=>{},onSelect:m=()=>{},forwardedRef:v,menuRef:B,children:F}=o,S=q.__rest(o,["baseEl","type","checked","className","autofocus","classPrefix","reverse","fixWidth","fixed","onClick","onKeyDown","onChange","onSelect","forwardedRef","menuRef","children"]);const b=n.Children.toArray(F),[K,D]=z.useRovingIndex(F,V,E===!0?0:void 0),[d,j]=n.useState(b.map(()=>!1)),T=s=>b.reduce((e,c,r)=>s[r]?[...e,c.props.value]:e,[]),O=s=>s.reduce((e,c,r)=>c?[...e,r]:e,[]),R=(s,e)=>({index:s,checked:O(e)}),A=(s,e)=>Object.assign(Object.assign({},R(s,e)),{indexes:O(e),checkedValues:T(e)}),M=(s,e,c=!1)=>{let r=!1;const I=d.map((g,N)=>{const t=c?!1:g;return s===N?(g!==e&&(r=!0),e):t});if(r)return j(I),I},x=s=>{switch(a){case"radio":return M(s,!0,!0);case"checkbox":return M(s,!d[s],!1);default:return d.map((e,c)=>c===s)}};n.useEffect(()=>{if(a==="radio")if(l===void 0){const s=b.findIndex(e=>e.props.checked);s>-1&&x(s)}else x(l);else a==="checkbox"&&j(b.map(s=>!!s.props.checked))},[]);const $=(s,e,c)=>{switch(a){case"radio":case"checkbox":return u(s,A(e,c));default:return m(s,R(e,c))}},L=(s,e)=>{let c;switch(G.isActionKey(s.key)&&(c=x(e),c&&$(s,e,c)),a){case"radio":case"checkbox":return _(s,A(e,c||d));default:return _(s,R(e,c||d))}},W=(s,e)=>{D(e);const c=x(e);c&&$(s,e,c)},i=k||"menu";return n.createElement(h,Object.assign({},S,{className:P(f,k?`${i}__menu`:"menu",y&&`${i}__menu--reverse`,C&&`${i}__menu--fixed`,w&&`${i}__menu--fix-width`),ref:v}),n.createElement("div",{className:`${i}__items`,role:"menu",ref:B},b.map((s,e)=>{const c=s.props,{onClick:r=()=>{},onFocus:I=()=>{},onKeyDown:g=()=>{}}=c,N=q.__rest(c,["onClick","onFocus","onKeyDown"]);return n.cloneElement(s,Object.assign(Object.assign({},N),{type:a,baseClass:i,focused:e===K,tabIndex:K===void 0?0:-1,checked:d[e],onFocus:t=>{D(e),I(t)},onClick:t=>{W(t,e),r(t),p(t)},onKeyDown:t=>{L(t,e),g(t)}}))})))},Y=H.withForwardRef(X);exports.EbayMenu=Y;exports.EbayMenuItem=V;
|
package/textbox-DAb7vY_B.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const h=require("./tslib.es6-C4EgNkz1.js"),o=require("react"),re=require("classnames"),ce=require("./forwardRef-DBQKIlPy.js"),p=require("./utils-C9NL3q0j.js"),w=require("./icon-I30uh1Ov.js"),ue=require("./icon-button-AJ6dtyvc.js"),de=require("./hooks-uidlIIid.js"),K=t=>{var{children:s,name:a,icon:l,buttonAriaLabel:i,onClick:u=()=>{}}=t,d=h.__rest(t,["children","name","icon","buttonAriaLabel","onClick"]);return a||l?i?o.createElement(ue.EbayIconButton,Object.assign({"aria-label":i,icon:l||a,transparent:!0,onClick:u},d)):l||o.createElement(w.EbayIcon,Object.assign({name:a},d)):s},P=t=>o.createElement("span",Object.assign({},t)),F=t=>{var{children:s,name:a,icon:l}=t,i=h.__rest(t,["children","name","icon"]);return a?o.createElement(w.EbayIcon,Object.assign({name:a},i)):l||s},_=t=>o.createElement("span",Object.assign({},t)),m=t=>typeof t<"u",be=t=>{var s,a,{type:l="text",invalid:i,fluid:u,multiline:d,onChange:q=()=>{},onInputChange:B=()=>{},onFocus:j=()=>{},onBlur:k=()=>{},onKeyPress:O=()=>{},onKeyUp:V=()=>{},onKeyDown:N=()=>{},onInvalid:S=()=>{},onFloatingLabelInit:R=()=>{},onButtonClick:D=()=>{},autoFocus:E,defaultValue:g="",value:y,forwardedRef:U,inputSize:C="default",floatingLabel:z,floatingLabelStatic:$,children:b,placeholder:A,opaqueLabel:M}=t,c=h.__rest(t,["type","invalid","fluid","multiline","onChange","onInputChange","onFocus","onBlur","onKeyPress","onKeyUp","onKeyDown","onInvalid","onFloatingLabelInit","onButtonClick","autoFocus","defaultValue","value","forwardedRef","inputSize","floatingLabel","floatingLabelStatic","children","placeholder","opaqueLabel"]);const[I,W]=o.useState(g),[G,H]=o.useState(g),T=de.useFloatingLabel({text:z,disabled:c.disabled,size:C,invalid:i,opaqueLabel:M,static:$||l==="date",onMount:R,containerTagName:u?"div":"span"}),L=n=>{var e;j(n,{value:((e=n?.target)===null||e===void 0?void 0:e.value)||g})},J=n=>{var e;const r=(e=n.target)===null||e===void 0?void 0:e.value;k(n,{value:r}),r!==I&&(q(n,{value:r}),W(r))},Q=n=>{const e=n.target;O(n,{value:e?.value})},X=n=>{const e=n.target;V(n,{value:e?.value})},Y=n=>{const e=n.target;N(n,{value:e?.value})},Z=n=>{const e=n.target;S(n,{value:e?.value})},ee=n=>{D(n,{value:I})};o.useEffect(()=>{E&&L()},[]);const ne=n=>{var e;const r=(e=n.target)===null||e===void 0?void 0:e.value;m(y)||H(r),B(n,{value:r})},te=d?"textarea":"input",oe=u?"div":"span",ae=p.findComponent(b,F),x=p.findComponent(b,_),le=(s=x?.props)===null||s===void 0?void 0:s.id,v=p.findComponent(b,K),f=p.findComponent(b,P),ie=(a=f?.props)===null||a===void 0?void 0:a.id,se=re("textbox",c.className,{"textbox--fluid":u,"textbox--large":C==="large","textbox--disabled":c.disabled,"textbox--invalid":i,"textbox--readonly":c.readOnly});return o.createElement(T.Container,null,o.createElement(T.Label,{htmlFor:c.id}),o.createElement(oe,{className:se},ae,x,o.createElement(te,Object.assign({"aria-describedby":[le,ie].filter(Boolean).join(" ")||void 0},c,{className:"textbox__control",type:l,"aria-invalid":i,value:m(y)?y:G,onChange:ne,onBlur:J,onFocus:L,onKeyPress:Q,onKeyUp:X,onKeyDown:Y,onInvalid:Z,autoFocus:E,ref:U,placeholder:A})),f,v&&o.cloneElement(v,Object.assign(Object.assign({},v.props),{onClick:n=>{const{onClick:e=()=>{}}=v.props;e(n),ee(n)}}))))},xe=ce.withForwardRef(be);exports.EbayTextbox=xe;exports.EbayTextboxPostfixIcon=K;exports.EbayTextboxPostfixText=P;exports.EbayTextboxPrefixIcon=F;exports.EbayTextboxPrefixText=_;exports.isControlled=m;
|