@tactics/toddle-styleguide 2.0.3 → 3.0.0
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 +0 -12
- package/app.json +1 -0
- package/babel.config.js +14 -1
- package/index.d.ts +2 -5
- package/index.tsx +0 -8
- package/metro.config.js +11 -0
- package/package.json +1 -1
- package/src/components/atoms/animated-wave/animated-wave.styles.d.ts +19 -19
- package/src/components/atoms/backdrop/backdrop.styles.d.ts +9 -9
- package/src/components/atoms/background-gradient/background-gradient.styles.d.ts +6 -6
- package/src/components/atoms/count/count.component.d.ts +1 -1
- package/src/components/atoms/count/count.component.tsx +12 -13
- package/src/components/atoms/count/count.preview.tsx +5 -5
- package/src/components/atoms/count/count.styles.d.ts +23 -20
- package/src/components/atoms/count/count.styles.js +25 -17
- package/src/components/atoms/footer/footer.component.d.ts +1 -4
- package/src/components/atoms/footer/footer.component.tsx +9 -13
- package/src/components/atoms/footer/footer.preview.tsx +0 -17
- package/src/components/atoms/footer/footer.styles.d.ts +16 -13
- package/src/components/atoms/footer/footer.styles.js +1 -1
- package/src/components/atoms/increment-input/increment-input.styles.d.ts +33 -33
- package/src/components/atoms/quick-message/quick-message.styles.d.ts +16 -13
- package/src/components/atoms/split-container/split-container.styles.d.ts +12 -12
- package/src/components/molecules/amount/amount.component.d.ts +3 -3
- package/src/components/molecules/amount/amount.component.tsx +125 -100
- package/src/components/molecules/amount/amount.preview.tsx +59 -11
- package/src/components/molecules/amount/amount.styles.d.ts +34 -34
- package/src/components/molecules/amount/amount.styles.js +7 -7
- package/src/components/molecules/avatar/avatar.component.d.ts +1 -1
- package/src/components/molecules/avatar/avatar.component.tsx +8 -6
- package/src/components/molecules/avatar/avatar.styles.d.ts +96 -78
- package/src/components/molecules/avatar/avatar.styles.js +18 -16
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.d.ts +1 -1
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.native.tsx +78 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.tsx +39 -67
- package/src/components/molecules/bare-time-picker/bare-time-picker.preview.tsx +1 -1
- package/src/components/molecules/bare-time-picker/bare-time-picker.styles.d.ts +6 -0
- package/src/components/molecules/bare-time-picker/bare-time-picker.styles.js +14 -8
- package/src/components/molecules/calendar-select/calendar-select.component.d.ts +2 -1
- package/src/components/molecules/calendar-select/calendar-select.component.tsx +76 -73
- package/src/components/molecules/calendar-select/calendar-select.styles.d.ts +31 -31
- package/src/components/molecules/calendar-select/calendar-select.styles.js +33 -33
- package/src/components/molecules/context-label/context-label.component.tsx +21 -23
- package/src/components/molecules/context-label/context-label.preview.tsx +45 -30
- package/src/components/molecules/context-label/context-label.styles.d.ts +7 -5
- package/src/components/molecules/date-input/date-input.styles.d.ts +16 -16
- package/src/components/molecules/day/day.component.d.ts +10 -6
- package/src/components/molecules/default-select/default-select.styles.d.ts +11 -11
- package/src/components/molecules/filter-range/filter-range.styles.d.ts +20 -20
- package/src/components/molecules/filter-tab/filter-tab.styles.d.ts +58 -53
- package/src/components/molecules/info/info.component.tsx +13 -5
- package/src/components/molecules/info/info.preview.tsx +4 -5
- package/src/components/molecules/info/info.styles.d.ts +14 -14
- package/src/components/molecules/inline-error/inline-error.component.tsx +10 -3
- package/src/components/molecules/inline-error/inline-error.preview.tsx +4 -2
- package/src/components/molecules/inline-error/inline-error.styles.d.ts +16 -16
- package/src/components/molecules/inline-error/inline-error.styles.js +2 -2
- package/src/components/molecules/inline-notice/inline-notice.component.tsx +16 -12
- package/src/components/molecules/inline-notice/inline-notice.preview.tsx +4 -2
- package/src/components/molecules/inline-notice/inline-notice.styles.d.ts +16 -16
- package/src/components/molecules/inline-notice/inline-notice.styles.js +18 -18
- package/src/components/molecules/message-input/message-input.styles.d.ts +31 -31
- package/src/components/molecules/password-input/password-input.component.tsx +1 -1
- package/src/components/molecules/password-input/password-input.styles.d.ts +27 -27
- package/src/components/molecules/quick-filter/quick-filter.component.tsx +1 -1
- package/src/components/molecules/quick-filter/quick-filter.preview.tsx +1 -1
- package/src/components/molecules/quick-filter/quick-filter.styles.js +1 -1
- package/src/components/molecules/search-input/search.styles.d.ts +31 -31
- package/src/components/molecules/select-list-item/select-list-item.component.d.ts +1 -1
- package/src/components/molecules/select-list-item/select-list-item.component.tsx +13 -9
- package/src/components/molecules/select-list-item/select-list-item.styles.d.ts +27 -22
- package/src/components/molecules/select-picker/select-picker.styles.d.ts +30 -30
- package/src/components/molecules/selectable-list-item/selectable-list-item-preview.tsx +1 -1
- package/src/components/molecules/selectable-list-item/selectable-list-item.component.d.ts +1 -1
- package/src/components/molecules/selectable-list-item/selectable-list-item.component.tsx +17 -5
- package/src/components/molecules/selectable-list-item/selectable-list-item.styles.d.ts +31 -27
- package/src/components/molecules/swipe/swipe.component.native.tsx +78 -0
- package/src/components/molecules/swipe/swipe.component.tsx +5 -63
- package/src/components/molecules/time-picker/time-picker.component.tsx +8 -2
- package/src/components/molecules/time-picker/time-picker.styles.d.ts +25 -25
- package/src/components/molecules/wide-button/wide-button.styles.d.ts +14 -10
- package/src/components/organisms/child-list-item/child-list-item.component.d.ts +1 -1
- package/src/components/organisms/child-list-item/child-list-item.component.tsx +29 -26
- package/src/components/organisms/child-list-item/child-list-item.styles.d.ts +56 -53
- package/src/components/organisms/child-list-item/child-list-item.styles.js +5 -5
- package/src/components/organisms/contact-item/contact-item.styles.d.ts +13 -13
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +1 -1
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.tsx +5 -4
- package/src/components/organisms/journal-entry/journal-entry.component.d.ts +1 -1
- package/src/components/organisms/journal-entry/journal-entry.styles.d.ts +25 -22
- package/src/components/organisms/my-child-list-item/my-child-list-item.styles.d.ts +31 -31
- package/src/components/organisms/text-bubble/text-bubble.styles.d.ts +14 -14
- package/src/components/organisms/timetable-edit/timetable-edit.component.d.ts +1 -1
- package/src/components/organisms/timetable-edit/timetable-edit.component.tsx +58 -56
- package/src/components/organisms/timetable-edit/timetable-edit.preview.tsx +20 -18
- package/src/components/organisms/timetable-edit/timetable-edit.styles.d.ts +19 -19
- package/src/components/organisms/timetable-edit/timetable-edit.styles.js +21 -21
- package/src/components/organisms/timetable-editor/components/timetable-edit-wrapper.d.ts +4 -4
- package/src/components/organisms/timetable-editor/components/timetable-edit-wrapper.tsx +65 -58
- package/src/components/organisms/timetable-editor/timetable-editor-staff.component.d.ts +8 -0
- package/src/components/organisms/timetable-editor/timetable-editor-staff.component.tsx +66 -47
- package/src/components/organisms/timetable-editor/timetable-editor.component.d.ts +2 -2
- package/src/components/organisms/timetable-editor/timetable-editor.component.tsx +76 -53
- package/src/components/organisms/timetable-editor/timetable-editor.preview.tsx +7 -7
- package/src/components/organisms/timetable-editor/timetable-editor.styles.d.ts +6 -6
- package/src/components/organisms/timetable-editor/timetable-editor.styles.js +8 -8
- package/src/components/templates/modal/components/fade-panel.styles.d.ts +17 -13
- package/src/components/templates/modal/modal.styles.d.ts +21 -21
- package/src/components/templates/popover/components/foreground/foreground.styles.d.ts +10 -10
- package/src/components/templates/popover/components/modal/heading/heading.styles.d.ts +12 -12
- package/src/components/templates/popover/components/modal/modal.styles.d.ts +17 -17
- package/src/components/templates/popover/popover.styles.d.ts +9 -9
- package/src/components/templates/popover-action/popover-action.component.d.ts +8 -4
- package/src/components/templates/popover-action/popover-action.component.tsx +7 -4
- package/src/components/templates/popover-action/popover-action.styles.d.ts +26 -26
- package/src/context/theme.context.ts +4 -4
- package/src/hooks/use-debounce.ts +8 -8
- package/src/icons/crown.icon.tsx +18 -5
- package/src/icons/outline/outline-default.preview.tsx +2 -2
- package/src/icons/outline/outline.tsx +4 -4
- package/src/icons/outline/photograph/photograph.icon.tsx +3 -6
- package/src/icons/solid/photograph/photograph-solid.icon.tsx +4 -4
- package/src/icons/solid/share/share.icon.tsx +1 -3
- package/src/icons/solid/solid.tsx +4 -4
- package/src/models/time-slot-sequence.ts +13 -9
- package/src/theme/provider/parent.theme.ts +4 -4
- package/src/theme/provider/staff-member.theme.ts +4 -4
- package/src/types/state.enum.ts +5 -5
- package/src/utilities/color-handler/color-handler.ts +2 -3
- package/tsconfig.json +2 -1
- package/src/components/organisms/day-select/day-select.component.d.ts +0 -9
- package/src/components/organisms/day-select/day-select.component.tsx +0 -108
- package/src/components/organisms/day-select/day-select.preview.d.ts +0 -2
- package/src/components/organisms/day-select/day-select.preview.tsx +0 -23
- package/src/components/organisms/day-select/day-select.styles.d.ts +0 -18
- package/src/components/organisms/day-select/day-select.styles.js +0 -22
- package/src/components/organisms/tab-view/__snapshots__/tab-view.test.js.snap +0 -421
- package/src/components/organisms/tab-view/tab-view.component.d.ts +0 -12
- package/src/components/organisms/tab-view/tab-view.component.tsx +0 -49
- package/src/components/organisms/tab-view/tab-view.preview.d.ts +0 -2
- package/src/components/organisms/tab-view/tab-view.preview.tsx +0 -37
- package/src/components/organisms/tab-view/tab-view.styles.d.ts +0 -10
- package/src/components/organisms/tab-view/tab-view.styles.js +0 -14
- package/src/components/organisms/tab-view/tab-view.test.js +0 -37
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
export function Stylesheet(context: any): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
container: {
|
|
3
|
+
width: 'auto';
|
|
4
|
+
color: any;
|
|
5
|
+
flexDirection: 'row';
|
|
6
|
+
alignItems: 'center';
|
|
7
|
+
justifyContent: 'center';
|
|
8
|
+
backgroundColor: any;
|
|
9
|
+
borderRadius: number;
|
|
10
|
+
gap: number;
|
|
11
|
+
};
|
|
12
|
+
dateContainer: {
|
|
13
|
+
flexDirection: 'row';
|
|
14
|
+
backgroundColor: any;
|
|
15
|
+
borderRadius: number;
|
|
16
|
+
paddingTop: number;
|
|
17
|
+
paddingBottom: number;
|
|
18
|
+
paddingLeft: number;
|
|
19
|
+
paddingRight: number;
|
|
20
|
+
justifyContent: 'space-between';
|
|
21
|
+
alignItems: 'center';
|
|
22
|
+
width: number;
|
|
23
|
+
};
|
|
24
|
+
arrowContainer: {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
alignItems: 'center';
|
|
28
|
+
justifyContent: 'center';
|
|
29
|
+
};
|
|
30
|
+
icon: {
|
|
31
|
+
marginRight: number;
|
|
32
|
+
};
|
|
33
33
|
};
|
|
@@ -2,36 +2,36 @@ import {StyleSheet} from 'react-native';
|
|
|
2
2
|
import {Scale} from '../../../theme/scale/index';
|
|
3
3
|
|
|
4
4
|
export const Stylesheet = (context) =>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
5
|
+
StyleSheet.create({
|
|
6
|
+
container: {
|
|
7
|
+
width: 'auto',
|
|
8
|
+
color: context.colors.ui.white,
|
|
9
|
+
flexDirection: 'row',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
justifyContent: 'center',
|
|
12
|
+
backgroundColor: context.colors.main[0],
|
|
13
|
+
borderRadius: Scale.xl,
|
|
14
|
+
gap: Scale.s,
|
|
15
|
+
},
|
|
16
|
+
dateContainer: {
|
|
17
|
+
flexDirection: 'row',
|
|
18
|
+
backgroundColor: context.colors.main[0],
|
|
19
|
+
borderRadius: Scale.xl,
|
|
20
|
+
paddingTop: Scale.s,
|
|
21
|
+
paddingBottom: Scale.s,
|
|
22
|
+
paddingLeft: Scale.m,
|
|
23
|
+
paddingRight: Scale.m,
|
|
24
|
+
justifyContent: 'space-around',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
width: 185,
|
|
27
|
+
},
|
|
28
|
+
arrowContainer: {
|
|
29
|
+
width: Scale.xxl,
|
|
30
|
+
height: Scale.xxl,
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center',
|
|
33
|
+
},
|
|
34
|
+
icon: {
|
|
35
|
+
marginRight: Scale.m,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
@@ -5,35 +5,33 @@ import {View} from 'react-native';
|
|
|
5
5
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
6
6
|
import {Stylesheet} from './context-label.styles';
|
|
7
7
|
import {Paragraph} from '../../atoms/paragraph-components';
|
|
8
|
-
import {LoadingIndicator} from
|
|
8
|
+
import {LoadingIndicator} from '../../organisms/loading-indicator/loading-indicator.component';
|
|
9
9
|
|
|
10
10
|
type ContextLabelProps = {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
label: string;
|
|
12
|
+
isLoading: boolean;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
const ContextLabel = ({label, isLoading}: ContextLabelProps) => {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const context = useContext(ThemeCtx);
|
|
17
|
+
const styles = Stylesheet(context);
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</View>
|
|
36
|
-
);
|
|
19
|
+
return (
|
|
20
|
+
<View style={styles.container}>
|
|
21
|
+
{isLoading ? (
|
|
22
|
+
<LoadingIndicator size={4} color={context.colors.ui.grey} />
|
|
23
|
+
) : (
|
|
24
|
+
<Paragraph
|
|
25
|
+
bold={true}
|
|
26
|
+
textAlign={'center'}
|
|
27
|
+
ellipsizeMode={'tail'}
|
|
28
|
+
numberOfLines={1}
|
|
29
|
+
>
|
|
30
|
+
{label}
|
|
31
|
+
</Paragraph>
|
|
32
|
+
)}
|
|
33
|
+
</View>
|
|
34
|
+
);
|
|
37
35
|
};
|
|
38
36
|
|
|
39
37
|
export {ContextLabel as ContextLabel};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import {ContextLabel} from './context-label.component';
|
|
3
|
+
import {Avatar} from '../avatar/avatar.component';
|
|
4
|
+
import {Size} from '../../../types/size.enum';
|
|
5
|
+
import {Initials} from '../../../models/initials.model';
|
|
6
|
+
import {Scale} from '../../../theme/scale';
|
|
7
|
+
import {Paragraph} from '../../atoms/paragraph-components';
|
|
8
8
|
const {View} = require('react-native');
|
|
9
9
|
|
|
10
10
|
export const ContextLabelPreview = ({}: {}) => {
|
|
@@ -17,39 +17,54 @@ export const ContextLabelPreview = ({}: {}) => {
|
|
|
17
17
|
backgroundColor: 'white',
|
|
18
18
|
}}
|
|
19
19
|
>
|
|
20
|
-
|
|
20
|
+
<ContextLabel isLoading={false} label="Dirk Dingles" />
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
<View
|
|
23
23
|
style={{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
flex: 1,
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
justifyContent: 'center',
|
|
27
|
+
backgroundColor: 'white',
|
|
28
|
+
flexDirection: 'row',
|
|
29
|
+
gap: Scale.xs,
|
|
30
|
+
}}
|
|
31
|
+
>
|
|
32
|
+
<Avatar size={Size.SMALL} source={Initials.for('Dirk', 'Dingles')} />
|
|
33
|
+
<ContextLabel isLoading={false} label="Dirk Dingles" />
|
|
34
|
+
</View>
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
<View
|
|
37
37
|
style={{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
flex: 1,
|
|
39
|
+
alignItems: 'center',
|
|
40
|
+
justifyContent: 'center',
|
|
41
|
+
backgroundColor: 'white',
|
|
42
|
+
flexDirection: 'row',
|
|
43
|
+
gap: Scale.xs,
|
|
44
|
+
width: 250,
|
|
45
|
+
}}
|
|
46
|
+
>
|
|
47
|
+
<View style={{width: '100%'}}>
|
|
48
|
+
<Paragraph>Toddle Logo</Paragraph>
|
|
49
|
+
</View>
|
|
50
|
+
<View
|
|
51
|
+
style={{
|
|
52
|
+
flexWrap: 'nowrap',
|
|
42
53
|
flexDirection: 'row',
|
|
54
|
+
alignItems: 'center',
|
|
43
55
|
gap: Scale.xs,
|
|
44
|
-
width: 250
|
|
45
56
|
}}
|
|
46
57
|
>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
<Avatar
|
|
59
|
+
size={Size.SMALL}
|
|
60
|
+
source={Initials.for('Dirk', 'DingleslangereNaam')}
|
|
61
|
+
/>
|
|
62
|
+
<ContextLabel
|
|
63
|
+
isLoading={false}
|
|
64
|
+
label="Dirk DingleslangereNaamMaarDanEchtSuperLang"
|
|
65
|
+
/>
|
|
52
66
|
</View>
|
|
67
|
+
</View>
|
|
53
68
|
</View>
|
|
54
69
|
);
|
|
55
70
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export function Stylesheet(context: any):
|
|
2
|
-
|
|
1
|
+
export function Stylesheet(context: any):
|
|
2
|
+
| StyleSheet.NamedStyles<any>
|
|
3
|
+
| StyleSheet.NamedStyles<{
|
|
4
|
+
container: {
|
|
3
5
|
flex: number;
|
|
4
6
|
borderRadius: number;
|
|
5
7
|
alignItems: string;
|
|
@@ -11,6 +13,6 @@ export function Stylesheet(context: any): StyleSheet.NamedStyles<any> | StyleShe
|
|
|
11
13
|
paddingRight: number;
|
|
12
14
|
paddingBottom: number;
|
|
13
15
|
backgroundColor: any;
|
|
14
|
-
|
|
15
|
-
}>;
|
|
16
|
-
import {
|
|
16
|
+
}[];
|
|
17
|
+
}>;
|
|
18
|
+
import {StyleSheet} from 'react-native';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export function Stylesheet(Context: any): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
dateInputContainer: {
|
|
3
|
+
width: '100%';
|
|
4
|
+
height: number;
|
|
5
|
+
flexDirection: 'row';
|
|
6
|
+
alignItems: 'center';
|
|
7
|
+
justifyContent: 'space-between';
|
|
8
|
+
backgroundColor: any;
|
|
9
|
+
paddingTop: number;
|
|
10
|
+
paddingRight: number;
|
|
11
|
+
paddingBottom: number;
|
|
12
|
+
paddingLeft: number;
|
|
13
|
+
borderWidth: number;
|
|
14
|
+
borderStyle: 'solid';
|
|
15
|
+
borderColor: any;
|
|
16
|
+
borderRadius: number;
|
|
17
|
+
};
|
|
18
18
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime.class';
|
|
3
3
|
type DayProps = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
date: ToddleDateTime;
|
|
5
|
+
onSelect: (date: ToddleDateTime) => void;
|
|
6
|
+
isSelected?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare const Day: ({
|
|
9
|
-
|
|
8
|
+
declare const Day: ({
|
|
9
|
+
onSelect,
|
|
10
|
+
date,
|
|
11
|
+
isSelected,
|
|
12
|
+
}: DayProps) => React.JSX.Element;
|
|
13
|
+
export {Day as Day};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function Stylesheet(): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
container: {
|
|
3
|
+
width: '100%';
|
|
4
|
+
flexDirection: 'row';
|
|
5
|
+
alignItems: 'center';
|
|
6
|
+
justifyContent: 'space-between';
|
|
7
|
+
paddingLeft: number;
|
|
8
|
+
paddingTop: number;
|
|
9
|
+
paddingRight: number;
|
|
10
|
+
paddingBottom: number;
|
|
11
|
+
borderRadius: number;
|
|
12
|
+
};
|
|
13
13
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export function Stylesheet(Context: any): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
container: {
|
|
3
|
+
width: '100%';
|
|
4
|
+
};
|
|
5
|
+
slider: {
|
|
6
|
+
marginLeft: number;
|
|
7
|
+
marginRight: number;
|
|
8
|
+
};
|
|
9
|
+
thumb: {
|
|
10
|
+
backgroundColor: any;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
};
|
|
14
|
+
track: {
|
|
15
|
+
height: number;
|
|
16
|
+
borderRadius: number;
|
|
17
|
+
};
|
|
18
|
+
textContainer: {
|
|
19
|
+
flexDirection: 'row';
|
|
20
|
+
justifyContent: 'space-between';
|
|
21
|
+
};
|
|
22
22
|
};
|
|
@@ -1,54 +1,59 @@
|
|
|
1
|
-
export function Stylesheet(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
Context: any,
|
|
3
|
+
inRow: any,
|
|
4
|
+
ElementWidth: any,
|
|
5
|
+
ItemWidth: any
|
|
6
|
+
): {
|
|
7
|
+
container: {
|
|
8
|
+
width: '100%';
|
|
9
|
+
display: 'flex';
|
|
10
|
+
paddingRight: number;
|
|
11
|
+
paddingLeft: number;
|
|
12
|
+
paddingTop: number;
|
|
13
|
+
paddingBottom: number;
|
|
14
|
+
borderRadius: number;
|
|
15
|
+
backgroundColor: any;
|
|
16
|
+
};
|
|
17
|
+
inner: {
|
|
18
|
+
display: 'flex';
|
|
19
|
+
width: '100%';
|
|
20
|
+
};
|
|
21
|
+
tabs: {
|
|
22
|
+
display: 'flex';
|
|
23
|
+
flexDirection: 'row' | 'column';
|
|
24
|
+
alignItems: 'center' | 'stretch';
|
|
25
|
+
width: '100%';
|
|
26
|
+
position: 'relative';
|
|
27
|
+
};
|
|
28
|
+
tab: {
|
|
29
|
+
width: any;
|
|
30
|
+
paddingRight: number;
|
|
31
|
+
paddingLeft: number;
|
|
32
|
+
paddingTop: number;
|
|
33
|
+
paddingBottom: number;
|
|
34
|
+
borderRadius: number;
|
|
35
|
+
alignItems: 'center';
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
};
|
|
38
|
+
slidingTab: {
|
|
39
|
+
width: any;
|
|
40
|
+
maxHeight: number;
|
|
41
|
+
marginTop: number;
|
|
42
|
+
paddingRight: number;
|
|
43
|
+
paddingLeft: number;
|
|
44
|
+
paddingTop: number;
|
|
45
|
+
paddingBottom: number;
|
|
46
|
+
borderRadius: number;
|
|
47
|
+
zIndex: number;
|
|
48
|
+
position: 'absolute';
|
|
49
|
+
backgroundColor: any;
|
|
50
|
+
};
|
|
51
|
+
textHidden: {
|
|
52
|
+
opacity: number;
|
|
53
|
+
};
|
|
54
|
+
text: {
|
|
55
|
+
width: '100%';
|
|
56
|
+
maxHeight: number;
|
|
57
|
+
overflow: 'hidden';
|
|
58
|
+
};
|
|
54
59
|
};
|
|
@@ -10,7 +10,7 @@ import {SmallText} from '../../atoms/paragraph-components';
|
|
|
10
10
|
type InfoProps = {
|
|
11
11
|
label?: string;
|
|
12
12
|
description: string;
|
|
13
|
-
active?: boolean
|
|
13
|
+
active?: boolean;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const Info = ({label, description, active}: InfoProps) => {
|
|
@@ -19,10 +19,18 @@ const Info = ({label, description, active}: InfoProps) => {
|
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
21
|
<View style={styles.container}>
|
|
22
|
-
{label &&
|
|
23
|
-
{label}
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
{label && (
|
|
23
|
+
<Heading3 bold={true} addStyle={styles.label}>
|
|
24
|
+
{label}
|
|
25
|
+
</Heading3>
|
|
26
|
+
)}
|
|
27
|
+
<SmallText
|
|
28
|
+
textColor={
|
|
29
|
+
active !== undefined && active === false
|
|
30
|
+
? context.colors.ui.grey
|
|
31
|
+
: context.colors.ui.darkgrey
|
|
32
|
+
}
|
|
33
|
+
>
|
|
26
34
|
{description}
|
|
27
35
|
</SmallText>
|
|
28
36
|
</View>
|
|
@@ -18,12 +18,11 @@ export const InfoPreview = ({}: {}) => {
|
|
|
18
18
|
description={'Volg hier de dag van uw kinderen'}
|
|
19
19
|
/>
|
|
20
20
|
<Info
|
|
21
|
-
description={
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
active={false}
|
|
25
|
-
description={'Geen opmerking voor deze dag.'}
|
|
21
|
+
description={
|
|
22
|
+
'Luca was heel de dag wat flauw en voelde zich niet lekker. Mama is haar vroeger komen halen.'
|
|
23
|
+
}
|
|
26
24
|
/>
|
|
25
|
+
<Info active={false} description={'Geen opmerking voor deze dag.'} />
|
|
27
26
|
</View>
|
|
28
27
|
);
|
|
29
28
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export function Stylesheet(context: any): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
container: {
|
|
3
|
+
width: '100%';
|
|
4
|
+
backgroundColor: any;
|
|
5
|
+
borderRadius: number;
|
|
6
|
+
alignItems: 'flex-start';
|
|
7
|
+
justifyContent: 'flex-start';
|
|
8
|
+
paddingLeft: number;
|
|
9
|
+
paddingTop: number;
|
|
10
|
+
paddingRight: number;
|
|
11
|
+
paddingBottom: number;
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
marginBottom: number;
|
|
15
|
+
};
|
|
16
16
|
};
|