@khanacademy/wonder-blocks-accordion 3.1.7 → 3.1.9
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 +18 -0
- package/dist/es/index.js +3 -3
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-accordion
|
|
2
2
|
|
|
3
|
+
## 3.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e63adea]
|
|
8
|
+
- Updated dependencies [e63adea]
|
|
9
|
+
- @khanacademy/wonder-blocks-tokens@8.0.0
|
|
10
|
+
- @khanacademy/wonder-blocks-clickable@7.0.2
|
|
11
|
+
|
|
12
|
+
## 3.1.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- e8ccf60: Update `borderRadius` styles to use new `border.radius` tokens
|
|
17
|
+
- Updated dependencies [e8ccf60]
|
|
18
|
+
- @khanacademy/wonder-blocks-tokens@7.0.0
|
|
19
|
+
- @khanacademy/wonder-blocks-clickable@7.0.1
|
|
20
|
+
|
|
3
21
|
## 3.1.7
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import { StyleSheet } from 'aphrodite';
|
|
6
6
|
import { addStyle, View } from '@khanacademy/wonder-blocks-core';
|
|
7
|
-
import { semanticColor, spacing } from '@khanacademy/wonder-blocks-tokens';
|
|
7
|
+
import { semanticColor, spacing, border } from '@khanacademy/wonder-blocks-tokens';
|
|
8
8
|
import { HeadingSmall, Body } from '@khanacademy/wonder-blocks-typography';
|
|
9
9
|
import caretDown from '@phosphor-icons/core/bold/caret-down-bold.svg';
|
|
10
10
|
import Clickable from '@khanacademy/wonder-blocks-clickable';
|
|
@@ -377,7 +377,7 @@ const _generateStyles = (cornerKind, isFirstSection, isLastSection) => {
|
|
|
377
377
|
wrapperStyle = {
|
|
378
378
|
border: borderStyle,
|
|
379
379
|
borderBottom: "none",
|
|
380
|
-
borderRadius:
|
|
380
|
+
borderRadius: border.radius.radius_0
|
|
381
381
|
};
|
|
382
382
|
if (isLastSection) {
|
|
383
383
|
lastSectionStyle = {
|
|
@@ -411,7 +411,7 @@ const _generateStyles = (cornerKind, isFirstSection, isLastSection) => {
|
|
|
411
411
|
if (cornerKind === "rounded-per-section") {
|
|
412
412
|
wrapperStyle = {
|
|
413
413
|
border: borderStyle,
|
|
414
|
-
borderRadius:
|
|
414
|
+
borderRadius: border.radius.radius_120,
|
|
415
415
|
marginBottom: spacing.medium_16
|
|
416
416
|
};
|
|
417
417
|
contentWrapperStyle = {
|
package/dist/index.js
CHANGED
|
@@ -406,7 +406,7 @@ const _generateStyles = (cornerKind, isFirstSection, isLastSection) => {
|
|
|
406
406
|
wrapperStyle = {
|
|
407
407
|
border: borderStyle,
|
|
408
408
|
borderBottom: "none",
|
|
409
|
-
borderRadius:
|
|
409
|
+
borderRadius: wonderBlocksTokens.border.radius.radius_0
|
|
410
410
|
};
|
|
411
411
|
if (isLastSection) {
|
|
412
412
|
lastSectionStyle = {
|
|
@@ -440,7 +440,7 @@ const _generateStyles = (cornerKind, isFirstSection, isLastSection) => {
|
|
|
440
440
|
if (cornerKind === "rounded-per-section") {
|
|
441
441
|
wrapperStyle = {
|
|
442
442
|
border: borderStyle,
|
|
443
|
-
borderRadius: wonderBlocksTokens.
|
|
443
|
+
borderRadius: wonderBlocksTokens.border.radius.radius_120,
|
|
444
444
|
marginBottom: wonderBlocksTokens.spacing.medium_16
|
|
445
445
|
};
|
|
446
446
|
contentWrapperStyle = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-accordion",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Accordion components for Wonder Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime": "^7.24.5",
|
|
17
|
-
"@khanacademy/wonder-blocks-clickable": "7.0.
|
|
17
|
+
"@khanacademy/wonder-blocks-clickable": "7.0.2",
|
|
18
18
|
"@khanacademy/wonder-blocks-core": "12.2.1",
|
|
19
19
|
"@khanacademy/wonder-blocks-icon": "5.1.3",
|
|
20
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
20
|
+
"@khanacademy/wonder-blocks-tokens": "8.0.0",
|
|
21
21
|
"@khanacademy/wonder-blocks-typography": "3.1.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|