@hero-design/rn 8.5.0 → 8.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +456 -205
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +456 -204
- package/package.json +5 -5
- package/src/components/Carousel/CarouselItem.tsx +19 -7
- package/src/components/Carousel/StyledCarousel.tsx +13 -1
- package/src/components/Carousel/index.tsx +11 -1
- package/src/components/Carousel/types.ts +8 -2
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/List/ListItem.tsx +1 -5
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +8 -8
- package/src/components/SwipeableV2/StyledSwipeable.tsx +14 -0
- package/src/components/SwipeableV2/__tests__/__snapshots__/index.spec.tsx.snap +161 -0
- package/src/components/SwipeableV2/__tests__/index.spec.tsx +48 -0
- package/src/components/SwipeableV2/index.tsx +364 -0
- package/src/index.ts +2 -0
- package/types/components/Calendar/helpers.d.ts +2 -2
- package/types/components/Carousel/StyledCarousel.d.ts +10 -2
- package/types/components/Carousel/index.d.ts +5 -1
- package/types/components/Carousel/types.d.ts +7 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Select/helpers.d.ts +1 -1
- package/types/components/SwipeableV2/StyledSwipeable.d.ts +15 -0
- package/types/components/SwipeableV2/index.d.ts +46 -0
- package/types/index.d.ts +2 -1
- package/types/testHelpers/renderWithTheme.d.ts +1 -1
package/es/index.js
CHANGED
|
@@ -5607,7 +5607,7 @@ var index$a = components.reduce(function (acc, comp) {
|
|
|
5607
5607
|
});
|
|
5608
5608
|
}, styled);
|
|
5609
5609
|
|
|
5610
|
-
var StyledWrapper$
|
|
5610
|
+
var StyledWrapper$c = index$a(Animated.View)(function () {
|
|
5611
5611
|
return {
|
|
5612
5612
|
margin: 0,
|
|
5613
5613
|
padding: 0,
|
|
@@ -5681,7 +5681,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
5681
5681
|
var height = _ref2.height;
|
|
5682
5682
|
setContentHeight(height);
|
|
5683
5683
|
}, []);
|
|
5684
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
5684
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$c, {
|
|
5685
5685
|
style: {
|
|
5686
5686
|
height: collapseAnim
|
|
5687
5687
|
},
|
|
@@ -5694,7 +5694,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
5694
5694
|
}, children)));
|
|
5695
5695
|
};
|
|
5696
5696
|
|
|
5697
|
-
var StyledWrapper$
|
|
5697
|
+
var StyledWrapper$b = index$a(View)(function () {
|
|
5698
5698
|
return {};
|
|
5699
5699
|
});
|
|
5700
5700
|
var StyledItemWrapper = index$a(View)(function (_ref) {
|
|
@@ -5747,7 +5747,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
|
|
|
5747
5747
|
});
|
|
5748
5748
|
});
|
|
5749
5749
|
|
|
5750
|
-
var _excluded$
|
|
5750
|
+
var _excluded$q = ["children", "fontSize", "fontWeight", "intent", "typeface"];
|
|
5751
5751
|
var Text = function Text(_ref) {
|
|
5752
5752
|
var children = _ref.children,
|
|
5753
5753
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -5758,7 +5758,7 @@ var Text = function Text(_ref) {
|
|
|
5758
5758
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
5759
5759
|
_ref$typeface = _ref.typeface,
|
|
5760
5760
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
5761
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
5761
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
5762
5762
|
return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
5763
5763
|
themeFontSize: fontSize,
|
|
5764
5764
|
themeFontWeight: fontWeight,
|
|
@@ -5772,7 +5772,7 @@ var Typography = {
|
|
|
5772
5772
|
};
|
|
5773
5773
|
|
|
5774
5774
|
// 🔴 DO NOT EDIT — This file is generated automatically.
|
|
5775
|
-
var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bookmark-added', 'bookmark', 'box-check', 'box', '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', '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', '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', 'survey', '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', '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', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'camera-outlined', 'cancel', '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', 'comment-outlined', 'contacts-outlined', 'credit-card-outlined', 'cup-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-outlined', 'edit-template-outlined', 'email-outlined', 'enter-arrow', 'envelope-outlined', 'expense-outlined', 'explore-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-verified-outlined', 'filter-outlined', 'folder-outlined', 'folder-user-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-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', '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', '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', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'stopwatch-outlined', 'strikethrough', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'target-outlined', 'timesheet-outlined', 'today-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-outlined', 'unavailable', 'underline', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'wallet-outlined'];
|
|
5775
|
+
var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bookmark-added', 'bookmark', 'box-check', 'box', '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', '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', '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', 'survey', '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', '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', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'camera-outlined', 'cancel', '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', 'comment-outlined', 'contacts-outlined', 'credit-card-outlined', 'cup-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-outlined', 'edit-template-outlined', 'email-outlined', 'enter-arrow', 'envelope-outlined', 'expense-outlined', 'explore-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-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', '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-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', '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', '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', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'stopwatch-outlined', 'strikethrough', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'target-outlined', 'timesheet-outlined', 'today-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-outlined', 'unavailable', 'underline', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'wallet-outlined'];
|
|
5776
5776
|
|
|
5777
5777
|
var activate = 59000;
|
|
5778
5778
|
var adjustment = 59003;
|
|
@@ -5845,18 +5845,18 @@ var add = 59172;
|
|
|
5845
5845
|
var bold = 59193;
|
|
5846
5846
|
var cancel = 59203;
|
|
5847
5847
|
var checkmark = 59206;
|
|
5848
|
-
var italic =
|
|
5849
|
-
var number =
|
|
5850
|
-
var percentage =
|
|
5851
|
-
var redeem =
|
|
5852
|
-
var refresh =
|
|
5853
|
-
var remove =
|
|
5854
|
-
var restart =
|
|
5855
|
-
var strikethrough =
|
|
5856
|
-
var sync =
|
|
5857
|
-
var transfer =
|
|
5858
|
-
var unavailable =
|
|
5859
|
-
var underline =
|
|
5848
|
+
var italic = 59280;
|
|
5849
|
+
var number = 59303;
|
|
5850
|
+
var percentage = 59308;
|
|
5851
|
+
var redeem = 59317;
|
|
5852
|
+
var refresh = 59318;
|
|
5853
|
+
var remove = 59319;
|
|
5854
|
+
var restart = 59321;
|
|
5855
|
+
var strikethrough = 59342;
|
|
5856
|
+
var sync = 59347;
|
|
5857
|
+
var transfer = 59351;
|
|
5858
|
+
var unavailable = 59354;
|
|
5859
|
+
var underline = 59355;
|
|
5860
5860
|
var glyphMap = {
|
|
5861
5861
|
activate: activate,
|
|
5862
5862
|
"add-emoji": 59001,
|
|
@@ -6089,138 +6089,140 @@ var glyphMap = {
|
|
|
6089
6089
|
"document-outlined": 59228,
|
|
6090
6090
|
"dollar-card-outlined": 59229,
|
|
6091
6091
|
"dollar-coin-shine-outlined": 59230,
|
|
6092
|
-
"dollar-
|
|
6093
|
-
"
|
|
6094
|
-
"double-
|
|
6095
|
-
"double-
|
|
6096
|
-
"
|
|
6097
|
-
"
|
|
6098
|
-
"
|
|
6099
|
-
"
|
|
6100
|
-
"
|
|
6101
|
-
"
|
|
6102
|
-
"
|
|
6103
|
-
"
|
|
6104
|
-
"
|
|
6105
|
-
"eye-outlined": 59244,
|
|
6106
|
-
"
|
|
6107
|
-
"face-
|
|
6108
|
-
"face-
|
|
6109
|
-
"face-
|
|
6110
|
-
"face-
|
|
6111
|
-
"
|
|
6112
|
-
"
|
|
6113
|
-
"file-
|
|
6114
|
-
"file-
|
|
6115
|
-
"file-
|
|
6116
|
-
"file-
|
|
6117
|
-
"file-
|
|
6118
|
-
"file-
|
|
6119
|
-
"file-
|
|
6120
|
-
"file-outlined": 59259,
|
|
6121
|
-
"file-
|
|
6122
|
-
"file-
|
|
6123
|
-
"file-
|
|
6124
|
-
"
|
|
6125
|
-
"
|
|
6126
|
-
"
|
|
6127
|
-
"
|
|
6128
|
-
"
|
|
6129
|
-
"
|
|
6130
|
-
"
|
|
6131
|
-
"
|
|
6132
|
-
"
|
|
6133
|
-
"
|
|
6134
|
-
"
|
|
6135
|
-
"
|
|
6136
|
-
"
|
|
6137
|
-
"
|
|
6138
|
-
"
|
|
6092
|
+
"dollar-credit-card-outlined": 59231,
|
|
6093
|
+
"dollar-sign": 59232,
|
|
6094
|
+
"double-buildings-outlined": 59233,
|
|
6095
|
+
"double-left-arrows": 59234,
|
|
6096
|
+
"double-right-arrows": 59235,
|
|
6097
|
+
"download-outlined": 59236,
|
|
6098
|
+
"edit-template-outlined": 59237,
|
|
6099
|
+
"email-outlined": 59238,
|
|
6100
|
+
"enter-arrow": 59239,
|
|
6101
|
+
"envelope-outlined": 59240,
|
|
6102
|
+
"expense-outlined": 59241,
|
|
6103
|
+
"explore-outlined": 59242,
|
|
6104
|
+
"external-link": 59243,
|
|
6105
|
+
"eye-invisible-outlined": 59244,
|
|
6106
|
+
"eye-outlined": 59245,
|
|
6107
|
+
"face-id": 59246,
|
|
6108
|
+
"face-meh-outlined": 59247,
|
|
6109
|
+
"face-open-smiley-outlined": 59248,
|
|
6110
|
+
"face-sad-outlined": 59249,
|
|
6111
|
+
"face-smiley-outlined": 59250,
|
|
6112
|
+
"feed-outlined": 59251,
|
|
6113
|
+
"file-certified-outlined": 59252,
|
|
6114
|
+
"file-clone-outlined": 59253,
|
|
6115
|
+
"file-copy-outlined": 59254,
|
|
6116
|
+
"file-dispose-outlined": 59255,
|
|
6117
|
+
"file-dollar-outlined": 59256,
|
|
6118
|
+
"file-download-outlined": 59257,
|
|
6119
|
+
"file-export-outlined": 59258,
|
|
6120
|
+
"file-lock-outlined": 59259,
|
|
6121
|
+
"file-outlined": 59260,
|
|
6122
|
+
"file-search-outlined": 59261,
|
|
6123
|
+
"file-secured-outlined": 59262,
|
|
6124
|
+
"file-statutory-outlined": 59263,
|
|
6125
|
+
"file-verified-outlined": 59264,
|
|
6126
|
+
"filter-outlined": 59265,
|
|
6127
|
+
"folder-outlined": 59266,
|
|
6128
|
+
"folder-user-outlined": 59267,
|
|
6129
|
+
"funnel-filter-outline": 59268,
|
|
6130
|
+
"graph-outlined": 59269,
|
|
6131
|
+
"hand-holding-user-outlined": 59270,
|
|
6132
|
+
"happy-sun-outlined": 59271,
|
|
6133
|
+
"health-bag-outlined": 59272,
|
|
6134
|
+
"heart-outlined": 59273,
|
|
6135
|
+
"home-active-outlined": 59274,
|
|
6136
|
+
"home-outlined": 59275,
|
|
6137
|
+
"id-card-outlined": 59276,
|
|
6138
|
+
"image-outlined": 59277,
|
|
6139
|
+
"import-outlined": 59278,
|
|
6140
|
+
"instapay-outlined": 59279,
|
|
6139
6141
|
italic: italic,
|
|
6140
|
-
"link-1":
|
|
6141
|
-
"link-2":
|
|
6142
|
-
"list-outlined":
|
|
6143
|
-
"live-help-outlined":
|
|
6144
|
-
"location-outlined":
|
|
6145
|
-
"lock-outlined":
|
|
6146
|
-
"locked-file-outlined":
|
|
6147
|
-
"log-out":
|
|
6148
|
-
"media-content-outlined":
|
|
6149
|
-
"menu-close":
|
|
6150
|
-
"menu-expand":
|
|
6151
|
-
"menu-fold-outlined":
|
|
6152
|
-
"menu-unfold-outlined":
|
|
6153
|
-
"moneybag-outlined":
|
|
6154
|
-
"moon-outlined":
|
|
6155
|
-
"more-horizontal":
|
|
6156
|
-
"more-vertical":
|
|
6157
|
-
"multiple-folders-outlined":
|
|
6158
|
-
"multiple-users-outlined":
|
|
6159
|
-
"near-me-outlined":
|
|
6160
|
-
"node-outlined":
|
|
6161
|
-
"number-points":
|
|
6142
|
+
"link-1": 59281,
|
|
6143
|
+
"link-2": 59282,
|
|
6144
|
+
"list-outlined": 59283,
|
|
6145
|
+
"live-help-outlined": 59284,
|
|
6146
|
+
"location-outlined": 59285,
|
|
6147
|
+
"lock-outlined": 59286,
|
|
6148
|
+
"locked-file-outlined": 59287,
|
|
6149
|
+
"log-out": 59288,
|
|
6150
|
+
"media-content-outlined": 59289,
|
|
6151
|
+
"menu-close": 59290,
|
|
6152
|
+
"menu-expand": 59291,
|
|
6153
|
+
"menu-fold-outlined": 59292,
|
|
6154
|
+
"menu-unfold-outlined": 59293,
|
|
6155
|
+
"moneybag-outlined": 59294,
|
|
6156
|
+
"moon-outlined": 59295,
|
|
6157
|
+
"more-horizontal": 59296,
|
|
6158
|
+
"more-vertical": 59297,
|
|
6159
|
+
"multiple-folders-outlined": 59298,
|
|
6160
|
+
"multiple-users-outlined": 59299,
|
|
6161
|
+
"near-me-outlined": 59300,
|
|
6162
|
+
"node-outlined": 59301,
|
|
6163
|
+
"number-points": 59302,
|
|
6162
6164
|
number: number,
|
|
6163
|
-
"overview-outlined":
|
|
6164
|
-
"payment-summary-outlined":
|
|
6165
|
-
"payslip-outlined":
|
|
6166
|
-
"pencil-outlined":
|
|
6165
|
+
"overview-outlined": 59304,
|
|
6166
|
+
"payment-summary-outlined": 59305,
|
|
6167
|
+
"payslip-outlined": 59306,
|
|
6168
|
+
"pencil-outlined": 59307,
|
|
6167
6169
|
percentage: percentage,
|
|
6168
|
-
"phone-outlined":
|
|
6169
|
-
"piggy-bank-outlined":
|
|
6170
|
-
"plane-outlined":
|
|
6171
|
-
"play-circle-outlined":
|
|
6172
|
-
"print-outlined":
|
|
6173
|
-
"qr-code-outlined":
|
|
6174
|
-
"qualification-outlined":
|
|
6175
|
-
"re-assign":
|
|
6170
|
+
"phone-outlined": 59309,
|
|
6171
|
+
"piggy-bank-outlined": 59310,
|
|
6172
|
+
"plane-outlined": 59311,
|
|
6173
|
+
"play-circle-outlined": 59312,
|
|
6174
|
+
"print-outlined": 59313,
|
|
6175
|
+
"qr-code-outlined": 59314,
|
|
6176
|
+
"qualification-outlined": 59315,
|
|
6177
|
+
"re-assign": 59316,
|
|
6176
6178
|
redeem: redeem,
|
|
6177
6179
|
refresh: refresh,
|
|
6178
6180
|
remove: remove,
|
|
6179
|
-
"reply-outlined":
|
|
6181
|
+
"reply-outlined": 59320,
|
|
6180
6182
|
restart: restart,
|
|
6181
|
-
"return-arrow":
|
|
6182
|
-
"rostering-outlined":
|
|
6183
|
-
"save-outlined":
|
|
6184
|
-
"schedule-outlined":
|
|
6185
|
-
"search-outlined":
|
|
6186
|
-
"search-secured-outlined":
|
|
6187
|
-
"send-outlined":
|
|
6188
|
-
"share-1":
|
|
6189
|
-
"share-2":
|
|
6190
|
-
"share-outlined":
|
|
6191
|
-
"show-chart-outlined":
|
|
6192
|
-
"single-down-arrow":
|
|
6193
|
-
"single-left-arrow":
|
|
6194
|
-
"single-right-arrow":
|
|
6195
|
-
"single-up-arrow":
|
|
6196
|
-
"speaker-active-outlined":
|
|
6197
|
-
"speaker-outlined":
|
|
6198
|
-
"star-circle-outlined":
|
|
6199
|
-
"star-outlined":
|
|
6200
|
-
"stopwatch-outlined":
|
|
6183
|
+
"return-arrow": 59322,
|
|
6184
|
+
"rostering-outlined": 59323,
|
|
6185
|
+
"save-outlined": 59324,
|
|
6186
|
+
"schedule-outlined": 59325,
|
|
6187
|
+
"search-outlined": 59326,
|
|
6188
|
+
"search-secured-outlined": 59327,
|
|
6189
|
+
"send-outlined": 59328,
|
|
6190
|
+
"share-1": 59329,
|
|
6191
|
+
"share-2": 59330,
|
|
6192
|
+
"share-outlined": 59331,
|
|
6193
|
+
"show-chart-outlined": 59332,
|
|
6194
|
+
"single-down-arrow": 59333,
|
|
6195
|
+
"single-left-arrow": 59334,
|
|
6196
|
+
"single-right-arrow": 59335,
|
|
6197
|
+
"single-up-arrow": 59336,
|
|
6198
|
+
"speaker-active-outlined": 59337,
|
|
6199
|
+
"speaker-outlined": 59338,
|
|
6200
|
+
"star-circle-outlined": 59339,
|
|
6201
|
+
"star-outlined": 59340,
|
|
6202
|
+
"stopwatch-outlined": 59341,
|
|
6201
6203
|
strikethrough: strikethrough,
|
|
6202
|
-
"suitcase-clock-outlined":
|
|
6203
|
-
"suitcase-outlined":
|
|
6204
|
-
"survey-outlined":
|
|
6205
|
-
"switch-outlined":
|
|
6204
|
+
"suitcase-clock-outlined": 59343,
|
|
6205
|
+
"suitcase-outlined": 59344,
|
|
6206
|
+
"survey-outlined": 59345,
|
|
6207
|
+
"switch-outlined": 59346,
|
|
6206
6208
|
sync: sync,
|
|
6207
|
-
"target-outlined":
|
|
6208
|
-
"timesheet-outlined":
|
|
6209
|
-
"today-outlined":
|
|
6209
|
+
"target-outlined": 59348,
|
|
6210
|
+
"timesheet-outlined": 59349,
|
|
6211
|
+
"today-outlined": 59350,
|
|
6210
6212
|
transfer: transfer,
|
|
6211
|
-
"trash-bin-outlined":
|
|
6212
|
-
"umbrela-outlined":
|
|
6213
|
+
"trash-bin-outlined": 59352,
|
|
6214
|
+
"umbrela-outlined": 59353,
|
|
6213
6215
|
unavailable: unavailable,
|
|
6214
6216
|
underline: underline,
|
|
6215
|
-
"unlock-outlined":
|
|
6216
|
-
"upload-outlined":
|
|
6217
|
-
"user-circle-outlined":
|
|
6218
|
-
"user-gear-outlined":
|
|
6219
|
-
"user-outlined":
|
|
6220
|
-
"user-rectangle-outlined":
|
|
6221
|
-
"video-1-outlined":
|
|
6222
|
-
"video-2-outlined":
|
|
6223
|
-
"wallet-outlined":
|
|
6217
|
+
"unlock-outlined": 59356,
|
|
6218
|
+
"upload-outlined": 59357,
|
|
6219
|
+
"user-circle-outlined": 59358,
|
|
6220
|
+
"user-gear-outlined": 59359,
|
|
6221
|
+
"user-outlined": 59360,
|
|
6222
|
+
"user-rectangle-outlined": 59361,
|
|
6223
|
+
"video-1-outlined": 59362,
|
|
6224
|
+
"video-2-outlined": 59363,
|
|
6225
|
+
"wallet-outlined": 59364
|
|
6224
6226
|
};
|
|
6225
6227
|
|
|
6226
6228
|
var HeroIcon = createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -6245,10 +6247,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
6245
6247
|
};
|
|
6246
6248
|
});
|
|
6247
6249
|
|
|
6248
|
-
var _excluded$
|
|
6250
|
+
var _excluded$p = ["style"];
|
|
6249
6251
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
6250
6252
|
var style = _ref.style,
|
|
6251
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
6253
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
6252
6254
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
6253
6255
|
useEffect(function () {
|
|
6254
6256
|
var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
|
|
@@ -6354,7 +6356,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
6354
6356
|
}, content));
|
|
6355
6357
|
};
|
|
6356
6358
|
|
|
6357
|
-
var _excluded$
|
|
6359
|
+
var _excluded$o = ["key"];
|
|
6358
6360
|
var Accordion = function Accordion(_ref) {
|
|
6359
6361
|
var items = _ref.items,
|
|
6360
6362
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -6370,12 +6372,12 @@ var Accordion = function Accordion(_ref) {
|
|
|
6370
6372
|
_usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
|
|
6371
6373
|
_activeItemKey = _usePropsOrInternalSt2[0],
|
|
6372
6374
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
6373
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
6375
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$b, {
|
|
6374
6376
|
style: style,
|
|
6375
6377
|
testID: testID
|
|
6376
6378
|
}, items.map(function (_ref2, index) {
|
|
6377
6379
|
var key = _ref2.key,
|
|
6378
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6380
|
+
props = _objectWithoutProperties(_ref2, _excluded$o);
|
|
6379
6381
|
var open = _activeItemKey === key;
|
|
6380
6382
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
6381
6383
|
key: key
|
|
@@ -6557,7 +6559,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
6557
6559
|
})) : null);
|
|
6558
6560
|
};
|
|
6559
6561
|
|
|
6560
|
-
var StyledWrapper$
|
|
6562
|
+
var StyledWrapper$a = index$a(TouchableOpacity)(function (_ref) {
|
|
6561
6563
|
var themeSize = _ref.themeSize,
|
|
6562
6564
|
themeIntent = _ref.themeIntent,
|
|
6563
6565
|
theme = _ref.theme;
|
|
@@ -6612,7 +6614,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
6612
6614
|
hasImageError = _useState2[0],
|
|
6613
6615
|
setHasImageError = _useState2[1];
|
|
6614
6616
|
if (title === undefined && source === undefined) return null;
|
|
6615
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
6617
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$a, {
|
|
6616
6618
|
testID: testID,
|
|
6617
6619
|
onPress: onPress,
|
|
6618
6620
|
disabled: onPress === undefined,
|
|
@@ -6636,7 +6638,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
6636
6638
|
};
|
|
6637
6639
|
|
|
6638
6640
|
var VISIBLE_RATIO = 0.7;
|
|
6639
|
-
var StyledWrapper$
|
|
6641
|
+
var StyledWrapper$9 = index$a(View)(function (_ref) {
|
|
6640
6642
|
var theme = _ref.theme,
|
|
6641
6643
|
themeSize = _ref.themeSize,
|
|
6642
6644
|
themeAvatarCount = _ref.themeAvatarCount;
|
|
@@ -6698,7 +6700,7 @@ var AvatarStack = function AvatarStack(_ref) {
|
|
|
6698
6700
|
});
|
|
6699
6701
|
avatars.push(remainingAvatar);
|
|
6700
6702
|
}
|
|
6701
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
6703
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$9, {
|
|
6702
6704
|
themeSize: size,
|
|
6703
6705
|
themeAvatarCount: avatars.length,
|
|
6704
6706
|
style: style,
|
|
@@ -6757,7 +6759,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
|
|
|
6757
6759
|
};
|
|
6758
6760
|
});
|
|
6759
6761
|
|
|
6760
|
-
var _excluded$
|
|
6762
|
+
var _excluded$n = ["children", "visible", "intent", "style", "testID"];
|
|
6761
6763
|
var Status = function Status(_ref) {
|
|
6762
6764
|
var children = _ref.children,
|
|
6763
6765
|
_ref$visible = _ref.visible,
|
|
@@ -6766,7 +6768,7 @@ var Status = function Status(_ref) {
|
|
|
6766
6768
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
6767
6769
|
style = _ref.style,
|
|
6768
6770
|
testID = _ref.testID,
|
|
6769
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6771
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
6770
6772
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
6771
6773
|
opacity = _React$useRef.current;
|
|
6772
6774
|
var isFirstRendering = React.useRef(true);
|
|
@@ -6799,7 +6801,7 @@ var Status = function Status(_ref) {
|
|
|
6799
6801
|
}));
|
|
6800
6802
|
};
|
|
6801
6803
|
|
|
6802
|
-
var _excluded$
|
|
6804
|
+
var _excluded$m = ["content", "visible", "max", "intent", "style", "testID"];
|
|
6803
6805
|
var DEFAULT_MAX_NUMBER = 99;
|
|
6804
6806
|
var getPaddingState = function getPaddingState(content) {
|
|
6805
6807
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -6814,7 +6816,7 @@ var Badge = function Badge(_ref) {
|
|
|
6814
6816
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
6815
6817
|
style = _ref.style,
|
|
6816
6818
|
testID = _ref.testID,
|
|
6817
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6819
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
6818
6820
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
6819
6821
|
opacity = _React$useRef.current;
|
|
6820
6822
|
var isFirstRendering = React.useRef(true);
|
|
@@ -6918,7 +6920,7 @@ function omit(keys, obj) {
|
|
|
6918
6920
|
return result;
|
|
6919
6921
|
}
|
|
6920
6922
|
|
|
6921
|
-
var _excluded$
|
|
6923
|
+
var _excluded$l = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
6922
6924
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
6923
6925
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
6924
6926
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -6929,7 +6931,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
6929
6931
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
6930
6932
|
selectedTabKey = _ref.selectedTabKey,
|
|
6931
6933
|
tabs = _ref.tabs,
|
|
6932
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6934
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
6933
6935
|
var insets = useSafeAreaInsets();
|
|
6934
6936
|
/**
|
|
6935
6937
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -7016,13 +7018,13 @@ var StyledDivider = index$a(View)(function (_ref) {
|
|
|
7016
7018
|
}, horizontalMargin), verticalMargin);
|
|
7017
7019
|
});
|
|
7018
7020
|
|
|
7019
|
-
var _excluded$
|
|
7021
|
+
var _excluded$k = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
7020
7022
|
var Divider = function Divider(_ref) {
|
|
7021
7023
|
var marginHorizontal = _ref.marginHorizontal,
|
|
7022
7024
|
marginVertical = _ref.marginVertical,
|
|
7023
7025
|
style = _ref.style,
|
|
7024
7026
|
testID = _ref.testID,
|
|
7025
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7027
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
7026
7028
|
return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
7027
7029
|
themeMarginHorizontal: marginHorizontal,
|
|
7028
7030
|
themeMarginVertical: marginVertical,
|
|
@@ -7033,7 +7035,7 @@ var Divider = function Divider(_ref) {
|
|
|
7033
7035
|
|
|
7034
7036
|
var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
|
|
7035
7037
|
var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
|
|
7036
|
-
var StyledWrapper$
|
|
7038
|
+
var StyledWrapper$8 = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
7037
7039
|
flexDirection: 'column-reverse'
|
|
7038
7040
|
}));
|
|
7039
7041
|
var StyledKeyboardAvoidingView = index$a(KeyboardAvoidingView)(function () {
|
|
@@ -7152,7 +7154,7 @@ var StyledLoadingDot = index$a(View)(function (_ref2) {
|
|
|
7152
7154
|
}, themeStyling());
|
|
7153
7155
|
});
|
|
7154
7156
|
|
|
7155
|
-
var _excluded$
|
|
7157
|
+
var _excluded$j = ["count", "size", "testID", "themeVariant"];
|
|
7156
7158
|
var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
7157
7159
|
var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
|
|
7158
7160
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -7184,7 +7186,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
7184
7186
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
7185
7187
|
testID = _ref2.testID,
|
|
7186
7188
|
themeVariant = _ref2.themeVariant,
|
|
7187
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7189
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$j);
|
|
7188
7190
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
7189
7191
|
useEffect(function () {
|
|
7190
7192
|
var animation = Animated.loop(Animated.timing(progressAnimation.current, {
|
|
@@ -7580,11 +7582,11 @@ var Header = function Header(_ref) {
|
|
|
7580
7582
|
})) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
|
|
7581
7583
|
};
|
|
7582
7584
|
|
|
7583
|
-
var _excluded$
|
|
7585
|
+
var _excluded$i = ["scrollEventThrottle"];
|
|
7584
7586
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
7585
7587
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
7586
7588
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
7587
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7589
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
7588
7590
|
var _useContext = useContext(BottomSheetContext),
|
|
7589
7591
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
7590
7592
|
var onScrollBeginDrag = useCallback(function (e) {
|
|
@@ -7692,7 +7694,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
7692
7694
|
transparent: true,
|
|
7693
7695
|
testID: testID,
|
|
7694
7696
|
onShow: onOpen
|
|
7695
|
-
}, /*#__PURE__*/React.createElement(StyledWrapper$
|
|
7697
|
+
}, /*#__PURE__*/React.createElement(StyledWrapper$8, {
|
|
7696
7698
|
pointerEvents: "box-none"
|
|
7697
7699
|
}, /*#__PURE__*/React.createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
7698
7700
|
behavior: Platform.OS === 'ios' ? 'padding' : 'height'
|
|
@@ -7899,7 +7901,7 @@ var borderWidths = {
|
|
|
7899
7901
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
7900
7902
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
7901
7903
|
|
|
7902
|
-
var _excluded$
|
|
7904
|
+
var _excluded$h = ["theme"];
|
|
7903
7905
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
7904
7906
|
var propConfig = config[key];
|
|
7905
7907
|
var propValue = props[key];
|
|
@@ -7926,18 +7928,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
7926
7928
|
var configKeys = Object.keys(config);
|
|
7927
7929
|
var StyledBox = index$a(View)(function (_ref5) {
|
|
7928
7930
|
var theme = _ref5.theme,
|
|
7929
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
7931
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$h);
|
|
7930
7932
|
var styleProps = pick(configKeys, otherProps);
|
|
7931
7933
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
7932
7934
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
7933
7935
|
});
|
|
7934
7936
|
|
|
7935
|
-
var _excluded$
|
|
7937
|
+
var _excluded$g = ["children", "style", "testID"];
|
|
7936
7938
|
var Box = function Box(_ref) {
|
|
7937
7939
|
var children = _ref.children,
|
|
7938
7940
|
style = _ref.style,
|
|
7939
7941
|
testID = _ref.testID,
|
|
7940
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7942
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
7941
7943
|
return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
7942
7944
|
style: style,
|
|
7943
7945
|
testID: testID
|
|
@@ -10548,7 +10550,7 @@ var CarouselPaginator = function CarouselPaginator(_ref) {
|
|
|
10548
10550
|
}));
|
|
10549
10551
|
};
|
|
10550
10552
|
|
|
10551
|
-
var _excluded$
|
|
10553
|
+
var _excluded$f = ["rounded", "size", "testID", "style"];
|
|
10552
10554
|
var Image = function Image(_ref) {
|
|
10553
10555
|
var _ref$rounded = _ref.rounded,
|
|
10554
10556
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -10556,7 +10558,7 @@ var Image = function Image(_ref) {
|
|
|
10556
10558
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
10557
10559
|
testID = _ref.testID,
|
|
10558
10560
|
style = _ref.style,
|
|
10559
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10561
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
10560
10562
|
var theme = useTheme();
|
|
10561
10563
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
10562
10564
|
return /*#__PURE__*/React.createElement(Image$1, _extends$1({
|
|
@@ -10603,15 +10605,27 @@ var StyledCarouselImage = index$a(Image)(function () {
|
|
|
10603
10605
|
resizeMode: 'contain'
|
|
10604
10606
|
};
|
|
10605
10607
|
});
|
|
10606
|
-
var
|
|
10607
|
-
var
|
|
10608
|
+
var StyledCustomSizeCarouselImage = index$a(Image)(function (_ref3) {
|
|
10609
|
+
var height = _ref3.height,
|
|
10610
|
+
_ref3$resizeMode = _ref3.resizeMode,
|
|
10611
|
+
resizeMode = _ref3$resizeMode === void 0 ? 'contain' : _ref3$resizeMode,
|
|
10612
|
+
width = _ref3.width;
|
|
10613
|
+
return {
|
|
10614
|
+
alignSelf: 'center',
|
|
10615
|
+
width: width,
|
|
10616
|
+
height: height,
|
|
10617
|
+
resizeMode: resizeMode
|
|
10618
|
+
};
|
|
10619
|
+
});
|
|
10620
|
+
var StyledCarouselContentWrapper = index$a(Box)(function (_ref4) {
|
|
10621
|
+
var width = _ref4.width;
|
|
10608
10622
|
return {
|
|
10609
10623
|
width: width,
|
|
10610
10624
|
minHeight: scale(250)
|
|
10611
10625
|
};
|
|
10612
10626
|
});
|
|
10613
|
-
var StyledCarouselFooterWrapper = index$a(View)(function (
|
|
10614
|
-
var theme =
|
|
10627
|
+
var StyledCarouselFooterWrapper = index$a(View)(function (_ref5) {
|
|
10628
|
+
var theme = _ref5.theme;
|
|
10615
10629
|
return {
|
|
10616
10630
|
paddingHorizontal: theme.__hd__.carousel.space.footerPaddingHorizontal,
|
|
10617
10631
|
flexDirection: 'row',
|
|
@@ -10621,6 +10635,9 @@ var StyledCarouselFooterWrapper = index$a(View)(function (_ref4) {
|
|
|
10621
10635
|
};
|
|
10622
10636
|
});
|
|
10623
10637
|
|
|
10638
|
+
function isCarouselImageProps(image) {
|
|
10639
|
+
return typeof image !== 'string';
|
|
10640
|
+
}
|
|
10624
10641
|
var CarouselItem = function CarouselItem(_ref) {
|
|
10625
10642
|
var width = _ref.width,
|
|
10626
10643
|
image = _ref.image,
|
|
@@ -10631,11 +10648,16 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
10631
10648
|
style: {
|
|
10632
10649
|
width: width
|
|
10633
10650
|
}
|
|
10634
|
-
}, image && /*#__PURE__*/React.createElement(
|
|
10635
|
-
source:
|
|
10651
|
+
}, image && (isCarouselImageProps(image) ? /*#__PURE__*/React.createElement(StyledCustomSizeCarouselImage, {
|
|
10652
|
+
source: image,
|
|
10653
|
+
height: image.height,
|
|
10654
|
+
width: image.width,
|
|
10655
|
+
resizeMode: image.resizeMode
|
|
10656
|
+
}) : /*#__PURE__*/React.createElement(StyledCarouselImage, {
|
|
10657
|
+
source: {
|
|
10636
10658
|
uri: image
|
|
10637
|
-
}
|
|
10638
|
-
}), /*#__PURE__*/React.createElement(StyledCarouselContentWrapper, {
|
|
10659
|
+
}
|
|
10660
|
+
})), /*#__PURE__*/React.createElement(StyledCarouselContentWrapper, {
|
|
10639
10661
|
paddingHorizontal: "large",
|
|
10640
10662
|
marginTop: "large",
|
|
10641
10663
|
width: width
|
|
@@ -10644,7 +10666,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
10644
10666
|
}, body) : null));
|
|
10645
10667
|
};
|
|
10646
10668
|
|
|
10647
|
-
var _excluded$
|
|
10669
|
+
var _excluded$e = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination"];
|
|
10648
10670
|
function useStateFromProp(initialValue) {
|
|
10649
10671
|
var _useState = useState(initialValue),
|
|
10650
10672
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10662,7 +10684,11 @@ var Carousel = function Carousel(_ref) {
|
|
|
10662
10684
|
_ref$selectedItemInde = _ref.selectedItemIndex,
|
|
10663
10685
|
selectedItemIndex = _ref$selectedItemInde === void 0 ? 0 : _ref$selectedItemInde,
|
|
10664
10686
|
style = _ref.style,
|
|
10665
|
-
|
|
10687
|
+
_ref$shouldShowPagina = _ref.shouldShowPagination,
|
|
10688
|
+
shouldShowPagination = _ref$shouldShowPagina === void 0 ? function () {
|
|
10689
|
+
return true;
|
|
10690
|
+
} : _ref$shouldShowPagina,
|
|
10691
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
10666
10692
|
var carouselRef = useRef(null);
|
|
10667
10693
|
var _useStateFromProp = useStateFromProp(selectedItemIndex),
|
|
10668
10694
|
_useStateFromProp2 = _slicedToArray(_useStateFromProp, 2),
|
|
@@ -10738,7 +10764,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
10738
10764
|
width: width
|
|
10739
10765
|
});
|
|
10740
10766
|
}
|
|
10741
|
-
}), /*#__PURE__*/React.createElement(StyledCarouselFooterWrapper, null, renderActions && renderActions(currentSlideIndex), /*#__PURE__*/React.createElement(CarouselPaginator, {
|
|
10767
|
+
}), /*#__PURE__*/React.createElement(StyledCarouselFooterWrapper, null, renderActions && renderActions(currentSlideIndex), shouldShowPagination(currentSlideIndex) && /*#__PURE__*/React.createElement(CarouselPaginator, {
|
|
10742
10768
|
numberOfSlides: items.length,
|
|
10743
10769
|
scrollX: scrollX
|
|
10744
10770
|
}))));
|
|
@@ -10762,12 +10788,12 @@ var Indicator = index$a(View)(function (_ref2) {
|
|
|
10762
10788
|
};
|
|
10763
10789
|
});
|
|
10764
10790
|
|
|
10765
|
-
var _excluded$
|
|
10791
|
+
var _excluded$d = ["intent", "children"];
|
|
10766
10792
|
var DataCard = function DataCard(_ref) {
|
|
10767
10793
|
var _ref$intent = _ref.intent,
|
|
10768
10794
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
10769
10795
|
children = _ref.children,
|
|
10770
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10796
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$d);
|
|
10771
10797
|
return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
|
|
10772
10798
|
themeIntent: intent,
|
|
10773
10799
|
testID: "data-card-indicator"
|
|
@@ -10785,11 +10811,11 @@ var StyledCard = index$a(View)(function (_ref) {
|
|
|
10785
10811
|
});
|
|
10786
10812
|
});
|
|
10787
10813
|
|
|
10788
|
-
var _excluded$
|
|
10814
|
+
var _excluded$c = ["intent", "children"];
|
|
10789
10815
|
var Card = function Card(_ref) {
|
|
10790
10816
|
var intent = _ref.intent,
|
|
10791
10817
|
children = _ref.children,
|
|
10792
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10818
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
10793
10819
|
return /*#__PURE__*/React.createElement(StyledCard, _extends$1({}, nativeProps, {
|
|
10794
10820
|
themeIntent: intent
|
|
10795
10821
|
}), children);
|
|
@@ -10798,7 +10824,7 @@ var index$8 = Object.assign(Card, {
|
|
|
10798
10824
|
Data: DataCard
|
|
10799
10825
|
});
|
|
10800
10826
|
|
|
10801
|
-
var StyledWrapper$
|
|
10827
|
+
var StyledWrapper$7 = index$a(TouchableOpacity)(function (_ref) {
|
|
10802
10828
|
var theme = _ref.theme,
|
|
10803
10829
|
themeWithBorder = _ref.themeWithBorder,
|
|
10804
10830
|
themeDisabled = _ref.themeDisabled;
|
|
@@ -10855,7 +10881,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
10855
10881
|
onPress = _ref.onPress,
|
|
10856
10882
|
style = _ref.style,
|
|
10857
10883
|
testID = _ref.testID;
|
|
10858
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
10884
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$7, {
|
|
10859
10885
|
onPress: onPress,
|
|
10860
10886
|
disabled: disabled,
|
|
10861
10887
|
themeDisabled: disabled,
|
|
@@ -11023,7 +11049,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
|
11023
11049
|
};
|
|
11024
11050
|
});
|
|
11025
11051
|
|
|
11026
|
-
var _excluded$
|
|
11052
|
+
var _excluded$b = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
|
|
11027
11053
|
var getVariant$1 = function getVariant(_ref) {
|
|
11028
11054
|
var disabled = _ref.disabled,
|
|
11029
11055
|
error = _ref.error,
|
|
@@ -11069,7 +11095,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
11069
11095
|
value = _ref2.value,
|
|
11070
11096
|
defaultValue = _ref2.defaultValue,
|
|
11071
11097
|
renderInputValue = _ref2.renderInputValue,
|
|
11072
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11098
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$b);
|
|
11073
11099
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
11074
11100
|
var isEmptyValue = displayText.length === 0;
|
|
11075
11101
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -11655,7 +11681,7 @@ var index$7 = Object.assign(Drawer, {
|
|
|
11655
11681
|
Dragable: DragableDrawer
|
|
11656
11682
|
});
|
|
11657
11683
|
|
|
11658
|
-
var StyledWrapper$
|
|
11684
|
+
var StyledWrapper$6 = index$a(View)(function (_ref) {
|
|
11659
11685
|
var theme = _ref.theme;
|
|
11660
11686
|
return {
|
|
11661
11687
|
display: 'flex',
|
|
@@ -11697,7 +11723,7 @@ var Empty = function Empty(_ref) {
|
|
|
11697
11723
|
_ref$variant = _ref.variant,
|
|
11698
11724
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
11699
11725
|
var theme = useTheme();
|
|
11700
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
11726
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$6, {
|
|
11701
11727
|
style: style,
|
|
11702
11728
|
testID: testID
|
|
11703
11729
|
}, image !== undefined && /*#__PURE__*/React.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
@@ -11747,11 +11773,11 @@ var StyledFABText = index$a(Text$1)(function (_ref3) {
|
|
|
11747
11773
|
};
|
|
11748
11774
|
});
|
|
11749
11775
|
|
|
11750
|
-
var _excluded$
|
|
11776
|
+
var _excluded$a = ["active"];
|
|
11751
11777
|
var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
11752
11778
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
11753
11779
|
var active = _ref.active,
|
|
11754
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
11780
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
11755
11781
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
11756
11782
|
useEffect(function () {
|
|
11757
11783
|
var animation = Animated.timing(rotateAnimation.current, {
|
|
@@ -12104,8 +12130,7 @@ var ListItem = function ListItem(_ref) {
|
|
|
12104
12130
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
12105
12131
|
}) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer$1, null, /*#__PURE__*/React.createElement(Typography.Text, {
|
|
12106
12132
|
intent: "body",
|
|
12107
|
-
fontSize: "large"
|
|
12108
|
-
fontWeight: "semi-bold"
|
|
12133
|
+
fontSize: "large"
|
|
12109
12134
|
}, title), !!subtitle && /*#__PURE__*/React.createElement(Typography.Text, {
|
|
12110
12135
|
intent: "subdued",
|
|
12111
12136
|
fontSize: "small"
|
|
@@ -12187,7 +12212,7 @@ var List = {
|
|
|
12187
12212
|
BasicItem: BasicListItem
|
|
12188
12213
|
};
|
|
12189
12214
|
|
|
12190
|
-
var StyledWrapper$
|
|
12215
|
+
var StyledWrapper$5 = index$a(View)(function () {
|
|
12191
12216
|
return {
|
|
12192
12217
|
alignContent: 'flex-start'
|
|
12193
12218
|
};
|
|
@@ -12365,7 +12390,7 @@ function PinInput(_ref2) {
|
|
|
12365
12390
|
InteractionManager.runAfterInteractions(focus);
|
|
12366
12391
|
}
|
|
12367
12392
|
}, [inputRef]);
|
|
12368
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
12393
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$5, {
|
|
12369
12394
|
style: style,
|
|
12370
12395
|
testID: testID
|
|
12371
12396
|
}, /*#__PURE__*/React.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
@@ -12482,7 +12507,7 @@ var StyledStrokeEnd = index$a(View)(function (_ref6) {
|
|
|
12482
12507
|
};
|
|
12483
12508
|
});
|
|
12484
12509
|
|
|
12485
|
-
var _excluded$
|
|
12510
|
+
var _excluded$9 = ["value", "renderValue", "intent", "style", "testID"];
|
|
12486
12511
|
var HalfCircle = function HalfCircle(_ref) {
|
|
12487
12512
|
var type = _ref.type,
|
|
12488
12513
|
themeIntent = _ref.themeIntent;
|
|
@@ -12503,7 +12528,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
12503
12528
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
12504
12529
|
style = _ref2.style,
|
|
12505
12530
|
testID = _ref2.testID,
|
|
12506
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12531
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$9);
|
|
12507
12532
|
var theme = useTheme$1();
|
|
12508
12533
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
12509
12534
|
var progressAnimatedValue = useRef(new Animated.Value(0));
|
|
@@ -12600,7 +12625,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
12600
12625
|
}, renderValue(value)))));
|
|
12601
12626
|
};
|
|
12602
12627
|
|
|
12603
|
-
var StyledWrapper$
|
|
12628
|
+
var StyledWrapper$4 = index$a(View)(function (_ref) {
|
|
12604
12629
|
var theme = _ref.theme,
|
|
12605
12630
|
themeIntent = _ref.themeIntent;
|
|
12606
12631
|
return {
|
|
@@ -12620,14 +12645,14 @@ var StyledInner = index$a(Animated.View)(function (_ref2) {
|
|
|
12620
12645
|
};
|
|
12621
12646
|
});
|
|
12622
12647
|
|
|
12623
|
-
var _excluded$
|
|
12648
|
+
var _excluded$8 = ["value", "intent", "style", "testID"];
|
|
12624
12649
|
var ProgressBar = function ProgressBar(_ref) {
|
|
12625
12650
|
var value = _ref.value,
|
|
12626
12651
|
_ref$intent = _ref.intent,
|
|
12627
12652
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
12628
12653
|
style = _ref.style,
|
|
12629
12654
|
testID = _ref.testID,
|
|
12630
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12655
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
12631
12656
|
var _useState = useState(0),
|
|
12632
12657
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12633
12658
|
width = _useState2[0],
|
|
@@ -12653,7 +12678,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
12653
12678
|
outputRange: [999, 0],
|
|
12654
12679
|
extrapolate: 'clamp'
|
|
12655
12680
|
});
|
|
12656
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
12681
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
|
|
12657
12682
|
testID: testID,
|
|
12658
12683
|
style: style,
|
|
12659
12684
|
themeIntent: intent
|
|
@@ -12818,14 +12843,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
12818
12843
|
}, dotProps))));
|
|
12819
12844
|
};
|
|
12820
12845
|
|
|
12821
|
-
var _excluded$
|
|
12846
|
+
var _excluded$7 = ["testID", "size", "intent"];
|
|
12822
12847
|
var Spinner = function Spinner(_ref) {
|
|
12823
12848
|
var testID = _ref.testID,
|
|
12824
12849
|
_ref$size = _ref.size,
|
|
12825
12850
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
12826
12851
|
_ref$intent = _ref.intent,
|
|
12827
12852
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
12828
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12853
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
12829
12854
|
return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
|
|
12830
12855
|
testID: testID
|
|
12831
12856
|
}, /*#__PURE__*/React.createElement(AnimatedSpinner, {
|
|
@@ -12858,7 +12883,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
12858
12883
|
}, children);
|
|
12859
12884
|
};
|
|
12860
12885
|
|
|
12861
|
-
var _excluded$
|
|
12886
|
+
var _excluded$6 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
|
|
12862
12887
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
12863
12888
|
var trans = progress.interpolate({
|
|
12864
12889
|
inputRange: [0, 1],
|
|
@@ -12883,7 +12908,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
12883
12908
|
leftActionsWidth = _ref.leftActionsWidth,
|
|
12884
12909
|
rightActions = _ref.rightActions,
|
|
12885
12910
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
12886
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
12911
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
12887
12912
|
var _useWindowDimensions = useWindowDimensions(),
|
|
12888
12913
|
width = _useWindowDimensions.width;
|
|
12889
12914
|
var swipeableRef = useRef(null);
|
|
@@ -12930,6 +12955,232 @@ var index$5 = Object.assign(Swipeable, {
|
|
|
12930
12955
|
Content: RectButton
|
|
12931
12956
|
});
|
|
12932
12957
|
|
|
12958
|
+
var StyledWrapper$3 = index$a(View)(function () {
|
|
12959
|
+
return {
|
|
12960
|
+
flexDirection: 'row'
|
|
12961
|
+
};
|
|
12962
|
+
});
|
|
12963
|
+
var StyledContent = index$a(Animated.View)(function () {
|
|
12964
|
+
return {
|
|
12965
|
+
flex: 1
|
|
12966
|
+
};
|
|
12967
|
+
});
|
|
12968
|
+
|
|
12969
|
+
var _excluded$5 = ["children", "leftContent", "rightContent", "style", "leftActionsWidth", "onSwipeLeftStart", "onSwipeLeftEnd", "rightActionsWidth", "onSwipeRightStart", "onSwipeRightEnd"];
|
|
12970
|
+
var swipeStartMinDistance = 15;
|
|
12971
|
+
var ReleaseAnimationConfig = {
|
|
12972
|
+
toValue: {
|
|
12973
|
+
x: 0,
|
|
12974
|
+
y: 0
|
|
12975
|
+
},
|
|
12976
|
+
duration: 100,
|
|
12977
|
+
easing: Easing.elastic(0.5),
|
|
12978
|
+
useNativeDriver: true
|
|
12979
|
+
};
|
|
12980
|
+
var animationToNewState = function animationToNewState(pan) {
|
|
12981
|
+
var animationConfig = ReleaseAnimationConfig;
|
|
12982
|
+
pan.flattenOffset();
|
|
12983
|
+
return Animated.timing(pan, animationConfig);
|
|
12984
|
+
};
|
|
12985
|
+
var hanleOnPanResponderEnd = function hanleOnPanResponderEnd(state, contextValues, event, gestureState) {
|
|
12986
|
+
var unmountedRef = contextValues.unmountedRef,
|
|
12987
|
+
onSwipeLeftEnd = contextValues.onSwipeLeftEnd,
|
|
12988
|
+
onSwipeRightEnd = contextValues.onSwipeRightEnd;
|
|
12989
|
+
var leftActionActivated = state.leftActionActivated,
|
|
12990
|
+
rightActionActivated = state.rightActionActivated,
|
|
12991
|
+
pan = state.pan;
|
|
12992
|
+
var animationConfig = ReleaseAnimationConfig;
|
|
12993
|
+
animationToNewState(pan).start(function () {
|
|
12994
|
+
if (unmountedRef.current) {
|
|
12995
|
+
return;
|
|
12996
|
+
}
|
|
12997
|
+
if (leftActionActivated && onSwipeRightEnd) {
|
|
12998
|
+
onSwipeRightEnd(event, gestureState);
|
|
12999
|
+
}
|
|
13000
|
+
if (rightActionActivated && onSwipeLeftEnd) {
|
|
13001
|
+
onSwipeLeftEnd(event, gestureState);
|
|
13002
|
+
}
|
|
13003
|
+
});
|
|
13004
|
+
return _objectSpread2(_objectSpread2({}, state), {}, {
|
|
13005
|
+
lastOffset: {
|
|
13006
|
+
x: animationConfig.toValue.x,
|
|
13007
|
+
y: animationConfig.toValue.y
|
|
13008
|
+
},
|
|
13009
|
+
leftActionActivated: false,
|
|
13010
|
+
rightActionActivated: false
|
|
13011
|
+
});
|
|
13012
|
+
};
|
|
13013
|
+
var hanleOnPanResponderMove = function hanleOnPanResponderMove(state, contextValues, event, gestureState) {
|
|
13014
|
+
var leftActionsWidth = contextValues.leftActionsWidth,
|
|
13015
|
+
rightActionsWidth = contextValues.rightActionsWidth,
|
|
13016
|
+
onSwipeLeftStart = contextValues.onSwipeLeftStart,
|
|
13017
|
+
onSwipeRightStart = contextValues.onSwipeRightStart,
|
|
13018
|
+
canSwipeRight = contextValues.canSwipeRight,
|
|
13019
|
+
canSwipeLeft = contextValues.canSwipeLeft;
|
|
13020
|
+
var lastOffset = state.lastOffset,
|
|
13021
|
+
leftActionActivated = state.leftActionActivated,
|
|
13022
|
+
rightActionActivated = state.rightActionActivated;
|
|
13023
|
+
var dx = gestureState.dx;
|
|
13024
|
+
var x = dx + lastOffset.x;
|
|
13025
|
+
var nextLeftActionActivated = leftActionActivated;
|
|
13026
|
+
var nextRightActionActivated = rightActionActivated;
|
|
13027
|
+
Animated.event([null, {
|
|
13028
|
+
dx: state.pan.x,
|
|
13029
|
+
dy: state.pan.y
|
|
13030
|
+
}], {
|
|
13031
|
+
useNativeDriver: false
|
|
13032
|
+
})(event, gestureState);
|
|
13033
|
+
if (!leftActionActivated && canSwipeRight && x >= leftActionsWidth) {
|
|
13034
|
+
nextLeftActionActivated = true;
|
|
13035
|
+
onSwipeRightStart(event, gestureState);
|
|
13036
|
+
}
|
|
13037
|
+
if (leftActionActivated && canSwipeRight && x < leftActionsWidth) {
|
|
13038
|
+
nextLeftActionActivated = false;
|
|
13039
|
+
}
|
|
13040
|
+
if (!rightActionActivated && canSwipeLeft && x <= -rightActionsWidth) {
|
|
13041
|
+
nextRightActionActivated = true;
|
|
13042
|
+
onSwipeLeftStart(event, gestureState);
|
|
13043
|
+
}
|
|
13044
|
+
if (rightActionActivated && canSwipeLeft && x > -rightActionsWidth) {
|
|
13045
|
+
nextRightActionActivated = false;
|
|
13046
|
+
}
|
|
13047
|
+
var needsUpdate = nextLeftActionActivated !== leftActionActivated || nextRightActionActivated !== rightActionActivated;
|
|
13048
|
+
if (needsUpdate) {
|
|
13049
|
+
return _objectSpread2(_objectSpread2({}, state), {}, {
|
|
13050
|
+
leftActionActivated: nextLeftActionActivated,
|
|
13051
|
+
rightActionActivated: nextRightActionActivated
|
|
13052
|
+
});
|
|
13053
|
+
}
|
|
13054
|
+
return state;
|
|
13055
|
+
};
|
|
13056
|
+
var SwipeableV2 = function SwipeableV2(_ref) {
|
|
13057
|
+
var children = _ref.children,
|
|
13058
|
+
leftContent = _ref.leftContent,
|
|
13059
|
+
rightContent = _ref.rightContent,
|
|
13060
|
+
style = _ref.style,
|
|
13061
|
+
_ref$leftActionsWidth = _ref.leftActionsWidth,
|
|
13062
|
+
leftActionsWidth = _ref$leftActionsWidth === void 0 ? scale(200) : _ref$leftActionsWidth,
|
|
13063
|
+
_ref$onSwipeLeftStart = _ref.onSwipeLeftStart,
|
|
13064
|
+
onSwipeLeftStart = _ref$onSwipeLeftStart === void 0 ? noop : _ref$onSwipeLeftStart,
|
|
13065
|
+
_ref$onSwipeLeftEnd = _ref.onSwipeLeftEnd,
|
|
13066
|
+
onSwipeLeftEnd = _ref$onSwipeLeftEnd === void 0 ? noop : _ref$onSwipeLeftEnd,
|
|
13067
|
+
_ref$rightActionsWidt = _ref.rightActionsWidth,
|
|
13068
|
+
rightActionsWidth = _ref$rightActionsWidt === void 0 ? scale(200) : _ref$rightActionsWidt,
|
|
13069
|
+
_ref$onSwipeRightStar = _ref.onSwipeRightStart,
|
|
13070
|
+
onSwipeRightStart = _ref$onSwipeRightStar === void 0 ? noop : _ref$onSwipeRightStar,
|
|
13071
|
+
_ref$onSwipeRightEnd = _ref.onSwipeRightEnd,
|
|
13072
|
+
onSwipeRightEnd = _ref$onSwipeRightEnd === void 0 ? noop : _ref$onSwipeRightEnd,
|
|
13073
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
13074
|
+
var propsWithDefaultValue = _objectSpread2({
|
|
13075
|
+
children: children,
|
|
13076
|
+
leftContent: leftContent,
|
|
13077
|
+
rightContent: rightContent,
|
|
13078
|
+
style: style,
|
|
13079
|
+
leftActionsWidth: leftActionsWidth,
|
|
13080
|
+
onSwipeLeftStart: onSwipeLeftStart,
|
|
13081
|
+
onSwipeLeftEnd: onSwipeLeftEnd,
|
|
13082
|
+
rightActionsWidth: rightActionsWidth,
|
|
13083
|
+
onSwipeRightStart: onSwipeRightStart,
|
|
13084
|
+
onSwipeRightEnd: onSwipeRightEnd
|
|
13085
|
+
}, rest);
|
|
13086
|
+
var unmountedRef = React.useRef(false);
|
|
13087
|
+
useEffect(function () {
|
|
13088
|
+
return function () {
|
|
13089
|
+
unmountedRef.current = true;
|
|
13090
|
+
};
|
|
13091
|
+
}, []);
|
|
13092
|
+
var _React$useState = React.useState(0),
|
|
13093
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
13094
|
+
width = _React$useState2[0],
|
|
13095
|
+
setWidth = _React$useState2[1];
|
|
13096
|
+
var canSwipeRight = !!leftContent;
|
|
13097
|
+
var canSwipeLeft = !!rightContent;
|
|
13098
|
+
var propsRef = React.useRef(undefined);
|
|
13099
|
+
var _React$useState3 = React.useState({
|
|
13100
|
+
pan: new Animated.ValueXY({
|
|
13101
|
+
x: 0,
|
|
13102
|
+
y: 0
|
|
13103
|
+
}),
|
|
13104
|
+
lastOffset: {
|
|
13105
|
+
x: 0,
|
|
13106
|
+
y: 0
|
|
13107
|
+
},
|
|
13108
|
+
leftActionActivated: false,
|
|
13109
|
+
rightActionActivated: false
|
|
13110
|
+
}),
|
|
13111
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
13112
|
+
state = _React$useState4[0],
|
|
13113
|
+
setState = _React$useState4[1];
|
|
13114
|
+
propsRef.current = _objectSpread2(_objectSpread2({}, propsWithDefaultValue), {}, {
|
|
13115
|
+
canSwipeLeft: canSwipeLeft,
|
|
13116
|
+
canSwipeRight: canSwipeRight,
|
|
13117
|
+
unmountedRef: unmountedRef
|
|
13118
|
+
});
|
|
13119
|
+
var transform = [{
|
|
13120
|
+
translateX: state.pan.x.interpolate({
|
|
13121
|
+
inputRange: [canSwipeLeft ? -width : 0, canSwipeRight ? width : 0],
|
|
13122
|
+
outputRange: [canSwipeLeft ? -width + StyleSheet$1.hairlineWidth : 0, canSwipeRight ? width - StyleSheet$1.hairlineWidth : 0],
|
|
13123
|
+
extrapolate: 'clamp'
|
|
13124
|
+
})
|
|
13125
|
+
}];
|
|
13126
|
+
var panResponder = React.useRef(PanResponder.create({
|
|
13127
|
+
onMoveShouldSetPanResponder: function onMoveShouldSetPanResponder(_, gestureState) {
|
|
13128
|
+
return Math.abs(gestureState.dx) > swipeStartMinDistance;
|
|
13129
|
+
},
|
|
13130
|
+
onMoveShouldSetPanResponderCapture: function onMoveShouldSetPanResponderCapture(_, gestureState) {
|
|
13131
|
+
return Math.abs(gestureState.dx) > swipeStartMinDistance;
|
|
13132
|
+
},
|
|
13133
|
+
onPanResponderGrant: function onPanResponderGrant() {
|
|
13134
|
+
setState(function (prevState) {
|
|
13135
|
+
prevState.pan.setOffset(prevState.lastOffset);
|
|
13136
|
+
return prevState;
|
|
13137
|
+
});
|
|
13138
|
+
},
|
|
13139
|
+
onPanResponderMove: function onPanResponderMove(event, gestureState) {
|
|
13140
|
+
setState(function (prevState) {
|
|
13141
|
+
return hanleOnPanResponderMove(prevState, propsRef.current, event, gestureState);
|
|
13142
|
+
});
|
|
13143
|
+
},
|
|
13144
|
+
onPanResponderRelease: function onPanResponderRelease(event, gestureState) {
|
|
13145
|
+
setState(function (prevState) {
|
|
13146
|
+
return hanleOnPanResponderEnd(prevState, propsRef.current, event, gestureState);
|
|
13147
|
+
});
|
|
13148
|
+
},
|
|
13149
|
+
onPanResponderTerminationRequest: function onPanResponderTerminationRequest() {
|
|
13150
|
+
return false;
|
|
13151
|
+
},
|
|
13152
|
+
onPanResponderTerminate: function onPanResponderTerminate(event, gestureState) {
|
|
13153
|
+
setState(function (prevState) {
|
|
13154
|
+
return hanleOnPanResponderEnd(prevState, propsRef.current, event, gestureState);
|
|
13155
|
+
});
|
|
13156
|
+
}
|
|
13157
|
+
})).current;
|
|
13158
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$3, _extends$1({
|
|
13159
|
+
onLayout: function onLayout(event) {
|
|
13160
|
+
setWidth(event.nativeEvent.layout.width);
|
|
13161
|
+
},
|
|
13162
|
+
style: [{
|
|
13163
|
+
flexDirection: 'row'
|
|
13164
|
+
}, style]
|
|
13165
|
+
}, panResponder.panHandlers, rest), canSwipeRight && /*#__PURE__*/React.createElement(Animated.View, {
|
|
13166
|
+
style: [{
|
|
13167
|
+
transform: transform,
|
|
13168
|
+
marginLeft: -width,
|
|
13169
|
+
width: width
|
|
13170
|
+
}]
|
|
13171
|
+
}, leftContent), /*#__PURE__*/React.createElement(StyledContent, {
|
|
13172
|
+
style: {
|
|
13173
|
+
transform: transform
|
|
13174
|
+
}
|
|
13175
|
+
}, children), canSwipeLeft && /*#__PURE__*/React.createElement(Animated.View, {
|
|
13176
|
+
style: [{
|
|
13177
|
+
transform: transform,
|
|
13178
|
+
marginRight: -width,
|
|
13179
|
+
width: width
|
|
13180
|
+
}]
|
|
13181
|
+
}, rightContent));
|
|
13182
|
+
};
|
|
13183
|
+
|
|
12933
13184
|
var Circle = index$a(View)(function (_ref) {
|
|
12934
13185
|
var theme = _ref.theme;
|
|
12935
13186
|
return {
|
|
@@ -31258,4 +31509,4 @@ var index = Object.assign(RichTextEditor$1, {
|
|
|
31258
31509
|
Toolbar: EditorToolbar
|
|
31259
31510
|
});
|
|
31260
31511
|
|
|
31261
|
-
export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, index$8 as Card, Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, index$6 as FAB, Icon, Image, List, PinInput, Progress, CompoundRadio as Radio, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Slider, Spinner, 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, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, workSystemPalette };
|
|
31512
|
+
export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, index$8 as Card, Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, index$6 as FAB, Icon, Image, List, PinInput, Progress, CompoundRadio as Radio, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Slider, Spinner, index$5 as Swipeable, SwipeableV2, 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, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, workSystemPalette };
|