@texaryn/react-mui 0.1.0 → 0.1.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @texaryn/react-mui
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f0ab713: `MuiSelect` no longer sets `aria-invalid` on MUI's native input. That element carries `aria-hidden="true"` and `tabindex="-1"`, so the attribute was never reachable by assistive technology. The invalid state was already correct and remains so: for a Select, MUI puts `aria-invalid` on the `role="combobox"` element from the `error` prop, and omits it entirely while valid. No rendered behaviour changes.
|
|
8
|
+
|
|
9
|
+
## 0.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [cd13f98]
|
|
14
|
+
- Updated dependencies [3172a01]
|
|
15
|
+
- @texaryn/core@0.3.0
|
|
16
|
+
- @texaryn/react@0.2.2
|
|
17
|
+
|
|
3
18
|
## 0.1.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MuiSelect.d.ts","sourceRoot":"","sources":["../../src/widgets/MuiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAa,MAAM,EAAE,MAAM,eAAe,CAAA;AAGtD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"MuiSelect.d.ts","sourceRoot":"","sources":["../../src/widgets/MuiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAa,MAAM,EAAE,MAAM,eAAe,CAAA;AAGtD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,qBA2C3C;AAED,eAAO,MAAM,SAAS,iDAA2E,CAAA"}
|
|
@@ -7,15 +7,19 @@ function MuiSelectImpl({ node }) {
|
|
|
7
7
|
const field = useFieldBinding(node);
|
|
8
8
|
const enumValues = node.enumValues ?? [];
|
|
9
9
|
return (_jsx(TextField, { select: true, id: field.domInputProps.id, name: field.domInputProps.name, value: field.domInputProps.value, onChange: field.domInputProps.onChange, onBlur: field.domInputProps.onBlur, disabled: field.disabled, label: field.label, error: field.invalid, helperText: field.error ?? field.description, fullWidth: true, slotProps: {
|
|
10
|
-
// Screen readers see the combobox div, not MUI's aria-hidden native
|
|
10
|
+
// Screen readers see the combobox div, not MUI's aria-hidden native
|
|
11
|
+
// input, so the required state goes on the display element.
|
|
12
|
+
//
|
|
13
|
+
// aria-invalid needs nothing here: for a Select, MUI puts it on that
|
|
14
|
+
// same combobox from the `error` prop, and omits it entirely when
|
|
15
|
+
// valid. The other widgets override it on htmlInput because a plain
|
|
16
|
+
// TextField input always renders aria-invalid="false", which is a
|
|
17
|
+
// different problem.
|
|
11
18
|
select: {
|
|
12
19
|
SelectDisplayProps: {
|
|
13
20
|
'aria-required': field.required || undefined,
|
|
14
21
|
},
|
|
15
22
|
},
|
|
16
|
-
htmlInput: {
|
|
17
|
-
'aria-invalid': field.invalid || undefined,
|
|
18
|
-
},
|
|
19
23
|
formHelperText: {
|
|
20
24
|
role: field.invalid ? 'alert' : undefined,
|
|
21
25
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MuiSelect.js","sourceRoot":"","sources":["../../src/widgets/MuiSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,yBAAyB,CAAA;AAC/C,OAAO,QAAQ,MAAM,wBAAwB,C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
|
|
1
1
|
{
|
|
2
2
|
"name": "@texaryn/react-mui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Material UI v9 widgets for Texaryn: MUI components on top of @texaryn/react",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"CHANGELOG.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@texaryn/core": "^0.
|
|
44
|
+
"@texaryn/core": "^0.3.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@mui/material": "^9.0.0",
|
|
48
48
|
"react": ">=18.0.0",
|
|
49
|
-
"@texaryn/react": "^0.2.
|
|
49
|
+
"@texaryn/react": "^0.2.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@emotion/react": "^11.14.0",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"jsdom": "^25.0.0",
|
|
58
58
|
"react": "^19.0.0",
|
|
59
59
|
"react-dom": "^19.0.0",
|
|
60
|
-
"@texaryn/react": "0.2.
|
|
61
|
-
"@texaryn/schema-json": "0.2.
|
|
60
|
+
"@texaryn/react": "0.2.2",
|
|
61
|
+
"@texaryn/schema-json": "0.2.2"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "tsc --build"
|