@iyulab/components 1.24.0 β†’ 1.25.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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.25.0] - 2026-08-05
4
+
5
+ ### Fixed
6
+
7
+ - πŸ”΄**`u-field`: the documented `validation-message` attribute never applied.** Lit derives
8
+ the default attribute name by **lowercasing** the property name β€” not by kebab-casing it β€”
9
+ so `validationMessage` was only reachable as `validationmessage`. Every usage in the
10
+ documentation and examples wrote `validation-message`, which set nothing and left the
11
+ error text invisible. The attribute name is now declared explicitly, matching the
12
+ convention already used elsewhere (`show-delay`, `hide-delay`).
13
+
14
+ ```html
15
+ <u-field label="Name" invalid validation-message="Name is required.">
16
+ <u-input></u-input>
17
+ </u-field>
18
+ ```
19
+
20
+ Property bindings (`.validationMessage=${…}`) are unaffected.
21
+
3
22
  ## [1.24.0] - 2026-08-04
4
23
 
5
24
  ### Added
@@ -18,7 +18,14 @@ export declare class UField extends UElement {
18
18
  label?: string;
19
19
  /** ν•˜λ‹¨ μ„€λͺ… ν…μŠ€νŠΈ */
20
20
  description?: string;
21
- /** μœ νš¨μ„± 검사 μ‹€νŒ¨ μ‹œ ν‘œμ‹œν•  λ©”μ‹œμ§€ */
21
+ /**
22
+ * μœ νš¨μ„± 검사 μ‹€νŒ¨ μ‹œ ν‘œμ‹œν•  λ©”μ‹œμ§€.
23
+ *
24
+ * ⚠**속성 이름을 λͺ…μ‹œν•œλ‹€.** Lit 의 κΈ°λ³Έ 속성λͺ…은 ν”„λ‘œνΌν‹°λͺ…을 **μ†Œλ¬Έμžν™”**ν•œ 것이라
25
+ * (kebab 이 μ•„λ‹ˆλ‹€) κ·ΈλŒ€λ‘œ 두면 `validationmessage` κ°€ λ˜λŠ”λ°, λ¬Έμ„œΒ·μƒ˜ν”ŒΒ·μ†ŒλΉ„ μ½”λ“œκ°€
26
+ * μ „λΆ€ `validation-message` 둜 적고 μžˆμ—ˆκ³  κ·Έ ν˜•νƒœλŠ” **아무것도 μ„€μ •ν•˜μ§€ μ•Šμ•˜λ‹€**.
27
+ * ν˜•μ œ ν”„λ‘œνΌν‹°λ“€λ„ λͺ…μ‹œν˜•μ„ μ“΄λ‹€(`show-delay`Β·`hide-delay`).
28
+ */
22
29
  validationMessage?: string;
23
30
  render(): import('lit-html').TemplateResult<1>;
24
31
  private renderFooter;
@@ -58,7 +58,10 @@ __decorate([property({
58
58
  }), __decorateMetadata("design:type", Boolean)], UField.prototype, "invalid", void 0);
59
59
  __decorate([property({ type: String }), __decorateMetadata("design:type", String)], UField.prototype, "label", void 0);
60
60
  __decorate([property({ type: String }), __decorateMetadata("design:type", String)], UField.prototype, "description", void 0);
61
- __decorate([property({ type: String }), __decorateMetadata("design:type", String)], UField.prototype, "validationMessage", void 0);
61
+ __decorate([property({
62
+ type: String,
63
+ attribute: "validation-message"
64
+ }), __decorateMetadata("design:type", String)], UField.prototype, "validationMessage", void 0);
62
65
  UField = __decorate([customElement("u-field")], UField);
63
66
  //#endregion
64
67
  export { UField };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iyulab/components",
3
3
  "description": "web-components library based on lit-element made by iyulab",
4
- "version": "1.24.0",
4
+ "version": "1.25.0",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "components",
@@ -25,6 +25,13 @@
25
25
  ],
26
26
  "type": "module",
27
27
  "types": "./dist/index.d.ts",
28
+ "engines": {
29
+ "node": ">=20"
30
+ },
31
+ "sideEffects": [
32
+ "./src/components/*/U*.ts",
33
+ "./dist/components/*/U*.js"
34
+ ],
28
35
  "exports": {
29
36
  ".": {
30
37
  "types": "./dist/index.d.ts",
@@ -34,7 +34,7 @@ Checkbox with `indeterminate` state support. Form-associated (`formAssociated =
34
34
  | `checked` | `boolean` | `false` | βœ“ | Checked state |
35
35
  | `indeterminate` | `boolean` | `false` | βœ“ | Partial / indeterminate state |
36
36
  | `variant` | `'filled'\|'outline'` | `'filled'` | βœ“ | Visual style |
37
- | `color` | `'blue'\|'green'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'\|'neutral'` | `'blue'` | βœ“ | Accent color |
37
+ | `color` | `'primary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'\|'neutral'` | `'blue'` | βœ“ | Accent color β€” role axis (`primary`…`danger`, follows rebranding) and decorative axis (`blue`…, immune to it) |
38
38
  | `disabled` | `boolean` | `false` | βœ“ | Disable the control |
39
39
  | `readonly` | `boolean` | `false` | βœ“ | Read-only |
40
40
  | `required` | `boolean` | `false` | βœ“ | Required field |
@@ -28,7 +28,7 @@ Animated circular spinner for loading states. Optional label below the spinner v
28
28
 
29
29
  | Property | Type | Default | Reflect | Description |
30
30
  |----------|------|---------|---------|-------------|
31
- | `color` | `'neutral'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | β€” | βœ“ | Spinner color preset |
31
+ | `color` | `'neutral'\|'primary'\|'info'\|'success'\|'warning'\|'danger'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | β€” | βœ“ | Spinner color preset β€” role axis (`primary`…`danger`, follows rebranding) and decorative axis (`blue`…, immune to it) |
32
32
 
33
33
  ## CSS Parts
34
34