@khanacademy/wonder-blocks-form 4.7.4 → 4.8.0
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 +19 -0
- package/dist/components/text-area.d.ts +153 -0
- package/dist/es/index.js +254 -80
- package/dist/index.d.ts +2 -1
- package/dist/index.js +277 -100
- package/package.json +8 -8
- package/src/components/__tests__/field-heading.test.tsx +10 -2
- package/src/components/__tests__/text-area.test.tsx +1084 -0
- package/src/components/text-area.tsx +401 -0
- package/src/index.ts +2 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-form",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Form components for Wonder Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.18.6",
|
|
19
|
-
"@khanacademy/wonder-blocks-clickable": "^4.2.
|
|
20
|
-
"@khanacademy/wonder-blocks-core": "^6.4.
|
|
21
|
-
"@khanacademy/wonder-blocks-icon": "^4.1.
|
|
22
|
-
"@khanacademy/wonder-blocks-layout": "^2.1.
|
|
23
|
-
"@khanacademy/wonder-blocks-tokens": "^1.3.
|
|
24
|
-
"@khanacademy/wonder-blocks-typography": "^2.1.
|
|
19
|
+
"@khanacademy/wonder-blocks-clickable": "^4.2.5",
|
|
20
|
+
"@khanacademy/wonder-blocks-core": "^6.4.3",
|
|
21
|
+
"@khanacademy/wonder-blocks-icon": "^4.1.3",
|
|
22
|
+
"@khanacademy/wonder-blocks-layout": "^2.1.2",
|
|
23
|
+
"@khanacademy/wonder-blocks-tokens": "^1.3.1",
|
|
24
|
+
"@khanacademy/wonder-blocks-typography": "^2.1.14"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"aphrodite": "^1.2.5",
|
|
28
28
|
"react": "16.14.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@khanacademy/wb-dev-build-settings": "^1.0.
|
|
31
|
+
"@khanacademy/wb-dev-build-settings": "^1.0.1"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -187,7 +187,11 @@ describe("FieldHeading", () => {
|
|
|
187
187
|
render(
|
|
188
188
|
<FieldHeading
|
|
189
189
|
field={<TextField id="tf-1" value="" onChange={() => {}} />}
|
|
190
|
-
label={
|
|
190
|
+
label={
|
|
191
|
+
<I18nInlineMarkup b={(s: string) => <b>{s}</b>}>
|
|
192
|
+
{"<b>Test</b> Hello, world!"}
|
|
193
|
+
</I18nInlineMarkup>
|
|
194
|
+
}
|
|
191
195
|
/>,
|
|
192
196
|
);
|
|
193
197
|
|
|
@@ -205,7 +209,11 @@ describe("FieldHeading", () => {
|
|
|
205
209
|
<FieldHeading
|
|
206
210
|
field={<TextField id="tf-1" value="" onChange={() => {}} />}
|
|
207
211
|
label={<Body>Hello, world</Body>}
|
|
208
|
-
description={
|
|
212
|
+
description={
|
|
213
|
+
<I18nInlineMarkup b={(s: string) => <b>{s}</b>}>
|
|
214
|
+
{"<b>Test</b> description"}
|
|
215
|
+
</I18nInlineMarkup>
|
|
216
|
+
}
|
|
209
217
|
/>,
|
|
210
218
|
);
|
|
211
219
|
|