@m3e/menu 1.1.11 → 1.2.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/README.md +138 -83
- package/dist/css-custom-data.json +282 -12
- package/dist/custom-elements.json +307 -12
- package/dist/html-custom-data.json +9 -4
- package/dist/index.js +129 -17
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +7 -7
- package/dist/index.min.js.map +1 -1
- package/dist/src/MenuElement.d.ts +12 -0
- package/dist/src/MenuElement.d.ts.map +1 -1
- package/dist/src/MenuItemCheckboxElement.d.ts +19 -2
- package/dist/src/MenuItemCheckboxElement.d.ts.map +1 -1
- package/dist/src/MenuItemElement.d.ts +18 -2
- package/dist/src/MenuItemElement.d.ts.map +1 -1
- package/dist/src/MenuItemElementBase.d.ts.map +1 -1
- package/dist/src/MenuItemRadioElement.d.ts +19 -2
- package/dist/src/MenuItemRadioElement.d.ts.map +1 -1
- package/dist/src/MenuVariant.d.ts +3 -0
- package/dist/src/MenuVariant.d.ts.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -117,10 +117,11 @@ This section details the attributes, events, slots and CSS custom properties ava
|
|
|
117
117
|
|
|
118
118
|
#### ⚙️ Attributes
|
|
119
119
|
|
|
120
|
-
| Attribute | Type
|
|
121
|
-
| ------------ |
|
|
122
|
-
| `position-x` | `"before"` \| `"after"`
|
|
123
|
-
| `position-y` | `"above"` \| `"below"`
|
|
120
|
+
| Attribute | Type | Default | Description |
|
|
121
|
+
| ------------ | --------------------------- | ------------ | ---------------------------------------- |
|
|
122
|
+
| `position-x` | `"before"` \| `"after"` | `"after"` | The position of the menu, on the x-axis. |
|
|
123
|
+
| `position-y` | `"above"` \| `"below"` | `"below"` | The position of the menu, on the y-axis. |
|
|
124
|
+
| `variant` | `"standard"` \| `"vibrant"` | `"standard"` | The appearance variant of the menu. |
|
|
124
125
|
|
|
125
126
|
#### 🔔 Events
|
|
126
127
|
|
|
@@ -137,16 +138,20 @@ This section details the attributes, events, slots and CSS custom properties ava
|
|
|
137
138
|
|
|
138
139
|
#### 🎛️ CSS Custom Properties
|
|
139
140
|
|
|
140
|
-
| Property
|
|
141
|
-
|
|
|
142
|
-
| `--m3e-menu-container-shape`
|
|
143
|
-
| `--m3e-menu-container-
|
|
144
|
-
| `--m3e-menu-container-
|
|
145
|
-
| `--m3e-menu-container-max-
|
|
146
|
-
| `--m3e-menu-container-
|
|
147
|
-
| `--m3e-menu-container-
|
|
148
|
-
| `--m3e-menu-container-
|
|
149
|
-
| `--m3e-menu-
|
|
141
|
+
| Property | Description |
|
|
142
|
+
| ------------------------------------- | ------------------------------------------------------------- |
|
|
143
|
+
| `--m3e-menu-container-shape` | Controls the corner radius of the menu container. |
|
|
144
|
+
| `--m3e-menu-active-container-shape` | Controls the corner radius of the menu container when active. |
|
|
145
|
+
| `--m3e-menu-container-min-width` | Minimum width of the menu container. |
|
|
146
|
+
| `--m3e-menu-container-max-width` | Maximum width of the menu container. |
|
|
147
|
+
| `--m3e-menu-container-max-height` | Maximum height of the menu container. |
|
|
148
|
+
| `--m3e-menu-container-padding-block` | Vertical padding inside the menu container. |
|
|
149
|
+
| `--m3e-menu-container-padding-inline` | Horizontal padding inside the menu container. |
|
|
150
|
+
| `--m3e-menu-container-color` | Background color of the menu container. |
|
|
151
|
+
| `--m3e-menu-container-elevation` | Box shadow elevation of the menu container. |
|
|
152
|
+
| `--m3e-vibrant-menu-container-color` | Background color of the menu container for vibrant variant. |
|
|
153
|
+
| `--m3e-menu-divider-spacing` | Vertical spacing around slotted `m3e-divider` elements. |
|
|
154
|
+
| `--m3e-menu-gap` | Gap between content in the menu. |
|
|
150
155
|
|
|
151
156
|
### 🗂️ m3e-menu-item
|
|
152
157
|
|
|
@@ -172,29 +177,45 @@ This section details the attributes, slots and CSS custom properties available f
|
|
|
172
177
|
|
|
173
178
|
#### 🎛️ CSS Custom Properties
|
|
174
179
|
|
|
175
|
-
| Property
|
|
176
|
-
|
|
|
177
|
-
| `--m3e-menu-item-container-height`
|
|
178
|
-
| `--m3e-menu-item-color`
|
|
179
|
-
| `--m3e-menu-item-container-hover-color`
|
|
180
|
-
| `--m3e-menu-item-container-focus-color`
|
|
181
|
-
| `--m3e-menu-item-ripple-color`
|
|
182
|
-
| `--m3e-menu-selected-color`
|
|
183
|
-
| `--m3e-menu-selected-container-color`
|
|
184
|
-
| `--m3e-menu-item-selected-container-hover-color`
|
|
185
|
-
| `--m3e-menu-item-selected-container-focus-color`
|
|
186
|
-
| `--m3e-menu-item-selected-ripple-color`
|
|
187
|
-
| `--m3e-menu-item-
|
|
188
|
-
| `--m3e-menu-item-
|
|
189
|
-
| `--m3e-menu-item-
|
|
190
|
-
| `--m3e-menu-item-
|
|
191
|
-
| `--m3e-menu-item-
|
|
192
|
-
| `--m3e-menu-item-
|
|
193
|
-
| `--m3e-menu-item-
|
|
194
|
-
| `--m3e-menu-item-
|
|
195
|
-
| `--m3e-menu-item-
|
|
196
|
-
| `--m3e-menu-item-
|
|
197
|
-
| `--m3e-menu-item-
|
|
180
|
+
| Property | Description |
|
|
181
|
+
| -------------------------------------------------------- | ------------------------------------------------------------------ |
|
|
182
|
+
| `--m3e-menu-item-container-height` | Height of the menu item container. |
|
|
183
|
+
| `--m3e-menu-item-color` | Text color for unselected, enabled menu items. |
|
|
184
|
+
| `--m3e-menu-item-container-hover-color` | State layer hover color for unselected items. |
|
|
185
|
+
| `--m3e-menu-item-container-focus-color` | State layer focus color for unselected items. |
|
|
186
|
+
| `--m3e-menu-item-ripple-color` | Ripple color for unselected items. |
|
|
187
|
+
| `--m3e-menu-item-selected-color` | Text color for selected items. |
|
|
188
|
+
| `--m3e-menu-item-selected-container-color` | Background color for selected items. |
|
|
189
|
+
| `--m3e-menu-item-selected-container-hover-color` | State layer hover color for selected items. |
|
|
190
|
+
| `--m3e-menu-item-selected-container-focus-color` | State layer focus color for selected items. |
|
|
191
|
+
| `--m3e-menu-item-selected-ripple-color` | Ripple color for selected items. |
|
|
192
|
+
| `--m3e-menu-item-active-state-layer-color` | State layer color for expanded items. |
|
|
193
|
+
| `--m3e-menu-item-active-state-layer-opacity` | State layer opacity for expanded items. |
|
|
194
|
+
| `--m3e-menu-item-disabled-color` | Base color for disabled items. |
|
|
195
|
+
| `--m3e-menu-item-disabled-opacity` | Opacity percentage for disabled item color mix. |
|
|
196
|
+
| `--m3e-vibrant-menu-item-color` | Text color for unselected, enabled menu items for vibrant variant. |
|
|
197
|
+
| `--m3e-vibrant-menu-item-container-hover-color` | State layer hover color for unselected items for vibrant variant. |
|
|
198
|
+
| `--m3e-vibrant-menu-item-container-focus-color` | State layer focus color for unselected items for vibrant variant. |
|
|
199
|
+
| `--m3e-vibrant-menu-item-ripple-color` | Ripple color for unselected items for vibrant variant. |
|
|
200
|
+
| `--m3e-vibrant-menu-item-selected-color` | Text color for selected items for vibrant variant. |
|
|
201
|
+
| `--m3e-vibrant-menu-item-selected-container-color` | Background color for selected items for vibrant variant. |
|
|
202
|
+
| `--m3e-vibrant-menu-item-selected-container-hover-color` | State layer hover color for selected items for vibrant variant. |
|
|
203
|
+
| `--m3e-vibrant-menu-item-selected-container-focus-color` | State layer focus color for selected items for vibrant variant. |
|
|
204
|
+
| `--m3e-vibrant-menu-item-selected-ripple-color` | Ripple color for selected items for vibrant variant. |
|
|
205
|
+
| `--m3e-vibrant-menu-item-active-state-layer-color` | State layer color for expanded items for vibrant variant. |
|
|
206
|
+
| `--m3e-vibrant-menu-item-disabled-color` | Base color for disabled items for vibrant variant. |
|
|
207
|
+
| `--m3e-menu-item-icon-label-space` | Horizontal gap between icon and content. |
|
|
208
|
+
| `--m3e-menu-item-padding-start` | Start padding for the item wrapper. |
|
|
209
|
+
| `--m3e-menu-item-padding-end` | End padding for the item wrapper. |
|
|
210
|
+
| `--m3e-menu-item-label-text-font-size` | Font size for menu item text. |
|
|
211
|
+
| `--m3e-menu-item-label-text-font-weight` | Font weight for menu item text. |
|
|
212
|
+
| `--m3e-menu-item-label-text-line-height` | Line height for menu item text. |
|
|
213
|
+
| `--m3e-menu-item-label-text-tracking` | Letter spacing for menu item text. |
|
|
214
|
+
| `--m3e-menu-item-focus-ring-shape` | Border radius for the focus ring. |
|
|
215
|
+
| `--m3e-menu-item-icon-size` | Font size for leading and trailing icons. |
|
|
216
|
+
| `--m3e-menu-item-shape` | Base shape of the menu item. |
|
|
217
|
+
| `--m3e-menu-item-first-child-shape` | Shape for the first menu item in a menu. |
|
|
218
|
+
| `--m3e-menu-item-last-child-shape` | Shape for the last menu item in a menu. |
|
|
198
219
|
|
|
199
220
|
### 🗂️ m3e-menu-item-checkbox
|
|
200
221
|
|
|
@@ -217,29 +238,46 @@ This section details the attributes, slots and CSS custom properties available f
|
|
|
217
238
|
|
|
218
239
|
#### 🎛️ CSS Custom Properties
|
|
219
240
|
|
|
220
|
-
| Property
|
|
221
|
-
|
|
|
222
|
-
| `--m3e-menu-item-container-height`
|
|
223
|
-
| `--m3e-menu-item-color`
|
|
224
|
-
| `--m3e-menu-item-container-hover-color`
|
|
225
|
-
| `--m3e-menu-item-container-focus-color`
|
|
226
|
-
| `--m3e-menu-item-ripple-color`
|
|
227
|
-
| `--m3e-menu-selected-color`
|
|
228
|
-
| `--m3e-menu-selected-container-color`
|
|
229
|
-
| `--m3e-menu-item-selected-container-hover-color`
|
|
230
|
-
| `--m3e-menu-item-selected-container-focus-color`
|
|
231
|
-
| `--m3e-menu-item-selected-ripple-color`
|
|
232
|
-
| `--m3e-menu-item-
|
|
233
|
-
| `--m3e-menu-item-
|
|
234
|
-
| `--m3e-menu-item-
|
|
235
|
-
| `--m3e-menu-item-
|
|
236
|
-
| `--m3e-menu-item-
|
|
237
|
-
| `--m3e-menu-item-
|
|
238
|
-
| `--m3e-menu-item-
|
|
239
|
-
| `--m3e-menu-item-
|
|
240
|
-
| `--m3e-menu-item-
|
|
241
|
-
| `--m3e-menu-item-
|
|
242
|
-
| `--m3e-menu-item-
|
|
241
|
+
| Property | Description |
|
|
242
|
+
| -------------------------------------------------------- | ------------------------------------------------------------------ |
|
|
243
|
+
| `--m3e-menu-item-container-height` | Height of the menu item container. |
|
|
244
|
+
| `--m3e-menu-item-color` | Text color for unselected, enabled menu items. |
|
|
245
|
+
| `--m3e-menu-item-container-hover-color` | State layer hover color for unselected items. |
|
|
246
|
+
| `--m3e-menu-item-container-focus-color` | State layer focus color for unselected items. |
|
|
247
|
+
| `--m3e-menu-item-ripple-color` | Ripple color for unselected items. |
|
|
248
|
+
| `--m3e-menu-item-selected-color` | Text color for selected items. |
|
|
249
|
+
| `--m3e-menu-item-selected-container-color` | Background color for selected items. |
|
|
250
|
+
| `--m3e-menu-item-selected-container-hover-color` | State layer hover color for selected items. |
|
|
251
|
+
| `--m3e-menu-item-selected-container-focus-color` | State layer focus color for selected items. |
|
|
252
|
+
| `--m3e-menu-item-selected-ripple-color` | Ripple color for selected items. |
|
|
253
|
+
| `--m3e-menu-item-active-state-layer-color` | State layer color for expanded items. |
|
|
254
|
+
| `--m3e-menu-item-active-state-layer-opacity` | State layer opacity for expanded items. |
|
|
255
|
+
| `--m3e-menu-item-disabled-color` | Base color for disabled items. |
|
|
256
|
+
| `--m3e-menu-item-disabled-opacity` | Opacity percentage for disabled item color mix. |
|
|
257
|
+
| `--m3e-vibrant-menu-item-color` | Text color for unselected, enabled menu items for vibrant variant. |
|
|
258
|
+
| `--m3e-vibrant-menu-item-container-hover-color` | State layer hover color for unselected items for vibrant variant. |
|
|
259
|
+
| `--m3e-vibrant-menu-item-container-focus-color` | State layer focus color for unselected items for vibrant variant. |
|
|
260
|
+
| `--m3e-vibrant-menu-item-ripple-color` | Ripple color for unselected items for vibrant variant. |
|
|
261
|
+
| `--m3e-vibrant-menu-item-selected-color` | Text color for selected items for vibrant variant. |
|
|
262
|
+
| `--m3e-vibrant-menu-item-selected-container-color` | Background color for selected items for vibrant variant. |
|
|
263
|
+
| `--m3e-vibrant-menu-item-selected-container-hover-color` | State layer hover color for selected items for vibrant variant. |
|
|
264
|
+
| `--m3e-vibrant-menu-item-selected-container-focus-color` | State layer focus color for selected items for vibrant variant. |
|
|
265
|
+
| `--m3e-vibrant-menu-item-selected-ripple-color` | Ripple color for selected items for vibrant variant. |
|
|
266
|
+
| `--m3e-vibrant-menu-item-active-state-layer-color` | State layer color for expanded items for vibrant variant. |
|
|
267
|
+
| `--m3e-vibrant-menu-item-disabled-color` | Base color for disabled items for vibrant variant. |
|
|
268
|
+
| `--m3e-menu-item-icon-label-space` | Horizontal gap between icon and content. |
|
|
269
|
+
| `--m3e-menu-item-padding-start` | Start padding for the item wrapper. |
|
|
270
|
+
| `--m3e-menu-item-padding-end` | End padding for the item wrapper. |
|
|
271
|
+
| `--m3e-menu-item-label-text-font-size` | Font size for menu item text. |
|
|
272
|
+
| `--m3e-menu-item-label-text-font-weight` | Font weight for menu item text. |
|
|
273
|
+
| `--m3e-menu-item-label-text-line-height` | Line height for menu item text. |
|
|
274
|
+
| `--m3e-menu-item-label-text-tracking` | Letter spacing for menu item text. |
|
|
275
|
+
| `--m3e-menu-item-focus-ring-shape` | Border radius for the focus ring. |
|
|
276
|
+
| `--m3e-menu-item-icon-size` | Font size for leading and trailing icons. |
|
|
277
|
+
| `--m3e-menu-item-shape` | Base shape of the menu item. |
|
|
278
|
+
| `--m3e-menu-item-selected-shape` | Shape used for a selected menu item. |
|
|
279
|
+
| `--m3e-menu-item-first-child-shape` | Shape for the first menu item in a menu. |
|
|
280
|
+
| `--m3e-menu-item-last-child-shape` | Shape for the last menu item in a menu. |
|
|
243
281
|
|
|
244
282
|
### 🗂️ m3e-menu-item-radio
|
|
245
283
|
|
|
@@ -262,29 +300,46 @@ This section details the attributes, slots and CSS custom properties available f
|
|
|
262
300
|
|
|
263
301
|
#### 🎛️ CSS Custom Properties
|
|
264
302
|
|
|
265
|
-
| Property
|
|
266
|
-
|
|
|
267
|
-
| `--m3e-menu-item-container-height`
|
|
268
|
-
| `--m3e-menu-item-color`
|
|
269
|
-
| `--m3e-menu-item-container-hover-color`
|
|
270
|
-
| `--m3e-menu-item-container-focus-color`
|
|
271
|
-
| `--m3e-menu-item-ripple-color`
|
|
272
|
-
| `--m3e-menu-selected-color`
|
|
273
|
-
| `--m3e-menu-selected-container-color`
|
|
274
|
-
| `--m3e-menu-item-selected-container-hover-color`
|
|
275
|
-
| `--m3e-menu-item-selected-container-focus-color`
|
|
276
|
-
| `--m3e-menu-item-selected-ripple-color`
|
|
277
|
-
| `--m3e-menu-item-
|
|
278
|
-
| `--m3e-menu-item-
|
|
279
|
-
| `--m3e-menu-item-
|
|
280
|
-
| `--m3e-menu-item-
|
|
281
|
-
| `--m3e-menu-item-
|
|
282
|
-
| `--m3e-menu-item-
|
|
283
|
-
| `--m3e-menu-item-
|
|
284
|
-
| `--m3e-menu-item-
|
|
285
|
-
| `--m3e-menu-item-
|
|
286
|
-
| `--m3e-menu-item-
|
|
287
|
-
| `--m3e-menu-item-
|
|
303
|
+
| Property | Description |
|
|
304
|
+
| -------------------------------------------------------- | ------------------------------------------------------------------ |
|
|
305
|
+
| `--m3e-menu-item-container-height` | Height of the menu item container. |
|
|
306
|
+
| `--m3e-menu-item-color` | Text color for unselected, enabled menu items. |
|
|
307
|
+
| `--m3e-menu-item-container-hover-color` | State layer hover color for unselected items. |
|
|
308
|
+
| `--m3e-menu-item-container-focus-color` | State layer focus color for unselected items. |
|
|
309
|
+
| `--m3e-menu-item-ripple-color` | Ripple color for unselected items. |
|
|
310
|
+
| `--m3e-menu-item-selected-color` | Text color for selected items. |
|
|
311
|
+
| `--m3e-menu-item-selected-container-color` | Background color for selected items. |
|
|
312
|
+
| `--m3e-menu-item-selected-container-hover-color` | State layer hover color for selected items. |
|
|
313
|
+
| `--m3e-menu-item-selected-container-focus-color` | State layer focus color for selected items. |
|
|
314
|
+
| `--m3e-menu-item-selected-ripple-color` | Ripple color for selected items. |
|
|
315
|
+
| `--m3e-menu-item-active-state-layer-color` | State layer color for expanded items. |
|
|
316
|
+
| `--m3e-menu-item-active-state-layer-opacity` | State layer opacity for expanded items. |
|
|
317
|
+
| `--m3e-menu-item-disabled-color` | Base color for disabled items. |
|
|
318
|
+
| `--m3e-menu-item-disabled-opacity` | Opacity percentage for disabled item color mix. |
|
|
319
|
+
| `--m3e-vibrant-menu-item-color` | Text color for unselected, enabled menu items for vibrant variant. |
|
|
320
|
+
| `--m3e-vibrant-menu-item-container-hover-color` | State layer hover color for unselected items for vibrant variant. |
|
|
321
|
+
| `--m3e-vibrant-menu-item-container-focus-color` | State layer focus color for unselected items for vibrant variant. |
|
|
322
|
+
| `--m3e-vibrant-menu-item-ripple-color` | Ripple color for unselected items for vibrant variant. |
|
|
323
|
+
| `--m3e-vibrant-menu-item-selected-color` | Text color for selected items for vibrant variant. |
|
|
324
|
+
| `--m3e-vibrant-menu-item-selected-container-color` | Background color for selected items for vibrant variant. |
|
|
325
|
+
| `--m3e-vibrant-menu-item-selected-container-hover-color` | State layer hover color for selected items for vibrant variant. |
|
|
326
|
+
| `--m3e-vibrant-menu-item-selected-container-focus-color` | State layer focus color for selected items for vibrant variant. |
|
|
327
|
+
| `--m3e-vibrant-menu-item-selected-ripple-color` | Ripple color for selected items for vibrant variant. |
|
|
328
|
+
| `--m3e-vibrant-menu-item-active-state-layer-color` | State layer color for expanded items for vibrant variant. |
|
|
329
|
+
| `--m3e-vibrant-menu-item-disabled-color` | Base color for disabled items for vibrant variant. |
|
|
330
|
+
| `--m3e-menu-item-icon-label-space` | Horizontal gap between icon and content. |
|
|
331
|
+
| `--m3e-menu-item-padding-start` | Start padding for the item wrapper. |
|
|
332
|
+
| `--m3e-menu-item-padding-end` | End padding for the item wrapper. |
|
|
333
|
+
| `--m3e-menu-item-label-text-font-size` | Font size for menu item text. |
|
|
334
|
+
| `--m3e-menu-item-label-text-font-weight` | Font weight for menu item text. |
|
|
335
|
+
| `--m3e-menu-item-label-text-line-height` | Line height for menu item text. |
|
|
336
|
+
| `--m3e-menu-item-label-text-tracking` | Letter spacing for menu item text. |
|
|
337
|
+
| `--m3e-menu-item-focus-ring-shape` | Border radius for the focus ring. |
|
|
338
|
+
| `--m3e-menu-item-icon-size` | Font size for leading and trailing icons. |
|
|
339
|
+
| `--m3e-menu-item-shape` | Base shape of the menu item. |
|
|
340
|
+
| `--m3e-menu-item-selected-shape` | Shape used for a selected menu item. |
|
|
341
|
+
| `--m3e-menu-item-first-child-shape` | Shape for the first menu item in a menu. |
|
|
342
|
+
| `--m3e-menu-item-last-child-shape` | Shape for the last menu item in a menu. |
|
|
288
343
|
|
|
289
344
|
### 🗂️ m3e-menu-item-group
|
|
290
345
|
|