@tactics/toddle-styleguide 1.3.1 → 1.3.2
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 +1 -1
- package/src/components/molecules/time-picker/time-picker.preview.tsx +0 -1
- package/src/components/organisms/journal-entry/components/index.d.ts +1 -1
- package/src/components/templates/modal/components/fade-panel.component.d.ts +0 -2
- package/src/components/templates/modal/components/fade-panel.component.tsx +2 -8
- package/src/components/templates/modal/components/fade-panel.styles.d.ts +2 -0
- package/src/components/templates/modal/components/fade-panel.styles.js +2 -0
- package/src/components/templates/modal/modal.component.d.ts +0 -2
- package/src/components/templates/modal/modal.component.tsx +0 -3
- package/src/components/templates/modal/modal.preview.tsx +13 -38
- package/src/components/templates/modal/modal.styles.d.ts +3 -1
- package/src/components/templates/modal/modal.styles.js +3 -1
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './entry-type-indicator/entry-type-indicator';
|
|
1
|
+
export * from './entry-type-indicator/entry-type-indicator.component';
|
|
2
2
|
export * from './journal-entry-type/journal-entry-type.component';
|
|
@@ -6,7 +6,6 @@ type FadePanelProps = {
|
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
maxHeight: number;
|
|
8
8
|
children: React.ReactNode;
|
|
9
|
-
scrollable: boolean | undefined;
|
|
10
9
|
};
|
|
11
10
|
export declare const FadePanel: ({
|
|
12
11
|
title,
|
|
@@ -15,6 +14,5 @@ export declare const FadePanel: ({
|
|
|
15
14
|
onClose,
|
|
16
15
|
maxHeight,
|
|
17
16
|
children,
|
|
18
|
-
scrollable,
|
|
19
17
|
}: FadePanelProps) => JSX.Element;
|
|
20
18
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, {useContext, useEffect, useRef} from 'react';
|
|
2
|
-
import {Animated
|
|
2
|
+
import {Animated} from 'react-native';
|
|
3
3
|
import {ThemeCtx} from '../../../../context/theme.context';
|
|
4
4
|
import {Stylesheet} from './fade-panel.styles';
|
|
5
5
|
import {Heading} from '../../popover/components/modal/heading/heading.component';
|
|
@@ -12,7 +12,6 @@ type FadePanelProps = {
|
|
|
12
12
|
onClose: () => void;
|
|
13
13
|
maxHeight: number;
|
|
14
14
|
children: React.ReactNode;
|
|
15
|
-
scrollable: boolean | undefined;
|
|
16
15
|
};
|
|
17
16
|
|
|
18
17
|
export const FadePanel = ({
|
|
@@ -22,7 +21,6 @@ export const FadePanel = ({
|
|
|
22
21
|
onClose,
|
|
23
22
|
maxHeight,
|
|
24
23
|
children,
|
|
25
|
-
scrollable = true,
|
|
26
24
|
}: FadePanelProps) => {
|
|
27
25
|
const fadeAnimation = useRef(new Animated.Value(0)).current;
|
|
28
26
|
|
|
@@ -49,11 +47,7 @@ export const FadePanel = ({
|
|
|
49
47
|
<Animated.View style={styles.rootContainer}>
|
|
50
48
|
<Close onPress={onClose} />
|
|
51
49
|
<Heading title={title} subtitle={subtitle} />
|
|
52
|
-
{
|
|
53
|
-
<ScrollView>{children}</ScrollView>
|
|
54
|
-
) : (
|
|
55
|
-
<View>{children}</View>
|
|
56
|
-
)}
|
|
50
|
+
{children}
|
|
57
51
|
</Animated.View>
|
|
58
52
|
);
|
|
59
53
|
};
|
|
@@ -5,6 +5,8 @@ import {Scale} from '../../../../theme/scale/index';
|
|
|
5
5
|
export const Stylesheet = (Context, fadeAnimation, maxHeight) =>
|
|
6
6
|
StyleSheet.create({
|
|
7
7
|
rootContainer: {
|
|
8
|
+
maxWidth: 560,
|
|
9
|
+
width: '100%',
|
|
8
10
|
maxHeight: maxHeight,
|
|
9
11
|
paddingLeft: Scale.m,
|
|
10
12
|
paddingTop: Scale.l,
|
|
@@ -5,7 +5,6 @@ type ModalProps = {
|
|
|
5
5
|
isVisible: boolean;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
-
scrollable?: boolean;
|
|
9
8
|
};
|
|
10
9
|
export declare const Modal: ({
|
|
11
10
|
title,
|
|
@@ -13,6 +12,5 @@ export declare const Modal: ({
|
|
|
13
12
|
isVisible,
|
|
14
13
|
onClose,
|
|
15
14
|
children,
|
|
16
|
-
scrollable,
|
|
17
15
|
}: ModalProps) => JSX.Element;
|
|
18
16
|
export {};
|
|
@@ -10,7 +10,6 @@ type ModalProps = {
|
|
|
10
10
|
isVisible: boolean;
|
|
11
11
|
onClose: () => void;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
|
-
scrollable?: boolean;
|
|
14
13
|
};
|
|
15
14
|
|
|
16
15
|
const window = Dimensions.get('window');
|
|
@@ -21,7 +20,6 @@ export const Modal = ({
|
|
|
21
20
|
isVisible,
|
|
22
21
|
onClose,
|
|
23
22
|
children,
|
|
24
|
-
scrollable,
|
|
25
23
|
}: ModalProps) => {
|
|
26
24
|
const [windowHeight, setWindowHeight] = useState(window.height);
|
|
27
25
|
|
|
@@ -46,7 +44,6 @@ export const Modal = ({
|
|
|
46
44
|
onClose={onClose}
|
|
47
45
|
title={title}
|
|
48
46
|
subtitle={subtitle}
|
|
49
|
-
scrollable={scrollable}
|
|
50
47
|
>
|
|
51
48
|
{children}
|
|
52
49
|
</FadePanel>
|
|
@@ -25,47 +25,22 @@ export const ModalPreview = ({}: {}) => {
|
|
|
25
25
|
<Button label="Open modal" onPress={() => setModalIsVisible(true)} />
|
|
26
26
|
</View>
|
|
27
27
|
<Modal
|
|
28
|
-
title={'
|
|
29
|
-
subtitle={'Hoe vind ik mijn
|
|
28
|
+
title={'Mijn login'}
|
|
29
|
+
subtitle={'Hoe vind ik mijn login gegevens?'}
|
|
30
30
|
isVisible={modalIsVisible}
|
|
31
31
|
onClose={() => setModalIsVisible(false)}
|
|
32
32
|
>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</Heading4>
|
|
45
|
-
<Heading3 bold={true} addStyle={styles.regionTitleMargin}>
|
|
46
|
-
Brussel
|
|
47
|
-
</Heading3>
|
|
48
|
-
<Heading4 addStyle={styles.citiesMargin}>
|
|
49
|
-
Omvat de steden: Leuven, Heverlee, Kessel-Lo, Wilsele, ...
|
|
50
|
-
</Heading4>
|
|
51
|
-
<Heading3 bold={true} addStyle={styles.regionTitleMargin}>
|
|
52
|
-
Brussel
|
|
53
|
-
</Heading3>
|
|
54
|
-
<Heading4 addStyle={styles.citiesMargin}>
|
|
55
|
-
Omvat de steden: Leuven, Heverlee, Kessel-Lo, Wilsele, ...
|
|
56
|
-
</Heading4>
|
|
57
|
-
<Heading3 bold={true} addStyle={styles.regionTitleMargin}>
|
|
58
|
-
Brussel
|
|
59
|
-
</Heading3>
|
|
60
|
-
<Heading4 addStyle={styles.citiesMargin}>
|
|
61
|
-
Omvat de steden: Leuven, Heverlee, Kessel-Lo, Wilsele, ...
|
|
62
|
-
</Heading4>
|
|
63
|
-
<Heading3 bold={true} addStyle={styles.regionTitleMargin}>
|
|
64
|
-
Brussel
|
|
65
|
-
</Heading3>
|
|
66
|
-
<Heading4 addStyle={styles.citiesMargin}>
|
|
67
|
-
Omvat de steden: Leuven, Heverlee, Kessel-Lo, Wilsele, ...
|
|
68
|
-
</Heading4>
|
|
33
|
+
<View
|
|
34
|
+
style={{
|
|
35
|
+
paddingBottom: 36,
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
<Paragraph textAlign={'center'}>
|
|
39
|
+
Deze gegevens zijn dezelfde gegevens waarmee u de oorsponkelijke
|
|
40
|
+
aanvraag heeft gedaan in het ouderplatform. Indien u deze niet meer
|
|
41
|
+
weet kan u steeds naar de website gaan en uw wachtwoord resetten of
|
|
42
|
+
oontact opnemen met het verblijf om dit voor u te doen..{' '}
|
|
43
|
+
</Paragraph>
|
|
69
44
|
</View>
|
|
70
45
|
</Modal>
|
|
71
46
|
</View>
|
|
@@ -7,11 +7,13 @@ export function Stylesheet(): {
|
|
|
7
7
|
top: number;
|
|
8
8
|
zIndex: number;
|
|
9
9
|
alignItems: 'center';
|
|
10
|
+
justifyContent: 'center';
|
|
10
11
|
};
|
|
11
12
|
fadePanelContainer: {
|
|
12
13
|
flex: number;
|
|
13
14
|
justifyContent: 'center';
|
|
14
|
-
|
|
15
|
+
alignItems: 'center';
|
|
16
|
+
width: string;
|
|
15
17
|
paddingLeft: number;
|
|
16
18
|
paddingTop: number;
|
|
17
19
|
paddingRight: number;
|
|
@@ -12,11 +12,13 @@ export const Stylesheet = () =>
|
|
|
12
12
|
top: 0,
|
|
13
13
|
zIndex: 1000,
|
|
14
14
|
alignItems: 'center',
|
|
15
|
+
justifyContent: 'center',
|
|
15
16
|
},
|
|
16
17
|
fadePanelContainer: {
|
|
17
18
|
flex: 1,
|
|
18
19
|
justifyContent: 'center',
|
|
19
|
-
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
width: '100%',
|
|
20
22
|
paddingLeft: Scale.m,
|
|
21
23
|
paddingTop: Scale.m * 4.5,
|
|
22
24
|
paddingRight: Scale.m,
|