@redocly/theme 0.64.0-next.0 → 0.64.0-next.2
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/Banner/Banner.js +3 -3
- package/lib/components/Catalog/CatalogActionsRow.d.ts +3 -3
- package/lib/components/Catalog/CatalogCardView/CatalogCard.js +4 -6
- package/lib/components/Catalog/CatalogEntities.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntities.js +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +1 -8
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +1 -0
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +2 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +2 -6
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +5 -5
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +15 -7
- package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.d.ts +3 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.js +4 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +3 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +14 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +3 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +1 -1
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.d.ts +2 -2
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +3 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +13 -3
- package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +4 -3
- package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +3 -2
- package/lib/components/Catalog/CatalogEntityTypeIcon.js +9 -9
- package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.d.ts +2 -3
- package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.d.ts +2 -3
- package/lib/components/Catalog/CatalogPageDescription.js +1 -1
- package/lib/components/Catalog/CatalogSortButton.d.ts +4 -5
- package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +6 -2
- package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +2 -2
- package/lib/components/Catalog/CatalogTableView/CatalogLastUpdateCell.d.ts +5 -0
- package/lib/components/Catalog/CatalogTableView/CatalogLastUpdateCell.js +45 -0
- package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +5 -3
- package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +2 -3
- package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +3 -2
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +1 -2
- package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +15 -5
- package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +3 -2
- package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +2 -2
- package/lib/components/Catalog/CatalogTags.d.ts +11 -0
- package/lib/components/Catalog/CatalogTags.js +62 -0
- package/lib/components/Catalog/variables.js +22 -14
- package/lib/components/Search/SearchDialog.js +118 -116
- package/lib/components/SvgViewer/variables.dark.js +1 -1
- package/lib/core/constants/catalog.d.ts +1 -1
- package/lib/core/constants/catalog.js +1 -1
- package/lib/core/hooks/catalog/use-catalog-entity-link.d.ts +8 -0
- package/lib/core/hooks/catalog/use-catalog-entity-link.js +42 -0
- package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.d.ts +2 -1
- package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.js +5 -3
- package/lib/core/hooks/index.d.ts +1 -0
- package/lib/core/hooks/index.js +1 -0
- package/lib/core/styles/dark.d.ts +3 -1
- package/lib/core/styles/dark.js +42 -31
- package/lib/core/styles/global.d.ts +6 -2
- package/lib/core/styles/global.js +54 -39
- package/lib/core/styles/palette.d.ts +6 -0
- package/lib/core/styles/palette.dark.d.ts +3 -0
- package/lib/core/styles/palette.dark.js +216 -0
- package/lib/core/styles/palette.js +179 -0
- package/lib/core/types/catalog.d.ts +23 -7
- package/lib/core/types/hooks.d.ts +6 -4
- package/lib/icons/ColorPaletteIcon/ColorPaletteIcon.d.ts +9 -0
- package/lib/icons/ColorPaletteIcon/ColorPaletteIcon.js +27 -0
- package/lib/icons/StopIcon/StopIcon.d.ts +9 -0
- package/lib/icons/StopIcon/StopIcon.js +22 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +3 -1
- package/lib/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.d.ts +7 -0
- package/lib/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.js +95 -0
- package/lib/markdoc/components/ExcalidrawDiagram/variables.d.ts +1 -0
- package/lib/markdoc/components/ExcalidrawDiagram/variables.dark.d.ts +1 -0
- package/lib/markdoc/components/ExcalidrawDiagram/variables.dark.js +8 -0
- package/lib/markdoc/components/ExcalidrawDiagram/variables.js +15 -0
- package/lib/markdoc/components/Heading/Heading.js +2 -2
- package/lib/markdoc/components/Mermaid/Mermaid.js +2 -0
- package/lib/markdoc/components/default.d.ts +1 -0
- package/lib/markdoc/components/default.js +1 -0
- package/package.json +2 -2
- package/src/components/Banner/Banner.tsx +7 -7
- package/src/components/Catalog/CatalogActionsRow.tsx +3 -3
- package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +4 -6
- package/src/components/Catalog/CatalogEntities.tsx +3 -3
- package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +3 -24
- package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +1 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +1 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +1 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +2 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +8 -10
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +13 -8
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +1 -0
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +27 -15
- package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +2 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +9 -9
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +17 -9
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +1 -1
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +4 -8
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +2 -2
- package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +16 -10
- package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +4 -3
- package/src/components/Catalog/CatalogEntityTypeIcon.tsx +18 -11
- package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.tsx +3 -3
- package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.tsx +2 -3
- package/src/components/Catalog/CatalogPageDescription.tsx +1 -1
- package/src/components/Catalog/CatalogSortButton.tsx +5 -6
- package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +6 -2
- package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +2 -2
- package/src/components/Catalog/CatalogTableView/CatalogLastUpdateCell.tsx +54 -0
- package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +5 -2
- package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +4 -3
- package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +17 -7
- package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +3 -2
- package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +2 -2
- package/src/components/Catalog/CatalogTags.tsx +115 -0
- package/src/components/Catalog/variables.ts +22 -14
- package/src/components/Search/SearchDialog.tsx +299 -293
- package/src/components/SvgViewer/variables.dark.ts +1 -1
- package/src/core/constants/catalog.ts +1 -1
- package/src/core/hooks/catalog/use-catalog-entity-link.ts +46 -0
- package/src/core/hooks/catalog/use-catalog-table-header-cell-actions.ts +10 -2
- package/src/core/hooks/index.ts +1 -0
- package/src/core/styles/dark.ts +14 -2
- package/src/core/styles/global.ts +28 -13
- package/src/core/styles/palette.dark.ts +214 -0
- package/src/core/styles/palette.ts +177 -0
- package/src/core/types/catalog.ts +24 -8
- package/src/core/types/hooks.ts +5 -10
- package/src/icons/ColorPaletteIcon/ColorPaletteIcon.tsx +28 -0
- package/src/icons/StopIcon/StopIcon.tsx +23 -0
- package/src/index.ts +3 -1
- package/src/markdoc/components/ExcalidrawDiagram/ExcalidrawDiagram.tsx +85 -0
- package/src/markdoc/components/ExcalidrawDiagram/variables.dark.ts +5 -0
- package/src/markdoc/components/ExcalidrawDiagram/variables.ts +12 -0
- package/src/markdoc/components/Heading/Heading.tsx +2 -1
- package/src/markdoc/components/Mermaid/Mermaid.tsx +2 -0
- package/src/markdoc/components/default.ts +1 -0
- package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +0 -10
- package/lib/components/Catalog/CatalogTagsWithTooltip.js +0 -57
- package/src/components/Catalog/CatalogTagsWithTooltip.tsx +0 -101
|
@@ -43,6 +43,7 @@ const SearchInput_1 = require("../../components/Search/SearchInput");
|
|
|
43
43
|
const SearchShortcut_1 = require("../../components/Search/SearchShortcut");
|
|
44
44
|
const Button_1 = require("../../components/Button/Button");
|
|
45
45
|
const utils_1 = require("../../core/utils");
|
|
46
|
+
const Portal_1 = require("../../components/Portal/Portal");
|
|
46
47
|
const SearchItem_1 = require("../../components/Search/SearchItem");
|
|
47
48
|
const SearchRecent_1 = require("../../components/Search/SearchRecent");
|
|
48
49
|
const SearchSuggestedPages_1 = require("../../components/Search/SearchSuggestedPages");
|
|
@@ -169,71 +170,60 @@ function SearchDialog({ onClose, className, initialMode = 'search', }) {
|
|
|
169
170
|
const showAiSearchButton = askAi && mode === 'search';
|
|
170
171
|
const showAiSearchItem = showAiSearchButton && query;
|
|
171
172
|
const showHeaderButtons = showSearchFilterButton || showAiSearchButton;
|
|
172
|
-
return (react_1.default.createElement(
|
|
173
|
-
react_1.default.createElement(
|
|
174
|
-
react_1.default.createElement(
|
|
175
|
-
|
|
176
|
-
product.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
react_1.default.createElement(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
aiQueryRef.current
|
|
185
|
-
|
|
186
|
-
else {
|
|
187
|
-
(_a = firstSearchResultRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
188
|
-
}
|
|
189
|
-
}, "data-translation-key": "search.label" }),
|
|
190
|
-
showHeaderButtons && (react_1.default.createElement(SearchHeaderButtons, null,
|
|
191
|
-
showAiSearchButton ? (react_1.default.createElement(SearchAiButton, { icon: react_1.default.createElement(AiStarsGradientIcon_1.AiStarsGradientIcon, { color: "var(--search-ai-button-icon-color)" }), onClick: () => {
|
|
192
|
-
setMode('ai-dialog');
|
|
193
|
-
if (query.trim()) {
|
|
194
|
-
aiSearch.askQuestion(query);
|
|
173
|
+
return (react_1.default.createElement(Portal_1.Portal, null,
|
|
174
|
+
react_1.default.createElement(SearchOverlay, { "data-component-name": "Search/SearchDialog", ref: modalRef, onClick: handleOverlayClick, className: (0, utils_1.concatClassNames)('overlay', className) },
|
|
175
|
+
react_1.default.createElement(SearchDialogWrapper, { className: "scroll-lock", role: "dialog" },
|
|
176
|
+
react_1.default.createElement(SearchDialogHeader, null,
|
|
177
|
+
product && (react_1.default.createElement(SearchProductTag, { color: "product" },
|
|
178
|
+
product.name,
|
|
179
|
+
react_1.default.createElement(CloseIcon_1.CloseIcon, { onClick: () => setProduct(undefined), color: "--icon-color-additional" }))),
|
|
180
|
+
mode === 'search' ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
181
|
+
react_1.default.createElement(SearchInput_1.SearchInput, { value: query, onChange: setQuery, placeholder: translate('search.label', 'Search docs...'), isLoading: isSearchLoading, inputRef: searchInputRef, onSubmit: () => {
|
|
182
|
+
var _a;
|
|
183
|
+
if (isSearchLoading)
|
|
184
|
+
return;
|
|
185
|
+
if (showAiSearchButton && aiQueryRef.current) {
|
|
186
|
+
aiQueryRef.current.focus();
|
|
195
187
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
react_1.default.createElement(
|
|
215
|
-
|
|
188
|
+
else {
|
|
189
|
+
(_a = firstSearchResultRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
190
|
+
}
|
|
191
|
+
}, "data-translation-key": "search.label" }),
|
|
192
|
+
showHeaderButtons && (react_1.default.createElement(SearchHeaderButtons, null,
|
|
193
|
+
showAiSearchButton ? (react_1.default.createElement(SearchAiButton, { icon: react_1.default.createElement(AiStarsGradientIcon_1.AiStarsGradientIcon, { color: "var(--search-ai-button-icon-color)" }), onClick: () => {
|
|
194
|
+
setMode('ai-dialog');
|
|
195
|
+
if (query.trim()) {
|
|
196
|
+
aiSearch.askQuestion(query);
|
|
197
|
+
}
|
|
198
|
+
telemetry.sendSearchAiOpenedMessage([
|
|
199
|
+
{
|
|
200
|
+
object: 'search',
|
|
201
|
+
method: 'ai_search_button',
|
|
202
|
+
},
|
|
203
|
+
]);
|
|
204
|
+
} }, translate('search.ai.button', 'Search with AI'))) : null,
|
|
205
|
+
showSearchFilterButton && (react_1.default.createElement(SearchFilterToggleButton, { icon: react_1.default.createElement(SettingsIcon_1.SettingsIcon, null), onClick: onFilterToggle })))))) : (react_1.default.createElement(AiDialogHeaderWrapper, null,
|
|
206
|
+
initialMode === 'ai-dialog' ? (react_1.default.createElement(AiDialogHeaderTitle, null,
|
|
207
|
+
react_1.default.createElement(AiStarsGradientIcon_1.AiStarsGradientIcon, { color: "var(--search-ai-button-icon-color)", size: "1.25rem" }),
|
|
208
|
+
translate('search.ai.assistant', 'Assistant'))) : (react_1.default.createElement(Button_1.Button, { variant: "secondary", onClick: () => {
|
|
209
|
+
setMode('search');
|
|
216
210
|
aiSearch.clearConversation();
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
},
|
|
234
|
-
]);
|
|
235
|
-
}, onKeyDown: (e) => {
|
|
236
|
-
if (e.key === 'Enter') {
|
|
211
|
+
focusSearchInput();
|
|
212
|
+
}, tabIndex: 0, icon: react_1.default.createElement(ChevronLeftIcon_1.ChevronLeftIcon, null) }, isMobile
|
|
213
|
+
? translate('search.ai.back', 'Back')
|
|
214
|
+
: translate('search.ai.backToSearch', 'Back to search'))),
|
|
215
|
+
react_1.default.createElement(AiDialogHeaderActionsWrapper, null,
|
|
216
|
+
react_1.default.createElement(Button_1.Button, { variant: "secondary", disabled: !aiSearch.conversation.length, onClick: () => {
|
|
217
|
+
refreshSearchSessionId();
|
|
218
|
+
aiSearch.clearConversation();
|
|
219
|
+
}, tabIndex: 0, icon: react_1.default.createElement(EditIcon_1.EditIcon, null) }, translate('search.ai.newConversation', 'New conversation')),
|
|
220
|
+
isMobile && react_1.default.createElement(Button_1.Button, { variant: "text", icon: react_1.default.createElement(CloseIcon_1.CloseIcon, null), onClick: handleClose }))))),
|
|
221
|
+
react_1.default.createElement(SearchDialogBody, null, mode === 'search' ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
222
|
+
advancedSearch && isFilterOpen && (react_1.default.createElement(SearchDialogBodyFilterView, null,
|
|
223
|
+
react_1.default.createElement(SearchFilter_1.SearchFilter, { facets: facets, filter: filter, query: query, quickFilterFields: [groupField], onFilterChange: onFilterChange, onFilterReset: onFilterReset, onFacetReset: onFacetReset }))),
|
|
224
|
+
react_1.default.createElement(SearchDialogBodyMainView, null,
|
|
225
|
+
react_1.default.createElement(SearchGroups_1.SearchGroups, { facets: facets, searchFilter: filter, onFilterChange: onFilterChange, onQuickFilterReset: onQuickFilterReset, groupField: groupField }),
|
|
226
|
+
showAiSearchItem && (react_1.default.createElement(SearchWithAI, { onClick: () => {
|
|
237
227
|
setMode('ai-dialog');
|
|
238
228
|
if (query.trim()) {
|
|
239
229
|
aiSearch.askQuestion(query);
|
|
@@ -244,60 +234,72 @@ function SearchDialog({ onClose, className, initialMode = 'search', }) {
|
|
|
244
234
|
method: 'ai_search_input',
|
|
245
235
|
},
|
|
246
236
|
]);
|
|
237
|
+
}, onKeyDown: (e) => {
|
|
238
|
+
if (e.key === 'Enter') {
|
|
239
|
+
setMode('ai-dialog');
|
|
240
|
+
if (query.trim()) {
|
|
241
|
+
aiSearch.askQuestion(query);
|
|
242
|
+
}
|
|
243
|
+
telemetry.sendSearchAiOpenedMessage([
|
|
244
|
+
{
|
|
245
|
+
object: 'search',
|
|
246
|
+
method: 'ai_search_input',
|
|
247
|
+
},
|
|
248
|
+
]);
|
|
249
|
+
}
|
|
250
|
+
}, ref: aiQueryRef, tabIndex: 0, role: "option", "aria-selected": "true" },
|
|
251
|
+
react_1.default.createElement(AiStarsIcon_1.AiStarsIcon, { style: { flexShrink: 0 }, color: "var(--search-ai-icon-color)", size: "36px", background: "var(--search-ai-icon-bg-color)", margin: "0 var(--spacing-md) 0 0", borderRadius: "var(--border-radius-lg)" }),
|
|
252
|
+
react_1.default.createElement(QueryWrapper, null,
|
|
253
|
+
react_1.default.createElement(Typography_1.Typography, { fontWeight: "var(--font-weight-semibold)" }, query)),
|
|
254
|
+
react_1.default.createElement(Typography_1.Typography, null,
|
|
255
|
+
"- ",
|
|
256
|
+
translate('search.ai.label', 'Ask AI assistant')),
|
|
257
|
+
react_1.default.createElement(ReturnKeyIcon_1.ReturnKeyIcon, { color: "var(--search-item-text-color)" }))),
|
|
258
|
+
showResults ? (searchKeysWithResults.length ? (searchKeysWithResults.map((key, searchGroupKeyIdx) => {
|
|
259
|
+
const searchResultItems = items[key];
|
|
260
|
+
if (searchResultItems === null || searchResultItems === void 0 ? void 0 : searchResultItems.length) {
|
|
261
|
+
return (react_1.default.createElement(react_1.Fragment, { key: key },
|
|
262
|
+
react_1.default.createElement(SearchGroupTitle, { "data-testid": "search-group-title" }, key),
|
|
263
|
+
searchResultItems.map((item, idx, resultsArr) => mapItem(item, idx, resultsArr, searchGroupKeyIdx === 0 ? firstSearchResultRef : undefined)),
|
|
264
|
+
showLoadMore(key, searchResultItems.length || 0) && (react_1.default.createElement(SearchGroupFooter, { tabIndex: 0, "data-translation-key": "search.showMore", onKeyDown: (e) => {
|
|
265
|
+
if (e.key === 'Enter') {
|
|
266
|
+
setLoadMore({
|
|
267
|
+
groupKey: key,
|
|
268
|
+
offset: searchResultItems.length || 0,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}, onClick: () => setLoadMore({
|
|
272
|
+
groupKey: key,
|
|
273
|
+
offset: searchResultItems.length || 0,
|
|
274
|
+
}) }, translate('search.showMore', 'Show more')))));
|
|
247
275
|
}
|
|
248
|
-
|
|
249
|
-
react_1.default.createElement(
|
|
250
|
-
|
|
251
|
-
react_1.default.createElement(
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
})) : isSearchLoading ? (react_1.default.createElement(SearchMessage, { "data-translation-key": "search.loading" },
|
|
276
|
-
react_1.default.createElement(SpinnerLoader_1.SpinnerLoader, { size: "26px", color: "var(--search-input-icon-color)" }),
|
|
277
|
-
translate('search.loading', 'Loading...'))) : (react_1.default.createElement(SearchMessage, { "data-translation-key": "search.noResults" },
|
|
278
|
-
react_1.default.createElement("b", null, translate('search.noResults.title', 'No results'))))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
279
|
-
react_1.default.createElement(SearchRecent_1.SearchRecent, { onSelect: (query, index) => {
|
|
280
|
-
telemetry.sendSearchRecentClickedMessage([
|
|
281
|
-
{
|
|
282
|
-
object: 'search',
|
|
283
|
-
query,
|
|
284
|
-
index: index.toString(),
|
|
285
|
-
searchSessionId,
|
|
286
|
-
},
|
|
287
|
-
]);
|
|
288
|
-
setQuery(query);
|
|
289
|
-
focusSearchInput();
|
|
290
|
-
} }),
|
|
291
|
-
react_1.default.createElement(SearchSuggestedPages_1.SearchSuggestedPages, null)))))) : (react_1.default.createElement(SearchAiDialog_1.SearchAiDialog, { initialMessage: query, response: aiSearch.response, isGeneratingResponse: aiSearch.isGeneratingResponse, error: aiSearch.error, resources: aiSearch.resources, conversation: aiSearch.conversation, setConversation: aiSearch.setConversation, onMessageSent: aiSearch.askQuestion, toolCalls: aiSearch.toolCalls, contentSegments: aiSearch.contentSegments }))),
|
|
292
|
-
react_1.default.createElement(SearchDialogFooter, null, mode === 'ai-dialog' ? (react_1.default.createElement(AiDisclaimer, null, translate('search.ai.disclaimer', 'AI search might provide incomplete or incorrect results. Verify important information.'))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
293
|
-
react_1.default.createElement(SearchShortcuts, null,
|
|
294
|
-
react_1.default.createElement(SearchShortcut_1.SearchShortcut, { "data-translation-key": "search.keys.navigate", combination: "Tab", text: translate('search.keys.navigate', 'to navigate') }),
|
|
295
|
-
react_1.default.createElement(SearchShortcut_1.SearchShortcut, { "data-translation-key": "search.keys.select", combination: "\u23CE", text: translate('search.keys.select', 'to select') }),
|
|
296
|
-
react_1.default.createElement(SearchShortcut_1.SearchShortcut, { "data-translation-key": "search.keys.exit", combination: "Esc", text: translate('search.keys.exit', 'to exit') })),
|
|
297
|
-
isSearchLoading && (react_1.default.createElement(SearchLoading, null,
|
|
298
|
-
react_1.default.createElement(SpinnerLoader_1.SpinnerLoader, { size: "16px", color: "var(--search-input-icon-color)" }),
|
|
299
|
-
translate('search.loading', 'Loading...'))),
|
|
300
|
-
react_1.default.createElement(SearchCancelButton, { "data-translation-key": "search.cancel", variant: "secondary", size: "small", onClick: handleClose }, translate('search.cancel', 'Cancel'))))))));
|
|
276
|
+
return null;
|
|
277
|
+
})) : isSearchLoading ? (react_1.default.createElement(SearchMessage, { "data-translation-key": "search.loading" },
|
|
278
|
+
react_1.default.createElement(SpinnerLoader_1.SpinnerLoader, { size: "26px", color: "var(--search-input-icon-color)" }),
|
|
279
|
+
translate('search.loading', 'Loading...'))) : (react_1.default.createElement(SearchMessage, { "data-translation-key": "search.noResults" },
|
|
280
|
+
react_1.default.createElement("b", null, translate('search.noResults.title', 'No results'))))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
281
|
+
react_1.default.createElement(SearchRecent_1.SearchRecent, { onSelect: (query, index) => {
|
|
282
|
+
telemetry.sendSearchRecentClickedMessage([
|
|
283
|
+
{
|
|
284
|
+
object: 'search',
|
|
285
|
+
query,
|
|
286
|
+
index: index.toString(),
|
|
287
|
+
searchSessionId,
|
|
288
|
+
},
|
|
289
|
+
]);
|
|
290
|
+
setQuery(query);
|
|
291
|
+
focusSearchInput();
|
|
292
|
+
} }),
|
|
293
|
+
react_1.default.createElement(SearchSuggestedPages_1.SearchSuggestedPages, null)))))) : (react_1.default.createElement(SearchAiDialog_1.SearchAiDialog, { initialMessage: query, response: aiSearch.response, isGeneratingResponse: aiSearch.isGeneratingResponse, error: aiSearch.error, resources: aiSearch.resources, conversation: aiSearch.conversation, setConversation: aiSearch.setConversation, onMessageSent: aiSearch.askQuestion, toolCalls: aiSearch.toolCalls, contentSegments: aiSearch.contentSegments }))),
|
|
294
|
+
react_1.default.createElement(SearchDialogFooter, null, mode === 'ai-dialog' ? (react_1.default.createElement(AiDisclaimer, null, translate('search.ai.disclaimer', 'AI search might provide incomplete or incorrect results. Verify important information.'))) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
295
|
+
react_1.default.createElement(SearchShortcuts, null,
|
|
296
|
+
react_1.default.createElement(SearchShortcut_1.SearchShortcut, { "data-translation-key": "search.keys.navigate", combination: "Tab", text: translate('search.keys.navigate', 'to navigate') }),
|
|
297
|
+
react_1.default.createElement(SearchShortcut_1.SearchShortcut, { "data-translation-key": "search.keys.select", combination: "\u23CE", text: translate('search.keys.select', 'to select') }),
|
|
298
|
+
react_1.default.createElement(SearchShortcut_1.SearchShortcut, { "data-translation-key": "search.keys.exit", combination: "Esc", text: translate('search.keys.exit', 'to exit') })),
|
|
299
|
+
isSearchLoading && (react_1.default.createElement(SearchLoading, null,
|
|
300
|
+
react_1.default.createElement(SpinnerLoader_1.SpinnerLoader, { size: "16px", color: "var(--search-input-icon-color)" }),
|
|
301
|
+
translate('search.loading', 'Loading...'))),
|
|
302
|
+
react_1.default.createElement(SearchCancelButton, { "data-translation-key": "search.cancel", variant: "secondary", size: "small", onClick: handleClose }, translate('search.cancel', 'Cancel')))))))));
|
|
301
303
|
}
|
|
302
304
|
const SearchOverlay = styled_components_1.default.div `
|
|
303
305
|
position: fixed;
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.svgViewerDarkMode = void 0;
|
|
4
4
|
const styled_components_1 = require("styled-components");
|
|
5
5
|
exports.svgViewerDarkMode = (0, styled_components_1.css) `
|
|
6
|
-
--svg-viewer-bg-color: var(--color-warm-grey-
|
|
6
|
+
--svg-viewer-bg-color: var(--color-warm-grey-3);
|
|
7
7
|
`;
|
|
8
8
|
//# sourceMappingURL=variables.dark.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EntityRelationType } from '../types/catalog';
|
|
2
|
-
export declare const CATALOG_TAG_MAX_LENGTH =
|
|
2
|
+
export declare const CATALOG_TAG_MAX_LENGTH = 12;
|
|
3
3
|
export declare const PREDEFINED_ENTITY_TYPES: string[];
|
|
4
4
|
export declare const reverseRelationMap: Record<EntityRelationType, EntityRelationType>;
|
|
5
5
|
export declare const relationTypeMap: Record<EntityRelationType, string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION_NOT_SPECIFIED = exports.GraphCustomEdgeType = exports.GraphCustomNodeType = exports.GraphHandleType = exports.relationTypeMap = exports.reverseRelationMap = exports.PREDEFINED_ENTITY_TYPES = exports.CATALOG_TAG_MAX_LENGTH = void 0;
|
|
4
|
-
exports.CATALOG_TAG_MAX_LENGTH =
|
|
4
|
+
exports.CATALOG_TAG_MAX_LENGTH = 12;
|
|
5
5
|
exports.PREDEFINED_ENTITY_TYPES = [
|
|
6
6
|
'service',
|
|
7
7
|
'domain',
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EntitiesCatalogConfig } from '@redocly/config';
|
|
2
|
+
export type EntityWithTypeAndKey = {
|
|
3
|
+
type?: string;
|
|
4
|
+
key?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function useCatalogEntityLink(entitiesCatalogConfig: EntitiesCatalogConfig | undefined): {
|
|
7
|
+
getEntityLink: (entity: EntityWithTypeAndKey) => string | undefined;
|
|
8
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useCatalogEntityLink = useCatalogEntityLink;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
function isEntityExcluded(excludes, entityKey) {
|
|
6
|
+
var _a;
|
|
7
|
+
return (_a = excludes === null || excludes === void 0 ? void 0 : excludes.some((ex) => ex.key === entityKey)) !== null && _a !== void 0 ? _a : false;
|
|
8
|
+
}
|
|
9
|
+
function doesCatalogIncludeEntityType(config, entityType) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const hasNoIncludes = !config.includes || config.includes.length === 0;
|
|
12
|
+
if (hasNoIncludes)
|
|
13
|
+
return true;
|
|
14
|
+
return (_b = (_a = config.includes) === null || _a === void 0 ? void 0 : _a.some((inc) => inc.type === entityType)) !== null && _b !== void 0 ? _b : false;
|
|
15
|
+
}
|
|
16
|
+
function useCatalogEntityLink(entitiesCatalogConfig) {
|
|
17
|
+
const catalogEntries = (0, react_1.useMemo)(() => {
|
|
18
|
+
const catalogs = entitiesCatalogConfig === null || entitiesCatalogConfig === void 0 ? void 0 : entitiesCatalogConfig.catalogs;
|
|
19
|
+
if (!catalogs)
|
|
20
|
+
return [];
|
|
21
|
+
return Object.entries(catalogs)
|
|
22
|
+
.filter((entry) => entry[1] != null)
|
|
23
|
+
.sort(([keyA], [keyB]) => (keyA === 'all' ? 1 : 0) - (keyB === 'all' ? 1 : 0));
|
|
24
|
+
}, [entitiesCatalogConfig]);
|
|
25
|
+
const getEntityLink = (entity) => {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
if (!(entity === null || entity === void 0 ? void 0 : entity.key))
|
|
28
|
+
return undefined;
|
|
29
|
+
const entityType = (_a = entity.type) !== null && _a !== void 0 ? _a : '';
|
|
30
|
+
for (const [catalogKey, config] of catalogEntries) {
|
|
31
|
+
if (isEntityExcluded(config.excludes, entity.key))
|
|
32
|
+
continue;
|
|
33
|
+
if (!doesCatalogIncludeEntityType(config, entityType))
|
|
34
|
+
continue;
|
|
35
|
+
const slug = (_b = config.slug) !== null && _b !== void 0 ? _b : catalogKey;
|
|
36
|
+
return `catalogs/${slug}/entities/${entity.key}`;
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
};
|
|
40
|
+
return { getEntityLink };
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=use-catalog-entity-link.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { BaseEntity, CatalogColumn } from '../../../components/Catalog/CatalogTableView/CatalogTableView';
|
|
2
2
|
type CatalogTableHeaderCellActionsProps<T extends BaseEntity> = {
|
|
3
3
|
column: CatalogColumn<T>;
|
|
4
|
+
currentSortOption?: string | null;
|
|
4
5
|
handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
|
|
5
6
|
isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
|
|
6
7
|
};
|
|
7
|
-
export declare function useCatalogTableHeaderCellActions<T extends BaseEntity>({ column, handleSortClick, isColumnSorted, }: CatalogTableHeaderCellActionsProps<T>): {
|
|
8
|
+
export declare function useCatalogTableHeaderCellActions<T extends BaseEntity>({ column, currentSortOption, handleSortClick, isColumnSorted, }: CatalogTableHeaderCellActionsProps<T>): {
|
|
8
9
|
handleCellClick: () => void;
|
|
9
10
|
sortKey: string | undefined;
|
|
10
11
|
isUpActive: boolean;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useCatalogTableHeaderCellActions = useCatalogTableHeaderCellActions;
|
|
4
|
-
function useCatalogTableHeaderCellActions({ column, handleSortClick, isColumnSorted, }) {
|
|
4
|
+
function useCatalogTableHeaderCellActions({ column, currentSortOption, handleSortClick, isColumnSorted, }) {
|
|
5
5
|
const sortKey = column.sortKey;
|
|
6
|
-
const isUpActive =
|
|
7
|
-
|
|
6
|
+
const isUpActive = Boolean(sortKey &&
|
|
7
|
+
(currentSortOption ? currentSortOption === sortKey : isColumnSorted(sortKey, 'desc')));
|
|
8
|
+
const isDownActive = Boolean(sortKey &&
|
|
9
|
+
(currentSortOption ? currentSortOption === `-${sortKey}` : isColumnSorted(sortKey, 'asc')));
|
|
8
10
|
const handleCellClick = () => {
|
|
9
11
|
if (!column.sortable || !sortKey)
|
|
10
12
|
return;
|
|
@@ -46,6 +46,7 @@ export * from './use-page-actions';
|
|
|
46
46
|
export * from './use-mcp-config';
|
|
47
47
|
export * from './use-connect-mcp-button';
|
|
48
48
|
export * from './catalog/use-catalog-entity-details';
|
|
49
|
+
export * from './catalog/use-catalog-entity-link';
|
|
49
50
|
export * from './catalog/use-catalog-entity-schema';
|
|
50
51
|
export * from './catalog/use-catalog-table-header-cell-actions';
|
|
51
52
|
export * from './use-store';
|
package/lib/core/hooks/index.js
CHANGED
|
@@ -62,6 +62,7 @@ __exportStar(require("./use-page-actions"), exports);
|
|
|
62
62
|
__exportStar(require("./use-mcp-config"), exports);
|
|
63
63
|
__exportStar(require("./use-connect-mcp-button"), exports);
|
|
64
64
|
__exportStar(require("./catalog/use-catalog-entity-details"), exports);
|
|
65
|
+
__exportStar(require("./catalog/use-catalog-entity-link"), exports);
|
|
65
66
|
__exportStar(require("./catalog/use-catalog-entity-schema"), exports);
|
|
66
67
|
__exportStar(require("./catalog/use-catalog-table-header-cell-actions"), exports);
|
|
67
68
|
__exportStar(require("./use-store"), exports);
|
package/lib/core/styles/dark.js
CHANGED
|
@@ -4,21 +4,23 @@ exports.darkMode = void 0;
|
|
|
4
4
|
const styled_components_1 = require("styled-components");
|
|
5
5
|
const variables_dark_1 = require("../../components/Scorecard/variables.dark");
|
|
6
6
|
const variables_dark_2 = require("../../markdoc/components/Mermaid/variables.dark");
|
|
7
|
-
const variables_dark_3 = require("../../components/
|
|
8
|
-
const variables_dark_4 = require("../../components/
|
|
9
|
-
const variables_dark_5 = require("../../components/
|
|
10
|
-
const variables_dark_6 = require("../../components/
|
|
11
|
-
const variables_dark_7 = require("../../
|
|
12
|
-
const variables_dark_8 = require("../../
|
|
13
|
-
const variables_dark_9 = require("../../components/
|
|
14
|
-
const variables_dark_10 = require("../../components/
|
|
15
|
-
const variables_dark_11 = require("../../
|
|
16
|
-
const variables_dark_12 = require("../../components/
|
|
17
|
-
const variables_dark_13 = require("../../components/
|
|
18
|
-
const variables_dark_14 = require("../../components/
|
|
19
|
-
const variables_dark_15 = require("../../components/
|
|
20
|
-
const variables_dark_16 = require("../../components/
|
|
21
|
-
const variables_dark_17 = require("../../components/
|
|
7
|
+
const variables_dark_3 = require("../../markdoc/components/ExcalidrawDiagram/variables.dark");
|
|
8
|
+
const variables_dark_4 = require("../../components/Menu/variables.dark");
|
|
9
|
+
const variables_dark_5 = require("../../components/Button/variables.dark");
|
|
10
|
+
const variables_dark_6 = require("../../components/Buttons/variables.dark");
|
|
11
|
+
const variables_dark_7 = require("../../components/Segmented/variables.dark");
|
|
12
|
+
const variables_dark_8 = require("../../icons/CheckboxIcon/variables.dark");
|
|
13
|
+
const variables_dark_9 = require("../../components/Tag/variables.dark");
|
|
14
|
+
const variables_dark_10 = require("../../components/StatusCode/variables.dark");
|
|
15
|
+
const variables_dark_11 = require("../../components/Switch/variables.dark");
|
|
16
|
+
const variables_dark_12 = require("../../markdoc/components/Cards/variables.dark");
|
|
17
|
+
const variables_dark_13 = require("../../components/Catalog/variables.dark");
|
|
18
|
+
const variables_dark_14 = require("../../components/PageActions/variables.dark");
|
|
19
|
+
const variables_dark_15 = require("../../components/Tooltip/variables.dark");
|
|
20
|
+
const variables_dark_16 = require("../../components/Banner/variables.dark");
|
|
21
|
+
const variables_dark_17 = require("../../components/Admonition/variables.dark");
|
|
22
|
+
const variables_dark_18 = require("../../components/SvgViewer/variables.dark");
|
|
23
|
+
const palette_dark_1 = require("./palette.dark");
|
|
22
24
|
const replayDarkMode = (0, styled_components_1.css) `
|
|
23
25
|
/**
|
|
24
26
|
* @tokens Replay Colors
|
|
@@ -44,6 +46,8 @@ const replayDarkMode = (0, styled_components_1.css) `
|
|
|
44
46
|
--replay-runtime-expression-bg-color: rgba(147, 166, 249, 0.16); // @presenter Color
|
|
45
47
|
--replay-operators-color: rgba(168, 143, 88, 1); // @presenter Color
|
|
46
48
|
|
|
49
|
+
--replay-ai-user-message-gradient: linear-gradient(73.52deg, rgba(113, 94, 254, 0.16) 10.13%, rgba(255, 92, 220, 0.16) 87.29%);
|
|
50
|
+
|
|
47
51
|
// @tokens End
|
|
48
52
|
`;
|
|
49
53
|
const badgesDarkMode = (0, styled_components_1.css) `
|
|
@@ -239,6 +243,12 @@ exports.darkMode = (0, styled_components_1.css) `
|
|
|
239
243
|
--color-black: #ffffff;
|
|
240
244
|
--color-white: #000000;
|
|
241
245
|
|
|
246
|
+
|
|
247
|
+
--color-brand-pink-subtle-bg: var(--color-brand-subtle-1);
|
|
248
|
+
--color-brand-pink-subtle-bg-hover: var(--color-brand-subtle-2);
|
|
249
|
+
--color-brand-pink-subtle-border: var(--color-brand-subtle-3);
|
|
250
|
+
--color-brand-pink-subtle-border-hover: var(--color-brand-subtle-4);
|
|
251
|
+
|
|
242
252
|
--color-hover-base: #32343E;
|
|
243
253
|
|
|
244
254
|
--bg-color: var(--color-warm-grey-2);
|
|
@@ -325,26 +335,27 @@ exports.darkMode = (0, styled_components_1.css) `
|
|
|
325
335
|
--plus-square-outlined-icon: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.20312 5.3125H4.6875V6.79687C4.6875 6.83984 4.72266 6.875 4.76562 6.875H5.23438C5.27734 6.875 5.3125 6.83984 5.3125 6.79687V5.3125H6.79688C6.83984 5.3125 6.875 5.27734 6.875 5.23437V4.76562C6.875 4.72266 6.83984 4.6875 6.79688 4.6875H5.3125V3.20312C5.3125 3.16016 5.27734 3.125 5.23438 3.125H4.76562C4.72266 3.125 4.6875 3.16016 4.6875 3.20312V4.6875H3.20312C3.16016 4.6875 3.125 4.72266 3.125 4.76562V5.23437C3.125 5.27734 3.16016 5.3125 3.20312 5.3125Z' fill='%239B9CA8'/%3E%3Cpath d='M8.59375 1.09375H1.40625C1.2334 1.09375 1.09375 1.2334 1.09375 1.40625V8.59375C1.09375 8.7666 1.2334 8.90625 1.40625 8.90625H8.59375C8.7666 8.90625 8.90625 8.7666 8.90625 8.59375V1.40625C8.90625 1.2334 8.7666 1.09375 8.59375 1.09375ZM8.20312 8.20312H1.79688V1.79687H8.20312V8.20312Z' fill='%239B9CA8'/%3E%3C/svg%3E%0A");
|
|
326
336
|
--minus-square-outlined-icon: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.20312 5.3125H6.79688C6.83984 5.3125 6.875 5.27734 6.875 5.23437V4.76562C6.875 4.72266 6.83984 4.6875 6.79688 4.6875H3.20312C3.16016 4.6875 3.125 4.72266 3.125 4.76562V5.23437C3.125 5.27734 3.16016 5.3125 3.20312 5.3125Z' fill='%239B9CA8'/%3E%3Cpath d='M8.59375 1.09375H1.40625C1.2334 1.09375 1.09375 1.2334 1.09375 1.40625V8.59375C1.09375 8.7666 1.2334 8.90625 1.40625 8.90625H8.59375C8.7666 8.90625 8.90625 8.7666 8.90625 8.59375V1.40625C8.90625 1.2334 8.7666 1.09375 8.59375 1.09375ZM8.20312 8.20312H1.79688V1.79687H8.20312V8.20312Z' fill='%239B9CA8'/%3E%3C/svg%3E%0A");
|
|
327
337
|
|
|
328
|
-
${
|
|
329
|
-
${
|
|
330
|
-
${
|
|
331
|
-
${
|
|
332
|
-
${
|
|
333
|
-
${
|
|
334
|
-
${
|
|
338
|
+
${variables_dark_7.segmentedButtonsDarkMode}
|
|
339
|
+
${variables_dark_5.buttonDarkMode}
|
|
340
|
+
${variables_dark_6.aiAssistantButtonDarkMode}
|
|
341
|
+
${variables_dark_8.checkboxDarkMode}
|
|
342
|
+
${variables_dark_9.tagDarkMode}
|
|
343
|
+
${variables_dark_10.statusCodeDarkMode}
|
|
344
|
+
${variables_dark_4.menuDarkMode}
|
|
335
345
|
${variables_dark_2.mermaidDarkMode}
|
|
346
|
+
${variables_dark_3.excalidrawDarkMode}
|
|
336
347
|
${variables_dark_1.scorecardDarkMode}
|
|
337
348
|
${replayDarkMode}
|
|
338
|
-
${
|
|
339
|
-
${
|
|
340
|
-
${
|
|
341
|
-
${
|
|
342
|
-
${
|
|
343
|
-
${
|
|
344
|
-
${
|
|
345
|
-
${
|
|
349
|
+
${variables_dark_11.switcherDarkMode}
|
|
350
|
+
${variables_dark_12.cardsDarkMode}
|
|
351
|
+
${variables_dark_13.catalogDarkMode}
|
|
352
|
+
${variables_dark_14.pageActionsDarkMode}
|
|
353
|
+
${variables_dark_15.tooltipDarkMode}
|
|
354
|
+
${variables_dark_16.bannerDarkMode}
|
|
355
|
+
${variables_dark_17.admonitionDarkMode}
|
|
356
|
+
${variables_dark_18.svgViewerDarkMode}
|
|
346
357
|
${badgesDarkMode}
|
|
347
|
-
|
|
358
|
+
${palette_dark_1.activeBrandPaletteDark}
|
|
348
359
|
/**
|
|
349
360
|
* @tokens Dark Theme Scrollbar Config
|
|
350
361
|
* @presenter Color
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export declare const styles: import("styled-components").
|
|
2
|
-
|
|
1
|
+
export declare const styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
2
|
+
palette?: string;
|
|
3
|
+
}, any>>;
|
|
4
|
+
export declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{
|
|
5
|
+
palette?: string;
|
|
6
|
+
}, import("styled-components").DefaultTheme>;
|