@fusion.dev/helix-core 0.109.2 → 0.109.3

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.
@@ -9640,6 +9640,15 @@
9640
9640
  "readonly": true,
9641
9641
  "description": "Id of the description node, for `aria-describedby` on the control.\n\n`undefined` when there is nothing to point at, so the attribute is absent\nrather than pointing at an id that renders nothing."
9642
9642
  },
9643
+ {
9644
+ "kind": "field",
9645
+ "name": "invalidity",
9646
+ "type": {
9647
+ "text": "'true' | undefined"
9648
+ },
9649
+ "readonly": true,
9650
+ "description": "`'true'` for `aria-invalid` on the control while a message is shown, and\n`undefined` otherwise, so the attribute is absent."
9651
+ },
9643
9652
  {
9644
9653
  "kind": "field",
9645
9654
  "name": "feedback",
@@ -33,6 +33,11 @@ export declare class MixinFieldInterface {
33
33
  * rather than pointing at an id that renders nothing.
34
34
  */
35
35
  readonly describedBy: string | undefined;
36
+ /**
37
+ * `'true'` for `aria-invalid` on the control while a message is shown, and
38
+ * `undefined` otherwise, so the attribute is absent.
39
+ */
40
+ readonly invalidity: 'true' | undefined;
36
41
  /**
37
42
  * The validation message shown under the control. It replaces the browser's
38
43
  * message.
@@ -44,6 +44,9 @@ export const MixinField = (Base) => {
44
44
  }
45
45
  return this.hint === '' ? undefined : HINT_ID;
46
46
  }
47
+ get invalidity() {
48
+ return this.resolvedFeedback === '' ? undefined : 'true';
49
+ }
47
50
  renderGroupLabel() {
48
51
  const hidden = this.label === '' ? this.getAttribute('aria-label') : null;
49
52
  if (this.label === '' && !hidden) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-core",
3
3
  "description": "Helix element primitives: base classes, mixins, decorators, utilities.",
4
- "version": "0.109.2",
4
+ "version": "0.109.3",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -34,11 +34,11 @@
34
34
  "bugs": "https://github.com/project-fusion/fusion/issues",
35
35
  "dependencies": {
36
36
  "@floating-ui/dom": "^1.8.0",
37
- "@fusion.dev/helix-icons": "0.109.2"
37
+ "@fusion.dev/helix-icons": "0.109.3"
38
38
  },
39
39
  "devDependencies": {
40
- "@fusion.dev/helix-cem": "0.109.2",
41
- "@fusion.dev/helix-testing": "0.109.2",
40
+ "@fusion.dev/helix-cem": "0.109.3",
41
+ "@fusion.dev/helix-testing": "0.109.3",
42
42
  "@lit-labs/ssr": "^4.1.0",
43
43
  "lit": "^3.2.1"
44
44
  },