@synergy-design-system/components 1.4.1 → 1.5.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/dist/chunks/chunk.3B24TYVN.js +51 -0
- package/dist/chunks/chunk.3B24TYVN.js.map +7 -0
- package/dist/chunks/{chunk.H4N7OLXW.js → chunk.4S6GR2Q7.js} +2 -2
- package/dist/chunks/{chunk.76T4PEW3.js → chunk.4STUWO3B.js} +3 -3
- package/dist/chunks/{chunk.KWUT7GQA.js → chunk.5FCLDQKW.js} +3 -3
- package/dist/chunks/{chunk.GEV4IJII.js → chunk.64EZRK2A.js} +2 -2
- package/dist/chunks/chunk.6XU6OLZ3.js +310 -0
- package/dist/chunks/chunk.6XU6OLZ3.js.map +7 -0
- package/dist/chunks/{chunk.A77SRYT2.js → chunk.7MHXK5XU.js} +2 -2
- package/dist/chunks/chunk.BQG5LF7J.js +47 -0
- package/dist/chunks/chunk.BQG5LF7J.js.map +7 -0
- package/dist/chunks/{chunk.JYBYORNL.js → chunk.D3VKCPDE.js} +6 -6
- package/dist/chunks/{chunk.OSOFK3JT.js → chunk.DLPNGATM.js} +2 -2
- package/dist/chunks/{chunk.WNPKDJ4G.js → chunk.DVCDA2IN.js} +8 -8
- package/dist/chunks/{chunk.KQCYBRJJ.js → chunk.FXTLCVXC.js} +2 -2
- package/dist/chunks/chunk.GVCB2D7B.js +12 -0
- package/dist/chunks/chunk.GVCB2D7B.js.map +7 -0
- package/dist/chunks/{chunk.FTXTH5TS.js → chunk.I3FGUPLH.js} +3 -3
- package/dist/chunks/chunk.IFDNGB63.js +96 -0
- package/dist/chunks/chunk.IFDNGB63.js.map +7 -0
- package/dist/chunks/chunk.IFE4G4PB.js +12 -0
- package/dist/chunks/chunk.IFE4G4PB.js.map +7 -0
- package/dist/chunks/{chunk.MWDOOCSU.js → chunk.IKKMWFWH.js} +2 -2
- package/dist/chunks/{chunk.JMETBEU6.js → chunk.JDDBS57F.js} +3 -3
- package/dist/chunks/chunk.JN7CLMQZ.js +53 -0
- package/dist/chunks/chunk.JN7CLMQZ.js.map +7 -0
- package/dist/chunks/{chunk.IUC3AWAU.js → chunk.K55MKNUR.js} +7 -7
- package/dist/chunks/chunk.K55MKNUR.js.map +7 -0
- package/dist/chunks/{chunk.T5GFDZAG.js → chunk.K5NVNHHD.js} +2 -2
- package/dist/chunks/{chunk.AR7MHBEC.js → chunk.KG3FXWCX.js} +3 -3
- package/dist/chunks/chunk.KG52EHDB.js +60 -0
- package/dist/chunks/chunk.KG52EHDB.js.map +7 -0
- package/dist/chunks/{chunk.ND73VYBT.js → chunk.KRTGIYIX.js} +2 -2
- package/dist/chunks/{chunk.LL3W2QAU.js → chunk.M3P4B2GP.js} +3 -3
- package/dist/chunks/{chunk.SPBKTD7Y.js → chunk.O5XNATYN.js} +2 -2
- package/dist/chunks/{chunk.5VSN3F2E.js → chunk.OAIA6MLB.js} +2 -2
- package/dist/chunks/{chunk.CQ2JMH2J.js → chunk.OJ4KOC7R.js} +2 -2
- package/dist/chunks/{chunk.QTQBU2M5.js → chunk.OKG27K27.js} +2 -2
- package/dist/chunks/chunk.OWMT6OL2.js +82 -0
- package/dist/chunks/chunk.OWMT6OL2.js.map +7 -0
- package/dist/chunks/{chunk.H3LRV4ST.js → chunk.QCDOK7E4.js} +2 -2
- package/dist/chunks/{chunk.XBVEUULD.js → chunk.QPANY6PY.js} +2 -2
- package/dist/chunks/chunk.SAGHXH7E.js +334 -0
- package/dist/chunks/chunk.SAGHXH7E.js.map +7 -0
- package/dist/chunks/{chunk.6LIMUIEF.js → chunk.SLW5NPQB.js} +2 -2
- package/dist/chunks/{chunk.Z2DLW3SL.js → chunk.T72SACBE.js} +2 -2
- package/dist/chunks/{chunk.Z2DLW3SL.js.map → chunk.T72SACBE.js.map} +1 -1
- package/dist/chunks/{chunk.5Y446GHK.js → chunk.UBTUEIMR.js} +2 -2
- package/dist/chunks/chunk.UTDK2ZT6.js +811 -0
- package/dist/chunks/chunk.UTDK2ZT6.js.map +7 -0
- package/dist/chunks/{chunk.GM3M672E.js → chunk.UYYPTTK2.js} +2 -2
- package/dist/chunks/{chunk.MTDXRKO3.js → chunk.V57DLRD2.js} +2 -2
- package/dist/chunks/{chunk.Q5UI2GVL.js → chunk.VIQZQ3S6.js} +2 -2
- package/dist/chunks/chunk.W6V7TPGK.js +104 -0
- package/dist/chunks/chunk.W6V7TPGK.js.map +7 -0
- package/dist/chunks/{chunk.XRZUXWQE.js → chunk.X4L3ZC6K.js} +2 -2
- package/dist/chunks/chunk.XFLQL2QO.js +132 -0
- package/dist/chunks/chunk.XFLQL2QO.js.map +7 -0
- package/dist/chunks/{chunk.6TJHEFXA.js → chunk.XSFEPYWK.js} +2 -2
- package/dist/chunks/chunk.YN2IXOBF.js +12 -0
- package/dist/chunks/chunk.YN2IXOBF.js.map +7 -0
- package/dist/components/button/button.component.js +7 -7
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +8 -8
- package/dist/components/button/button.styles.js +2 -2
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +3 -3
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.component.js +3 -3
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/input/input.component.js +4 -4
- package/dist/components/input/input.js +5 -5
- package/dist/components/optgroup/optgroup.component.d.ts +47 -0
- package/dist/components/optgroup/optgroup.component.js +16 -0
- package/dist/components/optgroup/optgroup.component.js.map +7 -0
- package/dist/components/optgroup/optgroup.d.ts +8 -0
- package/dist/components/optgroup/optgroup.js +17 -0
- package/dist/components/optgroup/optgroup.js.map +7 -0
- package/dist/components/optgroup/optgroup.styles.d.ts +2 -0
- package/dist/components/optgroup/optgroup.styles.js +8 -0
- package/dist/components/optgroup/optgroup.styles.js.map +7 -0
- package/dist/components/option/option.component.d.ts +51 -0
- package/dist/components/option/option.component.js +22 -0
- package/dist/components/option/option.component.js.map +7 -0
- package/dist/components/option/option.custom.styles.d.ts +2 -0
- package/dist/components/option/option.custom.styles.js +8 -0
- package/dist/components/option/option.custom.styles.js.map +7 -0
- package/dist/components/option/option.d.ts +8 -0
- package/dist/components/option/option.js +23 -0
- package/dist/components/option/option.js.map +7 -0
- package/dist/components/option/option.styles.d.ts +2 -0
- package/dist/components/option/option.styles.js +10 -0
- package/dist/components/option/option.styles.js.map +7 -0
- package/dist/components/popup/popup.component.d.ts +139 -0
- package/dist/components/popup/popup.component.js +11 -0
- package/dist/components/popup/popup.component.js.map +7 -0
- package/dist/components/popup/popup.styles.d.ts +2 -0
- package/dist/components/popup/popup.styles.js +9 -0
- package/dist/components/popup/popup.styles.js.map +7 -0
- package/dist/components/radio/radio.component.js +3 -3
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-button/radio-button.component.js +5 -5
- package/dist/components/radio-button/radio-button.js +6 -6
- package/dist/components/radio-button/radio-button.styles.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/select/select.component.d.ts +180 -0
- package/dist/components/select/select.component.js +35 -0
- package/dist/components/select/select.component.js.map +7 -0
- package/dist/components/select/select.custom.styles.d.ts +2 -0
- package/dist/components/select/select.custom.styles.js +8 -0
- package/dist/components/select/select.custom.styles.js.map +7 -0
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/select/select.js +36 -0
- package/dist/components/select/select.js.map +7 -0
- package/dist/components/select/select.styles.d.ts +2 -0
- package/dist/components/select/select.styles.js +11 -0
- package/dist/components/select/select.styles.js.map +7 -0
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tag/tag.component.js +4 -4
- package/dist/components/tag/tag.js +5 -5
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/custom-elements.json +2376 -556
- package/dist/events/events.d.ts +5 -0
- package/dist/events/syn-after-hide.d.ts +6 -0
- package/dist/events/syn-after-show.d.ts +6 -0
- package/dist/events/syn-hide.d.ts +6 -0
- package/dist/events/syn-reposition.d.ts +6 -0
- package/dist/events/syn-show.d.ts +6 -0
- package/dist/internal/animate.d.ts +22 -0
- package/dist/internal/event.d.ts +2 -0
- package/dist/internal/offset.d.ts +11 -0
- package/dist/internal/scroll.d.ts +11 -0
- package/dist/synergy.d.ts +3 -0
- package/dist/synergy.js +64 -41
- package/dist/utilities/animation-registry.d.ts +24 -0
- package/dist/utilities/animation-registry.js +12 -0
- package/dist/utilities/animation-registry.js.map +7 -0
- package/dist/vscode.html-custom-data.json +304 -17
- package/dist/web-types.json +664 -30
- package/package.json +6 -3
- package/dist/chunks/chunk.IUC3AWAU.js.map +0 -7
- /package/dist/chunks/{chunk.H4N7OLXW.js.map → chunk.4S6GR2Q7.js.map} +0 -0
- /package/dist/chunks/{chunk.76T4PEW3.js.map → chunk.4STUWO3B.js.map} +0 -0
- /package/dist/chunks/{chunk.KWUT7GQA.js.map → chunk.5FCLDQKW.js.map} +0 -0
- /package/dist/chunks/{chunk.GEV4IJII.js.map → chunk.64EZRK2A.js.map} +0 -0
- /package/dist/chunks/{chunk.A77SRYT2.js.map → chunk.7MHXK5XU.js.map} +0 -0
- /package/dist/chunks/{chunk.JYBYORNL.js.map → chunk.D3VKCPDE.js.map} +0 -0
- /package/dist/chunks/{chunk.OSOFK3JT.js.map → chunk.DLPNGATM.js.map} +0 -0
- /package/dist/chunks/{chunk.WNPKDJ4G.js.map → chunk.DVCDA2IN.js.map} +0 -0
- /package/dist/chunks/{chunk.KQCYBRJJ.js.map → chunk.FXTLCVXC.js.map} +0 -0
- /package/dist/chunks/{chunk.FTXTH5TS.js.map → chunk.I3FGUPLH.js.map} +0 -0
- /package/dist/chunks/{chunk.MWDOOCSU.js.map → chunk.IKKMWFWH.js.map} +0 -0
- /package/dist/chunks/{chunk.JMETBEU6.js.map → chunk.JDDBS57F.js.map} +0 -0
- /package/dist/chunks/{chunk.T5GFDZAG.js.map → chunk.K5NVNHHD.js.map} +0 -0
- /package/dist/chunks/{chunk.AR7MHBEC.js.map → chunk.KG3FXWCX.js.map} +0 -0
- /package/dist/chunks/{chunk.ND73VYBT.js.map → chunk.KRTGIYIX.js.map} +0 -0
- /package/dist/chunks/{chunk.LL3W2QAU.js.map → chunk.M3P4B2GP.js.map} +0 -0
- /package/dist/chunks/{chunk.SPBKTD7Y.js.map → chunk.O5XNATYN.js.map} +0 -0
- /package/dist/chunks/{chunk.5VSN3F2E.js.map → chunk.OAIA6MLB.js.map} +0 -0
- /package/dist/chunks/{chunk.CQ2JMH2J.js.map → chunk.OJ4KOC7R.js.map} +0 -0
- /package/dist/chunks/{chunk.QTQBU2M5.js.map → chunk.OKG27K27.js.map} +0 -0
- /package/dist/chunks/{chunk.H3LRV4ST.js.map → chunk.QCDOK7E4.js.map} +0 -0
- /package/dist/chunks/{chunk.XBVEUULD.js.map → chunk.QPANY6PY.js.map} +0 -0
- /package/dist/chunks/{chunk.6LIMUIEF.js.map → chunk.SLW5NPQB.js.map} +0 -0
- /package/dist/chunks/{chunk.5Y446GHK.js.map → chunk.UBTUEIMR.js.map} +0 -0
- /package/dist/chunks/{chunk.GM3M672E.js.map → chunk.UYYPTTK2.js.map} +0 -0
- /package/dist/chunks/{chunk.MTDXRKO3.js.map → chunk.V57DLRD2.js.map} +0 -0
- /package/dist/chunks/{chunk.Q5UI2GVL.js.map → chunk.VIQZQ3S6.js.map} +0 -0
- /package/dist/chunks/{chunk.XRZUXWQE.js.map → chunk.X4L3ZC6K.js.map} +0 -0
- /package/dist/chunks/{chunk.6TJHEFXA.js.map → chunk.XSFEPYWK.js.map} +0 -0
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.QHFGD6WW.js";
|
|
4
4
|
import {
|
|
5
5
|
SynIconButton
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.4STUWO3B.js";
|
|
7
7
|
import {
|
|
8
8
|
LocalizeController
|
|
9
9
|
} from "./chunk.LAB4YJYE.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.T72SACBE.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -72,4 +72,4 @@ __decorateClass([
|
|
|
72
72
|
export {
|
|
73
73
|
SynTag
|
|
74
74
|
};
|
|
75
|
-
//# sourceMappingURL=chunk.
|
|
75
|
+
//# sourceMappingURL=chunk.I3FGUPLH.js.map
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
optgroup_styles_default
|
|
3
|
+
} from "./chunk.KG52EHDB.js";
|
|
4
|
+
import {
|
|
5
|
+
SynDivider
|
|
6
|
+
} from "./chunk.QCDOK7E4.js";
|
|
7
|
+
import {
|
|
8
|
+
HasSlotController
|
|
9
|
+
} from "./chunk.XGXFE6IF.js";
|
|
10
|
+
import {
|
|
11
|
+
watch
|
|
12
|
+
} from "./chunk.VZ7S7YYN.js";
|
|
13
|
+
import {
|
|
14
|
+
SynergyElement
|
|
15
|
+
} from "./chunk.T72SACBE.js";
|
|
16
|
+
import {
|
|
17
|
+
__decorateClass
|
|
18
|
+
} from "./chunk.DJOAQ4JU.js";
|
|
19
|
+
|
|
20
|
+
// src/components/optgroup/optgroup.component.ts
|
|
21
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
22
|
+
import { html } from "lit/static-html.js";
|
|
23
|
+
import { property, query } from "lit/decorators.js";
|
|
24
|
+
var SynOptgroup = class extends SynergyElement {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.hasSlotController = new HasSlotController(this, "[default]", "prefix", "suffix", "label");
|
|
28
|
+
this.disabled = false;
|
|
29
|
+
this.label = "";
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Syncs the disabled prop for all slotted syn-options when it is triggered
|
|
33
|
+
*/
|
|
34
|
+
handleDisableOptions() {
|
|
35
|
+
const { disabled } = this;
|
|
36
|
+
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "syn-option").forEach((opt) => {
|
|
37
|
+
opt.disabled = disabled;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
handleDisabledChange() {
|
|
41
|
+
this.handleDisableOptions();
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
const { disabled } = this;
|
|
45
|
+
const hasLabelSlot = this.hasSlotController.test("label");
|
|
46
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
47
|
+
return html`
|
|
48
|
+
<div
|
|
49
|
+
class=${classMap({
|
|
50
|
+
optgroup: true,
|
|
51
|
+
"optgroup--has-label": hasLabel,
|
|
52
|
+
"optgroup--has-prefix": this.hasSlotController.test("prefix"),
|
|
53
|
+
"optgroup--has-suffix": this.hasSlotController.test("suffix"),
|
|
54
|
+
"optgroup--is-disabled": this.disabled
|
|
55
|
+
})}
|
|
56
|
+
role="${disabled ? "presentation" : "group"}"
|
|
57
|
+
part="base"
|
|
58
|
+
>
|
|
59
|
+
<syn-divider class="optgroup__divider" part="divider"></syn-divider>
|
|
60
|
+
<div class="optgroup__label-container" part="label-container">
|
|
61
|
+
<slot name="prefix" part="prefix" class="optgroup__prefix"></slot>
|
|
62
|
+
<slot name="label" part="label" class="optgroup__label">
|
|
63
|
+
<span class="optgroup__label-content">
|
|
64
|
+
${this.label}
|
|
65
|
+
</span>
|
|
66
|
+
</slot>
|
|
67
|
+
<slot name="suffix" part="suffix" class="optgroup__suffix"></slot>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="optgroup__options" role="group" part="options">
|
|
70
|
+
<slot @slotchange=${this.handleDisableOptions}></slot>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
`;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
SynOptgroup.styles = optgroup_styles_default;
|
|
77
|
+
SynOptgroup.dependencies = {
|
|
78
|
+
"syn-divider": SynDivider
|
|
79
|
+
};
|
|
80
|
+
__decorateClass([
|
|
81
|
+
query("slot:not([name])")
|
|
82
|
+
], SynOptgroup.prototype, "defaultSlot", 2);
|
|
83
|
+
__decorateClass([
|
|
84
|
+
property({ reflect: true, type: Boolean })
|
|
85
|
+
], SynOptgroup.prototype, "disabled", 2);
|
|
86
|
+
__decorateClass([
|
|
87
|
+
property()
|
|
88
|
+
], SynOptgroup.prototype, "label", 2);
|
|
89
|
+
__decorateClass([
|
|
90
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
91
|
+
], SynOptgroup.prototype, "handleDisabledChange", 1);
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
SynOptgroup
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=chunk.IFDNGB63.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/optgroup/optgroup.component.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/unbound-method */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit/static-html.js';\nimport { property, query } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport { watch } from '../../internal/watch.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport SynDivider from '../divider/divider.component.js';\nimport type SynOption from '../option/option.component.js';\nimport styles from './optgroup.styles.js';\n\n/**\n * @summary The <syn-optgroup> element creates a grouping for <syn-option>s within a <syn-select>.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-optgroup--docs\n * @status stable\n * @since 1.3.0\n *\n * @dependency syn-divider\n *\n * @slot - The given options. Must be `<syn-option>` elements.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot label - The label for the optgroup\n * @slot suffix - A presentational suffix icon or similar element.\n *\n * @csspart base - The component's base wrapper.\n * @csspart label-container - The container that wraps prefix, label and base\n * @csspart divider - The divider that is displayed above the content\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart options - The container that wraps the <syn-option> elements.\n *\n * @cssproperty --display-divider - Display property of the divider. Defaults to \"block\"\n */\nexport default class SynOptgroup extends SynergyElement {\n static styles: CSSResultGroup = styles;\n\n static dependencies = {\n 'syn-divider': SynDivider,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'prefix', 'suffix', 'label');\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n\n /**\n * Syncs the disabled prop for all slotted syn-options when it is triggered\n */\n private handleDisableOptions() {\n const { disabled } = this;\n this.defaultSlot\n .assignedElements()\n .filter(opt => opt.tagName.toLowerCase() === 'syn-option')\n .forEach((opt: SynOption) => {\n // eslint-disable-next-line no-param-reassign\n opt.disabled = disabled;\n });\n }\n\n /**\n * Disables all options in the optgroup.\n */\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n /**\n * The optgroups label. If you need to display HTML, use the `label` slot instead.\n */\n @property() label = '';\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n this.handleDisableOptions();\n }\n\n render() {\n const { disabled } = this;\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n return html`\n <div\n class=${classMap({\n optgroup: true,\n 'optgroup--has-label': hasLabel,\n 'optgroup--has-prefix': this.hasSlotController.test('prefix'),\n 'optgroup--has-suffix': this.hasSlotController.test('suffix'),\n 'optgroup--is-disabled': this.disabled,\n })}\n role=\"${disabled ? 'presentation' : 'group'}\"\n part=\"base\"\n >\n <syn-divider class=\"optgroup__divider\" part=\"divider\"></syn-divider>\n <div class=\"optgroup__label-container\" part=\"label-container\">\n <slot name=\"prefix\" part=\"prefix\" class=\"optgroup__prefix\"></slot>\n <slot name=\"label\" part=\"label\" class=\"optgroup__label\">\n <span class=\"optgroup__label-content\">\n ${this.label}\n </span>\n </slot>\n <slot name=\"suffix\" part=\"suffix\" class=\"optgroup__suffix\"></slot>\n </div>\n <div class=\"optgroup__options\" role=\"group\" part=\"options\">\n <slot @slotchange=${this.handleDisableOptions}></slot>\n </div>\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,UAAU,aAAa;AA+BhC,IAAqB,cAArB,cAAyC,eAAe;AAAA,EAAxD;AAAA;AAOE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,UAAU,UAAU,OAAO;AAqB7D,oBAAW;AAK3C,iBAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,EAnBZ,uBAAuB;AAC7B,UAAM,EAAE,SAAS,IAAI;AACrB,SAAK,YACF,iBAAiB,EACjB,OAAO,SAAO,IAAI,QAAQ,YAAY,MAAM,YAAY,EACxD,QAAQ,CAAC,QAAmB;AAE3B,UAAI,WAAW;AAAA,IACjB,CAAC;AAAA,EACL;AAAA,EAaA,uBAAuB;AACrB,SAAK,qBAAqB;AAAA,EAC5B;AAAA,EAEA,SAAS;AACP,UAAM,EAAE,SAAS,IAAI;AACrB,UAAM,eAAe,KAAK,kBAAkB,KAAK,OAAO;AACxD,UAAM,WAAW,KAAK,QAAQ,OAAO,CAAC,CAAC;AACvC,WAAO;AAAA;AAAA,gBAEK,SAAS;AAAA,MACf,UAAU;AAAA,MACV,uBAAuB;AAAA,MACvB,wBAAwB,KAAK,kBAAkB,KAAK,QAAQ;AAAA,MAC5D,wBAAwB,KAAK,kBAAkB,KAAK,QAAQ;AAAA,MAC5D,yBAAyB,KAAK;AAAA,IAChC,CAAC,CAAC;AAAA,gBACM,WAAW,iBAAiB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAQnC,KAAK,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAMI,KAAK,oBAAoB;AAAA;AAAA;AAAA;AAAA,EAIrD;AACF;AAxEqB,YACZ,SAAyB;AADb,YAGZ,eAAe;AAAA,EACpB,eAAe;AACjB;AAI2B;AAAA,EAA1B,MAAM,kBAAkB;AAAA,GATN,YASQ;AAmBiB;AAAA,EAA3C,SAAS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GA5BvB,YA4ByB;AAKhC;AAAA,EAAX,SAAS;AAAA,GAjCS,YAiCP;AAGZ;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAnC9B,YAoCnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynOptgroup
|
|
3
|
+
} from "./chunk.IFDNGB63.js";
|
|
4
|
+
|
|
5
|
+
// src/components/optgroup/optgroup.ts
|
|
6
|
+
var optgroup_default = SynOptgroup;
|
|
7
|
+
SynOptgroup.define("syn-optgroup");
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
optgroup_default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=chunk.IFE4G4PB.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/optgroup/optgroup.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable */\nimport SynOptGroup from './optgroup.component.js';\n\nexport * from './optgroup.component.js';\nexport default SynOptGroup;\n\nSynOptGroup.define('syn-optgroup');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-optgroup': SynOptGroup;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AAIA,IAAO,mBAAQ;AAEf,YAAY,OAAO,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OJ4KOC7R.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio-button/radio-button.styles.ts
|
|
6
6
|
import { css } from "lit";
|
|
@@ -34,4 +34,4 @@ var radio_button_styles_default = css`
|
|
|
34
34
|
export {
|
|
35
35
|
radio_button_styles_default
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk.
|
|
37
|
+
//# sourceMappingURL=chunk.IKKMWFWH.js.map
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk.VZ7S7YYN.js";
|
|
16
16
|
import {
|
|
17
17
|
SynButtonGroup
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.V57DLRD2.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.T72SACBE.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
24
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -348,4 +348,4 @@ __decorateClass([
|
|
|
348
348
|
export {
|
|
349
349
|
SynRadioGroup
|
|
350
350
|
};
|
|
351
|
-
//# sourceMappingURL=chunk.
|
|
351
|
+
//# sourceMappingURL=chunk.JDDBS57F.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
component_styles_default
|
|
3
|
+
} from "./chunk.O7USYXBT.js";
|
|
4
|
+
|
|
5
|
+
// src/components/popup/popup.styles.ts
|
|
6
|
+
import { css } from "lit";
|
|
7
|
+
var popup_styles_default = css`
|
|
8
|
+
/* stylelint-disable */
|
|
9
|
+
${component_styles_default}
|
|
10
|
+
|
|
11
|
+
:host {
|
|
12
|
+
--arrow-color: var(--syn-color-neutral-1000);
|
|
13
|
+
--arrow-size: 6px;
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant
|
|
17
|
+
* 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.
|
|
18
|
+
*/
|
|
19
|
+
--arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);
|
|
20
|
+
--arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size));
|
|
21
|
+
|
|
22
|
+
display: contents;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.popup {
|
|
26
|
+
position: absolute;
|
|
27
|
+
isolation: isolate;
|
|
28
|
+
max-width: var(--auto-size-available-width, none);
|
|
29
|
+
max-height: var(--auto-size-available-height, none);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.popup--fixed {
|
|
33
|
+
position: fixed;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.popup:not(.popup--active) {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.popup__arrow {
|
|
41
|
+
position: absolute;
|
|
42
|
+
width: calc(var(--arrow-size-diagonal) * 2);
|
|
43
|
+
height: calc(var(--arrow-size-diagonal) * 2);
|
|
44
|
+
rotate: 45deg;
|
|
45
|
+
background: var(--arrow-color);
|
|
46
|
+
z-index: -1;
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
popup_styles_default
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=chunk.JN7CLMQZ.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/popup/popup.styles.ts"],
|
|
4
|
+
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n// Removing this comment will prevent it from being managed by it.\n// ---------------------------------------------------------------------\n\n/* eslint-disable */\nimport { css } from 'lit';\nimport componentStyles from '../../styles/component.styles.js';\n\nexport default css`\n\t/* stylelint-disable */\n ${componentStyles}\n\n :host {\n --arrow-color: var(--syn-color-neutral-1000);\n --arrow-size: 6px;\n\n /*\n * These properties are computed to account for the arrow's dimensions after being rotated 45\u00BA. The constant\n * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.\n */\n --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);\n --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size));\n\n display: contents;\n }\n\n .popup {\n position: absolute;\n isolation: isolate;\n max-width: var(--auto-size-available-width, none);\n max-height: var(--auto-size-available-height, none);\n }\n\n .popup--fixed {\n position: fixed;\n }\n\n .popup:not(.popup--active) {\n display: none;\n }\n\n .popup__arrow {\n position: absolute;\n width: calc(var(--arrow-size-diagonal) * 2);\n height: calc(var(--arrow-size-diagonal) * 2);\n rotate: 45deg;\n background: var(--arrow-color);\n z-index: -1;\n }\n`;\n"],
|
|
5
|
+
"mappings": ";;;;;AAMA,SAAS,WAAW;AAGpB,IAAO,uBAAQ;AAAA;AAAA,IAEX,wBAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -43,9 +43,9 @@ var button_custom_styles_default = css`
|
|
|
43
43
|
* Standard buttons
|
|
44
44
|
*/
|
|
45
45
|
.button--filled.button--primary.button--disabled {
|
|
46
|
-
background-color: var(--syn-color-neutral-
|
|
47
|
-
border-color: var(--syn-color-neutral-
|
|
48
|
-
color: var(--syn-color-neutral-
|
|
46
|
+
background-color: var(--syn-color-neutral-600);
|
|
47
|
+
border-color: var(--syn-color-neutral-600);
|
|
48
|
+
color: var(--syn-color-neutral-0);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.button--filled.button--primary:hover:not(.button--disabled) {
|
|
@@ -65,8 +65,8 @@ var button_custom_styles_default = css`
|
|
|
65
65
|
*/
|
|
66
66
|
.button--outline.button--primary.button--disabled {
|
|
67
67
|
background: none;
|
|
68
|
-
border-color: var(--syn-color-neutral-
|
|
69
|
-
color: var(--syn-color-neutral-
|
|
68
|
+
border-color: var(--syn-color-neutral-600);
|
|
69
|
+
color: var(--syn-color-neutral-600);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.button--outline.button--primary:hover:not(.button--disabled),
|
|
@@ -96,7 +96,7 @@ var button_custom_styles_default = css`
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.button--text.button--primary.button--disabled {
|
|
99
|
-
color: var(--syn-color-neutral-
|
|
99
|
+
color: var(--syn-color-neutral-600);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/**
|
|
@@ -153,4 +153,4 @@ var button_custom_styles_default = css`
|
|
|
153
153
|
export {
|
|
154
154
|
button_custom_styles_default
|
|
155
155
|
};
|
|
156
|
-
//# sourceMappingURL=chunk.
|
|
156
|
+
//# sourceMappingURL=chunk.K55MKNUR.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/button/button.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n .button:focus-visible {\n outline: var(--syn-focus-ring-color) solid var(--syn-focus-ring-width);\n outline-offset: var(--syn-focus-ring-width);\n }\n\n /*\n * Adjustments for button label paddings\n * @see https://github.com/synergy-design-system/synergy-design-system/issues/243\n */\n .button--has-prefix.button--small .button__label {\n padding-inline-start: var(--syn-spacing-2x-small);\n }\n\n .button--has-suffix.button--small .button__label,\n .button--caret.button--small .button__label {\n padding-inline-end: var(--syn-spacing-2x-small);\n }\n\n .button--has-prefix.button--medium .button__label {\n padding-inline-start: var(--syn-spacing-x-small);\n }\n\n .button--has-suffix.button--medium .button__label,\n .button--caret.button--medium .button__label {\n padding-inline-end: var(--syn-spacing-x-small);\n }\n\n /**\n * Size modifiers\n */\n .button.button--medium.button--has-label .button__label {\n font-size: var(--syn-font-size-medium);\n } \n\n .button.button--large.button--has-label .button__label {\n font-size: var(--syn-font-size-large);\n }\n\n /*\n * Standard buttons\n */\n .button--filled.button--primary.button--disabled {\n background-color: var(--syn-color-neutral-600);\n border-color: var(--syn-color-neutral-600);\n color: var(--syn-color-neutral-0);\n }\n\n .button--filled.button--primary:hover:not(.button--disabled) {\n background-color: var(--syn-color-primary-900);\n border-color: var(--syn-color-primary-900);\n color: var(--syn-color-neutral-0);\n }\n\n .button--filled.button--primary:active:not(.button--disabled) {\n background-color: var(--syn-color-primary-950);\n border-color: var(--syn-color-primary-950);\n color: var(--syn-color-neutral-0);\n }\n\n /*\n * Outline buttons\n */\n .button--outline.button--primary.button--disabled {\n background: none;\n border-color: var(--syn-color-neutral-600);\n color: var(--syn-color-neutral-600);\n }\n\n .button--outline.button--primary:hover:not(.button--disabled),\n .button--outline.button--primary.button--checked:not(.button--disabled) {\n background: none;\n border-color: var(--syn-color-primary-900);\n color: var(--syn-color-primary-900);\n }\n\n .button--outline.button--primary:active:not(.button--disabled) {\n background: inherit;\n border-color: var(--syn-color-primary-950);\n color: var(--syn-color-primary-950);\n }\n\n /*\n * Text buttons\n */\n .button--text:hover:not(.button--disabled) {\n color: var(--syn-color-primary-900);\n }\n\n .button--text.button--primary:active:not(.button--disabled) {\n background: inherit;\n border-color: none;\n color: var(--syn-color-primary-950);\n }\n\n .button--text.button--primary.button--disabled {\n color: var(--syn-color-neutral-600);\n }\n\n /**\n * Button spacing\n */\n .button.button--small.button--has-label.button--has-prefix {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button.button--small.button--has-label.button--has-suffix {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button.button--small.button--has-prefix .button__prefix, \n .button.button--small.button--has-suffix .button__suffix {\n font-size: var(--syn-spacing-medium);\n }\n\n .button.button--medium.button--has-label.button--has-prefix {\n padding-inline-start: var(--syn-spacing-medium);\n } \n\n .button.button--medium.button--has-label.button--has-suffix {\n padding-inline-end: var(--syn-spacing-medium);\n }\n\n .button.button--medium.button--has-prefix .button__prefix, \n .button.button--medium.button--has-suffix .button__suffix {\n font-size: var(--syn-spacing-large);\n }\n\n .button.button--large.button--has-label.button--has-prefix {\n padding-inline-start: var(--syn-spacing-large);\n }\n\n .button.button--large.button--has-label.button--has-prefix .button__label {\n padding-inline-start: var(--syn-spacing-small);\n }\n\n .button.button--large.button--has-label.button--has-suffix {\n padding-inline-end: var(--syn-spacing-large);\n }\n\n .button.button--large.button--has-label.button--has-suffix .button__label {\n padding-inline-end: var(--syn-spacing-small);\n }\n\n .button.button--large.button--has-prefix .button__prefix, \n .button.button--large.button--has-suffix .button__suffix {\n font-size: var(--syn-font-size-2x-large);\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,+BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTag
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.I3FGUPLH.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tag/tag.ts
|
|
6
6
|
var tag_default = SynTag;
|
|
@@ -9,4 +9,4 @@ SynTag.define("syn-tag");
|
|
|
9
9
|
export {
|
|
10
10
|
tag_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.K5NVNHHD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
radio_button_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.IKKMWFWH.js";
|
|
4
4
|
import {
|
|
5
5
|
HasSlotController
|
|
6
6
|
} from "./chunk.XGXFE6IF.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.VZ7S7YYN.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.T72SACBE.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -124,4 +124,4 @@ __decorateClass([
|
|
|
124
124
|
export {
|
|
125
125
|
SynRadioButton
|
|
126
126
|
};
|
|
127
|
-
//# sourceMappingURL=chunk.
|
|
127
|
+
//# sourceMappingURL=chunk.KG3FXWCX.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// src/components/optgroup/optgroup.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var optgroup_styles_default = css`
|
|
4
|
+
:host {
|
|
5
|
+
--display-divider: block;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.optgroup__divider {
|
|
9
|
+
--spacing: var(--syn-spacing-x-small);
|
|
10
|
+
|
|
11
|
+
display: var(--display-divider);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.optgroup__label-container {
|
|
15
|
+
align-items: center;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
color: var(--syn-color-neutral-950);
|
|
18
|
+
display: flex;
|
|
19
|
+
gap: var(--syn-spacing-small);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Only show the label container when there is a label at all
|
|
24
|
+
*/
|
|
25
|
+
.optgroup--has-prefix .optgroup__label-container,
|
|
26
|
+
.optgroup--has-label .optgroup__label-container,
|
|
27
|
+
.optgroup--has-suffix .optgroup__label-container {
|
|
28
|
+
padding-block: var(--syn-spacing-small);
|
|
29
|
+
padding-inline: var(--syn-spacing-medium);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Format main label.
|
|
34
|
+
* Make sure this works for props and slotted content
|
|
35
|
+
*/
|
|
36
|
+
.optgroup__label-content,
|
|
37
|
+
.optgroup__label::slotted(*) {
|
|
38
|
+
flex: 1;
|
|
39
|
+
font-family: var(--syn-font-sans);
|
|
40
|
+
font-size: var(--syn-font-size-medium);
|
|
41
|
+
font-weight: var(--syn-font-weight-semibold);
|
|
42
|
+
line-height: var(--syn-line-height-normal);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Disabled Label */
|
|
46
|
+
.optgroup--is-disabled .optgroup__label-container {
|
|
47
|
+
opacity: var(--syn-input-disabled-opacity);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.optgroup__prefix,
|
|
51
|
+
.optgroup__suffix {
|
|
52
|
+
color: var(--syn-color-neutral-950);
|
|
53
|
+
font-size: var(--syn-spacing-large);
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
optgroup_styles_default
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=chunk.KG52EHDB.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/optgroup/optgroup.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n :host {\n --display-divider: block;\n }\n\n .optgroup__divider {\n --spacing: var(--syn-spacing-x-small);\n\n display: var(--display-divider);\n }\n\n .optgroup__label-container {\n align-items: center;\n box-sizing: border-box;\n color: var(--syn-color-neutral-950);\n display: flex;\n gap: var(--syn-spacing-small);\n }\n\n /**\n * Only show the label container when there is a label at all\n */\n .optgroup--has-prefix .optgroup__label-container,\n .optgroup--has-label .optgroup__label-container,\n .optgroup--has-suffix .optgroup__label-container {\n padding-block: var(--syn-spacing-small);\n padding-inline: var(--syn-spacing-medium);\n }\n\n /**\n * Format main label.\n * Make sure this works for props and slotted content\n */\n .optgroup__label-content,\n .optgroup__label::slotted(*) {\n flex: 1;\n font-family: var(--syn-font-sans);\n font-size: var(--syn-font-size-medium);\n font-weight: var(--syn-font-weight-semibold);\n line-height: var(--syn-line-height-normal);\n }\n\n /* Disabled Label */\n .optgroup--is-disabled .optgroup__label-container {\n opacity: var(--syn-input-disabled-opacity);\n }\n\n .optgroup__prefix,\n .optgroup__suffix {\n color: var(--syn-color-neutral-950);\n font-size: var(--syn-spacing-large);\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,0BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KG3FXWCX.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio-button/radio-button.ts
|
|
6
6
|
var radio_button_default = SynRadioButton;
|
|
@@ -9,4 +9,4 @@ SynRadioButton.define("syn-radio-button");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.KRTGIYIX.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.JBYBQ5TQ.js";
|
|
4
4
|
import {
|
|
5
5
|
SynIcon
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.OKG27K27.js";
|
|
7
7
|
import {
|
|
8
8
|
watch
|
|
9
9
|
} from "./chunk.VZ7S7YYN.js";
|
|
10
10
|
import {
|
|
11
11
|
SynergyElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.T72SACBE.js";
|
|
13
13
|
import {
|
|
14
14
|
__decorateClass
|
|
15
15
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -108,4 +108,4 @@ __decorateClass([
|
|
|
108
108
|
export {
|
|
109
109
|
SynRadio
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk.
|
|
111
|
+
//# sourceMappingURL=chunk.M3P4B2GP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIcon
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OKG27K27.js";
|
|
4
4
|
|
|
5
5
|
// src/components/icon/icon.ts
|
|
6
6
|
var icon_default = SynIcon;
|
|
@@ -9,4 +9,4 @@ SynIcon.define("syn-icon");
|
|
|
9
9
|
export {
|
|
10
10
|
icon_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.O5XNATYN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadio
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.M3P4B2GP.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio/radio.ts
|
|
6
6
|
var radio_default = SynRadio;
|
|
@@ -9,4 +9,4 @@ SynRadio.define("syn-radio");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.OAIA6MLB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
button_custom_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.K55MKNUR.js";
|
|
4
4
|
import {
|
|
5
5
|
component_styles_default
|
|
6
6
|
} from "./chunk.O7USYXBT.js";
|
|
@@ -373,4 +373,4 @@ var button_styles_default = css`
|
|
|
373
373
|
export {
|
|
374
374
|
button_styles_default
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=chunk.
|
|
376
|
+
//# sourceMappingURL=chunk.OJ4KOC7R.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk.VZ7S7YYN.js";
|
|
12
12
|
import {
|
|
13
13
|
SynergyElement
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.T72SACBE.js";
|
|
15
15
|
import {
|
|
16
16
|
__decorateClass
|
|
17
17
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -172,4 +172,4 @@ __decorateClass([
|
|
|
172
172
|
export {
|
|
173
173
|
SynIcon
|
|
174
174
|
};
|
|
175
|
-
//# sourceMappingURL=chunk.
|
|
175
|
+
//# sourceMappingURL=chunk.OKG27K27.js.map
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// src/components/select/select.custom.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var select_custom_styles_default = css`
|
|
4
|
+
/* Clear button */
|
|
5
|
+
.select__clear {
|
|
6
|
+
color: var(--syn-input-icon-icon-clearable-color);
|
|
7
|
+
font-size: var(--syn-spacing-large);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.select--medium .select__clear {
|
|
11
|
+
margin-inline-start: var(--syn-spacing-small);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Expand icon */
|
|
15
|
+
.select__expand-icon {
|
|
16
|
+
color: var(--syn-color-neutral-950);
|
|
17
|
+
font-size: var(--syn-spacing-large);
|
|
18
|
+
margin-inline-start: var(--syn-spacing-small);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Change select border on hover */
|
|
22
|
+
.select:not(.select--disabled):hover .select__combobox {
|
|
23
|
+
border-color: var(--syn-input-color-hover);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Prefix */
|
|
27
|
+
|
|
28
|
+
/* Small */
|
|
29
|
+
.select--small .select__prefix::slotted(*) {
|
|
30
|
+
margin-inline-end: var(--syn-spacing-x-small);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.select--medium .select__prefix::slotted(*) {
|
|
34
|
+
margin-inline-end: var(--syn-input-spacing-small);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.select--large .select__prefix::slotted(*) {
|
|
38
|
+
margin-inline-end: var(--syn-input-spacing-medium);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.select__prefix {
|
|
42
|
+
color: var(--syn-input-help-text-color);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Multi Select */
|
|
46
|
+
.select__tags {
|
|
47
|
+
margin-inline-start: var(--syn-spacing-medium);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.select--small .select__tags {
|
|
51
|
+
gap: var(--syn-spacing-2x-small);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.select--medium .select__tags {
|
|
55
|
+
gap: var(--syn-spacing-x-small);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.select--large .select__tags {
|
|
59
|
+
gap: var(--syn-spacing-small);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Listbox */
|
|
63
|
+
.select__listbox {
|
|
64
|
+
/* @todo: Should be --syn-border-radius-medium, which should be set to 0 */
|
|
65
|
+
border-radius: 0;
|
|
66
|
+
box-shadow: var(--syn-shadow-medium);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Make sure to hide the syn-divider for the first syn-optgroup
|
|
71
|
+
* Note! ::slotted does currently not work with ::part, so we
|
|
72
|
+
* opted for using a css variable here.
|
|
73
|
+
*/
|
|
74
|
+
.select__listbox ::slotted(syn-optgroup:first-of-type) {
|
|
75
|
+
--display-divider: none;
|
|
76
|
+
}
|
|
77
|
+
`;
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
select_custom_styles_default
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=chunk.OWMT6OL2.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/select/select.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /* Clear button */\n .select__clear {\n color: var(--syn-input-icon-icon-clearable-color);\n font-size: var(--syn-spacing-large);\n }\n\n .select--medium .select__clear {\n margin-inline-start: var(--syn-spacing-small);\n }\n\n /* Expand icon */\n .select__expand-icon {\n color: var(--syn-color-neutral-950);\n font-size: var(--syn-spacing-large);\n margin-inline-start: var(--syn-spacing-small);\n }\n\n /* Change select border on hover */\n .select:not(.select--disabled):hover .select__combobox {\n border-color: var(--syn-input-color-hover);\n }\n\n /* Prefix */\n\n /* Small */\n .select--small .select__prefix::slotted(*) {\n margin-inline-end: var(--syn-spacing-x-small);\n }\n\n .select--medium .select__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-small);\n }\n\n .select--large .select__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-medium);\n }\n\n .select__prefix {\n color: var(--syn-input-help-text-color);\n }\n\n /* Multi Select */\n .select__tags {\n margin-inline-start: var(--syn-spacing-medium);\n }\n\n .select--small .select__tags {\n gap: var(--syn-spacing-2x-small);\n }\n\n .select--medium .select__tags {\n gap: var(--syn-spacing-x-small);\n }\n\n .select--large .select__tags {\n gap: var(--syn-spacing-small);\n }\n\n /* Listbox */\n .select__listbox {\n /* @todo: Should be --syn-border-radius-medium, which should be set to 0 */\n border-radius: 0;\n box-shadow: var(--syn-shadow-medium);\n }\n\n /**\n * Make sure to hide the syn-divider for the first syn-optgroup\n * Note! ::slotted does currently not work with ::part, so we\n * opted for using a css variable here.\n */\n .select__listbox ::slotted(syn-optgroup:first-of-type) {\n --display-divider: none;\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,+BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.VZ7S7YYN.js";
|
|
7
7
|
import {
|
|
8
8
|
SynergyElement
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.T72SACBE.js";
|
|
10
10
|
import {
|
|
11
11
|
__decorateClass
|
|
12
12
|
} from "./chunk.DJOAQ4JU.js";
|
|
@@ -37,4 +37,4 @@ __decorateClass([
|
|
|
37
37
|
export {
|
|
38
38
|
SynDivider
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=chunk.
|
|
40
|
+
//# sourceMappingURL=chunk.QCDOK7E4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.DVCDA2IN.js";
|
|
4
4
|
|
|
5
5
|
// src/components/button/button.ts
|
|
6
6
|
var button_default = SynButton;
|
|
@@ -9,4 +9,4 @@ SynButton.define("syn-button");
|
|
|
9
9
|
export {
|
|
10
10
|
button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.QPANY6PY.js.map
|