@redocly/theme 0.55.0-next.7 → 0.55.0-next.8
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/Breadcrumbs/Breadcrumbs.d.ts +2 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.js +2 -1
- package/lib/components/Catalog/Catalog.d.ts +11 -0
- package/lib/components/Catalog/Catalog.js +138 -0
- package/lib/components/Catalog/CatalogActionsRow.d.ts +15 -0
- package/lib/components/Catalog/CatalogActionsRow.js +34 -0
- package/lib/components/Catalog/CatalogCardView/CatalogCard.d.ts +8 -0
- package/lib/components/Catalog/CatalogCardView/CatalogCard.js +179 -0
- package/lib/components/Catalog/CatalogCardView/CatalogCardView.d.ts +8 -0
- package/lib/components/Catalog/CatalogCardView/CatalogCardView.js +20 -0
- package/lib/components/Catalog/CatalogEntities.d.ts +18 -0
- package/lib/components/Catalog/CatalogEntities.js +63 -0
- package/lib/components/Catalog/CatalogEntitiesEmptyState.d.ts +2 -0
- package/lib/components/Catalog/CatalogEntitiesEmptyState.js +38 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +12 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +133 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.d.ts +7 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityInfoBar.js +49 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityLinks.js +48 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +111 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.js +25 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +69 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.d.ts +7 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +48 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +19 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +20 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.js +20 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.js +23 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +21 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +24 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.d.ts +6 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.js +21 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +21 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +37 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.d.ts +10 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +31 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +25 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +27 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +22 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +60 -0
- package/lib/components/Catalog/CatalogEntityIcon.d.ts +5 -0
- package/lib/components/Catalog/CatalogEntityIcon.js +38 -0
- package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +5 -0
- package/lib/components/Catalog/CatalogEntityTypeIcon.js +42 -0
- package/lib/components/Catalog/CatalogHighlight.d.ts +4 -0
- package/lib/components/Catalog/CatalogHighlight.js +48 -0
- package/lib/components/Catalog/CatalogPageDescription.d.ts +9 -0
- package/lib/components/Catalog/CatalogPageDescription.js +52 -0
- package/lib/components/Catalog/CatalogSelector.d.ts +12 -0
- package/lib/components/Catalog/CatalogSelector.js +48 -0
- package/lib/components/Catalog/CatalogSortButton.d.ts +10 -0
- package/lib/components/Catalog/CatalogSortButton.js +71 -0
- package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.d.ts +5 -0
- package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +19 -0
- package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.d.ts +6 -0
- package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +63 -0
- package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.d.ts +5 -0
- package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +19 -0
- package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +11 -0
- package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +101 -0
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +31 -0
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +106 -0
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.d.ts +27 -0
- package/lib/components/Catalog/CatalogTableView/CatalogTableViewRow.js +127 -0
- package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.d.ts +6 -0
- package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +20 -0
- package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.d.ts +7 -0
- package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +66 -0
- package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +9 -0
- package/lib/components/Catalog/CatalogTagsWithTooltip.js +46 -0
- package/lib/components/Catalog/CatalogViewModeToggle.d.ts +7 -0
- package/lib/components/Catalog/CatalogViewModeToggle.js +67 -0
- package/lib/components/Catalog/variables.d.ts +1 -0
- package/lib/components/Catalog/variables.dark.d.ts +1 -0
- package/lib/components/Catalog/variables.dark.js +8 -0
- package/lib/components/Catalog/variables.js +354 -0
- package/lib/components/CatalogClassic/CatalogClassicHighlight.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 +3 -1
- package/lib/components/Filter/FilterContent.js +34 -4
- package/lib/components/Filter/FilterInput.js +35 -3
- package/lib/components/Filter/FilterSelect.d.ts +1 -1
- package/lib/components/Filter/FilterSelect.js +4 -4
- package/lib/components/LoadMore/LoadMore.d.ts +8 -0
- package/lib/components/LoadMore/LoadMore.js +18 -0
- package/lib/components/Markdown/Markdown.js +1 -1
- package/lib/components/PageNavigation/NavigationButton.d.ts +13 -0
- package/lib/components/PageNavigation/NavigationButton.js +32 -0
- package/lib/components/PageNavigation/NextButton.js +10 -29
- package/lib/components/PageNavigation/PageNavigation.js +1 -1
- package/lib/components/PageNavigation/PreviousButton.js +11 -27
- package/lib/components/Search/SearchAiConversationInput.js +2 -1
- package/lib/components/Select/Select.js +3 -3
- package/lib/components/Sidebar/Sidebar.d.ts +3 -0
- package/lib/components/Sidebar/Sidebar.js +3 -2
- package/lib/components/Tag/Tag.d.ts +3 -1
- package/lib/components/Tag/Tag.js +54 -2
- package/lib/components/Tag/variables.js +21 -0
- package/lib/components/Tooltip/Tooltip.d.ts +2 -1
- package/lib/components/Tooltip/Tooltip.js +26 -19
- package/lib/components/Tooltip/variables.js +17 -0
- package/lib/core/constants/catalog.d.ts +1 -0
- package/lib/core/constants/catalog.js +5 -0
- package/lib/core/constants/index.d.ts +1 -0
- package/lib/core/constants/index.js +1 -0
- package/lib/core/constants/search.d.ts +1 -0
- package/lib/core/constants/search.js +2 -1
- 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/useCatalogEntities.d.ts +4 -0
- package/lib/core/hooks/catalog/useCatalogEntities.js +17 -0
- package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.d.ts +15 -0
- package/lib/core/hooks/catalog/useCatalogTableHeaderCellActions.js +23 -0
- package/lib/core/hooks/catalog/useCatalogTableViewRow.d.ts +11 -0
- package/lib/core/hooks/catalog/useCatalogTableViewRow.js +26 -0
- package/lib/core/hooks/index.d.ts +2 -0
- package/lib/core/hooks/index.js +2 -0
- package/lib/core/hooks/use-user-teams.d.ts +1 -0
- package/lib/core/hooks/use-user-teams.js +10 -0
- package/lib/core/styles/dark.js +2 -0
- package/lib/core/styles/global.js +63 -60
- package/lib/core/types/catalog.d.ts +118 -5
- package/lib/core/types/filter.d.ts +1 -0
- package/lib/core/types/hooks.d.ts +11 -4
- 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/telemetry.d.ts +32 -0
- package/lib/core/types/telemetry.js +3 -0
- package/lib/icons/AscSortIcon/AscSortIcon.d.ts +9 -0
- package/lib/icons/AscSortIcon/AscSortIcon.js +25 -0
- package/lib/icons/CardsIcon/CardsIcon.d.ts +9 -0
- package/lib/icons/CardsIcon/CardsIcon.js +25 -0
- package/lib/icons/CaretDownIcon/CaretDownIcon.d.ts +9 -0
- package/lib/icons/CaretDownIcon/CaretDownIcon.js +22 -0
- package/lib/icons/CaretUpIcon/CaretUpIcon.d.ts +9 -0
- package/lib/icons/CaretUpIcon/CaretUpIcon.js +22 -0
- package/lib/icons/DescSortIcon/DescSortIcon.d.ts +9 -0
- package/lib/icons/DescSortIcon/DescSortIcon.js +25 -0
- package/lib/icons/EntityTypeIcon/EntityTypeIcon.d.ts +9 -0
- package/lib/icons/EntityTypeIcon/EntityTypeIcon.js +26 -0
- package/lib/icons/GithubIcon/GithubIcon.d.ts +9 -0
- package/lib/icons/GithubIcon/GithubIcon.js +22 -0
- package/lib/icons/GraphIcon/GraphIcon.d.ts +9 -0
- package/lib/icons/GraphIcon/GraphIcon.js +22 -0
- package/lib/icons/PeopleIcon/PeopleIcon.d.ts +9 -0
- package/lib/icons/PeopleIcon/PeopleIcon.js +27 -0
- package/lib/icons/SlackIcon/SlackIcon.d.ts +9 -0
- package/lib/icons/SlackIcon/SlackIcon.js +29 -0
- package/lib/icons/SortIcon/SortIcon.d.ts +9 -0
- package/lib/icons/SortIcon/SortIcon.js +25 -0
- package/lib/icons/TableIcon/TableIcon.d.ts +9 -0
- package/lib/icons/TableIcon/TableIcon.js +22 -0
- package/lib/icons/TagsIcon/TagsIcon.d.ts +9 -0
- package/lib/icons/TagsIcon/TagsIcon.js +24 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +19 -0
- package/lib/markdoc/components/Tabs/Tab.d.ts +2 -1
- package/lib/markdoc/components/Tabs/Tab.js +10 -2
- package/lib/markdoc/components/Tabs/TabList.js +2 -2
- package/lib/markdoc/components/Tabs/Tabs.d.ts +3 -1
- package/lib/markdoc/components/Tabs/Tabs.js +2 -2
- package/package.json +2 -1
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +7 -2
- package/src/components/Catalog/Catalog.tsx +235 -0
- package/src/components/Catalog/CatalogActionsRow.tsx +58 -0
- package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +227 -0
- package/src/components/Catalog/CatalogCardView/CatalogCardView.tsx +29 -0
- package/src/components/Catalog/CatalogEntities.tsx +107 -0
- package/src/components/Catalog/CatalogEntitiesEmptyState.tsx +38 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +207 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityInfoBar.tsx +60 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityLinks.tsx +67 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +93 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ApiDescriptionProperty.tsx +35 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +83 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +62 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +36 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +38 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/EntityTypeProperty.tsx +33 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/GitProperty.tsx +41 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +42 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +39 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/UserEmailProperty.tsx +31 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +97 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +80 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +92 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +127 -0
- package/src/components/Catalog/CatalogEntityIcon.tsx +41 -0
- package/src/components/Catalog/CatalogEntityTypeIcon.tsx +48 -0
- package/src/components/Catalog/CatalogHighlight.tsx +56 -0
- package/src/components/Catalog/CatalogPageDescription.tsx +72 -0
- package/src/components/Catalog/CatalogSelector.tsx +67 -0
- package/src/components/Catalog/CatalogSortButton.tsx +78 -0
- package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +26 -0
- package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +77 -0
- package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +26 -0
- package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +120 -0
- package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +176 -0
- package/src/components/Catalog/CatalogTableView/CatalogTableViewRow.tsx +180 -0
- package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +28 -0
- package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +77 -0
- package/src/components/Catalog/CatalogTagsWithTooltip.tsx +83 -0
- package/src/components/Catalog/CatalogViewModeToggle.tsx +65 -0
- package/src/components/Catalog/variables.dark.ts +5 -0
- package/src/components/Catalog/variables.ts +351 -0
- package/src/components/CatalogClassic/CatalogClassicHighlight.tsx +1 -1
- package/src/components/Filter/Filter.tsx +10 -2
- package/src/components/Filter/FilterCheckboxes.tsx +8 -4
- package/src/components/Filter/FilterContent.tsx +21 -5
- package/src/components/Filter/FilterInput.tsx +16 -4
- package/src/components/Filter/FilterSelect.tsx +8 -4
- package/src/components/LoadMore/LoadMore.tsx +38 -0
- package/src/components/Markdown/Markdown.tsx +1 -1
- package/src/components/PageNavigation/NavigationButton.tsx +68 -0
- package/src/components/PageNavigation/NextButton.tsx +20 -43
- package/src/components/PageNavigation/PageNavigation.tsx +1 -1
- package/src/components/PageNavigation/PreviousButton.tsx +20 -43
- package/src/components/Search/SearchAiConversationInput.tsx +3 -0
- package/src/components/Select/Select.tsx +5 -3
- package/src/components/Sidebar/Sidebar.tsx +1 -1
- package/src/components/Tag/Tag.tsx +67 -1
- package/src/components/Tag/variables.ts +21 -0
- package/src/components/Tooltip/Tooltip.tsx +31 -22
- package/src/components/Tooltip/variables.ts +17 -0
- package/src/core/constants/catalog.ts +1 -0
- package/src/core/constants/index.ts +1 -0
- package/src/core/constants/search.ts +2 -0
- package/src/core/hooks/__mocks__/use-theme-hooks.ts +1 -0
- package/src/core/hooks/catalog/useCatalogEntities.ts +16 -0
- package/src/core/hooks/catalog/useCatalogTableHeaderCellActions.ts +38 -0
- package/src/core/hooks/catalog/useCatalogTableViewRow.ts +40 -0
- package/src/core/hooks/index.ts +2 -0
- package/src/core/hooks/use-user-teams.ts +8 -0
- package/src/core/styles/dark.ts +2 -0
- package/src/core/styles/global.ts +3 -0
- package/src/core/types/catalog.ts +143 -5
- package/src/core/types/filter.ts +1 -0
- package/src/core/types/hooks.ts +32 -5
- package/src/core/types/index.ts +1 -0
- package/src/core/types/l10n.ts +20 -0
- package/src/core/types/telemetry.ts +36 -0
- package/src/core/utils/load-and-navigate.ts +5 -4
- package/src/icons/AscSortIcon/AscSortIcon.tsx +29 -0
- package/src/icons/CardsIcon/CardsIcon.tsx +38 -0
- package/src/icons/CaretDownIcon/CaretDownIcon.tsx +26 -0
- package/src/icons/CaretUpIcon/CaretUpIcon.tsx +26 -0
- package/src/icons/DescSortIcon/DescSortIcon.tsx +29 -0
- package/src/icons/EntityTypeIcon/EntityTypeIcon.tsx +49 -0
- package/src/icons/GithubIcon/GithubIcon.tsx +35 -0
- package/src/icons/GraphIcon/GraphIcon.tsx +26 -0
- package/src/icons/PeopleIcon/PeopleIcon.tsx +46 -0
- package/src/icons/SlackIcon/SlackIcon.tsx +61 -0
- package/src/icons/SortIcon/SortIcon.tsx +29 -0
- package/src/icons/TableIcon/TableIcon.tsx +26 -0
- package/src/icons/TagsIcon/TagsIcon.tsx +41 -0
- package/src/index.ts +20 -0
- package/src/markdoc/components/Tabs/Tab.tsx +12 -1
- package/src/markdoc/components/Tabs/TabList.tsx +2 -1
- package/src/markdoc/components/Tabs/Tabs.tsx +8 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCatalogTableViewRow = useCatalogTableViewRow;
|
|
4
|
+
const utils_1 = require("../../utils");
|
|
5
|
+
function useCatalogTableViewRow({ entityKey, entityType, catalogConfig, entitiesCatalogConfig, }) {
|
|
6
|
+
const getCatalogSpecificConfigByEntityTypeIncluded = () => {
|
|
7
|
+
var _a;
|
|
8
|
+
if (!entitiesCatalogConfig) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
return Object.values((_a = entitiesCatalogConfig.catalogs) !== null && _a !== void 0 ? _a : {}).find((catalog) => {
|
|
12
|
+
var _a;
|
|
13
|
+
return (_a = catalog.includes) === null || _a === void 0 ? void 0 : _a.some((include) => include.type === entityType);
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
const getEntityDetailsLink = () => {
|
|
17
|
+
const pathPrefix = (0, utils_1.getPathPrefix)();
|
|
18
|
+
const catalogSpecificConfig = getCatalogSpecificConfigByEntityTypeIncluded();
|
|
19
|
+
if (!catalogSpecificConfig || !entitiesCatalogConfig) {
|
|
20
|
+
return `${pathPrefix}/catalogs/${catalogConfig.slug}/entities/${entityKey}`;
|
|
21
|
+
}
|
|
22
|
+
return `${pathPrefix}/catalogs/${catalogSpecificConfig.slug}/entities/${entityKey}`;
|
|
23
|
+
};
|
|
24
|
+
return { getEntityDetailsLink };
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=useCatalogTableViewRow.js.map
|
|
@@ -36,5 +36,7 @@ export * from '../../core/hooks/code-walkthrough/use-renderable-files';
|
|
|
36
36
|
export * from '../../core/hooks/use-element-size';
|
|
37
37
|
export * from '../../core/hooks/use-time-ago';
|
|
38
38
|
export * from '../../core/hooks/use-input-key-commands';
|
|
39
|
+
export * from '../../core/hooks/catalog/useCatalogEntities';
|
|
39
40
|
export * from '../../core/hooks/use-active-page-version';
|
|
40
41
|
export * from '../../core/hooks/use-page-versions';
|
|
42
|
+
export * from '../../core/hooks/use-user-teams';
|
package/lib/core/hooks/index.js
CHANGED
|
@@ -52,6 +52,8 @@ __exportStar(require("../../core/hooks/code-walkthrough/use-renderable-files"),
|
|
|
52
52
|
__exportStar(require("../../core/hooks/use-element-size"), exports);
|
|
53
53
|
__exportStar(require("../../core/hooks/use-time-ago"), exports);
|
|
54
54
|
__exportStar(require("../../core/hooks/use-input-key-commands"), exports);
|
|
55
|
+
__exportStar(require("../../core/hooks/catalog/useCatalogEntities"), exports);
|
|
55
56
|
__exportStar(require("../../core/hooks/use-active-page-version"), exports);
|
|
56
57
|
__exportStar(require("../../core/hooks/use-page-versions"), exports);
|
|
58
|
+
__exportStar(require("../../core/hooks/use-user-teams"), exports);
|
|
57
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useUserTeams(): string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useUserTeams = useUserTeams;
|
|
4
|
+
const hooks_1 = require("../../core/hooks");
|
|
5
|
+
function useUserTeams() {
|
|
6
|
+
const { useUserTeams } = (0, hooks_1.useThemeHooks)();
|
|
7
|
+
const userTeams = useUserTeams();
|
|
8
|
+
return userTeams;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=use-user-teams.js.map
|
package/lib/core/styles/dark.js
CHANGED
|
@@ -12,6 +12,7 @@ const variables_dark_7 = require("../../components/Tag/variables.dark");
|
|
|
12
12
|
const variables_dark_8 = require("../../components/StatusCode/variables.dark");
|
|
13
13
|
const variables_dark_9 = require("../../components/Switch/variables.dark");
|
|
14
14
|
const variables_dark_10 = require("../../markdoc/components/Cards/variables.dark");
|
|
15
|
+
const variables_dark_11 = require("../../components/Catalog/variables.dark");
|
|
15
16
|
const replayDarkMode = (0, styled_components_1.css) `
|
|
16
17
|
/**
|
|
17
18
|
* @tokens Replay Colors
|
|
@@ -314,6 +315,7 @@ exports.darkMode = (0, styled_components_1.css) `
|
|
|
314
315
|
${replayDarkMode}
|
|
315
316
|
${variables_dark_9.switcherDarkMode}
|
|
316
317
|
${variables_dark_10.cardsDarkMode}
|
|
318
|
+
${variables_dark_11.catalogDarkMode}
|
|
317
319
|
|
|
318
320
|
/**
|
|
319
321
|
* @tokens Dark Theme Scrollbar Config
|
|
@@ -10,35 +10,36 @@ const variables_4 = require("../../components/Sidebar/variables");
|
|
|
10
10
|
const variables_5 = require("../../components/Breadcrumbs/variables");
|
|
11
11
|
const variables_6 = require("../../components/Tag/variables");
|
|
12
12
|
const variables_7 = require("../../components/TableOfContent/variables");
|
|
13
|
-
const variables_8 = require("../../components/
|
|
14
|
-
const variables_9 = require("../../components/
|
|
15
|
-
const variables_10 = require("../../components/
|
|
16
|
-
const variables_11 = require("../../components/
|
|
17
|
-
const variables_12 = require("../../components/
|
|
18
|
-
const variables_13 = require("../../components/
|
|
19
|
-
const variables_14 = require("../../
|
|
20
|
-
const variables_15 = require("../../
|
|
21
|
-
const variables_16 = require("../../components/
|
|
22
|
-
const variables_17 = require("../../components/
|
|
23
|
-
const variables_18 = require("../../components/
|
|
24
|
-
const variables_19 = require("../../components/
|
|
25
|
-
const variables_20 = require("../../components/
|
|
26
|
-
const variables_21 = require("../../components/
|
|
27
|
-
const variables_22 = require("../../components/
|
|
28
|
-
const variables_23 = require("../../components/
|
|
29
|
-
const variables_24 = require("../../
|
|
30
|
-
const variables_25 = require("../../markdoc/components/
|
|
31
|
-
const variables_26 = require("../../components/
|
|
32
|
-
const variables_27 = require("../../components/
|
|
33
|
-
const variables_28 = require("../../components/
|
|
34
|
-
const variables_29 = require("../../components/
|
|
35
|
-
const variables_30 = require("../../components/
|
|
36
|
-
const variables_31 = require("../../components/
|
|
37
|
-
const variables_32 = require("../../components/
|
|
38
|
-
const variables_33 = require("../../components/
|
|
39
|
-
const variables_34 = require("../../components/
|
|
40
|
-
const variables_35 = require("../../
|
|
41
|
-
const variables_36 = require("../../markdoc/components/
|
|
13
|
+
const variables_8 = require("../../components/Catalog/variables");
|
|
14
|
+
const variables_9 = require("../../components/Filter/variables");
|
|
15
|
+
const variables_10 = require("../../components/CatalogClassic/variables");
|
|
16
|
+
const variables_11 = require("../../components/Panel/variables");
|
|
17
|
+
const variables_12 = require("../../components/Select/variables");
|
|
18
|
+
const variables_13 = require("../../components/Dropdown/variables");
|
|
19
|
+
const variables_14 = require("../../components/Tooltip/variables");
|
|
20
|
+
const variables_15 = require("../../icons/CheckboxIcon/variables");
|
|
21
|
+
const variables_16 = require("../../components/Admonition/variables");
|
|
22
|
+
const variables_17 = require("../../components/Footer/variables");
|
|
23
|
+
const variables_18 = require("../../components/Button/variables");
|
|
24
|
+
const variables_19 = require("../../components/Navbar/variables");
|
|
25
|
+
const variables_20 = require("../../components/Search/variables");
|
|
26
|
+
const variables_21 = require("../../components/Menu/variables");
|
|
27
|
+
const variables_22 = require("../../components/CodeBlock/variables");
|
|
28
|
+
const variables_23 = require("../../components/Product/variables");
|
|
29
|
+
const variables_24 = require("../../components/Markdown/variables");
|
|
30
|
+
const variables_25 = require("../../markdoc/components/Tabs/variables");
|
|
31
|
+
const variables_26 = require("../../markdoc/components/Mermaid/variables");
|
|
32
|
+
const variables_27 = require("../../components/LastUpdated/variables");
|
|
33
|
+
const variables_28 = require("../../components/Logo/variables");
|
|
34
|
+
const variables_29 = require("../../components/StatusCode/variables");
|
|
35
|
+
const variables_30 = require("../../components/Segmented/variables");
|
|
36
|
+
const variables_31 = require("../../components/UserMenu/variables");
|
|
37
|
+
const variables_32 = require("../../components/Tags/variables");
|
|
38
|
+
const variables_33 = require("../../components/VersionPicker/variables");
|
|
39
|
+
const variables_34 = require("../../components/DatePicker/variables");
|
|
40
|
+
const variables_35 = require("../../components/Switch/variables");
|
|
41
|
+
const variables_36 = require("../../markdoc/components/Cards/variables");
|
|
42
|
+
const variables_37 = require("../../markdoc/components/CodeWalkthrough/variables");
|
|
42
43
|
const themeColors = (0, styled_components_1.css) `
|
|
43
44
|
/* === Palette === */
|
|
44
45
|
/**
|
|
@@ -367,6 +368,7 @@ const typography = (0, styled_components_1.css) `
|
|
|
367
368
|
--font-size-base: 14px; // Base font size of the entire system.
|
|
368
369
|
--font-size-sm: 12px;
|
|
369
370
|
--font-size-lg: 16px;
|
|
371
|
+
--font-size-md: 18px;
|
|
370
372
|
--font-size-xl: 20px;
|
|
371
373
|
|
|
372
374
|
/**
|
|
@@ -1181,64 +1183,65 @@ const replay = (0, styled_components_1.css) `
|
|
|
1181
1183
|
`;
|
|
1182
1184
|
exports.styles = (0, styled_components_1.css) `
|
|
1183
1185
|
:root {
|
|
1184
|
-
${
|
|
1186
|
+
${variables_16.admonition}
|
|
1185
1187
|
${apiReferenceDocs}
|
|
1186
|
-
${
|
|
1188
|
+
${variables_11.apiReferencePanels}
|
|
1187
1189
|
${badges}
|
|
1188
1190
|
${borders}
|
|
1189
1191
|
${variables_5.breadcrumbs}
|
|
1190
|
-
${
|
|
1191
|
-
${
|
|
1192
|
-
${
|
|
1193
|
-
${
|
|
1194
|
-
${
|
|
1192
|
+
${variables_18.button}
|
|
1193
|
+
${variables_36.cards}
|
|
1194
|
+
${variables_8.catalog}
|
|
1195
|
+
${variables_10.catalogClassic}
|
|
1196
|
+
${variables_22.code}
|
|
1197
|
+
${variables_37.codeWalkthrough}
|
|
1195
1198
|
${docsDropdown}
|
|
1196
|
-
${
|
|
1199
|
+
${variables_13.dropdown}
|
|
1197
1200
|
${error}
|
|
1198
|
-
${
|
|
1199
|
-
${
|
|
1201
|
+
${variables_9.filter}
|
|
1202
|
+
${variables_17.footer}
|
|
1200
1203
|
${headingsTypography}
|
|
1201
|
-
${
|
|
1204
|
+
${variables_32.httpTag}
|
|
1202
1205
|
${inputs}
|
|
1203
1206
|
${variables_1.languagePicker}
|
|
1204
|
-
${
|
|
1207
|
+
${variables_27.lastUpdated}
|
|
1205
1208
|
${links}
|
|
1206
1209
|
${loadProgressBar}
|
|
1207
|
-
${
|
|
1208
|
-
${
|
|
1209
|
-
${
|
|
1210
|
-
${
|
|
1211
|
-
${
|
|
1212
|
-
${
|
|
1210
|
+
${variables_28.logo}
|
|
1211
|
+
${variables_24.markdown}
|
|
1212
|
+
${variables_25.markdownTabs}
|
|
1213
|
+
${variables_26.mermaid}
|
|
1214
|
+
${variables_21.menu}
|
|
1215
|
+
${variables_21.mobileMenu}
|
|
1213
1216
|
${modal}
|
|
1214
|
-
${
|
|
1217
|
+
${variables_19.navbar}
|
|
1215
1218
|
${pages}
|
|
1216
|
-
${
|
|
1217
|
-
${
|
|
1218
|
-
${
|
|
1219
|
-
${
|
|
1219
|
+
${variables_23.productPicker}
|
|
1220
|
+
${variables_11.responsePanelColors}
|
|
1221
|
+
${variables_20.search}
|
|
1222
|
+
${variables_12.select}
|
|
1220
1223
|
${variables_4.sidebar}
|
|
1221
1224
|
${sizeAndSpace}
|
|
1222
1225
|
${variables_6.tag}
|
|
1223
1226
|
${themeColors}
|
|
1224
1227
|
${tile}
|
|
1225
1228
|
${variables_7.toc}
|
|
1226
|
-
${
|
|
1229
|
+
${variables_14.tooltip}
|
|
1227
1230
|
${typography}
|
|
1228
|
-
${
|
|
1229
|
-
${
|
|
1231
|
+
${variables_31.userMenu}
|
|
1232
|
+
${variables_33.versionPicker}
|
|
1230
1233
|
${zIndexDepth}
|
|
1231
1234
|
${scorecardColors}
|
|
1232
|
-
${
|
|
1235
|
+
${variables_29.statusCode}
|
|
1233
1236
|
${tab}
|
|
1234
1237
|
${icon}
|
|
1235
1238
|
${tree}
|
|
1236
|
-
${
|
|
1237
|
-
${
|
|
1238
|
-
${
|
|
1239
|
+
${variables_30.segmented}
|
|
1240
|
+
${variables_35.switcher}
|
|
1241
|
+
${variables_15.checkbox}
|
|
1239
1242
|
${variables_3.feedback}
|
|
1240
1243
|
${variables_2.scorecard}
|
|
1241
|
-
${
|
|
1244
|
+
${variables_34.datePicker}
|
|
1242
1245
|
${replay}
|
|
1243
1246
|
|
|
1244
1247
|
background-color: var(--bg-color);
|
|
@@ -1,4 +1,35 @@
|
|
|
1
|
+
import { InfiniteData, UseInfiniteQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { CatalogEntityConfig, LayoutVariant } from '@redocly/config';
|
|
1
3
|
import type { CatalogFilterConfig } from '../../config';
|
|
4
|
+
export type SortOption = 'title' | '-title' | 'type' | '-type';
|
|
5
|
+
export type UseCatalogResponse = {
|
|
6
|
+
filters: ResolvedFilter[];
|
|
7
|
+
filterQuery: string;
|
|
8
|
+
searchQuery: string;
|
|
9
|
+
setSearchQuery: (query: string) => void;
|
|
10
|
+
sortOption: SortOption | null;
|
|
11
|
+
setSortOption: (option: SortOption | null) => void;
|
|
12
|
+
handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
|
|
13
|
+
isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
|
|
14
|
+
viewMode: CatalogViewMode;
|
|
15
|
+
setViewMode: (mode: CatalogViewMode) => void;
|
|
16
|
+
entitiesCounter: number;
|
|
17
|
+
setEntitiesCounter: (counter: number) => void;
|
|
18
|
+
onChangeViewClick: () => void;
|
|
19
|
+
onChangeCollapseSidebarClick: () => void;
|
|
20
|
+
layout: LayoutVariant;
|
|
21
|
+
collapsedSidebar: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type UseCatalogSortResponse = {
|
|
24
|
+
sortOption: SortOption | null;
|
|
25
|
+
setSortOption: (option: SortOption | null) => void;
|
|
26
|
+
handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
|
|
27
|
+
isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
|
|
28
|
+
};
|
|
29
|
+
export type UseCatalogSearchResponse = {
|
|
30
|
+
searchQuery: string;
|
|
31
|
+
setSearchQuery: (query: string) => void;
|
|
32
|
+
};
|
|
2
33
|
export type FilteredCatalog = {
|
|
3
34
|
groups: {
|
|
4
35
|
title: string;
|
|
@@ -13,10 +44,6 @@ export type ResolvedFilter = Omit<CatalogFilterConfig, 'options'> & {
|
|
|
13
44
|
value: string;
|
|
14
45
|
count: number;
|
|
15
46
|
}[];
|
|
16
|
-
filteredOptions: {
|
|
17
|
-
value: string;
|
|
18
|
-
count: number;
|
|
19
|
-
}[];
|
|
20
47
|
toggleOption: (option: string) => void;
|
|
21
48
|
selectOption: (option: string) => void;
|
|
22
49
|
parentUsed: boolean;
|
|
@@ -39,9 +66,95 @@ export type CatalogItem = {
|
|
|
39
66
|
uniqueWarnings: number;
|
|
40
67
|
}>;
|
|
41
68
|
scoreCardSlug?: string;
|
|
42
|
-
tags?:
|
|
69
|
+
tags?: string[];
|
|
43
70
|
versions?: CatalogItem[];
|
|
44
71
|
version?: string;
|
|
45
72
|
versionFolderId?: string;
|
|
46
73
|
[k: string]: unknown;
|
|
47
74
|
};
|
|
75
|
+
export type DefaultCatalogSlug = 'services' | 'users' | 'teams' | 'domains' | 'api-descriptions' | 'all';
|
|
76
|
+
export type CatalogApiResults<T, L> = {
|
|
77
|
+
query: UseInfiniteQueryResult<InfiniteData<L, unknown>, Error>;
|
|
78
|
+
items: T[];
|
|
79
|
+
total: number;
|
|
80
|
+
};
|
|
81
|
+
export type CatalogApiParams = {
|
|
82
|
+
limit?: number;
|
|
83
|
+
filter?: string;
|
|
84
|
+
sort?: string;
|
|
85
|
+
search?: string;
|
|
86
|
+
};
|
|
87
|
+
export type UseCatalogEntitiesProps = {
|
|
88
|
+
entitiesTypes: string[];
|
|
89
|
+
excludedEntities?: CatalogEntityConfig['excludes'];
|
|
90
|
+
};
|
|
91
|
+
export type UseCatalogEntitiesResponse = {
|
|
92
|
+
setEntitiesCounter: (counter: number) => void;
|
|
93
|
+
};
|
|
94
|
+
export type EntityType = 'service' | 'domain' | 'team' | 'user' | 'api-description';
|
|
95
|
+
export type CatalogViewMode = 'cards' | 'table';
|
|
96
|
+
export type CatalogSwitcherItem = {
|
|
97
|
+
labelTranslationKey: string;
|
|
98
|
+
slug: string;
|
|
99
|
+
selected: boolean;
|
|
100
|
+
};
|
|
101
|
+
export type BffCatalogRelatedEntity = {
|
|
102
|
+
readonly id: string;
|
|
103
|
+
type: string;
|
|
104
|
+
key: string;
|
|
105
|
+
title: string;
|
|
106
|
+
summary?: string | null;
|
|
107
|
+
readonly source: 'api' | 'file';
|
|
108
|
+
sourceFile?: string | null;
|
|
109
|
+
metadata?: Record<string, any>;
|
|
110
|
+
readonly createdAt: string | null;
|
|
111
|
+
readonly updatedAt: string | null;
|
|
112
|
+
};
|
|
113
|
+
export type BffCatalogEntity = {
|
|
114
|
+
readonly id: string;
|
|
115
|
+
readonly organizationId: string;
|
|
116
|
+
readonly projectId: string;
|
|
117
|
+
key: string;
|
|
118
|
+
type: string;
|
|
119
|
+
title: string;
|
|
120
|
+
readonly source: 'api' | 'file';
|
|
121
|
+
domains?: Array<BffCatalogRelatedEntity>;
|
|
122
|
+
owners?: Array<BffCatalogRelatedEntity>;
|
|
123
|
+
summary?: string;
|
|
124
|
+
tags?: Array<string>;
|
|
125
|
+
metadata?: Record<string, any>;
|
|
126
|
+
git?: Array<string>;
|
|
127
|
+
contact?: {
|
|
128
|
+
slack?: {
|
|
129
|
+
channels?: Array<{
|
|
130
|
+
name: string;
|
|
131
|
+
}>;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
links?: Array<{
|
|
135
|
+
label: string;
|
|
136
|
+
url: string;
|
|
137
|
+
}>;
|
|
138
|
+
sourceFile?: string;
|
|
139
|
+
readonly object: 'catalogEntityView';
|
|
140
|
+
readonly createdAt: string;
|
|
141
|
+
readonly updatedAt: string;
|
|
142
|
+
};
|
|
143
|
+
export type BffCatalogEntityList = {
|
|
144
|
+
object: 'list';
|
|
145
|
+
page: Page;
|
|
146
|
+
items: Array<BffCatalogEntity>;
|
|
147
|
+
};
|
|
148
|
+
export type BffCatalogRelatedEntityList = {
|
|
149
|
+
object: 'list';
|
|
150
|
+
page: Page;
|
|
151
|
+
items: Array<BffCatalogRelatedEntity>;
|
|
152
|
+
};
|
|
153
|
+
export type Page = {
|
|
154
|
+
endCursor: string | null;
|
|
155
|
+
startCursor: string | null;
|
|
156
|
+
hasNextPage: boolean;
|
|
157
|
+
hasPrevPage: boolean;
|
|
158
|
+
limit: number;
|
|
159
|
+
total: number;
|
|
160
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { PageProps, ResolvedNavItemWithLink, Version } from '@redocly/config';
|
|
1
|
+
import type { CatalogEntityConfig, PageProps, ResolvedNavItemWithLink, Version } from '@redocly/config';
|
|
3
2
|
import type { ShikiTransformer } from '@shikijs/types';
|
|
4
3
|
import type { Callback, TFunction as TFunc } from 'i18next';
|
|
5
4
|
import type { To, Location, NavigateFunction } from 'react-router-dom';
|
|
6
5
|
import type { CatalogConfig, ProductUiConfig } from '../../config';
|
|
7
|
-
import type { UserMenuData,
|
|
6
|
+
import type { UserMenuData, UseCatalogResponse, ItemState, SearchItemData, SubmitFeedbackParams, TFunction, BreadcrumbItem, DrilldownMenuItemDetails, SearchFacet, SearchFilterItem, SearchFacetQuery, AiSearchConversationItem, CatalogApiResults, CatalogApiParams, FilteredCatalog, UseCatalogSortResponse, UseCatalogSearchResponse, EventType, SendEventParams } from '../../core/types';
|
|
7
|
+
import { BffCatalogEntity, BffCatalogEntityList, BffCatalogRelatedEntity, BffCatalogRelatedEntityList } from '../../core/types';
|
|
8
8
|
import { AiSearchError } from '../../core/constants';
|
|
9
9
|
export type ThemeHooks = {
|
|
10
10
|
useTranslate: () => {
|
|
@@ -101,9 +101,16 @@ export type ThemeHooks = {
|
|
|
101
101
|
prevPage?: ResolvedNavItemWithLink;
|
|
102
102
|
nextPage?: ResolvedNavItemWithLink;
|
|
103
103
|
} | undefined;
|
|
104
|
+
useCatalog: (config?: CatalogEntityConfig, entitiesCounterInitial?: number) => UseCatalogResponse;
|
|
105
|
+
useCatalogSort: () => UseCatalogSortResponse;
|
|
106
|
+
useCatalogSearch: () => UseCatalogSearchResponse;
|
|
107
|
+
useFetchCatalogEntities: (params: CatalogApiParams, initialData?: BffCatalogEntityList) => CatalogApiResults<BffCatalogEntity, BffCatalogEntityList>;
|
|
108
|
+
useFetchCatalogEntitiesRelations: (params: CatalogApiParams & {
|
|
109
|
+
entityKey: string;
|
|
110
|
+
}, initialData?: BffCatalogRelatedEntityList) => CatalogApiResults<BffCatalogRelatedEntity, BffCatalogRelatedEntityList>;
|
|
104
111
|
useCatalogClassic: (config: CatalogConfig) => FilteredCatalog;
|
|
105
112
|
useTelemetry: () => {
|
|
106
|
-
send(
|
|
113
|
+
send<TEventType extends EventType>(event: SendEventParams<TEventType>): void;
|
|
107
114
|
};
|
|
108
115
|
useUserTeams: () => string[];
|
|
109
116
|
usePageProps: <T extends Record<string, unknown>>() => PageProps & T;
|
package/lib/core/types/index.js
CHANGED
|
@@ -31,4 +31,5 @@ __exportStar(require("../../core/types/common"), exports);
|
|
|
31
31
|
__exportStar(require("../../core/types/open-api-server"), exports);
|
|
32
32
|
__exportStar(require("../../core/types/marker"), exports);
|
|
33
33
|
__exportStar(require("../../core/types/code-walkthrough"), exports);
|
|
34
|
+
__exportStar(require("../../core/types/telemetry"), exports);
|
|
34
35
|
//# sourceMappingURL=index.js.map
|
package/lib/core/types/l10n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TOptions } from 'i18next';
|
|
2
|
-
export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeLayout' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.implementedInterfaces' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description';
|
|
2
|
+
export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.add' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'catalog.catalogs.all.title' | 'catalog.catalogs.all.description' | 'catalog.catalogs.all.switcherLabel' | 'catalog.catalogs.service.title' | 'catalog.catalogs.service.description' | 'catalog.catalogs.service.switcherLabel' | 'catalog.catalogs.user.title' | 'catalog.catalogs.user.description' | 'catalog.catalogs.user.switcherLabel' | 'catalog.catalogs.team.title' | 'catalog.catalogs.team.description' | 'catalog.catalogs.team.switcherLabel' | 'catalog.catalogs.domain.title' | 'catalog.catalogs.domain.description' | 'catalog.catalogs.domain.switcherLabel' | 'catalog.catalogs.apiDescription.title' | 'catalog.catalogs.apiDescription.description' | 'catalog.catalogs.apiDescription.switcherLabel' | 'catalog.entity.metadata.title' | 'catalog.entity.properties.apiDescription.title' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeLayout' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.submit' | 'feedback.cancel' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'mobileMenu.version' | 'navbar.products' | 'page.nextButton' | 'page.previousButton' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.viewSecurityDetails' | 'openapi.noResponseExample' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.showOptionalScopes' | 'openapi.hideOptionalScopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.implementedInterfaces' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'graphql.content.fragment' | 'codeWalkthrough.download' | 'codeWalkthrough.preview' | 'time.justNow' | 'time.past.second' | 'time.past.seconds' | 'time.past.minute' | 'time.past.minutes' | 'time.past.hour' | 'time.past.hours' | 'time.past.day' | 'time.past.days' | 'time.past.week' | 'time.past.weeks' | 'time.past.month' | 'time.past.months' | 'time.past.year' | 'time.past.years' | 'page.internalServerError.title' | 'page.internalServerError.description';
|
|
3
3
|
export type Locale = {
|
|
4
4
|
code: string;
|
|
5
5
|
name: string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AsyncApiRealm } from '@redocly/realm-asyncapi-sdk';
|
|
2
|
+
type ExtractEventType<T> = T extends {
|
|
3
|
+
span?: {
|
|
4
|
+
attributes?: {
|
|
5
|
+
'cloudevents.event_type': infer EventType;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
} ? EventType : never;
|
|
9
|
+
export type EventType = ExtractEventType<AsyncApiRealm.Messages>;
|
|
10
|
+
type GetMessageForEventType<TEventType extends EventType> = Extract<AsyncApiRealm.Messages, {
|
|
11
|
+
span?: {
|
|
12
|
+
attributes?: {
|
|
13
|
+
'cloudevents.event_type': TEventType;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
type ExtractEventDataForType<TEventType extends EventType> = GetMessageForEventType<TEventType> extends {
|
|
18
|
+
span?: {
|
|
19
|
+
attributes?: infer Attrs;
|
|
20
|
+
};
|
|
21
|
+
} ? {
|
|
22
|
+
[K in keyof Attrs as K extends `cloudevents.event_data.${string}` ? K : never]: Attrs[K];
|
|
23
|
+
} : never;
|
|
24
|
+
export type ConvertEventDataToPayload<T> = {
|
|
25
|
+
[K in keyof T as K extends `cloudevents.event_data.${infer FieldName}` ? FieldName : never]: T[K];
|
|
26
|
+
};
|
|
27
|
+
export type EventPayload<TEventType extends EventType> = ConvertEventDataToPayload<ExtractEventDataForType<TEventType>>;
|
|
28
|
+
export interface SendEventParams<TEventType extends EventType> {
|
|
29
|
+
type: TEventType;
|
|
30
|
+
payload?: EventPayload<TEventType>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IconProps } from '../../icons/types';
|
|
3
|
+
export declare const AscSortIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
|
|
4
|
+
'data-component-name': string;
|
|
5
|
+
} & {
|
|
6
|
+
color?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & React.SVGProps<SVGSVGElement>, "data-component-name">;
|
|
@@ -0,0 +1,25 @@
|
|
|
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.AscSortIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const utils_1 = require("../../core/utils");
|
|
10
|
+
const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
11
|
+
react_1.default.createElement("path", { d: "M9 11L9.707 10.293L11.5 12.086V2H12.5V12.086L14.293 10.293L15 11L12 14L9 11Z", fill: "#22242B" }),
|
|
12
|
+
react_1.default.createElement("path", { d: "M8 9H1V10H8V9Z", fill: "#22242B" }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M8 6H3V7H8V6Z", fill: "#22242B" }),
|
|
14
|
+
react_1.default.createElement("path", { d: "M8 3H5V4H8V3Z", fill: "#22242B" })));
|
|
15
|
+
exports.AscSortIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
|
|
16
|
+
'data-component-name': 'icons/AscSortIcon/AscSortIcon',
|
|
17
|
+
})) `
|
|
18
|
+
path {
|
|
19
|
+
fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
height: ${({ size }) => size || '16px'};
|
|
23
|
+
width: ${({ size }) => size || '16px'};
|
|
24
|
+
`;
|
|
25
|
+
//# sourceMappingURL=AscSortIcon.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IconProps } from '../../icons/types';
|
|
3
|
+
export declare const CardsIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
|
|
4
|
+
'data-component-name': string;
|
|
5
|
+
} & {
|
|
6
|
+
color?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & React.SVGProps<SVGSVGElement>, "data-component-name">;
|
|
@@ -0,0 +1,25 @@
|
|
|
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.CardsIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const utils_1 = require("../../core/utils");
|
|
10
|
+
const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
11
|
+
react_1.default.createElement("path", { d: "M4 0H1C0.734784 0 0.48043 0.105357 0.292893 0.292893C0.105357 0.48043 0 0.734784 0 1V4C0 4.26522 0.105357 4.51957 0.292893 4.70711C0.48043 4.89464 0.734784 5 1 5H4C4.26522 5 4.51957 4.89464 4.70711 4.70711C4.89464 4.51957 5 4.26522 5 4V1C5 0.734784 4.89464 0.48043 4.70711 0.292893C4.51957 0.105357 4.26522 0 4 0ZM4 4H1V1H4V4Z", fill: "#22242B" }),
|
|
12
|
+
react_1.default.createElement("path", { d: "M11 0H8C7.73478 0 7.48043 0.105357 7.29289 0.292893C7.10536 0.48043 7 0.734784 7 1V4C7 4.26522 7.10536 4.51957 7.29289 4.70711C7.48043 4.89464 7.73478 5 8 5H11C11.2652 5 11.5196 4.89464 11.7071 4.70711C11.8946 4.51957 12 4.26522 12 4V1C12 0.734784 11.8946 0.48043 11.7071 0.292893C11.5196 0.105357 11.2652 0 11 0ZM11 4H8V1H11V4Z", fill: "#22242B" }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M4 7H1C0.734784 7 0.48043 7.10536 0.292893 7.29289C0.105357 7.48043 0 7.73478 0 8V11C0 11.2652 0.105357 11.5196 0.292893 11.7071C0.48043 11.8946 0.734784 12 1 12H4C4.26522 12 4.51957 11.8946 4.70711 11.7071C4.89464 11.5196 5 11.2652 5 11V8C5 7.73478 4.89464 7.48043 4.70711 7.29289C4.51957 7.10536 4.26522 7 4 7ZM4 11H1V8H4V11Z", fill: "#22242B" }),
|
|
14
|
+
react_1.default.createElement("path", { d: "M11 7H8C7.73478 7 7.48043 7.10536 7.29289 7.29289C7.10536 7.48043 7 7.73478 7 8V11C7 11.2652 7.10536 11.5196 7.29289 11.7071C7.48043 11.8946 7.73478 12 8 12H11C11.2652 12 11.5196 11.8946 11.7071 11.7071C11.8946 11.5196 12 11.2652 12 11V8C12 7.73478 11.8946 7.48043 11.7071 7.29289C11.5196 7.10536 11.2652 7 11 7ZM11 11H8V8H11V11Z", fill: "#22242B" })));
|
|
15
|
+
exports.CardsIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
|
|
16
|
+
'data-component-name': 'icons/CardsIcon/CardsIcon',
|
|
17
|
+
})) `
|
|
18
|
+
path {
|
|
19
|
+
fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
height: ${({ size }) => size || '16px'};
|
|
23
|
+
width: ${({ size }) => size || '16px'};
|
|
24
|
+
`;
|
|
25
|
+
//# sourceMappingURL=CardsIcon.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IconProps } from '../../icons/types';
|
|
3
|
+
export declare const CaretDownIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
|
|
4
|
+
'data-component-name': string;
|
|
5
|
+
} & {
|
|
6
|
+
color?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & React.SVGProps<SVGSVGElement>, "data-component-name">;
|