@redocly/theme 0.63.0-next.5 → 0.63.0

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 (112) hide show
  1. package/lib/components/Accordion/variables.js +2 -2
  2. package/lib/components/Catalog/Catalog.js +114 -50
  3. package/lib/components/Catalog/CatalogAvatar.d.ts +5 -0
  4. package/lib/components/Catalog/CatalogAvatar.js +92 -0
  5. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +26 -7
  6. package/lib/components/Catalog/CatalogCardView/CatalogCardView.js +10 -2
  7. package/lib/components/Catalog/CatalogEntity/CatalogEntity.js +17 -17
  8. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsLinkedNode.js +4 -20
  9. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNodeContent.d.ts +7 -0
  10. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNodeContent.js +53 -0
  11. package/lib/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsRootNode.js +3 -17
  12. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton.js +30 -9
  13. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistorySidebar.js +16 -3
  14. package/lib/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.js +8 -4
  15. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +11 -5
  16. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +1 -1
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +1 -1
  18. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.js +1 -1
  19. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +4 -1
  20. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.js +7 -2
  21. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +1 -1
  22. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +1 -1
  23. package/lib/components/Catalog/CatalogFilter/CatalogFilterCheckboxes.js +1 -1
  24. package/lib/components/Catalog/CatalogFilter/CatalogFilterContent.d.ts +4 -2
  25. package/lib/components/Catalog/CatalogFilter/CatalogFilterContent.js +25 -8
  26. package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanel.d.ts +7 -0
  27. package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanel.js +24 -0
  28. package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelHeader.d.ts +6 -0
  29. package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelHeader.js +26 -0
  30. package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelOverlay.d.ts +7 -0
  31. package/lib/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelOverlay.js +30 -0
  32. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.d.ts +13 -0
  33. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.js +30 -0
  34. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.d.ts +11 -0
  35. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.js +21 -0
  36. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarFiltersButton.d.ts +7 -0
  37. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarFiltersButton.js +25 -0
  38. package/lib/components/Catalog/CatalogPageDescription.js +0 -6
  39. package/lib/components/Catalog/CatalogSelector.d.ts +0 -1
  40. package/lib/components/Catalog/CatalogSelector.js +50 -16
  41. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +2 -1
  42. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +20 -5
  43. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +2 -23
  44. package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +2 -1
  45. package/lib/components/Catalog/CatalogTagsWithTooltip.js +14 -6
  46. package/lib/components/Catalog/variables.js +78 -36
  47. package/lib/components/Filter/variables.js +1 -1
  48. package/lib/components/LoadMore/LoadMore.js +1 -0
  49. package/lib/components/PageActions/PageActions.js +1 -2
  50. package/lib/components/UserMenu/UserMenu.js +1 -3
  51. package/lib/core/hooks/index.d.ts +1 -0
  52. package/lib/core/hooks/index.js +1 -0
  53. package/lib/core/hooks/use-is-truncated.d.ts +1 -0
  54. package/lib/core/hooks/use-is-truncated.js +19 -0
  55. package/lib/core/hooks/use-tabs.d.ts +1 -1
  56. package/lib/core/hooks/use-tabs.js +30 -17
  57. package/lib/core/types/l10n.d.ts +1 -1
  58. package/lib/core/utils/custom-catalog-options-casing.d.ts +15 -0
  59. package/lib/core/utils/custom-catalog-options-casing.js +32 -0
  60. package/lib/core/utils/index.d.ts +1 -0
  61. package/lib/core/utils/index.js +1 -0
  62. package/lib/markdoc/components/MarkdocExample/MarkdocExample.js +2 -2
  63. package/lib/markdoc/components/Tabs/Tabs.d.ts +1 -2
  64. package/lib/markdoc/components/Tabs/Tabs.js +9 -22
  65. package/package.json +4 -4
  66. package/src/components/Accordion/variables.ts +2 -2
  67. package/src/components/Catalog/Catalog.tsx +157 -95
  68. package/src/components/Catalog/CatalogAvatar.tsx +68 -0
  69. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +29 -5
  70. package/src/components/Catalog/CatalogCardView/CatalogCardView.tsx +10 -2
  71. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +17 -17
  72. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsLinkedNode.tsx +4 -21
  73. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsNodeContent.tsx +82 -0
  74. package/src/components/Catalog/CatalogEntity/CatalogEntityGraph/CatalogEntityRelationsRootNode.tsx +4 -22
  75. package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton.tsx +39 -10
  76. package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistorySidebar.tsx +19 -3
  77. package/src/components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityVersionItem.tsx +8 -4
  78. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +12 -10
  79. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +5 -1
  80. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +1 -0
  81. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +1 -1
  82. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +6 -2
  83. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +10 -2
  84. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +1 -1
  85. package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +1 -1
  86. package/src/components/Catalog/CatalogFilter/CatalogFilterCheckboxes.tsx +1 -1
  87. package/src/components/Catalog/CatalogFilter/CatalogFilterContent.tsx +30 -6
  88. package/src/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanel.tsx +31 -0
  89. package/src/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelHeader.tsx +34 -0
  90. package/src/components/Catalog/CatalogMobileFiltersPanel/CatalogMobileFiltersPanelOverlay.tsx +40 -0
  91. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.tsx +54 -0
  92. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.tsx +34 -0
  93. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarFiltersButton.tsx +39 -0
  94. package/src/components/Catalog/CatalogPageDescription.tsx +0 -6
  95. package/src/components/Catalog/CatalogSelector.tsx +23 -21
  96. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +37 -6
  97. package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +2 -26
  98. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +24 -9
  99. package/src/components/Catalog/variables.ts +78 -36
  100. package/src/components/Filter/variables.ts +1 -1
  101. package/src/components/LoadMore/LoadMore.tsx +1 -0
  102. package/src/components/PageActions/PageActions.tsx +1 -2
  103. package/src/components/UserMenu/UserMenu.tsx +1 -3
  104. package/src/core/hooks/code-walkthrough/use-code-walkthrough.ts +1 -1
  105. package/src/core/hooks/index.ts +1 -0
  106. package/src/core/hooks/use-is-truncated.ts +20 -0
  107. package/src/core/hooks/use-tabs.ts +40 -21
  108. package/src/core/types/l10n.ts +2 -0
  109. package/src/core/utils/custom-catalog-options-casing.ts +29 -0
  110. package/src/core/utils/index.ts +1 -0
  111. package/src/markdoc/components/MarkdocExample/MarkdocExample.tsx +2 -6
  112. package/src/markdoc/components/Tabs/Tabs.tsx +4 -37
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react';
2
+ import { SortOption } from '../../../core';
3
+ import { CatalogViewMode } from '../../../core';
4
+ type CatalogMobileTopBarControlsProps = {
5
+ setSortOption: (sortOption: SortOption | null) => void;
6
+ sortOption: SortOption | null;
7
+ viewMode: CatalogViewMode;
8
+ setViewMode: (viewMode: CatalogViewMode) => void;
9
+ };
10
+ export declare function CatalogMobileTopBarControls({ setSortOption, sortOption, viewMode, setViewMode, }: CatalogMobileTopBarControlsProps): JSX.Element;
11
+ export {};
@@ -0,0 +1,21 @@
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.CatalogMobileTopBarControls = CatalogMobileTopBarControls;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const CatalogSortButton_1 = require("../../../components/Catalog/CatalogSortButton");
10
+ const CatalogViewModeToggle_1 = require("../../../components/Catalog/CatalogViewModeToggle");
11
+ function CatalogMobileTopBarControls({ setSortOption, sortOption, viewMode, setViewMode, }) {
12
+ return (react_1.default.createElement(CatalogMobileTopBarControlsWrapper, null,
13
+ react_1.default.createElement(CatalogSortButton_1.CatalogSortButton, { onSortChange: setSortOption, currentSort: sortOption }),
14
+ react_1.default.createElement(CatalogViewModeToggle_1.CatalogViewModeToggle, { viewMode: viewMode, onViewModeChange: setViewMode })));
15
+ }
16
+ const CatalogMobileTopBarControlsWrapper = styled_components_1.default.div `
17
+ display: flex;
18
+ align-items: center;
19
+ gap: var(--catalog-controls-wrapper-gap);
20
+ `;
21
+ //# sourceMappingURL=CatalogMobileTopBarControls.js.map
@@ -0,0 +1,7 @@
1
+ import { JSX } from 'react';
2
+ type CatalogMobileTopBarFiltersButtonProps = {
3
+ setMobileFiltersPanelOpen: (open: boolean) => void;
4
+ activeFiltersCount: number;
5
+ };
6
+ export declare function CatalogMobileTopBarFiltersButton({ setMobileFiltersPanelOpen, activeFiltersCount, }: CatalogMobileTopBarFiltersButtonProps): JSX.Element;
7
+ export {};
@@ -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.CatalogMobileTopBarFiltersButton = CatalogMobileTopBarFiltersButton;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const FilterIcon_1 = require("../../../icons/FilterIcon/FilterIcon");
10
+ const CounterTag_1 = require("../../../components/Tags/CounterTag");
11
+ const core_1 = require("../../../core");
12
+ const Button_1 = require("../../../components/Button/Button");
13
+ function CatalogMobileTopBarFiltersButton({ setMobileFiltersPanelOpen, activeFiltersCount, }) {
14
+ const { useTranslate } = (0, core_1.useThemeHooks)();
15
+ const { translate } = useTranslate();
16
+ return (react_1.default.createElement(CatalogMobileTopBarFiltersButtonWrapper, { icon: react_1.default.createElement(FilterIcon_1.FilterIcon, { size: "16px" }), variant: "ghost", iconPosition: "left", size: "medium", onClick: () => setMobileFiltersPanelOpen(true) },
17
+ translate('catalog.filters.title', 'Filters'),
18
+ activeFiltersCount > 0 ? react_1.default.createElement(CounterTag_1.CounterTag, { borderless: true }, activeFiltersCount) : null));
19
+ }
20
+ const CatalogMobileTopBarFiltersButtonWrapper = (0, styled_components_1.default)(Button_1.Button) `
21
+ display: inline-flex;
22
+ align-items: center;
23
+ gap: var(--spacing-xs);
24
+ `;
25
+ //# sourceMappingURL=CatalogMobileTopBarFiltersButton.js.map
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CatalogPageDescription = CatalogPageDescription;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- const utils_1 = require("../../core/utils");
10
9
  const H3_1 = require("../../components/Typography/H3");
11
10
  const Tag_1 = require("../../components/Tag/Tag");
12
11
  function CatalogPageDescription({ title, titleTranslationKey, description, descriptionTranslationKey, tag, }) {
@@ -18,11 +17,6 @@ function CatalogPageDescription({ title, titleTranslationKey, description, descr
18
17
  }
19
18
  const CatalogPageDescriptionWrapper = styled_components_1.default.div `
20
19
  margin: var(--catalog-heading-margin);
21
- display: var(--catalog-page-description-display-mobile);
22
-
23
- @media screen and (min-width: ${utils_1.breakpoints.medium}) {
24
- display: var(--catalog-page-description-display-desktop);
25
- }
26
20
  `;
27
21
  const CatalogTitleWrapper = styled_components_1.default.div `
28
22
  display: flex;
@@ -7,5 +7,4 @@ export type CatalogSelectorProps = {
7
7
  };
8
8
  export declare function CatalogSelector({ catalogSwitcherItems, onChange, }: CatalogSelectorProps): JSX.Element;
9
9
  export declare const CatalogSelectWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const CatalogSelectLabel: import("styled-components").StyledComponent<"label", any, {}, never>;
11
10
  export declare const CatalogSelect: import("styled-components").StyledComponent<typeof Select, any, {}, never>;
@@ -1,13 +1,47 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
37
  };
5
38
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CatalogSelect = exports.CatalogSelectLabel = exports.CatalogSelectWrapper = void 0;
39
+ exports.CatalogSelect = exports.CatalogSelectWrapper = void 0;
7
40
  exports.CatalogSelector = CatalogSelector;
8
- const react_1 = __importDefault(require("react"));
41
+ const react_1 = __importStar(require("react"));
9
42
  const styled_components_1 = __importDefault(require("styled-components"));
10
43
  const react_router_dom_1 = require("react-router-dom");
44
+ const Accordion_1 = require("../../components/Accordion/Accordion");
11
45
  const Select_1 = require("../../components/Select/Select");
12
46
  const utils_1 = require("../../core/utils");
13
47
  const hooks_1 = require("../../core/hooks");
@@ -15,6 +49,7 @@ const ChevronDownIcon_1 = require("../../icons/ChevronDownIcon/ChevronDownIcon")
15
49
  function CatalogSelector({ catalogSwitcherItems, onChange, }) {
16
50
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
17
51
  const { translate } = useTranslate();
52
+ const [isExpanded, setIsExpanded] = (0, react_1.useState)(true);
18
53
  const navigate = (0, react_router_dom_1.useNavigate)();
19
54
  const pathPrefix = (0, utils_1.getPathPrefix)();
20
55
  const options = catalogSwitcherItems.map((item) => ({
@@ -23,25 +58,24 @@ function CatalogSelector({ catalogSwitcherItems, onChange, }) {
23
58
  label: translate(item.labelTranslationKey),
24
59
  }));
25
60
  const selectedCatalogItem = catalogSwitcherItems.find((item) => item.selected);
61
+ const headerLabel = translate('catalog.catalogs.label', 'Catalogs');
26
62
  return (react_1.default.createElement(exports.CatalogSelectWrapper, { "data-component-name": "Catalog/CatalogSelector" },
27
- react_1.default.createElement(exports.CatalogSelectLabel, null, translate('catalog.catalogs.label', 'Catalogs')),
28
- react_1.default.createElement(exports.CatalogSelect, { value: selectedCatalogItem === null || selectedCatalogItem === void 0 ? void 0 : selectedCatalogItem.slug, options: options, onChange: (value) => {
29
- navigate(`${pathPrefix}/catalogs/${value}`);
30
- onChange();
31
- }, icon: react_1.default.createElement(ChevronDownIcon_1.ChevronDownIcon, { color: "var(--catalog-select-icon-color)" }) })));
63
+ react_1.default.createElement(Accordion_1.Accordion, { expanded: isExpanded, header: headerLabel, onToggle: setIsExpanded },
64
+ react_1.default.createElement(exports.CatalogSelect, { value: selectedCatalogItem === null || selectedCatalogItem === void 0 ? void 0 : selectedCatalogItem.slug, options: options, onChange: (value) => {
65
+ navigate(`${pathPrefix}/catalogs/${value}`);
66
+ onChange();
67
+ }, icon: react_1.default.createElement(ChevronDownIcon_1.ChevronDownIcon, { color: "var(--catalog-select-icon-color)" }) }))));
32
68
  }
33
69
  exports.CatalogSelectWrapper = styled_components_1.default.div `
34
- margin-top: var(--catalog-select-wrapper-margin-top);
35
- `;
36
- exports.CatalogSelectLabel = styled_components_1.default.label `
37
- display: block;
38
- margin-bottom: var(--catalog-select-label-margin-bottom);
39
- font-weight: var(--catalog-select-label-font-weight);
40
- font-size: var(--catalog-select-label-font-size);
41
- line-height: var(--catalog-select-label-line-height);
70
+ display: flex;
71
+ flex-direction: column;
72
+ gap: var(--filter-group-gap);
73
+ --accordion-body-padding: var(--catalog-select-accordion-body-padding);
74
+ --accordion-header-padding: var(--catalog-select-accordion-header-padding);
75
+ --select-line-height: var(--catalog-select-select-line-height);
76
+ --select-input-padding: var(--catalog-select-select-input-padding);
42
77
  `;
43
78
  exports.CatalogSelect = (0, styled_components_1.default)(Select_1.Select) `
44
79
  border-radius: var(--catalog-select-border-radius);
45
- --select-input-padding: var(--catalog-select-input-padding);
46
80
  `;
47
81
  //# sourceMappingURL=CatalogSelector.js.map
@@ -19,6 +19,7 @@ export type CatalogTableViewProps<T extends BaseEntity> = {
19
19
  handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
20
20
  isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
21
21
  style?: React.CSSProperties;
22
+ contentMinWidth?: number;
22
23
  };
23
24
  export type CatalogColumn<T> = {
24
25
  key: string;
@@ -29,4 +30,4 @@ export type CatalogColumn<T> = {
29
30
  sortable?: boolean;
30
31
  sortKey?: string;
31
32
  };
32
- export declare const CatalogTableView: <T extends BaseEntity>({ entities, entitiesCatalogConfig, catalogConfig, columns, setSortOption, currentSortOption, onRowClick, handleSortClick, isColumnSorted, style, }: CatalogTableViewProps<T>) => React.JSX.Element;
33
+ export declare const CatalogTableView: <T extends BaseEntity>({ entities, entitiesCatalogConfig, catalogConfig, columns, setSortOption, currentSortOption, onRowClick, handleSortClick, isColumnSorted, style, contentMinWidth, }: CatalogTableViewProps<T>) => React.JSX.Element;
@@ -13,6 +13,7 @@ const CatalogTableHeaderCell_1 = require("../../../components/Catalog/CatalogTab
13
13
  const CatalogTagsCell_1 = require("../../../components/Catalog/CatalogTableView/CatalogTagsCell");
14
14
  const CatalogTableViewRow_1 = require("../../../components/Catalog/CatalogTableView/CatalogTableViewRow");
15
15
  const CatalogEntityTypeTag_1 = require("../../../components/Catalog/CatalogEntityTypeTag");
16
+ const core_1 = require("../../../core");
16
17
  const baseColumns = [
17
18
  {
18
19
  key: 'entity',
@@ -60,17 +61,27 @@ const baseColumns = [
60
61
  minWidth: '120px',
61
62
  },
62
63
  ];
63
- const CatalogTableView = ({ entities, entitiesCatalogConfig, catalogConfig, columns = baseColumns, setSortOption, currentSortOption, onRowClick, handleSortClick, isColumnSorted, style, }) => {
64
- return (react_1.default.createElement(CatalogTableWrapper, { "data-component-name": "Catalog/CatalogTableView", style: style },
64
+ const CatalogTableView = ({ entities, entitiesCatalogConfig, catalogConfig, columns = baseColumns, setSortOption, currentSortOption, onRowClick, handleSortClick, isColumnSorted, style, contentMinWidth, }) => {
65
+ const tableContent = (react_1.default.createElement(react_1.default.Fragment, null,
65
66
  react_1.default.createElement(CatalogTableHeader, { columnsWidths: columns.map((column) => column.width || '1fr'), columnsMinWidths: columns.map((column) => column.minWidth || 'auto') }, columns.map((column) => (react_1.default.createElement(CatalogTableHeaderCell_1.CatalogTableHeaderCell, { key: column.key, column: column, setSortOption: setSortOption, currentSortOption: currentSortOption, handleSortClick: handleSortClick, isColumnSorted: isColumnSorted })))),
66
- react_1.default.createElement("div", null, entities.map((entity) => (react_1.default.createElement(CatalogTableViewRow_1.CatalogTableViewRow, { key: entity.id, entity: entity, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, columns: columns, onRowClick: onRowClick }))))));
67
+ react_1.default.createElement(CatalogTableBody, null, entities.map((entity) => (react_1.default.createElement(CatalogTableViewRow_1.CatalogTableViewRow, { key: entity.id, entity: entity, entitiesCatalogConfig: entitiesCatalogConfig, catalogConfig: catalogConfig, columns: columns, onRowClick: onRowClick }))))));
68
+ return (react_1.default.createElement(CatalogTableWrapper, { "data-component-name": "Catalog/CatalogTableView", style: style }, contentMinWidth != null ? (react_1.default.createElement(CatalogTableContentInner, { "$contentMinWidth": contentMinWidth }, tableContent)) : (react_1.default.createElement(CatalogTableScrollContent, null, tableContent))));
67
69
  };
68
70
  exports.CatalogTableView = CatalogTableView;
69
71
  const CatalogTableWrapper = styled_components_1.default.div `
70
72
  width: 100%;
71
73
  border-bottom: 1px solid var(--catalog-table-border-color);
72
- margin-bottom: var(--spacing-xl);
73
- margin-top: var(--spacing-xl);
74
+ overflow-x: auto;
75
+
76
+ @media screen and (max-width: ${core_1.breakpoints.medium}) {
77
+ margin-top: 0;
78
+ }
79
+ `;
80
+ const CatalogTableScrollContent = styled_components_1.default.div `
81
+ min-width: min-content;
82
+ `;
83
+ const CatalogTableContentInner = styled_components_1.default.div `
84
+ min-width: ${({ $contentMinWidth }) => $contentMinWidth}px;
74
85
  `;
75
86
  const CatalogTableHeader = styled_components_1.default.div `
76
87
  display: grid;
@@ -79,5 +90,9 @@ const CatalogTableHeader = styled_components_1.default.div `
79
90
  .join(' ')};
80
91
  background: var(--catalog-table-header-bg-color);
81
92
  font-weight: var(--catalog-table-header-font-weight);
93
+ border-radius: var(--border-radius) var(--border-radius) 0 0;
94
+ `;
95
+ const CatalogTableBody = styled_components_1.default.div `
96
+ min-width: min-content;
82
97
  `;
83
98
  //# sourceMappingURL=CatalogTableView.js.map
@@ -8,19 +8,10 @@ exports.CatalogUserEntityCell = CatalogUserEntityCell;
8
8
  const react_1 = __importDefault(require("react"));
9
9
  const styled_components_1 = __importDefault(require("styled-components"));
10
10
  const CatalogHighlight_1 = require("../../../components/Catalog/CatalogHighlight");
11
- const extractInitials = (name) => {
12
- const trimmedName = name === null || name === void 0 ? void 0 : name.trim();
13
- if (!trimmedName)
14
- return '';
15
- const initials = trimmedName.split(' ').map((n) => n[0]);
16
- if (initials.length === 1) {
17
- return initials[0];
18
- }
19
- return initials[0] + initials[initials.length - 1];
20
- };
11
+ const CatalogAvatar_1 = require("../../../components/Catalog/CatalogAvatar");
21
12
  function CatalogUserEntityCell({ name, email }) {
22
13
  return (react_1.default.createElement(EntityTitleCellWrapper, { "data-component-name": "Catalog/CatalogTableView/CatalogUserEntityCell" },
23
- react_1.default.createElement(Avatar, null, extractInitials(name)),
14
+ react_1.default.createElement(CatalogAvatar_1.CatalogAvatar, { value: name, size: "medium" }),
24
15
  react_1.default.createElement(EntityTitleContent, null,
25
16
  react_1.default.createElement(EntityTitle, null,
26
17
  react_1.default.createElement(CatalogHighlight_1.CatalogHighlight, null, name)),
@@ -33,18 +24,6 @@ const EntityTitleCellWrapper = styled_components_1.default.div `
33
24
  gap: 6px;
34
25
  max-width: 100%;
35
26
  `;
36
- const Avatar = styled_components_1.default.div `
37
- display: flex;
38
- align-items: center;
39
- justify-content: center;
40
- width: 32px;
41
- height: 32px;
42
- border-radius: 50%;
43
- background-color: var(--catalog-avatar-bg-color);
44
- flex-shrink: 0;
45
- font-size: 14px;
46
- font-weight: 400;
47
- `;
48
27
  const EntityTitleContent = styled_components_1.default.div `
49
28
  display: flex;
50
29
  flex-direction: column;
@@ -5,5 +5,6 @@ export type CatalogTagsWithTooltipProps = {
5
5
  itemsToShow?: number;
6
6
  showPlaceholder?: boolean;
7
7
  tagProps?: TagProps;
8
+ showAvatars?: boolean;
8
9
  };
9
- export declare function CatalogTagsWithTooltip({ items, itemsToShow, showPlaceholder, tagProps, }: CatalogTagsWithTooltipProps): JSX.Element | null;
10
+ export declare function CatalogTagsWithTooltip({ items, itemsToShow, showPlaceholder, showAvatars, tagProps, }: CatalogTagsWithTooltipProps): JSX.Element | null;
@@ -11,25 +11,29 @@ const Tag_1 = require("../../components/Tag/Tag");
11
11
  const Tooltip_1 = require("../../components/Tooltip/Tooltip");
12
12
  const CatalogHighlight_1 = require("../../components/Catalog/CatalogHighlight");
13
13
  const hooks_1 = require("../../core/hooks");
14
- function CatalogTagsWithTooltip({ items, itemsToShow = 1, showPlaceholder = true, tagProps, }) {
14
+ const CatalogAvatar_1 = require("../../components/Catalog/CatalogAvatar");
15
+ function CatalogTagsWithTooltip({ items, itemsToShow = 1, showPlaceholder = false, showAvatars, tagProps, }) {
15
16
  const { useTranslate } = (0, hooks_1.useThemeHooks)();
16
17
  const { translate } = useTranslate();
17
18
  if (!items || items.length === 0) {
18
19
  if (showPlaceholder) {
19
- return (react_1.default.createElement(CatalogTagsWrapper, { "data-component-name": "Catalog/CatalogTagsWithTooltip" },
20
- react_1.default.createElement(Tag_1.Tag, { style: { backgroundColor: 'var(--catalog-tags-placeholder-bg-color)' }, color: "grey" }, "N/A")));
20
+ return (react_1.default.createElement(CatalogTagsNotConnectedWrapper, { "data-component-name": "Catalog/CatalogTagsWithTooltip" }, translate('catalog.notConnected', 'Not connected')));
21
21
  }
22
22
  return null;
23
23
  }
24
24
  if (items.length <= itemsToShow) {
25
- return (react_1.default.createElement(CatalogTagsWrapper, { "data-component-name": "Catalog/CatalogTagsWithTooltip" }, items.map((item, index) => (react_1.default.createElement(Tag_1.Tag, Object.assign({ key: `${item}-${index}` }, tagProps, { maxLength: constants_1.CATALOG_TAG_MAX_LENGTH }),
25
+ return (react_1.default.createElement(CatalogTagsWrapper, { "data-component-name": "Catalog/CatalogTagsWithTooltip" }, items.map((item, index) => (react_1.default.createElement(Tag_1.Tag, Object.assign({ key: `${item}-${index}` }, tagProps, (showAvatars && {
26
+ icon: react_1.default.createElement(CatalogAvatar_1.CatalogAvatar, { value: item, size: "small" }),
27
+ }), { maxLength: constants_1.CATALOG_TAG_MAX_LENGTH }),
26
28
  react_1.default.createElement(CatalogHighlight_1.CatalogHighlight, null, item))))));
27
29
  }
28
30
  const displayedItems = items.slice(0, itemsToShow);
29
31
  const remainingCount = items.length - itemsToShow;
30
32
  return (react_1.default.createElement(Tooltip_1.Tooltip, { tip: items.join(', '), placement: "bottom", className: "catalog", width: "400px" },
31
33
  react_1.default.createElement(CatalogTagsWrapper, { "data-component-name": "Catalog/CatalogTagsWithTooltip" },
32
- displayedItems.map((item, index) => (react_1.default.createElement(Tag_1.Tag, Object.assign({ key: `${item}-${index}` }, tagProps, { textTransform: "none", maxLength: constants_1.CATALOG_TAG_MAX_LENGTH }),
34
+ displayedItems.map((item, index) => (react_1.default.createElement(Tag_1.Tag, Object.assign({ key: `${item}-${index}` }, tagProps, (showAvatars && {
35
+ icon: react_1.default.createElement(CatalogAvatar_1.CatalogAvatar, { value: item, size: "small" }),
36
+ }), { textTransform: "none", maxLength: constants_1.CATALOG_TAG_MAX_LENGTH }),
33
37
  react_1.default.createElement(CatalogHighlight_1.CatalogHighlight, null, item)))),
34
38
  react_1.default.createElement(MoreTagsButton, null,
35
39
  "+",
@@ -40,10 +44,14 @@ function CatalogTagsWithTooltip({ items, itemsToShow = 1, showPlaceholder = true
40
44
  const CatalogTagsWrapper = styled_components_1.default.div `
41
45
  display: flex;
42
46
  flex-wrap: wrap;
43
- gap: var(--catalog-tags-wrapper-gap);
44
47
  `;
45
48
  const MoreTagsButton = styled_components_1.default.span `
46
49
  font-size: var(--catalog-tags-more-button-font-size);
47
50
  margin-left: var(--catalog-tags-more-button-margin-left);
48
51
  `;
52
+ const CatalogTagsNotConnectedWrapper = styled_components_1.default.span `
53
+ font-size: var(--catalog-tags-not-connected-font-size);
54
+ line-height: var(--catalog-tags-not-connected-line-height);
55
+ color: var(--catalog-tags-not-connected-color);
56
+ `;
49
57
  //# sourceMappingURL=CatalogTagsWithTooltip.js.map
@@ -9,9 +9,9 @@ exports.catalog = (0, styled_components_1.css) `
9
9
  * @tokens Catalog page
10
10
  */
11
11
  --catalog-page-padding-vertical: var(--spacing-xl);
12
- --catalog-page-padding-horizontal: var(--spacing-xxl);
12
+ --catalog-page-padding-horizontal: var(--spacing-xl);
13
13
  --catalog-page-padding: var(--catalog-page-padding-vertical) var(--catalog-page-padding-horizontal);
14
- --catalog-page-content-height: calc(100vh - var(--navbar-height) - var(--spacing-lg) * 2);
14
+ --catalog-page-padding-mobile: var(--catalog-page-padding-vertical) var(--spacing-base);
15
15
 
16
16
  --catalog-filter-padding-vertical-mobile: 0;
17
17
  --catalog-filter-padding-horizontal-mobile: var(--spacing-base);
@@ -31,9 +31,8 @@ exports.catalog = (0, styled_components_1.css) `
31
31
  /**
32
32
  * @tokens Catalog page content
33
33
  */
34
- --catalog-page-content-width-mobile: 90%;
35
- --catalog-page-content-width-desktop: 100%;
36
- --catalog-page-content-margin-mobile: 0 auto;
34
+ --catalog-page-content-width: 100%;
35
+ --catalog-page-content-margin: 0 auto;
37
36
 
38
37
  /**
39
38
  * @tokens Catalog page title
@@ -50,7 +49,7 @@ exports.catalog = (0, styled_components_1.css) `
50
49
  --catalog-description-text-color: var(--text-color-secondary);
51
50
  --catalog-description-font-weight: var(--font-weight-regular);
52
51
  --catalog-description-font-size: var(--font-size-lg);
53
- --catalog-description-margin: 0 0 var(--spacing-sm) 0;
52
+ --catalog-description-margin: 0 0 var(--spacing-xl) 0;
54
53
  --catalog-description-line-height: var(--line-height-lg);
55
54
 
56
55
  /**
@@ -82,14 +81,12 @@ exports.catalog = (0, styled_components_1.css) `
82
81
  /**
83
82
  * @tokens Catalog selector
84
83
  */
85
- --catalog-select-wrapper-margin-top: var(--spacing-xxs);
86
- --catalog-select-label-margin-bottom: var(--spacing-xxs);
87
- --catalog-select-label-font-weight: var(--filter-title-font-weight);
88
- --catalog-select-label-font-size: var(--filter-title-font-size);
89
- --catalog-select-label-line-height: var(--filter-title-line-height);
90
84
  --catalog-select-border-radius: var(--filter-input-border-radius);
91
- --catalog-select-input-padding: var(--select-input-padding-vertical) var(--spacing-sm);
92
85
  --catalog-select-icon-color: var(--input-t-icon-color);
86
+ --catalog-select-accordion-header-padding: 12px 16px 8px 16px;
87
+ --catalog-select-accordion-body-padding: 0px 16px 12px 16px;
88
+ --catalog-select-select-line-height: 1.15em;
89
+ --catalog-select-select-input-padding: 8px 12px;
93
90
 
94
91
  /**
95
92
  * @tokens Catalog highlight
@@ -97,6 +94,18 @@ exports.catalog = (0, styled_components_1.css) `
97
94
  --catalog-highlight-bg-color: var(--search-highlight-bg-color);
98
95
  --catalog-highlight-text-color: var(--search-highlight-text-color);
99
96
 
97
+ /**
98
+ * @tokens Catalog entity
99
+ */
100
+
101
+ --catalog-entity-max-width: 1072px;
102
+ --catalog-spacing-large: calc(var(--spacing-unit) * 16);
103
+ --catalog-entity-padding: var(--spacing-xl) var(--catalog-spacing-large);
104
+ --catalog-entity-padding-large: var(--spacing-lg) var(--catalog-spacing-large);
105
+ --catalog-entity-padding-medium: var(--spacing-lg) var(--spacing-xl);
106
+ --catalog-entity-padding-small: var(--spacing-lg) var(--spacing-base);
107
+ --catalog-entity-margin: 0 auto;
108
+
100
109
  /**
101
110
  * @tokens Catalog entity icon
102
111
  */
@@ -139,10 +148,12 @@ exports.catalog = (0, styled_components_1.css) `
139
148
  /**
140
149
  * @tokens Catalog tags
141
150
  */
142
- --catalog-tags-wrapper-gap: var(--spacing-xs) calc(var(--spacing-xs) - 5px);
143
151
  --catalog-tags-more-button-font-size: var(--font-size-base);
144
152
  --catalog-tags-more-button-margin-left: 4px;
145
153
  --catalog-tags-placeholder-bg-color: var(--bg-color);
154
+ --catalog-tags-not-connected-font-size: var(--font-size-base);
155
+ --catalog-tags-not-connected-line-height: var(--line-height-base);
156
+ --catalog-tags-not-connected-color: var(--text-color-disabled);
146
157
 
147
158
  /**
148
159
  * @tokens Catalog empty state
@@ -155,7 +166,12 @@ exports.catalog = (0, styled_components_1.css) `
155
166
  */
156
167
  --catalog-actions-row-margin-bottom: var(--spacing-xl);
157
168
  --catalog-controls-wrapper-gap: var(--spacing-sm);
169
+
170
+ /**
171
+ * @tokens Catalog filter
172
+ */
158
173
  --catalog-filter-input-width: 360px;
174
+ --catalog-filter-content-header-padding: var(--spacing-base) var(--spacing-base) var(--spacing-sm) var(--spacing-base);
159
175
 
160
176
  /**
161
177
  * @tokens Catalog search input wrapper
@@ -188,17 +204,10 @@ exports.catalog = (0, styled_components_1.css) `
188
204
  --catalog-sidebar-display-desktop: flex;
189
205
  --catalog-sidebar-menu-container-padding-top: 0;
190
206
 
191
- /**
192
- * @tokens Catalog page description responsive
193
- */
194
- --catalog-page-description-display-mobile: none;
195
- --catalog-page-description-display-desktop: block;
196
-
197
207
  /**
198
208
  * @tokens Catalog card
199
209
  */
200
210
  --catalog-card-height: 241px;
201
- --catalog-card-min-width: 400px;
202
211
  --catalog-card-padding-vertical: var(--spacing-base);
203
212
  --catalog-card-padding-horizontal: var(--spacing-md);
204
213
  --catalog-card-gap: var(--spacing-sm);
@@ -213,7 +222,7 @@ exports.catalog = (0, styled_components_1.css) `
213
222
  --catalog-card-border-color-hover: var(--border-color-primary);
214
223
  --catalog-card-border-radius: var(--border-radius-lg);
215
224
  --catalog-cards-group-margin: 0 0 var(--spacing-base) 0;
216
- --catalog-cards-group-gap: var(--spacing-xl);
225
+ --catalog-cards-group-gap: var(--spacing-lg);
217
226
 
218
227
  /**
219
228
  * @tokens Catalog card icon
@@ -233,7 +242,7 @@ exports.catalog = (0, styled_components_1.css) `
233
242
  --catalog-metadata-section-gap: var(--spacing-xs);
234
243
  --catalog-metadata-label-font-size: var(--font-size-base);
235
244
  --catalog-metadata-label-font-weight: var(--font-weight-medium);
236
- --catalog-metadata-label-color: var(--text-color-secondary);
245
+ --catalog-metadata-label-color: var(--text-color-description);
237
246
  --catalog-metadata-column-half-gap: var(--spacing-sm);
238
247
  --catalog-metadata-heading-size: var(--font-size-md);
239
248
 
@@ -256,10 +265,20 @@ exports.catalog = (0, styled_components_1.css) `
256
265
  */
257
266
  --catalog-card-title-color: var(--text-color-primary);
258
267
  --catalog-card-title-min-height: var(--spacing-xxl);
259
- --catalog-card-title-font-size: var(--font-size-lg);
260
- --catalog-card-title-font-weight: var(--font-weight-bold);
261
- --catalog-card-title-line-height: var(--line-height-lg);
262
- --catalog-card-title-line-clamp: 2;
268
+ --catalog-card-title-font-size: var(--font-size-xl);
269
+ --catalog-card-title-font-weight: var(--font-weight-medium);
270
+ --catalog-card-title-line-height: var(--line-height-xl);
271
+ --catalog-card-title-height: 34px;
272
+ --catalog-card-title-display: flex;
273
+ --catalog-card-title-align-items: center;
274
+ --catalog-card-title-margin-bottom: 2px;
275
+
276
+ /**
277
+ * @tokens Catalog card summary
278
+ */
279
+ --catalog-card-summary-font-size: var(--font-size-base);
280
+ --catalog-card-summary-font-weight: var(--font-weight-regular);
281
+ --catalog-card-summary-line-height: var(--line-height-base);
263
282
 
264
283
  /**
265
284
  * @tokens Catalog card footer
@@ -296,11 +315,17 @@ exports.catalog = (0, styled_components_1.css) `
296
315
  --catalog-page-badge-dot-size: 6px;
297
316
  --catalog-page-badge-dot-border-color: var(--color-static-white);
298
317
 
318
+ /**
319
+ * @tokens Catalog card metadata
320
+ */
321
+ --catalog-card-metadata-owner-tag-left-padding: 2px;
322
+
323
+
299
324
  /**
300
325
  * @tokens Catalog table
301
326
  */
302
- --catalog-table-border-color: var(--border-color-primary);
303
- --catalog-table-header-bg-color: var(--bg-color-secondary);
327
+ --catalog-table-border-color: var(--border-color-secondary);
328
+ --catalog-table-header-bg-color: var(--layer-color);
304
329
  --catalog-table-header-font-weight: var(--font-weight-medium);
305
330
  --catalog-table-header-cell-padding: 4px 8px;
306
331
  --catalog-table-cell-padding: 4px 8px;
@@ -331,7 +356,7 @@ exports.catalog = (0, styled_components_1.css) `
331
356
  /**
332
357
  * @tokens Catalog table entity title
333
358
  */
334
- --catalog-table-entity-title-font-size: var(--catalog-card-title-font-size);
359
+ --catalog-table-entity-title-font-size: var(--font-size-lg);
335
360
  --catalog-table-entity-title-line-height: var(--line-height-lg);
336
361
  --catalog-table-entity-title-font-weight: var(--font-weight-medium);
337
362
 
@@ -392,16 +417,27 @@ exports.catalog = (0, styled_components_1.css) `
392
417
  --catalog-empty-state-font-size: var(--font-size-base);
393
418
  --catalog-empty-state-line-height: var(--line-height-base);
394
419
 
420
+ /**
421
+ * @tokens Catalog avatar
422
+ */
395
423
  --catalog-avatar-bg-color: #ededf2;
424
+ --catalog-avatar-small-size: 20px;
425
+ --catalog-avatar-medium-size: 32px;
426
+ --catalog-avatar-large-size: 40px;
427
+ --catalog-avatar-font-size-small: 10px;
428
+ --catalog-avatar-font-size-medium: var(--font-size-base);
429
+ --catalog-avatar-font-size-large: var(--font-size-lg);
430
+ --catalog-avatar-font-weight: var(--font-weight-regular);
431
+ --catalog-avatar-line-height: var(--line-height-base);
396
432
  // @tokens End
397
433
 
398
434
  /**
399
435
  * @tokens Catalog entity relations node
400
436
  */
401
- --catalog-entity-relations-node-padding-vertical: 10px;
402
- --catalog-entity-relations-node-padding-horizontal: 14px;
437
+ --catalog-entity-relations-node-padding-vertical: 8px;
438
+ --catalog-entity-relations-node-padding-horizontal: 12px;
403
439
  --catalog-entity-relations-node-padding: var(--catalog-entity-relations-node-padding-vertical) var(--catalog-entity-relations-node-padding-horizontal);
404
- --catalog-entity-relations-node-gap: 8px;
440
+ --catalog-entity-relations-node-gap: 4px;
405
441
  --catalog-entity-relations-node-border-radius: 10px;
406
442
 
407
443
  --catalog-entity-relations-node-bg-color: var(--layer-color);
@@ -412,7 +448,6 @@ exports.catalog = (0, styled_components_1.css) `
412
448
  --catalog-entity-relations-node-border-style: var(--border-style);
413
449
 
414
450
  --catalog-entity-relations-node-font-weight: var(--font-weight-regular);
415
- --catalog-entity-relations-node-font-weight-root: 600;
416
451
 
417
452
  --catalog-entity-relations-node-root-bg-color: var(--color-blue-6);
418
453
  --catalog-entity-relations-node-root-text-color: var(--color-static-white);
@@ -440,14 +475,17 @@ exports.catalog = (0, styled_components_1.css) `
440
475
  /**
441
476
  * @tokens Catalog history button
442
477
  */
478
+ --catalog-history-button-width: 252px;
479
+ --catalog-history-button-item-width: 244px;
443
480
  --catalog-history-separator-border-color: var(--border-color-secondary);
444
481
  --catalog-history-separator-margin-bottom: var(--spacing-sm);
445
482
  --catalog-history-item-padding: var(--spacing-xxs);
446
483
  --catalog-history-item-margin-bottom: calc(var(--spacing-xxs) * -1);
447
- --catalog-history-item-gap: var(--spacing-xxs);
484
+ --catalog-history-item-gap: var(--spacing-xs);
448
485
  --catalog-history-item-border-radius: var(--menu-item-label-border-radius);
449
486
  --catalog-history-item-bg-color-hover: var(--menu-item-bg-color-hover);
450
487
  --catalog-history-icon-size: 16px;
488
+ --catalog-history-content-max-width: 212px;
451
489
  --catalog-history-text-font-family: var(--font-family-base);
452
490
  --catalog-history-text-font-size: var(--font-size-base);
453
491
  --catalog-history-text-font-weight: var(--font-weight-regular);
@@ -458,12 +496,15 @@ exports.catalog = (0, styled_components_1.css) `
458
496
  --catalog-history-pill-padding-horizontal: var(--spacing-xs);
459
497
  --catalog-history-pill-border-color: var(--border-color-primary);
460
498
  --catalog-history-pill-border-radius: 12px;
461
- --catalog-history-pill-icon-size: 14px;
499
+ --catalog-history-pill-icon-size: 16px;
462
500
  --catalog-history-pill-icon-color: var(--color-green-8);
463
501
  --catalog-history-pill-font-family: var(--font-family-base);
464
502
  --catalog-history-pill-font-size: var(--font-size-base);
465
503
  --catalog-history-pill-line-height: var(--line-height-base);
466
504
  --catalog-history-pill-text-color: var(--text-color-primary);
505
+ --catalog-history-pill-min-width: calc(100% - 118px - var(--catalog-history-item-gap));
506
+
507
+
467
508
  // @tokens End
468
509
 
469
510
  /**
@@ -476,7 +517,7 @@ exports.catalog = (0, styled_components_1.css) `
476
517
  --catalog-history-sidebar-header-padding: var(--spacing-base) var(--spacing-sm) var(--spacing-base);
477
518
  --catalog-history-sidebar-header-font-family: var(--font-family-base);
478
519
  --catalog-history-sidebar-header-font-size: var(--font-size-base);
479
- --catalog-history-sidebar-header-font-weight: var(--font-weight-semibold);
520
+ --catalog-history-sidebar-header-font-weight: var(--font-weight-regular);
480
521
  --catalog-history-sidebar-header-line-height: var(--line-height-base);
481
522
  --catalog-history-sidebar-header-letter-spacing: 0;
482
523
  --catalog-history-sidebar-header-color: var(--text-color-primary);
@@ -513,6 +554,7 @@ exports.catalog = (0, styled_components_1.css) `
513
554
  --catalog-history-sidebar-version-date-color: var(--color-warm-grey-7);
514
555
 
515
556
  --catalog-history-sidebar-revisions-padding-left: 40px;
557
+ --catalog-history-sidebar-revisions-padding-bottom: var(--spacing-base);
516
558
 
517
559
  --catalog-history-sidebar-revision-item-padding: var(--spacing-xs) var(--spacing-sm);
518
560
  --catalog-history-sidebar-revision-item-border-radius: var(--border-radius-md);
@@ -16,7 +16,7 @@ exports.filter = (0, styled_components_1.css) `
16
16
 
17
17
  --filter-options-padding-vertical: 0;
18
18
  --filter-options-padding-horizontal: 0;
19
- --filter-options-gap: var(--spacing-sm);
19
+ --filter-options-gap: var(--spacing-xs);
20
20
  --filter-options-max-height: 350px;
21
21
 
22
22
  --filter-option-font-size: var(--font-size-base);