@m3e/list 1.0.0-rc.2 → 1.0.0-rc.3
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/dist/custom-elements.json +11 -19
- package/dist/src/ListElement.d.ts +50 -0
- package/dist/src/ListElement.d.ts.map +1 -0
- package/dist/src/ListItemElement.d.ts +74 -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/package.json +2 -2
|
@@ -1095,25 +1095,6 @@
|
|
|
1095
1095
|
"kind": "mixin",
|
|
1096
1096
|
"description": "Mixin that adds support for custom event attributes.",
|
|
1097
1097
|
"name": "EventAttribute",
|
|
1098
|
-
"members": [
|
|
1099
|
-
{
|
|
1100
|
-
"kind": "method",
|
|
1101
|
-
"name": "dispatchEvent",
|
|
1102
|
-
"return": {
|
|
1103
|
-
"type": {
|
|
1104
|
-
"text": "boolean"
|
|
1105
|
-
}
|
|
1106
|
-
},
|
|
1107
|
-
"parameters": [
|
|
1108
|
-
{
|
|
1109
|
-
"name": "event",
|
|
1110
|
-
"type": {
|
|
1111
|
-
"text": "Event"
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
]
|
|
1115
|
-
}
|
|
1116
|
-
],
|
|
1117
1098
|
"parameters": [
|
|
1118
1099
|
{
|
|
1119
1100
|
"name": "base",
|
|
@@ -1411,6 +1392,17 @@
|
|
|
1411
1392
|
"description": "Mixin to augment an element with behavior used to submit a form.",
|
|
1412
1393
|
"name": "FormSubmitter",
|
|
1413
1394
|
"members": [
|
|
1395
|
+
{
|
|
1396
|
+
"kind": "field",
|
|
1397
|
+
"name": "formAssociated",
|
|
1398
|
+
"type": {
|
|
1399
|
+
"text": "boolean"
|
|
1400
|
+
},
|
|
1401
|
+
"static": true,
|
|
1402
|
+
"readonly": true,
|
|
1403
|
+
"default": "true",
|
|
1404
|
+
"description": "Indicates that this custom element participates in form submission, validation, and form state restoration."
|
|
1405
|
+
},
|
|
1414
1406
|
{
|
|
1415
1407
|
"kind": "field",
|
|
1416
1408
|
"name": "name",
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
declare const M3eListElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* A list of items.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The `m3e-list` component provides a list container for organizing and displaying
|
|
8
|
+
* multiple list items. It supports flexible layout, custom padding, and divider insets
|
|
9
|
+
* via CSS custom properties.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* The following example illustrates a list with a single item using all supported slots.
|
|
13
|
+
*
|
|
14
|
+
* Note: This example uses the `@m3e/icon` package to present Material Design symbols, but any icon package can be
|
|
15
|
+
* substituted depending on your design system or preferences
|
|
16
|
+
*
|
|
17
|
+
* ```html
|
|
18
|
+
* <m3e-list>
|
|
19
|
+
* <m3e-list-item>
|
|
20
|
+
* <m3e-icon slot="leading-icon" name="person"></m3e-icon>
|
|
21
|
+
* <span slot="overline">Overline</span>
|
|
22
|
+
* Headline
|
|
23
|
+
* <span slot="supporting-text">Supporting text</span>
|
|
24
|
+
* <span slot="trailing-supporting-text">100+</span>
|
|
25
|
+
* <m3e-icon slot="trailing-icon" name="arrow_right"></m3e-icon>
|
|
26
|
+
* </m3e-list-item>
|
|
27
|
+
* </m3e-list>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @tag m3e-list
|
|
31
|
+
*
|
|
32
|
+
* @slot - Renders the items of the list.
|
|
33
|
+
*
|
|
34
|
+
* @cssprop --m3e-list-block-padding - Vertical padding for the list container.
|
|
35
|
+
* @cssprop --m3e-list-divider-inset-start-size - Start inset for dividers within the list.
|
|
36
|
+
* @cssprop --m3e-list-divider-inset-end-size - End inset for dividers within the list.
|
|
37
|
+
*/
|
|
38
|
+
export declare class M3eListElement extends M3eListElement_base {
|
|
39
|
+
/** The styles of the element. */
|
|
40
|
+
static styles: CSSResultGroup;
|
|
41
|
+
/** @inheritdoc */
|
|
42
|
+
protected render(): unknown;
|
|
43
|
+
}
|
|
44
|
+
declare global {
|
|
45
|
+
interface HTMLElementTagNameMap {
|
|
46
|
+
"m3e-list": M3eListElement;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=ListElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListElement.d.ts","sourceRoot":"","sources":["../../src/ListElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AAK5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBACa,cAAe,SAAQ,mBAAwB;IAC1D,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAQpC;IAEF,kBAAkB;cACC,MAAM,IAAI,OAAO;CAGrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,cAAc,CAAC;KAC5B;CACF"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
declare const M3eListItemElement_base: import("node_modules/@m3e/core/dist/src/shared/mixins/Constructor").Constructor & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* An item in a list.
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* The `m3e-list-item` component represents a single item within a list. It supports rich
|
|
8
|
+
* content, leading/trailing icons, overline, supporting text, and trailing supporting text
|
|
9
|
+
* via named slots. The component is highly customizable through CSS custom properties and
|
|
10
|
+
* is designed for accessibility and flexible layout.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* The following example illustrates a list with a single item using all supported slots.
|
|
14
|
+
*
|
|
15
|
+
* Note: This example uses the `@m3e/icon` package to present Material Design symbols, but any icon package can be
|
|
16
|
+
* substituted depending on your design system or preferences
|
|
17
|
+
*
|
|
18
|
+
* ```html
|
|
19
|
+
* <m3e-list>
|
|
20
|
+
* <m3e-list-item>
|
|
21
|
+
* <m3e-icon slot="leading-icon" name="person"></m3e-icon>
|
|
22
|
+
* <span slot="overline">Overline</span>
|
|
23
|
+
* Headline
|
|
24
|
+
* <span slot="supporting-text">Supporting text</span>
|
|
25
|
+
* <span slot="trailing-supporting-text">100+</span>
|
|
26
|
+
* <m3e-icon slot="trailing-icon" name="arrow_right"></m3e-icon>
|
|
27
|
+
* </m3e-list-item>
|
|
28
|
+
* </m3e-list>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @tag m3e-list-item
|
|
32
|
+
*
|
|
33
|
+
* @slot - Renders the content of the list item.
|
|
34
|
+
* @slot leading-icon - Renders the leading icon of the list item.
|
|
35
|
+
* @slot overline - Renders the overline of the list item.
|
|
36
|
+
* @slot supporting-text - Renders the supporting text of the list item.
|
|
37
|
+
* @slot trailing-supporting-text - Renders the trailing supporting text of the list item.
|
|
38
|
+
* @slot trailing-icon - Renders the trailing icon of the list item.
|
|
39
|
+
*
|
|
40
|
+
* @cssprop --m3e-list-item-spacing - Horizontal gap between elements.
|
|
41
|
+
* @cssprop --m3e-list-item-padding-inline - Horizontal padding for the list item.
|
|
42
|
+
* @cssprop --m3e-list-item-padding-block - Vertical padding for the list item.
|
|
43
|
+
* @cssprop --m3e-list-item-height - Minimum height of the list item.
|
|
44
|
+
* @cssprop --m3e-list-item-font-size - Font size for main content.
|
|
45
|
+
* @cssprop --m3e-list-item-font-weight - Font weight for main content.
|
|
46
|
+
* @cssprop --m3e-list-item-line-height - Line height for main content.
|
|
47
|
+
* @cssprop --m3e-list-item-tracking - Letter spacing for main content.
|
|
48
|
+
* @cssprop --m3e-list-item-overline-font-size - Font size for overline slot.
|
|
49
|
+
* @cssprop --m3e-list-item-overline-font-weight - Font weight for overline slot.
|
|
50
|
+
* @cssprop --m3e-list-item-overline-line-height - Line height for overline slot.
|
|
51
|
+
* @cssprop --m3e-list-item-overline-tracking - Letter spacing for overline slot.
|
|
52
|
+
* @cssprop --m3e-list-item-supporting-text-font-size - Font size for supporting text slot.
|
|
53
|
+
* @cssprop --m3e-list-item-supporting-text-font-weight - Font weight for supporting text slot.
|
|
54
|
+
* @cssprop --m3e-list-item-supporting-text-line-height - Line height for supporting text slot.
|
|
55
|
+
* @cssprop --m3e-list-item-supporting-text-tracking - Letter spacing for supporting text slot.
|
|
56
|
+
* @cssprop --m3e-list-item-trailing-supporting-text-font-size - Font size for trailing supporting text slot.
|
|
57
|
+
* @cssprop --m3e-list-item-trailing-supporting-text-font-weight - Font weight for trailing supporting text slot.
|
|
58
|
+
* @cssprop --m3e-list-item-trailing-supporting-text-line-height - Line height for trailing supporting text slot.
|
|
59
|
+
* @cssprop --m3e-list-item-trailing-supporting-text-tracking - Letter spacing for trailing supporting text slot.
|
|
60
|
+
* @cssprop --m3e-list-item-icon-size - Size for leading/trailing icons.
|
|
61
|
+
*/
|
|
62
|
+
export declare class M3eListItemElement extends M3eListItemElement_base {
|
|
63
|
+
/** The styles of the element. */
|
|
64
|
+
static styles: CSSResultGroup;
|
|
65
|
+
/** @inheritdoc */
|
|
66
|
+
protected render(): unknown;
|
|
67
|
+
}
|
|
68
|
+
declare global {
|
|
69
|
+
interface HTMLElementTagNameMap {
|
|
70
|
+
"m3e-list-item": M3eListItemElement;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=ListItemElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemElement.d.ts","sourceRoot":"","sources":["../../src/ListItemElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;;AAK5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,qBACa,kBAAmB,SAAQ,uBAA4B;IAClE,iCAAiC;IACjC,OAAgB,MAAM,EAAE,cAAc,CAoEpC;IAEF,kBAAkB;cACC,MAAM,IAAI,OAAO;CAUrC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,kBAAkB,CAAC;KACrC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m3e/list",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.3",
|
|
4
4
|
"description": "List for M3E",
|
|
5
5
|
"author": "matraic <matraic@yahoo.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"clean": "rimraf dist"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@m3e/core": "1.0.0-rc.
|
|
30
|
+
"@m3e/core": "1.0.0-rc.3",
|
|
31
31
|
"lit": "^3.3.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|