@hero-design/rn 8.42.4 → 8.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +11 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +670 -499
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +1109 -937
  7. package/package.json +1 -1
  8. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +197 -211
  9. package/src/components/BottomSheet/index.tsx +1 -1
  10. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
  11. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -20
  12. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
  13. package/src/components/Button/StyledButton.tsx +4 -0
  14. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +16 -42
  15. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +10 -0
  16. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  17. package/src/components/Carousel/__tests__/index.spec.tsx +8 -10
  18. package/src/components/Chip/StyledChip.tsx +121 -0
  19. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +943 -0
  20. package/src/components/Chip/__tests__/index.spec.tsx +136 -0
  21. package/src/components/Chip/index.tsx +82 -0
  22. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -0
  23. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +417 -399
  24. package/src/components/Error/__tests__/index.spec.tsx +9 -6
  25. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  26. package/src/components/Icon/IconList.ts +1 -0
  27. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +8 -10
  28. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +367 -451
  29. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -10
  30. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +357 -419
  31. package/src/components/Success/__tests__/index.spec.tsx +9 -6
  32. package/src/components/Tabs/__tests__/SceneView.spec.tsx +19 -23
  33. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +417 -399
  34. package/src/index.ts +2 -0
  35. package/src/testHelpers/renderWithTheme.tsx +1 -7
  36. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +38 -1
  37. package/src/theme/components/button.ts +0 -1
  38. package/src/theme/components/chip.ts +47 -0
  39. package/src/theme/getTheme.ts +3 -0
  40. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
  41. package/types/components/Chip/StyledChip.d.ts +31 -0
  42. package/types/components/Chip/index.d.ts +26 -0
  43. package/types/components/Icon/IconList.d.ts +1 -1
  44. package/types/components/Icon/index.d.ts +1 -1
  45. package/types/components/Icon/utils.d.ts +1 -1
  46. package/types/index.d.ts +2 -1
  47. package/types/theme/components/button.d.ts +0 -1
  48. package/types/theme/components/chip.d.ts +40 -0
  49. package/types/theme/getTheme.d.ts +2 -0
  50. package/.turbo/turbo-publish:npm.log +0 -0
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as reactNative from 'react-native';
2
- import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, UIManager, LayoutAnimation, TouchableOpacity, Text as Text$1, Easing, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, ScrollView, BackHandler, FlatList, useWindowDimensions, TextInput as TextInput$1, PanResponder, Modal as Modal$1, InteractionManager, Keyboard, SectionList, RefreshControl as RefreshControl$1 } from 'react-native';
2
+ import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, UIManager, LayoutAnimation, TouchableOpacity, Text as Text$1, Easing, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, ScrollView, Modal as Modal$1, FlatList, useWindowDimensions, TextInput as TextInput$1, PanResponder, BackHandler, InteractionManager, Keyboard, SectionList, RefreshControl as RefreshControl$1 } from 'react-native';
3
3
  import React, { useContext, createContext, createElement, useMemo, forwardRef, useEffect, useCallback, useRef, useState, memo, useReducer, useLayoutEffect, useImperativeHandle, isValidElement } from 'react';
4
4
  import { createIconSet } from 'react-native-vector-icons';
5
5
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
@@ -1973,8 +1973,7 @@ var getButtonTheme = function getButtonTheme(theme) {
1973
1973
  buttonPadding: theme.space.medium,
1974
1974
  textButtonPadding: theme.space.smallMedium,
1975
1975
  iconPadding: theme.space.smallMedium,
1976
- utilityPadding: theme.space.small,
1977
- loadingIndicatorWrapperVerticalPadding: theme.space.xxsmall / 2
1976
+ utilityPadding: theme.space.small
1978
1977
  };
1979
1978
  var sizes = {
1980
1979
  iconSize: theme.fontSizes.xxlarge
@@ -2167,6 +2166,44 @@ var getCheckboxTheme = function getCheckboxTheme(theme) {
2167
2166
  };
2168
2167
  };
2169
2168
 
2169
+ var getChipTheme = function getChipTheme(theme) {
2170
+ var colors = {
2171
+ primaryBackground: theme.colors.darkGlobalSurface,
2172
+ secondaryBackground: theme.colors.highlightedSurface,
2173
+ filledBackground: theme.colors.defaultGlobalSurface,
2174
+ outlinedBackground: 'transparent',
2175
+ wrapperBorder: theme.colors.primaryOutline,
2176
+ wrapperSelectedBorder: 'transparent',
2177
+ selectedPrimaryText: theme.colors.defaultGlobalSurface
2178
+ };
2179
+ var space = {
2180
+ wrapperHorizontalPadding: theme.space.smallMedium,
2181
+ wrapperVerticalPadding: theme.space.small,
2182
+ iconWrapperMarginRight: theme.space.small
2183
+ };
2184
+ var sizes = {
2185
+ wrapperBorder: theme.borderWidths.base
2186
+ };
2187
+ var radii = {
2188
+ wrapper: theme.radii.rounded
2189
+ };
2190
+ var borderWidths = {
2191
+ wrapper: theme.borderWidths.base,
2192
+ icon: theme.borderWidths.medium
2193
+ };
2194
+ var shadows = {
2195
+ filledWrapper: theme.shadows["default"]
2196
+ };
2197
+ return {
2198
+ colors: colors,
2199
+ space: space,
2200
+ sizes: sizes,
2201
+ radii: radii,
2202
+ borderWidths: borderWidths,
2203
+ shadows: shadows
2204
+ };
2205
+ };
2206
+
2170
2207
  var getContentNavigatorTheme = function getContentNavigatorTheme(theme) {
2171
2208
  var space = {
2172
2209
  valueHorizontalPadding: theme.space.small
@@ -3319,6 +3356,7 @@ var getTheme$1 = function getTheme() {
3319
3356
  carousel: getCarouselTheme(globalTheme),
3320
3357
  cardCarousel: getCardCarouselTheme(globalTheme),
3321
3358
  checkbox: getCheckboxTheme(globalTheme),
3359
+ chip: getChipTheme(globalTheme),
3322
3360
  contentNavigator: getContentNavigatorTheme(globalTheme),
3323
3361
  datePicker: getDatePickerTheme(globalTheme),
3324
3362
  divider: getDividerTheme(globalTheme),
@@ -6372,7 +6410,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
6372
6410
  });
6373
6411
  });
6374
6412
 
6375
- var _excluded$z = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6413
+ var _excluded$A = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
6376
6414
  var Text = function Text(_ref) {
6377
6415
  var children = _ref.children,
6378
6416
  _ref$fontSize = _ref.fontSize,
@@ -6385,7 +6423,7 @@ var Text = function Text(_ref) {
6385
6423
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6386
6424
  _ref$allowFontScaling = _ref.allowFontScaling,
6387
6425
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6388
- nativeProps = _objectWithoutProperties(_ref, _excluded$z);
6426
+ nativeProps = _objectWithoutProperties(_ref, _excluded$A);
6389
6427
  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.');
6390
6428
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
6391
6429
  themeFontSize: fontSize,
@@ -6415,7 +6453,7 @@ var StyledCaption = index$a(Text$1)(function (_ref) {
6415
6453
  };
6416
6454
  });
6417
6455
 
6418
- var _excluded$y = ["children", "fontWeight", "intent", "allowFontScaling"];
6456
+ var _excluded$z = ["children", "fontWeight", "intent", "allowFontScaling"];
6419
6457
  var Caption = function Caption(_ref) {
6420
6458
  var children = _ref.children,
6421
6459
  _ref$fontWeight = _ref.fontWeight,
@@ -6424,7 +6462,7 @@ var Caption = function Caption(_ref) {
6424
6462
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6425
6463
  _ref$allowFontScaling = _ref.allowFontScaling,
6426
6464
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6427
- nativeProps = _objectWithoutProperties(_ref, _excluded$y);
6465
+ nativeProps = _objectWithoutProperties(_ref, _excluded$z);
6428
6466
  return /*#__PURE__*/React.createElement(StyledCaption, _extends$1({}, nativeProps, {
6429
6467
  themeFontWeight: fontWeight,
6430
6468
  themeIntent: intent,
@@ -6432,7 +6470,7 @@ var Caption = function Caption(_ref) {
6432
6470
  }), children);
6433
6471
  };
6434
6472
 
6435
- var StyledLabel$1 = index$a(Text$1)(function (_ref) {
6473
+ var StyledLabel$2 = index$a(Text$1)(function (_ref) {
6436
6474
  var themeIntent = _ref.themeIntent,
6437
6475
  theme = _ref.theme;
6438
6476
  return {
@@ -6443,15 +6481,15 @@ var StyledLabel$1 = index$a(Text$1)(function (_ref) {
6443
6481
  };
6444
6482
  });
6445
6483
 
6446
- var _excluded$x = ["children", "intent", "allowFontScaling"];
6484
+ var _excluded$y = ["children", "intent", "allowFontScaling"];
6447
6485
  var Label = function Label(_ref) {
6448
6486
  var children = _ref.children,
6449
6487
  _ref$intent = _ref.intent,
6450
6488
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
6451
6489
  _ref$allowFontScaling = _ref.allowFontScaling,
6452
6490
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6453
- nativeProps = _objectWithoutProperties(_ref, _excluded$x);
6454
- return /*#__PURE__*/React.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
6491
+ nativeProps = _objectWithoutProperties(_ref, _excluded$y);
6492
+ return /*#__PURE__*/React.createElement(StyledLabel$2, _extends$1({}, nativeProps, {
6455
6493
  themeIntent: intent,
6456
6494
  allowFontScaling: allowFontScaling
6457
6495
  }), children);
@@ -6471,7 +6509,7 @@ var StyledTitle$1 = index$a(Text$1)(function (_ref) {
6471
6509
  };
6472
6510
  });
6473
6511
 
6474
- var _excluded$w = ["children", "intent", "allowFontScaling", "level", "typeface"];
6512
+ var _excluded$x = ["children", "intent", "allowFontScaling", "level", "typeface"];
6475
6513
  var Title = function Title(_ref) {
6476
6514
  var children = _ref.children,
6477
6515
  _ref$intent = _ref.intent,
@@ -6482,7 +6520,7 @@ var Title = function Title(_ref) {
6482
6520
  level = _ref$level === void 0 ? 'h1' : _ref$level,
6483
6521
  _ref$typeface = _ref.typeface,
6484
6522
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6485
- nativeProps = _objectWithoutProperties(_ref, _excluded$w);
6523
+ nativeProps = _objectWithoutProperties(_ref, _excluded$x);
6486
6524
  return /*#__PURE__*/React.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
6487
6525
  themeLevel: level,
6488
6526
  themeTypeface: typeface,
@@ -6517,7 +6555,7 @@ var StyledBody = index$a(Text$1)(function (_ref) {
6517
6555
  };
6518
6556
  });
6519
6557
 
6520
- var _excluded$v = ["children", "intent", "allowFontScaling", "typeface", "variant"];
6558
+ var _excluded$w = ["children", "intent", "allowFontScaling", "typeface", "variant"];
6521
6559
  var Body = function Body(_ref) {
6522
6560
  var children = _ref.children,
6523
6561
  _ref$intent = _ref.intent,
@@ -6528,7 +6566,7 @@ var Body = function Body(_ref) {
6528
6566
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6529
6567
  _ref$variant = _ref.variant,
6530
6568
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
6531
- nativeProps = _objectWithoutProperties(_ref, _excluded$v);
6569
+ nativeProps = _objectWithoutProperties(_ref, _excluded$w);
6532
6570
  return /*#__PURE__*/React.createElement(StyledBody, _extends$1({}, nativeProps, {
6533
6571
  themeTypeface: typeface,
6534
6572
  themeIntent: intent,
@@ -6546,7 +6584,7 @@ var Typography = {
6546
6584
  };
6547
6585
 
6548
6586
  // 🔴 DO NOT EDIT — This file is generated automatically.
6549
- 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', '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', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', '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', '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', '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-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', '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', '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', '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', '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', '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'];
6587
+ 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', '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', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', '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', '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', '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-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', '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', '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', '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', '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'];
6550
6588
 
6551
6589
  var activate = 59000;
6552
6590
  var adjustment = 59003;
@@ -6623,18 +6661,18 @@ var add = 59181;
6623
6661
  var bold = 59204;
6624
6662
  var cancel = 59218;
6625
6663
  var checkmark = 59223;
6626
- var italic = 59306;
6627
- var number = 59331;
6628
- var percentage = 59336;
6629
- var redeem = 59346;
6630
- var refresh = 59347;
6631
- var remove = 59348;
6632
- var restart = 59350;
6633
- var strikethrough = 59372;
6634
- var sync = 59378;
6635
- var transfer = 59385;
6636
- var unavailable = 59388;
6637
- var underline = 59389;
6664
+ var italic = 59307;
6665
+ var number = 59332;
6666
+ var percentage = 59337;
6667
+ var redeem = 59347;
6668
+ var refresh = 59348;
6669
+ var remove = 59349;
6670
+ var restart = 59351;
6671
+ var strikethrough = 59373;
6672
+ var sync = 59379;
6673
+ var transfer = 59386;
6674
+ var unavailable = 59389;
6675
+ var underline = 59390;
6638
6676
  var glyphMap = {
6639
6677
  activate: activate,
6640
6678
  "add-emoji": 59001,
@@ -6931,112 +6969,113 @@ var glyphMap = {
6931
6969
  "folder-user-outlined": 59292,
6932
6970
  "form-outlined": 59293,
6933
6971
  "funnel-filter-outline": 59294,
6934
- "graph-outlined": 59295,
6935
- "hand-holding-user-outlined": 59296,
6936
- "happy-sun-outlined": 59297,
6937
- "health-bag-outlined": 59298,
6938
- "heart-outlined": 59299,
6939
- "home-active-outlined": 59300,
6940
- "home-outlined": 59301,
6941
- "id-card-outlined": 59302,
6942
- "image-outlined": 59303,
6943
- "import-outlined": 59304,
6944
- "instapay-outlined": 59305,
6972
+ "goal-outlined": 59295,
6973
+ "graph-outlined": 59296,
6974
+ "hand-holding-user-outlined": 59297,
6975
+ "happy-sun-outlined": 59298,
6976
+ "health-bag-outlined": 59299,
6977
+ "heart-outlined": 59300,
6978
+ "home-active-outlined": 59301,
6979
+ "home-outlined": 59302,
6980
+ "id-card-outlined": 59303,
6981
+ "image-outlined": 59304,
6982
+ "import-outlined": 59305,
6983
+ "instapay-outlined": 59306,
6945
6984
  italic: italic,
6946
- "link-1": 59307,
6947
- "link-2": 59308,
6948
- "list-outlined": 59309,
6949
- "live-help-outlined": 59310,
6950
- "location-on-outlined": 59311,
6951
- "location-outlined": 59312,
6952
- "lock-outlined": 59313,
6953
- "locked-file-outlined": 59314,
6954
- "log-out": 59315,
6955
- "mail-outlined": 59316,
6956
- "media-content-outlined": 59317,
6957
- "menu-close": 59318,
6958
- "menu-expand": 59319,
6959
- "menu-fold-outlined": 59320,
6960
- "menu-unfold-outlined": 59321,
6961
- "moneybag-outlined": 59322,
6962
- "moon-outlined": 59323,
6963
- "more-horizontal": 59324,
6964
- "more-vertical": 59325,
6965
- "multiple-folders-outlined": 59326,
6966
- "multiple-users-outlined": 59327,
6967
- "near-me-outlined": 59328,
6968
- "node-outlined": 59329,
6969
- "number-points": 59330,
6985
+ "link-1": 59308,
6986
+ "link-2": 59309,
6987
+ "list-outlined": 59310,
6988
+ "live-help-outlined": 59311,
6989
+ "location-on-outlined": 59312,
6990
+ "location-outlined": 59313,
6991
+ "lock-outlined": 59314,
6992
+ "locked-file-outlined": 59315,
6993
+ "log-out": 59316,
6994
+ "mail-outlined": 59317,
6995
+ "media-content-outlined": 59318,
6996
+ "menu-close": 59319,
6997
+ "menu-expand": 59320,
6998
+ "menu-fold-outlined": 59321,
6999
+ "menu-unfold-outlined": 59322,
7000
+ "moneybag-outlined": 59323,
7001
+ "moon-outlined": 59324,
7002
+ "more-horizontal": 59325,
7003
+ "more-vertical": 59326,
7004
+ "multiple-folders-outlined": 59327,
7005
+ "multiple-users-outlined": 59328,
7006
+ "near-me-outlined": 59329,
7007
+ "node-outlined": 59330,
7008
+ "number-points": 59331,
6970
7009
  number: number,
6971
- "overview-outlined": 59332,
6972
- "payment-summary-outlined": 59333,
6973
- "payslip-outlined": 59334,
6974
- "pencil-outlined": 59335,
7010
+ "overview-outlined": 59333,
7011
+ "payment-summary-outlined": 59334,
7012
+ "payslip-outlined": 59335,
7013
+ "pencil-outlined": 59336,
6975
7014
  percentage: percentage,
6976
- "phone-outlined": 59337,
6977
- "piggy-bank-outlined": 59338,
6978
- "plane-outlined": 59339,
6979
- "play-circle-outlined": 59340,
6980
- "print-outlined": 59341,
6981
- "propane-tank-outlined": 59342,
6982
- "qr-code-outlined": 59343,
6983
- "qualification-outlined": 59344,
6984
- "re-assign": 59345,
7015
+ "phone-outlined": 59338,
7016
+ "piggy-bank-outlined": 59339,
7017
+ "plane-outlined": 59340,
7018
+ "play-circle-outlined": 59341,
7019
+ "print-outlined": 59342,
7020
+ "propane-tank-outlined": 59343,
7021
+ "qr-code-outlined": 59344,
7022
+ "qualification-outlined": 59345,
7023
+ "re-assign": 59346,
6985
7024
  redeem: redeem,
6986
7025
  refresh: refresh,
6987
7026
  remove: remove,
6988
- "reply-outlined": 59349,
7027
+ "reply-outlined": 59350,
6989
7028
  restart: restart,
6990
- "return-arrow": 59351,
6991
- "rostering-outlined": 59352,
6992
- "save-outlined": 59353,
6993
- "schedule-outlined": 59354,
6994
- "search-outlined": 59355,
6995
- "search-secured-outlined": 59356,
6996
- "send-outlined": 59357,
6997
- "share-1": 59358,
6998
- "share-2": 59359,
6999
- "share-outlined": 59360,
7000
- "show-chart-outlined": 59361,
7001
- "single-down-arrow": 59362,
7002
- "single-left-arrow": 59363,
7003
- "single-right-arrow": 59364,
7004
- "single-up-arrow": 59365,
7005
- "sparkle-outlined": 59366,
7006
- "speaker-active-outlined": 59367,
7007
- "speaker-outlined": 59368,
7008
- "star-circle-outlined": 59369,
7009
- "star-outlined": 59370,
7010
- "stopwatch-outlined": 59371,
7029
+ "return-arrow": 59352,
7030
+ "rostering-outlined": 59353,
7031
+ "save-outlined": 59354,
7032
+ "schedule-outlined": 59355,
7033
+ "search-outlined": 59356,
7034
+ "search-secured-outlined": 59357,
7035
+ "send-outlined": 59358,
7036
+ "share-1": 59359,
7037
+ "share-2": 59360,
7038
+ "share-outlined": 59361,
7039
+ "show-chart-outlined": 59362,
7040
+ "single-down-arrow": 59363,
7041
+ "single-left-arrow": 59364,
7042
+ "single-right-arrow": 59365,
7043
+ "single-up-arrow": 59366,
7044
+ "sparkle-outlined": 59367,
7045
+ "speaker-active-outlined": 59368,
7046
+ "speaker-outlined": 59369,
7047
+ "star-circle-outlined": 59370,
7048
+ "star-outlined": 59371,
7049
+ "stopwatch-outlined": 59372,
7011
7050
  strikethrough: strikethrough,
7012
- "styler-outlined": 59373,
7013
- "suitcase-clock-outlined": 59374,
7014
- "suitcase-outlined": 59375,
7015
- "survey-outlined": 59376,
7016
- "switch-outlined": 59377,
7051
+ "styler-outlined": 59374,
7052
+ "suitcase-clock-outlined": 59375,
7053
+ "suitcase-outlined": 59376,
7054
+ "survey-outlined": 59377,
7055
+ "switch-outlined": 59378,
7017
7056
  sync: sync,
7018
- "tag-outlined": 59379,
7019
- "target-outlined": 59380,
7020
- "tennis-outlined": 59381,
7021
- "ticket-outlined": 59382,
7022
- "timesheet-outlined": 59383,
7023
- "today-outlined": 59384,
7057
+ "tag-outlined": 59380,
7058
+ "target-outlined": 59381,
7059
+ "tennis-outlined": 59382,
7060
+ "ticket-outlined": 59383,
7061
+ "timesheet-outlined": 59384,
7062
+ "today-outlined": 59385,
7024
7063
  transfer: transfer,
7025
- "trash-bin-outlined": 59386,
7026
- "umbrela-outlined": 59387,
7064
+ "trash-bin-outlined": 59387,
7065
+ "umbrela-outlined": 59388,
7027
7066
  unavailable: unavailable,
7028
7067
  underline: underline,
7029
- "union-outlined": 59390,
7030
- "unlock-outlined": 59391,
7031
- "upload-outlined": 59392,
7032
- "user-circle-outlined": 59393,
7033
- "user-gear-outlined": 59394,
7034
- "user-outlined": 59395,
7035
- "user-rectangle-outlined": 59396,
7036
- "video-1-outlined": 59397,
7037
- "video-2-outlined": 59398,
7038
- "volunteer-outlined": 59399,
7039
- "wallet-outlined": 59400
7068
+ "union-outlined": 59391,
7069
+ "unlock-outlined": 59392,
7070
+ "upload-outlined": 59393,
7071
+ "user-circle-outlined": 59394,
7072
+ "user-gear-outlined": 59395,
7073
+ "user-outlined": 59396,
7074
+ "user-rectangle-outlined": 59397,
7075
+ "video-1-outlined": 59398,
7076
+ "video-2-outlined": 59399,
7077
+ "volunteer-outlined": 59400,
7078
+ "wallet-outlined": 59401
7040
7079
  };
7041
7080
 
7042
7081
  var HeroIcon = createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
@@ -7061,10 +7100,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
7061
7100
  };
7062
7101
  });
7063
7102
 
7064
- var _excluded$u = ["style"];
7103
+ var _excluded$v = ["style"];
7065
7104
  var AnimatedIcon = function AnimatedIcon(_ref) {
7066
7105
  var style = _ref.style,
7067
- otherProps = _objectWithoutProperties(_ref, _excluded$u);
7106
+ otherProps = _objectWithoutProperties(_ref, _excluded$v);
7068
7107
  var rotateAnimation = useRef(new Animated.Value(0));
7069
7108
  useEffect(function () {
7070
7109
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
@@ -7169,7 +7208,7 @@ var AccordionItem = function AccordionItem(_ref) {
7169
7208
  }, content));
7170
7209
  };
7171
7210
 
7172
- var _excluded$t = ["key"];
7211
+ var _excluded$u = ["key"];
7173
7212
  var Accordion = function Accordion(_ref) {
7174
7213
  var items = _ref.items,
7175
7214
  activeItemKey = _ref.activeItemKey,
@@ -7190,7 +7229,7 @@ var Accordion = function Accordion(_ref) {
7190
7229
  testID: testID
7191
7230
  }, items.map(function (_ref2, index) {
7192
7231
  var key = _ref2.key,
7193
- props = _objectWithoutProperties(_ref2, _excluded$t);
7232
+ props = _objectWithoutProperties(_ref2, _excluded$u);
7194
7233
  var open = _activeItemKey === key;
7195
7234
  return /*#__PURE__*/React.createElement(React.Fragment, {
7196
7235
  key: key
@@ -7588,7 +7627,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
7588
7627
  };
7589
7628
  });
7590
7629
 
7591
- var _excluded$s = ["children", "visible", "intent", "style", "testID"];
7630
+ var _excluded$t = ["children", "visible", "intent", "style", "testID"];
7592
7631
  var Status = function Status(_ref) {
7593
7632
  var children = _ref.children,
7594
7633
  _ref$visible = _ref.visible,
@@ -7597,7 +7636,7 @@ var Status = function Status(_ref) {
7597
7636
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7598
7637
  style = _ref.style,
7599
7638
  testID = _ref.testID,
7600
- nativeProps = _objectWithoutProperties(_ref, _excluded$s);
7639
+ nativeProps = _objectWithoutProperties(_ref, _excluded$t);
7601
7640
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
7602
7641
  opacity = _React$useRef.current;
7603
7642
  var isFirstRendering = React.useRef(true);
@@ -7630,7 +7669,7 @@ var Status = function Status(_ref) {
7630
7669
  }));
7631
7670
  };
7632
7671
 
7633
- var _excluded$r = ["content", "visible", "max", "intent", "style", "testID"];
7672
+ var _excluded$s = ["content", "visible", "max", "intent", "style", "testID"];
7634
7673
  var DEFAULT_MAX_NUMBER = 99;
7635
7674
  var getPaddingState = function getPaddingState(content) {
7636
7675
  return content.length > 1 ? 'wideContent' : 'narrowContent';
@@ -7645,7 +7684,7 @@ var Badge = function Badge(_ref) {
7645
7684
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
7646
7685
  style = _ref.style,
7647
7686
  testID = _ref.testID,
7648
- nativeProps = _objectWithoutProperties(_ref, _excluded$r);
7687
+ nativeProps = _objectWithoutProperties(_ref, _excluded$s);
7649
7688
  var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
7650
7689
  opacity = _React$useRef.current;
7651
7690
  var isFirstRendering = React.useRef(true);
@@ -7749,7 +7788,7 @@ function omit(keys, obj) {
7749
7788
  return result;
7750
7789
  }
7751
7790
 
7752
- var _excluded$q = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7791
+ var _excluded$r = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
7753
7792
  var getInactiveIcon = function getInactiveIcon(icon) {
7754
7793
  var inactiveIcon = "".concat(icon, "-outlined");
7755
7794
  return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
@@ -7760,7 +7799,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
7760
7799
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
7761
7800
  selectedTabKey = _ref.selectedTabKey,
7762
7801
  tabs = _ref.tabs,
7763
- nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7802
+ nativeProps = _objectWithoutProperties(_ref, _excluded$r);
7764
7803
  useDeprecation('BottomNavigation is deprecated and will be removed in the next major release. Please remove it.');
7765
7804
  var insets = useSafeAreaInsets();
7766
7805
  /**
@@ -7847,13 +7886,13 @@ var StyledDivider = index$a(View)(function (_ref) {
7847
7886
  }, horizontalMargin), verticalMargin);
7848
7887
  });
7849
7888
 
7850
- var _excluded$p = ["marginHorizontal", "marginVertical", "style", "testID"];
7889
+ var _excluded$q = ["marginHorizontal", "marginVertical", "style", "testID"];
7851
7890
  var Divider = function Divider(_ref) {
7852
7891
  var marginHorizontal = _ref.marginHorizontal,
7853
7892
  marginVertical = _ref.marginVertical,
7854
7893
  style = _ref.style,
7855
7894
  testID = _ref.testID,
7856
- nativeProps = _objectWithoutProperties(_ref, _excluded$p);
7895
+ nativeProps = _objectWithoutProperties(_ref, _excluded$q);
7857
7896
  return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
7858
7897
  themeMarginHorizontal: marginHorizontal,
7859
7898
  themeMarginVertical: marginVertical,
@@ -7917,7 +7956,7 @@ var StyledFooter = index$a(View)(function (_ref4) {
7917
7956
  flexDirection: 'row'
7918
7957
  };
7919
7958
  });
7920
- var StyledIconWrapper$3 = index$a(View)(function (_ref5) {
7959
+ var StyledIconWrapper$4 = index$a(View)(function (_ref5) {
7921
7960
  var theme = _ref5.theme;
7922
7961
  return {
7923
7962
  alignItems: 'center',
@@ -7939,20 +7978,16 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
7939
7978
  backgroundColor: theme.__hd__.button.colors[intent]
7940
7979
  };
7941
7980
  };
7942
- var StyledLoadingIndicatorWrapper = index$a(View)(function (_ref) {
7943
- var theme = _ref.theme;
7944
- return {
7945
- flexDirection: 'row',
7946
- justifyContent: 'center',
7947
- alignItems: 'center',
7948
- paddingVertical: theme.__hd__.button.space.loadingIndicatorWrapperVerticalPadding
7949
- };
7981
+ var StyledLoadingIndicatorWrapper = index$a(View)({
7982
+ flexDirection: 'row',
7983
+ justifyContent: 'center',
7984
+ alignItems: 'center'
7950
7985
  });
7951
- var StyledLoadingDot = index$a(View)(function (_ref2) {
7952
- var _ref2$size = _ref2.size,
7953
- size = _ref2$size === void 0 ? 12 : _ref2$size,
7954
- themeVariant = _ref2.themeVariant,
7955
- theme = _ref2.theme;
7986
+ var StyledLoadingDot = index$a(View)(function (_ref) {
7987
+ var _ref$size = _ref.size,
7988
+ size = _ref$size === void 0 ? 12 : _ref$size,
7989
+ themeVariant = _ref.themeVariant,
7990
+ theme = _ref.theme;
7956
7991
  var themeStyling = function themeStyling() {
7957
7992
  switch (themeVariant) {
7958
7993
  case 'basic-transparent':
@@ -7976,14 +8011,12 @@ var StyledLoadingDot = index$a(View)(function (_ref2) {
7976
8011
  return _objectSpread2({
7977
8012
  width: size,
7978
8013
  height: size,
7979
- marginTop: theme.space.xsmall,
7980
- marginBottom: theme.space.xsmall,
7981
8014
  marginHorizontal: theme.space.small,
7982
8015
  borderRadius: theme.space.small
7983
8016
  }, themeStyling());
7984
8017
  });
7985
8018
 
7986
- var _excluded$o = ["count", "size", "testID", "themeVariant"];
8019
+ var _excluded$p = ["count", "size", "testID", "themeVariant"];
7987
8020
  var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
7988
8021
  var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
7989
8022
  var renderDotComponent = function renderDotComponent(_ref) {
@@ -8015,7 +8048,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
8015
8048
  size = _ref2$size === void 0 ? 12 : _ref2$size,
8016
8049
  testID = _ref2.testID,
8017
8050
  themeVariant = _ref2.themeVariant,
8018
- nativeProps = _objectWithoutProperties(_ref2, _excluded$o);
8051
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$p);
8019
8052
  var progressAnimation = useRef(new Animated.Value(0));
8020
8053
  useEffect(function () {
8021
8054
  var animation = Animated.loop(Animated.timing(progressAnimation.current, {
@@ -8058,6 +8091,7 @@ var genFilledContainerStyles = function genFilledContainerStyles(theme, intent,
8058
8091
  };
8059
8092
  };
8060
8093
  return _objectSpread2({
8094
+ height: scale(60),
8061
8095
  flexDirection: 'row',
8062
8096
  justifyContent: 'center',
8063
8097
  alignItems: 'center',
@@ -8078,6 +8112,7 @@ var genOutlineContainerStyles = function genOutlineContainerStyles(theme, intent
8078
8112
  };
8079
8113
  };
8080
8114
  return _objectSpread2({
8115
+ height: scale(60),
8081
8116
  flexDirection: 'row',
8082
8117
  justifyContent: 'center',
8083
8118
  alignItems: 'center',
@@ -8132,6 +8167,7 @@ var StyledButtonContainer = index$a(TouchableHighlight)(function (_ref) {
8132
8167
  case 'text-secondary':
8133
8168
  case 'text-danger':
8134
8169
  return {
8170
+ height: scale(60),
8135
8171
  borderRadius: theme.__hd__.button.radii.text,
8136
8172
  flexDirection: 'row',
8137
8173
  justifyContent: 'center',
@@ -8445,7 +8481,7 @@ var Header = function Header(_ref) {
8445
8481
  style: {
8446
8482
  flex: 1
8447
8483
  }
8448
- }, content), showCloseButton ? /*#__PURE__*/React.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React.createElement(CompoundButton.Icon, {
8484
+ }, content), showCloseButton ? /*#__PURE__*/React.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React.createElement(CompoundButton.Icon, {
8449
8485
  icon: "cancel",
8450
8486
  onPress: onRequestClose,
8451
8487
  intent: "text",
@@ -8454,11 +8490,11 @@ var Header = function Header(_ref) {
8454
8490
  })) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
8455
8491
  };
8456
8492
 
8457
- var _excluded$n = ["scrollEventThrottle"];
8493
+ var _excluded$o = ["scrollEventThrottle"];
8458
8494
  var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
8459
8495
  var _ref$scrollEventThrot = _ref.scrollEventThrottle,
8460
8496
  scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
8461
- props = _objectWithoutProperties(_ref, _excluded$n);
8497
+ props = _objectWithoutProperties(_ref, _excluded$o);
8462
8498
  var _useContext = useContext(BottomSheetContext),
8463
8499
  setInternalShowDivider = _useContext.setInternalShowDivider;
8464
8500
  var onScrollBeginDrag = useCallback(function (e) {
@@ -8484,332 +8520,6 @@ var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
8484
8520
  }));
8485
8521
  };
8486
8522
 
8487
- var customAlphabet = function customAlphabet(alphabet) {
8488
- var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
8489
- return function () {
8490
- var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
8491
- var id = '';
8492
- var i = size;
8493
- while (i--) {
8494
- id += alphabet[Math.random() * alphabet.length | 0];
8495
- }
8496
- return id;
8497
- };
8498
- };
8499
-
8500
- var ACTIONS;
8501
- (function (ACTIONS) {
8502
- ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
8503
- ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
8504
- ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
8505
- ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
8506
- })(ACTIONS || (ACTIONS = {}));
8507
- var INITIAL_STATE = {};
8508
-
8509
- var PortalStateContext = /*#__PURE__*/createContext(null);
8510
- var PortalDispatchContext = /*#__PURE__*/createContext(null);
8511
-
8512
- var usePortal = function usePortal() {
8513
- var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
8514
- var dispatch = useContext(PortalDispatchContext);
8515
- if (dispatch === null) {
8516
- throw new Error("You must add 'PortalProvider' to the root component.");
8517
- }
8518
- var registerHost = useCallback(function () {
8519
- dispatch({
8520
- type: ACTIONS.REGISTER_HOST,
8521
- hostName: hostName
8522
- });
8523
- }, []);
8524
- var deregisterHost = useCallback(function () {
8525
- dispatch({
8526
- type: ACTIONS.DEREGISTER_HOST,
8527
- hostName: hostName
8528
- });
8529
- }, []);
8530
- var addUpdatePortal = useCallback(function (name, node) {
8531
- dispatch({
8532
- type: ACTIONS.ADD_UPDATE_PORTAL,
8533
- hostName: hostName,
8534
- portalName: name,
8535
- node: node
8536
- });
8537
- }, []);
8538
- var removePortal = useCallback(function (name) {
8539
- dispatch({
8540
- type: ACTIONS.REMOVE_PORTAL,
8541
- hostName: hostName,
8542
- portalName: name
8543
- });
8544
- }, []);
8545
- return {
8546
- registerHost: registerHost,
8547
- deregisterHost: deregisterHost,
8548
- addPortal: addUpdatePortal,
8549
- updatePortal: addUpdatePortal,
8550
- removePortal: removePortal
8551
- };
8552
- };
8553
-
8554
- var usePortalState = function usePortalState(hostName) {
8555
- var state = useContext(PortalStateContext);
8556
- if (state === null) {
8557
- throw new Error("You must add 'PortalProvider' to the root component.");
8558
- }
8559
- return state[hostName] || [];
8560
- };
8561
-
8562
- var PortalHostComponent = function PortalHostComponent(_ref) {
8563
- var name = _ref.name;
8564
- var state = usePortalState(name);
8565
- var _usePortal = usePortal(name),
8566
- registerHost = _usePortal.registerHost,
8567
- deregisterHost = _usePortal.deregisterHost;
8568
- useEffect(function () {
8569
- registerHost();
8570
- return function () {
8571
- deregisterHost();
8572
- };
8573
- }, []);
8574
- return /*#__PURE__*/React.createElement(React.Fragment, null, state.map(function (item) {
8575
- return item.node;
8576
- }));
8577
- };
8578
- var PortalHost = /*#__PURE__*/memo(PortalHostComponent);
8579
- PortalHost.displayName = 'PortalHost';
8580
-
8581
- var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
8582
- if (!(hostName in state)) {
8583
- return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
8584
- }
8585
- return _objectSpread2({}, state);
8586
- };
8587
- var deregisterHost = function deregisterHost(state, hostName) {
8588
- return _objectSpread2({}, omit([hostName], state));
8589
- };
8590
- var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
8591
- var newState = registerHostIfNotExist(state, hostName);
8592
- var index = newState[hostName].findIndex(function (item) {
8593
- return item.name === portalName;
8594
- });
8595
- if (index !== -1) {
8596
- return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
8597
- if (index === i) {
8598
- return _objectSpread2(_objectSpread2({}, item), {}, {
8599
- node: node
8600
- });
8601
- }
8602
- return item;
8603
- })));
8604
- }
8605
- return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
8606
- name: portalName,
8607
- node: node
8608
- }])));
8609
- };
8610
- var removePortal = function removePortal(state, hostName, portalName) {
8611
- if (!(hostName in state)) {
8612
- return _objectSpread2({}, state);
8613
- }
8614
- return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
8615
- return item.name !== portalName;
8616
- })));
8617
- };
8618
- var reducer = function reducer(state, action) {
8619
- var type = action.type;
8620
- switch (type) {
8621
- case ACTIONS.REGISTER_HOST:
8622
- return registerHostIfNotExist(state, action.hostName);
8623
- case ACTIONS.DEREGISTER_HOST:
8624
- return deregisterHost(state, action.hostName);
8625
- case ACTIONS.ADD_UPDATE_PORTAL:
8626
- return addUpdatePortal(state, action.hostName, action.portalName, action.node);
8627
- case ACTIONS.REMOVE_PORTAL:
8628
- return removePortal(state, action.hostName, action.portalName);
8629
- default:
8630
- return _objectSpread2({}, state);
8631
- }
8632
- };
8633
-
8634
- var PortalProviderComponent = function PortalProviderComponent(_ref) {
8635
- var _ref$rootHostName = _ref.rootHostName,
8636
- rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
8637
- children = _ref.children;
8638
- var _useReducer = useReducer(reducer, INITIAL_STATE),
8639
- _useReducer2 = _slicedToArray(_useReducer, 2),
8640
- state = _useReducer2[0],
8641
- dispatch = _useReducer2[1];
8642
- return /*#__PURE__*/React.createElement(PortalDispatchContext.Provider, {
8643
- value: dispatch
8644
- }, /*#__PURE__*/React.createElement(PortalStateContext.Provider, {
8645
- value: state
8646
- }, children, /*#__PURE__*/React.createElement(PortalHost, {
8647
- name: rootHostName
8648
- })));
8649
- };
8650
- var PortalProvider = /*#__PURE__*/memo(PortalProviderComponent);
8651
- PortalProvider.displayName = 'PortalProvider';
8652
-
8653
- var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
8654
- var PortalComponent = function PortalComponent(_ref) {
8655
- var name = _ref.name,
8656
- hostName = _ref.hostName,
8657
- children = _ref.children,
8658
- theme = _ref.theme;
8659
- var defaultTheme = useTheme();
8660
- var _usePortal = usePortal(hostName),
8661
- addUpdatePortal = _usePortal.addPortal,
8662
- removePortal = _usePortal.removePortal;
8663
- var nameOrRandom = useMemo(function () {
8664
- return name || nanoid();
8665
- }, [name]);
8666
- var ChildrenComponent = useMemo(function () {
8667
- return /*#__PURE__*/React.createElement(ThemeProvider, {
8668
- theme: theme || defaultTheme
8669
- }, children);
8670
- }, [theme, children, defaultTheme]);
8671
- useLayoutEffect(function () {
8672
- addUpdatePortal(nameOrRandom, ChildrenComponent);
8673
- return function () {
8674
- removePortal(nameOrRandom);
8675
- };
8676
- }, [addUpdatePortal]);
8677
- useLayoutEffect(function () {
8678
- addUpdatePortal(nameOrRandom, ChildrenComponent);
8679
- }, [ChildrenComponent]);
8680
- return null;
8681
- };
8682
- var Portal = /*#__PURE__*/memo(PortalComponent);
8683
- Portal.displayName = 'Portal';
8684
- var Portal$1 = Object.assign(Portal, {
8685
- Provider: PortalProvider,
8686
- Host: PortalHost
8687
- });
8688
-
8689
- var _excluded$m = ["visible"];
8690
- var DEFAULT_BACKDROP_OPACITY = 0.4;
8691
- var DEFAULT_ANIMATION_CONFIG = {
8692
- easing: Easing.inOut(Easing.cubic),
8693
- useNativeDriver: Platform.OS !== 'web',
8694
- duration: 400
8695
- };
8696
- var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
8697
- var children = _ref.children,
8698
- onShow = _ref.onShow,
8699
- onRequestClose = _ref.onRequestClose,
8700
- testID = _ref.testID,
8701
- _ref$animationType = _ref.animationType,
8702
- animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
8703
- _ref$transparent = _ref.transparent,
8704
- transparent = _ref$transparent === void 0 ? false : _ref$transparent,
8705
- onDismiss = _ref.onDismiss;
8706
- var theme = useTheme();
8707
- var animatedBackdropValue = useRef(new Animated.Value(0)).current;
8708
- var animatedModalValue = useRef(new Animated.Value(0)).current;
8709
- // Show or hide the backdrop and modal content
8710
- var animateBackdropAndContent = useCallback(function (_ref2) {
8711
- var toValue = _ref2.toValue,
8712
- callback = _ref2.callback;
8713
- if (animationType !== 'none') {
8714
- // Backdrop animation
8715
- if (!transparent) {
8716
- Animated.timing(animatedBackdropValue, _objectSpread2({
8717
- toValue: toValue
8718
- }, DEFAULT_ANIMATION_CONFIG)).start();
8719
- }
8720
- // Modal content animation
8721
- Animated.timing(animatedModalValue, _objectSpread2({
8722
- toValue: toValue
8723
- }, DEFAULT_ANIMATION_CONFIG)).start(callback);
8724
- } else {
8725
- callback === null || callback === void 0 ? void 0 : callback();
8726
- }
8727
- }, [animationType, onShow, transparent]);
8728
- var backdropOpacityAnimation = animatedBackdropValue.interpolate({
8729
- inputRange: [0, 1],
8730
- outputRange: [0, DEFAULT_BACKDROP_OPACITY]
8731
- });
8732
- var modalAnimation = animatedModalValue.interpolate({
8733
- inputRange: [0, 1],
8734
- outputRange: animationType === 'slide' ? [Dimensions.get('window').height, 0] : [0, 1]
8735
- });
8736
- useImperativeHandle(ref, function () {
8737
- return {
8738
- show: function show() {
8739
- animateBackdropAndContent({
8740
- toValue: 1,
8741
- callback: onShow
8742
- });
8743
- },
8744
- hide: function hide(wrapperCallback) {
8745
- animateBackdropAndContent({
8746
- toValue: 0,
8747
- callback: function callback() {
8748
- if (Platform.OS === 'ios') {
8749
- onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
8750
- }
8751
- wrapperCallback();
8752
- }
8753
- });
8754
- }
8755
- };
8756
- }, [onDismiss, onShow, animateBackdropAndContent]);
8757
- // Back button handler
8758
- useEffect(function () {
8759
- var backHandler = BackHandler.addEventListener('hardwareBackPress', function () {
8760
- onRequestClose === null || onRequestClose === void 0 ? void 0 : onRequestClose();
8761
- return true;
8762
- });
8763
- return function () {
8764
- return backHandler.remove();
8765
- };
8766
- }, [onRequestClose]);
8767
- return /*#__PURE__*/React.createElement(Portal$1, null, /*#__PURE__*/React.createElement(Animated.View, {
8768
- style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
8769
- backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
8770
- opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
8771
- })
8772
- }), /*#__PURE__*/React.createElement(Animated.View, {
8773
- testID: testID,
8774
- style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
8775
- opacity: animationType === 'fade' ? modalAnimation : 1,
8776
- transform: [{
8777
- translateY: animationType === 'slide' ? modalAnimation : 0
8778
- }]
8779
- })
8780
- }, children));
8781
- });
8782
- var ModalWrapper = function ModalWrapper(_ref3) {
8783
- var _ref3$visible = _ref3.visible,
8784
- visible = _ref3$visible === void 0 ? true : _ref3$visible,
8785
- props = _objectWithoutProperties(_ref3, _excluded$m);
8786
- var modalRef = useRef(null);
8787
- var _useState = useState(visible),
8788
- _useState2 = _slicedToArray(_useState, 2),
8789
- internalVisible = _useState2[0],
8790
- setInternalVisible = _useState2[1];
8791
- useEffect(function () {
8792
- if (visible) {
8793
- setInternalVisible(true);
8794
- } else {
8795
- var _modalRef$current;
8796
- // Wait for animation to finish before hiding the modal
8797
- (_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 ? void 0 : _modalRef$current.hide(function () {
8798
- return setInternalVisible(false);
8799
- });
8800
- }
8801
- }, [visible]);
8802
- useEffect(function () {
8803
- if (internalVisible) {
8804
- var _modalRef$current2;
8805
- (_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 ? void 0 : _modalRef$current2.show();
8806
- }
8807
- }, [internalVisible]);
8808
- return internalVisible ? /*#__PURE__*/React.createElement(Modal, _extends$1({
8809
- ref: modalRef
8810
- }, props)) : null;
8811
- };
8812
-
8813
8523
  var BottomSheet = function BottomSheet(_ref) {
8814
8524
  var open = _ref.open,
8815
8525
  header = _ref.header,
@@ -8886,7 +8596,7 @@ var BottomSheet = function BottomSheet(_ref) {
8886
8596
  setInternalShowDivider: setInternalShowDivider
8887
8597
  };
8888
8598
  }, [setInternalShowDivider]);
8889
- return /*#__PURE__*/React.createElement(ModalWrapper, {
8599
+ return /*#__PURE__*/React.createElement(Modal$1, {
8890
8600
  visible: visible,
8891
8601
  onRequestClose: onRequestClose,
8892
8602
  transparent: true,
@@ -9099,7 +8809,7 @@ var borderWidths = {
9099
8809
  var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
9100
8810
  var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
9101
8811
 
9102
- var _excluded$l = ["theme"];
8812
+ var _excluded$n = ["theme"];
9103
8813
  var getThemeValue = function getThemeValue(theme, key, props) {
9104
8814
  var propConfig = config[key];
9105
8815
  var propValue = props[key];
@@ -9126,18 +8836,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
9126
8836
  var configKeys = Object.keys(config);
9127
8837
  var StyledBox = index$a(View)(function (_ref5) {
9128
8838
  var theme = _ref5.theme,
9129
- otherProps = _objectWithoutProperties(_ref5, _excluded$l);
8839
+ otherProps = _objectWithoutProperties(_ref5, _excluded$n);
9130
8840
  var styleProps = pick(configKeys, otherProps);
9131
8841
  var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
9132
8842
  return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
9133
8843
  });
9134
8844
 
9135
- var _excluded$k = ["children", "style", "testID"];
8845
+ var _excluded$m = ["children", "style", "testID"];
9136
8846
  var Box = function Box(_ref) {
9137
8847
  var children = _ref.children,
9138
8848
  style = _ref.style,
9139
8849
  testID = _ref.testID,
9140
- otherProps = _objectWithoutProperties(_ref, _excluded$k);
8850
+ otherProps = _objectWithoutProperties(_ref, _excluded$m);
9141
8851
  return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
9142
8852
  style: style,
9143
8853
  testID: testID
@@ -11777,7 +11487,7 @@ var Calendar = function Calendar(_ref) {
11777
11487
  })));
11778
11488
  };
11779
11489
 
11780
- var _excluded$j = ["rounded", "size", "testID", "style"];
11490
+ var _excluded$l = ["rounded", "size", "testID", "style"];
11781
11491
  var Image = function Image(_ref) {
11782
11492
  var _ref$rounded = _ref.rounded,
11783
11493
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -11785,7 +11495,7 @@ var Image = function Image(_ref) {
11785
11495
  size = _ref$size === void 0 ? '6xlarge' : _ref$size,
11786
11496
  testID = _ref.testID,
11787
11497
  style = _ref.style,
11788
- imageNativeProps = _objectWithoutProperties(_ref, _excluded$j);
11498
+ imageNativeProps = _objectWithoutProperties(_ref, _excluded$l);
11789
11499
  var theme = useTheme();
11790
11500
  var imageSize = theme.__hd__.image.sizes[size];
11791
11501
  return /*#__PURE__*/React.createElement(Image$1, _extends$1({
@@ -11990,12 +11700,12 @@ var Indicator = index$a(View)(function (_ref2) {
11990
11700
  };
11991
11701
  });
11992
11702
 
11993
- var _excluded$i = ["intent", "children"];
11703
+ var _excluded$k = ["intent", "children"];
11994
11704
  var DataCard = function DataCard(_ref) {
11995
11705
  var _ref$intent = _ref.intent,
11996
11706
  intent = _ref$intent === void 0 ? 'info' : _ref$intent,
11997
11707
  children = _ref.children,
11998
- nativeProps = _objectWithoutProperties(_ref, _excluded$i);
11708
+ nativeProps = _objectWithoutProperties(_ref, _excluded$k);
11999
11709
  return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
12000
11710
  themeIntent: intent,
12001
11711
  testID: "data-card-indicator"
@@ -12013,11 +11723,11 @@ var StyledCard$1 = index$a(View)(function (_ref) {
12013
11723
  });
12014
11724
  });
12015
11725
 
12016
- var _excluded$h = ["intent", "children"];
11726
+ var _excluded$j = ["intent", "children"];
12017
11727
  var Card = function Card(_ref) {
12018
11728
  var intent = _ref.intent,
12019
11729
  children = _ref.children,
12020
- nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11730
+ nativeProps = _objectWithoutProperties(_ref, _excluded$j);
12021
11731
  return /*#__PURE__*/React.createElement(StyledCard$1, _extends$1({}, nativeProps, {
12022
11732
  themeIntent: intent
12023
11733
  }), children);
@@ -12224,7 +11934,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
12224
11934
  });
12225
11935
  CardCarousel.displayName = 'CardCarousel';
12226
11936
 
12227
- var _excluded$g = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
11937
+ var _excluded$i = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
12228
11938
  function useStateFromProp(initialValue) {
12229
11939
  var _useState = useState(initialValue),
12230
11940
  _useState2 = _slicedToArray(_useState, 2),
@@ -12250,7 +11960,7 @@ var Carousel = function Carousel(_ref) {
12250
11960
  testID = _ref.testID,
12251
11961
  _ref$pageControlPosit = _ref.pageControlPosition,
12252
11962
  pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
12253
- nativeProps = _objectWithoutProperties(_ref, _excluded$g);
11963
+ nativeProps = _objectWithoutProperties(_ref, _excluded$i);
12254
11964
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
12255
11965
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
12256
11966
  var carouselRef = useRef(null);
@@ -12344,6 +12054,141 @@ var index$8 = Object.assign(Carousel, {
12344
12054
  Card: CardCarousel
12345
12055
  });
12346
12056
 
12057
+ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
12058
+ var themeVariant = _ref.themeVariant,
12059
+ themeSelected = _ref.themeSelected,
12060
+ theme = _ref.theme;
12061
+ var getShadowStyles = function getShadowStyles() {
12062
+ switch (themeVariant) {
12063
+ case 'filled':
12064
+ return _objectSpread2({}, theme.__hd__.chip.shadows.filledWrapper);
12065
+ case 'outlined':
12066
+ return undefined;
12067
+ }
12068
+ };
12069
+ var getBorderStyles = function getBorderStyles() {
12070
+ var commonStyle = {
12071
+ borderWidth: theme.__hd__.chip.sizes.wrapperBorder
12072
+ };
12073
+ if (themeSelected) {
12074
+ return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12075
+ borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
12076
+ });
12077
+ }
12078
+ switch (themeVariant) {
12079
+ case 'outlined':
12080
+ {
12081
+ return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12082
+ borderColor: theme.__hd__.chip.colors.wrapperBorder
12083
+ });
12084
+ }
12085
+ case 'filled':
12086
+ {
12087
+ return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12088
+ borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
12089
+ });
12090
+ }
12091
+ }
12092
+ };
12093
+ var getBackgroundStyles = function getBackgroundStyles() {
12094
+ if (themeSelected) {
12095
+ switch (themeVariant) {
12096
+ case 'outlined':
12097
+ {
12098
+ return {
12099
+ backgroundColor: theme.__hd__.chip.colors.primaryBackground
12100
+ };
12101
+ }
12102
+ case 'filled':
12103
+ return {
12104
+ backgroundColor: theme.__hd__.chip.colors.secondaryBackground
12105
+ };
12106
+ }
12107
+ } else {
12108
+ switch (themeVariant) {
12109
+ case 'outlined':
12110
+ {
12111
+ return {
12112
+ backgroundColor: theme.__hd__.chip.colors.outlinedBackground
12113
+ };
12114
+ }
12115
+ case 'filled':
12116
+ return {
12117
+ backgroundColor: theme.__hd__.chip.colors.filledBackground
12118
+ };
12119
+ }
12120
+ }
12121
+ };
12122
+ return _objectSpread2(_objectSpread2(_objectSpread2({
12123
+ alignSelf: 'flex-start',
12124
+ flexDirection: 'row',
12125
+ alignItems: 'center',
12126
+ justifyContent: 'center',
12127
+ borderRadius: theme.__hd__.chip.radii.wrapper,
12128
+ paddingVertical: theme.__hd__.chip.space.wrapperVerticalPadding,
12129
+ paddingHorizontal: theme.__hd__.chip.space.wrapperHorizontalPadding,
12130
+ borderWidth: theme.__hd__.chip.sizes.wrapperBorder
12131
+ }, getShadowStyles()), getBorderStyles()), getBackgroundStyles());
12132
+ });
12133
+ var StyledIconWrapper$3 = index$a(Box)(function (_ref2) {
12134
+ var theme = _ref2.theme;
12135
+ return {
12136
+ marginRight: theme.__hd__.chip.space.iconWrapperMarginRight
12137
+ };
12138
+ });
12139
+ var StyledLabel$1 = index$a(Typography.Body)(function (_ref3) {
12140
+ var themeSelected = _ref3.themeSelected,
12141
+ themeVariant = _ref3.themeVariant,
12142
+ theme = _ref3.theme;
12143
+ return {
12144
+ color: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.colors.selectedPrimaryText : undefined
12145
+ };
12146
+ });
12147
+ var StyledIcon$1 = index$a(Icon)(function (_ref4) {
12148
+ var themeSelected = _ref4.themeSelected,
12149
+ themeVariant = _ref4.themeVariant,
12150
+ theme = _ref4.theme;
12151
+ return {
12152
+ color: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.colors.selectedPrimaryText : undefined
12153
+ };
12154
+ });
12155
+
12156
+ var _excluded$h = ["label", "variant", "selected", "icon", "onPress"];
12157
+ var Chip = function Chip(_ref) {
12158
+ var label = _ref.label,
12159
+ _ref$variant = _ref.variant,
12160
+ variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
12161
+ _ref$selected = _ref.selected,
12162
+ selected = _ref$selected === void 0 ? false : _ref$selected,
12163
+ icon = _ref.icon,
12164
+ onPress = _ref.onPress,
12165
+ otherProps = _objectWithoutProperties(_ref, _excluded$h);
12166
+ var internalIcon = React.useMemo(function () {
12167
+ if (icon && variant === 'filled') {
12168
+ return icon;
12169
+ }
12170
+ if (selected) {
12171
+ return 'checkmark';
12172
+ }
12173
+ return undefined;
12174
+ }, [icon, selected, variant]);
12175
+ return /*#__PURE__*/React.createElement(StyledChipWrapper, _extends$1({
12176
+ onPress: onPress,
12177
+ themeVariant: variant,
12178
+ themeSelected: selected
12179
+ }, otherProps), internalIcon && /*#__PURE__*/React.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React.createElement(StyledIcon$1, {
12180
+ size: "xsmall",
12181
+ icon: internalIcon,
12182
+ themeSelected: selected,
12183
+ themeVariant: variant,
12184
+ testID: "chip-icon-".concat(internalIcon)
12185
+ })), /*#__PURE__*/React.createElement(StyledLabel$1, {
12186
+ variant: "small",
12187
+ themeVariant: variant,
12188
+ themeSelected: selected
12189
+ }, label));
12190
+ };
12191
+
12347
12192
  var StyledWrapper$7 = index$a(TouchableOpacity)(function (_ref) {
12348
12193
  var theme = _ref.theme,
12349
12194
  themeState = _ref.themeState;
@@ -12587,7 +12432,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
12587
12432
  };
12588
12433
  });
12589
12434
 
12590
- var _excluded$f = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
12435
+ var _excluded$g = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
12591
12436
  var getState$1 = function getState(_ref) {
12592
12437
  var disabled = _ref.disabled,
12593
12438
  error = _ref.error,
@@ -12639,7 +12484,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12639
12484
  allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
12640
12485
  _ref2$variant = _ref2.variant,
12641
12486
  variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
12642
- nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
12487
+ nativeProps = _objectWithoutProperties(_ref2, _excluded$g);
12643
12488
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
12644
12489
  var isEmptyValue = displayText.length === 0;
12645
12490
  var actualSuffix = loading ? 'loading' : suffix;
@@ -13093,11 +12938,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
13093
12938
  }))));
13094
12939
  };
13095
12940
 
13096
- var _excluded$e = ["variant"];
12941
+ var _excluded$f = ["variant"];
13097
12942
  var DatePicker = function DatePicker(_ref) {
13098
12943
  var _ref$variant = _ref.variant,
13099
12944
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
13100
- props = _objectWithoutProperties(_ref, _excluded$e);
12945
+ props = _objectWithoutProperties(_ref, _excluded$f);
13101
12946
  if (variant === 'calendar') {
13102
12947
  return /*#__PURE__*/React.createElement(DatePickerCalendar, props);
13103
12948
  }
@@ -13449,6 +13294,332 @@ var Empty = function Empty(_ref) {
13449
13294
  }, description));
13450
13295
  };
13451
13296
 
13297
+ var customAlphabet = function customAlphabet(alphabet) {
13298
+ var defaultSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 21;
13299
+ return function () {
13300
+ var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
13301
+ var id = '';
13302
+ var i = size;
13303
+ while (i--) {
13304
+ id += alphabet[Math.random() * alphabet.length | 0];
13305
+ }
13306
+ return id;
13307
+ };
13308
+ };
13309
+
13310
+ var ACTIONS;
13311
+ (function (ACTIONS) {
13312
+ ACTIONS[ACTIONS["REGISTER_HOST"] = 0] = "REGISTER_HOST";
13313
+ ACTIONS[ACTIONS["DEREGISTER_HOST"] = 1] = "DEREGISTER_HOST";
13314
+ ACTIONS[ACTIONS["ADD_UPDATE_PORTAL"] = 2] = "ADD_UPDATE_PORTAL";
13315
+ ACTIONS[ACTIONS["REMOVE_PORTAL"] = 3] = "REMOVE_PORTAL";
13316
+ })(ACTIONS || (ACTIONS = {}));
13317
+ var INITIAL_STATE = {};
13318
+
13319
+ var PortalStateContext = /*#__PURE__*/createContext(null);
13320
+ var PortalDispatchContext = /*#__PURE__*/createContext(null);
13321
+
13322
+ var usePortal = function usePortal() {
13323
+ var hostName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'root';
13324
+ var dispatch = useContext(PortalDispatchContext);
13325
+ if (dispatch === null) {
13326
+ throw new Error("You must add 'PortalProvider' to the root component.");
13327
+ }
13328
+ var registerHost = useCallback(function () {
13329
+ dispatch({
13330
+ type: ACTIONS.REGISTER_HOST,
13331
+ hostName: hostName
13332
+ });
13333
+ }, []);
13334
+ var deregisterHost = useCallback(function () {
13335
+ dispatch({
13336
+ type: ACTIONS.DEREGISTER_HOST,
13337
+ hostName: hostName
13338
+ });
13339
+ }, []);
13340
+ var addUpdatePortal = useCallback(function (name, node) {
13341
+ dispatch({
13342
+ type: ACTIONS.ADD_UPDATE_PORTAL,
13343
+ hostName: hostName,
13344
+ portalName: name,
13345
+ node: node
13346
+ });
13347
+ }, []);
13348
+ var removePortal = useCallback(function (name) {
13349
+ dispatch({
13350
+ type: ACTIONS.REMOVE_PORTAL,
13351
+ hostName: hostName,
13352
+ portalName: name
13353
+ });
13354
+ }, []);
13355
+ return {
13356
+ registerHost: registerHost,
13357
+ deregisterHost: deregisterHost,
13358
+ addPortal: addUpdatePortal,
13359
+ updatePortal: addUpdatePortal,
13360
+ removePortal: removePortal
13361
+ };
13362
+ };
13363
+
13364
+ var usePortalState = function usePortalState(hostName) {
13365
+ var state = useContext(PortalStateContext);
13366
+ if (state === null) {
13367
+ throw new Error("You must add 'PortalProvider' to the root component.");
13368
+ }
13369
+ return state[hostName] || [];
13370
+ };
13371
+
13372
+ var PortalHostComponent = function PortalHostComponent(_ref) {
13373
+ var name = _ref.name;
13374
+ var state = usePortalState(name);
13375
+ var _usePortal = usePortal(name),
13376
+ registerHost = _usePortal.registerHost,
13377
+ deregisterHost = _usePortal.deregisterHost;
13378
+ useEffect(function () {
13379
+ registerHost();
13380
+ return function () {
13381
+ deregisterHost();
13382
+ };
13383
+ }, []);
13384
+ return /*#__PURE__*/React.createElement(React.Fragment, null, state.map(function (item) {
13385
+ return item.node;
13386
+ }));
13387
+ };
13388
+ var PortalHost = /*#__PURE__*/memo(PortalHostComponent);
13389
+ PortalHost.displayName = 'PortalHost';
13390
+
13391
+ var registerHostIfNotExist = function registerHostIfNotExist(state, hostName) {
13392
+ if (!(hostName in state)) {
13393
+ return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, []));
13394
+ }
13395
+ return _objectSpread2({}, state);
13396
+ };
13397
+ var deregisterHost = function deregisterHost(state, hostName) {
13398
+ return _objectSpread2({}, omit([hostName], state));
13399
+ };
13400
+ var addUpdatePortal = function addUpdatePortal(state, hostName, portalName, node) {
13401
+ var newState = registerHostIfNotExist(state, hostName);
13402
+ var index = newState[hostName].findIndex(function (item) {
13403
+ return item.name === portalName;
13404
+ });
13405
+ if (index !== -1) {
13406
+ return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, newState[hostName].map(function (item, i) {
13407
+ if (index === i) {
13408
+ return _objectSpread2(_objectSpread2({}, item), {}, {
13409
+ node: node
13410
+ });
13411
+ }
13412
+ return item;
13413
+ })));
13414
+ }
13415
+ return _objectSpread2(_objectSpread2({}, newState), {}, _defineProperty({}, hostName, [].concat(_toConsumableArray(newState[hostName]), [{
13416
+ name: portalName,
13417
+ node: node
13418
+ }])));
13419
+ };
13420
+ var removePortal = function removePortal(state, hostName, portalName) {
13421
+ if (!(hostName in state)) {
13422
+ return _objectSpread2({}, state);
13423
+ }
13424
+ return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, hostName, state[hostName].filter(function (item) {
13425
+ return item.name !== portalName;
13426
+ })));
13427
+ };
13428
+ var reducer = function reducer(state, action) {
13429
+ var type = action.type;
13430
+ switch (type) {
13431
+ case ACTIONS.REGISTER_HOST:
13432
+ return registerHostIfNotExist(state, action.hostName);
13433
+ case ACTIONS.DEREGISTER_HOST:
13434
+ return deregisterHost(state, action.hostName);
13435
+ case ACTIONS.ADD_UPDATE_PORTAL:
13436
+ return addUpdatePortal(state, action.hostName, action.portalName, action.node);
13437
+ case ACTIONS.REMOVE_PORTAL:
13438
+ return removePortal(state, action.hostName, action.portalName);
13439
+ default:
13440
+ return _objectSpread2({}, state);
13441
+ }
13442
+ };
13443
+
13444
+ var PortalProviderComponent = function PortalProviderComponent(_ref) {
13445
+ var _ref$rootHostName = _ref.rootHostName,
13446
+ rootHostName = _ref$rootHostName === void 0 ? 'root' : _ref$rootHostName,
13447
+ children = _ref.children;
13448
+ var _useReducer = useReducer(reducer, INITIAL_STATE),
13449
+ _useReducer2 = _slicedToArray(_useReducer, 2),
13450
+ state = _useReducer2[0],
13451
+ dispatch = _useReducer2[1];
13452
+ return /*#__PURE__*/React.createElement(PortalDispatchContext.Provider, {
13453
+ value: dispatch
13454
+ }, /*#__PURE__*/React.createElement(PortalStateContext.Provider, {
13455
+ value: state
13456
+ }, children, /*#__PURE__*/React.createElement(PortalHost, {
13457
+ name: rootHostName
13458
+ })));
13459
+ };
13460
+ var PortalProvider = /*#__PURE__*/memo(PortalProviderComponent);
13461
+ PortalProvider.displayName = 'PortalProvider';
13462
+
13463
+ var nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz0123456789', 10);
13464
+ var PortalComponent = function PortalComponent(_ref) {
13465
+ var name = _ref.name,
13466
+ hostName = _ref.hostName,
13467
+ children = _ref.children,
13468
+ theme = _ref.theme;
13469
+ var defaultTheme = useTheme();
13470
+ var _usePortal = usePortal(hostName),
13471
+ addUpdatePortal = _usePortal.addPortal,
13472
+ removePortal = _usePortal.removePortal;
13473
+ var nameOrRandom = useMemo(function () {
13474
+ return name || nanoid();
13475
+ }, [name]);
13476
+ var ChildrenComponent = useMemo(function () {
13477
+ return /*#__PURE__*/React.createElement(ThemeProvider, {
13478
+ theme: theme || defaultTheme
13479
+ }, children);
13480
+ }, [theme, children, defaultTheme]);
13481
+ useLayoutEffect(function () {
13482
+ addUpdatePortal(nameOrRandom, ChildrenComponent);
13483
+ return function () {
13484
+ removePortal(nameOrRandom);
13485
+ };
13486
+ }, [addUpdatePortal]);
13487
+ useLayoutEffect(function () {
13488
+ addUpdatePortal(nameOrRandom, ChildrenComponent);
13489
+ }, [ChildrenComponent]);
13490
+ return null;
13491
+ };
13492
+ var Portal = /*#__PURE__*/memo(PortalComponent);
13493
+ Portal.displayName = 'Portal';
13494
+ var Portal$1 = Object.assign(Portal, {
13495
+ Provider: PortalProvider,
13496
+ Host: PortalHost
13497
+ });
13498
+
13499
+ var _excluded$e = ["visible"];
13500
+ var DEFAULT_BACKDROP_OPACITY = 0.4;
13501
+ var DEFAULT_ANIMATION_CONFIG = {
13502
+ easing: Easing.inOut(Easing.cubic),
13503
+ useNativeDriver: Platform.OS !== 'web',
13504
+ duration: 400
13505
+ };
13506
+ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
13507
+ var children = _ref.children,
13508
+ onShow = _ref.onShow,
13509
+ onRequestClose = _ref.onRequestClose,
13510
+ testID = _ref.testID,
13511
+ _ref$animationType = _ref.animationType,
13512
+ animationType = _ref$animationType === void 0 ? 'none' : _ref$animationType,
13513
+ _ref$transparent = _ref.transparent,
13514
+ transparent = _ref$transparent === void 0 ? false : _ref$transparent,
13515
+ onDismiss = _ref.onDismiss;
13516
+ var theme = useTheme();
13517
+ var animatedBackdropValue = useRef(new Animated.Value(0)).current;
13518
+ var animatedModalValue = useRef(new Animated.Value(0)).current;
13519
+ // Show or hide the backdrop and modal content
13520
+ var animateBackdropAndContent = useCallback(function (_ref2) {
13521
+ var toValue = _ref2.toValue,
13522
+ callback = _ref2.callback;
13523
+ if (animationType !== 'none') {
13524
+ // Backdrop animation
13525
+ if (!transparent) {
13526
+ Animated.timing(animatedBackdropValue, _objectSpread2({
13527
+ toValue: toValue
13528
+ }, DEFAULT_ANIMATION_CONFIG)).start();
13529
+ }
13530
+ // Modal content animation
13531
+ Animated.timing(animatedModalValue, _objectSpread2({
13532
+ toValue: toValue
13533
+ }, DEFAULT_ANIMATION_CONFIG)).start(callback);
13534
+ } else {
13535
+ callback === null || callback === void 0 ? void 0 : callback();
13536
+ }
13537
+ }, [animationType, onShow, transparent]);
13538
+ var backdropOpacityAnimation = animatedBackdropValue.interpolate({
13539
+ inputRange: [0, 1],
13540
+ outputRange: [0, DEFAULT_BACKDROP_OPACITY]
13541
+ });
13542
+ var modalAnimation = animatedModalValue.interpolate({
13543
+ inputRange: [0, 1],
13544
+ outputRange: animationType === 'slide' ? [Dimensions.get('window').height, 0] : [0, 1]
13545
+ });
13546
+ useImperativeHandle(ref, function () {
13547
+ return {
13548
+ show: function show() {
13549
+ animateBackdropAndContent({
13550
+ toValue: 1,
13551
+ callback: onShow
13552
+ });
13553
+ },
13554
+ hide: function hide(wrapperCallback) {
13555
+ animateBackdropAndContent({
13556
+ toValue: 0,
13557
+ callback: function callback() {
13558
+ if (Platform.OS === 'ios') {
13559
+ onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
13560
+ }
13561
+ wrapperCallback();
13562
+ }
13563
+ });
13564
+ }
13565
+ };
13566
+ }, [onDismiss, onShow, animateBackdropAndContent]);
13567
+ // Back button handler
13568
+ useEffect(function () {
13569
+ var backHandler = BackHandler.addEventListener('hardwareBackPress', function () {
13570
+ onRequestClose === null || onRequestClose === void 0 ? void 0 : onRequestClose();
13571
+ return true;
13572
+ });
13573
+ return function () {
13574
+ return backHandler.remove();
13575
+ };
13576
+ }, [onRequestClose]);
13577
+ return /*#__PURE__*/React.createElement(Portal$1, null, /*#__PURE__*/React.createElement(Animated.View, {
13578
+ style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
13579
+ backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
13580
+ opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
13581
+ })
13582
+ }), /*#__PURE__*/React.createElement(Animated.View, {
13583
+ testID: testID,
13584
+ style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
13585
+ opacity: animationType === 'fade' ? modalAnimation : 1,
13586
+ transform: [{
13587
+ translateY: animationType === 'slide' ? modalAnimation : 0
13588
+ }]
13589
+ })
13590
+ }, children));
13591
+ });
13592
+ var ModalWrapper = function ModalWrapper(_ref3) {
13593
+ var _ref3$visible = _ref3.visible,
13594
+ visible = _ref3$visible === void 0 ? true : _ref3$visible,
13595
+ props = _objectWithoutProperties(_ref3, _excluded$e);
13596
+ var modalRef = useRef(null);
13597
+ var _useState = useState(visible),
13598
+ _useState2 = _slicedToArray(_useState, 2),
13599
+ internalVisible = _useState2[0],
13600
+ setInternalVisible = _useState2[1];
13601
+ useEffect(function () {
13602
+ if (visible) {
13603
+ setInternalVisible(true);
13604
+ } else {
13605
+ var _modalRef$current;
13606
+ // Wait for animation to finish before hiding the modal
13607
+ (_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 ? void 0 : _modalRef$current.hide(function () {
13608
+ return setInternalVisible(false);
13609
+ });
13610
+ }
13611
+ }, [visible]);
13612
+ useEffect(function () {
13613
+ if (internalVisible) {
13614
+ var _modalRef$current2;
13615
+ (_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 ? void 0 : _modalRef$current2.show();
13616
+ }
13617
+ }, [internalVisible]);
13618
+ return internalVisible ? /*#__PURE__*/React.createElement(Modal, _extends$1({
13619
+ ref: modalRef
13620
+ }, props)) : null;
13621
+ };
13622
+
13452
13623
  var StyledErrorModal = index$a(ModalWrapper)({
13453
13624
  height: '100%',
13454
13625
  width: '100%'
@@ -33875,4 +34046,4 @@ var index = Object.assign(RichTextEditorWithRef, {
33875
34046
  Toolbar: EditorToolbar
33876
34047
  });
33877
34048
 
33878
- export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
34049
+ export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };