@khanacademy/wonder-blocks-button 4.0.5 → 4.0.7
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 +21 -0
- package/dist/es/index.js +12 -38
- package/dist/index.js +12 -38
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-button
|
|
2
2
|
|
|
3
|
+
## 4.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @khanacademy/wonder-blocks-clickable@3.0.7
|
|
8
|
+
- @khanacademy/wonder-blocks-icon@2.0.7
|
|
9
|
+
- @khanacademy/wonder-blocks-progress-spinner@2.0.7
|
|
10
|
+
- @khanacademy/wonder-blocks-typography@2.0.7
|
|
11
|
+
|
|
12
|
+
## 4.0.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- c20f48f3: Don't transpile classes when building bundles
|
|
17
|
+
- Updated dependencies [c20f48f3]
|
|
18
|
+
- @khanacademy/wonder-blocks-clickable@3.0.6
|
|
19
|
+
- @khanacademy/wonder-blocks-core@5.0.4
|
|
20
|
+
- @khanacademy/wonder-blocks-icon@2.0.6
|
|
21
|
+
- @khanacademy/wonder-blocks-progress-spinner@2.0.6
|
|
22
|
+
- @khanacademy/wonder-blocks-typography@2.0.6
|
|
23
|
+
|
|
3
24
|
## 4.0.5
|
|
4
25
|
|
|
5
26
|
### 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
|
-
|
|
60
|
-
|
|
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
|
-
|
|
113
|
+
}
|
|
114
|
+
render() {
|
|
134
115
|
return React.createElement(__RouterContext.Consumer, null, router => this.renderInner(router));
|
|
135
|
-
}
|
|
136
|
-
|
|
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
|
-
|
|
343
|
-
|
|
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
|
-
|
|
375
|
+
}
|
|
376
|
+
render() {
|
|
402
377
|
return React.createElement(__RouterContext.Consumer, null, router => this.renderClickableBehavior(router));
|
|
403
|
-
}
|
|
404
|
-
|
|
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
|
-
|
|
87
|
-
|
|
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
|
-
|
|
140
|
+
}
|
|
141
|
+
render() {
|
|
161
142
|
return React__namespace.createElement(reactRouter.__RouterContext.Consumer, null, router => this.renderInner(router));
|
|
162
|
-
}
|
|
163
|
-
|
|
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
|
-
|
|
370
|
-
|
|
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
|
-
|
|
402
|
+
}
|
|
403
|
+
render() {
|
|
429
404
|
return React__namespace.createElement(reactRouter.__RouterContext.Consumer, null, router => this.renderClickableBehavior(router));
|
|
430
|
-
}
|
|
431
|
-
|
|
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.
|
|
3
|
+
"version": "4.0.7",
|
|
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.
|
|
19
|
+
"@khanacademy/wonder-blocks-clickable": "^3.0.7",
|
|
20
20
|
"@khanacademy/wonder-blocks-color": "^2.0.1",
|
|
21
|
-
"@khanacademy/wonder-blocks-core": "^5.0.
|
|
22
|
-
"@khanacademy/wonder-blocks-icon": "^2.0.
|
|
23
|
-
"@khanacademy/wonder-blocks-progress-spinner": "^2.0.
|
|
21
|
+
"@khanacademy/wonder-blocks-core": "^5.0.4",
|
|
22
|
+
"@khanacademy/wonder-blocks-icon": "^2.0.7",
|
|
23
|
+
"@khanacademy/wonder-blocks-progress-spinner": "^2.0.7",
|
|
24
24
|
"@khanacademy/wonder-blocks-spacing": "^4.0.1",
|
|
25
|
-
"@khanacademy/wonder-blocks-typography": "^2.0.
|
|
25
|
+
"@khanacademy/wonder-blocks-typography": "^2.0.7"
|
|
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.
|
|
34
|
+
"wb-dev-build-settings": "^0.9.6"
|
|
35
35
|
}
|
|
36
36
|
}
|