@storybook/components 6.4.0-beta.26 → 6.4.0-beta.27
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.
|
@@ -183,7 +183,7 @@ var Link = function Link(_ref8) {
|
|
|
183
183
|
rest = _objectWithoutProperties(_ref8, ["cancel", "children", "onClick", "withArrow", "containsIcon", "className"]);
|
|
184
184
|
|
|
185
185
|
return /*#__PURE__*/_react.default.createElement(A, _extends({}, rest, {
|
|
186
|
-
onClick: cancel ? function (e) {
|
|
186
|
+
onClick: onClick && cancel ? function (e) {
|
|
187
187
|
return cancelled(e, onClick);
|
|
188
188
|
} : onClick,
|
|
189
189
|
className: className
|
|
@@ -201,7 +201,7 @@ Link.defaultProps = {
|
|
|
201
201
|
cancel: true,
|
|
202
202
|
className: undefined,
|
|
203
203
|
style: undefined,
|
|
204
|
-
onClick:
|
|
204
|
+
onClick: undefined,
|
|
205
205
|
withArrow: false,
|
|
206
206
|
containsIcon: false
|
|
207
207
|
};
|
|
@@ -166,7 +166,7 @@ export var Link = function Link(_ref8) {
|
|
|
166
166
|
rest = _objectWithoutProperties(_ref8, ["cancel", "children", "onClick", "withArrow", "containsIcon", "className"]);
|
|
167
167
|
|
|
168
168
|
return /*#__PURE__*/React.createElement(A, _extends({}, rest, {
|
|
169
|
-
onClick: cancel ? function (e) {
|
|
169
|
+
onClick: onClick && cancel ? function (e) {
|
|
170
170
|
return cancelled(e, onClick);
|
|
171
171
|
} : onClick,
|
|
172
172
|
className: className
|
|
@@ -182,7 +182,7 @@ Link.defaultProps = {
|
|
|
182
182
|
cancel: true,
|
|
183
183
|
className: undefined,
|
|
184
184
|
style: undefined,
|
|
185
|
-
onClick:
|
|
185
|
+
onClick: undefined,
|
|
186
186
|
withArrow: false,
|
|
187
187
|
containsIcon: false
|
|
188
188
|
};
|
|
@@ -155,7 +155,7 @@ export const Link = (_ref) => {
|
|
|
155
155
|
rest = _objectWithoutPropertiesLoose(_ref, ["cancel", "children", "onClick", "withArrow", "containsIcon", "className"]);
|
|
156
156
|
|
|
157
157
|
return /*#__PURE__*/React.createElement(A, _extends({}, rest, {
|
|
158
|
-
onClick: cancel ? e => cancelled(e, onClick) : onClick,
|
|
158
|
+
onClick: onClick && cancel ? e => cancelled(e, onClick) : onClick,
|
|
159
159
|
className: className
|
|
160
160
|
}), /*#__PURE__*/React.createElement(LinkInner, {
|
|
161
161
|
withArrow: withArrow,
|
|
@@ -169,7 +169,7 @@ Link.defaultProps = {
|
|
|
169
169
|
cancel: true,
|
|
170
170
|
className: undefined,
|
|
171
171
|
style: undefined,
|
|
172
|
-
onClick:
|
|
172
|
+
onClick: undefined,
|
|
173
173
|
withArrow: false,
|
|
174
174
|
containsIcon: false
|
|
175
175
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/components",
|
|
3
|
-
"version": "6.4.0-beta.
|
|
3
|
+
"version": "6.4.0-beta.27",
|
|
4
4
|
"description": "Core Storybook Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@popperjs/core": "^2.6.0",
|
|
44
|
-
"@storybook/client-logger": "6.4.0-beta.
|
|
44
|
+
"@storybook/client-logger": "6.4.0-beta.27",
|
|
45
45
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
46
|
-
"@storybook/theming": "6.4.0-beta.
|
|
46
|
+
"@storybook/theming": "6.4.0-beta.27",
|
|
47
47
|
"@types/color-convert": "^2.0.0",
|
|
48
48
|
"@types/overlayscrollbars": "^1.12.0",
|
|
49
49
|
"@types/react-syntax-highlighter": "11.0.5",
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "b73d9e79cf41328a21eb5f8c1490f450abaf4142",
|
|
80
80
|
"sbmodern": "dist/modern/index.js"
|
|
81
81
|
}
|