@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
|
@@ -16,6 +16,7 @@ var SdHeader = class extends SolidElement {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
this.fixed = false;
|
|
19
|
+
this.shadow = false;
|
|
19
20
|
}
|
|
20
21
|
connectedCallback() {
|
|
21
22
|
super.connectedCallback();
|
|
@@ -60,11 +61,14 @@ var SdHeader = class extends SolidElement {
|
|
|
60
61
|
SdHeader.styles = [
|
|
61
62
|
...SolidElement.styles,
|
|
62
63
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
63
|
-
:host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:0;left:0;width:100%}:host([
|
|
64
|
+
:host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:0;left:0;width:100%}}:host([shadow]) header::after{position:absolute;top:100%;right:0;left:0;height:var(--sd-header__shadow-height,var(--sd-spacing-1));--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops));--tw-gradient-from:color-mix(in oklab, var(--color-black, #000) 40%, transparent);--tw-gradient-to:color-mix(in oklab, var(--color-black, #000) var(--sd-opacity-0), transparent);--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));--tw-content:'';content:var(--tw-content)}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}:host([shadow]) header::before{position:absolute;bottom:0;left:0;display:block;width:100%;--tw-content:'';content:var(--tw-content);background-color:rgb(var(--sd-header__underline-color-background));height:var(--sd-header__underline-height,var(--sd-spacing-2))}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`
|
|
64
65
|
];
|
|
65
66
|
__decorateClass([
|
|
66
67
|
property({ reflect: true, type: Boolean })
|
|
67
68
|
], SdHeader.prototype, "fixed", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
property({ reflect: true, type: Boolean })
|
|
71
|
+
], SdHeader.prototype, "shadow", 2);
|
|
68
72
|
__decorateClass([
|
|
69
73
|
query("header")
|
|
70
74
|
], SdHeader.prototype, "header", 2);
|
|
@@ -2,6 +2,7 @@ import SolidElement from '../../internal/solid-element';
|
|
|
2
2
|
import type { PropertyValues } from 'lit';
|
|
3
3
|
export default class SdHeader extends SolidElement {
|
|
4
4
|
fixed: boolean;
|
|
5
|
+
shadow: boolean;
|
|
5
6
|
header: HTMLElement;
|
|
6
7
|
private resizeObserver?;
|
|
7
8
|
connectedCallback(): void;
|
|
@@ -9338,7 +9338,7 @@
|
|
|
9338
9338
|
"name": "--sd-header__underline-height"
|
|
9339
9339
|
},
|
|
9340
9340
|
{
|
|
9341
|
-
"description": "height of the shadow
|
|
9341
|
+
"description": "height of the shadow",
|
|
9342
9342
|
"name": "--sd-header__shadow-height"
|
|
9343
9343
|
}
|
|
9344
9344
|
],
|
|
@@ -9362,10 +9362,21 @@
|
|
|
9362
9362
|
"text": "boolean"
|
|
9363
9363
|
},
|
|
9364
9364
|
"default": "false",
|
|
9365
|
-
"description": "Determines whether the header is fixed or not. If the header is fixed at the top of the page
|
|
9365
|
+
"description": "Determines whether the header is fixed or not. If the header is fixed, it stays at the top of the page while scrolling.",
|
|
9366
9366
|
"attribute": "fixed",
|
|
9367
9367
|
"reflects": true
|
|
9368
9368
|
},
|
|
9369
|
+
{
|
|
9370
|
+
"kind": "field",
|
|
9371
|
+
"name": "shadow",
|
|
9372
|
+
"type": {
|
|
9373
|
+
"text": "boolean"
|
|
9374
|
+
},
|
|
9375
|
+
"default": "false",
|
|
9376
|
+
"description": "Determines whether a drop shadow is shown underneath the header.",
|
|
9377
|
+
"attribute": "shadow",
|
|
9378
|
+
"reflects": true
|
|
9379
|
+
},
|
|
9369
9380
|
{
|
|
9370
9381
|
"kind": "field",
|
|
9371
9382
|
"name": "dir",
|
|
@@ -9452,9 +9463,18 @@
|
|
|
9452
9463
|
"text": "boolean"
|
|
9453
9464
|
},
|
|
9454
9465
|
"default": "false",
|
|
9455
|
-
"description": "Determines whether the header is fixed or not. If the header is fixed at the top of the page
|
|
9466
|
+
"description": "Determines whether the header is fixed or not. If the header is fixed, it stays at the top of the page while scrolling.",
|
|
9456
9467
|
"fieldName": "fixed"
|
|
9457
9468
|
},
|
|
9469
|
+
{
|
|
9470
|
+
"name": "shadow",
|
|
9471
|
+
"type": {
|
|
9472
|
+
"text": "boolean"
|
|
9473
|
+
},
|
|
9474
|
+
"default": "false",
|
|
9475
|
+
"description": "Determines whether a drop shadow is shown underneath the header.",
|
|
9476
|
+
"fieldName": "shadow"
|
|
9477
|
+
},
|
|
9458
9478
|
{
|
|
9459
9479
|
"name": "dir",
|
|
9460
9480
|
"type": {
|
|
@@ -23534,7 +23554,7 @@
|
|
|
23534
23554
|
"package": {
|
|
23535
23555
|
"name": "@solid-design-system/components",
|
|
23536
23556
|
"description": "Solid Design System: Components",
|
|
23537
|
-
"version": "7.0.0-next.
|
|
23557
|
+
"version": "7.0.0-next.7",
|
|
23538
23558
|
"author": "Union Investment",
|
|
23539
23559
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
23540
23560
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -35,15 +35,15 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
SdTabPanel
|
|
37
37
|
} from "./chunks/chunk.RZXU2X5Z.js";
|
|
38
|
-
import {
|
|
39
|
-
SdQuickfact
|
|
40
|
-
} from "./chunks/chunk.K22CCY63.js";
|
|
41
38
|
import {
|
|
42
39
|
SdRadioButton
|
|
43
40
|
} from "./chunks/chunk.SCWFNFSN.js";
|
|
44
41
|
import {
|
|
45
42
|
SdRadioGroup
|
|
46
43
|
} from "./chunks/chunk.DC2F6ZIN.js";
|
|
44
|
+
import {
|
|
45
|
+
SdRadio
|
|
46
|
+
} from "./chunks/chunk.DCUIQILU.js";
|
|
47
47
|
import {
|
|
48
48
|
SdRange
|
|
49
49
|
} from "./chunks/chunk.MEMOQ3W7.js";
|
|
@@ -76,8 +76,8 @@ import {
|
|
|
76
76
|
SdProgressBar
|
|
77
77
|
} from "./chunks/chunk.YAI4GVXU.js";
|
|
78
78
|
import {
|
|
79
|
-
|
|
80
|
-
} from "./chunks/chunk.
|
|
79
|
+
SdQuickfact
|
|
80
|
+
} from "./chunks/chunk.K22CCY63.js";
|
|
81
81
|
import {
|
|
82
82
|
SdInclude
|
|
83
83
|
} from "./chunks/chunk.YVAYTWVV.js";
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
import "./chunks/chunk.KEJFWGZI.js";
|
|
97
97
|
import {
|
|
98
98
|
SdHeader
|
|
99
|
-
} from "./chunks/chunk.
|
|
99
|
+
} from "./chunks/chunk.5HSSTHMW.js";
|
|
100
100
|
import {
|
|
101
101
|
SdDatepicker
|
|
102
102
|
} from "./chunks/chunk.ZMCHJLGT.js";
|
|
@@ -1291,11 +1291,16 @@
|
|
|
1291
1291
|
},
|
|
1292
1292
|
{
|
|
1293
1293
|
"name": "sd-header",
|
|
1294
|
-
"description": "Used as a container for the main navigation of a website.\n---\n\n\n### **Methods:**\n - **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n- **token(name: _string_, fallback: _T_): _T_** - Retrieves the value of a css variable token.\n\n### **Slots:**\n - _default_ - The header's default content.\n\n### **CSS Properties:**\n - **--sd-header-inner-width** - width of the header content _(default: undefined)_\n- **--sd-header-inner-max-width** - max-width of the header content _(default: undefined)_\n- **--sd-header-padding** - padding-left and padding-right of the header content _(default: undefined)_\n- **--sd-header-color-background** - The background color of the header. _(default: undefined)_\n- **--sd-header-padding-bottom** - padding bottom of the header content _(default: undefined)_\n- **--sd-header__underline-color-background** - the background color of the underlined background _(default: undefined)_\n- **--sd-header__underline-height** - height of the underlined header _(default: undefined)_\n- **--sd-header__shadow-height** - height of the shadow
|
|
1294
|
+
"description": "Used as a container for the main navigation of a website.\n---\n\n\n### **Methods:**\n - **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n- **token(name: _string_, fallback: _T_): _T_** - Retrieves the value of a css variable token.\n\n### **Slots:**\n - _default_ - The header's default content.\n\n### **CSS Properties:**\n - **--sd-header-inner-width** - width of the header content _(default: undefined)_\n- **--sd-header-inner-max-width** - max-width of the header content _(default: undefined)_\n- **--sd-header-padding** - padding-left and padding-right of the header content _(default: undefined)_\n- **--sd-header-color-background** - The background color of the header. _(default: undefined)_\n- **--sd-header-padding-bottom** - padding bottom of the header content _(default: undefined)_\n- **--sd-header__underline-color-background** - the background color of the underlined background _(default: undefined)_\n- **--sd-header__underline-height** - height of the underlined header _(default: undefined)_\n- **--sd-header__shadow-height** - height of the shadow _(default: undefined)_\n\n### **CSS Parts:**\n - **main** - The container that wraps the header's content.",
|
|
1295
1295
|
"attributes": [
|
|
1296
1296
|
{
|
|
1297
1297
|
"name": "fixed",
|
|
1298
|
-
"description": "Determines whether the header is fixed or not. If the header is fixed at the top of the page
|
|
1298
|
+
"description": "Determines whether the header is fixed or not. If the header is fixed, it stays at the top of the page while scrolling.",
|
|
1299
|
+
"values": []
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"name": "shadow",
|
|
1303
|
+
"description": "Determines whether a drop shadow is shown underneath the header.",
|
|
1299
1304
|
"values": []
|
|
1300
1305
|
},
|
|
1301
1306
|
{
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@solid-design-system/components",
|
|
4
|
-
"version": "7.0.0-next.
|
|
4
|
+
"version": "7.0.0-next.7",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -3102,12 +3102,17 @@
|
|
|
3102
3102
|
},
|
|
3103
3103
|
{
|
|
3104
3104
|
"name": "sd-header",
|
|
3105
|
-
"description": "Used as a container for the main navigation of a website.\n---\n\n\n### **Methods:**\n - **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n- **token(name: _string_, fallback: _T_): _T_** - Retrieves the value of a css variable token.\n\n### **Slots:**\n - _default_ - The header's default content.\n\n### **CSS Properties:**\n - **--sd-header-inner-width** - width of the header content _(default: undefined)_\n- **--sd-header-inner-max-width** - max-width of the header content _(default: undefined)_\n- **--sd-header-padding** - padding-left and padding-right of the header content _(default: undefined)_\n- **--sd-header-color-background** - The background color of the header. _(default: undefined)_\n- **--sd-header-padding-bottom** - padding bottom of the header content _(default: undefined)_\n- **--sd-header__underline-color-background** - the background color of the underlined background _(default: undefined)_\n- **--sd-header__underline-height** - height of the underlined header _(default: undefined)_\n- **--sd-header__shadow-height** - height of the shadow
|
|
3105
|
+
"description": "Used as a container for the main navigation of a website.\n---\n\n\n### **Methods:**\n - **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n- **token(name: _string_, fallback: _T_): _T_** - Retrieves the value of a css variable token.\n\n### **Slots:**\n - _default_ - The header's default content.\n\n### **CSS Properties:**\n - **--sd-header-inner-width** - width of the header content _(default: undefined)_\n- **--sd-header-inner-max-width** - max-width of the header content _(default: undefined)_\n- **--sd-header-padding** - padding-left and padding-right of the header content _(default: undefined)_\n- **--sd-header-color-background** - The background color of the header. _(default: undefined)_\n- **--sd-header-padding-bottom** - padding bottom of the header content _(default: undefined)_\n- **--sd-header__underline-color-background** - the background color of the underlined background _(default: undefined)_\n- **--sd-header__underline-height** - height of the underlined header _(default: undefined)_\n- **--sd-header__shadow-height** - height of the shadow _(default: undefined)_\n\n### **CSS Parts:**\n - **main** - The container that wraps the header's content.",
|
|
3106
3106
|
"doc-url": "",
|
|
3107
3107
|
"attributes": [
|
|
3108
3108
|
{
|
|
3109
3109
|
"name": "fixed",
|
|
3110
|
-
"description": "Determines whether the header is fixed or not. If the header is fixed at the top of the page
|
|
3110
|
+
"description": "Determines whether the header is fixed or not. If the header is fixed, it stays at the top of the page while scrolling.",
|
|
3111
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3112
|
+
},
|
|
3113
|
+
{
|
|
3114
|
+
"name": "shadow",
|
|
3115
|
+
"description": "Determines whether a drop shadow is shown underneath the header.",
|
|
3111
3116
|
"value": { "type": "boolean", "default": "false" }
|
|
3112
3117
|
},
|
|
3113
3118
|
{
|
|
@@ -3129,7 +3134,12 @@
|
|
|
3129
3134
|
"properties": [
|
|
3130
3135
|
{
|
|
3131
3136
|
"name": "fixed",
|
|
3132
|
-
"description": "Determines whether the header is fixed or not. If the header is fixed at the top of the page
|
|
3137
|
+
"description": "Determines whether the header is fixed or not. If the header is fixed, it stays at the top of the page while scrolling.",
|
|
3138
|
+
"type": "boolean"
|
|
3139
|
+
},
|
|
3140
|
+
{
|
|
3141
|
+
"name": "shadow",
|
|
3142
|
+
"description": "Determines whether a drop shadow is shown underneath the header.",
|
|
3133
3143
|
"type": "boolean"
|
|
3134
3144
|
},
|
|
3135
3145
|
{
|
|
@@ -16,6 +16,7 @@ var SdHeader = class extends SolidElement {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
this.fixed = false;
|
|
19
|
+
this.shadow = false;
|
|
19
20
|
}
|
|
20
21
|
connectedCallback() {
|
|
21
22
|
super.connectedCallback();
|
|
@@ -54,17 +55,20 @@ var SdHeader = class extends SolidElement {
|
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
render() {
|
|
57
|
-
return html`<header class="w-full sd-7-0-0-next-
|
|
58
|
+
return html`<header class="w-full sd-7-0-0-next-7-header-color-background sd-7-0-0-next-7-header-padding-bottom relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`;
|
|
58
59
|
}
|
|
59
60
|
};
|
|
60
61
|
SdHeader.styles = [
|
|
61
62
|
...SolidElement.styles,
|
|
62
63
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
63
|
-
:host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:0;left:0;width:100%}:host([
|
|
64
|
+
:host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:0;left:0;width:100%}}:host([shadow]) header::after{position:absolute;top:100%;right:0;left:0;height:var(--sd-header__shadow-height,var(--sd-spacing-1));--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops));--tw-gradient-from:color-mix(in oklab, var(--color-black, #000) 40%, transparent);--tw-gradient-to:color-mix(in oklab, var(--color-black, #000) var(--sd-opacity-0), transparent);--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));--tw-content:'';content:var(--tw-content)}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}:host([shadow]) header::before{position:absolute;bottom:0;left:0;display:block;width:100%;--tw-content:'';content:var(--tw-content);background-color:rgb(var(--sd-header__underline-color-background));height:var(--sd-header__underline-height,var(--sd-spacing-2))}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`
|
|
64
65
|
];
|
|
65
66
|
__decorateClass([
|
|
66
67
|
property({ reflect: true, type: Boolean })
|
|
67
68
|
], SdHeader.prototype, "fixed", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
property({ reflect: true, type: Boolean })
|
|
71
|
+
], SdHeader.prototype, "shadow", 2);
|
|
68
72
|
__decorateClass([
|
|
69
73
|
query("header")
|
|
70
74
|
], SdHeader.prototype, "header", 2);
|
|
@@ -72,7 +76,7 @@ __decorateClass([
|
|
|
72
76
|
debounce(100)
|
|
73
77
|
], SdHeader.prototype, "updateCalculatedHeight", 1);
|
|
74
78
|
SdHeader = __decorateClass([
|
|
75
|
-
customElement("sd-7-0-0-next-
|
|
79
|
+
customElement("sd-7-0-0-next-7-header")
|
|
76
80
|
], SdHeader);
|
|
77
81
|
|
|
78
82
|
export {
|
|
@@ -154,7 +154,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
154
154
|
* within the slotted trigger. This could be the slotted element itself, a child of the slotted element,
|
|
155
155
|
* or an element within the slotted elements shadow root.
|
|
156
156
|
*
|
|
157
|
-
* e.g. the accessible trigger of an <sd-7-0-0-next-
|
|
157
|
+
* e.g. the accessible trigger of an <sd-7-0-0-next-7-button> is a <button> located inside its shadow root.
|
|
158
158
|
*
|
|
159
159
|
* To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
|
160
160
|
* */
|
|
@@ -165,11 +165,11 @@ var SdDropdown = class extends SolidElement {
|
|
|
165
165
|
if (accessibleTrigger) {
|
|
166
166
|
switch (accessibleTrigger.tagName.toLowerCase()) {
|
|
167
167
|
// Solid buttons have to update the internal button so it's announced correctly by screen readers
|
|
168
|
-
case "sd-7-0-0-next-
|
|
169
|
-
case "sd-7-0-0-next-
|
|
168
|
+
case "sd-7-0-0-next-7-button":
|
|
169
|
+
case "sd-7-0-0-next-7-icon-button":
|
|
170
170
|
target = accessibleTrigger.button;
|
|
171
171
|
break;
|
|
172
|
-
case "sd-7-0-0-next-
|
|
172
|
+
case "sd-7-0-0-next-7-navigation-item":
|
|
173
173
|
target = accessibleTrigger.button;
|
|
174
174
|
break;
|
|
175
175
|
default:
|
|
@@ -193,7 +193,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
getMenu() {
|
|
196
|
-
return this.panel.assignedElements({ flatten: true }).find((el) => el.tagName.toLowerCase() === "sd-7-0-0-next-
|
|
196
|
+
return this.panel.assignedElements({ flatten: true }).find((el) => el.tagName.toLowerCase() === "sd-7-0-0-next-7-menu");
|
|
197
197
|
}
|
|
198
198
|
handleKeyDown(event) {
|
|
199
199
|
if (this.open && event.key === "Escape") {
|
|
@@ -205,7 +205,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
205
205
|
handleDocumentKeyDown(event) {
|
|
206
206
|
var _a;
|
|
207
207
|
if (event.key === "Tab") {
|
|
208
|
-
if (this.open && ((_a = document.activeElement) == null ? void 0 : _a.tagName.toLowerCase()) === "sd-7-0-0-next-
|
|
208
|
+
if (this.open && ((_a = document.activeElement) == null ? void 0 : _a.tagName.toLowerCase()) === "sd-7-0-0-next-7-menu-item") {
|
|
209
209
|
event.preventDefault();
|
|
210
210
|
this.hide();
|
|
211
211
|
this.focusOnTrigger();
|
|
@@ -231,7 +231,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
231
231
|
}
|
|
232
232
|
handlePanelSelect(event) {
|
|
233
233
|
const target = event.target;
|
|
234
|
-
if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === "sd-7-0-0-next-
|
|
234
|
+
if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === "sd-7-0-0-next-7-menu") {
|
|
235
235
|
this.hide();
|
|
236
236
|
this.focusOnTrigger();
|
|
237
237
|
}
|
|
@@ -320,7 +320,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
320
320
|
}
|
|
321
321
|
addOpenListeners() {
|
|
322
322
|
this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
|
|
323
|
-
this.panel.addEventListener("sd-7-0-0-next-
|
|
323
|
+
this.panel.addEventListener("sd-7-0-0-next-7-select", this.handlePanelSelect);
|
|
324
324
|
this.panel.addEventListener("keydown", this.handleKeyDown);
|
|
325
325
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
326
326
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
@@ -328,7 +328,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
328
328
|
removeOpenListeners() {
|
|
329
329
|
if (this.panel) {
|
|
330
330
|
this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
|
|
331
|
-
this.panel.removeEventListener("sd-7-0-0-next-
|
|
331
|
+
this.panel.removeEventListener("sd-7-0-0-next-7-select", this.handlePanelSelect);
|
|
332
332
|
this.panel.removeEventListener("keydown", this.handleKeyDown);
|
|
333
333
|
}
|
|
334
334
|
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
@@ -361,13 +361,13 @@ var SdDropdown = class extends SolidElement {
|
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
render() {
|
|
364
|
-
return html`<sd-7-0-0-next-
|
|
364
|
+
return html`<sd-7-0-0-next-7-popup part="base" id="dropdown" exportparts="
|
|
365
365
|
popup:base__popup,
|
|
366
366
|
" placement="${this.placement}" distance="${this.rounded && this.distance < 1 ? 1 : this.distance}" skidding="${this.skidding}" strategy="${this.hoist ? "fixed" : "absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${cx(
|
|
367
|
-
"panel-color-border border shadow sd-7-0-0-next-
|
|
367
|
+
"panel-color-border border shadow sd-7-0-0-next-7-dropdown-color-background block",
|
|
368
368
|
this.open ? "pointer-events-auto" : "pointer-events-none",
|
|
369
369
|
this.rounded && "rounded-md"
|
|
370
|
-
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-7-0-0-next-
|
|
370
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-7-0-0-next-7-popup>`;
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
373
|
SdDropdown.styles = [
|
|
@@ -421,7 +421,7 @@ __decorateClass([
|
|
|
421
421
|
watch("open", { waitUntilFirstUpdate: true })
|
|
422
422
|
], SdDropdown.prototype, "handleOpenChange", 1);
|
|
423
423
|
SdDropdown = __decorateClass([
|
|
424
|
-
customElement("sd-7-0-0-next-
|
|
424
|
+
customElement("sd-7-0-0-next-7-dropdown")
|
|
425
425
|
], SdDropdown);
|
|
426
426
|
setDefaultAnimation("dropdown.show", {
|
|
427
427
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -228,7 +228,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
228
228
|
textareaState === "disabled" || textareaState === "visuallyDisabled" ? "text-neutral-500" : "text-black",
|
|
229
229
|
["invalid", "activeInvalid"].includes(textareaState) && "form-control--invalid-color-background"
|
|
230
230
|
)}"><textarea part="textarea" id="input" class="${cx(
|
|
231
|
-
"ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-7-0-0-next-
|
|
231
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-7-0-0-next-7-icon]:pe-8",
|
|
232
232
|
{
|
|
233
233
|
sm: isFloatingLabelActive ? "pb-1" : "py-2",
|
|
234
234
|
md: isFloatingLabelActive ? "pb-1" : "py-2",
|
|
@@ -236,7 +236,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
236
236
|
}[this.size],
|
|
237
237
|
this.disabled && "cursor-not-allowed",
|
|
238
238
|
textSize
|
|
239
|
-
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel || isFloatingLabelActive ? ifDefined(this.placeholder) : ""}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect === void 0 ? void 0 : this.autocorrect ? "on" : "off")}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-7-0-0-next-
|
|
239
|
+
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel || isFloatingLabelActive ? ifDefined(this.placeholder) : ""}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect === void 0 ? void 0 : this.autocorrect ? "on" : "off")}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-7-0-0-next-7-icon class="${cx("text-error absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="risk" part="invalid-icon"></sd-7-0-0-next-7-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-7-0-0-next-7-icon class="${cx("text-success absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-7-0-0-next-7-icon>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx(
|
|
240
240
|
"text-sm mt-1",
|
|
241
241
|
hasHelpText && !this.showInvalidStyle ? "block" : "hidden",
|
|
242
242
|
this.visuallyDisabled || this.disabled ? "text-neutral-500" : "text-neutral-700"
|
|
@@ -369,7 +369,7 @@ __decorateClass([
|
|
|
369
369
|
watch(["size", "floatingLabel"])
|
|
370
370
|
], SdTextarea.prototype, "handleSizeChange", 1);
|
|
371
371
|
SdTextarea = __decorateClass([
|
|
372
|
-
customElement("sd-7-0-0-next-
|
|
372
|
+
customElement("sd-7-0-0-next-7-textarea")
|
|
373
373
|
], SdTextarea);
|
|
374
374
|
|
|
375
375
|
export {
|
|
@@ -98,11 +98,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
98
98
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
99
99
|
};
|
|
100
100
|
this.getTag = (option) => {
|
|
101
|
-
return html`<sd-7-0-0-next-
|
|
101
|
+
return html`<sd-7-0-0-next-7-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
102
102
|
base:tag__base,
|
|
103
103
|
content:tag__content,
|
|
104
104
|
removable-indicator:tag__removable-indicator,
|
|
105
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-7-0-0-next-
|
|
105
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-7-0-0-next-7-tag>`;
|
|
106
106
|
};
|
|
107
107
|
this.handleDocumentFocusIn = (event) => {
|
|
108
108
|
const path = event.composedPath();
|
|
@@ -241,9 +241,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
241
241
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
242
242
|
};
|
|
243
243
|
return this.filteredOptions.map((item) => {
|
|
244
|
-
if (item.tagName.toLowerCase() === "sd-7-0-0-next-
|
|
244
|
+
if (item.tagName.toLowerCase() === "sd-7-0-0-next-7-optgroup") {
|
|
245
245
|
Array.from(item.children).forEach((option) => {
|
|
246
|
-
if (option.tagName.toLowerCase() === "sd-7-0-0-next-
|
|
246
|
+
if (option.tagName.toLowerCase() === "sd-7-0-0-next-7-option") {
|
|
247
247
|
renderOption(option);
|
|
248
248
|
}
|
|
249
249
|
});
|
|
@@ -263,11 +263,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
263
263
|
});
|
|
264
264
|
} else {
|
|
265
265
|
return [
|
|
266
|
-
html`<sd-7-0-0-next-
|
|
266
|
+
html`<sd-7-0-0-next-7-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
267
267
|
base:tag__base,
|
|
268
268
|
content:tag__content,
|
|
269
269
|
removable-indicator:tag__removable-indicator,
|
|
270
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-7-0-0-next-
|
|
270
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-7-0-0-next-7-tag>`
|
|
271
271
|
];
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -403,7 +403,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
403
403
|
}
|
|
404
404
|
handleOptionClick(event) {
|
|
405
405
|
const target = event.target;
|
|
406
|
-
const option = target.closest("sd-7-0-0-next-
|
|
406
|
+
const option = target.closest("sd-7-0-0-next-7-option");
|
|
407
407
|
const oldValue = this.value;
|
|
408
408
|
if (option && !option.disabled) {
|
|
409
409
|
if (this.multiple) {
|
|
@@ -455,7 +455,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
455
455
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
456
456
|
}
|
|
457
457
|
getAllFilteredOptions() {
|
|
458
|
-
return [...this.filteredWrapper.querySelectorAll("sd-7-0-0-next-
|
|
458
|
+
return [...this.filteredWrapper.querySelectorAll("sd-7-0-0-next-7-option")];
|
|
459
459
|
}
|
|
460
460
|
getCurrentOption() {
|
|
461
461
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -585,7 +585,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
585
585
|
clonedOption.selected = option.selected;
|
|
586
586
|
clonedOption.checkbox = option.checkbox;
|
|
587
587
|
clonedOption.size = option.size;
|
|
588
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-7-0-0-next-
|
|
588
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-7-0-0-next-7-optgroup";
|
|
589
589
|
if (!hasOptgroup) {
|
|
590
590
|
return clonedOption;
|
|
591
591
|
}
|
|
@@ -609,7 +609,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
609
609
|
this.formControlController.emitInvalidEvent(event);
|
|
610
610
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
611
611
|
}
|
|
612
|
-
/** Receives incoming event detail from sd-7-0-0-next-
|
|
612
|
+
/** Receives incoming event detail from sd-7-0-0-next-7-popup and updates local state for conditional styling. */
|
|
613
613
|
handleCurrentPlacement(e) {
|
|
614
614
|
const incomingPlacement = e.detail;
|
|
615
615
|
if (incomingPlacement) {
|
|
@@ -621,7 +621,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
621
621
|
}
|
|
622
622
|
handleUseTagsChange() {
|
|
623
623
|
const allOptions = this.getAllFilteredOptions();
|
|
624
|
-
if (customElements.get("sd-7-0-0-next-
|
|
624
|
+
if (customElements.get("sd-7-0-0-next-7-option")) {
|
|
625
625
|
allOptions.forEach((option) => {
|
|
626
626
|
option.checkbox = this.multiple;
|
|
627
627
|
});
|
|
@@ -750,8 +750,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
750
750
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
751
751
|
}
|
|
752
752
|
async handleDefaultSlotChange() {
|
|
753
|
-
if (!customElements.get("sd-7-0-0-next-
|
|
754
|
-
customElements.whenDefined("sd-7-0-0-next-
|
|
753
|
+
if (!customElements.get("sd-7-0-0-next-7-option")) {
|
|
754
|
+
customElements.whenDefined("sd-7-0-0-next-7-option").then(() => this.handleDefaultSlotChange());
|
|
755
755
|
return;
|
|
756
756
|
}
|
|
757
757
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -763,10 +763,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
763
763
|
if (this.multiple) {
|
|
764
764
|
option.checkbox = true;
|
|
765
765
|
}
|
|
766
|
-
option.id = option.id || `sd-7-0-0-next-
|
|
766
|
+
option.id = option.id || `sd-7-0-0-next-7-combobox-option-${index}`;
|
|
767
767
|
});
|
|
768
768
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
769
|
-
optgroup.id = optgroup.id || `sd-7-0-0-next-
|
|
769
|
+
optgroup.id = optgroup.id || `sd-7-0-0-next-7-combobox-optgroup-${index}`;
|
|
770
770
|
});
|
|
771
771
|
await this.syncSelectedOptionsAndValue();
|
|
772
772
|
if (this.multiple) {
|
|
@@ -831,7 +831,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
831
831
|
default: "form-control-color-border"
|
|
832
832
|
}[selectState],
|
|
833
833
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
834
|
-
)}"></div><sd-7-0-0-next-
|
|
834
|
+
)}"></div><sd-7-0-0-next-7-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
835
835
|
"inline-flex relative w-full",
|
|
836
836
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
837
837
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -860,18 +860,18 @@ var SdCombobox = class extends SolidElement {
|
|
|
860
860
|
"flex justify-center",
|
|
861
861
|
iconMarginLeft,
|
|
862
862
|
this.value.length > 0 ? "visible" : "invisible"
|
|
863
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-7-0-0-next-
|
|
863
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-7-0-0-next-7-icon class="${cx("text-neutral-700", iconSize)}" name="closing-round" library="_internal"></sd-7-0-0-next-7-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-7-0-0-next-7-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="_internal" name="risk"></sd-7-0-0-next-7-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-7-0-0-next-7-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle"></sd-7-0-0-next-7-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
864
864
|
"inline-flex ml-2 leading-[0]",
|
|
865
865
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "form-control-color-icon-fill",
|
|
866
866
|
iconSize
|
|
867
|
-
)}">${this.type !== "search" ? html`<sd-7-0-0-next-
|
|
867
|
+
)}">${this.type !== "search" ? html`<sd-7-0-0-next-7-icon class="${cx(
|
|
868
868
|
"transition-transform duration-medium ease-in-out",
|
|
869
869
|
this.open ? "rotate-180" : "rotate-0"
|
|
870
|
-
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-7-0-0-next-
|
|
870
|
+
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-7-0-0-next-7-icon>` : ""}</slot>${this.type === "search" ? html`<button class="${cx("flex items-center", iconMarginLeft)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-7-0-0-next-7-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-7-0-0-next-7-icon></button>` : html`<button class="combobox-button absolute top-2" tabindex="-1" aria-hidden="true" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${ifDefined(!this.multiple ? "listbox" : void 0)}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
|
871
871
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
872
872
|
this.open && "shadow-listbox transition-shadow duration-medium ease-in-out",
|
|
873
873
|
this.currentPlacement === "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"
|
|
874
|
-
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-7-0-0-next-
|
|
874
|
+
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-7-0-0-next-7-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx(
|
|
875
875
|
"text-sm mt-1",
|
|
876
876
|
hasHelpText ? "block" : "hidden",
|
|
877
877
|
this.visuallyDisabled || this.disabled ? "text-neutral-500" : "text-neutral-700"
|
|
@@ -881,10 +881,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
881
881
|
SdCombobox.styles = [
|
|
882
882
|
...SolidElement.styles,
|
|
883
883
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
884
|
-
:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-7-0-0-next-
|
|
884
|
+
:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-7-0-0-next-7-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-7-0-0-next-7-tag::part(base){border-radius:var(--sd-radius);border-width:var(--sd-combobox__tag-border-width,var(--sd-spacing-0\\.25));padding-inline:var(--sd-spacing-1)}sd-7-0-0-next-7-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-7-0-0-next-7-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-7-0-0-next-7-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}[part=filtered-listbox] sd-7-0-0-next-7-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold);color:inherit}:host([type=search]) sd-7-0-0-next-7-icon[name=magnifying-glass],[part=chevron]{color:rgba(var(--sd-form-control-color-icon-fill))}:host([disabled])::part(chevron),:host([type=search][disabled]) sd-7-0-0-next-7-icon[name=magnifying-glass],:host([type=search][visually-disabled]) sd-7-0-0-next-7-icon[name=magnifying-glass],:host([visually-disabled])::part(chevron){color:rgba(var(--sd-color-icon-fill-neutral-500,--sd-color-neutral-500))}@property --tw-font-weight{syntax:"*";inherits:false}`
|
|
885
885
|
];
|
|
886
886
|
__decorateClass([
|
|
887
|
-
query("sd-7-0-0-next-
|
|
887
|
+
query("sd-7-0-0-next-7-popup")
|
|
888
888
|
], SdCombobox.prototype, "popup", 2);
|
|
889
889
|
__decorateClass([
|
|
890
890
|
query('[part="combobox"]')
|
|
@@ -1048,7 +1048,7 @@ __decorateClass([
|
|
|
1048
1048
|
watch(["size", "floatingLabel"])
|
|
1049
1049
|
], SdCombobox.prototype, "handleSizeChange", 1);
|
|
1050
1050
|
SdCombobox = __decorateClass([
|
|
1051
|
-
customElement("sd-7-0-0-next-
|
|
1051
|
+
customElement("sd-7-0-0-next-7-combobox")
|
|
1052
1052
|
], SdCombobox);
|
|
1053
1053
|
setDefaultAnimation("combobox.show", {
|
|
1054
1054
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -135,23 +135,23 @@ var SdAccordion = class extends SolidElement {
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
return html`<details part="base"><summary part="header" id="header" class="${cx(
|
|
138
|
-
"flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-7-0-0-next-
|
|
138
|
+
"flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-7-0-0-next-7-accordion-padding-block focus-visible:focus-outline focus-visible:z-10 relative group transition-colors ease-in-out duration-fast hover:sd-7-0-0-next-7-accordion--hover-color-background"
|
|
139
139
|
)}" aria-expanded="${this.open ? "true" : "false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div part="summary-border" class="${cx(
|
|
140
140
|
!this.open && "opacity-0",
|
|
141
|
-
"w-1 sd-7-0-0-next-
|
|
141
|
+
"w-1 sd-7-0-0-next-7-accordion__indicator-color absolute left-0 transition-height duration-fast ease-in-out h-[calc(100%-16px)] group-hover:h-full"
|
|
142
142
|
)}"></div><slot name="summary" part="summary" class="${cx(
|
|
143
|
-
this.open ? "sd-7-0-0-next-
|
|
143
|
+
this.open ? "sd-7-0-0-next-7-accordion--open-color-text" : "sd-7-0-0-next-7-accordion-color-text",
|
|
144
144
|
"flex flex-auto items-center text-left"
|
|
145
145
|
)}">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
146
146
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-medium text-xl",
|
|
147
147
|
this.open && "rotate-180"
|
|
148
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-7-0-0-next-
|
|
148
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-7-0-0-next-7-icon library="_internal" name="chevron-down"></sd-7-0-0-next-7-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-7-0-0-next-7-icon library="_internal" name="chevron-down"></sd-7-0-0-next-7-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`;
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
SdAccordion.styles = [
|
|
152
152
|
...SolidElement.styles,
|
|
153
153
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
154
|
-
:host{display:block}[part=header]::-webkit-details-marker{display:none}[part=base]{border-color:rgba(var(--sd-accordion-color-border,var(--sd-accordion-color-text)));border-block-width:var(--sd-accordion-border-width)}[part=summary-icon] sd-7-0-0-next-
|
|
154
|
+
:host{display:block}[part=header]::-webkit-details-marker{display:none}[part=base]{border-color:rgba(var(--sd-accordion-color-border,var(--sd-accordion-color-text)));border-block-width:var(--sd-accordion-border-width)}[part=summary-icon] sd-7-0-0-next-7-icon{color:rgb(var(--sd-accordion__chevron-color-text,var(--sd-accordion-color-icon-fill)))}`
|
|
155
155
|
];
|
|
156
156
|
__decorateClass([
|
|
157
157
|
query('[part="base"]')
|
|
@@ -172,7 +172,7 @@ __decorateClass([
|
|
|
172
172
|
watch("open", { waitUntilFirstUpdate: true })
|
|
173
173
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
|
174
174
|
SdAccordion = __decorateClass([
|
|
175
|
-
customElement("sd-7-0-0-next-
|
|
175
|
+
customElement("sd-7-0-0-next-7-accordion")
|
|
176
176
|
], SdAccordion);
|
|
177
177
|
setDefaultAnimation("accordion.show", {
|
|
178
178
|
keyframes: [
|