diff --git a/add-back-button-support-lighbox/iframe.html b/add-back-button-support-lighbox/iframe.html index 3a9e8198..f0afc9fc 100644 --- a/add-back-button-support-lighbox/iframe.html +++ b/add-back-button-support-lighbox/iframe.html @@ -361,4 +361,4 @@ - window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/__tests__/*.stories.tsx","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)__tests__\\/(?!\\.)(?=.)[^/]*?\\.stories\\.tsx)$"}]; \ No newline at end of file + window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/__tests__/*.stories.tsx","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)__tests__\\/(?!\\.)(?=.)[^/]*?\\.stories\\.tsx)$"}]; \ No newline at end of file diff --git a/add-back-button-support-lighbox/index.html b/add-back-button-support-lighbox/index.html index abf25f24..d0ec0cd6 100644 --- a/add-back-button-support-lighbox/index.html +++ b/add-back-button-support-lighbox/index.html @@ -58,4 +58,4 @@ - window['DOCS_MODE'] = false; \ No newline at end of file + window['DOCS_MODE'] = false; \ No newline at end of file diff --git a/add-back-button-support-lighbox/main.25b49a18.iframe.bundle.js b/add-back-button-support-lighbox/main.25b49a18.iframe.bundle.js new file mode 100644 index 00000000..02393ed0 --- /dev/null +++ b/add-back-button-support-lighbox/main.25b49a18.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"./.storybook/action.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-string.js"),Object.defineProperty(exports,"__esModule",{value:!0}),exports.action=void 0;var addon_actions_1=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/index.js");exports.action=function(name,options){var namedAction=addon_actions_1.action(name,options);return namedAction.toString=function(){return"action('"+name+"')"},namedAction}},"./.storybook/preview.js-generated-config-entry.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var preview_namespaceObject={};__webpack_require__.r(preview_namespaceObject),__webpack_require__.d(preview_namespaceObject,"decorators",(function(){return decorators}));__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-properties.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var ClientApi=__webpack_require__("./node_modules/@storybook/client-api/dist/esm/ClientApi.js"),lib=(__webpack_require__("./node_modules/react/index.js"),__webpack_require__("./node_modules/storybook-addon-jsx/lib/index.js")),esm=__webpack_require__("./node_modules/@storybook/addon-a11y/dist/esm/index.js"),dist=__webpack_require__("./node_modules/@storybook/addon-knobs/dist/index.js"),ebay_svg=__webpack_require__("./src/ebay-svg/index.ts"),jsx_runtime=(__webpack_require__("./node_modules/@ebay/skin/index.js"),__webpack_require__("./node_modules/@ebay/skin/tokens.mjs"),__webpack_require__("./node_modules/react/jsx-runtime.js")),decorators=[esm.a,lib.jsxDecorator,dist.withKnobs,function(Story){return Object(jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[Object(jsx_runtime.jsx)(ebay_svg.EbaySvg,{}),Object(jsx_runtime.jsx)(Story,{})]})}];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(preview_namespaceObject).forEach((function(key){var value=preview_namespaceObject[key];switch(key){case"args":return Object(ClientApi.d)(value);case"argTypes":return Object(ClientApi.b)(value);case"decorators":return value.forEach((function(decorator){return Object(ClientApi.f)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return Object(ClientApi.g)(loader,!1)}));case"parameters":return Object(ClientApi.h)(function _objectSpread(target){for(var i=1;i0&&Array.isArray(val)?flatDeep(val,depth-1):result.push(val)}))}(this,depthArg),result}})},"./src/common/component-utils/forwardRef.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.create.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i0},isSelect=function isSelect(element){return"SELECT"===(null==element?void 0:element.tagName)},setPlaceholder=function setPlaceholder(element,value){if(isSelect(element)&&!hasValue(element.querySelector("option"))){element.style["min-width"]="";var beforeWidth=element.offsetWidth;element.querySelector("option").text=value,!value&&beforeWidth>element.offsetWidth&&(element.style["min-width"]=beforeWidth+"px")}};function useFloatingLabel(_a){var _b,ref=_a.ref,inputId=_a.inputId,className=_a.className,disabled=_a.disabled,label=_a.label,inputSize=_a.inputSize,inputValue=_a.inputValue,placeholder=_a.placeholder,invalid=_a.invalid,_c=_a.onMount,onMount=void 0===_c?function(){}:_c,_internalInputRef=react_1.useRef(null),inputRef=function inputRef(){return ref||_internalInputRef},_d=react_1.useState(Boolean(inputValue)),isFloating=_d[0],setFloating=_d[1],_e=react_1.useState(!1),shouldAnimate=_e[0],setAnimate=_e[1],_f=react_1.useState(!1),isFocused=_f[0],setFocused=_f[1],selectFirstOptionText=react_1.useRef("");react_1.useEffect((function(){var _a,_b;label&&(selectFirstOptionText.current=function getPlaceholder(element){return isSelect(element)?element.querySelector("option").text:null==element?void 0:element.placeholder}(null===(_a=inputRef())||void 0===_a?void 0:_a.current),setPlaceholder(null===(_b=inputRef())||void 0===_b?void 0:_b.current,""),onMount())}),[]),react_1.useEffect((function(){var _a,_b;label&&setFloating(isFocused||hasValue(null===(_a=inputRef())||void 0===_a?void 0:_a.current)||function isAutofilled(input){return input&&!textboxElementBackgroundRGB.includes(getComputedStyle(input).backgroundColor)}(null===(_b=inputRef())||void 0===_b?void 0:_b.current))}),[isFocused,inputValue]);var labelClassName=classnames_1.default(className,classPrefix,((_b={})[classPrefix+"--disabled"]=disabled,_b[classPrefix+"--animate"]=shouldAnimate,_b[classPrefix+"--inline"]=!isFloating,_b[classPrefix+"--invalid"]=invalid,_b)),floatingLabelClassName=classnames_1.default("floating-label",{"floating-label--large":"large"===inputSize}),FragmentContainer=react_1.useCallback((function(_a){var children=_a.children;return react_1.default.createElement(react_1.default.Fragment,null,children)}),[]),FloatingLabelContainer=react_1.useCallback((function(_a){var children=_a.children;return react_1.default.createElement("span",{className:floatingLabelClassName},children)}),[floatingLabelClassName]);return label?{label:react_1.default.createElement("label",{htmlFor:inputId,className:labelClassName},label),Container:FloatingLabelContainer,onBlur:function onBlur(){setAnimate(!0),setFloating(!1),setFocused(!1),setPlaceholder(inputRef().current,"")},onFocus:function onFocus(){var _a;setAnimate(!0),setFloating(!0),setFocused(!0),setPlaceholder(null===(_a=inputRef())||void 0===_a?void 0:_a.current,selectFirstOptionText.current)},ref:inputRef(),placeholder:isFloating?placeholder:null}:{label:null,Container:FragmentContainer,onBlur:function onBlur(){},onFocus:function onFocus(){},ref:inputRef(),placeholder:placeholder}}exports.useFloatingLabel=useFloatingLabel;try{useFloatingLabel.displayName="useFloatingLabel",useFloatingLabel.__docgenInfo={description:"",displayName:"useFloatingLabel",props:{inputId:{defaultValue:null,description:"",name:"inputId",required:!1,type:{name:"string"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},inputSize:{defaultValue:null,description:"",name:"inputSize",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"large"'}]}},inputValue:{defaultValue:null,description:"",name:"inputValue",required:!1,type:{name:"string | number | readonly string[]"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},invalid:{defaultValue:null,description:"",name:"invalid",required:!1,type:{name:"boolean"}},onMount:{defaultValue:{value:"() => {}"},description:"",name:"onMount",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/common/floating-label-utils/hooks.tsx#useFloatingLabel"]={docgenInfo:useFloatingLabel.__docgenInfo,name:"useFloatingLabel",path:"src/common/floating-label-utils/hooks.tsx#useFloatingLabel"})}catch(__react_docgen_typescript_loader_error){}},"./src/common/notice-utils/notice-content.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),classnames_1=__importDefault(__webpack_require__("./node_modules/classnames/index.js"));exports.default=function NoticeContent(_a){var className=_a.className,type=_a.type,children=_a.children,ContentTag="inline"===type?"span":"div";return react_1.default.createElement(ContentTag,{className:classnames_1.default(className,type+"-notice__main")},children)};try{noticecontent.displayName="noticecontent",noticecontent.__docgenInfo={description:"",displayName:"noticecontent",props:{type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"inline"'},{value:'"page"'},{value:'"section"'}]}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/common/notice-utils/notice-content.tsx#noticecontent"]={docgenInfo:noticecontent.__docgenInfo,name:"noticecontent",path:"src/common/notice-utils/notice-content.tsx#noticecontent"})}catch(__react_docgen_typescript_loader_error){}},"./src/common/notice-utils/notice-cta.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/common/tooltip-utils/tooltip-content.tsx#tooltipcontent"]={docgenInfo:tooltipcontent.__docgenInfo,name:"tooltipcontent",path:"src/common/tooltip-utils/tooltip-content.tsx#tooltipcontent"})}catch(__react_docgen_typescript_loader_error){}},"./src/common/tooltip-utils/tooltip-footer.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),classnames_1=__importDefault(__webpack_require__("./node_modules/classnames/index.js"));exports.default=function TooltipFooter(_a){var children=_a.children,className=_a.className,_b=_a.type,type=void 0===_b?"tourtip":_b;return react_1.default.createElement("div",{className:classnames_1.default(type+"__footer",className)},children)};try{tooltipfooter.displayName="tooltipfooter",tooltipfooter.__docgenInfo={description:"",displayName:"tooltipfooter",props:{type:{defaultValue:{value:"tourtip"},description:"",name:"type",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/common/tooltip-utils/tooltip-footer.tsx#tooltipfooter"]={docgenInfo:tooltipfooter.__docgenInfo,name:"tooltipfooter",path:"src/common/tooltip-utils/tooltip-footer.tsx#tooltipfooter"})}catch(__react_docgen_typescript_loader_error){}},"./src/common/tooltip-utils/tooltip-host.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/common/tooltip-utils/tooltip-host.tsx#tooltiphost"]={docgenInfo:tooltiphost.__docgenInfo,name:"tooltiphost",path:"src/common/tooltip-utils/tooltip-host.tsx#tooltiphost"})}catch(__react_docgen_typescript_loader_error){}},"./src/common/tooltip-utils/tooltip.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.create.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/common/tooltip-utils/tooltip.tsx#Tooltip"]={docgenInfo:Tooltip.__docgenInfo,name:"Tooltip",path:"src/common/tooltip-utils/tooltip.tsx#Tooltip"})}catch(__react_docgen_typescript_loader_error){}},"./src/common/tooltip-utils/types.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),Object.defineProperty(exports,"__esModule",{value:!0})},"./src/common/tooltip-utils/use-tooltip.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),Object.defineProperty(exports,"__esModule",{value:!0}),exports.useTooltip=void 0;var react_1=__webpack_require__("./node_modules/react/index.js");exports.useTooltip=function(_a){var onExpand=_a.onExpand,onCollapse=_a.onCollapse,_b=_a.initialExpanded,initialExpanded=void 0!==_b&&_b,hostRef=_a.hostRef,_c=react_1.useState(initialExpanded),isExpanded=_c[0],setIsExpanded=_c[1];return{isExpanded:isExpanded,expandTooltip:function expandTooltip(){setIsExpanded(!0),onExpand&&onExpand()},collapseTooltip:function collapseTooltip(){var _a;setIsExpanded(!1),onCollapse&&onCollapse(),null===(_a=null==hostRef?void 0:hostRef.current)||void 0===_a||_a.focus()}}}},"./src/ebay-alert-dialog/__tests__/index.stories.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.create.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i {\n const [open, setOpen] = useState(true);\n const close = () => setOpen(false);\n return (\n
\n \n

Some outside content...

\n action(\'onOpen\')()}\n onConfirm={() => {\n action(\'onConfirm\')()\n close()\n }}\n confirmText="Confirm"\n a11yCloseText="Close"\n >\n Heading\n {textParagraph}\n

www.ebay.com

\n \n
\n );\n}'}},exports._Default.parameters),exports._WithAnimation.parameters=__assign({storySource:{source:'() => {\n const [open, setOpen] = useState(false);\n const close = () => setOpen(false);\n return (\n
\n \n

Some outside content...

\n \n Heading\n {textParagraph}\n

www.ebay.com

\n
\n
\n );\n}'}},exports._WithAnimation.parameters)},"./src/ebay-alert-dialog/alert-dialog.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.create.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i {}"},description:"",name:"onConfirm",required:!1,type:{name:"() => void"}},baseEl:{defaultValue:null,description:"",name:"baseEl",required:!1,type:{name:"enum",value:[{value:'"span"'},{value:'"div"'},{value:'"aside"'}]}},classPrefix:{defaultValue:null,description:"",name:"classPrefix",required:!1,type:{name:"enum",value:[{value:'"fullscreen-dialog"'},{value:'"lightbox-dialog"'},{value:'"panel-dialog"'},{value:'"drawer-dialog"'},{value:'"toast-dialog"'},{value:'"alert-dialog"'},{value:'"confirm-dialog"'},{value:'"snackbar-dialog"'}]}},windowClass:{defaultValue:null,description:"",name:"windowClass",required:!1,type:{name:"string"}},windowType:{defaultValue:null,description:"",name:"windowType",required:!1,type:{name:'"compact"'}},header:{defaultValue:null,description:"",name:"header",required:!1,type:{name:"ReactElement ReactElement) | (new (props: any) => Component)>"}},footer:{defaultValue:null,description:"",name:"footer",required:!1,type:{name:"ReactElement ReactElement) | (new (props: any) => Component)>"}},actions:{defaultValue:null,description:"",name:"actions",required:!1,type:{name:"ReactElement ReactElement) | (new (props: any) => Component)>"}},isModal:{defaultValue:null,description:"",name:"isModal",required:!1,type:{name:"boolean"}},top:{defaultValue:null,description:"",name:"top",required:!1,type:{name:"ReactElement ReactElement) | (new (props: any) => Component)>"}},buttonPosition:{defaultValue:null,description:"",name:"buttonPosition",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"hidden"'},{value:'"right"'},{value:'"bottom"'},{value:'"left"'}]}},ariaLabelledby:{defaultValue:null,description:"",name:"ariaLabelledby",required:!1,type:{name:"string"}},a11yCloseText:{defaultValue:{value:"Close Dialog"},description:"",name:"a11yCloseText",required:!1,type:{name:"string"}},onOpen:{defaultValue:null,description:"",name:"onOpen",required:!1,type:{name:"() => void"}},onCloseBtnClick:{defaultValue:null,description:"",name:"onCloseBtnClick",required:!1,type:{name:"((event: MouseEvent) => void) & ((event: KeyboardEvent) => void)"}},onBackgroundClick:{defaultValue:null,description:"",name:"onBackgroundClick",required:!1,type:{name:"(event: MouseEvent) => void"}},mainId:{defaultValue:null,description:"",name:"mainId",required:!1,type:{name:"string"}},ignoreEscape:{defaultValue:null,description:"",name:"ignoreEscape",required:!1,type:{name:"boolean"}},closeButton:{defaultValue:null,description:"",name:"closeButton",required:!1,type:{name:"ReactElement ReactElement) | (new (props: any) => Component)>"}},previousButton:{defaultValue:null,description:"",name:"previousButton",required:!1,type:{name:"ReactElement ReactElement) | (new (props: any) => Component)>"}},focus:{defaultValue:null,description:"",name:"focus",required:!1,type:{name:"RefObject"}},animated:{defaultValue:null,description:"",name:"animated",required:!1,type:{name:"boolean"}},transitionElement:{defaultValue:null,description:"",name:"transitionElement",required:!1,type:{name:"enum",value:[{value:'"window"'},{value:'"root"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ebay-alert-dialog/alert-dialog.tsx#alertdialog"]={docgenInfo:alertdialog.__docgenInfo,name:"alertdialog",path:"src/ebay-alert-dialog/alert-dialog.tsx#alertdialog"})}catch(__react_docgen_typescript_loader_error){}},"./src/ebay-alert-dialog/index.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),Object.defineProperty(exports,"__esModule",{value:!0});var alert_dialog_1=__webpack_require__("./src/ebay-alert-dialog/alert-dialog.tsx");Object.defineProperty(exports,"EbayAlertDialog",{enumerable:!0,get:function get(){return alert_dialog_1.default}})},"./src/ebay-badge/__tests__/index.stories.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i (<>\n \n)'}},exports.Default.parameters),exports.Zero.parameters=__assign({storySource:{source:'() => (<>\n \n)'}},exports.Zero.parameters),exports.BigNumbers.parameters=__assign({storySource:{source:'() => (<>\n \n)'}},exports.BigNumbers.parameters)},"./src/ebay-badge/badge.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/es.parse-int.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i99?"99+":parsed)};try{badge.displayName="badge",badge.__docgenInfo={description:"",displayName:"badge",props:{type:{defaultValue:{value:"img"},description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"img"'},{value:'"menu"'},{value:'"icon"'}]}},number:{defaultValue:null,description:"",name:"number",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ebay-badge/badge.tsx#badge"]={docgenInfo:badge.__docgenInfo,name:"badge",path:"src/ebay-badge/badge.tsx#badge"})}catch(__react_docgen_typescript_loader_error){}},"./src/ebay-badge/index.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),Object.defineProperty(exports,"__esModule",{value:!0});var badge_1=__webpack_require__("./src/ebay-badge/badge.tsx");Object.defineProperty(exports,"EbayBadge",{enumerable:!0,get:function get(){return badge_1.default}})},"./src/ebay-breadcrumbs/__tests__/index.stories.tsx":function(module,exports,__webpack_require__){"use strict";(function(module){__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),react_2=__webpack_require__("./node_modules/@storybook/react/dist/esm/client/index.js"),action_1=__webpack_require__("./.storybook/action.ts"),index_1=__webpack_require__("./src/ebay-breadcrumbs/index.ts");react_2.storiesOf("ebay-breadcrumb",module).addParameters({storySource:{source:'import React from \'react\'\nimport { storiesOf } from \'@storybook/react\'\nimport { action } from \'../../../.storybook/action\'\n\nimport { EbayBreadcrumbs, EbayBreadcrumbItem as Item } from \'../index\'\n\nstoriesOf(\'ebay-breadcrumb\', module)\n .add(\'default\', () => (<>\n action(\'select\')(e, { el })}>\n eBay\n Cell Phones, Smart Watches & Accessories\n Smart Watch Accessories\n Smart Watch Bands\n \n ))\n .add(\'all links\', () => (<>\n \n eBay\n Cell Phones, Smart Watches & Accessories\n Smart Watch Accessories\n Smart Watch Bands\n \n ))\n .add(\'custom props\', () => (<>\n \n \n eBay\n \n \n Cell Phones, Smart Watches & Accessories\n \n \n Smart Watch Accessories\n \n Smart Watch Bands\n \n ))\n .add(\'all buttons\', () => (<>\n \n {[\n \'eBay\',\n \'Cell Phones, Smart Watches & Accessories\',\n \'Smart Watch Accessories\',\n \'Smart Watch Bands\'\n ].map((item, index) =>\n {item}\n )}\n \n ))\n',locationsMap:{"all-buttons":{startLoc:{col:9,line:38},endLoc:{col:8,line:53},startBody:{col:24,line:38},endBody:{col:8,line:53}},"custom-props":{startLoc:{col:9,line:24},endLoc:{col:8,line:37},startBody:{col:25,line:24},endBody:{col:8,line:37}},"all-links":{startLoc:{col:9,line:16},endLoc:{col:8,line:23},startBody:{col:22,line:16},endBody:{col:8,line:23}},default:{startLoc:{col:9,line:8},endLoc:{col:8,line:15},startBody:{col:20,line:8},endBody:{col:8,line:15}}}}}).add("default",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(index_1.EbayBreadcrumbs,{onSelect:function onSelect(e,_a){var el=_a.el;return action_1.action("select")(e,{el:el})}},react_1.default.createElement(index_1.EbayBreadcrumbItem,{href:"https://www.ebay.com/"},"eBay"),react_1.default.createElement(index_1.EbayBreadcrumbItem,{href:"https://www.ebay.com/rpp/cell-phone-pda"},"Cell Phones, Smart Watches & Accessories"),react_1.default.createElement(index_1.EbayBreadcrumbItem,{href:"https://www.ebay.com/b/Smart-Watch-Accessories/182064/bn_16565905"},"Smart Watch Accessories"),react_1.default.createElement(index_1.EbayBreadcrumbItem,null,"Smart Watch Bands")))})).add("all links",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(index_1.EbayBreadcrumbs,{a11yHeadingText:"Custom page navigation",a11yHeadingTag:"h3"},react_1.default.createElement(index_1.EbayBreadcrumbItem,{href:"https://www.ebay.com/"},"eBay"),react_1.default.createElement(index_1.EbayBreadcrumbItem,{href:"https://www.ebay.com/rpp/cell-phone-pda"},"Cell Phones, Smart Watches & Accessories"),react_1.default.createElement(index_1.EbayBreadcrumbItem,{href:"https://www.ebay.com/b/Smart-Watch-Accessories/182064/bn_16565905"},"Smart Watch Accessories"),react_1.default.createElement(index_1.EbayBreadcrumbItem,{href:"https://www.ebay.com/b/Smart-Watch-Bands/182068/bn_16565906"},"Smart Watch Bands")))})).add("custom props",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(index_1.EbayBreadcrumbs,{className:"custom-breadcrumbs","custom-attr":"value"},react_1.default.createElement(index_1.EbayBreadcrumbItem,{href:"http://www.ebay.com/",navsrc:"{}",_sp:"p2345.m909.l34","data-track":"123"},"eBay"),react_1.default.createElement(index_1.EbayBreadcrumbItem,{href:"https://www.ebay.com/rpp/cell-phone-pda",navsrc:"{}",_sp:"p2345.m909.l34","data-track":"456"},"Cell Phones, Smart Watches & Accessories"),react_1.default.createElement(index_1.EbayBreadcrumbItem,{href:"https://www.ebay.com/b/Smart-Watch-Accessories/182064/bn_16565905",navsrc:"{}",_sp:"p2345.m909.l34","data-track":"789"},"Smart Watch Accessories"),react_1.default.createElement(index_1.EbayBreadcrumbItem,null,"Smart Watch Bands")))})).add("all buttons",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(index_1.EbayBreadcrumbs,{a11yHeadingText:"Custom page navigation",a11yHeadingTag:"h3",onSelect:action_1.action("select")},["eBay","Cell Phones, Smart Watches & Accessories","Smart Watch Accessories","Smart Watch Bands"].map((function(item,index){return react_1.default.createElement(index_1.EbayBreadcrumbItem,{key:index},item)}))))}))}).call(this,__webpack_require__("./node_modules/webpack/buildin/module.js")(module))},"./src/ebay-breadcrumbs/breadcrumb-item.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i {}"},description:"",name:"onSelect",required:!1,type:{name:"BaseEventHandler, Record>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ebay-breadcrumbs/breadcrumbs.tsx#breadcrumbs"]={docgenInfo:breadcrumbs.__docgenInfo,name:"breadcrumbs",path:"src/ebay-breadcrumbs/breadcrumbs.tsx#breadcrumbs"})}catch(__react_docgen_typescript_loader_error){}},"./src/ebay-breadcrumbs/index.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),Object.defineProperty(exports,"__esModule",{value:!0});var breadcrumbs_1=__webpack_require__("./src/ebay-breadcrumbs/breadcrumbs.tsx");Object.defineProperty(exports,"EbayBreadcrumbs",{enumerable:!0,get:function get(){return breadcrumbs_1.default}});var breadcrumb_item_1=__webpack_require__("./src/ebay-breadcrumbs/breadcrumb-item.tsx");Object.defineProperty(exports,"EbayBreadcrumbItem",{enumerable:!0,get:function get(){return breadcrumb_item_1.default}})},"./src/ebay-button/__tests__/index.stories.tsx":function(module,exports,__webpack_require__){"use strict";(function(module){__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),react_2=__webpack_require__("./node_modules/@storybook/react/dist/esm/client/index.js"),action_1=__webpack_require__("./.storybook/action.ts"),index_1=__webpack_require__("./src/ebay-button/index.ts"),icon_1=__importDefault(__webpack_require__("./src/ebay-icon/icon.tsx"));react_2.storiesOf("ebay-button",module).addParameters({storySource:{source:'import React from \'react\'\nimport { storiesOf } from \'@storybook/react\'\nimport { action } from \'../../../.storybook/action\'\nimport { EbayButton, EbayButtonCell } from \'../index\'\nimport EbayIcon from \'../../ebay-icon/icon\';\n\nstoriesOf(`ebay-button`, module)\n .add(`Default`, () => (\n <>\n

action(\'focus\')(e)}\n onBlur={action(\'blur\')}\n onKeyDown={action(\'key down\')}\n >Hello, I am a button!

\n

Hello, I am a link!

\n \n ))\n .add(`Size`, () => (\n <>\n

Large Button

\n

Large Link

\n

Default Size Button

\n

Default Size Link

\n \n ))\n .add(`Priority`, () => (\n <>\n

Primary Button

\n

Primary Link

\n

Secondary Button

\n

Secondary Link

\n

Secondary Button (Default)

\n

Secondary Link (Default)

\n

Tertiary Button

\n

Tertiary Link

\n

Base Button

\n \n ))\n .add(`Destructive variant`, () => (\n <>\n

Primary Button

\n

Primary Link

\n

Secondary Button

\n

Secondary Link

\n

Tertiary Button

\n

Tertiary Link

\n \n ))\n .add(`Fluid`, () => (\n <>\n

Primary Button

\n

Secondary Button

\n

Link

\n \n ))\n .add(`With icon`, () => (\n <>\n

Form button:
\n \n Button with icon\n

\n

Form fake-button (link):
\n \n Button with icon\n

\n

Delete button:
\n \n Button with icon\n

\n

Expand button:
\n \n Expand button\n

\n \n ))\n .add(`Icon Only`, () => (\n <>\n

Form button:
\n \n

\n

Form fake-button (link):
\n \n

\n

Delete button:
\n \n

\n \n ))\n .add(`Transparent`, () => (\n
\n

Default Button

\n

Transparent Button

\n

Transparent Destructive Button

\n

Transparent Link

\n
\n ))\n .add(`Disabled`, () => (\n <>\n

Primary Button

\n

Secondary Button

\n

Link

\n \n ))\n .add(`Partially disabled Button`, () => (\n Hello, I am a button!\n ))\n .add(`Truncated`, () => (\n
\n

Hello, I am a button! this is a long text

\n

Hello, I am a BIG button! this is a long text

\n

Hello, I am a link! this is a long text

\n
\n ))\n .add(`Flex Button`, () => (\n \n \n Select\n \n Any\n \n \n \n \n ))\n .add(`Loading button`, () => (\n <>\n

\n

\n

\n

\n

\n \n ))\n .add(`Expand button`, () => (\n <>\n

\n Primary expand button\n {\' \'}\n Expanded button\n

\n

Expand button

\n

Tertiary expand button

\n

\n Form expand button\n {\' \'}\n \n {\' \'}\n \n

\n

Borderless expand button

\n \n ))\n .add(`Split button`, () => (\n <>\n

\n Primary split start button\n Primary split end button\n

\n

\n Split start button\n Split end button\n

\n

\n Tertiary split start button\n Tertiary split end button\n

\n

\n Primary Split button\n \n

\n

\n Split button\n \n

\n

\n Tertiary split button\n \n

\n ))\n .add(`Form button`, () => (\n <>\n

Form button

\n \n ))\n .add(`Borderless button`, () => (\n <>\n

Borderless button

\n \n ))\n .add(`Fixed height`, () => (\n <>\n

Fixed height button

\n

Fixed height large button

\n \n ))\n',locationsMap:{}}}).add("Default",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{onClick:action_1.action("clicked"),onEscape:action_1.action("escape pressed"),onFocus:function onFocus(e){return action_1.action("focus")(e)},onBlur:action_1.action("blur"),onKeyDown:action_1.action("key down")},"Hello, I am a button!")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{href:"https://ebay.com"},"Hello, I am a link!")))})).add("Size",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{size:"large"},"Large Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{href:"https://ebay.com",size:"large"},"Large Link")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{size:"default"},"Default Size Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{size:"default",href:"https://ebay.com"},"Default Size Link")))})).add("Priority",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary"},"Primary Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary",href:"https://ebay.com"},"Primary Link")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"secondary"},"Secondary Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"secondary",href:"https://ebay.com"},"Secondary Link")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,null,"Secondary Button (Default)")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{href:"https://ebay.com"},"Secondary Link (Default)")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"tertiary"},"Tertiary Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"tertiary",href:"https://ebay.com"},"Tertiary Link")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"none"},"Base Button")))})).add("Destructive variant",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary",variant:"destructive"},"Primary Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary",variant:"destructive",href:"https://ebay.com"},"Primary Link")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"secondary",variant:"destructive"},"Secondary Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"secondary",variant:"destructive",href:"https://ebay.com"},"Secondary Link")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"tertiary",variant:"destructive"},"Tertiary Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"tertiary",variant:"destructive",href:"https://ebay.com"},"Tertiary Link")))})).add("Fluid",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary",fluid:!0},"Primary Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{fluid:!0},"Secondary Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{fluid:!0,href:"https://www.ebay.com"},"Link")))})).add("With icon",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,"Form button:",react_1.default.createElement("br",null),react_1.default.createElement(index_1.EbayButton,{"aria-label":"Menu button"},react_1.default.createElement(icon_1.default,{name:"menu20"}),react_1.default.createElement("span",null,"Button with icon"))),react_1.default.createElement("p",null,"Form fake-button (link):",react_1.default.createElement("br",null),react_1.default.createElement(index_1.EbayButton,{href:"#",variant:"form","aria-label":"Settings link"},react_1.default.createElement(icon_1.default,{name:"settings16"}),react_1.default.createElement("span",null,"Button with icon"))),react_1.default.createElement("p",null,"Delete button:",react_1.default.createElement("br",null),react_1.default.createElement(index_1.EbayButton,{variant:"destructive","aria-label":"Destructive button"},react_1.default.createElement(icon_1.default,{name:"delete16"}),react_1.default.createElement("span",null,"Button with icon"))),react_1.default.createElement("p",null,"Expand button:",react_1.default.createElement("br",null),react_1.default.createElement(index_1.EbayButton,{bodyState:"expand","aria-label":"Destructive button"},react_1.default.createElement(icon_1.default,{name:"settings16"}),react_1.default.createElement("span",null,"Expand button"))))})).add("Icon Only",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,"Form button:",react_1.default.createElement("br",null),react_1.default.createElement(index_1.EbayButton,{variant:"form","aria-label":"Menu button"},react_1.default.createElement(icon_1.default,{name:"menu20"}))),react_1.default.createElement("p",null,"Form fake-button (link):",react_1.default.createElement("br",null),react_1.default.createElement(index_1.EbayButton,{href:"#",variant:"form","aria-label":"Settings link"},react_1.default.createElement(icon_1.default,{name:"settings16"}))),react_1.default.createElement("p",null,"Delete button:",react_1.default.createElement("br",null),react_1.default.createElement(index_1.EbayButton,{variant:"destructive","aria-label":"Destructive button"},react_1.default.createElement(icon_1.default,{name:"delete16"}))))})).add("Transparent",(function(){return react_1.default.createElement("div",{style:{background:"rgba(66, 214, 205, 0.5)"}},react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,null,"Default Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{transparent:!0},"Transparent Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{transparent:!0,priority:"secondary",variant:"destructive"},"Transparent Destructive Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{href:"https://ebay.com",transparent:!0},"Transparent Link")))})).add("Disabled",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary",disabled:!0},"Primary Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{disabled:!0},"Secondary Button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{href:"https://ebay.com",disabled:!0},"Link")))})).add("Partially disabled Button",(function(){return react_1.default.createElement(index_1.EbayButton,{priority:"primary",partiallyDisabled:!0},"Hello, I am a button!")})).add("Truncated",(function(){return react_1.default.createElement("div",null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{truncate:!0,style:{maxWidth:"200px"}},"Hello, I am a button! this is a long text")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{size:"large",truncate:!0,style:{maxWidth:"200px"}},"Hello, I am a BIG button! this is a long text")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{href:"https://ebay.com",truncate:!0,style:{maxWidth:"200px"}},"Hello, I am a link! this is a long text")))})).add("Flex Button",(function(){return react_1.default.createElement(index_1.EbayButton,{priority:"primary",fluid:!0},react_1.default.createElement(index_1.EbayButtonCell,{style:{justifyContent:"space-between"}},react_1.default.createElement("span",null,"Select"),react_1.default.createElement("span",{style:{display:"inline-flex"}},react_1.default.createElement("span",null,"Any"),react_1.default.createElement(icon_1.default,{name:"chevronDown16"}))))})).add("Loading button",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{bodyState:"loading"})),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary",bodyState:"loading"})),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"tertiary",bodyState:"loading"})),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{variant:"form",bodyState:"loading"})),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{variant:"destructive",bodyState:"loading"})))})).add("Expand button",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary",bodyState:"expand"},"Primary expand button")," ",react_1.default.createElement(index_1.EbayButton,{priority:"primary",bodyState:"expand","aria-expanded":"true"},"Expanded button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{bodyState:"expand"},"Expand button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"tertiary",bodyState:"expand"},"Tertiary expand button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{variant:"form",bodyState:"expand"},"Form expand button")," ",react_1.default.createElement(index_1.EbayButton,{variant:"form",bodyState:"expand"})," ",react_1.default.createElement(index_1.EbayButton,{variant:"form",bodyState:"expand","aria-expanded":!0})),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary",bodyState:"expand",borderless:!0},"Borderless expand button")))})).add("Split button",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary",split:"start"},"Primary split start button"),react_1.default.createElement(index_1.EbayButton,{priority:"primary",split:"end"},"Primary split end button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{split:"start"},"Split start button"),react_1.default.createElement(index_1.EbayButton,{split:"end"},"Split end button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"tertiary",split:"start"},"Tertiary split start button"),react_1.default.createElement(index_1.EbayButton,{priority:"tertiary",split:"end"},"Tertiary split end button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"primary",split:"start"},"Primary Split button"),react_1.default.createElement(index_1.EbayButton,{priority:"primary",bodyState:"expand",split:"end"})),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{split:"start"},"Split button"),react_1.default.createElement(index_1.EbayButton,{bodyState:"expand",split:"end"})),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{priority:"tertiary",split:"start"},"Tertiary split button"),react_1.default.createElement(index_1.EbayButton,{priority:"tertiary",bodyState:"expand",split:"end"}))," ")})).add("Form button",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{variant:"form"},"Form button")))})).add("Borderless button",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{borderless:!0},"Borderless button")))})).add("Fixed height",(function(){return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{fixedHeight:!0},"Fixed height button")),react_1.default.createElement("p",null,react_1.default.createElement(index_1.EbayButton,{fixedHeight:!0,size:"large"},"Fixed height large button")))}))}).call(this,__webpack_require__("./node_modules/webpack/buildin/module.js")(module))},"./src/ebay-button/button-cell.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i {}"},description:"",name:"onEscape",required:!1,type:{name:"(e: KeyboardEvent) => void"}},forwardedRef:{defaultValue:null,description:"",name:"forwardedRef",required:!1,type:{name:"RefObject"}},borderless:{defaultValue:null,description:"",name:"borderless",required:!1,type:{name:"boolean"}},fixedHeight:{defaultValue:null,description:"",name:"fixedHeight",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ebay-button/button.tsx#EbayButton"]={docgenInfo:EbayButton.__docgenInfo,name:"EbayButton",path:"src/ebay-button/button.tsx#EbayButton"})}catch(__react_docgen_typescript_loader_error){}},"./src/ebay-button/index.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),Object.defineProperty(exports,"__esModule",{value:!0});var button_1=__webpack_require__("./src/ebay-button/button.tsx");Object.defineProperty(exports,"EbayButton",{enumerable:!0,get:function get(){return button_1.default}}),Object.defineProperty(exports,"EbayButtonProps",{enumerable:!0,get:function get(){return button_1.EbayButtonProps}});var button_cell_1=__webpack_require__("./src/ebay-button/button-cell.tsx");Object.defineProperty(exports,"EbayButtonCell",{enumerable:!0,get:function get(){return button_cell_1.default}});var types_1=__webpack_require__("./src/ebay-button/types.ts");Object.defineProperty(exports,"Size",{enumerable:!0,get:function get(){return types_1.Size}}),Object.defineProperty(exports,"Priority",{enumerable:!0,get:function get(){return types_1.Priority}})},"./src/ebay-button/types.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),Object.defineProperty(exports,"__esModule",{value:!0})},"./src/ebay-carousel/__tests__/index.stories.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.fill.js"),__webpack_require__("./node_modules/core-js/modules/es.function.bind.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i {\n return (\n \n {items}\n \n );\n}"}},exports.Continuous.parameters),exports.ItemsPerSlide.parameters=__assign({storySource:{source:"(args) => {\n return (\n \n {items}\n \n );\n}"}},exports.ItemsPerSlide.parameters);try{Continuous.displayName="Continuous",Continuous.__docgenInfo={description:"",displayName:"Continuous",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ebay-carousel/__tests__/index.stories.tsx#Continuous"]={docgenInfo:Continuous.__docgenInfo,name:"Continuous",path:"src/ebay-carousel/__tests__/index.stories.tsx#Continuous"})}catch(__react_docgen_typescript_loader_error){}},"./src/ebay-carousel/carousel-control-button.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var react_1=__importDefault(__webpack_require__("./node_modules/react/index.js")),classnames_1=__importDefault(__webpack_require__("./node_modules/classnames/index.js")),ebay_icon_1=__webpack_require__("./src/ebay-icon/index.ts"),icon={prev:"chevronLeft12",next:"chevronRight12"},typeToDirection={prev:"LEFT",next:"RIGHT"};exports.default=function CarouselControlButton(_a){var type=_a.type,label=_a.label,hidden=_a.hidden,disabled=_a.disabled,onClick=_a.onClick;return react_1.default.createElement("button",{className:classnames_1.default("carousel__control","carousel__control--"+type),"aria-label":label,"aria-disabled":disabled,disabled:disabled,onClick:function handleOnClick(event){onClick(event,{direction:typeToDirection[type]})}},react_1.default.createElement(ebay_icon_1.EbayIcon,{className:classnames_1.default("icon","icon--carousel-"+type),focusable:!1,name:icon[type],"aria-hidden":hidden}))};try{carouselcontrolbutton.displayName="carouselcontrolbutton",carouselcontrolbutton.__docgenInfo={description:"",displayName:"carouselcontrolbutton",props:{label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"next"'},{value:'"prev"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"(event: SyntheticEvent, { direction }: { direction: any; }) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ebay-carousel/carousel-control-button.tsx#carouselcontrolbutton"]={docgenInfo:carouselcontrolbutton.__docgenInfo,name:"carouselcontrolbutton",path:"src/ebay-carousel/carousel-control-button.tsx#carouselcontrolbutton"})}catch(__react_docgen_typescript_loader_error){}},"./src/ebay-carousel/carousel-item.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.create.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i=-.01&&right-offset<=slideWidth+.01;return setIsVisible(fullyVisible),{left:left,right:right,fullyVisible:fullyVisible}}}),[slideWidth,offset]),react_1.default.createElement("li",__assign({ref:itemRef,"aria-hidden":!isVisible},rest),children)};exports.default=component_utils_1.withForwardRef(EbayCarouselItem);try{EbayCarouselItem.displayName="EbayCarouselItem",EbayCarouselItem.__docgenInfo={description:"",displayName:"EbayCarouselItem",props:{slideWidth:{defaultValue:null,description:"",name:"slideWidth",required:!1,type:{name:"number"}},offset:{defaultValue:null,description:"",name:"offset",required:!1,type:{name:"number"}},forwardedRef:{defaultValue:null,description:"",name:"forwardedRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ebay-carousel/carousel-item.tsx#EbayCarouselItem"]={docgenInfo:EbayCarouselItem.__docgenInfo,name:"EbayCarouselItem",path:"src/ebay-carousel/carousel-item.tsx#EbayCarouselItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/ebay-carousel/carousel-list.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.create.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/web.timers.js");var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function get(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),classnames_1=__importDefault(__webpack_require__("./node_modules/classnames/index.js")),helpers_1=__webpack_require__("./src/ebay-carousel/helpers.ts"),scroll_to_transition_1=__webpack_require__("./src/ebay-carousel/scroll-to-transition.ts");exports.default=function CarouselList(_a){var _b=_a.gap,gap=void 0===_b?16:_b,itemsPerSlide=_a.itemsPerSlide,slideWidth=_a.slideWidth,offset=_a.offset,activeIndex=_a.activeIndex,nextControlDisabled=_a.nextControlDisabled,className=_a.className,itemsRef=_a.itemsRef,children=_a.children,onSetActiveIndex=_a.onSetActiveIndex,onScroll=_a.onScroll,_c=react_1.useState(0),translateLeft=_c[0],setTranslateLeft=_c[1],_d=react_1.useState(!1),skipScrolling=_d[0],setSkipScrolling=_d[1],_e=react_1.useState(!1),scrollTransitioning=_e[0],setScrollTransitioning=_e[1],listRef=react_1.useRef(null),scrollTimeout=react_1.useRef(null);react_1.useEffect((function(){if(react_1.Children.count(children)&&listRef.current)if(skipScrolling)setSkipScrolling(!1);else{var list=listRef.current;helpers_1.isNativeScrolling(list)?(setScrollTransitioning(!0),scroll_to_transition_1.scrollTransition(list,offset,(function(){return setScrollTransitioning(!1)}))):setTranslateLeft(offset)}}),[offset]);var handleFinishScrolling=react_1.useCallback((function(){var scrollLeft=listRef.current.scrollLeft,closest=helpers_1.getClosestIndex(scrollLeft,itemsRef.current,slideWidth,itemsPerSlide,gap);closest!==activeIndex&&(setSkipScrolling(!0),onSetActiveIndex(closest),onScroll({index:closest}))}),[listRef.current,itemsRef.current,slideWidth,activeIndex,onSetActiveIndex]);return react_1.default.createElement("div",{className:classnames_1.default("carousel__viewport",{"carousel__viewport--mask":!nextControlDisabled},className)},react_1.default.createElement("ul",{className:"carousel__list",ref:listRef,onScroll:function handleScroll(){scrollTimeout.current&&clearTimeout(scrollTimeout.current),scrollTimeout.current=setTimeout((function(){scrollTransitioning||handleFinishScrolling()}),640)},style:{transform:"translate3d("+-translateLeft+"px, 0, 0)"}},helpers_1.alterChildren(children,itemsRef,itemsPerSlide,slideWidth,offset,gap)))};try{carousellist.displayName="carousellist",carousellist.__docgenInfo={description:"",displayName:"carousellist",props:{gap:{defaultValue:{value:"16"},description:"",name:"gap",required:!1,type:{name:"number"}},itemsPerSlide:{defaultValue:null,description:"",name:"itemsPerSlide",required:!0,type:{name:"number"}},slideWidth:{defaultValue:null,description:"",name:"slideWidth",required:!0,type:{name:"number"}},offset:{defaultValue:null,description:"",name:"offset",required:!0,type:{name:"number"}},activeIndex:{defaultValue:null,description:"",name:"activeIndex",required:!0,type:{name:"number"}},nextControlDisabled:{defaultValue:null,description:"",name:"nextControlDisabled",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},itemsRef:{defaultValue:null,description:"",name:"itemsRef",required:!1,type:{name:"RefObject"}},onSetActiveIndex:{defaultValue:null,description:"",name:"onSetActiveIndex",required:!0,type:{name:"(index: number) => void"}},onScroll:{defaultValue:null,description:"",name:"onScroll",required:!1,type:{name:"({ index }: { index: any; }) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ebay-carousel/carousel-list.tsx#carousellist"]={docgenInfo:carousellist.__docgenInfo,name:"carousellist",path:"src/ebay-carousel/carousel-list.tsx#carousellist"})}catch(__react_docgen_typescript_loader_error){}},"./src/ebay-carousel/carousel.tsx":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.create.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.splice.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i=0&&index<=itemCount-1&&setActiveIndex(index)}),[index]),react_1.useEffect((function(){itemsRef.current=itemsRef.current.splice(0,itemCount)}),[children]),react_1.useEffect((function(){var containerWidth=containerRef.current.getBoundingClientRect().width;setSlideWidth(containerWidth)}),[containerRef.current]);var handleControlClick=function handleControlClick(event,_a){var direction=_a.direction,nextIndex=helpers_1.getNextIndex(direction,activeIndex,itemsRef.current,slideWidth,itemsPerSlide),slide=helpers_1.getSlide(activeIndex,itemsPerSlide,nextIndex);setActiveIndex(nextIndex),"LEFT"===direction?onPrevious(event):onNext(event),onSlide({slide:slide})};return react_1.default.createElement("div",__assign({className:classnames_1.default("carousel",className,{"carousel--slides":itemsPerSlide,"carousel--peek":itemsPerSlide%1==0})},rest),react_1.default.createElement("div",{ref:containerRef,className:"carousel__container"},react_1.default.createElement(carousel_control_button_1.default,{label:a11yPreviousText,type:"prev",disabled:prevControlDisabled,onClick:handleControlClick}),react_1.default.createElement(carousel_list_1.default,{itemsRef:itemsRef,offset:offset,gap:gap,itemsPerSlide:itemsPerSlide,nextControlDisabled:nextControlDisabled,activeIndex:activeIndex,onScroll:onScroll,onSetActiveIndex:setActiveIndex,slideWidth:slideWidth},children),react_1.default.createElement(carousel_control_button_1.default,{type:"next",label:a11yNextText,disabled:nextControlDisabled,onClick:handleControlClick})))};try{carousel.displayName="carousel",carousel.__docgenInfo={description:"",displayName:"carousel",props:{gap:{defaultValue:{value:"16"},description:"",name:"gap",required:!1,type:{name:"number"}},index:{defaultValue:{value:"0"},description:"",name:"index",required:!1,type:{name:"number"}},imageTreatment:{defaultValue:null,description:"",name:"imageTreatment",required:!1,type:{name:"boolean"}},itemsPerSlide:{defaultValue:null,description:"",name:"itemsPerSlide",required:!1,type:{name:"number"}},a11yPreviousText:{defaultValue:null,description:"",name:"a11yPreviousText",required:!1,type:{name:"string"}},a11yNextText:{defaultValue:null,description:"",name:"a11yNextText",required:!1,type:{name:"string"}},onNext:{defaultValue:{value:"() => {}"},description:"",name:"onNext",required:!1,type:{name:"(event: SyntheticEvent) => void"}},onPrevious:{defaultValue:{value:"() => {}"},description:"",name:"onPrevious",required:!1,type:{name:"(event: SyntheticEvent) => void"}},onSlide:{defaultValue:{value:"() => {}"},description:"",name:"onSlide",required:!1,type:{name:"({ slide }: { slide: any; }) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ebay-carousel/carousel.tsx#carousel"]={docgenInfo:carousel.__docgenInfo,name:"carousel",path:"src/ebay-carousel/carousel.tsx#carousel"})}catch(__react_docgen_typescript_loader_error){}},"./src/ebay-carousel/helpers.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i0){var result=index;return result%=items.length||1,result-=result%(itemsPerSlide||1),result=Math.abs(result)}return 0};exports.getSlide=function(activeIndex,itemsPerSlide,nextIndex){if(void 0===nextIndex&&(nextIndex=activeIndex),itemsPerSlide)return Math.ceil(nextIndex/itemsPerSlide)};var getDelta=function getDelta(direction){return"LEFT"===direction?-1:1};exports.getNextIndex=function(direction,activeIndex,items,slideWidth,itemsPerSlide){var item,i=activeIndex;if("LEFT"===direction&&0===i)i=items.length-1;else{do{item=items[i+=getDelta(direction)]}while(item&&item.fullyVisible);if("LEFT"===direction&&!itemsPerSlide){var targetOffset=item.right-slideWidth;do{item=items[--i]}while(item&&item.left>=targetOffset);i+=1}}return normalizeIndex(i,items,itemsPerSlide)},exports.getClosestIndex=function(scrollLeft,items,slideWidth,itemsPerSlide,gap){var closest;if(void 0===itemsPerSlide&&(itemsPerSlide=1),scrollLeft>=exports.getMaxOffset(items,slideWidth)-gap)closest=items.length-1;else{for(var totalItems=items.length,low=0,high=Math.ceil(totalItems/itemsPerSlide)-1;high-low>1;){var mid=Math.floor((low+high)/2);scrollLeft>items[mid*itemsPerSlide].left?low=mid:high=mid}var deltaLow=Math.abs(scrollLeft-items[low*itemsPerSlide].left),deltaHigh=Math.abs(scrollLeft-items[high*itemsPerSlide].left);closest=normalizeIndex((deltaLow>deltaHigh?high:low)*itemsPerSlide,items,itemsPerSlide)}return closest}},"./src/ebay-carousel/index.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),Object.defineProperty(exports,"__esModule",{value:!0});var carousel_1=__webpack_require__("./src/ebay-carousel/carousel.tsx");Object.defineProperty(exports,"EbayCarousel",{enumerable:!0,get:function get(){return carousel_1.default}});var carousel_item_1=__webpack_require__("./src/ebay-carousel/carousel-item.tsx");Object.defineProperty(exports,"EbayCarouselItem",{enumerable:!0,get:function get(){return carousel_item_1.default}})},"./src/ebay-carousel/scroll-to-transition.ts":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/core-js/modules/web.timers.js"),Object.defineProperty(exports,"__esModule",{value:!0}),exports.scrollTransition=void 0;var supportsScrollBehavior="undefined"!=typeof window&&"scrollBehavior"in document.body.style;exports.scrollTransition=function scrollTransition(el,to,fn){if(supportsScrollBehavior)return el.scrollTo({left:to}),function onScrollEnd(el,fn){var timeout,frame,lastPos;return function checkMoved(){var scrollLeft=el.scrollLeft;if(lastPos!==scrollLeft)return lastPos=scrollLeft,void(timeout=setTimeout((function(){frame=requestAnimationFrame(checkMoved)}),90));fn(lastPos)}(),function(){clearTimeout(timeout),cancelAnimationFrame(frame)}}(el,fn);var lastPosition,cancelInterruptTransition,frame=requestAnimationFrame((function(startTime){var scrollLeft=el.scrollLeft,distance=to-scrollLeft;!function animate(curTime){var delta=curTime-startTime;if(delta>450)return el.scrollLeft=to,cancel(),fn();el.scrollLeft=function easeInOut(val){return val<.5?2*val*val:(4-2*val)*val-1}(delta/450)*distance+scrollLeft,frame=requestAnimationFrame(animate)}(startTime)}));return el.addEventListener("touchstart",handleTouchStart),cancel;function cancel(){cancelAnimationFrame(frame),void 0===lastPosition?function cancelTouchStart(){el.removeEventListener("touchstart",handleTouchStart)}():(cancelInterruptTransition&&cancelInterruptTransition(),cancelTouchEnd())}function handleTouchStart(){cancel(),lastPosition=el.scrollLeft,el.addEventListener("touchend",handleTouchEnd)}function handleTouchEnd(){cancelTouchEnd(),lastPosition===el.scrollLeft&&(cancelInterruptTransition=scrollTransition(el,to,fn))}function cancelTouchEnd(){el.removeEventListener("touchend",handleTouchEnd)}}},"./src/ebay-checkbox/__tests__/index.stories.tsx":function(module,exports,__webpack_require__){"use strict";(function(module){__webpack_require__("./node_modules/core-js/modules/es.object.create.js"),__webpack_require__("./node_modules/core-js/modules/es.object.define-property.js");var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function get(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0});var react_1=__importStar(__webpack_require__("./node_modules/react/index.js")),react_2=__webpack_require__("./node_modules/@storybook/react/dist/esm/client/index.js"),action_1=__webpack_require__("./.storybook/action.ts"),ebay_field_1=__webpack_require__("./src/ebay-field/index.ts"),index_1=__webpack_require__("./src/ebay-checkbox/index.ts");react_2.storiesOf("ebay-checkbox",module).addParameters({storySource:{source:'import React, { useState, useRef, ChangeEvent } from \'react\';\nimport { storiesOf } from \'@storybook/react\'\nimport { action } from \'../../../.storybook/action\'\nimport { EbayLabel } from \'../../ebay-field\'\nimport { EbayCheckbox } from \'../index\'\n\nstoriesOf(`ebay-checkbox`, module)\n .add(`Default checkbox-button`, () => (\n <>\n

\n action(\'onChange\')(e, props)}\n onFocus={(e, props) => action(\'onFocus\')(e, props)}\n onKeyDown={(e, props) => action(\'onKeyDown\')(e, props)}\n >\n Default\n \n

\n

\n \n Large\n \n

\n \n ))\n .add(`Selected checkbox-button`, () => (\n <>\n

\n \n Default\n \n

\n

\n \n Large\n \n

\n \n ))\n .add(`Disabled checkbox-button`, () => (\n <>\n

\n \n Default disabled\n \n

\n

\n \n Large disabled\n \n

\n \n ))\n .add(`Grouped checkbox-buttons`, () => (\n
\n Choose an Option\n \n \n Option 1\n \n \n \n \n Option 2\n \n \n \n \n Option 3\n \n \n
\n ))\n .add(`Styled checkbox-button`, () => (\n \n