@khanacademy/wonder-blocks-toolbar 2.1.30 → 2.1.31

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,12 @@
1
1
  # @khanacademy/wonder-blocks-toolbar
2
2
 
3
+ ## 2.1.31
4
+
5
+ ### Patch Changes
6
+
7
+ - @khanacademy/wonder-blocks-core@4.3.1
8
+ - @khanacademy/wonder-blocks-typography@1.1.31
9
+
3
10
  ## 2.1.30
4
11
 
5
12
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -4,9 +4,6 @@ import Color from '@khanacademy/wonder-blocks-color';
4
4
  import { View } from '@khanacademy/wonder-blocks-core';
5
5
  import { LabelSmall, LabelLarge, HeadingSmall } from '@khanacademy/wonder-blocks-typography';
6
6
 
7
- /*
8
- * A toolbar component that often acts as a container header.
9
- */
10
7
  class Toolbar extends React.Component {
11
8
  render() {
12
9
  const {
@@ -18,23 +15,23 @@ class Toolbar extends React.Component {
18
15
  title
19
16
  } = this.props;
20
17
  const TitleComponent = subtitle ? LabelLarge : HeadingSmall;
21
- return /*#__PURE__*/React.createElement(View, {
18
+ return React.createElement(View, {
22
19
  style: [sharedStyles.container, color === "dark" && sharedStyles.dark, size === "small" && sharedStyles.small]
23
- }, /*#__PURE__*/React.createElement(View, {
20
+ }, React.createElement(View, {
24
21
  style: sharedStyles.column
25
- }, /*#__PURE__*/React.createElement(View, {
22
+ }, React.createElement(View, {
26
23
  style: sharedStyles.leftColumn
27
- }, leftContent)), title && /*#__PURE__*/React.createElement(View, {
24
+ }, leftContent)), title && React.createElement(View, {
28
25
  style: [sharedStyles.column, sharedStyles.wideColumn]
29
- }, /*#__PURE__*/React.createElement(View, {
26
+ }, React.createElement(View, {
30
27
  style: [sharedStyles.titles, sharedStyles.verticalAlign, sharedStyles.center]
31
- }, /*#__PURE__*/React.createElement(TitleComponent, {
28
+ }, React.createElement(TitleComponent, {
32
29
  id: "wb-toolbar-title"
33
- }, title), subtitle && /*#__PURE__*/React.createElement(LabelSmall, {
30
+ }, title), subtitle && React.createElement(LabelSmall, {
34
31
  style: color === "light" && sharedStyles.subtitle
35
- }, subtitle))), /*#__PURE__*/React.createElement(View, {
32
+ }, subtitle))), React.createElement(View, {
36
33
  style: sharedStyles.column
37
- }, /*#__PURE__*/React.createElement(View, {
34
+ }, React.createElement(View, {
38
35
  style: sharedStyles.rightColumn
39
36
  }, rightContent)));
40
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-toolbar",
3
- "version": "2.1.30",
3
+ "version": "2.1.31",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,14 +17,14 @@
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.16.3",
19
19
  "@khanacademy/wonder-blocks-color": "^1.1.20",
20
- "@khanacademy/wonder-blocks-core": "^4.3.0",
21
- "@khanacademy/wonder-blocks-typography": "^1.1.30"
20
+ "@khanacademy/wonder-blocks-core": "^4.3.1",
21
+ "@khanacademy/wonder-blocks-typography": "^1.1.31"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "aphrodite": "^1.2.5",
25
25
  "react": "16.14.0"
26
26
  },
27
27
  "devDependencies": {
28
- "wb-dev-build-settings": "^0.3.0"
28
+ "wb-dev-build-settings": "^0.4.0"
29
29
  }
30
30
  }