@tactics/toddle-styleguide 1.2.8 → 1.3.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 +11 -0
- package/index.d.ts +2 -1
- package/index.tsx +2 -0
- package/package.json +1 -1
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +18 -18
- package/src/components/atoms/line/line.component.d.ts +12 -0
- package/src/components/atoms/line/line.component.tsx +23 -0
- package/src/components/atoms/line/line.preview.d.ts +1 -0
- package/src/components/atoms/line/line.preview.tsx +54 -0
- package/src/components/atoms/line/line.styles.d.ts +12 -0
- package/src/components/atoms/line/line.styles.js +10 -0
- package/src/components/atoms/quick-message/__snapshots__/quick-message.test.js.snap +72 -1
- package/src/components/atoms/quick-message/quick-message.component.d.ts +2 -0
- package/src/components/atoms/quick-message/quick-message.component.tsx +3 -1
- package/src/components/atoms/quick-message/quick-message.preview.tsx +10 -1
- package/src/components/atoms/quick-message/quick-message.styles.d.ts +4 -1
- package/src/components/atoms/quick-message/quick-message.styles.js +4 -2
- package/src/components/atoms/quick-message/quick-message.test.js +38 -6
- package/src/components/atoms/text-input/__snapshots__/text-input.test.js.snap +38 -78
- package/src/components/atoms/text-input/text-input.component.tsx +6 -9
- package/src/components/atoms/text-input/text-input.preview.tsx +3 -3
- package/src/components/atoms/text-input/text-input.styles.d.ts +9 -25
- package/src/components/atoms/text-input/text-input.styles.js +7 -13
- package/src/components/molecules/day/__snapshots__/day.test.js.snap +24 -24
- package/src/components/molecules/day/day.component.tsx +17 -4
- package/src/components/molecules/day/day.styles.d.ts +33 -42
- package/src/components/molecules/day/day.styles.js +14 -17
- package/src/components/molecules/failed-to-send/failed-bubble.component.d.ts +2 -2
- package/src/components/molecules/failed-to-send/failed-bubble.component.tsx +39 -22
- package/src/components/molecules/password-input/__snapshots__/password-input.test.js.snap +53 -68
- package/src/components/molecules/password-input/password-input.component.tsx +7 -9
- package/src/components/molecules/password-input/password-input.styles.d.ts +8 -7
- package/src/components/molecules/password-input/password-input.styles.js +6 -6
- package/src/components/molecules/search-input/__snapshots__/search.test.js.snap +30 -31
- package/src/components/molecules/search-input/search.component.d.ts +9 -11
- package/src/components/molecules/search-input/search.component.tsx +19 -30
- package/src/components/molecules/search-input/search.preview.tsx +8 -6
- package/src/components/molecules/search-input/search.styles.d.ts +12 -11
- package/src/components/molecules/search-input/search.styles.js +14 -8
- package/src/components/molecules/search-input/search.test.js +3 -1
- package/src/components/molecules/send-bubble/__snapshots__/send-text-bubble.test.js.snap +12 -32
- package/src/components/molecules/send-bubble/send-text-bubble.component.d.ts +4 -4
- package/src/components/molecules/send-bubble/send-text-bubble.component.tsx +36 -25
- package/src/components/molecules/send-bubble/send-text-bubble.styles.d.ts +4 -7
- package/src/components/molecules/send-bubble/send-text-bubble.styles.js +2 -8
- package/src/components/molecules/timeline/__snapshots__/timeline.test.js.snap +4 -4
- package/src/components/molecules/timeline/timeline.styles.d.ts +1 -1
- package/src/components/molecules/timeline/timeline.styles.js +2 -2
- package/src/components/molecules/timestamp/__snapshots__/timestamp.test.js.snap +2 -1
- package/src/components/molecules/timestamp/timestamp.component.d.ts +2 -1
- package/src/components/molecules/timestamp/timestamp.component.tsx +4 -7
- package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +165 -10
- package/src/components/organisms/child-list-item/child-list-item.component.d.ts +2 -0
- package/src/components/organisms/child-list-item/child-list-item.component.tsx +24 -1
- package/src/components/organisms/child-list-item/child-list-item.preview.tsx +11 -0
- package/src/components/organisms/child-list-item/child-list-item.styles.d.ts +0 -3
- package/src/components/organisms/child-list-item/child-list-item.styles.js +2 -3
- package/src/components/organisms/child-list-item/child-list-item.test.js +9 -4
- package/src/components/organisms/child-list-item/components/child-list-tag.component.d.ts +9 -0
- package/src/components/organisms/child-list-item/components/child-list-tag.component.tsx +28 -0
- package/src/components/organisms/child-list-item/components/child-list-tag.styles.d.ts +13 -0
- package/src/components/organisms/child-list-item/components/child-list-tag.styles.js +16 -0
- package/src/components/organisms/day-select/day-select.preview.tsx +9 -5
- package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.d.ts +9 -0
- package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.styles.d.ts +13 -0
- package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.styles.js +17 -0
- package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.test.js +21 -0
- package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.tsx +97 -0
- package/src/components/organisms/journal-entry/components/index.d.ts +2 -0
- package/src/components/organisms/journal-entry/components/index.ts +2 -0
- package/src/components/organisms/journal-entry/components/journal-entry-type/__snapshots__/journal-entry-type.test.js.snap +304 -0
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +16 -0
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.tsx +60 -0
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.styles.d.ts +13 -0
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.styles.js +16 -0
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.test.js +48 -0
- package/src/components/organisms/journal-entry/journal-entry.component.d.ts +38 -0
- package/src/components/organisms/journal-entry/journal-entry.component.tsx +139 -0
- package/src/components/organisms/journal-entry/journal-entry.preview.d.ts +1 -0
- package/src/components/organisms/journal-entry/journal-entry.preview.tsx +212 -0
- package/src/components/organisms/journal-entry/journal-entry.styles.d.ts +42 -0
- package/src/components/organisms/journal-entry/journal-entry.styles.js +35 -0
- package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +143 -399
- package/src/components/organisms/my-child-list-item/my-child-list-item.component.d.ts +5 -7
- package/src/components/organisms/my-child-list-item/my-child-list-item.component.tsx +32 -59
- package/src/components/organisms/my-child-list-item/my-child-list-item.preview.tsx +36 -24
- package/src/components/organisms/my-child-list-item/my-child-list-item.styles.d.ts +15 -11
- package/src/components/organisms/my-child-list-item/my-child-list-item.styles.js +16 -11
- package/src/components/organisms/my-child-list-item/my-child-list-item.test.js +5 -22
- package/src/components/organisms/text-bubble/__snapshots__/text-bubble.test.js.snap +45 -29
- package/src/components/organisms/text-bubble/text-bubble.component.d.ts +8 -6
- package/src/components/organisms/text-bubble/text-bubble.component.tsx +14 -12
- package/src/components/organisms/text-bubble/text-bubble.preview.tsx +14 -19
- package/src/components/organisms/text-bubble/text-bubble.styles.d.ts +14 -3
- package/src/components/organisms/text-bubble/text-bubble.styles.js +6 -0
- package/src/components/organisms/text-bubble/text-bubble.test.js +7 -7
- package/src/components/templates/modal/components/fade-panel.component.tsx +1 -1
- package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +4 -0
- package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.tsx +6 -0
- package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +14 -1
- package/src/utilities/toddle-datetime/toddle-datetime.class.tsx +31 -2
- package/src/utilities/toddle-datetime/toddle-datetime.preview.tsx +114 -84
- package/src/utilities/toddle-datetime/types/{duration-like.type.d.ts → duration.type.d.ts} +2 -0
- package/src/utilities/toddle-datetime/types/{duration-like.type.tsx → duration.type.tsx} +3 -0
- package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +1 -0
- package/src/utilities/toddle-datetime/types/toddle-datetime.type.tsx +8 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {useContext} from 'react';
|
|
1
|
+
import React, {useCallback, useContext} 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';
|
|
@@ -8,82 +8,55 @@ import {Stylesheet} from './my-child-list-item.styles';
|
|
|
8
8
|
import {Icon} from '../../../icons/index';
|
|
9
9
|
import {SmallText, TinyText} from '../../atoms/paragraph-components';
|
|
10
10
|
import {Heading2} from '../../atoms/heading-components';
|
|
11
|
-
import {
|
|
12
|
-
import {VisualState} from '../../../types/visual-state.enum';
|
|
11
|
+
import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime.class';
|
|
13
12
|
|
|
14
13
|
type MyChildListItemProps = {
|
|
15
14
|
id: string;
|
|
16
15
|
name: string;
|
|
17
|
-
|
|
18
|
-
age: number;
|
|
16
|
+
age: string;
|
|
19
17
|
sourceAvatar: ImageSourcePropType | Initials;
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
onPressChild: (id: string) => void;
|
|
19
|
+
onPressArrow: (id: string) => void;
|
|
22
20
|
};
|
|
23
21
|
export const MyChildListItem = ({
|
|
24
22
|
id,
|
|
25
23
|
name,
|
|
26
|
-
department,
|
|
27
24
|
age,
|
|
28
25
|
sourceAvatar,
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
onPressChild,
|
|
27
|
+
onPressArrow,
|
|
31
28
|
}: MyChildListItemProps) => {
|
|
32
|
-
const
|
|
33
|
-
const styles = Stylesheet(
|
|
29
|
+
const context = useContext(ThemeCtx);
|
|
30
|
+
const styles = Stylesheet(context);
|
|
34
31
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
name={'chevron-right'}
|
|
54
|
-
size={20}
|
|
55
|
-
color={Context.colors.ui.black}
|
|
56
|
-
/>
|
|
57
|
-
</View>
|
|
58
|
-
</Pressable>
|
|
59
|
-
) : (
|
|
60
|
-
<Pressable style={styles.container} onPress={() => onPress(id)}>
|
|
61
|
-
<Avatar source={sourceAvatar} size={Size.MEDIUM} isActive={false} />
|
|
62
|
-
<View style={styles.childTextContainer}>
|
|
63
|
-
<TinyText textAlign={'left'}>{age} jaar</TinyText>
|
|
64
|
-
<Heading2
|
|
65
|
-
bold={true}
|
|
66
|
-
textAlign={'left'}
|
|
67
|
-
numberOfLines={1}
|
|
68
|
-
ellipsizeMode={'tail'}
|
|
69
|
-
>
|
|
70
|
-
{name}
|
|
71
|
-
</Heading2>
|
|
72
|
-
<View style={styles.pillContainer}>
|
|
73
|
-
<Pill
|
|
74
|
-
label={'Geen actieve inschrijving'}
|
|
75
|
-
visualState={VisualState.INACTIVE}
|
|
76
|
-
/>
|
|
32
|
+
const onPressArrowCallback = useCallback(() => {
|
|
33
|
+
onPressArrow(id);
|
|
34
|
+
}, [id, onPressArrow]);
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<View style={styles.container}>
|
|
38
|
+
<Pressable style={styles.innerContainer} onPress={() => onPressChild(id)}>
|
|
39
|
+
<Avatar source={sourceAvatar} size={Size.MEDIUM} />
|
|
40
|
+
<View style={styles.childTextContainer}>
|
|
41
|
+
<TinyText textAlign={'left'}>{age}</TinyText>
|
|
42
|
+
<Heading2
|
|
43
|
+
bold={true}
|
|
44
|
+
textAlign={'left'}
|
|
45
|
+
numberOfLines={1}
|
|
46
|
+
ellipsizeMode={'tail'}
|
|
47
|
+
>
|
|
48
|
+
{name}
|
|
49
|
+
</Heading2>
|
|
77
50
|
</View>
|
|
78
|
-
</
|
|
79
|
-
<
|
|
51
|
+
</Pressable>
|
|
52
|
+
<Pressable onPress={onPressArrowCallback} style={styles.iconContainer}>
|
|
80
53
|
<Icon
|
|
81
54
|
style={'regular'}
|
|
82
55
|
name={'chevron-right'}
|
|
83
56
|
size={20}
|
|
84
|
-
color={
|
|
57
|
+
color={context.colors.ui.black}
|
|
85
58
|
/>
|
|
86
|
-
</
|
|
87
|
-
</
|
|
59
|
+
</Pressable>
|
|
60
|
+
</View>
|
|
88
61
|
);
|
|
89
62
|
};
|
|
@@ -1,39 +1,51 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {MyChildListItem} from './my-child-list-item.component';
|
|
3
|
-
import {View} from 'react-native';
|
|
3
|
+
import {FlatList, View} from 'react-native';
|
|
4
|
+
|
|
5
|
+
interface IData {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
age: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const data: IData[] = [];
|
|
12
|
+
for (let i = 0; i < 6; i++) {
|
|
13
|
+
data.push({
|
|
14
|
+
id: 'child' + i,
|
|
15
|
+
name: 'Children with very long names because in 2023 we give our kids special name',
|
|
16
|
+
age: Math.floor(Math.random() * (6 - 2 + 1) + 2),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
4
19
|
|
|
5
20
|
export const MyChildListItemPreview = ({}: {}) => {
|
|
21
|
+
const renderMyChildList = ({item}: any) => {
|
|
22
|
+
return (
|
|
23
|
+
<MyChildListItem
|
|
24
|
+
id={item.id}
|
|
25
|
+
name={item.name}
|
|
26
|
+
age={item.age}
|
|
27
|
+
sourceAvatar={require('../../../../assets/components/avatar/baby.png')}
|
|
28
|
+
onPressChild={(id) => console.log('Pressed ', id)}
|
|
29
|
+
onPressArrow={(id) => console.log('Pressed arrow ', id)}
|
|
30
|
+
/>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
6
34
|
return (
|
|
7
35
|
<View
|
|
8
36
|
style={{
|
|
9
37
|
flex: 1,
|
|
10
|
-
justifyContent: 'center',
|
|
11
38
|
padding: 16,
|
|
39
|
+
justifyContent: 'center',
|
|
12
40
|
backgroundColor: 'white',
|
|
13
41
|
}}
|
|
14
42
|
>
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
sourceAvatar={require('../../../../assets/components/avatar/baby.png')}
|
|
22
|
-
onPress={() => console.log('Pressed')}
|
|
23
|
-
isActive={true}
|
|
24
|
-
/>
|
|
25
|
-
</View>
|
|
26
|
-
<View style={{marginBottom: 24}}>
|
|
27
|
-
<MyChildListItem
|
|
28
|
-
id={'child2'}
|
|
29
|
-
name={'Luca JannsensJannsensJannsensJannsensJannsens'}
|
|
30
|
-
department={'De Teddybeertjes'}
|
|
31
|
-
age={2}
|
|
32
|
-
sourceAvatar={require('../../../../assets/components/avatar/baby.png')}
|
|
33
|
-
onPress={() => console.log('Pressed')}
|
|
34
|
-
isActive={false}
|
|
35
|
-
/>
|
|
36
|
-
</View>
|
|
43
|
+
<FlatList
|
|
44
|
+
style={{flex: 1}}
|
|
45
|
+
data={data}
|
|
46
|
+
renderItem={renderMyChildList}
|
|
47
|
+
keyExtractor={(item) => item.id}
|
|
48
|
+
/>
|
|
37
49
|
</View>
|
|
38
50
|
);
|
|
39
51
|
};
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
export function Stylesheet(
|
|
1
|
+
export function Stylesheet(context: any): {
|
|
2
2
|
container: {
|
|
3
3
|
width: string;
|
|
4
|
+
borderTopRightRadius: number;
|
|
5
|
+
borderBottomRightRadius: number;
|
|
6
|
+
borderTopLeftRadius: number;
|
|
7
|
+
borderBottomLeftRadius: number;
|
|
4
8
|
flexDirection: 'row';
|
|
5
|
-
|
|
9
|
+
backgroundColor: any;
|
|
10
|
+
};
|
|
11
|
+
innerContainer: {
|
|
12
|
+
flex: number;
|
|
6
13
|
padding: number;
|
|
7
|
-
|
|
14
|
+
flexDirection: 'row';
|
|
15
|
+
alignItems: 'center';
|
|
8
16
|
borderTopRightRadius: number;
|
|
9
17
|
borderBottomRightRadius: number;
|
|
18
|
+
borderTopLeftRadius: number;
|
|
10
19
|
borderBottomLeftRadius: number;
|
|
11
|
-
overflow: 'hidden';
|
|
12
|
-
backgroundColor: any;
|
|
13
20
|
};
|
|
14
21
|
childTextContainer: {
|
|
15
22
|
flex: number;
|
|
16
|
-
alignItems: 'flex-start';
|
|
17
|
-
justifyContent: 'center';
|
|
18
23
|
marginLeft: number;
|
|
19
24
|
};
|
|
20
25
|
iconContainer: {
|
|
21
26
|
alignItems: 'flex-end';
|
|
22
27
|
justifyContent: 'center';
|
|
28
|
+
paddingRight: number;
|
|
23
29
|
width: number;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
pillContainer: {
|
|
27
|
-
marginTop: number;
|
|
30
|
+
borderTopRightRadius: number;
|
|
31
|
+
borderBottomRightRadius: number;
|
|
28
32
|
};
|
|
29
33
|
};
|
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
import {StyleSheet} from 'react-native';
|
|
2
2
|
import {Scale} from '../../../theme/scale/index';
|
|
3
3
|
|
|
4
|
-
export const Stylesheet = (
|
|
4
|
+
export const Stylesheet = (context) =>
|
|
5
5
|
StyleSheet.create({
|
|
6
6
|
container: {
|
|
7
7
|
width: '100%',
|
|
8
|
+
borderTopRightRadius: Scale.l,
|
|
9
|
+
borderBottomRightRadius: Scale.l,
|
|
10
|
+
borderTopLeftRadius: Scale.xxl,
|
|
11
|
+
borderBottomLeftRadius: Scale.xxl,
|
|
8
12
|
flexDirection: 'row',
|
|
9
|
-
|
|
13
|
+
backgroundColor: context.colors.ui.white,
|
|
14
|
+
},
|
|
15
|
+
innerContainer: {
|
|
16
|
+
flex: 1,
|
|
10
17
|
padding: Scale.xs,
|
|
11
|
-
|
|
18
|
+
flexDirection: 'row',
|
|
19
|
+
alignItems: 'center',
|
|
12
20
|
borderTopRightRadius: Scale.l,
|
|
13
21
|
borderBottomRightRadius: Scale.l,
|
|
22
|
+
borderTopLeftRadius: Scale.xxl,
|
|
14
23
|
borderBottomLeftRadius: Scale.xxl,
|
|
15
|
-
backgroundColor: Context.colors.ui.white,
|
|
16
24
|
},
|
|
17
25
|
childTextContainer: {
|
|
18
26
|
flex: 1,
|
|
19
|
-
alignItems: 'flex-start',
|
|
20
|
-
justifyContent: 'center',
|
|
21
27
|
marginLeft: Scale.l,
|
|
22
28
|
},
|
|
23
29
|
iconContainer: {
|
|
24
30
|
alignItems: 'flex-end',
|
|
25
31
|
justifyContent: 'center',
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
marginTop: Scale.xxxs,
|
|
32
|
+
paddingRight: Scale.xs,
|
|
33
|
+
width: Scale.m * 3,
|
|
34
|
+
borderTopRightRadius: Scale.l,
|
|
35
|
+
borderBottomRightRadius: Scale.l,
|
|
31
36
|
},
|
|
32
37
|
});
|
|
@@ -3,34 +3,17 @@ import renderer from 'react-test-renderer';
|
|
|
3
3
|
import {MyChildListItem} from './my-child-list-item.component';
|
|
4
4
|
|
|
5
5
|
describe('My child list item component test', () => {
|
|
6
|
-
it('Should render your child
|
|
6
|
+
it('Should render your child', () => {
|
|
7
7
|
const tree = renderer
|
|
8
8
|
.create(
|
|
9
9
|
<MyChildListItem
|
|
10
|
-
id={
|
|
10
|
+
id={'kind1'}
|
|
11
11
|
name={'Luca Jannsens'}
|
|
12
12
|
department={'De Teddybeertjes'}
|
|
13
|
-
age={
|
|
13
|
+
age={'leeftijd'}
|
|
14
14
|
sourceAvatar={require('./../../../../assets/components/avatar/baby.png')}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/>
|
|
18
|
-
)
|
|
19
|
-
.toJSON();
|
|
20
|
-
|
|
21
|
-
expect(tree).toMatchSnapshot();
|
|
22
|
-
});
|
|
23
|
-
it('Should render your child but with an inactive subscription', () => {
|
|
24
|
-
const tree = renderer
|
|
25
|
-
.create(
|
|
26
|
-
<MyChildListItem
|
|
27
|
-
id={1}
|
|
28
|
-
name={'Luca Jannsens'}
|
|
29
|
-
department={'De Teddybeertjes'}
|
|
30
|
-
age={2}
|
|
31
|
-
sourceAvatar={require('./../../../../assets/components/avatar/baby.png')}
|
|
32
|
-
onPress={() => console.log('pressed Child')}
|
|
33
|
-
isActive={false}
|
|
15
|
+
onPressChild={() => console.log('pressed Child')}
|
|
16
|
+
onPressArrow={() => console.log('pressed arrow')}
|
|
34
17
|
/>
|
|
35
18
|
)
|
|
36
19
|
.toJSON();
|
|
@@ -5,8 +5,10 @@ exports[`test text-bubble given the bubbleAlignment is SENT return a text-bubble
|
|
|
5
5
|
style={
|
|
6
6
|
[
|
|
7
7
|
{
|
|
8
|
+
"gap": 4,
|
|
8
9
|
"width": "100%",
|
|
9
10
|
},
|
|
11
|
+
false,
|
|
10
12
|
]
|
|
11
13
|
}
|
|
12
14
|
>
|
|
@@ -42,7 +44,6 @@ exports[`test text-bubble given the bubbleAlignment is SENT return a text-bubble
|
|
|
42
44
|
},
|
|
43
45
|
false,
|
|
44
46
|
false,
|
|
45
|
-
false,
|
|
46
47
|
{
|
|
47
48
|
"borderBottomLeftRadius": 32,
|
|
48
49
|
"borderBottomRightRadius": 8,
|
|
@@ -341,7 +342,6 @@ exports[`test text-bubble given the bubbleAlignment is SENT return a text-bubble
|
|
|
341
342
|
"backgroundColor": "#E0E8F9",
|
|
342
343
|
},
|
|
343
344
|
false,
|
|
344
|
-
false,
|
|
345
345
|
],
|
|
346
346
|
]
|
|
347
347
|
}
|
|
@@ -357,6 +357,7 @@ exports[`test text-bubble given the bubbleAlignment is SENT return a text-bubble
|
|
|
357
357
|
style={
|
|
358
358
|
[
|
|
359
359
|
{
|
|
360
|
+
"marginBottom": 2,
|
|
360
361
|
"maxWidth": "80%",
|
|
361
362
|
},
|
|
362
363
|
{
|
|
@@ -386,7 +387,8 @@ exports[`test text-bubble given the bubbleAlignment is SENT return a text-bubble
|
|
|
386
387
|
]
|
|
387
388
|
}
|
|
388
389
|
>
|
|
389
|
-
|
|
390
|
+
|
|
391
|
+
25 May, 9:08
|
|
390
392
|
</Text>
|
|
391
393
|
</View>
|
|
392
394
|
</View>
|
|
@@ -397,8 +399,10 @@ exports[`test text-bubble given the visualState is DEFAULT return a light-blue c
|
|
|
397
399
|
style={
|
|
398
400
|
[
|
|
399
401
|
{
|
|
402
|
+
"gap": 4,
|
|
400
403
|
"width": "100%",
|
|
401
404
|
},
|
|
405
|
+
false,
|
|
402
406
|
]
|
|
403
407
|
}
|
|
404
408
|
>
|
|
@@ -434,7 +438,6 @@ exports[`test text-bubble given the visualState is DEFAULT return a light-blue c
|
|
|
434
438
|
},
|
|
435
439
|
false,
|
|
436
440
|
false,
|
|
437
|
-
false,
|
|
438
441
|
{
|
|
439
442
|
"borderBottomLeftRadius": 32,
|
|
440
443
|
"borderBottomRightRadius": 8,
|
|
@@ -733,7 +736,6 @@ exports[`test text-bubble given the visualState is DEFAULT return a light-blue c
|
|
|
733
736
|
"backgroundColor": "#E0E8F9",
|
|
734
737
|
},
|
|
735
738
|
false,
|
|
736
|
-
false,
|
|
737
739
|
],
|
|
738
740
|
]
|
|
739
741
|
}
|
|
@@ -749,6 +751,7 @@ exports[`test text-bubble given the visualState is DEFAULT return a light-blue c
|
|
|
749
751
|
style={
|
|
750
752
|
[
|
|
751
753
|
{
|
|
754
|
+
"marginBottom": 2,
|
|
752
755
|
"maxWidth": "80%",
|
|
753
756
|
},
|
|
754
757
|
{
|
|
@@ -778,7 +781,8 @@ exports[`test text-bubble given the visualState is DEFAULT return a light-blue c
|
|
|
778
781
|
]
|
|
779
782
|
}
|
|
780
783
|
>
|
|
781
|
-
|
|
784
|
+
|
|
785
|
+
25 May, 9:08
|
|
782
786
|
</Text>
|
|
783
787
|
</View>
|
|
784
788
|
</View>
|
|
@@ -789,8 +793,10 @@ exports[`test text-bubble given the visualState is ERROR return a red colored te
|
|
|
789
793
|
style={
|
|
790
794
|
[
|
|
791
795
|
{
|
|
796
|
+
"gap": 4,
|
|
792
797
|
"width": "100%",
|
|
793
798
|
},
|
|
799
|
+
false,
|
|
794
800
|
]
|
|
795
801
|
}
|
|
796
802
|
>
|
|
@@ -823,9 +829,6 @@ exports[`test text-bubble given the visualState is ERROR return a red colored te
|
|
|
823
829
|
},
|
|
824
830
|
false,
|
|
825
831
|
false,
|
|
826
|
-
{
|
|
827
|
-
"backgroundColor": "#F16868",
|
|
828
|
-
},
|
|
829
832
|
false,
|
|
830
833
|
{
|
|
831
834
|
"borderBottomLeftRadius": 32,
|
|
@@ -965,7 +968,7 @@ exports[`test text-bubble given the visualState is ERROR return a red colored te
|
|
|
965
968
|
}
|
|
966
969
|
stroke={
|
|
967
970
|
{
|
|
968
|
-
"payload":
|
|
971
|
+
"payload": 4279837036,
|
|
969
972
|
"type": 0,
|
|
970
973
|
}
|
|
971
974
|
}
|
|
@@ -1066,7 +1069,7 @@ exports[`test text-bubble given the visualState is ERROR return a red colored te
|
|
|
1066
1069
|
}
|
|
1067
1070
|
stroke={
|
|
1068
1071
|
{
|
|
1069
|
-
"payload":
|
|
1072
|
+
"payload": 4279837036,
|
|
1070
1073
|
"type": 0,
|
|
1071
1074
|
}
|
|
1072
1075
|
}
|
|
@@ -1112,7 +1115,7 @@ exports[`test text-bubble given the visualState is ERROR return a red colored te
|
|
|
1112
1115
|
},
|
|
1113
1116
|
],
|
|
1114
1117
|
{
|
|
1115
|
-
"color": "#
|
|
1118
|
+
"color": "#1F2933",
|
|
1116
1119
|
"textAlign": undefined,
|
|
1117
1120
|
"width": "100%",
|
|
1118
1121
|
},
|
|
@@ -1123,9 +1126,6 @@ exports[`test text-bubble given the visualState is ERROR return a red colored te
|
|
|
1123
1126
|
},
|
|
1124
1127
|
false,
|
|
1125
1128
|
false,
|
|
1126
|
-
{
|
|
1127
|
-
"backgroundColor": "#F16868",
|
|
1128
|
-
},
|
|
1129
1129
|
],
|
|
1130
1130
|
]
|
|
1131
1131
|
}
|
|
@@ -1141,6 +1141,7 @@ exports[`test text-bubble given the visualState is ERROR return a red colored te
|
|
|
1141
1141
|
style={
|
|
1142
1142
|
[
|
|
1143
1143
|
{
|
|
1144
|
+
"marginBottom": 2,
|
|
1144
1145
|
"maxWidth": "80%",
|
|
1145
1146
|
},
|
|
1146
1147
|
{
|
|
@@ -1170,7 +1171,8 @@ exports[`test text-bubble given the visualState is ERROR return a red colored te
|
|
|
1170
1171
|
]
|
|
1171
1172
|
}
|
|
1172
1173
|
>
|
|
1173
|
-
|
|
1174
|
+
|
|
1175
|
+
25 May, 9:08
|
|
1174
1176
|
</Text>
|
|
1175
1177
|
</View>
|
|
1176
1178
|
</View>
|
|
@@ -1181,8 +1183,12 @@ exports[`test text-bubble given the visualState is RECEIVE return a text-bubble
|
|
|
1181
1183
|
style={
|
|
1182
1184
|
[
|
|
1183
1185
|
{
|
|
1186
|
+
"gap": 4,
|
|
1184
1187
|
"width": "100%",
|
|
1185
1188
|
},
|
|
1189
|
+
{
|
|
1190
|
+
"marginLeft": 24,
|
|
1191
|
+
},
|
|
1186
1192
|
]
|
|
1187
1193
|
}
|
|
1188
1194
|
>
|
|
@@ -1215,7 +1221,6 @@ exports[`test text-bubble given the visualState is RECEIVE return a text-bubble
|
|
|
1215
1221
|
"backgroundColor": "#E0E8F9",
|
|
1216
1222
|
},
|
|
1217
1223
|
false,
|
|
1218
|
-
false,
|
|
1219
1224
|
{
|
|
1220
1225
|
"borderBottomLeftRadius": 8,
|
|
1221
1226
|
"borderBottomRightRadius": 32,
|
|
@@ -1515,7 +1520,6 @@ exports[`test text-bubble given the visualState is RECEIVE return a text-bubble
|
|
|
1515
1520
|
"backgroundColor": "#E0E8F9",
|
|
1516
1521
|
},
|
|
1517
1522
|
false,
|
|
1518
|
-
false,
|
|
1519
1523
|
],
|
|
1520
1524
|
]
|
|
1521
1525
|
}
|
|
@@ -1531,6 +1535,7 @@ exports[`test text-bubble given the visualState is RECEIVE return a text-bubble
|
|
|
1531
1535
|
style={
|
|
1532
1536
|
[
|
|
1533
1537
|
{
|
|
1538
|
+
"marginBottom": 2,
|
|
1534
1539
|
"maxWidth": "80%",
|
|
1535
1540
|
},
|
|
1536
1541
|
false,
|
|
@@ -1558,7 +1563,8 @@ exports[`test text-bubble given the visualState is RECEIVE return a text-bubble
|
|
|
1558
1563
|
]
|
|
1559
1564
|
}
|
|
1560
1565
|
>
|
|
1561
|
-
|
|
1566
|
+
|
|
1567
|
+
25 May, 9:08
|
|
1562
1568
|
</Text>
|
|
1563
1569
|
</View>
|
|
1564
1570
|
</View>
|
|
@@ -1569,8 +1575,12 @@ exports[`test text-bubble given the visualState is RECEIVE return a textBubble w
|
|
|
1569
1575
|
style={
|
|
1570
1576
|
[
|
|
1571
1577
|
{
|
|
1578
|
+
"gap": 4,
|
|
1572
1579
|
"width": "100%",
|
|
1573
1580
|
},
|
|
1581
|
+
{
|
|
1582
|
+
"marginLeft": 24,
|
|
1583
|
+
},
|
|
1574
1584
|
]
|
|
1575
1585
|
}
|
|
1576
1586
|
>
|
|
@@ -1603,7 +1613,6 @@ exports[`test text-bubble given the visualState is RECEIVE return a textBubble w
|
|
|
1603
1613
|
"backgroundColor": "#E0E8F9",
|
|
1604
1614
|
},
|
|
1605
1615
|
false,
|
|
1606
|
-
false,
|
|
1607
1616
|
{
|
|
1608
1617
|
"borderBottomLeftRadius": 8,
|
|
1609
1618
|
"borderBottomRightRadius": 32,
|
|
@@ -1903,7 +1912,6 @@ exports[`test text-bubble given the visualState is RECEIVE return a textBubble w
|
|
|
1903
1912
|
"backgroundColor": "#E0E8F9",
|
|
1904
1913
|
},
|
|
1905
1914
|
false,
|
|
1906
|
-
false,
|
|
1907
1915
|
],
|
|
1908
1916
|
]
|
|
1909
1917
|
}
|
|
@@ -1919,6 +1927,7 @@ exports[`test text-bubble given the visualState is RECEIVE return a textBubble w
|
|
|
1919
1927
|
style={
|
|
1920
1928
|
[
|
|
1921
1929
|
{
|
|
1930
|
+
"marginBottom": 2,
|
|
1922
1931
|
"maxWidth": "80%",
|
|
1923
1932
|
},
|
|
1924
1933
|
false,
|
|
@@ -1946,7 +1955,8 @@ exports[`test text-bubble given the visualState is RECEIVE return a textBubble w
|
|
|
1946
1955
|
]
|
|
1947
1956
|
}
|
|
1948
1957
|
>
|
|
1949
|
-
|
|
1958
|
+
|
|
1959
|
+
25 May, 9:08
|
|
1950
1960
|
</Text>
|
|
1951
1961
|
</View>
|
|
1952
1962
|
</View>
|
|
@@ -1957,8 +1967,10 @@ exports[`test text-bubble given the visualState is WARNING return an orange colo
|
|
|
1957
1967
|
style={
|
|
1958
1968
|
[
|
|
1959
1969
|
{
|
|
1970
|
+
"gap": 4,
|
|
1960
1971
|
"width": "100%",
|
|
1961
1972
|
},
|
|
1973
|
+
false,
|
|
1962
1974
|
]
|
|
1963
1975
|
}
|
|
1964
1976
|
>
|
|
@@ -1991,10 +2003,9 @@ exports[`test text-bubble given the visualState is WARNING return an orange colo
|
|
|
1991
2003
|
},
|
|
1992
2004
|
false,
|
|
1993
2005
|
{
|
|
1994
|
-
"backgroundColor": "#
|
|
2006
|
+
"backgroundColor": "#FFD398",
|
|
1995
2007
|
},
|
|
1996
2008
|
false,
|
|
1997
|
-
false,
|
|
1998
2009
|
{
|
|
1999
2010
|
"borderBottomLeftRadius": 32,
|
|
2000
2011
|
"borderBottomRightRadius": 8,
|
|
@@ -2280,7 +2291,7 @@ exports[`test text-bubble given the visualState is WARNING return an orange colo
|
|
|
2280
2291
|
},
|
|
2281
2292
|
],
|
|
2282
2293
|
{
|
|
2283
|
-
"color": "#
|
|
2294
|
+
"color": "#1F2933",
|
|
2284
2295
|
"textAlign": undefined,
|
|
2285
2296
|
"width": "100%",
|
|
2286
2297
|
},
|
|
@@ -2291,9 +2302,8 @@ exports[`test text-bubble given the visualState is WARNING return an orange colo
|
|
|
2291
2302
|
},
|
|
2292
2303
|
false,
|
|
2293
2304
|
{
|
|
2294
|
-
"backgroundColor": "#
|
|
2305
|
+
"backgroundColor": "#FFD398",
|
|
2295
2306
|
},
|
|
2296
|
-
false,
|
|
2297
2307
|
],
|
|
2298
2308
|
]
|
|
2299
2309
|
}
|
|
@@ -2309,6 +2319,7 @@ exports[`test text-bubble given the visualState is WARNING return an orange colo
|
|
|
2309
2319
|
style={
|
|
2310
2320
|
[
|
|
2311
2321
|
{
|
|
2322
|
+
"marginBottom": 2,
|
|
2312
2323
|
"maxWidth": "80%",
|
|
2313
2324
|
},
|
|
2314
2325
|
{
|
|
@@ -2338,7 +2349,8 @@ exports[`test text-bubble given the visualState is WARNING return an orange colo
|
|
|
2338
2349
|
]
|
|
2339
2350
|
}
|
|
2340
2351
|
>
|
|
2341
|
-
|
|
2352
|
+
|
|
2353
|
+
25 May, 9:08
|
|
2342
2354
|
</Text>
|
|
2343
2355
|
</View>
|
|
2344
2356
|
</View>
|
|
@@ -2349,8 +2361,10 @@ exports[`test text-bubble return a text bubble, that will be send, but does not
|
|
|
2349
2361
|
style={
|
|
2350
2362
|
[
|
|
2351
2363
|
{
|
|
2364
|
+
"gap": 4,
|
|
2352
2365
|
"width": "100%",
|
|
2353
2366
|
},
|
|
2367
|
+
false,
|
|
2354
2368
|
]
|
|
2355
2369
|
}
|
|
2356
2370
|
>
|
|
@@ -2759,6 +2773,7 @@ exports[`test text-bubble return a text bubble, that will be send, but does not
|
|
|
2759
2773
|
style={
|
|
2760
2774
|
[
|
|
2761
2775
|
{
|
|
2776
|
+
"marginBottom": 2,
|
|
2762
2777
|
"maxWidth": "80%",
|
|
2763
2778
|
},
|
|
2764
2779
|
{
|
|
@@ -2788,7 +2803,8 @@ exports[`test text-bubble return a text bubble, that will be send, but does not
|
|
|
2788
2803
|
]
|
|
2789
2804
|
}
|
|
2790
2805
|
>
|
|
2791
|
-
|
|
2806
|
+
|
|
2807
|
+
25 May, 9:08
|
|
2792
2808
|
</Text>
|
|
2793
2809
|
</View>
|
|
2794
2810
|
</View>
|