@hero-design/rn 8.61.3 → 8.63.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/lib/index.js CHANGED
@@ -2812,7 +2812,8 @@ var getListTheme = function getListTheme(theme) {
2812
2812
  listItemContainerPadding: theme.space.medium,
2813
2813
  leadingStatusMarginRight: theme.space.small,
2814
2814
  prefixContainerMarginRight: theme.space.small,
2815
- suffixContainerMarginLeft: theme.space.small
2815
+ suffixContainerMarginLeft: theme.space.small,
2816
+ childrenContainerTopMargin: theme.space.small
2816
2817
  };
2817
2818
  var radii = {
2818
2819
  item: theme.radii.medium,
@@ -6941,7 +6942,7 @@ var Typography = {
6941
6942
  };
6942
6943
 
6943
6944
  // 🔴 DO NOT EDIT — This file is generated automatically.
6944
- var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', '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', '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', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', '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', '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', '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', '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-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-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-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-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', 'email-outlined', 'enter-arrow', 'envelope-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', 'folder-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', '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', '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', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', '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', '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', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', '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'];
6945
+ var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', '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', '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', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', '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', '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', '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', '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-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-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', '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', 'email-outlined', 'end-break-outlined', 'enter-arrow', 'envelope-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', 'folder-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', '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', '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', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', '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', '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', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', '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'];
6945
6946
 
6946
6947
  var activate = 59000;
6947
6948
  var adjustment = 59003;
@@ -7019,20 +7020,20 @@ var add = 59190;
7019
7020
  var bold = 59215;
7020
7021
  var cancel = 59229;
7021
7022
  var checkmark = 59235;
7022
- var italic = 59320;
7023
- var local_mall_outlined = 59327;
7024
- var number = 59349;
7025
- var percentage = 59354;
7026
- var redeem = 59364;
7027
- var refresh = 59365;
7028
- var remove = 59366;
7029
- var restart = 59368;
7030
- var shopping_basket_outlined = 59382;
7031
- var strikethrough = 59396;
7032
- var sync = 59402;
7033
- var transfer = 59410;
7034
- var unavailable = 59414;
7035
- var underline = 59415;
7023
+ var italic = 59323;
7024
+ var local_mall_outlined = 59330;
7025
+ var number = 59352;
7026
+ var percentage = 59357;
7027
+ var redeem = 59367;
7028
+ var refresh = 59368;
7029
+ var remove = 59369;
7030
+ var restart = 59371;
7031
+ var shopping_basket_outlined = 59385;
7032
+ var strikethrough = 59400;
7033
+ var sync = 59406;
7034
+ var transfer = 59414;
7035
+ var unavailable = 59418;
7036
+ var underline = 59419;
7036
7037
  var glyphMap = {
7037
7038
  activate: activate,
7038
7039
  "add-emoji": 59001,
@@ -7282,186 +7283,190 @@ var glyphMap = {
7282
7283
  "circle-up-outlined": 59245,
7283
7284
  "circle-warning-outlined": 59246,
7284
7285
  "clock-2-outlined": 59247,
7285
- "clock-outlined": 59248,
7286
- "cog-outlined": 59249,
7287
- "coin-outlined": 59250,
7288
- "coin-super-outlined": 59251,
7289
- "comment-outlined": 59252,
7290
- "contacts-outlined": 59253,
7291
- "contacts-user-outlined": 59254,
7292
- "credit-card-outlined": 59255,
7293
- "cup-outlined": 59256,
7294
- "dentistry-outlined": 59257,
7295
- "direction-arrows-outlined": 59258,
7296
- "directory-outlined": 59259,
7297
- "document-outlined": 59260,
7298
- "dollar-box-outlined": 59261,
7299
- "dollar-card-outlined": 59262,
7300
- "dollar-coin-shine-outlined": 59263,
7301
- "dollar-credit-card-outlined": 59264,
7302
- "dollar-sign": 59265,
7303
- "double-buildings-outlined": 59266,
7304
- "double-left-arrows": 59267,
7305
- "double-right-arrows": 59268,
7306
- "download-box-outlined": 59269,
7307
- "download-outlined": 59270,
7308
- "edit-template-outlined": 59271,
7309
- "email-outlined": 59272,
7310
- "enter-arrow": 59273,
7311
- "envelope-outlined": 59274,
7312
- "expense-approval-outlined": 59275,
7313
- "expense-outlined": 59276,
7314
- "explore-outlined": 59277,
7315
- "extension-outlined": 59278,
7316
- "external-link": 59279,
7317
- "eye-invisible-outlined": 59280,
7318
- "eye-outlined": 59281,
7319
- "face-id": 59282,
7320
- "face-meh-outlined": 59283,
7321
- "face-open-smiley-outlined": 59284,
7322
- "face-sad-outlined": 59285,
7323
- "face-smiley-outlined": 59286,
7324
- "fastfood-outlined": 59287,
7325
- "feed-outlined": 59288,
7326
- "file-certified-outlined": 59289,
7327
- "file-clone-outlined": 59290,
7328
- "file-copy-outlined": 59291,
7329
- "file-dispose-outlined": 59292,
7330
- "file-dollar-certified-outlined": 59293,
7331
- "file-dollar-outlined": 59294,
7332
- "file-download-outlined": 59295,
7333
- "file-export-outlined": 59296,
7334
- "file-lock-outlined": 59297,
7335
- "file-outlined": 59298,
7336
- "file-search-outlined": 59299,
7337
- "file-secured-outlined": 59300,
7338
- "file-statutory-outlined": 59301,
7339
- "file-verified-outlined": 59302,
7340
- "filter-outlined": 59303,
7341
- "folder-outlined": 59304,
7342
- "folder-user-outlined": 59305,
7343
- "form-outlined": 59306,
7344
- "funnel-filter-outline": 59307,
7345
- "goal-outlined": 59308,
7346
- "graph-outlined": 59309,
7347
- "hand-holding-user-outlined": 59310,
7348
- "happy-sun-outlined": 59311,
7349
- "health-bag-outlined": 59312,
7350
- "heart-outlined": 59313,
7351
- "home-active-outlined": 59314,
7352
- "home-outlined": 59315,
7353
- "id-card-outlined": 59316,
7354
- "image-outlined": 59317,
7355
- "import-outlined": 59318,
7356
- "instapay-outlined": 59319,
7286
+ "clock-in-outlined": 59248,
7287
+ "clock-out-outlined": 59249,
7288
+ "clock-outlined": 59250,
7289
+ "cog-outlined": 59251,
7290
+ "coin-outlined": 59252,
7291
+ "coin-super-outlined": 59253,
7292
+ "comment-outlined": 59254,
7293
+ "contacts-outlined": 59255,
7294
+ "contacts-user-outlined": 59256,
7295
+ "credit-card-outlined": 59257,
7296
+ "cup-outlined": 59258,
7297
+ "dentistry-outlined": 59259,
7298
+ "direction-arrows-outlined": 59260,
7299
+ "directory-outlined": 59261,
7300
+ "document-outlined": 59262,
7301
+ "dollar-box-outlined": 59263,
7302
+ "dollar-card-outlined": 59264,
7303
+ "dollar-coin-shine-outlined": 59265,
7304
+ "dollar-credit-card-outlined": 59266,
7305
+ "dollar-sign": 59267,
7306
+ "double-buildings-outlined": 59268,
7307
+ "double-left-arrows": 59269,
7308
+ "double-right-arrows": 59270,
7309
+ "download-box-outlined": 59271,
7310
+ "download-outlined": 59272,
7311
+ "edit-template-outlined": 59273,
7312
+ "email-outlined": 59274,
7313
+ "end-break-outlined": 59275,
7314
+ "enter-arrow": 59276,
7315
+ "envelope-outlined": 59277,
7316
+ "expense-approval-outlined": 59278,
7317
+ "expense-outlined": 59279,
7318
+ "explore-outlined": 59280,
7319
+ "extension-outlined": 59281,
7320
+ "external-link": 59282,
7321
+ "eye-invisible-outlined": 59283,
7322
+ "eye-outlined": 59284,
7323
+ "face-id": 59285,
7324
+ "face-meh-outlined": 59286,
7325
+ "face-open-smiley-outlined": 59287,
7326
+ "face-sad-outlined": 59288,
7327
+ "face-smiley-outlined": 59289,
7328
+ "fastfood-outlined": 59290,
7329
+ "feed-outlined": 59291,
7330
+ "file-certified-outlined": 59292,
7331
+ "file-clone-outlined": 59293,
7332
+ "file-copy-outlined": 59294,
7333
+ "file-dispose-outlined": 59295,
7334
+ "file-dollar-certified-outlined": 59296,
7335
+ "file-dollar-outlined": 59297,
7336
+ "file-download-outlined": 59298,
7337
+ "file-export-outlined": 59299,
7338
+ "file-lock-outlined": 59300,
7339
+ "file-outlined": 59301,
7340
+ "file-search-outlined": 59302,
7341
+ "file-secured-outlined": 59303,
7342
+ "file-statutory-outlined": 59304,
7343
+ "file-verified-outlined": 59305,
7344
+ "filter-outlined": 59306,
7345
+ "folder-outlined": 59307,
7346
+ "folder-user-outlined": 59308,
7347
+ "form-outlined": 59309,
7348
+ "funnel-filter-outline": 59310,
7349
+ "goal-outlined": 59311,
7350
+ "graph-outlined": 59312,
7351
+ "hand-holding-user-outlined": 59313,
7352
+ "happy-sun-outlined": 59314,
7353
+ "health-bag-outlined": 59315,
7354
+ "heart-outlined": 59316,
7355
+ "home-active-outlined": 59317,
7356
+ "home-outlined": 59318,
7357
+ "id-card-outlined": 59319,
7358
+ "image-outlined": 59320,
7359
+ "import-outlined": 59321,
7360
+ "instapay-outlined": 59322,
7357
7361
  italic: italic,
7358
- "job-search-outlined": 59321,
7359
- "leave-approval-outlined": 59322,
7360
- "link-1": 59323,
7361
- "link-2": 59324,
7362
- "list-outlined": 59325,
7363
- "live-help-outlined": 59326,
7362
+ "job-search-outlined": 59324,
7363
+ "leave-approval-outlined": 59325,
7364
+ "link-1": 59326,
7365
+ "link-2": 59327,
7366
+ "list-outlined": 59328,
7367
+ "live-help-outlined": 59329,
7364
7368
  local_mall_outlined: local_mall_outlined,
7365
- "location-on-outlined": 59328,
7366
- "location-outlined": 59329,
7367
- "lock-outlined": 59330,
7368
- "locked-file-outlined": 59331,
7369
- "log-out": 59332,
7370
- "mail-outlined": 59333,
7371
- "map-outlined": 59334,
7372
- "media-content-outlined": 59335,
7373
- "menu-close": 59336,
7374
- "menu-expand": 59337,
7375
- "menu-fold-outlined": 59338,
7376
- "menu-unfold-outlined": 59339,
7377
- "moneybag-outlined": 59340,
7378
- "moon-outlined": 59341,
7379
- "more-horizontal": 59342,
7380
- "more-vertical": 59343,
7381
- "multiple-folders-outlined": 59344,
7382
- "multiple-users-outlined": 59345,
7383
- "near-me-outlined": 59346,
7384
- "node-outlined": 59347,
7385
- "number-points": 59348,
7369
+ "location-on-outlined": 59331,
7370
+ "location-outlined": 59332,
7371
+ "lock-outlined": 59333,
7372
+ "locked-file-outlined": 59334,
7373
+ "log-out": 59335,
7374
+ "mail-outlined": 59336,
7375
+ "map-outlined": 59337,
7376
+ "media-content-outlined": 59338,
7377
+ "menu-close": 59339,
7378
+ "menu-expand": 59340,
7379
+ "menu-fold-outlined": 59341,
7380
+ "menu-unfold-outlined": 59342,
7381
+ "moneybag-outlined": 59343,
7382
+ "moon-outlined": 59344,
7383
+ "more-horizontal": 59345,
7384
+ "more-vertical": 59346,
7385
+ "multiple-folders-outlined": 59347,
7386
+ "multiple-users-outlined": 59348,
7387
+ "near-me-outlined": 59349,
7388
+ "node-outlined": 59350,
7389
+ "number-points": 59351,
7386
7390
  number: number,
7387
- "overview-outlined": 59350,
7388
- "payment-summary-outlined": 59351,
7389
- "payslip-outlined": 59352,
7390
- "pencil-outlined": 59353,
7391
+ "overview-outlined": 59353,
7392
+ "payment-summary-outlined": 59354,
7393
+ "payslip-outlined": 59355,
7394
+ "pencil-outlined": 59356,
7391
7395
  percentage: percentage,
7392
- "phone-outlined": 59355,
7393
- "piggy-bank-outlined": 59356,
7394
- "plane-outlined": 59357,
7395
- "play-circle-outlined": 59358,
7396
- "print-outlined": 59359,
7397
- "propane-tank-outlined": 59360,
7398
- "qr-code-outlined": 59361,
7399
- "qualification-outlined": 59362,
7400
- "re-assign": 59363,
7396
+ "phone-outlined": 59358,
7397
+ "piggy-bank-outlined": 59359,
7398
+ "plane-outlined": 59360,
7399
+ "play-circle-outlined": 59361,
7400
+ "print-outlined": 59362,
7401
+ "propane-tank-outlined": 59363,
7402
+ "qr-code-outlined": 59364,
7403
+ "qualification-outlined": 59365,
7404
+ "re-assign": 59366,
7401
7405
  redeem: redeem,
7402
7406
  refresh: refresh,
7403
7407
  remove: remove,
7404
- "reply-outlined": 59367,
7408
+ "reply-outlined": 59370,
7405
7409
  restart: restart,
7406
- "resume-outlined": 59369,
7407
- "return-arrow": 59370,
7408
- "rostering-outlined": 59371,
7409
- "safety-outlined": 59372,
7410
- "save-outlined": 59373,
7411
- "schedule-outlined": 59374,
7412
- "search-outlined": 59375,
7413
- "search-secured-outlined": 59376,
7414
- "send-outlined": 59377,
7415
- "share-1": 59378,
7416
- "share-2": 59379,
7417
- "share-outlined-2": 59380,
7418
- "share-outlined": 59381,
7410
+ "resume-outlined": 59372,
7411
+ "return-arrow": 59373,
7412
+ "rostering-outlined": 59374,
7413
+ "safety-outlined": 59375,
7414
+ "save-outlined": 59376,
7415
+ "schedule-outlined": 59377,
7416
+ "search-outlined": 59378,
7417
+ "search-secured-outlined": 59379,
7418
+ "send-outlined": 59380,
7419
+ "share-1": 59381,
7420
+ "share-2": 59382,
7421
+ "share-outlined-2": 59383,
7422
+ "share-outlined": 59384,
7419
7423
  shopping_basket_outlined: shopping_basket_outlined,
7420
- "show-chart-outlined": 59383,
7421
- "single-down-arrow": 59384,
7422
- "single-left-arrow": 59385,
7423
- "single-right-arrow": 59386,
7424
- "single-up-arrow": 59387,
7425
- "smart-match-outlined": 59388,
7426
- "sparkle-outlined": 59389,
7427
- "speaker-active-outlined": 59390,
7428
- "speaker-outlined": 59391,
7429
- "star-circle-outlined": 59392,
7430
- "star-outlined": 59393,
7431
- "stash-outlined": 59394,
7432
- "stopwatch-outlined": 59395,
7424
+ "show-chart-outlined": 59386,
7425
+ "single-down-arrow": 59387,
7426
+ "single-left-arrow": 59388,
7427
+ "single-right-arrow": 59389,
7428
+ "single-up-arrow": 59390,
7429
+ "smart-match-outlined": 59391,
7430
+ "sparkle-outlined": 59392,
7431
+ "speaker-active-outlined": 59393,
7432
+ "speaker-outlined": 59394,
7433
+ "star-circle-outlined": 59395,
7434
+ "star-outlined": 59396,
7435
+ "start-break-outlined": 59397,
7436
+ "stash-outlined": 59398,
7437
+ "stopwatch-outlined": 59399,
7433
7438
  strikethrough: strikethrough,
7434
- "styler-outlined": 59397,
7435
- "suitcase-clock-outlined": 59398,
7436
- "suitcase-outlined": 59399,
7437
- "survey-outlined": 59400,
7438
- "switch-outlined": 59401,
7439
+ "styler-outlined": 59401,
7440
+ "suitcase-clock-outlined": 59402,
7441
+ "suitcase-outlined": 59403,
7442
+ "survey-outlined": 59404,
7443
+ "switch-outlined": 59405,
7439
7444
  sync: sync,
7440
- "tag-outlined": 59403,
7441
- "target-outlined": 59404,
7442
- "tennis-outlined": 59405,
7443
- "ticket-outlined": 59406,
7444
- "timesheet-outlined": 59407,
7445
- "timesheets-outlined": 59408,
7446
- "today-outlined": 59409,
7445
+ "tag-outlined": 59407,
7446
+ "target-outlined": 59408,
7447
+ "tennis-outlined": 59409,
7448
+ "ticket-outlined": 59410,
7449
+ "timesheet-outlined": 59411,
7450
+ "timesheets-outlined": 59412,
7451
+ "today-outlined": 59413,
7447
7452
  transfer: transfer,
7448
- "trash-bin-outlined": 59411,
7449
- "umbrela-outlined": 59412,
7450
- "unavailability-outlined": 59413,
7453
+ "trash-bin-outlined": 59415,
7454
+ "umbrela-outlined": 59416,
7455
+ "unavailability-outlined": 59417,
7451
7456
  unavailable: unavailable,
7452
7457
  underline: underline,
7453
- "union-outlined": 59416,
7454
- "unlock-outlined": 59417,
7455
- "upload-outlined": 59418,
7456
- "user-circle-outlined": 59419,
7457
- "user-gear-outlined": 59420,
7458
- "user-outlined": 59421,
7459
- "user-rectangle-outlined": 59422,
7460
- "video-1-outlined": 59423,
7461
- "video-2-outlined": 59424,
7462
- "volunteer-outlined": 59425,
7463
- "wallet-outlined": 59426,
7464
- "wellness-outlined": 59427
7458
+ "union-outlined": 59420,
7459
+ "unlock-outlined": 59421,
7460
+ "upload-outlined": 59422,
7461
+ "user-circle-outlined": 59423,
7462
+ "user-gear-outlined": 59424,
7463
+ "user-outlined": 59425,
7464
+ "user-rectangle-outlined": 59426,
7465
+ "video-1-outlined": 59427,
7466
+ "video-2-outlined": 59428,
7467
+ "volunteer-outlined": 59429,
7468
+ "wallet-outlined": 59430,
7469
+ "wellness-outlined": 59431
7465
7470
  };
7466
7471
 
7467
7472
  var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
@@ -7709,7 +7714,8 @@ var Alert = function Alert(_ref2) {
7709
7714
  _ref2$variant = _ref2.variant,
7710
7715
  variant = _ref2$variant === void 0 ? 'rounded' : _ref2$variant,
7711
7716
  style = _ref2.style,
7712
- testID = _ref2.testID;
7717
+ testID = _ref2.testID,
7718
+ actionLabel = _ref2.actionLabel;
7713
7719
  useDeprecation("Alert's notification intent is deprecated and will be removed in the next major release. Please use other intents instead.", intent === 'notification');
7714
7720
  return /*#__PURE__*/React__default["default"].createElement(Container$1, {
7715
7721
  themeVariant: variant,
@@ -7727,7 +7733,9 @@ var Alert = function Alert(_ref2) {
7727
7733
  }, content) : content)), onClose ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper$1, {
7728
7734
  onPress: onClose,
7729
7735
  testID: "alert-close-icon"
7730
- }, /*#__PURE__*/React__default["default"].createElement(Icon, {
7736
+ }, typeof actionLabel === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
7737
+ variant: "small-bold"
7738
+ }, actionLabel) : /*#__PURE__*/React__default["default"].createElement(Icon, {
7731
7739
  icon: "cancel",
7732
7740
  size: "small"
7733
7741
  })) : null);
@@ -15265,16 +15273,18 @@ var StyledContentContainer = index$9(reactNative.View)(function () {
15265
15273
  flexGrow: 2
15266
15274
  };
15267
15275
  });
15268
- var StyledChildrenContainer = index$9(reactNative.View)(function () {
15276
+ var StyledChildrenContainer = index$9(reactNative.View)(function (_ref2) {
15277
+ var theme = _ref2.theme;
15269
15278
  return {
15270
15279
  flexDirection: 'column',
15271
15280
  justifyContent: 'flex-start',
15272
- alignItems: 'flex-start'
15281
+ alignItems: 'flex-start',
15282
+ marginTop: theme.__hd__.list.space.childrenContainerTopMargin
15273
15283
  };
15274
15284
  });
15275
- var StyledLeadingStatus = index$9(reactNative.View)(function (_ref2) {
15276
- var theme = _ref2.theme,
15277
- themeLeadingStatusIntent = _ref2.themeLeadingStatusIntent;
15285
+ var StyledLeadingStatus = index$9(reactNative.View)(function (_ref3) {
15286
+ var theme = _ref3.theme,
15287
+ themeLeadingStatusIntent = _ref3.themeLeadingStatusIntent;
15278
15288
  return {
15279
15289
  width: theme.__hd__.list.widths.leadingStatus,
15280
15290
  marginRight: theme.__hd__.list.space.leadingStatusMarginRight,
@@ -15282,14 +15292,14 @@ var StyledLeadingStatus = index$9(reactNative.View)(function (_ref2) {
15282
15292
  backgroundColor: theme.__hd__.list.colors.leadingStatus[themeLeadingStatusIntent]
15283
15293
  };
15284
15294
  });
15285
- var StyledPrefixContainer$1 = index$9(reactNative.View)(function (_ref3) {
15286
- var theme = _ref3.theme;
15295
+ var StyledPrefixContainer$1 = index$9(reactNative.View)(function (_ref4) {
15296
+ var theme = _ref4.theme;
15287
15297
  return {
15288
15298
  marginRight: theme.__hd__.list.space.prefixContainerMarginRight
15289
15299
  };
15290
15300
  });
15291
- var StyledSuffixContainer$1 = index$9(reactNative.View)(function (_ref4) {
15292
- var theme = _ref4.theme;
15301
+ var StyledSuffixContainer$1 = index$9(reactNative.View)(function (_ref5) {
15302
+ var theme = _ref5.theme;
15293
15303
  return {
15294
15304
  marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
15295
15305
  };
@@ -16238,7 +16248,8 @@ var Radio = function Radio(_ref2) {
16238
16248
  subText = _ref2.subText,
16239
16249
  testID = _ref2.testID,
16240
16250
  _ref2$inactiveIntent = _ref2.inactiveIntent,
16241
- inactiveIntent = _ref2$inactiveIntent === void 0 ? 'light' : _ref2$inactiveIntent;
16251
+ inactiveIntent = _ref2$inactiveIntent === void 0 ? 'light' : _ref2$inactiveIntent,
16252
+ children = _ref2.children;
16242
16253
  return /*#__PURE__*/React__default["default"].createElement(StyledRadio, {
16243
16254
  onPress: onPress,
16244
16255
  selected: checked,
@@ -16252,7 +16263,7 @@ var Radio = function Radio(_ref2) {
16252
16263
  testID: testID,
16253
16264
  themeIntent: inactiveIntent,
16254
16265
  themeChecked: checked
16255
- });
16266
+ }, children);
16256
16267
  };
16257
16268
 
16258
16269
  function getKey(option, index, keyExtractor) {
@@ -16291,7 +16302,7 @@ var RadioGroup = function RadioGroup(_ref) {
16291
16302
  return _onPress(option.value);
16292
16303
  },
16293
16304
  inactiveIntent: inactiveIntent
16294
- }));
16305
+ }, option.children));
16295
16306
  }));
16296
16307
  };
16297
16308
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.61.3",
3
+ "version": "8.63.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -1,3 +1,4 @@
1
+ import { fireEvent } from '@testing-library/react-native';
1
2
  import React from 'react';
2
3
  import Alert from '..';
3
4
  import renderWithTheme from '../../../testHelpers/renderWithTheme';
@@ -29,6 +30,23 @@ describe('Alert', () => {
29
30
  expect(getByTestId('alert-close-icon')).toBeDefined();
30
31
  });
31
32
 
33
+ it('renders correctly with CTA ', () => {
34
+ const onCloseSpy = jest.fn();
35
+ const { getByText } = renderWithTheme(
36
+ <Alert
37
+ title="Title"
38
+ content="Content"
39
+ actionLabel="CTA"
40
+ onClose={onCloseSpy}
41
+ />
42
+ );
43
+
44
+ expect(getByText('CTA')).toBeVisible();
45
+ fireEvent.press(getByText('CTA'));
46
+
47
+ expect(onCloseSpy).toHaveBeenCalledTimes(1);
48
+ });
49
+
32
50
  it('renders correctly without rounded ', () => {
33
51
  const { toJSON, getByTestId, getByText, queryByTestId } = renderWithTheme(
34
52
  <Alert title="Title" content="Content" variant="unrounded" />
@@ -122,3 +140,21 @@ describe('Alert', () => {
122
140
  });
123
141
  });
124
142
  });
143
+
144
+ describe('AlertProps', () => {
145
+ it('raises type error if actionLabel has value but no close icon', () => {
146
+ // should raise error which requires onClose
147
+ renderWithTheme(
148
+ // @ts-expect-error: Type '{ title: string; content: string; actionLabel: string; }' i
149
+ <Alert title="Title" content="Content" actionLabel="VIEW" />
150
+ );
151
+
152
+ // if onClose is standalone, it's valid
153
+ renderWithTheme(
154
+ <Alert title="Title" content="Content" onClose={jest.fn()} />
155
+ );
156
+
157
+ // if onClose and actionLabel are undefined, it's valid
158
+ renderWithTheme(<Alert title="Title" content="Content" />);
159
+ });
160
+ });