@hero-design/rn 8.128.3 → 8.130.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/CHANGELOG.md +18 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +445 -235
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +444 -234
- package/package.json +1 -1
- package/src/components/BottomSheet/StyledBottomSheet.tsx +1 -1
- package/src/components/Drawer/DragableDrawer/DragableDrawerContext.ts +32 -0
- package/src/components/Drawer/DragableDrawer/DragableScrollView.tsx +113 -0
- package/src/components/Drawer/DragableDrawer/index.tsx +51 -144
- package/src/components/Drawer/DragableDrawer/useDragablePan.ts +223 -0
- package/src/components/Drawer/StyledDrawer.tsx +1 -1
- package/src/components/Drawer/index.tsx +2 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +3 -3
- package/types/components/Drawer/DragableDrawer/DragableDrawerContext.d.ts +18 -0
- package/types/components/Drawer/DragableDrawer/DragableScrollView.d.ts +18 -0
- package/types/components/Drawer/DragableDrawer/useDragablePan.d.ts +23 -0
- package/types/components/Drawer/index.d.ts +1 -0
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/TextInput/index.d.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -8214,7 +8214,7 @@ var StyledText$4 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8214
8214
|
});
|
|
8215
8215
|
});
|
|
8216
8216
|
|
|
8217
|
-
var _excluded$
|
|
8217
|
+
var _excluded$P = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
8218
8218
|
/**
|
|
8219
8219
|
* @deprecated Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.
|
|
8220
8220
|
*/
|
|
@@ -8230,7 +8230,7 @@ var Text = function Text(_ref) {
|
|
|
8230
8230
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8231
8231
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8232
8232
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8233
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8233
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$P);
|
|
8234
8234
|
useDeprecation('Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.');
|
|
8235
8235
|
return /*#__PURE__*/React__namespace.default.createElement(StyledText$4, _extends$1({}, nativeProps, {
|
|
8236
8236
|
themeFontSize: fontSize,
|
|
@@ -8283,10 +8283,10 @@ var pickAccessibilityProps = function pickAccessibilityProps(props) {
|
|
|
8283
8283
|
}, {});
|
|
8284
8284
|
};
|
|
8285
8285
|
|
|
8286
|
-
var _excluded$
|
|
8286
|
+
var _excluded$O = ["children"];
|
|
8287
8287
|
var GradientText = function GradientText(_ref) {
|
|
8288
8288
|
var children = _ref.children,
|
|
8289
|
-
accessibilityProps = _objectWithoutProperties(_ref, _excluded$
|
|
8289
|
+
accessibilityProps = _objectWithoutProperties(_ref, _excluded$O);
|
|
8290
8290
|
var theme = useTheme();
|
|
8291
8291
|
var gradient = theme.colors.gradients.aiDiagonal;
|
|
8292
8292
|
var _useState = React.useState(null),
|
|
@@ -8342,7 +8342,7 @@ var GradientText = function GradientText(_ref) {
|
|
|
8342
8342
|
}, children));
|
|
8343
8343
|
};
|
|
8344
8344
|
|
|
8345
|
-
var _excluded$
|
|
8345
|
+
var _excluded$N = ["children", "fontWeight", "intent", "allowFontScaling", "fontStyle", "style", "testID"];
|
|
8346
8346
|
var Caption = function Caption(_ref) {
|
|
8347
8347
|
var children = _ref.children,
|
|
8348
8348
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -8355,7 +8355,7 @@ var Caption = function Caption(_ref) {
|
|
|
8355
8355
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8356
8356
|
style = _ref.style,
|
|
8357
8357
|
testID = _ref.testID,
|
|
8358
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8358
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$N);
|
|
8359
8359
|
var isAi = intent === 'ai';
|
|
8360
8360
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
8361
8361
|
themeFontWeight: fontWeight,
|
|
@@ -8387,7 +8387,7 @@ var StyledLabel$1 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8387
8387
|
};
|
|
8388
8388
|
});
|
|
8389
8389
|
|
|
8390
|
-
var _excluded$
|
|
8390
|
+
var _excluded$M = ["children", "intent", "allowFontScaling", "fontStyle", "fontWeight", "style", "testID"];
|
|
8391
8391
|
var Label = function Label(_ref) {
|
|
8392
8392
|
var children = _ref.children,
|
|
8393
8393
|
_ref$intent = _ref.intent,
|
|
@@ -8400,7 +8400,7 @@ var Label = function Label(_ref) {
|
|
|
8400
8400
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
8401
8401
|
style = _ref.style,
|
|
8402
8402
|
testID = _ref.testID,
|
|
8403
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8403
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
8404
8404
|
var isAi = intent === 'ai';
|
|
8405
8405
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
8406
8406
|
themeIntent: isAi ? 'body' : intent,
|
|
@@ -8431,7 +8431,7 @@ var StyledTitle$1 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8431
8431
|
};
|
|
8432
8432
|
});
|
|
8433
8433
|
|
|
8434
|
-
var _excluded$
|
|
8434
|
+
var _excluded$L = ["children", "intent", "allowFontScaling", "level", "typeface", "fontStyle", "style", "testID"];
|
|
8435
8435
|
var Title = function Title(_ref) {
|
|
8436
8436
|
var children = _ref.children,
|
|
8437
8437
|
_ref$intent = _ref.intent,
|
|
@@ -8446,7 +8446,7 @@ var Title = function Title(_ref) {
|
|
|
8446
8446
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8447
8447
|
style = _ref.style,
|
|
8448
8448
|
testID = _ref.testID,
|
|
8449
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8449
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
8450
8450
|
var isAi = intent === 'ai';
|
|
8451
8451
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
8452
8452
|
themeLevel: level,
|
|
@@ -8496,7 +8496,7 @@ var StyledBody$2 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8496
8496
|
};
|
|
8497
8497
|
});
|
|
8498
8498
|
|
|
8499
|
-
var _excluded$
|
|
8499
|
+
var _excluded$K = ["children", "intent", "allowFontScaling", "typeface", "variant", "fontStyle", "style", "testID"];
|
|
8500
8500
|
var Body = function Body(_ref) {
|
|
8501
8501
|
var children = _ref.children,
|
|
8502
8502
|
_ref$intent = _ref.intent,
|
|
@@ -8511,7 +8511,7 @@ var Body = function Body(_ref) {
|
|
|
8511
8511
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8512
8512
|
style = _ref.style,
|
|
8513
8513
|
testID = _ref.testID,
|
|
8514
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8514
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
8515
8515
|
var isAi = intent === 'ai';
|
|
8516
8516
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
8517
8517
|
themeTypeface: typeface,
|
|
@@ -8537,7 +8537,7 @@ var Typography = {
|
|
|
8537
8537
|
};
|
|
8538
8538
|
|
|
8539
8539
|
// 🔴 DO NOT EDIT — This file is generated automatically.
|
|
8540
|
-
var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', 'bookmark-checked', 'bookmark', 'box-check', 'box', 'bpay', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'dot', 'double-buildings', 'edit-template', 'envelope', 'exclude', 'expand-content', 'expense', 'explore_nearby', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'global-pound', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'hero-points', 'home', 'image', 'import', 'incident-siren', 'instapay-daily', 'instapay-now', 'instapay', 'list', 'loading-2', 'loading', 'location-on', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'near-me', 'node', 'open-folder', 'paperclip-vertical', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-arrow', 'play-circle', 'pound-coin-shine', 'pound-sign', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rocket-launch', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'search', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'swipe-right', 'switch', 'tag', 'target', 'teams', 'thumb-down', 'thumb-up', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'academic-hat-outlined', 'accommodation-outlined', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'afternoon-outlined', 'ai-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'application-outlined', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'automotive-outlined', 'bakery-outlined', 'bar-outlined', 'beauty-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-checked-outlined', 'bookmark-outlined', 'box-1-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calculator-outlined', 'calendar-dates-outlined', 'calendar-edit-outlined', 'calendar-star-outlined', 'call-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-outlined', 'cashback-outlined', 'charging-station-outlined', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-in-outlined', 'clock-out-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cultural-site-outlined', 'cup-outlined', 'dentistry-outlined', 'diamond-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-box-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-box-outlined', 'download-outlined', 'edit-template-outlined', 'edit-user-outlined', 'electronics-outlined', 'email-outlined', 'end-break-outlined', 'enter-arrow', 'entertainment-outlined', 'envelope-outlined', 'evening-outlined', 'expense-approval-outlined', 'expense-outlined', 'explore-outlined', 'extension-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'fastfood-outlined', 'feed-outlined', 'feedbacks-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-certified-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-pound-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'fitness-outlined', 'folder-outlined', 'folder-upload-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'grocery-outlined', 'hand-holding-user-outlined', 'handshake-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'history-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'job-search-outlined', 'leave-approval-outlined', 'lighting-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'local_mall_outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'map-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'morning-outlined', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'park-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'pound-box-outlined', 'pound-card-outlined', 'pound-coin-shine-outlined', 'pound-credit-card-outlined', 'print-outlined', 'profile-2user-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 'question-mark', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'restaurant-outlined', 'resume-outlined', 'return-arrow', 'rocket-launch-outlined', 'rostering-outlined', 'safety-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined-2', 'share-outlined', 'shield-check-outlined', 'shop-outlined', 'shopping_basket_outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'smart-match-outlined', 'sparkle-2-outlined', 'sparkle-outlined', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'start-break-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'thumb-down-outlined', 'thumb-up-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'transportation-outlined', 'trash-bin-outlined', 'umbrela-outlined', 'unavailability-outlined', 'unavailable', 'underline', 'union-outlined', 'unlock-outlined', 'upload-outlined', 'user-add-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-out-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'volunteer-outlined', 'wallet-outlined', 'wellness-outlined'];
|
|
8540
|
+
var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', 'bookmark-checked', 'bookmark', 'box-check', 'box', 'bpay', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'dot', 'double-buildings', 'edit-template', 'envelope', 'exclude', 'expand-content', 'expense', 'explore_nearby', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'global-pound', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'hero-points', 'home', 'image', 'import', 'incident-siren', 'instapay-daily', 'instapay-now', 'instapay', 'list', 'loading-2', 'loading', 'location-on', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'near-me', 'node', 'open-folder', 'paperclip-vertical', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-arrow', 'play-circle', 'pound-coin-shine', 'pound-sign', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rocket-launch', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'search', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'swipe-right', 'switch', 'tag', 'target', 'teams', 'thumb-down', 'thumb-up', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'academic-hat-outlined', 'accommodation-outlined', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'afternoon-outlined', 'ai-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'application-outlined', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'automotive-outlined', 'bakery-outlined', 'bar-outlined', 'beauty-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-checked-outlined', 'bookmark-outlined', 'box-1-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calculator-outlined', 'calendar-dates-outlined', 'calendar-edit-outlined', 'calendar-star-outlined', 'call-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-outlined', 'cashback-outlined', 'charging-station-outlined', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-in-outlined', 'clock-out-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cultural-site-outlined', 'cup-outlined', 'dentistry-outlined', 'diamond-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-box-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-box-outlined', 'download-outlined', 'edit-template-outlined', 'edit-user-outlined', 'electronics-outlined', 'email-outlined', 'end-break-outlined', 'enter-arrow', 'entertainment-outlined', 'envelope-outlined', 'evening-outlined', 'expense-approval-outlined', 'expense-outlined', 'explore-outlined', 'extension-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'fastfood-outlined', 'feed-outlined', 'feedbacks-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-certified-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-pound-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'fitness-outlined', 'folder-outlined', 'folder-upload-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'grocery-outlined', 'hand-holding-user-outlined', 'handshake-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'history-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'job-search-outlined', 'leave-approval-outlined', 'lighting-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'local_mall_outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'map-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'mic-outlined', 'mic-slash-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'morning-outlined', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'park-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'pound-box-outlined', 'pound-card-outlined', 'pound-coin-shine-outlined', 'pound-credit-card-outlined', 'print-outlined', 'profile-2user-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 'question-mark', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'restaurant-outlined', 'resume-outlined', 'return-arrow', 'rocket-launch-outlined', 'rostering-outlined', 'safety-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined-2', 'share-outlined', 'shield-check-outlined', 'shop-outlined', 'shopping_basket_outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'smart-match-outlined', 'sparkle-2-outlined', 'sparkle-outlined', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'start-break-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'thumb-down-outlined', 'thumb-up-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'transportation-outlined', 'trash-bin-outlined', 'umbrela-outlined', 'unavailability-outlined', 'unavailable', 'underline', 'union-outlined', 'unlock-outlined', 'upload-outlined', 'user-add-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-out-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'volunteer-outlined', 'wallet-outlined', 'wellness-outlined'];
|
|
8541
8541
|
|
|
8542
8542
|
var activate = 59000;
|
|
8543
8543
|
var adjustment = 59003;
|
|
@@ -8619,18 +8619,18 @@ var cancel = 59251;
|
|
|
8619
8619
|
var checkmark = 59257;
|
|
8620
8620
|
var italic = 59358;
|
|
8621
8621
|
var local_mall_outlined = 59366;
|
|
8622
|
-
var number$2 =
|
|
8623
|
-
var percentage =
|
|
8624
|
-
var redeem =
|
|
8625
|
-
var refresh =
|
|
8626
|
-
var remove$1 =
|
|
8627
|
-
var restart =
|
|
8628
|
-
var shopping_basket_outlined =
|
|
8629
|
-
var strikethrough =
|
|
8630
|
-
var sync =
|
|
8631
|
-
var transfer =
|
|
8632
|
-
var unavailable =
|
|
8633
|
-
var underline =
|
|
8622
|
+
var number$2 = 59391;
|
|
8623
|
+
var percentage = 59397;
|
|
8624
|
+
var redeem = 59413;
|
|
8625
|
+
var refresh = 59414;
|
|
8626
|
+
var remove$1 = 59415;
|
|
8627
|
+
var restart = 59417;
|
|
8628
|
+
var shopping_basket_outlined = 59435;
|
|
8629
|
+
var strikethrough = 59451;
|
|
8630
|
+
var sync = 59457;
|
|
8631
|
+
var transfer = 59467;
|
|
8632
|
+
var unavailable = 59472;
|
|
8633
|
+
var underline = 59473;
|
|
8634
8634
|
var glyphMap = {
|
|
8635
8635
|
activate: activate,
|
|
8636
8636
|
"add-emoji": 59001,
|
|
@@ -9011,113 +9011,115 @@ var glyphMap = {
|
|
|
9011
9011
|
"menu-expand": 59376,
|
|
9012
9012
|
"menu-fold-outlined": 59377,
|
|
9013
9013
|
"menu-unfold-outlined": 59378,
|
|
9014
|
-
"
|
|
9015
|
-
"
|
|
9016
|
-
"
|
|
9017
|
-
"
|
|
9018
|
-
"
|
|
9019
|
-
"
|
|
9020
|
-
"
|
|
9021
|
-
"
|
|
9022
|
-
"
|
|
9023
|
-
"
|
|
9014
|
+
"mic-outlined": 59379,
|
|
9015
|
+
"mic-slash-outlined": 59380,
|
|
9016
|
+
"moneybag-outlined": 59381,
|
|
9017
|
+
"moon-outlined": 59382,
|
|
9018
|
+
"more-horizontal": 59383,
|
|
9019
|
+
"more-vertical": 59384,
|
|
9020
|
+
"morning-outlined": 59385,
|
|
9021
|
+
"multiple-folders-outlined": 59386,
|
|
9022
|
+
"multiple-users-outlined": 59387,
|
|
9023
|
+
"near-me-outlined": 59388,
|
|
9024
|
+
"node-outlined": 59389,
|
|
9025
|
+
"number-points": 59390,
|
|
9024
9026
|
number: number$2,
|
|
9025
|
-
"overview-outlined":
|
|
9026
|
-
"park-outlined":
|
|
9027
|
-
"payment-summary-outlined":
|
|
9028
|
-
"payslip-outlined":
|
|
9029
|
-
"pencil-outlined":
|
|
9027
|
+
"overview-outlined": 59392,
|
|
9028
|
+
"park-outlined": 59393,
|
|
9029
|
+
"payment-summary-outlined": 59394,
|
|
9030
|
+
"payslip-outlined": 59395,
|
|
9031
|
+
"pencil-outlined": 59396,
|
|
9030
9032
|
percentage: percentage,
|
|
9031
|
-
"phone-outlined":
|
|
9032
|
-
"piggy-bank-outlined":
|
|
9033
|
-
"plane-outlined":
|
|
9034
|
-
"play-circle-outlined":
|
|
9035
|
-
"pound-box-outlined":
|
|
9036
|
-
"pound-card-outlined":
|
|
9037
|
-
"pound-coin-shine-outlined":
|
|
9038
|
-
"pound-credit-card-outlined":
|
|
9039
|
-
"print-outlined":
|
|
9040
|
-
"profile-2user-outlined":
|
|
9041
|
-
"propane-tank-outlined":
|
|
9042
|
-
"qr-code-outlined":
|
|
9043
|
-
"qualification-outlined":
|
|
9044
|
-
"question-mark":
|
|
9045
|
-
"re-assign":
|
|
9033
|
+
"phone-outlined": 59398,
|
|
9034
|
+
"piggy-bank-outlined": 59399,
|
|
9035
|
+
"plane-outlined": 59400,
|
|
9036
|
+
"play-circle-outlined": 59401,
|
|
9037
|
+
"pound-box-outlined": 59402,
|
|
9038
|
+
"pound-card-outlined": 59403,
|
|
9039
|
+
"pound-coin-shine-outlined": 59404,
|
|
9040
|
+
"pound-credit-card-outlined": 59405,
|
|
9041
|
+
"print-outlined": 59406,
|
|
9042
|
+
"profile-2user-outlined": 59407,
|
|
9043
|
+
"propane-tank-outlined": 59408,
|
|
9044
|
+
"qr-code-outlined": 59409,
|
|
9045
|
+
"qualification-outlined": 59410,
|
|
9046
|
+
"question-mark": 59411,
|
|
9047
|
+
"re-assign": 59412,
|
|
9046
9048
|
redeem: redeem,
|
|
9047
9049
|
refresh: refresh,
|
|
9048
9050
|
remove: remove$1,
|
|
9049
|
-
"reply-outlined":
|
|
9051
|
+
"reply-outlined": 59416,
|
|
9050
9052
|
restart: restart,
|
|
9051
|
-
"restaurant-outlined":
|
|
9052
|
-
"resume-outlined":
|
|
9053
|
-
"return-arrow":
|
|
9054
|
-
"rocket-launch-outlined":
|
|
9055
|
-
"rostering-outlined":
|
|
9056
|
-
"safety-outlined":
|
|
9057
|
-
"save-outlined":
|
|
9058
|
-
"schedule-outlined":
|
|
9059
|
-
"search-outlined":
|
|
9060
|
-
"search-secured-outlined":
|
|
9061
|
-
"send-outlined":
|
|
9062
|
-
"share-1":
|
|
9063
|
-
"share-2":
|
|
9064
|
-
"share-outlined-2":
|
|
9065
|
-
"share-outlined":
|
|
9066
|
-
"shield-check-outlined":
|
|
9067
|
-
"shop-outlined":
|
|
9053
|
+
"restaurant-outlined": 59418,
|
|
9054
|
+
"resume-outlined": 59419,
|
|
9055
|
+
"return-arrow": 59420,
|
|
9056
|
+
"rocket-launch-outlined": 59421,
|
|
9057
|
+
"rostering-outlined": 59422,
|
|
9058
|
+
"safety-outlined": 59423,
|
|
9059
|
+
"save-outlined": 59424,
|
|
9060
|
+
"schedule-outlined": 59425,
|
|
9061
|
+
"search-outlined": 59426,
|
|
9062
|
+
"search-secured-outlined": 59427,
|
|
9063
|
+
"send-outlined": 59428,
|
|
9064
|
+
"share-1": 59429,
|
|
9065
|
+
"share-2": 59430,
|
|
9066
|
+
"share-outlined-2": 59431,
|
|
9067
|
+
"share-outlined": 59432,
|
|
9068
|
+
"shield-check-outlined": 59433,
|
|
9069
|
+
"shop-outlined": 59434,
|
|
9068
9070
|
shopping_basket_outlined: shopping_basket_outlined,
|
|
9069
|
-
"show-chart-outlined":
|
|
9070
|
-
"single-down-arrow":
|
|
9071
|
-
"single-left-arrow":
|
|
9072
|
-
"single-right-arrow":
|
|
9073
|
-
"single-up-arrow":
|
|
9074
|
-
"smart-match-outlined":
|
|
9075
|
-
"sparkle-2-outlined":
|
|
9076
|
-
"sparkle-outlined":
|
|
9077
|
-
"speaker-active-outlined":
|
|
9078
|
-
"speaker-outlined":
|
|
9079
|
-
"star-circle-outlined":
|
|
9080
|
-
"star-outlined":
|
|
9081
|
-
"start-break-outlined":
|
|
9082
|
-
"stash-outlined":
|
|
9083
|
-
"stopwatch-outlined":
|
|
9071
|
+
"show-chart-outlined": 59436,
|
|
9072
|
+
"single-down-arrow": 59437,
|
|
9073
|
+
"single-left-arrow": 59438,
|
|
9074
|
+
"single-right-arrow": 59439,
|
|
9075
|
+
"single-up-arrow": 59440,
|
|
9076
|
+
"smart-match-outlined": 59441,
|
|
9077
|
+
"sparkle-2-outlined": 59442,
|
|
9078
|
+
"sparkle-outlined": 59443,
|
|
9079
|
+
"speaker-active-outlined": 59444,
|
|
9080
|
+
"speaker-outlined": 59445,
|
|
9081
|
+
"star-circle-outlined": 59446,
|
|
9082
|
+
"star-outlined": 59447,
|
|
9083
|
+
"start-break-outlined": 59448,
|
|
9084
|
+
"stash-outlined": 59449,
|
|
9085
|
+
"stopwatch-outlined": 59450,
|
|
9084
9086
|
strikethrough: strikethrough,
|
|
9085
|
-
"styler-outlined":
|
|
9086
|
-
"suitcase-clock-outlined":
|
|
9087
|
-
"suitcase-outlined":
|
|
9088
|
-
"survey-outlined":
|
|
9089
|
-
"switch-outlined":
|
|
9087
|
+
"styler-outlined": 59452,
|
|
9088
|
+
"suitcase-clock-outlined": 59453,
|
|
9089
|
+
"suitcase-outlined": 59454,
|
|
9090
|
+
"survey-outlined": 59455,
|
|
9091
|
+
"switch-outlined": 59456,
|
|
9090
9092
|
sync: sync,
|
|
9091
|
-
"tag-outlined":
|
|
9092
|
-
"target-outlined":
|
|
9093
|
-
"tennis-outlined":
|
|
9094
|
-
"thumb-down-outlined":
|
|
9095
|
-
"thumb-up-outlined":
|
|
9096
|
-
"ticket-outlined":
|
|
9097
|
-
"timesheet-outlined":
|
|
9098
|
-
"timesheets-outlined":
|
|
9099
|
-
"today-outlined":
|
|
9093
|
+
"tag-outlined": 59458,
|
|
9094
|
+
"target-outlined": 59459,
|
|
9095
|
+
"tennis-outlined": 59460,
|
|
9096
|
+
"thumb-down-outlined": 59461,
|
|
9097
|
+
"thumb-up-outlined": 59462,
|
|
9098
|
+
"ticket-outlined": 59463,
|
|
9099
|
+
"timesheet-outlined": 59464,
|
|
9100
|
+
"timesheets-outlined": 59465,
|
|
9101
|
+
"today-outlined": 59466,
|
|
9100
9102
|
transfer: transfer,
|
|
9101
|
-
"transportation-outlined":
|
|
9102
|
-
"trash-bin-outlined":
|
|
9103
|
-
"umbrela-outlined":
|
|
9104
|
-
"unavailability-outlined":
|
|
9103
|
+
"transportation-outlined": 59468,
|
|
9104
|
+
"trash-bin-outlined": 59469,
|
|
9105
|
+
"umbrela-outlined": 59470,
|
|
9106
|
+
"unavailability-outlined": 59471,
|
|
9105
9107
|
unavailable: unavailable,
|
|
9106
9108
|
underline: underline,
|
|
9107
|
-
"union-outlined":
|
|
9108
|
-
"unlock-outlined":
|
|
9109
|
-
"upload-outlined":
|
|
9110
|
-
"user-add-outlined":
|
|
9111
|
-
"user-circle-outlined":
|
|
9112
|
-
"user-gear-outlined":
|
|
9113
|
-
"user-out-outlined":
|
|
9114
|
-
"user-outlined":
|
|
9115
|
-
"user-rectangle-outlined":
|
|
9116
|
-
"video-1-outlined":
|
|
9117
|
-
"video-2-outlined":
|
|
9118
|
-
"volunteer-outlined":
|
|
9119
|
-
"wallet-outlined":
|
|
9120
|
-
"wellness-outlined":
|
|
9109
|
+
"union-outlined": 59474,
|
|
9110
|
+
"unlock-outlined": 59475,
|
|
9111
|
+
"upload-outlined": 59476,
|
|
9112
|
+
"user-add-outlined": 59477,
|
|
9113
|
+
"user-circle-outlined": 59478,
|
|
9114
|
+
"user-gear-outlined": 59479,
|
|
9115
|
+
"user-out-outlined": 59480,
|
|
9116
|
+
"user-outlined": 59481,
|
|
9117
|
+
"user-rectangle-outlined": 59482,
|
|
9118
|
+
"video-1-outlined": 59483,
|
|
9119
|
+
"video-2-outlined": 59484,
|
|
9120
|
+
"volunteer-outlined": 59485,
|
|
9121
|
+
"wallet-outlined": 59486,
|
|
9122
|
+
"wellness-outlined": 59487
|
|
9121
9123
|
};
|
|
9122
9124
|
|
|
9123
9125
|
var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -9175,22 +9177,22 @@ var SpinWrapper = function SpinWrapper(_ref) {
|
|
|
9175
9177
|
}, children);
|
|
9176
9178
|
};
|
|
9177
9179
|
|
|
9178
|
-
var _excluded$
|
|
9180
|
+
var _excluded$J = ["style"];
|
|
9179
9181
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
9180
9182
|
var style = _ref.style,
|
|
9181
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
9183
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
9182
9184
|
return /*#__PURE__*/React__namespace.default.createElement(SpinWrapper, {
|
|
9183
9185
|
style: style
|
|
9184
9186
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledHeroIcon, otherProps));
|
|
9185
9187
|
};
|
|
9186
9188
|
|
|
9187
|
-
var _excluded$
|
|
9189
|
+
var _excluded$I = ["name", "themeSize", "testID", "style"];
|
|
9188
9190
|
var GradientIcon = function GradientIcon(_ref) {
|
|
9189
9191
|
var name = _ref.name,
|
|
9190
9192
|
themeSize = _ref.themeSize,
|
|
9191
9193
|
testID = _ref.testID,
|
|
9192
9194
|
style = _ref.style,
|
|
9193
|
-
accessibilityProps = _objectWithoutProperties(_ref, _excluded$
|
|
9195
|
+
accessibilityProps = _objectWithoutProperties(_ref, _excluded$I);
|
|
9194
9196
|
var theme = useTheme();
|
|
9195
9197
|
var gradient = theme.colors.gradients.aiDiagonal;
|
|
9196
9198
|
var size = theme.__hd__.icon.sizes[themeSize];
|
|
@@ -9318,7 +9320,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
9318
9320
|
}, content));
|
|
9319
9321
|
};
|
|
9320
9322
|
|
|
9321
|
-
var _excluded$
|
|
9323
|
+
var _excluded$H = ["key"];
|
|
9322
9324
|
var Accordion = function Accordion(_ref) {
|
|
9323
9325
|
var items = _ref.items,
|
|
9324
9326
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -9341,7 +9343,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
9341
9343
|
accessible: accessible
|
|
9342
9344
|
}, items.map(function (_ref2, index) {
|
|
9343
9345
|
var key = _ref2.key,
|
|
9344
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
9346
|
+
props = _objectWithoutProperties(_ref2, _excluded$H);
|
|
9345
9347
|
var open = _activeItemKey === key;
|
|
9346
9348
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
9347
9349
|
key: key
|
|
@@ -10177,7 +10179,7 @@ var borderWidths = {
|
|
|
10177
10179
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
10178
10180
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
10179
10181
|
|
|
10180
|
-
var _excluded$
|
|
10182
|
+
var _excluded$G = ["theme"];
|
|
10181
10183
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
10182
10184
|
var propConfig = config[key];
|
|
10183
10185
|
var propValue = props[key];
|
|
@@ -10204,18 +10206,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
10204
10206
|
var configKeys = Object.keys(config);
|
|
10205
10207
|
var StyledBox = index$c(reactNative.View)(function (_ref5) {
|
|
10206
10208
|
var theme = _ref5.theme,
|
|
10207
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
10209
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$G);
|
|
10208
10210
|
var styleProps = pick(configKeys, otherProps);
|
|
10209
10211
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
10210
10212
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
10211
10213
|
});
|
|
10212
10214
|
|
|
10213
|
-
var _excluded$
|
|
10215
|
+
var _excluded$F = ["children", "style", "testID"];
|
|
10214
10216
|
var Box = function Box(_ref) {
|
|
10215
10217
|
var children = _ref.children,
|
|
10216
10218
|
style = _ref.style,
|
|
10217
10219
|
testID = _ref.testID,
|
|
10218
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
10220
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$F);
|
|
10219
10221
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
10220
10222
|
style: style,
|
|
10221
10223
|
testID: testID
|
|
@@ -10486,7 +10488,7 @@ var StyledIcon$4 = index$c(Icon)(function (_ref6) {
|
|
|
10486
10488
|
};
|
|
10487
10489
|
});
|
|
10488
10490
|
|
|
10489
|
-
var _excluded$
|
|
10491
|
+
var _excluded$E = ["children", "visible", "intent", "style", "testID"];
|
|
10490
10492
|
var Status$1 = function Status(_ref) {
|
|
10491
10493
|
var children = _ref.children,
|
|
10492
10494
|
_ref$visible = _ref.visible,
|
|
@@ -10495,7 +10497,7 @@ var Status$1 = function Status(_ref) {
|
|
|
10495
10497
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
10496
10498
|
style = _ref.style,
|
|
10497
10499
|
testID = _ref.testID,
|
|
10498
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10500
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$E);
|
|
10499
10501
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
10500
10502
|
opacity = _React$useRef.current;
|
|
10501
10503
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -10531,7 +10533,7 @@ var Status$1 = function Status(_ref) {
|
|
|
10531
10533
|
|
|
10532
10534
|
var DEFAULT_MAX_NUMBER = 99;
|
|
10533
10535
|
|
|
10534
|
-
var _excluded$
|
|
10536
|
+
var _excluded$D = ["children", "visible", "style", "max", "testID", "content"];
|
|
10535
10537
|
var Status = function Status(_ref) {
|
|
10536
10538
|
var children = _ref.children,
|
|
10537
10539
|
_ref$visible = _ref.visible,
|
|
@@ -10541,7 +10543,7 @@ var Status = function Status(_ref) {
|
|
|
10541
10543
|
max = _ref$max === void 0 ? DEFAULT_MAX_NUMBER : _ref$max,
|
|
10542
10544
|
testID = _ref.testID,
|
|
10543
10545
|
originalContent = _ref.content,
|
|
10544
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10546
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
10545
10547
|
var content = React.useMemo(function () {
|
|
10546
10548
|
return originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
10547
10549
|
}, [originalContent, max]);
|
|
@@ -10553,7 +10555,7 @@ var Status = function Status(_ref) {
|
|
|
10553
10555
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCountText, null, content)));
|
|
10554
10556
|
};
|
|
10555
10557
|
|
|
10556
|
-
var _excluded$
|
|
10558
|
+
var _excluded$C = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
10557
10559
|
var getPaddingState = function getPaddingState(content) {
|
|
10558
10560
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
10559
10561
|
};
|
|
@@ -10572,7 +10574,7 @@ var Badge = function Badge(_ref) {
|
|
|
10572
10574
|
_ref$variant = _ref.variant,
|
|
10573
10575
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
10574
10576
|
icon = _ref.icon,
|
|
10575
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10577
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
10576
10578
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
10577
10579
|
opacity = _React$useRef.current;
|
|
10578
10580
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -10690,7 +10692,7 @@ var StyledBottomBarText = index$c(Typography.Label)(function (_ref4) {
|
|
|
10690
10692
|
};
|
|
10691
10693
|
});
|
|
10692
10694
|
|
|
10693
|
-
var _excluded$
|
|
10695
|
+
var _excluded$B = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
10694
10696
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
10695
10697
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
10696
10698
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -10701,7 +10703,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
10701
10703
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
10702
10704
|
selectedTabKey = _ref.selectedTabKey,
|
|
10703
10705
|
tabs = _ref.tabs,
|
|
10704
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10706
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
10705
10707
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
10706
10708
|
/**
|
|
10707
10709
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -10793,13 +10795,13 @@ var StyledDivider = index$c(reactNative.View)(function (_ref) {
|
|
|
10793
10795
|
}, horizontalMargin), verticalMargin);
|
|
10794
10796
|
});
|
|
10795
10797
|
|
|
10796
|
-
var _excluded$
|
|
10798
|
+
var _excluded$A = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10797
10799
|
var Divider = function Divider(_ref) {
|
|
10798
10800
|
var marginHorizontal = _ref.marginHorizontal,
|
|
10799
10801
|
marginVertical = _ref.marginVertical,
|
|
10800
10802
|
style = _ref.style,
|
|
10801
10803
|
testID = _ref.testID,
|
|
10802
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10804
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
10803
10805
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10804
10806
|
themeMarginHorizontal: marginHorizontal,
|
|
10805
10807
|
themeMarginVertical: marginVertical,
|
|
@@ -10809,7 +10811,7 @@ var Divider = function Divider(_ref) {
|
|
|
10809
10811
|
};
|
|
10810
10812
|
|
|
10811
10813
|
var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
10812
|
-
var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(
|
|
10814
|
+
var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNativeSafeAreaContext.SafeAreaView);
|
|
10813
10815
|
var StyledWrapper$b = index$c(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
10814
10816
|
flexDirection: 'column-reverse'
|
|
10815
10817
|
}));
|
|
@@ -10901,7 +10903,7 @@ var Footer$1 = function Footer(_ref) {
|
|
|
10901
10903
|
};
|
|
10902
10904
|
|
|
10903
10905
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
10904
|
-
var noop$
|
|
10906
|
+
var noop$3 = function noop() {};
|
|
10905
10907
|
|
|
10906
10908
|
var StyledLoadingIndicatorWrapper = index$c(reactNative.View)({
|
|
10907
10909
|
flexDirection: 'row',
|
|
@@ -10930,7 +10932,7 @@ var StyledLoadingDot = index$c(reactNative.View)(function (_ref) {
|
|
|
10930
10932
|
}, themeStyling());
|
|
10931
10933
|
});
|
|
10932
10934
|
|
|
10933
|
-
var _excluded$
|
|
10935
|
+
var _excluded$z = ["count", "size", "testID", "themeVariant"];
|
|
10934
10936
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
10935
10937
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
10936
10938
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -10962,7 +10964,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
10962
10964
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
10963
10965
|
testID = _ref2.testID,
|
|
10964
10966
|
themeVariant = _ref2.themeVariant,
|
|
10965
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
10967
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$z);
|
|
10966
10968
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
10967
10969
|
React.useEffect(function () {
|
|
10968
10970
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -11566,7 +11568,7 @@ var Header = function Header(_ref) {
|
|
|
11566
11568
|
var content = _ref.content,
|
|
11567
11569
|
showDivider = _ref.showDivider,
|
|
11568
11570
|
_ref$onRequestClose = _ref.onRequestClose,
|
|
11569
|
-
onRequestClose = _ref$onRequestClose === void 0 ? noop$
|
|
11571
|
+
onRequestClose = _ref$onRequestClose === void 0 ? noop$3 : _ref$onRequestClose,
|
|
11570
11572
|
showCloseButton = _ref.showCloseButton,
|
|
11571
11573
|
_ref$variant = _ref.variant,
|
|
11572
11574
|
variant = _ref$variant === void 0 ? 'fixed' : _ref$variant;
|
|
@@ -11594,11 +11596,11 @@ var Header = function Header(_ref) {
|
|
|
11594
11596
|
}))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
11595
11597
|
};
|
|
11596
11598
|
|
|
11597
|
-
var _excluded$
|
|
11599
|
+
var _excluded$y = ["scrollEventThrottle"];
|
|
11598
11600
|
var BottomSheetScrollView = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11599
11601
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
11600
11602
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
11601
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11603
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
11602
11604
|
var _useContext = React.useContext(BottomSheetContext),
|
|
11603
11605
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
11604
11606
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -14212,7 +14214,7 @@ var setStartOrEndDate = function setStartOrEndDate(_ref2) {
|
|
|
14212
14214
|
};
|
|
14213
14215
|
};
|
|
14214
14216
|
var shouldUseMonthPicker = function shouldUseMonthPicker(onMonthChange) {
|
|
14215
|
-
return onMonthChange !== noop$
|
|
14217
|
+
return onMonthChange !== noop$3;
|
|
14216
14218
|
};
|
|
14217
14219
|
var getCalendarDate = function getCalendarDate(_ref3) {
|
|
14218
14220
|
var visibleDate = _ref3.visibleDate,
|
|
@@ -14348,20 +14350,20 @@ var CalendarRange = function CalendarRange(_ref) {
|
|
|
14348
14350
|
visibleDate = _ref.visibleDate,
|
|
14349
14351
|
onChange = _ref.onChange,
|
|
14350
14352
|
_ref$onPreviousPress = _ref.onPreviousPress,
|
|
14351
|
-
onPreviousPress = _ref$onPreviousPress === void 0 ? noop$
|
|
14353
|
+
onPreviousPress = _ref$onPreviousPress === void 0 ? noop$3 : _ref$onPreviousPress,
|
|
14352
14354
|
_ref$onNextPress = _ref.onNextPress,
|
|
14353
|
-
onNextPress = _ref$onNextPress === void 0 ? noop$
|
|
14355
|
+
onNextPress = _ref$onNextPress === void 0 ? noop$3 : _ref$onNextPress,
|
|
14354
14356
|
_ref$onTitlePress = _ref.onTitlePress,
|
|
14355
|
-
onTitlePress = _ref$onTitlePress === void 0 ? noop$
|
|
14357
|
+
onTitlePress = _ref$onTitlePress === void 0 ? noop$3 : _ref$onTitlePress,
|
|
14356
14358
|
minDate = _ref.minDate,
|
|
14357
14359
|
maxDate = _ref.maxDate,
|
|
14358
14360
|
_ref$markedDates = _ref.markedDates,
|
|
14359
14361
|
markedDates = _ref$markedDates === void 0 ? [] : _ref$markedDates,
|
|
14360
14362
|
testID = _ref.testID,
|
|
14361
14363
|
_ref$onMonthChange = _ref.onMonthChange,
|
|
14362
|
-
onMonthChange = _ref$onMonthChange === void 0 ? noop$
|
|
14364
|
+
onMonthChange = _ref$onMonthChange === void 0 ? noop$3 : _ref$onMonthChange,
|
|
14363
14365
|
_ref$onToggleMonthPic = _ref.onToggleMonthPicker,
|
|
14364
|
-
onToggleMonthPicker = _ref$onToggleMonthPic === void 0 ? noop$
|
|
14366
|
+
onToggleMonthPicker = _ref$onToggleMonthPic === void 0 ? noop$3 : _ref$onToggleMonthPic,
|
|
14365
14367
|
monthPickerConfirmLabel = _ref.monthPickerConfirmLabel,
|
|
14366
14368
|
monthPickerCancelLabel = _ref.monthPickerCancelLabel;
|
|
14367
14369
|
var theme = useTheme();
|
|
@@ -14529,20 +14531,20 @@ var Calendar = function Calendar(_ref) {
|
|
|
14529
14531
|
visibleDate = _ref.visibleDate,
|
|
14530
14532
|
onChange = _ref.onChange,
|
|
14531
14533
|
_ref$onPreviousPress = _ref.onPreviousPress,
|
|
14532
|
-
onPreviousPress = _ref$onPreviousPress === void 0 ? noop$
|
|
14534
|
+
onPreviousPress = _ref$onPreviousPress === void 0 ? noop$3 : _ref$onPreviousPress,
|
|
14533
14535
|
_ref$onNextPress = _ref.onNextPress,
|
|
14534
|
-
onNextPress = _ref$onNextPress === void 0 ? noop$
|
|
14536
|
+
onNextPress = _ref$onNextPress === void 0 ? noop$3 : _ref$onNextPress,
|
|
14535
14537
|
_ref$onTitlePress = _ref.onTitlePress,
|
|
14536
|
-
onTitlePress = _ref$onTitlePress === void 0 ? noop$
|
|
14538
|
+
onTitlePress = _ref$onTitlePress === void 0 ? noop$3 : _ref$onTitlePress,
|
|
14537
14539
|
minDate = _ref.minDate,
|
|
14538
14540
|
maxDate = _ref.maxDate,
|
|
14539
14541
|
_ref$markedDates = _ref.markedDates,
|
|
14540
14542
|
markedDates = _ref$markedDates === void 0 ? [] : _ref$markedDates,
|
|
14541
14543
|
testID = _ref.testID,
|
|
14542
14544
|
_ref$onMonthChange = _ref.onMonthChange,
|
|
14543
|
-
onMonthChange = _ref$onMonthChange === void 0 ? noop$
|
|
14545
|
+
onMonthChange = _ref$onMonthChange === void 0 ? noop$3 : _ref$onMonthChange,
|
|
14544
14546
|
_ref$onToggleMonthPic = _ref.onToggleMonthPicker,
|
|
14545
|
-
onToggleMonthPicker = _ref$onToggleMonthPic === void 0 ? noop$
|
|
14547
|
+
onToggleMonthPicker = _ref$onToggleMonthPic === void 0 ? noop$3 : _ref$onToggleMonthPic,
|
|
14546
14548
|
monthPickerConfirmLabel = _ref.monthPickerConfirmLabel,
|
|
14547
14549
|
monthPickerCancelLabel = _ref.monthPickerCancelLabel;
|
|
14548
14550
|
var theme = useTheme();
|
|
@@ -14720,12 +14722,12 @@ var Indicator = index$c(reactNative.View)(function (_ref3) {
|
|
|
14720
14722
|
};
|
|
14721
14723
|
});
|
|
14722
14724
|
|
|
14723
|
-
var _excluded$
|
|
14725
|
+
var _excluded$x = ["intent", "children"];
|
|
14724
14726
|
var DataCard = function DataCard(_ref) {
|
|
14725
14727
|
var _ref$intent = _ref.intent,
|
|
14726
14728
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
14727
14729
|
children = _ref.children,
|
|
14728
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14730
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$x);
|
|
14729
14731
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
|
|
14730
14732
|
themeIntent: intent,
|
|
14731
14733
|
testID: "data-card-indicator"
|
|
@@ -14744,13 +14746,13 @@ var StyledCard$1 = index$c(reactNative.View)(function (_ref) {
|
|
|
14744
14746
|
});
|
|
14745
14747
|
});
|
|
14746
14748
|
|
|
14747
|
-
var _excluded$
|
|
14749
|
+
var _excluded$w = ["intent", "children", "variant"];
|
|
14748
14750
|
var Card = function Card(_ref) {
|
|
14749
14751
|
var intent = _ref.intent,
|
|
14750
14752
|
children = _ref.children,
|
|
14751
14753
|
_ref$variant = _ref.variant,
|
|
14752
14754
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
14753
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14755
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
14754
14756
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
14755
14757
|
themeIntent: intent,
|
|
14756
14758
|
themeVariant: variant
|
|
@@ -15017,7 +15019,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
15017
15019
|
});
|
|
15018
15020
|
CardCarousel.displayName = 'CardCarousel';
|
|
15019
15021
|
|
|
15020
|
-
var _excluded$
|
|
15022
|
+
var _excluded$v = ["rounded", "size", "testID", "style"];
|
|
15021
15023
|
/**
|
|
15022
15024
|
* @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
|
|
15023
15025
|
*/
|
|
@@ -15028,7 +15030,7 @@ var Image = function Image(_ref) {
|
|
|
15028
15030
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
15029
15031
|
testID = _ref.testID,
|
|
15030
15032
|
style = _ref.style,
|
|
15031
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15033
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
15032
15034
|
useDeprecation('Image component will soon be deprecated. Please use `Image` from `react-native` instead.');
|
|
15033
15035
|
var theme = useTheme();
|
|
15034
15036
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
@@ -15163,7 +15165,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
15163
15165
|
}, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
|
|
15164
15166
|
};
|
|
15165
15167
|
|
|
15166
|
-
var _excluded$
|
|
15168
|
+
var _excluded$u = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
15167
15169
|
function useStateFromProp(initialValue) {
|
|
15168
15170
|
var _useState = React.useState(initialValue),
|
|
15169
15171
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15174,7 +15176,7 @@ function useStateFromProp(initialValue) {
|
|
|
15174
15176
|
}, [initialValue]);
|
|
15175
15177
|
return [value, setValue];
|
|
15176
15178
|
}
|
|
15177
|
-
var noop$
|
|
15179
|
+
var noop$2 = function noop(_) {
|
|
15178
15180
|
return true;
|
|
15179
15181
|
};
|
|
15180
15182
|
var Carousel = function Carousel(_ref) {
|
|
@@ -15186,12 +15188,12 @@ var Carousel = function Carousel(_ref) {
|
|
|
15186
15188
|
selectedItemIndex = _ref$selectedItemInde === void 0 ? 0 : _ref$selectedItemInde,
|
|
15187
15189
|
style = _ref.style,
|
|
15188
15190
|
_ref$shouldShowPagina = _ref.shouldShowPagination,
|
|
15189
|
-
shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop$
|
|
15191
|
+
shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop$2 : _ref$shouldShowPagina,
|
|
15190
15192
|
testID = _ref.testID,
|
|
15191
15193
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
15192
15194
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
15193
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15194
|
-
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop$
|
|
15195
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
15196
|
+
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop$2);
|
|
15195
15197
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
15196
15198
|
var theme = useTheme();
|
|
15197
15199
|
var carouselRef = React.useRef(null);
|
|
@@ -15912,7 +15914,7 @@ function range(start, stop, step) {
|
|
|
15912
15914
|
return range;
|
|
15913
15915
|
}
|
|
15914
15916
|
|
|
15915
|
-
var noop = {
|
|
15917
|
+
var noop$1 = {
|
|
15916
15918
|
value: function value() {}
|
|
15917
15919
|
};
|
|
15918
15920
|
function dispatch() {
|
|
@@ -15986,7 +15988,7 @@ function get$1(type, name) {
|
|
|
15986
15988
|
function set$1(type, name, callback) {
|
|
15987
15989
|
for (var i = 0, n = type.length; i < n; ++i) {
|
|
15988
15990
|
if (type[i].name === name) {
|
|
15989
|
-
type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));
|
|
15991
|
+
type[i] = noop$1, type = type.slice(0, i).concat(type.slice(i + 1));
|
|
15990
15992
|
break;
|
|
15991
15993
|
}
|
|
15992
15994
|
}
|
|
@@ -20461,7 +20463,7 @@ var StyledChipIcon = index$c(Icon)(function (_ref2) {
|
|
|
20461
20463
|
};
|
|
20462
20464
|
});
|
|
20463
20465
|
|
|
20464
|
-
var _excluded$
|
|
20466
|
+
var _excluded$t = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon", "accessible", "onBlur", "onFocus"];
|
|
20465
20467
|
var getChipLabel = function getChipLabel(label) {
|
|
20466
20468
|
if (typeof label === 'string') {
|
|
20467
20469
|
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
@@ -20497,7 +20499,7 @@ var Chip = function Chip(_ref) {
|
|
|
20497
20499
|
accessible = _ref.accessible,
|
|
20498
20500
|
onBlur = _ref.onBlur,
|
|
20499
20501
|
onFocus = _ref.onFocus,
|
|
20500
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
20502
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
20501
20503
|
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
20502
20504
|
var renamedVariant = getChipVariant(variant);
|
|
20503
20505
|
var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
|
|
@@ -20888,7 +20890,7 @@ var StyledErrorAndMaxLengthContainer = index$c(reactNative.View)(function (_ref1
|
|
|
20888
20890
|
};
|
|
20889
20891
|
});
|
|
20890
20892
|
|
|
20891
|
-
var _excluded$
|
|
20893
|
+
var _excluded$s = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
20892
20894
|
var getState$3 = function getState(_ref) {
|
|
20893
20895
|
var disabled = _ref.disabled,
|
|
20894
20896
|
error = _ref.error,
|
|
@@ -21004,7 +21006,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
21004
21006
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
21005
21007
|
_ref8$variant = _ref8.variant,
|
|
21006
21008
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
21007
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
21009
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$s);
|
|
21008
21010
|
var displayText = getDisplayText(value, defaultValue);
|
|
21009
21011
|
var isEmptyValue = displayText.length === 0;
|
|
21010
21012
|
var _React$useState = React__namespace.default.useState(0),
|
|
@@ -21751,11 +21753,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21751
21753
|
}));
|
|
21752
21754
|
};
|
|
21753
21755
|
|
|
21754
|
-
var _excluded$
|
|
21756
|
+
var _excluded$r = ["variant"];
|
|
21755
21757
|
var DatePicker = function DatePicker(_ref) {
|
|
21756
21758
|
var _ref$variant = _ref.variant,
|
|
21757
21759
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21758
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
21760
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
21759
21761
|
if (variant === 'calendar') {
|
|
21760
21762
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, props);
|
|
21761
21763
|
}
|
|
@@ -21836,7 +21838,7 @@ var StyledDragableDrawerContainer = index$c(reactNative.Animated.View)(function
|
|
|
21836
21838
|
backgroundColor: theme.__hd__.drawer.colors.background,
|
|
21837
21839
|
elevation: enableShadow ? theme.__hd__.drawer.shadows.elevation : undefined,
|
|
21838
21840
|
overflow: 'hidden',
|
|
21839
|
-
|
|
21841
|
+
height: '100%'
|
|
21840
21842
|
};
|
|
21841
21843
|
});
|
|
21842
21844
|
var StyledHandlerContainer$1 = index$c(reactNative.View)(function (_ref6) {
|
|
@@ -21857,6 +21859,23 @@ var StyledHandler = index$c(reactNative.View)(function (_ref7) {
|
|
|
21857
21859
|
};
|
|
21858
21860
|
});
|
|
21859
21861
|
|
|
21862
|
+
var noop = function noop() {
|
|
21863
|
+
return {};
|
|
21864
|
+
};
|
|
21865
|
+
var DragableDrawerContext = /*#__PURE__*/React.createContext({
|
|
21866
|
+
isAtMaxHeight: false,
|
|
21867
|
+
scrollYRef: {
|
|
21868
|
+
current: 0
|
|
21869
|
+
},
|
|
21870
|
+
onScrollY: noop,
|
|
21871
|
+
beginPan: noop,
|
|
21872
|
+
movePan: noop,
|
|
21873
|
+
releasePan: noop
|
|
21874
|
+
});
|
|
21875
|
+
var useDragableDrawerContext = function useDragableDrawerContext() {
|
|
21876
|
+
return React.useContext(DragableDrawerContext);
|
|
21877
|
+
};
|
|
21878
|
+
|
|
21860
21879
|
var getOffset = function getOffset(height, percentage) {
|
|
21861
21880
|
if (percentage < 0) return height;
|
|
21862
21881
|
if (percentage > 100) return 0;
|
|
@@ -21885,34 +21904,39 @@ var calculateAnimatedToValue = function calculateAnimatedToValue(position, heigh
|
|
|
21885
21904
|
return heightSnapPoints[minIndex];
|
|
21886
21905
|
};
|
|
21887
21906
|
|
|
21888
|
-
var
|
|
21889
|
-
|
|
21907
|
+
var FLICK_VELOCITY_THRESHOLD = 0.3;
|
|
21908
|
+
var SHORT_DRAG_THRESHOLD_PX = 20;
|
|
21909
|
+
var VELOCITY_PROJECTION_FACTOR = 200;
|
|
21910
|
+
var useDragablePan = function useDragablePan(_ref) {
|
|
21911
|
+
var height = _ref.height,
|
|
21890
21912
|
initialHeightPercentage = _ref.initialHeightPercentage,
|
|
21891
|
-
|
|
21892
|
-
|
|
21893
|
-
_ref$snapPoints = _ref.snapPoints,
|
|
21894
|
-
snapPoints = _ref$snapPoints === void 0 ? [] : _ref$snapPoints,
|
|
21913
|
+
minimumHeightPercentage = _ref.minimumHeightPercentage,
|
|
21914
|
+
snapPoints = _ref.snapPoints,
|
|
21895
21915
|
onExpanded = _ref.onExpanded,
|
|
21896
|
-
onCollapsed = _ref.onCollapsed
|
|
21897
|
-
testID = _ref.testID;
|
|
21898
|
-
var _useState = React.useState(0),
|
|
21899
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
21900
|
-
height = _useState2[0],
|
|
21901
|
-
setHeight = _useState2[1];
|
|
21916
|
+
onCollapsed = _ref.onCollapsed;
|
|
21902
21917
|
var baseHeightForMeasure = React.useRef(0);
|
|
21903
21918
|
var snapPointsData = React.useRef({
|
|
21904
21919
|
list: [],
|
|
21905
21920
|
minHeightOffset: 0,
|
|
21906
21921
|
maxHeightOffset: 0
|
|
21907
21922
|
});
|
|
21908
|
-
// Track drag
|
|
21909
21923
|
var pan = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
21910
21924
|
var offset = React.useRef(0);
|
|
21911
21925
|
var offsetBeforePan = React.useRef(0);
|
|
21912
|
-
var
|
|
21926
|
+
var _useState = React.useState(-1),
|
|
21927
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
21928
|
+
animatedToValue = _useState2[0],
|
|
21929
|
+
setAnimatedToValue = _useState2[1];
|
|
21930
|
+
var _useState3 = React.useState(false),
|
|
21913
21931
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
21914
|
-
|
|
21915
|
-
|
|
21932
|
+
isAtMaxHeight = _useState4[0],
|
|
21933
|
+
setIsAtMaxHeight = _useState4[1];
|
|
21934
|
+
var scrollYRef = React.useRef(0);
|
|
21935
|
+
var minimumHeightPercentageRef = React.useRef(minimumHeightPercentage);
|
|
21936
|
+
minimumHeightPercentageRef.current = minimumHeightPercentage;
|
|
21937
|
+
var onScrollY = React.useCallback(function (y) {
|
|
21938
|
+
scrollYRef.current = y;
|
|
21939
|
+
}, []);
|
|
21916
21940
|
React.useEffect(function () {
|
|
21917
21941
|
var id = pan.addListener(function (_ref2) {
|
|
21918
21942
|
var value = _ref2.value;
|
|
@@ -21927,13 +21951,12 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
21927
21951
|
var initialOffset = getOffset(height, initialHeightPercentage || minimumHeightPercentage);
|
|
21928
21952
|
setAnimatedToValue(initialOffset);
|
|
21929
21953
|
}
|
|
21930
|
-
}, [height]);
|
|
21954
|
+
}, [height, initialHeightPercentage, minimumHeightPercentage]);
|
|
21931
21955
|
React.useEffect(function () {
|
|
21932
21956
|
if (height > 0) {
|
|
21933
21957
|
pan.setValue(height);
|
|
21934
21958
|
offset.current = height;
|
|
21935
21959
|
baseHeightForMeasure.current = height;
|
|
21936
|
-
// Calculate snap points information
|
|
21937
21960
|
snapPointsData.current = calculateSnapPointsData(minimumHeightPercentage, height, snapPoints);
|
|
21938
21961
|
}
|
|
21939
21962
|
}, [height, minimumHeightPercentage]);
|
|
@@ -21944,11 +21967,18 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
21944
21967
|
useNativeDriver: reactNative.Platform.OS !== 'web',
|
|
21945
21968
|
easing: reactNative.Easing.inOut(reactNative.Easing.cubic)
|
|
21946
21969
|
});
|
|
21947
|
-
animation.start(function () {
|
|
21948
|
-
|
|
21949
|
-
|
|
21950
|
-
|
|
21951
|
-
|
|
21970
|
+
animation.start(function (_ref3) {
|
|
21971
|
+
var finished = _ref3.finished;
|
|
21972
|
+
if (finished) {
|
|
21973
|
+
if (animatedToValue === 0) {
|
|
21974
|
+
setIsAtMaxHeight(true);
|
|
21975
|
+
onExpanded === null || onExpanded === void 0 || onExpanded();
|
|
21976
|
+
} else {
|
|
21977
|
+
setIsAtMaxHeight(false);
|
|
21978
|
+
if (animatedToValue === getOffset(height, minimumHeightPercentage)) {
|
|
21979
|
+
onCollapsed === null || onCollapsed === void 0 || onCollapsed();
|
|
21980
|
+
}
|
|
21981
|
+
}
|
|
21952
21982
|
}
|
|
21953
21983
|
setAnimatedToValue(-1);
|
|
21954
21984
|
});
|
|
@@ -21956,41 +21986,130 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
21956
21986
|
return animation.stop();
|
|
21957
21987
|
};
|
|
21958
21988
|
}
|
|
21959
|
-
}, [animatedToValue]);
|
|
21989
|
+
}, [animatedToValue, onExpanded, onCollapsed, height, minimumHeightPercentage]);
|
|
21990
|
+
var beginPan = React.useCallback(function () {
|
|
21991
|
+
pan.stopAnimation();
|
|
21992
|
+
setIsAtMaxHeight(false);
|
|
21993
|
+
offsetBeforePan.current = offset.current;
|
|
21994
|
+
pan.setOffset(offset.current);
|
|
21995
|
+
pan.setValue(0);
|
|
21996
|
+
}, []);
|
|
21997
|
+
var movePan = React.useCallback(function (dy) {
|
|
21998
|
+
var _snapPointsData$curre;
|
|
21999
|
+
// Moving toward top, stop at highest snap point
|
|
22000
|
+
if (offsetBeforePan.current + dy < 0) {
|
|
22001
|
+
pan.setValue(-offsetBeforePan.current);
|
|
22002
|
+
return;
|
|
22003
|
+
}
|
|
22004
|
+
// Moving toward bottom, stop at lowest snap point
|
|
22005
|
+
if (offsetBeforePan.current + dy > ((_snapPointsData$curre = snapPointsData.current) === null || _snapPointsData$curre === void 0 ? void 0 : _snapPointsData$curre.minHeightOffset)) {
|
|
22006
|
+
pan.setValue(baseHeightForMeasure.current - baseHeightForMeasure.current * (minimumHeightPercentageRef.current / 100) - offsetBeforePan.current);
|
|
22007
|
+
return;
|
|
22008
|
+
}
|
|
22009
|
+
pan.setValue(dy);
|
|
22010
|
+
}, []);
|
|
22011
|
+
var releasePan = React.useCallback(function (dy, vy) {
|
|
22012
|
+
pan.flattenOffset();
|
|
22013
|
+
var offsetAfterPan = offsetBeforePan.current + dy;
|
|
22014
|
+
// Flick or short downward drag: snap to the next lower snap point.
|
|
22015
|
+
if (vy > FLICK_VELOCITY_THRESHOLD || dy > SHORT_DRAG_THRESHOLD_PX) {
|
|
22016
|
+
var lowerPoints = snapPointsData.current.list.filter(function (p) {
|
|
22017
|
+
return p > offsetBeforePan.current;
|
|
22018
|
+
}).sort(function (a, b) {
|
|
22019
|
+
return a - b;
|
|
22020
|
+
});
|
|
22021
|
+
if (lowerPoints.length > 0) {
|
|
22022
|
+
setAnimatedToValue(lowerPoints[0]);
|
|
22023
|
+
return;
|
|
22024
|
+
}
|
|
22025
|
+
}
|
|
22026
|
+
// Upward flick or drag: project the intended landing position using
|
|
22027
|
+
// velocity, then snap to the nearest higher snap point to that projection.
|
|
22028
|
+
// This allows fast flicks to skip intermediate snap points.
|
|
22029
|
+
if (vy < -FLICK_VELOCITY_THRESHOLD || dy < -SHORT_DRAG_THRESHOLD_PX) {
|
|
22030
|
+
var projected = offsetAfterPan + vy * VELOCITY_PROJECTION_FACTOR;
|
|
22031
|
+
var higherPoints = snapPointsData.current.list.filter(function (p) {
|
|
22032
|
+
return p < offsetBeforePan.current;
|
|
22033
|
+
}).sort(function (a, b) {
|
|
22034
|
+
return b - a;
|
|
22035
|
+
});
|
|
22036
|
+
if (higherPoints.length > 0) {
|
|
22037
|
+
setAnimatedToValue(calculateAnimatedToValue(projected, higherPoints));
|
|
22038
|
+
return;
|
|
22039
|
+
}
|
|
22040
|
+
}
|
|
22041
|
+
// Otherwise: snap to nearest.
|
|
22042
|
+
setAnimatedToValue(calculateAnimatedToValue(offsetAfterPan, snapPointsData.current.list));
|
|
22043
|
+
}, []);
|
|
21960
22044
|
var panResponder = React.useRef(reactNative.PanResponder.create({
|
|
21961
22045
|
onMoveShouldSetPanResponder: function onMoveShouldSetPanResponder() {
|
|
21962
22046
|
return true;
|
|
21963
22047
|
},
|
|
21964
22048
|
onPanResponderGrant: function onPanResponderGrant() {
|
|
21965
|
-
|
|
21966
|
-
pan.setOffset(offset.current);
|
|
21967
|
-
pan.setValue(0);
|
|
22049
|
+
return beginPan();
|
|
21968
22050
|
},
|
|
21969
22051
|
onPanResponderMove: function onPanResponderMove(_, gesture) {
|
|
21970
|
-
|
|
21971
|
-
var panDistance = gesture.dy;
|
|
21972
|
-
// Moving toward top, stop at highest snap point
|
|
21973
|
-
if (offsetBeforePan.current + panDistance < 0) {
|
|
21974
|
-
pan.setValue(-offsetBeforePan.current);
|
|
21975
|
-
return;
|
|
21976
|
-
}
|
|
21977
|
-
// Moving toward bottom, stop at lowest snap point
|
|
21978
|
-
if (offsetBeforePan.current + panDistance > ((_snapPointsData$curre = snapPointsData.current) === null || _snapPointsData$curre === void 0 ? void 0 : _snapPointsData$curre.minHeightOffset)) {
|
|
21979
|
-
pan.setValue(baseHeightForMeasure.current - baseHeightForMeasure.current * (minimumHeightPercentage / 100) - offsetBeforePan.current);
|
|
21980
|
-
return;
|
|
21981
|
-
}
|
|
21982
|
-
pan.setValue(panDistance);
|
|
22052
|
+
return movePan(gesture.dy);
|
|
21983
22053
|
},
|
|
21984
22054
|
onPanResponderRelease: function onPanResponderRelease(_, gesture) {
|
|
21985
|
-
|
|
21986
|
-
// Attach to nearest snappoint
|
|
21987
|
-
var panDistance = gesture.dy;
|
|
21988
|
-
var offsetAfterPan = offsetBeforePan.current + panDistance;
|
|
21989
|
-
var animatedValue = calculateAnimatedToValue(offsetAfterPan, snapPointsData.current.list);
|
|
21990
|
-
setAnimatedToValue(animatedValue);
|
|
22055
|
+
return releasePan(gesture.dy, gesture.vy);
|
|
21991
22056
|
}
|
|
21992
22057
|
})).current;
|
|
21993
|
-
return
|
|
22058
|
+
return {
|
|
22059
|
+
pan: pan,
|
|
22060
|
+
isAtMaxHeight: isAtMaxHeight,
|
|
22061
|
+
scrollYRef: scrollYRef,
|
|
22062
|
+
onScrollY: onScrollY,
|
|
22063
|
+
beginPan: beginPan,
|
|
22064
|
+
movePan: movePan,
|
|
22065
|
+
releasePan: releasePan,
|
|
22066
|
+
panHandlers: panResponder.panHandlers
|
|
22067
|
+
};
|
|
22068
|
+
};
|
|
22069
|
+
|
|
22070
|
+
var DragableDrawer = function DragableDrawer(_ref) {
|
|
22071
|
+
var children = _ref.children,
|
|
22072
|
+
initialHeightPercentage = _ref.initialHeightPercentage,
|
|
22073
|
+
_ref$minimumHeightPer = _ref.minimumHeightPercentage,
|
|
22074
|
+
minimumHeightPercentage = _ref$minimumHeightPer === void 0 ? 10 : _ref$minimumHeightPer,
|
|
22075
|
+
_ref$snapPoints = _ref.snapPoints,
|
|
22076
|
+
snapPoints = _ref$snapPoints === void 0 ? [] : _ref$snapPoints,
|
|
22077
|
+
onExpanded = _ref.onExpanded,
|
|
22078
|
+
onCollapsed = _ref.onCollapsed,
|
|
22079
|
+
testID = _ref.testID;
|
|
22080
|
+
var _useState = React.useState(0),
|
|
22081
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
22082
|
+
height = _useState2[0],
|
|
22083
|
+
setHeight = _useState2[1];
|
|
22084
|
+
var _useDragablePan = useDragablePan({
|
|
22085
|
+
height: height,
|
|
22086
|
+
initialHeightPercentage: initialHeightPercentage,
|
|
22087
|
+
minimumHeightPercentage: minimumHeightPercentage,
|
|
22088
|
+
snapPoints: snapPoints,
|
|
22089
|
+
onExpanded: onExpanded,
|
|
22090
|
+
onCollapsed: onCollapsed
|
|
22091
|
+
}),
|
|
22092
|
+
pan = _useDragablePan.pan,
|
|
22093
|
+
isAtMaxHeight = _useDragablePan.isAtMaxHeight,
|
|
22094
|
+
scrollYRef = _useDragablePan.scrollYRef,
|
|
22095
|
+
onScrollY = _useDragablePan.onScrollY,
|
|
22096
|
+
beginPan = _useDragablePan.beginPan,
|
|
22097
|
+
movePan = _useDragablePan.movePan,
|
|
22098
|
+
releasePan = _useDragablePan.releasePan,
|
|
22099
|
+
panHandlers = _useDragablePan.panHandlers;
|
|
22100
|
+
var contextValue = React.useMemo(function () {
|
|
22101
|
+
return {
|
|
22102
|
+
isAtMaxHeight: isAtMaxHeight,
|
|
22103
|
+
scrollYRef: scrollYRef,
|
|
22104
|
+
onScrollY: onScrollY,
|
|
22105
|
+
beginPan: beginPan,
|
|
22106
|
+
movePan: movePan,
|
|
22107
|
+
releasePan: releasePan
|
|
22108
|
+
};
|
|
22109
|
+
}, [isAtMaxHeight, onScrollY, beginPan, movePan, releasePan]);
|
|
22110
|
+
return /*#__PURE__*/React__namespace.default.createElement(DragableDrawerContext.Provider, {
|
|
22111
|
+
value: contextValue
|
|
22112
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledDragableContainer, {
|
|
21994
22113
|
testID: testID,
|
|
21995
22114
|
enableShadow: true,
|
|
21996
22115
|
pointerEvents: "box-none"
|
|
@@ -21998,16 +22117,106 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
21998
22117
|
enableShadow: true,
|
|
21999
22118
|
style: {
|
|
22000
22119
|
transform: [{
|
|
22001
|
-
scaleY:
|
|
22120
|
+
scaleY: height > 0 ? 1 : 0
|
|
22002
22121
|
}, {
|
|
22003
22122
|
translateY: pan
|
|
22004
22123
|
}]
|
|
22005
22124
|
},
|
|
22006
|
-
onLayout: function onLayout(
|
|
22007
|
-
var nativeEvent =
|
|
22125
|
+
onLayout: function onLayout(_ref2) {
|
|
22126
|
+
var nativeEvent = _ref2.nativeEvent;
|
|
22008
22127
|
setHeight(nativeEvent.layout.height);
|
|
22009
22128
|
}
|
|
22010
|
-
}, /*#__PURE__*/React__namespace.default.createElement(StyledHandlerContainer$1,
|
|
22129
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledHandlerContainer$1, panHandlers, /*#__PURE__*/React__namespace.default.createElement(StyledHandler, null)), children)));
|
|
22130
|
+
};
|
|
22131
|
+
|
|
22132
|
+
var _excluded$q = ["onScroll", "onScrollEndDrag", "onMomentumScrollEnd", "scrollEventThrottle", "children"];
|
|
22133
|
+
// scrollY tolerance: treat anything within this many pixels of the top as
|
|
22134
|
+
// "at scroll top" to handle fractional pixels and throttled scroll events.
|
|
22135
|
+
var SCROLL_TOP_THRESHOLD_PX = 5;
|
|
22136
|
+
// Minimum downward finger movement before the pull-down collapse is triggered.
|
|
22137
|
+
var PULL_DOWN_THRESHOLD_PX = 10;
|
|
22138
|
+
var DEFAULT_SCROLL_EVENT_THROTTLE = 16;
|
|
22139
|
+
/**
|
|
22140
|
+
* A ScrollView that coordinates with a parent DragableDrawer.
|
|
22141
|
+
*
|
|
22142
|
+
* - Drawer below max height: all gestures move the drawer; scroll is locked.
|
|
22143
|
+
* - Drawer at max height: native scrolling works normally.
|
|
22144
|
+
* - Drawer at max + scrolled to top + pull down: drawer collapses.
|
|
22145
|
+
*
|
|
22146
|
+
* The native ScrollView with bounces={false}/overScrollMode="never" will not
|
|
22147
|
+
* intercept a downward gesture at scrollY=0 (nothing left to scroll), so
|
|
22148
|
+
* onMoveShouldSetPanResponderCapture fires cleanly on both platforms.
|
|
22149
|
+
* onScrollEndDrag + onMomentumScrollEnd ensure scrollYRef is up-to-date
|
|
22150
|
+
* before the next gesture starts.
|
|
22151
|
+
*/
|
|
22152
|
+
var DragableScrollView = function DragableScrollView(_ref) {
|
|
22153
|
+
var onScroll = _ref.onScroll,
|
|
22154
|
+
onScrollEndDragProp = _ref.onScrollEndDrag,
|
|
22155
|
+
onMomentumScrollEndProp = _ref.onMomentumScrollEnd,
|
|
22156
|
+
_ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
22157
|
+
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? DEFAULT_SCROLL_EVENT_THROTTLE : _ref$scrollEventThrot,
|
|
22158
|
+
children = _ref.children,
|
|
22159
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
22160
|
+
var _useDragableDrawerCon = useDragableDrawerContext(),
|
|
22161
|
+
isAtMaxHeight = _useDragableDrawerCon.isAtMaxHeight,
|
|
22162
|
+
scrollYRef = _useDragableDrawerCon.scrollYRef,
|
|
22163
|
+
onScrollY = _useDragableDrawerCon.onScrollY,
|
|
22164
|
+
beginPan = _useDragableDrawerCon.beginPan,
|
|
22165
|
+
movePan = _useDragableDrawerCon.movePan,
|
|
22166
|
+
releasePan = _useDragableDrawerCon.releasePan;
|
|
22167
|
+
// Mirror context value into a ref so PanResponder closures always read
|
|
22168
|
+
// the latest value (PanResponder is created once and closures are frozen).
|
|
22169
|
+
var isAtMaxHeightRef = React.useRef(isAtMaxHeight);
|
|
22170
|
+
isAtMaxHeightRef.current = isAtMaxHeight;
|
|
22171
|
+
var panResponder = React.useRef(reactNative.PanResponder.create({
|
|
22172
|
+
// Drawer below max: capture on start so the native ScrollView never
|
|
22173
|
+
// gets the touch and scroll is completely locked.
|
|
22174
|
+
onStartShouldSetPanResponderCapture: function onStartShouldSetPanResponderCapture() {
|
|
22175
|
+
return !isAtMaxHeightRef.current;
|
|
22176
|
+
},
|
|
22177
|
+
// Drawer at max + scroll at top + pull down: recapture for collapse.
|
|
22178
|
+
// bounces={false} / overScrollMode="never" means the native ScrollView
|
|
22179
|
+
// has nothing to do here, so it will not intercept the gesture and this
|
|
22180
|
+
// capture fires reliably before any scroll activity begins.
|
|
22181
|
+
onMoveShouldSetPanResponderCapture: function onMoveShouldSetPanResponderCapture(_, gesture) {
|
|
22182
|
+
return isAtMaxHeightRef.current && scrollYRef.current <= SCROLL_TOP_THRESHOLD_PX && gesture.dy > PULL_DOWN_THRESHOLD_PX;
|
|
22183
|
+
},
|
|
22184
|
+
onPanResponderGrant: function onPanResponderGrant() {
|
|
22185
|
+
return beginPan();
|
|
22186
|
+
},
|
|
22187
|
+
onPanResponderMove: function onPanResponderMove(_, gesture) {
|
|
22188
|
+
return movePan(gesture.dy);
|
|
22189
|
+
},
|
|
22190
|
+
onPanResponderRelease: function onPanResponderRelease(_, gesture) {
|
|
22191
|
+
return releasePan(gesture.dy, gesture.vy);
|
|
22192
|
+
}
|
|
22193
|
+
})).current;
|
|
22194
|
+
var handleScroll = function handleScroll(e) {
|
|
22195
|
+
onScrollY(e.nativeEvent.contentOffset.y);
|
|
22196
|
+
onScroll === null || onScroll === void 0 || onScroll(e);
|
|
22197
|
+
};
|
|
22198
|
+
// Keep scrollYRef accurate at every scroll boundary so the next gesture
|
|
22199
|
+
// checks the correct position even when onScroll is throttled.
|
|
22200
|
+
var handleScrollEndDrag = function handleScrollEndDrag(e) {
|
|
22201
|
+
onScrollY(e.nativeEvent.contentOffset.y);
|
|
22202
|
+
onScrollEndDragProp === null || onScrollEndDragProp === void 0 || onScrollEndDragProp(e);
|
|
22203
|
+
};
|
|
22204
|
+
var handleMomentumScrollEnd = function handleMomentumScrollEnd(e) {
|
|
22205
|
+
onScrollY(e.nativeEvent.contentOffset.y);
|
|
22206
|
+
onMomentumScrollEndProp === null || onMomentumScrollEndProp === void 0 || onMomentumScrollEndProp(e);
|
|
22207
|
+
};
|
|
22208
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, _extends$1({}, panResponder.panHandlers, {
|
|
22209
|
+
style: {
|
|
22210
|
+
flex: 1
|
|
22211
|
+
}
|
|
22212
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.ScrollView, _extends$1({}, props, {
|
|
22213
|
+
scrollEnabled: isAtMaxHeight,
|
|
22214
|
+
onScroll: handleScroll,
|
|
22215
|
+
onScrollEndDrag: handleScrollEndDrag,
|
|
22216
|
+
onMomentumScrollEnd: handleMomentumScrollEnd,
|
|
22217
|
+
scrollEventThrottle: scrollEventThrottle,
|
|
22218
|
+
overScrollMode: "always"
|
|
22219
|
+
}), children));
|
|
22011
22220
|
};
|
|
22012
22221
|
|
|
22013
22222
|
var BACKDROP_OPACITY = 0.56;
|
|
@@ -22068,7 +22277,8 @@ var Drawer = function Drawer(_ref) {
|
|
|
22068
22277
|
}, children));
|
|
22069
22278
|
};
|
|
22070
22279
|
var index$7 = Object.assign(Drawer, {
|
|
22071
|
-
Dragable: DragableDrawer
|
|
22280
|
+
Dragable: DragableDrawer,
|
|
22281
|
+
DragableScrollView: DragableScrollView
|
|
22072
22282
|
});
|
|
22073
22283
|
|
|
22074
22284
|
var DEFAULT_ILLUSTRATION_SIZE = scale(72);
|
|
@@ -24193,7 +24403,7 @@ var FABWithTitleStyle = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
24193
24403
|
return {
|
|
24194
24404
|
show: function show() {
|
|
24195
24405
|
var animated = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
24196
|
-
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$
|
|
24406
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$3;
|
|
24197
24407
|
setDisplayState({
|
|
24198
24408
|
hideButton: false,
|
|
24199
24409
|
hideTitle: false
|
|
@@ -24214,7 +24424,7 @@ var FABWithTitleStyle = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
24214
24424
|
},
|
|
24215
24425
|
collapse: function collapse() {
|
|
24216
24426
|
var animated = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
24217
|
-
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$
|
|
24427
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$3;
|
|
24218
24428
|
setDisplayState({
|
|
24219
24429
|
hideButton: false,
|
|
24220
24430
|
hideTitle: true
|
|
@@ -24235,7 +24445,7 @@ var FABWithTitleStyle = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
24235
24445
|
},
|
|
24236
24446
|
hide: function hide() {
|
|
24237
24447
|
var animated = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
24238
|
-
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$
|
|
24448
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$3;
|
|
24239
24449
|
if (animated) {
|
|
24240
24450
|
reactNative.Animated.stagger(20, [reactNative.Animated.spring(animatedValues.opacity, {
|
|
24241
24451
|
toValue: 0,
|
|
@@ -27560,7 +27770,7 @@ var SuccessPage = function SuccessPage(_ref2) {
|
|
|
27560
27770
|
testID = _ref2.testID,
|
|
27561
27771
|
ctaText = _ref2.ctaText,
|
|
27562
27772
|
_ref2$onCtaPress = _ref2.onCtaPress,
|
|
27563
|
-
onCtaPress = _ref2$onCtaPress === void 0 ? noop$
|
|
27773
|
+
onCtaPress = _ref2$onCtaPress === void 0 ? noop$3 : _ref2$onCtaPress,
|
|
27564
27774
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
27565
27775
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
27566
27776
|
icon = _ref2.icon,
|