@tactics/toddle-styleguide 5.3.1 → 5.4.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 -19
- package/app.json +8 -4
- package/index.tsx +0 -4
- package/package.json +61 -28
- package/src/components/atoms/calendar/calendar.component.tsx +10 -6
- package/src/components/atoms/calendar/calendar.preview.tsx +4 -3
- package/src/components/molecules/amount/amount.component.tsx +5 -4
- package/src/components/molecules/calendar-select/calendar-select.component.d.ts +4 -4
- package/src/components/molecules/calendar-select/calendar-select.component.tsx +17 -16
- package/src/components/molecules/calendar-select/calendar-select.preview.tsx +16 -5
- package/src/components/molecules/date-input/date-input.component.d.ts +2 -2
- package/src/components/molecules/date-input/date-input.component.tsx +3 -3
- package/src/components/molecules/date-input/date-input.preview.tsx +5 -5
- package/src/components/molecules/day/day.component.d.ts +3 -3
- package/src/components/molecules/day/day.component.tsx +22 -17
- package/src/components/molecules/selectable-list-item/selectable-list-item.component.tsx +12 -7
- package/src/components/molecules/timestamp/timestamp.component.d.ts +2 -2
- package/src/components/molecules/timestamp/timestamp.component.tsx +12 -5
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +2 -2
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.tsx +5 -5
- package/src/components/organisms/journal-entry/journal-entry.component.d.ts +3 -3
- package/src/components/organisms/journal-entry/journal-entry.component.tsx +7 -3
- package/src/components/organisms/journal-entry/journal-entry.preview.tsx +7 -3
- package/src/components/organisms/text-bubble/text-bubble.component.d.ts +2 -2
- package/src/components/organisms/text-bubble/text-bubble.component.tsx +6 -3
- package/src/components/organisms/text-bubble/text-bubble.preview.tsx +19 -7
- package/src/components/templates/popover-action/popover-action.component.tsx +9 -8
- package/src/icons/solid/cloud-download/cloud-download.icon.tsx +1 -1
- package/src/icons/solid/refresh/refresh-solid.icon.tsx +2 -2
- package/src/utilities/datetime/clock.class.tsx +14 -0
- package/src/utilities/datetime/dateonly.class.tsx +287 -0
- package/src/utilities/datetime/datetime.class.tsx +288 -0
- package/src/utilities/datetime/day.class.tsx +48 -0
- package/src/utilities/datetime/dayjs-config.ts +96 -0
- package/src/utilities/datetime/dayoftheweek.class.tsx +242 -0
- package/src/utilities/datetime/hour.class.tsx +60 -0
- package/src/utilities/datetime/locale.tsx +6 -0
- package/src/utilities/datetime/millisecond.class.tsx +48 -0
- package/src/utilities/datetime/minute.class.tsx +55 -0
- package/src/utilities/datetime/month.class.tsx +74 -0
- package/src/utilities/datetime/second.class.tsx +52 -0
- package/src/utilities/datetime/time.class.tsx +190 -0
- package/src/utilities/datetime/timezone.class.tsx +36 -0
- package/src/utilities/datetime/year.class.tsx +78 -0
- package/src/utilities/datetime/yearandmonth.class.tsx +80 -0
- package/src/components/atoms/background-gradient/__snapshots__/background-gradient.test.js.snap +0 -40
- package/src/components/atoms/background-gradient/background-gradient.test.js +0 -10
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +0 -6817
- package/src/components/atoms/calendar/calendar.test.js +0 -35
- package/src/components/atoms/check-switch/__snapshots__/check-switch.test.js.snap +0 -84
- package/src/components/atoms/check-switch/check-switch.test.js +0 -13
- package/src/components/atoms/heading-components/all-caps-heading/__snapshots__/all-caps-heading.test.js.snap +0 -113
- package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.test.js +0 -44
- package/src/components/atoms/heading-components/heading1/__snapshots__/heading1.test.js.snap +0 -121
- package/src/components/atoms/heading-components/heading1/heading1.test.js +0 -51
- package/src/components/atoms/heading-components/heading2/__snapshots__/heading2.test.js.snap +0 -121
- package/src/components/atoms/heading-components/heading2/heading2.test.js +0 -51
- package/src/components/atoms/heading-components/heading3/__snapshots__/heading3.test.js.snap +0 -121
- package/src/components/atoms/heading-components/heading3/heading3.test.js +0 -51
- package/src/components/atoms/heading-components/heading4/__snapshots__/heading4.test.js.snap +0 -121
- package/src/components/atoms/heading-components/heading4/heading4.test.js +0 -51
- package/src/components/atoms/image-bubble/__snapshots__/image-bubble.test.js.snap +0 -67
- package/src/components/atoms/image-bubble/image-bubble.test.js +0 -20
- package/src/components/atoms/increment-input/__snapshots__/increment-input.test.js.snap +0 -269
- package/src/components/atoms/increment-input/increment-input.test.js +0 -14
- package/src/components/atoms/logo/__snapshots__/logo.test.js.snap +0 -113
- package/src/components/atoms/logo/logo.test.js +0 -16
- package/src/components/atoms/paragraph-components/paragraph/__snapshots__/paragraph.test.js.snap +0 -121
- package/src/components/atoms/paragraph-components/paragraph/paragraph.test.js +0 -76
- package/src/components/atoms/paragraph-components/small-text/__snapshots__/small-text.test.js.snap +0 -121
- package/src/components/atoms/paragraph-components/small-text/small-text.test.js +0 -76
- package/src/components/atoms/paragraph-components/tiny-text/__snapshots__/tiny-text.test.js.snap +0 -121
- package/src/components/atoms/paragraph-components/tiny-text/tiny-text.test.js +0 -76
- package/src/components/atoms/quick-message/__snapshots__/quick-message.test.js.snap +0 -143
- package/src/components/atoms/quick-message/quick-message.test.js +0 -58
- package/src/components/atoms/split-container/__snapshots__/split-container.test.js.snap +0 -333
- package/src/components/atoms/split-container/split-container.test.js +0 -45
- package/src/components/atoms/text-input/__snapshots__/text-input.test.js.snap +0 -123
- package/src/components/atoms/text-input/text-input.test.js +0 -59
- package/src/components/molecules/avatar/__snapshots__/avatar.test.js.snap +0 -97
- package/src/components/molecules/avatar/avatar.test.js +0 -22
- package/src/components/molecules/blocked-message/__snapshots__/blocked-message.test.js.snap +0 -107
- package/src/components/molecules/blocked-message/blocked-message.test.js +0 -12
- package/src/components/molecules/button/__snapshots__/button.test.js.snap +0 -652
- package/src/components/molecules/button/button.test.js +0 -56
- package/src/components/molecules/calendar-select/__snapshots__/calendar-select.test.js.snap +0 -343
- package/src/components/molecules/calendar-select/calendar-select.test.js +0 -20
- package/src/components/molecules/cancel-link/__snapshots__/cancel-link.test.js.snap +0 -139
- package/src/components/molecules/cancel-link/cancel-link.test.js +0 -28
- package/src/components/molecules/checkbox/__snapshots__/checkbox.test.js.snap +0 -176
- package/src/components/molecules/checkbox/checkbox.test.js +0 -30
- package/src/components/molecules/contact-address/__snapshots__/contact-address.test.js.snap +0 -113
- package/src/components/molecules/contact-address/contact-address.test.js +0 -18
- package/src/components/molecules/contact-role/__snapshots__/contact-role.test.js.snap +0 -113
- package/src/components/molecules/contact-role/contact-role.test.js +0 -18
- package/src/components/molecules/date-input/__snapshots__/date-input.test.js.snap +0 -140
- package/src/components/molecules/date-input/date-input.test.js +0 -23
- package/src/components/molecules/day/__snapshots__/day.test.js.snap +0 -263
- package/src/components/molecules/day/day.test.js +0 -37
- package/src/components/molecules/default-select/__snapshots__/default-select.test.js.snap +0 -140
- package/src/components/molecules/default-select/default-select.test.js +0 -17
- package/src/components/molecules/department_logo/__snapshots__/department-logo.test.js.snap +0 -27
- package/src/components/molecules/department_logo/department-logo.test.js +0 -12
- package/src/components/molecules/failed-to-send/__snapshots__/failed-bubble.test.js.snap +0 -386
- package/src/components/molecules/failed-to-send/failed-bubble.test.js +0 -75
- package/src/components/molecules/filter-range/__snapshots__/filter-range.test.js.snap +0 -208
- package/src/components/molecules/filter-range/filter-range.test.js +0 -20
- package/src/components/molecules/filter-tab/__snapshots__/filter-tab.test.js.snap +0 -536
- package/src/components/molecules/filter-tab/filter-tab.test.js +0 -42
- package/src/components/molecules/info/__snapshots__/info.test.js.snap +0 -64
- package/src/components/molecules/info/info.test.js +0 -18
- package/src/components/molecules/language-button/__snapshots__/language-button.test.js.snap +0 -129
- package/src/components/molecules/language-button/language-button.test.js +0 -29
- package/src/components/molecules/message-input/__snapshots__/message-input.test.js.snap +0 -611
- package/src/components/molecules/message-input/message-input.test.js +0 -63
- package/src/components/molecules/more-info-button/__snapshots__/more-info-button.test.js.snap +0 -133
- package/src/components/molecules/more-info-button/more-info-button.test.js +0 -29
- package/src/components/molecules/password-input/__snapshots__/password-input.test.js.snap +0 -504
- package/src/components/molecules/password-input/password-input.test.js +0 -46
- package/src/components/molecules/pill/__snapshots__/pill.test.js.snap +0 -226
- package/src/components/molecules/pill/pill.test.js +0 -42
- package/src/components/molecules/pressable-icon/__snapshots__/pressable-icon.test.js.snap +0 -460
- package/src/components/molecules/pressable-icon/pressable-icon.test.js +0 -51
- package/src/components/molecules/quick-filter/__snapshots__/quick-filter.test.js.snap +0 -557
- package/src/components/molecules/quick-filter/quick-filter.test.js +0 -134
- package/src/components/molecules/search-input/__snapshots__/search.test.js.snap +0 -145
- package/src/components/molecules/search-input/search.test.js +0 -22
- package/src/components/molecules/select-link/__snapshots__/select-link.test.js.snap +0 -70
- package/src/components/molecules/select-link/select-link.test.js +0 -17
- package/src/components/molecules/select-list-item/__snapshots__/select-list-item.test.js.snap +0 -762
- package/src/components/molecules/select-list-item/select-list-item.test.js +0 -38
- package/src/components/molecules/select-picker/__snapshots__/select-picker.test.js.snap +0 -407
- package/src/components/molecules/select-picker/select-picker.test.js +0 -31
- package/src/components/molecules/send-bubble/__snapshots__/send-text-bubble.test.js.snap +0 -1979
- package/src/components/molecules/send-bubble/send-text-bubble.test.js +0 -156
- package/src/components/molecules/snackbar/__snapshots__/snackbar.test.js.snap +0 -557
- package/src/components/molecules/snackbar/snackbar.test.js +0 -35
- package/src/components/molecules/swipe/__snapshots__/swipe.test.js.snap +0 -340
- package/src/components/molecules/swipe/swipe.test.js +0 -46
- package/src/components/molecules/tag/__snapshots__/tag.test.js.snap +0 -139
- package/src/components/molecules/tag/tag.test.js +0 -34
- package/src/components/molecules/time-picker/__snapshots__/time-picker.test.js.snap +0 -2221
- package/src/components/molecules/time-picker/time-picker.test.js +0 -18
- package/src/components/molecules/time-tracker/__snapshots__/time-tracker.test.js.snap +0 -266
- package/src/components/molecules/time-tracker/time-tracker.test.js +0 -36
- package/src/components/molecules/timeline/__snapshots__/timeline.test.js.snap +0 -257
- package/src/components/molecules/timeline/timeline.test.js +0 -18
- package/src/components/molecules/timestamp/__snapshots__/timestamp.test.js.snap +0 -28
- package/src/components/molecules/timestamp/timestamp.test.js +0 -16
- package/src/components/molecules/wave-background/__snapshots__/wave.test.js.snap +0 -173
- package/src/components/molecules/wave-background/wave.test.js +0 -25
- package/src/components/molecules/wide-button/__snapshots__/wide-button.test.js.snap +0 -269
- package/src/components/molecules/wide-button/wide-button.test.js +0 -30
- package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +0 -1040
- package/src/components/organisms/child-list-item/child-list-item.test.js +0 -75
- package/src/components/organisms/contact-item/__snapshots__/contact-item.test.js.snap +0 -404
- package/src/components/organisms/contact-item/contact-item.test.js +0 -22
- package/src/components/organisms/loading-indicator/__snapshots__/loading-indicator.test.js.snap +0 -474
- package/src/components/organisms/loading-indicator/loading-indicator.test.js +0 -41
- package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +0 -293
- package/src/components/organisms/my-child-list-item/my-child-list-item.test.js +0 -23
- package/src/components/organisms/person-info-card/__snapshots__/person-info-card.test.js.snap +0 -709
- package/src/components/organisms/person-info-card/person-info-card.test.js +0 -85
- package/src/components/organisms/text-bubble/__snapshots__/text-bubble.test.js.snap +0 -3046
- package/src/components/organisms/text-bubble/text-bubble.test.js +0 -144
- package/src/utilities/toddle-datetime/interfaces/duration.interface.d.ts +0 -22
- package/src/utilities/toddle-datetime/interfaces/duration.interface.tsx +0 -23
- package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +0 -22
- package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.tsx +0 -25
- package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +0 -50
- package/src/utilities/toddle-datetime/toddle-datetime.class.tsx +0 -206
- package/src/utilities/toddle-datetime/toddle-datetime.preview.d.ts +0 -2
- package/src/utilities/toddle-datetime/toddle-datetime.preview.tsx +0 -160
- package/src/utilities/toddle-datetime/toddle-datetime.test.js +0 -127
- package/src/utilities/toddle-datetime/types/duration.type.d.ts +0 -4
- package/src/utilities/toddle-datetime/types/duration.type.tsx +0 -6
- package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +0 -5
- package/src/utilities/toddle-datetime/types/toddle-datetime.type.tsx +0 -23
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`test logo renders correct when big is true 1`] = `
|
|
4
|
-
<View>
|
|
5
|
-
<RNSVGSvgView
|
|
6
|
-
align="xMidYMid"
|
|
7
|
-
bbHeight="31"
|
|
8
|
-
bbWidth="142"
|
|
9
|
-
fill="none"
|
|
10
|
-
focusable={false}
|
|
11
|
-
height="31"
|
|
12
|
-
meetOrSlice={0}
|
|
13
|
-
minX={0}
|
|
14
|
-
minY={0}
|
|
15
|
-
style={
|
|
16
|
-
[
|
|
17
|
-
{
|
|
18
|
-
"backgroundColor": "transparent",
|
|
19
|
-
"borderWidth": 0,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"flex": 0,
|
|
23
|
-
"height": 31,
|
|
24
|
-
"width": 142,
|
|
25
|
-
},
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
vbHeight={18}
|
|
29
|
-
vbWidth={69}
|
|
30
|
-
width="142"
|
|
31
|
-
>
|
|
32
|
-
<RNSVGGroup
|
|
33
|
-
fill={null}
|
|
34
|
-
propList={
|
|
35
|
-
[
|
|
36
|
-
"fill",
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
>
|
|
40
|
-
<RNSVGPath
|
|
41
|
-
d="M0.928125 3.92H6.49612V17H9.73613V3.92H15.3041V0.92H0.928125V3.92ZM17.7094 17.24C21.3574 17.24 23.9494 14.672 23.9494 11C23.9494 7.352 21.3574 4.76 17.7094 4.76C14.0614 4.76 11.4694 7.352 11.4694 11C11.4694 14.672 14.0614 17.24 17.7094 17.24ZM17.7094 14.36C15.8134 14.36 14.5894 13.04 14.5894 11C14.5894 8.96 15.8134 7.64 17.7094 7.64C19.6054 7.64 20.8294 8.96 20.8294 11C20.8294 13.04 19.6054 14.36 17.7094 14.36ZM30.9047 17.24C32.1047 17.24 33.1607 16.88 34.0247 16.232V17H37.1447V0.92H34.0247V5.768C33.1607 5.12 32.1047 4.76 30.9047 4.76C27.2567 4.76 24.6647 7.352 24.6647 11C24.6647 14.672 27.2567 17.24 30.9047 17.24ZM30.9047 14.36C29.0087 14.36 27.7847 13.04 27.7847 11C27.7847 8.96 29.0087 7.64 30.9047 7.64C32.8007 7.64 34.0247 8.96 34.0247 11C34.0247 13.04 32.8007 14.36 30.9047 14.36ZM44.3344 17.24C45.5344 17.24 46.5904 16.88 47.4544 16.232V17H50.5744V0.92H47.4544V5.768C46.5904 5.12 45.5344 4.76 44.3344 4.76C40.6864 4.76 38.0944 7.352 38.0944 11C38.0944 14.672 40.6864 17.24 44.3344 17.24ZM44.3344 14.36C42.4384 14.36 41.2144 13.04 41.2144 11C41.2144 8.96 42.4384 7.64 44.3344 7.64C46.2304 7.64 47.4544 8.96 47.4544 11C47.4544 13.04 46.2304 14.36 44.3344 14.36ZM54.8841 17V0.92H51.7641V17H54.8841ZM68.3166 11C68.3166 7.352 65.7246 4.76 62.0766 4.76C58.4286 4.76 55.8366 7.352 55.8366 11C55.8366 14.672 58.4286 17.24 62.0766 17.24C64.8606 17.24 67.3086 15.824 67.9086 13.4H64.4526C63.9246 14.24 63.0606 14.48 62.0766 14.48C60.5646 14.48 59.4846 13.616 59.1006 12.2H68.1966C68.2686 11.816 68.3166 11.408 68.3166 11ZM62.0766 7.52C63.4926 7.52 64.5486 8.288 64.9806 9.56H59.1726C59.6046 8.288 60.6606 7.52 62.0766 7.52Z"
|
|
42
|
-
fill={
|
|
43
|
-
{
|
|
44
|
-
"payload": 4280232243,
|
|
45
|
-
"type": 0,
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
propList={
|
|
49
|
-
[
|
|
50
|
-
"fill",
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
/>
|
|
54
|
-
</RNSVGGroup>
|
|
55
|
-
</RNSVGSvgView>
|
|
56
|
-
</View>
|
|
57
|
-
`;
|
|
58
|
-
|
|
59
|
-
exports[`test logo renders correctly when colorIsWhite is true 1`] = `
|
|
60
|
-
<View>
|
|
61
|
-
<RNSVGSvgView
|
|
62
|
-
align="xMidYMid"
|
|
63
|
-
bbHeight="18"
|
|
64
|
-
bbWidth="69"
|
|
65
|
-
fill="none"
|
|
66
|
-
focusable={false}
|
|
67
|
-
height="18"
|
|
68
|
-
meetOrSlice={0}
|
|
69
|
-
minX={0}
|
|
70
|
-
minY={0}
|
|
71
|
-
style={
|
|
72
|
-
[
|
|
73
|
-
{
|
|
74
|
-
"backgroundColor": "transparent",
|
|
75
|
-
"borderWidth": 0,
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"flex": 0,
|
|
79
|
-
"height": 18,
|
|
80
|
-
"width": 69,
|
|
81
|
-
},
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
vbHeight={18}
|
|
85
|
-
vbWidth={69}
|
|
86
|
-
width="69"
|
|
87
|
-
>
|
|
88
|
-
<RNSVGGroup
|
|
89
|
-
fill={null}
|
|
90
|
-
propList={
|
|
91
|
-
[
|
|
92
|
-
"fill",
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
>
|
|
96
|
-
<RNSVGPath
|
|
97
|
-
d="M0.928125 3.92H6.49612V17H9.73613V3.92H15.3041V0.92H0.928125V3.92ZM17.7094 17.24C21.3574 17.24 23.9494 14.672 23.9494 11C23.9494 7.352 21.3574 4.76 17.7094 4.76C14.0614 4.76 11.4694 7.352 11.4694 11C11.4694 14.672 14.0614 17.24 17.7094 17.24ZM17.7094 14.36C15.8134 14.36 14.5894 13.04 14.5894 11C14.5894 8.96 15.8134 7.64 17.7094 7.64C19.6054 7.64 20.8294 8.96 20.8294 11C20.8294 13.04 19.6054 14.36 17.7094 14.36ZM30.9047 17.24C32.1047 17.24 33.1607 16.88 34.0247 16.232V17H37.1447V0.92H34.0247V5.768C33.1607 5.12 32.1047 4.76 30.9047 4.76C27.2567 4.76 24.6647 7.352 24.6647 11C24.6647 14.672 27.2567 17.24 30.9047 17.24ZM30.9047 14.36C29.0087 14.36 27.7847 13.04 27.7847 11C27.7847 8.96 29.0087 7.64 30.9047 7.64C32.8007 7.64 34.0247 8.96 34.0247 11C34.0247 13.04 32.8007 14.36 30.9047 14.36ZM44.3344 17.24C45.5344 17.24 46.5904 16.88 47.4544 16.232V17H50.5744V0.92H47.4544V5.768C46.5904 5.12 45.5344 4.76 44.3344 4.76C40.6864 4.76 38.0944 7.352 38.0944 11C38.0944 14.672 40.6864 17.24 44.3344 17.24ZM44.3344 14.36C42.4384 14.36 41.2144 13.04 41.2144 11C41.2144 8.96 42.4384 7.64 44.3344 7.64C46.2304 7.64 47.4544 8.96 47.4544 11C47.4544 13.04 46.2304 14.36 44.3344 14.36ZM54.8841 17V0.92H51.7641V17H54.8841ZM68.3166 11C68.3166 7.352 65.7246 4.76 62.0766 4.76C58.4286 4.76 55.8366 7.352 55.8366 11C55.8366 14.672 58.4286 17.24 62.0766 17.24C64.8606 17.24 67.3086 15.824 67.9086 13.4H64.4526C63.9246 14.24 63.0606 14.48 62.0766 14.48C60.5646 14.48 59.4846 13.616 59.1006 12.2H68.1966C68.2686 11.816 68.3166 11.408 68.3166 11ZM62.0766 7.52C63.4926 7.52 64.5486 8.288 64.9806 9.56H59.1726C59.6046 8.288 60.6606 7.52 62.0766 7.52Z"
|
|
98
|
-
fill={
|
|
99
|
-
{
|
|
100
|
-
"payload": 4294967295,
|
|
101
|
-
"type": 0,
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
propList={
|
|
105
|
-
[
|
|
106
|
-
"fill",
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
/>
|
|
110
|
-
</RNSVGGroup>
|
|
111
|
-
</RNSVGSvgView>
|
|
112
|
-
</View>
|
|
113
|
-
`;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import renderer from 'react-test-renderer';
|
|
3
|
-
import {Logo} from './logo.component';
|
|
4
|
-
|
|
5
|
-
describe('test logo', () => {
|
|
6
|
-
it('renders correctly when colorIsWhite is true', () => {
|
|
7
|
-
const tree = renderer.create(<Logo colorIsWhite={true} />).toJSON();
|
|
8
|
-
|
|
9
|
-
expect(tree).toMatchSnapshot();
|
|
10
|
-
});
|
|
11
|
-
it('renders correct when big is true ', () => {
|
|
12
|
-
const tree = renderer.create(<Logo big={true} />).toJSON();
|
|
13
|
-
|
|
14
|
-
expect(tree).toMatchSnapshot();
|
|
15
|
-
});
|
|
16
|
-
});
|
package/src/components/atoms/paragraph-components/paragraph/__snapshots__/paragraph.test.js.snap
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Tests for the paragraph component should render a Paragraph component, regular font, bold, a custom color and aligned to the right 1`] = `
|
|
4
|
-
<Text
|
|
5
|
-
style={
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
{
|
|
9
|
-
"fontFamily": "MontserratBold",
|
|
10
|
-
"fontSize": 14,
|
|
11
|
-
"lineHeight": 22.4,
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
{
|
|
15
|
-
"color": "#888888",
|
|
16
|
-
"textAlign": "right",
|
|
17
|
-
"width": "100%",
|
|
18
|
-
},
|
|
19
|
-
undefined,
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
>
|
|
23
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
24
|
-
</Text>
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
exports[`Tests for the paragraph component should render a Paragraph component, regular font, bold, a custom color and no specific alignment 1`] = `
|
|
28
|
-
<Text
|
|
29
|
-
style={
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
{
|
|
33
|
-
"fontFamily": "MontserratBold",
|
|
34
|
-
"fontSize": 14,
|
|
35
|
-
"lineHeight": 22.4,
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
{
|
|
39
|
-
"color": "#888888",
|
|
40
|
-
"textAlign": undefined,
|
|
41
|
-
"width": "100%",
|
|
42
|
-
},
|
|
43
|
-
undefined,
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
>
|
|
47
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
48
|
-
</Text>
|
|
49
|
-
`;
|
|
50
|
-
|
|
51
|
-
exports[`Tests for the paragraph component should render a Paragraph component, regular font, bold, no specific color and no alignment 1`] = `
|
|
52
|
-
<Text
|
|
53
|
-
style={
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
{
|
|
57
|
-
"fontFamily": "MontserratBold",
|
|
58
|
-
"fontSize": 14,
|
|
59
|
-
"lineHeight": 22.4,
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
{
|
|
63
|
-
"color": "#1F2933",
|
|
64
|
-
"textAlign": undefined,
|
|
65
|
-
"width": "100%",
|
|
66
|
-
},
|
|
67
|
-
undefined,
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
>
|
|
71
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
72
|
-
</Text>
|
|
73
|
-
`;
|
|
74
|
-
|
|
75
|
-
exports[`Tests for the paragraph component should render a Paragraph component, regular font, not bold, no textAlignment, no specified color 1`] = `
|
|
76
|
-
<Text
|
|
77
|
-
style={
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
{
|
|
81
|
-
"fontFamily": "Montserrat",
|
|
82
|
-
"fontSize": 14,
|
|
83
|
-
"lineHeight": 22.4,
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
{
|
|
87
|
-
"color": "#1F2933",
|
|
88
|
-
"textAlign": undefined,
|
|
89
|
-
"width": "100%",
|
|
90
|
-
},
|
|
91
|
-
undefined,
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
>
|
|
95
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
96
|
-
</Text>
|
|
97
|
-
`;
|
|
98
|
-
|
|
99
|
-
exports[`Tests for the paragraph component should render a Paragraph component, regular font, not bold, with a self defined text color 1`] = `
|
|
100
|
-
<Text
|
|
101
|
-
style={
|
|
102
|
-
[
|
|
103
|
-
[
|
|
104
|
-
{
|
|
105
|
-
"fontFamily": "Montserrat",
|
|
106
|
-
"fontSize": 14,
|
|
107
|
-
"lineHeight": 22.4,
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
{
|
|
111
|
-
"color": "#c2c2c2",
|
|
112
|
-
"textAlign": undefined,
|
|
113
|
-
"width": "100%",
|
|
114
|
-
},
|
|
115
|
-
undefined,
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
>
|
|
119
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
120
|
-
</Text>
|
|
121
|
-
`;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import renderer from 'react-test-renderer';
|
|
3
|
-
import {Paragraph} from './paragraph.component';
|
|
4
|
-
|
|
5
|
-
describe('Tests for the paragraph component', () => {
|
|
6
|
-
it('should render a Paragraph component, regular font, not bold, no textAlignment, no specified color', function () {
|
|
7
|
-
const tree = renderer
|
|
8
|
-
.create(
|
|
9
|
-
<Paragraph>
|
|
10
|
-
The sun was setting over the mountains, casting a warm golden glow
|
|
11
|
-
over the landscape. The sky was painted with shades of pink, orange,
|
|
12
|
-
and purple, creating a beautiful backdrop for the rolling hills and
|
|
13
|
-
green fields below.
|
|
14
|
-
</Paragraph>
|
|
15
|
-
)
|
|
16
|
-
.toJSON();
|
|
17
|
-
|
|
18
|
-
expect(tree).toMatchSnapshot();
|
|
19
|
-
});
|
|
20
|
-
it('should render a Paragraph component, regular font, not bold, with a self defined text color', function () {
|
|
21
|
-
const tree = renderer
|
|
22
|
-
.create(
|
|
23
|
-
<Paragraph textColor={'#c2c2c2'}>
|
|
24
|
-
The sun was setting over the mountains, casting a warm golden glow
|
|
25
|
-
over the landscape. The sky was painted with shades of pink, orange,
|
|
26
|
-
and purple, creating a beautiful backdrop for the rolling hills and
|
|
27
|
-
green fields below.
|
|
28
|
-
</Paragraph>
|
|
29
|
-
)
|
|
30
|
-
.toJSON();
|
|
31
|
-
|
|
32
|
-
expect(tree).toMatchSnapshot();
|
|
33
|
-
});
|
|
34
|
-
it('should render a Paragraph component, regular font, bold, no specific color and no alignment', function () {
|
|
35
|
-
const tree = renderer
|
|
36
|
-
.create(
|
|
37
|
-
<Paragraph bold={true}>
|
|
38
|
-
The sun was setting over the mountains, casting a warm golden glow
|
|
39
|
-
over the landscape. The sky was painted with shades of pink, orange,
|
|
40
|
-
and purple, creating a beautiful backdrop for the rolling hills and
|
|
41
|
-
green fields below.
|
|
42
|
-
</Paragraph>
|
|
43
|
-
)
|
|
44
|
-
.toJSON();
|
|
45
|
-
|
|
46
|
-
expect(tree).toMatchSnapshot();
|
|
47
|
-
});
|
|
48
|
-
it('should render a Paragraph component, regular font, bold, a custom color and no specific alignment', function () {
|
|
49
|
-
const tree = renderer
|
|
50
|
-
.create(
|
|
51
|
-
<Paragraph bold={true} textColor={'#888888'}>
|
|
52
|
-
The sun was setting over the mountains, casting a warm golden glow
|
|
53
|
-
over the landscape. The sky was painted with shades of pink, orange,
|
|
54
|
-
and purple, creating a beautiful backdrop for the rolling hills and
|
|
55
|
-
green fields below.
|
|
56
|
-
</Paragraph>
|
|
57
|
-
)
|
|
58
|
-
.toJSON();
|
|
59
|
-
|
|
60
|
-
expect(tree).toMatchSnapshot();
|
|
61
|
-
});
|
|
62
|
-
it('should render a Paragraph component, regular font, bold, a custom color and aligned to the right', function () {
|
|
63
|
-
const tree = renderer
|
|
64
|
-
.create(
|
|
65
|
-
<Paragraph bold={true} textColor={'#888888'} textAlign={'right'}>
|
|
66
|
-
The sun was setting over the mountains, casting a warm golden glow
|
|
67
|
-
over the landscape. The sky was painted with shades of pink, orange,
|
|
68
|
-
and purple, creating a beautiful backdrop for the rolling hills and
|
|
69
|
-
green fields below.
|
|
70
|
-
</Paragraph>
|
|
71
|
-
)
|
|
72
|
-
.toJSON();
|
|
73
|
-
|
|
74
|
-
expect(tree).toMatchSnapshot();
|
|
75
|
-
});
|
|
76
|
-
});
|
package/src/components/atoms/paragraph-components/small-text/__snapshots__/small-text.test.js.snap
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Tests for the small text component should render a small text component, regular font, bold, a custom color and aligned to the right 1`] = `
|
|
4
|
-
<Text
|
|
5
|
-
style={
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
{
|
|
9
|
-
"fontFamily": "MontserratBold",
|
|
10
|
-
"fontSize": 13,
|
|
11
|
-
"lineHeight": 20.4,
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
{
|
|
15
|
-
"color": "#888888",
|
|
16
|
-
"textAlign": "right",
|
|
17
|
-
"width": "100%",
|
|
18
|
-
},
|
|
19
|
-
undefined,
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
>
|
|
23
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
24
|
-
</Text>
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
exports[`Tests for the small text component should render a small text component, regular font, bold, a custom color and no specific alignment 1`] = `
|
|
28
|
-
<Text
|
|
29
|
-
style={
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
{
|
|
33
|
-
"fontFamily": "MontserratBold",
|
|
34
|
-
"fontSize": 13,
|
|
35
|
-
"lineHeight": 20.4,
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
{
|
|
39
|
-
"color": "#888888",
|
|
40
|
-
"textAlign": undefined,
|
|
41
|
-
"width": "100%",
|
|
42
|
-
},
|
|
43
|
-
undefined,
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
>
|
|
47
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
48
|
-
</Text>
|
|
49
|
-
`;
|
|
50
|
-
|
|
51
|
-
exports[`Tests for the small text component should render a small text component, regular font, bold, no specific color and no alignment 1`] = `
|
|
52
|
-
<Text
|
|
53
|
-
style={
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
{
|
|
57
|
-
"fontFamily": "MontserratBold",
|
|
58
|
-
"fontSize": 13,
|
|
59
|
-
"lineHeight": 20.4,
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
{
|
|
63
|
-
"color": "#1F2933",
|
|
64
|
-
"textAlign": undefined,
|
|
65
|
-
"width": "100%",
|
|
66
|
-
},
|
|
67
|
-
undefined,
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
>
|
|
71
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
72
|
-
</Text>
|
|
73
|
-
`;
|
|
74
|
-
|
|
75
|
-
exports[`Tests for the small text component should render a small text component, regular font, not bold, no textAlignment, no specified color 1`] = `
|
|
76
|
-
<Text
|
|
77
|
-
style={
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
{
|
|
81
|
-
"fontFamily": "Montserrat",
|
|
82
|
-
"fontSize": 13,
|
|
83
|
-
"lineHeight": 20.4,
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
{
|
|
87
|
-
"color": "#1F2933",
|
|
88
|
-
"textAlign": undefined,
|
|
89
|
-
"width": "100%",
|
|
90
|
-
},
|
|
91
|
-
undefined,
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
>
|
|
95
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
96
|
-
</Text>
|
|
97
|
-
`;
|
|
98
|
-
|
|
99
|
-
exports[`Tests for the small text component should render a small text component, regular font, not bold, with a self defined text color 1`] = `
|
|
100
|
-
<Text
|
|
101
|
-
style={
|
|
102
|
-
[
|
|
103
|
-
[
|
|
104
|
-
{
|
|
105
|
-
"fontFamily": "Montserrat",
|
|
106
|
-
"fontSize": 13,
|
|
107
|
-
"lineHeight": 20.4,
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
{
|
|
111
|
-
"color": "#c2c2c2",
|
|
112
|
-
"textAlign": undefined,
|
|
113
|
-
"width": "100%",
|
|
114
|
-
},
|
|
115
|
-
undefined,
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
>
|
|
119
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
120
|
-
</Text>
|
|
121
|
-
`;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import renderer from 'react-test-renderer';
|
|
3
|
-
import {SmallText} from './small-text.component';
|
|
4
|
-
|
|
5
|
-
describe('Tests for the small text component', () => {
|
|
6
|
-
it('should render a small text component, regular font, not bold, no textAlignment, no specified color', function () {
|
|
7
|
-
const tree = renderer
|
|
8
|
-
.create(
|
|
9
|
-
<SmallText>
|
|
10
|
-
The sun was setting over the mountains, casting a warm golden glow
|
|
11
|
-
over the landscape. The sky was painted with shades of pink, orange,
|
|
12
|
-
and purple, creating a beautiful backdrop for the rolling hills and
|
|
13
|
-
green fields below.
|
|
14
|
-
</SmallText>
|
|
15
|
-
)
|
|
16
|
-
.toJSON();
|
|
17
|
-
|
|
18
|
-
expect(tree).toMatchSnapshot();
|
|
19
|
-
});
|
|
20
|
-
it('should render a small text component, regular font, not bold, with a self defined text color', function () {
|
|
21
|
-
const tree = renderer
|
|
22
|
-
.create(
|
|
23
|
-
<SmallText textColor={'#c2c2c2'}>
|
|
24
|
-
The sun was setting over the mountains, casting a warm golden glow
|
|
25
|
-
over the landscape. The sky was painted with shades of pink, orange,
|
|
26
|
-
and purple, creating a beautiful backdrop for the rolling hills and
|
|
27
|
-
green fields below.
|
|
28
|
-
</SmallText>
|
|
29
|
-
)
|
|
30
|
-
.toJSON();
|
|
31
|
-
|
|
32
|
-
expect(tree).toMatchSnapshot();
|
|
33
|
-
});
|
|
34
|
-
it('should render a small text component, regular font, bold, no specific color and no alignment', function () {
|
|
35
|
-
const tree = renderer
|
|
36
|
-
.create(
|
|
37
|
-
<SmallText bold={true}>
|
|
38
|
-
The sun was setting over the mountains, casting a warm golden glow
|
|
39
|
-
over the landscape. The sky was painted with shades of pink, orange,
|
|
40
|
-
and purple, creating a beautiful backdrop for the rolling hills and
|
|
41
|
-
green fields below.
|
|
42
|
-
</SmallText>
|
|
43
|
-
)
|
|
44
|
-
.toJSON();
|
|
45
|
-
|
|
46
|
-
expect(tree).toMatchSnapshot();
|
|
47
|
-
});
|
|
48
|
-
it('should render a small text component, regular font, bold, a custom color and no specific alignment', function () {
|
|
49
|
-
const tree = renderer
|
|
50
|
-
.create(
|
|
51
|
-
<SmallText bold={true} textColor={'#888888'}>
|
|
52
|
-
The sun was setting over the mountains, casting a warm golden glow
|
|
53
|
-
over the landscape. The sky was painted with shades of pink, orange,
|
|
54
|
-
and purple, creating a beautiful backdrop for the rolling hills and
|
|
55
|
-
green fields below.
|
|
56
|
-
</SmallText>
|
|
57
|
-
)
|
|
58
|
-
.toJSON();
|
|
59
|
-
|
|
60
|
-
expect(tree).toMatchSnapshot();
|
|
61
|
-
});
|
|
62
|
-
it('should render a small text component, regular font, bold, a custom color and aligned to the right', function () {
|
|
63
|
-
const tree = renderer
|
|
64
|
-
.create(
|
|
65
|
-
<SmallText bold={true} textColor={'#888888'} textAlign={'right'}>
|
|
66
|
-
The sun was setting over the mountains, casting a warm golden glow
|
|
67
|
-
over the landscape. The sky was painted with shades of pink, orange,
|
|
68
|
-
and purple, creating a beautiful backdrop for the rolling hills and
|
|
69
|
-
green fields below.
|
|
70
|
-
</SmallText>
|
|
71
|
-
)
|
|
72
|
-
.toJSON();
|
|
73
|
-
|
|
74
|
-
expect(tree).toMatchSnapshot();
|
|
75
|
-
});
|
|
76
|
-
});
|
package/src/components/atoms/paragraph-components/tiny-text/__snapshots__/tiny-text.test.js.snap
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Tests for the tiny text component should render a tiny text component, regular font, bold, a custom color and aligned to the right 1`] = `
|
|
4
|
-
<Text
|
|
5
|
-
style={
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
{
|
|
9
|
-
"fontFamily": "MontserratBold",
|
|
10
|
-
"fontSize": 11,
|
|
11
|
-
"lineHeight": 17.9,
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
{
|
|
15
|
-
"color": "#888888",
|
|
16
|
-
"textAlign": "right",
|
|
17
|
-
"width": "100%",
|
|
18
|
-
},
|
|
19
|
-
undefined,
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
>
|
|
23
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
24
|
-
</Text>
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
exports[`Tests for the tiny text component should render a tiny text component, regular font, bold, a custom color and no specific alignment 1`] = `
|
|
28
|
-
<Text
|
|
29
|
-
style={
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
{
|
|
33
|
-
"fontFamily": "MontserratBold",
|
|
34
|
-
"fontSize": 11,
|
|
35
|
-
"lineHeight": 17.9,
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
{
|
|
39
|
-
"color": "#888888",
|
|
40
|
-
"textAlign": undefined,
|
|
41
|
-
"width": "100%",
|
|
42
|
-
},
|
|
43
|
-
undefined,
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
>
|
|
47
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
48
|
-
</Text>
|
|
49
|
-
`;
|
|
50
|
-
|
|
51
|
-
exports[`Tests for the tiny text component should render a tiny text component, regular font, bold, no specific color and no alignment 1`] = `
|
|
52
|
-
<Text
|
|
53
|
-
style={
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
{
|
|
57
|
-
"fontFamily": "MontserratBold",
|
|
58
|
-
"fontSize": 11,
|
|
59
|
-
"lineHeight": 17.9,
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
{
|
|
63
|
-
"color": "#1F2933",
|
|
64
|
-
"textAlign": undefined,
|
|
65
|
-
"width": "100%",
|
|
66
|
-
},
|
|
67
|
-
undefined,
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
>
|
|
71
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
72
|
-
</Text>
|
|
73
|
-
`;
|
|
74
|
-
|
|
75
|
-
exports[`Tests for the tiny text component should render a tiny text component, regular font, not bold, no textAlignment, no specified color 1`] = `
|
|
76
|
-
<Text
|
|
77
|
-
style={
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
{
|
|
81
|
-
"fontFamily": "Montserrat",
|
|
82
|
-
"fontSize": 11,
|
|
83
|
-
"lineHeight": 17.9,
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
{
|
|
87
|
-
"color": "#1F2933",
|
|
88
|
-
"textAlign": undefined,
|
|
89
|
-
"width": "100%",
|
|
90
|
-
},
|
|
91
|
-
undefined,
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
>
|
|
95
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
96
|
-
</Text>
|
|
97
|
-
`;
|
|
98
|
-
|
|
99
|
-
exports[`Tests for the tiny text component should render a tiny text component, regular font, not bold, with a self defined text color 1`] = `
|
|
100
|
-
<Text
|
|
101
|
-
style={
|
|
102
|
-
[
|
|
103
|
-
[
|
|
104
|
-
{
|
|
105
|
-
"fontFamily": "Montserrat",
|
|
106
|
-
"fontSize": 11,
|
|
107
|
-
"lineHeight": 17.9,
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
{
|
|
111
|
-
"color": "#c2c2c2",
|
|
112
|
-
"textAlign": undefined,
|
|
113
|
-
"width": "100%",
|
|
114
|
-
},
|
|
115
|
-
undefined,
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
>
|
|
119
|
-
The sun was setting over the mountains, casting a warm golden glow over the landscape. The sky was painted with shades of pink, orange, and purple, creating a beautiful backdrop for the rolling hills and green fields below.
|
|
120
|
-
</Text>
|
|
121
|
-
`;
|