@redocly/theme 0.55.0-next.9 → 0.55.0-rc.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 +0 -4
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.js +1 -2
- package/lib/components/Button/Button.d.ts +0 -1
- package/lib/components/CatalogClassic/CatalogClassicHighlight.js +1 -1
- package/lib/components/Dropdown/variables.js +1 -1
- package/lib/components/Filter/Filter.d.ts +1 -1
- package/lib/components/Filter/Filter.js +2 -2
- package/lib/components/Filter/FilterCheckboxes.d.ts +1 -1
- package/lib/components/Filter/FilterCheckboxes.js +4 -4
- package/lib/components/Filter/FilterContent.d.ts +1 -3
- package/lib/components/Filter/FilterContent.js +4 -34
- package/lib/components/Filter/FilterInput.js +3 -35
- package/lib/components/Filter/FilterSelect.d.ts +1 -1
- package/lib/components/Filter/FilterSelect.js +4 -4
- package/lib/components/Image/Image.js +2 -2
- package/lib/components/Markdown/Markdown.js +1 -1
- package/lib/components/Menu/MenuItem.d.ts +1 -1
- package/lib/components/Menu/MenuItem.js +3 -7
- package/lib/components/OpenApiDocs/hooks/AfterOpenApiDescription.d.ts +1 -0
- package/lib/components/OpenApiDocs/hooks/AfterOpenApiDescription.js +5 -0
- package/lib/components/PageNavigation/NextButton.js +29 -10
- package/lib/components/PageNavigation/PageNavigation.js +1 -1
- package/lib/components/PageNavigation/PreviousButton.js +27 -11
- package/lib/components/Search/SearchAiConversationInput.js +1 -2
- package/lib/components/Select/Select.js +6 -22
- package/lib/components/Select/SelectInput.d.ts +0 -1
- package/lib/components/Select/SelectInput.js +3 -7
- package/lib/components/Select/variables.js +2 -2
- package/lib/components/Sidebar/Sidebar.d.ts +0 -3
- package/lib/components/Sidebar/Sidebar.js +2 -3
- package/lib/components/Tag/Tag.d.ts +1 -3
- package/lib/components/Tag/Tag.js +2 -54
- package/lib/components/Tag/variables.js +0 -21
- package/lib/components/Tooltip/Tooltip.d.ts +1 -2
- package/lib/components/Tooltip/Tooltip.js +19 -26
- package/lib/components/Tooltip/variables.js +0 -17
- package/lib/components/VersionPicker/VersionPicker.js +3 -22
- package/lib/components/VersionPicker/variables.js +0 -1
- package/lib/core/constants/common.d.ts +0 -1
- package/lib/core/constants/common.js +1 -2
- package/lib/core/constants/index.d.ts +0 -1
- package/lib/core/constants/index.js +0 -1
- package/lib/core/constants/search.d.ts +0 -1
- package/lib/core/constants/search.js +1 -2
- package/lib/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.d.ts +1 -1
- package/lib/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.js +2 -5
- package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +0 -1
- package/lib/core/hooks/__mocks__/use-theme-hooks.js +0 -1
- package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.d.ts +9 -17
- package/lib/core/hooks/code-walkthrough/use-code-walkthrough-steps.js +47 -242
- package/lib/core/hooks/code-walkthrough/use-code-walkthrough.d.ts +2 -9
- package/lib/core/hooks/code-walkthrough/use-code-walkthrough.js +2 -2
- package/lib/core/hooks/index.d.ts +1 -3
- package/lib/core/hooks/index.js +1 -3
- package/lib/core/hooks/use-page-active-version.d.ts +1 -0
- package/lib/core/hooks/{use-active-page-version.js → use-page-active-version.js} +3 -3
- package/lib/core/styles/dark.js +0 -2
- package/lib/core/styles/global.js +60 -65
- package/lib/core/types/catalog.d.ts +5 -118
- package/lib/core/types/filter.d.ts +0 -1
- package/lib/core/types/hooks.d.ts +4 -11
- package/lib/core/types/index.d.ts +0 -3
- package/lib/core/types/index.js +0 -3
- package/lib/core/types/l10n.d.ts +1 -1
- package/lib/core/utils/index.d.ts +0 -1
- package/lib/core/utils/index.js +0 -1
- package/lib/core/utils/js-utils.d.ts +0 -18
- package/lib/core/utils/js-utils.js +0 -31
- package/lib/ext/process-scorecard.d.ts +5 -0
- package/lib/ext/process-scorecard.js +11 -0
- package/lib/index.d.ts +1 -19
- package/lib/index.js +1 -20
- package/lib/layouts/PageLayout.js +1 -2
- package/lib/layouts/RootLayout.js +0 -2
- package/lib/markdoc/components/CodeWalkthrough/CodeStep.d.ts +2 -1
- package/lib/markdoc/components/CodeWalkthrough/CodeStep.js +20 -26
- package/lib/markdoc/components/CodeWalkthrough/CodeWalkthrough.js +3 -32
- package/lib/markdoc/components/Tabs/Tab.d.ts +1 -2
- package/lib/markdoc/components/Tabs/Tab.js +2 -10
- package/lib/markdoc/components/Tabs/TabList.d.ts +4 -1
- package/lib/markdoc/components/Tabs/TabList.js +38 -18
- package/lib/markdoc/components/Tabs/Tabs.d.ts +1 -3
- package/lib/markdoc/components/Tabs/Tabs.js +9 -5
- package/lib/markdoc/tags/code-step.js +3 -0
- package/lib/markdoc/tags/code-walkthrough.js +1 -0
- package/package.json +3 -4
- package/src/components/Admonition/Admonition.tsx +0 -4
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -7
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/CatalogClassic/CatalogClassicHighlight.tsx +1 -1
- package/src/components/Dropdown/variables.ts +1 -1
- package/src/components/Filter/Filter.tsx +2 -10
- package/src/components/Filter/FilterCheckboxes.tsx +4 -8
- package/src/components/Filter/FilterContent.tsx +5 -21
- package/src/components/Filter/FilterInput.tsx +4 -16
- package/src/components/Filter/FilterSelect.tsx +4 -8
- package/src/components/Image/Image.tsx +9 -5
- package/src/components/Markdown/Markdown.tsx +1 -1
- package/src/components/Menu/MenuItem.tsx +2 -11
- package/src/components/OpenApiDocs/hooks/AfterOpenApiDescription.tsx +1 -0
- package/src/components/PageNavigation/NextButton.tsx +43 -20
- package/src/components/PageNavigation/PageNavigation.tsx +1 -1
- package/src/components/PageNavigation/PreviousButton.tsx +43 -20
- package/src/components/Search/SearchAiConversationInput.tsx +0 -3
- package/src/components/Select/Select.tsx +4 -29
- package/src/components/Select/SelectInput.tsx +1 -20
- package/src/components/Select/variables.ts +2 -2
- package/src/components/Sidebar/Sidebar.tsx +1 -1
- package/src/components/Tag/Tag.tsx +1 -67
- package/src/components/Tag/variables.ts +0 -21
- package/src/components/Tooltip/Tooltip.tsx +22 -31
- package/src/components/Tooltip/variables.ts +0 -17
- package/src/components/VersionPicker/VersionPicker.tsx +2 -32
- package/src/components/VersionPicker/variables.ts +0 -1
- package/src/core/constants/common.ts +0 -1
- package/src/core/constants/index.ts +0 -1
- package/src/core/constants/search.ts +0 -2
- package/src/core/contexts/CodeWalkthrough/CodeWalkthroughStepsContext.tsx +3 -6
- package/src/core/hooks/__mocks__/use-theme-hooks.ts +0 -1
- package/src/core/hooks/code-walkthrough/use-code-walkthrough-steps.ts +65 -326
- package/src/core/hooks/code-walkthrough/use-code-walkthrough.ts +6 -9
- package/src/core/hooks/index.ts +1 -3
- package/src/core/hooks/{use-active-page-version.ts → use-page-active-version.ts} +1 -1
- package/src/core/styles/dark.ts +0 -2
- package/src/core/styles/global.ts +0 -5
- package/src/core/types/catalog.ts +5 -143
- package/src/core/types/filter.ts +0 -1
- package/src/core/types/hooks.ts +5 -32
- package/src/core/types/index.ts +0 -3
- package/src/core/types/l10n.ts +1 -22
- package/src/core/utils/index.ts +0 -1
- package/src/core/utils/js-utils.ts +0 -31
- package/src/core/utils/load-and-navigate.ts +4 -5
- package/src/ext/process-scorecard.ts +13 -0
- package/src/index.ts +1 -21
- package/src/layouts/PageLayout.tsx +1 -4
- package/src/layouts/RootLayout.tsx +0 -2
- package/src/markdoc/components/CodeWalkthrough/CodeStep.tsx +36 -76
- package/src/markdoc/components/CodeWalkthrough/CodeWalkthrough.tsx +3 -8
- package/src/markdoc/components/Tabs/Tab.tsx +1 -12
- package/src/markdoc/components/Tabs/TabList.tsx +70 -40
- package/src/markdoc/components/Tabs/Tabs.tsx +10 -11
- package/src/markdoc/tags/code-step.ts +3 -0
- package/src/markdoc/tags/code-walkthrough.ts +1 -0
- package/lib/components/Catalog/Catalog.d.ts +0 -11
- package/lib/components/Catalog/Catalog.js +0 -138
- package/lib/components/Catalog/CatalogActionsRow.d.ts +0 -15
- package/lib/components/Catalog/CatalogActionsRow.js +0 -34
- package/lib/components/Catalog/CatalogCardView/CatalogCard.d.ts +0 -8
- package/lib/components/Catalog/CatalogCardView/CatalogCard.js +0 -179
- package/lib/components/Catalog/CatalogCardView/CatalogCardView.d.ts +0 -8
- package/lib/components/Catalog/CatalogCardView/CatalogCardView.js +0 -20
- package/lib/components/Catalog/CatalogEntities.d.ts +0 -18
- package/lib/components/Catalog/CatalogEntities.js +0 -63
- package/lib/components/Catalog/CatalogEntitiesEmptyState.d.ts +0 -2
- package/lib/components/Catalog/CatalogEntitiesEmptyState.js +0 -38
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +0 -12
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +0 -133
- package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.d.ts +0 -7
- package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.js +0 -49
- package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.js +0 -48
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +0 -111
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.js +0 -25
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +0 -69
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts +0 -7
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +0 -48
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +0 -19
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +0 -20
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +0 -20
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.js +0 -23
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +0 -21
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +0 -24
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.d.ts +0 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.js +0 -21
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +0 -21
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +0 -37
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +0 -10
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +0 -31
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +0 -25
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +0 -27
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +0 -22
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +0 -60
- package/lib/components/Catalog/CatalogEntityIcon.d.ts +0 -5
- package/lib/components/Catalog/CatalogEntityIcon.js +0 -38
- package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +0 -5
- package/lib/components/Catalog/CatalogEntityTypeIcon.js +0 -42
- package/lib/components/Catalog/CatalogHighlight.d.ts +0 -4
- package/lib/components/Catalog/CatalogHighlight.js +0 -48
- package/lib/components/Catalog/CatalogPageDescription.d.ts +0 -9
- package/lib/components/Catalog/CatalogPageDescription.js +0 -52
- package/lib/components/Catalog/CatalogSelector.d.ts +0 -12
- package/lib/components/Catalog/CatalogSelector.js +0 -48
- package/lib/components/Catalog/CatalogSortButton.d.ts +0 -10
- package/lib/components/Catalog/CatalogSortButton.js +0 -71
- package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.d.ts +0 -5
- package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +0 -19
- package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +0 -6
- package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +0 -63
- package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.d.ts +0 -5
- package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +0 -19
- package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +0 -11
- package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +0 -101
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +0 -31
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +0 -106
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +0 -27
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +0 -127
- package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.d.ts +0 -6
- package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +0 -20
- package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.d.ts +0 -7
- package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +0 -66
- package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +0 -9
- package/lib/components/Catalog/CatalogTagsWithTooltip.js +0 -46
- package/lib/components/Catalog/CatalogViewModeToggle.d.ts +0 -7
- package/lib/components/Catalog/CatalogViewModeToggle.js +0 -67
- package/lib/components/Catalog/variables.d.ts +0 -1
- package/lib/components/Catalog/variables.dark.d.ts +0 -1
- package/lib/components/Catalog/variables.dark.js +0 -8
- package/lib/components/Catalog/variables.js +0 -354
- package/lib/components/LoadMore/LoadMore.d.ts +0 -8
- package/lib/components/LoadMore/LoadMore.js +0 -18
- package/lib/components/Marker/Marker.d.ts +0 -10
- package/lib/components/Marker/Marker.js +0 -62
- package/lib/components/PageNavigation/NavigationButton.d.ts +0 -13
- package/lib/components/PageNavigation/NavigationButton.js +0 -32
- package/lib/components/SkipContent/SkipContent.d.ts +0 -2
- package/lib/components/SkipContent/SkipContent.js +0 -68
- package/lib/components/SkipContent/variables.d.ts +0 -1
- package/lib/components/SkipContent/variables.js +0 -23
- package/lib/core/constants/catalog.d.ts +0 -1
- package/lib/core/constants/catalog.js +0 -5
- package/lib/core/hooks/catalog/useCatalogEntities.d.ts +0 -4
- package/lib/core/hooks/catalog/useCatalogEntities.js +0 -17
- package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.d.ts +0 -15
- package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.js +0 -23
- package/lib/core/hooks/catalog/useCatalogTableViewRow.d.ts +0 -11
- package/lib/core/hooks/catalog/useCatalogTableViewRow.js +0 -26
- package/lib/core/hooks/use-active-page-version.d.ts +0 -1
- package/lib/core/hooks/use-user-teams.d.ts +0 -1
- package/lib/core/hooks/use-user-teams.js +0 -10
- package/lib/core/types/code-walkthrough.d.ts +0 -13
- package/lib/core/types/code-walkthrough.js +0 -3
- package/lib/core/types/marker.d.ts +0 -4
- package/lib/core/types/marker.js +0 -3
- package/lib/core/types/telemetry.d.ts +0 -32
- package/lib/core/types/telemetry.js +0 -3
- package/lib/core/utils/parse-style-string.d.ts +0 -1
- package/lib/core/utils/parse-style-string.js +0 -23
- package/lib/icons/AscSortIcon/AscSortIcon.d.ts +0 -9
- package/lib/icons/AscSortIcon/AscSortIcon.js +0 -25
- package/lib/icons/CardsIcon/CardsIcon.d.ts +0 -9
- package/lib/icons/CardsIcon/CardsIcon.js +0 -25
- package/lib/icons/CaretDownIcon/CaretDownIcon.d.ts +0 -9
- package/lib/icons/CaretDownIcon/CaretDownIcon.js +0 -22
- package/lib/icons/CaretUpIcon/CaretUpIcon.d.ts +0 -9
- package/lib/icons/CaretUpIcon/CaretUpIcon.js +0 -22
- package/lib/icons/DescSortIcon/DescSortIcon.d.ts +0 -9
- package/lib/icons/DescSortIcon/DescSortIcon.js +0 -25
- package/lib/icons/EntityTypeIcon/EntityTypeIcon.d.ts +0 -9
- package/lib/icons/EntityTypeIcon/EntityTypeIcon.js +0 -26
- package/lib/icons/GithubIcon/GithubIcon.d.ts +0 -9
- package/lib/icons/GithubIcon/GithubIcon.js +0 -22
- package/lib/icons/GraphIcon/GraphIcon.d.ts +0 -9
- package/lib/icons/GraphIcon/GraphIcon.js +0 -22
- package/lib/icons/PeopleIcon/PeopleIcon.d.ts +0 -9
- package/lib/icons/PeopleIcon/PeopleIcon.js +0 -27
- package/lib/icons/SlackIcon/SlackIcon.d.ts +0 -9
- package/lib/icons/SlackIcon/SlackIcon.js +0 -29
- package/lib/icons/SortIcon/SortIcon.d.ts +0 -9
- package/lib/icons/SortIcon/SortIcon.js +0 -25
- package/lib/icons/TableIcon/TableIcon.d.ts +0 -9
- package/lib/icons/TableIcon/TableIcon.js +0 -22
- package/lib/icons/TagsIcon/TagsIcon.d.ts +0 -9
- package/lib/icons/TagsIcon/TagsIcon.js +0 -24
- package/src/components/Catalog/Catalog.tsx +0 -235
- package/src/components/Catalog/CatalogActionsRow.tsx +0 -58
- package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +0 -227
- package/src/components/Catalog/CatalogCardView/CatalogCardView.tsx +0 -29
- package/src/components/Catalog/CatalogEntities.tsx +0 -107
- package/src/components/Catalog/CatalogEntitiesEmptyState.tsx +0 -38
- package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +0 -207
- package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +0 -60
- package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +0 -67
- package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +0 -93
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.tsx +0 -35
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +0 -83
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +0 -62
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +0 -36
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +0 -38
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +0 -33
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.tsx +0 -41
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +0 -42
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +0 -39
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.tsx +0 -31
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +0 -97
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +0 -80
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +0 -92
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +0 -127
- package/src/components/Catalog/CatalogEntityIcon.tsx +0 -41
- package/src/components/Catalog/CatalogEntityTypeIcon.tsx +0 -48
- package/src/components/Catalog/CatalogHighlight.tsx +0 -56
- package/src/components/Catalog/CatalogPageDescription.tsx +0 -72
- package/src/components/Catalog/CatalogSelector.tsx +0 -67
- package/src/components/Catalog/CatalogSortButton.tsx +0 -78
- package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +0 -26
- package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +0 -77
- package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +0 -26
- package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +0 -120
- package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +0 -176
- package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +0 -180
- package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +0 -28
- package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +0 -77
- package/src/components/Catalog/CatalogTagsWithTooltip.tsx +0 -83
- package/src/components/Catalog/CatalogViewModeToggle.tsx +0 -65
- package/src/components/Catalog/variables.dark.ts +0 -5
- package/src/components/Catalog/variables.ts +0 -351
- package/src/components/LoadMore/LoadMore.tsx +0 -38
- package/src/components/Marker/Marker.tsx +0 -53
- package/src/components/PageNavigation/NavigationButton.tsx +0 -68
- package/src/components/SkipContent/SkipContent.tsx +0 -47
- package/src/components/SkipContent/variables.ts +0 -20
- package/src/core/constants/catalog.ts +0 -1
- package/src/core/hooks/catalog/useCatalogEntities.ts +0 -16
- package/src/core/hooks/catalog/useCatalogTableHeaderCellActions.ts +0 -38
- package/src/core/hooks/catalog/useCatalogTableViewRow.ts +0 -40
- package/src/core/hooks/use-user-teams.ts +0 -8
- package/src/core/types/code-walkthrough.ts +0 -15
- package/src/core/types/marker.ts +0 -4
- package/src/core/types/telemetry.ts +0 -36
- package/src/core/utils/parse-style-string.ts +0 -21
- package/src/icons/AscSortIcon/AscSortIcon.tsx +0 -29
- package/src/icons/CardsIcon/CardsIcon.tsx +0 -38
- package/src/icons/CaretDownIcon/CaretDownIcon.tsx +0 -26
- package/src/icons/CaretUpIcon/CaretUpIcon.tsx +0 -26
- package/src/icons/DescSortIcon/DescSortIcon.tsx +0 -29
- package/src/icons/EntityTypeIcon/EntityTypeIcon.tsx +0 -49
- package/src/icons/GithubIcon/GithubIcon.tsx +0 -35
- package/src/icons/GraphIcon/GraphIcon.tsx +0 -26
- package/src/icons/PeopleIcon/PeopleIcon.tsx +0 -46
- package/src/icons/SlackIcon/SlackIcon.tsx +0 -61
- package/src/icons/SortIcon/SortIcon.tsx +0 -29
- package/src/icons/TableIcon/TableIcon.tsx +0 -26
- package/src/icons/TagsIcon/TagsIcon.tsx +0 -41
|
@@ -10,9 +10,8 @@ const hooks_1 = require("../../core/hooks");
|
|
|
10
10
|
const Breadcrumb_1 = require("../../components/Breadcrumbs/Breadcrumb");
|
|
11
11
|
function Breadcrumbs(props) {
|
|
12
12
|
const { useBreadcrumbs, useTelemetry } = (0, hooks_1.useThemeHooks)();
|
|
13
|
-
const fileBreadcrumbs = useBreadcrumbs();
|
|
14
|
-
const breadcrumbs = [...fileBreadcrumbs, ...(props.additionalBreadcrumbs || [])];
|
|
15
13
|
const telemetry = useTelemetry();
|
|
14
|
+
const breadcrumbs = useBreadcrumbs();
|
|
16
15
|
if (breadcrumbs.length === 0) {
|
|
17
16
|
return null;
|
|
18
17
|
}
|
|
@@ -18,7 +18,6 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
18
18
|
title?: string;
|
|
19
19
|
tabIndex?: number;
|
|
20
20
|
onClick?: (e?: any) => void;
|
|
21
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
22
21
|
type?: 'button' | 'submit' | 'reset';
|
|
23
22
|
}
|
|
24
23
|
export declare function generateClassName({ variant, tone, size, extraClass, }: ButtonProps): string;
|
|
@@ -61,7 +61,7 @@ function CatalogClassicHighlight(props) {
|
|
|
61
61
|
return (React.createElement(React.Fragment, null, children.map((child, idx) => typeof children === 'string' ? highlight(child, idx) : child || null)));
|
|
62
62
|
}
|
|
63
63
|
else {
|
|
64
|
-
return React.createElement(React.Fragment, null, children);
|
|
64
|
+
return React.createElement(React.Fragment, null, "children") || null;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
const HighlightedText = styled_components_1.default.span `
|
|
@@ -42,7 +42,7 @@ exports.dropdown = (0, styled_components_1.css) `
|
|
|
42
42
|
|
|
43
43
|
--dropdown-menu-item-color-dangerous: var(--color-error-base);
|
|
44
44
|
|
|
45
|
-
--dropdown-menu-item-border-color-focused: var(--
|
|
45
|
+
--dropdown-menu-item-border-color-focused: var(--color-blue-4);
|
|
46
46
|
// @tokens End
|
|
47
47
|
`;
|
|
48
48
|
//# sourceMappingURL=variables.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
2
|
import type { FilterProps } from '../../core/types';
|
|
3
|
-
export declare function Filter({ filter, filterValuesCasing
|
|
3
|
+
export declare function Filter({ filter, filterValuesCasing }: FilterProps): JSX.Element | null;
|
|
@@ -14,12 +14,12 @@ const filterComponents = {
|
|
|
14
14
|
'date-range': FilterDateRange_1.FilterDateRange,
|
|
15
15
|
checkboxes: FilterCheckboxes_1.FilterCheckboxes,
|
|
16
16
|
};
|
|
17
|
-
function Filter({ filter, filterValuesCasing
|
|
17
|
+
function Filter({ filter, filterValuesCasing }) {
|
|
18
18
|
if (!filter.parentUsed)
|
|
19
19
|
return null;
|
|
20
20
|
const FilterComponent = filterComponents[(filter.type || 'checkboxes')];
|
|
21
21
|
return (react_1.default.createElement(FilterGroup, { "data-component-name": "Filter/Filter", key: filter.property + filter.title },
|
|
22
|
-
react_1.default.createElement(FilterComponent, { filter: filter, filterValuesCasing: filterValuesCasing
|
|
22
|
+
react_1.default.createElement(FilterComponent, { filter: filter, filterValuesCasing: filterValuesCasing })));
|
|
23
23
|
}
|
|
24
24
|
const FilterGroup = styled_components_1.default.div `
|
|
25
25
|
padding: var(--filter-group-padding);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
2
|
import type { FilterProps } from '../../core/types';
|
|
3
|
-
export declare function FilterCheckboxes({ filter, filterValuesCasing
|
|
3
|
+
export declare function FilterCheckboxes({ filter, filterValuesCasing }: FilterProps): JSX.Element;
|
|
@@ -14,21 +14,21 @@ const hooks_1 = require("../../core/hooks");
|
|
|
14
14
|
const CheckboxIcon_1 = require("../../icons/CheckboxIcon/CheckboxIcon");
|
|
15
15
|
const CounterTag_1 = require("../../components/Tags/CounterTag");
|
|
16
16
|
const utils_1 = require("../../core/utils");
|
|
17
|
-
function FilterCheckboxes({ filter, filterValuesCasing
|
|
17
|
+
function FilterCheckboxes({ filter, filterValuesCasing }) {
|
|
18
18
|
const { useTranslate, useTelemetry } = (0, hooks_1.useThemeHooks)();
|
|
19
19
|
const { translate } = useTranslate();
|
|
20
20
|
const telemetry = useTelemetry();
|
|
21
21
|
return (react_1.default.createElement(FilterCheckboxesWrapper, { "data-component-name": "Filter/FilterCheckboxes" },
|
|
22
22
|
react_1.default.createElement(FilterTitle_1.FilterTitle, { "data-translation-key": filter.titleTranslationKey }, translate(filter.titleTranslationKey, filter.title)),
|
|
23
|
-
react_1.default.createElement(FilterOptions_1.FilterOptions, null, filter.
|
|
23
|
+
react_1.default.createElement(FilterOptions_1.FilterOptions, null, filter.filteredOptions.map(({ value, count }) => {
|
|
24
24
|
const id = 'filter--' + filter.property + '--' + value;
|
|
25
25
|
return (react_1.default.createElement(FilterCheckboxOption, { key: id, role: "link", onClick: () => {
|
|
26
26
|
filter.toggleOption(value);
|
|
27
27
|
telemetry.send({ type: 'filter_checkbox.toggled', payload: { id } });
|
|
28
28
|
} },
|
|
29
|
-
react_1.default.createElement(CheckboxIcon_1.CheckboxIcon, { checked: filter.selectedOptions.has(value
|
|
29
|
+
react_1.default.createElement(CheckboxIcon_1.CheckboxIcon, { checked: filter.selectedOptions.has(value) }),
|
|
30
30
|
react_1.default.createElement(FilterOptionLabel_1.FilterOptionLabel, { "data-translation-key": value }, (0, utils_1.changeTextCasing)(translate(value), filterValuesCasing)),
|
|
31
|
-
|
|
31
|
+
react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, count)));
|
|
32
32
|
}))));
|
|
33
33
|
}
|
|
34
34
|
const FilterCheckboxOption = (0, styled_components_1.default)(FilterOption_1.FilterOption) `
|
|
@@ -6,7 +6,5 @@ export type FilterContentProps = {
|
|
|
6
6
|
filters: ResolvedFilter[];
|
|
7
7
|
filterTerm: string;
|
|
8
8
|
filterValuesCasing?: NonNullable<RedoclyConfig['catalog']>[string]['filterValuesCasing'];
|
|
9
|
-
hideSearch?: boolean;
|
|
10
|
-
showCounter?: boolean;
|
|
11
9
|
};
|
|
12
|
-
export declare function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing,
|
|
10
|
+
export declare function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing, }: FilterContentProps): JSX.Element;
|
|
@@ -1,40 +1,17 @@
|
|
|
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.FilterContent = FilterContent;
|
|
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 FilterInput_1 = require("../../components/Filter/FilterInput");
|
|
33
10
|
const hooks_1 = require("../../core/hooks");
|
|
34
11
|
const Button_1 = require("../../components/Button/Button");
|
|
35
12
|
const Filter_1 = require("../../components/Filter/Filter");
|
|
36
13
|
const utils_1 = require("../../core/utils");
|
|
37
|
-
function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing,
|
|
14
|
+
function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing, }) {
|
|
38
15
|
const { useTranslate } = (0, hooks_1.useThemeHooks)();
|
|
39
16
|
const { translate } = useTranslate();
|
|
40
17
|
const hasActiveFilters = filters.some((filter) => {
|
|
@@ -53,15 +30,12 @@ function FilterContent({ setFilterTerm, filters, filterTerm, filterValuesCasing,
|
|
|
53
30
|
filters.forEach((filter) => filter.selectOption(''));
|
|
54
31
|
setFilterTerm('');
|
|
55
32
|
};
|
|
56
|
-
if (!filters.length) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
33
|
return (react_1.default.createElement(FilterContentWrapper, { "data-component-name": "Filter/FilterContent" },
|
|
60
34
|
react_1.default.createElement(FiltersHeader, null,
|
|
61
35
|
react_1.default.createElement(FiltersTitle, { "data-translation-key": "catalog.filters.title" }, translate('catalog.filters.title', 'Filters')),
|
|
62
36
|
hasActiveFilters ? (react_1.default.createElement(Button_1.Button, { size: "medium", tone: "danger", variant: "ghost", onClick: handleClearAll }, translate('catalog.filters.clearAll', 'Clear filters'))) : null),
|
|
63
|
-
|
|
64
|
-
react_1.default.createElement(FilterItems,
|
|
37
|
+
react_1.default.createElement(FilterInput_1.FilterInput, { value: filterTerm, onChange: (updatedTerm) => setFilterTerm(updatedTerm) }),
|
|
38
|
+
react_1.default.createElement(FilterItems, null, filters.map((filter, idx) => (react_1.default.createElement(Filter_1.Filter, { filter: filter, key: filter.property + '-' + idx, filterValuesCasing: filterValuesCasing }))))));
|
|
65
39
|
}
|
|
66
40
|
const FilterContentWrapper = styled_components_1.default.div `
|
|
67
41
|
padding: var(--filter-content-padding-vertical) var(--filter-content-padding-horizontal);
|
|
@@ -87,9 +61,5 @@ const FilterItems = styled_components_1.default.div `
|
|
|
87
61
|
flex-direction: column;
|
|
88
62
|
gap: var(--spacing-base);
|
|
89
63
|
border-top: 1px solid var(--border-color-secondary);
|
|
90
|
-
${({ hideSearch }) => hideSearch &&
|
|
91
|
-
(0, styled_components_1.css) `
|
|
92
|
-
border-top: none;
|
|
93
|
-
`}
|
|
94
64
|
`;
|
|
95
65
|
//# sourceMappingURL=FilterContent.js.map
|
|
@@ -1,52 +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.FilterInput = FilterInput;
|
|
30
|
-
const react_1 =
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
31
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
9
|
const hooks_1 = require("../../core/hooks");
|
|
33
10
|
const SearchIcon_1 = require("../../icons/SearchIcon/SearchIcon");
|
|
34
11
|
function FilterInput(props) {
|
|
35
|
-
const { value
|
|
36
|
-
const [value, setValue] = (0, react_1.useState)(initialValue);
|
|
37
|
-
(0, react_1.useEffect)(() => {
|
|
38
|
-
setValue(initialValue);
|
|
39
|
-
}, [initialValue]);
|
|
40
|
-
const handleChange = (e) => {
|
|
41
|
-
const newValue = e.target.value;
|
|
42
|
-
setValue(newValue);
|
|
43
|
-
onChange(newValue);
|
|
44
|
-
};
|
|
12
|
+
const { value, onChange } = props;
|
|
45
13
|
const { useTranslate } = (0, hooks_1.useThemeHooks)();
|
|
46
14
|
const { translate } = useTranslate();
|
|
47
15
|
return (react_1.default.createElement(InputWrapper, { "data-component-name": "Filter/FilterInput" },
|
|
48
16
|
react_1.default.createElement(InputIcon, null),
|
|
49
|
-
react_1.default.createElement(Input, { value: value, onChange:
|
|
17
|
+
react_1.default.createElement(Input, { value: value, onChange: (e) => onChange(e.target.value), placeholder: translate('catalog.filters.placeholder', 'Type to filter...') })));
|
|
50
18
|
}
|
|
51
19
|
const InputWrapper = styled_components_1.default.div `
|
|
52
20
|
position: relative;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
2
|
import type { FilterProps } from '../../core/types';
|
|
3
|
-
export declare function FilterSelect({ filter, filterValuesCasing
|
|
3
|
+
export declare function FilterSelect({ filter, filterValuesCasing }: FilterProps): JSX.Element;
|
|
@@ -13,12 +13,12 @@ const Select_1 = require("../../components/Select/Select");
|
|
|
13
13
|
const CounterTag_1 = require("../../components/Tags/CounterTag");
|
|
14
14
|
const utils_1 = require("../../core/utils");
|
|
15
15
|
const hooks_1 = require("../../core/hooks");
|
|
16
|
-
function FilterSelect({ filter, filterValuesCasing
|
|
16
|
+
function FilterSelect({ filter, filterValuesCasing }) {
|
|
17
17
|
var _a;
|
|
18
18
|
const { useTranslate } = (0, hooks_1.useThemeHooks)();
|
|
19
19
|
const { translate } = useTranslate();
|
|
20
20
|
let selectOptions = [];
|
|
21
|
-
const defaultOptionCount = filter.
|
|
21
|
+
const defaultOptionCount = filter.filteredOptions.reduce((acc, option) => acc + option.count, 0);
|
|
22
22
|
selectOptions = [
|
|
23
23
|
{
|
|
24
24
|
value: '',
|
|
@@ -26,11 +26,11 @@ function FilterSelect({ filter, filterValuesCasing, showCounter = true, }) {
|
|
|
26
26
|
react_1.default.createElement(FilterOptionLabel_1.FilterOptionLabel, { "data-translation-key": "catalog.filters.select.all" }, translate('catalog.filters.select.all', 'All')),
|
|
27
27
|
react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, defaultOptionCount))),
|
|
28
28
|
},
|
|
29
|
-
...filter.
|
|
29
|
+
...filter.filteredOptions.map((option) => ({
|
|
30
30
|
value: option.value,
|
|
31
31
|
element: (react_1.default.createElement(FilterOption_1.FilterOption, { key: option.value },
|
|
32
32
|
react_1.default.createElement(FilterOptionLabel_1.FilterOptionLabel, { "data-translation-key": option.value }, (0, utils_1.changeTextCasing)(translate(option.value), filterValuesCasing)),
|
|
33
|
-
|
|
33
|
+
react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, option.count))),
|
|
34
34
|
})),
|
|
35
35
|
];
|
|
36
36
|
return (react_1.default.createElement(FilterSelectWrapper, { "data-component-name": "Filter/FilterSelect" },
|
|
@@ -58,8 +58,8 @@ function Image(props) {
|
|
|
58
58
|
(_a = lightboxContainerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
59
59
|
}
|
|
60
60
|
}, [lightboxImage]);
|
|
61
|
-
const combinedStyles = Object.assign(Object.assign(Object.assign({}, (withLightbox && { cursor: 'pointer' })), (border && { border })), (typeof style === 'string' ?
|
|
62
|
-
const lightboxOverlayStyles = typeof lightboxStyle === 'string' ?
|
|
61
|
+
const combinedStyles = Object.assign(Object.assign(Object.assign({}, (withLightbox && { cursor: 'pointer' })), (border && { border })), (typeof style === 'string' ? { cssText: style } : style));
|
|
62
|
+
const lightboxOverlayStyles = typeof lightboxStyle === 'string' ? { cssText: lightboxStyle } : lightboxStyle;
|
|
63
63
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
64
64
|
lightboxImage ? (react_1.default.createElement(LightboxContainer, { ref: lightboxContainerRef, onClick: handleCloseLightbox, onKeyDown: handleLightboxKeyDown, tabIndex: 0 },
|
|
65
65
|
react_1.default.createElement(Overlay, { style: lightboxOverlayStyles }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MenuItemProps } from '../../core/types';
|
|
3
2
|
import type { JSX } from 'react';
|
|
3
|
+
import type { MenuItemProps } from '../../core/types';
|
|
4
4
|
export declare function MenuItem(props: React.PropsWithChildren<MenuItemProps>): JSX.Element;
|
|
@@ -66,14 +66,9 @@ function MenuItem(props) {
|
|
|
66
66
|
handleExpand();
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
const handleExpandOnEnter = (event) => {
|
|
70
|
-
if (event.key === 'Enter') {
|
|
71
|
-
handleOnClick();
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
69
|
const chevron = hasChevron ? (isExpanded ? (react_1.default.createElement(ChevronDownIcon_1.ChevronDownIcon, { size: "var(--menu-item-label-chevron-size)", color: "--tree-content-color-default" })) : (react_1.default.createElement(ChevronRightIcon_1.ChevronRightIcon, { size: "var(--menu-item-label-chevron-size)", color: "--tree-content-color-default" }))) : null;
|
|
75
70
|
const httpColor = item.deprecated ? 'http-deprecated' : item.httpVerb;
|
|
76
|
-
const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { active: item.active, deprecated: item.deprecated, depth: depth, withChevron: hasChevron, isSeparator: isSeparator, onClick: handleOnClick,
|
|
71
|
+
const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { active: item.active, deprecated: item.deprecated, depth: depth, withChevron: hasChevron, isSeparator: isSeparator, onClick: handleOnClick, ref: labelRef, role: item.link ? 'none' : 'link', "data-testid": "menu-item-label" },
|
|
77
72
|
hasChevron ? react_1.default.createElement(ChevronWrapper, null, chevron) : null,
|
|
78
73
|
item.icon ? react_1.default.createElement(MenuItemIcon, { src: item.icon }) : null,
|
|
79
74
|
react_1.default.createElement(MenuItemLabelTextWrapper, null,
|
|
@@ -85,7 +80,7 @@ function MenuItem(props) {
|
|
|
85
80
|
isDrilldown ? react_1.default.createElement(ArrowRightIcon_1.ArrowRightIcon, { size: "12px" }) : null,
|
|
86
81
|
hasHttpTag ? (react_1.default.createElement(HttpTag_1.HttpTag, { color: httpColor || '' }, item.httpVerb === 'hook' ? 'event' : item.httpVerb)) : null));
|
|
87
82
|
return (react_1.default.createElement(MenuItemWrapper, { "data-component-name": "Menu/MenuItem", className: generateClassName({ type, item, className }) },
|
|
88
|
-
item.link ? (react_1.default.createElement(MenuItemLink, { to: item.link, external: item.external, target: item.target, languageInsensitive: item.languageInsensitive
|
|
83
|
+
item.link ? (react_1.default.createElement(MenuItemLink, { to: item.link, external: item.external, target: item.target, languageInsensitive: item.languageInsensitive }, label)) : (label),
|
|
89
84
|
isNested ? (react_1.default.createElement(MenuItemNestedWrapper, { depth: depth, ref: nestedMenuRef, style: style }, isExpanded || !canUnmount ? props.children : null)) : null,
|
|
90
85
|
item.separatorLine ? (react_1.default.createElement(MenuItemSeparatorLine, { depth: depth, linePosition: item.linePosition })) : null));
|
|
91
86
|
}
|
|
@@ -133,6 +128,7 @@ const MenuItemWrapper = styled_components_1.default.div `
|
|
|
133
128
|
}
|
|
134
129
|
`;
|
|
135
130
|
const MenuItemNestedWrapper = styled_components_1.default.div `
|
|
131
|
+
overflow: hidden;
|
|
136
132
|
order: 1;
|
|
137
133
|
position: relative;
|
|
138
134
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AfterOpenApiDescription: any;
|
|
@@ -22,25 +22,44 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
29
|
exports.NextButton = NextButton;
|
|
27
30
|
const React = __importStar(require("react"));
|
|
28
|
-
const
|
|
31
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
29
32
|
const hooks_1 = require("../../core/hooks");
|
|
33
|
+
const Button_1 = require("../../components/Button/Button");
|
|
30
34
|
const ArrowRightIcon_1 = require("../../icons/ArrowRightIcon/ArrowRightIcon");
|
|
31
35
|
function NextButton({ nextPage, className }) {
|
|
32
|
-
var _a, _b
|
|
36
|
+
var _a, _b;
|
|
33
37
|
const { navigation } = (0, hooks_1.useThemeConfig)();
|
|
34
|
-
const { useTranslate
|
|
35
|
-
const { frontmatter } = usePageProps();
|
|
38
|
+
const { useTranslate } = (0, hooks_1.useThemeHooks)();
|
|
36
39
|
const { translate } = useTranslate();
|
|
37
|
-
|
|
38
|
-
const label = ((_b = (_a = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _a === void 0 ? void 0 : _a.nextButton) === null || _b === void 0 ? void 0 : _b.label) || (nextPage === null || nextPage === void 0 ? void 0 : nextPage.label) || (nextPage === null || nextPage === void 0 ? void 0 : nextPage.routeSlug) || '';
|
|
39
|
-
const link = ((_d = (_c = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _c === void 0 ? void 0 : _c.nextButton) === null || _d === void 0 ? void 0 : _d.link) || (nextPage === null || nextPage === void 0 ? void 0 : nextPage.link);
|
|
40
|
-
const text = ((_e = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _e === void 0 ? void 0 : _e.text) || translate(translationKey, { defaultValue: 'Next page' });
|
|
41
|
-
if (((_f = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _f === void 0 ? void 0 : _f.hide) || !link || !label) {
|
|
40
|
+
if (!nextPage || ((_a = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _a === void 0 ? void 0 : _a.hide)) {
|
|
42
41
|
return React.createElement("div", null, "\u00A0");
|
|
43
42
|
}
|
|
44
|
-
|
|
43
|
+
const nextPageText = nextPage.label || nextPage.routeSlug || '';
|
|
44
|
+
const translationKey = 'page.nextButton';
|
|
45
|
+
const label = ((_b = navigation === null || navigation === void 0 ? void 0 : navigation.nextButton) === null || _b === void 0 ? void 0 : _b.text) || translate(translationKey, { defaultValue: 'Next page' });
|
|
46
|
+
return (React.createElement(NextButtonWrapper, { "data-component-name": "PageNavigation/NextButton", "data-translation-key": translationKey },
|
|
47
|
+
React.createElement(NextPageLabel, null, label),
|
|
48
|
+
React.createElement(NextPageButton, { size: "large", to: nextPage.link, extraClass: className, variant: "link", icon: React.createElement(ArrowRightIcon_1.ArrowRightIcon, null), iconPosition: "right" }, nextPageText)));
|
|
45
49
|
}
|
|
50
|
+
const NextButtonWrapper = styled_components_1.default.div `
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
text-align: right;
|
|
54
|
+
`;
|
|
55
|
+
const NextPageButton = (0, styled_components_1.default)(Button_1.Button) `
|
|
56
|
+
text-wrap: wrap;
|
|
57
|
+
padding-left: 0;
|
|
58
|
+
padding-right: 0;
|
|
59
|
+
`;
|
|
60
|
+
const NextPageLabel = styled_components_1.default.span `
|
|
61
|
+
font-size: var(--font-size-sm);
|
|
62
|
+
line-height: var(--line-height-sm);
|
|
63
|
+
font-weight: var(--font-weight-regular);
|
|
64
|
+
`;
|
|
46
65
|
//# sourceMappingURL=NextButton.js.map
|
|
@@ -7,8 +7,8 @@ exports.PageNavigation = PageNavigation;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const hooks_1 = require("../../core/hooks");
|
|
10
|
-
const NextButton_1 = require("../../components/PageNavigation/NextButton");
|
|
11
10
|
const PreviousButton_1 = require("../../components/PageNavigation/PreviousButton");
|
|
11
|
+
const NextButton_1 = require("../../components/PageNavigation/NextButton");
|
|
12
12
|
function PageNavigation({ nextPage, prevPage, className, }) {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
const { navigation } = (0, hooks_1.useThemeConfig)();
|
|
@@ -5,23 +5,39 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PreviousButton = PreviousButton;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const hooks_1 = require("../../core/hooks");
|
|
10
|
+
const Button_1 = require("../../components/Button/Button");
|
|
10
11
|
const ArrowLeftIcon_1 = require("../../icons/ArrowLeftIcon/ArrowLeftIcon");
|
|
11
12
|
function PreviousButton({ prevPage, className }) {
|
|
12
|
-
var _a, _b
|
|
13
|
+
var _a, _b;
|
|
13
14
|
const { navigation } = (0, hooks_1.useThemeConfig)();
|
|
14
|
-
const { useTranslate
|
|
15
|
-
const { frontmatter } = usePageProps();
|
|
15
|
+
const { useTranslate } = (0, hooks_1.useThemeHooks)();
|
|
16
16
|
const { translate } = useTranslate();
|
|
17
|
-
|
|
18
|
-
const label = ((_b = (_a = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _a === void 0 ? void 0 : _a.previousButton) === null || _b === void 0 ? void 0 : _b.label) || (prevPage === null || prevPage === void 0 ? void 0 : prevPage.label) || (prevPage === null || prevPage === void 0 ? void 0 : prevPage.routeSlug) || '';
|
|
19
|
-
const link = ((_d = (_c = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navigation) === null || _c === void 0 ? void 0 : _c.previousButton) === null || _d === void 0 ? void 0 : _d.link) || (prevPage === null || prevPage === void 0 ? void 0 : prevPage.link);
|
|
20
|
-
const text = ((_e = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _e === void 0 ? void 0 : _e.text) ||
|
|
21
|
-
translate(translationKey, { defaultValue: 'Previous page' });
|
|
22
|
-
if (((_f = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _f === void 0 ? void 0 : _f.hide) || !link || !label) {
|
|
17
|
+
if (!prevPage || ((_a = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _a === void 0 ? void 0 : _a.hide)) {
|
|
23
18
|
return react_1.default.createElement("div", null, "\u00A0");
|
|
24
19
|
}
|
|
25
|
-
|
|
20
|
+
const prevPageText = prevPage.label || prevPage.routeSlug || '';
|
|
21
|
+
const translationKey = 'page.previousButton';
|
|
22
|
+
const label = ((_b = navigation === null || navigation === void 0 ? void 0 : navigation.previousButton) === null || _b === void 0 ? void 0 : _b.text) ||
|
|
23
|
+
translate(translationKey, { defaultValue: 'Previous page' });
|
|
24
|
+
return (react_1.default.createElement(PreviousButtonWrapper, { "data-component-name": "PageNavigation/PreviousButton", "data-translation-key": translationKey },
|
|
25
|
+
react_1.default.createElement(PreviousPageLabel, null, label),
|
|
26
|
+
react_1.default.createElement(PreviousPageButton, { size: "large", to: prevPage.link, extraClass: className, variant: "link", icon: react_1.default.createElement(ArrowLeftIcon_1.ArrowLeftIcon, null), iconPosition: "left" }, prevPageText)));
|
|
26
27
|
}
|
|
28
|
+
const PreviousButtonWrapper = styled_components_1.default.div `
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
text-align: left;
|
|
32
|
+
`;
|
|
33
|
+
const PreviousPageButton = (0, styled_components_1.default)(Button_1.Button) `
|
|
34
|
+
text-wrap: wrap;
|
|
35
|
+
padding-left: 0;
|
|
36
|
+
padding-right: 0;
|
|
37
|
+
`;
|
|
38
|
+
const PreviousPageLabel = styled_components_1.default.span `
|
|
39
|
+
font-size: var(--font-size-sm);
|
|
40
|
+
line-height: var(--line-height-sm);
|
|
41
|
+
font-weight: var(--font-weight-regular);
|
|
42
|
+
`;
|
|
27
43
|
//# sourceMappingURL=PreviousButton.js.map
|
|
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.SearchAiConversationInput = SearchAiConversationInput;
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
|
-
const constants_1 = require("../../core/constants");
|
|
33
32
|
const Button_1 = require("../../components/Button/Button");
|
|
34
33
|
const SendIcon_1 = require("../../icons/SendIcon/SendIcon");
|
|
35
34
|
const hooks_1 = require("../../core/hooks");
|
|
@@ -57,7 +56,7 @@ function SearchAiConversationInput({ isGeneratingResponse, onMessageSent, classN
|
|
|
57
56
|
};
|
|
58
57
|
const isDisabled = isGeneratingResponse || query.trim().length === 0;
|
|
59
58
|
return (react_1.default.createElement(SearchAiConversationInputWrapper, { "data-component-name": "Search/SearchAiConversationInput", className: className },
|
|
60
|
-
react_1.default.createElement(ConversationInput, { ref: inputRef, type: "text", placeholder: placeholder || translate('search.ai.followUpQuestion', 'Ask a follow up question?'), onChange: (e) => setQuery(e.target.value), onKeyUp: handleOnKeyUp, value: query, disabled: isGeneratingResponse
|
|
59
|
+
react_1.default.createElement(ConversationInput, { ref: inputRef, type: "text", placeholder: placeholder || translate('search.ai.followUpQuestion', 'Ask a follow up question?'), onChange: (e) => setQuery(e.target.value), onKeyUp: handleOnKeyUp, value: query, disabled: isGeneratingResponse }),
|
|
61
60
|
react_1.default.createElement(SendButton, { disabled: isDisabled, size: "small", icon: react_1.default.createElement(SendIcon_1.SendIcon, { color: isDisabled
|
|
62
61
|
? '--button-content-color-disabled'
|
|
63
62
|
: 'var(--search-ai-conversation-input-send-button-icon-color)' }), onClick: handleSendMessage })));
|
|
@@ -43,8 +43,9 @@ function Select(props) {
|
|
|
43
43
|
return values
|
|
44
44
|
.map((value) => {
|
|
45
45
|
const selectedOption = options.find((option) => option.value === value);
|
|
46
|
-
return
|
|
47
|
-
|
|
46
|
+
return selectedOption || typeof value === 'string'
|
|
47
|
+
? { value }
|
|
48
|
+
: value;
|
|
48
49
|
})
|
|
49
50
|
.filter((option) => !!option);
|
|
50
51
|
};
|
|
@@ -150,23 +151,11 @@ function Select(props) {
|
|
|
150
151
|
return !!selectedOptions.find((selectOption) => selectOption.value === option.value || selectOption.value === option.label);
|
|
151
152
|
};
|
|
152
153
|
const renderDefaultInput = (inputRef) => {
|
|
153
|
-
return (react_1.default.createElement(SelectInput_1.SelectInput, { id: inputId,
|
|
154
|
+
return (react_1.default.createElement(SelectInput_1.SelectInput, { id: inputId, selectedOptions: selectedOptions, searchValue: searchValue, placeholder: placeholder, stickyValue: stickyInputValue, multiple: multiple, searchable: searchable, clearable: clearable, customIcon: icon, inputRef: inputRef, onlyIcon: onlyIcon, clearHandler: clearHandler, searchHandler: searchHandler, inputBlurHandler: inputBlurHandler, inputFocusHandler: inputFocusHandler, clickHandler: inputClickHandler }));
|
|
154
155
|
};
|
|
155
|
-
return (react_1.default.createElement(exports.SelectWrapper, Object.assign({ "data-component-name": "Select/Select", ref: selectRef }, dataAttributes, { disabled: disabled, "data-testid": dataTestId, className: className
|
|
156
|
-
if (e.key === 'Enter' && document.activeElement === selectRef.current) {
|
|
157
|
-
e.preventDefault();
|
|
158
|
-
setDropdownActive(!dropdownActive);
|
|
159
|
-
}
|
|
160
|
-
}, tabIndex: 0, "aria-haspopup": "listbox", "aria-expanded": dropdownActive, "aria-label": "Select option", onFocus: (e) => {
|
|
161
|
-
var _a;
|
|
162
|
-
if (e.target === selectRef.current) {
|
|
163
|
-
(_a = selectInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
164
|
-
}
|
|
165
|
-
}, onMouseDown: (e) => {
|
|
166
|
-
e.preventDefault();
|
|
167
|
-
} }),
|
|
156
|
+
return (react_1.default.createElement(exports.SelectWrapper, Object.assign({ "data-component-name": "Select/Select", ref: selectRef }, dataAttributes, { disabled: disabled, "data-testid": dataTestId, className: className }),
|
|
168
157
|
react_1.default.createElement(SelectDropdown, { closeOnClick: !multiple, withArrow: withArrow, trigger: renderInput ? renderInput() : renderDefaultInput(selectInputRef), triggerEvent: triggerEvent, placement: placement, alignment: alignment, active: !renderInput ? dropdownActive : undefined },
|
|
169
|
-
react_1.default.createElement(SelectDropdownMenu, {
|
|
158
|
+
react_1.default.createElement(SelectDropdownMenu, { footer: footer }, filteredOptions.length === 0 ? (react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { disabled: true }, "No results")) : (filteredOptions.map((option, index) => {
|
|
170
159
|
return (react_1.default.createElement(react_1.Fragment, { key: index },
|
|
171
160
|
react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { onAction: () => selectHandler(option), prefix: !hideCheckmarkIcon &&
|
|
172
161
|
(checkmarkIconPosition ? checkmarkIconPosition === 'start' : false) &&
|
|
@@ -187,10 +176,6 @@ exports.SelectWrapper = styled_components_1.default.div `
|
|
|
187
176
|
color: var(--select-text-color);
|
|
188
177
|
min-width: 0;
|
|
189
178
|
|
|
190
|
-
&:focus-visible {
|
|
191
|
-
outline: 1px solid var(--button-border-color-focused);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
179
|
${({ disabled }) => disabled &&
|
|
195
180
|
`
|
|
196
181
|
opacity: 0.59;
|
|
@@ -206,6 +191,5 @@ const SelectDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown) `
|
|
|
206
191
|
`;
|
|
207
192
|
const SelectDropdownMenu = (0, styled_components_1.default)(DropdownMenu_1.DropdownMenu) `
|
|
208
193
|
width: 100%;
|
|
209
|
-
margin-top: var(--spacing-unit);
|
|
210
194
|
`;
|
|
211
195
|
//# sourceMappingURL=Select.js.map
|
|
@@ -34,7 +34,7 @@ const Tag_1 = require("../../components/Tag/Tag");
|
|
|
34
34
|
const CloseIcon_1 = require("../../icons/CloseIcon/CloseIcon");
|
|
35
35
|
const Button_1 = require("../../components/Button/Button");
|
|
36
36
|
function SelectInput(props) {
|
|
37
|
-
const { id,
|
|
37
|
+
const { id, onlyIcon, icon, customIcon, selectedOptions, placeholder, stickyValue, multiple, searchable, clearable, clearHandler, searchHandler, clickHandler, searchValue, inputBlurHandler, inputFocusHandler, } = props;
|
|
38
38
|
const inputRef = (0, react_1.useRef)(null);
|
|
39
39
|
const onChangeHandler = (e) => {
|
|
40
40
|
var _a;
|
|
@@ -83,14 +83,10 @@ function SelectInput(props) {
|
|
|
83
83
|
else {
|
|
84
84
|
props.inputRef.current = input;
|
|
85
85
|
}
|
|
86
|
-
}, width: multiple ? (!searchValue && selectedOptions.length ? '10px' : 'auto') : '100%'
|
|
87
|
-
e.stopPropagation();
|
|
88
|
-
}, onMouseDown: (e) => {
|
|
89
|
-
e.preventDefault();
|
|
90
|
-
} }));
|
|
86
|
+
}, width: multiple ? (!searchValue && selectedOptions.length ? '10px' : 'auto') : '100%' }));
|
|
91
87
|
const simpleValue = selectedOptions.length ? (selectedOptions[0].label || selectedOptions[0].element || selectedOptions[0].value) : (react_1.default.createElement(SelectInternalInputPlaceholder, null, placeholder));
|
|
92
88
|
const multipleValues = selectedOptions.length ? (selectTags) : (react_1.default.createElement(SelectInternalInputPlaceholder, null, placeholder));
|
|
93
|
-
return (react_1.default.createElement(exports.SelectInputWrapper, Object.assign({}, props, { id: id, onFocus: onFocusHandler, onClick: onClickHandler
|
|
89
|
+
return (react_1.default.createElement(exports.SelectInputWrapper, Object.assign({}, props, { id: id, onFocus: onFocusHandler, onClick: onClickHandler }),
|
|
94
90
|
!onlyIcon && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
95
91
|
react_1.default.createElement(SelectInputValue, null, multiple ? (searchable ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
96
92
|
selectTags,
|