@tactics/toddle-styleguide 1.2.3 → 1.2.5
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 +202 -191
- package/index.d.ts +2 -1
- package/index.tsx +2 -0
- package/package.json +2 -2
- package/src/components/atoms/backdrop/backdrop.component.d.ts +2 -1
- package/src/components/atoms/backdrop/backdrop.component.tsx +8 -2
- package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +1821 -641
- package/src/components/atoms/text-input/text-input.component.d.ts +4 -5
- package/src/components/atoms/text-input/text-input.component.tsx +9 -13
- package/src/components/atoms/text-input/text-input.preview.tsx +5 -5
- package/src/components/atoms/text-input/text-input.test.js +4 -4
- package/src/components/molecules/avatar/__snapshots__/avatar.test.js.snap +70 -62
- package/src/components/molecules/avatar/avatar.component.d.ts +2 -1
- package/src/components/molecules/avatar/avatar.component.tsx +22 -11
- package/src/components/molecules/avatar/avatar.preview.tsx +58 -44
- package/src/components/molecules/avatar/avatar.styles.d.ts +54 -15
- package/src/components/molecules/avatar/avatar.styles.js +33 -5
- package/src/components/molecules/button/__snapshots__/button.test.js.snap +144 -0
- package/src/components/molecules/button/button.component.d.ts +6 -4
- package/src/components/molecules/button/button.component.tsx +30 -9
- package/src/components/molecules/button/button.preview.tsx +16 -1
- package/src/components/molecules/button/button.styles.d.ts +13 -16
- package/src/components/molecules/button/button.styles.js +2 -4
- package/src/components/molecules/button/button.test.js +12 -0
- package/src/components/molecules/date-input/date-input.preview.tsx +25 -23
- package/src/components/molecules/message-input/__snapshots__/message-input.test.js.snap +4 -0
- package/src/components/molecules/message-input/message-input.component.d.ts +4 -6
- package/src/components/molecules/message-input/message-input.component.tsx +10 -12
- package/src/components/molecules/message-input/message-input.preview.tsx +28 -15
- package/src/components/molecules/password-input/password-input.component.d.ts +4 -6
- package/src/components/molecules/password-input/password-input.component.tsx +11 -15
- package/src/components/molecules/swipe/__snapshots__/swipe.test.js.snap +263 -420
- package/src/components/molecules/swipe/swipe.component.d.ts +4 -4
- package/src/components/molecules/swipe/swipe.component.tsx +47 -20
- package/src/components/molecules/swipe/swipe.preview.tsx +111 -51
- package/src/components/molecules/swipe/swipe.styles.d.ts +28 -0
- package/src/components/molecules/swipe/swipe.styles.js +32 -0
- package/src/components/molecules/swipe/swipe.test.js +1 -1
- package/src/components/molecules/tag/__snapshots__/tag.test.js.snap +10 -10
- package/src/components/molecules/tag/tag.component.d.ts +3 -8
- package/src/components/molecules/tag/tag.component.tsx +7 -13
- package/src/components/molecules/tag/tag.preview.tsx +22 -19
- package/src/components/molecules/tag/tag.styles.js +4 -2
- package/src/components/molecules/tag/tag.test.js +10 -2
- package/src/components/molecules/time-picker/__snapshots__/time-picker.test.js.snap +1868 -1776
- package/src/components/molecules/time-picker/time-picker.component.tsx +49 -23
- package/src/components/molecules/time-picker/time-picker.preview.tsx +5 -4
- package/src/components/molecules/time-picker/time-picker.styles.d.ts +16 -4
- package/src/components/molecules/time-picker/time-picker.styles.js +18 -6
- package/src/components/molecules/timestamp/__snapshots__/timestamp.test.js.snap +1 -1
- package/src/components/molecules/timestamp/timestamp.component.tsx +0 -2
- package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +174 -162
- package/src/components/organisms/contact-item/__snapshots__/contact-item.test.js.snap +70 -127
- package/src/components/organisms/contact-item/contact-item.component.tsx +10 -9
- package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +97 -89
- package/src/components/organisms/person-info-card/__snapshots__/person-info-card.test.js.snap +233 -209
- package/src/components/organisms/text-bubble/__snapshots__/text-bubble.test.js.snap +7 -7
- package/src/components/templates/modal/modal.component.tsx +0 -1
- package/src/components/templates/popover/components/modal/modal.component.tsx +0 -1
- package/src/components/templates/popover/components/modal/modal.styles.d.ts +2 -1
- package/src/components/templates/popover/components/modal/modal.styles.js +2 -2
- package/src/components/templates/popover/popover.component.tsx +27 -14
- package/src/components/templates/popover/popover.preview.tsx +63 -97
- package/src/components/templates/popover/popover.styles.d.ts +1 -1
- package/src/components/templates/popover/popover.styles.js +3 -1
- package/src/components/templates/popover-action/popover-action.component.d.ts +8 -0
- package/src/components/templates/popover-action/popover-action.component.tsx +119 -0
- package/src/components/templates/popover-action/popover-action.preview.d.ts +1 -0
- package/src/components/templates/popover-action/popover-action.preview.tsx +142 -0
- package/src/components/templates/popover-action/popover-action.styles.d.ts +26 -0
- package/src/components/templates/popover-action/popover-action.styles.js +31 -0
- package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +5 -0
- package/src/utilities/toddle-datetime/toddle-datetime.class.tsx +23 -0
- package/src/utilities/toddle-datetime/toddle-datetime.preview.tsx +15 -1
- package/src/utilities/toddle-datetime/toddle-datetime.test.js +10 -0
- package/src/components/molecules/swipe/Swipe.styles.d.ts +0 -7
- package/src/components/molecules/swipe/Swipe.styles.js +0 -10
|
@@ -42,45 +42,49 @@ exports[`test contact-item renders a contact-item with a red avatar and an extra
|
|
|
42
42
|
}
|
|
43
43
|
>
|
|
44
44
|
<View
|
|
45
|
-
style={
|
|
46
|
-
[
|
|
47
|
-
{
|
|
48
|
-
"alignItems": "center",
|
|
49
|
-
"backgroundColor": "#F16868",
|
|
50
|
-
"justifyContent": "center",
|
|
51
|
-
"overflow": "hidden",
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"borderRadius": 20,
|
|
55
|
-
"height": 40,
|
|
56
|
-
"width": 40,
|
|
57
|
-
},
|
|
58
|
-
false,
|
|
59
|
-
false,
|
|
60
|
-
]
|
|
61
|
-
}
|
|
45
|
+
style={null}
|
|
62
46
|
>
|
|
63
|
-
<
|
|
47
|
+
<View
|
|
64
48
|
style={
|
|
65
49
|
[
|
|
66
|
-
[
|
|
67
|
-
{
|
|
68
|
-
"fontFamily": "SourceSansProBold",
|
|
69
|
-
"fontSize": 18,
|
|
70
|
-
"lineHeight": 22.6,
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
50
|
{
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
51
|
+
"alignItems": "center",
|
|
52
|
+
"backgroundColor": "#F16868",
|
|
53
|
+
"justifyContent": "center",
|
|
54
|
+
"overflow": "hidden",
|
|
77
55
|
},
|
|
78
|
-
|
|
56
|
+
{
|
|
57
|
+
"borderRadius": 20,
|
|
58
|
+
"height": 40,
|
|
59
|
+
"width": 40,
|
|
60
|
+
},
|
|
61
|
+
false,
|
|
62
|
+
false,
|
|
79
63
|
]
|
|
80
64
|
}
|
|
81
65
|
>
|
|
82
|
-
|
|
83
|
-
|
|
66
|
+
<Text
|
|
67
|
+
style={
|
|
68
|
+
[
|
|
69
|
+
[
|
|
70
|
+
{
|
|
71
|
+
"fontFamily": "SourceSansProBold",
|
|
72
|
+
"fontSize": 18,
|
|
73
|
+
"lineHeight": 22.6,
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
{
|
|
77
|
+
"color": "#FFFFFF",
|
|
78
|
+
"textAlign": "center",
|
|
79
|
+
"width": "100%",
|
|
80
|
+
},
|
|
81
|
+
undefined,
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
>
|
|
85
|
+
JD
|
|
86
|
+
</Text>
|
|
87
|
+
</View>
|
|
84
88
|
</View>
|
|
85
89
|
<View
|
|
86
90
|
style={
|
|
@@ -180,71 +184,6 @@ exports[`test contact-item renders a contact-item with a red avatar and an extra
|
|
|
180
184
|
Geblokkeerd
|
|
181
185
|
</Text>
|
|
182
186
|
</View>
|
|
183
|
-
<View
|
|
184
|
-
style={
|
|
185
|
-
{
|
|
186
|
-
"marginLeft": 8,
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
>
|
|
190
|
-
<RNSVGSvgView
|
|
191
|
-
align="xMidYMid"
|
|
192
|
-
bbHeight="20"
|
|
193
|
-
bbWidth="20"
|
|
194
|
-
fill="none"
|
|
195
|
-
focusable={false}
|
|
196
|
-
height={20}
|
|
197
|
-
meetOrSlice={0}
|
|
198
|
-
minX={0}
|
|
199
|
-
minY={0}
|
|
200
|
-
style={
|
|
201
|
-
[
|
|
202
|
-
{
|
|
203
|
-
"backgroundColor": "transparent",
|
|
204
|
-
"borderWidth": 0,
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"flex": 0,
|
|
208
|
-
"height": 20,
|
|
209
|
-
"width": 20,
|
|
210
|
-
},
|
|
211
|
-
]
|
|
212
|
-
}
|
|
213
|
-
vbHeight={19}
|
|
214
|
-
vbWidth={11}
|
|
215
|
-
width={20}
|
|
216
|
-
>
|
|
217
|
-
<RNSVGGroup
|
|
218
|
-
fill={null}
|
|
219
|
-
propList={
|
|
220
|
-
[
|
|
221
|
-
"fill",
|
|
222
|
-
]
|
|
223
|
-
}
|
|
224
|
-
>
|
|
225
|
-
<RNSVGPath
|
|
226
|
-
d="M1.75 1.625L9.33333 9.5L1.75 17.375"
|
|
227
|
-
propList={
|
|
228
|
-
[
|
|
229
|
-
"stroke",
|
|
230
|
-
"strokeWidth",
|
|
231
|
-
"strokeLinecap",
|
|
232
|
-
"strokeLinejoin",
|
|
233
|
-
]
|
|
234
|
-
}
|
|
235
|
-
stroke={
|
|
236
|
-
{
|
|
237
|
-
"payload": 4279837036,
|
|
238
|
-
"type": 0,
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
strokeLinecap={1}
|
|
242
|
-
strokeLinejoin={1}
|
|
243
|
-
strokeWidth="2"
|
|
244
|
-
/>
|
|
245
|
-
</RNSVGGroup>
|
|
246
|
-
</RNSVGSvgView>
|
|
247
|
-
</View>
|
|
248
187
|
</View>
|
|
249
188
|
</View>
|
|
250
189
|
`;
|
|
@@ -291,45 +230,49 @@ exports[`test contact-item renders a contact-item, with an avatar 1`] = `
|
|
|
291
230
|
}
|
|
292
231
|
>
|
|
293
232
|
<View
|
|
294
|
-
style={
|
|
295
|
-
[
|
|
296
|
-
{
|
|
297
|
-
"alignItems": "center",
|
|
298
|
-
"backgroundColor": "#647ACB",
|
|
299
|
-
"justifyContent": "center",
|
|
300
|
-
"overflow": "hidden",
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"borderRadius": 20,
|
|
304
|
-
"height": 40,
|
|
305
|
-
"width": 40,
|
|
306
|
-
},
|
|
307
|
-
false,
|
|
308
|
-
false,
|
|
309
|
-
]
|
|
310
|
-
}
|
|
233
|
+
style={null}
|
|
311
234
|
>
|
|
312
|
-
<
|
|
235
|
+
<View
|
|
313
236
|
style={
|
|
314
237
|
[
|
|
315
|
-
[
|
|
316
|
-
{
|
|
317
|
-
"fontFamily": "SourceSansProBold",
|
|
318
|
-
"fontSize": 18,
|
|
319
|
-
"lineHeight": 22.6,
|
|
320
|
-
},
|
|
321
|
-
],
|
|
322
238
|
{
|
|
323
|
-
"
|
|
324
|
-
"
|
|
325
|
-
"
|
|
239
|
+
"alignItems": "center",
|
|
240
|
+
"backgroundColor": "#647ACB",
|
|
241
|
+
"justifyContent": "center",
|
|
242
|
+
"overflow": "hidden",
|
|
326
243
|
},
|
|
327
|
-
|
|
244
|
+
{
|
|
245
|
+
"borderRadius": 20,
|
|
246
|
+
"height": 40,
|
|
247
|
+
"width": 40,
|
|
248
|
+
},
|
|
249
|
+
false,
|
|
250
|
+
false,
|
|
328
251
|
]
|
|
329
252
|
}
|
|
330
253
|
>
|
|
331
|
-
|
|
332
|
-
|
|
254
|
+
<Text
|
|
255
|
+
style={
|
|
256
|
+
[
|
|
257
|
+
[
|
|
258
|
+
{
|
|
259
|
+
"fontFamily": "SourceSansProBold",
|
|
260
|
+
"fontSize": 18,
|
|
261
|
+
"lineHeight": 22.6,
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
{
|
|
265
|
+
"color": "#FFFFFF",
|
|
266
|
+
"textAlign": "center",
|
|
267
|
+
"width": "100%",
|
|
268
|
+
},
|
|
269
|
+
undefined,
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
>
|
|
273
|
+
??
|
|
274
|
+
</Text>
|
|
275
|
+
</View>
|
|
333
276
|
</View>
|
|
334
277
|
<View
|
|
335
278
|
style={
|
|
@@ -55,15 +55,16 @@ const ContactItem = ({name, label, onPress, isBlocked}: ContactItemProps) => {
|
|
|
55
55
|
</View>
|
|
56
56
|
{isBlocked ? (
|
|
57
57
|
<Pill label={'Geblokkeerd'} visualState={VisualState.ERROR} />
|
|
58
|
-
) :
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
) : (
|
|
59
|
+
<View style={styles.iconSquare}>
|
|
60
|
+
<Icon
|
|
61
|
+
style={'regular'}
|
|
62
|
+
name={'chevron-right'}
|
|
63
|
+
size={20}
|
|
64
|
+
color={context.colors.main['0']}
|
|
65
|
+
/>
|
|
66
|
+
</View>
|
|
67
|
+
)}
|
|
67
68
|
</View>
|
|
68
69
|
</Pressable>
|
|
69
70
|
);
|
package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap
CHANGED
|
@@ -47,52 +47,56 @@ exports[`My child list item component test Should render your child but with an
|
|
|
47
47
|
}
|
|
48
48
|
>
|
|
49
49
|
<View
|
|
50
|
-
style={
|
|
51
|
-
[
|
|
52
|
-
{
|
|
53
|
-
"alignItems": "center",
|
|
54
|
-
"backgroundColor": "#E5E8EB",
|
|
55
|
-
"justifyContent": "center",
|
|
56
|
-
"overflow": "hidden",
|
|
57
|
-
},
|
|
58
|
-
false,
|
|
59
|
-
{
|
|
60
|
-
"borderRadius": 36,
|
|
61
|
-
"height": 72,
|
|
62
|
-
"width": 72,
|
|
63
|
-
},
|
|
64
|
-
false,
|
|
65
|
-
]
|
|
66
|
-
}
|
|
50
|
+
style={null}
|
|
67
51
|
>
|
|
68
52
|
<View
|
|
69
53
|
style={
|
|
70
54
|
[
|
|
71
55
|
{
|
|
56
|
+
"alignItems": "center",
|
|
72
57
|
"backgroundColor": "#E5E8EB",
|
|
58
|
+
"justifyContent": "center",
|
|
59
|
+
"overflow": "hidden",
|
|
73
60
|
},
|
|
74
|
-
|
|
75
|
-
{
|
|
76
|
-
"height": "100%",
|
|
77
|
-
"width": "100%",
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
/>
|
|
83
|
-
<Image
|
|
84
|
-
source={1}
|
|
85
|
-
style={
|
|
86
|
-
[
|
|
61
|
+
false,
|
|
87
62
|
{
|
|
88
|
-
"borderRadius":
|
|
89
|
-
"height":
|
|
90
|
-
"
|
|
91
|
-
"width": "90%",
|
|
63
|
+
"borderRadius": 36,
|
|
64
|
+
"height": 72,
|
|
65
|
+
"width": 72,
|
|
92
66
|
},
|
|
67
|
+
false,
|
|
93
68
|
]
|
|
94
69
|
}
|
|
95
|
-
|
|
70
|
+
>
|
|
71
|
+
<View
|
|
72
|
+
style={
|
|
73
|
+
[
|
|
74
|
+
{
|
|
75
|
+
"backgroundColor": "#E5E8EB",
|
|
76
|
+
},
|
|
77
|
+
[
|
|
78
|
+
{
|
|
79
|
+
"height": "100%",
|
|
80
|
+
"width": "100%",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
/>
|
|
86
|
+
<Image
|
|
87
|
+
source={1}
|
|
88
|
+
style={
|
|
89
|
+
[
|
|
90
|
+
{
|
|
91
|
+
"borderRadius": 50,
|
|
92
|
+
"height": "90%",
|
|
93
|
+
"position": "absolute",
|
|
94
|
+
"width": "90%",
|
|
95
|
+
},
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
/>
|
|
99
|
+
</View>
|
|
96
100
|
</View>
|
|
97
101
|
<View
|
|
98
102
|
style={
|
|
@@ -320,69 +324,73 @@ exports[`My child list item component test Should render your child that has an
|
|
|
320
324
|
}
|
|
321
325
|
>
|
|
322
326
|
<View
|
|
323
|
-
style={
|
|
324
|
-
[
|
|
325
|
-
{
|
|
326
|
-
"alignItems": "center",
|
|
327
|
-
"backgroundColor": "#647ACB",
|
|
328
|
-
"justifyContent": "center",
|
|
329
|
-
"overflow": "hidden",
|
|
330
|
-
},
|
|
331
|
-
false,
|
|
332
|
-
{
|
|
333
|
-
"borderRadius": 36,
|
|
334
|
-
"height": 72,
|
|
335
|
-
"width": 72,
|
|
336
|
-
},
|
|
337
|
-
false,
|
|
338
|
-
]
|
|
339
|
-
}
|
|
327
|
+
style={null}
|
|
340
328
|
>
|
|
341
|
-
<
|
|
342
|
-
proxiedProperties={
|
|
343
|
-
{
|
|
344
|
-
"colors": [
|
|
345
|
-
4281681564,
|
|
346
|
-
4284775115,
|
|
347
|
-
4292481661,
|
|
348
|
-
],
|
|
349
|
-
"endPoint": [
|
|
350
|
-
0.9,
|
|
351
|
-
0.9,
|
|
352
|
-
],
|
|
353
|
-
"locations": [
|
|
354
|
-
0,
|
|
355
|
-
0.55,
|
|
356
|
-
1,
|
|
357
|
-
],
|
|
358
|
-
"startPoint": [
|
|
359
|
-
0.1,
|
|
360
|
-
0.1,
|
|
361
|
-
],
|
|
362
|
-
}
|
|
363
|
-
}
|
|
329
|
+
<View
|
|
364
330
|
style={
|
|
365
331
|
[
|
|
366
332
|
{
|
|
367
|
-
"
|
|
368
|
-
"
|
|
333
|
+
"alignItems": "center",
|
|
334
|
+
"backgroundColor": "#647ACB",
|
|
335
|
+
"justifyContent": "center",
|
|
336
|
+
"overflow": "hidden",
|
|
369
337
|
},
|
|
370
|
-
|
|
371
|
-
}
|
|
372
|
-
/>
|
|
373
|
-
<Image
|
|
374
|
-
source={1}
|
|
375
|
-
style={
|
|
376
|
-
[
|
|
338
|
+
false,
|
|
377
339
|
{
|
|
378
|
-
"borderRadius":
|
|
379
|
-
"height":
|
|
380
|
-
"
|
|
381
|
-
"width": "90%",
|
|
340
|
+
"borderRadius": 36,
|
|
341
|
+
"height": 72,
|
|
342
|
+
"width": 72,
|
|
382
343
|
},
|
|
344
|
+
false,
|
|
383
345
|
]
|
|
384
346
|
}
|
|
385
|
-
|
|
347
|
+
>
|
|
348
|
+
<ViewManagerAdapter_ExpoLinearGradient
|
|
349
|
+
proxiedProperties={
|
|
350
|
+
{
|
|
351
|
+
"colors": [
|
|
352
|
+
4281681564,
|
|
353
|
+
4284775115,
|
|
354
|
+
4292481661,
|
|
355
|
+
],
|
|
356
|
+
"endPoint": [
|
|
357
|
+
0.9,
|
|
358
|
+
0.9,
|
|
359
|
+
],
|
|
360
|
+
"locations": [
|
|
361
|
+
0,
|
|
362
|
+
0.55,
|
|
363
|
+
1,
|
|
364
|
+
],
|
|
365
|
+
"startPoint": [
|
|
366
|
+
0.1,
|
|
367
|
+
0.1,
|
|
368
|
+
],
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
style={
|
|
372
|
+
[
|
|
373
|
+
{
|
|
374
|
+
"height": "100%",
|
|
375
|
+
"width": "100%",
|
|
376
|
+
},
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
|
+
/>
|
|
380
|
+
<Image
|
|
381
|
+
source={1}
|
|
382
|
+
style={
|
|
383
|
+
[
|
|
384
|
+
{
|
|
385
|
+
"borderRadius": 50,
|
|
386
|
+
"height": "90%",
|
|
387
|
+
"position": "absolute",
|
|
388
|
+
"width": "90%",
|
|
389
|
+
},
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
/>
|
|
393
|
+
</View>
|
|
386
394
|
</View>
|
|
387
395
|
<View
|
|
388
396
|
style={
|