@stokr/components-library 4.0.1 → 4.1.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/README.md +1 -1
- 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/IdentityInfo/IdentityInfo.styles.js +1 -1
- 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 +5 -3
- package/dist/components/MaterialIcon/MaterialIcon.js +9 -5
- package/dist/components/MaterialIcon/MaterialIcon.styles.d.ts +5 -5
- package/dist/components/MaterialIcon/MaterialIcon.styles.js +2 -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 +1 -1
- 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 +2 -3
- package/dist/components/Process/Process.styles.js +13 -18
- package/dist/components/ProfileBox/ProfileBox.styles.js +8 -8
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +2 -3
- package/dist/components/StatusTag/StatusTag.js +2 -2
- 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/Timeline.styles.js +1 -1
- package/dist/components/Timeline/TimelineStep.js +2 -2
- package/dist/index.d.ts +1 -4
- package/dist/index.js +32 -38
- package/dist/styles/global.js +0 -5
- package/dist/styles/rwd.d.ts +7 -2
- package/dist/styles/rwd.js +7 -2
- package/package.json +3 -4
- package/dist/components/Icon/Icon.style.js +0 -92
- package/dist/static/fonts/Ionicons/Ionicons.ttf +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.ttf.js +0 -4
- package/dist/static/fonts/Ionicons/Ionicons.woff +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff.js +0 -4
- package/dist/static/fonts/Ionicons/Ionicons.woff2 +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff2.js +0 -4
- package/dist/static/fonts/Ionicons/ionicons.min.css +0 -2810
- package/dist/static/fonts/Ionicons/ionicons.min.css.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.eot +0 -0
- package/dist/static/fonts/icomoon/icomoon.eot.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.svg +0 -53
- package/dist/static/fonts/icomoon/icomoon.svg.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
- package/dist/static/fonts/icomoon/icomoon.ttf.js +0 -4
- package/dist/static/fonts/icomoon/icomoon.woff +0 -0
- package/dist/static/fonts/icomoon/icomoon.woff.js +0 -4
- package/dist/static/fonts/icomoon/selection.json +0 -910
- package/dist/static/fonts/icomoon/style.css +0 -139
- package/dist/static/images/copy_icon.svg +0 -4
- package/dist/static/images/copy_icon.svg.js +0 -5
- package/dist/styles/fonts.js +0 -35
- package/dist/styles/ioniconsStyles.js +0 -34
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ export default function App() {
|
|
|
80
80
|
|
|
81
81
|
**3. Earlier config** (e.g. analytics before mount): `import { configure } from '@stokr/components-library'` with the same shape as `config`.
|
|
82
82
|
|
|
83
|
-
**4. Icons / fonts** —
|
|
83
|
+
**4. Icons / fonts** — Icons are `MaterialIcon`: register the ones you use (and `requiredMaterialIcons`) with `registerMaterialIcons`. Open Sans comes from the host app; for Layout: `import '@stokr/components-library/styles.css'`.
|
|
84
84
|
|
|
85
85
|
**5. Imports** — `import { ConfirmModal, Button, … } from '@stokr/components-library'`.
|
|
86
86
|
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import DOMPurify from "dompurify";
|
|
3
3
|
import parse from "html-react-parser";
|
|
4
|
-
import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
|
|
5
4
|
import { Tooltip } from "../Tooltip/Tooltip.js";
|
|
6
5
|
import { Container, Icon } from "./InfoIcon.styles.js";
|
|
7
6
|
const DEAD_TIPPY_PROPS = [
|
|
@@ -59,32 +58,29 @@ const InfoIcon = ({
|
|
|
59
58
|
}
|
|
60
59
|
containerProps[key] = rest[key];
|
|
61
60
|
});
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
)
|
|
87
|
-
] });
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
62
|
+
Container,
|
|
63
|
+
{
|
|
64
|
+
noMargin,
|
|
65
|
+
noMarginLeft,
|
|
66
|
+
noMarginRight,
|
|
67
|
+
fullWidth,
|
|
68
|
+
style: { ...style, ...containerStyle },
|
|
69
|
+
...containerProps,
|
|
70
|
+
children: /* @__PURE__ */ jsx(
|
|
71
|
+
Tooltip,
|
|
72
|
+
{
|
|
73
|
+
content,
|
|
74
|
+
placement: position,
|
|
75
|
+
disabled,
|
|
76
|
+
showArrow: showArrow ?? arrow,
|
|
77
|
+
arrowColor,
|
|
78
|
+
...tooltipProps,
|
|
79
|
+
children: noIcon ? children : /* @__PURE__ */ jsx(Icon, { outline })
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
);
|
|
88
84
|
};
|
|
89
85
|
export {
|
|
90
86
|
InfoIcon,
|
|
@@ -8,5 +8,5 @@ export declare const Container: import('styled-components/dist/types').IStyledCo
|
|
|
8
8
|
type IconProps = {
|
|
9
9
|
outline?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare const Icon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components/dist/types').Substitute<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<
|
|
11
|
+
export declare const Icon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components/dist/types').Substitute<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>, IconProps>, IconProps>> & string;
|
|
12
12
|
export {};
|