@qiwi/pijma-mobile 1.145.1 → 1.145.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 +7 -0
- package/lib/es5/link/FileLink.js +2 -2
- package/lib/es6/link/FileLink.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## @qiwi/pijma-mobile [1.145.2](https://github.com/qiwi/pijma/compare/@qiwi/pijma-mobile@1.145.1...@qiwi/pijma-mobile@1.145.2) (2022-05-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **mobile:** FileLink ([#485](https://github.com/qiwi/pijma/issues/485)) ([1e2249d](https://github.com/qiwi/pijma/commit/1e2249dfabb6e0eca0a4a48516e158065c8578ce))
|
|
7
|
+
|
|
1
8
|
## @qiwi/pijma-mobile [1.145.1](https://github.com/qiwi/pijma/compare/@qiwi/pijma-mobile@1.145.0...@qiwi/pijma-mobile@1.145.1) (2022-04-21)
|
|
2
9
|
|
|
3
10
|
|
package/lib/es5/link/FileLink.js
CHANGED
|
@@ -5,9 +5,9 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
var pijma_core_1 = require("@qiwi/pijma-core");
|
|
7
7
|
var typography_1 = require("../typography");
|
|
8
|
-
var FileLink = function (props) { return (react_1.default.createElement(pijma_core_1.LinkControl, { onClick: props.onClick, onFocus: props.onFocus, onBlur: props.onBlur, href: props.href, target: props.target, download: props.download, rel: props.rel, children: function (renderProps) { return (react_1.default.createElement(pijma_core_1.FlexLnk, { tabIndex: props.tabIndex, href: props.href, target: props.target, download: props.download, rel: props.rel, title: props.title, display: "inline-flex", cursor: "pointer",
|
|
8
|
+
var FileLink = function (props) { return (react_1.default.createElement(pijma_core_1.LinkControl, { onClick: props.onClick, onFocus: props.onFocus, onBlur: props.onBlur, href: props.href, target: props.target, download: props.download, rel: props.rel, children: function (renderProps) { return (react_1.default.createElement(pijma_core_1.FlexLnk, { tabIndex: props.tabIndex, href: props.href, target: props.target, download: props.download, rel: props.rel, title: props.title, display: "inline-flex", cursor: "pointer", onFocus: renderProps.onFocus, onBlur: renderProps.onBlur, onClick: renderProps.onClick, onMouseEnter: renderProps.onMouseEnter, onMouseLeave: renderProps.onMouseLeave, onMouseUp: renderProps.onMouseUp, onMouseDown: renderProps.onMouseDown },
|
|
9
9
|
react_1.default.createElement(pijma_core_1.FlexItem, { display: "inline-block", width: 6, height: 6, mr: 2, shrink: 0 },
|
|
10
10
|
react_1.default.createElement(pijma_core_1.Icon, { name: "file", color: renderProps.hover || renderProps.focus || renderProps.active ? '#FF8C00' : '#000' })),
|
|
11
|
-
react_1.default.createElement(pijma_core_1.FlexItem,
|
|
11
|
+
react_1.default.createElement(pijma_core_1.FlexItem, { align: "center" },
|
|
12
12
|
react_1.default.createElement(typography_1.Text, { color: renderProps.hover || renderProps.focus || renderProps.active ? 'warning' : 'default', size: "s", bold: false, children: props.children })))); } })); };
|
|
13
13
|
exports.FileLink = FileLink;
|
package/lib/es6/link/FileLink.js
CHANGED
|
@@ -18,7 +18,6 @@ export const FileLink = (props) => /* @__PURE__ */ React.createElement(LinkContr
|
|
|
18
18
|
title: props.title,
|
|
19
19
|
display: "inline-flex",
|
|
20
20
|
cursor: "pointer",
|
|
21
|
-
align: "center",
|
|
22
21
|
onFocus: renderProps.onFocus,
|
|
23
22
|
onBlur: renderProps.onBlur,
|
|
24
23
|
onClick: renderProps.onClick,
|
|
@@ -35,7 +34,9 @@ export const FileLink = (props) => /* @__PURE__ */ React.createElement(LinkContr
|
|
|
35
34
|
}, /* @__PURE__ */ React.createElement(Icon, {
|
|
36
35
|
name: "file",
|
|
37
36
|
color: renderProps.hover || renderProps.focus || renderProps.active ? "#FF8C00" : "#000"
|
|
38
|
-
})), /* @__PURE__ */ React.createElement(FlexItem,
|
|
37
|
+
})), /* @__PURE__ */ React.createElement(FlexItem, {
|
|
38
|
+
align: "center"
|
|
39
|
+
}, /* @__PURE__ */ React.createElement(Text, {
|
|
39
40
|
color: renderProps.hover || renderProps.focus || renderProps.active ? "warning" : "default",
|
|
40
41
|
size: "s",
|
|
41
42
|
bold: false,
|