@hero-design/rn 8.92.3 → 8.93.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 +2 -2
- package/CHANGELOG.md +10 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +152 -83
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +152 -83
- package/package.json +1 -1
- package/src/components/Badge/Count.tsx +60 -0
- package/src/components/Badge/StyledBadge.tsx +33 -2
- package/src/components/Badge/__tests__/Count.spec.tsx +38 -0
- package/src/components/Badge/__tests__/__snapshots__/Count.spec.tsx.snap +310 -0
- package/src/components/Badge/constants.ts +1 -0
- package/src/components/Badge/index.tsx +3 -2
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +11 -0
- package/src/theme/components/badge.ts +26 -1
- package/types/components/Badge/Count.d.ts +27 -0
- package/types/components/Badge/StyledBadge.d.ts +14 -4
- package/types/components/Badge/constants.d.ts +1 -0
- package/types/components/Badge/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/types/theme/components/badge.d.ts +11 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:3041) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
|
|
2
2
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
3
3
|
[36m
|
|
4
4
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~[0m
|
|
11
11
|
[39m
|
|
12
12
|
[1m[33m(!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.[39m[22m
|
|
13
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [
|
|
13
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m53s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.93.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#3761](https://github.com/Thinkei/hero-design/pull/3761) [`f92d9b56e581accf3ebafc8becd72068cfaa5493`](https://github.com/Thinkei/hero-design/commit/f92d9b56e581accf3ebafc8becd72068cfaa5493) Thanks [@ttkien](https://github.com/ttkien)! - [Badge.Count] add component
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#3765](https://github.com/Thinkei/hero-design/pull/3765) [`c4d1a248033828799063daae6ef12ab8ee84e8ba`](https://github.com/Thinkei/hero-design/commit/c4d1a248033828799063daae6ef12ab8ee84e8ba) Thanks [@anniepham96](https://github.com/anniepham96)! - Add new icon for profile checklist badge
|
|
12
|
+
|
|
3
13
|
## 8.92.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
Binary file
|
package/es/index.js
CHANGED
|
@@ -2592,7 +2592,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2592
2592
|
warning: theme.colors.onWarningSurface,
|
|
2593
2593
|
archived: theme.colors.onArchivedSurface,
|
|
2594
2594
|
text: theme.colors.onDarkGlobalSurface,
|
|
2595
|
-
border: theme.colors.defaultGlobalSurface
|
|
2595
|
+
border: theme.colors.defaultGlobalSurface,
|
|
2596
|
+
countText: theme.colors.onDarkGlobalSurface
|
|
2596
2597
|
};
|
|
2597
2598
|
var fonts = {
|
|
2598
2599
|
medium: theme.fonts.neutral.regular,
|
|
@@ -2604,11 +2605,20 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2604
2605
|
icon: {
|
|
2605
2606
|
medium: theme.fontSizes.small,
|
|
2606
2607
|
small: 8
|
|
2607
|
-
}
|
|
2608
|
+
},
|
|
2609
|
+
count: 6
|
|
2608
2610
|
};
|
|
2609
2611
|
var lineHeights = {
|
|
2610
2612
|
medium: theme.lineHeights.small,
|
|
2611
|
-
small: 10
|
|
2613
|
+
small: 10,
|
|
2614
|
+
count: Platform.select({
|
|
2615
|
+
android: 11,
|
|
2616
|
+
// vertical alignment
|
|
2617
|
+
"default": 12
|
|
2618
|
+
})
|
|
2619
|
+
};
|
|
2620
|
+
var radii = {
|
|
2621
|
+
count: theme.radii.rounded
|
|
2612
2622
|
};
|
|
2613
2623
|
var sizes = {
|
|
2614
2624
|
medium: {
|
|
@@ -2620,7 +2630,11 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2620
2630
|
minWidth: theme.sizes.medium
|
|
2621
2631
|
},
|
|
2622
2632
|
statusHeight: theme.sizes.small,
|
|
2623
|
-
statusWidth: theme.sizes.small
|
|
2633
|
+
statusWidth: theme.sizes.small,
|
|
2634
|
+
count: {
|
|
2635
|
+
width: theme.sizes.smallMedium,
|
|
2636
|
+
height: theme.sizes.smallMedium
|
|
2637
|
+
}
|
|
2624
2638
|
};
|
|
2625
2639
|
var borderWidths = {
|
|
2626
2640
|
"default": theme.borderWidths.medium
|
|
@@ -2633,7 +2647,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2633
2647
|
horizontalPadding: theme.space.xsmall
|
|
2634
2648
|
},
|
|
2635
2649
|
statusPositionTop: -theme.space.xxsmall,
|
|
2636
|
-
statusPositionRight: -theme.space.xxsmall
|
|
2650
|
+
statusPositionRight: -theme.space.xxsmall,
|
|
2651
|
+
countPaddingHorizontal: theme.space.xxsmall
|
|
2637
2652
|
};
|
|
2638
2653
|
return {
|
|
2639
2654
|
colors: colors,
|
|
@@ -2642,7 +2657,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2642
2657
|
sizes: sizes,
|
|
2643
2658
|
space: space,
|
|
2644
2659
|
lineHeights: lineHeights,
|
|
2645
|
-
borderWidths: borderWidths
|
|
2660
|
+
borderWidths: borderWidths,
|
|
2661
|
+
radii: radii
|
|
2646
2662
|
};
|
|
2647
2663
|
};
|
|
2648
2664
|
|
|
@@ -7492,7 +7508,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
|
|
|
7492
7508
|
});
|
|
7493
7509
|
});
|
|
7494
7510
|
|
|
7495
|
-
var _excluded$
|
|
7511
|
+
var _excluded$M = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
7496
7512
|
var Text = function Text(_ref) {
|
|
7497
7513
|
var children = _ref.children,
|
|
7498
7514
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -7505,7 +7521,7 @@ var Text = function Text(_ref) {
|
|
|
7505
7521
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7506
7522
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7507
7523
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7508
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7524
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
7509
7525
|
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.');
|
|
7510
7526
|
return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
7511
7527
|
themeFontSize: fontSize,
|
|
@@ -7535,7 +7551,7 @@ var StyledCaption = index$a(Text$1)(function (_ref) {
|
|
|
7535
7551
|
};
|
|
7536
7552
|
});
|
|
7537
7553
|
|
|
7538
|
-
var _excluded$
|
|
7554
|
+
var _excluded$L = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
7539
7555
|
var Caption = function Caption(_ref) {
|
|
7540
7556
|
var children = _ref.children,
|
|
7541
7557
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -7544,7 +7560,7 @@ var Caption = function Caption(_ref) {
|
|
|
7544
7560
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7545
7561
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7546
7562
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7547
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7563
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
7548
7564
|
return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
7549
7565
|
themeFontWeight: fontWeight,
|
|
7550
7566
|
themeIntent: intent,
|
|
@@ -7563,14 +7579,14 @@ var StyledLabel$1 = index$a(Text$1)(function (_ref) {
|
|
|
7563
7579
|
};
|
|
7564
7580
|
});
|
|
7565
7581
|
|
|
7566
|
-
var _excluded$
|
|
7582
|
+
var _excluded$K = ["children", "intent", "allowFontScaling"];
|
|
7567
7583
|
var Label = function Label(_ref) {
|
|
7568
7584
|
var children = _ref.children,
|
|
7569
7585
|
_ref$intent = _ref.intent,
|
|
7570
7586
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7571
7587
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7572
7588
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7573
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7589
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
7574
7590
|
return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
7575
7591
|
themeIntent: intent,
|
|
7576
7592
|
allowFontScaling: allowFontScaling
|
|
@@ -7591,7 +7607,7 @@ var StyledTitle$1 = index$a(Text$1)(function (_ref) {
|
|
|
7591
7607
|
};
|
|
7592
7608
|
});
|
|
7593
7609
|
|
|
7594
|
-
var _excluded$
|
|
7610
|
+
var _excluded$J = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
7595
7611
|
var Title = function Title(_ref) {
|
|
7596
7612
|
var children = _ref.children,
|
|
7597
7613
|
_ref$intent = _ref.intent,
|
|
@@ -7602,7 +7618,7 @@ var Title = function Title(_ref) {
|
|
|
7602
7618
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
7603
7619
|
_ref$typeface = _ref.typeface,
|
|
7604
7620
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7605
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7621
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
7606
7622
|
return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
7607
7623
|
themeLevel: level,
|
|
7608
7624
|
themeTypeface: typeface,
|
|
@@ -7637,7 +7653,7 @@ var StyledBody$2 = index$a(Text$1)(function (_ref) {
|
|
|
7637
7653
|
};
|
|
7638
7654
|
});
|
|
7639
7655
|
|
|
7640
|
-
var _excluded$
|
|
7656
|
+
var _excluded$I = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
7641
7657
|
var Body = function Body(_ref) {
|
|
7642
7658
|
var children = _ref.children,
|
|
7643
7659
|
_ref$intent = _ref.intent,
|
|
@@ -7648,7 +7664,7 @@ var Body = function Body(_ref) {
|
|
|
7648
7664
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7649
7665
|
_ref$variant = _ref.variant,
|
|
7650
7666
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
7651
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7667
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$I);
|
|
7652
7668
|
return /*#__PURE__*/React__default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
7653
7669
|
themeTypeface: typeface,
|
|
7654
7670
|
themeIntent: intent,
|
|
@@ -7666,7 +7682,7 @@ var Typography = {
|
|
|
7666
7682
|
};
|
|
7667
7683
|
|
|
7668
7684
|
// 🔴 DO NOT EDIT — This file is generated automatically.
|
|
7669
|
-
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', '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', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'search', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'swipe-right', 'switch', 'tag', 'target', 'teams', 'thumb-down', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'accommodation-outlined', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'afternoon-outlined', 'ai-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'application-outlined', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'automotive-outlined', 'bakery-outlined', 'bar-outlined', 'beauty-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-checked-outlined', 'bookmark-outlined', 'box-1-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calculator-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'call-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-outlined', 'cashback-outlined', 'charging-station-outlined', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-in-outlined', 'clock-out-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cultural-site-outlined', 'cup-outlined', 'dentistry-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-box-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-box-outlined', 'download-outlined', 'edit-template-outlined', 'electronics-outlined', 'email-outlined', 'end-break-outlined', 'enter-arrow', 'entertainment-outlined', 'envelope-outlined', 'evening-outlined', 'expense-approval-outlined', 'expense-outlined', 'explore-outlined', 'extension-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'fastfood-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-certified-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'fitness-outlined', 'folder-outlined', 'folder-upload-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'grocery-outlined', 'hand-holding-user-outlined', 'handshake-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'job-search-outlined', 'leave-approval-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'local_mall_outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'map-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'morning-outlined', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'park-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'restaurant-outlined', 'resume-outlined', 'return-arrow', 'rostering-outlined', 'safety-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined-2', 'share-outlined', 'shop-outlined', 'shopping_basket_outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'smart-match-outlined', 'sparkle-outlined', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'start-break-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'thumb-down-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'transportation-outlined', 'trash-bin-outlined', 'umbrela-outlined', 'unavailability-outlined', 'unavailable', 'underline', 'union-outlined', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'volunteer-outlined', 'wallet-outlined', 'wellness-outlined'];
|
|
7685
|
+
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', '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', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'search', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'swipe-right', 'switch', 'tag', 'target', 'teams', 'thumb-down', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'accommodation-outlined', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'afternoon-outlined', 'ai-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'application-outlined', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'automotive-outlined', 'bakery-outlined', 'bar-outlined', 'beauty-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-checked-outlined', 'bookmark-outlined', 'box-1-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calculator-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'call-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-outlined', 'cashback-outlined', 'charging-station-outlined', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-in-outlined', 'clock-out-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cultural-site-outlined', 'cup-outlined', 'dentistry-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-box-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-box-outlined', 'download-outlined', 'edit-template-outlined', 'electronics-outlined', 'email-outlined', 'end-break-outlined', 'enter-arrow', 'entertainment-outlined', 'envelope-outlined', 'evening-outlined', 'expense-approval-outlined', 'expense-outlined', 'explore-outlined', 'extension-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'fastfood-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-certified-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'fitness-outlined', 'folder-outlined', 'folder-upload-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'grocery-outlined', 'hand-holding-user-outlined', 'handshake-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'job-search-outlined', 'leave-approval-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'local_mall_outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'map-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'morning-outlined', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'park-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'restaurant-outlined', 'resume-outlined', 'return-arrow', 'rostering-outlined', 'safety-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined-2', 'share-outlined', 'shield-check-outlined', 'shop-outlined', 'shopping_basket_outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'smart-match-outlined', 'sparkle-outlined', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'start-break-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'thumb-down-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'transportation-outlined', 'trash-bin-outlined', 'umbrela-outlined', 'unavailability-outlined', 'unavailable', 'underline', 'union-outlined', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'volunteer-outlined', 'wallet-outlined', 'wellness-outlined'];
|
|
7670
7686
|
|
|
7671
7687
|
var activate = 59000;
|
|
7672
7688
|
var adjustment = 59003;
|
|
@@ -7754,12 +7770,12 @@ var redeem = 59392;
|
|
|
7754
7770
|
var refresh = 59393;
|
|
7755
7771
|
var remove = 59394;
|
|
7756
7772
|
var restart = 59396;
|
|
7757
|
-
var shopping_basket_outlined =
|
|
7758
|
-
var strikethrough =
|
|
7759
|
-
var sync =
|
|
7760
|
-
var transfer =
|
|
7761
|
-
var unavailable =
|
|
7762
|
-
var underline =
|
|
7773
|
+
var shopping_basket_outlined = 59413;
|
|
7774
|
+
var strikethrough = 59428;
|
|
7775
|
+
var sync = 59434;
|
|
7776
|
+
var transfer = 59443;
|
|
7777
|
+
var unavailable = 59448;
|
|
7778
|
+
var underline = 59449;
|
|
7763
7779
|
var glyphMap = {
|
|
7764
7780
|
activate: activate,
|
|
7765
7781
|
"add-emoji": 59001,
|
|
@@ -8172,56 +8188,57 @@ var glyphMap = {
|
|
|
8172
8188
|
"share-2": 59408,
|
|
8173
8189
|
"share-outlined-2": 59409,
|
|
8174
8190
|
"share-outlined": 59410,
|
|
8175
|
-
"
|
|
8191
|
+
"shield-check-outlined": 59411,
|
|
8192
|
+
"shop-outlined": 59412,
|
|
8176
8193
|
shopping_basket_outlined: shopping_basket_outlined,
|
|
8177
|
-
"show-chart-outlined":
|
|
8178
|
-
"single-down-arrow":
|
|
8179
|
-
"single-left-arrow":
|
|
8180
|
-
"single-right-arrow":
|
|
8181
|
-
"single-up-arrow":
|
|
8182
|
-
"smart-match-outlined":
|
|
8183
|
-
"sparkle-outlined":
|
|
8184
|
-
"speaker-active-outlined":
|
|
8185
|
-
"speaker-outlined":
|
|
8186
|
-
"star-circle-outlined":
|
|
8187
|
-
"star-outlined":
|
|
8188
|
-
"start-break-outlined":
|
|
8189
|
-
"stash-outlined":
|
|
8190
|
-
"stopwatch-outlined":
|
|
8194
|
+
"show-chart-outlined": 59414,
|
|
8195
|
+
"single-down-arrow": 59415,
|
|
8196
|
+
"single-left-arrow": 59416,
|
|
8197
|
+
"single-right-arrow": 59417,
|
|
8198
|
+
"single-up-arrow": 59418,
|
|
8199
|
+
"smart-match-outlined": 59419,
|
|
8200
|
+
"sparkle-outlined": 59420,
|
|
8201
|
+
"speaker-active-outlined": 59421,
|
|
8202
|
+
"speaker-outlined": 59422,
|
|
8203
|
+
"star-circle-outlined": 59423,
|
|
8204
|
+
"star-outlined": 59424,
|
|
8205
|
+
"start-break-outlined": 59425,
|
|
8206
|
+
"stash-outlined": 59426,
|
|
8207
|
+
"stopwatch-outlined": 59427,
|
|
8191
8208
|
strikethrough: strikethrough,
|
|
8192
|
-
"styler-outlined":
|
|
8193
|
-
"suitcase-clock-outlined":
|
|
8194
|
-
"suitcase-outlined":
|
|
8195
|
-
"survey-outlined":
|
|
8196
|
-
"switch-outlined":
|
|
8209
|
+
"styler-outlined": 59429,
|
|
8210
|
+
"suitcase-clock-outlined": 59430,
|
|
8211
|
+
"suitcase-outlined": 59431,
|
|
8212
|
+
"survey-outlined": 59432,
|
|
8213
|
+
"switch-outlined": 59433,
|
|
8197
8214
|
sync: sync,
|
|
8198
|
-
"tag-outlined":
|
|
8199
|
-
"target-outlined":
|
|
8200
|
-
"tennis-outlined":
|
|
8201
|
-
"thumb-down-outlined":
|
|
8202
|
-
"ticket-outlined":
|
|
8203
|
-
"timesheet-outlined":
|
|
8204
|
-
"timesheets-outlined":
|
|
8205
|
-
"today-outlined":
|
|
8215
|
+
"tag-outlined": 59435,
|
|
8216
|
+
"target-outlined": 59436,
|
|
8217
|
+
"tennis-outlined": 59437,
|
|
8218
|
+
"thumb-down-outlined": 59438,
|
|
8219
|
+
"ticket-outlined": 59439,
|
|
8220
|
+
"timesheet-outlined": 59440,
|
|
8221
|
+
"timesheets-outlined": 59441,
|
|
8222
|
+
"today-outlined": 59442,
|
|
8206
8223
|
transfer: transfer,
|
|
8207
|
-
"transportation-outlined":
|
|
8208
|
-
"trash-bin-outlined":
|
|
8209
|
-
"umbrela-outlined":
|
|
8210
|
-
"unavailability-outlined":
|
|
8224
|
+
"transportation-outlined": 59444,
|
|
8225
|
+
"trash-bin-outlined": 59445,
|
|
8226
|
+
"umbrela-outlined": 59446,
|
|
8227
|
+
"unavailability-outlined": 59447,
|
|
8211
8228
|
unavailable: unavailable,
|
|
8212
8229
|
underline: underline,
|
|
8213
|
-
"union-outlined":
|
|
8214
|
-
"unlock-outlined":
|
|
8215
|
-
"upload-outlined":
|
|
8216
|
-
"user-circle-outlined":
|
|
8217
|
-
"user-gear-outlined":
|
|
8218
|
-
"user-outlined":
|
|
8219
|
-
"user-rectangle-outlined":
|
|
8220
|
-
"video-1-outlined":
|
|
8221
|
-
"video-2-outlined":
|
|
8222
|
-
"volunteer-outlined":
|
|
8223
|
-
"wallet-outlined":
|
|
8224
|
-
"wellness-outlined":
|
|
8230
|
+
"union-outlined": 59450,
|
|
8231
|
+
"unlock-outlined": 59451,
|
|
8232
|
+
"upload-outlined": 59452,
|
|
8233
|
+
"user-circle-outlined": 59453,
|
|
8234
|
+
"user-gear-outlined": 59454,
|
|
8235
|
+
"user-outlined": 59455,
|
|
8236
|
+
"user-rectangle-outlined": 59456,
|
|
8237
|
+
"video-1-outlined": 59457,
|
|
8238
|
+
"video-2-outlined": 59458,
|
|
8239
|
+
"volunteer-outlined": 59459,
|
|
8240
|
+
"wallet-outlined": 59460,
|
|
8241
|
+
"wellness-outlined": 59461
|
|
8225
8242
|
};
|
|
8226
8243
|
|
|
8227
8244
|
var HeroIcon = createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -8247,10 +8264,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
8247
8264
|
};
|
|
8248
8265
|
});
|
|
8249
8266
|
|
|
8250
|
-
var _excluded$
|
|
8267
|
+
var _excluded$H = ["style"];
|
|
8251
8268
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
8252
8269
|
var style = _ref.style,
|
|
8253
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8270
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$H);
|
|
8254
8271
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
8255
8272
|
useEffect(function () {
|
|
8256
8273
|
var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
|
|
@@ -8355,7 +8372,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
8355
8372
|
}, content));
|
|
8356
8373
|
};
|
|
8357
8374
|
|
|
8358
|
-
var _excluded$
|
|
8375
|
+
var _excluded$G = ["key"];
|
|
8359
8376
|
var Accordion = function Accordion(_ref) {
|
|
8360
8377
|
var items = _ref.items,
|
|
8361
8378
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -8376,7 +8393,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
8376
8393
|
testID: testID
|
|
8377
8394
|
}, items.map(function (_ref2, index) {
|
|
8378
8395
|
var key = _ref2.key,
|
|
8379
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
8396
|
+
props = _objectWithoutProperties(_ref2, _excluded$G);
|
|
8380
8397
|
var open = _activeItemKey === key;
|
|
8381
8398
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
8382
8399
|
key: key
|
|
@@ -9242,7 +9259,7 @@ var borderWidths = {
|
|
|
9242
9259
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
9243
9260
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
9244
9261
|
|
|
9245
|
-
var _excluded$
|
|
9262
|
+
var _excluded$F = ["theme"];
|
|
9246
9263
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
9247
9264
|
var propConfig = config[key];
|
|
9248
9265
|
var propValue = props[key];
|
|
@@ -9269,18 +9286,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
9269
9286
|
var configKeys = Object.keys(config);
|
|
9270
9287
|
var StyledBox = index$a(View)(function (_ref5) {
|
|
9271
9288
|
var theme = _ref5.theme,
|
|
9272
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
9289
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$F);
|
|
9273
9290
|
var styleProps = pick(configKeys, otherProps);
|
|
9274
9291
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
9275
9292
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
9276
9293
|
});
|
|
9277
9294
|
|
|
9278
|
-
var _excluded$
|
|
9295
|
+
var _excluded$E = ["children", "style", "testID"];
|
|
9279
9296
|
var Box = function Box(_ref) {
|
|
9280
9297
|
var children = _ref.children,
|
|
9281
9298
|
style = _ref.style,
|
|
9282
9299
|
testID = _ref.testID,
|
|
9283
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
9300
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$E);
|
|
9284
9301
|
return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
9285
9302
|
style: style,
|
|
9286
9303
|
testID: testID
|
|
@@ -9501,16 +9518,44 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
|
|
|
9501
9518
|
borderRadius: theme.radii.rounded
|
|
9502
9519
|
};
|
|
9503
9520
|
});
|
|
9504
|
-
var
|
|
9505
|
-
var
|
|
9506
|
-
|
|
9521
|
+
var StyledCount = index$a(View)(function (_ref4) {
|
|
9522
|
+
var theme = _ref4.theme;
|
|
9523
|
+
return {
|
|
9524
|
+
backgroundColor: theme.__hd__.badge.colors.danger,
|
|
9525
|
+
borderRadius: theme.__hd__.badge.radii.count,
|
|
9526
|
+
minWidth: theme.__hd__.badge.sizes.count.width,
|
|
9527
|
+
height: theme.__hd__.badge.sizes.count.height,
|
|
9528
|
+
alignItems: 'center',
|
|
9529
|
+
justifyContent: 'center',
|
|
9530
|
+
textAlign: 'center',
|
|
9531
|
+
textAlignVertical: 'center',
|
|
9532
|
+
color: theme.__hd__.badge.colors.text,
|
|
9533
|
+
display: 'flex',
|
|
9534
|
+
paddingHorizontal: theme.__hd__.badge.space.countPaddingHorizontal,
|
|
9535
|
+
position: 'absolute',
|
|
9536
|
+
top: theme.__hd__.badge.space.statusPositionTop,
|
|
9537
|
+
right: theme.__hd__.badge.space.statusPositionRight
|
|
9538
|
+
};
|
|
9539
|
+
});
|
|
9540
|
+
var StyledCountText = index$a(Typography.Text)(function (_ref5) {
|
|
9541
|
+
var theme = _ref5.theme;
|
|
9542
|
+
return {
|
|
9543
|
+
height: theme.__hd__.badge.sizes.count.height,
|
|
9544
|
+
lineHeight: theme.__hd__.badge.lineHeights.count,
|
|
9545
|
+
color: theme.__hd__.badge.colors.text,
|
|
9546
|
+
fontSize: theme.__hd__.badge.fontSizes.count
|
|
9547
|
+
};
|
|
9548
|
+
});
|
|
9549
|
+
var StyledIcon$4 = index$a(Icon)(function (_ref6) {
|
|
9550
|
+
var themeSize = _ref6.themeSize,
|
|
9551
|
+
theme = _ref6.theme;
|
|
9507
9552
|
return {
|
|
9508
9553
|
fontSize: theme.__hd__.badge.fontSizes[themeSize]
|
|
9509
9554
|
};
|
|
9510
9555
|
});
|
|
9511
9556
|
|
|
9512
|
-
var _excluded$
|
|
9513
|
-
var Status = function Status(_ref) {
|
|
9557
|
+
var _excluded$D = ["children", "visible", "intent", "style", "testID"];
|
|
9558
|
+
var Status$1 = function Status(_ref) {
|
|
9514
9559
|
var children = _ref.children,
|
|
9515
9560
|
_ref$visible = _ref.visible,
|
|
9516
9561
|
visible = _ref$visible === void 0 ? true : _ref$visible,
|
|
@@ -9518,7 +9563,7 @@ var Status = function Status(_ref) {
|
|
|
9518
9563
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
9519
9564
|
style = _ref.style,
|
|
9520
9565
|
testID = _ref.testID,
|
|
9521
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9566
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
9522
9567
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
9523
9568
|
opacity = _React$useRef.current;
|
|
9524
9569
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -9551,8 +9596,31 @@ var Status = function Status(_ref) {
|
|
|
9551
9596
|
}));
|
|
9552
9597
|
};
|
|
9553
9598
|
|
|
9554
|
-
var _excluded$B = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
9555
9599
|
var DEFAULT_MAX_NUMBER = 99;
|
|
9600
|
+
|
|
9601
|
+
var _excluded$C = ["children", "visible", "style", "max", "testID", "content"];
|
|
9602
|
+
var Status = function Status(_ref) {
|
|
9603
|
+
var children = _ref.children,
|
|
9604
|
+
_ref$visible = _ref.visible,
|
|
9605
|
+
visible = _ref$visible === void 0 ? true : _ref$visible,
|
|
9606
|
+
style = _ref.style,
|
|
9607
|
+
_ref$max = _ref.max,
|
|
9608
|
+
max = _ref$max === void 0 ? DEFAULT_MAX_NUMBER : _ref$max,
|
|
9609
|
+
testID = _ref.testID,
|
|
9610
|
+
originalContent = _ref.content,
|
|
9611
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
9612
|
+
var content = useMemo(function () {
|
|
9613
|
+
return originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
9614
|
+
}, [originalContent, max]);
|
|
9615
|
+
return /*#__PURE__*/React__default.createElement(View, _extends$1({}, nativeProps, {
|
|
9616
|
+
style: style,
|
|
9617
|
+
testID: testID
|
|
9618
|
+
}), children, visible && /*#__PURE__*/React__default.createElement(StyledCount, {
|
|
9619
|
+
testID: "count-badge"
|
|
9620
|
+
}, /*#__PURE__*/React__default.createElement(StyledCountText, null, content)));
|
|
9621
|
+
};
|
|
9622
|
+
|
|
9623
|
+
var _excluded$B = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
9556
9624
|
var getPaddingState = function getPaddingState(content) {
|
|
9557
9625
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
9558
9626
|
};
|
|
@@ -9618,7 +9686,8 @@ var Badge = function Badge(_ref) {
|
|
|
9618
9686
|
}, content));
|
|
9619
9687
|
};
|
|
9620
9688
|
var Badge$1 = Object.assign(Badge, {
|
|
9621
|
-
Status: Status
|
|
9689
|
+
Status: Status$1,
|
|
9690
|
+
Count: Status
|
|
9622
9691
|
});
|
|
9623
9692
|
|
|
9624
9693
|
var isHeroIcon = function isHeroIcon(x) {
|
|
Binary file
|