@tactics/toddle-styleguide 5.3.1 → 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 (178) hide show
  1. package/App.tsx +0 -19
  2. package/app.json +8 -4
  3. package/index.tsx +0 -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/date-input/date-input.component.d.ts +2 -2
  12. package/src/components/molecules/date-input/date-input.component.tsx +3 -3
  13. package/src/components/molecules/date-input/date-input.preview.tsx +5 -5
  14. package/src/components/molecules/day/day.component.d.ts +3 -3
  15. package/src/components/molecules/day/day.component.tsx +22 -17
  16. package/src/components/molecules/selectable-list-item/selectable-list-item.component.tsx +12 -7
  17. package/src/components/molecules/timestamp/timestamp.component.d.ts +2 -2
  18. package/src/components/molecules/timestamp/timestamp.component.tsx +12 -5
  19. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +2 -2
  20. package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.tsx +5 -5
  21. package/src/components/organisms/journal-entry/journal-entry.component.d.ts +3 -3
  22. package/src/components/organisms/journal-entry/journal-entry.component.tsx +7 -3
  23. package/src/components/organisms/journal-entry/journal-entry.preview.tsx +7 -3
  24. package/src/components/organisms/text-bubble/text-bubble.component.d.ts +2 -2
  25. package/src/components/organisms/text-bubble/text-bubble.component.tsx +6 -3
  26. package/src/components/organisms/text-bubble/text-bubble.preview.tsx +19 -7
  27. package/src/components/templates/popover-action/popover-action.component.tsx +9 -8
  28. package/src/icons/solid/cloud-download/cloud-download.icon.tsx +1 -1
  29. package/src/icons/solid/refresh/refresh-solid.icon.tsx +2 -2
  30. package/src/utilities/datetime/clock.class.tsx +14 -0
  31. package/src/utilities/datetime/dateonly.class.tsx +287 -0
  32. package/src/utilities/datetime/datetime.class.tsx +288 -0
  33. package/src/utilities/datetime/day.class.tsx +48 -0
  34. package/src/utilities/datetime/dayjs-config.ts +96 -0
  35. package/src/utilities/datetime/dayoftheweek.class.tsx +242 -0
  36. package/src/utilities/datetime/hour.class.tsx +60 -0
  37. package/src/utilities/datetime/locale.tsx +6 -0
  38. package/src/utilities/datetime/millisecond.class.tsx +48 -0
  39. package/src/utilities/datetime/minute.class.tsx +55 -0
  40. package/src/utilities/datetime/month.class.tsx +74 -0
  41. package/src/utilities/datetime/second.class.tsx +52 -0
  42. package/src/utilities/datetime/time.class.tsx +190 -0
  43. package/src/utilities/datetime/timezone.class.tsx +36 -0
  44. package/src/utilities/datetime/year.class.tsx +78 -0
  45. package/src/utilities/datetime/yearandmonth.class.tsx +80 -0
  46. package/src/components/atoms/background-gradient/__snapshots__/background-gradient.test.js.snap +0 -40
  47. package/src/components/atoms/background-gradient/background-gradient.test.js +0 -10
  48. package/src/components/atoms/calendar/__snapshots__/calendar.test.js.snap +0 -6817
  49. package/src/components/atoms/calendar/calendar.test.js +0 -35
  50. package/src/components/atoms/check-switch/__snapshots__/check-switch.test.js.snap +0 -84
  51. package/src/components/atoms/check-switch/check-switch.test.js +0 -13
  52. package/src/components/atoms/heading-components/all-caps-heading/__snapshots__/all-caps-heading.test.js.snap +0 -113
  53. package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.test.js +0 -44
  54. package/src/components/atoms/heading-components/heading1/__snapshots__/heading1.test.js.snap +0 -121
  55. package/src/components/atoms/heading-components/heading1/heading1.test.js +0 -51
  56. package/src/components/atoms/heading-components/heading2/__snapshots__/heading2.test.js.snap +0 -121
  57. package/src/components/atoms/heading-components/heading2/heading2.test.js +0 -51
  58. package/src/components/atoms/heading-components/heading3/__snapshots__/heading3.test.js.snap +0 -121
  59. package/src/components/atoms/heading-components/heading3/heading3.test.js +0 -51
  60. package/src/components/atoms/heading-components/heading4/__snapshots__/heading4.test.js.snap +0 -121
  61. package/src/components/atoms/heading-components/heading4/heading4.test.js +0 -51
  62. package/src/components/atoms/image-bubble/__snapshots__/image-bubble.test.js.snap +0 -67
  63. package/src/components/atoms/image-bubble/image-bubble.test.js +0 -20
  64. package/src/components/atoms/increment-input/__snapshots__/increment-input.test.js.snap +0 -269
  65. package/src/components/atoms/increment-input/increment-input.test.js +0 -14
  66. package/src/components/atoms/logo/__snapshots__/logo.test.js.snap +0 -113
  67. package/src/components/atoms/logo/logo.test.js +0 -16
  68. package/src/components/atoms/paragraph-components/paragraph/__snapshots__/paragraph.test.js.snap +0 -121
  69. package/src/components/atoms/paragraph-components/paragraph/paragraph.test.js +0 -76
  70. package/src/components/atoms/paragraph-components/small-text/__snapshots__/small-text.test.js.snap +0 -121
  71. package/src/components/atoms/paragraph-components/small-text/small-text.test.js +0 -76
  72. package/src/components/atoms/paragraph-components/tiny-text/__snapshots__/tiny-text.test.js.snap +0 -121
  73. package/src/components/atoms/paragraph-components/tiny-text/tiny-text.test.js +0 -76
  74. package/src/components/atoms/quick-message/__snapshots__/quick-message.test.js.snap +0 -143
  75. package/src/components/atoms/quick-message/quick-message.test.js +0 -58
  76. package/src/components/atoms/split-container/__snapshots__/split-container.test.js.snap +0 -333
  77. package/src/components/atoms/split-container/split-container.test.js +0 -45
  78. package/src/components/atoms/text-input/__snapshots__/text-input.test.js.snap +0 -123
  79. package/src/components/atoms/text-input/text-input.test.js +0 -59
  80. package/src/components/molecules/avatar/__snapshots__/avatar.test.js.snap +0 -97
  81. package/src/components/molecules/avatar/avatar.test.js +0 -22
  82. package/src/components/molecules/blocked-message/__snapshots__/blocked-message.test.js.snap +0 -107
  83. package/src/components/molecules/blocked-message/blocked-message.test.js +0 -12
  84. package/src/components/molecules/button/__snapshots__/button.test.js.snap +0 -652
  85. package/src/components/molecules/button/button.test.js +0 -56
  86. package/src/components/molecules/calendar-select/__snapshots__/calendar-select.test.js.snap +0 -343
  87. package/src/components/molecules/calendar-select/calendar-select.test.js +0 -20
  88. package/src/components/molecules/cancel-link/__snapshots__/cancel-link.test.js.snap +0 -139
  89. package/src/components/molecules/cancel-link/cancel-link.test.js +0 -28
  90. package/src/components/molecules/checkbox/__snapshots__/checkbox.test.js.snap +0 -176
  91. package/src/components/molecules/checkbox/checkbox.test.js +0 -30
  92. package/src/components/molecules/contact-address/__snapshots__/contact-address.test.js.snap +0 -113
  93. package/src/components/molecules/contact-address/contact-address.test.js +0 -18
  94. package/src/components/molecules/contact-role/__snapshots__/contact-role.test.js.snap +0 -113
  95. package/src/components/molecules/contact-role/contact-role.test.js +0 -18
  96. package/src/components/molecules/date-input/__snapshots__/date-input.test.js.snap +0 -140
  97. package/src/components/molecules/date-input/date-input.test.js +0 -23
  98. package/src/components/molecules/day/__snapshots__/day.test.js.snap +0 -263
  99. package/src/components/molecules/day/day.test.js +0 -37
  100. package/src/components/molecules/default-select/__snapshots__/default-select.test.js.snap +0 -140
  101. package/src/components/molecules/default-select/default-select.test.js +0 -17
  102. package/src/components/molecules/department_logo/__snapshots__/department-logo.test.js.snap +0 -27
  103. package/src/components/molecules/department_logo/department-logo.test.js +0 -12
  104. package/src/components/molecules/failed-to-send/__snapshots__/failed-bubble.test.js.snap +0 -386
  105. package/src/components/molecules/failed-to-send/failed-bubble.test.js +0 -75
  106. package/src/components/molecules/filter-range/__snapshots__/filter-range.test.js.snap +0 -208
  107. package/src/components/molecules/filter-range/filter-range.test.js +0 -20
  108. package/src/components/molecules/filter-tab/__snapshots__/filter-tab.test.js.snap +0 -536
  109. package/src/components/molecules/filter-tab/filter-tab.test.js +0 -42
  110. package/src/components/molecules/info/__snapshots__/info.test.js.snap +0 -64
  111. package/src/components/molecules/info/info.test.js +0 -18
  112. package/src/components/molecules/language-button/__snapshots__/language-button.test.js.snap +0 -129
  113. package/src/components/molecules/language-button/language-button.test.js +0 -29
  114. package/src/components/molecules/message-input/__snapshots__/message-input.test.js.snap +0 -611
  115. package/src/components/molecules/message-input/message-input.test.js +0 -63
  116. package/src/components/molecules/more-info-button/__snapshots__/more-info-button.test.js.snap +0 -133
  117. package/src/components/molecules/more-info-button/more-info-button.test.js +0 -29
  118. package/src/components/molecules/password-input/__snapshots__/password-input.test.js.snap +0 -504
  119. package/src/components/molecules/password-input/password-input.test.js +0 -46
  120. package/src/components/molecules/pill/__snapshots__/pill.test.js.snap +0 -226
  121. package/src/components/molecules/pill/pill.test.js +0 -42
  122. package/src/components/molecules/pressable-icon/__snapshots__/pressable-icon.test.js.snap +0 -460
  123. package/src/components/molecules/pressable-icon/pressable-icon.test.js +0 -51
  124. package/src/components/molecules/quick-filter/__snapshots__/quick-filter.test.js.snap +0 -557
  125. package/src/components/molecules/quick-filter/quick-filter.test.js +0 -134
  126. package/src/components/molecules/search-input/__snapshots__/search.test.js.snap +0 -145
  127. package/src/components/molecules/search-input/search.test.js +0 -22
  128. package/src/components/molecules/select-link/__snapshots__/select-link.test.js.snap +0 -70
  129. package/src/components/molecules/select-link/select-link.test.js +0 -17
  130. package/src/components/molecules/select-list-item/__snapshots__/select-list-item.test.js.snap +0 -762
  131. package/src/components/molecules/select-list-item/select-list-item.test.js +0 -38
  132. package/src/components/molecules/select-picker/__snapshots__/select-picker.test.js.snap +0 -407
  133. package/src/components/molecules/select-picker/select-picker.test.js +0 -31
  134. package/src/components/molecules/send-bubble/__snapshots__/send-text-bubble.test.js.snap +0 -1979
  135. package/src/components/molecules/send-bubble/send-text-bubble.test.js +0 -156
  136. package/src/components/molecules/snackbar/__snapshots__/snackbar.test.js.snap +0 -557
  137. package/src/components/molecules/snackbar/snackbar.test.js +0 -35
  138. package/src/components/molecules/swipe/__snapshots__/swipe.test.js.snap +0 -340
  139. package/src/components/molecules/swipe/swipe.test.js +0 -46
  140. package/src/components/molecules/tag/__snapshots__/tag.test.js.snap +0 -139
  141. package/src/components/molecules/tag/tag.test.js +0 -34
  142. package/src/components/molecules/time-picker/__snapshots__/time-picker.test.js.snap +0 -2221
  143. package/src/components/molecules/time-picker/time-picker.test.js +0 -18
  144. package/src/components/molecules/time-tracker/__snapshots__/time-tracker.test.js.snap +0 -266
  145. package/src/components/molecules/time-tracker/time-tracker.test.js +0 -36
  146. package/src/components/molecules/timeline/__snapshots__/timeline.test.js.snap +0 -257
  147. package/src/components/molecules/timeline/timeline.test.js +0 -18
  148. package/src/components/molecules/timestamp/__snapshots__/timestamp.test.js.snap +0 -28
  149. package/src/components/molecules/timestamp/timestamp.test.js +0 -16
  150. package/src/components/molecules/wave-background/__snapshots__/wave.test.js.snap +0 -173
  151. package/src/components/molecules/wave-background/wave.test.js +0 -25
  152. package/src/components/molecules/wide-button/__snapshots__/wide-button.test.js.snap +0 -269
  153. package/src/components/molecules/wide-button/wide-button.test.js +0 -30
  154. package/src/components/organisms/child-list-item/__snapshots__/child-list-item.test.js.snap +0 -1040
  155. package/src/components/organisms/child-list-item/child-list-item.test.js +0 -75
  156. package/src/components/organisms/contact-item/__snapshots__/contact-item.test.js.snap +0 -404
  157. package/src/components/organisms/contact-item/contact-item.test.js +0 -22
  158. package/src/components/organisms/loading-indicator/__snapshots__/loading-indicator.test.js.snap +0 -474
  159. package/src/components/organisms/loading-indicator/loading-indicator.test.js +0 -41
  160. package/src/components/organisms/my-child-list-item/__snapshots__/my-child-list-item.test.js.snap +0 -293
  161. package/src/components/organisms/my-child-list-item/my-child-list-item.test.js +0 -23
  162. package/src/components/organisms/person-info-card/__snapshots__/person-info-card.test.js.snap +0 -709
  163. package/src/components/organisms/person-info-card/person-info-card.test.js +0 -85
  164. package/src/components/organisms/text-bubble/__snapshots__/text-bubble.test.js.snap +0 -3046
  165. package/src/components/organisms/text-bubble/text-bubble.test.js +0 -144
  166. package/src/utilities/toddle-datetime/interfaces/duration.interface.d.ts +0 -22
  167. package/src/utilities/toddle-datetime/interfaces/duration.interface.tsx +0 -23
  168. package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +0 -22
  169. package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.tsx +0 -25
  170. package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +0 -50
  171. package/src/utilities/toddle-datetime/toddle-datetime.class.tsx +0 -206
  172. package/src/utilities/toddle-datetime/toddle-datetime.preview.d.ts +0 -2
  173. package/src/utilities/toddle-datetime/toddle-datetime.preview.tsx +0 -160
  174. package/src/utilities/toddle-datetime/toddle-datetime.test.js +0 -127
  175. package/src/utilities/toddle-datetime/types/duration.type.d.ts +0 -4
  176. package/src/utilities/toddle-datetime/types/duration.type.tsx +0 -6
  177. package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +0 -5
  178. package/src/utilities/toddle-datetime/types/toddle-datetime.type.tsx +0 -23
@@ -1,226 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`test pill given the visual state is DEFAULT return a blue/purple colored pill 1`] = `
4
- <View
5
- style={
6
- [
7
- {
8
- "alignItems": "center",
9
- "borderRadius": 50,
10
- "justifyContent": "center",
11
- "paddingBottom": 4,
12
- "paddingLeft": 8,
13
- "paddingRight": 8,
14
- "paddingTop": 4,
15
- },
16
- false,
17
- false,
18
- false,
19
- false,
20
- false,
21
- ]
22
- }
23
- >
24
- <Text
25
- style={
26
- [
27
- [
28
- {
29
- "fontFamily": "MontserratBold",
30
- "fontSize": 11,
31
- "lineHeight": 17.9,
32
- },
33
- ],
34
- {
35
- "color": "#FFFFFF",
36
- "textAlign": "center",
37
- "width": "100%",
38
- },
39
- undefined,
40
- ]
41
- }
42
- >
43
- Default
44
- </Text>
45
- </View>
46
- `;
47
-
48
- exports[`test pill given the visual state is DEFAULT return a blue/purple colored pill 2`] = `
49
- <View
50
- style={
51
- [
52
- {
53
- "alignItems": "center",
54
- "borderRadius": 50,
55
- "justifyContent": "center",
56
- "paddingBottom": 4,
57
- "paddingLeft": 8,
58
- "paddingRight": 8,
59
- "paddingTop": 4,
60
- },
61
- false,
62
- false,
63
- false,
64
- false,
65
- false,
66
- ]
67
- }
68
- >
69
- <Text
70
- style={
71
- [
72
- [
73
- {
74
- "fontFamily": "MontserratBold",
75
- "fontSize": 11,
76
- "lineHeight": 17.9,
77
- },
78
- ],
79
- {
80
- "color": "#FFFFFF",
81
- "textAlign": "center",
82
- "width": "100%",
83
- },
84
- undefined,
85
- ]
86
- }
87
- >
88
- Inactive
89
- </Text>
90
- </View>
91
- `;
92
-
93
- exports[`test pill given the visual state is Error return a red colored pill 1`] = `
94
- <View
95
- style={
96
- [
97
- {
98
- "alignItems": "center",
99
- "borderRadius": 50,
100
- "justifyContent": "center",
101
- "paddingBottom": 4,
102
- "paddingLeft": 8,
103
- "paddingRight": 8,
104
- "paddingTop": 4,
105
- },
106
- false,
107
- false,
108
- false,
109
- false,
110
- false,
111
- ]
112
- }
113
- >
114
- <Text
115
- style={
116
- [
117
- [
118
- {
119
- "fontFamily": "MontserratBold",
120
- "fontSize": 11,
121
- "lineHeight": 17.9,
122
- },
123
- ],
124
- {
125
- "color": "#FFFFFF",
126
- "textAlign": "center",
127
- "width": "100%",
128
- },
129
- undefined,
130
- ]
131
- }
132
- >
133
- Geblokkeerd
134
- </Text>
135
- </View>
136
- `;
137
-
138
- exports[`test pill given the visual state is SUCCESS return a green colored pill 1`] = `
139
- <View
140
- style={
141
- [
142
- {
143
- "alignItems": "center",
144
- "borderRadius": 50,
145
- "justifyContent": "center",
146
- "paddingBottom": 4,
147
- "paddingLeft": 8,
148
- "paddingRight": 8,
149
- "paddingTop": 4,
150
- },
151
- false,
152
- false,
153
- false,
154
- false,
155
- false,
156
- ]
157
- }
158
- >
159
- <Text
160
- style={
161
- [
162
- [
163
- {
164
- "fontFamily": "MontserratBold",
165
- "fontSize": 11,
166
- "lineHeight": 17.9,
167
- },
168
- ],
169
- {
170
- "color": "#FFFFFF",
171
- "textAlign": "center",
172
- "width": "100%",
173
- },
174
- undefined,
175
- ]
176
- }
177
- >
178
- Voldaan
179
- </Text>
180
- </View>
181
- `;
182
-
183
- exports[`test pill given the visual state is Warning return a orange colored pill 1`] = `
184
- <View
185
- style={
186
- [
187
- {
188
- "alignItems": "center",
189
- "borderRadius": 50,
190
- "justifyContent": "center",
191
- "paddingBottom": 4,
192
- "paddingLeft": 8,
193
- "paddingRight": 8,
194
- "paddingTop": 4,
195
- },
196
- false,
197
- false,
198
- false,
199
- false,
200
- false,
201
- ]
202
- }
203
- >
204
- <Text
205
- style={
206
- [
207
- [
208
- {
209
- "fontFamily": "MontserratBold",
210
- "fontSize": 11,
211
- "lineHeight": 17.9,
212
- },
213
- ],
214
- {
215
- "color": "#FFFFFF",
216
- "textAlign": "center",
217
- "width": "100%",
218
- },
219
- undefined,
220
- ]
221
- }
222
- >
223
- Pas op
224
- </Text>
225
- </View>
226
- `;
@@ -1,42 +0,0 @@
1
- import React from 'react';
2
- import renderer from 'react-test-renderer';
3
- import {Pill} from './pill.component';
4
- import {VisualState} from '../../../types/visual-state.enum';
5
-
6
- describe('test pill', () => {
7
- it('given the visual state is Error return a red colored pill', () => {
8
- const tree = renderer
9
- .create(<Pill variant={VisualState.ERROR} label="Geblokkeerd" />)
10
- .toJSON();
11
-
12
- expect(tree).toMatchSnapshot();
13
- });
14
- it('given the visual state is Warning return a orange colored pill', () => {
15
- const tree = renderer
16
- .create(<Pill variant={VisualState.WARNING} label="Pas op" />)
17
- .toJSON();
18
-
19
- expect(tree).toMatchSnapshot();
20
- });
21
- it('given the visual state is SUCCESS return a green colored pill', () => {
22
- const tree = renderer
23
- .create(<Pill variant={VisualState.SUCCESS} label="Voldaan" />)
24
- .toJSON();
25
-
26
- expect(tree).toMatchSnapshot();
27
- });
28
- it('given the visual state is DEFAULT return a blue/purple colored pill', () => {
29
- const tree = renderer
30
- .create(<Pill variant={VisualState.DEFAULT} label="Default" />)
31
- .toJSON();
32
-
33
- expect(tree).toMatchSnapshot();
34
- });
35
- it('given the visual state is DEFAULT return a blue/purple colored pill', () => {
36
- const tree = renderer
37
- .create(<Pill variant={VisualState.INACTIVE} label="Inactive" />)
38
- .toJSON();
39
-
40
- expect(tree).toMatchSnapshot();
41
- });
42
- });
@@ -1,460 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`pressable-icon test render a default disabled pressable icon 1`] = `
4
- <View
5
- accessibilityState={
6
- {
7
- "busy": undefined,
8
- "checked": undefined,
9
- "disabled": true,
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
- >
35
- <View
36
- style={
37
- [
38
- {
39
- "backgroundColor": "#E5E8EB",
40
- },
41
- {
42
- "alignItems": "center",
43
- "borderRadius": 50,
44
- "flexDirection": "row",
45
- "height": 50,
46
- "justifyContent": "center",
47
- "padding": 12,
48
- "width": 50,
49
- },
50
- ]
51
- }
52
- >
53
- <RNSVGSvgView
54
- align="xMidYMid"
55
- bbHeight="24"
56
- bbWidth="24"
57
- fill="none"
58
- focusable={false}
59
- height={24}
60
- meetOrSlice={0}
61
- minX={0}
62
- minY={0}
63
- style={
64
- [
65
- {
66
- "backgroundColor": "transparent",
67
- "borderWidth": 0,
68
- },
69
- {
70
- "flex": 0,
71
- "height": 24,
72
- "width": 24,
73
- },
74
- ]
75
- }
76
- vbHeight={19}
77
- vbWidth={23}
78
- width={24}
79
- >
80
- <RNSVGGroup
81
- fill={null}
82
- propList={
83
- [
84
- "fill",
85
- ]
86
- }
87
- >
88
- <RNSVGPath
89
- d="M1.375 5L10.2519 10.9179C11.0077 11.4218 11.9923 11.4218 12.7481 10.9179L21.625 5M3.625 17.375H19.375C20.6176 17.375 21.625 16.3676 21.625 15.125V3.875C21.625 2.63236 20.6176 1.625 19.375 1.625H3.625C2.38236 1.625 1.375 2.63236 1.375 3.875V15.125C1.375 16.3676 2.38236 17.375 3.625 17.375Z"
90
- fill={
91
- {
92
- "payload": 4278190080,
93
- "type": 0,
94
- }
95
- }
96
- propList={
97
- [
98
- "stroke",
99
- "strokeWidth",
100
- "strokeLinecap",
101
- "strokeLinejoin",
102
- ]
103
- }
104
- stroke={
105
- {
106
- "payload": 4283522924,
107
- "type": 0,
108
- }
109
- }
110
- strokeLinecap={1}
111
- strokeLinejoin={1}
112
- strokeWidth="2"
113
- />
114
- </RNSVGGroup>
115
- </RNSVGSvgView>
116
- </View>
117
- </View>
118
- `;
119
-
120
- exports[`pressable-icon test render a default pressable icon 1`] = `
121
- <View
122
- accessibilityState={
123
- {
124
- "busy": undefined,
125
- "checked": undefined,
126
- "disabled": undefined,
127
- "expanded": undefined,
128
- "selected": undefined,
129
- }
130
- }
131
- accessibilityValue={
132
- {
133
- "max": undefined,
134
- "min": undefined,
135
- "now": undefined,
136
- "text": undefined,
137
- }
138
- }
139
- accessible={true}
140
- collapsable={false}
141
- focusable={true}
142
- onBlur={[Function]}
143
- onClick={[Function]}
144
- onFocus={[Function]}
145
- onResponderGrant={[Function]}
146
- onResponderMove={[Function]}
147
- onResponderRelease={[Function]}
148
- onResponderTerminate={[Function]}
149
- onResponderTerminationRequest={[Function]}
150
- onStartShouldSetResponder={[Function]}
151
- >
152
- <View
153
- style={
154
- [
155
- {
156
- "backgroundColor": "#E0E8F9",
157
- },
158
- {
159
- "alignItems": "center",
160
- "borderRadius": 50,
161
- "flexDirection": "row",
162
- "height": 50,
163
- "justifyContent": "center",
164
- "padding": 12,
165
- "width": 50,
166
- },
167
- ]
168
- }
169
- >
170
- <RNSVGSvgView
171
- align="xMidYMid"
172
- bbHeight="24"
173
- bbWidth="24"
174
- fill="none"
175
- focusable={false}
176
- height={24}
177
- meetOrSlice={0}
178
- minX={0}
179
- minY={0}
180
- style={
181
- [
182
- {
183
- "backgroundColor": "transparent",
184
- "borderWidth": 0,
185
- },
186
- {
187
- "flex": 0,
188
- "height": 24,
189
- "width": 24,
190
- },
191
- ]
192
- }
193
- vbHeight={23}
194
- vbWidth={23}
195
- width={24}
196
- >
197
- <RNSVGGroup
198
- fill={null}
199
- propList={
200
- [
201
- "fill",
202
- ]
203
- }
204
- >
205
- <RNSVGPath
206
- d="M13.75 9.25H19.1094C20.782 9.25 21.8699 11.0102 21.1219 12.5062L17.1844 20.3812C16.8033 21.1435 16.0242 21.625 15.1719 21.625H10.652C10.468 21.625 10.2848 21.6024 10.1063 21.5578L5.875 20.5M13.75 9.25V3.625C13.75 2.38236 12.7426 1.375 11.5 1.375H11.3926C10.8306 1.375 10.375 1.83059 10.375 2.39259C10.375 3.19618 10.1371 3.9818 9.69138 4.65043L5.875 10.375V20.5M13.75 9.25H11.5M5.875 20.5H3.625C2.38236 20.5 1.375 19.4926 1.375 18.25V11.5C1.375 10.2574 2.38236 9.25 3.625 9.25H6.4375"
207
- fill={
208
- {
209
- "payload": 4278190080,
210
- "type": 0,
211
- }
212
- }
213
- propList={
214
- [
215
- "stroke",
216
- "strokeWidth",
217
- "strokeLinecap",
218
- "strokeLinejoin",
219
- ]
220
- }
221
- stroke={
222
- {
223
- "payload": 4279837036,
224
- "type": 0,
225
- }
226
- }
227
- strokeLinecap={1}
228
- strokeLinejoin={1}
229
- strokeWidth="2"
230
- />
231
- </RNSVGGroup>
232
- </RNSVGSvgView>
233
- </View>
234
- </View>
235
- `;
236
-
237
- exports[`pressable-icon test render an inverted pressable icon 1`] = `
238
- <View
239
- accessibilityState={
240
- {
241
- "busy": undefined,
242
- "checked": undefined,
243
- "disabled": undefined,
244
- "expanded": undefined,
245
- "selected": undefined,
246
- }
247
- }
248
- accessibilityValue={
249
- {
250
- "max": undefined,
251
- "min": undefined,
252
- "now": undefined,
253
- "text": undefined,
254
- }
255
- }
256
- accessible={true}
257
- collapsable={false}
258
- focusable={true}
259
- onBlur={[Function]}
260
- onClick={[Function]}
261
- onFocus={[Function]}
262
- onResponderGrant={[Function]}
263
- onResponderMove={[Function]}
264
- onResponderRelease={[Function]}
265
- onResponderTerminate={[Function]}
266
- onResponderTerminationRequest={[Function]}
267
- onStartShouldSetResponder={[Function]}
268
- >
269
- <View
270
- style={
271
- [
272
- {
273
- "backgroundColor": "#19216C",
274
- },
275
- {
276
- "alignItems": "center",
277
- "borderRadius": 50,
278
- "flexDirection": "row",
279
- "height": 50,
280
- "justifyContent": "center",
281
- "padding": 12,
282
- "width": 50,
283
- },
284
- ]
285
- }
286
- >
287
- <RNSVGSvgView
288
- align="xMidYMid"
289
- bbHeight="24"
290
- bbWidth="24"
291
- fill="none"
292
- focusable={false}
293
- height={24}
294
- meetOrSlice={0}
295
- minX={0}
296
- minY={0}
297
- style={
298
- [
299
- {
300
- "backgroundColor": "transparent",
301
- "borderWidth": 0,
302
- },
303
- {
304
- "flex": 0,
305
- "height": 24,
306
- "width": 24,
307
- },
308
- ]
309
- }
310
- vbHeight={22}
311
- vbWidth={22}
312
- width={24}
313
- >
314
- <RNSVGGroup
315
- fill={null}
316
- propList={
317
- [
318
- "fill",
319
- ]
320
- }
321
- >
322
- <RNSVGPath
323
- d="M1.25 2.25C1.25 1.69772 1.69772 1.25 2.25 1.25H19.75C20.3023 1.25 20.75 1.69772 20.75 2.25V5.16912C20.75 5.43434 20.6446 5.68869 20.4571 5.87623L13.4596 12.8738C13.272 13.0613 13.1667 13.3157 13.1667 13.5809V16.4167L8.83333 20.75V13.5809C8.83333 13.3157 8.72798 13.0613 8.54044 12.8738L1.54289 5.87623C1.35536 5.68869 1.25 5.43434 1.25 5.16912V2.25Z"
324
- fill={
325
- {
326
- "payload": 4278190080,
327
- "type": 0,
328
- }
329
- }
330
- propList={
331
- [
332
- "stroke",
333
- "strokeWidth",
334
- "strokeLinecap",
335
- "strokeLinejoin",
336
- ]
337
- }
338
- stroke={
339
- {
340
- "payload": 4292929785,
341
- "type": 0,
342
- }
343
- }
344
- strokeLinecap={1}
345
- strokeLinejoin={1}
346
- strokeWidth="2"
347
- />
348
- </RNSVGGroup>
349
- </RNSVGSvgView>
350
- </View>
351
- </View>
352
- `;
353
-
354
- exports[`pressable-icon test render an inverted pressable icon that is disabled 1`] = `
355
- <View
356
- accessibilityState={
357
- {
358
- "busy": undefined,
359
- "checked": undefined,
360
- "disabled": true,
361
- "expanded": undefined,
362
- "selected": undefined,
363
- }
364
- }
365
- accessibilityValue={
366
- {
367
- "max": undefined,
368
- "min": undefined,
369
- "now": undefined,
370
- "text": undefined,
371
- }
372
- }
373
- accessible={true}
374
- collapsable={false}
375
- focusable={true}
376
- onBlur={[Function]}
377
- onClick={[Function]}
378
- onFocus={[Function]}
379
- onResponderGrant={[Function]}
380
- onResponderMove={[Function]}
381
- onResponderRelease={[Function]}
382
- onResponderTerminate={[Function]}
383
- onResponderTerminationRequest={[Function]}
384
- onStartShouldSetResponder={[Function]}
385
- >
386
- <View
387
- style={
388
- [
389
- {
390
- "backgroundColor": "#E5E8EB",
391
- },
392
- {
393
- "alignItems": "center",
394
- "borderRadius": 50,
395
- "flexDirection": "row",
396
- "height": 50,
397
- "justifyContent": "center",
398
- "padding": 12,
399
- "width": 50,
400
- },
401
- ]
402
- }
403
- >
404
- <RNSVGSvgView
405
- align="xMidYMid"
406
- bbHeight="24"
407
- bbWidth="24"
408
- fill="none"
409
- focusable={false}
410
- height={24}
411
- meetOrSlice={0}
412
- minX={0}
413
- minY={0}
414
- style={
415
- [
416
- {
417
- "backgroundColor": "transparent",
418
- "borderWidth": 0,
419
- },
420
- {
421
- "flex": 0,
422
- "height": 24,
423
- "width": 24,
424
- },
425
- ]
426
- }
427
- vbHeight={18}
428
- vbWidth={17}
429
- width={24}
430
- >
431
- <RNSVGGroup
432
- fill={null}
433
- propList={
434
- [
435
- "fill",
436
- ]
437
- }
438
- >
439
- <RNSVGPath
440
- clipRule={0}
441
- d="M7.34995 0.200012C6.91436 0.200012 6.51616 0.435415 6.32136 0.808077L5.48921 2.40001H1.59995C0.964824 2.40001 0.449951 2.8925 0.449951 3.50001C0.449951 4.10753 0.964824 4.60001 1.59995 4.60001L1.59995 15.6C1.59995 16.815 2.6297 17.8 3.89995 17.8H13.1C14.3702 17.8 15.4 16.815 15.4 15.6V4.60001C16.0351 4.60001 16.55 4.10753 16.55 3.50001C16.55 2.8925 16.0351 2.40001 15.4 2.40001H11.5107L10.6785 0.808077C10.4837 0.435415 10.0855 0.200012 9.64995 0.200012H7.34995ZM5.04995 6.80001C5.04995 6.1925 5.56482 5.70001 6.19995 5.70001C6.83508 5.70001 7.34995 6.1925 7.34995 6.80001V13.4C7.34995 14.0075 6.83508 14.5 6.19995 14.5C5.56482 14.5 5.04995 14.0075 5.04995 13.4V6.80001ZM10.8 5.70001C10.1648 5.70001 9.64995 6.1925 9.64995 6.80001V13.4C9.64995 14.0075 10.1648 14.5 10.8 14.5C11.4351 14.5 11.95 14.0075 11.95 13.4V6.80001C11.95 6.1925 11.4351 5.70001 10.8 5.70001Z"
442
- fill={
443
- {
444
- "payload": 4283522924,
445
- "type": 0,
446
- }
447
- }
448
- fillRule={0}
449
- propList={
450
- [
451
- "fill",
452
- "fillRule",
453
- ]
454
- }
455
- />
456
- </RNSVGGroup>
457
- </RNSVGSvgView>
458
- </View>
459
- </View>
460
- `;