@reltio/design 0.1.1 → 0.2.1
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/charts/Chart/Chart.d.ts +4 -0
- package/charts/Chart/Chart.js +59 -0
- package/charts/Chart/Chart.module.css.d.ts +2 -0
- package/charts/Chart/Chart.module.css.js +8 -0
- package/charts/Chart/Chart.module.css.json +1 -0
- package/charts/Chart/Chart.types.d.ts +24 -0
- package/charts/Chart/Chart.types.js +1 -0
- package/charts/Chart/index.d.ts +2 -0
- package/charts/Chart/index.js +1 -0
- package/charts/Chart/theme.d.ts +67 -0
- package/charts/Chart/theme.js +85 -0
- package/charts/LineChart/LineChart.d.ts +2 -0
- package/charts/LineChart/LineChart.js +76 -0
- package/charts/LineChart/LineChart.module.css.d.ts +2 -0
- package/charts/LineChart/LineChart.module.css.js +25 -0
- package/charts/LineChart/LineChart.module.css.json +1 -0
- package/charts/LineChart/LineChart.types.d.ts +38 -0
- package/charts/LineChart/LineChart.types.js +1 -0
- package/charts/LineChart/index.d.ts +2 -0
- package/charts/LineChart/index.js +1 -0
- package/charts/index.d.ts +1 -0
- package/charts/index.js +1 -0
- package/components/AppSelector/AppSelector.d.ts +5 -0
- package/components/AppSelector/AppSelector.js +20 -0
- package/components/AppSelector/AppSelector.module.css.d.ts +2 -0
- package/components/AppSelector/AppSelector.module.css.js +61 -0
- package/components/AppSelector/AppSelector.module.css.json +1 -0
- package/components/AppSelector/AppSelector.types.d.ts +29 -0
- package/components/AppSelector/AppSelector.types.js +1 -0
- package/components/AppSelector/index.d.ts +2 -0
- package/components/AppSelector/index.js +1 -0
- package/components/AssistantLoader/AssistantLoader.d.ts +1 -2
- package/components/AssistantLoader/AssistantLoader.js +7 -4
- package/components/AssistantLoader/AssistantLoader.module.css.js +30 -62
- package/components/AssistantLoader/AssistantLoader.module.css.json +1 -1
- package/components/AssistantLoader/AssistantLoader.types.d.ts +5 -13
- package/components/Button/Button.d.ts +4 -1
- package/components/Button/Button.js +12 -47
- package/components/Button/Button.module.css.js +60 -103
- package/components/Button/Button.module.css.json +1 -1
- package/components/Button/Button.types.d.ts +7 -31
- package/components/Chat/Chat.js +1 -3
- package/components/Chat/Chat.module.css.js +18 -31
- package/components/Chat/Chat.module.css.json +1 -1
- package/components/Chat/Chat.types.d.ts +3 -11
- package/components/Chat/components/AssistantMessage/AssistantMessage.d.ts +1 -2
- package/components/Chat/components/AssistantMessage/AssistantMessage.module.css.js +4 -16
- package/components/Chat/components/AssistantMessage/AssistantMessage.module.css.json +1 -1
- package/components/Chat/components/AssistantMessage/AssistantMessage.types.d.ts +3 -10
- package/components/Chat/components/UserMessage/UserMessage.module.css.js +9 -4
- package/components/Chat/components/UserMessage/UserMessage.module.css.json +1 -1
- package/components/Chat/components/UserMessage/UserMessage.types.d.ts +3 -11
- package/components/Details/Details.d.ts +1 -1
- package/components/Details/Details.js +2 -7
- package/components/Details/Details.module.css.js +57 -44
- package/components/Details/Details.module.css.json +1 -1
- package/components/Details/Details.types.d.ts +4 -51
- package/components/Divider/Divider.d.ts +2 -0
- package/components/Divider/Divider.js +6 -0
- package/components/Divider/Divider.module.css.d.ts +2 -0
- package/components/Divider/Divider.module.css.js +40 -0
- package/components/Divider/Divider.module.css.json +1 -0
- package/components/Divider/Divider.types.d.ts +11 -0
- package/components/Divider/Divider.types.js +1 -0
- package/components/Divider/index.d.ts +2 -0
- package/components/Divider/index.js +1 -0
- package/components/ErrorMessage/ErrorMessage.js +1 -1
- package/components/ErrorMessage/ErrorMessage.module.css.js +12 -24
- package/components/ErrorMessage/ErrorMessage.module.css.json +1 -1
- package/components/ErrorMessage/ErrorMessage.types.d.ts +3 -6
- package/components/Markdown/Markdown.d.ts +1 -1
- package/components/Markdown/Markdown.js +2 -2
- package/components/Markdown/Markdown.module.css.js +87 -109
- package/components/Markdown/Markdown.module.css.json +1 -1
- package/components/Markdown/Markdown.types.d.ts +1 -51
- package/components/Popover/Popover.d.ts +36 -0
- package/components/Popover/Popover.js +62 -0
- package/components/Popover/Popover.module.css.d.ts +2 -0
- package/components/Popover/Popover.module.css.js +62 -0
- package/components/Popover/Popover.module.css.json +1 -0
- package/components/Popover/Popover.types.d.ts +18 -0
- package/components/Popover/Popover.types.js +1 -0
- package/components/Popover/index.d.ts +2 -0
- package/components/Popover/index.js +1 -0
- package/components/Skeleton/Skeleton.d.ts +1 -1
- package/components/Skeleton/Skeleton.js +3 -2
- package/components/Skeleton/Skeleton.module.css.js +13 -15
- package/components/Skeleton/Skeleton.module.css.json +1 -1
- package/components/Skeleton/Skeleton.types.d.ts +5 -23
- package/components/TextArea/TextArea.d.ts +3 -24
- package/components/TextArea/TextArea.module.css.js +65 -74
- package/components/TextArea/TextArea.module.css.json +1 -1
- package/components/TextArea/TextArea.types.d.ts +2 -23
- package/components/TreeList/TreeList.module.css.js +7 -12
- package/components/TreeList/TreeList.module.css.json +1 -1
- package/components/TreeList/components/TreeLevelLines/TreeLevelLines.module.css.js +12 -15
- package/components/TreeList/components/TreeLevelLines/TreeLevelLines.module.css.json +1 -1
- package/components/TreeList/components/TreeNode/TreeNode.module.css.js +19 -21
- package/components/TreeList/components/TreeNode/TreeNode.module.css.json +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/icons/AccessTime.d.ts +2 -0
- package/icons/AccessTime.js +6 -0
- package/icons/Accessibility.d.ts +2 -0
- package/icons/Accessibility.js +6 -0
- package/icons/AccountCircle.d.ts +1 -1
- package/icons/AccountCircle.js +2 -2
- package/icons/AcessConversations.d.ts +2 -0
- package/icons/AcessConversations.js +6 -0
- package/icons/ActionsMenu.d.ts +2 -0
- package/icons/ActionsMenu.js +6 -0
- package/icons/ActivateUser.d.ts +2 -0
- package/icons/ActivateUser.js +6 -0
- package/icons/Add.d.ts +1 -1
- package/icons/Add.js +2 -2
- package/icons/AddChild.d.ts +2 -0
- package/icons/AddChild.js +6 -0
- package/icons/AddCircle.d.ts +2 -0
- package/icons/AddCircle.js +6 -0
- package/icons/AddParent.d.ts +2 -0
- package/icons/AddParent.js +6 -0
- package/icons/AddSibling.d.ts +2 -0
- package/icons/AddSibling.js +6 -0
- package/icons/AdvancedProperties.d.ts +2 -0
- package/icons/AdvancedProperties.js +6 -0
- package/icons/AdvancedPropertiesClear.d.ts +2 -0
- package/icons/AdvancedPropertiesClear.js +6 -0
- package/icons/Analitycal.d.ts +2 -0
- package/icons/Analitycal.js +6 -0
- package/icons/ApiMonitor.d.ts +2 -0
- package/icons/ApiMonitor.js +6 -0
- package/icons/ApiPerformance.d.ts +2 -0
- package/icons/ApiPerformance.js +6 -0
- package/icons/ApiPerformanceStat.d.ts +2 -0
- package/icons/ApiPerformanceStat.js +6 -0
- package/icons/Applications.d.ts +2 -0
- package/icons/Applications.js +6 -0
- package/icons/ArrowBack.d.ts +1 -1
- package/icons/ArrowBack.js +2 -2
- package/icons/ArrowDownward.d.ts +2 -0
- package/icons/ArrowDownward.js +6 -0
- package/icons/ArrowDropDown.d.ts +1 -1
- package/icons/ArrowDropDown.js +2 -2
- package/icons/ArrowDropUp.d.ts +1 -1
- package/icons/ArrowDropUp.js +2 -2
- package/icons/ArrowForward.d.ts +1 -1
- package/icons/ArrowForward.js +2 -2
- package/icons/ArrowLeft.d.ts +1 -1
- package/icons/ArrowLeft.js +2 -2
- package/icons/ArrowRight.d.ts +1 -1
- package/icons/ArrowRight.js +2 -2
- package/icons/ArrowUpward.d.ts +2 -0
- package/icons/ArrowUpward.js +6 -0
- package/icons/Attachment.d.ts +1 -1
- package/icons/Attachment.js +2 -2
- package/icons/Attribute.d.ts +2 -0
- package/icons/Attribute.js +6 -0
- package/icons/Back.d.ts +2 -0
- package/icons/Back.js +6 -0
- package/icons/Calendar.d.ts +2 -0
- package/icons/Calendar.js +6 -0
- package/icons/CalendarRange.d.ts +2 -0
- package/icons/CalendarRange.js +6 -0
- package/icons/CalendarToday.d.ts +2 -0
- package/icons/CalendarToday.js +6 -0
- package/icons/Cancel.d.ts +2 -0
- package/icons/Cancel.js +6 -0
- package/icons/Chat.d.ts +1 -1
- package/icons/Chat.js +2 -2
- package/icons/Check.d.ts +1 -1
- package/icons/Check.js +2 -2
- package/icons/CheckCircle.d.ts +1 -1
- package/icons/CheckCircle.js +2 -2
- package/icons/Checkbox.d.ts +2 -0
- package/icons/Checkbox.js +6 -0
- package/icons/CheckboxFilled.d.ts +2 -0
- package/icons/CheckboxFilled.js +6 -0
- package/icons/CheckboxIndeterminate.d.ts +2 -0
- package/icons/CheckboxIndeterminate.js +6 -0
- package/icons/CheckboxIndeterminateFilled.d.ts +2 -0
- package/icons/CheckboxIndeterminateFilled.js +6 -0
- package/icons/CheckboxOutlined.d.ts +2 -0
- package/icons/CheckboxOutlined.js +6 -0
- package/icons/ChevronLeft.d.ts +1 -1
- package/icons/ChevronLeft.js +2 -2
- package/icons/ChevronRight.d.ts +1 -1
- package/icons/ChevronRight.js +2 -2
- package/icons/Cleansing.d.ts +2 -0
- package/icons/Cleansing.js +6 -0
- package/icons/Close.d.ts +1 -1
- package/icons/Close.js +2 -2
- package/icons/Colapse.d.ts +2 -0
- package/icons/Colapse.js +6 -0
- package/icons/CollapseDrawer.d.ts +2 -0
- package/icons/CollapseDrawer.js +6 -0
- package/icons/Comment.d.ts +1 -1
- package/icons/Comment.js +2 -2
- package/icons/Comments.d.ts +2 -0
- package/icons/Comments.js +6 -0
- package/icons/ComplexAttribute.d.ts +2 -0
- package/icons/ComplexAttribute.js +6 -0
- package/icons/Consolidated.d.ts +2 -0
- package/icons/Consolidated.js +6 -0
- package/icons/ContentCopy.d.ts +1 -1
- package/icons/ContentCopy.js +2 -2
- package/icons/ContentPaste.d.ts +1 -1
- package/icons/ContentPaste.js +2 -2
- package/icons/ControlAttriibute.d.ts +2 -0
- package/icons/ControlAttriibute.js +6 -0
- package/icons/Copy.d.ts +2 -0
- package/icons/Copy.js +6 -0
- package/icons/CriticalError.d.ts +2 -0
- package/icons/CriticalError.js +6 -0
- package/icons/DashboardChart.d.ts +2 -0
- package/icons/DashboardChart.js +6 -0
- package/icons/DashboardGlobal.d.ts +2 -0
- package/icons/DashboardGlobal.js +6 -0
- package/icons/DataPrep.d.ts +2 -0
- package/icons/DataPrep.js +6 -0
- package/icons/DataUpload.d.ts +2 -0
- package/icons/DataUpload.js +6 -0
- package/icons/DcrComment.d.ts +2 -0
- package/icons/DcrComment.js +6 -0
- package/icons/DeactivateUser.d.ts +2 -0
- package/icons/DeactivateUser.js +6 -0
- package/icons/Delete.d.ts +1 -1
- package/icons/Delete.js +2 -2
- package/icons/DerivedAttribute.d.ts +2 -0
- package/icons/DerivedAttribute.js +6 -0
- package/icons/Description.d.ts +1 -1
- package/icons/Description.js +2 -2
- package/icons/DesignServices.d.ts +2 -0
- package/icons/DesignServices.js +6 -0
- package/icons/Dev.d.ts +2 -0
- package/icons/Dev.js +6 -0
- package/icons/Done.d.ts +2 -0
- package/icons/Done.js +6 -0
- package/icons/Down.d.ts +2 -0
- package/icons/Down.js +6 -0
- package/icons/Download.d.ts +1 -1
- package/icons/Download.js +2 -2
- package/icons/Draft.d.ts +2 -0
- package/icons/Draft.js +6 -0
- package/icons/Drag.d.ts +2 -0
- package/icons/Drag.js +6 -0
- package/icons/DragHoriz.d.ts +2 -0
- package/icons/DragHoriz.js +6 -0
- package/icons/DuplicateGroup.d.ts +2 -0
- package/icons/DuplicateGroup.js +6 -0
- package/icons/DuplicateJob.d.ts +2 -0
- package/icons/DuplicateJob.js +6 -0
- package/icons/DuplicateRole.d.ts +2 -0
- package/icons/DuplicateRole.js +6 -0
- package/icons/Duration.d.ts +2 -0
- package/icons/Duration.js +6 -0
- package/icons/Edit.d.ts +1 -1
- package/icons/Edit.js +2 -2
- package/icons/EditSchedule.d.ts +2 -0
- package/icons/EditSchedule.js +6 -0
- package/icons/Email.d.ts +1 -1
- package/icons/Email.js +2 -2
- package/icons/EndDate.d.ts +2 -0
- package/icons/EndDate.js +6 -0
- package/icons/EndDateFlag.d.ts +2 -0
- package/icons/EndDateFlag.js +6 -0
- package/icons/Error.d.ts +2 -0
- package/icons/Error.js +6 -0
- package/icons/ErrorCircle.d.ts +1 -1
- package/icons/ErrorCircle.js +2 -2
- package/icons/Event.d.ts +2 -0
- package/icons/Event.js +6 -0
- package/icons/Expand.d.ts +2 -0
- package/icons/Expand.js +6 -0
- package/icons/ExpandLess.d.ts +1 -1
- package/icons/ExpandLess.js +2 -2
- package/icons/ExpandMore.d.ts +1 -1
- package/icons/ExpandMore.js +2 -2
- package/icons/Explore.d.ts +2 -0
- package/icons/Explore.js +6 -0
- package/icons/Favorite.d.ts +2 -0
- package/icons/Favorite.js +6 -0
- package/icons/File.d.ts +2 -0
- package/icons/File.js +6 -0
- package/icons/FilterAdd.d.ts +2 -0
- package/icons/FilterAdd.js +6 -0
- package/icons/FilterClear.d.ts +2 -0
- package/icons/FilterClear.js +6 -0
- package/icons/FilterList.d.ts +1 -1
- package/icons/FilterList.js +2 -2
- package/icons/FilterSelect.d.ts +2 -0
- package/icons/FilterSelect.js +6 -0
- package/icons/FindMatch.d.ts +2 -0
- package/icons/FindMatch.js +6 -0
- package/icons/Flag.d.ts +2 -0
- package/icons/Flag.js +6 -0
- package/icons/Folder.d.ts +1 -1
- package/icons/Folder.js +2 -2
- package/icons/FolderOpen.d.ts +2 -0
- package/icons/FolderOpen.js +6 -0
- package/icons/FolderSelected.d.ts +2 -0
- package/icons/FolderSelected.js +6 -0
- package/icons/ForamteListNumbered.d.ts +2 -0
- package/icons/ForamteListNumbered.js +6 -0
- package/icons/FormatBold.d.ts +2 -0
- package/icons/FormatBold.js +6 -0
- package/icons/FormatItalics.d.ts +2 -0
- package/icons/FormatItalics.js +6 -0
- package/icons/FormatUnderline.d.ts +2 -0
- package/icons/FormatUnderline.js +6 -0
- package/icons/FormateListPoints.d.ts +2 -0
- package/icons/FormateListPoints.js +6 -0
- package/icons/Fullscreen.d.ts +2 -0
- package/icons/Fullscreen.js +6 -0
- package/icons/FullscreenExit.d.ts +2 -0
- package/icons/FullscreenExit.js +6 -0
- package/icons/Group.d.ts +2 -0
- package/icons/Group.js +6 -0
- package/icons/Help.d.ts +1 -1
- package/icons/Help.js +2 -2
- package/icons/History.d.ts +2 -0
- package/icons/History.js +6 -0
- package/icons/Hyperink.d.ts +2 -0
- package/icons/Hyperink.js +6 -0
- package/icons/Icon.module.css.js +27 -40
- package/icons/Icon.module.css.json +1 -1
- package/icons/Icon.types.d.ts +3 -9
- package/icons/Indicator.d.ts +2 -0
- package/icons/Indicator.js +6 -0
- package/icons/Info.d.ts +1 -1
- package/icons/Info.js +2 -2
- package/icons/Inheritance.d.ts +2 -0
- package/icons/Inheritance.js +6 -0
- package/icons/KeyId.d.ts +2 -0
- package/icons/KeyId.js +6 -0
- package/icons/KeyboardArrowDown.d.ts +1 -1
- package/icons/KeyboardArrowDown.js +2 -2
- package/icons/KeyboardArrowLeft.d.ts +2 -0
- package/icons/KeyboardArrowLeft.js +6 -0
- package/icons/KeyboardArrowRight.d.ts +2 -0
- package/icons/KeyboardArrowRight.js +6 -0
- package/icons/KeyboardArrowUp.d.ts +1 -1
- package/icons/KeyboardArrowUp.js +2 -2
- package/icons/Lightbulb.d.ts +2 -0
- package/icons/Lightbulb.js +6 -0
- package/icons/Link.d.ts +2 -0
- package/icons/Link.js +6 -0
- package/icons/LocationOn.d.ts +2 -0
- package/icons/LocationOn.js +6 -0
- package/icons/Lock.d.ts +2 -0
- package/icons/Lock.js +6 -0
- package/icons/LockOpen.d.ts +2 -0
- package/icons/LockOpen.js +6 -0
- package/icons/Login.d.ts +2 -0
- package/icons/Login.js +6 -0
- package/icons/Logout.d.ts +1 -1
- package/icons/Logout.js +2 -2
- package/icons/LookupType.d.ts +2 -0
- package/icons/LookupType.js +6 -0
- package/icons/LostMerge.d.ts +2 -0
- package/icons/LostMerge.js +6 -0
- package/icons/ManageAgent.d.ts +2 -0
- package/icons/ManageAgent.js +6 -0
- package/icons/MatchRule.d.ts +2 -0
- package/icons/MatchRule.js +6 -0
- package/icons/Menu.d.ts +1 -1
- package/icons/Menu.js +2 -2
- package/icons/Merge.d.ts +2 -0
- package/icons/Merge.js +6 -0
- package/icons/Mic.d.ts +2 -0
- package/icons/Mic.js +6 -0
- package/icons/MlModel.d.ts +2 -0
- package/icons/MlModel.js +6 -0
- package/icons/MoreHoriz.d.ts +2 -0
- package/icons/MoreHoriz.js +6 -0
- package/icons/MoreVert.d.ts +2 -0
- package/icons/MoreVert.js +6 -0
- package/icons/Move.d.ts +2 -0
- package/icons/Move.js +6 -0
- package/icons/NestedAttribute.d.ts +2 -0
- package/icons/NestedAttribute.js +6 -0
- package/icons/NetworkNode.d.ts +2 -0
- package/icons/NetworkNode.js +6 -0
- package/icons/Next.d.ts +2 -0
- package/icons/Next.js +6 -0
- package/icons/NotAMatch.d.ts +2 -0
- package/icons/NotAMatch.js +6 -0
- package/icons/NotMatched.d.ts +2 -0
- package/icons/NotMatched.js +6 -0
- package/icons/NotMatchesSet.d.ts +2 -0
- package/icons/NotMatchesSet.js +6 -0
- package/icons/NotificationManagement.d.ts +2 -0
- package/icons/NotificationManagement.js +6 -0
- package/icons/Notifications.d.ts +1 -1
- package/icons/Notifications.js +2 -2
- package/icons/NotificationsActive.d.ts +2 -0
- package/icons/NotificationsActive.js +6 -0
- package/icons/OpenDrawer.d.ts +2 -0
- package/icons/OpenDrawer.js +6 -0
- package/icons/OvMarker.d.ts +2 -0
- package/icons/OvMarker.js +6 -0
- package/icons/PasswordExpired.d.ts +2 -0
- package/icons/PasswordExpired.js +6 -0
- package/icons/Pause.d.ts +2 -0
- package/icons/Pause.js +6 -0
- package/icons/People.d.ts +1 -1
- package/icons/People.js +2 -2
- package/icons/PermIdentity.d.ts +2 -0
- package/icons/PermIdentity.js +6 -0
- package/icons/Person.d.ts +1 -1
- package/icons/Person.js +2 -2
- package/icons/Pin.d.ts +2 -0
- package/icons/Pin.js +6 -0
- package/icons/Play.d.ts +2 -0
- package/icons/Play.js +6 -0
- package/icons/Poll.d.ts +2 -0
- package/icons/Poll.js +6 -0
- package/icons/PotentialMatches.d.ts +2 -0
- package/icons/PotentialMatches.js +6 -0
- package/icons/Profile.d.ts +2 -0
- package/icons/Profile.js +6 -0
- package/icons/Profiles.d.ts +2 -0
- package/icons/Profiles.js +6 -0
- package/icons/QueryBuilder.d.ts +2 -0
- package/icons/QueryBuilder.js +6 -0
- package/icons/RadioChecked.d.ts +2 -0
- package/icons/RadioChecked.js +6 -0
- package/icons/RadioUnchecked.d.ts +2 -0
- package/icons/RadioUnchecked.js +6 -0
- package/icons/Recommend.d.ts +2 -0
- package/icons/Recommend.js +6 -0
- package/icons/Recommended.d.ts +2 -0
- package/icons/Recommended.js +6 -0
- package/icons/ReferenceProfile.d.ts +2 -0
- package/icons/ReferenceProfile.js +6 -0
- package/icons/Refresh.d.ts +1 -1
- package/icons/Refresh.js +2 -2
- package/icons/RefreshDate.d.ts +2 -0
- package/icons/RefreshDate.js +6 -0
- package/icons/RelationsView.d.ts +2 -0
- package/icons/RelationsView.js +6 -0
- package/icons/Remove.d.ts +1 -1
- package/icons/Remove.js +2 -2
- package/icons/RemoveCircle.d.ts +2 -0
- package/icons/RemoveCircle.js +6 -0
- package/icons/Replay.d.ts +2 -0
- package/icons/Replay.js +6 -0
- package/icons/Required.d.ts +2 -0
- package/icons/Required.js +6 -0
- package/icons/RequiredOff.d.ts +2 -0
- package/icons/RequiredOff.js +6 -0
- package/icons/Reset.d.ts +2 -0
- package/icons/Reset.js +6 -0
- package/icons/ResetPassword.d.ts +2 -0
- package/icons/ResetPassword.js +6 -0
- package/icons/ResizeFacetSize.d.ts +2 -0
- package/icons/ResizeFacetSize.js +6 -0
- package/icons/Resume.d.ts +2 -0
- package/icons/Resume.js +6 -0
- package/icons/Review.d.ts +2 -0
- package/icons/Review.js +6 -0
- package/icons/Roles.d.ts +2 -0
- package/icons/Roles.js +6 -0
- package/icons/Save.d.ts +1 -1
- package/icons/Save.js +2 -2
- package/icons/Scope.d.ts +2 -0
- package/icons/Scope.js +6 -0
- package/icons/Search.d.ts +1 -1
- package/icons/Search.js +2 -2
- package/icons/SearchConnections.d.ts +2 -0
- package/icons/SearchConnections.js +6 -0
- package/icons/SearchGlobal.d.ts +2 -0
- package/icons/SearchGlobal.js +6 -0
- package/icons/Segments.d.ts +2 -0
- package/icons/Segments.js +6 -0
- package/icons/SelectedNode.d.ts +2 -0
- package/icons/SelectedNode.js +6 -0
- package/icons/Send.d.ts +2 -0
- package/icons/Send.js +6 -0
- package/icons/Settings.d.ts +1 -1
- package/icons/Settings.js +2 -2
- package/icons/Share.d.ts +1 -1
- package/icons/Share.js +2 -2
- package/icons/ShoppingCart.d.ts +2 -0
- package/icons/ShoppingCart.js +6 -0
- package/icons/ShowGraph.d.ts +2 -0
- package/icons/ShowGraph.js +6 -0
- package/icons/ShowPanel.d.ts +2 -0
- package/icons/ShowPanel.js +6 -0
- package/icons/ShowhideColumns.d.ts +2 -0
- package/icons/ShowhideColumns.js +6 -0
- package/icons/SideNav.d.ts +2 -0
- package/icons/SideNav.js +6 -0
- package/icons/SimpleAttribute.d.ts +2 -0
- package/icons/SimpleAttribute.js +6 -0
- package/icons/Sort.d.ts +1 -1
- package/icons/Sort.js +2 -2
- package/icons/Sorting.d.ts +2 -0
- package/icons/Sorting.js +6 -0
- package/icons/Split.d.ts +2 -0
- package/icons/Split.js +6 -0
- package/icons/Star.d.ts +2 -0
- package/icons/Star.js +6 -0
- package/icons/StarSelected.d.ts +2 -0
- package/icons/StarSelected.js +6 -0
- package/icons/StartDate.d.ts +2 -0
- package/icons/StartDate.js +6 -0
- package/icons/StopJob.d.ts +2 -0
- package/icons/StopJob.js +6 -0
- package/icons/Style.d.ts +2 -0
- package/icons/Style.js +6 -0
- package/icons/Suggest.d.ts +2 -0
- package/icons/Suggest.js +6 -0
- package/icons/Survivorship.d.ts +2 -0
- package/icons/Survivorship.js +6 -0
- package/icons/Sync.d.ts +2 -0
- package/icons/Sync.js +6 -0
- package/icons/TaskList.d.ts +2 -0
- package/icons/TaskList.js +6 -0
- package/icons/ThumbDown.d.ts +2 -0
- package/icons/ThumbDown.js +6 -0
- package/icons/ThumbUp.d.ts +2 -0
- package/icons/ThumbUp.js +6 -0
- package/icons/Today.d.ts +2 -0
- package/icons/Today.js +6 -0
- package/icons/Training.d.ts +2 -0
- package/icons/Training.js +6 -0
- package/icons/TrainingBulb.d.ts +2 -0
- package/icons/TrainingBulb.js +6 -0
- package/icons/TrainingBulbReady.d.ts +2 -0
- package/icons/TrainingBulbReady.js +6 -0
- package/icons/TrainingContinue.d.ts +2 -0
- package/icons/TrainingContinue.js +6 -0
- package/icons/TrainingReady.d.ts +2 -0
- package/icons/TrainingReady.js +6 -0
- package/icons/Transform.d.ts +2 -0
- package/icons/Transform.js +6 -0
- package/icons/Tune.d.ts +2 -0
- package/icons/Tune.js +6 -0
- package/icons/Unmerge.d.ts +2 -0
- package/icons/Unmerge.js +6 -0
- package/icons/Unpublish.d.ts +2 -0
- package/icons/Unpublish.js +6 -0
- package/icons/Unshare.d.ts +2 -0
- package/icons/Unshare.js +6 -0
- package/icons/Up.d.ts +2 -0
- package/icons/Up.js +6 -0
- package/icons/Upload.d.ts +1 -1
- package/icons/Upload.js +2 -2
- package/icons/UsageApp.d.ts +2 -0
- package/icons/UsageApp.js +6 -0
- package/icons/Users.d.ts +2 -0
- package/icons/Users.js +6 -0
- package/icons/VerticalAlign.d.ts +2 -0
- package/icons/VerticalAlign.js +6 -0
- package/icons/ViewCards.d.ts +2 -0
- package/icons/ViewCards.js +6 -0
- package/icons/ViewChart.d.ts +2 -0
- package/icons/ViewChart.js +6 -0
- package/icons/ViewColumn.d.ts +2 -0
- package/icons/ViewColumn.js +6 -0
- package/icons/ViewHierarchy.d.ts +2 -0
- package/icons/ViewHierarchy.js +6 -0
- package/icons/ViewList.d.ts +2 -0
- package/icons/ViewList.js +6 -0
- package/icons/ViewMap.d.ts +2 -0
- package/icons/ViewMap.js +6 -0
- package/icons/ViewTable.d.ts +2 -0
- package/icons/ViewTable.js +6 -0
- package/icons/Visibility.d.ts +1 -1
- package/icons/Visibility.js +2 -2
- package/icons/VisibilityOff.d.ts +1 -1
- package/icons/VisibilityOff.js +2 -2
- package/icons/Warning.d.ts +1 -1
- package/icons/Warning.js +2 -2
- package/icons/Working.d.ts +2 -0
- package/icons/Working.js +6 -0
- package/icons/index.d.ts +189 -2
- package/icons/index.js +377 -3
- package/package.json +2 -8
- package/packages/design/charts.d.ts +1 -0
- package/packages/design/charts.js +1 -0
- package/packages/design/icons.d.ts +1 -0
- package/packages/design/icons.js +1 -0
- package/packages/design/utils.d.ts +1 -0
- package/packages/design/utils.js +1 -0
- package/utils/classNames.d.ts +5 -3
- package/utils/classNames.js +6 -6
- package/utils/index.d.ts +2 -0
- package/utils/index.js +2 -0
- package/utils/types.d.ts +11 -0
- package/utils/types.js +1 -0
- /package/packages/design/{index.d.ts → components.d.ts} +0 -0
- /package/packages/design/{index.js → components.js} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as echartsCore from "echarts/core";
|
|
2
|
+
import type { ChartProps } from "./Chart.types";
|
|
3
|
+
export { echartsCore as echarts };
|
|
4
|
+
export declare const Chart: ({ option, renderer, height, loading, className, style, ...rest }: ChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { GridComponent, LegendComponent, TooltipComponent, } from "echarts/components";
|
|
3
|
+
import * as echartsCore from "echarts/core";
|
|
4
|
+
import { CanvasRenderer, SVGRenderer } from "echarts/renderers";
|
|
5
|
+
import { useEffect, useRef } from "react";
|
|
6
|
+
import { classNames } from "../../utils/classNames";
|
|
7
|
+
import styles from "./Chart.module.css";
|
|
8
|
+
import { buildTheme } from "./theme";
|
|
9
|
+
export { echartsCore as echarts };
|
|
10
|
+
echartsCore.use([
|
|
11
|
+
CanvasRenderer,
|
|
12
|
+
SVGRenderer,
|
|
13
|
+
TooltipComponent,
|
|
14
|
+
GridComponent,
|
|
15
|
+
LegendComponent,
|
|
16
|
+
]);
|
|
17
|
+
const DEFAULT_HEIGHT = 300;
|
|
18
|
+
export const Chart = ({ option, renderer = "canvas", height = DEFAULT_HEIGHT, loading = false, className, style, ...rest }) => {
|
|
19
|
+
const containerRef = useRef(null);
|
|
20
|
+
const chartRef = useRef(null);
|
|
21
|
+
const rendererRef = useRef(renderer);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
const container = containerRef.current;
|
|
24
|
+
if (!container)
|
|
25
|
+
return;
|
|
26
|
+
const theme = buildTheme(container);
|
|
27
|
+
const chart = echartsCore.init(container, theme, {
|
|
28
|
+
renderer: rendererRef.current,
|
|
29
|
+
});
|
|
30
|
+
chartRef.current = chart;
|
|
31
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
32
|
+
chart.resize();
|
|
33
|
+
});
|
|
34
|
+
resizeObserver.observe(container);
|
|
35
|
+
return () => {
|
|
36
|
+
resizeObserver.disconnect();
|
|
37
|
+
chart.dispose();
|
|
38
|
+
chartRef.current = null;
|
|
39
|
+
};
|
|
40
|
+
}, []);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
chartRef.current?.setOption(option);
|
|
43
|
+
}, [option]);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (!chartRef.current)
|
|
46
|
+
return;
|
|
47
|
+
if (loading) {
|
|
48
|
+
const maskColor = getComputedStyle(containerRef.current)
|
|
49
|
+
.getPropertyValue("--reltio-color-bg-white")
|
|
50
|
+
.trim();
|
|
51
|
+
chartRef.current.showLoading({ maskColor });
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
chartRef.current.hideLoading();
|
|
55
|
+
}
|
|
56
|
+
}, [loading]);
|
|
57
|
+
const containerHeight = typeof height === "number" ? `${height}px` : height;
|
|
58
|
+
return (_jsx("div", { ref: containerRef, className: classNames(styles.root, className), style: { ...style, height: containerHeight }, ...rest }));
|
|
59
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "root": "Chart_root__L29wd" }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { EChartsOption } from "echarts";
|
|
2
|
+
import type { HtmlProps } from "../../utils/types";
|
|
3
|
+
export type ChartProps = HtmlProps<"div", {
|
|
4
|
+
/**
|
|
5
|
+
* ECharts option object defining the chart content.
|
|
6
|
+
* Passed directly to chart.setOption().
|
|
7
|
+
*/
|
|
8
|
+
option: EChartsOption;
|
|
9
|
+
/**
|
|
10
|
+
* Rendering engine. Read once at mount — changes after mount are ignored.
|
|
11
|
+
* @default "canvas"
|
|
12
|
+
*/
|
|
13
|
+
renderer?: "canvas" | "svg";
|
|
14
|
+
/**
|
|
15
|
+
* Height of the chart container. Number values are treated as pixels.
|
|
16
|
+
* @default 300
|
|
17
|
+
*/
|
|
18
|
+
height?: number | string;
|
|
19
|
+
/**
|
|
20
|
+
* When true, shows the ECharts built-in loading indicator.
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Chart, echarts } from "./Chart";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds an ECharts theme object by reading --reltio-color-* CSS custom
|
|
3
|
+
* properties from the given DOM element. CSS custom properties inherit
|
|
4
|
+
* through the DOM tree, so the resolved values reflect the nearest
|
|
5
|
+
* ancestor's data-theme attribute (light or dark).
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildTheme(element: HTMLElement): {
|
|
8
|
+
color: string[];
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
title: {
|
|
11
|
+
textStyle: {
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
legend: {
|
|
16
|
+
textStyle: {
|
|
17
|
+
color: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
tooltip: {
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textStyle: {
|
|
24
|
+
color: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
categoryAxis: {
|
|
28
|
+
axisLine: {
|
|
29
|
+
lineStyle: {
|
|
30
|
+
color: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
axisTick: {
|
|
34
|
+
lineStyle: {
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
axisLabel: {
|
|
39
|
+
color: string;
|
|
40
|
+
};
|
|
41
|
+
splitLine: {
|
|
42
|
+
lineStyle: {
|
|
43
|
+
color: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
valueAxis: {
|
|
48
|
+
axisLine: {
|
|
49
|
+
lineStyle: {
|
|
50
|
+
color: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
axisTick: {
|
|
54
|
+
lineStyle: {
|
|
55
|
+
color: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
axisLabel: {
|
|
59
|
+
color: string;
|
|
60
|
+
};
|
|
61
|
+
splitLine: {
|
|
62
|
+
lineStyle: {
|
|
63
|
+
color: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const TOKEN_NAMES = [
|
|
2
|
+
"primary",
|
|
3
|
+
"success",
|
|
4
|
+
"warning",
|
|
5
|
+
"orange",
|
|
6
|
+
"pink",
|
|
7
|
+
"purple",
|
|
8
|
+
"aqua-font",
|
|
9
|
+
"lime",
|
|
10
|
+
"error",
|
|
11
|
+
];
|
|
12
|
+
function getToken(styles, name) {
|
|
13
|
+
return styles.getPropertyValue(`--reltio-color-${name}`).trim();
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Builds an ECharts theme object by reading --reltio-color-* CSS custom
|
|
17
|
+
* properties from the given DOM element. CSS custom properties inherit
|
|
18
|
+
* through the DOM tree, so the resolved values reflect the nearest
|
|
19
|
+
* ancestor's data-theme attribute (light or dark).
|
|
20
|
+
*/
|
|
21
|
+
export function buildTheme(element) {
|
|
22
|
+
const styles = getComputedStyle(element);
|
|
23
|
+
const colorPalette = TOKEN_NAMES.map((name) => getToken(styles, name));
|
|
24
|
+
return {
|
|
25
|
+
color: colorPalette,
|
|
26
|
+
backgroundColor: "transparent",
|
|
27
|
+
title: {
|
|
28
|
+
textStyle: {
|
|
29
|
+
color: getToken(styles, "text"),
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
legend: {
|
|
33
|
+
textStyle: {
|
|
34
|
+
color: getToken(styles, "text-secondary"),
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
tooltip: {
|
|
38
|
+
backgroundColor: getToken(styles, "bg-tooltip"),
|
|
39
|
+
borderColor: getToken(styles, "border-2"),
|
|
40
|
+
textStyle: {
|
|
41
|
+
color: getToken(styles, "text-forced-white"),
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
categoryAxis: {
|
|
45
|
+
axisLine: {
|
|
46
|
+
lineStyle: {
|
|
47
|
+
color: getToken(styles, "border-2"),
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
axisTick: {
|
|
51
|
+
lineStyle: {
|
|
52
|
+
color: getToken(styles, "border-2"),
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
axisLabel: {
|
|
56
|
+
color: getToken(styles, "text-secondary"),
|
|
57
|
+
},
|
|
58
|
+
splitLine: {
|
|
59
|
+
lineStyle: {
|
|
60
|
+
color: getToken(styles, "border-1"),
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
valueAxis: {
|
|
65
|
+
axisLine: {
|
|
66
|
+
lineStyle: {
|
|
67
|
+
color: getToken(styles, "border-2"),
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
axisTick: {
|
|
71
|
+
lineStyle: {
|
|
72
|
+
color: getToken(styles, "border-2"),
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
axisLabel: {
|
|
76
|
+
color: getToken(styles, "text-secondary"),
|
|
77
|
+
},
|
|
78
|
+
splitLine: {
|
|
79
|
+
lineStyle: {
|
|
80
|
+
color: getToken(styles, "border-1"),
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { LineChart as EChartsLine } from "echarts/charts";
|
|
3
|
+
import { Chart, echarts } from "../../charts/Chart";
|
|
4
|
+
import { classNames } from "../../utils/classNames";
|
|
5
|
+
import styles from "./LineChart.module.css";
|
|
6
|
+
echarts.use([EChartsLine]);
|
|
7
|
+
const DEFAULT_HEIGHT = 300;
|
|
8
|
+
const EMPTY_GRID_OPTION = {
|
|
9
|
+
xAxis: { type: "category" },
|
|
10
|
+
yAxis: {
|
|
11
|
+
type: "value",
|
|
12
|
+
min: 0,
|
|
13
|
+
max: 1000,
|
|
14
|
+
splitLine: { show: true },
|
|
15
|
+
},
|
|
16
|
+
series: [],
|
|
17
|
+
grid: {
|
|
18
|
+
left: "3%",
|
|
19
|
+
right: "4%",
|
|
20
|
+
bottom: "3%",
|
|
21
|
+
containLabel: true,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
function formatWithUnits(value, units) {
|
|
25
|
+
if (!units)
|
|
26
|
+
return `${value}`;
|
|
27
|
+
return `${value} ${units}`;
|
|
28
|
+
}
|
|
29
|
+
function buildLineOption(data, xKey, series, units) {
|
|
30
|
+
const xLabels = typeof xKey === "function"
|
|
31
|
+
? data.map(xKey)
|
|
32
|
+
: data.map((d) => d[xKey]);
|
|
33
|
+
return {
|
|
34
|
+
xAxis: {
|
|
35
|
+
type: "category",
|
|
36
|
+
data: xLabels,
|
|
37
|
+
},
|
|
38
|
+
yAxis: {
|
|
39
|
+
type: "value",
|
|
40
|
+
...(units && {
|
|
41
|
+
axisLabel: {
|
|
42
|
+
formatter: (value) => formatWithUnits(value, units),
|
|
43
|
+
},
|
|
44
|
+
}),
|
|
45
|
+
},
|
|
46
|
+
series: series.map((s) => ({
|
|
47
|
+
type: "line",
|
|
48
|
+
name: s.name ?? s.key,
|
|
49
|
+
data: data.map((d) => d[s.key]),
|
|
50
|
+
})),
|
|
51
|
+
tooltip: {
|
|
52
|
+
trigger: "axis",
|
|
53
|
+
...(units && {
|
|
54
|
+
valueFormatter: (value) => formatWithUnits(value, units),
|
|
55
|
+
}),
|
|
56
|
+
},
|
|
57
|
+
legend: {
|
|
58
|
+
show: series.length > 1,
|
|
59
|
+
bottom: 0,
|
|
60
|
+
},
|
|
61
|
+
grid: {
|
|
62
|
+
left: "3%",
|
|
63
|
+
right: "4%",
|
|
64
|
+
bottom: series.length > 1 ? "10%" : "3%",
|
|
65
|
+
containLabel: true,
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export const LineChart = ({ data, xKey, series, height = DEFAULT_HEIGHT, units, loading = false, error, className, ...rest }) => {
|
|
70
|
+
const hasData = Array.isArray(data) && data.length > 0;
|
|
71
|
+
const option = hasData && !error
|
|
72
|
+
? buildLineOption(data, xKey, series, units)
|
|
73
|
+
: EMPTY_GRID_OPTION;
|
|
74
|
+
const overlay = error ? (_jsx("div", { className: classNames(styles.overlay, styles.errorOverlay), children: error })) : !hasData && !loading ? (_jsx("div", { className: styles.overlay, children: "No data" })) : null;
|
|
75
|
+
return (_jsxs("div", { className: classNames(styles.root, className), ...rest, children: [overlay, _jsx(Chart, { option: option, height: height, loading: loading })] }));
|
|
76
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import styleInject from 'style-inject';
|
|
2
|
+
import json from './LineChart.module.css.json';
|
|
3
|
+
styleInject(`
|
|
4
|
+
.LineChart_root__L29wd {
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.LineChart_overlay__L29wd {
|
|
10
|
+
position: absolute;
|
|
11
|
+
inset: 0;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
color: var(--reltio-color-text-secondary);
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
z-index: 1;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.LineChart_errorOverlay__L29wd {
|
|
22
|
+
color: var(--reltio-color-error-font);
|
|
23
|
+
}
|
|
24
|
+
`);
|
|
25
|
+
export default json;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "root": "LineChart_root__L29wd", "overlay": "LineChart_overlay__L29wd", "errorOverlay": "LineChart_errorOverlay__L29wd" }
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { HtmlProps } from "../../utils/types";
|
|
2
|
+
export type LineChartSeries = {
|
|
3
|
+
/** Data object key to plot as Y values */
|
|
4
|
+
key: string;
|
|
5
|
+
/** Legend label. Defaults to `key` if not provided. */
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
export type LineChartProps = HtmlProps<"div", {
|
|
9
|
+
/** Array of data objects. Each object represents one data point. */
|
|
10
|
+
data?: Record<string, unknown>[];
|
|
11
|
+
/**
|
|
12
|
+
* Determines X-axis labels.
|
|
13
|
+
* - **string**: property name for direct value lookup
|
|
14
|
+
* - **function**: custom extraction and formatting in one step
|
|
15
|
+
*/
|
|
16
|
+
xKey: string | ((item: Record<string, unknown>) => string);
|
|
17
|
+
/** Data series to plot. Each entry renders one line. */
|
|
18
|
+
series: LineChartSeries[];
|
|
19
|
+
/**
|
|
20
|
+
* Height of the chart container. Number values are treated as pixels.
|
|
21
|
+
* @default 300
|
|
22
|
+
*/
|
|
23
|
+
height?: number | string;
|
|
24
|
+
/**
|
|
25
|
+
* Shows the ECharts built-in loading overlay.
|
|
26
|
+
* - When `data` is empty: loading overlay on empty grid
|
|
27
|
+
* - When `data` is present: loading overlay on rendered chart
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Unit suffix appended to Y-axis labels and tooltip values.
|
|
33
|
+
* Examples: "ms", "%", " records"
|
|
34
|
+
*/
|
|
35
|
+
units?: string;
|
|
36
|
+
/** Error message. When set, replaces the chart with centered error text. */
|
|
37
|
+
error?: string;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LineChart } from "./LineChart";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LineChart";
|
package/charts/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LineChart";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AppSelectorProps } from "./AppSelector.types";
|
|
2
|
+
/** Navigation popover for switching between Reltio platform applications.
|
|
3
|
+
* Displays apps grouped by category in a grid layout.
|
|
4
|
+
*/
|
|
5
|
+
export declare const AppSelector: ({ apps, env, tenant, className, positionArea, ...rest }: AppSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "../../components/Button";
|
|
3
|
+
import { Divider } from "../../components/Divider";
|
|
4
|
+
import { Popover } from "../../components/Popover";
|
|
5
|
+
import { Applications } from "../../icons/Applications";
|
|
6
|
+
import { Link } from "../../icons/Link";
|
|
7
|
+
import { classNames } from "../../utils/classNames";
|
|
8
|
+
import styles from "./AppSelector.module.css";
|
|
9
|
+
const DEFAULT_CATEGORY = "Applications";
|
|
10
|
+
/** Navigation popover for switching between Reltio platform applications.
|
|
11
|
+
* Displays apps grouped by category in a grid layout.
|
|
12
|
+
*/
|
|
13
|
+
export const AppSelector = ({ apps, env, tenant, className, positionArea = "right span-top", ...rest }) => {
|
|
14
|
+
const validApps = apps.filter((app) => app.name && app.uri);
|
|
15
|
+
const groups = Object.groupBy(validApps, ({ category }) => category || DEFAULT_CATEGORY);
|
|
16
|
+
return (_jsx("nav", { className: classNames(className), "aria-label": "Applications", ...rest, children: _jsx(Popover, { trigger: _jsx(Button, { variant: "text", "aria-label": "Applications", children: _jsx(Applications, {}) }), positionArea: positionArea, children: _jsx("div", { className: classNames(styles.content), children: Object.entries(groups).map(([category, apps]) => (_jsxs("div", { className: classNames(styles.group), children: [_jsx(Divider, { className: classNames(styles.divider), children: category }), _jsx("div", { className: classNames(styles.grid), children: apps?.map((app) => (_jsxs("a", { href: resolveUri(app.uri, env, tenant), target: "_blank", rel: "noopener noreferrer", className: classNames(styles.app), children: [app.icon ? (_jsx("img", { src: app.icon, alt: "", className: classNames(styles.appIcon) })) : (_jsx(Link, { size: "xlarge" })), app.name] }, app.name))) })] }, category))) }) }) }));
|
|
17
|
+
};
|
|
18
|
+
const resolveUri = (uri, env, tenant) => uri
|
|
19
|
+
?.replaceAll("${environment}", String(env))
|
|
20
|
+
.replaceAll("${tenant}", String(tenant));
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import styleInject from 'style-inject';
|
|
2
|
+
import json from './AppSelector.module.css.json';
|
|
3
|
+
styleInject(`
|
|
4
|
+
.AppSelector_content__L29wd {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 16px;
|
|
8
|
+
padding: 16px;
|
|
9
|
+
width: 316px;
|
|
10
|
+
max-height: 485px;
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.AppSelector_group__L29wd {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: 12px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.AppSelector_grid__L29wd {
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-columns: repeat(3, 1fr);
|
|
24
|
+
column-gap: 16px;
|
|
25
|
+
row-gap: 24px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.AppSelector_divider__L29wd {
|
|
29
|
+
margin-left: 12px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.AppSelector_app__L29wd {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 8px;
|
|
37
|
+
padding: 8px 0;
|
|
38
|
+
border-radius: 12px;
|
|
39
|
+
text-align: center;
|
|
40
|
+
font-size: 13px;
|
|
41
|
+
line-height: 1.3;
|
|
42
|
+
color: var(--reltio-color-text);
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.AppSelector_app__L29wd:hover {
|
|
48
|
+
background: var(--reltio-color-bg-transparent-1);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.AppSelector_appIcon__L29wd {
|
|
52
|
+
width: 48px;
|
|
53
|
+
height: 48px;
|
|
54
|
+
object-fit: contain;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.AppSelector_error__L29wd {
|
|
58
|
+
margin-bottom: -8px;
|
|
59
|
+
}
|
|
60
|
+
`);
|
|
61
|
+
export default json;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "content": "AppSelector_content__L29wd", "group": "AppSelector_group__L29wd", "grid": "AppSelector_grid__L29wd", "divider": "AppSelector_divider__L29wd", "app": "AppSelector_app__L29wd", "appIcon": "AppSelector_appIcon__L29wd", "error": "AppSelector_error__L29wd" }
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { HtmlProps } from "../../utils/types";
|
|
2
|
+
export type AppEntry = {
|
|
3
|
+
/** Application display name. Apps without a name are ignored. */
|
|
4
|
+
name?: string;
|
|
5
|
+
/** URL opened in a new tab on click. Apps without a URI are ignored. */
|
|
6
|
+
uri?: string;
|
|
7
|
+
/** Absolute URL to the application icon (SVG). Falls back to a generic link icon. */
|
|
8
|
+
icon?: string;
|
|
9
|
+
/** Application category for grouping in navigation.
|
|
10
|
+
* @default "Applications"
|
|
11
|
+
*/
|
|
12
|
+
category?: string;
|
|
13
|
+
};
|
|
14
|
+
export type AppSelectorProps = HtmlProps<"div", {
|
|
15
|
+
/** List of apps to display, grouped by category.
|
|
16
|
+
* Apps missing `name` or `uri` are silently ignored.
|
|
17
|
+
* The list of available apps for a given tenant
|
|
18
|
+
* can be retrieved from Reltio Config Service.
|
|
19
|
+
*/
|
|
20
|
+
apps: AppEntry[];
|
|
21
|
+
/** Environment identifier substituted into URI templates (`${environment}`). */
|
|
22
|
+
env?: string;
|
|
23
|
+
/** Tenant identifier substituted into URI templates (`${tenant}`). */
|
|
24
|
+
tenant?: string;
|
|
25
|
+
/** CSS `position-area` value controlling popover placement relative to the trigger.
|
|
26
|
+
* @default "right span-top"
|
|
27
|
+
*/
|
|
28
|
+
positionArea?: string;
|
|
29
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AppSelector";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { AssistantLoaderProps } from "./AssistantLoader.types";
|
|
2
2
|
/**
|
|
3
3
|
* Displays a standardized loading indicator for assistant responses using a GIF animation.
|
|
4
|
-
* Size is controlled via the `--reltio-assistant-loader-size` CSS variable (default: 32px).
|
|
5
4
|
* Includes accessibility attributes (aria-busy, aria-label, role="status").
|
|
6
5
|
*/
|
|
7
|
-
export declare const AssistantLoader: ({ className, ...rest }: AssistantLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const AssistantLoader: ({ className, size, style, ...rest }: AssistantLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { classNames } from "../../utils/classNames";
|
|
3
3
|
import styles from "./AssistantLoader.module.css";
|
|
4
|
-
const LOADING_GIF_SRC = "/icons/loading.gif";
|
|
4
|
+
const LOADING_GIF_SRC = "https://reltio.design/icons/loading.gif";
|
|
5
5
|
const DEFAULT_LABEL = "thinking";
|
|
6
6
|
/**
|
|
7
7
|
* Displays a standardized loading indicator for assistant responses using a GIF animation.
|
|
8
|
-
* Size is controlled via the `--reltio-assistant-loader-size` CSS variable (default: 32px).
|
|
9
8
|
* Includes accessibility attributes (aria-busy, aria-label, role="status").
|
|
10
9
|
*/
|
|
11
|
-
export const AssistantLoader = ({ className, ...rest }) => {
|
|
10
|
+
export const AssistantLoader = ({ className, size, style, ...rest }) => {
|
|
11
|
+
const rootStyle = {
|
|
12
|
+
...style,
|
|
13
|
+
"--size": size ?? "32px",
|
|
14
|
+
};
|
|
12
15
|
return (
|
|
13
16
|
// biome-ignore lint/a11y/useSemanticElements: status role is correct for loading placeholder; output is for calculation results
|
|
14
|
-
_jsxs("div", { className: classNames(styles.root, className), "aria-busy": "true", "aria-label": DEFAULT_LABEL, role: "status", ...rest, children: [_jsx("img", { src: LOADING_GIF_SRC, alt: "", className: styles.indicator, "aria-hidden": "true" }), _jsx("div", { className: classNames(styles.dotFlashing), "aria-hidden": "true" })] }));
|
|
17
|
+
_jsxs("div", { className: classNames(styles.root, className), "aria-busy": "true", "aria-label": DEFAULT_LABEL, role: "status", style: rootStyle, ...rest, children: [_jsx("img", { src: LOADING_GIF_SRC, alt: "", className: classNames(styles.indicator), "aria-hidden": "true" }), _jsx("div", { className: classNames(styles.dotFlashing), "aria-hidden": "true" })] }));
|
|
15
18
|
};
|