@khanacademy/perseus 1.1.0 → 1.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 +16 -0
- package/dist/es/index.css +3 -0
- package/dist/es/index.js +15385 -15345
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.js +15309 -15269
- package/dist/index.js.map +1 -1
- package/dist/strings.js +1 -0
- package/package.json +1 -1
- package/src/__stories__/hints-renderer.stories.jsx +52 -0
- package/src/components/__stories__/input-with-examples.stories.jsx +1 -0
- package/src/components/input-with-examples.jsx +41 -24
- package/src/components/text-input.jsx +5 -3
- package/src/hints-renderer.jsx +13 -4
- package/src/mixins/__tests__/widget-prop-blacklist_test.js +23 -0
- package/src/mixins/widget-prop-blacklist.js +15 -1
- package/src/multi-items/__tests__/__snapshots__/multi-renderer_test.js.snap +30 -10
- package/src/styles/widgets/matrix.less +2 -0
- package/src/styles/widgets/passage.less +1 -0
- package/src/types.js +1 -1
- package/src/widgets/__stories__/numeric-input.stories.jsx +53 -7
- package/src/widgets/__tests__/__snapshots__/graded-group-set-jipt_test.jsx.snap +18 -9
- package/src/widgets/__tests__/__snapshots__/graded-group-set_test.jsx.snap +12 -3
- package/src/widgets/__tests__/__snapshots__/graded-group_test.jsx.snap +6 -3
- package/src/widgets/__tests__/__snapshots__/group_test.jsx.snap +32 -12
- package/src/widgets/__tests__/__snapshots__/matrix_test.jsx.snap +24 -24
- package/src/widgets/__tests__/__snapshots__/numeric-input_test.jsx.snap +4 -4
- package/src/widgets/__tests__/__snapshots__/passage-ref_test.jsx.snap +3 -3
- package/src/widgets/__tests__/__snapshots__/passage_test.jsx.snap +6 -6
- package/src/widgets/__tests__/__snapshots__/radio_test.jsx.snap +300 -218
- package/src/widgets/__tests__/radio/base-radio_test.jsx +90 -6
- package/src/widgets/__tests__/radio/choice-icon_test.jsx +74 -0
- package/src/widgets/__tests__/radio/choice_test.jsx +39 -30
- package/src/widgets/__tests__/radio_test.jsx +228 -22
- package/src/widgets/graded-group-set.jsx +8 -1
- package/src/widgets/graded-group.jsx +7 -2
- package/src/widgets/matrix.jsx +17 -1
- package/src/widgets/numeric-input.jsx +12 -6
- package/src/widgets/passage-ref.jsx +21 -5
- package/src/widgets/passage.jsx +3 -1
- package/src/widgets/radio/__stories__/base-radio.stories.jsx +7 -3
- package/src/widgets/radio/base-radio.jsx +3 -1
- package/src/widgets/radio/choice-icon/cross-out-line.jsx +3 -2
- package/src/widgets/radio/choice-icon/library-choice-icon.jsx +17 -6
- package/src/widgets/radio/choice.jsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b8b0ff7e: Update graded-group widget title to use a darker gray to meet a11y requirements
|
|
8
|
+
- 1dad999d: bugfix: add indention back to Passage widget
|
|
9
|
+
- cc5103be: Small fix to communicate the "current" state of graded-group-sets to screen readers.
|
|
10
|
+
|
|
11
|
+
## 1.1.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 5b86aba4: bugfix: add size and rightAlign back to numeric-input widget
|
|
16
|
+
- 5b86aba4: bugfix for Matrix styles not getting passed through
|
|
17
|
+
- 6b48ca35: A tiny change that adds some aria labels to our message container so that the content will be read to screen readers upon update.
|
|
18
|
+
|
|
3
19
|
## 1.1.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/es/index.css
CHANGED
|
@@ -2893,10 +2893,12 @@ body.mobile .categorizer-container td.category input[type="radio"] + span:active
|
|
|
2893
2893
|
.perseus-matrix .matrix-bracket.bracket-left {
|
|
2894
2894
|
border-color: #666;
|
|
2895
2895
|
border-left-width: 2px;
|
|
2896
|
+
border-right-width: 0;
|
|
2896
2897
|
left: 3px;
|
|
2897
2898
|
}
|
|
2898
2899
|
.perseus-matrix .matrix-bracket.bracket-right {
|
|
2899
2900
|
border-color: #666;
|
|
2901
|
+
border-left-width: 0;
|
|
2900
2902
|
border-right-width: 2px;
|
|
2901
2903
|
margin-left: -3px;
|
|
2902
2904
|
}
|
|
@@ -3073,6 +3075,7 @@ body.mobile .perseus-matrix .math-output {
|
|
|
3073
3075
|
font-weight: 400;
|
|
3074
3076
|
font-size: 20px;
|
|
3075
3077
|
line-height: 24px;
|
|
3078
|
+
text-indent: 20px;
|
|
3076
3079
|
}
|
|
3077
3080
|
.perseus-widget-passage-container .passage-text div.paragraph span {
|
|
3078
3081
|
text-indent: 0;
|