@khanacademy/wonder-blocks-toolbar 5.1.0 → 5.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 +26 -0
- package/dist/es/index.js +7 -7
- package/dist/index.js +10 -9
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-toolbar
|
|
2
2
|
|
|
3
|
+
## 5.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fff5da0: Migrate to semanticColor tokens
|
|
8
|
+
- Updated dependencies [ed26d66]
|
|
9
|
+
- Updated dependencies [5655b9f]
|
|
10
|
+
- Updated dependencies [5655b9f]
|
|
11
|
+
- Updated dependencies [8f53293]
|
|
12
|
+
- Updated dependencies [051f0f8]
|
|
13
|
+
- Updated dependencies [e1b78db]
|
|
14
|
+
- Updated dependencies [051f0f8]
|
|
15
|
+
- @khanacademy/wonder-blocks-core@12.2.0
|
|
16
|
+
- @khanacademy/wonder-blocks-tokens@5.0.0
|
|
17
|
+
- @khanacademy/wonder-blocks-typography@3.1.2
|
|
18
|
+
|
|
19
|
+
## 5.1.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- ee8d95a: Rollback rollup version from v4 to v2 to prevent an issue with CJS builds in unit tests
|
|
24
|
+
- Updated dependencies [ee8d95a]
|
|
25
|
+
- @khanacademy/wonder-blocks-core@12.1.1
|
|
26
|
+
- @khanacademy/wonder-blocks-tokens@4.2.1
|
|
27
|
+
- @khanacademy/wonder-blocks-typography@3.1.1
|
|
28
|
+
|
|
3
29
|
## 5.1.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/dist/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet } from 'aphrodite';
|
|
3
3
|
import { View } from '@khanacademy/wonder-blocks-core';
|
|
4
|
-
import {
|
|
4
|
+
import { semanticColor, spacing, color } from '@khanacademy/wonder-blocks-tokens';
|
|
5
5
|
import { LabelSmall, LabelLarge, HeadingSmall } from '@khanacademy/wonder-blocks-typography';
|
|
6
6
|
|
|
7
7
|
function Toolbar({
|
|
@@ -33,13 +33,13 @@ function Toolbar({
|
|
|
33
33
|
}
|
|
34
34
|
const sharedStyles = StyleSheet.create({
|
|
35
35
|
container: {
|
|
36
|
-
|
|
36
|
+
background: semanticColor.surface.primary,
|
|
37
|
+
border: `1px solid ${semanticColor.border.primary}`,
|
|
37
38
|
flex: 1,
|
|
38
39
|
display: "grid",
|
|
39
40
|
alignItems: "center",
|
|
40
41
|
minHeight: 66,
|
|
41
|
-
|
|
42
|
-
paddingRight: spacing.medium_16,
|
|
42
|
+
paddingInline: spacing.medium_16,
|
|
43
43
|
width: "100%"
|
|
44
44
|
},
|
|
45
45
|
containerWithTextTitle: {
|
|
@@ -55,9 +55,9 @@ const sharedStyles = StyleSheet.create({
|
|
|
55
55
|
minHeight: 50
|
|
56
56
|
},
|
|
57
57
|
dark: {
|
|
58
|
-
|
|
58
|
+
background: semanticColor.surface.inverse,
|
|
59
59
|
boxShadow: `0 1px 0 0 ${color.white64}`,
|
|
60
|
-
color:
|
|
60
|
+
color: semanticColor.text.inverse
|
|
61
61
|
},
|
|
62
62
|
leftColumn: {
|
|
63
63
|
alignItems: "center",
|
|
@@ -71,7 +71,7 @@ const sharedStyles = StyleSheet.create({
|
|
|
71
71
|
flexGrow: 1
|
|
72
72
|
},
|
|
73
73
|
subtitle: {
|
|
74
|
-
color:
|
|
74
|
+
color: semanticColor.text.secondary
|
|
75
75
|
},
|
|
76
76
|
titles: {
|
|
77
77
|
padding: spacing.small_12,
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,8 @@ var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
|
|
|
6
6
|
var wonderBlocksTokens = require('@khanacademy/wonder-blocks-tokens');
|
|
7
7
|
var wonderBlocksTypography = require('@khanacademy/wonder-blocks-typography');
|
|
8
8
|
|
|
9
|
-
function
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
10
11
|
var n = Object.create(null);
|
|
11
12
|
if (e) {
|
|
12
13
|
Object.keys(e).forEach(function (k) {
|
|
@@ -19,11 +20,11 @@ function _interopNamespaceDefault(e) {
|
|
|
19
20
|
}
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
|
-
n
|
|
23
|
+
n["default"] = e;
|
|
23
24
|
return Object.freeze(n);
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
var React__namespace = /*#__PURE__*/
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
28
|
|
|
28
29
|
function Toolbar({
|
|
29
30
|
color = "light",
|
|
@@ -54,13 +55,13 @@ function Toolbar({
|
|
|
54
55
|
}
|
|
55
56
|
const sharedStyles = aphrodite.StyleSheet.create({
|
|
56
57
|
container: {
|
|
57
|
-
|
|
58
|
+
background: wonderBlocksTokens.semanticColor.surface.primary,
|
|
59
|
+
border: `1px solid ${wonderBlocksTokens.semanticColor.border.primary}`,
|
|
58
60
|
flex: 1,
|
|
59
61
|
display: "grid",
|
|
60
62
|
alignItems: "center",
|
|
61
63
|
minHeight: 66,
|
|
62
|
-
|
|
63
|
-
paddingRight: wonderBlocksTokens.spacing.medium_16,
|
|
64
|
+
paddingInline: wonderBlocksTokens.spacing.medium_16,
|
|
64
65
|
width: "100%"
|
|
65
66
|
},
|
|
66
67
|
containerWithTextTitle: {
|
|
@@ -76,9 +77,9 @@ const sharedStyles = aphrodite.StyleSheet.create({
|
|
|
76
77
|
minHeight: 50
|
|
77
78
|
},
|
|
78
79
|
dark: {
|
|
79
|
-
|
|
80
|
+
background: wonderBlocksTokens.semanticColor.surface.inverse,
|
|
80
81
|
boxShadow: `0 1px 0 0 ${wonderBlocksTokens.color.white64}`,
|
|
81
|
-
color:
|
|
82
|
+
color: wonderBlocksTokens.semanticColor.text.inverse
|
|
82
83
|
},
|
|
83
84
|
leftColumn: {
|
|
84
85
|
alignItems: "center",
|
|
@@ -92,7 +93,7 @@ const sharedStyles = aphrodite.StyleSheet.create({
|
|
|
92
93
|
flexGrow: 1
|
|
93
94
|
},
|
|
94
95
|
subtitle: {
|
|
95
|
-
color: wonderBlocksTokens.
|
|
96
|
+
color: wonderBlocksTokens.semanticColor.text.secondary
|
|
96
97
|
},
|
|
97
98
|
titles: {
|
|
98
99
|
padding: wonderBlocksTokens.spacing.small_12,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-toolbar",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/runtime": "^7.24.5",
|
|
16
|
-
"@khanacademy/wonder-blocks-core": "12.
|
|
17
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
18
|
-
"@khanacademy/wonder-blocks-typography": "3.1.
|
|
16
|
+
"@khanacademy/wonder-blocks-core": "12.2.0",
|
|
17
|
+
"@khanacademy/wonder-blocks-tokens": "5.0.0",
|
|
18
|
+
"@khanacademy/wonder-blocks-typography": "3.1.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"aphrodite": "^1.2.5",
|
|
22
22
|
"react": "18.2.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@khanacademy/wb-dev-build-settings": "2.1.
|
|
25
|
+
"@khanacademy/wb-dev-build-settings": "2.1.1"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"test": "echo \"Error: no test specified\" && exit 1"
|