@fusion.dev/helix-headless 0.133.1 → 0.135.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/custom-elements.json
CHANGED
|
@@ -77814,7 +77814,7 @@
|
|
|
77814
77814
|
"declarations": [
|
|
77815
77815
|
{
|
|
77816
77816
|
"kind": "class",
|
|
77817
|
-
"description": "Renders a real `<nav>`, the landmark that screen reader users jump to.\nNavigation is its own component, separate from `AppHeader`, so you can use it\nin a header, a footer, or a sidebar.\n\n**It renders no links.** Bring your own, mark the current one with\n`aria-current=\"page\"`, and style them with the `data-navigation-item` recipe.\nA router renders its own anchors and cannot render them inside the\ncomponent's shadow root.\n\nThe component moves a marker to the current item. It finds the current item\nby reading `aria-current`, so the attribute that screen readers announce also\nplaces the marker.",
|
|
77817
|
+
"description": "Renders a real `<nav>`, the landmark that screen reader users jump to.\nNavigation is its own component, separate from `AppHeader`, so you can use it\nin a header, a footer, or a sidebar.\n\n**It renders no links.** Bring your own, mark the current one with\n`aria-current=\"page\"`, and style them with the `data-navigation-item` recipe.\nA router renders its own anchors and cannot render them inside the\ncomponent's shadow root.\n\nThe component moves a marker to the current item. It finds the current item\nby reading `aria-current`, so the attribute that screen readers announce also\nplaces the marker.\n\nSet `orientation=\"vertical\"` to stack the destinations in a column, for a\nsidebar.",
|
|
77818
77818
|
"name": "HelixHeadlessNavigation",
|
|
77819
77819
|
"cssParts": [
|
|
77820
77820
|
{
|
|
@@ -77850,6 +77850,16 @@
|
|
|
77850
77850
|
"description": "The landmark's name, read by screen readers.",
|
|
77851
77851
|
"attribute": "label"
|
|
77852
77852
|
},
|
|
77853
|
+
{
|
|
77854
|
+
"kind": "field",
|
|
77855
|
+
"name": "orientation",
|
|
77856
|
+
"type": {
|
|
77857
|
+
"text": "'vertical' | undefined"
|
|
77858
|
+
},
|
|
77859
|
+
"description": "Stacks the destinations in a column, for a sidebar, where unset is a row\nfor a header or a footer. The marker follows the current destination down\nthe column as it does along the row.",
|
|
77860
|
+
"attribute": "orientation",
|
|
77861
|
+
"reflects": true
|
|
77862
|
+
},
|
|
77853
77863
|
{
|
|
77854
77864
|
"kind": "field",
|
|
77855
77865
|
"name": "current",
|
|
@@ -78213,6 +78223,14 @@
|
|
|
78213
78223
|
"default": "'Main'",
|
|
78214
78224
|
"description": "The landmark's name, read by screen readers.",
|
|
78215
78225
|
"fieldName": "label"
|
|
78226
|
+
},
|
|
78227
|
+
{
|
|
78228
|
+
"name": "orientation",
|
|
78229
|
+
"type": {
|
|
78230
|
+
"text": "'vertical' | undefined"
|
|
78231
|
+
},
|
|
78232
|
+
"description": "Stacks the destinations in a column, for a sidebar, where unset is a row\nfor a header or a footer. The marker follows the current destination down\nthe column as it does along the row.",
|
|
78233
|
+
"fieldName": "orientation"
|
|
78216
78234
|
}
|
|
78217
78235
|
],
|
|
78218
78236
|
"superclass": {
|
|
@@ -17,6 +17,9 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
17
17
|
* by reading `aria-current`, so the attribute that screen readers announce also
|
|
18
18
|
* places the marker.
|
|
19
19
|
*
|
|
20
|
+
* Set `orientation="vertical"` to stack the destinations in a column, for a
|
|
21
|
+
* sidebar.
|
|
22
|
+
*
|
|
20
23
|
* @since 0.1.0
|
|
21
24
|
* @status stable
|
|
22
25
|
* @category navigation
|
|
@@ -34,6 +37,12 @@ export declare class HelixHeadlessNavigation extends HelixElement {
|
|
|
34
37
|
* The landmark's name, read by screen readers.
|
|
35
38
|
*/
|
|
36
39
|
label: string;
|
|
40
|
+
/**
|
|
41
|
+
* Stacks the destinations in a column, for a sidebar, where unset is a row
|
|
42
|
+
* for a header or a footer. The marker follows the current destination down
|
|
43
|
+
* the column as it does along the row.
|
|
44
|
+
*/
|
|
45
|
+
orientation?: 'vertical';
|
|
37
46
|
private current;
|
|
38
47
|
/** The destinations the consumer slotted. */
|
|
39
48
|
private get items();
|
|
@@ -54,6 +54,9 @@ let HelixHeadlessNavigation = class HelixHeadlessNavigation extends HelixElement
|
|
|
54
54
|
__decorate([
|
|
55
55
|
property()
|
|
56
56
|
], HelixHeadlessNavigation.prototype, "label", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
property({ reflect: true })
|
|
59
|
+
], HelixHeadlessNavigation.prototype, "orientation", void 0);
|
|
57
60
|
HelixHeadlessNavigation = __decorate([
|
|
58
61
|
customElement('helix-headless-navigation')
|
|
59
62
|
], HelixHeadlessNavigation);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-headless",
|
|
3
3
|
"description": "Headless component tier. Structure, accessibility, state, and form participation. No styling.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.135.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
},
|
|
47
47
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@fusion.dev/helix-core": "0.
|
|
50
|
-
"@fusion.dev/helix-icons": "0.
|
|
49
|
+
"@fusion.dev/helix-core": "0.135.0",
|
|
50
|
+
"@fusion.dev/helix-icons": "0.135.0",
|
|
51
51
|
"uqr": "^0.1.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@fusion.dev/helix-cem": "0.
|
|
55
|
-
"@fusion.dev/helix-testing": "0.
|
|
54
|
+
"@fusion.dev/helix-cem": "0.135.0",
|
|
55
|
+
"@fusion.dev/helix-testing": "0.135.0",
|
|
56
56
|
"@fusion.dev/scripts": "0.0.0-dev",
|
|
57
57
|
"@happy-dom/global-registrator": "^20.0.0",
|
|
58
58
|
"@lit-labs/ssr": "^4.1.0",
|
package/types/jsx.d.ts
CHANGED
|
@@ -14280,11 +14280,19 @@ fair summary of a task and a poor one of a quantity. */
|
|
|
14280
14280
|
export type HelixHeadlessNavigationProps = {
|
|
14281
14281
|
/** The landmark's name, read by screen readers. */
|
|
14282
14282
|
label?: (HelixHeadlessNavigation["label"]) | undefined;
|
|
14283
|
+
/** Stacks the destinations in a column, for a sidebar, where unset is a row
|
|
14284
|
+
for a header or a footer. The marker follows the current destination down
|
|
14285
|
+
the column as it does along the row. */
|
|
14286
|
+
orientation?: (HelixHeadlessNavigation["orientation"]) | undefined;
|
|
14283
14287
|
};
|
|
14284
14288
|
|
|
14285
14289
|
export type HelixHeadlessNavigationSolidJsProps = {
|
|
14286
14290
|
/** The landmark's name, read by screen readers. */
|
|
14287
14291
|
"prop:label"?: (HelixHeadlessNavigation["label"]) | undefined;
|
|
14292
|
+
/** Stacks the destinations in a column, for a sidebar, where unset is a row
|
|
14293
|
+
for a header or a footer. The marker follows the current destination down
|
|
14294
|
+
the column as it does along the row. */
|
|
14295
|
+
"prop:orientation"?: (HelixHeadlessNavigation["orientation"]) | undefined;
|
|
14288
14296
|
|
|
14289
14297
|
/** Set the innerHTML of the element */
|
|
14290
14298
|
innerHTML?: (string) | undefined;
|
|
@@ -35262,11 +35270,17 @@ export type CustomElements = {
|
|
|
35262
35270
|
* by reading `aria-current`, so the attribute that screen readers announce also
|
|
35263
35271
|
* places the marker.
|
|
35264
35272
|
*
|
|
35273
|
+
* Set `orientation="vertical"` to stack the destinations in a column, for a
|
|
35274
|
+
* sidebar.
|
|
35275
|
+
*
|
|
35265
35276
|
* ## Attributes & Properties
|
|
35266
35277
|
*
|
|
35267
35278
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
35268
35279
|
*
|
|
35269
35280
|
* - `label`: The landmark's name, read by screen readers.
|
|
35281
|
+
* - `orientation`: Stacks the destinations in a column, for a sidebar, where unset is a row
|
|
35282
|
+
* for a header or a footer. The marker follows the current destination down
|
|
35283
|
+
* the column as it does along the row.
|
|
35270
35284
|
* - `whenSettled`: Resolves a frame after the first update, when transitions are switched on.
|
|
35271
35285
|
*
|
|
35272
35286
|
* **Named `whenSettled` because `settled` is taken four times over**, by
|
|
@@ -55751,11 +55765,17 @@ export type CustomElementsSolidJs = {
|
|
|
55751
55765
|
* by reading `aria-current`, so the attribute that screen readers announce also
|
|
55752
55766
|
* places the marker.
|
|
55753
55767
|
*
|
|
55768
|
+
* Set `orientation="vertical"` to stack the destinations in a column, for a
|
|
55769
|
+
* sidebar.
|
|
55770
|
+
*
|
|
55754
55771
|
* ## Attributes & Properties
|
|
55755
55772
|
*
|
|
55756
55773
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
55757
55774
|
*
|
|
55758
55775
|
* - `label`: The landmark's name, read by screen readers.
|
|
55776
|
+
* - `orientation`: Stacks the destinations in a column, for a sidebar, where unset is a row
|
|
55777
|
+
* for a header or a footer. The marker follows the current destination down
|
|
55778
|
+
* the column as it does along the row.
|
|
55759
55779
|
* - `whenSettled`: Resolves a frame after the first update, when transitions are switched on.
|
|
55760
55780
|
*
|
|
55761
55781
|
* **Named `whenSettled` because `settled` is taken four times over**, by
|
package/types/vue.d.ts
CHANGED
|
@@ -7317,6 +7317,10 @@ export type HelixHeadlessMeterVueEvents = {};
|
|
|
7317
7317
|
export type HelixHeadlessNavigationVueProps = {
|
|
7318
7318
|
/** The landmark's name, read by screen readers. */
|
|
7319
7319
|
label?: (HelixHeadlessNavigation["label"]) | undefined;
|
|
7320
|
+
/** Stacks the destinations in a column, for a sidebar, where unset is a row
|
|
7321
|
+
for a header or a footer. The marker follows the current destination down
|
|
7322
|
+
the column as it does along the row. */
|
|
7323
|
+
orientation?: (HelixHeadlessNavigation["orientation"]) | undefined;
|
|
7320
7324
|
};
|
|
7321
7325
|
|
|
7322
7326
|
export type HelixHeadlessNavigationVueEvents = {};
|
|
@@ -12651,7 +12655,7 @@ export interface WcToolkitVueGlobalComponents {
|
|
|
12651
12655
|
HelixHeadlessMeterVueProps,
|
|
12652
12656
|
HelixHeadlessMeterVueEvents
|
|
12653
12657
|
>;
|
|
12654
|
-
/** Renders a real '<nav>', the landmark that screen reader users jump to. Navigation is its own component, separate from 'AppHeader', so you can use it in a header, a footer, or a sidebar. **It renders no links.** Bring your own, mark the current one with 'aria-current="page"', and style them with the 'data-navigation-item' recipe. A router renders its own anchors and cannot render them inside the component's shadow root. The component moves a marker to the current item. It finds the current item by reading 'aria-current', so the attribute that screen readers announce also places the marker. */
|
|
12658
|
+
/** Renders a real '<nav>', the landmark that screen reader users jump to. Navigation is its own component, separate from 'AppHeader', so you can use it in a header, a footer, or a sidebar. **It renders no links.** Bring your own, mark the current one with 'aria-current="page"', and style them with the 'data-navigation-item' recipe. A router renders its own anchors and cannot render them inside the component's shadow root. The component moves a marker to the current item. It finds the current item by reading 'aria-current', so the attribute that screen readers announce also places the marker. Set 'orientation="vertical"' to stack the destinations in a column, for a sidebar. */
|
|
12655
12659
|
"helix-headless-navigation": DefineCustomElement<
|
|
12656
12660
|
HelixHeadlessNavigation,
|
|
12657
12661
|
HelixHeadlessNavigationVueProps,
|