@m3e/segmented-button 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 +174 -0
- package/cem.config.mjs +16 -0
- package/demo/index.html +105 -0
- package/dist/css-custom-data.json +162 -0
- package/dist/custom-elements.json +548 -0
- package/dist/html-custom-data.json +55 -0
- package/dist/index.js +642 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +269 -0
- package/dist/index.min.js.map +1 -0
- package/dist/src/ButtonSegmentElement.d.ts +105 -0
- package/dist/src/ButtonSegmentElement.d.ts.map +1 -0
- package/dist/src/SegmentedButtonElement.d.ts +89 -0
- package/dist/src/SegmentedButtonElement.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/ButtonSegmentElement.ts +407 -0
- package/src/SegmentedButtonElement.ts +208 -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,174 @@
|
|
|
1
|
+
# @m3e/segmented-button
|
|
2
|
+
|
|
3
|
+
The `m3e-segmented-button` and `m3e-button-segment` components allows users to select one or more options from a horizontal group. Each segment behaves like a toggle-able button, supporting icon and label content, selection state, and accessibility roles. Built with Material Design 3 principles, it adapts shape, color, and ripple feedback based on interaction state and input modality. Segments are visually unified but independently interactive.
|
|
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/segmented-button
|
|
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/segmented-button`, 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/segmented-button/dist/html-custom-data.json"],
|
|
27
|
+
"css.customData": ["./node_modules/@m3e/segmented-button/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/segmented-button/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
|
+
"@m3e/core/a11y": "/node_modules/@m3e/core/dist/a11y.js"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
> For production, use index.min.js and a11y.min.js for faster load times.
|
|
54
|
+
|
|
55
|
+
## 🗂️ Elements
|
|
56
|
+
|
|
57
|
+
- `m3e-segmented-button` — A button that allows a user to select from a limited set of options.
|
|
58
|
+
- `m3e-button-segment` — A option that can be selected within a segmented button.
|
|
59
|
+
|
|
60
|
+
## 🧪 Example
|
|
61
|
+
|
|
62
|
+
The following example illustrates a single-select segmented button with four segments.
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<m3e-segmented-button>
|
|
66
|
+
<m3e-button-segment checked>8 oz</m3e-button-segment>
|
|
67
|
+
<m3e-button-segment>12 oz</m3e-button-segment>
|
|
68
|
+
<m3e-button-segment>16 oz</m3e-button-segment>
|
|
69
|
+
<m3e-button-segment>20 oz</m3e-button-segment>
|
|
70
|
+
</m3e-segmented-button>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## 📖 API Reference
|
|
74
|
+
|
|
75
|
+
### 🗂️ m3e-segmented-button
|
|
76
|
+
|
|
77
|
+
This section details the attributes, slots, events and CSS custom properties available for the `m3e-segmented-button` component.
|
|
78
|
+
|
|
79
|
+
#### 🛠️ Attributes
|
|
80
|
+
|
|
81
|
+
| Attribute | Type | Default | Description |
|
|
82
|
+
| -------------------------- | --------- | ------- | ------------------------------------------------------------------------- |
|
|
83
|
+
| `disabled` | `boolean` | `false` | Whether the element is disabled. |
|
|
84
|
+
| `hide-selection-indicator` | `boolean` | `false` | Whether to hide the selection indicator. |
|
|
85
|
+
| `multi` | `boolean` | `false` | Whether multiple options can be selected. |
|
|
86
|
+
| `name` | `string` | | The name that identifies the element when submitting the associated form. |
|
|
87
|
+
|
|
88
|
+
#### 🔔 Events
|
|
89
|
+
|
|
90
|
+
| Event | Description |
|
|
91
|
+
| -------- | ---------------------------------------------------- |
|
|
92
|
+
| `input` | Emitted when the checked state of a segment changes. |
|
|
93
|
+
| `change` | Emitted when the checked state of a segment changes. |
|
|
94
|
+
|
|
95
|
+
#### 🧩 Slots
|
|
96
|
+
|
|
97
|
+
| Slot | Description |
|
|
98
|
+
| ----------- | ----------------------------------- |
|
|
99
|
+
| _(default)_ | Renders the segments of the button. |
|
|
100
|
+
|
|
101
|
+
#### 🎛️ CSS Custom Properties
|
|
102
|
+
|
|
103
|
+
| Property | Description |
|
|
104
|
+
| ------------------------------------ | ---------------------------------------------------------- |
|
|
105
|
+
| `--m3e-segmented-button-start-shape` | Border radius for the first segment in a segmented button. |
|
|
106
|
+
| `--m3e-segmented-button-end-shape` | Border radius for the last segment in a segmented button. |
|
|
107
|
+
|
|
108
|
+
### 🗂️ m3e-button-segment
|
|
109
|
+
|
|
110
|
+
This section details the attributes, slots, events and CSS custom properties available for the `m3e-button-segment` component.
|
|
111
|
+
|
|
112
|
+
#### 🛠️ Attributes
|
|
113
|
+
|
|
114
|
+
| Attribute | Type | Default | Description |
|
|
115
|
+
| ---------- | --------- | ------- | ----------------------------------------------- |
|
|
116
|
+
| `checked` | `boolean` | `false` | Whether the element is checked. |
|
|
117
|
+
| `disabled` | `boolean` | `false` | Whether the element is disabled. |
|
|
118
|
+
| `value` | `string` | `"on"` | A string representing the value of the segment. |
|
|
119
|
+
|
|
120
|
+
#### 🔔 Events
|
|
121
|
+
|
|
122
|
+
| Event | Description |
|
|
123
|
+
| -------- | --------------------------------------- |
|
|
124
|
+
| `input` | Emitted when the checked state changes. |
|
|
125
|
+
| `change` | Emitted when the checked state changes. |
|
|
126
|
+
|
|
127
|
+
#### 🧩 Slots
|
|
128
|
+
|
|
129
|
+
| Slot | Description |
|
|
130
|
+
| ----------- | ------------------------------------------ |
|
|
131
|
+
| _(default)_ | Renders the label of the option. |
|
|
132
|
+
| `icon` | Renders an icon before the option's label. |
|
|
133
|
+
|
|
134
|
+
#### 🎛️ CSS Custom Properties
|
|
135
|
+
|
|
136
|
+
| Property | Description |
|
|
137
|
+
| --------------------------------------------------------- | --------------------------------------------------- |
|
|
138
|
+
| `--m3e-segmented-button-height` | Total height of the segmented button. |
|
|
139
|
+
| `--m3e-segmented-button-outline-thickness` | Thickness of the button’s border. |
|
|
140
|
+
| `--m3e-segmented-button-outline-color` | Color of the button’s border. |
|
|
141
|
+
| `--m3e-segmented-button-padding-start` | Padding on the leading edge of the button content. |
|
|
142
|
+
| `--m3e-segmented-button-padding-end` | Padding on the trailing edge of the button content. |
|
|
143
|
+
| `--m3e-segmented-button-spacing` | Horizontal gap between icon and label. |
|
|
144
|
+
| `--m3e-segmented-button-font-size` | Font size of the label text. |
|
|
145
|
+
| `--m3e-segmented-button-font-weight` | Font weight of the label text. |
|
|
146
|
+
| `--m3e-segmented-button-line-height` | Line height of the label text. |
|
|
147
|
+
| `--m3e-segmented-button-tracking` | Letter spacing of the label text. |
|
|
148
|
+
| `--m3e-segmented-button-with-icon-padding-start` | Leading padding when an icon is present. |
|
|
149
|
+
| `--m3e-segmented-button-icon-size` | Font size of the icon. |
|
|
150
|
+
| `--m3e-segmented-button-selected-container-color` | Background color of a selected segment. |
|
|
151
|
+
| `--m3e-segmented-button-selected-container-hover-color` | Hover state-layer color for selected segments. |
|
|
152
|
+
| `--m3e-segmented-button-selected-container-focus-color` | Focus state-layer color for selected segments. |
|
|
153
|
+
| `--m3e-segmented-button-selected-ripple-color` | Ripple color for selected segments. |
|
|
154
|
+
| `--m3e-segmented-button-selected-label-text-color` | Label text color for selected segments. |
|
|
155
|
+
| `--m3e-segmented-button-selected-icon-color` | Icon color for selected segments. |
|
|
156
|
+
| `--m3e-segmented-button-unselected-container-hover-color` | Hover state-layer color for unselected segments. |
|
|
157
|
+
| `--m3e-segmented-button-unselected-container-focus-color` | Focus state-layer color for unselected segments. |
|
|
158
|
+
| `--m3e-segmented-button-unselected-ripple-color` | Ripple color for unselected segments. |
|
|
159
|
+
| `--m3e-segmented-button-unselected-label-text-color` | Label text color for unselected segments. |
|
|
160
|
+
| `--m3e-segmented-button-unselected-icon-color` | Icon color for unselected segments. |
|
|
161
|
+
| `--m3e-segmented-button-disabled-outline-color` | Base color for disabled segment borders. |
|
|
162
|
+
| `--m3e-segmented-button-disabled-outline-opacity` | Opacity applied to disabled segment borders. |
|
|
163
|
+
| `--m3e-segmented-button-disabled-label-text-color` | Base color for disabled label text. |
|
|
164
|
+
| `--m3e-segmented-button-disabled-label-text-opacity` | Opacity applied to disabled label text. |
|
|
165
|
+
| `--m3e-segmented-button-disabled-icon-color` | Base color for disabled icons. |
|
|
166
|
+
| `--m3e-segmented-button-disabled-icon-opacity` | Opacity applied to disabled icons. |
|
|
167
|
+
|
|
168
|
+
## 🤝 Contributing
|
|
169
|
+
|
|
170
|
+
See the root monorepo `CONTRIBUTING.md` for guidelines on contributing to this package.
|
|
171
|
+
|
|
172
|
+
## 📄 License
|
|
173
|
+
|
|
174
|
+
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,105 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" style="overflow-y: auto">
|
|
3
|
+
<head>
|
|
4
|
+
<title>Segmented Button for M3E</title>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<meta name="description" content="Segmented Button 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
|
+
"@m3e/core/a11y": "../../core/dist/a11y.min.js"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
<script type="module" src="../../icon/dist/index.min.js"></script>
|
|
29
|
+
<script type="module" src="../../theme/dist/index.min.js"></script>
|
|
30
|
+
<script type="module" src="../dist/index.min.js"></script>
|
|
31
|
+
<style>
|
|
32
|
+
body {
|
|
33
|
+
font-family: "Roboto";
|
|
34
|
+
}
|
|
35
|
+
*:not(:defined) {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
39
|
+
</head>
|
|
40
|
+
<body>
|
|
41
|
+
<m3e-theme strong-focus>
|
|
42
|
+
<m3e-segmented-button>
|
|
43
|
+
<m3e-button-segment checked>8 oz</m3e-button-segment>
|
|
44
|
+
<m3e-button-segment>12 oz</m3e-button-segment>
|
|
45
|
+
<m3e-button-segment>16 oz</m3e-button-segment>
|
|
46
|
+
<m3e-button-segment>20 oz</m3e-button-segment>
|
|
47
|
+
</m3e-segmented-button>
|
|
48
|
+
<br /><br />
|
|
49
|
+
<m3e-segmented-button>
|
|
50
|
+
<m3e-button-segment checked><m3e-icon slot="icon" name="home"></m3e-icon>8 oz</m3e-button-segment>
|
|
51
|
+
<m3e-button-segment><m3e-icon slot="icon" name="home"></m3e-icon>12 oz</m3e-button-segment>
|
|
52
|
+
<m3e-button-segment><m3e-icon slot="icon" name="home"></m3e-icon>16 oz</m3e-button-segment>
|
|
53
|
+
<m3e-button-segment><m3e-icon slot="icon" name="home"></m3e-icon>20 oz</m3e-button-segment>
|
|
54
|
+
</m3e-segmented-button>
|
|
55
|
+
<br /><br />
|
|
56
|
+
<m3e-segmented-button disabled>
|
|
57
|
+
<m3e-button-segment checked>8 oz</m3e-button-segment>
|
|
58
|
+
<m3e-button-segment>12 oz</m3e-button-segment>
|
|
59
|
+
<m3e-button-segment>16 oz</m3e-button-segment>
|
|
60
|
+
<m3e-button-segment>20 oz</m3e-button-segment>
|
|
61
|
+
</m3e-segmented-button>
|
|
62
|
+
<br /><br />
|
|
63
|
+
<m3e-segmented-button>
|
|
64
|
+
<m3e-button-segment checked>8 oz</m3e-button-segment>
|
|
65
|
+
<m3e-button-segment disabled>12 oz</m3e-button-segment>
|
|
66
|
+
<m3e-button-segment>16 oz</m3e-button-segment>
|
|
67
|
+
<m3e-button-segment>20 oz</m3e-button-segment>
|
|
68
|
+
</m3e-segmented-button>
|
|
69
|
+
<m3e-segmented-button multi>
|
|
70
|
+
<m3e-button-segment checked>$</m3e-button-segment>
|
|
71
|
+
<m3e-button-segment checked>$$</m3e-button-segment>
|
|
72
|
+
<m3e-button-segment>$$$</m3e-button-segment>
|
|
73
|
+
<m3e-button-segment>$$$$</m3e-button-segment>
|
|
74
|
+
</m3e-segmented-button>
|
|
75
|
+
<br /><br />
|
|
76
|
+
<m3e-segmented-button hide-selection-indicator>
|
|
77
|
+
<m3e-button-segment checked>$</m3e-button-segment>
|
|
78
|
+
<m3e-button-segment checked>$$</m3e-button-segment>
|
|
79
|
+
<m3e-button-segment>$$$</m3e-button-segment>
|
|
80
|
+
<m3e-button-segment>$$$$</m3e-button-segment>
|
|
81
|
+
</m3e-segmented-button>
|
|
82
|
+
<br /><br />
|
|
83
|
+
<m3e-segmented-button style="--md-sys-density-scale: -1">
|
|
84
|
+
<m3e-button-segment checked>8 oz</m3e-button-segment>
|
|
85
|
+
<m3e-button-segment>12 oz</m3e-button-segment>
|
|
86
|
+
<m3e-button-segment>16 oz</m3e-button-segment>
|
|
87
|
+
<m3e-button-segment>20 oz</m3e-button-segment>
|
|
88
|
+
</m3e-segmented-button>
|
|
89
|
+
<br /><br />
|
|
90
|
+
<m3e-segmented-button style="--md-sys-density-scale: -2">
|
|
91
|
+
<m3e-button-segment checked>8 oz</m3e-button-segment>
|
|
92
|
+
<m3e-button-segment>12 oz</m3e-button-segment>
|
|
93
|
+
<m3e-button-segment>16 oz</m3e-button-segment>
|
|
94
|
+
<m3e-button-segment>20 oz</m3e-button-segment>
|
|
95
|
+
</m3e-segmented-button>
|
|
96
|
+
<br /><br />
|
|
97
|
+
<m3e-segmented-button style="--md-sys-density-scale: -3">
|
|
98
|
+
<m3e-button-segment checked>8 oz</m3e-button-segment>
|
|
99
|
+
<m3e-button-segment>12 oz</m3e-button-segment>
|
|
100
|
+
<m3e-button-segment>16 oz</m3e-button-segment>
|
|
101
|
+
<m3e-button-segment>20 oz</m3e-button-segment>
|
|
102
|
+
</m3e-segmented-button>
|
|
103
|
+
</m3e-theme>
|
|
104
|
+
</body>
|
|
105
|
+
</html>
|
|
@@ -0,0 +1,162 @@
|
|
|
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-segmented-button-height",
|
|
7
|
+
"description": "Total height of the segmented button.",
|
|
8
|
+
"values": []
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "--m3e-segmented-button-outline-thickness",
|
|
12
|
+
"description": "Thickness of the button’s border.",
|
|
13
|
+
"values": []
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "--m3e-segmented-button-outline-color",
|
|
17
|
+
"description": "Color of the button’s border.",
|
|
18
|
+
"values": []
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "--m3e-segmented-button-padding-start",
|
|
22
|
+
"description": "Padding on the leading edge of the button content.",
|
|
23
|
+
"values": []
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "--m3e-segmented-button-padding-end",
|
|
27
|
+
"description": "Padding on the trailing edge of the button content.",
|
|
28
|
+
"values": []
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "--m3e-segmented-button-spacing",
|
|
32
|
+
"description": "Horizontal gap between icon and label.",
|
|
33
|
+
"values": []
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "--m3e-segmented-button-font-size",
|
|
37
|
+
"description": "Font size of the label text.",
|
|
38
|
+
"values": []
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "--m3e-segmented-button-font-weight",
|
|
42
|
+
"description": "Font weight of the label text.",
|
|
43
|
+
"values": []
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "--m3e-segmented-button-line-height",
|
|
47
|
+
"description": "Line height of the label text.",
|
|
48
|
+
"values": []
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "--m3e-segmented-button-tracking",
|
|
52
|
+
"description": "Letter spacing of the label text.",
|
|
53
|
+
"values": []
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "--m3e-segmented-button-with-icon-padding-start",
|
|
57
|
+
"description": "Leading padding when an icon is present.",
|
|
58
|
+
"values": []
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "--m3e-segmented-button-selected-container-color",
|
|
62
|
+
"description": "Background color of a selected segment.",
|
|
63
|
+
"values": []
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "--m3e-segmented-button-selected-container-hover-color",
|
|
67
|
+
"description": "Hover state-layer color for selected segments.",
|
|
68
|
+
"values": []
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "--m3e-segmented-button-selected-container-focus-color",
|
|
72
|
+
"description": "Focus state-layer color for selected segments.",
|
|
73
|
+
"values": []
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "--m3e-segmented-button-selected-ripple-color",
|
|
77
|
+
"description": "Ripple color for selected segments.",
|
|
78
|
+
"values": []
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "--m3e-segmented-button-selected-label-text-color",
|
|
82
|
+
"description": "Label text color for selected segments.",
|
|
83
|
+
"values": []
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "--m3e-segmented-button-selected-icon-color",
|
|
87
|
+
"description": "Icon color for selected segments.",
|
|
88
|
+
"values": []
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "--m3e-segmented-button-unselected-container-hover-color",
|
|
92
|
+
"description": "Hover state-layer color for unselected segments.",
|
|
93
|
+
"values": []
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "--m3e-segmented-button-unselected-container-focus-color",
|
|
97
|
+
"description": "Focus state-layer color for unselected segments.",
|
|
98
|
+
"values": []
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "--m3e-segmented-button-unselected-ripple-color",
|
|
102
|
+
"description": "Ripple color for unselected segments.",
|
|
103
|
+
"values": []
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "--m3e-segmented-button-unselected-label-text-color",
|
|
107
|
+
"description": "Label text color for unselected segments.",
|
|
108
|
+
"values": []
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "--m3e-segmented-button-unselected-icon-color",
|
|
112
|
+
"description": "Icon color for unselected segments.",
|
|
113
|
+
"values": []
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "--m3e-segmented-button-icon-size",
|
|
117
|
+
"description": "Font size of the icon.",
|
|
118
|
+
"values": []
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "--m3e-segmented-button-disabled-outline-color",
|
|
122
|
+
"description": "Base color for disabled segment borders.",
|
|
123
|
+
"values": []
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "--m3e-segmented-button-disabled-outline-opacity",
|
|
127
|
+
"description": "Opacity applied to disabled segment borders.",
|
|
128
|
+
"values": []
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "--m3e-segmented-button-disabled-label-text-color",
|
|
132
|
+
"description": "Base color for disabled label text.",
|
|
133
|
+
"values": []
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "--m3e-segmented-button-disabled-label-text-opacity",
|
|
137
|
+
"description": "Opacity applied to disabled label text.",
|
|
138
|
+
"values": []
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "--m3e-segmented-button-disabled-icon-color",
|
|
142
|
+
"description": "Base color for disabled icons.",
|
|
143
|
+
"values": []
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "--m3e-segmented-button-disabled-icon-opacity",
|
|
147
|
+
"description": "Opacity applied to disabled icons.",
|
|
148
|
+
"values": []
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "--m3e-segmented-button-start-shape",
|
|
152
|
+
"description": "Border radius for the first segment in a segmented button.",
|
|
153
|
+
"values": []
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "--m3e-segmented-button-end-shape",
|
|
157
|
+
"description": "Border radius for the last segment in a segmented button.",
|
|
158
|
+
"values": []
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"pseudoElements": []
|
|
162
|
+
}
|