@fusion.dev/helix-core 0.144.0 → 0.145.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.
@@ -1,5 +1,5 @@
1
1
  /** The ARIA properties that take elements rather than ids. */
2
- export type ElementsProperty = 'ariaDescribedByElements' | 'ariaLabelledByElements';
2
+ export type ElementsProperty = 'ariaControlsElements' | 'ariaDescribedByElements' | 'ariaLabelledByElements';
3
3
  /**
4
4
  * Writes elements onto an ARIA element-reflection property of `target`, or
5
5
  * clears it, and says whether the property is now this caller's.
@@ -11,8 +11,8 @@ export type ElementsProperty = 'ariaDescribedByElements' | 'ariaLabelledByElemen
11
11
  * caller wrote it**, which `owned` says, so a name another hand wrote stays.
12
12
  *
13
13
  * Dialog and Drawer name their panel by its header this way, Popover by its
14
- * first heading, Dialog describes itself by its body, and a Tour stop names
15
- * and describes its panel.
14
+ * first heading, Dialog describes itself by its body, a Tour stop names and
15
+ * describes its panel, and a Tab points its control at the panel it shows.
16
16
  */
17
17
  export declare const reflectElements: (target: Element | null | undefined, property: ElementsProperty, elements: readonly Element[], owned: boolean) => boolean;
18
18
  /**
@@ -30,6 +30,8 @@ export type RuntimeKind =
30
30
  | 'misread-direction'
31
31
  /** A React handler prop names an event the element never dispatches itself. */
32
32
  | 'misplaced-handler'
33
+ /** An Image has no `alt`, so a screen reader announces its file name. */
34
+ | 'missing-alt'
33
35
  /** The three.js driver could not load its layout, so the notes stay where they started. */
34
36
  | 'missing-layout'
35
37
  /** A control has no accessible name, so a screen reader announces it by its role alone. */
@@ -68,7 +70,7 @@ export type RuntimeKind =
68
70
  | 'unknown-icon'
69
71
  /** A tooltip's trigger does not name it in `aria-describedby`, so it is not read out. */
70
72
  | 'unlinked-trigger'
71
- /** A Text rendered as a label wraps or names a control, which its shadow root cannot reach. */
73
+ /** A Text is rendered as a label, a deprecated value whose shadow root reaches no control. */
72
74
  | 'unreachable-label'
73
75
  /** A virtualized list's box has no height of its own, so its window never settles. */
74
76
  | 'unsettled-window'
@@ -3,10 +3,10 @@
3
3
  *
4
4
  * `Intl` decides between a twelve and a twenty-four hour clock, because that is
5
5
  * a property of the locale rather than of any component: `en-US` gets `2:30 PM`
6
- * and `en-GB` gets `14:30` without either being configured. There is no flag to
7
- * force one, deliberately. A product that needs to override its reader's own
8
- * convention has a locale problem rather than a component one, and the value is
9
- * 24 hour regardless.
6
+ * and `en-GB` gets `14:30` without either being configured. This function takes
7
+ * no flag to force one. A family that offers the choice, such as Time Picker
8
+ * and Time Input with `hour-cycle`, passes it in the locale, as its `-u-hc-`
9
+ * extension (`en-US-u-hc-h23`). The value is 24 hour regardless.
10
10
  *
11
11
  * A value this cannot read is handed back unchanged, so a field showing what is
12
12
  * being typed shows the letters rather than blanking under the reader. Minute
package/dist/version.d.ts CHANGED
@@ -6,4 +6,4 @@
6
6
  * release, so the two never disagree; a spec beside this holds them to it.
7
7
  * Nothing else in the running code knows which release it is.
8
8
  */
9
- export declare const VERSION = "0.144.0";
9
+ export declare const VERSION = "0.145.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.144.0';
1
+ export const VERSION = '0.145.0';
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.144.0",
4
+ "version": "0.145.0",
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.144.0"
37
+ "@fusion.dev/helix-icons": "0.145.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@fusion.dev/helix-cem": "0.144.0",
41
- "@fusion.dev/helix-testing": "0.144.0",
40
+ "@fusion.dev/helix-cem": "0.145.0",
41
+ "@fusion.dev/helix-testing": "0.145.0",
42
42
  "@lit-labs/ssr": "^4.1.0",
43
43
  "lit": "^3.2.1"
44
44
  },