@hero-design/rn-work-uikit 1.9.3 → 1.9.5
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/CHANGELOG.md +18 -0
- package/lib/index.js +249 -266
- package/package.json +5 -5
- package/src/components/FormGroup/index.tsx +1 -1
- package/src/components/RichTextEditor/MentionList.tsx +2 -1
- package/src/components/RichTextEditor/utils/events.ts +1 -1
- package/src/components/TextInput/ErrorOrHelpText.tsx +1 -1
- package/src/components/TextInput/FloatingLabel.tsx +1 -1
- package/src/components/TextInput/InputComponent.tsx +1 -1
- package/src/components/TextInput/MaxLengthMessage.tsx +1 -1
- package/src/components/TextInput/PrefixComponent.tsx +1 -1
- package/src/components/TextInput/SuffixComponent.tsx +1 -1
- package/src/components/TextInput/__tests__/FloatingLabel.spec.tsx +13 -16
- package/src/components/TextInput/__tests__/PrefixComponent.spec.tsx +1 -1
- package/src/components/TextInput/__tests__/SuffixComponent.spec.tsx +2 -2
- package/src/components/TextInput/__tests__/index.spec.tsx +2 -2
- package/src/theme/ThemeProvider.ts +1 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +1 -1
- package/testUtils/renderWithTheme.tsx +2 -2
- package/.cursor/rules/performance-optimization.mdc +0 -64
- package/.cursor/rules/rn-work-uikit-rules.mdc +0 -202
- package/.cursor/rules/testing-rules.mdc +0 -114
package/lib/index.js
CHANGED
|
@@ -3735,13 +3735,13 @@ var StyledDivider = index$c(reactNative.View)(function (_ref) {
|
|
|
3735
3735
|
}, horizontalMargin), verticalMargin);
|
|
3736
3736
|
});
|
|
3737
3737
|
|
|
3738
|
-
var _excluded$
|
|
3738
|
+
var _excluded$Q = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
3739
3739
|
var Divider = function Divider(_ref) {
|
|
3740
3740
|
var marginHorizontal = _ref.marginHorizontal,
|
|
3741
3741
|
marginVertical = _ref.marginVertical,
|
|
3742
3742
|
style = _ref.style,
|
|
3743
3743
|
testID = _ref.testID,
|
|
3744
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
3744
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$Q);
|
|
3745
3745
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
3746
3746
|
themeMarginHorizontal: marginHorizontal,
|
|
3747
3747
|
themeMarginVertical: marginVertical,
|
|
@@ -6025,7 +6025,7 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
|
6025
6025
|
wrapper: theme.shadows.medium
|
|
6026
6026
|
};
|
|
6027
6027
|
var space = {
|
|
6028
|
-
titleMarginTop: theme.space.
|
|
6028
|
+
titleMarginTop: theme.space.xxsmall
|
|
6029
6029
|
};
|
|
6030
6030
|
return {
|
|
6031
6031
|
colors: colors,
|
|
@@ -8080,7 +8080,7 @@ var StyledLoadingDot = index$c(reactNative.View)(function (_ref) {
|
|
|
8080
8080
|
}, themeStyling());
|
|
8081
8081
|
});
|
|
8082
8082
|
|
|
8083
|
-
var _excluded$
|
|
8083
|
+
var _excluded$P = ["count", "size", "testID", "themeVariant"];
|
|
8084
8084
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
8085
8085
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
8086
8086
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -8112,7 +8112,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
8112
8112
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
8113
8113
|
testID = _ref2.testID,
|
|
8114
8114
|
themeVariant = _ref2.themeVariant,
|
|
8115
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
8115
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$P);
|
|
8116
8116
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
8117
8117
|
React.useEffect(function () {
|
|
8118
8118
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -8144,7 +8144,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
8144
8144
|
};
|
|
8145
8145
|
|
|
8146
8146
|
// 🔴 DO NOT EDIT — This file is generated automatically.
|
|
8147
|
-
var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', 'bookmark-checked', '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', 'dot', 'double-buildings', 'edit-template', 'envelope', 'exclude', 'expand-content', 'expense', 'explore_nearby', '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', 'global-pound', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'hero-points', 'home', 'image', 'import', 'incident-siren', 'instapay-daily', 'instapay-now', 'instapay', 'list', 'loading-2', 'loading', 'location-on', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'near-me', 'node', 'open-folder', 'paperclip-vertical', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-arrow', 'play-circle', 'pound-coin-shine', 'pound-sign', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'search', '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', 'thumb-down', 'thumb-up', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'academic-hat-outlined', 'accommodation-outlined', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'afternoon-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', 'automotive-outlined', 'bakery-outlined', 'bar-outlined', 'beauty-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-checked-outlined', 'bookmark-outlined', 'box-1-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calculator-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-in-outlined', 'clock-out-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cultural-site-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', 'electronics-outlined', 'email-outlined', 'end-break-outlined', 'enter-arrow', 'entertainment-outlined', 'envelope-outlined', 'evening-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-pound-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'fitness-outlined', 'folder-outlined', 'folder-upload-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'grocery-outlined', 'hand-holding-user-outlined', 'handshake-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', 'local_mall_outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'map-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'morning-outlined', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'park-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'pound-box-outlined', 'pound-card-outlined', 'pound-coin-shine-outlined', 'pound-credit-card-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'restaurant-outlined', '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-2', 'share-outlined', 'shield-check-outlined', 'shop-outlined', 'shopping_basket_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', 'start-break-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'thumb-down-outlined', 'thumb-up-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'transportation-outlined', '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', 'wellness-outlined'];
|
|
8147
|
+
var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', 'bookmark-checked', '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', 'dot', 'double-buildings', 'edit-template', 'envelope', 'exclude', 'expand-content', 'expense', 'explore_nearby', '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', 'global-pound', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'hero-points', 'home', 'image', 'import', 'incident-siren', 'instapay-daily', 'instapay-now', 'instapay', 'list', 'loading-2', 'loading', 'location-on', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'near-me', 'node', 'open-folder', 'paperclip-vertical', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-arrow', 'play-circle', 'pound-coin-shine', 'pound-sign', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'search', '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', 'thumb-down', 'thumb-up', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'academic-hat-outlined', 'accommodation-outlined', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'afternoon-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', 'automotive-outlined', 'bakery-outlined', 'bar-outlined', 'beauty-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-checked-outlined', 'bookmark-outlined', 'box-1-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calculator-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-in-outlined', 'clock-out-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cultural-site-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', 'electronics-outlined', 'email-outlined', 'end-break-outlined', 'enter-arrow', 'entertainment-outlined', 'envelope-outlined', 'evening-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-pound-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'fitness-outlined', 'folder-outlined', 'folder-upload-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'grocery-outlined', 'hand-holding-user-outlined', 'handshake-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', 'lighting-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'local_mall_outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'map-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'morning-outlined', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'park-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'pound-box-outlined', 'pound-card-outlined', 'pound-coin-shine-outlined', 'pound-credit-card-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'restaurant-outlined', '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-2', 'share-outlined', 'shield-check-outlined', 'shop-outlined', 'shopping_basket_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', 'start-break-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'thumb-down-outlined', 'thumb-up-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'transportation-outlined', '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', 'wellness-outlined'];
|
|
8148
8148
|
|
|
8149
8149
|
var activate = 59000;
|
|
8150
8150
|
var adjustment = 59003;
|
|
@@ -8225,19 +8225,19 @@ var bold = 59232;
|
|
|
8225
8225
|
var cancel = 59249;
|
|
8226
8226
|
var checkmark = 59255;
|
|
8227
8227
|
var italic = 59352;
|
|
8228
|
-
var local_mall_outlined =
|
|
8229
|
-
var number$2 =
|
|
8230
|
-
var percentage =
|
|
8231
|
-
var redeem =
|
|
8232
|
-
var refresh =
|
|
8233
|
-
var remove$1 =
|
|
8234
|
-
var restart =
|
|
8235
|
-
var shopping_basket_outlined =
|
|
8236
|
-
var strikethrough =
|
|
8237
|
-
var sync =
|
|
8238
|
-
var transfer =
|
|
8239
|
-
var unavailable =
|
|
8240
|
-
var underline =
|
|
8228
|
+
var local_mall_outlined = 59360;
|
|
8229
|
+
var number$2 = 59383;
|
|
8230
|
+
var percentage = 59389;
|
|
8231
|
+
var redeem = 59403;
|
|
8232
|
+
var refresh = 59404;
|
|
8233
|
+
var remove$1 = 59405;
|
|
8234
|
+
var restart = 59407;
|
|
8235
|
+
var shopping_basket_outlined = 59424;
|
|
8236
|
+
var strikethrough = 59439;
|
|
8237
|
+
var sync = 59445;
|
|
8238
|
+
var transfer = 59455;
|
|
8239
|
+
var unavailable = 59460;
|
|
8240
|
+
var underline = 59461;
|
|
8241
8241
|
var glyphMap = {
|
|
8242
8242
|
activate: activate,
|
|
8243
8243
|
"add-emoji": 59001,
|
|
@@ -8594,124 +8594,125 @@ var glyphMap = {
|
|
|
8594
8594
|
italic: italic,
|
|
8595
8595
|
"job-search-outlined": 59353,
|
|
8596
8596
|
"leave-approval-outlined": 59354,
|
|
8597
|
-
"
|
|
8598
|
-
"link-
|
|
8599
|
-
"
|
|
8600
|
-
"
|
|
8597
|
+
"lighting-outlined": 59355,
|
|
8598
|
+
"link-1": 59356,
|
|
8599
|
+
"link-2": 59357,
|
|
8600
|
+
"list-outlined": 59358,
|
|
8601
|
+
"live-help-outlined": 59359,
|
|
8601
8602
|
local_mall_outlined: local_mall_outlined,
|
|
8602
|
-
"location-on-outlined":
|
|
8603
|
-
"location-outlined":
|
|
8604
|
-
"lock-outlined":
|
|
8605
|
-
"locked-file-outlined":
|
|
8606
|
-
"log-out":
|
|
8607
|
-
"mail-outlined":
|
|
8608
|
-
"map-outlined":
|
|
8609
|
-
"media-content-outlined":
|
|
8610
|
-
"menu-close":
|
|
8611
|
-
"menu-expand":
|
|
8612
|
-
"menu-fold-outlined":
|
|
8613
|
-
"menu-unfold-outlined":
|
|
8614
|
-
"moneybag-outlined":
|
|
8615
|
-
"moon-outlined":
|
|
8616
|
-
"more-horizontal":
|
|
8617
|
-
"more-vertical":
|
|
8618
|
-
"morning-outlined":
|
|
8619
|
-
"multiple-folders-outlined":
|
|
8620
|
-
"multiple-users-outlined":
|
|
8621
|
-
"near-me-outlined":
|
|
8622
|
-
"node-outlined":
|
|
8623
|
-
"number-points":
|
|
8603
|
+
"location-on-outlined": 59361,
|
|
8604
|
+
"location-outlined": 59362,
|
|
8605
|
+
"lock-outlined": 59363,
|
|
8606
|
+
"locked-file-outlined": 59364,
|
|
8607
|
+
"log-out": 59365,
|
|
8608
|
+
"mail-outlined": 59366,
|
|
8609
|
+
"map-outlined": 59367,
|
|
8610
|
+
"media-content-outlined": 59368,
|
|
8611
|
+
"menu-close": 59369,
|
|
8612
|
+
"menu-expand": 59370,
|
|
8613
|
+
"menu-fold-outlined": 59371,
|
|
8614
|
+
"menu-unfold-outlined": 59372,
|
|
8615
|
+
"moneybag-outlined": 59373,
|
|
8616
|
+
"moon-outlined": 59374,
|
|
8617
|
+
"more-horizontal": 59375,
|
|
8618
|
+
"more-vertical": 59376,
|
|
8619
|
+
"morning-outlined": 59377,
|
|
8620
|
+
"multiple-folders-outlined": 59378,
|
|
8621
|
+
"multiple-users-outlined": 59379,
|
|
8622
|
+
"near-me-outlined": 59380,
|
|
8623
|
+
"node-outlined": 59381,
|
|
8624
|
+
"number-points": 59382,
|
|
8624
8625
|
number: number$2,
|
|
8625
|
-
"overview-outlined":
|
|
8626
|
-
"park-outlined":
|
|
8627
|
-
"payment-summary-outlined":
|
|
8628
|
-
"payslip-outlined":
|
|
8629
|
-
"pencil-outlined":
|
|
8626
|
+
"overview-outlined": 59384,
|
|
8627
|
+
"park-outlined": 59385,
|
|
8628
|
+
"payment-summary-outlined": 59386,
|
|
8629
|
+
"payslip-outlined": 59387,
|
|
8630
|
+
"pencil-outlined": 59388,
|
|
8630
8631
|
percentage: percentage,
|
|
8631
|
-
"phone-outlined":
|
|
8632
|
-
"piggy-bank-outlined":
|
|
8633
|
-
"plane-outlined":
|
|
8634
|
-
"play-circle-outlined":
|
|
8635
|
-
"pound-box-outlined":
|
|
8636
|
-
"pound-card-outlined":
|
|
8637
|
-
"pound-coin-shine-outlined":
|
|
8638
|
-
"pound-credit-card-outlined":
|
|
8639
|
-
"print-outlined":
|
|
8640
|
-
"propane-tank-outlined":
|
|
8641
|
-
"qr-code-outlined":
|
|
8642
|
-
"qualification-outlined":
|
|
8643
|
-
"re-assign":
|
|
8632
|
+
"phone-outlined": 59390,
|
|
8633
|
+
"piggy-bank-outlined": 59391,
|
|
8634
|
+
"plane-outlined": 59392,
|
|
8635
|
+
"play-circle-outlined": 59393,
|
|
8636
|
+
"pound-box-outlined": 59394,
|
|
8637
|
+
"pound-card-outlined": 59395,
|
|
8638
|
+
"pound-coin-shine-outlined": 59396,
|
|
8639
|
+
"pound-credit-card-outlined": 59397,
|
|
8640
|
+
"print-outlined": 59398,
|
|
8641
|
+
"propane-tank-outlined": 59399,
|
|
8642
|
+
"qr-code-outlined": 59400,
|
|
8643
|
+
"qualification-outlined": 59401,
|
|
8644
|
+
"re-assign": 59402,
|
|
8644
8645
|
redeem: redeem,
|
|
8645
8646
|
refresh: refresh,
|
|
8646
8647
|
remove: remove$1,
|
|
8647
|
-
"reply-outlined":
|
|
8648
|
+
"reply-outlined": 59406,
|
|
8648
8649
|
restart: restart,
|
|
8649
|
-
"restaurant-outlined":
|
|
8650
|
-
"resume-outlined":
|
|
8651
|
-
"return-arrow":
|
|
8652
|
-
"rostering-outlined":
|
|
8653
|
-
"safety-outlined":
|
|
8654
|
-
"save-outlined":
|
|
8655
|
-
"schedule-outlined":
|
|
8656
|
-
"search-outlined":
|
|
8657
|
-
"search-secured-outlined":
|
|
8658
|
-
"send-outlined":
|
|
8659
|
-
"share-1":
|
|
8660
|
-
"share-2":
|
|
8661
|
-
"share-outlined-2":
|
|
8662
|
-
"share-outlined":
|
|
8663
|
-
"shield-check-outlined":
|
|
8664
|
-
"shop-outlined":
|
|
8650
|
+
"restaurant-outlined": 59408,
|
|
8651
|
+
"resume-outlined": 59409,
|
|
8652
|
+
"return-arrow": 59410,
|
|
8653
|
+
"rostering-outlined": 59411,
|
|
8654
|
+
"safety-outlined": 59412,
|
|
8655
|
+
"save-outlined": 59413,
|
|
8656
|
+
"schedule-outlined": 59414,
|
|
8657
|
+
"search-outlined": 59415,
|
|
8658
|
+
"search-secured-outlined": 59416,
|
|
8659
|
+
"send-outlined": 59417,
|
|
8660
|
+
"share-1": 59418,
|
|
8661
|
+
"share-2": 59419,
|
|
8662
|
+
"share-outlined-2": 59420,
|
|
8663
|
+
"share-outlined": 59421,
|
|
8664
|
+
"shield-check-outlined": 59422,
|
|
8665
|
+
"shop-outlined": 59423,
|
|
8665
8666
|
shopping_basket_outlined: shopping_basket_outlined,
|
|
8666
|
-
"show-chart-outlined":
|
|
8667
|
-
"single-down-arrow":
|
|
8668
|
-
"single-left-arrow":
|
|
8669
|
-
"single-right-arrow":
|
|
8670
|
-
"single-up-arrow":
|
|
8671
|
-
"smart-match-outlined":
|
|
8672
|
-
"sparkle-outlined":
|
|
8673
|
-
"speaker-active-outlined":
|
|
8674
|
-
"speaker-outlined":
|
|
8675
|
-
"star-circle-outlined":
|
|
8676
|
-
"star-outlined":
|
|
8677
|
-
"start-break-outlined":
|
|
8678
|
-
"stash-outlined":
|
|
8679
|
-
"stopwatch-outlined":
|
|
8667
|
+
"show-chart-outlined": 59425,
|
|
8668
|
+
"single-down-arrow": 59426,
|
|
8669
|
+
"single-left-arrow": 59427,
|
|
8670
|
+
"single-right-arrow": 59428,
|
|
8671
|
+
"single-up-arrow": 59429,
|
|
8672
|
+
"smart-match-outlined": 59430,
|
|
8673
|
+
"sparkle-outlined": 59431,
|
|
8674
|
+
"speaker-active-outlined": 59432,
|
|
8675
|
+
"speaker-outlined": 59433,
|
|
8676
|
+
"star-circle-outlined": 59434,
|
|
8677
|
+
"star-outlined": 59435,
|
|
8678
|
+
"start-break-outlined": 59436,
|
|
8679
|
+
"stash-outlined": 59437,
|
|
8680
|
+
"stopwatch-outlined": 59438,
|
|
8680
8681
|
strikethrough: strikethrough,
|
|
8681
|
-
"styler-outlined":
|
|
8682
|
-
"suitcase-clock-outlined":
|
|
8683
|
-
"suitcase-outlined":
|
|
8684
|
-
"survey-outlined":
|
|
8685
|
-
"switch-outlined":
|
|
8682
|
+
"styler-outlined": 59440,
|
|
8683
|
+
"suitcase-clock-outlined": 59441,
|
|
8684
|
+
"suitcase-outlined": 59442,
|
|
8685
|
+
"survey-outlined": 59443,
|
|
8686
|
+
"switch-outlined": 59444,
|
|
8686
8687
|
sync: sync,
|
|
8687
|
-
"tag-outlined":
|
|
8688
|
-
"target-outlined":
|
|
8689
|
-
"tennis-outlined":
|
|
8690
|
-
"thumb-down-outlined":
|
|
8691
|
-
"thumb-up-outlined":
|
|
8692
|
-
"ticket-outlined":
|
|
8693
|
-
"timesheet-outlined":
|
|
8694
|
-
"timesheets-outlined":
|
|
8695
|
-
"today-outlined":
|
|
8688
|
+
"tag-outlined": 59446,
|
|
8689
|
+
"target-outlined": 59447,
|
|
8690
|
+
"tennis-outlined": 59448,
|
|
8691
|
+
"thumb-down-outlined": 59449,
|
|
8692
|
+
"thumb-up-outlined": 59450,
|
|
8693
|
+
"ticket-outlined": 59451,
|
|
8694
|
+
"timesheet-outlined": 59452,
|
|
8695
|
+
"timesheets-outlined": 59453,
|
|
8696
|
+
"today-outlined": 59454,
|
|
8696
8697
|
transfer: transfer,
|
|
8697
|
-
"transportation-outlined":
|
|
8698
|
-
"trash-bin-outlined":
|
|
8699
|
-
"umbrela-outlined":
|
|
8700
|
-
"unavailability-outlined":
|
|
8698
|
+
"transportation-outlined": 59456,
|
|
8699
|
+
"trash-bin-outlined": 59457,
|
|
8700
|
+
"umbrela-outlined": 59458,
|
|
8701
|
+
"unavailability-outlined": 59459,
|
|
8701
8702
|
unavailable: unavailable,
|
|
8702
8703
|
underline: underline,
|
|
8703
|
-
"union-outlined":
|
|
8704
|
-
"unlock-outlined":
|
|
8705
|
-
"upload-outlined":
|
|
8706
|
-
"user-circle-outlined":
|
|
8707
|
-
"user-gear-outlined":
|
|
8708
|
-
"user-outlined":
|
|
8709
|
-
"user-rectangle-outlined":
|
|
8710
|
-
"video-1-outlined":
|
|
8711
|
-
"video-2-outlined":
|
|
8712
|
-
"volunteer-outlined":
|
|
8713
|
-
"wallet-outlined":
|
|
8714
|
-
"wellness-outlined":
|
|
8704
|
+
"union-outlined": 59462,
|
|
8705
|
+
"unlock-outlined": 59463,
|
|
8706
|
+
"upload-outlined": 59464,
|
|
8707
|
+
"user-circle-outlined": 59465,
|
|
8708
|
+
"user-gear-outlined": 59466,
|
|
8709
|
+
"user-outlined": 59467,
|
|
8710
|
+
"user-rectangle-outlined": 59468,
|
|
8711
|
+
"video-1-outlined": 59469,
|
|
8712
|
+
"video-2-outlined": 59470,
|
|
8713
|
+
"volunteer-outlined": 59471,
|
|
8714
|
+
"wallet-outlined": 59472,
|
|
8715
|
+
"wellness-outlined": 59473
|
|
8715
8716
|
};
|
|
8716
8717
|
|
|
8717
8718
|
var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -8738,10 +8739,10 @@ var StyledHeroIcon = index$c(HeroIcon)(function (_ref) {
|
|
|
8738
8739
|
};
|
|
8739
8740
|
});
|
|
8740
8741
|
|
|
8741
|
-
var _excluded$
|
|
8742
|
+
var _excluded$O = ["style"];
|
|
8742
8743
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
8743
8744
|
var style = _ref.style,
|
|
8744
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8745
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$O);
|
|
8745
8746
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
8746
8747
|
React.useEffect(function () {
|
|
8747
8748
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -8841,7 +8842,7 @@ var StyledText$4 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8841
8842
|
});
|
|
8842
8843
|
});
|
|
8843
8844
|
|
|
8844
|
-
var _excluded$
|
|
8845
|
+
var _excluded$N = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
8845
8846
|
/**
|
|
8846
8847
|
* @deprecated 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.
|
|
8847
8848
|
*/
|
|
@@ -8857,7 +8858,7 @@ var Text = function Text(_ref) {
|
|
|
8857
8858
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8858
8859
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8859
8860
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8860
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8861
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$N);
|
|
8861
8862
|
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.');
|
|
8862
8863
|
return /*#__PURE__*/React__namespace.default.createElement(StyledText$4, _extends$1({}, nativeProps, {
|
|
8863
8864
|
themeFontSize: fontSize,
|
|
@@ -8890,7 +8891,7 @@ var StyledCaption = index$c(reactNative.Text)(function (_ref) {
|
|
|
8890
8891
|
};
|
|
8891
8892
|
});
|
|
8892
8893
|
|
|
8893
|
-
var _excluded$
|
|
8894
|
+
var _excluded$M = ["children", "fontWeight", "intent", "allowFontScaling", "fontStyle"];
|
|
8894
8895
|
var Caption = function Caption(_ref) {
|
|
8895
8896
|
var children = _ref.children,
|
|
8896
8897
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -8901,7 +8902,7 @@ var Caption = function Caption(_ref) {
|
|
|
8901
8902
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8902
8903
|
_ref$fontStyle = _ref.fontStyle,
|
|
8903
8904
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8904
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8905
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
8905
8906
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
8906
8907
|
themeFontWeight: fontWeight,
|
|
8907
8908
|
themeIntent: intent,
|
|
@@ -8926,7 +8927,7 @@ var StyledLabel$2 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8926
8927
|
};
|
|
8927
8928
|
});
|
|
8928
8929
|
|
|
8929
|
-
var _excluded$
|
|
8930
|
+
var _excluded$L = ["children", "intent", "allowFontScaling", "fontStyle"];
|
|
8930
8931
|
var Label = function Label(_ref) {
|
|
8931
8932
|
var children = _ref.children,
|
|
8932
8933
|
_ref$intent = _ref.intent,
|
|
@@ -8935,7 +8936,7 @@ var Label = function Label(_ref) {
|
|
|
8935
8936
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8936
8937
|
_ref$fontStyle = _ref.fontStyle,
|
|
8937
8938
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8938
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8939
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
8939
8940
|
return /*#__PURE__*/React__namespace.default.createElement(StyledLabel$2, _extends$1({}, nativeProps, {
|
|
8940
8941
|
themeIntent: intent,
|
|
8941
8942
|
themeIsItalic: fontStyle === 'italic',
|
|
@@ -8958,7 +8959,7 @@ var StyledTitle$1 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8958
8959
|
};
|
|
8959
8960
|
});
|
|
8960
8961
|
|
|
8961
|
-
var _excluded$
|
|
8962
|
+
var _excluded$K = ["children", "intent", "allowFontScaling", "level", "typeface", "fontStyle"];
|
|
8962
8963
|
var Title = function Title(_ref) {
|
|
8963
8964
|
var children = _ref.children,
|
|
8964
8965
|
_ref$intent = _ref.intent,
|
|
@@ -8971,7 +8972,7 @@ var Title = function Title(_ref) {
|
|
|
8971
8972
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8972
8973
|
_ref$fontStyle = _ref.fontStyle,
|
|
8973
8974
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8974
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8975
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
8975
8976
|
return /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
8976
8977
|
themeLevel: level,
|
|
8977
8978
|
themeTypeface: typeface,
|
|
@@ -9010,7 +9011,7 @@ var StyledBody$2 = index$c(reactNative.Text)(function (_ref) {
|
|
|
9010
9011
|
};
|
|
9011
9012
|
});
|
|
9012
9013
|
|
|
9013
|
-
var _excluded$
|
|
9014
|
+
var _excluded$J = ["children", "intent", "allowFontScaling", "typeface", "variant", "fontStyle"];
|
|
9014
9015
|
var Body = function Body(_ref) {
|
|
9015
9016
|
var children = _ref.children,
|
|
9016
9017
|
_ref$intent = _ref.intent,
|
|
@@ -9023,7 +9024,7 @@ var Body = function Body(_ref) {
|
|
|
9023
9024
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
9024
9025
|
_ref$fontStyle = _ref.fontStyle,
|
|
9025
9026
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
9026
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9027
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
9027
9028
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
9028
9029
|
themeTypeface: typeface,
|
|
9029
9030
|
themeIntent: intent,
|
|
@@ -9646,11 +9647,11 @@ var Header = function Header(_ref) {
|
|
|
9646
9647
|
}))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
9647
9648
|
};
|
|
9648
9649
|
|
|
9649
|
-
var _excluded$
|
|
9650
|
+
var _excluded$I = ["scrollEventThrottle"];
|
|
9650
9651
|
var BottomSheetScrollView = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9651
9652
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
9652
9653
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
9653
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9654
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
9654
9655
|
var _useContext = React.useContext(BottomSheetContext),
|
|
9655
9656
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
9656
9657
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -9983,7 +9984,7 @@ var borderWidths = {
|
|
|
9983
9984
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
9984
9985
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
9985
9986
|
|
|
9986
|
-
var _excluded$
|
|
9987
|
+
var _excluded$H = ["theme"];
|
|
9987
9988
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
9988
9989
|
var propConfig = config[key];
|
|
9989
9990
|
var propValue = props[key];
|
|
@@ -10010,18 +10011,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
10010
10011
|
var configKeys = Object.keys(config);
|
|
10011
10012
|
var StyledBox = index$c(reactNative.View)(function (_ref5) {
|
|
10012
10013
|
var theme = _ref5.theme,
|
|
10013
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
10014
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$H);
|
|
10014
10015
|
var styleProps = pick(configKeys, otherProps);
|
|
10015
10016
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
10016
10017
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
10017
10018
|
});
|
|
10018
10019
|
|
|
10019
|
-
var _excluded$
|
|
10020
|
+
var _excluded$G = ["children", "style", "testID"];
|
|
10020
10021
|
var Box = function Box(_ref) {
|
|
10021
10022
|
var children = _ref.children,
|
|
10022
10023
|
style = _ref.style,
|
|
10023
10024
|
testID = _ref.testID,
|
|
10024
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
10025
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$G);
|
|
10025
10026
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
10026
10027
|
style: style,
|
|
10027
10028
|
testID: testID
|
|
@@ -10159,7 +10160,7 @@ var StyledErrorAndMaxLengthContainer = index$c(reactNative.View)(function (_ref1
|
|
|
10159
10160
|
};
|
|
10160
10161
|
});
|
|
10161
10162
|
|
|
10162
|
-
var _excluded$
|
|
10163
|
+
var _excluded$F = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
10163
10164
|
var getState$4 = function getState(_ref) {
|
|
10164
10165
|
var disabled = _ref.disabled,
|
|
10165
10166
|
error = _ref.error,
|
|
@@ -10279,7 +10280,7 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
10279
10280
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
10280
10281
|
_ref8$variant = _ref8.variant,
|
|
10281
10282
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
10282
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
10283
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$F);
|
|
10283
10284
|
var displayText = getDisplayText(value, defaultValue);
|
|
10284
10285
|
var isEmptyValue = displayText.length === 0;
|
|
10285
10286
|
var _React$useState = React__namespace.default.useState({
|
|
@@ -10757,14 +10758,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
10757
10758
|
}, dotProps))));
|
|
10758
10759
|
};
|
|
10759
10760
|
|
|
10760
|
-
var _excluded$
|
|
10761
|
+
var _excluded$E = ["testID", "size", "intent"];
|
|
10761
10762
|
var Spinner = function Spinner(_ref) {
|
|
10762
10763
|
var testID = _ref.testID,
|
|
10763
10764
|
_ref$size = _ref.size,
|
|
10764
10765
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
10765
10766
|
_ref$intent = _ref.intent,
|
|
10766
10767
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
10767
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10768
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$E);
|
|
10768
10769
|
return /*#__PURE__*/React__namespace.default.createElement(StyledView$2, nativeProps, /*#__PURE__*/React__namespace.default.createElement(StyledSpinnerContainer, {
|
|
10769
10770
|
testID: testID
|
|
10770
10771
|
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedSpinner, {
|
|
@@ -10773,7 +10774,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
10773
10774
|
})));
|
|
10774
10775
|
};
|
|
10775
10776
|
|
|
10776
|
-
var _excluded$
|
|
10777
|
+
var _excluded$D = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
10777
10778
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
10778
10779
|
var keyExtractor = _ref.keyExtractor,
|
|
10779
10780
|
loading = _ref.loading,
|
|
@@ -10782,7 +10783,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
10782
10783
|
sections = _ref.sections,
|
|
10783
10784
|
renderItem = _ref.renderItem,
|
|
10784
10785
|
sectionListRef = _ref.sectionListRef,
|
|
10785
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10786
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
10786
10787
|
var theme = useTheme$1();
|
|
10787
10788
|
var _useState = React.useState(false),
|
|
10788
10789
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11049,7 +11050,7 @@ var isOptionSelected = function isOptionSelected(value, option) {
|
|
|
11049
11050
|
});
|
|
11050
11051
|
};
|
|
11051
11052
|
|
|
11052
|
-
var _excluded$
|
|
11053
|
+
var _excluded$C = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
11053
11054
|
var OptionList$1 = function OptionList(_ref) {
|
|
11054
11055
|
var keyExtractor = _ref.keyExtractor,
|
|
11055
11056
|
loading = _ref.loading,
|
|
@@ -11060,7 +11061,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
11060
11061
|
renderOption = _ref.renderOption,
|
|
11061
11062
|
value = _ref.value,
|
|
11062
11063
|
sectionListRef = _ref.sectionListRef,
|
|
11063
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11064
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
11064
11065
|
var renderItem = function renderItem(info) {
|
|
11065
11066
|
var item = info.item;
|
|
11066
11067
|
var selected = isOptionSelected(value, item);
|
|
@@ -11095,7 +11096,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
11095
11096
|
}, rest));
|
|
11096
11097
|
};
|
|
11097
11098
|
|
|
11098
|
-
var _excluded$
|
|
11099
|
+
var _excluded$B = ["footerLabel", "label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig", "groupStyleEnabled"];
|
|
11099
11100
|
|
|
11100
11101
|
// Add an internal prop type for TextInputComponent, not exported
|
|
11101
11102
|
|
|
@@ -11128,7 +11129,7 @@ function MultiSelect$1(_ref) {
|
|
|
11128
11129
|
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
|
|
11129
11130
|
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
11130
11131
|
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable,
|
|
11131
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11132
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
11132
11133
|
var _useKeyboard = useKeyboard(),
|
|
11133
11134
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
11134
11135
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -11268,7 +11269,7 @@ var StyledOptionList = index$c(BaseOptionList)(function (_ref) {
|
|
|
11268
11269
|
};
|
|
11269
11270
|
});
|
|
11270
11271
|
|
|
11271
|
-
var _excluded$
|
|
11272
|
+
var _excluded$A = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
11272
11273
|
var OptionList = function OptionList(_ref) {
|
|
11273
11274
|
var keyExtractor = _ref.keyExtractor,
|
|
11274
11275
|
loading = _ref.loading,
|
|
@@ -11279,7 +11280,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
11279
11280
|
renderOption = _ref.renderOption,
|
|
11280
11281
|
value = _ref.value,
|
|
11281
11282
|
sectionListRef = _ref.sectionListRef,
|
|
11282
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11283
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
11283
11284
|
var renderItem = function renderItem(info) {
|
|
11284
11285
|
var item = info.item;
|
|
11285
11286
|
var selected = _deepCompareValue(item.value, value);
|
|
@@ -11315,7 +11316,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
11315
11316
|
}, rest));
|
|
11316
11317
|
};
|
|
11317
11318
|
|
|
11318
|
-
var _excluded$
|
|
11319
|
+
var _excluded$z = ["label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig", "groupStyleEnabled"];
|
|
11319
11320
|
|
|
11320
11321
|
// Add an internal prop type for TextInputComponent, not exported
|
|
11321
11322
|
|
|
@@ -11348,7 +11349,7 @@ var SingleSelect$1 = function SingleSelect(_ref) {
|
|
|
11348
11349
|
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
|
|
11349
11350
|
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
11350
11351
|
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable,
|
|
11351
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11352
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
11352
11353
|
var _useKeyboard = useKeyboard(),
|
|
11353
11354
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
11354
11355
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -14987,13 +14988,13 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
14987
14988
|
}));
|
|
14988
14989
|
};
|
|
14989
14990
|
|
|
14990
|
-
var _excluded$
|
|
14991
|
+
var _excluded$y = ["variant", "TextInputComponent"];
|
|
14991
14992
|
var DatePicker$1 = function DatePicker(_ref) {
|
|
14992
14993
|
var _ref$variant = _ref.variant,
|
|
14993
14994
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
14994
14995
|
_ref$TextInputCompone = _ref.TextInputComponent,
|
|
14995
14996
|
TextInputComponent = _ref$TextInputCompone === void 0 ? TextInput$1 : _ref$TextInputCompone,
|
|
14996
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14997
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
14997
14998
|
if (variant === 'calendar') {
|
|
14998
14999
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, _extends$1({}, props, {
|
|
14999
15000
|
TextInputComponent: TextInputComponent
|
|
@@ -15351,7 +15352,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
15351
15352
|
}, content));
|
|
15352
15353
|
};
|
|
15353
15354
|
|
|
15354
|
-
var _excluded$
|
|
15355
|
+
var _excluded$x = ["key"];
|
|
15355
15356
|
var Accordion = function Accordion(_ref) {
|
|
15356
15357
|
var items = _ref.items,
|
|
15357
15358
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -15374,7 +15375,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
15374
15375
|
accessible: accessible
|
|
15375
15376
|
}, items.map(function (_ref2, index) {
|
|
15376
15377
|
var key = _ref2.key,
|
|
15377
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
15378
|
+
props = _objectWithoutProperties(_ref2, _excluded$x);
|
|
15378
15379
|
var open = _activeItemKey === key;
|
|
15379
15380
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
15380
15381
|
key: key
|
|
@@ -16299,7 +16300,7 @@ var StyledIcon$4 = index$c(Icon)(function (_ref6) {
|
|
|
16299
16300
|
};
|
|
16300
16301
|
});
|
|
16301
16302
|
|
|
16302
|
-
var _excluded$
|
|
16303
|
+
var _excluded$w = ["children", "visible", "intent", "style", "testID"];
|
|
16303
16304
|
var Status$1 = function Status(_ref) {
|
|
16304
16305
|
var children = _ref.children,
|
|
16305
16306
|
_ref$visible = _ref.visible,
|
|
@@ -16308,7 +16309,7 @@ var Status$1 = function Status(_ref) {
|
|
|
16308
16309
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
16309
16310
|
style = _ref.style,
|
|
16310
16311
|
testID = _ref.testID,
|
|
16311
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16312
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
16312
16313
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
16313
16314
|
opacity = _React$useRef.current;
|
|
16314
16315
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -16344,7 +16345,7 @@ var Status$1 = function Status(_ref) {
|
|
|
16344
16345
|
|
|
16345
16346
|
var DEFAULT_MAX_NUMBER = 99;
|
|
16346
16347
|
|
|
16347
|
-
var _excluded$
|
|
16348
|
+
var _excluded$v = ["children", "visible", "style", "max", "testID", "content"];
|
|
16348
16349
|
var Status = function Status(_ref) {
|
|
16349
16350
|
var children = _ref.children,
|
|
16350
16351
|
_ref$visible = _ref.visible,
|
|
@@ -16354,7 +16355,7 @@ var Status = function Status(_ref) {
|
|
|
16354
16355
|
max = _ref$max === void 0 ? DEFAULT_MAX_NUMBER : _ref$max,
|
|
16355
16356
|
testID = _ref.testID,
|
|
16356
16357
|
originalContent = _ref.content,
|
|
16357
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16358
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
16358
16359
|
var content = React.useMemo(function () {
|
|
16359
16360
|
return originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
16360
16361
|
}, [originalContent, max]);
|
|
@@ -16366,7 +16367,7 @@ var Status = function Status(_ref) {
|
|
|
16366
16367
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCountText, null, content)));
|
|
16367
16368
|
};
|
|
16368
16369
|
|
|
16369
|
-
var _excluded$
|
|
16370
|
+
var _excluded$u = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
16370
16371
|
var getPaddingState = function getPaddingState(content) {
|
|
16371
16372
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
16372
16373
|
};
|
|
@@ -16385,7 +16386,7 @@ var Badge = function Badge(_ref) {
|
|
|
16385
16386
|
_ref$variant = _ref.variant,
|
|
16386
16387
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
16387
16388
|
icon = _ref.icon,
|
|
16388
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16389
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
16389
16390
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
16390
16391
|
opacity = _React$useRef.current;
|
|
16391
16392
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -16477,14 +16478,14 @@ var BottomBarItem = index$c(reactNative.View)({
|
|
|
16477
16478
|
flex: 1,
|
|
16478
16479
|
alignItems: 'center'
|
|
16479
16480
|
});
|
|
16480
|
-
var StyledBottomBarText = index$c(Typography.
|
|
16481
|
+
var StyledBottomBarText = index$c(Typography.Label)(function (_ref3) {
|
|
16481
16482
|
var theme = _ref3.theme;
|
|
16482
16483
|
return {
|
|
16483
16484
|
marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
|
|
16484
16485
|
};
|
|
16485
16486
|
});
|
|
16486
16487
|
|
|
16487
|
-
var _excluded$
|
|
16488
|
+
var _excluded$t = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
16488
16489
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
16489
16490
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
16490
16491
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -16495,7 +16496,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
16495
16496
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
16496
16497
|
selectedTabKey = _ref.selectedTabKey,
|
|
16497
16498
|
tabs = _ref.tabs,
|
|
16498
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16499
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
16499
16500
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
16500
16501
|
|
|
16501
16502
|
/**
|
|
@@ -16553,11 +16554,10 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
16553
16554
|
testID: testID
|
|
16554
16555
|
}, /*#__PURE__*/React__namespace.default.createElement(BottomBarItem, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
16555
16556
|
icon: active ? icon : inactiveIcon,
|
|
16556
|
-
intent: active ? 'primary' : '
|
|
16557
|
+
intent: active ? 'primary' : 'muted',
|
|
16557
16558
|
testID: "hero-icon-".concat(icon)
|
|
16558
16559
|
}), !!title && /*#__PURE__*/React__namespace.default.createElement(StyledBottomBarText, {
|
|
16559
|
-
|
|
16560
|
-
intent: active ? 'primary' : 'body',
|
|
16560
|
+
intent: active ? 'primary' : 'muted',
|
|
16561
16561
|
numberOfLines: 1
|
|
16562
16562
|
}, title)));
|
|
16563
16563
|
}))));
|
|
@@ -16589,12 +16589,12 @@ var Indicator = index$c(reactNative.View)(function (_ref3) {
|
|
|
16589
16589
|
};
|
|
16590
16590
|
});
|
|
16591
16591
|
|
|
16592
|
-
var _excluded$
|
|
16592
|
+
var _excluded$s = ["intent", "children"];
|
|
16593
16593
|
var DataCard = function DataCard(_ref) {
|
|
16594
16594
|
var _ref$intent = _ref.intent,
|
|
16595
16595
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
16596
16596
|
children = _ref.children,
|
|
16597
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16597
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
16598
16598
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
|
|
16599
16599
|
themeIntent: intent,
|
|
16600
16600
|
testID: "data-card-indicator"
|
|
@@ -16613,13 +16613,13 @@ var StyledCard$1 = index$c(reactNative.View)(function (_ref) {
|
|
|
16613
16613
|
});
|
|
16614
16614
|
});
|
|
16615
16615
|
|
|
16616
|
-
var _excluded$
|
|
16616
|
+
var _excluded$r = ["intent", "children", "variant"];
|
|
16617
16617
|
var Card = function Card(_ref) {
|
|
16618
16618
|
var intent = _ref.intent,
|
|
16619
16619
|
children = _ref.children,
|
|
16620
16620
|
_ref$variant = _ref.variant,
|
|
16621
16621
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
16622
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16622
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
16623
16623
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
16624
16624
|
themeIntent: intent,
|
|
16625
16625
|
themeVariant: variant
|
|
@@ -16888,7 +16888,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
16888
16888
|
});
|
|
16889
16889
|
CardCarousel.displayName = 'CardCarousel';
|
|
16890
16890
|
|
|
16891
|
-
var _excluded$
|
|
16891
|
+
var _excluded$q = ["rounded", "size", "testID", "style"];
|
|
16892
16892
|
/**
|
|
16893
16893
|
* @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
|
|
16894
16894
|
*/
|
|
@@ -16899,7 +16899,7 @@ var Image = function Image(_ref) {
|
|
|
16899
16899
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
16900
16900
|
testID = _ref.testID,
|
|
16901
16901
|
style = _ref.style,
|
|
16902
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16902
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
16903
16903
|
useDeprecation('Image component will soon be deprecated. Please use `Image` from `react-native` instead.');
|
|
16904
16904
|
var theme = useTheme();
|
|
16905
16905
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
@@ -17034,7 +17034,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
17034
17034
|
}, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
|
|
17035
17035
|
};
|
|
17036
17036
|
|
|
17037
|
-
var _excluded$
|
|
17037
|
+
var _excluded$p = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
17038
17038
|
function useStateFromProp(initialValue) {
|
|
17039
17039
|
var _useState = React.useState(initialValue),
|
|
17040
17040
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17061,7 +17061,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
17061
17061
|
testID = _ref.testID,
|
|
17062
17062
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
17063
17063
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
17064
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
17064
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
17065
17065
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop$1);
|
|
17066
17066
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
17067
17067
|
var theme = useTheme();
|
|
@@ -21062,7 +21062,7 @@ Basis.prototype = {
|
|
|
21062
21062
|
this._y0 = this._y1, this._y1 = y;
|
|
21063
21063
|
}
|
|
21064
21064
|
};
|
|
21065
|
-
function
|
|
21065
|
+
function curveBasis (context) {
|
|
21066
21066
|
return new Basis(context);
|
|
21067
21067
|
}
|
|
21068
21068
|
|
|
@@ -21645,7 +21645,7 @@ var Line = function Line(_ref) {
|
|
|
21645
21645
|
return ((_xScale = xScale(labels[i])) !== null && _xScale !== void 0 ? _xScale : 0) + xScale.bandwidth() / 2;
|
|
21646
21646
|
}).y(function (d) {
|
|
21647
21647
|
return yScale(d !== null && d !== void 0 ? d : 0);
|
|
21648
|
-
}).curve(
|
|
21648
|
+
}).curve(curveBasis);
|
|
21649
21649
|
}, [xScale, yScale, labels]);
|
|
21650
21650
|
|
|
21651
21651
|
// Generate path data
|
|
@@ -22201,7 +22201,7 @@ var StyledChipIcon = index$c(Icon)(function (_ref2) {
|
|
|
22201
22201
|
};
|
|
22202
22202
|
});
|
|
22203
22203
|
|
|
22204
|
-
var _excluded$
|
|
22204
|
+
var _excluded$o = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon", "accessible"];
|
|
22205
22205
|
|
|
22206
22206
|
/**
|
|
22207
22207
|
* @deprecated Use 'selection' | 'filter' | 'compact' | 'compact-outlined' instead.
|
|
@@ -22240,7 +22240,7 @@ var Chip = function Chip(_ref) {
|
|
|
22240
22240
|
_ref$showSelectedIcon = _ref.showSelectedIcon,
|
|
22241
22241
|
showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
|
|
22242
22242
|
accessible = _ref.accessible,
|
|
22243
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22243
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
22244
22244
|
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
22245
22245
|
var renamedVariant = getChipVariant(variant);
|
|
22246
22246
|
var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
|
|
@@ -24307,15 +24307,16 @@ var Portal$1 = Object.assign(Portal, {
|
|
|
24307
24307
|
Host: PortalHost
|
|
24308
24308
|
});
|
|
24309
24309
|
|
|
24310
|
-
var _excluded$o = ["visible"];
|
|
24311
24310
|
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
24312
24311
|
var DEFAULT_ANIMATION_CONFIG = {
|
|
24313
24312
|
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
24314
24313
|
useNativeDriver: reactNative.Platform.OS !== 'web',
|
|
24315
24314
|
duration: 400
|
|
24316
24315
|
};
|
|
24317
|
-
var Modal =
|
|
24316
|
+
var Modal = function Modal(_ref) {
|
|
24318
24317
|
var children = _ref.children,
|
|
24318
|
+
_ref$visible = _ref.visible,
|
|
24319
|
+
visible = _ref$visible === void 0 ? true : _ref$visible,
|
|
24319
24320
|
onShow = _ref.onShow,
|
|
24320
24321
|
onRequestClose = _ref.onRequestClose,
|
|
24321
24322
|
testID = _ref.testID,
|
|
@@ -24327,59 +24328,60 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
24327
24328
|
var theme = useTheme();
|
|
24328
24329
|
var animatedBackdropValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
24329
24330
|
var animatedModalValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
24331
|
+
var _useState = React.useState(visible),
|
|
24332
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24333
|
+
mounted = _useState2[0],
|
|
24334
|
+
setMounted = _useState2[1];
|
|
24335
|
+
var previousVisible = React.useRef(false);
|
|
24330
24336
|
|
|
24331
|
-
//
|
|
24332
|
-
|
|
24333
|
-
|
|
24334
|
-
|
|
24335
|
-
|
|
24336
|
-
|
|
24337
|
-
|
|
24338
|
-
|
|
24339
|
-
|
|
24340
|
-
|
|
24341
|
-
|
|
24342
|
-
|
|
24343
|
-
|
|
24344
|
-
|
|
24345
|
-
|
|
24346
|
-
}, DEFAULT_ANIMATION_CONFIG)).start(callback);
|
|
24347
|
-
} else {
|
|
24348
|
-
callback === null || callback === void 0 || callback();
|
|
24349
|
-
}
|
|
24350
|
-
}, [animationType, onShow, transparent]);
|
|
24351
|
-
var backdropOpacityAnimation = animatedBackdropValue.interpolate({
|
|
24352
|
-
inputRange: [0, 1],
|
|
24353
|
-
outputRange: [0, DEFAULT_BACKDROP_OPACITY]
|
|
24354
|
-
});
|
|
24355
|
-
var modalAnimation = animatedModalValue.interpolate({
|
|
24356
|
-
inputRange: [0, 1],
|
|
24357
|
-
outputRange: animationType === 'slide' ? [reactNative.Dimensions.get('window').height, 0] : [0, 1]
|
|
24358
|
-
});
|
|
24359
|
-
React.useImperativeHandle(ref, function () {
|
|
24360
|
-
return {
|
|
24361
|
-
show: function show() {
|
|
24362
|
-
animateBackdropAndContent({
|
|
24363
|
-
toValue: 1,
|
|
24364
|
-
callback: onShow
|
|
24337
|
+
// Animate in/out based on visible prop
|
|
24338
|
+
React.useEffect(function () {
|
|
24339
|
+
if (visible && !previousVisible.current) {
|
|
24340
|
+
// Show animation
|
|
24341
|
+
setMounted(true);
|
|
24342
|
+
if (animationType !== 'none') {
|
|
24343
|
+
if (!transparent) {
|
|
24344
|
+
reactNative.Animated.timing(animatedBackdropValue, _objectSpread2({
|
|
24345
|
+
toValue: 1
|
|
24346
|
+
}, DEFAULT_ANIMATION_CONFIG)).start();
|
|
24347
|
+
}
|
|
24348
|
+
reactNative.Animated.timing(animatedModalValue, _objectSpread2({
|
|
24349
|
+
toValue: 1
|
|
24350
|
+
}, DEFAULT_ANIMATION_CONFIG)).start(function () {
|
|
24351
|
+
onShow === null || onShow === void 0 || onShow();
|
|
24365
24352
|
});
|
|
24366
|
-
}
|
|
24367
|
-
|
|
24368
|
-
|
|
24369
|
-
|
|
24370
|
-
|
|
24371
|
-
|
|
24372
|
-
|
|
24373
|
-
|
|
24374
|
-
|
|
24353
|
+
} else {
|
|
24354
|
+
onShow === null || onShow === void 0 || onShow();
|
|
24355
|
+
}
|
|
24356
|
+
} else if (!visible && previousVisible.current) {
|
|
24357
|
+
// Hide animation
|
|
24358
|
+
if (animationType !== 'none') {
|
|
24359
|
+
if (!transparent) {
|
|
24360
|
+
reactNative.Animated.timing(animatedBackdropValue, _objectSpread2({
|
|
24361
|
+
toValue: 0
|
|
24362
|
+
}, DEFAULT_ANIMATION_CONFIG)).start();
|
|
24363
|
+
}
|
|
24364
|
+
reactNative.Animated.timing(animatedModalValue, _objectSpread2({
|
|
24365
|
+
toValue: 0
|
|
24366
|
+
}, DEFAULT_ANIMATION_CONFIG)).start(function () {
|
|
24367
|
+
setMounted(false);
|
|
24368
|
+
if (reactNative.Platform.OS === 'ios') {
|
|
24369
|
+
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
24375
24370
|
}
|
|
24376
24371
|
});
|
|
24372
|
+
} else {
|
|
24373
|
+
setMounted(false);
|
|
24374
|
+
if (reactNative.Platform.OS === 'ios') {
|
|
24375
|
+
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
24376
|
+
}
|
|
24377
24377
|
}
|
|
24378
|
-
}
|
|
24379
|
-
|
|
24378
|
+
}
|
|
24379
|
+
previousVisible.current = visible;
|
|
24380
|
+
}, [visible, animationType, transparent, onShow, onDismiss]);
|
|
24380
24381
|
|
|
24381
24382
|
// Back button handler
|
|
24382
24383
|
React.useEffect(function () {
|
|
24384
|
+
if (!visible) return;
|
|
24383
24385
|
var backHandler = reactNative.BackHandler.addEventListener('hardwareBackPress', function () {
|
|
24384
24386
|
onRequestClose === null || onRequestClose === void 0 || onRequestClose();
|
|
24385
24387
|
return true;
|
|
@@ -24387,7 +24389,18 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
24387
24389
|
return function () {
|
|
24388
24390
|
return backHandler.remove();
|
|
24389
24391
|
};
|
|
24390
|
-
}, [onRequestClose]);
|
|
24392
|
+
}, [visible, onRequestClose]);
|
|
24393
|
+
var backdropOpacityAnimation = animatedBackdropValue.interpolate({
|
|
24394
|
+
inputRange: [0, 1],
|
|
24395
|
+
outputRange: [0, DEFAULT_BACKDROP_OPACITY]
|
|
24396
|
+
});
|
|
24397
|
+
var modalAnimation = animatedModalValue.interpolate({
|
|
24398
|
+
inputRange: [0, 1],
|
|
24399
|
+
outputRange: animationType === 'slide' ? [reactNative.Dimensions.get('window').height, 0] : [0, 1]
|
|
24400
|
+
});
|
|
24401
|
+
if (!visible && !mounted) {
|
|
24402
|
+
return null;
|
|
24403
|
+
}
|
|
24391
24404
|
return /*#__PURE__*/React__namespace.default.createElement(Portal$1, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
24392
24405
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
24393
24406
|
backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
|
|
@@ -24402,39 +24415,9 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
24402
24415
|
}]
|
|
24403
24416
|
})
|
|
24404
24417
|
}, children));
|
|
24405
|
-
});
|
|
24406
|
-
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
24407
|
-
var _ref3$visible = _ref3.visible,
|
|
24408
|
-
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
24409
|
-
props = _objectWithoutProperties(_ref3, _excluded$o);
|
|
24410
|
-
var modalRef = React.useRef(null);
|
|
24411
|
-
var _useState = React.useState(visible),
|
|
24412
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
24413
|
-
internalVisible = _useState2[0],
|
|
24414
|
-
setInternalVisible = _useState2[1];
|
|
24415
|
-
React.useEffect(function () {
|
|
24416
|
-
if (visible) {
|
|
24417
|
-
setInternalVisible(true);
|
|
24418
|
-
} else {
|
|
24419
|
-
var _modalRef$current;
|
|
24420
|
-
// Wait for animation to finish before hiding the modal
|
|
24421
|
-
(_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 || _modalRef$current.hide(function () {
|
|
24422
|
-
return setInternalVisible(false);
|
|
24423
|
-
});
|
|
24424
|
-
}
|
|
24425
|
-
}, [visible]);
|
|
24426
|
-
React.useEffect(function () {
|
|
24427
|
-
if (internalVisible) {
|
|
24428
|
-
var _modalRef$current2;
|
|
24429
|
-
(_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
|
|
24430
|
-
}
|
|
24431
|
-
}, [internalVisible]);
|
|
24432
|
-
return internalVisible ? /*#__PURE__*/React__namespace.default.createElement(Modal, _extends$1({
|
|
24433
|
-
ref: modalRef
|
|
24434
|
-
}, props)) : null;
|
|
24435
24418
|
};
|
|
24436
24419
|
|
|
24437
|
-
var StyledErrorModal = index$c(
|
|
24420
|
+
var StyledErrorModal = index$c(Modal)({
|
|
24438
24421
|
height: '100%',
|
|
24439
24422
|
width: '100%'
|
|
24440
24423
|
});
|
|
@@ -27091,7 +27074,7 @@ var StyledSuccessButtonSecondary = index$c(CompoundButton)(function (_ref10) {
|
|
|
27091
27074
|
marginTop: theme.__hd__.success.space.button.secondaryCTAMarginTop
|
|
27092
27075
|
};
|
|
27093
27076
|
});
|
|
27094
|
-
var StyledSuccessModal = index$c(
|
|
27077
|
+
var StyledSuccessModal = index$c(Modal)({
|
|
27095
27078
|
height: '100%',
|
|
27096
27079
|
width: '100%'
|
|
27097
27080
|
});
|
|
@@ -27839,10 +27822,10 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
27839
27822
|
badge = tab.badge;
|
|
27840
27823
|
var active = selectedIndex === index;
|
|
27841
27824
|
var activeAnimated = tabsAnims[index];
|
|
27842
|
-
var outlineScale =
|
|
27825
|
+
var outlineScale = activeAnimated.interpolate({
|
|
27843
27826
|
inputRange: [0, 1],
|
|
27844
27827
|
outputRange: [0.5, 1]
|
|
27845
|
-
})
|
|
27828
|
+
});
|
|
27846
27829
|
var inactiveItem = originalInactiveItem !== null && originalInactiveItem !== void 0 ? originalInactiveItem : activeItem;
|
|
27847
27830
|
var tabItem = getTabItem$1({
|
|
27848
27831
|
item: active ? activeItem : inactiveItem,
|