@fusion.dev/helix 0.168.0 → 0.170.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 +124 -7
- package/dist/data-table/root/data-table-root.css.js +3 -1
- package/dist/data-table/root/data-table-root.d.ts +6 -3
- package/dist/navigation/root/navigation-root.css.js +7 -1
- package/dist/navigation/root/navigation-root.d.ts +11 -2
- package/lint.json +1 -1
- package/package.json +6 -6
- package/types/jsx.d.ts +130 -16
- package/types/vue.d.ts +31 -5
package/custom-elements.json
CHANGED
|
@@ -8414,7 +8414,7 @@
|
|
|
8414
8414
|
"text": "'error' | 'loaded' | 'loading'"
|
|
8415
8415
|
},
|
|
8416
8416
|
"default": "'loading'",
|
|
8417
|
-
"description": "The image's state: `loading` while it is on its way, `loaded` once it\narrives, or `error` when it fails and the initials replace it. An avatar\nwith no `src` has no image to wait for, and reports `error` as well, since\nthe initials are what it shows.\n\nRead-only to a consumer: it is a report rather than a setting, and the same\nreport `Image` gives, for the same reason. `load` and `error` fire once, so\na listener bound after the picture settled hears neither, which is the\nplatform on an `<img>` too, and this is what that listener asks instead.\nMirrored to `data-status` rather than reflected, as `Image` explains.",
|
|
8417
|
+
"description": "The image's state: `loading` while it is on its way, `loaded` once it\narrives, or `error` when it fails and the initials replace it. An avatar\nwith no `src` has no image to wait for, and reports `error` as well, since\nthe initials are what it shows.\n\nRead-only to a consumer: it is a report rather than a setting, and the same\nreport `Image` gives, for the same reason. `load` and `error` fire once, so\na listener bound after the picture settled hears neither, which is the\nplatform on an `<img>` too, and this is what that listener asks instead.\nMirrored to `data-status` rather than reflected, as `Image` explains, once a\npicture has loaded or failed. An avatar with no `src` reports `error` here\nand as `:state(error)`, and writes no `data-status`.",
|
|
8418
8418
|
"inheritedFrom": {
|
|
8419
8419
|
"name": "HelixHeadlessAvatar",
|
|
8420
8420
|
"module": "src/avatar/root/avatar-root.ts"
|
|
@@ -56093,7 +56093,7 @@
|
|
|
56093
56093
|
"declarations": [
|
|
56094
56094
|
{
|
|
56095
56095
|
"kind": "class",
|
|
56096
|
-
"description": "Rows have hairline rules between them and no fill, and the headings are set\napart by weight and color. Helix shows depth with a single border and no\nelevation, and a header band would be elevation.\n\nThe grid scrolls in its own box, and the toolbar and footer sit outside it,\nso the search field stays in place when the columns scroll sideways.\n\n`windowed` draws only the rows in view, for a result too long to lay out at\nonce, and the headings stay in place while the rows scroll. It works with or\nwithout `paginated` and with either `mode`, so a page or a chunk from a\nserver can be windowed.\n\n**
|
|
56096
|
+
"description": "Rows have hairline rules between them and no fill, and the headings are set\napart by weight and color. Helix shows depth with a single border and no\nelevation, and a header band would be elevation.\n\nThe grid scrolls in its own box, and the toolbar and footer sit outside it,\nso the search field stays in place when the columns scroll sideways.\n\n`windowed` draws only the rows in view, for a result too long to lay out at\nonce, and the headings stay in place while the rows scroll. It works with or\nwithout `paginated` and with either `mode`, so a page or a chunk from a\nserver can be windowed.\n\n**Write the first page as rows, so the served HTML carries the values.**\nWrite it under the columns as `helix-table-row` and `helix-table-cell`\nelements. `@fusion.dev/helix-styles/helix.css` lays them out as the table\ndraws them before it upgrades, and the table shows them until `rows` holds a\nrow.",
|
|
56097
56097
|
"name": "HelixDataTable",
|
|
56098
56098
|
"cssProperties": [
|
|
56099
56099
|
{
|
|
@@ -56701,7 +56701,7 @@
|
|
|
56701
56701
|
],
|
|
56702
56702
|
"slots": [
|
|
56703
56703
|
{
|
|
56704
|
-
"description": "The columns, as `TableColumn` elements.",
|
|
56704
|
+
"description": "The columns, as `TableColumn` elements, and the first page served as `TableRow` elements, which show until `rows` holds a row.",
|
|
56705
56705
|
"name": "",
|
|
56706
56706
|
"inheritedFrom": {
|
|
56707
56707
|
"name": "HelixHeadlessDataTable",
|
|
@@ -57954,6 +57954,48 @@
|
|
|
57954
57954
|
"module": "src/data-table/root/data-table-root.ts"
|
|
57955
57955
|
}
|
|
57956
57956
|
},
|
|
57957
|
+
{
|
|
57958
|
+
"kind": "field",
|
|
57959
|
+
"name": "drewRows",
|
|
57960
|
+
"type": {
|
|
57961
|
+
"text": "boolean"
|
|
57962
|
+
},
|
|
57963
|
+
"privacy": "private",
|
|
57964
|
+
"default": "false",
|
|
57965
|
+
"description": "Whether `rows` has held a row, after which the rows the page served are\nnever shown again, whatever `rows` holds later.",
|
|
57966
|
+
"inheritedFrom": {
|
|
57967
|
+
"name": "HelixHeadlessDataTable",
|
|
57968
|
+
"module": "src/data-table/root/data-table-root.ts"
|
|
57969
|
+
}
|
|
57970
|
+
},
|
|
57971
|
+
{
|
|
57972
|
+
"kind": "field",
|
|
57973
|
+
"name": "serving",
|
|
57974
|
+
"type": {
|
|
57975
|
+
"text": "boolean"
|
|
57976
|
+
},
|
|
57977
|
+
"privacy": "private",
|
|
57978
|
+
"default": "false",
|
|
57979
|
+
"description": "Whether the last render showed the rows the page served.",
|
|
57980
|
+
"inheritedFrom": {
|
|
57981
|
+
"name": "HelixHeadlessDataTable",
|
|
57982
|
+
"module": "src/data-table/root/data-table-root.ts"
|
|
57983
|
+
}
|
|
57984
|
+
},
|
|
57985
|
+
{
|
|
57986
|
+
"kind": "field",
|
|
57987
|
+
"name": "servedLast",
|
|
57988
|
+
"type": {
|
|
57989
|
+
"text": "boolean"
|
|
57990
|
+
},
|
|
57991
|
+
"privacy": "private",
|
|
57992
|
+
"default": "false",
|
|
57993
|
+
"description": "Whether the render before the last showed them, so the change is checked once.",
|
|
57994
|
+
"inheritedFrom": {
|
|
57995
|
+
"name": "HelixHeadlessDataTable",
|
|
57996
|
+
"module": "src/data-table/root/data-table-root.ts"
|
|
57997
|
+
}
|
|
57998
|
+
},
|
|
57957
57999
|
{
|
|
57958
58000
|
"kind": "field",
|
|
57959
58001
|
"name": "typeahead",
|
|
@@ -58575,6 +58617,35 @@
|
|
|
58575
58617
|
"module": "src/data-table/root/data-table-root.ts"
|
|
58576
58618
|
}
|
|
58577
58619
|
},
|
|
58620
|
+
{
|
|
58621
|
+
"kind": "field",
|
|
58622
|
+
"name": "servedRows",
|
|
58623
|
+
"type": {
|
|
58624
|
+
"text": "Element[]"
|
|
58625
|
+
},
|
|
58626
|
+
"privacy": "private",
|
|
58627
|
+
"description": "The rows the page served: the first page, written as `TableRow` children.\n\nBy tag, because the page may not register `Table`, and an element that is\nnot defined has no `isTableRow` to find it by.",
|
|
58628
|
+
"readonly": true,
|
|
58629
|
+
"inheritedFrom": {
|
|
58630
|
+
"name": "HelixHeadlessDataTable",
|
|
58631
|
+
"module": "src/data-table/root/data-table-root.ts"
|
|
58632
|
+
}
|
|
58633
|
+
},
|
|
58634
|
+
{
|
|
58635
|
+
"kind": "method",
|
|
58636
|
+
"name": "serves",
|
|
58637
|
+
"privacy": "private",
|
|
58638
|
+
"return": {
|
|
58639
|
+
"type": {
|
|
58640
|
+
"text": "boolean"
|
|
58641
|
+
}
|
|
58642
|
+
},
|
|
58643
|
+
"description": "Whether this render shows the rows the page served in place of drawing its\nown.\n\n**Until `rows` has held a row, and never after.** A server cannot tell\nwhether the page served any, and a render hydrating what one sent has to\nrender the same, so both show the slot that would hold them. In a browser\nthe rows are shown while `rows` is empty, which is how a framework that\nrenders on a server leaves the property until it hydrates. Once the table\nhas drawn its own rows it stops showing the served ones and never removes\nthem: they are the page's markup, and a framework that rendered them owns\nthem.",
|
|
58644
|
+
"inheritedFrom": {
|
|
58645
|
+
"name": "HelixHeadlessDataTable",
|
|
58646
|
+
"module": "src/data-table/root/data-table-root.ts"
|
|
58647
|
+
}
|
|
58648
|
+
},
|
|
58578
58649
|
{
|
|
58579
58650
|
"kind": "field",
|
|
58580
58651
|
"name": "sourceKnown",
|
|
@@ -60554,6 +60625,10 @@
|
|
|
60554
60625
|
"description": "Rows selected by their key, and columns you can reorder and resize.",
|
|
60555
60626
|
"slug": "selecting-and-arranging"
|
|
60556
60627
|
},
|
|
60628
|
+
{
|
|
60629
|
+
"description": "The first page written out as rows, so the HTML carries the values before the table draws its own.",
|
|
60630
|
+
"slug": "serving-the-first-page"
|
|
60631
|
+
},
|
|
60557
60632
|
{
|
|
60558
60633
|
"description": "A summary of the rows shown and a page size menu, on either side of the built-in pagination.",
|
|
60559
60634
|
"min": 520,
|
|
@@ -137475,7 +137550,7 @@
|
|
|
137475
137550
|
"declarations": [
|
|
137476
137551
|
{
|
|
137477
137552
|
"kind": "class",
|
|
137478
|
-
"description": "One marker moves to the current destination. A moving marker is easier to\nfollow than a background that switches from one item to another, and the\nmovement shows which page you came from as well as which one is current.",
|
|
137553
|
+
"description": "One marker moves to the current destination. A moving marker is easier to\nfollow than a background that switches from one item to another, and the\nmovement shows which page you came from as well as which one is current.\n\nThe marker depends on `variant`, as `Tabs`' mark does:\n\n- Unset, it is a pill on the current destination, with nothing behind the\n row.\n- `underlined` makes it a bar along the bottom of the row, on a rule.\n- `segmented` makes it a raised pill inside a sunken track.",
|
|
137479
137554
|
"name": "HelixNavigation",
|
|
137480
137555
|
"cssProperties": [
|
|
137481
137556
|
{
|
|
@@ -137487,7 +137562,7 @@
|
|
|
137487
137562
|
"name": "--navigation-gap"
|
|
137488
137563
|
},
|
|
137489
137564
|
{
|
|
137490
|
-
"description": "Fill of the marker on the current destination.",
|
|
137565
|
+
"description": "Fill of the marker on the current destination: the bar under `underlined`, and the pill otherwise.",
|
|
137491
137566
|
"name": "--navigation-indicator-color"
|
|
137492
137567
|
},
|
|
137493
137568
|
{
|
|
@@ -137495,9 +137570,13 @@
|
|
|
137495
137570
|
"name": "--navigation-indicator-radius"
|
|
137496
137571
|
},
|
|
137497
137572
|
{
|
|
137498
|
-
"description": "Shadow under the marker, for a marker that sits raised on the bar.",
|
|
137573
|
+
"description": "Shadow under the marker, for a marker that sits raised on the bar, as `segmented` draws it.",
|
|
137499
137574
|
"name": "--navigation-indicator-shadow"
|
|
137500
137575
|
},
|
|
137576
|
+
{
|
|
137577
|
+
"description": "Height of the bar under `underlined`, and its width down a column.",
|
|
137578
|
+
"name": "--navigation-indicator-thickness"
|
|
137579
|
+
},
|
|
137501
137580
|
{
|
|
137502
137581
|
"description": "Text color of a destination that is not the current one. Read by the page's stylesheet, which styles the links you slot.",
|
|
137503
137582
|
"name": "--navigation-item-color"
|
|
@@ -137533,6 +137612,10 @@
|
|
|
137533
137612
|
{
|
|
137534
137613
|
"description": "Corner radius of a destination, which its hover background follows.",
|
|
137535
137614
|
"name": "--navigation-item-radius"
|
|
137615
|
+
},
|
|
137616
|
+
{
|
|
137617
|
+
"description": "Color of the rule under the row in `underlined`.",
|
|
137618
|
+
"name": "--navigation-rule-color"
|
|
137536
137619
|
}
|
|
137537
137620
|
],
|
|
137538
137621
|
"members": [
|
|
@@ -137629,6 +137712,20 @@
|
|
|
137629
137712
|
"module": "src/navigation/root/navigation-root.ts"
|
|
137630
137713
|
}
|
|
137631
137714
|
},
|
|
137715
|
+
{
|
|
137716
|
+
"kind": "field",
|
|
137717
|
+
"name": "variant",
|
|
137718
|
+
"type": {
|
|
137719
|
+
"text": "'segmented' | 'underlined' | undefined"
|
|
137720
|
+
},
|
|
137721
|
+
"description": "How the destinations are drawn, with `Tabs`' three values and for the same\nreasons.\n\nUnset is a pill under the current destination with nothing behind the row,\nfor a bar inside other chrome. `underlined` is a rule under the row and a\nthicker one under the current destination, for a bar that heads a page, as\na repository's or a project's sections do. `segmented` puts the pill in a\nframed, sunken track, for a short set that reads as one control.\n\n**The same words as `Tabs`, because a reader cannot tell the two apart.**\nNavigation moves between pages and tabs between the panels of one page,\nand the bar looks the same either way. A console whose sections are pages\ncould not draw them the way its underlined tabs were drawn.\n\nDown a column, `underlined` stands the rule and the mark along the\ncolumn's inline end.\n\nReflected and left unset by default, so the host carries nothing a\nconsumer's server markup does not already have.",
|
|
137722
|
+
"attribute": "variant",
|
|
137723
|
+
"reflects": true,
|
|
137724
|
+
"inheritedFrom": {
|
|
137725
|
+
"name": "HelixHeadlessNavigation",
|
|
137726
|
+
"module": "src/navigation/root/navigation-root.ts"
|
|
137727
|
+
}
|
|
137728
|
+
},
|
|
137632
137729
|
{
|
|
137633
137730
|
"kind": "field",
|
|
137634
137731
|
"name": "current",
|
|
@@ -138084,6 +138181,14 @@
|
|
|
138084
138181
|
{
|
|
138085
138182
|
"description": "Links with the current page marked by a marker that moves to it.",
|
|
138086
138183
|
"slug": "preview"
|
|
138184
|
+
},
|
|
138185
|
+
{
|
|
138186
|
+
"description": "Links in a sunken track, with the current page marked by a raised pill.",
|
|
138187
|
+
"slug": "segmented"
|
|
138188
|
+
},
|
|
138189
|
+
{
|
|
138190
|
+
"description": "Links with the current page marked by a bar on a rule under the row.",
|
|
138191
|
+
"slug": "underlined"
|
|
138087
138192
|
}
|
|
138088
138193
|
],
|
|
138089
138194
|
"source": "helix/styled/src/navigation"
|
|
@@ -138164,6 +138269,18 @@
|
|
|
138164
138269
|
"name": "HelixHeadlessNavigation",
|
|
138165
138270
|
"module": "src/navigation/root/navigation-root.ts"
|
|
138166
138271
|
}
|
|
138272
|
+
},
|
|
138273
|
+
{
|
|
138274
|
+
"name": "variant",
|
|
138275
|
+
"type": {
|
|
138276
|
+
"text": "'segmented' | 'underlined' | undefined"
|
|
138277
|
+
},
|
|
138278
|
+
"description": "How the destinations are drawn, with `Tabs`' three values and for the same\nreasons.\n\nUnset is a pill under the current destination with nothing behind the row,\nfor a bar inside other chrome. `underlined` is a rule under the row and a\nthicker one under the current destination, for a bar that heads a page, as\na repository's or a project's sections do. `segmented` puts the pill in a\nframed, sunken track, for a short set that reads as one control.\n\n**The same words as `Tabs`, because a reader cannot tell the two apart.**\nNavigation moves between pages and tabs between the panels of one page,\nand the bar looks the same either way. A console whose sections are pages\ncould not draw them the way its underlined tabs were drawn.\n\nDown a column, `underlined` stands the rule and the mark along the\ncolumn's inline end.\n\nReflected and left unset by default, so the host carries nothing a\nconsumer's server markup does not already have.",
|
|
138279
|
+
"fieldName": "variant",
|
|
138280
|
+
"inheritedFrom": {
|
|
138281
|
+
"name": "HelixHeadlessNavigation",
|
|
138282
|
+
"module": "src/navigation/root/navigation-root.ts"
|
|
138283
|
+
}
|
|
138167
138284
|
}
|
|
138168
138285
|
],
|
|
138169
138286
|
"cssStates": [
|
|
@@ -245744,6 +245861,6 @@
|
|
|
245744
245861
|
],
|
|
245745
245862
|
"helix": {
|
|
245746
245863
|
"package": "@fusion.dev/helix",
|
|
245747
|
-
"version": "0.
|
|
245864
|
+
"version": "0.170.0"
|
|
245748
245865
|
}
|
|
245749
245866
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {display: block;}[part="
|
|
2
|
+
export const styles = createSheet(`:host {display: block;}[part="toolbar"],
|
|
3
|
+
[part="table"],
|
|
4
|
+
[part="footer"] {grid-column: 1 / -1;}[part="table"] {display: grid;grid-template-columns: var(--data-table-columns, var(--data-table-template, minmax(0, 1fr)));inline-size: 100%;overflow-x: auto;}[part="table"] {--_data-table-fade: to right;animation: data-table-edges linear both;animation-timeline: scroll(self inline);mask-image: linear-gradient(
|
|
3
5
|
var(--_data-table-fade),
|
|
4
6
|
transparent,
|
|
5
7
|
#000 var(--_data-table-fade-start, 0rem),
|
|
@@ -19,15 +19,18 @@ import '../../table/index.js';
|
|
|
19
19
|
* without `paginated` and with either `mode`, so a page or a chunk from a
|
|
20
20
|
* server can be windowed.
|
|
21
21
|
*
|
|
22
|
-
* **
|
|
23
|
-
*
|
|
22
|
+
* **Write the first page as rows, so the served HTML carries the values.**
|
|
23
|
+
* Write it under the columns as `helix-table-row` and `helix-table-cell`
|
|
24
|
+
* elements. `@fusion.dev/helix-styles/helix.css` lays them out as the table
|
|
25
|
+
* draws them before it upgrades, and the table shows them until `rows` holds a
|
|
26
|
+
* row.
|
|
24
27
|
*
|
|
25
28
|
* @since 0.1.0
|
|
26
29
|
* @status stable
|
|
27
30
|
* @category data
|
|
28
31
|
* @documentation https://fusion.dev/helix/components/data-table
|
|
29
32
|
*
|
|
30
|
-
* @slot - The columns, as `TableColumn` elements.
|
|
33
|
+
* @slot - The columns, as `TableColumn` elements, and the first page served as `TableRow` elements, which show until `rows` holds a row.
|
|
31
34
|
* @slot empty - Content shown when there are no rows to show and none are loading, such as a picture and a link. Falls back to `empty-text`, which the live region still says.
|
|
32
35
|
* @slot error - Content shown while `error-text` is set, such as a button that tries again. Falls back to `error-text`, which the live region still says.
|
|
33
36
|
* @slot footer - Content below the grid. It replaces the built-in pagination.
|
|
@@ -2,4 +2,10 @@ import { createSheet } from '@fusion.dev/helix-core';
|
|
|
2
2
|
export const styles = createSheet(`:host {display: block;}[part="nav"] {align-items: center;block-size: var(--navigation-block-size, var(--helix-size-control-sm));display: flex;gap: var(--navigation-gap, var(--helix-space-2xs));min-inline-size: 0;overflow-x: auto;position: relative;}::slotted(:is(ul, ol, [role="list"])) {align-items: center;block-size: 100%;display: flex;gap: var(--navigation-gap, var(--helix-space-2xs));list-style: none;margin: var(--helix-space-none);padding: var(--helix-space-none);}:host([orientation="vertical"]) ::slotted(:is(ul, ol, [role="list"])) {align-items: stretch;block-size: auto;flex-direction: column;}[part="indicator"] {background-color: var(--navigation-indicator-color, var(--helix-color-surface-sunken));block-size: var(--indicator-block-size, 0);border-radius: var(--navigation-indicator-radius, var(--helix-radii-sm));box-shadow: var(--navigation-indicator-shadow, none);inline-size: var(--indicator-inline-size, 0);inset-block-start: 50%;inset-inline-start: 0;opacity: 0;position: absolute;translate: var(--indicator-x, 0) -50%;transition:
|
|
3
3
|
translate var(--helix-duration-normal) var(--helix-easing-emphasized),
|
|
4
4
|
inline-size var(--helix-duration-normal) var(--helix-easing-emphasized),
|
|
5
|
-
opacity var(--helix-duration-fast) var(--helix-easing-standard);z-index: var(--helix-layer-base);}[part="indicator"][data-placed] {opacity: 1;}:host([orientation="vertical"]) [part="nav"] {align-items: stretch;block-size: auto;flex-direction: column;overflow-x: visible;}:host([orientation="vertical"]) [part="indicator"] {inset-block-start: 0;translate: var(--indicator-x, 0) var(--indicator-y, 0);}
|
|
5
|
+
opacity var(--helix-duration-fast) var(--helix-easing-standard);z-index: var(--helix-layer-base);}[part="indicator"][data-placed] {opacity: 1;}:host([orientation="vertical"]) [part="nav"] {align-items: stretch;block-size: auto;flex-direction: column;overflow-x: visible;}:host([orientation="vertical"]) [part="indicator"] {inset-block-start: 0;translate: var(--indicator-x, 0) var(--indicator-y, 0);}:host([variant="underlined"]) [part="nav"] {background-image: linear-gradient(
|
|
6
|
+
var(--navigation-rule-color, var(--helix-color-border)),
|
|
7
|
+
var(--navigation-rule-color, var(--helix-color-border))
|
|
8
|
+
);background-position: bottom;background-repeat: repeat-x;background-size: 100% var(--helix-border-thin);}:host([variant="underlined"]) [part="indicator"] {background-color: var(--navigation-indicator-color, var(--helix-color-primary));block-size: var(--navigation-indicator-thickness, var(--helix-border-thick));border-radius: var(--navigation-indicator-radius, var(--helix-radii-none));inset-block-end: 0;inset-block-start: auto;translate: var(--indicator-x, 0) 0;}:host([variant="segmented"]) [part="nav"] {background-color: var(--helix-color-surface-sunken);block-size: var(--navigation-block-size, var(--helix-size-control));border: var(--helix-border-thin) solid var(--helix-color-border);border-radius: var(--helix-radii-sm);box-sizing: border-box;inline-size: fit-content;max-inline-size: 100%;padding: var(--helix-space-2xs);}:host([variant="segmented"]) [part="indicator"] {background-color: var(--navigation-indicator-color, var(--helix-color-surface-overlay));border-radius: var(
|
|
9
|
+
--navigation-indicator-radius,
|
|
10
|
+
calc(var(--helix-radii-sm) - var(--helix-border-thin))
|
|
11
|
+
);box-shadow: var(--navigation-indicator-shadow, var(--helix-shadow-sm));}:host([orientation="vertical"][variant="underlined"]) [part="nav"] {background-position: right;background-repeat: repeat-y;background-size: var(--helix-border-thin) 100%;}:host([orientation="vertical"][variant="underlined"]) [part="indicator"] {block-size: var(--indicator-block-size, 0);inline-size: var(--navigation-indicator-thickness, var(--helix-border-thick));inset-block-start: 0;inset-inline-end: 0;inset-inline-start: auto;translate: 0 var(--indicator-y, 0);}:host([orientation="vertical"][variant="segmented"]) [part="nav"] {block-size: auto;}:host([orientation="vertical"][variant="underlined"]:dir(rtl)) [part="nav"] {background-position: left;}@media print {:host {display: none;}}`);
|
|
@@ -8,6 +8,13 @@ import type { CSSResultGroup } from 'lit';
|
|
|
8
8
|
* follow than a background that switches from one item to another, and the
|
|
9
9
|
* movement shows which page you came from as well as which one is current.
|
|
10
10
|
*
|
|
11
|
+
* The marker depends on `variant`, as `Tabs`' mark does:
|
|
12
|
+
*
|
|
13
|
+
* - Unset, it is a pill on the current destination, with nothing behind the
|
|
14
|
+
* row.
|
|
15
|
+
* - `underlined` makes it a bar along the bottom of the row, on a rule.
|
|
16
|
+
* - `segmented` makes it a raised pill inside a sunken track.
|
|
17
|
+
*
|
|
11
18
|
* @since 0.1.0
|
|
12
19
|
* @status stable
|
|
13
20
|
* @category navigation
|
|
@@ -16,10 +23,11 @@ import type { CSSResultGroup } from 'lit';
|
|
|
16
23
|
*
|
|
17
24
|
* @cssproperty --navigation-block-size - Height of the bar in a row. Each destination fills it.
|
|
18
25
|
* @cssproperty --navigation-gap - Space between destinations.
|
|
19
|
-
* @cssproperty --navigation-indicator-color - Fill of the marker on the current destination.
|
|
26
|
+
* @cssproperty --navigation-indicator-color - Fill of the marker on the current destination: the bar under `underlined`, and the pill otherwise.
|
|
20
27
|
* @cssproperty --navigation-indicator-radius - Corner radius of the marker.
|
|
21
28
|
* @cssproperty --navigation-indicator-shadow - Shadow under the marker, for a marker that sits
|
|
22
|
-
* raised on the bar.
|
|
29
|
+
* raised on the bar, as `segmented` draws it.
|
|
30
|
+
* @cssproperty --navigation-indicator-thickness - Height of the bar under `underlined`, and its width down a column.
|
|
23
31
|
* @cssproperty --navigation-item-color - Text color of a destination that is not the current one. Read by the page's stylesheet, which styles the links you slot.
|
|
24
32
|
* @cssproperty --navigation-item-current-color - Text color of the current destination, the one marked `aria-current="page"`.
|
|
25
33
|
* @cssproperty --navigation-item-current-font-weight - Weight of the current destination's text.
|
|
@@ -29,6 +37,7 @@ import type { CSSResultGroup } from 'lit';
|
|
|
29
37
|
* @cssproperty --navigation-item-hover-color - Text color of a destination under the pointer.
|
|
30
38
|
* @cssproperty --navigation-item-padding-inline - Space either side of a destination's text.
|
|
31
39
|
* @cssproperty --navigation-item-radius - Corner radius of a destination, which its hover background follows.
|
|
40
|
+
* @cssproperty --navigation-rule-color - Color of the rule under the row in `underlined`.
|
|
32
41
|
*/
|
|
33
42
|
export declare class HelixNavigation extends HelixHeadlessNavigation {
|
|
34
43
|
static styles: CSSResultGroup;
|