@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/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({
|
|
@@ -10644,7 +10646,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
10644
10646
|
}, body) : null));
|
|
10645
10647
|
};
|
|
10646
10648
|
|
|
10647
|
-
var _excluded$
|
|
10649
|
+
var _excluded$e = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style"];
|
|
10648
10650
|
function useStateFromProp(initialValue) {
|
|
10649
10651
|
var _useState = useState(initialValue),
|
|
10650
10652
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10662,7 +10664,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
10662
10664
|
_ref$selectedItemInde = _ref.selectedItemIndex,
|
|
10663
10665
|
selectedItemIndex = _ref$selectedItemInde === void 0 ? 0 : _ref$selectedItemInde,
|
|
10664
10666
|
style = _ref.style,
|
|
10665
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10667
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
10666
10668
|
var carouselRef = useRef(null);
|
|
10667
10669
|
var _useStateFromProp = useStateFromProp(selectedItemIndex),
|
|
10668
10670
|
_useStateFromProp2 = _slicedToArray(_useStateFromProp, 2),
|
|
@@ -10762,12 +10764,12 @@ var Indicator = index$a(View)(function (_ref2) {
|
|
|
10762
10764
|
};
|
|
10763
10765
|
});
|
|
10764
10766
|
|
|
10765
|
-
var _excluded$
|
|
10767
|
+
var _excluded$d = ["intent", "children"];
|
|
10766
10768
|
var DataCard = function DataCard(_ref) {
|
|
10767
10769
|
var _ref$intent = _ref.intent,
|
|
10768
10770
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
10769
10771
|
children = _ref.children,
|
|
10770
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10772
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$d);
|
|
10771
10773
|
return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
|
|
10772
10774
|
themeIntent: intent,
|
|
10773
10775
|
testID: "data-card-indicator"
|
|
@@ -10785,11 +10787,11 @@ var StyledCard = index$a(View)(function (_ref) {
|
|
|
10785
10787
|
});
|
|
10786
10788
|
});
|
|
10787
10789
|
|
|
10788
|
-
var _excluded$
|
|
10790
|
+
var _excluded$c = ["intent", "children"];
|
|
10789
10791
|
var Card = function Card(_ref) {
|
|
10790
10792
|
var intent = _ref.intent,
|
|
10791
10793
|
children = _ref.children,
|
|
10792
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10794
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
10793
10795
|
return /*#__PURE__*/React.createElement(StyledCard, _extends$1({}, nativeProps, {
|
|
10794
10796
|
themeIntent: intent
|
|
10795
10797
|
}), children);
|
|
@@ -10798,7 +10800,7 @@ var index$8 = Object.assign(Card, {
|
|
|
10798
10800
|
Data: DataCard
|
|
10799
10801
|
});
|
|
10800
10802
|
|
|
10801
|
-
var StyledWrapper$
|
|
10803
|
+
var StyledWrapper$7 = index$a(TouchableOpacity)(function (_ref) {
|
|
10802
10804
|
var theme = _ref.theme,
|
|
10803
10805
|
themeWithBorder = _ref.themeWithBorder,
|
|
10804
10806
|
themeDisabled = _ref.themeDisabled;
|
|
@@ -10855,7 +10857,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
10855
10857
|
onPress = _ref.onPress,
|
|
10856
10858
|
style = _ref.style,
|
|
10857
10859
|
testID = _ref.testID;
|
|
10858
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
10860
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$7, {
|
|
10859
10861
|
onPress: onPress,
|
|
10860
10862
|
disabled: disabled,
|
|
10861
10863
|
themeDisabled: disabled,
|
|
@@ -11023,7 +11025,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
|
11023
11025
|
};
|
|
11024
11026
|
});
|
|
11025
11027
|
|
|
11026
|
-
var _excluded$
|
|
11028
|
+
var _excluded$b = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
|
|
11027
11029
|
var getVariant$1 = function getVariant(_ref) {
|
|
11028
11030
|
var disabled = _ref.disabled,
|
|
11029
11031
|
error = _ref.error,
|
|
@@ -11069,7 +11071,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
11069
11071
|
value = _ref2.value,
|
|
11070
11072
|
defaultValue = _ref2.defaultValue,
|
|
11071
11073
|
renderInputValue = _ref2.renderInputValue,
|
|
11072
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11074
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$b);
|
|
11073
11075
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
11074
11076
|
var isEmptyValue = displayText.length === 0;
|
|
11075
11077
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -11655,7 +11657,7 @@ var index$7 = Object.assign(Drawer, {
|
|
|
11655
11657
|
Dragable: DragableDrawer
|
|
11656
11658
|
});
|
|
11657
11659
|
|
|
11658
|
-
var StyledWrapper$
|
|
11660
|
+
var StyledWrapper$6 = index$a(View)(function (_ref) {
|
|
11659
11661
|
var theme = _ref.theme;
|
|
11660
11662
|
return {
|
|
11661
11663
|
display: 'flex',
|
|
@@ -11697,7 +11699,7 @@ var Empty = function Empty(_ref) {
|
|
|
11697
11699
|
_ref$variant = _ref.variant,
|
|
11698
11700
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
11699
11701
|
var theme = useTheme();
|
|
11700
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
11702
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$6, {
|
|
11701
11703
|
style: style,
|
|
11702
11704
|
testID: testID
|
|
11703
11705
|
}, image !== undefined && /*#__PURE__*/React.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
@@ -11747,11 +11749,11 @@ var StyledFABText = index$a(Text$1)(function (_ref3) {
|
|
|
11747
11749
|
};
|
|
11748
11750
|
});
|
|
11749
11751
|
|
|
11750
|
-
var _excluded$
|
|
11752
|
+
var _excluded$a = ["active"];
|
|
11751
11753
|
var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
11752
11754
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
11753
11755
|
var active = _ref.active,
|
|
11754
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
11756
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
11755
11757
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
11756
11758
|
useEffect(function () {
|
|
11757
11759
|
var animation = Animated.timing(rotateAnimation.current, {
|
|
@@ -12104,8 +12106,7 @@ var ListItem = function ListItem(_ref) {
|
|
|
12104
12106
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
12105
12107
|
}) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer$1, null, /*#__PURE__*/React.createElement(Typography.Text, {
|
|
12106
12108
|
intent: "body",
|
|
12107
|
-
fontSize: "large"
|
|
12108
|
-
fontWeight: "semi-bold"
|
|
12109
|
+
fontSize: "large"
|
|
12109
12110
|
}, title), !!subtitle && /*#__PURE__*/React.createElement(Typography.Text, {
|
|
12110
12111
|
intent: "subdued",
|
|
12111
12112
|
fontSize: "small"
|
|
@@ -12187,7 +12188,7 @@ var List = {
|
|
|
12187
12188
|
BasicItem: BasicListItem
|
|
12188
12189
|
};
|
|
12189
12190
|
|
|
12190
|
-
var StyledWrapper$
|
|
12191
|
+
var StyledWrapper$5 = index$a(View)(function () {
|
|
12191
12192
|
return {
|
|
12192
12193
|
alignContent: 'flex-start'
|
|
12193
12194
|
};
|
|
@@ -12365,7 +12366,7 @@ function PinInput(_ref2) {
|
|
|
12365
12366
|
InteractionManager.runAfterInteractions(focus);
|
|
12366
12367
|
}
|
|
12367
12368
|
}, [inputRef]);
|
|
12368
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
12369
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$5, {
|
|
12369
12370
|
style: style,
|
|
12370
12371
|
testID: testID
|
|
12371
12372
|
}, /*#__PURE__*/React.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
@@ -12482,7 +12483,7 @@ var StyledStrokeEnd = index$a(View)(function (_ref6) {
|
|
|
12482
12483
|
};
|
|
12483
12484
|
});
|
|
12484
12485
|
|
|
12485
|
-
var _excluded$
|
|
12486
|
+
var _excluded$9 = ["value", "renderValue", "intent", "style", "testID"];
|
|
12486
12487
|
var HalfCircle = function HalfCircle(_ref) {
|
|
12487
12488
|
var type = _ref.type,
|
|
12488
12489
|
themeIntent = _ref.themeIntent;
|
|
@@ -12503,7 +12504,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
12503
12504
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
12504
12505
|
style = _ref2.style,
|
|
12505
12506
|
testID = _ref2.testID,
|
|
12506
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12507
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$9);
|
|
12507
12508
|
var theme = useTheme$1();
|
|
12508
12509
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
12509
12510
|
var progressAnimatedValue = useRef(new Animated.Value(0));
|
|
@@ -12600,7 +12601,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
12600
12601
|
}, renderValue(value)))));
|
|
12601
12602
|
};
|
|
12602
12603
|
|
|
12603
|
-
var StyledWrapper$
|
|
12604
|
+
var StyledWrapper$4 = index$a(View)(function (_ref) {
|
|
12604
12605
|
var theme = _ref.theme,
|
|
12605
12606
|
themeIntent = _ref.themeIntent;
|
|
12606
12607
|
return {
|
|
@@ -12620,14 +12621,14 @@ var StyledInner = index$a(Animated.View)(function (_ref2) {
|
|
|
12620
12621
|
};
|
|
12621
12622
|
});
|
|
12622
12623
|
|
|
12623
|
-
var _excluded$
|
|
12624
|
+
var _excluded$8 = ["value", "intent", "style", "testID"];
|
|
12624
12625
|
var ProgressBar = function ProgressBar(_ref) {
|
|
12625
12626
|
var value = _ref.value,
|
|
12626
12627
|
_ref$intent = _ref.intent,
|
|
12627
12628
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
12628
12629
|
style = _ref.style,
|
|
12629
12630
|
testID = _ref.testID,
|
|
12630
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12631
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
12631
12632
|
var _useState = useState(0),
|
|
12632
12633
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12633
12634
|
width = _useState2[0],
|
|
@@ -12653,7 +12654,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
12653
12654
|
outputRange: [999, 0],
|
|
12654
12655
|
extrapolate: 'clamp'
|
|
12655
12656
|
});
|
|
12656
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
12657
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
|
|
12657
12658
|
testID: testID,
|
|
12658
12659
|
style: style,
|
|
12659
12660
|
themeIntent: intent
|
|
@@ -12818,14 +12819,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
12818
12819
|
}, dotProps))));
|
|
12819
12820
|
};
|
|
12820
12821
|
|
|
12821
|
-
var _excluded$
|
|
12822
|
+
var _excluded$7 = ["testID", "size", "intent"];
|
|
12822
12823
|
var Spinner = function Spinner(_ref) {
|
|
12823
12824
|
var testID = _ref.testID,
|
|
12824
12825
|
_ref$size = _ref.size,
|
|
12825
12826
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
12826
12827
|
_ref$intent = _ref.intent,
|
|
12827
12828
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
12828
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12829
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
12829
12830
|
return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
|
|
12830
12831
|
testID: testID
|
|
12831
12832
|
}, /*#__PURE__*/React.createElement(AnimatedSpinner, {
|
|
@@ -12858,7 +12859,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
12858
12859
|
}, children);
|
|
12859
12860
|
};
|
|
12860
12861
|
|
|
12861
|
-
var _excluded$
|
|
12862
|
+
var _excluded$6 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
|
|
12862
12863
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
12863
12864
|
var trans = progress.interpolate({
|
|
12864
12865
|
inputRange: [0, 1],
|
|
@@ -12883,7 +12884,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
12883
12884
|
leftActionsWidth = _ref.leftActionsWidth,
|
|
12884
12885
|
rightActions = _ref.rightActions,
|
|
12885
12886
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
12886
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
12887
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
12887
12888
|
var _useWindowDimensions = useWindowDimensions(),
|
|
12888
12889
|
width = _useWindowDimensions.width;
|
|
12889
12890
|
var swipeableRef = useRef(null);
|
|
@@ -12930,6 +12931,232 @@ var index$5 = Object.assign(Swipeable, {
|
|
|
12930
12931
|
Content: RectButton
|
|
12931
12932
|
});
|
|
12932
12933
|
|
|
12934
|
+
var StyledWrapper$3 = index$a(View)(function () {
|
|
12935
|
+
return {
|
|
12936
|
+
flexDirection: 'row'
|
|
12937
|
+
};
|
|
12938
|
+
});
|
|
12939
|
+
var StyledContent = index$a(Animated.View)(function () {
|
|
12940
|
+
return {
|
|
12941
|
+
flex: 1
|
|
12942
|
+
};
|
|
12943
|
+
});
|
|
12944
|
+
|
|
12945
|
+
var _excluded$5 = ["children", "leftContent", "rightContent", "style", "leftActionsWidth", "onSwipeLeftStart", "onSwipeLeftEnd", "rightActionsWidth", "onSwipeRightStart", "onSwipeRightEnd"];
|
|
12946
|
+
var swipeStartMinDistance = 15;
|
|
12947
|
+
var ReleaseAnimationConfig = {
|
|
12948
|
+
toValue: {
|
|
12949
|
+
x: 0,
|
|
12950
|
+
y: 0
|
|
12951
|
+
},
|
|
12952
|
+
duration: 100,
|
|
12953
|
+
easing: Easing.elastic(0.5),
|
|
12954
|
+
useNativeDriver: true
|
|
12955
|
+
};
|
|
12956
|
+
var animationToNewState = function animationToNewState(pan) {
|
|
12957
|
+
var animationConfig = ReleaseAnimationConfig;
|
|
12958
|
+
pan.flattenOffset();
|
|
12959
|
+
return Animated.timing(pan, animationConfig);
|
|
12960
|
+
};
|
|
12961
|
+
var hanleOnPanResponderEnd = function hanleOnPanResponderEnd(state, contextValues, event, gestureState) {
|
|
12962
|
+
var unmountedRef = contextValues.unmountedRef,
|
|
12963
|
+
onSwipeLeftEnd = contextValues.onSwipeLeftEnd,
|
|
12964
|
+
onSwipeRightEnd = contextValues.onSwipeRightEnd;
|
|
12965
|
+
var leftActionActivated = state.leftActionActivated,
|
|
12966
|
+
rightActionActivated = state.rightActionActivated,
|
|
12967
|
+
pan = state.pan;
|
|
12968
|
+
var animationConfig = ReleaseAnimationConfig;
|
|
12969
|
+
animationToNewState(pan).start(function () {
|
|
12970
|
+
if (unmountedRef.current) {
|
|
12971
|
+
return;
|
|
12972
|
+
}
|
|
12973
|
+
if (leftActionActivated && onSwipeRightEnd) {
|
|
12974
|
+
onSwipeRightEnd(event, gestureState);
|
|
12975
|
+
}
|
|
12976
|
+
if (rightActionActivated && onSwipeLeftEnd) {
|
|
12977
|
+
onSwipeLeftEnd(event, gestureState);
|
|
12978
|
+
}
|
|
12979
|
+
});
|
|
12980
|
+
return _objectSpread2(_objectSpread2({}, state), {}, {
|
|
12981
|
+
lastOffset: {
|
|
12982
|
+
x: animationConfig.toValue.x,
|
|
12983
|
+
y: animationConfig.toValue.y
|
|
12984
|
+
},
|
|
12985
|
+
leftActionActivated: false,
|
|
12986
|
+
rightActionActivated: false
|
|
12987
|
+
});
|
|
12988
|
+
};
|
|
12989
|
+
var hanleOnPanResponderMove = function hanleOnPanResponderMove(state, contextValues, event, gestureState) {
|
|
12990
|
+
var leftActionsWidth = contextValues.leftActionsWidth,
|
|
12991
|
+
rightActionsWidth = contextValues.rightActionsWidth,
|
|
12992
|
+
onSwipeLeftStart = contextValues.onSwipeLeftStart,
|
|
12993
|
+
onSwipeRightStart = contextValues.onSwipeRightStart,
|
|
12994
|
+
canSwipeRight = contextValues.canSwipeRight,
|
|
12995
|
+
canSwipeLeft = contextValues.canSwipeLeft;
|
|
12996
|
+
var lastOffset = state.lastOffset,
|
|
12997
|
+
leftActionActivated = state.leftActionActivated,
|
|
12998
|
+
rightActionActivated = state.rightActionActivated;
|
|
12999
|
+
var dx = gestureState.dx;
|
|
13000
|
+
var x = dx + lastOffset.x;
|
|
13001
|
+
var nextLeftActionActivated = leftActionActivated;
|
|
13002
|
+
var nextRightActionActivated = rightActionActivated;
|
|
13003
|
+
Animated.event([null, {
|
|
13004
|
+
dx: state.pan.x,
|
|
13005
|
+
dy: state.pan.y
|
|
13006
|
+
}], {
|
|
13007
|
+
useNativeDriver: false
|
|
13008
|
+
})(event, gestureState);
|
|
13009
|
+
if (!leftActionActivated && canSwipeRight && x >= leftActionsWidth) {
|
|
13010
|
+
nextLeftActionActivated = true;
|
|
13011
|
+
onSwipeRightStart(event, gestureState);
|
|
13012
|
+
}
|
|
13013
|
+
if (leftActionActivated && canSwipeRight && x < leftActionsWidth) {
|
|
13014
|
+
nextLeftActionActivated = false;
|
|
13015
|
+
}
|
|
13016
|
+
if (!rightActionActivated && canSwipeLeft && x <= -rightActionsWidth) {
|
|
13017
|
+
nextRightActionActivated = true;
|
|
13018
|
+
onSwipeLeftStart(event, gestureState);
|
|
13019
|
+
}
|
|
13020
|
+
if (rightActionActivated && canSwipeLeft && x > -rightActionsWidth) {
|
|
13021
|
+
nextRightActionActivated = false;
|
|
13022
|
+
}
|
|
13023
|
+
var needsUpdate = nextLeftActionActivated !== leftActionActivated || nextRightActionActivated !== rightActionActivated;
|
|
13024
|
+
if (needsUpdate) {
|
|
13025
|
+
return _objectSpread2(_objectSpread2({}, state), {}, {
|
|
13026
|
+
leftActionActivated: nextLeftActionActivated,
|
|
13027
|
+
rightActionActivated: nextRightActionActivated
|
|
13028
|
+
});
|
|
13029
|
+
}
|
|
13030
|
+
return state;
|
|
13031
|
+
};
|
|
13032
|
+
var SwipeableV2 = function SwipeableV2(_ref) {
|
|
13033
|
+
var children = _ref.children,
|
|
13034
|
+
leftContent = _ref.leftContent,
|
|
13035
|
+
rightContent = _ref.rightContent,
|
|
13036
|
+
style = _ref.style,
|
|
13037
|
+
_ref$leftActionsWidth = _ref.leftActionsWidth,
|
|
13038
|
+
leftActionsWidth = _ref$leftActionsWidth === void 0 ? scale(200) : _ref$leftActionsWidth,
|
|
13039
|
+
_ref$onSwipeLeftStart = _ref.onSwipeLeftStart,
|
|
13040
|
+
onSwipeLeftStart = _ref$onSwipeLeftStart === void 0 ? noop : _ref$onSwipeLeftStart,
|
|
13041
|
+
_ref$onSwipeLeftEnd = _ref.onSwipeLeftEnd,
|
|
13042
|
+
onSwipeLeftEnd = _ref$onSwipeLeftEnd === void 0 ? noop : _ref$onSwipeLeftEnd,
|
|
13043
|
+
_ref$rightActionsWidt = _ref.rightActionsWidth,
|
|
13044
|
+
rightActionsWidth = _ref$rightActionsWidt === void 0 ? scale(200) : _ref$rightActionsWidt,
|
|
13045
|
+
_ref$onSwipeRightStar = _ref.onSwipeRightStart,
|
|
13046
|
+
onSwipeRightStart = _ref$onSwipeRightStar === void 0 ? noop : _ref$onSwipeRightStar,
|
|
13047
|
+
_ref$onSwipeRightEnd = _ref.onSwipeRightEnd,
|
|
13048
|
+
onSwipeRightEnd = _ref$onSwipeRightEnd === void 0 ? noop : _ref$onSwipeRightEnd,
|
|
13049
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
13050
|
+
var propsWithDefaultValue = _objectSpread2({
|
|
13051
|
+
children: children,
|
|
13052
|
+
leftContent: leftContent,
|
|
13053
|
+
rightContent: rightContent,
|
|
13054
|
+
style: style,
|
|
13055
|
+
leftActionsWidth: leftActionsWidth,
|
|
13056
|
+
onSwipeLeftStart: onSwipeLeftStart,
|
|
13057
|
+
onSwipeLeftEnd: onSwipeLeftEnd,
|
|
13058
|
+
rightActionsWidth: rightActionsWidth,
|
|
13059
|
+
onSwipeRightStart: onSwipeRightStart,
|
|
13060
|
+
onSwipeRightEnd: onSwipeRightEnd
|
|
13061
|
+
}, rest);
|
|
13062
|
+
var unmountedRef = React.useRef(false);
|
|
13063
|
+
useEffect(function () {
|
|
13064
|
+
return function () {
|
|
13065
|
+
unmountedRef.current = true;
|
|
13066
|
+
};
|
|
13067
|
+
}, []);
|
|
13068
|
+
var _React$useState = React.useState(0),
|
|
13069
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
13070
|
+
width = _React$useState2[0],
|
|
13071
|
+
setWidth = _React$useState2[1];
|
|
13072
|
+
var canSwipeRight = !!leftContent;
|
|
13073
|
+
var canSwipeLeft = !!rightContent;
|
|
13074
|
+
var propsRef = React.useRef(undefined);
|
|
13075
|
+
var _React$useState3 = React.useState({
|
|
13076
|
+
pan: new Animated.ValueXY({
|
|
13077
|
+
x: 0,
|
|
13078
|
+
y: 0
|
|
13079
|
+
}),
|
|
13080
|
+
lastOffset: {
|
|
13081
|
+
x: 0,
|
|
13082
|
+
y: 0
|
|
13083
|
+
},
|
|
13084
|
+
leftActionActivated: false,
|
|
13085
|
+
rightActionActivated: false
|
|
13086
|
+
}),
|
|
13087
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
13088
|
+
state = _React$useState4[0],
|
|
13089
|
+
setState = _React$useState4[1];
|
|
13090
|
+
propsRef.current = _objectSpread2(_objectSpread2({}, propsWithDefaultValue), {}, {
|
|
13091
|
+
canSwipeLeft: canSwipeLeft,
|
|
13092
|
+
canSwipeRight: canSwipeRight,
|
|
13093
|
+
unmountedRef: unmountedRef
|
|
13094
|
+
});
|
|
13095
|
+
var transform = [{
|
|
13096
|
+
translateX: state.pan.x.interpolate({
|
|
13097
|
+
inputRange: [canSwipeLeft ? -width : 0, canSwipeRight ? width : 0],
|
|
13098
|
+
outputRange: [canSwipeLeft ? -width + StyleSheet$1.hairlineWidth : 0, canSwipeRight ? width - StyleSheet$1.hairlineWidth : 0],
|
|
13099
|
+
extrapolate: 'clamp'
|
|
13100
|
+
})
|
|
13101
|
+
}];
|
|
13102
|
+
var panResponder = React.useRef(PanResponder.create({
|
|
13103
|
+
onMoveShouldSetPanResponder: function onMoveShouldSetPanResponder(_, gestureState) {
|
|
13104
|
+
return Math.abs(gestureState.dx) > swipeStartMinDistance;
|
|
13105
|
+
},
|
|
13106
|
+
onMoveShouldSetPanResponderCapture: function onMoveShouldSetPanResponderCapture(_, gestureState) {
|
|
13107
|
+
return Math.abs(gestureState.dx) > swipeStartMinDistance;
|
|
13108
|
+
},
|
|
13109
|
+
onPanResponderGrant: function onPanResponderGrant() {
|
|
13110
|
+
setState(function (prevState) {
|
|
13111
|
+
prevState.pan.setOffset(prevState.lastOffset);
|
|
13112
|
+
return prevState;
|
|
13113
|
+
});
|
|
13114
|
+
},
|
|
13115
|
+
onPanResponderMove: function onPanResponderMove(event, gestureState) {
|
|
13116
|
+
setState(function (prevState) {
|
|
13117
|
+
return hanleOnPanResponderMove(prevState, propsRef.current, event, gestureState);
|
|
13118
|
+
});
|
|
13119
|
+
},
|
|
13120
|
+
onPanResponderRelease: function onPanResponderRelease(event, gestureState) {
|
|
13121
|
+
setState(function (prevState) {
|
|
13122
|
+
return hanleOnPanResponderEnd(prevState, propsRef.current, event, gestureState);
|
|
13123
|
+
});
|
|
13124
|
+
},
|
|
13125
|
+
onPanResponderTerminationRequest: function onPanResponderTerminationRequest() {
|
|
13126
|
+
return false;
|
|
13127
|
+
},
|
|
13128
|
+
onPanResponderTerminate: function onPanResponderTerminate(event, gestureState) {
|
|
13129
|
+
setState(function (prevState) {
|
|
13130
|
+
return hanleOnPanResponderEnd(prevState, propsRef.current, event, gestureState);
|
|
13131
|
+
});
|
|
13132
|
+
}
|
|
13133
|
+
})).current;
|
|
13134
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$3, _extends$1({
|
|
13135
|
+
onLayout: function onLayout(event) {
|
|
13136
|
+
setWidth(event.nativeEvent.layout.width);
|
|
13137
|
+
},
|
|
13138
|
+
style: [{
|
|
13139
|
+
flexDirection: 'row'
|
|
13140
|
+
}, style]
|
|
13141
|
+
}, panResponder.panHandlers, rest), canSwipeRight && /*#__PURE__*/React.createElement(Animated.View, {
|
|
13142
|
+
style: [{
|
|
13143
|
+
transform: transform,
|
|
13144
|
+
marginLeft: -width,
|
|
13145
|
+
width: width
|
|
13146
|
+
}]
|
|
13147
|
+
}, leftContent), /*#__PURE__*/React.createElement(StyledContent, {
|
|
13148
|
+
style: {
|
|
13149
|
+
transform: transform
|
|
13150
|
+
}
|
|
13151
|
+
}, children), canSwipeLeft && /*#__PURE__*/React.createElement(Animated.View, {
|
|
13152
|
+
style: [{
|
|
13153
|
+
transform: transform,
|
|
13154
|
+
marginRight: -width,
|
|
13155
|
+
width: width
|
|
13156
|
+
}]
|
|
13157
|
+
}, rightContent));
|
|
13158
|
+
};
|
|
13159
|
+
|
|
12933
13160
|
var Circle = index$a(View)(function (_ref) {
|
|
12934
13161
|
var theme = _ref.theme;
|
|
12935
13162
|
return {
|
|
@@ -31258,4 +31485,4 @@ var index = Object.assign(RichTextEditor$1, {
|
|
|
31258
31485
|
Toolbar: EditorToolbar
|
|
31259
31486
|
});
|
|
31260
31487
|
|
|
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 };
|
|
31488
|
+
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 };
|