@hero-design/rn 8.26.0 → 8.26.2

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
@@ -2357,7 +2357,8 @@ var getFABTheme = function getFABTheme(theme) {
2357
2357
  headerTextMarginRight: theme.space.large,
2358
2358
  headerTextMarginBottom: theme.space.large,
2359
2359
  containerPadding: theme.space.large - theme.space.xsmall,
2360
- titleMarginHorizontal: theme.space.small
2360
+ titleMarginHorizontal: theme.space.small,
2361
+ internalFABMarginBottom: theme.space.large
2361
2362
  };
2362
2363
  var radii = {
2363
2364
  actionItem: theme.radii.rounded
@@ -6226,7 +6227,7 @@ var Typography = {
6226
6227
  };
6227
6228
 
6228
6229
  // 🔴 DO NOT EDIT — This file is generated automatically.
6229
- 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', 'expense', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'home', 'image', 'import', 'incident-siren', 'instapay', 'list', 'loading-2', 'loading', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'node', 'open-folder', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'save', 'schedule-send', 'schedule', 'search-person', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'switch', 'tag', 'target', 'teams', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'billing-outlined', 'body-outlined', 'bold', 'book-outlined', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-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-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', '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', '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-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'return-arrow', 'rostering-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'ticket-outlined', 'timesheet-outlined', 'today-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-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'];
6230
+ 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', 'expense', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'home', 'image', 'import', 'incident-siren', 'instapay', 'list', 'loading-2', 'loading', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'node', 'open-folder', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'save', 'schedule-send', 'schedule', 'search-person', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'switch', 'tag', 'target', 'teams', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'billing-outlined', 'body-outlined', 'bold', 'book-outlined', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-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-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', '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-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'return-arrow', 'rostering-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'ticket-outlined', 'timesheet-outlined', 'today-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-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'];
6230
6231
 
6231
6232
  var activate = 59000;
6232
6233
  var adjustment = 59003;
@@ -6303,18 +6304,18 @@ var add = 59181;
6303
6304
  var bold = 59203;
6304
6305
  var cancel = 59215;
6305
6306
  var checkmark = 59220;
6306
- var italic = 59302;
6307
- var number = 59326;
6308
- var percentage = 59331;
6309
- var redeem = 59340;
6310
- var refresh = 59341;
6311
- var remove = 59342;
6312
- var restart = 59344;
6313
- var strikethrough = 59365;
6314
- var sync = 59371;
6315
- var transfer = 59378;
6316
- var unavailable = 59381;
6317
- var underline = 59382;
6307
+ var italic = 59303;
6308
+ var number = 59327;
6309
+ var percentage = 59332;
6310
+ var redeem = 59341;
6311
+ var refresh = 59342;
6312
+ var remove = 59343;
6313
+ var restart = 59345;
6314
+ var strikethrough = 59366;
6315
+ var sync = 59372;
6316
+ var transfer = 59379;
6317
+ var unavailable = 59382;
6318
+ var underline = 59383;
6318
6319
  var glyphMap = {
6319
6320
  activate: activate,
6320
6321
  "add-emoji": 59001,
@@ -6578,138 +6579,139 @@ var glyphMap = {
6578
6579
  "envelope-outlined": 59259,
6579
6580
  "expense-outlined": 59260,
6580
6581
  "explore-outlined": 59261,
6581
- "external-link": 59262,
6582
- "eye-invisible-outlined": 59263,
6583
- "eye-outlined": 59264,
6584
- "face-id": 59265,
6585
- "face-meh-outlined": 59266,
6586
- "face-open-smiley-outlined": 59267,
6587
- "face-sad-outlined": 59268,
6588
- "face-smiley-outlined": 59269,
6589
- "fastfood-outlined": 59270,
6590
- "feed-outlined": 59271,
6591
- "file-certified-outlined": 59272,
6592
- "file-clone-outlined": 59273,
6593
- "file-copy-outlined": 59274,
6594
- "file-dispose-outlined": 59275,
6595
- "file-dollar-certified-outlined": 59276,
6596
- "file-dollar-outlined": 59277,
6597
- "file-download-outlined": 59278,
6598
- "file-export-outlined": 59279,
6599
- "file-lock-outlined": 59280,
6600
- "file-outlined": 59281,
6601
- "file-search-outlined": 59282,
6602
- "file-secured-outlined": 59283,
6603
- "file-statutory-outlined": 59284,
6604
- "file-verified-outlined": 59285,
6605
- "filter-outlined": 59286,
6606
- "folder-outlined": 59287,
6607
- "folder-user-outlined": 59288,
6608
- "form-outlined": 59289,
6609
- "funnel-filter-outline": 59290,
6610
- "graph-outlined": 59291,
6611
- "hand-holding-user-outlined": 59292,
6612
- "happy-sun-outlined": 59293,
6613
- "health-bag-outlined": 59294,
6614
- "heart-outlined": 59295,
6615
- "home-active-outlined": 59296,
6616
- "home-outlined": 59297,
6617
- "id-card-outlined": 59298,
6618
- "image-outlined": 59299,
6619
- "import-outlined": 59300,
6620
- "instapay-outlined": 59301,
6582
+ "extension-outlined": 59262,
6583
+ "external-link": 59263,
6584
+ "eye-invisible-outlined": 59264,
6585
+ "eye-outlined": 59265,
6586
+ "face-id": 59266,
6587
+ "face-meh-outlined": 59267,
6588
+ "face-open-smiley-outlined": 59268,
6589
+ "face-sad-outlined": 59269,
6590
+ "face-smiley-outlined": 59270,
6591
+ "fastfood-outlined": 59271,
6592
+ "feed-outlined": 59272,
6593
+ "file-certified-outlined": 59273,
6594
+ "file-clone-outlined": 59274,
6595
+ "file-copy-outlined": 59275,
6596
+ "file-dispose-outlined": 59276,
6597
+ "file-dollar-certified-outlined": 59277,
6598
+ "file-dollar-outlined": 59278,
6599
+ "file-download-outlined": 59279,
6600
+ "file-export-outlined": 59280,
6601
+ "file-lock-outlined": 59281,
6602
+ "file-outlined": 59282,
6603
+ "file-search-outlined": 59283,
6604
+ "file-secured-outlined": 59284,
6605
+ "file-statutory-outlined": 59285,
6606
+ "file-verified-outlined": 59286,
6607
+ "filter-outlined": 59287,
6608
+ "folder-outlined": 59288,
6609
+ "folder-user-outlined": 59289,
6610
+ "form-outlined": 59290,
6611
+ "funnel-filter-outline": 59291,
6612
+ "graph-outlined": 59292,
6613
+ "hand-holding-user-outlined": 59293,
6614
+ "happy-sun-outlined": 59294,
6615
+ "health-bag-outlined": 59295,
6616
+ "heart-outlined": 59296,
6617
+ "home-active-outlined": 59297,
6618
+ "home-outlined": 59298,
6619
+ "id-card-outlined": 59299,
6620
+ "image-outlined": 59300,
6621
+ "import-outlined": 59301,
6622
+ "instapay-outlined": 59302,
6621
6623
  italic: italic,
6622
- "link-1": 59303,
6623
- "link-2": 59304,
6624
- "list-outlined": 59305,
6625
- "live-help-outlined": 59306,
6626
- "location-on-outlined": 59307,
6627
- "location-outlined": 59308,
6628
- "lock-outlined": 59309,
6629
- "locked-file-outlined": 59310,
6630
- "log-out": 59311,
6631
- "media-content-outlined": 59312,
6632
- "menu-close": 59313,
6633
- "menu-expand": 59314,
6634
- "menu-fold-outlined": 59315,
6635
- "menu-unfold-outlined": 59316,
6636
- "moneybag-outlined": 59317,
6637
- "moon-outlined": 59318,
6638
- "more-horizontal": 59319,
6639
- "more-vertical": 59320,
6640
- "multiple-folders-outlined": 59321,
6641
- "multiple-users-outlined": 59322,
6642
- "near-me-outlined": 59323,
6643
- "node-outlined": 59324,
6644
- "number-points": 59325,
6624
+ "link-1": 59304,
6625
+ "link-2": 59305,
6626
+ "list-outlined": 59306,
6627
+ "live-help-outlined": 59307,
6628
+ "location-on-outlined": 59308,
6629
+ "location-outlined": 59309,
6630
+ "lock-outlined": 59310,
6631
+ "locked-file-outlined": 59311,
6632
+ "log-out": 59312,
6633
+ "media-content-outlined": 59313,
6634
+ "menu-close": 59314,
6635
+ "menu-expand": 59315,
6636
+ "menu-fold-outlined": 59316,
6637
+ "menu-unfold-outlined": 59317,
6638
+ "moneybag-outlined": 59318,
6639
+ "moon-outlined": 59319,
6640
+ "more-horizontal": 59320,
6641
+ "more-vertical": 59321,
6642
+ "multiple-folders-outlined": 59322,
6643
+ "multiple-users-outlined": 59323,
6644
+ "near-me-outlined": 59324,
6645
+ "node-outlined": 59325,
6646
+ "number-points": 59326,
6645
6647
  number: number,
6646
- "overview-outlined": 59327,
6647
- "payment-summary-outlined": 59328,
6648
- "payslip-outlined": 59329,
6649
- "pencil-outlined": 59330,
6648
+ "overview-outlined": 59328,
6649
+ "payment-summary-outlined": 59329,
6650
+ "payslip-outlined": 59330,
6651
+ "pencil-outlined": 59331,
6650
6652
  percentage: percentage,
6651
- "phone-outlined": 59332,
6652
- "piggy-bank-outlined": 59333,
6653
- "plane-outlined": 59334,
6654
- "play-circle-outlined": 59335,
6655
- "print-outlined": 59336,
6656
- "qr-code-outlined": 59337,
6657
- "qualification-outlined": 59338,
6658
- "re-assign": 59339,
6653
+ "phone-outlined": 59333,
6654
+ "piggy-bank-outlined": 59334,
6655
+ "plane-outlined": 59335,
6656
+ "play-circle-outlined": 59336,
6657
+ "print-outlined": 59337,
6658
+ "qr-code-outlined": 59338,
6659
+ "qualification-outlined": 59339,
6660
+ "re-assign": 59340,
6659
6661
  redeem: redeem,
6660
6662
  refresh: refresh,
6661
6663
  remove: remove,
6662
- "reply-outlined": 59343,
6664
+ "reply-outlined": 59344,
6663
6665
  restart: restart,
6664
- "return-arrow": 59345,
6665
- "rostering-outlined": 59346,
6666
- "save-outlined": 59347,
6667
- "schedule-outlined": 59348,
6668
- "search-outlined": 59349,
6669
- "search-secured-outlined": 59350,
6670
- "send-outlined": 59351,
6671
- "share-1": 59352,
6672
- "share-2": 59353,
6673
- "share-outlined": 59354,
6674
- "show-chart-outlined": 59355,
6675
- "single-down-arrow": 59356,
6676
- "single-left-arrow": 59357,
6677
- "single-right-arrow": 59358,
6678
- "single-up-arrow": 59359,
6679
- "speaker-active-outlined": 59360,
6680
- "speaker-outlined": 59361,
6681
- "star-circle-outlined": 59362,
6682
- "star-outlined": 59363,
6683
- "stopwatch-outlined": 59364,
6666
+ "return-arrow": 59346,
6667
+ "rostering-outlined": 59347,
6668
+ "save-outlined": 59348,
6669
+ "schedule-outlined": 59349,
6670
+ "search-outlined": 59350,
6671
+ "search-secured-outlined": 59351,
6672
+ "send-outlined": 59352,
6673
+ "share-1": 59353,
6674
+ "share-2": 59354,
6675
+ "share-outlined": 59355,
6676
+ "show-chart-outlined": 59356,
6677
+ "single-down-arrow": 59357,
6678
+ "single-left-arrow": 59358,
6679
+ "single-right-arrow": 59359,
6680
+ "single-up-arrow": 59360,
6681
+ "speaker-active-outlined": 59361,
6682
+ "speaker-outlined": 59362,
6683
+ "star-circle-outlined": 59363,
6684
+ "star-outlined": 59364,
6685
+ "stopwatch-outlined": 59365,
6684
6686
  strikethrough: strikethrough,
6685
- "styler-outlined": 59366,
6686
- "suitcase-clock-outlined": 59367,
6687
- "suitcase-outlined": 59368,
6688
- "survey-outlined": 59369,
6689
- "switch-outlined": 59370,
6687
+ "styler-outlined": 59367,
6688
+ "suitcase-clock-outlined": 59368,
6689
+ "suitcase-outlined": 59369,
6690
+ "survey-outlined": 59370,
6691
+ "switch-outlined": 59371,
6690
6692
  sync: sync,
6691
- "tag-outlined": 59372,
6692
- "target-outlined": 59373,
6693
- "tennis-outlined": 59374,
6694
- "ticket-outlined": 59375,
6695
- "timesheet-outlined": 59376,
6696
- "today-outlined": 59377,
6693
+ "tag-outlined": 59373,
6694
+ "target-outlined": 59374,
6695
+ "tennis-outlined": 59375,
6696
+ "ticket-outlined": 59376,
6697
+ "timesheet-outlined": 59377,
6698
+ "today-outlined": 59378,
6697
6699
  transfer: transfer,
6698
- "trash-bin-outlined": 59379,
6699
- "umbrela-outlined": 59380,
6700
+ "trash-bin-outlined": 59380,
6701
+ "umbrela-outlined": 59381,
6700
6702
  unavailable: unavailable,
6701
6703
  underline: underline,
6702
- "union-outlined": 59383,
6703
- "unlock-outlined": 59384,
6704
- "upload-outlined": 59385,
6705
- "user-circle-outlined": 59386,
6706
- "user-gear-outlined": 59387,
6707
- "user-outlined": 59388,
6708
- "user-rectangle-outlined": 59389,
6709
- "video-1-outlined": 59390,
6710
- "video-2-outlined": 59391,
6711
- "volunteer-outlined": 59392,
6712
- "wallet-outlined": 59393
6704
+ "union-outlined": 59384,
6705
+ "unlock-outlined": 59385,
6706
+ "upload-outlined": 59386,
6707
+ "user-circle-outlined": 59387,
6708
+ "user-gear-outlined": 59388,
6709
+ "user-outlined": 59389,
6710
+ "user-rectangle-outlined": 59390,
6711
+ "video-1-outlined": 59391,
6712
+ "video-2-outlined": 59392,
6713
+ "volunteer-outlined": 59393,
6714
+ "wallet-outlined": 59394
6713
6715
  };
6714
6716
 
6715
6717
  var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
@@ -13100,10 +13102,11 @@ var StyledBackdrop = index$a(reactNative.Animated.View)(function (_ref2) {
13100
13102
  var theme = _ref2.theme;
13101
13103
  return {
13102
13104
  position: 'absolute',
13103
- left: 0,
13104
- right: 0,
13105
- top: 0,
13105
+ flex: 1,
13106
+ height: '100%',
13107
+ width: '100%',
13106
13108
  bottom: 0,
13109
+ right: 0,
13107
13110
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
13108
13111
  };
13109
13112
  });
@@ -13119,6 +13122,17 @@ var StyledHeaderText = index$a(Typography.Text)(function (_ref3) {
13119
13122
  textAlign: 'right'
13120
13123
  };
13121
13124
  });
13125
+ var StyledModalView = index$a(reactNative.View)({
13126
+ position: 'absolute',
13127
+ flex: 1,
13128
+ height: '100%',
13129
+ width: '100%',
13130
+ bottom: 0,
13131
+ right: 0,
13132
+ justifyContent: 'flex-end',
13133
+ alignItems: 'flex-end',
13134
+ backgroundColor: 'transparent'
13135
+ });
13122
13136
 
13123
13137
  var ActionItemsListComponent = function ActionItemsListComponent(_ref) {
13124
13138
  var style = _ref.style,
@@ -13141,15 +13155,43 @@ var ActionGroup = function ActionGroup(_ref2) {
13141
13155
  fabTitle = _ref2.fabTitle,
13142
13156
  _ref2$fabIcon = _ref2.fabIcon,
13143
13157
  fabIcon = _ref2$fabIcon === void 0 ? 'add' : _ref2$fabIcon;
13158
+ var theme = useTheme();
13159
+ // Internal state to control the animation of the action group
13160
+ var _useState = React.useState(active),
13161
+ _useState2 = _slicedToArray(_useState, 2),
13162
+ visible = _useState2[0],
13163
+ setVisibility = _useState2[1];
13144
13164
  var tranlateXAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
13145
13165
  React.useEffect(function () {
13166
+ if (active && !visible) {
13167
+ setVisibility(true);
13168
+ }
13169
+ }, [active]);
13170
+ React.useEffect(function () {
13171
+ if (active) {
13172
+ var animation = reactNative.Animated.timing(tranlateXAnimation.current, {
13173
+ toValue: 1,
13174
+ useNativeDriver: reactNative.Platform.OS === 'ios' || reactNative.Platform.OS === 'android',
13175
+ easing: reactNative.Easing.inOut(reactNative.Easing.cubic)
13176
+ });
13177
+ animation.start();
13178
+ }
13179
+ }, [active]);
13180
+ // Make sure the animation finishes running before closing the modal
13181
+ var onInternalFABPress = React.useCallback(function () {
13182
+ if (!onPress) {
13183
+ return;
13184
+ }
13146
13185
  var animation = reactNative.Animated.timing(tranlateXAnimation.current, {
13147
- toValue: active ? 1 : 0,
13186
+ toValue: 0,
13148
13187
  useNativeDriver: reactNative.Platform.OS === 'ios' || reactNative.Platform.OS === 'android',
13149
13188
  easing: reactNative.Easing.inOut(reactNative.Easing.cubic)
13150
13189
  });
13151
- animation.start();
13152
- }, [active]);
13190
+ animation.start(function () {
13191
+ setVisibility(false);
13192
+ onPress();
13193
+ });
13194
+ }, [visible]);
13153
13195
  var interpolatedTranlateXAnimation = tranlateXAnimation.current.interpolate({
13154
13196
  inputRange: [0, 1],
13155
13197
  outputRange: [400, 0]
@@ -13166,13 +13208,18 @@ var ActionGroup = function ActionGroup(_ref2) {
13166
13208
  testID: testID,
13167
13209
  pointerEvents: "box-none",
13168
13210
  style: style
13211
+ }, /*#__PURE__*/React__default["default"].createElement(reactNative.Modal, {
13212
+ visible: visible,
13213
+ transparent: true,
13214
+ statusBarTranslucent: true,
13215
+ animationType: "none"
13169
13216
  }, /*#__PURE__*/React__default["default"].createElement(StyledBackdrop, {
13170
- pointerEvents: active ? 'auto' : 'box-none',
13171
- testID: "back-drop",
13172
13217
  style: {
13173
13218
  opacity: interpolatedBackdropOpacityAnimation
13174
- }
13175
- }), /*#__PURE__*/React__default["default"].createElement(StyledActionGroupContainer, {
13219
+ },
13220
+ testID: "back-drop",
13221
+ pointerEvents: active ? 'auto' : 'box-none'
13222
+ }), /*#__PURE__*/React__default["default"].createElement(StyledModalView, null, /*#__PURE__*/React__default["default"].createElement(StyledActionGroupContainer, {
13176
13223
  pointerEvents: active ? 'auto' : 'none',
13177
13224
  testID: "action-group",
13178
13225
  style: {
@@ -13185,7 +13232,17 @@ var ActionGroup = function ActionGroup(_ref2) {
13185
13232
  testID: "header-text"
13186
13233
  }, headerTitle), /*#__PURE__*/React__default["default"].createElement(ActionItemsListComponent, {
13187
13234
  items: items
13188
- })), /*#__PURE__*/React__default["default"].createElement(StyledFAB, {
13235
+ })), active && /*#__PURE__*/React__default["default"].createElement(StyledFAB, {
13236
+ testID: "fab",
13237
+ icon: fabIcon,
13238
+ onPress: onInternalFABPress,
13239
+ animated: true,
13240
+ active: active,
13241
+ title: fabTitle,
13242
+ style: {
13243
+ marginBottom: theme.__hd__.fab.space.internalFABMarginBottom
13244
+ }
13245
+ }))), !active && /*#__PURE__*/React__default["default"].createElement(StyledFAB, {
13189
13246
  testID: "fab",
13190
13247
  icon: fabIcon,
13191
13248
  onPress: onPress,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.26.0",
3
+ "version": "8.26.2",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@emotion/native": "^11.9.3",
23
23
  "@emotion/react": "^11.9.3",
24
- "@hero-design/colors": "8.26.0",
24
+ "@hero-design/colors": "8.26.2",
25
25
  "date-fns": "^2.16.1",
26
26
  "events": "^3.2.0",
27
27
  "hero-editor": "^1.9.21"
@@ -45,7 +45,7 @@
45
45
  "@babel/preset-typescript": "^7.17.12",
46
46
  "@babel/runtime": "^7.18.9",
47
47
  "@emotion/jest": "^11.9.3",
48
- "@hero-design/eslint-plugin": "8.26.0",
48
+ "@hero-design/eslint-plugin": "8.26.2",
49
49
  "@react-native-community/datetimepicker": "^3.5.2",
50
50
  "@react-native-community/slider": "4.1.12",
51
51
  "@rollup/plugin-babel": "^5.3.1",
@@ -61,9 +61,10 @@
61
61
  "@types/react-native": "^0.67.7",
62
62
  "@types/react-native-vector-icons": "^6.4.10",
63
63
  "babel-plugin-inline-import": "^3.0.0",
64
- "eslint-config-hd": "8.26.0",
64
+ "eslint-config-hd": "8.26.2",
65
+ "eslint-plugin-import": "^2.27.5",
65
66
  "jest": "^27.3.1",
66
- "prettier-config-hd": "8.26.0",
67
+ "prettier-config-hd": "8.26.2",
67
68
  "react": "18.0.0",
68
69
  "react-native": "0.69.7",
69
70
  "react-native-gesture-handler": "~2.1.0",
@@ -34,10 +34,11 @@ const StyledBackdrop = styled(Animated.View)<
34
34
  ComponentProps<typeof Animated.View>
35
35
  >(({ theme }) => ({
36
36
  position: 'absolute',
37
- left: 0,
38
- right: 0,
39
- top: 0,
37
+ flex: 1,
38
+ height: '100%',
39
+ width: '100%',
40
40
  bottom: 0,
41
+ right: 0,
41
42
  backgroundColor: theme.__hd__.fab.colors.backdropBackground,
42
43
  }));
43
44
 
@@ -51,10 +52,23 @@ const StyledHeaderText = styled(Typography.Text)<TextProps>(({ theme }) => ({
51
52
  textAlign: 'right',
52
53
  }));
53
54
 
55
+ const StyledModalView = styled(View)({
56
+ position: 'absolute',
57
+ flex: 1,
58
+ height: '100%',
59
+ width: '100%',
60
+ bottom: 0,
61
+ right: 0,
62
+ justifyContent: 'flex-end',
63
+ alignItems: 'flex-end',
64
+ backgroundColor: 'transparent',
65
+ });
66
+
54
67
  export {
55
68
  StyledHeaderText,
56
69
  StyledBackdrop,
57
70
  StyledContainer,
58
71
  StyledActionGroupContainer,
59
72
  StyledFAB,
73
+ StyledModalView,
60
74
  };