@instructure/ui-checkbox 11.7.4-snapshot-113 → 11.7.4-snapshot-116
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 +5 -2
- package/es/Checkbox/v1/index.js +1 -0
- package/es/Checkbox/v2/index.js +1 -0
- package/lib/Checkbox/v1/index.js +1 -0
- package/lib/Checkbox/v2/index.js +1 -0
- package/package.json +16 -16
- package/src/Checkbox/v1/index.tsx +1 -0
- package/src/Checkbox/v2/index.tsx +1 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Checkbox/v1/index.d.ts.map +1 -1
- package/types/Checkbox/v2/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [11.7.4-snapshot-
|
|
6
|
+
## [11.7.4-snapshot-116](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-116) (2026-07-20)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **ui-checkbox:** add aria-invalid attribute to Checkbox when validation errors are present ([8301bf9](https://github.com/instructure/instructure-ui/commit/8301bf9f2e2b5e498b601c064d02d9d3f8f4b863))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/es/Checkbox/v1/index.js
CHANGED
|
@@ -260,6 +260,7 @@ let Checkbox = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, g
|
|
|
260
260
|
required: isRequired,
|
|
261
261
|
disabled: disabled || readOnly,
|
|
262
262
|
"aria-checked": indeterminate ? 'mixed' : undefined,
|
|
263
|
+
"aria-invalid": this.invalid ? 'true' : undefined,
|
|
263
264
|
css: styles?.input,
|
|
264
265
|
onChange: this.handleChange,
|
|
265
266
|
onKeyDown: createChainedFunction(onKeyDown, this.handleKeyDown),
|
package/es/Checkbox/v2/index.js
CHANGED
|
@@ -268,6 +268,7 @@ let Checkbox = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle
|
|
|
268
268
|
readOnly: readOnly,
|
|
269
269
|
"aria-readonly": readOnly ? true : undefined,
|
|
270
270
|
"aria-checked": indeterminate ? 'mixed' : undefined,
|
|
271
|
+
"aria-invalid": this.invalid ? 'true' : undefined,
|
|
271
272
|
css: styles?.input,
|
|
272
273
|
onClickCapture: e => {
|
|
273
274
|
if (readOnly) {
|
package/lib/Checkbox/v1/index.js
CHANGED
|
@@ -280,6 +280,7 @@ let Checkbox = exports.Checkbox = (_dec = (0, _withDeterministicId.withDetermini
|
|
|
280
280
|
required: isRequired,
|
|
281
281
|
disabled: disabled || readOnly,
|
|
282
282
|
"aria-checked": indeterminate ? 'mixed' : undefined,
|
|
283
|
+
"aria-invalid": this.invalid ? 'true' : undefined,
|
|
283
284
|
css: styles?.input,
|
|
284
285
|
onChange: this.handleChange,
|
|
285
286
|
onKeyDown: (0, _createChainedFunction.createChainedFunction)(onKeyDown, this.handleKeyDown),
|
package/lib/Checkbox/v2/index.js
CHANGED
|
@@ -288,6 +288,7 @@ let Checkbox = exports.Checkbox = (_dec = (0, _withDeterministicId.withDetermini
|
|
|
288
288
|
readOnly: readOnly,
|
|
289
289
|
"aria-readonly": readOnly ? true : undefined,
|
|
290
290
|
"aria-checked": indeterminate ? 'mixed' : undefined,
|
|
291
|
+
"aria-invalid": this.invalid ? 'true' : undefined,
|
|
291
292
|
css: styles?.input,
|
|
292
293
|
onClickCapture: e => {
|
|
293
294
|
if (readOnly) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-checkbox",
|
|
3
|
-
"version": "11.7.4-snapshot-
|
|
3
|
+
"version": "11.7.4-snapshot-116",
|
|
4
4
|
"description": " styled HTML input type='checkbox' component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -16,27 +16,27 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.7",
|
|
18
18
|
"keycode": "^2",
|
|
19
|
-
"@instructure/console": "11.7.4-snapshot-
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/
|
|
23
|
-
"@instructure/
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-utils": "11.7.4-snapshot-
|
|
27
|
-
"@instructure/ui-view": "11.7.4-snapshot-
|
|
28
|
-
"@instructure/ui-
|
|
29
|
-
"@instructure/
|
|
30
|
-
"@instructure/
|
|
19
|
+
"@instructure/console": "11.7.4-snapshot-116",
|
|
20
|
+
"@instructure/ui-dom-utils": "11.7.4-snapshot-116",
|
|
21
|
+
"@instructure/emotion": "11.7.4-snapshot-116",
|
|
22
|
+
"@instructure/ui-form-field": "11.7.4-snapshot-116",
|
|
23
|
+
"@instructure/shared-types": "11.7.4-snapshot-116",
|
|
24
|
+
"@instructure/ui-react-utils": "11.7.4-snapshot-116",
|
|
25
|
+
"@instructure/ui-svg-images": "11.7.4-snapshot-116",
|
|
26
|
+
"@instructure/ui-utils": "11.7.4-snapshot-116",
|
|
27
|
+
"@instructure/ui-view": "11.7.4-snapshot-116",
|
|
28
|
+
"@instructure/ui-icons": "11.7.4-snapshot-116",
|
|
29
|
+
"@instructure/uid": "11.7.4-snapshot-116",
|
|
30
|
+
"@instructure/ui-themes": "11.7.4-snapshot-116"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@testing-library/jest-dom": "^6.9.1",
|
|
34
34
|
"@testing-library/react": "16.3.2",
|
|
35
35
|
"@testing-library/user-event": "^14.6.1",
|
|
36
36
|
"vitest": "^4.1.9",
|
|
37
|
-
"@instructure/ui-
|
|
38
|
-
"@instructure/ui-
|
|
39
|
-
"@instructure/ui-color-utils": "11.7.4-snapshot-
|
|
37
|
+
"@instructure/ui-babel-preset": "11.7.4-snapshot-116",
|
|
38
|
+
"@instructure/ui-axe-check": "11.7.4-snapshot-116",
|
|
39
|
+
"@instructure/ui-color-utils": "11.7.4-snapshot-116"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=18 <=19"
|
|
@@ -333,6 +333,7 @@ class Checkbox extends Component<CheckboxProps, CheckboxState> {
|
|
|
333
333
|
required={isRequired}
|
|
334
334
|
disabled={disabled || readOnly}
|
|
335
335
|
aria-checked={indeterminate ? 'mixed' : undefined}
|
|
336
|
+
aria-invalid={this.invalid ? 'true' : undefined}
|
|
336
337
|
css={styles?.input}
|
|
337
338
|
onChange={this.handleChange}
|
|
338
339
|
onKeyDown={createChainedFunction(onKeyDown, this.handleKeyDown)}
|
|
@@ -337,6 +337,7 @@ class Checkbox extends Component<CheckboxProps, CheckboxState> {
|
|
|
337
337
|
readOnly={readOnly}
|
|
338
338
|
aria-readonly={readOnly ? true : undefined}
|
|
339
339
|
aria-checked={indeterminate ? 'mixed' : undefined}
|
|
340
|
+
aria-invalid={this.invalid ? 'true' : undefined}
|
|
340
341
|
css={styles?.input}
|
|
341
342
|
onClickCapture={(e) => {
|
|
342
343
|
if (readOnly) {
|