@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,51 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import render from 'react-test-renderer';
|
|
3
|
-
import {PressableIcon} from './pressable-icon.component';
|
|
4
|
-
import {Icon} from '../../../icons';
|
|
5
|
-
|
|
6
|
-
describe('pressable-icon test', () => {
|
|
7
|
-
it('render a default pressable icon', function () {
|
|
8
|
-
const tree = render
|
|
9
|
-
.create(
|
|
10
|
-
<PressableIcon
|
|
11
|
-
icon={<Icon style={'regular'} name={'thumb-up'} key="default" />}
|
|
12
|
-
/>
|
|
13
|
-
)
|
|
14
|
-
.toJSON();
|
|
15
|
-
expect(tree).toMatchSnapshot();
|
|
16
|
-
});
|
|
17
|
-
it('render a default disabled pressable icon', () => {
|
|
18
|
-
const tree = render
|
|
19
|
-
.create(
|
|
20
|
-
<PressableIcon
|
|
21
|
-
icon={<Icon style={'regular'} name={'mail'} key="disabled" />}
|
|
22
|
-
disabled={true}
|
|
23
|
-
/>
|
|
24
|
-
)
|
|
25
|
-
.toJSON();
|
|
26
|
-
expect(tree).toMatchSnapshot();
|
|
27
|
-
});
|
|
28
|
-
it('render an inverted pressable icon', () => {
|
|
29
|
-
const tree = render
|
|
30
|
-
.create(
|
|
31
|
-
<PressableIcon
|
|
32
|
-
icon={<Icon style={'regular'} name={'filter'} key="inverted" />}
|
|
33
|
-
inverted={true}
|
|
34
|
-
/>
|
|
35
|
-
)
|
|
36
|
-
.toJSON();
|
|
37
|
-
expect(tree).toMatchSnapshot();
|
|
38
|
-
});
|
|
39
|
-
it('render an inverted pressable icon that is disabled', () => {
|
|
40
|
-
const tree = render
|
|
41
|
-
.create(
|
|
42
|
-
<PressableIcon
|
|
43
|
-
icon={<Icon style={'solid'} name={'trash'} key="disabled inverted" />}
|
|
44
|
-
inverted={true}
|
|
45
|
-
disabled={true}
|
|
46
|
-
/>
|
|
47
|
-
)
|
|
48
|
-
.toJSON();
|
|
49
|
-
expect(tree).toMatchSnapshot();
|
|
50
|
-
});
|
|
51
|
-
});
|
|
@@ -1,557 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`test quick filter given the visual state is default AND isSelected is false ,return a white circle with a bleu border and a blue number 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
|
-
{
|
|
37
|
-
"alignItems": "center",
|
|
38
|
-
"borderRadius": 50,
|
|
39
|
-
"borderStyle": "solid",
|
|
40
|
-
"borderWidth": 2,
|
|
41
|
-
"height": 48,
|
|
42
|
-
"justifyContent": "center",
|
|
43
|
-
"overflow": "hidden",
|
|
44
|
-
"width": 48,
|
|
45
|
-
},
|
|
46
|
-
false,
|
|
47
|
-
false,
|
|
48
|
-
false,
|
|
49
|
-
false,
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
>
|
|
53
|
-
<Text
|
|
54
|
-
style={
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
{
|
|
58
|
-
"fontFamily": "MontserratBold",
|
|
59
|
-
"fontSize": 14,
|
|
60
|
-
"lineHeight": 22.4,
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
{
|
|
64
|
-
"color": "#FFFFFF",
|
|
65
|
-
"textAlign": "center",
|
|
66
|
-
"width": "100%",
|
|
67
|
-
},
|
|
68
|
-
undefined,
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
>
|
|
72
|
-
3
|
|
73
|
-
</Text>
|
|
74
|
-
</View>
|
|
75
|
-
`;
|
|
76
|
-
|
|
77
|
-
exports[`test quick filter given the visual state is default AND isSelected is true ,return a blue circle with a white number 1`] = `
|
|
78
|
-
<View
|
|
79
|
-
accessibilityState={
|
|
80
|
-
{
|
|
81
|
-
"busy": undefined,
|
|
82
|
-
"checked": undefined,
|
|
83
|
-
"disabled": undefined,
|
|
84
|
-
"expanded": undefined,
|
|
85
|
-
"selected": undefined,
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
accessibilityValue={
|
|
89
|
-
{
|
|
90
|
-
"max": undefined,
|
|
91
|
-
"min": undefined,
|
|
92
|
-
"now": undefined,
|
|
93
|
-
"text": undefined,
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
accessible={true}
|
|
97
|
-
collapsable={false}
|
|
98
|
-
focusable={true}
|
|
99
|
-
onBlur={[Function]}
|
|
100
|
-
onClick={[Function]}
|
|
101
|
-
onFocus={[Function]}
|
|
102
|
-
onResponderGrant={[Function]}
|
|
103
|
-
onResponderMove={[Function]}
|
|
104
|
-
onResponderRelease={[Function]}
|
|
105
|
-
onResponderTerminate={[Function]}
|
|
106
|
-
onResponderTerminationRequest={[Function]}
|
|
107
|
-
onStartShouldSetResponder={[Function]}
|
|
108
|
-
style={
|
|
109
|
-
[
|
|
110
|
-
{
|
|
111
|
-
"alignItems": "center",
|
|
112
|
-
"borderRadius": 50,
|
|
113
|
-
"borderStyle": "solid",
|
|
114
|
-
"borderWidth": 2,
|
|
115
|
-
"height": 48,
|
|
116
|
-
"justifyContent": "center",
|
|
117
|
-
"overflow": "hidden",
|
|
118
|
-
"width": 48,
|
|
119
|
-
},
|
|
120
|
-
false,
|
|
121
|
-
false,
|
|
122
|
-
false,
|
|
123
|
-
false,
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
>
|
|
127
|
-
<Text
|
|
128
|
-
style={
|
|
129
|
-
[
|
|
130
|
-
[
|
|
131
|
-
{
|
|
132
|
-
"fontFamily": "MontserratBold",
|
|
133
|
-
"fontSize": 14,
|
|
134
|
-
"lineHeight": 22.4,
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
{
|
|
138
|
-
"color": "#FFFFFF",
|
|
139
|
-
"textAlign": "center",
|
|
140
|
-
"width": "100%",
|
|
141
|
-
},
|
|
142
|
-
undefined,
|
|
143
|
-
]
|
|
144
|
-
}
|
|
145
|
-
>
|
|
146
|
-
3
|
|
147
|
-
</Text>
|
|
148
|
-
</View>
|
|
149
|
-
`;
|
|
150
|
-
|
|
151
|
-
exports[`test quick filter given the visual state is error AND isSelected is false ,return a white circle with a red border and a red number 1`] = `
|
|
152
|
-
<View
|
|
153
|
-
accessibilityState={
|
|
154
|
-
{
|
|
155
|
-
"busy": undefined,
|
|
156
|
-
"checked": undefined,
|
|
157
|
-
"disabled": undefined,
|
|
158
|
-
"expanded": undefined,
|
|
159
|
-
"selected": undefined,
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
accessibilityValue={
|
|
163
|
-
{
|
|
164
|
-
"max": undefined,
|
|
165
|
-
"min": undefined,
|
|
166
|
-
"now": undefined,
|
|
167
|
-
"text": undefined,
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
accessible={true}
|
|
171
|
-
collapsable={false}
|
|
172
|
-
focusable={true}
|
|
173
|
-
onBlur={[Function]}
|
|
174
|
-
onClick={[Function]}
|
|
175
|
-
onFocus={[Function]}
|
|
176
|
-
onResponderGrant={[Function]}
|
|
177
|
-
onResponderMove={[Function]}
|
|
178
|
-
onResponderRelease={[Function]}
|
|
179
|
-
onResponderTerminate={[Function]}
|
|
180
|
-
onResponderTerminationRequest={[Function]}
|
|
181
|
-
onStartShouldSetResponder={[Function]}
|
|
182
|
-
style={
|
|
183
|
-
[
|
|
184
|
-
{
|
|
185
|
-
"alignItems": "center",
|
|
186
|
-
"borderRadius": 50,
|
|
187
|
-
"borderStyle": "solid",
|
|
188
|
-
"borderWidth": 2,
|
|
189
|
-
"height": 48,
|
|
190
|
-
"justifyContent": "center",
|
|
191
|
-
"overflow": "hidden",
|
|
192
|
-
"width": 48,
|
|
193
|
-
},
|
|
194
|
-
false,
|
|
195
|
-
false,
|
|
196
|
-
false,
|
|
197
|
-
false,
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
>
|
|
201
|
-
<Text
|
|
202
|
-
style={
|
|
203
|
-
[
|
|
204
|
-
[
|
|
205
|
-
{
|
|
206
|
-
"fontFamily": "MontserratBold",
|
|
207
|
-
"fontSize": 14,
|
|
208
|
-
"lineHeight": 22.4,
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
{
|
|
212
|
-
"color": "#FFFFFF",
|
|
213
|
-
"textAlign": "center",
|
|
214
|
-
"width": "100%",
|
|
215
|
-
},
|
|
216
|
-
undefined,
|
|
217
|
-
]
|
|
218
|
-
}
|
|
219
|
-
>
|
|
220
|
-
3
|
|
221
|
-
</Text>
|
|
222
|
-
</View>
|
|
223
|
-
`;
|
|
224
|
-
|
|
225
|
-
exports[`test quick filter given the visual state is error AND isSelected is true ,return a red circle with a white number 1`] = `
|
|
226
|
-
<View
|
|
227
|
-
accessibilityState={
|
|
228
|
-
{
|
|
229
|
-
"busy": undefined,
|
|
230
|
-
"checked": undefined,
|
|
231
|
-
"disabled": undefined,
|
|
232
|
-
"expanded": undefined,
|
|
233
|
-
"selected": undefined,
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
accessibilityValue={
|
|
237
|
-
{
|
|
238
|
-
"max": undefined,
|
|
239
|
-
"min": undefined,
|
|
240
|
-
"now": undefined,
|
|
241
|
-
"text": undefined,
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
accessible={true}
|
|
245
|
-
collapsable={false}
|
|
246
|
-
focusable={true}
|
|
247
|
-
onBlur={[Function]}
|
|
248
|
-
onClick={[Function]}
|
|
249
|
-
onFocus={[Function]}
|
|
250
|
-
onResponderGrant={[Function]}
|
|
251
|
-
onResponderMove={[Function]}
|
|
252
|
-
onResponderRelease={[Function]}
|
|
253
|
-
onResponderTerminate={[Function]}
|
|
254
|
-
onResponderTerminationRequest={[Function]}
|
|
255
|
-
onStartShouldSetResponder={[Function]}
|
|
256
|
-
style={
|
|
257
|
-
[
|
|
258
|
-
{
|
|
259
|
-
"alignItems": "center",
|
|
260
|
-
"borderRadius": 50,
|
|
261
|
-
"borderStyle": "solid",
|
|
262
|
-
"borderWidth": 2,
|
|
263
|
-
"height": 48,
|
|
264
|
-
"justifyContent": "center",
|
|
265
|
-
"overflow": "hidden",
|
|
266
|
-
"width": 48,
|
|
267
|
-
},
|
|
268
|
-
false,
|
|
269
|
-
false,
|
|
270
|
-
false,
|
|
271
|
-
false,
|
|
272
|
-
]
|
|
273
|
-
}
|
|
274
|
-
>
|
|
275
|
-
<ActivityIndicator
|
|
276
|
-
color="#FFFFFF"
|
|
277
|
-
/>
|
|
278
|
-
</View>
|
|
279
|
-
`;
|
|
280
|
-
|
|
281
|
-
exports[`test quick filter given the visual state is success AND isSelected is false ,return a white circle with a green border and a green number 1`] = `
|
|
282
|
-
<View
|
|
283
|
-
accessibilityState={
|
|
284
|
-
{
|
|
285
|
-
"busy": undefined,
|
|
286
|
-
"checked": undefined,
|
|
287
|
-
"disabled": undefined,
|
|
288
|
-
"expanded": undefined,
|
|
289
|
-
"selected": undefined,
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
accessibilityValue={
|
|
293
|
-
{
|
|
294
|
-
"max": undefined,
|
|
295
|
-
"min": undefined,
|
|
296
|
-
"now": undefined,
|
|
297
|
-
"text": undefined,
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
accessible={true}
|
|
301
|
-
collapsable={false}
|
|
302
|
-
focusable={true}
|
|
303
|
-
onBlur={[Function]}
|
|
304
|
-
onClick={[Function]}
|
|
305
|
-
onFocus={[Function]}
|
|
306
|
-
onResponderGrant={[Function]}
|
|
307
|
-
onResponderMove={[Function]}
|
|
308
|
-
onResponderRelease={[Function]}
|
|
309
|
-
onResponderTerminate={[Function]}
|
|
310
|
-
onResponderTerminationRequest={[Function]}
|
|
311
|
-
onStartShouldSetResponder={[Function]}
|
|
312
|
-
style={
|
|
313
|
-
[
|
|
314
|
-
{
|
|
315
|
-
"alignItems": "center",
|
|
316
|
-
"borderRadius": 50,
|
|
317
|
-
"borderStyle": "solid",
|
|
318
|
-
"borderWidth": 2,
|
|
319
|
-
"height": 48,
|
|
320
|
-
"justifyContent": "center",
|
|
321
|
-
"overflow": "hidden",
|
|
322
|
-
"width": 48,
|
|
323
|
-
},
|
|
324
|
-
false,
|
|
325
|
-
false,
|
|
326
|
-
false,
|
|
327
|
-
false,
|
|
328
|
-
]
|
|
329
|
-
}
|
|
330
|
-
>
|
|
331
|
-
<Text
|
|
332
|
-
style={
|
|
333
|
-
[
|
|
334
|
-
[
|
|
335
|
-
{
|
|
336
|
-
"fontFamily": "MontserratBold",
|
|
337
|
-
"fontSize": 14,
|
|
338
|
-
"lineHeight": 22.4,
|
|
339
|
-
},
|
|
340
|
-
],
|
|
341
|
-
{
|
|
342
|
-
"color": "#FFFFFF",
|
|
343
|
-
"textAlign": "center",
|
|
344
|
-
"width": "100%",
|
|
345
|
-
},
|
|
346
|
-
undefined,
|
|
347
|
-
]
|
|
348
|
-
}
|
|
349
|
-
>
|
|
350
|
-
3
|
|
351
|
-
</Text>
|
|
352
|
-
</View>
|
|
353
|
-
`;
|
|
354
|
-
|
|
355
|
-
exports[`test quick filter given the visual state is success AND isSelected is true ,return a green circle with a white number 1`] = `
|
|
356
|
-
<View
|
|
357
|
-
accessibilityState={
|
|
358
|
-
{
|
|
359
|
-
"busy": undefined,
|
|
360
|
-
"checked": undefined,
|
|
361
|
-
"disabled": undefined,
|
|
362
|
-
"expanded": undefined,
|
|
363
|
-
"selected": undefined,
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
accessibilityValue={
|
|
367
|
-
{
|
|
368
|
-
"max": undefined,
|
|
369
|
-
"min": undefined,
|
|
370
|
-
"now": undefined,
|
|
371
|
-
"text": undefined,
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
accessible={true}
|
|
375
|
-
collapsable={false}
|
|
376
|
-
focusable={true}
|
|
377
|
-
onBlur={[Function]}
|
|
378
|
-
onClick={[Function]}
|
|
379
|
-
onFocus={[Function]}
|
|
380
|
-
onResponderGrant={[Function]}
|
|
381
|
-
onResponderMove={[Function]}
|
|
382
|
-
onResponderRelease={[Function]}
|
|
383
|
-
onResponderTerminate={[Function]}
|
|
384
|
-
onResponderTerminationRequest={[Function]}
|
|
385
|
-
onStartShouldSetResponder={[Function]}
|
|
386
|
-
style={
|
|
387
|
-
[
|
|
388
|
-
{
|
|
389
|
-
"alignItems": "center",
|
|
390
|
-
"borderRadius": 50,
|
|
391
|
-
"borderStyle": "solid",
|
|
392
|
-
"borderWidth": 2,
|
|
393
|
-
"height": 48,
|
|
394
|
-
"justifyContent": "center",
|
|
395
|
-
"overflow": "hidden",
|
|
396
|
-
"width": 48,
|
|
397
|
-
},
|
|
398
|
-
false,
|
|
399
|
-
false,
|
|
400
|
-
false,
|
|
401
|
-
false,
|
|
402
|
-
]
|
|
403
|
-
}
|
|
404
|
-
>
|
|
405
|
-
<Text
|
|
406
|
-
style={
|
|
407
|
-
[
|
|
408
|
-
[
|
|
409
|
-
{
|
|
410
|
-
"fontFamily": "MontserratBold",
|
|
411
|
-
"fontSize": 14,
|
|
412
|
-
"lineHeight": 22.4,
|
|
413
|
-
},
|
|
414
|
-
],
|
|
415
|
-
{
|
|
416
|
-
"color": "#FFFFFF",
|
|
417
|
-
"textAlign": "center",
|
|
418
|
-
"width": "100%",
|
|
419
|
-
},
|
|
420
|
-
undefined,
|
|
421
|
-
]
|
|
422
|
-
}
|
|
423
|
-
>
|
|
424
|
-
3
|
|
425
|
-
</Text>
|
|
426
|
-
</View>
|
|
427
|
-
`;
|
|
428
|
-
|
|
429
|
-
exports[`test quick filter given the visual state is warning AND isSelected is false ,return a white circle with an orange border and an orange number 1`] = `
|
|
430
|
-
<View
|
|
431
|
-
accessibilityState={
|
|
432
|
-
{
|
|
433
|
-
"busy": undefined,
|
|
434
|
-
"checked": undefined,
|
|
435
|
-
"disabled": undefined,
|
|
436
|
-
"expanded": undefined,
|
|
437
|
-
"selected": undefined,
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
accessibilityValue={
|
|
441
|
-
{
|
|
442
|
-
"max": undefined,
|
|
443
|
-
"min": undefined,
|
|
444
|
-
"now": undefined,
|
|
445
|
-
"text": undefined,
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
accessible={true}
|
|
449
|
-
collapsable={false}
|
|
450
|
-
focusable={true}
|
|
451
|
-
onBlur={[Function]}
|
|
452
|
-
onClick={[Function]}
|
|
453
|
-
onFocus={[Function]}
|
|
454
|
-
onResponderGrant={[Function]}
|
|
455
|
-
onResponderMove={[Function]}
|
|
456
|
-
onResponderRelease={[Function]}
|
|
457
|
-
onResponderTerminate={[Function]}
|
|
458
|
-
onResponderTerminationRequest={[Function]}
|
|
459
|
-
onStartShouldSetResponder={[Function]}
|
|
460
|
-
style={
|
|
461
|
-
[
|
|
462
|
-
{
|
|
463
|
-
"alignItems": "center",
|
|
464
|
-
"borderRadius": 50,
|
|
465
|
-
"borderStyle": "solid",
|
|
466
|
-
"borderWidth": 2,
|
|
467
|
-
"height": 48,
|
|
468
|
-
"justifyContent": "center",
|
|
469
|
-
"overflow": "hidden",
|
|
470
|
-
"width": 48,
|
|
471
|
-
},
|
|
472
|
-
false,
|
|
473
|
-
false,
|
|
474
|
-
false,
|
|
475
|
-
false,
|
|
476
|
-
]
|
|
477
|
-
}
|
|
478
|
-
>
|
|
479
|
-
<Text
|
|
480
|
-
style={
|
|
481
|
-
[
|
|
482
|
-
[
|
|
483
|
-
{
|
|
484
|
-
"fontFamily": "MontserratBold",
|
|
485
|
-
"fontSize": 14,
|
|
486
|
-
"lineHeight": 22.4,
|
|
487
|
-
},
|
|
488
|
-
],
|
|
489
|
-
{
|
|
490
|
-
"color": "#FFFFFF",
|
|
491
|
-
"textAlign": "center",
|
|
492
|
-
"width": "100%",
|
|
493
|
-
},
|
|
494
|
-
undefined,
|
|
495
|
-
]
|
|
496
|
-
}
|
|
497
|
-
>
|
|
498
|
-
3
|
|
499
|
-
</Text>
|
|
500
|
-
</View>
|
|
501
|
-
`;
|
|
502
|
-
|
|
503
|
-
exports[`test quick filter given the visual state is warning AND isSelected is true ,return an orange circle with a white number 1`] = `
|
|
504
|
-
<View
|
|
505
|
-
accessibilityState={
|
|
506
|
-
{
|
|
507
|
-
"busy": undefined,
|
|
508
|
-
"checked": undefined,
|
|
509
|
-
"disabled": undefined,
|
|
510
|
-
"expanded": undefined,
|
|
511
|
-
"selected": undefined,
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
accessibilityValue={
|
|
515
|
-
{
|
|
516
|
-
"max": undefined,
|
|
517
|
-
"min": undefined,
|
|
518
|
-
"now": undefined,
|
|
519
|
-
"text": undefined,
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
accessible={true}
|
|
523
|
-
collapsable={false}
|
|
524
|
-
focusable={true}
|
|
525
|
-
onBlur={[Function]}
|
|
526
|
-
onClick={[Function]}
|
|
527
|
-
onFocus={[Function]}
|
|
528
|
-
onResponderGrant={[Function]}
|
|
529
|
-
onResponderMove={[Function]}
|
|
530
|
-
onResponderRelease={[Function]}
|
|
531
|
-
onResponderTerminate={[Function]}
|
|
532
|
-
onResponderTerminationRequest={[Function]}
|
|
533
|
-
onStartShouldSetResponder={[Function]}
|
|
534
|
-
style={
|
|
535
|
-
[
|
|
536
|
-
{
|
|
537
|
-
"alignItems": "center",
|
|
538
|
-
"borderRadius": 50,
|
|
539
|
-
"borderStyle": "solid",
|
|
540
|
-
"borderWidth": 2,
|
|
541
|
-
"height": 48,
|
|
542
|
-
"justifyContent": "center",
|
|
543
|
-
"overflow": "hidden",
|
|
544
|
-
"width": 48,
|
|
545
|
-
},
|
|
546
|
-
false,
|
|
547
|
-
false,
|
|
548
|
-
false,
|
|
549
|
-
false,
|
|
550
|
-
]
|
|
551
|
-
}
|
|
552
|
-
>
|
|
553
|
-
<ActivityIndicator
|
|
554
|
-
color="#FFFFFF"
|
|
555
|
-
/>
|
|
556
|
-
</View>
|
|
557
|
-
`;
|