@instructure/ui-checkbox 8.56.3 → 8.56.5-pr-snapshot-1728655013879
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 +16 -0
- package/lib/Checkbox/CheckboxFacade/__new-tests__/CheckboxFacade.test.js +2 -2
- package/lib/Checkbox/CheckboxFacade/index.js +4 -4
- package/lib/Checkbox/ToggleFacade/__new-tests__/ToggleFacade.test.js +2 -2
- package/lib/Checkbox/ToggleFacade/index.js +3 -4
- package/lib/Checkbox/__new-tests__/Checkbox.test.js +3 -3
- package/lib/Checkbox/index.js +16 -17
- package/lib/Checkbox/props.js +4 -4
- package/lib/CheckboxGroup/__new-tests__/CheckboxGroup.test.js +2 -2
- package/lib/CheckboxGroup/index.js +7 -11
- package/lib/CheckboxGroup/props.js +5 -6
- package/package.json +19 -19
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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
|
+
## [8.56.5-pr-snapshot-1728655013879](https://github.com/instructure/instructure-ui/compare/v8.56.4...v8.56.5-pr-snapshot-1728655013879) (2024-10-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-checkbox
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [8.56.4](https://github.com/instructure/instructure-ui/compare/v8.56.3...v8.56.4) (2024-10-02)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @instructure/ui-checkbox
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [8.56.3](https://github.com/instructure/instructure-ui/compare/v8.56.2...v8.56.3) (2024-09-18)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @instructure/ui-checkbox
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
var _react = _interopRequireDefault(require("react"));
|
|
5
5
|
var _react2 = require("@testing-library/react");
|
|
6
6
|
require("@testing-library/jest-dom");
|
|
7
|
-
var
|
|
7
|
+
var _uiAxeCheck = require("@instructure/ui-axe-check");
|
|
8
8
|
var _index = require("../index");
|
|
9
9
|
var _CheckboxFacade, _CheckboxFacade2;
|
|
10
10
|
/*
|
|
@@ -40,7 +40,7 @@ describe('<CheckboxFacade />', () => {
|
|
|
40
40
|
it('should meet a11y standards', async () => {
|
|
41
41
|
const _render = (0, _react2.render)(_CheckboxFacade2 || (_CheckboxFacade2 = /*#__PURE__*/_react.default.createElement(_index.CheckboxFacade, null, TEST_TEXT))),
|
|
42
42
|
container = _render.container;
|
|
43
|
-
const axeCheck = await (0,
|
|
43
|
+
const axeCheck = await (0, _uiAxeCheck.runAxeCheck)(container);
|
|
44
44
|
expect(axeCheck).toBe(true);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.CheckboxFacade = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _uiSvgImages = require("@instructure/ui-svg-images");
|
|
10
|
+
var _uiIcons = require("@instructure/ui-icons");
|
|
11
11
|
var _emotion = require("@instructure/emotion");
|
|
12
12
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
13
13
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
@@ -60,7 +60,7 @@ let CheckboxFacade = exports.CheckboxFacade = (_dec = (0, _emotion.withStyle)(_s
|
|
|
60
60
|
}
|
|
61
61
|
renderIcon() {
|
|
62
62
|
if (this.props.indeterminate) {
|
|
63
|
-
return _SVGIcon || (_SVGIcon = (0, _emotion.jsx)(
|
|
63
|
+
return _SVGIcon || (_SVGIcon = (0, _emotion.jsx)(_uiSvgImages.SVGIcon, {
|
|
64
64
|
viewBox: "0 0 1920 1920",
|
|
65
65
|
inline: false
|
|
66
66
|
}, (0, _emotion.jsx)("rect", {
|
|
@@ -70,7 +70,7 @@ let CheckboxFacade = exports.CheckboxFacade = (_dec = (0, _emotion.withStyle)(_s
|
|
|
70
70
|
height: "280"
|
|
71
71
|
})));
|
|
72
72
|
} else if (this.props.checked) {
|
|
73
|
-
return _IconCheckMarkSolid || (_IconCheckMarkSolid = (0, _emotion.jsx)(
|
|
73
|
+
return _IconCheckMarkSolid || (_IconCheckMarkSolid = (0, _emotion.jsx)(_uiIcons.IconCheckMarkSolid, {
|
|
74
74
|
inline: false
|
|
75
75
|
}));
|
|
76
76
|
} else {
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
var _react = _interopRequireDefault(require("react"));
|
|
5
5
|
var _react2 = require("@testing-library/react");
|
|
6
6
|
require("@testing-library/jest-dom");
|
|
7
|
-
var
|
|
7
|
+
var _uiAxeCheck = require("@instructure/ui-axe-check");
|
|
8
8
|
var _index = require("../index");
|
|
9
9
|
var _ToggleFacade, _ToggleFacade2;
|
|
10
10
|
/*
|
|
@@ -40,7 +40,7 @@ describe('<ToggleFacade />', () => {
|
|
|
40
40
|
it('should meet a11y standards', async () => {
|
|
41
41
|
const _render = (0, _react2.render)(_ToggleFacade2 || (_ToggleFacade2 = /*#__PURE__*/_react.default.createElement(_index.ToggleFacade, null, TEST_TEXT))),
|
|
42
42
|
container = _render.container;
|
|
43
|
-
const axeCheck = await (0,
|
|
43
|
+
const axeCheck = await (0, _uiAxeCheck.runAxeCheck)(container);
|
|
44
44
|
expect(axeCheck).toBe(true);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.ToggleFacade = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
var
|
|
10
|
-
var _IconXSolid = require("@instructure/ui-icons/lib/IconXSolid.js");
|
|
9
|
+
var _uiIcons = require("@instructure/ui-icons");
|
|
11
10
|
var _emotion = require("@instructure/emotion");
|
|
12
11
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
13
12
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
@@ -63,11 +62,11 @@ let ToggleFacade = exports.ToggleFacade = (_dec = (0, _emotion.withStyle)(_style
|
|
|
63
62
|
styles = _this$props3.styles,
|
|
64
63
|
checked = _this$props3.checked;
|
|
65
64
|
if (checked) {
|
|
66
|
-
return (0, _emotion.jsx)(
|
|
65
|
+
return (0, _emotion.jsx)(_uiIcons.IconCheckSolid, {
|
|
67
66
|
css: styles === null || styles === void 0 ? void 0 : styles.iconSVG
|
|
68
67
|
});
|
|
69
68
|
} else {
|
|
70
|
-
return (0, _emotion.jsx)(
|
|
69
|
+
return (0, _emotion.jsx)(_uiIcons.IconXSolid, {
|
|
71
70
|
css: styles === null || styles === void 0 ? void 0 : styles.iconSVG
|
|
72
71
|
});
|
|
73
72
|
}
|
|
@@ -5,7 +5,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
5
5
|
var _react2 = require("@testing-library/react");
|
|
6
6
|
var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
|
|
7
7
|
require("@testing-library/jest-dom");
|
|
8
|
-
var
|
|
8
|
+
var _uiAxeCheck = require("@instructure/ui-axe-check");
|
|
9
9
|
var _index = require("../index");
|
|
10
10
|
/*
|
|
11
11
|
* The MIT License (MIT)
|
|
@@ -198,7 +198,7 @@ describe('<Checkbox />', () => {
|
|
|
198
198
|
variant: 'simple'
|
|
199
199
|
}),
|
|
200
200
|
container = _renderCheckbox2.container;
|
|
201
|
-
const axeCheck = await (0,
|
|
201
|
+
const axeCheck = await (0, _uiAxeCheck.runAxeCheck)(container);
|
|
202
202
|
expect(axeCheck).toBe(true);
|
|
203
203
|
});
|
|
204
204
|
it('`toggle` variant should meet standards', async () => {
|
|
@@ -206,7 +206,7 @@ describe('<Checkbox />', () => {
|
|
|
206
206
|
variant: 'toggle'
|
|
207
207
|
}),
|
|
208
208
|
container = _renderCheckbox3.container;
|
|
209
|
-
const axeCheck = await (0,
|
|
209
|
+
const axeCheck = await (0, _uiAxeCheck.runAxeCheck)(container);
|
|
210
210
|
expect(axeCheck).toBe(true);
|
|
211
211
|
});
|
|
212
212
|
});
|
package/lib/Checkbox/index.js
CHANGED
|
@@ -21,14 +21,13 @@ Object.defineProperty(exports, "ToggleFacade", {
|
|
|
21
21
|
exports.default = void 0;
|
|
22
22
|
var _react = _interopRequireWildcard(require("react"));
|
|
23
23
|
var _keycode = _interopRequireDefault(require("keycode"));
|
|
24
|
-
var
|
|
25
|
-
var
|
|
24
|
+
var _uiFormField = require("@instructure/ui-form-field");
|
|
25
|
+
var _uiUtils = require("@instructure/ui-utils");
|
|
26
26
|
var _console = require("@instructure/console");
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
27
|
+
var _uiDomUtils = require("@instructure/ui-dom-utils");
|
|
28
|
+
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
29
|
+
var _uiView = require("@instructure/ui-view");
|
|
30
|
+
var _uiTestable = require("@instructure/ui-testable");
|
|
32
31
|
var _emotion = require("@instructure/emotion");
|
|
33
32
|
var _CheckboxFacade = require("./CheckboxFacade");
|
|
34
33
|
var _ToggleFacade = require("./ToggleFacade");
|
|
@@ -65,7 +64,7 @@ category: components
|
|
|
65
64
|
tags: toggle, switch
|
|
66
65
|
---
|
|
67
66
|
**/
|
|
68
|
-
let Checkbox = exports.Checkbox = (_dec = (0,
|
|
67
|
+
let Checkbox = exports.Checkbox = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, null), _dec3 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Checkbox extends _react.Component {
|
|
69
68
|
constructor(props) {
|
|
70
69
|
super(props);
|
|
71
70
|
this._defaultId = void 0;
|
|
@@ -151,7 +150,7 @@ let Checkbox = exports.Checkbox = (_dec = (0, _withDeterministicId.withDetermini
|
|
|
151
150
|
return typeof this.props.checked === 'undefined' ? this.state.checked : this.props.checked;
|
|
152
151
|
}
|
|
153
152
|
get focused() {
|
|
154
|
-
return (0,
|
|
153
|
+
return (0, _uiDomUtils.isActiveElement)(this._input);
|
|
155
154
|
}
|
|
156
155
|
focus() {
|
|
157
156
|
this._input && this._input.focus();
|
|
@@ -193,10 +192,10 @@ let Checkbox = exports.Checkbox = (_dec = (0, _withDeterministicId.withDetermini
|
|
|
193
192
|
}
|
|
194
193
|
renderMessages() {
|
|
195
194
|
const messages = this.props.messages;
|
|
196
|
-
return messages && messages.length > 0 ? (0, _emotion.jsx)(
|
|
195
|
+
return messages && messages.length > 0 ? (0, _emotion.jsx)(_uiView.View, {
|
|
197
196
|
display: "block",
|
|
198
197
|
margin: "small 0 0"
|
|
199
|
-
}, (0, _emotion.jsx)(
|
|
198
|
+
}, (0, _emotion.jsx)(_uiFormField.FormFieldMessages, {
|
|
200
199
|
messages: messages
|
|
201
200
|
})) : null;
|
|
202
201
|
}
|
|
@@ -213,15 +212,15 @@ let Checkbox = exports.Checkbox = (_dec = (0, _withDeterministicId.withDetermini
|
|
|
213
212
|
indeterminate = _this$props5.indeterminate,
|
|
214
213
|
variant = _this$props5.variant,
|
|
215
214
|
styles = _this$props5.styles;
|
|
216
|
-
const props = (0,
|
|
215
|
+
const props = (0, _uiReactUtils.omitProps)(this.props, Checkbox.allowedProps);
|
|
217
216
|
(0, _console.logError)(!(variant === 'toggle' && indeterminate), `[Checkbox] The \`toggle\` variant does not support the \`indeterminate\` property. Use the \`simple\` variant instead.`);
|
|
218
217
|
|
|
219
218
|
/* eslint-disable jsx-a11y/mouse-events-have-key-events */
|
|
220
219
|
|
|
221
220
|
return (0, _emotion.jsx)("div", {
|
|
222
221
|
css: styles === null || styles === void 0 ? void 0 : styles.checkbox,
|
|
223
|
-
onMouseOver: (0,
|
|
224
|
-
onMouseOut: (0,
|
|
222
|
+
onMouseOver: (0, _uiUtils.createChainedFunction)(onMouseOver, this.handleMouseOver),
|
|
223
|
+
onMouseOut: (0, _uiUtils.createChainedFunction)(onMouseOut, this.handleMouseOut),
|
|
225
224
|
ref: this.handleRef
|
|
226
225
|
}, (0, _emotion.jsx)("input", Object.assign({}, props, {
|
|
227
226
|
id: this.id,
|
|
@@ -234,9 +233,9 @@ let Checkbox = exports.Checkbox = (_dec = (0, _withDeterministicId.withDetermini
|
|
|
234
233
|
"aria-checked": indeterminate ? 'mixed' : void 0,
|
|
235
234
|
css: styles === null || styles === void 0 ? void 0 : styles.input,
|
|
236
235
|
onChange: this.handleChange,
|
|
237
|
-
onKeyDown: (0,
|
|
238
|
-
onFocus: (0,
|
|
239
|
-
onBlur: (0,
|
|
236
|
+
onKeyDown: (0, _uiUtils.createChainedFunction)(onKeyDown, this.handleKeyDown),
|
|
237
|
+
onFocus: (0, _uiUtils.createChainedFunction)(onFocus, this.handleFocus),
|
|
238
|
+
onBlur: (0, _uiUtils.createChainedFunction)(onBlur, this.handleBlur),
|
|
240
239
|
checked: this.checked
|
|
241
240
|
})), (0, _emotion.jsx)("label", {
|
|
242
241
|
htmlFor: this.id,
|
package/lib/Checkbox/props.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.propTypes = exports.allowedProps = void 0;
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _uiFormField = require("@instructure/ui-form-field");
|
|
10
|
+
var _uiPropTypes = require("@instructure/ui-prop-types");
|
|
11
11
|
/*
|
|
12
12
|
* The MIT License (MIT)
|
|
13
13
|
*
|
|
@@ -36,9 +36,9 @@ const propTypes = exports.propTypes = {
|
|
|
36
36
|
label: _propTypes.default.node.isRequired,
|
|
37
37
|
id: _propTypes.default.string,
|
|
38
38
|
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
39
|
-
messages: _propTypes.default.arrayOf(
|
|
39
|
+
messages: _propTypes.default.arrayOf(_uiFormField.FormPropTypes.message),
|
|
40
40
|
defaultChecked: _propTypes.default.bool,
|
|
41
|
-
checked: (0,
|
|
41
|
+
checked: (0, _uiPropTypes.controllable)(_propTypes.default.bool, 'onChange', 'defaultChecked'),
|
|
42
42
|
onChange: _propTypes.default.func,
|
|
43
43
|
onKeyDown: _propTypes.default.func,
|
|
44
44
|
onFocus: _propTypes.default.func,
|
|
@@ -5,7 +5,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
5
5
|
var _react2 = require("@testing-library/react");
|
|
6
6
|
var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
|
|
7
7
|
require("@testing-library/jest-dom");
|
|
8
|
-
var
|
|
8
|
+
var _uiAxeCheck = require("@instructure/ui-axe-check");
|
|
9
9
|
var _index = require("../index");
|
|
10
10
|
var _Checkbox3 = require("../../Checkbox");
|
|
11
11
|
var _Checkbox, _Checkbox2;
|
|
@@ -191,7 +191,7 @@ describe('<CheckboxGroup />', () => {
|
|
|
191
191
|
it('should meet standards', async () => {
|
|
192
192
|
const _renderCheckboxGroup3 = renderCheckboxGroup(),
|
|
193
193
|
container = _renderCheckboxGroup3.container;
|
|
194
|
-
const axeCheck = await (0,
|
|
194
|
+
const axeCheck = await (0, _uiAxeCheck.runAxeCheck)(container);
|
|
195
195
|
expect(axeCheck).toBe(true);
|
|
196
196
|
});
|
|
197
197
|
});
|
|
@@ -6,13 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.CheckboxGroup = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var _pickProps = require("@instructure/ui-react-utils/lib/pickProps.js");
|
|
13
|
-
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
14
|
-
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
|
|
15
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
9
|
+
var _uiFormField = require("@instructure/ui-form-field");
|
|
10
|
+
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
11
|
+
var _uiTestable = require("@instructure/ui-testable");
|
|
16
12
|
var _Checkbox = require("../Checkbox");
|
|
17
13
|
var _props = require("./props");
|
|
18
14
|
var _dec, _dec2, _class, _class2;
|
|
@@ -44,7 +40,7 @@ var _dec, _dec2, _class, _class2;
|
|
|
44
40
|
category: components
|
|
45
41
|
---
|
|
46
42
|
**/
|
|
47
|
-
let CheckboxGroup = exports.CheckboxGroup = (_dec = (0,
|
|
43
|
+
let CheckboxGroup = exports.CheckboxGroup = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = (_class2 = class CheckboxGroup extends _react.Component {
|
|
48
44
|
constructor(props) {
|
|
49
45
|
super(props);
|
|
50
46
|
this._messagesId = void 0;
|
|
@@ -93,8 +89,8 @@ let CheckboxGroup = exports.CheckboxGroup = (_dec = (0, _withDeterministicId.wit
|
|
|
93
89
|
disabled = _this$props.disabled,
|
|
94
90
|
readOnly = _this$props.readOnly;
|
|
95
91
|
return _react.Children.map(children, child => {
|
|
96
|
-
if ((0,
|
|
97
|
-
return (0,
|
|
92
|
+
if ((0, _uiReactUtils.matchComponentTypes)(child, [_Checkbox.Checkbox])) {
|
|
93
|
+
return (0, _uiReactUtils.safeCloneElement)(child, {
|
|
98
94
|
key: `${child.props.name}`,
|
|
99
95
|
name,
|
|
100
96
|
label: child.props.label,
|
|
@@ -112,7 +108,7 @@ let CheckboxGroup = exports.CheckboxGroup = (_dec = (0, _withDeterministicId.wit
|
|
|
112
108
|
});
|
|
113
109
|
}
|
|
114
110
|
render() {
|
|
115
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
111
|
+
return /*#__PURE__*/_react.default.createElement(_uiFormField.FormFieldGroup, Object.assign({}, (0, _uiReactUtils.omitProps)(this.props, CheckboxGroup.allowedProps), (0, _uiReactUtils.pickProps)(this.props, _uiFormField.FormFieldGroup.allowedProps), {
|
|
116
112
|
description: this.props.description,
|
|
117
113
|
rowSpacing: "small",
|
|
118
114
|
vAlign: "top",
|
|
@@ -6,9 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.propTypes = exports.allowedProps = void 0;
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
9
|
+
var _uiFormField = require("@instructure/ui-form-field");
|
|
10
|
+
var _uiPropTypes = require("@instructure/ui-prop-types");
|
|
12
11
|
var _Checkbox = require("../Checkbox");
|
|
13
12
|
/*
|
|
14
13
|
* The MIT License (MIT)
|
|
@@ -44,7 +43,7 @@ const propTypes = exports.propTypes = {
|
|
|
44
43
|
/**
|
|
45
44
|
* the selected values (must be accompanied by an `onChange` prop)
|
|
46
45
|
*/
|
|
47
|
-
value: (0,
|
|
46
|
+
value: (0, _uiPropTypes.controllable)(_propTypes.default.array),
|
|
48
47
|
/**
|
|
49
48
|
* when used with the `value` prop, the component will not control its own state
|
|
50
49
|
*/
|
|
@@ -57,11 +56,11 @@ const propTypes = exports.propTypes = {
|
|
|
57
56
|
type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
|
|
58
57
|
}`
|
|
59
58
|
*/
|
|
60
|
-
messages: _propTypes.default.arrayOf(
|
|
59
|
+
messages: _propTypes.default.arrayOf(_uiFormField.FormPropTypes.message),
|
|
61
60
|
/**
|
|
62
61
|
* children of type `Checkbox`
|
|
63
62
|
*/
|
|
64
|
-
children:
|
|
63
|
+
children: _uiPropTypes.Children.oneOf([_Checkbox.Checkbox]),
|
|
65
64
|
size: _propTypes.default.oneOf(['small', 'medium', 'large']),
|
|
66
65
|
layout: _propTypes.default.oneOf(['stacked', 'columns', 'inline'])
|
|
67
66
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-checkbox",
|
|
3
|
-
"version": "8.56.
|
|
3
|
+
"version": "8.56.5-pr-snapshot-1728655013879",
|
|
4
4
|
"description": " styled HTML input type='checkbox' component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.23.2",
|
|
27
|
-
"@instructure/console": "8.56.
|
|
28
|
-
"@instructure/emotion": "8.56.
|
|
29
|
-
"@instructure/shared-types": "8.56.
|
|
30
|
-
"@instructure/ui-dom-utils": "8.56.
|
|
31
|
-
"@instructure/ui-form-field": "8.56.
|
|
32
|
-
"@instructure/ui-icons": "8.56.
|
|
33
|
-
"@instructure/ui-prop-types": "8.56.
|
|
34
|
-
"@instructure/ui-react-utils": "8.56.
|
|
35
|
-
"@instructure/ui-svg-images": "8.56.
|
|
36
|
-
"@instructure/ui-testable": "8.56.
|
|
37
|
-
"@instructure/ui-utils": "8.56.
|
|
38
|
-
"@instructure/ui-view": "8.56.
|
|
39
|
-
"@instructure/uid": "8.56.
|
|
27
|
+
"@instructure/console": "8.56.5-pr-snapshot-1728655013879",
|
|
28
|
+
"@instructure/emotion": "8.56.5-pr-snapshot-1728655013879",
|
|
29
|
+
"@instructure/shared-types": "8.56.5-pr-snapshot-1728655013879",
|
|
30
|
+
"@instructure/ui-dom-utils": "8.56.5-pr-snapshot-1728655013879",
|
|
31
|
+
"@instructure/ui-form-field": "8.56.5-pr-snapshot-1728655013879",
|
|
32
|
+
"@instructure/ui-icons": "8.56.5-pr-snapshot-1728655013879",
|
|
33
|
+
"@instructure/ui-prop-types": "8.56.5-pr-snapshot-1728655013879",
|
|
34
|
+
"@instructure/ui-react-utils": "8.56.5-pr-snapshot-1728655013879",
|
|
35
|
+
"@instructure/ui-svg-images": "8.56.5-pr-snapshot-1728655013879",
|
|
36
|
+
"@instructure/ui-testable": "8.56.5-pr-snapshot-1728655013879",
|
|
37
|
+
"@instructure/ui-utils": "8.56.5-pr-snapshot-1728655013879",
|
|
38
|
+
"@instructure/ui-view": "8.56.5-pr-snapshot-1728655013879",
|
|
39
|
+
"@instructure/uid": "8.56.5-pr-snapshot-1728655013879",
|
|
40
40
|
"keycode": "^2.2.1",
|
|
41
41
|
"prop-types": "^15.8.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@instructure/ui-axe-check": "8.56.
|
|
45
|
-
"@instructure/ui-babel-preset": "8.56.
|
|
46
|
-
"@instructure/ui-color-utils": "8.56.
|
|
47
|
-
"@instructure/ui-test-utils": "8.56.
|
|
48
|
-
"@instructure/ui-themes": "8.56.
|
|
44
|
+
"@instructure/ui-axe-check": "8.56.5-pr-snapshot-1728655013879",
|
|
45
|
+
"@instructure/ui-babel-preset": "8.56.5-pr-snapshot-1728655013879",
|
|
46
|
+
"@instructure/ui-color-utils": "8.56.5-pr-snapshot-1728655013879",
|
|
47
|
+
"@instructure/ui-test-utils": "8.56.5-pr-snapshot-1728655013879",
|
|
48
|
+
"@instructure/ui-themes": "8.56.5-pr-snapshot-1728655013879",
|
|
49
49
|
"@testing-library/jest-dom": "^6.1.4",
|
|
50
50
|
"@testing-library/react": "^14.1.2",
|
|
51
51
|
"@testing-library/user-event": "^14.5.1"
|