@khanacademy/wonder-blocks-form 3.1.3 → 3.1.5
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 +13 -0
- package/dist/index.js +3 -6
- package/package.json +2 -2
- package/src/components/checkbox-group.js +2 -2
- package/src/components/radio-group.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-form
|
|
2
2
|
|
|
3
|
+
## 3.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- be4e4cd2: Allow maybe values for `errorMessage` prop on `CheckboxGroup`
|
|
8
|
+
|
|
9
|
+
## 3.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [ceb111df]
|
|
14
|
+
- @khanacademy/wonder-blocks-clickable@2.4.0
|
|
15
|
+
|
|
3
16
|
## 3.1.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -123,19 +123,16 @@ function _extends() {
|
|
|
123
123
|
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
124
124
|
for (var i = 1; i < arguments.length; i++) {
|
|
125
125
|
var source = arguments[i];
|
|
126
|
-
|
|
127
126
|
for (var key in source) {
|
|
128
127
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
129
128
|
target[key] = source[key];
|
|
130
129
|
}
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
|
-
|
|
134
132
|
return target;
|
|
135
133
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
136
134
|
return _extends.apply(this, arguments);
|
|
137
135
|
}
|
|
138
|
-
|
|
139
136
|
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
140
137
|
|
|
141
138
|
/***/ }),
|
|
@@ -806,7 +803,7 @@ const StyledLegend = Object(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MO
|
|
|
806
803
|
* groupName="some-group-name"
|
|
807
804
|
* onChange={setSelectedValues}
|
|
808
805
|
* selectedValues={selectedValues}
|
|
809
|
-
*
|
|
806
|
+
* >
|
|
810
807
|
* // Add as many choices as necessary
|
|
811
808
|
* <Choice
|
|
812
809
|
* label="Choice 1"
|
|
@@ -921,7 +918,7 @@ const StyledLegend = Object(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MO
|
|
|
921
918
|
* ```jsx
|
|
922
919
|
* import {Choice, RadioGroup} from "@khanacademy/wonder-blocks-form";
|
|
923
920
|
*
|
|
924
|
-
* const [selectedValue, setSelectedValue] = React.useState(
|
|
921
|
+
* const [selectedValue, setSelectedValue] = React.useState("");
|
|
925
922
|
*
|
|
926
923
|
* <RadioGroup
|
|
927
924
|
* label="some-label"
|
|
@@ -929,7 +926,7 @@ const StyledLegend = Object(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MO
|
|
|
929
926
|
* groupName="some-group-name"
|
|
930
927
|
* onChange={setSelectedValue}
|
|
931
928
|
* selectedValue={selectedValue}
|
|
932
|
-
*
|
|
929
|
+
* >
|
|
933
930
|
* // Add as many choices as necessary
|
|
934
931
|
* <Choice
|
|
935
932
|
* label="Choice 1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-form",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Form components for Wonder Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.18.6",
|
|
19
|
-
"@khanacademy/wonder-blocks-clickable": "^2.
|
|
19
|
+
"@khanacademy/wonder-blocks-clickable": "^2.4.0",
|
|
20
20
|
"@khanacademy/wonder-blocks-color": "^1.2.0",
|
|
21
21
|
"@khanacademy/wonder-blocks-core": "^4.5.0",
|
|
22
22
|
"@khanacademy/wonder-blocks-icon": "^1.2.32",
|
|
@@ -40,7 +40,7 @@ type CheckboxGroupProps = {|
|
|
|
40
40
|
* error state, along with this error message. If no error state is desired,
|
|
41
41
|
* simply do not supply this prop, or pass along null.
|
|
42
42
|
*/
|
|
43
|
-
errorMessage?: string,
|
|
43
|
+
errorMessage?: ?string,
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Custom styling for this group of checkboxes.
|
|
@@ -86,7 +86,7 @@ const StyledLegend = addStyle<"legend">("legend");
|
|
|
86
86
|
* groupName="some-group-name"
|
|
87
87
|
* onChange={setSelectedValues}
|
|
88
88
|
* selectedValues={selectedValues}
|
|
89
|
-
*
|
|
89
|
+
* >
|
|
90
90
|
* // Add as many choices as necessary
|
|
91
91
|
* <Choice
|
|
92
92
|
* label="Choice 1"
|
|
@@ -79,7 +79,7 @@ const StyledLegend = addStyle<"legend">("legend");
|
|
|
79
79
|
* ```jsx
|
|
80
80
|
* import {Choice, RadioGroup} from "@khanacademy/wonder-blocks-form";
|
|
81
81
|
*
|
|
82
|
-
* const [selectedValue, setSelectedValue] = React.useState(
|
|
82
|
+
* const [selectedValue, setSelectedValue] = React.useState("");
|
|
83
83
|
*
|
|
84
84
|
* <RadioGroup
|
|
85
85
|
* label="some-label"
|
|
@@ -87,7 +87,7 @@ const StyledLegend = addStyle<"legend">("legend");
|
|
|
87
87
|
* groupName="some-group-name"
|
|
88
88
|
* onChange={setSelectedValue}
|
|
89
89
|
* selectedValue={selectedValue}
|
|
90
|
-
*
|
|
90
|
+
* >
|
|
91
91
|
* // Add as many choices as necessary
|
|
92
92
|
* <Choice
|
|
93
93
|
* label="Choice 1"
|