@hero-design/rn 7.27.1 → 7.28.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.
Files changed (32) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +52 -41
  4. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  5. package/lib/index.js +52 -41
  6. package/package.json +4 -4
  7. package/src/components/Alert/index.tsx +42 -31
  8. package/src/components/Button/Button.tsx +7 -0
  9. package/src/components/FAB/__tests__/index.spec.tsx +4 -4
  10. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  11. package/src/components/Icon/IconList.ts +1 -0
  12. package/src/components/Icon/index.tsx +12 -2
  13. package/src/components/List/StyledListItem.tsx +1 -1
  14. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  15. package/src/components/RichTextEditor/MentionList.tsx +1 -1
  16. package/src/components/RichTextEditor/StyledToolbar.ts +1 -1
  17. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +1 -1
  18. package/src/components/Switch/index.tsx +9 -1
  19. package/src/components/Tabs/index.tsx +6 -0
  20. package/src/components/Tag/index.tsx +25 -17
  21. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  22. package/src/components/TextInput/__tests__/index.spec.tsx +1 -1
  23. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
  24. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +6 -6
  25. package/src/theme/components/avatar.ts +1 -1
  26. package/src/theme/global/scale.ts +1 -1
  27. package/src/utils/hooks.ts +3 -1
  28. package/types/components/Alert/index.d.ts +1 -1
  29. package/types/components/Icon/IconList.d.ts +1 -1
  30. package/types/components/Icon/index.d.ts +1 -1
  31. package/types/components/Icon/utils.d.ts +1 -1
  32. package/types/components/Switch/index.d.ts +1 -1
@@ -1,9 +1,9 @@
1
- @hero-design/rn:build: cache hit, replaying output 83503c617021ad80
1
+ @hero-design/rn:build: cache hit, replaying output 8ade5cdfeb1cbdab
2
2
  @hero-design/rn:build: $ yarn build:js && yarn build:types
3
3
  @hero-design/rn:build: $ rollup -c
4
4
  @hero-design/rn:build: 
5
5
  @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
6
  @hero-design/rn:build: (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
7
  @hero-design/rn:build: (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
8
- @hero-design/rn:build: created lib/index.js, es/index.js in 24.5s
8
+ @hero-design/rn:build: created lib/index.js, es/index.js in 32.3s
9
9
  @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
Binary file
package/es/index.js CHANGED
@@ -230,7 +230,7 @@ var BASE_BORDER_WIDTH = 1;
230
230
  var BASE_SPACE = 8;
231
231
  var BASE_SIZE = 8;
232
232
  var NEUTRAL_FONT = 'BeVietnamPro';
233
- var PLAYFUL_FONT = 'DarkerGrotesque';
233
+ var PLAYFUL_FONT = 'RebondGrotesque';
234
234
  var BASE_FONT_SIZE = 10;
235
235
  var BASE_RADIUS = 4;
236
236
  var scale$1 = {
@@ -1601,7 +1601,7 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1601
1601
  danger: theme.colors.error,
1602
1602
  success: theme.colors.success,
1603
1603
  warning: theme.colors.warning,
1604
- text: theme.colors.invertedText
1604
+ text: theme.colors.onDarkGlobalSurface
1605
1605
  };
1606
1606
  var sizes = {
1607
1607
  small: theme.sizes.xlarge,
@@ -5660,7 +5660,9 @@ var useDeprecation = function useDeprecation(message) {
5660
5660
  var cond = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
5661
5661
  useEffect(function () {
5662
5662
  // eslint-disable-next-line no-console
5663
- console.warn(message);
5663
+ if (cond) {
5664
+ console.warn(message);
5665
+ }
5664
5666
  }, [message, cond]);
5665
5667
  };
5666
5668
 
@@ -5780,7 +5782,7 @@ var Typography = {
5780
5782
  };
5781
5783
 
5782
5784
  // 🔴 DO NOT EDIT — This file is generated automatically.
5783
- var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bookmark', 'box-check', 'box', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'carat-down-small', 'carat-down', 'carat-left-small', 'carat-left', 'carat-right-small', 'carat-right', 'carat-up-small', 'carat-up', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'double-buildings', 'edit-template', 'envelope', 'expense', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'home', 'image', 'import', 'incident-siren', 'instapay', 'list', 'loading-2', 'loading', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'node', 'open-folder', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'save', 'schedule-send', 'schedule', 'search-person', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'survey', 'swag', 'switch', 'tag', 'target', 'teams', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'at-sign', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'camera-outlined', 'cancel', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'comment-outlined', 'contacts-outlined', 'credit-card-outlined', 'cup-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-outlined', 'edit-template-outlined', 'email-outlined', 'enter-arrow', 'envelope-outlined', 'expense-outlined', 'explore-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-verified-outlined', 'filter-outlined', 'folder-outlined', 'folder-user-outlined', 'funnel-filter-outline', 'graph-outlined', 'hand-holding-user-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'qr-code-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'return-arrow', 'rostering-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'speaker-active-outlined', 'speaker-outlined', 'star-outlined', 'stopwatch-outlined', 'strikethrough', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'target-outlined', 'timesheet-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-outlined', 'unavailable', 'underline', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'wallet-outlined'];
5785
+ var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bookmark', 'box-check', 'box', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'carat-down-small', 'carat-down', 'carat-left-small', 'carat-left', 'carat-right-small', 'carat-right', 'carat-up-small', 'carat-up', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'double-buildings', 'edit-template', 'envelope', 'expense', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'home', 'image', 'import', 'incident-siren', 'instapay', 'list', 'loading-2', 'loading', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'node', 'open-folder', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'save', 'schedule-send', 'schedule', 'search-person', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'survey', 'swag', 'switch', 'tag', 'target', 'teams', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'at-sign', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'camera-outlined', 'cancel', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'comment-outlined', 'contacts-outlined', 'credit-card-outlined', 'cup-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-outlined', 'edit-template-outlined', 'email-outlined', 'enter-arrow', 'envelope-outlined', 'expense-outlined', 'explore-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-verified-outlined', 'filter-outlined', 'folder-outlined', 'folder-user-outlined', 'funnel-filter-outline', 'graph-outlined', 'hand-holding-user-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'qr-code-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'return-arrow', 'rostering-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'speaker-active-outlined', 'speaker-outlined', 'star-outlined', 'stopwatch-outlined', 'strikethrough', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'target-outlined', 'timesheet-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-outlined', 'unavailable', 'underline', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'wallet-outlined'];
5784
5786
 
5785
5787
  var activate = 59000;
5786
5788
  var adjustment = 59003;
@@ -5860,11 +5862,11 @@ var redeem = 59316;
5860
5862
  var refresh = 59317;
5861
5863
  var remove = 59318;
5862
5864
  var restart = 59320;
5863
- var strikethrough = 59338;
5864
- var sync = 59343;
5865
- var transfer = 59346;
5866
- var unavailable = 59349;
5867
- var underline = 59350;
5865
+ var strikethrough = 59339;
5866
+ var sync = 59344;
5867
+ var transfer = 59347;
5868
+ var unavailable = 59350;
5869
+ var underline = 59351;
5868
5870
  var glyphMap = {
5869
5871
  activate: activate,
5870
5872
  "add-emoji": 59001,
@@ -6196,36 +6198,37 @@ var glyphMap = {
6196
6198
  "send-outlined": 59327,
6197
6199
  "share-1": 59328,
6198
6200
  "share-2": 59329,
6199
- "single-down-arrow": 59330,
6200
- "single-left-arrow": 59331,
6201
- "single-right-arrow": 59332,
6202
- "single-up-arrow": 59333,
6203
- "speaker-active-outlined": 59334,
6204
- "speaker-outlined": 59335,
6205
- "star-outlined": 59336,
6206
- "stopwatch-outlined": 59337,
6201
+ "share-outlined": 59330,
6202
+ "single-down-arrow": 59331,
6203
+ "single-left-arrow": 59332,
6204
+ "single-right-arrow": 59333,
6205
+ "single-up-arrow": 59334,
6206
+ "speaker-active-outlined": 59335,
6207
+ "speaker-outlined": 59336,
6208
+ "star-outlined": 59337,
6209
+ "stopwatch-outlined": 59338,
6207
6210
  strikethrough: strikethrough,
6208
- "suitcase-clock-outlined": 59339,
6209
- "suitcase-outlined": 59340,
6210
- "survey-outlined": 59341,
6211
- "switch-outlined": 59342,
6211
+ "suitcase-clock-outlined": 59340,
6212
+ "suitcase-outlined": 59341,
6213
+ "survey-outlined": 59342,
6214
+ "switch-outlined": 59343,
6212
6215
  sync: sync,
6213
- "target-outlined": 59344,
6214
- "timesheet-outlined": 59345,
6216
+ "target-outlined": 59345,
6217
+ "timesheet-outlined": 59346,
6215
6218
  transfer: transfer,
6216
- "trash-bin-outlined": 59347,
6217
- "umbrela-outlined": 59348,
6219
+ "trash-bin-outlined": 59348,
6220
+ "umbrela-outlined": 59349,
6218
6221
  unavailable: unavailable,
6219
6222
  underline: underline,
6220
- "unlock-outlined": 59351,
6221
- "upload-outlined": 59352,
6222
- "user-circle-outlined": 59353,
6223
- "user-gear-outlined": 59354,
6224
- "user-outlined": 59355,
6225
- "user-rectangle-outlined": 59356,
6226
- "video-1-outlined": 59357,
6227
- "video-2-outlined": 59358,
6228
- "wallet-outlined": 59359
6223
+ "unlock-outlined": 59352,
6224
+ "upload-outlined": 59353,
6225
+ "user-circle-outlined": 59354,
6226
+ "user-gear-outlined": 59355,
6227
+ "user-outlined": 59356,
6228
+ "user-rectangle-outlined": 59357,
6229
+ "video-1-outlined": 59358,
6230
+ "video-2-outlined": 59359,
6231
+ "wallet-outlined": 59360
6229
6232
  };
6230
6233
 
6231
6234
  var HeroIcon = createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
@@ -6290,6 +6293,7 @@ var Icon = function Icon(_ref) {
6290
6293
  testID = _ref.testID,
6291
6294
  _ref$spin = _ref.spin,
6292
6295
  spin = _ref$spin === void 0 ? false : _ref$spin;
6296
+ useDeprecation("".concat(icon, " icon is deprecated and will be removed in the next major release, please use ").concat(icon.replace('carat', 'caret'), " instead."), icon.startsWith('carat'));
6293
6297
  return spin ? /*#__PURE__*/React.createElement(AnimatedIcon, {
6294
6298
  name: icon,
6295
6299
  themeIntent: intent,
@@ -6446,10 +6450,11 @@ var Alert = function Alert(_ref2) {
6446
6450
  _ref2$intent = _ref2.intent,
6447
6451
  intent = _ref2$intent === void 0 ? 'info' : _ref2$intent,
6448
6452
  onClose = _ref2.onClose,
6449
- _ref2$variant = _ref2.variant,
6450
- variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
6453
+ _variant = _ref2.variant,
6451
6454
  style = _ref2.style,
6452
6455
  testID = _ref2.testID;
6456
+ var variant = _variant === undefined ? 'default' : _variant;
6457
+ useDeprecation("Alert's variant prop will be removed in the next major release. Rounded will be the only variant available.", _variant !== undefined);
6453
6458
  return /*#__PURE__*/React.createElement(Container$1, {
6454
6459
  themeVariant: variant,
6455
6460
  themeIntent: intent,
@@ -7456,6 +7461,7 @@ var Button = function Button(_ref) {
7456
7461
  _ref$variant = _ref.variant,
7457
7462
  variant = _ref$variant === void 0 ? 'filled' : _ref$variant;
7458
7463
  var themeVariant = getThemeVariant(variant, intent);
7464
+ useDeprecation("Button's basic-transparent variant is deprecated and will be removed in the next major release.\nPlease use other variants instead.", variant === 'basic-transparent');
7459
7465
  return /*#__PURE__*/React.createElement(StyledButtonContainer, {
7460
7466
  accessibilityHint: accessibilityHint,
7461
7467
  accessibilityLabel: accessibilityLabel,
@@ -11740,7 +11746,7 @@ var StyledListItemContainer$1 = index$a(TouchableOpacity)(function (_ref) {
11740
11746
  return _objectSpread2(_objectSpread2({}, sharedStyles), {}, {
11741
11747
  alignItems: 'center',
11742
11748
  borderRadius: theme.__hd__.list.radii.card,
11743
- shadowColor: theme.colors.shadow,
11749
+ shadowColor: theme.colors.secondaryOutline,
11744
11750
  shadowRadius: theme.__hd__.list.radii.cardShadow,
11745
11751
  shadowOffset: theme.__hd__.list.shadows.cardOffset,
11746
11752
  shadowOpacity: theme.__hd__.list.opacity.cardShadow,
@@ -13439,8 +13445,7 @@ var getVariant = function getVariant(_ref) {
13439
13445
  return checked ? 'checked' : 'unchecked';
13440
13446
  };
13441
13447
  var Switch = function Switch(_ref2) {
13442
- var _ref2$size = _ref2.size,
13443
- size = _ref2$size === void 0 ? 'medium' : _ref2$size,
13448
+ var _size = _ref2.size,
13444
13449
  _ref2$disabled = _ref2.disabled,
13445
13450
  disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
13446
13451
  _ref2$checked = _ref2.checked,
@@ -13448,11 +13453,13 @@ var Switch = function Switch(_ref2) {
13448
13453
  onPress = _ref2.onPress,
13449
13454
  style = _ref2.style,
13450
13455
  testID = _ref2.testID;
13456
+ var size = _size === undefined ? 'medium' : _size;
13451
13457
  var theme = useTheme$1();
13452
13458
  var variant = getVariant({
13453
13459
  disabled: disabled,
13454
13460
  checked: checked
13455
13461
  });
13462
+ useDeprecation("Switch's size prop will be removed in the next major release.", _size !== undefined);
13456
13463
  var offset = checked ? (theme.__hd__["switch"].sizes.widths[size] - theme.__hd__["switch"].sizes.thumbs[size]) / 2 + theme.__hd__["switch"].sizes.thumbs[size] / 2 : 0;
13457
13464
  var _useState = useState(function () {
13458
13465
  return new Animated.Value(offset);
@@ -13847,6 +13854,9 @@ var Tabs = function Tabs(_ref2) {
13847
13854
  _ref2$swipeEnabled = _ref2.swipeEnabled,
13848
13855
  swipeEnabled = _ref2$swipeEnabled === void 0 ? true : _ref2$swipeEnabled,
13849
13856
  componentTestID = _ref2.testID;
13857
+ useDeprecation("Tabs' showBadge will be removed in the next major release. Please use badge prop instead.", tabs.some(function (item) {
13858
+ return item.showBadge !== undefined;
13859
+ }));
13850
13860
  var theme = useTheme$1();
13851
13861
  var insets = useSafeAreaInsets();
13852
13862
  var pagerViewRef = React.useRef(null);
@@ -14004,6 +14014,7 @@ var Tag = function Tag(_ref) {
14004
14014
  style = _ref.style,
14005
14015
  testID = _ref.testID,
14006
14016
  nativeProps = _objectWithoutProperties(_ref, _excluded);
14017
+ useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use other intents instead.", intent !== 'default');
14007
14018
  return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
14008
14019
  themeIntent: intent,
14009
14020
  themeVariant: variant,
@@ -14612,7 +14623,7 @@ var StyledSeparator = index$a(View)(function (_ref3) {
14612
14623
  flexDirection: 'row',
14613
14624
  alignItems: 'center',
14614
14625
  marginHorizontal: theme.space.small,
14615
- backgroundColor: theme.colors.outline
14626
+ backgroundColor: theme.colors.secondaryOutline
14616
14627
  };
14617
14628
  });
14618
14629
 
@@ -14803,7 +14814,7 @@ var MentionList = function MentionList(_ref) {
14803
14814
  color: theme.colors.secondary,
14804
14815
  borderRadius: theme.__hd__.richTextEditor.radii.mention,
14805
14816
  padding: highlighted ? theme.__hd__.richTextEditor.space.mention : 0,
14806
- background: highlighted ? theme.colors.lightHighlightedSurface : 'transparent',
14817
+ background: highlighted ? theme.colors.highlightedSurface : 'transparent',
14807
14818
  marginTop: theme.space.xxsmall,
14808
14819
  marginBottom: theme.space.xxsmall,
14809
14820
  display: 'inline-flex'
package/lib/index.js CHANGED
@@ -259,7 +259,7 @@ var BASE_BORDER_WIDTH = 1;
259
259
  var BASE_SPACE = 8;
260
260
  var BASE_SIZE = 8;
261
261
  var NEUTRAL_FONT = 'BeVietnamPro';
262
- var PLAYFUL_FONT = 'DarkerGrotesque';
262
+ var PLAYFUL_FONT = 'RebondGrotesque';
263
263
  var BASE_FONT_SIZE = 10;
264
264
  var BASE_RADIUS = 4;
265
265
  var scale$1 = {
@@ -1630,7 +1630,7 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1630
1630
  danger: theme.colors.error,
1631
1631
  success: theme.colors.success,
1632
1632
  warning: theme.colors.warning,
1633
- text: theme.colors.invertedText
1633
+ text: theme.colors.onDarkGlobalSurface
1634
1634
  };
1635
1635
  var sizes = {
1636
1636
  small: theme.sizes.xlarge,
@@ -5689,7 +5689,9 @@ var useDeprecation = function useDeprecation(message) {
5689
5689
  var cond = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
5690
5690
  React.useEffect(function () {
5691
5691
  // eslint-disable-next-line no-console
5692
- console.warn(message);
5692
+ if (cond) {
5693
+ console.warn(message);
5694
+ }
5693
5695
  }, [message, cond]);
5694
5696
  };
5695
5697
 
@@ -5809,7 +5811,7 @@ var Typography = {
5809
5811
  };
5810
5812
 
5811
5813
  // 🔴 DO NOT EDIT — This file is generated automatically.
5812
- var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bookmark', 'box-check', 'box', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'carat-down-small', 'carat-down', 'carat-left-small', 'carat-left', 'carat-right-small', 'carat-right', 'carat-up-small', 'carat-up', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'double-buildings', 'edit-template', 'envelope', 'expense', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'home', 'image', 'import', 'incident-siren', 'instapay', 'list', 'loading-2', 'loading', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'node', 'open-folder', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'save', 'schedule-send', 'schedule', 'search-person', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'survey', 'swag', 'switch', 'tag', 'target', 'teams', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'at-sign', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'camera-outlined', 'cancel', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'comment-outlined', 'contacts-outlined', 'credit-card-outlined', 'cup-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-outlined', 'edit-template-outlined', 'email-outlined', 'enter-arrow', 'envelope-outlined', 'expense-outlined', 'explore-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-verified-outlined', 'filter-outlined', 'folder-outlined', 'folder-user-outlined', 'funnel-filter-outline', 'graph-outlined', 'hand-holding-user-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'qr-code-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'return-arrow', 'rostering-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'speaker-active-outlined', 'speaker-outlined', 'star-outlined', 'stopwatch-outlined', 'strikethrough', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'target-outlined', 'timesheet-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-outlined', 'unavailable', 'underline', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'wallet-outlined'];
5814
+ var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bookmark', 'box-check', 'box', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'carat-down-small', 'carat-down', 'carat-left-small', 'carat-left', 'carat-right-small', 'carat-right', 'carat-up-small', 'carat-up', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'double-buildings', 'edit-template', 'envelope', 'expense', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'home', 'image', 'import', 'incident-siren', 'instapay', 'list', 'loading-2', 'loading', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'node', 'open-folder', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'save', 'schedule-send', 'schedule', 'search-person', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'survey', 'swag', 'switch', 'tag', 'target', 'teams', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'at-sign', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'camera-outlined', 'cancel', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'comment-outlined', 'contacts-outlined', 'credit-card-outlined', 'cup-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-outlined', 'edit-template-outlined', 'email-outlined', 'enter-arrow', 'envelope-outlined', 'expense-outlined', 'explore-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-verified-outlined', 'filter-outlined', 'folder-outlined', 'folder-user-outlined', 'funnel-filter-outline', 'graph-outlined', 'hand-holding-user-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'qr-code-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'return-arrow', 'rostering-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'speaker-active-outlined', 'speaker-outlined', 'star-outlined', 'stopwatch-outlined', 'strikethrough', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'target-outlined', 'timesheet-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-outlined', 'unavailable', 'underline', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'wallet-outlined'];
5813
5815
 
5814
5816
  var activate = 59000;
5815
5817
  var adjustment = 59003;
@@ -5889,11 +5891,11 @@ var redeem = 59316;
5889
5891
  var refresh = 59317;
5890
5892
  var remove = 59318;
5891
5893
  var restart = 59320;
5892
- var strikethrough = 59338;
5893
- var sync = 59343;
5894
- var transfer = 59346;
5895
- var unavailable = 59349;
5896
- var underline = 59350;
5894
+ var strikethrough = 59339;
5895
+ var sync = 59344;
5896
+ var transfer = 59347;
5897
+ var unavailable = 59350;
5898
+ var underline = 59351;
5897
5899
  var glyphMap = {
5898
5900
  activate: activate,
5899
5901
  "add-emoji": 59001,
@@ -6225,36 +6227,37 @@ var glyphMap = {
6225
6227
  "send-outlined": 59327,
6226
6228
  "share-1": 59328,
6227
6229
  "share-2": 59329,
6228
- "single-down-arrow": 59330,
6229
- "single-left-arrow": 59331,
6230
- "single-right-arrow": 59332,
6231
- "single-up-arrow": 59333,
6232
- "speaker-active-outlined": 59334,
6233
- "speaker-outlined": 59335,
6234
- "star-outlined": 59336,
6235
- "stopwatch-outlined": 59337,
6230
+ "share-outlined": 59330,
6231
+ "single-down-arrow": 59331,
6232
+ "single-left-arrow": 59332,
6233
+ "single-right-arrow": 59333,
6234
+ "single-up-arrow": 59334,
6235
+ "speaker-active-outlined": 59335,
6236
+ "speaker-outlined": 59336,
6237
+ "star-outlined": 59337,
6238
+ "stopwatch-outlined": 59338,
6236
6239
  strikethrough: strikethrough,
6237
- "suitcase-clock-outlined": 59339,
6238
- "suitcase-outlined": 59340,
6239
- "survey-outlined": 59341,
6240
- "switch-outlined": 59342,
6240
+ "suitcase-clock-outlined": 59340,
6241
+ "suitcase-outlined": 59341,
6242
+ "survey-outlined": 59342,
6243
+ "switch-outlined": 59343,
6241
6244
  sync: sync,
6242
- "target-outlined": 59344,
6243
- "timesheet-outlined": 59345,
6245
+ "target-outlined": 59345,
6246
+ "timesheet-outlined": 59346,
6244
6247
  transfer: transfer,
6245
- "trash-bin-outlined": 59347,
6246
- "umbrela-outlined": 59348,
6248
+ "trash-bin-outlined": 59348,
6249
+ "umbrela-outlined": 59349,
6247
6250
  unavailable: unavailable,
6248
6251
  underline: underline,
6249
- "unlock-outlined": 59351,
6250
- "upload-outlined": 59352,
6251
- "user-circle-outlined": 59353,
6252
- "user-gear-outlined": 59354,
6253
- "user-outlined": 59355,
6254
- "user-rectangle-outlined": 59356,
6255
- "video-1-outlined": 59357,
6256
- "video-2-outlined": 59358,
6257
- "wallet-outlined": 59359
6252
+ "unlock-outlined": 59352,
6253
+ "upload-outlined": 59353,
6254
+ "user-circle-outlined": 59354,
6255
+ "user-gear-outlined": 59355,
6256
+ "user-outlined": 59356,
6257
+ "user-rectangle-outlined": 59357,
6258
+ "video-1-outlined": 59358,
6259
+ "video-2-outlined": 59359,
6260
+ "wallet-outlined": 59360
6258
6261
  };
6259
6262
 
6260
6263
  var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
@@ -6319,6 +6322,7 @@ var Icon = function Icon(_ref) {
6319
6322
  testID = _ref.testID,
6320
6323
  _ref$spin = _ref.spin,
6321
6324
  spin = _ref$spin === void 0 ? false : _ref$spin;
6325
+ useDeprecation("".concat(icon, " icon is deprecated and will be removed in the next major release, please use ").concat(icon.replace('carat', 'caret'), " instead."), icon.startsWith('carat'));
6322
6326
  return spin ? /*#__PURE__*/React__default["default"].createElement(AnimatedIcon, {
6323
6327
  name: icon,
6324
6328
  themeIntent: intent,
@@ -6475,10 +6479,11 @@ var Alert = function Alert(_ref2) {
6475
6479
  _ref2$intent = _ref2.intent,
6476
6480
  intent = _ref2$intent === void 0 ? 'info' : _ref2$intent,
6477
6481
  onClose = _ref2.onClose,
6478
- _ref2$variant = _ref2.variant,
6479
- variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
6482
+ _variant = _ref2.variant,
6480
6483
  style = _ref2.style,
6481
6484
  testID = _ref2.testID;
6485
+ var variant = _variant === undefined ? 'default' : _variant;
6486
+ useDeprecation("Alert's variant prop will be removed in the next major release. Rounded will be the only variant available.", _variant !== undefined);
6482
6487
  return /*#__PURE__*/React__default["default"].createElement(Container$1, {
6483
6488
  themeVariant: variant,
6484
6489
  themeIntent: intent,
@@ -7485,6 +7490,7 @@ var Button = function Button(_ref) {
7485
7490
  _ref$variant = _ref.variant,
7486
7491
  variant = _ref$variant === void 0 ? 'filled' : _ref$variant;
7487
7492
  var themeVariant = getThemeVariant(variant, intent);
7493
+ useDeprecation("Button's basic-transparent variant is deprecated and will be removed in the next major release.\nPlease use other variants instead.", variant === 'basic-transparent');
7488
7494
  return /*#__PURE__*/React__default["default"].createElement(StyledButtonContainer, {
7489
7495
  accessibilityHint: accessibilityHint,
7490
7496
  accessibilityLabel: accessibilityLabel,
@@ -11769,7 +11775,7 @@ var StyledListItemContainer$1 = index$a(reactNative.TouchableOpacity)(function (
11769
11775
  return _objectSpread2(_objectSpread2({}, sharedStyles), {}, {
11770
11776
  alignItems: 'center',
11771
11777
  borderRadius: theme.__hd__.list.radii.card,
11772
- shadowColor: theme.colors.shadow,
11778
+ shadowColor: theme.colors.secondaryOutline,
11773
11779
  shadowRadius: theme.__hd__.list.radii.cardShadow,
11774
11780
  shadowOffset: theme.__hd__.list.shadows.cardOffset,
11775
11781
  shadowOpacity: theme.__hd__.list.opacity.cardShadow,
@@ -13468,8 +13474,7 @@ var getVariant = function getVariant(_ref) {
13468
13474
  return checked ? 'checked' : 'unchecked';
13469
13475
  };
13470
13476
  var Switch = function Switch(_ref2) {
13471
- var _ref2$size = _ref2.size,
13472
- size = _ref2$size === void 0 ? 'medium' : _ref2$size,
13477
+ var _size = _ref2.size,
13473
13478
  _ref2$disabled = _ref2.disabled,
13474
13479
  disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
13475
13480
  _ref2$checked = _ref2.checked,
@@ -13477,11 +13482,13 @@ var Switch = function Switch(_ref2) {
13477
13482
  onPress = _ref2.onPress,
13478
13483
  style = _ref2.style,
13479
13484
  testID = _ref2.testID;
13485
+ var size = _size === undefined ? 'medium' : _size;
13480
13486
  var theme = useTheme$1();
13481
13487
  var variant = getVariant({
13482
13488
  disabled: disabled,
13483
13489
  checked: checked
13484
13490
  });
13491
+ useDeprecation("Switch's size prop will be removed in the next major release.", _size !== undefined);
13485
13492
  var offset = checked ? (theme.__hd__["switch"].sizes.widths[size] - theme.__hd__["switch"].sizes.thumbs[size]) / 2 + theme.__hd__["switch"].sizes.thumbs[size] / 2 : 0;
13486
13493
  var _useState = React.useState(function () {
13487
13494
  return new reactNative.Animated.Value(offset);
@@ -13876,6 +13883,9 @@ var Tabs = function Tabs(_ref2) {
13876
13883
  _ref2$swipeEnabled = _ref2.swipeEnabled,
13877
13884
  swipeEnabled = _ref2$swipeEnabled === void 0 ? true : _ref2$swipeEnabled,
13878
13885
  componentTestID = _ref2.testID;
13886
+ useDeprecation("Tabs' showBadge will be removed in the next major release. Please use badge prop instead.", tabs.some(function (item) {
13887
+ return item.showBadge !== undefined;
13888
+ }));
13879
13889
  var theme = useTheme$1();
13880
13890
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
13881
13891
  var pagerViewRef = React__default["default"].useRef(null);
@@ -14033,6 +14043,7 @@ var Tag = function Tag(_ref) {
14033
14043
  style = _ref.style,
14034
14044
  testID = _ref.testID,
14035
14045
  nativeProps = _objectWithoutProperties(_ref, _excluded);
14046
+ useDeprecation("Tag's default intent is deprecated and will be removed in the next major release.\nPlease use other intents instead.", intent !== 'default');
14036
14047
  return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
14037
14048
  themeIntent: intent,
14038
14049
  themeVariant: variant,
@@ -14641,7 +14652,7 @@ var StyledSeparator = index$a(reactNative.View)(function (_ref3) {
14641
14652
  flexDirection: 'row',
14642
14653
  alignItems: 'center',
14643
14654
  marginHorizontal: theme.space.small,
14644
- backgroundColor: theme.colors.outline
14655
+ backgroundColor: theme.colors.secondaryOutline
14645
14656
  };
14646
14657
  });
14647
14658
 
@@ -14832,7 +14843,7 @@ var MentionList = function MentionList(_ref) {
14832
14843
  color: theme.colors.secondary,
14833
14844
  borderRadius: theme.__hd__.richTextEditor.radii.mention,
14834
14845
  padding: highlighted ? theme.__hd__.richTextEditor.space.mention : 0,
14835
- background: highlighted ? theme.colors.lightHighlightedSurface : 'transparent',
14846
+ background: highlighted ? theme.colors.highlightedSurface : 'transparent',
14836
14847
  marginTop: theme.space.xxsmall,
14837
14848
  marginBottom: theme.space.xxsmall,
14838
14849
  display: 'inline-flex'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "7.27.1",
3
+ "version": "7.28.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@emotion/native": "^11.9.3",
22
22
  "@emotion/react": "^11.9.3",
23
- "@hero-design/colors": "7.27.1",
23
+ "@hero-design/colors": "7.28.0",
24
24
  "date-fns": "^2.16.1",
25
25
  "events": "^3.2.0",
26
26
  "hero-editor": "^1.9.12"
@@ -58,7 +58,7 @@
58
58
  "@types/react-native": "^0.67.7",
59
59
  "@types/react-native-vector-icons": "^6.4.10",
60
60
  "babel-plugin-inline-import": "^3.0.0",
61
- "eslint-config-hd": "7.27.1",
61
+ "eslint-config-hd": "7.28.0",
62
62
  "jest": "^27.3.1",
63
63
  "react": "17.0.2",
64
64
  "react-native": "0.65.1",
@@ -72,7 +72,7 @@
72
72
  "rollup-plugin-copy": "^3.4.0",
73
73
  "rollup-plugin-flow": "^1.1.1",
74
74
  "ts-jest": "^27.0.7",
75
- "prettier-config-hd": "7.27.1",
75
+ "prettier-config-hd": "7.28.0",
76
76
  "rn-7-23-0": "npm:@hero-design/rn@7.23.0"
77
77
  },
78
78
  "prettier": "prettier-config-hd"
@@ -11,6 +11,7 @@ import {
11
11
  TextContainer,
12
12
  } from './StyledAlert';
13
13
  import type { IconName } from '../Icon';
14
+ import { useDeprecation } from '../../utils/hooks';
14
15
 
15
16
  const getIntentIcon = (
16
17
  intent: 'success' | 'info' | 'warning' | 'error' | 'notification'
@@ -80,39 +81,49 @@ const Alert = ({
80
81
  title,
81
82
  intent = 'info',
82
83
  onClose,
83
- variant = 'default',
84
+ variant: _variant,
84
85
  style,
85
86
  testID,
86
- }: AlertProps): JSX.Element => (
87
- <Container
88
- themeVariant={variant}
89
- themeIntent={intent}
90
- style={style}
91
- testID={testID}
92
- >
93
- <ContentContainer showDivider={!!onClose}>
94
- {icon !== null ? (
95
- <AlertIcon icon={icon || getIntentIcon(intent)} />
87
+ }: AlertProps): JSX.Element => {
88
+ const variant: AlertProps['variant'] =
89
+ _variant === undefined ? 'default' : _variant;
90
+
91
+ useDeprecation(
92
+ "Alert's variant prop will be removed in the next major release. Rounded will be the only variant available.",
93
+ _variant !== undefined
94
+ );
95
+
96
+ return (
97
+ <Container
98
+ themeVariant={variant}
99
+ themeIntent={intent}
100
+ style={style}
101
+ testID={testID}
102
+ >
103
+ <ContentContainer showDivider={!!onClose}>
104
+ {icon !== null ? (
105
+ <AlertIcon icon={icon || getIntentIcon(intent)} />
106
+ ) : null}
107
+ <TextContainer>
108
+ {typeof title === 'string' ? (
109
+ <Typography.Text fontWeight="semi-bold">{title}</Typography.Text>
110
+ ) : (
111
+ title
112
+ )}
113
+ {typeof content === 'string' ? (
114
+ <Typography.Text>{content}</Typography.Text>
115
+ ) : (
116
+ content
117
+ )}
118
+ </TextContainer>
119
+ </ContentContainer>
120
+ {onClose ? (
121
+ <CTAWrapper onPress={onClose} testID="alert-close-icon">
122
+ <Icon icon="cancel" size="small" />
123
+ </CTAWrapper>
96
124
  ) : null}
97
- <TextContainer>
98
- {typeof title === 'string' ? (
99
- <Typography.Text fontWeight="semi-bold">{title}</Typography.Text>
100
- ) : (
101
- title
102
- )}
103
- {typeof content === 'string' ? (
104
- <Typography.Text>{content}</Typography.Text>
105
- ) : (
106
- content
107
- )}
108
- </TextContainer>
109
- </ContentContainer>
110
- {onClose ? (
111
- <CTAWrapper onPress={onClose} testID="alert-close-icon">
112
- <Icon icon="cancel" size="small" />
113
- </CTAWrapper>
114
- ) : null}
115
- </Container>
116
- );
125
+ </Container>
126
+ );
127
+ };
117
128
 
118
129
  export default Alert;