@solid-design-system/components 4.9.0 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/{chunk.2UXSSPPW.js → chunk.KVDKWL34.js} +1 -1
- package/cdn/chunks/chunk.RZINWES7.js +3 -0
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/switch/switch.js +1 -1
- package/cdn/custom-elements.json +244 -244
- package/cdn/solid-components.bundle.js +2 -2
- package/cdn/solid-components.iife.js +2 -2
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +42 -42
- package/cdn/web-types.json +95 -95
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.2XZZWTI2.js +1 -1
- package/cdn-versioned/chunks/chunk.4D5G5PFQ.js +1 -1
- package/cdn-versioned/chunks/chunk.4GU3VMG2.js +1 -1
- package/cdn-versioned/chunks/chunk.53YBES5S.js +1 -1
- package/cdn-versioned/chunks/chunk.5HYU75RE.js +1 -1
- package/cdn-versioned/chunks/chunk.67UPRVLG.js +4 -4
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/chunk.A3AHQI37.js +1 -1
- package/cdn-versioned/chunks/chunk.ADDDVS6W.js +1 -1
- package/cdn-versioned/chunks/chunk.AHXJHNQ7.js +1 -1
- package/cdn-versioned/chunks/chunk.B62VWQ7C.js +1 -1
- package/cdn-versioned/chunks/chunk.BRAJGYMM.js +1 -1
- package/cdn-versioned/chunks/chunk.C74Q5TJX.js +3 -3
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CIKOD7QT.js +1 -1
- package/cdn-versioned/chunks/chunk.DQ3ZESZK.js +2 -2
- package/cdn-versioned/chunks/chunk.E4JOV74T.js +1 -1
- package/cdn-versioned/chunks/chunk.E4YB3LZK.js +1 -1
- package/cdn-versioned/chunks/chunk.ETB7FHWC.js +1 -1
- package/cdn-versioned/chunks/chunk.F3EVJTED.js +1 -1
- package/cdn-versioned/chunks/chunk.FZHMZAIV.js +1 -1
- package/cdn-versioned/chunks/chunk.GUCU2YK5.js +1 -1
- package/cdn-versioned/chunks/chunk.HB2MDLS4.js +1 -1
- package/cdn-versioned/chunks/chunk.HBBILILZ.js +1 -1
- package/cdn-versioned/chunks/chunk.HT7C2KQ3.js +1 -1
- package/cdn-versioned/chunks/chunk.HTEPIDNH.js +2 -2
- package/cdn-versioned/chunks/chunk.HVKAMCXX.js +1 -1
- package/cdn-versioned/chunks/chunk.JIODFCR2.js +1 -1
- package/cdn-versioned/chunks/chunk.JXFEK45U.js +1 -1
- package/cdn-versioned/chunks/{chunk.2UXSSPPW.js → chunk.KVDKWL34.js} +1 -1
- package/cdn-versioned/chunks/chunk.NPUXUQCC.js +1 -1
- package/cdn-versioned/chunks/chunk.PTSISQCW.js +1 -1
- package/cdn-versioned/chunks/chunk.QLGX6E5R.js +1 -1
- package/cdn-versioned/chunks/chunk.QM2SZYDM.js +1 -1
- package/cdn-versioned/chunks/chunk.QVTWOB7V.js +4 -4
- package/cdn-versioned/chunks/chunk.QX3REGZG.js +1 -1
- package/cdn-versioned/chunks/chunk.RATITDF2.js +1 -1
- package/cdn-versioned/chunks/chunk.RKVW7KG4.js +1 -1
- package/cdn-versioned/chunks/chunk.RZINWES7.js +3 -0
- package/cdn-versioned/chunks/chunk.SJYLPRLG.js +1 -1
- package/cdn-versioned/chunks/chunk.SKIEUJZN.js +1 -1
- package/cdn-versioned/chunks/chunk.T4JP7QUW.js +1 -1
- package/cdn-versioned/chunks/chunk.TMVIWO7D.js +1 -1
- package/cdn-versioned/chunks/chunk.TSSJABGO.js +1 -1
- package/cdn-versioned/chunks/chunk.UKXOMULO.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WKQAOKOH.js +1 -1
- package/cdn-versioned/chunks/chunk.XXPYJZI4.js +1 -1
- package/cdn-versioned/chunks/chunk.Y3WFK6NY.js +1 -1
- package/cdn-versioned/chunks/chunk.YMXJOB2H.js +1 -1
- package/cdn-versioned/chunks/chunk.YSFDXYDA.js +1 -1
- package/cdn-versioned/chunks/chunk.ZB5RQUA2.js +1 -1
- package/cdn-versioned/chunks/chunk.ZXGG5GRH.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/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/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/drawer/drawer.js +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/map-marker/map-marker.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 +2 -2
- 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 +2 -2
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +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/switch/switch.js +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/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 +450 -450
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +16 -16
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +16 -16
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +120 -120
- package/cdn-versioned/web-types.json +227 -227
- package/dist/chunks/{chunk.QAP7MKCU.js → chunk.IFJ7LPJV.js} +7 -7
- package/dist/chunks/{chunk.CYM2Q7GX.js → chunk.ZXC3A5GK.js} +3 -3
- package/dist/components/drawer/drawer.js +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/custom-elements.json +244 -244
- package/dist/solid-components.js +2 -2
- package/dist/vscode.html-custom-data.json +42 -42
- package/dist/web-types.json +95 -95
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/chunk.27LAMXW5.js +5 -5
- package/dist-versioned/chunks/chunk.4LV4VHB5.js +9 -9
- package/dist-versioned/chunks/chunk.4TLTIOIY.js +2 -2
- package/dist-versioned/chunks/chunk.4UEQEUQ5.js +1 -1
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6V7KPUGO.js +2 -2
- package/dist-versioned/chunks/chunk.7VCFYOV5.js +1 -1
- package/dist-versioned/chunks/chunk.B7BIS5Y4.js +1 -1
- package/dist-versioned/chunks/chunk.BABTMD4T.js +4 -4
- package/dist-versioned/chunks/chunk.BJSTXBIQ.js +2 -2
- package/dist-versioned/chunks/chunk.BWIRKW7E.js +26 -26
- package/dist-versioned/chunks/chunk.C2LS4326.js +2 -2
- package/dist-versioned/chunks/chunk.C4WMHAOW.js +1 -1
- package/dist-versioned/chunks/chunk.CMK6UTW6.js +2 -2
- package/dist-versioned/chunks/chunk.CWJB3CZO.js +1 -1
- package/dist-versioned/chunks/chunk.DYRAOE5L.js +2 -2
- package/dist-versioned/chunks/chunk.E73VDVFB.js +5 -5
- package/dist-versioned/chunks/chunk.ECH5BTRG.js +6 -6
- package/dist-versioned/chunks/chunk.EQRUJQQW.js +2 -2
- package/dist-versioned/chunks/chunk.ERRAXV4M.js +1 -1
- package/dist-versioned/chunks/chunk.EYTEM45R.js +3 -3
- package/dist-versioned/chunks/chunk.F4UAU4OM.js +5 -5
- package/dist-versioned/chunks/chunk.GAJFV5V3.js +2 -2
- package/dist-versioned/chunks/chunk.H36YEYQD.js +3 -3
- package/dist-versioned/chunks/chunk.HEYBJG64.js +4 -4
- package/dist-versioned/chunks/{chunk.QAP7MKCU.js → chunk.IFJ7LPJV.js} +9 -9
- package/dist-versioned/chunks/chunk.JNJHWACL.js +3 -3
- package/dist-versioned/chunks/chunk.JNTED6KG.js +5 -5
- package/dist-versioned/chunks/chunk.JQD4QY3H.js +5 -5
- package/dist-versioned/chunks/chunk.KNZPI3QD.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.KWP3CREC.js +8 -8
- package/dist-versioned/chunks/chunk.LOW4LWP6.js +2 -2
- package/dist-versioned/chunks/chunk.LQKJMBVH.js +2 -2
- package/dist-versioned/chunks/chunk.LW7RVQTS.js +2 -2
- package/dist-versioned/chunks/chunk.MSSKOOJJ.js +11 -11
- package/dist-versioned/chunks/chunk.NI45NXZV.js +3 -3
- package/dist-versioned/chunks/chunk.O7OXBLZU.js +2 -2
- package/dist-versioned/chunks/chunk.OWACJFST.js +1 -1
- package/dist-versioned/chunks/chunk.QCQLFJGJ.js +13 -13
- package/dist-versioned/chunks/chunk.QEQDPEN2.js +1 -1
- package/dist-versioned/chunks/chunk.QTZYBV5A.js +24 -24
- package/dist-versioned/chunks/chunk.R3PPZNKA.js +2 -2
- package/dist-versioned/chunks/chunk.RWUFX5GL.js +1 -1
- package/dist-versioned/chunks/chunk.T5QL4V5F.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.ULQU6P3E.js +6 -6
- package/dist-versioned/chunks/chunk.VOWE6LHF.js +14 -14
- package/dist-versioned/chunks/chunk.VUKS4CBF.js +1 -1
- package/dist-versioned/chunks/chunk.X7IRGFBS.js +1 -1
- package/dist-versioned/chunks/chunk.YGRJQZFR.js +1 -1
- package/dist-versioned/chunks/chunk.ZMWGNTP6.js +5 -5
- package/dist-versioned/chunks/{chunk.CYM2Q7GX.js → chunk.ZXC3A5GK.js} +4 -4
- 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/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/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/drawer/drawer.js +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/map-marker/map-marker.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 +2 -2
- 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 +2 -2
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +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/switch/switch.js +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/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 +450 -450
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +120 -120
- package/dist-versioned/web-types.json +227 -227
- package/package.json +2 -2
- package/cdn/chunks/chunk.QJ2PJAKH.js +0 -3
- package/cdn-versioned/chunks/chunk.QJ2PJAKH.js +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as L,b as z}from"./chunk.I6OYJBJI.js";import{a as m,b as f}from"./chunk.3L472FD4.js";import{a as o,c as l}from"./chunk.SKUMYG4O.js";import{a as g}from"./chunk.KLRPP4NQ.js";import{a as E}from"./chunk.6HO6CE4A.js";import{a as A}from"./chunk.DEXOQON7.js";import{a as p}from"./chunk.26V4EXHB.js";import{a as b}from"./chunk.E2DRD2OX.js";import{a as C,b as r,d as c,h as w}from"./chunk.T4JP7QUW.js";import{b as x,e as u}from"./chunk.UWPDCU52.js";import{b as n,e as h}from"./chunk.XBPJDDEM.js";import{e as i}from"./chunk.TJOCV4DC.js";function k(y){return y.charAt(0).toUpperCase()+y.slice(1)}var t=class extends w{constructor(){super(...arguments);this.hasSlotController=new E(this,"footer");this.localize=new A(this);this.modal=new z(this);this.open=!1;this.label="";this.placement="end";this.contained=!1;this.noHeader=!1;this.handleDocumentKeyDown=e=>{this.open&&e.key==="Escape"&&(e.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),m(this)))}disconnectedCallback(){super.disconnectedCallback(),f(this)}requestClose(e){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){let a=l(this,"drawer.denyClose",{dir:this.localize.dir()});n(this.panel,a.keyframes,a.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){var v;let e=(v=this.closeButton.shadowRoot)==null?void 0:v.querySelector('[part="base"]');if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=L(),this.contained||(this.modal.activate(),m(this));let a=this.querySelector("[autofocus]");a&&a.removeAttribute("autofocus"),await Promise.all([h(this.drawer),h(this.overlay)]),this.drawer.hidden=!1,this.drawer.removeAttribute("inert"),requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(a?a.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),a?a.setAttribute("autofocus",""):this.closeButton.focus()});let d=l(this,`drawer.show${k(this.placement)}`,{dir:this.localize.dir()}),s=l(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([n(this.panel,d.keyframes,d.options),n(this.overlay,s.keyframes,s.options)]),e==null||e.setAttribute("aria-controls","drawer"),e==null||e.setAttribute("aria-expanded","true"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),f(this)),await Promise.all([h(this.drawer),h(this.overlay)]);let a=l(this,`drawer.hide${k(this.placement)}`,{dir:this.localize.dir()}),d=l(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([n(this.overlay,d.keyframes,d.options).then(()=>{this.overlay.hidden=!0}),n(this.panel,a.keyframes,a.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.drawer.setAttribute("inert",""),this.overlay.hidden=!1,this.panel.hidden=!1;let s=this.originalTrigger;typeof(s==null?void 0:s.focus)=="function"&&setTimeout(()=>s.focus()),e==null||e.setAttribute("aria-expanded","false"),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),m(this)),this.open&&this.contained&&(this.modal.deactivate(),f(this))}async show(){if(!this.open)return this.open=!0,g(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,g(this,"sd-after-hide")}render(){return u`<section id="drawer" part="base" class="${p("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}" aria-label="${this.label}"><div part="overlay" class="${p("block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}"></div><div part="panel" class="${p("absolute flex flex-col gap-4 z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[--width] h-full",start:"top-0 end-auto bottom-auto start-0 w-[--width] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${this.noHeader?u`<sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}" class="absolute top-2 right-2"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button>`:u`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button></div></header>`}<div part="body" class="flex-auto block px-4 focus-visible:focus-outline !-outline-offset-2" tabindex="0"><slot></slot></div><footer part="footer" class="${p(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></section>`}};t.styles=[...w.styles,x`:host{--width:25rem;display:contents}:host([contained]){z-index:auto}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}`],i([c("[part=base]")],t.prototype,"drawer",2),i([c("[part=panel]")],t.prototype,"panel",2),i([c("[part=overlay]")],t.prototype,"overlay",2),i([c("[part=close-button]")],t.prototype,"closeButton",2),i([r({type:Boolean,reflect:!0})],t.prototype,"open",2),i([r({type:String,attribute:"label",reflect:!0})],t.prototype,"label",2),i([r({type:String,reflect:!0})],t.prototype,"placement",2),i([r({type:Boolean,reflect:!0})],t.prototype,"contained",2),i([r({attribute:"no-header",type:Boolean,reflect:!0})],t.prototype,"noHeader",2),i([b("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),i([b("contained",{waitUntilFirstUpdate:!0})],t.prototype,"handleNoModalChange",1),t=i([C("sd-drawer")],t);o("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:
|
|
1
|
+
import{a as L,b as z}from"./chunk.I6OYJBJI.js";import{a as m,b as f}from"./chunk.3L472FD4.js";import{a as o,c as l}from"./chunk.SKUMYG4O.js";import{a as g}from"./chunk.KLRPP4NQ.js";import{a as E}from"./chunk.6HO6CE4A.js";import{a as A}from"./chunk.DEXOQON7.js";import{a as p}from"./chunk.26V4EXHB.js";import{a as b}from"./chunk.E2DRD2OX.js";import{a as C,b as r,d as c,h as w}from"./chunk.T4JP7QUW.js";import{b as x,e as u}from"./chunk.UWPDCU52.js";import{b as n,e as h}from"./chunk.XBPJDDEM.js";import{e as i}from"./chunk.TJOCV4DC.js";function k(y){return y.charAt(0).toUpperCase()+y.slice(1)}var t=class extends w{constructor(){super(...arguments);this.hasSlotController=new E(this,"footer");this.localize=new A(this);this.modal=new z(this);this.open=!1;this.label="";this.placement="end";this.contained=!1;this.noHeader=!1;this.handleDocumentKeyDown=e=>{this.open&&e.key==="Escape"&&(e.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),m(this)))}disconnectedCallback(){super.disconnectedCallback(),f(this)}requestClose(e){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){let a=l(this,"drawer.denyClose",{dir:this.localize.dir()});n(this.panel,a.keyframes,a.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){var v;let e=(v=this.closeButton.shadowRoot)==null?void 0:v.querySelector('[part="base"]');if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=L(),this.contained||(this.modal.activate(),m(this));let a=this.querySelector("[autofocus]");a&&a.removeAttribute("autofocus"),await Promise.all([h(this.drawer),h(this.overlay)]),this.drawer.hidden=!1,this.drawer.removeAttribute("inert"),requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(a?a.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),a?a.setAttribute("autofocus",""):this.closeButton.focus()});let d=l(this,`drawer.show${k(this.placement)}`,{dir:this.localize.dir()}),s=l(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([n(this.panel,d.keyframes,d.options),n(this.overlay,s.keyframes,s.options)]),e==null||e.setAttribute("aria-controls","drawer"),e==null||e.setAttribute("aria-expanded","true"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),f(this)),await Promise.all([h(this.drawer),h(this.overlay)]);let a=l(this,`drawer.hide${k(this.placement)}`,{dir:this.localize.dir()}),d=l(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([n(this.overlay,d.keyframes,d.options).then(()=>{this.overlay.hidden=!0}),n(this.panel,a.keyframes,a.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.drawer.setAttribute("inert",""),this.overlay.hidden=!1,this.panel.hidden=!1;let s=this.originalTrigger;typeof(s==null?void 0:s.focus)=="function"&&setTimeout(()=>s.focus()),e==null||e.setAttribute("aria-expanded","false"),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),m(this)),this.open&&this.contained&&(this.modal.deactivate(),f(this))}async show(){if(!this.open)return this.open=!0,g(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,g(this,"sd-after-hide")}render(){return u`<section id="drawer" part="base" class="${p("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}" aria-label="${this.label}"><div part="overlay" class="${p("block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}"></div><div part="panel" class="${p("absolute flex flex-col gap-4 z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[--width] h-full",start:"top-0 end-auto bottom-auto start-0 w-[--width] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${this.noHeader?u`<sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}" class="absolute top-2 right-2"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button>`:u`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button></div></header>`}<div part="body" class="flex-auto block px-4 focus-visible:focus-outline !-outline-offset-2" tabindex="0"><slot></slot></div><footer part="footer" class="${p(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></section>`}};t.styles=[...w.styles,x`:host{--width:25rem;display:contents}:host([contained]){z-index:auto}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}`],i([c("[part=base]")],t.prototype,"drawer",2),i([c("[part=panel]")],t.prototype,"panel",2),i([c("[part=overlay]")],t.prototype,"overlay",2),i([c("[part=close-button]")],t.prototype,"closeButton",2),i([r({type:Boolean,reflect:!0})],t.prototype,"open",2),i([r({type:String,attribute:"label",reflect:!0})],t.prototype,"label",2),i([r({type:String,reflect:!0})],t.prototype,"placement",2),i([r({type:Boolean,reflect:!0})],t.prototype,"contained",2),i([r({attribute:"no-header",type:Boolean,reflect:!0})],t.prototype,"noHeader",2),i([b("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),i([b("contained",{waitUntilFirstUpdate:!0})],t.prototype,"handleNoModalChange",1),t=i([C("sd-drawer")],t);o("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});o("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});o("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});o("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});o("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});o("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});o("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});export{t as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{b as f}from"./chunk.5XTSQKKL.js";import{a as m}from"./chunk.CDC46OKY.js";import{b as c}from"./chunk.6HLS5XU2.js";import{a as p}from"./chunk.YTG5BN3U.js";import{a as l}from"./chunk.26V4EXHB.js";import{a}from"./chunk.E2DRD2OX.js";import{a as u,b as i,c as h,d as o,h as s}from"./chunk.T4JP7QUW.js";import{b as n,e as d}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends s{constructor(){super(...arguments);this.formControlController=new c(this,{value:r=>r.checked?r.value||"on":void 0,defaultValue:r=>r.defaultChecked,setValue:(r,b)=>r.checked=b});this.showInvalidStyle=!1;this.title="";this.name="";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(r){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(r),this.invalidMessage.textContent=r.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(r){this.input.focus(r)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(r){this.input.setCustomValidity(r),this.formControlController.updateValidity()}render(){return d`<label part="base" class="${l("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${p(this.value)}" .checked="${f(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"}" class="${l(`relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100
|
|
2
|
+
peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
|
|
3
|
+
peer-focus-visible:outline-primary transition-colors ease-in-out duration-medium hover:duration-fast`,this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?"border-error hover:border-error-400 bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"border-accent hover:bg-accent-550 bg-accent hover:border-accent-550 group-hover:bg-accent-550":"border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span id="thumb" part="thumb" class="${l("w-2.5 h-2.5 rounded-full transition[transform,colors] ease-in-out duration-medium",this.disabled&&this.checked?"bg-white translate-x-2":this.disabled?"-translate-x-2 bg-neutral-500":this.showInvalidStyle?"bg-white -translate-x-2":this.checked?"translate-x-2 bg-white":"bg-neutral-800 -translate-x-2")}"></span> </span><span part="label" id="label" class="${l("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};e.styles=[...s.styles,n`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label:after{content:" *"}`],t([o("input")],e.prototype,"input",2),t([o("#invalid-message")],e.prototype,"invalidMessage",2),t([h()],e.prototype,"showInvalidStyle",2),t([i({type:String,reflect:!0})],e.prototype,"title",2),t([i({type:String,reflect:!0})],e.prototype,"name",2),t([i()],e.prototype,"value",2),t([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([i({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([m("checked")],e.prototype,"defaultChecked",2),t([i({reflect:!0})],e.prototype,"form",2),t([i({type:Boolean,reflect:!0})],e.prototype,"required",2),t([a("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),t([a(["checked"],{waitUntilFirstUpdate:!0})],e.prototype,"handleStateChange",1),e=t([u("sd-switch")],e);export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.KVDKWL34.js";import"../../chunks/chunk.I6OYJBJI.js";import"../../chunks/chunk.64UNKF45.js";import"../../chunks/chunk.3L472FD4.js";import"../../chunks/chunk.SKUMYG4O.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.QM2SZYDM.js";import"../../chunks/chunk.TMVIWO7D.js";import"../../chunks/chunk.6HLS5XU2.js";import"../../chunks/chunk.YTG5BN3U.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.H2TKMIFR.js";import"../../chunks/chunk.2XZZWTI2.js";import"../../chunks/chunk.CDEXCMVF.js";import"../../chunks/chunk.SNS2IHBI.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.K7HF3VBZ.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.EFLL7VXU.js";import"../../chunks/chunk.DEXOQON7.js";import"../../chunks/chunk.BVJF73VY.js";import"../../chunks/chunk.E2XBRTA4.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.T4JP7QUW.js";import"../../chunks/chunk.UWPDCU52.js";import"../../chunks/chunk.XBPJDDEM.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.RZINWES7.js";import"../../chunks/chunk.5XTSQKKL.js";import"../../chunks/chunk.CDC46OKY.js";import"../../chunks/chunk.6HLS5XU2.js";import"../../chunks/chunk.YTG5BN3U.js";import"../../chunks/chunk.CDEXCMVF.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.T4JP7QUW.js";import"../../chunks/chunk.UWPDCU52.js";import"../../chunks/chunk.XBPJDDEM.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
|
package/cdn/custom-elements.json
CHANGED
|
@@ -3917,249 +3917,6 @@
|
|
|
3917
3917
|
}
|
|
3918
3918
|
]
|
|
3919
3919
|
},
|
|
3920
|
-
{
|
|
3921
|
-
"kind": "javascript-module",
|
|
3922
|
-
"path": "components/checkbox-group/checkbox-group.js",
|
|
3923
|
-
"declarations": [
|
|
3924
|
-
{
|
|
3925
|
-
"kind": "class",
|
|
3926
|
-
"description": "",
|
|
3927
|
-
"name": "SdCheckboxGroup",
|
|
3928
|
-
"slots": [
|
|
3929
|
-
{
|
|
3930
|
-
"description": "The default slot where `<sd-checkbox>` elements are placed.",
|
|
3931
|
-
"name": ""
|
|
3932
|
-
},
|
|
3933
|
-
{
|
|
3934
|
-
"description": "The checkbox group's label. Required for proper accessibility. Alternatively, you can use the `label` attribute.",
|
|
3935
|
-
"name": "label"
|
|
3936
|
-
},
|
|
3937
|
-
{
|
|
3938
|
-
"description": "An optional tooltip that helps describe the checkbox-group. Use this slot with the `sd-tooltip` component.",
|
|
3939
|
-
"name": "tooltip"
|
|
3940
|
-
},
|
|
3941
|
-
{
|
|
3942
|
-
"description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.",
|
|
3943
|
-
"name": "help-text"
|
|
3944
|
-
}
|
|
3945
|
-
],
|
|
3946
|
-
"members": [
|
|
3947
|
-
{
|
|
3948
|
-
"kind": "field",
|
|
3949
|
-
"name": "size",
|
|
3950
|
-
"type": {
|
|
3951
|
-
"text": "'lg' | 'md' | 'sm'"
|
|
3952
|
-
},
|
|
3953
|
-
"default": "'lg'",
|
|
3954
|
-
"description": "The checkbox group's size. This size will be applied to the label, all child checkboxes.",
|
|
3955
|
-
"attribute": "size",
|
|
3956
|
-
"reflects": true
|
|
3957
|
-
},
|
|
3958
|
-
{
|
|
3959
|
-
"kind": "field",
|
|
3960
|
-
"name": "orientation",
|
|
3961
|
-
"type": {
|
|
3962
|
-
"text": "'horizontal' | 'vertical'"
|
|
3963
|
-
},
|
|
3964
|
-
"default": "'vertical'",
|
|
3965
|
-
"description": "The orientation property determines the alignment of the component's content or elements. It accepts two possible\nvalues: 'horizontal' and 'vertical'. The default value is 'vertical'.\nThis property allows you to control the visual layout and arrangement of elements within the component, providing\nflexibility in how the component is displayed based on your specific design needs.",
|
|
3966
|
-
"attribute": "orientation",
|
|
3967
|
-
"reflects": true
|
|
3968
|
-
},
|
|
3969
|
-
{
|
|
3970
|
-
"kind": "field",
|
|
3971
|
-
"name": "label",
|
|
3972
|
-
"type": {
|
|
3973
|
-
"text": "string"
|
|
3974
|
-
},
|
|
3975
|
-
"default": "''",
|
|
3976
|
-
"description": "The checkbox group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
|
|
3977
|
-
"attribute": "label",
|
|
3978
|
-
"reflects": true
|
|
3979
|
-
},
|
|
3980
|
-
{
|
|
3981
|
-
"kind": "field",
|
|
3982
|
-
"name": "helpText",
|
|
3983
|
-
"type": {
|
|
3984
|
-
"text": "string"
|
|
3985
|
-
},
|
|
3986
|
-
"default": "''",
|
|
3987
|
-
"description": "The element help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
3988
|
-
"attribute": "help-text",
|
|
3989
|
-
"reflects": true
|
|
3990
|
-
},
|
|
3991
|
-
{
|
|
3992
|
-
"kind": "field",
|
|
3993
|
-
"name": "dir",
|
|
3994
|
-
"type": {
|
|
3995
|
-
"text": "'ltr' | 'rtl' | 'auto'"
|
|
3996
|
-
},
|
|
3997
|
-
"description": "The element's directionality.",
|
|
3998
|
-
"attribute": "dir",
|
|
3999
|
-
"inheritedFrom": {
|
|
4000
|
-
"name": "SolidElement",
|
|
4001
|
-
"module": "internal/solid-element.js"
|
|
4002
|
-
}
|
|
4003
|
-
},
|
|
4004
|
-
{
|
|
4005
|
-
"kind": "field",
|
|
4006
|
-
"name": "lang",
|
|
4007
|
-
"type": {
|
|
4008
|
-
"text": "string"
|
|
4009
|
-
},
|
|
4010
|
-
"description": "The element's language.",
|
|
4011
|
-
"attribute": "lang",
|
|
4012
|
-
"inheritedFrom": {
|
|
4013
|
-
"name": "SolidElement",
|
|
4014
|
-
"module": "internal/solid-element.js"
|
|
4015
|
-
}
|
|
4016
|
-
},
|
|
4017
|
-
{
|
|
4018
|
-
"kind": "method",
|
|
4019
|
-
"name": "emit",
|
|
4020
|
-
"parameters": [
|
|
4021
|
-
{
|
|
4022
|
-
"name": "name",
|
|
4023
|
-
"type": {
|
|
4024
|
-
"text": "string"
|
|
4025
|
-
}
|
|
4026
|
-
},
|
|
4027
|
-
{
|
|
4028
|
-
"name": "options",
|
|
4029
|
-
"optional": true,
|
|
4030
|
-
"type": {
|
|
4031
|
-
"text": "CustomEventInit"
|
|
4032
|
-
}
|
|
4033
|
-
}
|
|
4034
|
-
],
|
|
4035
|
-
"description": "Emits a custom event with more convenient defaults.",
|
|
4036
|
-
"inheritedFrom": {
|
|
4037
|
-
"name": "SolidElement",
|
|
4038
|
-
"module": "internal/solid-element.js"
|
|
4039
|
-
}
|
|
4040
|
-
},
|
|
4041
|
-
{
|
|
4042
|
-
"kind": "method",
|
|
4043
|
-
"name": "token",
|
|
4044
|
-
"return": {
|
|
4045
|
-
"type": {
|
|
4046
|
-
"text": "T"
|
|
4047
|
-
}
|
|
4048
|
-
},
|
|
4049
|
-
"parameters": [
|
|
4050
|
-
{
|
|
4051
|
-
"name": "name",
|
|
4052
|
-
"type": {
|
|
4053
|
-
"text": "string"
|
|
4054
|
-
}
|
|
4055
|
-
},
|
|
4056
|
-
{
|
|
4057
|
-
"name": "fallback",
|
|
4058
|
-
"type": {
|
|
4059
|
-
"text": "T"
|
|
4060
|
-
}
|
|
4061
|
-
}
|
|
4062
|
-
],
|
|
4063
|
-
"description": "Retrieves the value of a css variable token.",
|
|
4064
|
-
"inheritedFrom": {
|
|
4065
|
-
"name": "SolidElement",
|
|
4066
|
-
"module": "internal/solid-element.js"
|
|
4067
|
-
}
|
|
4068
|
-
}
|
|
4069
|
-
],
|
|
4070
|
-
"attributes": [
|
|
4071
|
-
{
|
|
4072
|
-
"name": "size",
|
|
4073
|
-
"type": {
|
|
4074
|
-
"text": "'lg' | 'md' | 'sm'"
|
|
4075
|
-
},
|
|
4076
|
-
"default": "'lg'",
|
|
4077
|
-
"description": "The checkbox group's size. This size will be applied to the label, all child checkboxes.",
|
|
4078
|
-
"fieldName": "size"
|
|
4079
|
-
},
|
|
4080
|
-
{
|
|
4081
|
-
"name": "orientation",
|
|
4082
|
-
"type": {
|
|
4083
|
-
"text": "'horizontal' | 'vertical'"
|
|
4084
|
-
},
|
|
4085
|
-
"default": "'vertical'",
|
|
4086
|
-
"description": "The orientation property determines the alignment of the component's content or elements. It accepts two possible\nvalues: 'horizontal' and 'vertical'. The default value is 'vertical'.\nThis property allows you to control the visual layout and arrangement of elements within the component, providing\nflexibility in how the component is displayed based on your specific design needs.",
|
|
4087
|
-
"fieldName": "orientation"
|
|
4088
|
-
},
|
|
4089
|
-
{
|
|
4090
|
-
"name": "label",
|
|
4091
|
-
"type": {
|
|
4092
|
-
"text": "string"
|
|
4093
|
-
},
|
|
4094
|
-
"default": "''",
|
|
4095
|
-
"description": "The checkbox group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
|
|
4096
|
-
"fieldName": "label"
|
|
4097
|
-
},
|
|
4098
|
-
{
|
|
4099
|
-
"name": "help-text",
|
|
4100
|
-
"type": {
|
|
4101
|
-
"text": "string"
|
|
4102
|
-
},
|
|
4103
|
-
"default": "''",
|
|
4104
|
-
"description": "The element help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
4105
|
-
"fieldName": "helpText"
|
|
4106
|
-
},
|
|
4107
|
-
{
|
|
4108
|
-
"name": "dir",
|
|
4109
|
-
"type": {
|
|
4110
|
-
"text": "'ltr' | 'rtl' | 'auto'"
|
|
4111
|
-
},
|
|
4112
|
-
"description": "The element's directionality.",
|
|
4113
|
-
"fieldName": "dir",
|
|
4114
|
-
"inheritedFrom": {
|
|
4115
|
-
"name": "SolidElement",
|
|
4116
|
-
"module": "src/internal/solid-element.ts"
|
|
4117
|
-
}
|
|
4118
|
-
},
|
|
4119
|
-
{
|
|
4120
|
-
"name": "lang",
|
|
4121
|
-
"type": {
|
|
4122
|
-
"text": "string"
|
|
4123
|
-
},
|
|
4124
|
-
"description": "The element's language.",
|
|
4125
|
-
"fieldName": "lang",
|
|
4126
|
-
"inheritedFrom": {
|
|
4127
|
-
"name": "SolidElement",
|
|
4128
|
-
"module": "src/internal/solid-element.ts"
|
|
4129
|
-
}
|
|
4130
|
-
}
|
|
4131
|
-
],
|
|
4132
|
-
"superclass": {
|
|
4133
|
-
"name": "SolidElement",
|
|
4134
|
-
"module": "/src/internal/solid-element"
|
|
4135
|
-
},
|
|
4136
|
-
"summary": "Checkbox groups are used to group multiple [checkbox](/components/checkbox). It provides only presentational functionality.",
|
|
4137
|
-
"documentation": "https://solid.union-investment.com/[storybook-link]/checkbox-group",
|
|
4138
|
-
"status": "stable",
|
|
4139
|
-
"since": "1.22.0",
|
|
4140
|
-
"tagName": "sd-checkbox-group",
|
|
4141
|
-
"customElement": true
|
|
4142
|
-
}
|
|
4143
|
-
],
|
|
4144
|
-
"exports": [
|
|
4145
|
-
{
|
|
4146
|
-
"kind": "js",
|
|
4147
|
-
"name": "default",
|
|
4148
|
-
"declaration": {
|
|
4149
|
-
"name": "SdCheckboxGroup",
|
|
4150
|
-
"module": "components/checkbox-group/checkbox-group.js"
|
|
4151
|
-
}
|
|
4152
|
-
},
|
|
4153
|
-
{
|
|
4154
|
-
"kind": "custom-element-definition",
|
|
4155
|
-
"name": "sd-checkbox-group",
|
|
4156
|
-
"declaration": {
|
|
4157
|
-
"name": "SdCheckboxGroup",
|
|
4158
|
-
"module": "components/checkbox-group/checkbox-group.js"
|
|
4159
|
-
}
|
|
4160
|
-
}
|
|
4161
|
-
]
|
|
4162
|
-
},
|
|
4163
3920
|
{
|
|
4164
3921
|
"kind": "javascript-module",
|
|
4165
3922
|
"path": "components/combobox/combobox.js",
|
|
@@ -16294,6 +16051,249 @@
|
|
|
16294
16051
|
}
|
|
16295
16052
|
]
|
|
16296
16053
|
},
|
|
16054
|
+
{
|
|
16055
|
+
"kind": "javascript-module",
|
|
16056
|
+
"path": "components/checkbox-group/checkbox-group.js",
|
|
16057
|
+
"declarations": [
|
|
16058
|
+
{
|
|
16059
|
+
"kind": "class",
|
|
16060
|
+
"description": "",
|
|
16061
|
+
"name": "SdCheckboxGroup",
|
|
16062
|
+
"slots": [
|
|
16063
|
+
{
|
|
16064
|
+
"description": "The default slot where `<sd-checkbox>` elements are placed.",
|
|
16065
|
+
"name": ""
|
|
16066
|
+
},
|
|
16067
|
+
{
|
|
16068
|
+
"description": "The checkbox group's label. Required for proper accessibility. Alternatively, you can use the `label` attribute.",
|
|
16069
|
+
"name": "label"
|
|
16070
|
+
},
|
|
16071
|
+
{
|
|
16072
|
+
"description": "An optional tooltip that helps describe the checkbox-group. Use this slot with the `sd-tooltip` component.",
|
|
16073
|
+
"name": "tooltip"
|
|
16074
|
+
},
|
|
16075
|
+
{
|
|
16076
|
+
"description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.",
|
|
16077
|
+
"name": "help-text"
|
|
16078
|
+
}
|
|
16079
|
+
],
|
|
16080
|
+
"members": [
|
|
16081
|
+
{
|
|
16082
|
+
"kind": "field",
|
|
16083
|
+
"name": "size",
|
|
16084
|
+
"type": {
|
|
16085
|
+
"text": "'lg' | 'md' | 'sm'"
|
|
16086
|
+
},
|
|
16087
|
+
"default": "'lg'",
|
|
16088
|
+
"description": "The checkbox group's size. This size will be applied to the label, all child checkboxes.",
|
|
16089
|
+
"attribute": "size",
|
|
16090
|
+
"reflects": true
|
|
16091
|
+
},
|
|
16092
|
+
{
|
|
16093
|
+
"kind": "field",
|
|
16094
|
+
"name": "orientation",
|
|
16095
|
+
"type": {
|
|
16096
|
+
"text": "'horizontal' | 'vertical'"
|
|
16097
|
+
},
|
|
16098
|
+
"default": "'vertical'",
|
|
16099
|
+
"description": "The orientation property determines the alignment of the component's content or elements. It accepts two possible\nvalues: 'horizontal' and 'vertical'. The default value is 'vertical'.\nThis property allows you to control the visual layout and arrangement of elements within the component, providing\nflexibility in how the component is displayed based on your specific design needs.",
|
|
16100
|
+
"attribute": "orientation",
|
|
16101
|
+
"reflects": true
|
|
16102
|
+
},
|
|
16103
|
+
{
|
|
16104
|
+
"kind": "field",
|
|
16105
|
+
"name": "label",
|
|
16106
|
+
"type": {
|
|
16107
|
+
"text": "string"
|
|
16108
|
+
},
|
|
16109
|
+
"default": "''",
|
|
16110
|
+
"description": "The checkbox group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
|
|
16111
|
+
"attribute": "label",
|
|
16112
|
+
"reflects": true
|
|
16113
|
+
},
|
|
16114
|
+
{
|
|
16115
|
+
"kind": "field",
|
|
16116
|
+
"name": "helpText",
|
|
16117
|
+
"type": {
|
|
16118
|
+
"text": "string"
|
|
16119
|
+
},
|
|
16120
|
+
"default": "''",
|
|
16121
|
+
"description": "The element help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
16122
|
+
"attribute": "help-text",
|
|
16123
|
+
"reflects": true
|
|
16124
|
+
},
|
|
16125
|
+
{
|
|
16126
|
+
"kind": "field",
|
|
16127
|
+
"name": "dir",
|
|
16128
|
+
"type": {
|
|
16129
|
+
"text": "'ltr' | 'rtl' | 'auto'"
|
|
16130
|
+
},
|
|
16131
|
+
"description": "The element's directionality.",
|
|
16132
|
+
"attribute": "dir",
|
|
16133
|
+
"inheritedFrom": {
|
|
16134
|
+
"name": "SolidElement",
|
|
16135
|
+
"module": "internal/solid-element.js"
|
|
16136
|
+
}
|
|
16137
|
+
},
|
|
16138
|
+
{
|
|
16139
|
+
"kind": "field",
|
|
16140
|
+
"name": "lang",
|
|
16141
|
+
"type": {
|
|
16142
|
+
"text": "string"
|
|
16143
|
+
},
|
|
16144
|
+
"description": "The element's language.",
|
|
16145
|
+
"attribute": "lang",
|
|
16146
|
+
"inheritedFrom": {
|
|
16147
|
+
"name": "SolidElement",
|
|
16148
|
+
"module": "internal/solid-element.js"
|
|
16149
|
+
}
|
|
16150
|
+
},
|
|
16151
|
+
{
|
|
16152
|
+
"kind": "method",
|
|
16153
|
+
"name": "emit",
|
|
16154
|
+
"parameters": [
|
|
16155
|
+
{
|
|
16156
|
+
"name": "name",
|
|
16157
|
+
"type": {
|
|
16158
|
+
"text": "string"
|
|
16159
|
+
}
|
|
16160
|
+
},
|
|
16161
|
+
{
|
|
16162
|
+
"name": "options",
|
|
16163
|
+
"optional": true,
|
|
16164
|
+
"type": {
|
|
16165
|
+
"text": "CustomEventInit"
|
|
16166
|
+
}
|
|
16167
|
+
}
|
|
16168
|
+
],
|
|
16169
|
+
"description": "Emits a custom event with more convenient defaults.",
|
|
16170
|
+
"inheritedFrom": {
|
|
16171
|
+
"name": "SolidElement",
|
|
16172
|
+
"module": "internal/solid-element.js"
|
|
16173
|
+
}
|
|
16174
|
+
},
|
|
16175
|
+
{
|
|
16176
|
+
"kind": "method",
|
|
16177
|
+
"name": "token",
|
|
16178
|
+
"return": {
|
|
16179
|
+
"type": {
|
|
16180
|
+
"text": "T"
|
|
16181
|
+
}
|
|
16182
|
+
},
|
|
16183
|
+
"parameters": [
|
|
16184
|
+
{
|
|
16185
|
+
"name": "name",
|
|
16186
|
+
"type": {
|
|
16187
|
+
"text": "string"
|
|
16188
|
+
}
|
|
16189
|
+
},
|
|
16190
|
+
{
|
|
16191
|
+
"name": "fallback",
|
|
16192
|
+
"type": {
|
|
16193
|
+
"text": "T"
|
|
16194
|
+
}
|
|
16195
|
+
}
|
|
16196
|
+
],
|
|
16197
|
+
"description": "Retrieves the value of a css variable token.",
|
|
16198
|
+
"inheritedFrom": {
|
|
16199
|
+
"name": "SolidElement",
|
|
16200
|
+
"module": "internal/solid-element.js"
|
|
16201
|
+
}
|
|
16202
|
+
}
|
|
16203
|
+
],
|
|
16204
|
+
"attributes": [
|
|
16205
|
+
{
|
|
16206
|
+
"name": "size",
|
|
16207
|
+
"type": {
|
|
16208
|
+
"text": "'lg' | 'md' | 'sm'"
|
|
16209
|
+
},
|
|
16210
|
+
"default": "'lg'",
|
|
16211
|
+
"description": "The checkbox group's size. This size will be applied to the label, all child checkboxes.",
|
|
16212
|
+
"fieldName": "size"
|
|
16213
|
+
},
|
|
16214
|
+
{
|
|
16215
|
+
"name": "orientation",
|
|
16216
|
+
"type": {
|
|
16217
|
+
"text": "'horizontal' | 'vertical'"
|
|
16218
|
+
},
|
|
16219
|
+
"default": "'vertical'",
|
|
16220
|
+
"description": "The orientation property determines the alignment of the component's content or elements. It accepts two possible\nvalues: 'horizontal' and 'vertical'. The default value is 'vertical'.\nThis property allows you to control the visual layout and arrangement of elements within the component, providing\nflexibility in how the component is displayed based on your specific design needs.",
|
|
16221
|
+
"fieldName": "orientation"
|
|
16222
|
+
},
|
|
16223
|
+
{
|
|
16224
|
+
"name": "label",
|
|
16225
|
+
"type": {
|
|
16226
|
+
"text": "string"
|
|
16227
|
+
},
|
|
16228
|
+
"default": "''",
|
|
16229
|
+
"description": "The checkbox group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
|
|
16230
|
+
"fieldName": "label"
|
|
16231
|
+
},
|
|
16232
|
+
{
|
|
16233
|
+
"name": "help-text",
|
|
16234
|
+
"type": {
|
|
16235
|
+
"text": "string"
|
|
16236
|
+
},
|
|
16237
|
+
"default": "''",
|
|
16238
|
+
"description": "The element help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
16239
|
+
"fieldName": "helpText"
|
|
16240
|
+
},
|
|
16241
|
+
{
|
|
16242
|
+
"name": "dir",
|
|
16243
|
+
"type": {
|
|
16244
|
+
"text": "'ltr' | 'rtl' | 'auto'"
|
|
16245
|
+
},
|
|
16246
|
+
"description": "The element's directionality.",
|
|
16247
|
+
"fieldName": "dir",
|
|
16248
|
+
"inheritedFrom": {
|
|
16249
|
+
"name": "SolidElement",
|
|
16250
|
+
"module": "src/internal/solid-element.ts"
|
|
16251
|
+
}
|
|
16252
|
+
},
|
|
16253
|
+
{
|
|
16254
|
+
"name": "lang",
|
|
16255
|
+
"type": {
|
|
16256
|
+
"text": "string"
|
|
16257
|
+
},
|
|
16258
|
+
"description": "The element's language.",
|
|
16259
|
+
"fieldName": "lang",
|
|
16260
|
+
"inheritedFrom": {
|
|
16261
|
+
"name": "SolidElement",
|
|
16262
|
+
"module": "src/internal/solid-element.ts"
|
|
16263
|
+
}
|
|
16264
|
+
}
|
|
16265
|
+
],
|
|
16266
|
+
"superclass": {
|
|
16267
|
+
"name": "SolidElement",
|
|
16268
|
+
"module": "/src/internal/solid-element"
|
|
16269
|
+
},
|
|
16270
|
+
"summary": "Checkbox groups are used to group multiple [checkbox](/components/checkbox). It provides only presentational functionality.",
|
|
16271
|
+
"documentation": "https://solid.union-investment.com/[storybook-link]/checkbox-group",
|
|
16272
|
+
"status": "stable",
|
|
16273
|
+
"since": "1.22.0",
|
|
16274
|
+
"tagName": "sd-checkbox-group",
|
|
16275
|
+
"customElement": true
|
|
16276
|
+
}
|
|
16277
|
+
],
|
|
16278
|
+
"exports": [
|
|
16279
|
+
{
|
|
16280
|
+
"kind": "js",
|
|
16281
|
+
"name": "default",
|
|
16282
|
+
"declaration": {
|
|
16283
|
+
"name": "SdCheckboxGroup",
|
|
16284
|
+
"module": "components/checkbox-group/checkbox-group.js"
|
|
16285
|
+
}
|
|
16286
|
+
},
|
|
16287
|
+
{
|
|
16288
|
+
"kind": "custom-element-definition",
|
|
16289
|
+
"name": "sd-checkbox-group",
|
|
16290
|
+
"declaration": {
|
|
16291
|
+
"name": "SdCheckboxGroup",
|
|
16292
|
+
"module": "components/checkbox-group/checkbox-group.js"
|
|
16293
|
+
}
|
|
16294
|
+
}
|
|
16295
|
+
]
|
|
16296
|
+
},
|
|
16297
16297
|
{
|
|
16298
16298
|
"kind": "javascript-module",
|
|
16299
16299
|
"path": "components/tag/tag.js",
|
|
@@ -18582,7 +18582,7 @@
|
|
|
18582
18582
|
"package": {
|
|
18583
18583
|
"name": "@solid-design-system/components",
|
|
18584
18584
|
"description": "Solid Design System: Components",
|
|
18585
|
-
"version": "4.
|
|
18585
|
+
"version": "4.11.0",
|
|
18586
18586
|
"author": "Union Investment",
|
|
18587
18587
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
18588
18588
|
"license": "MIT"
|