@hero-design/rn 8.27.0 → 8.27.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.
Files changed (44) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +319 -311
  4. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  5. package/lib/index.js +319 -311
  6. package/package.json +5 -5
  7. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +6 -6
  8. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -2
  9. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +2 -2
  10. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -2
  11. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +3 -17
  12. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +1065 -557
  13. package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +15 -9
  14. package/src/components/FAB/ActionGroup/index.tsx +35 -97
  15. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  16. package/src/components/Icon/IconList.ts +1 -0
  17. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  18. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  19. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  20. package/src/components/TextInput/index.tsx +1 -1
  21. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -2
  22. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +2 -2
  23. package/src/components/Toolbar/StyledToolbar.tsx +23 -2
  24. package/src/components/Toolbar/ToolbarGroup.tsx +3 -4
  25. package/src/components/Toolbar/ToolbarItem.tsx +75 -19
  26. package/src/components/Toolbar/__tests__/ToolbarItem.spec.tsx +39 -22
  27. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +318 -186
  28. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +280 -135
  29. package/src/components/Typography/Text/StyledText.tsx +2 -1
  30. package/src/components/Typography/Text/index.tsx +2 -1
  31. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +11 -2
  32. package/src/theme/components/fab.ts +0 -1
  33. package/src/theme/components/toolbar.ts +14 -2
  34. package/src/theme/components/typography.ts +1 -0
  35. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +1 -7
  36. package/types/components/Icon/IconList.d.ts +1 -1
  37. package/types/components/Icon/index.d.ts +1 -1
  38. package/types/components/Icon/utils.d.ts +1 -1
  39. package/types/components/Toolbar/StyledToolbar.d.ts +11 -1
  40. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  41. package/types/components/Typography/Text/index.d.ts +1 -1
  42. package/types/theme/components/fab.d.ts +0 -1
  43. package/types/theme/components/toolbar.d.ts +9 -0
  44. package/types/theme/components/typography.d.ts +1 -0
package/es/index.js CHANGED
@@ -2327,8 +2327,7 @@ var getFABTheme = function getFABTheme(theme) {
2327
2327
  headerTextMarginRight: theme.space.large,
2328
2328
  headerTextMarginBottom: theme.space.large,
2329
2329
  containerPadding: theme.space.large - theme.space.xsmall,
2330
- titleMarginHorizontal: theme.space.small,
2331
- internalFABMarginBottom: theme.space.large
2330
+ titleMarginHorizontal: theme.space.small
2332
2331
  };
2333
2332
  var radii = {
2334
2333
  actionItem: theme.radii.rounded
@@ -3047,19 +3046,30 @@ var getToolbarTheme = function getToolbarTheme(theme) {
3047
3046
  success: theme.colors.success,
3048
3047
  danger: theme.colors.warning,
3049
3048
  error: theme.colors.error,
3050
- disabled: theme.colors.disabledOnDefaultGlobalSurface
3049
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
3050
+ iconButtonBackground: theme.colors.highlightedSurface
3051
3051
  };
3052
3052
  var space = {
3053
3053
  verticalPadding: theme.space.small,
3054
- horizontalPadding: theme.space.smallMedium
3054
+ horizontalPadding: theme.space.small,
3055
+ iconButtonLabelMarginLeft: theme.space.small,
3056
+ iconButtonWrapperPadding: theme.space.smallMedium
3055
3057
  };
3056
3058
  var borderWidths = {
3057
3059
  "default": theme.borderWidths.base
3058
3060
  };
3061
+ var sizes = {
3062
+ itemWrapperHeight: scale(64)
3063
+ };
3064
+ var radii = {
3065
+ iconButtonWrapperBorderRadius: theme.radii.xxxlarge
3066
+ };
3059
3067
  return {
3060
3068
  colors: colors,
3061
3069
  space: space,
3062
- borderWidths: borderWidths
3070
+ borderWidths: borderWidths,
3071
+ sizes: sizes,
3072
+ radii: radii
3063
3073
  };
3064
3074
  };
3065
3075
 
@@ -3074,7 +3084,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
3074
3084
  warning: theme.colors.warning,
3075
3085
  success: theme.colors.success,
3076
3086
  inverted: theme.colors.onDarkGlobalSurface,
3077
- archived: theme.colors.onArchivedSurface
3087
+ archived: theme.colors.onArchivedSurface,
3088
+ disabled: theme.colors.disabledOnDefaultGlobalSurface
3078
3089
  };
3079
3090
  var fontSizes = {
3080
3091
  xsmall: theme.fontSizes.xsmall,
@@ -6197,7 +6208,7 @@ var Typography = {
6197
6208
  };
6198
6209
 
6199
6210
  // 🔴 DO NOT EDIT — This file is generated automatically.
6200
- 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'];
6211
+ 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', 'ai-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'];
6201
6212
 
6202
6213
  var activate = 59000;
6203
6214
  var adjustment = 59003;
@@ -6271,21 +6282,21 @@ var user = 59171;
6271
6282
  var wallet = 59174;
6272
6283
  var warning = 59175;
6273
6284
  var add = 59181;
6274
- var bold = 59203;
6275
- var cancel = 59215;
6276
- var checkmark = 59220;
6277
- var italic = 59303;
6278
- var number = 59327;
6279
- var percentage = 59332;
6280
- var redeem = 59341;
6281
- var refresh = 59342;
6282
- var remove = 59343;
6283
- var restart = 59345;
6284
- var strikethrough = 59366;
6285
- var sync = 59372;
6286
- var transfer = 59379;
6287
- var unavailable = 59382;
6288
- var underline = 59383;
6285
+ var bold = 59204;
6286
+ var cancel = 59216;
6287
+ var checkmark = 59221;
6288
+ var italic = 59304;
6289
+ var number = 59328;
6290
+ var percentage = 59333;
6291
+ var redeem = 59342;
6292
+ var refresh = 59343;
6293
+ var remove = 59344;
6294
+ var restart = 59346;
6295
+ var strikethrough = 59367;
6296
+ var sync = 59373;
6297
+ var transfer = 59380;
6298
+ var unavailable = 59383;
6299
+ var underline = 59384;
6289
6300
  var glyphMap = {
6290
6301
  activate: activate,
6291
6302
  "add-emoji": 59001,
@@ -6470,218 +6481,219 @@ var glyphMap = {
6470
6481
  "add-time-outlined": 59180,
6471
6482
  add: add,
6472
6483
  "adjustment-outlined": 59182,
6473
- "alignment-2-outlined": 59183,
6474
- "alignment-outlined": 59184,
6475
- "all-caps": 59185,
6476
- "arrow-down": 59186,
6477
- "arrow-downwards": 59187,
6478
- "arrow-left": 59188,
6479
- "arrow-leftwards": 59189,
6480
- "arrow-right": 59190,
6481
- "arrow-rightwards": 59191,
6482
- "arrow-up": 59192,
6483
- "arrow-upwards": 59193,
6484
- "article-outlined": 59194,
6485
- "at-sign": 59195,
6486
- "auto-graph-outlined": 59196,
6487
- "beer-outlined": 59197,
6488
- "bell-active-outlined": 59198,
6489
- "bell-outlined": 59199,
6490
- "bell-slash-outlined": 59200,
6491
- "billing-outlined": 59201,
6492
- "body-outlined": 59202,
6484
+ "ai-outlined": 59183,
6485
+ "alignment-2-outlined": 59184,
6486
+ "alignment-outlined": 59185,
6487
+ "all-caps": 59186,
6488
+ "arrow-down": 59187,
6489
+ "arrow-downwards": 59188,
6490
+ "arrow-left": 59189,
6491
+ "arrow-leftwards": 59190,
6492
+ "arrow-right": 59191,
6493
+ "arrow-rightwards": 59192,
6494
+ "arrow-up": 59193,
6495
+ "arrow-upwards": 59194,
6496
+ "article-outlined": 59195,
6497
+ "at-sign": 59196,
6498
+ "auto-graph-outlined": 59197,
6499
+ "beer-outlined": 59198,
6500
+ "bell-active-outlined": 59199,
6501
+ "bell-outlined": 59200,
6502
+ "bell-slash-outlined": 59201,
6503
+ "billing-outlined": 59202,
6504
+ "body-outlined": 59203,
6493
6505
  bold: bold,
6494
- "book-outlined": 59204,
6495
- "bookmark-added-outlined": 59205,
6496
- "bookmark-outlined": 59206,
6497
- "box-check-outlined": 59207,
6498
- "box-outlined": 59208,
6499
- "bullet-points": 59209,
6500
- "cake-outlined": 59210,
6501
- "calendar-dates-outlined": 59211,
6502
- "calendar-star-outlined": 59212,
6503
- "call-split-outlined": 59213,
6504
- "camera-outlined": 59214,
6506
+ "book-outlined": 59205,
6507
+ "bookmark-added-outlined": 59206,
6508
+ "bookmark-outlined": 59207,
6509
+ "box-check-outlined": 59208,
6510
+ "box-outlined": 59209,
6511
+ "bullet-points": 59210,
6512
+ "cake-outlined": 59211,
6513
+ "calendar-dates-outlined": 59212,
6514
+ "calendar-star-outlined": 59213,
6515
+ "call-split-outlined": 59214,
6516
+ "camera-outlined": 59215,
6505
6517
  cancel: cancel,
6506
- "car-forward-outlined": 59216,
6507
- "charging-station-outlined": 59217,
6508
- "chat-bubble-outlined": 59218,
6509
- "chat-unread-outlined": 59219,
6518
+ "car-forward-outlined": 59217,
6519
+ "charging-station-outlined": 59218,
6520
+ "chat-bubble-outlined": 59219,
6521
+ "chat-unread-outlined": 59220,
6510
6522
  checkmark: checkmark,
6511
- "circle-add-outlined": 59221,
6512
- "circle-cancel-outlined": 59222,
6513
- "circle-down-outlined": 59223,
6514
- "circle-info-outlined": 59224,
6515
- "circle-left-outlined": 59225,
6516
- "circle-ok-outlined": 59226,
6517
- "circle-question-outlined": 59227,
6518
- "circle-remove-outlined": 59228,
6519
- "circle-right-outlined": 59229,
6520
- "circle-up-outlined": 59230,
6521
- "circle-warning-outlined": 59231,
6522
- "clock-2-outlined": 59232,
6523
- "clock-outlined": 59233,
6524
- "cog-outlined": 59234,
6525
- "coin-outlined": 59235,
6526
- "coin-super-outlined": 59236,
6527
- "comment-outlined": 59237,
6528
- "contacts-outlined": 59238,
6529
- "contacts-user-outlined": 59239,
6530
- "credit-card-outlined": 59240,
6531
- "cup-outlined": 59241,
6532
- "dentistry-outlined": 59242,
6533
- "direction-arrows-outlined": 59243,
6534
- "directory-outlined": 59244,
6535
- "document-outlined": 59245,
6536
- "dollar-box-outlined": 59246,
6537
- "dollar-card-outlined": 59247,
6538
- "dollar-coin-shine-outlined": 59248,
6539
- "dollar-credit-card-outlined": 59249,
6540
- "dollar-sign": 59250,
6541
- "double-buildings-outlined": 59251,
6542
- "double-left-arrows": 59252,
6543
- "double-right-arrows": 59253,
6544
- "download-box-outlined": 59254,
6545
- "download-outlined": 59255,
6546
- "edit-template-outlined": 59256,
6547
- "email-outlined": 59257,
6548
- "enter-arrow": 59258,
6549
- "envelope-outlined": 59259,
6550
- "expense-outlined": 59260,
6551
- "explore-outlined": 59261,
6552
- "extension-outlined": 59262,
6553
- "external-link": 59263,
6554
- "eye-invisible-outlined": 59264,
6555
- "eye-outlined": 59265,
6556
- "face-id": 59266,
6557
- "face-meh-outlined": 59267,
6558
- "face-open-smiley-outlined": 59268,
6559
- "face-sad-outlined": 59269,
6560
- "face-smiley-outlined": 59270,
6561
- "fastfood-outlined": 59271,
6562
- "feed-outlined": 59272,
6563
- "file-certified-outlined": 59273,
6564
- "file-clone-outlined": 59274,
6565
- "file-copy-outlined": 59275,
6566
- "file-dispose-outlined": 59276,
6567
- "file-dollar-certified-outlined": 59277,
6568
- "file-dollar-outlined": 59278,
6569
- "file-download-outlined": 59279,
6570
- "file-export-outlined": 59280,
6571
- "file-lock-outlined": 59281,
6572
- "file-outlined": 59282,
6573
- "file-search-outlined": 59283,
6574
- "file-secured-outlined": 59284,
6575
- "file-statutory-outlined": 59285,
6576
- "file-verified-outlined": 59286,
6577
- "filter-outlined": 59287,
6578
- "folder-outlined": 59288,
6579
- "folder-user-outlined": 59289,
6580
- "form-outlined": 59290,
6581
- "funnel-filter-outline": 59291,
6582
- "graph-outlined": 59292,
6583
- "hand-holding-user-outlined": 59293,
6584
- "happy-sun-outlined": 59294,
6585
- "health-bag-outlined": 59295,
6586
- "heart-outlined": 59296,
6587
- "home-active-outlined": 59297,
6588
- "home-outlined": 59298,
6589
- "id-card-outlined": 59299,
6590
- "image-outlined": 59300,
6591
- "import-outlined": 59301,
6592
- "instapay-outlined": 59302,
6523
+ "circle-add-outlined": 59222,
6524
+ "circle-cancel-outlined": 59223,
6525
+ "circle-down-outlined": 59224,
6526
+ "circle-info-outlined": 59225,
6527
+ "circle-left-outlined": 59226,
6528
+ "circle-ok-outlined": 59227,
6529
+ "circle-question-outlined": 59228,
6530
+ "circle-remove-outlined": 59229,
6531
+ "circle-right-outlined": 59230,
6532
+ "circle-up-outlined": 59231,
6533
+ "circle-warning-outlined": 59232,
6534
+ "clock-2-outlined": 59233,
6535
+ "clock-outlined": 59234,
6536
+ "cog-outlined": 59235,
6537
+ "coin-outlined": 59236,
6538
+ "coin-super-outlined": 59237,
6539
+ "comment-outlined": 59238,
6540
+ "contacts-outlined": 59239,
6541
+ "contacts-user-outlined": 59240,
6542
+ "credit-card-outlined": 59241,
6543
+ "cup-outlined": 59242,
6544
+ "dentistry-outlined": 59243,
6545
+ "direction-arrows-outlined": 59244,
6546
+ "directory-outlined": 59245,
6547
+ "document-outlined": 59246,
6548
+ "dollar-box-outlined": 59247,
6549
+ "dollar-card-outlined": 59248,
6550
+ "dollar-coin-shine-outlined": 59249,
6551
+ "dollar-credit-card-outlined": 59250,
6552
+ "dollar-sign": 59251,
6553
+ "double-buildings-outlined": 59252,
6554
+ "double-left-arrows": 59253,
6555
+ "double-right-arrows": 59254,
6556
+ "download-box-outlined": 59255,
6557
+ "download-outlined": 59256,
6558
+ "edit-template-outlined": 59257,
6559
+ "email-outlined": 59258,
6560
+ "enter-arrow": 59259,
6561
+ "envelope-outlined": 59260,
6562
+ "expense-outlined": 59261,
6563
+ "explore-outlined": 59262,
6564
+ "extension-outlined": 59263,
6565
+ "external-link": 59264,
6566
+ "eye-invisible-outlined": 59265,
6567
+ "eye-outlined": 59266,
6568
+ "face-id": 59267,
6569
+ "face-meh-outlined": 59268,
6570
+ "face-open-smiley-outlined": 59269,
6571
+ "face-sad-outlined": 59270,
6572
+ "face-smiley-outlined": 59271,
6573
+ "fastfood-outlined": 59272,
6574
+ "feed-outlined": 59273,
6575
+ "file-certified-outlined": 59274,
6576
+ "file-clone-outlined": 59275,
6577
+ "file-copy-outlined": 59276,
6578
+ "file-dispose-outlined": 59277,
6579
+ "file-dollar-certified-outlined": 59278,
6580
+ "file-dollar-outlined": 59279,
6581
+ "file-download-outlined": 59280,
6582
+ "file-export-outlined": 59281,
6583
+ "file-lock-outlined": 59282,
6584
+ "file-outlined": 59283,
6585
+ "file-search-outlined": 59284,
6586
+ "file-secured-outlined": 59285,
6587
+ "file-statutory-outlined": 59286,
6588
+ "file-verified-outlined": 59287,
6589
+ "filter-outlined": 59288,
6590
+ "folder-outlined": 59289,
6591
+ "folder-user-outlined": 59290,
6592
+ "form-outlined": 59291,
6593
+ "funnel-filter-outline": 59292,
6594
+ "graph-outlined": 59293,
6595
+ "hand-holding-user-outlined": 59294,
6596
+ "happy-sun-outlined": 59295,
6597
+ "health-bag-outlined": 59296,
6598
+ "heart-outlined": 59297,
6599
+ "home-active-outlined": 59298,
6600
+ "home-outlined": 59299,
6601
+ "id-card-outlined": 59300,
6602
+ "image-outlined": 59301,
6603
+ "import-outlined": 59302,
6604
+ "instapay-outlined": 59303,
6593
6605
  italic: italic,
6594
- "link-1": 59304,
6595
- "link-2": 59305,
6596
- "list-outlined": 59306,
6597
- "live-help-outlined": 59307,
6598
- "location-on-outlined": 59308,
6599
- "location-outlined": 59309,
6600
- "lock-outlined": 59310,
6601
- "locked-file-outlined": 59311,
6602
- "log-out": 59312,
6603
- "media-content-outlined": 59313,
6604
- "menu-close": 59314,
6605
- "menu-expand": 59315,
6606
- "menu-fold-outlined": 59316,
6607
- "menu-unfold-outlined": 59317,
6608
- "moneybag-outlined": 59318,
6609
- "moon-outlined": 59319,
6610
- "more-horizontal": 59320,
6611
- "more-vertical": 59321,
6612
- "multiple-folders-outlined": 59322,
6613
- "multiple-users-outlined": 59323,
6614
- "near-me-outlined": 59324,
6615
- "node-outlined": 59325,
6616
- "number-points": 59326,
6606
+ "link-1": 59305,
6607
+ "link-2": 59306,
6608
+ "list-outlined": 59307,
6609
+ "live-help-outlined": 59308,
6610
+ "location-on-outlined": 59309,
6611
+ "location-outlined": 59310,
6612
+ "lock-outlined": 59311,
6613
+ "locked-file-outlined": 59312,
6614
+ "log-out": 59313,
6615
+ "media-content-outlined": 59314,
6616
+ "menu-close": 59315,
6617
+ "menu-expand": 59316,
6618
+ "menu-fold-outlined": 59317,
6619
+ "menu-unfold-outlined": 59318,
6620
+ "moneybag-outlined": 59319,
6621
+ "moon-outlined": 59320,
6622
+ "more-horizontal": 59321,
6623
+ "more-vertical": 59322,
6624
+ "multiple-folders-outlined": 59323,
6625
+ "multiple-users-outlined": 59324,
6626
+ "near-me-outlined": 59325,
6627
+ "node-outlined": 59326,
6628
+ "number-points": 59327,
6617
6629
  number: number,
6618
- "overview-outlined": 59328,
6619
- "payment-summary-outlined": 59329,
6620
- "payslip-outlined": 59330,
6621
- "pencil-outlined": 59331,
6630
+ "overview-outlined": 59329,
6631
+ "payment-summary-outlined": 59330,
6632
+ "payslip-outlined": 59331,
6633
+ "pencil-outlined": 59332,
6622
6634
  percentage: percentage,
6623
- "phone-outlined": 59333,
6624
- "piggy-bank-outlined": 59334,
6625
- "plane-outlined": 59335,
6626
- "play-circle-outlined": 59336,
6627
- "print-outlined": 59337,
6628
- "qr-code-outlined": 59338,
6629
- "qualification-outlined": 59339,
6630
- "re-assign": 59340,
6635
+ "phone-outlined": 59334,
6636
+ "piggy-bank-outlined": 59335,
6637
+ "plane-outlined": 59336,
6638
+ "play-circle-outlined": 59337,
6639
+ "print-outlined": 59338,
6640
+ "qr-code-outlined": 59339,
6641
+ "qualification-outlined": 59340,
6642
+ "re-assign": 59341,
6631
6643
  redeem: redeem,
6632
6644
  refresh: refresh,
6633
6645
  remove: remove,
6634
- "reply-outlined": 59344,
6646
+ "reply-outlined": 59345,
6635
6647
  restart: restart,
6636
- "return-arrow": 59346,
6637
- "rostering-outlined": 59347,
6638
- "save-outlined": 59348,
6639
- "schedule-outlined": 59349,
6640
- "search-outlined": 59350,
6641
- "search-secured-outlined": 59351,
6642
- "send-outlined": 59352,
6643
- "share-1": 59353,
6644
- "share-2": 59354,
6645
- "share-outlined": 59355,
6646
- "show-chart-outlined": 59356,
6647
- "single-down-arrow": 59357,
6648
- "single-left-arrow": 59358,
6649
- "single-right-arrow": 59359,
6650
- "single-up-arrow": 59360,
6651
- "speaker-active-outlined": 59361,
6652
- "speaker-outlined": 59362,
6653
- "star-circle-outlined": 59363,
6654
- "star-outlined": 59364,
6655
- "stopwatch-outlined": 59365,
6648
+ "return-arrow": 59347,
6649
+ "rostering-outlined": 59348,
6650
+ "save-outlined": 59349,
6651
+ "schedule-outlined": 59350,
6652
+ "search-outlined": 59351,
6653
+ "search-secured-outlined": 59352,
6654
+ "send-outlined": 59353,
6655
+ "share-1": 59354,
6656
+ "share-2": 59355,
6657
+ "share-outlined": 59356,
6658
+ "show-chart-outlined": 59357,
6659
+ "single-down-arrow": 59358,
6660
+ "single-left-arrow": 59359,
6661
+ "single-right-arrow": 59360,
6662
+ "single-up-arrow": 59361,
6663
+ "speaker-active-outlined": 59362,
6664
+ "speaker-outlined": 59363,
6665
+ "star-circle-outlined": 59364,
6666
+ "star-outlined": 59365,
6667
+ "stopwatch-outlined": 59366,
6656
6668
  strikethrough: strikethrough,
6657
- "styler-outlined": 59367,
6658
- "suitcase-clock-outlined": 59368,
6659
- "suitcase-outlined": 59369,
6660
- "survey-outlined": 59370,
6661
- "switch-outlined": 59371,
6669
+ "styler-outlined": 59368,
6670
+ "suitcase-clock-outlined": 59369,
6671
+ "suitcase-outlined": 59370,
6672
+ "survey-outlined": 59371,
6673
+ "switch-outlined": 59372,
6662
6674
  sync: sync,
6663
- "tag-outlined": 59373,
6664
- "target-outlined": 59374,
6665
- "tennis-outlined": 59375,
6666
- "ticket-outlined": 59376,
6667
- "timesheet-outlined": 59377,
6668
- "today-outlined": 59378,
6675
+ "tag-outlined": 59374,
6676
+ "target-outlined": 59375,
6677
+ "tennis-outlined": 59376,
6678
+ "ticket-outlined": 59377,
6679
+ "timesheet-outlined": 59378,
6680
+ "today-outlined": 59379,
6669
6681
  transfer: transfer,
6670
- "trash-bin-outlined": 59380,
6671
- "umbrela-outlined": 59381,
6682
+ "trash-bin-outlined": 59381,
6683
+ "umbrela-outlined": 59382,
6672
6684
  unavailable: unavailable,
6673
6685
  underline: underline,
6674
- "union-outlined": 59384,
6675
- "unlock-outlined": 59385,
6676
- "upload-outlined": 59386,
6677
- "user-circle-outlined": 59387,
6678
- "user-gear-outlined": 59388,
6679
- "user-outlined": 59389,
6680
- "user-rectangle-outlined": 59390,
6681
- "video-1-outlined": 59391,
6682
- "video-2-outlined": 59392,
6683
- "volunteer-outlined": 59393,
6684
- "wallet-outlined": 59394
6686
+ "union-outlined": 59385,
6687
+ "unlock-outlined": 59386,
6688
+ "upload-outlined": 59387,
6689
+ "user-circle-outlined": 59388,
6690
+ "user-gear-outlined": 59389,
6691
+ "user-outlined": 59390,
6692
+ "user-rectangle-outlined": 59391,
6693
+ "video-1-outlined": 59392,
6694
+ "video-2-outlined": 59393,
6695
+ "volunteer-outlined": 59394,
6696
+ "wallet-outlined": 59395
6685
6697
  };
6686
6698
 
6687
6699
  var HeroIcon = createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
@@ -12024,7 +12036,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12024
12036
  testID: "input-suffix",
12025
12037
  icon: actualSuffix,
12026
12038
  spin: actualSuffix === 'loading',
12027
- size: "xsmall"
12039
+ size: "medium"
12028
12040
  }) : suffix), /*#__PURE__*/React.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React.createElement(StyledErrorAndMaxLengthContainer, null, error ? /*#__PURE__*/React.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React.createElement(Icon, {
12029
12041
  testID: "input-error-icon",
12030
12042
  icon: "circle-info",
@@ -13072,11 +13084,10 @@ var StyledBackdrop = index$a(Animated.View)(function (_ref2) {
13072
13084
  var theme = _ref2.theme;
13073
13085
  return {
13074
13086
  position: 'absolute',
13075
- flex: 1,
13076
- height: '100%',
13077
- width: '100%',
13078
- bottom: 0,
13087
+ left: 0,
13079
13088
  right: 0,
13089
+ top: 0,
13090
+ bottom: 0,
13080
13091
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
13081
13092
  };
13082
13093
  });
@@ -13092,17 +13103,6 @@ var StyledHeaderText = index$a(Typography.Text)(function (_ref3) {
13092
13103
  textAlign: 'right'
13093
13104
  };
13094
13105
  });
13095
- var StyledModalView = index$a(View)({
13096
- position: 'absolute',
13097
- flex: 1,
13098
- height: '100%',
13099
- width: '100%',
13100
- bottom: 0,
13101
- right: 0,
13102
- justifyContent: 'flex-end',
13103
- alignItems: 'flex-end',
13104
- backgroundColor: 'transparent'
13105
- });
13106
13106
 
13107
13107
  var ActionItemsListComponent = function ActionItemsListComponent(_ref) {
13108
13108
  var style = _ref.style,
@@ -13125,43 +13125,15 @@ var ActionGroup = function ActionGroup(_ref2) {
13125
13125
  fabTitle = _ref2.fabTitle,
13126
13126
  _ref2$fabIcon = _ref2.fabIcon,
13127
13127
  fabIcon = _ref2$fabIcon === void 0 ? 'add' : _ref2$fabIcon;
13128
- var theme = useTheme();
13129
- // Internal state to control the animation of the action group
13130
- var _useState = useState(active),
13131
- _useState2 = _slicedToArray(_useState, 2),
13132
- visible = _useState2[0],
13133
- setVisibility = _useState2[1];
13134
13128
  var tranlateXAnimation = useRef(new Animated.Value(active ? 1 : 0));
13135
13129
  useEffect(function () {
13136
- if (active && !visible) {
13137
- setVisibility(true);
13138
- }
13139
- }, [active]);
13140
- useEffect(function () {
13141
- if (active) {
13142
- var animation = Animated.timing(tranlateXAnimation.current, {
13143
- toValue: 1,
13144
- useNativeDriver: Platform.OS === 'ios' || Platform.OS === 'android',
13145
- easing: Easing.inOut(Easing.cubic)
13146
- });
13147
- animation.start();
13148
- }
13149
- }, [active]);
13150
- // Make sure the animation finishes running before closing the modal
13151
- var onInternalFABPress = useCallback(function () {
13152
- if (!onPress) {
13153
- return;
13154
- }
13155
13130
  var animation = Animated.timing(tranlateXAnimation.current, {
13156
- toValue: 0,
13131
+ toValue: active ? 1 : 0,
13157
13132
  useNativeDriver: Platform.OS === 'ios' || Platform.OS === 'android',
13158
13133
  easing: Easing.inOut(Easing.cubic)
13159
13134
  });
13160
- animation.start(function () {
13161
- setVisibility(false);
13162
- onPress();
13163
- });
13164
- }, [visible]);
13135
+ animation.start();
13136
+ }, [active]);
13165
13137
  var interpolatedTranlateXAnimation = tranlateXAnimation.current.interpolate({
13166
13138
  inputRange: [0, 1],
13167
13139
  outputRange: [400, 0]
@@ -13178,18 +13150,13 @@ var ActionGroup = function ActionGroup(_ref2) {
13178
13150
  testID: testID,
13179
13151
  pointerEvents: "box-none",
13180
13152
  style: style
13181
- }, /*#__PURE__*/React.createElement(Modal, {
13182
- visible: visible,
13183
- transparent: true,
13184
- statusBarTranslucent: true,
13185
- animationType: "none"
13186
13153
  }, /*#__PURE__*/React.createElement(StyledBackdrop, {
13154
+ pointerEvents: active ? 'auto' : 'box-none',
13155
+ testID: "back-drop",
13187
13156
  style: {
13188
13157
  opacity: interpolatedBackdropOpacityAnimation
13189
- },
13190
- testID: "back-drop",
13191
- pointerEvents: active ? 'auto' : 'box-none'
13192
- }), /*#__PURE__*/React.createElement(StyledModalView, null, /*#__PURE__*/React.createElement(StyledActionGroupContainer, {
13158
+ }
13159
+ }), /*#__PURE__*/React.createElement(StyledActionGroupContainer, {
13193
13160
  pointerEvents: active ? 'auto' : 'none',
13194
13161
  testID: "action-group",
13195
13162
  style: {
@@ -13202,17 +13169,7 @@ var ActionGroup = function ActionGroup(_ref2) {
13202
13169
  testID: "header-text"
13203
13170
  }, headerTitle), /*#__PURE__*/React.createElement(ActionItemsListComponent, {
13204
13171
  items: items
13205
- })), active && /*#__PURE__*/React.createElement(StyledFAB, {
13206
- testID: "fab",
13207
- icon: fabIcon,
13208
- onPress: onInternalFABPress,
13209
- animated: true,
13210
- active: active,
13211
- title: fabTitle,
13212
- style: {
13213
- marginBottom: theme.__hd__.fab.space.internalFABMarginBottom
13214
- }
13215
- }))), !active && /*#__PURE__*/React.createElement(StyledFAB, {
13172
+ })), /*#__PURE__*/React.createElement(StyledFAB, {
13216
13173
  testID: "fab",
13217
13174
  icon: fabIcon,
13218
13175
  onPress: onPress,
@@ -16455,7 +16412,6 @@ var ToolbarWrapper = index$a(View)(function (_ref) {
16455
16412
  zIndex: 9999,
16456
16413
  elevation: 9999,
16457
16414
  width: '100%',
16458
- paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
16459
16415
  paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
16460
16416
  borderTopWidth: theme.__hd__.toolbar.borderWidths["default"],
16461
16417
  borderColor: theme.__hd__.toolbar.colors.border,
@@ -16481,47 +16437,102 @@ var ToolbarGroupWrapper = index$a(View)(function (_ref2) {
16481
16437
  var ToolbarItemWrapper = index$a(TouchableOpacity)(function (_ref3) {
16482
16438
  var theme = _ref3.theme;
16483
16439
  return {
16440
+ height: theme.__hd__.toolbar.sizes.itemWrapperHeight,
16484
16441
  paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
16485
16442
  paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
16486
- alignItems: 'center'
16443
+ alignItems: 'center',
16444
+ flexDirection: 'row'
16445
+ };
16446
+ });
16447
+ var IconButtonWrapper = index$a(View)(function (_ref4) {
16448
+ var theme = _ref4.theme;
16449
+ return {
16450
+ backgroundColor: theme.__hd__.toolbar.colors.iconButtonBackground,
16451
+ borderRadius: theme.__hd__.toolbar.radii.iconButtonWrapperBorderRadius,
16452
+ justifyContent: 'center',
16453
+ alignItems: 'center',
16454
+ flexDirection: 'row',
16455
+ padding: theme.__hd__.toolbar.space.iconButtonWrapperPadding
16456
+ };
16457
+ });
16458
+ var IconButtonLabel = index$a(Typography.Text)(function (_ref5) {
16459
+ var theme = _ref5.theme;
16460
+ return {
16461
+ marginLeft: theme.__hd__.toolbar.space.iconButtonLabelMarginLeft
16487
16462
  };
16488
16463
  });
16489
16464
 
16490
- var ToolbarItem = function ToolbarItem(_ref) {
16465
+ var IconItem = function IconItem(_ref) {
16491
16466
  var icon = _ref.icon,
16492
- label = _ref.label,
16493
- onPress = _ref.onPress,
16494
- _ref$intent = _ref.intent,
16495
- intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
16496
- _ref$disabled = _ref.disabled,
16497
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
16498
- style = _ref.style;
16499
- return /*#__PURE__*/React.createElement(ToolbarItemWrapper, {
16500
- onPress: onPress,
16501
- disabled: disabled,
16502
- style: style
16503
- }, icon ? /*#__PURE__*/React.createElement(Icon, {
16467
+ intent = _ref.intent,
16468
+ disabled = _ref.disabled,
16469
+ label = _ref.label;
16470
+ return /*#__PURE__*/React.createElement(IconButtonWrapper, null, /*#__PURE__*/React.createElement(Icon, {
16504
16471
  icon: icon,
16505
- size: label ? 'medium' : 'large',
16472
+ size: "medium",
16506
16473
  intent: disabled ? 'disabled-text' : intent,
16507
16474
  testID: "toolbar-item-icon-".concat(icon)
16508
- }) : null, label ? /*#__PURE__*/React.createElement(Typography.Text, {
16509
- fontSize: icon ? 'small' : 'large',
16475
+ }), label ? /*#__PURE__*/React.createElement(IconButtonLabel, {
16476
+ fontSize: "large",
16510
16477
  fontWeight: "semi-bold",
16511
16478
  intent: disabled ? 'subdued' : intent,
16512
16479
  allowFontScaling: false,
16513
16480
  numberOfLines: 1
16514
16481
  }, label) : null);
16515
16482
  };
16483
+ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
16484
+ var icon = _ref2.icon,
16485
+ label = _ref2.label,
16486
+ _ref2$intent = _ref2.intent,
16487
+ intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
16488
+ _ref2$disabled = _ref2.disabled,
16489
+ disabled = _ref2$disabled === void 0 ? false : _ref2$disabled;
16490
+ if (icon) {
16491
+ return /*#__PURE__*/React.createElement(IconItem, {
16492
+ icon: icon,
16493
+ intent: intent,
16494
+ disabled: disabled,
16495
+ label: label
16496
+ });
16497
+ }
16498
+ if (label) {
16499
+ return /*#__PURE__*/React.createElement(Typography.Text, {
16500
+ fontSize: "large",
16501
+ fontWeight: "semi-bold",
16502
+ intent: disabled ? 'disabled' : intent,
16503
+ allowFontScaling: false,
16504
+ numberOfLines: 1
16505
+ }, label);
16506
+ }
16507
+ return null;
16508
+ };
16509
+ var ToolbarItem = function ToolbarItem(_ref3) {
16510
+ var icon = _ref3.icon,
16511
+ label = _ref3.label,
16512
+ onPress = _ref3.onPress,
16513
+ _ref3$intent = _ref3.intent,
16514
+ intent = _ref3$intent === void 0 ? 'primary' : _ref3$intent,
16515
+ _ref3$disabled = _ref3.disabled,
16516
+ disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
16517
+ style = _ref3.style;
16518
+ return /*#__PURE__*/React.createElement(ToolbarItemWrapper, {
16519
+ onPress: onPress,
16520
+ disabled: disabled,
16521
+ style: style
16522
+ }, /*#__PURE__*/React.createElement(ToolbarItemContent, {
16523
+ icon: icon,
16524
+ label: label,
16525
+ intent: intent,
16526
+ disabled: disabled
16527
+ }));
16528
+ };
16516
16529
 
16517
16530
  var ToolbarGroup = function ToolbarGroup(_ref) {
16518
16531
  var _ref$align = _ref.align,
16519
16532
  align = _ref$align === void 0 ? 'right' : _ref$align,
16520
16533
  _ref$items = _ref.items,
16521
16534
  items = _ref$items === void 0 ? [] : _ref$items;
16522
- // set maxWidth prevents overflow of items
16523
- // issue: https://github.com/Thinkei/hero-design/issues/1619
16524
- var maxWidth = items.length > 0 ? "".concat(100 / items.length, "%") : undefined;
16535
+ useDeprecation("Toolbar's align prop is deprecated", align !== 'right');
16525
16536
  return /*#__PURE__*/React.createElement(ToolbarGroupWrapper, {
16526
16537
  align: align
16527
16538
  }, items.map(function (_ref2) {
@@ -16536,10 +16547,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
16536
16547
  icon: icon,
16537
16548
  intent: intent,
16538
16549
  onPress: onPress,
16539
- disabled: disabled,
16540
- style: {
16541
- maxWidth: maxWidth
16542
- }
16550
+ disabled: disabled
16543
16551
  });
16544
16552
  }));
16545
16553
  };