@redocly/theme 0.18.3-patch.0 → 0.18.3-patch.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -0
  2. package/lib/components/Breadcrumbs/Breadcrumb.js +2 -2
  3. package/lib/components/Breadcrumbs/Breadcrumbs.js +8 -1
  4. package/lib/components/Button/Button.js +6 -4
  5. package/lib/components/Button/styledVariables.js +25 -12
  6. package/lib/components/Catalog/Catalog.js +3 -3
  7. package/lib/components/Catalog/CatalogCard.js +15 -5
  8. package/lib/components/Catalog/styledVariables.js +5 -3
  9. package/lib/components/Catalog/useCatalog.js +12 -1
  10. package/lib/components/CodeBlock/CodeBlockContainer.js +3 -2
  11. package/lib/components/CodeBlock/CodeBlockControls.js +6 -2
  12. package/lib/components/CodeBlock/styledVariables.js +6 -4
  13. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +2 -0
  14. package/lib/components/Dropdown/Dropdown.d.ts +3 -2
  15. package/lib/components/Dropdown/Dropdown.js +2 -1
  16. package/lib/components/EditPageButton/EditPageButton.js +7 -2
  17. package/lib/components/Feedback/Comment.js +5 -0
  18. package/lib/components/Feedback/Feedback.js +13 -3
  19. package/lib/components/Feedback/Rating.js +5 -1
  20. package/lib/components/Feedback/Reasons.js +5 -0
  21. package/lib/components/Feedback/Sentiment.js +11 -2
  22. package/lib/components/Feedback/Thumbs.js +4 -4
  23. package/lib/components/Filter/Filter.js +4 -1
  24. package/lib/components/Filter/FilterContent.js +10 -1
  25. package/lib/components/Filter/FilterPopover.d.ts +4 -4
  26. package/lib/components/Filter/FilterPopover.js +14 -4
  27. package/lib/components/Filter/FilterTag.js +1 -1
  28. package/lib/components/Footer/FooterColumn.js +2 -1
  29. package/lib/components/LastUpdated/index.d.ts +1 -0
  30. package/lib/components/LastUpdated/index.js +18 -0
  31. package/lib/components/LastUpdated/styledVariables.d.ts +1 -0
  32. package/lib/components/LastUpdated/styledVariables.js +11 -0
  33. package/lib/components/Menu/MenuItemLabel.js +2 -0
  34. package/lib/components/Menu/MenuLinkItem.js +2 -1
  35. package/lib/components/Menu/MobileMenu.js +5 -5
  36. package/lib/components/Menu/styledVariables.js +18 -7
  37. package/lib/components/Navbar/NavbarItem.d.ts +1 -1
  38. package/lib/components/Navbar/NavbarItem.js +9 -3
  39. package/lib/components/Navbar/styledVariables.js +5 -2
  40. package/lib/components/NavbarLogo/NavbarLogo.js +2 -1
  41. package/lib/components/NavbarLogo/index.d.ts +1 -0
  42. package/lib/components/NavbarLogo/index.js +1 -0
  43. package/lib/components/NavbarLogo/styledVariables.d.ts +1 -0
  44. package/lib/components/NavbarLogo/styledVariables.js +18 -0
  45. package/lib/components/Panel/styledVariables.js +3 -11
  46. package/lib/components/Profile/LoginLink.js +4 -1
  47. package/lib/components/Profile/MobileUserProfile.js +16 -5
  48. package/lib/components/Profile/UserProfile.js +5 -1
  49. package/lib/components/Search/ProductTag.js +1 -1
  50. package/lib/components/Separator/Separator.js +11 -3
  51. package/lib/components/Separator/SeparatorItem.js +1 -7
  52. package/lib/components/Separator/SeparatorLine.js +7 -3
  53. package/lib/components/Sidebar/ApiCallItem.js +5 -3
  54. package/lib/components/Sidebar/SidebarLayout.js +2 -1
  55. package/lib/components/Sidebar/styledVariables.js +12 -7
  56. package/lib/components/Sidebar/types.d.ts +1 -0
  57. package/lib/components/SidebarActions/CollapseSidebarButton.js +4 -0
  58. package/lib/components/SidebarActions/SidebarActions.js +15 -3
  59. package/lib/components/SidebarActions/styled.js +14 -8
  60. package/lib/components/TableOfContent/TableOfContent.js +2 -1
  61. package/lib/components/Tag/Tag.d.ts +2 -1
  62. package/lib/components/Tag/Tag.js +3 -3
  63. package/lib/components/Tag/styledVariables.js +30 -30
  64. package/lib/components/Tiles/ThinTile.js +7 -5
  65. package/lib/components/Tiles/WideTile.js +10 -8
  66. package/lib/components/Typography/SectionHeader.js +2 -2
  67. package/lib/config.d.ts +76 -0
  68. package/lib/config.js +14 -1
  69. package/lib/globalStyle.js +43 -56
  70. package/lib/icons/PlusIcon/PlusIcon.js +1 -1
  71. package/lib/ui/ArrowBack.js +0 -1
  72. package/lib/ui/darkColors.js +5 -4
  73. package/lib/utils/index.d.ts +1 -0
  74. package/lib/utils/index.js +1 -0
  75. package/lib/utils/tags-parser.d.ts +1 -0
  76. package/lib/utils/tags-parser.js +10 -0
  77. package/package.json +2 -2
  78. package/src/components/Breadcrumbs/Breadcrumb.tsx +8 -2
  79. package/src/components/Breadcrumbs/Breadcrumbs.tsx +13 -1
  80. package/src/components/Button/Button.tsx +6 -4
  81. package/src/components/Button/styledVariables.ts +25 -12
  82. package/src/components/Catalog/Catalog.tsx +3 -8
  83. package/src/components/Catalog/CatalogCard.tsx +17 -6
  84. package/src/components/Catalog/styledVariables.ts +5 -3
  85. package/src/components/Catalog/useCatalog.ts +13 -1
  86. package/src/components/CodeBlock/CodeBlockContainer.tsx +3 -2
  87. package/src/components/CodeBlock/CodeBlockControls.tsx +6 -1
  88. package/src/components/CodeBlock/styledVariables.ts +6 -4
  89. package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +3 -0
  90. package/src/components/Dropdown/Dropdown.tsx +4 -1
  91. package/src/components/EditPageButton/EditPageButton.tsx +7 -2
  92. package/src/components/Feedback/Comment.tsx +5 -0
  93. package/src/components/Feedback/Feedback.tsx +13 -3
  94. package/src/components/Feedback/Rating.tsx +5 -1
  95. package/src/components/Feedback/Reasons.tsx +5 -0
  96. package/src/components/Feedback/Sentiment.tsx +15 -2
  97. package/src/components/Feedback/Thumbs.tsx +4 -4
  98. package/src/components/Filter/Filter.tsx +4 -1
  99. package/src/components/Filter/FilterContent.tsx +14 -3
  100. package/src/components/Filter/FilterPopover.tsx +19 -11
  101. package/src/components/Filter/FilterTag.tsx +1 -1
  102. package/src/components/Footer/FooterColumn.tsx +2 -0
  103. package/src/components/LastUpdated/index.ts +1 -0
  104. package/src/components/LastUpdated/styledVariables.ts +8 -0
  105. package/src/components/Menu/MenuItemLabel.tsx +2 -0
  106. package/src/components/Menu/MenuLinkItem.tsx +6 -1
  107. package/src/components/Menu/MobileMenu.tsx +5 -5
  108. package/src/components/Menu/styledVariables.ts +18 -7
  109. package/src/components/Navbar/NavbarItem.tsx +10 -1
  110. package/src/components/Navbar/styledVariables.ts +5 -2
  111. package/src/components/NavbarLogo/NavbarLogo.tsx +12 -1
  112. package/src/components/NavbarLogo/index.ts +1 -0
  113. package/src/components/NavbarLogo/styledVariables.ts +15 -0
  114. package/src/components/Panel/styledVariables.ts +3 -11
  115. package/src/components/Profile/LoginLink.tsx +8 -1
  116. package/src/components/Profile/MobileUserProfile.tsx +22 -5
  117. package/src/components/Profile/UserProfile.tsx +5 -1
  118. package/src/components/Search/ProductTag.tsx +1 -1
  119. package/src/components/Separator/Separator.tsx +17 -3
  120. package/src/components/Separator/SeparatorItem.tsx +1 -7
  121. package/src/components/Separator/SeparatorLine.tsx +7 -3
  122. package/src/components/Sidebar/ApiCallItem.tsx +4 -2
  123. package/src/components/Sidebar/SidebarLayout.tsx +6 -1
  124. package/src/components/Sidebar/styledVariables.ts +12 -7
  125. package/src/components/Sidebar/types.ts +1 -0
  126. package/src/components/SidebarActions/CollapseSidebarButton.tsx +4 -0
  127. package/src/components/SidebarActions/SidebarActions.tsx +18 -3
  128. package/src/components/SidebarActions/styled.tsx +14 -8
  129. package/src/components/TableOfContent/TableOfContent.tsx +2 -0
  130. package/src/components/Tag/Tag.tsx +4 -3
  131. package/src/components/Tag/styledVariables.ts +30 -30
  132. package/src/components/Tiles/ThinTile.tsx +7 -5
  133. package/src/components/Tiles/WideTile.tsx +10 -8
  134. package/src/components/Typography/SectionHeader.ts +2 -2
  135. package/src/config.ts +18 -1
  136. package/src/globalStyle.ts +41 -57
  137. package/src/icons/PlusIcon/PlusIcon.tsx +7 -1
  138. package/src/ui/ArrowBack.tsx +0 -1
  139. package/src/ui/darkColors.tsx +5 -4
  140. package/src/utils/index.ts +1 -0
  141. package/src/utils/tags-parser.ts +8 -0
@@ -47,6 +47,7 @@ exports.sidebar = (0, styled_components_1.css) `
47
47
  --sidebar-item-font-family: var(--font-family-base); // @presenter FontFamily
48
48
  --sidebar-item-font-size: var(--font-size-base); // @presenter FontSize
49
49
  --sidebar-item-font-weight: var(--font-weight-regular); // @presenter FontSize
50
+ --sidebar-item-line-height: var(--line-height-base); // @presenter LineHeight
50
51
 
51
52
  /**
52
53
  * @tokens Sidebar item colors
@@ -56,8 +57,9 @@ exports.sidebar = (0, styled_components_1.css) `
56
57
  --sidebar-item-background-color: transparent; // @presenter Color
57
58
 
58
59
  --sidebar-item-active-color: var(--text-primary); // @presenter Color
59
- --sidebar-item-active-background-color: var(--bg-raised); // @presenter Color
60
+ --sidebar-item-active-background-color: var(--bg-overlay); // @presenter Color
60
61
 
62
+ --sidebar-item-hover-background-color: var(--bg-raised); // @presenter Color
61
63
  --sidebar-item-hover-color: var(--text-primary); // @presenter Color
62
64
 
63
65
  /**
@@ -127,21 +129,24 @@ exports.sidebar = (0, styled_components_1.css) `
127
129
 
128
130
  --sidebar-item-separator-background-color: var(--sidebar-background-color); // @presenter Color
129
131
  --sidebar-item-separator-line-color: var(--border-primary); // @presenter Color
130
- --sidebar-item-separator-offset: var(--spacing-lg); // @presenter Spacing
132
+ --sidebar-item-separator-offset: var(--spacing-sm); // @presenter Spacing
133
+ --sidebar-item-separator-line-offset: var(--spacing-xxs) var(--sidebar-margin-horizontal); // @presenter Spacing
134
+ --mobile-sidebar-item-separator-line-offset: var(--spacing-xxs) var(--spacing-xs); // @presenter Spacing
131
135
  --sidebar-item-separator-border-width: 1px; // @presenter Spacing
132
136
  --sidebar-item-separator-border-color: var(--border-primary); // @presenter Color
133
- --sidebar-item-separator-padding-top: var(--spacing-xxs); // @presenter Spacing
137
+ --sidebar-item-separator-padding: var(--spacing-xxs) var(--sidebar-item-padding-horizontal); // @presenter Spacing
134
138
 
135
139
  /**
136
140
  * @tokens Sidebar item http tag
137
141
  */
138
142
 
139
- --sidebar-item-http-tag-width: 36px;
140
- --sidebar-item-http-tag-height: 14px;
143
+ --sidebar-item-http-tag-width: auto;
144
+ --sidebar-item-http-tag-height: 20px;
141
145
  --sidebar-item-http-tag-font-family: var(--code-font-family); // @presenter FontFamily
142
- --sidebar-item-http-tag-font-size: 8px; // @presenter FontSize
146
+ --sidebar-item-http-tag-font-size: var(--font-size-sm); // @presenter FontSize
143
147
  --sidebar-item-http-tag-font-weight: normal; //@presenter FontWeight
144
- --sidebar-item-http-tag-border-radius: var(--border-radius-lg); // @presenter BorderRadius
148
+ --sidebar-item-http-tag-border-radius: var(--border-radius-xlg); // @presenter BorderRadius
149
+ --sidebar-item-http-tag-margin: 0 0 0 5px;
145
150
 
146
151
  /**
147
152
  * @tokens Sidebar back button
@@ -43,6 +43,7 @@ export interface NavItem {
43
43
  requiredPermission?: string;
44
44
  menuStyle?: MenuStyle;
45
45
  separatorLine?: boolean;
46
+ linePosition?: 'top' | 'bottom';
46
47
  version?: string;
47
48
  default?: boolean;
48
49
  }
@@ -39,6 +39,10 @@ const ToggleButton = (0, styled_components_1.default)(styled_1.StyledToggleRight
39
39
  fill: var(--sidebar-collapse-button-icon-color);
40
40
  margin-right: ${({ collapsed }) => (collapsed ? 0 : 'calc(var(--spacing-unit) * -9)')};
41
41
  border: 1px solid var(--sidebar-collapse-button-border-color);
42
+ border-radius: var(--border-radius-md);
43
+ padding: var(--spacing-xxs);
44
+ height: var(--control-height-sm);
45
+ width: var(--control-height-sm);
42
46
 
43
47
  ${({ collapsed }) => collapsed &&
44
48
  (0, styled_components_1.css) `
@@ -9,6 +9,7 @@ const ChangeViewButton_1 = require("../../components/SidebarActions/ChangeViewBu
9
9
  const ToggleRightPanelButton_1 = require("../../components/SidebarActions/ToggleRightPanelButton");
10
10
  const CollapseSidebarButton_1 = require("../../components/SidebarActions/CollapseSidebarButton");
11
11
  const styled_1 = require("../../components/SidebarActions/styled");
12
+ const telemetry_1 = require("../../mocks/telemetry");
12
13
  var LayoutVariant;
13
14
  (function (LayoutVariant) {
14
15
  LayoutVariant["STACKED"] = "stacked";
@@ -17,10 +18,21 @@ var LayoutVariant;
17
18
  const SidebarActions = ({ showChangeLayoutButton, showRightPanelToggle, layout, initialShowRightPanelToggle, hideCollapseSidebarButton = false, collapsedSidebar, isOpenapiDocs, onChangeRightPanelViewClick, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }) => {
18
19
  return (react_1.default.createElement(styled_1.ControlsWrap, { className: className, isOpenapiDocs: isOpenapiDocs, isCollapsed: collapsedSidebar, "data-component-name": "Sidebar/Actions" },
19
20
  isOpenapiDocs && (react_1.default.createElement(styled_1.ControlsWrapChangeLayoutButtons, { isCollapsed: collapsedSidebar },
20
- initialShowRightPanelToggle && (react_1.default.createElement(ToggleRightPanelButton_1.ToggleRightPanelButton, { showRightPanelToggle: showRightPanelToggle, onClick: onChangeRightPanelViewClick })),
21
- showChangeLayoutButton && showRightPanelToggle && (react_1.default.createElement(ChangeViewButton_1.ChangeViewButton, { layout: layout, onClick: onChangeViewClick })))),
21
+ initialShowRightPanelToggle && (react_1.default.createElement(ToggleRightPanelButton_1.ToggleRightPanelButton, { showRightPanelToggle: showRightPanelToggle, onClick: () => {
22
+ onChangeRightPanelViewClick();
23
+ telemetry_1.telemetry.send('sidebar_samples_button_clicked', {});
24
+ } })),
25
+ showChangeLayoutButton && showRightPanelToggle && (react_1.default.createElement(ChangeViewButton_1.ChangeViewButton, { layout: layout, onClick: () => {
26
+ onChangeViewClick();
27
+ telemetry_1.telemetry.send('change_layout_button_clicked', {});
28
+ } })))),
22
29
  !collapsedSidebar && requestAccessButton,
23
- !hideCollapseSidebarButton && (react_1.default.createElement(CollapseSidebarButton_1.CollapseSidebarButton, { initialValue: collapsedSidebar, onClick: onChangeCollapseSidebarClick }))));
30
+ !hideCollapseSidebarButton && (react_1.default.createElement(CollapseSidebarButton_1.CollapseSidebarButton, { initialValue: collapsedSidebar, onClick: () => {
31
+ onChangeCollapseSidebarClick();
32
+ collapsedSidebar
33
+ ? telemetry_1.telemetry.send('sidebar_item_expanded', {})
34
+ : telemetry_1.telemetry.send('sidebar_item_collapsed', {});
35
+ } }))));
24
36
  };
25
37
  exports.SidebarActions = SidebarActions;
26
38
  //# sourceMappingURL=SidebarActions.js.map
@@ -44,11 +44,14 @@ exports.StyledToggleRightPanelButton = styled_components_1.default.a `
44
44
  cursor: pointer;
45
45
  z-index: 1;
46
46
  /* Rectangle 201 */
47
- border-radius: var(--border-radius);
48
- padding: var(--spacing-unit);
47
+ border-radius: var(--border-radius-md);
48
+ padding: var(--spacing-xs);
49
+ height: var(--control-height-base);
50
+ width: var(--control-height-base);
51
+ border: 1px solid var(--border-primary);
49
52
 
50
53
  &:hover {
51
- background-color: var(--sidebar-item-active-background-color);
54
+ background-color: var(--sidebar-item-hover-background-color);
52
55
  }
53
56
  `;
54
57
  exports.HideRightPanelSVG = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
@@ -65,13 +68,16 @@ exports.StyledChangeViewButton = styled_components_1.default.a `
65
68
  justify-content: center;
66
69
  align-items: center;
67
70
  cursor: pointer;
68
- border-radius: var(--border-radius);
71
+ border-radius: var(--border-radius-md);
72
+ background: var(--bg-overlay);
69
73
  z-index: 1;
70
74
  /* Rectangle 201 */
71
- padding: var(--spacing-unit);
75
+ padding: var(--spacing-xs);
76
+ height: var(--control-height-base);
77
+ width: var(--control-height-base);
72
78
 
73
79
  &:hover {
74
- background-color: var(--sidebar-item-active-background-color);
80
+ background-color: var(--sidebar-item-hover-background-color);
75
81
  }
76
82
  `;
77
83
  exports.ChangeViewSvgRow = (0, styled_components_1.default)(() => (react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
@@ -91,7 +97,7 @@ exports.ControlsWrap = styled_components_1.default.span `
91
97
  justify-content: ${({ isOpenapiDocs }) => (isOpenapiDocs ? 'space-between' : 'flex-end')};
92
98
  bottom: 0;
93
99
  flex-direction: row;
94
- gap: var(--spacing-xxs);
100
+ gap: var(--spacing-xs);
95
101
  align-items: center;
96
102
  margin-left: var(--sidebar-controls-margin-left);
97
103
  z-index: 2;
@@ -120,7 +126,7 @@ exports.ControlsWrapChangeLayoutButtons = styled_components_1.default.span `
120
126
  display: flex;
121
127
  bottom: 0;
122
128
  flex-direction: ${({ isCollapsed }) => (isCollapsed ? 'column-reverse' : 'row')};
123
- gap: ${({ isCollapsed }) => (isCollapsed ? '10px' : 'var(--spacing-unit)')};
129
+ gap: ${({ isCollapsed }) => (isCollapsed ? '10px' : 'var(--spacing-xs)')};
124
130
  align-items: center;
125
131
  `;
126
132
  //# sourceMappingURL=styled.js.map
@@ -34,6 +34,7 @@ const useActiveHeading_1 = require("../../hooks/useActiveHeading");
34
34
  const useThemeConfig_1 = require("../../hooks/useThemeConfig");
35
35
  const hooks_1 = require("../../mocks/hooks");
36
36
  const utils_1 = require("../../components/TableOfContent/utils");
37
+ const telemetry_1 = require("../../mocks/telemetry");
37
38
  function TableOfContent(props) {
38
39
  const { headings, contentWrapper, className } = props;
39
40
  const sidebar = React.useRef(null);
@@ -58,7 +59,7 @@ function TableOfContent(props) {
58
59
  return null;
59
60
  }
60
61
  const href = '#' + heading.id;
61
- return (React.createElement(MenuItem, { key: href + idx, href: href, depth: heading.depth - leastDepth + 1 || 0, className: activeHeadingId === heading.id ? 'active' : '', dangerouslySetInnerHTML: { __html: heading.value || '' }, "data-cy": `toc-${heading.value}` }));
62
+ return (React.createElement(MenuItem, { key: href + idx, href: href, depth: heading.depth - leastDepth + 1 || 0, className: activeHeadingId === heading.id ? 'active' : '', dangerouslySetInnerHTML: { __html: heading.value || '' }, "data-cy": `toc-${heading.value}`, onClick: () => telemetry_1.telemetry.send('toc_item_clicked', {}) }));
62
63
  })))));
63
64
  }
64
65
  exports.TableOfContent = TableOfContent;
@@ -11,6 +11,7 @@ interface TagProps {
11
11
  closable?: boolean;
12
12
  color?: StatusColor | Color | string;
13
13
  icon?: React.ReactNode;
14
+ onClick?: () => void;
14
15
  }
15
- export declare function Tag({ children, className, color, icon }: TagProps): JSX.Element;
16
+ export declare function Tag({ children, className, color, icon, onClick }: TagProps): JSX.Element;
16
17
  export {};
@@ -6,15 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Tag = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
- function Tag({ children, className, color = 'default', icon }) {
10
- return (react_1.default.createElement(TagContainer, { className: className, color: color },
9
+ function Tag({ children, className, color, icon, onClick }) {
10
+ return (react_1.default.createElement(TagContainer, { className: className, color: color, onClick: onClick },
11
11
  icon ? icon : null,
12
12
  children));
13
13
  }
14
14
  exports.Tag = Tag;
15
15
  const TagContainer = styled_components_1.default.div.attrs(({ className, color }) => ({
16
16
  'data-component-name': 'Tag/Tag',
17
- className: className + ` tag-${color}`,
17
+ className: (className || '') + ` tag-default ${color ? `tag-${color}` : ''}`,
18
18
  })) `
19
19
  display: inline-flex;
20
20
  align-items: center;
@@ -45,7 +45,7 @@ exports.tag = (0, styled_components_1.css) `
45
45
  .tag-schema,
46
46
  .tag-default {
47
47
  --tag-color: var(--text-primary); // @presenter Color
48
- --tag-background-color: var(--bg-raised); // @presenter Color
48
+ --tag-background-color: var(--bg-overlay); // @presenter Color
49
49
  --tag-border-color: var(--border-primary); // @presenter Color
50
50
  }
51
51
 
@@ -53,76 +53,76 @@ exports.tag = (0, styled_components_1.css) `
53
53
  .tag-success,
54
54
  .tag-approved,
55
55
  .tag-get {
56
- --tag-color: var(--color-success-base); // @presenter Color
57
- --tag-background-color: var(--color-success-bg); // @presenter Color
58
- --tag-border-color: var(--color-success-border); // @presenter Color
56
+ --tag-color: var(--color-success-active); // @presenter Color
57
+ --tag-background-color: none; // @presenter Color
58
+ --tag-border-color: var(--color-success-active); // @presenter Color
59
59
  }
60
60
 
61
61
  .tag-red,
62
62
  .tag-error,
63
63
  .tag-declined,
64
64
  .tag-delete {
65
- --tag-color: var(--color-error-base); // @presenter Color
65
+ --tag-color: var(--color-error-active); // @presenter Color
66
66
  --tag-background-color: var(--color-error-bg); // @presenter Color
67
- --tag-border-color: var(--color-error-border); // @presenter Color
67
+ --tag-border-color: var(--color-error-active); // @presenter Color
68
68
  }
69
69
 
70
70
  .tag-gold,
71
71
  .tag-warning,
72
72
  .tag-deprecated,
73
73
  .tag-put {
74
- --tag-color: var(--color-warning-base); // @presenter Color
75
- --tag-background-color: var(--color-warning-bg); // @presenter Color
76
- --tag-border-color: var(--color-warning-border); // @presenter Color
74
+ --tag-color: var(--color-warning-active); // @presenter Color
75
+ --tag-background-color: none; // @presenter Color
76
+ --tag-border-color: var(--color-warning-active); // @presenter Color
77
77
  }
78
78
 
79
79
  .tag-blue,
80
80
  .tag-processing,
81
81
  .tag-post {
82
- --tag-color: var(--color-info-base); // @presenter Color
83
- --tag-background-color: var(--color-info-bg); // @presenter Color
84
- --tag-border-color: var(--color-info-border); // @presenter Color
82
+ --tag-color: var(--color-info-active); // @presenter Color
83
+ --tag-background-color: none; // @presenter Color
84
+ --tag-border-color: var(--color-info-active); // @presenter Color
85
85
  }
86
86
 
87
87
  .tag-purple,
88
88
  .tag-head {
89
- --tag-color: var(--color-purple-6); // @presenter Color
90
- --tag-background-color: var(--color-purple-1); // @presenter Color
91
- --tag-border-color: var(--color-purple-3); // @presenter Color
89
+ --tag-color: var(--color-purple-7); // @presenter Color
90
+ --tag-background-color: none; // @presenter Color
91
+ --tag-border-color: var(--color-purple-7); // @presenter Color
92
92
  }
93
93
 
94
94
  .tag-cyan,
95
95
  .tag-option {
96
- --tag-color: var(--color-cyan-6); // @presenter Color
97
- --tag-background-color: var(--color-cyan-1); // @presenter Color
98
- --tag-border-color: var(--color-cyan-3); // @presenter Color
96
+ --tag-color: var(--color-cyan-7); // @presenter Color
97
+ --tag-background-color: none; // @presenter Color
98
+ --tag-border-color: var(--color-cyan-7); // @presenter Color
99
99
  }
100
100
 
101
101
  .tag-yellow,
102
102
  .tag-patch {
103
- --tag-color: var(--color-yellow-6); // @presenter Color
104
- --tag-background-color: var(--color-yellow-1); // @presenter Color
105
- --tag-border-color: var(--color-yellow-3); // @presenter Color
103
+ --tag-color: var(--color-yellow-7); // @presenter Color
104
+ --tag-background-color: none; // @presenter Color
105
+ --tag-border-color: var(--color-yellow-7); // @presenter Color
106
106
  }
107
107
 
108
108
  .tag-geekblue,
109
109
  .tag-link {
110
- --tag-color: var(--color-geekblue-6); // @presenter Color
111
- --tag-background-color: var(--color-geekblue-1); // @presenter Color
112
- --tag-border-color: var(--color-geekblue-3); // @presenter Color
110
+ --tag-color: var(--color-geekblue-7); // @presenter Color
111
+ --tag-background-color: none; // @presenter Color
112
+ --tag-border-color: var(--color-geekblue-7); // @presenter Color
113
113
  }
114
114
 
115
115
  .tag-magneta,
116
116
  .tag-hook {
117
- --tag-color: var(--color-magneta-6); // @presenter Color
118
- --tag-background-color: var(--color-magneta-1); // @presenter Color
119
- --tag-border-color: var(--color-magneta-3); // @presenter Color
117
+ --tag-color: var(--color-magneta-7); // @presenter Color
118
+ --tag-background-color: none; // @presenter Color
119
+ --tag-border-color: var(--color-magneta-7); // @presenter Color
120
120
  }
121
121
 
122
122
  .tag-lime {
123
- --tag-color: var(--color-lime-6); // @presenter Color
124
- --tag-background-color: var(--color-lime-1); // @presenter Color
125
- --tag-border-color: var(--color-lime-3); // @presenter Color
123
+ --tag-color: var(--color-lime-7); // @presenter Color
124
+ --tag-background-color: none; // @presenter Color
125
+ --tag-border-color: var(--color-lime-7); // @presenter Color
126
126
  }
127
127
 
128
128
  // @tokens End
@@ -36,20 +36,20 @@ const TileHeader_1 = require("../../components/Tiles/TileHeader");
36
36
  const ThinTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
37
37
  display: flex;
38
38
  flex-direction: column;
39
- border-radius: 10px;
40
- box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);
39
+ border-radius: var(--border-radius-lg);
41
40
  box-sizing: border-box;
42
- transition: box-shadow 0.25s ease;
43
- padding: 24px;
41
+ padding: var(--spacing-lg);
44
42
  margin-bottom: 20px;
45
43
  text-decoration: none;
46
44
  width: 100%;
45
+ color: var(--text-primary);
46
+ border: 1px solid var(--border-secondary);
47
47
  background-color: ${({ bgColor }) => bgColor || 'var(--thin-tile-background-color)'};
48
48
  background-image: ${({ bgImage }) => (bgImage ? `url(${bgImage})` : 'none')};
49
49
  background-repeat: no-repeat;
50
50
 
51
51
  :hover {
52
- box-shadow: 0 10px 100px 0 rgba(35, 35, 35, 0.2);
52
+ border-color: var(--border-primary);
53
53
  }
54
54
 
55
55
  ${({ theme }) => theme.mediaQueries.small} {
@@ -81,9 +81,11 @@ const ThinTileIcon = styled_components_1.default.img `
81
81
  `;
82
82
  const ThinTileHeader = (0, styled_components_1.default)(TileHeader_1.TileHeader) `
83
83
  font-size: 24px;
84
+ font-weight: var(--font-weight-bold);
84
85
  text-align: ${({ align }) => align || 'center'};
85
86
  `;
86
87
  const ThinTileText = (0, styled_components_1.default)(TileText_1.TileText) `
88
+ color: var(--text-secondary);
87
89
  font-size: 18px;
88
90
  line-height: 1.5;
89
91
  flex-shrink: 0;
@@ -36,21 +36,21 @@ const TileHeader_1 = require("../../components/Tiles/TileHeader");
36
36
  const WideTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
37
37
  display: inline-flex;
38
38
  flex-direction: ${({ withIcon }) => (withIcon ? 'column' : 'row')};
39
- border-radius: 10px;
40
- box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);
39
+ color: var(--text-primary);
40
+ border: 1px solid var(--border-secondary);
41
+ border-radius: var(--border-radius-lg);
41
42
  background-color: ${({ bgColor }) => bgColor || 'var(--wide-tile-background-color)'};
42
43
  background-image: ${({ bgImage }) => (bgImage ? `url(${bgImage})` : 'none')};
43
44
  background-repeat: no-repeat;
44
- padding: 24px;
45
+ padding: var(--spacing-lg);
45
46
  padding-right: ${({ disableArrow }) => (disableArrow ? '24px' : '56px')};
46
- margin-bottom: 32px;
47
+ margin-bottom: var(--spacing-xl);
47
48
  box-sizing: border-box;
48
49
  position: relative;
49
50
  text-decoration: none;
50
51
  width: 100%;
51
- transition: box-shadow 0.25s ease;
52
52
  :hover {
53
- box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.2);
53
+ border-color: var(--border-primary);
54
54
  }
55
55
  :before {
56
56
  content: ${({ disableArrow }) => (disableArrow ? 'none' : '""')};
@@ -70,17 +70,19 @@ const WideTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
70
70
 
71
71
  ${({ theme }) => theme.mediaQueries.medium} {
72
72
  width: calc(50% - 2em);
73
- padding: 32px;
74
- padding-right: ${({ disableArrow }) => (disableArrow ? '32px' : '64px')};
73
+ padding: var(--spacing-xl);
74
+ padding-right: ${({ disableArrow }) => (disableArrow ? 'var(--spacing-xl)' : '64px')};
75
75
  flex-direction: row;
76
76
  max-width: ${({ maxWidth }) => maxWidth};
77
77
  }
78
78
  `;
79
79
  const WideTileHeader = (0, styled_components_1.default)(TileHeader_1.TileHeader) `
80
80
  font-size: 24px;
81
+ font-weight: var(--font-weight-bold);
81
82
  text-align: ${({ align }) => align || 'left'};
82
83
  `;
83
84
  const WideTileText = (0, styled_components_1.default)(TileText_1.TileText) `
85
+ color: var(--text-secondary);
84
86
  font-size: 18px;
85
87
  text-align: ${({ align }) => align || 'left'};
86
88
  `;
@@ -9,9 +9,9 @@ exports.SectionHeader = styled_components_1.default.h2.attrs(({ className }) =>
9
9
  'data-component-name': 'Typography/SectionHeader',
10
10
  className,
11
11
  })) `
12
- color: var(--h2-color);
12
+ color: var(--h2-text-color);
13
13
  font-size: var(--h2-font-size);
14
- font-weight: var(--h2-font-weight);
14
+ font-weight: var(--font-weight-regular);
15
15
  text-align: center;
16
16
  margin: 2.65em 0;
17
17
  padding: 0 20px;
package/lib/config.d.ts CHANGED
@@ -485,6 +485,11 @@ declare const catalogSchema: {
485
485
  readonly separatorLine: {
486
486
  readonly type: "boolean";
487
487
  };
488
+ readonly linePosition: {
489
+ readonly type: "string";
490
+ readonly enum: readonly ["top", "bottom"];
491
+ readonly default: "top";
492
+ };
488
493
  readonly version: {
489
494
  readonly type: "string";
490
495
  };
@@ -529,6 +534,11 @@ declare const catalogSchema: {
529
534
  readonly separatorLine: {
530
535
  readonly type: "boolean";
531
536
  };
537
+ readonly linePosition: {
538
+ readonly type: "string";
539
+ readonly enum: readonly ["top", "bottom"];
540
+ readonly default: "top";
541
+ };
532
542
  readonly version: {
533
543
  readonly type: "string";
534
544
  };
@@ -640,6 +650,11 @@ export declare const themeConfigSchema: {
640
650
  readonly separatorLine: {
641
651
  readonly type: "boolean";
642
652
  };
653
+ readonly linePosition: {
654
+ readonly type: "string";
655
+ readonly enum: readonly ["top", "bottom"];
656
+ readonly default: "top";
657
+ };
643
658
  readonly version: {
644
659
  readonly type: "string";
645
660
  };
@@ -684,6 +699,11 @@ export declare const themeConfigSchema: {
684
699
  readonly separatorLine: {
685
700
  readonly type: "boolean";
686
701
  };
702
+ readonly linePosition: {
703
+ readonly type: "string";
704
+ readonly enum: readonly ["top", "bottom"];
705
+ readonly default: "top";
706
+ };
687
707
  readonly version: {
688
708
  readonly type: "string";
689
709
  };
@@ -766,6 +786,11 @@ export declare const themeConfigSchema: {
766
786
  readonly separatorLine: {
767
787
  readonly type: "boolean";
768
788
  };
789
+ readonly linePosition: {
790
+ readonly type: "string";
791
+ readonly enum: readonly ["top", "bottom"];
792
+ readonly default: "top";
793
+ };
769
794
  readonly version: {
770
795
  readonly type: "string";
771
796
  };
@@ -810,6 +835,11 @@ export declare const themeConfigSchema: {
810
835
  readonly separatorLine: {
811
836
  readonly type: "boolean";
812
837
  };
838
+ readonly linePosition: {
839
+ readonly type: "string";
840
+ readonly enum: readonly ["top", "bottom"];
841
+ readonly default: "top";
842
+ };
813
843
  readonly version: {
814
844
  readonly type: "string";
815
845
  };
@@ -849,6 +879,14 @@ export declare const themeConfigSchema: {
849
879
  readonly hide: {
850
880
  readonly type: "boolean";
851
881
  };
882
+ readonly separatorLine: {
883
+ readonly type: "boolean";
884
+ };
885
+ readonly linePosition: {
886
+ readonly type: "string";
887
+ readonly enum: readonly ["top", "bottom"];
888
+ readonly default: "bottom";
889
+ };
852
890
  };
853
891
  readonly additionalProperties: false;
854
892
  };
@@ -1738,6 +1776,11 @@ export declare const themeConfigSchema: {
1738
1776
  readonly separatorLine: {
1739
1777
  readonly type: "boolean";
1740
1778
  };
1779
+ readonly linePosition: {
1780
+ readonly type: "string";
1781
+ readonly enum: readonly ["top", "bottom"];
1782
+ readonly default: "top";
1783
+ };
1741
1784
  readonly version: {
1742
1785
  readonly type: "string";
1743
1786
  };
@@ -1782,6 +1825,11 @@ export declare const themeConfigSchema: {
1782
1825
  readonly separatorLine: {
1783
1826
  readonly type: "boolean";
1784
1827
  };
1828
+ readonly linePosition: {
1829
+ readonly type: "string";
1830
+ readonly enum: readonly ["top", "bottom"];
1831
+ readonly default: "top";
1832
+ };
1785
1833
  readonly version: {
1786
1834
  readonly type: "string";
1787
1835
  };
@@ -1954,6 +2002,11 @@ export declare const productThemeOverrideSchema: {
1954
2002
  readonly separatorLine: {
1955
2003
  readonly type: "boolean";
1956
2004
  };
2005
+ readonly linePosition: {
2006
+ readonly type: "string";
2007
+ readonly enum: readonly ["top", "bottom"];
2008
+ readonly default: "top";
2009
+ };
1957
2010
  readonly version: {
1958
2011
  readonly type: "string";
1959
2012
  };
@@ -1998,6 +2051,11 @@ export declare const productThemeOverrideSchema: {
1998
2051
  readonly separatorLine: {
1999
2052
  readonly type: "boolean";
2000
2053
  };
2054
+ readonly linePosition: {
2055
+ readonly type: "string";
2056
+ readonly enum: readonly ["top", "bottom"];
2057
+ readonly default: "top";
2058
+ };
2001
2059
  readonly version: {
2002
2060
  readonly type: "string";
2003
2061
  };
@@ -2061,6 +2119,11 @@ export declare const productThemeOverrideSchema: {
2061
2119
  readonly separatorLine: {
2062
2120
  readonly type: "boolean";
2063
2121
  };
2122
+ readonly linePosition: {
2123
+ readonly type: "string";
2124
+ readonly enum: readonly ["top", "bottom"];
2125
+ readonly default: "top";
2126
+ };
2064
2127
  readonly version: {
2065
2128
  readonly type: "string";
2066
2129
  };
@@ -2105,6 +2168,11 @@ export declare const productThemeOverrideSchema: {
2105
2168
  readonly separatorLine: {
2106
2169
  readonly type: "boolean";
2107
2170
  };
2171
+ readonly linePosition: {
2172
+ readonly type: "string";
2173
+ readonly enum: readonly ["top", "bottom"];
2174
+ readonly default: "top";
2175
+ };
2108
2176
  readonly version: {
2109
2177
  readonly type: "string";
2110
2178
  };
@@ -2144,6 +2212,14 @@ export declare const productThemeOverrideSchema: {
2144
2212
  readonly hide: {
2145
2213
  readonly type: "boolean";
2146
2214
  };
2215
+ readonly separatorLine: {
2216
+ readonly type: "boolean";
2217
+ };
2218
+ readonly linePosition: {
2219
+ readonly type: "string";
2220
+ readonly enum: readonly ["top", "bottom"];
2221
+ readonly default: "bottom";
2222
+ };
2147
2223
  };
2148
2224
  readonly additionalProperties: false;
2149
2225
  };
package/lib/config.js CHANGED
@@ -225,6 +225,11 @@ const navItemSchema = {
225
225
  label: { type: 'string' },
226
226
  separator: { type: 'string' },
227
227
  separatorLine: { type: 'boolean' },
228
+ linePosition: {
229
+ type: 'string',
230
+ enum: ['top', 'bottom'],
231
+ default: 'top',
232
+ },
228
233
  version: { type: 'string' },
229
234
  menuStyle: { type: 'string', enum: ['drilldown'] },
230
235
  expanded: { type: 'string', const: 'always' },
@@ -365,7 +370,15 @@ exports.themeConfigSchema = {
365
370
  properties: Object.assign({ items: navItemsSchema, copyrightText: { type: 'string' } }, hideConfigSchema.properties),
366
371
  additionalProperties: false,
367
372
  },
368
- sidebar: hideConfigSchema,
373
+ sidebar: {
374
+ type: 'object',
375
+ properties: Object.assign({ separatorLine: { type: 'boolean' }, linePosition: {
376
+ type: 'string',
377
+ enum: ['top', 'bottom'],
378
+ default: 'bottom',
379
+ } }, hideConfigSchema.properties),
380
+ additionalProperties: false,
381
+ },
369
382
  scripts: {
370
383
  type: 'object',
371
384
  properties: {