@tactics/toddle-styleguide 5.2.2 → 5.3.3
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 -19
- package/app.json +8 -4
- package/index.tsx +2 -4
- package/package.json +55 -27
- 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/contact-address/contact-address.component.d.ts +8 -0
- package/src/components/molecules/contact-address/contact-address.component.tsx +20 -0
- package/src/components/molecules/contact-address/contact-address.preview.d.ts +2 -0
- package/src/components/molecules/contact-address/contact-address.preview.tsx +17 -0
- package/src/components/molecules/contact-address/contact-address.styles.d.ts +7 -0
- package/src/components/molecules/contact-address/contact-address.styles.js +10 -0
- 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/person-info-card/person-info-card.component.tsx +8 -2
- package/src/components/organisms/person-info-card/person-info-card.preview.tsx +3 -0
- package/src/components/organisms/person-info-card/person-info-card.styles.d.ts +4 -0
- package/src/components/organisms/person-info-card/person-info-card.styles.js +4 -0
- 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-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,173 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`test wave background should render a wave background 1`] = `
|
|
4
|
-
<View
|
|
5
|
-
style={
|
|
6
|
-
{
|
|
7
|
-
"backgroundColor": "#4055A8",
|
|
8
|
-
"height": 1334,
|
|
9
|
-
"position": "absolute",
|
|
10
|
-
"width": 750,
|
|
11
|
-
"zIndex": -1,
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
>
|
|
15
|
-
<View
|
|
16
|
-
style={
|
|
17
|
-
{
|
|
18
|
-
"alignItems": "center",
|
|
19
|
-
"flex": 1,
|
|
20
|
-
"justifyContent": "flex-start",
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
>
|
|
24
|
-
<View
|
|
25
|
-
style={
|
|
26
|
-
{
|
|
27
|
-
"alignItems": "center",
|
|
28
|
-
"position": "absolute",
|
|
29
|
-
"top": "-1%",
|
|
30
|
-
"width": "100%",
|
|
31
|
-
"zIndex": -1,
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
>
|
|
35
|
-
<View
|
|
36
|
-
style={
|
|
37
|
-
[
|
|
38
|
-
{
|
|
39
|
-
"aspectRatio": 1,
|
|
40
|
-
},
|
|
41
|
-
undefined,
|
|
42
|
-
{
|
|
43
|
-
"backgroundColor": "#647ACB",
|
|
44
|
-
"width": 814,
|
|
45
|
-
},
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
>
|
|
49
|
-
<View
|
|
50
|
-
cacheComposition={true}
|
|
51
|
-
collapsable={false}
|
|
52
|
-
colorFilters={[]}
|
|
53
|
-
enableMergePathsAndroidForKitKatAndAbove={false}
|
|
54
|
-
loop={true}
|
|
55
|
-
onAnimationFinish={[Function]}
|
|
56
|
-
progress={0}
|
|
57
|
-
resizeMode="contain"
|
|
58
|
-
sourceJson="{"nm":"circle_blue","mn":"","layers":[{"ty":0,"nm":"Shape Layer 1","mn":"","sr":1,"st":0,"op":60.0000024438501,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"hasMask":true,"td":1,"ao":0,"ks":{"a":{"a":0,"k":[89,89,0],"ix":1},"s":{"a":0,"k":[561.7977528089888,561.7977528089888,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[500.00000000000006,500.00000000000006,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","mn":"","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[49.153,0],[0,-49.153],[-49.153,0],[0,49.153]],"o":[[-49.153,0],[0,49.153],[49.153,0],[0,-49.153]],"v":[[89,0],[0,89],[89,178],[178,89]]},"ix":1}}],"w":178,"h":178,"refId":"comp_0","ind":1},{"ty":4,"nm":"Shape Layer 1","mn":"","sr":1,"st":0,"op":60.0000024438501,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":1,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[561.7977528089888,561.7977528089888,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[494.8314606741573,233.8876404494382,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Rectangle 1","ix":1,"cix":2,"np":2,"it":[{"ty":"rc","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Rect","nm":"Rectangle Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"s":{"a":0,"k":[178,178],"ix":2}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0.92,47.368],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gf","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - G-Fill","nm":"Gradient Fill 2","e":{"a":0,"k":[0,45],"ix":6},"g":{"p":3,"k":{"a":0,"k":[0,0.25098039215686274,0.3333333333333333,0.6588235294117647,0.5,0.25098039215686274,0.3333333333333333,0.6588235294117647,1,0.25098039215686274,0.3333333333333333,0.6588235294117647],"ix":9}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":0,"k":[0,360],"ix":5},"r":1,"o":{"a":0,"k":89,"ix":10}},{"ty":"gf","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - G-Fill","nm":"Gradient Fill 1","e":{"a":0,"k":[75,0],"ix":6},"g":{"p":3,"k":{"a":0,"k":[0,0.25098039215686274,0.3333333333333333,0.6588235294117647,0.5,0.25098039215686274,0.3333333333333333,0.6588235294117647,1,0.25098039215686274,0.3333333333333333,0.6588235294117647],"ix":9}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":0,"k":[-54,0],"ix":5},"r":1,"o":{"a":0,"k":100,"ix":10}}],"ind":2}],"ddd":0,"h":1000,"w":1000,"meta":{"a":"","k":"","d":"","g":"LottieFiles AE 0.1.21","tc":"#000000"},"v":"3.4.1","fr":8,"op":60.0000024438501,"ip":0,"assets":[{"nm":"","mn":"","layers":[{"ty":4,"nm":"wave_2 Outlines","mn":"","sr":1,"st":0,"op":60.0000024438501,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[178,89,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,89,0],"t":0,"ti":[-29.667,0,0],"to":[29.667,0,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[178,89,0],"t":59.0000024031193}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 2","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[45.858,9.977],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[45.859,9.977],[13.272,-0.001]],"o":[[0,0],[-0.03,0.007],[0,0],[-45.859,-9.977],[0,0],[0,0],[0,0],[0,0],[-0.031,0.007],[0,0],[-15.288,-3.326],[-26.538,0]],"v":[[0,-22.84],[0,-22.852],[-0.052,-22.84],[-88.423,-22.84],[-178,-22.84],[-178,32.816],[0,32.816],[178,32.816],[178,-22.852],[177.948,-22.84],[89.576,-22.84],[45.971,-27.273]]},"ix":2}},{"ty":"mm","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Filter - Merge","nm":"Merge Paths 1","mm":4},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[178,145.184],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.251,0.3333,0.6588],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}}],"ind":1},{"ty":4,"nm":"wave_1 Outlines","mn":"","sr":1,"st":0,"op":60.0000024438501,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[178,89,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[178,91,0],"t":0,"ti":[29.667,0,0],"to":[-29.667,0,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,91,0],"t":59.0000024031193}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":50,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 2","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[15.288,-3.326],[0,0],[0.031,0.007],[0,0],[45.858,-9.977],[0,0],[0.031,0.007],[0,0],[0,0],[0,0],[0,0],[26.539,0]],"o":[[-45.857,9.977],[0,0],[0,0],[0,0],[-45.858,9.977],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-13.272,-0.001]],"v":[[88.423,-22.84],[0.051,-22.84],[0,-22.852],[0,-22.84],[-89.576,-22.84],[-177.948,-22.84],[-178,-22.852],[-178,32.816],[0,32.816],[178,32.816],[178,-22.84],[132.029,-27.273]]},"ix":2}},{"ty":"mm","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Filter - Merge","nm":"Merge Paths 1","mm":4},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[178,145.184],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.251,0.3333,0.6588],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}}],"ind":2}],"id":"comp_0"}]}"
|
|
59
|
-
speed={1}
|
|
60
|
-
style={
|
|
61
|
-
{
|
|
62
|
-
"aspectRatio": 1,
|
|
63
|
-
"backgroundColor": "#647ACB",
|
|
64
|
-
"height": "100%",
|
|
65
|
-
"width": 814,
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
textFiltersAndroid={[]}
|
|
69
|
-
textFiltersIOS={[]}
|
|
70
|
-
useNativeLooping={false}
|
|
71
|
-
/>
|
|
72
|
-
</View>
|
|
73
|
-
</View>
|
|
74
|
-
<View
|
|
75
|
-
style={
|
|
76
|
-
{
|
|
77
|
-
"backgroundColor": "#4055A8",
|
|
78
|
-
"height": "30%",
|
|
79
|
-
"position": "absolute",
|
|
80
|
-
"top": "38%",
|
|
81
|
-
"width": "100%",
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/>
|
|
85
|
-
</View>
|
|
86
|
-
</View>
|
|
87
|
-
`;
|
|
88
|
-
|
|
89
|
-
exports[`test wave background should render a wave background for android specific we will give some props that it should render 1`] = `
|
|
90
|
-
<View
|
|
91
|
-
style={
|
|
92
|
-
{
|
|
93
|
-
"backgroundColor": "#4055A8",
|
|
94
|
-
"height": 1334,
|
|
95
|
-
"position": "absolute",
|
|
96
|
-
"width": 750,
|
|
97
|
-
"zIndex": -1,
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
>
|
|
101
|
-
<View
|
|
102
|
-
style={
|
|
103
|
-
{
|
|
104
|
-
"alignItems": "center",
|
|
105
|
-
"flex": 1,
|
|
106
|
-
"justifyContent": "flex-start",
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
>
|
|
110
|
-
<View
|
|
111
|
-
style={
|
|
112
|
-
{
|
|
113
|
-
"alignItems": "center",
|
|
114
|
-
"position": "absolute",
|
|
115
|
-
"top": "-1%",
|
|
116
|
-
"width": "100%",
|
|
117
|
-
"zIndex": -1,
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
>
|
|
121
|
-
<View
|
|
122
|
-
style={
|
|
123
|
-
[
|
|
124
|
-
{
|
|
125
|
-
"aspectRatio": 1,
|
|
126
|
-
},
|
|
127
|
-
undefined,
|
|
128
|
-
{
|
|
129
|
-
"backgroundColor": "#647ACB",
|
|
130
|
-
"width": 814,
|
|
131
|
-
},
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
>
|
|
135
|
-
<View
|
|
136
|
-
cacheComposition={true}
|
|
137
|
-
collapsable={false}
|
|
138
|
-
colorFilters={[]}
|
|
139
|
-
enableMergePathsAndroidForKitKatAndAbove={false}
|
|
140
|
-
loop={true}
|
|
141
|
-
onAnimationFinish={[Function]}
|
|
142
|
-
progress={0}
|
|
143
|
-
resizeMode="contain"
|
|
144
|
-
sourceJson="{"nm":"circle_blue","mn":"","layers":[{"ty":0,"nm":"Shape Layer 1","mn":"","sr":1,"st":0,"op":60.0000024438501,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"hasMask":true,"td":1,"ao":0,"ks":{"a":{"a":0,"k":[89,89,0],"ix":1},"s":{"a":0,"k":[561.7977528089888,561.7977528089888,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[500.00000000000006,500.00000000000006,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","mn":"","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[49.153,0],[0,-49.153],[-49.153,0],[0,49.153]],"o":[[-49.153,0],[0,49.153],[49.153,0],[0,-49.153]],"v":[[89,0],[0,89],[89,178],[178,89]]},"ix":1}}],"w":178,"h":178,"refId":"comp_0","ind":1},{"ty":4,"nm":"Shape Layer 1","mn":"","sr":1,"st":0,"op":60.0000024438501,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":1,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[561.7977528089888,561.7977528089888,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[494.8314606741573,233.8876404494382,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Rectangle 1","ix":1,"cix":2,"np":2,"it":[{"ty":"rc","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Rect","nm":"Rectangle Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"s":{"a":0,"k":[178,178],"ix":2}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0.92,47.368],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gf","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - G-Fill","nm":"Gradient Fill 2","e":{"a":0,"k":[0,45],"ix":6},"g":{"p":3,"k":{"a":0,"k":[0,0.25098039215686274,0.3333333333333333,0.6588235294117647,0.5,0.25098039215686274,0.3333333333333333,0.6588235294117647,1,0.25098039215686274,0.3333333333333333,0.6588235294117647],"ix":9}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":0,"k":[0,360],"ix":5},"r":1,"o":{"a":0,"k":89,"ix":10}},{"ty":"gf","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - G-Fill","nm":"Gradient Fill 1","e":{"a":0,"k":[75,0],"ix":6},"g":{"p":3,"k":{"a":0,"k":[0,0.25098039215686274,0.3333333333333333,0.6588235294117647,0.5,0.25098039215686274,0.3333333333333333,0.6588235294117647,1,0.25098039215686274,0.3333333333333333,0.6588235294117647],"ix":9}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":0,"k":[-54,0],"ix":5},"r":1,"o":{"a":0,"k":100,"ix":10}}],"ind":2}],"ddd":0,"h":1000,"w":1000,"meta":{"a":"","k":"","d":"","g":"LottieFiles AE 0.1.21","tc":"#000000"},"v":"3.4.1","fr":8,"op":60.0000024438501,"ip":0,"assets":[{"nm":"","mn":"","layers":[{"ty":4,"nm":"wave_2 Outlines","mn":"","sr":1,"st":0,"op":60.0000024438501,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[178,89,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,89,0],"t":0,"ti":[-29.667,0,0],"to":[29.667,0,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[178,89,0],"t":59.0000024031193}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 2","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[45.858,9.977],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[45.859,9.977],[13.272,-0.001]],"o":[[0,0],[-0.03,0.007],[0,0],[-45.859,-9.977],[0,0],[0,0],[0,0],[0,0],[-0.031,0.007],[0,0],[-15.288,-3.326],[-26.538,0]],"v":[[0,-22.84],[0,-22.852],[-0.052,-22.84],[-88.423,-22.84],[-178,-22.84],[-178,32.816],[0,32.816],[178,32.816],[178,-22.852],[177.948,-22.84],[89.576,-22.84],[45.971,-27.273]]},"ix":2}},{"ty":"mm","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Filter - Merge","nm":"Merge Paths 1","mm":4},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[178,145.184],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.251,0.3333,0.6588],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}}],"ind":1},{"ty":4,"nm":"wave_1 Outlines","mn":"","sr":1,"st":0,"op":60.0000024438501,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[178,89,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[178,91,0],"t":0,"ti":[29.667,0,0],"to":[-29.667,0,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0,91,0],"t":59.0000024031193}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":50,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 2","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[15.288,-3.326],[0,0],[0.031,0.007],[0,0],[45.858,-9.977],[0,0],[0.031,0.007],[0,0],[0,0],[0,0],[0,0],[26.539,0]],"o":[[-45.857,9.977],[0,0],[0,0],[0,0],[-45.858,9.977],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-13.272,-0.001]],"v":[[88.423,-22.84],[0.051,-22.84],[0,-22.852],[0,-22.84],[-89.576,-22.84],[-177.948,-22.84],[-178,-22.852],[-178,32.816],[0,32.816],[178,32.816],[178,-22.84],[132.029,-27.273]]},"ix":2}},{"ty":"mm","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Filter - Merge","nm":"Merge Paths 1","mm":4},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[178,145.184],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.251,0.3333,0.6588],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}}],"ind":2}],"id":"comp_0"}]}"
|
|
145
|
-
speed={1}
|
|
146
|
-
style={
|
|
147
|
-
{
|
|
148
|
-
"aspectRatio": 1,
|
|
149
|
-
"backgroundColor": "#647ACB",
|
|
150
|
-
"height": "100%",
|
|
151
|
-
"width": 814,
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
textFiltersAndroid={[]}
|
|
155
|
-
textFiltersIOS={[]}
|
|
156
|
-
useNativeLooping={false}
|
|
157
|
-
/>
|
|
158
|
-
</View>
|
|
159
|
-
</View>
|
|
160
|
-
<View
|
|
161
|
-
style={
|
|
162
|
-
{
|
|
163
|
-
"backgroundColor": "#4055A8",
|
|
164
|
-
"height": "30%",
|
|
165
|
-
"position": "absolute",
|
|
166
|
-
"top": "38%",
|
|
167
|
-
"width": "100%",
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
/>
|
|
171
|
-
</View>
|
|
172
|
-
</View>
|
|
173
|
-
`;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import render from 'react-test-renderer';
|
|
3
|
-
import {WaveBackground} from './wave.component';
|
|
4
|
-
|
|
5
|
-
describe('test wave background', () => {
|
|
6
|
-
it('should render a wave background', () => {
|
|
7
|
-
const tree = render.create(<WaveBackground />).toJSON();
|
|
8
|
-
expect(tree).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
it('should render a wave background for android specific we will give some props that it should render', () => {
|
|
11
|
-
const tree = render
|
|
12
|
-
.create(
|
|
13
|
-
<WaveBackground
|
|
14
|
-
customStyle={{flex: 1, alignItems: 'center'}}
|
|
15
|
-
customWavePath={
|
|
16
|
-
'M0,64L48,90.7C96,117,192,171,288,165.3C384,160,480,96,576,80C672,64,768,96,864,138.7C960,181,1056,235,1152,261.3C1248,288,1344,288,1392,288L1440,288L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'
|
|
17
|
-
}
|
|
18
|
-
heightSvgContainer={400}
|
|
19
|
-
positionTop={450}
|
|
20
|
-
/>
|
|
21
|
-
)
|
|
22
|
-
.toJSON();
|
|
23
|
-
expect(tree).toMatchSnapshot();
|
|
24
|
-
});
|
|
25
|
-
});
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`test wide-button component should render a wide-button component 1`] = `
|
|
4
|
-
<View
|
|
5
|
-
accessibilityState={
|
|
6
|
-
{
|
|
7
|
-
"busy": undefined,
|
|
8
|
-
"checked": undefined,
|
|
9
|
-
"disabled": undefined,
|
|
10
|
-
"expanded": undefined,
|
|
11
|
-
"selected": undefined,
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
accessibilityValue={
|
|
15
|
-
{
|
|
16
|
-
"max": undefined,
|
|
17
|
-
"min": undefined,
|
|
18
|
-
"now": undefined,
|
|
19
|
-
"text": undefined,
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
accessible={true}
|
|
23
|
-
collapsable={false}
|
|
24
|
-
focusable={true}
|
|
25
|
-
onBlur={[Function]}
|
|
26
|
-
onClick={[Function]}
|
|
27
|
-
onFocus={[Function]}
|
|
28
|
-
onResponderGrant={[Function]}
|
|
29
|
-
onResponderMove={[Function]}
|
|
30
|
-
onResponderRelease={[Function]}
|
|
31
|
-
onResponderTerminate={[Function]}
|
|
32
|
-
onResponderTerminationRequest={[Function]}
|
|
33
|
-
onStartShouldSetResponder={[Function]}
|
|
34
|
-
style={
|
|
35
|
-
{
|
|
36
|
-
"alignItems": "center",
|
|
37
|
-
"backgroundColor": "#19216C",
|
|
38
|
-
"borderRadius": 8,
|
|
39
|
-
"justifyContent": "center",
|
|
40
|
-
"paddingHorizontal": 24,
|
|
41
|
-
"paddingVertical": 12,
|
|
42
|
-
"width": "100%",
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
>
|
|
46
|
-
<Text
|
|
47
|
-
style={
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
{
|
|
51
|
-
"fontFamily": "SourceSansPro",
|
|
52
|
-
"fontSize": 16,
|
|
53
|
-
"lineHeight": 22.4,
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
{
|
|
57
|
-
"color": "#E0E8F9",
|
|
58
|
-
"textAlign": "center",
|
|
59
|
-
"width": "100%",
|
|
60
|
-
},
|
|
61
|
-
undefined,
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
>
|
|
65
|
-
Bevestigen
|
|
66
|
-
</Text>
|
|
67
|
-
</View>
|
|
68
|
-
`;
|
|
69
|
-
|
|
70
|
-
exports[`test wide-button component should render a wide-button component that has a custom background color 1`] = `
|
|
71
|
-
<View
|
|
72
|
-
accessibilityState={
|
|
73
|
-
{
|
|
74
|
-
"busy": undefined,
|
|
75
|
-
"checked": undefined,
|
|
76
|
-
"disabled": undefined,
|
|
77
|
-
"expanded": undefined,
|
|
78
|
-
"selected": undefined,
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
accessibilityValue={
|
|
82
|
-
{
|
|
83
|
-
"max": undefined,
|
|
84
|
-
"min": undefined,
|
|
85
|
-
"now": undefined,
|
|
86
|
-
"text": undefined,
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
accessible={true}
|
|
90
|
-
collapsable={false}
|
|
91
|
-
focusable={true}
|
|
92
|
-
onBlur={[Function]}
|
|
93
|
-
onClick={[Function]}
|
|
94
|
-
onFocus={[Function]}
|
|
95
|
-
onResponderGrant={[Function]}
|
|
96
|
-
onResponderMove={[Function]}
|
|
97
|
-
onResponderRelease={[Function]}
|
|
98
|
-
onResponderTerminate={[Function]}
|
|
99
|
-
onResponderTerminationRequest={[Function]}
|
|
100
|
-
onStartShouldSetResponder={[Function]}
|
|
101
|
-
style={
|
|
102
|
-
{
|
|
103
|
-
"alignItems": "center",
|
|
104
|
-
"backgroundColor": "red",
|
|
105
|
-
"borderRadius": 8,
|
|
106
|
-
"justifyContent": "center",
|
|
107
|
-
"paddingHorizontal": 24,
|
|
108
|
-
"paddingVertical": 12,
|
|
109
|
-
"width": "100%",
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
>
|
|
113
|
-
<Text
|
|
114
|
-
style={
|
|
115
|
-
[
|
|
116
|
-
[
|
|
117
|
-
{
|
|
118
|
-
"fontFamily": "SourceSansPro",
|
|
119
|
-
"fontSize": 16,
|
|
120
|
-
"lineHeight": 22.4,
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
{
|
|
124
|
-
"color": "#E0E8F9",
|
|
125
|
-
"textAlign": "center",
|
|
126
|
-
"width": "100%",
|
|
127
|
-
},
|
|
128
|
-
undefined,
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
>
|
|
132
|
-
Bevestigen
|
|
133
|
-
</Text>
|
|
134
|
-
</View>
|
|
135
|
-
`;
|
|
136
|
-
|
|
137
|
-
exports[`test wide-button component should render a wide-button component that has a custom background color but is disabled 1`] = `
|
|
138
|
-
<View
|
|
139
|
-
accessibilityState={
|
|
140
|
-
{
|
|
141
|
-
"busy": undefined,
|
|
142
|
-
"checked": undefined,
|
|
143
|
-
"disabled": true,
|
|
144
|
-
"expanded": undefined,
|
|
145
|
-
"selected": undefined,
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
accessibilityValue={
|
|
149
|
-
{
|
|
150
|
-
"max": undefined,
|
|
151
|
-
"min": undefined,
|
|
152
|
-
"now": undefined,
|
|
153
|
-
"text": undefined,
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
accessible={true}
|
|
157
|
-
collapsable={false}
|
|
158
|
-
focusable={true}
|
|
159
|
-
onBlur={[Function]}
|
|
160
|
-
onClick={[Function]}
|
|
161
|
-
onFocus={[Function]}
|
|
162
|
-
onResponderGrant={[Function]}
|
|
163
|
-
onResponderMove={[Function]}
|
|
164
|
-
onResponderRelease={[Function]}
|
|
165
|
-
onResponderTerminate={[Function]}
|
|
166
|
-
onResponderTerminationRequest={[Function]}
|
|
167
|
-
onStartShouldSetResponder={[Function]}
|
|
168
|
-
style={
|
|
169
|
-
{
|
|
170
|
-
"alignItems": "center",
|
|
171
|
-
"backgroundColor": "#E5E8EB",
|
|
172
|
-
"borderRadius": 8,
|
|
173
|
-
"justifyContent": "center",
|
|
174
|
-
"paddingHorizontal": 24,
|
|
175
|
-
"paddingVertical": 12,
|
|
176
|
-
"width": "100%",
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
>
|
|
180
|
-
<Text
|
|
181
|
-
style={
|
|
182
|
-
[
|
|
183
|
-
[
|
|
184
|
-
{
|
|
185
|
-
"fontFamily": "SourceSansPro",
|
|
186
|
-
"fontSize": 16,
|
|
187
|
-
"lineHeight": 22.4,
|
|
188
|
-
},
|
|
189
|
-
],
|
|
190
|
-
{
|
|
191
|
-
"color": "#515F6C",
|
|
192
|
-
"textAlign": "center",
|
|
193
|
-
"width": "100%",
|
|
194
|
-
},
|
|
195
|
-
undefined,
|
|
196
|
-
]
|
|
197
|
-
}
|
|
198
|
-
>
|
|
199
|
-
Bevestigen
|
|
200
|
-
</Text>
|
|
201
|
-
</View>
|
|
202
|
-
`;
|
|
203
|
-
|
|
204
|
-
exports[`test wide-button component should render a wide-button component that is disabled 1`] = `
|
|
205
|
-
<View
|
|
206
|
-
accessibilityState={
|
|
207
|
-
{
|
|
208
|
-
"busy": undefined,
|
|
209
|
-
"checked": undefined,
|
|
210
|
-
"disabled": true,
|
|
211
|
-
"expanded": undefined,
|
|
212
|
-
"selected": undefined,
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
accessibilityValue={
|
|
216
|
-
{
|
|
217
|
-
"max": undefined,
|
|
218
|
-
"min": undefined,
|
|
219
|
-
"now": undefined,
|
|
220
|
-
"text": undefined,
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
accessible={true}
|
|
224
|
-
collapsable={false}
|
|
225
|
-
focusable={true}
|
|
226
|
-
onBlur={[Function]}
|
|
227
|
-
onClick={[Function]}
|
|
228
|
-
onFocus={[Function]}
|
|
229
|
-
onResponderGrant={[Function]}
|
|
230
|
-
onResponderMove={[Function]}
|
|
231
|
-
onResponderRelease={[Function]}
|
|
232
|
-
onResponderTerminate={[Function]}
|
|
233
|
-
onResponderTerminationRequest={[Function]}
|
|
234
|
-
onStartShouldSetResponder={[Function]}
|
|
235
|
-
style={
|
|
236
|
-
{
|
|
237
|
-
"alignItems": "center",
|
|
238
|
-
"backgroundColor": "#E5E8EB",
|
|
239
|
-
"borderRadius": 8,
|
|
240
|
-
"justifyContent": "center",
|
|
241
|
-
"paddingHorizontal": 24,
|
|
242
|
-
"paddingVertical": 12,
|
|
243
|
-
"width": "100%",
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
>
|
|
247
|
-
<Text
|
|
248
|
-
style={
|
|
249
|
-
[
|
|
250
|
-
[
|
|
251
|
-
{
|
|
252
|
-
"fontFamily": "SourceSansPro",
|
|
253
|
-
"fontSize": 16,
|
|
254
|
-
"lineHeight": 22.4,
|
|
255
|
-
},
|
|
256
|
-
],
|
|
257
|
-
{
|
|
258
|
-
"color": "#515F6C",
|
|
259
|
-
"textAlign": "center",
|
|
260
|
-
"width": "100%",
|
|
261
|
-
},
|
|
262
|
-
undefined,
|
|
263
|
-
]
|
|
264
|
-
}
|
|
265
|
-
>
|
|
266
|
-
Bevestigen
|
|
267
|
-
</Text>
|
|
268
|
-
</View>
|
|
269
|
-
`;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import render from 'react-test-renderer';
|
|
3
|
-
import {WideButton} from './wide-button.component';
|
|
4
|
-
|
|
5
|
-
describe('test wide-button component', () => {
|
|
6
|
-
it('should render a wide-button component', () => {
|
|
7
|
-
const tree = render.create(<WideButton text="Bevestigen" />).toJSON();
|
|
8
|
-
expect(tree).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
it('should render a wide-button component that is disabled', () => {
|
|
11
|
-
const tree = render
|
|
12
|
-
.create(<WideButton text="Bevestigen" disabled={true} />)
|
|
13
|
-
.toJSON();
|
|
14
|
-
expect(tree).toMatchSnapshot();
|
|
15
|
-
});
|
|
16
|
-
it('should render a wide-button component that has a custom background color', () => {
|
|
17
|
-
const tree = render
|
|
18
|
-
.create(<WideButton text="Bevestigen" backgroundColor={'red'} />)
|
|
19
|
-
.toJSON();
|
|
20
|
-
expect(tree).toMatchSnapshot();
|
|
21
|
-
});
|
|
22
|
-
it('should render a wide-button component that has a custom background color but is disabled', () => {
|
|
23
|
-
const tree = render
|
|
24
|
-
.create(
|
|
25
|
-
<WideButton text="Bevestigen" backgroundColor={'red'} disabled={true} />
|
|
26
|
-
)
|
|
27
|
-
.toJSON();
|
|
28
|
-
expect(tree).toMatchSnapshot();
|
|
29
|
-
});
|
|
30
|
-
});
|