/*! For license information please see clearbutton-stories-clearbutton-stories.0149887d.iframe.bundle.js.LICENSE.txt */
(globalThis.webpackChunk_spectrum_css_preview=globalThis.webpackChunk_spectrum_css_preview||[]).push([[4366],{"../components/clearbutton/stories/clearbutton.stories.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,OverBackground:()=>OverBackground,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var lit__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../node_modules/lit/index.js"),_template__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../components/clearbutton/stories/template.js");const __WEBPACK_DEFAULT_EXPORT__={title:"Components/Clear button",description:"The clear button component is and in-field button used in Search and Tag",component:"ClearButton",argTypes:{size:{name:"Size",type:{name:"string",required:!0},table:{type:{summary:"string"},category:"Component"},options:["s","m","l","xl"],control:"select"},isDisabled:{name:"Disabled",type:{name:"boolean"},table:{type:{summary:"boolean"},category:"State"},control:"boolean"},variant:{table:{disable:!0}}},args:{rootClass:"spectrum-ClearButton",size:"m",isDisabled:!1},parameters:{actions:{handles:[]},status:{type:"migrated"}}},Default=_template__WEBPACK_IMPORTED_MODULE_1__.B.bind({});Default.args={};const OverBackground=_template__WEBPACK_IMPORTED_MODULE_1__.B.bind({});OverBackground.args={variant:"overBackground"},OverBackground.decorators=[Story=>lit__WEBPACK_IMPORTED_MODULE_0__.qy`
        <div style="background-color: rgb(15, 121, 125); padding: 15px 20px;">
            ${Story()}
        </div>
    `];const __namedExportsOrder=["Default","OverBackground"]},"../node_modules/file-loader/dist/cjs.js??ruleSet[1].rules[10].use[1]!../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].use[2]!../components/clearbutton/index.css":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__.p+"assets/css/components/clearbutton/index.css"},"../components/clearbutton/stories/template.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{B:()=>Template});var lit=__webpack_require__("../node_modules/lit/index.js"),class_map=__webpack_require__("../node_modules/lit/directives/class-map.js"),if_defined=__webpack_require__("../node_modules/lit/directives/if-defined.js"),style_map=__webpack_require__("../node_modules/lit/directives/style-map.js"),template=__webpack_require__("../components/icon/stories/template.js"),injectStylesIntoLinkTag=__webpack_require__("../node_modules/style-loader/dist/runtime/injectStylesIntoLinkTag.js"),injectStylesIntoLinkTag_default=__webpack_require__.n(injectStylesIntoLinkTag),insertBySelector=__webpack_require__("../node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),clearbutton=__webpack_require__("../node_modules/file-loader/dist/cjs.js??ruleSet[1].rules[10].use[1]!../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].use[2]!../components/clearbutton/index.css"),clearbutton_default=__webpack_require__.n(clearbutton),options={attributes:{"data-source":"processed"}};options.insert=insertBySelector_default().bind(null,"head");injectStylesIntoLinkTag_default()(clearbutton_default(),options);const Template=({rootClass="spectrum-ClearButton",isDisabled=!1,size="m",variant,id,customClasses=[],customStyles={},...globals})=>{const{express}=globals;try{express?__webpack_require__.e(3330).then(__webpack_require__.bind(__webpack_require__,"../components/clearbutton/themes/express.css")):__webpack_require__.e(3353).then(__webpack_require__.bind(__webpack_require__,"../components/clearbutton/themes/spectrum.css"))}catch(e){console.warn(e)}return lit.qy`
		<button
			type="reset"
			class=${(0,class_map.H)({[rootClass]:!0,[`${rootClass}--size${size?.toUpperCase()}`]:void 0!==size,[`${rootClass}--${variant}`]:void 0!==variant,"is-disabled":isDisabled,...customClasses.reduce(((a,c)=>({...a,[c]:!0})),{})})}
			id=${(0,if_defined.J)(id)}
			style=${(0,if_defined.J)((0,style_map.W)(customStyles))}
			?disabled=${isDisabled}
		>
			<div class="${rootClass}-fill">
				${(0,template.B)({...globals,size,iconName:"Cross",customClasses:[`${rootClass}-icon`]})}
			</div>
		</button>
	`}},"../node_modules/lit/directives/style-map.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>o});var lit_html=__webpack_require__("../node_modules/lit-html/lit-html.js"),directive=__webpack_require__("../node_modules/lit-html/directive.js");const n="important",i=" !"+n,o=(0,directive.u$)(class extends directive.WL{constructor(t){if(super(t),t.type!==directive.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const r="string"==typeof e&&e.endsWith(i);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:""):s[t]=e}}return lit_html.c0}})}}]);
//# sourceMappingURL=clearbutton-stories-clearbutton-stories.0149887d.iframe.bundle.js.map