@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
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MenuItemProps } from '
|
|
2
|
+
import type { MenuItemProps } from '@redocly/theme/core/types';
|
|
3
3
|
import type { JSX } from 'react';
|
|
4
4
|
export declare function MenuItem(props: React.PropsWithChildren<MenuItemProps>): JSX.Element;
|
|
@@ -15,27 +15,38 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.MenuItem = MenuItem;
|
|
27
37
|
const react_1 = __importStar(require("react"));
|
|
28
38
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
29
|
-
const hooks_1 = require("
|
|
30
|
-
const LaunchIcon_1 = require("
|
|
31
|
-
const Link_1 = require("
|
|
32
|
-
const ChevronDownIcon_1 = require("
|
|
33
|
-
const ChevronRightIcon_1 = require("
|
|
34
|
-
const HttpTag_1 = require("
|
|
35
|
-
const constants_1 = require("
|
|
36
|
-
const utils_1 = require("
|
|
37
|
-
const ArrowRightIcon_1 = require("
|
|
38
|
-
const Badge_1 = require("
|
|
39
|
+
const hooks_1 = require("@redocly/theme/core/hooks");
|
|
40
|
+
const LaunchIcon_1 = require("@redocly/theme/icons/LaunchIcon/LaunchIcon");
|
|
41
|
+
const Link_1 = require("@redocly/theme/components/Link/Link");
|
|
42
|
+
const ChevronDownIcon_1 = require("@redocly/theme/icons/ChevronDownIcon/ChevronDownIcon");
|
|
43
|
+
const ChevronRightIcon_1 = require("@redocly/theme/icons/ChevronRightIcon/ChevronRightIcon");
|
|
44
|
+
const HttpTag_1 = require("@redocly/theme/components/Tags/HttpTag");
|
|
45
|
+
const constants_1 = require("@redocly/theme/core/constants");
|
|
46
|
+
const utils_1 = require("@redocly/theme/core/utils");
|
|
47
|
+
const ArrowRightIcon_1 = require("@redocly/theme/icons/ArrowRightIcon/ArrowRightIcon");
|
|
48
|
+
const Badge_1 = require("@redocly/theme/components/Badge/Badge");
|
|
49
|
+
const GenericIcon_1 = require("@redocly/theme/icons/GenericIcon/GenericIcon");
|
|
39
50
|
function MenuItem(props) {
|
|
40
51
|
var _a;
|
|
41
52
|
const { item, depth, className, onClick } = props;
|
|
@@ -75,7 +86,7 @@ function MenuItem(props) {
|
|
|
75
86
|
const httpColor = item.deprecated ? 'http-deprecated' : item.httpVerb;
|
|
76
87
|
const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { active: item.active, deprecated: item.deprecated, depth: depth, withChevron: hasChevron, isSeparator: isSeparator, onClick: handleOnClick, onKeyDown: handleExpandOnEnter, ref: labelRef, role: item.link ? 'none' : 'link', tabIndex: !item.link ? 0 : undefined, "data-testid": "menu-item-label" },
|
|
77
88
|
hasChevron ? react_1.default.createElement(ChevronWrapper, null, chevron) : null,
|
|
78
|
-
|
|
89
|
+
react_1.default.createElement(MenuItemIcon, { icon: item.icon, srcSet: item.srcSet }),
|
|
79
90
|
react_1.default.createElement(MenuItemLabelTextWrapper, null,
|
|
80
91
|
react_1.default.createElement(MenuItemLabel, null,
|
|
81
92
|
react_1.default.createElement("span", null, translate(item.labelTranslationKey, item.label)), (_a = item.badges) === null || _a === void 0 ? void 0 :
|
|
@@ -240,11 +251,10 @@ const MenuItemSubLabel = styled_components_1.default.div `
|
|
|
240
251
|
font-size: var(--menu-item-sublabel-font-size);
|
|
241
252
|
font-family: var(--menu-item-sublabel-font-family);
|
|
242
253
|
`;
|
|
243
|
-
const MenuItemIcon = styled_components_1.default.
|
|
244
|
-
width: var(--menu-item-icon-size);
|
|
245
|
-
height: var(--menu-item-icon-size);
|
|
254
|
+
const MenuItemIcon = (0, styled_components_1.default)(GenericIcon_1.GenericIcon) `
|
|
255
|
+
--icon-width: var(--menu-item-icon-size);
|
|
256
|
+
--icon-height: var(--menu-item-icon-size);
|
|
246
257
|
margin: var(--menu-item-icon-margin);
|
|
247
|
-
border-radius: var(--menu-item-icon-border-radius);
|
|
248
258
|
flex-shrink: 0;
|
|
249
259
|
overflow: hidden;
|
|
250
260
|
`;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
@@ -30,16 +40,16 @@ exports.MenuMobile = MenuMobile;
|
|
|
30
40
|
const react_1 = __importStar(require("react"));
|
|
31
41
|
const react_router_dom_1 = require("react-router-dom");
|
|
32
42
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
33
|
-
const utils_1 = require("
|
|
34
|
-
const hooks_1 = require("
|
|
35
|
-
const constants_1 = require("
|
|
36
|
-
const ChevronRightIcon_1 = require("
|
|
37
|
-
const ChevronLeftIcon_1 = require("
|
|
38
|
-
const Menu_1 = require("
|
|
39
|
-
const Button_1 = require("
|
|
40
|
-
const ArrowLeftIcon_1 = require("
|
|
41
|
-
const UserMenuMobile_1 = require("
|
|
42
|
-
const Product_1 = require("
|
|
43
|
+
const utils_1 = require("@redocly/theme/core/utils");
|
|
44
|
+
const hooks_1 = require("@redocly/theme/core/hooks");
|
|
45
|
+
const constants_1 = require("@redocly/theme/core/constants");
|
|
46
|
+
const ChevronRightIcon_1 = require("@redocly/theme/icons/ChevronRightIcon/ChevronRightIcon");
|
|
47
|
+
const ChevronLeftIcon_1 = require("@redocly/theme/icons/ChevronLeftIcon/ChevronLeftIcon");
|
|
48
|
+
const Menu_1 = require("@redocly/theme/components/Menu/Menu");
|
|
49
|
+
const Button_1 = require("@redocly/theme/components/Button/Button");
|
|
50
|
+
const ArrowLeftIcon_1 = require("@redocly/theme/icons/ArrowLeftIcon/ArrowLeftIcon");
|
|
51
|
+
const UserMenuMobile_1 = require("@redocly/theme/components/UserMenu/UserMenuMobile");
|
|
52
|
+
const Product_1 = require("@redocly/theme/components/Product/Product");
|
|
43
53
|
function MenuMobile({ className, hideUserProfile }) {
|
|
44
54
|
var _a, _b, _c;
|
|
45
55
|
const location = (0, react_router_dom_1.useLocation)();
|
|
@@ -71,7 +71,7 @@ exports.menu = (0, styled_components_1.css) `
|
|
|
71
71
|
* @tokens Menu item icons
|
|
72
72
|
*/
|
|
73
73
|
--menu-item-icon-size: var(--spacing-base);
|
|
74
|
-
--menu-item-icon-margin:
|
|
74
|
+
--menu-item-icon-margin: 0 var(--spacing-xxs) 0 0;
|
|
75
75
|
--menu-item-icon-border-radius: 100%;
|
|
76
76
|
|
|
77
77
|
--menu-item-external-icon-size: 10px;
|
|
@@ -129,7 +129,9 @@ exports.mobileMenu = (0, styled_components_1.css) `
|
|
|
129
129
|
/**
|
|
130
130
|
* @tokens Mobile Menu
|
|
131
131
|
* */
|
|
132
|
+
/* Fallback for older browsers. dvh accounts for dynamic UI elements like mobile address bars */
|
|
132
133
|
--menu-mobile-height: calc(100vh - var(--navbar-height));
|
|
134
|
+
--menu-mobile-height: calc(100dvh - var(--navbar-height));
|
|
133
135
|
--menu-mobile-width: 100%;
|
|
134
136
|
--menu-mobile-z-index: var(--z-index-raised);
|
|
135
137
|
--menu-mobile-left: 0;
|
|
@@ -6,19 +6,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Navbar = Navbar;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const utils_1 = require("
|
|
10
|
-
const hooks_1 = require("
|
|
11
|
-
const NavbarLogo_1 = require("
|
|
12
|
-
const NavbarMenu_1 = require("
|
|
13
|
-
const MenuMobile_1 = require("
|
|
14
|
-
const ColorModeSwitcher_1 = require("
|
|
15
|
-
const Search_1 = require("
|
|
16
|
-
const UserMenu_1 = require("
|
|
17
|
-
const LanguagePicker_1 = require("
|
|
18
|
-
const ProductPicker_1 = require("
|
|
19
|
-
const Button_1 = require("
|
|
20
|
-
const MenuIcon_1 = require("
|
|
21
|
-
const CloseIcon_1 = require("
|
|
9
|
+
const utils_1 = require("@redocly/theme/core/utils");
|
|
10
|
+
const hooks_1 = require("@redocly/theme/core/hooks");
|
|
11
|
+
const NavbarLogo_1 = require("@redocly/theme/components/Navbar/NavbarLogo");
|
|
12
|
+
const NavbarMenu_1 = require("@redocly/theme/components/Navbar/NavbarMenu");
|
|
13
|
+
const MenuMobile_1 = require("@redocly/theme/components/Menu/MenuMobile");
|
|
14
|
+
const ColorModeSwitcher_1 = require("@redocly/theme/components/ColorModeSwitcher/ColorModeSwitcher");
|
|
15
|
+
const Search_1 = require("@redocly/theme/components/Search/Search");
|
|
16
|
+
const UserMenu_1 = require("@redocly/theme/components/UserMenu/UserMenu");
|
|
17
|
+
const LanguagePicker_1 = require("@redocly/theme/components/LanguagePicker/LanguagePicker");
|
|
18
|
+
const ProductPicker_1 = require("@redocly/theme/components/Product/ProductPicker");
|
|
19
|
+
const Button_1 = require("@redocly/theme/components/Button/Button");
|
|
20
|
+
const MenuIcon_1 = require("@redocly/theme/icons/MenuIcon/MenuIcon");
|
|
21
|
+
const CloseIcon_1 = require("@redocly/theme/icons/CloseIcon/CloseIcon");
|
|
22
22
|
function Navbar({ className }) {
|
|
23
23
|
var _a;
|
|
24
24
|
const { isOpen, closeMobileMenu, openMobileMenu } = (0, hooks_1.useMobileMenu)(false);
|
|
@@ -1,42 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.NavbarItem = NavbarItem;
|
|
30
7
|
const react_1 = __importDefault(require("react"));
|
|
31
|
-
const styled_components_1 =
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
9
|
const react_router_dom_1 = require("react-router-dom");
|
|
33
|
-
const DropdownMenu_1 = require("
|
|
34
|
-
const DropdownMenuItem_1 = require("
|
|
35
|
-
const utils_1 = require("
|
|
36
|
-
const hooks_1 = require("
|
|
37
|
-
const LaunchIcon_1 = require("
|
|
38
|
-
const Link_1 = require("
|
|
39
|
-
const Dropdown_1 = require("
|
|
10
|
+
const DropdownMenu_1 = require("@redocly/theme/components/Dropdown/DropdownMenu");
|
|
11
|
+
const DropdownMenuItem_1 = require("@redocly/theme/components/Dropdown/DropdownMenuItem");
|
|
12
|
+
const utils_1 = require("@redocly/theme/core/utils");
|
|
13
|
+
const hooks_1 = require("@redocly/theme/core/hooks");
|
|
14
|
+
const LaunchIcon_1 = require("@redocly/theme/icons/LaunchIcon/LaunchIcon");
|
|
15
|
+
const Link_1 = require("@redocly/theme/components/Link/Link");
|
|
16
|
+
const Dropdown_1 = require("@redocly/theme/components/Dropdown/Dropdown");
|
|
17
|
+
const GenericIcon_1 = require("@redocly/theme/icons/GenericIcon/GenericIcon");
|
|
40
18
|
function NavbarItem({ navItem, className }) {
|
|
41
19
|
const { pathname } = (0, react_router_dom_1.useLocation)();
|
|
42
20
|
const { useTranslate, useL10nConfig, useTelemetry } = (0, hooks_1.useThemeHooks)();
|
|
@@ -50,7 +28,7 @@ function NavbarItem({ navItem, className }) {
|
|
|
50
28
|
const isActive = pathname ===
|
|
51
29
|
(0, utils_1.withPathPrefix)((0, utils_1.getPathnameForLocale)(normalizedPath, defaultLocale, currentLocale, locales));
|
|
52
30
|
const itemContent = (react_1.default.createElement(NavbarMenuItem, { as: item.link ? Link_1.Link : undefined, active: isActive, className: className, onClick: () => telemetry.send({ type: 'navbar.menu_item_clicked', payload: { type: item.type } }), external: item.external, target: item.target, to: item.link },
|
|
53
|
-
react_1.default.createElement(NavbarIcon, {
|
|
31
|
+
react_1.default.createElement(NavbarIcon, { icon: item.icon, srcSet: item.srcSet }),
|
|
54
32
|
react_1.default.createElement(NavbarLabel, { "data-translation-key": item.labelTranslationKey }, translate(item.labelTranslationKey, item.label)),
|
|
55
33
|
item.external ? react_1.default.createElement(ExternalLinkIcon, { size: "10px" }) : null));
|
|
56
34
|
if (navItem.items) {
|
|
@@ -60,7 +38,7 @@ function NavbarItem({ navItem, className }) {
|
|
|
60
38
|
if (item.type !== 'link' && item.type !== 'separator')
|
|
61
39
|
return null;
|
|
62
40
|
return (react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { key: `${item.label}_${index}`, to: item.link, separator: item.type === 'separator', separatorLine: item.separatorLine, "data-translation-key": item.labelTranslationKey, external: item.external },
|
|
63
|
-
react_1.default.createElement(NavbarIcon, {
|
|
41
|
+
react_1.default.createElement(NavbarIcon, { icon: item.icon, srcSet: item.srcSet }),
|
|
64
42
|
react_1.default.createElement(NavbarLabel, { "data-translation-key": item.labelTranslationKey }, translate(item.labelTranslationKey, item.label)),
|
|
65
43
|
item.external ? react_1.default.createElement(ExternalLinkIcon, { size: "10px" }) : null));
|
|
66
44
|
});
|
|
@@ -100,19 +78,10 @@ const NavbarLabel = styled_components_1.default.span `
|
|
|
100
78
|
cursor: pointer;
|
|
101
79
|
vertical-align: middle;
|
|
102
80
|
`;
|
|
103
|
-
const NavbarIcon = styled_components_1.default.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
width: var(--navbar-item-icon-width);
|
|
108
|
-
height: var(--navbar-item-icon-height);
|
|
109
|
-
display: inline-block;
|
|
110
|
-
background-size: contain;
|
|
111
|
-
margin-right: var(--navbar-item-icon-margin-right);
|
|
112
|
-
vertical-align: middle;
|
|
113
|
-
background-position: center;
|
|
114
|
-
background-repeat: no-repeat;
|
|
115
|
-
`}
|
|
81
|
+
const NavbarIcon = (0, styled_components_1.default)(GenericIcon_1.GenericIcon) `
|
|
82
|
+
--icon-width: var(--navbar-item-icon-width);
|
|
83
|
+
--icon-height: var(--navbar-item-icon-height);
|
|
84
|
+
margin-right: var(--navbar-item-icon-margin-right);
|
|
116
85
|
`;
|
|
117
86
|
const ExternalLinkIcon = (0, styled_components_1.default)(LaunchIcon_1.LaunchIcon) `
|
|
118
87
|
margin-left: 5px;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.NavbarLogo = NavbarLogo;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const Logo_1 = require("
|
|
9
|
+
const Logo_1 = require("@redocly/theme/components/Logo/Logo");
|
|
10
10
|
function NavbarLogo(props) {
|
|
11
11
|
return react_1.default.createElement(NavbarLogoComponent, Object.assign({}, props, { "data-component-name": "Navbar/NavbarLogo" }));
|
|
12
12
|
}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.NavbarMenu = NavbarMenu;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const utils_1 = require("
|
|
10
|
-
const NavbarItem_1 = require("
|
|
9
|
+
const utils_1 = require("@redocly/theme/core/utils");
|
|
10
|
+
const NavbarItem_1 = require("@redocly/theme/components/Navbar/NavbarItem");
|
|
11
11
|
function NavbarMenu({ menuItems, className }) {
|
|
12
12
|
if ((0, utils_1.isPrimitive)(menuItems)) {
|
|
13
13
|
return null;
|
|
@@ -37,8 +37,8 @@ exports.navbar = (0, styled_components_1.css) `
|
|
|
37
37
|
--navbar-item-bg-color-hover: var(--bg-color);
|
|
38
38
|
--navbar-item-bottom-border-hover: none;
|
|
39
39
|
|
|
40
|
-
--navbar-item-icon-width: 1.
|
|
41
|
-
--navbar-item-icon-height: 1.
|
|
40
|
+
--navbar-item-icon-width: 1.25em; // @presenter Spacing
|
|
41
|
+
--navbar-item-icon-height: 1.25em; // @presenter Spacing
|
|
42
42
|
--navbar-item-icon-margin-right: 0.5em; // @presenter Spacing
|
|
43
43
|
|
|
44
44
|
--navbar-logo-height: var(--logo-height);
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.PageActions = PageActions;
|
|
49
|
+
const react_1 = __importStar(require("react"));
|
|
50
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
51
|
+
const PageActionsMenuItem_1 = require("@redocly/theme/components/PageActions/PageActionsMenuItem");
|
|
52
|
+
const Link_1 = require("@redocly/theme/components/Link/Link");
|
|
53
|
+
const ButtonGroup_1 = require("@redocly/theme/components/Button/ButtonGroup");
|
|
54
|
+
const Button_1 = require("@redocly/theme/components/Button/Button");
|
|
55
|
+
const Dropdown_1 = require("@redocly/theme/components/Dropdown/Dropdown");
|
|
56
|
+
const DropdownMenu_1 = require("@redocly/theme/components/Dropdown/DropdownMenu");
|
|
57
|
+
const Spinner_1 = require("@redocly/theme/icons/Spinner/Spinner");
|
|
58
|
+
const CheckmarkFilledIcon_1 = require("@redocly/theme/icons/CheckmarkFilledIcon/CheckmarkFilledIcon");
|
|
59
|
+
const hooks_1 = require("@redocly/theme/core/hooks");
|
|
60
|
+
const ACTION_DONE_DISPLAY_DURATION = 1000;
|
|
61
|
+
function PageActions(props) {
|
|
62
|
+
const { pageSlug } = props;
|
|
63
|
+
const actions = (0, hooks_1.usePageActions)(pageSlug || '/');
|
|
64
|
+
const [actionState, setActionState] = (0, react_1.useState)('idle');
|
|
65
|
+
if (!actions.length) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
const buttonAction = actions[0];
|
|
69
|
+
const handleActionClick = (action) => __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
if (!('onClick' in action)) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
setActionState('processing');
|
|
74
|
+
yield action.onClick();
|
|
75
|
+
setActionState('done');
|
|
76
|
+
setTimeout(() => {
|
|
77
|
+
setActionState('idle');
|
|
78
|
+
}, ACTION_DONE_DISPLAY_DURATION);
|
|
79
|
+
});
|
|
80
|
+
const menuItems = actions.map((action) => ({
|
|
81
|
+
content: 'link' in action ? (react_1.default.createElement(LinkMenuItem, { to: action.link, external: true },
|
|
82
|
+
react_1.default.createElement(PageActionsMenuItem_1.PageActionsMenuItem, { pageAction: action }))) : (react_1.default.createElement(PageActionsMenuItem_1.PageActionsMenuItem, { pageAction: action })),
|
|
83
|
+
onAction: 'onClick' in action ? () => handleActionClick(action) : undefined,
|
|
84
|
+
}));
|
|
85
|
+
return (react_1.default.createElement(PageActionsWrapper, null,
|
|
86
|
+
react_1.default.createElement(ButtonGroup_1.ButtonGroup, { variant: "outlined", size: "medium" },
|
|
87
|
+
react_1.default.createElement(Button_1.Button, { icon: renderIcon(buttonAction, actionState), to: 'link' in buttonAction ? buttonAction.link : undefined, external: true, onClick: () => handleActionClick(buttonAction) }, buttonAction.buttonText),
|
|
88
|
+
actions.length > 1 ? (react_1.default.createElement(Dropdown_1.Dropdown, { withArrow: true, trigger: react_1.default.createElement(Button_1.Button, null), placement: "bottom", alignment: "end" },
|
|
89
|
+
react_1.default.createElement(DropdownMenu_1.DropdownMenu, { items: menuItems }))) : null)));
|
|
90
|
+
}
|
|
91
|
+
function renderIcon(buttonAction, actionState) {
|
|
92
|
+
switch (actionState) {
|
|
93
|
+
case 'processing':
|
|
94
|
+
return react_1.default.createElement(Spinner_1.Spinner, { color: "var(--page-actions-processing-icon-color)" });
|
|
95
|
+
case 'done':
|
|
96
|
+
return react_1.default.createElement(CheckmarkFilledIcon_1.CheckmarkFilledIcon, { color: "var(--page-actions-done-icon-color)" });
|
|
97
|
+
default:
|
|
98
|
+
return react_1.default.createElement(buttonAction.iconComponent, null);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
const PageActionsWrapper = styled_components_1.default.div `
|
|
102
|
+
margin-left: auto;
|
|
103
|
+
padding-left: var(--page-actions-padding-left);
|
|
104
|
+
--button-color: var(--page-actions-button-text-color);
|
|
105
|
+
|
|
106
|
+
.button-group-size-medium .button.button-size-medium {
|
|
107
|
+
--button-icon-left-padding: var(--page-actions-button-padding);
|
|
108
|
+
}
|
|
109
|
+
`;
|
|
110
|
+
const LinkMenuItem = (0, styled_components_1.default)(Link_1.Link) `
|
|
111
|
+
text-decoration: none;
|
|
112
|
+
--link-decoration-hover: none;
|
|
113
|
+
`;
|
|
114
|
+
//# sourceMappingURL=PageActions.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PageAction } from '@redocly/theme/core/types';
|
|
3
|
+
type PageActionsMenuItemProps = {
|
|
4
|
+
pageAction: PageAction;
|
|
5
|
+
};
|
|
6
|
+
export declare function PageActionsMenuItem(props: PageActionsMenuItemProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PageActionsMenuItem = PageActionsMenuItem;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const LaunchIcon_1 = require("@redocly/theme/icons/LaunchIcon/LaunchIcon");
|
|
10
|
+
function PageActionsMenuItem(props) {
|
|
11
|
+
const { pageAction } = props;
|
|
12
|
+
return (react_1.default.createElement(MenuItemWrapper, { "data-component-name": "PageActions/PageActionsMenuItem" },
|
|
13
|
+
react_1.default.createElement(IconWrapper, null,
|
|
14
|
+
react_1.default.createElement(pageAction.iconComponent, null)),
|
|
15
|
+
react_1.default.createElement(ContentWrapper, null,
|
|
16
|
+
react_1.default.createElement(Title, null,
|
|
17
|
+
pageAction.title,
|
|
18
|
+
'link' in pageAction ? (react_1.default.createElement(LaunchIcon_1.LaunchIcon, { color: "var(--page-actions-menu-item-title-icon-color)", size: "14px" })) : null),
|
|
19
|
+
react_1.default.createElement(Description, null, pageAction.description))));
|
|
20
|
+
}
|
|
21
|
+
const MenuItemWrapper = styled_components_1.default.div `
|
|
22
|
+
padding: var(--page-actions-menu-item-padding);
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: var(--page-actions-menu-item-gap);
|
|
27
|
+
`;
|
|
28
|
+
const IconWrapper = styled_components_1.default.div `
|
|
29
|
+
color: var(--page-actions-menu-item-icon-color);
|
|
30
|
+
border: 1px solid var(--page-actions-menu-item-icon-border-color);
|
|
31
|
+
border-radius: var(--page-actions-menu-item-icon-border-radius);
|
|
32
|
+
width: var(--page-actions-menu-item-icon-wrapper-size);
|
|
33
|
+
height: var(--page-actions-menu-item-icon-wrapper-size);
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
`;
|
|
38
|
+
const ContentWrapper = styled_components_1.default.div `
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: var(--page-actions-menu-item-text-gap);
|
|
42
|
+
`;
|
|
43
|
+
const Title = styled_components_1.default.div `
|
|
44
|
+
font-weight: var(--page-actions-menu-item-title-font-weight);
|
|
45
|
+
font-size: var(--page-actions-menu-item-title-font-size);
|
|
46
|
+
line-height: var(--page-actions-menu-item-title-line-height);
|
|
47
|
+
color: var(--page-actions-menu-item-title-color);
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: var(--page-actions-menu-item-title-icon-gap);
|
|
51
|
+
`;
|
|
52
|
+
const Description = styled_components_1.default.div `
|
|
53
|
+
font-weight: var(--page-actions-menu-item-description-font-weight);
|
|
54
|
+
font-size: var(--page-actions-menu-item-description-font-size);
|
|
55
|
+
line-height: var(--page-actions-menu-item-description-line-height);
|
|
56
|
+
color: var(--page-actions-menu-item-description-color);
|
|
57
|
+
`;
|
|
58
|
+
//# sourceMappingURL=PageActionsMenuItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pageActions: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pageActionsDarkMode: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pageActionsDarkMode = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.pageActionsDarkMode = (0, styled_components_1.css) `
|
|
6
|
+
--page-actions-menu-item-icon-border-color: var(--color-warm-grey-5);
|
|
7
|
+
--page-actions-menu-item-description-color: var(--text-color-secondary);
|
|
8
|
+
`;
|
|
9
|
+
//# sourceMappingURL=variables.dark.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pageActions = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
exports.pageActions = (0, styled_components_1.css) `
|
|
6
|
+
/* Minimum spacing between page actions and heading text */
|
|
7
|
+
--page-actions-padding-left: var(--spacing-sm);
|
|
8
|
+
|
|
9
|
+
--page-actions-button-text-color: var(--text-color-secondary);
|
|
10
|
+
--page-actions-button-padding: 5px 14px 5px var(--spacing-sm);
|
|
11
|
+
|
|
12
|
+
--page-actions-menu-item-padding: 3px 0;
|
|
13
|
+
--page-actions-menu-item-gap: var(--spacing-xs);
|
|
14
|
+
--page-actions-menu-item-icon-color: var(--icon-color-secondary);
|
|
15
|
+
--page-actions-menu-item-icon-border-color: var(--color-warm-grey-3);
|
|
16
|
+
--page-actions-menu-item-icon-border-radius: var(--border-radius);
|
|
17
|
+
--page-actions-menu-item-icon-wrapper-size: 28px;
|
|
18
|
+
|
|
19
|
+
--page-actions-menu-item-text-gap: 2px;
|
|
20
|
+
|
|
21
|
+
--page-actions-menu-item-title-font-weight: var(--font-weight-regular);
|
|
22
|
+
--page-actions-menu-item-title-font-size: var(--font-size-base);
|
|
23
|
+
--page-actions-menu-item-title-line-height: var(--line-height-base);
|
|
24
|
+
--page-actions-menu-item-title-color: var(--text-color-secondary);
|
|
25
|
+
|
|
26
|
+
--page-actions-menu-item-title-icon-gap: var(--spacing-xxs);
|
|
27
|
+
--page-actions-menu-item-title-icon-color: var(--icon-color-secondary);
|
|
28
|
+
|
|
29
|
+
--page-actions-menu-item-description-font-weight: var(--font-weight-regular);
|
|
30
|
+
--page-actions-menu-item-description-font-size: var(--font-size-sm);
|
|
31
|
+
--page-actions-menu-item-description-line-height: var(--line-height-sm);
|
|
32
|
+
--page-actions-menu-item-description-color: var(--text-color-description);
|
|
33
|
+
|
|
34
|
+
--page-actions-processing-icon-color: var(--icon-color-interactive);
|
|
35
|
+
--page-actions-done-icon-color: var(--color-success-base);
|
|
36
|
+
`;
|
|
37
|
+
//# sourceMappingURL=variables.js.map
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.NavigationButton = NavigationButton;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const ArrowRightIcon_1 = require("
|
|
10
|
-
const Button_1 = require("
|
|
11
|
-
const ArrowLeftIcon_1 = require("
|
|
9
|
+
const ArrowRightIcon_1 = require("@redocly/theme/icons/ArrowRightIcon/ArrowRightIcon");
|
|
10
|
+
const Button_1 = require("@redocly/theme/components/Button/Button");
|
|
11
|
+
const ArrowLeftIcon_1 = require("@redocly/theme/icons/ArrowLeftIcon/ArrowLeftIcon");
|
|
12
12
|
function NavigationButton({ label, link, text, translationKey, position, icon = position === 'left' ? react_1.default.createElement(ArrowLeftIcon_1.ArrowLeftIcon, null) : react_1.default.createElement(ArrowRightIcon_1.ArrowRightIcon, null), className, }) {
|
|
13
13
|
return (react_1.default.createElement(NavigationButtonWrapper, { "data-component-name": "PageNavigation/NavigationButton", "data-translation-key": translationKey, position: position },
|
|
14
14
|
react_1.default.createElement(NavigationButtonLabel, null, text),
|