@htmlbricks/hb-input-color 0.66.8 → 0.66.10

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 ADDED
@@ -0,0 +1,36 @@
1
+ ## `hb-input-color` — input-color
2
+
3
+ **Category:** inputs
4
+ **Tags:** inputs
5
+
6
+ ### What it does
7
+
8
+ Color input that normalizes named HTML colors and `rgb(...)` strings into a hex value for the native picker, with debounced syncing back to the bound value. Driven by `schemaentry` (including required and optional `validationTip` with `show_validation`). Dispatches `setVal` with the string `value`, `valid`, and `id`.
9
+
10
+ ### Custom element
11
+
12
+ `hb-input-color`
13
+
14
+ ### Attributes (snake_case; use string values in HTML)
15
+
16
+ - `id` — optional string
17
+ - `style` — optional string
18
+ - `schemaentry` — required string (JSON: `id`, `label?`, `required?`, `value?`, `validationTip?`, `placeholder?`, …)
19
+ - `show_validation` — optional `"yes"` | `"no"`
20
+
21
+ ### Events
22
+
23
+ - `setVal` — `{ value: string; valid: boolean; id: string }`
24
+
25
+ ### Usage notes
26
+
27
+ CSS part: `invalid-feedback`.
28
+
29
+ ### Minimal HTML example
30
+
31
+ ```html
32
+ <hb-input-color
33
+ schemaentry="{&quot;id&quot;:&quot;accent&quot;,&quot;required&quot;:true,&quot;value&quot;:&quot;#07689f&quot;}"
34
+ show_validation="no"
35
+ ></hb-input-color>
36
+ ```
package/manifest.json CHANGED
@@ -169,5 +169,5 @@
169
169
  "size": {},
170
170
  "iifePath": "main.iife.js",
171
171
  "repoName": "@htmlbricks/hb-input-color",
172
- "version": "0.66.8"
172
+ "version": "0.66.10"
173
173
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-color",
3
- "version": "0.66.8",
3
+ "version": "0.66.10",
4
4
  "contributors": [],
5
5
  "description": "Color input that normalizes named HTML colors and `rgb(...)` strings into a hex value for the native picker, with debounced syncing back to the bound value. Driven by `schemaentry` (including required and optional `validationTip` with `show_validation`). Dispatches `setVal` with the string `value`, `valid`, and `id`.",
6
6
  "licenses": [