@instructure/ui-checkbox 11.7.3-snapshot-4 → 11.7.3-snapshot-7
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 +1 -1
- package/es/Checkbox/v2/index.js +4 -1
- package/lib/Checkbox/v2/index.js +4 -1
- package/package.json +16 -16
- package/src/Checkbox/v2/CheckboxFacade/props.ts +2 -2
- package/src/Checkbox/v2/ToggleFacade/props.ts +2 -2
- package/src/Checkbox/v2/index.tsx +4 -7
- package/src/Checkbox/v2/props.ts +3 -6
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Checkbox/v2/CheckboxFacade/props.d.ts +2 -2
- package/types/Checkbox/v2/CheckboxFacade/props.d.ts.map +1 -1
- package/types/Checkbox/v2/ToggleFacade/props.d.ts +2 -2
- package/types/Checkbox/v2/ToggleFacade/props.d.ts.map +1 -1
- package/types/Checkbox/v2/index.d.ts.map +1 -1
- package/types/Checkbox/v2/props.d.ts +3 -2
- package/types/Checkbox/v2/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.3-snapshot-
|
|
6
|
+
## [11.7.3-snapshot-7](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-7) (2026-04-29)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-checkbox
|
|
9
9
|
|
package/es/Checkbox/v2/index.js
CHANGED
|
@@ -172,7 +172,10 @@ let Checkbox = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle),
|
|
|
172
172
|
focused: focused,
|
|
173
173
|
checked: this.checked,
|
|
174
174
|
readOnly: readOnly,
|
|
175
|
-
labelPlacement: labelPlacement
|
|
175
|
+
labelPlacement: labelPlacement
|
|
176
|
+
// @ts-ignore TODO: This will lead to buggy overrides, `Toggle`'s
|
|
177
|
+
// styles should be a superset of Checkbox's styles
|
|
178
|
+
,
|
|
176
179
|
themeOverride: themeOverride,
|
|
177
180
|
invalid: this.invalid,
|
|
178
181
|
children: [label, isRequired && label && _jsxs("span", {
|
package/lib/Checkbox/v2/index.js
CHANGED
|
@@ -192,7 +192,10 @@ let Checkbox = exports.Checkbox = (_dec = (0, _withDeterministicId.withDetermini
|
|
|
192
192
|
focused: focused,
|
|
193
193
|
checked: this.checked,
|
|
194
194
|
readOnly: readOnly,
|
|
195
|
-
labelPlacement: labelPlacement
|
|
195
|
+
labelPlacement: labelPlacement
|
|
196
|
+
// @ts-ignore TODO: This will lead to buggy overrides, `Toggle`'s
|
|
197
|
+
// styles should be a superset of Checkbox's styles
|
|
198
|
+
,
|
|
196
199
|
themeOverride: themeOverride,
|
|
197
200
|
invalid: this.invalid,
|
|
198
201
|
children: [label, isRequired && label && (0, _jsxRuntime.jsxs)("span", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-checkbox",
|
|
3
|
-
"version": "11.7.3-snapshot-
|
|
3
|
+
"version": "11.7.3-snapshot-7",
|
|
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.27.6",
|
|
18
18
|
"keycode": "^2",
|
|
19
|
-
"@instructure/console": "11.7.3-snapshot-
|
|
20
|
-
"@instructure/emotion": "11.7.3-snapshot-
|
|
21
|
-
"@instructure/shared-types": "11.7.3-snapshot-
|
|
22
|
-
"@instructure/ui-dom-utils": "11.7.3-snapshot-
|
|
23
|
-
"@instructure/ui-form-field": "11.7.3-snapshot-
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-svg-images": "11.7.3-snapshot-
|
|
27
|
-
"@instructure/ui-utils": "11.7.3-snapshot-
|
|
28
|
-
"@instructure/
|
|
29
|
-
"@instructure/
|
|
19
|
+
"@instructure/console": "11.7.3-snapshot-7",
|
|
20
|
+
"@instructure/emotion": "11.7.3-snapshot-7",
|
|
21
|
+
"@instructure/shared-types": "11.7.3-snapshot-7",
|
|
22
|
+
"@instructure/ui-dom-utils": "11.7.3-snapshot-7",
|
|
23
|
+
"@instructure/ui-form-field": "11.7.3-snapshot-7",
|
|
24
|
+
"@instructure/ui-react-utils": "11.7.3-snapshot-7",
|
|
25
|
+
"@instructure/ui-themes": "11.7.3-snapshot-7",
|
|
26
|
+
"@instructure/ui-svg-images": "11.7.3-snapshot-7",
|
|
27
|
+
"@instructure/ui-utils": "11.7.3-snapshot-7",
|
|
28
|
+
"@instructure/uid": "11.7.3-snapshot-7",
|
|
29
|
+
"@instructure/ui-view": "11.7.3-snapshot-7",
|
|
30
|
+
"@instructure/ui-icons": "11.7.3-snapshot-7"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"@testing-library/jest-dom": "^6.6.3",
|
|
33
34
|
"@testing-library/react": "15.0.7",
|
|
34
35
|
"@testing-library/user-event": "^14.6.1",
|
|
35
36
|
"vitest": "^3.2.2",
|
|
36
|
-
"@instructure/ui-babel-preset": "11.7.3-snapshot-
|
|
37
|
-
"@instructure/ui-color-utils": "11.7.3-snapshot-
|
|
38
|
-
"@instructure/ui-axe-check": "11.7.3-snapshot-
|
|
39
|
-
"@instructure/ui-themes": "11.7.3-snapshot-4"
|
|
37
|
+
"@instructure/ui-babel-preset": "11.7.3-snapshot-7",
|
|
38
|
+
"@instructure/ui-color-utils": "11.7.3-snapshot-7",
|
|
39
|
+
"@instructure/ui-axe-check": "11.7.3-snapshot-7"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=18 <=19"
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { CheckboxFacadeTheme } from '@instructure/shared-types'
|
|
26
25
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
26
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
27
27
|
|
|
28
28
|
type CheckboxFacadeOwnProps = {
|
|
29
29
|
children: React.ReactNode
|
|
@@ -48,7 +48,7 @@ type PropKeys = keyof CheckboxFacadeOwnProps
|
|
|
48
48
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
49
49
|
|
|
50
50
|
type CheckboxFacadeProps = CheckboxFacadeOwnProps &
|
|
51
|
-
WithStyleProps<
|
|
51
|
+
WithStyleProps<ReturnType<NewComponentTypes['Checkbox']>, CheckboxFacadeStyle>
|
|
52
52
|
|
|
53
53
|
type CheckboxFacadeStyle = ComponentStyle<'checkboxFacade' | 'facade' | 'label'>
|
|
54
54
|
const allowedProps: AllowedPropKeys = [
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import React from 'react'
|
|
26
|
-
import type { ToggleFacadeTheme } from '@instructure/shared-types'
|
|
27
26
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
27
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
28
28
|
|
|
29
29
|
type ToggleFacadeOwnProps = {
|
|
30
30
|
children: React.ReactNode
|
|
@@ -46,7 +46,7 @@ type PropKeys = keyof ToggleFacadeOwnProps
|
|
|
46
46
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
47
47
|
|
|
48
48
|
type ToggleFacadeProps = ToggleFacadeOwnProps &
|
|
49
|
-
WithStyleProps<
|
|
49
|
+
WithStyleProps<ReturnType<NewComponentTypes['Toggle']>, ToggleFacadeStyle>
|
|
50
50
|
|
|
51
51
|
type ToggleFacadeStyle = ComponentStyle<
|
|
52
52
|
'toggleFacade' | 'facade' | 'icon' | 'iconToggle' | 'label'
|
|
@@ -42,11 +42,6 @@ import generateStyle from './styles'
|
|
|
42
42
|
import { allowedProps } from './props'
|
|
43
43
|
import type { CheckboxProps, CheckboxState } from './props'
|
|
44
44
|
|
|
45
|
-
import type {
|
|
46
|
-
CheckboxFacadeTheme,
|
|
47
|
-
ToggleFacadeTheme
|
|
48
|
-
} from '@instructure/shared-types'
|
|
49
|
-
|
|
50
45
|
/**
|
|
51
46
|
---
|
|
52
47
|
category: components
|
|
@@ -231,7 +226,9 @@ class Checkbox extends Component<CheckboxProps, CheckboxState> {
|
|
|
231
226
|
checked={this.checked}
|
|
232
227
|
readOnly={readOnly}
|
|
233
228
|
labelPlacement={labelPlacement}
|
|
234
|
-
|
|
229
|
+
// @ts-ignore TODO: This will lead to buggy overrides, `Toggle`'s
|
|
230
|
+
// styles should be a superset of Checkbox's styles
|
|
231
|
+
themeOverride={themeOverride}
|
|
235
232
|
invalid={this.invalid}
|
|
236
233
|
>
|
|
237
234
|
{label}
|
|
@@ -256,7 +253,7 @@ class Checkbox extends Component<CheckboxProps, CheckboxState> {
|
|
|
256
253
|
checked={this.checked}
|
|
257
254
|
readOnly={readOnly}
|
|
258
255
|
indeterminate={indeterminate}
|
|
259
|
-
themeOverride={themeOverride
|
|
256
|
+
themeOverride={themeOverride}
|
|
260
257
|
invalid={this.invalid}
|
|
261
258
|
>
|
|
262
259
|
{label}
|
package/src/Checkbox/v2/props.ts
CHANGED
|
@@ -23,12 +23,9 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import type { FormMessage } from '@instructure/ui-form-field/latest'
|
|
26
|
-
import type {
|
|
27
|
-
CheckboxFacadeTheme,
|
|
28
|
-
OtherHTMLAttributes,
|
|
29
|
-
ToggleFacadeTheme
|
|
30
|
-
} from '@instructure/shared-types'
|
|
26
|
+
import type { OtherHTMLAttributes } from '@instructure/shared-types'
|
|
31
27
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
28
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
32
29
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
|
|
33
30
|
|
|
34
31
|
type CheckboxOwnProps = {
|
|
@@ -85,7 +82,7 @@ type PropKeys = keyof CheckboxOwnProps
|
|
|
85
82
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
86
83
|
|
|
87
84
|
type CheckboxProps = CheckboxOwnProps &
|
|
88
|
-
WithStyleProps<
|
|
85
|
+
WithStyleProps<ReturnType<NewComponentTypes['Checkbox']>, CheckboxStyle> &
|
|
89
86
|
OtherHTMLAttributes<CheckboxOwnProps> &
|
|
90
87
|
WithDeterministicIdProps
|
|
91
88
|
|