@hero-design/rn 7.28.0 → 7.29.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.
Files changed (80) hide show
  1. package/.eslintrc.js +2 -1
  2. package/.turbo/turbo-build.log +9 -9
  3. package/es/index.js +119 -95
  4. package/lib/index.js +119 -95
  5. package/package.json +5 -4
  6. package/src/components/Alert/index.tsx +1 -0
  7. package/src/components/BottomSheet/Header.tsx +1 -1
  8. package/src/components/BottomSheet/StyledBottomSheet.tsx +1 -2
  9. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +12 -14
  10. package/src/components/DatePicker/DatePickerIOS.tsx +5 -11
  11. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  12. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +35 -16
  13. package/src/components/Empty/StyledEmpty.tsx +1 -1
  14. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  15. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  16. package/src/components/FAB/ActionGroup/index.tsx +1 -1
  17. package/src/components/List/ListItem.tsx +2 -2
  18. package/src/components/Progress/ProgressCircle.tsx +1 -1
  19. package/src/components/Select/{StyledOptionList.tsx → BaseOptionList.tsx} +6 -6
  20. package/src/components/Select/Footer.tsx +2 -7
  21. package/src/components/Select/MultiSelect/Option.tsx +24 -11
  22. package/src/components/Select/MultiSelect/OptionList.tsx +3 -2
  23. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -2
  24. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +47 -21
  25. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +204 -107
  26. package/src/components/Select/MultiSelect/index.tsx +16 -0
  27. package/src/components/Select/SingleSelect/Option.tsx +12 -12
  28. package/src/components/Select/SingleSelect/OptionList.tsx +3 -2
  29. package/src/components/Select/SingleSelect/StyledSingleSelect.tsx +6 -0
  30. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
  31. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +32 -16
  32. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +70 -54
  33. package/src/components/Select/SingleSelect/index.tsx +16 -0
  34. package/src/components/Select/StyledSelect.tsx +6 -7
  35. package/src/components/Select/types.ts +1 -0
  36. package/src/components/Tabs/ScrollableTabs.tsx +1 -1
  37. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -3
  38. package/src/components/Tag/index.tsx +2 -2
  39. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  40. package/src/components/TextInput/__tests__/index.spec.tsx +4 -2
  41. package/src/components/TextInput/index.tsx +7 -1
  42. package/src/components/TimePicker/TimePickerIOS.tsx +5 -11
  43. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
  44. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +35 -16
  45. package/src/components/Toast/ToastContainer.tsx +1 -1
  46. package/src/components/Toast/ToastProvider.tsx +10 -1
  47. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +5 -5
  48. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +4 -4
  49. package/src/components/Typography/Text/StyledText.tsx +2 -1
  50. package/src/components/Typography/Text/index.tsx +2 -1
  51. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +19 -15
  52. package/src/theme/components/bottomSheet.ts +4 -5
  53. package/src/theme/components/empty.ts +6 -5
  54. package/src/theme/components/fab.ts +1 -1
  55. package/src/theme/components/select.ts +4 -6
  56. package/src/theme/components/typography.ts +2 -0
  57. package/src/theme/global/colors/global.ts +1 -0
  58. package/src/theme/global/colors/types.ts +1 -0
  59. package/src/theme/global/typography.ts +4 -1
  60. package/types/components/Alert/index.d.ts +1 -0
  61. package/types/components/List/ListItem.d.ts +2 -2
  62. package/types/components/Select/{StyledOptionList.d.ts → BaseOptionList.d.ts} +3 -3
  63. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  64. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  65. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -0
  66. package/types/components/Select/StyledSelect.d.ts +3 -6
  67. package/types/components/Select/types.d.ts +1 -0
  68. package/types/components/Toast/ToastProvider.d.ts +1 -1
  69. package/types/components/Toast/index.d.ts +1 -1
  70. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  71. package/types/components/Typography/Text/index.d.ts +1 -1
  72. package/types/theme/components/bottomSheet.d.ts +0 -1
  73. package/types/theme/components/empty.d.ts +1 -0
  74. package/types/theme/components/select.d.ts +3 -4
  75. package/types/theme/components/typography.d.ts +2 -0
  76. package/types/theme/global/colors/types.d.ts +1 -0
  77. package/types/theme/global/index.d.ts +1 -0
  78. package/types/theme/global/typography.d.ts +1 -0
  79. package/src/components/Select/__tests__/StyledSelect.spec.tsx +0 -14
  80. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +0 -29
@@ -5,7 +5,7 @@ import formatDate from 'date-fns/fp/format';
5
5
 
6
6
  import BottomSheet from '../BottomSheet';
7
7
  import TextInput from '../TextInput';
8
- import Typography from '../Typography';
8
+ import Button from '../Button';
9
9
  import { StyledPickerWrapper } from './StyledDatePicker';
10
10
  import type { DatePickerProps } from './types';
11
11
 
@@ -49,22 +49,16 @@ const DatePickerIOS = ({
49
49
  onRequestClose={() => setOpen(false)}
50
50
  header={label}
51
51
  footer={
52
- <TouchableOpacity
52
+ <Button
53
+ variant="text"
54
+ text={confirmLabel}
53
55
  onPress={() => {
54
56
  if (selectingDate) {
55
57
  onChange(selectingDate);
56
58
  }
57
59
  setOpen(false);
58
60
  }}
59
- >
60
- <Typography.Text
61
- fontSize="large"
62
- fontWeight="semi-bold"
63
- intent="primary"
64
- >
65
- {confirmLabel}
66
- </Typography.Text>
67
- </TouchableOpacity>
61
+ />
68
62
  }
69
63
  >
70
64
  <StyledPickerWrapper>
@@ -133,6 +133,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
133
133
  onBlur={[Function]}
134
134
  onChangeText={[Function]}
135
135
  onFocus={[Function]}
136
+ placeholder=" "
136
137
  style={
137
138
  Array [
138
139
  Object {
@@ -133,6 +133,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
133
133
  onBlur={[Function]}
134
134
  onChangeText={[Function]}
135
135
  onFocus={[Function]}
136
+ placeholder=" "
136
137
  style={
137
138
  Array [
138
139
  Object {
@@ -287,7 +288,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
287
288
  onStartShouldSetResponder={[Function]}
288
289
  style={
289
290
  Object {
290
- "backgroundColor": "#001f23",
291
+ "backgroundColor": "#000000",
291
292
  "bottom": 0,
292
293
  "left": 0,
293
294
  "opacity": 0.48,
@@ -313,8 +314,8 @@ exports[`DatePickerIOS renders correctly 1`] = `
313
314
  "height": 3,
314
315
  "width": 0,
315
316
  },
316
- "shadowOpacity": 0.27,
317
- "shadowRadius": 4.65,
317
+ "shadowOpacity": 0.4,
318
+ "shadowRadius": 16,
318
319
  "transform": Array [
319
320
  Object {
320
321
  "scaleY": 1,
@@ -410,13 +411,13 @@ exports[`DatePickerIOS renders correctly 1`] = `
410
411
  Array [
411
412
  Object {
412
413
  "color": "#001f23",
413
- "fontSize": 20,
414
+ "fontSize": 16,
414
415
  },
415
416
  undefined,
416
417
  ]
417
418
  }
418
419
  themeIntent="text"
419
- themeSize="small"
420
+ themeSize="xsmall"
420
421
  />
421
422
  </View>
422
423
  </View>
@@ -476,9 +477,8 @@ exports[`DatePickerIOS renders correctly 1`] = `
476
477
  "alignItems": "center",
477
478
  "flexDirection": "row",
478
479
  "justifyContent": "flex-end",
479
- "minHeight": 64,
480
480
  "paddingHorizontal": 12,
481
- "paddingVertical": 8,
481
+ "paddingVertical": 2,
482
482
  },
483
483
  undefined,
484
484
  ]
@@ -498,27 +498,46 @@ exports[`DatePickerIOS renders correctly 1`] = `
498
498
  onStartShouldSetResponder={[Function]}
499
499
  style={
500
500
  Object {
501
+ "alignItems": "center",
502
+ "borderWidth": 0,
503
+ "flexDirection": "row",
504
+ "justifyContent": "center",
501
505
  "opacity": 1,
506
+ "padding": 16,
502
507
  }
503
508
  }
504
509
  >
505
510
  <Text
511
+ disabled={false}
512
+ ellipsizeMode="tail"
513
+ numberOfLines={1}
506
514
  style={
507
515
  Array [
508
516
  Object {
509
- "color": "#401960",
510
- "fontFamily": "BeVietnamPro-SemiBold",
511
- "fontSize": 16,
512
- "letterSpacing": 0.48,
513
- "lineHeight": 24,
517
+ "color": "#001f23",
518
+ "fontFamily": "BeVietnamPro-Regular",
519
+ "fontSize": 14,
520
+ "letterSpacing": 0.42,
521
+ "lineHeight": 22,
514
522
  },
515
- undefined,
523
+ Array [
524
+ Object {
525
+ "color": "#401960",
526
+ "flexShrink": 1,
527
+ "fontFamily": "BeVietnamPro-SemiBold",
528
+ "fontSize": 16,
529
+ "lineHeight": 24,
530
+ "textAlign": "center",
531
+ },
532
+ undefined,
533
+ ],
516
534
  ]
517
535
  }
518
- themeFontSize="large"
519
- themeFontWeight="semi-bold"
520
- themeIntent="primary"
536
+ themeFontSize="medium"
537
+ themeFontWeight="regular"
538
+ themeIntent="body"
521
539
  themeTypeface="neutral"
540
+ themeVariant="text-primary"
522
541
  >
523
542
  Confirm
524
543
  </Text>
@@ -32,7 +32,7 @@ const StyledDescription = styled(Text)<{ themeVariant: ThemeVariant }>(
32
32
  textAlign: 'center',
33
33
  color:
34
34
  themeVariant === 'dark'
35
- ? theme.__hd__.empty.colors.invertedText
35
+ ? theme.__hd__.empty.colors.invertedSubduedText
36
36
  : theme.__hd__.empty.colors.subduedText,
37
37
  })
38
38
  );
@@ -21,8 +21,8 @@ exports[`Empty renders empty state content correctly 1`] = `
21
21
  Array [
22
22
  Object {
23
23
  "color": "#001f23",
24
- "fontFamily": "BeVietnamPro-SemiBold",
25
- "fontSize": 28,
24
+ "fontFamily": "RebondGrotesque-SemiBold",
25
+ "fontSize": 24,
26
26
  "marginBottom": 16,
27
27
  "textAlign": "center",
28
28
  },
@@ -37,9 +37,9 @@ exports[`Empty renders empty state content correctly 1`] = `
37
37
  style={
38
38
  Array [
39
39
  Object {
40
- "color": "#bfc1c5",
41
- "fontFamily": "BeVietnamPro-Light",
42
- "fontSize": 16,
40
+ "color": "#4d6265",
41
+ "fontFamily": "RebondGrotesque-Regular",
42
+ "fontSize": 18,
43
43
  "textAlign": "center",
44
44
  },
45
45
  undefined,
@@ -88,8 +88,8 @@ exports[`Empty renders empty state with image correctly 1`] = `
88
88
  Array [
89
89
  Object {
90
90
  "color": "#001f23",
91
- "fontFamily": "BeVietnamPro-SemiBold",
92
- "fontSize": 28,
91
+ "fontFamily": "RebondGrotesque-SemiBold",
92
+ "fontSize": 24,
93
93
  "marginBottom": 16,
94
94
  "textAlign": "center",
95
95
  },
@@ -104,9 +104,9 @@ exports[`Empty renders empty state with image correctly 1`] = `
104
104
  style={
105
105
  Array [
106
106
  Object {
107
- "color": "#bfc1c5",
108
- "fontFamily": "BeVietnamPro-Light",
109
- "fontSize": 16,
107
+ "color": "#4d6265",
108
+ "fontFamily": "RebondGrotesque-Regular",
109
+ "fontSize": 18,
110
110
  "textAlign": "center",
111
111
  },
112
112
  undefined,
@@ -24,7 +24,7 @@ exports[`ActionGroup has active false 1`] = `
24
24
  pointerEvents="box-none"
25
25
  style={
26
26
  Object {
27
- "backgroundColor": "#001f23",
27
+ "backgroundColor": "#000000",
28
28
  "bottom": 0,
29
29
  "left": 0,
30
30
  "opacity": 0,
@@ -593,10 +593,10 @@ exports[`ActionGroup has active true 1`] = `
593
593
  pointerEvents="auto"
594
594
  style={
595
595
  Object {
596
- "backgroundColor": "#001f23",
596
+ "backgroundColor": "#000000",
597
597
  "bottom": 0,
598
598
  "left": 0,
599
- "opacity": 0.9,
599
+ "opacity": 0.4,
600
600
  "position": "absolute",
601
601
  "right": 0,
602
602
  "top": 0,
@@ -100,7 +100,7 @@ const ActionGroup = ({
100
100
  const interpolatedBackdropOpacityAnimation =
101
101
  tranlateXAnimation.current.interpolate({
102
102
  inputRange: [0, 1],
103
- outputRange: [0, 0.9],
103
+ outputRange: [0, 0.4],
104
104
  });
105
105
 
106
106
  const interpolatedActionGroupOpacityAnimation =
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
 
3
3
  import { View } from 'react-native';
4
4
  import type { ReactNode } from 'react';
@@ -28,7 +28,7 @@ export interface ListItemProps {
28
28
  /**
29
29
  * The title of the component.
30
30
  */
31
- title?: string;
31
+ title?: string | ReactElement;
32
32
  /**
33
33
  * The subtile title of the component.
34
34
  */
@@ -19,7 +19,7 @@ export interface ProgressCircleProps extends ViewProps {
19
19
  */
20
20
  value: number;
21
21
  /*
22
- * Testing id of the component.
22
+ * Custom displayed value.
23
23
  */
24
24
  renderValue?: (value: number) => React.ReactNode;
25
25
  /**
@@ -5,7 +5,7 @@ import type { ReactElement } from 'react';
5
5
  import type { SectionListRenderItemInfo } from 'react-native';
6
6
  import SectionHeading from '../SectionHeading';
7
7
  import Spinner from '../Spinner';
8
- import { OptionSpacer, SectionSpacer } from './StyledSelect';
8
+ import { OptionSpacer, SectionSpacer, StyledSectionList } from './StyledSelect';
9
9
  import type {
10
10
  SectionData,
11
11
  OptionType,
@@ -13,7 +13,7 @@ import type {
13
13
  SectionType,
14
14
  } from './types';
15
15
 
16
- export type StyledOptionListProps<V, T extends OptionType<V>> = Pick<
16
+ export type BaseOptionListProps<V, T extends OptionType<V>> = Pick<
17
17
  SelectProps<V, T>,
18
18
  'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange'
19
19
  > & {
@@ -22,7 +22,7 @@ export type StyledOptionListProps<V, T extends OptionType<V>> = Pick<
22
22
  sectionListRef?: React.RefObject<SectionList<T, SectionType>>;
23
23
  };
24
24
 
25
- const StyledOptionList = <V, T extends OptionType<V>>({
25
+ const BaseOptionList = <V, T extends OptionType<V>>({
26
26
  keyExtractor,
27
27
  loading,
28
28
  onEndReached,
@@ -30,13 +30,13 @@ const StyledOptionList = <V, T extends OptionType<V>>({
30
30
  sections,
31
31
  renderItem,
32
32
  sectionListRef,
33
- }: StyledOptionListProps<V, T>) => {
33
+ }: BaseOptionListProps<V, T>) => {
34
34
  const theme = useTheme();
35
35
 
36
36
  const [onEndReachedCalled, setOnEndReachedCalled] = useState(false);
37
37
 
38
38
  return (
39
- <SectionList<T, SectionType>
39
+ <StyledSectionList<T, SectionType>
40
40
  ref={sectionListRef}
41
41
  style={{
42
42
  ...(onQueryChange ? { height: Dimensions.get('screen').height } : {}),
@@ -79,4 +79,4 @@ const StyledOptionList = <V, T extends OptionType<V>>({
79
79
  );
80
80
  };
81
81
 
82
- export default StyledOptionList;
82
+ export default BaseOptionList;
@@ -1,13 +1,8 @@
1
1
  import React from 'react';
2
- import { TouchableOpacity } from 'react-native';
3
- import { FooterText } from './StyledSelect';
2
+ import Button from '../Button';
4
3
 
5
4
  const Footer = ({ label, onPress }: { label: string; onPress: () => void }) => (
6
- <TouchableOpacity onPress={onPress}>
7
- <FooterText fontSize="large" fontWeight="semi-bold">
8
- {label}
9
- </FooterText>
10
- </TouchableOpacity>
5
+ <Button variant="text" text={label} onPress={onPress} />
11
6
  );
12
7
 
13
8
  export default Footer;
@@ -2,30 +2,43 @@ import React from 'react';
2
2
  import type { ReactElement } from 'react';
3
3
  import { useTheme } from '../../../theme';
4
4
  import List from '../../List';
5
+ import Icon from '../../Icon';
5
6
 
6
7
  const Option = ({
7
8
  text,
8
9
  disabled = false,
9
10
  selected,
10
11
  onPress,
12
+ highlighted = false,
11
13
  }: {
12
14
  text: string | ReactElement;
13
15
  disabled?: boolean;
14
16
  selected: boolean;
15
17
  onPress: () => void;
18
+ highlighted?: boolean;
16
19
  }) => {
17
20
  const theme = useTheme();
18
- return (
19
- <List.BasicItem
20
- selected={selected}
21
- disabled={disabled}
22
- onPress={onPress}
23
- title={text}
24
- suffix={selected ? 'checkmark' : undefined}
25
- style={{
26
- marginHorizontal: theme.__hd__.select.space.optionHorizontalMargin,
27
- }}
28
- />
21
+ const props = {
22
+ selected,
23
+ disabled,
24
+ onPress,
25
+ title: text,
26
+ suffix:
27
+ selected === true ? (
28
+ <Icon
29
+ icon="checkmark"
30
+ intent={disabled ? 'disabled-text' : 'primary'}
31
+ size="small"
32
+ style={{
33
+ marginRight: theme.__hd__.select.space.suffixMarginRight,
34
+ }}
35
+ />
36
+ ) : undefined,
37
+ };
38
+ return highlighted === true ? (
39
+ <List.Item {...props} />
40
+ ) : (
41
+ <List.BasicItem {...props} />
29
42
  );
30
43
  };
31
44
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { SectionListRenderItemInfo, SectionList } from 'react-native';
3
- import StyledOptionList from '../StyledOptionList';
3
+ import BaseOptionList from '../BaseOptionList';
4
4
  import Option from './Option';
5
5
  import type { MultiSelectProps } from '.';
6
6
  import type { OptionType, SectionData, SectionType } from '../types';
@@ -49,12 +49,13 @@ const OptionList = <V, T extends OptionType<V>>({
49
49
  text={item.text}
50
50
  disabled={item.disabled}
51
51
  onPress={onItemPress}
52
+ highlighted={item.highlighted}
52
53
  />
53
54
  );
54
55
  };
55
56
 
56
57
  return (
57
- <StyledOptionList
58
+ <BaseOptionList
58
59
  keyExtractor={keyExtractor}
59
60
  loading={loading}
60
61
  onEndReached={onEndReached}
@@ -19,7 +19,6 @@ exports[`Option renders correctly 1`] = `
19
19
  "backgroundColor": "#ece8ef",
20
20
  "borderRadius": 4,
21
21
  "flexDirection": "row",
22
- "marginHorizontal": 12,
23
22
  "opacity": 1,
24
23
  "padding": 16,
25
24
  }
@@ -74,7 +73,9 @@ exports[`Option renders correctly 1`] = `
74
73
  "color": "#401960",
75
74
  "fontSize": 20,
76
75
  },
77
- undefined,
76
+ Object {
77
+ "marginRight": 12,
78
+ },
78
79
  ]
79
80
  }
80
81
  themeIntent="primary"
@@ -61,7 +61,14 @@ exports[`OptionList render isLoading correctly 1`] = `
61
61
  3,
62
62
  ]
63
63
  }
64
- style={Object {}}
64
+ style={
65
+ Array [
66
+ Object {
67
+ "paddingHorizontal": 12,
68
+ },
69
+ Object {},
70
+ ]
71
+ }
65
72
  >
66
73
  <View>
67
74
  <View
@@ -197,7 +204,6 @@ exports[`OptionList render isLoading correctly 1`] = `
197
204
  "backgroundColor": "#ece8ef",
198
205
  "borderRadius": 4,
199
206
  "flexDirection": "row",
200
- "marginHorizontal": 12,
201
207
  "opacity": 1,
202
208
  "padding": 16,
203
209
  }
@@ -252,7 +258,9 @@ exports[`OptionList render isLoading correctly 1`] = `
252
258
  "color": "#401960",
253
259
  "fontSize": 20,
254
260
  },
255
- undefined,
261
+ Object {
262
+ "marginRight": 12,
263
+ },
256
264
  ]
257
265
  }
258
266
  themeIntent="primary"
@@ -442,7 +450,6 @@ exports[`OptionList render isLoading correctly 1`] = `
442
450
  "backgroundColor": "#ffffff",
443
451
  "borderRadius": 4,
444
452
  "flexDirection": "row",
445
- "marginHorizontal": 12,
446
453
  "opacity": 1,
447
454
  "padding": 16,
448
455
  }
@@ -554,7 +561,6 @@ exports[`OptionList render isLoading correctly 1`] = `
554
561
  "backgroundColor": "#ffffff",
555
562
  "borderRadius": 4,
556
563
  "flexDirection": "row",
557
- "marginHorizontal": 12,
558
564
  "opacity": 1,
559
565
  "padding": 16,
560
566
  }
@@ -854,7 +860,14 @@ exports[`OptionList renders correctly 1`] = `
854
860
  3,
855
861
  ]
856
862
  }
857
- style={Object {}}
863
+ style={
864
+ Array [
865
+ Object {
866
+ "paddingHorizontal": 12,
867
+ },
868
+ Object {},
869
+ ]
870
+ }
858
871
  >
859
872
  <View>
860
873
  <View
@@ -990,7 +1003,6 @@ exports[`OptionList renders correctly 1`] = `
990
1003
  "backgroundColor": "#ece8ef",
991
1004
  "borderRadius": 4,
992
1005
  "flexDirection": "row",
993
- "marginHorizontal": 12,
994
1006
  "opacity": 1,
995
1007
  "padding": 16,
996
1008
  }
@@ -1045,7 +1057,9 @@ exports[`OptionList renders correctly 1`] = `
1045
1057
  "color": "#401960",
1046
1058
  "fontSize": 20,
1047
1059
  },
1048
- undefined,
1060
+ Object {
1061
+ "marginRight": 12,
1062
+ },
1049
1063
  ]
1050
1064
  }
1051
1065
  themeIntent="primary"
@@ -1235,7 +1249,6 @@ exports[`OptionList renders correctly 1`] = `
1235
1249
  "backgroundColor": "#ffffff",
1236
1250
  "borderRadius": 4,
1237
1251
  "flexDirection": "row",
1238
- "marginHorizontal": 12,
1239
1252
  "opacity": 1,
1240
1253
  "padding": 16,
1241
1254
  }
@@ -1347,7 +1360,6 @@ exports[`OptionList renders correctly 1`] = `
1347
1360
  "backgroundColor": "#ffffff",
1348
1361
  "borderRadius": 4,
1349
1362
  "flexDirection": "row",
1350
- "marginHorizontal": 12,
1351
1363
  "opacity": 1,
1352
1364
  "padding": 16,
1353
1365
  }
@@ -1487,7 +1499,14 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
1487
1499
  3,
1488
1500
  ]
1489
1501
  }
1490
- style={Object {}}
1502
+ style={
1503
+ Array [
1504
+ Object {
1505
+ "paddingHorizontal": 12,
1506
+ },
1507
+ Object {},
1508
+ ]
1509
+ }
1491
1510
  >
1492
1511
  <View>
1493
1512
  <View
@@ -1623,7 +1642,6 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
1623
1642
  "backgroundColor": "#ece8ef",
1624
1643
  "borderRadius": 4,
1625
1644
  "flexDirection": "row",
1626
- "marginHorizontal": 12,
1627
1645
  "opacity": 1,
1628
1646
  "padding": 16,
1629
1647
  }
@@ -1678,7 +1696,9 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
1678
1696
  "color": "#401960",
1679
1697
  "fontSize": 20,
1680
1698
  },
1681
- undefined,
1699
+ Object {
1700
+ "marginRight": 12,
1701
+ },
1682
1702
  ]
1683
1703
  }
1684
1704
  themeIntent="primary"
@@ -1868,7 +1888,6 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
1868
1888
  "backgroundColor": "#ece8ef",
1869
1889
  "borderRadius": 4,
1870
1890
  "flexDirection": "row",
1871
- "marginHorizontal": 12,
1872
1891
  "opacity": 1,
1873
1892
  "padding": 16,
1874
1893
  }
@@ -1923,7 +1942,9 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
1923
1942
  "color": "#401960",
1924
1943
  "fontSize": 20,
1925
1944
  },
1926
- undefined,
1945
+ Object {
1946
+ "marginRight": 12,
1947
+ },
1927
1948
  ]
1928
1949
  }
1929
1950
  themeIntent="primary"
@@ -2005,7 +2026,6 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
2005
2026
  "backgroundColor": "#ffffff",
2006
2027
  "borderRadius": 4,
2007
2028
  "flexDirection": "row",
2008
- "marginHorizontal": 12,
2009
2029
  "opacity": 1,
2010
2030
  "padding": 16,
2011
2031
  }
@@ -2145,7 +2165,14 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
2145
2165
  3,
2146
2166
  ]
2147
2167
  }
2148
- style={Object {}}
2168
+ style={
2169
+ Array [
2170
+ Object {
2171
+ "paddingHorizontal": 12,
2172
+ },
2173
+ Object {},
2174
+ ]
2175
+ }
2149
2176
  >
2150
2177
  <View>
2151
2178
  <View
@@ -2281,7 +2308,6 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
2281
2308
  "backgroundColor": "#ece8ef",
2282
2309
  "borderRadius": 4,
2283
2310
  "flexDirection": "row",
2284
- "marginHorizontal": 12,
2285
2311
  "opacity": 1,
2286
2312
  "padding": 16,
2287
2313
  }
@@ -2336,7 +2362,9 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
2336
2362
  "color": "#401960",
2337
2363
  "fontSize": 20,
2338
2364
  },
2339
- undefined,
2365
+ Object {
2366
+ "marginRight": 12,
2367
+ },
2340
2368
  ]
2341
2369
  }
2342
2370
  themeIntent="primary"
@@ -2526,7 +2554,6 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
2526
2554
  "backgroundColor": "#ffffff",
2527
2555
  "borderRadius": 4,
2528
2556
  "flexDirection": "row",
2529
- "marginHorizontal": 12,
2530
2557
  "opacity": 1,
2531
2558
  "padding": 16,
2532
2559
  }
@@ -2638,7 +2665,6 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
2638
2665
  "backgroundColor": "#ffffff",
2639
2666
  "borderRadius": 4,
2640
2667
  "flexDirection": "row",
2641
- "marginHorizontal": 12,
2642
2668
  "opacity": 1,
2643
2669
  "padding": 16,
2644
2670
  }