@solid-design-system/components 5.15.0 → 5.15.2
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.P46TXTLQ.js → chunk.N2QTZPQZ.js} +1 -1
- package/cdn/chunks/{chunk.QEIRLXKH.js → chunk.Y6QP3CKR.js} +1 -1
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/components/navigation-item/navigation-item.js +1 -1
- package/cdn/custom-elements.json +224 -224
- package/cdn/solid-components.bundle.js +2 -2
- package/cdn/solid-components.iife.js +2 -2
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +42 -42
- package/cdn/web-types.json +66 -66
- package/cdn-versioned/chunks/chunk.2FN4O4QC.js +1 -1
- package/cdn-versioned/chunks/chunk.35Q2HMDE.js +1 -1
- package/cdn-versioned/chunks/chunk.3G25QQJC.js +1 -1
- package/cdn-versioned/chunks/chunk.3HSQ2Z2H.js +1 -1
- package/cdn-versioned/chunks/chunk.3NXEOOQY.js +1 -1
- package/cdn-versioned/chunks/chunk.3QQBA7ZB.js +1 -1
- package/cdn-versioned/chunks/chunk.5NCRVBOH.js +1 -1
- package/cdn-versioned/chunks/chunk.5WKY435J.js +1 -1
- package/cdn-versioned/chunks/chunk.64FNEKLV.js +1 -1
- package/cdn-versioned/chunks/chunk.75YRQDIX.js +1 -1
- package/cdn-versioned/chunks/chunk.7JV32P5Q.js +1 -1
- package/cdn-versioned/chunks/chunk.A3ATIGVC.js +1 -1
- package/cdn-versioned/chunks/chunk.AVDTGVC2.js +1 -1
- package/cdn-versioned/chunks/chunk.B3ARBH5A.js +4 -4
- package/cdn-versioned/chunks/chunk.BUJEQKP4.js +1 -1
- package/cdn-versioned/chunks/chunk.BVQEQFOI.js +1 -1
- package/cdn-versioned/chunks/chunk.CBATEBTB.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CLJGWFHA.js +1 -1
- package/cdn-versioned/chunks/chunk.DKI2UXRQ.js +1 -1
- package/cdn-versioned/chunks/chunk.F4HX43DG.js +1 -1
- package/cdn-versioned/chunks/chunk.FT6CHNH7.js +1 -1
- package/cdn-versioned/chunks/chunk.FVYMXJRE.js +1 -1
- package/cdn-versioned/chunks/chunk.GKULTMOH.js +1 -1
- package/cdn-versioned/chunks/chunk.GYYHNTEP.js +1 -1
- package/cdn-versioned/chunks/chunk.HMHMBWUC.js +1 -1
- package/cdn-versioned/chunks/chunk.IARZ5WX7.js +2 -2
- package/cdn-versioned/chunks/chunk.IHKACSKZ.js +1 -1
- package/cdn-versioned/chunks/chunk.KD5YA4NW.js +1 -1
- package/cdn-versioned/chunks/chunk.KEJGWWON.js +1 -1
- package/cdn-versioned/chunks/chunk.KTS2L7KB.js +1 -1
- package/cdn-versioned/chunks/chunk.KUNW6IVR.js +1 -1
- package/cdn-versioned/chunks/chunk.KVLS3OE7.js +1 -1
- package/cdn-versioned/chunks/chunk.LMYU4GM4.js +1 -1
- package/cdn-versioned/chunks/chunk.MCRPEKBH.js +1 -1
- package/cdn-versioned/chunks/{chunk.P46TXTLQ.js → chunk.N2QTZPQZ.js} +1 -1
- package/cdn-versioned/chunks/chunk.N7TPWVK3.js +1 -1
- package/cdn-versioned/chunks/chunk.NMJKLBZG.js +1 -1
- package/cdn-versioned/chunks/chunk.NMZIXMMF.js +1 -1
- package/cdn-versioned/chunks/chunk.NOCXFEZL.js +1 -1
- package/cdn-versioned/chunks/chunk.NQF6SSZQ.js +1 -1
- package/cdn-versioned/chunks/chunk.O7S6H4U5.js +1 -1
- package/cdn-versioned/chunks/chunk.OGCPYUUV.js +1 -1
- package/cdn-versioned/chunks/chunk.PM5HD6JE.js +1 -1
- package/cdn-versioned/chunks/chunk.QHS7ZRVI.js +1 -1
- package/cdn-versioned/chunks/chunk.QY23RB35.js +1 -1
- package/cdn-versioned/chunks/chunk.R4E7AJDS.js +1 -1
- package/cdn-versioned/chunks/chunk.S2746Y7L.js +1 -1
- package/cdn-versioned/chunks/chunk.SX7AMKP2.js +2 -2
- package/cdn-versioned/chunks/chunk.TPVQ7ZU3.js +1 -1
- package/cdn-versioned/chunks/chunk.VINV25A7.js +1 -1
- package/cdn-versioned/chunks/chunk.VPECZPLY.js +1 -1
- package/cdn-versioned/chunks/chunk.VVM6Q5W5.js +4 -4
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WOVNF4UB.js +1 -1
- package/cdn-versioned/chunks/chunk.X67M4VEV.js +1 -1
- package/cdn-versioned/chunks/{chunk.QEIRLXKH.js → chunk.Y6QP3CKR.js} +1 -1
- package/cdn-versioned/chunks/chunk.YGMAKCAO.js +1 -1
- package/cdn-versioned/chunks/chunk.Z2YNXRLX.js +1 -1
- package/cdn-versioned/chunks/chunk.Z5LJ5HLC.js +1 -1
- package/cdn-versioned/chunks/chunk.ZEI6MVG3.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/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/checkbox.js +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/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/navigation-item/navigation-item.js +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/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +457 -457
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +14 -14
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +14 -14
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +131 -131
- package/cdn-versioned/web-types.json +217 -217
- package/dist/chunks/{chunk.RQVQQ7ZE.js → chunk.T5YQM2UK.js} +1 -1
- package/dist/chunks/{chunk.JQJXSQKT.js → chunk.ZOGRR75S.js} +4 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/navigation-item/navigation-item.js +1 -1
- package/dist/custom-elements.json +224 -224
- package/dist/solid-components.js +2 -2
- package/dist/vscode.html-custom-data.json +42 -42
- package/dist/web-types.json +66 -66
- package/dist-versioned/chunks/chunk.26VYQIOD.js +3 -3
- package/dist-versioned/chunks/chunk.2MJJHZR4.js +24 -24
- package/dist-versioned/chunks/chunk.32WTYFY6.js +4 -4
- package/dist-versioned/chunks/chunk.37LBEMXS.js +12 -12
- package/dist-versioned/chunks/chunk.37TNCACC.js +2 -2
- package/dist-versioned/chunks/chunk.3EQ2WOVC.js +2 -2
- package/dist-versioned/chunks/chunk.4FYYKKBL.js +3 -3
- package/dist-versioned/chunks/chunk.4I4QBVGB.js +3 -3
- package/dist-versioned/chunks/chunk.5KQPPIBZ.js +2 -2
- package/dist-versioned/chunks/chunk.5LLVB6R3.js +5 -5
- package/dist-versioned/chunks/chunk.5PM33S4N.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.7YQJWIYJ.js +1 -1
- package/dist-versioned/chunks/chunk.AE3WPKVR.js +1 -1
- package/dist-versioned/chunks/chunk.AHMEVJMX.js +1 -1
- package/dist-versioned/chunks/chunk.ALVVYYIR.js +1 -1
- package/dist-versioned/chunks/chunk.ANOMYZE3.js +11 -11
- package/dist-versioned/chunks/chunk.B3PDWSAO.js +2 -2
- package/dist-versioned/chunks/chunk.B4AW33FC.js +1 -1
- package/dist-versioned/chunks/chunk.B6FL47S6.js +2 -2
- package/dist-versioned/chunks/chunk.BA3MSKPQ.js +5 -5
- package/dist-versioned/chunks/chunk.BDUEFRPO.js +2 -2
- package/dist-versioned/chunks/chunk.BJ6QDKVA.js +4 -4
- package/dist-versioned/chunks/chunk.BMFACTFH.js +3 -3
- package/dist-versioned/chunks/chunk.C332XERU.js +2 -2
- package/dist-versioned/chunks/chunk.CNDCBFFV.js +1 -1
- package/dist-versioned/chunks/chunk.CS6G3MPN.js +2 -2
- package/dist-versioned/chunks/chunk.DIXRYCRP.js +1 -1
- package/dist-versioned/chunks/chunk.EYGJ6QWJ.js +1 -1
- package/dist-versioned/chunks/chunk.GGCTLJ4D.js +2 -2
- package/dist-versioned/chunks/chunk.GIS5TWPR.js +1 -1
- package/dist-versioned/chunks/chunk.HMK6KRAR.js +6 -6
- package/dist-versioned/chunks/chunk.HV3AJIJO.js +1 -1
- package/dist-versioned/chunks/chunk.I2LO4IGY.js +3 -3
- package/dist-versioned/chunks/chunk.JW5YX4GK.js +2 -2
- package/dist-versioned/chunks/chunk.K2DJQDJ4.js +1 -1
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KNWAH4Z5.js +1 -1
- package/dist-versioned/chunks/chunk.KPWKRZGL.js +14 -14
- package/dist-versioned/chunks/chunk.KQLO4TZ5.js +2 -2
- package/dist-versioned/chunks/chunk.LGELFCZP.js +2 -2
- package/dist-versioned/chunks/chunk.MHLZ7GKR.js +12 -12
- package/dist-versioned/chunks/chunk.NAFCDIL3.js +26 -26
- package/dist-versioned/chunks/chunk.NFY6NE6Z.js +2 -2
- package/dist-versioned/chunks/chunk.NXS7DO7N.js +1 -1
- package/dist-versioned/chunks/chunk.PBEPE2U7.js +2 -2
- package/dist-versioned/chunks/chunk.QCA2GRRO.js +5 -5
- package/dist-versioned/chunks/chunk.RUNTBTHS.js +1 -1
- package/dist-versioned/chunks/chunk.SGJLP4HM.js +2 -2
- package/dist-versioned/chunks/chunk.SMMMT4SZ.js +8 -8
- package/dist-versioned/chunks/chunk.SRLNYSZB.js +5 -5
- package/dist-versioned/chunks/chunk.SV7PKNLF.js +4 -4
- package/dist-versioned/chunks/{chunk.RQVQQ7ZE.js → chunk.T5YQM2UK.js} +7 -7
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.VGC5A42Q.js +1 -1
- package/dist-versioned/chunks/chunk.WFIIU6PJ.js +3 -3
- package/dist-versioned/chunks/chunk.WUIOLD72.js +6 -6
- package/dist-versioned/chunks/chunk.XCQC3F3H.js +3 -3
- package/dist-versioned/chunks/chunk.XWZNY4BH.js +3 -3
- package/dist-versioned/chunks/chunk.ZK4EFZJB.js +1 -1
- package/dist-versioned/chunks/{chunk.JQJXSQKT.js → chunk.ZOGRR75S.js} +7 -4
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/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/checkbox.js +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/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/navigation-item/navigation-item.js +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/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +457 -457
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +131 -131
- package/dist-versioned/web-types.json +217 -217
- package/package.json +1 -1
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": "5.15.
|
|
4
|
+
"version": "5.15.2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -686,6 +686,71 @@
|
|
|
686
686
|
"events": []
|
|
687
687
|
}
|
|
688
688
|
},
|
|
689
|
+
{
|
|
690
|
+
"name": "sd-breadcrumb-item",
|
|
691
|
+
"description": "An individual breadcrumb item for use exclusively within the `sd-breadcrumb`.\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 breadcrumb label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
692
|
+
"doc-url": "",
|
|
693
|
+
"attributes": [
|
|
694
|
+
{
|
|
695
|
+
"name": "href",
|
|
696
|
+
"description": "When not set, the breadcrumb will render as disabled.",
|
|
697
|
+
"value": { "type": "string", "default": "''" }
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"name": "target",
|
|
701
|
+
"description": "Tells the browser where to open the link. Only used when `href` is present.",
|
|
702
|
+
"value": { "type": "'_blank' | '_parent' | '_self' | '_top'" }
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "current",
|
|
706
|
+
"description": "When set, the attribute `aria-current=\"page\"` will be applied",
|
|
707
|
+
"value": { "type": "boolean", "default": "false" }
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "dir",
|
|
711
|
+
"description": "The element's directionality.",
|
|
712
|
+
"value": { "type": "'ltr' | 'rtl' | 'auto'" }
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"name": "lang",
|
|
716
|
+
"description": "The element's language.",
|
|
717
|
+
"value": { "type": "string" }
|
|
718
|
+
}
|
|
719
|
+
],
|
|
720
|
+
"slots": [{ "name": "", "description": "The breadcrumb label." }],
|
|
721
|
+
"events": [],
|
|
722
|
+
"js": {
|
|
723
|
+
"properties": [
|
|
724
|
+
{ "name": "localize" },
|
|
725
|
+
{
|
|
726
|
+
"name": "href",
|
|
727
|
+
"description": "When not set, the breadcrumb will render as disabled.",
|
|
728
|
+
"type": "string"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "target",
|
|
732
|
+
"description": "Tells the browser where to open the link. Only used when `href` is present.",
|
|
733
|
+
"type": "'_blank' | '_parent' | '_self' | '_top'"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"name": "current",
|
|
737
|
+
"description": "When set, the attribute `aria-current=\"page\"` will be applied",
|
|
738
|
+
"type": "boolean"
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"name": "dir",
|
|
742
|
+
"description": "The element's directionality.",
|
|
743
|
+
"type": "'ltr' | 'rtl' | 'auto'"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"name": "lang",
|
|
747
|
+
"description": "The element's language.",
|
|
748
|
+
"type": "string"
|
|
749
|
+
}
|
|
750
|
+
],
|
|
751
|
+
"events": []
|
|
752
|
+
}
|
|
753
|
+
},
|
|
689
754
|
{
|
|
690
755
|
"name": "sd-button",
|
|
691
756
|
"description": "Buttons represent actions that are available to the user.\n---\n\n\n### **Events:**\n - **sd-blur** - Emitted when the button loses focus.\n- **sd-focus** - Emitted when the button gains focus.\n- **sd-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show the browser's validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\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 button's label.\n- **icon-left** - A prefix icon or similar element.\n- **icon-right** - A suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The button's label.\n- **icon-right** - The container that wraps the right icon area.\n- **motion-wrapper** - The container that wraps the motion animation.",
|
|
@@ -5820,71 +5885,6 @@
|
|
|
5820
5885
|
"events": []
|
|
5821
5886
|
}
|
|
5822
5887
|
},
|
|
5823
|
-
{
|
|
5824
|
-
"name": "sd-breadcrumb-item",
|
|
5825
|
-
"description": "An individual breadcrumb item for use exclusively within the `sd-breadcrumb`.\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 breadcrumb label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
5826
|
-
"doc-url": "",
|
|
5827
|
-
"attributes": [
|
|
5828
|
-
{
|
|
5829
|
-
"name": "href",
|
|
5830
|
-
"description": "When not set, the breadcrumb will render as disabled.",
|
|
5831
|
-
"value": { "type": "string", "default": "''" }
|
|
5832
|
-
},
|
|
5833
|
-
{
|
|
5834
|
-
"name": "target",
|
|
5835
|
-
"description": "Tells the browser where to open the link. Only used when `href` is present.",
|
|
5836
|
-
"value": { "type": "'_blank' | '_parent' | '_self' | '_top'" }
|
|
5837
|
-
},
|
|
5838
|
-
{
|
|
5839
|
-
"name": "current",
|
|
5840
|
-
"description": "When set, the attribute `aria-current=\"page\"` will be applied",
|
|
5841
|
-
"value": { "type": "boolean", "default": "false" }
|
|
5842
|
-
},
|
|
5843
|
-
{
|
|
5844
|
-
"name": "dir",
|
|
5845
|
-
"description": "The element's directionality.",
|
|
5846
|
-
"value": { "type": "'ltr' | 'rtl' | 'auto'" }
|
|
5847
|
-
},
|
|
5848
|
-
{
|
|
5849
|
-
"name": "lang",
|
|
5850
|
-
"description": "The element's language.",
|
|
5851
|
-
"value": { "type": "string" }
|
|
5852
|
-
}
|
|
5853
|
-
],
|
|
5854
|
-
"slots": [{ "name": "", "description": "The breadcrumb label." }],
|
|
5855
|
-
"events": [],
|
|
5856
|
-
"js": {
|
|
5857
|
-
"properties": [
|
|
5858
|
-
{ "name": "localize" },
|
|
5859
|
-
{
|
|
5860
|
-
"name": "href",
|
|
5861
|
-
"description": "When not set, the breadcrumb will render as disabled.",
|
|
5862
|
-
"type": "string"
|
|
5863
|
-
},
|
|
5864
|
-
{
|
|
5865
|
-
"name": "target",
|
|
5866
|
-
"description": "Tells the browser where to open the link. Only used when `href` is present.",
|
|
5867
|
-
"type": "'_blank' | '_parent' | '_self' | '_top'"
|
|
5868
|
-
},
|
|
5869
|
-
{
|
|
5870
|
-
"name": "current",
|
|
5871
|
-
"description": "When set, the attribute `aria-current=\"page\"` will be applied",
|
|
5872
|
-
"type": "boolean"
|
|
5873
|
-
},
|
|
5874
|
-
{
|
|
5875
|
-
"name": "dir",
|
|
5876
|
-
"description": "The element's directionality.",
|
|
5877
|
-
"type": "'ltr' | 'rtl' | 'auto'"
|
|
5878
|
-
},
|
|
5879
|
-
{
|
|
5880
|
-
"name": "lang",
|
|
5881
|
-
"description": "The element's language.",
|
|
5882
|
-
"type": "string"
|
|
5883
|
-
}
|
|
5884
|
-
],
|
|
5885
|
-
"events": []
|
|
5886
|
-
}
|
|
5887
|
-
},
|
|
5888
5888
|
{
|
|
5889
5889
|
"name": "sd-step",
|
|
5890
5890
|
"description": "Steps are used inside [step groups](/components/step-group) to guide users through the steps of a process or task..\n---\n\n\n### **Events:**\n - **sd-blur** - Emitted when the button loses focus.\n- **sd-focus** - Emitted when the button gains focus.\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 step's description.\n- **label** - The step's label.\n- **index** - The step's index.\n- **circle-content** - The content inside a step circle. This could be an icon or a number.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **circle-and-tail-container** - The container that wraps the step's circle and tail.\n- **circle** - The circle that marks the step's state.\n- **tail** - The step's tail.\n- **text-container** - The container that wraps the step's label and description.\n- **label** - The step's label.\n- **description** - The step's description.",
|
|
@@ -398,10 +398,10 @@ var SdRange = class extends SolidElement {
|
|
|
398
398
|
ariaLabel = this.tooltipFormatter(value);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
return html`<sd-5-15-
|
|
401
|
+
return html`<sd-5-15-2-tooltip hoist trigger="focus" disabled="${ifDefined(this.disabled || this.visuallyDisabled || this.noTooltip ? true : void 0)}"><div id="${id}" part="thumb" role="slider" tabindex="${this.disabled || this.visuallyDisabled ? -1 : 0}" aria-disabled="${ifDefined(this.disabled || this.visuallyDisabled ? "true" : void 0)}" aria-labelledby="${ariaLabeledBy}" aria-label="${ariaLabel}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${value}" aria-valuetext="${this.tooltipFormatter(value)}" data-range-id="${rangeId}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @pointerleave="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${cx(
|
|
402
402
|
"rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",
|
|
403
403
|
this.disabled || this.visuallyDisabled ? "bg-neutral-500 outline-none" : "bg-primary hover:bg-primary-500 cursor-pointer focus-visible:focus-outline"
|
|
404
|
-
)}"></div></sd-5-15-
|
|
404
|
+
)}"></div></sd-5-15-2-tooltip>`;
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
render() {
|
|
@@ -473,7 +473,7 @@ __decorateClass([
|
|
|
473
473
|
property({ type: String })
|
|
474
474
|
], SdRange.prototype, "value", 1);
|
|
475
475
|
SdRange = __decorateClass([
|
|
476
|
-
customElement("sd-5-15-
|
|
476
|
+
customElement("sd-5-15-2-range")
|
|
477
477
|
], SdRange);
|
|
478
478
|
|
|
479
479
|
export {
|
|
@@ -54,7 +54,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super(...arguments);
|
|
56
56
|
this.formControlController = new FormControlController(this, {
|
|
57
|
-
assumeInteractionOn: ["sd-blur", "sd-5-15-
|
|
57
|
+
assumeInteractionOn: ["sd-blur", "sd-5-15-2-input"]
|
|
58
58
|
});
|
|
59
59
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
60
60
|
this.localize = new LocalizeController(this);
|
|
@@ -97,11 +97,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
97
97
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
98
98
|
};
|
|
99
99
|
this.getTag = (option) => {
|
|
100
|
-
return html`<sd-5-15-
|
|
100
|
+
return html`<sd-5-15-2-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
101
101
|
base:tag__base,
|
|
102
102
|
content:tag__content,
|
|
103
103
|
removable-indicator:tag__removable-indicator,
|
|
104
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-5-15-
|
|
104
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-5-15-2-tag>`;
|
|
105
105
|
};
|
|
106
106
|
this.handleDocumentFocusIn = (event) => {
|
|
107
107
|
const path = event.composedPath();
|
|
@@ -236,9 +236,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
236
236
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
237
237
|
};
|
|
238
238
|
return this.filteredOptions.map((item) => {
|
|
239
|
-
if (item.tagName.toLowerCase() === "sd-5-15-
|
|
239
|
+
if (item.tagName.toLowerCase() === "sd-5-15-2-optgroup") {
|
|
240
240
|
Array.from(item.children).forEach((option) => {
|
|
241
|
-
if (option.tagName.toLowerCase() === "sd-5-15-
|
|
241
|
+
if (option.tagName.toLowerCase() === "sd-5-15-2-option") {
|
|
242
242
|
renderOption(option);
|
|
243
243
|
}
|
|
244
244
|
});
|
|
@@ -258,11 +258,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
258
258
|
});
|
|
259
259
|
} else {
|
|
260
260
|
return [
|
|
261
|
-
html`<sd-5-15-
|
|
261
|
+
html`<sd-5-15-2-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
262
262
|
base:tag__base,
|
|
263
263
|
content:tag__content,
|
|
264
264
|
removable-indicator:tag__removable-indicator,
|
|
265
|
-
" 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-5-15-
|
|
265
|
+
" 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-5-15-2-tag>`
|
|
266
266
|
];
|
|
267
267
|
}
|
|
268
268
|
}
|
|
@@ -381,7 +381,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
381
381
|
}
|
|
382
382
|
handleOptionClick(event) {
|
|
383
383
|
const target = event.target;
|
|
384
|
-
const option = target.closest("sd-5-15-
|
|
384
|
+
const option = target.closest("sd-5-15-2-option");
|
|
385
385
|
const oldValue = this.value;
|
|
386
386
|
if (option && !option.disabled) {
|
|
387
387
|
if (this.multiple) {
|
|
@@ -433,7 +433,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
433
433
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
434
434
|
}
|
|
435
435
|
getAllFilteredOptions() {
|
|
436
|
-
return [...this.filteredWrapper.querySelectorAll("sd-5-15-
|
|
436
|
+
return [...this.filteredWrapper.querySelectorAll("sd-5-15-2-option")];
|
|
437
437
|
}
|
|
438
438
|
getCurrentOption() {
|
|
439
439
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -563,7 +563,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
563
563
|
clonedOption.selected = option.selected;
|
|
564
564
|
clonedOption.checkbox = option.checkbox;
|
|
565
565
|
clonedOption.size = option.size;
|
|
566
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-5-15-
|
|
566
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-5-15-2-optgroup";
|
|
567
567
|
if (!hasOptgroup) {
|
|
568
568
|
return clonedOption;
|
|
569
569
|
}
|
|
@@ -587,7 +587,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
587
587
|
this.formControlController.emitInvalidEvent(event);
|
|
588
588
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
589
589
|
}
|
|
590
|
-
/** Receives incoming event detail from sd-5-15-
|
|
590
|
+
/** Receives incoming event detail from sd-5-15-2-popup and updates local state for conditional styling. */
|
|
591
591
|
handleCurrentPlacement(e) {
|
|
592
592
|
const incomingPlacement = e.detail;
|
|
593
593
|
if (incomingPlacement) {
|
|
@@ -599,7 +599,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
599
599
|
}
|
|
600
600
|
handleUseTagsChange() {
|
|
601
601
|
const allOptions = this.getAllFilteredOptions();
|
|
602
|
-
if (customElements.get("sd-5-15-
|
|
602
|
+
if (customElements.get("sd-5-15-2-option")) {
|
|
603
603
|
allOptions.forEach((option) => {
|
|
604
604
|
option.checkbox = this.multiple;
|
|
605
605
|
});
|
|
@@ -725,8 +725,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
725
725
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
726
726
|
}
|
|
727
727
|
async handleDefaultSlotChange() {
|
|
728
|
-
if (!customElements.get("sd-5-15-
|
|
729
|
-
customElements.whenDefined("sd-5-15-
|
|
728
|
+
if (!customElements.get("sd-5-15-2-option")) {
|
|
729
|
+
customElements.whenDefined("sd-5-15-2-option").then(() => this.handleDefaultSlotChange());
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
732
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -738,10 +738,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
738
738
|
if (this.multiple) {
|
|
739
739
|
option.checkbox = true;
|
|
740
740
|
}
|
|
741
|
-
option.id = option.id || `sd-5-15-
|
|
741
|
+
option.id = option.id || `sd-5-15-2-combobox-option-${index}`;
|
|
742
742
|
});
|
|
743
743
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
744
|
-
optgroup.id = optgroup.id || `sd-5-15-
|
|
744
|
+
optgroup.id = optgroup.id || `sd-5-15-2-combobox-optgroup-${index}`;
|
|
745
745
|
});
|
|
746
746
|
await this.syncSelectedOptionsAndValue();
|
|
747
747
|
if (this.multiple) {
|
|
@@ -789,7 +789,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
789
789
|
default: "border-neutral-800"
|
|
790
790
|
}[selectState],
|
|
791
791
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
792
|
-
)}"></div><sd-5-15-
|
|
792
|
+
)}"></div><sd-5-15-2-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
793
793
|
"inline-flex relative w-full",
|
|
794
794
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
795
795
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -811,26 +811,26 @@ var SdCombobox = class extends SolidElement {
|
|
|
811
811
|
"flex justify-center",
|
|
812
812
|
iconMarginLeft,
|
|
813
813
|
this.value.length > 0 ? "visible" : "invisible"
|
|
814
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-15-
|
|
814
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-15-2-icon class="${cx("text-neutral-700", iconSize)}" name="closing-round" library="_internal"></sd-5-15-2-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-5-15-2-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="_internal" name="risk"></sd-5-15-2-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-5-15-2-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="_internal" name="status-check"></sd-5-15-2-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
815
815
|
"inline-flex ml-2 leading-[0]",
|
|
816
816
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
817
817
|
iconSize
|
|
818
|
-
)}">${this.type !== "search" ? html`<sd-5-15-
|
|
818
|
+
)}">${this.type !== "search" ? html`<sd-5-15-2-icon class="${cx(
|
|
819
819
|
"transition-transform duration-medium ease-in-out",
|
|
820
820
|
this.open ? "rotate-180" : "rotate-0"
|
|
821
|
-
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-5-15-
|
|
821
|
+
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-5-15-2-icon>` : ""}</slot>${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button"><sd-5-15-2-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-15-2-icon></button>` : html`<button class="sd-interactive combobox-button absolute top-2" @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(
|
|
822
822
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
823
823
|
this.open && "shadow transition-shadow duration-medium ease-in-out",
|
|
824
824
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
|
825
|
-
)}" 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-5-15-
|
|
825
|
+
)}" 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-5-15-2-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-1" aria-hidden="${!hasHelpText}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
826
826
|
}
|
|
827
827
|
};
|
|
828
828
|
SdCombobox.styles = [
|
|
829
829
|
...SolidElement.styles,
|
|
830
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{height:var(--sd-spacing-4,1rem);right:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{height:var(--sd-spacing-6,1.5rem);right:.85rem;width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{height:var(--sd-spacing-8,2rem);right:var(--sd-spacing-3,.75rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-5-15-
|
|
830
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{height:var(--sd-spacing-4,1rem);right:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{height:var(--sd-spacing-6,1.5rem);right:.85rem;width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{height:var(--sd-spacing-8,2rem);right:var(--sd-spacing-3,.75rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-5-15-2-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-5-15-2-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-5-15-2-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-5-15-2-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-5-15-2-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-5-15-2-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
|
831
831
|
];
|
|
832
832
|
__decorateClass([
|
|
833
|
-
query("sd-5-15-
|
|
833
|
+
query("sd-5-15-2-popup")
|
|
834
834
|
], SdCombobox.prototype, "popup", 2);
|
|
835
835
|
__decorateClass([
|
|
836
836
|
query('[part="combobox"]')
|
|
@@ -988,7 +988,7 @@ __decorateClass([
|
|
|
988
988
|
watch("open", { waitUntilFirstUpdate: true })
|
|
989
989
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
|
990
990
|
SdCombobox = __decorateClass([
|
|
991
|
-
customElement("sd-5-15-
|
|
991
|
+
customElement("sd-5-15-2-combobox")
|
|
992
992
|
], SdCombobox);
|
|
993
993
|
setDefaultAnimation("combobox.show", {
|
|
994
994
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -222,7 +222,7 @@ var SdButton = class extends SolidElement {
|
|
|
222
222
|
md: "ml-2",
|
|
223
223
|
lg: "ml-2"
|
|
224
224
|
}[this.size]
|
|
225
|
-
)}"></slot>${this.loading ? html`<sd-5-15-
|
|
225
|
+
)}"></slot>${this.loading ? html`<sd-5-15-2-loader class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-5-15-2-loader>` : ""}</${tag}>`;
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
/**
|
|
@@ -230,13 +230,13 @@ var SdButton = class extends SolidElement {
|
|
|
230
230
|
*/
|
|
231
231
|
SdButton.styles = [
|
|
232
232
|
...SolidElement.styles,
|
|
233
|
-
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto);z-index:0}::slotted(sd-5-15-
|
|
233
|
+
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto);z-index:0}::slotted(sd-5-15-2-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-5-15-2-icon),sd-5-15-2-loader{font-size:calc(var(--tw-varspacing)/2)}`
|
|
234
234
|
];
|
|
235
235
|
__decorateClass([
|
|
236
236
|
query("a, button")
|
|
237
237
|
], SdButton.prototype, "button", 2);
|
|
238
238
|
__decorateClass([
|
|
239
|
-
queryAssignedElements({ selector: "sd-5-15-
|
|
239
|
+
queryAssignedElements({ selector: "sd-5-15-2-icon" })
|
|
240
240
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
241
241
|
__decorateClass([
|
|
242
242
|
state()
|
|
@@ -302,7 +302,7 @@ __decorateClass([
|
|
|
302
302
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
303
303
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
304
304
|
SdButton = __decorateClass([
|
|
305
|
-
customElement("sd-5-15-
|
|
305
|
+
customElement("sd-5-15-2-button")
|
|
306
306
|
], SdButton);
|
|
307
307
|
|
|
308
308
|
export {
|
|
@@ -97,7 +97,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
97
97
|
* within the slotted trigger. This could be the slotted element itself, a child of the slotted element,
|
|
98
98
|
* or an element within the slotted elements shadow root.
|
|
99
99
|
*
|
|
100
|
-
* e.g. the accessible trigger of an <sd-5-15-
|
|
100
|
+
* e.g. the accessible trigger of an <sd-5-15-2-button> is a <button> located inside its shadow root.
|
|
101
101
|
*
|
|
102
102
|
* To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
|
103
103
|
* */
|
|
@@ -108,11 +108,11 @@ var SdDropdown = class extends SolidElement {
|
|
|
108
108
|
if (accessibleTrigger) {
|
|
109
109
|
switch (accessibleTrigger.tagName.toLowerCase()) {
|
|
110
110
|
// Solid buttons have to update the internal button so it's announced correctly by screen readers
|
|
111
|
-
case "sd-5-15-
|
|
112
|
-
case "sd-5-15-
|
|
111
|
+
case "sd-5-15-2-button":
|
|
112
|
+
case "sd-5-15-2-icon-button":
|
|
113
113
|
target = accessibleTrigger.button;
|
|
114
114
|
break;
|
|
115
|
-
case "sd-5-15-
|
|
115
|
+
case "sd-5-15-2-navigation-item":
|
|
116
116
|
target = accessibleTrigger.button;
|
|
117
117
|
break;
|
|
118
118
|
default:
|
|
@@ -136,7 +136,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
getMenu() {
|
|
139
|
-
return this.panel.assignedElements({ flatten: true }).find((el) => el.tagName.toLowerCase() === "sd-5-15-
|
|
139
|
+
return this.panel.assignedElements({ flatten: true }).find((el) => el.tagName.toLowerCase() === "sd-5-15-2-menu");
|
|
140
140
|
}
|
|
141
141
|
handleKeyDown(event) {
|
|
142
142
|
if (this.open && event.key === "Escape") {
|
|
@@ -148,7 +148,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
148
148
|
handleDocumentKeyDown(event) {
|
|
149
149
|
var _a;
|
|
150
150
|
if (event.key === "Tab") {
|
|
151
|
-
if (this.open && ((_a = document.activeElement) == null ? void 0 : _a.tagName.toLowerCase()) === "sd-5-15-
|
|
151
|
+
if (this.open && ((_a = document.activeElement) == null ? void 0 : _a.tagName.toLowerCase()) === "sd-5-15-2-menu-item") {
|
|
152
152
|
event.preventDefault();
|
|
153
153
|
this.hide();
|
|
154
154
|
this.focusOnTrigger();
|
|
@@ -174,7 +174,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
174
174
|
}
|
|
175
175
|
handlePanelSelect(event) {
|
|
176
176
|
const target = event.target;
|
|
177
|
-
if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === "sd-5-15-
|
|
177
|
+
if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === "sd-5-15-2-menu") {
|
|
178
178
|
this.hide();
|
|
179
179
|
this.focusOnTrigger();
|
|
180
180
|
}
|
|
@@ -256,7 +256,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
256
256
|
}
|
|
257
257
|
addOpenListeners() {
|
|
258
258
|
this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
|
|
259
|
-
this.panel.addEventListener("sd-5-15-
|
|
259
|
+
this.panel.addEventListener("sd-5-15-2-select", this.handlePanelSelect);
|
|
260
260
|
this.panel.addEventListener("keydown", this.handleKeyDown);
|
|
261
261
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
262
262
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
@@ -264,7 +264,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
264
264
|
removeOpenListeners() {
|
|
265
265
|
if (this.panel) {
|
|
266
266
|
this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
|
|
267
|
-
this.panel.removeEventListener("sd-5-15-
|
|
267
|
+
this.panel.removeEventListener("sd-5-15-2-select", this.handlePanelSelect);
|
|
268
268
|
this.panel.removeEventListener("keydown", this.handleKeyDown);
|
|
269
269
|
}
|
|
270
270
|
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
@@ -297,13 +297,13 @@ var SdDropdown = class extends SolidElement {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
render() {
|
|
300
|
-
return html`<sd-5-15-
|
|
300
|
+
return html`<sd-5-15-2-popup part="base" id="dropdown" exportparts="
|
|
301
301
|
popup:base__popup,
|
|
302
302
|
" 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(
|
|
303
303
|
"shadow bg-white block",
|
|
304
304
|
this.open ? "pointer-events-auto" : "pointer-events-none",
|
|
305
305
|
this.rounded && "rounded-md"
|
|
306
|
-
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-5-15-
|
|
306
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-5-15-2-popup>`;
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
SdDropdown.styles = [
|
|
@@ -356,7 +356,7 @@ __decorateClass([
|
|
|
356
356
|
watch("open", { waitUntilFirstUpdate: true })
|
|
357
357
|
], SdDropdown.prototype, "handleOpenChange", 1);
|
|
358
358
|
SdDropdown = __decorateClass([
|
|
359
|
-
customElement("sd-5-15-
|
|
359
|
+
customElement("sd-5-15-2-dropdown")
|
|
360
360
|
], SdDropdown);
|
|
361
361
|
setDefaultAnimation("dropdown.show", {
|
|
362
362
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -105,7 +105,7 @@ var SdStep = class extends SolidElement {
|
|
|
105
105
|
"text-lg",
|
|
106
106
|
!this.disabled && !this.current && !this.notInteractive && !this.waiting && "text-primary hover:text-primary-500 hover:fill-primary-500",
|
|
107
107
|
this.notInteractive && "text-primary"
|
|
108
|
-
)}">${!this.disabled && !this.current && !this.notInteractive && !this.waiting ? html`<sd-5-15-
|
|
108
|
+
)}">${!this.disabled && !this.current && !this.notInteractive && !this.waiting ? html`<sd-5-15-2-icon name="status-check" library="_internal" class="${cx(this.size === "sm" && "text-sm")}"></sd-5-15-2-icon>` : html`${this.index}`}</slot></${tag}>${isHorizontalInline ? html`<div class="${cx("flex flex-col gap-1 flex-1")}"><div class="${cx(
|
|
109
109
|
"flex w-full",
|
|
110
110
|
hasLabel && "gap-2",
|
|
111
111
|
this.size === "sm" && !hasDescription ? "mt-1" : "mt-3"
|
|
@@ -195,7 +195,7 @@ __decorateClass([
|
|
|
195
195
|
watch("notInteractive")
|
|
196
196
|
], SdStep.prototype, "handleInteractivityChange", 1);
|
|
197
197
|
SdStep = __decorateClass([
|
|
198
|
-
customElement("sd-5-15-
|
|
198
|
+
customElement("sd-5-15-2-step")
|
|
199
199
|
], SdStep);
|
|
200
200
|
|
|
201
201
|
export {
|
|
@@ -32,7 +32,7 @@ var SdDivider = class extends SolidElement {
|
|
|
32
32
|
*/
|
|
33
33
|
SdDivider.styles = [
|
|
34
34
|
...SolidElement.styles,
|
|
35
|
-
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-5-15-
|
|
35
|
+
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-5-15-2-divider[orientation=horizontal]){display:block}:host(sd-5-15-2-divider[orientation=vertical]){display:inline-block}`
|
|
36
36
|
];
|
|
37
37
|
__decorateClass([
|
|
38
38
|
property({ type: String, reflect: true })
|
|
@@ -41,7 +41,7 @@ __decorateClass([
|
|
|
41
41
|
property({ type: Boolean, reflect: true })
|
|
42
42
|
], SdDivider.prototype, "inverted", 2);
|
|
43
43
|
SdDivider = __decorateClass([
|
|
44
|
-
customElement("sd-5-15-
|
|
44
|
+
customElement("sd-5-15-2-divider")
|
|
45
45
|
], SdDivider);
|
|
46
46
|
|
|
47
47
|
export {
|
|
@@ -208,7 +208,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
208
208
|
this.readonly ? "bg-neutral-100" : "bg-white",
|
|
209
209
|
textareaState === "disabled" || textareaState === "visuallyDisabled" ? "text-neutral-500" : "text-black"
|
|
210
210
|
)}"><textarea part="textarea" id="input" class="${cx(
|
|
211
|
-
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-15-
|
|
211
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-15-2-icon]:pe-8",
|
|
212
212
|
{
|
|
213
213
|
sm: "py-1",
|
|
214
214
|
md: "py-1",
|
|
@@ -216,7 +216,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
216
216
|
}[this.size],
|
|
217
217
|
this.disabled && "cursor-not-allowed",
|
|
218
218
|
textSize
|
|
219
|
-
)}" 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="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?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-5-15-
|
|
219
|
+
)}" 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="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?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-5-15-2-icon class="${cx("text-error absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="risk" part="invalid-icon"></sd-5-15-2-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-5-15-2-icon class="${cx("text-success absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="status-check" part="valid-icon"></sd-5-15-2-icon>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${hasHelpText ? "false" : "true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
/**
|
|
@@ -330,7 +330,7 @@ __decorateClass([
|
|
|
330
330
|
watch("value", { waitUntilFirstUpdate: true })
|
|
331
331
|
], SdTextarea.prototype, "handleValueChange", 1);
|
|
332
332
|
SdTextarea = __decorateClass([
|
|
333
|
-
customElement("sd-5-15-
|
|
333
|
+
customElement("sd-5-15-2-textarea")
|
|
334
334
|
], SdTextarea);
|
|
335
335
|
|
|
336
336
|
export {
|
|
@@ -41,16 +41,16 @@ var SdAccordionGroup = class extends SolidElement {
|
|
|
41
41
|
};
|
|
42
42
|
SdAccordionGroup.styles = [
|
|
43
43
|
...SolidElement.styles,
|
|
44
|
-
css`:host{display:block}::slotted(sd-5-15-
|
|
44
|
+
css`:host{display:block}::slotted(sd-5-15-2-accordion:not(:first-of-type)){margin-top:-1px}`
|
|
45
45
|
];
|
|
46
46
|
__decorateClass([
|
|
47
|
-
queryAssignedElements({ selector: "sd-5-15-
|
|
47
|
+
queryAssignedElements({ selector: "sd-5-15-2-accordion" })
|
|
48
48
|
], SdAccordionGroup.prototype, "_accordionsInDefaultSlot", 2);
|
|
49
49
|
__decorateClass([
|
|
50
50
|
property({ attribute: "close-others", type: Boolean, reflect: true })
|
|
51
51
|
], SdAccordionGroup.prototype, "closeOthers", 2);
|
|
52
52
|
SdAccordionGroup = __decorateClass([
|
|
53
|
-
customElement("sd-5-15-
|
|
53
|
+
customElement("sd-5-15-2-accordion-group")
|
|
54
54
|
], SdAccordionGroup);
|
|
55
55
|
|
|
56
56
|
export {
|
|
@@ -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-5-15-
|
|
97
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-15-2-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-15-2-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-5-15-2-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-15-2-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();
|
|
@@ -134,7 +134,7 @@ __decorateClass([
|
|
|
134
134
|
watch("open", { waitUntilFirstUpdate: true })
|
|
135
135
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
136
136
|
SdExpandable = __decorateClass([
|
|
137
|
-
customElement("sd-5-15-
|
|
137
|
+
customElement("sd-5-15-2-expandable")
|
|
138
138
|
], SdExpandable);
|
|
139
139
|
setDefaultAnimation("expandable.show", {
|
|
140
140
|
keyframes: [{ height: "var(--component-expandable-max-block-size, 90px)" }, { height: "auto" }],
|