@redocly/theme 0.56.0-rc.2 → 0.56.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/lib/components/Admonition/Admonition.js +21 -11
- package/lib/components/Badge/Badge.js +17 -7
- package/lib/components/Breadcrumbs/Breadcrumb.js +1 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.js +3 -3
- package/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/Button.js +21 -9
- package/lib/components/Button/ButtonGroup.d.ts +12 -0
- package/lib/components/Button/ButtonGroup.js +38 -0
- package/lib/components/Button/variables.js +32 -5
- package/lib/components/Buttons/CopyButton.d.ts +2 -2
- package/lib/components/Buttons/CopyButton.js +22 -12
- package/lib/components/Buttons/EditPageButton.js +3 -3
- package/lib/components/Buttons/EmailButton.js +2 -2
- package/lib/components/Buttons/NewTabButton.js +2 -2
- package/lib/components/Catalog/Catalog.d.ts +2 -2
- package/lib/components/Catalog/Catalog.js +12 -12
- package/lib/components/Catalog/CatalogActionsRow.d.ts +1 -1
- package/lib/components/Catalog/CatalogActionsRow.js +3 -3
- package/lib/components/Catalog/CatalogCardView/CatalogCard.d.ts +1 -1
- package/lib/components/Catalog/CatalogCardView/CatalogCard.js +18 -13
- package/lib/components/Catalog/CatalogCardView/CatalogCardView.d.ts +1 -1
- package/lib/components/Catalog/CatalogCardView/CatalogCardView.js +1 -1
- package/lib/components/Catalog/CatalogEntities.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntities.js +24 -14
- package/lib/components/Catalog/CatalogEntitiesEmptyState.d.ts +5 -1
- package/lib/components/Catalog/CatalogEntitiesEmptyState.js +25 -4
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +2 -4
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +29 -25
- package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.d.ts +4 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.js +15 -7
- package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.js +9 -9
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +39 -12
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +47 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.js +10 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +15 -9
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts +2 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +12 -5
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +4 -4
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +4 -4
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +10 -5
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +19 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.js +5 -5
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +3 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +5 -4
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.js +3 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +3 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +7 -13
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +4 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +22 -16
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +5 -4
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +10 -10
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +11 -11
- package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +55 -0
- package/lib/components/Catalog/CatalogEntityIcon.d.ts +2 -1
- package/lib/components/Catalog/CatalogEntityIcon.js +26 -33
- package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +2 -1
- package/lib/components/Catalog/CatalogEntityTypeIcon.js +11 -23
- package/lib/components/Catalog/CatalogEntityTypeTag.d.ts +7 -0
- package/lib/components/Catalog/CatalogEntityTypeTag.js +40 -0
- package/lib/components/Catalog/CatalogPageDescription.js +5 -5
- package/lib/components/Catalog/CatalogSelector.d.ts +2 -2
- package/lib/components/Catalog/CatalogSelector.js +6 -5
- package/lib/components/Catalog/CatalogSortButton.d.ts +1 -1
- package/lib/components/Catalog/CatalogSortButton.js +28 -18
- package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +2 -1
- package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +1 -1
- package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +4 -16
- package/lib/components/Catalog/CatalogTableView/CatalogEntityRelationCell.d.ts +1 -1
- package/lib/components/Catalog/CatalogTableView/CatalogEntityRelationCell.js +1 -1
- package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +2 -1
- package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +2 -2
- package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +21 -15
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +3 -3
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +11 -38
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +0 -2
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +17 -42
- package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.d.ts +1 -1
- package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +2 -1
- package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +9 -5
- package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +1 -1
- package/lib/components/Catalog/CatalogTagsWithTooltip.js +5 -5
- package/lib/components/Catalog/CatalogViewModeToggle.d.ts +1 -1
- package/lib/components/Catalog/CatalogViewModeToggle.js +19 -9
- package/lib/components/Catalog/variables.js +42 -8
- package/lib/components/CatalogClassic/CatalogClassic.d.ts +1 -1
- package/lib/components/CatalogClassic/CatalogClassic.js +9 -9
- package/lib/components/CatalogClassic/CatalogClassicActions.d.ts +1 -1
- package/lib/components/CatalogClassic/CatalogClassicActions.js +22 -12
- package/lib/components/CatalogClassic/CatalogClassicCard.d.ts +1 -1
- package/lib/components/CatalogClassic/CatalogClassicCard.js +24 -14
- package/lib/components/CatalogClassic/CatalogClassicHighlight.js +17 -7
- package/lib/components/CatalogClassic/CatalogClassicInfoBlock.js +4 -4
- package/lib/components/CatalogClassic/CatalogClassicVirtualizedGroups.d.ts +1 -1
- package/lib/components/CatalogClassic/CatalogClassicVirtualizedGroups.js +21 -11
- package/lib/components/CodeBlock/CodeBlock.d.ts +17 -7
- package/lib/components/CodeBlock/CodeBlock.js +25 -14
- package/lib/components/CodeBlock/CodeBlockContainer.js +18 -8
- package/lib/components/CodeBlock/CodeBlockControls.d.ts +4 -3
- package/lib/components/CodeBlock/CodeBlockControls.js +45 -18
- package/lib/components/CodeBlock/CodeBlockDropdown.d.ts +3 -0
- package/lib/components/CodeBlock/CodeBlockDropdown.js +35 -0
- package/lib/components/CodeBlock/CodeBlockTabs.d.ts +2 -2
- package/lib/components/CodeBlock/CodeBlockTabs.js +39 -20
- package/lib/components/CodeBlock/variables.js +1 -1
- package/lib/components/ColorModeSwitcher/ColorModeIcon.js +3 -3
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +3 -3
- package/lib/components/Dropdown/Dropdown.js +21 -10
- package/lib/components/Dropdown/DropdownMenu.d.ts +1 -1
- package/lib/components/Dropdown/DropdownMenu.js +5 -1
- package/lib/components/Dropdown/DropdownMenuItem.d.ts +1 -1
- package/lib/components/Dropdown/DropdownMenuItem.js +18 -8
- package/lib/components/Dropdown/variables.js +1 -0
- package/lib/components/Feedback/Comment.js +20 -10
- package/lib/components/Feedback/Feedback.d.ts +1 -1
- package/lib/components/Feedback/Feedback.js +25 -15
- package/lib/components/Feedback/Mood.js +25 -15
- package/lib/components/Feedback/Rating.js +23 -13
- package/lib/components/Feedback/Reasons.js +18 -8
- package/lib/components/Feedback/ReportDialog.d.ts +1 -1
- package/lib/components/Feedback/ReportDialog.js +3 -3
- package/lib/components/Feedback/Scale.js +23 -13
- package/lib/components/Feedback/Sentiment.js +24 -14
- package/lib/components/Feedback/Stars.js +19 -9
- package/lib/components/Filter/Filter.d.ts +1 -1
- package/lib/components/Filter/Filter.js +3 -3
- package/lib/components/Filter/FilterCheckboxes.d.ts +1 -1
- package/lib/components/Filter/FilterCheckboxes.js +13 -10
- package/lib/components/Filter/FilterContent.d.ts +2 -2
- package/lib/components/Filter/FilterContent.js +22 -12
- package/lib/components/Filter/FilterDateRange.d.ts +1 -1
- package/lib/components/Filter/FilterDateRange.js +5 -5
- package/lib/components/Filter/FilterInput.js +19 -9
- package/lib/components/Filter/FilterPopover.d.ts +2 -2
- package/lib/components/Filter/FilterPopover.js +3 -3
- package/lib/components/Filter/FilterSelect.d.ts +1 -1
- package/lib/components/Filter/FilterSelect.js +7 -7
- package/lib/components/Footer/Footer.js +5 -5
- package/lib/components/Footer/FooterColumn.js +3 -3
- package/lib/components/Footer/FooterCopyright.js +2 -2
- package/lib/components/Footer/FooterItem.js +8 -11
- package/lib/components/Footer/variables.js +2 -2
- package/lib/components/Image/Image.js +20 -8
- package/lib/components/JsonViewer/JsonViewer.d.ts +1 -1
- package/lib/components/JsonViewer/JsonViewer.js +18 -8
- package/lib/components/JsonViewer/helpers.js +19 -9
- package/lib/components/LanguagePicker/LanguagePicker.js +7 -7
- package/lib/components/LastUpdated/LastUpdated.js +19 -9
- package/lib/components/Link/Link.js +18 -8
- package/lib/components/LoadMore/LoadMore.js +1 -1
- package/lib/components/Loaders/Loading.js +2 -2
- package/lib/components/Logo/Logo.d.ts +1 -1
- package/lib/components/Logo/Logo.js +3 -3
- package/lib/components/Markdown/Markdown.js +29 -19
- package/lib/components/Markdown/styles/headingAnchor.js +0 -1
- package/lib/components/Marker/Marker.d.ts +1 -1
- package/lib/components/Marker/Marker.js +17 -7
- package/lib/components/Menu/Menu.d.ts +1 -1
- package/lib/components/Menu/Menu.js +3 -3
- package/lib/components/Menu/MenuContainer.d.ts +1 -1
- package/lib/components/Menu/MenuContainer.js +17 -7
- package/lib/components/Menu/MenuItem.d.ts +1 -1
- package/lib/components/Menu/MenuItem.js +32 -22
- package/lib/components/Menu/MenuMobile.js +27 -17
- package/lib/components/Menu/variables.js +3 -1
- package/lib/components/Navbar/Navbar.js +13 -13
- package/lib/components/Navbar/NavbarItem.js +15 -46
- package/lib/components/Navbar/NavbarLogo.d.ts +1 -1
- package/lib/components/Navbar/NavbarLogo.js +1 -1
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/variables.js +2 -2
- package/lib/components/PageActions/PageActions.d.ts +6 -0
- package/lib/components/PageActions/PageActions.js +114 -0
- package/lib/components/PageActions/PageActionsMenuItem.d.ts +7 -0
- package/lib/components/PageActions/PageActionsMenuItem.js +58 -0
- package/lib/components/PageActions/variables.d.ts +1 -0
- package/lib/components/PageActions/variables.dark.d.ts +1 -0
- package/lib/components/PageActions/variables.dark.js +9 -0
- package/lib/components/PageActions/variables.js +37 -0
- package/lib/components/PageNavigation/NavigationButton.js +3 -3
- package/lib/components/PageNavigation/NextButton.js +20 -10
- package/lib/components/PageNavigation/PageNavigation.js +3 -3
- package/lib/components/PageNavigation/PreviousButton.js +3 -3
- package/lib/components/Panel/Panel.d.ts +1 -1
- package/lib/components/Panel/Panel.js +22 -12
- package/lib/components/Panel/PanelBody.js +17 -7
- package/lib/components/Portal/Portal.js +1 -1
- package/lib/components/Product/Product.d.ts +1 -1
- package/lib/components/Product/ProductPicker.js +7 -7
- package/lib/components/Search/FilterFields/SearchFilterFieldSelect.d.ts +1 -1
- package/lib/components/Search/FilterFields/SearchFilterFieldSelect.js +20 -10
- package/lib/components/Search/FilterFields/SearchFilterFieldTags.d.ts +1 -1
- package/lib/components/Search/FilterFields/SearchFilterFieldTags.js +1 -1
- package/lib/components/Search/Search.js +3 -3
- package/lib/components/Search/SearchAiConversationInput.js +21 -11
- package/lib/components/Search/SearchAiDialog.d.ts +2 -2
- package/lib/components/Search/SearchAiDialog.js +24 -14
- package/lib/components/Search/SearchAiMessage.d.ts +1 -1
- package/lib/components/Search/SearchAiMessage.js +7 -7
- package/lib/components/Search/SearchAiResponse.d.ts +1 -1
- package/lib/components/Search/SearchAiResponse.js +12 -12
- package/lib/components/Search/SearchDialog.js +40 -30
- package/lib/components/Search/SearchFilter.d.ts +1 -1
- package/lib/components/Search/SearchFilter.js +21 -11
- package/lib/components/Search/SearchFilterField.d.ts +1 -1
- package/lib/components/Search/SearchFilterField.js +5 -5
- package/lib/components/Search/SearchGroups.d.ts +1 -1
- package/lib/components/Search/SearchGroups.js +18 -8
- package/lib/components/Search/SearchHighlight.js +17 -7
- package/lib/components/Search/SearchInput.js +6 -6
- package/lib/components/Search/SearchItem.d.ts +1 -1
- package/lib/components/Search/SearchItem.js +24 -14
- package/lib/components/Search/SearchRecent.js +22 -12
- package/lib/components/Search/SearchShortcut.js +17 -7
- package/lib/components/Search/SearchSuggestedPages.js +20 -10
- package/lib/components/Search/SearchTrigger.js +21 -11
- package/lib/components/Segmented/Segmented.d.ts +1 -1
- package/lib/components/Segmented/Segmented.js +18 -8
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Select/Select.js +23 -13
- package/lib/components/Select/SelectInput.d.ts +1 -1
- package/lib/components/Select/SelectInput.js +20 -10
- package/lib/components/Select/variables.js +2 -2
- package/lib/components/Sidebar/Sidebar.d.ts +1 -1
- package/lib/components/Sidebar/Sidebar.js +20 -10
- package/lib/components/SidebarActions/ChangeViewButton.d.ts +1 -1
- package/lib/components/SidebarActions/ChangeViewButton.js +5 -5
- package/lib/components/SidebarActions/SidebarActions.js +6 -6
- package/lib/components/SidebarActions/styled.js +18 -8
- package/lib/components/SkipContent/SkipContent.js +19 -9
- package/lib/components/Switch/Switch.js +17 -7
- package/lib/components/TableOfContent/TableOfContent.d.ts +1 -1
- package/lib/components/TableOfContent/TableOfContent.js +34 -21
- package/lib/components/Tag/Tag.d.ts +2 -1
- package/lib/components/Tag/Tag.js +5 -5
- package/lib/components/Tag/variables.js +14 -0
- package/lib/components/Tags/CounterTag.d.ts +1 -1
- package/lib/components/Tags/CounterTag.js +1 -1
- package/lib/components/Tags/HttpTag.d.ts +1 -1
- package/lib/components/Tags/HttpTag.js +1 -1
- package/lib/components/Tooltip/Tooltip.js +18 -8
- package/lib/components/Tooltip/TooltipWrapper.d.ts +1 -1
- package/lib/components/Tooltip/TooltipWrapper.js +2 -2
- package/lib/components/Typography/CompactTypography.d.ts +1 -1
- package/lib/components/Typography/CompactTypography.js +1 -1
- package/lib/components/Typography/H1.js +1 -1
- package/lib/components/Typography/H2.js +1 -1
- package/lib/components/Typography/H3.js +1 -1
- package/lib/components/Typography/H4.js +1 -1
- package/lib/components/UserMenu/LoginButton.js +2 -2
- package/lib/components/UserMenu/LogoutMenuItem.js +3 -3
- package/lib/components/UserMenu/UserAvatar.js +1 -1
- package/lib/components/UserMenu/UserInfoMenuItem.js +2 -2
- package/lib/components/UserMenu/UserMenu.js +9 -9
- package/lib/components/UserMenu/UserMenuMobile.js +4 -4
- package/lib/components/VersionPicker/VersionPicker.d.ts +2 -2
- package/lib/components/VersionPicker/VersionPicker.js +20 -10
- package/lib/core/constants/catalog.d.ts +1 -1
- package/lib/core/constants/common.d.ts +4 -0
- package/lib/core/constants/common.js +5 -1
- package/lib/core/contexts/CodeSnippetContext.d.ts +7 -0
- package/lib/core/contexts/CodeSnippetContext.js +23 -0
- package/lib/core/contexts/index.d.ts +1 -0
- package/lib/core/contexts/index.js +1 -0
- package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +1 -0
- package/lib/core/hooks/__mocks__/use-theme-hooks.js +1 -0
- package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.d.ts +1 -1
- package/lib/core/hooks/code-walkthrough/use-renderable-files.d.ts +1 -2
- package/lib/core/hooks/code-walkthrough/use-renderable-files.js +2 -2
- package/lib/core/hooks/index.d.ts +1 -0
- package/lib/core/hooks/index.js +1 -0
- package/lib/core/hooks/use-active-heading.d.ts +7 -2
- package/lib/core/hooks/use-active-heading.js +160 -23
- package/lib/core/hooks/use-active-section-id.d.ts +1 -1
- package/lib/core/hooks/use-active-section-id.js +2 -2
- package/lib/core/hooks/use-codeblock-tabs-controls.d.ts +2 -2
- package/lib/core/hooks/use-codeblock-tabs-controls.js +6 -6
- package/lib/core/hooks/use-local-state.d.ts +1 -0
- package/lib/core/hooks/use-local-state.js +32 -0
- package/lib/core/hooks/use-page-actions.d.ts +2 -0
- package/lib/core/hooks/use-page-actions.js +105 -0
- package/lib/core/hooks/use-theme-hooks.js +2 -0
- package/lib/core/styles/dark.js +13 -11
- package/lib/core/styles/global.js +40 -38
- package/lib/core/templates/Markdown.js +22 -12
- package/lib/core/types/catalog.d.ts +6 -2
- package/lib/core/types/hooks.d.ts +3 -2
- package/lib/core/types/index.d.ts +1 -0
- package/lib/core/types/index.js +1 -0
- package/lib/core/types/l10n.d.ts +1 -1
- package/lib/core/types/page-actions.d.ts +15 -0
- package/lib/core/types/page-actions.js +3 -0
- package/lib/core/types/search.d.ts +1 -1
- package/lib/core/types/sidebar.d.ts +1 -0
- package/lib/core/types/telemetry.d.ts +5 -20
- package/lib/core/utils/download-code-walkthrough.js +37 -7
- package/lib/core/utils/enhanced-smoothstep.d.ts +5 -0
- package/lib/core/utils/enhanced-smoothstep.js +15 -0
- package/lib/core/utils/get-file-icon.d.ts +3 -2
- package/lib/core/utils/get-file-icon.js +119 -29
- package/lib/core/utils/icon-resolver.d.ts +28 -0
- package/lib/core/utils/icon-resolver.js +52 -0
- package/lib/core/utils/index.d.ts +4 -1
- package/lib/core/utils/index.js +4 -1
- package/lib/core/utils/lang-to-name.d.ts +1 -0
- package/lib/core/utils/lang-to-name.js +37 -0
- package/lib/core/utils/{text-transform.js → string.js} +1 -1
- package/lib/ext/configure.d.ts +1 -1
- package/lib/icons/AddIcon/AddIcon.d.ts +1 -1
- package/lib/icons/AddIcon/AddIcon.js +1 -1
- package/lib/icons/AiStarsGradientIcon/AiStarsGradientIcon.d.ts +1 -1
- package/lib/icons/AiStarsGradientIcon/AiStarsGradientIcon.js +1 -1
- package/lib/icons/AiStarsIcon/AiStarsIcon.d.ts +1 -1
- package/lib/icons/AiStarsIcon/AiStarsIcon.js +1 -1
- package/lib/icons/ArrowDownIcon/ArrowDownIcon.d.ts +1 -1
- package/lib/icons/ArrowDownIcon/ArrowDownIcon.js +1 -1
- package/lib/icons/ArrowLeftIcon/ArrowLeftIcon.d.ts +1 -1
- package/lib/icons/ArrowLeftIcon/ArrowLeftIcon.js +1 -1
- package/lib/icons/ArrowRightIcon/ArrowRightIcon.d.ts +1 -1
- package/lib/icons/ArrowRightIcon/ArrowRightIcon.js +1 -1
- package/lib/icons/ArrowUpRightIcon/ArrowUpRightIcon.d.ts +1 -1
- package/lib/icons/ArrowUpRightIcon/ArrowUpRightIcon.js +1 -1
- package/lib/icons/AscSortIcon/AscSortIcon.d.ts +1 -1
- package/lib/icons/AscSortIcon/AscSortIcon.js +1 -1
- package/lib/icons/BareMetalServerIcon/BareMetalServerIcon.d.ts +1 -1
- package/lib/icons/BareMetalServerIcon/BareMetalServerIcon.js +1 -1
- package/lib/icons/BookmarkAddIcon/BookmarkAddIcon.d.ts +1 -1
- package/lib/icons/BookmarkAddIcon/BookmarkAddIcon.js +1 -1
- package/lib/icons/CDNIcon/CDNIcon.d.ts +14 -0
- package/lib/icons/CDNIcon/CDNIcon.js +48 -0
- package/lib/icons/CardsIcon/CardsIcon.d.ts +1 -1
- package/lib/icons/CardsIcon/CardsIcon.js +1 -1
- package/lib/icons/CaretDownIcon/CaretDownIcon.d.ts +1 -1
- package/lib/icons/CaretDownIcon/CaretDownIcon.js +1 -1
- package/lib/icons/CaretUpIcon/CaretUpIcon.d.ts +1 -1
- package/lib/icons/CaretUpIcon/CaretUpIcon.js +1 -1
- package/lib/icons/CertificateIcon/CertificateIcon.d.ts +1 -1
- package/lib/icons/CertificateIcon/CertificateIcon.js +1 -1
- package/lib/icons/CharacterIcon/CharacterIcon.d.ts +1 -1
- package/lib/icons/CharacterIcon/CharacterIcon.js +1 -1
- package/lib/icons/ChatGptIcon/ChatGptIcon.d.ts +9 -0
- package/lib/icons/ChatGptIcon/ChatGptIcon.js +22 -0
- package/lib/icons/ChatIcon/ChatIcon.d.ts +1 -1
- package/lib/icons/ChatIcon/ChatIcon.js +1 -1
- package/lib/icons/CheckboxFilledIcon/CheckboxFilledIcon.d.ts +1 -1
- package/lib/icons/CheckboxFilledIcon/CheckboxFilledIcon.js +1 -1
- package/lib/icons/CheckmarkFilledIcon/CheckmarkFilledIcon.d.ts +1 -1
- package/lib/icons/CheckmarkFilledIcon/CheckmarkFilledIcon.js +1 -1
- package/lib/icons/CheckmarkIcon/CheckmarkIcon.d.ts +1 -1
- package/lib/icons/CheckmarkIcon/CheckmarkIcon.js +1 -1
- package/lib/icons/CheckmarkOutlineIcon/CheckmarkOutlineIcon.d.ts +9 -0
- package/lib/icons/CheckmarkOutlineIcon/CheckmarkOutlineIcon.js +23 -0
- package/lib/icons/ChevronDownIcon/ChevronDownIcon.d.ts +1 -1
- package/lib/icons/ChevronDownIcon/ChevronDownIcon.js +1 -1
- package/lib/icons/ChevronLeftIcon/ChevronLeftIcon.d.ts +1 -1
- package/lib/icons/ChevronLeftIcon/ChevronLeftIcon.js +1 -1
- package/lib/icons/ChevronRightIcon/ChevronRightIcon.d.ts +1 -1
- package/lib/icons/ChevronRightIcon/ChevronRightIcon.js +1 -1
- package/lib/icons/ChevronSortIcon/ChevronSortIcon.js +1 -1
- package/lib/icons/ChevronUpIcon/ChevronUpIcon.d.ts +1 -1
- package/lib/icons/ChevronUpIcon/ChevronUpIcon.js +1 -1
- package/lib/icons/CircleDashIcon/CircleDashIcon.d.ts +1 -1
- package/lib/icons/CircleDashIcon/CircleDashIcon.js +1 -1
- package/lib/icons/ClaudeIcon/ClaudeIcon.d.ts +9 -0
- package/lib/icons/ClaudeIcon/ClaudeIcon.js +22 -0
- package/lib/icons/CleanIcon/CleanIcon.d.ts +1 -1
- package/lib/icons/CleanIcon/CleanIcon.js +1 -1
- package/lib/icons/CloseFilledIcon/CloseFilledIcon.d.ts +1 -1
- package/lib/icons/CloseFilledIcon/CloseFilledIcon.js +1 -1
- package/lib/icons/CloseIcon/CloseIcon.d.ts +1 -1
- package/lib/icons/CloseIcon/CloseIcon.js +1 -1
- package/lib/icons/CloseOutlineIcon/CloseOutlineIcon.d.ts +1 -1
- package/lib/icons/CloseOutlineIcon/CloseOutlineIcon.js +1 -1
- package/lib/icons/CloudUploadIcon/CloudUploadIcon.d.ts +1 -1
- package/lib/icons/CloudUploadIcon/CloudUploadIcon.js +1 -1
- package/lib/icons/CodeIcon/CodeIcon.d.ts +1 -1
- package/lib/icons/CodeIcon/CodeIcon.js +1 -1
- package/lib/icons/ContrastIcon/ContrastIcon.d.ts +1 -1
- package/lib/icons/ContrastIcon/ContrastIcon.js +1 -1
- package/lib/icons/CookieIcon/CookieIcon.d.ts +1 -1
- package/lib/icons/CookieIcon/CookieIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +1 -1
- package/lib/icons/CopyIcon/CopyIcon.js +1 -1
- package/lib/icons/CopyLinkIcon/CopyLinkIcon.d.ts +1 -1
- package/lib/icons/CopyLinkIcon/CopyLinkIcon.js +1 -1
- package/lib/icons/CurveAutoColonIcon/CurveAutoColonIcon.d.ts +1 -1
- package/lib/icons/CurveAutoColonIcon/CurveAutoColonIcon.js +1 -1
- package/lib/icons/DataFormatIcon/DataFormatIcon.d.ts +1 -1
- package/lib/icons/DataFormatIcon/DataFormatIcon.js +1 -1
- package/lib/icons/DataRefineryIcon/DataRefineryIcon.d.ts +1 -1
- package/lib/icons/DataRefineryIcon/DataRefineryIcon.js +1 -1
- package/lib/icons/DatabaseIcon/DatabaseIcon.d.ts +1 -1
- package/lib/icons/DatabaseIcon/DatabaseIcon.js +1 -1
- package/lib/icons/DescSortIcon/DescSortIcon.d.ts +1 -1
- package/lib/icons/DescSortIcon/DescSortIcon.js +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +1 -1
- package/lib/icons/DocumentAddIcon/DocumentAddIcon.d.ts +1 -1
- package/lib/icons/DocumentAddIcon/DocumentAddIcon.js +1 -1
- package/lib/icons/DocumentBlankIcon/DocumentBlankIcon.d.ts +1 -1
- package/lib/icons/DocumentBlankIcon/DocumentBlankIcon.js +1 -1
- package/lib/icons/DocumentCssIcon/DocumentCssIcon.d.ts +1 -1
- package/lib/icons/DocumentCssIcon/DocumentCssIcon.js +1 -1
- package/lib/icons/DocumentCssIcon/index.d.ts +1 -1
- package/lib/icons/DocumentCssIcon/index.js +1 -1
- package/lib/icons/DocumentGraphqlIcon/DocumentGraphqlIcon.d.ts +1 -1
- package/lib/icons/DocumentGraphqlIcon/DocumentGraphqlIcon.js +1 -1
- package/lib/icons/DocumentGraphqlIcon/index.d.ts +1 -1
- package/lib/icons/DocumentGraphqlIcon/index.js +1 -1
- package/lib/icons/DocumentHtmlIcon/DocumentHtmlIcon.d.ts +1 -1
- package/lib/icons/DocumentHtmlIcon/DocumentHtmlIcon.js +1 -1
- package/lib/icons/DocumentHtmlIcon/index.d.ts +1 -1
- package/lib/icons/DocumentHtmlIcon/index.js +1 -1
- package/lib/icons/DocumentIcon/DocumentIcon.d.ts +1 -1
- package/lib/icons/DocumentIcon/DocumentIcon.js +1 -1
- package/lib/icons/DocumentIcon/index.d.ts +1 -1
- package/lib/icons/DocumentIcon/index.js +1 -1
- package/lib/icons/DocumentJavaIcon/DocumentJavaIcon.d.ts +1 -1
- package/lib/icons/DocumentJavaIcon/DocumentJavaIcon.js +1 -1
- package/lib/icons/DocumentJavaIcon/index.d.ts +1 -1
- package/lib/icons/DocumentJavaIcon/index.js +1 -1
- package/lib/icons/DocumentJsIcon/DocumentJsIcon.d.ts +1 -1
- package/lib/icons/DocumentJsIcon/DocumentJsIcon.js +1 -1
- package/lib/icons/DocumentJsIcon/index.d.ts +1 -1
- package/lib/icons/DocumentJsIcon/index.js +1 -1
- package/lib/icons/DocumentJsonIcon/DocumentJsonIcon.d.ts +1 -1
- package/lib/icons/DocumentJsonIcon/DocumentJsonIcon.js +1 -1
- package/lib/icons/DocumentJsonIcon/index.d.ts +1 -1
- package/lib/icons/DocumentJsonIcon/index.js +1 -1
- package/lib/icons/DocumentMarkdownIcon/DocumentMarkdownIcon.d.ts +1 -1
- package/lib/icons/DocumentMarkdownIcon/DocumentMarkdownIcon.js +1 -1
- package/lib/icons/DocumentMarkdownIcon/index.d.ts +1 -1
- package/lib/icons/DocumentMarkdownIcon/index.js +1 -1
- package/lib/icons/DocumentPythonIcon/DocumentPythonIcon.d.ts +1 -1
- package/lib/icons/DocumentPythonIcon/DocumentPythonIcon.js +1 -1
- package/lib/icons/DocumentPythonIcon/index.d.ts +1 -1
- package/lib/icons/DocumentPythonIcon/index.js +1 -1
- package/lib/icons/DocumentReactIcon/DocumentReactIcon.d.ts +1 -1
- package/lib/icons/DocumentReactIcon/DocumentReactIcon.js +1 -1
- package/lib/icons/DocumentReactIcon/index.d.ts +1 -1
- package/lib/icons/DocumentReactIcon/index.js +1 -1
- package/lib/icons/DocumentShellIcon/DocumentShellIcon.d.ts +1 -1
- package/lib/icons/DocumentShellIcon/DocumentShellIcon.js +1 -1
- package/lib/icons/DocumentShellIcon/index.d.ts +1 -1
- package/lib/icons/DocumentShellIcon/index.js +1 -1
- package/lib/icons/DocumentTsIcon/DocumentTsIcon.d.ts +1 -1
- package/lib/icons/DocumentTsIcon/DocumentTsIcon.js +1 -1
- package/lib/icons/DocumentTsIcon/index.d.ts +1 -1
- package/lib/icons/DocumentTsIcon/index.js +1 -1
- package/lib/icons/DocumentYamlIcon/DocumentYamlIcon.d.ts +1 -1
- package/lib/icons/DocumentYamlIcon/DocumentYamlIcon.js +1 -1
- package/lib/icons/DocumentYamlIcon/index.d.ts +1 -1
- package/lib/icons/DocumentYamlIcon/index.js +1 -1
- package/lib/icons/DownloadIcon/DownloadIcon.d.ts +1 -1
- package/lib/icons/DownloadIcon/DownloadIcon.js +1 -1
- package/lib/icons/DraggableIcon/DraggableIcon.d.ts +1 -1
- package/lib/icons/DraggableIcon/DraggableIcon.js +1 -1
- package/lib/icons/EditIcon/EditIcon.d.ts +1 -1
- package/lib/icons/EditIcon/EditIcon.js +1 -1
- package/lib/icons/EmailIcon/EmailIcon.d.ts +1 -1
- package/lib/icons/EmailIcon/EmailIcon.js +1 -1
- package/lib/icons/EntityTypeIcon/EntityTypeIcon.d.ts +1 -1
- package/lib/icons/EntityTypeIcon/EntityTypeIcon.js +1 -1
- package/lib/icons/ErrorFilledIcon/ErrorFilledIcon.d.ts +1 -1
- package/lib/icons/ErrorFilledIcon/ErrorFilledIcon.js +1 -1
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +1 -1
- package/lib/icons/ErrorIcon/ErrorIcon.js +1 -1
- package/lib/icons/ExportIcon/ExportIcon.d.ts +1 -1
- package/lib/icons/ExportIcon/ExportIcon.js +1 -1
- package/lib/icons/FaceDissatisfiedIcon/FaceDissatisfiedIcon.d.ts +1 -1
- package/lib/icons/FaceDissatisfiedIcon/FaceDissatisfiedIcon.js +1 -1
- package/lib/icons/FaceNeutralIcon/FaceNeutralIcon.d.ts +1 -1
- package/lib/icons/FaceNeutralIcon/FaceNeutralIcon.js +1 -1
- package/lib/icons/FaceSatisfiedIcon/FaceSatisfiedIcon.d.ts +1 -1
- package/lib/icons/FaceSatisfiedIcon/FaceSatisfiedIcon.js +1 -1
- package/lib/icons/FileIcon/FileIcon.d.ts +1 -1
- package/lib/icons/FileIcon/FileIcon.js +1 -1
- package/lib/icons/FileStorageIcon/FileStorageIcon.d.ts +1 -1
- package/lib/icons/FileStorageIcon/FileStorageIcon.js +1 -1
- package/lib/icons/FilterIcon/FilterIcon.d.ts +1 -1
- package/lib/icons/FilterIcon/FilterIcon.js +1 -1
- package/lib/icons/FlowIcon/FlowIcon.d.ts +1 -1
- package/lib/icons/FlowIcon/FlowIcon.js +1 -1
- package/lib/icons/FolderAddIcon/FolderAddIcon.d.ts +1 -1
- package/lib/icons/FolderAddIcon/FolderAddIcon.js +1 -1
- package/lib/icons/FolderIcon/FolderIcon.d.ts +1 -1
- package/lib/icons/FolderIcon/FolderIcon.js +1 -1
- package/lib/icons/FolderMoveToIcon/FolderMoveToIcon.d.ts +1 -1
- package/lib/icons/FolderMoveToIcon/FolderMoveToIcon.js +1 -1
- package/lib/icons/GenericIcon/GenericIcon.d.ts +11 -0
- package/lib/icons/GenericIcon/GenericIcon.js +76 -0
- package/lib/icons/GithubIcon/GithubIcon.d.ts +1 -1
- package/lib/icons/GithubIcon/GithubIcon.js +1 -1
- package/lib/icons/GlobalOutlinedIcon/GlobalOutlinedIcon.d.ts +1 -1
- package/lib/icons/GlobalOutlinedIcon/GlobalOutlinedIcon.js +1 -1
- package/lib/icons/GraphIcon/GraphIcon.d.ts +1 -1
- package/lib/icons/GraphIcon/GraphIcon.js +1 -1
- package/lib/icons/GraphqlIcon/GraphqlIcon.d.ts +9 -0
- package/lib/icons/GraphqlIcon/GraphqlIcon.js +36 -0
- package/lib/icons/GraphqlIcon/index.d.ts +1 -0
- package/lib/icons/GraphqlIcon/index.js +6 -0
- package/lib/icons/GridIcon/GridIcon.d.ts +1 -1
- package/lib/icons/GridIcon/GridIcon.js +1 -1
- package/lib/icons/HexagonIcon/HexagonIcon.d.ts +9 -0
- package/lib/icons/HexagonIcon/HexagonIcon.js +22 -0
- package/lib/icons/HorizontalViewIcon/HorizontalViewIcon.d.ts +1 -1
- package/lib/icons/HorizontalViewIcon/HorizontalViewIcon.js +1 -1
- package/lib/icons/IBMCloudHyperProtectCryptoServicesIcon/IBMCloudHyperProtectCryptoServicesIcon.d.ts +1 -1
- package/lib/icons/IBMCloudHyperProtectCryptoServicesIcon/IBMCloudHyperProtectCryptoServicesIcon.js +1 -1
- package/lib/icons/InformationFilledIcon/InformationFilledIcon.d.ts +1 -1
- package/lib/icons/InformationFilledIcon/InformationFilledIcon.js +1 -1
- package/lib/icons/InformationIcon/InformationIcon.d.ts +1 -1
- package/lib/icons/InformationIcon/InformationIcon.js +1 -1
- package/lib/icons/JsonIcon/JsonIcon.d.ts +1 -1
- package/lib/icons/JsonIcon/JsonIcon.js +1 -1
- package/lib/icons/KafkaIcon/KafkaIcon.d.ts +1 -1
- package/lib/icons/KafkaIcon/KafkaIcon.js +1 -1
- package/lib/icons/LaunchIcon/LaunchIcon.d.ts +1 -1
- package/lib/icons/LaunchIcon/LaunchIcon.js +1 -1
- package/lib/icons/LinkIcon/LinkIcon.d.ts +1 -1
- package/lib/icons/LinkIcon/LinkIcon.js +1 -1
- package/lib/icons/LogoutIcon/LogoutIcon.d.ts +1 -1
- package/lib/icons/LogoutIcon/LogoutIcon.js +1 -1
- package/lib/icons/MarkdownFullIcon/MarkdownFullIcon.d.ts +9 -0
- package/lib/icons/MarkdownFullIcon/MarkdownFullIcon.js +23 -0
- package/lib/icons/MaximizeIcon/MaximizeIcon.d.ts +1 -1
- package/lib/icons/MaximizeIcon/MaximizeIcon.js +1 -1
- package/lib/icons/MenuIcon/MenuIcon.d.ts +1 -1
- package/lib/icons/MenuIcon/MenuIcon.js +1 -1
- package/lib/icons/MinimizeIcon/MinimizeIcon.d.ts +1 -1
- package/lib/icons/MinimizeIcon/MinimizeIcon.js +1 -1
- package/lib/icons/MobileSidebarIcon/MobileSidebarIcon.d.ts +1 -1
- package/lib/icons/MobileSidebarIcon/MobileSidebarIcon.js +1 -1
- package/lib/icons/MoleculesIcon/MoleculesIcon.d.ts +9 -0
- package/lib/icons/MoleculesIcon/MoleculesIcon.js +22 -0
- package/lib/icons/MoonIcon/MoonIcon.d.ts +1 -1
- package/lib/icons/MoonIcon/MoonIcon.js +1 -1
- package/lib/icons/NetworkIcon/NetworkIcon.d.ts +9 -0
- package/lib/icons/NetworkIcon/NetworkIcon.js +23 -0
- package/lib/icons/NoneIcon/NoneIcon.d.ts +9 -0
- package/lib/icons/NoneIcon/NoneIcon.js +17 -0
- package/lib/icons/NotesIcon/NotesIcon.d.ts +9 -0
- package/lib/icons/NotesIcon/NotesIcon.js +26 -0
- package/lib/icons/OverflowMenuHorizontalIcon/OverflowMenuHorizontalIcon.d.ts +1 -1
- package/lib/icons/OverflowMenuHorizontalIcon/OverflowMenuHorizontalIcon.js +1 -1
- package/lib/icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon.d.ts +1 -1
- package/lib/icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon.js +1 -1
- package/lib/icons/PeopleIcon/PeopleIcon.d.ts +1 -1
- package/lib/icons/PeopleIcon/PeopleIcon.js +1 -1
- package/lib/icons/PlaylistIcon/PlaylistIcon.d.ts +1 -1
- package/lib/icons/PlaylistIcon/PlaylistIcon.js +1 -1
- package/lib/icons/PlusCustomIcon/PlusCustomIcon.d.ts +1 -1
- package/lib/icons/PlusCustomIcon/PlusCustomIcon.js +1 -1
- package/lib/icons/RabbitMQIcon/RabbitMQIcon.d.ts +1 -1
- package/lib/icons/RabbitMQIcon/RabbitMQIcon.js +1 -1
- package/lib/icons/RecentlyViewedIcon/RecentlyViewedIcon.d.ts +1 -1
- package/lib/icons/RecentlyViewedIcon/RecentlyViewedIcon.js +1 -1
- package/lib/icons/RenewIcon/RenewIcon.d.ts +1 -1
- package/lib/icons/RenewIcon/RenewIcon.js +1 -1
- package/lib/icons/ResetIcon/ResetIcon.d.ts +1 -1
- package/lib/icons/ResetIcon/ResetIcon.js +1 -1
- package/lib/icons/RestartIcon/RestartIcon.d.ts +1 -1
- package/lib/icons/RestartIcon/RestartIcon.js +1 -1
- package/lib/icons/ReturnKeyIcon/ReturnKeyIcon.d.ts +1 -1
- package/lib/icons/ReturnKeyIcon/ReturnKeyIcon.js +1 -1
- package/lib/icons/RocketIcon/RocketIcon.d.ts +1 -1
- package/lib/icons/RocketIcon/RocketIcon.js +1 -1
- package/lib/icons/SaveIcon/SaveIcon.d.ts +1 -1
- package/lib/icons/SaveIcon/SaveIcon.js +1 -1
- package/lib/icons/SearchIcon/SearchIcon.d.ts +1 -1
- package/lib/icons/SearchIcon/SearchIcon.js +1 -1
- package/lib/icons/SecurityIcon/SecurityIcon.d.ts +1 -1
- package/lib/icons/SecurityIcon/SecurityIcon.js +1 -1
- package/lib/icons/SelectIcon/SelectIcon.d.ts +1 -1
- package/lib/icons/SelectIcon/SelectIcon.js +1 -1
- package/lib/icons/SendIcon/SendIcon.d.ts +1 -1
- package/lib/icons/SendIcon/SendIcon.js +1 -1
- package/lib/icons/SettingsCogIcon/SettingsCogIcon.d.ts +1 -1
- package/lib/icons/SettingsCogIcon/SettingsCogIcon.js +1 -1
- package/lib/icons/SettingsIcon/SettingsIcon.d.ts +1 -1
- package/lib/icons/SettingsIcon/SettingsIcon.js +1 -1
- package/lib/icons/SidePanelCloseIcon/SidePanelCloseIcon.d.ts +1 -1
- package/lib/icons/SidePanelCloseIcon/SidePanelCloseIcon.js +1 -1
- package/lib/icons/SidePanelOpenIcon/SidePanelOpenIcon.d.ts +1 -1
- package/lib/icons/SidePanelOpenIcon/SidePanelOpenIcon.js +1 -1
- package/lib/icons/SlackIcon/SlackIcon.d.ts +1 -1
- package/lib/icons/SlackIcon/SlackIcon.js +1 -1
- package/lib/icons/SortIcon/SortIcon.d.ts +1 -1
- package/lib/icons/SortIcon/SortIcon.js +1 -1
- package/lib/icons/Spinner/Spinner.d.ts +1 -1
- package/lib/icons/Spinner/Spinner.js +18 -8
- package/lib/icons/SpinnerIcon/SpinnerIcon.d.ts +1 -1
- package/lib/icons/SpinnerIcon/SpinnerIcon.js +1 -1
- package/lib/icons/StarFilledIcon/StarFilledIcon.d.ts +1 -1
- package/lib/icons/StarFilledIcon/StarFilledIcon.js +1 -1
- package/lib/icons/StarIcon/StarIcon.d.ts +1 -1
- package/lib/icons/StarIcon/StarIcon.js +1 -1
- package/lib/icons/SubtractIcon/SubtractIcon.d.ts +1 -1
- package/lib/icons/SubtractIcon/SubtractIcon.js +1 -1
- package/lib/icons/SunIcon/SunIcon.d.ts +1 -1
- package/lib/icons/SunIcon/SunIcon.js +1 -1
- package/lib/icons/TableBuiltIcon/TableBuiltIcon.d.ts +1 -1
- package/lib/icons/TableBuiltIcon/TableBuiltIcon.js +1 -1
- package/lib/icons/TableIcon/TableIcon.d.ts +1 -1
- package/lib/icons/TableIcon/TableIcon.js +1 -1
- package/lib/icons/TagsIcon/TagsIcon.d.ts +1 -1
- package/lib/icons/TagsIcon/TagsIcon.js +1 -1
- package/lib/icons/TaskViewIcon/TaskViewIcon.d.ts +1 -1
- package/lib/icons/TaskViewIcon/TaskViewIcon.js +1 -1
- package/lib/icons/TimeIcon/TimeIcon.d.ts +1 -1
- package/lib/icons/TimeIcon/TimeIcon.js +1 -1
- package/lib/icons/TrashCanIcon/TrashCanIcon.d.ts +1 -1
- package/lib/icons/TrashCanIcon/TrashCanIcon.js +1 -1
- package/lib/icons/UserIcon/UserIcon.d.ts +1 -1
- package/lib/icons/UserIcon/UserIcon.js +1 -1
- package/lib/icons/ValueVariableIcon/ValueVariableIcon.d.ts +1 -1
- package/lib/icons/ValueVariableIcon/ValueVariableIcon.js +1 -1
- package/lib/icons/VerticalViewIcon/VerticalViewIcon.d.ts +1 -1
- package/lib/icons/VerticalViewIcon/VerticalViewIcon.js +1 -1
- package/lib/icons/ViewIcon/ViewIcon.d.ts +1 -1
- package/lib/icons/ViewIcon/ViewIcon.js +1 -1
- package/lib/icons/ViewOffIcon/ViewOffIcon.d.ts +1 -1
- package/lib/icons/ViewOffIcon/ViewOffIcon.js +1 -1
- package/lib/icons/WarningAltFilled/WarningAltFilled.d.ts +1 -1
- package/lib/icons/WarningAltFilled/WarningAltFilled.js +1 -1
- package/lib/icons/WarningAltFilledIcon/WarningAltFilledIcon.d.ts +1 -1
- package/lib/icons/WarningAltFilledIcon/WarningAltFilledIcon.js +1 -1
- package/lib/icons/WarningAltIcon/WarningAltIcon.d.ts +1 -1
- package/lib/icons/WarningAltIcon/WarningAltIcon.js +1 -1
- package/lib/icons/WarningFilledIcon/WarningFilledIcon.d.ts +1 -1
- package/lib/icons/WarningFilledIcon/WarningFilledIcon.js +1 -1
- package/lib/icons/WarningSquareIcon/WarningSquareIcon.d.ts +1 -1
- package/lib/icons/WarningSquareIcon/WarningSquareIcon.js +1 -1
- package/lib/icons/WorkflowAutomationIcon/WorkflowAutomationIcon.d.ts +1 -1
- package/lib/icons/WorkflowAutomationIcon/WorkflowAutomationIcon.js +1 -1
- package/lib/icons/types.d.ts +6 -0
- package/lib/index.d.ts +267 -261
- package/lib/index.js +284 -268
- package/lib/layouts/CodeWalkthroughLayout.js +2 -2
- package/lib/layouts/DocumentationLayout.js +19 -15
- package/lib/layouts/Forbidden.js +2 -2
- package/lib/layouts/InternalServerErrorLayout.js +3 -3
- package/lib/layouts/NotFound.js +3 -3
- package/lib/layouts/OIDCForbidden.js +18 -8
- package/lib/layouts/PageLayout.js +2 -2
- package/lib/layouts/RootLayout.js +3 -3
- package/lib/layouts/ThreePanelLayout.js +18 -8
- package/lib/markdoc/components/Admonition/Admonition.d.ts +1 -1
- package/lib/markdoc/components/Admonition/Admonition.js +1 -1
- package/lib/markdoc/components/Cards/Card.js +4 -4
- package/lib/markdoc/components/Cards/CardIcon.js +7 -19
- package/lib/markdoc/components/Cards/Cards.js +17 -7
- package/lib/markdoc/components/CodeBlock/CodeBlock.d.ts +1 -1
- package/lib/markdoc/components/CodeBlock/CodeBlock.js +1 -1
- package/lib/markdoc/components/CodeGroup/CodeGroup.d.ts +4 -0
- package/lib/markdoc/components/CodeGroup/CodeGroup.js +82 -0
- package/lib/markdoc/components/CodeWalkthrough/CodeContainer.js +19 -9
- package/lib/markdoc/components/CodeWalkthrough/CodeFilters.js +1 -1
- package/lib/markdoc/components/CodeWalkthrough/CodePanel.js +23 -13
- package/lib/markdoc/components/CodeWalkthrough/CodePanelHeader.js +31 -18
- package/lib/markdoc/components/CodeWalkthrough/CodePanelPreview.js +20 -10
- package/lib/markdoc/components/CodeWalkthrough/CodePanelToolbar.js +19 -9
- package/lib/markdoc/components/CodeWalkthrough/CodeStep.js +19 -9
- package/lib/markdoc/components/CodeWalkthrough/CodeToggle.js +20 -10
- package/lib/markdoc/components/CodeWalkthrough/CodeWalkthrough.js +21 -11
- package/lib/markdoc/components/CodeWalkthrough/Input.js +18 -8
- package/lib/markdoc/components/Heading/Heading.d.ts +2 -1
- package/lib/markdoc/components/Heading/Heading.js +39 -11
- package/lib/markdoc/components/HtmlBlock/HtmlBlock.js +17 -7
- package/lib/markdoc/components/Icon/Icon.d.ts +3 -0
- package/lib/markdoc/components/Icon/Icon.js +29 -0
- package/lib/markdoc/components/Image/Image.d.ts +1 -1
- package/lib/markdoc/components/Image/Image.js +1 -1
- package/lib/markdoc/components/InlineSvg/InlineSvg.js +17 -7
- package/lib/markdoc/components/MarkdocExample/MarkdocExample.js +18 -8
- package/lib/markdoc/components/Mermaid/Mermaid.js +1 -1
- package/lib/markdoc/components/Tabs/Tab.d.ts +3 -2
- package/lib/markdoc/components/Tabs/Tab.js +6 -3
- package/lib/markdoc/components/Tabs/TabList.d.ts +2 -2
- package/lib/markdoc/components/Tabs/TabList.js +22 -12
- package/lib/markdoc/components/Tabs/Tabs.d.ts +1 -1
- package/lib/markdoc/components/Tabs/Tabs.js +19 -9
- package/lib/markdoc/components/Tabs/variables.js +2 -0
- package/lib/markdoc/components/default.d.ts +22 -20
- package/lib/markdoc/components/default.js +22 -20
- package/lib/markdoc/default.d.ts +6 -6
- package/lib/markdoc/default.js +43 -29
- package/lib/markdoc/tags/admonition.d.ts +1 -1
- package/lib/markdoc/tags/card.d.ts +1 -1
- package/lib/markdoc/tags/card.js +2 -2
- package/lib/markdoc/tags/cards.d.ts +1 -1
- package/lib/markdoc/tags/code-group.d.ts +2 -0
- package/lib/markdoc/tags/code-group.js +23 -0
- package/lib/markdoc/tags/code-snippet.d.ts +1 -1
- package/lib/markdoc/tags/code-snippet.js +2 -2
- package/lib/markdoc/tags/code-step.d.ts +1 -1
- package/lib/markdoc/tags/code-toggle.d.ts +1 -1
- package/lib/markdoc/tags/code-walkthrough.d.ts +1 -1
- package/lib/markdoc/tags/code-walkthrough.js +3 -3
- package/lib/markdoc/tags/debug.d.ts +1 -1
- package/lib/markdoc/tags/html.d.ts +1 -1
- package/lib/markdoc/tags/icon.d.ts +2 -0
- package/lib/markdoc/tags/icon.js +16 -0
- package/lib/markdoc/tags/img.d.ts +1 -1
- package/lib/markdoc/tags/inline-svg.d.ts +1 -1
- package/lib/markdoc/tags/inline-svg.js +1 -1
- package/lib/markdoc/tags/input.d.ts +1 -1
- package/lib/markdoc/tags/markdoc-example.d.ts +1 -1
- package/lib/markdoc/tags/partial.d.ts +1 -1
- package/lib/markdoc/tags/partial.js +2 -2
- package/lib/markdoc/tags/tab.d.ts +1 -1
- package/lib/markdoc/tags/tab.js +1 -0
- package/lib/markdoc/tags/tabs.d.ts +1 -1
- package/lib/markdoc/tags/tabs.js +1 -1
- package/package.json +4 -4
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
- package/src/components/Button/Button.tsx +4 -2
- package/src/components/Button/ButtonGroup.tsx +53 -0
- package/src/components/Button/variables.ts +32 -5
- package/src/components/Catalog/Catalog.tsx +1 -1
- package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +12 -6
- package/src/components/Catalog/CatalogEntitiesEmptyState.tsx +38 -4
- package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +25 -17
- package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +25 -9
- package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +12 -15
- package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +39 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +61 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.tsx +12 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +7 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +15 -4
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +5 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +2 -3
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +11 -3
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +37 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.tsx +1 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +2 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +7 -23
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +5 -6
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +21 -13
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +9 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +52 -0
- package/src/components/Catalog/CatalogEntityIcon.tsx +33 -33
- package/src/components/Catalog/CatalogEntityTypeIcon.tsx +23 -28
- package/src/components/Catalog/CatalogEntityTypeTag.tsx +49 -0
- package/src/components/Catalog/CatalogPageDescription.tsx +5 -4
- package/src/components/Catalog/CatalogSelector.tsx +3 -1
- package/src/components/Catalog/CatalogSortButton.tsx +19 -20
- package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +1 -0
- package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +3 -17
- package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +1 -0
- package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +5 -8
- package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +6 -36
- package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +18 -46
- package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +1 -0
- package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +9 -4
- package/src/components/Catalog/CatalogTagsWithTooltip.tsx +9 -5
- package/src/components/Catalog/CatalogViewModeToggle.tsx +1 -1
- package/src/components/Catalog/variables.ts +42 -8
- package/src/components/CodeBlock/CodeBlock.tsx +15 -5
- package/src/components/CodeBlock/CodeBlockControls.tsx +67 -26
- package/src/components/CodeBlock/CodeBlockDropdown.tsx +53 -0
- package/src/components/CodeBlock/CodeBlockTabs.tsx +29 -20
- package/src/components/CodeBlock/variables.ts +1 -1
- package/src/components/Dropdown/Dropdown.tsx +1 -0
- package/src/components/Dropdown/DropdownMenu.tsx +4 -0
- package/src/components/Dropdown/variables.ts +1 -0
- package/src/components/Feedback/Feedback.tsx +1 -1
- package/src/components/Filter/FilterCheckboxes.tsx +9 -2
- package/src/components/Footer/FooterItem.tsx +5 -12
- package/src/components/Footer/variables.ts +2 -2
- package/src/components/Image/Image.tsx +2 -0
- package/src/components/Markdown/Markdown.tsx +3 -3
- package/src/components/Markdown/styles/headingAnchor.ts +0 -1
- package/src/components/Menu/MenuItem.tsx +5 -5
- package/src/components/Menu/variables.ts +3 -1
- package/src/components/Navbar/NavbarItem.tsx +8 -17
- package/src/components/Navbar/variables.ts +2 -2
- package/src/components/PageActions/PageActions.tsx +110 -0
- package/src/components/PageActions/PageActionsMenuItem.tsx +73 -0
- package/src/components/PageActions/variables.dark.ts +6 -0
- package/src/components/PageActions/variables.ts +34 -0
- package/src/components/Search/SearchDialog.tsx +2 -2
- package/src/components/Select/variables.ts +2 -2
- package/src/components/TableOfContent/TableOfContent.tsx +33 -36
- package/src/components/Tag/Tag.tsx +11 -2
- package/src/components/Tag/variables.ts +14 -0
- package/src/core/constants/catalog.ts +1 -1
- package/src/core/constants/common.ts +4 -0
- package/src/core/contexts/CodeSnippetContext.tsx +31 -0
- package/src/core/contexts/index.ts +1 -0
- package/src/core/hooks/__mocks__/use-theme-hooks.ts +1 -0
- package/src/core/hooks/code-walkthrough/use-renderable-files.ts +3 -4
- package/src/core/hooks/index.ts +1 -0
- package/src/core/hooks/use-active-heading.ts +199 -28
- package/src/core/hooks/use-active-section-id.ts +2 -1
- package/src/core/hooks/use-codeblock-tabs-controls.ts +8 -8
- package/src/core/hooks/use-local-state.ts +30 -0
- package/src/core/hooks/use-page-actions.ts +119 -0
- package/src/core/hooks/use-theme-hooks.ts +2 -0
- package/src/core/styles/dark.ts +2 -1
- package/src/core/styles/global.ts +2 -0
- package/src/core/types/catalog.ts +5 -1
- package/src/core/types/hooks.ts +2 -0
- package/src/core/types/index.ts +1 -0
- package/src/core/types/l10n.ts +21 -0
- package/src/core/types/page-actions.ts +18 -0
- package/src/core/types/sidebar.ts +1 -0
- package/src/core/types/telemetry.ts +5 -13
- package/src/core/utils/download-code-walkthrough.ts +5 -4
- package/src/core/utils/enhanced-smoothstep.ts +14 -0
- package/src/core/utils/get-file-icon.tsx +94 -0
- package/src/core/utils/icon-resolver.ts +57 -0
- package/src/core/utils/index.ts +4 -1
- package/src/core/utils/lang-to-name.ts +35 -0
- package/src/ext/configure.ts +1 -1
- package/src/icons/CDNIcon/CDNIcon.tsx +47 -0
- package/src/icons/ChatGptIcon/ChatGptIcon.tsx +23 -0
- package/src/icons/CheckmarkOutlineIcon/CheckmarkOutlineIcon.tsx +24 -0
- package/src/icons/ClaudeIcon/ClaudeIcon.tsx +23 -0
- package/src/icons/GenericIcon/GenericIcon.tsx +78 -0
- package/src/icons/GraphqlIcon/GraphqlIcon.tsx +81 -0
- package/src/icons/GraphqlIcon/index.ts +1 -0
- package/src/icons/HexagonIcon/HexagonIcon.tsx +23 -0
- package/src/icons/MarkdownFullIcon/MarkdownFullIcon.tsx +24 -0
- package/src/icons/MoleculesIcon/MoleculesIcon.tsx +23 -0
- package/src/icons/NetworkIcon/NetworkIcon.tsx +31 -0
- package/src/icons/NoneIcon/NoneIcon.tsx +17 -0
- package/src/icons/NotesIcon/NotesIcon.tsx +43 -0
- package/src/icons/types.ts +7 -0
- package/src/index.ts +7 -1
- package/src/layouts/CodeWalkthroughLayout.tsx +1 -1
- package/src/layouts/DocumentationLayout.tsx +23 -13
- package/src/markdoc/components/Cards/CardIcon.tsx +6 -21
- package/src/markdoc/components/CodeGroup/CodeGroup.tsx +78 -0
- package/src/markdoc/components/CodeWalkthrough/CodePanelHeader.tsx +7 -4
- package/src/markdoc/components/Heading/Heading.tsx +22 -3
- package/src/markdoc/components/Icon/Icon.tsx +16 -0
- package/src/markdoc/components/Tabs/Tab.tsx +6 -1
- package/src/markdoc/components/Tabs/Tabs.tsx +1 -1
- package/src/markdoc/components/Tabs/variables.ts +2 -0
- package/src/markdoc/components/default.ts +2 -0
- package/src/markdoc/default.ts +4 -0
- package/src/markdoc/tags/card.ts +1 -1
- package/src/markdoc/tags/code-group.ts +21 -0
- package/src/markdoc/tags/code-snippet.ts +1 -1
- package/src/markdoc/tags/icon.ts +14 -0
- package/src/markdoc/tags/tab.ts +1 -0
- package/lib/components/OpenApiDocs/hooks/AfterOpenApiDescription.d.ts +0 -1
- package/lib/components/OpenApiDocs/hooks/AfterOpenApiDescription.js +0 -5
- package/lib/ext/process-scorecard.d.ts +0 -5
- package/lib/ext/process-scorecard.js +0 -11
- package/src/components/OpenApiDocs/hooks/AfterOpenApiDescription.tsx +0 -1
- package/src/core/utils/get-file-icon.ts +0 -42
- package/src/ext/process-scorecard.ts +0 -13
- /package/lib/core/utils/{text-transform.d.ts → string.d.ts} +0 -0
- /package/src/core/utils/{text-transform.ts → string.ts} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
import type { JSX } from 'react';
|
|
5
|
+
import type { ButtonSize } from '@redocly/theme/components/Button/Button';
|
|
6
|
+
|
|
7
|
+
type ButtonGroupVariant = 'outlined';
|
|
8
|
+
|
|
9
|
+
type ButtonGroupProps = {
|
|
10
|
+
variant?: ButtonGroupVariant;
|
|
11
|
+
size?: ButtonSize;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export function ButtonGroup(props: ButtonGroupProps): JSX.Element {
|
|
17
|
+
const { variant = 'outlined', className = '', children, size = 'medium' } = props;
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<ButtonGroupWrapper
|
|
21
|
+
data-component-name="Button/ButtonGroup"
|
|
22
|
+
className={`button-group-${variant} button-group-size-${size} ${className}`}
|
|
23
|
+
>
|
|
24
|
+
{children}
|
|
25
|
+
</ButtonGroupWrapper>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const ButtonGroupWrapper = styled.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
line-height: var(--button-line-height);
|
|
32
|
+
|
|
33
|
+
.button {
|
|
34
|
+
border-radius: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
& > .button:first-child,
|
|
38
|
+
*:first-child > .button {
|
|
39
|
+
border-top-left-radius: var(--button-border-radius);
|
|
40
|
+
border-bottom-left-radius: var(--button-border-radius);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
& > .button:last-child,
|
|
44
|
+
*:last-child > .button {
|
|
45
|
+
border-top-right-radius: var(--button-border-radius);
|
|
46
|
+
border-bottom-right-radius: var(--button-border-radius);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
& > .button:not(:first-child),
|
|
50
|
+
*:not(:first-child) > .button {
|
|
51
|
+
border-left: none;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
@@ -91,9 +91,12 @@ export const button = css`
|
|
|
91
91
|
* @tokens Button size
|
|
92
92
|
*/
|
|
93
93
|
|
|
94
|
-
.button-size-small
|
|
94
|
+
.button-size-small,
|
|
95
|
+
.button-group-size-small .button {
|
|
96
|
+
--button-font-size: var(--font-size-base);
|
|
95
97
|
--button-border-radius: var(--border-radius);
|
|
96
98
|
--button-padding: 1px var(--spacing-sm);
|
|
99
|
+
--button-line-height: var(--line-height-base);
|
|
97
100
|
|
|
98
101
|
--button-icon-size: 14px;
|
|
99
102
|
--button-icon-padding: 5px; /* Padding for small buttons with only icon */
|
|
@@ -101,11 +104,25 @@ export const button = css`
|
|
|
101
104
|
--button-icon-right-padding: 1px 10px 1px var(--spacing-sm); /* Padding for small buttons with icon on the right */
|
|
102
105
|
}
|
|
103
106
|
|
|
104
|
-
.button-size-
|
|
107
|
+
.button-size-medium,
|
|
108
|
+
.button-group-size-medium .button {
|
|
109
|
+
--button-font-size: var(--font-size-base);
|
|
110
|
+
--button-border-radius: var(--border-radius-md);
|
|
111
|
+
--button-padding: 5px var(--spacing-sm);
|
|
112
|
+
--button-line-height: var(--line-height-base);
|
|
113
|
+
|
|
114
|
+
--button-icon-size: 16px;
|
|
115
|
+
--button-icon-padding: var(--spacing-xs); /* Padding for buttons with only icon */
|
|
116
|
+
--button-icon-left-padding: 5px var(--spacing-base) 5px 14px; /* Padding for buttons with icon on the left */
|
|
117
|
+
--button-icon-right-padding: 5px 14px 5px var(--spacing-base); /* Padding for buttons with icon on the right */
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.button-size-large,
|
|
121
|
+
.button-group-size-large .button {
|
|
105
122
|
--button-font-size: var(--font-size-lg); // @presenter FontSize
|
|
106
|
-
--button-
|
|
107
|
-
--border-radius: var(--border-radius-lg);
|
|
123
|
+
--button-border-radius: var(--border-radius-md);
|
|
108
124
|
--button-padding: var(--spacing-xs) var(--spacing-md);
|
|
125
|
+
--button-line-height: var(--line-height-lg); // @presenter LineHeight
|
|
109
126
|
|
|
110
127
|
--button-icon-size: 18px;
|
|
111
128
|
--button-icon-padding: 11px; /* Padding for large buttons with only icon */
|
|
@@ -153,7 +170,8 @@ export const button = css`
|
|
|
153
170
|
--button-border-color-danger-pressed: transparent;
|
|
154
171
|
}
|
|
155
172
|
|
|
156
|
-
.button-variant-outlined
|
|
173
|
+
.button-variant-outlined,
|
|
174
|
+
.button-group-outlined .button {
|
|
157
175
|
--button-color: var(--button-content-color-custom); // @presenter Color
|
|
158
176
|
--button-color-hover: var(--button-content-color-custom-hover); // @presenter Color
|
|
159
177
|
--button-color-active: var(--button-content-color-custom-hover); // @presenter Color
|
|
@@ -163,6 +181,15 @@ export const button = css`
|
|
|
163
181
|
--button-bg-color-disabled: transparent; // @presenter Color
|
|
164
182
|
--button-border-width: 1px;
|
|
165
183
|
--button-border-width-disabled: 1px;
|
|
184
|
+
--button-bg-color: transparent; // @presenter Color
|
|
185
|
+
--button-border-color-disabled: var(--color-warm-grey-2); // @presenter Color
|
|
186
|
+
--button-border-color-danger: var(--color-raspberry-6); // @presenter Color
|
|
187
|
+
--button-border-color-danger-hover: var(--color-raspberry-7); // @presenter Color
|
|
188
|
+
--button-border-color-danger-pressed: var(--color-raspberry-8); // @presenter Color
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.button-group-outlined .button {
|
|
192
|
+
--button-bg-color-hover: var(--color-hover-base); // @presenter Color
|
|
166
193
|
}
|
|
167
194
|
|
|
168
195
|
.button-variant-text {
|
|
@@ -8,7 +8,7 @@ import { useThemeHooks } from '@redocly/theme/core/hooks';
|
|
|
8
8
|
import { H3 } from '@redocly/theme/components/Typography/H3';
|
|
9
9
|
import { FilterContent } from '@redocly/theme/components/Filter/FilterContent';
|
|
10
10
|
import { Sidebar, SidebarHeader } from '@redocly/theme/components/Sidebar/Sidebar';
|
|
11
|
-
import { CatalogSwitcherItem } from '@redocly/theme/core';
|
|
11
|
+
import { CatalogSwitcherItem } from '@redocly/theme/core/types/catalog';
|
|
12
12
|
import { CatalogSelector } from '@redocly/theme/components/Catalog/CatalogSelector';
|
|
13
13
|
import { SidebarActions } from '@redocly/theme/components/SidebarActions/SidebarActions';
|
|
14
14
|
import { CounterTag } from '@redocly/theme/components/Tags/CounterTag';
|
|
@@ -10,7 +10,8 @@ import { ArrowRightIcon } from '@redocly/theme/icons/ArrowRightIcon/ArrowRightIc
|
|
|
10
10
|
import { ArrowUpRightIcon } from '@redocly/theme/icons/ArrowUpRightIcon/ArrowUpRightIcon';
|
|
11
11
|
import { CatalogTagsWithTooltip } from '@redocly/theme/components/Catalog/CatalogTagsWithTooltip';
|
|
12
12
|
import { CatalogEntityIcon } from '@redocly/theme/components/Catalog/CatalogEntityIcon';
|
|
13
|
-
import { getPathPrefix } from '@redocly/theme/core';
|
|
13
|
+
import { getPathPrefix } from '@redocly/theme/core/utils';
|
|
14
|
+
import { TooltipComponent } from '@redocly/theme/components/Tooltip/Tooltip';
|
|
14
15
|
|
|
15
16
|
export type CatalogCardProps = {
|
|
16
17
|
entity: BffCatalogEntity;
|
|
@@ -34,9 +35,11 @@ export function CatalogCard({ entity, catalogConfig }: CatalogCardProps): JSX.El
|
|
|
34
35
|
>
|
|
35
36
|
<CardContent>
|
|
36
37
|
<CardHeader>
|
|
37
|
-
<
|
|
38
|
-
<
|
|
39
|
-
|
|
38
|
+
<TooltipComponent tip={entity.type} placement="bottom" className="catalog">
|
|
39
|
+
<HeaderIconWrapper>
|
|
40
|
+
<CatalogEntityIcon entityType={entity.type} defaultColor={true} />
|
|
41
|
+
</HeaderIconWrapper>
|
|
42
|
+
</TooltipComponent>
|
|
40
43
|
<CardTitle>
|
|
41
44
|
<CatalogHighlight>{entity.title}</CatalogHighlight>
|
|
42
45
|
</CardTitle>
|
|
@@ -57,6 +60,7 @@ export function CatalogCard({ entity, catalogConfig }: CatalogCardProps): JSX.El
|
|
|
57
60
|
backgroundColor: 'var(--catalog-card-icon-bg-color)',
|
|
58
61
|
},
|
|
59
62
|
icon: <GraphIcon color="var(--color-green-8)" />,
|
|
63
|
+
textTransform: 'none',
|
|
60
64
|
}}
|
|
61
65
|
/>
|
|
62
66
|
</MetadataColumn>
|
|
@@ -71,6 +75,7 @@ export function CatalogCard({ entity, catalogConfig }: CatalogCardProps): JSX.El
|
|
|
71
75
|
backgroundColor: 'var(--catalog-card-icon-bg-color)',
|
|
72
76
|
borderRadius: 'var(--border-radius-xl)',
|
|
73
77
|
},
|
|
78
|
+
textTransform: 'none',
|
|
74
79
|
}}
|
|
75
80
|
/>
|
|
76
81
|
</MetadataColumn>
|
|
@@ -89,6 +94,7 @@ export function CatalogCard({ entity, catalogConfig }: CatalogCardProps): JSX.El
|
|
|
89
94
|
},
|
|
90
95
|
borderless: true,
|
|
91
96
|
color: 'grey',
|
|
97
|
+
textTransform: 'none',
|
|
92
98
|
}}
|
|
93
99
|
itemsToShow={3}
|
|
94
100
|
/>
|
|
@@ -163,6 +169,7 @@ const CardContent = styled.div`
|
|
|
163
169
|
`;
|
|
164
170
|
|
|
165
171
|
const CardFooter = styled.div`
|
|
172
|
+
height: var(--catalog-card-footer-height);
|
|
166
173
|
display: flex;
|
|
167
174
|
align-items: center;
|
|
168
175
|
justify-content: space-between;
|
|
@@ -176,8 +183,7 @@ const Divider = styled.div`
|
|
|
176
183
|
`;
|
|
177
184
|
|
|
178
185
|
const CatalogCardWrapper = styled.div`
|
|
179
|
-
|
|
180
|
-
height: 100%;
|
|
186
|
+
height: var(--catalog-card-height);
|
|
181
187
|
color: var(--catalog-card-text-color);
|
|
182
188
|
font-size: var(--catalog-card-font-size);
|
|
183
189
|
font-weight: var(--catalog-card-font-weight);
|
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
import React, { JSX } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
import { HexagonIcon } from '@redocly/theme/icons/HexagonIcon/HexagonIcon';
|
|
5
|
+
|
|
6
|
+
interface CatalogEntitiesEmptyStateProps {
|
|
7
|
+
listType?: 'default' | 'team';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function CatalogEntitiesEmptyState({
|
|
11
|
+
listType = 'default',
|
|
12
|
+
}: CatalogEntitiesEmptyStateProps): JSX.Element {
|
|
13
|
+
if (listType === 'team') {
|
|
14
|
+
return (
|
|
15
|
+
<EmptyStateWrapper data-component-name="Catalog/CatalogEntitiesEmptyState">
|
|
16
|
+
<EmptyStateIconWrapper>
|
|
17
|
+
<HexagonIcon size="21px" color="var(--color-warm-grey-7)" />
|
|
18
|
+
</EmptyStateIconWrapper>
|
|
19
|
+
<EmptyStateHeader>No team members yet</EmptyStateHeader>
|
|
20
|
+
<EmptyStateText>Your team members will appear here</EmptyStateText>
|
|
21
|
+
<EmptyStateText>once they've been added to the team.</EmptyStateText>
|
|
22
|
+
</EmptyStateWrapper>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
5
25
|
return (
|
|
6
26
|
<EmptyStateWrapper data-component-name="Catalog/CatalogEntitiesEmptyState">
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
27
|
+
<EmptyStateIconWrapper>
|
|
28
|
+
<HexagonIcon size="21px" color="var(--color-warm-grey-7)" />
|
|
29
|
+
</EmptyStateIconWrapper>
|
|
30
|
+
<EmptyStateHeader>No entities found</EmptyStateHeader>
|
|
31
|
+
<EmptyStateText>Try adjusting your search criteria or</EmptyStateText>
|
|
32
|
+
<EmptyStateText>check back later for new additions.</EmptyStateText>
|
|
10
33
|
</EmptyStateWrapper>
|
|
11
34
|
);
|
|
12
35
|
}
|
|
@@ -21,6 +44,17 @@ const EmptyStateWrapper = styled.div`
|
|
|
21
44
|
min-height: var(--catalog-empty-state-min-height);
|
|
22
45
|
`;
|
|
23
46
|
|
|
47
|
+
const EmptyStateIconWrapper = styled.div`
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
background-color: var(--color-warm-grey-2);
|
|
52
|
+
width: 40px;
|
|
53
|
+
height: 40px;
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
margin-bottom: var(--spacing-xxs);
|
|
56
|
+
`;
|
|
57
|
+
|
|
24
58
|
const EmptyStateHeader = styled.p`
|
|
25
59
|
color: var(--catalog-empty-state-header-text-color);
|
|
26
60
|
font-size: var(--catalog-empty-state-header-font-size);
|
|
@@ -16,16 +16,15 @@ import { Menu } from '@redocly/theme/components/Menu/Menu';
|
|
|
16
16
|
import { Button } from '@redocly/theme/components/Button/Button';
|
|
17
17
|
import { CatalogEntityRelations } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations';
|
|
18
18
|
import { useThemeHooks } from '@redocly/theme/core/hooks';
|
|
19
|
-
|
|
20
|
-
import {
|
|
19
|
+
import { SidebarActions } from '@redocly/theme/components/SidebarActions/SidebarActions';
|
|
20
|
+
import { CatalogEntitySchema } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntitySchema';
|
|
21
|
+
import { CatalogEntityMethodAndPath } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath';
|
|
21
22
|
|
|
22
23
|
export type CatalogEntityProps = {
|
|
23
24
|
entity: BffCatalogEntity;
|
|
24
25
|
entitiesCatalogConfig: EntitiesCatalogConfig;
|
|
25
26
|
catalogConfig: CatalogEntityConfig;
|
|
26
27
|
initialRelations: BffCatalogRelatedEntityList;
|
|
27
|
-
mainCatalogLabelTranslationKey?: string;
|
|
28
|
-
mainCatalogSlug?: string;
|
|
29
28
|
};
|
|
30
29
|
|
|
31
30
|
export function CatalogEntity({
|
|
@@ -33,16 +32,31 @@ export function CatalogEntity({
|
|
|
33
32
|
entitiesCatalogConfig,
|
|
34
33
|
catalogConfig,
|
|
35
34
|
initialRelations,
|
|
36
|
-
mainCatalogLabelTranslationKey,
|
|
37
|
-
mainCatalogSlug,
|
|
38
35
|
}: CatalogEntityProps) {
|
|
39
36
|
const { useTranslate, useCatalog } = useThemeHooks();
|
|
40
37
|
const { translate } = useTranslate();
|
|
41
38
|
const linkToMainCatalog = `catalogs/${catalogConfig.slug}`;
|
|
42
39
|
const linkToMainCatalogLabel = translate(catalogConfig.titleTranslationKey);
|
|
43
40
|
|
|
44
|
-
const {
|
|
45
|
-
|
|
41
|
+
const {
|
|
42
|
+
layout,
|
|
43
|
+
collapsedSidebar,
|
|
44
|
+
onChangeViewClick,
|
|
45
|
+
onChangeCollapseSidebarClick,
|
|
46
|
+
searchQuery,
|
|
47
|
+
setSearchQuery,
|
|
48
|
+
} = useCatalog();
|
|
49
|
+
|
|
50
|
+
const renderEntityContent = (): React.ReactElement => {
|
|
51
|
+
switch (entity.type) {
|
|
52
|
+
case 'data-schema':
|
|
53
|
+
return <CatalogEntitySchema entity={entity} />;
|
|
54
|
+
case 'api-operation':
|
|
55
|
+
return <CatalogEntityMethodAndPath entity={entity} />;
|
|
56
|
+
default:
|
|
57
|
+
return <CatalogEntityMetadata entity={entity} />;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
46
60
|
|
|
47
61
|
return (
|
|
48
62
|
<CatalogPageWrapper data-component-name="Catalog/CatalogEntity/CatalogEntity">
|
|
@@ -92,14 +106,6 @@ export function CatalogEntity({
|
|
|
92
106
|
<CatalogPageContent>
|
|
93
107
|
<Breadcrumbs
|
|
94
108
|
additionalBreadcrumbs={[
|
|
95
|
-
...(mainCatalogLabelTranslationKey
|
|
96
|
-
? [
|
|
97
|
-
{
|
|
98
|
-
label: translate(mainCatalogLabelTranslationKey),
|
|
99
|
-
link: `catalogs/${mainCatalogSlug}`,
|
|
100
|
-
},
|
|
101
|
-
]
|
|
102
|
-
: []),
|
|
103
109
|
{ label: linkToMainCatalogLabel, link: linkToMainCatalog },
|
|
104
110
|
{ label: entity.title },
|
|
105
111
|
]}
|
|
@@ -112,7 +118,7 @@ export function CatalogEntity({
|
|
|
112
118
|
/>
|
|
113
119
|
<CatalogEntityProperties entity={entity} />
|
|
114
120
|
<CatalogTwoColumnsSection>
|
|
115
|
-
|
|
121
|
+
{renderEntityContent()}
|
|
116
122
|
<CatalogEntityLinks entity={entity} />
|
|
117
123
|
</CatalogTwoColumnsSection>
|
|
118
124
|
<CatalogEntityRelations
|
|
@@ -120,6 +126,8 @@ export function CatalogEntity({
|
|
|
120
126
|
entitiesCatalogConfig={entitiesCatalogConfig}
|
|
121
127
|
catalogConfig={catalogConfig}
|
|
122
128
|
initialRelations={initialRelations}
|
|
129
|
+
searchQuery={searchQuery}
|
|
130
|
+
setSearchQuery={setSearchQuery}
|
|
123
131
|
/>
|
|
124
132
|
</CatalogEntityPageWrapper>
|
|
125
133
|
</CatalogPageContent>
|
|
@@ -3,31 +3,38 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
export type CatalogEntityInfoBarProps = {
|
|
5
5
|
leftContent: ReactNode;
|
|
6
|
-
rightContent
|
|
6
|
+
rightContent?: ReactNode;
|
|
7
7
|
withSeparator?: boolean;
|
|
8
|
+
hoverEffect?: boolean;
|
|
9
|
+
isCodeBlock?: boolean;
|
|
8
10
|
};
|
|
9
11
|
|
|
10
12
|
export function CatalogEntityInfoBar({
|
|
11
13
|
leftContent,
|
|
12
14
|
rightContent,
|
|
13
15
|
withSeparator = true,
|
|
16
|
+
hoverEffect = true,
|
|
17
|
+
isCodeBlock = false,
|
|
14
18
|
}: CatalogEntityInfoBarProps): JSX.Element {
|
|
15
19
|
return (
|
|
16
|
-
<InfoBarWrapper
|
|
20
|
+
<InfoBarWrapper
|
|
21
|
+
data-component-name="Catalog/CatalogEntity/CatalogEntityInfoBar"
|
|
22
|
+
hoverEffect={hoverEffect}
|
|
23
|
+
>
|
|
17
24
|
<LeftColumn withSeparator={withSeparator}>{leftContent}</LeftColumn>
|
|
18
|
-
<RightColumn>{rightContent}</RightColumn>
|
|
25
|
+
{rightContent && <RightColumn isCodeBlock={isCodeBlock}>{rightContent}</RightColumn>}
|
|
19
26
|
</InfoBarWrapper>
|
|
20
27
|
);
|
|
21
28
|
}
|
|
22
29
|
|
|
23
|
-
const InfoBarWrapper = styled.div
|
|
30
|
+
const InfoBarWrapper = styled.div<{ hoverEffect: boolean }>`
|
|
24
31
|
display: grid;
|
|
25
32
|
grid-template-columns: 1fr 1fr;
|
|
26
33
|
grid-template-areas: 'left right';
|
|
27
34
|
align-items: center;
|
|
28
35
|
|
|
29
36
|
color: var(--catalog-card-text-color, inherit);
|
|
30
|
-
background-color: var(--catalog-card-bg-color
|
|
37
|
+
background-color: var(--catalog-card-bg-color);
|
|
31
38
|
border: var(--catalog-card-border-width, 1px) var(--catalog-card-border-style)
|
|
32
39
|
var(--catalog-card-border-color);
|
|
33
40
|
border-radius: var(--catalog-card-border-radius);
|
|
@@ -35,9 +42,14 @@ const InfoBarWrapper = styled.div`
|
|
|
35
42
|
height: 100%;
|
|
36
43
|
padding: var(--catalog-card-gap);
|
|
37
44
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
${({ hoverEffect }) =>
|
|
46
|
+
hoverEffect &&
|
|
47
|
+
`
|
|
48
|
+
&:hover {
|
|
49
|
+
border-color: var(--catalog-card-border-color-hover);
|
|
50
|
+
background-color: var(--bg-color-active);
|
|
51
|
+
}
|
|
52
|
+
`}
|
|
41
53
|
`;
|
|
42
54
|
|
|
43
55
|
const LeftColumn = styled.div<{ withSeparator?: boolean }>`
|
|
@@ -49,12 +61,16 @@ const LeftColumn = styled.div<{ withSeparator?: boolean }>`
|
|
|
49
61
|
text-align: left;
|
|
50
62
|
border-right: ${({ withSeparator }) =>
|
|
51
63
|
withSeparator ? '1px solid var(--border-color-primary)' : 'none'};
|
|
64
|
+
height: 100%;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
52
67
|
`;
|
|
53
68
|
|
|
54
|
-
const RightColumn = styled.div
|
|
69
|
+
const RightColumn = styled.div<{ isCodeBlock?: boolean }>`
|
|
55
70
|
color: var(--catalog-metadata-value-color);
|
|
56
71
|
font-weight: var(--font-weight-medium);
|
|
57
72
|
grid-area: right;
|
|
58
73
|
justify-self: end;
|
|
59
74
|
text-align: right;
|
|
75
|
+
width: ${({ isCodeBlock }) => (isCodeBlock ? '100%' : 'auto')};
|
|
60
76
|
`;
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
import { BffCatalogEntity } from '@redocly/theme/core/types';
|
|
5
5
|
import { LaunchIcon } from '@redocly/theme/icons/LaunchIcon/LaunchIcon';
|
|
6
|
-
import {
|
|
6
|
+
import { LinkIcon } from '@redocly/theme/icons/LinkIcon/LinkIcon';
|
|
7
7
|
import { CatalogEntityInfoBar } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityInfoBar';
|
|
8
8
|
import { Link } from '@redocly/theme/components/Link/Link';
|
|
9
9
|
|
|
@@ -22,20 +22,17 @@ export function CatalogEntityLinks({ entity }: CatalogEntityLinksProps) {
|
|
|
22
22
|
<LinksWrapper data-component-name="Catalog/CatalogEntity/CatalogEntityLinks">
|
|
23
23
|
<Heading>Links</Heading>
|
|
24
24
|
{links.map(([key, value]) => (
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
withSeparator={false}
|
|
38
|
-
/>
|
|
25
|
+
<Link key={key} color="var(--catalog-metadata-link-color)" to={value.url} target="_blank">
|
|
26
|
+
<CatalogEntityInfoBar
|
|
27
|
+
leftContent={
|
|
28
|
+
<Label>
|
|
29
|
+
<LinkIcon /> {value.label}
|
|
30
|
+
</Label>
|
|
31
|
+
}
|
|
32
|
+
rightContent={<LaunchIcon />}
|
|
33
|
+
withSeparator={false}
|
|
34
|
+
/>
|
|
35
|
+
</Link>
|
|
39
36
|
))}
|
|
40
37
|
</LinksWrapper>
|
|
41
38
|
);
|
|
@@ -3,7 +3,8 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
import { BffCatalogEntity } from '@redocly/theme/core/types';
|
|
5
5
|
import { ChevronDownIcon } from '@redocly/theme/icons/ChevronDownIcon/ChevronDownIcon';
|
|
6
|
-
import {
|
|
6
|
+
import { JsonViewer } from '@redocly/theme/components/JsonViewer/JsonViewer';
|
|
7
|
+
import { capitalize, isPlainObject } from '@redocly/theme/core/utils';
|
|
7
8
|
import { useThemeHooks } from '@redocly/theme/core/hooks';
|
|
8
9
|
import { CatalogEntityInfoBar } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityInfoBar';
|
|
9
10
|
|
|
@@ -13,6 +14,30 @@ export type CatalogEntityMetadataProps = {
|
|
|
13
14
|
entity: BffCatalogEntity;
|
|
14
15
|
};
|
|
15
16
|
|
|
17
|
+
function renderMetadataValue(value: any): React.JSX.Element {
|
|
18
|
+
if (isPlainObject(value)) {
|
|
19
|
+
return <JsonViewerWrapper data={value} expandLevel={3} hideHeader={true} />;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (Array.isArray(value)) {
|
|
23
|
+
return (
|
|
24
|
+
<ArrayWrapper>
|
|
25
|
+
{value.map((item, index) => (
|
|
26
|
+
<div key={index}>
|
|
27
|
+
{isPlainObject(item) ? (
|
|
28
|
+
<JsonViewerWrapper data={item} expandLevel={3} hideHeader={true} />
|
|
29
|
+
) : (
|
|
30
|
+
<span>{String(item)}</span>
|
|
31
|
+
)}
|
|
32
|
+
</div>
|
|
33
|
+
))}
|
|
34
|
+
</ArrayWrapper>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return <span>{String(value)}</span>;
|
|
39
|
+
}
|
|
40
|
+
|
|
16
41
|
export function CatalogEntityMetadata({ entity }: CatalogEntityMetadataProps) {
|
|
17
42
|
const { useTranslate } = useThemeHooks();
|
|
18
43
|
const { translate } = useTranslate();
|
|
@@ -25,6 +50,7 @@ export function CatalogEntityMetadata({ entity }: CatalogEntityMetadataProps) {
|
|
|
25
50
|
if (!metadata.length) {
|
|
26
51
|
return null;
|
|
27
52
|
}
|
|
53
|
+
|
|
28
54
|
return (
|
|
29
55
|
<MetadataWrapper data-component-name="Catalog/CatalogEntity/CatalogEntityMetadata">
|
|
30
56
|
<Heading>{translate('catalog.entity.metadata.title')}</Heading>
|
|
@@ -32,7 +58,9 @@ export function CatalogEntityMetadata({ entity }: CatalogEntityMetadataProps) {
|
|
|
32
58
|
<CatalogEntityInfoBar
|
|
33
59
|
key={key}
|
|
34
60
|
leftContent={<Label>{capitalize(key)}:</Label>}
|
|
35
|
-
rightContent={<Value>{value}</Value>}
|
|
61
|
+
rightContent={<Value>{renderMetadataValue(value)}</Value>}
|
|
62
|
+
hoverEffect={false}
|
|
63
|
+
isCodeBlock={isPlainObject(value) || Array.isArray(value)}
|
|
36
64
|
/>
|
|
37
65
|
))}
|
|
38
66
|
{hasMoreItems && (
|
|
@@ -44,6 +72,10 @@ export function CatalogEntityMetadata({ entity }: CatalogEntityMetadataProps) {
|
|
|
44
72
|
);
|
|
45
73
|
}
|
|
46
74
|
|
|
75
|
+
const JsonViewerWrapper = styled(JsonViewer)`
|
|
76
|
+
text-align: left;
|
|
77
|
+
`;
|
|
78
|
+
|
|
47
79
|
const MetadataWrapper = styled.div`
|
|
48
80
|
display: flex;
|
|
49
81
|
flex-direction: column;
|
|
@@ -64,6 +96,11 @@ const Value = styled.span`
|
|
|
64
96
|
font-weight: var(--font-weight-medium);
|
|
65
97
|
`;
|
|
66
98
|
|
|
99
|
+
const ArrayWrapper = styled.div`
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
`;
|
|
103
|
+
|
|
67
104
|
const Heading = styled.h2`
|
|
68
105
|
margin-bottom: var(--spacing-base);
|
|
69
106
|
margin-top: 0;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
import { BffCatalogEntity } from '@redocly/theme/core/types';
|
|
5
|
+
import { CatalogEntityInfoBar } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityInfoBar';
|
|
6
|
+
import { HttpTag } from '@redocly/theme/components/Tags/HttpTag';
|
|
7
|
+
|
|
8
|
+
export type CatalogEntityMethodAndPathProps = {
|
|
9
|
+
entity: BffCatalogEntity;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export function CatalogEntityMethodAndPath({ entity }: CatalogEntityMethodAndPathProps) {
|
|
13
|
+
const method = entity.metadata?.method;
|
|
14
|
+
const path = entity.metadata?.path;
|
|
15
|
+
|
|
16
|
+
if (!method || !path) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<LinksWrapper data-component-name="Catalog/CatalogEntity/CatalogEntityMethodAndPath">
|
|
22
|
+
<Heading>Method & Path</Heading>
|
|
23
|
+
<CatalogEntityInfoBar
|
|
24
|
+
leftContent={
|
|
25
|
+
<Label>
|
|
26
|
+
<MethodTag color={method.toLowerCase()}>{method}</MethodTag>
|
|
27
|
+
{path}
|
|
28
|
+
</Label>
|
|
29
|
+
}
|
|
30
|
+
withSeparator={false}
|
|
31
|
+
/>
|
|
32
|
+
</LinksWrapper>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const MethodTag = styled(HttpTag)`
|
|
37
|
+
width: auto;
|
|
38
|
+
justify-content: start;
|
|
39
|
+
margin-right: var(--spacing-xxs);
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
const LinksWrapper = styled.div`
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: var(--spacing-xs);
|
|
46
|
+
border-radius: var(--border-radius);
|
|
47
|
+
background-color: var(--catalog-metadata-bg-color);
|
|
48
|
+
transition: all 0.2s ease-in-out;
|
|
49
|
+
margin: var(--spacing-lg) 0;
|
|
50
|
+
`;
|
|
51
|
+
|
|
52
|
+
const Label = styled.div`
|
|
53
|
+
display: flex;
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
const Heading = styled.h2`
|
|
57
|
+
margin-bottom: var(--spacing-sm);
|
|
58
|
+
margin-top: 0;
|
|
59
|
+
font-size: var(--font-size-md);
|
|
60
|
+
color: var(--catalog-metadata-heading-color);
|
|
61
|
+
`;
|
package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { JSX } from 'react';
|
|
2
2
|
import { useNavigate } from 'react-router-dom';
|
|
3
|
+
import styled from 'styled-components';
|
|
3
4
|
|
|
4
5
|
import { BffCatalogEntity } from '@redocly/theme/core/types';
|
|
5
6
|
import { DocumentIcon, getPathPrefix, Tag, useThemeHooks } from '@redocly/theme';
|
|
@@ -25,7 +26,11 @@ export function ApiDescriptionProperty({ entity }: ApiDescriptionPropertyProps):
|
|
|
25
26
|
{translate('catalog.entity.properties.apiDescription.title')}
|
|
26
27
|
</>
|
|
27
28
|
}
|
|
28
|
-
content={
|
|
29
|
+
content={
|
|
30
|
+
<Tag textTransform="none">
|
|
31
|
+
<DescriptionFile>{descriptionFile}</DescriptionFile>
|
|
32
|
+
</Tag>
|
|
33
|
+
}
|
|
29
34
|
onClick={() => {
|
|
30
35
|
navigate(`${pathPrefix}/${descriptionFile}`);
|
|
31
36
|
}}
|
|
@@ -33,3 +38,9 @@ export function ApiDescriptionProperty({ entity }: ApiDescriptionPropertyProps):
|
|
|
33
38
|
</div>
|
|
34
39
|
);
|
|
35
40
|
}
|
|
41
|
+
|
|
42
|
+
const DescriptionFile = styled.span`
|
|
43
|
+
word-break: break-all;
|
|
44
|
+
overflow-wrap: break-word;
|
|
45
|
+
white-space: normal;
|
|
46
|
+
`;
|
package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import { UserEmailProperty } from '@redocly/theme/components/Catalog/CatalogEnti
|
|
|
10
10
|
import { DomainsProperty } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty';
|
|
11
11
|
import { OwnersProperty } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty';
|
|
12
12
|
import { ContactProperty } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty';
|
|
13
|
+
import { FormatProperty } from '@redocly/theme/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty';
|
|
13
14
|
|
|
14
15
|
type PropertyRenderer = {
|
|
15
16
|
key: string;
|
|
@@ -23,6 +24,11 @@ const propertyRenderers: PropertyRenderer[] = [
|
|
|
23
24
|
condition: (entity) => !!entity.type,
|
|
24
25
|
component: EntityTypeProperty,
|
|
25
26
|
},
|
|
27
|
+
{
|
|
28
|
+
key: 'format',
|
|
29
|
+
condition: (entity) => entity.type === 'data-schema' && !!entity.metadata?.specType,
|
|
30
|
+
component: FormatProperty,
|
|
31
|
+
},
|
|
26
32
|
{
|
|
27
33
|
key: 'contact',
|
|
28
34
|
condition: (entity) => !!entity.contact?.slack?.channels,
|
|
@@ -35,7 +41,7 @@ const propertyRenderers: PropertyRenderer[] = [
|
|
|
35
41
|
},
|
|
36
42
|
{
|
|
37
43
|
key: 'tags',
|
|
38
|
-
condition: (entity) => !!entity.tags,
|
|
44
|
+
condition: (entity) => !!entity.tags?.length,
|
|
39
45
|
component: TagsProperty,
|
|
40
46
|
},
|
|
41
47
|
{
|