@m3e/list 1.0.0-rc.1
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/LICENSE +22 -0
- package/README.md +145 -0
- package/cem.config.mjs +16 -0
- package/demo/index.html +53 -0
- package/dist/css-custom-data.json +127 -0
- package/dist/custom-elements.json +247 -0
- package/dist/html-custom-data.json +18 -0
- package/dist/index.js +262 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +106 -0
- package/dist/index.min.js.map +1 -0
- package/dist/src/ListElement.d.ts +51 -0
- package/dist/src/ListElement.d.ts.map +1 -0
- package/dist/src/ListItemElement.d.ts +75 -0
- package/dist/src/ListItemElement.d.ts.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/eslint.config.mjs +13 -0
- package/package.json +48 -0
- package/rollup.config.js +32 -0
- package/src/ListElement.ts +65 -0
- package/src/ListItemElement.ts +156 -0
- package/src/index.ts +2 -0
- package/tsconfig.json +9 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 matraic
|
|
4
|
+
Contact: matraic@yahoo.com
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# @m3e/list
|
|
2
|
+
|
|
3
|
+
The `@m3e/list` package provides expressive, accessible components for organizing and displaying lists of items. It includes both the `m3e-list` container and the `m3e-list-item` element, supporting rich content, flexible layout, and extensive theming via CSS custom properties.
|
|
4
|
+
|
|
5
|
+
> **Part of the [M3E](../../README.md) monorepo**
|
|
6
|
+
> This package is maintained within the unified M3E repository, which provides a suite of Material 3 web components.
|
|
7
|
+
|
|
8
|
+
## ๐ฆ Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @m3e/list
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## ๐ป Editor Integration
|
|
15
|
+
|
|
16
|
+
This package includes a [Custom Elements Manifest](https://github.com/webcomponents/custom-elements-manifest) to support enhanced editor tooling and developer experience.
|
|
17
|
+
|
|
18
|
+
### Visual Studio Code
|
|
19
|
+
|
|
20
|
+
To enable autocomplete and hover documentation for `@m3e/list`, install the [Custom Elements Manifest Language Server](https://marketplace.visualstudio.com/items?itemName=pwrs.cem-language-server-vscode) extension. It will automatically detect the manifest bundled with this package and surface tag names, attributes, slots, and events in supported files.
|
|
21
|
+
|
|
22
|
+
Alternately, you can explicitly reference the `html-custom-data.json` and `css-custom-data.json` in your workspace settings:
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"html.customData": ["./node_modules/@m3e/list/dist/html-custom-data.json"],
|
|
27
|
+
"css.customData": ["./node_modules/@m3e/list/dist/css-custom-data.json"]
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## ๐ Browser Usage
|
|
32
|
+
|
|
33
|
+
This package uses [JavaScript Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#module_specifiers). To use it directly in a browser without a bundler, use a module script similar to the following.
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<script type="module" src="/node_modules/@m3e/list/dist/index.js"></script>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
In addition, you must use an [import map](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap) to include dependencies.
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<script type="importmap">
|
|
43
|
+
{
|
|
44
|
+
"imports": {
|
|
45
|
+
"lit": "https://cdn.jsdelivr.net/npm/lit@3.3.0/+esm",
|
|
46
|
+
"@m3e/core": "/node_modules/@m3e/core/dist/index.js"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
> For production, use index.min.js for faster load times.
|
|
53
|
+
|
|
54
|
+
## ๐๏ธ Elements
|
|
55
|
+
|
|
56
|
+
- `m3e-list` โ A list of items.
|
|
57
|
+
- `m3e-list-item` โ An item in a list.
|
|
58
|
+
|
|
59
|
+
## ๐งช Examples
|
|
60
|
+
|
|
61
|
+
The following example illustrates a list with a single item using all supported slots.
|
|
62
|
+
|
|
63
|
+
> Note: This example uses the `@m3e/icon` package to present Material Design symbols, but any icon package can be substituted depending on your design system or preferences
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<m3e-list>
|
|
67
|
+
<m3e-list-item>
|
|
68
|
+
<m3e-icon slot="leading-icon" name="person"></m3e-icon>
|
|
69
|
+
<span slot="overline">Overline</span>
|
|
70
|
+
Headline
|
|
71
|
+
<span slot="supporting-text">Supporting text</span>
|
|
72
|
+
<span slot="trailing-supporting-text">100+</span>
|
|
73
|
+
<m3e-icon slot="trailing-icon" name="arrow_right"></m3e-icon>
|
|
74
|
+
</m3e-list-item>
|
|
75
|
+
</m3e-list>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## ๐ API Reference
|
|
79
|
+
|
|
80
|
+
### ๐๏ธ m3e-list
|
|
81
|
+
|
|
82
|
+
This section details the slots and CSS custom properties available for the `m3e-list` component.
|
|
83
|
+
|
|
84
|
+
#### ๐งฉ Slots
|
|
85
|
+
|
|
86
|
+
| Slot | Description |
|
|
87
|
+
| ----------- | ------------------------------ |
|
|
88
|
+
| _(default)_ | Renders the items of the list. |
|
|
89
|
+
|
|
90
|
+
#### ๐๏ธ CSS Custom Properties
|
|
91
|
+
|
|
92
|
+
| Property | Description |
|
|
93
|
+
| ------------------------------------- | ------------------------------ |
|
|
94
|
+
| `--m3e-list-block-padding` | Vertical padding for the list. |
|
|
95
|
+
| `--m3e-list-divider-inset-start-size` | Start inset for dividers. |
|
|
96
|
+
| `--m3e-list-divider-inset-end-size` | End inset for dividers. |
|
|
97
|
+
|
|
98
|
+
### ๐๏ธ m3e-list-item
|
|
99
|
+
|
|
100
|
+
This section details the slots and CSS custom properties available for the `m3e-list-item` component.
|
|
101
|
+
|
|
102
|
+
#### ๐งฉ Slots
|
|
103
|
+
|
|
104
|
+
| Slot | Description |
|
|
105
|
+
| -------------------------- | ------------------------------------- |
|
|
106
|
+
| _(default)_ | Renders the content of the list item. |
|
|
107
|
+
| `leading-icon` | Renders the leading icon. |
|
|
108
|
+
| `overline` | Renders the overline. |
|
|
109
|
+
| `supporting-text` | Renders the supporting text. |
|
|
110
|
+
| `trailing-supporting-text` | Renders the trailing supporting text. |
|
|
111
|
+
| `trailing-icon` | Renders the trailing icon. |
|
|
112
|
+
|
|
113
|
+
#### ๐๏ธ CSS Custom Properties
|
|
114
|
+
|
|
115
|
+
| Property | Description |
|
|
116
|
+
| ------------------------------------------------------ | ------------------------------------------------- |
|
|
117
|
+
| `--m3e-list-item-spacing` | Horizontal gap between elements. |
|
|
118
|
+
| `--m3e-list-item-padding-inline` | Horizontal padding for the list item. |
|
|
119
|
+
| `--m3e-list-item-padding-block` | Vertical padding for the list item. |
|
|
120
|
+
| `--m3e-list-item-height` | Minimum height of the list item. |
|
|
121
|
+
| `--m3e-list-item-font-size` | Font size for main content. |
|
|
122
|
+
| `--m3e-list-item-font-weight` | Font weight for main content. |
|
|
123
|
+
| `--m3e-list-item-line-height` | Line height for main content. |
|
|
124
|
+
| `--m3e-list-item-tracking` | Letter spacing for main content. |
|
|
125
|
+
| `--m3e-list-item-overline-font-size` | Font size for overline slot. |
|
|
126
|
+
| `--m3e-list-item-overline-font-weight` | Font weight for overline slot. |
|
|
127
|
+
| `--m3e-list-item-overline-line-height` | Line height for overline slot. |
|
|
128
|
+
| `--m3e-list-item-overline-tracking` | Letter spacing for overline slot. |
|
|
129
|
+
| `--m3e-list-item-supporting-text-font-size` | Font size for supporting text slot. |
|
|
130
|
+
| `--m3e-list-item-supporting-text-font-weight` | Font weight for supporting text slot. |
|
|
131
|
+
| `--m3e-list-item-supporting-text-line-height` | Line height for supporting text slot. |
|
|
132
|
+
| `--m3e-list-item-supporting-text-tracking` | Letter spacing for supporting text slot. |
|
|
133
|
+
| `--m3e-list-item-trailing-supporting-text-font-size` | Font size for trailing supporting text slot. |
|
|
134
|
+
| `--m3e-list-item-trailing-supporting-text-font-weight` | Font weight for trailing supporting text slot. |
|
|
135
|
+
| `--m3e-list-item-trailing-supporting-text-line-height` | Line height for trailing supporting text slot. |
|
|
136
|
+
| `--m3e-list-item-trailing-supporting-text-tracking` | Letter spacing for trailing supporting text slot. |
|
|
137
|
+
| `--m3e-list-item-icon-size` | Size for leading/trailing icons. |
|
|
138
|
+
|
|
139
|
+
## ๐ค Contributing
|
|
140
|
+
|
|
141
|
+
See the root monorepo `CONTRIBUTING.md` for guidelines on contributing to this package.
|
|
142
|
+
|
|
143
|
+
## ๐ License
|
|
144
|
+
|
|
145
|
+
This package is licensed under the MIT License.
|
package/cem.config.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { customElementVsCodePlugin } from "custom-element-vs-code-integration";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
globs: ["src/**/*.ts"],
|
|
5
|
+
exclude: ["src/**/*.spec.ts"],
|
|
6
|
+
packagejson: true,
|
|
7
|
+
outdir: "dist",
|
|
8
|
+
litelement: true,
|
|
9
|
+
plugins: [
|
|
10
|
+
customElementVsCodePlugin({
|
|
11
|
+
outdir: "dist",
|
|
12
|
+
htmlFileName: "html-custom-data.json",
|
|
13
|
+
cssFileName: "css-custom-data.json",
|
|
14
|
+
}),
|
|
15
|
+
],
|
|
16
|
+
};
|
package/demo/index.html
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" style="overflow-y: auto">
|
|
3
|
+
<head>
|
|
4
|
+
<title>List for M3E</title>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<meta name="description" content="List for M3E" />
|
|
8
|
+
<base href="./" />
|
|
9
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
10
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
11
|
+
<link
|
|
12
|
+
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"
|
|
13
|
+
rel="stylesheet"
|
|
14
|
+
/>
|
|
15
|
+
<link
|
|
16
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0..1,0"
|
|
17
|
+
rel="stylesheet"
|
|
18
|
+
/>
|
|
19
|
+
<script type="importmap">
|
|
20
|
+
{
|
|
21
|
+
"imports": {
|
|
22
|
+
"lit": "https://cdn.jsdelivr.net/npm/lit@3.3.0/+esm",
|
|
23
|
+
"@m3e/core": "../../core/dist/index.min.js"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
</script>
|
|
27
|
+
<script type="module" src="../../icon/dist/index.min.js"></script>
|
|
28
|
+
<script type="module" src="../../theme/dist/index.min.js"></script>
|
|
29
|
+
<script type="module" src="../dist/index.min.js"></script>
|
|
30
|
+
<style>
|
|
31
|
+
body {
|
|
32
|
+
font-family: "Roboto";
|
|
33
|
+
}
|
|
34
|
+
*:not(:defined) {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
</style>
|
|
38
|
+
</head>
|
|
39
|
+
<body>
|
|
40
|
+
<m3e-theme strong-focus>
|
|
41
|
+
<m3e-list>
|
|
42
|
+
<m3e-list-item>
|
|
43
|
+
<m3e-icon slot="leading-icon" name="person"></m3e-icon>
|
|
44
|
+
<span slot="overline">Overline</span>
|
|
45
|
+
Headline
|
|
46
|
+
<span slot="supporting-text">Supporting text</span>
|
|
47
|
+
<span slot="trailing-supporting-text">100+</span>
|
|
48
|
+
<m3e-icon slot="trailing-icon" name="arrow_right"></m3e-icon>
|
|
49
|
+
</m3e-list-item>
|
|
50
|
+
</m3e-list>
|
|
51
|
+
</m3e-theme>
|
|
52
|
+
</body>
|
|
53
|
+
</html>
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
|
|
3
|
+
"version": 1.1,
|
|
4
|
+
"properties": [
|
|
5
|
+
{
|
|
6
|
+
"name": "--m3e-list-block-padding",
|
|
7
|
+
"description": "Vertical padding for the list container.",
|
|
8
|
+
"values": []
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "--m3e-list-divider-inset-start-size",
|
|
12
|
+
"description": "Start inset for dividers within the list.",
|
|
13
|
+
"values": []
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "--m3e-list-divider-inset-end-size",
|
|
17
|
+
"description": "End inset for dividers within the list.",
|
|
18
|
+
"values": []
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "--m3e-list-item-spacing",
|
|
22
|
+
"description": "Horizontal gap between elements.",
|
|
23
|
+
"values": []
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "--m3e-list-item-padding-inline",
|
|
27
|
+
"description": "Horizontal padding for the list item.",
|
|
28
|
+
"values": []
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "--m3e-list-item-padding-block",
|
|
32
|
+
"description": "Vertical padding for the list item.",
|
|
33
|
+
"values": []
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "--m3e-list-item-height",
|
|
37
|
+
"description": "Minimum height of the list item.",
|
|
38
|
+
"values": []
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "--m3e-list-item-font-size",
|
|
42
|
+
"description": "Font size for main content.",
|
|
43
|
+
"values": []
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "--m3e-list-item-font-weight",
|
|
47
|
+
"description": "Font weight for main content.",
|
|
48
|
+
"values": []
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "--m3e-list-item-line-height",
|
|
52
|
+
"description": "Line height for main content.",
|
|
53
|
+
"values": []
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "--m3e-list-item-tracking",
|
|
57
|
+
"description": "Letter spacing for main content.",
|
|
58
|
+
"values": []
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "--m3e-list-item-overline-font-size",
|
|
62
|
+
"description": "Font size for overline slot.",
|
|
63
|
+
"values": []
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "--m3e-list-item-overline-font-weight",
|
|
67
|
+
"description": "Font weight for overline slot.",
|
|
68
|
+
"values": []
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "--m3e-list-item-overline-line-height",
|
|
72
|
+
"description": "Line height for overline slot.",
|
|
73
|
+
"values": []
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "--m3e-list-item-overline-tracking",
|
|
77
|
+
"description": "Letter spacing for overline slot.",
|
|
78
|
+
"values": []
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "--m3e-list-item-supporting-text-font-size",
|
|
82
|
+
"description": "Font size for supporting text slot.",
|
|
83
|
+
"values": []
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "--m3e-list-item-supporting-text-font-weight",
|
|
87
|
+
"description": "Font weight for supporting text slot.",
|
|
88
|
+
"values": []
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "--m3e-list-item-supporting-text-line-height",
|
|
92
|
+
"description": "Line height for supporting text slot.",
|
|
93
|
+
"values": []
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "--m3e-list-item-supporting-text-tracking",
|
|
97
|
+
"description": "Letter spacing for supporting text slot.",
|
|
98
|
+
"values": []
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "--m3e-list-item-trailing-supporting-text-font-size",
|
|
102
|
+
"description": "Font size for trailing supporting text slot.",
|
|
103
|
+
"values": []
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "--m3e-list-item-trailing-supporting-text-font-weight",
|
|
107
|
+
"description": "Font weight for trailing supporting text slot.",
|
|
108
|
+
"values": []
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "--m3e-list-item-trailing-supporting-text-line-height",
|
|
112
|
+
"description": "Line height for trailing supporting text slot.",
|
|
113
|
+
"values": []
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "--m3e-list-item-trailing-supporting-text-tracking",
|
|
117
|
+
"description": "Letter spacing for trailing supporting text slot.",
|
|
118
|
+
"values": []
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "--m3e-list-item-icon-size",
|
|
122
|
+
"description": "Size for leading/trailing icons.",
|
|
123
|
+
"values": []
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"pseudoElements": []
|
|
127
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/index.ts",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "js",
|
|
12
|
+
"name": "*",
|
|
13
|
+
"declaration": {
|
|
14
|
+
"name": "*",
|
|
15
|
+
"package": "\"./ListElement\""
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"kind": "js",
|
|
20
|
+
"name": "*",
|
|
21
|
+
"declaration": {
|
|
22
|
+
"name": "*",
|
|
23
|
+
"package": "\"./ListItemElement\""
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"kind": "javascript-module",
|
|
30
|
+
"path": "src/ListElement.ts",
|
|
31
|
+
"declarations": [
|
|
32
|
+
{
|
|
33
|
+
"kind": "class",
|
|
34
|
+
"description": "",
|
|
35
|
+
"name": "M3eListElement",
|
|
36
|
+
"cssProperties": [
|
|
37
|
+
{
|
|
38
|
+
"description": "Vertical padding for the list container.",
|
|
39
|
+
"name": "--m3e-list-block-padding"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"description": "Start inset for dividers within the list.",
|
|
43
|
+
"name": "--m3e-list-divider-inset-start-size"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"description": "End inset for dividers within the list.",
|
|
47
|
+
"name": "--m3e-list-divider-inset-end-size"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"slots": [
|
|
51
|
+
{
|
|
52
|
+
"description": "Renders the items of the list.",
|
|
53
|
+
"name": ""
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"members": [],
|
|
57
|
+
"mixins": [
|
|
58
|
+
{
|
|
59
|
+
"name": "Role",
|
|
60
|
+
"package": "@m3e/core"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"superclass": {
|
|
64
|
+
"name": "LitElement",
|
|
65
|
+
"package": "lit"
|
|
66
|
+
},
|
|
67
|
+
"tagName": "m3e-list",
|
|
68
|
+
"customElement": true,
|
|
69
|
+
"summary": "A list of items."
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"exports": [
|
|
73
|
+
{
|
|
74
|
+
"kind": "js",
|
|
75
|
+
"name": "M3eListElement",
|
|
76
|
+
"declaration": {
|
|
77
|
+
"name": "M3eListElement",
|
|
78
|
+
"module": "src/ListElement.ts"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"kind": "custom-element-definition",
|
|
83
|
+
"name": "m3e-list",
|
|
84
|
+
"declaration": {
|
|
85
|
+
"name": "M3eListElement",
|
|
86
|
+
"module": "src/ListElement.ts"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"kind": "javascript-module",
|
|
93
|
+
"path": "src/ListItemElement.ts",
|
|
94
|
+
"declarations": [
|
|
95
|
+
{
|
|
96
|
+
"kind": "class",
|
|
97
|
+
"description": "",
|
|
98
|
+
"name": "M3eListItemElement",
|
|
99
|
+
"cssProperties": [
|
|
100
|
+
{
|
|
101
|
+
"description": "Horizontal gap between elements.",
|
|
102
|
+
"name": "--m3e-list-item-spacing"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"description": "Horizontal padding for the list item.",
|
|
106
|
+
"name": "--m3e-list-item-padding-inline"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"description": "Vertical padding for the list item.",
|
|
110
|
+
"name": "--m3e-list-item-padding-block"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"description": "Minimum height of the list item.",
|
|
114
|
+
"name": "--m3e-list-item-height"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"description": "Font size for main content.",
|
|
118
|
+
"name": "--m3e-list-item-font-size"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"description": "Font weight for main content.",
|
|
122
|
+
"name": "--m3e-list-item-font-weight"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"description": "Line height for main content.",
|
|
126
|
+
"name": "--m3e-list-item-line-height"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"description": "Letter spacing for main content.",
|
|
130
|
+
"name": "--m3e-list-item-tracking"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"description": "Font size for overline slot.",
|
|
134
|
+
"name": "--m3e-list-item-overline-font-size"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"description": "Font weight for overline slot.",
|
|
138
|
+
"name": "--m3e-list-item-overline-font-weight"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"description": "Line height for overline slot.",
|
|
142
|
+
"name": "--m3e-list-item-overline-line-height"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"description": "Letter spacing for overline slot.",
|
|
146
|
+
"name": "--m3e-list-item-overline-tracking"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"description": "Font size for supporting text slot.",
|
|
150
|
+
"name": "--m3e-list-item-supporting-text-font-size"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"description": "Font weight for supporting text slot.",
|
|
154
|
+
"name": "--m3e-list-item-supporting-text-font-weight"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"description": "Line height for supporting text slot.",
|
|
158
|
+
"name": "--m3e-list-item-supporting-text-line-height"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"description": "Letter spacing for supporting text slot.",
|
|
162
|
+
"name": "--m3e-list-item-supporting-text-tracking"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"description": "Font size for trailing supporting text slot.",
|
|
166
|
+
"name": "--m3e-list-item-trailing-supporting-text-font-size"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"description": "Font weight for trailing supporting text slot.",
|
|
170
|
+
"name": "--m3e-list-item-trailing-supporting-text-font-weight"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"description": "Line height for trailing supporting text slot.",
|
|
174
|
+
"name": "--m3e-list-item-trailing-supporting-text-line-height"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"description": "Letter spacing for trailing supporting text slot.",
|
|
178
|
+
"name": "--m3e-list-item-trailing-supporting-text-tracking"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"description": "Size for leading/trailing icons.",
|
|
182
|
+
"name": "--m3e-list-item-icon-size"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"slots": [
|
|
186
|
+
{
|
|
187
|
+
"description": "Renders the content of the list item.",
|
|
188
|
+
"name": ""
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"description": "Renders the leading icon of the list item.",
|
|
192
|
+
"name": "leading-icon"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"description": "Renders the overline of the list item.",
|
|
196
|
+
"name": "overline"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"description": "Renders the supporting text of the list item.",
|
|
200
|
+
"name": "supporting-text"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"description": "Renders the trailing supporting text of the list item.",
|
|
204
|
+
"name": "trailing-supporting-text"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"description": "Renders the trailing icon of the list item.",
|
|
208
|
+
"name": "trailing-icon"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"members": [],
|
|
212
|
+
"mixins": [
|
|
213
|
+
{
|
|
214
|
+
"name": "Role",
|
|
215
|
+
"package": "@m3e/core"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"superclass": {
|
|
219
|
+
"name": "LitElement",
|
|
220
|
+
"package": "lit"
|
|
221
|
+
},
|
|
222
|
+
"tagName": "m3e-list-item",
|
|
223
|
+
"customElement": true,
|
|
224
|
+
"summary": "An item in a list."
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"exports": [
|
|
228
|
+
{
|
|
229
|
+
"kind": "js",
|
|
230
|
+
"name": "M3eListItemElement",
|
|
231
|
+
"declaration": {
|
|
232
|
+
"name": "M3eListItemElement",
|
|
233
|
+
"module": "src/ListItemElement.ts"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"kind": "custom-element-definition",
|
|
238
|
+
"name": "m3e-list-item",
|
|
239
|
+
"declaration": {
|
|
240
|
+
"name": "M3eListItemElement",
|
|
241
|
+
"module": "src/ListItemElement.ts"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
|
|
3
|
+
"version": 1.1,
|
|
4
|
+
"tags": [
|
|
5
|
+
{
|
|
6
|
+
"name": "m3e-list",
|
|
7
|
+
"description": "A list of items.\n---\n\n\n### **Slots:**\n - _default_ - Renders the items of the list.\n\n### **CSS Properties:**\n - **--m3e-list-block-padding** - Vertical padding for the list container. _(default: undefined)_\n- **--m3e-list-divider-inset-start-size** - Start inset for dividers within the list. _(default: undefined)_\n- **--m3e-list-divider-inset-end-size** - End inset for dividers within the list. _(default: undefined)_",
|
|
8
|
+
"attributes": [],
|
|
9
|
+
"references": []
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "m3e-list-item",
|
|
13
|
+
"description": "An item in a list.\n---\n\n\n### **Slots:**\n - _default_ - Renders the content of the list item.\n- **leading-icon** - Renders the leading icon of the list item.\n- **overline** - Renders the overline of the list item.\n- **supporting-text** - Renders the supporting text of the list item.\n- **trailing-supporting-text** - Renders the trailing supporting text of the list item.\n- **trailing-icon** - Renders the trailing icon of the list item.\n\n### **CSS Properties:**\n - **--m3e-list-item-spacing** - Horizontal gap between elements. _(default: undefined)_\n- **--m3e-list-item-padding-inline** - Horizontal padding for the list item. _(default: undefined)_\n- **--m3e-list-item-padding-block** - Vertical padding for the list item. _(default: undefined)_\n- **--m3e-list-item-height** - Minimum height of the list item. _(default: undefined)_\n- **--m3e-list-item-font-size** - Font size for main content. _(default: undefined)_\n- **--m3e-list-item-font-weight** - Font weight for main content. _(default: undefined)_\n- **--m3e-list-item-line-height** - Line height for main content. _(default: undefined)_\n- **--m3e-list-item-tracking** - Letter spacing for main content. _(default: undefined)_\n- **--m3e-list-item-overline-font-size** - Font size for overline slot. _(default: undefined)_\n- **--m3e-list-item-overline-font-weight** - Font weight for overline slot. _(default: undefined)_\n- **--m3e-list-item-overline-line-height** - Line height for overline slot. _(default: undefined)_\n- **--m3e-list-item-overline-tracking** - Letter spacing for overline slot. _(default: undefined)_\n- **--m3e-list-item-supporting-text-font-size** - Font size for supporting text slot. _(default: undefined)_\n- **--m3e-list-item-supporting-text-font-weight** - Font weight for supporting text slot. _(default: undefined)_\n- **--m3e-list-item-supporting-text-line-height** - Line height for supporting text slot. _(default: undefined)_\n- **--m3e-list-item-supporting-text-tracking** - Letter spacing for supporting text slot. _(default: undefined)_\n- **--m3e-list-item-trailing-supporting-text-font-size** - Font size for trailing supporting text slot. _(default: undefined)_\n- **--m3e-list-item-trailing-supporting-text-font-weight** - Font weight for trailing supporting text slot. _(default: undefined)_\n- **--m3e-list-item-trailing-supporting-text-line-height** - Line height for trailing supporting text slot. _(default: undefined)_\n- **--m3e-list-item-trailing-supporting-text-tracking** - Letter spacing for trailing supporting text slot. _(default: undefined)_\n- **--m3e-list-item-icon-size** - Size for leading/trailing icons. _(default: undefined)_",
|
|
14
|
+
"attributes": [],
|
|
15
|
+
"references": []
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|