be-components 0.1.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/LICENSE +20 -0
- package/README.md +31 -0
- package/lib/commonjs/AuthenticateWizard/Components/StrategyForm.js +398 -0
- package/lib/commonjs/AuthenticateWizard/Components/StrategyForm.js.map +1 -0
- package/lib/commonjs/AuthenticateWizard/api/index.js +246 -0
- package/lib/commonjs/AuthenticateWizard/api/index.js.map +1 -0
- package/lib/commonjs/AuthenticateWizard/api/types.d.js +2 -0
- package/lib/commonjs/AuthenticateWizard/api/types.d.js.map +1 -0
- package/lib/commonjs/AuthenticateWizard/index.js +85 -0
- package/lib/commonjs/AuthenticateWizard/index.js.map +1 -0
- package/lib/commonjs/Components/Button.js +84 -0
- package/lib/commonjs/Components/Button.js.map +1 -0
- package/lib/commonjs/Components/Checkbox.js +41 -0
- package/lib/commonjs/Components/Checkbox.js.map +1 -0
- package/lib/commonjs/Components/Icons.js +1492 -0
- package/lib/commonjs/Components/Icons.js.map +1 -0
- package/lib/commonjs/Components/Spring.js +44 -0
- package/lib/commonjs/Components/Spring.js.map +1 -0
- package/lib/commonjs/Components/Text.js +44 -0
- package/lib/commonjs/Components/Text.js.map +1 -0
- package/lib/commonjs/Components/TextInput.js +45 -0
- package/lib/commonjs/Components/TextInput.js.map +1 -0
- package/lib/commonjs/Components/index.js +49 -0
- package/lib/commonjs/Components/index.js.map +1 -0
- package/lib/commonjs/Font.css +23 -0
- package/lib/commonjs/constants/colors.js +66 -0
- package/lib/commonjs/constants/colors.js.map +1 -0
- package/lib/commonjs/constants/styles.js +43 -0
- package/lib/commonjs/constants/styles.js.map +1 -0
- package/lib/commonjs/fonts/Barlow-Bold.ttf +0 -0
- package/lib/commonjs/fonts/Barlow-Light.ttf +0 -0
- package/lib/commonjs/fonts/Barlow-Regular.ttf +0 -0
- package/lib/commonjs/fonts/Barlow-SemiBold.ttf +0 -0
- package/lib/commonjs/index.js +33 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/AuthenticateWizard/Components/StrategyForm.js +389 -0
- package/lib/module/AuthenticateWizard/Components/StrategyForm.js.map +1 -0
- package/lib/module/AuthenticateWizard/api/index.js +240 -0
- package/lib/module/AuthenticateWizard/api/index.js.map +1 -0
- package/lib/module/AuthenticateWizard/api/types.d.js +2 -0
- package/lib/module/AuthenticateWizard/api/types.d.js.map +1 -0
- package/lib/module/AuthenticateWizard/index.js +77 -0
- package/lib/module/AuthenticateWizard/index.js.map +1 -0
- package/lib/module/Components/Button.js +77 -0
- package/lib/module/Components/Button.js.map +1 -0
- package/lib/module/Components/Checkbox.js +34 -0
- package/lib/module/Components/Checkbox.js.map +1 -0
- package/lib/module/Components/Icons.js +1485 -0
- package/lib/module/Components/Icons.js.map +1 -0
- package/lib/module/Components/Spring.js +37 -0
- package/lib/module/Components/Spring.js.map +1 -0
- package/lib/module/Components/Text.js +37 -0
- package/lib/module/Components/Text.js.map +1 -0
- package/lib/module/Components/TextInput.js +38 -0
- package/lib/module/Components/TextInput.js.map +1 -0
- package/lib/module/Components/index.js +8 -0
- package/lib/module/Components/index.js.map +1 -0
- package/lib/module/Font.css +23 -0
- package/lib/module/constants/colors.js +60 -0
- package/lib/module/constants/colors.js.map +1 -0
- package/lib/module/constants/styles.js +36 -0
- package/lib/module/constants/styles.js.map +1 -0
- package/lib/module/fonts/Barlow-Bold.ttf +0 -0
- package/lib/module/fonts/Barlow-Light.ttf +0 -0
- package/lib/module/fonts/Barlow-Regular.ttf +0 -0
- package/lib/module/fonts/Barlow-SemiBold.ttf +0 -0
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/src/AuthenticateWizard/Components/StrategyForm.d.ts +15 -0
- package/lib/typescript/src/AuthenticateWizard/Components/StrategyForm.d.ts.map +1 -0
- package/lib/typescript/src/AuthenticateWizard/api/index.d.ts +80 -0
- package/lib/typescript/src/AuthenticateWizard/api/index.d.ts.map +1 -0
- package/lib/typescript/src/AuthenticateWizard/index.d.ts +15 -0
- package/lib/typescript/src/AuthenticateWizard/index.d.ts.map +1 -0
- package/lib/typescript/src/Components/Button.d.ts +30 -0
- package/lib/typescript/src/Components/Button.d.ts.map +1 -0
- package/lib/typescript/src/Components/Checkbox.d.ts +11 -0
- package/lib/typescript/src/Components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/Components/Icons.d.ts +44 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -0
- package/lib/typescript/src/Components/Spring.d.ts +11 -0
- package/lib/typescript/src/Components/Spring.d.ts.map +1 -0
- package/lib/typescript/src/Components/Text.d.ts +13 -0
- package/lib/typescript/src/Components/Text.d.ts.map +1 -0
- package/lib/typescript/src/Components/TextInput.d.ts +15 -0
- package/lib/typescript/src/Components/TextInput.d.ts.map +1 -0
- package/lib/typescript/src/Components/index.d.ts +8 -0
- package/lib/typescript/src/Components/index.d.ts.map +1 -0
- package/lib/typescript/src/constants/colors.d.ts +60 -0
- package/lib/typescript/src/constants/colors.d.ts.map +1 -0
- package/lib/typescript/src/constants/styles.d.ts +34 -0
- package/lib/typescript/src/constants/styles.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +4 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +167 -0
- package/src/AuthenticateWizard/Components/StrategyForm.tsx +292 -0
- package/src/AuthenticateWizard/api/index.ts +164 -0
- package/src/AuthenticateWizard/api/types.d.ts +134 -0
- package/src/AuthenticateWizard/index.tsx +84 -0
- package/src/Components/Button.tsx +63 -0
- package/src/Components/Checkbox.tsx +28 -0
- package/src/Components/Icons.tsx +698 -0
- package/src/Components/Spring.tsx +38 -0
- package/src/Components/Text.tsx +35 -0
- package/src/Components/TextInput.tsx +45 -0
- package/src/Components/index.tsx +15 -0
- package/src/Font.css +23 -0
- package/src/constants/colors.ts +61 -0
- package/src/constants/styles.ts +40 -0
- package/src/fonts/Barlow-Bold.ttf +0 -0
- package/src/fonts/Barlow-Light.ttf +0 -0
- package/src/fonts/Barlow-Regular.ttf +0 -0
- package/src/fonts/Barlow-SemiBold.ttf +0 -0
- package/src/index.tsx +9 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useSpring, animated } from '@react-spring/web';
|
|
3
|
+
|
|
4
|
+
type SpringViewProps = {
|
|
5
|
+
style?: any,
|
|
6
|
+
slide: 'vertical'|'horizontal'
|
|
7
|
+
from: number,
|
|
8
|
+
to:number,
|
|
9
|
+
children: any
|
|
10
|
+
}
|
|
11
|
+
const SpringView = ({ style, children, from, to, slide }:SpringViewProps) => {
|
|
12
|
+
let config:any = {
|
|
13
|
+
from: { x: from},
|
|
14
|
+
to: { x: to }
|
|
15
|
+
}
|
|
16
|
+
if(slide == 'vertical'){
|
|
17
|
+
config = {
|
|
18
|
+
from: { y: from},
|
|
19
|
+
to: { y: to }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const springs = useSpring(config)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<animated.div
|
|
28
|
+
style={{
|
|
29
|
+
...springs,
|
|
30
|
+
...style
|
|
31
|
+
}}
|
|
32
|
+
>
|
|
33
|
+
{children}
|
|
34
|
+
</animated.div>
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default SpringView
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text as RNText } from 'react-native';
|
|
3
|
+
import '../font.css';
|
|
4
|
+
import Colors from '../constants/colors';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface TextProps {
|
|
8
|
+
weight?:'bold'|'semibold'|'regular'|'light',
|
|
9
|
+
color?:string,
|
|
10
|
+
size?: number,
|
|
11
|
+
children:any,
|
|
12
|
+
textAlign?:'left'|'center'|'right',
|
|
13
|
+
style?:any
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const Text = ({ weight, color, size, children, textAlign, style }: TextProps) => {
|
|
17
|
+
|
|
18
|
+
const getFontFamily = (weight:string) => {
|
|
19
|
+
switch(weight){
|
|
20
|
+
case 'bold': return 'barlow-bold'
|
|
21
|
+
case 'semibold': return 'barlow-semibold'
|
|
22
|
+
case 'regular': return 'barlow-regular'
|
|
23
|
+
case 'light': return 'barlow-light'
|
|
24
|
+
default: return 'barlow-regular'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<RNText style={[{ color:color??Colors.shades.black, fontSize: size??14, fontFamily: weight?getFontFamily(weight):'barlow-regular', textAlign:textAlign??'left' }, style]}>
|
|
30
|
+
{children}
|
|
31
|
+
</RNText>
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default Text
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TextInput as RNTextInput } from 'react-native';
|
|
4
|
+
import Colors from '../constants/colors';
|
|
5
|
+
|
|
6
|
+
type TextInputProps = {
|
|
7
|
+
value?:string,
|
|
8
|
+
placeholder?:string,
|
|
9
|
+
autoFocus?:boolean,
|
|
10
|
+
keyboardType?:string,
|
|
11
|
+
textContentType?:string,
|
|
12
|
+
secureTextEntry?:boolean,
|
|
13
|
+
placeholderTextColor?:string,
|
|
14
|
+
onChangeText:(text:string) => void,
|
|
15
|
+
style?:any
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const TextInput = ({ onChangeText, placeholderTextColor, value, placeholder, style, autoFocus, keyboardType, textContentType, secureTextEntry } : TextInputProps) => {
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<RNTextInput
|
|
22
|
+
style={{
|
|
23
|
+
padding:15,
|
|
24
|
+
borderRadius:22,
|
|
25
|
+
borderWidth:1,
|
|
26
|
+
textAlign:'center',
|
|
27
|
+
fontFamily:'barlow-bold',
|
|
28
|
+
fontSize:16,
|
|
29
|
+
borderColor:Colors.shades.shade600,
|
|
30
|
+
backgroundColor:Colors.shades.white,
|
|
31
|
+
...style
|
|
32
|
+
}}
|
|
33
|
+
placeholder={placeholder}
|
|
34
|
+
value={value}
|
|
35
|
+
secureTextEntry={secureTextEntry}
|
|
36
|
+
placeholderTextColor={placeholderTextColor}
|
|
37
|
+
autoFocus={autoFocus}
|
|
38
|
+
textContentType={textContentType as any}
|
|
39
|
+
keyboardType={keyboardType as any}
|
|
40
|
+
onChangeText={(text) => onChangeText(text)}
|
|
41
|
+
/>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export default TextInput
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Button from './Button';
|
|
2
|
+
import Text from './Text';
|
|
3
|
+
import Spring from './Spring';
|
|
4
|
+
import TextInput from './TextInput';
|
|
5
|
+
import Icons from './Icons';
|
|
6
|
+
import Checkbox from './Checkbox';
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
Button,
|
|
10
|
+
Text,
|
|
11
|
+
Spring,
|
|
12
|
+
TextInput,
|
|
13
|
+
Checkbox,
|
|
14
|
+
Icons
|
|
15
|
+
}
|
package/src/Font.css
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'barlow-bold';
|
|
3
|
+
src: local('Barlow-Bold'),
|
|
4
|
+
url('./fonts/Barlow-Bold.ttf')
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: 'barlow-semibold';
|
|
9
|
+
src: local('Barlow-SemiBold'),
|
|
10
|
+
url('./fonts/Barlow-SemiBold.ttf')
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'barlow-regular';
|
|
15
|
+
src: local('Barlow-Regular'),
|
|
16
|
+
url('./fonts/Barlow-Regular.ttf')
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@font-face {
|
|
20
|
+
font-family: 'barlow-light';
|
|
21
|
+
src: local('Barlow-Light'),
|
|
22
|
+
url('./fonts/Barlow-Light.ttf')
|
|
23
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
|
|
2
|
+
const Colors = {
|
|
3
|
+
brand: {
|
|
4
|
+
cobalt: '#003566',
|
|
5
|
+
midnight: '#002A51',
|
|
6
|
+
midnightTopGradient: '#003a85',
|
|
7
|
+
electric: '#005FB7',
|
|
8
|
+
cyan: '#08A4BD',
|
|
9
|
+
slate: '#6E8894',
|
|
10
|
+
mint: '#B2F2D6',
|
|
11
|
+
yellow: '#FFD60A',
|
|
12
|
+
facebook: '#1877F2',
|
|
13
|
+
new:'#264A6B'
|
|
14
|
+
},
|
|
15
|
+
chart:{
|
|
16
|
+
cyan: '#52BCD1',
|
|
17
|
+
electric:'#4D8FCD'
|
|
18
|
+
},
|
|
19
|
+
shades: {
|
|
20
|
+
white: '#FFFFFF',
|
|
21
|
+
shade100: '#F2F5F7',
|
|
22
|
+
shade200: '#F8F8F8',
|
|
23
|
+
shade300: '#EEEEEE',
|
|
24
|
+
shade400: '#DAE1E4',
|
|
25
|
+
shade500: '#4A4A4A',
|
|
26
|
+
shade600: '#DBE9F5',
|
|
27
|
+
black: '#111111',
|
|
28
|
+
black_faded: 'rgba(0,0,0,0.25)',
|
|
29
|
+
black_faded_heavy: 'rgba(0,0,0,0.5)',
|
|
30
|
+
black_faded_super_heavy: 'rgba(0,0,0,0.9)',
|
|
31
|
+
|
|
32
|
+
},
|
|
33
|
+
accents: {
|
|
34
|
+
accent100: '#ADD7FF',
|
|
35
|
+
accent200: '#7F9AB2'
|
|
36
|
+
},
|
|
37
|
+
highlights: {
|
|
38
|
+
highlight100: '#620AFF',
|
|
39
|
+
highlight100Faded: `rgba(98,10,255,0.4)`,
|
|
40
|
+
highlight200: '#FCA311',
|
|
41
|
+
highlight200Faded: 'rgba(252,163,17,0.4)',
|
|
42
|
+
highlight300: '#FF4747',
|
|
43
|
+
highlight300Faded: 'rgba(255,71,71,0.4)',
|
|
44
|
+
highlight400: '#4DBA58',
|
|
45
|
+
highlight400Faded: 'rgba(125,205,133,0.4)',
|
|
46
|
+
highlight500: '#05A4BD',
|
|
47
|
+
highlight500Faded: 'rgba(5,164,189,0.25)'
|
|
48
|
+
},
|
|
49
|
+
utility: {
|
|
50
|
+
success: '#7DCD85',
|
|
51
|
+
error: '#D5573B',
|
|
52
|
+
warning: '#FCA311'
|
|
53
|
+
},
|
|
54
|
+
incentive: {
|
|
55
|
+
gold: '#AB9F5E',
|
|
56
|
+
gold_faded: 'rgba(171,159,94, 0.1)',
|
|
57
|
+
silver: '#C0C0C0',
|
|
58
|
+
bronze: '#997840'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export default Colors
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
import Colors from './colors';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const view_styles = StyleSheet.create({
|
|
7
|
+
container: {
|
|
8
|
+
backgroundColor:Colors.shades.white,
|
|
9
|
+
borderTopRightRadius:22,
|
|
10
|
+
borderTopLeftRadius:22
|
|
11
|
+
}
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export const text_styles = StyleSheet.create({
|
|
16
|
+
dark_heading_1: {
|
|
17
|
+
fontSize: 16,
|
|
18
|
+
color:Colors.brand.midnight
|
|
19
|
+
},
|
|
20
|
+
dark_heading_2: {
|
|
21
|
+
fontSize: 14,
|
|
22
|
+
color:Colors.brand.midnight
|
|
23
|
+
},
|
|
24
|
+
dark_heading_3: {
|
|
25
|
+
fontSize: 12,
|
|
26
|
+
color:Colors.brand.midnight
|
|
27
|
+
},
|
|
28
|
+
light_heading_1: {
|
|
29
|
+
fontSize: 16,
|
|
30
|
+
color:Colors.shades.white
|
|
31
|
+
},
|
|
32
|
+
light_heading_2: {
|
|
33
|
+
fontSize: 14,
|
|
34
|
+
color:Colors.shades.white
|
|
35
|
+
},
|
|
36
|
+
light_heading_3: {
|
|
37
|
+
fontSize: 12,
|
|
38
|
+
color:Colors.shades.white
|
|
39
|
+
}
|
|
40
|
+
})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|