@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,28 @@
|
|
|
1
|
+
/** A testing utility that measures an element's position and clicks on it. */
|
|
2
|
+
export declare function clickOnElement(
|
|
3
|
+
/** The element to click */
|
|
4
|
+
el: Element,
|
|
5
|
+
/** The location of the element to click */
|
|
6
|
+
position?: 'top' | 'right' | 'bottom' | 'left' | 'center',
|
|
7
|
+
/** The horizontal offset to apply to the position when clicking */
|
|
8
|
+
offsetX?: number,
|
|
9
|
+
/** The vertical offset to apply to the position when clicking */
|
|
10
|
+
offsetY?: number): Promise<void>;
|
|
11
|
+
/** A testing utility that moves the mouse onto an element. */
|
|
12
|
+
export declare function moveMouseOnElement(
|
|
13
|
+
/** The element to click */
|
|
14
|
+
el: Element,
|
|
15
|
+
/** The location of the element to click */
|
|
16
|
+
position?: 'top' | 'right' | 'bottom' | 'left' | 'center',
|
|
17
|
+
/** The horizontal offset to apply to the position when clicking */
|
|
18
|
+
offsetX?: number,
|
|
19
|
+
/** The vertical offset to apply to the position when clicking */
|
|
20
|
+
offsetY?: number): Promise<void>;
|
|
21
|
+
/** A testing utility that drags an element with the mouse. */
|
|
22
|
+
export declare function dragElement(
|
|
23
|
+
/** The element to drag */
|
|
24
|
+
el: Element,
|
|
25
|
+
/** The horizontal distance to drag in pixels */
|
|
26
|
+
deltaX?: number,
|
|
27
|
+
/** The vertical distance to drag in pixels */
|
|
28
|
+
deltaY?: number): Promise<void>;
|
package/dist/synergy.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as SynButtonGroup } from './components/button-group/button-group.js';
|
|
2
2
|
export { default as SynButton } from './components/button/button.js';
|
|
3
|
+
export { default as SynCheckbox } from './components/checkbox/checkbox.js';
|
|
4
|
+
export { default as SynIcon } from './components/icon/icon.js';
|
|
5
|
+
export { default as SynInput } from './components/input/input.js';
|
|
6
|
+
export { default as SynRadioButton } from './components/radio-button/radio-button.js';
|
|
7
|
+
export { default as SynRadioGroup } from './components/radio-group/radio-group.js';
|
|
8
|
+
export { default as SynRadio } from './components/radio/radio.js';
|
|
9
|
+
export { default as SynSwitch } from './components/switch/switch.js';
|
|
10
|
+
export { default as SynTextarea } from './components/textarea/textarea.js';
|
|
11
|
+
export * from './utilities/base-path.js';
|
|
12
|
+
export * from './utilities/icon-library.js';
|
|
3
13
|
export * from './utilities/form.js';
|
|
4
14
|
export * from './events/events.js';
|
package/dist/synergy.js
CHANGED
|
@@ -1,38 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
input_default
|
|
3
|
-
} from "./chunks/chunk.H6VZTJD6.js";
|
|
4
1
|
import {
|
|
5
2
|
getFormControls,
|
|
6
3
|
serialize
|
|
7
|
-
} from "./chunks/chunk.
|
|
8
|
-
import "./chunks/chunk.
|
|
9
|
-
import
|
|
10
|
-
|
|
4
|
+
} from "./chunks/chunk.Z3RZUTQU.js";
|
|
5
|
+
import "./chunks/chunk.NKIYFJN2.js";
|
|
6
|
+
import {
|
|
7
|
+
switch_default
|
|
8
|
+
} from "./chunks/chunk.LGQOKLYP.js";
|
|
9
|
+
import {
|
|
10
|
+
textarea_default
|
|
11
|
+
} from "./chunks/chunk.MNNPG5GD.js";
|
|
12
|
+
import "./chunks/chunk.CJRAYQIQ.js";
|
|
13
|
+
import "./chunks/chunk.23HTU3YE.js";
|
|
14
|
+
import "./chunks/chunk.YBIBWRKC.js";
|
|
15
|
+
import {
|
|
16
|
+
radio_group_default
|
|
17
|
+
} from "./chunks/chunk.D6VKS2T5.js";
|
|
18
|
+
import "./chunks/chunk.KP6DSDGX.js";
|
|
19
|
+
import "./chunks/chunk.MNMITYTH.js";
|
|
20
|
+
import "./chunks/chunk.AFEABUNX.js";
|
|
21
|
+
import {
|
|
22
|
+
radio_default
|
|
23
|
+
} from "./chunks/chunk.X234HJNO.js";
|
|
24
|
+
import "./chunks/chunk.V26UAJIM.js";
|
|
25
|
+
import "./chunks/chunk.JBYBQ5TQ.js";
|
|
26
|
+
import "./chunks/chunk.V6VND4OF.js";
|
|
27
|
+
import {
|
|
28
|
+
radio_button_default
|
|
29
|
+
} from "./chunks/chunk.2KZQRT3X.js";
|
|
30
|
+
import "./chunks/chunk.YQQJ6ELJ.js";
|
|
31
|
+
import "./chunks/chunk.OVVMSN4D.js";
|
|
32
|
+
import "./chunks/chunk.QMK3O44E.js";
|
|
33
|
+
import "./chunks/chunk.4I6M5V6O.js";
|
|
34
|
+
import "./chunks/chunk.F4MRQLNL.js";
|
|
35
|
+
import {
|
|
36
|
+
icon_default
|
|
37
|
+
} from "./chunks/chunk.VUW6CZ2F.js";
|
|
38
|
+
import {
|
|
39
|
+
input_default
|
|
40
|
+
} from "./chunks/chunk.44XDJIKU.js";
|
|
41
|
+
import "./chunks/chunk.QUUM6GP4.js";
|
|
42
|
+
import "./chunks/chunk.OXUFFH57.js";
|
|
43
|
+
import "./chunks/chunk.JHXCBOUD.js";
|
|
44
|
+
import "./chunks/chunk.W46CFM2R.js";
|
|
45
|
+
import {
|
|
46
|
+
button_group_default
|
|
47
|
+
} from "./chunks/chunk.FHA67NLP.js";
|
|
48
|
+
import {
|
|
49
|
+
checkbox_default
|
|
50
|
+
} from "./chunks/chunk.45EJNI43.js";
|
|
51
|
+
import "./chunks/chunk.ILEPKAEH.js";
|
|
52
|
+
import "./chunks/chunk.WFAJR3FN.js";
|
|
53
|
+
import "./chunks/chunk.4CBN5LPQ.js";
|
|
54
|
+
import "./chunks/chunk.2XZKXVMR.js";
|
|
11
55
|
import {
|
|
12
56
|
button_default
|
|
13
|
-
} from "./chunks/chunk.
|
|
14
|
-
import "./chunks/chunk.
|
|
15
|
-
import "./chunks/chunk.
|
|
57
|
+
} from "./chunks/chunk.LDUXZQMQ.js";
|
|
58
|
+
import "./chunks/chunk.N2EPATPO.js";
|
|
59
|
+
import "./chunks/chunk.2AFAC4WC.js";
|
|
16
60
|
import "./chunks/chunk.N2I6HVX3.js";
|
|
17
|
-
import "./chunks/chunk.XGXFE6IF.js";
|
|
18
61
|
import "./chunks/chunk.R6VNLE6N.js";
|
|
19
62
|
import "./chunks/chunk.A3SKDWCT.js";
|
|
20
|
-
import "./chunks/chunk.
|
|
21
|
-
import "./chunks/chunk.
|
|
22
|
-
import "./chunks/chunk.
|
|
23
|
-
import "./chunks/chunk.
|
|
24
|
-
import
|
|
25
|
-
|
|
26
|
-
|
|
63
|
+
import "./chunks/chunk.XGXFE6IF.js";
|
|
64
|
+
import "./chunks/chunk.P2LNG2PZ.js";
|
|
65
|
+
import "./chunks/chunk.SUJGOV4C.js";
|
|
66
|
+
import "./chunks/chunk.VZ7S7YYN.js";
|
|
67
|
+
import {
|
|
68
|
+
registerIconLibrary,
|
|
69
|
+
unregisterIconLibrary
|
|
70
|
+
} from "./chunks/chunk.4XAK6MOQ.js";
|
|
27
71
|
import "./chunks/chunk.6C4JXZZN.js";
|
|
28
|
-
import "./chunks/chunk.
|
|
29
|
-
import "./chunks/chunk.
|
|
72
|
+
import "./chunks/chunk.GNAJOKCJ.js";
|
|
73
|
+
import "./chunks/chunk.RSONAU45.js";
|
|
74
|
+
import "./chunks/chunk.PJO6TM3T.js";
|
|
75
|
+
import {
|
|
76
|
+
getBasePath,
|
|
77
|
+
setBasePath
|
|
78
|
+
} from "./chunks/chunk.C7624ITA.js";
|
|
79
|
+
import "./chunks/chunk.YTS5TRJZ.js";
|
|
80
|
+
import "./chunks/chunk.FVSP4LXX.js";
|
|
81
|
+
import "./chunks/chunk.K24GB7WK.js";
|
|
82
|
+
import "./chunks/chunk.ZUNBGZ5R.js";
|
|
83
|
+
import "./chunks/chunk.4ZURABYO.js";
|
|
30
84
|
import "./chunks/chunk.O7USYXBT.js";
|
|
31
85
|
import "./chunks/chunk.DJOAQ4JU.js";
|
|
32
86
|
export {
|
|
33
87
|
button_default as SynButton,
|
|
88
|
+
button_group_default as SynButtonGroup,
|
|
89
|
+
checkbox_default as SynCheckbox,
|
|
90
|
+
icon_default as SynIcon,
|
|
34
91
|
input_default as SynInput,
|
|
92
|
+
radio_default as SynRadio,
|
|
93
|
+
radio_button_default as SynRadioButton,
|
|
94
|
+
radio_group_default as SynRadioGroup,
|
|
95
|
+
switch_default as SynSwitch,
|
|
96
|
+
textarea_default as SynTextarea,
|
|
97
|
+
getBasePath,
|
|
35
98
|
getFormControls,
|
|
36
|
-
|
|
99
|
+
registerIconLibrary,
|
|
100
|
+
serialize,
|
|
101
|
+
setBasePath,
|
|
102
|
+
unregisterIconLibrary
|
|
37
103
|
};
|
|
38
104
|
//# sourceMappingURL=synergy.js.map
|
package/dist/utilities/form.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFormControls,
|
|
3
3
|
serialize
|
|
4
|
-
} from "../chunks/chunk.
|
|
5
|
-
import "../chunks/chunk.
|
|
4
|
+
} from "../chunks/chunk.Z3RZUTQU.js";
|
|
5
|
+
import "../chunks/chunk.P2LNG2PZ.js";
|
|
6
6
|
import "../chunks/chunk.DJOAQ4JU.js";
|
|
7
7
|
export {
|
|
8
8
|
getFormControls,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { registerIconLibrary, unregisterIconLibrary } from '../components/icon/library.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../chunks/chunk.NKIYFJN2.js";
|
|
2
|
+
import {
|
|
3
|
+
registerIconLibrary,
|
|
4
|
+
unregisterIconLibrary
|
|
5
|
+
} from "../chunks/chunk.4XAK6MOQ.js";
|
|
6
|
+
import "../chunks/chunk.6C4JXZZN.js";
|
|
7
|
+
import "../chunks/chunk.GNAJOKCJ.js";
|
|
8
|
+
import "../chunks/chunk.C7624ITA.js";
|
|
9
|
+
import "../chunks/chunk.DJOAQ4JU.js";
|
|
10
|
+
export {
|
|
11
|
+
registerIconLibrary,
|
|
12
|
+
unregisterIconLibrary
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=icon-library.js.map
|
|
@@ -131,6 +131,80 @@
|
|
|
131
131
|
}
|
|
132
132
|
]
|
|
133
133
|
},
|
|
134
|
+
{
|
|
135
|
+
"name": "syn-button-group",
|
|
136
|
+
"description": "Button groups can be used to group related buttons into sections.\n---\n\n\n### **Slots:**\n - _default_ - One or more `<syn-button>` elements to display in the button group.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
137
|
+
"attributes": [
|
|
138
|
+
{
|
|
139
|
+
"name": "label",
|
|
140
|
+
"description": "A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
|
|
141
|
+
"values": []
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"references": [
|
|
145
|
+
{
|
|
146
|
+
"name": "Documentation",
|
|
147
|
+
"url": "https://synergy.style/components/button-group"
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "syn-checkbox",
|
|
153
|
+
"description": "Checkboxes allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the checkbox loses focus.\n- **syn-change** - Emitted when the checked state changes.\n- **syn-focus** - Emitted when the checkbox gains focus.\n- **syn-input** - Emitted when the checkbox receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<syn-icon>` element.\n- **label** - The container that wraps the checkbox's label.",
|
|
154
|
+
"attributes": [
|
|
155
|
+
{ "name": "title", "values": [] },
|
|
156
|
+
{
|
|
157
|
+
"name": "name",
|
|
158
|
+
"description": "The name of the checkbox, submitted as a name/value pair with form data.",
|
|
159
|
+
"values": []
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "value",
|
|
163
|
+
"description": "The current value of the checkbox, submitted as a name/value pair with form data.",
|
|
164
|
+
"values": []
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "size",
|
|
168
|
+
"description": "The checkbox's size.",
|
|
169
|
+
"values": [
|
|
170
|
+
{ "name": "small" },
|
|
171
|
+
{ "name": "medium" },
|
|
172
|
+
{ "name": "large" }
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "disabled",
|
|
177
|
+
"description": "Disables the checkbox.",
|
|
178
|
+
"values": []
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "checked",
|
|
182
|
+
"description": "Draws the checkbox in a checked state.",
|
|
183
|
+
"values": []
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "indeterminate",
|
|
187
|
+
"description": "Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\nall/none\" behavior when associated checkboxes have a mix of checked and unchecked states.",
|
|
188
|
+
"values": []
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "form",
|
|
192
|
+
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
|
|
193
|
+
"values": []
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "required",
|
|
197
|
+
"description": "Makes the checkbox a required field.",
|
|
198
|
+
"values": []
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"references": [
|
|
202
|
+
{
|
|
203
|
+
"name": "Documentation",
|
|
204
|
+
"url": "https://synergy.style/components/checkbox"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
134
208
|
{
|
|
135
209
|
"name": "syn-icon",
|
|
136
210
|
"description": "Icons are symbols that can be used to represent various options within an application.\n---\n\n\n### **Events:**\n - **syn-load** - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit.\n- **syn-error** - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit.\n\n### **CSS Parts:**\n - **svg** - The internal SVG element.\n- **use** - The <use> element generated when using `spriteSheet: true`",
|
|
@@ -356,6 +430,119 @@
|
|
|
356
430
|
}
|
|
357
431
|
]
|
|
358
432
|
},
|
|
433
|
+
{
|
|
434
|
+
"name": "syn-radio",
|
|
435
|
+
"description": "Radios allow the user to select a single option from a group.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-focus** - Emitted when the control gains focus.\n\n### **Slots:**\n - _default_ - The radio's label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The circular container that wraps the radio's checked state.\n- **control--checked** - The radio control when the radio is checked.\n- **checked-icon** - The checked icon, an `<syn-icon>` element.\n- **label** - The container that wraps the radio's label.",
|
|
436
|
+
"attributes": [
|
|
437
|
+
{
|
|
438
|
+
"name": "value",
|
|
439
|
+
"description": "The radio's value. When selected, the radio group will receive this value.",
|
|
440
|
+
"values": []
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "size",
|
|
444
|
+
"description": "The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this\nattribute can typically be omitted.",
|
|
445
|
+
"values": [
|
|
446
|
+
{ "name": "small" },
|
|
447
|
+
{ "name": "medium" },
|
|
448
|
+
{ "name": "large" }
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "disabled",
|
|
453
|
+
"description": "Disables the radio.",
|
|
454
|
+
"values": []
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"references": [
|
|
458
|
+
{
|
|
459
|
+
"name": "Documentation",
|
|
460
|
+
"url": "https://synergy.style/components/radio"
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "syn-radio-button",
|
|
466
|
+
"description": "Radios buttons allow the user to select a single option from a group using a button-like control.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the button loses focus.\n- **syn-focus** - Emitted when the button gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the radio button.\n- **blur()** - Removes focus from the radio button.\n\n### **Slots:**\n - _default_ - The radio button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **button** - The internal `<button>` element.\n- **button--checked** - The internal button element when the radio button is checked.\n- **prefix** - The container that wraps the prefix.\n- **label** - The container that wraps the radio button's label.\n- **suffix** - The container that wraps the suffix.",
|
|
467
|
+
"attributes": [
|
|
468
|
+
{
|
|
469
|
+
"name": "value",
|
|
470
|
+
"description": "The radio's value. When selected, the radio group will receive this value.",
|
|
471
|
+
"values": []
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "disabled",
|
|
475
|
+
"description": "Disables the radio button.",
|
|
476
|
+
"values": []
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "size",
|
|
480
|
+
"description": "The radio button's size. When used inside a radio group, the size will be determined by the radio group's size so\nthis attribute can typically be omitted.",
|
|
481
|
+
"values": [
|
|
482
|
+
{ "name": "small" },
|
|
483
|
+
{ "name": "medium" },
|
|
484
|
+
{ "name": "large" }
|
|
485
|
+
]
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
"references": [
|
|
489
|
+
{
|
|
490
|
+
"name": "Documentation",
|
|
491
|
+
"url": "https://synergy.style/components/radio-button"
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "syn-radio-group",
|
|
497
|
+
"description": "Radio groups are used to group multiple [radios](/components/radio) or [radio buttons](/components/radio-button) so they function as a single form control.\n---\n\n\n### **Events:**\n - **syn-change** - Emitted when the radio group's selected value changes.\n- **syn-input** - Emitted when the radio group receives user input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where `<syn-radio>` or `<syn-radio-button>` elements are placed.\n- **label** - The radio group's label. Required for proper accessibility. Alternatively, you can use the `label` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **button-group** - The button group that wraps radio buttons.\n- **button-group__base** - The button group's `base` part.",
|
|
498
|
+
"attributes": [
|
|
499
|
+
{
|
|
500
|
+
"name": "label",
|
|
501
|
+
"description": "The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
|
|
502
|
+
"values": []
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "help-text",
|
|
506
|
+
"description": "The radio groups's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
507
|
+
"values": []
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "name",
|
|
511
|
+
"description": "The name of the radio group, submitted as a name/value pair with form data.",
|
|
512
|
+
"values": []
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "value",
|
|
516
|
+
"description": "The current value of the radio group, submitted as a name/value pair with form data.",
|
|
517
|
+
"values": []
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "size",
|
|
521
|
+
"description": "The radio group's size. This size will be applied to all child radios and radio buttons.",
|
|
522
|
+
"values": [
|
|
523
|
+
{ "name": "small" },
|
|
524
|
+
{ "name": "medium" },
|
|
525
|
+
{ "name": "large" }
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"name": "form",
|
|
530
|
+
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
|
|
531
|
+
"values": []
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "required",
|
|
535
|
+
"description": "Ensures a child radio is checked before allowing the containing form to submit.",
|
|
536
|
+
"values": []
|
|
537
|
+
}
|
|
538
|
+
],
|
|
539
|
+
"references": [
|
|
540
|
+
{
|
|
541
|
+
"name": "Documentation",
|
|
542
|
+
"url": "https://synergy.style/components/radio-group"
|
|
543
|
+
}
|
|
544
|
+
]
|
|
545
|
+
},
|
|
359
546
|
{
|
|
360
547
|
"name": "syn-spinner",
|
|
361
548
|
"description": "Spinners are used to show the progress of an indeterminate operation.\n---\n\n\n### **CSS Properties:**\n - **--track-width** - The width of the track. _(default: undefined)_\n- **--track-color** - The color of the track. _(default: undefined)_\n- **--indicator-color** - The color of the spinner's indicator. _(default: undefined)_\n- **--speed** - The time it takes for the spinner to complete one animation cycle. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -366,6 +553,208 @@
|
|
|
366
553
|
"url": "https://synergy.style/components/spinner"
|
|
367
554
|
}
|
|
368
555
|
]
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "syn-switch",
|
|
559
|
+
"description": "Switches allow the user to toggle an option on or off.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when the control's checked state changes.\n- **syn-input** - Emitted when the control receives input.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the switch.\n- **focus(options: _FocusOptions_)** - Sets focus on the switch.\n- **blur()** - Removes focus from the switch.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The switch's label.\n\n### **CSS Properties:**\n - **--width** - The width of the switch. _(default: undefined)_\n- **--height** - The height of the switch. _(default: undefined)_\n- **--thumb-size** - The size of the thumb. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The control that houses the switch's thumb.\n- **thumb** - The switch's thumb.\n- **label** - The switch's label.",
|
|
560
|
+
"attributes": [
|
|
561
|
+
{ "name": "title", "values": [] },
|
|
562
|
+
{
|
|
563
|
+
"name": "name",
|
|
564
|
+
"description": "The name of the switch, submitted as a name/value pair with form data.",
|
|
565
|
+
"values": []
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "value",
|
|
569
|
+
"description": "The current value of the switch, submitted as a name/value pair with form data.",
|
|
570
|
+
"values": []
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"name": "size",
|
|
574
|
+
"description": "The switch's size.",
|
|
575
|
+
"values": [
|
|
576
|
+
{ "name": "small" },
|
|
577
|
+
{ "name": "medium" },
|
|
578
|
+
{ "name": "large" }
|
|
579
|
+
]
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "disabled",
|
|
583
|
+
"description": "Disables the switch.",
|
|
584
|
+
"values": []
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "checked",
|
|
588
|
+
"description": "Draws the switch in a checked state.",
|
|
589
|
+
"values": []
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "form",
|
|
593
|
+
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
|
|
594
|
+
"values": []
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "required",
|
|
598
|
+
"description": "Makes the switch a required field.",
|
|
599
|
+
"values": []
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
"references": [
|
|
603
|
+
{
|
|
604
|
+
"name": "Documentation",
|
|
605
|
+
"url": "https://synergy.style/components/switch"
|
|
606
|
+
}
|
|
607
|
+
]
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "syn-textarea",
|
|
611
|
+
"description": "Textareas collect data from the user and allow multiple lines of text.\n---\n\n\n### **Events:**\n - **syn-blur** - Emitted when the control loses focus.\n- **syn-change** - Emitted when an alteration to the control's value is committed by the user.\n- **syn-focus** - Emitted when the control gains focus.\n- **syn-input** - Emitted when the control receives input.\n- **syn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the textarea.\n- **blur()** - Removes focus from the textarea.\n- **select()** - Selects all the text in the textarea.\n- **scrollPosition(position: _{ top?: number; left?: number }_): _{ top: number; left: number } | undefined_** - Gets or sets the textarea's scroll position.\n- **setSelectionRange(selectionStart: _number_, selectionEnd: _number_, selectionDirection: _'forward' | 'backward' | 'none'_)** - Sets the start and end positions of the text selection (0-based).\n- **setRangeText(replacement: _string_, start: _number_, end: _number_, selectMode: _'select' | 'start' | 'end' | 'preserve'_)** - Replaces a range of text with a new string.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The textarea's label. Alternatively, you can use the `label` attribute.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **textarea** - The internal `<textarea>` control.",
|
|
612
|
+
"attributes": [
|
|
613
|
+
{ "name": "title", "values": [] },
|
|
614
|
+
{
|
|
615
|
+
"name": "name",
|
|
616
|
+
"description": "The name of the textarea, submitted as a name/value pair with form data.",
|
|
617
|
+
"values": []
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"name": "value",
|
|
621
|
+
"description": "The current value of the textarea, submitted as a name/value pair with form data.",
|
|
622
|
+
"values": []
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"name": "size",
|
|
626
|
+
"description": "The textarea's size.",
|
|
627
|
+
"values": [
|
|
628
|
+
{ "name": "small" },
|
|
629
|
+
{ "name": "medium" },
|
|
630
|
+
{ "name": "large" }
|
|
631
|
+
]
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "label",
|
|
635
|
+
"description": "The textarea's label. If you need to display HTML, use the `label` slot instead.",
|
|
636
|
+
"values": []
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"name": "help-text",
|
|
640
|
+
"description": "The textarea's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
641
|
+
"values": []
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"name": "placeholder",
|
|
645
|
+
"description": "Placeholder text to show as a hint when the input is empty.",
|
|
646
|
+
"values": []
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"name": "rows",
|
|
650
|
+
"description": "The number of rows to display by default.",
|
|
651
|
+
"values": []
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "resize",
|
|
655
|
+
"description": "Controls how the textarea can be resized.",
|
|
656
|
+
"values": [
|
|
657
|
+
{ "name": "none" },
|
|
658
|
+
{ "name": "vertical" },
|
|
659
|
+
{ "name": "auto" }
|
|
660
|
+
]
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "disabled",
|
|
664
|
+
"description": "Disables the textarea.",
|
|
665
|
+
"values": []
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "readonly",
|
|
669
|
+
"description": "Makes the textarea readonly.",
|
|
670
|
+
"values": []
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"name": "form",
|
|
674
|
+
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
|
|
675
|
+
"values": []
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "required",
|
|
679
|
+
"description": "Makes the textarea a required field.",
|
|
680
|
+
"values": []
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "minlength",
|
|
684
|
+
"description": "The minimum length of input that will be considered valid.",
|
|
685
|
+
"values": []
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "maxlength",
|
|
689
|
+
"description": "The maximum length of input that will be considered valid.",
|
|
690
|
+
"values": []
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "autocapitalize",
|
|
694
|
+
"description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
|
|
695
|
+
"values": [
|
|
696
|
+
{ "name": "off" },
|
|
697
|
+
{ "name": "none" },
|
|
698
|
+
{ "name": "on" },
|
|
699
|
+
{ "name": "sentences" },
|
|
700
|
+
{ "name": "words" },
|
|
701
|
+
{ "name": "characters" }
|
|
702
|
+
]
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "autocorrect",
|
|
706
|
+
"description": "Indicates whether the browser's autocorrect feature is on or off.",
|
|
707
|
+
"values": []
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "autocomplete",
|
|
711
|
+
"description": "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.",
|
|
712
|
+
"values": []
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"name": "autofocus",
|
|
716
|
+
"description": "Indicates that the input should receive focus on page load.",
|
|
717
|
+
"values": []
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"name": "enterkeyhint",
|
|
721
|
+
"description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
|
|
722
|
+
"values": [
|
|
723
|
+
{ "name": "enter" },
|
|
724
|
+
{ "name": "done" },
|
|
725
|
+
{ "name": "go" },
|
|
726
|
+
{ "name": "next" },
|
|
727
|
+
{ "name": "previous" },
|
|
728
|
+
{ "name": "search" },
|
|
729
|
+
{ "name": "send" }
|
|
730
|
+
]
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"name": "spellcheck",
|
|
734
|
+
"description": "Enables spell checking on the textarea.",
|
|
735
|
+
"values": []
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"name": "inputmode",
|
|
739
|
+
"description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
|
|
740
|
+
"values": [
|
|
741
|
+
{ "name": "none" },
|
|
742
|
+
{ "name": "text" },
|
|
743
|
+
{ "name": "decimal" },
|
|
744
|
+
{ "name": "numeric" },
|
|
745
|
+
{ "name": "tel" },
|
|
746
|
+
{ "name": "search" },
|
|
747
|
+
{ "name": "email" },
|
|
748
|
+
{ "name": "url" }
|
|
749
|
+
]
|
|
750
|
+
}
|
|
751
|
+
],
|
|
752
|
+
"references": [
|
|
753
|
+
{
|
|
754
|
+
"name": "Documentation",
|
|
755
|
+
"url": "https://synergy.style/components/textarea"
|
|
756
|
+
}
|
|
757
|
+
]
|
|
369
758
|
}
|
|
370
759
|
]
|
|
371
760
|
}
|