shelving 1.328.3 → 1.329.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.
@@ -31198,15 +31198,16 @@ function StackBar() {
31198
31198
 
31199
31199
  ## Styling
31200
31200
 
31201
- | Variable | Styles | Default |
31202
- | ----------------------------- | ----------------------------------------------------- | ------------------------------------------- |
31203
- | `--app-layout-background` | Page background while the layout is mounted | `var(--tint-100)` (white) |
31204
- | `--app-layout-color` | Text colour for the layout | `var(--tint-00)` (black) |
31205
- | `--app-layout-nav-background` | Bar fill (also fills the home-bar area below it) | `var(--tint-100)` (white) |
31206
- | `--app-layout-nav-color` | Bar text and icon colour | `var(--tint-00)` (black) |
31207
- | `--app-layout-nav-border` | Line above the bar | `var(--stroke-normal) solid var(--tint-90)` |
31208
- | `--app-layout-nav-shadow` | Shadow of the bar, for example a soft shadow above it | `none` |
31209
- | `--app-layout-nav-item-width` | Largest width of one bar item | `6rem` |
31201
+ | Variable | Styles | Default |
31202
+ | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
31203
+ | `--app-layout-background` | Page background while the layout is mounted | `var(--tint-100)` (white) |
31204
+ | `--app-layout-color` | Text colour for the layout | `var(--tint-00)` (black) |
31205
+ | `--app-layout-nav-background` | Bar fill (also fills the home-bar area below it) | `var(--tint-100)` (white) |
31206
+ | `--app-layout-nav-color` | Bar text and icon colour | `var(--tint-00)` (black) |
31207
+ | `--app-layout-nav-border` | Line above the bar | `var(--stroke-normal) solid var(--tint-90)` |
31208
+ | `--app-layout-nav-shadow` | Shadow of the bar, for example a soft shadow above it | `none` |
31209
+ | `--app-layout-nav-transition-name` | View-transition name of the bar. Set it only for your own transition types (for example under `:root:active-view-transition-type(tab)`), so the bar stays above parts of a page that slide in their own layers | `none` |
31210
+ | `--app-layout-nav-item-width` | Largest width of one bar item | `6rem` |
31210
31211
 
31211
31212
  The bar keeps its items clear of the home bar and the rounded screen corners with safe-area insets.
31212
31213
 
@@ -59,15 +59,16 @@ function StackBar() {
59
59
 
60
60
  ## Styling
61
61
 
62
- | Variable | Styles | Default |
63
- | ----------------------------- | ----------------------------------------------------- | ------------------------------------------- |
64
- | `--app-layout-background` | Page background while the layout is mounted | `var(--tint-100)` (white) |
65
- | `--app-layout-color` | Text colour for the layout | `var(--tint-00)` (black) |
66
- | `--app-layout-nav-background` | Bar fill (also fills the home-bar area below it) | `var(--tint-100)` (white) |
67
- | `--app-layout-nav-color` | Bar text and icon colour | `var(--tint-00)` (black) |
68
- | `--app-layout-nav-border` | Line above the bar | `var(--stroke-normal) solid var(--tint-90)` |
69
- | `--app-layout-nav-shadow` | Shadow of the bar, for example a soft shadow above it | `none` |
70
- | `--app-layout-nav-item-width` | Largest width of one bar item | `6rem` |
62
+ | Variable | Styles | Default |
63
+ | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
64
+ | `--app-layout-background` | Page background while the layout is mounted | `var(--tint-100)` (white) |
65
+ | `--app-layout-color` | Text colour for the layout | `var(--tint-00)` (black) |
66
+ | `--app-layout-nav-background` | Bar fill (also fills the home-bar area below it) | `var(--tint-100)` (white) |
67
+ | `--app-layout-nav-color` | Bar text and icon colour | `var(--tint-00)` (black) |
68
+ | `--app-layout-nav-border` | Line above the bar | `var(--stroke-normal) solid var(--tint-90)` |
69
+ | `--app-layout-nav-shadow` | Shadow of the bar, for example a soft shadow above it | `none` |
70
+ | `--app-layout-nav-transition-name` | View-transition name of the bar. Set it only for your own transition types (for example under `:root:active-view-transition-type(tab)`), so the bar stays above parts of a page that slide in their own layers | `none` |
71
+ | `--app-layout-nav-item-width` | Largest width of one bar item | `6rem` |
71
72
 
72
73
  The bar keeps its items clear of the home bar and the rounded screen corners with safe-area insets.
73
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shelving",
3
- "version": "1.328.3",
3
+ "version": "1.329.0",
4
4
  "author": "Dave Houlbrooke <dave@shax.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,15 +51,16 @@ function StackBar() {
51
51
 
52
52
  ## Styling
53
53
 
54
- | Variable | Styles | Default |
55
- | ----------------------------- | ----------------------------------------------------- | ------------------------------------------- |
56
- | `--app-layout-background` | Page background while the layout is mounted | `var(--tint-100)` (white) |
57
- | `--app-layout-color` | Text colour for the layout | `var(--tint-00)` (black) |
58
- | `--app-layout-nav-background` | Bar fill (also fills the home-bar area below it) | `var(--tint-100)` (white) |
59
- | `--app-layout-nav-color` | Bar text and icon colour | `var(--tint-00)` (black) |
60
- | `--app-layout-nav-border` | Line above the bar | `var(--stroke-normal) solid var(--tint-90)` |
61
- | `--app-layout-nav-shadow` | Shadow of the bar, for example a soft shadow above it | `none` |
62
- | `--app-layout-nav-item-width` | Largest width of one bar item | `6rem` |
54
+ | Variable | Styles | Default |
55
+ | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
56
+ | `--app-layout-background` | Page background while the layout is mounted | `var(--tint-100)` (white) |
57
+ | `--app-layout-color` | Text colour for the layout | `var(--tint-00)` (black) |
58
+ | `--app-layout-nav-background` | Bar fill (also fills the home-bar area below it) | `var(--tint-100)` (white) |
59
+ | `--app-layout-nav-color` | Bar text and icon colour | `var(--tint-00)` (black) |
60
+ | `--app-layout-nav-border` | Line above the bar | `var(--stroke-normal) solid var(--tint-90)` |
61
+ | `--app-layout-nav-shadow` | Shadow of the bar, for example a soft shadow above it | `none` |
62
+ | `--app-layout-nav-transition-name` | View-transition name of the bar. Set it only for your own transition types (for example under `:root:active-view-transition-type(tab)`), so the bar stays above parts of a page that slide in their own layers | `none` |
63
+ | `--app-layout-nav-item-width` | Largest width of one bar item | `6rem` |
63
64
 
64
65
  The bar keeps its items clear of the home bar and the rounded screen corners with safe-area insets.
65
66
 
@@ -81,8 +81,11 @@
81
81
  color: var(--app-layout-nav-color, var(--tint-00));
82
82
  box-shadow: var(--app-layout-nav-shadow, none);
83
83
 
84
- /* No view-transition name of its own. Pages slide sideways in the content slot above it, so they never pass over it.
85
- * A named bar would draw above everything else during any view transition, and jump over a dialog or notice that covers it. */
84
+ /* No view-transition name of its own by default. Pages slide sideways in the content slot above it, so they never pass over it.
85
+ * A named bar would draw above everything else during any view transition, and jump over a dialog or notice that covers it.
86
+ * An app can name it for its own transitions only, for example parts of a page that slide in their own layers and would pass over it:
87
+ * `:root:active-view-transition-type(tab) { --app-layout-nav-transition-name: app-nav; }` */
88
+ view-transition-name: var(--app-layout-nav-transition-name, none);
86
89
 
87
90
  /* Each item takes an equal share of the bar. */
88
91
  > * {