@hero-design/rn 8.104.1-alpha.2 → 8.105.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +6 -10
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +683 -402
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +683 -401
  7. package/package.json +1 -1
  8. package/src/components/Calendar/CalendarRange.tsx +35 -117
  9. package/src/components/Calendar/__tests__/helper.spec.ts +197 -0
  10. package/src/components/Calendar/constants.ts +9 -0
  11. package/src/components/Calendar/helpers.ts +112 -0
  12. package/src/components/Calendar/index.tsx +34 -159
  13. package/src/components/Calendar/shared/hooks/useCalendarLayout.ts +37 -0
  14. package/src/components/Calendar/types.ts +62 -0
  15. package/src/components/DatePicker/DatePickerCalendar.tsx +2 -1
  16. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  17. package/src/components/Icon/IconList.ts +2 -0
  18. package/src/components/SegmentedControl/SegmentedItem.tsx +192 -0
  19. package/src/components/SegmentedControl/StyledSegmentedControl.tsx +62 -0
  20. package/src/components/SegmentedControl/__tests__/SegmentedItem.spec.tsx +162 -0
  21. package/src/components/SegmentedControl/__tests__/__snapshots__/SegmentedItem.spec.tsx.snap +131 -0
  22. package/src/components/SegmentedControl/__tests__/__snapshots__/index.spec.tsx.snap +359 -0
  23. package/src/components/SegmentedControl/__tests__/index.spec.tsx +247 -0
  24. package/src/components/SegmentedControl/index.tsx +61 -0
  25. package/src/components/SegmentedControl/types.ts +46 -0
  26. package/src/components/Typography/Body/StyledBody.tsx +2 -2
  27. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
  28. package/src/components/Typography/Body/__tests__/index.spec.tsx +1 -0
  29. package/src/components/Typography/Body/index.tsx +2 -13
  30. package/src/components/Typography/Caption/StyledCaption.tsx +2 -2
  31. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +50 -0
  32. package/src/components/Typography/Caption/__tests__/index.spec.tsx +1 -0
  33. package/src/components/Typography/Caption/index.tsx +2 -13
  34. package/src/components/Typography/Label/StyledLabel.tsx +2 -2
  35. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +48 -0
  36. package/src/components/Typography/Label/__tests__/index.spec.tsx +1 -0
  37. package/src/components/Typography/Label/index.tsx +2 -13
  38. package/src/components/Typography/Title/StyledTitle.tsx +2 -2
  39. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
  40. package/src/components/Typography/Title/__tests__/index.spec.tsx +1 -0
  41. package/src/components/Typography/Title/index.tsx +2 -13
  42. package/src/components/Typography/types.ts +3 -2
  43. package/src/index.ts +2 -0
  44. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +54 -0
  45. package/src/theme/components/segmentedControl.ts +60 -0
  46. package/src/theme/components/typography.ts +1 -0
  47. package/src/theme/getTheme.ts +3 -0
  48. package/src/types.ts +2 -0
  49. package/stats/8.104.0/rn-stats.html +3 -1
  50. package/stats/8.105.0/rn-stats.html +4844 -0
  51. package/types/components/Calendar/CalendarRange.d.ts +4 -16
  52. package/types/components/Calendar/constants.d.ts +4 -0
  53. package/types/components/Calendar/helpers.d.ts +14 -0
  54. package/types/components/Calendar/index.d.ts +5 -56
  55. package/types/components/Calendar/shared/hooks/useCalendarLayout.d.ts +8 -0
  56. package/types/components/Calendar/types.d.ts +58 -0
  57. package/types/components/Icon/IconList.d.ts +1 -1
  58. package/types/components/Icon/index.d.ts +1 -1
  59. package/types/components/SegmentedControl/SegmentedItem.d.ts +18 -0
  60. package/types/components/SegmentedControl/StyledSegmentedControl.d.ts +26 -0
  61. package/types/components/SegmentedControl/index.d.ts +31 -0
  62. package/types/components/SegmentedControl/types.d.ts +43 -0
  63. package/types/components/TextInput/index.d.ts +1 -1
  64. package/types/components/Typography/Body/StyledBody.d.ts +2 -2
  65. package/types/components/Typography/Body/index.d.ts +2 -1
  66. package/types/components/Typography/Caption/StyledCaption.d.ts +2 -2
  67. package/types/components/Typography/Caption/index.d.ts +2 -1
  68. package/types/components/Typography/Label/StyledLabel.d.ts +2 -2
  69. package/types/components/Typography/Label/index.d.ts +2 -1
  70. package/types/components/Typography/Title/StyledTitle.d.ts +2 -2
  71. package/types/components/Typography/Title/index.d.ts +2 -1
  72. package/types/components/Typography/types.d.ts +1 -1
  73. package/types/index.d.ts +2 -1
  74. package/types/theme/components/segmentedControl.d.ts +46 -0
  75. package/types/theme/components/typography.d.ts +1 -0
  76. package/types/theme/getTheme.d.ts +2 -0
  77. package/types/types.d.ts +2 -1
package/es/index.js CHANGED
@@ -7066,7 +7066,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
7066
7066
  inverted: theme.colors.onDarkGlobalSurface,
7067
7067
  archived: theme.colors.onArchivedSurface,
7068
7068
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
7069
- muted: theme.colors.mutedOnDefaultGlobalSurface
7069
+ muted: theme.colors.mutedOnDefaultGlobalSurface,
7070
+ inactive: theme.colors.inactiveOnDefaultGlobalSurface
7070
7071
  };
7071
7072
  var fontSizes = {
7072
7073
  xsmall: theme.fontSizes.xsmall,
@@ -7458,6 +7459,62 @@ var getFilterTriggerTheme = function getFilterTriggerTheme(theme) {
7458
7459
  };
7459
7460
  };
7460
7461
 
7462
+ var getSegmentedControlTheme = function getSegmentedControlTheme(theme) {
7463
+ var sizes = {
7464
+ itemHeight: {
7465
+ medium: scale(28),
7466
+ large: scale(36)
7467
+ },
7468
+ wrapperHeight: {
7469
+ medium: scale(36),
7470
+ large: scale(44)
7471
+ }
7472
+ };
7473
+ var colors = {
7474
+ itemBackground: {
7475
+ inactive: 'transparent',
7476
+ active: theme.colors.defaultGlobalSurface
7477
+ },
7478
+ wrapperBackground: theme.colors.neutralGlobalSurface
7479
+ };
7480
+ var shadows = {
7481
+ item: {
7482
+ inactive: undefined,
7483
+ active: theme.shadows["default"]
7484
+ }
7485
+ };
7486
+ var radii = {
7487
+ item: {
7488
+ medium: theme.radii.large,
7489
+ large: theme.radii.xlarge
7490
+ },
7491
+ wrapper: {
7492
+ medium: theme.radii.xlarge,
7493
+ large: theme.radii.xxlarge
7494
+ }
7495
+ };
7496
+ var space = {
7497
+ wrapperHorizontalPadding: theme.space.xsmall,
7498
+ itemLabelGap: theme.space.xsmall,
7499
+ itemLabelMarginEnd: theme.space.smallMedium,
7500
+ itemAffixGap: theme.space.small
7501
+ };
7502
+ var lineHeights = {
7503
+ itemText: Platform.select({
7504
+ android: 20,
7505
+ ios: undefined
7506
+ })
7507
+ };
7508
+ return {
7509
+ sizes: sizes,
7510
+ colors: colors,
7511
+ shadows: shadows,
7512
+ radii: radii,
7513
+ space: space,
7514
+ lineHeights: lineHeights
7515
+ };
7516
+ };
7517
+
7461
7518
  var getTheme = function getTheme() {
7462
7519
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
7463
7520
  var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$2;
@@ -7518,7 +7575,8 @@ var getTheme = function getTheme() {
7518
7575
  toast: getToastTheme(globalTheme),
7519
7576
  toolbar: getToolbarTheme(globalTheme),
7520
7577
  typography: getTypographyTheme(globalTheme),
7521
- floatingIsland: getFloatingIslandTheme(globalTheme)
7578
+ floatingIsland: getFloatingIslandTheme(globalTheme),
7579
+ segmentedControl: getSegmentedControlTheme(globalTheme)
7522
7580
  }
7523
7581
  });
7524
7582
  };
@@ -7887,7 +7945,7 @@ var Typography = {
7887
7945
  };
7888
7946
 
7889
7947
  // 🔴 DO NOT EDIT — This file is generated automatically.
7890
- var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', 'bookmark-checked', 'bookmark', 'box-check', 'box', 'bpay', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'dot', 'double-buildings', 'edit-template', 'envelope', 'exclude', 'expand-content', 'expense', 'explore_nearby', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'hero-points', 'home', 'image', 'import', 'incident-siren', 'instapay-daily', 'instapay-now', 'instapay', 'list', 'loading-2', 'loading', 'location-on', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'near-me', 'node', 'open-folder', 'paperclip-vertical', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-arrow', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'search', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'swipe-right', 'switch', 'tag', 'target', 'teams', 'thumb-down', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'academic-hat-outlined', 'accommodation-outlined', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'afternoon-outlined', 'ai-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'application-outlined', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'automotive-outlined', 'bakery-outlined', 'bar-outlined', 'beauty-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-checked-outlined', 'bookmark-outlined', 'box-1-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calculator-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'call-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-outlined', 'cashback-outlined', 'charging-station-outlined', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-in-outlined', 'clock-out-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cultural-site-outlined', 'cup-outlined', 'dentistry-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-box-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-box-outlined', 'download-outlined', 'edit-template-outlined', 'electronics-outlined', 'email-outlined', 'end-break-outlined', 'enter-arrow', 'entertainment-outlined', 'envelope-outlined', 'evening-outlined', 'expense-approval-outlined', 'expense-outlined', 'explore-outlined', 'extension-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'fastfood-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-certified-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'fitness-outlined', 'folder-outlined', 'folder-upload-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'grocery-outlined', 'hand-holding-user-outlined', 'handshake-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'job-search-outlined', 'leave-approval-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'local_mall_outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'map-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'morning-outlined', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'park-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'restaurant-outlined', 'resume-outlined', 'return-arrow', 'rostering-outlined', 'safety-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined-2', 'share-outlined', 'shield-check-outlined', 'shop-outlined', 'shopping_basket_outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'smart-match-outlined', 'sparkle-outlined', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'start-break-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'thumb-down-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'transportation-outlined', 'trash-bin-outlined', 'umbrela-outlined', 'unavailability-outlined', 'unavailable', 'underline', 'union-outlined', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'volunteer-outlined', 'wallet-outlined', 'wellness-outlined'];
7948
+ var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', 'bookmark-checked', 'bookmark', 'box-check', 'box', 'bpay', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'dot', 'double-buildings', 'edit-template', 'envelope', 'exclude', 'expand-content', 'expense', 'explore_nearby', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'hero-points', 'home', 'image', 'import', 'incident-siren', 'instapay-daily', 'instapay-now', 'instapay', 'list', 'loading-2', 'loading', 'location-on', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'near-me', 'node', 'open-folder', 'paperclip-vertical', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-arrow', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'search', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'swipe-right', 'switch', 'tag', 'target', 'teams', 'thumb-down', 'thumb-up', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'academic-hat-outlined', 'accommodation-outlined', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'afternoon-outlined', 'ai-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'application-outlined', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'automotive-outlined', 'bakery-outlined', 'bar-outlined', 'beauty-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-checked-outlined', 'bookmark-outlined', 'box-1-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calculator-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'call-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-outlined', 'cashback-outlined', 'charging-station-outlined', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-in-outlined', 'clock-out-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cultural-site-outlined', 'cup-outlined', 'dentistry-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-box-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-box-outlined', 'download-outlined', 'edit-template-outlined', 'electronics-outlined', 'email-outlined', 'end-break-outlined', 'enter-arrow', 'entertainment-outlined', 'envelope-outlined', 'evening-outlined', 'expense-approval-outlined', 'expense-outlined', 'explore-outlined', 'extension-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'fastfood-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-certified-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'fitness-outlined', 'folder-outlined', 'folder-upload-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'grocery-outlined', 'hand-holding-user-outlined', 'handshake-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'job-search-outlined', 'leave-approval-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'local_mall_outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'map-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'morning-outlined', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'park-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'restaurant-outlined', 'resume-outlined', 'return-arrow', 'rostering-outlined', 'safety-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined-2', 'share-outlined', 'shield-check-outlined', 'shop-outlined', 'shopping_basket_outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'smart-match-outlined', 'sparkle-outlined', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'start-break-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'thumb-down-outlined', 'thumb-up-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'transportation-outlined', 'trash-bin-outlined', 'umbrela-outlined', 'unavailability-outlined', 'unavailable', 'underline', 'union-outlined', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'volunteer-outlined', 'wallet-outlined', 'wellness-outlined'];
7891
7949
 
7892
7950
  var activate = 59000;
7893
7951
  var adjustment = 59003;
@@ -7958,29 +8016,29 @@ var swag = 59175;
7958
8016
  var tag = 59178;
7959
8017
  var target = 59179;
7960
8018
  var teams = 59180;
7961
- var timesheet = 59182;
7962
- var unlock = 59185;
7963
- var user = 59186;
7964
- var wallet = 59189;
7965
- var warning = 59190;
7966
- var add = 59198;
7967
- var bold = 59228;
7968
- var cancel = 59245;
7969
- var checkmark = 59251;
7970
- var italic = 59347;
7971
- var local_mall_outlined = 59354;
7972
- var number$2 = 59377;
7973
- var percentage = 59383;
7974
- var redeem = 59393;
7975
- var refresh = 59394;
7976
- var remove$1 = 59395;
7977
- var restart = 59397;
7978
- var shopping_basket_outlined = 59414;
7979
- var strikethrough = 59429;
7980
- var sync = 59435;
7981
- var transfer = 59444;
7982
- var unavailable = 59449;
7983
- var underline = 59450;
8019
+ var timesheet = 59183;
8020
+ var unlock = 59186;
8021
+ var user = 59187;
8022
+ var wallet = 59190;
8023
+ var warning = 59191;
8024
+ var add = 59199;
8025
+ var bold = 59229;
8026
+ var cancel = 59246;
8027
+ var checkmark = 59252;
8028
+ var italic = 59348;
8029
+ var local_mall_outlined = 59355;
8030
+ var number$2 = 59378;
8031
+ var percentage = 59384;
8032
+ var redeem = 59394;
8033
+ var refresh = 59395;
8034
+ var remove$1 = 59396;
8035
+ var restart = 59398;
8036
+ var shopping_basket_outlined = 59415;
8037
+ var strikethrough = 59430;
8038
+ var sync = 59436;
8039
+ var transfer = 59446;
8040
+ var unavailable = 59451;
8041
+ var underline = 59452;
7984
8042
  var glyphMap = {
7985
8043
  activate: activate,
7986
8044
  "add-emoji": 59001,
@@ -8164,287 +8222,289 @@ var glyphMap = {
8164
8222
  target: target,
8165
8223
  teams: teams,
8166
8224
  "thumb-down": 59181,
8225
+ "thumb-up": 59182,
8167
8226
  timesheet: timesheet,
8168
- "touch-id": 59183,
8169
- "trash-bin": 59184,
8227
+ "touch-id": 59184,
8228
+ "trash-bin": 59185,
8170
8229
  unlock: unlock,
8171
8230
  user: user,
8172
- "video-1": 59187,
8173
- "video-2": 59188,
8231
+ "video-1": 59188,
8232
+ "video-2": 59189,
8174
8233
  wallet: wallet,
8175
8234
  warning: warning,
8176
- "academic-hat-outlined": 59191,
8177
- "accommodation-outlined": 59192,
8178
- "activate-outlined": 59193,
8179
- "add-credit-card-outlined": 59194,
8180
- "add-person-outlined": 59195,
8181
- "add-section-outlined": 59196,
8182
- "add-time-outlined": 59197,
8235
+ "academic-hat-outlined": 59192,
8236
+ "accommodation-outlined": 59193,
8237
+ "activate-outlined": 59194,
8238
+ "add-credit-card-outlined": 59195,
8239
+ "add-person-outlined": 59196,
8240
+ "add-section-outlined": 59197,
8241
+ "add-time-outlined": 59198,
8183
8242
  add: add,
8184
- "adjustment-outlined": 59199,
8185
- "afternoon-outlined": 59200,
8186
- "ai-outlined": 59201,
8187
- "alignment-2-outlined": 59202,
8188
- "alignment-outlined": 59203,
8189
- "all-caps": 59204,
8190
- "application-outlined": 59205,
8191
- "arrow-down": 59206,
8192
- "arrow-downwards": 59207,
8193
- "arrow-left": 59208,
8194
- "arrow-leftwards": 59209,
8195
- "arrow-right": 59210,
8196
- "arrow-rightwards": 59211,
8197
- "arrow-up": 59212,
8198
- "arrow-upwards": 59213,
8199
- "article-outlined": 59214,
8200
- "at-sign": 59215,
8201
- "auto-graph-outlined": 59216,
8202
- "automotive-outlined": 59217,
8203
- "bakery-outlined": 59218,
8204
- "bar-outlined": 59219,
8205
- "beauty-outlined": 59220,
8206
- "beer-outlined": 59221,
8207
- "bell-active-outlined": 59222,
8208
- "bell-outlined": 59223,
8209
- "bell-slash-outlined": 59224,
8210
- "bill-management-outlined": 59225,
8211
- "billing-outlined": 59226,
8212
- "body-outlined": 59227,
8243
+ "adjustment-outlined": 59200,
8244
+ "afternoon-outlined": 59201,
8245
+ "ai-outlined": 59202,
8246
+ "alignment-2-outlined": 59203,
8247
+ "alignment-outlined": 59204,
8248
+ "all-caps": 59205,
8249
+ "application-outlined": 59206,
8250
+ "arrow-down": 59207,
8251
+ "arrow-downwards": 59208,
8252
+ "arrow-left": 59209,
8253
+ "arrow-leftwards": 59210,
8254
+ "arrow-right": 59211,
8255
+ "arrow-rightwards": 59212,
8256
+ "arrow-up": 59213,
8257
+ "arrow-upwards": 59214,
8258
+ "article-outlined": 59215,
8259
+ "at-sign": 59216,
8260
+ "auto-graph-outlined": 59217,
8261
+ "automotive-outlined": 59218,
8262
+ "bakery-outlined": 59219,
8263
+ "bar-outlined": 59220,
8264
+ "beauty-outlined": 59221,
8265
+ "beer-outlined": 59222,
8266
+ "bell-active-outlined": 59223,
8267
+ "bell-outlined": 59224,
8268
+ "bell-slash-outlined": 59225,
8269
+ "bill-management-outlined": 59226,
8270
+ "billing-outlined": 59227,
8271
+ "body-outlined": 59228,
8213
8272
  bold: bold,
8214
- "bolt-outlined": 59229,
8215
- "book-outlined": 59230,
8216
- "bookmark-added-outlined": 59231,
8217
- "bookmark-checked-outlined": 59232,
8218
- "bookmark-outlined": 59233,
8219
- "box-1-outlined": 59234,
8220
- "box-check-outlined": 59235,
8221
- "box-outlined": 59236,
8222
- "bullet-points": 59237,
8223
- "cake-outlined": 59238,
8224
- "calculator-outlined": 59239,
8225
- "calendar-dates-outlined": 59240,
8226
- "calendar-star-outlined": 59241,
8227
- "call-outlined": 59242,
8228
- "call-split-outlined": 59243,
8229
- "camera-outlined": 59244,
8273
+ "bolt-outlined": 59230,
8274
+ "book-outlined": 59231,
8275
+ "bookmark-added-outlined": 59232,
8276
+ "bookmark-checked-outlined": 59233,
8277
+ "bookmark-outlined": 59234,
8278
+ "box-1-outlined": 59235,
8279
+ "box-check-outlined": 59236,
8280
+ "box-outlined": 59237,
8281
+ "bullet-points": 59238,
8282
+ "cake-outlined": 59239,
8283
+ "calculator-outlined": 59240,
8284
+ "calendar-dates-outlined": 59241,
8285
+ "calendar-star-outlined": 59242,
8286
+ "call-outlined": 59243,
8287
+ "call-split-outlined": 59244,
8288
+ "camera-outlined": 59245,
8230
8289
  cancel: cancel,
8231
- "car-forward-outlined": 59246,
8232
- "cashback-outlined": 59247,
8233
- "charging-station-outlined": 59248,
8234
- "chat-bubble-outlined": 59249,
8235
- "chat-unread-outlined": 59250,
8290
+ "car-forward-outlined": 59247,
8291
+ "cashback-outlined": 59248,
8292
+ "charging-station-outlined": 59249,
8293
+ "chat-bubble-outlined": 59250,
8294
+ "chat-unread-outlined": 59251,
8236
8295
  checkmark: checkmark,
8237
- "circle-add-outlined": 59252,
8238
- "circle-cancel-outlined": 59253,
8239
- "circle-down-outlined": 59254,
8240
- "circle-info-outlined": 59255,
8241
- "circle-left-outlined": 59256,
8242
- "circle-ok-outlined": 59257,
8243
- "circle-question-outlined": 59258,
8244
- "circle-remove-outlined": 59259,
8245
- "circle-right-outlined": 59260,
8246
- "circle-up-outlined": 59261,
8247
- "circle-warning-outlined": 59262,
8248
- "clock-2-outlined": 59263,
8249
- "clock-in-outlined": 59264,
8250
- "clock-out-outlined": 59265,
8251
- "clock-outlined": 59266,
8252
- "cog-outlined": 59267,
8253
- "coin-outlined": 59268,
8254
- "coin-super-outlined": 59269,
8255
- "comment-outlined": 59270,
8256
- "contacts-outlined": 59271,
8257
- "contacts-user-outlined": 59272,
8258
- "credit-card-outlined": 59273,
8259
- "cultural-site-outlined": 59274,
8260
- "cup-outlined": 59275,
8261
- "dentistry-outlined": 59276,
8262
- "direction-arrows-outlined": 59277,
8263
- "directory-outlined": 59278,
8264
- "document-outlined": 59279,
8265
- "dollar-box-outlined": 59280,
8266
- "dollar-card-outlined": 59281,
8267
- "dollar-coin-shine-outlined": 59282,
8268
- "dollar-credit-card-outlined": 59283,
8269
- "dollar-sign": 59284,
8270
- "double-buildings-outlined": 59285,
8271
- "double-left-arrows": 59286,
8272
- "double-right-arrows": 59287,
8273
- "download-box-outlined": 59288,
8274
- "download-outlined": 59289,
8275
- "edit-template-outlined": 59290,
8276
- "electronics-outlined": 59291,
8277
- "email-outlined": 59292,
8278
- "end-break-outlined": 59293,
8279
- "enter-arrow": 59294,
8280
- "entertainment-outlined": 59295,
8281
- "envelope-outlined": 59296,
8282
- "evening-outlined": 59297,
8283
- "expense-approval-outlined": 59298,
8284
- "expense-outlined": 59299,
8285
- "explore-outlined": 59300,
8286
- "extension-outlined": 59301,
8287
- "external-link": 59302,
8288
- "eye-invisible-outlined": 59303,
8289
- "eye-outlined": 59304,
8290
- "face-id": 59305,
8291
- "face-meh-outlined": 59306,
8292
- "face-open-smiley-outlined": 59307,
8293
- "face-sad-outlined": 59308,
8294
- "face-smiley-outlined": 59309,
8295
- "fastfood-outlined": 59310,
8296
- "feed-outlined": 59311,
8297
- "file-certified-outlined": 59312,
8298
- "file-clone-outlined": 59313,
8299
- "file-copy-outlined": 59314,
8300
- "file-dispose-outlined": 59315,
8301
- "file-dollar-certified-outlined": 59316,
8302
- "file-dollar-outlined": 59317,
8303
- "file-download-outlined": 59318,
8304
- "file-export-outlined": 59319,
8305
- "file-lock-outlined": 59320,
8306
- "file-outlined": 59321,
8307
- "file-search-outlined": 59322,
8308
- "file-secured-outlined": 59323,
8309
- "file-statutory-outlined": 59324,
8310
- "file-verified-outlined": 59325,
8311
- "filter-outlined": 59326,
8312
- "fitness-outlined": 59327,
8313
- "folder-outlined": 59328,
8314
- "folder-upload-outlined": 59329,
8315
- "folder-user-outlined": 59330,
8316
- "form-outlined": 59331,
8317
- "funnel-filter-outline": 59332,
8318
- "goal-outlined": 59333,
8319
- "graph-outlined": 59334,
8320
- "grocery-outlined": 59335,
8321
- "hand-holding-user-outlined": 59336,
8322
- "handshake-outlined": 59337,
8323
- "happy-sun-outlined": 59338,
8324
- "health-bag-outlined": 59339,
8325
- "heart-outlined": 59340,
8326
- "home-active-outlined": 59341,
8327
- "home-outlined": 59342,
8328
- "id-card-outlined": 59343,
8329
- "image-outlined": 59344,
8330
- "import-outlined": 59345,
8331
- "instapay-outlined": 59346,
8296
+ "circle-add-outlined": 59253,
8297
+ "circle-cancel-outlined": 59254,
8298
+ "circle-down-outlined": 59255,
8299
+ "circle-info-outlined": 59256,
8300
+ "circle-left-outlined": 59257,
8301
+ "circle-ok-outlined": 59258,
8302
+ "circle-question-outlined": 59259,
8303
+ "circle-remove-outlined": 59260,
8304
+ "circle-right-outlined": 59261,
8305
+ "circle-up-outlined": 59262,
8306
+ "circle-warning-outlined": 59263,
8307
+ "clock-2-outlined": 59264,
8308
+ "clock-in-outlined": 59265,
8309
+ "clock-out-outlined": 59266,
8310
+ "clock-outlined": 59267,
8311
+ "cog-outlined": 59268,
8312
+ "coin-outlined": 59269,
8313
+ "coin-super-outlined": 59270,
8314
+ "comment-outlined": 59271,
8315
+ "contacts-outlined": 59272,
8316
+ "contacts-user-outlined": 59273,
8317
+ "credit-card-outlined": 59274,
8318
+ "cultural-site-outlined": 59275,
8319
+ "cup-outlined": 59276,
8320
+ "dentistry-outlined": 59277,
8321
+ "direction-arrows-outlined": 59278,
8322
+ "directory-outlined": 59279,
8323
+ "document-outlined": 59280,
8324
+ "dollar-box-outlined": 59281,
8325
+ "dollar-card-outlined": 59282,
8326
+ "dollar-coin-shine-outlined": 59283,
8327
+ "dollar-credit-card-outlined": 59284,
8328
+ "dollar-sign": 59285,
8329
+ "double-buildings-outlined": 59286,
8330
+ "double-left-arrows": 59287,
8331
+ "double-right-arrows": 59288,
8332
+ "download-box-outlined": 59289,
8333
+ "download-outlined": 59290,
8334
+ "edit-template-outlined": 59291,
8335
+ "electronics-outlined": 59292,
8336
+ "email-outlined": 59293,
8337
+ "end-break-outlined": 59294,
8338
+ "enter-arrow": 59295,
8339
+ "entertainment-outlined": 59296,
8340
+ "envelope-outlined": 59297,
8341
+ "evening-outlined": 59298,
8342
+ "expense-approval-outlined": 59299,
8343
+ "expense-outlined": 59300,
8344
+ "explore-outlined": 59301,
8345
+ "extension-outlined": 59302,
8346
+ "external-link": 59303,
8347
+ "eye-invisible-outlined": 59304,
8348
+ "eye-outlined": 59305,
8349
+ "face-id": 59306,
8350
+ "face-meh-outlined": 59307,
8351
+ "face-open-smiley-outlined": 59308,
8352
+ "face-sad-outlined": 59309,
8353
+ "face-smiley-outlined": 59310,
8354
+ "fastfood-outlined": 59311,
8355
+ "feed-outlined": 59312,
8356
+ "file-certified-outlined": 59313,
8357
+ "file-clone-outlined": 59314,
8358
+ "file-copy-outlined": 59315,
8359
+ "file-dispose-outlined": 59316,
8360
+ "file-dollar-certified-outlined": 59317,
8361
+ "file-dollar-outlined": 59318,
8362
+ "file-download-outlined": 59319,
8363
+ "file-export-outlined": 59320,
8364
+ "file-lock-outlined": 59321,
8365
+ "file-outlined": 59322,
8366
+ "file-search-outlined": 59323,
8367
+ "file-secured-outlined": 59324,
8368
+ "file-statutory-outlined": 59325,
8369
+ "file-verified-outlined": 59326,
8370
+ "filter-outlined": 59327,
8371
+ "fitness-outlined": 59328,
8372
+ "folder-outlined": 59329,
8373
+ "folder-upload-outlined": 59330,
8374
+ "folder-user-outlined": 59331,
8375
+ "form-outlined": 59332,
8376
+ "funnel-filter-outline": 59333,
8377
+ "goal-outlined": 59334,
8378
+ "graph-outlined": 59335,
8379
+ "grocery-outlined": 59336,
8380
+ "hand-holding-user-outlined": 59337,
8381
+ "handshake-outlined": 59338,
8382
+ "happy-sun-outlined": 59339,
8383
+ "health-bag-outlined": 59340,
8384
+ "heart-outlined": 59341,
8385
+ "home-active-outlined": 59342,
8386
+ "home-outlined": 59343,
8387
+ "id-card-outlined": 59344,
8388
+ "image-outlined": 59345,
8389
+ "import-outlined": 59346,
8390
+ "instapay-outlined": 59347,
8332
8391
  italic: italic,
8333
- "job-search-outlined": 59348,
8334
- "leave-approval-outlined": 59349,
8335
- "link-1": 59350,
8336
- "link-2": 59351,
8337
- "list-outlined": 59352,
8338
- "live-help-outlined": 59353,
8392
+ "job-search-outlined": 59349,
8393
+ "leave-approval-outlined": 59350,
8394
+ "link-1": 59351,
8395
+ "link-2": 59352,
8396
+ "list-outlined": 59353,
8397
+ "live-help-outlined": 59354,
8339
8398
  local_mall_outlined: local_mall_outlined,
8340
- "location-on-outlined": 59355,
8341
- "location-outlined": 59356,
8342
- "lock-outlined": 59357,
8343
- "locked-file-outlined": 59358,
8344
- "log-out": 59359,
8345
- "mail-outlined": 59360,
8346
- "map-outlined": 59361,
8347
- "media-content-outlined": 59362,
8348
- "menu-close": 59363,
8349
- "menu-expand": 59364,
8350
- "menu-fold-outlined": 59365,
8351
- "menu-unfold-outlined": 59366,
8352
- "moneybag-outlined": 59367,
8353
- "moon-outlined": 59368,
8354
- "more-horizontal": 59369,
8355
- "more-vertical": 59370,
8356
- "morning-outlined": 59371,
8357
- "multiple-folders-outlined": 59372,
8358
- "multiple-users-outlined": 59373,
8359
- "near-me-outlined": 59374,
8360
- "node-outlined": 59375,
8361
- "number-points": 59376,
8399
+ "location-on-outlined": 59356,
8400
+ "location-outlined": 59357,
8401
+ "lock-outlined": 59358,
8402
+ "locked-file-outlined": 59359,
8403
+ "log-out": 59360,
8404
+ "mail-outlined": 59361,
8405
+ "map-outlined": 59362,
8406
+ "media-content-outlined": 59363,
8407
+ "menu-close": 59364,
8408
+ "menu-expand": 59365,
8409
+ "menu-fold-outlined": 59366,
8410
+ "menu-unfold-outlined": 59367,
8411
+ "moneybag-outlined": 59368,
8412
+ "moon-outlined": 59369,
8413
+ "more-horizontal": 59370,
8414
+ "more-vertical": 59371,
8415
+ "morning-outlined": 59372,
8416
+ "multiple-folders-outlined": 59373,
8417
+ "multiple-users-outlined": 59374,
8418
+ "near-me-outlined": 59375,
8419
+ "node-outlined": 59376,
8420
+ "number-points": 59377,
8362
8421
  number: number$2,
8363
- "overview-outlined": 59378,
8364
- "park-outlined": 59379,
8365
- "payment-summary-outlined": 59380,
8366
- "payslip-outlined": 59381,
8367
- "pencil-outlined": 59382,
8422
+ "overview-outlined": 59379,
8423
+ "park-outlined": 59380,
8424
+ "payment-summary-outlined": 59381,
8425
+ "payslip-outlined": 59382,
8426
+ "pencil-outlined": 59383,
8368
8427
  percentage: percentage,
8369
- "phone-outlined": 59384,
8370
- "piggy-bank-outlined": 59385,
8371
- "plane-outlined": 59386,
8372
- "play-circle-outlined": 59387,
8373
- "print-outlined": 59388,
8374
- "propane-tank-outlined": 59389,
8375
- "qr-code-outlined": 59390,
8376
- "qualification-outlined": 59391,
8377
- "re-assign": 59392,
8428
+ "phone-outlined": 59385,
8429
+ "piggy-bank-outlined": 59386,
8430
+ "plane-outlined": 59387,
8431
+ "play-circle-outlined": 59388,
8432
+ "print-outlined": 59389,
8433
+ "propane-tank-outlined": 59390,
8434
+ "qr-code-outlined": 59391,
8435
+ "qualification-outlined": 59392,
8436
+ "re-assign": 59393,
8378
8437
  redeem: redeem,
8379
8438
  refresh: refresh,
8380
8439
  remove: remove$1,
8381
- "reply-outlined": 59396,
8440
+ "reply-outlined": 59397,
8382
8441
  restart: restart,
8383
- "restaurant-outlined": 59398,
8384
- "resume-outlined": 59399,
8385
- "return-arrow": 59400,
8386
- "rostering-outlined": 59401,
8387
- "safety-outlined": 59402,
8388
- "save-outlined": 59403,
8389
- "schedule-outlined": 59404,
8390
- "search-outlined": 59405,
8391
- "search-secured-outlined": 59406,
8392
- "send-outlined": 59407,
8393
- "share-1": 59408,
8394
- "share-2": 59409,
8395
- "share-outlined-2": 59410,
8396
- "share-outlined": 59411,
8397
- "shield-check-outlined": 59412,
8398
- "shop-outlined": 59413,
8442
+ "restaurant-outlined": 59399,
8443
+ "resume-outlined": 59400,
8444
+ "return-arrow": 59401,
8445
+ "rostering-outlined": 59402,
8446
+ "safety-outlined": 59403,
8447
+ "save-outlined": 59404,
8448
+ "schedule-outlined": 59405,
8449
+ "search-outlined": 59406,
8450
+ "search-secured-outlined": 59407,
8451
+ "send-outlined": 59408,
8452
+ "share-1": 59409,
8453
+ "share-2": 59410,
8454
+ "share-outlined-2": 59411,
8455
+ "share-outlined": 59412,
8456
+ "shield-check-outlined": 59413,
8457
+ "shop-outlined": 59414,
8399
8458
  shopping_basket_outlined: shopping_basket_outlined,
8400
- "show-chart-outlined": 59415,
8401
- "single-down-arrow": 59416,
8402
- "single-left-arrow": 59417,
8403
- "single-right-arrow": 59418,
8404
- "single-up-arrow": 59419,
8405
- "smart-match-outlined": 59420,
8406
- "sparkle-outlined": 59421,
8407
- "speaker-active-outlined": 59422,
8408
- "speaker-outlined": 59423,
8409
- "star-circle-outlined": 59424,
8410
- "star-outlined": 59425,
8411
- "start-break-outlined": 59426,
8412
- "stash-outlined": 59427,
8413
- "stopwatch-outlined": 59428,
8459
+ "show-chart-outlined": 59416,
8460
+ "single-down-arrow": 59417,
8461
+ "single-left-arrow": 59418,
8462
+ "single-right-arrow": 59419,
8463
+ "single-up-arrow": 59420,
8464
+ "smart-match-outlined": 59421,
8465
+ "sparkle-outlined": 59422,
8466
+ "speaker-active-outlined": 59423,
8467
+ "speaker-outlined": 59424,
8468
+ "star-circle-outlined": 59425,
8469
+ "star-outlined": 59426,
8470
+ "start-break-outlined": 59427,
8471
+ "stash-outlined": 59428,
8472
+ "stopwatch-outlined": 59429,
8414
8473
  strikethrough: strikethrough,
8415
- "styler-outlined": 59430,
8416
- "suitcase-clock-outlined": 59431,
8417
- "suitcase-outlined": 59432,
8418
- "survey-outlined": 59433,
8419
- "switch-outlined": 59434,
8474
+ "styler-outlined": 59431,
8475
+ "suitcase-clock-outlined": 59432,
8476
+ "suitcase-outlined": 59433,
8477
+ "survey-outlined": 59434,
8478
+ "switch-outlined": 59435,
8420
8479
  sync: sync,
8421
- "tag-outlined": 59436,
8422
- "target-outlined": 59437,
8423
- "tennis-outlined": 59438,
8424
- "thumb-down-outlined": 59439,
8425
- "ticket-outlined": 59440,
8426
- "timesheet-outlined": 59441,
8427
- "timesheets-outlined": 59442,
8428
- "today-outlined": 59443,
8480
+ "tag-outlined": 59437,
8481
+ "target-outlined": 59438,
8482
+ "tennis-outlined": 59439,
8483
+ "thumb-down-outlined": 59440,
8484
+ "thumb-up-outlined": 59441,
8485
+ "ticket-outlined": 59442,
8486
+ "timesheet-outlined": 59443,
8487
+ "timesheets-outlined": 59444,
8488
+ "today-outlined": 59445,
8429
8489
  transfer: transfer,
8430
- "transportation-outlined": 59445,
8431
- "trash-bin-outlined": 59446,
8432
- "umbrela-outlined": 59447,
8433
- "unavailability-outlined": 59448,
8490
+ "transportation-outlined": 59447,
8491
+ "trash-bin-outlined": 59448,
8492
+ "umbrela-outlined": 59449,
8493
+ "unavailability-outlined": 59450,
8434
8494
  unavailable: unavailable,
8435
8495
  underline: underline,
8436
- "union-outlined": 59451,
8437
- "unlock-outlined": 59452,
8438
- "upload-outlined": 59453,
8439
- "user-circle-outlined": 59454,
8440
- "user-gear-outlined": 59455,
8441
- "user-outlined": 59456,
8442
- "user-rectangle-outlined": 59457,
8443
- "video-1-outlined": 59458,
8444
- "video-2-outlined": 59459,
8445
- "volunteer-outlined": 59460,
8446
- "wallet-outlined": 59461,
8447
- "wellness-outlined": 59462
8496
+ "union-outlined": 59453,
8497
+ "unlock-outlined": 59454,
8498
+ "upload-outlined": 59455,
8499
+ "user-circle-outlined": 59456,
8500
+ "user-gear-outlined": 59457,
8501
+ "user-outlined": 59458,
8502
+ "user-rectangle-outlined": 59459,
8503
+ "video-1-outlined": 59460,
8504
+ "video-2-outlined": 59461,
8505
+ "volunteer-outlined": 59462,
8506
+ "wallet-outlined": 59463,
8507
+ "wellness-outlined": 59464
8448
8508
  };
8449
8509
 
8450
8510
  var HeroIcon = createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
@@ -13463,6 +13523,14 @@ var CalendarRowItem = function CalendarRowItem(_ref) {
13463
13523
  }) : null));
13464
13524
  };
13465
13525
 
13526
+ var DAYS_OF_WEEK = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
13527
+ // Sunday first column => 0
13528
+ // Sunday last column => 1
13529
+ var WEEK_INDEX_OFFSET = 1;
13530
+ var SUNDAY_INDEX = 6;
13531
+ // Always render 7 rows x 6 items for consistent layout
13532
+ var TOTAL_DATES_ITEMS = 7 * 6;
13533
+
13466
13534
  var initArray = function initArray(length, func) {
13467
13535
  return Array.from(Array(length)).map(function (_, index) {
13468
13536
  return func(index);
@@ -13535,6 +13603,73 @@ var setStartOrEndDate = function setStartOrEndDate(_ref2) {
13535
13603
  endDate: undefined
13536
13604
  };
13537
13605
  };
13606
+ var shouldUseMonthPicker = function shouldUseMonthPicker(onMonthChange) {
13607
+ return onMonthChange !== noop$2;
13608
+ };
13609
+ var getCalendarDate = function getCalendarDate(_ref3) {
13610
+ var visibleDate = _ref3.visibleDate,
13611
+ _ref3$markedDates = _ref3.markedDates,
13612
+ markedDates = _ref3$markedDates === void 0 ? [] : _ref3$markedDates,
13613
+ minDate = _ref3.minDate,
13614
+ maxDate = _ref3.maxDate;
13615
+ var currentMonth = visibleDate.getMonth();
13616
+ var currentYear = visibleDate.getFullYear();
13617
+ var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
13618
+ return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
13619
+ }, {});
13620
+ var firstDateOfMonth = new Date(currentYear, currentMonth, 1);
13621
+ var lastDateOfMonth = new Date(currentYear, currentMonth + 1, 0);
13622
+ var lastDateOfPreviousMonth = new Date(currentYear, currentMonth, 0);
13623
+ // Index of day in week is shifted by 1 due to Sunday is the last column
13624
+ var firstDayWeekIndexOfMonth = firstDateOfMonth.getDay() === 0 ? SUNDAY_INDEX : firstDateOfMonth.getDay() - WEEK_INDEX_OFFSET;
13625
+ var lastDayIndexOfCurrentMonth = lastDateOfMonth.getDate();
13626
+ var lastDayIndexOfPreviousMonth = lastDateOfPreviousMonth.getDate();
13627
+ var daysOfPreviousMonth = initArray(firstDayWeekIndexOfMonth, function (index) {
13628
+ var reversedIndex = firstDayWeekIndexOfMonth - index - 1;
13629
+ var count = lastDayIndexOfPreviousMonth - reversedIndex;
13630
+ return getValidDate(new Date(currentYear, currentMonth - 1, count), minDate, maxDate);
13631
+ });
13632
+ var daysOfCurrentMonth = initArray(lastDayIndexOfCurrentMonth, function (index) {
13633
+ return getValidDate(new Date(currentYear, currentMonth, index + 1), minDate, maxDate);
13634
+ });
13635
+ var daysOfNextMonth = initArray(TOTAL_DATES_ITEMS - (daysOfPreviousMonth.length + daysOfCurrentMonth.length), function (index) {
13636
+ return getValidDate(new Date(currentYear, currentMonth + 1, index + 1), minDate, maxDate);
13637
+ });
13638
+ return {
13639
+ firstDateOfMonth: firstDateOfMonth,
13640
+ lastDateOfMonth: lastDateOfMonth,
13641
+ parsedMaskedDate: parsedMaskedDate,
13642
+ daysOfPreviousMonth: daysOfPreviousMonth,
13643
+ daysOfCurrentMonth: daysOfCurrentMonth,
13644
+ daysOfNextMonth: daysOfNextMonth
13645
+ };
13646
+ };
13647
+ var getCalendarButtonState = function getCalendarButtonState(_ref4) {
13648
+ var visibleDate = _ref4.visibleDate,
13649
+ markedDates = _ref4.markedDates,
13650
+ minDate = _ref4.minDate,
13651
+ maxDate = _ref4.maxDate;
13652
+ var _getCalendarDate = getCalendarDate({
13653
+ visibleDate: visibleDate,
13654
+ markedDates: markedDates,
13655
+ minDate: minDate,
13656
+ maxDate: maxDate
13657
+ }),
13658
+ daysOfPreviousMonth = _getCalendarDate.daysOfPreviousMonth,
13659
+ daysOfNextMonth = _getCalendarDate.daysOfNextMonth,
13660
+ firstDateOfMonth = _getCalendarDate.firstDateOfMonth,
13661
+ lastDateOfMonth = _getCalendarDate.lastDateOfMonth;
13662
+ var disablePrevButton = minDate === undefined ? false : !daysOfPreviousMonth.some(function (date) {
13663
+ return date !== undefined;
13664
+ }) && minDate >= firstDateOfMonth;
13665
+ var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
13666
+ return date !== undefined;
13667
+ }) || maxDate <= lastDateOfMonth;
13668
+ return {
13669
+ disablePrevButton: disablePrevButton,
13670
+ disableNextButton: disableNextButton
13671
+ };
13672
+ };
13538
13673
 
13539
13674
  var SelectedDate = function SelectedDate(_ref) {
13540
13675
  var date = _ref.date,
@@ -13570,13 +13705,36 @@ var SelectedDate = function SelectedDate(_ref) {
13570
13705
  }) : null));
13571
13706
  };
13572
13707
 
13573
- var DAYS_OF_WEEK$1 = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
13574
- // Sunday first column => 0
13575
- // Sunday last column => 1
13576
- var WEEK_INDEX_OFFSET$1 = 1;
13577
- var SUNDAY_INDEX$1 = 6;
13578
- // Always render 7 rows x 6 items for consistent layout
13579
- var TOTAL_DATES_ITEMS$1 = 7 * 6;
13708
+ var useCalendarLayout = function useCalendarLayout() {
13709
+ var theme = useTheme();
13710
+ var _useState = useState(0),
13711
+ _useState2 = _slicedToArray(_useState, 2),
13712
+ contentHeight = _useState2[0],
13713
+ setContentHeight = _useState2[1];
13714
+ var calendarItemHeight = contentHeight - theme.__hd__.calendar.space.iosPickerMarginVertical * 2;
13715
+ var _useState3 = useState(0),
13716
+ _useState4 = _slicedToArray(_useState3, 2),
13717
+ contentWidth = _useState4[0],
13718
+ setContentWidth = _useState4[1];
13719
+ var calendarItemWidth = useMemo(function () {
13720
+ return contentWidth > 0 ? Math.floor((contentWidth - theme.__hd__.calendar.space.cellPadding) / 7) : undefined;
13721
+ }, [contentWidth, theme]);
13722
+ var onLayout = useCallback(function (e) {
13723
+ var _e$nativeEvent$layout = e.nativeEvent.layout,
13724
+ width = _e$nativeEvent$layout.width,
13725
+ height = _e$nativeEvent$layout.height;
13726
+ setContentHeight(height);
13727
+ setContentWidth(width);
13728
+ }, []);
13729
+ return {
13730
+ onLayout: onLayout,
13731
+ contentHeight: contentHeight,
13732
+ calendarItemHeight: calendarItemHeight,
13733
+ contentWidth: contentWidth,
13734
+ calendarItemWidth: calendarItemWidth
13735
+ };
13736
+ };
13737
+
13580
13738
  var CalendarRange = function CalendarRange(_ref) {
13581
13739
  var value = _ref.value,
13582
13740
  visibleDate = _ref.visibleDate,
@@ -13599,52 +13757,35 @@ var CalendarRange = function CalendarRange(_ref) {
13599
13757
  monthPickerConfirmLabel = _ref.monthPickerConfirmLabel,
13600
13758
  monthPickerCancelLabel = _ref.monthPickerCancelLabel;
13601
13759
  var theme = useTheme();
13602
- var currentMonth = visibleDate.getMonth();
13603
- var currentYear = visibleDate.getFullYear();
13604
- var now = new Date();
13605
- var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
13606
- return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
13607
- }, {});
13608
13760
  var _useState = useState(false),
13609
13761
  _useState2 = _slicedToArray(_useState, 2),
13610
13762
  monthPickerVisible = _useState2[0],
13611
13763
  setMonthPickerVisible = _useState2[1];
13612
- var _useState3 = useState(0),
13613
- _useState4 = _slicedToArray(_useState3, 2),
13614
- contentHeight = _useState4[0],
13615
- setContentHeight = _useState4[1];
13616
- var _useState5 = useState(0),
13617
- _useState6 = _slicedToArray(_useState5, 2),
13618
- contentWidth = _useState6[0],
13619
- setContentWidth = _useState6[1];
13620
- var calendarItemWidth = useMemo(function () {
13621
- return contentWidth > 0 ? Math.floor((contentWidth - theme.__hd__.calendar.space.cellPadding) / 7) : undefined;
13622
- }, [contentWidth, theme]);
13623
- var useMonthPicker = onMonthChange !== noop$2;
13624
- var firstDateOfMonth = new Date(currentYear, currentMonth, 1);
13625
- var lastDateOfMonth = new Date(currentYear, currentMonth + 1, 0);
13626
- var lastDateOfPreviousMonth = new Date(currentYear, currentMonth, 0);
13627
- // Index of day in week is shifted by 1 due to Sunday is the last column
13628
- var firstDayWeekIndexOfMonth = firstDateOfMonth.getDay() === 0 ? SUNDAY_INDEX$1 : firstDateOfMonth.getDay() - WEEK_INDEX_OFFSET$1;
13629
- var lastDayIndexOfCurrentMonth = lastDateOfMonth.getDate();
13630
- var lastDayIndexOfPreviousMonth = lastDateOfPreviousMonth.getDate();
13631
- var daysOfPreviousMonth = initArray(firstDayWeekIndexOfMonth, function (index) {
13632
- var reversedIndex = firstDayWeekIndexOfMonth - index - 1;
13633
- var count = lastDayIndexOfPreviousMonth - reversedIndex;
13634
- return getValidDate(new Date(currentYear, currentMonth - 1, count), minDate, maxDate);
13635
- });
13636
- var daysOfCurrentMonth = initArray(lastDayIndexOfCurrentMonth, function (index) {
13637
- return getValidDate(new Date(currentYear, currentMonth, index + 1), minDate, maxDate);
13638
- });
13639
- var daysOfNextMonth = initArray(TOTAL_DATES_ITEMS$1 - (daysOfPreviousMonth.length + daysOfCurrentMonth.length), function (index) {
13640
- return getValidDate(new Date(currentYear, currentMonth + 1, index + 1), minDate, maxDate);
13641
- });
13642
- var disablePrevButton = minDate === undefined ? false : !daysOfPreviousMonth.some(function (date) {
13643
- return date !== undefined;
13644
- }) && minDate >= firstDateOfMonth;
13645
- var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
13646
- return date !== undefined;
13647
- }) || maxDate <= lastDateOfMonth;
13764
+ var _useCalendarLayout = useCalendarLayout(),
13765
+ onLayout = _useCalendarLayout.onLayout,
13766
+ contentHeight = _useCalendarLayout.contentHeight,
13767
+ contentWidth = _useCalendarLayout.contentWidth,
13768
+ calendarItemWidth = _useCalendarLayout.calendarItemWidth;
13769
+ var _getCalendarDate = getCalendarDate({
13770
+ visibleDate: visibleDate,
13771
+ markedDates: markedDates,
13772
+ minDate: minDate,
13773
+ maxDate: maxDate,
13774
+ onMonthChange: onMonthChange
13775
+ }),
13776
+ parsedMaskedDate = _getCalendarDate.parsedMaskedDate,
13777
+ daysOfPreviousMonth = _getCalendarDate.daysOfPreviousMonth,
13778
+ daysOfCurrentMonth = _getCalendarDate.daysOfCurrentMonth,
13779
+ daysOfNextMonth = _getCalendarDate.daysOfNextMonth;
13780
+ var _getCalendarButtonSta = getCalendarButtonState({
13781
+ visibleDate: visibleDate,
13782
+ minDate: minDate,
13783
+ maxDate: maxDate
13784
+ }),
13785
+ disablePrevButton = _getCalendarButtonSta.disablePrevButton,
13786
+ disableNextButton = _getCalendarButtonSta.disableNextButton;
13787
+ var shouldShowMonthPicker = shouldUseMonthPicker(onMonthChange);
13788
+ var now = new Date();
13648
13789
  var onDateChange = function onDateChange(date) {
13649
13790
  var newDateRange = setStartOrEndDate({
13650
13791
  date: date,
@@ -13692,17 +13833,10 @@ var CalendarRange = function CalendarRange(_ref) {
13692
13833
  textIntent: isCurrentMonth ? undefined : 'subdued'
13693
13834
  });
13694
13835
  };
13695
- var onLayout = function onLayout(e) {
13696
- var _e$nativeEvent$layout = e.nativeEvent.layout,
13697
- width = _e$nativeEvent$layout.width,
13698
- height = _e$nativeEvent$layout.height;
13699
- setContentHeight(height);
13700
- setContentWidth(width);
13701
- };
13702
13836
  return /*#__PURE__*/React__default.createElement(StyledContainer$7, {
13703
13837
  testID: testID
13704
13838
  }, /*#__PURE__*/React__default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default.createElement(ContentNavigator, {
13705
- value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
13839
+ value: !shouldShowMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
13706
13840
  testID: "calendar-month-picker",
13707
13841
  onPress: function onPress() {
13708
13842
  onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
@@ -13724,7 +13858,7 @@ var CalendarRange = function CalendarRange(_ref) {
13724
13858
  }))),
13725
13859
  onPreviousPress: onPreviousPress,
13726
13860
  onNextPress: onNextPress,
13727
- onPress: useMonthPicker ? undefined : onTitlePress,
13861
+ onPress: shouldShowMonthPicker ? undefined : onTitlePress,
13728
13862
  previousDisabled: disablePrevButton,
13729
13863
  nextDisabled: disableNextButton,
13730
13864
  fontSize: "large"
@@ -13744,7 +13878,7 @@ var CalendarRange = function CalendarRange(_ref) {
13744
13878
  }
13745
13879
  })) : /*#__PURE__*/React__default.createElement(Box, {
13746
13880
  onLayout: onLayout
13747
- }, /*#__PURE__*/React__default.createElement(StyledCalendarRow, null, DAYS_OF_WEEK$1.map(function (day) {
13881
+ }, /*#__PURE__*/React__default.createElement(StyledCalendarRow, null, DAYS_OF_WEEK.map(function (day) {
13748
13882
  return /*#__PURE__*/React__default.createElement(StyledCalendarRowItem, {
13749
13883
  key: day
13750
13884
  }, /*#__PURE__*/React__default.createElement(StyledCalendarDayNameCell, {
@@ -13784,13 +13918,6 @@ var CalendarRange = function CalendarRange(_ref) {
13784
13918
  })));
13785
13919
  };
13786
13920
 
13787
- var DAYS_OF_WEEK = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
13788
- // Sunday first column => 0
13789
- // Sunday last column => 1
13790
- var WEEK_INDEX_OFFSET = 1;
13791
- var SUNDAY_INDEX = 6;
13792
- // Always render 7 rows x 6 items for consistent layout
13793
- var TOTAL_DATES_ITEMS = 7 * 6;
13794
13921
  var Calendar = function Calendar(_ref) {
13795
13922
  var value = _ref.value,
13796
13923
  visibleDate = _ref.visibleDate,
@@ -13813,63 +13940,39 @@ var Calendar = function Calendar(_ref) {
13813
13940
  monthPickerConfirmLabel = _ref.monthPickerConfirmLabel,
13814
13941
  monthPickerCancelLabel = _ref.monthPickerCancelLabel;
13815
13942
  var theme = useTheme();
13816
- var currentMonth = visibleDate.getMonth();
13817
- var currentYear = visibleDate.getFullYear();
13818
- var now = new Date();
13819
- var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
13820
- return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
13821
- }, {});
13943
+ var _useCalendarLayout = useCalendarLayout(),
13944
+ onLayout = _useCalendarLayout.onLayout,
13945
+ contentHeight = _useCalendarLayout.contentHeight,
13946
+ contentWidth = _useCalendarLayout.contentWidth,
13947
+ calendarItemWidth = _useCalendarLayout.calendarItemWidth;
13948
+ var _getCalendarDate = getCalendarDate({
13949
+ visibleDate: visibleDate,
13950
+ markedDates: markedDates,
13951
+ minDate: minDate,
13952
+ maxDate: maxDate,
13953
+ onMonthChange: onMonthChange
13954
+ }),
13955
+ parsedMaskedDate = _getCalendarDate.parsedMaskedDate,
13956
+ daysOfPreviousMonth = _getCalendarDate.daysOfPreviousMonth,
13957
+ daysOfCurrentMonth = _getCalendarDate.daysOfCurrentMonth,
13958
+ daysOfNextMonth = _getCalendarDate.daysOfNextMonth;
13959
+ var _getCalendarButtonSta = getCalendarButtonState({
13960
+ visibleDate: visibleDate,
13961
+ minDate: minDate,
13962
+ maxDate: maxDate
13963
+ }),
13964
+ disablePrevButton = _getCalendarButtonSta.disablePrevButton,
13965
+ disableNextButton = _getCalendarButtonSta.disableNextButton;
13966
+ var shouldShowMonthPicker = shouldUseMonthPicker(onMonthChange);
13822
13967
  var _useState = useState(false),
13823
13968
  _useState2 = _slicedToArray(_useState, 2),
13824
13969
  monthPickerVisible = _useState2[0],
13825
13970
  setMonthPickerVisible = _useState2[1];
13826
- var _useState3 = useState(0),
13827
- _useState4 = _slicedToArray(_useState3, 2),
13828
- contentHeight = _useState4[0],
13829
- setContentHeight = _useState4[1];
13830
- var _useState5 = useState(0),
13831
- _useState6 = _slicedToArray(_useState5, 2),
13832
- contentWidth = _useState6[0],
13833
- setContentWidth = _useState6[1];
13834
- var calendarItemWidth = useMemo(function () {
13835
- return contentWidth > 0 ? Math.floor((contentWidth - theme.__hd__.calendar.space.cellPadding) / 7) : undefined;
13836
- }, [contentWidth, theme]);
13837
- var useMonthPicker = onMonthChange !== noop$2;
13838
- var firstDateOfMonth = new Date(currentYear, currentMonth, 1);
13839
- var lastDateOfMonth = new Date(currentYear, currentMonth + 1, 0);
13840
- var lastDateOfPreviousMonth = new Date(currentYear, currentMonth, 0);
13841
- // Index of day in week is shifted by 1 due to Sunday is the last column
13842
- var firstDayWeekIndexOfMonth = firstDateOfMonth.getDay() === 0 ? SUNDAY_INDEX : firstDateOfMonth.getDay() - WEEK_INDEX_OFFSET;
13843
- var lastDayIndexOfCurrentMonth = lastDateOfMonth.getDate();
13844
- var lastDayIndexOfPreviousMonth = lastDateOfPreviousMonth.getDate();
13845
- var daysOfPreviousMonth = initArray(firstDayWeekIndexOfMonth, function (index) {
13846
- var reversedIndex = firstDayWeekIndexOfMonth - index - 1;
13847
- var count = lastDayIndexOfPreviousMonth - reversedIndex;
13848
- return getValidDate(new Date(currentYear, currentMonth - 1, count), minDate, maxDate);
13849
- });
13850
- var daysOfCurrentMonth = initArray(lastDayIndexOfCurrentMonth, function (index) {
13851
- return getValidDate(new Date(currentYear, currentMonth, index + 1), minDate, maxDate);
13852
- });
13853
- var daysOfNextMonth = initArray(TOTAL_DATES_ITEMS - (daysOfPreviousMonth.length + daysOfCurrentMonth.length), function (index) {
13854
- return getValidDate(new Date(currentYear, currentMonth + 1, index + 1), minDate, maxDate);
13855
- });
13856
- var disablePrevButton = minDate === undefined ? false : !daysOfPreviousMonth.some(function (date) {
13857
- return date !== undefined;
13858
- }) && minDate >= firstDateOfMonth;
13859
- var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
13860
- return date !== undefined;
13861
- }) || maxDate <= lastDateOfMonth;
13862
- var onLayout = function onLayout(e) {
13863
- var _e$nativeEvent$layout = e.nativeEvent.layout,
13864
- width = _e$nativeEvent$layout.width,
13865
- height = _e$nativeEvent$layout.height;
13866
- setContentHeight(height);
13867
- setContentWidth(width);
13868
- };
13971
+ var now = new Date();
13869
13972
  return /*#__PURE__*/React__default.createElement(StyledContainer$7, {
13870
13973
  testID: testID
13871
13974
  }, /*#__PURE__*/React__default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default.createElement(ContentNavigator, {
13872
- value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
13975
+ value: !shouldShowMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
13873
13976
  testID: "calendar-month-picker",
13874
13977
  onPress: function onPress() {
13875
13978
  onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
@@ -13891,7 +13994,7 @@ var Calendar = function Calendar(_ref) {
13891
13994
  }))),
13892
13995
  onPreviousPress: onPreviousPress,
13893
13996
  onNextPress: onNextPress,
13894
- onPress: useMonthPicker ? undefined : onTitlePress,
13997
+ onPress: shouldShowMonthPicker ? undefined : onTitlePress,
13895
13998
  previousDisabled: disablePrevButton,
13896
13999
  nextDisabled: disableNextButton,
13897
14000
  fontSize: "large"
@@ -46891,6 +46994,184 @@ var Search = {
46891
46994
  SuffixIcon: SearchSuffixIcon
46892
46995
  };
46893
46996
 
46997
+ var StyledSegmentedControlWrapper = index$b(Box)(function (_ref) {
46998
+ var themeSize = _ref.themeSize,
46999
+ theme = _ref.theme;
47000
+ return {
47001
+ flexDirection: 'row',
47002
+ alignItems: 'center',
47003
+ justifyContent: 'center',
47004
+ height: theme.__hd__.segmentedControl.sizes.wrapperHeight[themeSize],
47005
+ borderRadius: theme.__hd__.segmentedControl.radii.wrapper[themeSize],
47006
+ backgroundColor: theme.__hd__.segmentedControl.colors.wrapperBackground,
47007
+ alignSelf: 'flex-start',
47008
+ paddingHorizontal: theme.__hd__.segmentedControl.space.wrapperHorizontalPadding
47009
+ };
47010
+ });
47011
+ var StyledSegmentedItem = index$b(TouchableOpacity)(function (_ref2) {
47012
+ var themeSize = _ref2.themeSize,
47013
+ theme = _ref2.theme,
47014
+ themeSelected = _ref2.themeSelected;
47015
+ return _objectSpread2({
47016
+ flexGrow: 1,
47017
+ flexDirection: 'row',
47018
+ alignItems: 'center',
47019
+ justifyContent: 'center',
47020
+ height: theme.__hd__.segmentedControl.sizes.itemHeight[themeSize],
47021
+ borderRadius: theme.__hd__.segmentedControl.radii.item[themeSize],
47022
+ backgroundColor: themeSelected ? theme.__hd__.segmentedControl.colors.itemBackground.active : theme.__hd__.segmentedControl.colors.itemBackground.inactive
47023
+ }, theme.__hd__.segmentedControl.shadows.item[themeSelected ? 'active' : 'inactive']);
47024
+ });
47025
+ var StyledSegmentedItemWrapper = index$b(Box)(function (_ref3) {
47026
+ var theme = _ref3.theme;
47027
+ return {
47028
+ flexDirection: 'row',
47029
+ alignItems: 'center',
47030
+ justifyContent: 'center',
47031
+ gap: theme.__hd__.segmentedControl.space.itemAffixGap
47032
+ };
47033
+ });
47034
+ var StyledSegmentedItemLabelWrapper = index$b(Box)(function (_ref4) {
47035
+ var theme = _ref4.theme;
47036
+ return {
47037
+ flexDirection: 'row',
47038
+ alignItems: 'center',
47039
+ justifyContent: 'center',
47040
+ gap: theme.__hd__.segmentedControl.space.itemLabelGap
47041
+ };
47042
+ });
47043
+ var StyledSegmentedItemText = index$b(Typography.Body)(function (_ref5) {
47044
+ var theme = _ref5.theme;
47045
+ return {
47046
+ lineHeight: theme.__hd__.segmentedControl.lineHeights.itemText
47047
+ };
47048
+ });
47049
+
47050
+ var DOT_CHAR = "\xB7";
47051
+ var SegmentedItemBadge = function SegmentedItemBadge(_ref) {
47052
+ var children = _ref.children,
47053
+ badge = _ref.badge,
47054
+ testID = _ref.testID;
47055
+ if (!badge) return children;
47056
+ if (badge.type === 'status') {
47057
+ return /*#__PURE__*/React__default.createElement(Badge$1.Status, {
47058
+ visible: true,
47059
+ testID: testID
47060
+ }, /*#__PURE__*/React__default.createElement(Box, {
47061
+ marginEnd: "smallMedium"
47062
+ }, children));
47063
+ }
47064
+ if (badge.type === 'counter') {
47065
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box, {
47066
+ marginEnd: "xsmall"
47067
+ }, children), /*#__PURE__*/React__default.createElement(Badge$1, {
47068
+ visible: true,
47069
+ content: badge.value,
47070
+ max: badge.max,
47071
+ testID: testID,
47072
+ size: "small"
47073
+ }));
47074
+ }
47075
+ };
47076
+ var getTextAndIconIntent = function getTextAndIconIntent(_ref2) {
47077
+ var selected = _ref2.selected,
47078
+ disabled = _ref2.disabled;
47079
+ if (disabled) {
47080
+ return {
47081
+ iconIntent: 'disabled-text',
47082
+ textIntent: 'disabled',
47083
+ subTextIntent: 'disabled'
47084
+ };
47085
+ }
47086
+ if (selected) {
47087
+ return {
47088
+ iconIntent: 'text',
47089
+ textIntent: 'body',
47090
+ subTextIntent: 'muted'
47091
+ };
47092
+ }
47093
+ return {
47094
+ iconIntent: 'inactive',
47095
+ textIntent: 'inactive',
47096
+ subTextIntent: 'inactive'
47097
+ };
47098
+ };
47099
+ var SegmentedItem = function SegmentedItem(_ref3) {
47100
+ var label = _ref3.label,
47101
+ prefix = _ref3.prefix,
47102
+ suffix = _ref3.suffix,
47103
+ _ref3$selected = _ref3.selected,
47104
+ selected = _ref3$selected === void 0 ? false : _ref3$selected,
47105
+ _ref3$size = _ref3.size,
47106
+ size = _ref3$size === void 0 ? 'medium' : _ref3$size,
47107
+ testID = _ref3.testID,
47108
+ onPress = _ref3.onPress,
47109
+ disabled = _ref3.disabled,
47110
+ badge = _ref3.badge,
47111
+ subText = _ref3.subText;
47112
+ var _getTextAndIconIntent = getTextAndIconIntent({
47113
+ selected: selected,
47114
+ disabled: disabled
47115
+ }),
47116
+ iconIntent = _getTextAndIconIntent.iconIntent,
47117
+ textIntent = _getTextAndIconIntent.textIntent,
47118
+ subTextIntent = _getTextAndIconIntent.subTextIntent;
47119
+ var shouldShowSuffix = !!label && !!suffix;
47120
+ return /*#__PURE__*/React__default.createElement(StyledSegmentedItem, {
47121
+ themeSize: size,
47122
+ themeSelected: selected,
47123
+ testID: testID,
47124
+ onPress: onPress,
47125
+ disabled: disabled
47126
+ }, /*#__PURE__*/React__default.createElement(SegmentedItemBadge, {
47127
+ badge: badge,
47128
+ testID: "".concat(testID, "-badge")
47129
+ }, /*#__PURE__*/React__default.createElement(StyledSegmentedItemWrapper, null, prefix && /*#__PURE__*/React__default.createElement(Icon, {
47130
+ icon: prefix,
47131
+ intent: iconIntent,
47132
+ size: "xxxsmall",
47133
+ testID: "".concat(testID, "-prefix")
47134
+ }), !!label && /*#__PURE__*/React__default.createElement(StyledSegmentedItemLabelWrapper, null, label && /*#__PURE__*/React__default.createElement(StyledSegmentedItemText, {
47135
+ variant: "small-bold",
47136
+ intent: textIntent
47137
+ }, label), subText && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledSegmentedItemText, {
47138
+ variant: "small",
47139
+ intent: subTextIntent
47140
+ }, DOT_CHAR), /*#__PURE__*/React__default.createElement(StyledSegmentedItemText, {
47141
+ variant: "small",
47142
+ intent: subTextIntent
47143
+ }, subText))), shouldShowSuffix && /*#__PURE__*/React__default.createElement(Icon, {
47144
+ icon: suffix,
47145
+ intent: iconIntent,
47146
+ size: "xxxsmall",
47147
+ testID: "".concat(testID, "-suffix")
47148
+ }))));
47149
+ };
47150
+
47151
+ var SegmentedControl = function SegmentedControl(_ref) {
47152
+ var _ref$size = _ref.size,
47153
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
47154
+ items = _ref.items,
47155
+ value = _ref.value,
47156
+ testID = _ref.testID,
47157
+ style = _ref.style,
47158
+ onItemPress = _ref.onItemPress;
47159
+ return /*#__PURE__*/React__default.createElement(StyledSegmentedControlWrapper, {
47160
+ themeSize: size,
47161
+ testID: testID,
47162
+ style: style
47163
+ }, items.map(function (item) {
47164
+ return /*#__PURE__*/React__default.createElement(SegmentedItem, _extends$1({}, item, {
47165
+ key: item.value,
47166
+ selected: item.value === value,
47167
+ onPress: function onPress() {
47168
+ return onItemPress(item);
47169
+ },
47170
+ size: size
47171
+ }));
47172
+ }));
47173
+ };
47174
+
46894
47175
  var StyledWrapper = index$b.TouchableOpacity(function (_ref) {
46895
47176
  var theme = _ref.theme;
46896
47177
  return _objectSpread2({
@@ -47091,4 +47372,4 @@ var FilterTrigger = function FilterTrigger(_ref) {
47091
47372
  })));
47092
47373
  };
47093
47374
 
47094
- export { Accordion, Alert, AppCue, Attachment, index$a as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar$1 as Calendar, Card$1 as Card, index$9 as Carousel, Chart, Checkbox, Chip, Collapse, ContentNavigator, index$8 as DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FilterTrigger, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List$1 as List, LocaleProvider, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, PublicTimePicker as TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, ehJobsSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, getTheme, jobsSystemPalette, scale, index$b as styled, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette$1 as swagLightSystemPalette, swagSystemPalette$2 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
47375
+ export { Accordion, Alert, AppCue, Attachment, index$a as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar$1 as Calendar, Card$1 as Card, index$9 as Carousel, Chart, Checkbox, Chip, Collapse, ContentNavigator, index$8 as DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FilterTrigger, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List$1 as List, LocaleProvider, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, SegmentedControl, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, PublicTimePicker as TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, ehJobsSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, getTheme, jobsSystemPalette, scale, index$b as styled, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette$1 as swagLightSystemPalette, swagSystemPalette$2 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };