@hero-design/rn 8.112.4 → 8.113.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 +16 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +122 -121
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +122 -121
- package/package.json +1 -1
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/AnimatedScroller/AnimatedScrollable.tsx +1 -1
- package/src/components/AnimatedScroller/SectionListWithFAB.tsx +1 -1
- package/src/components/Button/UtilityButton/index.tsx +1 -1
- package/src/components/Calendar/CalendarRowItem.tsx +1 -1
- package/src/components/Chart/Line/Line.tsx +3 -4
- package/src/components/Chart/index.tsx +0 -2
- package/src/components/Chart/shared/ChartHeader.tsx +1 -1
- package/src/components/Chart/shared/hooks/useColorScale.ts +2 -2
- package/src/components/Chart/shared/hooks/useGenerateTicks.ts +2 -2
- package/src/components/Chart/shared/hooks/useScaleBandX.ts +3 -3
- package/src/components/Chart/shared/hooks/useScaleLinearY.ts +3 -4
- package/src/components/Chart/types.ts +0 -8
- package/src/components/Checkbox/utils.ts +1 -1
- package/src/components/Chip/index.tsx +1 -1
- package/src/components/FloatingIsland/index.tsx +1 -1
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -0
- package/src/components/Illustration/index.tsx +1 -1
- package/src/components/List/BasicListItem.tsx +1 -1
- package/src/components/List/StyledListItem.tsx +2 -2
- package/src/components/Portal/index.tsx +1 -1
- package/src/components/Portal/types.tsx +2 -2
- package/src/components/Radio/Radio.tsx +1 -1
- package/src/components/Rate/index.tsx +2 -2
- package/src/components/RefreshControl/index.tsx +1 -1
- package/src/components/RichTextEditor/RichTextEditor.tsx +1 -1
- package/src/components/RichTextEditor/utils/events.ts +1 -1
- package/src/components/Search/SearchOneLine.tsx +1 -1
- package/src/components/Search/StyledSearch.tsx +1 -1
- package/src/components/SectionHeading/index.tsx +1 -1
- package/src/components/Select/helpers.tsx +1 -1
- package/src/components/Skeleton/index.tsx +1 -1
- package/src/components/Slider/RangeSlider.tsx +1 -1
- package/src/components/StatusScreens/Success/index.tsx +1 -1
- package/src/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.tsx +1 -1
- package/src/components/Tabs/TabWithBadge.tsx +2 -2
- package/src/components/TextInput/index.tsx +2 -2
- package/src/components/Toast/ToastContext.ts +1 -1
- package/src/components/Toolbar/index.tsx +1 -1
- package/src/components/Typography/Label/index.tsx +1 -1
- package/src/theme/global/colors/types.ts +1 -1
- package/src/theme/global/shadows/index.ts +0 -3
- package/src/theme/global/shadows/types.ts +1 -1
- package/src/theme/global/sizes.ts +1 -0
- package/src/theme/global/typography.ts +2 -1
- package/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +1 -1
- package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +1 -1
- package/types/components/Button/UtilityButton/index.d.ts +1 -1
- package/types/components/Calendar/CalendarRowItem.d.ts +1 -1
- package/types/components/Chart/index.d.ts +0 -3
- package/types/components/Chart/shared/ChartHeader.d.ts +1 -1
- package/types/components/Chart/shared/hooks/useScaleBandX.d.ts +2 -3
- package/types/components/Chart/shared/hooks/useScaleLinearY.d.ts +2 -3
- package/types/components/Chart/types.d.ts +1 -7
- package/types/components/Checkbox/utils.d.ts +2 -1
- package/types/components/Chip/index.d.ts +1 -1
- package/types/components/FloatingIsland/index.d.ts +1 -1
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Illustration/index.d.ts +1 -1
- package/types/components/List/BasicListItem.d.ts +1 -1
- package/types/components/List/StyledListItem.d.ts +2 -2
- package/types/components/Portal/index.d.ts +1 -1
- package/types/components/Portal/types.d.ts +3 -2
- package/types/components/Radio/Radio.d.ts +1 -1
- package/types/components/Rate/index.d.ts +2 -2
- package/types/components/RefreshControl/index.d.ts +1 -1
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -4
- package/types/components/RichTextEditor/utils/events.d.ts +2 -1
- package/types/components/Search/SearchOneLine.d.ts +1 -1
- package/types/components/Search/StyledSearch.d.ts +2 -1
- package/types/components/SectionHeading/index.d.ts +1 -1
- package/types/components/Select/helpers.d.ts +2 -1
- package/types/components/Skeleton/index.d.ts +1 -1
- package/types/components/Slider/RangeSlider.d.ts +1 -1
- package/types/components/StatusScreens/Success/index.d.ts +1 -1
- package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +1 -1
- package/types/components/Tabs/TabWithBadge.d.ts +2 -2
- package/types/components/TextInput/index.d.ts +3 -3
- package/types/components/Toast/ToastContext.d.ts +2 -1
- package/types/components/Toolbar/index.d.ts +1 -1
- package/types/components/Typography/Label/index.d.ts +1 -1
- package/types/theme/components/alert.d.ts +10 -1
- package/types/theme/components/bottomNavigation.d.ts +10 -1
- package/types/theme/components/chip.d.ts +10 -1
- package/types/theme/components/fab.d.ts +10 -1
- package/types/theme/components/floatingIsland.d.ts +10 -1
- package/types/theme/components/list.d.ts +10 -1
- package/types/theme/components/search.d.ts +10 -1
- package/types/theme/components/segmentedControl.d.ts +10 -1
- package/types/theme/components/slider.d.ts +10 -1
- package/types/theme/components/toast.d.ts +10 -1
- package/types/theme/global/colors/types.d.ts +2 -1
- package/types/theme/global/index.d.ts +1 -1
- package/types/theme/global/shadows/index.d.ts +0 -2
- package/types/theme/global/shadows/types.d.ts +2 -1
- package/types/theme/global/typography.d.ts +1 -1
- package/.cursor/rules/performance-optimization.mdc +0 -64
- package/.cursor/rules/rn-rules.mdc +0 -165
- package/.cursor/rules/testing-rules.mdc +0 -114
package/lib/index.js
CHANGED
|
@@ -8263,7 +8263,7 @@ var Typography = {
|
|
|
8263
8263
|
};
|
|
8264
8264
|
|
|
8265
8265
|
// 🔴 DO NOT EDIT — This file is generated automatically.
|
|
8266
|
-
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', 'global-pound', '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', 'pound-coin-shine', 'pound-sign', '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-pound-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', 'pound-box-outlined', 'pound-card-outlined', 'pound-coin-shine-outlined', 'pound-credit-card-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'];
|
|
8266
|
+
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', 'global-pound', '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', 'pound-coin-shine', 'pound-sign', '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-pound-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', 'lighting-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', 'pound-box-outlined', 'pound-card-outlined', 'pound-coin-shine-outlined', 'pound-credit-card-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'];
|
|
8267
8267
|
|
|
8268
8268
|
var activate = 59000;
|
|
8269
8269
|
var adjustment = 59003;
|
|
@@ -8344,19 +8344,19 @@ var bold = 59232;
|
|
|
8344
8344
|
var cancel = 59249;
|
|
8345
8345
|
var checkmark = 59255;
|
|
8346
8346
|
var italic = 59352;
|
|
8347
|
-
var local_mall_outlined =
|
|
8348
|
-
var number$2 =
|
|
8349
|
-
var percentage =
|
|
8350
|
-
var redeem =
|
|
8351
|
-
var refresh =
|
|
8352
|
-
var remove$1 =
|
|
8353
|
-
var restart =
|
|
8354
|
-
var shopping_basket_outlined =
|
|
8355
|
-
var strikethrough =
|
|
8356
|
-
var sync =
|
|
8357
|
-
var transfer =
|
|
8358
|
-
var unavailable =
|
|
8359
|
-
var underline =
|
|
8347
|
+
var local_mall_outlined = 59360;
|
|
8348
|
+
var number$2 = 59383;
|
|
8349
|
+
var percentage = 59389;
|
|
8350
|
+
var redeem = 59403;
|
|
8351
|
+
var refresh = 59404;
|
|
8352
|
+
var remove$1 = 59405;
|
|
8353
|
+
var restart = 59407;
|
|
8354
|
+
var shopping_basket_outlined = 59424;
|
|
8355
|
+
var strikethrough = 59439;
|
|
8356
|
+
var sync = 59445;
|
|
8357
|
+
var transfer = 59455;
|
|
8358
|
+
var unavailable = 59460;
|
|
8359
|
+
var underline = 59461;
|
|
8360
8360
|
var glyphMap = {
|
|
8361
8361
|
activate: activate,
|
|
8362
8362
|
"add-emoji": 59001,
|
|
@@ -8713,124 +8713,125 @@ var glyphMap = {
|
|
|
8713
8713
|
italic: italic,
|
|
8714
8714
|
"job-search-outlined": 59353,
|
|
8715
8715
|
"leave-approval-outlined": 59354,
|
|
8716
|
-
"
|
|
8717
|
-
"link-
|
|
8718
|
-
"
|
|
8719
|
-
"
|
|
8716
|
+
"lighting-outlined": 59355,
|
|
8717
|
+
"link-1": 59356,
|
|
8718
|
+
"link-2": 59357,
|
|
8719
|
+
"list-outlined": 59358,
|
|
8720
|
+
"live-help-outlined": 59359,
|
|
8720
8721
|
local_mall_outlined: local_mall_outlined,
|
|
8721
|
-
"location-on-outlined":
|
|
8722
|
-
"location-outlined":
|
|
8723
|
-
"lock-outlined":
|
|
8724
|
-
"locked-file-outlined":
|
|
8725
|
-
"log-out":
|
|
8726
|
-
"mail-outlined":
|
|
8727
|
-
"map-outlined":
|
|
8728
|
-
"media-content-outlined":
|
|
8729
|
-
"menu-close":
|
|
8730
|
-
"menu-expand":
|
|
8731
|
-
"menu-fold-outlined":
|
|
8732
|
-
"menu-unfold-outlined":
|
|
8733
|
-
"moneybag-outlined":
|
|
8734
|
-
"moon-outlined":
|
|
8735
|
-
"more-horizontal":
|
|
8736
|
-
"more-vertical":
|
|
8737
|
-
"morning-outlined":
|
|
8738
|
-
"multiple-folders-outlined":
|
|
8739
|
-
"multiple-users-outlined":
|
|
8740
|
-
"near-me-outlined":
|
|
8741
|
-
"node-outlined":
|
|
8742
|
-
"number-points":
|
|
8722
|
+
"location-on-outlined": 59361,
|
|
8723
|
+
"location-outlined": 59362,
|
|
8724
|
+
"lock-outlined": 59363,
|
|
8725
|
+
"locked-file-outlined": 59364,
|
|
8726
|
+
"log-out": 59365,
|
|
8727
|
+
"mail-outlined": 59366,
|
|
8728
|
+
"map-outlined": 59367,
|
|
8729
|
+
"media-content-outlined": 59368,
|
|
8730
|
+
"menu-close": 59369,
|
|
8731
|
+
"menu-expand": 59370,
|
|
8732
|
+
"menu-fold-outlined": 59371,
|
|
8733
|
+
"menu-unfold-outlined": 59372,
|
|
8734
|
+
"moneybag-outlined": 59373,
|
|
8735
|
+
"moon-outlined": 59374,
|
|
8736
|
+
"more-horizontal": 59375,
|
|
8737
|
+
"more-vertical": 59376,
|
|
8738
|
+
"morning-outlined": 59377,
|
|
8739
|
+
"multiple-folders-outlined": 59378,
|
|
8740
|
+
"multiple-users-outlined": 59379,
|
|
8741
|
+
"near-me-outlined": 59380,
|
|
8742
|
+
"node-outlined": 59381,
|
|
8743
|
+
"number-points": 59382,
|
|
8743
8744
|
number: number$2,
|
|
8744
|
-
"overview-outlined":
|
|
8745
|
-
"park-outlined":
|
|
8746
|
-
"payment-summary-outlined":
|
|
8747
|
-
"payslip-outlined":
|
|
8748
|
-
"pencil-outlined":
|
|
8745
|
+
"overview-outlined": 59384,
|
|
8746
|
+
"park-outlined": 59385,
|
|
8747
|
+
"payment-summary-outlined": 59386,
|
|
8748
|
+
"payslip-outlined": 59387,
|
|
8749
|
+
"pencil-outlined": 59388,
|
|
8749
8750
|
percentage: percentage,
|
|
8750
|
-
"phone-outlined":
|
|
8751
|
-
"piggy-bank-outlined":
|
|
8752
|
-
"plane-outlined":
|
|
8753
|
-
"play-circle-outlined":
|
|
8754
|
-
"pound-box-outlined":
|
|
8755
|
-
"pound-card-outlined":
|
|
8756
|
-
"pound-coin-shine-outlined":
|
|
8757
|
-
"pound-credit-card-outlined":
|
|
8758
|
-
"print-outlined":
|
|
8759
|
-
"propane-tank-outlined":
|
|
8760
|
-
"qr-code-outlined":
|
|
8761
|
-
"qualification-outlined":
|
|
8762
|
-
"re-assign":
|
|
8751
|
+
"phone-outlined": 59390,
|
|
8752
|
+
"piggy-bank-outlined": 59391,
|
|
8753
|
+
"plane-outlined": 59392,
|
|
8754
|
+
"play-circle-outlined": 59393,
|
|
8755
|
+
"pound-box-outlined": 59394,
|
|
8756
|
+
"pound-card-outlined": 59395,
|
|
8757
|
+
"pound-coin-shine-outlined": 59396,
|
|
8758
|
+
"pound-credit-card-outlined": 59397,
|
|
8759
|
+
"print-outlined": 59398,
|
|
8760
|
+
"propane-tank-outlined": 59399,
|
|
8761
|
+
"qr-code-outlined": 59400,
|
|
8762
|
+
"qualification-outlined": 59401,
|
|
8763
|
+
"re-assign": 59402,
|
|
8763
8764
|
redeem: redeem,
|
|
8764
8765
|
refresh: refresh,
|
|
8765
8766
|
remove: remove$1,
|
|
8766
|
-
"reply-outlined":
|
|
8767
|
+
"reply-outlined": 59406,
|
|
8767
8768
|
restart: restart,
|
|
8768
|
-
"restaurant-outlined":
|
|
8769
|
-
"resume-outlined":
|
|
8770
|
-
"return-arrow":
|
|
8771
|
-
"rostering-outlined":
|
|
8772
|
-
"safety-outlined":
|
|
8773
|
-
"save-outlined":
|
|
8774
|
-
"schedule-outlined":
|
|
8775
|
-
"search-outlined":
|
|
8776
|
-
"search-secured-outlined":
|
|
8777
|
-
"send-outlined":
|
|
8778
|
-
"share-1":
|
|
8779
|
-
"share-2":
|
|
8780
|
-
"share-outlined-2":
|
|
8781
|
-
"share-outlined":
|
|
8782
|
-
"shield-check-outlined":
|
|
8783
|
-
"shop-outlined":
|
|
8769
|
+
"restaurant-outlined": 59408,
|
|
8770
|
+
"resume-outlined": 59409,
|
|
8771
|
+
"return-arrow": 59410,
|
|
8772
|
+
"rostering-outlined": 59411,
|
|
8773
|
+
"safety-outlined": 59412,
|
|
8774
|
+
"save-outlined": 59413,
|
|
8775
|
+
"schedule-outlined": 59414,
|
|
8776
|
+
"search-outlined": 59415,
|
|
8777
|
+
"search-secured-outlined": 59416,
|
|
8778
|
+
"send-outlined": 59417,
|
|
8779
|
+
"share-1": 59418,
|
|
8780
|
+
"share-2": 59419,
|
|
8781
|
+
"share-outlined-2": 59420,
|
|
8782
|
+
"share-outlined": 59421,
|
|
8783
|
+
"shield-check-outlined": 59422,
|
|
8784
|
+
"shop-outlined": 59423,
|
|
8784
8785
|
shopping_basket_outlined: shopping_basket_outlined,
|
|
8785
|
-
"show-chart-outlined":
|
|
8786
|
-
"single-down-arrow":
|
|
8787
|
-
"single-left-arrow":
|
|
8788
|
-
"single-right-arrow":
|
|
8789
|
-
"single-up-arrow":
|
|
8790
|
-
"smart-match-outlined":
|
|
8791
|
-
"sparkle-outlined":
|
|
8792
|
-
"speaker-active-outlined":
|
|
8793
|
-
"speaker-outlined":
|
|
8794
|
-
"star-circle-outlined":
|
|
8795
|
-
"star-outlined":
|
|
8796
|
-
"start-break-outlined":
|
|
8797
|
-
"stash-outlined":
|
|
8798
|
-
"stopwatch-outlined":
|
|
8786
|
+
"show-chart-outlined": 59425,
|
|
8787
|
+
"single-down-arrow": 59426,
|
|
8788
|
+
"single-left-arrow": 59427,
|
|
8789
|
+
"single-right-arrow": 59428,
|
|
8790
|
+
"single-up-arrow": 59429,
|
|
8791
|
+
"smart-match-outlined": 59430,
|
|
8792
|
+
"sparkle-outlined": 59431,
|
|
8793
|
+
"speaker-active-outlined": 59432,
|
|
8794
|
+
"speaker-outlined": 59433,
|
|
8795
|
+
"star-circle-outlined": 59434,
|
|
8796
|
+
"star-outlined": 59435,
|
|
8797
|
+
"start-break-outlined": 59436,
|
|
8798
|
+
"stash-outlined": 59437,
|
|
8799
|
+
"stopwatch-outlined": 59438,
|
|
8799
8800
|
strikethrough: strikethrough,
|
|
8800
|
-
"styler-outlined":
|
|
8801
|
-
"suitcase-clock-outlined":
|
|
8802
|
-
"suitcase-outlined":
|
|
8803
|
-
"survey-outlined":
|
|
8804
|
-
"switch-outlined":
|
|
8801
|
+
"styler-outlined": 59440,
|
|
8802
|
+
"suitcase-clock-outlined": 59441,
|
|
8803
|
+
"suitcase-outlined": 59442,
|
|
8804
|
+
"survey-outlined": 59443,
|
|
8805
|
+
"switch-outlined": 59444,
|
|
8805
8806
|
sync: sync,
|
|
8806
|
-
"tag-outlined":
|
|
8807
|
-
"target-outlined":
|
|
8808
|
-
"tennis-outlined":
|
|
8809
|
-
"thumb-down-outlined":
|
|
8810
|
-
"thumb-up-outlined":
|
|
8811
|
-
"ticket-outlined":
|
|
8812
|
-
"timesheet-outlined":
|
|
8813
|
-
"timesheets-outlined":
|
|
8814
|
-
"today-outlined":
|
|
8807
|
+
"tag-outlined": 59446,
|
|
8808
|
+
"target-outlined": 59447,
|
|
8809
|
+
"tennis-outlined": 59448,
|
|
8810
|
+
"thumb-down-outlined": 59449,
|
|
8811
|
+
"thumb-up-outlined": 59450,
|
|
8812
|
+
"ticket-outlined": 59451,
|
|
8813
|
+
"timesheet-outlined": 59452,
|
|
8814
|
+
"timesheets-outlined": 59453,
|
|
8815
|
+
"today-outlined": 59454,
|
|
8815
8816
|
transfer: transfer,
|
|
8816
|
-
"transportation-outlined":
|
|
8817
|
-
"trash-bin-outlined":
|
|
8818
|
-
"umbrela-outlined":
|
|
8819
|
-
"unavailability-outlined":
|
|
8817
|
+
"transportation-outlined": 59456,
|
|
8818
|
+
"trash-bin-outlined": 59457,
|
|
8819
|
+
"umbrela-outlined": 59458,
|
|
8820
|
+
"unavailability-outlined": 59459,
|
|
8820
8821
|
unavailable: unavailable,
|
|
8821
8822
|
underline: underline,
|
|
8822
|
-
"union-outlined":
|
|
8823
|
-
"unlock-outlined":
|
|
8824
|
-
"upload-outlined":
|
|
8825
|
-
"user-circle-outlined":
|
|
8826
|
-
"user-gear-outlined":
|
|
8827
|
-
"user-outlined":
|
|
8828
|
-
"user-rectangle-outlined":
|
|
8829
|
-
"video-1-outlined":
|
|
8830
|
-
"video-2-outlined":
|
|
8831
|
-
"volunteer-outlined":
|
|
8832
|
-
"wallet-outlined":
|
|
8833
|
-
"wellness-outlined":
|
|
8823
|
+
"union-outlined": 59462,
|
|
8824
|
+
"unlock-outlined": 59463,
|
|
8825
|
+
"upload-outlined": 59464,
|
|
8826
|
+
"user-circle-outlined": 59465,
|
|
8827
|
+
"user-gear-outlined": 59466,
|
|
8828
|
+
"user-outlined": 59467,
|
|
8829
|
+
"user-rectangle-outlined": 59468,
|
|
8830
|
+
"video-1-outlined": 59469,
|
|
8831
|
+
"video-2-outlined": 59470,
|
|
8832
|
+
"volunteer-outlined": 59471,
|
|
8833
|
+
"wallet-outlined": 59472,
|
|
8834
|
+
"wellness-outlined": 59473
|
|
8834
8835
|
};
|
|
8835
8836
|
|
|
8836
8837
|
var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -18991,7 +18992,7 @@ Basis.prototype = {
|
|
|
18991
18992
|
this._y0 = this._y1, this._y1 = y;
|
|
18992
18993
|
}
|
|
18993
18994
|
};
|
|
18994
|
-
function
|
|
18995
|
+
function curveBasis (context) {
|
|
18995
18996
|
return new Basis(context);
|
|
18996
18997
|
}
|
|
18997
18998
|
|
|
@@ -19550,7 +19551,7 @@ var Line = function Line(_ref) {
|
|
|
19550
19551
|
return ((_xScale = xScale(labels[i])) !== null && _xScale !== void 0 ? _xScale : 0) + xScale.bandwidth() / 2;
|
|
19551
19552
|
}).y(function (d) {
|
|
19552
19553
|
return yScale(d !== null && d !== void 0 ? d : 0);
|
|
19553
|
-
}).curve(
|
|
19554
|
+
}).curve(curveBasis);
|
|
19554
19555
|
}, [xScale, yScale, labels]);
|
|
19555
19556
|
// Generate path data
|
|
19556
19557
|
var pathData = React.useMemo(function () {
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import Typography from '../Typography';
|
|
|
10
10
|
import Icon from '../Icon';
|
|
11
11
|
import type { Variant } from './StyledAccordion';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
type AccordionItemProps = {
|
|
14
14
|
header: string | ReactElement;
|
|
15
15
|
content: ReactElement;
|
|
16
16
|
open?: boolean;
|
|
@@ -9,7 +9,7 @@ import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
|
9
9
|
import type { FABProps } from '../FAB/FAB';
|
|
10
10
|
import AnimatedFAB from './AnimatedFAB';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
interface AnimatedScrollerProps<T> {
|
|
13
13
|
/**
|
|
14
14
|
* Scroll component, it can be ScrollView, FlatList or SectionList.
|
|
15
15
|
*/
|
|
@@ -5,7 +5,7 @@ import AnimatedScroller from './AnimatedScrollable';
|
|
|
5
5
|
import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
6
6
|
import type { FABProps } from '../FAB/FAB';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
interface SectionListWithFABProps<T> extends SectionListProps<T> {
|
|
9
9
|
/**
|
|
10
10
|
* FAB or FAB.ActionGroup props props.
|
|
11
11
|
*/
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from './StyledUtilityButton';
|
|
10
10
|
import type { IconName } from '../../Icon';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
interface UtilityButtonProps extends ViewProps {
|
|
13
13
|
/**
|
|
14
14
|
* Places an icon within the button, before the button's text
|
|
15
15
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as d3 from 'd3';
|
|
2
1
|
import React, { useMemo } from 'react';
|
|
2
|
+
import { line, curveBasis } from 'd3';
|
|
3
3
|
import { Path } from 'react-native-svg';
|
|
4
4
|
import { DEFAULT_LINE_STROKE_WIDTH } from '../shared/constants';
|
|
5
5
|
import useScaleBandX from '../shared/hooks/useScaleBandX';
|
|
@@ -56,11 +56,10 @@ const Line = ({
|
|
|
56
56
|
// Create line generator with proper curve
|
|
57
57
|
const lineGenerator = useMemo(
|
|
58
58
|
() =>
|
|
59
|
-
|
|
60
|
-
.line<DataValue>()
|
|
59
|
+
line<DataValue>()
|
|
61
60
|
.x((_, i) => (xScale(labels[i]) ?? 0) + xScale.bandwidth() / 2)
|
|
62
61
|
.y((d) => yScale(d ?? 0))
|
|
63
|
-
.curve(
|
|
62
|
+
.curve(curveBasis),
|
|
64
63
|
[xScale, yScale, labels]
|
|
65
64
|
);
|
|
66
65
|
|
|
@@ -5,7 +5,7 @@ import { StyledChartHeader } from '../StyledChart';
|
|
|
5
5
|
import type { HeaderConfig } from '../types';
|
|
6
6
|
import Box from '../../Box';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
type ChartHeaderProps = HeaderConfig & {
|
|
9
9
|
onLayout?: (event: LayoutChangeEvent) => void;
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { scaleOrdinal } from 'd3';
|
|
3
3
|
import { mobileVisualisationPalette } from '@hero-design/colors';
|
|
4
4
|
|
|
5
5
|
// Only use colors that are not maasstrichtBlue
|
|
@@ -20,6 +20,6 @@ export default function useColorScale(
|
|
|
20
20
|
return useMemo(() => {
|
|
21
21
|
const palette =
|
|
22
22
|
customColors && customColors.length > 0 ? customColors : DEFAULT_COLORS;
|
|
23
|
-
return
|
|
23
|
+
return scaleOrdinal<string, string>().domain(labels).range(palette);
|
|
24
24
|
}, [labels, customColors]);
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { range } from 'd3';
|
|
3
3
|
|
|
4
4
|
const useGenerateTicks = ({
|
|
5
5
|
maxValue,
|
|
@@ -14,7 +14,7 @@ const useGenerateTicks = ({
|
|
|
14
14
|
const minValueOrZero = minValue || 0;
|
|
15
15
|
|
|
16
16
|
const ticks = useMemo(() => {
|
|
17
|
-
const generatedTicks =
|
|
17
|
+
const generatedTicks = range(minValueOrZero, maxValueOrZero, step);
|
|
18
18
|
if (generatedTicks[generatedTicks.length - 1] !== maxValueOrZero) {
|
|
19
19
|
generatedTicks.push(maxValueOrZero);
|
|
20
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { scaleBand } from 'd3';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type UseScaleBandXProps = {
|
|
5
5
|
labels: string[];
|
|
6
6
|
xStart: number;
|
|
7
7
|
xEnd: number;
|
|
@@ -9,7 +9,7 @@ export type UseScaleBandXProps = {
|
|
|
9
9
|
|
|
10
10
|
const useScaleBandX = ({ labels, xStart, xEnd }: UseScaleBandXProps) => {
|
|
11
11
|
return useMemo(
|
|
12
|
-
() =>
|
|
12
|
+
() => scaleBand().domain(labels).range([xStart, xEnd]).padding(0.2),
|
|
13
13
|
[labels, xStart, xEnd]
|
|
14
14
|
);
|
|
15
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { scaleLinear } from 'd3';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type UseScaleLinearYProps = {
|
|
5
5
|
maxValue: number;
|
|
6
6
|
minValue: number;
|
|
7
7
|
yStart: number;
|
|
@@ -19,8 +19,7 @@ const useScaleLinearY = ({
|
|
|
19
19
|
|
|
20
20
|
return useMemo(
|
|
21
21
|
() =>
|
|
22
|
-
|
|
23
|
-
.scaleLinear()
|
|
22
|
+
scaleLinear()
|
|
24
23
|
.domain([minValueOrZero, maxValueOrZero])
|
|
25
24
|
.range([yEnd, yStart]),
|
|
26
25
|
[maxValueOrZero, minValueOrZero, yStart, yEnd]
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export type AxisSizeConfig = {
|
|
2
|
-
xAxisTextHeight: number;
|
|
3
|
-
setXAxisTextHeight: (height: number) => void;
|
|
4
|
-
yAxisTextWidth: number;
|
|
5
|
-
setYAxisTextWidth: (width: number) => void;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
1
|
/**
|
|
9
2
|
* Represents a data series for the chart.
|
|
10
3
|
* @template Data - The type of the data array for the series.
|
|
@@ -122,7 +115,6 @@ type StyleConfig = {
|
|
|
122
115
|
|
|
123
116
|
export type {
|
|
124
117
|
Series,
|
|
125
|
-
TickConfig,
|
|
126
118
|
XAxisConfig,
|
|
127
119
|
YAxisConfig,
|
|
128
120
|
DataValue,
|
|
@@ -14,7 +14,7 @@ type DeprecatedVariant = 'outlined' | 'filled';
|
|
|
14
14
|
|
|
15
15
|
type ValidVariant = 'selection' | 'filter' | 'compact' | 'compact-outlined';
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
interface ChipProps extends ViewProps {
|
|
18
18
|
/**
|
|
19
19
|
* The label of the chip.
|
|
20
20
|
*/
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from './StyledFloatingIsland';
|
|
10
10
|
import type { IconName } from '../Icon';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
interface FloatingIslandProps extends ViewProps {
|
|
13
13
|
/**
|
|
14
14
|
* Callback that is called when the floating island is pressed.
|
|
15
15
|
*/
|