@m3e/button-group 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 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,132 @@
1
+ # @m3e/button-group
2
+
3
+ The `m3e-button-group` component arranges multiple into a unified, expressive layout, supporting both `standard` and `connected` variants. It enables seamless, accessible grouping of actions, adapts to various sizes, and ensures consistent spacing, shape, and alignment. Designed according to Material 3 principles, it empowers users to interact with related actions in a visually harmonious and intuitive way.
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/button-group
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/button-group`, 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/button-group/dist/html-custom-data.json"],
27
+ "css.customData": ["./node_modules/@m3e/button-group/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/button-group/dist/index.js"></script>
37
+ ```
38
+
39
+ You also need a module script for `@m3e/button` and `@m3e/icon-button` due to being a dependency.
40
+
41
+ ```html
42
+ <script type="module" src="/node_modules/@m3e/button/dist/index.js"></script>
43
+ <script type="module" src="/node_modules/@m3e/icon-button/dist/index.js"></script>
44
+ ```
45
+
46
+ In addition, you must use an [import map](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap) to include additional dependencies.
47
+
48
+ ```html
49
+ <script type="importmap">
50
+ {
51
+ "imports": {
52
+ "lit": "https://cdn.jsdelivr.net/npm/lit@3.3.0/+esm",
53
+ "@m3e/core": "/node_modules/@m3e/core/dist/index.js"
54
+ }
55
+ }
56
+ </script>
57
+ ```
58
+
59
+ > For production, use index.min.js for faster load times.
60
+
61
+ ## ๐Ÿ—‚๏ธ Elements
62
+
63
+ - `m3e-button-group` โ€” Organizes buttons and adds interactions between them.
64
+
65
+ ## ๐Ÿงช Examples
66
+
67
+ The following example illustrates a standard button group.
68
+
69
+ ```html
70
+ <m3e-button-group>
71
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="format_bold"></m3e-icon></m3e-icon-button>
72
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="format_italic"></m3e-icon></m3e-icon-button>
73
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="format_underlined"></m3e-icon></m3e-icon-button>
74
+ </m3e-button-group>
75
+ ```
76
+
77
+ The next example illustrates a connected button group.
78
+
79
+ ```html
80
+ <m3e-button-group variant="connected">
81
+ <m3e-button variant="tonal" shape="square" toggle>Start</m3e-button>
82
+ <m3e-button variant="tonal" shape="square" toggle>Directions</m3e-button>
83
+ <m3e-button variant="tonal" shape="square" toggle>Share</m3e-button>
84
+ </m3e-button-group>
85
+ ```
86
+
87
+ ## ๐Ÿ“– API Reference
88
+
89
+ This section details the attributes, slots, and CSS custom properties available for the `m3e-button-group` component.
90
+
91
+ ### โš™๏ธ Attributes
92
+
93
+ | Attribute | Type | Default | Description |
94
+ | --------- | ------------------------------------------------------------------ | ------------ | ------------------------------------------------ |
95
+ | `multi` | `boolean` | `false` | Whether multiple toggle buttons can be selected. |
96
+ | `size` | `"extra-small" \| "small" \| "medium" \| "large" \| "extra-large"` | `"small"` | The size of the group. |
97
+ | `variant` | `"standard" \| "connected"` | `"standard"` | The appearance variant of the group. |
98
+
99
+ ### ๐Ÿงฉ Slots
100
+
101
+ | Slot | Description |
102
+ | ----------- | --------------------------------- |
103
+ | _(default)_ | Renders the buttons of the group. |
104
+
105
+ ### ๐ŸŽ›๏ธ CSS Custom Properties
106
+
107
+ | Property | Description |
108
+ | -------------------------------------------------------------- | ------------------------------------------------- |
109
+ | `--m3e-standard-button-group-extra-small-spacing` | Spacing between buttons in standard, extra-small. |
110
+ | `--m3e-standard-button-group-small-spacing` | Spacing between buttons in standard, small. |
111
+ | `--m3e-standard-button-group-medium-spacing` | Spacing between buttons in standard, medium. |
112
+ | `--m3e-standard-button-group-large-spacing` | Spacing between buttons in standard, large. |
113
+ | `--m3e-standard-button-group-extra-large-spacing` | Spacing between buttons in standard, extra-large. |
114
+ | `--m3e-connected-button-group-spacing` | Spacing between buttons in connected variant. |
115
+ | `--m3e-connected-button-group-extra-small-inner-shape` | Corner shape for connected, extra-small. |
116
+ | `--m3e-connected-button-group-extra-small-inner-pressed-shape` | Pressed corner shape for connected, extra-small. |
117
+ | `--m3e-connected-button-group-small-inner-shape` | Corner shape for connected, small. |
118
+ | `--m3e-connected-button-group-small-inner-pressed-shape` | Pressed corner shape for connected, small. |
119
+ | `--m3e-connected-button-group-medium-inner-shape` | Corner shape for connected, medium. |
120
+ | `--m3e-connected-button-group-medium-inner-pressed-shape` | Pressed corner shape for connected, medium. |
121
+ | `--m3e-connected-button-group-large-inner-shape` | Corner shape for connected, large. |
122
+ | `--m3e-connected-button-group-large-inner-pressed-shape` | Pressed corner shape for connected, large. |
123
+ | `--m3e-connected-button-group-extra-large-inner-shape` | Corner shape for connected, extra-large. |
124
+ | `--m3e-connected-button-group-extra-large-inner-pressed-shape` | Pressed corner shape for connected, extra-large. |
125
+
126
+ ## ๐Ÿค Contributing
127
+
128
+ See the root monorepo `CONTRIBUTING.md` for guidelines on contributing to this package.
129
+
130
+ ## ๐Ÿ“„ License
131
+
132
+ 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
+ };
@@ -0,0 +1,95 @@
1
+ <!doctype html>
2
+ <html lang="en" style="overflow-y: auto">
3
+ <head>
4
+ <title>Button Group for M3E</title>
5
+ <meta charset="utf-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ <meta name="description" content="Button Group 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="../../button/dist/index.min.js"></script>
29
+ <script type="module" src="../../icon-button/dist/index.min.js"></script>
30
+ <script type="module" src="../../theme/dist/index.min.js"></script>
31
+ <script type="module" src="../dist/index.min.js"></script>
32
+ <style>
33
+ body {
34
+ font-family: "Roboto";
35
+ }
36
+ *:not(:defined) {
37
+ display: none;
38
+ }
39
+ </style>
40
+ </head>
41
+ <body>
42
+ <m3e-theme strong-focus>
43
+ <m3e-button-group variant="connected">
44
+ <m3e-button variant="tonal" toggle>Start</m3e-button>
45
+ <m3e-button variant="tonal" toggle>Directions</m3e-button>
46
+ <m3e-button variant="tonal" toggle>Share</m3e-button>
47
+ </m3e-button-group>
48
+ <br />
49
+ <m3e-button-group variant="connected">
50
+ <m3e-button variant="tonal" shape="square" toggle>Start</m3e-button>
51
+ <m3e-button variant="tonal" shape="square" toggle>Directions</m3e-button>
52
+ <m3e-button variant="tonal" shape="square" toggle>Share</m3e-button>
53
+ </m3e-button-group>
54
+ <br />
55
+ <m3e-button-group>
56
+ <m3e-button variant="tonal" toggle>Start</m3e-button>
57
+ <m3e-button variant="tonal" toggle>Directions</m3e-button>
58
+ <m3e-button variant="tonal" toggle>Directions</m3e-button>
59
+ <m3e-button variant="tonal" disabled>Directions</m3e-button>
60
+ <m3e-button variant="tonal" toggle>Share</m3e-button>
61
+ </m3e-button-group>
62
+
63
+ <br /><br />
64
+ <m3e-button-group>
65
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="format_bold"></m3e-icon></m3e-icon-button>
66
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="format_italic"></m3e-icon></m3e-icon-button>
67
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="format_underlined"></m3e-icon></m3e-icon-button>
68
+ </m3e-button-group>
69
+ <br /><br />
70
+ <m3e-button-group variant="connected">
71
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="format_bold"></m3e-icon></m3e-icon-button>
72
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="format_italic"></m3e-icon></m3e-icon-button>
73
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="format_underlined"></m3e-icon></m3e-icon-button>
74
+ </m3e-button-group>
75
+ <br /><br />
76
+ <m3e-button-group variant="connected">
77
+ <m3e-icon-button variant="tonal" shape="square" toggle>
78
+ <m3e-icon name="format_bold"></m3e-icon>
79
+ </m3e-icon-button>
80
+ <m3e-icon-button variant="tonal" shape="square" toggle>
81
+ <m3e-icon name="format_italic"></m3e-icon>
82
+ </m3e-icon-button>
83
+ <m3e-icon-button variant="tonal" shape="square" toggle>
84
+ <m3e-icon name="format_underlined"></m3e-icon>
85
+ </m3e-icon-button>
86
+ </m3e-button-group>
87
+ <br /><br />
88
+ <m3e-button-group>
89
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="home"></m3e-icon></m3e-icon-button>
90
+ <m3e-button variant="tonal" toggle>Directions</m3e-button>
91
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="home"></m3e-icon></m3e-icon-button>
92
+ </m3e-button-group>
93
+ </m3e-theme>
94
+ </body>
95
+ </html>
@@ -0,0 +1,87 @@
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-standard-button-group-extra-small-spacing",
7
+ "description": "Spacing between buttons in standard variant, extra-small size.",
8
+ "values": []
9
+ },
10
+ {
11
+ "name": "--m3e-standard-button-group-small-spacing",
12
+ "description": "Spacing between buttons in standard variant, small size.",
13
+ "values": []
14
+ },
15
+ {
16
+ "name": "--m3e-standard-button-group-medium-spacing",
17
+ "description": "Spacing between buttons in standard variant, medium size.",
18
+ "values": []
19
+ },
20
+ {
21
+ "name": "--m3e-standard-button-group-large-spacing",
22
+ "description": "Spacing between buttons in standard variant, large size.",
23
+ "values": []
24
+ },
25
+ {
26
+ "name": "--m3e-standard-button-group-extra-large-spacing",
27
+ "description": "Spacing between buttons in standard variant, extra-large size.",
28
+ "values": []
29
+ },
30
+ {
31
+ "name": "--m3e-connected-button-group-spacing",
32
+ "description": "Spacing between buttons in connected variant.",
33
+ "values": []
34
+ },
35
+ {
36
+ "name": "--m3e-connected-button-group-extra-small-inner-shape",
37
+ "description": "Corner shape for connected variant, extra-small size.",
38
+ "values": []
39
+ },
40
+ {
41
+ "name": "--m3e-connected-button-group-extra-small-inner-pressed-shape",
42
+ "description": "Pressed corner shape for connected variant, extra-small size.",
43
+ "values": []
44
+ },
45
+ {
46
+ "name": "--m3e-connected-button-group-small-inner-shape",
47
+ "description": "Corner shape for connected variant, small size.",
48
+ "values": []
49
+ },
50
+ {
51
+ "name": "--m3e-connected-button-group-small-inner-pressed-shape",
52
+ "description": "Pressed corner shape for connected variant, small size.",
53
+ "values": []
54
+ },
55
+ {
56
+ "name": "--m3e-connected-button-group-medium-inner-shape",
57
+ "description": "Corner shape for connected variant, medium size.",
58
+ "values": []
59
+ },
60
+ {
61
+ "name": "--m3e-connected-button-group-medium-inner-pressed-shape",
62
+ "description": "Pressed corner shape for connected variant, medium size.",
63
+ "values": []
64
+ },
65
+ {
66
+ "name": "--m3e-connected-button-group-large-inner-shape",
67
+ "description": "Corner shape for connected variant, large size.",
68
+ "values": []
69
+ },
70
+ {
71
+ "name": "--m3e-connected-button-group-large-inner-pressed-shape",
72
+ "description": "Pressed corner shape for connected variant, large size.",
73
+ "values": []
74
+ },
75
+ {
76
+ "name": "--m3e-connected-button-group-extra-large-inner-shape",
77
+ "description": "Corner shape for connected variant, extra-large size.",
78
+ "values": []
79
+ },
80
+ {
81
+ "name": "--m3e-connected-button-group-extra-large-inner-pressed-shape",
82
+ "description": "Pressed corner shape for connected variant, extra-large size.",
83
+ "values": []
84
+ }
85
+ ],
86
+ "pseudoElements": []
87
+ }
@@ -0,0 +1,279 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/ButtonGroupElement.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "M3eButtonGroupElement",
13
+ "cssProperties": [
14
+ {
15
+ "description": "Spacing between buttons in standard variant, extra-small size.",
16
+ "name": "--m3e-standard-button-group-extra-small-spacing"
17
+ },
18
+ {
19
+ "description": "Spacing between buttons in standard variant, small size.",
20
+ "name": "--m3e-standard-button-group-small-spacing"
21
+ },
22
+ {
23
+ "description": "Spacing between buttons in standard variant, medium size.",
24
+ "name": "--m3e-standard-button-group-medium-spacing"
25
+ },
26
+ {
27
+ "description": "Spacing between buttons in standard variant, large size.",
28
+ "name": "--m3e-standard-button-group-large-spacing"
29
+ },
30
+ {
31
+ "description": "Spacing between buttons in standard variant, extra-large size.",
32
+ "name": "--m3e-standard-button-group-extra-large-spacing"
33
+ },
34
+ {
35
+ "description": "Spacing between buttons in connected variant.",
36
+ "name": "--m3e-connected-button-group-spacing"
37
+ },
38
+ {
39
+ "description": "Corner shape for connected variant, extra-small size.",
40
+ "name": "--m3e-connected-button-group-extra-small-inner-shape"
41
+ },
42
+ {
43
+ "description": "Pressed corner shape for connected variant, extra-small size.",
44
+ "name": "--m3e-connected-button-group-extra-small-inner-pressed-shape"
45
+ },
46
+ {
47
+ "description": "Corner shape for connected variant, small size.",
48
+ "name": "--m3e-connected-button-group-small-inner-shape"
49
+ },
50
+ {
51
+ "description": "Pressed corner shape for connected variant, small size.",
52
+ "name": "--m3e-connected-button-group-small-inner-pressed-shape"
53
+ },
54
+ {
55
+ "description": "Corner shape for connected variant, medium size.",
56
+ "name": "--m3e-connected-button-group-medium-inner-shape"
57
+ },
58
+ {
59
+ "description": "Pressed corner shape for connected variant, medium size.",
60
+ "name": "--m3e-connected-button-group-medium-inner-pressed-shape"
61
+ },
62
+ {
63
+ "description": "Corner shape for connected variant, large size.",
64
+ "name": "--m3e-connected-button-group-large-inner-shape"
65
+ },
66
+ {
67
+ "description": "Pressed corner shape for connected variant, large size.",
68
+ "name": "--m3e-connected-button-group-large-inner-pressed-shape"
69
+ },
70
+ {
71
+ "description": "Corner shape for connected variant, extra-large size.",
72
+ "name": "--m3e-connected-button-group-extra-large-inner-shape"
73
+ },
74
+ {
75
+ "description": "Pressed corner shape for connected variant, extra-large size.",
76
+ "name": "--m3e-connected-button-group-extra-large-inner-pressed-shape"
77
+ }
78
+ ],
79
+ "slots": [
80
+ {
81
+ "description": "Renders the buttons of the group.",
82
+ "name": ""
83
+ }
84
+ ],
85
+ "members": [
86
+ {
87
+ "kind": "field",
88
+ "name": "#pressedController",
89
+ "privacy": "private",
90
+ "readonly": true,
91
+ "default": "new PressedController(this, { target: null, capture: true, isPressedKey: (key) => key === \" \" || key === \"Enter\", callback: (pressed) => { if (!this._base) return; if (!pressed || this.variant === \"connected\") { this._base.style.removeProperty(\"--_button-group-width\"); this._base.classList.remove(\"pressed\"); } else { this._base.classList.add(\"pressed\"); this._base.style.setProperty(\"--_button-group-width\", `${this._base.getBoundingClientRect().width}px`); } }, })"
92
+ },
93
+ {
94
+ "kind": "field",
95
+ "name": "_base",
96
+ "type": {
97
+ "text": "HTMLElement | undefined"
98
+ },
99
+ "privacy": "private",
100
+ "readonly": true
101
+ },
102
+ {
103
+ "kind": "field",
104
+ "name": "variant",
105
+ "type": {
106
+ "text": "ButtonGroupVariant"
107
+ },
108
+ "default": "\"standard\"",
109
+ "description": "The appearance variant of the group.",
110
+ "attribute": "variant",
111
+ "reflects": true
112
+ },
113
+ {
114
+ "kind": "field",
115
+ "name": "size",
116
+ "type": {
117
+ "text": "ButtonGroupSize"
118
+ },
119
+ "default": "\"small\"",
120
+ "description": "The size of the group.",
121
+ "attribute": "size",
122
+ "reflects": true
123
+ },
124
+ {
125
+ "kind": "field",
126
+ "name": "multi",
127
+ "type": {
128
+ "text": "boolean"
129
+ },
130
+ "default": "false",
131
+ "description": "Whether multiple toggle buttons can be selected.",
132
+ "attribute": "multi"
133
+ },
134
+ {
135
+ "kind": "field",
136
+ "name": "buttons",
137
+ "type": {
138
+ "text": "ReadonlyArray<M3eButtonElement | M3eIconButtonElement>"
139
+ },
140
+ "readonly": true,
141
+ "description": "The buttons contained by the group."
142
+ },
143
+ {
144
+ "kind": "method",
145
+ "name": "#updateButtons",
146
+ "privacy": "private",
147
+ "return": {
148
+ "type": {
149
+ "text": "void"
150
+ }
151
+ }
152
+ },
153
+ {
154
+ "kind": "method",
155
+ "name": "#handleChange",
156
+ "privacy": "private",
157
+ "return": {
158
+ "type": {
159
+ "text": "void"
160
+ }
161
+ },
162
+ "parameters": [
163
+ {
164
+ "name": "e",
165
+ "type": {
166
+ "text": "Event"
167
+ }
168
+ }
169
+ ]
170
+ }
171
+ ],
172
+ "attributes": [
173
+ {
174
+ "description": "Whether multiple toggle buttons can be selected.",
175
+ "name": "multi",
176
+ "type": {
177
+ "text": "boolean"
178
+ },
179
+ "default": "false",
180
+ "fieldName": "multi"
181
+ },
182
+ {
183
+ "description": "The size of the group.",
184
+ "name": "size",
185
+ "type": {
186
+ "text": "ButtonGroupSize"
187
+ },
188
+ "default": "\"small\"",
189
+ "fieldName": "size"
190
+ },
191
+ {
192
+ "description": "The appearance variant of the group.",
193
+ "name": "variant",
194
+ "type": {
195
+ "text": "ButtonGroupVariant"
196
+ },
197
+ "default": "\"standard\"",
198
+ "fieldName": "variant"
199
+ }
200
+ ],
201
+ "mixins": [
202
+ {
203
+ "name": "Role",
204
+ "package": "@m3e/core"
205
+ }
206
+ ],
207
+ "superclass": {
208
+ "name": "LitElement",
209
+ "package": "lit"
210
+ },
211
+ "tagName": "m3e-button-group",
212
+ "customElement": true,
213
+ "summary": "Organizes buttons and adds interactions between them."
214
+ }
215
+ ],
216
+ "exports": [
217
+ {
218
+ "kind": "js",
219
+ "name": "M3eButtonGroupElement",
220
+ "declaration": {
221
+ "name": "M3eButtonGroupElement",
222
+ "module": "src/ButtonGroupElement.ts"
223
+ }
224
+ },
225
+ {
226
+ "kind": "custom-element-definition",
227
+ "name": "m3e-button-group",
228
+ "declaration": {
229
+ "name": "M3eButtonGroupElement",
230
+ "module": "src/ButtonGroupElement.ts"
231
+ }
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "kind": "javascript-module",
237
+ "path": "src/ButtonGroupSize.ts",
238
+ "declarations": [],
239
+ "exports": []
240
+ },
241
+ {
242
+ "kind": "javascript-module",
243
+ "path": "src/ButtonGroupVariant.ts",
244
+ "declarations": [],
245
+ "exports": []
246
+ },
247
+ {
248
+ "kind": "javascript-module",
249
+ "path": "src/index.ts",
250
+ "declarations": [],
251
+ "exports": [
252
+ {
253
+ "kind": "js",
254
+ "name": "*",
255
+ "declaration": {
256
+ "name": "*",
257
+ "package": "\"./ButtonGroupElement\""
258
+ }
259
+ },
260
+ {
261
+ "kind": "js",
262
+ "name": "*",
263
+ "declaration": {
264
+ "name": "*",
265
+ "package": "\"./ButtonGroupSize\""
266
+ }
267
+ },
268
+ {
269
+ "kind": "js",
270
+ "name": "*",
271
+ "declaration": {
272
+ "name": "*",
273
+ "package": "\"./ButtonGroupVariant\""
274
+ }
275
+ }
276
+ ]
277
+ }
278
+ ]
279
+ }
@@ -0,0 +1,28 @@
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-button-group",
7
+ "description": "Organizes buttons and adds interactions between them.\n---\n\n\n### **Slots:**\n - _default_ - Renders the buttons of the group.\n\n### **CSS Properties:**\n - **--m3e-standard-button-group-extra-small-spacing** - Spacing between buttons in standard variant, extra-small size. _(default: undefined)_\n- **--m3e-standard-button-group-small-spacing** - Spacing between buttons in standard variant, small size. _(default: undefined)_\n- **--m3e-standard-button-group-medium-spacing** - Spacing between buttons in standard variant, medium size. _(default: undefined)_\n- **--m3e-standard-button-group-large-spacing** - Spacing between buttons in standard variant, large size. _(default: undefined)_\n- **--m3e-standard-button-group-extra-large-spacing** - Spacing between buttons in standard variant, extra-large size. _(default: undefined)_\n- **--m3e-connected-button-group-spacing** - Spacing between buttons in connected variant. _(default: undefined)_\n- **--m3e-connected-button-group-extra-small-inner-shape** - Corner shape for connected variant, extra-small size. _(default: undefined)_\n- **--m3e-connected-button-group-extra-small-inner-pressed-shape** - Pressed corner shape for connected variant, extra-small size. _(default: undefined)_\n- **--m3e-connected-button-group-small-inner-shape** - Corner shape for connected variant, small size. _(default: undefined)_\n- **--m3e-connected-button-group-small-inner-pressed-shape** - Pressed corner shape for connected variant, small size. _(default: undefined)_\n- **--m3e-connected-button-group-medium-inner-shape** - Corner shape for connected variant, medium size. _(default: undefined)_\n- **--m3e-connected-button-group-medium-inner-pressed-shape** - Pressed corner shape for connected variant, medium size. _(default: undefined)_\n- **--m3e-connected-button-group-large-inner-shape** - Corner shape for connected variant, large size. _(default: undefined)_\n- **--m3e-connected-button-group-large-inner-pressed-shape** - Pressed corner shape for connected variant, large size. _(default: undefined)_\n- **--m3e-connected-button-group-extra-large-inner-shape** - Corner shape for connected variant, extra-large size. _(default: undefined)_\n- **--m3e-connected-button-group-extra-large-inner-pressed-shape** - Pressed corner shape for connected variant, extra-large size. _(default: undefined)_",
8
+ "attributes": [
9
+ {
10
+ "name": "multi",
11
+ "description": "Whether multiple toggle buttons can be selected.",
12
+ "values": []
13
+ },
14
+ {
15
+ "name": "size",
16
+ "description": "The size of the group.",
17
+ "values": [{ "name": "ButtonGroupSize" }]
18
+ },
19
+ {
20
+ "name": "variant",
21
+ "description": "The appearance variant of the group.",
22
+ "values": [{ "name": "ButtonGroupVariant" }]
23
+ }
24
+ ],
25
+ "references": []
26
+ }
27
+ ]
28
+ }