@stokr/components-library 4.2.3 → 4.2.5
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 +73 -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 +23 -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 +38 -0
- package/dist/components/FAQ/FAQ.styles.js +58 -1
- package/dist/components/IdentityInfo/IdentityInfo.js +2 -1
- package/dist/components/IdentityInfo/IdentityInfo.styles.js +3 -1
- package/dist/components/InfoBox/InfoBox.js +44 -20
- 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 +57 -0
- package/dist/components/Input/Select.d.ts +57 -0
- package/dist/components/Input/Select.js +77 -98
- package/dist/components/Input/Select.styles.d.ts +89 -0
- package/dist/components/Input/Select.styles.js +104 -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 +87 -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 +42 -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 +103 -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 +54 -0
- package/dist/components/StepSidebar/StepSidebar.styles.js +175 -0
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +27 -11
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +88 -7
- package/dist/index.d.ts +64 -7
- package/dist/index.js +17 -3
- package/dist/styles/borderedField.d.ts +11 -0
- package/dist/styles/borderedField.js +56 -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
|
@@ -2,8 +2,15 @@ import styled, { css } from "styled-components";
|
|
|
2
2
|
import { Collapse } from "react-collapse";
|
|
3
3
|
import theme from "../../styles/theme.js";
|
|
4
4
|
import { glyph } from "../MaterialIcon/glyph.js";
|
|
5
|
+
import { colors } from "../../styles/colors.js";
|
|
6
|
+
import { elevation } from "../../styles/elevation.js";
|
|
7
|
+
import { space, radius } from "../../styles/spacing.js";
|
|
8
|
+
import { typography } from "../../styles/typography.js";
|
|
9
|
+
import { BORDERED_BORDER } from "../../styles/borderedField.js";
|
|
10
|
+
const bordered = (rules) => (props) => props.$variant === "bordered" && rules;
|
|
11
|
+
const NOT_FORWARDED = ["isOpen", "$variant"];
|
|
5
12
|
const CardWrapper = styled.div.withConfig({
|
|
6
|
-
shouldForwardProp: (prop) => !
|
|
13
|
+
shouldForwardProp: (prop) => !NOT_FORWARDED.includes(prop)
|
|
7
14
|
})`
|
|
8
15
|
background: ${theme.cWhite};
|
|
9
16
|
border: 1px solid ${theme.cLightGrey};
|
|
@@ -18,12 +25,21 @@ const CardWrapper = styled.div.withConfig({
|
|
|
18
25
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
19
26
|
`}
|
|
20
27
|
|
|
28
|
+
${bordered(css`
|
|
29
|
+
padding: ${space[5]};
|
|
30
|
+
border: ${BORDERED_BORDER};
|
|
31
|
+
border-radius: ${radius.lg};
|
|
32
|
+
background: ${colors.white};
|
|
33
|
+
box-shadow: ${elevation.md};
|
|
34
|
+
overflow: visible;
|
|
35
|
+
`)}
|
|
36
|
+
|
|
21
37
|
& + & {
|
|
22
38
|
margin-top: 12px;
|
|
23
39
|
}
|
|
24
40
|
`;
|
|
25
41
|
const CardHeader = styled.div.withConfig({
|
|
26
|
-
shouldForwardProp: (prop) => !
|
|
42
|
+
shouldForwardProp: (prop) => !NOT_FORWARDED.includes(prop)
|
|
27
43
|
})`
|
|
28
44
|
display: flex;
|
|
29
45
|
align-items: center;
|
|
@@ -46,6 +62,21 @@ const CardHeader = styled.div.withConfig({
|
|
|
46
62
|
&:focus-visible {
|
|
47
63
|
box-shadow: inset 0 0 0 2px ${theme.cPrimary};
|
|
48
64
|
}
|
|
65
|
+
|
|
66
|
+
${bordered(css`
|
|
67
|
+
padding: 0;
|
|
68
|
+
|
|
69
|
+
&:hover {
|
|
70
|
+
background-color: transparent;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:focus-visible {
|
|
74
|
+
box-shadow: none;
|
|
75
|
+
outline: 2px solid ${theme.cPrimary};
|
|
76
|
+
outline-offset: 4px;
|
|
77
|
+
border-radius: ${radius.sm};
|
|
78
|
+
}
|
|
79
|
+
`)}
|
|
49
80
|
`;
|
|
50
81
|
const HeaderIcon = styled.span`
|
|
51
82
|
display: inline-flex;
|
|
@@ -55,8 +86,14 @@ const HeaderIcon = styled.span`
|
|
|
55
86
|
margin-right: 16px;
|
|
56
87
|
flex-shrink: 0;
|
|
57
88
|
color: ${theme.cBlack};
|
|
89
|
+
|
|
90
|
+
${bordered(css`
|
|
91
|
+
margin-right: ${space[3]};
|
|
92
|
+
`)}
|
|
58
93
|
`;
|
|
59
|
-
const FlagWrapper = styled.span
|
|
94
|
+
const FlagWrapper = styled.span.withConfig({
|
|
95
|
+
shouldForwardProp: (prop) => !NOT_FORWARDED.includes(prop)
|
|
96
|
+
})`
|
|
60
97
|
display: inline-flex;
|
|
61
98
|
width: 24px;
|
|
62
99
|
height: 18px;
|
|
@@ -70,8 +107,14 @@ const FlagWrapper = styled.span`
|
|
|
70
107
|
object-fit: cover;
|
|
71
108
|
display: block;
|
|
72
109
|
}
|
|
110
|
+
|
|
111
|
+
${bordered(css`
|
|
112
|
+
height: 20px;
|
|
113
|
+
`)}
|
|
73
114
|
`;
|
|
74
|
-
const HeaderTitle = styled.span
|
|
115
|
+
const HeaderTitle = styled.span.withConfig({
|
|
116
|
+
shouldForwardProp: (prop) => !NOT_FORWARDED.includes(prop)
|
|
117
|
+
})`
|
|
75
118
|
flex: 1;
|
|
76
119
|
min-width: 0;
|
|
77
120
|
font-family: 'Open Sans';
|
|
@@ -84,13 +127,25 @@ const HeaderTitle = styled.span`
|
|
|
84
127
|
white-space: nowrap;
|
|
85
128
|
overflow: hidden;
|
|
86
129
|
text-overflow: ellipsis;
|
|
130
|
+
|
|
131
|
+
${bordered(css`
|
|
132
|
+
${typography.bodyMdCallout}
|
|
133
|
+
text-transform: none;
|
|
134
|
+
color: ${colors.black};
|
|
135
|
+
`)}
|
|
87
136
|
`;
|
|
88
|
-
const HeaderActions = styled.div
|
|
137
|
+
const HeaderActions = styled.div.withConfig({
|
|
138
|
+
shouldForwardProp: (prop) => !NOT_FORWARDED.includes(prop)
|
|
139
|
+
})`
|
|
89
140
|
display: flex;
|
|
90
141
|
align-items: center;
|
|
91
142
|
gap: 14px;
|
|
92
143
|
margin-left: 12px;
|
|
93
144
|
flex-shrink: 0;
|
|
145
|
+
|
|
146
|
+
${bordered(css`
|
|
147
|
+
gap: ${space[3]};
|
|
148
|
+
`)}
|
|
94
149
|
`;
|
|
95
150
|
const DeleteButton = styled.button`
|
|
96
151
|
display: inline-flex;
|
|
@@ -129,7 +184,7 @@ const DeleteButton = styled.button`
|
|
|
129
184
|
}
|
|
130
185
|
`;
|
|
131
186
|
const ChevronIcon = styled.span.withConfig({
|
|
132
|
-
shouldForwardProp: (prop) => !
|
|
187
|
+
shouldForwardProp: (prop) => !NOT_FORWARDED.includes(prop)
|
|
133
188
|
}).attrs({
|
|
134
189
|
children: glyph("keyboard_arrow_down")
|
|
135
190
|
})`
|
|
@@ -143,18 +198,44 @@ const ChevronIcon = styled.span.withConfig({
|
|
|
143
198
|
${(props) => props.isOpen && css`
|
|
144
199
|
transform: rotate(180deg);
|
|
145
200
|
`}
|
|
201
|
+
|
|
202
|
+
${bordered(css`
|
|
203
|
+
font-size: 16px;
|
|
204
|
+
`)}
|
|
146
205
|
`;
|
|
147
|
-
const CardBodyCollapse = styled(Collapse)
|
|
206
|
+
const CardBodyCollapse = styled(Collapse).withConfig({
|
|
207
|
+
shouldForwardProp: (prop) => !NOT_FORWARDED.includes(prop)
|
|
208
|
+
})`
|
|
148
209
|
border-top: 1px solid ${theme.cLightGrey};
|
|
210
|
+
|
|
211
|
+
${bordered(css`
|
|
212
|
+
border-top: 0;
|
|
213
|
+
`)}
|
|
149
214
|
`;
|
|
150
215
|
const CardBody = styled.div`
|
|
151
216
|
display: flex;
|
|
152
217
|
flex-direction: column;
|
|
153
218
|
gap: 26px;
|
|
154
219
|
padding: 24px 22px 20px;
|
|
220
|
+
|
|
221
|
+
${bordered(css`
|
|
222
|
+
gap: ${space[8]};
|
|
223
|
+
padding: ${space[8]} 0 0;
|
|
224
|
+
|
|
225
|
+
/* Figma labels the card's fields 14/20; the shared bordered label is 12/16. */
|
|
226
|
+
& > * > label {
|
|
227
|
+
font-size: 14px;
|
|
228
|
+
line-height: 20px;
|
|
229
|
+
letter-spacing: 0.5px;
|
|
230
|
+
}
|
|
231
|
+
`)}
|
|
155
232
|
`;
|
|
156
233
|
const CheckboxRow = styled.div`
|
|
157
234
|
padding-top: 4px;
|
|
235
|
+
|
|
236
|
+
${bordered(css`
|
|
237
|
+
padding-top: 0;
|
|
238
|
+
`)}
|
|
158
239
|
`;
|
|
159
240
|
export {
|
|
160
241
|
CardBody,
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
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
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
|
|
@@ -14,6 +15,27 @@ type AnyValue = any
|
|
|
14
15
|
/* TYPED (TS sources) */
|
|
15
16
|
export { Input, InputWrapper, InputLabel, InputWrap } from './components/Input/Input'
|
|
16
17
|
export type { InputProps } from './components/Input/Input'
|
|
18
|
+
export type { FieldVariant } from './styles/borderedField'
|
|
19
|
+
export { FAQ, FaqItems, FaqItem, FaqTitle, FaqContent, FaqText, FaqDropdownIcon } from './components/FAQ/FAQ'
|
|
20
|
+
export type { FAQProps, FAQEntry } from './components/FAQ/FAQ'
|
|
21
|
+
export { StepSidebar } from './components/StepSidebar/StepSidebar'
|
|
22
|
+
export type { StepSidebarProps, StepSidebarIntro, StepSidebarSupport } from './components/StepSidebar/StepSidebar'
|
|
23
|
+
export { StepProgress } from './components/StepSidebar/StepProgress'
|
|
24
|
+
export type { StepProgressProps, StepProgressItem, StepStatus } from './components/StepSidebar/StepProgress'
|
|
25
|
+
export { MobileStepProgress } from './components/StepSidebar/MobileStepProgress'
|
|
26
|
+
export type { MobileStepProgressProps, StepCaptionInfo } from './components/StepSidebar/MobileStepProgress'
|
|
27
|
+
export {
|
|
28
|
+
Select,
|
|
29
|
+
SelectControl,
|
|
30
|
+
SelectMenu,
|
|
31
|
+
SelectMenuList,
|
|
32
|
+
SelectOption,
|
|
33
|
+
SelectContainer,
|
|
34
|
+
SelectValueContainer,
|
|
35
|
+
SelectIcon,
|
|
36
|
+
SelectWrapper,
|
|
37
|
+
} from './components/Input/Select'
|
|
38
|
+
export type { SelectProps, SelectOptionItem, SelectChange, SelectValue } from './components/Input/Select'
|
|
17
39
|
export { StokrLoader, StokrLoaderBox, LoadingDots, loaderGif, AnimatedSpan } from './components/StokrLoader/StokrLoader'
|
|
18
40
|
export type { StokrLoaderProps, LoadingDotsProps } from './components/StokrLoader/StokrLoader'
|
|
19
41
|
export { Text } from './components/Text/Text.styles'
|
|
@@ -62,6 +84,15 @@ export type { LottieAnimationProps, LottieVariant, LottieSegment } from './compo
|
|
|
62
84
|
export { Skeleton, SkeletonLines, SkeletonStatus } from './components/Skeleton/Skeleton'
|
|
63
85
|
export type { SkeletonProps, SkeletonLinesProps, SkeletonStatusProps } from './components/Skeleton/Skeleton'
|
|
64
86
|
export { Collapsible } from './components/Collapsible/Collapsible'
|
|
87
|
+
export { PanelCard, PanelCardHeader, PanelCardSection, PanelCardFooter } from './components/PanelCard/PanelCard'
|
|
88
|
+
export type {
|
|
89
|
+
PanelCardProps,
|
|
90
|
+
PanelCardHeaderProps,
|
|
91
|
+
PanelCardSectionProps,
|
|
92
|
+
PanelCardFooterProps,
|
|
93
|
+
} from './components/PanelCard/PanelCard'
|
|
94
|
+
export { AddressItem } from './components/AddressItem/AddressItem'
|
|
95
|
+
export type { AddressItemProps } from './components/AddressItem/AddressItem'
|
|
65
96
|
export { MaterialIcon, SvgIcon, ICON_SIZES } from './components/MaterialIcon/MaterialIcon'
|
|
66
97
|
export type { MaterialIconProps, SvgIconProps, IconSize } from './components/MaterialIcon/MaterialIcon'
|
|
67
98
|
export { registerMaterialIcons } from './components/MaterialIcon/iconConfig'
|
|
@@ -206,8 +237,6 @@ export type { CheckboxProps } from './components/Checkbox/Checkbox'
|
|
|
206
237
|
export declare const ComponentScroll: AnyComponent
|
|
207
238
|
export declare const MemoCryptoAddress: AnyComponent, CryptoAddress: AnyComponent
|
|
208
239
|
export declare const CryptoAddressWrapper: AnyComponent
|
|
209
|
-
export declare const FAQ: AnyComponent, FaqItems: AnyComponent, FaqItem: AnyComponent, FaqTitle: AnyComponent
|
|
210
|
-
export declare const FaqContent: AnyComponent, FaqText: AnyComponent, FaqDropdownIcon: AnyComponent
|
|
211
240
|
export declare const Form: AnyComponent, FormContainer: AnyComponent, FormField: AnyComponent
|
|
212
241
|
export declare const FormInfo: AnyComponent, FormError: AnyComponent
|
|
213
242
|
export declare const Card: AnyComponent, CardTitle: AnyComponent, CardTitleContainer: AnyComponent
|
|
@@ -219,12 +248,12 @@ export declare const SearchInput: AnyComponent
|
|
|
219
248
|
export declare const DatePickerInput: AnyComponent
|
|
220
249
|
export declare const InputPassword: AnyComponent
|
|
221
250
|
export declare const RangeInput: AnyComponent
|
|
222
|
-
export declare const Select: AnyComponent, SelectControl: AnyComponent, SelectMenu: AnyComponent
|
|
223
|
-
export declare const SelectMenuList: AnyComponent, SelectOption: AnyComponent, SelectContainer: AnyComponent
|
|
224
|
-
export declare const SelectValueContainer: AnyComponent, SelectIcon: AnyComponent, SelectWrapper: AnyComponent
|
|
225
251
|
export declare const MultiSelect: AnyComponent, CheckboxWrapperDiv: AnyComponent
|
|
226
252
|
export declare const CheckboxDiv: AnyComponent, OptionLabel: AnyComponent
|
|
227
|
-
export declare const CountrySelect: AnyComponent
|
|
253
|
+
export declare const CountrySelect: AnyComponent
|
|
254
|
+
export { FlagFor } from './components/Country/FlagFor'
|
|
255
|
+
export { preloadFlags } from './components/Country/flagStore'
|
|
256
|
+
export type { FlagForProps } from './components/Country/FlagFor'
|
|
228
257
|
export declare const OtpInput: AnyComponent
|
|
229
258
|
export declare const InputWithButton: AnyComponent
|
|
230
259
|
export declare const Textarea: AnyComponent
|
|
@@ -242,7 +271,35 @@ export declare const ProfileBadge: AnyComponent
|
|
|
242
271
|
export declare const ProfileBox: AnyComponent
|
|
243
272
|
export declare const Radio: AnyComponent
|
|
244
273
|
export declare const RefreshButton: AnyComponent
|
|
245
|
-
export
|
|
274
|
+
export interface TaxResidenceCardValue {
|
|
275
|
+
country?: string
|
|
276
|
+
tin?: string
|
|
277
|
+
noTinIssued?: boolean
|
|
278
|
+
}
|
|
279
|
+
export interface TaxResidenceCardProps {
|
|
280
|
+
id: string
|
|
281
|
+
name?: string
|
|
282
|
+
countries: { key?: string; value: string | number; label: string }[]
|
|
283
|
+
value?: TaxResidenceCardValue
|
|
284
|
+
onChange?: (next: Required<TaxResidenceCardValue>) => void
|
|
285
|
+
onDelete?: () => void
|
|
286
|
+
open?: boolean
|
|
287
|
+
defaultOpen?: boolean
|
|
288
|
+
onToggle?: (next: boolean) => void
|
|
289
|
+
emptyTitle?: string
|
|
290
|
+
countryLabel?: string
|
|
291
|
+
tinLabel?: string
|
|
292
|
+
noTinLabel?: ReactNode
|
|
293
|
+
countryPlaceholder?: string
|
|
294
|
+
disabled?: boolean
|
|
295
|
+
hideNoTin?: boolean
|
|
296
|
+
/** `bordered`: white card with boxed fields (sign-up redesign). Default keeps the list look. */
|
|
297
|
+
variant?: FieldVariant
|
|
298
|
+
error?: { country?: boolean; tin?: boolean }
|
|
299
|
+
touched?: { country?: boolean; tin?: boolean }
|
|
300
|
+
dataCy?: string
|
|
301
|
+
}
|
|
302
|
+
export declare const TaxResidenceCard: ComponentType<TaxResidenceCardProps>
|
|
246
303
|
export declare const RequestDataBox: AnyComponent
|
|
247
304
|
export declare const SectionTitle: AnyComponent
|
|
248
305
|
export declare const StepController: AnyComponent
|
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";
|
|
@@ -44,6 +49,8 @@ import { SIDE_MODAL_BACKDROP, SideModal } from "./components/Modal/SideModal.js"
|
|
|
44
49
|
import { SideModalBody, SideModalFooter, SideModalHeader } from "./components/Modal/SideModalParts.js";
|
|
45
50
|
import { Skeleton, SkeletonLines, SkeletonStatus } from "./components/Skeleton/Skeleton.js";
|
|
46
51
|
import { Collapsible } from "./components/Collapsible/Collapsible.js";
|
|
52
|
+
import { PanelCard, PanelCardFooter, PanelCardHeader, PanelCardSection } from "./components/PanelCard/PanelCard.js";
|
|
53
|
+
import { AddressItem } from "./components/AddressItem/AddressItem.js";
|
|
47
54
|
import { ICON_SIZES, MaterialIcon, SvgIcon } from "./components/MaterialIcon/MaterialIcon.js";
|
|
48
55
|
import { registerMaterialIcons } from "./components/MaterialIcon/iconConfig.js";
|
|
49
56
|
import { requiredMaterialIcons } from "./components/MaterialIcon/requiredIcons.js";
|
|
@@ -125,7 +132,6 @@ import { BackButtonIcon, StyledBackButton, StyledBackButtonExternal, StyledWindo
|
|
|
125
132
|
import { Breakdown } from "./components/breakdown/Breakdown.js";
|
|
126
133
|
import { default as default8 } from "./components/SvgIcons/CapsLockSvg.js";
|
|
127
134
|
import { FaqContent, FaqDropdownIcon, FaqItem, FaqItems, FaqText, FaqTitle } from "./components/FAQ/FAQ.styles.js";
|
|
128
|
-
import * as Flags from "country-flag-icons/react/3x2";
|
|
129
135
|
import { FormContainer, FormError, FormField, FormInfo } from "./components/Form/Form.styles.js";
|
|
130
136
|
import { FieldLabel, FieldValue } from "./components/IdentityInfo/IdentityInfo.styles.js";
|
|
131
137
|
import { Container, Icon } from "./components/InfoIcon/InfoIcon.styles.js";
|
|
@@ -150,6 +156,7 @@ import { default as default16 } from "./components/SvgIcons/VerifiedBadge.js";
|
|
|
150
156
|
import { copyTextToClipboard } from "./utils/copy-text-to-clipboard.js";
|
|
151
157
|
import { useSnackbar } from "./components/Snackbar/useSnackbar.js";
|
|
152
158
|
export {
|
|
159
|
+
AddressItem,
|
|
153
160
|
default7 as AdminBadgeSvg,
|
|
154
161
|
AgreementItem,
|
|
155
162
|
AnimatedSpan,
|
|
@@ -209,7 +216,6 @@ export {
|
|
|
209
216
|
FaqText,
|
|
210
217
|
FaqTitle,
|
|
211
218
|
FlagFor,
|
|
212
|
-
Flags,
|
|
213
219
|
FlexContainer,
|
|
214
220
|
FlexGrid,
|
|
215
221
|
Form,
|
|
@@ -246,6 +252,7 @@ export {
|
|
|
246
252
|
MaterialIcon,
|
|
247
253
|
MemoCryptoAddress,
|
|
248
254
|
MenuNav,
|
|
255
|
+
MobileStepProgress,
|
|
249
256
|
Modal,
|
|
250
257
|
ModalBack,
|
|
251
258
|
Box as ModalBox,
|
|
@@ -270,6 +277,10 @@ export {
|
|
|
270
277
|
PageWrapper,
|
|
271
278
|
Pagination,
|
|
272
279
|
PaginationControls,
|
|
280
|
+
PanelCard,
|
|
281
|
+
PanelCardFooter,
|
|
282
|
+
PanelCardHeader,
|
|
283
|
+
PanelCardSection,
|
|
273
284
|
PaymentDetailsCard,
|
|
274
285
|
PaymentDisplay,
|
|
275
286
|
PaymentModal,
|
|
@@ -326,6 +337,8 @@ export {
|
|
|
326
337
|
StepControllerConsumer,
|
|
327
338
|
StepControllerContext,
|
|
328
339
|
StepControllerProvider,
|
|
340
|
+
StepProgress,
|
|
341
|
+
StepSidebar,
|
|
329
342
|
StokrLoader,
|
|
330
343
|
StokrLoaderBox,
|
|
331
344
|
StyledBackButton,
|
|
@@ -412,6 +425,7 @@ export {
|
|
|
412
425
|
openFile,
|
|
413
426
|
parseAmount,
|
|
414
427
|
paymentUnit,
|
|
428
|
+
preloadFlags,
|
|
415
429
|
projectTokenUnit,
|
|
416
430
|
projectUnit,
|
|
417
431
|
radius,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** `bordered` is the sign-up redesign look shared by Input, Select and FAQ. */
|
|
2
|
+
export type FieldVariant = 'default' | 'bordered';
|
|
3
|
+
export declare const BORDERED_BORDER: string;
|
|
4
|
+
/** Fragments hold plain strings only (no function interpolations) so react-select's emotion can consume them too. */
|
|
5
|
+
export declare const borderedFieldBox: import('styled-components').RuleSet<object>;
|
|
6
|
+
export declare const borderedFieldText: import('styled-components').RuleSet<object>;
|
|
7
|
+
export declare const borderedFieldPlaceholder: import('styled-components').RuleSet<object>;
|
|
8
|
+
export declare const borderedFieldFocus: import('styled-components').RuleSet<object>;
|
|
9
|
+
export declare const borderedFieldError: import('styled-components').RuleSet<object>;
|
|
10
|
+
export declare const borderedFieldDisabled: import('styled-components').RuleSet<object>;
|
|
11
|
+
export declare const borderedFieldLabel: import('styled-components').RuleSet<object>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { css } from "styled-components";
|
|
2
|
+
import { colors } from "./colors.js";
|
|
3
|
+
import theme from "./theme.js";
|
|
4
|
+
import { space, radius } from "./spacing.js";
|
|
5
|
+
import { typography } from "./typography.js";
|
|
6
|
+
const BORDERED_BORDER = `1px solid ${colors.lightGrey}`;
|
|
7
|
+
const borderedFieldBox = css`
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
min-height: 44px;
|
|
10
|
+
padding: calc(${space[3]} - 1px) ${space[4]};
|
|
11
|
+
border: ${BORDERED_BORDER};
|
|
12
|
+
border-radius: ${radius.lg};
|
|
13
|
+
background-color: ${colors.white};
|
|
14
|
+
box-shadow: none;
|
|
15
|
+
transition: border-color 0.2s;
|
|
16
|
+
`;
|
|
17
|
+
const borderedFieldText = css`
|
|
18
|
+
font-family: 'Open Sans', sans-serif;
|
|
19
|
+
${typography.bodyMdCallout}
|
|
20
|
+
color: ${colors.black};
|
|
21
|
+
`;
|
|
22
|
+
const borderedFieldPlaceholder = css`
|
|
23
|
+
color: ${colors.grey2};
|
|
24
|
+
opacity: 1;
|
|
25
|
+
`;
|
|
26
|
+
const borderedFieldFocus = css`
|
|
27
|
+
border-color: ${theme.cPrimary};
|
|
28
|
+
`;
|
|
29
|
+
const borderedFieldError = css`
|
|
30
|
+
border-color: ${theme.cWarning};
|
|
31
|
+
`;
|
|
32
|
+
const borderedFieldDisabled = css`
|
|
33
|
+
background-color: ${colors.grey3};
|
|
34
|
+
border-color: ${colors.lightGrey};
|
|
35
|
+
color: ${colors.grey2};
|
|
36
|
+
cursor: not-allowed;
|
|
37
|
+
`;
|
|
38
|
+
const borderedFieldLabel = css`
|
|
39
|
+
display: block;
|
|
40
|
+
margin-bottom: ${space[2]};
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
line-height: 16px;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
letter-spacing: 0;
|
|
45
|
+
text-transform: none;
|
|
46
|
+
`;
|
|
47
|
+
export {
|
|
48
|
+
BORDERED_BORDER,
|
|
49
|
+
borderedFieldBox,
|
|
50
|
+
borderedFieldDisabled,
|
|
51
|
+
borderedFieldError,
|
|
52
|
+
borderedFieldFocus,
|
|
53
|
+
borderedFieldLabel,
|
|
54
|
+
borderedFieldPlaceholder,
|
|
55
|
+
borderedFieldText
|
|
56
|
+
};
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
const SvgGlobe = (props) => /* @__PURE__ */ React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", ...props }, /* @__PURE__ */ React.createElement("circle", { cx: 12, cy: 12, r: 9 }), /* @__PURE__ */ React.createElement("line", { x1: 3, y1: 12, x2: 21, y2: 12 }), /* @__PURE__ */ React.createElement("path", { d: "M12 3 C 7.5 7, 7.5 17, 12 21" }), /* @__PURE__ */ React.createElement("path", { d: "M12 3 C 16.5 7, 16.5 17, 12 21" }));
|
|
3
|
-
export {
|
|
4
|
-
SvgGlobe as default
|
|
5
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
width="18"
|
|
3
|
-
height="18"
|
|
4
|
-
viewBox="0 0 24 24"
|
|
5
|
-
fill="none"
|
|
6
|
-
stroke="currentColor"
|
|
7
|
-
strokeWidth="1.5"
|
|
8
|
-
strokeLinecap="round"
|
|
9
|
-
strokeLinejoin="round"
|
|
10
|
-
aria-hidden="true"
|
|
11
|
-
focusable="false">
|
|
12
|
-
<path d="M3 6h18" />
|
|
13
|
-
<path d="M8 6V4.5a1.5 1.5 0 0 1 1.5-1.5h5A1.5 1.5 0 0 1 16 4.5V6" />
|
|
14
|
-
<path d="M5.5 6l1 13a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2l1-13" />
|
|
15
|
-
<line x1="10" y1="11" x2="10" y2="17" />
|
|
16
|
-
<line x1="14" y1="11" x2="14" y2="17" />
|
|
17
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
const SvgTrash = (props) => /* @__PURE__ */ React.createElement("svg", { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M3 6h18" }), /* @__PURE__ */ React.createElement("path", { d: "M8 6V4.5a1.5 1.5 0 0 1 1.5-1.5h5A1.5 1.5 0 0 1 16 4.5V6" }), /* @__PURE__ */ React.createElement("path", { d: "M5.5 6l1 13a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2l1-13" }), /* @__PURE__ */ React.createElement("line", { x1: 10, y1: 11, x2: 10, y2: 17 }), /* @__PURE__ */ React.createElement("line", { x1: 14, y1: 11, x2: 14, y2: 17 }));
|
|
3
|
-
export {
|
|
4
|
-
SvgTrash as default
|
|
5
|
-
};
|