@solid-design-system/components 6.16.4 → 6.16.5
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.I3AKT6BV.js +2 -0
- package/cdn/chunks/chunk.WWGARXPI.js +1 -0
- package/cdn/components/datepicker/datepicker.js +1 -1
- package/cdn/custom-elements.json +187 -187
- package/cdn/solid-components.bundle.js +22 -22
- package/cdn/solid-components.iife.js +21 -21
- package/cdn/solid-components.js +1 -1
- package/cdn/utilities/date.js +1 -1
- package/cdn/vscode.html-custom-data.json +27 -27
- package/cdn/web-types.json +50 -50
- package/cdn-versioned/chunks/chunk.2B2B5P3U.js +2 -2
- package/cdn-versioned/chunks/chunk.3JB5EY7E.js +2 -2
- package/cdn-versioned/chunks/chunk.3MGPNQP3.js +2 -2
- package/cdn-versioned/chunks/chunk.3S7LCENC.js +2 -2
- package/cdn-versioned/chunks/chunk.4BTXQAGS.js +2 -2
- package/cdn-versioned/chunks/chunk.4EDRKPMV.js +1 -1
- package/cdn-versioned/chunks/chunk.52TRFRJK.js +2 -2
- package/cdn-versioned/chunks/chunk.5BES77F3.js +2 -2
- package/cdn-versioned/chunks/chunk.6FABT2P2.js +1 -1
- package/cdn-versioned/chunks/chunk.6G62L252.js +2 -2
- package/cdn-versioned/chunks/chunk.6KFFDNWZ.js +2 -2
- package/cdn-versioned/chunks/chunk.7X7C3TVK.js +5 -5
- package/cdn-versioned/chunks/chunk.7YCGT7U6.js +2 -2
- package/cdn-versioned/chunks/chunk.A2RFNZUI.js +2 -2
- package/cdn-versioned/chunks/chunk.AMY757PV.js +2 -2
- package/cdn-versioned/chunks/chunk.AWT6CEDB.js +2 -2
- package/cdn-versioned/chunks/chunk.BMADIO4C.js +1 -1
- package/cdn-versioned/chunks/chunk.BURXWAXN.js +2 -2
- package/cdn-versioned/chunks/chunk.BZ4RCXT2.js +2 -2
- package/cdn-versioned/chunks/chunk.BZLEZINT.js +2 -2
- package/cdn-versioned/chunks/chunk.CCNRQLG6.js +2 -2
- package/cdn-versioned/chunks/chunk.CSVJ5WK2.js +2 -2
- package/cdn-versioned/chunks/chunk.CX5IPEVT.js +2 -2
- package/cdn-versioned/chunks/chunk.DJZKZO3Y.js +2 -2
- package/cdn-versioned/chunks/chunk.E4XIKDUB.js +2 -2
- package/cdn-versioned/chunks/chunk.ELZMOANU.js +2 -2
- package/cdn-versioned/chunks/chunk.EP63MBIC.js +1 -1
- package/cdn-versioned/chunks/chunk.EXWRCLBQ.js +2 -2
- package/cdn-versioned/chunks/chunk.FBXBQWU2.js +1 -1
- package/cdn-versioned/chunks/chunk.FEAXOG7O.js +2 -2
- package/cdn-versioned/chunks/chunk.FT2B3D2H.js +3 -3
- package/cdn-versioned/chunks/chunk.GLO2H56S.js +2 -2
- package/cdn-versioned/chunks/chunk.GQTD57NE.js +2 -2
- package/cdn-versioned/chunks/chunk.GS5LOZLS.js +3 -3
- package/cdn-versioned/chunks/chunk.HLHMPYHS.js +2 -2
- package/cdn-versioned/chunks/chunk.I3AKT6BV.js +2 -0
- package/cdn-versioned/chunks/chunk.IFICRO7C.js +1 -1
- package/cdn-versioned/chunks/chunk.JHFM7KUH.js +2 -2
- package/cdn-versioned/chunks/chunk.JYLCWE5C.js +2 -2
- package/cdn-versioned/chunks/chunk.K6GLS6QL.js +1 -1
- package/cdn-versioned/chunks/chunk.LMXWTQJ5.js +2 -2
- package/cdn-versioned/chunks/chunk.LQ6VYVB5.js +2 -2
- package/cdn-versioned/chunks/chunk.ODC5ODPF.js +2 -2
- package/cdn-versioned/chunks/chunk.OFLN42UZ.js +2 -2
- package/cdn-versioned/chunks/chunk.OXXPH6YP.js +1 -1
- package/cdn-versioned/chunks/chunk.QAY6EJHY.js +2 -2
- package/cdn-versioned/chunks/chunk.R2Q62L3N.js +1 -1
- package/cdn-versioned/chunks/chunk.RAP66B6O.js +1 -1
- package/cdn-versioned/chunks/chunk.RZLPEVBG.js +2 -2
- package/cdn-versioned/chunks/chunk.VC6JNTW2.js +2 -2
- package/cdn-versioned/chunks/chunk.VT4WT4Y5.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WPSLP7SF.js +1 -1
- package/cdn-versioned/chunks/chunk.WR5GB2RK.js +2 -2
- package/cdn-versioned/chunks/chunk.WWGARXPI.js +1 -0
- package/cdn-versioned/chunks/chunk.X4UWQNTP.js +5 -5
- package/cdn-versioned/chunks/chunk.X6WPUO3U.js +2 -2
- package/cdn-versioned/chunks/chunk.XDDAXBEN.js +2 -2
- package/cdn-versioned/chunks/chunk.YA5ZEOKP.js +2 -2
- package/cdn-versioned/chunks/chunk.YPTZDABK.js +1 -1
- package/cdn-versioned/chunks/chunk.YY4JMXTS.js +2 -2
- package/cdn-versioned/chunks/chunk.ZBE6FUBE.js +2 -2
- package/cdn-versioned/chunks/chunk.ZFJ3T7TZ.js +9 -9
- package/cdn-versioned/chunks/chunk.ZLJ4GRUR.js +2 -2
- package/cdn-versioned/chunks/chunk.ZRHL55WX.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/datepicker/datepicker.js +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/skeleton/skeleton.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/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 +427 -427
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +83 -83
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +83 -83
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/utilities/date.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +131 -131
- package/cdn-versioned/web-types.json +203 -203
- package/dist/chunks/{chunk.SMPFJ52B.js → chunk.A4LR62QO.js} +8 -16
- package/dist/chunks/{chunk.QF4M6XJ6.js → chunk.XDGNL4X6.js} +17 -3
- package/dist/components/datepicker/datepicker.js +2 -2
- package/dist/custom-elements.json +187 -187
- package/dist/solid-components.js +2 -2
- package/dist/utilities/date.js +1 -1
- package/dist/vscode.html-custom-data.json +27 -27
- package/dist/web-types.json +50 -50
- package/dist-versioned/chunks/chunk.27CORLGD.js +2 -2
- package/dist-versioned/chunks/chunk.2EDPY2A5.js +2 -2
- package/dist-versioned/chunks/chunk.36OESV3O.js +1 -1
- package/dist-versioned/chunks/chunk.3PROMK3G.js +10 -10
- package/dist-versioned/chunks/chunk.4FQGHIRS.js +3 -3
- package/dist-versioned/chunks/chunk.4OJXQ3S3.js +4 -4
- package/dist-versioned/chunks/chunk.4WJBOMWG.js +11 -11
- package/dist-versioned/chunks/chunk.4YGFM4I2.js +6 -6
- package/dist-versioned/chunks/chunk.5DLSMYYF.js +5 -5
- package/dist-versioned/chunks/chunk.6GDF7RP6.js +5 -5
- package/dist-versioned/chunks/chunk.6JXHY72O.js +3 -3
- package/dist-versioned/chunks/chunk.6SZCCE7T.js +2 -2
- package/dist-versioned/chunks/chunk.6WM4R2DA.js +3 -3
- package/dist-versioned/chunks/chunk.7LLWTMC3.js +14 -14
- package/dist-versioned/chunks/chunk.7OODH6S5.js +5 -5
- package/dist-versioned/chunks/chunk.7YOG7JGW.js +4 -4
- package/dist-versioned/chunks/{chunk.SMPFJ52B.js → chunk.A4LR62QO.js} +8 -16
- package/dist-versioned/chunks/chunk.AJJI7TJL.js +2 -2
- package/dist-versioned/chunks/chunk.ANNKBF6X.js +32 -32
- package/dist-versioned/chunks/chunk.AQU3K3QW.js +2 -2
- package/dist-versioned/chunks/chunk.BDGTWJIT.js +12 -12
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.CDI4YMFV.js +4 -4
- package/dist-versioned/chunks/chunk.E2USZ7GU.js +6 -6
- package/dist-versioned/chunks/chunk.EGVMKWID.js +1 -1
- package/dist-versioned/chunks/chunk.ELS2J6VM.js +10 -10
- package/dist-versioned/chunks/chunk.FJM4XRBD.js +2 -2
- package/dist-versioned/chunks/chunk.FQAUOX63.js +1 -1
- package/dist-versioned/chunks/chunk.FRVVZRCH.js +1 -1
- package/dist-versioned/chunks/chunk.FV63VR7F.js +13 -13
- package/dist-versioned/chunks/chunk.FXZL5TSR.js +2 -2
- package/dist-versioned/chunks/chunk.HMOYAY72.js +5 -5
- package/dist-versioned/chunks/chunk.IRPULK4T.js +9 -9
- package/dist-versioned/chunks/chunk.IXAGOL3L.js +6 -6
- package/dist-versioned/chunks/chunk.IXY6JRMU.js +3 -3
- package/dist-versioned/chunks/chunk.J2WMB4UM.js +11 -11
- package/dist-versioned/chunks/chunk.JCFYB72C.js +3 -3
- package/dist-versioned/chunks/chunk.JT57FH4I.js +25 -25
- package/dist-versioned/chunks/chunk.JYR67QON.js +2 -2
- package/dist-versioned/chunks/chunk.K7OGNZLO.js +1 -1
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KJN55623.js +11 -11
- package/dist-versioned/chunks/chunk.KLN5272I.js +5 -5
- package/dist-versioned/chunks/chunk.MBVWPMPN.js +4 -4
- package/dist-versioned/chunks/chunk.MMI44BVI.js +2 -2
- package/dist-versioned/chunks/chunk.MQG727Y4.js +4 -4
- package/dist-versioned/chunks/chunk.NAD637BO.js +5 -5
- package/dist-versioned/chunks/chunk.OQ5QEVJF.js +6 -6
- package/dist-versioned/chunks/chunk.P6YK6F7T.js +3 -3
- package/dist-versioned/chunks/chunk.PJ4LG3IZ.js +10 -10
- package/dist-versioned/chunks/chunk.PO2OMSAQ.js +8 -8
- package/dist-versioned/chunks/chunk.RL7BJYL6.js +1 -1
- package/dist-versioned/chunks/chunk.RXD64SUC.js +4 -4
- package/dist-versioned/chunks/chunk.S3AIPHMB.js +25 -25
- package/dist-versioned/chunks/chunk.UE4MIFO2.js +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V3RBONZ7.js +2 -2
- package/dist-versioned/chunks/chunk.WV4VZLSM.js +7 -7
- package/dist-versioned/chunks/chunk.X7XDUKGF.js +1 -1
- package/dist-versioned/chunks/{chunk.QF4M6XJ6.js → chunk.XDGNL4X6.js} +27 -13
- package/dist-versioned/chunks/chunk.XNTGIC2L.js +1 -1
- package/dist-versioned/chunks/chunk.Y226ELYU.js +5 -5
- package/dist-versioned/chunks/chunk.YC3R5M35.js +5 -5
- package/dist-versioned/chunks/chunk.YGCCHEFS.js +6 -6
- package/dist-versioned/chunks/chunk.ZN4E3BW3.js +5 -5
- 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/datepicker/datepicker.js +2 -2
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/skeleton/skeleton.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/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 +427 -427
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/utilities/date.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +131 -131
- package/dist-versioned/web-types.json +203 -203
- package/package.json +1 -1
- package/cdn/chunks/chunk.3MADQ6HK.js +0 -1
- package/cdn/chunks/chunk.HHEQMSA3.js +0 -2
- package/cdn-versioned/chunks/chunk.3MADQ6HK.js +0 -1
- package/cdn-versioned/chunks/chunk.HHEQMSA3.js +0 -2
|
@@ -37,8 +37,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
37
37
|
}
|
|
38
38
|
connectedCallback() {
|
|
39
39
|
const whenAllDefined = Promise.all([
|
|
40
|
-
customElements.whenDefined("sd-6-16-
|
|
41
|
-
customElements.whenDefined("sd-6-16-
|
|
40
|
+
customElements.whenDefined("sd-6-16-5-tab"),
|
|
41
|
+
customElements.whenDefined("sd-6-16-5-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-6-16-
|
|
90
|
-
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-6-16-
|
|
89
|
+
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-6-16-5-tab" ? el : el.querySelector("sd-6-16-5-tab")).filter((el) => {
|
|
90
|
+
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-6-16-5-tab" : el.tagName.toLowerCase() === "sd-6-16-5-tab" && !el.disabled;
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
getAllPanels() {
|
|
94
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-16-
|
|
94
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-16-5-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-6-16-
|
|
102
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-16-
|
|
101
|
+
const tab = target.closest("sd-6-16-5-tab");
|
|
102
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-16-5-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-6-16-
|
|
113
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-16-
|
|
112
|
+
const tab = target.closest("sd-6-16-5-tab");
|
|
113
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-16-5-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-6-16-
|
|
140
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-6-16-5-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-6-16-
|
|
261
|
+
)}" @click="${this.handleScrollToStart}"><sd-6-16-5-icon library="_internal" name="${isRtl ? "chevron-up" : "chevron-down"}" label="previous" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-6-16-5-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-6-16-
|
|
264
|
+
)}" @click="${this.handleScrollToEnd}"><sd-6-16-5-icon library="_internal" name="${isRtl ? "chevron-down" : "chevron-up"}" label="next" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-6-16-5-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.2.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:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}::slotted(sd-6-16-
|
|
270
|
+
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}::slotted(sd-6-16-5-tab-panel){--padding:1rem 0}::slotted(sd-6-16-5-tab-panel:focus-visible){outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(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-6-16-
|
|
303
|
+
customElement("sd-6-16-5-tab-group")
|
|
304
304
|
], SdTabGroup);
|
|
305
305
|
|
|
306
306
|
export {
|
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-6-16-
|
|
29
|
+
return [...this.querySelectorAll("sd-6-16-5-checkbox")];
|
|
30
30
|
}
|
|
31
31
|
async syncCheckboxElements() {
|
|
32
32
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -39,10 +39,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
syncCheckboxes() {
|
|
42
|
-
if (customElements.get("sd-6-16-
|
|
42
|
+
if (customElements.get("sd-6-16-5-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-6-16-
|
|
45
|
+
customElements.whenDefined("sd-6-16-5-checkbox").then(() => this.syncCheckboxes());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
handleSizeChange() {
|
|
@@ -80,7 +80,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
80
80
|
SdCheckboxGroup.styles = [
|
|
81
81
|
...SolidElement.styles,
|
|
82
82
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
83
|
-
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-16-
|
|
83
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-16-5-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-16-5-checkbox:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-6-16-5-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-16-5-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-16-5-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-16-5-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}`
|
|
84
84
|
];
|
|
85
85
|
__decorateClass([
|
|
86
86
|
property({ type: String, reflect: true })
|
|
@@ -101,7 +101,7 @@ __decorateClass([
|
|
|
101
101
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
102
102
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
103
103
|
SdCheckboxGroup = __decorateClass([
|
|
104
|
-
customElement("sd-6-16-
|
|
104
|
+
customElement("sd-6-16-5-checkbox-group")
|
|
105
105
|
], SdCheckboxGroup);
|
|
106
106
|
|
|
107
107
|
export {
|
|
@@ -102,18 +102,18 @@ var SdMenuItem = class extends SolidElement {
|
|
|
102
102
|
};
|
|
103
103
|
return html`<div id="anchor" part="base" class="${cx(
|
|
104
104
|
"relative flex items-stretch whitespace-nowrap py-3 px-4 no-wrap !navigable-border-radius",
|
|
105
|
-
this.disabled ? "outline-none cursor-not-allowed sd-6-16-
|
|
105
|
+
this.disabled ? "outline-none cursor-not-allowed sd-6-16-5-menu--disabled-color-text hover:bg-transparent" : "cursor-pointer sd-6-16-5-menu-color-text hover:bg-neutral-200",
|
|
106
106
|
this.isSubmenu() && isSubmenuExpanded && "submenu-expanded"
|
|
107
107
|
)}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${isSubmenuExpanded ? true : false}">${this.type === "checkbox" ? html`<span part="checked-icon" class="${cx(
|
|
108
108
|
"flex items-center justify-center grow-0 shrink-0 basis-auto",
|
|
109
109
|
this.checked ? "visible" : "invisible"
|
|
110
|
-
)}"><sd-6-16-
|
|
110
|
+
)}"><sd-6-16-5-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-6-16-5-icon></span>` : ""} ${slots.iconIndent ? html`<slot name="icon-indent" part="icon-indent" class="flex items-center grow-0 shrink-0 basis-auto mr-2"></slot>` : ""}<slot part="label" class="inline-flex grow shrink basis-auto text-ellipsis overflow-hidden" @slotchange="${this.handleDefaultSlotChange}"></slot>${this.chevron || this.isSubmenu() ? html`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-6-16-5-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-6-16-5-icon></span>` : ""} ${this.submenuController.renderSubmenu()}</div>`;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
SdMenuItem.styles = [
|
|
114
114
|
...SolidElement.styles,
|
|
115
115
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
116
|
-
:host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-6-16-
|
|
116
|
+
:host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-6-16-5-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}[part=checked-icon]{margin-right:var(--sd-spacing-3)}.submenu-expanded::after{position:fixed;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);bottom:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);z-index:calc(var(z-dropdown) - 1);--tw-content:'';content:var(--tw-content);clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0),var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0),var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0))}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{background-color:rgba(var(--sd-color-background-neutral-200));--tw-outline-style:none;outline-style:none}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary));outline-offset:-2px}:host(.menu-item-focus) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary));outline-offset:-2px}:host(:hover) [part=base]{--tw-outline-style:none;outline-style:none}//TODO clean up sd-6-16-5-menu-color-icon variable replacing with sd-6-16-5-menu-item-color-icon-fill (breakingchange) :host [part=icon-indent],:host [part=checked-icon],:host [part=submenu-icon]{color:rgba(var(--sd-menu-color-icon,var(--sd-menu-item-color-icon-fill)))}//TODO clean up sd-6-16-5-menu--disabled-color-icon variable replacing with sd-6-16-5-menu-item--disabled-color-icon-fill (breakingchange) :host([aria-disabled=true]) [part=icon-indent]{color:rgba(var(--sd-menu--disabled-color-icon,var(--sd-menu-item--disabled-color-icon-fill)))}sd-6-16-5-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);background-color:rgba(var(--sd-color-background-white));margin-left:var(--submenu-offset)}::slotted(sd-6-16-5-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}.sd-6-16-5-menu-color-text{color:rgba(var(--sd-menu-color-text,var(--sd-menu-item-color-text)))}.sd-6-16-5-menu--disabled-color-text{color:rgba(var(--sd-menu--disabled-color-text,var(--sd-menu-item--disabled-color-text)))}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`
|
|
117
117
|
];
|
|
118
118
|
__decorateClass([
|
|
119
119
|
query("slot:not([name])")
|
|
@@ -146,7 +146,7 @@ __decorateClass([
|
|
|
146
146
|
watch("type")
|
|
147
147
|
], SdMenuItem.prototype, "handleTypeChange", 1);
|
|
148
148
|
SdMenuItem = __decorateClass([
|
|
149
|
-
customElement("sd-6-16-
|
|
149
|
+
customElement("sd-6-16-5-menu-item")
|
|
150
150
|
], SdMenuItem);
|
|
151
151
|
|
|
152
152
|
export {
|
|
@@ -22,22 +22,14 @@ var DateUtils = {
|
|
|
22
22
|
},
|
|
23
23
|
parseLocalISO: (iso) => {
|
|
24
24
|
if (!iso) return null;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} else if (/^\d{4}\.\d{2}\.\d{2}$/.test(iso)) {
|
|
34
|
-
const parts = iso.split(".");
|
|
35
|
-
y = Number(parts[0]);
|
|
36
|
-
m = Number(parts[1]) - 1;
|
|
37
|
-
d = Number(parts[2]);
|
|
38
|
-
} else {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
25
|
+
const trimmed = iso.trim();
|
|
26
|
+
if (!trimmed) return null;
|
|
27
|
+
const normalized = trimmed.replace(/[./]/g, "-");
|
|
28
|
+
const match = normalized.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
29
|
+
if (!match) return null;
|
|
30
|
+
const y = Number(match[1]);
|
|
31
|
+
const m = Number(match[2]) - 1;
|
|
32
|
+
const d = Number(match[3]);
|
|
41
33
|
const date = new Date(y, m, d);
|
|
42
34
|
return Number.isNaN(date.getTime()) ? null : date;
|
|
43
35
|
},
|
|
@@ -94,7 +94,7 @@ var SdExpandable = class extends SolidElement {
|
|
|
94
94
|
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${cx(
|
|
95
95
|
"flex items-center mr-2 transition-transform duration-medium ease-in-out",
|
|
96
96
|
this.open && "rotate-180"
|
|
97
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-6-16-
|
|
97
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-6-16-5-icon library="_internal" name="chevron-down" class="text-xl"></sd-6-16-5-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-6-16-5-icon library="_internal" name="chevron-down" class="text-xl"></sd-6-16-5-icon></slot></span><slot name="toggle-closed" class="${cx(this.open && "hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${cx(!this.open && "hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${ifDefined(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`;
|
|
98
98
|
}
|
|
99
99
|
firstUpdated() {
|
|
100
100
|
this.cloneContentToLightDOM();
|
|
@@ -139,7 +139,7 @@ __decorateClass([
|
|
|
139
139
|
watch("open", { waitUntilFirstUpdate: true })
|
|
140
140
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
141
141
|
SdExpandable = __decorateClass([
|
|
142
|
-
customElement("sd-6-16-
|
|
142
|
+
customElement("sd-6-16-5-expandable")
|
|
143
143
|
], SdExpandable);
|
|
144
144
|
setDefaultAnimation("expandable.show", {
|
|
145
145
|
keyframes: [{ height: "var(--component-expandable-max-block-size, 90px)" }, { height: "auto" }],
|
|
@@ -159,62 +159,62 @@ var SdButton = class extends SolidElement {
|
|
|
159
159
|
(this.disabled || this.visuallyDisabled) && "cursor-not-allowed",
|
|
160
160
|
{
|
|
161
161
|
/* sizes, fonts */
|
|
162
|
-
sm: `varspacing-8 min-h-8 sd-6-16-
|
|
163
|
-
md: `varspacing-10 sd-6-16-
|
|
164
|
-
lg: `varspacing-12 sd-6-16-
|
|
162
|
+
sm: `varspacing-8 min-h-8 sd-6-16-5-button--size-sm-font-size sd-6-16-5-button-font-weight sd-6-16-5-button--secondary--size-sm-padding-block sd-6-16-5-button--size-sm-border-radius`,
|
|
163
|
+
md: `varspacing-10 sd-6-16-5-button--size-md-height sd-6-16-5-button--size-md-font-size sd-6-16-5-button--secondary--size-md-padding-block sd-6-16-5-button-font-weight sd-6-16-5-button--size-md-border-radius`,
|
|
164
|
+
lg: `varspacing-12 sd-6-16-5-button--size-lg-height sd-6-16-5-button--size-lg-font-size sd-6-16-5-button--secondary--size-lg-padding-block sd-6-16-5-button-font-weight sd-6-16-5-button--size-lg-border-radius`
|
|
165
165
|
}[this.size],
|
|
166
166
|
!slots["icon-only"] && {
|
|
167
167
|
/* sizes, fonts */
|
|
168
|
-
sm: `${hasBorder ? "sd-6-16-
|
|
169
|
-
md: `${hasBorder ? "sd-6-16-
|
|
170
|
-
lg: `${hasBorder ? "sd-6-16-
|
|
168
|
+
sm: `${hasBorder ? "sd-6-16-5-button--secondary-padding-inline" : "sd-6-16-5-button--size-sm-padding-block sd-6-16-5-button-padding-inline"}`,
|
|
169
|
+
md: `${hasBorder ? "sd-6-16-5-button--secondary-padding-inline" : "sd-6-16-5-button--size-md-padding-block sd-6-16-5-button-padding-inline"}`,
|
|
170
|
+
lg: `${hasBorder ? "sd-6-16-5-button--secondary-padding-inline" : "sd-6-16-5-button--size-lg-padding-block sd-6-16-5-button-padding-inline"}`
|
|
171
171
|
}[this.size],
|
|
172
172
|
/**
|
|
173
173
|
* Anatomy
|
|
174
174
|
* */
|
|
175
175
|
slots["icon-only"] && {
|
|
176
176
|
sm: "px-1 aspect-square",
|
|
177
|
-
md: "sd-6-16-
|
|
177
|
+
md: "sd-6-16-5-button--size-md--icon-only-padding-inline aspect-square",
|
|
178
178
|
lg: "px-[12px] aspect-square"
|
|
179
179
|
}[this.size],
|
|
180
180
|
{
|
|
181
181
|
/* variants */
|
|
182
|
-
primary: !this.inverted ? `${this.visuallyDisabled ? "bg-neutral-500 border-neutral-500 hover:bg-neutral-500 text-white" : "sd-6-16-
|
|
183
|
-
disabled:bg-neutral-500 disabled:text-white` : `${this.visuallyDisabled ? "bg-neutral-500 text-white border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "sd-6-16-
|
|
184
|
-
disabled:sd-6-16-
|
|
185
|
-
secondary: !this.inverted ? `border sd-6-16-
|
|
186
|
-
disabled:sd-6-16-
|
|
187
|
-
disabled:sd-6-16-
|
|
188
|
-
tertiary: !this.inverted ? `border-transparent ${this.visuallyDisabled ? "sd-6-16-
|
|
189
|
-
disabled:sd-6-16-
|
|
190
|
-
disabled:sd-6-16-
|
|
182
|
+
primary: !this.inverted ? `${this.visuallyDisabled ? "bg-neutral-500 border-neutral-500 hover:bg-neutral-500 text-white" : "sd-6-16-5-button--primary--default-color-background border-transparent sd-6-16-5-button--primary--default-color-text hover:sd-6-16-5-button--primary--hover-color-text active:sd-6-16-5-button--primary--active-color-text"}
|
|
183
|
+
disabled:bg-neutral-500 disabled:text-white` : `${this.visuallyDisabled ? "bg-neutral-500 text-white border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "sd-6-16-5-button--primary--inverted--default-color-text sd-6-16-5-button--primary--inverted--default-color-background border-white hover:sd-6-16-5-button--primary--inverted--hover-color-text active:sd-6-16-5-button--primary--inverted--active-color-text active:sd-6-16-5-button--primary--inverted--active-color-background"}
|
|
184
|
+
disabled:sd-6-16-5-button--inverted--disabled-color-background disabled:text-white`,
|
|
185
|
+
secondary: !this.inverted ? `border sd-6-16-5-button-border-width ${this.visuallyDisabled ? "sd-6-16-5-button--secondary--disabled-color-text border-neutral-500 hover:text-neutral-500 hover:border-neutral-500 active:text-neutral-500 active:border-neutral-500" : "sd-6-16-5-button--secondary--default-color-text border-primary hover:text-primary-500 hover:border-primary-500 active:sd-6-16-5-button--secondary--active-color-text active:border-primary-800"}
|
|
186
|
+
disabled:sd-6-16-5-button--secondary--disabled-color-text disabled:border-neutral-500` : `border sd-6-16-5-button-border-width ${this.visuallyDisabled ? "text-neutral-600 border-neutral-600 hover:text-neutral-600 hover:border-neutral-600 active:text-neutral-600 active:border-neutral-600" : "sd-6-16-5-button--secondary--inverted-color-text sd-6-16-5-button--secondary--inverted-color-border hover:sd-6-16-5-button--secondary--inverted-color-border hover:sd-6-16-5-button--secondary--inverted--hover-color-text hover:sd-6-16-5-button--secondary--inverted--hover-color-background active:sd-6-16-5-button--secondary--inverted--active-color-text active:border-primary-200 active:sd-6-16-5-button--secondary--inverted--active-color-background"}
|
|
187
|
+
disabled:sd-6-16-5-button--inverted--disabled-color-border disabled:sd-6-16-5-button--inverted--disabled-color-text`,
|
|
188
|
+
tertiary: !this.inverted ? `border-transparent ${this.visuallyDisabled ? "sd-6-16-5-button--tertiary--disabled-color-text hover:text-neutral-500 active:text-neutral-500" : "sd-6-16-5-button--tertiary--default-color-text hover:text-primary-500 active:sd-6-16-5-button--tertiary--active-color-text"}
|
|
189
|
+
disabled:sd-6-16-5-button--tertiary--disabled-color-text` : `border-transparent ${this.visuallyDisabled ? "text-neutral-600 hover:text-neutral-600 active:text-neutral-600" : "sd-6-16-5-button--tertiary--inverted-color-text hover:sd-6-16-5-button--tertiary--inverted--hover-color-text hover:sd-6-16-5-button--tertiary--inverted--hover-color-background active:sd-6-16-5-button--tertiary--inverted--active-color-background active:sd-6-16-5-button--tertiary--inverted--active-color-text"}
|
|
190
|
+
disabled:sd-6-16-5-button--inverted--disabled-color-text`,
|
|
191
191
|
cta: `${this.visuallyDisabled ? "bg-neutral-500 border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "bg-accent border-transparent hover:bg-accent-500"}
|
|
192
|
-
${!this.inverted ? "text-white bg-accent disabled:bg-neutral-500 hover:bg-accent-500 disabled:border-neutral-500 disabled:text-white" : "sd-6-16-
|
|
192
|
+
${!this.inverted ? "text-white bg-accent disabled:bg-neutral-500 hover:bg-accent-500 disabled:border-neutral-500 disabled:text-white" : "sd-6-16-5-button--cta--inverted--default-color-background sd-6-16-5-button--cta--inverted--default-color-text hover:sd-6-16-5-button--cta--inverted--hover-color-text active:sd-6-16-5-button--cta--inverted--active-color-text disabled:sd-6-16-5-button--inverted--disabled-color-background disabled:text-white"}`
|
|
193
193
|
}[this.variant]
|
|
194
194
|
)}" ?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(
|
|
195
195
|
"absolute inset-0 -z-10 overflow-hidden pointer-events-none ",
|
|
196
196
|
(this.disabled || this.visuallyDisabled) && "hidden",
|
|
197
197
|
{
|
|
198
198
|
/* sizes, fonts */
|
|
199
|
-
sm: `sd-6-16-
|
|
200
|
-
md: `sd-6-16-
|
|
201
|
-
lg: `sd-6-16-
|
|
199
|
+
sm: `sd-6-16-5-button-border-radius`,
|
|
200
|
+
md: `sd-6-16-5-button-border-radius`,
|
|
201
|
+
lg: `sd-6-16-5-button-border-radius`
|
|
202
202
|
}[this.size]
|
|
203
203
|
)}"><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(
|
|
204
204
|
"absolute right-0 min-w-full min-h-full aspect-square skew-y-[-11deg] mt-[11%]",
|
|
205
205
|
{
|
|
206
|
-
primary: !this.inverted ? "sd-6-16-
|
|
207
|
-
secondary: !this.inverted ? "sd-6-16-
|
|
208
|
-
tertiary: !this.inverted ? "sd-6-16-
|
|
209
|
-
cta: !this.inverted ? "bg-accent-500 group-active:bg-accent-700" : "sd-6-16-
|
|
206
|
+
primary: !this.inverted ? "sd-6-16-5-button--primary--hover-color-background group-active:bg-primary-800" : "sd-6-16-5-button--primary--inverted--hover-color-background group-active:sd-6-16-5-button--primary--inverted--active-color-background",
|
|
207
|
+
secondary: !this.inverted ? "sd-6-16-5-button--secondary--hover-color-background group-active:sd-6-16-5-button--secondary--active-color-background" : "sd-6-16-5-button--secondary--inverted--hover-color-background group-active:sd-6-16-5-button--secondary--inverted--active-color-background group-active:sd-6-16-5-button--secondary--inverted--active-color-text",
|
|
208
|
+
tertiary: !this.inverted ? "sd-6-16-5-button--tertiary--hover-color-background group-active:sd-6-16-5-button--tertiary--active-color-background" : "sd-6-16-5-button--tertiary--inverted--hover-color-background group-active:sd-6-16-5-button--tertiary--inverted--active-color-background group-active:sd-6-16-5-button--tertiary--inverted--active-color-text",
|
|
209
|
+
cta: !this.inverted ? "bg-accent-500 group-active:bg-accent-700" : "sd-6-16-5-button--cta--inverted--hover-color-background group-active:sd-6-16-5-button--cta--inverted--active-color-background"
|
|
210
210
|
}[this.variant]
|
|
211
211
|
)}"></div><div class="${cx(
|
|
212
212
|
"absolute w-full h-full mt-[22%]",
|
|
213
213
|
{
|
|
214
|
-
primary: !this.inverted ? "sd-6-16-
|
|
215
|
-
secondary: !this.inverted ? "sd-6-16-
|
|
216
|
-
tertiary: !this.inverted ? "sd-6-16-
|
|
217
|
-
cta: !this.inverted ? "bg-accent-500 group-active:bg-accent-700" : "sd-6-16-
|
|
214
|
+
primary: !this.inverted ? "sd-6-16-5-button--primary--hover-color-background group-active:bg-primary-800" : "sd-6-16-5-button--primary--inverted--hover-color-background group-active:sd-6-16-5-button--primary--inverted--active-color-background",
|
|
215
|
+
secondary: !this.inverted ? "sd-6-16-5-button--secondary--hover-color-background group-active:sd-6-16-5-button--secondary--active-color-background" : "sd-6-16-5-button--secondary--inverted--hover-color-background group-active:sd-6-16-5-button--secondary--inverted--active-color-background group-active:sd-6-16-5-button--secondary--inverted--active-color-text",
|
|
216
|
+
tertiary: !this.inverted ? "sd-6-16-5-button--tertiary--hover-color-background group-active:sd-6-16-5-button--tertiary--active-color-background" : "sd-6-16-5-button--tertiary--inverted--hover-color-background group-active:sd-6-16-5-button--tertiary--inverted--active-color-background group-active:sd-6-16-5-button--tertiary--inverted--active-color-text",
|
|
217
|
+
cta: !this.inverted ? "bg-accent-500 group-active:bg-accent-700" : "sd-6-16-5-button--cta--inverted--hover-color-background group-active:sd-6-16-5-button--cta--inverted--active-color-background"
|
|
218
218
|
}[this.variant]
|
|
219
219
|
)}"></div></div></div><slot name="icon-left" part="icon-left" class="${cx(
|
|
220
220
|
"flex flex-auto items-center justify-end pointer-events-none",
|
|
@@ -243,7 +243,7 @@ var SdButton = class extends SolidElement {
|
|
|
243
243
|
md: "ml-2",
|
|
244
244
|
lg: "ml-2"
|
|
245
245
|
}[this.size]
|
|
246
|
-
)}"></slot>${this.loading ? html`<sd-6-16-
|
|
246
|
+
)}"></slot>${this.loading ? html`<sd-6-16-5-loader class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-6-16-5-loader>` : ""}</${tag}>`;
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
/**
|
|
@@ -252,13 +252,13 @@ var SdButton = class extends SolidElement {
|
|
|
252
252
|
SdButton.styles = [
|
|
253
253
|
...SolidElement.styles,
|
|
254
254
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
255
|
-
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-16-
|
|
255
|
+
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-16-5-badge){pointer-events:none;position:absolute;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 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-6-16-5-icon),sd-6-16-5-loader{font-size:calc(var(--tw-varspacing)/ 2)}:host([size=lg]) ::slotted(sd-6-16-5-icon){font-size:var(--sd-button--size-lg-icon-height,var(--sd-spacing-6))}:host([size=sm]) .sd-6-16-5-button--size-sm-border-radius{border-radius:var(--sd-button--size-sm-border-radius,var(--sd-button-border-radius))}:host([size=md]) .sd-6-16-5-button--size-md-border-radius{border-radius:var(--sd-button--size-md-border-radius,var(--sd-button-border-radius))}:host([size=lg]) .sd-6-16-5-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}`
|
|
256
256
|
];
|
|
257
257
|
__decorateClass([
|
|
258
258
|
query("a, button")
|
|
259
259
|
], SdButton.prototype, "button", 2);
|
|
260
260
|
__decorateClass([
|
|
261
|
-
queryAssignedElements({ selector: "sd-6-16-
|
|
261
|
+
queryAssignedElements({ selector: "sd-6-16-5-icon" })
|
|
262
262
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
263
263
|
__decorateClass([
|
|
264
264
|
state()
|
|
@@ -324,7 +324,7 @@ __decorateClass([
|
|
|
324
324
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
325
325
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
326
326
|
SdButton = __decorateClass([
|
|
327
|
-
customElement("sd-6-16-
|
|
327
|
+
customElement("sd-6-16-5-button")
|
|
328
328
|
], SdButton);
|
|
329
329
|
|
|
330
330
|
export {
|
|
@@ -20,7 +20,7 @@ var SdRangeTick = class extends SolidElement {
|
|
|
20
20
|
this.subtick = false;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return html`<div part="base" class="${cx(this.subtick ? "w-0.25" : "w-0.5")}"><div part="line" class="${cx(this.subtick ? "h-2" : "h-[10px]")}"></div><div part="label" class="flex items-center justify-center text-center text-nowrap text-sm sd-6-16-
|
|
23
|
+
return html`<div part="base" class="${cx(this.subtick ? "w-0.25" : "w-0.5")}"><div part="line" class="${cx(this.subtick ? "h-2" : "h-[10px]")}"></div><div part="label" class="flex items-center justify-center text-center text-nowrap text-sm sd-6-16-5-range-scale-ticks-color-text"><slot></slot></div></div>`;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
SdRangeTick.styles = [
|
|
@@ -32,7 +32,7 @@ __decorateClass([
|
|
|
32
32
|
property({ type: Boolean, reflect: true })
|
|
33
33
|
], SdRangeTick.prototype, "subtick", 2);
|
|
34
34
|
SdRangeTick = __decorateClass([
|
|
35
|
-
customElement("sd-6-16-
|
|
35
|
+
customElement("sd-6-16-5-range-tick")
|
|
36
36
|
], SdRangeTick);
|
|
37
37
|
|
|
38
38
|
export {
|
|
@@ -73,14 +73,14 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
73
73
|
this.formControlController.updateValidity();
|
|
74
74
|
}
|
|
75
75
|
getAllRadios() {
|
|
76
|
-
const radios = [...this.querySelectorAll("sd-6-16-
|
|
76
|
+
const radios = [...this.querySelectorAll("sd-6-16-5-radio, sd-6-16-5-radio-button")];
|
|
77
77
|
if (radios.length === 0) {
|
|
78
78
|
console.warn("No radios found in the radio group.");
|
|
79
79
|
}
|
|
80
80
|
return radios;
|
|
81
81
|
}
|
|
82
82
|
handleRadioClick(event) {
|
|
83
|
-
const target = event.target.closest("sd-6-16-
|
|
83
|
+
const target = event.target.closest("sd-6-16-5-radio, sd-6-16-5-radio-button");
|
|
84
84
|
const oldValue = this.value;
|
|
85
85
|
const radios = this.getAllRadios();
|
|
86
86
|
if (radios.length === 0) {
|
|
@@ -170,7 +170,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
170
170
|
}
|
|
171
171
|
})
|
|
172
172
|
);
|
|
173
|
-
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-6-16-
|
|
173
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-6-16-5-radio-button");
|
|
174
174
|
if (!radios.some((radio) => radio.checked)) {
|
|
175
175
|
if (this.hasButtonGroup) {
|
|
176
176
|
const buttonRadio = (_a = radios[0].shadowRoot) == null ? void 0 : _a.querySelector("button");
|
|
@@ -182,26 +182,26 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
if (this.hasButtonGroup) {
|
|
185
|
-
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-6-16-
|
|
185
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-6-16-5-button-group");
|
|
186
186
|
if (buttonGroup) {
|
|
187
187
|
buttonGroup.disableRole = true;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
syncRadios() {
|
|
192
|
-
if (customElements.get("sd-6-16-
|
|
192
|
+
if (customElements.get("sd-6-16-5-radio") && customElements.get("sd-6-16-5-radio-button")) {
|
|
193
193
|
this.syncRadioElements();
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
if (customElements.get("sd-6-16-
|
|
196
|
+
if (customElements.get("sd-6-16-5-radio")) {
|
|
197
197
|
this.syncRadioElements();
|
|
198
198
|
} else {
|
|
199
|
-
customElements.whenDefined("sd-6-16-
|
|
199
|
+
customElements.whenDefined("sd-6-16-5-radio").then(() => this.syncRadios());
|
|
200
200
|
}
|
|
201
|
-
if (customElements.get("sd-6-16-
|
|
201
|
+
if (customElements.get("sd-6-16-5-radio-button")) {
|
|
202
202
|
this.syncRadioElements();
|
|
203
203
|
} else {
|
|
204
|
-
customElements.whenDefined("sd-6-16-
|
|
204
|
+
customElements.whenDefined("sd-6-16-5-radio-button").then(() => this.syncRadios());
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
updateCheckedRadio() {
|
|
@@ -279,7 +279,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
279
279
|
vertical: "flex-col",
|
|
280
280
|
horizontal: "flex-row"
|
|
281
281
|
}[this.orientation]
|
|
282
|
-
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-6-16-
|
|
282
|
+
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-6-16-5-button-group class="border border-primary sd-6-16-5-radio-button-group-border-radius sd-6-16-5-radio-button-group-border-width sd-6-16-5-radio-button-group-padding" part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-6-16-5-button-group>` : defaultSlot}</div></fieldset><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 part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle ? html`<sd-6-16-5-icon part="invalid-icon" class="${cx("text-error")}" library="_internal" name="risk"></sd-6-16-5-icon>` : ""} ${this.formControlController.renderInvalidMessage(this.size)}</div>`;
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
285
|
/**
|
|
@@ -288,7 +288,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
288
288
|
SdRadioGroup.styles = [
|
|
289
289
|
...SolidElement.styles,
|
|
290
290
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
291
|
-
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-16-
|
|
291
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-16-5-radio){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-16-5-radio:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-6-16-5-radio){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-16-5-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-16-5-radio){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-16-5-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([required]) #label::after{content:' *'}:host:has(sd-6-16-5-button-group){display:inline-flex}`
|
|
292
292
|
];
|
|
293
293
|
__decorateClass([
|
|
294
294
|
query("slot:not([name])")
|
|
@@ -342,7 +342,7 @@ __decorateClass([
|
|
|
342
342
|
watch("value")
|
|
343
343
|
], SdRadioGroup.prototype, "handleValueChange", 1);
|
|
344
344
|
SdRadioGroup = __decorateClass([
|
|
345
|
-
customElement("sd-6-16-
|
|
345
|
+
customElement("sd-6-16-5-radio-group")
|
|
346
346
|
], SdRadioGroup);
|
|
347
347
|
|
|
348
348
|
export {
|
|
@@ -15,7 +15,7 @@ var FormControlController = class {
|
|
|
15
15
|
const disabled = this.options.disabled(this.host);
|
|
16
16
|
const name = this.options.name(this.host);
|
|
17
17
|
const value = this.options.value(this.host);
|
|
18
|
-
const isButton = this.host.tagName.toLowerCase() === "sd-6-16-
|
|
18
|
+
const isButton = this.host.tagName.toLowerCase() === "sd-6-16-5-button";
|
|
19
19
|
if (!disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
|
20
20
|
if (Array.isArray(value)) {
|
|
21
21
|
value.forEach((val) => {
|
|
@@ -40,7 +40,7 @@ var FormControlController = class {
|
|
|
40
40
|
event.stopImmediatePropagation();
|
|
41
41
|
const invalidElements = (_b = this.form) == null ? void 0 : _b.querySelectorAll("[data-invalid]");
|
|
42
42
|
const sdRadioGroups = Array.from(invalidElements).filter(
|
|
43
|
-
(element) => element.tagName.toLowerCase() === "sd-6-16-
|
|
43
|
+
(element) => element.tagName.toLowerCase() === "sd-6-16-5-radio-group"
|
|
44
44
|
);
|
|
45
45
|
sdRadioGroups.forEach((radioGroup) => {
|
|
46
46
|
var _a2, _b2;
|
|
@@ -22,9 +22,9 @@ var SdBadge = class extends SolidElement {
|
|
|
22
22
|
"inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",
|
|
23
23
|
{
|
|
24
24
|
/* variants */
|
|
25
|
-
blue: !this.inverted ? "text-white sd-6-16-
|
|
26
|
-
green: !this.inverted ? "text-white sd-6-16-
|
|
27
|
-
red: !this.inverted ? "text-white sd-6-16-
|
|
25
|
+
blue: !this.inverted ? "text-white sd-6-16-5-badge--blue-color-background border-white" : "sd-6-16-5-badge--blue--inverted-color-text sd-6-16-5-badge--blue--inverted-color-background sd-6-16-5-badge--inverted-color-border",
|
|
26
|
+
green: !this.inverted ? "text-white sd-6-16-5-badge--green-color-background border-white" : "sd-6-16-5-badge--green-color--inverted-text sd-6-16-5-badge--green-color--inverted-background sd-6-16-5-badge--inverted-color-border",
|
|
27
|
+
red: !this.inverted ? "text-white sd-6-16-5-badge--red-color-background border-white" : "sd-6-16-5-badge--red--inverted-text sd-6-16-5-badge--red--inverted-background sd-6-16-5-badge--inverted-color-border"
|
|
28
28
|
}[this.variant]
|
|
29
29
|
)}"><span id="content" part="content" class="${cx(this.size === "sm" && "sr-only")}"><slot></slot></span></span>`;
|
|
30
30
|
}
|
|
@@ -44,7 +44,7 @@ __decorateClass([
|
|
|
44
44
|
property({ type: Boolean, reflect: true })
|
|
45
45
|
], SdBadge.prototype, "inverted", 2);
|
|
46
46
|
SdBadge = __decorateClass([
|
|
47
|
-
customElement("sd-6-16-
|
|
47
|
+
customElement("sd-6-16-5-badge")
|
|
48
48
|
], SdBadge);
|
|
49
49
|
|
|
50
50
|
export {
|
|
@@ -300,19 +300,19 @@ var SdAudio = class extends SolidElement {
|
|
|
300
300
|
)}" part="audio-controls"><button class="${cx(
|
|
301
301
|
"playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",
|
|
302
302
|
this.inverted && "sd-interactive--inverted"
|
|
303
|
-
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-6-16-
|
|
303
|
+
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-6-16-5-button ?inverted="${this.inverted ? true : false}" part="play-button" size="lg" @click="${!this.isPlaying ? this.playAudio : this.pauseAudio}" aria-label="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" title="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" class="mb-4">${this.isPlaying ? html`<slot name="pause-icon"><sd-6-16-5-icon class="text-xl" name="pause" library="_internal"></sd-6-16-5-icon></slot>` : html`<slot name="play-icon"><sd-6-16-5-icon class="text-xl" name="start" library="_internal"></sd-6-16-5-icon></slot>`}</sd-6-16-5-button><div class="flex items-center gap-6 justify-self-end">${this.hasSlotController.test("transcript") ? html`<button class="${cx("w-6 h-6 hover:cursor-pointer sd-interactive", this.inverted && "sd-interactive--inverted")}" aria-label="${this.isTranscriptOpen ? this.localize.term("transcriptIsOpen") : this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-6-16-5-icon class="w-6 h-6" name="transcript" library="_internal"></sd-6-16-5-icon></button>` : null} <button class="${cx("w-6 h-6 hover:cursor-pointer sd-interactive", this.inverted && "sd-interactive--inverted")}" part="volume" aria-label="${!this.isMuted ? this.localize.term("mute") : this.localize.term("unmute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-6-16-5-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="_internal"></sd-6-16-5-icon></button></div></div>`;
|
|
304
304
|
const renderTimestamps = html`<div class="${cx(
|
|
305
305
|
"w-full flex justify-between",
|
|
306
306
|
this.reversedLayout ? "mb-0.5" : "mt-0.5",
|
|
307
307
|
this.animated && this.reversedLayout && "absolute bottom-0 left-0 !mb-4"
|
|
308
|
-
)}" part="timestamps"><div class="${cx("current-time text-sm", this.inverted ? "text-primary-400" : "sd-6-16-
|
|
309
|
-
return html`<div class="${cx("w-full flex relative", this.reversedLayout ? "flex-col-reverse" : "flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated || this.animated && this.reversedLayout ? renderAudioControls : null}<div class="relative">${this.animated && !this.reversedLayout ? html`${renderAudioControls}` : null} ${this.animated ? html`<canvas class="w-full h-16 -mb-2"></canvas>` : null} ${!this.hideTimestamps && this.animated && this.reversedLayout ? renderTimestamps : null}<sd-6-16-
|
|
308
|
+
)}" part="timestamps"><div class="${cx("current-time text-sm", this.inverted ? "text-primary-400" : "sd-6-16-5-audio__timestamp-color-text")}">${this.currentTime}</div><div class="${cx("current-time text-sm", this.inverted ? "text-primary-400" : "sd-6-16-5-audio__timestamp-color-text")}">${this.duration}</div></div>`;
|
|
309
|
+
return html`<div class="${cx("w-full flex relative", this.reversedLayout ? "flex-col-reverse" : "flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated || this.animated && this.reversedLayout ? renderAudioControls : null}<div class="relative">${this.animated && !this.reversedLayout ? html`${renderAudioControls}` : null} ${this.animated ? html`<canvas class="w-full h-16 -mb-2"></canvas>` : null} ${!this.hideTimestamps && this.animated && this.reversedLayout ? renderTimestamps : null}<sd-6-16-5-range part="progress-slider" tooltip="hidden" min="0" max="100" step="0.001" label="${this.localize.term("seekBar")}" @mousedown="${this.handleThumbGrab}" @touchstart="${this.handleThumbGrab}" @mouseup="${this.handleThumbRelease}" @touchend="${this.handleThumbRelease}" @sd-6-16-5-input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}"></sd-6-16-5-range></div>${this.hasSlotController.test("transcript") ? html`<sd-6-16-5-drawer><slot name="transcript"></slot></sd-6-16-5-drawer>` : null} ${!this.hideTimestamps && (!this.animated || !this.reversedLayout) ? renderTimestamps : null}</div><sd-6-16-5-theme-listener></sd-6-16-5-theme-listener>`;
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
SdAudio.styles = [
|
|
313
313
|
...SolidElement.styles,
|
|
314
314
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
315
|
-
sd-6-16-
|
|
315
|
+
sd-6-16-5-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-spacing-12);align-items:center;justify-content:center;border-radius:var(--sd-radius-full)}sd-6-16-5-button::part(motion-wrapper){border-radius:var(--sd-radius-full)}sd-6-16-5-button::part(label){display:flex;flex-grow:0;align-items:center}sd-6-16-5-range::part(form-control-label){display:none}:host([inverted]) sd-6-16-5-range::part(thumb){outline-color:var(--color-white,#fff);background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}:host([animated]) sd-6-16-5-range::part(track){background-color:transparent}:host([inverted]:not([animated])) sd-6-16-5-range::part(track){background-color:rgba(var(--sd-audio__slide-bar--inverted-color-background,rgba(var(--sd-color-primary-400))))}:host([inverted]:not([animated])) sd-6-16-5-range::part(active-track){background-color:rgba(var(--sd-audio__track-bar--inverted-color-background,rgba(var(--sd-color-white))))}.sd-6-16-5-audio__timestamp-color-text{color:rgb(var(--sd-audio__timestamp-color-text,var(--sd-color-text-neutral-700)))}`
|
|
316
316
|
];
|
|
317
317
|
__decorateClass([
|
|
318
318
|
property({ type: Boolean, reflect: true, attribute: "reversed-layout" })
|
|
@@ -354,13 +354,13 @@ __decorateClass([
|
|
|
354
354
|
query('[part="audio-player"]')
|
|
355
355
|
], SdAudio.prototype, "audioPlayerContainer", 2);
|
|
356
356
|
__decorateClass([
|
|
357
|
-
query("sd-6-16-
|
|
357
|
+
query("sd-6-16-5-drawer")
|
|
358
358
|
], SdAudio.prototype, "drawer", 2);
|
|
359
359
|
__decorateClass([
|
|
360
360
|
query("canvas")
|
|
361
361
|
], SdAudio.prototype, "canvas", 2);
|
|
362
362
|
SdAudio = __decorateClass([
|
|
363
|
-
customElement("sd-6-16-
|
|
363
|
+
customElement("sd-6-16-5-audio")
|
|
364
364
|
], SdAudio);
|
|
365
365
|
|
|
366
366
|
export {
|