@hero-design/rn 8.5.0 → 8.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +423 -196
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +423 -195
- package/package.json +5 -5
- 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/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/lib/index.js
CHANGED
|
@@ -5636,7 +5636,7 @@ var index$a = components.reduce(function (acc, comp) {
|
|
|
5636
5636
|
});
|
|
5637
5637
|
}, styled);
|
|
5638
5638
|
|
|
5639
|
-
var StyledWrapper$
|
|
5639
|
+
var StyledWrapper$c = index$a(reactNative.Animated.View)(function () {
|
|
5640
5640
|
return {
|
|
5641
5641
|
margin: 0,
|
|
5642
5642
|
padding: 0,
|
|
@@ -5710,7 +5710,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
5710
5710
|
var height = _ref2.height;
|
|
5711
5711
|
setContentHeight(height);
|
|
5712
5712
|
}, []);
|
|
5713
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
5713
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$c, {
|
|
5714
5714
|
style: {
|
|
5715
5715
|
height: collapseAnim
|
|
5716
5716
|
},
|
|
@@ -5723,7 +5723,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
5723
5723
|
}, children)));
|
|
5724
5724
|
};
|
|
5725
5725
|
|
|
5726
|
-
var StyledWrapper$
|
|
5726
|
+
var StyledWrapper$b = index$a(reactNative.View)(function () {
|
|
5727
5727
|
return {};
|
|
5728
5728
|
});
|
|
5729
5729
|
var StyledItemWrapper = index$a(reactNative.View)(function (_ref) {
|
|
@@ -5776,7 +5776,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
|
|
|
5776
5776
|
});
|
|
5777
5777
|
});
|
|
5778
5778
|
|
|
5779
|
-
var _excluded$
|
|
5779
|
+
var _excluded$q = ["children", "fontSize", "fontWeight", "intent", "typeface"];
|
|
5780
5780
|
var Text = function Text(_ref) {
|
|
5781
5781
|
var children = _ref.children,
|
|
5782
5782
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -5787,7 +5787,7 @@ var Text = function Text(_ref) {
|
|
|
5787
5787
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
5788
5788
|
_ref$typeface = _ref.typeface,
|
|
5789
5789
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
5790
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
5790
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
5791
5791
|
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
5792
5792
|
themeFontSize: fontSize,
|
|
5793
5793
|
themeFontWeight: fontWeight,
|
|
@@ -5801,7 +5801,7 @@ var Typography = {
|
|
|
5801
5801
|
};
|
|
5802
5802
|
|
|
5803
5803
|
// 🔴 DO NOT EDIT — This file is generated automatically.
|
|
5804
|
-
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'];
|
|
5804
|
+
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'];
|
|
5805
5805
|
|
|
5806
5806
|
var activate = 59000;
|
|
5807
5807
|
var adjustment = 59003;
|
|
@@ -5874,18 +5874,18 @@ var add = 59172;
|
|
|
5874
5874
|
var bold = 59193;
|
|
5875
5875
|
var cancel = 59203;
|
|
5876
5876
|
var checkmark = 59206;
|
|
5877
|
-
var italic =
|
|
5878
|
-
var number =
|
|
5879
|
-
var percentage =
|
|
5880
|
-
var redeem =
|
|
5881
|
-
var refresh =
|
|
5882
|
-
var remove =
|
|
5883
|
-
var restart =
|
|
5884
|
-
var strikethrough =
|
|
5885
|
-
var sync =
|
|
5886
|
-
var transfer =
|
|
5887
|
-
var unavailable =
|
|
5888
|
-
var underline =
|
|
5877
|
+
var italic = 59280;
|
|
5878
|
+
var number = 59303;
|
|
5879
|
+
var percentage = 59308;
|
|
5880
|
+
var redeem = 59317;
|
|
5881
|
+
var refresh = 59318;
|
|
5882
|
+
var remove = 59319;
|
|
5883
|
+
var restart = 59321;
|
|
5884
|
+
var strikethrough = 59342;
|
|
5885
|
+
var sync = 59347;
|
|
5886
|
+
var transfer = 59351;
|
|
5887
|
+
var unavailable = 59354;
|
|
5888
|
+
var underline = 59355;
|
|
5889
5889
|
var glyphMap = {
|
|
5890
5890
|
activate: activate,
|
|
5891
5891
|
"add-emoji": 59001,
|
|
@@ -6118,138 +6118,140 @@ var glyphMap = {
|
|
|
6118
6118
|
"document-outlined": 59228,
|
|
6119
6119
|
"dollar-card-outlined": 59229,
|
|
6120
6120
|
"dollar-coin-shine-outlined": 59230,
|
|
6121
|
-
"dollar-
|
|
6122
|
-
"
|
|
6123
|
-
"double-
|
|
6124
|
-
"double-
|
|
6125
|
-
"
|
|
6126
|
-
"
|
|
6127
|
-
"
|
|
6128
|
-
"
|
|
6129
|
-
"
|
|
6130
|
-
"
|
|
6131
|
-
"
|
|
6132
|
-
"
|
|
6133
|
-
"
|
|
6134
|
-
"eye-outlined": 59244,
|
|
6135
|
-
"
|
|
6136
|
-
"face-
|
|
6137
|
-
"face-
|
|
6138
|
-
"face-
|
|
6139
|
-
"face-
|
|
6140
|
-
"
|
|
6141
|
-
"
|
|
6142
|
-
"file-
|
|
6143
|
-
"file-
|
|
6144
|
-
"file-
|
|
6145
|
-
"file-
|
|
6146
|
-
"file-
|
|
6147
|
-
"file-
|
|
6148
|
-
"file-
|
|
6149
|
-
"file-outlined": 59259,
|
|
6150
|
-
"file-
|
|
6151
|
-
"file-
|
|
6152
|
-
"file-
|
|
6153
|
-
"
|
|
6154
|
-
"
|
|
6155
|
-
"
|
|
6156
|
-
"
|
|
6157
|
-
"
|
|
6158
|
-
"
|
|
6159
|
-
"
|
|
6160
|
-
"
|
|
6161
|
-
"
|
|
6162
|
-
"
|
|
6163
|
-
"
|
|
6164
|
-
"
|
|
6165
|
-
"
|
|
6166
|
-
"
|
|
6167
|
-
"
|
|
6121
|
+
"dollar-credit-card-outlined": 59231,
|
|
6122
|
+
"dollar-sign": 59232,
|
|
6123
|
+
"double-buildings-outlined": 59233,
|
|
6124
|
+
"double-left-arrows": 59234,
|
|
6125
|
+
"double-right-arrows": 59235,
|
|
6126
|
+
"download-outlined": 59236,
|
|
6127
|
+
"edit-template-outlined": 59237,
|
|
6128
|
+
"email-outlined": 59238,
|
|
6129
|
+
"enter-arrow": 59239,
|
|
6130
|
+
"envelope-outlined": 59240,
|
|
6131
|
+
"expense-outlined": 59241,
|
|
6132
|
+
"explore-outlined": 59242,
|
|
6133
|
+
"external-link": 59243,
|
|
6134
|
+
"eye-invisible-outlined": 59244,
|
|
6135
|
+
"eye-outlined": 59245,
|
|
6136
|
+
"face-id": 59246,
|
|
6137
|
+
"face-meh-outlined": 59247,
|
|
6138
|
+
"face-open-smiley-outlined": 59248,
|
|
6139
|
+
"face-sad-outlined": 59249,
|
|
6140
|
+
"face-smiley-outlined": 59250,
|
|
6141
|
+
"feed-outlined": 59251,
|
|
6142
|
+
"file-certified-outlined": 59252,
|
|
6143
|
+
"file-clone-outlined": 59253,
|
|
6144
|
+
"file-copy-outlined": 59254,
|
|
6145
|
+
"file-dispose-outlined": 59255,
|
|
6146
|
+
"file-dollar-outlined": 59256,
|
|
6147
|
+
"file-download-outlined": 59257,
|
|
6148
|
+
"file-export-outlined": 59258,
|
|
6149
|
+
"file-lock-outlined": 59259,
|
|
6150
|
+
"file-outlined": 59260,
|
|
6151
|
+
"file-search-outlined": 59261,
|
|
6152
|
+
"file-secured-outlined": 59262,
|
|
6153
|
+
"file-statutory-outlined": 59263,
|
|
6154
|
+
"file-verified-outlined": 59264,
|
|
6155
|
+
"filter-outlined": 59265,
|
|
6156
|
+
"folder-outlined": 59266,
|
|
6157
|
+
"folder-user-outlined": 59267,
|
|
6158
|
+
"funnel-filter-outline": 59268,
|
|
6159
|
+
"graph-outlined": 59269,
|
|
6160
|
+
"hand-holding-user-outlined": 59270,
|
|
6161
|
+
"happy-sun-outlined": 59271,
|
|
6162
|
+
"health-bag-outlined": 59272,
|
|
6163
|
+
"heart-outlined": 59273,
|
|
6164
|
+
"home-active-outlined": 59274,
|
|
6165
|
+
"home-outlined": 59275,
|
|
6166
|
+
"id-card-outlined": 59276,
|
|
6167
|
+
"image-outlined": 59277,
|
|
6168
|
+
"import-outlined": 59278,
|
|
6169
|
+
"instapay-outlined": 59279,
|
|
6168
6170
|
italic: italic,
|
|
6169
|
-
"link-1":
|
|
6170
|
-
"link-2":
|
|
6171
|
-
"list-outlined":
|
|
6172
|
-
"live-help-outlined":
|
|
6173
|
-
"location-outlined":
|
|
6174
|
-
"lock-outlined":
|
|
6175
|
-
"locked-file-outlined":
|
|
6176
|
-
"log-out":
|
|
6177
|
-
"media-content-outlined":
|
|
6178
|
-
"menu-close":
|
|
6179
|
-
"menu-expand":
|
|
6180
|
-
"menu-fold-outlined":
|
|
6181
|
-
"menu-unfold-outlined":
|
|
6182
|
-
"moneybag-outlined":
|
|
6183
|
-
"moon-outlined":
|
|
6184
|
-
"more-horizontal":
|
|
6185
|
-
"more-vertical":
|
|
6186
|
-
"multiple-folders-outlined":
|
|
6187
|
-
"multiple-users-outlined":
|
|
6188
|
-
"near-me-outlined":
|
|
6189
|
-
"node-outlined":
|
|
6190
|
-
"number-points":
|
|
6171
|
+
"link-1": 59281,
|
|
6172
|
+
"link-2": 59282,
|
|
6173
|
+
"list-outlined": 59283,
|
|
6174
|
+
"live-help-outlined": 59284,
|
|
6175
|
+
"location-outlined": 59285,
|
|
6176
|
+
"lock-outlined": 59286,
|
|
6177
|
+
"locked-file-outlined": 59287,
|
|
6178
|
+
"log-out": 59288,
|
|
6179
|
+
"media-content-outlined": 59289,
|
|
6180
|
+
"menu-close": 59290,
|
|
6181
|
+
"menu-expand": 59291,
|
|
6182
|
+
"menu-fold-outlined": 59292,
|
|
6183
|
+
"menu-unfold-outlined": 59293,
|
|
6184
|
+
"moneybag-outlined": 59294,
|
|
6185
|
+
"moon-outlined": 59295,
|
|
6186
|
+
"more-horizontal": 59296,
|
|
6187
|
+
"more-vertical": 59297,
|
|
6188
|
+
"multiple-folders-outlined": 59298,
|
|
6189
|
+
"multiple-users-outlined": 59299,
|
|
6190
|
+
"near-me-outlined": 59300,
|
|
6191
|
+
"node-outlined": 59301,
|
|
6192
|
+
"number-points": 59302,
|
|
6191
6193
|
number: number,
|
|
6192
|
-
"overview-outlined":
|
|
6193
|
-
"payment-summary-outlined":
|
|
6194
|
-
"payslip-outlined":
|
|
6195
|
-
"pencil-outlined":
|
|
6194
|
+
"overview-outlined": 59304,
|
|
6195
|
+
"payment-summary-outlined": 59305,
|
|
6196
|
+
"payslip-outlined": 59306,
|
|
6197
|
+
"pencil-outlined": 59307,
|
|
6196
6198
|
percentage: percentage,
|
|
6197
|
-
"phone-outlined":
|
|
6198
|
-
"piggy-bank-outlined":
|
|
6199
|
-
"plane-outlined":
|
|
6200
|
-
"play-circle-outlined":
|
|
6201
|
-
"print-outlined":
|
|
6202
|
-
"qr-code-outlined":
|
|
6203
|
-
"qualification-outlined":
|
|
6204
|
-
"re-assign":
|
|
6199
|
+
"phone-outlined": 59309,
|
|
6200
|
+
"piggy-bank-outlined": 59310,
|
|
6201
|
+
"plane-outlined": 59311,
|
|
6202
|
+
"play-circle-outlined": 59312,
|
|
6203
|
+
"print-outlined": 59313,
|
|
6204
|
+
"qr-code-outlined": 59314,
|
|
6205
|
+
"qualification-outlined": 59315,
|
|
6206
|
+
"re-assign": 59316,
|
|
6205
6207
|
redeem: redeem,
|
|
6206
6208
|
refresh: refresh,
|
|
6207
6209
|
remove: remove,
|
|
6208
|
-
"reply-outlined":
|
|
6210
|
+
"reply-outlined": 59320,
|
|
6209
6211
|
restart: restart,
|
|
6210
|
-
"return-arrow":
|
|
6211
|
-
"rostering-outlined":
|
|
6212
|
-
"save-outlined":
|
|
6213
|
-
"schedule-outlined":
|
|
6214
|
-
"search-outlined":
|
|
6215
|
-
"search-secured-outlined":
|
|
6216
|
-
"send-outlined":
|
|
6217
|
-
"share-1":
|
|
6218
|
-
"share-2":
|
|
6219
|
-
"share-outlined":
|
|
6220
|
-
"show-chart-outlined":
|
|
6221
|
-
"single-down-arrow":
|
|
6222
|
-
"single-left-arrow":
|
|
6223
|
-
"single-right-arrow":
|
|
6224
|
-
"single-up-arrow":
|
|
6225
|
-
"speaker-active-outlined":
|
|
6226
|
-
"speaker-outlined":
|
|
6227
|
-
"star-circle-outlined":
|
|
6228
|
-
"star-outlined":
|
|
6229
|
-
"stopwatch-outlined":
|
|
6212
|
+
"return-arrow": 59322,
|
|
6213
|
+
"rostering-outlined": 59323,
|
|
6214
|
+
"save-outlined": 59324,
|
|
6215
|
+
"schedule-outlined": 59325,
|
|
6216
|
+
"search-outlined": 59326,
|
|
6217
|
+
"search-secured-outlined": 59327,
|
|
6218
|
+
"send-outlined": 59328,
|
|
6219
|
+
"share-1": 59329,
|
|
6220
|
+
"share-2": 59330,
|
|
6221
|
+
"share-outlined": 59331,
|
|
6222
|
+
"show-chart-outlined": 59332,
|
|
6223
|
+
"single-down-arrow": 59333,
|
|
6224
|
+
"single-left-arrow": 59334,
|
|
6225
|
+
"single-right-arrow": 59335,
|
|
6226
|
+
"single-up-arrow": 59336,
|
|
6227
|
+
"speaker-active-outlined": 59337,
|
|
6228
|
+
"speaker-outlined": 59338,
|
|
6229
|
+
"star-circle-outlined": 59339,
|
|
6230
|
+
"star-outlined": 59340,
|
|
6231
|
+
"stopwatch-outlined": 59341,
|
|
6230
6232
|
strikethrough: strikethrough,
|
|
6231
|
-
"suitcase-clock-outlined":
|
|
6232
|
-
"suitcase-outlined":
|
|
6233
|
-
"survey-outlined":
|
|
6234
|
-
"switch-outlined":
|
|
6233
|
+
"suitcase-clock-outlined": 59343,
|
|
6234
|
+
"suitcase-outlined": 59344,
|
|
6235
|
+
"survey-outlined": 59345,
|
|
6236
|
+
"switch-outlined": 59346,
|
|
6235
6237
|
sync: sync,
|
|
6236
|
-
"target-outlined":
|
|
6237
|
-
"timesheet-outlined":
|
|
6238
|
-
"today-outlined":
|
|
6238
|
+
"target-outlined": 59348,
|
|
6239
|
+
"timesheet-outlined": 59349,
|
|
6240
|
+
"today-outlined": 59350,
|
|
6239
6241
|
transfer: transfer,
|
|
6240
|
-
"trash-bin-outlined":
|
|
6241
|
-
"umbrela-outlined":
|
|
6242
|
+
"trash-bin-outlined": 59352,
|
|
6243
|
+
"umbrela-outlined": 59353,
|
|
6242
6244
|
unavailable: unavailable,
|
|
6243
6245
|
underline: underline,
|
|
6244
|
-
"unlock-outlined":
|
|
6245
|
-
"upload-outlined":
|
|
6246
|
-
"user-circle-outlined":
|
|
6247
|
-
"user-gear-outlined":
|
|
6248
|
-
"user-outlined":
|
|
6249
|
-
"user-rectangle-outlined":
|
|
6250
|
-
"video-1-outlined":
|
|
6251
|
-
"video-2-outlined":
|
|
6252
|
-
"wallet-outlined":
|
|
6246
|
+
"unlock-outlined": 59356,
|
|
6247
|
+
"upload-outlined": 59357,
|
|
6248
|
+
"user-circle-outlined": 59358,
|
|
6249
|
+
"user-gear-outlined": 59359,
|
|
6250
|
+
"user-outlined": 59360,
|
|
6251
|
+
"user-rectangle-outlined": 59361,
|
|
6252
|
+
"video-1-outlined": 59362,
|
|
6253
|
+
"video-2-outlined": 59363,
|
|
6254
|
+
"wallet-outlined": 59364
|
|
6253
6255
|
};
|
|
6254
6256
|
|
|
6255
6257
|
var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -6274,10 +6276,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
6274
6276
|
};
|
|
6275
6277
|
});
|
|
6276
6278
|
|
|
6277
|
-
var _excluded$
|
|
6279
|
+
var _excluded$p = ["style"];
|
|
6278
6280
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
6279
6281
|
var style = _ref.style,
|
|
6280
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
6282
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
6281
6283
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
6282
6284
|
React.useEffect(function () {
|
|
6283
6285
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -6383,7 +6385,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
6383
6385
|
}, content));
|
|
6384
6386
|
};
|
|
6385
6387
|
|
|
6386
|
-
var _excluded$
|
|
6388
|
+
var _excluded$o = ["key"];
|
|
6387
6389
|
var Accordion = function Accordion(_ref) {
|
|
6388
6390
|
var items = _ref.items,
|
|
6389
6391
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -6399,12 +6401,12 @@ var Accordion = function Accordion(_ref) {
|
|
|
6399
6401
|
_usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
|
|
6400
6402
|
_activeItemKey = _usePropsOrInternalSt2[0],
|
|
6401
6403
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
6402
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
6404
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$b, {
|
|
6403
6405
|
style: style,
|
|
6404
6406
|
testID: testID
|
|
6405
6407
|
}, items.map(function (_ref2, index) {
|
|
6406
6408
|
var key = _ref2.key,
|
|
6407
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6409
|
+
props = _objectWithoutProperties(_ref2, _excluded$o);
|
|
6408
6410
|
var open = _activeItemKey === key;
|
|
6409
6411
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
6410
6412
|
key: key
|
|
@@ -6586,7 +6588,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
6586
6588
|
})) : null);
|
|
6587
6589
|
};
|
|
6588
6590
|
|
|
6589
|
-
var StyledWrapper$
|
|
6591
|
+
var StyledWrapper$a = index$a(reactNative.TouchableOpacity)(function (_ref) {
|
|
6590
6592
|
var themeSize = _ref.themeSize,
|
|
6591
6593
|
themeIntent = _ref.themeIntent,
|
|
6592
6594
|
theme = _ref.theme;
|
|
@@ -6641,7 +6643,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
6641
6643
|
hasImageError = _useState2[0],
|
|
6642
6644
|
setHasImageError = _useState2[1];
|
|
6643
6645
|
if (title === undefined && source === undefined) return null;
|
|
6644
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
6646
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$a, {
|
|
6645
6647
|
testID: testID,
|
|
6646
6648
|
onPress: onPress,
|
|
6647
6649
|
disabled: onPress === undefined,
|
|
@@ -6665,7 +6667,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
6665
6667
|
};
|
|
6666
6668
|
|
|
6667
6669
|
var VISIBLE_RATIO = 0.7;
|
|
6668
|
-
var StyledWrapper$
|
|
6670
|
+
var StyledWrapper$9 = index$a(reactNative.View)(function (_ref) {
|
|
6669
6671
|
var theme = _ref.theme,
|
|
6670
6672
|
themeSize = _ref.themeSize,
|
|
6671
6673
|
themeAvatarCount = _ref.themeAvatarCount;
|
|
@@ -6727,7 +6729,7 @@ var AvatarStack = function AvatarStack(_ref) {
|
|
|
6727
6729
|
});
|
|
6728
6730
|
avatars.push(remainingAvatar);
|
|
6729
6731
|
}
|
|
6730
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
6732
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$9, {
|
|
6731
6733
|
themeSize: size,
|
|
6732
6734
|
themeAvatarCount: avatars.length,
|
|
6733
6735
|
style: style,
|
|
@@ -6786,7 +6788,7 @@ var StyledStatus = index$a(reactNative.Animated.View)(function (_ref3) {
|
|
|
6786
6788
|
};
|
|
6787
6789
|
});
|
|
6788
6790
|
|
|
6789
|
-
var _excluded$
|
|
6791
|
+
var _excluded$n = ["children", "visible", "intent", "style", "testID"];
|
|
6790
6792
|
var Status = function Status(_ref) {
|
|
6791
6793
|
var children = _ref.children,
|
|
6792
6794
|
_ref$visible = _ref.visible,
|
|
@@ -6795,7 +6797,7 @@ var Status = function Status(_ref) {
|
|
|
6795
6797
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
6796
6798
|
style = _ref.style,
|
|
6797
6799
|
testID = _ref.testID,
|
|
6798
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6800
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
6799
6801
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
6800
6802
|
opacity = _React$useRef.current;
|
|
6801
6803
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -6828,7 +6830,7 @@ var Status = function Status(_ref) {
|
|
|
6828
6830
|
}));
|
|
6829
6831
|
};
|
|
6830
6832
|
|
|
6831
|
-
var _excluded$
|
|
6833
|
+
var _excluded$m = ["content", "visible", "max", "intent", "style", "testID"];
|
|
6832
6834
|
var DEFAULT_MAX_NUMBER = 99;
|
|
6833
6835
|
var getPaddingState = function getPaddingState(content) {
|
|
6834
6836
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -6843,7 +6845,7 @@ var Badge = function Badge(_ref) {
|
|
|
6843
6845
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
6844
6846
|
style = _ref.style,
|
|
6845
6847
|
testID = _ref.testID,
|
|
6846
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6848
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
6847
6849
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
6848
6850
|
opacity = _React$useRef.current;
|
|
6849
6851
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -6947,7 +6949,7 @@ function omit(keys, obj) {
|
|
|
6947
6949
|
return result;
|
|
6948
6950
|
}
|
|
6949
6951
|
|
|
6950
|
-
var _excluded$
|
|
6952
|
+
var _excluded$l = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
6951
6953
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
6952
6954
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
6953
6955
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -6958,7 +6960,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
6958
6960
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
6959
6961
|
selectedTabKey = _ref.selectedTabKey,
|
|
6960
6962
|
tabs = _ref.tabs,
|
|
6961
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6963
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
6962
6964
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
6963
6965
|
/**
|
|
6964
6966
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -7045,13 +7047,13 @@ var StyledDivider = index$a(reactNative.View)(function (_ref) {
|
|
|
7045
7047
|
}, horizontalMargin), verticalMargin);
|
|
7046
7048
|
});
|
|
7047
7049
|
|
|
7048
|
-
var _excluded$
|
|
7050
|
+
var _excluded$k = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
7049
7051
|
var Divider = function Divider(_ref) {
|
|
7050
7052
|
var marginHorizontal = _ref.marginHorizontal,
|
|
7051
7053
|
marginVertical = _ref.marginVertical,
|
|
7052
7054
|
style = _ref.style,
|
|
7053
7055
|
testID = _ref.testID,
|
|
7054
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7056
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
7055
7057
|
return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
7056
7058
|
themeMarginHorizontal: marginHorizontal,
|
|
7057
7059
|
themeMarginVertical: marginVertical,
|
|
@@ -7062,7 +7064,7 @@ var Divider = function Divider(_ref) {
|
|
|
7062
7064
|
|
|
7063
7065
|
var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
7064
7066
|
var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNative.SafeAreaView);
|
|
7065
|
-
var StyledWrapper$
|
|
7067
|
+
var StyledWrapper$8 = index$a(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
7066
7068
|
flexDirection: 'column-reverse'
|
|
7067
7069
|
}));
|
|
7068
7070
|
var StyledKeyboardAvoidingView = index$a(reactNative.KeyboardAvoidingView)(function () {
|
|
@@ -7181,7 +7183,7 @@ var StyledLoadingDot = index$a(reactNative.View)(function (_ref2) {
|
|
|
7181
7183
|
}, themeStyling());
|
|
7182
7184
|
});
|
|
7183
7185
|
|
|
7184
|
-
var _excluded$
|
|
7186
|
+
var _excluded$j = ["count", "size", "testID", "themeVariant"];
|
|
7185
7187
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
7186
7188
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
7187
7189
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -7213,7 +7215,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
7213
7215
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
7214
7216
|
testID = _ref2.testID,
|
|
7215
7217
|
themeVariant = _ref2.themeVariant,
|
|
7216
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7218
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$j);
|
|
7217
7219
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
7218
7220
|
React.useEffect(function () {
|
|
7219
7221
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -7609,11 +7611,11 @@ var Header = function Header(_ref) {
|
|
|
7609
7611
|
})) : null), showDivider ? /*#__PURE__*/React__default["default"].createElement(Divider, null) : null);
|
|
7610
7612
|
};
|
|
7611
7613
|
|
|
7612
|
-
var _excluded$
|
|
7614
|
+
var _excluded$i = ["scrollEventThrottle"];
|
|
7613
7615
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
7614
7616
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
7615
7617
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
7616
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7618
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
7617
7619
|
var _useContext = React.useContext(BottomSheetContext),
|
|
7618
7620
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
7619
7621
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -7721,7 +7723,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
7721
7723
|
transparent: true,
|
|
7722
7724
|
testID: testID,
|
|
7723
7725
|
onShow: onOpen
|
|
7724
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
7726
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$8, {
|
|
7725
7727
|
pointerEvents: "box-none"
|
|
7726
7728
|
}, /*#__PURE__*/React__default["default"].createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
7727
7729
|
behavior: reactNative.Platform.OS === 'ios' ? 'padding' : 'height'
|
|
@@ -7928,7 +7930,7 @@ var borderWidths = {
|
|
|
7928
7930
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
7929
7931
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
7930
7932
|
|
|
7931
|
-
var _excluded$
|
|
7933
|
+
var _excluded$h = ["theme"];
|
|
7932
7934
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
7933
7935
|
var propConfig = config[key];
|
|
7934
7936
|
var propValue = props[key];
|
|
@@ -7955,18 +7957,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
7955
7957
|
var configKeys = Object.keys(config);
|
|
7956
7958
|
var StyledBox = index$a(reactNative.View)(function (_ref5) {
|
|
7957
7959
|
var theme = _ref5.theme,
|
|
7958
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
7960
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$h);
|
|
7959
7961
|
var styleProps = pick(configKeys, otherProps);
|
|
7960
7962
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
7961
7963
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
7962
7964
|
});
|
|
7963
7965
|
|
|
7964
|
-
var _excluded$
|
|
7966
|
+
var _excluded$g = ["children", "style", "testID"];
|
|
7965
7967
|
var Box = function Box(_ref) {
|
|
7966
7968
|
var children = _ref.children,
|
|
7967
7969
|
style = _ref.style,
|
|
7968
7970
|
testID = _ref.testID,
|
|
7969
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7971
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
7970
7972
|
return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
|
|
7971
7973
|
style: style,
|
|
7972
7974
|
testID: testID
|
|
@@ -10577,7 +10579,7 @@ var CarouselPaginator = function CarouselPaginator(_ref) {
|
|
|
10577
10579
|
}));
|
|
10578
10580
|
};
|
|
10579
10581
|
|
|
10580
|
-
var _excluded$
|
|
10582
|
+
var _excluded$f = ["rounded", "size", "testID", "style"];
|
|
10581
10583
|
var Image = function Image(_ref) {
|
|
10582
10584
|
var _ref$rounded = _ref.rounded,
|
|
10583
10585
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -10585,7 +10587,7 @@ var Image = function Image(_ref) {
|
|
|
10585
10587
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
10586
10588
|
testID = _ref.testID,
|
|
10587
10589
|
style = _ref.style,
|
|
10588
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10590
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
10589
10591
|
var theme = useTheme();
|
|
10590
10592
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
10591
10593
|
return /*#__PURE__*/React__default["default"].createElement(reactNative.Image, _extends$1({
|
|
@@ -10673,7 +10675,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
10673
10675
|
}, body) : null));
|
|
10674
10676
|
};
|
|
10675
10677
|
|
|
10676
|
-
var _excluded$
|
|
10678
|
+
var _excluded$e = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style"];
|
|
10677
10679
|
function useStateFromProp(initialValue) {
|
|
10678
10680
|
var _useState = React.useState(initialValue),
|
|
10679
10681
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10691,7 +10693,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
10691
10693
|
_ref$selectedItemInde = _ref.selectedItemIndex,
|
|
10692
10694
|
selectedItemIndex = _ref$selectedItemInde === void 0 ? 0 : _ref$selectedItemInde,
|
|
10693
10695
|
style = _ref.style,
|
|
10694
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10696
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
10695
10697
|
var carouselRef = React.useRef(null);
|
|
10696
10698
|
var _useStateFromProp = useStateFromProp(selectedItemIndex),
|
|
10697
10699
|
_useStateFromProp2 = _slicedToArray(_useStateFromProp, 2),
|
|
@@ -10791,12 +10793,12 @@ var Indicator = index$a(reactNative.View)(function (_ref2) {
|
|
|
10791
10793
|
};
|
|
10792
10794
|
});
|
|
10793
10795
|
|
|
10794
|
-
var _excluded$
|
|
10796
|
+
var _excluded$d = ["intent", "children"];
|
|
10795
10797
|
var DataCard = function DataCard(_ref) {
|
|
10796
10798
|
var _ref$intent = _ref.intent,
|
|
10797
10799
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
10798
10800
|
children = _ref.children,
|
|
10799
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10801
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$d);
|
|
10800
10802
|
return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
|
|
10801
10803
|
themeIntent: intent,
|
|
10802
10804
|
testID: "data-card-indicator"
|
|
@@ -10814,11 +10816,11 @@ var StyledCard = index$a(reactNative.View)(function (_ref) {
|
|
|
10814
10816
|
});
|
|
10815
10817
|
});
|
|
10816
10818
|
|
|
10817
|
-
var _excluded$
|
|
10819
|
+
var _excluded$c = ["intent", "children"];
|
|
10818
10820
|
var Card = function Card(_ref) {
|
|
10819
10821
|
var intent = _ref.intent,
|
|
10820
10822
|
children = _ref.children,
|
|
10821
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10823
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
10822
10824
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$1({}, nativeProps, {
|
|
10823
10825
|
themeIntent: intent
|
|
10824
10826
|
}), children);
|
|
@@ -10827,7 +10829,7 @@ var index$8 = Object.assign(Card, {
|
|
|
10827
10829
|
Data: DataCard
|
|
10828
10830
|
});
|
|
10829
10831
|
|
|
10830
|
-
var StyledWrapper$
|
|
10832
|
+
var StyledWrapper$7 = index$a(reactNative.TouchableOpacity)(function (_ref) {
|
|
10831
10833
|
var theme = _ref.theme,
|
|
10832
10834
|
themeWithBorder = _ref.themeWithBorder,
|
|
10833
10835
|
themeDisabled = _ref.themeDisabled;
|
|
@@ -10884,7 +10886,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
10884
10886
|
onPress = _ref.onPress,
|
|
10885
10887
|
style = _ref.style,
|
|
10886
10888
|
testID = _ref.testID;
|
|
10887
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
10889
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$7, {
|
|
10888
10890
|
onPress: onPress,
|
|
10889
10891
|
disabled: disabled,
|
|
10890
10892
|
themeDisabled: disabled,
|
|
@@ -11052,7 +11054,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
|
|
|
11052
11054
|
};
|
|
11053
11055
|
});
|
|
11054
11056
|
|
|
11055
|
-
var _excluded$
|
|
11057
|
+
var _excluded$b = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
|
|
11056
11058
|
var getVariant$1 = function getVariant(_ref) {
|
|
11057
11059
|
var disabled = _ref.disabled,
|
|
11058
11060
|
error = _ref.error,
|
|
@@ -11098,7 +11100,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
11098
11100
|
value = _ref2.value,
|
|
11099
11101
|
defaultValue = _ref2.defaultValue,
|
|
11100
11102
|
renderInputValue = _ref2.renderInputValue,
|
|
11101
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11103
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$b);
|
|
11102
11104
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
11103
11105
|
var isEmptyValue = displayText.length === 0;
|
|
11104
11106
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -11684,7 +11686,7 @@ var index$7 = Object.assign(Drawer, {
|
|
|
11684
11686
|
Dragable: DragableDrawer
|
|
11685
11687
|
});
|
|
11686
11688
|
|
|
11687
|
-
var StyledWrapper$
|
|
11689
|
+
var StyledWrapper$6 = index$a(reactNative.View)(function (_ref) {
|
|
11688
11690
|
var theme = _ref.theme;
|
|
11689
11691
|
return {
|
|
11690
11692
|
display: 'flex',
|
|
@@ -11726,7 +11728,7 @@ var Empty = function Empty(_ref) {
|
|
|
11726
11728
|
_ref$variant = _ref.variant,
|
|
11727
11729
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
11728
11730
|
var theme = useTheme();
|
|
11729
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
11731
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$6, {
|
|
11730
11732
|
style: style,
|
|
11731
11733
|
testID: testID
|
|
11732
11734
|
}, image !== undefined && /*#__PURE__*/React__default["default"].cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
@@ -11776,11 +11778,11 @@ var StyledFABText = index$a(reactNative.Text)(function (_ref3) {
|
|
|
11776
11778
|
};
|
|
11777
11779
|
});
|
|
11778
11780
|
|
|
11779
|
-
var _excluded$
|
|
11781
|
+
var _excluded$a = ["active"];
|
|
11780
11782
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
|
|
11781
11783
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
11782
11784
|
var active = _ref.active,
|
|
11783
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
11785
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
11784
11786
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
11785
11787
|
React.useEffect(function () {
|
|
11786
11788
|
var animation = reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -12133,8 +12135,7 @@ var ListItem = function ListItem(_ref) {
|
|
|
12133
12135
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
12134
12136
|
}) : prefix), /*#__PURE__*/React__default["default"].createElement(StyledTitleContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
|
|
12135
12137
|
intent: "body",
|
|
12136
|
-
fontSize: "large"
|
|
12137
|
-
fontWeight: "semi-bold"
|
|
12138
|
+
fontSize: "large"
|
|
12138
12139
|
}, title), !!subtitle && /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
|
|
12139
12140
|
intent: "subdued",
|
|
12140
12141
|
fontSize: "small"
|
|
@@ -12216,7 +12217,7 @@ var List = {
|
|
|
12216
12217
|
BasicItem: BasicListItem
|
|
12217
12218
|
};
|
|
12218
12219
|
|
|
12219
|
-
var StyledWrapper$
|
|
12220
|
+
var StyledWrapper$5 = index$a(reactNative.View)(function () {
|
|
12220
12221
|
return {
|
|
12221
12222
|
alignContent: 'flex-start'
|
|
12222
12223
|
};
|
|
@@ -12394,7 +12395,7 @@ function PinInput(_ref2) {
|
|
|
12394
12395
|
reactNative.InteractionManager.runAfterInteractions(focus);
|
|
12395
12396
|
}
|
|
12396
12397
|
}, [inputRef]);
|
|
12397
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
12398
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$5, {
|
|
12398
12399
|
style: style,
|
|
12399
12400
|
testID: testID
|
|
12400
12401
|
}, /*#__PURE__*/React__default["default"].createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
@@ -12511,7 +12512,7 @@ var StyledStrokeEnd = index$a(reactNative.View)(function (_ref6) {
|
|
|
12511
12512
|
};
|
|
12512
12513
|
});
|
|
12513
12514
|
|
|
12514
|
-
var _excluded$
|
|
12515
|
+
var _excluded$9 = ["value", "renderValue", "intent", "style", "testID"];
|
|
12515
12516
|
var HalfCircle = function HalfCircle(_ref) {
|
|
12516
12517
|
var type = _ref.type,
|
|
12517
12518
|
themeIntent = _ref.themeIntent;
|
|
@@ -12532,7 +12533,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
12532
12533
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
12533
12534
|
style = _ref2.style,
|
|
12534
12535
|
testID = _ref2.testID,
|
|
12535
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12536
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$9);
|
|
12536
12537
|
var theme = useTheme$1();
|
|
12537
12538
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
12538
12539
|
var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
|
|
@@ -12629,7 +12630,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
12629
12630
|
}, renderValue(value)))));
|
|
12630
12631
|
};
|
|
12631
12632
|
|
|
12632
|
-
var StyledWrapper$
|
|
12633
|
+
var StyledWrapper$4 = index$a(reactNative.View)(function (_ref) {
|
|
12633
12634
|
var theme = _ref.theme,
|
|
12634
12635
|
themeIntent = _ref.themeIntent;
|
|
12635
12636
|
return {
|
|
@@ -12649,14 +12650,14 @@ var StyledInner = index$a(reactNative.Animated.View)(function (_ref2) {
|
|
|
12649
12650
|
};
|
|
12650
12651
|
});
|
|
12651
12652
|
|
|
12652
|
-
var _excluded$
|
|
12653
|
+
var _excluded$8 = ["value", "intent", "style", "testID"];
|
|
12653
12654
|
var ProgressBar = function ProgressBar(_ref) {
|
|
12654
12655
|
var value = _ref.value,
|
|
12655
12656
|
_ref$intent = _ref.intent,
|
|
12656
12657
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
12657
12658
|
style = _ref.style,
|
|
12658
12659
|
testID = _ref.testID,
|
|
12659
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12660
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
12660
12661
|
var _useState = React.useState(0),
|
|
12661
12662
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12662
12663
|
width = _useState2[0],
|
|
@@ -12682,7 +12683,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
12682
12683
|
outputRange: [999, 0],
|
|
12683
12684
|
extrapolate: 'clamp'
|
|
12684
12685
|
});
|
|
12685
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
12686
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
|
|
12686
12687
|
testID: testID,
|
|
12687
12688
|
style: style,
|
|
12688
12689
|
themeIntent: intent
|
|
@@ -12847,14 +12848,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
12847
12848
|
}, dotProps))));
|
|
12848
12849
|
};
|
|
12849
12850
|
|
|
12850
|
-
var _excluded$
|
|
12851
|
+
var _excluded$7 = ["testID", "size", "intent"];
|
|
12851
12852
|
var Spinner = function Spinner(_ref) {
|
|
12852
12853
|
var testID = _ref.testID,
|
|
12853
12854
|
_ref$size = _ref.size,
|
|
12854
12855
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
12855
12856
|
_ref$intent = _ref.intent,
|
|
12856
12857
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
12857
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12858
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
12858
12859
|
return /*#__PURE__*/React__default["default"].createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default["default"].createElement(StyledSpinnerContainer, {
|
|
12859
12860
|
testID: testID
|
|
12860
12861
|
}, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, {
|
|
@@ -12887,7 +12888,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
12887
12888
|
}, children);
|
|
12888
12889
|
};
|
|
12889
12890
|
|
|
12890
|
-
var _excluded$
|
|
12891
|
+
var _excluded$6 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
|
|
12891
12892
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
12892
12893
|
var trans = progress.interpolate({
|
|
12893
12894
|
inputRange: [0, 1],
|
|
@@ -12912,7 +12913,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
12912
12913
|
leftActionsWidth = _ref.leftActionsWidth,
|
|
12913
12914
|
rightActions = _ref.rightActions,
|
|
12914
12915
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
12915
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
12916
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
12916
12917
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
12917
12918
|
width = _useWindowDimensions.width;
|
|
12918
12919
|
var swipeableRef = React.useRef(null);
|
|
@@ -12959,6 +12960,232 @@ var index$5 = Object.assign(Swipeable, {
|
|
|
12959
12960
|
Content: reactNativeGestureHandler.RectButton
|
|
12960
12961
|
});
|
|
12961
12962
|
|
|
12963
|
+
var StyledWrapper$3 = index$a(reactNative.View)(function () {
|
|
12964
|
+
return {
|
|
12965
|
+
flexDirection: 'row'
|
|
12966
|
+
};
|
|
12967
|
+
});
|
|
12968
|
+
var StyledContent = index$a(reactNative.Animated.View)(function () {
|
|
12969
|
+
return {
|
|
12970
|
+
flex: 1
|
|
12971
|
+
};
|
|
12972
|
+
});
|
|
12973
|
+
|
|
12974
|
+
var _excluded$5 = ["children", "leftContent", "rightContent", "style", "leftActionsWidth", "onSwipeLeftStart", "onSwipeLeftEnd", "rightActionsWidth", "onSwipeRightStart", "onSwipeRightEnd"];
|
|
12975
|
+
var swipeStartMinDistance = 15;
|
|
12976
|
+
var ReleaseAnimationConfig = {
|
|
12977
|
+
toValue: {
|
|
12978
|
+
x: 0,
|
|
12979
|
+
y: 0
|
|
12980
|
+
},
|
|
12981
|
+
duration: 100,
|
|
12982
|
+
easing: reactNative.Easing.elastic(0.5),
|
|
12983
|
+
useNativeDriver: true
|
|
12984
|
+
};
|
|
12985
|
+
var animationToNewState = function animationToNewState(pan) {
|
|
12986
|
+
var animationConfig = ReleaseAnimationConfig;
|
|
12987
|
+
pan.flattenOffset();
|
|
12988
|
+
return reactNative.Animated.timing(pan, animationConfig);
|
|
12989
|
+
};
|
|
12990
|
+
var hanleOnPanResponderEnd = function hanleOnPanResponderEnd(state, contextValues, event, gestureState) {
|
|
12991
|
+
var unmountedRef = contextValues.unmountedRef,
|
|
12992
|
+
onSwipeLeftEnd = contextValues.onSwipeLeftEnd,
|
|
12993
|
+
onSwipeRightEnd = contextValues.onSwipeRightEnd;
|
|
12994
|
+
var leftActionActivated = state.leftActionActivated,
|
|
12995
|
+
rightActionActivated = state.rightActionActivated,
|
|
12996
|
+
pan = state.pan;
|
|
12997
|
+
var animationConfig = ReleaseAnimationConfig;
|
|
12998
|
+
animationToNewState(pan).start(function () {
|
|
12999
|
+
if (unmountedRef.current) {
|
|
13000
|
+
return;
|
|
13001
|
+
}
|
|
13002
|
+
if (leftActionActivated && onSwipeRightEnd) {
|
|
13003
|
+
onSwipeRightEnd(event, gestureState);
|
|
13004
|
+
}
|
|
13005
|
+
if (rightActionActivated && onSwipeLeftEnd) {
|
|
13006
|
+
onSwipeLeftEnd(event, gestureState);
|
|
13007
|
+
}
|
|
13008
|
+
});
|
|
13009
|
+
return _objectSpread2(_objectSpread2({}, state), {}, {
|
|
13010
|
+
lastOffset: {
|
|
13011
|
+
x: animationConfig.toValue.x,
|
|
13012
|
+
y: animationConfig.toValue.y
|
|
13013
|
+
},
|
|
13014
|
+
leftActionActivated: false,
|
|
13015
|
+
rightActionActivated: false
|
|
13016
|
+
});
|
|
13017
|
+
};
|
|
13018
|
+
var hanleOnPanResponderMove = function hanleOnPanResponderMove(state, contextValues, event, gestureState) {
|
|
13019
|
+
var leftActionsWidth = contextValues.leftActionsWidth,
|
|
13020
|
+
rightActionsWidth = contextValues.rightActionsWidth,
|
|
13021
|
+
onSwipeLeftStart = contextValues.onSwipeLeftStart,
|
|
13022
|
+
onSwipeRightStart = contextValues.onSwipeRightStart,
|
|
13023
|
+
canSwipeRight = contextValues.canSwipeRight,
|
|
13024
|
+
canSwipeLeft = contextValues.canSwipeLeft;
|
|
13025
|
+
var lastOffset = state.lastOffset,
|
|
13026
|
+
leftActionActivated = state.leftActionActivated,
|
|
13027
|
+
rightActionActivated = state.rightActionActivated;
|
|
13028
|
+
var dx = gestureState.dx;
|
|
13029
|
+
var x = dx + lastOffset.x;
|
|
13030
|
+
var nextLeftActionActivated = leftActionActivated;
|
|
13031
|
+
var nextRightActionActivated = rightActionActivated;
|
|
13032
|
+
reactNative.Animated.event([null, {
|
|
13033
|
+
dx: state.pan.x,
|
|
13034
|
+
dy: state.pan.y
|
|
13035
|
+
}], {
|
|
13036
|
+
useNativeDriver: false
|
|
13037
|
+
})(event, gestureState);
|
|
13038
|
+
if (!leftActionActivated && canSwipeRight && x >= leftActionsWidth) {
|
|
13039
|
+
nextLeftActionActivated = true;
|
|
13040
|
+
onSwipeRightStart(event, gestureState);
|
|
13041
|
+
}
|
|
13042
|
+
if (leftActionActivated && canSwipeRight && x < leftActionsWidth) {
|
|
13043
|
+
nextLeftActionActivated = false;
|
|
13044
|
+
}
|
|
13045
|
+
if (!rightActionActivated && canSwipeLeft && x <= -rightActionsWidth) {
|
|
13046
|
+
nextRightActionActivated = true;
|
|
13047
|
+
onSwipeLeftStart(event, gestureState);
|
|
13048
|
+
}
|
|
13049
|
+
if (rightActionActivated && canSwipeLeft && x > -rightActionsWidth) {
|
|
13050
|
+
nextRightActionActivated = false;
|
|
13051
|
+
}
|
|
13052
|
+
var needsUpdate = nextLeftActionActivated !== leftActionActivated || nextRightActionActivated !== rightActionActivated;
|
|
13053
|
+
if (needsUpdate) {
|
|
13054
|
+
return _objectSpread2(_objectSpread2({}, state), {}, {
|
|
13055
|
+
leftActionActivated: nextLeftActionActivated,
|
|
13056
|
+
rightActionActivated: nextRightActionActivated
|
|
13057
|
+
});
|
|
13058
|
+
}
|
|
13059
|
+
return state;
|
|
13060
|
+
};
|
|
13061
|
+
var SwipeableV2 = function SwipeableV2(_ref) {
|
|
13062
|
+
var children = _ref.children,
|
|
13063
|
+
leftContent = _ref.leftContent,
|
|
13064
|
+
rightContent = _ref.rightContent,
|
|
13065
|
+
style = _ref.style,
|
|
13066
|
+
_ref$leftActionsWidth = _ref.leftActionsWidth,
|
|
13067
|
+
leftActionsWidth = _ref$leftActionsWidth === void 0 ? scale(200) : _ref$leftActionsWidth,
|
|
13068
|
+
_ref$onSwipeLeftStart = _ref.onSwipeLeftStart,
|
|
13069
|
+
onSwipeLeftStart = _ref$onSwipeLeftStart === void 0 ? noop : _ref$onSwipeLeftStart,
|
|
13070
|
+
_ref$onSwipeLeftEnd = _ref.onSwipeLeftEnd,
|
|
13071
|
+
onSwipeLeftEnd = _ref$onSwipeLeftEnd === void 0 ? noop : _ref$onSwipeLeftEnd,
|
|
13072
|
+
_ref$rightActionsWidt = _ref.rightActionsWidth,
|
|
13073
|
+
rightActionsWidth = _ref$rightActionsWidt === void 0 ? scale(200) : _ref$rightActionsWidt,
|
|
13074
|
+
_ref$onSwipeRightStar = _ref.onSwipeRightStart,
|
|
13075
|
+
onSwipeRightStart = _ref$onSwipeRightStar === void 0 ? noop : _ref$onSwipeRightStar,
|
|
13076
|
+
_ref$onSwipeRightEnd = _ref.onSwipeRightEnd,
|
|
13077
|
+
onSwipeRightEnd = _ref$onSwipeRightEnd === void 0 ? noop : _ref$onSwipeRightEnd,
|
|
13078
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
13079
|
+
var propsWithDefaultValue = _objectSpread2({
|
|
13080
|
+
children: children,
|
|
13081
|
+
leftContent: leftContent,
|
|
13082
|
+
rightContent: rightContent,
|
|
13083
|
+
style: style,
|
|
13084
|
+
leftActionsWidth: leftActionsWidth,
|
|
13085
|
+
onSwipeLeftStart: onSwipeLeftStart,
|
|
13086
|
+
onSwipeLeftEnd: onSwipeLeftEnd,
|
|
13087
|
+
rightActionsWidth: rightActionsWidth,
|
|
13088
|
+
onSwipeRightStart: onSwipeRightStart,
|
|
13089
|
+
onSwipeRightEnd: onSwipeRightEnd
|
|
13090
|
+
}, rest);
|
|
13091
|
+
var unmountedRef = React__default["default"].useRef(false);
|
|
13092
|
+
React.useEffect(function () {
|
|
13093
|
+
return function () {
|
|
13094
|
+
unmountedRef.current = true;
|
|
13095
|
+
};
|
|
13096
|
+
}, []);
|
|
13097
|
+
var _React$useState = React__default["default"].useState(0),
|
|
13098
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
13099
|
+
width = _React$useState2[0],
|
|
13100
|
+
setWidth = _React$useState2[1];
|
|
13101
|
+
var canSwipeRight = !!leftContent;
|
|
13102
|
+
var canSwipeLeft = !!rightContent;
|
|
13103
|
+
var propsRef = React__default["default"].useRef(undefined);
|
|
13104
|
+
var _React$useState3 = React__default["default"].useState({
|
|
13105
|
+
pan: new reactNative.Animated.ValueXY({
|
|
13106
|
+
x: 0,
|
|
13107
|
+
y: 0
|
|
13108
|
+
}),
|
|
13109
|
+
lastOffset: {
|
|
13110
|
+
x: 0,
|
|
13111
|
+
y: 0
|
|
13112
|
+
},
|
|
13113
|
+
leftActionActivated: false,
|
|
13114
|
+
rightActionActivated: false
|
|
13115
|
+
}),
|
|
13116
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
13117
|
+
state = _React$useState4[0],
|
|
13118
|
+
setState = _React$useState4[1];
|
|
13119
|
+
propsRef.current = _objectSpread2(_objectSpread2({}, propsWithDefaultValue), {}, {
|
|
13120
|
+
canSwipeLeft: canSwipeLeft,
|
|
13121
|
+
canSwipeRight: canSwipeRight,
|
|
13122
|
+
unmountedRef: unmountedRef
|
|
13123
|
+
});
|
|
13124
|
+
var transform = [{
|
|
13125
|
+
translateX: state.pan.x.interpolate({
|
|
13126
|
+
inputRange: [canSwipeLeft ? -width : 0, canSwipeRight ? width : 0],
|
|
13127
|
+
outputRange: [canSwipeLeft ? -width + reactNative.StyleSheet.hairlineWidth : 0, canSwipeRight ? width - reactNative.StyleSheet.hairlineWidth : 0],
|
|
13128
|
+
extrapolate: 'clamp'
|
|
13129
|
+
})
|
|
13130
|
+
}];
|
|
13131
|
+
var panResponder = React__default["default"].useRef(reactNative.PanResponder.create({
|
|
13132
|
+
onMoveShouldSetPanResponder: function onMoveShouldSetPanResponder(_, gestureState) {
|
|
13133
|
+
return Math.abs(gestureState.dx) > swipeStartMinDistance;
|
|
13134
|
+
},
|
|
13135
|
+
onMoveShouldSetPanResponderCapture: function onMoveShouldSetPanResponderCapture(_, gestureState) {
|
|
13136
|
+
return Math.abs(gestureState.dx) > swipeStartMinDistance;
|
|
13137
|
+
},
|
|
13138
|
+
onPanResponderGrant: function onPanResponderGrant() {
|
|
13139
|
+
setState(function (prevState) {
|
|
13140
|
+
prevState.pan.setOffset(prevState.lastOffset);
|
|
13141
|
+
return prevState;
|
|
13142
|
+
});
|
|
13143
|
+
},
|
|
13144
|
+
onPanResponderMove: function onPanResponderMove(event, gestureState) {
|
|
13145
|
+
setState(function (prevState) {
|
|
13146
|
+
return hanleOnPanResponderMove(prevState, propsRef.current, event, gestureState);
|
|
13147
|
+
});
|
|
13148
|
+
},
|
|
13149
|
+
onPanResponderRelease: function onPanResponderRelease(event, gestureState) {
|
|
13150
|
+
setState(function (prevState) {
|
|
13151
|
+
return hanleOnPanResponderEnd(prevState, propsRef.current, event, gestureState);
|
|
13152
|
+
});
|
|
13153
|
+
},
|
|
13154
|
+
onPanResponderTerminationRequest: function onPanResponderTerminationRequest() {
|
|
13155
|
+
return false;
|
|
13156
|
+
},
|
|
13157
|
+
onPanResponderTerminate: function onPanResponderTerminate(event, gestureState) {
|
|
13158
|
+
setState(function (prevState) {
|
|
13159
|
+
return hanleOnPanResponderEnd(prevState, propsRef.current, event, gestureState);
|
|
13160
|
+
});
|
|
13161
|
+
}
|
|
13162
|
+
})).current;
|
|
13163
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$3, _extends$1({
|
|
13164
|
+
onLayout: function onLayout(event) {
|
|
13165
|
+
setWidth(event.nativeEvent.layout.width);
|
|
13166
|
+
},
|
|
13167
|
+
style: [{
|
|
13168
|
+
flexDirection: 'row'
|
|
13169
|
+
}, style]
|
|
13170
|
+
}, panResponder.panHandlers, rest), canSwipeRight && /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
13171
|
+
style: [{
|
|
13172
|
+
transform: transform,
|
|
13173
|
+
marginLeft: -width,
|
|
13174
|
+
width: width
|
|
13175
|
+
}]
|
|
13176
|
+
}, leftContent), /*#__PURE__*/React__default["default"].createElement(StyledContent, {
|
|
13177
|
+
style: {
|
|
13178
|
+
transform: transform
|
|
13179
|
+
}
|
|
13180
|
+
}, children), canSwipeLeft && /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
13181
|
+
style: [{
|
|
13182
|
+
transform: transform,
|
|
13183
|
+
marginRight: -width,
|
|
13184
|
+
width: width
|
|
13185
|
+
}]
|
|
13186
|
+
}, rightContent));
|
|
13187
|
+
};
|
|
13188
|
+
|
|
12962
13189
|
var Circle = index$a(reactNative.View)(function (_ref) {
|
|
12963
13190
|
var theme = _ref.theme;
|
|
12964
13191
|
return {
|
|
@@ -31320,6 +31547,7 @@ exports.Select = index$4;
|
|
|
31320
31547
|
exports.Slider = Slider;
|
|
31321
31548
|
exports.Spinner = Spinner;
|
|
31322
31549
|
exports.Swipeable = index$5;
|
|
31550
|
+
exports.SwipeableV2 = SwipeableV2;
|
|
31323
31551
|
exports.Switch = index$3;
|
|
31324
31552
|
exports.Tabs = index$2;
|
|
31325
31553
|
exports.Tag = Tag;
|