@solid-design-system/components 7.0.0-next.6 → 7.0.0-next.7
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.NB6QF25Q.js +2 -0
- package/cdn/components/header/header.d.ts +1 -0
- package/cdn/components/header/header.js +1 -1
- package/cdn/custom-elements.json +24 -4
- package/cdn/solid-components.bundle.js +33 -33
- package/cdn/solid-components.iife.js +31 -31
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +7 -2
- package/cdn/web-types.json +14 -4
- package/cdn-versioned/chunks/chunk.2G3IPD56.js +2 -2
- package/cdn-versioned/chunks/chunk.3NQGT32X.js +2 -2
- package/cdn-versioned/chunks/chunk.3TH3ZR3I.js +2 -2
- package/cdn-versioned/chunks/chunk.43BVYRG3.js +2 -2
- package/cdn-versioned/chunks/chunk.4D6X7ON2.js +2 -2
- package/cdn-versioned/chunks/chunk.4RJE4TI4.js +2 -2
- package/cdn-versioned/chunks/chunk.4SDWX3GC.js +1 -1
- package/cdn-versioned/chunks/chunk.4UZPAOHT.js +2 -2
- package/cdn-versioned/chunks/chunk.4V7ZA4G4.js +2 -2
- package/cdn-versioned/chunks/chunk.4VWHE6IJ.js +2 -2
- package/cdn-versioned/chunks/chunk.5GCVGJ23.js +2 -2
- package/cdn-versioned/chunks/chunk.626XPPWD.js +2 -2
- package/cdn-versioned/chunks/chunk.64ZBR7T2.js +2 -2
- package/cdn-versioned/chunks/chunk.7HGJUXD2.js +2 -2
- package/cdn-versioned/chunks/chunk.7X2WZGVP.js +3 -3
- package/cdn-versioned/chunks/chunk.AFIMLGBS.js +3 -3
- package/cdn-versioned/chunks/chunk.B5TIWX7C.js +2 -2
- package/cdn-versioned/chunks/chunk.C45254AN.js +2 -2
- package/cdn-versioned/chunks/chunk.C4BSOGLY.js +1 -1
- package/cdn-versioned/chunks/chunk.D6JILLMB.js +3 -3
- package/cdn-versioned/chunks/chunk.DK2NRNHC.js +2 -2
- package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
- package/cdn-versioned/chunks/chunk.EDB7WM3C.js +2 -2
- package/cdn-versioned/chunks/chunk.EW3C6EAI.js +1 -1
- package/cdn-versioned/chunks/chunk.GTAM35BO.js +2 -2
- package/cdn-versioned/chunks/chunk.H6DSYZZ5.js +2 -2
- package/cdn-versioned/chunks/chunk.HPSXEVMH.js +2 -2
- package/cdn-versioned/chunks/chunk.IHNJ7SE7.js +2 -2
- package/cdn-versioned/chunks/chunk.INUOCLNI.js +1 -1
- package/cdn-versioned/chunks/chunk.IPT2IS3C.js +2 -2
- package/cdn-versioned/chunks/chunk.IUTTUDYG.js +2 -2
- package/cdn-versioned/chunks/chunk.KFO7GTE5.js +2 -2
- package/cdn-versioned/chunks/chunk.KGIRFMVB.js +2 -2
- package/cdn-versioned/chunks/chunk.KIKLU2QF.js +2 -2
- package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
- package/cdn-versioned/chunks/chunk.MCV2O2DW.js +2 -2
- package/cdn-versioned/chunks/chunk.MMSVMSOT.js +1 -1
- package/cdn-versioned/chunks/chunk.NB6QF25Q.js +2 -0
- package/cdn-versioned/chunks/chunk.NIP2E7XF.js +2 -2
- package/cdn-versioned/chunks/chunk.O45L6PM3.js +5 -5
- package/cdn-versioned/chunks/chunk.ONEC2JGA.js +2 -2
- package/cdn-versioned/chunks/chunk.OR425KE3.js +2 -2
- package/cdn-versioned/chunks/chunk.PINAEP5F.js +2 -2
- package/cdn-versioned/chunks/chunk.Q235YK2W.js +2 -2
- package/cdn-versioned/chunks/chunk.Q7MQTMXO.js +2 -2
- package/cdn-versioned/chunks/chunk.RHWN47DZ.js +2 -2
- package/cdn-versioned/chunks/chunk.SDWSZX52.js +10 -10
- package/cdn-versioned/chunks/chunk.SPIJDZMD.js +2 -2
- package/cdn-versioned/chunks/chunk.SS7M4TZ3.js +2 -2
- package/cdn-versioned/chunks/chunk.SXCJQBLJ.js +2 -2
- package/cdn-versioned/chunks/chunk.TEZ5ERKR.js +5 -5
- package/cdn-versioned/chunks/chunk.TQIQNEOY.js +1 -1
- package/cdn-versioned/chunks/chunk.UQD7EJTJ.js +2 -2
- package/cdn-versioned/chunks/chunk.V65AWGU4.js +1 -1
- package/cdn-versioned/chunks/chunk.VGGACO4K.js +2 -2
- package/cdn-versioned/chunks/chunk.VUEVAYFK.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WUMIGCKG.js +2 -2
- package/cdn-versioned/chunks/chunk.X66Q6CFQ.js +2 -2
- package/cdn-versioned/chunks/chunk.XYOC42VA.js +2 -2
- package/cdn-versioned/chunks/chunk.Y22AL5IU.js +2 -2
- package/cdn-versioned/chunks/chunk.Z4LHGWSU.js +1 -1
- package/cdn-versioned/chunks/chunk.ZDVA3JMZ.js +1 -1
- package/cdn-versioned/chunks/chunk.ZHYZWUO3.js +2 -2
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/datepicker/datepicker.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/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 +2 -1
- package/cdn-versioned/components/header/header.js +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/skeleton/skeleton.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/theme-listener/theme-listener.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 +283 -263
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +84 -84
- package/cdn-versioned/solid-components.css +3 -3
- package/cdn-versioned/solid-components.iife.js +84 -84
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +120 -115
- package/cdn-versioned/web-types.json +182 -172
- package/dist/chunks/{chunk.4KUVWN2I.js → chunk.5HSSTHMW.js} +5 -1
- package/dist/components/header/header.d.ts +1 -0
- package/dist/components/header/header.js +1 -1
- package/dist/custom-elements.json +24 -4
- package/dist/solid-components.js +6 -6
- package/dist/vscode.html-custom-data.json +7 -2
- package/dist/web-types.json +14 -4
- package/dist-versioned/chunks/{chunk.4KUVWN2I.js → chunk.5HSSTHMW.js} +7 -3
- package/dist-versioned/chunks/chunk.6ETKGDC3.js +13 -13
- package/dist-versioned/chunks/chunk.6O4N7F3K.js +3 -3
- package/dist-versioned/chunks/chunk.6UABH73N.js +23 -23
- package/dist-versioned/chunks/chunk.742523X2.js +6 -6
- package/dist-versioned/chunks/chunk.7MHQG3BX.js +1 -1
- package/dist-versioned/chunks/chunk.7PKQECKN.js +5 -5
- package/dist-versioned/chunks/chunk.7QL6Y47O.js +3 -3
- package/dist-versioned/chunks/chunk.7WPBGXB4.js +1 -1
- package/dist-versioned/chunks/chunk.AMARMKJU.js +3 -3
- package/dist-versioned/chunks/chunk.BDDLMKAK.js +1 -1
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.D3Q6NREV.js +1 -1
- package/dist-versioned/chunks/chunk.DC2F6ZIN.js +12 -12
- package/dist-versioned/chunks/chunk.DCUIQILU.js +7 -7
- package/dist-versioned/chunks/chunk.DMQ52GO3.js +2 -2
- package/dist-versioned/chunks/chunk.DZ77XUG2.js +11 -11
- package/dist-versioned/chunks/chunk.E7RWXJJE.js +11 -11
- package/dist-versioned/chunks/chunk.EH7PG7IH.js +2 -2
- package/dist-versioned/chunks/chunk.EKH7JJ3U.js +25 -25
- package/dist-versioned/chunks/chunk.GVPPHUUS.js +5 -5
- package/dist-versioned/chunks/chunk.GWWM46XG.js +7 -7
- package/dist-versioned/chunks/chunk.HB3VBJFC.js +10 -10
- package/dist-versioned/chunks/chunk.K22CCY63.js +3 -3
- package/dist-versioned/chunks/chunk.K4ZSZPTN.js +2 -2
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KYX4HLN2.js +7 -7
- package/dist-versioned/chunks/chunk.LDTZNWTZ.js +6 -6
- package/dist-versioned/chunks/chunk.LUR5ATJB.js +6 -6
- package/dist-versioned/chunks/chunk.MEMOQ3W7.js +5 -5
- package/dist-versioned/chunks/chunk.MJ6KXGSO.js +5 -5
- package/dist-versioned/chunks/chunk.N5OTEAT2.js +6 -6
- package/dist-versioned/chunks/chunk.NPYCKWWW.js +10 -10
- package/dist-versioned/chunks/chunk.NXG4DNKU.js +12 -12
- package/dist-versioned/chunks/chunk.PUT4P7PK.js +2 -2
- package/dist-versioned/chunks/chunk.QGERTGJH.js +4 -4
- package/dist-versioned/chunks/chunk.RZXU2X5Z.js +2 -2
- package/dist-versioned/chunks/chunk.S3DD4YSN.js +4 -4
- package/dist-versioned/chunks/chunk.SCWFNFSN.js +4 -4
- package/dist-versioned/chunks/chunk.SOX43MJ5.js +4 -4
- package/dist-versioned/chunks/chunk.T2ZFQMV6.js +8 -8
- package/dist-versioned/chunks/chunk.TNLAM4ZT.js +3 -3
- package/dist-versioned/chunks/chunk.UGIF26DH.js +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V4ILSVMF.js +4 -4
- package/dist-versioned/chunks/chunk.V54VIV3V.js +1 -1
- package/dist-versioned/chunks/chunk.VDQBK7ZK.js +2 -2
- package/dist-versioned/chunks/chunk.VLMSLPLL.js +10 -10
- package/dist-versioned/chunks/chunk.VWGMR2Y5.js +5 -5
- package/dist-versioned/chunks/chunk.VYBHDB7F.js +11 -11
- package/dist-versioned/chunks/chunk.WIKRI7YB.js +5 -5
- package/dist-versioned/chunks/chunk.WKUNYCQZ.js +3 -3
- package/dist-versioned/chunks/chunk.X32Z3OP3.js +14 -14
- package/dist-versioned/chunks/chunk.XQBLC5E4.js +5 -5
- package/dist-versioned/chunks/chunk.Y6MMHW4A.js +1 -1
- package/dist-versioned/chunks/chunk.YAI4GVXU.js +6 -6
- package/dist-versioned/chunks/chunk.YFUYD54K.js +42 -42
- package/dist-versioned/chunks/chunk.YVAYTWVV.js +1 -1
- package/dist-versioned/chunks/chunk.Z4X2ORYU.js +5 -5
- package/dist-versioned/chunks/chunk.Z7VTXC25.js +2 -2
- package/dist-versioned/chunks/chunk.ZMCHJLGT.js +10 -10
- package/dist-versioned/chunks/chunk.ZWSPJTPP.js +5 -5
- package/dist-versioned/chunks/chunk.ZXPU2CGW.js +3 -3
- package/dist-versioned/chunks/chunk.ZXTMNMQT.js +2 -2
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/datepicker/datepicker.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/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 +2 -1
- package/dist-versioned/components/header/header.js +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/skeleton/skeleton.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/theme-listener/theme-listener.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 +283 -263
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +3 -3
- package/dist-versioned/solid-components.js +6 -6
- package/dist-versioned/vscode.html-custom-data.json +120 -115
- package/dist-versioned/web-types.json +182 -172
- package/package.json +1 -1
- package/cdn/chunks/chunk.YQHNJLIR.js +0 -2
- package/cdn-versioned/chunks/chunk.YQHNJLIR.js +0 -2
|
@@ -38,13 +38,13 @@ var SdBreadcrumbItem = class extends SolidElement {
|
|
|
38
38
|
requestAnimationFrame(() => this.handleCurrentChange());
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return html`<sd-7-0-0-next-
|
|
41
|
+
return html`<sd-7-0-0-next-7-link part="base" href="${ifDefined(!this.current ? this.href : void 0)}" target="${this.target}" standalone class="text-nowrap"><slot></slot></sd-7-0-0-next-7-link>`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
SdBreadcrumbItem.styles = [
|
|
45
45
|
...SolidElement.styles,
|
|
46
46
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
47
|
-
:host{display:inline-flex;align-items:center}sd-7-0-0-next-
|
|
47
|
+
:host{display:inline-flex;align-items:center}sd-7-0-0-next-7-link::part(base){align-items:center}sd-7-0-0-next-7-link::part(icon-left){margin-right:0;display:inline-flex}:host([current]) sd-7-0-0-next-7-link::part(base){color:rgba(var(--sd-breadcrumb--current-color-text,rgba(var(--sd-color-neutral-700))))}:host([current]) sd-7-0-0-next-7-link::part(label){text-decoration-line:none}`
|
|
48
48
|
];
|
|
49
49
|
__decorateClass([
|
|
50
50
|
query('[part="base"]')
|
|
@@ -62,7 +62,7 @@ __decorateClass([
|
|
|
62
62
|
watch("current")
|
|
63
63
|
], SdBreadcrumbItem.prototype, "handleCurrentChange", 1);
|
|
64
64
|
SdBreadcrumbItem = __decorateClass([
|
|
65
|
-
customElement("sd-7-0-0-next-
|
|
65
|
+
customElement("sd-7-0-0-next-7-breadcrumb-item")
|
|
66
66
|
], SdBreadcrumbItem);
|
|
67
67
|
|
|
68
68
|
export {
|
|
@@ -37,8 +37,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
37
37
|
}
|
|
38
38
|
connectedCallback() {
|
|
39
39
|
const whenAllDefined = Promise.all([
|
|
40
|
-
customElements.whenDefined("sd-7-0-0-next-
|
|
41
|
-
customElements.whenDefined("sd-7-0-0-next-
|
|
40
|
+
customElements.whenDefined("sd-7-0-0-next-7-tab"),
|
|
41
|
+
customElements.whenDefined("sd-7-0-0-next-7-tab-panel")
|
|
42
42
|
]);
|
|
43
43
|
super.connectedCallback();
|
|
44
44
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -86,20 +86,20 @@ var SdTabGroup = class extends SolidElement {
|
|
|
86
86
|
}
|
|
87
87
|
getAllTabs(options = { includeDisabled: true }) {
|
|
88
88
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
89
|
-
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-7-0-0-next-
|
|
90
|
-
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-7-0-0-next-
|
|
89
|
+
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-7-0-0-next-7-tab" ? el : el.querySelector("sd-7-0-0-next-7-tab")).filter((el) => {
|
|
90
|
+
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-7-0-0-next-7-tab" : el.tagName.toLowerCase() === "sd-7-0-0-next-7-tab" && !el.disabled;
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
getAllPanels() {
|
|
94
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-7-0-0-next-
|
|
94
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-7-0-0-next-7-tab-panel");
|
|
95
95
|
}
|
|
96
96
|
getActiveTab() {
|
|
97
97
|
return this.tabs.find((t) => t.matches(":focus"));
|
|
98
98
|
}
|
|
99
99
|
handleClick(event) {
|
|
100
100
|
const target = event.target;
|
|
101
|
-
const tab = target.closest("sd-7-0-0-next-
|
|
102
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-0-0-next-
|
|
101
|
+
const tab = target.closest("sd-7-0-0-next-7-tab");
|
|
102
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-0-0-next-7-tab-group");
|
|
103
103
|
if (tabGroup !== this) {
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -109,8 +109,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
109
109
|
}
|
|
110
110
|
handleKeyDown(event) {
|
|
111
111
|
const target = event.target;
|
|
112
|
-
const tab = target.closest("sd-7-0-0-next-
|
|
113
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-0-0-next-
|
|
112
|
+
const tab = target.closest("sd-7-0-0-next-7-tab");
|
|
113
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-0-0-next-7-tab-group");
|
|
114
114
|
if (tabGroup !== this) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
@@ -137,7 +137,7 @@ var SdTabGroup = class extends SolidElement {
|
|
|
137
137
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
138
138
|
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
139
139
|
const isRtl = this.localize.dir() === "rtl";
|
|
140
|
-
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-7-0-0-next-
|
|
140
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-7-0-0-next-7-tab") {
|
|
141
141
|
let index = this.tabs.indexOf(activeEl);
|
|
142
142
|
if (event.key === "Home") {
|
|
143
143
|
index = 0;
|
|
@@ -258,16 +258,16 @@ var SdTabGroup = class extends SolidElement {
|
|
|
258
258
|
return html`<div part="base" class="${cx("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${cx(this.hasScrollControls && "relative py-0 px-12")}">${this.hasScrollControls ? html`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${ifDefined(!this.canScroll.left || void 0)}" class="${cx(
|
|
259
259
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
260
260
|
this.localize.dir() === "rtl" && "left-auto right-0"
|
|
261
|
-
)}" @click="${this.handleScrollToStart}"><sd-7-0-0-next-
|
|
261
|
+
)}" @click="${this.handleScrollToStart}"><sd-7-0-0-next-7-icon library="_internal" name="${isRtl ? "chevron-up" : "chevron-down"}" label="previous" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-7-0-0-next-7-icon></button>` : ""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${cx("flex flex-auto relative flex-row")}" role="tablist">${((_a = this.activeTab) == null ? void 0 : _a.variant) !== "container" ? html`<div part="active-tab-indicator" id="indicator" class="absolute h-1 bg-accent bottom-0 transition-[transform,width] duration-medium ease-in-out z-30 navigable__current-indicator-height navigable__current-indicator-border-radius"></div>` : ""}<div part="separation" class="border-neutral-400 absolute w-full h-0.25 bottom-0 border-b z-10"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls ? html`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${ifDefined(!this.canScroll.right || void 0)}" class="${cx(
|
|
262
262
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
263
263
|
this.localize.dir() === "rtl" && "right-auto left-0"
|
|
264
|
-
)}" @click="${this.handleScrollToEnd}"><sd-7-0-0-next-
|
|
264
|
+
)}" @click="${this.handleScrollToEnd}"><sd-7-0-0-next-7-icon library="_internal" name="${isRtl ? "chevron-down" : "chevron-up"}" label="next" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-7-0-0-next-7-icon></button>` : ""}</div><slot part="body" class="${cx("block auto py-8 px-6", this.variant === "container" && "border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`;
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
SdTabGroup.styles = [
|
|
268
268
|
...SolidElement.styles,
|
|
269
269
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
270
|
-
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:0;width:0}::slotted(sd-7-0-0-next-
|
|
270
|
+
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:0;width:0}::slotted(sd-7-0-0-next-7-tab-panel){--padding:1rem 0}::slotted(sd-7-0-0-next-7-tab-panel:focus-visible){outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary)}`
|
|
271
271
|
];
|
|
272
272
|
__decorateClass([
|
|
273
273
|
query("[part=base]")
|
|
@@ -300,7 +300,7 @@ __decorateClass([
|
|
|
300
300
|
debounce(20)
|
|
301
301
|
], SdTabGroup.prototype, "handleScroll", 1);
|
|
302
302
|
SdTabGroup = __decorateClass([
|
|
303
|
-
customElement("sd-7-0-0-next-
|
|
303
|
+
customElement("sd-7-0-0-next-7-tab-group")
|
|
304
304
|
], SdTabGroup);
|
|
305
305
|
|
|
306
306
|
export {
|
|
@@ -92,7 +92,7 @@ var SdStep = class extends SolidElement {
|
|
|
92
92
|
this.orientation === "horizontal" && !this.horizontalInline ? this.size === "lg" ? "translateLg" : "translateSm" : this.size === "lg" || this.size === "xs" ? "mt-1" : "mt-3"
|
|
93
93
|
);
|
|
94
94
|
const circleButtonClasses = cx(
|
|
95
|
-
"border sd-7-0-0-next-
|
|
95
|
+
"border sd-7-0-0-next-7-step__circle-border-width rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",
|
|
96
96
|
this.disabled ? "focus-visible:outline-none cursor-not-allowed" : !this.notInteractive && !this.waiting ? "focus-visible:focus-outline hover:cursor-pointer" : "",
|
|
97
97
|
this.notInteractive ? this.size === "lg" ? "not-interactive-lg" : this.size === "xs" ? "w-2" : "w-12" : this.size === "lg" ? "w-12" : this.size === "xs" ? "w-2" : "w-8 h-8",
|
|
98
98
|
this.disabled && "border-neutral-500 text-neutral-500",
|
|
@@ -110,8 +110,8 @@ var SdStep = class extends SolidElement {
|
|
|
110
110
|
)}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${circleAndTailContainerClasses}"><${tag} part="circle" href="${ifDefined(isLink ? this.href : void 0)}" aria-disabled="${ifDefined(this.disabled || this.waiting || void 0)}" aria-current="${this.current ? "step" : void 0}" aria-labelledby="${ifDefined(this.notInteractive || this.waiting || !hasLabel ? void 0 : "label")}" aria-describedby="${ifDefined(this.notInteractive || this.waiting || !hasDescription ? void 0 : "description")}" class="${circleButtonClasses}"><slot name="circle-content" class="${cx(
|
|
111
111
|
"text-lg",
|
|
112
112
|
!this.disabled && !this.current && !this.notInteractive && !this.waiting && "text-primary hover:text-primary-500 hover:fill-primary-500",
|
|
113
|
-
this.notInteractive && "sd-7-0-0-next-
|
|
114
|
-
)}">${!this.disabled && !this.current && !this.notInteractive && !this.waiting && this.size !== "xs" ? html`<sd-7-0-0-next-
|
|
113
|
+
this.notInteractive && "sd-7-0-0-next-7-step-color-text"
|
|
114
|
+
)}">${!this.disabled && !this.current && !this.notInteractive && !this.waiting && this.size !== "xs" ? html`<sd-7-0-0-next-7-icon name="status-check" library="_internal" class="${cx(this.size === "sm" && "text-sm")}"></sd-7-0-0-next-7-icon>` : this.size === "xs" ? "" : html`${this.index}`}</slot></${tag}>${isHorizontalInline ? html`<div class="${cx(!this.noTail && "flex-1", "flex flex-col gap-1")}"><div class="${cx(
|
|
115
115
|
"flex w-full",
|
|
116
116
|
hasLabel && "gap-2",
|
|
117
117
|
this.size === "sm" && !hasDescription ? "mt-1" : "mt-3"
|
|
@@ -152,7 +152,7 @@ var SdStep = class extends SolidElement {
|
|
|
152
152
|
SdStep.styles = [
|
|
153
153
|
...SolidElement.styles,
|
|
154
154
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
155
|
-
:host{flex:1}:host([orientation=horizontal]) [part=tail]{border-top-width:var(--sd-step__tail-border-width)}:host([orientation=vertical]) [part=tail]{border-left-width:var(--sd-step__tail-border-width)}:host([no-tail]){flex-grow:0}:host(:not([current])) (:not([notInteractive])) slot[name=circle-content]{color:rgba(var(--sd-color-text-neutral-700))}slot[name=circle-content] sd-7-0-0-next-
|
|
155
|
+
:host{flex:1}:host([orientation=horizontal]) [part=tail]{border-top-width:var(--sd-step__tail-border-width)}:host([orientation=vertical]) [part=tail]{border-left-width:var(--sd-step__tail-border-width)}:host([no-tail]){flex-grow:0}:host(:not([current])) (:not([notInteractive])) slot[name=circle-content]{color:rgba(var(--sd-color-text-neutral-700))}slot[name=circle-content] sd-7-0-0-next-7-icon,slot[name=circle-content]::slotted(sd-7-0-0-next-7-icon){color:rgba(var(--sd-color-icon-fill-primary))}[part=circle]:hover slot[name=circle-content] sd-7-0-0-next-7-icon,[part=circle]:hover slot[name=circle-content]::slotted(sd-7-0-0-next-7-icon){color:rgba(var(--sd-color-icon-fill-primary-500))}:host([horizontal-inline]):has([part=description]){min-width:0;flex:1}.translateLg{transform:translateX(3.438rem)}.translateSm{transform:translateX(4rem)}.not-interactive-lg{width:4.5rem}`
|
|
156
156
|
];
|
|
157
157
|
__decorateClass([
|
|
158
158
|
property({ type: String, reflect: true })
|
|
@@ -203,7 +203,7 @@ __decorateClass([
|
|
|
203
203
|
watch("notInteractive")
|
|
204
204
|
], SdStep.prototype, "handleInteractivityChange", 1);
|
|
205
205
|
SdStep = __decorateClass([
|
|
206
|
-
customElement("sd-7-0-0-next-
|
|
206
|
+
customElement("sd-7-0-0-next-7-step")
|
|
207
207
|
], SdStep);
|
|
208
208
|
|
|
209
209
|
export {
|
|
@@ -26,7 +26,7 @@ SdCarouselItem.styles = [
|
|
|
26
26
|
:host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`
|
|
27
27
|
];
|
|
28
28
|
SdCarouselItem = __decorateClass([
|
|
29
|
-
customElement("sd-7-0-0-next-
|
|
29
|
+
customElement("sd-7-0-0-next-7-carousel-item")
|
|
30
30
|
], SdCarouselItem);
|
|
31
31
|
|
|
32
32
|
export {
|
|
@@ -55,19 +55,19 @@ var SdProgressBar = class extends SolidElement {
|
|
|
55
55
|
this.isLoading ? this.localize.term("loading") : this.valueFormatter(this.clampedValue)
|
|
56
56
|
)}" aria-label="${ifDefined(!hasLabel ? this.label || this.localize.term("progress") : void 0)}" aria-labelledby="${ifDefined(hasLabel ? "label" : this.label)}" style="${`--percentage: ${this.percentage}%;`}">${this.isLoading ? html`<div part="track" class="${cx(
|
|
57
57
|
"absolute top-0 left-0 h-full progress-bar__track--loading-left",
|
|
58
|
-
this.inverted ? "sd-7-0-0-next-
|
|
58
|
+
this.inverted ? "sd-7-0-0-next-7-progress-bar__slide-bar--inverted-color-background" : "sd-7-0-0-next-7-progress-bar__slide-bar-color-background"
|
|
59
59
|
)}"></div><div part="track" class="${cx(
|
|
60
60
|
"absolute top-0 right-0 h-full progress-bar__track--loading-right",
|
|
61
|
-
this.inverted ? "sd-7-0-0-next-
|
|
61
|
+
this.inverted ? "sd-7-0-0-next-7-progress-bar__slide-bar--inverted-color-background" : "sd-7-0-0-next-7-progress-bar__slide-bar-color-background"
|
|
62
62
|
)}"></div><div part="indicator" class="${cx(
|
|
63
63
|
"absolute top-0 h-full progress-bar__indicator--loading",
|
|
64
|
-
this.inverted ? "sd-7-0-0-next-
|
|
64
|
+
this.inverted ? "sd-7-0-0-next-7-progress-bar--active--inverted-color-background" : "bg-accent"
|
|
65
65
|
)}"></div>` : html`<div part="indicator" class="${cx(
|
|
66
66
|
"w-[var(--percentage)]",
|
|
67
|
-
this.inverted ? "sd-7-0-0-next-
|
|
67
|
+
this.inverted ? "sd-7-0-0-next-7-progress-bar--active--inverted-color-background" : "bg-accent"
|
|
68
68
|
)}"></div>${this.value && this.value > 0 && this.value < this.safeMax ? html`<div class="w-0.5 shrink-0"></div>` : nothing}<div part="track" class="${cx(
|
|
69
69
|
"flex-1",
|
|
70
|
-
this.inverted ? "sd-7-0-0-next-
|
|
70
|
+
this.inverted ? "sd-7-0-0-next-7-progress-bar__slide-bar--inverted-color-background" : "sd-7-0-0-next-7-progress-bar__slide-bar-color-background"
|
|
71
71
|
)}"></div>`}</div>${this.showValue ? html`<span class="${cx(
|
|
72
72
|
"text-neutral-700 text-xs w-shrink-0",
|
|
73
73
|
this.inverted ? "text-white" : "text-neutral-700",
|
|
@@ -103,7 +103,7 @@ __decorateClass([
|
|
|
103
103
|
property({ attribute: false })
|
|
104
104
|
], SdProgressBar.prototype, "valueFormatter", 2);
|
|
105
105
|
SdProgressBar = __decorateClass([
|
|
106
|
-
customElement("sd-7-0-0-next-
|
|
106
|
+
customElement("sd-7-0-0-next-7-progress-bar")
|
|
107
107
|
], SdProgressBar);
|
|
108
108
|
|
|
109
109
|
export {
|
|
@@ -163,76 +163,76 @@ var SdButton = class extends SolidElement {
|
|
|
163
163
|
const hasBorder = this.variant === "secondary";
|
|
164
164
|
const variantBackgroundColors = {
|
|
165
165
|
primary: this.inverted ? {
|
|
166
|
-
motionBackground: "sd-7-0-0-next-
|
|
167
|
-
baseBackground: "hover:sd-7-0-0-next-
|
|
166
|
+
motionBackground: "sd-7-0-0-next-7-button--primary--inverted--hover-color-background group-active:sd-7-0-0-next-7-button--primary--inverted--active-color-background",
|
|
167
|
+
baseBackground: "hover:sd-7-0-0-next-7-button--primary--inverted--hover-color-background active:sd-7-0-0-next-7-button--primary--inverted--active-color-background"
|
|
168
168
|
} : {
|
|
169
|
-
motionBackground: "sd-7-0-0-next-
|
|
170
|
-
baseBackground: "hover:sd-7-0-0-next-
|
|
169
|
+
motionBackground: "sd-7-0-0-next-7-button--primary--hover-color-background group-active:sd-7-0-0-next-7-button--primary--active-color-background",
|
|
170
|
+
baseBackground: "hover:sd-7-0-0-next-7-button--primary--hover-color-background active:sd-7-0-0-next-7-button--primary--active-color-background"
|
|
171
171
|
},
|
|
172
172
|
secondary: this.inverted ? {
|
|
173
|
-
motionBackground: "sd-7-0-0-next-
|
|
174
|
-
baseBackground: "hover:sd-7-0-0-next-
|
|
173
|
+
motionBackground: "sd-7-0-0-next-7-button--secondary--inverted--hover-color-background group-active:sd-7-0-0-next-7-button--secondary--inverted--active-color-background group-active:sd-7-0-0-next-7-button--secondary--inverted--active-color-text",
|
|
174
|
+
baseBackground: "hover:sd-7-0-0-next-7-button--secondary--inverted--hover-color-background active:sd-7-0-0-next-7-button--secondary--inverted--active-color-background"
|
|
175
175
|
} : {
|
|
176
|
-
motionBackground: "sd-7-0-0-next-
|
|
177
|
-
baseBackground: "hover:sd-7-0-0-next-
|
|
176
|
+
motionBackground: "sd-7-0-0-next-7-button--secondary--hover-color-background group-active:sd-7-0-0-next-7-button--secondary--active-color-background",
|
|
177
|
+
baseBackground: "hover:sd-7-0-0-next-7-button--secondary--hover-color-background active:sd-7-0-0-next-7-button--secondary--active-color-background"
|
|
178
178
|
},
|
|
179
179
|
tertiary: this.inverted ? {
|
|
180
|
-
motionBackground: "sd-7-0-0-next-
|
|
181
|
-
baseBackground: "hover:sd-7-0-0-next-
|
|
180
|
+
motionBackground: "sd-7-0-0-next-7-button--tertiary--inverted--hover-color-background group-active:sd-7-0-0-next-7-button--tertiary--inverted--active-color-background group-active:sd-7-0-0-next-7-button--tertiary--inverted--active-color-text",
|
|
181
|
+
baseBackground: "hover:sd-7-0-0-next-7-button--tertiary--inverted--hover-color-background active:sd-7-0-0-next-7-button--tertiary--inverted--active-color-background"
|
|
182
182
|
} : {
|
|
183
|
-
motionBackground: "sd-7-0-0-next-
|
|
184
|
-
baseBackground: "hover:sd-7-0-0-next-
|
|
183
|
+
motionBackground: "sd-7-0-0-next-7-button--tertiary--hover-color-background group-active:sd-7-0-0-next-7-button--tertiary--active-color-background",
|
|
184
|
+
baseBackground: "hover:sd-7-0-0-next-7-button--tertiary--hover-color-background active:sd-7-0-0-next-7-button--tertiary--active-color-background"
|
|
185
185
|
},
|
|
186
186
|
cta: this.inverted ? {
|
|
187
|
-
motionBackground: "sd-7-0-0-next-
|
|
188
|
-
baseBackground: "hover:sd-7-0-0-next-
|
|
187
|
+
motionBackground: "sd-7-0-0-next-7-button--cta--inverted--hover-color-background group-active:sd-7-0-0-next-7-button--cta--inverted--active-color-background",
|
|
188
|
+
baseBackground: "hover:sd-7-0-0-next-7-button--cta--inverted--hover-color-background active:sd-7-0-0-next-7-button--cta--inverted--active-color-background"
|
|
189
189
|
} : {
|
|
190
190
|
motionBackground: "bg-accent-500 group-active:bg-accent-700",
|
|
191
191
|
baseBackground: "hover:bg-accent-500 active:bg-accent-700"
|
|
192
192
|
}
|
|
193
193
|
}[this.variant];
|
|
194
|
-
return html`<sd-7-0-0-next-
|
|
194
|
+
return html`<sd-7-0-0-next-7-theme-listener></sd-7-0-0-next-7-theme-listener><${tag} part="base" class="${cx(
|
|
195
195
|
`group relative z-10 font-md no-underline
|
|
196
196
|
w-full align-middle inline-flex items-stretch justify-center
|
|
197
197
|
transition-colors duration-fast ease-in-out
|
|
198
198
|
select-none cursor-[inherit]`,
|
|
199
|
-
!this.hasUiMotion && "sd-7-0-0-next-
|
|
199
|
+
!this.hasUiMotion && "sd-7-0-0-next-7-button--simple-motion",
|
|
200
200
|
!this.inverted ? "focus-visible:focus-outline" : "focus-visible:focus-outline-inverted",
|
|
201
201
|
this.loading && "relative cursor-wait",
|
|
202
202
|
(this.disabled || this.visuallyDisabled) && "cursor-not-allowed",
|
|
203
203
|
{
|
|
204
204
|
/* sizes, fonts */
|
|
205
|
-
sm: `varspacing-8 min-h-8 sd-7-0-0-next-
|
|
206
|
-
md: `varspacing-10 sd-7-0-0-next-
|
|
207
|
-
lg: `varspacing-12 sd-7-0-0-next-
|
|
205
|
+
sm: `varspacing-8 min-h-8 sd-7-0-0-next-7-button--size-sm-font-size sd-7-0-0-next-7-button-font-weight sd-7-0-0-next-7-button--secondary--size-sm-padding-block sd-7-0-0-next-7-button--size-sm-border-radius`,
|
|
206
|
+
md: `varspacing-10 sd-7-0-0-next-7-button--size-md-height sd-7-0-0-next-7-button--size-md-font-size sd-7-0-0-next-7-button--secondary--size-md-padding-block sd-7-0-0-next-7-button-font-weight sd-7-0-0-next-7-button--size-md-border-radius`,
|
|
207
|
+
lg: `varspacing-12 sd-7-0-0-next-7-button--size-lg-height sd-7-0-0-next-7-button--size-lg-font-size sd-7-0-0-next-7-button--secondary--size-lg-padding-block sd-7-0-0-next-7-button-font-weight sd-7-0-0-next-7-button--size-lg-border-radius`
|
|
208
208
|
}[this.size],
|
|
209
209
|
!slots["icon-only"] && {
|
|
210
210
|
/* sizes, fonts */
|
|
211
|
-
sm: `${hasBorder ? "sd-7-0-0-next-
|
|
212
|
-
md: `${hasBorder ? "sd-7-0-0-next-
|
|
213
|
-
lg: `${hasBorder ? "sd-7-0-0-next-
|
|
211
|
+
sm: `${hasBorder ? "sd-7-0-0-next-7-button--secondary-padding-inline" : "sd-7-0-0-next-7-button--size-sm-padding-block sd-7-0-0-next-7-button-padding-inline"}`,
|
|
212
|
+
md: `${hasBorder ? "sd-7-0-0-next-7-button--secondary-padding-inline" : "sd-7-0-0-next-7-button--size-md-padding-block sd-7-0-0-next-7-button-padding-inline"}`,
|
|
213
|
+
lg: `${hasBorder ? "sd-7-0-0-next-7-button--secondary-padding-inline" : "sd-7-0-0-next-7-button--size-lg-padding-block sd-7-0-0-next-7-button-padding-inline"}`
|
|
214
214
|
}[this.size],
|
|
215
215
|
/**
|
|
216
216
|
* Anatomy
|
|
217
217
|
* */
|
|
218
218
|
slots["icon-only"] && {
|
|
219
219
|
sm: "px-1 aspect-square",
|
|
220
|
-
md: "sd-7-0-0-next-
|
|
220
|
+
md: "sd-7-0-0-next-7-button--size-md--icon-only-padding-inline aspect-square",
|
|
221
221
|
lg: "px-[12px] aspect-square"
|
|
222
222
|
}[this.size],
|
|
223
223
|
{
|
|
224
224
|
/* variants */
|
|
225
|
-
primary: !this.inverted ? `${this.visuallyDisabled ? "sd-7-0-0-next-
|
|
226
|
-
disabled:sd-7-0-0-next-
|
|
227
|
-
disabled:sd-7-0-0-next-
|
|
228
|
-
secondary: !this.inverted ? `border sd-7-0-0-next-
|
|
229
|
-
disabled:sd-7-0-0-next-
|
|
230
|
-
disabled:sd-7-0-0-next-
|
|
231
|
-
tertiary: !this.inverted ? `border-transparent ${this.visuallyDisabled ? "sd-7-0-0-next-
|
|
232
|
-
disabled:sd-7-0-0-next-
|
|
233
|
-
disabled:sd-7-0-0-next-
|
|
234
|
-
cta: `${this.visuallyDisabled ? "sd-7-0-0-next-
|
|
235
|
-
${!this.inverted ? "text-white bg-accent disabled:sd-7-0-0-next-
|
|
225
|
+
primary: !this.inverted ? `${this.visuallyDisabled ? "sd-7-0-0-next-7-button--primary--disabled-color-background border-neutral-500 text-white" : "sd-7-0-0-next-7-button--primary--default-color-background border-transparent sd-7-0-0-next-7-button--primary--default-color-text hover:sd-7-0-0-next-7-button--primary--hover-color-text active:sd-7-0-0-next-7-button--primary--active-color-text"}
|
|
226
|
+
disabled:sd-7-0-0-next-7-button--primary--disabled-color-background disabled:text-white` : `${this.visuallyDisabled ? "sd-7-0-0-next-7-button--inverted--disabled-color-background text-white border-neutral-500" : "sd-7-0-0-next-7-button--primary--inverted--default-color-text sd-7-0-0-next-7-button--primary--inverted--default-color-background border-white hover:sd-7-0-0-next-7-button--primary--inverted--hover-color-text active:sd-7-0-0-next-7-button--primary--inverted--active-color-text"}
|
|
227
|
+
disabled:sd-7-0-0-next-7-button--inverted--disabled-color-background disabled:text-white`,
|
|
228
|
+
secondary: !this.inverted ? `border sd-7-0-0-next-7-button-border-width ${this.visuallyDisabled ? "sd-7-0-0-next-7-button--secondary--disabled-color-text sd-7-0-0-next-7-button--secondary--disabled-color-border" : "sd-7-0-0-next-7-button--secondary--default-color-text sd-7-0-0-next-7-button--secondary--default-color-border hover:sd-7-0-0-next-7-button--secondary--hover-color-text hover:sd-7-0-0-next-7-button--secondary--hover-color-border active:sd-7-0-0-next-7-button--secondary--active-color-text active:sd-7-0-0-next-7-button--secondary--active-color-border"}
|
|
229
|
+
disabled:sd-7-0-0-next-7-button--secondary--disabled-color-text disabled:sd-7-0-0-next-7-button--secondary--disabled-color-border` : `border sd-7-0-0-next-7-button-border-width ${this.visuallyDisabled ? "text-neutral-600 border-neutral-600" : "sd-7-0-0-next-7-button--secondary--inverted-color-text sd-7-0-0-next-7-button--secondary--inverted-color-border hover:sd-7-0-0-next-7-button--secondary--inverted-color-border hover:sd-7-0-0-next-7-button--secondary--inverted--hover-color-text active:sd-7-0-0-next-7-button--secondary--inverted--active-color-text active:border-primary-200"}
|
|
230
|
+
disabled:sd-7-0-0-next-7-button--inverted--disabled-color-border disabled:sd-7-0-0-next-7-button--inverted--disabled-color-text`,
|
|
231
|
+
tertiary: !this.inverted ? `border-transparent ${this.visuallyDisabled ? "sd-7-0-0-next-7-button--tertiary--disabled-color-text" : "sd-7-0-0-next-7-button--tertiary--default-color-text hover:sd-7-0-0-next-7-button--tertiary--hover-color-text active:sd-7-0-0-next-7-button--tertiary--active-color-text"}
|
|
232
|
+
disabled:sd-7-0-0-next-7-button--tertiary--disabled-color-text` : `border-transparent ${this.visuallyDisabled ? "text-neutral-600" : "sd-7-0-0-next-7-button--tertiary--inverted-color-text hover:sd-7-0-0-next-7-button--tertiary--inverted--hover-color-text active:sd-7-0-0-next-7-button--tertiary--inverted--active-color-text"}
|
|
233
|
+
disabled:sd-7-0-0-next-7-button--inverted--disabled-color-text`,
|
|
234
|
+
cta: `${this.visuallyDisabled ? "sd-7-0-0-next-7-button--primary--disabled-color-background border-neutral-500" : "border-transparent"}
|
|
235
|
+
${!this.inverted ? "text-white bg-accent disabled:sd-7-0-0-next-7-button--primary--disabled-color-background disabled:border-neutral-500 disabled:text-white" : "sd-7-0-0-next-7-button--cta--inverted--default-color-background sd-7-0-0-next-7-button--cta--inverted--default-color-text hover:sd-7-0-0-next-7-button--cta--inverted--hover-color-text active:sd-7-0-0-next-7-button--cta--inverted--active-color-text disabled:sd-7-0-0-next-7-button--inverted--disabled-color-background disabled:text-white"}`
|
|
236
236
|
}[this.variant],
|
|
237
237
|
!this.hasUiMotion && !this.disabled && !this.visuallyDisabled && variantBackgroundColors.baseBackground
|
|
238
238
|
)}" ?disabled="${ifDefined(isLink ? void 0 : this.disabled)}" type="${ifDefined(isLink ? void 0 : this.type)}" title="${this.title}" name="${ifDefined(isLink ? void 0 : this.name)}" value="${ifDefined(isLink ? void 0 : this.value)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}" rel="${ifDefined(isLink && this.target ? "noreferrer noopener" : void 0)}" role="${ifDefined(isLink ? void 0 : "button")}" aria-disabled="${this.disabled || this.visuallyDisabled ? "true" : "false"}" aria-labelledby="content" tabindex="${this.disabled ? "-1" : "0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton() ? this.handleInvalid : null}" @click="${this.handleClick}"><div part="motion-wrapper" class="${cx(
|
|
@@ -240,9 +240,9 @@ var SdButton = class extends SolidElement {
|
|
|
240
240
|
(!this.hasUiMotion || this.disabled || this.visuallyDisabled) && "hidden",
|
|
241
241
|
{
|
|
242
242
|
/* sizes, fonts */
|
|
243
|
-
sm: `sd-7-0-0-next-
|
|
244
|
-
md: `sd-7-0-0-next-
|
|
245
|
-
lg: `sd-7-0-0-next-
|
|
243
|
+
sm: `sd-7-0-0-next-7-button-border-radius`,
|
|
244
|
+
md: `sd-7-0-0-next-7-button-border-radius`,
|
|
245
|
+
lg: `sd-7-0-0-next-7-button-border-radius`
|
|
246
246
|
}[this.size]
|
|
247
247
|
)}"><div class="absolute inset-0 w-full h-full transition-all duration-fast translate-y-full group-hover:translate-y-0 group-hover:mt-[-22%] mt-[11%]"><div class="${cx(
|
|
248
248
|
"absolute right-0 min-w-full min-h-full aspect-square skew-y-[-11deg] mt-[11%]",
|
|
@@ -250,7 +250,7 @@ var SdButton = class extends SolidElement {
|
|
|
250
250
|
)}"></div><div class="${cx(
|
|
251
251
|
"absolute w-full h-full mt-[22%]",
|
|
252
252
|
variantBackgroundColors.motionBackground,
|
|
253
|
-
this.variant === "secondary" && this.inverted && "group-active:sd-7-0-0-next-
|
|
253
|
+
this.variant === "secondary" && this.inverted && "group-active:sd-7-0-0-next-7-button--secondary--active-color-border"
|
|
254
254
|
)}"></div></div></div><slot name="icon-left" part="icon-left" class="${cx(
|
|
255
255
|
"flex flex-auto items-center justify-end pointer-events-none",
|
|
256
256
|
slots["icon-only"] && "hidden",
|
|
@@ -278,7 +278,7 @@ var SdButton = class extends SolidElement {
|
|
|
278
278
|
md: "ml-2",
|
|
279
279
|
lg: "ml-2"
|
|
280
280
|
}[this.size]
|
|
281
|
-
)}"></slot>${this.loading ? html`<sd-7-0-0-next-
|
|
281
|
+
)}"></slot>${this.loading ? html`<sd-7-0-0-next-7-loader class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-7-0-0-next-7-loader>` : ""}</${tag}>`;
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
284
|
/**
|
|
@@ -287,13 +287,13 @@ var SdButton = class extends SolidElement {
|
|
|
287
287
|
SdButton.styles = [
|
|
288
288
|
...SolidElement.styles,
|
|
289
289
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
290
|
-
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}.sd-7-0-0-next-
|
|
290
|
+
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}.sd-7-0-0-next-7-button--simple-motion{transition:background-color 150ms ease,color 150ms ease,border-color 150ms ease,box-shadow 150ms ease}::slotted(sd-7-0-0-next-7-badge){pointer-events:none;position:absolute;top:0;right:0;--tw-translate-x:calc(1 / 2 * 100%)!important;--tw-translate-y:calc(calc(1 / 2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}::slotted(sd-7-0-0-next-7-icon),sd-7-0-0-next-7-loader{font-size:calc(var(--tw-varspacing)/ 2)}:host([size=lg]) ::slotted(sd-7-0-0-next-7-icon){font-size:var(--sd-button--size-lg-icon-height,var(--sd-spacing-6))}:host([size=sm]) .sd-7-0-0-next-7-button--size-sm-border-radius{border-radius:var(--sd-button--size-sm-border-radius,var(--sd-button-border-radius))}:host([size=md]) .sd-7-0-0-next-7-button--size-md-border-radius{border-radius:var(--sd-button--size-md-border-radius,var(--sd-button-border-radius))}:host([size=lg]) .sd-7-0-0-next-7-button--size-lg-border-radius{border-radius:var(--sd-button--size-lg-border-radius,var(--sd-button-border-radius))}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}`
|
|
291
291
|
];
|
|
292
292
|
__decorateClass([
|
|
293
293
|
query("a, button")
|
|
294
294
|
], SdButton.prototype, "button", 2);
|
|
295
295
|
__decorateClass([
|
|
296
|
-
queryAssignedElements({ selector: "sd-7-0-0-next-
|
|
296
|
+
queryAssignedElements({ selector: "sd-7-0-0-next-7-icon" })
|
|
297
297
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
298
298
|
__decorateClass([
|
|
299
299
|
state()
|
|
@@ -362,7 +362,7 @@ __decorateClass([
|
|
|
362
362
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
363
363
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
364
364
|
SdButton = __decorateClass([
|
|
365
|
-
customElement("sd-7-0-0-next-
|
|
365
|
+
customElement("sd-7-0-0-next-7-button")
|
|
366
366
|
], SdButton);
|
|
367
367
|
|
|
368
368
|
export {
|
|
@@ -57,13 +57,13 @@ var SdTeaser = class extends SolidElement {
|
|
|
57
57
|
"teaser-has-headline": this.hasSlotController.test("headline")
|
|
58
58
|
};
|
|
59
59
|
return html`<div class="${cx(
|
|
60
|
-
"flex sd-7-0-0-next-
|
|
60
|
+
"flex sd-7-0-0-next-7-teaser-border-radius",
|
|
61
61
|
{
|
|
62
62
|
white: "bg-white",
|
|
63
|
-
"white border-neutral-400": "bg-white border sd-7-0-0-next-
|
|
64
|
-
"neutral-100": "sd-7-0-0-next-
|
|
63
|
+
"white border-neutral-400": "bg-white border sd-7-0-0-next-7-teaser--neutral-400-color-border",
|
|
64
|
+
"neutral-100": "sd-7-0-0-next-7-teaser--neutral-100-color-background",
|
|
65
65
|
primary: "bg-primary text-white",
|
|
66
|
-
"primary-100": "sd-7-0-0-next-
|
|
66
|
+
"primary-100": "sd-7-0-0-next-7-teaser--primary-100-color-background"
|
|
67
67
|
}[this.variant],
|
|
68
68
|
this._orientation === "vertical" && "flex-col",
|
|
69
69
|
this._orientation === "horizontal" && "flex-row gap-8",
|
|
@@ -105,7 +105,7 @@ __decorateClass([
|
|
|
105
105
|
state()
|
|
106
106
|
], SdTeaser.prototype, "_orientation", 2);
|
|
107
107
|
SdTeaser = __decorateClass([
|
|
108
|
-
customElement("sd-7-0-0-next-
|
|
108
|
+
customElement("sd-7-0-0-next-7-teaser")
|
|
109
109
|
], SdTeaser);
|
|
110
110
|
|
|
111
111
|
export {
|
|
@@ -138,7 +138,7 @@ var SdDrawer = class extends SolidElement {
|
|
|
138
138
|
end: "top-0 end-0 bottom-auto start-auto w-[var(--width)] h-full",
|
|
139
139
|
start: "top-0 end-auto bottom-auto start-0 w-[var(--width)] h-full"
|
|
140
140
|
}[this.placement]
|
|
141
|
-
)}" aria-label="${this.label}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:64px"><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 ms-4 absolute top-2 end-2"><sd-7-0-0-next-
|
|
141
|
+
)}" aria-label="${this.label}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:64px"><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 ms-4 absolute top-2 end-2"><sd-7-0-0-next-7-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-7-0-0-next-7-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-7-0-0-next-7-icon></sd-7-0-0-next-7-button></div></header>` : html`<sd-7-0-0-next-7-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}" class="absolute top-2 end-2 z-10"><sd-7-0-0-next-7-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-7-0-0-next-7-icon></sd-7-0-0-next-7-button>`}<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="${cx(this.hasSlotController.test("footer") ? "text-left p-4" : "hidden")}"><slot name="footer"></slot></footer></div></dialog>`;
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
SdDrawer.styles = [
|
|
@@ -174,7 +174,7 @@ __decorateClass([
|
|
|
174
174
|
watch("open", { waitUntilFirstUpdate: true })
|
|
175
175
|
], SdDrawer.prototype, "handleOpenChange", 1);
|
|
176
176
|
SdDrawer = __decorateClass([
|
|
177
|
-
customElement("sd-7-0-0-next-
|
|
177
|
+
customElement("sd-7-0-0-next-7-drawer")
|
|
178
178
|
], SdDrawer);
|
|
179
179
|
setDefaultAnimation("drawer.showStart", {
|
|
180
180
|
keyframes: [
|
|
@@ -1246,7 +1246,7 @@ var SdDatepicker = class extends SolidElement {
|
|
|
1246
1246
|
this.open ? "block shadow-listbox" : "hidden",
|
|
1247
1247
|
((_b = this.currentPlacement) == null ? void 0 : _b.startsWith("bottom")) ? "border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius" : "border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius",
|
|
1248
1248
|
"border-primary"
|
|
1249
|
-
)}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="${cx("nav prev w-6 h-6 hover:cursor-pointer", iconColor)}" part="prev-year-button" @click="${() => this.setYear(-1)}" @keydown="${(ev) => this.handleHeaderKeyDown(ev, "year", -1, false)}" aria-label="${this.localize.term("previousYear")}"><sd-7-0-0-next-
|
|
1249
|
+
)}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="${cx("nav prev w-6 h-6 hover:cursor-pointer", iconColor)}" part="prev-year-button" @click="${() => this.setYear(-1)}" @keydown="${(ev) => this.handleHeaderKeyDown(ev, "year", -1, false)}" aria-label="${this.localize.term("previousYear")}"><sd-7-0-0-next-7-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-7-0-0-next-7-icon></button> <button type="button" tabindex="0" class="${cx("nav prev w-6 h-6 hover:cursor-pointer", iconColor)}" part="prev-month-button" @click="${() => this.setMonth(-1)}" @keydown="${(ev) => this.handleHeaderKeyDown(ev, "month", -1, false)}" aria-label="${this.localize.term("previousMonth")}"><sd-7-0-0-next-7-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-7-0-0-next-7-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base" part="month-label" aria-live="polite">${monthLabel}</div><div class="flex items-center"><button type="button" tabindex="0" class="${cx("nav next w-6 h-6 hover:cursor-pointer", iconColor)}" part="next-month-button" @click="${() => this.setMonth(1)}" @keydown="${(ev) => this.handleHeaderKeyDown(ev, "month", 1, false)}" aria-label="${this.localize.term("nextMonth")}"><sd-7-0-0-next-7-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-7-0-0-next-7-icon></button> <button type="button" tabindex="0" class="${cx("nav next w-6 h-6 hover:cursor-pointer", iconColor)}" part="next-year-button" @click="${() => this.setYear(1)}" @keydown="${(ev) => this.handleHeaderKeyDown(ev, "year", 1, true)}" aria-label="${this.localize.term("nextYear")}"><sd-7-0-0-next-7-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-7-0-0-next-7-icon></button></div></div><sd-7-0-0-next-7-divider></sd-7-0-0-next-7-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${monthLabel}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${() => {
|
|
1250
1250
|
this.tabbingIntoGrid = false;
|
|
1251
1251
|
}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${weekdays.map(
|
|
1252
1252
|
(w, colIndex) => html`<div role="columnheader" aria-colindex="${colIndex + 1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${w}" title="${w}" id="${"col-" + (colIndex + 1)}">${w}</div>`
|
|
@@ -1279,14 +1279,14 @@ var SdDatepicker = class extends SolidElement {
|
|
|
1279
1279
|
return html`<button type="button" part="day" class="${cx(
|
|
1280
1280
|
"cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded w-[36px]",
|
|
1281
1281
|
this.size === "sm" ? "text-sm h-6" : "text-base h-8",
|
|
1282
|
-
isRangeStart || isRangeEnd ? !isFocused ? "outline-none sd-7-0-0-next-
|
|
1283
|
-
!isRangeStart && !isRangeEnd && !inSelectedRange && "hover:sd-7-0-0-next-
|
|
1284
|
-
isSelectedSingle ? "selected outline-none border-primary sd-7-0-0-next-
|
|
1282
|
+
isRangeStart || isRangeEnd ? !isFocused ? "outline-none sd-7-0-0-next-7-datepicker__date-item--selected-color-background sd-7-0-0-next-7-datepicker__date-item--selected-color-text hover:sd-7-0-0-next-7-datepicker__date-item--selected--hover-color-background hover:sd-7-0-0-next-7-datepicker__date-item--selected--hover-color-text" : "outline-none sd-7-0-0-next-7-datepicker__date-item--selected--hover-color-background sd-7-0-0-next-7-datepicker__date-item--selected--hover-color-text" : "hover:sd-7-0-0-next-7-datepicker__date-item--hover--default-color-text",
|
|
1283
|
+
!isRangeStart && !isRangeEnd && !inSelectedRange && "hover:sd-7-0-0-next-7-datepicker__date-item--hover--default-color-background",
|
|
1284
|
+
isSelectedSingle ? "selected outline-none border-primary sd-7-0-0-next-7-datepicker__date-item--selected-color-background sd-7-0-0-next-7-datepicker__date-item--selected-color-text hover:sd-7-0-0-next-7-datepicker__date-item--selected--hover-color-text hover:sd-7-0-0-next-7-datepicker__date-item--selected--hover-color-background" : !inMonth ? this.disabledWeekends && isWeekendDay ? "out-month weekend-day text-neutral-500" : isWeekendDay ? "out-month weekend-day text-neutral-700" : "out-month text-neutral-700 hover:sd-7-0-0-next-7-datepicker__date-item--hover--prev-next-color-text hover:sd-7-0-0-next-7-datepicker__date-item--hover--prev-next-color-background" : this.isInDisabledDates(day) || !this.inMinMax(day) ? "out-month text-neutral-500" : this.disabledWeekends && isWeekendDay ? "weekend-day text-neutral-500" : "in-month sd-7-0-0-next-7-datepicker__date-item--default-color-text",
|
|
1285
1285
|
isRangeStart ? "rounded-l-md rounded-r-none" : "",
|
|
1286
1286
|
isRangeEnd ? "range-end rounded-r-md rounded-l-none" : "",
|
|
1287
|
-
inSelectedRange && !isRangeStart && !isRangeEnd ? "in-range selected sd-7-0-0-next-
|
|
1287
|
+
inSelectedRange && !isRangeStart && !isRangeEnd ? "in-range selected sd-7-0-0-next-7-datepicker__date-item--range-color-background rounded-none hover:sd-7-0-0-next-7-datepicker__date-item--selected--hover-color-background hover:sd-7-0-0-next-7-datepicker__date-item--selected--hover-color-text" : "",
|
|
1288
1288
|
!inSelectedRange && inPreviewRange && !isRangeStart && !isRangeEnd ? "in-preview-range bg-primary-100 text-primary-500 rounded-none" : "",
|
|
1289
|
-
isToday && !isSelectedSingle && !isRangeStart && !isRangeEnd && isFocused ? "today border-[1px] border-primary sd-7-0-0-next-
|
|
1289
|
+
isToday && !isSelectedSingle && !isRangeStart && !isRangeEnd && isFocused ? "today border-[1px] border-primary sd-7-0-0-next-7-datepicker__date-item--current-font-weight" : "",
|
|
1290
1290
|
disabled ? "disabled cursor-not-allowed hover:bg-transparent" : "cursor-pointer",
|
|
1291
1291
|
isFocused && !isToday ? "focused outline outline-2 outline-primary" : ""
|
|
1292
1292
|
)}" role="gridcell" aria-colindex="${colIndex + 1}" aria-labelledby="${"col-" + (colIndex + 1)}" .tabIndex="${tabIndex}" ?disabled="${disabled || this.disabled || this.readonly}" aria-disabled="${disabled || this.visuallyDisabled || this.disabled || this.readonly ? "true" : "false"}" aria-selected="${isSelectedSingle || inSelectedRange || isRangeStart || isRangeEnd ? "true" : "false"}" aria-current="${isToday ? "date" : nothing}" aria-label="${label}" aria-roledescription="${roleDesc != null ? roleDesc : nothing}" @focus="${() => this.focusedDate = DateUtils.startOfDayLocal(day)}" @mouseenter="${() => this.onDayMouseEnter(day)}" @keydown="${this.onKeyDown}" @click="${() => {
|
|
@@ -1348,7 +1348,7 @@ var SdDatepicker = class extends SolidElement {
|
|
|
1348
1348
|
"absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",
|
|
1349
1349
|
borderColor,
|
|
1350
1350
|
this.open && (((_a = this.currentPlacement) == null ? void 0 : _a.startsWith("bottom")) ? this.open && this.alignment === "left" ? "rounded-bl-none" : "rounded-br-none" : this.open && this.alignment === "left" ? "rounded-tl-none" : "rounded-tr-none")
|
|
1351
|
-
)}"></div><sd-7-0-0-next-
|
|
1351
|
+
)}"></div><sd-7-0-0-next-7-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
1352
1352
|
"inline-flex relative w-full",
|
|
1353
1353
|
((_b = this.currentPlacement) == null ? void 0 : _b.startsWith("bottom")) ? "origin-top" : "origin-bottom"
|
|
1354
1354
|
)}" placement="${this.alignment === "left" ? `${this.placement}-start` : `${this.placement}-end`}" flip shift auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${cx(
|
|
@@ -1364,7 +1364,7 @@ var SdDatepicker = class extends SolidElement {
|
|
|
1364
1364
|
{ sm: "h-8", md: "h-10", lg: "h-12" }[this.size],
|
|
1365
1365
|
textSize,
|
|
1366
1366
|
this.floatingLabel && "mt-4"
|
|
1367
|
-
)}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel || isFloatingLabelActive ? this.placeholder || this.localize.term(this.range ? "dateRangePlaceholder" : "datePlaceholder") : ""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly || this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle ? html`<sd-7-0-0-next-
|
|
1367
|
+
)}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel || isFloatingLabelActive ? this.placeholder || this.localize.term(this.range ? "dateRangePlaceholder" : "datePlaceholder") : ""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly || this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle ? html`<sd-7-0-0-next-7-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-7-0-0-next-7-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-7-0-0-next-7-icon class="${cx("text-success shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-7-0-0-next-7-icon>` : ""}<sd-7-0-0-next-7-icon class="${cx(iconColor, iconMarginLeft, iconSize, "hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-7-0-0-next-7-icon></div>${this.renderCalendar()}</sd-7-0-0-next-7-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx(
|
|
1368
1368
|
"text-sm mt-1",
|
|
1369
1369
|
hasHelpText ? "block" : "hidden",
|
|
1370
1370
|
this.visuallyDisabled || this.disabled ? "text-neutral-500" : "text-neutral-700"
|
|
@@ -1494,7 +1494,7 @@ __decorateClass([
|
|
|
1494
1494
|
state()
|
|
1495
1495
|
], SdDatepicker.prototype, "inputValue", 2);
|
|
1496
1496
|
__decorateClass([
|
|
1497
|
-
query("sd-7-0-0-next-
|
|
1497
|
+
query("sd-7-0-0-next-7-popup")
|
|
1498
1498
|
], SdDatepicker.prototype, "popup", 2);
|
|
1499
1499
|
__decorateClass([
|
|
1500
1500
|
query("#invalid-message")
|
|
@@ -1528,7 +1528,7 @@ __decorateClass([
|
|
|
1528
1528
|
watch(["size", "floatingLabel"])
|
|
1529
1529
|
], SdDatepicker.prototype, "handleSizeChange", 1);
|
|
1530
1530
|
SdDatepicker = __decorateClass([
|
|
1531
|
-
customElement("sd-7-0-0-next-
|
|
1531
|
+
customElement("sd-7-0-0-next-7-datepicker")
|
|
1532
1532
|
], SdDatepicker);
|
|
1533
1533
|
|
|
1534
1534
|
export {
|