@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.
Files changed (186) hide show
  1. package/App.tsx +11 -19
  2. package/app.json +8 -4
  3. package/index.tsx +2 -4
  4. package/package.json +55 -27
  5. package/src/components/atoms/calendar/calendar.component.tsx +10 -6
  6. package/src/components/atoms/calendar/calendar.preview.tsx +4 -3
  7. package/src/components/molecules/amount/amount.component.tsx +5 -4
  8. package/src/components/molecules/calendar-select/calendar-select.component.d.ts +4 -4
  9. package/src/components/molecules/calendar-select/calendar-select.component.tsx +17 -16
  10. package/src/components/molecules/calendar-select/calendar-select.preview.tsx +16 -5
  11. package/src/components/molecules/contact-address/contact-address.component.d.ts +8 -0
  12. package/src/components/molecules/contact-address/contact-address.component.tsx +20 -0
  13. package/src/components/molecules/contact-address/contact-address.preview.d.ts +2 -0
  14. package/src/components/molecules/contact-address/contact-address.preview.tsx +17 -0
  15. package/src/components/molecules/contact-address/contact-address.styles.d.ts +7 -0
  16. package/src/components/molecules/contact-address/contact-address.styles.js +10 -0
  17. package/src/components/molecules/date-input/date-input.component.d.ts +2 -2
  18. package/src/components/molecules/date-input/date-input.component.tsx +3 -3
  19. package/src/components/molecules/date-input/date-input.preview.tsx +5 -5
  20. package/src/components/molecules/day/day.component.d.ts +3 -3
  21. package/src/components/molecules/day/day.component.tsx +22 -17
  22. package/src/components/molecules/selectable-list-item/selectable-list-item.component.tsx +12 -7
  23. package/src/components/molecules/timestamp/timestamp.component.d.ts +2 -2
  24. package/src/components/molecules/timestamp/timestamp.component.tsx +12 -5
  25. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +2 -2
  26. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.tsx +5 -5
  27. package/src/components/organisms/journal-entry/journal-entry.component.d.ts +3 -3
  28. package/src/components/organisms/journal-entry/journal-entry.component.tsx +7 -3
  29. package/src/components/organisms/journal-entry/journal-entry.preview.tsx +7 -3
  30. package/src/components/organisms/person-info-card/person-info-card.component.tsx +8 -2
  31. package/src/components/organisms/person-info-card/person-info-card.preview.tsx +3 -0
  32. package/src/components/organisms/person-info-card/person-info-card.styles.d.ts +4 -0
  33. package/src/components/organisms/person-info-card/person-info-card.styles.js +4 -0
  34. package/src/components/organisms/text-bubble/text-bubble.component.d.ts +2 -2
  35. package/src/components/organisms/text-bubble/text-bubble.component.tsx +6 -3
  36. package/src/components/organisms/text-bubble/text-bubble.preview.tsx +19 -7
  37. package/src/components/templates/popover-action/popover-action.component.tsx +9 -8
  38. package/src/icons/solid/cloud-download/cloud-download.icon.tsx +1 -1
  39. package/src/icons/solid/refresh/refresh-solid.icon.tsx +2 -2
  40. package/src/utilities/datetime/clock.class.tsx +14 -0
  41. package/src/utilities/datetime/dateonly.class.tsx +287 -0
  42. package/src/utilities/datetime/datetime.class.tsx +288 -0
  43. package/src/utilities/datetime/day.class.tsx +48 -0
  44. package/src/utilities/datetime/dayjs-config.ts +96 -0
  45. package/src/utilities/datetime/dayoftheweek.class.tsx +242 -0
  46. package/src/utilities/datetime/hour.class.tsx +60 -0
  47. package/src/utilities/datetime/locale.tsx +6 -0
  48. package/src/utilities/datetime/millisecond.class.tsx +48 -0
  49. package/src/utilities/datetime/minute.class.tsx +55 -0
  50. package/src/utilities/datetime/month.class.tsx +74 -0
  51. package/src/utilities/datetime/second.class.tsx +52 -0
  52. package/src/utilities/datetime/time.class.tsx +190 -0
  53. package/src/utilities/datetime/timezone.class.tsx +36 -0
  54. package/src/utilities/datetime/year.class.tsx +78 -0
  55. package/src/utilities/datetime/yearandmonth.class.tsx +80 -0
  56. package/src/components/atoms/background-gradient/__snapshots__/background-gradient.test.js.snap +0 -40
  57. package/src/components/atoms/background-gradient/background-gradient.test.js +0 -10
  58. package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +0 -6817
  59. package/src/components/atoms/calendar/calendar.test.js +0 -35
  60. package/src/components/atoms/check-switch/__snapshots__/check-switch.test.js.snap +0 -84
  61. package/src/components/atoms/check-switch/check-switch.test.js +0 -13
  62. package/src/components/atoms/heading-components/all-caps-heading/__snapshots__/all-caps-heading.test.js.snap +0 -113
  63. package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.test.js +0 -44
  64. package/src/components/atoms/heading-components/heading1/__snapshots__/heading1.test.js.snap +0 -121
  65. package/src/components/atoms/heading-components/heading1/heading1.test.js +0 -51
  66. package/src/components/atoms/heading-components/heading2/__snapshots__/heading2.test.js.snap +0 -121
  67. package/src/components/atoms/heading-components/heading2/heading2.test.js +0 -51
  68. package/src/components/atoms/heading-components/heading3/__snapshots__/heading3.test.js.snap +0 -121
  69. package/src/components/atoms/heading-components/heading3/heading3.test.js +0 -51
  70. package/src/components/atoms/heading-components/heading4/__snapshots__/heading4.test.js.snap +0 -121
  71. package/src/components/atoms/heading-components/heading4/heading4.test.js +0 -51
  72. package/src/components/atoms/image-bubble/__snapshots__/image-bubble.test.js.snap +0 -67
  73. package/src/components/atoms/image-bubble/image-bubble.test.js +0 -20
  74. package/src/components/atoms/increment-input/__snapshots__/increment-input.test.js.snap +0 -269
  75. package/src/components/atoms/increment-input/increment-input.test.js +0 -14
  76. package/src/components/atoms/logo/__snapshots__/logo.test.js.snap +0 -113
  77. package/src/components/atoms/logo/logo.test.js +0 -16
  78. package/src/components/atoms/paragraph-components/paragraph/__snapshots__/paragraph.test.js.snap +0 -121
  79. package/src/components/atoms/paragraph-components/paragraph/paragraph.test.js +0 -76
  80. package/src/components/atoms/paragraph-components/small-text/__snapshots__/small-text.test.js.snap +0 -121
  81. package/src/components/atoms/paragraph-components/small-text/small-text.test.js +0 -76
  82. package/src/components/atoms/paragraph-components/tiny-text/__snapshots__/tiny-text.test.js.snap +0 -121
  83. package/src/components/atoms/paragraph-components/tiny-text/tiny-text.test.js +0 -76
  84. package/src/components/atoms/quick-message/__snapshots__/quick-message.test.js.snap +0 -143
  85. package/src/components/atoms/quick-message/quick-message.test.js +0 -58
  86. package/src/components/atoms/split-container/__snapshots__/split-container.test.js.snap +0 -333
  87. package/src/components/atoms/split-container/split-container.test.js +0 -45
  88. package/src/components/atoms/text-input/__snapshots__/text-input.test.js.snap +0 -123
  89. package/src/components/atoms/text-input/text-input.test.js +0 -59
  90. package/src/components/molecules/avatar/__snapshots__/avatar.test.js.snap +0 -97
  91. package/src/components/molecules/avatar/avatar.test.js +0 -22
  92. package/src/components/molecules/blocked-message/__snapshots__/blocked-message.test.js.snap +0 -107
  93. package/src/components/molecules/blocked-message/blocked-message.test.js +0 -12
  94. package/src/components/molecules/button/__snapshots__/button.test.js.snap +0 -652
  95. package/src/components/molecules/button/button.test.js +0 -56
  96. package/src/components/molecules/calendar-select/__snapshots__/calendar-select.test.js.snap +0 -343
  97. package/src/components/molecules/calendar-select/calendar-select.test.js +0 -20
  98. package/src/components/molecules/cancel-link/__snapshots__/cancel-link.test.js.snap +0 -139
  99. package/src/components/molecules/cancel-link/cancel-link.test.js +0 -28
  100. package/src/components/molecules/checkbox/__snapshots__/checkbox.test.js.snap +0 -176
  101. package/src/components/molecules/checkbox/checkbox.test.js +0 -30
  102. package/src/components/molecules/contact-role/__snapshots__/contact-role.test.js.snap +0 -113
  103. package/src/components/molecules/contact-role/contact-role.test.js +0 -18
  104. package/src/components/molecules/date-input/__snapshots__/date-input.test.js.snap +0 -140
  105. package/src/components/molecules/date-input/date-input.test.js +0 -23
  106. package/src/components/molecules/day/__snapshots__/day.test.js.snap +0 -263
  107. package/src/components/molecules/day/day.test.js +0 -37
  108. package/src/components/molecules/default-select/__snapshots__/default-select.test.js.snap +0 -140
  109. package/src/components/molecules/default-select/default-select.test.js +0 -17
  110. package/src/components/molecules/department_logo/__snapshots__/department-logo.test.js.snap +0 -27
  111. package/src/components/molecules/department_logo/department-logo.test.js +0 -12
  112. package/src/components/molecules/failed-to-send/__snapshots__/failed-bubble.test.js.snap +0 -386
  113. package/src/components/molecules/failed-to-send/failed-bubble.test.js +0 -75
  114. package/src/components/molecules/filter-range/__snapshots__/filter-range.test.js.snap +0 -208
  115. package/src/components/molecules/filter-range/filter-range.test.js +0 -20
  116. package/src/components/molecules/filter-tab/__snapshots__/filter-tab.test.js.snap +0 -536
  117. package/src/components/molecules/filter-tab/filter-tab.test.js +0 -42
  118. package/src/components/molecules/info/__snapshots__/info.test.js.snap +0 -64
  119. package/src/components/molecules/info/info.test.js +0 -18
  120. package/src/components/molecules/language-button/__snapshots__/language-button.test.js.snap +0 -129
  121. package/src/components/molecules/language-button/language-button.test.js +0 -29
  122. package/src/components/molecules/message-input/__snapshots__/message-input.test.js.snap +0 -611
  123. package/src/components/molecules/message-input/message-input.test.js +0 -63
  124. package/src/components/molecules/more-info-button/__snapshots__/more-info-button.test.js.snap +0 -133
  125. package/src/components/molecules/more-info-button/more-info-button.test.js +0 -29
  126. package/src/components/molecules/password-input/__snapshots__/password-input.test.js.snap +0 -504
  127. package/src/components/molecules/password-input/password-input.test.js +0 -46
  128. package/src/components/molecules/pill/__snapshots__/pill.test.js.snap +0 -226
  129. package/src/components/molecules/pill/pill.test.js +0 -42
  130. package/src/components/molecules/pressable-icon/__snapshots__/pressable-icon.test.js.snap +0 -460
  131. package/src/components/molecules/pressable-icon/pressable-icon.test.js +0 -51
  132. package/src/components/molecules/quick-filter/__snapshots__/quick-filter.test.js.snap +0 -557
  133. package/src/components/molecules/quick-filter/quick-filter.test.js +0 -134
  134. package/src/components/molecules/search-input/__snapshots__/search.test.js.snap +0 -145
  135. package/src/components/molecules/search-input/search.test.js +0 -22
  136. package/src/components/molecules/select-link/__snapshots__/select-link.test.js.snap +0 -70
  137. package/src/components/molecules/select-link/select-link.test.js +0 -17
  138. package/src/components/molecules/select-list-item/__snapshots__/select-list-item.test.js.snap +0 -762
  139. package/src/components/molecules/select-list-item/select-list-item.test.js +0 -38
  140. package/src/components/molecules/select-picker/__snapshots__/select-picker.test.js.snap +0 -407
  141. package/src/components/molecules/select-picker/select-picker.test.js +0 -31
  142. package/src/components/molecules/send-bubble/__snapshots__/send-text-bubble.test.js.snap +0 -1979
  143. package/src/components/molecules/send-bubble/send-text-bubble.test.js +0 -156
  144. package/src/components/molecules/snackbar/__snapshots__/snackbar.test.js.snap +0 -557
  145. package/src/components/molecules/snackbar/snackbar.test.js +0 -35
  146. package/src/components/molecules/swipe/__snapshots__/swipe.test.js.snap +0 -340
  147. package/src/components/molecules/swipe/swipe.test.js +0 -46
  148. package/src/components/molecules/tag/__snapshots__/tag.test.js.snap +0 -139
  149. package/src/components/molecules/tag/tag.test.js +0 -34
  150. package/src/components/molecules/time-picker/__snapshots__/time-picker.test.js.snap +0 -2221
  151. package/src/components/molecules/time-picker/time-picker.test.js +0 -18
  152. package/src/components/molecules/time-tracker/__snapshots__/time-tracker.test.js.snap +0 -266
  153. package/src/components/molecules/time-tracker/time-tracker.test.js +0 -36
  154. package/src/components/molecules/timeline/__snapshots__/timeline.test.js.snap +0 -257
  155. package/src/components/molecules/timeline/timeline.test.js +0 -18
  156. package/src/components/molecules/timestamp/__snapshots__/timestamp.test.js.snap +0 -28
  157. package/src/components/molecules/timestamp/timestamp.test.js +0 -16
  158. package/src/components/molecules/wave-background/__snapshots__/wave.test.js.snap +0 -173
  159. package/src/components/molecules/wave-background/wave.test.js +0 -25
  160. package/src/components/molecules/wide-button/__snapshots__/wide-button.test.js.snap +0 -269
  161. package/src/components/molecules/wide-button/wide-button.test.js +0 -30
  162. package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +0 -1040
  163. package/src/components/organisms/child-list-item/child-list-item.test.js +0 -75
  164. package/src/components/organisms/contact-item/__snapshots__/contact-item.test.js.snap +0 -404
  165. package/src/components/organisms/contact-item/contact-item.test.js +0 -22
  166. package/src/components/organisms/loading-indicator/__snapshots__/loading-indicator.test.js.snap +0 -474
  167. package/src/components/organisms/loading-indicator/loading-indicator.test.js +0 -41
  168. package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +0 -293
  169. package/src/components/organisms/my-child-list-item/my-child-list-item.test.js +0 -23
  170. package/src/components/organisms/person-info-card/__snapshots__/person-info-card.test.js.snap +0 -709
  171. package/src/components/organisms/person-info-card/person-info-card.test.js +0 -85
  172. package/src/components/organisms/text-bubble/__snapshots__/text-bubble.test.js.snap +0 -3046
  173. package/src/components/organisms/text-bubble/text-bubble.test.js +0 -144
  174. package/src/utilities/toddle-datetime/interfaces/duration.interface.d.ts +0 -22
  175. package/src/utilities/toddle-datetime/interfaces/duration.interface.tsx +0 -23
  176. package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +0 -22
  177. package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.tsx +0 -25
  178. package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +0 -50
  179. package/src/utilities/toddle-datetime/toddle-datetime.class.tsx +0 -206
  180. package/src/utilities/toddle-datetime/toddle-datetime.preview.d.ts +0 -2
  181. package/src/utilities/toddle-datetime/toddle-datetime.preview.tsx +0 -160
  182. package/src/utilities/toddle-datetime/toddle-datetime.test.js +0 -127
  183. package/src/utilities/toddle-datetime/types/duration.type.d.ts +0 -4
  184. package/src/utilities/toddle-datetime/types/duration.type.tsx +0 -6
  185. package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +0 -5
  186. package/src/utilities/toddle-datetime/types/toddle-datetime.type.tsx +0 -23
@@ -1,343 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`test Calendar Select renders Calendar Select 1`] = `
4
- <View
5
- style={
6
- {
7
- "alignItems": "center",
8
- "color": "#FFFFFF",
9
- "flexDirection": "row",
10
- "justifyContent": "space-between",
11
- }
12
- }
13
- >
14
- <View
15
- accessibilityState={
16
- {
17
- "busy": undefined,
18
- "checked": undefined,
19
- "disabled": undefined,
20
- "expanded": undefined,
21
- "selected": undefined,
22
- }
23
- }
24
- accessibilityValue={
25
- {
26
- "max": undefined,
27
- "min": undefined,
28
- "now": undefined,
29
- "text": undefined,
30
- }
31
- }
32
- accessible={true}
33
- collapsable={false}
34
- focusable={true}
35
- onBlur={[Function]}
36
- onClick={[Function]}
37
- onFocus={[Function]}
38
- onResponderGrant={[Function]}
39
- onResponderMove={[Function]}
40
- onResponderRelease={[Function]}
41
- onResponderTerminate={[Function]}
42
- onResponderTerminationRequest={[Function]}
43
- onStartShouldSetResponder={[Function]}
44
- >
45
- <RNSVGSvgView
46
- align="xMidYMid"
47
- bbHeight="24"
48
- bbWidth="24"
49
- fill="none"
50
- focusable={false}
51
- height={24}
52
- meetOrSlice={0}
53
- minX={0}
54
- minY={0}
55
- style={
56
- [
57
- {
58
- "backgroundColor": "transparent",
59
- "borderWidth": 0,
60
- },
61
- {
62
- "flex": 0,
63
- "height": 24,
64
- "width": 24,
65
- },
66
- ]
67
- }
68
- vbHeight={19}
69
- vbWidth={10}
70
- width={24}
71
- >
72
- <RNSVGGroup
73
- fill={null}
74
- propList={
75
- [
76
- "fill",
77
- ]
78
- }
79
- >
80
- <RNSVGPath
81
- d="M8.875 17.375L1 9.5L8.875 1.625"
82
- fill={
83
- {
84
- "payload": 4278190080,
85
- "type": 0,
86
- }
87
- }
88
- propList={
89
- [
90
- "stroke",
91
- "strokeWidth",
92
- "strokeLinecap",
93
- "strokeLinejoin",
94
- ]
95
- }
96
- stroke={
97
- {
98
- "payload": 4279837036,
99
- "type": 0,
100
- }
101
- }
102
- strokeLinecap={1}
103
- strokeLinejoin={1}
104
- strokeWidth="2"
105
- />
106
- </RNSVGGroup>
107
- </RNSVGSvgView>
108
- </View>
109
- <View
110
- accessibilityState={
111
- {
112
- "busy": undefined,
113
- "checked": undefined,
114
- "disabled": undefined,
115
- "expanded": undefined,
116
- "selected": undefined,
117
- }
118
- }
119
- accessibilityValue={
120
- {
121
- "max": undefined,
122
- "min": undefined,
123
- "now": undefined,
124
- "text": undefined,
125
- }
126
- }
127
- accessible={true}
128
- collapsable={false}
129
- focusable={true}
130
- onBlur={[Function]}
131
- onClick={[Function]}
132
- onFocus={[Function]}
133
- onResponderGrant={[Function]}
134
- onResponderMove={[Function]}
135
- onResponderRelease={[Function]}
136
- onResponderTerminate={[Function]}
137
- onResponderTerminationRequest={[Function]}
138
- onStartShouldSetResponder={[Function]}
139
- style={
140
- {
141
- "alignItems": "center",
142
- "backgroundColor": "#19216C",
143
- "borderRadius": 32,
144
- "flexDirection": "row",
145
- "paddingBottom": 12,
146
- "paddingLeft": 24,
147
- "paddingRight": 24,
148
- "paddingTop": 12,
149
- }
150
- }
151
- >
152
- <View
153
- style={
154
- {
155
- "marginRight": 16,
156
- }
157
- }
158
- >
159
- <RNSVGSvgView
160
- align="xMidYMid"
161
- bbHeight="24"
162
- bbWidth="24"
163
- fill="none"
164
- focusable={false}
165
- height={24}
166
- meetOrSlice={0}
167
- minX={0}
168
- minY={0}
169
- style={
170
- [
171
- {
172
- "backgroundColor": "transparent",
173
- "borderWidth": 0,
174
- },
175
- {
176
- "flex": 0,
177
- "height": 24,
178
- "width": 24,
179
- },
180
- ]
181
- }
182
- vbHeight={24}
183
- vbWidth={24}
184
- width={24}
185
- >
186
- <RNSVGGroup
187
- fill={null}
188
- propList={
189
- [
190
- "fill",
191
- ]
192
- }
193
- >
194
- <RNSVGPath
195
- d="M7.33333 6.16667V1.5M16.6667 6.16667V1.5M6.16667 10.8333H17.8333M3.83333 22.5H20.1667C21.4553 22.5 22.5 21.4553 22.5 20.1667V6.16667C22.5 4.878 21.4553 3.83333 20.1667 3.83333H3.83333C2.54467 3.83333 1.5 4.878 1.5 6.16667V20.1667C1.5 21.4553 2.54467 22.5 3.83333 22.5Z"
196
- fill={
197
- {
198
- "payload": 4278190080,
199
- "type": 0,
200
- }
201
- }
202
- propList={
203
- [
204
- "stroke",
205
- "strokeWidth",
206
- "strokeLinecap",
207
- "strokeLinejoin",
208
- ]
209
- }
210
- stroke={
211
- {
212
- "payload": 4292929785,
213
- "type": 0,
214
- }
215
- }
216
- strokeLinecap={1}
217
- strokeLinejoin={1}
218
- strokeWidth="2"
219
- />
220
- </RNSVGGroup>
221
- </RNSVGSvgView>
222
- </View>
223
- <View>
224
- <Text
225
- style={
226
- [
227
- [
228
- {
229
- "fontFamily": "Montserrat",
230
- "fontSize": 14,
231
- "lineHeight": 22.4,
232
- },
233
- ],
234
- {
235
- "color": "#E0E8F9",
236
- "textAlign": undefined,
237
- "width": "100%",
238
- },
239
- undefined,
240
- ]
241
- }
242
- >
243
- 1 Dec 2022
244
- </Text>
245
- </View>
246
- </View>
247
- <View
248
- accessibilityState={
249
- {
250
- "busy": undefined,
251
- "checked": undefined,
252
- "disabled": undefined,
253
- "expanded": undefined,
254
- "selected": undefined,
255
- }
256
- }
257
- accessibilityValue={
258
- {
259
- "max": undefined,
260
- "min": undefined,
261
- "now": undefined,
262
- "text": undefined,
263
- }
264
- }
265
- accessible={true}
266
- collapsable={false}
267
- focusable={true}
268
- onBlur={[Function]}
269
- onClick={[Function]}
270
- onFocus={[Function]}
271
- onResponderGrant={[Function]}
272
- onResponderMove={[Function]}
273
- onResponderRelease={[Function]}
274
- onResponderTerminate={[Function]}
275
- onResponderTerminationRequest={[Function]}
276
- onStartShouldSetResponder={[Function]}
277
- >
278
- <RNSVGSvgView
279
- align="xMidYMid"
280
- bbHeight="24"
281
- bbWidth="24"
282
- fill="none"
283
- focusable={false}
284
- height={24}
285
- meetOrSlice={0}
286
- minX={0}
287
- minY={0}
288
- style={
289
- [
290
- {
291
- "backgroundColor": "transparent",
292
- "borderWidth": 0,
293
- },
294
- {
295
- "flex": 0,
296
- "height": 24,
297
- "width": 24,
298
- },
299
- ]
300
- }
301
- vbHeight={19}
302
- vbWidth={11}
303
- width={24}
304
- >
305
- <RNSVGGroup
306
- fill={null}
307
- propList={
308
- [
309
- "fill",
310
- ]
311
- }
312
- >
313
- <RNSVGPath
314
- d="M1.75 1.625L9.33333 9.5L1.75 17.375"
315
- fill={
316
- {
317
- "payload": 4278190080,
318
- "type": 0,
319
- }
320
- }
321
- propList={
322
- [
323
- "stroke",
324
- "strokeWidth",
325
- "strokeLinecap",
326
- "strokeLinejoin",
327
- ]
328
- }
329
- stroke={
330
- {
331
- "payload": 4279837036,
332
- "type": 0,
333
- }
334
- }
335
- strokeLinecap={1}
336
- strokeLinejoin={1}
337
- strokeWidth="2"
338
- />
339
- </RNSVGGroup>
340
- </RNSVGSvgView>
341
- </View>
342
- </View>
343
- `;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import render from 'react-test-renderer';
3
- import {CalendarSelect} from './calendar-select.component';
4
- import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime.class';
5
-
6
- const testDate = ToddleDateTime.fromISO('2022-12-01', {locale: 'en-GB'});
7
-
8
- describe('test Calendar Select', () => {
9
- it('renders Calendar Select', function () {
10
- const tree = render
11
- .create(
12
- <CalendarSelect
13
- onPressDate={(date) => console.log(date)}
14
- startDate={testDate}
15
- />
16
- )
17
- .toJSON();
18
- expect(tree).toMatchSnapshot();
19
- });
20
- });
@@ -1,139 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Cancel link component test renders a cancel link with label "annuleer" that is pressable 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": "transparent",
38
- "borderRadius": 50,
39
- "flexDirection": "row",
40
- "justifyContent": "center",
41
- "paddingHorizontal": 24,
42
- "paddingVertical": 12,
43
- }
44
- }
45
- >
46
- <View>
47
- <Text
48
- style={
49
- [
50
- [
51
- {
52
- "fontFamily": "SourceSansPro",
53
- "fontSize": 16,
54
- "lineHeight": 22.4,
55
- },
56
- ],
57
- {
58
- "color": "#F16868",
59
- "textAlign": undefined,
60
- "width": "100%",
61
- },
62
- undefined,
63
- ]
64
- }
65
- >
66
- Annuleer
67
- </Text>
68
- </View>
69
- </View>
70
- `;
71
-
72
- exports[`Cancel link component test renders a cancel link with label "cancel" that is pressable 1`] = `
73
- <View
74
- accessibilityState={
75
- {
76
- "busy": undefined,
77
- "checked": undefined,
78
- "disabled": undefined,
79
- "expanded": undefined,
80
- "selected": undefined,
81
- }
82
- }
83
- accessibilityValue={
84
- {
85
- "max": undefined,
86
- "min": undefined,
87
- "now": undefined,
88
- "text": undefined,
89
- }
90
- }
91
- accessible={true}
92
- collapsable={false}
93
- focusable={true}
94
- onBlur={[Function]}
95
- onClick={[Function]}
96
- onFocus={[Function]}
97
- onResponderGrant={[Function]}
98
- onResponderMove={[Function]}
99
- onResponderRelease={[Function]}
100
- onResponderTerminate={[Function]}
101
- onResponderTerminationRequest={[Function]}
102
- onStartShouldSetResponder={[Function]}
103
- style={
104
- {
105
- "alignItems": "center",
106
- "backgroundColor": "transparent",
107
- "borderRadius": 50,
108
- "flexDirection": "row",
109
- "justifyContent": "center",
110
- "paddingHorizontal": 24,
111
- "paddingVertical": 12,
112
- }
113
- }
114
- >
115
- <View>
116
- <Text
117
- style={
118
- [
119
- [
120
- {
121
- "fontFamily": "SourceSansPro",
122
- "fontSize": 16,
123
- "lineHeight": 22.4,
124
- },
125
- ],
126
- {
127
- "color": "#F16868",
128
- "textAlign": undefined,
129
- "width": "100%",
130
- },
131
- undefined,
132
- ]
133
- }
134
- >
135
- Cancel
136
- </Text>
137
- </View>
138
- </View>
139
- `;
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import render from 'react-test-renderer';
3
- import {CancelLink} from './cancel-link.component';
4
-
5
- describe('Cancel link component test', () => {
6
- it('renders a cancel link with label "cancel" that is pressable', function () {
7
- const tree = render
8
- .create(
9
- <CancelLink
10
- label="Cancel"
11
- onPress={() => console.log('You cancelled something')}
12
- />
13
- )
14
- .toJSON();
15
- expect(tree).toMatchSnapshot();
16
- });
17
- it('renders a cancel link with label "annuleer" that is pressable', function () {
18
- const tree = render
19
- .create(
20
- <CancelLink
21
- label="Annuleer"
22
- onPress={() => console.log('You cancelled something')}
23
- />
24
- )
25
- .toJSON();
26
- expect(tree).toMatchSnapshot();
27
- });
28
- });
@@ -1,176 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Checkbox component test renders a checkbox with a "notenallergie" label that is checked 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
- "flexDirection": "row",
38
- "justifyContent": "center",
39
- "paddingBottom": 8,
40
- "paddingLeft": 8,
41
- "paddingRight": 8,
42
- "paddingTop": 8,
43
- }
44
- }
45
- >
46
- <View
47
- style={
48
- {
49
- "alignItems": "center",
50
- "backgroundColor": "#E5E8EB",
51
- "borderRadius": 4,
52
- "height": 16,
53
- "justifyContent": "center",
54
- "marginRight": 8,
55
- "width": 16,
56
- }
57
- }
58
- >
59
- <View
60
- style={
61
- {
62
- "backgroundColor": "#647ACB",
63
- "borderRadius": 4,
64
- "height": 12,
65
- "width": 12,
66
- }
67
- }
68
- />
69
- </View>
70
- <View>
71
- <Text
72
- style={
73
- [
74
- [
75
- {
76
- "fontFamily": "Montserrat",
77
- "fontSize": 13,
78
- "lineHeight": 20.4,
79
- },
80
- ],
81
- {
82
- "color": "#1F2933",
83
- "textAlign": undefined,
84
- "width": "100%",
85
- },
86
- undefined,
87
- ]
88
- }
89
- >
90
- notenallergie
91
- </Text>
92
- </View>
93
- </View>
94
- `;
95
-
96
- exports[`Checkbox component test renders a checkbox with a "suiker" label that is not checked 1`] = `
97
- <View
98
- accessibilityState={
99
- {
100
- "busy": undefined,
101
- "checked": undefined,
102
- "disabled": undefined,
103
- "expanded": undefined,
104
- "selected": undefined,
105
- }
106
- }
107
- accessibilityValue={
108
- {
109
- "max": undefined,
110
- "min": undefined,
111
- "now": undefined,
112
- "text": undefined,
113
- }
114
- }
115
- accessible={true}
116
- collapsable={false}
117
- focusable={true}
118
- onBlur={[Function]}
119
- onClick={[Function]}
120
- onFocus={[Function]}
121
- onResponderGrant={[Function]}
122
- onResponderMove={[Function]}
123
- onResponderRelease={[Function]}
124
- onResponderTerminate={[Function]}
125
- onResponderTerminationRequest={[Function]}
126
- onStartShouldSetResponder={[Function]}
127
- style={
128
- {
129
- "alignItems": "center",
130
- "flexDirection": "row",
131
- "justifyContent": "center",
132
- "paddingBottom": 8,
133
- "paddingLeft": 8,
134
- "paddingRight": 8,
135
- "paddingTop": 8,
136
- }
137
- }
138
- >
139
- <View
140
- style={
141
- {
142
- "alignItems": "center",
143
- "backgroundColor": "#E5E8EB",
144
- "borderRadius": 4,
145
- "height": 16,
146
- "justifyContent": "center",
147
- "marginRight": 8,
148
- "width": 16,
149
- }
150
- }
151
- />
152
- <View>
153
- <Text
154
- style={
155
- [
156
- [
157
- {
158
- "fontFamily": "Montserrat",
159
- "fontSize": 13,
160
- "lineHeight": 20.4,
161
- },
162
- ],
163
- {
164
- "color": "#1F2933",
165
- "textAlign": undefined,
166
- "width": "100%",
167
- },
168
- undefined,
169
- ]
170
- }
171
- >
172
- suiker
173
- </Text>
174
- </View>
175
- </View>
176
- `;