@khanacademy/wonder-blocks-button 4.0.5 → 4.0.6

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,17 @@
1
1
  # @khanacademy/wonder-blocks-button
2
2
 
3
+ ## 4.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - c20f48f3: Don't transpile classes when building bundles
8
+ - Updated dependencies [c20f48f3]
9
+ - @khanacademy/wonder-blocks-clickable@3.0.6
10
+ - @khanacademy/wonder-blocks-core@5.0.4
11
+ - @khanacademy/wonder-blocks-icon@2.0.6
12
+ - @khanacademy/wonder-blocks-progress-spinner@2.0.6
13
+ - @khanacademy/wonder-blocks-typography@2.0.6
14
+
3
15
  ## 4.0.5
4
16
 
5
17
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -38,31 +38,12 @@ function _objectWithoutPropertiesLoose(source, excluded) {
38
38
  return target;
39
39
  }
40
40
 
41
- function _setPrototypeOf(o, p) {
42
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
43
- o.__proto__ = p;
44
- return o;
45
- };
46
- return _setPrototypeOf(o, p);
47
- }
48
-
49
- function _inheritsLoose(subClass, superClass) {
50
- subClass.prototype = Object.create(superClass.prototype);
51
- subClass.prototype.constructor = subClass;
52
- _setPrototypeOf(subClass, superClass);
53
- }
54
-
55
41
  const _excluded$1 = ["children", "skipClientNav", "color", "disabled", "focused", "hovered", "href", "kind", "light", "pressed", "size", "style", "testId", "type", "spinner", "icon", "id", "waiting"];
56
42
  const StyledAnchor = addStyle("a");
57
43
  const StyledButton = addStyle("button");
58
44
  const StyledLink = addStyle(Link);
59
- let ButtonCore = function (_React$Component) {
60
- _inheritsLoose(ButtonCore, _React$Component);
61
- function ButtonCore() {
62
- return _React$Component.apply(this, arguments) || this;
63
- }
64
- var _proto = ButtonCore.prototype;
65
- _proto.renderInner = function renderInner(router) {
45
+ class ButtonCore extends React.Component {
46
+ renderInner(router) {
66
47
  const _this$props = this.props,
67
48
  {
68
49
  children,
@@ -129,12 +110,11 @@ let ButtonCore = function (_React$Component) {
129
110
  "aria-disabled": disabled
130
111
  }), contents);
131
112
  }
132
- };
133
- _proto.render = function render() {
113
+ }
114
+ render() {
134
115
  return React.createElement(__RouterContext.Consumer, null, router => this.renderInner(router));
135
- };
136
- return ButtonCore;
137
- }(React.Component);
116
+ }
117
+ }
138
118
  const sharedStyles = StyleSheet.create({
139
119
  shared: {
140
120
  position: "relative",
@@ -339,13 +319,8 @@ const _generateStyles = (color, kind, light, iconWidth, size) => {
339
319
  };
340
320
 
341
321
  const _excluded = ["href", "type", "children", "skipClientNav", "spinner", "disabled", "onClick", "beforeNav", "safeWithNav", "tabIndex", "target", "rel"];
342
- let Button = function (_React$Component) {
343
- _inheritsLoose(Button, _React$Component);
344
- function Button() {
345
- return _React$Component.apply(this, arguments) || this;
346
- }
347
- var _proto = Button.prototype;
348
- _proto.renderClickableBehavior = function renderClickableBehavior(router) {
322
+ class Button extends React.Component {
323
+ renderClickableBehavior(router) {
349
324
  const _this$props = this.props,
350
325
  {
351
326
  href = undefined,
@@ -397,12 +372,11 @@ let Button = function (_React$Component) {
397
372
  rel: rel
398
373
  }, renderProp);
399
374
  }
400
- };
401
- _proto.render = function render() {
375
+ }
376
+ render() {
402
377
  return React.createElement(__RouterContext.Consumer, null, router => this.renderClickableBehavior(router));
403
- };
404
- return Button;
405
- }(React.Component);
378
+ }
379
+ }
406
380
  Button.defaultProps = {
407
381
  color: "default",
408
382
  kind: "primary",
package/dist/index.js CHANGED
@@ -65,31 +65,12 @@ function _objectWithoutPropertiesLoose(source, excluded) {
65
65
  return target;
66
66
  }
67
67
 
68
- function _setPrototypeOf(o, p) {
69
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
70
- o.__proto__ = p;
71
- return o;
72
- };
73
- return _setPrototypeOf(o, p);
74
- }
75
-
76
- function _inheritsLoose(subClass, superClass) {
77
- subClass.prototype = Object.create(superClass.prototype);
78
- subClass.prototype.constructor = subClass;
79
- _setPrototypeOf(subClass, superClass);
80
- }
81
-
82
68
  const _excluded$1 = ["children", "skipClientNav", "color", "disabled", "focused", "hovered", "href", "kind", "light", "pressed", "size", "style", "testId", "type", "spinner", "icon", "id", "waiting"];
83
69
  const StyledAnchor = wonderBlocksCore.addStyle("a");
84
70
  const StyledButton = wonderBlocksCore.addStyle("button");
85
71
  const StyledLink = wonderBlocksCore.addStyle(reactRouterDom.Link);
86
- let ButtonCore = function (_React$Component) {
87
- _inheritsLoose(ButtonCore, _React$Component);
88
- function ButtonCore() {
89
- return _React$Component.apply(this, arguments) || this;
90
- }
91
- var _proto = ButtonCore.prototype;
92
- _proto.renderInner = function renderInner(router) {
72
+ class ButtonCore extends React__namespace.Component {
73
+ renderInner(router) {
93
74
  const _this$props = this.props,
94
75
  {
95
76
  children,
@@ -156,12 +137,11 @@ let ButtonCore = function (_React$Component) {
156
137
  "aria-disabled": disabled
157
138
  }), contents);
158
139
  }
159
- };
160
- _proto.render = function render() {
140
+ }
141
+ render() {
161
142
  return React__namespace.createElement(reactRouter.__RouterContext.Consumer, null, router => this.renderInner(router));
162
- };
163
- return ButtonCore;
164
- }(React__namespace.Component);
143
+ }
144
+ }
165
145
  const sharedStyles = aphrodite.StyleSheet.create({
166
146
  shared: {
167
147
  position: "relative",
@@ -366,13 +346,8 @@ const _generateStyles = (color, kind, light, iconWidth, size) => {
366
346
  };
367
347
 
368
348
  const _excluded = ["href", "type", "children", "skipClientNav", "spinner", "disabled", "onClick", "beforeNav", "safeWithNav", "tabIndex", "target", "rel"];
369
- let Button = function (_React$Component) {
370
- _inheritsLoose(Button, _React$Component);
371
- function Button() {
372
- return _React$Component.apply(this, arguments) || this;
373
- }
374
- var _proto = Button.prototype;
375
- _proto.renderClickableBehavior = function renderClickableBehavior(router) {
349
+ class Button extends React__namespace.Component {
350
+ renderClickableBehavior(router) {
376
351
  const _this$props = this.props,
377
352
  {
378
353
  href = undefined,
@@ -424,12 +399,11 @@ let Button = function (_React$Component) {
424
399
  rel: rel
425
400
  }, renderProp);
426
401
  }
427
- };
428
- _proto.render = function render() {
402
+ }
403
+ render() {
429
404
  return React__namespace.createElement(reactRouter.__RouterContext.Consumer, null, router => this.renderClickableBehavior(router));
430
- };
431
- return Button;
432
- }(React__namespace.Component);
405
+ }
406
+ }
433
407
  Button.defaultProps = {
434
408
  color: "default",
435
409
  kind: "primary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-button",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -16,13 +16,13 @@
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.18.6",
19
- "@khanacademy/wonder-blocks-clickable": "^3.0.5",
19
+ "@khanacademy/wonder-blocks-clickable": "^3.0.6",
20
20
  "@khanacademy/wonder-blocks-color": "^2.0.1",
21
- "@khanacademy/wonder-blocks-core": "^5.0.3",
22
- "@khanacademy/wonder-blocks-icon": "^2.0.5",
23
- "@khanacademy/wonder-blocks-progress-spinner": "^2.0.5",
21
+ "@khanacademy/wonder-blocks-core": "^5.0.4",
22
+ "@khanacademy/wonder-blocks-icon": "^2.0.6",
23
+ "@khanacademy/wonder-blocks-progress-spinner": "^2.0.6",
24
24
  "@khanacademy/wonder-blocks-spacing": "^4.0.1",
25
- "@khanacademy/wonder-blocks-typography": "^2.0.5"
25
+ "@khanacademy/wonder-blocks-typography": "^2.0.6"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "aphrodite": "^1.2.5",
@@ -31,6 +31,6 @@
31
31
  "react-router-dom": "5.3.0"
32
32
  },
33
33
  "devDependencies": {
34
- "wb-dev-build-settings": "^0.9.4"
34
+ "wb-dev-build-settings": "^0.9.5"
35
35
  }
36
36
  }