@qiwi/pijma-mobile 1.139.3 → 1.140.0
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/es6/oops/Oops.d.ts +4 -4
- package/lib/es6/oops/Oops.js +14 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.140.0](https://github.com/qiwi/pijma/compare/@qiwi/pijma-mobile@1.139.3...@qiwi/pijma-mobile@1.140.0) (2021-12-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* oops improvements ([#465](https://github.com/qiwi/pijma/issues/465)) ([fa0bd17](https://github.com/qiwi/pijma/commit/fa0bd17ab124d90ae31a2a1812465bde98188a7c))
|
|
7
|
+
|
|
1
8
|
## [1.139.3](https://github.com/qiwi/pijma/compare/@qiwi/pijma-mobile@1.139.2...@qiwi/pijma-mobile@1.139.3) (2021-12-21)
|
|
2
9
|
|
|
3
10
|
## [1.139.2](https://github.com/qiwi/pijma/compare/@qiwi/pijma-mobile@1.139.1...@qiwi/pijma-mobile@1.139.2) (2021-12-15)
|
package/lib/es6/oops/Oops.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface
|
|
3
|
-
logo
|
|
4
|
-
error:
|
|
2
|
+
export interface OopsProps {
|
|
3
|
+
logo?: ReactNode;
|
|
4
|
+
error: ReactNode;
|
|
5
5
|
title: string;
|
|
6
6
|
content: ReactNode;
|
|
7
7
|
footer?: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const Oops: FC<
|
|
9
|
+
export declare const Oops: FC<OopsProps>;
|
package/lib/es6/oops/Oops.js
CHANGED
|
@@ -2,22 +2,19 @@ import React from "react";
|
|
|
2
2
|
import { Flex, FlexItem, Typo, Card } from "@qiwi/pijma-core";
|
|
3
3
|
import { Paragraph, Heading } from "../typography/index.js";
|
|
4
4
|
export const Oops = ({ logo, error, title, content, footer }) => /* @__PURE__ */ React.createElement(Card, {
|
|
5
|
-
pt: 4,
|
|
6
|
-
pb: 6,
|
|
7
5
|
px: 6,
|
|
8
6
|
minHeight: "100%",
|
|
9
7
|
bg: "#fff"
|
|
10
8
|
}, /* @__PURE__ */ React.createElement(Flex, {
|
|
11
9
|
align: "center",
|
|
12
10
|
direction: "column"
|
|
13
|
-
}, /* @__PURE__ */ React.createElement(FlexItem, {
|
|
11
|
+
}, logo ? /* @__PURE__ */ React.createElement(FlexItem, {
|
|
12
|
+
my: 6,
|
|
14
13
|
shrink: 0,
|
|
15
|
-
width: 37,
|
|
16
|
-
height: 7,
|
|
17
14
|
children: logo
|
|
18
|
-
}), /* @__PURE__ */ React.createElement(FlexItem, {
|
|
19
|
-
|
|
20
|
-
}, /* @__PURE__ */ React.createElement(Typo, {
|
|
15
|
+
}) : null, /* @__PURE__ */ React.createElement(FlexItem, {
|
|
16
|
+
my: 6
|
|
17
|
+
}, typeof error === "string" ? /* @__PURE__ */ React.createElement(Typo, {
|
|
21
18
|
align: "center",
|
|
22
19
|
as: "p",
|
|
23
20
|
css: {
|
|
@@ -28,19 +25,22 @@ export const Oops = ({ logo, error, title, content, footer }) => /* @__PURE__ */
|
|
|
28
25
|
textShadow: "0 12px 36px rgba(0, 0, 0, 0.1)"
|
|
29
26
|
},
|
|
30
27
|
children: error
|
|
31
|
-
})), /* @__PURE__ */ React.createElement(FlexItem, {
|
|
32
|
-
|
|
28
|
+
}) : error), /* @__PURE__ */ React.createElement(FlexItem, {
|
|
29
|
+
my: 2
|
|
33
30
|
}, /* @__PURE__ */ React.createElement(Heading, {
|
|
34
31
|
align: "center",
|
|
35
32
|
size: "1",
|
|
36
33
|
children: title
|
|
37
34
|
})), /* @__PURE__ */ React.createElement(FlexItem, {
|
|
38
|
-
|
|
35
|
+
my: 4
|
|
39
36
|
}, typeof content === "string" ? /* @__PURE__ */ React.createElement(Paragraph, {
|
|
40
37
|
align: "center",
|
|
41
|
-
bold: true,
|
|
42
|
-
size: "m",
|
|
43
38
|
children: content
|
|
44
39
|
}) : content), footer ? /* @__PURE__ */ React.createElement(FlexItem, {
|
|
45
|
-
|
|
40
|
+
my: 6,
|
|
41
|
+
children: typeof footer === "string" ? /* @__PURE__ */ React.createElement(Paragraph, {
|
|
42
|
+
align: "center",
|
|
43
|
+
color: "support",
|
|
44
|
+
children: footer
|
|
45
|
+
}) : footer
|
|
46
46
|
}) : null));
|