@hero-design/rn 8.34.1 → 8.34.2

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 (33) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/es/index.js +150 -175
  3. package/lib/index.js +150 -175
  4. package/package.json +7 -7
  5. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  6. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  7. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  8. package/src/components/FAB/FAB.tsx +1 -0
  9. package/src/components/FAB/StyledFAB.tsx +20 -16
  10. package/src/components/FAB/__tests__/StyledFAB.spec.tsx +11 -1
  11. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +57 -0
  12. package/src/components/List/StyledListItem.tsx +1 -1
  13. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +4 -0
  14. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -0
  15. package/src/components/Progress/StyledProgressBar.tsx +1 -0
  16. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +46 -44
  17. package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +4 -7
  18. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  19. package/src/components/Switch/SelectorSwitch/index.tsx +7 -15
  20. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +12 -12
  21. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +4 -4
  22. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +9 -8
  23. package/src/theme/components/fab.ts +1 -0
  24. package/src/theme/components/list.ts +1 -1
  25. package/src/theme/components/progress.ts +2 -2
  26. package/src/theme/components/switch.ts +4 -4
  27. package/src/theme/components/tabs.ts +1 -1
  28. package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +4 -4
  29. package/src/theme/global/colors/work.ts +4 -4
  30. package/types/components/FAB/StyledFAB.d.ts +2 -0
  31. package/types/theme/components/fab.d.ts +1 -0
  32. package/types/theme/components/list.d.ts +1 -1
  33. package/types/theme/components/switch.d.ts +1 -1
@@ -34,7 +34,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
34
34
  onStartShouldSetResponder={[Function]}
35
35
  style={
36
36
  Object {
37
- "backgroundColor": "#48000a",
37
+ "backgroundColor": "#001f23",
38
38
  "borderRadius": 999,
39
39
  "height": 32,
40
40
  "left": 0,
@@ -111,7 +111,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
111
111
  onStartShouldSetResponder={[Function]}
112
112
  style={
113
113
  Object {
114
- "backgroundColor": "#737479",
114
+ "backgroundColor": "#0d2a2e",
115
115
  "borderRadius": 999,
116
116
  "height": 32,
117
117
  "left": 22.4,
@@ -188,7 +188,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
188
188
  onStartShouldSetResponder={[Function]}
189
189
  style={
190
190
  Object {
191
- "backgroundColor": "#001f23",
191
+ "backgroundColor": "#193539",
192
192
  "borderRadius": 999,
193
193
  "height": 32,
194
194
  "left": 44.8,
@@ -265,7 +265,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
265
265
  onStartShouldSetResponder={[Function]}
266
266
  style={
267
267
  Object {
268
- "backgroundColor": "#353957",
268
+ "backgroundColor": "#264144",
269
269
  "borderRadius": 999,
270
270
  "height": 32,
271
271
  "left": 67.19999999999999,
@@ -342,7 +342,7 @@ exports[`AvatarStack renders correctly by default 1`] = `
342
342
  onStartShouldSetResponder={[Function]}
343
343
  style={
344
344
  Object {
345
- "backgroundColor": "#25006e",
345
+ "backgroundColor": "#334c4f",
346
346
  "borderRadius": 999,
347
347
  "height": 32,
348
348
  "left": 89.6,
@@ -438,7 +438,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
438
438
  onStartShouldSetResponder={[Function]}
439
439
  style={
440
440
  Object {
441
- "backgroundColor": "#48000a",
441
+ "backgroundColor": "#001f23",
442
442
  "borderRadius": 999,
443
443
  "height": 40,
444
444
  "left": 0,
@@ -515,7 +515,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
515
515
  onStartShouldSetResponder={[Function]}
516
516
  style={
517
517
  Object {
518
- "backgroundColor": "#737479",
518
+ "backgroundColor": "#0d2a2e",
519
519
  "borderRadius": 999,
520
520
  "height": 40,
521
521
  "left": 28,
@@ -592,7 +592,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
592
592
  onStartShouldSetResponder={[Function]}
593
593
  style={
594
594
  Object {
595
- "backgroundColor": "#001f23",
595
+ "backgroundColor": "#193539",
596
596
  "borderRadius": 999,
597
597
  "height": 40,
598
598
  "left": 56,
@@ -669,7 +669,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
669
669
  onStartShouldSetResponder={[Function]}
670
670
  style={
671
671
  Object {
672
- "backgroundColor": "#353957",
672
+ "backgroundColor": "#264144",
673
673
  "borderRadius": 999,
674
674
  "height": 40,
675
675
  "left": 84,
@@ -764,7 +764,7 @@ exports[`ActionGroup has active true 1`] = `
764
764
  "backgroundColor": "#000000",
765
765
  "bottom": 0,
766
766
  "left": 0,
767
- "opacity": 0.4,
767
+ "opacity": 0.25,
768
768
  "position": "absolute",
769
769
  "right": 0,
770
770
  "top": 0,
@@ -1373,7 +1373,7 @@ exports[`ActionGroup has active true 1`] = `
1373
1373
  Object {
1374
1374
  "alignItems": "center",
1375
1375
  "alignSelf": "flex-start",
1376
- "backgroundColor": "#401960",
1376
+ "backgroundColor": "#664780",
1377
1377
  "borderRadius": 999,
1378
1378
  "elevation": 2,
1379
1379
  "flexDirection": "row",
@@ -114,7 +114,7 @@ const ActionGroup = forwardRef<ActionGroupHandles, ActionGroupProps>(
114
114
  const interpolatedBackdropOpacityAnimation =
115
115
  tranlateXAnimation.current.interpolate({
116
116
  inputRange: [0, 1],
117
- outputRange: [0, 0.4],
117
+ outputRange: [0, 0.25],
118
118
  });
119
119
 
120
120
  const interpolatedActionGroupOpacityAnimation =
@@ -175,6 +175,7 @@ const FAB = forwardRef<FABHandles, FABProps>(
175
175
  },
176
176
  ]}
177
177
  testID={testID}
178
+ themeActive={active}
178
179
  >
179
180
  {isIconOnly ? (
180
181
  <IconOnlyContent
@@ -6,22 +6,26 @@ import Icon from '../Icon';
6
6
  import Typography from '../Typography';
7
7
  import Box from '../Box';
8
8
 
9
- const StyledFAB = styled(TouchableHighlight)<TouchableHighlightProps>(
10
- ({ theme }) => ({
11
- backgroundColor: theme.__hd__.fab.colors.buttonBackground,
12
- borderRadius: theme.radii.rounded,
13
- alignItems: 'center',
14
- justifyContent: 'center',
15
- alignSelf: 'flex-start',
16
- padding: theme.__hd__.fab.space.containerPadding,
17
- flexDirection: 'row',
18
- elevation: theme.__hd__.fab.shadows.elevation,
19
- shadowColor: theme.__hd__.fab.colors.shadow,
20
- shadowOffset: theme.__hd__.fab.shadows.offset,
21
- shadowRadius: theme.__hd__.fab.shadows.radius,
22
- shadowOpacity: theme.__hd__.fab.shadows.opacity,
23
- })
24
- );
9
+ const StyledFAB = styled(TouchableHighlight)<
10
+ TouchableHighlightProps & {
11
+ themeActive?: boolean;
12
+ }
13
+ >(({ theme, themeActive }) => ({
14
+ backgroundColor: themeActive
15
+ ? theme.__hd__.fab.colors.buttonActiveBackground
16
+ : theme.__hd__.fab.colors.buttonBackground,
17
+ borderRadius: theme.radii.rounded,
18
+ alignItems: 'center',
19
+ justifyContent: 'center',
20
+ alignSelf: 'flex-start',
21
+ padding: theme.__hd__.fab.space.containerPadding,
22
+ flexDirection: 'row',
23
+ elevation: theme.__hd__.fab.shadows.elevation,
24
+ shadowColor: theme.__hd__.fab.colors.shadow,
25
+ shadowOffset: theme.__hd__.fab.shadows.offset,
26
+ shadowRadius: theme.__hd__.fab.shadows.radius,
27
+ shadowOpacity: theme.__hd__.fab.shadows.opacity,
28
+ }));
25
29
 
26
30
  const StyledFABIcon = styled(Icon)<IconProps>(({ theme }) => ({
27
31
  color: theme.__hd__.fab.colors.icon,
@@ -6,7 +6,17 @@ import { StyledFAB, StyledFABIcon } from '../StyledFAB';
6
6
  describe('StyledFAB', () => {
7
7
  it('renders correctly', () => {
8
8
  const { toJSON } = renderWithTheme(
9
- <StyledFAB>
9
+ <StyledFAB themeActive={false}>
10
+ <Typography.Body variant="small"> button </Typography.Body>
11
+ </StyledFAB>
12
+ );
13
+
14
+ expect(toJSON()).toMatchSnapshot();
15
+ });
16
+
17
+ it('renders correctly', () => {
18
+ const { toJSON } = renderWithTheme(
19
+ <StyledFAB themeActive>
10
20
  <Typography.Body variant="small"> button </Typography.Body>
11
21
  </StyledFAB>
12
22
  );
@@ -57,6 +57,63 @@ exports[`StyledFAB renders correctly 1`] = `
57
57
  </View>
58
58
  `;
59
59
 
60
+ exports[`StyledFAB renders correctly 2`] = `
61
+ <View
62
+ accessible={true}
63
+ focusable={false}
64
+ onClick={[Function]}
65
+ onResponderGrant={[Function]}
66
+ onResponderMove={[Function]}
67
+ onResponderRelease={[Function]}
68
+ onResponderTerminate={[Function]}
69
+ onResponderTerminationRequest={[Function]}
70
+ onStartShouldSetResponder={[Function]}
71
+ style={
72
+ Array [
73
+ Object {
74
+ "alignItems": "center",
75
+ "alignSelf": "flex-start",
76
+ "backgroundColor": "#664780",
77
+ "borderRadius": 999,
78
+ "elevation": 2,
79
+ "flexDirection": "row",
80
+ "justifyContent": "center",
81
+ "padding": 20,
82
+ "shadowColor": "#001f23",
83
+ "shadowOffset": Object {
84
+ "height": 2,
85
+ "width": 0,
86
+ },
87
+ "shadowOpacity": 0.12,
88
+ "shadowRadius": 8,
89
+ },
90
+ undefined,
91
+ ]
92
+ }
93
+ >
94
+ <Text
95
+ allowFontScaling={false}
96
+ style={
97
+ Array [
98
+ Object {
99
+ "color": "#001f23",
100
+ "fontFamily": "BeVietnamPro-Regular",
101
+ "fontSize": 14,
102
+ "letterSpacing": 0.48,
103
+ "lineHeight": 22,
104
+ },
105
+ undefined,
106
+ ]
107
+ }
108
+ themeIntent="body"
109
+ themeTypeface="neutral"
110
+ themeVariant="small"
111
+ >
112
+ button
113
+ </Text>
114
+ </View>
115
+ `;
116
+
60
117
  exports[`StyledFABIcon renders correctly 1`] = `
61
118
  <HeroIcon
62
119
  name="add"
@@ -19,6 +19,7 @@ const StyledListItemContainer = styled(TouchableHighlight)<{
19
19
  ? theme.__hd__.list.colors.checkedListItemContainerBackground
20
20
  : theme.__hd__.list.colors.listItemContainerBackground,
21
21
  padding: theme.__hd__.list.space.listItemContainerPadding,
22
+ borderRadius: theme.__hd__.list.radii.item,
22
23
  };
23
24
 
24
25
  switch (themeVariant) {
@@ -28,7 +29,6 @@ const StyledListItemContainer = styled(TouchableHighlight)<{
28
29
  return {
29
30
  ...sharedStyles,
30
31
  alignItems: 'center',
31
- borderRadius: theme.__hd__.list.radii.card,
32
32
  shadowColor: theme.colors.secondaryOutline,
33
33
  shadowRadius: theme.__hd__.list.radii.cardShadow,
34
34
  shadowOffset: theme.__hd__.list.shadows.cardOffset,
@@ -20,6 +20,7 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
20
20
  Array [
21
21
  Object {
22
22
  "backgroundColor": "#ffffff",
23
+ "borderRadius": 8,
23
24
  "flexDirection": "row",
24
25
  "padding": 16,
25
26
  },
@@ -346,6 +347,7 @@ exports[`ListItem renders correctly ListItem with icon 1`] = `
346
347
  Array [
347
348
  Object {
348
349
  "backgroundColor": "#ffffff",
350
+ "borderRadius": 8,
349
351
  "flexDirection": "row",
350
352
  "padding": 16,
351
353
  },
@@ -474,6 +476,7 @@ exports[`ListItem renders correctly ListItem with leading status 1`] = `
474
476
  Array [
475
477
  Object {
476
478
  "backgroundColor": "#ffffff",
479
+ "borderRadius": 8,
477
480
  "flexDirection": "row",
478
481
  "padding": 16,
479
482
  },
@@ -597,6 +600,7 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
597
600
  Array [
598
601
  Object {
599
602
  "backgroundColor": "#ffffff",
603
+ "borderRadius": 8,
600
604
  "flexDirection": "row",
601
605
  "padding": 16,
602
606
  },
@@ -155,6 +155,7 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant fu
155
155
  Array [
156
156
  Object {
157
157
  "backgroundColor": "#ffffff",
158
+ "borderRadius": 8,
158
159
  "flexDirection": "row",
159
160
  "padding": 16,
160
161
  },
@@ -255,6 +256,7 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant ful
255
256
  Array [
256
257
  Object {
257
258
  "backgroundColor": "#ece8ef",
259
+ "borderRadius": 8,
258
260
  "flexDirection": "row",
259
261
  "padding": 16,
260
262
  },
@@ -13,6 +13,7 @@ const StyledWrapper = styled(View)<ViewProps & { themeIntent: ThemeIntent }>(
13
13
  THEME_INTENT_MAP[themeIntent]
14
14
  ],
15
15
  overflow: 'hidden',
16
+ borderRadius: theme.__hd__.progress.radii.default,
16
17
  })
17
18
  );
18
19
 
@@ -7,7 +7,8 @@ exports[`Progress.Bar renders correctly 1`] = `
7
7
  Object {
8
8
  "alignSelf": "stretch",
9
9
  "backgroundColor": "#e8e9ea",
10
- "height": 4,
10
+ "borderRadius": 999,
11
+ "height": 8,
11
12
  "overflow": "hidden",
12
13
  },
13
14
  undefined,
@@ -45,7 +46,8 @@ exports[`Progress.Bar renders correctly with intent 1`] = `
45
46
  Object {
46
47
  "alignSelf": "stretch",
47
48
  "backgroundColor": "#e8e9ea",
48
- "height": 4,
49
+ "borderRadius": 999,
50
+ "height": 8,
49
51
  "overflow": "hidden",
50
52
  },
51
53
  undefined,
@@ -110,7 +112,7 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
110
112
  Object {
111
113
  "borderColor": "#5ace7d",
112
114
  "borderRadius": 999,
113
- "borderWidth": 4,
115
+ "borderWidth": 8,
114
116
  "height": 72,
115
117
  "width": 72,
116
118
  },
@@ -161,7 +163,7 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
161
163
  Object {
162
164
  "borderColor": "#e8e9ea",
163
165
  "borderRadius": 999,
164
- "borderWidth": 4,
166
+ "borderWidth": 8,
165
167
  "height": 72,
166
168
  "width": 72,
167
169
  },
@@ -204,7 +206,7 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
204
206
  Object {
205
207
  "borderColor": "#5ace7d",
206
208
  "borderRadius": 999,
207
- "borderWidth": 4,
209
+ "borderWidth": 8,
208
210
  "height": 72,
209
211
  "width": 72,
210
212
  },
@@ -256,7 +258,7 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
256
258
  Object {
257
259
  "borderColor": "#e8e9ea",
258
260
  "borderRadius": 999,
259
- "borderWidth": 4,
261
+ "borderWidth": 8,
260
262
  "height": 72,
261
263
  "width": 72,
262
264
  },
@@ -274,11 +276,11 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
274
276
  Object {
275
277
  "backgroundColor": "#5ace7d",
276
278
  "borderRadius": 999,
277
- "height": 4,
278
- "left": 34,
279
+ "height": 8,
280
+ "left": 32,
279
281
  "position": "absolute",
280
282
  "top": 0,
281
- "width": 4,
283
+ "width": 8,
282
284
  "zIndex": 2,
283
285
  },
284
286
  undefined,
@@ -310,11 +312,11 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
310
312
  Object {
311
313
  "backgroundColor": "#5ace7d",
312
314
  "borderRadius": 999,
313
- "height": 4,
314
- "left": 34,
315
+ "height": 8,
316
+ "left": 32,
315
317
  "position": "absolute",
316
318
  "top": 0,
317
- "width": 4,
319
+ "width": 8,
318
320
  "zIndex": 2,
319
321
  },
320
322
  undefined,
@@ -329,12 +331,12 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
329
331
  Object {
330
332
  "alignItems": "center",
331
333
  "borderRadius": 999,
332
- "height": 64,
334
+ "height": 56,
333
335
  "justifyContent": "center",
334
- "left": 4,
336
+ "left": 8,
335
337
  "position": "absolute",
336
- "top": 4,
337
- "width": 64,
338
+ "top": 8,
339
+ "width": 56,
338
340
  "zIndex": 3,
339
341
  },
340
342
  undefined,
@@ -400,7 +402,7 @@ exports[`Progress.Circle renders correctly 1`] = `
400
402
  Object {
401
403
  "borderColor": "#401960",
402
404
  "borderRadius": 999,
403
- "borderWidth": 4,
405
+ "borderWidth": 8,
404
406
  "height": 72,
405
407
  "width": 72,
406
408
  },
@@ -451,7 +453,7 @@ exports[`Progress.Circle renders correctly 1`] = `
451
453
  Object {
452
454
  "borderColor": "#e8e9ea",
453
455
  "borderRadius": 999,
454
- "borderWidth": 4,
456
+ "borderWidth": 8,
455
457
  "height": 72,
456
458
  "width": 72,
457
459
  },
@@ -494,7 +496,7 @@ exports[`Progress.Circle renders correctly 1`] = `
494
496
  Object {
495
497
  "borderColor": "#401960",
496
498
  "borderRadius": 999,
497
- "borderWidth": 4,
499
+ "borderWidth": 8,
498
500
  "height": 72,
499
501
  "width": 72,
500
502
  },
@@ -546,7 +548,7 @@ exports[`Progress.Circle renders correctly 1`] = `
546
548
  Object {
547
549
  "borderColor": "#e8e9ea",
548
550
  "borderRadius": 999,
549
- "borderWidth": 4,
551
+ "borderWidth": 8,
550
552
  "height": 72,
551
553
  "width": 72,
552
554
  },
@@ -564,11 +566,11 @@ exports[`Progress.Circle renders correctly 1`] = `
564
566
  Object {
565
567
  "backgroundColor": "#401960",
566
568
  "borderRadius": 999,
567
- "height": 4,
568
- "left": 34,
569
+ "height": 8,
570
+ "left": 32,
569
571
  "position": "absolute",
570
572
  "top": 0,
571
- "width": 4,
573
+ "width": 8,
572
574
  "zIndex": 2,
573
575
  },
574
576
  undefined,
@@ -600,11 +602,11 @@ exports[`Progress.Circle renders correctly 1`] = `
600
602
  Object {
601
603
  "backgroundColor": "#401960",
602
604
  "borderRadius": 999,
603
- "height": 4,
604
- "left": 34,
605
+ "height": 8,
606
+ "left": 32,
605
607
  "position": "absolute",
606
608
  "top": 0,
607
- "width": 4,
609
+ "width": 8,
608
610
  "zIndex": 2,
609
611
  },
610
612
  undefined,
@@ -619,12 +621,12 @@ exports[`Progress.Circle renders correctly 1`] = `
619
621
  Object {
620
622
  "alignItems": "center",
621
623
  "borderRadius": 999,
622
- "height": 64,
624
+ "height": 56,
623
625
  "justifyContent": "center",
624
- "left": 4,
626
+ "left": 8,
625
627
  "position": "absolute",
626
- "top": 4,
627
- "width": 64,
628
+ "top": 8,
629
+ "width": 56,
628
630
  "zIndex": 3,
629
631
  },
630
632
  undefined,
@@ -690,7 +692,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
690
692
  Object {
691
693
  "borderColor": "#5ace7d",
692
694
  "borderRadius": 999,
693
- "borderWidth": 4,
695
+ "borderWidth": 8,
694
696
  "height": 72,
695
697
  "width": 72,
696
698
  },
@@ -741,7 +743,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
741
743
  Object {
742
744
  "borderColor": "#e8e9ea",
743
745
  "borderRadius": 999,
744
- "borderWidth": 4,
746
+ "borderWidth": 8,
745
747
  "height": 72,
746
748
  "width": 72,
747
749
  },
@@ -784,7 +786,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
784
786
  Object {
785
787
  "borderColor": "#5ace7d",
786
788
  "borderRadius": 999,
787
- "borderWidth": 4,
789
+ "borderWidth": 8,
788
790
  "height": 72,
789
791
  "width": 72,
790
792
  },
@@ -836,7 +838,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
836
838
  Object {
837
839
  "borderColor": "#e8e9ea",
838
840
  "borderRadius": 999,
839
- "borderWidth": 4,
841
+ "borderWidth": 8,
840
842
  "height": 72,
841
843
  "width": 72,
842
844
  },
@@ -854,11 +856,11 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
854
856
  Object {
855
857
  "backgroundColor": "#5ace7d",
856
858
  "borderRadius": 999,
857
- "height": 4,
858
- "left": 34,
859
+ "height": 8,
860
+ "left": 32,
859
861
  "position": "absolute",
860
862
  "top": 0,
861
- "width": 4,
863
+ "width": 8,
862
864
  "zIndex": 2,
863
865
  },
864
866
  undefined,
@@ -890,11 +892,11 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
890
892
  Object {
891
893
  "backgroundColor": "#5ace7d",
892
894
  "borderRadius": 999,
893
- "height": 4,
894
- "left": 34,
895
+ "height": 8,
896
+ "left": 32,
895
897
  "position": "absolute",
896
898
  "top": 0,
897
- "width": 4,
899
+ "width": 8,
898
900
  "zIndex": 2,
899
901
  },
900
902
  undefined,
@@ -909,12 +911,12 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
909
911
  Object {
910
912
  "alignItems": "center",
911
913
  "borderRadius": 999,
912
- "height": 64,
914
+ "height": 56,
913
915
  "justifyContent": "center",
914
- "left": 4,
916
+ "left": 8,
915
917
  "position": "absolute",
916
- "top": 4,
917
- "width": 64,
918
+ "top": 8,
919
+ "width": 56,
918
920
  "zIndex": 3,
919
921
  },
920
922
  undefined,
@@ -1,5 +1,5 @@
1
1
  import styled from '@emotion/native';
2
- import { View, Animated } from 'react-native';
2
+ import { View, Animated, StyleSheet } from 'react-native';
3
3
 
4
4
  const AnimatedView = Animated.createAnimatedComponent(View);
5
5
 
@@ -9,7 +9,8 @@ export const StyledWrapper = styled(View)(({ theme }) => ({
9
9
  height: theme.__hd__.switch.sizes.selector.height,
10
10
  borderRadius: theme.__hd__.switch.radii.selector.default,
11
11
  backgroundColor: theme.__hd__.switch.colors.selector.background,
12
- padding: theme.__hd__.switch.spaces.selector.wrapperPadding,
12
+ paddingHorizontal:
13
+ theme.__hd__.switch.spaces.selector.wrapperHorizontalPadding,
13
14
  position: 'relative',
14
15
  }));
15
16
 
@@ -29,11 +30,7 @@ export const StyledIconWrapper = styled(AnimatedView)(({ theme }) => ({
29
30
  }));
30
31
 
31
32
  export const StyledKnot = styled(AnimatedView)(({ theme }) => ({
33
+ ...StyleSheet.absoluteFillObject,
32
34
  borderRadius: theme.__hd__.switch.radii.selector.default,
33
35
  backgroundColor: theme.__hd__.switch.colors.selector.textBackground,
34
- position: 'absolute',
35
- top: theme.__hd__.switch.spaces.selector.wrapperPadding,
36
- bottom: theme.__hd__.switch.spaces.selector.wrapperPadding,
37
- left: theme.__hd__.switch.spaces.selector.wrapperPadding,
38
- right: theme.__hd__.switch.spaces.selector.wrapperPadding,
39
36
  }));
@@ -15,11 +15,11 @@ exports[`SelectorSwitch renders correctly 1`] = `
15
15
  style={
16
16
  Array [
17
17
  Object {
18
- "backgroundColor": "#f6f6f7",
18
+ "backgroundColor": "#ffffff",
19
19
  "borderRadius": 999,
20
20
  "flexDirection": "row",
21
- "height": 56,
22
- "padding": 4,
21
+ "height": 40,
22
+ "paddingHorizontal": 4,
23
23
  "position": "relative",
24
24
  "width": "100%",
25
25
  },
@@ -132,13 +132,13 @@ exports[`SelectorSwitch renders correctly 1`] = `
132
132
  collapsable={false}
133
133
  style={
134
134
  Object {
135
- "backgroundColor": "#ffffff",
135
+ "backgroundColor": "#ccd2d3",
136
136
  "borderRadius": 999,
137
- "bottom": 4,
138
- "left": 4,
137
+ "bottom": 0,
138
+ "left": 0,
139
139
  "position": "absolute",
140
- "right": 4,
141
- "top": 4,
140
+ "right": 0,
141
+ "top": 0,
142
142
  "transform": Array [
143
143
  Object {
144
144
  "translateX": 0,