@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.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +6 -10
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +683 -402
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +683 -401
- package/package.json +1 -1
- package/src/components/Calendar/CalendarRange.tsx +35 -117
- package/src/components/Calendar/__tests__/helper.spec.ts +197 -0
- package/src/components/Calendar/constants.ts +9 -0
- package/src/components/Calendar/helpers.ts +112 -0
- package/src/components/Calendar/index.tsx +34 -159
- package/src/components/Calendar/shared/hooks/useCalendarLayout.ts +37 -0
- package/src/components/Calendar/types.ts +62 -0
- package/src/components/DatePicker/DatePickerCalendar.tsx +2 -1
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/SegmentedControl/SegmentedItem.tsx +192 -0
- package/src/components/SegmentedControl/StyledSegmentedControl.tsx +62 -0
- package/src/components/SegmentedControl/__tests__/SegmentedItem.spec.tsx +162 -0
- package/src/components/SegmentedControl/__tests__/__snapshots__/SegmentedItem.spec.tsx.snap +131 -0
- package/src/components/SegmentedControl/__tests__/__snapshots__/index.spec.tsx.snap +359 -0
- package/src/components/SegmentedControl/__tests__/index.spec.tsx +247 -0
- package/src/components/SegmentedControl/index.tsx +61 -0
- package/src/components/SegmentedControl/types.ts +46 -0
- package/src/components/Typography/Body/StyledBody.tsx +2 -2
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
- package/src/components/Typography/Body/__tests__/index.spec.tsx +1 -0
- package/src/components/Typography/Body/index.tsx +2 -13
- package/src/components/Typography/Caption/StyledCaption.tsx +2 -2
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +50 -0
- package/src/components/Typography/Caption/__tests__/index.spec.tsx +1 -0
- package/src/components/Typography/Caption/index.tsx +2 -13
- package/src/components/Typography/Label/StyledLabel.tsx +2 -2
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +48 -0
- package/src/components/Typography/Label/__tests__/index.spec.tsx +1 -0
- package/src/components/Typography/Label/index.tsx +2 -13
- package/src/components/Typography/Title/StyledTitle.tsx +2 -2
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
- package/src/components/Typography/Title/__tests__/index.spec.tsx +1 -0
- package/src/components/Typography/Title/index.tsx +2 -13
- package/src/components/Typography/types.ts +3 -2
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +54 -0
- package/src/theme/components/segmentedControl.ts +60 -0
- package/src/theme/components/typography.ts +1 -0
- package/src/theme/getTheme.ts +3 -0
- package/src/types.ts +2 -0
- package/stats/8.104.0/rn-stats.html +3 -1
- package/stats/8.105.0/rn-stats.html +4844 -0
- package/types/components/Calendar/CalendarRange.d.ts +4 -16
- package/types/components/Calendar/constants.d.ts +4 -0
- package/types/components/Calendar/helpers.d.ts +14 -0
- package/types/components/Calendar/index.d.ts +5 -56
- package/types/components/Calendar/shared/hooks/useCalendarLayout.d.ts +8 -0
- package/types/components/Calendar/types.d.ts +58 -0
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/SegmentedControl/SegmentedItem.d.ts +18 -0
- package/types/components/SegmentedControl/StyledSegmentedControl.d.ts +26 -0
- package/types/components/SegmentedControl/index.d.ts +31 -0
- package/types/components/SegmentedControl/types.d.ts +43 -0
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/components/Typography/Body/StyledBody.d.ts +2 -2
- package/types/components/Typography/Body/index.d.ts +2 -1
- package/types/components/Typography/Caption/StyledCaption.d.ts +2 -2
- package/types/components/Typography/Caption/index.d.ts +2 -1
- package/types/components/Typography/Label/StyledLabel.d.ts +2 -2
- package/types/components/Typography/Label/index.d.ts +2 -1
- package/types/components/Typography/Title/StyledTitle.d.ts +2 -2
- package/types/components/Typography/Title/index.d.ts +2 -1
- package/types/components/Typography/types.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/theme/components/segmentedControl.d.ts +46 -0
- package/types/theme/components/typography.d.ts +1 -0
- package/types/theme/getTheme.d.ts +2 -0
- package/types/types.d.ts +2 -1
package/lib/index.js
CHANGED
|
@@ -7095,7 +7095,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
7095
7095
|
inverted: theme.colors.onDarkGlobalSurface,
|
|
7096
7096
|
archived: theme.colors.onArchivedSurface,
|
|
7097
7097
|
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
7098
|
-
muted: theme.colors.mutedOnDefaultGlobalSurface
|
|
7098
|
+
muted: theme.colors.mutedOnDefaultGlobalSurface,
|
|
7099
|
+
inactive: theme.colors.inactiveOnDefaultGlobalSurface
|
|
7099
7100
|
};
|
|
7100
7101
|
var fontSizes = {
|
|
7101
7102
|
xsmall: theme.fontSizes.xsmall,
|
|
@@ -7487,6 +7488,62 @@ var getFilterTriggerTheme = function getFilterTriggerTheme(theme) {
|
|
|
7487
7488
|
};
|
|
7488
7489
|
};
|
|
7489
7490
|
|
|
7491
|
+
var getSegmentedControlTheme = function getSegmentedControlTheme(theme) {
|
|
7492
|
+
var sizes = {
|
|
7493
|
+
itemHeight: {
|
|
7494
|
+
medium: scale(28),
|
|
7495
|
+
large: scale(36)
|
|
7496
|
+
},
|
|
7497
|
+
wrapperHeight: {
|
|
7498
|
+
medium: scale(36),
|
|
7499
|
+
large: scale(44)
|
|
7500
|
+
}
|
|
7501
|
+
};
|
|
7502
|
+
var colors = {
|
|
7503
|
+
itemBackground: {
|
|
7504
|
+
inactive: 'transparent',
|
|
7505
|
+
active: theme.colors.defaultGlobalSurface
|
|
7506
|
+
},
|
|
7507
|
+
wrapperBackground: theme.colors.neutralGlobalSurface
|
|
7508
|
+
};
|
|
7509
|
+
var shadows = {
|
|
7510
|
+
item: {
|
|
7511
|
+
inactive: undefined,
|
|
7512
|
+
active: theme.shadows["default"]
|
|
7513
|
+
}
|
|
7514
|
+
};
|
|
7515
|
+
var radii = {
|
|
7516
|
+
item: {
|
|
7517
|
+
medium: theme.radii.large,
|
|
7518
|
+
large: theme.radii.xlarge
|
|
7519
|
+
},
|
|
7520
|
+
wrapper: {
|
|
7521
|
+
medium: theme.radii.xlarge,
|
|
7522
|
+
large: theme.radii.xxlarge
|
|
7523
|
+
}
|
|
7524
|
+
};
|
|
7525
|
+
var space = {
|
|
7526
|
+
wrapperHorizontalPadding: theme.space.xsmall,
|
|
7527
|
+
itemLabelGap: theme.space.xsmall,
|
|
7528
|
+
itemLabelMarginEnd: theme.space.smallMedium,
|
|
7529
|
+
itemAffixGap: theme.space.small
|
|
7530
|
+
};
|
|
7531
|
+
var lineHeights = {
|
|
7532
|
+
itemText: reactNative.Platform.select({
|
|
7533
|
+
android: 20,
|
|
7534
|
+
ios: undefined
|
|
7535
|
+
})
|
|
7536
|
+
};
|
|
7537
|
+
return {
|
|
7538
|
+
sizes: sizes,
|
|
7539
|
+
colors: colors,
|
|
7540
|
+
shadows: shadows,
|
|
7541
|
+
radii: radii,
|
|
7542
|
+
space: space,
|
|
7543
|
+
lineHeights: lineHeights
|
|
7544
|
+
};
|
|
7545
|
+
};
|
|
7546
|
+
|
|
7490
7547
|
var getTheme = function getTheme() {
|
|
7491
7548
|
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
|
|
7492
7549
|
var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$2;
|
|
@@ -7547,7 +7604,8 @@ var getTheme = function getTheme() {
|
|
|
7547
7604
|
toast: getToastTheme(globalTheme),
|
|
7548
7605
|
toolbar: getToolbarTheme(globalTheme),
|
|
7549
7606
|
typography: getTypographyTheme(globalTheme),
|
|
7550
|
-
floatingIsland: getFloatingIslandTheme(globalTheme)
|
|
7607
|
+
floatingIsland: getFloatingIslandTheme(globalTheme),
|
|
7608
|
+
segmentedControl: getSegmentedControlTheme(globalTheme)
|
|
7551
7609
|
}
|
|
7552
7610
|
});
|
|
7553
7611
|
};
|
|
@@ -7916,7 +7974,7 @@ var Typography = {
|
|
|
7916
7974
|
};
|
|
7917
7975
|
|
|
7918
7976
|
// 🔴 DO NOT EDIT — This file is generated automatically.
|
|
7919
|
-
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'];
|
|
7977
|
+
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'];
|
|
7920
7978
|
|
|
7921
7979
|
var activate = 59000;
|
|
7922
7980
|
var adjustment = 59003;
|
|
@@ -7987,29 +8045,29 @@ var swag = 59175;
|
|
|
7987
8045
|
var tag = 59178;
|
|
7988
8046
|
var target = 59179;
|
|
7989
8047
|
var teams = 59180;
|
|
7990
|
-
var timesheet =
|
|
7991
|
-
var unlock =
|
|
7992
|
-
var user =
|
|
7993
|
-
var wallet =
|
|
7994
|
-
var warning =
|
|
7995
|
-
var add =
|
|
7996
|
-
var bold =
|
|
7997
|
-
var cancel =
|
|
7998
|
-
var checkmark =
|
|
7999
|
-
var italic =
|
|
8000
|
-
var local_mall_outlined =
|
|
8001
|
-
var number$2 =
|
|
8002
|
-
var percentage =
|
|
8003
|
-
var redeem =
|
|
8004
|
-
var refresh =
|
|
8005
|
-
var remove$1 =
|
|
8006
|
-
var restart =
|
|
8007
|
-
var shopping_basket_outlined =
|
|
8008
|
-
var strikethrough =
|
|
8009
|
-
var sync =
|
|
8010
|
-
var transfer =
|
|
8011
|
-
var unavailable =
|
|
8012
|
-
var underline =
|
|
8048
|
+
var timesheet = 59183;
|
|
8049
|
+
var unlock = 59186;
|
|
8050
|
+
var user = 59187;
|
|
8051
|
+
var wallet = 59190;
|
|
8052
|
+
var warning = 59191;
|
|
8053
|
+
var add = 59199;
|
|
8054
|
+
var bold = 59229;
|
|
8055
|
+
var cancel = 59246;
|
|
8056
|
+
var checkmark = 59252;
|
|
8057
|
+
var italic = 59348;
|
|
8058
|
+
var local_mall_outlined = 59355;
|
|
8059
|
+
var number$2 = 59378;
|
|
8060
|
+
var percentage = 59384;
|
|
8061
|
+
var redeem = 59394;
|
|
8062
|
+
var refresh = 59395;
|
|
8063
|
+
var remove$1 = 59396;
|
|
8064
|
+
var restart = 59398;
|
|
8065
|
+
var shopping_basket_outlined = 59415;
|
|
8066
|
+
var strikethrough = 59430;
|
|
8067
|
+
var sync = 59436;
|
|
8068
|
+
var transfer = 59446;
|
|
8069
|
+
var unavailable = 59451;
|
|
8070
|
+
var underline = 59452;
|
|
8013
8071
|
var glyphMap = {
|
|
8014
8072
|
activate: activate,
|
|
8015
8073
|
"add-emoji": 59001,
|
|
@@ -8193,287 +8251,289 @@ var glyphMap = {
|
|
|
8193
8251
|
target: target,
|
|
8194
8252
|
teams: teams,
|
|
8195
8253
|
"thumb-down": 59181,
|
|
8254
|
+
"thumb-up": 59182,
|
|
8196
8255
|
timesheet: timesheet,
|
|
8197
|
-
"touch-id":
|
|
8198
|
-
"trash-bin":
|
|
8256
|
+
"touch-id": 59184,
|
|
8257
|
+
"trash-bin": 59185,
|
|
8199
8258
|
unlock: unlock,
|
|
8200
8259
|
user: user,
|
|
8201
|
-
"video-1":
|
|
8202
|
-
"video-2":
|
|
8260
|
+
"video-1": 59188,
|
|
8261
|
+
"video-2": 59189,
|
|
8203
8262
|
wallet: wallet,
|
|
8204
8263
|
warning: warning,
|
|
8205
|
-
"academic-hat-outlined":
|
|
8206
|
-
"accommodation-outlined":
|
|
8207
|
-
"activate-outlined":
|
|
8208
|
-
"add-credit-card-outlined":
|
|
8209
|
-
"add-person-outlined":
|
|
8210
|
-
"add-section-outlined":
|
|
8211
|
-
"add-time-outlined":
|
|
8264
|
+
"academic-hat-outlined": 59192,
|
|
8265
|
+
"accommodation-outlined": 59193,
|
|
8266
|
+
"activate-outlined": 59194,
|
|
8267
|
+
"add-credit-card-outlined": 59195,
|
|
8268
|
+
"add-person-outlined": 59196,
|
|
8269
|
+
"add-section-outlined": 59197,
|
|
8270
|
+
"add-time-outlined": 59198,
|
|
8212
8271
|
add: add,
|
|
8213
|
-
"adjustment-outlined":
|
|
8214
|
-
"afternoon-outlined":
|
|
8215
|
-
"ai-outlined":
|
|
8216
|
-
"alignment-2-outlined":
|
|
8217
|
-
"alignment-outlined":
|
|
8218
|
-
"all-caps":
|
|
8219
|
-
"application-outlined":
|
|
8220
|
-
"arrow-down":
|
|
8221
|
-
"arrow-downwards":
|
|
8222
|
-
"arrow-left":
|
|
8223
|
-
"arrow-leftwards":
|
|
8224
|
-
"arrow-right":
|
|
8225
|
-
"arrow-rightwards":
|
|
8226
|
-
"arrow-up":
|
|
8227
|
-
"arrow-upwards":
|
|
8228
|
-
"article-outlined":
|
|
8229
|
-
"at-sign":
|
|
8230
|
-
"auto-graph-outlined":
|
|
8231
|
-
"automotive-outlined":
|
|
8232
|
-
"bakery-outlined":
|
|
8233
|
-
"bar-outlined":
|
|
8234
|
-
"beauty-outlined":
|
|
8235
|
-
"beer-outlined":
|
|
8236
|
-
"bell-active-outlined":
|
|
8237
|
-
"bell-outlined":
|
|
8238
|
-
"bell-slash-outlined":
|
|
8239
|
-
"bill-management-outlined":
|
|
8240
|
-
"billing-outlined":
|
|
8241
|
-
"body-outlined":
|
|
8272
|
+
"adjustment-outlined": 59200,
|
|
8273
|
+
"afternoon-outlined": 59201,
|
|
8274
|
+
"ai-outlined": 59202,
|
|
8275
|
+
"alignment-2-outlined": 59203,
|
|
8276
|
+
"alignment-outlined": 59204,
|
|
8277
|
+
"all-caps": 59205,
|
|
8278
|
+
"application-outlined": 59206,
|
|
8279
|
+
"arrow-down": 59207,
|
|
8280
|
+
"arrow-downwards": 59208,
|
|
8281
|
+
"arrow-left": 59209,
|
|
8282
|
+
"arrow-leftwards": 59210,
|
|
8283
|
+
"arrow-right": 59211,
|
|
8284
|
+
"arrow-rightwards": 59212,
|
|
8285
|
+
"arrow-up": 59213,
|
|
8286
|
+
"arrow-upwards": 59214,
|
|
8287
|
+
"article-outlined": 59215,
|
|
8288
|
+
"at-sign": 59216,
|
|
8289
|
+
"auto-graph-outlined": 59217,
|
|
8290
|
+
"automotive-outlined": 59218,
|
|
8291
|
+
"bakery-outlined": 59219,
|
|
8292
|
+
"bar-outlined": 59220,
|
|
8293
|
+
"beauty-outlined": 59221,
|
|
8294
|
+
"beer-outlined": 59222,
|
|
8295
|
+
"bell-active-outlined": 59223,
|
|
8296
|
+
"bell-outlined": 59224,
|
|
8297
|
+
"bell-slash-outlined": 59225,
|
|
8298
|
+
"bill-management-outlined": 59226,
|
|
8299
|
+
"billing-outlined": 59227,
|
|
8300
|
+
"body-outlined": 59228,
|
|
8242
8301
|
bold: bold,
|
|
8243
|
-
"bolt-outlined":
|
|
8244
|
-
"book-outlined":
|
|
8245
|
-
"bookmark-added-outlined":
|
|
8246
|
-
"bookmark-checked-outlined":
|
|
8247
|
-
"bookmark-outlined":
|
|
8248
|
-
"box-1-outlined":
|
|
8249
|
-
"box-check-outlined":
|
|
8250
|
-
"box-outlined":
|
|
8251
|
-
"bullet-points":
|
|
8252
|
-
"cake-outlined":
|
|
8253
|
-
"calculator-outlined":
|
|
8254
|
-
"calendar-dates-outlined":
|
|
8255
|
-
"calendar-star-outlined":
|
|
8256
|
-
"call-outlined":
|
|
8257
|
-
"call-split-outlined":
|
|
8258
|
-
"camera-outlined":
|
|
8302
|
+
"bolt-outlined": 59230,
|
|
8303
|
+
"book-outlined": 59231,
|
|
8304
|
+
"bookmark-added-outlined": 59232,
|
|
8305
|
+
"bookmark-checked-outlined": 59233,
|
|
8306
|
+
"bookmark-outlined": 59234,
|
|
8307
|
+
"box-1-outlined": 59235,
|
|
8308
|
+
"box-check-outlined": 59236,
|
|
8309
|
+
"box-outlined": 59237,
|
|
8310
|
+
"bullet-points": 59238,
|
|
8311
|
+
"cake-outlined": 59239,
|
|
8312
|
+
"calculator-outlined": 59240,
|
|
8313
|
+
"calendar-dates-outlined": 59241,
|
|
8314
|
+
"calendar-star-outlined": 59242,
|
|
8315
|
+
"call-outlined": 59243,
|
|
8316
|
+
"call-split-outlined": 59244,
|
|
8317
|
+
"camera-outlined": 59245,
|
|
8259
8318
|
cancel: cancel,
|
|
8260
|
-
"car-forward-outlined":
|
|
8261
|
-
"cashback-outlined":
|
|
8262
|
-
"charging-station-outlined":
|
|
8263
|
-
"chat-bubble-outlined":
|
|
8264
|
-
"chat-unread-outlined":
|
|
8319
|
+
"car-forward-outlined": 59247,
|
|
8320
|
+
"cashback-outlined": 59248,
|
|
8321
|
+
"charging-station-outlined": 59249,
|
|
8322
|
+
"chat-bubble-outlined": 59250,
|
|
8323
|
+
"chat-unread-outlined": 59251,
|
|
8265
8324
|
checkmark: checkmark,
|
|
8266
|
-
"circle-add-outlined":
|
|
8267
|
-
"circle-cancel-outlined":
|
|
8268
|
-
"circle-down-outlined":
|
|
8269
|
-
"circle-info-outlined":
|
|
8270
|
-
"circle-left-outlined":
|
|
8271
|
-
"circle-ok-outlined":
|
|
8272
|
-
"circle-question-outlined":
|
|
8273
|
-
"circle-remove-outlined":
|
|
8274
|
-
"circle-right-outlined":
|
|
8275
|
-
"circle-up-outlined":
|
|
8276
|
-
"circle-warning-outlined":
|
|
8277
|
-
"clock-2-outlined":
|
|
8278
|
-
"clock-in-outlined":
|
|
8279
|
-
"clock-out-outlined":
|
|
8280
|
-
"clock-outlined":
|
|
8281
|
-
"cog-outlined":
|
|
8282
|
-
"coin-outlined":
|
|
8283
|
-
"coin-super-outlined":
|
|
8284
|
-
"comment-outlined":
|
|
8285
|
-
"contacts-outlined":
|
|
8286
|
-
"contacts-user-outlined":
|
|
8287
|
-
"credit-card-outlined":
|
|
8288
|
-
"cultural-site-outlined":
|
|
8289
|
-
"cup-outlined":
|
|
8290
|
-
"dentistry-outlined":
|
|
8291
|
-
"direction-arrows-outlined":
|
|
8292
|
-
"directory-outlined":
|
|
8293
|
-
"document-outlined":
|
|
8294
|
-
"dollar-box-outlined":
|
|
8295
|
-
"dollar-card-outlined":
|
|
8296
|
-
"dollar-coin-shine-outlined":
|
|
8297
|
-
"dollar-credit-card-outlined":
|
|
8298
|
-
"dollar-sign":
|
|
8299
|
-
"double-buildings-outlined":
|
|
8300
|
-
"double-left-arrows":
|
|
8301
|
-
"double-right-arrows":
|
|
8302
|
-
"download-box-outlined":
|
|
8303
|
-
"download-outlined":
|
|
8304
|
-
"edit-template-outlined":
|
|
8305
|
-
"electronics-outlined":
|
|
8306
|
-
"email-outlined":
|
|
8307
|
-
"end-break-outlined":
|
|
8308
|
-
"enter-arrow":
|
|
8309
|
-
"entertainment-outlined":
|
|
8310
|
-
"envelope-outlined":
|
|
8311
|
-
"evening-outlined":
|
|
8312
|
-
"expense-approval-outlined":
|
|
8313
|
-
"expense-outlined":
|
|
8314
|
-
"explore-outlined":
|
|
8315
|
-
"extension-outlined":
|
|
8316
|
-
"external-link":
|
|
8317
|
-
"eye-invisible-outlined":
|
|
8318
|
-
"eye-outlined":
|
|
8319
|
-
"face-id":
|
|
8320
|
-
"face-meh-outlined":
|
|
8321
|
-
"face-open-smiley-outlined":
|
|
8322
|
-
"face-sad-outlined":
|
|
8323
|
-
"face-smiley-outlined":
|
|
8324
|
-
"fastfood-outlined":
|
|
8325
|
-
"feed-outlined":
|
|
8326
|
-
"file-certified-outlined":
|
|
8327
|
-
"file-clone-outlined":
|
|
8328
|
-
"file-copy-outlined":
|
|
8329
|
-
"file-dispose-outlined":
|
|
8330
|
-
"file-dollar-certified-outlined":
|
|
8331
|
-
"file-dollar-outlined":
|
|
8332
|
-
"file-download-outlined":
|
|
8333
|
-
"file-export-outlined":
|
|
8334
|
-
"file-lock-outlined":
|
|
8335
|
-
"file-outlined":
|
|
8336
|
-
"file-search-outlined":
|
|
8337
|
-
"file-secured-outlined":
|
|
8338
|
-
"file-statutory-outlined":
|
|
8339
|
-
"file-verified-outlined":
|
|
8340
|
-
"filter-outlined":
|
|
8341
|
-
"fitness-outlined":
|
|
8342
|
-
"folder-outlined":
|
|
8343
|
-
"folder-upload-outlined":
|
|
8344
|
-
"folder-user-outlined":
|
|
8345
|
-
"form-outlined":
|
|
8346
|
-
"funnel-filter-outline":
|
|
8347
|
-
"goal-outlined":
|
|
8348
|
-
"graph-outlined":
|
|
8349
|
-
"grocery-outlined":
|
|
8350
|
-
"hand-holding-user-outlined":
|
|
8351
|
-
"handshake-outlined":
|
|
8352
|
-
"happy-sun-outlined":
|
|
8353
|
-
"health-bag-outlined":
|
|
8354
|
-
"heart-outlined":
|
|
8355
|
-
"home-active-outlined":
|
|
8356
|
-
"home-outlined":
|
|
8357
|
-
"id-card-outlined":
|
|
8358
|
-
"image-outlined":
|
|
8359
|
-
"import-outlined":
|
|
8360
|
-
"instapay-outlined":
|
|
8325
|
+
"circle-add-outlined": 59253,
|
|
8326
|
+
"circle-cancel-outlined": 59254,
|
|
8327
|
+
"circle-down-outlined": 59255,
|
|
8328
|
+
"circle-info-outlined": 59256,
|
|
8329
|
+
"circle-left-outlined": 59257,
|
|
8330
|
+
"circle-ok-outlined": 59258,
|
|
8331
|
+
"circle-question-outlined": 59259,
|
|
8332
|
+
"circle-remove-outlined": 59260,
|
|
8333
|
+
"circle-right-outlined": 59261,
|
|
8334
|
+
"circle-up-outlined": 59262,
|
|
8335
|
+
"circle-warning-outlined": 59263,
|
|
8336
|
+
"clock-2-outlined": 59264,
|
|
8337
|
+
"clock-in-outlined": 59265,
|
|
8338
|
+
"clock-out-outlined": 59266,
|
|
8339
|
+
"clock-outlined": 59267,
|
|
8340
|
+
"cog-outlined": 59268,
|
|
8341
|
+
"coin-outlined": 59269,
|
|
8342
|
+
"coin-super-outlined": 59270,
|
|
8343
|
+
"comment-outlined": 59271,
|
|
8344
|
+
"contacts-outlined": 59272,
|
|
8345
|
+
"contacts-user-outlined": 59273,
|
|
8346
|
+
"credit-card-outlined": 59274,
|
|
8347
|
+
"cultural-site-outlined": 59275,
|
|
8348
|
+
"cup-outlined": 59276,
|
|
8349
|
+
"dentistry-outlined": 59277,
|
|
8350
|
+
"direction-arrows-outlined": 59278,
|
|
8351
|
+
"directory-outlined": 59279,
|
|
8352
|
+
"document-outlined": 59280,
|
|
8353
|
+
"dollar-box-outlined": 59281,
|
|
8354
|
+
"dollar-card-outlined": 59282,
|
|
8355
|
+
"dollar-coin-shine-outlined": 59283,
|
|
8356
|
+
"dollar-credit-card-outlined": 59284,
|
|
8357
|
+
"dollar-sign": 59285,
|
|
8358
|
+
"double-buildings-outlined": 59286,
|
|
8359
|
+
"double-left-arrows": 59287,
|
|
8360
|
+
"double-right-arrows": 59288,
|
|
8361
|
+
"download-box-outlined": 59289,
|
|
8362
|
+
"download-outlined": 59290,
|
|
8363
|
+
"edit-template-outlined": 59291,
|
|
8364
|
+
"electronics-outlined": 59292,
|
|
8365
|
+
"email-outlined": 59293,
|
|
8366
|
+
"end-break-outlined": 59294,
|
|
8367
|
+
"enter-arrow": 59295,
|
|
8368
|
+
"entertainment-outlined": 59296,
|
|
8369
|
+
"envelope-outlined": 59297,
|
|
8370
|
+
"evening-outlined": 59298,
|
|
8371
|
+
"expense-approval-outlined": 59299,
|
|
8372
|
+
"expense-outlined": 59300,
|
|
8373
|
+
"explore-outlined": 59301,
|
|
8374
|
+
"extension-outlined": 59302,
|
|
8375
|
+
"external-link": 59303,
|
|
8376
|
+
"eye-invisible-outlined": 59304,
|
|
8377
|
+
"eye-outlined": 59305,
|
|
8378
|
+
"face-id": 59306,
|
|
8379
|
+
"face-meh-outlined": 59307,
|
|
8380
|
+
"face-open-smiley-outlined": 59308,
|
|
8381
|
+
"face-sad-outlined": 59309,
|
|
8382
|
+
"face-smiley-outlined": 59310,
|
|
8383
|
+
"fastfood-outlined": 59311,
|
|
8384
|
+
"feed-outlined": 59312,
|
|
8385
|
+
"file-certified-outlined": 59313,
|
|
8386
|
+
"file-clone-outlined": 59314,
|
|
8387
|
+
"file-copy-outlined": 59315,
|
|
8388
|
+
"file-dispose-outlined": 59316,
|
|
8389
|
+
"file-dollar-certified-outlined": 59317,
|
|
8390
|
+
"file-dollar-outlined": 59318,
|
|
8391
|
+
"file-download-outlined": 59319,
|
|
8392
|
+
"file-export-outlined": 59320,
|
|
8393
|
+
"file-lock-outlined": 59321,
|
|
8394
|
+
"file-outlined": 59322,
|
|
8395
|
+
"file-search-outlined": 59323,
|
|
8396
|
+
"file-secured-outlined": 59324,
|
|
8397
|
+
"file-statutory-outlined": 59325,
|
|
8398
|
+
"file-verified-outlined": 59326,
|
|
8399
|
+
"filter-outlined": 59327,
|
|
8400
|
+
"fitness-outlined": 59328,
|
|
8401
|
+
"folder-outlined": 59329,
|
|
8402
|
+
"folder-upload-outlined": 59330,
|
|
8403
|
+
"folder-user-outlined": 59331,
|
|
8404
|
+
"form-outlined": 59332,
|
|
8405
|
+
"funnel-filter-outline": 59333,
|
|
8406
|
+
"goal-outlined": 59334,
|
|
8407
|
+
"graph-outlined": 59335,
|
|
8408
|
+
"grocery-outlined": 59336,
|
|
8409
|
+
"hand-holding-user-outlined": 59337,
|
|
8410
|
+
"handshake-outlined": 59338,
|
|
8411
|
+
"happy-sun-outlined": 59339,
|
|
8412
|
+
"health-bag-outlined": 59340,
|
|
8413
|
+
"heart-outlined": 59341,
|
|
8414
|
+
"home-active-outlined": 59342,
|
|
8415
|
+
"home-outlined": 59343,
|
|
8416
|
+
"id-card-outlined": 59344,
|
|
8417
|
+
"image-outlined": 59345,
|
|
8418
|
+
"import-outlined": 59346,
|
|
8419
|
+
"instapay-outlined": 59347,
|
|
8361
8420
|
italic: italic,
|
|
8362
|
-
"job-search-outlined":
|
|
8363
|
-
"leave-approval-outlined":
|
|
8364
|
-
"link-1":
|
|
8365
|
-
"link-2":
|
|
8366
|
-
"list-outlined":
|
|
8367
|
-
"live-help-outlined":
|
|
8421
|
+
"job-search-outlined": 59349,
|
|
8422
|
+
"leave-approval-outlined": 59350,
|
|
8423
|
+
"link-1": 59351,
|
|
8424
|
+
"link-2": 59352,
|
|
8425
|
+
"list-outlined": 59353,
|
|
8426
|
+
"live-help-outlined": 59354,
|
|
8368
8427
|
local_mall_outlined: local_mall_outlined,
|
|
8369
|
-
"location-on-outlined":
|
|
8370
|
-
"location-outlined":
|
|
8371
|
-
"lock-outlined":
|
|
8372
|
-
"locked-file-outlined":
|
|
8373
|
-
"log-out":
|
|
8374
|
-
"mail-outlined":
|
|
8375
|
-
"map-outlined":
|
|
8376
|
-
"media-content-outlined":
|
|
8377
|
-
"menu-close":
|
|
8378
|
-
"menu-expand":
|
|
8379
|
-
"menu-fold-outlined":
|
|
8380
|
-
"menu-unfold-outlined":
|
|
8381
|
-
"moneybag-outlined":
|
|
8382
|
-
"moon-outlined":
|
|
8383
|
-
"more-horizontal":
|
|
8384
|
-
"more-vertical":
|
|
8385
|
-
"morning-outlined":
|
|
8386
|
-
"multiple-folders-outlined":
|
|
8387
|
-
"multiple-users-outlined":
|
|
8388
|
-
"near-me-outlined":
|
|
8389
|
-
"node-outlined":
|
|
8390
|
-
"number-points":
|
|
8428
|
+
"location-on-outlined": 59356,
|
|
8429
|
+
"location-outlined": 59357,
|
|
8430
|
+
"lock-outlined": 59358,
|
|
8431
|
+
"locked-file-outlined": 59359,
|
|
8432
|
+
"log-out": 59360,
|
|
8433
|
+
"mail-outlined": 59361,
|
|
8434
|
+
"map-outlined": 59362,
|
|
8435
|
+
"media-content-outlined": 59363,
|
|
8436
|
+
"menu-close": 59364,
|
|
8437
|
+
"menu-expand": 59365,
|
|
8438
|
+
"menu-fold-outlined": 59366,
|
|
8439
|
+
"menu-unfold-outlined": 59367,
|
|
8440
|
+
"moneybag-outlined": 59368,
|
|
8441
|
+
"moon-outlined": 59369,
|
|
8442
|
+
"more-horizontal": 59370,
|
|
8443
|
+
"more-vertical": 59371,
|
|
8444
|
+
"morning-outlined": 59372,
|
|
8445
|
+
"multiple-folders-outlined": 59373,
|
|
8446
|
+
"multiple-users-outlined": 59374,
|
|
8447
|
+
"near-me-outlined": 59375,
|
|
8448
|
+
"node-outlined": 59376,
|
|
8449
|
+
"number-points": 59377,
|
|
8391
8450
|
number: number$2,
|
|
8392
|
-
"overview-outlined":
|
|
8393
|
-
"park-outlined":
|
|
8394
|
-
"payment-summary-outlined":
|
|
8395
|
-
"payslip-outlined":
|
|
8396
|
-
"pencil-outlined":
|
|
8451
|
+
"overview-outlined": 59379,
|
|
8452
|
+
"park-outlined": 59380,
|
|
8453
|
+
"payment-summary-outlined": 59381,
|
|
8454
|
+
"payslip-outlined": 59382,
|
|
8455
|
+
"pencil-outlined": 59383,
|
|
8397
8456
|
percentage: percentage,
|
|
8398
|
-
"phone-outlined":
|
|
8399
|
-
"piggy-bank-outlined":
|
|
8400
|
-
"plane-outlined":
|
|
8401
|
-
"play-circle-outlined":
|
|
8402
|
-
"print-outlined":
|
|
8403
|
-
"propane-tank-outlined":
|
|
8404
|
-
"qr-code-outlined":
|
|
8405
|
-
"qualification-outlined":
|
|
8406
|
-
"re-assign":
|
|
8457
|
+
"phone-outlined": 59385,
|
|
8458
|
+
"piggy-bank-outlined": 59386,
|
|
8459
|
+
"plane-outlined": 59387,
|
|
8460
|
+
"play-circle-outlined": 59388,
|
|
8461
|
+
"print-outlined": 59389,
|
|
8462
|
+
"propane-tank-outlined": 59390,
|
|
8463
|
+
"qr-code-outlined": 59391,
|
|
8464
|
+
"qualification-outlined": 59392,
|
|
8465
|
+
"re-assign": 59393,
|
|
8407
8466
|
redeem: redeem,
|
|
8408
8467
|
refresh: refresh,
|
|
8409
8468
|
remove: remove$1,
|
|
8410
|
-
"reply-outlined":
|
|
8469
|
+
"reply-outlined": 59397,
|
|
8411
8470
|
restart: restart,
|
|
8412
|
-
"restaurant-outlined":
|
|
8413
|
-
"resume-outlined":
|
|
8414
|
-
"return-arrow":
|
|
8415
|
-
"rostering-outlined":
|
|
8416
|
-
"safety-outlined":
|
|
8417
|
-
"save-outlined":
|
|
8418
|
-
"schedule-outlined":
|
|
8419
|
-
"search-outlined":
|
|
8420
|
-
"search-secured-outlined":
|
|
8421
|
-
"send-outlined":
|
|
8422
|
-
"share-1":
|
|
8423
|
-
"share-2":
|
|
8424
|
-
"share-outlined-2":
|
|
8425
|
-
"share-outlined":
|
|
8426
|
-
"shield-check-outlined":
|
|
8427
|
-
"shop-outlined":
|
|
8471
|
+
"restaurant-outlined": 59399,
|
|
8472
|
+
"resume-outlined": 59400,
|
|
8473
|
+
"return-arrow": 59401,
|
|
8474
|
+
"rostering-outlined": 59402,
|
|
8475
|
+
"safety-outlined": 59403,
|
|
8476
|
+
"save-outlined": 59404,
|
|
8477
|
+
"schedule-outlined": 59405,
|
|
8478
|
+
"search-outlined": 59406,
|
|
8479
|
+
"search-secured-outlined": 59407,
|
|
8480
|
+
"send-outlined": 59408,
|
|
8481
|
+
"share-1": 59409,
|
|
8482
|
+
"share-2": 59410,
|
|
8483
|
+
"share-outlined-2": 59411,
|
|
8484
|
+
"share-outlined": 59412,
|
|
8485
|
+
"shield-check-outlined": 59413,
|
|
8486
|
+
"shop-outlined": 59414,
|
|
8428
8487
|
shopping_basket_outlined: shopping_basket_outlined,
|
|
8429
|
-
"show-chart-outlined":
|
|
8430
|
-
"single-down-arrow":
|
|
8431
|
-
"single-left-arrow":
|
|
8432
|
-
"single-right-arrow":
|
|
8433
|
-
"single-up-arrow":
|
|
8434
|
-
"smart-match-outlined":
|
|
8435
|
-
"sparkle-outlined":
|
|
8436
|
-
"speaker-active-outlined":
|
|
8437
|
-
"speaker-outlined":
|
|
8438
|
-
"star-circle-outlined":
|
|
8439
|
-
"star-outlined":
|
|
8440
|
-
"start-break-outlined":
|
|
8441
|
-
"stash-outlined":
|
|
8442
|
-
"stopwatch-outlined":
|
|
8488
|
+
"show-chart-outlined": 59416,
|
|
8489
|
+
"single-down-arrow": 59417,
|
|
8490
|
+
"single-left-arrow": 59418,
|
|
8491
|
+
"single-right-arrow": 59419,
|
|
8492
|
+
"single-up-arrow": 59420,
|
|
8493
|
+
"smart-match-outlined": 59421,
|
|
8494
|
+
"sparkle-outlined": 59422,
|
|
8495
|
+
"speaker-active-outlined": 59423,
|
|
8496
|
+
"speaker-outlined": 59424,
|
|
8497
|
+
"star-circle-outlined": 59425,
|
|
8498
|
+
"star-outlined": 59426,
|
|
8499
|
+
"start-break-outlined": 59427,
|
|
8500
|
+
"stash-outlined": 59428,
|
|
8501
|
+
"stopwatch-outlined": 59429,
|
|
8443
8502
|
strikethrough: strikethrough,
|
|
8444
|
-
"styler-outlined":
|
|
8445
|
-
"suitcase-clock-outlined":
|
|
8446
|
-
"suitcase-outlined":
|
|
8447
|
-
"survey-outlined":
|
|
8448
|
-
"switch-outlined":
|
|
8503
|
+
"styler-outlined": 59431,
|
|
8504
|
+
"suitcase-clock-outlined": 59432,
|
|
8505
|
+
"suitcase-outlined": 59433,
|
|
8506
|
+
"survey-outlined": 59434,
|
|
8507
|
+
"switch-outlined": 59435,
|
|
8449
8508
|
sync: sync,
|
|
8450
|
-
"tag-outlined":
|
|
8451
|
-
"target-outlined":
|
|
8452
|
-
"tennis-outlined":
|
|
8453
|
-
"thumb-down-outlined":
|
|
8454
|
-
"
|
|
8455
|
-
"
|
|
8456
|
-
"
|
|
8457
|
-
"
|
|
8509
|
+
"tag-outlined": 59437,
|
|
8510
|
+
"target-outlined": 59438,
|
|
8511
|
+
"tennis-outlined": 59439,
|
|
8512
|
+
"thumb-down-outlined": 59440,
|
|
8513
|
+
"thumb-up-outlined": 59441,
|
|
8514
|
+
"ticket-outlined": 59442,
|
|
8515
|
+
"timesheet-outlined": 59443,
|
|
8516
|
+
"timesheets-outlined": 59444,
|
|
8517
|
+
"today-outlined": 59445,
|
|
8458
8518
|
transfer: transfer,
|
|
8459
|
-
"transportation-outlined":
|
|
8460
|
-
"trash-bin-outlined":
|
|
8461
|
-
"umbrela-outlined":
|
|
8462
|
-
"unavailability-outlined":
|
|
8519
|
+
"transportation-outlined": 59447,
|
|
8520
|
+
"trash-bin-outlined": 59448,
|
|
8521
|
+
"umbrela-outlined": 59449,
|
|
8522
|
+
"unavailability-outlined": 59450,
|
|
8463
8523
|
unavailable: unavailable,
|
|
8464
8524
|
underline: underline,
|
|
8465
|
-
"union-outlined":
|
|
8466
|
-
"unlock-outlined":
|
|
8467
|
-
"upload-outlined":
|
|
8468
|
-
"user-circle-outlined":
|
|
8469
|
-
"user-gear-outlined":
|
|
8470
|
-
"user-outlined":
|
|
8471
|
-
"user-rectangle-outlined":
|
|
8472
|
-
"video-1-outlined":
|
|
8473
|
-
"video-2-outlined":
|
|
8474
|
-
"volunteer-outlined":
|
|
8475
|
-
"wallet-outlined":
|
|
8476
|
-
"wellness-outlined":
|
|
8525
|
+
"union-outlined": 59453,
|
|
8526
|
+
"unlock-outlined": 59454,
|
|
8527
|
+
"upload-outlined": 59455,
|
|
8528
|
+
"user-circle-outlined": 59456,
|
|
8529
|
+
"user-gear-outlined": 59457,
|
|
8530
|
+
"user-outlined": 59458,
|
|
8531
|
+
"user-rectangle-outlined": 59459,
|
|
8532
|
+
"video-1-outlined": 59460,
|
|
8533
|
+
"video-2-outlined": 59461,
|
|
8534
|
+
"volunteer-outlined": 59462,
|
|
8535
|
+
"wallet-outlined": 59463,
|
|
8536
|
+
"wellness-outlined": 59464
|
|
8477
8537
|
};
|
|
8478
8538
|
|
|
8479
8539
|
var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -13492,6 +13552,14 @@ var CalendarRowItem = function CalendarRowItem(_ref) {
|
|
|
13492
13552
|
}) : null));
|
|
13493
13553
|
};
|
|
13494
13554
|
|
|
13555
|
+
var DAYS_OF_WEEK = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
|
|
13556
|
+
// Sunday first column => 0
|
|
13557
|
+
// Sunday last column => 1
|
|
13558
|
+
var WEEK_INDEX_OFFSET = 1;
|
|
13559
|
+
var SUNDAY_INDEX = 6;
|
|
13560
|
+
// Always render 7 rows x 6 items for consistent layout
|
|
13561
|
+
var TOTAL_DATES_ITEMS = 7 * 6;
|
|
13562
|
+
|
|
13495
13563
|
var initArray = function initArray(length, func) {
|
|
13496
13564
|
return Array.from(Array(length)).map(function (_, index) {
|
|
13497
13565
|
return func(index);
|
|
@@ -13564,6 +13632,73 @@ var setStartOrEndDate = function setStartOrEndDate(_ref2) {
|
|
|
13564
13632
|
endDate: undefined
|
|
13565
13633
|
};
|
|
13566
13634
|
};
|
|
13635
|
+
var shouldUseMonthPicker = function shouldUseMonthPicker(onMonthChange) {
|
|
13636
|
+
return onMonthChange !== noop$2;
|
|
13637
|
+
};
|
|
13638
|
+
var getCalendarDate = function getCalendarDate(_ref3) {
|
|
13639
|
+
var visibleDate = _ref3.visibleDate,
|
|
13640
|
+
_ref3$markedDates = _ref3.markedDates,
|
|
13641
|
+
markedDates = _ref3$markedDates === void 0 ? [] : _ref3$markedDates,
|
|
13642
|
+
minDate = _ref3.minDate,
|
|
13643
|
+
maxDate = _ref3.maxDate;
|
|
13644
|
+
var currentMonth = visibleDate.getMonth();
|
|
13645
|
+
var currentYear = visibleDate.getFullYear();
|
|
13646
|
+
var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
|
|
13647
|
+
return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
|
|
13648
|
+
}, {});
|
|
13649
|
+
var firstDateOfMonth = new Date(currentYear, currentMonth, 1);
|
|
13650
|
+
var lastDateOfMonth = new Date(currentYear, currentMonth + 1, 0);
|
|
13651
|
+
var lastDateOfPreviousMonth = new Date(currentYear, currentMonth, 0);
|
|
13652
|
+
// Index of day in week is shifted by 1 due to Sunday is the last column
|
|
13653
|
+
var firstDayWeekIndexOfMonth = firstDateOfMonth.getDay() === 0 ? SUNDAY_INDEX : firstDateOfMonth.getDay() - WEEK_INDEX_OFFSET;
|
|
13654
|
+
var lastDayIndexOfCurrentMonth = lastDateOfMonth.getDate();
|
|
13655
|
+
var lastDayIndexOfPreviousMonth = lastDateOfPreviousMonth.getDate();
|
|
13656
|
+
var daysOfPreviousMonth = initArray(firstDayWeekIndexOfMonth, function (index) {
|
|
13657
|
+
var reversedIndex = firstDayWeekIndexOfMonth - index - 1;
|
|
13658
|
+
var count = lastDayIndexOfPreviousMonth - reversedIndex;
|
|
13659
|
+
return getValidDate(new Date(currentYear, currentMonth - 1, count), minDate, maxDate);
|
|
13660
|
+
});
|
|
13661
|
+
var daysOfCurrentMonth = initArray(lastDayIndexOfCurrentMonth, function (index) {
|
|
13662
|
+
return getValidDate(new Date(currentYear, currentMonth, index + 1), minDate, maxDate);
|
|
13663
|
+
});
|
|
13664
|
+
var daysOfNextMonth = initArray(TOTAL_DATES_ITEMS - (daysOfPreviousMonth.length + daysOfCurrentMonth.length), function (index) {
|
|
13665
|
+
return getValidDate(new Date(currentYear, currentMonth + 1, index + 1), minDate, maxDate);
|
|
13666
|
+
});
|
|
13667
|
+
return {
|
|
13668
|
+
firstDateOfMonth: firstDateOfMonth,
|
|
13669
|
+
lastDateOfMonth: lastDateOfMonth,
|
|
13670
|
+
parsedMaskedDate: parsedMaskedDate,
|
|
13671
|
+
daysOfPreviousMonth: daysOfPreviousMonth,
|
|
13672
|
+
daysOfCurrentMonth: daysOfCurrentMonth,
|
|
13673
|
+
daysOfNextMonth: daysOfNextMonth
|
|
13674
|
+
};
|
|
13675
|
+
};
|
|
13676
|
+
var getCalendarButtonState = function getCalendarButtonState(_ref4) {
|
|
13677
|
+
var visibleDate = _ref4.visibleDate,
|
|
13678
|
+
markedDates = _ref4.markedDates,
|
|
13679
|
+
minDate = _ref4.minDate,
|
|
13680
|
+
maxDate = _ref4.maxDate;
|
|
13681
|
+
var _getCalendarDate = getCalendarDate({
|
|
13682
|
+
visibleDate: visibleDate,
|
|
13683
|
+
markedDates: markedDates,
|
|
13684
|
+
minDate: minDate,
|
|
13685
|
+
maxDate: maxDate
|
|
13686
|
+
}),
|
|
13687
|
+
daysOfPreviousMonth = _getCalendarDate.daysOfPreviousMonth,
|
|
13688
|
+
daysOfNextMonth = _getCalendarDate.daysOfNextMonth,
|
|
13689
|
+
firstDateOfMonth = _getCalendarDate.firstDateOfMonth,
|
|
13690
|
+
lastDateOfMonth = _getCalendarDate.lastDateOfMonth;
|
|
13691
|
+
var disablePrevButton = minDate === undefined ? false : !daysOfPreviousMonth.some(function (date) {
|
|
13692
|
+
return date !== undefined;
|
|
13693
|
+
}) && minDate >= firstDateOfMonth;
|
|
13694
|
+
var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
|
|
13695
|
+
return date !== undefined;
|
|
13696
|
+
}) || maxDate <= lastDateOfMonth;
|
|
13697
|
+
return {
|
|
13698
|
+
disablePrevButton: disablePrevButton,
|
|
13699
|
+
disableNextButton: disableNextButton
|
|
13700
|
+
};
|
|
13701
|
+
};
|
|
13567
13702
|
|
|
13568
13703
|
var SelectedDate = function SelectedDate(_ref) {
|
|
13569
13704
|
var date = _ref.date,
|
|
@@ -13599,13 +13734,36 @@ var SelectedDate = function SelectedDate(_ref) {
|
|
|
13599
13734
|
}) : null));
|
|
13600
13735
|
};
|
|
13601
13736
|
|
|
13602
|
-
var
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
var
|
|
13737
|
+
var useCalendarLayout = function useCalendarLayout() {
|
|
13738
|
+
var theme = useTheme();
|
|
13739
|
+
var _useState = React.useState(0),
|
|
13740
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13741
|
+
contentHeight = _useState2[0],
|
|
13742
|
+
setContentHeight = _useState2[1];
|
|
13743
|
+
var calendarItemHeight = contentHeight - theme.__hd__.calendar.space.iosPickerMarginVertical * 2;
|
|
13744
|
+
var _useState3 = React.useState(0),
|
|
13745
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
13746
|
+
contentWidth = _useState4[0],
|
|
13747
|
+
setContentWidth = _useState4[1];
|
|
13748
|
+
var calendarItemWidth = React.useMemo(function () {
|
|
13749
|
+
return contentWidth > 0 ? Math.floor((contentWidth - theme.__hd__.calendar.space.cellPadding) / 7) : undefined;
|
|
13750
|
+
}, [contentWidth, theme]);
|
|
13751
|
+
var onLayout = React.useCallback(function (e) {
|
|
13752
|
+
var _e$nativeEvent$layout = e.nativeEvent.layout,
|
|
13753
|
+
width = _e$nativeEvent$layout.width,
|
|
13754
|
+
height = _e$nativeEvent$layout.height;
|
|
13755
|
+
setContentHeight(height);
|
|
13756
|
+
setContentWidth(width);
|
|
13757
|
+
}, []);
|
|
13758
|
+
return {
|
|
13759
|
+
onLayout: onLayout,
|
|
13760
|
+
contentHeight: contentHeight,
|
|
13761
|
+
calendarItemHeight: calendarItemHeight,
|
|
13762
|
+
contentWidth: contentWidth,
|
|
13763
|
+
calendarItemWidth: calendarItemWidth
|
|
13764
|
+
};
|
|
13765
|
+
};
|
|
13766
|
+
|
|
13609
13767
|
var CalendarRange = function CalendarRange(_ref) {
|
|
13610
13768
|
var value = _ref.value,
|
|
13611
13769
|
visibleDate = _ref.visibleDate,
|
|
@@ -13628,52 +13786,35 @@ var CalendarRange = function CalendarRange(_ref) {
|
|
|
13628
13786
|
monthPickerConfirmLabel = _ref.monthPickerConfirmLabel,
|
|
13629
13787
|
monthPickerCancelLabel = _ref.monthPickerCancelLabel;
|
|
13630
13788
|
var theme = useTheme();
|
|
13631
|
-
var currentMonth = visibleDate.getMonth();
|
|
13632
|
-
var currentYear = visibleDate.getFullYear();
|
|
13633
|
-
var now = new Date();
|
|
13634
|
-
var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
|
|
13635
|
-
return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
|
|
13636
|
-
}, {});
|
|
13637
13789
|
var _useState = React.useState(false),
|
|
13638
13790
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13639
13791
|
monthPickerVisible = _useState2[0],
|
|
13640
13792
|
setMonthPickerVisible = _useState2[1];
|
|
13641
|
-
var
|
|
13642
|
-
|
|
13643
|
-
contentHeight =
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
var
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
var
|
|
13666
|
-
return getValidDate(new Date(currentYear, currentMonth, index + 1), minDate, maxDate);
|
|
13667
|
-
});
|
|
13668
|
-
var daysOfNextMonth = initArray(TOTAL_DATES_ITEMS$1 - (daysOfPreviousMonth.length + daysOfCurrentMonth.length), function (index) {
|
|
13669
|
-
return getValidDate(new Date(currentYear, currentMonth + 1, index + 1), minDate, maxDate);
|
|
13670
|
-
});
|
|
13671
|
-
var disablePrevButton = minDate === undefined ? false : !daysOfPreviousMonth.some(function (date) {
|
|
13672
|
-
return date !== undefined;
|
|
13673
|
-
}) && minDate >= firstDateOfMonth;
|
|
13674
|
-
var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
|
|
13675
|
-
return date !== undefined;
|
|
13676
|
-
}) || maxDate <= lastDateOfMonth;
|
|
13793
|
+
var _useCalendarLayout = useCalendarLayout(),
|
|
13794
|
+
onLayout = _useCalendarLayout.onLayout,
|
|
13795
|
+
contentHeight = _useCalendarLayout.contentHeight,
|
|
13796
|
+
contentWidth = _useCalendarLayout.contentWidth,
|
|
13797
|
+
calendarItemWidth = _useCalendarLayout.calendarItemWidth;
|
|
13798
|
+
var _getCalendarDate = getCalendarDate({
|
|
13799
|
+
visibleDate: visibleDate,
|
|
13800
|
+
markedDates: markedDates,
|
|
13801
|
+
minDate: minDate,
|
|
13802
|
+
maxDate: maxDate,
|
|
13803
|
+
onMonthChange: onMonthChange
|
|
13804
|
+
}),
|
|
13805
|
+
parsedMaskedDate = _getCalendarDate.parsedMaskedDate,
|
|
13806
|
+
daysOfPreviousMonth = _getCalendarDate.daysOfPreviousMonth,
|
|
13807
|
+
daysOfCurrentMonth = _getCalendarDate.daysOfCurrentMonth,
|
|
13808
|
+
daysOfNextMonth = _getCalendarDate.daysOfNextMonth;
|
|
13809
|
+
var _getCalendarButtonSta = getCalendarButtonState({
|
|
13810
|
+
visibleDate: visibleDate,
|
|
13811
|
+
minDate: minDate,
|
|
13812
|
+
maxDate: maxDate
|
|
13813
|
+
}),
|
|
13814
|
+
disablePrevButton = _getCalendarButtonSta.disablePrevButton,
|
|
13815
|
+
disableNextButton = _getCalendarButtonSta.disableNextButton;
|
|
13816
|
+
var shouldShowMonthPicker = shouldUseMonthPicker(onMonthChange);
|
|
13817
|
+
var now = new Date();
|
|
13677
13818
|
var onDateChange = function onDateChange(date) {
|
|
13678
13819
|
var newDateRange = setStartOrEndDate({
|
|
13679
13820
|
date: date,
|
|
@@ -13721,17 +13862,10 @@ var CalendarRange = function CalendarRange(_ref) {
|
|
|
13721
13862
|
textIntent: isCurrentMonth ? undefined : 'subdued'
|
|
13722
13863
|
});
|
|
13723
13864
|
};
|
|
13724
|
-
var onLayout = function onLayout(e) {
|
|
13725
|
-
var _e$nativeEvent$layout = e.nativeEvent.layout,
|
|
13726
|
-
width = _e$nativeEvent$layout.width,
|
|
13727
|
-
height = _e$nativeEvent$layout.height;
|
|
13728
|
-
setContentHeight(height);
|
|
13729
|
-
setContentWidth(width);
|
|
13730
|
-
};
|
|
13731
13865
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$7, {
|
|
13732
13866
|
testID: testID
|
|
13733
13867
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__namespace.default.createElement(ContentNavigator, {
|
|
13734
|
-
value: !
|
|
13868
|
+
value: !shouldShowMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
13735
13869
|
testID: "calendar-month-picker",
|
|
13736
13870
|
onPress: function onPress() {
|
|
13737
13871
|
onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
|
|
@@ -13753,7 +13887,7 @@ var CalendarRange = function CalendarRange(_ref) {
|
|
|
13753
13887
|
}))),
|
|
13754
13888
|
onPreviousPress: onPreviousPress,
|
|
13755
13889
|
onNextPress: onNextPress,
|
|
13756
|
-
onPress:
|
|
13890
|
+
onPress: shouldShowMonthPicker ? undefined : onTitlePress,
|
|
13757
13891
|
previousDisabled: disablePrevButton,
|
|
13758
13892
|
nextDisabled: disableNextButton,
|
|
13759
13893
|
fontSize: "large"
|
|
@@ -13773,7 +13907,7 @@ var CalendarRange = function CalendarRange(_ref) {
|
|
|
13773
13907
|
}
|
|
13774
13908
|
})) : /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
13775
13909
|
onLayout: onLayout
|
|
13776
|
-
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRow, null, DAYS_OF_WEEK
|
|
13910
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRow, null, DAYS_OF_WEEK.map(function (day) {
|
|
13777
13911
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRowItem, {
|
|
13778
13912
|
key: day
|
|
13779
13913
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarDayNameCell, {
|
|
@@ -13813,13 +13947,6 @@ var CalendarRange = function CalendarRange(_ref) {
|
|
|
13813
13947
|
})));
|
|
13814
13948
|
};
|
|
13815
13949
|
|
|
13816
|
-
var DAYS_OF_WEEK = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
|
|
13817
|
-
// Sunday first column => 0
|
|
13818
|
-
// Sunday last column => 1
|
|
13819
|
-
var WEEK_INDEX_OFFSET = 1;
|
|
13820
|
-
var SUNDAY_INDEX = 6;
|
|
13821
|
-
// Always render 7 rows x 6 items for consistent layout
|
|
13822
|
-
var TOTAL_DATES_ITEMS = 7 * 6;
|
|
13823
13950
|
var Calendar = function Calendar(_ref) {
|
|
13824
13951
|
var value = _ref.value,
|
|
13825
13952
|
visibleDate = _ref.visibleDate,
|
|
@@ -13842,63 +13969,39 @@ var Calendar = function Calendar(_ref) {
|
|
|
13842
13969
|
monthPickerConfirmLabel = _ref.monthPickerConfirmLabel,
|
|
13843
13970
|
monthPickerCancelLabel = _ref.monthPickerCancelLabel;
|
|
13844
13971
|
var theme = useTheme();
|
|
13845
|
-
var
|
|
13846
|
-
|
|
13847
|
-
|
|
13848
|
-
|
|
13849
|
-
|
|
13850
|
-
|
|
13972
|
+
var _useCalendarLayout = useCalendarLayout(),
|
|
13973
|
+
onLayout = _useCalendarLayout.onLayout,
|
|
13974
|
+
contentHeight = _useCalendarLayout.contentHeight,
|
|
13975
|
+
contentWidth = _useCalendarLayout.contentWidth,
|
|
13976
|
+
calendarItemWidth = _useCalendarLayout.calendarItemWidth;
|
|
13977
|
+
var _getCalendarDate = getCalendarDate({
|
|
13978
|
+
visibleDate: visibleDate,
|
|
13979
|
+
markedDates: markedDates,
|
|
13980
|
+
minDate: minDate,
|
|
13981
|
+
maxDate: maxDate,
|
|
13982
|
+
onMonthChange: onMonthChange
|
|
13983
|
+
}),
|
|
13984
|
+
parsedMaskedDate = _getCalendarDate.parsedMaskedDate,
|
|
13985
|
+
daysOfPreviousMonth = _getCalendarDate.daysOfPreviousMonth,
|
|
13986
|
+
daysOfCurrentMonth = _getCalendarDate.daysOfCurrentMonth,
|
|
13987
|
+
daysOfNextMonth = _getCalendarDate.daysOfNextMonth;
|
|
13988
|
+
var _getCalendarButtonSta = getCalendarButtonState({
|
|
13989
|
+
visibleDate: visibleDate,
|
|
13990
|
+
minDate: minDate,
|
|
13991
|
+
maxDate: maxDate
|
|
13992
|
+
}),
|
|
13993
|
+
disablePrevButton = _getCalendarButtonSta.disablePrevButton,
|
|
13994
|
+
disableNextButton = _getCalendarButtonSta.disableNextButton;
|
|
13995
|
+
var shouldShowMonthPicker = shouldUseMonthPicker(onMonthChange);
|
|
13851
13996
|
var _useState = React.useState(false),
|
|
13852
13997
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13853
13998
|
monthPickerVisible = _useState2[0],
|
|
13854
13999
|
setMonthPickerVisible = _useState2[1];
|
|
13855
|
-
var
|
|
13856
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
13857
|
-
contentHeight = _useState4[0],
|
|
13858
|
-
setContentHeight = _useState4[1];
|
|
13859
|
-
var _useState5 = React.useState(0),
|
|
13860
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
13861
|
-
contentWidth = _useState6[0],
|
|
13862
|
-
setContentWidth = _useState6[1];
|
|
13863
|
-
var calendarItemWidth = React.useMemo(function () {
|
|
13864
|
-
return contentWidth > 0 ? Math.floor((contentWidth - theme.__hd__.calendar.space.cellPadding) / 7) : undefined;
|
|
13865
|
-
}, [contentWidth, theme]);
|
|
13866
|
-
var useMonthPicker = onMonthChange !== noop$2;
|
|
13867
|
-
var firstDateOfMonth = new Date(currentYear, currentMonth, 1);
|
|
13868
|
-
var lastDateOfMonth = new Date(currentYear, currentMonth + 1, 0);
|
|
13869
|
-
var lastDateOfPreviousMonth = new Date(currentYear, currentMonth, 0);
|
|
13870
|
-
// Index of day in week is shifted by 1 due to Sunday is the last column
|
|
13871
|
-
var firstDayWeekIndexOfMonth = firstDateOfMonth.getDay() === 0 ? SUNDAY_INDEX : firstDateOfMonth.getDay() - WEEK_INDEX_OFFSET;
|
|
13872
|
-
var lastDayIndexOfCurrentMonth = lastDateOfMonth.getDate();
|
|
13873
|
-
var lastDayIndexOfPreviousMonth = lastDateOfPreviousMonth.getDate();
|
|
13874
|
-
var daysOfPreviousMonth = initArray(firstDayWeekIndexOfMonth, function (index) {
|
|
13875
|
-
var reversedIndex = firstDayWeekIndexOfMonth - index - 1;
|
|
13876
|
-
var count = lastDayIndexOfPreviousMonth - reversedIndex;
|
|
13877
|
-
return getValidDate(new Date(currentYear, currentMonth - 1, count), minDate, maxDate);
|
|
13878
|
-
});
|
|
13879
|
-
var daysOfCurrentMonth = initArray(lastDayIndexOfCurrentMonth, function (index) {
|
|
13880
|
-
return getValidDate(new Date(currentYear, currentMonth, index + 1), minDate, maxDate);
|
|
13881
|
-
});
|
|
13882
|
-
var daysOfNextMonth = initArray(TOTAL_DATES_ITEMS - (daysOfPreviousMonth.length + daysOfCurrentMonth.length), function (index) {
|
|
13883
|
-
return getValidDate(new Date(currentYear, currentMonth + 1, index + 1), minDate, maxDate);
|
|
13884
|
-
});
|
|
13885
|
-
var disablePrevButton = minDate === undefined ? false : !daysOfPreviousMonth.some(function (date) {
|
|
13886
|
-
return date !== undefined;
|
|
13887
|
-
}) && minDate >= firstDateOfMonth;
|
|
13888
|
-
var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
|
|
13889
|
-
return date !== undefined;
|
|
13890
|
-
}) || maxDate <= lastDateOfMonth;
|
|
13891
|
-
var onLayout = function onLayout(e) {
|
|
13892
|
-
var _e$nativeEvent$layout = e.nativeEvent.layout,
|
|
13893
|
-
width = _e$nativeEvent$layout.width,
|
|
13894
|
-
height = _e$nativeEvent$layout.height;
|
|
13895
|
-
setContentHeight(height);
|
|
13896
|
-
setContentWidth(width);
|
|
13897
|
-
};
|
|
14000
|
+
var now = new Date();
|
|
13898
14001
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$7, {
|
|
13899
14002
|
testID: testID
|
|
13900
14003
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__namespace.default.createElement(ContentNavigator, {
|
|
13901
|
-
value: !
|
|
14004
|
+
value: !shouldShowMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
13902
14005
|
testID: "calendar-month-picker",
|
|
13903
14006
|
onPress: function onPress() {
|
|
13904
14007
|
onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
|
|
@@ -13920,7 +14023,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
13920
14023
|
}))),
|
|
13921
14024
|
onPreviousPress: onPreviousPress,
|
|
13922
14025
|
onNextPress: onNextPress,
|
|
13923
|
-
onPress:
|
|
14026
|
+
onPress: shouldShowMonthPicker ? undefined : onTitlePress,
|
|
13924
14027
|
previousDisabled: disablePrevButton,
|
|
13925
14028
|
nextDisabled: disableNextButton,
|
|
13926
14029
|
fontSize: "large"
|
|
@@ -46920,6 +47023,184 @@ var Search = {
|
|
|
46920
47023
|
SuffixIcon: SearchSuffixIcon
|
|
46921
47024
|
};
|
|
46922
47025
|
|
|
47026
|
+
var StyledSegmentedControlWrapper = index$b(Box)(function (_ref) {
|
|
47027
|
+
var themeSize = _ref.themeSize,
|
|
47028
|
+
theme = _ref.theme;
|
|
47029
|
+
return {
|
|
47030
|
+
flexDirection: 'row',
|
|
47031
|
+
alignItems: 'center',
|
|
47032
|
+
justifyContent: 'center',
|
|
47033
|
+
height: theme.__hd__.segmentedControl.sizes.wrapperHeight[themeSize],
|
|
47034
|
+
borderRadius: theme.__hd__.segmentedControl.radii.wrapper[themeSize],
|
|
47035
|
+
backgroundColor: theme.__hd__.segmentedControl.colors.wrapperBackground,
|
|
47036
|
+
alignSelf: 'flex-start',
|
|
47037
|
+
paddingHorizontal: theme.__hd__.segmentedControl.space.wrapperHorizontalPadding
|
|
47038
|
+
};
|
|
47039
|
+
});
|
|
47040
|
+
var StyledSegmentedItem = index$b(reactNative.TouchableOpacity)(function (_ref2) {
|
|
47041
|
+
var themeSize = _ref2.themeSize,
|
|
47042
|
+
theme = _ref2.theme,
|
|
47043
|
+
themeSelected = _ref2.themeSelected;
|
|
47044
|
+
return _objectSpread2({
|
|
47045
|
+
flexGrow: 1,
|
|
47046
|
+
flexDirection: 'row',
|
|
47047
|
+
alignItems: 'center',
|
|
47048
|
+
justifyContent: 'center',
|
|
47049
|
+
height: theme.__hd__.segmentedControl.sizes.itemHeight[themeSize],
|
|
47050
|
+
borderRadius: theme.__hd__.segmentedControl.radii.item[themeSize],
|
|
47051
|
+
backgroundColor: themeSelected ? theme.__hd__.segmentedControl.colors.itemBackground.active : theme.__hd__.segmentedControl.colors.itemBackground.inactive
|
|
47052
|
+
}, theme.__hd__.segmentedControl.shadows.item[themeSelected ? 'active' : 'inactive']);
|
|
47053
|
+
});
|
|
47054
|
+
var StyledSegmentedItemWrapper = index$b(Box)(function (_ref3) {
|
|
47055
|
+
var theme = _ref3.theme;
|
|
47056
|
+
return {
|
|
47057
|
+
flexDirection: 'row',
|
|
47058
|
+
alignItems: 'center',
|
|
47059
|
+
justifyContent: 'center',
|
|
47060
|
+
gap: theme.__hd__.segmentedControl.space.itemAffixGap
|
|
47061
|
+
};
|
|
47062
|
+
});
|
|
47063
|
+
var StyledSegmentedItemLabelWrapper = index$b(Box)(function (_ref4) {
|
|
47064
|
+
var theme = _ref4.theme;
|
|
47065
|
+
return {
|
|
47066
|
+
flexDirection: 'row',
|
|
47067
|
+
alignItems: 'center',
|
|
47068
|
+
justifyContent: 'center',
|
|
47069
|
+
gap: theme.__hd__.segmentedControl.space.itemLabelGap
|
|
47070
|
+
};
|
|
47071
|
+
});
|
|
47072
|
+
var StyledSegmentedItemText = index$b(Typography.Body)(function (_ref5) {
|
|
47073
|
+
var theme = _ref5.theme;
|
|
47074
|
+
return {
|
|
47075
|
+
lineHeight: theme.__hd__.segmentedControl.lineHeights.itemText
|
|
47076
|
+
};
|
|
47077
|
+
});
|
|
47078
|
+
|
|
47079
|
+
var DOT_CHAR = "\xB7";
|
|
47080
|
+
var SegmentedItemBadge = function SegmentedItemBadge(_ref) {
|
|
47081
|
+
var children = _ref.children,
|
|
47082
|
+
badge = _ref.badge,
|
|
47083
|
+
testID = _ref.testID;
|
|
47084
|
+
if (!badge) return children;
|
|
47085
|
+
if (badge.type === 'status') {
|
|
47086
|
+
return /*#__PURE__*/React__namespace.default.createElement(Badge$1.Status, {
|
|
47087
|
+
visible: true,
|
|
47088
|
+
testID: testID
|
|
47089
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
47090
|
+
marginEnd: "smallMedium"
|
|
47091
|
+
}, children));
|
|
47092
|
+
}
|
|
47093
|
+
if (badge.type === 'counter') {
|
|
47094
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
47095
|
+
marginEnd: "xsmall"
|
|
47096
|
+
}, children), /*#__PURE__*/React__namespace.default.createElement(Badge$1, {
|
|
47097
|
+
visible: true,
|
|
47098
|
+
content: badge.value,
|
|
47099
|
+
max: badge.max,
|
|
47100
|
+
testID: testID,
|
|
47101
|
+
size: "small"
|
|
47102
|
+
}));
|
|
47103
|
+
}
|
|
47104
|
+
};
|
|
47105
|
+
var getTextAndIconIntent = function getTextAndIconIntent(_ref2) {
|
|
47106
|
+
var selected = _ref2.selected,
|
|
47107
|
+
disabled = _ref2.disabled;
|
|
47108
|
+
if (disabled) {
|
|
47109
|
+
return {
|
|
47110
|
+
iconIntent: 'disabled-text',
|
|
47111
|
+
textIntent: 'disabled',
|
|
47112
|
+
subTextIntent: 'disabled'
|
|
47113
|
+
};
|
|
47114
|
+
}
|
|
47115
|
+
if (selected) {
|
|
47116
|
+
return {
|
|
47117
|
+
iconIntent: 'text',
|
|
47118
|
+
textIntent: 'body',
|
|
47119
|
+
subTextIntent: 'muted'
|
|
47120
|
+
};
|
|
47121
|
+
}
|
|
47122
|
+
return {
|
|
47123
|
+
iconIntent: 'inactive',
|
|
47124
|
+
textIntent: 'inactive',
|
|
47125
|
+
subTextIntent: 'inactive'
|
|
47126
|
+
};
|
|
47127
|
+
};
|
|
47128
|
+
var SegmentedItem = function SegmentedItem(_ref3) {
|
|
47129
|
+
var label = _ref3.label,
|
|
47130
|
+
prefix = _ref3.prefix,
|
|
47131
|
+
suffix = _ref3.suffix,
|
|
47132
|
+
_ref3$selected = _ref3.selected,
|
|
47133
|
+
selected = _ref3$selected === void 0 ? false : _ref3$selected,
|
|
47134
|
+
_ref3$size = _ref3.size,
|
|
47135
|
+
size = _ref3$size === void 0 ? 'medium' : _ref3$size,
|
|
47136
|
+
testID = _ref3.testID,
|
|
47137
|
+
onPress = _ref3.onPress,
|
|
47138
|
+
disabled = _ref3.disabled,
|
|
47139
|
+
badge = _ref3.badge,
|
|
47140
|
+
subText = _ref3.subText;
|
|
47141
|
+
var _getTextAndIconIntent = getTextAndIconIntent({
|
|
47142
|
+
selected: selected,
|
|
47143
|
+
disabled: disabled
|
|
47144
|
+
}),
|
|
47145
|
+
iconIntent = _getTextAndIconIntent.iconIntent,
|
|
47146
|
+
textIntent = _getTextAndIconIntent.textIntent,
|
|
47147
|
+
subTextIntent = _getTextAndIconIntent.subTextIntent;
|
|
47148
|
+
var shouldShowSuffix = !!label && !!suffix;
|
|
47149
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSegmentedItem, {
|
|
47150
|
+
themeSize: size,
|
|
47151
|
+
themeSelected: selected,
|
|
47152
|
+
testID: testID,
|
|
47153
|
+
onPress: onPress,
|
|
47154
|
+
disabled: disabled
|
|
47155
|
+
}, /*#__PURE__*/React__namespace.default.createElement(SegmentedItemBadge, {
|
|
47156
|
+
badge: badge,
|
|
47157
|
+
testID: "".concat(testID, "-badge")
|
|
47158
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledSegmentedItemWrapper, null, prefix && /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
47159
|
+
icon: prefix,
|
|
47160
|
+
intent: iconIntent,
|
|
47161
|
+
size: "xxxsmall",
|
|
47162
|
+
testID: "".concat(testID, "-prefix")
|
|
47163
|
+
}), !!label && /*#__PURE__*/React__namespace.default.createElement(StyledSegmentedItemLabelWrapper, null, label && /*#__PURE__*/React__namespace.default.createElement(StyledSegmentedItemText, {
|
|
47164
|
+
variant: "small-bold",
|
|
47165
|
+
intent: textIntent
|
|
47166
|
+
}, label), subText && /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledSegmentedItemText, {
|
|
47167
|
+
variant: "small",
|
|
47168
|
+
intent: subTextIntent
|
|
47169
|
+
}, DOT_CHAR), /*#__PURE__*/React__namespace.default.createElement(StyledSegmentedItemText, {
|
|
47170
|
+
variant: "small",
|
|
47171
|
+
intent: subTextIntent
|
|
47172
|
+
}, subText))), shouldShowSuffix && /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
47173
|
+
icon: suffix,
|
|
47174
|
+
intent: iconIntent,
|
|
47175
|
+
size: "xxxsmall",
|
|
47176
|
+
testID: "".concat(testID, "-suffix")
|
|
47177
|
+
}))));
|
|
47178
|
+
};
|
|
47179
|
+
|
|
47180
|
+
var SegmentedControl = function SegmentedControl(_ref) {
|
|
47181
|
+
var _ref$size = _ref.size,
|
|
47182
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
47183
|
+
items = _ref.items,
|
|
47184
|
+
value = _ref.value,
|
|
47185
|
+
testID = _ref.testID,
|
|
47186
|
+
style = _ref.style,
|
|
47187
|
+
onItemPress = _ref.onItemPress;
|
|
47188
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSegmentedControlWrapper, {
|
|
47189
|
+
themeSize: size,
|
|
47190
|
+
testID: testID,
|
|
47191
|
+
style: style
|
|
47192
|
+
}, items.map(function (item) {
|
|
47193
|
+
return /*#__PURE__*/React__namespace.default.createElement(SegmentedItem, _extends$1({}, item, {
|
|
47194
|
+
key: item.value,
|
|
47195
|
+
selected: item.value === value,
|
|
47196
|
+
onPress: function onPress() {
|
|
47197
|
+
return onItemPress(item);
|
|
47198
|
+
},
|
|
47199
|
+
size: size
|
|
47200
|
+
}));
|
|
47201
|
+
}));
|
|
47202
|
+
};
|
|
47203
|
+
|
|
46923
47204
|
var StyledWrapper = index$b.TouchableOpacity(function (_ref) {
|
|
46924
47205
|
var theme = _ref.theme;
|
|
46925
47206
|
return _objectSpread2({
|
|
@@ -47165,6 +47446,7 @@ exports.ScrollViewWithFAB = ScrollViewWithFAB;
|
|
|
47165
47446
|
exports.Search = Search;
|
|
47166
47447
|
exports.SectionHeading = SectionHeading;
|
|
47167
47448
|
exports.SectionListWithFAB = SectionListWithFAB;
|
|
47449
|
+
exports.SegmentedControl = SegmentedControl;
|
|
47168
47450
|
exports.Select = index$4;
|
|
47169
47451
|
exports.Skeleton = Skeleton;
|
|
47170
47452
|
exports.Slider = Slider;
|