@solid-design-system/components 4.6.9 → 4.6.10
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.HWNGDZXC.js +1 -0
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/custom-elements.json +193 -193
- package/cdn/solid-components.bundle.js +13 -13
- package/cdn/solid-components.iife.js +13 -13
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +44 -44
- package/cdn/web-types.json +67 -67
- 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.42FSKXEZ.js +1 -1
- package/cdn-versioned/chunks/chunk.473LHNMV.js +1 -1
- package/cdn-versioned/chunks/chunk.5YA6WG7I.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.6Q37IBDM.js +1 -1
- package/cdn-versioned/chunks/chunk.6XTSQUSU.js +1 -1
- package/cdn-versioned/chunks/chunk.7BBRZSXJ.js +1 -1
- package/cdn-versioned/chunks/chunk.7HKFHNAX.js +1 -1
- package/cdn-versioned/chunks/chunk.AG6PE353.js +1 -1
- package/cdn-versioned/chunks/chunk.AMCTYKOD.js +1 -1
- package/cdn-versioned/chunks/chunk.BIMWLALI.js +1 -1
- package/cdn-versioned/chunks/chunk.BNX6LX2P.js +1 -1
- package/cdn-versioned/chunks/chunk.BQZXDBME.js +1 -1
- package/cdn-versioned/chunks/chunk.BXA5EEMV.js +1 -1
- package/cdn-versioned/chunks/chunk.C5D2DMXR.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DH7VYHZC.js +1 -1
- package/cdn-versioned/chunks/chunk.E2R73Z3A.js +1 -1
- package/cdn-versioned/chunks/chunk.F4LOXTZD.js +1 -1
- package/cdn-versioned/chunks/chunk.FZLK25RZ.js +1 -1
- package/cdn-versioned/chunks/chunk.FZVQZMTE.js +1 -1
- package/cdn-versioned/chunks/chunk.HWNGDZXC.js +1 -0
- package/cdn-versioned/chunks/chunk.I4DEROU2.js +1 -1
- package/cdn-versioned/chunks/chunk.ILF7UZDH.js +1 -1
- package/cdn-versioned/chunks/chunk.ILRYHVN7.js +1 -1
- package/cdn-versioned/chunks/chunk.JXBK7LTF.js +1 -1
- package/cdn-versioned/chunks/chunk.KG4OKUP5.js +1 -1
- package/cdn-versioned/chunks/chunk.L47VLLL4.js +1 -1
- package/cdn-versioned/chunks/chunk.L7GN7UBE.js +2 -2
- package/cdn-versioned/chunks/chunk.MJBA5E3M.js +1 -1
- package/cdn-versioned/chunks/chunk.OJY2KFGF.js +1 -1
- package/cdn-versioned/chunks/chunk.OOWV6VHF.js +1 -1
- package/cdn-versioned/chunks/chunk.OZ6M4CAW.js +4 -4
- package/cdn-versioned/chunks/chunk.PEIJ5QII.js +1 -1
- package/cdn-versioned/chunks/chunk.PEYEID7E.js +1 -1
- package/cdn-versioned/chunks/chunk.PTJJRTHX.js +1 -1
- package/cdn-versioned/chunks/chunk.QKA4RHJ4.js +1 -1
- package/cdn-versioned/chunks/chunk.S2O3QV7N.js +3 -3
- package/cdn-versioned/chunks/chunk.SCGOQGTJ.js +1 -1
- package/cdn-versioned/chunks/chunk.SITFYVDG.js +1 -1
- package/cdn-versioned/chunks/chunk.SWPBMHJJ.js +1 -1
- package/cdn-versioned/chunks/chunk.SWRY3APF.js +1 -1
- package/cdn-versioned/chunks/chunk.TEZ7TMHP.js +1 -1
- package/cdn-versioned/chunks/chunk.TNG3FY3U.js +1 -1
- package/cdn-versioned/chunks/chunk.TYH3DD3Z.js +1 -1
- package/cdn-versioned/chunks/chunk.UW24BDXV.js +1 -1
- package/cdn-versioned/chunks/chunk.VCJR4I23.js +2 -2
- package/cdn-versioned/chunks/chunk.VWR74OA4.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WUSKJM2J.js +4 -4
- package/cdn-versioned/chunks/chunk.XIALW4QW.js +1 -1
- package/cdn-versioned/chunks/chunk.Y2ZOHPE6.js +1 -1
- package/cdn-versioned/chunks/chunk.YYZEOF4B.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/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 +401 -401
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +18 -18
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +18 -18
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +123 -123
- package/cdn-versioned/web-types.json +202 -202
- package/dist/chunks/{chunk.7PDAG24K.js → chunk.G2S4374K.js} +2 -2
- package/dist/components/drawer/drawer.js +1 -1
- package/dist/custom-elements.json +193 -193
- package/dist/solid-components.js +1 -1
- package/dist/vscode.html-custom-data.json +44 -44
- package/dist/web-types.json +67 -67
- 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.35D7BDRG.js +2 -2
- package/dist-versioned/chunks/chunk.3ORZT34X.js +1 -1
- package/dist-versioned/chunks/chunk.4FJAHWKR.js +2 -2
- package/dist-versioned/chunks/chunk.5NUL7XZO.js +2 -2
- package/dist-versioned/chunks/chunk.64DOW5GT.js +5 -5
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6KFGIUGJ.js +9 -9
- package/dist-versioned/chunks/chunk.6VCNAVH4.js +3 -3
- package/dist-versioned/chunks/chunk.6W262L3F.js +8 -8
- package/dist-versioned/chunks/chunk.7GIAGNCP.js +5 -5
- package/dist-versioned/chunks/chunk.7T42VK6H.js +1 -1
- package/dist-versioned/chunks/chunk.A4FCES75.js +2 -2
- package/dist-versioned/chunks/chunk.AOWIHO7B.js +1 -1
- package/dist-versioned/chunks/chunk.BALWGQRW.js +2 -2
- package/dist-versioned/chunks/chunk.BO6G26AO.js +6 -6
- package/dist-versioned/chunks/chunk.CJL7IBJC.js +2 -2
- package/dist-versioned/chunks/chunk.CKKINYND.js +1 -1
- package/dist-versioned/chunks/chunk.CTZX4JSW.js +1 -1
- package/dist-versioned/chunks/chunk.DHGILA5W.js +2 -2
- package/dist-versioned/chunks/chunk.EZKDJFKX.js +2 -2
- package/dist-versioned/chunks/{chunk.7PDAG24K.js → chunk.G2S4374K.js} +3 -3
- package/dist-versioned/chunks/chunk.HP5TMUCE.js +11 -11
- package/dist-versioned/chunks/chunk.IFVMGJPH.js +14 -14
- package/dist-versioned/chunks/chunk.IOAEHG5C.js +2 -2
- package/dist-versioned/chunks/chunk.JEZFJKCR.js +2 -2
- package/dist-versioned/chunks/chunk.JH33Y6NI.js +3 -3
- package/dist-versioned/chunks/chunk.JVH7QA7V.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.KXI7DQT7.js +5 -5
- package/dist-versioned/chunks/chunk.LA5LTAEA.js +1 -1
- package/dist-versioned/chunks/chunk.LY4LB7WU.js +5 -5
- package/dist-versioned/chunks/chunk.MWFRUUKN.js +2 -2
- package/dist-versioned/chunks/chunk.OJPVJA2S.js +1 -1
- package/dist-versioned/chunks/chunk.OXCJX3LE.js +6 -6
- package/dist-versioned/chunks/chunk.PS2S6VDP.js +1 -1
- package/dist-versioned/chunks/chunk.Q7SDLREI.js +3 -3
- package/dist-versioned/chunks/chunk.QWW7D2EF.js +3 -3
- package/dist-versioned/chunks/chunk.SWZ7YNPJ.js +2 -2
- package/dist-versioned/chunks/chunk.TK6PTMFF.js +1 -1
- package/dist-versioned/chunks/chunk.TPRFXGPO.js +26 -26
- package/dist-versioned/chunks/chunk.TXYWAHFM.js +1 -1
- package/dist-versioned/chunks/chunk.TYYOT3JJ.js +13 -13
- package/dist-versioned/chunks/chunk.TZPIUQJ5.js +1 -1
- package/dist-versioned/chunks/chunk.UHYIMTVH.js +5 -5
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.W5XT73TK.js +2 -2
- package/dist-versioned/chunks/chunk.XHFS2AN7.js +23 -23
- package/dist-versioned/chunks/chunk.XLKZYB73.js +1 -1
- package/dist-versioned/chunks/chunk.YKFNELUH.js +1 -1
- package/dist-versioned/chunks/chunk.ZDKRIMUK.js +5 -5
- package/dist-versioned/chunks/chunk.ZE3C43AX.js +4 -4
- package/dist-versioned/chunks/chunk.ZEC66JCL.js +2 -2
- package/dist-versioned/chunks/chunk.ZQJKVTOP.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/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/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 +401 -401
- 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 +123 -123
- package/dist-versioned/web-types.json +202 -202
- package/package.json +1 -1
- package/cdn/chunks/chunk.NXW6WUG6.js +0 -1
- package/cdn-versioned/chunks/chunk.NXW6WUG6.js +0 -1
|
@@ -56,7 +56,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
56
56
|
this.pausedAutoplay = false;
|
|
57
57
|
this.autoplayController = new AutoplayController(this, () => this.next());
|
|
58
58
|
this.scrollController = new ScrollController(this);
|
|
59
|
-
this.slides = this.getElementsByTagName("sd-4-6-
|
|
59
|
+
this.slides = this.getElementsByTagName("sd-4-6-10-carousel-item");
|
|
60
60
|
// determines which slide is displayed
|
|
61
61
|
// A map containing the state of all the slides
|
|
62
62
|
this.intersectionObserverEntries = /* @__PURE__ */ new Map();
|
|
@@ -380,7 +380,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
380
380
|
)}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${prevEnabled ? (e) => {
|
|
381
381
|
this.previous();
|
|
382
382
|
this.unblockAutoplay(e, this.previousButton);
|
|
383
|
-
} : null}"><slot name="previous-icon"><sd-4-6-
|
|
383
|
+
} : null}"><slot name="previous-icon"><sd-4-6-10-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-4-6-10-icon></slot></button> ${this.variant === "dot" ? html`<div part="pagination-dot" role="tablist" class="${cx("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${map(range(pagesCount), (index) => {
|
|
384
384
|
const isActive = index + 1 === currentPage;
|
|
385
385
|
return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
|
|
386
386
|
"carousel__pagination-item",
|
|
@@ -403,7 +403,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
403
403
|
)}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${nextEnabled ? (e) => {
|
|
404
404
|
this.next();
|
|
405
405
|
this.unblockAutoplay(e, this.nextButton);
|
|
406
|
-
} : null}"><slot name="next-icon"><sd-4-6-
|
|
406
|
+
} : null}"><slot name="next-icon"><sd-4-6-10-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-4-6-10-icon></slot></button></div><button class="${cx(
|
|
407
407
|
"ml-6 !rounded-sm",
|
|
408
408
|
"!absolute !right-0 sd-interactive",
|
|
409
409
|
this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset",
|
|
@@ -413,12 +413,12 @@ var SdCarousel = class extends SolidElement {
|
|
|
413
413
|
if (e.detail) {
|
|
414
414
|
this.autoplayControls.blur();
|
|
415
415
|
}
|
|
416
|
-
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-4-6-
|
|
416
|
+
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-4-6-10-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-4-6-10-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-4-6-10-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-4-6-10-icon></slot></button></div></div>`;
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
SdCarousel.styles = [
|
|
420
420
|
...SolidElement.styles,
|
|
421
|
-
css`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-6-
|
|
421
|
+
css`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-6-10-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`
|
|
422
422
|
];
|
|
423
423
|
__decorateClass([
|
|
424
424
|
query('[part~="autoplay-controls"]')
|
|
@@ -485,7 +485,7 @@ __decorateClass([
|
|
|
485
485
|
watch("autoplay")
|
|
486
486
|
], SdCarousel.prototype, "handleAutoplayChange", 1);
|
|
487
487
|
SdCarousel = __decorateClass([
|
|
488
|
-
customElement("sd-4-6-
|
|
488
|
+
customElement("sd-4-6-10-carousel")
|
|
489
489
|
], SdCarousel);
|
|
490
490
|
|
|
491
491
|
export {
|
|
@@ -41,16 +41,16 @@ var SdAccordionGroup = class extends SolidElement {
|
|
|
41
41
|
};
|
|
42
42
|
SdAccordionGroup.styles = [
|
|
43
43
|
...SolidElement.styles,
|
|
44
|
-
css`:host{display:block}::slotted(sd-4-6-
|
|
44
|
+
css`:host{display:block}::slotted(sd-4-6-10-accordion:not(:first-of-type)){margin-top:-1px}`
|
|
45
45
|
];
|
|
46
46
|
__decorateClass([
|
|
47
|
-
queryAssignedElements({ selector: "sd-4-6-
|
|
47
|
+
queryAssignedElements({ selector: "sd-4-6-10-accordion" })
|
|
48
48
|
], SdAccordionGroup.prototype, "_accordionsInDefaultSlot", 2);
|
|
49
49
|
__decorateClass([
|
|
50
50
|
property({ attribute: "close-others", type: Boolean, reflect: true })
|
|
51
51
|
], SdAccordionGroup.prototype, "closeOthers", 2);
|
|
52
52
|
SdAccordionGroup = __decorateClass([
|
|
53
|
-
customElement("sd-4-6-
|
|
53
|
+
customElement("sd-4-6-10-accordion-group")
|
|
54
54
|
], SdAccordionGroup);
|
|
55
55
|
|
|
56
56
|
export {
|
|
@@ -379,7 +379,7 @@ var SdInput = class extends SolidElement {
|
|
|
379
379
|
textSize,
|
|
380
380
|
this.visuallyDisabled && "cursor-not-allowed"
|
|
381
381
|
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
382
|
-
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-
|
|
382
|
+
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-10-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-6-10-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handlePasswordToggle}">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-4-6-10-icon class="${cx(iconColor, iconSize)}" library="system" name="eye"></sd-4-6-10-icon></slot>` : html`<slot name="hide-password-icon"><sd-4-6-10-icon class="${cx(iconColor, iconSize)}" library="system" name="eye-crossed-out"></sd-4-6-10-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-4-6-10-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-4-6-10-icon>` : ""} ${this.type === "time" ? html`<sd-4-6-10-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-4-6-10-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-4-6-10-icon class="${cx(iconColor, iconSize)}" library="system" name="magnifying-glass" label="${this.localize.term("search")}"></sd-4-6-10-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-6-10-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-4-6-10-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-4-6-10-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check" part="valid-icon"></sd-4-6-10-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1"><slot name="decrement-number-stepper"><sd-4-6-10-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-6-10-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-4-6-10-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-6-10-icon></slot></button></div>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
/**
|
|
@@ -387,7 +387,7 @@ var SdInput = class extends SolidElement {
|
|
|
387
387
|
*/
|
|
388
388
|
SdInput.styles = [
|
|
389
389
|
...SolidElement.styles,
|
|
390
|
-
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-4-6-
|
|
390
|
+
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-4-6-10-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
|
|
391
391
|
];
|
|
392
392
|
__decorateClass([
|
|
393
393
|
query("#input")
|
|
@@ -517,7 +517,7 @@ __decorateClass([
|
|
|
517
517
|
watch("value", { waitUntilFirstUpdate: true })
|
|
518
518
|
], SdInput.prototype, "handleValueChange", 1);
|
|
519
519
|
SdInput = __decorateClass([
|
|
520
|
-
customElement("sd-4-6-
|
|
520
|
+
customElement("sd-4-6-10-input")
|
|
521
521
|
], SdInput);
|
|
522
522
|
|
|
523
523
|
export {
|
|
@@ -55,7 +55,7 @@ var SdStepGroup = class extends SolidElement {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
getAllSteps() {
|
|
58
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-4-6-
|
|
58
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-4-6-10-step");
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Sets the active step.
|
|
@@ -120,7 +120,7 @@ __decorateClass([
|
|
|
120
120
|
watch("notInteractive")
|
|
121
121
|
], SdStepGroup.prototype, "handleInteractivityChange", 1);
|
|
122
122
|
SdStepGroup = __decorateClass([
|
|
123
|
-
customElement("sd-4-6-
|
|
123
|
+
customElement("sd-4-6-10-step-group")
|
|
124
124
|
], SdStepGroup);
|
|
125
125
|
|
|
126
126
|
export {
|
|
@@ -25,7 +25,7 @@ SdCarouselItem.styles = [
|
|
|
25
25
|
css`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`
|
|
26
26
|
];
|
|
27
27
|
SdCarouselItem = __decorateClass([
|
|
28
|
-
customElement("sd-4-6-
|
|
28
|
+
customElement("sd-4-6-10-carousel-item")
|
|
29
29
|
], SdCarouselItem);
|
|
30
30
|
|
|
31
31
|
export {
|
|
@@ -44,7 +44,7 @@ var SdSelect = class extends SolidElement {
|
|
|
44
44
|
constructor() {
|
|
45
45
|
super(...arguments);
|
|
46
46
|
this.formControlController = new FormControlController(this, {
|
|
47
|
-
assumeInteractionOn: ["sd-blur", "sd-4-6-
|
|
47
|
+
assumeInteractionOn: ["sd-blur", "sd-4-6-10-input"]
|
|
48
48
|
});
|
|
49
49
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
50
50
|
this.localize = new LocalizeController(this);
|
|
@@ -77,11 +77,11 @@ var SdSelect = class extends SolidElement {
|
|
|
77
77
|
this.styleOnValid = false;
|
|
78
78
|
this.hoist = false;
|
|
79
79
|
this.getTag = (option) => {
|
|
80
|
-
return html`<sd-4-6-
|
|
80
|
+
return html`<sd-4-6-10-tag class="relative z-10" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
81
81
|
base:tag__base,
|
|
82
82
|
content:tag__content,
|
|
83
83
|
removable-indicator:tag__removable-indicator,
|
|
84
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-6-
|
|
84
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-6-10-tag>`;
|
|
85
85
|
};
|
|
86
86
|
this.handleDocumentFocusIn = (event) => {
|
|
87
87
|
const path = event.composedPath();
|
|
@@ -92,7 +92,7 @@ var SdSelect = class extends SolidElement {
|
|
|
92
92
|
this.handleDocumentKeyDown = (event) => {
|
|
93
93
|
const target = event.target;
|
|
94
94
|
const isClearButton = target.closest(".select__clear") !== null;
|
|
95
|
-
const isIconButton = target.closest("sd-4-6-
|
|
95
|
+
const isIconButton = target.closest("sd-4-6-10-icon-button") !== null;
|
|
96
96
|
if (isClearButton || isIconButton) {
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
@@ -226,8 +226,8 @@ var SdSelect = class extends SolidElement {
|
|
|
226
226
|
event.preventDefault();
|
|
227
227
|
event.stopPropagation();
|
|
228
228
|
const tagParent = (_a = event.currentTarget) == null ? void 0 : _a.parentElement;
|
|
229
|
-
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-6-
|
|
230
|
-
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-6-
|
|
229
|
+
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-6-10-tag");
|
|
230
|
+
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-6-10-tag");
|
|
231
231
|
this.handleTagRemove(new CustomEvent("sd-remove"), option);
|
|
232
232
|
this.updateComplete.then(() => {
|
|
233
233
|
if (nextTag) {
|
|
@@ -247,7 +247,7 @@ var SdSelect = class extends SolidElement {
|
|
|
247
247
|
this.handleTagRemove(new CustomEvent("sd-remove"), this.selectedOptions[this.selectedOptions.length - 1]);
|
|
248
248
|
this.updateComplete.then(() => {
|
|
249
249
|
var _a;
|
|
250
|
-
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-6-
|
|
250
|
+
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-6-10-tag");
|
|
251
251
|
if (tags && tags.length > 0) {
|
|
252
252
|
tags == null ? void 0 : tags[(tags == null ? void 0 : tags.length) - 1].focus();
|
|
253
253
|
} else {
|
|
@@ -292,7 +292,7 @@ var SdSelect = class extends SolidElement {
|
|
|
292
292
|
}
|
|
293
293
|
handleOptionClick(event) {
|
|
294
294
|
const target = event.target;
|
|
295
|
-
const option = target.closest("sd-4-6-
|
|
295
|
+
const option = target.closest("sd-4-6-10-option");
|
|
296
296
|
const oldValue = this.value;
|
|
297
297
|
if (option && !option.disabled) {
|
|
298
298
|
if (this.multiple) {
|
|
@@ -317,7 +317,7 @@ var SdSelect = class extends SolidElement {
|
|
|
317
317
|
const allOptions = this.getAllOptions();
|
|
318
318
|
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
319
319
|
const values = [];
|
|
320
|
-
if (customElements.get("sd-4-6-
|
|
320
|
+
if (customElements.get("sd-4-6-10-option")) {
|
|
321
321
|
allOptions.forEach((option) => {
|
|
322
322
|
if (this.multiple) {
|
|
323
323
|
option.checkbox = true;
|
|
@@ -326,7 +326,7 @@ var SdSelect = class extends SolidElement {
|
|
|
326
326
|
});
|
|
327
327
|
this.setSelectedOptions(allOptions.filter((el) => value.includes(el.value)));
|
|
328
328
|
} else {
|
|
329
|
-
customElements.whenDefined("sd-4-6-
|
|
329
|
+
customElements.whenDefined("sd-4-6-10-option").then(() => this.handleDefaultSlotChange());
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
handleTagRemove(event, option) {
|
|
@@ -343,13 +343,13 @@ var SdSelect = class extends SolidElement {
|
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
// Gets an array of all <sd-4-6-
|
|
346
|
+
// Gets an array of all <sd-4-6-10-option> elements
|
|
347
347
|
getAllOptions() {
|
|
348
|
-
return [...this.querySelectorAll("sd-4-6-
|
|
348
|
+
return [...this.querySelectorAll("sd-4-6-10-option")];
|
|
349
349
|
}
|
|
350
|
-
// Gets the first <sd-4-6-
|
|
350
|
+
// Gets the first <sd-4-6-10-option> element
|
|
351
351
|
getFirstOption() {
|
|
352
|
-
return this.querySelector("sd-4-6-
|
|
352
|
+
return this.querySelector("sd-4-6-10-option");
|
|
353
353
|
}
|
|
354
354
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
|
355
355
|
// option may be "current" at a time.
|
|
@@ -432,11 +432,11 @@ var SdSelect = class extends SolidElement {
|
|
|
432
432
|
});
|
|
433
433
|
} else {
|
|
434
434
|
return [
|
|
435
|
-
html`<sd-4-6-
|
|
435
|
+
html`<sd-4-6-10-tag class="z-10" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
436
436
|
base:tag__base,
|
|
437
437
|
content:tag__content,
|
|
438
438
|
removable-indicator:tag__removable-indicator,
|
|
439
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-6-
|
|
439
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-6-10-tag>`
|
|
440
440
|
];
|
|
441
441
|
}
|
|
442
442
|
}
|
|
@@ -445,7 +445,7 @@ var SdSelect = class extends SolidElement {
|
|
|
445
445
|
this.formControlController.emitInvalidEvent(event);
|
|
446
446
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
447
447
|
}
|
|
448
|
-
/** Receives incoming event detail from sd-4-6-
|
|
448
|
+
/** Receives incoming event detail from sd-4-6-10-popup and updates local state for conditional styling. */
|
|
449
449
|
handleCurrentPlacement(e) {
|
|
450
450
|
const incomingPlacement = e.detail;
|
|
451
451
|
if (incomingPlacement) {
|
|
@@ -454,7 +454,7 @@ var SdSelect = class extends SolidElement {
|
|
|
454
454
|
}
|
|
455
455
|
handleUseTagsChange() {
|
|
456
456
|
const allOptions = this.getAllOptions();
|
|
457
|
-
if (customElements.get("sd-4-6-
|
|
457
|
+
if (customElements.get("sd-4-6-10-option")) {
|
|
458
458
|
allOptions.forEach((option) => {
|
|
459
459
|
option.checkbox = this.multiple;
|
|
460
460
|
});
|
|
@@ -590,7 +590,7 @@ var SdSelect = class extends SolidElement {
|
|
|
590
590
|
default: "border-neutral-800"
|
|
591
591
|
}[selectState],
|
|
592
592
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
593
|
-
)}"></div><sd-4-6-
|
|
593
|
+
)}"></div><sd-4-6-10-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
594
594
|
"inline-flex relative w-full",
|
|
595
595
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
596
596
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -613,12 +613,12 @@ var SdSelect = class extends SolidElement {
|
|
|
613
613
|
"select__clear flex justify-center",
|
|
614
614
|
iconMarginLeft,
|
|
615
615
|
this.value.length > 0 ? "visible" : "invisible"
|
|
616
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-
|
|
616
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-10-icon class="${cx("text-icon-fill-neutral-800 z-10", iconSize)}" library="system" name="closing-round"></sd-4-6-10-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-6-10-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-6-10-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-6-10-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-6-10-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
|
617
617
|
"inline-flex ml-2 transition-all items-center",
|
|
618
618
|
this.open ? "rotate-180" : "rotate-0",
|
|
619
619
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
620
620
|
iconSize
|
|
621
|
-
)}"><sd-4-6-
|
|
621
|
+
)}"><sd-4-6-10-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-6-10-icon></slot></div><button part="combobox" class="${cx(
|
|
622
622
|
"relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",
|
|
623
623
|
cursorStyles,
|
|
624
624
|
this.open && "shadow",
|
|
@@ -631,7 +631,7 @@ var SdSelect = class extends SolidElement {
|
|
|
631
631
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
632
632
|
this.open && "shadow",
|
|
633
633
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
|
634
|
-
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-6-
|
|
634
|
+
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-6-10-popup></div><div class="text-sm text-neutral-700 mt-2" part="form-control-help-text" id="help-text" aria-hidden="${hasHelpText ? "false" : "true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
/**
|
|
@@ -639,13 +639,13 @@ var SdSelect = class extends SolidElement {
|
|
|
639
639
|
*/
|
|
640
640
|
SdSelect.styles = [
|
|
641
641
|
...SolidElement.styles,
|
|
642
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-4-6-
|
|
642
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-4-6-10-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-6-10-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-6-10-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-6-10-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-6-10-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`
|
|
643
643
|
];
|
|
644
644
|
__decorateClass([
|
|
645
|
-
queryAssignedElements({ selector: "sd-4-6-
|
|
645
|
+
queryAssignedElements({ selector: "sd-4-6-10-option" })
|
|
646
646
|
], SdSelect.prototype, "_optionsInDefaultSlot", 2);
|
|
647
647
|
__decorateClass([
|
|
648
|
-
query("sd-4-6-
|
|
648
|
+
query("sd-4-6-10-popup")
|
|
649
649
|
], SdSelect.prototype, "popup", 2);
|
|
650
650
|
__decorateClass([
|
|
651
651
|
query('[part="combobox"]')
|
|
@@ -770,7 +770,7 @@ __decorateClass([
|
|
|
770
770
|
watch("value", { waitUntilFirstUpdate: true })
|
|
771
771
|
], SdSelect.prototype, "handleValueChange", 1);
|
|
772
772
|
SdSelect = __decorateClass([
|
|
773
|
-
customElement("sd-4-6-
|
|
773
|
+
customElement("sd-4-6-10-select")
|
|
774
774
|
], SdSelect);
|
|
775
775
|
setDefaultAnimation("select.show", {
|
|
776
776
|
keyframes: [
|