@jobber/components-native 0.84.4-JOB-138679-b1552ab.68 → 0.84.4-match-mobi-accfa8a.9
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/dist/package.json +5 -3
- package/dist/src/BottomSheet/BottomSheet.js +58 -32
- package/dist/src/BottomSheet/BottomSheet.style.js +8 -9
- package/dist/src/BottomSheet/hooks/useBottomSheetBackHandler.js +26 -0
- package/dist/src/Chip/Chip.js +12 -1
- package/dist/src/Chip/Chip.style.js +1 -1
- package/dist/src/Content/ContentHorizontal.style.js +15 -0
- package/dist/src/Content/ContentSpaceAround.style.js +15 -0
- package/dist/src/Content/ContentVertical.style.js +15 -0
- package/dist/src/InputText/InputText.js +2 -2
- package/dist/src/ProgressBar/ProgressBar.js +10 -6
- package/dist/src/ProgressBar/ProgressBarInner.js +3 -12
- package/dist/src/ProgressBar/ProgressBarStepped.js +7 -2
- package/dist/src/StatusIndicator/StatusIndicator.js +11 -0
- package/dist/src/StatusIndicator/StatusIndicator.style.js +12 -0
- package/dist/src/StatusIndicator/StatusIndicator.type.js +1 -0
- package/dist/src/StatusIndicator/index.js +1 -0
- package/dist/src/StatusLabel/StatusLabel.js +6 -12
- package/dist/src/StatusLabel/StatusLabel.style.js +10 -13
- package/dist/src/hooks/useFormController.js +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/utils/meta/meta.json +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/src/BottomSheet/BottomSheet.d.ts +7 -3
- package/dist/types/src/BottomSheet/BottomSheet.style.d.ts +7 -14
- package/dist/types/src/BottomSheet/hooks/useBottomSheetBackHandler.d.ts +8 -0
- package/dist/types/src/Content/Content.d.ts +1 -1
- package/dist/types/src/Content/ContentHorizontal.style.d.ts +15 -0
- package/dist/types/src/Content/ContentSpaceAround.style.d.ts +15 -0
- package/dist/types/src/Content/ContentVertical.style.d.ts +15 -0
- package/dist/types/src/Form/context/types.d.ts +2 -2
- package/dist/types/src/Form/hooks/useInternalForm.d.ts +2 -2
- package/dist/types/src/InputText/InputText.d.ts +1 -1
- package/dist/types/src/Menu/types.d.ts +1 -1
- package/dist/types/src/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/types/src/ProgressBar/ProgressBarInner.d.ts +4 -1
- package/dist/types/src/ProgressBar/ProgressBarStepped.d.ts +3 -1
- package/dist/types/src/ProgressBar/types.d.ts +20 -0
- package/dist/types/src/StatusIndicator/StatusIndicator.d.ts +6 -0
- package/dist/types/src/StatusIndicator/StatusIndicator.style.d.ts +8 -0
- package/dist/types/src/StatusIndicator/StatusIndicator.type.d.ts +1 -0
- package/dist/types/src/StatusIndicator/index.d.ts +2 -0
- package/dist/types/src/StatusLabel/StatusLabel.d.ts +3 -3
- package/dist/types/src/StatusLabel/StatusLabel.style.d.ts +10 -10
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +5 -3
- package/src/BottomSheet/BottomSheet.stories.tsx +128 -0
- package/src/BottomSheet/BottomSheet.style.ts +7 -14
- package/src/BottomSheet/BottomSheet.test.tsx +19 -24
- package/src/BottomSheet/BottomSheet.tsx +112 -93
- package/src/BottomSheet/hooks/useBottomSheetBackHandler.test.ts +90 -0
- package/src/BottomSheet/hooks/useBottomSheetBackHandler.ts +41 -0
- package/src/Checkbox/Checkbox.test.tsx +118 -1
- package/src/Chip/Chip.style.ts +1 -1
- package/src/Chip/Chip.tsx +19 -1
- package/src/Content/Content.tsx +6 -1
- package/src/Content/ContentHorizontal.style.ts +20 -0
- package/src/Content/ContentSpaceAround.style.ts +20 -0
- package/src/Content/ContentVertical.style.ts +20 -0
- package/src/Form/context/types.ts +2 -2
- package/src/Form/hooks/useInternalForm.ts +2 -2
- package/src/InputText/InputText.test.tsx +115 -1
- package/src/InputText/InputText.tsx +3 -3
- package/src/Menu/types.ts +1 -1
- package/src/ProgressBar/ProgressBar.test.tsx +109 -0
- package/src/ProgressBar/ProgressBar.tsx +17 -1
- package/src/ProgressBar/ProgressBarInner.tsx +7 -10
- package/src/ProgressBar/ProgressBarStepped.tsx +12 -1
- package/src/ProgressBar/__snapshots__/ProgressBar.test.tsx.snap +14 -0
- package/src/ProgressBar/types.ts +22 -0
- package/src/StatusIndicator/StatusIndicator.style.ts +14 -0
- package/src/StatusIndicator/StatusIndicator.test.tsx +42 -0
- package/src/StatusIndicator/StatusIndicator.tsx +23 -0
- package/src/StatusIndicator/StatusIndicator.type.ts +6 -0
- package/src/StatusIndicator/__snapshots__/StatusIndicator.test.tsx.snap +96 -0
- package/src/StatusIndicator/index.ts +2 -0
- package/src/StatusLabel/StatusLabel.style.ts +10 -16
- package/src/StatusLabel/StatusLabel.tsx +15 -28
- package/src/StatusLabel/__snapshots__/StatusLabel.test.tsx.snap +133 -105
- package/src/ThumbnailList/__snapshots__/ThumbnailList.test.tsx.snap +199 -1
- package/src/hooks/useFormController.ts +1 -1
- package/src/index.ts +1 -0
- package/src/utils/meta/meta.json +1 -0
|
@@ -5,9 +5,21 @@ exports[`StatusLabel alignment when alignment prop set to "end" should match sna
|
|
|
5
5
|
style={
|
|
6
6
|
[
|
|
7
7
|
{
|
|
8
|
+
"alignItems": "center",
|
|
9
|
+
"alignSelf": "flex-start",
|
|
10
|
+
"backgroundColor": "hsl(109, 28%, 92%)",
|
|
11
|
+
"borderRadius": 16,
|
|
8
12
|
"flexDirection": "row",
|
|
13
|
+
"flexGrow": 0,
|
|
14
|
+
"flexShrink": 1,
|
|
9
15
|
"flexWrap": "nowrap",
|
|
16
|
+
"gap": 4,
|
|
10
17
|
"justifyContent": "flex-end",
|
|
18
|
+
"paddingHorizontal": 8,
|
|
19
|
+
"paddingVertical": 4,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"backgroundColor": "hsl(109, 28%, 92%)",
|
|
11
23
|
},
|
|
12
24
|
false,
|
|
13
25
|
]
|
|
@@ -17,6 +29,7 @@ exports[`StatusLabel alignment when alignment prop set to "end" should match sna
|
|
|
17
29
|
style={
|
|
18
30
|
{
|
|
19
31
|
"flexShrink": 1,
|
|
32
|
+
"marginBottom": -1,
|
|
20
33
|
}
|
|
21
34
|
}
|
|
22
35
|
>
|
|
@@ -25,7 +38,6 @@ exports[`StatusLabel alignment when alignment prop set to "end" should match sna
|
|
|
25
38
|
adjustsFontSizeToFit={false}
|
|
26
39
|
allowFontScaling={true}
|
|
27
40
|
collapsable={false}
|
|
28
|
-
maxFontSizeMultiplier={1.1428571428571428}
|
|
29
41
|
selectable={true}
|
|
30
42
|
selectionColor="hsl(86, 100%, 46%)"
|
|
31
43
|
style={
|
|
@@ -34,13 +46,13 @@ exports[`StatusLabel alignment when alignment prop set to "end" should match sna
|
|
|
34
46
|
"fontFamily": "inter-medium",
|
|
35
47
|
},
|
|
36
48
|
{
|
|
37
|
-
"color": "hsl(
|
|
49
|
+
"color": "hsl(107, 64%, 16%)",
|
|
38
50
|
},
|
|
39
51
|
{
|
|
40
52
|
"textAlign": "right",
|
|
41
53
|
},
|
|
42
54
|
{
|
|
43
|
-
"fontSize":
|
|
55
|
+
"fontSize": 12,
|
|
44
56
|
"lineHeight": 18,
|
|
45
57
|
},
|
|
46
58
|
{
|
|
@@ -52,29 +64,21 @@ exports[`StatusLabel alignment when alignment prop set to "end" should match sna
|
|
|
52
64
|
End Aligned
|
|
53
65
|
</Text>
|
|
54
66
|
</View>
|
|
55
|
-
<View
|
|
56
|
-
style={
|
|
57
|
-
{
|
|
58
|
-
"width": 8,
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/>
|
|
62
67
|
<View
|
|
63
68
|
style={
|
|
64
69
|
[
|
|
65
70
|
{
|
|
66
71
|
"backgroundColor": "hsl(107, 58%, 33%)",
|
|
67
|
-
"borderRadius":
|
|
68
|
-
"height":
|
|
69
|
-
"
|
|
70
|
-
"width": 12,
|
|
72
|
+
"borderRadius": 100,
|
|
73
|
+
"height": 8,
|
|
74
|
+
"width": 8,
|
|
71
75
|
},
|
|
72
76
|
{
|
|
73
77
|
"backgroundColor": "hsl(107, 58%, 33%)",
|
|
74
78
|
},
|
|
75
79
|
]
|
|
76
80
|
}
|
|
77
|
-
testID="
|
|
81
|
+
testID="successIndicator"
|
|
78
82
|
/>
|
|
79
83
|
</View>
|
|
80
84
|
`;
|
|
@@ -84,9 +88,21 @@ exports[`StatusLabel alignment when alignment prop set to default ("start") shou
|
|
|
84
88
|
style={
|
|
85
89
|
[
|
|
86
90
|
{
|
|
91
|
+
"alignItems": "center",
|
|
92
|
+
"alignSelf": "flex-start",
|
|
93
|
+
"backgroundColor": "hsl(109, 28%, 92%)",
|
|
94
|
+
"borderRadius": 16,
|
|
87
95
|
"flexDirection": "row",
|
|
96
|
+
"flexGrow": 0,
|
|
97
|
+
"flexShrink": 1,
|
|
88
98
|
"flexWrap": "nowrap",
|
|
99
|
+
"gap": 4,
|
|
89
100
|
"justifyContent": "flex-end",
|
|
101
|
+
"paddingHorizontal": 8,
|
|
102
|
+
"paddingVertical": 4,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"backgroundColor": "hsl(109, 28%, 92%)",
|
|
90
106
|
},
|
|
91
107
|
false,
|
|
92
108
|
]
|
|
@@ -96,6 +112,7 @@ exports[`StatusLabel alignment when alignment prop set to default ("start") shou
|
|
|
96
112
|
style={
|
|
97
113
|
{
|
|
98
114
|
"flexShrink": 1,
|
|
115
|
+
"marginBottom": -1,
|
|
99
116
|
}
|
|
100
117
|
}
|
|
101
118
|
>
|
|
@@ -104,7 +121,6 @@ exports[`StatusLabel alignment when alignment prop set to default ("start") shou
|
|
|
104
121
|
adjustsFontSizeToFit={false}
|
|
105
122
|
allowFontScaling={true}
|
|
106
123
|
collapsable={false}
|
|
107
|
-
maxFontSizeMultiplier={1.1428571428571428}
|
|
108
124
|
selectable={true}
|
|
109
125
|
selectionColor="hsl(86, 100%, 46%)"
|
|
110
126
|
style={
|
|
@@ -113,13 +129,13 @@ exports[`StatusLabel alignment when alignment prop set to default ("start") shou
|
|
|
113
129
|
"fontFamily": "inter-medium",
|
|
114
130
|
},
|
|
115
131
|
{
|
|
116
|
-
"color": "hsl(
|
|
132
|
+
"color": "hsl(107, 64%, 16%)",
|
|
117
133
|
},
|
|
118
134
|
{
|
|
119
135
|
"textAlign": "right",
|
|
120
136
|
},
|
|
121
137
|
{
|
|
122
|
-
"fontSize":
|
|
138
|
+
"fontSize": 12,
|
|
123
139
|
"lineHeight": 18,
|
|
124
140
|
},
|
|
125
141
|
{
|
|
@@ -131,29 +147,21 @@ exports[`StatusLabel alignment when alignment prop set to default ("start") shou
|
|
|
131
147
|
Start Aligned
|
|
132
148
|
</Text>
|
|
133
149
|
</View>
|
|
134
|
-
<View
|
|
135
|
-
style={
|
|
136
|
-
{
|
|
137
|
-
"width": 8,
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
/>
|
|
141
150
|
<View
|
|
142
151
|
style={
|
|
143
152
|
[
|
|
144
153
|
{
|
|
145
154
|
"backgroundColor": "hsl(107, 58%, 33%)",
|
|
146
|
-
"borderRadius":
|
|
147
|
-
"height":
|
|
148
|
-
"
|
|
149
|
-
"width": 12,
|
|
155
|
+
"borderRadius": 100,
|
|
156
|
+
"height": 8,
|
|
157
|
+
"width": 8,
|
|
150
158
|
},
|
|
151
159
|
{
|
|
152
160
|
"backgroundColor": "hsl(107, 58%, 33%)",
|
|
153
161
|
},
|
|
154
162
|
]
|
|
155
163
|
}
|
|
156
|
-
testID="
|
|
164
|
+
testID="successIndicator"
|
|
157
165
|
/>
|
|
158
166
|
</View>
|
|
159
167
|
`;
|
|
@@ -163,9 +171,21 @@ exports[`StatusLabel status when status prop set to "critical" should match snap
|
|
|
163
171
|
style={
|
|
164
172
|
[
|
|
165
173
|
{
|
|
174
|
+
"alignItems": "center",
|
|
175
|
+
"alignSelf": "flex-start",
|
|
176
|
+
"backgroundColor": "hsl(109, 28%, 92%)",
|
|
177
|
+
"borderRadius": 16,
|
|
166
178
|
"flexDirection": "row",
|
|
179
|
+
"flexGrow": 0,
|
|
180
|
+
"flexShrink": 1,
|
|
167
181
|
"flexWrap": "nowrap",
|
|
182
|
+
"gap": 4,
|
|
168
183
|
"justifyContent": "flex-end",
|
|
184
|
+
"paddingHorizontal": 8,
|
|
185
|
+
"paddingVertical": 4,
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"backgroundColor": "hsl(7, 63%, 95%)",
|
|
169
189
|
},
|
|
170
190
|
false,
|
|
171
191
|
]
|
|
@@ -175,6 +195,7 @@ exports[`StatusLabel status when status prop set to "critical" should match snap
|
|
|
175
195
|
style={
|
|
176
196
|
{
|
|
177
197
|
"flexShrink": 1,
|
|
198
|
+
"marginBottom": -1,
|
|
178
199
|
}
|
|
179
200
|
}
|
|
180
201
|
>
|
|
@@ -183,7 +204,6 @@ exports[`StatusLabel status when status prop set to "critical" should match snap
|
|
|
183
204
|
adjustsFontSizeToFit={false}
|
|
184
205
|
allowFontScaling={true}
|
|
185
206
|
collapsable={false}
|
|
186
|
-
maxFontSizeMultiplier={1.1428571428571428}
|
|
187
207
|
selectable={true}
|
|
188
208
|
selectionColor="hsl(86, 100%, 46%)"
|
|
189
209
|
style={
|
|
@@ -192,13 +212,13 @@ exports[`StatusLabel status when status prop set to "critical" should match snap
|
|
|
192
212
|
"fontFamily": "inter-medium",
|
|
193
213
|
},
|
|
194
214
|
{
|
|
195
|
-
"color": "hsl(
|
|
215
|
+
"color": "hsl(6, 100%, 24%)",
|
|
196
216
|
},
|
|
197
217
|
{
|
|
198
218
|
"textAlign": "right",
|
|
199
219
|
},
|
|
200
220
|
{
|
|
201
|
-
"fontSize":
|
|
221
|
+
"fontSize": 12,
|
|
202
222
|
"lineHeight": 18,
|
|
203
223
|
},
|
|
204
224
|
{
|
|
@@ -210,29 +230,21 @@ exports[`StatusLabel status when status prop set to "critical" should match snap
|
|
|
210
230
|
Critical
|
|
211
231
|
</Text>
|
|
212
232
|
</View>
|
|
213
|
-
<View
|
|
214
|
-
style={
|
|
215
|
-
{
|
|
216
|
-
"width": 8,
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
/>
|
|
220
233
|
<View
|
|
221
234
|
style={
|
|
222
235
|
[
|
|
223
236
|
{
|
|
224
237
|
"backgroundColor": "hsl(107, 58%, 33%)",
|
|
225
|
-
"borderRadius":
|
|
226
|
-
"height":
|
|
227
|
-
"
|
|
228
|
-
"width": 12,
|
|
238
|
+
"borderRadius": 100,
|
|
239
|
+
"height": 8,
|
|
240
|
+
"width": 8,
|
|
229
241
|
},
|
|
230
242
|
{
|
|
231
243
|
"backgroundColor": "hsl(6, 64%, 51%)",
|
|
232
244
|
},
|
|
233
245
|
]
|
|
234
246
|
}
|
|
235
|
-
testID="
|
|
247
|
+
testID="criticalIndicator"
|
|
236
248
|
/>
|
|
237
249
|
</View>
|
|
238
250
|
`;
|
|
@@ -242,9 +254,21 @@ exports[`StatusLabel status when status prop set to "inactive" should match snap
|
|
|
242
254
|
style={
|
|
243
255
|
[
|
|
244
256
|
{
|
|
257
|
+
"alignItems": "center",
|
|
258
|
+
"alignSelf": "flex-start",
|
|
259
|
+
"backgroundColor": "hsl(109, 28%, 92%)",
|
|
260
|
+
"borderRadius": 16,
|
|
245
261
|
"flexDirection": "row",
|
|
262
|
+
"flexGrow": 0,
|
|
263
|
+
"flexShrink": 1,
|
|
246
264
|
"flexWrap": "nowrap",
|
|
265
|
+
"gap": 4,
|
|
247
266
|
"justifyContent": "flex-end",
|
|
267
|
+
"paddingHorizontal": 8,
|
|
268
|
+
"paddingVertical": 4,
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"backgroundColor": "hsl(195, 12%, 94%)",
|
|
248
272
|
},
|
|
249
273
|
false,
|
|
250
274
|
]
|
|
@@ -254,6 +278,7 @@ exports[`StatusLabel status when status prop set to "inactive" should match snap
|
|
|
254
278
|
style={
|
|
255
279
|
{
|
|
256
280
|
"flexShrink": 1,
|
|
281
|
+
"marginBottom": -1,
|
|
257
282
|
}
|
|
258
283
|
}
|
|
259
284
|
>
|
|
@@ -262,7 +287,6 @@ exports[`StatusLabel status when status prop set to "inactive" should match snap
|
|
|
262
287
|
adjustsFontSizeToFit={false}
|
|
263
288
|
allowFontScaling={true}
|
|
264
289
|
collapsable={false}
|
|
265
|
-
maxFontSizeMultiplier={1.1428571428571428}
|
|
266
290
|
selectable={true}
|
|
267
291
|
selectionColor="hsl(86, 100%, 46%)"
|
|
268
292
|
style={
|
|
@@ -271,13 +295,13 @@ exports[`StatusLabel status when status prop set to "inactive" should match snap
|
|
|
271
295
|
"fontFamily": "inter-medium",
|
|
272
296
|
},
|
|
273
297
|
{
|
|
274
|
-
"color": "hsl(197,
|
|
298
|
+
"color": "hsl(197, 90%, 12%)",
|
|
275
299
|
},
|
|
276
300
|
{
|
|
277
301
|
"textAlign": "right",
|
|
278
302
|
},
|
|
279
303
|
{
|
|
280
|
-
"fontSize":
|
|
304
|
+
"fontSize": 12,
|
|
281
305
|
"lineHeight": 18,
|
|
282
306
|
},
|
|
283
307
|
{
|
|
@@ -289,29 +313,21 @@ exports[`StatusLabel status when status prop set to "inactive" should match snap
|
|
|
289
313
|
Inactive
|
|
290
314
|
</Text>
|
|
291
315
|
</View>
|
|
292
|
-
<View
|
|
293
|
-
style={
|
|
294
|
-
{
|
|
295
|
-
"width": 8,
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
/>
|
|
299
316
|
<View
|
|
300
317
|
style={
|
|
301
318
|
[
|
|
302
319
|
{
|
|
303
320
|
"backgroundColor": "hsl(107, 58%, 33%)",
|
|
304
|
-
"borderRadius":
|
|
305
|
-
"height":
|
|
306
|
-
"
|
|
307
|
-
"width": 12,
|
|
321
|
+
"borderRadius": 100,
|
|
322
|
+
"height": 8,
|
|
323
|
+
"width": 8,
|
|
308
324
|
},
|
|
309
325
|
{
|
|
310
326
|
"backgroundColor": "hsl(198, 25%, 33%)",
|
|
311
327
|
},
|
|
312
328
|
]
|
|
313
329
|
}
|
|
314
|
-
testID="
|
|
330
|
+
testID="inactiveIndicator"
|
|
315
331
|
/>
|
|
316
332
|
</View>
|
|
317
333
|
`;
|
|
@@ -321,9 +337,21 @@ exports[`StatusLabel status when status prop set to "informative" should match s
|
|
|
321
337
|
style={
|
|
322
338
|
[
|
|
323
339
|
{
|
|
340
|
+
"alignItems": "center",
|
|
341
|
+
"alignSelf": "flex-start",
|
|
342
|
+
"backgroundColor": "hsl(109, 28%, 92%)",
|
|
343
|
+
"borderRadius": 16,
|
|
324
344
|
"flexDirection": "row",
|
|
345
|
+
"flexGrow": 0,
|
|
346
|
+
"flexShrink": 1,
|
|
325
347
|
"flexWrap": "nowrap",
|
|
348
|
+
"gap": 4,
|
|
326
349
|
"justifyContent": "flex-end",
|
|
350
|
+
"paddingHorizontal": 8,
|
|
351
|
+
"paddingVertical": 4,
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"backgroundColor": "hsl(207, 87%, 94%)",
|
|
327
355
|
},
|
|
328
356
|
false,
|
|
329
357
|
]
|
|
@@ -333,6 +361,7 @@ exports[`StatusLabel status when status prop set to "informative" should match s
|
|
|
333
361
|
style={
|
|
334
362
|
{
|
|
335
363
|
"flexShrink": 1,
|
|
364
|
+
"marginBottom": -1,
|
|
336
365
|
}
|
|
337
366
|
}
|
|
338
367
|
>
|
|
@@ -341,7 +370,6 @@ exports[`StatusLabel status when status prop set to "informative" should match s
|
|
|
341
370
|
adjustsFontSizeToFit={false}
|
|
342
371
|
allowFontScaling={true}
|
|
343
372
|
collapsable={false}
|
|
344
|
-
maxFontSizeMultiplier={1.1428571428571428}
|
|
345
373
|
selectable={true}
|
|
346
374
|
selectionColor="hsl(86, 100%, 46%)"
|
|
347
375
|
style={
|
|
@@ -350,13 +378,13 @@ exports[`StatusLabel status when status prop set to "informative" should match s
|
|
|
350
378
|
"fontFamily": "inter-medium",
|
|
351
379
|
},
|
|
352
380
|
{
|
|
353
|
-
"color": "hsl(
|
|
381
|
+
"color": "hsl(207, 61%, 34%)",
|
|
354
382
|
},
|
|
355
383
|
{
|
|
356
384
|
"textAlign": "right",
|
|
357
385
|
},
|
|
358
386
|
{
|
|
359
|
-
"fontSize":
|
|
387
|
+
"fontSize": 12,
|
|
360
388
|
"lineHeight": 18,
|
|
361
389
|
},
|
|
362
390
|
{
|
|
@@ -368,29 +396,21 @@ exports[`StatusLabel status when status prop set to "informative" should match s
|
|
|
368
396
|
Informative
|
|
369
397
|
</Text>
|
|
370
398
|
</View>
|
|
371
|
-
<View
|
|
372
|
-
style={
|
|
373
|
-
{
|
|
374
|
-
"width": 8,
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
/>
|
|
378
399
|
<View
|
|
379
400
|
style={
|
|
380
401
|
[
|
|
381
402
|
{
|
|
382
403
|
"backgroundColor": "hsl(107, 58%, 33%)",
|
|
383
|
-
"borderRadius":
|
|
384
|
-
"height":
|
|
385
|
-
"
|
|
386
|
-
"width": 12,
|
|
404
|
+
"borderRadius": 100,
|
|
405
|
+
"height": 8,
|
|
406
|
+
"width": 8,
|
|
387
407
|
},
|
|
388
408
|
{
|
|
389
409
|
"backgroundColor": "hsl(207, 79%, 57%)",
|
|
390
410
|
},
|
|
391
411
|
]
|
|
392
412
|
}
|
|
393
|
-
testID="
|
|
413
|
+
testID="informativeIndicator"
|
|
394
414
|
/>
|
|
395
415
|
</View>
|
|
396
416
|
`;
|
|
@@ -400,9 +420,21 @@ exports[`StatusLabel status when status prop set to "warning" should match snaps
|
|
|
400
420
|
style={
|
|
401
421
|
[
|
|
402
422
|
{
|
|
423
|
+
"alignItems": "center",
|
|
424
|
+
"alignSelf": "flex-start",
|
|
425
|
+
"backgroundColor": "hsl(109, 28%, 92%)",
|
|
426
|
+
"borderRadius": 16,
|
|
403
427
|
"flexDirection": "row",
|
|
428
|
+
"flexGrow": 0,
|
|
429
|
+
"flexShrink": 1,
|
|
404
430
|
"flexWrap": "nowrap",
|
|
431
|
+
"gap": 4,
|
|
405
432
|
"justifyContent": "flex-end",
|
|
433
|
+
"paddingHorizontal": 8,
|
|
434
|
+
"paddingVertical": 4,
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"backgroundColor": "hsl(52, 64%, 89%)",
|
|
406
438
|
},
|
|
407
439
|
false,
|
|
408
440
|
]
|
|
@@ -412,6 +444,7 @@ exports[`StatusLabel status when status prop set to "warning" should match snaps
|
|
|
412
444
|
style={
|
|
413
445
|
{
|
|
414
446
|
"flexShrink": 1,
|
|
447
|
+
"marginBottom": -1,
|
|
415
448
|
}
|
|
416
449
|
}
|
|
417
450
|
>
|
|
@@ -420,7 +453,6 @@ exports[`StatusLabel status when status prop set to "warning" should match snaps
|
|
|
420
453
|
adjustsFontSizeToFit={false}
|
|
421
454
|
allowFontScaling={true}
|
|
422
455
|
collapsable={false}
|
|
423
|
-
maxFontSizeMultiplier={1.1428571428571428}
|
|
424
456
|
selectable={true}
|
|
425
457
|
selectionColor="hsl(86, 100%, 46%)"
|
|
426
458
|
style={
|
|
@@ -429,13 +461,13 @@ exports[`StatusLabel status when status prop set to "warning" should match snaps
|
|
|
429
461
|
"fontFamily": "inter-medium",
|
|
430
462
|
},
|
|
431
463
|
{
|
|
432
|
-
"color": "hsl(
|
|
464
|
+
"color": "hsl(51, 64%, 24%)",
|
|
433
465
|
},
|
|
434
466
|
{
|
|
435
467
|
"textAlign": "right",
|
|
436
468
|
},
|
|
437
469
|
{
|
|
438
|
-
"fontSize":
|
|
470
|
+
"fontSize": 12,
|
|
439
471
|
"lineHeight": 18,
|
|
440
472
|
},
|
|
441
473
|
{
|
|
@@ -447,29 +479,21 @@ exports[`StatusLabel status when status prop set to "warning" should match snaps
|
|
|
447
479
|
Warning
|
|
448
480
|
</Text>
|
|
449
481
|
</View>
|
|
450
|
-
<View
|
|
451
|
-
style={
|
|
452
|
-
{
|
|
453
|
-
"width": 8,
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
/>
|
|
457
482
|
<View
|
|
458
483
|
style={
|
|
459
484
|
[
|
|
460
485
|
{
|
|
461
486
|
"backgroundColor": "hsl(107, 58%, 33%)",
|
|
462
|
-
"borderRadius":
|
|
463
|
-
"height":
|
|
464
|
-
"
|
|
465
|
-
"width": 12,
|
|
487
|
+
"borderRadius": 100,
|
|
488
|
+
"height": 8,
|
|
489
|
+
"width": 8,
|
|
466
490
|
},
|
|
467
491
|
{
|
|
468
492
|
"backgroundColor": "hsl(51, 64%, 49%)",
|
|
469
493
|
},
|
|
470
494
|
]
|
|
471
495
|
}
|
|
472
|
-
testID="
|
|
496
|
+
testID="warningIndicator"
|
|
473
497
|
/>
|
|
474
498
|
</View>
|
|
475
499
|
`;
|
|
@@ -479,9 +503,21 @@ exports[`StatusLabel status when status prop set to default ("success") should m
|
|
|
479
503
|
style={
|
|
480
504
|
[
|
|
481
505
|
{
|
|
506
|
+
"alignItems": "center",
|
|
507
|
+
"alignSelf": "flex-start",
|
|
508
|
+
"backgroundColor": "hsl(109, 28%, 92%)",
|
|
509
|
+
"borderRadius": 16,
|
|
482
510
|
"flexDirection": "row",
|
|
511
|
+
"flexGrow": 0,
|
|
512
|
+
"flexShrink": 1,
|
|
483
513
|
"flexWrap": "nowrap",
|
|
514
|
+
"gap": 4,
|
|
484
515
|
"justifyContent": "flex-end",
|
|
516
|
+
"paddingHorizontal": 8,
|
|
517
|
+
"paddingVertical": 4,
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"backgroundColor": "hsl(109, 28%, 92%)",
|
|
485
521
|
},
|
|
486
522
|
false,
|
|
487
523
|
]
|
|
@@ -491,6 +527,7 @@ exports[`StatusLabel status when status prop set to default ("success") should m
|
|
|
491
527
|
style={
|
|
492
528
|
{
|
|
493
529
|
"flexShrink": 1,
|
|
530
|
+
"marginBottom": -1,
|
|
494
531
|
}
|
|
495
532
|
}
|
|
496
533
|
>
|
|
@@ -499,7 +536,6 @@ exports[`StatusLabel status when status prop set to default ("success") should m
|
|
|
499
536
|
adjustsFontSizeToFit={false}
|
|
500
537
|
allowFontScaling={true}
|
|
501
538
|
collapsable={false}
|
|
502
|
-
maxFontSizeMultiplier={1.1428571428571428}
|
|
503
539
|
selectable={true}
|
|
504
540
|
selectionColor="hsl(86, 100%, 46%)"
|
|
505
541
|
style={
|
|
@@ -508,13 +544,13 @@ exports[`StatusLabel status when status prop set to default ("success") should m
|
|
|
508
544
|
"fontFamily": "inter-medium",
|
|
509
545
|
},
|
|
510
546
|
{
|
|
511
|
-
"color": "hsl(
|
|
547
|
+
"color": "hsl(107, 64%, 16%)",
|
|
512
548
|
},
|
|
513
549
|
{
|
|
514
550
|
"textAlign": "right",
|
|
515
551
|
},
|
|
516
552
|
{
|
|
517
|
-
"fontSize":
|
|
553
|
+
"fontSize": 12,
|
|
518
554
|
"lineHeight": 18,
|
|
519
555
|
},
|
|
520
556
|
{
|
|
@@ -526,29 +562,21 @@ exports[`StatusLabel status when status prop set to default ("success") should m
|
|
|
526
562
|
Success
|
|
527
563
|
</Text>
|
|
528
564
|
</View>
|
|
529
|
-
<View
|
|
530
|
-
style={
|
|
531
|
-
{
|
|
532
|
-
"width": 8,
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
/>
|
|
536
565
|
<View
|
|
537
566
|
style={
|
|
538
567
|
[
|
|
539
568
|
{
|
|
540
569
|
"backgroundColor": "hsl(107, 58%, 33%)",
|
|
541
|
-
"borderRadius":
|
|
542
|
-
"height":
|
|
543
|
-
"
|
|
544
|
-
"width": 12,
|
|
570
|
+
"borderRadius": 100,
|
|
571
|
+
"height": 8,
|
|
572
|
+
"width": 8,
|
|
545
573
|
},
|
|
546
574
|
{
|
|
547
575
|
"backgroundColor": "hsl(107, 58%, 33%)",
|
|
548
576
|
},
|
|
549
577
|
]
|
|
550
578
|
}
|
|
551
|
-
testID="
|
|
579
|
+
testID="successIndicator"
|
|
552
580
|
/>
|
|
553
581
|
</View>
|
|
554
582
|
`;
|