@stokr/components-library 5.0.0 → 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/dist/components/AddressItem/AddressItem.d.ts +38 -0
- package/dist/components/AddressItem/AddressItem.js +51 -0
- package/dist/components/AddressItem/AddressItem.styles.d.ts +31 -0
- package/dist/components/AddressItem/AddressItem.styles.js +71 -0
- package/dist/components/Checkbox/Checkbox.styles.d.ts +1 -0
- package/dist/components/Collapsible/Collapsible.d.ts +10 -4
- package/dist/components/Collapsible/Collapsible.js +6 -14
- package/dist/components/Collapsible/Collapsible.styles.d.ts +3 -1
- package/dist/components/Collapsible/Collapsible.styles.js +26 -9
- package/dist/components/Country/CountrySelect.js +9 -14
- package/dist/components/Country/FlagFor.d.ts +9 -0
- package/dist/components/Country/FlagFor.js +25 -0
- package/dist/components/Country/flagLoaders.d.ts +5 -0
- package/dist/components/Country/flagLoaders.js +270 -0
- package/dist/components/Country/flagStore.d.ts +6 -0
- package/dist/components/Country/flagStore.js +29 -0
- package/dist/components/FAQ/FAQ.d.ts +29 -0
- package/dist/components/FAQ/FAQ.js +18 -18
- package/dist/components/FAQ/FAQ.styles.d.ts +11 -3
- package/dist/components/FAQ/FAQ.styles.js +55 -1
- package/dist/components/IdentityInfo/IdentityInfo.js +2 -1
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +3 -1
- package/dist/components/InfoBox/InfoBox.d.ts +13 -11
- package/dist/components/InfoBox/InfoBox.js +27 -12
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.js +5 -2
- package/dist/components/Input/Input.styles.d.ts +4 -0
- package/dist/components/Input/Input.styles.js +56 -0
- package/dist/components/Input/Select.d.ts +57 -0
- package/dist/components/Input/Select.js +89 -99
- package/dist/components/Input/Select.styles.d.ts +89 -0
- package/dist/components/Input/Select.styles.js +102 -2
- package/dist/components/MaterialIcon/requiredIcons.d.ts +1 -1
- package/dist/components/MaterialIcon/requiredIcons.js +2 -0
- package/dist/components/PanelCard/PanelCard.d.ts +51 -0
- package/dist/components/PanelCard/PanelCard.js +35 -0
- package/dist/components/PanelCard/PanelCard.styles.d.ts +29 -0
- package/dist/components/PanelCard/PanelCard.styles.js +84 -0
- package/dist/components/Radio/Radio.styles.d.ts +1 -0
- package/dist/components/StepSidebar/MobileStepProgress.d.ts +12 -0
- package/dist/components/StepSidebar/MobileStepProgress.js +14 -0
- package/dist/components/StepSidebar/MobileStepProgress.styles.d.ts +15 -0
- package/dist/components/StepSidebar/MobileStepProgress.styles.js +41 -0
- package/dist/components/StepSidebar/StepProgress.d.ts +14 -0
- package/dist/components/StepSidebar/StepProgress.js +14 -0
- package/dist/components/StepSidebar/StepProgress.styles.d.ts +30 -0
- package/dist/components/StepSidebar/StepProgress.styles.js +106 -0
- package/dist/components/StepSidebar/StepSidebar.d.ts +36 -0
- package/dist/components/StepSidebar/StepSidebar.js +58 -0
- package/dist/components/StepSidebar/StepSidebar.styles.d.ts +55 -0
- package/dist/components/StepSidebar/StepSidebar.styles.js +174 -0
- package/dist/components/StokrLoader/StokrLoader.d.ts +16 -2
- package/dist/components/StokrLoader/StokrLoader.js +140 -26
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +26 -11
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.d.ts +29 -12
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +85 -7
- package/dist/constants/chainLogos.d.ts +9 -0
- package/dist/constants/chainLogos.js +17 -0
- package/dist/index.d.ts +73 -6
- package/dist/index.js +21 -4
- package/dist/static/images/chains/avalanche.svg +7 -0
- package/dist/static/images/chains/avalanche.svg.js +4 -0
- package/dist/static/images/chains/ethereum.svg +14 -0
- package/dist/static/images/chains/ethereum.svg.js +4 -0
- package/dist/static/images/chains/liquid.svg +7 -0
- package/dist/static/images/chains/liquid.svg.js +4 -0
- package/dist/static/images/chains/solana.svg +29 -0
- package/dist/static/images/chains/solana.svg.js +4 -0
- package/dist/static/images/chains/stellar.svg +17 -0
- package/dist/static/images/chains/stellar.svg.js +4 -0
- package/dist/static/images/chains/tempo.svg +11 -0
- package/dist/static/images/chains/tempo.svg.js +4 -0
- package/dist/styles/borderedField.d.ts +11 -0
- package/dist/styles/borderedField.js +53 -0
- package/package.json +1 -1
- package/dist/static/images/globe.svg.js +0 -5
- package/dist/static/images/trash.svg +0 -17
- package/dist/static/images/trash.svg.js +0 -5
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StepStatus } from './StepProgress';
|
|
2
|
+
export declare const List: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "style"> & {
|
|
3
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
4
|
+
}> & string;
|
|
5
|
+
export declare const Item: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style"> & {
|
|
6
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
7
|
+
}> & string;
|
|
8
|
+
export declare const Line: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
9
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
10
|
+
}, {
|
|
11
|
+
$status: StepStatus;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export declare const Marker: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
14
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
15
|
+
}, {
|
|
16
|
+
$status: StepStatus;
|
|
17
|
+
}>> & string;
|
|
18
|
+
export declare const ItemText: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
19
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
20
|
+
}> & string;
|
|
21
|
+
export declare const ItemTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
22
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
23
|
+
}, {
|
|
24
|
+
$status: StepStatus;
|
|
25
|
+
}>> & string;
|
|
26
|
+
export declare const ItemSubtitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
27
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
28
|
+
}, {
|
|
29
|
+
$status: StepStatus;
|
|
30
|
+
}>> & string;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { text } from "../../design-system/styled/text.js";
|
|
3
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
4
|
+
const MARKER_SIZE = 28;
|
|
5
|
+
const LINE_GAP = 4;
|
|
6
|
+
const MARKER_BG = {
|
|
7
|
+
upcoming: "transparent",
|
|
8
|
+
active: "var(--stokr-action-primary-bg)",
|
|
9
|
+
done: "var(--stokr-action-accent-bg)"
|
|
10
|
+
};
|
|
11
|
+
const MARKER_BORDER = {
|
|
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)"
|
|
20
|
+
};
|
|
21
|
+
const TITLE_COLOR = {
|
|
22
|
+
upcoming: "var(--stokr-text-secondary)",
|
|
23
|
+
active: "var(--stokr-text-primary)",
|
|
24
|
+
done: "var(--stokr-action-accent-bg)"
|
|
25
|
+
};
|
|
26
|
+
const SUBTITLE_COLOR = {
|
|
27
|
+
upcoming: "var(--stokr-text-secondary)",
|
|
28
|
+
active: "var(--stokr-text-body)",
|
|
29
|
+
done: "var(--stokr-text-secondary)"
|
|
30
|
+
};
|
|
31
|
+
const LINE_COLOR = {
|
|
32
|
+
upcoming: "var(--stokr-text-secondary)",
|
|
33
|
+
active: "var(--stokr-text-body)",
|
|
34
|
+
done: "var(--stokr-status-success-text)"
|
|
35
|
+
};
|
|
36
|
+
const List = styled.ol`
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
margin: 0;
|
|
40
|
+
padding: 0;
|
|
41
|
+
list-style: none;
|
|
42
|
+
`;
|
|
43
|
+
const Item = styled.li`
|
|
44
|
+
position: relative;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: flex-start;
|
|
47
|
+
gap: 16px;
|
|
48
|
+
padding-bottom: 32px;
|
|
49
|
+
|
|
50
|
+
&:last-child {
|
|
51
|
+
padding-bottom: 0;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
const Line = styled.span`
|
|
55
|
+
position: absolute;
|
|
56
|
+
left: ${MARKER_SIZE / 2 - 1}px;
|
|
57
|
+
top: ${MARKER_SIZE + LINE_GAP}px;
|
|
58
|
+
bottom: ${LINE_GAP}px;
|
|
59
|
+
width: 2px;
|
|
60
|
+
background-color: ${({ $status }) => LINE_COLOR[$status]};
|
|
61
|
+
`;
|
|
62
|
+
const Marker = styled.span`
|
|
63
|
+
${text("caption")}
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
flex: 0 0 ${MARKER_SIZE}px;
|
|
67
|
+
width: ${MARKER_SIZE}px;
|
|
68
|
+
height: ${MARKER_SIZE}px;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
background-color: ${({ $status }) => MARKER_BG[$status]};
|
|
74
|
+
color: ${({ $status }) => MARKER_TEXT[$status]};
|
|
75
|
+
border: 1px solid ${({ $status }) => MARKER_BORDER[$status]};
|
|
76
|
+
`;
|
|
77
|
+
const ItemText = styled.div`
|
|
78
|
+
padding-top: 4px;
|
|
79
|
+
`;
|
|
80
|
+
const ItemTitle = styled.p`
|
|
81
|
+
${text("subtitleS")}
|
|
82
|
+
margin: 0;
|
|
83
|
+
color: ${({ $status }) => TITLE_COLOR[$status]};
|
|
84
|
+
|
|
85
|
+
${breakpoint.XLarge`
|
|
86
|
+
font-size: 16px;
|
|
87
|
+
`}
|
|
88
|
+
`;
|
|
89
|
+
const ItemSubtitle = styled.p`
|
|
90
|
+
${text("caption")}
|
|
91
|
+
margin: 4px 0 0;
|
|
92
|
+
color: ${({ $status }) => SUBTITLE_COLOR[$status]};
|
|
93
|
+
|
|
94
|
+
${breakpoint.XLarge`
|
|
95
|
+
font-size: 13px;
|
|
96
|
+
`}
|
|
97
|
+
`;
|
|
98
|
+
export {
|
|
99
|
+
Item,
|
|
100
|
+
ItemSubtitle,
|
|
101
|
+
ItemText,
|
|
102
|
+
ItemTitle,
|
|
103
|
+
Line,
|
|
104
|
+
List,
|
|
105
|
+
Marker
|
|
106
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface StepSidebarIntro {
|
|
3
|
+
eyebrow: ReactNode;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface StepSidebarSupport {
|
|
8
|
+
heading: ReactNode;
|
|
9
|
+
body: ReactNode;
|
|
10
|
+
linkLabel: ReactNode;
|
|
11
|
+
href: string;
|
|
12
|
+
/** Opens the link in a new tab. */
|
|
13
|
+
external?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface StepSidebarProps {
|
|
16
|
+
/** Desktop content between the intro and the support block, e.g. `<StepProgress />`. */
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
/** Mobile content below the header, e.g. `<MobileStepProgress />`. */
|
|
19
|
+
mobileContent?: ReactNode;
|
|
20
|
+
/** Eyebrow, title and text below the logo (desktop only). */
|
|
21
|
+
intro?: StepSidebarIntro;
|
|
22
|
+
/** Contact block pinned to the bottom (desktop only). */
|
|
23
|
+
support?: StepSidebarSupport;
|
|
24
|
+
logoAlt: string;
|
|
25
|
+
/** Makes the logo a button. */
|
|
26
|
+
onLogoClick?: () => void;
|
|
27
|
+
/** Mobile header content on the right, e.g. a log-out button. */
|
|
28
|
+
mobileAction?: ReactNode;
|
|
29
|
+
/** Shows the close (×) button in the mobile header. */
|
|
30
|
+
onClose?: () => void;
|
|
31
|
+
closeLabel?: string;
|
|
32
|
+
dataCyPrefix?: string;
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
/** Dark flow sidebar shell: logo, intro, your content and a support contact; a compact header on mobile. */
|
|
36
|
+
export declare const StepSidebar: ({ children, mobileContent, mobileAction, intro, support, logoAlt, onLogoClick, onClose, closeLabel, dataCyPrefix, className, }: StepSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
|
|
3
|
+
import { Aside, MobileHeader, CloseButton, DesktopOnly, TopBlock, Eyebrow, NameGroup, Title, Description, MobileOnly, Spacer, SupportWrap, SupportHeading, SupportBody, SupportLink, LogoButton, MobileLogoImg, DesktopLogoImg } from "./StepSidebar.styles.js";
|
|
4
|
+
const LOGO_URL = "https://res.cloudinary.com/stokr/image/upload/v1782908299/STOKR_v7r1dp.png";
|
|
5
|
+
const StepSidebar = ({
|
|
6
|
+
children,
|
|
7
|
+
mobileContent,
|
|
8
|
+
mobileAction,
|
|
9
|
+
intro,
|
|
10
|
+
support,
|
|
11
|
+
logoAlt,
|
|
12
|
+
onLogoClick,
|
|
13
|
+
onClose,
|
|
14
|
+
closeLabel = "Close",
|
|
15
|
+
dataCyPrefix = "step-sidebar",
|
|
16
|
+
className
|
|
17
|
+
}) => {
|
|
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, "data-theme": "dark", children: [
|
|
20
|
+
/* @__PURE__ */ jsxs(MobileHeader, { children: [
|
|
21
|
+
logo(MobileLogoImg, "logo-mobile"),
|
|
22
|
+
mobileAction,
|
|
23
|
+
onClose && /* @__PURE__ */ jsx(CloseButton, { type: "button", "aria-label": closeLabel, onClick: onClose, "data-cy": `${dataCyPrefix}-close`, children: /* @__PURE__ */ jsx(MaterialIcon, { name: "close", size: 28 }) })
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ jsx(DesktopOnly, { children: logo(DesktopLogoImg, "logo") }),
|
|
26
|
+
intro && /* @__PURE__ */ jsx(DesktopOnly, { children: /* @__PURE__ */ jsxs(TopBlock, { children: [
|
|
27
|
+
/* @__PURE__ */ jsx(Eyebrow, { children: intro.eyebrow }),
|
|
28
|
+
/* @__PURE__ */ jsxs(NameGroup, { children: [
|
|
29
|
+
/* @__PURE__ */ jsx(Title, { children: intro.title }),
|
|
30
|
+
intro.description && /* @__PURE__ */ jsx(Description, { children: intro.description })
|
|
31
|
+
] })
|
|
32
|
+
] }) }),
|
|
33
|
+
children && /* @__PURE__ */ jsx(DesktopOnly, { children }),
|
|
34
|
+
mobileContent && /* @__PURE__ */ jsx(MobileOnly, { children: mobileContent }),
|
|
35
|
+
/* @__PURE__ */ jsxs(DesktopOnly, { children: [
|
|
36
|
+
/* @__PURE__ */ jsx(Spacer, {}),
|
|
37
|
+
support && /* @__PURE__ */ jsxs(SupportWrap, { children: [
|
|
38
|
+
/* @__PURE__ */ jsx(SupportHeading, { children: support.heading }),
|
|
39
|
+
/* @__PURE__ */ jsxs(SupportBody, { children: [
|
|
40
|
+
support.body,
|
|
41
|
+
" ",
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
SupportLink,
|
|
44
|
+
{
|
|
45
|
+
href: support.href,
|
|
46
|
+
"data-cy": `${dataCyPrefix}-support-link`,
|
|
47
|
+
...support.external && { target: "_blank", rel: "noopener noreferrer" },
|
|
48
|
+
children: support.linkLabel
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] })
|
|
52
|
+
] })
|
|
53
|
+
] })
|
|
54
|
+
] });
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
StepSidebar
|
|
58
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/** Always dark: the component sets `data-theme="dark"` on it, so every semantic token below resolves to its dark value in either theme. */
|
|
2
|
+
export declare const Aside: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "style"> & {
|
|
3
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
4
|
+
}> & string;
|
|
5
|
+
export declare const MobileHeader: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
6
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
7
|
+
}> & string;
|
|
8
|
+
export declare const CloseButton: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
9
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
10
|
+
}> & string;
|
|
11
|
+
export declare const DesktopOnly: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
12
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
13
|
+
}> & string;
|
|
14
|
+
export declare const MobileOnly: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
15
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
16
|
+
}> & string;
|
|
17
|
+
export declare const Spacer: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
18
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
19
|
+
}> & string;
|
|
20
|
+
export declare const LogoButton: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
21
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
22
|
+
}> & string;
|
|
23
|
+
export declare const MobileLogoImg: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "style"> & {
|
|
24
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
25
|
+
}> & string;
|
|
26
|
+
export declare const DesktopLogoImg: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "style"> & {
|
|
27
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
28
|
+
}> & string;
|
|
29
|
+
export declare const TopBlock: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
30
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
31
|
+
}> & string;
|
|
32
|
+
export declare const NameGroup: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
33
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
34
|
+
}> & string;
|
|
35
|
+
export declare const Eyebrow: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
36
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
37
|
+
}> & string;
|
|
38
|
+
export declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
39
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
40
|
+
}> & string;
|
|
41
|
+
export declare const Description: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
42
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
43
|
+
}> & string;
|
|
44
|
+
export declare const SupportWrap: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
45
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
46
|
+
}> & string;
|
|
47
|
+
export declare const SupportHeading: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
48
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
49
|
+
}> & string;
|
|
50
|
+
export declare const SupportBody: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
|
|
51
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
52
|
+
}> & string;
|
|
53
|
+
export declare const SupportLink: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "style"> & {
|
|
54
|
+
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
55
|
+
}> & string;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { breakpoint } from "../../design-system/styled/breakpoint.js";
|
|
3
|
+
import { text } from "../../design-system/styled/text.js";
|
|
4
|
+
const Aside = styled.aside`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
background-color: var(--stokr-background-default);
|
|
8
|
+
color: var(--stokr-text-primary);
|
|
9
|
+
position: sticky;
|
|
10
|
+
top: 0;
|
|
11
|
+
z-index: 10;
|
|
12
|
+
-webkit-font-smoothing: antialiased;
|
|
13
|
+
-moz-osx-font-smoothing: grayscale;
|
|
14
|
+
|
|
15
|
+
${breakpoint.MLarge`
|
|
16
|
+
align-items: stretch;
|
|
17
|
+
gap: 48px;
|
|
18
|
+
width: 100%;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
height: 100vh;
|
|
21
|
+
padding: 48px;
|
|
22
|
+
overflow-x: hidden;
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
overflow-wrap: anywhere;
|
|
25
|
+
border-right: 1px solid var(--stokr-border-subtle);
|
|
26
|
+
`}
|
|
27
|
+
`;
|
|
28
|
+
const MobileHeader = styled.div`
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 16px;
|
|
32
|
+
height: 56px;
|
|
33
|
+
padding: 0 18px;
|
|
34
|
+
|
|
35
|
+
> :first-child {
|
|
36
|
+
margin-right: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
${breakpoint.MLarge`
|
|
40
|
+
display: none;
|
|
41
|
+
`}
|
|
42
|
+
`;
|
|
43
|
+
const CloseButton = styled.button`
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
width: 32px;
|
|
49
|
+
height: 32px;
|
|
50
|
+
padding: 0;
|
|
51
|
+
background: none;
|
|
52
|
+
border: none;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
color: var(--stokr-text-primary);
|
|
55
|
+
transition: opacity 0.2s;
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
opacity: 0.7;
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
const DesktopOnly = styled.div`
|
|
62
|
+
display: none;
|
|
63
|
+
|
|
64
|
+
${breakpoint.MLarge`
|
|
65
|
+
display: contents;
|
|
66
|
+
`}
|
|
67
|
+
`;
|
|
68
|
+
const MobileOnly = styled.div`
|
|
69
|
+
display: contents;
|
|
70
|
+
|
|
71
|
+
${breakpoint.MLarge`
|
|
72
|
+
display: none;
|
|
73
|
+
`}
|
|
74
|
+
`;
|
|
75
|
+
const Spacer = styled.div`
|
|
76
|
+
flex: 1 1 auto;
|
|
77
|
+
`;
|
|
78
|
+
const LogoButton = styled.button`
|
|
79
|
+
display: inline-block;
|
|
80
|
+
padding: 0;
|
|
81
|
+
background: none;
|
|
82
|
+
border: none;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
color: var(--stokr-text-primary);
|
|
85
|
+
`;
|
|
86
|
+
const MobileLogoImg = styled.img`
|
|
87
|
+
display: block;
|
|
88
|
+
width: 100px;
|
|
89
|
+
height: auto;
|
|
90
|
+
`;
|
|
91
|
+
const DesktopLogoImg = styled.img`
|
|
92
|
+
display: block;
|
|
93
|
+
width: 140px;
|
|
94
|
+
height: auto;
|
|
95
|
+
`;
|
|
96
|
+
const TopBlock = styled.div`
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: 16px;
|
|
100
|
+
`;
|
|
101
|
+
const NameGroup = styled.div`
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: 12px;
|
|
105
|
+
`;
|
|
106
|
+
const Eyebrow = styled.p`
|
|
107
|
+
${text("labelRegular")}
|
|
108
|
+
margin: 0;
|
|
109
|
+
color: var(--stokr-text-primary);
|
|
110
|
+
`;
|
|
111
|
+
const Title = styled.p`
|
|
112
|
+
${text("titleL")}
|
|
113
|
+
margin: 0;
|
|
114
|
+
color: var(--stokr-text-primary);
|
|
115
|
+
`;
|
|
116
|
+
const Description = styled.p`
|
|
117
|
+
${text("bodyM")}
|
|
118
|
+
margin: 0;
|
|
119
|
+
color: var(--stokr-text-primary);
|
|
120
|
+
`;
|
|
121
|
+
const SupportWrap = styled.div`
|
|
122
|
+
padding-top: 21px;
|
|
123
|
+
border-top: 1px solid var(--stokr-border-strong);
|
|
124
|
+
`;
|
|
125
|
+
const SupportHeading = styled.p`
|
|
126
|
+
margin: 0 0 6px;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
font-weight: 600;
|
|
129
|
+
line-height: 20px;
|
|
130
|
+
color: var(--stokr-text-primary);
|
|
131
|
+
|
|
132
|
+
${breakpoint.XLarge`
|
|
133
|
+
font-size: 16px;
|
|
134
|
+
`}
|
|
135
|
+
`;
|
|
136
|
+
const SupportBody = styled.p`
|
|
137
|
+
margin: 0;
|
|
138
|
+
font-size: 12px;
|
|
139
|
+
font-weight: 400;
|
|
140
|
+
line-height: 18px;
|
|
141
|
+
color: var(--stokr-text-primary);
|
|
142
|
+
|
|
143
|
+
${breakpoint.XLarge`
|
|
144
|
+
font-size: 13px;
|
|
145
|
+
`}
|
|
146
|
+
`;
|
|
147
|
+
const SupportLink = styled.a`
|
|
148
|
+
color: var(--stokr-action-accent-bg);
|
|
149
|
+
text-decoration: underline;
|
|
150
|
+
|
|
151
|
+
&:hover {
|
|
152
|
+
color: var(--stokr-action-accent-bg);
|
|
153
|
+
}
|
|
154
|
+
`;
|
|
155
|
+
export {
|
|
156
|
+
Aside,
|
|
157
|
+
CloseButton,
|
|
158
|
+
Description,
|
|
159
|
+
DesktopLogoImg,
|
|
160
|
+
DesktopOnly,
|
|
161
|
+
Eyebrow,
|
|
162
|
+
LogoButton,
|
|
163
|
+
MobileHeader,
|
|
164
|
+
MobileLogoImg,
|
|
165
|
+
MobileOnly,
|
|
166
|
+
NameGroup,
|
|
167
|
+
Spacer,
|
|
168
|
+
SupportBody,
|
|
169
|
+
SupportHeading,
|
|
170
|
+
SupportLink,
|
|
171
|
+
SupportWrap,
|
|
172
|
+
Title,
|
|
173
|
+
TopBlock
|
|
174
|
+
};
|
|
@@ -9,14 +9,28 @@ export declare const LoaderRing: ({ size, className }: {
|
|
|
9
9
|
size?: number;
|
|
10
10
|
className?: string;
|
|
11
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';
|
|
12
22
|
export interface StokrLoaderProps {
|
|
13
23
|
/** Leaves the top 97px (the header) visible instead of covering the whole screen. */
|
|
14
24
|
noFullscreen?: boolean;
|
|
25
|
+
/** Which animation to show. Default `ring`. */
|
|
26
|
+
variant?: StokrLoaderVariant;
|
|
15
27
|
}
|
|
16
28
|
/** Full-screen STOKR loading animation, shown while a page loads. */
|
|
17
|
-
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;
|
|
18
30
|
/** The loading animation centred in its container, for a loading area inside a page. */
|
|
19
|
-
export declare const StokrLoaderBox: (
|
|
31
|
+
export declare const StokrLoaderBox: ({ variant }: {
|
|
32
|
+
variant?: StokrLoaderVariant;
|
|
33
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
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"> & {
|
|
21
35
|
style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
|
|
22
36
|
}, {
|