@stokr/components-library 5.0.1 → 5.0.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/README.md +8 -8
- package/dist/components/AddressItem/AddressItem.styles.js +9 -9
- package/dist/components/AdminDashboard/Table/Table.styles.js +18 -25
- package/dist/components/AgreementItem/AgreementItem.styles.js +1 -1
- package/dist/components/BackButton/BackButton.styles.js +15 -15
- package/dist/components/BasicTable/BasicTable.styles.js +6 -8
- package/dist/components/BlogPost/BlogPost.styles.js +9 -13
- package/dist/components/Button/Button.styles.d.ts +1 -1
- package/dist/components/Button/Button.styles.js +122 -11
- package/dist/components/Button/GlareButton.js +1 -1
- package/dist/components/Card/Card.styles.js +3 -4
- package/dist/components/CardTabs/CardTabs.styles.js +17 -17
- package/dist/components/ChartLegend/ChartLegend.styles.js +6 -7
- package/dist/components/Checkbox/Checkbox.styles.js +10 -11
- package/dist/components/Checklist/ChecklistCard.js +3 -3
- package/dist/components/Checklist/ChecklistCard.styles.js +7 -20
- package/dist/components/Chips/Chip.js +2 -2
- package/dist/components/Chips/Chip.styles.js +6 -10
- package/dist/components/Collapsible/Collapsible.styles.js +14 -14
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +5 -5
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +5 -5
- package/dist/components/ConfirmModal/ConfirmModal.styles.js +2 -2
- package/dist/components/Country/CountrySelect.js +6 -6
- package/dist/components/CryptoAddress/CryptoAddress.d.ts +6 -2
- package/dist/components/CryptoAddress/CryptoAddress.js +2 -2
- package/dist/components/CryptoAddress/CryptoAddress.styles.d.ts +2 -1
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +20 -27
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +2 -2
- package/dist/components/FAQ/FAQ.styles.js +15 -20
- package/dist/components/Form/Form.styles.js +5 -5
- package/dist/components/Grid/Grid.styles.js +7 -7
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +10 -22
- package/dist/components/InfoBox/InfoBox.d.ts +2 -2
- package/dist/components/InfoBox/InfoBox.js +5 -3
- package/dist/components/InfoIcon/InfoIcon.styles.js +2 -2
- package/dist/components/Input/DatePickerInput.styles.js +23 -24
- package/dist/components/Input/Input.styles.js +24 -30
- package/dist/components/Input/InputPassword.styles.js +11 -11
- package/dist/components/Input/InputWithButton.styles.js +5 -5
- package/dist/components/Input/MultiSelect.js +17 -17
- package/dist/components/Input/OtpInput.js +1 -1
- package/dist/components/Input/RangeInput.js +2 -2
- package/dist/components/Input/SearchInput.styles.js +10 -10
- package/dist/components/Input/Select.js +21 -16
- package/dist/components/Input/Select.styles.js +24 -28
- package/dist/components/Input/TableFilterDropdown.js +5 -5
- package/dist/components/Input/Textarea.styles.js +11 -13
- package/dist/components/MenuNav/MenuNav.styles.js +2 -5
- package/dist/components/Modal/Modal.styles.js +25 -31
- package/dist/components/Modal/PaymentModal.js +7 -7
- package/dist/components/Modal/SideModal.styles.js +8 -8
- package/dist/components/Modal/SideModalParts.js +15 -16
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +5 -8
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +2 -2
- package/dist/components/Number/Number.js +1 -1
- package/dist/components/Number/Number.styles.js +2 -2
- package/dist/components/Pagination/Pagination.styles.js +7 -7
- package/dist/components/PanelCard/PanelCard.styles.js +17 -17
- package/dist/components/Payment/DetailRows.js +1 -1
- package/dist/components/Payment/DetailsToggle.js +4 -6
- package/dist/components/Payment/PaymentDetailsCard.js +29 -53
- package/dist/components/Payment/PaymentDisplay.js +12 -20
- package/dist/components/Payment/PaymentPendingCard.d.ts +1 -1
- package/dist/components/Payment/PaymentPendingCard.js +10 -13
- package/dist/components/Payment/PaymentSuccessCard.js +6 -9
- package/dist/components/Payment/TimerComponent.js +5 -4
- package/dist/components/Process/Process.styles.js +7 -13
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +8 -10
- package/dist/components/ProfileBox/ProfileBox.styles.js +5 -7
- package/dist/components/Radio/Radio.styles.js +8 -9
- package/dist/components/RefreshButton/RefreshButton.styles.js +5 -5
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +3 -5
- package/dist/components/Section/Section.styles.js +16 -18
- package/dist/components/SectionTitle/SectionTitle.styles.d.ts +4 -0
- package/dist/components/SectionTitle/SectionTitle.styles.js +4 -7
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.js +3 -3
- package/dist/components/Snackbar/Snackbar.styles.js +8 -10
- package/dist/components/SpanButton/SpanButton.styles.js +2 -2
- package/dist/components/StatusDot/StatusDot.d.ts +1 -1
- package/dist/components/StatusDot/StatusDot.js +5 -5
- package/dist/components/StatusDot/StatusDot.styles.js +2 -5
- package/dist/components/StatusTag/StatusTag.js +1 -1
- package/dist/components/StatusTag/StatusTag.styles.js +4 -4
- package/dist/components/StepController/StepController.styles.js +7 -7
- package/dist/components/StepSidebar/MobileStepProgress.styles.js +6 -8
- package/dist/components/StepSidebar/StepProgress.styles.js +18 -27
- package/dist/components/StepSidebar/StepSidebar.styles.js +14 -20
- package/dist/components/StokrLoader/StokrLoader.js +41 -13
- package/dist/components/StokrLoader/loaderSession.d.ts +14 -0
- package/dist/components/StokrLoader/loaderSession.js +30 -0
- package/dist/components/Switch/Switch.styles.js +12 -14
- package/dist/components/TabsNav/TabsNav.styles.js +7 -9
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +30 -35
- package/dist/components/Text/Text.styles.d.ts +2 -1
- package/dist/components/Text/Text.styles.js +36 -70
- package/dist/components/TextLink/TextLink.styles.js +5 -7
- package/dist/components/Timeline/Timeline.styles.js +17 -23
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -2
- package/dist/components/Tooltip/Tooltip.styles.js +4 -5
- package/dist/components/breakdown/Breakdown.js +3 -5
- package/dist/components/logo/Logo.js +1 -1
- package/dist/design-system/css/base.css +14 -14
- package/dist/design-system/css-builders.d.ts +25 -0
- package/dist/design-system/css-builders.js +81 -0
- package/dist/design-system/generated/fonts.css +0 -49
- package/dist/design-system/generated/text-classes.css +123 -123
- package/dist/design-system/generated/text-styles.d.ts +24 -24
- package/dist/design-system/generated/text-styles.js +123 -123
- package/dist/design-system/generated/tokens.css +417 -412
- package/dist/design-system/index.d.ts +2 -1
- package/dist/design-system/styled/build-theme.js +1 -1
- package/dist/design-system/tokens/colors.d.ts +1 -1
- package/dist/design-system/tokens/colors.js +1 -1
- package/dist/design-system/tokens/fonts.d.ts +6 -2
- package/dist/design-system/tokens/fonts.js +1 -1
- package/dist/design-system/tokens/semantic.d.ts +15 -3
- package/dist/design-system/tokens/semantic.js +5 -1
- package/dist/design-system/tokens/typography.d.ts +1 -1
- package/dist/design-system/tokens/typography.js +64 -41
- package/dist/index.d.ts +11 -1
- package/dist/index.js +3 -0
- package/dist/styles/borderedField.d.ts +1 -1
- package/dist/styles/borderedField.js +13 -13
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ const ListItem = styled.li.withConfig({
|
|
|
15
15
|
height: 32px;
|
|
16
16
|
text-align: center;
|
|
17
17
|
margin: auto 4px;
|
|
18
|
-
color: var(--
|
|
18
|
+
color: var(--text-primary);
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
justify-content: center;
|
|
@@ -23,7 +23,7 @@ const ListItem = styled.li.withConfig({
|
|
|
23
23
|
border-radius: 16px;
|
|
24
24
|
line-height: 1.43;
|
|
25
25
|
font-size: 15px;
|
|
26
|
-
font-weight:
|
|
26
|
+
font-weight: 400;
|
|
27
27
|
min-width: 32px;
|
|
28
28
|
|
|
29
29
|
${(props) => props.arrow && `
|
|
@@ -31,14 +31,14 @@ const ListItem = styled.li.withConfig({
|
|
|
31
31
|
`}
|
|
32
32
|
|
|
33
33
|
&:hover {
|
|
34
|
-
background-color: var(--
|
|
35
|
-
color: var(--
|
|
34
|
+
background-color: var(--action-accent-bg);
|
|
35
|
+
color: var(--action-accent-text);
|
|
36
36
|
cursor: pointer;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
${(props) => props.selected && `
|
|
40
|
-
color: var(--
|
|
41
|
-
background-color: var(--
|
|
40
|
+
color: var(--action-accent-text);
|
|
41
|
+
background-color: var(--action-accent-bg);
|
|
42
42
|
`}
|
|
43
43
|
|
|
44
44
|
${(props) => props.disabled && `
|
|
@@ -50,7 +50,7 @@ const ListItem = styled.li.withConfig({
|
|
|
50
50
|
&:hover{
|
|
51
51
|
background-color: transparent;
|
|
52
52
|
cursor: default;
|
|
53
|
-
color:var(--
|
|
53
|
+
color:var(--text-primary)
|
|
54
54
|
}
|
|
55
55
|
`}
|
|
56
56
|
`;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
3
3
|
import { text } from "../../design-system/styled/text.js";
|
|
4
|
-
const divider = `var(--panel-card-divider, 1px solid var(--
|
|
4
|
+
const divider = `var(--panel-card-divider, 1px solid var(--border-subtle))`;
|
|
5
5
|
const Root = styled.div`
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
overflow: hidden;
|
|
8
|
-
background: var(--panel-card-background, var(--
|
|
8
|
+
background: var(--panel-card-background, var(--background-default));
|
|
9
9
|
border: 1px solid
|
|
10
|
-
${({ $highlighted }) => $highlighted ? `var(--panel-card-highlight-color, var(--
|
|
11
|
-
border-radius: var(--panel-card-radius, var(--
|
|
12
|
-
box-shadow: ${({ $highlighted }) => $highlighted ? `var(--panel-card-highlight-shadow, var(--
|
|
10
|
+
${({ $highlighted }) => $highlighted ? `var(--panel-card-highlight-color, var(--border-focus))` : `var(--panel-card-border-color, var(--border-subtle))`};
|
|
11
|
+
border-radius: var(--panel-card-radius, var(--radius-lg));
|
|
12
|
+
box-shadow: ${({ $highlighted }) => $highlighted ? `var(--panel-card-highlight-shadow, var(--elevation-md))` : "none"};
|
|
13
13
|
|
|
14
14
|
> * + * {
|
|
15
15
|
border-top: ${divider};
|
|
@@ -19,20 +19,20 @@ const Header = styled.div`
|
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
align-items: flex-start;
|
|
22
|
-
gap: var(--panel-card-header-gap, var(--
|
|
23
|
-
padding: var(--panel-card-header-padding, var(--
|
|
22
|
+
gap: var(--panel-card-header-gap, var(--space-5));
|
|
23
|
+
padding: var(--panel-card-header-padding, var(--space-4));
|
|
24
24
|
|
|
25
25
|
${breakpoint.MLarge`
|
|
26
26
|
flex-direction: row;
|
|
27
27
|
align-items: center;
|
|
28
28
|
justify-content: space-between;
|
|
29
|
-
padding: var(--panel-card-header-padding, var(--
|
|
29
|
+
padding: var(--panel-card-header-padding, var(--space-6));
|
|
30
30
|
`}
|
|
31
31
|
`;
|
|
32
32
|
const HeaderMain = styled.div`
|
|
33
33
|
display: flex;
|
|
34
34
|
align-items: center;
|
|
35
|
-
gap: var(--panel-card-header-leading-gap, var(--
|
|
35
|
+
gap: var(--panel-card-header-leading-gap, var(--space-3));
|
|
36
36
|
min-width: 0;
|
|
37
37
|
`;
|
|
38
38
|
const HeaderText = styled.div`
|
|
@@ -42,11 +42,11 @@ const HeaderText = styled.div`
|
|
|
42
42
|
`;
|
|
43
43
|
const HeaderTitle = styled.div`
|
|
44
44
|
${text("subtitleM")};
|
|
45
|
-
color: var(--
|
|
45
|
+
color: var(--text-primary);
|
|
46
46
|
`;
|
|
47
47
|
const HeaderSubtitle = styled.div`
|
|
48
48
|
${text("bodyS")};
|
|
49
|
-
color: var(--
|
|
49
|
+
color: var(--text-secondary);
|
|
50
50
|
`;
|
|
51
51
|
const HeaderTrailing = styled.div`
|
|
52
52
|
display: flex;
|
|
@@ -55,20 +55,20 @@ const HeaderTrailing = styled.div`
|
|
|
55
55
|
`;
|
|
56
56
|
const Section = styled.div`
|
|
57
57
|
box-sizing: border-box;
|
|
58
|
-
padding: var(--panel-card-section-padding, var(--
|
|
59
|
-
background: var(--panel-card-section-background, var(--
|
|
58
|
+
padding: var(--panel-card-section-padding, var(--space-4));
|
|
59
|
+
background: var(--panel-card-section-background, var(--background-default));
|
|
60
60
|
|
|
61
61
|
${breakpoint.MLarge`
|
|
62
|
-
padding: var(--panel-card-section-padding, var(--
|
|
62
|
+
padding: var(--panel-card-section-padding, var(--space-4) var(--space-6));
|
|
63
63
|
`}
|
|
64
64
|
`;
|
|
65
65
|
const Footer = styled.div`
|
|
66
66
|
box-sizing: border-box;
|
|
67
|
-
padding: var(--panel-card-footer-padding, var(--
|
|
68
|
-
background: var(--panel-card-footer-background, var(--
|
|
67
|
+
padding: var(--panel-card-footer-padding, var(--space-3) var(--space-4));
|
|
68
|
+
background: var(--panel-card-footer-background, var(--background-surface));
|
|
69
69
|
|
|
70
70
|
${breakpoint.MLarge`
|
|
71
|
-
padding: var(--panel-card-footer-padding, var(--
|
|
71
|
+
padding: var(--panel-card-footer-padding, var(--space-3) var(--space-6));
|
|
72
72
|
`}
|
|
73
73
|
`;
|
|
74
74
|
export {
|
|
@@ -2,6 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import { DetailRows } from "./DetailRows.js";
|
|
5
|
+
import { text } from "../../design-system/styled/text.js";
|
|
5
6
|
const ToggleButton = styled.button`
|
|
6
7
|
display: flex;
|
|
7
8
|
align-items: center;
|
|
@@ -12,14 +13,11 @@ const ToggleButton = styled.button`
|
|
|
12
13
|
border: none;
|
|
13
14
|
cursor: pointer;
|
|
14
15
|
padding: 10px 0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
letter-spacing: 2px;
|
|
18
|
-
text-transform: uppercase;
|
|
19
|
-
color: var(--stokr-text-primary);
|
|
16
|
+
${text("label")}
|
|
17
|
+
color: var(--text-primary);
|
|
20
18
|
|
|
21
19
|
&:hover {
|
|
22
|
-
color: var(--
|
|
20
|
+
color: var(--action-accent-bg);
|
|
23
21
|
}
|
|
24
22
|
`;
|
|
25
23
|
const Chevron = styled.svg`
|
|
@@ -6,34 +6,28 @@ import { InfoIcon } from "../InfoIcon/InfoIcon.js";
|
|
|
6
6
|
import { ArrowSimple } from "../icons/ArrowSimple.js";
|
|
7
7
|
import { getCurrencyConfig, getCurrencyIcon, formatAmountForDisplay } from "../../utils/formatCurrencyValue.js";
|
|
8
8
|
import externalLinkIcon from "../../static/images/external-link-icon.svg.js";
|
|
9
|
+
import { text } from "../../design-system/styled/text.js";
|
|
9
10
|
const CardContainer = styled.div`
|
|
10
|
-
background: var(--
|
|
11
|
+
background: var(--background-default);
|
|
11
12
|
border-radius: 8px;
|
|
12
|
-
border: 1px solid var(--
|
|
13
|
+
border: 1px solid var(--border-subtle);
|
|
13
14
|
padding: 20px 32px;
|
|
14
15
|
`;
|
|
15
16
|
const CardTitle = styled.div`
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
color: var(--stokr-background-default);
|
|
20
|
-
background: var(--stokr-border-strong);
|
|
17
|
+
${text("labelRegular")}
|
|
18
|
+
color: var(--background-default);
|
|
19
|
+
background: var(--border-strong);
|
|
21
20
|
padding: 12px 24px;
|
|
22
21
|
margin: -20px -32px 20px -32px;
|
|
23
22
|
border-radius: 8px 8px 0 0;
|
|
24
|
-
// border-bottom: 1px solid var(--
|
|
23
|
+
// border-bottom: 1px solid var(--color-neutral-200);
|
|
25
24
|
text-align: start;
|
|
26
|
-
text-transform: uppercase;
|
|
27
25
|
`;
|
|
28
26
|
const AmountSection = styled.div``;
|
|
29
27
|
const AmountLabel = styled.div`
|
|
30
|
-
|
|
31
|
-
font-weight: 400;
|
|
32
|
-
line-height: 20px;
|
|
33
|
-
text-transform: uppercase;
|
|
34
|
-
letter-spacing: 2px;
|
|
28
|
+
${text("labelRegular")}
|
|
35
29
|
margin-bottom: 8px;
|
|
36
|
-
color: var(--
|
|
30
|
+
color: var(--text-secondary);
|
|
37
31
|
text-align: start;
|
|
38
32
|
`;
|
|
39
33
|
const AmountSubtitle = styled.div`
|
|
@@ -41,7 +35,7 @@ const AmountSubtitle = styled.div`
|
|
|
41
35
|
font-weight: 400;
|
|
42
36
|
line-height: 18px;
|
|
43
37
|
letter-spacing: 0.6px;
|
|
44
|
-
color: var(--
|
|
38
|
+
color: var(--text-tertiary);
|
|
45
39
|
margin-top: 8px;
|
|
46
40
|
text-align: start;
|
|
47
41
|
`;
|
|
@@ -60,14 +54,10 @@ const AmountLeft = styled.div`
|
|
|
60
54
|
min-width: 0;
|
|
61
55
|
`;
|
|
62
56
|
const CurrencyTicker = styled.div`
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
color: var(--stokr-text-tertiary);
|
|
66
|
-
letter-spacing: 0.8px;
|
|
67
|
-
line-height: 28px;
|
|
57
|
+
${text("titleL")}
|
|
58
|
+
color: var(--text-tertiary);
|
|
68
59
|
flex-shrink: 0;
|
|
69
60
|
margin-left: auto;
|
|
70
|
-
text-transform: uppercase;
|
|
71
61
|
`;
|
|
72
62
|
const CurrencyLogo = styled.div.withConfig({
|
|
73
63
|
shouldForwardProp: (props) => !["color"].includes(props)
|
|
@@ -75,14 +65,13 @@ const CurrencyLogo = styled.div.withConfig({
|
|
|
75
65
|
width: 24px;
|
|
76
66
|
height: 24px;
|
|
77
67
|
border-radius: 50%;
|
|
78
|
-
background-color: ${(props) => props.color || "var(--
|
|
68
|
+
background-color: ${(props) => props.color || "var(--color-neutral-900)"};
|
|
79
69
|
display: flex;
|
|
80
70
|
align-items: center;
|
|
81
71
|
justify-content: center;
|
|
82
72
|
flex-shrink: 0;
|
|
83
|
-
color: var(--
|
|
84
|
-
|
|
85
|
-
font-weight: 600;
|
|
73
|
+
color: var(--brand-pure-white);
|
|
74
|
+
${text("subtitleS")}
|
|
86
75
|
overflow: hidden;
|
|
87
76
|
`;
|
|
88
77
|
const CurrencyIcon = styled.img`
|
|
@@ -91,19 +80,15 @@ const CurrencyIcon = styled.img`
|
|
|
91
80
|
object-fit: contain;
|
|
92
81
|
`;
|
|
93
82
|
const AmountValue = styled.div`
|
|
94
|
-
|
|
95
|
-
font-weight: 300;
|
|
96
|
-
text-transform: uppercase;
|
|
97
|
-
line-height: 40px;
|
|
98
|
-
letter-spacing: 1.5px;
|
|
83
|
+
${text("titleXl")}
|
|
99
84
|
max-width: 100%;
|
|
100
85
|
overflow-wrap: break-word;
|
|
101
86
|
word-break: break-word;
|
|
102
|
-
color: var(--
|
|
87
|
+
color: var(--text-primary);
|
|
103
88
|
`;
|
|
104
89
|
const Separator = styled.hr`
|
|
105
90
|
border: none;
|
|
106
|
-
border-top: 1px solid var(--
|
|
91
|
+
border-top: 1px solid var(--border-subtle);
|
|
107
92
|
margin: 20px 0px;
|
|
108
93
|
`;
|
|
109
94
|
const ArrowSeparatorWrapper = styled.div`
|
|
@@ -117,7 +102,7 @@ const ArrowSeparatorWrapper = styled.div`
|
|
|
117
102
|
content: '';
|
|
118
103
|
flex: 1;
|
|
119
104
|
height: 1px;
|
|
120
|
-
background: var(--
|
|
105
|
+
background: var(--border-subtle);
|
|
121
106
|
}
|
|
122
107
|
`;
|
|
123
108
|
const ArrowCircle = styled.div`
|
|
@@ -126,15 +111,11 @@ const ArrowCircle = styled.div`
|
|
|
126
111
|
justify-content: center;
|
|
127
112
|
margin: 0 16px;
|
|
128
113
|
height: 0;
|
|
129
|
-
color: var(--
|
|
114
|
+
color: var(--text-tertiary);
|
|
130
115
|
`;
|
|
131
116
|
const SectionHeader = styled.div`
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
line-height: 20px;
|
|
135
|
-
text-transform: uppercase;
|
|
136
|
-
letter-spacing: 2px;
|
|
137
|
-
color: var(--stokr-text-secondary);
|
|
117
|
+
${text("labelRegular")}
|
|
118
|
+
color: var(--text-secondary);
|
|
138
119
|
text-align: start;
|
|
139
120
|
margin-bottom: 4px;
|
|
140
121
|
`;
|
|
@@ -165,7 +146,7 @@ const DetailLabel = styled.div`
|
|
|
165
146
|
font-weight: 400;
|
|
166
147
|
line-height: 20px;
|
|
167
148
|
letter-spacing: 0.5px;
|
|
168
|
-
color: var(--
|
|
149
|
+
color: var(--text-secondary);
|
|
169
150
|
|
|
170
151
|
i {
|
|
171
152
|
font-size: 14px;
|
|
@@ -176,27 +157,22 @@ const DetailValue = styled.div`
|
|
|
176
157
|
align-items: center;
|
|
177
158
|
justify-content: flex-end;
|
|
178
159
|
gap: 6px;
|
|
179
|
-
|
|
180
|
-
font-weight: 600;
|
|
181
|
-
line-height: 20px;
|
|
182
|
-
letter-spacing: 0.5px;
|
|
160
|
+
${text("subtitleS")}
|
|
183
161
|
word-wrap: break-word;
|
|
184
162
|
text-align: right;
|
|
185
163
|
max-width: 60%;
|
|
186
|
-
color: var(--
|
|
164
|
+
color: var(--text-primary);
|
|
187
165
|
`;
|
|
188
166
|
const PlaceholderValue = styled.span`
|
|
189
|
-
color: var(--
|
|
167
|
+
color: var(--text-secondary);
|
|
190
168
|
font-weight: 300;
|
|
191
169
|
font-size: 14px;
|
|
192
170
|
letter-spacing: 0.5px;
|
|
193
171
|
`;
|
|
194
172
|
const ExternalLink = styled.a`
|
|
195
|
-
color: var(--
|
|
173
|
+
color: var(--text-primary);
|
|
196
174
|
text-decoration: underline;
|
|
197
|
-
|
|
198
|
-
font-weight: 600;
|
|
199
|
-
letter-spacing: 0.5px;
|
|
175
|
+
${text("subtitleS")}
|
|
200
176
|
display: inline-flex;
|
|
201
177
|
align-items: center;
|
|
202
178
|
gap: 6px;
|
|
@@ -283,7 +259,7 @@ const AmountBlock = ({ config }) => {
|
|
|
283
259
|
const hasAmount = amount !== void 0 && amount !== null && amount !== "";
|
|
284
260
|
const displayValue = hasAmount ? Math.abs(Number(amount)).toFixed(resolvedDecimals) : null;
|
|
285
261
|
const currencyIcon = getCurrencyIcon(currency, icon);
|
|
286
|
-
const logoColor = currencyColor || "var(--
|
|
262
|
+
const logoColor = currencyColor || "var(--color-neutral-900)";
|
|
287
263
|
const ticker = showTicker ? symbol : null;
|
|
288
264
|
const renderCurrencyLogo = () => {
|
|
289
265
|
if (currencyIcon) {
|
|
@@ -6,11 +6,12 @@ import stdin_default from "../QRCode/QRCode.js";
|
|
|
6
6
|
import { SectionTitle } from "../SectionTitle/SectionTitle.styles.js";
|
|
7
7
|
import { StatusDot } from "../StatusDot/StatusDot.js";
|
|
8
8
|
import { getCurrencyIcon, formatAmountForDisplay } from "../../utils/formatCurrencyValue.js";
|
|
9
|
+
import { text } from "../../design-system/styled/text.js";
|
|
9
10
|
const CodeWrapper = styled.div.withConfig({
|
|
10
11
|
shouldForwardProp: (props) => !["maxWidth"].includes(props)
|
|
11
12
|
})`
|
|
12
|
-
background: var(--
|
|
13
|
-
border: 1px solid var(--
|
|
13
|
+
background: var(--background-default);
|
|
14
|
+
border: 1px solid var(--border-subtle);
|
|
14
15
|
border-radius: 8px;
|
|
15
16
|
box-shadow: none;
|
|
16
17
|
padding: 48px 40px;
|
|
@@ -46,22 +47,16 @@ const AmountValueGroup = styled.div`
|
|
|
46
47
|
`;
|
|
47
48
|
const AmountValue = styled.p`
|
|
48
49
|
margin: 0;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
text-transform: uppercase;
|
|
52
|
-
line-height: 40px;
|
|
53
|
-
letter-spacing: 1.5px;
|
|
54
|
-
color: var(--stokr-text-primary);
|
|
50
|
+
${text("titleXl")}
|
|
51
|
+
color: var(--text-primary);
|
|
55
52
|
max-width: 100%;
|
|
56
53
|
overflow-wrap: break-word;
|
|
57
54
|
word-break: break-word;
|
|
58
55
|
`;
|
|
59
56
|
const AmountCurrency = styled.p`
|
|
60
57
|
margin: 0;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
line-height: 40px;
|
|
64
|
-
color: var(--stokr-text-primary);
|
|
58
|
+
${text("titleXl")}
|
|
59
|
+
color: var(--text-primary);
|
|
65
60
|
`;
|
|
66
61
|
const AmountIcon = styled.img`
|
|
67
62
|
width: 32px;
|
|
@@ -89,13 +84,10 @@ const AddressRow = styled.div`
|
|
|
89
84
|
`;
|
|
90
85
|
const AddressText = styled.p`
|
|
91
86
|
margin: 0;
|
|
92
|
-
|
|
93
|
-
font-weight: 600;
|
|
94
|
-
line-height: 20px;
|
|
95
|
-
letter-spacing: 0.5px;
|
|
87
|
+
${text("subtitleS")}
|
|
96
88
|
text-align: center;
|
|
97
89
|
word-break: break-all;
|
|
98
|
-
color: var(--
|
|
90
|
+
color: var(--text-primary);
|
|
99
91
|
`;
|
|
100
92
|
const AddressDescription = styled.p`
|
|
101
93
|
margin: 0;
|
|
@@ -104,7 +96,7 @@ const AddressDescription = styled.p`
|
|
|
104
96
|
line-height: 18px;
|
|
105
97
|
letter-spacing: 0.6px;
|
|
106
98
|
text-align: center;
|
|
107
|
-
color: var(--
|
|
99
|
+
color: var(--text-tertiary);
|
|
108
100
|
`;
|
|
109
101
|
const PaymentDisplay = ({
|
|
110
102
|
amount,
|
|
@@ -196,8 +188,8 @@ const PaymentDisplay = ({
|
|
|
196
188
|
statusMessage && /* @__PURE__ */ jsx(
|
|
197
189
|
StatusDot,
|
|
198
190
|
{
|
|
199
|
-
color: statusDotColor || "var(--
|
|
200
|
-
labelColor: "var(--
|
|
191
|
+
color: statusDotColor || "var(--status-info-blue-icon)",
|
|
192
|
+
labelColor: "var(--text-secondary)",
|
|
201
193
|
dotSize: 8,
|
|
202
194
|
pulse: true,
|
|
203
195
|
style: { width: "100%", whiteSpace: "normal" },
|
|
@@ -11,7 +11,7 @@ import { PaymentDetailRow } from './PaymentDetailsCard';
|
|
|
11
11
|
*
|
|
12
12
|
* `rows` is passed straight through to PaymentDetailsCard's DetailItem, so the same
|
|
13
13
|
* `href`/`tooltip`/`isCustom`/`labelIcon`/`valueIcon` escape hatches apply — e.g. a
|
|
14
|
-
* colored "Pending confirmation" status value: { label: 'Status', value: <span style={{color: 'var(--
|
|
14
|
+
* colored "Pending confirmation" status value: { label: 'Status', value: <span style={{color: 'var(--action-accent-bg)'}}>Pending confirmation</span>, isCustom: true }
|
|
15
15
|
*/
|
|
16
16
|
export interface PaymentPendingCardProps {
|
|
17
17
|
title: ReactNode;
|
|
@@ -5,6 +5,7 @@ import { safeUrl } from "../../utils/safeUrl.js";
|
|
|
5
5
|
import { Button } from "../Button/Button.styles.js";
|
|
6
6
|
import { DetailRows } from "./DetailRows.js";
|
|
7
7
|
import { CodeWrapper } from "./PaymentDisplay.js";
|
|
8
|
+
import { text } from "../../design-system/styled/text.js";
|
|
8
9
|
const spin = keyframes`
|
|
9
10
|
to { transform: rotate(360deg); }
|
|
10
11
|
`;
|
|
@@ -13,8 +14,8 @@ const Spinner = styled.div`
|
|
|
13
14
|
height: 48px;
|
|
14
15
|
flex-shrink: 0;
|
|
15
16
|
border-radius: 50%;
|
|
16
|
-
border: 3px solid var(--
|
|
17
|
-
border-top-color: var(--
|
|
17
|
+
border: 3px solid var(--border-subtle);
|
|
18
|
+
border-top-color: var(--action-accent-bg);
|
|
18
19
|
animation: ${spin} 0.9s linear infinite;
|
|
19
20
|
`;
|
|
20
21
|
const TextBlock = styled.div`
|
|
@@ -27,32 +28,28 @@ const TextBlock = styled.div`
|
|
|
27
28
|
`;
|
|
28
29
|
const Title = styled.h2`
|
|
29
30
|
margin: 0;
|
|
30
|
-
font-family: var(--
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
line-height: 28px;
|
|
34
|
-
letter-spacing: 0.8px;
|
|
35
|
-
text-transform: uppercase;
|
|
36
|
-
color: var(--stokr-text-primary);
|
|
31
|
+
font-family: var(--font-family-base);
|
|
32
|
+
${text("titleL")}
|
|
33
|
+
color: var(--text-primary);
|
|
37
34
|
`;
|
|
38
35
|
const Description = styled.p`
|
|
39
36
|
margin: 0;
|
|
40
|
-
font-family: var(--
|
|
37
|
+
font-family: var(--font-family-base);
|
|
41
38
|
font-size: 16px;
|
|
42
39
|
font-weight: 300;
|
|
43
40
|
line-height: 24px;
|
|
44
41
|
letter-spacing: 0.6px;
|
|
45
|
-
color: var(--
|
|
42
|
+
color: var(--text-primary);
|
|
46
43
|
`;
|
|
47
44
|
const FooterNote = styled.p`
|
|
48
45
|
margin: 0;
|
|
49
|
-
font-family: var(--
|
|
46
|
+
font-family: var(--font-family-base);
|
|
50
47
|
font-size: 12px;
|
|
51
48
|
font-weight: 400;
|
|
52
49
|
line-height: 18px;
|
|
53
50
|
letter-spacing: 0.6px;
|
|
54
51
|
text-align: center;
|
|
55
|
-
color: var(--
|
|
52
|
+
color: var(--text-secondary);
|
|
56
53
|
`;
|
|
57
54
|
const PaymentPendingCard = ({
|
|
58
55
|
title,
|
|
@@ -8,12 +8,13 @@ import { DetailsToggle } from "./DetailsToggle.js";
|
|
|
8
8
|
import { LottieAnimation } from "../Lottie/LottieAnimation.js";
|
|
9
9
|
import { getCurrencyIcon, formatAmountForDisplay } from "../../utils/formatCurrencyValue.js";
|
|
10
10
|
import externalLinkIcon from "../../static/images/external-link-icon.svg.js";
|
|
11
|
+
import { text } from "../../design-system/styled/text.js";
|
|
11
12
|
const IconCircle = styled.div`
|
|
12
13
|
flex-shrink: 0;
|
|
13
14
|
width: 100px;
|
|
14
15
|
height: 100px;
|
|
15
16
|
border-radius: 50%;
|
|
16
|
-
background: var(--
|
|
17
|
+
background: var(--status-success-bg);
|
|
17
18
|
display: flex;
|
|
18
19
|
align-items: center;
|
|
19
20
|
justify-content: center;
|
|
@@ -28,13 +29,9 @@ const TextBlock = styled.div`
|
|
|
28
29
|
`;
|
|
29
30
|
const Title = styled.h2`
|
|
30
31
|
margin: 0;
|
|
31
|
-
font-family: var(--
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
line-height: 28px;
|
|
35
|
-
letter-spacing: 0.8px;
|
|
36
|
-
text-transform: uppercase;
|
|
37
|
-
color: var(--stokr-text-primary);
|
|
32
|
+
font-family: var(--font-family-base);
|
|
33
|
+
${text("titleL")}
|
|
34
|
+
color: var(--text-primary);
|
|
38
35
|
`;
|
|
39
36
|
const Description = styled.p`
|
|
40
37
|
margin: 0;
|
|
@@ -42,7 +39,7 @@ const Description = styled.p`
|
|
|
42
39
|
font-weight: 300;
|
|
43
40
|
line-height: 24px;
|
|
44
41
|
letter-spacing: 0.6px;
|
|
45
|
-
color: var(--
|
|
42
|
+
color: var(--text-primary);
|
|
46
43
|
`;
|
|
47
44
|
const AmountRow = styled.div`
|
|
48
45
|
display: flex;
|
|
@@ -5,11 +5,12 @@ import styled from "styled-components";
|
|
|
5
5
|
import { Text } from "../Text/Text.styles.js";
|
|
6
6
|
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
7
7
|
import { FlexContainer } from "../Grid/Grid.styles.js";
|
|
8
|
+
import { text } from "../../design-system/styled/text.js";
|
|
8
9
|
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
9
10
|
const TimerBlock = styled.div.withConfig({
|
|
10
11
|
shouldForwardProp: (props) => !["maxWidth", "red"].includes(props)
|
|
11
12
|
})`
|
|
12
|
-
background-color: var(--
|
|
13
|
+
background-color: var(--background-surface);
|
|
13
14
|
padding: 24px 27px;
|
|
14
15
|
text-align: start;
|
|
15
16
|
max-width: ${(props) => props.maxWidth || "550px"};
|
|
@@ -20,13 +21,13 @@ const TimerBlock = styled.div.withConfig({
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
p {
|
|
23
|
-
|
|
24
|
+
${text("bodyS")}
|
|
24
25
|
margin: 0 !important;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
${breakpoint.Medium`
|
|
28
29
|
p {
|
|
29
|
-
|
|
30
|
+
${text("bodyM")}
|
|
30
31
|
}
|
|
31
32
|
`}
|
|
32
33
|
|
|
@@ -36,7 +37,7 @@ const TimerBlock = styled.div.withConfig({
|
|
|
36
37
|
|
|
37
38
|
${(props) => props.red && `
|
|
38
39
|
#timer-text {
|
|
39
|
-
color: var(--
|
|
40
|
+
color: var(--status-error-text);
|
|
40
41
|
}
|
|
41
42
|
`}
|
|
42
43
|
`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled, { css, keyframes } from "styled-components";
|
|
2
2
|
import { withGlyph, glyph } from "../MaterialIcon/glyph.js";
|
|
3
|
+
import { text } from "../../design-system/styled/text.js";
|
|
3
4
|
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
4
5
|
const spin = keyframes`
|
|
5
6
|
to {
|
|
@@ -15,18 +16,11 @@ const Process = styled.div.withConfig({
|
|
|
15
16
|
})`
|
|
16
17
|
display: block;
|
|
17
18
|
position: relative;
|
|
18
|
-
|
|
19
|
-
line-height: 16px;
|
|
20
|
-
text-transform: uppercase;
|
|
19
|
+
${text("dataLabel")}
|
|
21
20
|
padding-right: 26px;
|
|
22
|
-
color: var(--
|
|
21
|
+
color: var(--action-accent-bg);
|
|
23
22
|
opacity: 0.3;
|
|
24
23
|
|
|
25
|
-
${breakpoint.Medium`
|
|
26
|
-
font-size: 14px;
|
|
27
|
-
line-height: 20px;
|
|
28
|
-
`}
|
|
29
|
-
|
|
30
24
|
&:before {
|
|
31
25
|
content: '';
|
|
32
26
|
display: block;
|
|
@@ -56,8 +50,8 @@ const Process = styled.div.withConfig({
|
|
|
56
50
|
|
|
57
51
|
&:before {
|
|
58
52
|
box-sizing: border-box;
|
|
59
|
-
border: 2px solid var(--
|
|
60
|
-
border-top-color: var(--
|
|
53
|
+
border: 2px solid var(--border-subtle);
|
|
54
|
+
border-top-color: var(--action-accent-bg);
|
|
61
55
|
border-radius: 50%;
|
|
62
56
|
animation: ${spin} 0.8s linear infinite;
|
|
63
57
|
}
|
|
@@ -67,13 +61,13 @@ const Process = styled.div.withConfig({
|
|
|
67
61
|
opacity: 1;
|
|
68
62
|
|
|
69
63
|
> [data-icon] {
|
|
70
|
-
color: var(--
|
|
64
|
+
color: var(--status-success-icon);
|
|
71
65
|
}
|
|
72
66
|
`}
|
|
73
67
|
|
|
74
68
|
${(props) => props.failed && `
|
|
75
69
|
opacity: 1;
|
|
76
|
-
color: var(--
|
|
70
|
+
color: var(--status-error-text);
|
|
77
71
|
|
|
78
72
|
`}
|
|
79
73
|
`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
2
|
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
3
|
+
import { text } from "../../design-system/styled/text.js";
|
|
3
4
|
const Wrapper = styled.div.withConfig({
|
|
4
5
|
shouldForwardProp: (props) => !["color"].includes(props)
|
|
5
6
|
})`
|
|
@@ -16,30 +17,27 @@ const Wrapper = styled.div.withConfig({
|
|
|
16
17
|
`}
|
|
17
18
|
|
|
18
19
|
${(props) => props.color === "white" && `
|
|
19
|
-
color: var(--
|
|
20
|
-
background-color: var(--
|
|
20
|
+
color: var(--text-primary);
|
|
21
|
+
background-color: var(--background-default);
|
|
21
22
|
|
|
22
23
|
svg {
|
|
23
|
-
stroke: var(--
|
|
24
|
+
stroke: var(--text-primary);
|
|
24
25
|
}
|
|
25
26
|
`}
|
|
26
27
|
|
|
27
28
|
${(props) => props.color === "red" && `
|
|
28
|
-
color: var(--
|
|
29
|
-
background-color: var(--
|
|
29
|
+
color: var(--brand-pure-white);
|
|
30
|
+
background-color: var(--color-red-500);
|
|
30
31
|
|
|
31
32
|
svg {
|
|
32
|
-
stroke: var(--
|
|
33
|
+
stroke: var(--brand-pure-white);
|
|
33
34
|
}
|
|
34
35
|
`}
|
|
35
36
|
`;
|
|
36
37
|
const Title = styled.div.withConfig({
|
|
37
38
|
shouldForwardProp: (props) => !["centerVertically"].includes(props)
|
|
38
39
|
})`
|
|
39
|
-
|
|
40
|
-
line-height: 24px;
|
|
41
|
-
letter-spacing: 2.06px;
|
|
42
|
-
text-transform: uppercase;
|
|
40
|
+
${text("labelRegular")}
|
|
43
41
|
margin-bottom: 20px;
|
|
44
42
|
|
|
45
43
|
${({ centerVertically }) => centerVertically && css`
|