@stokr/components-library 4.0.0 → 4.0.3
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/dist/components/AdminDashboard/Table/Table.styles.js +6 -2
- package/dist/components/BackButton/BackButton.js +10 -14
- package/dist/components/BackButton/BackButton.styles.js +7 -4
- package/dist/components/ChartLegend/ChartLegend.styles.js +4 -2
- package/dist/components/Checkbox/Checkbox.js +5 -1
- package/dist/components/Checkbox/Checkbox.styles.js +12 -27
- package/dist/components/Checklist/ChecklistCard.js +6 -6
- package/dist/components/Checklist/ChecklistCard.styles.js +0 -39
- package/dist/components/Chips/Chip.js +14 -1
- package/dist/components/Chips/Chip.styles.js +4 -3
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +15 -94
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +7 -10
- package/dist/components/FAQ/FAQ.styles.js +6 -2
- package/dist/components/Icon/Icon.style.js +5 -26
- package/dist/components/InfoBox/InfoBox.js +4 -2
- package/dist/components/InfoIcon/InfoIcon.js +24 -28
- package/dist/components/InfoIcon/InfoIcon.styles.d.ts +1 -1
- package/dist/components/InfoIcon/InfoIcon.styles.js +4 -3
- package/dist/components/Input/InputPassword.js +2 -1
- package/dist/components/Input/Select.js +0 -2
- package/dist/components/Input/Select.styles.js +5 -2
- package/dist/components/MaterialIcon/MaterialIcon.d.ts +8 -10
- package/dist/components/MaterialIcon/MaterialIcon.js +14 -12
- package/dist/components/MaterialIcon/MaterialIcon.styles.d.ts +8 -3
- package/dist/components/MaterialIcon/MaterialIcon.styles.js +8 -2
- package/dist/components/MaterialIcon/glyph.d.ts +5 -0
- package/dist/components/MaterialIcon/glyph.js +8 -0
- package/dist/components/MaterialIcon/iconConfig.d.ts +24 -3
- package/dist/components/MaterialIcon/iconConfig.js +7 -7
- package/dist/components/MaterialIcon/requiredIcons.d.ts +5 -0
- package/dist/components/MaterialIcon/requiredIcons.js +21 -0
- package/dist/components/Modal/Modal.js +27 -31
- package/dist/components/Modal/Modal.styles.d.ts +3 -3
- package/dist/components/Modal/Modal.styles.js +31 -51
- package/dist/components/Modal/PaymentModal.js +10 -3
- package/dist/components/Modal/SideModal.js +45 -49
- package/dist/components/Pagination/Pagination.js +3 -3
- package/dist/components/Payment/TimerComponent.js +4 -3
- package/dist/components/Process/Process.styles.js +13 -18
- package/dist/components/ProfileBox/ProfileBox.styles.js +8 -8
- package/dist/components/Section/Section.d.ts +3 -3
- package/dist/components/Section/Section.js +8 -5
- package/dist/components/StatusTag/StatusTag.js +2 -2
- package/dist/components/StokrLoader/StokrLoader.d.ts +2 -1
- package/dist/components/StokrLoader/StokrLoader.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +0 -2
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +4 -2
- package/dist/components/TextLink/TextLink.styles.js +11 -20
- package/dist/components/Timeline/TimelineStep.js +2 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -5
- package/dist/styles/rwd.d.ts +7 -2
- package/dist/styles/rwd.js +7 -2
- package/dist/utils/copyToClipboard.d.ts +13 -3
- package/dist/utils/copyToClipboard.js +3 -3
- package/package.json +2 -1
- package/dist/static/images/copy_icon.svg +0 -4
- package/dist/static/images/copy_icon.svg.js +0 -5
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
|
+
import { glyph } from "../../MaterialIcon/glyph.js";
|
|
2
3
|
styled.div`
|
|
3
4
|
position: relative;
|
|
4
5
|
`;
|
|
@@ -111,11 +112,14 @@ styled.div`
|
|
|
111
112
|
border-radius: 3px;
|
|
112
113
|
text-align: center;
|
|
113
114
|
`;
|
|
114
|
-
const TableDropdownIcon = styled.
|
|
115
|
+
const TableDropdownIcon = styled.span.withConfig({
|
|
115
116
|
shouldForwardProp: (props) => !["isActive"].includes(props)
|
|
116
117
|
}).attrs({
|
|
117
|
-
|
|
118
|
+
children: glyph("keyboard_arrow_down")
|
|
118
119
|
})`
|
|
120
|
+
display: inline-flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: center;
|
|
119
123
|
width: 14px;
|
|
120
124
|
height: 20px;
|
|
121
125
|
font-size: 20px;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import { jsxs,
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { useNavigate } from "react-router-dom";
|
|
5
|
-
import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
|
|
6
5
|
import { StyledBackButtonExternal, BackButtonIcon, StyledBackButton, StyledWindowBackButton } from "./BackButton.styles.js";
|
|
7
6
|
const BackButton = ({ children, to, href }) => {
|
|
8
7
|
const navigate = useNavigate();
|
|
9
|
-
return /* @__PURE__ */ jsxs(
|
|
10
|
-
/* @__PURE__ */ jsx(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/* @__PURE__ */ jsx(BackButtonIcon, {}),
|
|
19
|
-
children
|
|
20
|
-
] })
|
|
8
|
+
return href ? /* @__PURE__ */ jsxs(StyledBackButtonExternal, { href, children: [
|
|
9
|
+
/* @__PURE__ */ jsx(BackButtonIcon, {}),
|
|
10
|
+
children
|
|
11
|
+
] }) : to ? /* @__PURE__ */ jsxs(StyledBackButton, { to, children: [
|
|
12
|
+
/* @__PURE__ */ jsx(BackButtonIcon, {}),
|
|
13
|
+
children
|
|
14
|
+
] }) : /* @__PURE__ */ jsxs(StyledWindowBackButton, { onClick: () => navigate(-1), children: [
|
|
15
|
+
/* @__PURE__ */ jsx(BackButtonIcon, {}),
|
|
16
|
+
children
|
|
21
17
|
] });
|
|
22
18
|
};
|
|
23
19
|
BackButton.propTypes = {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { Link } from "react-router-dom";
|
|
3
3
|
import theme from "../../styles/theme.js";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { glyph } from "../MaterialIcon/glyph.js";
|
|
5
|
+
const BackButtonIcon = styled.span.attrs({
|
|
6
|
+
children: glyph("chevron_left")
|
|
6
7
|
})`
|
|
8
|
+
display: inline-flex;
|
|
7
9
|
font-size: 16px;
|
|
8
10
|
position: absolute;
|
|
9
11
|
left: 0;
|
|
@@ -13,9 +15,10 @@ const BackButtonIcon = styled.i.attrs({
|
|
|
13
15
|
0.3s color,
|
|
14
16
|
0.3s transform;
|
|
15
17
|
`;
|
|
16
|
-
const ForwardButtonIcon = styled.
|
|
17
|
-
|
|
18
|
+
const ForwardButtonIcon = styled.span.attrs({
|
|
19
|
+
children: glyph("chevron_right")
|
|
18
20
|
})`
|
|
21
|
+
display: inline-flex;
|
|
19
22
|
font-size: 16px;
|
|
20
23
|
position: absolute;
|
|
21
24
|
right: 0;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import theme from "../../styles/theme.js";
|
|
3
|
+
import { glyph } from "../MaterialIcon/glyph.js";
|
|
3
4
|
const Items = styled.div`
|
|
4
5
|
display: block;
|
|
5
6
|
margin: -16px 0;
|
|
@@ -97,12 +98,13 @@ const MarketDataCol = styled.div.withConfig({
|
|
|
97
98
|
`}
|
|
98
99
|
}
|
|
99
100
|
`;
|
|
100
|
-
const Arrow = styled.
|
|
101
|
+
const Arrow = styled.span.withConfig({
|
|
101
102
|
shouldForwardProp: (props) => props !== "isOpened"
|
|
102
103
|
}).attrs({
|
|
103
|
-
|
|
104
|
+
children: glyph("keyboard_arrow_down")
|
|
104
105
|
})`
|
|
105
106
|
& {
|
|
107
|
+
display: inline-flex;
|
|
106
108
|
position: absolute;
|
|
107
109
|
top: 14px;
|
|
108
110
|
right: 24px;
|
|
@@ -2,6 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
|
+
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
5
6
|
import { Wrapper, Label, Input } from "./Checkbox.styles.js";
|
|
6
7
|
const CheckBoxCaption = styled.div`
|
|
7
8
|
padding-top: 12px;
|
|
@@ -50,7 +51,10 @@ const Checkbox = ({
|
|
|
50
51
|
...props
|
|
51
52
|
}
|
|
52
53
|
),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ jsxs("label", { htmlFor: id, style: textStyle, children: [
|
|
55
|
+
/* @__PURE__ */ jsx(MaterialIcon, { name: "check", size: 18 }),
|
|
56
|
+
text
|
|
57
|
+
] })
|
|
54
58
|
] })
|
|
55
59
|
] });
|
|
56
60
|
const CheckboxPropTypes = {
|
|
@@ -53,8 +53,7 @@ const Input = styled.div.withConfig({
|
|
|
53
53
|
font-size: 12px;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
&:before
|
|
57
|
-
&:after {
|
|
56
|
+
&:before {
|
|
58
57
|
display: block;
|
|
59
58
|
position: absolute;
|
|
60
59
|
}
|
|
@@ -81,33 +80,19 @@ const Input = styled.div.withConfig({
|
|
|
81
80
|
`}
|
|
82
81
|
}
|
|
83
82
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
font-variant: normal;
|
|
91
|
-
text-transform: none;
|
|
92
|
-
text-rendering: auto;
|
|
93
|
-
-webkit-font-smoothing: antialiased;
|
|
94
|
-
-moz-osx-font-smoothing: grayscale;
|
|
95
|
-
top: 3px;
|
|
96
|
-
left: 3px;
|
|
97
|
-
width: 10px;
|
|
98
|
-
height: 10px;
|
|
99
|
-
font-size: 22px;
|
|
100
|
-
line-height: 10px;
|
|
101
|
-
text-align: center;
|
|
83
|
+
> [data-icon] {
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: -1px;
|
|
86
|
+
left: -1px;
|
|
87
|
+
width: 18px;
|
|
88
|
+
height: 18px;
|
|
102
89
|
color: transparent;
|
|
103
90
|
|
|
104
91
|
${(props) => props.large && `
|
|
105
|
-
top:
|
|
106
|
-
left:
|
|
107
|
-
width:
|
|
108
|
-
height:
|
|
109
|
-
font-size: 34px;
|
|
110
|
-
line-height: 20px;
|
|
92
|
+
top: -1px;
|
|
93
|
+
left: -1px;
|
|
94
|
+
width: 22px;
|
|
95
|
+
height: 22px;
|
|
111
96
|
`};
|
|
112
97
|
}
|
|
113
98
|
}
|
|
@@ -120,7 +105,7 @@ const Input = styled.div.withConfig({
|
|
|
120
105
|
}
|
|
121
106
|
|
|
122
107
|
&:checked + label {
|
|
123
|
-
|
|
108
|
+
> [data-icon] {
|
|
124
109
|
color: ${() => theme.cPrimary};
|
|
125
110
|
}
|
|
126
111
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import {
|
|
5
|
-
import { CardContainer, IconBlock, IconCopy, CardTitle, CardDescription
|
|
4
|
+
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
5
|
+
import { CardContainer, IconBlock, IconCopy, CardTitle, CardDescription } from "./ChecklistCard.styles.js";
|
|
6
6
|
import { colors } from "../../styles/colors.js";
|
|
7
7
|
import SvgWarningFilled from "../../static/images/warning-filled.svg.js";
|
|
8
8
|
import { Link } from "react-router-dom";
|
|
9
9
|
const ICON_MAP = {
|
|
10
10
|
done: {
|
|
11
|
-
|
|
11
|
+
material: "check",
|
|
12
12
|
color: colors.freshGreen
|
|
13
13
|
},
|
|
14
14
|
missing: {
|
|
@@ -16,7 +16,7 @@ const ICON_MAP = {
|
|
|
16
16
|
color: colors.warningYellow
|
|
17
17
|
},
|
|
18
18
|
in_progress: {
|
|
19
|
-
|
|
19
|
+
material: "search_activity",
|
|
20
20
|
color: colors.lightGrey
|
|
21
21
|
}
|
|
22
22
|
};
|
|
@@ -31,8 +31,8 @@ const ChecklistCard = ({
|
|
|
31
31
|
isClickable = true,
|
|
32
32
|
...rest
|
|
33
33
|
}) => {
|
|
34
|
-
const { icon, color } = ICON_MAP[iconState] || ICON_MAP["missing"];
|
|
35
|
-
const iconElement =
|
|
34
|
+
const { icon, material, color } = ICON_MAP[iconState] || ICON_MAP["missing"];
|
|
35
|
+
const iconElement = material ? /* @__PURE__ */ jsx(MaterialIcon, { name: material, size: 20, color }) : /* @__PURE__ */ jsx("span", { style: { display: "inline-flex", width: 20, height: 20, color }, children: icon });
|
|
36
36
|
const content = /* @__PURE__ */ jsxs(
|
|
37
37
|
CardContainer,
|
|
38
38
|
{
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import rwd from "../../styles/rwd.js";
|
|
3
|
-
import { colors } from "../../styles/colors.js";
|
|
4
|
-
import { Icon as Icon$1 } from "../Icon/Icon.style.js";
|
|
5
3
|
const CardContainer = styled.div.withConfig({
|
|
6
4
|
shouldForwardProp: (props) => !["isClickable"].includes(props)
|
|
7
5
|
})`
|
|
@@ -75,47 +73,10 @@ const CardDescription = styled.div`
|
|
|
75
73
|
letter-spacing: 0.8px;
|
|
76
74
|
`}
|
|
77
75
|
`;
|
|
78
|
-
const TaskState = {
|
|
79
|
-
REJECTED: "rejected",
|
|
80
|
-
IN_PROGRESS: "in_progress",
|
|
81
|
-
APPROVED: "approved",
|
|
82
|
-
SKIPPED: "skipped",
|
|
83
|
-
NOT_AVAILABLE: "not_available"
|
|
84
|
-
};
|
|
85
|
-
const Icon = styled(Icon$1).withConfig({
|
|
86
|
-
shouldForwardProp: (props) => !["state"].includes(props)
|
|
87
|
-
})`
|
|
88
|
-
font-size: 20px;
|
|
89
|
-
width: 18px;
|
|
90
|
-
text-align: center;
|
|
91
|
-
|
|
92
|
-
${(props) => props.state === TaskState.APPROVED && `
|
|
93
|
-
font-size: 13px;
|
|
94
|
-
color: ${colors.freshGreen};
|
|
95
|
-
`}
|
|
96
|
-
|
|
97
|
-
${(props) => props.state === TaskState.REJECTED && `
|
|
98
|
-
color: ${colors.orangishRed};
|
|
99
|
-
`}
|
|
100
|
-
|
|
101
|
-
${(props) => props.state === TaskState.IN_PROGRESS && `
|
|
102
|
-
opacity: 0.3;
|
|
103
|
-
`}
|
|
104
|
-
|
|
105
|
-
${(props) => props.state === TaskState.SKIPPED && `
|
|
106
|
-
font-size: 13px;
|
|
107
|
-
`}
|
|
108
|
-
|
|
109
|
-
${(props) => props.state === TaskState.NOT_AVAILABLE && `
|
|
110
|
-
font-size: 13px;
|
|
111
|
-
opacity: 0.3;
|
|
112
|
-
`}
|
|
113
|
-
`;
|
|
114
76
|
export {
|
|
115
77
|
CardContainer,
|
|
116
78
|
CardDescription,
|
|
117
79
|
CardTitle,
|
|
118
|
-
Icon,
|
|
119
80
|
IconBlock,
|
|
120
81
|
IconCopy
|
|
121
82
|
};
|
|
@@ -11,6 +11,7 @@ const Chip = ({
|
|
|
11
11
|
},
|
|
12
12
|
tooltip = null,
|
|
13
13
|
tooltipProps,
|
|
14
|
+
tooltipIconOutline = false,
|
|
14
15
|
activeColor = CHIP_ACTIVE_BG_HEX,
|
|
15
16
|
activeTextColor = colors.black,
|
|
16
17
|
...props
|
|
@@ -25,7 +26,17 @@ const Chip = ({
|
|
|
25
26
|
...props,
|
|
26
27
|
children: [
|
|
27
28
|
/* @__PURE__ */ jsx(ChipText, { children }),
|
|
28
|
-
tooltip && /* @__PURE__ */ jsx(
|
|
29
|
+
tooltip && /* @__PURE__ */ jsx(
|
|
30
|
+
InfoIcon,
|
|
31
|
+
{
|
|
32
|
+
title: tooltip,
|
|
33
|
+
position: "top",
|
|
34
|
+
noMarginLeft: true,
|
|
35
|
+
noMarginRight: true,
|
|
36
|
+
outline: tooltipIconOutline,
|
|
37
|
+
tooltipProps
|
|
38
|
+
}
|
|
39
|
+
)
|
|
29
40
|
]
|
|
30
41
|
}
|
|
31
42
|
);
|
|
@@ -35,6 +46,8 @@ Chip.propTypes = {
|
|
|
35
46
|
isActive: PropTypes.bool,
|
|
36
47
|
onClick: PropTypes.func,
|
|
37
48
|
tooltip: PropTypes.string,
|
|
49
|
+
/** Outline info icon instead of the filled one. */
|
|
50
|
+
tooltipIconOutline: PropTypes.bool,
|
|
38
51
|
/** Background/border color for hover and active states (neutral by default) */
|
|
39
52
|
activeColor: PropTypes.string,
|
|
40
53
|
/** Text color for hover and active states */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import theme from "../../styles/theme.js";
|
|
3
3
|
import { Icon } from "../InfoIcon/InfoIcon.styles.js";
|
|
4
|
+
import { glyph } from "../MaterialIcon/glyph.js";
|
|
4
5
|
const CHIP_ACTIVE_BG_HEX = "#f0f0f0";
|
|
5
6
|
const activeStyles = ({ activeColor, activeTextColor }) => `
|
|
6
7
|
border-color: ${activeColor};
|
|
@@ -49,11 +50,11 @@ const Wrapper = styled.div.withConfig({
|
|
|
49
50
|
const ChipText = styled.span`
|
|
50
51
|
text-transform: uppercase;
|
|
51
52
|
`;
|
|
52
|
-
styled.
|
|
53
|
-
|
|
53
|
+
styled.span.attrs({
|
|
54
|
+
children: glyph("info")
|
|
54
55
|
})`
|
|
55
56
|
position: relative;
|
|
56
|
-
display: inline-
|
|
57
|
+
display: inline-flex;
|
|
57
58
|
font-size: 16px;
|
|
58
59
|
line-height: 16px;
|
|
59
60
|
vertical-align: middle;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import rwd from "../../styles/rwd.js";
|
|
3
|
-
import {
|
|
3
|
+
import { glyph, withGlyph } from "../MaterialIcon/glyph.js";
|
|
4
4
|
import theme from "../../styles/theme.js";
|
|
5
|
-
import SvgCopyIcon from "../../static/images/copy_icon.svg.js";
|
|
6
5
|
const Container = styled.div`
|
|
7
6
|
position: relative;
|
|
8
7
|
`;
|
|
@@ -82,7 +81,9 @@ const AddressWrap = styled.div`
|
|
|
82
81
|
display: flex;
|
|
83
82
|
align-items: center;
|
|
84
83
|
`;
|
|
85
|
-
const Address = styled.span
|
|
84
|
+
const Address = styled.span.attrs((props) => ({
|
|
85
|
+
children: withGlyph(glyph("chevron_right", false, 14), props.children)
|
|
86
|
+
}))`
|
|
86
87
|
display: block;
|
|
87
88
|
font-weight: 600;
|
|
88
89
|
font-size: 11px;
|
|
@@ -92,23 +93,8 @@ const Address = styled.span`
|
|
|
92
93
|
transition: color 0.2s;
|
|
93
94
|
cursor: pointer;
|
|
94
95
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
font-family: 'Ionicons';
|
|
98
|
-
speak: none;
|
|
99
|
-
font-style: normal;
|
|
100
|
-
font-weight: normal;
|
|
101
|
-
font-variant: normal;
|
|
102
|
-
text-transform: none;
|
|
103
|
-
text-rendering: auto;
|
|
104
|
-
-webkit-font-smoothing: antialiased;
|
|
105
|
-
-moz-osx-font-smoothing: grayscale;
|
|
106
|
-
font-size: 12px;
|
|
107
|
-
line-height: 8px;
|
|
108
|
-
display: inline-block;
|
|
109
|
-
width: 8px;
|
|
110
|
-
height: 8px;
|
|
111
|
-
margin-right: 6px;
|
|
96
|
+
> [data-icon] {
|
|
97
|
+
margin-right: 4px;
|
|
112
98
|
}
|
|
113
99
|
|
|
114
100
|
&:hover {
|
|
@@ -123,11 +109,19 @@ styled.span`
|
|
|
123
109
|
color: ${() => theme.cPrimary};
|
|
124
110
|
}
|
|
125
111
|
`;
|
|
126
|
-
const CopyToClipboardButton = styled(
|
|
112
|
+
const CopyToClipboardButton = styled.span.attrs({
|
|
113
|
+
children: glyph("content_copy")
|
|
114
|
+
})`
|
|
115
|
+
display: inline-flex;
|
|
127
116
|
color: ${() => theme.black};
|
|
128
117
|
cursor: pointer;
|
|
129
118
|
height: 1em;
|
|
130
119
|
width: 1em;
|
|
120
|
+
|
|
121
|
+
> [data-icon] {
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 100%;
|
|
124
|
+
}
|
|
131
125
|
`;
|
|
132
126
|
const DataBox = styled.div`
|
|
133
127
|
float: left;
|
|
@@ -349,79 +343,6 @@ styled.button`
|
|
|
349
343
|
color: ${() => theme.cPrimary};
|
|
350
344
|
}
|
|
351
345
|
`;
|
|
352
|
-
styled(Icon).withConfig({
|
|
353
|
-
shouldForwardProp: (props) => !["large"].includes(props)
|
|
354
|
-
})`
|
|
355
|
-
position: absolute;
|
|
356
|
-
top: 50%;
|
|
357
|
-
left: 50%;
|
|
358
|
-
width: 16px;
|
|
359
|
-
height: 16px;
|
|
360
|
-
font-size: 16px;
|
|
361
|
-
line-height: 16px;
|
|
362
|
-
margin-top: -8px;
|
|
363
|
-
margin-left: -8px;
|
|
364
|
-
text-align: center;
|
|
365
|
-
|
|
366
|
-
${(props) => props.large && `
|
|
367
|
-
width: 20px;
|
|
368
|
-
height: 20px;
|
|
369
|
-
font-size: 20px;
|
|
370
|
-
line-height: 20px;
|
|
371
|
-
margin-top: -10px;
|
|
372
|
-
margin-left: -10px;
|
|
373
|
-
`}
|
|
374
|
-
`;
|
|
375
|
-
styled.button.withConfig({
|
|
376
|
-
shouldForwardProp: (props) => !["isActive"].includes(props)
|
|
377
|
-
})`
|
|
378
|
-
display: inline-block;
|
|
379
|
-
position: relative;
|
|
380
|
-
width: 40px;
|
|
381
|
-
height: 40px;
|
|
382
|
-
outline: none;
|
|
383
|
-
margin-left: 10px;
|
|
384
|
-
border-radius: 20px;
|
|
385
|
-
color: ${() => theme.cBlack};
|
|
386
|
-
transition: color 0.2s;
|
|
387
|
-
transform: translateZ(0);
|
|
388
|
-
|
|
389
|
-
&:focus,
|
|
390
|
-
&:hover {
|
|
391
|
-
color: ${() => theme.cPrimary};
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
&:before {
|
|
395
|
-
content: '${iconsMap.arrowDown}';
|
|
396
|
-
position: absolute;
|
|
397
|
-
top: 50%;
|
|
398
|
-
left: 50%;
|
|
399
|
-
width: 16px;
|
|
400
|
-
height: 16px;
|
|
401
|
-
font-size: 16px;
|
|
402
|
-
line-height: 16px;
|
|
403
|
-
margin-top: -8px;
|
|
404
|
-
margin-left: -8px;
|
|
405
|
-
font-family: 'icomoon' !important;
|
|
406
|
-
speak: none;
|
|
407
|
-
font-style: normal;
|
|
408
|
-
font-weight: normal;
|
|
409
|
-
font-variant: normal;
|
|
410
|
-
text-transform: none;
|
|
411
|
-
line-height: 1;
|
|
412
|
-
transition: transform 0.2s;
|
|
413
|
-
|
|
414
|
-
/* Better Font Rendering =========== */
|
|
415
|
-
-webkit-font-smoothing: antialiased;
|
|
416
|
-
-moz-osx-font-smoothing: grayscale;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
${(props) => props.isActive && `
|
|
420
|
-
&:before {
|
|
421
|
-
transform: rotate(180deg);
|
|
422
|
-
}
|
|
423
|
-
`}
|
|
424
|
-
`;
|
|
425
346
|
export {
|
|
426
347
|
Address,
|
|
427
348
|
AddressWrap,
|
|
@@ -2,6 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
import rwd from "../../styles/rwd.js";
|
|
3
3
|
import loader from "../../static/images/address-refreshing.gif.js";
|
|
4
4
|
import theme from "../../styles/theme.js";
|
|
5
|
+
import { glyph } from "../MaterialIcon/glyph.js";
|
|
5
6
|
const Container = styled.div`
|
|
6
7
|
position: relative;
|
|
7
8
|
display: block;
|
|
@@ -70,21 +71,17 @@ const Loader = styled.div`
|
|
|
70
71
|
background-size: cover;
|
|
71
72
|
background-image: url(${loader});
|
|
72
73
|
`;
|
|
73
|
-
const FailedIcon = styled.
|
|
74
|
-
|
|
74
|
+
const FailedIcon = styled.span.attrs({
|
|
75
|
+
children: glyph("cancel", true)
|
|
75
76
|
})`
|
|
76
|
-
display: inline-
|
|
77
|
+
display: inline-flex !important;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
77
80
|
vertical-align: middle;
|
|
78
81
|
width: 40px;
|
|
79
82
|
height: 40px;
|
|
80
83
|
margin-right: -40px;
|
|
81
|
-
|
|
82
|
-
&:before {
|
|
83
|
-
display: block;
|
|
84
|
-
font-size: 48px;
|
|
85
|
-
line-height: 40px;
|
|
86
|
-
text-align: center;
|
|
87
|
-
}
|
|
84
|
+
font-size: 48px;
|
|
88
85
|
`;
|
|
89
86
|
const Text = styled.div`
|
|
90
87
|
display: inline-block;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { Collapse } from "react-collapse";
|
|
3
3
|
import theme from "../../styles/theme.js";
|
|
4
|
+
import { glyph } from "../MaterialIcon/glyph.js";
|
|
4
5
|
const FaqItems = styled.div`
|
|
5
6
|
position: relative;
|
|
6
7
|
`;
|
|
7
|
-
const FaqDropdownIcon = styled.
|
|
8
|
-
|
|
8
|
+
const FaqDropdownIcon = styled.span.attrs({
|
|
9
|
+
children: glyph("keyboard_arrow_down")
|
|
9
10
|
})`
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
10
14
|
width: 14px;
|
|
11
15
|
height: 20px;
|
|
12
16
|
font-size: 20px;
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
|
+
import { glyph } from "../MaterialIcon/glyph.js";
|
|
2
3
|
const iconsMap = {
|
|
3
4
|
expand: "\\e923",
|
|
4
|
-
shrink: "\\e924",
|
|
5
5
|
emoji: "\\e922",
|
|
6
6
|
arrowDown: "\\e900",
|
|
7
7
|
arrowLeft: "\\e901",
|
|
8
8
|
arrowRight: "\\e902",
|
|
9
9
|
arrowUp: "\\e903",
|
|
10
|
-
heart: "\\e904",
|
|
11
|
-
heartFill: "\\e921",
|
|
12
10
|
lock: "\\e905",
|
|
13
|
-
menu: "\\e906",
|
|
14
|
-
pen: "\\e907",
|
|
15
|
-
star: "\\e908",
|
|
16
11
|
trash: "\\e909",
|
|
17
|
-
unread: "\\e90a",
|
|
18
12
|
user: "\\e90b",
|
|
19
|
-
edit: "\\e90c",
|
|
20
13
|
check: "\\e90d",
|
|
21
14
|
inProgress: "\\e90e",
|
|
22
15
|
warning: "\\e90f",
|
|
@@ -25,26 +18,13 @@ const iconsMap = {
|
|
|
25
18
|
teams: "\\e912",
|
|
26
19
|
tokenSales: "\\e913",
|
|
27
20
|
analytics: "\\e914",
|
|
28
|
-
updates: "\\e915",
|
|
29
21
|
overview: "\\e916",
|
|
30
|
-
|
|
31
|
-
hamburger: "\\e918",
|
|
32
|
-
share: "\\e919",
|
|
33
|
-
facebook: "\\e91a",
|
|
34
|
-
linkedin: "\\e91b",
|
|
35
|
-
medium: "\\e91c",
|
|
36
|
-
reddit: "\\e91d",
|
|
37
|
-
telegram: "\\e91e",
|
|
38
|
-
twitter: "\\e91f",
|
|
39
|
-
youtube: "\\e920",
|
|
40
|
-
cog: "\\e926",
|
|
41
|
-
pin: "\\e925",
|
|
42
|
-
cross: "\\274C",
|
|
43
|
-
euro: "\\e93c"
|
|
22
|
+
hamburger: "\\e918"
|
|
44
23
|
};
|
|
45
|
-
const TooltipIcon = styled.
|
|
46
|
-
|
|
24
|
+
const TooltipIcon = styled.span.attrs({
|
|
25
|
+
children: glyph("info", true)
|
|
47
26
|
})`
|
|
27
|
+
display: inline-flex;
|
|
48
28
|
position: relative;
|
|
49
29
|
left: -0.4px;
|
|
50
30
|
font-size: 18px;
|
|
@@ -87,6 +67,5 @@ const Icon = styled.i.withConfig({
|
|
|
87
67
|
export {
|
|
88
68
|
Icon,
|
|
89
69
|
TooltipIcon,
|
|
90
|
-
Icon as default,
|
|
91
70
|
iconsMap
|
|
92
71
|
};
|
|
@@ -2,6 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import { colors } from "../../styles/colors.js";
|
|
5
|
+
import { glyph } from "../MaterialIcon/glyph.js";
|
|
5
6
|
const VARIANTS = {
|
|
6
7
|
warning: {
|
|
7
8
|
background: "#FFFBEB",
|
|
@@ -49,9 +50,10 @@ const Container = styled.div`
|
|
|
49
50
|
}
|
|
50
51
|
`}
|
|
51
52
|
`;
|
|
52
|
-
const DefaultIcon = styled.
|
|
53
|
-
|
|
53
|
+
const DefaultIcon = styled.span.attrs({
|
|
54
|
+
children: glyph("info")
|
|
54
55
|
})`
|
|
56
|
+
display: inline-flex;
|
|
55
57
|
flex-shrink: 0;
|
|
56
58
|
font-size: 18px;
|
|
57
59
|
line-height: 18px;
|