@stokr/components-library 5.0.0 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/components/AddressItem/AddressItem.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/AdminDashboard/Table/Table.styles.js +18 -25
- package/dist/components/AgreementItem/AgreementItem.styles.js +1 -1
- package/dist/components/BackButton/BackButton.styles.js +15 -15
- package/dist/components/BasicTable/BasicTable.styles.js +6 -8
- package/dist/components/BlogPost/BlogPost.styles.js +9 -13
- package/dist/components/Button/Button.styles.d.ts +1 -1
- package/dist/components/Button/Button.styles.js +122 -11
- package/dist/components/Button/GlareButton.js +1 -1
- package/dist/components/Card/Card.styles.js +3 -4
- package/dist/components/CardTabs/CardTabs.styles.js +17 -17
- package/dist/components/ChartLegend/ChartLegend.styles.js +6 -7
- package/dist/components/Checkbox/Checkbox.styles.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.styles.js +10 -11
- package/dist/components/Checklist/ChecklistCard.js +3 -3
- package/dist/components/Checklist/ChecklistCard.styles.js +7 -20
- package/dist/components/Chips/Chip.js +2 -2
- package/dist/components/Chips/Chip.styles.js +6 -10
- package/dist/components/Collapsible/Collapsible.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 +33 -16
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +5 -5
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +5 -5
- package/dist/components/ConfirmModal/ConfirmModal.styles.js +2 -2
- package/dist/components/Country/CountrySelect.js +15 -20
- 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/CryptoAddress/CryptoAddress.d.ts +6 -2
- package/dist/components/CryptoAddress/CryptoAddress.js +2 -2
- package/dist/components/CryptoAddress/CryptoAddress.styles.d.ts +2 -1
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +20 -27
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +2 -2
- package/dist/components/FAQ/FAQ.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 +59 -10
- package/dist/components/Form/Form.styles.js +5 -5
- package/dist/components/Grid/Grid.styles.js +7 -7
- package/dist/components/IdentityInfo/IdentityInfo.js +2 -1
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +13 -23
- package/dist/components/InfoBox/InfoBox.d.ts +15 -13
- package/dist/components/InfoBox/InfoBox.js +31 -14
- package/dist/components/InfoIcon/InfoIcon.styles.js +2 -2
- package/dist/components/Input/DatePickerInput.styles.js +23 -24
- 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 +77 -27
- package/dist/components/Input/InputPassword.styles.js +11 -11
- package/dist/components/Input/InputWithButton.styles.js +5 -5
- package/dist/components/Input/MultiSelect.js +17 -17
- package/dist/components/Input/OtpInput.js +1 -1
- package/dist/components/Input/RangeInput.js +2 -2
- package/dist/components/Input/SearchInput.styles.js +10 -10
- package/dist/components/Input/Select.d.ts +57 -0
- package/dist/components/Input/Select.js +101 -106
- package/dist/components/Input/Select.styles.d.ts +89 -0
- package/dist/components/Input/Select.styles.js +115 -19
- package/dist/components/Input/TableFilterDropdown.js +5 -5
- package/dist/components/Input/Textarea.styles.js +11 -13
- package/dist/components/MaterialIcon/requiredIcons.d.ts +1 -1
- package/dist/components/MaterialIcon/requiredIcons.js +2 -0
- package/dist/components/MenuNav/MenuNav.styles.js +2 -5
- package/dist/components/Modal/Modal.styles.js +25 -31
- package/dist/components/Modal/PaymentModal.js +7 -7
- package/dist/components/Modal/SideModal.styles.js +8 -8
- package/dist/components/Modal/SideModalParts.js +15 -16
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +5 -8
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +2 -2
- package/dist/components/Number/Number.js +1 -1
- package/dist/components/Number/Number.styles.js +2 -2
- package/dist/components/Pagination/Pagination.styles.js +7 -7
- package/dist/components/PanelCard/PanelCard.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/Payment/DetailRows.js +1 -1
- package/dist/components/Payment/DetailsToggle.js +4 -6
- package/dist/components/Payment/PaymentDetailsCard.js +29 -53
- package/dist/components/Payment/PaymentDisplay.js +12 -20
- package/dist/components/Payment/PaymentPendingCard.d.ts +1 -1
- package/dist/components/Payment/PaymentPendingCard.js +10 -13
- package/dist/components/Payment/PaymentSuccessCard.js +6 -9
- package/dist/components/Payment/TimerComponent.js +5 -4
- package/dist/components/Process/Process.styles.js +7 -13
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +8 -10
- package/dist/components/ProfileBox/ProfileBox.styles.js +5 -7
- package/dist/components/Radio/Radio.styles.d.ts +1 -0
- package/dist/components/Radio/Radio.styles.js +8 -9
- package/dist/components/RefreshButton/RefreshButton.styles.js +5 -5
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +3 -5
- package/dist/components/Section/Section.styles.js +16 -18
- package/dist/components/SectionTitle/SectionTitle.styles.d.ts +4 -0
- package/dist/components/SectionTitle/SectionTitle.styles.js +4 -7
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.js +3 -3
- package/dist/components/Snackbar/Snackbar.styles.js +8 -10
- package/dist/components/SpanButton/SpanButton.styles.js +2 -2
- package/dist/components/StatusDot/StatusDot.d.ts +1 -1
- package/dist/components/StatusDot/StatusDot.js +5 -5
- package/dist/components/StatusDot/StatusDot.styles.js +2 -5
- package/dist/components/StatusTag/StatusTag.js +1 -1
- package/dist/components/StatusTag/StatusTag.styles.js +4 -4
- package/dist/components/StepController/StepController.styles.js +7 -7
- package/dist/components/StepSidebar/MobileStepProgress.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 +39 -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 +97 -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 +168 -0
- package/dist/components/StokrLoader/StokrLoader.d.ts +16 -2
- package/dist/components/StokrLoader/StokrLoader.js +170 -28
- package/dist/components/StokrLoader/loaderSession.d.ts +14 -0
- package/dist/components/StokrLoader/loaderSession.js +30 -0
- package/dist/components/Switch/Switch.styles.js +12 -14
- package/dist/components/TabsNav/TabsNav.styles.js +7 -9
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +26 -11
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.d.ts +29 -12
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +103 -30
- package/dist/components/Text/Text.styles.d.ts +2 -1
- package/dist/components/Text/Text.styles.js +36 -70
- package/dist/components/TextLink/TextLink.styles.js +5 -7
- package/dist/components/Timeline/Timeline.styles.js +17 -23
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -2
- package/dist/components/Tooltip/Tooltip.styles.js +4 -5
- package/dist/components/breakdown/Breakdown.js +3 -5
- package/dist/components/logo/Logo.js +1 -1
- package/dist/constants/chainLogos.d.ts +9 -0
- package/dist/constants/chainLogos.js +17 -0
- package/dist/design-system/css/base.css +14 -14
- package/dist/design-system/css-builders.d.ts +25 -0
- package/dist/design-system/css-builders.js +81 -0
- package/dist/design-system/generated/fonts.css +0 -49
- package/dist/design-system/generated/text-classes.css +123 -123
- package/dist/design-system/generated/text-styles.d.ts +24 -24
- package/dist/design-system/generated/text-styles.js +123 -123
- package/dist/design-system/generated/tokens.css +417 -412
- package/dist/design-system/index.d.ts +2 -1
- package/dist/design-system/styled/build-theme.js +1 -1
- package/dist/design-system/tokens/colors.d.ts +1 -1
- package/dist/design-system/tokens/colors.js +1 -1
- package/dist/design-system/tokens/fonts.d.ts +6 -2
- package/dist/design-system/tokens/fonts.js +1 -1
- package/dist/design-system/tokens/semantic.d.ts +15 -3
- package/dist/design-system/tokens/semantic.js +5 -1
- package/dist/design-system/tokens/typography.d.ts +1 -1
- package/dist/design-system/tokens/typography.js +64 -41
- package/dist/index.d.ts +84 -7
- package/dist/index.js +24 -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
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
export { theme, type AppTheme } from './styled/theme';
|
|
7
7
|
export { text } from './styled/text';
|
|
8
8
|
export { breakpoint, type Breakpoint } from './styled/breakpoint';
|
|
9
|
-
export {
|
|
9
|
+
export { typeScaleCss, fontCss } from './css-builders';
|
|
10
|
+
export { ACTIVE_FONT, activeFontPreloadFile, ACTIVE_SCALE, breakpoints, fontFamilies, fontWeights, colorVar, colors, semantic, space, textNames, type ColorName, type FontFamilyName, type ScaleName, type SemanticName, type TextName, } from './tokens/index';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { elevation, radius, space } from "../tokens/layout.js";
|
|
2
2
|
import { colors } from "../tokens/colors.js";
|
|
3
3
|
import { semantic } from "../tokens/semantic.js";
|
|
4
|
-
const v = (name) => `var(
|
|
4
|
+
const v = (name) => `var(--${name})`;
|
|
5
5
|
const camel = (s) => s.replace(/-([a-z0-9])/g, (_, c) => c.toUpperCase());
|
|
6
6
|
const group = (entries) => Object.fromEntries(entries);
|
|
7
7
|
const color = Object.entries(semantic).reduce((acc, [name]) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The colours of the STOKR UI kit (the kit calls them primitives; the library exports them as `colors`) (artifact snapshot: source/artifact-tokens.json).
|
|
3
|
-
* Keys are the kit's own names; CSS variables are
|
|
3
|
+
* Keys are the kit's own names; CSS variables are --<key> for brand and --color-<key> for the rest.
|
|
4
4
|
* Never reference these in components: use the semantic tokens (semantic.ts) or the theme.
|
|
5
5
|
*/
|
|
6
6
|
export declare const colors: {
|
|
@@ -91,7 +91,7 @@ const colors = {
|
|
|
91
91
|
"progress-blue-start": "#0240A2",
|
|
92
92
|
"progress-blue-stop": "#66A3FE"
|
|
93
93
|
};
|
|
94
|
-
const colorVar = (name) => name.startsWith("brand-") ?
|
|
94
|
+
const colorVar = (name) => name.startsWith("brand-") ? `--${name}` : `--color-${name}`;
|
|
95
95
|
export {
|
|
96
96
|
colorVar,
|
|
97
97
|
colors
|
|
@@ -25,8 +25,12 @@ export interface FontFaceSet {
|
|
|
25
25
|
stretch: boolean;
|
|
26
26
|
files: readonly FontFile[];
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
29
|
-
|
|
28
|
+
/**
|
|
29
|
+
* The weights stokr.io has always loaded. No 500 on purpose: the apps' `font-weight: 500` (menus, labels, links) has always
|
|
30
|
+
* matched the 400 face, and declaring a 500 face would turn all of it medium. One face per weight, not a `300 800` range:
|
|
31
|
+
* mixed with the single-weight Bitcoin face a range face lost the match at some weights and text fell back to serif.
|
|
32
|
+
*/
|
|
33
|
+
export declare const loadedWeights: readonly [300, 400, 600, 700, 800];
|
|
30
34
|
export declare const fontFaces: Record<FontFamilyName, readonly FontFaceSet[]>;
|
|
31
35
|
/** File name (in fonts/, shipped under `@stokr/components-library/design-system/fonts/`) of the active family's main latin file: what a host preloads. */
|
|
32
36
|
export declare const activeFontPreloadFile: string;
|
|
@@ -2,7 +2,7 @@ import { ACTIVE_FONT } from "./typography.js";
|
|
|
2
2
|
const LATIN = "U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD";
|
|
3
3
|
const LATIN_EXT = "U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF";
|
|
4
4
|
const INTER_LATIN_EXT = LATIN_EXT.replace("U+20AD-20C4", "U+20AD-20C0");
|
|
5
|
-
const loadedWeights = [300, 400,
|
|
5
|
+
const loadedWeights = [300, 400, 600, 700, 800];
|
|
6
6
|
const fontFaces = {
|
|
7
7
|
openSans: [
|
|
8
8
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorName } from './colors';
|
|
2
2
|
/**
|
|
3
3
|
* Semantic colour tokens: what components use. Names mirror the kit's variables (text/primary → text-primary,
|
|
4
|
-
* CSS --
|
|
4
|
+
* CSS --text-primary). Each token points at a colour for the light and the dark theme.
|
|
5
5
|
*/
|
|
6
6
|
export interface SemanticPair {
|
|
7
7
|
light: ColorName;
|
|
@@ -205,8 +205,8 @@ export declare const semantic: {
|
|
|
205
205
|
readonly dark: "red-500";
|
|
206
206
|
};
|
|
207
207
|
readonly 'status-error-text': {
|
|
208
|
-
readonly light: "red-
|
|
209
|
-
readonly dark: "red-
|
|
208
|
+
readonly light: "red-500";
|
|
209
|
+
readonly dark: "red-400";
|
|
210
210
|
};
|
|
211
211
|
readonly 'status-error-icon': {
|
|
212
212
|
readonly light: "red-500";
|
|
@@ -228,6 +228,18 @@ export declare const semantic: {
|
|
|
228
228
|
readonly light: "neutral-700";
|
|
229
229
|
readonly dark: "neutral-500";
|
|
230
230
|
};
|
|
231
|
+
readonly 'status-info-blue-bg': {
|
|
232
|
+
readonly light: "blue-50";
|
|
233
|
+
readonly dark: "blue-800";
|
|
234
|
+
};
|
|
235
|
+
readonly 'status-info-blue-text': {
|
|
236
|
+
readonly light: "neutral-900";
|
|
237
|
+
readonly dark: "brand-pure-white";
|
|
238
|
+
};
|
|
239
|
+
readonly 'status-info-blue-icon': {
|
|
240
|
+
readonly light: "blue-500";
|
|
241
|
+
readonly dark: "blue-400";
|
|
242
|
+
};
|
|
231
243
|
readonly 'tag-pending-bg': {
|
|
232
244
|
readonly light: "yellow-50";
|
|
233
245
|
readonly dark: "yellow-900";
|
|
@@ -53,12 +53,16 @@ const semantic = {
|
|
|
53
53
|
"status-warning-icon": { light: "yellow-600", dark: "yellow-600" },
|
|
54
54
|
"status-error-bg": { light: "red-100", dark: "red-900" },
|
|
55
55
|
"status-error-border": { light: "red-500", dark: "red-500" },
|
|
56
|
-
"status-error-text": { light: "red-
|
|
56
|
+
"status-error-text": { light: "red-500", dark: "red-400" },
|
|
57
57
|
"status-error-icon": { light: "red-500", dark: "red-400" },
|
|
58
58
|
"status-info-bg": { light: "neutral-100", dark: "neutral-900" },
|
|
59
59
|
"status-info-border": { light: "neutral-300", dark: "neutral-700" },
|
|
60
60
|
"status-info-text": { light: "neutral-900", dark: "brand-pure-white" },
|
|
61
61
|
"status-info-icon": { light: "neutral-700", dark: "neutral-500" },
|
|
62
|
+
/* The blue info banner (what status-info-* was before the kit made it neutral). Radius radius-lg, no border: so no -border. */
|
|
63
|
+
"status-info-blue-bg": { light: "blue-50", dark: "blue-800" },
|
|
64
|
+
"status-info-blue-text": { light: "neutral-900", dark: "brand-pure-white" },
|
|
65
|
+
"status-info-blue-icon": { light: "blue-500", dark: "blue-400" },
|
|
62
66
|
/* Tag color */
|
|
63
67
|
"tag-pending-bg": { light: "yellow-50", dark: "yellow-900" },
|
|
64
68
|
"tag-pending-text": { light: "orange-700", dark: "yellow-500" },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Type scales from the STOKR UI kit (section "Type scale"). Three scales share the same style names, so switching is one
|
|
3
3
|
* constant (ACTIVE_SCALE): `uppercase` is what stokr.io ships today, `sentence1` is fluid (clamp 375 → 1440 px),
|
|
4
4
|
* `sentence2` is the updated sentence-case scale with whole-pixel line-heights.
|
|
5
|
-
* Values here are the only place a font size, weight or spacing is written; CSS reads them as --
|
|
5
|
+
* Values here are the only place a font size, weight or spacing is written; CSS reads them as --text-<name>-*.
|
|
6
6
|
*/
|
|
7
7
|
export type FontFamilyName = 'openSans' | 'inter';
|
|
8
8
|
export type ScaleName = 'uppercase' | 'sentence1' | 'sentence2';
|
|
@@ -52,7 +52,10 @@ const sentenceCommon = {
|
|
|
52
52
|
bodyL: { desktop: style(18, 28, 400, "0") },
|
|
53
53
|
bodyS: { desktop: style(14, 20, 400, "0") },
|
|
54
54
|
buttonLabel: { desktop: style(12, 24, 700, "0.06em", { uppercase: true }) },
|
|
55
|
-
dataLabel: {
|
|
55
|
+
dataLabel: {
|
|
56
|
+
desktop: style(12, 20, 400, "0.06em", { uppercase: true }),
|
|
57
|
+
mobile: { size: "11px", lineHeight: "16px" }
|
|
58
|
+
},
|
|
56
59
|
label: { desktop: style(11, 16, 700, "0.06em", { uppercase: true }) },
|
|
57
60
|
overline: { desktop: style(12, 16, 600, "0.06em", { uppercase: true }) },
|
|
58
61
|
labelRegular: { desktop: style(11, 16, 400, "0.06em", { uppercase: true }) },
|
|
@@ -63,58 +66,78 @@ const sentenceCommon = {
|
|
|
63
66
|
linkS: { desktop: style(14, 20, 600, "0", { underline: true }) }
|
|
64
67
|
};
|
|
65
68
|
const sentence2 = {
|
|
66
|
-
display: { desktop: style(64, 68, 700, "0") },
|
|
67
|
-
titleXxl: { desktop: style(48, 56, 700, "0") },
|
|
68
|
-
titleXl: { desktop: style(40, 48, 700, "0") },
|
|
69
|
-
titleL: { desktop: style(32, 40, 700, "0") },
|
|
70
|
-
titleM: { desktop: style(24, 32, 700, "0") },
|
|
71
|
-
titleS: { desktop: style(20, 28, 700, "0") },
|
|
72
|
-
titleXs: { desktop: style(18, 24, 700, "0") },
|
|
73
|
-
titleXxs: { desktop: style(16, 24, 700, "0") },
|
|
69
|
+
display: { desktop: style(64, 68, 700, "0"), mobile: { size: "40px", lineHeight: "44px" } },
|
|
70
|
+
titleXxl: { desktop: style(48, 56, 700, "0"), mobile: { size: "32px", lineHeight: "40px" } },
|
|
71
|
+
titleXl: { desktop: style(40, 48, 700, "0"), mobile: { size: "28px", lineHeight: "36px" } },
|
|
72
|
+
titleL: { desktop: style(32, 40, 700, "0"), mobile: { size: "24px", lineHeight: "32px" } },
|
|
73
|
+
titleM: { desktop: style(24, 32, 700, "0"), mobile: { size: "20px", lineHeight: "28px" } },
|
|
74
|
+
titleS: { desktop: style(20, 28, 700, "0"), mobile: { size: "18px", lineHeight: "26px" } },
|
|
75
|
+
titleXs: { desktop: style(18, 24, 700, "0"), mobile: { size: "16px", lineHeight: "24px" } },
|
|
76
|
+
titleXxs: { desktop: style(16, 24, 700, "0"), mobile: { size: "14px", lineHeight: "20px" } },
|
|
74
77
|
bodyM: { desktop: style(16, 26, 400, "0") },
|
|
75
78
|
...sentenceCommon
|
|
76
79
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
const sentence1 = {
|
|
81
|
+
...sentence2,
|
|
82
|
+
display: { desktop: { ...sentence2.display.desktop, size: fluid(44, 66), lineHeight: "1.15" } },
|
|
83
|
+
titleXxl: { desktop: { ...sentence2.titleXxl.desktop, size: fluid(36, 56), lineHeight: "1.2" } },
|
|
84
|
+
titleXl: { desktop: { ...sentence2.titleXl.desktop, size: fluid(30, 44), lineHeight: "1.25" } },
|
|
85
|
+
titleL: { desktop: { ...sentence2.titleL.desktop, size: fluid(24, 32), lineHeight: "1.3" } },
|
|
86
|
+
titleM: { desktop: { ...sentence2.titleM.desktop, size: fluid(20, 24), lineHeight: "1.35" } },
|
|
87
|
+
titleS: { desktop: { ...sentence2.titleS.desktop, size: fluid(18, 20), lineHeight: "1.45" } },
|
|
88
|
+
titleXs: { desktop: { ...sentence2.titleXs.desktop, size: fluid(16, 18), lineHeight: "1.45" } },
|
|
89
|
+
titleXxs: { desktop: { ...sentence2.titleXxs.desktop, size: fluid(14, 16), lineHeight: "1.45" } },
|
|
86
90
|
bodyL: { desktop: style(18, 28, 400, "0", { lineHeight: "1.65" }) },
|
|
87
|
-
bodyM: { desktop: { ...sentence2.bodyM.desktop } },
|
|
88
|
-
bodyS: { desktop: { ...sentence2.bodyS.desktop } },
|
|
89
|
-
caption: { desktop: { ...sentence2.caption.desktop } }
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
display: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
bodyM: { desktop: { ...sentence2.bodyM.desktop, lineHeight: "1.65" } },
|
|
92
|
+
bodyS: { desktop: { ...sentence2.bodyS.desktop, lineHeight: "1.5" } },
|
|
93
|
+
caption: { desktop: { ...sentence2.caption.desktop, lineHeight: "1.4" } }
|
|
94
|
+
};
|
|
95
|
+
const uppercase = {
|
|
96
|
+
display: {
|
|
97
|
+
desktop: style(66, 64, 800, "3px", { uppercase: true }),
|
|
98
|
+
mobile: { size: "48px", lineHeight: "40px", letterSpacing: "2px" }
|
|
99
|
+
},
|
|
100
|
+
titleXxl: {
|
|
101
|
+
desktop: style(48, 55, 800, "1.8px", { uppercase: true }),
|
|
102
|
+
mobile: { size: "32px", lineHeight: "37px", letterSpacing: "1.2px" }
|
|
103
|
+
},
|
|
104
|
+
titleXl: {
|
|
105
|
+
desktop: style(34, 40, 800, "1.5px", { uppercase: true }),
|
|
106
|
+
mobile: { size: "28px", lineHeight: "32px", letterSpacing: "1.2px" }
|
|
107
|
+
},
|
|
108
|
+
titleL: { desktop: style(22, 28, 800, "0.8px", { uppercase: true }), mobile: { size: "20px", lineHeight: "24px" } },
|
|
96
109
|
titleM: { desktop: style(20, 24, 800, "0.8px", { uppercase: true }) },
|
|
97
|
-
titleS: { desktop: style(18, 24, 700, "0.8px", { uppercase: true }) },
|
|
98
|
-
titleXs: { desktop: style(16, 24, 700, "0.8px", { uppercase: true }) },
|
|
99
|
-
titleXxs: {
|
|
110
|
+
titleS: { desktop: style(18, 24, 700, "0.8px", { uppercase: true }), mobile: { size: "16px" } },
|
|
111
|
+
titleXs: { desktop: style(16, 24, 700, "0.8px", { uppercase: true }), mobile: { size: "14px", lineHeight: "20px" } },
|
|
112
|
+
titleXxs: {
|
|
113
|
+
desktop: style(14, 20, 700, "1px", { uppercase: true }),
|
|
114
|
+
mobile: { size: "12px", lineHeight: "16px", letterSpacing: "0.8px" }
|
|
115
|
+
},
|
|
100
116
|
subtitleL: { desktop: style(18, 28, 600, "-0.014em") },
|
|
101
|
-
subtitleM: { desktop: style(16, 24, 600, "
|
|
102
|
-
subtitleS: { desktop: style(14, 20, 600, "
|
|
103
|
-
bodyL: { desktop: style(18, 28, 400, "0") },
|
|
104
|
-
bodyM: { desktop: style(16, 24,
|
|
105
|
-
bodyS: { desktop: style(14, 20,
|
|
117
|
+
subtitleM: { desktop: style(16, 24, 600, "0.6px") },
|
|
118
|
+
subtitleS: { desktop: style(14, 20, 600, "0.5px") },
|
|
119
|
+
bodyL: { desktop: style(18, 28, 400, "0"), mobile: { size: "16px", lineHeight: "24px" } },
|
|
120
|
+
bodyM: { desktop: style(16, 24, 300, "0.6px", { lineHeight: "1.5" }) },
|
|
121
|
+
bodyS: { desktop: style(14, 20, 300, "0.5px") },
|
|
106
122
|
buttonLabel: { desktop: style(12, 24, 700, "2px", { uppercase: true }) },
|
|
107
|
-
dataLabel: { desktop: style(12, 20, 400, "2px", { uppercase: true }) },
|
|
108
|
-
label: { desktop: style(11,
|
|
123
|
+
dataLabel: { desktop: style(12, 20, 400, "2px", { uppercase: true }), mobile: { size: "11px", lineHeight: "16px" } },
|
|
124
|
+
label: { desktop: style(11, 20, 700, "2px", { uppercase: true }) },
|
|
109
125
|
overline: { desktop: style(11, 16, 600, "2px", { uppercase: true }) },
|
|
110
|
-
labelRegular: { desktop: style(11,
|
|
111
|
-
caption: { desktop: style(12,
|
|
112
|
-
footnote: { desktop: style(9, 16,
|
|
113
|
-
|
|
126
|
+
labelRegular: { desktop: style(11, 20, 400, "2px", { uppercase: true }) },
|
|
127
|
+
caption: { desktop: style(12, 18, 400, "0.6px") },
|
|
128
|
+
footnote: { desktop: style(9, 16, 300, "0.4px") },
|
|
129
|
+
linkL: sentenceCommon.linkL,
|
|
130
|
+
linkM: sentenceCommon.linkM,
|
|
131
|
+
linkS: sentenceCommon.linkS
|
|
132
|
+
};
|
|
133
|
+
const scales = { uppercase, sentence1, sentence2 };
|
|
134
|
+
const MOBILE_MAX_WIDTH = "767px";
|
|
114
135
|
export {
|
|
115
136
|
ACTIVE_FONT,
|
|
116
137
|
ACTIVE_SCALE,
|
|
138
|
+
MOBILE_MAX_WIDTH,
|
|
117
139
|
fontFamilies,
|
|
118
140
|
fontWeights,
|
|
141
|
+
scales,
|
|
119
142
|
textNames
|
|
120
143
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// sources mark every destructured prop as required. Components written in TS re-export
|
|
3
3
|
// their real types; JS exports stay `any` until converted. Export names must match
|
|
4
4
|
// src/index.js (checked at build time).
|
|
5
|
-
import type { ComponentType } from 'react'
|
|
5
|
+
import type { ComponentType, ReactNode } from 'react'
|
|
6
|
+
import type { FieldVariant } from './styles/borderedField'
|
|
6
7
|
|
|
7
8
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
9
|
type AnyComponent = any
|
|
@@ -18,11 +19,33 @@ export {
|
|
|
18
19
|
StokrLoader,
|
|
19
20
|
StokrLoaderBox,
|
|
20
21
|
LoaderRing,
|
|
22
|
+
LoaderLogo,
|
|
21
23
|
LoadingDots,
|
|
22
24
|
loaderGif,
|
|
23
25
|
AnimatedSpan,
|
|
24
26
|
} from './components/StokrLoader/StokrLoader'
|
|
25
|
-
export type {
|
|
27
|
+
export type { FieldVariant } from './styles/borderedField'
|
|
28
|
+
export { FAQ, FaqItems, FaqItem, FaqTitle, FaqContent, FaqText, FaqDropdownIcon } from './components/FAQ/FAQ'
|
|
29
|
+
export type { FAQProps, FAQEntry } from './components/FAQ/FAQ'
|
|
30
|
+
export { StepSidebar } from './components/StepSidebar/StepSidebar'
|
|
31
|
+
export type { StepSidebarProps, StepSidebarIntro, StepSidebarSupport } from './components/StepSidebar/StepSidebar'
|
|
32
|
+
export { StepProgress } from './components/StepSidebar/StepProgress'
|
|
33
|
+
export type { StepProgressProps, StepProgressItem, StepStatus } from './components/StepSidebar/StepProgress'
|
|
34
|
+
export { MobileStepProgress } from './components/StepSidebar/MobileStepProgress'
|
|
35
|
+
export type { MobileStepProgressProps, StepCaptionInfo } from './components/StepSidebar/MobileStepProgress'
|
|
36
|
+
export {
|
|
37
|
+
Select,
|
|
38
|
+
SelectControl,
|
|
39
|
+
SelectMenu,
|
|
40
|
+
SelectMenuList,
|
|
41
|
+
SelectOption,
|
|
42
|
+
SelectContainer,
|
|
43
|
+
SelectValueContainer,
|
|
44
|
+
SelectIcon,
|
|
45
|
+
SelectWrapper,
|
|
46
|
+
} from './components/Input/Select'
|
|
47
|
+
export type { SelectProps, SelectOptionItem, SelectChange, SelectValue } from './components/Input/Select'
|
|
48
|
+
export type { StokrLoaderProps, StokrLoaderVariant, LoadingDotsProps } from './components/StokrLoader/StokrLoader'
|
|
26
49
|
export { Text } from './components/Text/Text.styles'
|
|
27
50
|
export type { TextProps, TextCaptionProps, TextColor } from './components/Text/Text.styles'
|
|
28
51
|
export {
|
|
@@ -71,6 +94,15 @@ export type { SkeletonProps, SkeletonLinesProps, SkeletonStatusProps } from './c
|
|
|
71
94
|
export { Collapsible } from './components/Collapsible/Collapsible'
|
|
72
95
|
export { MaterialIcon, SvgIcon, ICON_SIZES, ICON_WEIGHTS } from './components/MaterialIcon/MaterialIcon'
|
|
73
96
|
export type { MaterialIconProps, SvgIconProps, IconSize, IconWeight } from './components/MaterialIcon/MaterialIcon'
|
|
97
|
+
export { PanelCard, PanelCardHeader, PanelCardSection, PanelCardFooter } from './components/PanelCard/PanelCard'
|
|
98
|
+
export type {
|
|
99
|
+
PanelCardProps,
|
|
100
|
+
PanelCardHeaderProps,
|
|
101
|
+
PanelCardSectionProps,
|
|
102
|
+
PanelCardFooterProps,
|
|
103
|
+
} from './components/PanelCard/PanelCard'
|
|
104
|
+
export { AddressItem } from './components/AddressItem/AddressItem'
|
|
105
|
+
export type { AddressItemProps } from './components/AddressItem/AddressItem'
|
|
74
106
|
export { registerMaterialIcons } from './components/MaterialIcon/iconConfig'
|
|
75
107
|
export { requiredMaterialIcons } from './components/MaterialIcon/requiredIcons'
|
|
76
108
|
export type { MaterialIconName, MaterialIconRegistry } from './components/MaterialIcon/iconConfig'
|
|
@@ -95,6 +127,8 @@ export {
|
|
|
95
127
|
colorVar,
|
|
96
128
|
ACTIVE_SCALE,
|
|
97
129
|
fontFamilies,
|
|
130
|
+
typeScaleCss,
|
|
131
|
+
fontCss,
|
|
98
132
|
} from './design-system'
|
|
99
133
|
export { grid, layoutGrid } from './styles/grid'
|
|
100
134
|
export { Tooltip } from './components/Tooltip/Tooltip'
|
|
@@ -103,7 +137,15 @@ export { Bubble as TooltipBubble } from './components/Tooltip/Tooltip.styles'
|
|
|
103
137
|
export { ComponentWrapper } from './components/ComponentWrapper/ComponentWrapper.styles'
|
|
104
138
|
export { DisplayOnBreakpoint } from './components/DisplayOnBreakpoint/DisplayOnBreakpoint'
|
|
105
139
|
export { InfoIcon, InfoIconWrapper, InfoIconContainer } from './components/InfoIcon/InfoIcon'
|
|
106
|
-
export type {
|
|
140
|
+
export type {
|
|
141
|
+
AppTheme,
|
|
142
|
+
Breakpoint,
|
|
143
|
+
ColorName,
|
|
144
|
+
FontFamilyName,
|
|
145
|
+
ScaleName,
|
|
146
|
+
SemanticName,
|
|
147
|
+
TextName,
|
|
148
|
+
} from './design-system'
|
|
107
149
|
export type { ComponentWrapperProps } from './components/ComponentWrapper/ComponentWrapper.styles'
|
|
108
150
|
export type { DisplayOnBreakpointProps } from './components/DisplayOnBreakpoint/DisplayOnBreakpoint'
|
|
109
151
|
export type { TooltipProps, TooltipPlacement, VirtualReference } from './components/Tooltip/Tooltip'
|
|
@@ -287,8 +329,6 @@ export { Checkbox, CheckBoxCaption } from './components/Checkbox/Checkbox'
|
|
|
287
329
|
export type { CheckboxProps } from './components/Checkbox/Checkbox'
|
|
288
330
|
export declare const ComponentScroll: AnyComponent
|
|
289
331
|
export declare const CryptoAddressWrapper: AnyComponent
|
|
290
|
-
export declare const FAQ: AnyComponent, FaqItems: AnyComponent, FaqItem: AnyComponent, FaqTitle: AnyComponent
|
|
291
|
-
export declare const FaqContent: AnyComponent, FaqText: AnyComponent, FaqDropdownIcon: AnyComponent
|
|
292
332
|
export declare const Form: AnyComponent, FormContainer: AnyComponent, FormField: AnyComponent
|
|
293
333
|
export declare const FormInfo: AnyComponent, FormError: AnyComponent
|
|
294
334
|
export declare const SearchInput: AnyComponent
|
|
@@ -296,7 +336,14 @@ export declare const InputPassword: AnyComponent
|
|
|
296
336
|
export declare const Select: AnyComponent, SelectControl: AnyComponent, SelectMenu: AnyComponent
|
|
297
337
|
export declare const SelectMenuList: AnyComponent, SelectOption: AnyComponent, SelectContainer: AnyComponent
|
|
298
338
|
export declare const SelectValueContainer: AnyComponent, SelectIcon: AnyComponent, SelectWrapper: AnyComponent
|
|
299
|
-
export declare const
|
|
339
|
+
export declare const RangeInput: AnyComponent
|
|
340
|
+
export declare const MultiSelect: AnyComponent, CheckboxWrapperDiv: AnyComponent
|
|
341
|
+
export declare const CheckboxDiv: AnyComponent, OptionLabel: AnyComponent
|
|
342
|
+
export declare const CountrySelect: AnyComponent
|
|
343
|
+
export { FlagFor } from './components/Country/FlagFor'
|
|
344
|
+
export { preloadFlags } from './components/Country/flagStore'
|
|
345
|
+
export type { FlagForProps } from './components/Country/FlagFor'
|
|
346
|
+
export declare const OtpInput: AnyComponent
|
|
300
347
|
export declare const InputWithButton: AnyComponent
|
|
301
348
|
export declare const Textarea: AnyComponent
|
|
302
349
|
export declare const SpanButton: AnyComponent
|
|
@@ -306,7 +353,35 @@ export declare const Number: AnyComponent, NumberWithContainer: AnyComponent
|
|
|
306
353
|
export declare const ProfileBox: AnyComponent
|
|
307
354
|
export declare const Radio: AnyComponent
|
|
308
355
|
export declare const RefreshButton: AnyComponent
|
|
309
|
-
export
|
|
356
|
+
export interface TaxResidenceCardValue {
|
|
357
|
+
country?: string
|
|
358
|
+
tin?: string
|
|
359
|
+
noTinIssued?: boolean
|
|
360
|
+
}
|
|
361
|
+
export interface TaxResidenceCardProps {
|
|
362
|
+
id: string
|
|
363
|
+
name?: string
|
|
364
|
+
countries: { key?: string; value: string | number; label: string }[]
|
|
365
|
+
value?: TaxResidenceCardValue
|
|
366
|
+
onChange?: (next: Required<TaxResidenceCardValue>) => void
|
|
367
|
+
onDelete?: () => void
|
|
368
|
+
open?: boolean
|
|
369
|
+
defaultOpen?: boolean
|
|
370
|
+
onToggle?: (next: boolean) => void
|
|
371
|
+
emptyTitle?: string
|
|
372
|
+
countryLabel?: string
|
|
373
|
+
tinLabel?: string
|
|
374
|
+
noTinLabel?: ReactNode
|
|
375
|
+
countryPlaceholder?: string
|
|
376
|
+
disabled?: boolean
|
|
377
|
+
hideNoTin?: boolean
|
|
378
|
+
/** `bordered`: white card with boxed fields (sign-up redesign). Default keeps the list look. */
|
|
379
|
+
variant?: FieldVariant
|
|
380
|
+
error?: { country?: boolean; tin?: boolean }
|
|
381
|
+
touched?: { country?: boolean; tin?: boolean }
|
|
382
|
+
dataCy?: string
|
|
383
|
+
}
|
|
384
|
+
export declare const TaxResidenceCard: ComponentType<TaxResidenceCardProps>
|
|
310
385
|
export declare const RequestDataBox: AnyComponent
|
|
311
386
|
export declare const SectionTitle: AnyComponent
|
|
312
387
|
export declare const StepController: AnyComponent
|
|
@@ -356,6 +431,8 @@ export declare const useTransactionPolling: AnyFn
|
|
|
356
431
|
/* STYLES */
|
|
357
432
|
|
|
358
433
|
/* CONSTANTS & VARIABLES */
|
|
434
|
+
export { chainLogos } from './constants/chainLogos'
|
|
435
|
+
export type { ChainLogoId } from './constants/chainLogos'
|
|
359
436
|
export declare const ProjectTypes: AnyValue
|
|
360
437
|
export declare const emailRegex: RegExp
|
|
361
438
|
export declare const transactionTypeDisplayNames: AnyValue
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,9 @@ import { ComponentWrapper } from "./components/ComponentWrapper/ComponentWrapper
|
|
|
16
16
|
import { CryptoAddress, MemoCryptoAddress } from "./components/CryptoAddress/CryptoAddress.js";
|
|
17
17
|
import { CryptoAddressWrapper } from "./components/CryptoAddressWrapper/CryptoAddressWrapper.js";
|
|
18
18
|
import { FAQ } from "./components/FAQ/FAQ.js";
|
|
19
|
+
import { StepSidebar } from "./components/StepSidebar/StepSidebar.js";
|
|
20
|
+
import { StepProgress } from "./components/StepSidebar/StepProgress.js";
|
|
21
|
+
import { MobileStepProgress } from "./components/StepSidebar/MobileStepProgress.js";
|
|
19
22
|
import { Form } from "./components/Form/Form.js";
|
|
20
23
|
import { Card, CardHeader, CardHeaderRegular, CardLeftText, CardRightText, CardTitle, CardTitleContainer } from "./components/Card/Card.styles.js";
|
|
21
24
|
import { Column, FlexContainer, FlexGrid, PageWrapper, Row, Wrapper } from "./components/Grid/Grid.styles.js";
|
|
@@ -30,7 +33,9 @@ import { InputPassword } from "./components/Input/InputPassword.js";
|
|
|
30
33
|
import { RangeInput } from "./components/Input/RangeInput.js";
|
|
31
34
|
import { Select } from "./components/Input/Select.js";
|
|
32
35
|
import { CheckboxDiv, CheckboxWrapperDiv, MultiSelect, OptionLabel } from "./components/Input/MultiSelect.js";
|
|
33
|
-
import { CountrySelect
|
|
36
|
+
import { CountrySelect } from "./components/Country/CountrySelect.js";
|
|
37
|
+
import { FlagFor } from "./components/Country/FlagFor.js";
|
|
38
|
+
import { preloadFlags } from "./components/Country/flagStore.js";
|
|
34
39
|
import { OtpInput } from "./components/Input/OtpInput.js";
|
|
35
40
|
import { InputWithButton } from "./components/Input/InputWithButton.js";
|
|
36
41
|
import { Textarea } from "./components/Input/Textarea.js";
|
|
@@ -45,6 +50,8 @@ import { SideModalBody, SideModalFooter, SideModalHeader } from "./components/Mo
|
|
|
45
50
|
import { Skeleton, SkeletonLines, SkeletonStatus } from "./components/Skeleton/Skeleton.js";
|
|
46
51
|
import { Collapsible } from "./components/Collapsible/Collapsible.js";
|
|
47
52
|
import { ICON_SIZES, ICON_WEIGHTS, MaterialIcon, SvgIcon } from "./components/MaterialIcon/MaterialIcon.js";
|
|
53
|
+
import { PanelCard, PanelCardFooter, PanelCardHeader, PanelCardSection } from "./components/PanelCard/PanelCard.js";
|
|
54
|
+
import { AddressItem } from "./components/AddressItem/AddressItem.js";
|
|
48
55
|
import { registerMaterialIcons } from "./components/MaterialIcon/iconConfig.js";
|
|
49
56
|
import { requiredMaterialIcons } from "./components/MaterialIcon/requiredIcons.js";
|
|
50
57
|
import { Section } from "./components/Section/Section.js";
|
|
@@ -90,7 +97,7 @@ import { Timeline } from "./components/Timeline/Timeline.js";
|
|
|
90
97
|
import { TimelineStep } from "./components/Timeline/TimelineStep.js";
|
|
91
98
|
import { StatusTag } from "./components/StatusTag/StatusTag.js";
|
|
92
99
|
import { StatusDot } from "./components/StatusDot/StatusDot.js";
|
|
93
|
-
import { AnimatedSpan, LoaderRing, LoadingDots, StokrLoader, StokrLoaderBox, loaderGif } from "./components/StokrLoader/StokrLoader.js";
|
|
100
|
+
import { AnimatedSpan, LoaderLogo, LoaderRing, LoadingDots, StokrLoader, StokrLoaderBox, loaderGif } from "./components/StokrLoader/StokrLoader.js";
|
|
94
101
|
import { InfoBox } from "./components/InfoBox/InfoBox.js";
|
|
95
102
|
import { IdentityCountryRow, IdentityResidencyItem, IdentitySectionHeader } from "./components/IdentityInfo/IdentityInfo.js";
|
|
96
103
|
import { Inner, Outer, ThumbH, ThumbV, TrackH, TrackV } from "./components/ComponentScroll/ComponentScroll.styles.js";
|
|
@@ -114,6 +121,7 @@ import { useMediaQuery } from "./hooks/useMediaQuery.js";
|
|
|
114
121
|
import { default as default3, layoutGrid } from "./styles/grid.js";
|
|
115
122
|
import { DisplayOnBreakpoint } from "./components/DisplayOnBreakpoint/DisplayOnBreakpoint.js";
|
|
116
123
|
import { ProjectTypes, emailRegex, transactionTypeDisplayNames } from "./constants/globalVariables.js";
|
|
124
|
+
import { chainLogos } from "./constants/chainLogos.js";
|
|
117
125
|
import { ACTIVE_FONT, ACTIVE_SCALE, fontFamilies, fontWeights, textNames } from "./design-system/tokens/typography.js";
|
|
118
126
|
import { default as default4 } from "./components/SvgIcons/AdminBadgeSvg.js";
|
|
119
127
|
import { ArrowSimple } from "./components/icons/ArrowSimple.js";
|
|
@@ -121,7 +129,6 @@ import { BackButtonIcon, StyledBackButton, StyledBackButtonExternal, StyledWindo
|
|
|
121
129
|
import { Breakdown } from "./components/breakdown/Breakdown.js";
|
|
122
130
|
import { default as default5 } from "./components/SvgIcons/CapsLockSvg.js";
|
|
123
131
|
import { FaqContent, FaqDropdownIcon, FaqItem, FaqItems, FaqText, FaqTitle } from "./components/FAQ/FAQ.styles.js";
|
|
124
|
-
import * as Flags from "country-flag-icons/react/3x2";
|
|
125
132
|
import { FormContainer, FormError, FormField, FormInfo } from "./components/Form/Form.styles.js";
|
|
126
133
|
import { FieldLabel, FieldValue } from "./components/IdentityInfo/IdentityInfo.styles.js";
|
|
127
134
|
import { Container, Icon } from "./components/InfoIcon/InfoIcon.styles.js";
|
|
@@ -148,6 +155,7 @@ import { breakpoint } from "./design-system/styled/breakpoint.js";
|
|
|
148
155
|
import { breakpoints } from "./design-system/tokens/breakpoints.js";
|
|
149
156
|
import { colorVar, colors } from "./design-system/tokens/colors.js";
|
|
150
157
|
import { copyTextToClipboard } from "./utils/copy-text-to-clipboard.js";
|
|
158
|
+
import { fontCss, typeScaleCss } from "./design-system/css-builders.js";
|
|
151
159
|
import { semantic } from "./design-system/tokens/semantic.js";
|
|
152
160
|
import { text } from "./design-system/styled/text.js";
|
|
153
161
|
import { theme } from "./design-system/styled/build-theme.js";
|
|
@@ -155,6 +163,7 @@ import { useSnackbar } from "./components/Snackbar/useSnackbar.js";
|
|
|
155
163
|
export {
|
|
156
164
|
ACTIVE_FONT,
|
|
157
165
|
ACTIVE_SCALE,
|
|
166
|
+
AddressItem,
|
|
158
167
|
default4 as AdminBadgeSvg,
|
|
159
168
|
AgreementItem,
|
|
160
169
|
AnimatedSpan,
|
|
@@ -214,7 +223,6 @@ export {
|
|
|
214
223
|
FaqText,
|
|
215
224
|
FaqTitle,
|
|
216
225
|
FlagFor,
|
|
217
|
-
Flags,
|
|
218
226
|
FlexContainer,
|
|
219
227
|
FlexGrid,
|
|
220
228
|
Form,
|
|
@@ -244,6 +252,7 @@ export {
|
|
|
244
252
|
Wrapper2 as InputWrapper,
|
|
245
253
|
LOTTIE_ANIMATIONS,
|
|
246
254
|
LinkText,
|
|
255
|
+
LoaderLogo,
|
|
247
256
|
LoaderRing,
|
|
248
257
|
LoadingDots,
|
|
249
258
|
Logo,
|
|
@@ -252,6 +261,7 @@ export {
|
|
|
252
261
|
MaterialIcon,
|
|
253
262
|
MemoCryptoAddress,
|
|
254
263
|
MenuNav,
|
|
264
|
+
MobileStepProgress,
|
|
255
265
|
Modal,
|
|
256
266
|
ModalBack,
|
|
257
267
|
Box as ModalBox,
|
|
@@ -276,6 +286,10 @@ export {
|
|
|
276
286
|
PageWrapper,
|
|
277
287
|
Pagination,
|
|
278
288
|
PaginationControls,
|
|
289
|
+
PanelCard,
|
|
290
|
+
PanelCardFooter,
|
|
291
|
+
PanelCardHeader,
|
|
292
|
+
PanelCardSection,
|
|
279
293
|
PaymentDetailsCard,
|
|
280
294
|
PaymentDisplay,
|
|
281
295
|
PaymentModal,
|
|
@@ -333,6 +347,8 @@ export {
|
|
|
333
347
|
StepControllerContext,
|
|
334
348
|
StepControllerProgress,
|
|
335
349
|
StepControllerProvider,
|
|
350
|
+
StepProgress,
|
|
351
|
+
StepSidebar,
|
|
336
352
|
StokrLoader,
|
|
337
353
|
StokrLoaderBox,
|
|
338
354
|
StyledBackButton,
|
|
@@ -377,6 +393,7 @@ export {
|
|
|
377
393
|
breakpoint,
|
|
378
394
|
breakpoints,
|
|
379
395
|
capitalize,
|
|
396
|
+
chainLogos,
|
|
380
397
|
colorVar,
|
|
381
398
|
colors,
|
|
382
399
|
confirm,
|
|
@@ -386,6 +403,7 @@ export {
|
|
|
386
403
|
emailRegex,
|
|
387
404
|
fixDecimals,
|
|
388
405
|
flatten,
|
|
406
|
+
fontCss,
|
|
389
407
|
fontFamilies,
|
|
390
408
|
fontWeights,
|
|
391
409
|
formatAmount,
|
|
@@ -420,6 +438,7 @@ export {
|
|
|
420
438
|
openFile,
|
|
421
439
|
parseAmount,
|
|
422
440
|
paymentUnit,
|
|
441
|
+
preloadFlags,
|
|
423
442
|
projectTokenUnit,
|
|
424
443
|
projectUnit,
|
|
425
444
|
registerMaterialIcons,
|
|
@@ -444,6 +463,7 @@ export {
|
|
|
444
463
|
toFixedAmount,
|
|
445
464
|
tokenUnit,
|
|
446
465
|
transactionTypeDisplayNames,
|
|
466
|
+
typeScaleCss,
|
|
447
467
|
usCountries,
|
|
448
468
|
useComponentVisible,
|
|
449
469
|
useContainerSize,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="40" cy="40" r="40" fill="#E6212F"/>
|
|
3
|
+
<g transform="translate(18 20.5) scale(0.0689)" fill="#FFFFFF">
|
|
4
|
+
<path d="M399.885 563.465H613.609C632.467 563.465 644.269 543.041 634.827 526.718L527.966 341.641C518.524 325.318 494.97 325.318 485.529 341.641L378.667 526.718C369.226 543.041 381.027 563.465 399.885 563.465Z"/>
|
|
5
|
+
<path d="M426.609 166.12L338.779 13.9644C329.909 -1.41521 307.697 -1.41521 298.827 13.9644L3.43383 525.589C-6.28089 542.435 5.86872 563.454 25.2982 563.454H201.182C219.94 563.454 237.258 553.441 246.625 537.217L426.609 225.477C437.218 207.116 437.218 184.481 426.609 166.12Z"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const avalanche = "data:image/svg+xml,%3csvg%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='40'%20cy='40'%20r='40'%20fill='%23E6212F'/%3e%3cg%20transform='translate(18%2020.5)%20scale(0.0689)'%20fill='%23FFFFFF'%3e%3cpath%20d='M399.885%20563.465H613.609C632.467%20563.465%20644.269%20543.041%20634.827%20526.718L527.966%20341.641C518.524%20325.318%20494.97%20325.318%20485.529%20341.641L378.667%20526.718C369.226%20543.041%20381.027%20563.465%20399.885%20563.465Z'/%3e%3cpath%20d='M426.609%20166.12L338.779%2013.9644C329.909%20-1.41521%20307.697%20-1.41521%20298.827%2013.9644L3.43383%20525.589C-6.28089%20542.435%205.86872%20563.454%2025.2982%20563.454H201.182C219.94%20563.454%20237.258%20553.441%20246.625%20537.217L426.609%20225.477C437.218%20207.116%20437.218%20184.481%20426.609%20166.12Z'/%3e%3c/g%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
avalanche as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_1221_303" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="80" height="80">
|
|
3
|
+
<path d="M80 0H0V80H80V0Z" fill="white"/>
|
|
4
|
+
</mask>
|
|
5
|
+
<g mask="url(#mask0_1221_303)">
|
|
6
|
+
<path d="M40 80C62.0914 80 80 62.0914 80 40C80 17.9086 62.0914 0 40 0C17.9086 0 0 17.9086 0 40C0 62.0914 17.9086 80 40 80Z" fill="#677FE3"/>
|
|
7
|
+
<path d="M40.198 7.67578L39.7656 9.14895V51.8962L40.198 52.3289L59.987 40.5999L40.198 7.67578Z" fill="#C1CBF2"/>
|
|
8
|
+
<path d="M40.2065 7.67578L20.4175 40.5999L40.2065 52.3289V31.5807V7.67578Z" fill="white"/>
|
|
9
|
+
<path d="M40.2046 56.0886L39.9609 56.3862V71.6136L40.2046 72.3272L60.0053 44.3652L40.2046 56.0886Z" fill="#C1CBF2"/>
|
|
10
|
+
<path d="M40.2065 72.3269V56.0882L20.4175 44.3652L40.2065 72.3269Z" fill="white"/>
|
|
11
|
+
<path d="M40.1953 52.3301L59.984 40.6011L40.1953 31.582V52.3301Z" fill="#8497E8"/>
|
|
12
|
+
<path d="M20.4175 40.6011L40.2061 52.3301V31.582L20.4175 40.6011Z" fill="#C1CBF2"/>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const ethereum = "data:image/svg+xml,%3csvg%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_1221_303'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='80'%20height='80'%3e%3cpath%20d='M80%200H0V80H80V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1221_303)'%3e%3cpath%20d='M40%2080C62.0914%2080%2080%2062.0914%2080%2040C80%2017.9086%2062.0914%200%2040%200C17.9086%200%200%2017.9086%200%2040C0%2062.0914%2017.9086%2080%2040%2080Z'%20fill='%23677FE3'/%3e%3cpath%20d='M40.198%207.67578L39.7656%209.14895V51.8962L40.198%2052.3289L59.987%2040.5999L40.198%207.67578Z'%20fill='%23C1CBF2'/%3e%3cpath%20d='M40.2065%207.67578L20.4175%2040.5999L40.2065%2052.3289V31.5807V7.67578Z'%20fill='white'/%3e%3cpath%20d='M40.2046%2056.0886L39.9609%2056.3862V71.6136L40.2046%2072.3272L60.0053%2044.3652L40.2046%2056.0886Z'%20fill='%23C1CBF2'/%3e%3cpath%20d='M40.2065%2072.3269V56.0882L20.4175%2044.3652L40.2065%2072.3269Z'%20fill='white'/%3e%3cpath%20d='M40.1953%2052.3301L59.984%2040.6011L40.1953%2031.582V52.3301Z'%20fill='%238497E8'/%3e%3cpath%20d='M20.4175%2040.6011L40.2061%2052.3301V31.582L20.4175%2040.6011Z'%20fill='%23C1CBF2'/%3e%3c/g%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
ethereum as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Group">
|
|
3
|
+
<path id="Vector" d="M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z" fill="#0D1437"/>
|
|
4
|
+
<path id="Vector_2" d="M14.8848 13.256C15.6448 8.7024 20.5104 9.3056 21.0896 9.3952C21.6928 9.5776 22.2816 8.9792 21.9408 8.4016C20.6 6.1104 17.9296 4.616 15.9008 4.5104C16.4048 4.112 18.096 3.8928 19.8896 3.9664C20.5216 3.9888 20.7872 3.1584 20.2512 2.8192C20.2064 2.7904 20.16 2.7584 20.0944 2.736C17.6432 1.9824 15.0128 1.9136 12.5088 2.5712C10.6528 3.0528 8.8592 3.928 7.2688 5.2176C6.6048 5.7616 5.9936 6.3504 5.4592 6.9744C1.4704 11.6112 0.9792 18.4288 4.3808 23.6064C4.4496 23.712 4.5168 23.8112 4.5856 23.9168C4.6464 23.9936 4.6688 24.0304 4.6912 24.0592C4.848 24.2928 5.024 24.52 5.2032 24.7456C5.4 24.9872 5.6096 25.2208 5.8208 25.4464C5.872 25.5072 5.9264 25.56 5.9856 25.6192C6.1824 25.824 6.384 26.0256 6.5952 26.2144C6.6096 26.2288 6.632 26.2432 6.6464 26.2656C6.8736 26.4704 7.1072 26.664 7.3408 26.8544C7.392 26.8992 7.4544 26.9456 7.5136 26.9904C7.7328 27.1552 7.952 27.3152 8.1712 27.472C8.2 27.4864 8.2224 27.5088 8.2544 27.5328C8.5024 27.6976 8.7584 27.8656 9.0224 28.0144C9.0736 28.0432 9.128 28.0752 9.1728 28.1056C9.4144 28.2416 9.6544 28.3696 9.896 28.4896C9.9248 28.504 9.9472 28.5184 9.9792 28.5264C10.2576 28.6624 10.5376 28.7824 10.824 28.896C10.8608 28.9104 10.9008 28.9248 10.9376 28.9408C11.208 29.0464 11.4816 29.1456 11.752 29.2256C11.7744 29.2256 11.7968 29.24 11.8128 29.248C12.1152 29.3472 12.416 29.4304 12.7264 29.504C12.7408 29.504 12.7552 29.504 12.7632 29.512C13.0656 29.5888 13.3664 29.648 13.6768 29.7008H13.7136C14.3536 29.8064 14.9952 29.8656 15.6432 29.8896H15.6576C18.848 29.9728 22.0736 28.9696 24.752 26.8064C26.3888 25.48 27.6464 23.8656 28.5072 22.0864C28.552 21.9872 28.6064 21.8816 28.6496 21.784C28.8976 21.232 29.1168 20.6624 29.2896 20.088C20.9184 23.24 13.9376 18.9488 14.8864 13.264L14.8784 13.2496L14.8816 13.2576L14.8848 13.256Z" fill="#14909C"/>
|
|
5
|
+
<path id="Vector_3" d="M9.9824 14.6512C11.6112 12.456 12.3648 12.8416 12.5216 12.1632C12.7328 11.2352 9.3472 10.4288 6.7088 12.456C10.3728 7.87041 16.0816 6.81441 20.944 9.33601C21.592 9.67521 22.3168 9.02561 21.9456 8.40001C20.6048 6.10881 17.9344 4.61441 15.9056 4.50881C16.4096 4.11041 18.1008 3.89121 19.8944 3.96481C20.5264 3.98721 20.792 3.15681 20.256 2.81761C20.2112 2.78881 20.1648 2.75681 20.0992 2.73441C17.648 1.98081 15.0176 1.91201 12.5136 2.56961C10.6576 3.05121 8.864 3.92641 7.2736 5.21601C6.6096 5.76001 5.9984 6.34881 5.464 6.97281C1.4752 11.6096 0.983997 18.4272 4.3856 23.6048C4.4544 23.7104 4.5216 23.8096 4.5904 23.9152C4.6512 23.992 4.6736 24.0288 4.696 24.0576C4.8528 24.2912 5.0288 24.5184 5.208 24.744C8.76 29.1328 14.4304 30.784 19.5488 29.4352C6.4576 27.4976 8.456 16.7056 9.9792 14.656V14.648V14.6512H9.9824Z" fill="#22E1C9"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const liquid = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M16%2032C24.8366%2032%2032%2024.8366%2032%2016C32%207.16344%2024.8366%200%2016%200C7.16344%200%200%207.16344%200%2016C0%2024.8366%207.16344%2032%2016%2032Z'%20fill='%230D1437'/%3e%3cpath%20id='Vector_2'%20d='M14.8848%2013.256C15.6448%208.7024%2020.5104%209.3056%2021.0896%209.3952C21.6928%209.5776%2022.2816%208.9792%2021.9408%208.4016C20.6%206.1104%2017.9296%204.616%2015.9008%204.5104C16.4048%204.112%2018.096%203.8928%2019.8896%203.9664C20.5216%203.9888%2020.7872%203.1584%2020.2512%202.8192C20.2064%202.7904%2020.16%202.7584%2020.0944%202.736C17.6432%201.9824%2015.0128%201.9136%2012.5088%202.5712C10.6528%203.0528%208.8592%203.928%207.2688%205.2176C6.6048%205.7616%205.9936%206.3504%205.4592%206.9744C1.4704%2011.6112%200.9792%2018.4288%204.3808%2023.6064C4.4496%2023.712%204.5168%2023.8112%204.5856%2023.9168C4.6464%2023.9936%204.6688%2024.0304%204.6912%2024.0592C4.848%2024.2928%205.024%2024.52%205.2032%2024.7456C5.4%2024.9872%205.6096%2025.2208%205.8208%2025.4464C5.872%2025.5072%205.9264%2025.56%205.9856%2025.6192C6.1824%2025.824%206.384%2026.0256%206.5952%2026.2144C6.6096%2026.2288%206.632%2026.2432%206.6464%2026.2656C6.8736%2026.4704%207.1072%2026.664%207.3408%2026.8544C7.392%2026.8992%207.4544%2026.9456%207.5136%2026.9904C7.7328%2027.1552%207.952%2027.3152%208.1712%2027.472C8.2%2027.4864%208.2224%2027.5088%208.2544%2027.5328C8.5024%2027.6976%208.7584%2027.8656%209.0224%2028.0144C9.0736%2028.0432%209.128%2028.0752%209.1728%2028.1056C9.4144%2028.2416%209.6544%2028.3696%209.896%2028.4896C9.9248%2028.504%209.9472%2028.5184%209.9792%2028.5264C10.2576%2028.6624%2010.5376%2028.7824%2010.824%2028.896C10.8608%2028.9104%2010.9008%2028.9248%2010.9376%2028.9408C11.208%2029.0464%2011.4816%2029.1456%2011.752%2029.2256C11.7744%2029.2256%2011.7968%2029.24%2011.8128%2029.248C12.1152%2029.3472%2012.416%2029.4304%2012.7264%2029.504C12.7408%2029.504%2012.7552%2029.504%2012.7632%2029.512C13.0656%2029.5888%2013.3664%2029.648%2013.6768%2029.7008H13.7136C14.3536%2029.8064%2014.9952%2029.8656%2015.6432%2029.8896H15.6576C18.848%2029.9728%2022.0736%2028.9696%2024.752%2026.8064C26.3888%2025.48%2027.6464%2023.8656%2028.5072%2022.0864C28.552%2021.9872%2028.6064%2021.8816%2028.6496%2021.784C28.8976%2021.232%2029.1168%2020.6624%2029.2896%2020.088C20.9184%2023.24%2013.9376%2018.9488%2014.8864%2013.264L14.8784%2013.2496L14.8816%2013.2576L14.8848%2013.256Z'%20fill='%2314909C'/%3e%3cpath%20id='Vector_3'%20d='M9.9824%2014.6512C11.6112%2012.456%2012.3648%2012.8416%2012.5216%2012.1632C12.7328%2011.2352%209.3472%2010.4288%206.7088%2012.456C10.3728%207.87041%2016.0816%206.81441%2020.944%209.33601C21.592%209.67521%2022.3168%209.02561%2021.9456%208.40001C20.6048%206.10881%2017.9344%204.61441%2015.9056%204.50881C16.4096%204.11041%2018.1008%203.89121%2019.8944%203.96481C20.5264%203.98721%2020.792%203.15681%2020.256%202.81761C20.2112%202.78881%2020.1648%202.75681%2020.0992%202.73441C17.648%201.98081%2015.0176%201.91201%2012.5136%202.56961C10.6576%203.05121%208.864%203.92641%207.2736%205.21601C6.6096%205.76001%205.9984%206.34881%205.464%206.97281C1.4752%2011.6096%200.983997%2018.4272%204.3856%2023.6048C4.4544%2023.7104%204.5216%2023.8096%204.5904%2023.9152C4.6512%2023.992%204.6736%2024.0288%204.696%2024.0576C4.8528%2024.2912%205.0288%2024.5184%205.208%2024.744C8.76%2029.1328%2014.4304%2030.784%2019.5488%2029.4352C6.4576%2027.4976%208.456%2016.7056%209.9792%2014.656V14.648V14.6512H9.9824Z'%20fill='%2322E1C9'/%3e%3c/g%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
liquid as default
|
|
4
|
+
};
|