@htmlbricks/hb-input-radio 0.66.26 → 0.67.0
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/README.md +6 -2
- package/main.iife.js +37 -72
- package/main.iife.js.map +1 -1
- package/manifest.json +9 -6
- package/package.json +2 -2
- package/types/webcomponent.type.d.ts +5 -1
- package/types/webcomponent_events.type.d.json +1 -3
package/README.md
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Description
|
|
4
4
|
|
|
5
|
-
Radio group built from `schemaentry.params.options` with a shared `name` derived from the field id. Parses JSON `schemaentry` for initial `value` and supports required validation with
|
|
5
|
+
Radio group built from `schemaentry.params.options` with a shared `name` derived from the field id. Parses JSON `schemaentry` for initial `value` and supports required validation with Bulma `help is-danger` when `show_validation` is `yes` and invalid. Dispatches `setVal` with the selected string `value`, `valid`, and `id` whenever the choice changes.
|
|
6
|
+
|
|
7
|
+
## Styling (Bulma)
|
|
8
|
+
|
|
9
|
+
Shadow bundle: `form/shared`, `form/input-textarea`, `form/checkbox-radio`, `form/tools`. Markup uses Bulma `radios` / `radio` and host outline when invalid.
|
|
6
10
|
|
|
7
11
|
## Types
|
|
8
12
|
|
|
@@ -54,6 +58,6 @@ export type Component = {
|
|
|
54
58
|
};
|
|
55
59
|
|
|
56
60
|
export type Events = {
|
|
57
|
-
setVal: { value: string; valid: boolean; id: string };
|
|
61
|
+
setVal: { value: string | undefined; valid: boolean; id: string | undefined };
|
|
58
62
|
};
|
|
59
63
|
```
|