@solid-design-system/components 5.13.11 → 5.13.13
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/cdn/chunks/{chunk.EQQG2IOL.js → chunk.LACWK5U2.js} +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/tag/tag.js +1 -1
- package/cdn/custom-elements.json +11 -7
- package/cdn/solid-components.bundle.js +1 -1
- package/cdn/solid-components.iife.js +1 -1
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +13 -5
- package/cdn/web-types.json +27 -11
- package/cdn-versioned/chunks/chunk.22K26MFW.js +1 -1
- package/cdn-versioned/chunks/chunk.27FNJ2PN.js +1 -1
- package/cdn-versioned/chunks/chunk.2ASRYO75.js +1 -1
- package/cdn-versioned/chunks/chunk.2C7EBMG5.js +1 -1
- package/cdn-versioned/chunks/chunk.2GL7J2OA.js +1 -1
- package/cdn-versioned/chunks/chunk.2MWGJ42J.js +1 -1
- package/cdn-versioned/chunks/chunk.2NU6E5HZ.js +1 -1
- package/cdn-versioned/chunks/chunk.3FMPWWYL.js +1 -1
- package/cdn-versioned/chunks/chunk.42542XOU.js +1 -1
- package/cdn-versioned/chunks/chunk.4JCFZ7AN.js +1 -1
- package/cdn-versioned/chunks/chunk.4UDZGPPR.js +1 -1
- package/cdn-versioned/chunks/chunk.4WS6ISBF.js +1 -1
- package/cdn-versioned/chunks/chunk.54UYR3N2.js +1 -1
- package/cdn-versioned/chunks/chunk.5RA4GJWJ.js +1 -1
- package/cdn-versioned/chunks/chunk.5SK5BWKE.js +1 -1
- package/cdn-versioned/chunks/chunk.6EVGQLHB.js +1 -1
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/chunk.7OFXZTBU.js +1 -1
- package/cdn-versioned/chunks/chunk.APITCTY7.js +2 -2
- package/cdn-versioned/chunks/chunk.B54NSO5Y.js +1 -1
- package/cdn-versioned/chunks/chunk.BBD6RMZH.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DB2LBRW5.js +1 -1
- package/cdn-versioned/chunks/chunk.DNPUPU5N.js +1 -1
- package/cdn-versioned/chunks/chunk.DS6OKK7E.js +1 -1
- package/cdn-versioned/chunks/chunk.DVQVZCFM.js +1 -1
- package/cdn-versioned/chunks/chunk.EF5R3XXB.js +1 -1
- package/cdn-versioned/chunks/chunk.FADTWOWY.js +1 -1
- package/cdn-versioned/chunks/chunk.FEL7NDH5.js +1 -1
- package/cdn-versioned/chunks/chunk.GMVRGCVC.js +1 -1
- package/cdn-versioned/chunks/chunk.HJR66OM3.js +1 -1
- package/cdn-versioned/chunks/chunk.I4JFBFUL.js +1 -1
- package/cdn-versioned/chunks/chunk.IVTNENFE.js +1 -1
- package/cdn-versioned/chunks/chunk.JM4O4R5N.js +4 -4
- package/cdn-versioned/chunks/chunk.JR3LNORU.js +1 -1
- package/cdn-versioned/chunks/{chunk.EQQG2IOL.js → chunk.LACWK5U2.js} +1 -1
- package/cdn-versioned/chunks/chunk.LDWID3GG.js +1 -1
- package/cdn-versioned/chunks/chunk.MEWKZ5ES.js +1 -1
- package/cdn-versioned/chunks/chunk.NLHZZEN6.js +1 -1
- package/cdn-versioned/chunks/chunk.O7HTYQZJ.js +1 -1
- package/cdn-versioned/chunks/chunk.OUQRVDFU.js +1 -1
- package/cdn-versioned/chunks/chunk.PIM4IVY7.js +1 -1
- package/cdn-versioned/chunks/chunk.SHP5JHWU.js +1 -1
- package/cdn-versioned/chunks/chunk.SSCDGZIU.js +4 -4
- package/cdn-versioned/chunks/chunk.T7TDYFIZ.js +1 -1
- package/cdn-versioned/chunks/chunk.UGEF2FQR.js +1 -1
- package/cdn-versioned/chunks/chunk.UK5N2DTE.js +1 -1
- package/cdn-versioned/chunks/chunk.UYJTT34Z.js +1 -1
- package/cdn-versioned/chunks/chunk.V35C2AM2.js +1 -1
- package/cdn-versioned/chunks/chunk.VHYOMSJH.js +1 -1
- package/cdn-versioned/chunks/chunk.VX2WA6JC.js +1 -1
- package/cdn-versioned/chunks/chunk.W2TNOVM3.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WAVXNSMT.js +1 -1
- package/cdn-versioned/chunks/chunk.XT7KIHF3.js +1 -1
- package/cdn-versioned/chunks/chunk.XVP3JFUF.js +1 -1
- package/cdn-versioned/chunks/chunk.Y4C5Q22M.js +1 -1
- package/cdn-versioned/chunks/chunk.YJVLZLXE.js +1 -1
- package/cdn-versioned/chunks/chunk.YPIA2ACB.js +1 -1
- package/cdn-versioned/chunks/chunk.YQ27KD5M.js +1 -1
- package/cdn-versioned/chunks/chunk.ZQC5PYLE.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.js +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/select/select.js +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.js +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +248 -244
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +13 -13
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +13 -13
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +104 -96
- package/cdn-versioned/web-types.json +180 -164
- package/dist/chunks/{chunk.DUQJ25W4.js → chunk.XTNJGYI7.js} +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/tag/tag.js +1 -1
- package/dist/custom-elements.json +11 -7
- package/dist/solid-components.js +1 -1
- package/dist/vscode.html-custom-data.json +13 -5
- package/dist/web-types.json +27 -11
- package/dist-versioned/chunks/chunk.3ABKOHAW.js +12 -12
- package/dist-versioned/chunks/chunk.3ARIWNKQ.js +2 -2
- package/dist-versioned/chunks/chunk.3T7MEK7F.js +3 -3
- package/dist-versioned/chunks/chunk.43MFVINX.js +2 -2
- package/dist-versioned/chunks/chunk.4W52UQUR.js +5 -5
- package/dist-versioned/chunks/chunk.57HIVEJA.js +12 -12
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.7HM3D5ZB.js +8 -8
- package/dist-versioned/chunks/chunk.7LZ5ZQ7G.js +11 -11
- package/dist-versioned/chunks/chunk.AII7ENVH.js +5 -5
- package/dist-versioned/chunks/chunk.AOZYVZSI.js +3 -3
- package/dist-versioned/chunks/chunk.BDKNOJYX.js +3 -3
- package/dist-versioned/chunks/chunk.BN2JSIUV.js +1 -1
- package/dist-versioned/chunks/chunk.BYBDNBDE.js +24 -24
- package/dist-versioned/chunks/chunk.CEVD4PPV.js +2 -2
- package/dist-versioned/chunks/chunk.CQUTC7N3.js +3 -3
- package/dist-versioned/chunks/chunk.E5QDRLG5.js +2 -2
- package/dist-versioned/chunks/chunk.ECTNQOHT.js +1 -1
- package/dist-versioned/chunks/chunk.EMEGC6Q7.js +26 -26
- package/dist-versioned/chunks/chunk.ENHM6QPI.js +2 -2
- package/dist-versioned/chunks/chunk.ETFAVTWL.js +1 -1
- package/dist-versioned/chunks/chunk.G5HAUM5L.js +1 -1
- package/dist-versioned/chunks/chunk.G6CZTG7Q.js +1 -1
- package/dist-versioned/chunks/chunk.G6IBNC3A.js +3 -3
- package/dist-versioned/chunks/chunk.GJM2UBD5.js +1 -1
- package/dist-versioned/chunks/chunk.GXUXYUOG.js +5 -5
- package/dist-versioned/chunks/chunk.GZ3JKXQ2.js +2 -2
- package/dist-versioned/chunks/chunk.H2H7UKLB.js +1 -1
- package/dist-versioned/chunks/chunk.H6E4C5UY.js +2 -2
- package/dist-versioned/chunks/chunk.HKATDXCW.js +1 -1
- package/dist-versioned/chunks/chunk.IORKEN4C.js +3 -3
- package/dist-versioned/chunks/chunk.JF4YKLM4.js +1 -1
- package/dist-versioned/chunks/chunk.JGFET2UA.js +4 -4
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KLFBH24N.js +4 -4
- package/dist-versioned/chunks/chunk.KP2X7UDC.js +3 -3
- package/dist-versioned/chunks/chunk.KUG4JFNY.js +4 -4
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.MSMR7NPP.js +2 -2
- package/dist-versioned/chunks/chunk.OIC3RK54.js +2 -2
- package/dist-versioned/chunks/chunk.OZ6OXBJC.js +1 -1
- package/dist-versioned/chunks/chunk.PJ5SMSQP.js +2 -2
- package/dist-versioned/chunks/chunk.QBUQZLK4.js +1 -1
- package/dist-versioned/chunks/chunk.QGTSHDWW.js +1 -1
- package/dist-versioned/chunks/chunk.QQUOW5WM.js +6 -6
- package/dist-versioned/chunks/chunk.RBS2XRPG.js +5 -5
- package/dist-versioned/chunks/chunk.SLM2NJ64.js +2 -2
- package/dist-versioned/chunks/chunk.SORC72SZ.js +2 -2
- package/dist-versioned/chunks/chunk.TGYBKEY2.js +5 -5
- package/dist-versioned/chunks/chunk.TYT467JR.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.ULN3BADF.js +2 -2
- package/dist-versioned/chunks/chunk.UPQH3D5U.js +6 -6
- package/dist-versioned/chunks/chunk.VRFFOJAC.js +1 -1
- package/dist-versioned/chunks/chunk.VVBDKQHI.js +14 -14
- package/dist-versioned/chunks/chunk.W257EQK6.js +3 -3
- package/dist-versioned/chunks/chunk.X3POGM3M.js +2 -2
- package/dist-versioned/chunks/{chunk.DUQJ25W4.js → chunk.XTNJGYI7.js} +2 -2
- package/dist-versioned/chunks/chunk.Z67EE23U.js +2 -2
- package/dist-versioned/chunks/chunk.ZQ5Z7U7A.js +1 -1
- package/dist-versioned/chunks/chunk.ZS7PGX4E.js +1 -1
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.js +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/select/select.js +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/tag/tag.js +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +248 -244
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +104 -96
- package/dist-versioned/web-types.json +180 -164
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk.YTG5BN3U.js";import{a as o,b as l}from"./chunk.H2TKMIFR.js";import{a as n}from"./chunk.26V4EXHB.js";import{a as u}from"./chunk.DEXOQON7.js";import{a as h,b as i,d as p,h as a}from"./chunk.4WS6ISBF.js";import{b as m}from"./chunk.UWPDCU52.js";import{e as r}from"./chunk.TJOCV4DC.js";var e=class extends a{constructor(){super(...arguments);this.localize=new u(this);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemove(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}async hide(){this.emit("sd-hide"),this.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("sd-duration-fast",150))),this.hidden=!0,this.emit("sd-after-hide")}render(){let t=this.isLink(),d=t?o`a`:this.removable?o`div`:o`button`;return l`<${d} part="base" type="${s(t?void 0:"button")}" href="${s(t?this.href:void 0)}" rel="${s(t&&this.target?"noreferrer noopener":void 0)}" target="${s(t?this.target:void 0)}" download="${s(t?this.download:void 0)}" ?disabled="${s(t?void 0:this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${s(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||this.removable?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${n("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":n("border-primary text-primary disabled:border-neutral-500 disabled:text-neutral-500",this.removable?"has-[button:hover]:border-primary-500 has-[button:hover]:bg-neutral-100 has-[button:hover]:text-primary-500":"hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500"),this.disabled&&!t&&"cursor-not-allowed")}"><slot id="content" part="content"></slot>${this.removable?l`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-icon></slot></button>`:""}</${d}>`}};e.styles=[...a.styles,m`:host{display:inline-block;transition-duration:.15s;transition-duration:var(--sd-duration-fast,.15s);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([size=lg])::part(removable-indicator){font-size:var(--sd-font-size-base,1rem)}:host([size=sm])::part(removable-indicator){font-size:.75rem}`],r([p("a, button, div")],e.prototype,"tag",2),r([i({type:String,reflect:!0})],e.prototype,"size",2),r([i({type:Boolean,reflect:!0})],e.prototype,"selected",2),r([i({type:Boolean,reflect:!0})],e.prototype,"toggleable",2),r([i({type:Boolean,reflect:!0})],e.prototype,"removable",2),r([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),r([i({type:String,reflect:!0})],e.prototype,"href",2),r([i({type:String,reflect:!0})],e.prototype,"target",2),r([i({reflect:!0})],e.prototype,"download",2),e=r([h("sd-tag")],e);export{e as a};
|
|
1
|
+
import{a as s}from"./chunk.YTG5BN3U.js";import{a as o,b as l}from"./chunk.H2TKMIFR.js";import{a as n}from"./chunk.26V4EXHB.js";import{a as u}from"./chunk.DEXOQON7.js";import{a as h,b as i,d as p,h as a}from"./chunk.4WS6ISBF.js";import{b as m}from"./chunk.UWPDCU52.js";import{e as r}from"./chunk.TJOCV4DC.js";var e=class extends a{constructor(){super(...arguments);this.localize=new u(this);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemove(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}async hide(){this.emit("sd-hide"),this.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("sd-duration-fast",150))),this.hidden=!0,this.emit("sd-after-hide")}render(){let t=this.isLink(),d=t?o`a`:this.removable?o`div`:o`button`;return l`<${d} part="base" type="${s(t?void 0:"button")}" href="${s(t?this.href:void 0)}" rel="${s(t&&this.target?"noreferrer noopener":void 0)}" target="${s(t?this.target:void 0)}" download="${s(t?this.download:void 0)}" ?disabled="${s(t?void 0:this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${s(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||this.removable?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${n("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":n("border-primary text-primary disabled:border-neutral-500 disabled:text-neutral-500",this.removable?"has-[button:hover]:border-primary-500 has-[button:hover]:bg-neutral-100 has-[button:hover]:text-primary-500":"hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500"),this.disabled&&!t&&"cursor-not-allowed")}"><slot id="content" part="content"></slot>${this.removable&&!t?l`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-icon></slot></button>`:""}</${d}>`}};e.styles=[...a.styles,m`:host{display:inline-block;transition-duration:.15s;transition-duration:var(--sd-duration-fast,.15s);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([size=lg])::part(removable-indicator){font-size:var(--sd-font-size-base,1rem)}:host([size=sm])::part(removable-indicator){font-size:.75rem}`],r([p("a, button, div")],e.prototype,"tag",2),r([i({type:String,reflect:!0})],e.prototype,"size",2),r([i({type:Boolean,reflect:!0})],e.prototype,"selected",2),r([i({type:Boolean,reflect:!0})],e.prototype,"toggleable",2),r([i({type:Boolean,reflect:!0})],e.prototype,"removable",2),r([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),r([i({type:String,reflect:!0})],e.prototype,"href",2),r([i({type:String,reflect:!0})],e.prototype,"target",2),r([i({reflect:!0})],e.prototype,"download",2),e=r([h("sd-tag")],e);export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.SSCDGZIU.js";import"../../chunks/chunk.H7LU6TQ3.js";import"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.SSCDGZIU.js";import"../../chunks/chunk.H7LU6TQ3.js";import"../../chunks/chunk.LACWK5U2.js";import"../../chunks/chunk.O7HTYQZJ.js";import"../../chunks/chunk.CDC46OKY.js";import"../../chunks/chunk.X2GM34WQ.js";import"../../chunks/chunk.W7A3TU2Z.js";import"../../chunks/chunk.3L472FD4.js";import"../../chunks/chunk.6HLS5XU2.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.YTG5BN3U.js";import"../../chunks/chunk.SKUMYG4O.js";import"../../chunks/chunk.H2TKMIFR.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.2NU6E5HZ.js";import"../../chunks/chunk.N2OPZHJV.js";import"../../chunks/chunk.CDEXCMVF.js";import"../../chunks/chunk.H2TFK3FW.js";import"../../chunks/chunk.K7HF3VBZ.js";import"../../chunks/chunk.M275INNC.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.DEXOQON7.js";import"../../chunks/chunk.QPJOKELG.js";import"../../chunks/chunk.MFUKMPVQ.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.4WS6ISBF.js";import"../../chunks/chunk.UWPDCU52.js";import"../../chunks/chunk.6OTM3PE5.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.JM4O4R5N.js";import"../../chunks/chunk.H7LU6TQ3.js";import"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.JM4O4R5N.js";import"../../chunks/chunk.H7LU6TQ3.js";import"../../chunks/chunk.LACWK5U2.js";import"../../chunks/chunk.O7HTYQZJ.js";import"../../chunks/chunk.CDC46OKY.js";import"../../chunks/chunk.3L472FD4.js";import"../../chunks/chunk.6HLS5XU2.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.YTG5BN3U.js";import"../../chunks/chunk.SKUMYG4O.js";import"../../chunks/chunk.H2TKMIFR.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.2NU6E5HZ.js";import"../../chunks/chunk.N2OPZHJV.js";import"../../chunks/chunk.CDEXCMVF.js";import"../../chunks/chunk.H2TFK3FW.js";import"../../chunks/chunk.K7HF3VBZ.js";import"../../chunks/chunk.M275INNC.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.DEXOQON7.js";import"../../chunks/chunk.QPJOKELG.js";import"../../chunks/chunk.MFUKMPVQ.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.4WS6ISBF.js";import"../../chunks/chunk.UWPDCU52.js";import"../../chunks/chunk.6OTM3PE5.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.LACWK5U2.js";import"../../chunks/chunk.YTG5BN3U.js";import"../../chunks/chunk.H2TKMIFR.js";import"../../chunks/chunk.2NU6E5HZ.js";import"../../chunks/chunk.N2OPZHJV.js";import"../../chunks/chunk.CDEXCMVF.js";import"../../chunks/chunk.H2TFK3FW.js";import"../../chunks/chunk.K7HF3VBZ.js";import"../../chunks/chunk.M275INNC.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.DEXOQON7.js";import"../../chunks/chunk.QPJOKELG.js";import"../../chunks/chunk.MFUKMPVQ.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.4WS6ISBF.js";import"../../chunks/chunk.UWPDCU52.js";import"../../chunks/chunk.6OTM3PE5.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
|
package/cdn/custom-elements.json
CHANGED
|
@@ -2438,6 +2438,7 @@
|
|
|
2438
2438
|
"text": "string"
|
|
2439
2439
|
},
|
|
2440
2440
|
"default": "''",
|
|
2441
|
+
"description": "The `title` attribute specifies extra information about an element most often as a default browser tooltip text when the mouse moves over the element.",
|
|
2441
2442
|
"attribute": "title",
|
|
2442
2443
|
"reflects": true
|
|
2443
2444
|
},
|
|
@@ -2794,6 +2795,7 @@
|
|
|
2794
2795
|
"text": "string"
|
|
2795
2796
|
},
|
|
2796
2797
|
"default": "''",
|
|
2798
|
+
"description": "The `title` attribute specifies extra information about an element most often as a default browser tooltip text when the mouse moves over the element.",
|
|
2797
2799
|
"fieldName": "title"
|
|
2798
2800
|
},
|
|
2799
2801
|
{
|
|
@@ -3986,6 +3988,7 @@
|
|
|
3986
3988
|
"text": "string"
|
|
3987
3989
|
},
|
|
3988
3990
|
"default": "''",
|
|
3991
|
+
"description": "The `title` attribute specifies extra information about an element most often as a default browser tooltip text when the mouse moves over the element.",
|
|
3989
3992
|
"attribute": "title",
|
|
3990
3993
|
"reflects": true
|
|
3991
3994
|
},
|
|
@@ -4262,6 +4265,7 @@
|
|
|
4262
4265
|
"text": "string"
|
|
4263
4266
|
},
|
|
4264
4267
|
"default": "''",
|
|
4268
|
+
"description": "The `title` attribute specifies extra information about an element most often as a default browser tooltip text when the mouse moves over the element.",
|
|
4265
4269
|
"fieldName": "title"
|
|
4266
4270
|
},
|
|
4267
4271
|
{
|
|
@@ -9014,7 +9018,7 @@
|
|
|
9014
9018
|
"text": "string"
|
|
9015
9019
|
},
|
|
9016
9020
|
"default": "''",
|
|
9017
|
-
"description": "The `title` attribute specifies extra information about an element most often as tooltip text when the mouse moves over the element.",
|
|
9021
|
+
"description": "The `title` attribute specifies extra information about an element most often as a default browser tooltip text when the mouse moves over the element.",
|
|
9018
9022
|
"attribute": "title",
|
|
9019
9023
|
"reflects": true
|
|
9020
9024
|
},
|
|
@@ -9544,7 +9548,7 @@
|
|
|
9544
9548
|
"text": "string"
|
|
9545
9549
|
},
|
|
9546
9550
|
"default": "''",
|
|
9547
|
-
"description": "The `title` attribute specifies extra information about an element most often as tooltip text when the mouse moves over the element.",
|
|
9551
|
+
"description": "The `title` attribute specifies extra information about an element most often as a default browser tooltip text when the mouse moves over the element.",
|
|
9548
9552
|
"fieldName": "title"
|
|
9549
9553
|
},
|
|
9550
9554
|
{
|
|
@@ -17169,7 +17173,7 @@
|
|
|
17169
17173
|
"text": "string"
|
|
17170
17174
|
},
|
|
17171
17175
|
"default": "''",
|
|
17172
|
-
"description": "The title
|
|
17176
|
+
"description": "The `title` attribute specifies extra information about an element most often as a default browser tooltip text when the mouse moves over the element.",
|
|
17173
17177
|
"attribute": "title",
|
|
17174
17178
|
"reflects": true
|
|
17175
17179
|
},
|
|
@@ -17413,7 +17417,7 @@
|
|
|
17413
17417
|
"text": "string"
|
|
17414
17418
|
},
|
|
17415
17419
|
"default": "''",
|
|
17416
|
-
"description": "The title
|
|
17420
|
+
"description": "The `title` attribute specifies extra information about an element most often as a default browser tooltip text when the mouse moves over the element.",
|
|
17417
17421
|
"fieldName": "title"
|
|
17418
17422
|
},
|
|
17419
17423
|
{
|
|
@@ -19212,7 +19216,7 @@
|
|
|
19212
19216
|
"text": "string"
|
|
19213
19217
|
},
|
|
19214
19218
|
"default": "''",
|
|
19215
|
-
"description": "
|
|
19219
|
+
"description": "The `title` attribute specifies extra information about an element most often as a default browser tooltip text when the mouse moves over the element.",
|
|
19216
19220
|
"attribute": "title",
|
|
19217
19221
|
"reflects": true
|
|
19218
19222
|
},
|
|
@@ -19713,7 +19717,7 @@
|
|
|
19713
19717
|
"text": "string"
|
|
19714
19718
|
},
|
|
19715
19719
|
"default": "''",
|
|
19716
|
-
"description": "
|
|
19720
|
+
"description": "The `title` attribute specifies extra information about an element most often as a default browser tooltip text when the mouse moves over the element.",
|
|
19717
19721
|
"fieldName": "title"
|
|
19718
19722
|
},
|
|
19719
19723
|
{
|
|
@@ -20584,7 +20588,7 @@
|
|
|
20584
20588
|
"package": {
|
|
20585
20589
|
"name": "@solid-design-system/components",
|
|
20586
20590
|
"description": "Solid Design System: Components",
|
|
20587
|
-
"version": "5.13.
|
|
20591
|
+
"version": "5.13.13",
|
|
20588
20592
|
"author": "Union Investment",
|
|
20589
20593
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
20590
20594
|
"license": "MIT"
|