@stokr/components-library 4.2.6 → 5.0.1
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/AddressItem/AddressItem.styles.js +12 -14
- 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.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.styles.js +20 -20
- 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 +6 -6
- 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.styles.d.ts +2 -1
- package/dist/components/FAQ/FAQ.styles.js +15 -19
- 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.styles.d.ts +24 -0
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +5 -6
- package/dist/components/InfoBox/InfoBox.d.ts +22 -0
- package/dist/components/InfoBox/InfoBox.js +26 -65
- 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.js +1 -0
- package/dist/components/Input/Input.styles.d.ts +1 -0
- package/dist/components/Input/Input.styles.js +27 -24
- 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 +91 -25
- package/dist/components/Input/Select.styles.d.ts +2 -2
- package/dist/components/Input/Select.styles.js +24 -26
- 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/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/PanelCard/PanelCard.styles.js +24 -27
- 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 +24 -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/StepSidebar/MobileStepProgress.styles.js +4 -5
- package/dist/components/StepSidebar/StepProgress.styles.js +29 -26
- package/dist/components/StepSidebar/StepSidebar.js +1 -1
- package/dist/components/StepSidebar/StepSidebar.styles.d.ts +1 -0
- package/dist/components/StepSidebar/StepSidebar.styles.js +30 -31
- package/dist/components/StokrLoader/StokrLoader.d.ts +25 -3
- package/dist/components/StokrLoader/StokrLoader.js +171 -26
- 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 +1 -2
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.d.ts +74 -0
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +31 -35
- 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 +115 -53
- package/dist/index.js +48 -43
- 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/styles/borderedField.d.ts +1 -1
- package/dist/styles/borderedField.js +15 -18
- package/dist/utils/customHooks.d.ts +4 -4
- package/dist/utils/customHooks.js +6 -6
- package/package.json +16 -11
- package/dist/static/images/address-refreshing.gif.js +0 -4
- package/dist/static/images/process-waiting.gif.js +0 -4
- 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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { StatusTagVariant } from './StatusTag';
|
|
2
|
+
interface StatusTagColorProps {
|
|
3
|
+
colorActive?: boolean;
|
|
4
|
+
hoverColor?: string;
|
|
5
|
+
disableHoverColor?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const StatusTagContainer: 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
|
+
hasClick?: boolean;
|
|
11
|
+
}>> & string;
|
|
12
|
+
export declare const StatusTagWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
13
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
14
|
+
}, {
|
|
15
|
+
minWidth?: string;
|
|
16
|
+
center?: boolean;
|
|
17
|
+
$variant?: StatusTagVariant;
|
|
18
|
+
}>> & string;
|
|
19
|
+
export declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
20
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
21
|
+
}, StatusTagColorProps & {
|
|
22
|
+
iconColor?: string;
|
|
23
|
+
useStroke?: boolean;
|
|
24
|
+
}>> & string;
|
|
25
|
+
export declare const StatusText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
26
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
27
|
+
}, StatusTagColorProps>> & string;
|
|
28
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import { colors } from "../../styles/colors.js";
|
|
3
2
|
const StatusTagContainer = styled.div.withConfig({
|
|
4
3
|
shouldForwardProp: (props) => !["hasClick"].includes(props)
|
|
5
4
|
})`
|
|
@@ -12,14 +11,15 @@ const StatusTagContainer = styled.div.withConfig({
|
|
|
12
11
|
}
|
|
13
12
|
`;
|
|
14
13
|
const StatusTagWrapper = styled.div.withConfig({
|
|
15
|
-
shouldForwardProp: (props) => !["minWidth", "center"].includes(props)
|
|
14
|
+
shouldForwardProp: (props) => !["minWidth", "center", "$variant"].includes(props)
|
|
16
15
|
})`
|
|
17
16
|
display: flex;
|
|
18
17
|
align-items: center;
|
|
19
18
|
gap: 6px;
|
|
20
19
|
padding: 5px 8px;
|
|
21
|
-
background-color: transparent;
|
|
22
|
-
|
|
20
|
+
background-color: ${(props) => props.$variant ? `var(--stokr-tag-${props.$variant}-bg)` : "transparent"};
|
|
21
|
+
color: ${(props) => props.$variant ? `var(--stokr-tag-${props.$variant}-text)` : "var(--stokr-text-primary)"};
|
|
22
|
+
border: 1px solid ${(props) => props.$variant ? "transparent" : "var(--stokr-border-subtle)"};
|
|
23
23
|
border-radius: 6px;
|
|
24
24
|
white-space: nowrap;
|
|
25
25
|
min-width: ${(props) => props.minWidth || "auto"};
|
|
@@ -34,7 +34,7 @@ const IconWrapper = styled.div.withConfig({
|
|
|
34
34
|
flex-shrink: 0;
|
|
35
35
|
width: 12px;
|
|
36
36
|
height: 12px;
|
|
37
|
-
color: ${(props) => props.colorActive && props.hoverColor ? props.hoverColor : props.iconColor ||
|
|
37
|
+
color: ${(props) => props.colorActive && props.hoverColor ? props.hoverColor : props.iconColor || "var(--stokr-text-tertiary)"};
|
|
38
38
|
transition: color 0.2s ease;
|
|
39
39
|
|
|
40
40
|
svg {
|
|
@@ -69,7 +69,7 @@ const StatusText = styled.span.withConfig({
|
|
|
69
69
|
font-size: 12px;
|
|
70
70
|
font-weight: 600;
|
|
71
71
|
line-height: 18px;
|
|
72
|
-
color: ${(props) => props.colorActive && props.hoverColor ? props.hoverColor :
|
|
72
|
+
color: ${(props) => props.colorActive && props.hoverColor ? props.hoverColor : "inherit"};
|
|
73
73
|
letter-spacing: 0.6px;
|
|
74
74
|
transition: color 0.2s ease;
|
|
75
75
|
|
|
@@ -0,0 +1,23 @@
|
|
|
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 Wrap: 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 Items: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
8
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
9
|
+
}> & string;
|
|
10
|
+
export declare const Item: 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
|
+
}, {
|
|
13
|
+
isDone?: boolean;
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
}>> & string;
|
|
16
|
+
export declare const StepsProgressContainer: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
17
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
18
|
+
}> & string;
|
|
19
|
+
export declare const StepContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
20
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
21
|
+
}, {
|
|
22
|
+
heightLimited?: boolean;
|
|
23
|
+
}>> & string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import
|
|
3
|
-
import theme from "../../styles/theme.js";
|
|
4
|
-
import { colors } from "../../styles/colors.js";
|
|
2
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
5
3
|
const Container = styled.div`
|
|
6
4
|
display: block;
|
|
7
5
|
width: 100%;
|
|
@@ -21,7 +19,7 @@ const Items = styled.div`
|
|
|
21
19
|
margin: 0 -6px;
|
|
22
20
|
text-align: center;
|
|
23
21
|
|
|
24
|
-
${
|
|
22
|
+
${breakpoint.Medium`
|
|
25
23
|
display: block;
|
|
26
24
|
`}
|
|
27
25
|
`;
|
|
@@ -49,7 +47,7 @@ const Item = styled.div.withConfig({
|
|
|
49
47
|
left: 0;
|
|
50
48
|
border-radius: 3px;
|
|
51
49
|
box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.05);
|
|
52
|
-
background-color:
|
|
50
|
+
background-color: var(--stokr-border-subtle);
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
&:after {
|
|
@@ -71,30 +69,30 @@ const Item = styled.div.withConfig({
|
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
&:hover:after {
|
|
74
|
-
background-color:
|
|
72
|
+
background-color: var(--stokr-border-strong);
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
${(props) => props.isDone && `
|
|
78
76
|
&:after {
|
|
79
|
-
background-color:
|
|
77
|
+
background-color: var(--stokr-status-success-icon);
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
&:hover:after {
|
|
83
|
-
background-color:
|
|
81
|
+
background-color: var(--stokr-border-strong);
|
|
84
82
|
}
|
|
85
83
|
`}
|
|
86
84
|
|
|
87
85
|
${(props) => props.isActive && `
|
|
88
86
|
&:after {
|
|
89
|
-
background-color:
|
|
87
|
+
background-color: var(--stokr-text-tertiary);
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
&:hover:after {
|
|
93
|
-
background-color:
|
|
91
|
+
background-color: var(--stokr-border-strong);
|
|
94
92
|
}
|
|
95
93
|
`}
|
|
96
94
|
|
|
97
|
-
${
|
|
95
|
+
${breakpoint.Medium`
|
|
98
96
|
width: 32px;
|
|
99
97
|
`}
|
|
100
98
|
`;
|
|
@@ -103,9 +101,9 @@ const StepsProgressContainer = styled.div`
|
|
|
103
101
|
width: 100%;
|
|
104
102
|
height: 40px;
|
|
105
103
|
padding: 4px 0;
|
|
106
|
-
box-shadow: 0 1px 0 0
|
|
104
|
+
box-shadow: 0 1px 0 0 var(--stokr-border-subtle);
|
|
107
105
|
|
|
108
|
-
${
|
|
106
|
+
${breakpoint.Medium`
|
|
109
107
|
height: 56px;
|
|
110
108
|
padding: 12px 0;
|
|
111
109
|
`}
|
|
@@ -119,7 +117,7 @@ const StepContainer = styled.div.withConfig({
|
|
|
119
117
|
position: relative;
|
|
120
118
|
overflow: hidden;
|
|
121
119
|
|
|
122
|
-
${
|
|
120
|
+
${breakpoint.Medium`
|
|
123
121
|
${(props) => props.heightLimited && `
|
|
124
122
|
height: 80vh;
|
|
125
123
|
`}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import { colors } from "../../styles/colors.js";
|
|
3
2
|
const SEGMENT_COLOR = {
|
|
4
|
-
done: "
|
|
5
|
-
active:
|
|
6
|
-
upcoming: "
|
|
3
|
+
done: "var(--stokr-action-accent-bg)",
|
|
4
|
+
active: "var(--stokr-text-primary)",
|
|
5
|
+
upcoming: "var(--stokr-border-default)"
|
|
7
6
|
};
|
|
8
7
|
const Strip = styled.div`
|
|
9
8
|
display: flex;
|
|
@@ -29,7 +28,7 @@ const Caption = styled.p`
|
|
|
29
28
|
font-weight: 600;
|
|
30
29
|
letter-spacing: 1.2px;
|
|
31
30
|
text-transform: uppercase;
|
|
32
|
-
color:
|
|
31
|
+
color: var(--stokr-text-secondary);
|
|
33
32
|
white-space: nowrap;
|
|
34
33
|
overflow: hidden;
|
|
35
34
|
text-overflow: ellipsis;
|
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { typography } from "../../styles/typography.js";
|
|
2
|
+
import { text } from "../../design-system/styled/text.js";
|
|
3
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
5
4
|
const MARKER_SIZE = 28;
|
|
6
5
|
const LINE_GAP = 4;
|
|
7
|
-
const DARK = "#0a0a0a";
|
|
8
6
|
const MARKER_BG = {
|
|
9
7
|
upcoming: "transparent",
|
|
10
|
-
active:
|
|
11
|
-
done:
|
|
8
|
+
active: "var(--stokr-action-primary-bg)",
|
|
9
|
+
done: "var(--stokr-action-accent-bg)"
|
|
12
10
|
};
|
|
13
11
|
const MARKER_BORDER = {
|
|
14
|
-
upcoming:
|
|
15
|
-
active:
|
|
16
|
-
done:
|
|
12
|
+
upcoming: "var(--stokr-text-secondary)",
|
|
13
|
+
active: "var(--stokr-action-primary-bg)",
|
|
14
|
+
done: "var(--stokr-action-accent-bg)"
|
|
15
|
+
};
|
|
16
|
+
const MARKER_TEXT = {
|
|
17
|
+
upcoming: "var(--stokr-text-secondary)",
|
|
18
|
+
active: "var(--stokr-action-primary-text)",
|
|
19
|
+
done: "var(--stokr-action-accent-text)"
|
|
17
20
|
};
|
|
18
|
-
const MARKER_TEXT = { upcoming: colors.grey2, active: DARK, done: DARK };
|
|
19
21
|
const TITLE_COLOR = {
|
|
20
|
-
upcoming:
|
|
21
|
-
active:
|
|
22
|
-
done:
|
|
22
|
+
upcoming: "var(--stokr-text-secondary)",
|
|
23
|
+
active: "var(--stokr-text-primary)",
|
|
24
|
+
done: "var(--stokr-action-accent-bg)"
|
|
23
25
|
};
|
|
24
26
|
const SUBTITLE_COLOR = {
|
|
25
|
-
upcoming:
|
|
26
|
-
active:
|
|
27
|
-
done: "
|
|
27
|
+
upcoming: "var(--stokr-text-secondary)",
|
|
28
|
+
active: "var(--stokr-text-body)",
|
|
29
|
+
done: "var(--stokr-text-secondary)"
|
|
28
30
|
};
|
|
29
31
|
const LINE_COLOR = {
|
|
30
|
-
upcoming:
|
|
31
|
-
active:
|
|
32
|
-
done:
|
|
32
|
+
upcoming: "var(--stokr-text-secondary)",
|
|
33
|
+
active: "var(--stokr-text-body)",
|
|
34
|
+
done: "var(--stokr-status-success-text)"
|
|
33
35
|
};
|
|
34
36
|
const List = styled.ol`
|
|
35
37
|
display: flex;
|
|
@@ -58,7 +60,8 @@ const Line = styled.span`
|
|
|
58
60
|
background-color: ${({ $status }) => LINE_COLOR[$status]};
|
|
59
61
|
`;
|
|
60
62
|
const Marker = styled.span`
|
|
61
|
-
${
|
|
63
|
+
${text("caption")}
|
|
64
|
+
font-weight: 600;
|
|
62
65
|
z-index: 1;
|
|
63
66
|
flex: 0 0 ${MARKER_SIZE}px;
|
|
64
67
|
width: ${MARKER_SIZE}px;
|
|
@@ -75,22 +78,22 @@ const ItemText = styled.div`
|
|
|
75
78
|
padding-top: 4px;
|
|
76
79
|
`;
|
|
77
80
|
const ItemTitle = styled.p`
|
|
78
|
-
${
|
|
81
|
+
${text("subtitleS")}
|
|
79
82
|
margin: 0;
|
|
80
83
|
color: ${({ $status }) => TITLE_COLOR[$status]};
|
|
81
84
|
|
|
82
|
-
${
|
|
85
|
+
${breakpoint.XLarge`
|
|
83
86
|
font-size: 16px;
|
|
84
|
-
}
|
|
87
|
+
`}
|
|
85
88
|
`;
|
|
86
89
|
const ItemSubtitle = styled.p`
|
|
87
|
-
${
|
|
90
|
+
${text("caption")}
|
|
88
91
|
margin: 4px 0 0;
|
|
89
92
|
color: ${({ $status }) => SUBTITLE_COLOR[$status]};
|
|
90
93
|
|
|
91
|
-
${
|
|
94
|
+
${breakpoint.XLarge`
|
|
92
95
|
font-size: 13px;
|
|
93
|
-
}
|
|
96
|
+
`}
|
|
94
97
|
`;
|
|
95
98
|
export {
|
|
96
99
|
Item,
|
|
@@ -16,7 +16,7 @@ const StepSidebar = ({
|
|
|
16
16
|
className
|
|
17
17
|
}) => {
|
|
18
18
|
const logo = (Img, suffix) => onLogoClick ? /* @__PURE__ */ jsx(LogoButton, { type: "button", onClick: onLogoClick, "data-cy": `${dataCyPrefix}-${suffix}`, children: /* @__PURE__ */ jsx(Img, { src: LOGO_URL, alt: logoAlt }) }) : /* @__PURE__ */ jsx(Img, { src: LOGO_URL, alt: logoAlt, "data-cy": `${dataCyPrefix}-${suffix}` });
|
|
19
|
-
return /* @__PURE__ */ jsxs(Aside, { className, children: [
|
|
19
|
+
return /* @__PURE__ */ jsxs(Aside, { className, "data-theme": "dark", children: [
|
|
20
20
|
/* @__PURE__ */ jsxs(MobileHeader, { children: [
|
|
21
21
|
logo(MobileLogoImg, "logo-mobile"),
|
|
22
22
|
mobileAction,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Always dark: the component sets `data-theme="dark"` on it, so every semantic token below resolves to its dark value in either theme. */
|
|
1
2
|
export declare const Aside: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "style"> & {
|
|
2
3
|
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
3
4
|
}> & string;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { typography } from "../../styles/typography.js";
|
|
2
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
3
|
+
import { text } from "../../design-system/styled/text.js";
|
|
5
4
|
const Aside = styled.aside`
|
|
6
5
|
display: flex;
|
|
7
6
|
flex-direction: column;
|
|
8
|
-
background-color:
|
|
9
|
-
color:
|
|
7
|
+
background-color: var(--stokr-background-default);
|
|
8
|
+
color: var(--stokr-text-primary);
|
|
10
9
|
position: sticky;
|
|
11
10
|
top: 0;
|
|
12
11
|
z-index: 10;
|
|
13
12
|
-webkit-font-smoothing: antialiased;
|
|
14
13
|
-moz-osx-font-smoothing: grayscale;
|
|
15
14
|
|
|
16
|
-
${
|
|
15
|
+
${breakpoint.MLarge`
|
|
17
16
|
align-items: stretch;
|
|
18
17
|
gap: 48px;
|
|
19
18
|
width: 100%;
|
|
@@ -23,8 +22,8 @@ const Aside = styled.aside`
|
|
|
23
22
|
overflow-x: hidden;
|
|
24
23
|
overflow-y: auto;
|
|
25
24
|
overflow-wrap: anywhere;
|
|
26
|
-
border-right: 1px solid
|
|
27
|
-
}
|
|
25
|
+
border-right: 1px solid var(--stokr-border-subtle);
|
|
26
|
+
`}
|
|
28
27
|
`;
|
|
29
28
|
const MobileHeader = styled.div`
|
|
30
29
|
display: flex;
|
|
@@ -37,9 +36,9 @@ const MobileHeader = styled.div`
|
|
|
37
36
|
margin-right: auto;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
${
|
|
39
|
+
${breakpoint.MLarge`
|
|
41
40
|
display: none;
|
|
42
|
-
}
|
|
41
|
+
`}
|
|
43
42
|
`;
|
|
44
43
|
const CloseButton = styled.button`
|
|
45
44
|
display: flex;
|
|
@@ -52,7 +51,7 @@ const CloseButton = styled.button`
|
|
|
52
51
|
background: none;
|
|
53
52
|
border: none;
|
|
54
53
|
cursor: pointer;
|
|
55
|
-
color:
|
|
54
|
+
color: var(--stokr-text-primary);
|
|
56
55
|
transition: opacity 0.2s;
|
|
57
56
|
|
|
58
57
|
&:hover {
|
|
@@ -62,16 +61,16 @@ const CloseButton = styled.button`
|
|
|
62
61
|
const DesktopOnly = styled.div`
|
|
63
62
|
display: none;
|
|
64
63
|
|
|
65
|
-
${
|
|
64
|
+
${breakpoint.MLarge`
|
|
66
65
|
display: contents;
|
|
67
|
-
}
|
|
66
|
+
`}
|
|
68
67
|
`;
|
|
69
68
|
const MobileOnly = styled.div`
|
|
70
69
|
display: contents;
|
|
71
70
|
|
|
72
|
-
${
|
|
71
|
+
${breakpoint.MLarge`
|
|
73
72
|
display: none;
|
|
74
|
-
}
|
|
73
|
+
`}
|
|
75
74
|
`;
|
|
76
75
|
const Spacer = styled.div`
|
|
77
76
|
flex: 1 1 auto;
|
|
@@ -82,7 +81,7 @@ const LogoButton = styled.button`
|
|
|
82
81
|
background: none;
|
|
83
82
|
border: none;
|
|
84
83
|
cursor: pointer;
|
|
85
|
-
color:
|
|
84
|
+
color: var(--stokr-text-primary);
|
|
86
85
|
`;
|
|
87
86
|
const MobileLogoImg = styled.img`
|
|
88
87
|
display: block;
|
|
@@ -105,52 +104,52 @@ const NameGroup = styled.div`
|
|
|
105
104
|
gap: 12px;
|
|
106
105
|
`;
|
|
107
106
|
const Eyebrow = styled.p`
|
|
108
|
-
${
|
|
107
|
+
${text("labelRegular")}
|
|
109
108
|
margin: 0;
|
|
110
|
-
color:
|
|
109
|
+
color: var(--stokr-text-primary);
|
|
111
110
|
`;
|
|
112
111
|
const Title = styled.p`
|
|
113
|
-
${
|
|
112
|
+
${text("titleL")}
|
|
114
113
|
margin: 0;
|
|
115
|
-
color:
|
|
114
|
+
color: var(--stokr-text-primary);
|
|
116
115
|
`;
|
|
117
116
|
const Description = styled.p`
|
|
118
|
-
${
|
|
117
|
+
${text("bodyM")}
|
|
119
118
|
margin: 0;
|
|
120
|
-
color:
|
|
119
|
+
color: var(--stokr-text-primary);
|
|
121
120
|
`;
|
|
122
121
|
const SupportWrap = styled.div`
|
|
123
122
|
padding-top: 21px;
|
|
124
|
-
border-top: 1px solid
|
|
123
|
+
border-top: 1px solid var(--stokr-border-strong);
|
|
125
124
|
`;
|
|
126
125
|
const SupportHeading = styled.p`
|
|
127
126
|
margin: 0 0 6px;
|
|
128
127
|
font-size: 14px;
|
|
129
128
|
font-weight: 600;
|
|
130
129
|
line-height: 20px;
|
|
131
|
-
color:
|
|
130
|
+
color: var(--stokr-text-primary);
|
|
132
131
|
|
|
133
|
-
${
|
|
132
|
+
${breakpoint.XLarge`
|
|
134
133
|
font-size: 16px;
|
|
135
|
-
}
|
|
134
|
+
`}
|
|
136
135
|
`;
|
|
137
136
|
const SupportBody = styled.p`
|
|
138
137
|
margin: 0;
|
|
139
138
|
font-size: 12px;
|
|
140
139
|
font-weight: 400;
|
|
141
140
|
line-height: 18px;
|
|
142
|
-
color:
|
|
141
|
+
color: var(--stokr-text-primary);
|
|
143
142
|
|
|
144
|
-
${
|
|
143
|
+
${breakpoint.XLarge`
|
|
145
144
|
font-size: 13px;
|
|
146
|
-
}
|
|
145
|
+
`}
|
|
147
146
|
`;
|
|
148
147
|
const SupportLink = styled.a`
|
|
149
|
-
color:
|
|
148
|
+
color: var(--stokr-action-accent-bg);
|
|
150
149
|
text-decoration: underline;
|
|
151
150
|
|
|
152
151
|
&:hover {
|
|
153
|
-
color:
|
|
152
|
+
color: var(--stokr-action-accent-bg);
|
|
154
153
|
}
|
|
155
154
|
`;
|
|
156
155
|
export {
|
|
@@ -1,14 +1,36 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The legacy loading animation as animated WebP. It has an opaque white background, so it only suits white pages;
|
|
4
|
+
* the components use `LoaderRing`, which is transparent and follows the theme.
|
|
5
|
+
*/
|
|
3
6
|
export declare const loaderGif = "https://res.cloudinary.com/stokr/image/upload/f_webp,fl_awebp,q_auto/v1575035788/Static/stokr_loader_white_400x400_egnhgb.gif";
|
|
7
|
+
/** The STOKR loading ring: transparent background, drawn in `text-primary` (black in light, white in dark). */
|
|
8
|
+
export declare const LoaderRing: ({ size, className }: {
|
|
9
|
+
size?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* The STOKR wordmark loader: the letters form top to bottom, the O draws itself, then keeps turning. Transparent
|
|
14
|
+
* background, drawn in `text-primary` (black in light, white in dark). The height follows the `width`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const LoaderLogo: ({ width, className }: {
|
|
17
|
+
width?: number;
|
|
18
|
+
className?: string;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
/** `ring` is the circle; `logo` is the STOKR wordmark whose O keeps turning. */
|
|
21
|
+
export type StokrLoaderVariant = 'ring' | 'logo';
|
|
4
22
|
export interface StokrLoaderProps {
|
|
5
23
|
/** Leaves the top 97px (the header) visible instead of covering the whole screen. */
|
|
6
24
|
noFullscreen?: boolean;
|
|
25
|
+
/** Which animation to show. Default `ring`. */
|
|
26
|
+
variant?: StokrLoaderVariant;
|
|
7
27
|
}
|
|
8
28
|
/** Full-screen STOKR loading animation, shown while a page loads. */
|
|
9
|
-
export declare function StokrLoader({ noFullscreen }: StokrLoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function StokrLoader({ noFullscreen, variant }: StokrLoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
30
|
/** The loading animation centred in its container, for a loading area inside a page. */
|
|
11
|
-
export declare const StokrLoaderBox: (
|
|
31
|
+
export declare const StokrLoaderBox: ({ variant }: {
|
|
32
|
+
variant?: StokrLoaderVariant;
|
|
33
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
34
|
export declare const AnimatedSpan: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
13
35
|
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
14
36
|
}, {
|