@synergy-design-system/components 1.0.0-main.9 → 1.0.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/LICENSE +5 -24
- package/README.md +1 -1
- package/dist/chunks/chunk.23HTU3YE.js +189 -0
- package/dist/chunks/chunk.23HTU3YE.js.map +7 -0
- package/dist/chunks/{chunk.SGZ5ADPY.js → chunk.2AFAC4WC.js} +2 -2
- package/dist/chunks/chunk.2KZQRT3X.js +12 -0
- package/dist/chunks/chunk.2KZQRT3X.js.map +7 -0
- package/dist/chunks/chunk.2XZKXVMR.js +44 -0
- package/dist/chunks/chunk.2XZKXVMR.js.map +7 -0
- package/dist/chunks/{chunk.H6VZTJD6.js → chunk.44XDJIKU.js} +2 -2
- package/dist/chunks/chunk.45EJNI43.js +12 -0
- package/dist/chunks/chunk.45EJNI43.js.map +7 -0
- package/dist/chunks/chunk.4CBN5LPQ.js +137 -0
- package/dist/chunks/chunk.4CBN5LPQ.js.map +7 -0
- package/dist/chunks/chunk.4I6M5V6O.js +56 -0
- package/dist/chunks/chunk.4I6M5V6O.js.map +7 -0
- package/dist/chunks/{chunk.5OIEI73E.js → chunk.4XAK6MOQ.js} +2 -2
- package/dist/chunks/chunk.4ZURABYO.js +24 -0
- package/dist/chunks/{chunk.BREU4ILT.js.map → chunk.4ZURABYO.js.map} +3 -3
- package/dist/chunks/chunk.AFEABUNX.js +107 -0
- package/dist/chunks/chunk.AFEABUNX.js.map +7 -0
- package/dist/chunks/chunk.CJRAYQIQ.js +360 -0
- package/dist/chunks/chunk.CJRAYQIQ.js.map +7 -0
- package/dist/chunks/chunk.D6VKS2T5.js +12 -0
- package/dist/chunks/chunk.D6VKS2T5.js.map +7 -0
- package/dist/chunks/chunk.F4MRQLNL.js +25 -0
- package/dist/chunks/chunk.F4MRQLNL.js.map +7 -0
- package/dist/chunks/chunk.FHA67NLP.js +12 -0
- package/dist/chunks/chunk.FHA67NLP.js.map +7 -0
- package/dist/chunks/{chunk.MQ3KYTNU.js → chunk.FVSP4LXX.js} +4 -4
- package/dist/chunks/chunk.FVSP4LXX.js.map +7 -0
- package/dist/chunks/chunk.GNAJOKCJ.js +32 -0
- package/dist/chunks/chunk.GNAJOKCJ.js.map +7 -0
- package/dist/chunks/chunk.ILEPKAEH.js +224 -0
- package/dist/chunks/chunk.ILEPKAEH.js.map +7 -0
- package/dist/chunks/chunk.JBYBQ5TQ.js +132 -0
- package/dist/chunks/chunk.JBYBQ5TQ.js.map +7 -0
- package/dist/chunks/chunk.JHXCBOUD.js +123 -0
- package/dist/chunks/chunk.JHXCBOUD.js.map +7 -0
- package/dist/chunks/chunk.K24GB7WK.js +86 -0
- package/dist/chunks/chunk.K24GB7WK.js.map +7 -0
- package/dist/chunks/chunk.KP6DSDGX.js +212 -0
- package/dist/chunks/chunk.KP6DSDGX.js.map +7 -0
- package/dist/chunks/{chunk.GRZ3TSGB.js → chunk.LDUXZQMQ.js} +2 -2
- package/dist/chunks/chunk.LGQOKLYP.js +12 -0
- package/dist/chunks/chunk.LGQOKLYP.js.map +7 -0
- package/dist/chunks/chunk.MNMITYTH.js +184 -0
- package/dist/chunks/chunk.MNMITYTH.js.map +7 -0
- package/dist/chunks/chunk.MNNPG5GD.js +12 -0
- package/dist/chunks/chunk.MNNPG5GD.js.map +7 -0
- package/dist/chunks/{chunk.6CFDQNJT.js → chunk.N2EPATPO.js} +14 -12
- package/dist/chunks/chunk.N2EPATPO.js.map +7 -0
- package/dist/chunks/chunk.NKIYFJN2.js +1 -0
- package/dist/chunks/chunk.NKIYFJN2.js.map +7 -0
- package/dist/chunks/chunk.OVVMSN4D.js +37 -0
- package/dist/chunks/chunk.OVVMSN4D.js.map +7 -0
- package/dist/chunks/{chunk.Q77OTWF2.js → chunk.OXUFFH57.js} +6 -66
- package/dist/chunks/{chunk.Q77OTWF2.js.map → chunk.OXUFFH57.js.map} +4 -4
- package/dist/chunks/{chunk.WDCAHRYG.js → chunk.P2LNG2PZ.js} +4 -2
- package/dist/chunks/chunk.PJO6TM3T.js +10 -0
- package/dist/chunks/{chunk.ILONRPL4.js.map → chunk.PJO6TM3T.js.map} +2 -2
- package/dist/chunks/chunk.QMK3O44E.js +351 -0
- package/dist/chunks/chunk.QMK3O44E.js.map +7 -0
- package/dist/chunks/{chunk.DYPYZ53B.js → chunk.QUUM6GP4.js} +13 -31
- package/dist/chunks/{chunk.DYPYZ53B.js.map → chunk.QUUM6GP4.js.map} +3 -3
- package/dist/chunks/{chunk.BREU4ILT.js → chunk.RSONAU45.js} +6 -1
- package/dist/chunks/chunk.RSONAU45.js.map +7 -0
- package/dist/chunks/{chunk.IZS6SARK.js → chunk.SUJGOV4C.js} +11 -38
- package/dist/chunks/{chunk.IZS6SARK.js.map → chunk.SUJGOV4C.js.map} +4 -4
- package/dist/chunks/chunk.V26UAJIM.js +111 -0
- package/dist/chunks/chunk.V26UAJIM.js.map +7 -0
- package/dist/chunks/chunk.V6VND4OF.js +49 -0
- package/dist/chunks/chunk.V6VND4OF.js.map +7 -0
- package/dist/chunks/chunk.VUW6CZ2F.js +12 -0
- package/dist/chunks/chunk.VUW6CZ2F.js.map +7 -0
- package/dist/chunks/chunk.VZ7S7YYN.js +34 -0
- package/dist/chunks/chunk.VZ7S7YYN.js.map +7 -0
- package/dist/chunks/chunk.W46CFM2R.js +90 -0
- package/dist/chunks/chunk.W46CFM2R.js.map +7 -0
- package/dist/chunks/chunk.WFAJR3FN.js +25 -0
- package/dist/chunks/chunk.WFAJR3FN.js.map +7 -0
- package/dist/chunks/chunk.X234HJNO.js +12 -0
- package/dist/chunks/chunk.X234HJNO.js.map +7 -0
- package/dist/chunks/chunk.YBIBWRKC.js +19 -0
- package/dist/chunks/chunk.YBIBWRKC.js.map +7 -0
- package/dist/chunks/chunk.YQQJ6ELJ.js +127 -0
- package/dist/chunks/chunk.YQQJ6ELJ.js.map +7 -0
- package/dist/chunks/{chunk.OZSASB66.js → chunk.YTS5TRJZ.js} +2 -2
- package/dist/chunks/{chunk.OZSASB66.js.map → chunk.YTS5TRJZ.js.map} +1 -1
- package/dist/chunks/{chunk.WTCUSH7V.js → chunk.Z3RZUTQU.js} +2 -2
- package/dist/chunks/{chunk.YOW3IJVJ.js → chunk.ZUNBGZ5R.js} +2 -2
- package/dist/chunks/{chunk.YOW3IJVJ.js.map → chunk.ZUNBGZ5R.js.map} +1 -1
- package/dist/components/button/button.component.js +13 -11
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +14 -12
- package/dist/components/button/button.styles.js +2 -2
- package/dist/components/button-group/button-group.component.d.ts +28 -0
- package/dist/components/button-group/button-group.component.js +11 -0
- package/dist/components/button-group/button-group.component.js.map +7 -0
- package/dist/components/button-group/button-group.d.ts +8 -0
- package/dist/components/button-group/button-group.js +12 -0
- package/dist/components/button-group/button-group.js.map +7 -0
- package/dist/components/button-group/button-group.styles.d.ts +2 -0
- package/dist/components/button-group/button-group.styles.js +9 -0
- package/dist/components/button-group/button-group.styles.js.map +7 -0
- package/dist/components/checkbox/checkbox.component.d.ts +93 -0
- package/dist/components/checkbox/checkbox.component.js +22 -0
- package/dist/components/checkbox/checkbox.component.js.map +7 -0
- package/dist/components/checkbox/checkbox.custom.styles.js +3 -6
- package/dist/components/checkbox/checkbox.custom.styles.js.map +3 -3
- package/dist/components/checkbox/checkbox.d.ts +8 -0
- package/dist/components/checkbox/checkbox.js +23 -0
- package/dist/components/checkbox/checkbox.js.map +7 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +2 -0
- package/dist/components/checkbox/checkbox.styles.js +10 -0
- package/dist/components/checkbox/checkbox.styles.js.map +7 -0
- package/dist/components/icon/icon.component.js +7 -5
- package/dist/components/icon/icon.custom.styles.d.ts +2 -0
- package/dist/components/icon/icon.custom.styles.js +8 -0
- package/dist/components/icon/icon.custom.styles.js.map +7 -0
- package/dist/components/icon/icon.js +9 -10
- package/dist/components/icon/icon.js.map +3 -3
- package/dist/components/icon/icon.styles.js +2 -1
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/input/input.component.js +14 -10
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +15 -11
- package/dist/components/input/input.styles.js +3 -2
- package/dist/components/radio/radio.component.d.ts +53 -0
- package/dist/components/radio/radio.component.js +20 -0
- package/dist/components/radio/radio.component.js.map +7 -0
- package/dist/components/radio/radio.custom.styles.d.ts +2 -0
- package/dist/components/radio/radio.custom.styles.js +8 -0
- package/dist/components/radio/radio.custom.styles.js.map +7 -0
- package/dist/components/radio/radio.d.ts +8 -0
- package/dist/components/radio/radio.js +21 -0
- package/dist/components/radio/radio.js.map +7 -0
- package/dist/components/radio/radio.styles.d.ts +2 -0
- package/dist/components/radio/radio.styles.js +10 -0
- package/dist/components/radio/radio.styles.js.map +7 -0
- package/dist/components/radio-button/radio-button.component.d.ts +53 -0
- package/dist/components/radio-button/radio-button.component.js +15 -0
- package/dist/components/radio-button/radio-button.component.js.map +7 -0
- package/dist/components/radio-button/radio-button.d.ts +8 -0
- package/dist/components/radio-button/radio-button.js +16 -0
- package/dist/components/radio-button/radio-button.js.map +7 -0
- package/dist/components/radio-button/radio-button.styles.d.ts +2 -0
- package/dist/components/radio-button/radio-button.styles.js +11 -0
- package/dist/components/radio-button/radio-button.styles.js.map +7 -0
- package/dist/components/radio-group/radio-group.component.d.ts +89 -0
- package/dist/components/radio-group/radio-group.component.js +18 -0
- package/dist/components/radio-group/radio-group.component.js.map +7 -0
- package/dist/components/radio-group/radio-group.custom.styles.d.ts +2 -0
- package/dist/components/radio-group/radio-group.custom.styles.js +8 -0
- package/dist/components/radio-group/radio-group.custom.styles.js.map +7 -0
- package/dist/components/radio-group/radio-group.d.ts +8 -0
- package/dist/components/radio-group/radio-group.js +19 -0
- package/dist/components/radio-group/radio-group.js.map +7 -0
- package/dist/components/radio-group/radio-group.styles.d.ts +2 -0
- package/dist/components/radio-group/radio-group.styles.js +11 -0
- package/dist/components/radio-group/radio-group.styles.js.map +7 -0
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/switch/switch.component.d.ts +86 -0
- package/dist/components/switch/switch.component.js +15 -0
- package/dist/components/switch/switch.component.js.map +7 -0
- package/dist/components/switch/switch.custom.styles.d.ts +2 -0
- package/dist/components/switch/switch.custom.styles.js +8 -0
- package/dist/components/switch/switch.custom.styles.js.map +7 -0
- package/dist/components/switch/switch.d.ts +8 -0
- package/dist/components/switch/switch.js +16 -0
- package/dist/components/switch/switch.js.map +7 -0
- package/dist/components/switch/switch.styles.d.ts +2 -0
- package/dist/components/switch/switch.styles.js +10 -0
- package/dist/components/switch/switch.styles.js.map +7 -0
- package/dist/components/textarea/textarea.component.d.ts +131 -0
- package/dist/components/textarea/textarea.component.js +17 -0
- package/dist/components/textarea/textarea.component.js.map +7 -0
- package/dist/components/textarea/textarea.custom.styles.js +3 -6
- package/dist/components/textarea/textarea.custom.styles.js.map +3 -3
- package/dist/components/textarea/textarea.d.ts +8 -0
- package/dist/components/textarea/textarea.js +18 -0
- package/dist/components/textarea/textarea.js.map +7 -0
- package/dist/components/textarea/textarea.styles.d.ts +2 -0
- package/dist/components/textarea/textarea.styles.js +11 -0
- package/dist/components/textarea/textarea.styles.js.map +7 -0
- package/dist/custom-elements.json +3072 -480
- package/dist/internal/test.d.ts +28 -0
- package/dist/styles/form-control.custom.styles.d.ts +2 -0
- package/dist/synergy.d.ts +11 -1
- package/dist/synergy.js +87 -21
- package/dist/utilities/form.js +2 -2
- package/dist/utilities/icon-library.d.ts +1 -0
- package/dist/utilities/icon-library.js +14 -0
- package/dist/utilities/icon-library.js.map +7 -0
- package/dist/vscode.html-custom-data.json +389 -0
- package/dist/web-types.json +866 -8
- package/package.json +23 -16
- package/dist/chunks/chunk.6CFDQNJT.js.map +0 -7
- package/dist/chunks/chunk.ILONRPL4.js +0 -10
- package/dist/chunks/chunk.MQ3KYTNU.js.map +0 -7
- package/dist/chunks/chunk.U7ZJ22QM.js +0 -128
- package/dist/chunks/chunk.U7ZJ22QM.js.map +0 -7
- /package/dist/chunks/{chunk.SGZ5ADPY.js.map → chunk.2AFAC4WC.js.map} +0 -0
- /package/dist/chunks/{chunk.H6VZTJD6.js.map → chunk.44XDJIKU.js.map} +0 -0
- /package/dist/chunks/{chunk.5OIEI73E.js.map → chunk.4XAK6MOQ.js.map} +0 -0
- /package/dist/chunks/{chunk.GRZ3TSGB.js.map → chunk.LDUXZQMQ.js.map} +0 -0
- /package/dist/chunks/{chunk.WDCAHRYG.js.map → chunk.P2LNG2PZ.js.map} +0 -0
- /package/dist/chunks/{chunk.WTCUSH7V.js.map → chunk.Z3RZUTQU.js.map} +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// src/components/switch/switch.custom.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var switch_custom_styles_default = css`
|
|
4
|
+
:host([size='small']) {
|
|
5
|
+
--height: calc(var(--syn-font-size-medium) + 2px);
|
|
6
|
+
--thumb-size: var(--syn-font-size-small);
|
|
7
|
+
--width: calc((var(--height) * 2) - 6px);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host([size='medium']) {
|
|
11
|
+
--height: var(--syn-font-size-large);
|
|
12
|
+
--thumb-size: var(--syn-font-size-medium);
|
|
13
|
+
--width: calc((var(--height) * 2) - 6px);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([size='large']) {
|
|
17
|
+
--height: calc(var(--syn-toggle-size-large) + 4px);
|
|
18
|
+
--thumb-size: var(--syn-toggle-size-large);
|
|
19
|
+
--width: calc((var(--height) * 2) - 6px);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.switch.switch--small {
|
|
23
|
+
padding: var(--syn-spacing-2x-small) 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.switch.switch--medium {
|
|
27
|
+
padding: var(--syn-spacing-2x-small) 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.switch.switch--large {
|
|
31
|
+
padding: var(--syn-spacing-3x-small) 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.switch__control {
|
|
35
|
+
background-color: var(--syn-color-neutral-600);
|
|
36
|
+
border: solid var(--syn-border-width-medium) var(--syn-color-neutral-600);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.switch__control .switch__thumb {
|
|
40
|
+
border: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Hover */
|
|
44
|
+
.switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover {
|
|
45
|
+
background-color: var(--syn-color-neutral-900);
|
|
46
|
+
border-color: var(--syn-color-neutral-900);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover .switch__thumb {
|
|
50
|
+
background-color: var(--syn-color-neutral-0);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Checked + hover */
|
|
54
|
+
.switch.switch--checked:not(.switch--disabled) .switch__control:hover {
|
|
55
|
+
background-color: var(--syn-color-primary-900);
|
|
56
|
+
border-color: var(--syn-color-primary-900);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb {
|
|
60
|
+
background-color: var(--syn-color-neutral-0);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Focus */
|
|
64
|
+
.switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {
|
|
65
|
+
background-color: var(--syn-color-neutral-600);
|
|
66
|
+
border-color: var(--syn-color-neutral-600);
|
|
67
|
+
outline: var(--syn-focus-ring);
|
|
68
|
+
outline-offset: var(--syn-focus-ring-offset);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb {
|
|
72
|
+
background-color: var(--syn-color-neutral-0);
|
|
73
|
+
outline: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Checked + focus */
|
|
77
|
+
.switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {
|
|
78
|
+
background-color: var(--syn-color-primary-900);
|
|
79
|
+
border-color: var(--syn-color-primary-900);
|
|
80
|
+
outline: var(--syn-focus-ring);
|
|
81
|
+
outline-offset: var(--syn-focus-ring-offset);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb {
|
|
85
|
+
background-color: var(--syn-color-neutral-0);
|
|
86
|
+
outline: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.switch__label {
|
|
90
|
+
margin-inline-start: var(--syn-spacing-x-small);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host([data-user-invalid]) .switch:not(.switch--checked):not(.switch--disabled) .switch__control {
|
|
94
|
+
background-color: var(--syn-color-error-700);
|
|
95
|
+
border-color: var(--syn-color-error-700);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:host([data-user-invalid]) .switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover {
|
|
99
|
+
background-color: var(--syn-color-error-900);
|
|
100
|
+
border-color: var(--syn-color-error-900);
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
103
|
+
|
|
104
|
+
export {
|
|
105
|
+
switch_custom_styles_default
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=chunk.AFEABUNX.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/switch/switch.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n:host([size='small']) {\n --height: calc(var(--syn-font-size-medium) + 2px);\n --thumb-size: var(--syn-font-size-small);\n --width: calc((var(--height) * 2) - 6px);\n }\n\n :host([size='medium']) {\n --height: var(--syn-font-size-large);\n --thumb-size: var(--syn-font-size-medium);\n --width: calc((var(--height) * 2) - 6px);\n }\n\n :host([size='large']) {\n --height: calc(var(--syn-toggle-size-large) + 4px);\n --thumb-size: var(--syn-toggle-size-large);\n --width: calc((var(--height) * 2) - 6px);\n }\n\n .switch.switch--small {\n padding: var(--syn-spacing-2x-small) 0;\n }\n\n .switch.switch--medium {\n padding: var(--syn-spacing-2x-small) 0;\n }\n\n .switch.switch--large {\n padding: var(--syn-spacing-3x-small) 0;\n }\n\n .switch__control {\n background-color: var(--syn-color-neutral-600);\n border: solid var(--syn-border-width-medium) var(--syn-color-neutral-600);\n }\n\n .switch__control .switch__thumb {\n border: none;\n }\n\n /* Hover */\n .switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover {\n background-color: var(--syn-color-neutral-900);\n border-color: var(--syn-color-neutral-900);\n }\n\n .switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover .switch__thumb {\n background-color: var(--syn-color-neutral-0);\n }\n\n /* Checked + hover */\n .switch.switch--checked:not(.switch--disabled) .switch__control:hover {\n background-color: var(--syn-color-primary-900);\n border-color: var(--syn-color-primary-900);\n }\n\n .switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb {\n background-color: var(--syn-color-neutral-0);\n }\n\n /* Focus */\n .switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {\n background-color: var(--syn-color-neutral-600);\n border-color: var(--syn-color-neutral-600);\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n .switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb {\n background-color: var(--syn-color-neutral-0);\n outline: none;\n }\n\n /* Checked + focus */\n .switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {\n background-color: var(--syn-color-primary-900);\n border-color: var(--syn-color-primary-900);\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-offset);\n }\n\n .switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb {\n background-color: var(--syn-color-neutral-0);\n outline: none;\n }\n\n .switch__label {\n margin-inline-start: var(--syn-spacing-x-small);\n }\n \n :host([data-user-invalid]) .switch:not(.switch--checked):not(.switch--disabled) .switch__control {\n background-color: var(--syn-color-error-700);\n border-color: var(--syn-color-error-700);\n }\n\n :host([data-user-invalid]) .switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover {\n background-color: var(--syn-color-error-900);\n border-color: var(--syn-color-error-900);\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;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import {
|
|
2
|
+
textarea_styles_default
|
|
3
|
+
} from "./chunk.23HTU3YE.js";
|
|
4
|
+
import {
|
|
5
|
+
defaultValue
|
|
6
|
+
} from "./chunk.WFAJR3FN.js";
|
|
7
|
+
import {
|
|
8
|
+
HasSlotController
|
|
9
|
+
} from "./chunk.XGXFE6IF.js";
|
|
10
|
+
import {
|
|
11
|
+
FormControlController
|
|
12
|
+
} from "./chunk.P2LNG2PZ.js";
|
|
13
|
+
import {
|
|
14
|
+
watch
|
|
15
|
+
} from "./chunk.VZ7S7YYN.js";
|
|
16
|
+
import {
|
|
17
|
+
SynergyElement
|
|
18
|
+
} from "./chunk.ZUNBGZ5R.js";
|
|
19
|
+
import {
|
|
20
|
+
__decorateClass
|
|
21
|
+
} from "./chunk.DJOAQ4JU.js";
|
|
22
|
+
|
|
23
|
+
// src/components/textarea/textarea.component.ts
|
|
24
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
25
|
+
import { html } from "lit";
|
|
26
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
27
|
+
import { live } from "lit/directives/live.js";
|
|
28
|
+
import { property, query, state } from "lit/decorators.js";
|
|
29
|
+
var SynTextarea = class extends SynergyElement {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
this.formControlController = new FormControlController(this, {
|
|
33
|
+
assumeInteractionOn: ["syn-blur", "syn-input"]
|
|
34
|
+
});
|
|
35
|
+
this.hasSlotController = new HasSlotController(this, "help-text", "label", "prefix", "suffix");
|
|
36
|
+
this.hasFocus = false;
|
|
37
|
+
this.title = "";
|
|
38
|
+
this.name = "";
|
|
39
|
+
this.value = "";
|
|
40
|
+
this.size = "medium";
|
|
41
|
+
this.label = "";
|
|
42
|
+
this.helpText = "";
|
|
43
|
+
this.placeholder = "";
|
|
44
|
+
this.rows = 4;
|
|
45
|
+
this.resize = "vertical";
|
|
46
|
+
this.disabled = false;
|
|
47
|
+
this.readonly = false;
|
|
48
|
+
this.form = "";
|
|
49
|
+
this.required = false;
|
|
50
|
+
this.spellcheck = true;
|
|
51
|
+
this.defaultValue = "";
|
|
52
|
+
}
|
|
53
|
+
/** Gets the validity state object */
|
|
54
|
+
get validity() {
|
|
55
|
+
return this.input.validity;
|
|
56
|
+
}
|
|
57
|
+
/** Gets the validation message */
|
|
58
|
+
get validationMessage() {
|
|
59
|
+
return this.input.validationMessage;
|
|
60
|
+
}
|
|
61
|
+
connectedCallback() {
|
|
62
|
+
super.connectedCallback();
|
|
63
|
+
this.resizeObserver = new ResizeObserver(() => this.setTextareaHeight());
|
|
64
|
+
this.updateComplete.then(() => {
|
|
65
|
+
this.setTextareaHeight();
|
|
66
|
+
this.resizeObserver.observe(this.input);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
firstUpdated() {
|
|
70
|
+
this.formControlController.updateValidity();
|
|
71
|
+
}
|
|
72
|
+
disconnectedCallback() {
|
|
73
|
+
super.disconnectedCallback();
|
|
74
|
+
this.resizeObserver.unobserve(this.input);
|
|
75
|
+
}
|
|
76
|
+
handleBlur() {
|
|
77
|
+
this.hasFocus = false;
|
|
78
|
+
this.emit("syn-blur");
|
|
79
|
+
}
|
|
80
|
+
handleChange() {
|
|
81
|
+
this.value = this.input.value;
|
|
82
|
+
this.setTextareaHeight();
|
|
83
|
+
this.emit("syn-change");
|
|
84
|
+
}
|
|
85
|
+
handleFocus() {
|
|
86
|
+
this.hasFocus = true;
|
|
87
|
+
this.emit("syn-focus");
|
|
88
|
+
}
|
|
89
|
+
handleInput() {
|
|
90
|
+
this.value = this.input.value;
|
|
91
|
+
this.emit("syn-input");
|
|
92
|
+
}
|
|
93
|
+
handleInvalid(event) {
|
|
94
|
+
this.formControlController.setValidity(false);
|
|
95
|
+
this.formControlController.emitInvalidEvent(event);
|
|
96
|
+
}
|
|
97
|
+
setTextareaHeight() {
|
|
98
|
+
if (this.resize === "auto") {
|
|
99
|
+
this.input.style.height = "auto";
|
|
100
|
+
this.input.style.height = `${this.input.scrollHeight}px`;
|
|
101
|
+
} else {
|
|
102
|
+
this.input.style.height = void 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
handleDisabledChange() {
|
|
106
|
+
this.formControlController.setValidity(this.disabled);
|
|
107
|
+
}
|
|
108
|
+
handleRowsChange() {
|
|
109
|
+
this.setTextareaHeight();
|
|
110
|
+
}
|
|
111
|
+
async handleValueChange() {
|
|
112
|
+
await this.updateComplete;
|
|
113
|
+
this.formControlController.updateValidity();
|
|
114
|
+
this.setTextareaHeight();
|
|
115
|
+
}
|
|
116
|
+
/** Sets focus on the textarea. */
|
|
117
|
+
focus(options) {
|
|
118
|
+
this.input.focus(options);
|
|
119
|
+
}
|
|
120
|
+
/** Removes focus from the textarea. */
|
|
121
|
+
blur() {
|
|
122
|
+
this.input.blur();
|
|
123
|
+
}
|
|
124
|
+
/** Selects all the text in the textarea. */
|
|
125
|
+
select() {
|
|
126
|
+
this.input.select();
|
|
127
|
+
}
|
|
128
|
+
/** Gets or sets the textarea's scroll position. */
|
|
129
|
+
scrollPosition(position) {
|
|
130
|
+
if (position) {
|
|
131
|
+
if (typeof position.top === "number")
|
|
132
|
+
this.input.scrollTop = position.top;
|
|
133
|
+
if (typeof position.left === "number")
|
|
134
|
+
this.input.scrollLeft = position.left;
|
|
135
|
+
return void 0;
|
|
136
|
+
}
|
|
137
|
+
return {
|
|
138
|
+
top: this.input.scrollTop,
|
|
139
|
+
left: this.input.scrollTop
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
/** Sets the start and end positions of the text selection (0-based). */
|
|
143
|
+
setSelectionRange(selectionStart, selectionEnd, selectionDirection = "none") {
|
|
144
|
+
this.input.setSelectionRange(selectionStart, selectionEnd, selectionDirection);
|
|
145
|
+
}
|
|
146
|
+
/** Replaces a range of text with a new string. */
|
|
147
|
+
setRangeText(replacement, start, end, selectMode) {
|
|
148
|
+
this.input.setRangeText(replacement, start, end, selectMode);
|
|
149
|
+
if (this.value !== this.input.value) {
|
|
150
|
+
this.value = this.input.value;
|
|
151
|
+
}
|
|
152
|
+
if (this.value !== this.input.value) {
|
|
153
|
+
this.value = this.input.value;
|
|
154
|
+
this.setTextareaHeight();
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
158
|
+
checkValidity() {
|
|
159
|
+
return this.input.checkValidity();
|
|
160
|
+
}
|
|
161
|
+
/** Gets the associated form, if one exists. */
|
|
162
|
+
getForm() {
|
|
163
|
+
return this.formControlController.getForm();
|
|
164
|
+
}
|
|
165
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
166
|
+
reportValidity() {
|
|
167
|
+
return this.input.reportValidity();
|
|
168
|
+
}
|
|
169
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
170
|
+
setCustomValidity(message) {
|
|
171
|
+
this.input.setCustomValidity(message);
|
|
172
|
+
this.formControlController.updateValidity();
|
|
173
|
+
}
|
|
174
|
+
render() {
|
|
175
|
+
const hasLabelSlot = this.hasSlotController.test("label");
|
|
176
|
+
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
177
|
+
const hasPrefixSlot = this.hasSlotController.test("prefix");
|
|
178
|
+
const hasSuffixSlot = this.hasSlotController.test("suffix");
|
|
179
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
180
|
+
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
181
|
+
return html`
|
|
182
|
+
<div
|
|
183
|
+
part="form-control"
|
|
184
|
+
class=${classMap({
|
|
185
|
+
"form-control": true,
|
|
186
|
+
"form-control--small": this.size === "small",
|
|
187
|
+
"form-control--medium": this.size === "medium",
|
|
188
|
+
"form-control--large": this.size === "large",
|
|
189
|
+
"form-control--has-label": hasLabel,
|
|
190
|
+
"form-control--has-help-text": hasHelpText,
|
|
191
|
+
"form-control--has-prefix": hasPrefixSlot,
|
|
192
|
+
"form-control--has-suffix": hasSuffixSlot
|
|
193
|
+
})}
|
|
194
|
+
>
|
|
195
|
+
<label
|
|
196
|
+
part="form-control-label"
|
|
197
|
+
class="form-control__label"
|
|
198
|
+
for="input"
|
|
199
|
+
aria-hidden=${hasLabel ? "false" : "true"}
|
|
200
|
+
>
|
|
201
|
+
<slot name="label">${this.label}</slot>
|
|
202
|
+
</label>
|
|
203
|
+
|
|
204
|
+
<div part="form-control-input" class="form-control-input">
|
|
205
|
+
<div
|
|
206
|
+
part="base"
|
|
207
|
+
class=${classMap({
|
|
208
|
+
textarea: true,
|
|
209
|
+
"textarea--small": this.size === "small",
|
|
210
|
+
"textarea--medium": this.size === "medium",
|
|
211
|
+
"textarea--large": this.size === "large",
|
|
212
|
+
"textarea--standard": !this.readonly,
|
|
213
|
+
"textarea--readonly": this.readonly,
|
|
214
|
+
"textarea--disabled": this.disabled,
|
|
215
|
+
"textarea--focused": this.hasFocus,
|
|
216
|
+
"textarea--empty": !this.value,
|
|
217
|
+
"textarea--resize-none": this.resize === "none",
|
|
218
|
+
"textarea--resize-vertical": this.resize === "vertical",
|
|
219
|
+
"textarea--resize-auto": this.resize === "auto"
|
|
220
|
+
})}
|
|
221
|
+
>
|
|
222
|
+
<textarea
|
|
223
|
+
part="textarea"
|
|
224
|
+
id="input"
|
|
225
|
+
class="textarea__control"
|
|
226
|
+
title=${this.title}
|
|
227
|
+
name=${ifDefined(this.name)}
|
|
228
|
+
.value=${live(this.value)}
|
|
229
|
+
?disabled=${this.disabled}
|
|
230
|
+
?readonly=${this.readonly}
|
|
231
|
+
?required=${this.required}
|
|
232
|
+
placeholder=${ifDefined(this.placeholder)}
|
|
233
|
+
rows=${ifDefined(this.rows)}
|
|
234
|
+
minlength=${ifDefined(this.minlength)}
|
|
235
|
+
maxlength=${ifDefined(this.maxlength)}
|
|
236
|
+
autocapitalize=${ifDefined(this.autocapitalize)}
|
|
237
|
+
autocorrect=${ifDefined(this.autocorrect)}
|
|
238
|
+
?autofocus=${this.autofocus}
|
|
239
|
+
spellcheck=${ifDefined(this.spellcheck)}
|
|
240
|
+
enterkeyhint=${ifDefined(this.enterkeyhint)}
|
|
241
|
+
inputmode=${ifDefined(this.inputmode)}
|
|
242
|
+
aria-describedby="help-text"
|
|
243
|
+
@change=${this.handleChange}
|
|
244
|
+
@input=${this.handleInput}
|
|
245
|
+
@invalid=${this.handleInvalid}
|
|
246
|
+
@focus=${this.handleFocus}
|
|
247
|
+
@blur=${this.handleBlur}
|
|
248
|
+
></textarea>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
|
|
252
|
+
<div
|
|
253
|
+
part="form-control-help-text"
|
|
254
|
+
id="help-text"
|
|
255
|
+
class="form-control__help-text"
|
|
256
|
+
aria-hidden=${hasHelpText ? "false" : "true"}
|
|
257
|
+
>
|
|
258
|
+
<slot name="help-text">${this.helpText}</slot>
|
|
259
|
+
</div>
|
|
260
|
+
</div>
|
|
261
|
+
`;
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
SynTextarea.styles = textarea_styles_default;
|
|
265
|
+
__decorateClass([
|
|
266
|
+
query(".textarea__control")
|
|
267
|
+
], SynTextarea.prototype, "input", 2);
|
|
268
|
+
__decorateClass([
|
|
269
|
+
state()
|
|
270
|
+
], SynTextarea.prototype, "hasFocus", 2);
|
|
271
|
+
__decorateClass([
|
|
272
|
+
property()
|
|
273
|
+
], SynTextarea.prototype, "title", 2);
|
|
274
|
+
__decorateClass([
|
|
275
|
+
property()
|
|
276
|
+
], SynTextarea.prototype, "name", 2);
|
|
277
|
+
__decorateClass([
|
|
278
|
+
property()
|
|
279
|
+
], SynTextarea.prototype, "value", 2);
|
|
280
|
+
__decorateClass([
|
|
281
|
+
property({ reflect: true })
|
|
282
|
+
], SynTextarea.prototype, "size", 2);
|
|
283
|
+
__decorateClass([
|
|
284
|
+
property()
|
|
285
|
+
], SynTextarea.prototype, "label", 2);
|
|
286
|
+
__decorateClass([
|
|
287
|
+
property({ attribute: "help-text" })
|
|
288
|
+
], SynTextarea.prototype, "helpText", 2);
|
|
289
|
+
__decorateClass([
|
|
290
|
+
property()
|
|
291
|
+
], SynTextarea.prototype, "placeholder", 2);
|
|
292
|
+
__decorateClass([
|
|
293
|
+
property({ type: Number })
|
|
294
|
+
], SynTextarea.prototype, "rows", 2);
|
|
295
|
+
__decorateClass([
|
|
296
|
+
property()
|
|
297
|
+
], SynTextarea.prototype, "resize", 2);
|
|
298
|
+
__decorateClass([
|
|
299
|
+
property({ type: Boolean, reflect: true })
|
|
300
|
+
], SynTextarea.prototype, "disabled", 2);
|
|
301
|
+
__decorateClass([
|
|
302
|
+
property({ type: Boolean, reflect: true })
|
|
303
|
+
], SynTextarea.prototype, "readonly", 2);
|
|
304
|
+
__decorateClass([
|
|
305
|
+
property({ reflect: true })
|
|
306
|
+
], SynTextarea.prototype, "form", 2);
|
|
307
|
+
__decorateClass([
|
|
308
|
+
property({ type: Boolean, reflect: true })
|
|
309
|
+
], SynTextarea.prototype, "required", 2);
|
|
310
|
+
__decorateClass([
|
|
311
|
+
property({ type: Number })
|
|
312
|
+
], SynTextarea.prototype, "minlength", 2);
|
|
313
|
+
__decorateClass([
|
|
314
|
+
property({ type: Number })
|
|
315
|
+
], SynTextarea.prototype, "maxlength", 2);
|
|
316
|
+
__decorateClass([
|
|
317
|
+
property()
|
|
318
|
+
], SynTextarea.prototype, "autocapitalize", 2);
|
|
319
|
+
__decorateClass([
|
|
320
|
+
property()
|
|
321
|
+
], SynTextarea.prototype, "autocorrect", 2);
|
|
322
|
+
__decorateClass([
|
|
323
|
+
property()
|
|
324
|
+
], SynTextarea.prototype, "autocomplete", 2);
|
|
325
|
+
__decorateClass([
|
|
326
|
+
property({ type: Boolean })
|
|
327
|
+
], SynTextarea.prototype, "autofocus", 2);
|
|
328
|
+
__decorateClass([
|
|
329
|
+
property()
|
|
330
|
+
], SynTextarea.prototype, "enterkeyhint", 2);
|
|
331
|
+
__decorateClass([
|
|
332
|
+
property({
|
|
333
|
+
type: Boolean,
|
|
334
|
+
converter: {
|
|
335
|
+
// Allow "true|false" attribute values but keep the property boolean
|
|
336
|
+
fromAttribute: (value) => !value || value === "false" ? false : true,
|
|
337
|
+
toAttribute: (value) => value ? "true" : "false"
|
|
338
|
+
}
|
|
339
|
+
})
|
|
340
|
+
], SynTextarea.prototype, "spellcheck", 2);
|
|
341
|
+
__decorateClass([
|
|
342
|
+
property()
|
|
343
|
+
], SynTextarea.prototype, "inputmode", 2);
|
|
344
|
+
__decorateClass([
|
|
345
|
+
defaultValue()
|
|
346
|
+
], SynTextarea.prototype, "defaultValue", 2);
|
|
347
|
+
__decorateClass([
|
|
348
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
349
|
+
], SynTextarea.prototype, "handleDisabledChange", 1);
|
|
350
|
+
__decorateClass([
|
|
351
|
+
watch("rows", { waitUntilFirstUpdate: true })
|
|
352
|
+
], SynTextarea.prototype, "handleRowsChange", 1);
|
|
353
|
+
__decorateClass([
|
|
354
|
+
watch("value", { waitUntilFirstUpdate: true })
|
|
355
|
+
], SynTextarea.prototype, "handleValueChange", 1);
|
|
356
|
+
|
|
357
|
+
export {
|
|
358
|
+
SynTextarea
|
|
359
|
+
};
|
|
360
|
+
//# sourceMappingURL=chunk.CJRAYQIQ.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/textarea/textarea.component.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 { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './textarea.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\n\n/**\n * @summary Textareas collect data from the user and allow multiple lines of text.\n * @documentation https://synergy.style/components/textarea\n * @status stable\n * @since 2.0\n *\n * @slot label - The textarea's label. Alternatively, you can use the `label` attribute.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart textarea - The internal `<textarea>` control.\n */\nexport default class SynTextarea extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = styles;\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-blur', 'syn-input']\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label', 'prefix', 'suffix');\n private resizeObserver: ResizeObserver;\n\n @query('.textarea__control') input: HTMLTextAreaElement;\n\n @state() private hasFocus = false;\n @property() title = ''; // make reactive to pass through\n\n /** The name of the textarea, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the textarea, submitted as a name/value pair with form data. */\n @property() value = '';\n\n /** The textarea's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The textarea's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /** The textarea's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Placeholder text to show as a hint when the input is empty. */\n @property() placeholder = '';\n\n /** The number of rows to display by default. */\n @property({ type: Number }) rows = 4;\n\n /** Controls how the textarea can be resized. */\n @property() resize: 'none' | 'vertical' | 'auto' = 'vertical';\n\n /** Disables the textarea. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Makes the textarea readonly. */\n @property({ type: Boolean, reflect: true }) readonly = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the textarea a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** The minimum length of input that will be considered valid. */\n @property({ type: Number }) minlength: number;\n\n /** The maximum length of input that will be considered valid. */\n @property({ type: Number }) maxlength: number;\n\n /** Controls whether and how text input is automatically capitalized as it is entered by the user. */\n @property() autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';\n\n /** Indicates whether the browser's autocorrect feature is on or off. */\n @property() autocorrect: string;\n\n /**\n * Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n * [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.\n */\n @property() autocomplete: string;\n\n /** Indicates that the input should receive focus on page load. */\n @property({ type: Boolean }) autofocus: boolean;\n\n /** Used to customize the label or icon of the Enter key on virtual keyboards. */\n @property() enterkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';\n\n /** Enables spell checking on the textarea. */\n @property({\n type: Boolean,\n converter: {\n // Allow \"true|false\" attribute values but keep the property boolean\n fromAttribute: value => (!value || value === 'false' ? false : true),\n toAttribute: value => (value ? 'true' : 'false')\n }\n })\n spellcheck = true;\n\n /**\n * Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\n * keyboard on supportive devices.\n */\n @property() inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(() => this.setTextareaHeight());\n\n this.updateComplete.then(() => {\n this.setTextareaHeight();\n this.resizeObserver.observe(this.input);\n });\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver.unobserve(this.input);\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleChange() {\n this.value = this.input.value;\n this.setTextareaHeight();\n this.emit('syn-change');\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n private handleInput() {\n this.value = this.input.value;\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private setTextareaHeight() {\n if (this.resize === 'auto') {\n this.input.style.height = 'auto';\n this.input.style.height = `${this.input.scrollHeight}px`;\n } else {\n (this.input.style.height as string | undefined) = undefined;\n }\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n\n @watch('rows', { waitUntilFirstUpdate: true })\n handleRowsChange() {\n this.setTextareaHeight();\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n async handleValueChange() {\n await this.updateComplete;\n this.formControlController.updateValidity();\n this.setTextareaHeight();\n }\n\n /** Sets focus on the textarea. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the textarea. */\n blur() {\n this.input.blur();\n }\n\n /** Selects all the text in the textarea. */\n select() {\n this.input.select();\n }\n\n /** Gets or sets the textarea's scroll position. */\n scrollPosition(position?: { top?: number; left?: number }): { top: number; left: number } | undefined {\n if (position) {\n if (typeof position.top === 'number') this.input.scrollTop = position.top;\n if (typeof position.left === 'number') this.input.scrollLeft = position.left;\n return undefined;\n }\n\n return {\n top: this.input.scrollTop,\n left: this.input.scrollTop\n };\n }\n\n /** Sets the start and end positions of the text selection (0-based). */\n setSelectionRange(\n selectionStart: number,\n selectionEnd: number,\n selectionDirection: 'forward' | 'backward' | 'none' = 'none'\n ) {\n this.input.setSelectionRange(selectionStart, selectionEnd, selectionDirection);\n }\n\n /** Replaces a range of text with a new string. */\n setRangeText(\n replacement: string,\n start?: number,\n end?: number,\n selectMode?: 'select' | 'start' | 'end' | 'preserve'\n ) {\n // @ts-expect-error - start, end, and selectMode are optional\n this.input.setRangeText(replacement, start, end, selectMode);\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n }\n\n if (this.value !== this.input.value) {\n this.value = this.input.value;\n this.setTextareaHeight();\n }\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.input.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasPrefixSlot = this.hasSlotController.test('prefix');\n const hasSuffixSlot = this.hasSlotController.test('suffix');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-label': hasLabel,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-prefix': hasPrefixSlot,\n 'form-control--has-suffix': hasSuffixSlot\n })}\n >\n <label\n part=\"form-control-label\"\n class=\"form-control__label\"\n for=\"input\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div part=\"form-control-input\" class=\"form-control-input\">\n <div\n part=\"base\"\n class=${classMap({\n textarea: true,\n 'textarea--small': this.size === 'small',\n 'textarea--medium': this.size === 'medium',\n 'textarea--large': this.size === 'large',\n 'textarea--standard': !this.readonly,\n 'textarea--readonly': this.readonly,\n 'textarea--disabled': this.disabled,\n 'textarea--focused': this.hasFocus,\n 'textarea--empty': !this.value,\n 'textarea--resize-none': this.resize === 'none',\n 'textarea--resize-vertical': this.resize === 'vertical',\n 'textarea--resize-auto': this.resize === 'auto'\n })}\n >\n <textarea\n part=\"textarea\"\n id=\"input\"\n class=\"textarea__control\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${ifDefined(this.name)}\n .value=${live(this.value)}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?required=${this.required}\n placeholder=${ifDefined(this.placeholder)}\n rows=${ifDefined(this.rows)}\n minlength=${ifDefined(this.minlength)}\n maxlength=${ifDefined(this.maxlength)}\n autocapitalize=${ifDefined(this.autocapitalize)}\n autocorrect=${ifDefined(this.autocorrect)}\n ?autofocus=${this.autofocus}\n spellcheck=${ifDefined(this.spellcheck)}\n enterkeyhint=${ifDefined(this.enterkeyhint)}\n inputmode=${ifDefined(this.inputmode)}\n aria-describedby=\"help-text\"\n @change=${this.handleChange}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n ></textarea>\n </div>\n </div>\n\n <div\n part=\"form-control-help-text\"\n id=\"help-text\"\n class=\"form-control__help-text\"\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAMA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AA6BvC,IAAqB,cAArB,cAAyC,eAA6C;AAAA,EAAtF;AAAA;AAG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,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAzER,YAyEU;AAGjB;AAAA,EAAX,SAAS;AAAA,GA5ES,YA4EP;AAWZ;AAAA,EARC,SAAS;AAAA,IACR,MAAM;AAAA,IACN,WAAW;AAAA;AAAA,MAET,eAAe,WAAU,CAAC,SAAS,UAAU,UAAU,QAAQ;AAAA,MAC/D,aAAa,WAAU,QAAQ,SAAS;AAAA,IAC1C;AAAA,EACF,CAAC;AAAA,GAtFkB,YAuFnB;AAMY;AAAA,EAAX,SAAS;AAAA,GA7FS,YA6FP;AAGI;AAAA,EAAf,aAAa;AAAA,GAhGK,YAgGH;AAmEhB;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAlK9B,YAmKnB;AAMA;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAxK1B,YAyKnB;AAKM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA7K3B,YA8Kb;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynRadioGroup
|
|
3
|
+
} from "./chunk.QMK3O44E.js";
|
|
4
|
+
|
|
5
|
+
// src/components/radio-group/radio-group.ts
|
|
6
|
+
var radio_group_default = SynRadioGroup;
|
|
7
|
+
SynRadioGroup.define("syn-radio-group");
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
radio_group_default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=chunk.D6VKS2T5.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/radio-group/radio-group.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 SynRadioGroup from './radio-group.component.js';\n\nexport * from './radio-group.component.js';\nexport default SynRadioGroup;\n\nSynRadioGroup.define('syn-radio-group');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-radio-group': SynRadioGroup;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AASA,IAAO,sBAAQ;AAEf,cAAc,OAAO,iBAAiB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/components/radio-group/radio-group.custom.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var radio_group_custom_styles_default = css`
|
|
4
|
+
::slotted(syn-radio:not(:last-child)) {
|
|
5
|
+
margin-bottom: var(--syn-spacing-x-small);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host([data-user-invalid]) {
|
|
9
|
+
--syn-input-border-color: var(--syn-input-border-color-focus-error);
|
|
10
|
+
--syn-input-border-color-hover: var(--syn-input-border-color-focus-error);
|
|
11
|
+
--syn-color-primary-600: var(--syn-color-error-700);
|
|
12
|
+
--syn-color-primary-900: var(--syn-color-error-900);
|
|
13
|
+
--syn-color-primary-950: var(--syn-color-error-950);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.form-control--has-help-text.form-control--radio-group .form-control__help-text {
|
|
17
|
+
margin-top: var(--syn-spacing-x-small);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
radio_group_custom_styles_default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk.F4MRQLNL.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/radio-group/radio-group.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n ::slotted(syn-radio:not(:last-child)) {\n margin-bottom: var(--syn-spacing-x-small);\n }\n\n :host([data-user-invalid]) {\n --syn-input-border-color: var(--syn-input-border-color-focus-error);\n --syn-input-border-color-hover: var(--syn-input-border-color-focus-error);\n --syn-color-primary-600: var(--syn-color-error-700);\n --syn-color-primary-900: var(--syn-color-error-900);\n --syn-color-primary-950: var(--syn-color-error-950);\n }\n\n .form-control--has-help-text.form-control--radio-group .form-control__help-text {\n margin-top: var(--syn-spacing-x-small);\n }\n\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,oCAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynButtonGroup
|
|
3
|
+
} from "./chunk.K24GB7WK.js";
|
|
4
|
+
|
|
5
|
+
// src/components/button-group/button-group.ts
|
|
6
|
+
var button_group_default = SynButtonGroup;
|
|
7
|
+
SynButtonGroup.define("syn-button-group");
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
button_group_default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=chunk.FHA67NLP.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/button-group/button-group.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 SynButtonGroup from './button-group.component.js';\n\nexport * from './button-group.component.js';\nexport default SynButtonGroup;\n\nSynButtonGroup.define('syn-button-group');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-button-group': SynButtonGroup;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AASA,IAAO,uBAAQ;AAEf,eAAe,OAAO,kBAAkB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { css } from "lit";
|
|
3
3
|
var button_custom_styles_default = css`
|
|
4
4
|
.button:focus-visible {
|
|
5
|
-
outline: var(--syn-focus-ring-color) solid
|
|
6
|
-
outline-offset:
|
|
5
|
+
outline: var(--syn-focus-ring-color) solid var(--syn-focus-ring-width);
|
|
6
|
+
outline-offset: var(--syn-focus-ring-width);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
/*
|
|
@@ -36,7 +36,7 @@ var button_custom_styles_default = css`
|
|
|
36
36
|
|
|
37
37
|
.button--filled.button--primary:active:not(.button--disabled) {
|
|
38
38
|
background-color: var(--syn-color-primary-950);
|
|
39
|
-
border-color:
|
|
39
|
+
border-color: var(--syn-color-primary-950);
|
|
40
40
|
color: var(--syn-color-neutral-0);
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -135,4 +135,4 @@ var button_custom_styles_default = css`
|
|
|
135
135
|
export {
|
|
136
136
|
button_custom_styles_default
|
|
137
137
|
};
|
|
138
|
-
//# sourceMappingURL=chunk.
|
|
138
|
+
//# sourceMappingURL=chunk.FVSP4LXX.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 * Size modifiers\n */\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\n .button--filled.button--primary.button--disabled {\n background-color: var(--syn-color-neutral-400);\n border-color: var(--syn-color-neutral-400);\n color: var(--syn-color-neutral-600);\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\n .button--outline.button--primary.button--disabled {\n background: none;\n border-color: var(--syn-color-neutral-400);\n color: var(--syn-color-neutral-400);\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 \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-400);\n }\n\n /*\n* PADDING\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-medium);\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-medium);\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;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|