@hero-design/rn 8.42.4 → 8.43.1
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +20 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +2174 -1988
- package/jest-setup.ts +2 -0
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +2173 -1986
- package/package.json +20 -20
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +68 -0
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +102 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +85 -0
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +34 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +12 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +108 -0
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +17 -0
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +36 -0
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +36 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +247 -211
- package/src/components/BottomSheet/index.tsx +1 -1
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -20
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
- package/src/components/Button/StyledButton.tsx +4 -0
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +34 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +144 -42
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +17 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +90 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +85 -0
- package/src/components/Carousel/CardCarousel.tsx +10 -7
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -0
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +39 -0
- package/src/components/Carousel/__tests__/index.spec.tsx +8 -10
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +68 -0
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +72 -0
- package/src/components/Chip/StyledChip.tsx +121 -0
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1147 -0
- package/src/components/Chip/__tests__/index.spec.tsx +136 -0
- package/src/components/Chip/index.tsx +82 -0
- package/src/components/Collapse/index.tsx +1 -1
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +72 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +48 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +12 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +12 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +470 -399
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
- package/src/components/Error/__tests__/index.spec.tsx +9 -6
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +81 -0
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +16 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +24 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +16 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +60 -0
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +32 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +32 -0
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +16 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +24 -0
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +180 -0
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +8 -10
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +119 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +18 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +8 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +124 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +804 -455
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -10
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +8 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +124 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +790 -532
- package/src/components/Success/__tests__/index.spec.tsx +9 -6
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +51 -0
- package/src/components/Swipeable/index.tsx +3 -3
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +9 -0
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +19 -23
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +171 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +40 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +159 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +24 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +482 -399
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +102 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +72 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +96 -0
- package/src/index.ts +2 -0
- package/src/testHelpers/renderWithTheme.tsx +1 -7
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +38 -1
- package/src/theme/components/button.ts +0 -1
- package/src/theme/components/chip.ts +47 -0
- package/src/theme/getTheme.ts +3 -0
- package/tsconfig.json +4 -1
- package/types/components/Accordion/AccordionItem.d.ts +2 -1
- package/types/components/Accordion/index.d.ts +1 -1
- package/types/components/Attachment/index.d.ts +2 -1
- package/types/components/Avatar/Avatar.d.ts +2 -1
- package/types/components/Avatar/AvatarStack/index.d.ts +2 -2
- package/types/components/Avatar/index.d.ts +3 -2
- package/types/components/Badge/StyledBadge.d.ts +0 -4
- package/types/components/BottomSheet/Footer.d.ts +2 -1
- package/types/components/BottomSheet/Header.d.ts +2 -1
- package/types/components/BottomSheet/ScrollView.d.ts +1 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -4
- package/types/components/Box/index.d.ts +2 -1
- package/types/components/Button/IconButton.d.ts +2 -1
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
- package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
- package/types/components/Button/UtilityButton/index.d.ts +2 -1
- package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
- package/types/components/Calendar/StyledCalendar.d.ts +1 -1
- package/types/components/Calendar/index.d.ts +2 -1
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/CarouselItem.d.ts +2 -1
- package/types/components/Carousel/index.d.ts +2 -2
- package/types/components/Checkbox/index.d.ts +2 -1
- package/types/components/Chip/StyledChip.d.ts +31 -0
- package/types/components/Chip/index.d.ts +27 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -2
- package/types/components/Collapse/index.d.ts +2 -1
- package/types/components/ContentNavigator/index.d.ts +2 -1
- package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
- package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +2 -1
- package/types/components/DatePicker/index.d.ts +2 -1
- package/types/components/Divider/index.d.ts +2 -1
- package/types/components/Drawer/StyledDrawer.d.ts +0 -6
- package/types/components/Error/StyledError.d.ts +0 -4
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -1
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -4
- package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
- package/types/components/HeroDesignProvider/index.d.ts +2 -1
- package/types/components/Icon/AnimatedIcon.d.ts +2 -1
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +3 -2
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Image/index.d.ts +1 -0
- package/types/components/Modal/index.d.ts +2 -2
- package/types/components/PageControl/StyledPageControl.d.ts +0 -2
- package/types/components/PageControl/index.d.ts +2 -1
- package/types/components/PinInput/PinCell.d.ts +2 -1
- package/types/components/Portal/PortalHost.d.ts +1 -1
- package/types/components/Portal/PortalProvider.d.ts +1 -1
- package/types/components/Portal/index.d.ts +2 -2
- package/types/components/Progress/ProgressBar.d.ts +1 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -2
- package/types/components/Progress/index.d.ts +1 -0
- package/types/components/Rate/StyledRate.d.ts +0 -2
- package/types/components/Rate/index.d.ts +2 -1
- package/types/components/RefreshControl/index.d.ts +2 -1
- package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
- package/types/components/RichTextEditor/MentionList.d.ts +2 -1
- package/types/components/RichTextEditor/index.d.ts +2 -2
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/Footer.d.ts +2 -1
- package/types/components/Select/MultiSelect/Option.d.ts +2 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/SingleSelect/Option.d.ts +2 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/helpers.d.ts +1 -2
- package/types/components/Select/index.d.ts +2 -1
- package/types/components/Skeleton/index.d.ts +2 -1
- package/types/components/Slider/index.d.ts +2 -1
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
- package/types/components/Success/StyledSuccess.d.ts +0 -2
- package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
- package/types/components/Swipeable/index.d.ts +3 -3
- package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -6
- package/types/components/Switch/StyledSwitch.d.ts +0 -2
- package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
- package/types/components/Tabs/SceneView.d.ts +1 -1
- package/types/components/Tabs/ScrollableTabs.d.ts +2 -1
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +2 -1
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -4
- package/types/components/Tabs/StyledTabs.d.ts +0 -4
- package/types/components/Tabs/TabWithBadge.d.ts +2 -2
- package/types/components/Tabs/index.d.ts +2 -1
- package/types/components/TextInput/StyledTextInput.d.ts +1 -1
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
- package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
- package/types/components/TimePicker/index.d.ts +2 -1
- package/types/components/Toast/StyledToast.d.ts +0 -2
- package/types/components/Toast/Toast.d.ts +1 -0
- package/types/components/Toast/ToastProvider.d.ts +2 -1
- package/types/components/Toast/index.d.ts +1 -1
- package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
- package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
- package/types/components/Toolbar/index.d.ts +3 -2
- package/types/components/Typography/Body/index.d.ts +2 -1
- package/types/components/Typography/Caption/index.d.ts +2 -1
- package/types/components/Typography/Label/index.d.ts +2 -1
- package/types/components/Typography/Text/index.d.ts +2 -1
- package/types/components/Typography/Title/index.d.ts +2 -1
- package/types/index.d.ts +2 -1
- package/types/testHelpers/renderWithTheme.d.ts +1 -0
- package/types/theme/ThemeSwitcher.d.ts +2 -2
- package/types/theme/components/button.d.ts +0 -1
- package/types/theme/components/chip.d.ts +40 -0
- package/types/theme/getTheme.d.ts +2 -0
- package/.turbo/turbo-publish:npm.log +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
2
|
-
import styled from '@emotion/native';
|
|
3
|
-
import type { ViewProps } from 'react-native';
|
|
4
1
|
import type { ReactNativeStyle } from '@emotion/native';
|
|
2
|
+
import styled from '@emotion/native';
|
|
5
3
|
import type { Theme } from '@emotion/react';
|
|
4
|
+
import type { ViewProps } from 'react-native';
|
|
5
|
+
import { View } from 'react-native';
|
|
6
6
|
|
|
7
7
|
type Intent = 'primary' | 'secondary' | 'danger';
|
|
8
8
|
|
|
@@ -25,13 +25,11 @@ const genLoadingIndicatorStyles = (
|
|
|
25
25
|
backgroundColor: theme.__hd__.button.colors[intent],
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
const StyledLoadingIndicatorWrapper = styled(View)<ViewProps>(
|
|
28
|
+
const StyledLoadingIndicatorWrapper = styled(View)<ViewProps>({
|
|
29
29
|
flexDirection: 'row',
|
|
30
30
|
justifyContent: 'center',
|
|
31
31
|
alignItems: 'center',
|
|
32
|
-
|
|
33
|
-
theme.__hd__.button.space.loadingIndicatorWrapperVerticalPadding,
|
|
34
|
-
}));
|
|
32
|
+
});
|
|
35
33
|
|
|
36
34
|
const StyledLoadingDot = styled(View)<{
|
|
37
35
|
size?: number;
|
|
@@ -61,12 +59,10 @@ const StyledLoadingDot = styled(View)<{
|
|
|
61
59
|
return {
|
|
62
60
|
width: size,
|
|
63
61
|
height: size,
|
|
64
|
-
marginTop: theme.space.xsmall,
|
|
65
|
-
marginBottom: theme.space.xsmall,
|
|
66
62
|
marginHorizontal: theme.space.small,
|
|
67
63
|
borderRadius: theme.space.small,
|
|
68
64
|
...themeStyling(),
|
|
69
65
|
};
|
|
70
66
|
});
|
|
71
67
|
|
|
72
|
-
export {
|
|
68
|
+
export { StyledLoadingDot, StyledLoadingIndicatorWrapper };
|
|
@@ -8,9 +8,7 @@ exports[`StyledLoadingIndicator has basic-transparent style 1`] = `
|
|
|
8
8
|
"backgroundColor": "#ffffff",
|
|
9
9
|
"borderRadius": 8,
|
|
10
10
|
"height": 12,
|
|
11
|
-
"marginBottom": 4,
|
|
12
11
|
"marginHorizontal": 8,
|
|
13
|
-
"marginTop": 4,
|
|
14
12
|
"width": 12,
|
|
15
13
|
},
|
|
16
14
|
undefined,
|
|
@@ -28,9 +26,7 @@ exports[`StyledLoadingIndicator has filled-danger style 1`] = `
|
|
|
28
26
|
"backgroundColor": "#ffffff",
|
|
29
27
|
"borderRadius": 8,
|
|
30
28
|
"height": 12,
|
|
31
|
-
"marginBottom": 4,
|
|
32
29
|
"marginHorizontal": 8,
|
|
33
|
-
"marginTop": 4,
|
|
34
30
|
"width": 12,
|
|
35
31
|
},
|
|
36
32
|
undefined,
|
|
@@ -48,9 +44,7 @@ exports[`StyledLoadingIndicator has filled-primary style 1`] = `
|
|
|
48
44
|
"backgroundColor": "#ffffff",
|
|
49
45
|
"borderRadius": 8,
|
|
50
46
|
"height": 12,
|
|
51
|
-
"marginBottom": 4,
|
|
52
47
|
"marginHorizontal": 8,
|
|
53
|
-
"marginTop": 4,
|
|
54
48
|
"width": 12,
|
|
55
49
|
},
|
|
56
50
|
undefined,
|
|
@@ -68,9 +62,7 @@ exports[`StyledLoadingIndicator has filled-secondary style 1`] = `
|
|
|
68
62
|
"backgroundColor": "#ffffff",
|
|
69
63
|
"borderRadius": 8,
|
|
70
64
|
"height": 12,
|
|
71
|
-
"marginBottom": 4,
|
|
72
65
|
"marginHorizontal": 8,
|
|
73
|
-
"marginTop": 4,
|
|
74
66
|
"width": 12,
|
|
75
67
|
},
|
|
76
68
|
undefined,
|
|
@@ -88,9 +80,7 @@ exports[`StyledLoadingIndicator has outlined-danger style 1`] = `
|
|
|
88
80
|
"backgroundColor": "#cb300a",
|
|
89
81
|
"borderRadius": 8,
|
|
90
82
|
"height": 12,
|
|
91
|
-
"marginBottom": 4,
|
|
92
83
|
"marginHorizontal": 8,
|
|
93
|
-
"marginTop": 4,
|
|
94
84
|
"width": 12,
|
|
95
85
|
},
|
|
96
86
|
undefined,
|
|
@@ -108,9 +98,7 @@ exports[`StyledLoadingIndicator has outlined-primary style 1`] = `
|
|
|
108
98
|
"backgroundColor": "#401960",
|
|
109
99
|
"borderRadius": 8,
|
|
110
100
|
"height": 12,
|
|
111
|
-
"marginBottom": 4,
|
|
112
101
|
"marginHorizontal": 8,
|
|
113
|
-
"marginTop": 4,
|
|
114
102
|
"width": 12,
|
|
115
103
|
},
|
|
116
104
|
undefined,
|
|
@@ -128,9 +116,7 @@ exports[`StyledLoadingIndicator has outlined-secondary style 1`] = `
|
|
|
128
116
|
"backgroundColor": "#795e90",
|
|
129
117
|
"borderRadius": 8,
|
|
130
118
|
"height": 12,
|
|
131
|
-
"marginBottom": 4,
|
|
132
119
|
"marginHorizontal": 8,
|
|
133
|
-
"marginTop": 4,
|
|
134
120
|
"width": 12,
|
|
135
121
|
},
|
|
136
122
|
undefined,
|
|
@@ -148,9 +134,7 @@ exports[`StyledLoadingIndicator has text-danger style 1`] = `
|
|
|
148
134
|
"backgroundColor": "#cb300a",
|
|
149
135
|
"borderRadius": 8,
|
|
150
136
|
"height": 12,
|
|
151
|
-
"marginBottom": 4,
|
|
152
137
|
"marginHorizontal": 8,
|
|
153
|
-
"marginTop": 4,
|
|
154
138
|
"width": 12,
|
|
155
139
|
},
|
|
156
140
|
undefined,
|
|
@@ -168,9 +152,7 @@ exports[`StyledLoadingIndicator has text-primary style 1`] = `
|
|
|
168
152
|
"backgroundColor": "#795e90",
|
|
169
153
|
"borderRadius": 8,
|
|
170
154
|
"height": 12,
|
|
171
|
-
"marginBottom": 4,
|
|
172
155
|
"marginHorizontal": 8,
|
|
173
|
-
"marginTop": 4,
|
|
174
156
|
"width": 12,
|
|
175
157
|
},
|
|
176
158
|
undefined,
|
|
@@ -188,9 +170,7 @@ exports[`StyledLoadingIndicator has text-secondary style 1`] = `
|
|
|
188
170
|
"backgroundColor": "#795e90",
|
|
189
171
|
"borderRadius": 8,
|
|
190
172
|
"height": 12,
|
|
191
|
-
"marginBottom": 4,
|
|
192
173
|
"marginHorizontal": 8,
|
|
193
|
-
"marginTop": 4,
|
|
194
174
|
"width": 12,
|
|
195
175
|
},
|
|
196
176
|
undefined,
|
|
@@ -9,7 +9,6 @@ exports[`LoadingIndicator renders correctly when themeVariant is basic-transpare
|
|
|
9
9
|
"alignItems": "center",
|
|
10
10
|
"flexDirection": "row",
|
|
11
11
|
"justifyContent": "center",
|
|
12
|
-
"paddingVertical": 1,
|
|
13
12
|
},
|
|
14
13
|
{},
|
|
15
14
|
]
|
|
@@ -36,9 +35,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is basic-transpare
|
|
|
36
35
|
"backgroundColor": "#ffffff",
|
|
37
36
|
"borderRadius": 8,
|
|
38
37
|
"height": 12,
|
|
39
|
-
"marginBottom": 4,
|
|
40
38
|
"marginHorizontal": 8,
|
|
41
|
-
"marginTop": 4,
|
|
42
39
|
"width": 12,
|
|
43
40
|
},
|
|
44
41
|
{},
|
|
@@ -68,9 +65,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is basic-transpare
|
|
|
68
65
|
"backgroundColor": "#ffffff",
|
|
69
66
|
"borderRadius": 8,
|
|
70
67
|
"height": 12,
|
|
71
|
-
"marginBottom": 4,
|
|
72
68
|
"marginHorizontal": 8,
|
|
73
|
-
"marginTop": 4,
|
|
74
69
|
"width": 12,
|
|
75
70
|
},
|
|
76
71
|
{},
|
|
@@ -100,9 +95,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is basic-transpare
|
|
|
100
95
|
"backgroundColor": "#ffffff",
|
|
101
96
|
"borderRadius": 8,
|
|
102
97
|
"height": 12,
|
|
103
|
-
"marginBottom": 4,
|
|
104
98
|
"marginHorizontal": 8,
|
|
105
|
-
"marginTop": 4,
|
|
106
99
|
"width": 12,
|
|
107
100
|
},
|
|
108
101
|
{},
|
|
@@ -123,7 +116,6 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-danger 1
|
|
|
123
116
|
"alignItems": "center",
|
|
124
117
|
"flexDirection": "row",
|
|
125
118
|
"justifyContent": "center",
|
|
126
|
-
"paddingVertical": 1,
|
|
127
119
|
},
|
|
128
120
|
{},
|
|
129
121
|
]
|
|
@@ -150,9 +142,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-danger 1
|
|
|
150
142
|
"backgroundColor": "#ffffff",
|
|
151
143
|
"borderRadius": 8,
|
|
152
144
|
"height": 12,
|
|
153
|
-
"marginBottom": 4,
|
|
154
145
|
"marginHorizontal": 8,
|
|
155
|
-
"marginTop": 4,
|
|
156
146
|
"width": 12,
|
|
157
147
|
},
|
|
158
148
|
{},
|
|
@@ -182,9 +172,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-danger 1
|
|
|
182
172
|
"backgroundColor": "#ffffff",
|
|
183
173
|
"borderRadius": 8,
|
|
184
174
|
"height": 12,
|
|
185
|
-
"marginBottom": 4,
|
|
186
175
|
"marginHorizontal": 8,
|
|
187
|
-
"marginTop": 4,
|
|
188
176
|
"width": 12,
|
|
189
177
|
},
|
|
190
178
|
{},
|
|
@@ -214,9 +202,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-danger 1
|
|
|
214
202
|
"backgroundColor": "#ffffff",
|
|
215
203
|
"borderRadius": 8,
|
|
216
204
|
"height": 12,
|
|
217
|
-
"marginBottom": 4,
|
|
218
205
|
"marginHorizontal": 8,
|
|
219
|
-
"marginTop": 4,
|
|
220
206
|
"width": 12,
|
|
221
207
|
},
|
|
222
208
|
{},
|
|
@@ -237,7 +223,6 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-primary
|
|
|
237
223
|
"alignItems": "center",
|
|
238
224
|
"flexDirection": "row",
|
|
239
225
|
"justifyContent": "center",
|
|
240
|
-
"paddingVertical": 1,
|
|
241
226
|
},
|
|
242
227
|
{},
|
|
243
228
|
]
|
|
@@ -264,9 +249,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-primary
|
|
|
264
249
|
"backgroundColor": "#ffffff",
|
|
265
250
|
"borderRadius": 8,
|
|
266
251
|
"height": 12,
|
|
267
|
-
"marginBottom": 4,
|
|
268
252
|
"marginHorizontal": 8,
|
|
269
|
-
"marginTop": 4,
|
|
270
253
|
"width": 12,
|
|
271
254
|
},
|
|
272
255
|
{},
|
|
@@ -296,9 +279,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-primary
|
|
|
296
279
|
"backgroundColor": "#ffffff",
|
|
297
280
|
"borderRadius": 8,
|
|
298
281
|
"height": 12,
|
|
299
|
-
"marginBottom": 4,
|
|
300
282
|
"marginHorizontal": 8,
|
|
301
|
-
"marginTop": 4,
|
|
302
283
|
"width": 12,
|
|
303
284
|
},
|
|
304
285
|
{},
|
|
@@ -328,9 +309,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-primary
|
|
|
328
309
|
"backgroundColor": "#ffffff",
|
|
329
310
|
"borderRadius": 8,
|
|
330
311
|
"height": 12,
|
|
331
|
-
"marginBottom": 4,
|
|
332
312
|
"marginHorizontal": 8,
|
|
333
|
-
"marginTop": 4,
|
|
334
313
|
"width": 12,
|
|
335
314
|
},
|
|
336
315
|
{},
|
|
@@ -351,7 +330,6 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-secondar
|
|
|
351
330
|
"alignItems": "center",
|
|
352
331
|
"flexDirection": "row",
|
|
353
332
|
"justifyContent": "center",
|
|
354
|
-
"paddingVertical": 1,
|
|
355
333
|
},
|
|
356
334
|
{},
|
|
357
335
|
]
|
|
@@ -378,9 +356,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-secondar
|
|
|
378
356
|
"backgroundColor": "#ffffff",
|
|
379
357
|
"borderRadius": 8,
|
|
380
358
|
"height": 12,
|
|
381
|
-
"marginBottom": 4,
|
|
382
359
|
"marginHorizontal": 8,
|
|
383
|
-
"marginTop": 4,
|
|
384
360
|
"width": 12,
|
|
385
361
|
},
|
|
386
362
|
{},
|
|
@@ -410,9 +386,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-secondar
|
|
|
410
386
|
"backgroundColor": "#ffffff",
|
|
411
387
|
"borderRadius": 8,
|
|
412
388
|
"height": 12,
|
|
413
|
-
"marginBottom": 4,
|
|
414
389
|
"marginHorizontal": 8,
|
|
415
|
-
"marginTop": 4,
|
|
416
390
|
"width": 12,
|
|
417
391
|
},
|
|
418
392
|
{},
|
|
@@ -442,9 +416,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-secondar
|
|
|
442
416
|
"backgroundColor": "#ffffff",
|
|
443
417
|
"borderRadius": 8,
|
|
444
418
|
"height": 12,
|
|
445
|
-
"marginBottom": 4,
|
|
446
419
|
"marginHorizontal": 8,
|
|
447
|
-
"marginTop": 4,
|
|
448
420
|
"width": 12,
|
|
449
421
|
},
|
|
450
422
|
{},
|
|
@@ -465,7 +437,6 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
|
|
|
465
437
|
"alignItems": "center",
|
|
466
438
|
"flexDirection": "row",
|
|
467
439
|
"justifyContent": "center",
|
|
468
|
-
"paddingVertical": 1,
|
|
469
440
|
},
|
|
470
441
|
{},
|
|
471
442
|
]
|
|
@@ -492,9 +463,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
|
|
|
492
463
|
"backgroundColor": "#cb300a",
|
|
493
464
|
"borderRadius": 8,
|
|
494
465
|
"height": 12,
|
|
495
|
-
"marginBottom": 4,
|
|
496
466
|
"marginHorizontal": 8,
|
|
497
|
-
"marginTop": 4,
|
|
498
467
|
"width": 12,
|
|
499
468
|
},
|
|
500
469
|
{},
|
|
@@ -524,9 +493,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
|
|
|
524
493
|
"backgroundColor": "#cb300a",
|
|
525
494
|
"borderRadius": 8,
|
|
526
495
|
"height": 12,
|
|
527
|
-
"marginBottom": 4,
|
|
528
496
|
"marginHorizontal": 8,
|
|
529
|
-
"marginTop": 4,
|
|
530
497
|
"width": 12,
|
|
531
498
|
},
|
|
532
499
|
{},
|
|
@@ -556,9 +523,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
|
|
|
556
523
|
"backgroundColor": "#cb300a",
|
|
557
524
|
"borderRadius": 8,
|
|
558
525
|
"height": 12,
|
|
559
|
-
"marginBottom": 4,
|
|
560
526
|
"marginHorizontal": 8,
|
|
561
|
-
"marginTop": 4,
|
|
562
527
|
"width": 12,
|
|
563
528
|
},
|
|
564
529
|
{},
|
|
@@ -579,7 +544,6 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-primar
|
|
|
579
544
|
"alignItems": "center",
|
|
580
545
|
"flexDirection": "row",
|
|
581
546
|
"justifyContent": "center",
|
|
582
|
-
"paddingVertical": 1,
|
|
583
547
|
},
|
|
584
548
|
{},
|
|
585
549
|
]
|
|
@@ -606,9 +570,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-primar
|
|
|
606
570
|
"backgroundColor": "#401960",
|
|
607
571
|
"borderRadius": 8,
|
|
608
572
|
"height": 12,
|
|
609
|
-
"marginBottom": 4,
|
|
610
573
|
"marginHorizontal": 8,
|
|
611
|
-
"marginTop": 4,
|
|
612
574
|
"width": 12,
|
|
613
575
|
},
|
|
614
576
|
{},
|
|
@@ -638,9 +600,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-primar
|
|
|
638
600
|
"backgroundColor": "#401960",
|
|
639
601
|
"borderRadius": 8,
|
|
640
602
|
"height": 12,
|
|
641
|
-
"marginBottom": 4,
|
|
642
603
|
"marginHorizontal": 8,
|
|
643
|
-
"marginTop": 4,
|
|
644
604
|
"width": 12,
|
|
645
605
|
},
|
|
646
606
|
{},
|
|
@@ -670,9 +630,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-primar
|
|
|
670
630
|
"backgroundColor": "#401960",
|
|
671
631
|
"borderRadius": 8,
|
|
672
632
|
"height": 12,
|
|
673
|
-
"marginBottom": 4,
|
|
674
633
|
"marginHorizontal": 8,
|
|
675
|
-
"marginTop": 4,
|
|
676
634
|
"width": 12,
|
|
677
635
|
},
|
|
678
636
|
{},
|
|
@@ -693,7 +651,6 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-second
|
|
|
693
651
|
"alignItems": "center",
|
|
694
652
|
"flexDirection": "row",
|
|
695
653
|
"justifyContent": "center",
|
|
696
|
-
"paddingVertical": 1,
|
|
697
654
|
},
|
|
698
655
|
{},
|
|
699
656
|
]
|
|
@@ -720,9 +677,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-second
|
|
|
720
677
|
"backgroundColor": "#795e90",
|
|
721
678
|
"borderRadius": 8,
|
|
722
679
|
"height": 12,
|
|
723
|
-
"marginBottom": 4,
|
|
724
680
|
"marginHorizontal": 8,
|
|
725
|
-
"marginTop": 4,
|
|
726
681
|
"width": 12,
|
|
727
682
|
},
|
|
728
683
|
{},
|
|
@@ -752,9 +707,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-second
|
|
|
752
707
|
"backgroundColor": "#795e90",
|
|
753
708
|
"borderRadius": 8,
|
|
754
709
|
"height": 12,
|
|
755
|
-
"marginBottom": 4,
|
|
756
710
|
"marginHorizontal": 8,
|
|
757
|
-
"marginTop": 4,
|
|
758
711
|
"width": 12,
|
|
759
712
|
},
|
|
760
713
|
{},
|
|
@@ -784,9 +737,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-second
|
|
|
784
737
|
"backgroundColor": "#795e90",
|
|
785
738
|
"borderRadius": 8,
|
|
786
739
|
"height": 12,
|
|
787
|
-
"marginBottom": 4,
|
|
788
740
|
"marginHorizontal": 8,
|
|
789
|
-
"marginTop": 4,
|
|
790
741
|
"width": 12,
|
|
791
742
|
},
|
|
792
743
|
{},
|
|
@@ -807,7 +758,6 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
|
|
|
807
758
|
"alignItems": "center",
|
|
808
759
|
"flexDirection": "row",
|
|
809
760
|
"justifyContent": "center",
|
|
810
|
-
"paddingVertical": 1,
|
|
811
761
|
},
|
|
812
762
|
{},
|
|
813
763
|
]
|
|
@@ -834,9 +784,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
|
|
|
834
784
|
"backgroundColor": "#cb300a",
|
|
835
785
|
"borderRadius": 8,
|
|
836
786
|
"height": 12,
|
|
837
|
-
"marginBottom": 4,
|
|
838
787
|
"marginHorizontal": 8,
|
|
839
|
-
"marginTop": 4,
|
|
840
788
|
"width": 12,
|
|
841
789
|
},
|
|
842
790
|
{},
|
|
@@ -866,9 +814,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
|
|
|
866
814
|
"backgroundColor": "#cb300a",
|
|
867
815
|
"borderRadius": 8,
|
|
868
816
|
"height": 12,
|
|
869
|
-
"marginBottom": 4,
|
|
870
817
|
"marginHorizontal": 8,
|
|
871
|
-
"marginTop": 4,
|
|
872
818
|
"width": 12,
|
|
873
819
|
},
|
|
874
820
|
{},
|
|
@@ -898,9 +844,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
|
|
|
898
844
|
"backgroundColor": "#cb300a",
|
|
899
845
|
"borderRadius": 8,
|
|
900
846
|
"height": 12,
|
|
901
|
-
"marginBottom": 4,
|
|
902
847
|
"marginHorizontal": 8,
|
|
903
|
-
"marginTop": 4,
|
|
904
848
|
"width": 12,
|
|
905
849
|
},
|
|
906
850
|
{},
|
|
@@ -921,7 +865,6 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-primary 1`
|
|
|
921
865
|
"alignItems": "center",
|
|
922
866
|
"flexDirection": "row",
|
|
923
867
|
"justifyContent": "center",
|
|
924
|
-
"paddingVertical": 1,
|
|
925
868
|
},
|
|
926
869
|
{},
|
|
927
870
|
]
|
|
@@ -948,9 +891,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-primary 1`
|
|
|
948
891
|
"backgroundColor": "#795e90",
|
|
949
892
|
"borderRadius": 8,
|
|
950
893
|
"height": 12,
|
|
951
|
-
"marginBottom": 4,
|
|
952
894
|
"marginHorizontal": 8,
|
|
953
|
-
"marginTop": 4,
|
|
954
895
|
"width": 12,
|
|
955
896
|
},
|
|
956
897
|
{},
|
|
@@ -980,9 +921,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-primary 1`
|
|
|
980
921
|
"backgroundColor": "#795e90",
|
|
981
922
|
"borderRadius": 8,
|
|
982
923
|
"height": 12,
|
|
983
|
-
"marginBottom": 4,
|
|
984
924
|
"marginHorizontal": 8,
|
|
985
|
-
"marginTop": 4,
|
|
986
925
|
"width": 12,
|
|
987
926
|
},
|
|
988
927
|
{},
|
|
@@ -1012,9 +951,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-primary 1`
|
|
|
1012
951
|
"backgroundColor": "#795e90",
|
|
1013
952
|
"borderRadius": 8,
|
|
1014
953
|
"height": 12,
|
|
1015
|
-
"marginBottom": 4,
|
|
1016
954
|
"marginHorizontal": 8,
|
|
1017
|
-
"marginTop": 4,
|
|
1018
955
|
"width": 12,
|
|
1019
956
|
},
|
|
1020
957
|
{},
|
|
@@ -1035,7 +972,6 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-secondary
|
|
|
1035
972
|
"alignItems": "center",
|
|
1036
973
|
"flexDirection": "row",
|
|
1037
974
|
"justifyContent": "center",
|
|
1038
|
-
"paddingVertical": 1,
|
|
1039
975
|
},
|
|
1040
976
|
{},
|
|
1041
977
|
]
|
|
@@ -1062,9 +998,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-secondary
|
|
|
1062
998
|
"backgroundColor": "#795e90",
|
|
1063
999
|
"borderRadius": 8,
|
|
1064
1000
|
"height": 12,
|
|
1065
|
-
"marginBottom": 4,
|
|
1066
1001
|
"marginHorizontal": 8,
|
|
1067
|
-
"marginTop": 4,
|
|
1068
1002
|
"width": 12,
|
|
1069
1003
|
},
|
|
1070
1004
|
{},
|
|
@@ -1094,9 +1028,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-secondary
|
|
|
1094
1028
|
"backgroundColor": "#795e90",
|
|
1095
1029
|
"borderRadius": 8,
|
|
1096
1030
|
"height": 12,
|
|
1097
|
-
"marginBottom": 4,
|
|
1098
1031
|
"marginHorizontal": 8,
|
|
1099
|
-
"marginTop": 4,
|
|
1100
1032
|
"width": 12,
|
|
1101
1033
|
},
|
|
1102
1034
|
{},
|
|
@@ -1126,9 +1058,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-secondary
|
|
|
1126
1058
|
"backgroundColor": "#795e90",
|
|
1127
1059
|
"borderRadius": 8,
|
|
1128
1060
|
"height": 12,
|
|
1129
|
-
"marginBottom": 4,
|
|
1130
1061
|
"marginHorizontal": 8,
|
|
1131
|
-
"marginTop": 4,
|
|
1132
1062
|
"width": 12,
|
|
1133
1063
|
},
|
|
1134
1064
|
{},
|
|
@@ -4,6 +4,7 @@ import type { ReactNativeStyle } from '@emotion/native';
|
|
|
4
4
|
import type { Theme } from '@emotion/react';
|
|
5
5
|
import Icon from '../Icon';
|
|
6
6
|
import Typography from '../Typography';
|
|
7
|
+
import { scale } from '../../utils/scale';
|
|
7
8
|
|
|
8
9
|
type Intent = 'primary' | 'secondary' | 'danger';
|
|
9
10
|
|
|
@@ -35,6 +36,7 @@ const genFilledContainerStyles = (
|
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
return {
|
|
39
|
+
height: scale(60),
|
|
38
40
|
flexDirection: 'row',
|
|
39
41
|
justifyContent: 'center',
|
|
40
42
|
alignItems: 'center',
|
|
@@ -62,6 +64,7 @@ const genOutlineContainerStyles = (
|
|
|
62
64
|
};
|
|
63
65
|
|
|
64
66
|
return {
|
|
67
|
+
height: scale(60),
|
|
65
68
|
flexDirection: 'row',
|
|
66
69
|
justifyContent: 'center',
|
|
67
70
|
alignItems: 'center',
|
|
@@ -126,6 +129,7 @@ const StyledButtonContainer = styled(TouchableHighlight)<{
|
|
|
126
129
|
case 'text-secondary':
|
|
127
130
|
case 'text-danger':
|
|
128
131
|
return {
|
|
132
|
+
height: scale(60),
|
|
129
133
|
borderRadius: theme.__hd__.button.radii.text,
|
|
130
134
|
flexDirection: 'row',
|
|
131
135
|
justifyContent: 'center',
|
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`UtilityButton snapshot has intent primary style 1`] = `
|
|
4
4
|
<View
|
|
5
|
+
accessibilityState={
|
|
6
|
+
{
|
|
7
|
+
"busy": undefined,
|
|
8
|
+
"checked": undefined,
|
|
9
|
+
"disabled": undefined,
|
|
10
|
+
"expanded": undefined,
|
|
11
|
+
"selected": undefined,
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
accessibilityValue={
|
|
15
|
+
{
|
|
16
|
+
"max": undefined,
|
|
17
|
+
"min": undefined,
|
|
18
|
+
"now": undefined,
|
|
19
|
+
"text": undefined,
|
|
20
|
+
}
|
|
21
|
+
}
|
|
5
22
|
accessible={true}
|
|
6
23
|
collapsable={false}
|
|
7
24
|
focusable={true}
|
|
@@ -83,6 +100,23 @@ exports[`UtilityButton snapshot has intent primary style 1`] = `
|
|
|
83
100
|
|
|
84
101
|
exports[`UtilityButton snapshot has intent text style 1`] = `
|
|
85
102
|
<View
|
|
103
|
+
accessibilityState={
|
|
104
|
+
{
|
|
105
|
+
"busy": undefined,
|
|
106
|
+
"checked": undefined,
|
|
107
|
+
"disabled": undefined,
|
|
108
|
+
"expanded": undefined,
|
|
109
|
+
"selected": undefined,
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
accessibilityValue={
|
|
113
|
+
{
|
|
114
|
+
"max": undefined,
|
|
115
|
+
"min": undefined,
|
|
116
|
+
"now": undefined,
|
|
117
|
+
"text": undefined,
|
|
118
|
+
}
|
|
119
|
+
}
|
|
86
120
|
accessible={true}
|
|
87
121
|
collapsable={false}
|
|
88
122
|
focusable={true}
|