@tltdsh/mx 1.2.6 → 1.3.0

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 (3) hide show
  1. package/README.md +1 -1
  2. package/mx.d.ts +9 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -21,7 +21,7 @@ Sub-1KB reactive DOM reconciliation engine for building massive platforms and us
21
21
  ### Pinned version
22
22
 
23
23
  ```html
24
- <script src="https://cdn.jsdelivr.net/npm/@tltdsh/mx@1.2.6/mx.min.js"></script>
24
+ <script src="https://cdn.jsdelivr.net/npm/@tltdsh/mx@1.3.0/mx.min.js"></script>
25
25
  ```
26
26
 
27
27
  ### npm / yarn / bun
package/mx.d.ts CHANGED
@@ -33,7 +33,7 @@ interface MxHTMLAttrs {
33
33
  style?: string;
34
34
  title?: string;
35
35
  tabindex?: number | string;
36
- role?: string;
36
+ role?: 'alert' | 'alertdialog' | 'button' | 'checkbox' | 'dialog' | 'grid' | 'gridcell' | 'link' | 'listbox' | 'menu' | 'menubar' | 'menuitem' | 'option' | 'progressbar' | 'radio' | 'radiogroup' | 'region' | 'row' | 'rowgroup' | 'scrollbar' | 'search' | 'searchbox' | 'separator' | 'slider' | 'spinbutton' | 'status' | 'switch' | 'tab' | 'tablist' | 'tabpanel' | 'textbox' | 'toolbar' | 'tooltip' | 'tree' | 'treeitem' | 'navigation' | 'banner' | 'main' | 'complementary' | 'contentinfo' | 'form' | 'presentation' | 'none' | (string & {});
37
37
  slot?: string;
38
38
  hidden?: boolean;
39
39
 
@@ -113,6 +113,14 @@ interface MxHTMLAttrs {
113
113
  'aria-placeholder'?: string;
114
114
  'aria-errormessage'?: string;
115
115
 
116
+ // ARIA states cluster (accessibility)
117
+ 'aria-hidden'?: boolean | 'true' | 'false';
118
+ 'aria-expanded'?: boolean | 'true' | 'false';
119
+ 'aria-disabled'?: boolean | 'true' | 'false';
120
+ 'aria-selected'?: boolean | 'true' | 'false';
121
+ 'aria-checked'?: boolean | 'true' | 'false' | 'mixed';
122
+ 'aria-pressed'?: boolean | 'true' | 'false' | 'mixed';
123
+
116
124
  // Loading
117
125
  fetchpriority?: 'high' | 'low' | 'auto';
118
126
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tltdsh/mx",
3
- "version": "1.2.6",
3
+ "version": "1.3.0",
4
4
  "description": "<1KB UI engine. Build big. Ship small. Iterate fast.",
5
5
  "license": "0BSD",
6
6
  "author": "tltdsh",