@khanacademy/wonder-blocks-toolbar 5.1.1 → 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 CHANGED
@@ -1,5 +1,21 @@
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
+
3
19
  ## 5.1.1
4
20
 
5
21
  ### Patch 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 { color, spacing } from '@khanacademy/wonder-blocks-tokens';
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
- border: `1px solid ${color.offBlack16}`,
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
- paddingLeft: spacing.medium_16,
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
- backgroundColor: color.darkBlue,
58
+ background: semanticColor.surface.inverse,
59
59
  boxShadow: `0 1px 0 0 ${color.white64}`,
60
- color: "white"
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: color.offBlack64
74
+ color: semanticColor.text.secondary
75
75
  },
76
76
  titles: {
77
77
  padding: spacing.small_12,
package/dist/index.js CHANGED
@@ -55,13 +55,13 @@ function Toolbar({
55
55
  }
56
56
  const sharedStyles = aphrodite.StyleSheet.create({
57
57
  container: {
58
- border: `1px solid ${wonderBlocksTokens.color.offBlack16}`,
58
+ background: wonderBlocksTokens.semanticColor.surface.primary,
59
+ border: `1px solid ${wonderBlocksTokens.semanticColor.border.primary}`,
59
60
  flex: 1,
60
61
  display: "grid",
61
62
  alignItems: "center",
62
63
  minHeight: 66,
63
- paddingLeft: wonderBlocksTokens.spacing.medium_16,
64
- paddingRight: wonderBlocksTokens.spacing.medium_16,
64
+ paddingInline: wonderBlocksTokens.spacing.medium_16,
65
65
  width: "100%"
66
66
  },
67
67
  containerWithTextTitle: {
@@ -77,9 +77,9 @@ const sharedStyles = aphrodite.StyleSheet.create({
77
77
  minHeight: 50
78
78
  },
79
79
  dark: {
80
- backgroundColor: wonderBlocksTokens.color.darkBlue,
80
+ background: wonderBlocksTokens.semanticColor.surface.inverse,
81
81
  boxShadow: `0 1px 0 0 ${wonderBlocksTokens.color.white64}`,
82
- color: "white"
82
+ color: wonderBlocksTokens.semanticColor.text.inverse
83
83
  },
84
84
  leftColumn: {
85
85
  alignItems: "center",
@@ -93,7 +93,7 @@ const sharedStyles = aphrodite.StyleSheet.create({
93
93
  flexGrow: 1
94
94
  },
95
95
  subtitle: {
96
- color: wonderBlocksTokens.color.offBlack64
96
+ color: wonderBlocksTokens.semanticColor.text.secondary
97
97
  },
98
98
  titles: {
99
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.1",
3
+ "version": "5.1.2",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,9 +13,9 @@
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
15
  "@babel/runtime": "^7.24.5",
16
- "@khanacademy/wonder-blocks-core": "12.1.1",
17
- "@khanacademy/wonder-blocks-tokens": "4.2.1",
18
- "@khanacademy/wonder-blocks-typography": "3.1.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",