@solid-design-system/components 5.4.0 → 5.4.1
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-versioned/chunks/chunk.RKKBKOOP.js → cdn/chunks/chunk.TL3NETIH.js} +1 -1
- package/cdn/components/header/header.js +1 -1
- package/cdn/custom-elements.json +181 -181
- package/cdn/solid-components.bundle.js +11 -11
- package/cdn/solid-components.iife.js +11 -11
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- 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.2GZJLMSG.js +1 -1
- package/cdn-versioned/chunks/chunk.2QJJ2GGX.js +1 -1
- package/cdn-versioned/chunks/chunk.3CLAHKN2.js +1 -1
- package/cdn-versioned/chunks/chunk.3V26CQAC.js +1 -1
- package/cdn-versioned/chunks/chunk.4TOZCRMQ.js +4 -4
- package/cdn-versioned/chunks/chunk.5RTTEWNK.js +1 -1
- package/cdn-versioned/chunks/chunk.5ZCX6DQM.js +1 -1
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/chunk.6IZHLO4O.js +1 -1
- package/cdn-versioned/chunks/chunk.7ADT7GXT.js +1 -1
- package/cdn-versioned/chunks/chunk.7MCN5637.js +1 -1
- package/cdn-versioned/chunks/chunk.A6OAPRBG.js +1 -1
- package/cdn-versioned/chunks/chunk.AXH5NVYQ.js +1 -1
- package/cdn-versioned/chunks/chunk.BMIYMDOW.js +1 -1
- package/cdn-versioned/chunks/chunk.BRGDAQJS.js +1 -1
- package/cdn-versioned/chunks/chunk.CDTSUOUW.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.D7A25CW2.js +4 -4
- package/cdn-versioned/chunks/chunk.FJY2VDLX.js +1 -1
- package/cdn-versioned/chunks/chunk.FJYTESL5.js +1 -1
- package/cdn-versioned/chunks/chunk.G5QO6WGI.js +1 -1
- package/cdn-versioned/chunks/chunk.GEABNT3R.js +2 -2
- package/cdn-versioned/chunks/chunk.H3HCI6UK.js +1 -1
- package/cdn-versioned/chunks/chunk.HB34ZH5G.js +1 -1
- package/cdn-versioned/chunks/chunk.J4OXKWHD.js +1 -1
- package/cdn-versioned/chunks/chunk.JFRL5PI6.js +1 -1
- package/cdn-versioned/chunks/chunk.JHLXS4RE.js +1 -1
- package/cdn-versioned/chunks/chunk.KPL3RJW5.js +1 -1
- package/cdn-versioned/chunks/chunk.LCFGG3XQ.js +1 -1
- package/cdn-versioned/chunks/chunk.M7XV42AN.js +1 -1
- package/cdn-versioned/chunks/chunk.MWXZG4SC.js +1 -1
- package/cdn-versioned/chunks/chunk.N55MQWVK.js +1 -1
- package/cdn-versioned/chunks/chunk.NV6YZ464.js +1 -1
- package/cdn-versioned/chunks/chunk.OEXEP6H5.js +1 -1
- package/cdn-versioned/chunks/chunk.OHXAZE3D.js +1 -1
- package/cdn-versioned/chunks/chunk.P5JSPSW7.js +1 -1
- package/cdn-versioned/chunks/chunk.P64YQW6Z.js +1 -1
- package/cdn-versioned/chunks/chunk.P6LTY5WA.js +1 -1
- package/cdn-versioned/chunks/chunk.PDIUVN5U.js +1 -1
- package/cdn-versioned/chunks/chunk.PVLTPG2G.js +1 -1
- package/cdn-versioned/chunks/chunk.QP52PXLO.js +3 -3
- package/cdn-versioned/chunks/chunk.RBZIMQA5.js +1 -1
- package/cdn-versioned/chunks/chunk.SLIDD3LU.js +1 -1
- package/{cdn/chunks/chunk.RKKBKOOP.js → cdn-versioned/chunks/chunk.TL3NETIH.js} +1 -1
- package/cdn-versioned/chunks/chunk.TLLNLQPN.js +1 -1
- package/cdn-versioned/chunks/chunk.TSI5Q2JI.js +1 -1
- package/cdn-versioned/chunks/chunk.TTZGP3EJ.js +1 -1
- package/cdn-versioned/chunks/chunk.UAUT4G77.js +2 -2
- package/cdn-versioned/chunks/chunk.VT5F2LC2.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.YK3BL7Z2.js +1 -1
- package/cdn-versioned/chunks/chunk.YYONUP4L.js +1 -1
- package/cdn-versioned/chunks/chunk.ZAHVXNIZ.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/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/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/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/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 +385 -385
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +19 -19
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +19 -19
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +137 -137
- package/dist/chunks/{chunk.VVDUCRRF.js → chunk.TVLE7NUT.js} +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/custom-elements.json +181 -181
- package/dist/solid-components.js +1 -1
- package/dist/web-types.json +1 -1
- 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.23SXULLQ.js +3 -3
- package/dist-versioned/chunks/chunk.2WN7YMGY.js +6 -6
- package/dist-versioned/chunks/chunk.3AY4ZE3B.js +1 -1
- package/dist-versioned/chunks/chunk.3OJHLEDR.js +4 -4
- package/dist-versioned/chunks/chunk.4BOVS5IV.js +3 -3
- package/dist-versioned/chunks/chunk.4KY6NI4T.js +9 -9
- package/dist-versioned/chunks/chunk.55WKP7T3.js +24 -24
- package/dist-versioned/chunks/chunk.5FFIE4YZ.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6JJ6VBYS.js +2 -2
- package/dist-versioned/chunks/chunk.74LNGOSZ.js +1 -1
- package/dist-versioned/chunks/chunk.7P374LCS.js +2 -2
- package/dist-versioned/chunks/chunk.AH4JSEVL.js +1 -1
- package/dist-versioned/chunks/chunk.AQ33SHN7.js +5 -5
- package/dist-versioned/chunks/chunk.CV47NCMS.js +4 -4
- package/dist-versioned/chunks/chunk.DNIODML7.js +1 -1
- package/dist-versioned/chunks/chunk.E2HV423L.js +2 -2
- package/dist-versioned/chunks/chunk.EX6L6CQ3.js +1 -1
- package/dist-versioned/chunks/chunk.F7CEWVTD.js +2 -2
- package/dist-versioned/chunks/chunk.HO2HFXMJ.js +1 -1
- package/dist-versioned/chunks/chunk.HTULDNAU.js +11 -11
- package/dist-versioned/chunks/chunk.JWORONFM.js +1 -1
- package/dist-versioned/chunks/chunk.JWS37SX3.js +3 -3
- package/dist-versioned/chunks/chunk.KLMMEDV3.js +2 -2
- package/dist-versioned/chunks/chunk.KMM7NCFU.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.L7EUFNUL.js +5 -5
- package/dist-versioned/chunks/chunk.LA3LK5U7.js +8 -8
- package/dist-versioned/chunks/chunk.LIZZEBBC.js +5 -5
- package/dist-versioned/chunks/chunk.MKGGWQBV.js +1 -1
- package/dist-versioned/chunks/chunk.N5ISGLPU.js +1 -1
- package/dist-versioned/chunks/chunk.O5OO4ZYT.js +1 -1
- package/dist-versioned/chunks/chunk.OGZQTS5F.js +4 -4
- package/dist-versioned/chunks/chunk.OSVHP3IT.js +2 -2
- package/dist-versioned/chunks/chunk.PBPSZJYK.js +2 -2
- package/dist-versioned/chunks/chunk.PFIUB53L.js +5 -5
- package/dist-versioned/chunks/chunk.RPLU56MF.js +2 -2
- package/dist-versioned/chunks/chunk.S5CIECBU.js +2 -2
- package/dist-versioned/chunks/chunk.TBUESXVZ.js +1 -1
- package/dist-versioned/chunks/chunk.TPMPCCRV.js +3 -3
- package/dist-versioned/chunks/chunk.TQ4DIMUW.js +2 -2
- package/dist-versioned/chunks/chunk.TR7F4J6K.js +14 -14
- package/dist-versioned/chunks/{chunk.VVDUCRRF.js → chunk.TVLE7NUT.js} +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.VCDQPSR5.js +2 -2
- package/dist-versioned/chunks/chunk.WJ3R5TMO.js +1 -1
- package/dist-versioned/chunks/chunk.XNNCGTSI.js +26 -26
- package/dist-versioned/chunks/chunk.XR4CBBMX.js +1 -1
- package/dist-versioned/chunks/chunk.XVF5EILY.js +12 -12
- package/dist-versioned/chunks/chunk.Y6OGZSS6.js +2 -2
- package/dist-versioned/chunks/chunk.YLAUIXEA.js +2 -2
- package/dist-versioned/chunks/chunk.ZLD7GEOS.js +3 -3
- package/dist-versioned/chunks/chunk.ZRSPZUZY.js +6 -6
- 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/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/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/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/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 +385 -385
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +1 -1
|
@@ -59,7 +59,7 @@ var SdHeader = class extends SolidElement {
|
|
|
59
59
|
};
|
|
60
60
|
SdHeader.styles = [
|
|
61
61
|
...SolidElement.styles,
|
|
62
|
-
css`:host{display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)}:host([fixed]) header{left:var(--sd-spacing-0,0);position:fixed;top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header:after{height:var(--sd-spacing-2,.5rem);left:var(--sd-spacing-0,0);position:absolute;right:var(--sd-spacing-0,0);top:100%;--tw-content:"";background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%));content:var(--tw-content)}}[part=main]{max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px);width:var(--sd-header-inner-width)}`
|
|
62
|
+
css`:host{display:block;position:relative;z-index:var(--sd-z-index-header,600)}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)}:host([fixed]) header{left:var(--sd-spacing-0,0);position:fixed;top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header:after{height:var(--sd-spacing-2,.5rem);left:var(--sd-spacing-0,0);position:absolute;right:var(--sd-spacing-0,0);top:100%;--tw-content:"";background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%));content:var(--tw-content)}}[part=main]{max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px);width:var(--sd-header-inner-width)}`
|
|
63
63
|
];
|
|
64
64
|
__decorateClass([
|
|
65
65
|
property({ reflect: true, type: Boolean })
|
|
@@ -287,186 +287,6 @@
|
|
|
287
287
|
}
|
|
288
288
|
]
|
|
289
289
|
},
|
|
290
|
-
{
|
|
291
|
-
"kind": "javascript-module",
|
|
292
|
-
"path": "components/accordion-group/accordion-group.js",
|
|
293
|
-
"declarations": [
|
|
294
|
-
{
|
|
295
|
-
"kind": "class",
|
|
296
|
-
"description": "",
|
|
297
|
-
"name": "SdAccordionGroup",
|
|
298
|
-
"cssParts": [
|
|
299
|
-
{
|
|
300
|
-
"description": "The component's base wrapper.",
|
|
301
|
-
"name": "base"
|
|
302
|
-
}
|
|
303
|
-
],
|
|
304
|
-
"slots": [
|
|
305
|
-
{
|
|
306
|
-
"description": "The default slot where `<sd-accordion>` elements are placed.",
|
|
307
|
-
"name": ""
|
|
308
|
-
}
|
|
309
|
-
],
|
|
310
|
-
"members": [
|
|
311
|
-
{
|
|
312
|
-
"kind": "field",
|
|
313
|
-
"name": "closeOthers",
|
|
314
|
-
"type": {
|
|
315
|
-
"text": "boolean"
|
|
316
|
-
},
|
|
317
|
-
"default": "false",
|
|
318
|
-
"description": "Closes other accordions.",
|
|
319
|
-
"attribute": "close-others",
|
|
320
|
-
"reflects": true
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"kind": "field",
|
|
324
|
-
"name": "dir",
|
|
325
|
-
"type": {
|
|
326
|
-
"text": "'ltr' | 'rtl' | 'auto'"
|
|
327
|
-
},
|
|
328
|
-
"description": "The element's directionality.",
|
|
329
|
-
"attribute": "dir",
|
|
330
|
-
"inheritedFrom": {
|
|
331
|
-
"name": "SolidElement",
|
|
332
|
-
"module": "internal/solid-element.js"
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"kind": "field",
|
|
337
|
-
"name": "lang",
|
|
338
|
-
"type": {
|
|
339
|
-
"text": "string"
|
|
340
|
-
},
|
|
341
|
-
"description": "The element's language.",
|
|
342
|
-
"attribute": "lang",
|
|
343
|
-
"inheritedFrom": {
|
|
344
|
-
"name": "SolidElement",
|
|
345
|
-
"module": "internal/solid-element.js"
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
"kind": "method",
|
|
350
|
-
"name": "emit",
|
|
351
|
-
"parameters": [
|
|
352
|
-
{
|
|
353
|
-
"name": "name",
|
|
354
|
-
"type": {
|
|
355
|
-
"text": "string"
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"name": "options",
|
|
360
|
-
"optional": true,
|
|
361
|
-
"type": {
|
|
362
|
-
"text": "CustomEventInit"
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
],
|
|
366
|
-
"description": "Emits a custom event with more convenient defaults.",
|
|
367
|
-
"inheritedFrom": {
|
|
368
|
-
"name": "SolidElement",
|
|
369
|
-
"module": "internal/solid-element.js"
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"kind": "method",
|
|
374
|
-
"name": "token",
|
|
375
|
-
"return": {
|
|
376
|
-
"type": {
|
|
377
|
-
"text": "T"
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
|
-
"parameters": [
|
|
381
|
-
{
|
|
382
|
-
"name": "name",
|
|
383
|
-
"type": {
|
|
384
|
-
"text": "string"
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
"name": "fallback",
|
|
389
|
-
"type": {
|
|
390
|
-
"text": "T"
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
],
|
|
394
|
-
"description": "Retrieves the value of a css variable token.",
|
|
395
|
-
"inheritedFrom": {
|
|
396
|
-
"name": "SolidElement",
|
|
397
|
-
"module": "internal/solid-element.js"
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
],
|
|
401
|
-
"attributes": [
|
|
402
|
-
{
|
|
403
|
-
"name": "close-others",
|
|
404
|
-
"type": {
|
|
405
|
-
"text": "boolean"
|
|
406
|
-
},
|
|
407
|
-
"default": "false",
|
|
408
|
-
"description": "Closes other accordions.",
|
|
409
|
-
"fieldName": "closeOthers"
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
"name": "dir",
|
|
413
|
-
"type": {
|
|
414
|
-
"text": "'ltr' | 'rtl' | 'auto'"
|
|
415
|
-
},
|
|
416
|
-
"description": "The element's directionality.",
|
|
417
|
-
"fieldName": "dir",
|
|
418
|
-
"inheritedFrom": {
|
|
419
|
-
"name": "SolidElement",
|
|
420
|
-
"module": "src/internal/solid-element.ts"
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
"name": "lang",
|
|
425
|
-
"type": {
|
|
426
|
-
"text": "string"
|
|
427
|
-
},
|
|
428
|
-
"description": "The element's language.",
|
|
429
|
-
"fieldName": "lang",
|
|
430
|
-
"inheritedFrom": {
|
|
431
|
-
"name": "SolidElement",
|
|
432
|
-
"module": "src/internal/solid-element.ts"
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
],
|
|
436
|
-
"superclass": {
|
|
437
|
-
"name": "SolidElement",
|
|
438
|
-
"module": "/src/internal/solid-element"
|
|
439
|
-
},
|
|
440
|
-
"summary": "Short summary of the component's intended use.",
|
|
441
|
-
"documentation": "https://solid.union-investment.com/[storybook-link]/accordion-group",
|
|
442
|
-
"status": "stable",
|
|
443
|
-
"since": "1.1",
|
|
444
|
-
"dependencies": [
|
|
445
|
-
"sd-accordion"
|
|
446
|
-
],
|
|
447
|
-
"tagName": "sd-accordion-group",
|
|
448
|
-
"customElement": true
|
|
449
|
-
}
|
|
450
|
-
],
|
|
451
|
-
"exports": [
|
|
452
|
-
{
|
|
453
|
-
"kind": "js",
|
|
454
|
-
"name": "default",
|
|
455
|
-
"declaration": {
|
|
456
|
-
"name": "SdAccordionGroup",
|
|
457
|
-
"module": "components/accordion-group/accordion-group.js"
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
"kind": "custom-element-definition",
|
|
462
|
-
"name": "sd-accordion-group",
|
|
463
|
-
"declaration": {
|
|
464
|
-
"name": "SdAccordionGroup",
|
|
465
|
-
"module": "components/accordion-group/accordion-group.js"
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
]
|
|
469
|
-
},
|
|
470
290
|
{
|
|
471
291
|
"kind": "javascript-module",
|
|
472
292
|
"path": "components/animation/animation.js",
|
|
@@ -18589,12 +18409,192 @@
|
|
|
18589
18409
|
}
|
|
18590
18410
|
}
|
|
18591
18411
|
]
|
|
18412
|
+
},
|
|
18413
|
+
{
|
|
18414
|
+
"kind": "javascript-module",
|
|
18415
|
+
"path": "components/accordion-group/accordion-group.js",
|
|
18416
|
+
"declarations": [
|
|
18417
|
+
{
|
|
18418
|
+
"kind": "class",
|
|
18419
|
+
"description": "",
|
|
18420
|
+
"name": "SdAccordionGroup",
|
|
18421
|
+
"cssParts": [
|
|
18422
|
+
{
|
|
18423
|
+
"description": "The component's base wrapper.",
|
|
18424
|
+
"name": "base"
|
|
18425
|
+
}
|
|
18426
|
+
],
|
|
18427
|
+
"slots": [
|
|
18428
|
+
{
|
|
18429
|
+
"description": "The default slot where `<sd-accordion>` elements are placed.",
|
|
18430
|
+
"name": ""
|
|
18431
|
+
}
|
|
18432
|
+
],
|
|
18433
|
+
"members": [
|
|
18434
|
+
{
|
|
18435
|
+
"kind": "field",
|
|
18436
|
+
"name": "closeOthers",
|
|
18437
|
+
"type": {
|
|
18438
|
+
"text": "boolean"
|
|
18439
|
+
},
|
|
18440
|
+
"default": "false",
|
|
18441
|
+
"description": "Closes other accordions.",
|
|
18442
|
+
"attribute": "close-others",
|
|
18443
|
+
"reflects": true
|
|
18444
|
+
},
|
|
18445
|
+
{
|
|
18446
|
+
"kind": "field",
|
|
18447
|
+
"name": "dir",
|
|
18448
|
+
"type": {
|
|
18449
|
+
"text": "'ltr' | 'rtl' | 'auto'"
|
|
18450
|
+
},
|
|
18451
|
+
"description": "The element's directionality.",
|
|
18452
|
+
"attribute": "dir",
|
|
18453
|
+
"inheritedFrom": {
|
|
18454
|
+
"name": "SolidElement",
|
|
18455
|
+
"module": "internal/solid-element.js"
|
|
18456
|
+
}
|
|
18457
|
+
},
|
|
18458
|
+
{
|
|
18459
|
+
"kind": "field",
|
|
18460
|
+
"name": "lang",
|
|
18461
|
+
"type": {
|
|
18462
|
+
"text": "string"
|
|
18463
|
+
},
|
|
18464
|
+
"description": "The element's language.",
|
|
18465
|
+
"attribute": "lang",
|
|
18466
|
+
"inheritedFrom": {
|
|
18467
|
+
"name": "SolidElement",
|
|
18468
|
+
"module": "internal/solid-element.js"
|
|
18469
|
+
}
|
|
18470
|
+
},
|
|
18471
|
+
{
|
|
18472
|
+
"kind": "method",
|
|
18473
|
+
"name": "emit",
|
|
18474
|
+
"parameters": [
|
|
18475
|
+
{
|
|
18476
|
+
"name": "name",
|
|
18477
|
+
"type": {
|
|
18478
|
+
"text": "string"
|
|
18479
|
+
}
|
|
18480
|
+
},
|
|
18481
|
+
{
|
|
18482
|
+
"name": "options",
|
|
18483
|
+
"optional": true,
|
|
18484
|
+
"type": {
|
|
18485
|
+
"text": "CustomEventInit"
|
|
18486
|
+
}
|
|
18487
|
+
}
|
|
18488
|
+
],
|
|
18489
|
+
"description": "Emits a custom event with more convenient defaults.",
|
|
18490
|
+
"inheritedFrom": {
|
|
18491
|
+
"name": "SolidElement",
|
|
18492
|
+
"module": "internal/solid-element.js"
|
|
18493
|
+
}
|
|
18494
|
+
},
|
|
18495
|
+
{
|
|
18496
|
+
"kind": "method",
|
|
18497
|
+
"name": "token",
|
|
18498
|
+
"return": {
|
|
18499
|
+
"type": {
|
|
18500
|
+
"text": "T"
|
|
18501
|
+
}
|
|
18502
|
+
},
|
|
18503
|
+
"parameters": [
|
|
18504
|
+
{
|
|
18505
|
+
"name": "name",
|
|
18506
|
+
"type": {
|
|
18507
|
+
"text": "string"
|
|
18508
|
+
}
|
|
18509
|
+
},
|
|
18510
|
+
{
|
|
18511
|
+
"name": "fallback",
|
|
18512
|
+
"type": {
|
|
18513
|
+
"text": "T"
|
|
18514
|
+
}
|
|
18515
|
+
}
|
|
18516
|
+
],
|
|
18517
|
+
"description": "Retrieves the value of a css variable token.",
|
|
18518
|
+
"inheritedFrom": {
|
|
18519
|
+
"name": "SolidElement",
|
|
18520
|
+
"module": "internal/solid-element.js"
|
|
18521
|
+
}
|
|
18522
|
+
}
|
|
18523
|
+
],
|
|
18524
|
+
"attributes": [
|
|
18525
|
+
{
|
|
18526
|
+
"name": "close-others",
|
|
18527
|
+
"type": {
|
|
18528
|
+
"text": "boolean"
|
|
18529
|
+
},
|
|
18530
|
+
"default": "false",
|
|
18531
|
+
"description": "Closes other accordions.",
|
|
18532
|
+
"fieldName": "closeOthers"
|
|
18533
|
+
},
|
|
18534
|
+
{
|
|
18535
|
+
"name": "dir",
|
|
18536
|
+
"type": {
|
|
18537
|
+
"text": "'ltr' | 'rtl' | 'auto'"
|
|
18538
|
+
},
|
|
18539
|
+
"description": "The element's directionality.",
|
|
18540
|
+
"fieldName": "dir",
|
|
18541
|
+
"inheritedFrom": {
|
|
18542
|
+
"name": "SolidElement",
|
|
18543
|
+
"module": "src/internal/solid-element.ts"
|
|
18544
|
+
}
|
|
18545
|
+
},
|
|
18546
|
+
{
|
|
18547
|
+
"name": "lang",
|
|
18548
|
+
"type": {
|
|
18549
|
+
"text": "string"
|
|
18550
|
+
},
|
|
18551
|
+
"description": "The element's language.",
|
|
18552
|
+
"fieldName": "lang",
|
|
18553
|
+
"inheritedFrom": {
|
|
18554
|
+
"name": "SolidElement",
|
|
18555
|
+
"module": "src/internal/solid-element.ts"
|
|
18556
|
+
}
|
|
18557
|
+
}
|
|
18558
|
+
],
|
|
18559
|
+
"superclass": {
|
|
18560
|
+
"name": "SolidElement",
|
|
18561
|
+
"module": "/src/internal/solid-element"
|
|
18562
|
+
},
|
|
18563
|
+
"summary": "Short summary of the component's intended use.",
|
|
18564
|
+
"documentation": "https://solid.union-investment.com/[storybook-link]/accordion-group",
|
|
18565
|
+
"status": "stable",
|
|
18566
|
+
"since": "1.1",
|
|
18567
|
+
"dependencies": [
|
|
18568
|
+
"sd-accordion"
|
|
18569
|
+
],
|
|
18570
|
+
"tagName": "sd-accordion-group",
|
|
18571
|
+
"customElement": true
|
|
18572
|
+
}
|
|
18573
|
+
],
|
|
18574
|
+
"exports": [
|
|
18575
|
+
{
|
|
18576
|
+
"kind": "js",
|
|
18577
|
+
"name": "default",
|
|
18578
|
+
"declaration": {
|
|
18579
|
+
"name": "SdAccordionGroup",
|
|
18580
|
+
"module": "components/accordion-group/accordion-group.js"
|
|
18581
|
+
}
|
|
18582
|
+
},
|
|
18583
|
+
{
|
|
18584
|
+
"kind": "custom-element-definition",
|
|
18585
|
+
"name": "sd-accordion-group",
|
|
18586
|
+
"declaration": {
|
|
18587
|
+
"name": "SdAccordionGroup",
|
|
18588
|
+
"module": "components/accordion-group/accordion-group.js"
|
|
18589
|
+
}
|
|
18590
|
+
}
|
|
18591
|
+
]
|
|
18592
18592
|
}
|
|
18593
18593
|
],
|
|
18594
18594
|
"package": {
|
|
18595
18595
|
"name": "@solid-design-system/components",
|
|
18596
18596
|
"description": "Solid Design System: Components",
|
|
18597
|
-
"version": "5.4.
|
|
18597
|
+
"version": "5.4.1",
|
|
18598
18598
|
"author": "Union Investment",
|
|
18599
18599
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
18600
18600
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
package/dist/web-types.json
CHANGED
|
@@ -32,7 +32,7 @@ let SdMenu = class SdMenu extends SolidElement {
|
|
|
32
32
|
if (item.type === 'checkbox') {
|
|
33
33
|
item.checked = !item.checked;
|
|
34
34
|
}
|
|
35
|
-
this.emit('sd-5-4-
|
|
35
|
+
this.emit('sd-5-4-1-select', { detail: { item } });
|
|
36
36
|
}
|
|
37
37
|
handleKeyDown(event) {
|
|
38
38
|
if (event.key === 'Enter') {
|
|
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
74
74
|
})}
|
|
75
75
|
>
|
|
76
76
|
<span part="checked-icon" class="menu-item__check">
|
|
77
|
-
<sd-5-4-
|
|
77
|
+
<sd-5-4-1-icon name="check" library="_internal" aria-hidden="true"></sd-5-4-1-icon>
|
|
78
78
|
</span>
|
|
79
79
|
|
|
80
80
|
<slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
|
|
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
84
84
|
<slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
|
|
85
85
|
|
|
86
86
|
<span class="menu-item__chevron">
|
|
87
|
-
<sd-5-4-
|
|
87
|
+
<sd-5-4-1-icon name="chevron-right" library="_internal" aria-hidden="true"></sd-5-4-1-icon>
|
|
88
88
|
</span>
|
|
89
89
|
</div>
|
|
90
90
|
`;
|
|
@@ -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-4-
|
|
44
|
+
css`:host{display:block}::slotted(sd-5-4-1-accordion:not(:first-of-type)){margin-top:-1px}`
|
|
45
45
|
];
|
|
46
46
|
__decorateClass([
|
|
47
|
-
queryAssignedElements({ selector: "sd-5-4-
|
|
47
|
+
queryAssignedElements({ selector: "sd-5-4-1-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-4-
|
|
53
|
+
customElement("sd-5-4-1-accordion-group")
|
|
54
54
|
], SdAccordionGroup);
|
|
55
55
|
|
|
56
56
|
export {
|
|
@@ -56,7 +56,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
56
56
|
this.pausedAutoplay = false;
|
|
57
57
|
this.autoplayController = new AutoplayController(this, () => this.next());
|
|
58
58
|
this.scrollController = new ScrollController(this);
|
|
59
|
-
this.slides = this.getElementsByTagName("sd-5-4-
|
|
59
|
+
this.slides = this.getElementsByTagName("sd-5-4-1-carousel-item");
|
|
60
60
|
// determines which slide is displayed
|
|
61
61
|
// A map containing the state of all the slides
|
|
62
62
|
this.intersectionObserverEntries = /* @__PURE__ */ new Map();
|
|
@@ -380,7 +380,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
380
380
|
)}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${prevEnabled ? (e) => {
|
|
381
381
|
this.previous();
|
|
382
382
|
this.unblockAutoplay(e, this.previousButton);
|
|
383
|
-
} : null}"><slot name="previous-icon"><sd-5-4-
|
|
383
|
+
} : null}"><slot name="previous-icon"><sd-5-4-1-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-5-4-1-icon></slot></button> ${this.variant === "dot" ? html`<div part="pagination-dot" role="tablist" class="${cx("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${map(range(pagesCount), (index) => {
|
|
384
384
|
const isActive = index + 1 === currentPage;
|
|
385
385
|
return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
|
|
386
386
|
"carousel__pagination-item",
|
|
@@ -403,7 +403,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
403
403
|
)}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${nextEnabled ? (e) => {
|
|
404
404
|
this.next();
|
|
405
405
|
this.unblockAutoplay(e, this.nextButton);
|
|
406
|
-
} : null}"><slot name="next-icon"><sd-5-4-
|
|
406
|
+
} : null}"><slot name="next-icon"><sd-5-4-1-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-5-4-1-icon></slot></button></div><button class="${cx(
|
|
407
407
|
"ml-6 !rounded-sm",
|
|
408
408
|
"!absolute !right-0 sd-interactive",
|
|
409
409
|
this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset",
|
|
@@ -413,12 +413,12 @@ var SdCarousel = class extends SolidElement {
|
|
|
413
413
|
if (e.detail) {
|
|
414
414
|
this.autoplayControls.blur();
|
|
415
415
|
}
|
|
416
|
-
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-5-4-
|
|
416
|
+
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-5-4-1-icon class="h-6 w-6 grid place-items-center" library="_internal" name="start"></sd-5-4-1-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-5-4-1-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-5-4-1-icon></slot></button></div></div>`;
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
SdCarousel.styles = [
|
|
420
420
|
...SolidElement.styles,
|
|
421
|
-
css`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-5-4-
|
|
421
|
+
css`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-5-4-1-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`
|
|
422
422
|
];
|
|
423
423
|
__decorateClass([
|
|
424
424
|
query('[part~="autoplay-controls"]')
|
|
@@ -485,7 +485,7 @@ __decorateClass([
|
|
|
485
485
|
watch("autoplay")
|
|
486
486
|
], SdCarousel.prototype, "handleAutoplayChange", 1);
|
|
487
487
|
SdCarousel = __decorateClass([
|
|
488
|
-
customElement("sd-5-4-
|
|
488
|
+
customElement("sd-5-4-1-carousel")
|
|
489
489
|
], SdCarousel);
|
|
490
490
|
|
|
491
491
|
export {
|
|
@@ -181,15 +181,15 @@ var SdNotification = class extends SolidElement {
|
|
|
181
181
|
warning: "bg-warning",
|
|
182
182
|
error: "bg-error"
|
|
183
183
|
}[this.variant]
|
|
184
|
-
)}"><sd-5-4-
|
|
184
|
+
)}"><sd-5-4-1-icon name="${{
|
|
185
185
|
info: "info-circle",
|
|
186
186
|
success: "confirm-circle",
|
|
187
187
|
warning: "exclamation-circle",
|
|
188
188
|
error: "warning"
|
|
189
|
-
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-5-4-
|
|
189
|
+
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-5-4-1-icon></slot><div part="content" class="${cx(
|
|
190
190
|
"h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white",
|
|
191
191
|
"border-solid border-[1px] border-l-0 border-neutral-400"
|
|
192
|
-
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-5-4-
|
|
192
|
+
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-5-4-1-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-5-4-1-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-5-4-1-icon></sd-5-4-1-button>` : ""}</div>${this.durationIndicator ? html`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${cx(`absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow`)}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>` : ""}</div>`;
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
/**
|
|
@@ -230,7 +230,7 @@ __decorateClass([
|
|
|
230
230
|
watch("duration")
|
|
231
231
|
], SdNotification.prototype, "handleDurationChange", 1);
|
|
232
232
|
SdNotification = __decorateClass([
|
|
233
|
-
customElement("sd-5-4-
|
|
233
|
+
customElement("sd-5-4-1-notification")
|
|
234
234
|
], SdNotification);
|
|
235
235
|
setDefaultAnimation("notification.show", {
|
|
236
236
|
keyframes: [
|
|
@@ -118,7 +118,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
118
118
|
render() {
|
|
119
119
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
|
120
120
|
return html`<label part="base" class="${cx(
|
|
121
|
-
"sd-5-4-
|
|
121
|
+
"sd-5-4-1-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
|
|
122
122
|
(this.disabled || this.visuallyDisabled) && "hover:cursor-not-allowed",
|
|
123
123
|
{
|
|
124
124
|
/* sizes, fonts */
|
|
@@ -157,7 +157,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
157
157
|
filled: "bg-accent group-hover:bg-accent-550",
|
|
158
158
|
default: "hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
|
159
159
|
}[checkboxState]
|
|
160
|
-
)}"></div></div>${this.checked ? html`<sd-5-4-
|
|
160
|
+
)}"></div></div>${this.checked ? html`<sd-5-4-1-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-5-4-1-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-5-4-1-icon part="indeterminate-icon" class="text-white w-3 h-3" library="_internal" name="status-minus"></sd-5-4-1-icon>` : ""} </span><span part="label" id="label" class="${cx(
|
|
161
161
|
"select-none inline-block ml-2",
|
|
162
162
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
|
|
163
163
|
)}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
|
|
@@ -219,7 +219,7 @@ __decorateClass([
|
|
|
219
219
|
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
|
220
220
|
], SdCheckbox.prototype, "handleStateChange", 1);
|
|
221
221
|
SdCheckbox = __decorateClass([
|
|
222
|
-
customElement("sd-5-4-
|
|
222
|
+
customElement("sd-5-4-1-checkbox")
|
|
223
223
|
], SdCheckbox);
|
|
224
224
|
|
|
225
225
|
export {
|