@stokr/components-library 4.2.5 → 5.0.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 +147 -118
- package/dist/components/AdminDashboard/Table/Table.styles.d.ts +110 -0
- package/dist/components/AdminDashboard/Table/Table.styles.js +21 -20
- package/dist/components/AgreementItem/AgreementItem.styles.js +1 -1
- package/dist/components/BackButton/BackButton.styles.d.ts +24 -0
- package/dist/components/BackButton/BackButton.styles.js +15 -16
- package/dist/components/Background/Background.styles.d.ts +30 -0
- package/dist/components/Background/Background.styles.js +3 -3
- package/dist/components/BasicTable/BasicTable.d.ts +14 -0
- package/dist/components/BasicTable/BasicTable.js +0 -10
- package/dist/components/BasicTable/BasicTable.styles.d.ts +22 -0
- package/dist/components/BasicTable/BasicTable.styles.js +6 -7
- package/dist/components/BlogPost/BlogPost.js +3 -3
- package/dist/components/BlogPost/BlogPost.styles.d.ts +67 -0
- package/dist/components/BlogPost/BlogPost.styles.js +14 -20
- package/dist/components/Button/Button.styles.d.ts +12 -8
- package/dist/components/Button/Button.styles.js +131 -115
- package/dist/components/Button/GlareButton.d.ts +31 -0
- package/dist/components/Button/GlareButton.js +4 -22
- package/dist/components/Card/Card.styles.d.ts +30 -0
- package/dist/components/Card/Card.styles.js +3 -4
- package/dist/components/CardTabs/CardTabs.styles.js +26 -29
- package/dist/components/ChartLegend/ChartLegend.styles.d.ts +46 -0
- package/dist/components/ChartLegend/ChartLegend.styles.js +4 -5
- package/dist/components/Checkbox/Checkbox.styles.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.styles.js +10 -12
- package/dist/components/Checklist/ChecklistCard.d.ts +18 -0
- package/dist/components/Checklist/ChecklistCard.js +4 -17
- package/dist/components/Checklist/ChecklistCard.styles.d.ts +17 -0
- package/dist/components/Checklist/ChecklistCard.styles.js +7 -7
- package/dist/components/Chips/Chip.d.ts +18 -0
- package/dist/components/Chips/Chip.js +4 -20
- package/dist/components/Chips/Chip.styles.d.ts +23 -0
- package/dist/components/Chips/Chip.styles.js +3 -6
- package/dist/components/Chips/ChipWrapper.js +2 -2
- package/dist/components/Collapsible/Collapsible.d.ts +4 -10
- package/dist/components/Collapsible/Collapsible.js +14 -6
- package/dist/components/Collapsible/Collapsible.styles.d.ts +1 -3
- package/dist/components/Collapsible/Collapsible.styles.js +19 -36
- package/dist/components/ComponentScroll/ComponentScroll.js +2 -1
- package/dist/components/ComponentScroll/ComponentScroll.styles.d.ts +34 -0
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +15 -12
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +11 -13
- package/dist/components/ConfirmModal/ConfirmModal.styles.d.ts +18 -0
- package/dist/components/ConfirmModal/ConfirmModal.styles.js +6 -7
- package/dist/components/Country/CountrySelect.js +20 -15
- package/dist/components/CryptoAddress/ComponentWrap.d.ts +9 -0
- package/dist/components/CryptoAddress/ComponentWrap.js +7 -10
- package/dist/components/CryptoAddress/CryptoAddress.d.ts +45 -0
- package/dist/components/CryptoAddress/CryptoAddress.js +9 -41
- package/dist/components/CryptoAddress/CryptoAddress.styles.d.ts +85 -0
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +21 -22
- package/dist/components/CryptoAddress/RadioWrap.d.ts +21 -0
- package/dist/components/CryptoAddress/RadioWrap.js +1 -16
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.d.ts +30 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +19 -11
- package/dist/components/DisplayOnBreakpoint/DisplayOnBreakpoint.d.ts +12 -0
- package/dist/components/DisplayOnBreakpoint/DisplayOnBreakpoint.js +28 -0
- package/dist/components/FAQ/FAQ.js +18 -18
- package/dist/components/FAQ/FAQ.styles.d.ts +5 -12
- package/dist/components/FAQ/FAQ.styles.js +3 -61
- package/dist/components/Form/Form.styles.d.ts +22 -0
- package/dist/components/Form/Form.styles.js +7 -8
- package/dist/components/Grid/Grid.styles.d.ts +49 -0
- package/dist/components/Grid/Grid.styles.js +37 -40
- package/dist/components/IdentityInfo/IdentityInfo.js +1 -2
- package/dist/components/IdentityInfo/IdentityInfo.styles.d.ts +24 -0
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +6 -9
- package/dist/components/InfoBox/InfoBox.d.ts +20 -0
- package/dist/components/InfoBox/InfoBox.js +24 -78
- package/dist/components/InfoIcon/InfoIcon.styles.js +2 -3
- package/dist/components/Input/DatePickerInput.d.ts +24 -0
- package/dist/components/Input/DatePickerInput.js +2 -13
- package/dist/components/Input/DatePickerInput.styles.d.ts +18 -0
- package/dist/components/Input/DatePickerInput.styles.js +27 -24
- package/dist/components/Input/Input.d.ts +0 -3
- package/dist/components/Input/Input.js +3 -5
- package/dist/components/Input/Input.styles.d.ts +1 -4
- package/dist/components/Input/Input.styles.js +24 -77
- package/dist/components/Input/InputPassword.styles.d.ts +32 -0
- package/dist/components/Input/InputPassword.styles.js +11 -12
- package/dist/components/Input/InputWithButton.styles.d.ts +14 -0
- package/dist/components/Input/InputWithButton.styles.js +5 -6
- package/dist/components/Input/MultiSelect.d.ts +60 -0
- package/dist/components/Input/MultiSelect.js +20 -52
- package/dist/components/Input/OtpInput.d.ts +17 -0
- package/dist/components/Input/OtpInput.js +8 -15
- package/dist/components/Input/RangeInput.d.ts +14 -0
- package/dist/components/Input/RangeInput.js +2 -17
- package/dist/components/Input/SearchInput.styles.d.ts +15 -0
- package/dist/components/Input/SearchInput.styles.js +10 -11
- package/dist/components/Input/Select.js +156 -80
- package/dist/components/Input/Select.styles.js +16 -118
- package/dist/components/Input/TableFilterDropdown.d.ts +33 -0
- package/dist/components/Input/TableFilterDropdown.js +6 -39
- package/dist/components/Input/Textarea.styles.d.ts +9 -0
- package/dist/components/Input/Textarea.styles.js +9 -10
- package/dist/components/MaterialIcon/MaterialIcon.d.ts +17 -7
- package/dist/components/MaterialIcon/MaterialIcon.js +14 -3
- package/dist/components/MaterialIcon/requiredIcons.d.ts +1 -1
- package/dist/components/MaterialIcon/requiredIcons.js +0 -2
- package/dist/components/MenuNav/MenuNav.styles.d.ts +6 -0
- package/dist/components/MenuNav/MenuNav.styles.js +3 -0
- package/dist/components/Modal/Modal.styles.js +35 -36
- package/dist/components/Modal/PaymentModal.d.ts +55 -0
- package/dist/components/Modal/PaymentModal.js +11 -13
- package/dist/components/Modal/SideModal.styles.js +13 -14
- package/dist/components/Modal/SideModalParts.js +18 -20
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.d.ts +15 -0
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +3 -4
- package/dist/components/NotificationCounter/NotificationCounter.styles.d.ts +8 -0
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +2 -3
- package/dist/components/Number/Number.js +1 -1
- package/dist/components/Number/Number.styles.d.ts +4 -0
- package/dist/components/Number/Number.styles.js +2 -3
- package/dist/components/Pagination/Pagination.styles.d.ts +15 -0
- package/dist/components/Pagination/Pagination.styles.js +12 -11
- package/dist/components/Payment/DetailRows.d.ts +14 -0
- package/dist/components/Payment/DetailRows.js +1 -2
- package/dist/components/Payment/DetailsToggle.d.ts +23 -0
- package/dist/components/Payment/DetailsToggle.js +12 -4
- package/dist/components/Payment/PaymentDetailsCard.d.ts +95 -0
- package/dist/components/Payment/PaymentDetailsCard.js +32 -23
- package/dist/components/Payment/PaymentDisplay.d.ts +59 -0
- package/dist/components/Payment/PaymentDisplay.js +18 -11
- package/dist/components/Payment/PaymentPendingCard.d.ts +39 -0
- package/dist/components/Payment/PaymentPendingCard.js +13 -13
- package/dist/components/Payment/PaymentSuccessCard.d.ts +41 -0
- package/dist/components/Payment/PaymentSuccessCard.js +27 -11
- package/dist/components/Payment/TimerComponent.d.ts +26 -0
- package/dist/components/Payment/TimerComponent.js +6 -7
- package/dist/components/Process/Process.styles.d.ts +11 -0
- package/dist/components/Process/Process.styles.js +22 -19
- package/dist/components/ProfileBadge/ProfileBadge.d.ts +13 -0
- package/dist/components/ProfileBadge/ProfileBadge.js +14 -15
- package/dist/components/ProfileBadge/ProfileBadge.styles.d.ts +10 -0
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +8 -9
- package/dist/components/ProfileBox/ProfileBox.js +3 -3
- package/dist/components/ProfileBox/ProfileBox.styles.d.ts +22 -0
- package/dist/components/ProfileBox/ProfileBox.styles.js +18 -7
- package/dist/components/Radio/Radio.styles.d.ts +23 -0
- package/dist/components/Radio/Radio.styles.js +19 -11
- package/dist/components/RefreshButton/RefreshButton.styles.d.ts +29 -0
- package/dist/components/RefreshButton/RefreshButton.styles.js +5 -6
- package/dist/components/RequestDataBox/RequestDataBox.styles.d.ts +9 -0
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +4 -5
- package/dist/components/Section/Section.d.ts +1 -1
- package/dist/components/Section/Section.js +4 -3
- package/dist/components/Section/Section.styles.d.ts +5 -0
- package/dist/components/Section/Section.styles.js +31 -36
- package/dist/components/SectionTitle/SectionTitle.styles.js +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +4 -2
- package/dist/components/Skeleton/Skeleton.js +8 -8
- package/dist/components/SmartLink/SmartLink.js +2 -2
- package/dist/components/Snackbar/Snackbar.styles.d.ts +28 -0
- package/dist/components/Snackbar/Snackbar.styles.js +10 -29
- package/dist/components/SpanButton/SpanButton.styles.js +2 -2
- package/dist/components/StatusDot/StatusDot.d.ts +29 -0
- package/dist/components/StatusDot/StatusDot.js +17 -23
- package/dist/components/StatusDot/StatusDot.styles.d.ts +20 -0
- package/dist/components/StatusTag/StatusTag.d.ts +35 -0
- package/dist/components/StatusTag/StatusTag.js +9 -38
- package/dist/components/StatusTag/StatusTag.styles.d.ts +28 -0
- package/dist/components/StatusTag/StatusTag.styles.js +6 -6
- package/dist/components/StepController/StepController.styles.d.ts +23 -0
- package/dist/components/StepController/StepController.styles.js +12 -14
- package/dist/components/StokrLoader/StokrLoader.d.ts +9 -1
- package/dist/components/StokrLoader/StokrLoader.js +50 -19
- package/dist/components/SvgIcons/AdminBadgeSvg.js +1 -0
- package/dist/components/SvgIcons/CapsLockSvg.js +1 -0
- package/dist/components/SvgIcons/LogoSvg.js +1 -11
- package/dist/components/SvgIcons/RefreshSvg.js +1 -0
- package/dist/components/SvgIcons/VerifiedBadge.js +2 -4
- package/dist/components/Switch/Switch.styles.d.ts +20 -0
- package/dist/components/Switch/Switch.styles.js +10 -11
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/TabsNav/TabsNav.styles.d.ts +25 -0
- package/dist/components/TabsNav/TabsNav.styles.js +8 -9
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +11 -27
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.d.ts +57 -0
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +25 -107
- package/dist/components/Text/Text.styles.d.ts +17 -1
- package/dist/components/Text/Text.styles.js +50 -25
- package/dist/components/TextLink/TextLink.styles.d.ts +16 -0
- package/dist/components/TextLink/TextLink.styles.js +4 -4
- package/dist/components/Timeline/Timeline.styles.d.ts +41 -0
- package/dist/components/Timeline/Timeline.styles.js +14 -15
- package/dist/components/Timeline/TimelineStep.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.styles.js +2 -3
- package/dist/components/breakdown/Breakdown.d.ts +18 -0
- package/dist/components/breakdown/Breakdown.js +7 -7
- package/dist/components/logo/Logo.js +1 -1
- package/dist/design-system/css/base.css +74 -0
- package/dist/design-system/css/index.css +5 -0
- package/dist/design-system/fonts/Inter-LICENSE.txt +93 -0
- package/dist/design-system/fonts/inter-bitcoin-sign.woff2 +0 -0
- package/dist/design-system/fonts/inter-latin-ext.woff2 +0 -0
- package/dist/design-system/fonts/inter-latin.woff2 +0 -0
- package/dist/design-system/fonts/open-sans-latin-ext-italic.woff2 +0 -0
- package/dist/design-system/fonts/open-sans-latin-ext.woff2 +0 -0
- package/dist/design-system/fonts/open-sans-latin-italic.woff2 +0 -0
- package/dist/design-system/fonts/open-sans-latin.woff2 +0 -0
- package/dist/design-system/generated/fonts.css +296 -0
- package/dist/design-system/generated/text-classes.css +198 -0
- package/dist/design-system/generated/text-styles.d.ts +26 -0
- package/dist/design-system/generated/text-styles.js +179 -0
- package/dist/design-system/generated/tokens.css +429 -0
- package/dist/design-system/index.d.ts +9 -0
- package/dist/design-system/stories/foundations.d.ts +31 -0
- package/dist/design-system/stories/foundationsData.d.ts +18 -0
- package/dist/design-system/styled/breakpoint.d.ts +43 -0
- package/dist/design-system/styled/breakpoint.js +27 -0
- package/dist/design-system/styled/build-theme.d.ts +21 -0
- package/dist/design-system/styled/build-theme.js +27 -0
- package/dist/design-system/styled/text.d.ts +3 -0
- package/dist/design-system/styled/text.js +5 -0
- package/dist/design-system/styled/theme.d.ts +6 -0
- package/dist/design-system/tokens/breakpoints.d.ts +17 -0
- package/dist/design-system/tokens/breakpoints.js +16 -0
- package/dist/design-system/tokens/colors.d.ts +92 -0
- package/dist/design-system/tokens/colors.js +98 -0
- package/dist/design-system/tokens/fonts.d.ts +32 -0
- package/dist/design-system/tokens/fonts.js +49 -0
- package/dist/design-system/tokens/index.d.ts +6 -0
- package/dist/design-system/tokens/layout.d.ts +71 -0
- package/dist/design-system/tokens/layout.js +40 -0
- package/dist/design-system/tokens/semantic.d.ts +272 -0
- package/dist/design-system/tokens/semantic.js +76 -0
- package/dist/design-system/tokens/typography.d.ts +38 -0
- package/dist/design-system/tokens/typography.js +120 -0
- package/dist/hooks/useMediaQuery.d.ts +1 -1
- package/dist/index.d.ts +117 -120
- package/dist/index.js +50 -60
- package/dist/static/images/globe.svg.js +5 -0
- package/dist/static/images/numbers/number_eight.svg +1 -1
- package/dist/static/images/numbers/number_eight.svg.js +1 -1
- package/dist/static/images/numbers/number_five.svg +2 -2
- package/dist/static/images/numbers/number_five.svg.js +1 -1
- package/dist/static/images/numbers/number_four.svg +1 -1
- package/dist/static/images/numbers/number_four.svg.js +1 -1
- package/dist/static/images/numbers/number_nine.svg +2 -2
- package/dist/static/images/numbers/number_nine.svg.js +1 -1
- package/dist/static/images/numbers/number_one.svg +2 -2
- package/dist/static/images/numbers/number_one.svg.js +1 -1
- package/dist/static/images/numbers/number_seven.svg +2 -2
- package/dist/static/images/numbers/number_seven.svg.js +1 -1
- package/dist/static/images/numbers/number_six.svg +2 -2
- package/dist/static/images/numbers/number_six.svg.js +1 -1
- package/dist/static/images/numbers/number_three.svg +1 -1
- package/dist/static/images/numbers/number_three.svg.js +1 -1
- package/dist/static/images/numbers/number_two.svg +2 -2
- package/dist/static/images/numbers/number_two.svg.js +1 -1
- package/dist/static/images/numbers/number_zero.svg +1 -1
- package/dist/static/images/numbers/number_zero.svg.js +1 -1
- package/dist/static/images/trash.svg +17 -0
- package/dist/static/images/trash.svg.js +5 -0
- package/dist/utils/customHooks.d.ts +4 -4
- package/dist/utils/customHooks.js +6 -6
- package/package.json +16 -11
- package/dist/components/AddressItem/AddressItem.d.ts +0 -38
- package/dist/components/AddressItem/AddressItem.js +0 -51
- package/dist/components/AddressItem/AddressItem.styles.d.ts +0 -31
- package/dist/components/AddressItem/AddressItem.styles.js +0 -73
- package/dist/components/Country/FlagFor.d.ts +0 -9
- package/dist/components/Country/FlagFor.js +0 -25
- package/dist/components/Country/flagLoaders.d.ts +0 -5
- package/dist/components/Country/flagLoaders.js +0 -270
- package/dist/components/Country/flagStore.d.ts +0 -6
- package/dist/components/Country/flagStore.js +0 -29
- package/dist/components/FAQ/FAQ.d.ts +0 -29
- package/dist/components/Input/Select.d.ts +0 -57
- package/dist/components/Input/Select.styles.d.ts +0 -89
- package/dist/components/PanelCard/PanelCard.d.ts +0 -51
- package/dist/components/PanelCard/PanelCard.js +0 -35
- package/dist/components/PanelCard/PanelCard.styles.d.ts +0 -29
- package/dist/components/PanelCard/PanelCard.styles.js +0 -87
- package/dist/components/StepSidebar/MobileStepProgress.d.ts +0 -12
- package/dist/components/StepSidebar/MobileStepProgress.js +0 -14
- package/dist/components/StepSidebar/MobileStepProgress.styles.d.ts +0 -15
- package/dist/components/StepSidebar/MobileStepProgress.styles.js +0 -42
- package/dist/components/StepSidebar/StepProgress.d.ts +0 -14
- package/dist/components/StepSidebar/StepProgress.js +0 -14
- package/dist/components/StepSidebar/StepProgress.styles.d.ts +0 -30
- package/dist/components/StepSidebar/StepProgress.styles.js +0 -103
- package/dist/components/StepSidebar/StepSidebar.d.ts +0 -36
- package/dist/components/StepSidebar/StepSidebar.js +0 -58
- package/dist/components/StepSidebar/StepSidebar.styles.d.ts +0 -54
- package/dist/components/StepSidebar/StepSidebar.styles.js +0 -175
- package/dist/static/images/address-refreshing.gif.js +0 -4
- package/dist/static/images/process-waiting.gif.js +0 -4
- package/dist/styles/borderedField.d.ts +0 -11
- package/dist/styles/borderedField.js +0 -56
- package/dist/styles/colors.d.ts +0 -68
- package/dist/styles/colors.js +0 -69
- package/dist/styles/elevation.d.ts +0 -13
- package/dist/styles/elevation.js +0 -15
- package/dist/styles/global.js +0 -63
- package/dist/styles/rwd.d.ts +0 -55
- package/dist/styles/rwd.js +0 -79
- package/dist/styles/spacing.d.ts +0 -36
- package/dist/styles/spacing.js +0 -38
- package/dist/styles/theme.d.ts +0 -92
- package/dist/styles/theme.js +0 -36
- package/dist/styles/typography.d.ts +0 -42
- package/dist/styles/typography.js +0 -56
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import rwd from "../../styles/rwd.js";
|
|
3
2
|
import { glyph, withGlyph } from "../MaterialIcon/glyph.js";
|
|
4
|
-
import
|
|
3
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
5
4
|
const Container = styled.div`
|
|
6
5
|
position: relative;
|
|
7
6
|
`;
|
|
@@ -60,8 +59,8 @@ const Status = styled.span`
|
|
|
60
59
|
display: inline-block;
|
|
61
60
|
vertical-align: top;
|
|
62
61
|
padding: 0px 16px;
|
|
63
|
-
background-color:
|
|
64
|
-
color:
|
|
62
|
+
background-color: var(--stokr-action-primary-bg);
|
|
63
|
+
color: var(--stokr-action-primary-text);
|
|
65
64
|
font-weight: 600;
|
|
66
65
|
font-size: 8px;
|
|
67
66
|
letter-spacing: 1.78px;
|
|
@@ -89,7 +88,7 @@ const Address = styled.span.attrs((props) => ({
|
|
|
89
88
|
font-size: 11px;
|
|
90
89
|
line-height: 16px;
|
|
91
90
|
margin-right: 6px;
|
|
92
|
-
color:
|
|
91
|
+
color: var(--stokr-text-primary);
|
|
93
92
|
transition: color 0.2s;
|
|
94
93
|
cursor: pointer;
|
|
95
94
|
|
|
@@ -98,7 +97,7 @@ const Address = styled.span.attrs((props) => ({
|
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
&:hover {
|
|
101
|
-
color:
|
|
100
|
+
color: var(--stokr-action-accent-bg);
|
|
102
101
|
}
|
|
103
102
|
`;
|
|
104
103
|
styled.span`
|
|
@@ -106,14 +105,14 @@ styled.span`
|
|
|
106
105
|
cursor: pointer;
|
|
107
106
|
|
|
108
107
|
&:hover {
|
|
109
|
-
color:
|
|
108
|
+
color: var(--stokr-action-accent-bg);
|
|
110
109
|
}
|
|
111
110
|
`;
|
|
112
111
|
const CopyToClipboardButton = styled.span.attrs({
|
|
113
112
|
children: glyph("content_copy")
|
|
114
113
|
})`
|
|
115
114
|
display: inline-flex;
|
|
116
|
-
color:
|
|
115
|
+
color: var(--stokr-text-primary);
|
|
117
116
|
cursor: pointer;
|
|
118
117
|
height: 1em;
|
|
119
118
|
width: 1em;
|
|
@@ -130,11 +129,11 @@ const InfoBox = styled.div`
|
|
|
130
129
|
float: right;
|
|
131
130
|
width: 40%;
|
|
132
131
|
|
|
133
|
-
|
|
132
|
+
${breakpoint.below.Mobile`
|
|
134
133
|
width: 100%;
|
|
135
134
|
padding-top: 14px;
|
|
136
135
|
text-align: start;
|
|
137
|
-
}
|
|
136
|
+
`}
|
|
138
137
|
`;
|
|
139
138
|
const Value = styled.div.withConfig({
|
|
140
139
|
shouldForwardProp: (props) => !["fontSize", "childMarginLeft"].includes(props)
|
|
@@ -181,7 +180,7 @@ const DataWrapper = styled.div.withConfig({
|
|
|
181
180
|
position: relative;
|
|
182
181
|
padding-right: 24px;
|
|
183
182
|
|
|
184
|
-
${
|
|
183
|
+
${breakpoint.Medium`
|
|
185
184
|
${(props) => props.withOptions && `
|
|
186
185
|
padding-right: 100px;
|
|
187
186
|
|
|
@@ -204,7 +203,7 @@ const CheckMark = styled.div`
|
|
|
204
203
|
top: 50%;
|
|
205
204
|
right: 0;
|
|
206
205
|
margin-top: -7px;
|
|
207
|
-
border: 1px solid
|
|
206
|
+
border: 1px solid var(--stokr-border-default);
|
|
208
207
|
border-radius: 7px;
|
|
209
208
|
background-color: transparent;
|
|
210
209
|
transition:
|
|
@@ -231,7 +230,7 @@ const CheckMark = styled.div`
|
|
|
231
230
|
margin-top: -2px;
|
|
232
231
|
margin-left: -2px;
|
|
233
232
|
border-radius: 2px;
|
|
234
|
-
background-color:
|
|
233
|
+
background-color: var(--stokr-action-accent-bg);
|
|
235
234
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
|
|
236
235
|
}
|
|
237
236
|
`;
|
|
@@ -276,14 +275,14 @@ const Radio = styled.div.withConfig({
|
|
|
276
275
|
}
|
|
277
276
|
|
|
278
277
|
${CheckMark} {
|
|
279
|
-
border-color:
|
|
280
|
-
background-color:
|
|
278
|
+
border-color: var(--stokr-border-subtle) !important;
|
|
279
|
+
background-color: var(--stokr-action-disabled-secondary-bg) !important;
|
|
281
280
|
}
|
|
282
281
|
}
|
|
283
282
|
|
|
284
283
|
&:checked + label {
|
|
285
284
|
&:before {
|
|
286
|
-
background-color:
|
|
285
|
+
background-color: var(--stokr-color-red-500) !important;
|
|
287
286
|
}
|
|
288
287
|
|
|
289
288
|
${CheckMark} {
|
|
@@ -302,11 +301,11 @@ const Radio = styled.div.withConfig({
|
|
|
302
301
|
&:hover + label,
|
|
303
302
|
& + label:hover {
|
|
304
303
|
&:before {
|
|
305
|
-
background-color:
|
|
304
|
+
background-color: var(--stokr-action-secondary-bg-hover);
|
|
306
305
|
}
|
|
307
306
|
|
|
308
307
|
${CheckMark} {
|
|
309
|
-
border-color:
|
|
308
|
+
border-color: var(--stokr-border-focus);
|
|
310
309
|
}
|
|
311
310
|
}
|
|
312
311
|
}
|
|
@@ -315,7 +314,7 @@ const OptionsWrapper = styled.div`
|
|
|
315
314
|
text-align: center;
|
|
316
315
|
margin-right: -24px;
|
|
317
316
|
|
|
318
|
-
${
|
|
317
|
+
${breakpoint.Medium`
|
|
319
318
|
margin-right: 0;
|
|
320
319
|
position: absolute;
|
|
321
320
|
display: block;
|
|
@@ -333,14 +332,14 @@ styled.button`
|
|
|
333
332
|
height: 40px;
|
|
334
333
|
outline: none;
|
|
335
334
|
margin-left: 10px;
|
|
336
|
-
border: 1px solid
|
|
335
|
+
border: 1px solid var(--stokr-border-subtle);
|
|
337
336
|
border-radius: 20px;
|
|
338
|
-
color:
|
|
337
|
+
color: var(--stokr-action-negative-text);
|
|
339
338
|
transition: color 0.2s;
|
|
340
339
|
|
|
341
340
|
&:focus,
|
|
342
341
|
&:hover {
|
|
343
|
-
color:
|
|
342
|
+
color: var(--stokr-action-accent-bg);
|
|
344
343
|
}
|
|
345
344
|
`;
|
|
346
345
|
export {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChangeEventHandler, FocusEventHandler, ReactNode } from 'react';
|
|
2
|
+
export interface RadioWrapOption {
|
|
3
|
+
id: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
9
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
10
|
+
hide?: boolean;
|
|
11
|
+
hideLine?: boolean;
|
|
12
|
+
address?: string;
|
|
13
|
+
handleCheckedAddressRadio?: (id: string) => void;
|
|
14
|
+
handleSelectedCryptoAddress?: (address?: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface RadioWrapProps {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
radio?: RadioWrapOption | null;
|
|
19
|
+
}
|
|
20
|
+
export declare const RadioWrap: ({ children, radio }: RadioWrapProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default RadioWrap;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from "react";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
3
|
import { Radio } from "./CryptoAddress.styles.js";
|
|
5
4
|
const RadioWrap = ({ children, radio = null }) => {
|
|
6
5
|
const handleOnClick = (e) => {
|
|
@@ -27,21 +26,7 @@ const RadioWrap = ({ children, radio = null }) => {
|
|
|
27
26
|
/* @__PURE__ */ jsx("label", { htmlFor: radio.id, children })
|
|
28
27
|
] }) : /* @__PURE__ */ jsx(Fragment, { children });
|
|
29
28
|
};
|
|
30
|
-
RadioWrap.propTypes = {
|
|
31
|
-
children: PropTypes.node.isRequired,
|
|
32
|
-
radio: PropTypes.shape({
|
|
33
|
-
id: PropTypes.string.isRequired,
|
|
34
|
-
name: PropTypes.string,
|
|
35
|
-
value: PropTypes.string,
|
|
36
|
-
checked: PropTypes.bool,
|
|
37
|
-
onChange: PropTypes.func,
|
|
38
|
-
onBlur: PropTypes.func,
|
|
39
|
-
hide: PropTypes.bool,
|
|
40
|
-
hideLine: PropTypes.bool
|
|
41
|
-
})
|
|
42
|
-
};
|
|
43
|
-
var stdin_default = RadioWrap;
|
|
44
29
|
export {
|
|
45
30
|
RadioWrap,
|
|
46
|
-
|
|
31
|
+
RadioWrap as default
|
|
47
32
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
3
|
+
}> & string;
|
|
4
|
+
export declare const Address: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
5
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
6
|
+
}, {
|
|
7
|
+
isHidden?: boolean;
|
|
8
|
+
}>> & string;
|
|
9
|
+
export declare const InfoBoxWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
11
|
+
}, {
|
|
12
|
+
relative?: boolean;
|
|
13
|
+
}>> & string;
|
|
14
|
+
export declare const InfoBox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
15
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
16
|
+
}, {
|
|
17
|
+
refresh?: boolean;
|
|
18
|
+
failed?: boolean;
|
|
19
|
+
}>> & string;
|
|
20
|
+
export declare const Loader: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
21
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
22
|
+
}> & string;
|
|
23
|
+
export declare const FailedIcon: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
24
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
25
|
+
}, "children"> & Partial<Pick<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
26
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
27
|
+
}, "children">>> & string;
|
|
28
|
+
export declare const Text: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
29
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
30
|
+
}> & string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import rwd from "../../styles/rwd.js";
|
|
3
|
-
import loader from "../../static/images/address-refreshing.gif.js";
|
|
4
|
-
import theme from "../../styles/theme.js";
|
|
1
|
+
import styled, { keyframes } from "styled-components";
|
|
5
2
|
import { glyph } from "../MaterialIcon/glyph.js";
|
|
3
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
6
4
|
const Container = styled.div`
|
|
7
5
|
position: relative;
|
|
8
6
|
display: block;
|
|
@@ -52,24 +50,34 @@ const InfoBox = styled.div.withConfig({
|
|
|
52
50
|
max-width: 100%;
|
|
53
51
|
|
|
54
52
|
${(props) => props.refresh && `
|
|
55
|
-
color:
|
|
53
|
+
color: var(--stokr-action-accent-bg);
|
|
56
54
|
`};
|
|
57
55
|
|
|
58
56
|
${(props) => props.failed && `
|
|
59
|
-
color:
|
|
57
|
+
color: var(--stokr-status-error-text);
|
|
60
58
|
`};
|
|
61
59
|
`;
|
|
60
|
+
const spin = keyframes`
|
|
61
|
+
to {
|
|
62
|
+
transform: rotate(360deg);
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
62
65
|
const Loader = styled.div`
|
|
66
|
+
box-sizing: border-box;
|
|
63
67
|
display: inline-block;
|
|
64
68
|
vertical-align: middle;
|
|
65
69
|
width: 40px;
|
|
66
70
|
height: 40px;
|
|
67
71
|
margin: 0 auto;
|
|
68
72
|
margin-right: -40px;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
border: 3px solid currentColor;
|
|
74
|
+
border-right-color: transparent;
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
animation: ${spin} 0.8s linear infinite;
|
|
77
|
+
|
|
78
|
+
@media (prefers-reduced-motion: reduce) {
|
|
79
|
+
animation-duration: 2.4s;
|
|
80
|
+
}
|
|
73
81
|
`;
|
|
74
82
|
const FailedIcon = styled.span.attrs({
|
|
75
83
|
children: glyph("cancel", true)
|
|
@@ -93,7 +101,7 @@ const Text = styled.div`
|
|
|
93
101
|
padding-left: 60px;
|
|
94
102
|
max-width: 100%;
|
|
95
103
|
|
|
96
|
-
${
|
|
104
|
+
${breakpoint.XLarge`
|
|
97
105
|
font-size: 20px;
|
|
98
106
|
`}
|
|
99
107
|
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Breakpoint } from '../../design-system';
|
|
2
|
+
export interface DisplayOnBreakpointProps {
|
|
3
|
+
breakpoint: Breakpoint;
|
|
4
|
+
/** Shown below `breakpoint`, hidden from it up. */
|
|
5
|
+
down?: boolean;
|
|
6
|
+
/** Hidden below `breakpoint`, shown from it up. */
|
|
7
|
+
up?: boolean;
|
|
8
|
+
fullscreen?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const DisplayOnBreakpoint: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
11
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
12
|
+
}, DisplayOnBreakpointProps>> & string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
3
|
+
const DisplayOnBreakpoint = styled.div.withConfig({
|
|
4
|
+
shouldForwardProp: (prop) => !["fullscreen", "down", "up", "breakpoint"].includes(prop)
|
|
5
|
+
})`
|
|
6
|
+
${(props) => props.fullscreen && css`
|
|
7
|
+
height: 100%;
|
|
8
|
+
`}
|
|
9
|
+
|
|
10
|
+
${(props) => props.down && css`
|
|
11
|
+
display: block;
|
|
12
|
+
|
|
13
|
+
${breakpoint[props.breakpoint]`
|
|
14
|
+
display: none;
|
|
15
|
+
`}
|
|
16
|
+
`}
|
|
17
|
+
|
|
18
|
+
${(props) => props.up && css`
|
|
19
|
+
display: none;
|
|
20
|
+
|
|
21
|
+
${breakpoint[props.breakpoint]`
|
|
22
|
+
display: block;
|
|
23
|
+
`}
|
|
24
|
+
`}
|
|
25
|
+
`;
|
|
26
|
+
export {
|
|
27
|
+
DisplayOnBreakpoint
|
|
28
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
3
|
import { Text } from "../Text/Text.styles.js";
|
|
4
|
+
import { useState } from "react";
|
|
4
5
|
import { scrollToElement } from "../../utils/scrollUtils.js";
|
|
5
6
|
import { FaqItems, FaqItem, FaqTitle, FaqDropdownIcon, FaqContent, FaqText } from "./FAQ.styles.js";
|
|
6
7
|
function slugFromTitle(title) {
|
|
@@ -9,17 +10,8 @@ function slugFromTitle(title) {
|
|
|
9
10
|
return raw.toLowerCase().trim().slice(0, 48).replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "");
|
|
10
11
|
}
|
|
11
12
|
const FAQ = (props) => {
|
|
12
|
-
const {
|
|
13
|
-
items,
|
|
14
|
-
noScroll,
|
|
15
|
-
scrollRef,
|
|
16
|
-
modalViewMore,
|
|
17
|
-
withTextStyling,
|
|
18
|
-
dataCyPrefix = "faq",
|
|
19
|
-
variant = "default"
|
|
20
|
-
} = props;
|
|
13
|
+
const { items, noScroll, scrollRef, modalViewMore, withTextStyling, dataCyPrefix = "faq" } = props;
|
|
21
14
|
const [activeIndex, setActiveIndex] = useState(null);
|
|
22
|
-
const bordered = variant === "bordered";
|
|
23
15
|
const onTitleClick = (e, index) => {
|
|
24
16
|
e.persist();
|
|
25
17
|
const newActiveIndex = activeIndex === index ? null : index;
|
|
@@ -27,7 +19,7 @@ const FAQ = (props) => {
|
|
|
27
19
|
if (!noScroll && newActiveIndex !== null) {
|
|
28
20
|
if (scrollRef?.current) {
|
|
29
21
|
setTimeout(() => {
|
|
30
|
-
scrollRef?.current
|
|
22
|
+
scrollRef?.current.scrollToBottom();
|
|
31
23
|
}, 0);
|
|
32
24
|
} else {
|
|
33
25
|
scrollToElement(e.target.parentElement, { offset: 20 });
|
|
@@ -43,10 +35,9 @@ const FAQ = (props) => {
|
|
|
43
35
|
return /* @__PURE__ */ jsx(FaqItems, { "data-cy": `${dataCyPrefix}-accordion`, children: items.map((item, index) => {
|
|
44
36
|
const titleSlug = slugFromTitle(item.title);
|
|
45
37
|
const itemCy = titleSlug ? `${dataCyPrefix}-item-${titleSlug}` : `${dataCyPrefix}-item-${index}`;
|
|
46
|
-
const list = Array.isArray(item.content) ? item.content : null;
|
|
47
38
|
return (
|
|
48
39
|
// eslint-disable-next-line @eslint-react/no-array-index-key -- FAQ order is content-defined
|
|
49
|
-
/* @__PURE__ */ jsxs(FaqItem, { "data-cy": `${itemCy}-wrap`,
|
|
40
|
+
/* @__PURE__ */ jsxs(FaqItem, { "data-cy": `${itemCy}-wrap`, children: [
|
|
50
41
|
/* @__PURE__ */ jsxs(
|
|
51
42
|
FaqTitle,
|
|
52
43
|
{
|
|
@@ -56,21 +47,30 @@ const FAQ = (props) => {
|
|
|
56
47
|
isActive: activeIndex === index,
|
|
57
48
|
onClick: (e) => onTitleClick(e, index),
|
|
58
49
|
modalViewMore,
|
|
59
|
-
$variant: variant,
|
|
60
50
|
children: [
|
|
61
51
|
item.title,
|
|
62
|
-
/* @__PURE__ */ jsx(FaqDropdownIcon, {
|
|
52
|
+
/* @__PURE__ */ jsx(FaqDropdownIcon, {})
|
|
63
53
|
]
|
|
64
54
|
}
|
|
65
55
|
),
|
|
66
|
-
/* @__PURE__ */ jsx(FaqContent, { "data-cy": `${itemCy}-panel`, isOpened: activeIndex === index, children: !
|
|
56
|
+
/* @__PURE__ */ jsx(FaqContent, { "data-cy": `${itemCy}-panel`, isOpened: activeIndex === index, children: !Array.isArray(item.content) ? /* @__PURE__ */ jsx(FaqText, { children: item.content }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
67
57
|
/* @__PURE__ */ jsx("br", {}),
|
|
68
|
-
/* @__PURE__ */ jsx(Text, { style: withTextStyling ? textStyling : {}, children: /* @__PURE__ */ jsx("ul", { children:
|
|
58
|
+
/* @__PURE__ */ jsx(Text, { style: withTextStyling ? textStyling : {}, children: /* @__PURE__ */ jsx("ul", { children: item.content.map((answer) => /* @__PURE__ */ jsx("li", { children: answer }, answer)) }) })
|
|
69
59
|
] }) })
|
|
70
60
|
] }, index)
|
|
71
61
|
);
|
|
72
62
|
}) });
|
|
73
63
|
};
|
|
64
|
+
FAQ.propTypes = {
|
|
65
|
+
items: PropTypes.arrayOf(
|
|
66
|
+
PropTypes.shape({
|
|
67
|
+
title: PropTypes.node.isRequired,
|
|
68
|
+
content: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.node]).isRequired
|
|
69
|
+
})
|
|
70
|
+
).isRequired,
|
|
71
|
+
/** Prefix for data-cy: `{prefix}-accordion`, `{prefix}-item-{slug}-toggle`, etc. */
|
|
72
|
+
dataCyPrefix: PropTypes.string
|
|
73
|
+
};
|
|
74
74
|
export {
|
|
75
75
|
FAQ,
|
|
76
76
|
FaqContent,
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { css } from 'styled-components';
|
|
2
2
|
export declare const FaqItems: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
3
3
|
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
4
4
|
}> & string;
|
|
5
|
-
export declare const FaqDropdownIcon: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<
|
|
5
|
+
export declare const FaqDropdownIcon: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
6
6
|
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
7
|
-
}, {
|
|
8
|
-
$variant?: FieldVariant;
|
|
9
|
-
}>, "children"> & Partial<Pick<import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
7
|
+
}, "children"> & Partial<Pick<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
10
8
|
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
11
|
-
},
|
|
12
|
-
$variant?: FieldVariant;
|
|
13
|
-
}>, "children">>> & string;
|
|
9
|
+
}, "children">>> & string;
|
|
14
10
|
export declare const FaqItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
15
11
|
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
16
12
|
}, {
|
|
17
13
|
center?: boolean;
|
|
18
|
-
customContainerStyle?: string
|
|
19
|
-
$variant?: FieldVariant;
|
|
14
|
+
customContainerStyle?: string | ReturnType<typeof css>;
|
|
20
15
|
}>> & string;
|
|
21
16
|
export declare const FaqTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
22
17
|
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
@@ -27,12 +22,10 @@ export declare const FaqTitle: import('styled-components/dist/types').IStyledCom
|
|
|
27
22
|
hideIcon?: boolean;
|
|
28
23
|
isActive?: boolean;
|
|
29
24
|
modalViewMore?: boolean;
|
|
30
|
-
$variant?: FieldVariant;
|
|
31
25
|
}>> & string;
|
|
32
26
|
export declare const FaqContent: any;
|
|
33
27
|
export declare const FaqText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
34
28
|
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
35
29
|
}, {
|
|
36
30
|
largeSpacing?: boolean;
|
|
37
|
-
$variant?: FieldVariant;
|
|
38
31
|
}>> & string;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import styled
|
|
1
|
+
import styled from "styled-components";
|
|
2
2
|
import { Collapse } from "react-collapse";
|
|
3
|
-
import theme from "../../styles/theme.js";
|
|
4
|
-
import { colors } from "../../styles/colors.js";
|
|
5
|
-
import { BORDERED_BORDER } from "../../styles/borderedField.js";
|
|
6
|
-
import { space, radius } from "../../styles/spacing.js";
|
|
7
|
-
import { elevation } from "../../styles/elevation.js";
|
|
8
|
-
import { typography } from "../../styles/typography.js";
|
|
9
3
|
import { glyph } from "../MaterialIcon/glyph.js";
|
|
10
4
|
const FaqItems = styled.div`
|
|
11
5
|
position: relative;
|
|
@@ -25,15 +19,6 @@ const FaqDropdownIcon = styled.span.attrs({
|
|
|
25
19
|
margin-top: -10px;
|
|
26
20
|
transform: rotate(0);
|
|
27
21
|
transition: 0.3s transform;
|
|
28
|
-
|
|
29
|
-
${(props) => props.$variant === "bordered" && css`
|
|
30
|
-
width: 16px;
|
|
31
|
-
height: 16px;
|
|
32
|
-
font-size: 16px;
|
|
33
|
-
top: 22px;
|
|
34
|
-
right: ${space[5]};
|
|
35
|
-
margin-top: 0;
|
|
36
|
-
`}
|
|
37
22
|
`;
|
|
38
23
|
const FaqItem = styled.div.withConfig({
|
|
39
24
|
shouldForwardProp: (props) => !["center", "customContainerStyle"].includes(props)
|
|
@@ -42,22 +27,6 @@ const FaqItem = styled.div.withConfig({
|
|
|
42
27
|
margin-top: 30px;
|
|
43
28
|
}
|
|
44
29
|
|
|
45
|
-
${(props) => props.$variant === "bordered" && css`
|
|
46
|
-
padding: 0;
|
|
47
|
-
border: ${BORDERED_BORDER};
|
|
48
|
-
border-radius: ${radius.lg};
|
|
49
|
-
background: ${colors.white};
|
|
50
|
-
box-shadow: ${elevation.xs};
|
|
51
|
-
|
|
52
|
-
.ReactCollapse--collapse {
|
|
53
|
-
transition: height 0.3s ease;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
& + & {
|
|
57
|
-
margin-top: ${space[2]};
|
|
58
|
-
}
|
|
59
|
-
`}
|
|
60
|
-
|
|
61
30
|
${(props) => props.center && `
|
|
62
31
|
text-align:center;
|
|
63
32
|
`}
|
|
@@ -70,12 +39,12 @@ const FaqTitle = styled.button.withConfig({
|
|
|
70
39
|
display: block;
|
|
71
40
|
width: 100%;
|
|
72
41
|
position: relative;
|
|
73
|
-
font-family:
|
|
42
|
+
font-family: var(--stokr-font-family-base);
|
|
74
43
|
font-weight: 600;
|
|
75
44
|
font-size: 16px;
|
|
76
45
|
line-height: 24px;
|
|
77
46
|
letter-spacing: 0.4px;
|
|
78
|
-
color:
|
|
47
|
+
color: var(--stokr-text-primary);
|
|
79
48
|
padding: 0;
|
|
80
49
|
margin: 0;
|
|
81
50
|
outline: 0;
|
|
@@ -89,19 +58,6 @@ const FaqTitle = styled.button.withConfig({
|
|
|
89
58
|
color: inherit;
|
|
90
59
|
}
|
|
91
60
|
|
|
92
|
-
${(props) => props.$variant === "bordered" && css`
|
|
93
|
-
${typography.bodyMdCallout}
|
|
94
|
-
padding: ${space[5]} 52px ${space[5]} ${space[5]};
|
|
95
|
-
border-radius: ${radius.lg};
|
|
96
|
-
cursor: pointer;
|
|
97
|
-
transition: padding-bottom 0.3s ease;
|
|
98
|
-
${props.isActive && `padding-bottom: ${space[3]};`}
|
|
99
|
-
|
|
100
|
-
&:hover {
|
|
101
|
-
color: ${theme.cBlack};
|
|
102
|
-
}
|
|
103
|
-
`}
|
|
104
|
-
|
|
105
61
|
${(props) => props.uppercase && `
|
|
106
62
|
text-transform:uppercase;
|
|
107
63
|
font-weight:700;
|
|
@@ -164,20 +120,6 @@ const FaqText = styled.div.withConfig({
|
|
|
164
120
|
padding-bottom: 30px;
|
|
165
121
|
|
|
166
122
|
`}
|
|
167
|
-
|
|
168
|
-
${(props) => props.$variant === "bordered" && css`
|
|
169
|
-
padding: 0 ${space[5]} ${space[5]};
|
|
170
|
-
font-size: 14px;
|
|
171
|
-
line-height: 20px;
|
|
172
|
-
font-weight: 400;
|
|
173
|
-
color: ${theme.cBlack};
|
|
174
|
-
|
|
175
|
-
ul {
|
|
176
|
-
margin: 0;
|
|
177
|
-
padding-left: 20px;
|
|
178
|
-
list-style: disc;
|
|
179
|
-
}
|
|
180
|
-
`}
|
|
181
123
|
`;
|
|
182
124
|
export {
|
|
183
125
|
FaqContent,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const FormContainer: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<Omit<import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & import('react').RefAttributes<HTMLFormElement>, "style"> & {
|
|
2
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
3
|
+
}> & string & Omit<import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & import('react').RefAttributes<HTMLFormElement>>, keyof import('react').Component<any, {}, any>>;
|
|
4
|
+
export declare const FormField: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
5
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
6
|
+
}> & string;
|
|
7
|
+
export declare const FormInfo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
8
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
9
|
+
}, {
|
|
10
|
+
styleID?: boolean;
|
|
11
|
+
center?: boolean;
|
|
12
|
+
marginTop?: boolean;
|
|
13
|
+
marginBottom?: boolean;
|
|
14
|
+
}>> & string;
|
|
15
|
+
export declare const FormError: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
16
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
17
|
+
}, {
|
|
18
|
+
show?: boolean;
|
|
19
|
+
styleSUF?: boolean;
|
|
20
|
+
withMarginLeft?: boolean;
|
|
21
|
+
withTopSpacing?: boolean;
|
|
22
|
+
}>> & string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { Form } from "formik";
|
|
3
|
-
import
|
|
4
|
-
import theme from "../../styles/theme.js";
|
|
3
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
5
4
|
const FormContainer = styled(Form)`
|
|
6
5
|
display: flex;
|
|
7
6
|
flex-direction: column;
|
|
@@ -13,14 +12,14 @@ const FormField = styled.div`
|
|
|
13
12
|
const FormInfo = styled.div.withConfig({
|
|
14
13
|
shouldForwardProp: (props) => !["styledId", "center", "marginTop", "marginBottom"].includes(props)
|
|
15
14
|
})`
|
|
16
|
-
font-family:
|
|
15
|
+
font-family: var(--stokr-font-family-base);
|
|
17
16
|
font-weight: ${(props) => props.styleID ? `400` : `300`};
|
|
18
17
|
// All font-weight: 300;
|
|
19
18
|
// ID font-weight: 400;
|
|
20
19
|
font-size: 9px;
|
|
21
20
|
line-height: 1.78em;
|
|
22
21
|
letter-spacing: 0.4px;
|
|
23
|
-
color:
|
|
22
|
+
color: var(--stokr-text-primary);
|
|
24
23
|
opacity: ${(props) => props.styleID ? `1` : `0.5`};
|
|
25
24
|
// All opacity: 0.5;
|
|
26
25
|
// ID opacity: 1;
|
|
@@ -28,7 +27,7 @@ const FormInfo = styled.div.withConfig({
|
|
|
28
27
|
${(props) => props.marginTop && "margin-top: 18px;"}
|
|
29
28
|
// from ID:
|
|
30
29
|
${(props) => props.marginBottom && "margin-bottom: 18px;"}
|
|
31
|
-
${
|
|
30
|
+
${breakpoint.Large`
|
|
32
31
|
font-size: 12px;
|
|
33
32
|
`}
|
|
34
33
|
|
|
@@ -37,7 +36,7 @@ const FormInfo = styled.div.withConfig({
|
|
|
37
36
|
transition: color 0.2s;
|
|
38
37
|
|
|
39
38
|
&:hover {
|
|
40
|
-
color:
|
|
39
|
+
color: var(--stokr-action-accent-bg);
|
|
41
40
|
}
|
|
42
41
|
}
|
|
43
42
|
`;
|
|
@@ -45,7 +44,7 @@ const FormError = styled.div.withConfig({
|
|
|
45
44
|
shouldForwardProp: (props) => !["show", "styleSuf", "withMarginLeft", "withTopSpacing"].includes(props)
|
|
46
45
|
})`
|
|
47
46
|
display: none;
|
|
48
|
-
font-family:
|
|
47
|
+
font-family: var(--stokr-font-family-base);
|
|
49
48
|
font-weight: 300;
|
|
50
49
|
font-size: 11px;
|
|
51
50
|
line-height: 12px;
|
|
@@ -57,7 +56,7 @@ const FormError = styled.div.withConfig({
|
|
|
57
56
|
// ID, IIS & VD top: 2px;
|
|
58
57
|
margin-bottom: -12px;
|
|
59
58
|
letter-spacing: 0.4px;
|
|
60
|
-
color:
|
|
59
|
+
color: var(--stokr-status-error-text);
|
|
61
60
|
|
|
62
61
|
${(props) => props.show && "display: block;"}
|
|
63
62
|
//from SUF
|