@vollowx/seele 0.12.6 → 0.12.8
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/README.md +28 -11
- package/custom-elements.json +3563 -1
- package/package.json +10 -16
- package/src/all.js +4 -0
- package/src/base/list-item.js +1 -0
- package/src/base/list.js +4 -5
- package/src/base/menu.js +2 -3
- package/src/base/tab-panel.js +25 -0
- package/src/base/tab.js +59 -0
- package/src/base/tabs.js +144 -0
- package/src/m3/checkbox/checkbox.js +1 -12
- package/src/m3/list/list.js +1 -5
- package/src/m3/menu/menu.js +1 -6
- package/src/m3/tab/tab-panel-styles.css.js +2 -0
- package/src/m3/tab/tab-panel.js +14 -0
- package/src/m3/tab/tab-styles.css.js +2 -0
- package/src/m3/tab/tab.js +33 -0
- package/src/m3/tab/tabs-styles.css.js +2 -0
- package/src/m3/tab/tabs.js +48 -0
- package/src/m3/tooltip/tooltip.js +2 -2
package/README.md
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
# Standard Extensible Elements
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@vollowx/seele)
|
|
4
|
+
[](https://builds.sr.ht/~lucaz/seele?)
|
|
5
|
+
[](https://www.webcomponents.org/element/@vollowx/seele)
|
|
6
|
+
|
|
7
|
+
Seele (**S**tandard **E**xtensible **Ele**ments) is a extensible
|
|
4
8
|
[Web Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components)
|
|
5
9
|
library with a focus on accessibility and keyboard-control.
|
|
6
10
|
|
|
7
11
|
It also provides styled components in the following design guideline(s):
|
|
12
|
+
|
|
8
13
|
- [Material You Expressive](https://m3.material.io/)
|
|
9
14
|
|
|
10
15
|
Documentations and demos are at [seele.projects.v9.nz](https://seele.projects.v9.nz/).
|
|
11
16
|
|
|
12
17
|
## Installation
|
|
13
18
|
|
|
14
|
-
|
|
19
|
+
Seele is published on [npm](https://www.npmjs.com/package/@vollowx/seele),
|
|
15
20
|
install with your preferred package manager:
|
|
16
21
|
|
|
17
22
|
```sh
|
|
18
|
-
npm install @vollowx/seele
|
|
19
|
-
|
|
20
|
-
yarn add @vollowx/seele
|
|
21
|
-
|
|
22
23
|
bun add @vollowx/seele
|
|
24
|
+
yarn add @vollowx/seele
|
|
25
|
+
npm install @vollowx/seele
|
|
23
26
|
```
|
|
24
27
|
|
|
25
28
|
## Quickstart
|
|
@@ -54,7 +57,7 @@ Once imported, the components can be used just like standard HTML elements.
|
|
|
54
57
|
|
|
55
58
|
### Theming
|
|
56
59
|
|
|
57
|
-
|
|
60
|
+
Seele components use CSS variables for styling. To include the systems, add
|
|
58
61
|
this to your style files.
|
|
59
62
|
|
|
60
63
|
```css
|
|
@@ -73,11 +76,25 @@ this to your style files.
|
|
|
73
76
|
|
|
74
77
|
## Browser Support
|
|
75
78
|
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
Seele relies on the folling modern web standards:
|
|
80
|
+
|
|
81
|
+
- [`ElementInternals`](https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals), Baseline 2023
|
|
82
|
+
- [Constructable Stylesheets](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/CSSStyleSheet), Baseline 2024, C[^1] 90, F 126
|
|
83
|
+
- [`:dir()`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:dir), Baseline 2023, C 120, F 49
|
|
84
|
+
- [`:state()`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:state), Baseline 2024, C 125, F 126
|
|
85
|
+
|
|
86
|
+
And all that result in:
|
|
87
|
+
|
|
88
|
+
- Chromium: >= 125
|
|
89
|
+
- Firefox: >= 126
|
|
90
|
+
|
|
91
|
+
It is 2026 now, you don't really need to worry about this. But in the future,
|
|
92
|
+
these following web features might be used and require higher browser versions:
|
|
93
|
+
|
|
94
|
+
- [anchor()](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/anchor), Baseline 2026, C 125, F 147, will remove the dependency `floating-dom`
|
|
95
|
+
- [`::view-*`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::view-transition), Baseline 2025, C 111, F 144, will optimize some animations for menu, dialog, etc
|
|
78
96
|
|
|
79
|
-
|
|
80
|
-
- Firefox-based ones: >= 126.0
|
|
97
|
+
[^1]: C = Chromium, F = Firefox.
|
|
81
98
|
|
|
82
99
|
## Other Information
|
|
83
100
|
|