@hero-design/rn 8.52.2-rc2.0 → 8.54.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.
- package/.eslintrc.js +0 -1
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +11 -13
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +1004 -705
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +1003 -703
- package/package.json +7 -7
- package/sonar-project.properties +9 -0
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -0
- package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +2 -0
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -0
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +6 -0
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -0
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +60 -0
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +413 -0
- package/src/components/BottomNavigation/__tests__/index.spec.tsx +97 -0
- package/src/components/BottomNavigation/index.tsx +166 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +21 -32
- package/src/components/BottomSheet/index.tsx +1 -1
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +21 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +10 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +10 -0
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +16 -0
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +32 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +7 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -0
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +2 -0
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +4 -0
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +1 -0
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +803 -1
- package/src/components/Carousel/__tests__/index.spec.tsx +47 -37
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +8 -0
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/Checkbox/index.tsx +13 -1
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +2 -0
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +15 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +329 -309
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -0
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Drawer/DragableDrawer/index.tsx +2 -2
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/Error/index.tsx +20 -3
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/FAB/ActionGroup/index.tsx +14 -1
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -0
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +9 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +9 -0
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +5 -0
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -0
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1 -0
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +1 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +4 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/SectionHeading/__tests__/index.spec.tsx +1 -0
- package/src/components/SectionHeading/index.tsx +57 -32
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +42 -128
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +35 -96
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +1 -0
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +24 -0
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +4 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +5 -0
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +4 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +1 -0
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +10 -0
- package/src/components/Tag/index.tsx +12 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +21 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +17 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +330 -309
- package/src/components/Toast/StyledToast.tsx +9 -7
- package/src/components/Toast/Toast.tsx +4 -1
- package/src/components/Toast/ToastContainer.tsx +6 -2
- package/src/components/Toast/ToastContext.ts +5 -2
- package/src/components/Toast/ToastProvider.tsx +19 -2
- package/src/components/Toast/__tests__/ToastContainer.spec.tsx +15 -12
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -0
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +14 -6
- package/src/components/Toast/types.ts +5 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +3 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -0
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +16 -0
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +19 -0
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +10 -0
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +8 -0
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +11 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +20 -0
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +20 -0
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +23 -0
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +102 -0
- package/src/theme/components/badge.ts +28 -1
- package/src/theme/components/bottomNavigation.ts +27 -0
- package/src/theme/components/button.ts +24 -0
- package/src/theme/components/carousel.ts +28 -1
- package/src/theme/components/empty.ts +23 -1
- package/src/theme/components/error.ts +32 -1
- package/src/theme/components/fab.ts +13 -2
- package/src/theme/components/pinInput.ts +32 -0
- package/src/theme/components/success.ts +23 -1
- package/src/theme/components/tag.ts +28 -1
- package/src/theme/components/textInput.ts +5 -0
- package/src/theme/getTheme.ts +21 -18
- package/src/types.ts +2 -0
- package/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/types/components/Accordion/StyledAccordion.d.ts +1 -1
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +1 -1
- package/types/components/Avatar/StyledAvatar.d.ts +2 -2
- package/types/components/Badge/StyledBadge.d.ts +2 -2
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
- package/types/components/BottomNavigation/index.d.ts +45 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -1
- package/types/components/Box/config.d.ts +2 -2
- package/types/components/Box/types.d.ts +3 -3
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +2 -2
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/types.d.ts +2 -2
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/Checkbox/index.d.ts +7 -2
- package/types/components/Chip/StyledChip.d.ts +1 -1
- package/types/components/Divider/StyledDivider.d.ts +1 -1
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +1 -1
- package/types/components/Empty/StyledEmpty.d.ts +1 -1
- package/types/components/Error/StyledError.d.ts +1 -1
- package/types/components/Error/index.d.ts +9 -3
- package/types/components/FAB/ActionGroup/index.d.ts +6 -1
- package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
- package/types/components/FAB/FAB.d.ts +1 -1
- package/types/components/Icon/AnimatedIcon.d.ts +1 -1
- package/types/components/Icon/HeroIcon/index.d.ts +2 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +2 -2
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/List/StyledListItem.d.ts +2 -2
- package/types/components/PinInput/StyledPinInput.d.ts +1 -1
- package/types/components/Portal/reducer.d.ts +1 -1
- package/types/components/Portal/types.d.ts +1 -1
- package/types/components/Progress/types.d.ts +1 -1
- package/types/components/Radio/types.d.ts +1 -1
- package/types/components/RefreshControl/index.d.ts +1 -1
- package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/types/components/RichTextEditor/types.d.ts +1 -1
- package/types/components/SectionHeading/StyledHeading.d.ts +1 -1
- package/types/components/SectionHeading/index.d.ts +11 -1
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/helpers.d.ts +1 -1
- package/types/components/Select/types.d.ts +6 -6
- package/types/components/Skeleton/StyledSkeleton.d.ts +2 -2
- package/types/components/Success/StyledSuccess.d.ts +1 -1
- package/types/components/Swipeable/StyledSwipeable.d.ts +1 -1
- package/types/components/Swipeable/index.d.ts +2 -2
- package/types/components/Switch/SelectorSwitch/index.d.ts +3 -3
- package/types/components/Switch/StyledSwitch.d.ts +1 -1
- package/types/components/Tabs/TabWithBadge.d.ts +3 -3
- package/types/components/Tabs/index.d.ts +2 -2
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/Tag/index.d.ts +6 -1
- package/types/components/TextInput/StyledTextInput.d.ts +2 -2
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/components/Toast/StyledToast.d.ts +2 -0
- package/types/components/Toast/ToastContext.d.ts +3 -3
- package/types/components/Toast/ToastProvider.d.ts +2 -2
- package/types/components/Toast/index.d.ts +1 -1
- package/types/components/Toast/types.d.ts +7 -3
- package/types/components/Typography/Body/StyledBody.d.ts +1 -1
- package/types/components/Typography/Title/StyledTitle.d.ts +1 -1
- package/types/components/Typography/types.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/theme/ThemeSwitcher.d.ts +1 -1
- package/types/theme/components/badge.d.ts +24 -0
- package/types/theme/components/bottomNavigation.d.ts +23 -0
- package/types/theme/components/button.d.ts +20 -0
- package/types/theme/components/carousel.d.ts +24 -0
- package/types/theme/components/empty.d.ts +19 -0
- package/types/theme/components/error.d.ts +27 -0
- package/types/theme/components/fab.d.ts +19 -8
- package/types/theme/components/pinInput.d.ts +27 -0
- package/types/theme/components/success.d.ts +19 -0
- package/types/theme/components/tag.d.ts +24 -0
- package/types/theme/components/textInput.d.ts +5 -0
- package/types/theme/getTheme.d.ts +21 -19
- package/types/theme/global/colors/types.d.ts +3 -3
- package/types/theme/global/index.d.ts +1 -1
- package/types/theme/global/scale.d.ts +1 -1
- package/types/theme/global/shadows.d.ts +1 -1
- package/types/theme/global/typography.d.ts +1 -1
- package/types/types.d.ts +2 -1
package/lib/index.js
CHANGED
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var reactNative = require('react-native');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var reactNativeVectorIcons = require('react-native-vector-icons');
|
|
8
|
+
var reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
8
9
|
var reactNativeMonthYearPicker = require('@hero-design/react-native-month-year-picker');
|
|
9
10
|
var DateTimePicker = require('@react-native-community/datetimepicker');
|
|
10
11
|
var RnSlider = require('@react-native-community/slider');
|
|
11
12
|
var reactNativeGestureHandler = require('react-native-gesture-handler');
|
|
12
13
|
var LinearGradient = require('react-native-linear-gradient');
|
|
13
|
-
var reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
14
14
|
var PagerView = require('react-native-pager-view');
|
|
15
15
|
var events = require('events');
|
|
16
16
|
var reactNativeWebview = require('react-native-webview');
|
|
@@ -2200,6 +2200,15 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2200
2200
|
archived: theme.colors.onArchivedSurface,
|
|
2201
2201
|
text: theme.colors.onDarkGlobalSurface
|
|
2202
2202
|
};
|
|
2203
|
+
var fonts = {
|
|
2204
|
+
"default": theme.fonts.neutral.semiBold
|
|
2205
|
+
};
|
|
2206
|
+
var fontSizes = {
|
|
2207
|
+
"default": theme.fontSizes.small
|
|
2208
|
+
};
|
|
2209
|
+
var lineHeights = {
|
|
2210
|
+
"default": theme.lineHeights.small
|
|
2211
|
+
};
|
|
2203
2212
|
var sizes = {
|
|
2204
2213
|
height: theme.fontSizes.small + theme.sizes.small,
|
|
2205
2214
|
minWidth: theme.fontSizes.small + theme.sizes.small,
|
|
@@ -2213,6 +2222,37 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2213
2222
|
};
|
|
2214
2223
|
return {
|
|
2215
2224
|
colors: colors,
|
|
2225
|
+
fonts: fonts,
|
|
2226
|
+
fontSizes: fontSizes,
|
|
2227
|
+
sizes: sizes,
|
|
2228
|
+
space: space,
|
|
2229
|
+
lineHeights: lineHeights
|
|
2230
|
+
};
|
|
2231
|
+
};
|
|
2232
|
+
|
|
2233
|
+
var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
2234
|
+
var colors = {
|
|
2235
|
+
shadow: theme.colors.primary,
|
|
2236
|
+
background: theme.colors.defaultGlobalSurface
|
|
2237
|
+
};
|
|
2238
|
+
var sizes = {
|
|
2239
|
+
height: theme.sizes['6xlarge']
|
|
2240
|
+
};
|
|
2241
|
+
var shadows = {
|
|
2242
|
+
offset: {
|
|
2243
|
+
width: 0,
|
|
2244
|
+
height: 3
|
|
2245
|
+
},
|
|
2246
|
+
opacity: 0.27,
|
|
2247
|
+
radius: 4.65,
|
|
2248
|
+
elevation: 10
|
|
2249
|
+
};
|
|
2250
|
+
var space = {
|
|
2251
|
+
titleMarginTop: theme.space.xsmall
|
|
2252
|
+
};
|
|
2253
|
+
return {
|
|
2254
|
+
colors: colors,
|
|
2255
|
+
shadows: shadows,
|
|
2216
2256
|
sizes: sizes,
|
|
2217
2257
|
space: space
|
|
2218
2258
|
};
|
|
@@ -2256,6 +2296,15 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
2256
2296
|
};
|
|
2257
2297
|
|
|
2258
2298
|
var getButtonTheme = function getButtonTheme(theme) {
|
|
2299
|
+
var fonts = {
|
|
2300
|
+
"default": theme.fonts.neutral.semiBold,
|
|
2301
|
+
utility: theme.fonts.neutral.regular
|
|
2302
|
+
};
|
|
2303
|
+
var fontSize = {
|
|
2304
|
+
"default": theme.fontSizes.xlarge,
|
|
2305
|
+
utility: theme.fontSizes.large,
|
|
2306
|
+
textVariant: theme.fontSizes.large
|
|
2307
|
+
};
|
|
2259
2308
|
var borderWidth = {
|
|
2260
2309
|
"default": theme.space.xxsmall
|
|
2261
2310
|
};
|
|
@@ -2302,6 +2351,8 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
2302
2351
|
return {
|
|
2303
2352
|
lineHeights: lineHeights,
|
|
2304
2353
|
borderWidth: borderWidth,
|
|
2354
|
+
fonts: fonts,
|
|
2355
|
+
fontSize: fontSize,
|
|
2305
2356
|
sizes: sizes,
|
|
2306
2357
|
radii: radii,
|
|
2307
2358
|
colors: colors,
|
|
@@ -2377,8 +2428,20 @@ var getCarouselTheme = function getCarouselTheme(theme) {
|
|
|
2377
2428
|
pageControlPaddingVertical: theme.space.small,
|
|
2378
2429
|
pageControlWrapperHeight: scale(48)
|
|
2379
2430
|
};
|
|
2431
|
+
var fontSizes = {
|
|
2432
|
+
heading: theme.fontSizes['xxxxxlarge']
|
|
2433
|
+
};
|
|
2434
|
+
var fonts = {
|
|
2435
|
+
heading: theme.fonts.playful.semiBold
|
|
2436
|
+
};
|
|
2437
|
+
var lineHeights = {
|
|
2438
|
+
heading: theme.lineHeights['6xlarge']
|
|
2439
|
+
};
|
|
2380
2440
|
return {
|
|
2381
|
-
space: space
|
|
2441
|
+
space: space,
|
|
2442
|
+
fonts: fonts,
|
|
2443
|
+
fontSizes: fontSizes,
|
|
2444
|
+
lineHeights: lineHeights
|
|
2382
2445
|
};
|
|
2383
2446
|
};
|
|
2384
2447
|
|
|
@@ -2562,10 +2625,20 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
2562
2625
|
subduedText: theme.colors.mutedOnDefaultGlobalSurface,
|
|
2563
2626
|
invertedSubduedText: theme.colors.onDarkGlobalSurface
|
|
2564
2627
|
};
|
|
2628
|
+
var fontSizes = {
|
|
2629
|
+
title: theme.fontSizes.xxxlarge,
|
|
2630
|
+
description: theme.fontSizes.xlarge
|
|
2631
|
+
};
|
|
2632
|
+
var fonts = {
|
|
2633
|
+
title: theme.fonts.playful.semiBold,
|
|
2634
|
+
description: theme.fonts.playful.regular
|
|
2635
|
+
};
|
|
2565
2636
|
return {
|
|
2637
|
+
fontSizes: fontSizes,
|
|
2566
2638
|
colors: colors,
|
|
2567
2639
|
sizes: sizes,
|
|
2568
|
-
space: space
|
|
2640
|
+
space: space,
|
|
2641
|
+
fonts: fonts
|
|
2569
2642
|
};
|
|
2570
2643
|
};
|
|
2571
2644
|
|
|
@@ -2590,10 +2663,25 @@ var getErrorTheme = function getErrorTheme(theme) {
|
|
|
2590
2663
|
fullScreenBackground: theme.colors.decorativePrimarySurface,
|
|
2591
2664
|
inPageBackground: theme.colors.neutralGlobalSurface
|
|
2592
2665
|
};
|
|
2666
|
+
var fontSizes = {
|
|
2667
|
+
title: theme.fontSizes.xxxlarge,
|
|
2668
|
+
description: theme.fontSizes.xlarge
|
|
2669
|
+
};
|
|
2670
|
+
var fonts = {
|
|
2671
|
+
title: theme.fonts.playful.semiBold,
|
|
2672
|
+
description: theme.fonts.playful.regular
|
|
2673
|
+
};
|
|
2674
|
+
var lineHeight = {
|
|
2675
|
+
title: theme.lineHeights.xxxlarge,
|
|
2676
|
+
description: theme.lineHeights.xlarge
|
|
2677
|
+
};
|
|
2593
2678
|
return {
|
|
2679
|
+
fontSizes: fontSizes,
|
|
2594
2680
|
colors: colors,
|
|
2595
2681
|
sizes: sizes,
|
|
2596
|
-
space: space
|
|
2682
|
+
space: space,
|
|
2683
|
+
fonts: fonts,
|
|
2684
|
+
lineHeight: lineHeight
|
|
2597
2685
|
};
|
|
2598
2686
|
};
|
|
2599
2687
|
|
|
@@ -2650,10 +2738,10 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2650
2738
|
};
|
|
2651
2739
|
return {
|
|
2652
2740
|
radii: radii,
|
|
2653
|
-
colors: colors,
|
|
2654
|
-
sizes: sizes,
|
|
2655
2741
|
fonts: fonts,
|
|
2656
2742
|
fontSizes: fontSizes,
|
|
2743
|
+
colors: colors,
|
|
2744
|
+
sizes: sizes,
|
|
2657
2745
|
lineHeights: lineHeights,
|
|
2658
2746
|
shadows: shadows,
|
|
2659
2747
|
space: space
|
|
@@ -2778,6 +2866,18 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2778
2866
|
error: theme.colors.onErrorSurface,
|
|
2779
2867
|
disabled: theme.colors.disabledOnDefaultGlobalSurface
|
|
2780
2868
|
};
|
|
2869
|
+
var fonts = {
|
|
2870
|
+
cellText: theme.fonts.neutral.semiBold,
|
|
2871
|
+
errorMessage: theme.fonts.neutral.regular
|
|
2872
|
+
};
|
|
2873
|
+
var fontSizes = {
|
|
2874
|
+
cellText: theme.fontSizes.xxxxlarge,
|
|
2875
|
+
errorMessage: theme.fontSizes.small
|
|
2876
|
+
};
|
|
2877
|
+
var lineHeights = {
|
|
2878
|
+
cellText: theme.lineHeights.xxxxlarge,
|
|
2879
|
+
errorMessage: theme.fontSizes.small
|
|
2880
|
+
};
|
|
2781
2881
|
var sizes = {
|
|
2782
2882
|
cellWidth: theme.sizes.xxlarge,
|
|
2783
2883
|
cellHeight: theme.sizes.xxxlarge,
|
|
@@ -2793,7 +2893,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2793
2893
|
};
|
|
2794
2894
|
return {
|
|
2795
2895
|
borderWidths: borderWidths,
|
|
2896
|
+
lineHeights: lineHeights,
|
|
2796
2897
|
colors: colors,
|
|
2898
|
+
fonts: fonts,
|
|
2899
|
+
fontSizes: fontSizes,
|
|
2797
2900
|
sizes: sizes,
|
|
2798
2901
|
space: space,
|
|
2799
2902
|
radii: radii
|
|
@@ -3052,10 +3155,20 @@ var getSuccessTheme = function getSuccessTheme(theme) {
|
|
|
3052
3155
|
fullScreenBackground: theme.colors.decorativePrimarySurface,
|
|
3053
3156
|
inPageBackground: theme.colors.neutralGlobalSurface
|
|
3054
3157
|
};
|
|
3158
|
+
var fontSizes = {
|
|
3159
|
+
title: theme.fontSizes.xxxlarge,
|
|
3160
|
+
description: theme.fontSizes.xlarge
|
|
3161
|
+
};
|
|
3162
|
+
var fonts = {
|
|
3163
|
+
title: theme.fonts.playful.semiBold,
|
|
3164
|
+
description: theme.fonts.playful.regular
|
|
3165
|
+
};
|
|
3055
3166
|
return {
|
|
3167
|
+
fontSizes: fontSizes,
|
|
3056
3168
|
colors: colors,
|
|
3057
3169
|
sizes: sizes,
|
|
3058
|
-
space: space
|
|
3170
|
+
space: space,
|
|
3171
|
+
fonts: fonts
|
|
3059
3172
|
};
|
|
3060
3173
|
};
|
|
3061
3174
|
|
|
@@ -3176,6 +3289,15 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
3176
3289
|
archivedBackground: theme.colors.archivedSurface,
|
|
3177
3290
|
text: theme.colors.onDefaultGlobalSurface
|
|
3178
3291
|
};
|
|
3292
|
+
var fonts = {
|
|
3293
|
+
"default": theme.fonts.neutral.semiBold
|
|
3294
|
+
};
|
|
3295
|
+
var fontSizes = {
|
|
3296
|
+
"default": theme.fontSizes.small
|
|
3297
|
+
};
|
|
3298
|
+
var lineHeights = {
|
|
3299
|
+
"default": theme.lineHeights.small
|
|
3300
|
+
};
|
|
3179
3301
|
var space = {
|
|
3180
3302
|
horizontalPadding: theme.space.small,
|
|
3181
3303
|
verticalPadding: theme.space.xsmall
|
|
@@ -3186,8 +3308,11 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
3186
3308
|
return {
|
|
3187
3309
|
borderWidths: borderWidths,
|
|
3188
3310
|
colors: colors,
|
|
3311
|
+
fonts: fonts,
|
|
3312
|
+
fontSizes: fontSizes,
|
|
3189
3313
|
space: space,
|
|
3190
|
-
radii: radii
|
|
3314
|
+
radii: radii,
|
|
3315
|
+
lineHeights: lineHeights
|
|
3191
3316
|
};
|
|
3192
3317
|
};
|
|
3193
3318
|
|
|
@@ -3251,7 +3376,12 @@ var getTextInputTheme = function getTextInputTheme(theme) {
|
|
|
3251
3376
|
text: theme.fonts.neutral.regular
|
|
3252
3377
|
};
|
|
3253
3378
|
var fontSizes = {
|
|
3254
|
-
text: theme.fontSizes.large
|
|
3379
|
+
text: theme.fontSizes.large,
|
|
3380
|
+
labelInsideTextInput: theme.fontSizes.large,
|
|
3381
|
+
error: theme.fontSizes.small,
|
|
3382
|
+
maxLength: theme.fontSizes.small,
|
|
3383
|
+
asteriskLabel: theme.fontSizes.large,
|
|
3384
|
+
topLabel: theme.fontSizes.small
|
|
3255
3385
|
};
|
|
3256
3386
|
var borderWidths = {
|
|
3257
3387
|
container: {
|
|
@@ -3553,6 +3683,7 @@ var getTheme$1 = function getTheme() {
|
|
|
3553
3683
|
attachment: getAttachmentTheme(globalTheme),
|
|
3554
3684
|
avatar: getAvatarTheme(globalTheme),
|
|
3555
3685
|
badge: getBadgeTheme(globalTheme),
|
|
3686
|
+
bottomNavigation: getBottomNavigationTheme(globalTheme),
|
|
3556
3687
|
bottomSheet: getBottomSheetTheme(globalTheme),
|
|
3557
3688
|
button: getButtonTheme(globalTheme),
|
|
3558
3689
|
calendar: getCalendarTheme(globalTheme),
|
|
@@ -6596,7 +6727,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
|
|
|
6596
6727
|
});
|
|
6597
6728
|
});
|
|
6598
6729
|
|
|
6599
|
-
var _excluded$
|
|
6730
|
+
var _excluded$A = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
6600
6731
|
var Text = function Text(_ref) {
|
|
6601
6732
|
var children = _ref.children,
|
|
6602
6733
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -6609,7 +6740,7 @@ var Text = function Text(_ref) {
|
|
|
6609
6740
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6610
6741
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6611
6742
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6612
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6743
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
6613
6744
|
useDeprecation('Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.');
|
|
6614
6745
|
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6615
6746
|
themeFontSize: fontSize,
|
|
@@ -6639,7 +6770,7 @@ var StyledCaption = index$a(reactNative.Text)(function (_ref) {
|
|
|
6639
6770
|
};
|
|
6640
6771
|
});
|
|
6641
6772
|
|
|
6642
|
-
var _excluded$
|
|
6773
|
+
var _excluded$z = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
6643
6774
|
var Caption = function Caption(_ref) {
|
|
6644
6775
|
var children = _ref.children,
|
|
6645
6776
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -6648,7 +6779,7 @@ var Caption = function Caption(_ref) {
|
|
|
6648
6779
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6649
6780
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6650
6781
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6651
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6782
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
6652
6783
|
return /*#__PURE__*/React__default["default"].createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
6653
6784
|
themeFontWeight: fontWeight,
|
|
6654
6785
|
themeIntent: intent,
|
|
@@ -6667,14 +6798,14 @@ var StyledLabel$1 = index$a(reactNative.Text)(function (_ref) {
|
|
|
6667
6798
|
};
|
|
6668
6799
|
});
|
|
6669
6800
|
|
|
6670
|
-
var _excluded$
|
|
6801
|
+
var _excluded$y = ["children", "intent", "allowFontScaling"];
|
|
6671
6802
|
var Label = function Label(_ref) {
|
|
6672
6803
|
var children = _ref.children,
|
|
6673
6804
|
_ref$intent = _ref.intent,
|
|
6674
6805
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6675
6806
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6676
6807
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6677
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6808
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$y);
|
|
6678
6809
|
return /*#__PURE__*/React__default["default"].createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
6679
6810
|
themeIntent: intent,
|
|
6680
6811
|
allowFontScaling: allowFontScaling
|
|
@@ -6695,7 +6826,7 @@ var StyledTitle$1 = index$a(reactNative.Text)(function (_ref) {
|
|
|
6695
6826
|
};
|
|
6696
6827
|
});
|
|
6697
6828
|
|
|
6698
|
-
var _excluded$
|
|
6829
|
+
var _excluded$x = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
6699
6830
|
var Title = function Title(_ref) {
|
|
6700
6831
|
var children = _ref.children,
|
|
6701
6832
|
_ref$intent = _ref.intent,
|
|
@@ -6706,7 +6837,7 @@ var Title = function Title(_ref) {
|
|
|
6706
6837
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
6707
6838
|
_ref$typeface = _ref.typeface,
|
|
6708
6839
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6709
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6840
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$x);
|
|
6710
6841
|
return /*#__PURE__*/React__default["default"].createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
6711
6842
|
themeLevel: level,
|
|
6712
6843
|
themeTypeface: typeface,
|
|
@@ -6741,7 +6872,7 @@ var StyledBody = index$a(reactNative.Text)(function (_ref) {
|
|
|
6741
6872
|
};
|
|
6742
6873
|
});
|
|
6743
6874
|
|
|
6744
|
-
var _excluded$
|
|
6875
|
+
var _excluded$w = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
6745
6876
|
var Body = function Body(_ref) {
|
|
6746
6877
|
var children = _ref.children,
|
|
6747
6878
|
_ref$intent = _ref.intent,
|
|
@@ -6752,7 +6883,7 @@ var Body = function Body(_ref) {
|
|
|
6752
6883
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6753
6884
|
_ref$variant = _ref.variant,
|
|
6754
6885
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
6755
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6886
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
6756
6887
|
return /*#__PURE__*/React__default["default"].createElement(StyledBody, _extends$1({}, nativeProps, {
|
|
6757
6888
|
themeTypeface: typeface,
|
|
6758
6889
|
themeIntent: intent,
|
|
@@ -6770,7 +6901,7 @@ var Typography = {
|
|
|
6770
6901
|
};
|
|
6771
6902
|
|
|
6772
6903
|
// 🔴 DO NOT EDIT — This file is generated automatically.
|
|
6773
|
-
var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', 'bookmark', 'box-check', 'box', 'bpay', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'double-buildings', 'edit-template', 'envelope', 'exclude', 'expand-content', 'expense', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'home', 'image', 'import', 'incident-siren', 'instapay', 'list', 'loading-2', 'loading', 'location-on', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'near-me', 'node', 'open-folder', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'save', 'schedule-send', 'schedule', 'search-person', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'swipe-right', 'switch', 'tag', 'target', 'teams', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'ai-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'application-outlined', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'call-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-outlined', 'charging-station-outlined', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cup-outlined', 'dentistry-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-box-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-box-outlined', 'download-outlined', 'edit-template-outlined', 'email-outlined', 'enter-arrow', 'envelope-outlined', 'expense-approval-outlined', 'expense-outlined', 'explore-outlined', 'extension-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'fastfood-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-certified-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'folder-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'hand-holding-user-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'job-search-outlined', 'leave-approval-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'resume-outlined', 'return-arrow', 'rostering-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'smart-match-outlined', 'sparkle-outlined', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-outlined', 'unavailable', 'underline', 'union-outlined', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'volunteer-outlined', 'wallet-outlined'];
|
|
6904
|
+
var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', 'bookmark', 'box-check', 'box', 'bpay', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'double-buildings', 'edit-template', 'envelope', 'exclude', 'expand-content', 'expense', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'hero-points', 'home', 'image', 'import', 'incident-siren', 'instapay-daily', 'instapay-now', 'instapay', 'list', 'loading-2', 'loading', 'location-on', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'near-me', 'node', 'open-folder', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'swipe-right', 'switch', 'tag', 'target', 'teams', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'ai-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'application-outlined', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'call-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-outlined', 'cashback-outlined', 'charging-station-outlined', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cup-outlined', 'dentistry-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-box-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-box-outlined', 'download-outlined', 'edit-template-outlined', 'email-outlined', 'enter-arrow', 'envelope-outlined', 'expense-approval-outlined', 'expense-outlined', 'explore-outlined', 'extension-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'fastfood-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-certified-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'folder-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'hand-holding-user-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'job-search-outlined', 'leave-approval-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'resume-outlined', 'return-arrow', 'rostering-outlined', 'safety-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'smart-match-outlined', 'sparkle-outlined', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-outlined', 'unavailability-outlined', 'unavailable', 'underline', 'union-outlined', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'volunteer-outlined', 'wallet-outlined'];
|
|
6774
6905
|
|
|
6775
6906
|
var activate = 59000;
|
|
6776
6907
|
var adjustment = 59003;
|
|
@@ -6806,59 +6937,59 @@ var folder = 59091;
|
|
|
6806
6937
|
var globe = 59101;
|
|
6807
6938
|
var graph = 59103;
|
|
6808
6939
|
var heart = 59106;
|
|
6809
|
-
var home =
|
|
6810
|
-
var image =
|
|
6811
|
-
var instapay =
|
|
6812
|
-
var list =
|
|
6813
|
-
var loading =
|
|
6814
|
-
var location =
|
|
6815
|
-
var lock =
|
|
6816
|
-
var menu =
|
|
6817
|
-
var moneybag =
|
|
6818
|
-
var moon =
|
|
6819
|
-
var node =
|
|
6820
|
-
var paperclip =
|
|
6821
|
-
var pencil =
|
|
6822
|
-
var phone =
|
|
6823
|
-
var plane =
|
|
6824
|
-
var print =
|
|
6825
|
-
var reply =
|
|
6826
|
-
var reschedule =
|
|
6827
|
-
var rostering =
|
|
6828
|
-
var save =
|
|
6829
|
-
var schedule =
|
|
6830
|
-
var send =
|
|
6831
|
-
var speaker =
|
|
6832
|
-
var star =
|
|
6833
|
-
var stopwatch =
|
|
6834
|
-
var suitcase =
|
|
6835
|
-
var surfing =
|
|
6836
|
-
var survey =
|
|
6837
|
-
var swag =
|
|
6838
|
-
var tag =
|
|
6839
|
-
var target =
|
|
6840
|
-
var teams =
|
|
6841
|
-
var timesheet =
|
|
6842
|
-
var unlock =
|
|
6843
|
-
var user =
|
|
6844
|
-
var wallet =
|
|
6845
|
-
var warning =
|
|
6846
|
-
var add =
|
|
6847
|
-
var bold =
|
|
6848
|
-
var cancel =
|
|
6849
|
-
var checkmark =
|
|
6850
|
-
var italic =
|
|
6851
|
-
var number =
|
|
6852
|
-
var percentage =
|
|
6853
|
-
var redeem =
|
|
6854
|
-
var refresh =
|
|
6855
|
-
var remove =
|
|
6856
|
-
var restart =
|
|
6857
|
-
var strikethrough =
|
|
6858
|
-
var sync =
|
|
6859
|
-
var transfer =
|
|
6860
|
-
var unavailable =
|
|
6861
|
-
var underline =
|
|
6940
|
+
var home = 59108;
|
|
6941
|
+
var image = 59109;
|
|
6942
|
+
var instapay = 59114;
|
|
6943
|
+
var list = 59115;
|
|
6944
|
+
var loading = 59117;
|
|
6945
|
+
var location = 59119;
|
|
6946
|
+
var lock = 59120;
|
|
6947
|
+
var menu = 59124;
|
|
6948
|
+
var moneybag = 59126;
|
|
6949
|
+
var moon = 59127;
|
|
6950
|
+
var node = 59131;
|
|
6951
|
+
var paperclip = 59133;
|
|
6952
|
+
var pencil = 59135;
|
|
6953
|
+
var phone = 59136;
|
|
6954
|
+
var plane = 59139;
|
|
6955
|
+
var print = 59141;
|
|
6956
|
+
var reply = 59144;
|
|
6957
|
+
var reschedule = 59145;
|
|
6958
|
+
var rostering = 59146;
|
|
6959
|
+
var save = 59148;
|
|
6960
|
+
var schedule = 59150;
|
|
6961
|
+
var send = 59152;
|
|
6962
|
+
var speaker = 59154;
|
|
6963
|
+
var star = 59159;
|
|
6964
|
+
var stopwatch = 59161;
|
|
6965
|
+
var suitcase = 59162;
|
|
6966
|
+
var surfing = 59163;
|
|
6967
|
+
var survey = 59164;
|
|
6968
|
+
var swag = 59169;
|
|
6969
|
+
var tag = 59172;
|
|
6970
|
+
var target = 59173;
|
|
6971
|
+
var teams = 59174;
|
|
6972
|
+
var timesheet = 59175;
|
|
6973
|
+
var unlock = 59178;
|
|
6974
|
+
var user = 59179;
|
|
6975
|
+
var wallet = 59182;
|
|
6976
|
+
var warning = 59183;
|
|
6977
|
+
var add = 59189;
|
|
6978
|
+
var bold = 59214;
|
|
6979
|
+
var cancel = 59228;
|
|
6980
|
+
var checkmark = 59234;
|
|
6981
|
+
var italic = 59319;
|
|
6982
|
+
var number = 59346;
|
|
6983
|
+
var percentage = 59351;
|
|
6984
|
+
var redeem = 59361;
|
|
6985
|
+
var refresh = 59362;
|
|
6986
|
+
var remove = 59363;
|
|
6987
|
+
var restart = 59365;
|
|
6988
|
+
var strikethrough = 59391;
|
|
6989
|
+
var sync = 59397;
|
|
6990
|
+
var transfer = 59405;
|
|
6991
|
+
var unavailable = 59409;
|
|
6992
|
+
var underline = 59410;
|
|
6862
6993
|
var glyphMap = {
|
|
6863
6994
|
activate: activate,
|
|
6864
6995
|
"add-emoji": 59001,
|
|
@@ -6967,312 +7098,321 @@ var glyphMap = {
|
|
|
6967
7098
|
"happy-sun": 59104,
|
|
6968
7099
|
"health-bag": 59105,
|
|
6969
7100
|
heart: heart,
|
|
7101
|
+
"hero-points": 59107,
|
|
6970
7102
|
home: home,
|
|
6971
7103
|
image: image,
|
|
6972
|
-
"import":
|
|
6973
|
-
"incident-siren":
|
|
7104
|
+
"import": 59110,
|
|
7105
|
+
"incident-siren": 59111,
|
|
7106
|
+
"instapay-daily": 59112,
|
|
7107
|
+
"instapay-now": 59113,
|
|
6974
7108
|
instapay: instapay,
|
|
6975
7109
|
list: list,
|
|
6976
|
-
"loading-2":
|
|
7110
|
+
"loading-2": 59116,
|
|
6977
7111
|
loading: loading,
|
|
6978
|
-
"location-on":
|
|
7112
|
+
"location-on": 59118,
|
|
6979
7113
|
location: location,
|
|
6980
7114
|
lock: lock,
|
|
6981
|
-
"looks-one":
|
|
6982
|
-
"looks-two":
|
|
6983
|
-
"media-content":
|
|
7115
|
+
"looks-one": 59121,
|
|
7116
|
+
"looks-two": 59122,
|
|
7117
|
+
"media-content": 59123,
|
|
6984
7118
|
menu: menu,
|
|
6985
|
-
"money-notes":
|
|
7119
|
+
"money-notes": 59125,
|
|
6986
7120
|
moneybag: moneybag,
|
|
6987
7121
|
moon: moon,
|
|
6988
|
-
"multiple-stars":
|
|
6989
|
-
"multiple-users":
|
|
6990
|
-
"near-me":
|
|
7122
|
+
"multiple-stars": 59128,
|
|
7123
|
+
"multiple-users": 59129,
|
|
7124
|
+
"near-me": 59130,
|
|
6991
7125
|
node: node,
|
|
6992
|
-
"open-folder":
|
|
7126
|
+
"open-folder": 59132,
|
|
6993
7127
|
paperclip: paperclip,
|
|
6994
|
-
"payment-summary":
|
|
7128
|
+
"payment-summary": 59134,
|
|
6995
7129
|
pencil: pencil,
|
|
6996
7130
|
phone: phone,
|
|
6997
|
-
"piggy-bank":
|
|
6998
|
-
"plane-up":
|
|
7131
|
+
"piggy-bank": 59137,
|
|
7132
|
+
"plane-up": 59138,
|
|
6999
7133
|
plane: plane,
|
|
7000
|
-
"play-circle":
|
|
7134
|
+
"play-circle": 59140,
|
|
7001
7135
|
print: print,
|
|
7002
|
-
"raising-hands":
|
|
7003
|
-
"reply-arrow":
|
|
7136
|
+
"raising-hands": 59142,
|
|
7137
|
+
"reply-arrow": 59143,
|
|
7004
7138
|
reply: reply,
|
|
7005
7139
|
reschedule: reschedule,
|
|
7006
7140
|
rostering: rostering,
|
|
7141
|
+
"salary-sacrifice": 59147,
|
|
7007
7142
|
save: save,
|
|
7008
|
-
"schedule-send":
|
|
7143
|
+
"schedule-send": 59149,
|
|
7009
7144
|
schedule: schedule,
|
|
7010
|
-
"search-person":
|
|
7145
|
+
"search-person": 59151,
|
|
7011
7146
|
send: send,
|
|
7012
|
-
"speaker-active":
|
|
7147
|
+
"speaker-active": 59153,
|
|
7013
7148
|
speaker: speaker,
|
|
7014
|
-
"star-award":
|
|
7015
|
-
"star-badge":
|
|
7016
|
-
"star-circle":
|
|
7017
|
-
"star-medal":
|
|
7149
|
+
"star-award": 59155,
|
|
7150
|
+
"star-badge": 59156,
|
|
7151
|
+
"star-circle": 59157,
|
|
7152
|
+
"star-medal": 59158,
|
|
7018
7153
|
star: star,
|
|
7019
|
-
"steps-circle":
|
|
7154
|
+
"steps-circle": 59160,
|
|
7020
7155
|
stopwatch: stopwatch,
|
|
7021
7156
|
suitcase: suitcase,
|
|
7022
7157
|
surfing: surfing,
|
|
7023
7158
|
survey: survey,
|
|
7024
|
-
"swag-pillar-benefit":
|
|
7025
|
-
"swag-pillar-career":
|
|
7026
|
-
"swag-pillar-money":
|
|
7027
|
-
"swag-pillar-work":
|
|
7159
|
+
"swag-pillar-benefit": 59165,
|
|
7160
|
+
"swag-pillar-career": 59166,
|
|
7161
|
+
"swag-pillar-money": 59167,
|
|
7162
|
+
"swag-pillar-work": 59168,
|
|
7028
7163
|
swag: swag,
|
|
7029
|
-
"swipe-right":
|
|
7030
|
-
"switch":
|
|
7164
|
+
"swipe-right": 59170,
|
|
7165
|
+
"switch": 59171,
|
|
7031
7166
|
tag: tag,
|
|
7032
7167
|
target: target,
|
|
7033
7168
|
teams: teams,
|
|
7034
7169
|
timesheet: timesheet,
|
|
7035
|
-
"touch-id":
|
|
7036
|
-
"trash-bin":
|
|
7170
|
+
"touch-id": 59176,
|
|
7171
|
+
"trash-bin": 59177,
|
|
7037
7172
|
unlock: unlock,
|
|
7038
7173
|
user: user,
|
|
7039
|
-
"video-1":
|
|
7040
|
-
"video-2":
|
|
7174
|
+
"video-1": 59180,
|
|
7175
|
+
"video-2": 59181,
|
|
7041
7176
|
wallet: wallet,
|
|
7042
7177
|
warning: warning,
|
|
7043
|
-
"activate-outlined":
|
|
7044
|
-
"add-credit-card-outlined":
|
|
7045
|
-
"add-person-outlined":
|
|
7046
|
-
"add-section-outlined":
|
|
7047
|
-
"add-time-outlined":
|
|
7178
|
+
"activate-outlined": 59184,
|
|
7179
|
+
"add-credit-card-outlined": 59185,
|
|
7180
|
+
"add-person-outlined": 59186,
|
|
7181
|
+
"add-section-outlined": 59187,
|
|
7182
|
+
"add-time-outlined": 59188,
|
|
7048
7183
|
add: add,
|
|
7049
|
-
"adjustment-outlined":
|
|
7050
|
-
"ai-outlined":
|
|
7051
|
-
"alignment-2-outlined":
|
|
7052
|
-
"alignment-outlined":
|
|
7053
|
-
"all-caps":
|
|
7054
|
-
"application-outlined":
|
|
7055
|
-
"arrow-down":
|
|
7056
|
-
"arrow-downwards":
|
|
7057
|
-
"arrow-left":
|
|
7058
|
-
"arrow-leftwards":
|
|
7059
|
-
"arrow-right":
|
|
7060
|
-
"arrow-rightwards":
|
|
7061
|
-
"arrow-up":
|
|
7062
|
-
"arrow-upwards":
|
|
7063
|
-
"article-outlined":
|
|
7064
|
-
"at-sign":
|
|
7065
|
-
"auto-graph-outlined":
|
|
7066
|
-
"beer-outlined":
|
|
7067
|
-
"bell-active-outlined":
|
|
7068
|
-
"bell-outlined":
|
|
7069
|
-
"bell-slash-outlined":
|
|
7070
|
-
"
|
|
7071
|
-
"
|
|
7184
|
+
"adjustment-outlined": 59190,
|
|
7185
|
+
"ai-outlined": 59191,
|
|
7186
|
+
"alignment-2-outlined": 59192,
|
|
7187
|
+
"alignment-outlined": 59193,
|
|
7188
|
+
"all-caps": 59194,
|
|
7189
|
+
"application-outlined": 59195,
|
|
7190
|
+
"arrow-down": 59196,
|
|
7191
|
+
"arrow-downwards": 59197,
|
|
7192
|
+
"arrow-left": 59198,
|
|
7193
|
+
"arrow-leftwards": 59199,
|
|
7194
|
+
"arrow-right": 59200,
|
|
7195
|
+
"arrow-rightwards": 59201,
|
|
7196
|
+
"arrow-up": 59202,
|
|
7197
|
+
"arrow-upwards": 59203,
|
|
7198
|
+
"article-outlined": 59204,
|
|
7199
|
+
"at-sign": 59205,
|
|
7200
|
+
"auto-graph-outlined": 59206,
|
|
7201
|
+
"beer-outlined": 59207,
|
|
7202
|
+
"bell-active-outlined": 59208,
|
|
7203
|
+
"bell-outlined": 59209,
|
|
7204
|
+
"bell-slash-outlined": 59210,
|
|
7205
|
+
"bill-management-outlined": 59211,
|
|
7206
|
+
"billing-outlined": 59212,
|
|
7207
|
+
"body-outlined": 59213,
|
|
7072
7208
|
bold: bold,
|
|
7073
|
-
"bolt-outlined":
|
|
7074
|
-
"book-outlined":
|
|
7075
|
-
"bookmark-added-outlined":
|
|
7076
|
-
"bookmark-outlined":
|
|
7077
|
-
"box-check-outlined":
|
|
7078
|
-
"box-outlined":
|
|
7079
|
-
"bullet-points":
|
|
7080
|
-
"cake-outlined":
|
|
7081
|
-
"calendar-dates-outlined":
|
|
7082
|
-
"calendar-star-outlined":
|
|
7083
|
-
"call-outlined":
|
|
7084
|
-
"call-split-outlined":
|
|
7085
|
-
"camera-outlined":
|
|
7209
|
+
"bolt-outlined": 59215,
|
|
7210
|
+
"book-outlined": 59216,
|
|
7211
|
+
"bookmark-added-outlined": 59217,
|
|
7212
|
+
"bookmark-outlined": 59218,
|
|
7213
|
+
"box-check-outlined": 59219,
|
|
7214
|
+
"box-outlined": 59220,
|
|
7215
|
+
"bullet-points": 59221,
|
|
7216
|
+
"cake-outlined": 59222,
|
|
7217
|
+
"calendar-dates-outlined": 59223,
|
|
7218
|
+
"calendar-star-outlined": 59224,
|
|
7219
|
+
"call-outlined": 59225,
|
|
7220
|
+
"call-split-outlined": 59226,
|
|
7221
|
+
"camera-outlined": 59227,
|
|
7086
7222
|
cancel: cancel,
|
|
7087
|
-
"car-forward-outlined":
|
|
7088
|
-
"
|
|
7089
|
-
"
|
|
7090
|
-
"chat-
|
|
7223
|
+
"car-forward-outlined": 59229,
|
|
7224
|
+
"cashback-outlined": 59230,
|
|
7225
|
+
"charging-station-outlined": 59231,
|
|
7226
|
+
"chat-bubble-outlined": 59232,
|
|
7227
|
+
"chat-unread-outlined": 59233,
|
|
7091
7228
|
checkmark: checkmark,
|
|
7092
|
-
"circle-add-outlined":
|
|
7093
|
-
"circle-cancel-outlined":
|
|
7094
|
-
"circle-down-outlined":
|
|
7095
|
-
"circle-info-outlined":
|
|
7096
|
-
"circle-left-outlined":
|
|
7097
|
-
"circle-ok-outlined":
|
|
7098
|
-
"circle-question-outlined":
|
|
7099
|
-
"circle-remove-outlined":
|
|
7100
|
-
"circle-right-outlined":
|
|
7101
|
-
"circle-up-outlined":
|
|
7102
|
-
"circle-warning-outlined":
|
|
7103
|
-
"clock-2-outlined":
|
|
7104
|
-
"clock-outlined":
|
|
7105
|
-
"cog-outlined":
|
|
7106
|
-
"coin-outlined":
|
|
7107
|
-
"coin-super-outlined":
|
|
7108
|
-
"comment-outlined":
|
|
7109
|
-
"contacts-outlined":
|
|
7110
|
-
"contacts-user-outlined":
|
|
7111
|
-
"credit-card-outlined":
|
|
7112
|
-
"cup-outlined":
|
|
7113
|
-
"dentistry-outlined":
|
|
7114
|
-
"direction-arrows-outlined":
|
|
7115
|
-
"directory-outlined":
|
|
7116
|
-
"document-outlined":
|
|
7117
|
-
"dollar-box-outlined":
|
|
7118
|
-
"dollar-card-outlined":
|
|
7119
|
-
"dollar-coin-shine-outlined":
|
|
7120
|
-
"dollar-credit-card-outlined":
|
|
7121
|
-
"dollar-sign":
|
|
7122
|
-
"double-buildings-outlined":
|
|
7123
|
-
"double-left-arrows":
|
|
7124
|
-
"double-right-arrows":
|
|
7125
|
-
"download-box-outlined":
|
|
7126
|
-
"download-outlined":
|
|
7127
|
-
"edit-template-outlined":
|
|
7128
|
-
"email-outlined":
|
|
7129
|
-
"enter-arrow":
|
|
7130
|
-
"envelope-outlined":
|
|
7131
|
-
"expense-approval-outlined":
|
|
7132
|
-
"expense-outlined":
|
|
7133
|
-
"explore-outlined":
|
|
7134
|
-
"extension-outlined":
|
|
7135
|
-
"external-link":
|
|
7136
|
-
"eye-invisible-outlined":
|
|
7137
|
-
"eye-outlined":
|
|
7138
|
-
"face-id":
|
|
7139
|
-
"face-meh-outlined":
|
|
7140
|
-
"face-open-smiley-outlined":
|
|
7141
|
-
"face-sad-outlined":
|
|
7142
|
-
"face-smiley-outlined":
|
|
7143
|
-
"fastfood-outlined":
|
|
7144
|
-
"feed-outlined":
|
|
7145
|
-
"file-certified-outlined":
|
|
7146
|
-
"file-clone-outlined":
|
|
7147
|
-
"file-copy-outlined":
|
|
7148
|
-
"file-dispose-outlined":
|
|
7149
|
-
"file-dollar-certified-outlined":
|
|
7150
|
-
"file-dollar-outlined":
|
|
7151
|
-
"file-download-outlined":
|
|
7152
|
-
"file-export-outlined":
|
|
7153
|
-
"file-lock-outlined":
|
|
7154
|
-
"file-outlined":
|
|
7155
|
-
"file-search-outlined":
|
|
7156
|
-
"file-secured-outlined":
|
|
7157
|
-
"file-statutory-outlined":
|
|
7158
|
-
"file-verified-outlined":
|
|
7159
|
-
"filter-outlined":
|
|
7160
|
-
"folder-outlined":
|
|
7161
|
-
"folder-user-outlined":
|
|
7162
|
-
"form-outlined":
|
|
7163
|
-
"funnel-filter-outline":
|
|
7164
|
-
"goal-outlined":
|
|
7165
|
-
"graph-outlined":
|
|
7166
|
-
"hand-holding-user-outlined":
|
|
7167
|
-
"happy-sun-outlined":
|
|
7168
|
-
"health-bag-outlined":
|
|
7169
|
-
"heart-outlined":
|
|
7170
|
-
"home-active-outlined":
|
|
7171
|
-
"home-outlined":
|
|
7172
|
-
"id-card-outlined":
|
|
7173
|
-
"image-outlined":
|
|
7174
|
-
"import-outlined":
|
|
7175
|
-
"instapay-outlined":
|
|
7229
|
+
"circle-add-outlined": 59235,
|
|
7230
|
+
"circle-cancel-outlined": 59236,
|
|
7231
|
+
"circle-down-outlined": 59237,
|
|
7232
|
+
"circle-info-outlined": 59238,
|
|
7233
|
+
"circle-left-outlined": 59239,
|
|
7234
|
+
"circle-ok-outlined": 59240,
|
|
7235
|
+
"circle-question-outlined": 59241,
|
|
7236
|
+
"circle-remove-outlined": 59242,
|
|
7237
|
+
"circle-right-outlined": 59243,
|
|
7238
|
+
"circle-up-outlined": 59244,
|
|
7239
|
+
"circle-warning-outlined": 59245,
|
|
7240
|
+
"clock-2-outlined": 59246,
|
|
7241
|
+
"clock-outlined": 59247,
|
|
7242
|
+
"cog-outlined": 59248,
|
|
7243
|
+
"coin-outlined": 59249,
|
|
7244
|
+
"coin-super-outlined": 59250,
|
|
7245
|
+
"comment-outlined": 59251,
|
|
7246
|
+
"contacts-outlined": 59252,
|
|
7247
|
+
"contacts-user-outlined": 59253,
|
|
7248
|
+
"credit-card-outlined": 59254,
|
|
7249
|
+
"cup-outlined": 59255,
|
|
7250
|
+
"dentistry-outlined": 59256,
|
|
7251
|
+
"direction-arrows-outlined": 59257,
|
|
7252
|
+
"directory-outlined": 59258,
|
|
7253
|
+
"document-outlined": 59259,
|
|
7254
|
+
"dollar-box-outlined": 59260,
|
|
7255
|
+
"dollar-card-outlined": 59261,
|
|
7256
|
+
"dollar-coin-shine-outlined": 59262,
|
|
7257
|
+
"dollar-credit-card-outlined": 59263,
|
|
7258
|
+
"dollar-sign": 59264,
|
|
7259
|
+
"double-buildings-outlined": 59265,
|
|
7260
|
+
"double-left-arrows": 59266,
|
|
7261
|
+
"double-right-arrows": 59267,
|
|
7262
|
+
"download-box-outlined": 59268,
|
|
7263
|
+
"download-outlined": 59269,
|
|
7264
|
+
"edit-template-outlined": 59270,
|
|
7265
|
+
"email-outlined": 59271,
|
|
7266
|
+
"enter-arrow": 59272,
|
|
7267
|
+
"envelope-outlined": 59273,
|
|
7268
|
+
"expense-approval-outlined": 59274,
|
|
7269
|
+
"expense-outlined": 59275,
|
|
7270
|
+
"explore-outlined": 59276,
|
|
7271
|
+
"extension-outlined": 59277,
|
|
7272
|
+
"external-link": 59278,
|
|
7273
|
+
"eye-invisible-outlined": 59279,
|
|
7274
|
+
"eye-outlined": 59280,
|
|
7275
|
+
"face-id": 59281,
|
|
7276
|
+
"face-meh-outlined": 59282,
|
|
7277
|
+
"face-open-smiley-outlined": 59283,
|
|
7278
|
+
"face-sad-outlined": 59284,
|
|
7279
|
+
"face-smiley-outlined": 59285,
|
|
7280
|
+
"fastfood-outlined": 59286,
|
|
7281
|
+
"feed-outlined": 59287,
|
|
7282
|
+
"file-certified-outlined": 59288,
|
|
7283
|
+
"file-clone-outlined": 59289,
|
|
7284
|
+
"file-copy-outlined": 59290,
|
|
7285
|
+
"file-dispose-outlined": 59291,
|
|
7286
|
+
"file-dollar-certified-outlined": 59292,
|
|
7287
|
+
"file-dollar-outlined": 59293,
|
|
7288
|
+
"file-download-outlined": 59294,
|
|
7289
|
+
"file-export-outlined": 59295,
|
|
7290
|
+
"file-lock-outlined": 59296,
|
|
7291
|
+
"file-outlined": 59297,
|
|
7292
|
+
"file-search-outlined": 59298,
|
|
7293
|
+
"file-secured-outlined": 59299,
|
|
7294
|
+
"file-statutory-outlined": 59300,
|
|
7295
|
+
"file-verified-outlined": 59301,
|
|
7296
|
+
"filter-outlined": 59302,
|
|
7297
|
+
"folder-outlined": 59303,
|
|
7298
|
+
"folder-user-outlined": 59304,
|
|
7299
|
+
"form-outlined": 59305,
|
|
7300
|
+
"funnel-filter-outline": 59306,
|
|
7301
|
+
"goal-outlined": 59307,
|
|
7302
|
+
"graph-outlined": 59308,
|
|
7303
|
+
"hand-holding-user-outlined": 59309,
|
|
7304
|
+
"happy-sun-outlined": 59310,
|
|
7305
|
+
"health-bag-outlined": 59311,
|
|
7306
|
+
"heart-outlined": 59312,
|
|
7307
|
+
"home-active-outlined": 59313,
|
|
7308
|
+
"home-outlined": 59314,
|
|
7309
|
+
"id-card-outlined": 59315,
|
|
7310
|
+
"image-outlined": 59316,
|
|
7311
|
+
"import-outlined": 59317,
|
|
7312
|
+
"instapay-outlined": 59318,
|
|
7176
7313
|
italic: italic,
|
|
7177
|
-
"job-search-outlined":
|
|
7178
|
-
"leave-approval-outlined":
|
|
7179
|
-
"link-1":
|
|
7180
|
-
"link-2":
|
|
7181
|
-
"list-outlined":
|
|
7182
|
-
"live-help-outlined":
|
|
7183
|
-
"location-on-outlined":
|
|
7184
|
-
"location-outlined":
|
|
7185
|
-
"lock-outlined":
|
|
7186
|
-
"locked-file-outlined":
|
|
7187
|
-
"log-out":
|
|
7188
|
-
"mail-outlined":
|
|
7189
|
-
"media-content-outlined":
|
|
7190
|
-
"menu-close":
|
|
7191
|
-
"menu-expand":
|
|
7192
|
-
"menu-fold-outlined":
|
|
7193
|
-
"menu-unfold-outlined":
|
|
7194
|
-
"moneybag-outlined":
|
|
7195
|
-
"moon-outlined":
|
|
7196
|
-
"more-horizontal":
|
|
7197
|
-
"more-vertical":
|
|
7198
|
-
"multiple-folders-outlined":
|
|
7199
|
-
"multiple-users-outlined":
|
|
7200
|
-
"near-me-outlined":
|
|
7201
|
-
"node-outlined":
|
|
7202
|
-
"number-points":
|
|
7314
|
+
"job-search-outlined": 59320,
|
|
7315
|
+
"leave-approval-outlined": 59321,
|
|
7316
|
+
"link-1": 59322,
|
|
7317
|
+
"link-2": 59323,
|
|
7318
|
+
"list-outlined": 59324,
|
|
7319
|
+
"live-help-outlined": 59325,
|
|
7320
|
+
"location-on-outlined": 59326,
|
|
7321
|
+
"location-outlined": 59327,
|
|
7322
|
+
"lock-outlined": 59328,
|
|
7323
|
+
"locked-file-outlined": 59329,
|
|
7324
|
+
"log-out": 59330,
|
|
7325
|
+
"mail-outlined": 59331,
|
|
7326
|
+
"media-content-outlined": 59332,
|
|
7327
|
+
"menu-close": 59333,
|
|
7328
|
+
"menu-expand": 59334,
|
|
7329
|
+
"menu-fold-outlined": 59335,
|
|
7330
|
+
"menu-unfold-outlined": 59336,
|
|
7331
|
+
"moneybag-outlined": 59337,
|
|
7332
|
+
"moon-outlined": 59338,
|
|
7333
|
+
"more-horizontal": 59339,
|
|
7334
|
+
"more-vertical": 59340,
|
|
7335
|
+
"multiple-folders-outlined": 59341,
|
|
7336
|
+
"multiple-users-outlined": 59342,
|
|
7337
|
+
"near-me-outlined": 59343,
|
|
7338
|
+
"node-outlined": 59344,
|
|
7339
|
+
"number-points": 59345,
|
|
7203
7340
|
number: number,
|
|
7204
|
-
"overview-outlined":
|
|
7205
|
-
"payment-summary-outlined":
|
|
7206
|
-
"payslip-outlined":
|
|
7207
|
-
"pencil-outlined":
|
|
7341
|
+
"overview-outlined": 59347,
|
|
7342
|
+
"payment-summary-outlined": 59348,
|
|
7343
|
+
"payslip-outlined": 59349,
|
|
7344
|
+
"pencil-outlined": 59350,
|
|
7208
7345
|
percentage: percentage,
|
|
7209
|
-
"phone-outlined":
|
|
7210
|
-
"piggy-bank-outlined":
|
|
7211
|
-
"plane-outlined":
|
|
7212
|
-
"play-circle-outlined":
|
|
7213
|
-
"print-outlined":
|
|
7214
|
-
"propane-tank-outlined":
|
|
7215
|
-
"qr-code-outlined":
|
|
7216
|
-
"qualification-outlined":
|
|
7217
|
-
"re-assign":
|
|
7346
|
+
"phone-outlined": 59352,
|
|
7347
|
+
"piggy-bank-outlined": 59353,
|
|
7348
|
+
"plane-outlined": 59354,
|
|
7349
|
+
"play-circle-outlined": 59355,
|
|
7350
|
+
"print-outlined": 59356,
|
|
7351
|
+
"propane-tank-outlined": 59357,
|
|
7352
|
+
"qr-code-outlined": 59358,
|
|
7353
|
+
"qualification-outlined": 59359,
|
|
7354
|
+
"re-assign": 59360,
|
|
7218
7355
|
redeem: redeem,
|
|
7219
7356
|
refresh: refresh,
|
|
7220
7357
|
remove: remove,
|
|
7221
|
-
"reply-outlined":
|
|
7358
|
+
"reply-outlined": 59364,
|
|
7222
7359
|
restart: restart,
|
|
7223
|
-
"resume-outlined":
|
|
7224
|
-
"return-arrow":
|
|
7225
|
-
"rostering-outlined":
|
|
7226
|
-
"
|
|
7227
|
-
"
|
|
7228
|
-
"
|
|
7229
|
-
"search-
|
|
7230
|
-
"
|
|
7231
|
-
"
|
|
7232
|
-
"share-
|
|
7233
|
-
"share-
|
|
7234
|
-
"
|
|
7235
|
-
"
|
|
7236
|
-
"single-
|
|
7237
|
-
"single-
|
|
7238
|
-
"single-
|
|
7239
|
-
"
|
|
7240
|
-
"
|
|
7241
|
-
"
|
|
7242
|
-
"speaker-outlined":
|
|
7243
|
-
"
|
|
7244
|
-
"star-outlined":
|
|
7245
|
-
"
|
|
7360
|
+
"resume-outlined": 59366,
|
|
7361
|
+
"return-arrow": 59367,
|
|
7362
|
+
"rostering-outlined": 59368,
|
|
7363
|
+
"safety-outlined": 59369,
|
|
7364
|
+
"save-outlined": 59370,
|
|
7365
|
+
"schedule-outlined": 59371,
|
|
7366
|
+
"search-outlined": 59372,
|
|
7367
|
+
"search-secured-outlined": 59373,
|
|
7368
|
+
"send-outlined": 59374,
|
|
7369
|
+
"share-1": 59375,
|
|
7370
|
+
"share-2": 59376,
|
|
7371
|
+
"share-outlined": 59377,
|
|
7372
|
+
"show-chart-outlined": 59378,
|
|
7373
|
+
"single-down-arrow": 59379,
|
|
7374
|
+
"single-left-arrow": 59380,
|
|
7375
|
+
"single-right-arrow": 59381,
|
|
7376
|
+
"single-up-arrow": 59382,
|
|
7377
|
+
"smart-match-outlined": 59383,
|
|
7378
|
+
"sparkle-outlined": 59384,
|
|
7379
|
+
"speaker-active-outlined": 59385,
|
|
7380
|
+
"speaker-outlined": 59386,
|
|
7381
|
+
"star-circle-outlined": 59387,
|
|
7382
|
+
"star-outlined": 59388,
|
|
7383
|
+
"stash-outlined": 59389,
|
|
7384
|
+
"stopwatch-outlined": 59390,
|
|
7246
7385
|
strikethrough: strikethrough,
|
|
7247
|
-
"styler-outlined":
|
|
7248
|
-
"suitcase-clock-outlined":
|
|
7249
|
-
"suitcase-outlined":
|
|
7250
|
-
"survey-outlined":
|
|
7251
|
-
"switch-outlined":
|
|
7386
|
+
"styler-outlined": 59392,
|
|
7387
|
+
"suitcase-clock-outlined": 59393,
|
|
7388
|
+
"suitcase-outlined": 59394,
|
|
7389
|
+
"survey-outlined": 59395,
|
|
7390
|
+
"switch-outlined": 59396,
|
|
7252
7391
|
sync: sync,
|
|
7253
|
-
"tag-outlined":
|
|
7254
|
-
"target-outlined":
|
|
7255
|
-
"tennis-outlined":
|
|
7256
|
-
"ticket-outlined":
|
|
7257
|
-
"timesheet-outlined":
|
|
7258
|
-
"timesheets-outlined":
|
|
7259
|
-
"today-outlined":
|
|
7392
|
+
"tag-outlined": 59398,
|
|
7393
|
+
"target-outlined": 59399,
|
|
7394
|
+
"tennis-outlined": 59400,
|
|
7395
|
+
"ticket-outlined": 59401,
|
|
7396
|
+
"timesheet-outlined": 59402,
|
|
7397
|
+
"timesheets-outlined": 59403,
|
|
7398
|
+
"today-outlined": 59404,
|
|
7260
7399
|
transfer: transfer,
|
|
7261
|
-
"trash-bin-outlined":
|
|
7262
|
-
"umbrela-outlined":
|
|
7400
|
+
"trash-bin-outlined": 59406,
|
|
7401
|
+
"umbrela-outlined": 59407,
|
|
7402
|
+
"unavailability-outlined": 59408,
|
|
7263
7403
|
unavailable: unavailable,
|
|
7264
7404
|
underline: underline,
|
|
7265
|
-
"union-outlined":
|
|
7266
|
-
"unlock-outlined":
|
|
7267
|
-
"upload-outlined":
|
|
7268
|
-
"user-circle-outlined":
|
|
7269
|
-
"user-gear-outlined":
|
|
7270
|
-
"user-outlined":
|
|
7271
|
-
"user-rectangle-outlined":
|
|
7272
|
-
"video-1-outlined":
|
|
7273
|
-
"video-2-outlined":
|
|
7274
|
-
"volunteer-outlined":
|
|
7275
|
-
"wallet-outlined":
|
|
7405
|
+
"union-outlined": 59411,
|
|
7406
|
+
"unlock-outlined": 59412,
|
|
7407
|
+
"upload-outlined": 59413,
|
|
7408
|
+
"user-circle-outlined": 59414,
|
|
7409
|
+
"user-gear-outlined": 59415,
|
|
7410
|
+
"user-outlined": 59416,
|
|
7411
|
+
"user-rectangle-outlined": 59417,
|
|
7412
|
+
"video-1-outlined": 59418,
|
|
7413
|
+
"video-2-outlined": 59419,
|
|
7414
|
+
"volunteer-outlined": 59420,
|
|
7415
|
+
"wallet-outlined": 59421
|
|
7276
7416
|
};
|
|
7277
7417
|
|
|
7278
7418
|
var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -7297,10 +7437,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
7297
7437
|
};
|
|
7298
7438
|
});
|
|
7299
7439
|
|
|
7300
|
-
var _excluded$
|
|
7440
|
+
var _excluded$v = ["style"];
|
|
7301
7441
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
7302
7442
|
var style = _ref.style,
|
|
7303
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7443
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
7304
7444
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
7305
7445
|
React.useEffect(function () {
|
|
7306
7446
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -7405,7 +7545,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7405
7545
|
}, content));
|
|
7406
7546
|
};
|
|
7407
7547
|
|
|
7408
|
-
var _excluded$
|
|
7548
|
+
var _excluded$u = ["key"];
|
|
7409
7549
|
var Accordion = function Accordion(_ref) {
|
|
7410
7550
|
var items = _ref.items,
|
|
7411
7551
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -7426,7 +7566,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
7426
7566
|
testID: testID
|
|
7427
7567
|
}, items.map(function (_ref2, index) {
|
|
7428
7568
|
var key = _ref2.key,
|
|
7429
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7569
|
+
props = _objectWithoutProperties(_ref2, _excluded$u);
|
|
7430
7570
|
var open = _activeItemKey === key;
|
|
7431
7571
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
7432
7572
|
key: key
|
|
@@ -7704,7 +7844,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
7704
7844
|
}));
|
|
7705
7845
|
};
|
|
7706
7846
|
|
|
7707
|
-
reactNative.Platform.OS === 'ios';
|
|
7847
|
+
var isIOS = reactNative.Platform.OS === 'ios';
|
|
7708
7848
|
var isAndroid = reactNative.Platform.OS === 'android';
|
|
7709
7849
|
function pick(keys, obj) {
|
|
7710
7850
|
return keys.filter(function (key) {
|
|
@@ -7896,7 +8036,7 @@ var borderWidths = {
|
|
|
7896
8036
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
7897
8037
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
7898
8038
|
|
|
7899
|
-
var _excluded$
|
|
8039
|
+
var _excluded$t = ["theme"];
|
|
7900
8040
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
7901
8041
|
var propConfig = config[key];
|
|
7902
8042
|
var propValue = props[key];
|
|
@@ -7923,18 +8063,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
7923
8063
|
var configKeys = Object.keys(config);
|
|
7924
8064
|
var StyledBox = index$a(reactNative.View)(function (_ref5) {
|
|
7925
8065
|
var theme = _ref5.theme,
|
|
7926
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
8066
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$t);
|
|
7927
8067
|
var styleProps = pick(configKeys, otherProps);
|
|
7928
8068
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
7929
8069
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
7930
8070
|
});
|
|
7931
8071
|
|
|
7932
|
-
var _excluded$
|
|
8072
|
+
var _excluded$s = ["children", "style", "testID"];
|
|
7933
8073
|
var Box = function Box(_ref) {
|
|
7934
8074
|
var children = _ref.children,
|
|
7935
8075
|
style = _ref.style,
|
|
7936
8076
|
testID = _ref.testID,
|
|
7937
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8077
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
7938
8078
|
return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
|
|
7939
8079
|
style: style,
|
|
7940
8080
|
testID: testID
|
|
@@ -8148,7 +8288,7 @@ var StyledStatus = index$a(reactNative.Animated.View)(function (_ref3) {
|
|
|
8148
8288
|
};
|
|
8149
8289
|
});
|
|
8150
8290
|
|
|
8151
|
-
var _excluded$
|
|
8291
|
+
var _excluded$r = ["children", "visible", "intent", "style", "testID"];
|
|
8152
8292
|
var Status = function Status(_ref) {
|
|
8153
8293
|
var children = _ref.children,
|
|
8154
8294
|
_ref$visible = _ref.visible,
|
|
@@ -8157,7 +8297,7 @@ var Status = function Status(_ref) {
|
|
|
8157
8297
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
8158
8298
|
style = _ref.style,
|
|
8159
8299
|
testID = _ref.testID,
|
|
8160
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8300
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
8161
8301
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
8162
8302
|
opacity = _React$useRef.current;
|
|
8163
8303
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -8190,7 +8330,7 @@ var Status = function Status(_ref) {
|
|
|
8190
8330
|
}));
|
|
8191
8331
|
};
|
|
8192
8332
|
|
|
8193
|
-
var _excluded$
|
|
8333
|
+
var _excluded$q = ["content", "visible", "max", "intent", "style", "testID"];
|
|
8194
8334
|
var DEFAULT_MAX_NUMBER = 99;
|
|
8195
8335
|
var getPaddingState = function getPaddingState(content) {
|
|
8196
8336
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -8205,7 +8345,7 @@ var Badge = function Badge(_ref) {
|
|
|
8205
8345
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
8206
8346
|
style = _ref.style,
|
|
8207
8347
|
testID = _ref.testID,
|
|
8208
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8348
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
8209
8349
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
8210
8350
|
opacity = _React$useRef.current;
|
|
8211
8351
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -8241,6 +8381,136 @@ var Badge$1 = Object.assign(Badge, {
|
|
|
8241
8381
|
Status: Status
|
|
8242
8382
|
});
|
|
8243
8383
|
|
|
8384
|
+
var isHeroIcon = function isHeroIcon(x) {
|
|
8385
|
+
return IconList.includes(x);
|
|
8386
|
+
};
|
|
8387
|
+
|
|
8388
|
+
var BottomNavigationTab = index$a(reactNative.View)(function (_ref) {
|
|
8389
|
+
var themeVisibility = _ref.themeVisibility;
|
|
8390
|
+
return {
|
|
8391
|
+
flex: 1,
|
|
8392
|
+
display: themeVisibility === false ? 'none' : 'flex'
|
|
8393
|
+
};
|
|
8394
|
+
});
|
|
8395
|
+
var BottomNavigationContainer = index$a(reactNative.View)({
|
|
8396
|
+
flex: 1,
|
|
8397
|
+
overflow: 'hidden'
|
|
8398
|
+
});
|
|
8399
|
+
var ContentWrapper$2 = index$a(reactNative.View)({
|
|
8400
|
+
flex: 1
|
|
8401
|
+
});
|
|
8402
|
+
var BottomBarWrapper = index$a(reactNative.View)(function (_ref2) {
|
|
8403
|
+
var themeInsets = _ref2.themeInsets,
|
|
8404
|
+
theme = _ref2.theme;
|
|
8405
|
+
return {
|
|
8406
|
+
height: theme.__hd__.bottomNavigation.sizes.height + themeInsets.bottom,
|
|
8407
|
+
paddingBottom: themeInsets.bottom,
|
|
8408
|
+
paddingLeft: Math.max(themeInsets.left, themeInsets.right),
|
|
8409
|
+
paddingRight: Math.max(themeInsets.left, themeInsets.right),
|
|
8410
|
+
backgroundColor: theme.__hd__.bottomNavigation.colors.background,
|
|
8411
|
+
shadowColor: theme.__hd__.bottomNavigation.colors.shadow,
|
|
8412
|
+
shadowOffset: theme.__hd__.bottomNavigation.shadows.offset,
|
|
8413
|
+
shadowOpacity: theme.__hd__.bottomNavigation.shadows.opacity,
|
|
8414
|
+
shadowRadius: theme.__hd__.bottomNavigation.shadows.radius,
|
|
8415
|
+
elevation: theme.__hd__.bottomNavigation.shadows.elevation
|
|
8416
|
+
};
|
|
8417
|
+
});
|
|
8418
|
+
var BottomBar = index$a(reactNative.View)({
|
|
8419
|
+
flex: 1,
|
|
8420
|
+
flexDirection: 'row',
|
|
8421
|
+
overflow: 'hidden',
|
|
8422
|
+
alignItems: 'center'
|
|
8423
|
+
});
|
|
8424
|
+
var BottomBarItem = index$a(reactNative.View)({
|
|
8425
|
+
flex: 1,
|
|
8426
|
+
alignItems: 'center'
|
|
8427
|
+
});
|
|
8428
|
+
var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
|
|
8429
|
+
var theme = _ref3.theme;
|
|
8430
|
+
return {
|
|
8431
|
+
marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
|
|
8432
|
+
};
|
|
8433
|
+
});
|
|
8434
|
+
|
|
8435
|
+
var _excluded$p = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
8436
|
+
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
8437
|
+
var inactiveIcon = "".concat(icon, "-outlined");
|
|
8438
|
+
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
8439
|
+
};
|
|
8440
|
+
var BottomNavigation = function BottomNavigation(_ref) {
|
|
8441
|
+
var onTabPress = _ref.onTabPress,
|
|
8442
|
+
_ref$renderActiveTabO = _ref.renderActiveTabOnly,
|
|
8443
|
+
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
8444
|
+
selectedTabKey = _ref.selectedTabKey,
|
|
8445
|
+
tabs = _ref.tabs,
|
|
8446
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
8447
|
+
useDeprecation('BottomNavigation is deprecated and will be removed in the next major release. Please remove it.');
|
|
8448
|
+
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
8449
|
+
/**
|
|
8450
|
+
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
8451
|
+
*/
|
|
8452
|
+
var _React$useState = React__default["default"].useState([selectedTabKey]),
|
|
8453
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
8454
|
+
loaded = _React$useState2[0],
|
|
8455
|
+
setLoaded = _React$useState2[1];
|
|
8456
|
+
if (!loaded.includes(selectedTabKey)) {
|
|
8457
|
+
// Set the current tab to be loaded if it was not loaded before
|
|
8458
|
+
setLoaded(function (loadedState) {
|
|
8459
|
+
return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
|
|
8460
|
+
});
|
|
8461
|
+
}
|
|
8462
|
+
return /*#__PURE__*/React__default["default"].createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React__default["default"].createElement(ContentWrapper$2, null, tabs.map(function (tab) {
|
|
8463
|
+
var key = tab.key,
|
|
8464
|
+
component = tab.component,
|
|
8465
|
+
testID = tab.testID;
|
|
8466
|
+
var active = selectedTabKey === key;
|
|
8467
|
+
if (renderActiveTabOnly && !active) {
|
|
8468
|
+
return null;
|
|
8469
|
+
}
|
|
8470
|
+
if (!loaded.includes(key)) {
|
|
8471
|
+
// Don't render a screen if we've never navigated to it
|
|
8472
|
+
return null;
|
|
8473
|
+
}
|
|
8474
|
+
return /*#__PURE__*/React__default["default"].createElement(BottomNavigationTab, {
|
|
8475
|
+
key: key,
|
|
8476
|
+
testID: testID ? "route-screen-".concat(testID) : undefined,
|
|
8477
|
+
pointerEvents: active ? 'auto' : 'none',
|
|
8478
|
+
accessibilityElementsHidden: !active,
|
|
8479
|
+
importantForAccessibility: active ? 'auto' : 'no-hide-descendants',
|
|
8480
|
+
collapsable: false,
|
|
8481
|
+
removeClippedSubviews:
|
|
8482
|
+
// On iOS, set removeClippedSubviews to true only when not focused
|
|
8483
|
+
// This is an workaround for a bug where the clipped view never re-appears.
|
|
8484
|
+
isIOS ? selectedTabKey !== key : true,
|
|
8485
|
+
themeVisibility: active
|
|
8486
|
+
}, component);
|
|
8487
|
+
})), /*#__PURE__*/React__default["default"].createElement(BottomBarWrapper, {
|
|
8488
|
+
themeInsets: insets
|
|
8489
|
+
}, /*#__PURE__*/React__default["default"].createElement(BottomBar, null, tabs.map(function (tab) {
|
|
8490
|
+
var key = tab.key,
|
|
8491
|
+
icon = tab.icon,
|
|
8492
|
+
title = tab.title,
|
|
8493
|
+
testID = tab.testID;
|
|
8494
|
+
var active = selectedTabKey === key;
|
|
8495
|
+
var inactiveIcon = getInactiveIcon(icon);
|
|
8496
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
8497
|
+
key: key,
|
|
8498
|
+
onPress: function onPress() {
|
|
8499
|
+
return onTabPress(key);
|
|
8500
|
+
},
|
|
8501
|
+
testID: testID
|
|
8502
|
+
}, /*#__PURE__*/React__default["default"].createElement(BottomBarItem, null, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
8503
|
+
icon: active ? icon : inactiveIcon,
|
|
8504
|
+
intent: active ? 'primary' : 'text',
|
|
8505
|
+
testID: "hero-icon-".concat(icon)
|
|
8506
|
+
}), !!title && /*#__PURE__*/React__default["default"].createElement(StyledBottomBarText, {
|
|
8507
|
+
fontWeight: "semi-bold",
|
|
8508
|
+
intent: active ? 'primary' : 'body',
|
|
8509
|
+
numberOfLines: 1
|
|
8510
|
+
}, title)));
|
|
8511
|
+
}))));
|
|
8512
|
+
};
|
|
8513
|
+
|
|
8244
8514
|
var BottomSheetContext = /*#__PURE__*/React.createContext({});
|
|
8245
8515
|
|
|
8246
8516
|
var StyledDivider = index$a(reactNative.View)(function (_ref) {
|
|
@@ -8894,332 +9164,6 @@ var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
|
8894
9164
|
}));
|
|
8895
9165
|
};
|
|
8896
9166
|
|
|
8897
|
-
var customAlphabet = function customAlphabet(alphabet) {
|
|
8898
|
-
var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
|
|
8899
|
-
return function () {
|
|
8900
|
-
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
|
|
8901
|
-
var id = '';
|
|
8902
|
-
var i = size;
|
|
8903
|
-
while (i--) {
|
|
8904
|
-
id += alphabet[Math.random() * alphabet.length | 0];
|
|
8905
|
-
}
|
|
8906
|
-
return id;
|
|
8907
|
-
};
|
|
8908
|
-
};
|
|
8909
|
-
|
|
8910
|
-
var ACTIONS;
|
|
8911
|
-
(function (ACTIONS) {
|
|
8912
|
-
ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
|
|
8913
|
-
ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
|
|
8914
|
-
ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
|
|
8915
|
-
ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
|
|
8916
|
-
})(ACTIONS || (ACTIONS = {}));
|
|
8917
|
-
var INITIAL_STATE = {};
|
|
8918
|
-
|
|
8919
|
-
var PortalStateContext = /*#__PURE__*/React.createContext(null);
|
|
8920
|
-
var PortalDispatchContext = /*#__PURE__*/React.createContext(null);
|
|
8921
|
-
|
|
8922
|
-
var usePortal = function usePortal() {
|
|
8923
|
-
var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
|
|
8924
|
-
var dispatch = React.useContext(PortalDispatchContext);
|
|
8925
|
-
if (dispatch === null) {
|
|
8926
|
-
throw new Error("You must add 'PortalProvider' to the root component.");
|
|
8927
|
-
}
|
|
8928
|
-
var registerHost = React.useCallback(function () {
|
|
8929
|
-
dispatch({
|
|
8930
|
-
type: ACTIONS.REGISTER_HOST,
|
|
8931
|
-
hostName: hostName
|
|
8932
|
-
});
|
|
8933
|
-
}, []);
|
|
8934
|
-
var deregisterHost = React.useCallback(function () {
|
|
8935
|
-
dispatch({
|
|
8936
|
-
type: ACTIONS.DEREGISTER_HOST,
|
|
8937
|
-
hostName: hostName
|
|
8938
|
-
});
|
|
8939
|
-
}, []);
|
|
8940
|
-
var addUpdatePortal = React.useCallback(function (name, node) {
|
|
8941
|
-
dispatch({
|
|
8942
|
-
type: ACTIONS.ADD_UPDATE_PORTAL,
|
|
8943
|
-
hostName: hostName,
|
|
8944
|
-
portalName: name,
|
|
8945
|
-
node: node
|
|
8946
|
-
});
|
|
8947
|
-
}, []);
|
|
8948
|
-
var removePortal = React.useCallback(function (name) {
|
|
8949
|
-
dispatch({
|
|
8950
|
-
type: ACTIONS.REMOVE_PORTAL,
|
|
8951
|
-
hostName: hostName,
|
|
8952
|
-
portalName: name
|
|
8953
|
-
});
|
|
8954
|
-
}, []);
|
|
8955
|
-
return {
|
|
8956
|
-
registerHost: registerHost,
|
|
8957
|
-
deregisterHost: deregisterHost,
|
|
8958
|
-
addPortal: addUpdatePortal,
|
|
8959
|
-
updatePortal: addUpdatePortal,
|
|
8960
|
-
removePortal: removePortal
|
|
8961
|
-
};
|
|
8962
|
-
};
|
|
8963
|
-
|
|
8964
|
-
var usePortalState = function usePortalState(hostName) {
|
|
8965
|
-
var state = React.useContext(PortalStateContext);
|
|
8966
|
-
if (state === null) {
|
|
8967
|
-
throw new Error("You must add 'PortalProvider' to the root component.");
|
|
8968
|
-
}
|
|
8969
|
-
return state[hostName] || [];
|
|
8970
|
-
};
|
|
8971
|
-
|
|
8972
|
-
var PortalHostComponent = function PortalHostComponent(_ref) {
|
|
8973
|
-
var name = _ref.name;
|
|
8974
|
-
var state = usePortalState(name);
|
|
8975
|
-
var _usePortal = usePortal(name),
|
|
8976
|
-
registerHost = _usePortal.registerHost,
|
|
8977
|
-
deregisterHost = _usePortal.deregisterHost;
|
|
8978
|
-
React.useEffect(function () {
|
|
8979
|
-
registerHost();
|
|
8980
|
-
return function () {
|
|
8981
|
-
deregisterHost();
|
|
8982
|
-
};
|
|
8983
|
-
}, []);
|
|
8984
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, state.map(function (item) {
|
|
8985
|
-
return item.node;
|
|
8986
|
-
}));
|
|
8987
|
-
};
|
|
8988
|
-
var PortalHost = /*#__PURE__*/React.memo(PortalHostComponent);
|
|
8989
|
-
PortalHost.displayName = 'PortalHost';
|
|
8990
|
-
|
|
8991
|
-
var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
|
|
8992
|
-
if (!(hostName in state)) {
|
|
8993
|
-
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
|
|
8994
|
-
}
|
|
8995
|
-
return _objectSpread2({}, state);
|
|
8996
|
-
};
|
|
8997
|
-
var deregisterHost = function deregisterHost(state, hostName) {
|
|
8998
|
-
return _objectSpread2({}, omit([hostName], state));
|
|
8999
|
-
};
|
|
9000
|
-
var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
|
|
9001
|
-
var newState = registerHostIfNotExist(state, hostName);
|
|
9002
|
-
var index = newState[hostName].findIndex(function (item) {
|
|
9003
|
-
return item.name === portalName;
|
|
9004
|
-
});
|
|
9005
|
-
if (index !== -1) {
|
|
9006
|
-
return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
|
|
9007
|
-
if (index === i) {
|
|
9008
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
9009
|
-
node: node
|
|
9010
|
-
});
|
|
9011
|
-
}
|
|
9012
|
-
return item;
|
|
9013
|
-
})));
|
|
9014
|
-
}
|
|
9015
|
-
return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
|
|
9016
|
-
name: portalName,
|
|
9017
|
-
node: node
|
|
9018
|
-
}])));
|
|
9019
|
-
};
|
|
9020
|
-
var removePortal = function removePortal(state, hostName, portalName) {
|
|
9021
|
-
if (!(hostName in state)) {
|
|
9022
|
-
return _objectSpread2({}, state);
|
|
9023
|
-
}
|
|
9024
|
-
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
|
|
9025
|
-
return item.name !== portalName;
|
|
9026
|
-
})));
|
|
9027
|
-
};
|
|
9028
|
-
var reducer = function reducer(state, action) {
|
|
9029
|
-
var type = action.type;
|
|
9030
|
-
switch (type) {
|
|
9031
|
-
case ACTIONS.REGISTER_HOST:
|
|
9032
|
-
return registerHostIfNotExist(state, action.hostName);
|
|
9033
|
-
case ACTIONS.DEREGISTER_HOST:
|
|
9034
|
-
return deregisterHost(state, action.hostName);
|
|
9035
|
-
case ACTIONS.ADD_UPDATE_PORTAL:
|
|
9036
|
-
return addUpdatePortal(state, action.hostName, action.portalName, action.node);
|
|
9037
|
-
case ACTIONS.REMOVE_PORTAL:
|
|
9038
|
-
return removePortal(state, action.hostName, action.portalName);
|
|
9039
|
-
default:
|
|
9040
|
-
return _objectSpread2({}, state);
|
|
9041
|
-
}
|
|
9042
|
-
};
|
|
9043
|
-
|
|
9044
|
-
var PortalProviderComponent = function PortalProviderComponent(_ref) {
|
|
9045
|
-
var _ref$rootHostName = _ref.rootHostName,
|
|
9046
|
-
rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
|
|
9047
|
-
children = _ref.children;
|
|
9048
|
-
var _useReducer = React.useReducer(reducer, INITIAL_STATE),
|
|
9049
|
-
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
9050
|
-
state = _useReducer2[0],
|
|
9051
|
-
dispatch = _useReducer2[1];
|
|
9052
|
-
return /*#__PURE__*/React__default["default"].createElement(PortalDispatchContext.Provider, {
|
|
9053
|
-
value: dispatch
|
|
9054
|
-
}, /*#__PURE__*/React__default["default"].createElement(PortalStateContext.Provider, {
|
|
9055
|
-
value: state
|
|
9056
|
-
}, children, /*#__PURE__*/React__default["default"].createElement(PortalHost, {
|
|
9057
|
-
name: rootHostName
|
|
9058
|
-
})));
|
|
9059
|
-
};
|
|
9060
|
-
var PortalProvider = /*#__PURE__*/React.memo(PortalProviderComponent);
|
|
9061
|
-
PortalProvider.displayName = 'PortalProvider';
|
|
9062
|
-
|
|
9063
|
-
var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
|
|
9064
|
-
var PortalComponent = function PortalComponent(_ref) {
|
|
9065
|
-
var name = _ref.name,
|
|
9066
|
-
hostName = _ref.hostName,
|
|
9067
|
-
children = _ref.children,
|
|
9068
|
-
theme = _ref.theme;
|
|
9069
|
-
var defaultTheme = useTheme();
|
|
9070
|
-
var _usePortal = usePortal(hostName),
|
|
9071
|
-
addUpdatePortal = _usePortal.addPortal,
|
|
9072
|
-
removePortal = _usePortal.removePortal;
|
|
9073
|
-
var nameOrRandom = React.useMemo(function () {
|
|
9074
|
-
return name || nanoid();
|
|
9075
|
-
}, [name]);
|
|
9076
|
-
var ChildrenComponent = React.useMemo(function () {
|
|
9077
|
-
return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
|
|
9078
|
-
theme: theme || defaultTheme
|
|
9079
|
-
}, children);
|
|
9080
|
-
}, [theme, children, defaultTheme]);
|
|
9081
|
-
React.useLayoutEffect(function () {
|
|
9082
|
-
addUpdatePortal(nameOrRandom, ChildrenComponent);
|
|
9083
|
-
return function () {
|
|
9084
|
-
removePortal(nameOrRandom);
|
|
9085
|
-
};
|
|
9086
|
-
}, [addUpdatePortal]);
|
|
9087
|
-
React.useLayoutEffect(function () {
|
|
9088
|
-
addUpdatePortal(nameOrRandom, ChildrenComponent);
|
|
9089
|
-
}, [ChildrenComponent]);
|
|
9090
|
-
return null;
|
|
9091
|
-
};
|
|
9092
|
-
var Portal = /*#__PURE__*/React.memo(PortalComponent);
|
|
9093
|
-
Portal.displayName = 'Portal';
|
|
9094
|
-
var Portal$1 = Object.assign(Portal, {
|
|
9095
|
-
Provider: PortalProvider,
|
|
9096
|
-
Host: PortalHost
|
|
9097
|
-
});
|
|
9098
|
-
|
|
9099
|
-
var _excluded$l = ["visible"];
|
|
9100
|
-
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
9101
|
-
var DEFAULT_ANIMATION_CONFIG = {
|
|
9102
|
-
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
9103
|
-
useNativeDriver: reactNative.Platform.OS !== 'web',
|
|
9104
|
-
duration: 400
|
|
9105
|
-
};
|
|
9106
|
-
var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9107
|
-
var children = _ref.children,
|
|
9108
|
-
onShow = _ref.onShow,
|
|
9109
|
-
onRequestClose = _ref.onRequestClose,
|
|
9110
|
-
testID = _ref.testID,
|
|
9111
|
-
_ref$animationType = _ref.animationType,
|
|
9112
|
-
animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
|
|
9113
|
-
_ref$transparent = _ref.transparent,
|
|
9114
|
-
transparent = _ref$transparent === void 0 ? false : _ref$transparent,
|
|
9115
|
-
onDismiss = _ref.onDismiss;
|
|
9116
|
-
var theme = useTheme();
|
|
9117
|
-
var animatedBackdropValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
9118
|
-
var animatedModalValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
9119
|
-
// Show or hide the backdrop and modal content
|
|
9120
|
-
var animateBackdropAndContent = React.useCallback(function (_ref2) {
|
|
9121
|
-
var toValue = _ref2.toValue,
|
|
9122
|
-
callback = _ref2.callback;
|
|
9123
|
-
if (animationType !== 'none') {
|
|
9124
|
-
// Backdrop animation
|
|
9125
|
-
if (!transparent) {
|
|
9126
|
-
reactNative.Animated.timing(animatedBackdropValue, _objectSpread2({
|
|
9127
|
-
toValue: toValue
|
|
9128
|
-
}, DEFAULT_ANIMATION_CONFIG)).start();
|
|
9129
|
-
}
|
|
9130
|
-
// Modal content animation
|
|
9131
|
-
reactNative.Animated.timing(animatedModalValue, _objectSpread2({
|
|
9132
|
-
toValue: toValue
|
|
9133
|
-
}, DEFAULT_ANIMATION_CONFIG)).start(callback);
|
|
9134
|
-
} else {
|
|
9135
|
-
callback === null || callback === void 0 || callback();
|
|
9136
|
-
}
|
|
9137
|
-
}, [animationType, onShow, transparent]);
|
|
9138
|
-
var backdropOpacityAnimation = animatedBackdropValue.interpolate({
|
|
9139
|
-
inputRange: [0, 1],
|
|
9140
|
-
outputRange: [0, DEFAULT_BACKDROP_OPACITY]
|
|
9141
|
-
});
|
|
9142
|
-
var modalAnimation = animatedModalValue.interpolate({
|
|
9143
|
-
inputRange: [0, 1],
|
|
9144
|
-
outputRange: animationType === 'slide' ? [reactNative.Dimensions.get('window').height, 0] : [0, 1]
|
|
9145
|
-
});
|
|
9146
|
-
React.useImperativeHandle(ref, function () {
|
|
9147
|
-
return {
|
|
9148
|
-
show: function show() {
|
|
9149
|
-
animateBackdropAndContent({
|
|
9150
|
-
toValue: 1,
|
|
9151
|
-
callback: onShow
|
|
9152
|
-
});
|
|
9153
|
-
},
|
|
9154
|
-
hide: function hide(wrapperCallback) {
|
|
9155
|
-
animateBackdropAndContent({
|
|
9156
|
-
toValue: 0,
|
|
9157
|
-
callback: function callback() {
|
|
9158
|
-
if (reactNative.Platform.OS === 'ios') {
|
|
9159
|
-
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
9160
|
-
}
|
|
9161
|
-
wrapperCallback();
|
|
9162
|
-
}
|
|
9163
|
-
});
|
|
9164
|
-
}
|
|
9165
|
-
};
|
|
9166
|
-
}, [onDismiss, onShow, animateBackdropAndContent]);
|
|
9167
|
-
// Back button handler
|
|
9168
|
-
React.useEffect(function () {
|
|
9169
|
-
var backHandler = reactNative.BackHandler.addEventListener('hardwareBackPress', function () {
|
|
9170
|
-
onRequestClose === null || onRequestClose === void 0 || onRequestClose();
|
|
9171
|
-
return true;
|
|
9172
|
-
});
|
|
9173
|
-
return function () {
|
|
9174
|
-
return backHandler.remove();
|
|
9175
|
-
};
|
|
9176
|
-
}, [onRequestClose]);
|
|
9177
|
-
return /*#__PURE__*/React__default["default"].createElement(Portal$1, null, /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
9178
|
-
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
9179
|
-
backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
|
|
9180
|
-
opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
|
|
9181
|
-
})
|
|
9182
|
-
}), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
9183
|
-
testID: testID,
|
|
9184
|
-
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
9185
|
-
opacity: animationType === 'fade' ? modalAnimation : 1,
|
|
9186
|
-
transform: [{
|
|
9187
|
-
translateY: animationType === 'slide' ? modalAnimation : 0
|
|
9188
|
-
}]
|
|
9189
|
-
})
|
|
9190
|
-
}, children));
|
|
9191
|
-
});
|
|
9192
|
-
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
9193
|
-
var _ref3$visible = _ref3.visible,
|
|
9194
|
-
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
9195
|
-
props = _objectWithoutProperties(_ref3, _excluded$l);
|
|
9196
|
-
var modalRef = React.useRef(null);
|
|
9197
|
-
var _useState = React.useState(visible),
|
|
9198
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
9199
|
-
internalVisible = _useState2[0],
|
|
9200
|
-
setInternalVisible = _useState2[1];
|
|
9201
|
-
React.useEffect(function () {
|
|
9202
|
-
if (visible) {
|
|
9203
|
-
setInternalVisible(true);
|
|
9204
|
-
} else {
|
|
9205
|
-
var _modalRef$current;
|
|
9206
|
-
// Wait for animation to finish before hiding the modal
|
|
9207
|
-
(_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 || _modalRef$current.hide(function () {
|
|
9208
|
-
return setInternalVisible(false);
|
|
9209
|
-
});
|
|
9210
|
-
}
|
|
9211
|
-
}, [visible]);
|
|
9212
|
-
React.useEffect(function () {
|
|
9213
|
-
if (internalVisible) {
|
|
9214
|
-
var _modalRef$current2;
|
|
9215
|
-
(_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
|
|
9216
|
-
}
|
|
9217
|
-
}, [internalVisible]);
|
|
9218
|
-
return internalVisible ? /*#__PURE__*/React__default["default"].createElement(Modal, _extends$1({
|
|
9219
|
-
ref: modalRef
|
|
9220
|
-
}, props)) : null;
|
|
9221
|
-
};
|
|
9222
|
-
|
|
9223
9167
|
var BottomSheet = function BottomSheet(_ref) {
|
|
9224
9168
|
var open = _ref.open,
|
|
9225
9169
|
header = _ref.header,
|
|
@@ -9296,7 +9240,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9296
9240
|
setInternalShowDivider: setInternalShowDivider
|
|
9297
9241
|
};
|
|
9298
9242
|
}, [setInternalShowDivider]);
|
|
9299
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
9243
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Modal, {
|
|
9300
9244
|
visible: visible,
|
|
9301
9245
|
onRequestClose: onRequestClose,
|
|
9302
9246
|
transparent: true,
|
|
@@ -11985,12 +11929,12 @@ var Indicator = index$a(reactNative.View)(function (_ref2) {
|
|
|
11985
11929
|
};
|
|
11986
11930
|
});
|
|
11987
11931
|
|
|
11988
|
-
var _excluded$
|
|
11932
|
+
var _excluded$l = ["intent", "children"];
|
|
11989
11933
|
var DataCard = function DataCard(_ref) {
|
|
11990
11934
|
var _ref$intent = _ref.intent,
|
|
11991
11935
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
11992
11936
|
children = _ref.children,
|
|
11993
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11937
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
11994
11938
|
return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
|
|
11995
11939
|
themeIntent: intent,
|
|
11996
11940
|
testID: "data-card-indicator"
|
|
@@ -12008,11 +11952,11 @@ var StyledCard$1 = index$a(reactNative.View)(function (_ref) {
|
|
|
12008
11952
|
});
|
|
12009
11953
|
});
|
|
12010
11954
|
|
|
12011
|
-
var _excluded$
|
|
11955
|
+
var _excluded$k = ["intent", "children"];
|
|
12012
11956
|
var Card = function Card(_ref) {
|
|
12013
11957
|
var intent = _ref.intent,
|
|
12014
11958
|
children = _ref.children,
|
|
12015
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11959
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
12016
11960
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
12017
11961
|
themeIntent: intent
|
|
12018
11962
|
}), children);
|
|
@@ -12277,7 +12221,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12277
12221
|
});
|
|
12278
12222
|
CardCarousel.displayName = 'CardCarousel';
|
|
12279
12223
|
|
|
12280
|
-
var _excluded$
|
|
12224
|
+
var _excluded$j = ["rounded", "size", "testID", "style"];
|
|
12281
12225
|
var Image = function Image(_ref) {
|
|
12282
12226
|
var _ref$rounded = _ref.rounded,
|
|
12283
12227
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -12285,7 +12229,7 @@ var Image = function Image(_ref) {
|
|
|
12285
12229
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
12286
12230
|
testID = _ref.testID,
|
|
12287
12231
|
style = _ref.style,
|
|
12288
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12232
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
12289
12233
|
var theme = useTheme();
|
|
12290
12234
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
12291
12235
|
return /*#__PURE__*/React__default["default"].createElement(reactNative.Image, _extends$1({
|
|
@@ -12405,7 +12349,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12405
12349
|
}, heading), body ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, null, body) : null));
|
|
12406
12350
|
};
|
|
12407
12351
|
|
|
12408
|
-
var _excluded$
|
|
12352
|
+
var _excluded$i = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
12409
12353
|
function useStateFromProp(initialValue) {
|
|
12410
12354
|
var _useState = React.useState(initialValue),
|
|
12411
12355
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12432,7 +12376,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12432
12376
|
testID = _ref.testID,
|
|
12433
12377
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
12434
12378
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
12435
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12379
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
12436
12380
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
12437
12381
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
12438
12382
|
var theme = useTheme();
|
|
@@ -12627,7 +12571,7 @@ var StyledIcon$1 = index$a(Icon)(function (_ref4) {
|
|
|
12627
12571
|
};
|
|
12628
12572
|
});
|
|
12629
12573
|
|
|
12630
|
-
var _excluded$
|
|
12574
|
+
var _excluded$h = ["label", "variant", "selected", "icon", "onPress"];
|
|
12631
12575
|
var Chip = function Chip(_ref) {
|
|
12632
12576
|
var label = _ref.label,
|
|
12633
12577
|
_ref$variant = _ref.variant,
|
|
@@ -12636,7 +12580,7 @@ var Chip = function Chip(_ref) {
|
|
|
12636
12580
|
selected = _ref$selected === void 0 ? false : _ref$selected,
|
|
12637
12581
|
icon = _ref.icon,
|
|
12638
12582
|
onPress = _ref.onPress,
|
|
12639
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
12583
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
12640
12584
|
var internalIcon = React__default["default"].useMemo(function () {
|
|
12641
12585
|
if (icon && variant === 'filled') {
|
|
12642
12586
|
return icon;
|
|
@@ -12723,6 +12667,8 @@ var getThemeState = function getThemeState(_ref) {
|
|
|
12723
12667
|
var Checkbox = function Checkbox(_ref2) {
|
|
12724
12668
|
var checked = _ref2.checked,
|
|
12725
12669
|
description = _ref2.description,
|
|
12670
|
+
_ref2$withBorder = _ref2.withBorder,
|
|
12671
|
+
withBorder = _ref2$withBorder === void 0 ? false : _ref2$withBorder,
|
|
12726
12672
|
_ref2$disabled = _ref2.disabled,
|
|
12727
12673
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
12728
12674
|
onPress = _ref2.onPress,
|
|
@@ -12730,6 +12676,7 @@ var Checkbox = function Checkbox(_ref2) {
|
|
|
12730
12676
|
testID = _ref2.testID,
|
|
12731
12677
|
_ref2$readonly = _ref2.readonly,
|
|
12732
12678
|
readonly = _ref2$readonly === void 0 ? false : _ref2$readonly;
|
|
12679
|
+
useDeprecation("Checkbox's withBorder prop will be removed in the next major release, all checkboxes will have border by default. Please remove it.", withBorder === true);
|
|
12733
12680
|
var themeState = getThemeState({
|
|
12734
12681
|
disabled: disabled,
|
|
12735
12682
|
readonly: readonly
|
|
@@ -12880,7 +12827,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
|
|
|
12880
12827
|
};
|
|
12881
12828
|
});
|
|
12882
12829
|
|
|
12883
|
-
var _excluded$
|
|
12830
|
+
var _excluded$g = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
12884
12831
|
var getState$1 = function getState(_ref) {
|
|
12885
12832
|
var disabled = _ref.disabled,
|
|
12886
12833
|
error = _ref.error,
|
|
@@ -12933,7 +12880,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12933
12880
|
allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
|
|
12934
12881
|
_ref2$variant = _ref2.variant,
|
|
12935
12882
|
variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
|
|
12936
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12883
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
12937
12884
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
12938
12885
|
var isEmptyValue = displayText.length === 0;
|
|
12939
12886
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -13478,11 +13425,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13478
13425
|
}))));
|
|
13479
13426
|
};
|
|
13480
13427
|
|
|
13481
|
-
var _excluded$
|
|
13428
|
+
var _excluded$f = ["variant"];
|
|
13482
13429
|
var DatePicker = function DatePicker(_ref) {
|
|
13483
13430
|
var _ref$variant = _ref.variant,
|
|
13484
13431
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
13485
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
13432
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
13486
13433
|
if (variant === 'calendar') {
|
|
13487
13434
|
return /*#__PURE__*/React__default["default"].createElement(DatePickerCalendar, props);
|
|
13488
13435
|
}
|
|
@@ -13651,7 +13598,7 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
13651
13598
|
if (animatedToValue >= 0) {
|
|
13652
13599
|
var animation = reactNative.Animated.timing(pan, {
|
|
13653
13600
|
toValue: animatedToValue,
|
|
13654
|
-
useNativeDriver:
|
|
13601
|
+
useNativeDriver: reactNative.Platform.OS !== 'web',
|
|
13655
13602
|
easing: reactNative.Easing.inOut(reactNative.Easing.cubic)
|
|
13656
13603
|
});
|
|
13657
13604
|
animation.start(function () {
|
|
@@ -13834,6 +13781,332 @@ var Empty = function Empty(_ref) {
|
|
|
13834
13781
|
}, description));
|
|
13835
13782
|
};
|
|
13836
13783
|
|
|
13784
|
+
var customAlphabet = function customAlphabet(alphabet) {
|
|
13785
|
+
var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
|
|
13786
|
+
return function () {
|
|
13787
|
+
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
|
|
13788
|
+
var id = '';
|
|
13789
|
+
var i = size;
|
|
13790
|
+
while (i--) {
|
|
13791
|
+
id += alphabet[Math.random() * alphabet.length | 0];
|
|
13792
|
+
}
|
|
13793
|
+
return id;
|
|
13794
|
+
};
|
|
13795
|
+
};
|
|
13796
|
+
|
|
13797
|
+
var ACTIONS;
|
|
13798
|
+
(function (ACTIONS) {
|
|
13799
|
+
ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
|
|
13800
|
+
ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
|
|
13801
|
+
ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
|
|
13802
|
+
ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
|
|
13803
|
+
})(ACTIONS || (ACTIONS = {}));
|
|
13804
|
+
var INITIAL_STATE = {};
|
|
13805
|
+
|
|
13806
|
+
var PortalStateContext = /*#__PURE__*/React.createContext(null);
|
|
13807
|
+
var PortalDispatchContext = /*#__PURE__*/React.createContext(null);
|
|
13808
|
+
|
|
13809
|
+
var usePortal = function usePortal() {
|
|
13810
|
+
var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
|
|
13811
|
+
var dispatch = React.useContext(PortalDispatchContext);
|
|
13812
|
+
if (dispatch === null) {
|
|
13813
|
+
throw new Error("You must add 'PortalProvider' to the root component.");
|
|
13814
|
+
}
|
|
13815
|
+
var registerHost = React.useCallback(function () {
|
|
13816
|
+
dispatch({
|
|
13817
|
+
type: ACTIONS.REGISTER_HOST,
|
|
13818
|
+
hostName: hostName
|
|
13819
|
+
});
|
|
13820
|
+
}, []);
|
|
13821
|
+
var deregisterHost = React.useCallback(function () {
|
|
13822
|
+
dispatch({
|
|
13823
|
+
type: ACTIONS.DEREGISTER_HOST,
|
|
13824
|
+
hostName: hostName
|
|
13825
|
+
});
|
|
13826
|
+
}, []);
|
|
13827
|
+
var addUpdatePortal = React.useCallback(function (name, node) {
|
|
13828
|
+
dispatch({
|
|
13829
|
+
type: ACTIONS.ADD_UPDATE_PORTAL,
|
|
13830
|
+
hostName: hostName,
|
|
13831
|
+
portalName: name,
|
|
13832
|
+
node: node
|
|
13833
|
+
});
|
|
13834
|
+
}, []);
|
|
13835
|
+
var removePortal = React.useCallback(function (name) {
|
|
13836
|
+
dispatch({
|
|
13837
|
+
type: ACTIONS.REMOVE_PORTAL,
|
|
13838
|
+
hostName: hostName,
|
|
13839
|
+
portalName: name
|
|
13840
|
+
});
|
|
13841
|
+
}, []);
|
|
13842
|
+
return {
|
|
13843
|
+
registerHost: registerHost,
|
|
13844
|
+
deregisterHost: deregisterHost,
|
|
13845
|
+
addPortal: addUpdatePortal,
|
|
13846
|
+
updatePortal: addUpdatePortal,
|
|
13847
|
+
removePortal: removePortal
|
|
13848
|
+
};
|
|
13849
|
+
};
|
|
13850
|
+
|
|
13851
|
+
var usePortalState = function usePortalState(hostName) {
|
|
13852
|
+
var state = React.useContext(PortalStateContext);
|
|
13853
|
+
if (state === null) {
|
|
13854
|
+
throw new Error("You must add 'PortalProvider' to the root component.");
|
|
13855
|
+
}
|
|
13856
|
+
return state[hostName] || [];
|
|
13857
|
+
};
|
|
13858
|
+
|
|
13859
|
+
var PortalHostComponent = function PortalHostComponent(_ref) {
|
|
13860
|
+
var name = _ref.name;
|
|
13861
|
+
var state = usePortalState(name);
|
|
13862
|
+
var _usePortal = usePortal(name),
|
|
13863
|
+
registerHost = _usePortal.registerHost,
|
|
13864
|
+
deregisterHost = _usePortal.deregisterHost;
|
|
13865
|
+
React.useEffect(function () {
|
|
13866
|
+
registerHost();
|
|
13867
|
+
return function () {
|
|
13868
|
+
deregisterHost();
|
|
13869
|
+
};
|
|
13870
|
+
}, []);
|
|
13871
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, state.map(function (item) {
|
|
13872
|
+
return item.node;
|
|
13873
|
+
}));
|
|
13874
|
+
};
|
|
13875
|
+
var PortalHost = /*#__PURE__*/React.memo(PortalHostComponent);
|
|
13876
|
+
PortalHost.displayName = 'PortalHost';
|
|
13877
|
+
|
|
13878
|
+
var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
|
|
13879
|
+
if (!(hostName in state)) {
|
|
13880
|
+
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
|
|
13881
|
+
}
|
|
13882
|
+
return _objectSpread2({}, state);
|
|
13883
|
+
};
|
|
13884
|
+
var deregisterHost = function deregisterHost(state, hostName) {
|
|
13885
|
+
return _objectSpread2({}, omit([hostName], state));
|
|
13886
|
+
};
|
|
13887
|
+
var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
|
|
13888
|
+
var newState = registerHostIfNotExist(state, hostName);
|
|
13889
|
+
var index = newState[hostName].findIndex(function (item) {
|
|
13890
|
+
return item.name === portalName;
|
|
13891
|
+
});
|
|
13892
|
+
if (index !== -1) {
|
|
13893
|
+
return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
|
|
13894
|
+
if (index === i) {
|
|
13895
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13896
|
+
node: node
|
|
13897
|
+
});
|
|
13898
|
+
}
|
|
13899
|
+
return item;
|
|
13900
|
+
})));
|
|
13901
|
+
}
|
|
13902
|
+
return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
|
|
13903
|
+
name: portalName,
|
|
13904
|
+
node: node
|
|
13905
|
+
}])));
|
|
13906
|
+
};
|
|
13907
|
+
var removePortal = function removePortal(state, hostName, portalName) {
|
|
13908
|
+
if (!(hostName in state)) {
|
|
13909
|
+
return _objectSpread2({}, state);
|
|
13910
|
+
}
|
|
13911
|
+
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
|
|
13912
|
+
return item.name !== portalName;
|
|
13913
|
+
})));
|
|
13914
|
+
};
|
|
13915
|
+
var reducer = function reducer(state, action) {
|
|
13916
|
+
var type = action.type;
|
|
13917
|
+
switch (type) {
|
|
13918
|
+
case ACTIONS.REGISTER_HOST:
|
|
13919
|
+
return registerHostIfNotExist(state, action.hostName);
|
|
13920
|
+
case ACTIONS.DEREGISTER_HOST:
|
|
13921
|
+
return deregisterHost(state, action.hostName);
|
|
13922
|
+
case ACTIONS.ADD_UPDATE_PORTAL:
|
|
13923
|
+
return addUpdatePortal(state, action.hostName, action.portalName, action.node);
|
|
13924
|
+
case ACTIONS.REMOVE_PORTAL:
|
|
13925
|
+
return removePortal(state, action.hostName, action.portalName);
|
|
13926
|
+
default:
|
|
13927
|
+
return _objectSpread2({}, state);
|
|
13928
|
+
}
|
|
13929
|
+
};
|
|
13930
|
+
|
|
13931
|
+
var PortalProviderComponent = function PortalProviderComponent(_ref) {
|
|
13932
|
+
var _ref$rootHostName = _ref.rootHostName,
|
|
13933
|
+
rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
|
|
13934
|
+
children = _ref.children;
|
|
13935
|
+
var _useReducer = React.useReducer(reducer, INITIAL_STATE),
|
|
13936
|
+
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
13937
|
+
state = _useReducer2[0],
|
|
13938
|
+
dispatch = _useReducer2[1];
|
|
13939
|
+
return /*#__PURE__*/React__default["default"].createElement(PortalDispatchContext.Provider, {
|
|
13940
|
+
value: dispatch
|
|
13941
|
+
}, /*#__PURE__*/React__default["default"].createElement(PortalStateContext.Provider, {
|
|
13942
|
+
value: state
|
|
13943
|
+
}, children, /*#__PURE__*/React__default["default"].createElement(PortalHost, {
|
|
13944
|
+
name: rootHostName
|
|
13945
|
+
})));
|
|
13946
|
+
};
|
|
13947
|
+
var PortalProvider = /*#__PURE__*/React.memo(PortalProviderComponent);
|
|
13948
|
+
PortalProvider.displayName = 'PortalProvider';
|
|
13949
|
+
|
|
13950
|
+
var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
|
|
13951
|
+
var PortalComponent = function PortalComponent(_ref) {
|
|
13952
|
+
var name = _ref.name,
|
|
13953
|
+
hostName = _ref.hostName,
|
|
13954
|
+
children = _ref.children,
|
|
13955
|
+
theme = _ref.theme;
|
|
13956
|
+
var defaultTheme = useTheme();
|
|
13957
|
+
var _usePortal = usePortal(hostName),
|
|
13958
|
+
addUpdatePortal = _usePortal.addPortal,
|
|
13959
|
+
removePortal = _usePortal.removePortal;
|
|
13960
|
+
var nameOrRandom = React.useMemo(function () {
|
|
13961
|
+
return name || nanoid();
|
|
13962
|
+
}, [name]);
|
|
13963
|
+
var ChildrenComponent = React.useMemo(function () {
|
|
13964
|
+
return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
|
|
13965
|
+
theme: theme || defaultTheme
|
|
13966
|
+
}, children);
|
|
13967
|
+
}, [theme, children, defaultTheme]);
|
|
13968
|
+
React.useLayoutEffect(function () {
|
|
13969
|
+
addUpdatePortal(nameOrRandom, ChildrenComponent);
|
|
13970
|
+
return function () {
|
|
13971
|
+
removePortal(nameOrRandom);
|
|
13972
|
+
};
|
|
13973
|
+
}, [addUpdatePortal]);
|
|
13974
|
+
React.useLayoutEffect(function () {
|
|
13975
|
+
addUpdatePortal(nameOrRandom, ChildrenComponent);
|
|
13976
|
+
}, [ChildrenComponent]);
|
|
13977
|
+
return null;
|
|
13978
|
+
};
|
|
13979
|
+
var Portal = /*#__PURE__*/React.memo(PortalComponent);
|
|
13980
|
+
Portal.displayName = 'Portal';
|
|
13981
|
+
var Portal$1 = Object.assign(Portal, {
|
|
13982
|
+
Provider: PortalProvider,
|
|
13983
|
+
Host: PortalHost
|
|
13984
|
+
});
|
|
13985
|
+
|
|
13986
|
+
var _excluded$e = ["visible"];
|
|
13987
|
+
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
13988
|
+
var DEFAULT_ANIMATION_CONFIG = {
|
|
13989
|
+
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
13990
|
+
useNativeDriver: reactNative.Platform.OS !== 'web',
|
|
13991
|
+
duration: 400
|
|
13992
|
+
};
|
|
13993
|
+
var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13994
|
+
var children = _ref.children,
|
|
13995
|
+
onShow = _ref.onShow,
|
|
13996
|
+
onRequestClose = _ref.onRequestClose,
|
|
13997
|
+
testID = _ref.testID,
|
|
13998
|
+
_ref$animationType = _ref.animationType,
|
|
13999
|
+
animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
|
|
14000
|
+
_ref$transparent = _ref.transparent,
|
|
14001
|
+
transparent = _ref$transparent === void 0 ? false : _ref$transparent,
|
|
14002
|
+
onDismiss = _ref.onDismiss;
|
|
14003
|
+
var theme = useTheme();
|
|
14004
|
+
var animatedBackdropValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
14005
|
+
var animatedModalValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
14006
|
+
// Show or hide the backdrop and modal content
|
|
14007
|
+
var animateBackdropAndContent = React.useCallback(function (_ref2) {
|
|
14008
|
+
var toValue = _ref2.toValue,
|
|
14009
|
+
callback = _ref2.callback;
|
|
14010
|
+
if (animationType !== 'none') {
|
|
14011
|
+
// Backdrop animation
|
|
14012
|
+
if (!transparent) {
|
|
14013
|
+
reactNative.Animated.timing(animatedBackdropValue, _objectSpread2({
|
|
14014
|
+
toValue: toValue
|
|
14015
|
+
}, DEFAULT_ANIMATION_CONFIG)).start();
|
|
14016
|
+
}
|
|
14017
|
+
// Modal content animation
|
|
14018
|
+
reactNative.Animated.timing(animatedModalValue, _objectSpread2({
|
|
14019
|
+
toValue: toValue
|
|
14020
|
+
}, DEFAULT_ANIMATION_CONFIG)).start(callback);
|
|
14021
|
+
} else {
|
|
14022
|
+
callback === null || callback === void 0 || callback();
|
|
14023
|
+
}
|
|
14024
|
+
}, [animationType, onShow, transparent]);
|
|
14025
|
+
var backdropOpacityAnimation = animatedBackdropValue.interpolate({
|
|
14026
|
+
inputRange: [0, 1],
|
|
14027
|
+
outputRange: [0, DEFAULT_BACKDROP_OPACITY]
|
|
14028
|
+
});
|
|
14029
|
+
var modalAnimation = animatedModalValue.interpolate({
|
|
14030
|
+
inputRange: [0, 1],
|
|
14031
|
+
outputRange: animationType === 'slide' ? [reactNative.Dimensions.get('window').height, 0] : [0, 1]
|
|
14032
|
+
});
|
|
14033
|
+
React.useImperativeHandle(ref, function () {
|
|
14034
|
+
return {
|
|
14035
|
+
show: function show() {
|
|
14036
|
+
animateBackdropAndContent({
|
|
14037
|
+
toValue: 1,
|
|
14038
|
+
callback: onShow
|
|
14039
|
+
});
|
|
14040
|
+
},
|
|
14041
|
+
hide: function hide(wrapperCallback) {
|
|
14042
|
+
animateBackdropAndContent({
|
|
14043
|
+
toValue: 0,
|
|
14044
|
+
callback: function callback() {
|
|
14045
|
+
if (reactNative.Platform.OS === 'ios') {
|
|
14046
|
+
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
14047
|
+
}
|
|
14048
|
+
wrapperCallback();
|
|
14049
|
+
}
|
|
14050
|
+
});
|
|
14051
|
+
}
|
|
14052
|
+
};
|
|
14053
|
+
}, [onDismiss, onShow, animateBackdropAndContent]);
|
|
14054
|
+
// Back button handler
|
|
14055
|
+
React.useEffect(function () {
|
|
14056
|
+
var backHandler = reactNative.BackHandler.addEventListener('hardwareBackPress', function () {
|
|
14057
|
+
onRequestClose === null || onRequestClose === void 0 || onRequestClose();
|
|
14058
|
+
return true;
|
|
14059
|
+
});
|
|
14060
|
+
return function () {
|
|
14061
|
+
return backHandler.remove();
|
|
14062
|
+
};
|
|
14063
|
+
}, [onRequestClose]);
|
|
14064
|
+
return /*#__PURE__*/React__default["default"].createElement(Portal$1, null, /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
14065
|
+
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14066
|
+
backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
|
|
14067
|
+
opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
|
|
14068
|
+
})
|
|
14069
|
+
}), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
14070
|
+
testID: testID,
|
|
14071
|
+
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14072
|
+
opacity: animationType === 'fade' ? modalAnimation : 1,
|
|
14073
|
+
transform: [{
|
|
14074
|
+
translateY: animationType === 'slide' ? modalAnimation : 0
|
|
14075
|
+
}]
|
|
14076
|
+
})
|
|
14077
|
+
}, children));
|
|
14078
|
+
});
|
|
14079
|
+
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
14080
|
+
var _ref3$visible = _ref3.visible,
|
|
14081
|
+
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
14082
|
+
props = _objectWithoutProperties(_ref3, _excluded$e);
|
|
14083
|
+
var modalRef = React.useRef(null);
|
|
14084
|
+
var _useState = React.useState(visible),
|
|
14085
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14086
|
+
internalVisible = _useState2[0],
|
|
14087
|
+
setInternalVisible = _useState2[1];
|
|
14088
|
+
React.useEffect(function () {
|
|
14089
|
+
if (visible) {
|
|
14090
|
+
setInternalVisible(true);
|
|
14091
|
+
} else {
|
|
14092
|
+
var _modalRef$current;
|
|
14093
|
+
// Wait for animation to finish before hiding the modal
|
|
14094
|
+
(_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 || _modalRef$current.hide(function () {
|
|
14095
|
+
return setInternalVisible(false);
|
|
14096
|
+
});
|
|
14097
|
+
}
|
|
14098
|
+
}, [visible]);
|
|
14099
|
+
React.useEffect(function () {
|
|
14100
|
+
if (internalVisible) {
|
|
14101
|
+
var _modalRef$current2;
|
|
14102
|
+
(_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
|
|
14103
|
+
}
|
|
14104
|
+
}, [internalVisible]);
|
|
14105
|
+
return internalVisible ? /*#__PURE__*/React__default["default"].createElement(Modal, _extends$1({
|
|
14106
|
+
ref: modalRef
|
|
14107
|
+
}, props)) : null;
|
|
14108
|
+
};
|
|
14109
|
+
|
|
13837
14110
|
var StyledErrorModal = index$a(ModalWrapper)({
|
|
13838
14111
|
height: '100%',
|
|
13839
14112
|
width: '100%'
|
|
@@ -13917,7 +14190,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
|
|
|
13917
14190
|
});
|
|
13918
14191
|
|
|
13919
14192
|
var _excluded$d = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
|
|
13920
|
-
_excluded2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14193
|
+
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
13921
14194
|
var renderImage$1 = function renderImage(image) {
|
|
13922
14195
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
13923
14196
|
return /*#__PURE__*/React__default["default"].cloneElement(image, {
|
|
@@ -13971,7 +14244,9 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
13971
14244
|
* @return {*} {ReactElement}
|
|
13972
14245
|
*/
|
|
13973
14246
|
var Error$1 = function Error(_ref2) {
|
|
13974
|
-
var _ref2$
|
|
14247
|
+
var _ref2$visible = _ref2.visible,
|
|
14248
|
+
visible = _ref2$visible === void 0 ? true : _ref2$visible,
|
|
14249
|
+
_ref2$variant = _ref2.variant,
|
|
13975
14250
|
variant = _ref2$variant === void 0 ? 'in-page' : _ref2$variant,
|
|
13976
14251
|
title = _ref2.title,
|
|
13977
14252
|
description = _ref2.description,
|
|
@@ -13982,7 +14257,8 @@ var Error$1 = function Error(_ref2) {
|
|
|
13982
14257
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
13983
14258
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
13984
14259
|
nativeProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
13985
|
-
|
|
14260
|
+
useDeprecation("Visible prop is deprecated. Use conditional rendering instead", visible);
|
|
14261
|
+
var _useState = React.useState(visible),
|
|
13986
14262
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13987
14263
|
isVisible = _useState2[0],
|
|
13988
14264
|
setIsVisible = _useState2[1];
|
|
@@ -13999,6 +14275,9 @@ var Error$1 = function Error(_ref2) {
|
|
|
13999
14275
|
}
|
|
14000
14276
|
setCtaPressed(null);
|
|
14001
14277
|
}, [ctaPressed, onCtaPress, onSecondaryCtaPress]);
|
|
14278
|
+
React.useEffect(function () {
|
|
14279
|
+
setIsVisible(visible);
|
|
14280
|
+
}, [visible]);
|
|
14002
14281
|
// These useEffect lines prevents race condition error when callback contains navigation logic
|
|
14003
14282
|
React.useEffect(function () {
|
|
14004
14283
|
if (ctaPressed) {
|
|
@@ -14355,7 +14634,8 @@ var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
|
|
|
14355
14634
|
});
|
|
14356
14635
|
|
|
14357
14636
|
var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14358
|
-
var
|
|
14637
|
+
var headerTitle = _ref.headerTitle,
|
|
14638
|
+
onPress = _ref.onPress,
|
|
14359
14639
|
active = _ref.active,
|
|
14360
14640
|
style = _ref.style,
|
|
14361
14641
|
items = _ref.items,
|
|
@@ -14364,6 +14644,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14364
14644
|
onBackdropPress = _ref.onBackdropPress,
|
|
14365
14645
|
_ref$fabIcon = _ref.fabIcon,
|
|
14366
14646
|
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon;
|
|
14647
|
+
useDeprecation("FAB.ActionGroup's headerTitle prop will be removed in the next major release. Please remove it.", headerTitle !== undefined);
|
|
14367
14648
|
var fabRef = React.useRef(null);
|
|
14368
14649
|
var tranlateXAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
14369
14650
|
React__default["default"].useImperativeHandle(ref, function () {
|
|
@@ -14458,11 +14739,12 @@ var index$6 = Object.assign(FAB, {
|
|
|
14458
14739
|
});
|
|
14459
14740
|
|
|
14460
14741
|
var ToastContainerWrapper = index$a(reactNative.View)(function (_ref) {
|
|
14461
|
-
var theme = _ref.theme
|
|
14742
|
+
var theme = _ref.theme,
|
|
14743
|
+
position = _ref.position;
|
|
14462
14744
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14463
14745
|
paddingHorizontal: theme.__hd__.toast.space.wrapperVerticalPadding,
|
|
14464
14746
|
paddingVertical: theme.__hd__.toast.space.wrapperHorizontalPadding,
|
|
14465
|
-
flexDirection: 'column-reverse',
|
|
14747
|
+
flexDirection: position === 'bottom' ? 'column-reverse' : 'column',
|
|
14466
14748
|
elevation: 9999
|
|
14467
14749
|
});
|
|
14468
14750
|
});
|
|
@@ -14515,6 +14797,15 @@ var CTAWrapper = index$a(reactNative.TouchableOpacity)(function (_ref6) {
|
|
|
14515
14797
|
};
|
|
14516
14798
|
});
|
|
14517
14799
|
|
|
14800
|
+
var ToastContext = /*#__PURE__*/React.createContext({});
|
|
14801
|
+
var ToastConfigContext = /*#__PURE__*/React.createContext({});
|
|
14802
|
+
var useToastConfig = function useToastConfig() {
|
|
14803
|
+
return React.useContext(ToastConfigContext);
|
|
14804
|
+
};
|
|
14805
|
+
var useToast = function useToast() {
|
|
14806
|
+
return React.useContext(ToastContext);
|
|
14807
|
+
};
|
|
14808
|
+
|
|
14518
14809
|
var getIntentIcon = function getIntentIcon(intent) {
|
|
14519
14810
|
switch (intent) {
|
|
14520
14811
|
case 'success':
|
|
@@ -14558,6 +14849,7 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
14558
14849
|
_ref2$distance = _ref2.distance,
|
|
14559
14850
|
distance = _ref2$distance === void 0 ? 0 : _ref2$distance;
|
|
14560
14851
|
var animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
14852
|
+
var toastConfig = useToastConfig();
|
|
14561
14853
|
React.useEffect(function () {
|
|
14562
14854
|
if (autoDismiss && duration >= 0) {
|
|
14563
14855
|
var id = setTimeout(function () {
|
|
@@ -14583,7 +14875,7 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
14583
14875
|
});
|
|
14584
14876
|
var interpolateY = animatedValue.interpolate({
|
|
14585
14877
|
inputRange: [0, 1],
|
|
14586
|
-
outputRange: [20, -distance]
|
|
14878
|
+
outputRange: toastConfig.position === 'top' ? [-20, distance] : [20, -distance]
|
|
14587
14879
|
});
|
|
14588
14880
|
return /*#__PURE__*/React__default["default"].createElement(Container, {
|
|
14589
14881
|
themeVariant: variant,
|
|
@@ -14641,6 +14933,8 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
14641
14933
|
var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function (_ref2, ref) {
|
|
14642
14934
|
var _ref2$displayType = _ref2.displayType,
|
|
14643
14935
|
displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
|
|
14936
|
+
_ref2$position = _ref2.position,
|
|
14937
|
+
position = _ref2$position === void 0 ? 'bottom' : _ref2$position,
|
|
14644
14938
|
style = _ref2.style;
|
|
14645
14939
|
var theme = useTheme$1();
|
|
14646
14940
|
var _useState = React.useState([]),
|
|
@@ -14673,6 +14967,7 @@ var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
14673
14967
|
});
|
|
14674
14968
|
return /*#__PURE__*/React__default["default"].createElement(ToastContainerWrapper, {
|
|
14675
14969
|
pointerEvents: "box-none",
|
|
14970
|
+
position: position,
|
|
14676
14971
|
style: style
|
|
14677
14972
|
}, displayType === 'single' ? /*#__PURE__*/React__default["default"].createElement(SingleToastDisplay, {
|
|
14678
14973
|
toastList: toastList,
|
|
@@ -14699,16 +14994,13 @@ var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
14699
14994
|
});
|
|
14700
14995
|
ToastContainer.displayName = 'ToastContainer';
|
|
14701
14996
|
|
|
14702
|
-
var ToastContext = /*#__PURE__*/React.createContext({});
|
|
14703
|
-
var ToastConfigContext = /*#__PURE__*/React.createContext({});
|
|
14704
|
-
var useToast = function useToast() {
|
|
14705
|
-
return React.useContext(ToastContext);
|
|
14706
|
-
};
|
|
14707
|
-
|
|
14708
14997
|
var ToastProvider = function ToastProvider(_ref) {
|
|
14709
14998
|
var children = _ref.children,
|
|
14710
14999
|
_ref$displayType = _ref.displayType,
|
|
14711
|
-
displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType
|
|
15000
|
+
displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType,
|
|
15001
|
+
_position = _ref.position;
|
|
15002
|
+
var position = _position === undefined ? 'bottom' : _position;
|
|
15003
|
+
useDeprecation("Toast's position prop is deprecated and will be removed in the next major release.\nPlease remove it.", _position !== undefined);
|
|
14712
15004
|
var toastRef = React.useRef(null);
|
|
14713
15005
|
// @ts-expect-error: TODO: @tungv Fix this type error
|
|
14714
15006
|
var _useState = React.useState(null),
|
|
@@ -14722,9 +15014,10 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
14722
15014
|
}, []);
|
|
14723
15015
|
var config = React.useMemo(function () {
|
|
14724
15016
|
return {
|
|
14725
|
-
displayType: displayType
|
|
15017
|
+
displayType: displayType,
|
|
15018
|
+
position: position
|
|
14726
15019
|
};
|
|
14727
|
-
}, [displayType]);
|
|
15020
|
+
}, [displayType, position]);
|
|
14728
15021
|
return /*#__PURE__*/React__default["default"].createElement(ToastContext.Provider, {
|
|
14729
15022
|
value: refState
|
|
14730
15023
|
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
@@ -14735,7 +15028,8 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
14735
15028
|
value: config
|
|
14736
15029
|
}, /*#__PURE__*/React__default["default"].createElement(ToastContainer, {
|
|
14737
15030
|
ref: toastRef,
|
|
14738
|
-
displayType: displayType
|
|
15031
|
+
displayType: displayType,
|
|
15032
|
+
position: position
|
|
14739
15033
|
}))));
|
|
14740
15034
|
};
|
|
14741
15035
|
|
|
@@ -15842,12 +16136,18 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
15842
16136
|
var icon = _ref.icon,
|
|
15843
16137
|
text = _ref.text,
|
|
15844
16138
|
rightChildren = _ref.rightChildren,
|
|
16139
|
+
_ref$fontSize = _ref.fontSize,
|
|
16140
|
+
fontSize = _ref$fontSize === void 0 ? 'large' : _ref$fontSize,
|
|
15845
16141
|
_ref$intent = _ref.intent,
|
|
15846
16142
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
16143
|
+
_ref$fontWeight = _ref.fontWeight,
|
|
16144
|
+
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
15847
16145
|
_ref$size = _ref.size,
|
|
15848
16146
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
15849
16147
|
style = _ref.style,
|
|
15850
16148
|
testID = _ref.testID;
|
|
16149
|
+
useDeprecation("SectionHeading's fontSize prop is deprecated and will be removed in the next major release, please remove it.", fontSize !== undefined);
|
|
16150
|
+
useDeprecation("SectionHeading's fontWeight prop is deprecated and will be removed in the next major release, please remove it.", fontWeight !== undefined);
|
|
15851
16151
|
return /*#__PURE__*/React__default["default"].createElement(StyledHeading, {
|
|
15852
16152
|
themeSize: size,
|
|
15853
16153
|
style: style,
|
|
@@ -17060,10 +17360,6 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
|
|
|
17060
17360
|
return refs.current;
|
|
17061
17361
|
};
|
|
17062
17362
|
|
|
17063
|
-
var isHeroIcon = function isHeroIcon(x) {
|
|
17064
|
-
return IconList.includes(x);
|
|
17065
|
-
};
|
|
17066
|
-
|
|
17067
17363
|
var TabWithBadge = function TabWithBadge(_ref) {
|
|
17068
17364
|
var config = _ref.config,
|
|
17069
17365
|
tabItem = _ref.tabItem;
|
|
@@ -17484,14 +17780,17 @@ var StyledText = index$a(Typography.Caption)(function (_ref2) {
|
|
|
17484
17780
|
};
|
|
17485
17781
|
});
|
|
17486
17782
|
|
|
17487
|
-
var _excluded$2 = ["content", "intent", "style", "testID"];
|
|
17783
|
+
var _excluded$2 = ["content", "variant", "intent", "style", "testID"];
|
|
17488
17784
|
var Tag = function Tag(_ref) {
|
|
17489
17785
|
var content = _ref.content,
|
|
17786
|
+
_ref$variant = _ref.variant,
|
|
17787
|
+
variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
|
|
17490
17788
|
_ref$intent = _ref.intent,
|
|
17491
17789
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
17492
17790
|
style = _ref.style,
|
|
17493
17791
|
testID = _ref.testID,
|
|
17494
17792
|
nativeProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
17793
|
+
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
17495
17794
|
return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
|
|
17496
17795
|
themeIntent: intent,
|
|
17497
17796
|
style: style,
|
|
@@ -34051,6 +34350,7 @@ exports.Alert = Alert;
|
|
|
34051
34350
|
exports.Attachment = Attachment;
|
|
34052
34351
|
exports.Avatar = index$9;
|
|
34053
34352
|
exports.Badge = Badge$1;
|
|
34353
|
+
exports.BottomNavigation = BottomNavigation;
|
|
34054
34354
|
exports.BottomSheet = BottomSheet$1;
|
|
34055
34355
|
exports.Box = Box;
|
|
34056
34356
|
exports.Button = CompoundButton;
|