@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/dist/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;
|