@m3e/list 1.0.0-rc.2 → 1.0.0-rc.4

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 CHANGED
@@ -27,7 +27,7 @@ Alternately, you can explicitly reference the `html-custom-data.json` and `css-c
27
27
  }
28
28
  ```
29
29
 
30
- ## 🚀 Browser Usage
30
+ ## 🚀 Native Module Support
31
31
 
32
32
  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.
33
33
 
@@ -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",
@@ -1947,6 +1939,11 @@
1947
1939
  "kind": "javascript-module",
1948
1940
  "path": "../core/src/shared/mixins/Labelled.ts",
1949
1941
  "declarations": [
1942
+ {
1943
+ "kind": "variable",
1944
+ "name": "updateLabels",
1945
+ "description": "A symbol through which to update labels to reflect a control's current state."
1946
+ },
1950
1947
  {
1951
1948
  "kind": "function",
1952
1949
  "name": "isLabelledMixin",
@@ -1996,16 +1993,6 @@
1996
1993
  },
1997
1994
  "description": "The label elements that the element is associated with.",
1998
1995
  "readonly": true
1999
- },
2000
- {
2001
- "kind": "method",
2002
- "name": "[_updateLabels]",
2003
- "privacy": "private",
2004
- "return": {
2005
- "type": {
2006
- "text": "void"
2007
- }
2008
- }
2009
1996
  }
2010
1997
  ],
2011
1998
  "parameters": [
@@ -2020,6 +2007,14 @@
2020
2007
  }
2021
2008
  ],
2022
2009
  "exports": [
2010
+ {
2011
+ "kind": "js",
2012
+ "name": "updateLabels",
2013
+ "declaration": {
2014
+ "name": "updateLabels",
2015
+ "module": "../core/src/shared/mixins/Labelled.ts"
2016
+ }
2017
+ },
2023
2018
  {
2024
2019
  "kind": "js",
2025
2020
  "name": "isLabelledMixin",
@@ -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,3 @@
1
+ export * from "./ListElement";
2
+ export * from "./ListItemElement";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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.2",
3
+ "version": "1.0.0-rc.4",
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.2",
30
+ "@m3e/core": "1.0.0-rc.4",
31
31
  "lit": "^3.3.0"
32
32
  },
33
33
  "devDependencies": {