@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/es/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as reactNative from 'react-native';
|
|
2
|
-
import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, UIManager, LayoutAnimation, TouchableOpacity, Text as Text$1, Easing, Image as Image$1, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, ScrollView,
|
|
2
|
+
import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, UIManager, LayoutAnimation, TouchableOpacity, Text as Text$1, Easing, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, ScrollView, Modal as Modal$1, FlatList, useWindowDimensions, TextInput as TextInput$1, PanResponder, BackHandler, InteractionManager, Keyboard, SectionList, RefreshControl as RefreshControl$1 } from 'react-native';
|
|
3
3
|
import React, { useContext, createContext, createElement, useMemo, forwardRef, useEffect, useCallback, useRef, useState, memo, useReducer, useLayoutEffect, useImperativeHandle, isValidElement } from 'react';
|
|
4
4
|
import { createIconSet } from 'react-native-vector-icons';
|
|
5
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
5
6
|
import { MonthYearPickerViewIOS, MonthYearPickerDialogueAndroid } from '@hero-design/react-native-month-year-picker';
|
|
6
7
|
import DateTimePicker from '@react-native-community/datetimepicker';
|
|
7
8
|
import RnSlider from '@react-native-community/slider';
|
|
8
9
|
import { RectButton, GestureHandlerRootView, Swipeable as Swipeable$1 } from 'react-native-gesture-handler';
|
|
9
10
|
import LinearGradient from 'react-native-linear-gradient';
|
|
10
|
-
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
11
11
|
import PagerView from 'react-native-pager-view';
|
|
12
12
|
import { EventEmitter } from 'events';
|
|
13
13
|
import { WebView } from 'react-native-webview';
|
|
@@ -2170,6 +2170,15 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2170
2170
|
archived: theme.colors.onArchivedSurface,
|
|
2171
2171
|
text: theme.colors.onDarkGlobalSurface
|
|
2172
2172
|
};
|
|
2173
|
+
var fonts = {
|
|
2174
|
+
"default": theme.fonts.neutral.semiBold
|
|
2175
|
+
};
|
|
2176
|
+
var fontSizes = {
|
|
2177
|
+
"default": theme.fontSizes.small
|
|
2178
|
+
};
|
|
2179
|
+
var lineHeights = {
|
|
2180
|
+
"default": theme.lineHeights.small
|
|
2181
|
+
};
|
|
2173
2182
|
var sizes = {
|
|
2174
2183
|
height: theme.fontSizes.small + theme.sizes.small,
|
|
2175
2184
|
minWidth: theme.fontSizes.small + theme.sizes.small,
|
|
@@ -2183,6 +2192,37 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2183
2192
|
};
|
|
2184
2193
|
return {
|
|
2185
2194
|
colors: colors,
|
|
2195
|
+
fonts: fonts,
|
|
2196
|
+
fontSizes: fontSizes,
|
|
2197
|
+
sizes: sizes,
|
|
2198
|
+
space: space,
|
|
2199
|
+
lineHeights: lineHeights
|
|
2200
|
+
};
|
|
2201
|
+
};
|
|
2202
|
+
|
|
2203
|
+
var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
2204
|
+
var colors = {
|
|
2205
|
+
shadow: theme.colors.primary,
|
|
2206
|
+
background: theme.colors.defaultGlobalSurface
|
|
2207
|
+
};
|
|
2208
|
+
var sizes = {
|
|
2209
|
+
height: theme.sizes['6xlarge']
|
|
2210
|
+
};
|
|
2211
|
+
var shadows = {
|
|
2212
|
+
offset: {
|
|
2213
|
+
width: 0,
|
|
2214
|
+
height: 3
|
|
2215
|
+
},
|
|
2216
|
+
opacity: 0.27,
|
|
2217
|
+
radius: 4.65,
|
|
2218
|
+
elevation: 10
|
|
2219
|
+
};
|
|
2220
|
+
var space = {
|
|
2221
|
+
titleMarginTop: theme.space.xsmall
|
|
2222
|
+
};
|
|
2223
|
+
return {
|
|
2224
|
+
colors: colors,
|
|
2225
|
+
shadows: shadows,
|
|
2186
2226
|
sizes: sizes,
|
|
2187
2227
|
space: space
|
|
2188
2228
|
};
|
|
@@ -2226,6 +2266,15 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
2226
2266
|
};
|
|
2227
2267
|
|
|
2228
2268
|
var getButtonTheme = function getButtonTheme(theme) {
|
|
2269
|
+
var fonts = {
|
|
2270
|
+
"default": theme.fonts.neutral.semiBold,
|
|
2271
|
+
utility: theme.fonts.neutral.regular
|
|
2272
|
+
};
|
|
2273
|
+
var fontSize = {
|
|
2274
|
+
"default": theme.fontSizes.xlarge,
|
|
2275
|
+
utility: theme.fontSizes.large,
|
|
2276
|
+
textVariant: theme.fontSizes.large
|
|
2277
|
+
};
|
|
2229
2278
|
var borderWidth = {
|
|
2230
2279
|
"default": theme.space.xxsmall
|
|
2231
2280
|
};
|
|
@@ -2272,6 +2321,8 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
2272
2321
|
return {
|
|
2273
2322
|
lineHeights: lineHeights,
|
|
2274
2323
|
borderWidth: borderWidth,
|
|
2324
|
+
fonts: fonts,
|
|
2325
|
+
fontSize: fontSize,
|
|
2275
2326
|
sizes: sizes,
|
|
2276
2327
|
radii: radii,
|
|
2277
2328
|
colors: colors,
|
|
@@ -2347,8 +2398,20 @@ var getCarouselTheme = function getCarouselTheme(theme) {
|
|
|
2347
2398
|
pageControlPaddingVertical: theme.space.small,
|
|
2348
2399
|
pageControlWrapperHeight: scale(48)
|
|
2349
2400
|
};
|
|
2401
|
+
var fontSizes = {
|
|
2402
|
+
heading: theme.fontSizes['xxxxxlarge']
|
|
2403
|
+
};
|
|
2404
|
+
var fonts = {
|
|
2405
|
+
heading: theme.fonts.playful.semiBold
|
|
2406
|
+
};
|
|
2407
|
+
var lineHeights = {
|
|
2408
|
+
heading: theme.lineHeights['6xlarge']
|
|
2409
|
+
};
|
|
2350
2410
|
return {
|
|
2351
|
-
space: space
|
|
2411
|
+
space: space,
|
|
2412
|
+
fonts: fonts,
|
|
2413
|
+
fontSizes: fontSizes,
|
|
2414
|
+
lineHeights: lineHeights
|
|
2352
2415
|
};
|
|
2353
2416
|
};
|
|
2354
2417
|
|
|
@@ -2532,10 +2595,20 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
2532
2595
|
subduedText: theme.colors.mutedOnDefaultGlobalSurface,
|
|
2533
2596
|
invertedSubduedText: theme.colors.onDarkGlobalSurface
|
|
2534
2597
|
};
|
|
2598
|
+
var fontSizes = {
|
|
2599
|
+
title: theme.fontSizes.xxxlarge,
|
|
2600
|
+
description: theme.fontSizes.xlarge
|
|
2601
|
+
};
|
|
2602
|
+
var fonts = {
|
|
2603
|
+
title: theme.fonts.playful.semiBold,
|
|
2604
|
+
description: theme.fonts.playful.regular
|
|
2605
|
+
};
|
|
2535
2606
|
return {
|
|
2607
|
+
fontSizes: fontSizes,
|
|
2536
2608
|
colors: colors,
|
|
2537
2609
|
sizes: sizes,
|
|
2538
|
-
space: space
|
|
2610
|
+
space: space,
|
|
2611
|
+
fonts: fonts
|
|
2539
2612
|
};
|
|
2540
2613
|
};
|
|
2541
2614
|
|
|
@@ -2560,10 +2633,25 @@ var getErrorTheme = function getErrorTheme(theme) {
|
|
|
2560
2633
|
fullScreenBackground: theme.colors.decorativePrimarySurface,
|
|
2561
2634
|
inPageBackground: theme.colors.neutralGlobalSurface
|
|
2562
2635
|
};
|
|
2636
|
+
var fontSizes = {
|
|
2637
|
+
title: theme.fontSizes.xxxlarge,
|
|
2638
|
+
description: theme.fontSizes.xlarge
|
|
2639
|
+
};
|
|
2640
|
+
var fonts = {
|
|
2641
|
+
title: theme.fonts.playful.semiBold,
|
|
2642
|
+
description: theme.fonts.playful.regular
|
|
2643
|
+
};
|
|
2644
|
+
var lineHeight = {
|
|
2645
|
+
title: theme.lineHeights.xxxlarge,
|
|
2646
|
+
description: theme.lineHeights.xlarge
|
|
2647
|
+
};
|
|
2563
2648
|
return {
|
|
2649
|
+
fontSizes: fontSizes,
|
|
2564
2650
|
colors: colors,
|
|
2565
2651
|
sizes: sizes,
|
|
2566
|
-
space: space
|
|
2652
|
+
space: space,
|
|
2653
|
+
fonts: fonts,
|
|
2654
|
+
lineHeight: lineHeight
|
|
2567
2655
|
};
|
|
2568
2656
|
};
|
|
2569
2657
|
|
|
@@ -2620,10 +2708,10 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2620
2708
|
};
|
|
2621
2709
|
return {
|
|
2622
2710
|
radii: radii,
|
|
2623
|
-
colors: colors,
|
|
2624
|
-
sizes: sizes,
|
|
2625
2711
|
fonts: fonts,
|
|
2626
2712
|
fontSizes: fontSizes,
|
|
2713
|
+
colors: colors,
|
|
2714
|
+
sizes: sizes,
|
|
2627
2715
|
lineHeights: lineHeights,
|
|
2628
2716
|
shadows: shadows,
|
|
2629
2717
|
space: space
|
|
@@ -2748,6 +2836,18 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2748
2836
|
error: theme.colors.onErrorSurface,
|
|
2749
2837
|
disabled: theme.colors.disabledOnDefaultGlobalSurface
|
|
2750
2838
|
};
|
|
2839
|
+
var fonts = {
|
|
2840
|
+
cellText: theme.fonts.neutral.semiBold,
|
|
2841
|
+
errorMessage: theme.fonts.neutral.regular
|
|
2842
|
+
};
|
|
2843
|
+
var fontSizes = {
|
|
2844
|
+
cellText: theme.fontSizes.xxxxlarge,
|
|
2845
|
+
errorMessage: theme.fontSizes.small
|
|
2846
|
+
};
|
|
2847
|
+
var lineHeights = {
|
|
2848
|
+
cellText: theme.lineHeights.xxxxlarge,
|
|
2849
|
+
errorMessage: theme.fontSizes.small
|
|
2850
|
+
};
|
|
2751
2851
|
var sizes = {
|
|
2752
2852
|
cellWidth: theme.sizes.xxlarge,
|
|
2753
2853
|
cellHeight: theme.sizes.xxxlarge,
|
|
@@ -2763,7 +2863,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2763
2863
|
};
|
|
2764
2864
|
return {
|
|
2765
2865
|
borderWidths: borderWidths,
|
|
2866
|
+
lineHeights: lineHeights,
|
|
2766
2867
|
colors: colors,
|
|
2868
|
+
fonts: fonts,
|
|
2869
|
+
fontSizes: fontSizes,
|
|
2767
2870
|
sizes: sizes,
|
|
2768
2871
|
space: space,
|
|
2769
2872
|
radii: radii
|
|
@@ -3022,10 +3125,20 @@ var getSuccessTheme = function getSuccessTheme(theme) {
|
|
|
3022
3125
|
fullScreenBackground: theme.colors.decorativePrimarySurface,
|
|
3023
3126
|
inPageBackground: theme.colors.neutralGlobalSurface
|
|
3024
3127
|
};
|
|
3128
|
+
var fontSizes = {
|
|
3129
|
+
title: theme.fontSizes.xxxlarge,
|
|
3130
|
+
description: theme.fontSizes.xlarge
|
|
3131
|
+
};
|
|
3132
|
+
var fonts = {
|
|
3133
|
+
title: theme.fonts.playful.semiBold,
|
|
3134
|
+
description: theme.fonts.playful.regular
|
|
3135
|
+
};
|
|
3025
3136
|
return {
|
|
3137
|
+
fontSizes: fontSizes,
|
|
3026
3138
|
colors: colors,
|
|
3027
3139
|
sizes: sizes,
|
|
3028
|
-
space: space
|
|
3140
|
+
space: space,
|
|
3141
|
+
fonts: fonts
|
|
3029
3142
|
};
|
|
3030
3143
|
};
|
|
3031
3144
|
|
|
@@ -3146,6 +3259,15 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
3146
3259
|
archivedBackground: theme.colors.archivedSurface,
|
|
3147
3260
|
text: theme.colors.onDefaultGlobalSurface
|
|
3148
3261
|
};
|
|
3262
|
+
var fonts = {
|
|
3263
|
+
"default": theme.fonts.neutral.semiBold
|
|
3264
|
+
};
|
|
3265
|
+
var fontSizes = {
|
|
3266
|
+
"default": theme.fontSizes.small
|
|
3267
|
+
};
|
|
3268
|
+
var lineHeights = {
|
|
3269
|
+
"default": theme.lineHeights.small
|
|
3270
|
+
};
|
|
3149
3271
|
var space = {
|
|
3150
3272
|
horizontalPadding: theme.space.small,
|
|
3151
3273
|
verticalPadding: theme.space.xsmall
|
|
@@ -3156,8 +3278,11 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
3156
3278
|
return {
|
|
3157
3279
|
borderWidths: borderWidths,
|
|
3158
3280
|
colors: colors,
|
|
3281
|
+
fonts: fonts,
|
|
3282
|
+
fontSizes: fontSizes,
|
|
3159
3283
|
space: space,
|
|
3160
|
-
radii: radii
|
|
3284
|
+
radii: radii,
|
|
3285
|
+
lineHeights: lineHeights
|
|
3161
3286
|
};
|
|
3162
3287
|
};
|
|
3163
3288
|
|
|
@@ -3221,7 +3346,12 @@ var getTextInputTheme = function getTextInputTheme(theme) {
|
|
|
3221
3346
|
text: theme.fonts.neutral.regular
|
|
3222
3347
|
};
|
|
3223
3348
|
var fontSizes = {
|
|
3224
|
-
text: theme.fontSizes.large
|
|
3349
|
+
text: theme.fontSizes.large,
|
|
3350
|
+
labelInsideTextInput: theme.fontSizes.large,
|
|
3351
|
+
error: theme.fontSizes.small,
|
|
3352
|
+
maxLength: theme.fontSizes.small,
|
|
3353
|
+
asteriskLabel: theme.fontSizes.large,
|
|
3354
|
+
topLabel: theme.fontSizes.small
|
|
3225
3355
|
};
|
|
3226
3356
|
var borderWidths = {
|
|
3227
3357
|
container: {
|
|
@@ -3523,6 +3653,7 @@ var getTheme$1 = function getTheme() {
|
|
|
3523
3653
|
attachment: getAttachmentTheme(globalTheme),
|
|
3524
3654
|
avatar: getAvatarTheme(globalTheme),
|
|
3525
3655
|
badge: getBadgeTheme(globalTheme),
|
|
3656
|
+
bottomNavigation: getBottomNavigationTheme(globalTheme),
|
|
3526
3657
|
bottomSheet: getBottomSheetTheme(globalTheme),
|
|
3527
3658
|
button: getButtonTheme(globalTheme),
|
|
3528
3659
|
calendar: getCalendarTheme(globalTheme),
|
|
@@ -6566,7 +6697,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
|
|
|
6566
6697
|
});
|
|
6567
6698
|
});
|
|
6568
6699
|
|
|
6569
|
-
var _excluded$
|
|
6700
|
+
var _excluded$A = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
6570
6701
|
var Text = function Text(_ref) {
|
|
6571
6702
|
var children = _ref.children,
|
|
6572
6703
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -6579,7 +6710,7 @@ var Text = function Text(_ref) {
|
|
|
6579
6710
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6580
6711
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6581
6712
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6582
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6713
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
6583
6714
|
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.');
|
|
6584
6715
|
return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6585
6716
|
themeFontSize: fontSize,
|
|
@@ -6609,7 +6740,7 @@ var StyledCaption = index$a(Text$1)(function (_ref) {
|
|
|
6609
6740
|
};
|
|
6610
6741
|
});
|
|
6611
6742
|
|
|
6612
|
-
var _excluded$
|
|
6743
|
+
var _excluded$z = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
6613
6744
|
var Caption = function Caption(_ref) {
|
|
6614
6745
|
var children = _ref.children,
|
|
6615
6746
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -6618,7 +6749,7 @@ var Caption = function Caption(_ref) {
|
|
|
6618
6749
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6619
6750
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6620
6751
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6621
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6752
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
6622
6753
|
return /*#__PURE__*/React.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
6623
6754
|
themeFontWeight: fontWeight,
|
|
6624
6755
|
themeIntent: intent,
|
|
@@ -6637,14 +6768,14 @@ var StyledLabel$1 = index$a(Text$1)(function (_ref) {
|
|
|
6637
6768
|
};
|
|
6638
6769
|
});
|
|
6639
6770
|
|
|
6640
|
-
var _excluded$
|
|
6771
|
+
var _excluded$y = ["children", "intent", "allowFontScaling"];
|
|
6641
6772
|
var Label = function Label(_ref) {
|
|
6642
6773
|
var children = _ref.children,
|
|
6643
6774
|
_ref$intent = _ref.intent,
|
|
6644
6775
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6645
6776
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6646
6777
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6647
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6778
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$y);
|
|
6648
6779
|
return /*#__PURE__*/React.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
6649
6780
|
themeIntent: intent,
|
|
6650
6781
|
allowFontScaling: allowFontScaling
|
|
@@ -6665,7 +6796,7 @@ var StyledTitle$1 = index$a(Text$1)(function (_ref) {
|
|
|
6665
6796
|
};
|
|
6666
6797
|
});
|
|
6667
6798
|
|
|
6668
|
-
var _excluded$
|
|
6799
|
+
var _excluded$x = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
6669
6800
|
var Title = function Title(_ref) {
|
|
6670
6801
|
var children = _ref.children,
|
|
6671
6802
|
_ref$intent = _ref.intent,
|
|
@@ -6676,7 +6807,7 @@ var Title = function Title(_ref) {
|
|
|
6676
6807
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
6677
6808
|
_ref$typeface = _ref.typeface,
|
|
6678
6809
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6679
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6810
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$x);
|
|
6680
6811
|
return /*#__PURE__*/React.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
6681
6812
|
themeLevel: level,
|
|
6682
6813
|
themeTypeface: typeface,
|
|
@@ -6711,7 +6842,7 @@ var StyledBody = index$a(Text$1)(function (_ref) {
|
|
|
6711
6842
|
};
|
|
6712
6843
|
});
|
|
6713
6844
|
|
|
6714
|
-
var _excluded$
|
|
6845
|
+
var _excluded$w = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
6715
6846
|
var Body = function Body(_ref) {
|
|
6716
6847
|
var children = _ref.children,
|
|
6717
6848
|
_ref$intent = _ref.intent,
|
|
@@ -6722,7 +6853,7 @@ var Body = function Body(_ref) {
|
|
|
6722
6853
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6723
6854
|
_ref$variant = _ref.variant,
|
|
6724
6855
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
6725
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6856
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
6726
6857
|
return /*#__PURE__*/React.createElement(StyledBody, _extends$1({}, nativeProps, {
|
|
6727
6858
|
themeTypeface: typeface,
|
|
6728
6859
|
themeIntent: intent,
|
|
@@ -6740,7 +6871,7 @@ var Typography = {
|
|
|
6740
6871
|
};
|
|
6741
6872
|
|
|
6742
6873
|
// 🔴 DO NOT EDIT — This file is generated automatically.
|
|
6743
|
-
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'];
|
|
6874
|
+
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'];
|
|
6744
6875
|
|
|
6745
6876
|
var activate = 59000;
|
|
6746
6877
|
var adjustment = 59003;
|
|
@@ -6776,59 +6907,59 @@ var folder = 59091;
|
|
|
6776
6907
|
var globe = 59101;
|
|
6777
6908
|
var graph = 59103;
|
|
6778
6909
|
var heart = 59106;
|
|
6779
|
-
var home =
|
|
6780
|
-
var image =
|
|
6781
|
-
var instapay =
|
|
6782
|
-
var list =
|
|
6783
|
-
var loading =
|
|
6784
|
-
var location =
|
|
6785
|
-
var lock =
|
|
6786
|
-
var menu =
|
|
6787
|
-
var moneybag =
|
|
6788
|
-
var moon =
|
|
6789
|
-
var node =
|
|
6790
|
-
var paperclip =
|
|
6791
|
-
var pencil =
|
|
6792
|
-
var phone =
|
|
6793
|
-
var plane =
|
|
6794
|
-
var print =
|
|
6795
|
-
var reply =
|
|
6796
|
-
var reschedule =
|
|
6797
|
-
var rostering =
|
|
6798
|
-
var save =
|
|
6799
|
-
var schedule =
|
|
6800
|
-
var send =
|
|
6801
|
-
var speaker =
|
|
6802
|
-
var star =
|
|
6803
|
-
var stopwatch =
|
|
6804
|
-
var suitcase =
|
|
6805
|
-
var surfing =
|
|
6806
|
-
var survey =
|
|
6807
|
-
var swag =
|
|
6808
|
-
var tag =
|
|
6809
|
-
var target =
|
|
6810
|
-
var teams =
|
|
6811
|
-
var timesheet =
|
|
6812
|
-
var unlock =
|
|
6813
|
-
var user =
|
|
6814
|
-
var wallet =
|
|
6815
|
-
var warning =
|
|
6816
|
-
var add =
|
|
6817
|
-
var bold =
|
|
6818
|
-
var cancel =
|
|
6819
|
-
var checkmark =
|
|
6820
|
-
var italic =
|
|
6821
|
-
var number =
|
|
6822
|
-
var percentage =
|
|
6823
|
-
var redeem =
|
|
6824
|
-
var refresh =
|
|
6825
|
-
var remove =
|
|
6826
|
-
var restart =
|
|
6827
|
-
var strikethrough =
|
|
6828
|
-
var sync =
|
|
6829
|
-
var transfer =
|
|
6830
|
-
var unavailable =
|
|
6831
|
-
var underline =
|
|
6910
|
+
var home = 59108;
|
|
6911
|
+
var image = 59109;
|
|
6912
|
+
var instapay = 59114;
|
|
6913
|
+
var list = 59115;
|
|
6914
|
+
var loading = 59117;
|
|
6915
|
+
var location = 59119;
|
|
6916
|
+
var lock = 59120;
|
|
6917
|
+
var menu = 59124;
|
|
6918
|
+
var moneybag = 59126;
|
|
6919
|
+
var moon = 59127;
|
|
6920
|
+
var node = 59131;
|
|
6921
|
+
var paperclip = 59133;
|
|
6922
|
+
var pencil = 59135;
|
|
6923
|
+
var phone = 59136;
|
|
6924
|
+
var plane = 59139;
|
|
6925
|
+
var print = 59141;
|
|
6926
|
+
var reply = 59144;
|
|
6927
|
+
var reschedule = 59145;
|
|
6928
|
+
var rostering = 59146;
|
|
6929
|
+
var save = 59148;
|
|
6930
|
+
var schedule = 59150;
|
|
6931
|
+
var send = 59152;
|
|
6932
|
+
var speaker = 59154;
|
|
6933
|
+
var star = 59159;
|
|
6934
|
+
var stopwatch = 59161;
|
|
6935
|
+
var suitcase = 59162;
|
|
6936
|
+
var surfing = 59163;
|
|
6937
|
+
var survey = 59164;
|
|
6938
|
+
var swag = 59169;
|
|
6939
|
+
var tag = 59172;
|
|
6940
|
+
var target = 59173;
|
|
6941
|
+
var teams = 59174;
|
|
6942
|
+
var timesheet = 59175;
|
|
6943
|
+
var unlock = 59178;
|
|
6944
|
+
var user = 59179;
|
|
6945
|
+
var wallet = 59182;
|
|
6946
|
+
var warning = 59183;
|
|
6947
|
+
var add = 59189;
|
|
6948
|
+
var bold = 59214;
|
|
6949
|
+
var cancel = 59228;
|
|
6950
|
+
var checkmark = 59234;
|
|
6951
|
+
var italic = 59319;
|
|
6952
|
+
var number = 59346;
|
|
6953
|
+
var percentage = 59351;
|
|
6954
|
+
var redeem = 59361;
|
|
6955
|
+
var refresh = 59362;
|
|
6956
|
+
var remove = 59363;
|
|
6957
|
+
var restart = 59365;
|
|
6958
|
+
var strikethrough = 59391;
|
|
6959
|
+
var sync = 59397;
|
|
6960
|
+
var transfer = 59405;
|
|
6961
|
+
var unavailable = 59409;
|
|
6962
|
+
var underline = 59410;
|
|
6832
6963
|
var glyphMap = {
|
|
6833
6964
|
activate: activate,
|
|
6834
6965
|
"add-emoji": 59001,
|
|
@@ -6937,312 +7068,321 @@ var glyphMap = {
|
|
|
6937
7068
|
"happy-sun": 59104,
|
|
6938
7069
|
"health-bag": 59105,
|
|
6939
7070
|
heart: heart,
|
|
7071
|
+
"hero-points": 59107,
|
|
6940
7072
|
home: home,
|
|
6941
7073
|
image: image,
|
|
6942
|
-
"import":
|
|
6943
|
-
"incident-siren":
|
|
7074
|
+
"import": 59110,
|
|
7075
|
+
"incident-siren": 59111,
|
|
7076
|
+
"instapay-daily": 59112,
|
|
7077
|
+
"instapay-now": 59113,
|
|
6944
7078
|
instapay: instapay,
|
|
6945
7079
|
list: list,
|
|
6946
|
-
"loading-2":
|
|
7080
|
+
"loading-2": 59116,
|
|
6947
7081
|
loading: loading,
|
|
6948
|
-
"location-on":
|
|
7082
|
+
"location-on": 59118,
|
|
6949
7083
|
location: location,
|
|
6950
7084
|
lock: lock,
|
|
6951
|
-
"looks-one":
|
|
6952
|
-
"looks-two":
|
|
6953
|
-
"media-content":
|
|
7085
|
+
"looks-one": 59121,
|
|
7086
|
+
"looks-two": 59122,
|
|
7087
|
+
"media-content": 59123,
|
|
6954
7088
|
menu: menu,
|
|
6955
|
-
"money-notes":
|
|
7089
|
+
"money-notes": 59125,
|
|
6956
7090
|
moneybag: moneybag,
|
|
6957
7091
|
moon: moon,
|
|
6958
|
-
"multiple-stars":
|
|
6959
|
-
"multiple-users":
|
|
6960
|
-
"near-me":
|
|
7092
|
+
"multiple-stars": 59128,
|
|
7093
|
+
"multiple-users": 59129,
|
|
7094
|
+
"near-me": 59130,
|
|
6961
7095
|
node: node,
|
|
6962
|
-
"open-folder":
|
|
7096
|
+
"open-folder": 59132,
|
|
6963
7097
|
paperclip: paperclip,
|
|
6964
|
-
"payment-summary":
|
|
7098
|
+
"payment-summary": 59134,
|
|
6965
7099
|
pencil: pencil,
|
|
6966
7100
|
phone: phone,
|
|
6967
|
-
"piggy-bank":
|
|
6968
|
-
"plane-up":
|
|
7101
|
+
"piggy-bank": 59137,
|
|
7102
|
+
"plane-up": 59138,
|
|
6969
7103
|
plane: plane,
|
|
6970
|
-
"play-circle":
|
|
7104
|
+
"play-circle": 59140,
|
|
6971
7105
|
print: print,
|
|
6972
|
-
"raising-hands":
|
|
6973
|
-
"reply-arrow":
|
|
7106
|
+
"raising-hands": 59142,
|
|
7107
|
+
"reply-arrow": 59143,
|
|
6974
7108
|
reply: reply,
|
|
6975
7109
|
reschedule: reschedule,
|
|
6976
7110
|
rostering: rostering,
|
|
7111
|
+
"salary-sacrifice": 59147,
|
|
6977
7112
|
save: save,
|
|
6978
|
-
"schedule-send":
|
|
7113
|
+
"schedule-send": 59149,
|
|
6979
7114
|
schedule: schedule,
|
|
6980
|
-
"search-person":
|
|
7115
|
+
"search-person": 59151,
|
|
6981
7116
|
send: send,
|
|
6982
|
-
"speaker-active":
|
|
7117
|
+
"speaker-active": 59153,
|
|
6983
7118
|
speaker: speaker,
|
|
6984
|
-
"star-award":
|
|
6985
|
-
"star-badge":
|
|
6986
|
-
"star-circle":
|
|
6987
|
-
"star-medal":
|
|
7119
|
+
"star-award": 59155,
|
|
7120
|
+
"star-badge": 59156,
|
|
7121
|
+
"star-circle": 59157,
|
|
7122
|
+
"star-medal": 59158,
|
|
6988
7123
|
star: star,
|
|
6989
|
-
"steps-circle":
|
|
7124
|
+
"steps-circle": 59160,
|
|
6990
7125
|
stopwatch: stopwatch,
|
|
6991
7126
|
suitcase: suitcase,
|
|
6992
7127
|
surfing: surfing,
|
|
6993
7128
|
survey: survey,
|
|
6994
|
-
"swag-pillar-benefit":
|
|
6995
|
-
"swag-pillar-career":
|
|
6996
|
-
"swag-pillar-money":
|
|
6997
|
-
"swag-pillar-work":
|
|
7129
|
+
"swag-pillar-benefit": 59165,
|
|
7130
|
+
"swag-pillar-career": 59166,
|
|
7131
|
+
"swag-pillar-money": 59167,
|
|
7132
|
+
"swag-pillar-work": 59168,
|
|
6998
7133
|
swag: swag,
|
|
6999
|
-
"swipe-right":
|
|
7000
|
-
"switch":
|
|
7134
|
+
"swipe-right": 59170,
|
|
7135
|
+
"switch": 59171,
|
|
7001
7136
|
tag: tag,
|
|
7002
7137
|
target: target,
|
|
7003
7138
|
teams: teams,
|
|
7004
7139
|
timesheet: timesheet,
|
|
7005
|
-
"touch-id":
|
|
7006
|
-
"trash-bin":
|
|
7140
|
+
"touch-id": 59176,
|
|
7141
|
+
"trash-bin": 59177,
|
|
7007
7142
|
unlock: unlock,
|
|
7008
7143
|
user: user,
|
|
7009
|
-
"video-1":
|
|
7010
|
-
"video-2":
|
|
7144
|
+
"video-1": 59180,
|
|
7145
|
+
"video-2": 59181,
|
|
7011
7146
|
wallet: wallet,
|
|
7012
7147
|
warning: warning,
|
|
7013
|
-
"activate-outlined":
|
|
7014
|
-
"add-credit-card-outlined":
|
|
7015
|
-
"add-person-outlined":
|
|
7016
|
-
"add-section-outlined":
|
|
7017
|
-
"add-time-outlined":
|
|
7148
|
+
"activate-outlined": 59184,
|
|
7149
|
+
"add-credit-card-outlined": 59185,
|
|
7150
|
+
"add-person-outlined": 59186,
|
|
7151
|
+
"add-section-outlined": 59187,
|
|
7152
|
+
"add-time-outlined": 59188,
|
|
7018
7153
|
add: add,
|
|
7019
|
-
"adjustment-outlined":
|
|
7020
|
-
"ai-outlined":
|
|
7021
|
-
"alignment-2-outlined":
|
|
7022
|
-
"alignment-outlined":
|
|
7023
|
-
"all-caps":
|
|
7024
|
-
"application-outlined":
|
|
7025
|
-
"arrow-down":
|
|
7026
|
-
"arrow-downwards":
|
|
7027
|
-
"arrow-left":
|
|
7028
|
-
"arrow-leftwards":
|
|
7029
|
-
"arrow-right":
|
|
7030
|
-
"arrow-rightwards":
|
|
7031
|
-
"arrow-up":
|
|
7032
|
-
"arrow-upwards":
|
|
7033
|
-
"article-outlined":
|
|
7034
|
-
"at-sign":
|
|
7035
|
-
"auto-graph-outlined":
|
|
7036
|
-
"beer-outlined":
|
|
7037
|
-
"bell-active-outlined":
|
|
7038
|
-
"bell-outlined":
|
|
7039
|
-
"bell-slash-outlined":
|
|
7040
|
-
"
|
|
7041
|
-
"
|
|
7154
|
+
"adjustment-outlined": 59190,
|
|
7155
|
+
"ai-outlined": 59191,
|
|
7156
|
+
"alignment-2-outlined": 59192,
|
|
7157
|
+
"alignment-outlined": 59193,
|
|
7158
|
+
"all-caps": 59194,
|
|
7159
|
+
"application-outlined": 59195,
|
|
7160
|
+
"arrow-down": 59196,
|
|
7161
|
+
"arrow-downwards": 59197,
|
|
7162
|
+
"arrow-left": 59198,
|
|
7163
|
+
"arrow-leftwards": 59199,
|
|
7164
|
+
"arrow-right": 59200,
|
|
7165
|
+
"arrow-rightwards": 59201,
|
|
7166
|
+
"arrow-up": 59202,
|
|
7167
|
+
"arrow-upwards": 59203,
|
|
7168
|
+
"article-outlined": 59204,
|
|
7169
|
+
"at-sign": 59205,
|
|
7170
|
+
"auto-graph-outlined": 59206,
|
|
7171
|
+
"beer-outlined": 59207,
|
|
7172
|
+
"bell-active-outlined": 59208,
|
|
7173
|
+
"bell-outlined": 59209,
|
|
7174
|
+
"bell-slash-outlined": 59210,
|
|
7175
|
+
"bill-management-outlined": 59211,
|
|
7176
|
+
"billing-outlined": 59212,
|
|
7177
|
+
"body-outlined": 59213,
|
|
7042
7178
|
bold: bold,
|
|
7043
|
-
"bolt-outlined":
|
|
7044
|
-
"book-outlined":
|
|
7045
|
-
"bookmark-added-outlined":
|
|
7046
|
-
"bookmark-outlined":
|
|
7047
|
-
"box-check-outlined":
|
|
7048
|
-
"box-outlined":
|
|
7049
|
-
"bullet-points":
|
|
7050
|
-
"cake-outlined":
|
|
7051
|
-
"calendar-dates-outlined":
|
|
7052
|
-
"calendar-star-outlined":
|
|
7053
|
-
"call-outlined":
|
|
7054
|
-
"call-split-outlined":
|
|
7055
|
-
"camera-outlined":
|
|
7179
|
+
"bolt-outlined": 59215,
|
|
7180
|
+
"book-outlined": 59216,
|
|
7181
|
+
"bookmark-added-outlined": 59217,
|
|
7182
|
+
"bookmark-outlined": 59218,
|
|
7183
|
+
"box-check-outlined": 59219,
|
|
7184
|
+
"box-outlined": 59220,
|
|
7185
|
+
"bullet-points": 59221,
|
|
7186
|
+
"cake-outlined": 59222,
|
|
7187
|
+
"calendar-dates-outlined": 59223,
|
|
7188
|
+
"calendar-star-outlined": 59224,
|
|
7189
|
+
"call-outlined": 59225,
|
|
7190
|
+
"call-split-outlined": 59226,
|
|
7191
|
+
"camera-outlined": 59227,
|
|
7056
7192
|
cancel: cancel,
|
|
7057
|
-
"car-forward-outlined":
|
|
7058
|
-
"
|
|
7059
|
-
"
|
|
7060
|
-
"chat-
|
|
7193
|
+
"car-forward-outlined": 59229,
|
|
7194
|
+
"cashback-outlined": 59230,
|
|
7195
|
+
"charging-station-outlined": 59231,
|
|
7196
|
+
"chat-bubble-outlined": 59232,
|
|
7197
|
+
"chat-unread-outlined": 59233,
|
|
7061
7198
|
checkmark: checkmark,
|
|
7062
|
-
"circle-add-outlined":
|
|
7063
|
-
"circle-cancel-outlined":
|
|
7064
|
-
"circle-down-outlined":
|
|
7065
|
-
"circle-info-outlined":
|
|
7066
|
-
"circle-left-outlined":
|
|
7067
|
-
"circle-ok-outlined":
|
|
7068
|
-
"circle-question-outlined":
|
|
7069
|
-
"circle-remove-outlined":
|
|
7070
|
-
"circle-right-outlined":
|
|
7071
|
-
"circle-up-outlined":
|
|
7072
|
-
"circle-warning-outlined":
|
|
7073
|
-
"clock-2-outlined":
|
|
7074
|
-
"clock-outlined":
|
|
7075
|
-
"cog-outlined":
|
|
7076
|
-
"coin-outlined":
|
|
7077
|
-
"coin-super-outlined":
|
|
7078
|
-
"comment-outlined":
|
|
7079
|
-
"contacts-outlined":
|
|
7080
|
-
"contacts-user-outlined":
|
|
7081
|
-
"credit-card-outlined":
|
|
7082
|
-
"cup-outlined":
|
|
7083
|
-
"dentistry-outlined":
|
|
7084
|
-
"direction-arrows-outlined":
|
|
7085
|
-
"directory-outlined":
|
|
7086
|
-
"document-outlined":
|
|
7087
|
-
"dollar-box-outlined":
|
|
7088
|
-
"dollar-card-outlined":
|
|
7089
|
-
"dollar-coin-shine-outlined":
|
|
7090
|
-
"dollar-credit-card-outlined":
|
|
7091
|
-
"dollar-sign":
|
|
7092
|
-
"double-buildings-outlined":
|
|
7093
|
-
"double-left-arrows":
|
|
7094
|
-
"double-right-arrows":
|
|
7095
|
-
"download-box-outlined":
|
|
7096
|
-
"download-outlined":
|
|
7097
|
-
"edit-template-outlined":
|
|
7098
|
-
"email-outlined":
|
|
7099
|
-
"enter-arrow":
|
|
7100
|
-
"envelope-outlined":
|
|
7101
|
-
"expense-approval-outlined":
|
|
7102
|
-
"expense-outlined":
|
|
7103
|
-
"explore-outlined":
|
|
7104
|
-
"extension-outlined":
|
|
7105
|
-
"external-link":
|
|
7106
|
-
"eye-invisible-outlined":
|
|
7107
|
-
"eye-outlined":
|
|
7108
|
-
"face-id":
|
|
7109
|
-
"face-meh-outlined":
|
|
7110
|
-
"face-open-smiley-outlined":
|
|
7111
|
-
"face-sad-outlined":
|
|
7112
|
-
"face-smiley-outlined":
|
|
7113
|
-
"fastfood-outlined":
|
|
7114
|
-
"feed-outlined":
|
|
7115
|
-
"file-certified-outlined":
|
|
7116
|
-
"file-clone-outlined":
|
|
7117
|
-
"file-copy-outlined":
|
|
7118
|
-
"file-dispose-outlined":
|
|
7119
|
-
"file-dollar-certified-outlined":
|
|
7120
|
-
"file-dollar-outlined":
|
|
7121
|
-
"file-download-outlined":
|
|
7122
|
-
"file-export-outlined":
|
|
7123
|
-
"file-lock-outlined":
|
|
7124
|
-
"file-outlined":
|
|
7125
|
-
"file-search-outlined":
|
|
7126
|
-
"file-secured-outlined":
|
|
7127
|
-
"file-statutory-outlined":
|
|
7128
|
-
"file-verified-outlined":
|
|
7129
|
-
"filter-outlined":
|
|
7130
|
-
"folder-outlined":
|
|
7131
|
-
"folder-user-outlined":
|
|
7132
|
-
"form-outlined":
|
|
7133
|
-
"funnel-filter-outline":
|
|
7134
|
-
"goal-outlined":
|
|
7135
|
-
"graph-outlined":
|
|
7136
|
-
"hand-holding-user-outlined":
|
|
7137
|
-
"happy-sun-outlined":
|
|
7138
|
-
"health-bag-outlined":
|
|
7139
|
-
"heart-outlined":
|
|
7140
|
-
"home-active-outlined":
|
|
7141
|
-
"home-outlined":
|
|
7142
|
-
"id-card-outlined":
|
|
7143
|
-
"image-outlined":
|
|
7144
|
-
"import-outlined":
|
|
7145
|
-
"instapay-outlined":
|
|
7199
|
+
"circle-add-outlined": 59235,
|
|
7200
|
+
"circle-cancel-outlined": 59236,
|
|
7201
|
+
"circle-down-outlined": 59237,
|
|
7202
|
+
"circle-info-outlined": 59238,
|
|
7203
|
+
"circle-left-outlined": 59239,
|
|
7204
|
+
"circle-ok-outlined": 59240,
|
|
7205
|
+
"circle-question-outlined": 59241,
|
|
7206
|
+
"circle-remove-outlined": 59242,
|
|
7207
|
+
"circle-right-outlined": 59243,
|
|
7208
|
+
"circle-up-outlined": 59244,
|
|
7209
|
+
"circle-warning-outlined": 59245,
|
|
7210
|
+
"clock-2-outlined": 59246,
|
|
7211
|
+
"clock-outlined": 59247,
|
|
7212
|
+
"cog-outlined": 59248,
|
|
7213
|
+
"coin-outlined": 59249,
|
|
7214
|
+
"coin-super-outlined": 59250,
|
|
7215
|
+
"comment-outlined": 59251,
|
|
7216
|
+
"contacts-outlined": 59252,
|
|
7217
|
+
"contacts-user-outlined": 59253,
|
|
7218
|
+
"credit-card-outlined": 59254,
|
|
7219
|
+
"cup-outlined": 59255,
|
|
7220
|
+
"dentistry-outlined": 59256,
|
|
7221
|
+
"direction-arrows-outlined": 59257,
|
|
7222
|
+
"directory-outlined": 59258,
|
|
7223
|
+
"document-outlined": 59259,
|
|
7224
|
+
"dollar-box-outlined": 59260,
|
|
7225
|
+
"dollar-card-outlined": 59261,
|
|
7226
|
+
"dollar-coin-shine-outlined": 59262,
|
|
7227
|
+
"dollar-credit-card-outlined": 59263,
|
|
7228
|
+
"dollar-sign": 59264,
|
|
7229
|
+
"double-buildings-outlined": 59265,
|
|
7230
|
+
"double-left-arrows": 59266,
|
|
7231
|
+
"double-right-arrows": 59267,
|
|
7232
|
+
"download-box-outlined": 59268,
|
|
7233
|
+
"download-outlined": 59269,
|
|
7234
|
+
"edit-template-outlined": 59270,
|
|
7235
|
+
"email-outlined": 59271,
|
|
7236
|
+
"enter-arrow": 59272,
|
|
7237
|
+
"envelope-outlined": 59273,
|
|
7238
|
+
"expense-approval-outlined": 59274,
|
|
7239
|
+
"expense-outlined": 59275,
|
|
7240
|
+
"explore-outlined": 59276,
|
|
7241
|
+
"extension-outlined": 59277,
|
|
7242
|
+
"external-link": 59278,
|
|
7243
|
+
"eye-invisible-outlined": 59279,
|
|
7244
|
+
"eye-outlined": 59280,
|
|
7245
|
+
"face-id": 59281,
|
|
7246
|
+
"face-meh-outlined": 59282,
|
|
7247
|
+
"face-open-smiley-outlined": 59283,
|
|
7248
|
+
"face-sad-outlined": 59284,
|
|
7249
|
+
"face-smiley-outlined": 59285,
|
|
7250
|
+
"fastfood-outlined": 59286,
|
|
7251
|
+
"feed-outlined": 59287,
|
|
7252
|
+
"file-certified-outlined": 59288,
|
|
7253
|
+
"file-clone-outlined": 59289,
|
|
7254
|
+
"file-copy-outlined": 59290,
|
|
7255
|
+
"file-dispose-outlined": 59291,
|
|
7256
|
+
"file-dollar-certified-outlined": 59292,
|
|
7257
|
+
"file-dollar-outlined": 59293,
|
|
7258
|
+
"file-download-outlined": 59294,
|
|
7259
|
+
"file-export-outlined": 59295,
|
|
7260
|
+
"file-lock-outlined": 59296,
|
|
7261
|
+
"file-outlined": 59297,
|
|
7262
|
+
"file-search-outlined": 59298,
|
|
7263
|
+
"file-secured-outlined": 59299,
|
|
7264
|
+
"file-statutory-outlined": 59300,
|
|
7265
|
+
"file-verified-outlined": 59301,
|
|
7266
|
+
"filter-outlined": 59302,
|
|
7267
|
+
"folder-outlined": 59303,
|
|
7268
|
+
"folder-user-outlined": 59304,
|
|
7269
|
+
"form-outlined": 59305,
|
|
7270
|
+
"funnel-filter-outline": 59306,
|
|
7271
|
+
"goal-outlined": 59307,
|
|
7272
|
+
"graph-outlined": 59308,
|
|
7273
|
+
"hand-holding-user-outlined": 59309,
|
|
7274
|
+
"happy-sun-outlined": 59310,
|
|
7275
|
+
"health-bag-outlined": 59311,
|
|
7276
|
+
"heart-outlined": 59312,
|
|
7277
|
+
"home-active-outlined": 59313,
|
|
7278
|
+
"home-outlined": 59314,
|
|
7279
|
+
"id-card-outlined": 59315,
|
|
7280
|
+
"image-outlined": 59316,
|
|
7281
|
+
"import-outlined": 59317,
|
|
7282
|
+
"instapay-outlined": 59318,
|
|
7146
7283
|
italic: italic,
|
|
7147
|
-
"job-search-outlined":
|
|
7148
|
-
"leave-approval-outlined":
|
|
7149
|
-
"link-1":
|
|
7150
|
-
"link-2":
|
|
7151
|
-
"list-outlined":
|
|
7152
|
-
"live-help-outlined":
|
|
7153
|
-
"location-on-outlined":
|
|
7154
|
-
"location-outlined":
|
|
7155
|
-
"lock-outlined":
|
|
7156
|
-
"locked-file-outlined":
|
|
7157
|
-
"log-out":
|
|
7158
|
-
"mail-outlined":
|
|
7159
|
-
"media-content-outlined":
|
|
7160
|
-
"menu-close":
|
|
7161
|
-
"menu-expand":
|
|
7162
|
-
"menu-fold-outlined":
|
|
7163
|
-
"menu-unfold-outlined":
|
|
7164
|
-
"moneybag-outlined":
|
|
7165
|
-
"moon-outlined":
|
|
7166
|
-
"more-horizontal":
|
|
7167
|
-
"more-vertical":
|
|
7168
|
-
"multiple-folders-outlined":
|
|
7169
|
-
"multiple-users-outlined":
|
|
7170
|
-
"near-me-outlined":
|
|
7171
|
-
"node-outlined":
|
|
7172
|
-
"number-points":
|
|
7284
|
+
"job-search-outlined": 59320,
|
|
7285
|
+
"leave-approval-outlined": 59321,
|
|
7286
|
+
"link-1": 59322,
|
|
7287
|
+
"link-2": 59323,
|
|
7288
|
+
"list-outlined": 59324,
|
|
7289
|
+
"live-help-outlined": 59325,
|
|
7290
|
+
"location-on-outlined": 59326,
|
|
7291
|
+
"location-outlined": 59327,
|
|
7292
|
+
"lock-outlined": 59328,
|
|
7293
|
+
"locked-file-outlined": 59329,
|
|
7294
|
+
"log-out": 59330,
|
|
7295
|
+
"mail-outlined": 59331,
|
|
7296
|
+
"media-content-outlined": 59332,
|
|
7297
|
+
"menu-close": 59333,
|
|
7298
|
+
"menu-expand": 59334,
|
|
7299
|
+
"menu-fold-outlined": 59335,
|
|
7300
|
+
"menu-unfold-outlined": 59336,
|
|
7301
|
+
"moneybag-outlined": 59337,
|
|
7302
|
+
"moon-outlined": 59338,
|
|
7303
|
+
"more-horizontal": 59339,
|
|
7304
|
+
"more-vertical": 59340,
|
|
7305
|
+
"multiple-folders-outlined": 59341,
|
|
7306
|
+
"multiple-users-outlined": 59342,
|
|
7307
|
+
"near-me-outlined": 59343,
|
|
7308
|
+
"node-outlined": 59344,
|
|
7309
|
+
"number-points": 59345,
|
|
7173
7310
|
number: number,
|
|
7174
|
-
"overview-outlined":
|
|
7175
|
-
"payment-summary-outlined":
|
|
7176
|
-
"payslip-outlined":
|
|
7177
|
-
"pencil-outlined":
|
|
7311
|
+
"overview-outlined": 59347,
|
|
7312
|
+
"payment-summary-outlined": 59348,
|
|
7313
|
+
"payslip-outlined": 59349,
|
|
7314
|
+
"pencil-outlined": 59350,
|
|
7178
7315
|
percentage: percentage,
|
|
7179
|
-
"phone-outlined":
|
|
7180
|
-
"piggy-bank-outlined":
|
|
7181
|
-
"plane-outlined":
|
|
7182
|
-
"play-circle-outlined":
|
|
7183
|
-
"print-outlined":
|
|
7184
|
-
"propane-tank-outlined":
|
|
7185
|
-
"qr-code-outlined":
|
|
7186
|
-
"qualification-outlined":
|
|
7187
|
-
"re-assign":
|
|
7316
|
+
"phone-outlined": 59352,
|
|
7317
|
+
"piggy-bank-outlined": 59353,
|
|
7318
|
+
"plane-outlined": 59354,
|
|
7319
|
+
"play-circle-outlined": 59355,
|
|
7320
|
+
"print-outlined": 59356,
|
|
7321
|
+
"propane-tank-outlined": 59357,
|
|
7322
|
+
"qr-code-outlined": 59358,
|
|
7323
|
+
"qualification-outlined": 59359,
|
|
7324
|
+
"re-assign": 59360,
|
|
7188
7325
|
redeem: redeem,
|
|
7189
7326
|
refresh: refresh,
|
|
7190
7327
|
remove: remove,
|
|
7191
|
-
"reply-outlined":
|
|
7328
|
+
"reply-outlined": 59364,
|
|
7192
7329
|
restart: restart,
|
|
7193
|
-
"resume-outlined":
|
|
7194
|
-
"return-arrow":
|
|
7195
|
-
"rostering-outlined":
|
|
7196
|
-
"
|
|
7197
|
-
"
|
|
7198
|
-
"
|
|
7199
|
-
"search-
|
|
7200
|
-
"
|
|
7201
|
-
"
|
|
7202
|
-
"share-
|
|
7203
|
-
"share-
|
|
7204
|
-
"
|
|
7205
|
-
"
|
|
7206
|
-
"single-
|
|
7207
|
-
"single-
|
|
7208
|
-
"single-
|
|
7209
|
-
"
|
|
7210
|
-
"
|
|
7211
|
-
"
|
|
7212
|
-
"speaker-outlined":
|
|
7213
|
-
"
|
|
7214
|
-
"star-outlined":
|
|
7215
|
-
"
|
|
7330
|
+
"resume-outlined": 59366,
|
|
7331
|
+
"return-arrow": 59367,
|
|
7332
|
+
"rostering-outlined": 59368,
|
|
7333
|
+
"safety-outlined": 59369,
|
|
7334
|
+
"save-outlined": 59370,
|
|
7335
|
+
"schedule-outlined": 59371,
|
|
7336
|
+
"search-outlined": 59372,
|
|
7337
|
+
"search-secured-outlined": 59373,
|
|
7338
|
+
"send-outlined": 59374,
|
|
7339
|
+
"share-1": 59375,
|
|
7340
|
+
"share-2": 59376,
|
|
7341
|
+
"share-outlined": 59377,
|
|
7342
|
+
"show-chart-outlined": 59378,
|
|
7343
|
+
"single-down-arrow": 59379,
|
|
7344
|
+
"single-left-arrow": 59380,
|
|
7345
|
+
"single-right-arrow": 59381,
|
|
7346
|
+
"single-up-arrow": 59382,
|
|
7347
|
+
"smart-match-outlined": 59383,
|
|
7348
|
+
"sparkle-outlined": 59384,
|
|
7349
|
+
"speaker-active-outlined": 59385,
|
|
7350
|
+
"speaker-outlined": 59386,
|
|
7351
|
+
"star-circle-outlined": 59387,
|
|
7352
|
+
"star-outlined": 59388,
|
|
7353
|
+
"stash-outlined": 59389,
|
|
7354
|
+
"stopwatch-outlined": 59390,
|
|
7216
7355
|
strikethrough: strikethrough,
|
|
7217
|
-
"styler-outlined":
|
|
7218
|
-
"suitcase-clock-outlined":
|
|
7219
|
-
"suitcase-outlined":
|
|
7220
|
-
"survey-outlined":
|
|
7221
|
-
"switch-outlined":
|
|
7356
|
+
"styler-outlined": 59392,
|
|
7357
|
+
"suitcase-clock-outlined": 59393,
|
|
7358
|
+
"suitcase-outlined": 59394,
|
|
7359
|
+
"survey-outlined": 59395,
|
|
7360
|
+
"switch-outlined": 59396,
|
|
7222
7361
|
sync: sync,
|
|
7223
|
-
"tag-outlined":
|
|
7224
|
-
"target-outlined":
|
|
7225
|
-
"tennis-outlined":
|
|
7226
|
-
"ticket-outlined":
|
|
7227
|
-
"timesheet-outlined":
|
|
7228
|
-
"timesheets-outlined":
|
|
7229
|
-
"today-outlined":
|
|
7362
|
+
"tag-outlined": 59398,
|
|
7363
|
+
"target-outlined": 59399,
|
|
7364
|
+
"tennis-outlined": 59400,
|
|
7365
|
+
"ticket-outlined": 59401,
|
|
7366
|
+
"timesheet-outlined": 59402,
|
|
7367
|
+
"timesheets-outlined": 59403,
|
|
7368
|
+
"today-outlined": 59404,
|
|
7230
7369
|
transfer: transfer,
|
|
7231
|
-
"trash-bin-outlined":
|
|
7232
|
-
"umbrela-outlined":
|
|
7370
|
+
"trash-bin-outlined": 59406,
|
|
7371
|
+
"umbrela-outlined": 59407,
|
|
7372
|
+
"unavailability-outlined": 59408,
|
|
7233
7373
|
unavailable: unavailable,
|
|
7234
7374
|
underline: underline,
|
|
7235
|
-
"union-outlined":
|
|
7236
|
-
"unlock-outlined":
|
|
7237
|
-
"upload-outlined":
|
|
7238
|
-
"user-circle-outlined":
|
|
7239
|
-
"user-gear-outlined":
|
|
7240
|
-
"user-outlined":
|
|
7241
|
-
"user-rectangle-outlined":
|
|
7242
|
-
"video-1-outlined":
|
|
7243
|
-
"video-2-outlined":
|
|
7244
|
-
"volunteer-outlined":
|
|
7245
|
-
"wallet-outlined":
|
|
7375
|
+
"union-outlined": 59411,
|
|
7376
|
+
"unlock-outlined": 59412,
|
|
7377
|
+
"upload-outlined": 59413,
|
|
7378
|
+
"user-circle-outlined": 59414,
|
|
7379
|
+
"user-gear-outlined": 59415,
|
|
7380
|
+
"user-outlined": 59416,
|
|
7381
|
+
"user-rectangle-outlined": 59417,
|
|
7382
|
+
"video-1-outlined": 59418,
|
|
7383
|
+
"video-2-outlined": 59419,
|
|
7384
|
+
"volunteer-outlined": 59420,
|
|
7385
|
+
"wallet-outlined": 59421
|
|
7246
7386
|
};
|
|
7247
7387
|
|
|
7248
7388
|
var HeroIcon = createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -7267,10 +7407,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
7267
7407
|
};
|
|
7268
7408
|
});
|
|
7269
7409
|
|
|
7270
|
-
var _excluded$
|
|
7410
|
+
var _excluded$v = ["style"];
|
|
7271
7411
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
7272
7412
|
var style = _ref.style,
|
|
7273
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7413
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
7274
7414
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
7275
7415
|
useEffect(function () {
|
|
7276
7416
|
var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
|
|
@@ -7375,7 +7515,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7375
7515
|
}, content));
|
|
7376
7516
|
};
|
|
7377
7517
|
|
|
7378
|
-
var _excluded$
|
|
7518
|
+
var _excluded$u = ["key"];
|
|
7379
7519
|
var Accordion = function Accordion(_ref) {
|
|
7380
7520
|
var items = _ref.items,
|
|
7381
7521
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -7396,7 +7536,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
7396
7536
|
testID: testID
|
|
7397
7537
|
}, items.map(function (_ref2, index) {
|
|
7398
7538
|
var key = _ref2.key,
|
|
7399
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7539
|
+
props = _objectWithoutProperties(_ref2, _excluded$u);
|
|
7400
7540
|
var open = _activeItemKey === key;
|
|
7401
7541
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
7402
7542
|
key: key
|
|
@@ -7674,7 +7814,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
7674
7814
|
}));
|
|
7675
7815
|
};
|
|
7676
7816
|
|
|
7677
|
-
Platform.OS === 'ios';
|
|
7817
|
+
var isIOS = Platform.OS === 'ios';
|
|
7678
7818
|
var isAndroid = Platform.OS === 'android';
|
|
7679
7819
|
function pick(keys, obj) {
|
|
7680
7820
|
return keys.filter(function (key) {
|
|
@@ -7866,7 +8006,7 @@ var borderWidths = {
|
|
|
7866
8006
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
7867
8007
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
7868
8008
|
|
|
7869
|
-
var _excluded$
|
|
8009
|
+
var _excluded$t = ["theme"];
|
|
7870
8010
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
7871
8011
|
var propConfig = config[key];
|
|
7872
8012
|
var propValue = props[key];
|
|
@@ -7893,18 +8033,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
7893
8033
|
var configKeys = Object.keys(config);
|
|
7894
8034
|
var StyledBox = index$a(View)(function (_ref5) {
|
|
7895
8035
|
var theme = _ref5.theme,
|
|
7896
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
8036
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$t);
|
|
7897
8037
|
var styleProps = pick(configKeys, otherProps);
|
|
7898
8038
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
7899
8039
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
7900
8040
|
});
|
|
7901
8041
|
|
|
7902
|
-
var _excluded$
|
|
8042
|
+
var _excluded$s = ["children", "style", "testID"];
|
|
7903
8043
|
var Box = function Box(_ref) {
|
|
7904
8044
|
var children = _ref.children,
|
|
7905
8045
|
style = _ref.style,
|
|
7906
8046
|
testID = _ref.testID,
|
|
7907
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8047
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
7908
8048
|
return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
7909
8049
|
style: style,
|
|
7910
8050
|
testID: testID
|
|
@@ -8118,7 +8258,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
|
|
|
8118
8258
|
};
|
|
8119
8259
|
});
|
|
8120
8260
|
|
|
8121
|
-
var _excluded$
|
|
8261
|
+
var _excluded$r = ["children", "visible", "intent", "style", "testID"];
|
|
8122
8262
|
var Status = function Status(_ref) {
|
|
8123
8263
|
var children = _ref.children,
|
|
8124
8264
|
_ref$visible = _ref.visible,
|
|
@@ -8127,7 +8267,7 @@ var Status = function Status(_ref) {
|
|
|
8127
8267
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
8128
8268
|
style = _ref.style,
|
|
8129
8269
|
testID = _ref.testID,
|
|
8130
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8270
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
8131
8271
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8132
8272
|
opacity = _React$useRef.current;
|
|
8133
8273
|
var isFirstRendering = React.useRef(true);
|
|
@@ -8160,7 +8300,7 @@ var Status = function Status(_ref) {
|
|
|
8160
8300
|
}));
|
|
8161
8301
|
};
|
|
8162
8302
|
|
|
8163
|
-
var _excluded$
|
|
8303
|
+
var _excluded$q = ["content", "visible", "max", "intent", "style", "testID"];
|
|
8164
8304
|
var DEFAULT_MAX_NUMBER = 99;
|
|
8165
8305
|
var getPaddingState = function getPaddingState(content) {
|
|
8166
8306
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -8175,7 +8315,7 @@ var Badge = function Badge(_ref) {
|
|
|
8175
8315
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
8176
8316
|
style = _ref.style,
|
|
8177
8317
|
testID = _ref.testID,
|
|
8178
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8318
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
8179
8319
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8180
8320
|
opacity = _React$useRef.current;
|
|
8181
8321
|
var isFirstRendering = React.useRef(true);
|
|
@@ -8211,6 +8351,136 @@ var Badge$1 = Object.assign(Badge, {
|
|
|
8211
8351
|
Status: Status
|
|
8212
8352
|
});
|
|
8213
8353
|
|
|
8354
|
+
var isHeroIcon = function isHeroIcon(x) {
|
|
8355
|
+
return IconList.includes(x);
|
|
8356
|
+
};
|
|
8357
|
+
|
|
8358
|
+
var BottomNavigationTab = index$a(View)(function (_ref) {
|
|
8359
|
+
var themeVisibility = _ref.themeVisibility;
|
|
8360
|
+
return {
|
|
8361
|
+
flex: 1,
|
|
8362
|
+
display: themeVisibility === false ? 'none' : 'flex'
|
|
8363
|
+
};
|
|
8364
|
+
});
|
|
8365
|
+
var BottomNavigationContainer = index$a(View)({
|
|
8366
|
+
flex: 1,
|
|
8367
|
+
overflow: 'hidden'
|
|
8368
|
+
});
|
|
8369
|
+
var ContentWrapper$2 = index$a(View)({
|
|
8370
|
+
flex: 1
|
|
8371
|
+
});
|
|
8372
|
+
var BottomBarWrapper = index$a(View)(function (_ref2) {
|
|
8373
|
+
var themeInsets = _ref2.themeInsets,
|
|
8374
|
+
theme = _ref2.theme;
|
|
8375
|
+
return {
|
|
8376
|
+
height: theme.__hd__.bottomNavigation.sizes.height + themeInsets.bottom,
|
|
8377
|
+
paddingBottom: themeInsets.bottom,
|
|
8378
|
+
paddingLeft: Math.max(themeInsets.left, themeInsets.right),
|
|
8379
|
+
paddingRight: Math.max(themeInsets.left, themeInsets.right),
|
|
8380
|
+
backgroundColor: theme.__hd__.bottomNavigation.colors.background,
|
|
8381
|
+
shadowColor: theme.__hd__.bottomNavigation.colors.shadow,
|
|
8382
|
+
shadowOffset: theme.__hd__.bottomNavigation.shadows.offset,
|
|
8383
|
+
shadowOpacity: theme.__hd__.bottomNavigation.shadows.opacity,
|
|
8384
|
+
shadowRadius: theme.__hd__.bottomNavigation.shadows.radius,
|
|
8385
|
+
elevation: theme.__hd__.bottomNavigation.shadows.elevation
|
|
8386
|
+
};
|
|
8387
|
+
});
|
|
8388
|
+
var BottomBar = index$a(View)({
|
|
8389
|
+
flex: 1,
|
|
8390
|
+
flexDirection: 'row',
|
|
8391
|
+
overflow: 'hidden',
|
|
8392
|
+
alignItems: 'center'
|
|
8393
|
+
});
|
|
8394
|
+
var BottomBarItem = index$a(View)({
|
|
8395
|
+
flex: 1,
|
|
8396
|
+
alignItems: 'center'
|
|
8397
|
+
});
|
|
8398
|
+
var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
|
|
8399
|
+
var theme = _ref3.theme;
|
|
8400
|
+
return {
|
|
8401
|
+
marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
|
|
8402
|
+
};
|
|
8403
|
+
});
|
|
8404
|
+
|
|
8405
|
+
var _excluded$p = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
8406
|
+
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
8407
|
+
var inactiveIcon = "".concat(icon, "-outlined");
|
|
8408
|
+
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
8409
|
+
};
|
|
8410
|
+
var BottomNavigation = function BottomNavigation(_ref) {
|
|
8411
|
+
var onTabPress = _ref.onTabPress,
|
|
8412
|
+
_ref$renderActiveTabO = _ref.renderActiveTabOnly,
|
|
8413
|
+
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
8414
|
+
selectedTabKey = _ref.selectedTabKey,
|
|
8415
|
+
tabs = _ref.tabs,
|
|
8416
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
8417
|
+
useDeprecation('BottomNavigation is deprecated and will be removed in the next major release. Please remove it.');
|
|
8418
|
+
var insets = useSafeAreaInsets();
|
|
8419
|
+
/**
|
|
8420
|
+
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
8421
|
+
*/
|
|
8422
|
+
var _React$useState = React.useState([selectedTabKey]),
|
|
8423
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
8424
|
+
loaded = _React$useState2[0],
|
|
8425
|
+
setLoaded = _React$useState2[1];
|
|
8426
|
+
if (!loaded.includes(selectedTabKey)) {
|
|
8427
|
+
// Set the current tab to be loaded if it was not loaded before
|
|
8428
|
+
setLoaded(function (loadedState) {
|
|
8429
|
+
return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
|
|
8430
|
+
});
|
|
8431
|
+
}
|
|
8432
|
+
return /*#__PURE__*/React.createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React.createElement(ContentWrapper$2, null, tabs.map(function (tab) {
|
|
8433
|
+
var key = tab.key,
|
|
8434
|
+
component = tab.component,
|
|
8435
|
+
testID = tab.testID;
|
|
8436
|
+
var active = selectedTabKey === key;
|
|
8437
|
+
if (renderActiveTabOnly && !active) {
|
|
8438
|
+
return null;
|
|
8439
|
+
}
|
|
8440
|
+
if (!loaded.includes(key)) {
|
|
8441
|
+
// Don't render a screen if we've never navigated to it
|
|
8442
|
+
return null;
|
|
8443
|
+
}
|
|
8444
|
+
return /*#__PURE__*/React.createElement(BottomNavigationTab, {
|
|
8445
|
+
key: key,
|
|
8446
|
+
testID: testID ? "route-screen-".concat(testID) : undefined,
|
|
8447
|
+
pointerEvents: active ? 'auto' : 'none',
|
|
8448
|
+
accessibilityElementsHidden: !active,
|
|
8449
|
+
importantForAccessibility: active ? 'auto' : 'no-hide-descendants',
|
|
8450
|
+
collapsable: false,
|
|
8451
|
+
removeClippedSubviews:
|
|
8452
|
+
// On iOS, set removeClippedSubviews to true only when not focused
|
|
8453
|
+
// This is an workaround for a bug where the clipped view never re-appears.
|
|
8454
|
+
isIOS ? selectedTabKey !== key : true,
|
|
8455
|
+
themeVisibility: active
|
|
8456
|
+
}, component);
|
|
8457
|
+
})), /*#__PURE__*/React.createElement(BottomBarWrapper, {
|
|
8458
|
+
themeInsets: insets
|
|
8459
|
+
}, /*#__PURE__*/React.createElement(BottomBar, null, tabs.map(function (tab) {
|
|
8460
|
+
var key = tab.key,
|
|
8461
|
+
icon = tab.icon,
|
|
8462
|
+
title = tab.title,
|
|
8463
|
+
testID = tab.testID;
|
|
8464
|
+
var active = selectedTabKey === key;
|
|
8465
|
+
var inactiveIcon = getInactiveIcon(icon);
|
|
8466
|
+
return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
8467
|
+
key: key,
|
|
8468
|
+
onPress: function onPress() {
|
|
8469
|
+
return onTabPress(key);
|
|
8470
|
+
},
|
|
8471
|
+
testID: testID
|
|
8472
|
+
}, /*#__PURE__*/React.createElement(BottomBarItem, null, /*#__PURE__*/React.createElement(Icon, {
|
|
8473
|
+
icon: active ? icon : inactiveIcon,
|
|
8474
|
+
intent: active ? 'primary' : 'text',
|
|
8475
|
+
testID: "hero-icon-".concat(icon)
|
|
8476
|
+
}), !!title && /*#__PURE__*/React.createElement(StyledBottomBarText, {
|
|
8477
|
+
fontWeight: "semi-bold",
|
|
8478
|
+
intent: active ? 'primary' : 'body',
|
|
8479
|
+
numberOfLines: 1
|
|
8480
|
+
}, title)));
|
|
8481
|
+
}))));
|
|
8482
|
+
};
|
|
8483
|
+
|
|
8214
8484
|
var BottomSheetContext = /*#__PURE__*/createContext({});
|
|
8215
8485
|
|
|
8216
8486
|
var StyledDivider = index$a(View)(function (_ref) {
|
|
@@ -8864,332 +9134,6 @@ var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
|
8864
9134
|
}));
|
|
8865
9135
|
};
|
|
8866
9136
|
|
|
8867
|
-
var customAlphabet = function customAlphabet(alphabet) {
|
|
8868
|
-
var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
|
|
8869
|
-
return function () {
|
|
8870
|
-
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
|
|
8871
|
-
var id = '';
|
|
8872
|
-
var i = size;
|
|
8873
|
-
while (i--) {
|
|
8874
|
-
id += alphabet[Math.random() * alphabet.length | 0];
|
|
8875
|
-
}
|
|
8876
|
-
return id;
|
|
8877
|
-
};
|
|
8878
|
-
};
|
|
8879
|
-
|
|
8880
|
-
var ACTIONS;
|
|
8881
|
-
(function (ACTIONS) {
|
|
8882
|
-
ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
|
|
8883
|
-
ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
|
|
8884
|
-
ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
|
|
8885
|
-
ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
|
|
8886
|
-
})(ACTIONS || (ACTIONS = {}));
|
|
8887
|
-
var INITIAL_STATE = {};
|
|
8888
|
-
|
|
8889
|
-
var PortalStateContext = /*#__PURE__*/createContext(null);
|
|
8890
|
-
var PortalDispatchContext = /*#__PURE__*/createContext(null);
|
|
8891
|
-
|
|
8892
|
-
var usePortal = function usePortal() {
|
|
8893
|
-
var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
|
|
8894
|
-
var dispatch = useContext(PortalDispatchContext);
|
|
8895
|
-
if (dispatch === null) {
|
|
8896
|
-
throw new Error("You must add 'PortalProvider' to the root component.");
|
|
8897
|
-
}
|
|
8898
|
-
var registerHost = useCallback(function () {
|
|
8899
|
-
dispatch({
|
|
8900
|
-
type: ACTIONS.REGISTER_HOST,
|
|
8901
|
-
hostName: hostName
|
|
8902
|
-
});
|
|
8903
|
-
}, []);
|
|
8904
|
-
var deregisterHost = useCallback(function () {
|
|
8905
|
-
dispatch({
|
|
8906
|
-
type: ACTIONS.DEREGISTER_HOST,
|
|
8907
|
-
hostName: hostName
|
|
8908
|
-
});
|
|
8909
|
-
}, []);
|
|
8910
|
-
var addUpdatePortal = useCallback(function (name, node) {
|
|
8911
|
-
dispatch({
|
|
8912
|
-
type: ACTIONS.ADD_UPDATE_PORTAL,
|
|
8913
|
-
hostName: hostName,
|
|
8914
|
-
portalName: name,
|
|
8915
|
-
node: node
|
|
8916
|
-
});
|
|
8917
|
-
}, []);
|
|
8918
|
-
var removePortal = useCallback(function (name) {
|
|
8919
|
-
dispatch({
|
|
8920
|
-
type: ACTIONS.REMOVE_PORTAL,
|
|
8921
|
-
hostName: hostName,
|
|
8922
|
-
portalName: name
|
|
8923
|
-
});
|
|
8924
|
-
}, []);
|
|
8925
|
-
return {
|
|
8926
|
-
registerHost: registerHost,
|
|
8927
|
-
deregisterHost: deregisterHost,
|
|
8928
|
-
addPortal: addUpdatePortal,
|
|
8929
|
-
updatePortal: addUpdatePortal,
|
|
8930
|
-
removePortal: removePortal
|
|
8931
|
-
};
|
|
8932
|
-
};
|
|
8933
|
-
|
|
8934
|
-
var usePortalState = function usePortalState(hostName) {
|
|
8935
|
-
var state = useContext(PortalStateContext);
|
|
8936
|
-
if (state === null) {
|
|
8937
|
-
throw new Error("You must add 'PortalProvider' to the root component.");
|
|
8938
|
-
}
|
|
8939
|
-
return state[hostName] || [];
|
|
8940
|
-
};
|
|
8941
|
-
|
|
8942
|
-
var PortalHostComponent = function PortalHostComponent(_ref) {
|
|
8943
|
-
var name = _ref.name;
|
|
8944
|
-
var state = usePortalState(name);
|
|
8945
|
-
var _usePortal = usePortal(name),
|
|
8946
|
-
registerHost = _usePortal.registerHost,
|
|
8947
|
-
deregisterHost = _usePortal.deregisterHost;
|
|
8948
|
-
useEffect(function () {
|
|
8949
|
-
registerHost();
|
|
8950
|
-
return function () {
|
|
8951
|
-
deregisterHost();
|
|
8952
|
-
};
|
|
8953
|
-
}, []);
|
|
8954
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, state.map(function (item) {
|
|
8955
|
-
return item.node;
|
|
8956
|
-
}));
|
|
8957
|
-
};
|
|
8958
|
-
var PortalHost = /*#__PURE__*/memo(PortalHostComponent);
|
|
8959
|
-
PortalHost.displayName = 'PortalHost';
|
|
8960
|
-
|
|
8961
|
-
var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
|
|
8962
|
-
if (!(hostName in state)) {
|
|
8963
|
-
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
|
|
8964
|
-
}
|
|
8965
|
-
return _objectSpread2({}, state);
|
|
8966
|
-
};
|
|
8967
|
-
var deregisterHost = function deregisterHost(state, hostName) {
|
|
8968
|
-
return _objectSpread2({}, omit([hostName], state));
|
|
8969
|
-
};
|
|
8970
|
-
var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
|
|
8971
|
-
var newState = registerHostIfNotExist(state, hostName);
|
|
8972
|
-
var index = newState[hostName].findIndex(function (item) {
|
|
8973
|
-
return item.name === portalName;
|
|
8974
|
-
});
|
|
8975
|
-
if (index !== -1) {
|
|
8976
|
-
return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
|
|
8977
|
-
if (index === i) {
|
|
8978
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
8979
|
-
node: node
|
|
8980
|
-
});
|
|
8981
|
-
}
|
|
8982
|
-
return item;
|
|
8983
|
-
})));
|
|
8984
|
-
}
|
|
8985
|
-
return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
|
|
8986
|
-
name: portalName,
|
|
8987
|
-
node: node
|
|
8988
|
-
}])));
|
|
8989
|
-
};
|
|
8990
|
-
var removePortal = function removePortal(state, hostName, portalName) {
|
|
8991
|
-
if (!(hostName in state)) {
|
|
8992
|
-
return _objectSpread2({}, state);
|
|
8993
|
-
}
|
|
8994
|
-
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
|
|
8995
|
-
return item.name !== portalName;
|
|
8996
|
-
})));
|
|
8997
|
-
};
|
|
8998
|
-
var reducer = function reducer(state, action) {
|
|
8999
|
-
var type = action.type;
|
|
9000
|
-
switch (type) {
|
|
9001
|
-
case ACTIONS.REGISTER_HOST:
|
|
9002
|
-
return registerHostIfNotExist(state, action.hostName);
|
|
9003
|
-
case ACTIONS.DEREGISTER_HOST:
|
|
9004
|
-
return deregisterHost(state, action.hostName);
|
|
9005
|
-
case ACTIONS.ADD_UPDATE_PORTAL:
|
|
9006
|
-
return addUpdatePortal(state, action.hostName, action.portalName, action.node);
|
|
9007
|
-
case ACTIONS.REMOVE_PORTAL:
|
|
9008
|
-
return removePortal(state, action.hostName, action.portalName);
|
|
9009
|
-
default:
|
|
9010
|
-
return _objectSpread2({}, state);
|
|
9011
|
-
}
|
|
9012
|
-
};
|
|
9013
|
-
|
|
9014
|
-
var PortalProviderComponent = function PortalProviderComponent(_ref) {
|
|
9015
|
-
var _ref$rootHostName = _ref.rootHostName,
|
|
9016
|
-
rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
|
|
9017
|
-
children = _ref.children;
|
|
9018
|
-
var _useReducer = useReducer(reducer, INITIAL_STATE),
|
|
9019
|
-
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
9020
|
-
state = _useReducer2[0],
|
|
9021
|
-
dispatch = _useReducer2[1];
|
|
9022
|
-
return /*#__PURE__*/React.createElement(PortalDispatchContext.Provider, {
|
|
9023
|
-
value: dispatch
|
|
9024
|
-
}, /*#__PURE__*/React.createElement(PortalStateContext.Provider, {
|
|
9025
|
-
value: state
|
|
9026
|
-
}, children, /*#__PURE__*/React.createElement(PortalHost, {
|
|
9027
|
-
name: rootHostName
|
|
9028
|
-
})));
|
|
9029
|
-
};
|
|
9030
|
-
var PortalProvider = /*#__PURE__*/memo(PortalProviderComponent);
|
|
9031
|
-
PortalProvider.displayName = 'PortalProvider';
|
|
9032
|
-
|
|
9033
|
-
var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
|
|
9034
|
-
var PortalComponent = function PortalComponent(_ref) {
|
|
9035
|
-
var name = _ref.name,
|
|
9036
|
-
hostName = _ref.hostName,
|
|
9037
|
-
children = _ref.children,
|
|
9038
|
-
theme = _ref.theme;
|
|
9039
|
-
var defaultTheme = useTheme();
|
|
9040
|
-
var _usePortal = usePortal(hostName),
|
|
9041
|
-
addUpdatePortal = _usePortal.addPortal,
|
|
9042
|
-
removePortal = _usePortal.removePortal;
|
|
9043
|
-
var nameOrRandom = useMemo(function () {
|
|
9044
|
-
return name || nanoid();
|
|
9045
|
-
}, [name]);
|
|
9046
|
-
var ChildrenComponent = useMemo(function () {
|
|
9047
|
-
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
9048
|
-
theme: theme || defaultTheme
|
|
9049
|
-
}, children);
|
|
9050
|
-
}, [theme, children, defaultTheme]);
|
|
9051
|
-
useLayoutEffect(function () {
|
|
9052
|
-
addUpdatePortal(nameOrRandom, ChildrenComponent);
|
|
9053
|
-
return function () {
|
|
9054
|
-
removePortal(nameOrRandom);
|
|
9055
|
-
};
|
|
9056
|
-
}, [addUpdatePortal]);
|
|
9057
|
-
useLayoutEffect(function () {
|
|
9058
|
-
addUpdatePortal(nameOrRandom, ChildrenComponent);
|
|
9059
|
-
}, [ChildrenComponent]);
|
|
9060
|
-
return null;
|
|
9061
|
-
};
|
|
9062
|
-
var Portal = /*#__PURE__*/memo(PortalComponent);
|
|
9063
|
-
Portal.displayName = 'Portal';
|
|
9064
|
-
var Portal$1 = Object.assign(Portal, {
|
|
9065
|
-
Provider: PortalProvider,
|
|
9066
|
-
Host: PortalHost
|
|
9067
|
-
});
|
|
9068
|
-
|
|
9069
|
-
var _excluded$l = ["visible"];
|
|
9070
|
-
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
9071
|
-
var DEFAULT_ANIMATION_CONFIG = {
|
|
9072
|
-
easing: Easing.inOut(Easing.cubic),
|
|
9073
|
-
useNativeDriver: Platform.OS !== 'web',
|
|
9074
|
-
duration: 400
|
|
9075
|
-
};
|
|
9076
|
-
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
9077
|
-
var children = _ref.children,
|
|
9078
|
-
onShow = _ref.onShow,
|
|
9079
|
-
onRequestClose = _ref.onRequestClose,
|
|
9080
|
-
testID = _ref.testID,
|
|
9081
|
-
_ref$animationType = _ref.animationType,
|
|
9082
|
-
animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
|
|
9083
|
-
_ref$transparent = _ref.transparent,
|
|
9084
|
-
transparent = _ref$transparent === void 0 ? false : _ref$transparent,
|
|
9085
|
-
onDismiss = _ref.onDismiss;
|
|
9086
|
-
var theme = useTheme();
|
|
9087
|
-
var animatedBackdropValue = useRef(new Animated.Value(0)).current;
|
|
9088
|
-
var animatedModalValue = useRef(new Animated.Value(0)).current;
|
|
9089
|
-
// Show or hide the backdrop and modal content
|
|
9090
|
-
var animateBackdropAndContent = useCallback(function (_ref2) {
|
|
9091
|
-
var toValue = _ref2.toValue,
|
|
9092
|
-
callback = _ref2.callback;
|
|
9093
|
-
if (animationType !== 'none') {
|
|
9094
|
-
// Backdrop animation
|
|
9095
|
-
if (!transparent) {
|
|
9096
|
-
Animated.timing(animatedBackdropValue, _objectSpread2({
|
|
9097
|
-
toValue: toValue
|
|
9098
|
-
}, DEFAULT_ANIMATION_CONFIG)).start();
|
|
9099
|
-
}
|
|
9100
|
-
// Modal content animation
|
|
9101
|
-
Animated.timing(animatedModalValue, _objectSpread2({
|
|
9102
|
-
toValue: toValue
|
|
9103
|
-
}, DEFAULT_ANIMATION_CONFIG)).start(callback);
|
|
9104
|
-
} else {
|
|
9105
|
-
callback === null || callback === void 0 || callback();
|
|
9106
|
-
}
|
|
9107
|
-
}, [animationType, onShow, transparent]);
|
|
9108
|
-
var backdropOpacityAnimation = animatedBackdropValue.interpolate({
|
|
9109
|
-
inputRange: [0, 1],
|
|
9110
|
-
outputRange: [0, DEFAULT_BACKDROP_OPACITY]
|
|
9111
|
-
});
|
|
9112
|
-
var modalAnimation = animatedModalValue.interpolate({
|
|
9113
|
-
inputRange: [0, 1],
|
|
9114
|
-
outputRange: animationType === 'slide' ? [Dimensions.get('window').height, 0] : [0, 1]
|
|
9115
|
-
});
|
|
9116
|
-
useImperativeHandle(ref, function () {
|
|
9117
|
-
return {
|
|
9118
|
-
show: function show() {
|
|
9119
|
-
animateBackdropAndContent({
|
|
9120
|
-
toValue: 1,
|
|
9121
|
-
callback: onShow
|
|
9122
|
-
});
|
|
9123
|
-
},
|
|
9124
|
-
hide: function hide(wrapperCallback) {
|
|
9125
|
-
animateBackdropAndContent({
|
|
9126
|
-
toValue: 0,
|
|
9127
|
-
callback: function callback() {
|
|
9128
|
-
if (Platform.OS === 'ios') {
|
|
9129
|
-
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
9130
|
-
}
|
|
9131
|
-
wrapperCallback();
|
|
9132
|
-
}
|
|
9133
|
-
});
|
|
9134
|
-
}
|
|
9135
|
-
};
|
|
9136
|
-
}, [onDismiss, onShow, animateBackdropAndContent]);
|
|
9137
|
-
// Back button handler
|
|
9138
|
-
useEffect(function () {
|
|
9139
|
-
var backHandler = BackHandler.addEventListener('hardwareBackPress', function () {
|
|
9140
|
-
onRequestClose === null || onRequestClose === void 0 || onRequestClose();
|
|
9141
|
-
return true;
|
|
9142
|
-
});
|
|
9143
|
-
return function () {
|
|
9144
|
-
return backHandler.remove();
|
|
9145
|
-
};
|
|
9146
|
-
}, [onRequestClose]);
|
|
9147
|
-
return /*#__PURE__*/React.createElement(Portal$1, null, /*#__PURE__*/React.createElement(Animated.View, {
|
|
9148
|
-
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
9149
|
-
backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
|
|
9150
|
-
opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
|
|
9151
|
-
})
|
|
9152
|
-
}), /*#__PURE__*/React.createElement(Animated.View, {
|
|
9153
|
-
testID: testID,
|
|
9154
|
-
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
9155
|
-
opacity: animationType === 'fade' ? modalAnimation : 1,
|
|
9156
|
-
transform: [{
|
|
9157
|
-
translateY: animationType === 'slide' ? modalAnimation : 0
|
|
9158
|
-
}]
|
|
9159
|
-
})
|
|
9160
|
-
}, children));
|
|
9161
|
-
});
|
|
9162
|
-
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
9163
|
-
var _ref3$visible = _ref3.visible,
|
|
9164
|
-
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
9165
|
-
props = _objectWithoutProperties(_ref3, _excluded$l);
|
|
9166
|
-
var modalRef = useRef(null);
|
|
9167
|
-
var _useState = useState(visible),
|
|
9168
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
9169
|
-
internalVisible = _useState2[0],
|
|
9170
|
-
setInternalVisible = _useState2[1];
|
|
9171
|
-
useEffect(function () {
|
|
9172
|
-
if (visible) {
|
|
9173
|
-
setInternalVisible(true);
|
|
9174
|
-
} else {
|
|
9175
|
-
var _modalRef$current;
|
|
9176
|
-
// Wait for animation to finish before hiding the modal
|
|
9177
|
-
(_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 || _modalRef$current.hide(function () {
|
|
9178
|
-
return setInternalVisible(false);
|
|
9179
|
-
});
|
|
9180
|
-
}
|
|
9181
|
-
}, [visible]);
|
|
9182
|
-
useEffect(function () {
|
|
9183
|
-
if (internalVisible) {
|
|
9184
|
-
var _modalRef$current2;
|
|
9185
|
-
(_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
|
|
9186
|
-
}
|
|
9187
|
-
}, [internalVisible]);
|
|
9188
|
-
return internalVisible ? /*#__PURE__*/React.createElement(Modal, _extends$1({
|
|
9189
|
-
ref: modalRef
|
|
9190
|
-
}, props)) : null;
|
|
9191
|
-
};
|
|
9192
|
-
|
|
9193
9137
|
var BottomSheet = function BottomSheet(_ref) {
|
|
9194
9138
|
var open = _ref.open,
|
|
9195
9139
|
header = _ref.header,
|
|
@@ -9266,7 +9210,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9266
9210
|
setInternalShowDivider: setInternalShowDivider
|
|
9267
9211
|
};
|
|
9268
9212
|
}, [setInternalShowDivider]);
|
|
9269
|
-
return /*#__PURE__*/React.createElement(
|
|
9213
|
+
return /*#__PURE__*/React.createElement(Modal$1, {
|
|
9270
9214
|
visible: visible,
|
|
9271
9215
|
onRequestClose: onRequestClose,
|
|
9272
9216
|
transparent: true,
|
|
@@ -11955,12 +11899,12 @@ var Indicator = index$a(View)(function (_ref2) {
|
|
|
11955
11899
|
};
|
|
11956
11900
|
});
|
|
11957
11901
|
|
|
11958
|
-
var _excluded$
|
|
11902
|
+
var _excluded$l = ["intent", "children"];
|
|
11959
11903
|
var DataCard = function DataCard(_ref) {
|
|
11960
11904
|
var _ref$intent = _ref.intent,
|
|
11961
11905
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
11962
11906
|
children = _ref.children,
|
|
11963
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11907
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
11964
11908
|
return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
|
|
11965
11909
|
themeIntent: intent,
|
|
11966
11910
|
testID: "data-card-indicator"
|
|
@@ -11978,11 +11922,11 @@ var StyledCard$1 = index$a(View)(function (_ref) {
|
|
|
11978
11922
|
});
|
|
11979
11923
|
});
|
|
11980
11924
|
|
|
11981
|
-
var _excluded$
|
|
11925
|
+
var _excluded$k = ["intent", "children"];
|
|
11982
11926
|
var Card = function Card(_ref) {
|
|
11983
11927
|
var intent = _ref.intent,
|
|
11984
11928
|
children = _ref.children,
|
|
11985
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11929
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
11986
11930
|
return /*#__PURE__*/React.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
11987
11931
|
themeIntent: intent
|
|
11988
11932
|
}), children);
|
|
@@ -12247,7 +12191,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12247
12191
|
});
|
|
12248
12192
|
CardCarousel.displayName = 'CardCarousel';
|
|
12249
12193
|
|
|
12250
|
-
var _excluded$
|
|
12194
|
+
var _excluded$j = ["rounded", "size", "testID", "style"];
|
|
12251
12195
|
var Image = function Image(_ref) {
|
|
12252
12196
|
var _ref$rounded = _ref.rounded,
|
|
12253
12197
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -12255,7 +12199,7 @@ var Image = function Image(_ref) {
|
|
|
12255
12199
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
12256
12200
|
testID = _ref.testID,
|
|
12257
12201
|
style = _ref.style,
|
|
12258
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12202
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
12259
12203
|
var theme = useTheme();
|
|
12260
12204
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
12261
12205
|
return /*#__PURE__*/React.createElement(Image$1, _extends$1({
|
|
@@ -12375,7 +12319,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12375
12319
|
}, heading), body ? /*#__PURE__*/React.createElement(Typography.Body, null, body) : null));
|
|
12376
12320
|
};
|
|
12377
12321
|
|
|
12378
|
-
var _excluded$
|
|
12322
|
+
var _excluded$i = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
12379
12323
|
function useStateFromProp(initialValue) {
|
|
12380
12324
|
var _useState = useState(initialValue),
|
|
12381
12325
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12402,7 +12346,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12402
12346
|
testID = _ref.testID,
|
|
12403
12347
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
12404
12348
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
12405
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12349
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
12406
12350
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
12407
12351
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
12408
12352
|
var theme = useTheme();
|
|
@@ -12597,7 +12541,7 @@ var StyledIcon$1 = index$a(Icon)(function (_ref4) {
|
|
|
12597
12541
|
};
|
|
12598
12542
|
});
|
|
12599
12543
|
|
|
12600
|
-
var _excluded$
|
|
12544
|
+
var _excluded$h = ["label", "variant", "selected", "icon", "onPress"];
|
|
12601
12545
|
var Chip = function Chip(_ref) {
|
|
12602
12546
|
var label = _ref.label,
|
|
12603
12547
|
_ref$variant = _ref.variant,
|
|
@@ -12606,7 +12550,7 @@ var Chip = function Chip(_ref) {
|
|
|
12606
12550
|
selected = _ref$selected === void 0 ? false : _ref$selected,
|
|
12607
12551
|
icon = _ref.icon,
|
|
12608
12552
|
onPress = _ref.onPress,
|
|
12609
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
12553
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
12610
12554
|
var internalIcon = React.useMemo(function () {
|
|
12611
12555
|
if (icon && variant === 'filled') {
|
|
12612
12556
|
return icon;
|
|
@@ -12693,6 +12637,8 @@ var getThemeState = function getThemeState(_ref) {
|
|
|
12693
12637
|
var Checkbox = function Checkbox(_ref2) {
|
|
12694
12638
|
var checked = _ref2.checked,
|
|
12695
12639
|
description = _ref2.description,
|
|
12640
|
+
_ref2$withBorder = _ref2.withBorder,
|
|
12641
|
+
withBorder = _ref2$withBorder === void 0 ? false : _ref2$withBorder,
|
|
12696
12642
|
_ref2$disabled = _ref2.disabled,
|
|
12697
12643
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
12698
12644
|
onPress = _ref2.onPress,
|
|
@@ -12700,6 +12646,7 @@ var Checkbox = function Checkbox(_ref2) {
|
|
|
12700
12646
|
testID = _ref2.testID,
|
|
12701
12647
|
_ref2$readonly = _ref2.readonly,
|
|
12702
12648
|
readonly = _ref2$readonly === void 0 ? false : _ref2$readonly;
|
|
12649
|
+
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);
|
|
12703
12650
|
var themeState = getThemeState({
|
|
12704
12651
|
disabled: disabled,
|
|
12705
12652
|
readonly: readonly
|
|
@@ -12850,7 +12797,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
|
12850
12797
|
};
|
|
12851
12798
|
});
|
|
12852
12799
|
|
|
12853
|
-
var _excluded$
|
|
12800
|
+
var _excluded$g = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
12854
12801
|
var getState$1 = function getState(_ref) {
|
|
12855
12802
|
var disabled = _ref.disabled,
|
|
12856
12803
|
error = _ref.error,
|
|
@@ -12903,7 +12850,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12903
12850
|
allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
|
|
12904
12851
|
_ref2$variant = _ref2.variant,
|
|
12905
12852
|
variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
|
|
12906
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12853
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
12907
12854
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
12908
12855
|
var isEmptyValue = displayText.length === 0;
|
|
12909
12856
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -13448,11 +13395,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13448
13395
|
}))));
|
|
13449
13396
|
};
|
|
13450
13397
|
|
|
13451
|
-
var _excluded$
|
|
13398
|
+
var _excluded$f = ["variant"];
|
|
13452
13399
|
var DatePicker = function DatePicker(_ref) {
|
|
13453
13400
|
var _ref$variant = _ref.variant,
|
|
13454
13401
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
13455
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
13402
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
13456
13403
|
if (variant === 'calendar') {
|
|
13457
13404
|
return /*#__PURE__*/React.createElement(DatePickerCalendar, props);
|
|
13458
13405
|
}
|
|
@@ -13621,7 +13568,7 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
13621
13568
|
if (animatedToValue >= 0) {
|
|
13622
13569
|
var animation = Animated.timing(pan, {
|
|
13623
13570
|
toValue: animatedToValue,
|
|
13624
|
-
useNativeDriver:
|
|
13571
|
+
useNativeDriver: Platform.OS !== 'web',
|
|
13625
13572
|
easing: Easing.inOut(Easing.cubic)
|
|
13626
13573
|
});
|
|
13627
13574
|
animation.start(function () {
|
|
@@ -13804,6 +13751,332 @@ var Empty = function Empty(_ref) {
|
|
|
13804
13751
|
}, description));
|
|
13805
13752
|
};
|
|
13806
13753
|
|
|
13754
|
+
var customAlphabet = function customAlphabet(alphabet) {
|
|
13755
|
+
var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
|
|
13756
|
+
return function () {
|
|
13757
|
+
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
|
|
13758
|
+
var id = '';
|
|
13759
|
+
var i = size;
|
|
13760
|
+
while (i--) {
|
|
13761
|
+
id += alphabet[Math.random() * alphabet.length | 0];
|
|
13762
|
+
}
|
|
13763
|
+
return id;
|
|
13764
|
+
};
|
|
13765
|
+
};
|
|
13766
|
+
|
|
13767
|
+
var ACTIONS;
|
|
13768
|
+
(function (ACTIONS) {
|
|
13769
|
+
ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
|
|
13770
|
+
ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
|
|
13771
|
+
ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
|
|
13772
|
+
ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
|
|
13773
|
+
})(ACTIONS || (ACTIONS = {}));
|
|
13774
|
+
var INITIAL_STATE = {};
|
|
13775
|
+
|
|
13776
|
+
var PortalStateContext = /*#__PURE__*/createContext(null);
|
|
13777
|
+
var PortalDispatchContext = /*#__PURE__*/createContext(null);
|
|
13778
|
+
|
|
13779
|
+
var usePortal = function usePortal() {
|
|
13780
|
+
var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
|
|
13781
|
+
var dispatch = useContext(PortalDispatchContext);
|
|
13782
|
+
if (dispatch === null) {
|
|
13783
|
+
throw new Error("You must add 'PortalProvider' to the root component.");
|
|
13784
|
+
}
|
|
13785
|
+
var registerHost = useCallback(function () {
|
|
13786
|
+
dispatch({
|
|
13787
|
+
type: ACTIONS.REGISTER_HOST,
|
|
13788
|
+
hostName: hostName
|
|
13789
|
+
});
|
|
13790
|
+
}, []);
|
|
13791
|
+
var deregisterHost = useCallback(function () {
|
|
13792
|
+
dispatch({
|
|
13793
|
+
type: ACTIONS.DEREGISTER_HOST,
|
|
13794
|
+
hostName: hostName
|
|
13795
|
+
});
|
|
13796
|
+
}, []);
|
|
13797
|
+
var addUpdatePortal = useCallback(function (name, node) {
|
|
13798
|
+
dispatch({
|
|
13799
|
+
type: ACTIONS.ADD_UPDATE_PORTAL,
|
|
13800
|
+
hostName: hostName,
|
|
13801
|
+
portalName: name,
|
|
13802
|
+
node: node
|
|
13803
|
+
});
|
|
13804
|
+
}, []);
|
|
13805
|
+
var removePortal = useCallback(function (name) {
|
|
13806
|
+
dispatch({
|
|
13807
|
+
type: ACTIONS.REMOVE_PORTAL,
|
|
13808
|
+
hostName: hostName,
|
|
13809
|
+
portalName: name
|
|
13810
|
+
});
|
|
13811
|
+
}, []);
|
|
13812
|
+
return {
|
|
13813
|
+
registerHost: registerHost,
|
|
13814
|
+
deregisterHost: deregisterHost,
|
|
13815
|
+
addPortal: addUpdatePortal,
|
|
13816
|
+
updatePortal: addUpdatePortal,
|
|
13817
|
+
removePortal: removePortal
|
|
13818
|
+
};
|
|
13819
|
+
};
|
|
13820
|
+
|
|
13821
|
+
var usePortalState = function usePortalState(hostName) {
|
|
13822
|
+
var state = useContext(PortalStateContext);
|
|
13823
|
+
if (state === null) {
|
|
13824
|
+
throw new Error("You must add 'PortalProvider' to the root component.");
|
|
13825
|
+
}
|
|
13826
|
+
return state[hostName] || [];
|
|
13827
|
+
};
|
|
13828
|
+
|
|
13829
|
+
var PortalHostComponent = function PortalHostComponent(_ref) {
|
|
13830
|
+
var name = _ref.name;
|
|
13831
|
+
var state = usePortalState(name);
|
|
13832
|
+
var _usePortal = usePortal(name),
|
|
13833
|
+
registerHost = _usePortal.registerHost,
|
|
13834
|
+
deregisterHost = _usePortal.deregisterHost;
|
|
13835
|
+
useEffect(function () {
|
|
13836
|
+
registerHost();
|
|
13837
|
+
return function () {
|
|
13838
|
+
deregisterHost();
|
|
13839
|
+
};
|
|
13840
|
+
}, []);
|
|
13841
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, state.map(function (item) {
|
|
13842
|
+
return item.node;
|
|
13843
|
+
}));
|
|
13844
|
+
};
|
|
13845
|
+
var PortalHost = /*#__PURE__*/memo(PortalHostComponent);
|
|
13846
|
+
PortalHost.displayName = 'PortalHost';
|
|
13847
|
+
|
|
13848
|
+
var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
|
|
13849
|
+
if (!(hostName in state)) {
|
|
13850
|
+
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
|
|
13851
|
+
}
|
|
13852
|
+
return _objectSpread2({}, state);
|
|
13853
|
+
};
|
|
13854
|
+
var deregisterHost = function deregisterHost(state, hostName) {
|
|
13855
|
+
return _objectSpread2({}, omit([hostName], state));
|
|
13856
|
+
};
|
|
13857
|
+
var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
|
|
13858
|
+
var newState = registerHostIfNotExist(state, hostName);
|
|
13859
|
+
var index = newState[hostName].findIndex(function (item) {
|
|
13860
|
+
return item.name === portalName;
|
|
13861
|
+
});
|
|
13862
|
+
if (index !== -1) {
|
|
13863
|
+
return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
|
|
13864
|
+
if (index === i) {
|
|
13865
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13866
|
+
node: node
|
|
13867
|
+
});
|
|
13868
|
+
}
|
|
13869
|
+
return item;
|
|
13870
|
+
})));
|
|
13871
|
+
}
|
|
13872
|
+
return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
|
|
13873
|
+
name: portalName,
|
|
13874
|
+
node: node
|
|
13875
|
+
}])));
|
|
13876
|
+
};
|
|
13877
|
+
var removePortal = function removePortal(state, hostName, portalName) {
|
|
13878
|
+
if (!(hostName in state)) {
|
|
13879
|
+
return _objectSpread2({}, state);
|
|
13880
|
+
}
|
|
13881
|
+
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
|
|
13882
|
+
return item.name !== portalName;
|
|
13883
|
+
})));
|
|
13884
|
+
};
|
|
13885
|
+
var reducer = function reducer(state, action) {
|
|
13886
|
+
var type = action.type;
|
|
13887
|
+
switch (type) {
|
|
13888
|
+
case ACTIONS.REGISTER_HOST:
|
|
13889
|
+
return registerHostIfNotExist(state, action.hostName);
|
|
13890
|
+
case ACTIONS.DEREGISTER_HOST:
|
|
13891
|
+
return deregisterHost(state, action.hostName);
|
|
13892
|
+
case ACTIONS.ADD_UPDATE_PORTAL:
|
|
13893
|
+
return addUpdatePortal(state, action.hostName, action.portalName, action.node);
|
|
13894
|
+
case ACTIONS.REMOVE_PORTAL:
|
|
13895
|
+
return removePortal(state, action.hostName, action.portalName);
|
|
13896
|
+
default:
|
|
13897
|
+
return _objectSpread2({}, state);
|
|
13898
|
+
}
|
|
13899
|
+
};
|
|
13900
|
+
|
|
13901
|
+
var PortalProviderComponent = function PortalProviderComponent(_ref) {
|
|
13902
|
+
var _ref$rootHostName = _ref.rootHostName,
|
|
13903
|
+
rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
|
|
13904
|
+
children = _ref.children;
|
|
13905
|
+
var _useReducer = useReducer(reducer, INITIAL_STATE),
|
|
13906
|
+
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
13907
|
+
state = _useReducer2[0],
|
|
13908
|
+
dispatch = _useReducer2[1];
|
|
13909
|
+
return /*#__PURE__*/React.createElement(PortalDispatchContext.Provider, {
|
|
13910
|
+
value: dispatch
|
|
13911
|
+
}, /*#__PURE__*/React.createElement(PortalStateContext.Provider, {
|
|
13912
|
+
value: state
|
|
13913
|
+
}, children, /*#__PURE__*/React.createElement(PortalHost, {
|
|
13914
|
+
name: rootHostName
|
|
13915
|
+
})));
|
|
13916
|
+
};
|
|
13917
|
+
var PortalProvider = /*#__PURE__*/memo(PortalProviderComponent);
|
|
13918
|
+
PortalProvider.displayName = 'PortalProvider';
|
|
13919
|
+
|
|
13920
|
+
var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
|
|
13921
|
+
var PortalComponent = function PortalComponent(_ref) {
|
|
13922
|
+
var name = _ref.name,
|
|
13923
|
+
hostName = _ref.hostName,
|
|
13924
|
+
children = _ref.children,
|
|
13925
|
+
theme = _ref.theme;
|
|
13926
|
+
var defaultTheme = useTheme();
|
|
13927
|
+
var _usePortal = usePortal(hostName),
|
|
13928
|
+
addUpdatePortal = _usePortal.addPortal,
|
|
13929
|
+
removePortal = _usePortal.removePortal;
|
|
13930
|
+
var nameOrRandom = useMemo(function () {
|
|
13931
|
+
return name || nanoid();
|
|
13932
|
+
}, [name]);
|
|
13933
|
+
var ChildrenComponent = useMemo(function () {
|
|
13934
|
+
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
13935
|
+
theme: theme || defaultTheme
|
|
13936
|
+
}, children);
|
|
13937
|
+
}, [theme, children, defaultTheme]);
|
|
13938
|
+
useLayoutEffect(function () {
|
|
13939
|
+
addUpdatePortal(nameOrRandom, ChildrenComponent);
|
|
13940
|
+
return function () {
|
|
13941
|
+
removePortal(nameOrRandom);
|
|
13942
|
+
};
|
|
13943
|
+
}, [addUpdatePortal]);
|
|
13944
|
+
useLayoutEffect(function () {
|
|
13945
|
+
addUpdatePortal(nameOrRandom, ChildrenComponent);
|
|
13946
|
+
}, [ChildrenComponent]);
|
|
13947
|
+
return null;
|
|
13948
|
+
};
|
|
13949
|
+
var Portal = /*#__PURE__*/memo(PortalComponent);
|
|
13950
|
+
Portal.displayName = 'Portal';
|
|
13951
|
+
var Portal$1 = Object.assign(Portal, {
|
|
13952
|
+
Provider: PortalProvider,
|
|
13953
|
+
Host: PortalHost
|
|
13954
|
+
});
|
|
13955
|
+
|
|
13956
|
+
var _excluded$e = ["visible"];
|
|
13957
|
+
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
13958
|
+
var DEFAULT_ANIMATION_CONFIG = {
|
|
13959
|
+
easing: Easing.inOut(Easing.cubic),
|
|
13960
|
+
useNativeDriver: Platform.OS !== 'web',
|
|
13961
|
+
duration: 400
|
|
13962
|
+
};
|
|
13963
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
13964
|
+
var children = _ref.children,
|
|
13965
|
+
onShow = _ref.onShow,
|
|
13966
|
+
onRequestClose = _ref.onRequestClose,
|
|
13967
|
+
testID = _ref.testID,
|
|
13968
|
+
_ref$animationType = _ref.animationType,
|
|
13969
|
+
animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
|
|
13970
|
+
_ref$transparent = _ref.transparent,
|
|
13971
|
+
transparent = _ref$transparent === void 0 ? false : _ref$transparent,
|
|
13972
|
+
onDismiss = _ref.onDismiss;
|
|
13973
|
+
var theme = useTheme();
|
|
13974
|
+
var animatedBackdropValue = useRef(new Animated.Value(0)).current;
|
|
13975
|
+
var animatedModalValue = useRef(new Animated.Value(0)).current;
|
|
13976
|
+
// Show or hide the backdrop and modal content
|
|
13977
|
+
var animateBackdropAndContent = useCallback(function (_ref2) {
|
|
13978
|
+
var toValue = _ref2.toValue,
|
|
13979
|
+
callback = _ref2.callback;
|
|
13980
|
+
if (animationType !== 'none') {
|
|
13981
|
+
// Backdrop animation
|
|
13982
|
+
if (!transparent) {
|
|
13983
|
+
Animated.timing(animatedBackdropValue, _objectSpread2({
|
|
13984
|
+
toValue: toValue
|
|
13985
|
+
}, DEFAULT_ANIMATION_CONFIG)).start();
|
|
13986
|
+
}
|
|
13987
|
+
// Modal content animation
|
|
13988
|
+
Animated.timing(animatedModalValue, _objectSpread2({
|
|
13989
|
+
toValue: toValue
|
|
13990
|
+
}, DEFAULT_ANIMATION_CONFIG)).start(callback);
|
|
13991
|
+
} else {
|
|
13992
|
+
callback === null || callback === void 0 || callback();
|
|
13993
|
+
}
|
|
13994
|
+
}, [animationType, onShow, transparent]);
|
|
13995
|
+
var backdropOpacityAnimation = animatedBackdropValue.interpolate({
|
|
13996
|
+
inputRange: [0, 1],
|
|
13997
|
+
outputRange: [0, DEFAULT_BACKDROP_OPACITY]
|
|
13998
|
+
});
|
|
13999
|
+
var modalAnimation = animatedModalValue.interpolate({
|
|
14000
|
+
inputRange: [0, 1],
|
|
14001
|
+
outputRange: animationType === 'slide' ? [Dimensions.get('window').height, 0] : [0, 1]
|
|
14002
|
+
});
|
|
14003
|
+
useImperativeHandle(ref, function () {
|
|
14004
|
+
return {
|
|
14005
|
+
show: function show() {
|
|
14006
|
+
animateBackdropAndContent({
|
|
14007
|
+
toValue: 1,
|
|
14008
|
+
callback: onShow
|
|
14009
|
+
});
|
|
14010
|
+
},
|
|
14011
|
+
hide: function hide(wrapperCallback) {
|
|
14012
|
+
animateBackdropAndContent({
|
|
14013
|
+
toValue: 0,
|
|
14014
|
+
callback: function callback() {
|
|
14015
|
+
if (Platform.OS === 'ios') {
|
|
14016
|
+
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
14017
|
+
}
|
|
14018
|
+
wrapperCallback();
|
|
14019
|
+
}
|
|
14020
|
+
});
|
|
14021
|
+
}
|
|
14022
|
+
};
|
|
14023
|
+
}, [onDismiss, onShow, animateBackdropAndContent]);
|
|
14024
|
+
// Back button handler
|
|
14025
|
+
useEffect(function () {
|
|
14026
|
+
var backHandler = BackHandler.addEventListener('hardwareBackPress', function () {
|
|
14027
|
+
onRequestClose === null || onRequestClose === void 0 || onRequestClose();
|
|
14028
|
+
return true;
|
|
14029
|
+
});
|
|
14030
|
+
return function () {
|
|
14031
|
+
return backHandler.remove();
|
|
14032
|
+
};
|
|
14033
|
+
}, [onRequestClose]);
|
|
14034
|
+
return /*#__PURE__*/React.createElement(Portal$1, null, /*#__PURE__*/React.createElement(Animated.View, {
|
|
14035
|
+
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
14036
|
+
backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
|
|
14037
|
+
opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
|
|
14038
|
+
})
|
|
14039
|
+
}), /*#__PURE__*/React.createElement(Animated.View, {
|
|
14040
|
+
testID: testID,
|
|
14041
|
+
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
14042
|
+
opacity: animationType === 'fade' ? modalAnimation : 1,
|
|
14043
|
+
transform: [{
|
|
14044
|
+
translateY: animationType === 'slide' ? modalAnimation : 0
|
|
14045
|
+
}]
|
|
14046
|
+
})
|
|
14047
|
+
}, children));
|
|
14048
|
+
});
|
|
14049
|
+
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
14050
|
+
var _ref3$visible = _ref3.visible,
|
|
14051
|
+
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
14052
|
+
props = _objectWithoutProperties(_ref3, _excluded$e);
|
|
14053
|
+
var modalRef = useRef(null);
|
|
14054
|
+
var _useState = useState(visible),
|
|
14055
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14056
|
+
internalVisible = _useState2[0],
|
|
14057
|
+
setInternalVisible = _useState2[1];
|
|
14058
|
+
useEffect(function () {
|
|
14059
|
+
if (visible) {
|
|
14060
|
+
setInternalVisible(true);
|
|
14061
|
+
} else {
|
|
14062
|
+
var _modalRef$current;
|
|
14063
|
+
// Wait for animation to finish before hiding the modal
|
|
14064
|
+
(_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 || _modalRef$current.hide(function () {
|
|
14065
|
+
return setInternalVisible(false);
|
|
14066
|
+
});
|
|
14067
|
+
}
|
|
14068
|
+
}, [visible]);
|
|
14069
|
+
useEffect(function () {
|
|
14070
|
+
if (internalVisible) {
|
|
14071
|
+
var _modalRef$current2;
|
|
14072
|
+
(_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
|
|
14073
|
+
}
|
|
14074
|
+
}, [internalVisible]);
|
|
14075
|
+
return internalVisible ? /*#__PURE__*/React.createElement(Modal, _extends$1({
|
|
14076
|
+
ref: modalRef
|
|
14077
|
+
}, props)) : null;
|
|
14078
|
+
};
|
|
14079
|
+
|
|
13807
14080
|
var StyledErrorModal = index$a(ModalWrapper)({
|
|
13808
14081
|
height: '100%',
|
|
13809
14082
|
width: '100%'
|
|
@@ -13887,7 +14160,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
|
|
|
13887
14160
|
});
|
|
13888
14161
|
|
|
13889
14162
|
var _excluded$d = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
|
|
13890
|
-
_excluded2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14163
|
+
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
13891
14164
|
var renderImage$1 = function renderImage(image) {
|
|
13892
14165
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
13893
14166
|
return /*#__PURE__*/React.cloneElement(image, {
|
|
@@ -13941,7 +14214,9 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
13941
14214
|
* @return {*} {ReactElement}
|
|
13942
14215
|
*/
|
|
13943
14216
|
var Error$1 = function Error(_ref2) {
|
|
13944
|
-
var _ref2$
|
|
14217
|
+
var _ref2$visible = _ref2.visible,
|
|
14218
|
+
visible = _ref2$visible === void 0 ? true : _ref2$visible,
|
|
14219
|
+
_ref2$variant = _ref2.variant,
|
|
13945
14220
|
variant = _ref2$variant === void 0 ? 'in-page' : _ref2$variant,
|
|
13946
14221
|
title = _ref2.title,
|
|
13947
14222
|
description = _ref2.description,
|
|
@@ -13952,7 +14227,8 @@ var Error$1 = function Error(_ref2) {
|
|
|
13952
14227
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
13953
14228
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
13954
14229
|
nativeProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
13955
|
-
|
|
14230
|
+
useDeprecation("Visible prop is deprecated. Use conditional rendering instead", visible);
|
|
14231
|
+
var _useState = useState(visible),
|
|
13956
14232
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13957
14233
|
isVisible = _useState2[0],
|
|
13958
14234
|
setIsVisible = _useState2[1];
|
|
@@ -13969,6 +14245,9 @@ var Error$1 = function Error(_ref2) {
|
|
|
13969
14245
|
}
|
|
13970
14246
|
setCtaPressed(null);
|
|
13971
14247
|
}, [ctaPressed, onCtaPress, onSecondaryCtaPress]);
|
|
14248
|
+
useEffect(function () {
|
|
14249
|
+
setIsVisible(visible);
|
|
14250
|
+
}, [visible]);
|
|
13972
14251
|
// These useEffect lines prevents race condition error when callback contains navigation logic
|
|
13973
14252
|
useEffect(function () {
|
|
13974
14253
|
if (ctaPressed) {
|
|
@@ -14325,7 +14604,8 @@ var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
|
|
|
14325
14604
|
});
|
|
14326
14605
|
|
|
14327
14606
|
var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
14328
|
-
var
|
|
14607
|
+
var headerTitle = _ref.headerTitle,
|
|
14608
|
+
onPress = _ref.onPress,
|
|
14329
14609
|
active = _ref.active,
|
|
14330
14610
|
style = _ref.style,
|
|
14331
14611
|
items = _ref.items,
|
|
@@ -14334,6 +14614,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14334
14614
|
onBackdropPress = _ref.onBackdropPress,
|
|
14335
14615
|
_ref$fabIcon = _ref.fabIcon,
|
|
14336
14616
|
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon;
|
|
14617
|
+
useDeprecation("FAB.ActionGroup's headerTitle prop will be removed in the next major release. Please remove it.", headerTitle !== undefined);
|
|
14337
14618
|
var fabRef = useRef(null);
|
|
14338
14619
|
var tranlateXAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
14339
14620
|
React.useImperativeHandle(ref, function () {
|
|
@@ -14428,11 +14709,12 @@ var index$6 = Object.assign(FAB, {
|
|
|
14428
14709
|
});
|
|
14429
14710
|
|
|
14430
14711
|
var ToastContainerWrapper = index$a(View)(function (_ref) {
|
|
14431
|
-
var theme = _ref.theme
|
|
14712
|
+
var theme = _ref.theme,
|
|
14713
|
+
position = _ref.position;
|
|
14432
14714
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
14433
14715
|
paddingHorizontal: theme.__hd__.toast.space.wrapperVerticalPadding,
|
|
14434
14716
|
paddingVertical: theme.__hd__.toast.space.wrapperHorizontalPadding,
|
|
14435
|
-
flexDirection: 'column-reverse',
|
|
14717
|
+
flexDirection: position === 'bottom' ? 'column-reverse' : 'column',
|
|
14436
14718
|
elevation: 9999
|
|
14437
14719
|
});
|
|
14438
14720
|
});
|
|
@@ -14485,6 +14767,15 @@ var CTAWrapper = index$a(TouchableOpacity)(function (_ref6) {
|
|
|
14485
14767
|
};
|
|
14486
14768
|
});
|
|
14487
14769
|
|
|
14770
|
+
var ToastContext = /*#__PURE__*/createContext({});
|
|
14771
|
+
var ToastConfigContext = /*#__PURE__*/createContext({});
|
|
14772
|
+
var useToastConfig = function useToastConfig() {
|
|
14773
|
+
return useContext(ToastConfigContext);
|
|
14774
|
+
};
|
|
14775
|
+
var useToast = function useToast() {
|
|
14776
|
+
return useContext(ToastContext);
|
|
14777
|
+
};
|
|
14778
|
+
|
|
14488
14779
|
var getIntentIcon = function getIntentIcon(intent) {
|
|
14489
14780
|
switch (intent) {
|
|
14490
14781
|
case 'success':
|
|
@@ -14528,6 +14819,7 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
14528
14819
|
_ref2$distance = _ref2.distance,
|
|
14529
14820
|
distance = _ref2$distance === void 0 ? 0 : _ref2$distance;
|
|
14530
14821
|
var animatedValue = useRef(new Animated.Value(0)).current;
|
|
14822
|
+
var toastConfig = useToastConfig();
|
|
14531
14823
|
useEffect(function () {
|
|
14532
14824
|
if (autoDismiss && duration >= 0) {
|
|
14533
14825
|
var id = setTimeout(function () {
|
|
@@ -14553,7 +14845,7 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
14553
14845
|
});
|
|
14554
14846
|
var interpolateY = animatedValue.interpolate({
|
|
14555
14847
|
inputRange: [0, 1],
|
|
14556
|
-
outputRange: [20, -distance]
|
|
14848
|
+
outputRange: toastConfig.position === 'top' ? [-20, distance] : [20, -distance]
|
|
14557
14849
|
});
|
|
14558
14850
|
return /*#__PURE__*/React.createElement(Container, {
|
|
14559
14851
|
themeVariant: variant,
|
|
@@ -14611,6 +14903,8 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
14611
14903
|
var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
14612
14904
|
var _ref2$displayType = _ref2.displayType,
|
|
14613
14905
|
displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
|
|
14906
|
+
_ref2$position = _ref2.position,
|
|
14907
|
+
position = _ref2$position === void 0 ? 'bottom' : _ref2$position,
|
|
14614
14908
|
style = _ref2.style;
|
|
14615
14909
|
var theme = useTheme$1();
|
|
14616
14910
|
var _useState = useState([]),
|
|
@@ -14643,6 +14937,7 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
14643
14937
|
});
|
|
14644
14938
|
return /*#__PURE__*/React.createElement(ToastContainerWrapper, {
|
|
14645
14939
|
pointerEvents: "box-none",
|
|
14940
|
+
position: position,
|
|
14646
14941
|
style: style
|
|
14647
14942
|
}, displayType === 'single' ? /*#__PURE__*/React.createElement(SingleToastDisplay, {
|
|
14648
14943
|
toastList: toastList,
|
|
@@ -14669,16 +14964,13 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
14669
14964
|
});
|
|
14670
14965
|
ToastContainer.displayName = 'ToastContainer';
|
|
14671
14966
|
|
|
14672
|
-
var ToastContext = /*#__PURE__*/createContext({});
|
|
14673
|
-
var ToastConfigContext = /*#__PURE__*/createContext({});
|
|
14674
|
-
var useToast = function useToast() {
|
|
14675
|
-
return useContext(ToastContext);
|
|
14676
|
-
};
|
|
14677
|
-
|
|
14678
14967
|
var ToastProvider = function ToastProvider(_ref) {
|
|
14679
14968
|
var children = _ref.children,
|
|
14680
14969
|
_ref$displayType = _ref.displayType,
|
|
14681
|
-
displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType
|
|
14970
|
+
displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType,
|
|
14971
|
+
_position = _ref.position;
|
|
14972
|
+
var position = _position === undefined ? 'bottom' : _position;
|
|
14973
|
+
useDeprecation("Toast's position prop is deprecated and will be removed in the next major release.\nPlease remove it.", _position !== undefined);
|
|
14682
14974
|
var toastRef = useRef(null);
|
|
14683
14975
|
// @ts-expect-error: TODO: @tungv Fix this type error
|
|
14684
14976
|
var _useState = useState(null),
|
|
@@ -14692,9 +14984,10 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
14692
14984
|
}, []);
|
|
14693
14985
|
var config = useMemo(function () {
|
|
14694
14986
|
return {
|
|
14695
|
-
displayType: displayType
|
|
14987
|
+
displayType: displayType,
|
|
14988
|
+
position: position
|
|
14696
14989
|
};
|
|
14697
|
-
}, [displayType]);
|
|
14990
|
+
}, [displayType, position]);
|
|
14698
14991
|
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
14699
14992
|
value: refState
|
|
14700
14993
|
}, /*#__PURE__*/React.createElement(View, {
|
|
@@ -14705,7 +14998,8 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
14705
14998
|
value: config
|
|
14706
14999
|
}, /*#__PURE__*/React.createElement(ToastContainer, {
|
|
14707
15000
|
ref: toastRef,
|
|
14708
|
-
displayType: displayType
|
|
15001
|
+
displayType: displayType,
|
|
15002
|
+
position: position
|
|
14709
15003
|
}))));
|
|
14710
15004
|
};
|
|
14711
15005
|
|
|
@@ -15812,12 +16106,18 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
15812
16106
|
var icon = _ref.icon,
|
|
15813
16107
|
text = _ref.text,
|
|
15814
16108
|
rightChildren = _ref.rightChildren,
|
|
16109
|
+
_ref$fontSize = _ref.fontSize,
|
|
16110
|
+
fontSize = _ref$fontSize === void 0 ? 'large' : _ref$fontSize,
|
|
15815
16111
|
_ref$intent = _ref.intent,
|
|
15816
16112
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
16113
|
+
_ref$fontWeight = _ref.fontWeight,
|
|
16114
|
+
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
15817
16115
|
_ref$size = _ref.size,
|
|
15818
16116
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
15819
16117
|
style = _ref.style,
|
|
15820
16118
|
testID = _ref.testID;
|
|
16119
|
+
useDeprecation("SectionHeading's fontSize prop is deprecated and will be removed in the next major release, please remove it.", fontSize !== undefined);
|
|
16120
|
+
useDeprecation("SectionHeading's fontWeight prop is deprecated and will be removed in the next major release, please remove it.", fontWeight !== undefined);
|
|
15821
16121
|
return /*#__PURE__*/React.createElement(StyledHeading, {
|
|
15822
16122
|
themeSize: size,
|
|
15823
16123
|
style: style,
|
|
@@ -17030,10 +17330,6 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
|
|
|
17030
17330
|
return refs.current;
|
|
17031
17331
|
};
|
|
17032
17332
|
|
|
17033
|
-
var isHeroIcon = function isHeroIcon(x) {
|
|
17034
|
-
return IconList.includes(x);
|
|
17035
|
-
};
|
|
17036
|
-
|
|
17037
17333
|
var TabWithBadge = function TabWithBadge(_ref) {
|
|
17038
17334
|
var config = _ref.config,
|
|
17039
17335
|
tabItem = _ref.tabItem;
|
|
@@ -17454,14 +17750,17 @@ var StyledText = index$a(Typography.Caption)(function (_ref2) {
|
|
|
17454
17750
|
};
|
|
17455
17751
|
});
|
|
17456
17752
|
|
|
17457
|
-
var _excluded$2 = ["content", "intent", "style", "testID"];
|
|
17753
|
+
var _excluded$2 = ["content", "variant", "intent", "style", "testID"];
|
|
17458
17754
|
var Tag = function Tag(_ref) {
|
|
17459
17755
|
var content = _ref.content,
|
|
17756
|
+
_ref$variant = _ref.variant,
|
|
17757
|
+
variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
|
|
17460
17758
|
_ref$intent = _ref.intent,
|
|
17461
17759
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
17462
17760
|
style = _ref.style,
|
|
17463
17761
|
testID = _ref.testID,
|
|
17464
17762
|
nativeProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
17763
|
+
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
17465
17764
|
return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
17466
17765
|
themeIntent: intent,
|
|
17467
17766
|
style: style,
|
|
@@ -34016,4 +34315,4 @@ var index = Object.assign(RichTextEditorWithRef, {
|
|
|
34016
34315
|
Toolbar: EditorToolbar
|
|
34017
34316
|
});
|
|
34018
34317
|
|
|
34019
|
-
export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
|
|
34318
|
+
export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
|