@tactics/toddle-styleguide 0.0.1 → 0.0.3
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/.github/workflows/publish_styleguide.yaml +30 -0
- package/App.tsx +21 -5
- package/index.tsx +62 -0
- package/package.json +10 -5
- package/src/components/atoms/avatar/avatar.component.tsx +3 -1
- package/src/components/atoms/button/button.component.tsx +3 -1
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +5813 -0
- package/src/components/atoms/calendar/calendar.component.tsx +94 -0
- package/src/components/atoms/calendar/calendar.preview.tsx +44 -0
- package/src/components/atoms/calendar/calendar.styles.js +88 -0
- package/src/components/atoms/calendar/calendar.test.js +30 -0
- package/src/components/atoms/cancel-link/cancel-link.component.tsx +3 -1
- package/src/components/atoms/check-switch/check-switch.component.tsx +3 -1
- package/src/components/atoms/checkbox/checkbox.component.tsx +3 -1
- package/src/components/atoms/child-list-item/child-list-item.component.tsx +3 -1
- package/src/components/atoms/child-list-item/child-list-item.test.js +1 -1
- package/src/components/atoms/contact-item/contact-item.component.tsx +2 -1
- package/src/components/atoms/filter-tab/filter-tab.component.tsx +3 -1
- package/src/components/atoms/form-actions/form-action.component.tsx +3 -1
- package/src/components/atoms/image-bubble/image-bubble.component.tsx +3 -1
- package/src/components/atoms/increment-input/__snapshots__/increment-input.test.js.snap +210 -0
- package/src/components/atoms/increment-input/increment-input.component.tsx +41 -0
- package/src/components/atoms/increment-input/increment-input.preview.tsx +28 -0
- package/src/components/atoms/increment-input/increment-input.styles.js +49 -0
- package/src/components/atoms/increment-input/increment-input.test.js +14 -0
- package/src/components/atoms/info/info.component.tsx +3 -1
- package/src/components/atoms/pill/pill.component.tsx +3 -1
- package/src/components/atoms/popover/components/backdrop/backdrop.component.tsx +3 -1
- package/src/components/atoms/popover/components/foreground/foreground.component.tsx +3 -1
- package/src/components/atoms/popover/components/modal/close/close.component.tsx +3 -1
- package/src/components/atoms/popover/components/modal/heading/heading.component.tsx +3 -1
- package/src/components/atoms/popover/components/modal/modal.component.tsx +3 -1
- package/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.tsx +4 -2
- package/src/components/atoms/popover/popover.component.tsx +3 -1
- package/src/components/atoms/pressable-icon/pressable-icon.component.tsx +3 -1
- package/src/components/atoms/quick-filter/quick-filter.component.tsx +3 -1
- package/src/components/atoms/select-list-item/select-list-item-preview.tsx +1 -1
- package/src/components/atoms/select-list-item/{select-list.component-item.tsx → select-list-item.component.tsx} +4 -2
- package/src/components/atoms/select-list-item/{select-list.styles-item.js → select-list-item.styles.js} +0 -0
- package/src/components/atoms/select-list-item/select-list-item.test.js +1 -1
- package/src/components/atoms/snackbar/snackbar.component.tsx +3 -1
- package/src/components/atoms/{popover-heading/popover-heading.styles.js → swipe/Swipe.styles.js} +2 -9
- package/src/components/atoms/swipe/__snapshots__/swipe.test.js.snap +589 -0
- package/src/components/atoms/swipe/swipe.component.tsx +39 -0
- package/src/components/atoms/swipe/swipe.preview.tsx +64 -0
- package/src/components/atoms/swipe/swipe.test.js +46 -0
- package/src/components/atoms/tag/tag.component.tsx +3 -1
- package/src/components/atoms/text-bubble/text-bubble.component.tsx +3 -1
- package/src/components/atoms/text-input/text-input.component.tsx +3 -1
- package/src/components/atoms/time-tracker/time-tracker.component.tsx +3 -1
- package/src/components/atoms/timeline/__snapshots__/timeline.test.js.snap +181 -0
- package/src/components/atoms/timeline/timeline.component.tsx +161 -0
- package/src/components/atoms/timeline/timeline.preview.tsx +43 -0
- package/src/components/atoms/timeline/timeline.styles.js +41 -0
- package/src/components/atoms/timeline/timeline.test.js +18 -0
- package/src/components/atoms/wide-button/wide-button.component.tsx +3 -1
- package/tsconfig.json +4 -1
- package/types/index.d.ts +23 -0
- package/types/src/components/atoms/avatar/avatar.component.d.ts +11 -0
- package/types/src/components/atoms/avatar/avatar.styles.d.ts +36 -0
- package/types/src/components/atoms/button/button.component.d.ts +9 -0
- package/types/src/components/atoms/button/button.styles.d.ts +20 -0
- package/types/src/components/atoms/cancel-link/cancel-link.component.d.ts +7 -0
- package/types/src/components/atoms/cancel-link/cancel-link.styles.d.ts +17 -0
- package/types/src/components/atoms/check-switch/check-switch.component.d.ts +7 -0
- package/types/src/components/atoms/check-switch/check-switch.styles.d.ts +30 -0
- package/types/src/components/atoms/checkbox/checkbox.component.d.ts +8 -0
- package/types/src/components/atoms/checkbox/checkbox.styles.d.ts +32 -0
- package/types/src/components/atoms/child-list-item/child-list-item.component.d.ts +19 -0
- package/types/src/components/atoms/child-list-item/child-list-item.styles.d.ts +68 -0
- package/types/src/components/atoms/contact-item/contact-item.component.d.ts +10 -0
- package/types/src/components/atoms/contact-item/contact-item.styles.d.ts +24 -0
- package/types/src/components/atoms/filter-tab/filter-tab.component.d.ts +9 -0
- package/types/src/components/atoms/filter-tab/filter-tab.styles.d.ts +61 -0
- package/types/src/components/atoms/form-actions/form-action.component.d.ts +7 -0
- package/types/src/components/atoms/form-actions/form-action.styles.d.ts +14 -0
- package/types/src/components/atoms/image-bubble/image-bubble.component.d.ts +9 -0
- package/types/src/components/atoms/image-bubble/image-bubble.styles.d.ts +27 -0
- package/types/src/components/atoms/info/info.component.d.ts +7 -0
- package/types/src/components/atoms/info/info.styles.d.ts +24 -0
- package/types/src/components/atoms/pill/pill.component.d.ts +8 -0
- package/types/src/components/atoms/pill/pill.styles.d.ts +24 -0
- package/types/src/components/atoms/popover/components/backdrop/backdrop.component.d.ts +6 -0
- package/types/src/components/atoms/popover/components/backdrop/backdrop.styles.d.ts +11 -0
- package/types/src/components/atoms/popover/components/foreground/foreground.component.d.ts +7 -0
- package/types/src/components/atoms/popover/components/foreground/foreground.styles.d.ts +12 -0
- package/types/src/components/atoms/popover/components/index.d.ts +4 -0
- package/types/src/components/atoms/popover/components/modal/close/close.component.d.ts +7 -0
- package/types/src/components/atoms/popover/components/modal/close/close.styles.d.ts +9 -0
- package/types/src/components/atoms/popover/components/modal/heading/heading.component.d.ts +7 -0
- package/types/src/components/atoms/popover/components/modal/heading/heading.styles.d.ts +22 -0
- package/types/src/components/atoms/popover/components/modal/modal.component.d.ts +11 -0
- package/types/src/components/atoms/popover/components/modal/modal.styles.d.ts +18 -0
- package/types/src/components/atoms/popover/components/modal/scroll-content/scroll-content.component.d.ts +6 -0
- package/types/src/components/atoms/popover/components/modal/scroll-content/scroll-content.styles.d.ts +6 -0
- package/types/src/components/atoms/popover/popover.component.d.ts +10 -0
- package/types/src/components/atoms/popover/popover.styles.d.ts +8 -0
- package/types/src/components/atoms/pressable-icon/pressable-icon.component.d.ts +9 -0
- package/types/src/components/atoms/pressable-icon/pressable-icon.styles.d.ts +17 -0
- package/types/src/components/atoms/quick-filter/quick-filter.component.d.ts +11 -0
- package/types/src/components/atoms/quick-filter/quick-filter.styles.d.ts +34 -0
- package/types/src/components/atoms/select-list-item/select-list-item.component.d.ts +10 -0
- package/types/src/components/atoms/select-list-item/select-list-item.styles.d.ts +37 -0
- package/types/src/components/atoms/snackbar/snackbar.component.d.ts +8 -0
- package/types/src/components/atoms/snackbar/snackbar.styles.d.ts +50 -0
- package/types/src/components/atoms/tag/tag.component.d.ts +13 -0
- package/types/src/components/atoms/tag/tag.styles.d.ts +16 -0
- package/types/src/components/atoms/text-bubble/text-bubble.component.d.ts +10 -0
- package/types/src/components/atoms/text-bubble/text-bubble.styles.d.ts +62 -0
- package/types/src/components/atoms/text-input/text-input.component.d.ts +9 -0
- package/types/src/components/atoms/text-input/text-input.styles.d.ts +21 -0
- package/types/src/components/atoms/time-tracker/time-tracker.component.d.ts +8 -0
- package/types/src/components/atoms/time-tracker/time-tracker.styles.d.ts +25 -0
- package/types/src/components/atoms/wide-button/wide-button.component.d.ts +8 -0
- package/types/src/components/atoms/wide-button/wide-button.styles.d.ts +17 -0
- package/types/src/context/theme.context.d.ts +46 -0
- package/types/src/gradients/main/main.gradient.d.ts +2 -0
- package/types/src/gradients/main/main.styles.d.ts +7 -0
- package/types/src/icons/outline/chevron-right/chevron-right.icon.d.ts +3 -0
- package/types/src/icons/outline/cross/cross.icon.d.ts +3 -0
- package/types/src/icons/outline/filter/filter.icon.d.ts +3 -0
- package/types/src/models/initials.model.d.ts +7 -0
- package/types/src/theme/font/font.d.ts +72 -0
- package/types/src/theme/font/index.d.ts +3 -0
- package/types/src/theme/font/load-fonts.d.ts +1 -0
- package/types/src/theme/provider/index.d.ts +3 -0
- package/types/src/theme/provider/parent.theme.d.ts +43 -0
- package/types/src/theme/provider/staff-member.theme.d.ts +43 -0
- package/types/src/theme/scale/index.d.ts +12 -0
- package/types/src/types/bubble-alignment.enum.d.ts +4 -0
- package/types/src/types/icontype.type.d.ts +3 -0
- package/types/src/types/keyboard-types.enum.d.ts +9 -0
- package/types/src/types/size.enum.d.ts +5 -0
- package/types/src/types/visual-state.enum.d.ts +6 -0
- package/src/components/atoms/popover-heading/__snapshots__/popover_heading.test.js.snap +0 -35
- package/src/components/atoms/popover-heading/popover-heading.component.tsx +0 -22
- package/src/components/atoms/popover-heading/popover-heading.preview.tsx +0 -18
- package/src/components/atoms/popover-heading/popover_heading.test.js +0 -11
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Create Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- '*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
name: Create Release
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout code
|
|
14
|
+
uses: actions/checkout@v2
|
|
15
|
+
- name: Create Release
|
|
16
|
+
id: create_release
|
|
17
|
+
uses: actions/create-release@v1
|
|
18
|
+
env:
|
|
19
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
20
|
+
with:
|
|
21
|
+
tag_name: ${{ github.ref }}
|
|
22
|
+
release_name: Release ${{ github.ref }}
|
|
23
|
+
draft: false
|
|
24
|
+
prerelease: false
|
|
25
|
+
|
|
26
|
+
- name: Publish to npm
|
|
27
|
+
uses: JS-DevTools/npm-publish@v1
|
|
28
|
+
with:
|
|
29
|
+
token: ${{ secrets.NPM_TOKEN }}
|
|
30
|
+
access: 'public'
|
package/App.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {Button as ReactBtn, ScrollView} from 'react-native';
|
|
3
3
|
import {NavigationContainer} from '@react-navigation/native';
|
|
4
4
|
import {createNativeStackNavigator} from '@react-navigation/native-stack';
|
|
5
5
|
|
|
@@ -23,7 +23,6 @@ import {IconOutlineWhitePreview} from './src/icons/outline/outline-white.preview
|
|
|
23
23
|
import {IconOutlineDefaultPreview} from './src/icons/outline/outline-default.preview';
|
|
24
24
|
import {IconOutlineGreyPreview} from './src/icons/outline/outline-grey.preview';
|
|
25
25
|
import {TagPreview} from './src/components/atoms/tag/tag.preview';
|
|
26
|
-
import {PopoverHeadingPreview} from './src/components/atoms/popover-heading/popover-heading.preview';
|
|
27
26
|
import {FilterTabPreview} from './src/components/atoms/filter-tab/filter-tab.preview';
|
|
28
27
|
import {ContactItemPreview} from './src/components/atoms/contact-item/contact-item.preview';
|
|
29
28
|
import {SelectListItemPreview} from './src/components/atoms/select-list-item/select-list-item-preview';
|
|
@@ -32,9 +31,13 @@ import {CheckPreview} from './src/components/atoms/check-switch/check-switch.pre
|
|
|
32
31
|
import {WideButtonPreview} from './src/components/atoms/wide-button/wide-button.preview';
|
|
33
32
|
import {PressableIconPreview} from './src/components/atoms/pressable-icon/pressable-icon.preview';
|
|
34
33
|
import {FormActionPreview} from './src/components/atoms/form-actions/form-action.preview';
|
|
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
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
|
+
import {IncrementInputPreview} from './src/components/atoms/increment-input/increment-input.preview';
|
|
40
|
+
import {SwipePreview} from './src/components/atoms/swipe/swipe.preview';
|
|
38
41
|
|
|
39
42
|
const Stack = createNativeStackNavigator();
|
|
40
43
|
|
|
@@ -122,10 +125,16 @@ const HomeScreen = ({navigation}: {navigation: any}) => {
|
|
|
122
125
|
title="formAction"
|
|
123
126
|
onPress={() => navigation.push('form-action')}
|
|
124
127
|
/>
|
|
128
|
+
<ReactBtn title="Calendar" onPress={() => navigation.push('calendar')} />
|
|
125
129
|
<ReactBtn
|
|
126
130
|
title="quickFilter"
|
|
127
131
|
onPress={() => navigation.push('quick-filter')}
|
|
128
132
|
/>
|
|
133
|
+
<ReactBtn
|
|
134
|
+
title="Increment input"
|
|
135
|
+
onPress={() => navigation.push('increment-input')}
|
|
136
|
+
/>
|
|
137
|
+
<ReactBtn title="swiper" onPress={() => navigation.push('swiper')} />
|
|
129
138
|
</ScrollView>
|
|
130
139
|
);
|
|
131
140
|
};
|
|
@@ -190,9 +199,6 @@ function App() {
|
|
|
190
199
|
<Stack.Screen name="select-list-item">
|
|
191
200
|
{() => <SelectListItemPreview />}
|
|
192
201
|
</Stack.Screen>
|
|
193
|
-
<Stack.Screen name="popover-heading">
|
|
194
|
-
{() => <PopoverHeadingPreview />}
|
|
195
|
-
</Stack.Screen>
|
|
196
202
|
<Stack.Screen name="filter tab">
|
|
197
203
|
{() => <FilterTabPreview />}
|
|
198
204
|
</Stack.Screen>
|
|
@@ -206,12 +212,22 @@ function App() {
|
|
|
206
212
|
<Stack.Screen name="form-action">
|
|
207
213
|
{() => <FormActionPreview />}
|
|
208
214
|
</Stack.Screen>
|
|
215
|
+
<Stack.Screen name="calendar">
|
|
216
|
+
{() => <CalendarPreview />}
|
|
217
|
+
</Stack.Screen>
|
|
209
218
|
<Stack.Screen name="quick-filter">
|
|
210
219
|
{() => <QuickFilterPreview />}
|
|
211
220
|
</Stack.Screen>
|
|
212
221
|
<Stack.Screen name="childList">
|
|
213
222
|
{() => <ChildListItemPreview />}
|
|
214
223
|
</Stack.Screen>
|
|
224
|
+
<Stack.Screen name="timeline">
|
|
225
|
+
{() => <TimeLinePreview />}
|
|
226
|
+
</Stack.Screen>
|
|
227
|
+
<Stack.Screen name="increment-input">
|
|
228
|
+
{() => <IncrementInputPreview />}
|
|
229
|
+
</Stack.Screen>
|
|
230
|
+
<Stack.Screen name="swiper">{() => <SwipePreview />}</Stack.Screen>
|
|
215
231
|
</Stack.Navigator>
|
|
216
232
|
</NavigationContainer>
|
|
217
233
|
</ThemeCtx.Provider>
|
package/index.tsx
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Needed to run Expo
|
|
2
|
+
import registerRootComponent from 'expo/build/launch/registerRootComponent';
|
|
3
|
+
|
|
4
|
+
import App from './App';
|
|
5
|
+
registerRootComponent(App);
|
|
6
|
+
|
|
7
|
+
// Exports of components
|
|
8
|
+
import {Avatar} from './src/components/atoms/avatar/avatar.component';
|
|
9
|
+
import {Button} from './src/components/atoms/button/button.component';
|
|
10
|
+
import {CancelLink} from './src/components/atoms/cancel-link/cancel-link.component';
|
|
11
|
+
import {Check} from './src/components/atoms/check-switch/check-switch.component';
|
|
12
|
+
import {Checkbox} from './src/components/atoms/checkbox/checkbox.component';
|
|
13
|
+
import {ChildListItem} from './src/components/atoms/child-list-item/child-list-item.component';
|
|
14
|
+
import {ContactItem} from './src/components/atoms/contact-item/contact-item.component';
|
|
15
|
+
import {FilterTab} from './src/components/atoms/filter-tab/filter-tab.component';
|
|
16
|
+
import {FormAction} from './src/components/atoms/form-actions/form-action.component';
|
|
17
|
+
import {ImageBubble} from './src/components/atoms/image-bubble/image-bubble.component';
|
|
18
|
+
import {Info} from './src/components/atoms/info/info.component';
|
|
19
|
+
import {Pill} from './src/components/atoms/pill/pill.component';
|
|
20
|
+
import {Popover} from './src/components/atoms/popover/popover.component';
|
|
21
|
+
import {PressableIcon} from './src/components/atoms/pressable-icon/pressable-icon.component';
|
|
22
|
+
import {QuickFilter} from './src/components/atoms/quick-filter/quick-filter.component';
|
|
23
|
+
import {SelectListItem} from './src/components/atoms/select-list-item/select-list-item.component';
|
|
24
|
+
import {Snackbar} from './src/components/atoms/snackbar/snackbar.component';
|
|
25
|
+
import {Tag} from './src/components/atoms/tag/tag.component';
|
|
26
|
+
import {TextBubble} from './src/components/atoms/text-bubble/text-bubble.component';
|
|
27
|
+
import {TextInput} from './src/components/atoms/text-input/text-input.component';
|
|
28
|
+
import {TimeTracker} from './src/components/atoms/time-tracker/time-tracker.component';
|
|
29
|
+
import {WideButton} from './src/components/atoms/wide-button/wide-button.component';
|
|
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
|
+
|
|
35
|
+
export {
|
|
36
|
+
Avatar,
|
|
37
|
+
Button,
|
|
38
|
+
CancelLink,
|
|
39
|
+
Check,
|
|
40
|
+
Checkbox,
|
|
41
|
+
ChildListItem,
|
|
42
|
+
ContactItem,
|
|
43
|
+
FilterTab,
|
|
44
|
+
FormAction,
|
|
45
|
+
ImageBubble,
|
|
46
|
+
Info,
|
|
47
|
+
Pill,
|
|
48
|
+
Popover,
|
|
49
|
+
PressableIcon,
|
|
50
|
+
QuickFilter,
|
|
51
|
+
SelectListItem,
|
|
52
|
+
Snackbar,
|
|
53
|
+
Tag,
|
|
54
|
+
TextBubble,
|
|
55
|
+
TextInput,
|
|
56
|
+
TimeTracker,
|
|
57
|
+
WideButton,
|
|
58
|
+
Icon,
|
|
59
|
+
Calendar,
|
|
60
|
+
IncrementInput,
|
|
61
|
+
Swipe
|
|
62
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tactics/toddle-styleguide",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"main": "index.tsx",
|
|
5
|
+
"types": "types/index.d.ts",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"expo": "node_modules/.bin/expo",
|
|
7
8
|
"start": "node_modules/.bin/tsc && node_modules/.bin/expo start",
|
|
@@ -9,7 +10,8 @@
|
|
|
9
10
|
"ios": "node_modules/.bin/tsc && node_modules/.bin/expo start --ios",
|
|
10
11
|
"web": "node_modules/.bin/tsc && node_modules/.bin/expo start --web",
|
|
11
12
|
"test": "node_modules/.bin/jest",
|
|
12
|
-
"format": "yarn prettier --write src/."
|
|
13
|
+
"format": "yarn prettier --write src/.",
|
|
14
|
+
"types": "node_modules/.bin/tsc index.tsx --declaration --allowJs --emitDeclarationOnly --jsx react-native --outDir types --skipLibCheck"
|
|
13
15
|
},
|
|
14
16
|
"dependencies": {
|
|
15
17
|
"@callstack/react-theme-provider": "^3.0.8",
|
|
@@ -20,6 +22,7 @@
|
|
|
20
22
|
"@react-navigation/native-stack": "^6.9.1",
|
|
21
23
|
"@react-navigation/stack": "^6.3.3",
|
|
22
24
|
"@tactics/kinderopvang-branding": "^1.0.1",
|
|
25
|
+
"@types/xdate": "^0.8.32",
|
|
23
26
|
"expo": "~46.0.16",
|
|
24
27
|
"expo-font": "^10.2.1",
|
|
25
28
|
"expo-linear-gradient": "~11.4.0",
|
|
@@ -28,9 +31,11 @@
|
|
|
28
31
|
"react": "18.0.0",
|
|
29
32
|
"react-dom": "18.0.0",
|
|
30
33
|
"react-native": "0.69.6",
|
|
34
|
+
"react-native-calendars": "^1.1292.0",
|
|
31
35
|
"react-native-safe-area-context": "4.3.1",
|
|
32
36
|
"react-native-screens": "~3.15.0",
|
|
33
37
|
"react-native-svg": "12.3.0",
|
|
38
|
+
"react-native-swiper": "^1.6.0",
|
|
34
39
|
"react-native-web": "~0.18.7",
|
|
35
40
|
"react-test-renderer": "^18.2.0"
|
|
36
41
|
},
|
|
@@ -39,9 +44,9 @@
|
|
|
39
44
|
"@babel/preset-typescript": "^7.18.6",
|
|
40
45
|
"@types/jest": "^29.2.1",
|
|
41
46
|
"@types/node": "^18.11.7",
|
|
42
|
-
"@types/react": "^18.0.
|
|
47
|
+
"@types/react": "^18.0.25",
|
|
43
48
|
"@types/react-dom": "^18.0.8",
|
|
44
|
-
"@types/react-native": "^0.70.
|
|
49
|
+
"@types/react-native": "^0.70.7",
|
|
45
50
|
"@types/react-test-renderer": "^18.0.0",
|
|
46
51
|
"jest": "^29.2.2",
|
|
47
52
|
"jest-expo": "^46.0.1",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
|
|
2
4
|
import {Image, ImageSourcePropType, View, Text, ImageStyle} from 'react-native';
|
|
3
5
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
4
6
|
import {Stylesheet} from './avatar.styles';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
|
|
2
4
|
import {Pressable, Text, View} from 'react-native';
|
|
3
5
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
4
6
|
import {Stylesheet} from './button.styles';
|