@functionalcms/svelte-components 4.10.2 → 4.10.4
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.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
disabledOptions: string[];
|
|
13
13
|
checkedOptions: string[];
|
|
14
14
|
type: ChoiceInputType;
|
|
15
|
-
|
|
15
|
+
label: string;
|
|
16
16
|
size: ChoiceInputSize;
|
|
17
17
|
checked: string[];
|
|
18
18
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
// in, it will fallback to the type prop or string choice input. Some content must be
|
|
33
33
|
// within the <legenc>CONTENT</legend> element to meet accessibility requirements
|
|
34
34
|
type = 'checkbox',
|
|
35
|
-
|
|
35
|
+
label = type || 'choice input',
|
|
36
36
|
size = '',
|
|
37
37
|
// Provides bind:checked capabilities that consumer can use
|
|
38
38
|
checked = [],
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
</script>
|
|
98
98
|
|
|
99
99
|
<fieldset class={fieldsetClasses}>
|
|
100
|
-
<legend class={legendClasses}>{
|
|
100
|
+
<legend class={legendClasses}>{label}</legend>
|
|
101
101
|
{#each options as { name, value, label }, index}
|
|
102
102
|
<label
|
|
103
103
|
class={labelClasses}
|
|
@@ -9,7 +9,7 @@ declare const ChoiceInput: import("svelte").Component<Partial<{
|
|
|
9
9
|
disabledOptions: string[];
|
|
10
10
|
checkedOptions: string[];
|
|
11
11
|
type: ChoiceInputType;
|
|
12
|
-
|
|
12
|
+
label: string;
|
|
13
13
|
size: ChoiceInputSize;
|
|
14
14
|
checked: string[];
|
|
15
15
|
} & HtmlParts>, {}, "">;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
css: string;
|
|
16
16
|
singleSelected?: string; // singleSelected can be used for two-way bindings
|
|
17
17
|
multiSelected?: Array<string>; // If we don't make it seems Svelte gets confused:
|
|
18
|
-
selected: (value: string | Array<string>) => void
|
|
18
|
+
selected: (value: string | Array<string>) => void;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
let {
|