@tactics/toddle-styleguide 0.0.3 → 0.0.4
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/App.tsx +15 -11
- package/index.tsx +32 -30
- package/package.json +1 -1
- package/src/components/atoms/avatar/avatar.component.tsx +1 -1
- package/src/components/atoms/button/button.component.tsx +1 -1
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +18 -18
- package/src/components/atoms/cancel-link/cancel-link.component.tsx +1 -1
- package/src/components/atoms/check-switch/check-switch.component.tsx +1 -1
- package/src/components/atoms/checkbox/checkbox.component.tsx +1 -1
- package/src/components/atoms/child-list-item/child-list-item.component.tsx +1 -1
- package/src/components/atoms/child-list-item/child-list-item.styles.js +5 -5
- package/src/components/atoms/contact-item/contact-item.component.tsx +1 -1
- package/src/components/atoms/filter-tab/filter-tab.component.tsx +1 -1
- package/src/components/atoms/form-actions/form-action.component.tsx +1 -1
- package/src/components/atoms/image-bubble/image-bubble.component.tsx +1 -1
- package/src/components/atoms/info/info.component.tsx +1 -1
- package/src/components/atoms/logo/__snapshots__/logo.test.js.snap +103 -0
- package/src/components/atoms/logo/logo.component.tsx +39 -0
- package/src/components/atoms/logo/logo.preview.tsx +15 -0
- package/src/components/atoms/logo/logo.test.js +16 -0
- package/src/components/atoms/pill/pill.component.tsx +1 -1
- package/src/components/atoms/popover/components/backdrop/backdrop.component.tsx +1 -1
- package/src/components/atoms/popover/components/foreground/foreground.component.tsx +1 -1
- package/src/components/atoms/popover/components/modal/close/close.component.tsx +1 -1
- package/src/components/atoms/popover/components/modal/heading/heading.component.tsx +1 -1
- package/src/components/atoms/popover/components/modal/modal.component.tsx +1 -1
- package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.tsx +1 -1
- package/src/components/atoms/popover/popover.component.tsx +1 -1
- package/src/components/atoms/pressable-icon/pressable-icon.component.tsx +1 -1
- package/src/components/atoms/quick-filter/quick-filter.component.tsx +1 -1
- package/src/components/atoms/select-list-item/select-list-item.component.tsx +1 -1
- package/src/components/atoms/snackbar/snackbar.component.tsx +1 -1
- package/src/components/atoms/tag/tag.component.tsx +1 -1
- package/src/components/atoms/text-bubble/text-bubble.component.tsx +1 -1
- package/src/components/atoms/text-input/text-input.component.tsx +1 -1
- package/src/components/atoms/text-input/text-input.preview.tsx +10 -4
- package/src/components/atoms/text-input/text-input.styles.js +1 -1
- package/src/components/atoms/time-tracker/time-tracker.component.tsx +1 -1
- package/src/components/atoms/wide-button/wide-button.component.tsx +1 -1
package/App.tsx
CHANGED
|
@@ -34,10 +34,11 @@ import {FormActionPreview} from './src/components/atoms/form-actions/form-action
|
|
|
34
34
|
import {CalendarPreview} from './src/components/atoms/calendar/calendar.preview';
|
|
35
35
|
import {QuickFilterPreview} from './src/components/atoms/quick-filter/quick-filter.prevriew';
|
|
36
36
|
import {TextInputPreview} from './src/components/atoms/text-input/text-input.preview';
|
|
37
|
-
import {ChildListItemPreview} from
|
|
38
|
-
import {TimeLinePreview} from
|
|
37
|
+
import {ChildListItemPreview} from './src/components/atoms/child-list-item/child-list-item.preview';
|
|
38
|
+
import {TimeLinePreview} from './src/components/atoms/timeline/timeline.preview';
|
|
39
39
|
import {IncrementInputPreview} from './src/components/atoms/increment-input/increment-input.preview';
|
|
40
40
|
import {SwipePreview} from './src/components/atoms/swipe/swipe.preview';
|
|
41
|
+
import {LogoPreview} from './src/components/atoms/logo/logo.preview';
|
|
41
42
|
|
|
42
43
|
const Stack = createNativeStackNavigator();
|
|
43
44
|
|
|
@@ -51,7 +52,8 @@ const HomeScreen = ({navigation}: {navigation: any}) => {
|
|
|
51
52
|
alignItems: 'center',
|
|
52
53
|
justifyContent: 'center',
|
|
53
54
|
}}
|
|
54
|
-
|
|
55
|
+
>
|
|
56
|
+
<ReactBtn title="Avatar" onPress={() => navigation.push('avatar')} />
|
|
55
57
|
<ReactBtn title="Button" onPress={() => navigation.push('button')} />
|
|
56
58
|
<ReactBtn title="Pill" onPress={() => navigation.push('pill')} />
|
|
57
59
|
<ReactBtn title="Snackbar" onPress={() => navigation.push('snackbar')} />
|
|
@@ -92,8 +94,8 @@ const HomeScreen = ({navigation}: {navigation: any}) => {
|
|
|
92
94
|
onPress={() => navigation.push('info')}
|
|
93
95
|
/>
|
|
94
96
|
<ReactBtn
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
title="child-list-item"
|
|
98
|
+
onPress={() => navigation.push('childList')}
|
|
97
99
|
/>
|
|
98
100
|
<ReactBtn
|
|
99
101
|
title="Wide Button"
|
|
@@ -126,15 +128,16 @@ const HomeScreen = ({navigation}: {navigation: any}) => {
|
|
|
126
128
|
onPress={() => navigation.push('form-action')}
|
|
127
129
|
/>
|
|
128
130
|
<ReactBtn title="Calendar" onPress={() => navigation.push('calendar')} />
|
|
129
|
-
|
|
131
|
+
<ReactBtn
|
|
130
132
|
title="quickFilter"
|
|
131
133
|
onPress={() => navigation.push('quick-filter')}
|
|
132
134
|
/>
|
|
133
|
-
|
|
135
|
+
<ReactBtn
|
|
134
136
|
title="Increment input"
|
|
135
137
|
onPress={() => navigation.push('increment-input')}
|
|
136
138
|
/>
|
|
137
139
|
<ReactBtn title="swiper" onPress={() => navigation.push('swiper')} />
|
|
140
|
+
<ReactBtn title="logo" onPress={() => navigation.push('logo')} />
|
|
138
141
|
</ScrollView>
|
|
139
142
|
);
|
|
140
143
|
};
|
|
@@ -221,13 +224,14 @@ function App() {
|
|
|
221
224
|
<Stack.Screen name="childList">
|
|
222
225
|
{() => <ChildListItemPreview />}
|
|
223
226
|
</Stack.Screen>
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
+
<Stack.Screen name="timeline">
|
|
228
|
+
{() => <TimeLinePreview />}
|
|
229
|
+
</Stack.Screen>
|
|
227
230
|
<Stack.Screen name="increment-input">
|
|
228
231
|
{() => <IncrementInputPreview />}
|
|
229
|
-
|
|
232
|
+
</Stack.Screen>
|
|
230
233
|
<Stack.Screen name="swiper">{() => <SwipePreview />}</Stack.Screen>
|
|
234
|
+
<Stack.Screen name="logo">{() => <LogoPreview />}</Stack.Screen>
|
|
231
235
|
</Stack.Navigator>
|
|
232
236
|
</NavigationContainer>
|
|
233
237
|
</ThemeCtx.Provider>
|
package/index.tsx
CHANGED
|
@@ -27,36 +27,38 @@ import {TextBubble} from './src/components/atoms/text-bubble/text-bubble.compone
|
|
|
27
27
|
import {TextInput} from './src/components/atoms/text-input/text-input.component';
|
|
28
28
|
import {TimeTracker} from './src/components/atoms/time-tracker/time-tracker.component';
|
|
29
29
|
import {WideButton} from './src/components/atoms/wide-button/wide-button.component';
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
30
|
+
import {Icon} from './src/icons';
|
|
31
|
+
import {Calendar} from './src/components/atoms/calendar/calendar.component';
|
|
32
|
+
import {IncrementInput} from './src/components/atoms/increment-input/increment-input.component';
|
|
33
|
+
import {Swipe} from './src/components/atoms/swipe/swipe.component';
|
|
34
|
+
import {Logo} from './src/components/atoms/logo/logo.component';
|
|
34
35
|
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
37
|
+
Avatar,
|
|
38
|
+
Button,
|
|
39
|
+
CancelLink,
|
|
40
|
+
Check,
|
|
41
|
+
Checkbox,
|
|
42
|
+
ChildListItem,
|
|
43
|
+
ContactItem,
|
|
44
|
+
FilterTab,
|
|
45
|
+
FormAction,
|
|
46
|
+
ImageBubble,
|
|
47
|
+
Info,
|
|
48
|
+
Pill,
|
|
49
|
+
Popover,
|
|
50
|
+
PressableIcon,
|
|
51
|
+
QuickFilter,
|
|
52
|
+
SelectListItem,
|
|
53
|
+
Snackbar,
|
|
54
|
+
Tag,
|
|
55
|
+
TextBubble,
|
|
56
|
+
TextInput,
|
|
57
|
+
TimeTracker,
|
|
58
|
+
WideButton,
|
|
59
|
+
Icon,
|
|
60
|
+
Calendar,
|
|
61
|
+
IncrementInput,
|
|
62
|
+
Swipe,
|
|
63
|
+
Logo,
|
|
62
64
|
};
|
package/package.json
CHANGED
|
@@ -1431,7 +1431,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
1431
1431
|
}
|
|
1432
1432
|
>
|
|
1433
1433
|
<View
|
|
1434
|
-
accessibilityLabel="
|
|
1434
|
+
accessibilityLabel=" Maandag 12 December 2022 "
|
|
1435
1435
|
accessibilityRole="button"
|
|
1436
1436
|
accessibilityState={
|
|
1437
1437
|
{
|
|
@@ -1451,10 +1451,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
1451
1451
|
style={
|
|
1452
1452
|
{
|
|
1453
1453
|
"alignItems": "center",
|
|
1454
|
-
"borderColor": "#7B93DB",
|
|
1455
|
-
"borderRadius": 21,
|
|
1456
|
-
"borderStyle": "solid",
|
|
1457
|
-
"borderWidth": 1,
|
|
1458
1454
|
"height": 42,
|
|
1459
1455
|
"justifyContent": "center",
|
|
1460
1456
|
"opacity": 1,
|
|
@@ -1474,9 +1470,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
1474
1470
|
"lineHeight": 22.4,
|
|
1475
1471
|
"marginTop": 4,
|
|
1476
1472
|
},
|
|
1477
|
-
{
|
|
1478
|
-
"color": "#7B93DB",
|
|
1479
|
-
},
|
|
1480
1473
|
]
|
|
1481
1474
|
}
|
|
1482
1475
|
>
|
|
@@ -2138,7 +2131,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2138
2131
|
}
|
|
2139
2132
|
>
|
|
2140
2133
|
<View
|
|
2141
|
-
accessibilityLabel=" Donderdag 22 December 2022 "
|
|
2134
|
+
accessibilityLabel="today Donderdag 22 December 2022 "
|
|
2142
2135
|
accessibilityRole="button"
|
|
2143
2136
|
accessibilityState={
|
|
2144
2137
|
{
|
|
@@ -2158,6 +2151,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2158
2151
|
style={
|
|
2159
2152
|
{
|
|
2160
2153
|
"alignItems": "center",
|
|
2154
|
+
"borderColor": "#7B93DB",
|
|
2155
|
+
"borderRadius": 21,
|
|
2156
|
+
"borderStyle": "solid",
|
|
2157
|
+
"borderWidth": 1,
|
|
2161
2158
|
"height": 42,
|
|
2162
2159
|
"justifyContent": "center",
|
|
2163
2160
|
"opacity": 1,
|
|
@@ -2177,6 +2174,9 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
2177
2174
|
"lineHeight": 22.4,
|
|
2178
2175
|
"marginTop": 4,
|
|
2179
2176
|
},
|
|
2177
|
+
{
|
|
2178
|
+
"color": "#7B93DB",
|
|
2179
|
+
},
|
|
2180
2180
|
]
|
|
2181
2181
|
}
|
|
2182
2182
|
>
|
|
@@ -4337,7 +4337,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
4337
4337
|
}
|
|
4338
4338
|
>
|
|
4339
4339
|
<View
|
|
4340
|
-
accessibilityLabel="
|
|
4340
|
+
accessibilityLabel=" Maandag 12 December 2022 "
|
|
4341
4341
|
accessibilityRole="button"
|
|
4342
4342
|
accessibilityState={
|
|
4343
4343
|
{
|
|
@@ -4357,10 +4357,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
4357
4357
|
style={
|
|
4358
4358
|
{
|
|
4359
4359
|
"alignItems": "center",
|
|
4360
|
-
"borderColor": "#7B93DB",
|
|
4361
|
-
"borderRadius": 21,
|
|
4362
|
-
"borderStyle": "solid",
|
|
4363
|
-
"borderWidth": 1,
|
|
4364
4360
|
"height": 42,
|
|
4365
4361
|
"justifyContent": "center",
|
|
4366
4362
|
"opacity": 1,
|
|
@@ -4380,9 +4376,6 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
4380
4376
|
"lineHeight": 22.4,
|
|
4381
4377
|
"marginTop": 4,
|
|
4382
4378
|
},
|
|
4383
|
-
{
|
|
4384
|
-
"color": "#7B93DB",
|
|
4385
|
-
},
|
|
4386
4379
|
]
|
|
4387
4380
|
}
|
|
4388
4381
|
>
|
|
@@ -5044,7 +5037,7 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5044
5037
|
}
|
|
5045
5038
|
>
|
|
5046
5039
|
<View
|
|
5047
|
-
accessibilityLabel=" Donderdag 22 December 2022 "
|
|
5040
|
+
accessibilityLabel="today Donderdag 22 December 2022 "
|
|
5048
5041
|
accessibilityRole="button"
|
|
5049
5042
|
accessibilityState={
|
|
5050
5043
|
{
|
|
@@ -5064,6 +5057,10 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5064
5057
|
style={
|
|
5065
5058
|
{
|
|
5066
5059
|
"alignItems": "center",
|
|
5060
|
+
"borderColor": "#7B93DB",
|
|
5061
|
+
"borderRadius": 21,
|
|
5062
|
+
"borderStyle": "solid",
|
|
5063
|
+
"borderWidth": 1,
|
|
5067
5064
|
"height": 42,
|
|
5068
5065
|
"justifyContent": "center",
|
|
5069
5066
|
"opacity": 1,
|
|
@@ -5083,6 +5080,9 @@ exports[`Test for the calendar component renders a calendar where you can select
|
|
|
5083
5080
|
"lineHeight": 22.4,
|
|
5084
5081
|
"marginTop": 4,
|
|
5085
5082
|
},
|
|
5083
|
+
{
|
|
5084
|
+
"color": "#7B93DB",
|
|
5085
|
+
},
|
|
5086
5086
|
]
|
|
5087
5087
|
}
|
|
5088
5088
|
>
|
|
@@ -28,11 +28,11 @@ export const Stylesheet = (
|
|
|
28
28
|
flex: 1,
|
|
29
29
|
flexDirection: 'row',
|
|
30
30
|
alignItems: 'center',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
padding: Scale.xs,
|
|
32
|
+
borderTopRightRadius: Scale.l,
|
|
33
|
+
borderBottomRightRadius: Scale.l,
|
|
34
|
+
borderTopLeftRadius: Scale.xxl,
|
|
35
|
+
borderBottomLeftRadius: Scale.xxl,
|
|
36
36
|
},
|
|
37
37
|
pressableText: {
|
|
38
38
|
marginLeft: Scale.m,
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`test logo renders correct when big is true 1`] = `
|
|
4
|
+
<View>
|
|
5
|
+
<RNSVGSvgView
|
|
6
|
+
align="xMidYMid"
|
|
7
|
+
bbHeight="31"
|
|
8
|
+
bbWidth="142"
|
|
9
|
+
fill="none"
|
|
10
|
+
focusable={false}
|
|
11
|
+
height="31"
|
|
12
|
+
meetOrSlice={0}
|
|
13
|
+
minX={0}
|
|
14
|
+
minY={0}
|
|
15
|
+
style={
|
|
16
|
+
[
|
|
17
|
+
{
|
|
18
|
+
"backgroundColor": "transparent",
|
|
19
|
+
"borderWidth": 0,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"flex": 0,
|
|
23
|
+
"height": 31,
|
|
24
|
+
"width": 142,
|
|
25
|
+
},
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
vbHeight={18}
|
|
29
|
+
vbWidth={69}
|
|
30
|
+
width="142"
|
|
31
|
+
>
|
|
32
|
+
<RNSVGGroup
|
|
33
|
+
fill={null}
|
|
34
|
+
propList={
|
|
35
|
+
[
|
|
36
|
+
"fill",
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
>
|
|
40
|
+
<RNSVGPath
|
|
41
|
+
d="M0.928125 3.92H6.49612V17H9.73613V3.92H15.3041V0.92H0.928125V3.92ZM17.7094 17.24C21.3574 17.24 23.9494 14.672 23.9494 11C23.9494 7.352 21.3574 4.76 17.7094 4.76C14.0614 4.76 11.4694 7.352 11.4694 11C11.4694 14.672 14.0614 17.24 17.7094 17.24ZM17.7094 14.36C15.8134 14.36 14.5894 13.04 14.5894 11C14.5894 8.96 15.8134 7.64 17.7094 7.64C19.6054 7.64 20.8294 8.96 20.8294 11C20.8294 13.04 19.6054 14.36 17.7094 14.36ZM30.9047 17.24C32.1047 17.24 33.1607 16.88 34.0247 16.232V17H37.1447V0.92H34.0247V5.768C33.1607 5.12 32.1047 4.76 30.9047 4.76C27.2567 4.76 24.6647 7.352 24.6647 11C24.6647 14.672 27.2567 17.24 30.9047 17.24ZM30.9047 14.36C29.0087 14.36 27.7847 13.04 27.7847 11C27.7847 8.96 29.0087 7.64 30.9047 7.64C32.8007 7.64 34.0247 8.96 34.0247 11C34.0247 13.04 32.8007 14.36 30.9047 14.36ZM44.3344 17.24C45.5344 17.24 46.5904 16.88 47.4544 16.232V17H50.5744V0.92H47.4544V5.768C46.5904 5.12 45.5344 4.76 44.3344 4.76C40.6864 4.76 38.0944 7.352 38.0944 11C38.0944 14.672 40.6864 17.24 44.3344 17.24ZM44.3344 14.36C42.4384 14.36 41.2144 13.04 41.2144 11C41.2144 8.96 42.4384 7.64 44.3344 7.64C46.2304 7.64 47.4544 8.96 47.4544 11C47.4544 13.04 46.2304 14.36 44.3344 14.36ZM54.8841 17V0.92H51.7641V17H54.8841ZM68.3166 11C68.3166 7.352 65.7246 4.76 62.0766 4.76C58.4286 4.76 55.8366 7.352 55.8366 11C55.8366 14.672 58.4286 17.24 62.0766 17.24C64.8606 17.24 67.3086 15.824 67.9086 13.4H64.4526C63.9246 14.24 63.0606 14.48 62.0766 14.48C60.5646 14.48 59.4846 13.616 59.1006 12.2H68.1966C68.2686 11.816 68.3166 11.408 68.3166 11ZM62.0766 7.52C63.4926 7.52 64.5486 8.288 64.9806 9.56H59.1726C59.6046 8.288 60.6606 7.52 62.0766 7.52Z"
|
|
42
|
+
fill={4280232243}
|
|
43
|
+
propList={
|
|
44
|
+
[
|
|
45
|
+
"fill",
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
/>
|
|
49
|
+
</RNSVGGroup>
|
|
50
|
+
</RNSVGSvgView>
|
|
51
|
+
</View>
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
exports[`test logo renders correctly when colorIsWhite is true 1`] = `
|
|
55
|
+
<View>
|
|
56
|
+
<RNSVGSvgView
|
|
57
|
+
align="xMidYMid"
|
|
58
|
+
bbHeight="18"
|
|
59
|
+
bbWidth="69"
|
|
60
|
+
fill="none"
|
|
61
|
+
focusable={false}
|
|
62
|
+
height="18"
|
|
63
|
+
meetOrSlice={0}
|
|
64
|
+
minX={0}
|
|
65
|
+
minY={0}
|
|
66
|
+
style={
|
|
67
|
+
[
|
|
68
|
+
{
|
|
69
|
+
"backgroundColor": "transparent",
|
|
70
|
+
"borderWidth": 0,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"flex": 0,
|
|
74
|
+
"height": 18,
|
|
75
|
+
"width": 69,
|
|
76
|
+
},
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
vbHeight={18}
|
|
80
|
+
vbWidth={69}
|
|
81
|
+
width="69"
|
|
82
|
+
>
|
|
83
|
+
<RNSVGGroup
|
|
84
|
+
fill={null}
|
|
85
|
+
propList={
|
|
86
|
+
[
|
|
87
|
+
"fill",
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
>
|
|
91
|
+
<RNSVGPath
|
|
92
|
+
d="M0.928125 3.92H6.49612V17H9.73613V3.92H15.3041V0.92H0.928125V3.92ZM17.7094 17.24C21.3574 17.24 23.9494 14.672 23.9494 11C23.9494 7.352 21.3574 4.76 17.7094 4.76C14.0614 4.76 11.4694 7.352 11.4694 11C11.4694 14.672 14.0614 17.24 17.7094 17.24ZM17.7094 14.36C15.8134 14.36 14.5894 13.04 14.5894 11C14.5894 8.96 15.8134 7.64 17.7094 7.64C19.6054 7.64 20.8294 8.96 20.8294 11C20.8294 13.04 19.6054 14.36 17.7094 14.36ZM30.9047 17.24C32.1047 17.24 33.1607 16.88 34.0247 16.232V17H37.1447V0.92H34.0247V5.768C33.1607 5.12 32.1047 4.76 30.9047 4.76C27.2567 4.76 24.6647 7.352 24.6647 11C24.6647 14.672 27.2567 17.24 30.9047 17.24ZM30.9047 14.36C29.0087 14.36 27.7847 13.04 27.7847 11C27.7847 8.96 29.0087 7.64 30.9047 7.64C32.8007 7.64 34.0247 8.96 34.0247 11C34.0247 13.04 32.8007 14.36 30.9047 14.36ZM44.3344 17.24C45.5344 17.24 46.5904 16.88 47.4544 16.232V17H50.5744V0.92H47.4544V5.768C46.5904 5.12 45.5344 4.76 44.3344 4.76C40.6864 4.76 38.0944 7.352 38.0944 11C38.0944 14.672 40.6864 17.24 44.3344 17.24ZM44.3344 14.36C42.4384 14.36 41.2144 13.04 41.2144 11C41.2144 8.96 42.4384 7.64 44.3344 7.64C46.2304 7.64 47.4544 8.96 47.4544 11C47.4544 13.04 46.2304 14.36 44.3344 14.36ZM54.8841 17V0.92H51.7641V17H54.8841ZM68.3166 11C68.3166 7.352 65.7246 4.76 62.0766 4.76C58.4286 4.76 55.8366 7.352 55.8366 11C55.8366 14.672 58.4286 17.24 62.0766 17.24C64.8606 17.24 67.3086 15.824 67.9086 13.4H64.4526C63.9246 14.24 63.0606 14.48 62.0766 14.48C60.5646 14.48 59.4846 13.616 59.1006 12.2H68.1966C68.2686 11.816 68.3166 11.408 68.3166 11ZM62.0766 7.52C63.4926 7.52 64.5486 8.288 64.9806 9.56H59.1726C59.6046 8.288 60.6606 7.52 62.0766 7.52Z"
|
|
93
|
+
fill={4294967295}
|
|
94
|
+
propList={
|
|
95
|
+
[
|
|
96
|
+
"fill",
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
/>
|
|
100
|
+
</RNSVGGroup>
|
|
101
|
+
</RNSVGSvgView>
|
|
102
|
+
</View>
|
|
103
|
+
`;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {useContext} from 'react';
|
|
3
|
+
import Svg, {Path} from 'react-native-svg';
|
|
4
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
|
+
import {View} from 'react-native';
|
|
6
|
+
|
|
7
|
+
type logoProps = {
|
|
8
|
+
colorIsWhite?: boolean;
|
|
9
|
+
big?: boolean;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const Logo = ({colorIsWhite, big}: logoProps) => {
|
|
13
|
+
const context = useContext(ThemeCtx);
|
|
14
|
+
|
|
15
|
+
return big ? (
|
|
16
|
+
<View>
|
|
17
|
+
<Svg width="142" height="31" viewBox="0 0 69 18" fill="none">
|
|
18
|
+
<Path
|
|
19
|
+
fill={
|
|
20
|
+
colorIsWhite ? context.colors.ui.white : context.colors.ui.black
|
|
21
|
+
}
|
|
22
|
+
d="M0.928125 3.92H6.49612V17H9.73613V3.92H15.3041V0.92H0.928125V3.92ZM17.7094 17.24C21.3574 17.24 23.9494 14.672 23.9494 11C23.9494 7.352 21.3574 4.76 17.7094 4.76C14.0614 4.76 11.4694 7.352 11.4694 11C11.4694 14.672 14.0614 17.24 17.7094 17.24ZM17.7094 14.36C15.8134 14.36 14.5894 13.04 14.5894 11C14.5894 8.96 15.8134 7.64 17.7094 7.64C19.6054 7.64 20.8294 8.96 20.8294 11C20.8294 13.04 19.6054 14.36 17.7094 14.36ZM30.9047 17.24C32.1047 17.24 33.1607 16.88 34.0247 16.232V17H37.1447V0.92H34.0247V5.768C33.1607 5.12 32.1047 4.76 30.9047 4.76C27.2567 4.76 24.6647 7.352 24.6647 11C24.6647 14.672 27.2567 17.24 30.9047 17.24ZM30.9047 14.36C29.0087 14.36 27.7847 13.04 27.7847 11C27.7847 8.96 29.0087 7.64 30.9047 7.64C32.8007 7.64 34.0247 8.96 34.0247 11C34.0247 13.04 32.8007 14.36 30.9047 14.36ZM44.3344 17.24C45.5344 17.24 46.5904 16.88 47.4544 16.232V17H50.5744V0.92H47.4544V5.768C46.5904 5.12 45.5344 4.76 44.3344 4.76C40.6864 4.76 38.0944 7.352 38.0944 11C38.0944 14.672 40.6864 17.24 44.3344 17.24ZM44.3344 14.36C42.4384 14.36 41.2144 13.04 41.2144 11C41.2144 8.96 42.4384 7.64 44.3344 7.64C46.2304 7.64 47.4544 8.96 47.4544 11C47.4544 13.04 46.2304 14.36 44.3344 14.36ZM54.8841 17V0.92H51.7641V17H54.8841ZM68.3166 11C68.3166 7.352 65.7246 4.76 62.0766 4.76C58.4286 4.76 55.8366 7.352 55.8366 11C55.8366 14.672 58.4286 17.24 62.0766 17.24C64.8606 17.24 67.3086 15.824 67.9086 13.4H64.4526C63.9246 14.24 63.0606 14.48 62.0766 14.48C60.5646 14.48 59.4846 13.616 59.1006 12.2H68.1966C68.2686 11.816 68.3166 11.408 68.3166 11ZM62.0766 7.52C63.4926 7.52 64.5486 8.288 64.9806 9.56H59.1726C59.6046 8.288 60.6606 7.52 62.0766 7.52Z"
|
|
23
|
+
/>
|
|
24
|
+
</Svg>
|
|
25
|
+
</View>
|
|
26
|
+
) : (
|
|
27
|
+
<View>
|
|
28
|
+
<Svg width="69" height="18" viewBox="0 0 69 18" fill="none">
|
|
29
|
+
<Path
|
|
30
|
+
fill={
|
|
31
|
+
colorIsWhite ? context.colors.ui.white : context.colors.ui.black
|
|
32
|
+
}
|
|
33
|
+
d="M0.928125 3.92H6.49612V17H9.73613V3.92H15.3041V0.92H0.928125V3.92ZM17.7094 17.24C21.3574 17.24 23.9494 14.672 23.9494 11C23.9494 7.352 21.3574 4.76 17.7094 4.76C14.0614 4.76 11.4694 7.352 11.4694 11C11.4694 14.672 14.0614 17.24 17.7094 17.24ZM17.7094 14.36C15.8134 14.36 14.5894 13.04 14.5894 11C14.5894 8.96 15.8134 7.64 17.7094 7.64C19.6054 7.64 20.8294 8.96 20.8294 11C20.8294 13.04 19.6054 14.36 17.7094 14.36ZM30.9047 17.24C32.1047 17.24 33.1607 16.88 34.0247 16.232V17H37.1447V0.92H34.0247V5.768C33.1607 5.12 32.1047 4.76 30.9047 4.76C27.2567 4.76 24.6647 7.352 24.6647 11C24.6647 14.672 27.2567 17.24 30.9047 17.24ZM30.9047 14.36C29.0087 14.36 27.7847 13.04 27.7847 11C27.7847 8.96 29.0087 7.64 30.9047 7.64C32.8007 7.64 34.0247 8.96 34.0247 11C34.0247 13.04 32.8007 14.36 30.9047 14.36ZM44.3344 17.24C45.5344 17.24 46.5904 16.88 47.4544 16.232V17H50.5744V0.92H47.4544V5.768C46.5904 5.12 45.5344 4.76 44.3344 4.76C40.6864 4.76 38.0944 7.352 38.0944 11C38.0944 14.672 40.6864 17.24 44.3344 17.24ZM44.3344 14.36C42.4384 14.36 41.2144 13.04 41.2144 11C41.2144 8.96 42.4384 7.64 44.3344 7.64C46.2304 7.64 47.4544 8.96 47.4544 11C47.4544 13.04 46.2304 14.36 44.3344 14.36ZM54.8841 17V0.92H51.7641V17H54.8841ZM68.3166 11C68.3166 7.352 65.7246 4.76 62.0766 4.76C58.4286 4.76 55.8366 7.352 55.8366 11C55.8366 14.672 58.4286 17.24 62.0766 17.24C64.8606 17.24 67.3086 15.824 67.9086 13.4H64.4526C63.9246 14.24 63.0606 14.48 62.0766 14.48C60.5646 14.48 59.4846 13.616 59.1006 12.2H68.1966C68.2686 11.816 68.3166 11.408 68.3166 11ZM62.0766 7.52C63.4926 7.52 64.5486 8.288 64.9806 9.56H59.1726C59.6046 8.288 60.6606 7.52 62.0766 7.52Z"
|
|
34
|
+
/>
|
|
35
|
+
</Svg>
|
|
36
|
+
</View>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
export {Logo as Logo};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {View} from 'react-native';
|
|
3
|
+
|
|
4
|
+
import {Logo} from './logo.component';
|
|
5
|
+
|
|
6
|
+
export const LogoPreview = ({}: {}) => {
|
|
7
|
+
return (
|
|
8
|
+
<View>
|
|
9
|
+
<Logo />
|
|
10
|
+
<Logo colorIsWhite={true} />
|
|
11
|
+
<Logo big={true} />
|
|
12
|
+
<Logo big={true} colorIsWhite={true} />
|
|
13
|
+
</View>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import renderer from 'react-test-renderer';
|
|
3
|
+
import {Logo} from './logo.component';
|
|
4
|
+
|
|
5
|
+
describe('test logo', () => {
|
|
6
|
+
it('renders correctly when colorIsWhite is true', () => {
|
|
7
|
+
const tree = renderer.create(<Logo colorIsWhite={true} />).toJSON();
|
|
8
|
+
|
|
9
|
+
expect(tree).toMatchSnapshot();
|
|
10
|
+
});
|
|
11
|
+
it('renders correct when big is true ', () => {
|
|
12
|
+
const tree = renderer.create(<Logo big={true} />).toJSON();
|
|
13
|
+
|
|
14
|
+
expect(tree).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {TextInput} from './text-input.component';
|
|
3
3
|
import {KeyBoardTypes} from '../../../types/keyboard-types.enum';
|
|
4
|
-
import {SafeAreaView} from
|
|
4
|
+
import {SafeAreaView} from 'react-native';
|
|
5
5
|
|
|
6
6
|
export const TextInputPreview = ({} = {}) => {
|
|
7
7
|
return (
|
|
8
8
|
<SafeAreaView>
|
|
9
9
|
<TextInput
|
|
10
|
-
onchangeText={(text: string) =>
|
|
10
|
+
onchangeText={(text: string) =>
|
|
11
|
+
console.log('text is changed to: ' + text)
|
|
12
|
+
}
|
|
11
13
|
keyboardType={KeyBoardTypes.DECIMAL_PAD}
|
|
12
14
|
/>
|
|
13
15
|
<TextInput
|
|
14
16
|
placeholder={'placeholder text'}
|
|
15
|
-
onchangeText={(text: string) =>
|
|
17
|
+
onchangeText={(text: string) =>
|
|
18
|
+
console.log('text is changed to: ' + text)
|
|
19
|
+
}
|
|
16
20
|
keyboardType={KeyBoardTypes.DEFAULT}
|
|
17
21
|
/>
|
|
18
22
|
<TextInput
|
|
19
|
-
onchangeText={(text: string) =>
|
|
23
|
+
onchangeText={(text: string) =>
|
|
24
|
+
console.log('text is changed to: ' + text)
|
|
25
|
+
}
|
|
20
26
|
keyboardType={KeyBoardTypes.EMAIL_ADDRESS}
|
|
21
27
|
/>
|
|
22
28
|
</SafeAreaView>
|