mdui 2.1.1 → 2.1.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.
Files changed (72) hide show
  1. package/components/avatar/style.js +1 -1
  2. package/components/badge/style.js +1 -1
  3. package/components/bottom-app-bar/index.d.ts +1 -1
  4. package/components/bottom-app-bar/style.js +1 -1
  5. package/components/button/button-base.d.ts +1 -1
  6. package/components/button/style.js +2 -2
  7. package/components/button-icon/style.js +2 -2
  8. package/components/card/index.d.ts +1 -1
  9. package/components/card/style.js +1 -1
  10. package/components/checkbox/index.d.ts +1 -1
  11. package/components/checkbox/style.js +1 -1
  12. package/components/chip/style.js +2 -2
  13. package/components/circular-progress/style.js +1 -1
  14. package/components/dialog/style.js +1 -1
  15. package/components/divider/style.js +1 -1
  16. package/components/dropdown/index.js +9 -4
  17. package/components/fab/style.js +2 -2
  18. package/components/icon/style.js +1 -1
  19. package/components/layout/layout-style.js +1 -1
  20. package/components/list/list-item-style.js +2 -2
  21. package/components/list/list-item.d.ts +1 -1
  22. package/components/menu/menu-item-style.js +1 -1
  23. package/components/menu/menu-item.d.ts +1 -1
  24. package/components/navigation-bar/navigation-bar-item.d.ts +1 -1
  25. package/components/navigation-bar/navigation-bar-style.js +1 -1
  26. package/components/navigation-bar/navigation-bar.d.ts +1 -1
  27. package/components/navigation-drawer/index.d.ts +1 -0
  28. package/components/navigation-drawer/index.js +17 -11
  29. package/components/navigation-drawer/style.js +1 -1
  30. package/components/navigation-rail/navigation-rail-item.d.ts +1 -1
  31. package/components/navigation-rail/navigation-rail-style.js +1 -1
  32. package/components/radio/radio-style.js +1 -1
  33. package/components/radio/radio.d.ts +1 -1
  34. package/components/ripple/ripple-mixin.d.ts +1 -1
  35. package/components/segmented-button/segmented-button-group-style.js +1 -1
  36. package/components/segmented-button/segmented-button-style.js +1 -1
  37. package/components/select/index.d.ts +1 -3
  38. package/components/select/index.js +6 -6
  39. package/components/slider/slider-base-style.js +1 -1
  40. package/components/slider/slider-base.d.ts +1 -1
  41. package/components/snackbar/index.d.ts +12 -0
  42. package/components/snackbar/index.js +105 -46
  43. package/components/snackbar/style.js +1 -1
  44. package/components/switch/index.d.ts +1 -1
  45. package/components/switch/style.js +1 -1
  46. package/components/tabs/tab-style.js +1 -1
  47. package/components/tabs/tab.d.ts +1 -1
  48. package/components/tabs/tabs-style.js +1 -1
  49. package/components/tabs/tabs.d.ts +2 -2
  50. package/components/tabs/tabs.js +6 -4
  51. package/components/text-field/index.d.ts +6 -8
  52. package/components/text-field/index.js +35 -31
  53. package/components/text-field/style.js +1 -1
  54. package/components/tooltip/index.js +6 -4
  55. package/components/top-app-bar/top-app-bar-style.js +1 -1
  56. package/components/top-app-bar/top-app-bar.d.ts +1 -1
  57. package/components/top-app-bar/top-app-bar.js +1 -1
  58. package/custom-elements.json +5920 -7207
  59. package/functions/alert.js +5 -3
  60. package/functions/confirm.js +5 -3
  61. package/functions/dialog.js +8 -3
  62. package/functions/prompt.js +5 -3
  63. package/functions/snackbar.js +8 -2
  64. package/html-data.en.json +580 -586
  65. package/html-data.zh-cn.json +580 -586
  66. package/jsx.en.d.ts +424 -427
  67. package/jsx.zh-cn.d.ts +424 -427
  68. package/mdui.esm.js +8 -8
  69. package/mdui.global.js +8 -8
  70. package/package.json +9 -10
  71. package/web-types.en.json +1285 -1275
  72. package/web-types.zh-cn.json +1285 -1275
package/jsx.en.d.ts CHANGED
@@ -109,49 +109,53 @@ declare global {
109
109
  'order'?: number;
110
110
  } & HTMLElementProps;
111
111
  /**
112
- * Button Component
112
+ * Icon Button Component
113
113
  *
114
114
  * ```html
115
- * <mdui-button>Button</mdui-button>
115
+ * <mdui-button-icon icon="search"></mdui-button-icon>
116
116
  * ```
117
- * @see https://www.mdui.org/en/docs/2/components/button
117
+ * @see https://www.mdui.org/en/docs/2/components/button-icon
118
118
  */
119
- 'mdui-button': {
119
+ 'mdui-button-icon': {
120
120
  /**
121
- * Defines the button style. Possible values:
122
- * * `elevated`: A shadowed button for visual distinction.
123
- * * `filled`: Used for final actions like 'Save' or 'Confirm'.
124
- * * `tonal`: A mix between `filled` and `outlined`, suitable for medium to high-priority actions.
125
- * * `outlined`: A bordered button for medium-priority and secondary actions.
126
- * * `text`: A text button for low-priority actions.
127
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-variant
121
+ * Defines the icon button style. Possible values:
122
+ * * `standard`: For low-priority actions.
123
+ * * `filled`: Has the strongest visual effect, suitable for high-priority actions.
124
+ * * `tonal`: A visual effect between `filled` and `outlined`, suitable for medium to high-priority actions.
125
+ * * `outlined`: For medium-priority actions.
126
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-variant
128
127
  */
129
- 'variant'?: 'elevated' | 'filled' | 'tonal' | 'outlined' | 'text';
128
+ 'variant'?: 'standard' | 'filled' | 'tonal' | 'outlined';
130
129
  /**
131
- * If set, the button will fill the width of its parent element.
132
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-full-width
130
+ * Specifies the Material Icons name. Alternatively, use the default slot.
131
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-icon
133
132
  */
134
- 'full-width'?: boolean;
133
+ 'icon'?: string;
135
134
  /**
136
- * Specifies the Material Icons name on the left. Alternatively, use `slot="icon"`.
137
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-icon
135
+ * Specifies the Material Icons name when selected. Alternatively, use `slot="selected-icon"`.
136
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-selected-icon
138
137
  */
139
- 'icon'?: string;
138
+ 'selected-icon'?: string;
140
139
  /**
141
- * Specifies the Material Icons name on the right. Alternatively, use `slot="end-icon"`.
142
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-end-icon
140
+ * Indicates if the button is selectable.
141
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-selectable
143
142
  */
144
- 'end-icon'?: string;
143
+ 'selectable'?: boolean;
144
+ /**
145
+ * Indicates if the button is selected.
146
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-selected
147
+ */
148
+ 'selected'?: boolean;
145
149
  /**
146
150
  * The URL for the hyperlink. If provided, the component is rendered as an `<a>` element and can use link-related attributes.
147
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-href
151
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-href
148
152
  */
149
153
  'href'?: string;
150
154
  /**
151
155
  * Instructs the browser to download the linked URL.
152
156
  *
153
157
  * **Note**: This is only available when `href` is specified.
154
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-download
158
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-download
155
159
  */
156
160
  'download'?: string;
157
161
  /**
@@ -163,7 +167,7 @@ declare global {
163
167
  * * `_top`: Opens in the topmost browsing context or `_self` if no ancestors.
164
168
  *
165
169
  * **Note**: This is only available when `href` is specified.
166
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-target
170
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-target
167
171
  */
168
172
  'target'?: '_blank' | '_parent' | '_self' | '_top';
169
173
  /**
@@ -185,41 +189,41 @@ declare global {
185
189
  * * `tag`: Gives a tag (identified by the given address) that applies to the current document.
186
190
  *
187
191
  * **Note**: This is only available when `href` is specified.
188
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-rel
192
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-rel
189
193
  */
190
194
  'rel'?: 'alternate' | 'author' | 'bookmark' | 'external' | 'help' | 'license' | 'me' | 'next' | 'nofollow' | 'noreferrer' | 'opener' | 'prev' | 'search' | 'tag';
191
195
  /**
192
196
  * Specifies that the element should be focused when the page loads.
193
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-autofocus
197
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-autofocus
194
198
  */
195
199
  'autofocus'?: boolean;
196
200
  /**
197
201
  * Defines the order in which the element receives focus when navigating with the Tab key.
198
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-tabindex
202
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-tabindex
199
203
  */
200
204
  'tabindex'?: number;
201
205
  /**
202
206
  * Disables the element.
203
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-disabled
207
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-disabled
204
208
  */
205
209
  'disabled'?: boolean;
206
210
  /**
207
211
  * Indicates that the element is in a loading state.
208
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-loading
212
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-loading
209
213
  */
210
214
  'loading'?: boolean;
211
215
  /**
212
216
  * The button's name, which is submitted with form data.
213
217
  *
214
218
  * **Note**: This is only available when `href` is not specified.
215
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-name
219
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-name
216
220
  */
217
221
  'name'?: string;
218
222
  /**
219
223
  * The button's value, which is submitted with form data.
220
224
  *
221
225
  * **Note**: This is only available when `href` is not specified.
222
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-value
226
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-value
223
227
  */
224
228
  'value'?: string;
225
229
  /**
@@ -230,7 +234,7 @@ declare global {
230
234
  * * `button`: No default behavior, does nothing when pressed by default.
231
235
  *
232
236
  * **Note**: This is only available when `href` is not specified.
233
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-type
237
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-type
234
238
  */
235
239
  'type'?: 'submit' | 'reset' | 'button';
236
240
  /**
@@ -239,14 +243,14 @@ declare global {
239
243
  * This attribute allows button elements to be associated with `<form>`s anywhere in the document, not just inside a `<form>`.
240
244
  *
241
245
  * **Note**: Only available when `href` is not specified.
242
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-form
246
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-form
243
247
  */
244
248
  'form'?: string;
245
249
  /**
246
250
  * Specifies the URL that processes the button's submitted information. Overrides the `action` attribute of the button's form owner.
247
251
  *
248
252
  * **Note**: Only available when `href` is not specified and `type="submit"`.
249
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-formaction
253
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-formaction
250
254
  */
251
255
  'formaction'?: string;
252
256
  /**
@@ -259,7 +263,7 @@ declare global {
259
263
  * Overrides the `enctype` attribute of the button's form owner.
260
264
  *
261
265
  * **Note**: Only available when `href` is not specified and `type="submit"`.
262
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-formenctype
266
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-formenctype
263
267
  */
264
268
  'formenctype'?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
265
269
  /**
@@ -271,14 +275,14 @@ declare global {
271
275
  * Overrides the `method` attribute of the button's form owner.
272
276
  *
273
277
  * **Note**: Only available when `href` is not specified and `type="submit"`.
274
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-formmethod
278
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-formmethod
275
279
  */
276
280
  'formmethod'?: 'post' | 'get';
277
281
  /**
278
282
  * Specifies that the form should not be validated on submission. Overrides the `novalidate` attribute of the button's form owner.
279
283
  *
280
284
  * **Note**: Only available when `href` is not specified and `type="submit"`.
281
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-formnovalidate
285
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-formnovalidate
282
286
  */
283
287
  'formnovalidate'?: boolean;
284
288
  /**
@@ -292,58 +296,54 @@ declare global {
292
296
  * Overrides the `target` attribute of the button's form owner.
293
297
  *
294
298
  * **Note**: Only available when `href` is not specified and `type="submit"`.
295
- * @see https://www.mdui.org/en/docs/2/components/button#attributes-formtarget
299
+ * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-formtarget
296
300
  */
297
301
  'formtarget'?: '_self' | '_blank' | '_parent' | '_top';
298
302
  } & HTMLElementProps;
299
303
  /**
300
- * Icon Button Component
304
+ * Button Component
301
305
  *
302
306
  * ```html
303
- * <mdui-button-icon icon="search"></mdui-button-icon>
307
+ * <mdui-button>Button</mdui-button>
304
308
  * ```
305
- * @see https://www.mdui.org/en/docs/2/components/button-icon
309
+ * @see https://www.mdui.org/en/docs/2/components/button
306
310
  */
307
- 'mdui-button-icon': {
308
- /**
309
- * Defines the icon button style. Possible values:
310
- * * `standard`: For low-priority actions.
311
- * * `filled`: Has the strongest visual effect, suitable for high-priority actions.
312
- * * `tonal`: A visual effect between `filled` and `outlined`, suitable for medium to high-priority actions.
313
- * * `outlined`: For medium-priority actions.
314
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-variant
315
- */
316
- 'variant'?: 'standard' | 'filled' | 'tonal' | 'outlined';
311
+ 'mdui-button': {
317
312
  /**
318
- * Specifies the Material Icons name. Alternatively, use the default slot.
319
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-icon
313
+ * Defines the button style. Possible values:
314
+ * * `elevated`: A shadowed button for visual distinction.
315
+ * * `filled`: Used for final actions like 'Save' or 'Confirm'.
316
+ * * `tonal`: A mix between `filled` and `outlined`, suitable for medium to high-priority actions.
317
+ * * `outlined`: A bordered button for medium-priority and secondary actions.
318
+ * * `text`: A text button for low-priority actions.
319
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-variant
320
320
  */
321
- 'icon'?: string;
321
+ 'variant'?: 'elevated' | 'filled' | 'tonal' | 'outlined' | 'text';
322
322
  /**
323
- * Specifies the Material Icons name when selected. Alternatively, use `slot="selected-icon"`.
324
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-selected-icon
323
+ * If set, the button will fill the width of its parent element.
324
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-full-width
325
325
  */
326
- 'selected-icon'?: string;
326
+ 'full-width'?: boolean;
327
327
  /**
328
- * Indicates if the button is selectable.
329
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-selectable
328
+ * Specifies the Material Icons name on the left. Alternatively, use `slot="icon"`.
329
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-icon
330
330
  */
331
- 'selectable'?: boolean;
331
+ 'icon'?: string;
332
332
  /**
333
- * Indicates if the button is selected.
334
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-selected
333
+ * Specifies the Material Icons name on the right. Alternatively, use `slot="end-icon"`.
334
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-end-icon
335
335
  */
336
- 'selected'?: boolean;
336
+ 'end-icon'?: string;
337
337
  /**
338
338
  * The URL for the hyperlink. If provided, the component is rendered as an `<a>` element and can use link-related attributes.
339
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-href
339
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-href
340
340
  */
341
341
  'href'?: string;
342
342
  /**
343
343
  * Instructs the browser to download the linked URL.
344
344
  *
345
345
  * **Note**: This is only available when `href` is specified.
346
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-download
346
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-download
347
347
  */
348
348
  'download'?: string;
349
349
  /**
@@ -355,7 +355,7 @@ declare global {
355
355
  * * `_top`: Opens in the topmost browsing context or `_self` if no ancestors.
356
356
  *
357
357
  * **Note**: This is only available when `href` is specified.
358
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-target
358
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-target
359
359
  */
360
360
  'target'?: '_blank' | '_parent' | '_self' | '_top';
361
361
  /**
@@ -377,41 +377,41 @@ declare global {
377
377
  * * `tag`: Gives a tag (identified by the given address) that applies to the current document.
378
378
  *
379
379
  * **Note**: This is only available when `href` is specified.
380
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-rel
380
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-rel
381
381
  */
382
382
  'rel'?: 'alternate' | 'author' | 'bookmark' | 'external' | 'help' | 'license' | 'me' | 'next' | 'nofollow' | 'noreferrer' | 'opener' | 'prev' | 'search' | 'tag';
383
383
  /**
384
384
  * Specifies that the element should be focused when the page loads.
385
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-autofocus
385
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-autofocus
386
386
  */
387
387
  'autofocus'?: boolean;
388
388
  /**
389
389
  * Defines the order in which the element receives focus when navigating with the Tab key.
390
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-tabindex
390
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-tabindex
391
391
  */
392
392
  'tabindex'?: number;
393
393
  /**
394
394
  * Disables the element.
395
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-disabled
395
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-disabled
396
396
  */
397
397
  'disabled'?: boolean;
398
398
  /**
399
399
  * Indicates that the element is in a loading state.
400
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-loading
400
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-loading
401
401
  */
402
402
  'loading'?: boolean;
403
403
  /**
404
404
  * The button's name, which is submitted with form data.
405
405
  *
406
406
  * **Note**: This is only available when `href` is not specified.
407
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-name
407
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-name
408
408
  */
409
409
  'name'?: string;
410
410
  /**
411
411
  * The button's value, which is submitted with form data.
412
412
  *
413
413
  * **Note**: This is only available when `href` is not specified.
414
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-value
414
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-value
415
415
  */
416
416
  'value'?: string;
417
417
  /**
@@ -422,7 +422,7 @@ declare global {
422
422
  * * `button`: No default behavior, does nothing when pressed by default.
423
423
  *
424
424
  * **Note**: This is only available when `href` is not specified.
425
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-type
425
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-type
426
426
  */
427
427
  'type'?: 'submit' | 'reset' | 'button';
428
428
  /**
@@ -431,14 +431,14 @@ declare global {
431
431
  * This attribute allows button elements to be associated with `<form>`s anywhere in the document, not just inside a `<form>`.
432
432
  *
433
433
  * **Note**: Only available when `href` is not specified.
434
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-form
434
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-form
435
435
  */
436
436
  'form'?: string;
437
437
  /**
438
438
  * Specifies the URL that processes the button's submitted information. Overrides the `action` attribute of the button's form owner.
439
439
  *
440
440
  * **Note**: Only available when `href` is not specified and `type="submit"`.
441
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-formaction
441
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-formaction
442
442
  */
443
443
  'formaction'?: string;
444
444
  /**
@@ -451,7 +451,7 @@ declare global {
451
451
  * Overrides the `enctype` attribute of the button's form owner.
452
452
  *
453
453
  * **Note**: Only available when `href` is not specified and `type="submit"`.
454
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-formenctype
454
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-formenctype
455
455
  */
456
456
  'formenctype'?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
457
457
  /**
@@ -463,14 +463,14 @@ declare global {
463
463
  * Overrides the `method` attribute of the button's form owner.
464
464
  *
465
465
  * **Note**: Only available when `href` is not specified and `type="submit"`.
466
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-formmethod
466
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-formmethod
467
467
  */
468
468
  'formmethod'?: 'post' | 'get';
469
469
  /**
470
470
  * Specifies that the form should not be validated on submission. Overrides the `novalidate` attribute of the button's form owner.
471
471
  *
472
472
  * **Note**: Only available when `href` is not specified and `type="submit"`.
473
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-formnovalidate
473
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-formnovalidate
474
474
  */
475
475
  'formnovalidate'?: boolean;
476
476
  /**
@@ -484,7 +484,7 @@ declare global {
484
484
  * Overrides the `target` attribute of the button's form owner.
485
485
  *
486
486
  * **Note**: Only available when `href` is not specified and `type="submit"`.
487
- * @see https://www.mdui.org/en/docs/2/components/button-icon#attributes-formtarget
487
+ * @see https://www.mdui.org/en/docs/2/components/button#attributes-formtarget
488
488
  */
489
489
  'formtarget'?: '_self' | '_blank' | '_parent' | '_top';
490
490
  } & HTMLElementProps;
@@ -878,7 +878,7 @@ declare global {
878
878
  'value'?: number;
879
879
  } & HTMLElementProps;
880
880
  /**
881
- * Collapse Panel Component It should be used in conjunction with the `<mdui-collapse-item>` component
881
+ * Collapse Item Component It should be used in conjunction with the `<mdui-collapse>` component
882
882
  *
883
883
  * ```html
884
884
  * <mdui-collapse>
@@ -888,27 +888,30 @@ declare global {
888
888
  * ```
889
889
  * @see https://www.mdui.org/en/docs/2/components/collapse
890
890
  */
891
- 'mdui-collapse': {
891
+ 'mdui-collapse-item': {
892
892
  /**
893
- * Activates accordion mode.
894
- * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-attributes-accordion
893
+ * Specifies the value of the collapsible panel item.
894
+ * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-item-attributes-value
895
895
  */
896
- 'accordion'?: boolean;
896
+ 'value'?: string;
897
897
  /**
898
- * Specifies the open `<mdui-collapse-item>` value.
899
- *
900
- * Note: The HTML attribute is always a string and can only be initially set when `accordion` is `true`. The JavaScript property value is a string when `accordion` is `true` and a string array when `accordion` is `false`. To modify this value when `accordion` is `false`, you must change the JavaScript property.
901
- * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-attributes-value
898
+ * Sets the header text for the collapsible panel item.
899
+ * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-item-attributes-header
902
900
  */
903
- 'value'?: string | string[];
901
+ 'header'?: string;
904
902
  /**
905
- * Disables the collapsible panel.
906
- * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-attributes-disabled
903
+ * Disables the collapsible panel item.
904
+ * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-item-attributes-disabled
907
905
  */
908
906
  'disabled'?: boolean;
907
+ /**
908
+ * Identifies the element that triggers the collapse on click. This can be a CSS selector, a DOM element, or a [JQ object](https://www.mdui.org/en/docs/2/functions/jq). By default, the entire header area is the trigger.
909
+ * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-item-attributes-trigger
910
+ */
911
+ 'trigger'?: string | HTMLElement | JQ<HTMLElement>;
909
912
  } & HTMLElementProps;
910
913
  /**
911
- * Collapse Item Component It should be used in conjunction with the `<mdui-collapse>` component
914
+ * Collapse Panel Component It should be used in conjunction with the `<mdui-collapse-item>` component
912
915
  *
913
916
  * ```html
914
917
  * <mdui-collapse>
@@ -918,27 +921,24 @@ declare global {
918
921
  * ```
919
922
  * @see https://www.mdui.org/en/docs/2/components/collapse
920
923
  */
921
- 'mdui-collapse-item': {
924
+ 'mdui-collapse': {
922
925
  /**
923
- * Specifies the value of the collapsible panel item.
924
- * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-item-attributes-value
926
+ * Activates accordion mode.
927
+ * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-attributes-accordion
925
928
  */
926
- 'value'?: string;
929
+ 'accordion'?: boolean;
927
930
  /**
928
- * Sets the header text for the collapsible panel item.
929
- * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-item-attributes-header
931
+ * Specifies the open `<mdui-collapse-item>` value.
932
+ *
933
+ * Note: The HTML attribute is always a string and can only be initially set when `accordion` is `true`. The JavaScript property value is a string when `accordion` is `true` and a string array when `accordion` is `false`. To modify this value when `accordion` is `false`, you must change the JavaScript property.
934
+ * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-attributes-value
930
935
  */
931
- 'header'?: string;
936
+ 'value'?: string | string[];
932
937
  /**
933
- * Disables the collapsible panel item.
934
- * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-item-attributes-disabled
938
+ * Disables the collapsible panel.
939
+ * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-attributes-disabled
935
940
  */
936
941
  'disabled'?: boolean;
937
- /**
938
- * Identifies the element that triggers the collapse on click. This can be a CSS selector, a DOM element, or a [JQ object](https://www.mdui.org/en/docs/2/functions/jq). By default, the entire header area is the trigger.
939
- * @see https://www.mdui.org/en/docs/2/components/collapse#collapse-item-attributes-trigger
940
- */
941
- 'trigger'?: string | HTMLElement | JQ<HTMLElement>;
942
942
  } & HTMLElementProps;
943
943
  /**
944
944
  * Dialog Component
@@ -1302,25 +1302,6 @@ declare global {
1302
1302
  */
1303
1303
  'src'?: string;
1304
1304
  } & HTMLElementProps;
1305
- /**
1306
- * Layout Component
1307
- *
1308
- * ```html
1309
- * <mdui-layout>
1310
- * <mdui-layout-item></mdui-layout-item>
1311
- * <mdui-layout-item></mdui-layout-item>
1312
- * <mdui-layout-main></mdui-layout-main>
1313
- * </mdui-layout>
1314
- * ```
1315
- * @see https://www.mdui.org/en/docs/2/components/layout
1316
- */
1317
- 'mdui-layout': {
1318
- /**
1319
- * Sets the layout height to 100%.
1320
- * @see https://www.mdui.org/en/docs/2/components/layout#layout-attributes-full-height
1321
- */
1322
- 'full-height'?: boolean;
1323
- } & HTMLElementProps;
1324
1305
  /**
1325
1306
  * Layout Item Component
1326
1307
  *
@@ -1364,6 +1345,25 @@ declare global {
1364
1345
  */
1365
1346
  'mdui-layout-main': {
1366
1347
 
1348
+ } & HTMLElementProps;
1349
+ /**
1350
+ * Layout Component
1351
+ *
1352
+ * ```html
1353
+ * <mdui-layout>
1354
+ * <mdui-layout-item></mdui-layout-item>
1355
+ * <mdui-layout-item></mdui-layout-item>
1356
+ * <mdui-layout-main></mdui-layout-main>
1357
+ * </mdui-layout>
1358
+ * ```
1359
+ * @see https://www.mdui.org/en/docs/2/components/layout
1360
+ */
1361
+ 'mdui-layout': {
1362
+ /**
1363
+ * Sets the layout height to 100%.
1364
+ * @see https://www.mdui.org/en/docs/2/components/layout#layout-attributes-full-height
1365
+ */
1366
+ 'full-height'?: boolean;
1367
1367
  } & HTMLElementProps;
1368
1368
  /**
1369
1369
  * Linear Progress Component
@@ -1386,22 +1386,7 @@ declare global {
1386
1386
  'value'?: number;
1387
1387
  } & HTMLElementProps;
1388
1388
  /**
1389
- * List Component It should be used in conjunction with the `<mdui-list-item>` component
1390
- *
1391
- * ```html
1392
- * <mdui-list>
1393
- * <mdui-list-subheader>Subheader</mdui-list-subheader>
1394
- * <mdui-list-item>Item 1</mdui-list-item>
1395
- * <mdui-list-item>Item 2</mdui-list-item>
1396
- * </mdui-list>
1397
- * ```
1398
- * @see https://www.mdui.org/en/docs/2/components/list
1399
- */
1400
- 'mdui-list': {
1401
-
1402
- } & HTMLElementProps;
1403
- /**
1404
- * List Item Component It should be used in conjunction with the `<mdui-list>` component
1389
+ * List Item Component It should be used in conjunction with the `<mdui-list>` component
1405
1390
  *
1406
1391
  * ```html
1407
1392
  * <mdui-list>
@@ -1553,57 +1538,19 @@ declare global {
1553
1538
 
1554
1539
  } & HTMLElementProps;
1555
1540
  /**
1556
- * Menu Component It should be used in conjunction with the `<mdui-menu-item>` component
1541
+ * List Component It should be used in conjunction with the `<mdui-list-item>` component
1557
1542
  *
1558
1543
  * ```html
1559
- * <mdui-menu>
1560
- * <mdui-menu-item>Item 1</mdui-menu-item>
1561
- * <mdui-menu-item>Item 2</mdui-menu-item>
1562
- * </mdui-menu>
1544
+ * <mdui-list>
1545
+ * <mdui-list-subheader>Subheader</mdui-list-subheader>
1546
+ * <mdui-list-item>Item 1</mdui-list-item>
1547
+ * <mdui-list-item>Item 2</mdui-list-item>
1548
+ * </mdui-list>
1563
1549
  * ```
1564
- * @see https://www.mdui.org/en/docs/2/components/menu
1550
+ * @see https://www.mdui.org/en/docs/2/components/list
1565
1551
  */
1566
- 'mdui-menu': {
1567
- /**
1568
- * Defines the selectable state of menu items. Defaults to non-selectable. Possible values:
1569
- *
1570
- * * `single`: Only one item can be selected at a time.
1571
- * * `multiple`: Multiple items can be selected.
1572
- * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-selects
1573
- */
1574
- 'selects'?: 'single' | 'multiple';
1575
- /**
1576
- * The value of the selected `<mdui-menu-item>`.
1577
- *
1578
- * Note: The HTML attribute is always a string and can only be set as an initial value when `selects="single"`. The JavaScript property value is a string when `selects="single"` and an array of strings when `selects="multiple"`. In `selects="multiple"`, this value can only be modified by changing the JavaScript property.
1579
- * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-value
1580
- */
1581
- 'value'?: string | string[];
1582
- /**
1583
- * Indicates whether the menu items use a compact layout.
1584
- * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-dense
1585
- */
1586
- 'dense'?: boolean;
1587
- /**
1588
- * Defines the trigger method for submenus. Supports multiple values separated by spaces. Possible values:
1589
- *
1590
- * * `click`: Open submenu when clicking on a menu item.
1591
- * * `hover`: Open submenu when hovering over a menu item.
1592
- * * `focus`: Open submenu when focusing on a menu item.
1593
- * * `manual`: Only programmatically open and close submenus, no other trigger methods can be specified.
1594
- * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-submenu-trigger
1595
- */
1596
- 'submenu-trigger'?: 'click' | 'hover' | 'focus' | 'manual' | string;
1597
- /**
1598
- * Specifies the delay (in milliseconds) for opening a submenu via hover.
1599
- * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-submenu-open-delay
1600
- */
1601
- 'submenu-open-delay'?: number;
1602
- /**
1603
- * Specifies the delay (in milliseconds) for closing a submenu via hover.
1604
- * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-submenu-close-delay
1605
- */
1606
- 'submenu-close-delay'?: number;
1552
+ 'mdui-list': {
1553
+
1607
1554
  } & HTMLElementProps;
1608
1555
  /**
1609
1556
  * Menu Item Component
@@ -1710,60 +1657,57 @@ declare global {
1710
1657
  'tabindex'?: number;
1711
1658
  } & HTMLElementProps;
1712
1659
  /**
1713
- * Navigation Bar Component It should be used in conjunction with the `<mdui-navigation-bar-item>` component
1660
+ * Menu Component It should be used in conjunction with the `<mdui-menu-item>` component
1714
1661
  *
1715
1662
  * ```html
1716
- * <mdui-navigation-bar>
1717
- * <mdui-navigation-bar-item icon="place">Item 1</mdui-navigation-bar-item>
1718
- * <mdui-navigation-bar-item icon="commute">Item 2</mdui-navigation-bar-item>
1719
- * <mdui-navigation-bar-item icon="people">Item 3</mdui-navigation-bar-item>
1720
- * </mdui-navigation-bar>
1663
+ * <mdui-menu>
1664
+ * <mdui-menu-item>Item 1</mdui-menu-item>
1665
+ * <mdui-menu-item>Item 2</mdui-menu-item>
1666
+ * </mdui-menu>
1721
1667
  * ```
1722
- * @see https://www.mdui.org/en/docs/2/components/navigation-bar
1668
+ * @see https://www.mdui.org/en/docs/2/components/menu
1723
1669
  */
1724
- 'mdui-navigation-bar': {
1670
+ 'mdui-menu': {
1725
1671
  /**
1726
- * Hides the navigation bar when set.
1727
- * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-hide
1672
+ * Defines the selectable state of menu items. Defaults to non-selectable. Possible values:
1673
+ *
1674
+ * * `single`: Only one item can be selected at a time.
1675
+ * * `multiple`: Multiple items can be selected.
1676
+ * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-selects
1728
1677
  */
1729
- 'hide'?: boolean;
1678
+ 'selects'?: 'single' | 'multiple';
1730
1679
  /**
1731
- * Specifies the visibility of the text. Possible values:
1680
+ * The value of the selected `<mdui-menu-item>`.
1732
1681
  *
1733
- * * `auto`: Visible if there are 3 or fewer options, otherwise only the selected state is visible.
1734
- * * `selected`: Only visible in the selected state.
1735
- * * `labeled`: Always visible.
1736
- * * `unlabeled`: Never visible.
1737
- * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-label-visibility
1682
+ * Note: The HTML attribute is always a string and can only be set as an initial value when `selects="single"`. The JavaScript property value is a string when `selects="single"` and an array of strings when `selects="multiple"`. In `selects="multiple"`, this value can only be modified by changing the JavaScript property.
1683
+ * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-value
1738
1684
  */
1739
- 'label-visibility'?: 'auto' | 'selected' | 'labeled' | 'unlabeled';
1685
+ 'value'?: string | string[];
1740
1686
  /**
1741
- * The value of the selected `<mdui-navigation-bar-item>`.
1742
- * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-value
1687
+ * Indicates whether the menu items use a compact layout.
1688
+ * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-dense
1743
1689
  */
1744
- 'value'?: string;
1690
+ 'dense'?: boolean;
1745
1691
  /**
1746
- * Defines the scroll behavior. Possible values:
1692
+ * Defines the trigger method for submenus. Supports multiple values separated by spaces. Possible values:
1747
1693
  *
1748
- * * `hide`: Hides when scrolling.
1749
- * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-behavior
1750
- */
1751
- 'scroll-behavior'?: 'hide' | 'shrink' | 'elevate';
1752
- /**
1753
- * The element that listens for scroll events. Accepts a CSS selector, DOM element, or [JQ object](https://www.mdui.org/en/docs/2/functions/jq). Defaults to `window`.
1754
- * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-target
1694
+ * * `click`: Open submenu when clicking on a menu item.
1695
+ * * `hover`: Open submenu when hovering over a menu item.
1696
+ * * `focus`: Open submenu when focusing on a menu item.
1697
+ * * `manual`: Only programmatically open and close submenus, no other trigger methods can be specified.
1698
+ * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-submenu-trigger
1755
1699
  */
1756
- 'scroll-target'?: string | HTMLElement | JQ<HTMLElement>;
1700
+ 'submenu-trigger'?: 'click' | 'hover' | 'focus' | 'manual' | string;
1757
1701
  /**
1758
- * The scroll distance (in pixels) that triggers the scroll behavior.
1759
- * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-threshold
1702
+ * Specifies the delay (in milliseconds) for opening a submenu via hover.
1703
+ * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-submenu-open-delay
1760
1704
  */
1761
- 'scroll-threshold'?: number;
1705
+ 'submenu-open-delay'?: number;
1762
1706
  /**
1763
- * Specifies the layout order within the [`<mdui-layout>`](https://www.mdui.org/en/docs/2/components/layout) component. Items are sorted in ascending order. The default value is `0`.
1764
- * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-order
1707
+ * Specifies the delay (in milliseconds) for closing a submenu via hover.
1708
+ * @see https://www.mdui.org/en/docs/2/components/menu#menu-attributes-submenu-close-delay
1765
1709
  */
1766
- 'order'?: number;
1710
+ 'submenu-close-delay'?: number;
1767
1711
  } & HTMLElementProps;
1768
1712
  /**
1769
1713
  * Navigation Bar Item Component It should be used in conjunction with the `<mdui-navigation-bar>` component
@@ -1850,6 +1794,62 @@ declare global {
1850
1794
  */
1851
1795
  'tabindex'?: number;
1852
1796
  } & HTMLElementProps;
1797
+ /**
1798
+ * Navigation Bar Component It should be used in conjunction with the `<mdui-navigation-bar-item>` component
1799
+ *
1800
+ * ```html
1801
+ * <mdui-navigation-bar>
1802
+ * <mdui-navigation-bar-item icon="place">Item 1</mdui-navigation-bar-item>
1803
+ * <mdui-navigation-bar-item icon="commute">Item 2</mdui-navigation-bar-item>
1804
+ * <mdui-navigation-bar-item icon="people">Item 3</mdui-navigation-bar-item>
1805
+ * </mdui-navigation-bar>
1806
+ * ```
1807
+ * @see https://www.mdui.org/en/docs/2/components/navigation-bar
1808
+ */
1809
+ 'mdui-navigation-bar': {
1810
+ /**
1811
+ * Hides the navigation bar when set.
1812
+ * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-hide
1813
+ */
1814
+ 'hide'?: boolean;
1815
+ /**
1816
+ * Specifies the visibility of the text. Possible values:
1817
+ *
1818
+ * * `auto`: Visible if there are 3 or fewer options, otherwise only the selected state is visible.
1819
+ * * `selected`: Only visible in the selected state.
1820
+ * * `labeled`: Always visible.
1821
+ * * `unlabeled`: Never visible.
1822
+ * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-label-visibility
1823
+ */
1824
+ 'label-visibility'?: 'auto' | 'selected' | 'labeled' | 'unlabeled';
1825
+ /**
1826
+ * The value of the selected `<mdui-navigation-bar-item>`.
1827
+ * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-value
1828
+ */
1829
+ 'value'?: string;
1830
+ /**
1831
+ * Defines the scroll behavior. Possible values:
1832
+ *
1833
+ * * `hide`: Hides when scrolling.
1834
+ * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-behavior
1835
+ */
1836
+ 'scroll-behavior'?: 'hide' | 'shrink' | 'elevate';
1837
+ /**
1838
+ * The element that listens for scroll events. Accepts a CSS selector, DOM element, or [JQ object](https://www.mdui.org/en/docs/2/functions/jq). Defaults to `window`.
1839
+ * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-target
1840
+ */
1841
+ 'scroll-target'?: string | HTMLElement | JQ<HTMLElement>;
1842
+ /**
1843
+ * The scroll distance (in pixels) that triggers the scroll behavior.
1844
+ * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-scroll-threshold
1845
+ */
1846
+ 'scroll-threshold'?: number;
1847
+ /**
1848
+ * Specifies the layout order within the [`<mdui-layout>`](https://www.mdui.org/en/docs/2/components/layout) component. Items are sorted in ascending order. The default value is `0`.
1849
+ * @see https://www.mdui.org/en/docs/2/components/navigation-bar#navigation-bar-attributes-order
1850
+ */
1851
+ 'order'?: number;
1852
+ } & HTMLElementProps;
1853
1853
  /**
1854
1854
  * Navigation Drawer Component
1855
1855
  *
@@ -1902,59 +1902,6 @@ declare global {
1902
1902
  */
1903
1903
  'order'?: number;
1904
1904
  } & HTMLElementProps;
1905
- /**
1906
- * Navigation Rail Component It should be used in conjunction with the `<mdui-navigation-rail-item>` component
1907
- *
1908
- * ```html
1909
- * <mdui-navigation-rail>
1910
- * <mdui-navigation-rail-item icon="watch_later">Recent</mdui-navigation-rail-item>
1911
- * <mdui-navigation-rail-item icon="image">Images</mdui-navigation-rail-item>
1912
- * <mdui-navigation-rail-item icon="library_music">Library</mdui-navigation-rail-item>
1913
- * </mdui-navigation-rail>
1914
- * ```
1915
- * @see https://www.mdui.org/en/docs/2/components/navigation-rail
1916
- */
1917
- 'mdui-navigation-rail': {
1918
- /**
1919
- * The value of the selected `<mdui-navigation-rail-item>`.
1920
- * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-value
1921
- */
1922
- 'value'?: string;
1923
- /**
1924
- * Sets the navigation bar's position. Possible values:
1925
- *
1926
- * * `left`: Display on the left.
1927
- * * `right`: Display on the right.
1928
- * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-placement
1929
- */
1930
- 'placement'?: 'left' | 'right';
1931
- /**
1932
- * Sets the alignment of `<mdui-navigation-rail-item>`. Possible values:
1933
- *
1934
- * * `start`: Aligns to the top.
1935
- * * `center`: Aligns to the center.
1936
- * * `end`: Aligns to the bottom.
1937
- * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-alignment
1938
- */
1939
- 'alignment'?: 'start' | 'center' | 'end';
1940
- /**
1941
- * By default, the navigation rail displays relative to the `body` element. When set, it displays relative to its parent element.
1942
- *
1943
- * Note: You must add `position: relative; overflow: hidden;` style to the parent element when this attribute is set.
1944
- * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-contained
1945
- */
1946
- 'contained'?: boolean;
1947
- /**
1948
- * Adds a divider between the navigation bar and the page content.
1949
- * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-divider
1950
- */
1951
- 'divider'?: boolean;
1952
- /**
1953
- * Specifies the layout order within the [`<mdui-layout>`](https://www.mdui.org/en/docs/2/components/layout) component. Items are sorted in ascending order. The default value is `0`.
1954
- * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-order
1955
- */
1956
- 'order'?: number;
1957
- } & HTMLElementProps;
1958
1905
  /**
1959
1906
  * Navigation Rail Item Component It should be used in conjunction with the `<mdui-navigation-rail>` component
1960
1907
  *
@@ -2025,20 +1972,113 @@ declare global {
2025
1972
  * * `search`: Links to a resource that can be used to search through the current document and its related pages.
2026
1973
  * * `tag`: Gives a tag (identified by the given address) that applies to the current document.
2027
1974
  *
2028
- * **Note**: This is only available when `href` is specified.
2029
- * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-item-attributes-rel
1975
+ * **Note**: This is only available when `href` is specified.
1976
+ * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-item-attributes-rel
1977
+ */
1978
+ 'rel'?: 'alternate' | 'author' | 'bookmark' | 'external' | 'help' | 'license' | 'me' | 'next' | 'nofollow' | 'noreferrer' | 'opener' | 'prev' | 'search' | 'tag';
1979
+ /**
1980
+ * Determines if the element should be focused when the page loads.
1981
+ * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-item-attributes-autofocus
1982
+ */
1983
+ 'autofocus'?: boolean;
1984
+ /**
1985
+ * Specifies the order in which the element receives focus when navigating with the Tab key.
1986
+ * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-item-attributes-tabindex
1987
+ */
1988
+ 'tabindex'?: number;
1989
+ } & HTMLElementProps;
1990
+ /**
1991
+ * Navigation Rail Component It should be used in conjunction with the `<mdui-navigation-rail-item>` component
1992
+ *
1993
+ * ```html
1994
+ * <mdui-navigation-rail>
1995
+ * <mdui-navigation-rail-item icon="watch_later">Recent</mdui-navigation-rail-item>
1996
+ * <mdui-navigation-rail-item icon="image">Images</mdui-navigation-rail-item>
1997
+ * <mdui-navigation-rail-item icon="library_music">Library</mdui-navigation-rail-item>
1998
+ * </mdui-navigation-rail>
1999
+ * ```
2000
+ * @see https://www.mdui.org/en/docs/2/components/navigation-rail
2001
+ */
2002
+ 'mdui-navigation-rail': {
2003
+ /**
2004
+ * The value of the selected `<mdui-navigation-rail-item>`.
2005
+ * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-value
2006
+ */
2007
+ 'value'?: string;
2008
+ /**
2009
+ * Sets the navigation bar's position. Possible values:
2010
+ *
2011
+ * * `left`: Display on the left.
2012
+ * * `right`: Display on the right.
2013
+ * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-placement
2014
+ */
2015
+ 'placement'?: 'left' | 'right';
2016
+ /**
2017
+ * Sets the alignment of `<mdui-navigation-rail-item>`. Possible values:
2018
+ *
2019
+ * * `start`: Aligns to the top.
2020
+ * * `center`: Aligns to the center.
2021
+ * * `end`: Aligns to the bottom.
2022
+ * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-alignment
2023
+ */
2024
+ 'alignment'?: 'start' | 'center' | 'end';
2025
+ /**
2026
+ * By default, the navigation rail displays relative to the `body` element. When set, it displays relative to its parent element.
2027
+ *
2028
+ * Note: You must add `position: relative; overflow: hidden;` style to the parent element when this attribute is set.
2029
+ * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-contained
2030
+ */
2031
+ 'contained'?: boolean;
2032
+ /**
2033
+ * Adds a divider between the navigation bar and the page content.
2034
+ * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-divider
2035
+ */
2036
+ 'divider'?: boolean;
2037
+ /**
2038
+ * Specifies the layout order within the [`<mdui-layout>`](https://www.mdui.org/en/docs/2/components/layout) component. Items are sorted in ascending order. The default value is `0`.
2039
+ * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-attributes-order
2040
+ */
2041
+ 'order'?: number;
2042
+ } & HTMLElementProps;
2043
+ /**
2044
+ * Radio Group Component It should be used in conjunction with the `<mdui-radio>` component
2045
+ *
2046
+ * ```html
2047
+ * <mdui-radio-group value="chinese">
2048
+ * <mdui-radio value="chinese">Chinese</mdui-radio>
2049
+ * <mdui-radio value="english">English</mdui-radio>
2050
+ * </mdui-radio-group>
2051
+ * ```
2052
+ * @see https://www.mdui.org/en/docs/2/components/radio
2053
+ */
2054
+ 'mdui-radio-group': {
2055
+ /**
2056
+ * Disables the radio group when set.
2057
+ * @see https://www.mdui.org/en/docs/2/components/radio#radio-group-attributes-disabled
2058
+ */
2059
+ 'disabled'?: boolean;
2060
+ /**
2061
+ * Associates the radio group with a `<form>` element. The value should be the `id` of a `<form>` in the same document. If not set, the radio group is associated with its parent `<form>`, if any.
2062
+ *
2063
+ * This attribute allows radio group elements to be associated with `<form>`s anywhere in the document, not just inside a `<form>`.
2064
+ * @see https://www.mdui.org/en/docs/2/components/radio#radio-group-attributes-form
2030
2065
  */
2031
- 'rel'?: 'alternate' | 'author' | 'bookmark' | 'external' | 'help' | 'license' | 'me' | 'next' | 'nofollow' | 'noreferrer' | 'opener' | 'prev' | 'search' | 'tag';
2066
+ 'form'?: string;
2032
2067
  /**
2033
- * Determines if the element should be focused when the page loads.
2034
- * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-item-attributes-autofocus
2068
+ * The name of the radio group, which is submitted with form data.
2069
+ * @see https://www.mdui.org/en/docs/2/components/radio#radio-group-attributes-name
2035
2070
  */
2036
- 'autofocus'?: boolean;
2071
+ 'name'?: string;
2037
2072
  /**
2038
- * Specifies the order in which the element receives focus when navigating with the Tab key.
2039
- * @see https://www.mdui.org/en/docs/2/components/navigation-rail#navigation-rail-item-attributes-tabindex
2073
+ * The value of the selected radio button, which is submitted with form data.
2074
+ * @see https://www.mdui.org/en/docs/2/components/radio#radio-group-attributes-value
2040
2075
  */
2041
- 'tabindex'?: number;
2076
+ 'value'?: string;
2077
+ /**
2078
+ * Requires a radio selection when the form is submitted.
2079
+ * @see https://www.mdui.org/en/docs/2/components/radio#radio-group-attributes-required
2080
+ */
2081
+ 'required'?: boolean;
2042
2082
  } & HTMLElementProps;
2043
2083
  /**
2044
2084
  * Radio Component It should be used in conjunction with the `<mdui-radio-group>` component
@@ -2088,46 +2128,6 @@ declare global {
2088
2128
  */
2089
2129
  'tabindex'?: number;
2090
2130
  } & HTMLElementProps;
2091
- /**
2092
- * Radio Group Component It should be used in conjunction with the `<mdui-radio>` component
2093
- *
2094
- * ```html
2095
- * <mdui-radio-group value="chinese">
2096
- * <mdui-radio value="chinese">Chinese</mdui-radio>
2097
- * <mdui-radio value="english">English</mdui-radio>
2098
- * </mdui-radio-group>
2099
- * ```
2100
- * @see https://www.mdui.org/en/docs/2/components/radio
2101
- */
2102
- 'mdui-radio-group': {
2103
- /**
2104
- * Disables the radio group when set.
2105
- * @see https://www.mdui.org/en/docs/2/components/radio#radio-group-attributes-disabled
2106
- */
2107
- 'disabled'?: boolean;
2108
- /**
2109
- * Associates the radio group with a `<form>` element. The value should be the `id` of a `<form>` in the same document. If not set, the radio group is associated with its parent `<form>`, if any.
2110
- *
2111
- * This attribute allows radio group elements to be associated with `<form>`s anywhere in the document, not just inside a `<form>`.
2112
- * @see https://www.mdui.org/en/docs/2/components/radio#radio-group-attributes-form
2113
- */
2114
- 'form'?: string;
2115
- /**
2116
- * The name of the radio group, which is submitted with form data.
2117
- * @see https://www.mdui.org/en/docs/2/components/radio#radio-group-attributes-name
2118
- */
2119
- 'name'?: string;
2120
- /**
2121
- * The value of the selected radio button, which is submitted with form data.
2122
- * @see https://www.mdui.org/en/docs/2/components/radio#radio-group-attributes-value
2123
- */
2124
- 'value'?: string;
2125
- /**
2126
- * Requires a radio selection when the form is submitted.
2127
- * @see https://www.mdui.org/en/docs/2/components/radio#radio-group-attributes-required
2128
- */
2129
- 'required'?: boolean;
2130
- } & HTMLElementProps;
2131
2131
  /**
2132
2132
  * Range Slider Component
2133
2133
  *
@@ -2190,6 +2190,62 @@ declare global {
2190
2190
  */
2191
2191
  'name'?: string;
2192
2192
  } & HTMLElementProps;
2193
+ /**
2194
+ * Segmented Button Group Component It should be used in conjunction with the `<mdui-segmented-button>` component
2195
+ *
2196
+ * ```html
2197
+ * <mdui-segmented-button-group>
2198
+ * <mdui-segmented-button>Day</mdui-segmented-button>
2199
+ * <mdui-segmented-button>Week</mdui-segmented-button>
2200
+ * <mdui-segmented-button>Month</mdui-segmented-button>
2201
+ * </mdui-segmented-button-group>
2202
+ * ```
2203
+ * @see https://www.mdui.org/en/docs/2/components/segmented-button
2204
+ */
2205
+ 'mdui-segmented-button-group': {
2206
+ /**
2207
+ * If set, the segmented button group will fill the width of its parent element.
2208
+ * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-full-width
2209
+ */
2210
+ 'full-width'?: boolean;
2211
+ /**
2212
+ * Defines selectable states. Default is non-selectable. Possible values:
2213
+ *
2214
+ * * `single`: Only one can be selected.
2215
+ * * `multiple`: Multiple selections are allowed.
2216
+ * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-selects
2217
+ */
2218
+ 'selects'?: 'single' | 'multiple';
2219
+ /**
2220
+ * Disables the segmented button group when set.
2221
+ * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-disabled
2222
+ */
2223
+ 'disabled'?: boolean;
2224
+ /**
2225
+ * Requires a selection when the form is submitted.
2226
+ * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-required
2227
+ */
2228
+ 'required'?: boolean;
2229
+ /**
2230
+ * Associates the segmented button group with a `<form>` element. The value should be the `id` of a `<form>` in the same document. If not set, the segmented button group is associated with its parent `<form>`, if any.
2231
+ *
2232
+ * This attribute allows segmented button group elements to be associated with `<form>`s anywhere in the document, not just inside a `<form>`.
2233
+ * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-form
2234
+ */
2235
+ 'form'?: string;
2236
+ /**
2237
+ * The name of the segmented button group, which is submitted with form data.
2238
+ * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-name
2239
+ */
2240
+ 'name'?: string;
2241
+ /**
2242
+ * The value of the selected `<mdui-segmented-button>`. This value is submitted with form data.
2243
+ *
2244
+ * Note: The HTML attribute is always a string and can only be set as an initial value when `selects="single"`. The JavaScript property is a string when `selects="single"` and an array of strings when `selects="multiple"`. In `selects="multiple"`, this value can only be modified by changing the JavaScript property.
2245
+ * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-value
2246
+ */
2247
+ 'value'?: string | string[];
2248
+ } & HTMLElementProps;
2193
2249
  /**
2194
2250
  * Segmented Button Component It should be used in conjunction with the `<mdui-segmented-button-group>` component
2195
2251
  *
@@ -2372,62 +2428,6 @@ declare global {
2372
2428
  */
2373
2429
  'formtarget'?: '_self' | '_blank' | '_parent' | '_top';
2374
2430
  } & HTMLElementProps;
2375
- /**
2376
- * Segmented Button Group Component It should be used in conjunction with the `<mdui-segmented-button>` component
2377
- *
2378
- * ```html
2379
- * <mdui-segmented-button-group>
2380
- * <mdui-segmented-button>Day</mdui-segmented-button>
2381
- * <mdui-segmented-button>Week</mdui-segmented-button>
2382
- * <mdui-segmented-button>Month</mdui-segmented-button>
2383
- * </mdui-segmented-button-group>
2384
- * ```
2385
- * @see https://www.mdui.org/en/docs/2/components/segmented-button
2386
- */
2387
- 'mdui-segmented-button-group': {
2388
- /**
2389
- * If set, the segmented button group will fill the width of its parent element.
2390
- * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-full-width
2391
- */
2392
- 'full-width'?: boolean;
2393
- /**
2394
- * Defines selectable states. Default is non-selectable. Possible values:
2395
- *
2396
- * * `single`: Only one can be selected.
2397
- * * `multiple`: Multiple selections are allowed.
2398
- * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-selects
2399
- */
2400
- 'selects'?: 'single' | 'multiple';
2401
- /**
2402
- * Disables the segmented button group when set.
2403
- * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-disabled
2404
- */
2405
- 'disabled'?: boolean;
2406
- /**
2407
- * Requires a selection when the form is submitted.
2408
- * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-required
2409
- */
2410
- 'required'?: boolean;
2411
- /**
2412
- * Associates the segmented button group with a `<form>` element. The value should be the `id` of a `<form>` in the same document. If not set, the segmented button group is associated with its parent `<form>`, if any.
2413
- *
2414
- * This attribute allows segmented button group elements to be associated with `<form>`s anywhere in the document, not just inside a `<form>`.
2415
- * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-form
2416
- */
2417
- 'form'?: string;
2418
- /**
2419
- * The name of the segmented button group, which is submitted with form data.
2420
- * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-name
2421
- */
2422
- 'name'?: string;
2423
- /**
2424
- * The value of the selected `<mdui-segmented-button>`. This value is submitted with form data.
2425
- *
2426
- * Note: The HTML attribute is always a string and can only be set as an initial value when `selects="single"`. The JavaScript property is a string when `selects="single"` and an array of strings when `selects="multiple"`. In `selects="multiple"`, this value can only be modified by changing the JavaScript property.
2427
- * @see https://www.mdui.org/en/docs/2/components/segmented-button#segmented-button-group-attributes-value
2428
- */
2429
- 'value'?: string | string[];
2430
- } & HTMLElementProps;
2431
2431
  /**
2432
2432
  * Select Component It should be used in conjunction with the `<mdui-menu-item>` component
2433
2433
  *
@@ -2756,6 +2756,29 @@ declare global {
2756
2756
  */
2757
2757
  'tabindex'?: number;
2758
2758
  } & HTMLElementProps;
2759
+ /**
2760
+ * Tab Panel Component It should be used in conjunction with the `<mdui-tabs>` and `<mdui-tab>` components
2761
+ *
2762
+ * ```html
2763
+ * <mdui-tabs value="tab-1">
2764
+ * <mdui-tab value="tab-1">Tab 1</mdui-tab>
2765
+ * <mdui-tab value="tab-2">Tab 2</mdui-tab>
2766
+ * <mdui-tab value="tab-3">Tab 3</mdui-tab>
2767
+ *
2768
+ * <mdui-tab-panel slot="panel" value="tab-1">Panel 1</mdui-tab-panel>
2769
+ * <mdui-tab-panel slot="panel" value="tab-2">Panel 2</mdui-tab-panel>
2770
+ * <mdui-tab-panel slot="panel" value="tab-3">Panel 3</mdui-tab-panel>
2771
+ * </mdui-tabs>
2772
+ * ```
2773
+ * @see https://www.mdui.org/en/docs/2/components/tabs
2774
+ */
2775
+ 'mdui-tab-panel': {
2776
+ /**
2777
+ * Specifies the value of the tab panel.
2778
+ * @see https://www.mdui.org/en/docs/2/components/tabs#tab-panel-attributes-value
2779
+ */
2780
+ 'value'?: string;
2781
+ } & HTMLElementProps;
2759
2782
  /**
2760
2783
  * Tab Component It should be used in conjunction with the `<mdui-tabs>` and `<mdui-tab-panel>` components
2761
2784
  *
@@ -2799,29 +2822,6 @@ declare global {
2799
2822
  */
2800
2823
  'tabindex'?: number;
2801
2824
  } & HTMLElementProps;
2802
- /**
2803
- * Tab Panel Component It should be used in conjunction with the `<mdui-tabs>` and `<mdui-tab>` components
2804
- *
2805
- * ```html
2806
- * <mdui-tabs value="tab-1">
2807
- * <mdui-tab value="tab-1">Tab 1</mdui-tab>
2808
- * <mdui-tab value="tab-2">Tab 2</mdui-tab>
2809
- * <mdui-tab value="tab-3">Tab 3</mdui-tab>
2810
- *
2811
- * <mdui-tab-panel slot="panel" value="tab-1">Panel 1</mdui-tab-panel>
2812
- * <mdui-tab-panel slot="panel" value="tab-2">Panel 2</mdui-tab-panel>
2813
- * <mdui-tab-panel slot="panel" value="tab-3">Panel 3</mdui-tab-panel>
2814
- * </mdui-tabs>
2815
- * ```
2816
- * @see https://www.mdui.org/en/docs/2/components/tabs
2817
- */
2818
- 'mdui-tab-panel': {
2819
- /**
2820
- * Specifies the value of the tab panel.
2821
- * @see https://www.mdui.org/en/docs/2/components/tabs#tab-panel-attributes-value
2822
- */
2823
- 'value'?: string;
2824
- } & HTMLElementProps;
2825
2825
  /**
2826
2826
  * Tabs Component It should be used in conjunction with the `<mdui-tab>` and `<mdui-tab-panel>` components
2827
2827
  *
@@ -3090,13 +3090,10 @@ declare global {
3090
3090
  */
3091
3091
  'autocorrect'?: string;
3092
3092
  /**
3093
- * Enables the browser's autocomplete feature for text input. Possible values:
3094
- *
3095
- * * `off`: Disables browser autocomplete.
3096
- * * `on`: Enables browser autocomplete.
3093
+ * The `autocomplete` attribute of the `input` element.
3097
3094
  * @see https://www.mdui.org/en/docs/2/components/text-field#attributes-autocomplete
3098
3095
  */
3099
- 'autocomplete'?: 'off' | 'on';
3096
+ 'autocomplete'?: string;
3100
3097
  /**
3101
3098
  * Customizes the Enter key text or icon on the virtual keyboard. The effect varies based on the device and language. Possible values:
3102
3099
  *
@@ -3222,6 +3219,22 @@ declare global {
3222
3219
  * @see https://www.mdui.org/en/docs/2/components/tooltip#attributes-open
3223
3220
  */
3224
3221
  'open'?: boolean;
3222
+ } & HTMLElementProps;
3223
+ /**
3224
+ * Top App Bar Title Component It should be used in conjunction with the `<mdui-top-app-bar>` component
3225
+ *
3226
+ * ```html
3227
+ * <mdui-top-app-bar>
3228
+ * <mdui-button-icon icon="menu"></mdui-button-icon>
3229
+ * <mdui-top-app-bar-title>Title</mdui-top-app-bar-title>
3230
+ * <div style="flex-grow: 1"></div>
3231
+ * <mdui-button-icon icon="more_vert"></mdui-button-icon>
3232
+ * </mdui-top-app-bar>
3233
+ * ```
3234
+ * @see https://www.mdui.org/en/docs/2/components/top-app-bar
3235
+ */
3236
+ 'mdui-top-app-bar-title': {
3237
+
3225
3238
  } & HTMLElementProps;
3226
3239
  /**
3227
3240
  * Top App Bar Component
@@ -3282,22 +3295,6 @@ declare global {
3282
3295
  */
3283
3296
  'order'?: number;
3284
3297
  } & HTMLElementProps;
3285
- /**
3286
- * Top App Bar Title Component It should be used in conjunction with the `<mdui-top-app-bar>` component
3287
- *
3288
- * ```html
3289
- * <mdui-top-app-bar>
3290
- * <mdui-button-icon icon="menu"></mdui-button-icon>
3291
- * <mdui-top-app-bar-title>Title</mdui-top-app-bar-title>
3292
- * <div style="flex-grow: 1"></div>
3293
- * <mdui-button-icon icon="more_vert"></mdui-button-icon>
3294
- * </mdui-top-app-bar>
3295
- * ```
3296
- * @see https://www.mdui.org/en/docs/2/components/top-app-bar
3297
- */
3298
- 'mdui-top-app-bar-title': {
3299
-
3300
- } & HTMLElementProps;
3301
3298
  }
3302
3299
  }
3303
3300
  }