shelving 1.323.1 → 1.323.2
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/docs/llms-full.txt +1 -0
- package/docs/ui/Notices.md +1 -0
- package/package.json +1 -1
- package/ui/notice/Notices.md +1 -0
- package/ui/notice/Notices.module.css +3 -0
package/docs/llms-full.txt
CHANGED
|
@@ -32820,6 +32820,7 @@ Renders the global list of active notices and subscribes to incoming `"notice"`
|
|
|
32820
32820
|
- Backed by the `NOTICES` store singleton; for advanced use you can keep a reference to a notice to update or close it manually.
|
|
32821
32821
|
- The list shows in the bottom-right corner. Set `position` to `"top-left"`, `"top-center"`, `"top-right"`, `"bottom-left"`, `"bottom-center"`, or `"bottom-right"` to choose a different place.
|
|
32822
32822
|
- Notices animate with [view transitions](https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API). `Notices` renders the store inside transitions, so a notice animates with no `startTransition()` of your own. A single `<Notice>` knows nothing about transitions, the same as `<Dialog>`. A new notice slides in from the side of its corner, and a closed notice slides out to that side. In a centred list, notices slide in and out from the top or bottom edge. The other notices move to their new places. A notice that changes in place (for example from loading to success) changes at once, with no animation.
|
|
32823
|
+
- The list has its own layer in every view transition, so it stays still above a page that slides under it.
|
|
32823
32824
|
- With reduced motion, notices fade in and out in place, and the others move at once. A browser without view transitions shows the changes at once.
|
|
32824
32825
|
|
|
32825
32826
|
## Usage
|
package/docs/ui/Notices.md
CHANGED
|
@@ -18,6 +18,7 @@ Renders the global list of active notices and subscribes to incoming `"notice"`
|
|
|
18
18
|
- Backed by the `NOTICES` store singleton; for advanced use you can keep a reference to a notice to update or close it manually.
|
|
19
19
|
- The list shows in the bottom-right corner. Set `position` to `"top-left"`, `"top-center"`, `"top-right"`, `"bottom-left"`, `"bottom-center"`, or `"bottom-right"` to choose a different place.
|
|
20
20
|
- Notices animate with [view transitions](https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API). `Notices` renders the store inside transitions, so a notice animates with no `startTransition()` of your own. A single `<Notice>` knows nothing about transitions, the same as `<Dialog>`. A new notice slides in from the side of its corner, and a closed notice slides out to that side. In a centred list, notices slide in and out from the top or bottom edge. The other notices move to their new places. A notice that changes in place (for example from loading to success) changes at once, with no animation.
|
|
21
|
+
- The list has its own layer in every view transition, so it stays still above a page that slides under it.
|
|
21
22
|
- With reduced motion, notices fade in and out in place, and the others move at once. A browser without view transitions shows the changes at once.
|
|
22
23
|
|
|
23
24
|
## Usage
|
package/package.json
CHANGED
package/ui/notice/Notices.md
CHANGED
|
@@ -9,6 +9,7 @@ Renders the global list of active notices and subscribes to incoming `"notice"`
|
|
|
9
9
|
- Backed by the `NOTICES` store singleton; for advanced use you can keep a reference to a notice to update or close it manually.
|
|
10
10
|
- The list shows in the bottom-right corner. Set `position` to `"top-left"`, `"top-center"`, `"top-right"`, `"bottom-left"`, `"bottom-center"`, or `"bottom-right"` to choose a different place.
|
|
11
11
|
- Notices animate with [view transitions](https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API). `Notices` renders the store inside transitions, so a notice animates with no `startTransition()` of your own. A single `<Notice>` knows nothing about transitions, the same as `<Dialog>`. A new notice slides in from the side of its corner, and a closed notice slides out to that side. In a centred list, notices slide in and out from the top or bottom edge. The other notices move to their new places. A notice that changes in place (for example from loading to success) changes at once, with no animation.
|
|
12
|
+
- The list has its own layer in every view transition, so it stays still above a page that slides under it.
|
|
12
13
|
- With reduced motion, notices fade in and out in place, and the others move at once. A browser without view transitions shows the changes at once.
|
|
13
14
|
|
|
14
15
|
## Usage
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
/* The list is as wide as `--notices-width`, so let clicks pass through the gaps to the page. */
|
|
18
18
|
pointer-events: none;
|
|
19
19
|
|
|
20
|
+
/* Take a separate layer in any view transition, so a page that slides under the list does not cover it. `match-element` gives each list a unique name. */
|
|
21
|
+
view-transition-name: match-element;
|
|
22
|
+
|
|
20
23
|
/* Each notice is only as wide as its content, and stays on the side of the list's corner, or in the centre. */
|
|
21
24
|
& > * {
|
|
22
25
|
inline-size: auto;
|