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