@tactics/toddle-styleguide 5.4.34 → 5.4.36
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tactics/toddle-styleguide",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.36",
|
|
4
4
|
"main": "index.tsx",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"prepublish": "tsc",
|
|
@@ -10,39 +10,45 @@
|
|
|
10
10
|
"pnpm": "10"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@expo/metro-runtime": "
|
|
14
|
-
"@expo/vector-icons": "
|
|
13
|
+
"@expo/metro-runtime": "^6.1.2",
|
|
14
|
+
"@expo/vector-icons": "^15.0.3",
|
|
15
15
|
"@miblanchard/react-native-slider": "^2.6.0",
|
|
16
|
-
"@react-navigation/bottom-tabs": "
|
|
17
|
-
"@react-navigation/drawer": "
|
|
18
|
-
"@react-navigation/
|
|
19
|
-
"@react-navigation/native
|
|
20
|
-
"@react-navigation/stack": "
|
|
16
|
+
"@react-navigation/bottom-tabs": "^7.4.0",
|
|
17
|
+
"@react-navigation/drawer": "^7.5.0",
|
|
18
|
+
"@react-navigation/elements": "^2.6.3",
|
|
19
|
+
"@react-navigation/native": "^7.1.8",
|
|
20
|
+
"@react-navigation/native-stack": "^7.3.16",
|
|
21
|
+
"@react-navigation/stack": "^7.7.2",
|
|
21
22
|
"@tactics/kinderopvang-branding": "1.0.3",
|
|
22
23
|
"@types/react": "~19.1.17",
|
|
23
24
|
"dayjs": "^1.11.19",
|
|
24
25
|
"dayjs-plugin-utc": "^0.1.2",
|
|
25
|
-
"debug": "^4.4.3",
|
|
26
26
|
"depcheck": "^1.4.7",
|
|
27
27
|
"expo": "~54.0.33",
|
|
28
|
-
"expo-application": "
|
|
29
|
-
"expo-asset": "
|
|
30
|
-
"expo-background-task": "
|
|
31
|
-
"expo-camera": "
|
|
32
|
-
"expo-constants": "
|
|
33
|
-
"expo-crypto": "
|
|
34
|
-
"expo-dev-client": "
|
|
35
|
-
"expo-device": "
|
|
36
|
-
"expo-font": "
|
|
37
|
-
"expo-haptics": "
|
|
38
|
-
"expo-
|
|
39
|
-
"expo-
|
|
40
|
-
"expo-
|
|
41
|
-
"expo-
|
|
42
|
-
"expo-
|
|
43
|
-
"expo-
|
|
44
|
-
"expo-
|
|
45
|
-
"expo-
|
|
28
|
+
"expo-application": "~7.0.7",
|
|
29
|
+
"expo-asset": "^12.0.12",
|
|
30
|
+
"expo-background-task": "^1.0.10",
|
|
31
|
+
"expo-camera": "^17.0.10",
|
|
32
|
+
"expo-constants": "~18.0.13",
|
|
33
|
+
"expo-crypto": "^15.0.8",
|
|
34
|
+
"expo-dev-client": "~6.0.15",
|
|
35
|
+
"expo-device": "^8.0.10",
|
|
36
|
+
"expo-font": "~14.0.11",
|
|
37
|
+
"expo-haptics": "~15.0.8",
|
|
38
|
+
"expo-image": "~3.0.11",
|
|
39
|
+
"expo-keep-awake": "^15.0.8",
|
|
40
|
+
"expo-linear-gradient": "^15.0.8",
|
|
41
|
+
"expo-linking": "~8.0.11",
|
|
42
|
+
"expo-localization": "^17.0.8",
|
|
43
|
+
"expo-router": "~6.0.23",
|
|
44
|
+
"expo-secure-store": "^15.0.8",
|
|
45
|
+
"expo-splash-screen": "~31.0.13",
|
|
46
|
+
"expo-status-bar": "~3.0.9",
|
|
47
|
+
"expo-symbols": "~1.0.8",
|
|
48
|
+
"expo-system-ui": "~6.0.9",
|
|
49
|
+
"expo-task-manager": "^14.0.9",
|
|
50
|
+
"expo-updates-interface": "^2.0.0",
|
|
51
|
+
"expo-web-browser": "~15.0.10",
|
|
46
52
|
"intl": "^1.2.5",
|
|
47
53
|
"prettier": "2.8.8",
|
|
48
54
|
"react": "19.1.0",
|
|
@@ -53,10 +59,10 @@
|
|
|
53
59
|
"react-native-pager-view": "^6.9.1",
|
|
54
60
|
"react-native-picker-select": "^8.1.0",
|
|
55
61
|
"react-native-reanimated": "~4.1.1",
|
|
56
|
-
"react-native-safe-area-context": "
|
|
62
|
+
"react-native-safe-area-context": "~5.6.0",
|
|
57
63
|
"react-native-screens": "~4.16.0",
|
|
58
64
|
"react-native-svg": "15.12.1",
|
|
59
|
-
"react-native-web": "
|
|
65
|
+
"react-native-web": "~0.21.0",
|
|
60
66
|
"react-native-wheel-picker-expo": "^0.5.4",
|
|
61
67
|
"react-native-wheely": "^0.6.0",
|
|
62
68
|
"react-native-worklets": "0.5.1",
|
|
@@ -34,9 +34,6 @@ export const SelectPicker = ({
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
console.log(data);
|
|
38
|
-
console.log(defaultValue);
|
|
39
|
-
|
|
40
37
|
return (
|
|
41
38
|
<View style={styles.container}>
|
|
42
39
|
<View style={styles.pickerContainer}>
|
|
@@ -52,6 +49,7 @@ export const SelectPicker = ({
|
|
|
52
49
|
color: context.colors.ui.grey,
|
|
53
50
|
justifyContent: 'center',
|
|
54
51
|
alignItems: 'center',
|
|
52
|
+
height: '100%',
|
|
55
53
|
},
|
|
56
54
|
inputIOSContainer: {
|
|
57
55
|
height: '100%',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {useCallback, useContext} from 'react';
|
|
1
|
+
import React, {useCallback, useContext, useMemo} from 'react';
|
|
2
2
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
3
3
|
import {ImageSourcePropType, Pressable, View} from 'react-native';
|
|
4
4
|
import {Initials} from '../../../models/initials.model';
|
|
@@ -6,13 +6,11 @@ import {Size} from '../../../types/size.enum';
|
|
|
6
6
|
import {Avatar} from '../../molecules/avatar/avatar.component';
|
|
7
7
|
import {Stylesheet} from './my-child-list-item.styles';
|
|
8
8
|
import {Icon} from '../../../icons/index';
|
|
9
|
-
import {TinyText} from '../../atoms/paragraph-components';
|
|
10
9
|
import {Heading2} from '../../atoms/heading-components';
|
|
11
10
|
|
|
12
11
|
type MyChildListItemProps = {
|
|
13
12
|
id: string;
|
|
14
13
|
name: string;
|
|
15
|
-
age: string;
|
|
16
14
|
sourceAvatar: ImageSourcePropType | Initials;
|
|
17
15
|
onPressChild: (id: string) => void;
|
|
18
16
|
onPressArrow: (id: string) => void;
|
|
@@ -20,7 +18,6 @@ type MyChildListItemProps = {
|
|
|
20
18
|
export const MyChildListItem = ({
|
|
21
19
|
id,
|
|
22
20
|
name,
|
|
23
|
-
age,
|
|
24
21
|
sourceAvatar,
|
|
25
22
|
onPressChild,
|
|
26
23
|
onPressArrow,
|
|
@@ -37,12 +34,11 @@ export const MyChildListItem = ({
|
|
|
37
34
|
<Pressable style={styles.innerContainer} onPress={() => onPressChild(id)}>
|
|
38
35
|
<Avatar source={sourceAvatar} size={Size.MEDIUM} />
|
|
39
36
|
<View style={styles.childTextContainer}>
|
|
40
|
-
<TinyText textAlign={'left'}>{age}</TinyText>
|
|
41
37
|
<Heading2
|
|
42
38
|
bold={true}
|
|
43
|
-
textAlign={'left'}
|
|
44
39
|
numberOfLines={1}
|
|
45
40
|
ellipsizeMode={'tail'}
|
|
41
|
+
textColor={context.colors.ui.black}
|
|
46
42
|
>
|
|
47
43
|
{name}
|
|
48
44
|
</Heading2>
|
|
@@ -23,7 +23,6 @@ export const MyChildListItemPreview = ({}: {}) => {
|
|
|
23
23
|
<MyChildListItem
|
|
24
24
|
id={item.id}
|
|
25
25
|
name={item.name}
|
|
26
|
-
age={item.age}
|
|
27
26
|
sourceAvatar={require('../../../../assets/components/avatar/baby.png')}
|
|
28
27
|
onPressChild={(id) => console.log('Pressed ', id)}
|
|
29
28
|
onPressArrow={(id) => console.log('Pressed arrow ', id)}
|