@solid-design-system/components 4.0.8 → 4.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/cdn/chunks/{chunk.B6I2NZMP.js → chunk.DEX5DZMJ.js} +4 -4
- package/cdn/chunks/chunk.GBU4IOUX.js +10 -0
- package/{cdn-versioned/chunks/chunk.2OLKGLBS.js → cdn/chunks/chunk.IR3YQSPY.js} +1 -1
- package/cdn/chunks/chunk.NWGX5EVO.js +1 -0
- package/cdn/chunks/chunk.SRRF6RC4.js +1 -0
- package/cdn/chunks/chunk.V3VO4PD4.js +1 -0
- package/cdn/components/checkbox-group/checkbox-group.js +1 -1
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/map-marker/map-marker.js +1 -1
- package/cdn/components/radio-group/radio-group.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/textarea/textarea.js +1 -1
- package/cdn/custom-elements.json +907 -907
- package/cdn/solid-components.bundle.js +20 -20
- package/cdn/solid-components.iife.js +20 -20
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +96 -96
- package/cdn/web-types.json +231 -231
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.25ETUACJ.js +1 -1
- package/cdn-versioned/chunks/chunk.27EYM5XP.js +4 -4
- package/cdn-versioned/chunks/chunk.2H5XA4I4.js +1 -1
- package/cdn-versioned/chunks/chunk.3H546YPQ.js +1 -1
- package/cdn-versioned/chunks/chunk.4EXZ2RBI.js +1 -1
- package/cdn-versioned/chunks/chunk.4QUXWXQ7.js +1 -1
- package/cdn-versioned/chunks/chunk.5CIQRJCC.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.7ZYFSBMR.js +1 -1
- package/cdn-versioned/chunks/chunk.A772RQJV.js +1 -1
- package/cdn-versioned/chunks/chunk.ANH5V2SE.js +2 -2
- package/cdn-versioned/chunks/chunk.AS7L23H2.js +2 -2
- package/cdn-versioned/chunks/chunk.B3H3PR6Y.js +1 -1
- package/cdn-versioned/chunks/chunk.B5YKUN6P.js +1 -1
- package/cdn-versioned/chunks/chunk.BAO3UVTY.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.D4RLVVDK.js +1 -1
- package/cdn-versioned/chunks/chunk.DEX5DZMJ.js +11 -0
- package/cdn-versioned/chunks/chunk.DUM4IQT6.js +1 -1
- package/cdn-versioned/chunks/chunk.EDD4HHHP.js +1 -1
- package/cdn-versioned/chunks/chunk.EJKLI2Q4.js +1 -1
- package/cdn-versioned/chunks/chunk.EP7OA5FU.js +1 -1
- package/cdn-versioned/chunks/chunk.F4GGY7NW.js +1 -1
- package/cdn-versioned/chunks/chunk.GBU4IOUX.js +10 -0
- package/cdn-versioned/chunks/chunk.GNYJN5QM.js +3 -3
- package/cdn-versioned/chunks/chunk.GQU4LYQ6.js +1 -1
- package/cdn-versioned/chunks/chunk.GX6NOXTL.js +1 -1
- package/{cdn/chunks/chunk.2OLKGLBS.js → cdn-versioned/chunks/chunk.IR3YQSPY.js} +1 -1
- package/cdn-versioned/chunks/chunk.JUGW2WJP.js +1 -1
- package/cdn-versioned/chunks/chunk.LPXG67S4.js +1 -1
- package/cdn-versioned/chunks/chunk.LQZOBUFT.js +1 -1
- package/cdn-versioned/chunks/chunk.MOQCXANY.js +2 -2
- package/cdn-versioned/chunks/chunk.N5OYRZY6.js +1 -1
- package/cdn-versioned/chunks/chunk.NWGX5EVO.js +1 -0
- package/cdn-versioned/chunks/chunk.OCT5SOOS.js +1 -1
- package/cdn-versioned/chunks/chunk.PPMFZ77L.js +1 -1
- package/cdn-versioned/chunks/chunk.QOQO2KP5.js +1 -1
- package/cdn-versioned/chunks/chunk.QV7OIYLT.js +1 -1
- package/cdn-versioned/chunks/chunk.QWPCVRMH.js +1 -1
- package/cdn-versioned/chunks/chunk.SJ2JO4KS.js +1 -1
- package/cdn-versioned/chunks/chunk.SRRF6RC4.js +1 -0
- package/cdn-versioned/chunks/chunk.SWUGEKNC.js +1 -1
- package/cdn-versioned/chunks/chunk.TR52VDPR.js +1 -1
- package/cdn-versioned/chunks/chunk.U5SOEJO4.js +1 -1
- package/cdn-versioned/chunks/chunk.V3VO4PD4.js +1 -0
- package/cdn-versioned/chunks/chunk.V3WIIJLB.js +1 -1
- package/cdn-versioned/chunks/chunk.VYV6SKST.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WADGCWRK.js +1 -1
- package/cdn-versioned/chunks/chunk.WNV6OGRG.js +1 -1
- package/cdn-versioned/chunks/chunk.WVYVGVBF.js +1 -1
- package/cdn-versioned/chunks/chunk.Y67MAFTR.js +1 -1
- package/cdn-versioned/chunks/chunk.ZWWTEE7R.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
- 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/input/input.js +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.js +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/cdn-versioned/components/radio-group/radio-group.js +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +4 -4
- package/cdn-versioned/components/select/select.js +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/textarea/textarea.js +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 +1101 -1101
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +22 -22
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +22 -22
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +173 -173
- package/cdn-versioned/web-types.json +364 -364
- package/dist/chunks/{chunk.BJIZPRT4.js → chunk.4SBQOWLU.js} +2 -1
- package/dist/chunks/{chunk.L32THKSR.js → chunk.5FOKRIWL.js} +4 -2
- package/dist/chunks/{chunk.UTSM3BM3.js → chunk.D3I3AZEX.js} +6 -1
- package/dist/chunks/{chunk.HP2TVELZ.js → chunk.I5ZJV32M.js} +3 -3
- package/dist/chunks/{chunk.Y7254YJM.js → chunk.RSPK767T.js} +4 -2
- package/dist/chunks/{chunk.XQNY7RZD.js → chunk.USMGTQQG.js} +4 -2
- package/dist/components/checkbox-group/checkbox-group.js +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/map-marker/map-marker.js +1 -1
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/custom-elements.json +907 -907
- package/dist/solid-components.js +6 -6
- package/dist/vscode.html-custom-data.json +96 -96
- package/dist/web-types.json +231 -231
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/chunk.274HT4QS.js +3 -3
- package/dist-versioned/chunks/chunk.2FXKQI26.js +2 -2
- package/dist-versioned/chunks/chunk.4MHQ63NW.js +26 -26
- package/dist-versioned/chunks/chunk.4Q7KKH5Z.js +2 -2
- package/dist-versioned/chunks/{chunk.BJIZPRT4.js → chunk.4SBQOWLU.js} +7 -6
- package/dist-versioned/chunks/{chunk.L32THKSR.js → chunk.5FOKRIWL.js} +7 -5
- package/dist-versioned/chunks/chunk.674S2Z6M.js +1 -1
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.7E7C4YEQ.js +3 -3
- package/dist-versioned/chunks/chunk.A5S7GZJI.js +3 -3
- package/dist-versioned/chunks/chunk.A625ONY2.js +2 -2
- package/dist-versioned/chunks/chunk.ACST636J.js +1 -1
- package/dist-versioned/chunks/chunk.AJ7V76EG.js +1 -1
- package/dist-versioned/chunks/chunk.AKF4KQEW.js +2 -2
- package/dist-versioned/chunks/chunk.AQZSZKBJ.js +13 -13
- package/dist-versioned/chunks/chunk.CCQCEONR.js +2 -2
- package/dist-versioned/chunks/chunk.D26WCHLT.js +6 -6
- package/dist-versioned/chunks/{chunk.UTSM3BM3.js → chunk.D3I3AZEX.js} +19 -14
- package/dist-versioned/chunks/chunk.DPY2TYIS.js +9 -9
- package/dist-versioned/chunks/chunk.DU3O42BH.js +2 -2
- package/dist-versioned/chunks/chunk.EH2FHVPN.js +3 -3
- package/dist-versioned/chunks/chunk.F63YFNZS.js +5 -5
- package/dist-versioned/chunks/chunk.FFKZQXJ2.js +2 -2
- package/dist-versioned/chunks/chunk.FTXUZOXH.js +2 -2
- package/dist-versioned/chunks/chunk.H5ARRBLT.js +2 -2
- package/dist-versioned/chunks/chunk.H5BDO4H5.js +11 -11
- package/dist-versioned/chunks/chunk.HFHUY7YD.js +1 -1
- package/dist-versioned/chunks/{chunk.HP2TVELZ.js → chunk.I5ZJV32M.js} +4 -4
- package/dist-versioned/chunks/chunk.IN7RNHBF.js +1 -1
- package/dist-versioned/chunks/chunk.JIWTAZZS.js +5 -5
- package/dist-versioned/chunks/chunk.JZB2D4IZ.js +1 -1
- package/dist-versioned/chunks/chunk.K3JCC7KV.js +5 -5
- package/dist-versioned/chunks/chunk.KH4M6HPE.js +2 -2
- package/dist-versioned/chunks/chunk.KPA6BEFU.js +5 -5
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.LZA2QYUU.js +1 -1
- package/dist-versioned/chunks/chunk.NUIZDE7R.js +1 -1
- package/dist-versioned/chunks/chunk.OBWOMZNU.js +2 -2
- package/dist-versioned/chunks/chunk.OMBVLHXJ.js +1 -1
- package/dist-versioned/chunks/chunk.OR7JTZLE.js +2 -2
- package/dist-versioned/chunks/chunk.OZU372TI.js +2 -2
- package/dist-versioned/chunks/chunk.PRXP5CUW.js +5 -5
- package/dist-versioned/chunks/chunk.PT7MDSWH.js +1 -1
- package/dist-versioned/chunks/chunk.QTFIZJGB.js +2 -2
- package/dist-versioned/chunks/chunk.QUYKT56M.js +1 -1
- package/dist-versioned/chunks/{chunk.Y7254YJM.js → chunk.RSPK767T.js} +6 -4
- package/dist-versioned/chunks/chunk.SNCHAQYL.js +4 -4
- package/dist-versioned/chunks/chunk.TGJ2SBPH.js +6 -6
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/{chunk.XQNY7RZD.js → chunk.USMGTQQG.js} +33 -31
- package/dist-versioned/chunks/chunk.VTUCPGYW.js +1 -1
- package/dist-versioned/chunks/chunk.X2PI2F35.js +1 -1
- package/dist-versioned/chunks/chunk.XL2PSGM5.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/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/checkbox-group/checkbox-group.js +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +4 -4
- 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/input/input.js +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.js +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/dist-versioned/components/radio-group/radio-group.js +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +4 -4
- package/dist-versioned/components/select/select.js +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/textarea/textarea.js +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 +1101 -1101
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +6 -6
- package/dist-versioned/vscode.html-custom-data.json +173 -173
- package/dist-versioned/web-types.json +364 -364
- package/package.json +3 -3
- package/cdn/chunks/chunk.A63P52TG.js +0 -1
- package/cdn/chunks/chunk.QA3NVZY4.js +0 -1
- package/cdn/chunks/chunk.UCTR6UM6.js +0 -1
- package/cdn/chunks/chunk.WG3IQMLL.js +0 -10
- package/cdn-versioned/chunks/chunk.A63P52TG.js +0 -1
- package/cdn-versioned/chunks/chunk.B6I2NZMP.js +0 -11
- package/cdn-versioned/chunks/chunk.QA3NVZY4.js +0 -1
- package/cdn-versioned/chunks/chunk.UCTR6UM6.js +0 -1
- package/cdn-versioned/chunks/chunk.WG3IQMLL.js +0 -10
@@ -54,6 +54,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
54
54
|
const hasLabelSlot = this.hasSlotController.test("label");
|
55
55
|
const hasLabel = this.label ? true : hasLabelSlot;
|
56
56
|
const defaultSlot = html`<slot @slotchange="${this.syncCheckboxes}"></slot>`;
|
57
|
+
const hasTooltip = this.hasSlotController.test("tooltip");
|
57
58
|
return html`<fieldset part="form-control" class="${cx(
|
58
59
|
"border-0 p-0 m-0",
|
59
60
|
{
|
@@ -62,7 +63,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
62
63
|
md: "text-base",
|
63
64
|
lg: "text-base"
|
64
65
|
}[this.size]
|
65
|
-
)}" role="group" aria-labelledby="label"
|
66
|
+
)}" role="group" aria-labelledby="label">${hasLabel || hasTooltip ? html`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${cx("p-0 font-bold leading-normal text-black", hasLabel ? "flex" : "hidden")}" aria-hidden="${hasLabel ? "false" : "true"}"><slot name="label">${this.label}</slot></label> ${hasTooltip ? html`<slot name="tooltip"></slot>` : ""}</div>` : null}<div part="form-control-input" class="${cx(
|
66
67
|
{
|
67
68
|
vertical: "flex flex-col",
|
68
69
|
horizontal: "flex flex-row"
|
@@ -328,11 +328,13 @@ var SdInput = class extends SolidElement {
|
|
328
328
|
helpText: this.hasSlotController.test("help-text"),
|
329
329
|
description: this.hasSlotController.test("description"),
|
330
330
|
left: this.hasSlotController.test("left"),
|
331
|
-
right: this.hasSlotController.test("right")
|
331
|
+
right: this.hasSlotController.test("right"),
|
332
|
+
tooltip: this.hasSlotController.test("tooltip")
|
332
333
|
};
|
333
334
|
const hasLabel = this.label ? true : !!slots["label"];
|
334
335
|
const hasHelpText = this.helpText ? true : !!slots["helpText"];
|
335
336
|
const hasClearIcon = this.clearable && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
|
337
|
+
const hasTooltip = !!slots["tooltip"];
|
336
338
|
const inputState = this.disabled ? "disabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
337
339
|
const textSize = this.size === "sm" ? "text-sm" : "text-base";
|
338
340
|
const borderColor = {
|
@@ -352,7 +354,7 @@ var SdInput = class extends SolidElement {
|
|
352
354
|
md: "text-lg",
|
353
355
|
lg: "text-xl"
|
354
356
|
}[this.size];
|
355
|
-
return html`<div part="form-control" class="${cx(this.disabled && "pointer-events-none")}"
|
357
|
+
return html`<div part="form-control" class="${cx(this.disabled && "pointer-events-none")}">${hasLabel || hasTooltip ? html`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${cx(hasLabel ? "inline-block" : "hidden", textSize)}" for="input" aria-hidden="${hasLabel ? "false" : "true"}"><slot name="label">${this.label}</slot></label> ${slots["tooltip"] ? html`<slot name="tooltip"></slot>` : ""}</div>` : null}<div part="form-control-input" class="relative w-full"><div part="border" class="${cx("absolute w-full h-full pointer-events-none border rounded-default", borderColor)}"></div><div part="base" class="${cx(
|
356
358
|
"px-4 flex flex-row items-center rounded-default transition-all",
|
357
359
|
// Vertical Padding
|
358
360
|
this.size === "lg" ? "py-2" : "py-1",
|
@@ -244,6 +244,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
244
244
|
render() {
|
245
245
|
const hasLabelSlot = this.hasSlotController.test("label");
|
246
246
|
const hasLabel = this.label ? true : !!hasLabelSlot;
|
247
|
+
const hasTooltipSlot = this.hasSlotController.test("tooltip");
|
247
248
|
const defaultSlot = html`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;
|
248
249
|
return html`<fieldset part="form-control" class="${cx(
|
249
250
|
"border-0 p-0 m-0 flex flex-col",
|
@@ -253,7 +254,11 @@ var SdRadioGroup = class extends SolidElement {
|
|
253
254
|
md: "text-base",
|
254
255
|
lg: "text-base"
|
255
256
|
}[this.size]
|
256
|
-
)}" role="radiogroup" aria-describedby="invalid-message"
|
257
|
+
)}" role="radiogroup" aria-describedby="invalid-message">${hasLabelSlot || hasTooltipSlot ? html`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${cx(
|
258
|
+
"p-0 leading-normal text-black text-left",
|
259
|
+
!hasLabel && "hidden",
|
260
|
+
this.boldLabel && "font-bold"
|
261
|
+
)}" @click="${this.focus}" aria-hidden="${hasLabel ? "false" : "true"}"><slot name="label">${this.label}</slot></legend>${hasTooltipSlot ? html`<slot name="tooltip"></slot>` : ""}</div>` : null}<div part="form-control-input" class="${cx(
|
257
262
|
"flex",
|
258
263
|
{
|
259
264
|
vertical: "flex-col",
|
@@ -56,8 +56,8 @@ var SdMapMarker = class extends SolidElement {
|
|
56
56
|
this.variant === "place" && !this.notInteractive && "hover:fill-primary-100",
|
57
57
|
{
|
58
58
|
cluster: "fill-primary",
|
59
|
-
main: "fill-accent
|
60
|
-
place: "
|
59
|
+
main: "fill-accent",
|
60
|
+
place: ""
|
61
61
|
}[this.variant]
|
62
62
|
)}">${this.marker[this.variant]}</div><div id="content" part="content" class="${cx("absolute self-center pointer-events-none", this.variant === "cluster" && "font-bold text-white")}"><slot></slot></div></${tag}>`;
|
63
63
|
}
|
@@ -67,7 +67,7 @@ var SdMapMarker = class extends SolidElement {
|
|
67
67
|
*/
|
68
68
|
SdMapMarker.styles = [
|
69
69
|
...SolidElement.styles,
|
70
|
-
css`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem)*var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem)*var(--map-marker-scaling,1))}`
|
70
|
+
css`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem)*var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem)*var(--map-marker-scaling,1));margin-top:calc(var(--sd-spacing-2,.5rem)*-1)}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow:drop-shadow(var(--sd-shadow,0px 1px 3px #515151));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}`
|
71
71
|
];
|
72
72
|
__decorateClass([
|
73
73
|
property({ reflect: true })
|
@@ -166,10 +166,12 @@ var SdTextarea = class extends SolidElement {
|
|
166
166
|
render() {
|
167
167
|
const slots = {
|
168
168
|
label: this.hasSlotController.test("label"),
|
169
|
-
helpText: this.hasSlotController.test("help-text")
|
169
|
+
helpText: this.hasSlotController.test("help-text"),
|
170
|
+
tooltip: this.hasSlotController.test("tooltip")
|
170
171
|
};
|
171
172
|
const hasLabel = this.label ? true : !!slots["label"];
|
172
173
|
const hasHelpText = this.helpText ? true : !!slots["helpText"];
|
174
|
+
const hasTooltip = !!slots["tooltip"];
|
173
175
|
const textareaState = this.disabled ? "disabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
174
176
|
const textSize = this.size === "sm" ? "text-sm" : "text-base";
|
175
177
|
const iconSizeMarginLeft = {
|
@@ -177,7 +179,7 @@ var SdTextarea = class extends SolidElement {
|
|
177
179
|
md: "text-lg ml-2",
|
178
180
|
lg: "text-xl ml-2"
|
179
181
|
}[this.size];
|
180
|
-
return html`<div part="form-control" class="flex flex-col h-full text-left"
|
182
|
+
return html`<div part="form-control" class="flex flex-col h-full text-left">${hasLabel || hasTooltip ? html`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${cx(hasLabel ? "inline-block" : "hidden", textSize)}" for="input" aria-hidden="${hasLabel ? "false" : "true"}"><slot name="label">${this.label}</slot></label> ${slots["tooltip"] ? html`<slot name="tooltip"></slot>` : ""}</div>` : null}<div part="form-control-input" class="${cx("relative h-full w-full", this.disabled && "cursor-not-allowed")}"><div part="border" class="${cx(
|
181
183
|
"absolute w-full h-full pointer-events-none border rounded-default",
|
182
184
|
{
|
183
185
|
disabled: "border-neutral-500",
|
@@ -571,11 +571,13 @@ var SdSelect = class extends SolidElement {
|
|
571
571
|
label: this.hasSlotController.test("label"),
|
572
572
|
clearIcon: this.hasSlotController.test("clear-icon"),
|
573
573
|
expandIcon: this.hasSlotController.test("expand-icon"),
|
574
|
-
helpText: this.hasSlotController.test("help-text")
|
574
|
+
helpText: this.hasSlotController.test("help-text"),
|
575
|
+
tooltip: this.hasSlotController.test("tooltip")
|
575
576
|
};
|
576
577
|
const hasLabel = this.label ? true : !!slots["label"];
|
577
578
|
const hasHelpText = this.helpText ? true : !!slots["helpText"];
|
578
579
|
const hasClearIcon = this.clearable && !this.disabled;
|
580
|
+
const hasTooltip = !!slots["tooltip"];
|
579
581
|
const selectState = this.disabled ? "disabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
580
582
|
const cursorStyles = this.disabled ? "cursor-not-allowed" : "cursor-pointer";
|
581
583
|
const iconMarginLeft = { sm: "ml-1", md: "ml-2", lg: "ml-2" }[this.size];
|
@@ -589,7 +591,7 @@ var SdSelect = class extends SolidElement {
|
|
589
591
|
cursorStyles,
|
590
592
|
this.size === "sm" ? "text-sm" : "text-base",
|
591
593
|
this.open && "z-50"
|
592
|
-
)}"><span class="sr-only" role="alert" aria-live="assertive">${this.deletedTagLabel}</span
|
594
|
+
)}"><span class="sr-only" role="alert" aria-live="assertive">${this.deletedTagLabel}</span> ${hasLabel || hasTooltip ? html`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${hasLabel && "inline-block"}" aria-hidden="${hasLabel ? "false" : "true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> ${slots["tooltip"] ? html`<slot name="tooltip"></slot>` : ""}</div>` : null}<div part="form-control-input" class="${cx("relative w-full bg-white", selectState === "disabled" ? "text-neutral-500" : "text-black")}"><div part="border" class="${cx(
|
593
595
|
"absolute top-0 w-full h-full pointer-events-none border rounded-default",
|
594
596
|
this.hasHover && "bg-neutral-200",
|
595
597
|
{
|