@redocly/theme 0.52.0-next.2 → 0.52.0-next.3

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.
Files changed (48) hide show
  1. package/lib/components/Catalog/Catalog.js +2 -26
  2. package/lib/components/Catalog/CatalogCard.js +1 -0
  3. package/lib/components/Catalog/CatalogVirtualizedGroups.d.ts +25 -0
  4. package/lib/components/Catalog/CatalogVirtualizedGroups.js +183 -0
  5. package/lib/components/Catalog/variables.js +3 -0
  6. package/lib/components/Menu/MenuItem.js +1 -1
  7. package/lib/components/Navbar/NavbarItem.js +4 -1
  8. package/lib/components/Search/SearchAiMessage.js +6 -5
  9. package/lib/components/Search/SearchDialog.js +1 -1
  10. package/lib/core/hooks/__mocks__/index.d.ts +1 -0
  11. package/lib/core/hooks/__mocks__/index.js +1 -0
  12. package/lib/core/hooks/__mocks__/use-element-size.d.ts +4 -0
  13. package/lib/core/hooks/__mocks__/use-element-size.js +9 -0
  14. package/lib/core/hooks/index.d.ts +1 -0
  15. package/lib/core/hooks/index.js +1 -0
  16. package/lib/core/hooks/menu/use-nested-menu.js +5 -0
  17. package/lib/core/hooks/use-element-size.d.ts +13 -0
  18. package/lib/core/hooks/use-element-size.js +75 -0
  19. package/lib/core/styles/global.js +0 -1
  20. package/lib/core/types/l10n.d.ts +1 -1
  21. package/lib/icons/CheckboxFilledIcon/CheckboxFilledIcon.d.ts +9 -0
  22. package/lib/icons/CheckboxFilledIcon/CheckboxFilledIcon.js +22 -0
  23. package/lib/icons/WarningAltFilled/WarningAltFilled.d.ts +9 -0
  24. package/lib/icons/WarningAltFilled/WarningAltFilled.js +23 -0
  25. package/lib/index.d.ts +3 -1
  26. package/lib/index.js +3 -1
  27. package/package.json +1 -1
  28. package/src/components/Catalog/Catalog.tsx +3 -37
  29. package/src/components/Catalog/CatalogCard.tsx +1 -0
  30. package/src/components/Catalog/CatalogVirtualizedGroups.tsx +236 -0
  31. package/src/components/Catalog/variables.ts +3 -0
  32. package/src/components/Menu/MenuItem.tsx +1 -0
  33. package/src/components/Navbar/NavbarItem.tsx +5 -1
  34. package/src/components/Search/SearchAiMessage.tsx +4 -4
  35. package/src/components/Search/SearchDialog.tsx +1 -1
  36. package/src/core/hooks/__mocks__/index.ts +1 -0
  37. package/src/core/hooks/__mocks__/use-element-size.ts +6 -0
  38. package/src/core/hooks/index.ts +1 -0
  39. package/src/core/hooks/menu/use-nested-menu.ts +4 -0
  40. package/src/core/hooks/use-element-size.ts +98 -0
  41. package/src/core/styles/global.ts +0 -1
  42. package/src/core/types/l10n.ts +2 -0
  43. package/src/icons/CheckboxFilledIcon/CheckboxFilledIcon.tsx +23 -0
  44. package/src/icons/WarningAltFilled/WarningAltFilled.tsx +24 -0
  45. package/src/index.ts +3 -1
  46. package/lib/components/Footer/FooterLogo.d.ts +0 -3
  47. package/lib/components/Footer/FooterLogo.js +0 -22
  48. package/src/components/Footer/FooterLogo.tsx +0 -20
@@ -10,13 +10,12 @@ const styled_components_1 = __importDefault(require("styled-components"));
10
10
  const utils_1 = require("../../core/utils");
11
11
  const hooks_1 = require("../../core/hooks");
12
12
  const H2_1 = require("../../components/Typography/H2");
13
- const CatalogCard_1 = require("../../components/Catalog/CatalogCard");
14
13
  const FilterContent_1 = require("../../components/Filter/FilterContent");
15
14
  const FilterPopover_1 = require("../../components/Filter/FilterPopover");
16
15
  const CatalogHighlight_1 = require("../../components/Catalog/CatalogHighlight");
17
16
  const CatalogActions_1 = require("../../components/Catalog/CatalogActions");
18
17
  const Sidebar_1 = require("../../components/Sidebar/Sidebar");
19
- const CounterTag_1 = require("../../components/Tags/CounterTag");
18
+ const CatalogVirtualizedGroups_1 = require("../../components/Catalog/CatalogVirtualizedGroups");
20
19
  function Catalog(props) {
21
20
  const { catalogConfig } = props.pageProps;
22
21
  const { useTranslate, useCatalog } = (0, hooks_1.useThemeHooks)();
@@ -39,25 +38,8 @@ function Catalog(props) {
39
38
  ' ',
40
39
  translate(catalogConfig.descriptionTranslationKey, catalogConfig.description),
41
40
  ' ')) : null),
42
- groups.map((group) => (react_1.default.createElement(react_1.default.Fragment, { key: group.title },
43
- react_1.default.createElement(CatalogSeparator, { "data-testid": "catalog-separator" },
44
- react_1.default.createElement(CatalogSeparatorLabel, null, group.title),
45
- react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, group.items.length)),
46
- react_1.default.createElement(CatalogCards, null, group.items.map((item) => (react_1.default.createElement(CatalogCard_1.CatalogCard, { item: item, key: item.link })))))))))));
41
+ react_1.default.createElement(CatalogVirtualizedGroups_1.CatalogVirtualizedGroups, { groups: groups, filters: filters, filterTerm: filterTerm })))));
47
42
  }
48
- const CatalogSeparator = styled_components_1.default.div `
49
- display: flex;
50
- align-items: center;
51
- color: var(--catalog-separator-color);
52
- font-size: var(--catalog-separator-font-size);
53
- font-weight: var(--catalog-separator-font-weight);
54
- border-top: 1px solid var(--catalog-separator-border-color);
55
- margin: var(--catalog-separator-margin);
56
- padding: var(--catalog-separator-padding);
57
- `;
58
- const CatalogSeparatorLabel = styled_components_1.default.div `
59
- margin: var(--catalog-separator-label-margin);
60
- `;
61
43
  exports.CatalogPageContent = styled_components_1.default.main `
62
44
  flex: 1;
63
45
  width: 90%;
@@ -68,12 +50,6 @@ exports.CatalogPageContent = styled_components_1.default.main `
68
50
  padding: var(--catalog-page-padding);
69
51
  }
70
52
  `;
71
- const CatalogCards = styled_components_1.default.div `
72
- display: grid;
73
- grid-template-columns: repeat(auto-fill, minmax(var(--api-catalog-card-min-width), 1fr));
74
- gap: 32px;
75
- margin: var(--catalog-cards-group-margin);
76
- `;
77
53
  exports.CatalogTitle = (0, styled_components_1.default)(H2_1.H2) `
78
54
  color: var(--catalog-title-text-color);
79
55
  font-weight: var(--catalog-title-font-weight);
@@ -110,6 +110,7 @@ const CardDescription = styled_components_1.default.div `
110
110
  font-size: var(--catalog-card-description-font-size);
111
111
  font-weight: var(--catalog-card-description-font-weight);
112
112
  line-height: var(--catalog-card-description-line-height);
113
+ height: var(--catalog-card-description-height);
113
114
  `;
114
115
  const CardContent = styled_components_1.default.div `
115
116
  flex: 1;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { CatalogItem, ResolvedFilter } from '../../core/types';
3
+ export type Group = {
4
+ title: string;
5
+ items: CatalogItem[];
6
+ };
7
+ export type VirtualRowData = {
8
+ type: 'header';
9
+ groupTitle: string;
10
+ groupCount: number;
11
+ key: string;
12
+ } | {
13
+ type: 'cardRow';
14
+ groupTitle: string;
15
+ items: CatalogItem[];
16
+ key: string;
17
+ };
18
+ export type CatalogVirtualizedGroupsProps = {
19
+ groups: Group[];
20
+ filters: (ResolvedFilter & {
21
+ isFilterUsed?: boolean;
22
+ })[];
23
+ filterTerm: string;
24
+ };
25
+ export declare function CatalogVirtualizedGroups({ groups, filters, filterTerm, }: CatalogVirtualizedGroupsProps): React.JSX.Element;
@@ -0,0 +1,183 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CatalogVirtualizedGroups = CatalogVirtualizedGroups;
30
+ const react_1 = __importStar(require("react"));
31
+ const react_virtual_1 = require("@tanstack/react-virtual");
32
+ const styled_components_1 = __importDefault(require("styled-components"));
33
+ const hooks_1 = require("../../core/hooks");
34
+ const CatalogCard_1 = require("../../components/Catalog/CatalogCard");
35
+ const CounterTag_1 = require("../../components/Tags/CounterTag");
36
+ const SpinnerLoader_1 = require("../../components/Loaders/SpinnerLoader");
37
+ const GAP_SIZE = 32;
38
+ const ESTIMATED_HEADER_HEIGHT = 43;
39
+ const ESTIMATED_CARD_HEIGHT = 194 + GAP_SIZE;
40
+ const CARD_MIN_WIDTH_VAR = '--catalog-card-min-width';
41
+ function CatalogVirtualizedGroups({ groups, filters, filterTerm, }) {
42
+ const [isClient, setIsClient] = (0, react_1.useState)(false);
43
+ const [size, parentRef] = (0, hooks_1.useElementSize)({ delay: 50, detectSizes: 'width' });
44
+ (0, react_1.useEffect)(() => {
45
+ setIsClient(true);
46
+ }, []);
47
+ (0, react_1.useEffect)(() => {
48
+ if (!size.width) {
49
+ return;
50
+ }
51
+ virtualizer.measure();
52
+ // eslint-disable-next-line react-hooks/exhaustive-deps
53
+ }, [filters, filterTerm, size.width]);
54
+ const columnCount = (0, react_1.useMemo)(() => {
55
+ if (!size.width)
56
+ return 4;
57
+ const cardMinWidth = parseInt(getComputedStyle(document.documentElement).getPropertyValue(CARD_MIN_WIDTH_VAR), 10);
58
+ return Math.max(1, Math.floor((size.width + GAP_SIZE) / (cardMinWidth + GAP_SIZE)));
59
+ }, [size.width]);
60
+ const flatRows = (0, react_1.useMemo)(() => {
61
+ if (!isClient) {
62
+ return groups.flatMap((group) => [
63
+ {
64
+ type: 'header',
65
+ groupTitle: group.title,
66
+ groupCount: group.items.length,
67
+ key: `header-${group.title}`,
68
+ },
69
+ {
70
+ type: 'cardRow',
71
+ groupTitle: group.title,
72
+ items: group.items,
73
+ key: `${group.title}-cards`,
74
+ },
75
+ ]);
76
+ }
77
+ const rows = [];
78
+ groups.forEach((group) => {
79
+ rows.push({
80
+ type: 'header',
81
+ groupTitle: group.title,
82
+ groupCount: group.items.length,
83
+ key: `header-${group.title}`,
84
+ });
85
+ const numRows = Math.ceil(group.items.length / columnCount);
86
+ for (let rowIndex = 0; rowIndex < numRows; rowIndex++) {
87
+ const startIndex = rowIndex * columnCount;
88
+ const rowItems = group.items.slice(startIndex, startIndex + columnCount);
89
+ rows.push({
90
+ type: 'cardRow',
91
+ groupTitle: group.title,
92
+ items: rowItems,
93
+ key: `${group.title}-row-${rowIndex}`,
94
+ });
95
+ }
96
+ });
97
+ return rows;
98
+ }, [groups, columnCount, isClient]);
99
+ const virtualizer = (0, react_virtual_1.useWindowVirtualizer)({
100
+ count: flatRows.length,
101
+ estimateSize: (index) => {
102
+ const row = flatRows[index];
103
+ if (row.type === 'header')
104
+ return ESTIMATED_HEADER_HEIGHT;
105
+ return ESTIMATED_CARD_HEIGHT;
106
+ },
107
+ overscan: 5,
108
+ });
109
+ if (!isClient) {
110
+ return (react_1.default.createElement("div", { ref: parentRef, "data-component-name": "Catalog/CatalogVirtualizedGroups" },
111
+ flatRows.slice(0, 15).map((rowData) => {
112
+ if (rowData.type === 'header') {
113
+ return (react_1.default.createElement(SSRHeaderRow, { key: rowData.key },
114
+ react_1.default.createElement(CatalogSeparatorLabel, null, rowData.groupTitle),
115
+ react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, rowData.groupCount)));
116
+ }
117
+ return (react_1.default.createElement(SSRRow, { key: rowData.key }, rowData.items.map((item) => (react_1.default.createElement(CardWrapper, { key: item.link },
118
+ react_1.default.createElement(CatalogCard_1.CatalogCard, { item: item }))))));
119
+ }),
120
+ react_1.default.createElement(LoadingWrapper, null,
121
+ react_1.default.createElement(SpinnerLoader_1.SpinnerLoader, { color: "var(--catalog-description-text-color)", size: "20px" }))));
122
+ }
123
+ return (react_1.default.createElement("div", { ref: parentRef, "data-component-name": "Catalog/CatalogVirtualizedGroups" },
124
+ react_1.default.createElement("div", { style: {
125
+ position: 'relative',
126
+ height: `${virtualizer.getTotalSize()}px`,
127
+ } }, virtualizer.getVirtualItems().map((virtualRow) => {
128
+ const rowData = flatRows[virtualRow.index];
129
+ if (rowData.type === 'header') {
130
+ return (react_1.default.createElement(HeaderRow, { key: rowData.key, ref: virtualizer.measureElement, "data-index": virtualRow.index, style: { transform: `translateY(${virtualRow.start}px)` } },
131
+ react_1.default.createElement(CatalogSeparatorLabel, null, rowData.groupTitle),
132
+ react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, rowData.groupCount)));
133
+ }
134
+ return (react_1.default.createElement(GridRow, { key: rowData.key, ref: virtualizer.measureElement, "data-index": virtualRow.index, style: { transform: `translateY(${virtualRow.start}px)` } }, rowData.items.map((item) => (react_1.default.createElement(CatalogCard_1.CatalogCard, { key: item.link, item: item })))));
135
+ }))));
136
+ }
137
+ const SSRHeaderRow = styled_components_1.default.div `
138
+ width: 100%;
139
+ display: flex;
140
+ align-items: center;
141
+ padding: var(--catalog-separator-padding);
142
+ border-top: 1px solid var(--catalog-separator-border-color);
143
+ padding-bottom: calc(4px * 4);
144
+ color: var(--catalog-separator-color);
145
+ font-size: var(--catalog-separator-font-size);
146
+ font-weight: var(--catalog-separator-font-weight);
147
+ `;
148
+ const SSRRow = styled_components_1.default.div `
149
+ width: 100%;
150
+ display: flex;
151
+ flex-wrap: wrap;
152
+ gap: var(--catalog-cards-group-gap, 32px);
153
+ padding-bottom: var(--catalog-cards-group-gap, 32px);
154
+ `;
155
+ const HeaderRow = (0, styled_components_1.default)(SSRHeaderRow) `
156
+ position: absolute;
157
+ left: 0;
158
+ will-change: transform;
159
+ `;
160
+ const GridRow = styled_components_1.default.div `
161
+ position: absolute;
162
+ left: 0;
163
+ width: 100%;
164
+ display: grid;
165
+ grid-template-columns: repeat(auto-fill, minmax(var(--catalog-card-min-width), 1fr));
166
+ gap: var(--catalog-cards-group-gap, 32px);
167
+ padding-bottom: var(--catalog-cards-group-gap, 32px);
168
+ will-change: transform;
169
+ `;
170
+ const CardWrapper = styled_components_1.default.div `
171
+ flex: 1 0 var(--catalog-card-min-width);
172
+ max-width: 100%;
173
+ min-width: var(--catalog-card-min-width);
174
+ `;
175
+ const CatalogSeparatorLabel = styled_components_1.default.div `
176
+ margin: var(--catalog-separator-label-margin);
177
+ `;
178
+ const LoadingWrapper = styled_components_1.default.div `
179
+ display: flex;
180
+ justify-content: center;
181
+ align-items: center;
182
+ `;
183
+ //# sourceMappingURL=CatalogVirtualizedGroups.js.map
@@ -47,6 +47,7 @@ exports.catalog = (0, styled_components_1.css) `
47
47
  * @tokens Catalog card
48
48
  */
49
49
  --catalog-card-min-height: 194px;
50
+ --catalog-card-min-width: 260px;
50
51
  --catalog-card-padding-vertical: var(--spacing-base);
51
52
  --catalog-card-padding-horizontal: var(--spacing-md);
52
53
  --catalog-card-gap: var(--spacing-sm);
@@ -60,6 +61,7 @@ exports.catalog = (0, styled_components_1.css) `
60
61
  --catalog-card-border-color-hover: var(--border-color-primary);
61
62
  --catalog-card-border-radius: var(--border-radius-xxl);
62
63
  --catalog-cards-group-margin: 0 0 var(--spacing-base) 0;
64
+ --catalog-cards-group-gap: var(--spacing-xl);
63
65
 
64
66
  /**
65
67
  * @tokens Catalog card title
@@ -79,6 +81,7 @@ exports.catalog = (0, styled_components_1.css) `
79
81
  --catalog-card-description-font-size: var(--font-size-base);
80
82
  --catalog-card-description-line-height: var(--line-height-base);
81
83
  --catalog-card-description-font-weight: var(--font-weight-regular);
84
+ --catalog-card-description-height: 62px;
82
85
 
83
86
  --catalog-card-content-gap: var(--spacing-xxs);
84
87
 
@@ -62,7 +62,7 @@ function MenuItem(props) {
62
62
  };
63
63
  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;
64
64
  const httpColor = item.deprecated ? 'http-deprecated' : item.httpVerb;
65
- const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { active: item.active, deprecated: item.deprecated, depth: depth, withChevron: hasChevron, onClick: handleOnClick, ref: labelRef, role: item.link ? 'none' : 'link' },
65
+ const label = item.label && (react_1.default.createElement(MenuItemLabelWrapper, { active: item.active, deprecated: item.deprecated, depth: depth, withChevron: hasChevron, onClick: handleOnClick, ref: labelRef, role: item.link ? 'none' : 'link', "data-testid": "menu-item-label" },
66
66
  chevron,
67
67
  item.icon ? react_1.default.createElement(MenuItemIcon, { src: item.icon }) : null,
68
68
  react_1.default.createElement(MenuItemLabelTextWrapper, null,
@@ -59,7 +59,10 @@ function NavbarItem({ navItem, className }) {
59
59
  const groupItemsComponents = groupItems.map((item, index) => {
60
60
  if (item.type !== 'link' && item.type !== 'separator')
61
61
  return null;
62
- return (react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { key: `${item.label}_${index}`, to: item.link, separator: item.type === 'separator', separatorLine: item.separatorLine, "data-translation-key": item.labelTranslationKey }, translate(item.labelTranslationKey, item.label)));
62
+ return (react_1.default.createElement(DropdownMenuItem_1.DropdownMenuItem, { key: `${item.label}_${index}`, to: item.link, separator: item.type === 'separator', separatorLine: item.separatorLine, "data-translation-key": item.labelTranslationKey },
63
+ react_1.default.createElement(NavbarIcon, { url: item.icon }),
64
+ react_1.default.createElement(NavbarLabel, { "data-translation-key": item.labelTranslationKey }, translate(item.labelTranslationKey, item.label)),
65
+ item.external ? react_1.default.createElement(ExternalLinkIcon, { size: "10px" }) : null));
63
66
  });
64
67
  return (react_1.default.createElement("div", { "data-component-name": "Navbar/NavbarItem" },
65
68
  react_1.default.createElement(NavbarMenuItemDropdown, { trigger: itemContent, triggerEvent: "hover" },
@@ -24,9 +24,11 @@ function SearchAiMessage({ role, content, isThinking, resources, className, }) {
24
24
  react_1.default.createElement(ResponseText, { as: "div", children: markDownContent, "data-testid": "response-text" }),
25
25
  !isThinking && resources && resources.length > 0 && (react_1.default.createElement(ResourcesWrapper, { "data-testid": "resources-wrapper" },
26
26
  react_1.default.createElement(ResourcesTitle, { "data-translation-key": "search.ai.resourcesFound" },
27
- resources.length,
27
+ translate('search.ai.resourcesFound.basedOn', 'Based on'),
28
28
  " ",
29
- translate('search.ai.resourcesFound', 'resources found')),
29
+ resources.length,
30
+ ' ',
31
+ translate('search.ai.resourcesFound.resources', 'resources')),
30
32
  react_1.default.createElement(ResourceTagsWrapper, null, resources.map((resource, idx) => (react_1.default.createElement(Link_1.Link, { key: idx, to: resource.url, target: "_blank" },
31
33
  react_1.default.createElement(ResourceTag, { borderless: true, icon: react_1.default.createElement(DocumentIcon_1.DocumentIcon, { color: "--search-ai-resource-tag-icon-color" }) }, resource.title))))))))) : (content),
32
34
  isThinking && content.length === 0 && (react_1.default.createElement(ThinkingDotsWrapper, { "data-testid": "thinking-dots-wrapper" },
@@ -93,7 +95,6 @@ const ResourceTag = (0, styled_components_1.default)(Tag_1.Tag) `
93
95
  --tag-color: var(--search-ai-resource-tag-text-color);
94
96
  max-width: 100%;
95
97
  overflow: hidden;
96
- white-space: nowrap;
97
98
  display: inline-block;
98
99
  }
99
100
  svg {
@@ -103,8 +104,8 @@ const ResourceTag = (0, styled_components_1.default)(Tag_1.Tag) `
103
104
  }
104
105
  > div {
105
106
  overflow: hidden;
106
- text-overflow: ellipsis;
107
- white-space: nowrap;
107
+ word-break: break-word;
108
+ white-space: normal;
108
109
  max-width: 100%;
109
110
  }
110
111
  `;
@@ -163,7 +163,7 @@ function SearchDialog({ onClose, className }) {
163
163
  react_1.default.createElement(SearchGroupTitle, { "data-testid": "search-group-title" }, key), (_b = items[key]) === null || _b === void 0 ? void 0 :
164
164
  _b.map(mapItem),
165
165
  showLoadMore(key, ((_c = items[key]) === null || _c === void 0 ? void 0 : _c.length) || 0) && (react_1.default.createElement(SearchGroupFooter, { "data-translation-key": "search.showMore", onClick: () => { var _a; return setLoadMore({ groupKey: key, offset: ((_a = items[key]) === null || _a === void 0 ? void 0 : _a.length) || 0 }); } }, translate('search.showMore', 'Show more'))))) : null;
166
- })) : isSearchLoading ? (react_1.default.createElement(SearchMessage, null,
166
+ })) : isSearchLoading ? (react_1.default.createElement(SearchMessage, { "data-translation-key": "search.loading" },
167
167
  react_1.default.createElement(SpinnerLoader_1.SpinnerLoader, { size: "26px", color: "var(--search-input-icon-color)" }),
168
168
  translate('search.loading', 'Loading...'))) : (react_1.default.createElement(SearchMessage, { "data-translation-key": "search.noResults" },
169
169
  react_1.default.createElement("b", null, translate('search.noResults.title', 'No results'))))) : (react_1.default.createElement(react_1.default.Fragment, null,
@@ -23,3 +23,4 @@ export * from '../../../core/hooks/feedback/use-report-dialog';
23
23
  export * from '../../../core/hooks/use-product-picker';
24
24
  export * from '../../../core/hooks/search/use-search-dialog';
25
25
  export * from '../../../core/hooks/use-language-picker';
26
+ export * from '../../../core/hooks/__mocks__/use-element-size';
@@ -39,4 +39,5 @@ __exportStar(require("../../../core/hooks/feedback/use-report-dialog"), exports)
39
39
  __exportStar(require("../../../core/hooks/use-product-picker"), exports);
40
40
  __exportStar(require("../../../core/hooks/search/use-search-dialog"), exports);
41
41
  __exportStar(require("../../../core/hooks/use-language-picker"), exports);
42
+ __exportStar(require("../../../core/hooks/__mocks__/use-element-size"), exports);
42
43
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ export declare function useElementSize(): (import("react").MutableRefObject<null> | {
2
+ width: number;
3
+ height: number;
4
+ })[];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useElementSize = useElementSize;
4
+ const react_1 = require("react");
5
+ function useElementSize() {
6
+ // Return mock size and a ref
7
+ return [{ width: 1024, height: 768 }, (0, react_1.useRef)(null)];
8
+ }
9
+ //# sourceMappingURL=use-element-size.js.map
@@ -33,3 +33,4 @@ export * from '../../core/hooks/code-walkthrough/use-code-walkthrough-steps';
33
33
  export * from '../../core/hooks/code-walkthrough/use-code-walkthrough-controls';
34
34
  export * from '../../core/hooks/code-walkthrough/use-code-panel';
35
35
  export * from '../../core/hooks/code-walkthrough/use-renderable-files';
36
+ export * from '../../core/hooks/use-element-size';
@@ -49,4 +49,5 @@ __exportStar(require("../../core/hooks/code-walkthrough/use-code-walkthrough-ste
49
49
  __exportStar(require("../../core/hooks/code-walkthrough/use-code-walkthrough-controls"), exports);
50
50
  __exportStar(require("../../core/hooks/code-walkthrough/use-code-panel"), exports);
51
51
  __exportStar(require("../../core/hooks/code-walkthrough/use-renderable-files"), exports);
52
+ __exportStar(require("../../core/hooks/use-element-size"), exports);
52
53
  //# sourceMappingURL=index.js.map
@@ -24,12 +24,17 @@ function useNestedMenu({ item, labelRef, nestedMenuRef }) {
24
24
  isExpanded,
25
25
  collapseElRef: nestedMenuRef || { current: null },
26
26
  onTransitionStateChange: (state) => {
27
+ var _a;
27
28
  if (state === 'collapseEnd') {
28
29
  setCanUnmount(true);
29
30
  }
30
31
  if (state === 'expandStart') {
31
32
  setCanUnmount(false);
32
33
  }
34
+ // signal that used in e2e tests to wait for the item to be expanded
35
+ if (state === 'expandEnd') {
36
+ (_a = labelRef === null || labelRef === void 0 ? void 0 : labelRef.current) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new CustomEvent('menu:expand-end', { bubbles: true }));
37
+ }
33
38
  },
34
39
  });
35
40
  function scrollIfNeeded(el, centerIfNeeded = false) {
@@ -0,0 +1,13 @@
1
+ import { MutableRefObject } from 'react';
2
+ type Size = {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ export declare function useElementSize<T extends HTMLElement = HTMLElement>({ delay, detectSizes, }?: {
7
+ delay?: number;
8
+ detectSizes?: 'width' | 'height' | 'both';
9
+ }): [
10
+ Size,
11
+ MutableRefObject<T | null>
12
+ ];
13
+ export {};
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useElementSize = useElementSize;
4
+ const react_1 = require("react");
5
+ const getInitialSize = (ref) => {
6
+ if (ref === null || ref === void 0 ? void 0 : ref.current) {
7
+ return {
8
+ width: ref.current.offsetWidth,
9
+ height: ref.current.offsetHeight,
10
+ };
11
+ }
12
+ if ((ref === null || ref === void 0 ? void 0 : ref.current) === null) {
13
+ return {
14
+ width: 0,
15
+ height: 0,
16
+ };
17
+ }
18
+ return {
19
+ width: typeof window !== 'undefined' ? window.innerWidth : 0,
20
+ height: typeof window !== 'undefined' ? window.innerHeight : 0,
21
+ };
22
+ };
23
+ function useElementSize({ delay = 50, detectSizes = 'both', } = {}) {
24
+ const ref = (0, react_1.useRef)(null);
25
+ const previousSize = (0, react_1.useRef)(getInitialSize(ref));
26
+ const [size, setSize] = (0, react_1.useState)(getInitialSize(ref));
27
+ const isFirstUpdate = (0, react_1.useRef)(true);
28
+ const updateSize = (0, react_1.useCallback)((newSize) => {
29
+ const shouldUpdateWidth = detectSizes === 'both' || detectSizes === 'width';
30
+ const shouldUpdateHeight = detectSizes === 'both' || detectSizes === 'height';
31
+ const widthChanged = shouldUpdateWidth && newSize.width !== previousSize.current.width;
32
+ const heightChanged = shouldUpdateHeight && newSize.height !== previousSize.current.height;
33
+ if (widthChanged || heightChanged) {
34
+ const updatedSize = {
35
+ width: shouldUpdateWidth ? newSize.width : previousSize.current.width,
36
+ height: shouldUpdateHeight ? newSize.height : previousSize.current.height,
37
+ };
38
+ setSize(updatedSize);
39
+ previousSize.current = updatedSize;
40
+ }
41
+ }, [detectSizes]);
42
+ (0, react_1.useLayoutEffect)(() => {
43
+ let timeoutId = null;
44
+ const triggerUpdateWithThrottling = (newSize) => {
45
+ if (isFirstUpdate.current) {
46
+ updateSize(newSize);
47
+ isFirstUpdate.current = false;
48
+ return;
49
+ }
50
+ if (timeoutId !== null)
51
+ return;
52
+ timeoutId = window.setTimeout(() => {
53
+ updateSize(newSize);
54
+ timeoutId = null;
55
+ }, delay);
56
+ };
57
+ if ((ref === null || ref === void 0 ? void 0 : ref.current) && typeof ResizeObserver !== 'undefined') {
58
+ const observer = new ResizeObserver((entries) => {
59
+ for (const entry of entries) {
60
+ const { width, height } = entry.contentRect;
61
+ triggerUpdateWithThrottling({ width, height });
62
+ }
63
+ });
64
+ observer.observe(ref.current);
65
+ return () => {
66
+ observer.disconnect();
67
+ if (timeoutId !== null) {
68
+ clearTimeout(timeoutId);
69
+ }
70
+ };
71
+ }
72
+ }, [ref, updateSize, delay]);
73
+ return [size, ref];
74
+ }
75
+ //# sourceMappingURL=use-element-size.js.map
@@ -1237,7 +1237,6 @@ exports.styles = (0, styled_components_1.css) `
1237
1237
  ${variables_2.scorecard}
1238
1238
  ${variables_33.datePicker}
1239
1239
  ${replay}
1240
- --api-catalog-card-min-width: 250px;
1241
1240
 
1242
1241
  background-color: var(--bg-color);
1243
1242
  color: var(--text-color-primary);
@@ -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.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.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.settings.reasons.send' | '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' | '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.deprecated' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.noResponseExample' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.scopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | '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' | 'codeWalkthrough.download' | 'codeWalkthrough.preview';
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.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.settings.reasons.send' | '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' | '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.deprecated' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.noResponseExample' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.scopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | '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' | 'codeWalkthrough.download' | 'codeWalkthrough.preview';
3
3
  export type Locale = {
4
4
  code: string;
5
5
  name: string;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const CheckboxFilledIcon: 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,22 @@
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.CheckboxFilledIcon = 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 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { d: "M13 2.51172H3C2.73478 2.51172 2.48043 2.61708 2.29289 2.80461C2.10536 2.99215 2 3.2465 2 3.51172V13.5117C2 13.7769 2.10536 14.0313 2.29289 14.2188C2.48043 14.4064 2.73478 14.5117 3 14.5117H13C13.2652 14.5117 13.5196 14.4064 13.7071 14.2188C13.8946 14.0313 14 13.7769 14 13.5117V3.51172C14 3.2465 13.8946 2.99215 13.7071 2.80461C13.5196 2.61708 13.2652 2.51172 13 2.51172ZM7 11.2617L4.5 8.78307L5.2954 8.01172L7 9.68452L10.7044 6.01172L11.5002 6.80032L7 11.2617Z" })));
12
+ exports.CheckboxFilledIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
13
+ 'data-component-name': 'icons/CheckboxFilledIcon/CheckboxFilledIcon',
14
+ })) `
15
+ path {
16
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
17
+ }
18
+
19
+ height: ${({ size }) => size || '16px'};
20
+ width: ${({ size }) => size || '16px'};
21
+ `;
22
+ //# sourceMappingURL=CheckboxFilledIcon.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const WarningAltFilled: 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">;