@redocly/theme 0.30.6 → 0.30.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/lib/components/Breadcrumbs/Breadcrumb.d.ts +2 -2
  2. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  3. package/lib/components/Catalog/Catalog.d.ts +2 -2
  4. package/lib/components/Dropdown/Dropdown.d.ts +1 -1
  5. package/lib/components/Feedback/Emotions.d.ts +4 -4
  6. package/lib/components/Feedback/Feedback.d.ts +2 -2
  7. package/lib/components/Feedback/Thumbs.d.ts +3 -3
  8. package/lib/components/Filter/Filter.d.ts +2 -2
  9. package/lib/components/Filter/FilterContent.d.ts +2 -2
  10. package/lib/components/Filter/FilterPopover.d.ts +2 -2
  11. package/lib/components/Filter/FilterTag.d.ts +2 -2
  12. package/lib/components/Filter/FilterTags.d.ts +2 -2
  13. package/lib/components/Footer/FooterColumn.js +12 -1
  14. package/lib/components/Image/Image.d.ts +2 -2
  15. package/lib/components/Menu/Menu.d.ts +2 -2
  16. package/lib/components/Menu/MenuItemSwitch.d.ts +2 -1
  17. package/lib/components/Navbar/NavbarItem.d.ts +2 -2
  18. package/lib/components/NavbarLogo/NavbarLogo.js +2 -1
  19. package/lib/components/NavbarLogo/styledVariables.js +0 -1
  20. package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.d.ts +2 -2
  21. package/lib/components/OpenApiDocs/ScorecardBadges.d.ts +2 -2
  22. package/lib/components/OpenApiDocs/TryItSecurityApps.d.ts +2 -2
  23. package/lib/components/Product/ProductPicker.d.ts +2 -2
  24. package/lib/components/Profile/AuthUserProfile.d.ts +2 -2
  25. package/lib/components/Profile/MobileUserProfile.d.ts +2 -2
  26. package/lib/components/Profile/UserProfileData.d.ts +2 -2
  27. package/lib/components/Scorecard/Gauge.d.ts +2 -2
  28. package/lib/components/Scorecard/StatusByLevelWidget.d.ts +2 -2
  29. package/lib/components/Search/ClearIcon.d.ts +2 -1
  30. package/lib/components/Search/ClockBackwardsIcon.d.ts +2 -1
  31. package/lib/components/Search/RecentSearches.d.ts +2 -2
  32. package/lib/components/Search/SearchIcon.d.ts +2 -1
  33. package/lib/components/Search/SuggestedPages.d.ts +2 -2
  34. package/lib/components/Select/Select.d.ts +1 -1
  35. package/lib/components/Sidebar/VersionPicker.d.ts +2 -2
  36. package/lib/components/SidebarActions/SidebarActions.d.ts +1 -1
  37. package/lib/components/SidebarActions/styled.d.ts +7 -7
  38. package/lib/components/Tabs/Tabs.d.ts +0 -1
  39. package/lib/components/Tabs/Tabs.js +2 -2
  40. package/lib/config.d.ts +14 -0
  41. package/lib/config.js +5 -0
  42. package/lib/i18n/LanguagePicker.d.ts +2 -2
  43. package/lib/icons/AlertIcon/AlertIcon.d.ts +2 -2
  44. package/lib/icons/AnchorIcon/AnchorIcon.d.ts +2 -2
  45. package/lib/icons/ArrowIcon/ArrowIcon.d.ts +2 -2
  46. package/lib/icons/BurgerIcon/BurgerIcon.d.ts +3 -3
  47. package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +2 -2
  48. package/lib/icons/CloseIcon/CloseIcon.d.ts +3 -3
  49. package/lib/icons/CollapseIcon/CollapseIcon.d.ts +2 -2
  50. package/lib/icons/ColorModeIcon/ColorModeIcon.d.ts +2 -2
  51. package/lib/icons/CopyIcon/CopyIcon.d.ts +2 -2
  52. package/lib/icons/DeselectIcon/DeselectIcon.d.ts +2 -2
  53. package/lib/icons/DissatisfiedIcon/DissatisfiedIcon.d.ts +2 -2
  54. package/lib/icons/EditIcon/EditIcon.d.ts +2 -2
  55. package/lib/icons/ErrorIcon/ErrorIcon.d.ts +2 -2
  56. package/lib/icons/ExpandIcon/ExpandIcon.d.ts +2 -2
  57. package/lib/icons/FileIcon/FileIcon.d.ts +2 -2
  58. package/lib/icons/LanguageIcon/LanguageIcon.d.ts +2 -2
  59. package/lib/icons/LogoutIcon/LogoutIcon.d.ts +3 -3
  60. package/lib/icons/NeutralIcon/NeutralIcon.d.ts +2 -2
  61. package/lib/icons/PlusIcon/PlusIcon.d.ts +3 -3
  62. package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +2 -2
  63. package/lib/icons/RadioCheckButtonIcon/RadioCheckButtonIcon.d.ts +2 -2
  64. package/lib/icons/ReportIcon/ReportIcon.d.ts +2 -2
  65. package/lib/icons/RocketIcon/RocketIcon.d.ts +2 -2
  66. package/lib/icons/SatisfiedIcon/SatisfiedIcon.d.ts +2 -2
  67. package/lib/icons/SelectIcon/SelectIcon.d.ts +2 -2
  68. package/lib/icons/SpinnerIcon/SpinnerIcon.d.ts +3 -3
  69. package/lib/icons/ThumbDownIcon/ThumbDownIcon.d.ts +2 -2
  70. package/lib/icons/ThumbUpIcon/ThumbUpIcon.d.ts +2 -2
  71. package/lib/mocks/Sidebar/useDrilldown.d.ts +2 -2
  72. package/lib/mocks/Sidebar/useMenuGroup.d.ts +2 -2
  73. package/package.json +1 -1
  74. package/src/components/Footer/FooterColumn.tsx +20 -1
  75. package/src/components/NavbarLogo/NavbarLogo.tsx +2 -1
  76. package/src/components/NavbarLogo/styledVariables.ts +0 -1
  77. package/src/components/Tabs/Tabs.tsx +3 -3
  78. package/src/config.ts +5 -0
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const Breadcrumb: (props: {
3
3
  label: string;
4
4
  link?: string;
5
5
  isActive: boolean;
6
6
  onClick?: () => void;
7
- }) => JSX.Element;
7
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const Breadcrumbs: (props: {
3
3
  className?: string;
4
- }) => JSX.Element | null;
4
+ }) => React.JSX.Element | null;
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { CatalogConfig } from '../../config';
3
3
  export default function Catalog(props: {
4
4
  pageProps: {
5
5
  catalogId: string;
6
6
  catalogConfig: CatalogConfig;
7
7
  };
8
- }): JSX.Element;
8
+ }): React.JSX.Element;
9
9
  export declare const FilterControls: import("styled-components").StyledComponent<"div", any, {}, never>;
10
10
  export declare const CatalogPageContent: import("styled-components").StyledComponent<"main", any, {}, never>;
11
11
  export declare const CatalogTitle: import("styled-components").StyledComponent<"h2", any, {}, never>;
@@ -11,7 +11,7 @@ export interface DropdownProps {
11
11
  onChange?: (value: React.ReactNode | string) => void;
12
12
  icon?: React.ReactNode;
13
13
  }
14
- export declare const Dropdown: ({ children, className, items, withArrow, triggerEvent, onChange, dataAttributes, placement, alignment, icon, }: DropdownProps) => JSX.Element;
14
+ export declare const Dropdown: ({ children, className, items, withArrow, triggerEvent, onChange, dataAttributes, placement, alignment, icon, }: DropdownProps) => React.JSX.Element;
15
15
  export declare const DropdownHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
16
16
  export declare const DropdownList: import("styled-components").StyledComponent<"ul", any, {
17
17
  placement?: string | undefined;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const Satisfied: () => JSX.Element;
3
- export declare const Dissatisfied: () => JSX.Element;
4
- export declare const Neutral: () => JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const Satisfied: () => React.JSX.Element;
3
+ export declare const Dissatisfied: () => React.JSX.Element;
4
+ export declare const Neutral: () => React.JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import type { FeedbackProps } from '../../types/portal/src/shared/types/feedback';
3
3
  export declare const Feedback: (props: FeedbackProps & {
4
4
  path?: string;
5
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const ThumbUp: () => JSX.Element;
3
- export declare const ThumbDown: () => JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const ThumbUp: () => React.JSX.Element;
3
+ export declare const ThumbDown: () => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ResolvedFilter } from '../../types/portal/src/shared/types/catalog';
3
3
  import type { ThemeConfig } from '../../config';
4
4
  export declare function Filter({ filter, filterValuesCasing, }: {
@@ -6,4 +6,4 @@ export declare function Filter({ filter, filterValuesCasing, }: {
6
6
  selectedOptions: any;
7
7
  };
8
8
  filterValuesCasing?: NonNullable<ThemeConfig['catalog']>[string]['filterValuesCasing'];
9
- }): JSX.Element | null;
9
+ }): React.JSX.Element | null;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ThemeConfig } from '../../config';
3
3
  import type { ResolvedFilter } from '../../types/portal/src/shared/types/catalog';
4
4
  interface FilterContentProps {
@@ -8,6 +8,6 @@ interface FilterContentProps {
8
8
  isMobile: boolean;
9
9
  filterValuesCasing?: NonNullable<ThemeConfig['catalog']>[string]['filterValuesCasing'];
10
10
  }
11
- export declare function FilterContent({ setFilterTerm, filters, filterTerm, isMobile, filterValuesCasing, }: FilterContentProps): JSX.Element;
11
+ export declare function FilterContent({ setFilterTerm, filters, filterTerm, isMobile, filterValuesCasing, }: FilterContentProps): React.JSX.Element;
12
12
  export declare const FilterItems: import("styled-components").StyledComponent<"div", any, {}, never>;
13
13
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ThemeConfig } from '../../config';
3
3
  import type { ResolvedFilter } from '../../types/portal/src/shared/types/catalog';
4
4
  interface FilterPopoverProps {
@@ -6,7 +6,7 @@ interface FilterPopoverProps {
6
6
  filters: ResolvedFilter[];
7
7
  filterValuesCasing?: NonNullable<ThemeConfig['catalog']>[string]['filterValuesCasing'];
8
8
  }
9
- export declare function FilterPopover({ setIsAddingFilter, filters, filterValuesCasing, }: FilterPopoverProps): JSX.Element;
9
+ export declare function FilterPopover({ setIsAddingFilter, filters, filterValuesCasing, }: FilterPopoverProps): React.JSX.Element;
10
10
  export declare const StyledInput: import("styled-components").StyledComponent<"input", any, {
11
11
  'data-cy': string;
12
12
  }, "data-cy">;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface FilterTagProps {
3
3
  label: string;
4
4
  onClick: () => void;
5
5
  }
6
- export declare function FilterTag({ label, onClick }: FilterTagProps): JSX.Element;
6
+ export declare function FilterTag({ label, onClick }: FilterTagProps): React.JSX.Element;
7
7
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ResolvedFilter } from '../../types/portal/src/shared/types/catalog';
3
3
  interface FilterTagsProps {
4
4
  filters: ResolvedFilter[];
5
5
  }
6
- export declare function FilterTags({ filters }: FilterTagsProps): JSX.Element;
6
+ export declare function FilterTags({ filters }: FilterTagsProps): React.JSX.Element;
7
7
  export {};
@@ -15,8 +15,10 @@ function FooterColumn({ column, className }) {
15
15
  const { translate } = (0, hooks_1.useTranslate)();
16
16
  const { items = [] } = column;
17
17
  const iconsOnly = items.every((item) => item.label === item.link && (item.icon || item.srcSet));
18
+ const label = translate(column.labelTranslationKey, column.label);
19
+ const labelOrLink = column.type === 'link' ? (react_1.default.createElement(Link_1.Link, { to: column.link, external: column.external, target: column.target }, label)) : (label);
18
20
  return (react_1.default.createElement(FooterColumnContainer, { "data-component-name": "Footer/FooterColumn", className: className },
19
- react_1.default.createElement(FooterColumnTitle, null, translate(column.labelTranslationKey, column.label)),
21
+ react_1.default.createElement(FooterColumnTitle, null, labelOrLink),
20
22
  react_1.default.createElement(exports.FooterColumnItems, { iconsOnly: iconsOnly }, items === null || items === void 0 ? void 0 : items.map((columnItem, columnItemIndex) => {
21
23
  if (columnItem.type === 'error') {
22
24
  return null;
@@ -40,6 +42,15 @@ const FooterColumnTitle = styled_components_1.default.p `
40
42
  ${({ theme }) => theme.mediaQueries.small} {
41
43
  margin-bottom: var(--footer-title-margin-bottom);
42
44
  }
45
+
46
+ a {
47
+ text-decoration: none;
48
+ color: var(--footer-title-text-color);
49
+
50
+ &:hover {
51
+ color: var(--footer-title-hover-color);
52
+ }
53
+ }
43
54
  `;
44
55
  const FooterSeparator = styled_components_1.default.div `
45
56
  opacity: 0.75;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type ImageProps = {
3
3
  src?: string;
4
4
  srcSet?: string;
5
5
  alt?: string;
6
6
  className?: string;
7
7
  };
8
- export declare function Image(props: ImageProps): JSX.Element;
8
+ export declare function Image(props: ImageProps): React.JSX.Element;
9
9
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { ItemState } from '../../mocks/Sidebar/types';
3
3
  export interface MenuListProps {
4
4
  items: ItemState[];
@@ -6,7 +6,7 @@ export interface MenuListProps {
6
6
  isMobile?: boolean;
7
7
  className?: string;
8
8
  }
9
- export declare function Menu({ depth, items, className, isMobile }: MenuListProps): JSX.Element;
9
+ export declare function Menu({ depth, items, className, isMobile }: MenuListProps): React.JSX.Element;
10
10
  export declare const ThemeMenu: import("styled-components").StyledComponent<"ul", any, {
11
11
  'data-component-name': string;
12
12
  }, "data-component-name">;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { PropsWithChildren } from 'react';
2
3
  import { type MenuItemProps } from '../../components/Sidebar';
3
- export declare function MenuItemSwitch(props: PropsWithChildren<MenuItemProps>): JSX.Element;
4
+ export declare function MenuItemSwitch(props: PropsWithChildren<MenuItemProps>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { Link } from '../../mocks/Link';
3
3
  import type { ResolvedNavItem } from '../../types/portal';
4
4
  export interface NavbarItemProps {
@@ -6,7 +6,7 @@ export interface NavbarItemProps {
6
6
  className?: string;
7
7
  }
8
8
  export declare function NavbarItem({ navItem, className }: NavbarItemProps): JSX.Element | null;
9
- export declare const NavbarMenuItemDropdown: import("styled-components").StyledComponent<({ children, className, items, withArrow, triggerEvent, onChange, dataAttributes, placement, alignment, icon, }: import("../../components/Dropdown").DropdownProps) => JSX.Element, any, {
9
+ export declare const NavbarMenuItemDropdown: import("styled-components").StyledComponent<({ children, className, items, withArrow, triggerEvent, onChange, dataAttributes, placement, alignment, icon, }: import("../../components/Dropdown").DropdownProps) => React.JSX.Element, any, {
10
10
  dataAttributes: {
11
11
  'data-component-name': string;
12
12
  };
@@ -10,7 +10,7 @@ const Link_1 = require("../../mocks/Link");
10
10
  const Image_1 = require("../../components/Image/Image");
11
11
  const telemetry_1 = require("../../mocks/telemetry");
12
12
  function NavbarLogo({ logo, className }) {
13
- if (!logo.image && !logo.srcSet) {
13
+ if (!(logo === null || logo === void 0 ? void 0 : logo.image) && !(logo === null || logo === void 0 ? void 0 : logo.srcSet)) {
14
14
  return null;
15
15
  }
16
16
  const img = (react_1.default.createElement(Image_1.Image, { className: className, src: logo.image, srcSet: logo.srcSet, alt: logo.altText }));
@@ -28,6 +28,7 @@ exports.LogoContainer = styled_components_1.default.div.attrs({
28
28
  img {
29
29
  max-width: 100%;
30
30
  max-height: 100%;
31
+ height: 100%;
31
32
  }
32
33
  `;
33
34
  //# sourceMappingURL=NavbarLogo.js.map
@@ -12,7 +12,6 @@ exports.logo = (0, styled_components_1.css) `
12
12
  --navbar-logo-margin: 16px; // @presenter Spacing
13
13
  --navbar-logo-max-width: 285px; // @presenter Spacing
14
14
  --navbar-logo-max-height: 285px; // @presenter Spacing
15
-
16
15
  // @tokens End
17
16
  `;
18
17
  //# sourceMappingURL=styledVariables.js.map
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import type { TryItSecurityAppsProps } from '../../components/OpenApiDocs/TryItSecurityApps';
3
- export declare function DevOnboardingTryItSecurity(props: TryItSecurityAppsProps): JSX.Element | null;
3
+ export declare function DevOnboardingTryItSecurity(props: TryItSecurityAppsProps): React.JSX.Element | null;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface ScorecardBadgesProps {
3
3
  metadata?: {
4
4
  scorecardLevel?: string;
@@ -6,5 +6,5 @@ interface ScorecardBadgesProps {
6
6
  scoreCardSlug?: string;
7
7
  };
8
8
  }
9
- export declare function ScorecardBadges(props: ScorecardBadgesProps): JSX.Element | null;
9
+ export declare function ScorecardBadges(props: ScorecardBadgesProps): React.JSX.Element | null;
10
10
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export type TryItSecurityAppsProps = {
3
3
  apiId?: string;
4
4
  value?: string;
5
5
  onChange: (newSecretKey: string) => void;
6
6
  };
7
- export declare function TryItSecurityApps(props: TryItSecurityAppsProps): JSX.Element | null;
7
+ export declare function TryItSecurityApps(props: TryItSecurityAppsProps): React.JSX.Element | null;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const ProductPicker: () => JSX.Element | null;
1
+ import React from 'react';
2
+ export declare const ProductPicker: () => React.JSX.Element | null;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare function AuthUserProfile(): JSX.Element | null;
1
+ import React from 'react';
2
+ export declare function AuthUserProfile(): React.JSX.Element | null;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare function MobileUserProfile(): JSX.Element | null;
1
+ import React from 'react';
2
+ export declare function MobileUserProfile(): React.JSX.Element | null;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface UserProfileDataProps {
3
3
  userData: {
4
4
  name: string;
5
5
  picture: string;
6
6
  };
7
7
  }
8
- export declare function UserProfileData(props: UserProfileDataProps): JSX.Element;
8
+ export declare function UserProfileData(props: UserProfileDataProps): React.JSX.Element;
9
9
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  export declare function Gauge({ chunks, }: {
3
3
  chunks: {
4
4
  share: number;
5
5
  color: string;
6
6
  }[];
7
- }): JSX.Element;
7
+ }): React.JSX.Element;
8
8
  export declare const GaugeValue: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  export interface StatusByLevelWidgetProps {
3
3
  title: string;
4
4
  levels: {
@@ -8,4 +8,4 @@ export interface StatusByLevelWidgetProps {
8
8
  total: number;
9
9
  }[];
10
10
  }
11
- export declare function StatusByLevelWidget(props: StatusByLevelWidgetProps): JSX.Element;
11
+ export declare function StatusByLevelWidget(props: StatusByLevelWidgetProps): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare const ClearIcon: import("styled-components").StyledComponent<(props: SVGProps<SVGSVGElement>) => JSX.Element, any, {}, never>;
3
+ export declare const ClearIcon: import("styled-components").StyledComponent<(props: SVGProps<SVGSVGElement>) => React.JSX.Element, any, {}, never>;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare const ClockBackwardsIcon: import("styled-components").StyledComponent<(props: SVGProps<SVGSVGElement>) => JSX.Element, any, {}, never>;
3
+ export declare const ClockBackwardsIcon: import("styled-components").StyledComponent<(props: SVGProps<SVGSVGElement>) => React.JSX.Element, any, {}, never>;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  export declare function RecentSearches({ onSelect, className, }: {
3
3
  onSelect: (value: string) => void;
4
4
  className?: string;
5
- }): JSX.Element | null;
5
+ }): React.JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare const SearchIcon: import("styled-components").StyledComponent<(props: SVGProps<SVGSVGElement>) => JSX.Element, any, {}, never>;
3
+ export declare const SearchIcon: import("styled-components").StyledComponent<(props: SVGProps<SVGSVGElement>) => React.JSX.Element, any, {}, never>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  export declare function SuggestedPages({ className }: {
3
3
  className?: string;
4
- }): JSX.Element | null;
4
+ }): React.JSX.Element | null;
@@ -18,7 +18,7 @@ export interface SelectProps<T = any> {
18
18
  placeholder?: string;
19
19
  disabled?: boolean;
20
20
  }
21
- export declare function Select<T>({ className, value, options, dataAttributes, withArrow, triggerEvent, onChange, placement, alignment, icon, onlyIcon, disabled, placeholder, }: SelectProps<T>): JSX.Element;
21
+ export declare function Select<T>({ className, value, options, dataAttributes, withArrow, triggerEvent, onChange, placement, alignment, icon, onlyIcon, disabled, placeholder, }: SelectProps<T>): React.JSX.Element;
22
22
  export declare const SelectContainer: import("styled-components").StyledComponent<"div", any, {
23
23
  disabled?: boolean | undefined;
24
24
  }, never>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import type { SelectProps } from '../Select';
3
3
  import type { Version } from '../../types/portal';
4
4
  import { Select } from '../Select';
@@ -7,5 +7,5 @@ export interface VersionPickerProps extends SelectProps {
7
7
  export declare function VersionPicker(props: {
8
8
  versions?: Version[];
9
9
  onChange: (v: Version) => void;
10
- }): JSX.Element | null;
10
+ }): React.JSX.Element | null;
11
11
  export declare const VersionPickerSelect: import("styled-components").StyledComponent<typeof Select, any, SelectProps<any>, never>;
@@ -17,5 +17,5 @@ interface SidebarActionsProps {
17
17
  requestAccessButton?: React.ReactElement | null;
18
18
  className?: string;
19
19
  }
20
- export declare const SidebarActions: ({ showChangeLayoutButton, showRightPanelToggle, layout, initialShowRightPanelToggle, hideCollapseSidebarButton, collapsedSidebar, isOpenapiDocs, onChangeRightPanelViewClick, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }: SidebarActionsProps) => JSX.Element;
20
+ export declare const SidebarActions: ({ showChangeLayoutButton, showRightPanelToggle, layout, initialShowRightPanelToggle, hideCollapseSidebarButton, collapsedSidebar, isOpenapiDocs, onChangeRightPanelViewClick, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }: SidebarActionsProps) => React.JSX.Element;
21
21
  export {};
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
2
- export declare const ShowLeftPanelSVG: import("styled-components").StyledComponent<() => JSX.Element, any, {}, never>;
3
- export declare const HideLeftPanelSVG: import("styled-components").StyledComponent<() => JSX.Element, any, {}, never>;
1
+ import React from 'react';
2
+ export declare const ShowLeftPanelSVG: import("styled-components").StyledComponent<() => React.JSX.Element, any, {}, never>;
3
+ export declare const HideLeftPanelSVG: import("styled-components").StyledComponent<() => React.JSX.Element, any, {}, never>;
4
4
  export declare const StyledToggleRightPanelButton: import("styled-components").StyledComponent<"a", any, {}, never>;
5
- export declare const HideRightPanelSVG: import("styled-components").StyledComponent<() => JSX.Element, any, {}, never>;
6
- export declare const ShowRightPanelSVG: import("styled-components").StyledComponent<() => JSX.Element, any, {}, never>;
5
+ export declare const HideRightPanelSVG: import("styled-components").StyledComponent<() => React.JSX.Element, any, {}, never>;
6
+ export declare const ShowRightPanelSVG: import("styled-components").StyledComponent<() => React.JSX.Element, any, {}, never>;
7
7
  export declare const StyledChangeViewButton: import("styled-components").StyledComponent<"a", any, {}, never>;
8
- export declare const ChangeViewSvgRow: import("styled-components").StyledComponent<() => JSX.Element, any, {}, never>;
9
- export declare const ChangeViewSvgColumn: import("styled-components").StyledComponent<() => JSX.Element, any, {}, never>;
8
+ export declare const ChangeViewSvgRow: import("styled-components").StyledComponent<() => React.JSX.Element, any, {}, never>;
9
+ export declare const ChangeViewSvgColumn: import("styled-components").StyledComponent<() => React.JSX.Element, any, {}, never>;
10
10
  export declare const ControlsWrap: import("styled-components").StyledComponent<"span", any, {
11
11
  iconCount?: number | undefined;
12
12
  isCollapsed?: boolean | undefined;
@@ -2,7 +2,6 @@ import type { PropsWithChildren } from 'react';
2
2
  type Child = {
3
3
  props: {
4
4
  label: string;
5
- key?: string;
6
5
  } & TabsProps;
7
6
  };
8
7
  type TabsProps = PropsWithChildren<{
@@ -37,8 +37,8 @@ function Tabs(props) {
37
37
  const onTabSelect = (label) => setActiveTab(label);
38
38
  return (react_1.default.createElement(TabsContainer, { "data-component-name": "Markdown/Tabs/Tabs", className: props.className },
39
39
  react_1.default.createElement(TabList, null, children.map((child, idx) => {
40
- const { label, key } = child.props;
41
- return (react_1.default.createElement(Tabs_1.Tab, { activeTab: activeTab, key: `${key || label}-${idx}`, label: label, onClick: onTabSelect }));
40
+ const { label } = child.props;
41
+ return (react_1.default.createElement(Tabs_1.Tab, { activeTab: activeTab, key: `${label}-${idx}`, label: label, onClick: onTabSelect }));
42
42
  })),
43
43
  react_1.default.createElement(TabContent, null, children.map((child, idx) => {
44
44
  if (child.props.label !== activeTab)
package/lib/config.d.ts CHANGED
@@ -11,6 +11,13 @@ declare const markdownConfigSchema: {
11
11
  };
12
12
  readonly default: readonly ["image", "links"];
13
13
  };
14
+ readonly partialsFolders: {
15
+ readonly type: "array";
16
+ readonly items: {
17
+ readonly type: "string";
18
+ };
19
+ readonly default: readonly ["_partials"];
20
+ };
14
21
  readonly lastUpdatedBlock: {
15
22
  readonly type: "object";
16
23
  readonly properties: {
@@ -1293,6 +1300,13 @@ export declare const themeConfigSchema: {
1293
1300
  };
1294
1301
  readonly default: readonly ["image", "links"];
1295
1302
  };
1303
+ readonly partialsFolders: {
1304
+ readonly type: "array";
1305
+ readonly items: {
1306
+ readonly type: "string";
1307
+ };
1308
+ readonly default: readonly ["_partials"];
1309
+ };
1296
1310
  readonly lastUpdatedBlock: {
1297
1311
  readonly type: "object";
1298
1312
  readonly properties: {
package/lib/config.js CHANGED
@@ -67,6 +67,11 @@ const markdownConfigSchema = {
67
67
  items: { type: 'string' },
68
68
  default: ['image', 'links'],
69
69
  },
70
+ partialsFolders: {
71
+ type: 'array',
72
+ items: { type: 'string' },
73
+ default: ['_partials'],
74
+ },
70
75
  lastUpdatedBlock: {
71
76
  type: 'object',
72
77
  properties: Object.assign({ format: {
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface LanguagePickerProps {
3
3
  onChangeLanguage: (newLang: string) => void;
4
4
  onlyIcon?: boolean;
5
5
  placement?: 'top' | 'bottom';
6
6
  alignment?: 'start' | 'end';
7
7
  }
8
- export declare const LanguagePicker: (props: LanguagePickerProps) => JSX.Element | null;
8
+ export declare const LanguagePicker: (props: LanguagePickerProps) => React.JSX.Element | null;
9
9
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface AlertIconProps {
3
3
  type: 'warning' | 'success' | 'danger' | 'attention' | 'info';
4
4
  className?: string;
5
5
  }
6
- declare function Icon({ type, className }: AlertIconProps): JSX.Element;
6
+ declare function Icon({ type, className }: AlertIconProps): React.JSX.Element;
7
7
  export declare const AlertIcon: import("styled-components").StyledComponent<typeof Icon, any, {
8
8
  'data-component-name': string;
9
9
  }, "data-component-name">;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface AnchorIconProps {
3
3
  className?: string;
4
4
  }
5
- export declare const AnchorIcon: import("styled-components").StyledComponent<({ className }: AnchorIconProps) => JSX.Element, any, {
5
+ export declare const AnchorIcon: import("styled-components").StyledComponent<({ className }: AnchorIconProps) => React.JSX.Element, any, {
6
6
  'data-component-name': string;
7
7
  }, "data-component-name">;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface ArrowIconProps {
3
3
  className?: string;
4
4
  weight?: 'regular' | 'thin';
5
5
  direction?: 'up' | 'right' | 'left' | 'down';
6
6
  visibility?: 'visible' | 'hidden';
7
7
  }
8
- export declare const ArrowIcon: import("styled-components").StyledComponent<({ className, weight }: ArrowIconProps) => JSX.Element, any, Pick<ArrowIconProps, "weight">, never>;
8
+ export declare const ArrowIcon: import("styled-components").StyledComponent<({ className, weight }: ArrowIconProps) => React.JSX.Element, any, Pick<ArrowIconProps, "weight">, never>;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const Icon: () => JSX.Element;
3
- export declare const BurgerIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const Icon: () => React.JSX.Element;
3
+ export declare const BurgerIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  }, "data-component-name">;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const CheckboxIcon: import("styled-components").StyledComponent<({ className, checked, onClick, }: {
3
3
  className?: string | undefined;
4
4
  checked?: boolean | undefined;
5
5
  onClick?: (() => void) | undefined;
6
- }) => JSX.Element, any, {}, never>;
6
+ }) => React.JSX.Element, any, {}, never>;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const Icon: () => JSX.Element;
3
- export declare const CloseIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const Icon: () => React.JSX.Element;
3
+ export declare const CloseIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  }, "data-component-name">;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IconProps {
3
3
  className?: string;
4
4
  color?: string;
5
5
  }
6
- export declare const CollapseIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
6
+ export declare const CollapseIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
7
7
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface ColorModeIconProps {
3
3
  mode?: 'dark' | 'light' | string;
4
4
  className?: string;
5
5
  }
6
- declare function Icon({ mode, className }: ColorModeIconProps): JSX.Element;
6
+ declare function Icon({ mode, className }: ColorModeIconProps): React.JSX.Element;
7
7
  export declare const ColorModeIcon: import("styled-components").StyledComponent<typeof Icon, any, {
8
8
  'data-component-name': string;
9
9
  }, "data-component-name">;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IconProps {
3
3
  className?: string;
4
4
  }
5
- export declare const CopyIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
5
+ export declare const CopyIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
6
6
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IconProps {
3
3
  className?: string;
4
4
  color?: string;
5
5
  }
6
- export declare const DeselectIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
6
+ export declare const DeselectIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
7
7
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const DissatisfiedIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const DissatisfiedIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
3
3
  'data-component-name': string;
4
4
  }, "data-component-name">;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IconProps {
3
3
  className?: string;
4
4
  }
5
- export declare const EditIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
5
+ export declare const EditIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
6
6
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const ErrorIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const ErrorIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
3
3
  'data-component-name': string;
4
4
  }, "data-component-name">;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IconProps {
3
3
  className?: string;
4
4
  }
5
- export declare const ExpandIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
5
+ export declare const ExpandIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
6
6
  export {};
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IconProps {
3
3
  className?: string;
4
4
  }
5
- export declare const FileIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
5
+ export declare const FileIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
6
6
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const LanguageIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const LanguageIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
3
3
  'data-component-name': string;
4
4
  }, "data-component-name">;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const Icon: () => JSX.Element;
3
- export declare const LogoutIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const Icon: () => React.JSX.Element;
3
+ export declare const LogoutIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  }, "data-component-name">;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const NeutralIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const NeutralIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
3
3
  'data-component-name': string;
4
4
  }, "data-component-name">;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const Icon: () => JSX.Element;
3
- export declare const PlusIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const Icon: () => React.JSX.Element;
3
+ export declare const PlusIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  }, "data-component-name">;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const PointingArrowIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const PointingArrowIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
3
3
  'data-component-name': string;
4
4
  }, "data-component-name">;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const RadioCheckButtonIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const RadioCheckButtonIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
3
3
  'data-component-name': string;
4
4
  }, "data-component-name">;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IconProps {
3
3
  className?: string;
4
4
  }
5
- export declare const ReportIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
5
+ export declare const ReportIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
6
6
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IconProps {
3
3
  className?: string;
4
4
  color?: string;
5
5
  }
6
- export declare const RocketIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
6
+ export declare const RocketIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
7
7
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const SatisfiedIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const SatisfiedIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
3
3
  'data-component-name': string;
4
4
  }, "data-component-name">;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IconProps {
3
3
  className?: string;
4
4
  }
5
- export declare const SelectIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
5
+ export declare const SelectIcon: import("styled-components").StyledComponent<({ className }: IconProps) => React.JSX.Element, any, {}, never>;
6
6
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface SpinnerIconProps {
3
3
  className?: string;
4
4
  }
5
- export declare const Icon: ({ className }: SpinnerIconProps) => JSX.Element;
6
- export declare const SpinnerIcon: import("styled-components").StyledComponent<({ className }: SpinnerIconProps) => JSX.Element, any, {
5
+ export declare const Icon: ({ className }: SpinnerIconProps) => React.JSX.Element;
6
+ export declare const SpinnerIcon: import("styled-components").StyledComponent<({ className }: SpinnerIconProps) => React.JSX.Element, any, {
7
7
  'data-component-name': string;
8
8
  }, "data-component-name">;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const ThumbDownIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const ThumbDownIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
3
3
  'data-component-name': string;
4
4
  }, "data-component-name">;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const ThumbUpIcon: import("styled-components").StyledComponent<() => JSX.Element, any, {
1
+ import React from 'react';
2
+ export declare const ThumbUpIcon: import("styled-components").StyledComponent<() => React.JSX.Element, any, {
3
3
  'data-component-name': string;
4
4
  }, "data-component-name">;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare function useDrilldown(_props: any): {
3
- Drilldown: ({ children }: any) => JSX.Element;
3
+ Drilldown: ({ children }: any) => React.JSX.Element;
4
4
  handleBack: () => void;
5
5
  handleExpand: () => void;
6
6
  isExpanded: boolean;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare function useMenuGroup(_item: any): {
3
- MenuGroup: ({ children }: any) => JSX.Element;
3
+ MenuGroup: ({ children }: any) => React.JSX.Element;
4
4
  handleGroupClick: () => void;
5
5
  isExpanded: boolean;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.30.6",
3
+ "version": "0.30.8",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -19,9 +19,19 @@ export function FooterColumn({ column, className }: FooterColumnProps): JSX.Elem
19
19
 
20
20
  const iconsOnly = items.every((item) => item.label === item.link && (item.icon || item.srcSet));
21
21
 
22
+ const label = translate(column.labelTranslationKey, column.label);
23
+ const labelOrLink =
24
+ column.type === 'link' ? (
25
+ <Link to={column.link} external={column.external} target={column.target}>
26
+ {label}
27
+ </Link>
28
+ ) : (
29
+ label
30
+ );
31
+
22
32
  return (
23
33
  <FooterColumnContainer data-component-name="Footer/FooterColumn" className={className}>
24
- <FooterColumnTitle>{translate(column.labelTranslationKey, column.label)}</FooterColumnTitle>
34
+ <FooterColumnTitle>{labelOrLink}</FooterColumnTitle>
25
35
  <FooterColumnItems iconsOnly={iconsOnly}>
26
36
  {items?.map((columnItem, columnItemIndex) => {
27
37
  if (columnItem.type === 'error') {
@@ -68,6 +78,15 @@ const FooterColumnTitle = styled.p`
68
78
  ${({ theme }) => theme.mediaQueries.small} {
69
79
  margin-bottom: var(--footer-title-margin-bottom);
70
80
  }
81
+
82
+ a {
83
+ text-decoration: none;
84
+ color: var(--footer-title-text-color);
85
+
86
+ &:hover {
87
+ color: var(--footer-title-hover-color);
88
+ }
89
+ }
71
90
  `;
72
91
 
73
92
  const FooterSeparator = styled.div`
@@ -12,7 +12,7 @@ export type NavbarLogoProps = {
12
12
  };
13
13
 
14
14
  export function NavbarLogo({ logo, className }: NavbarLogoProps): JSX.Element | null {
15
- if (!logo.image && !logo.srcSet) {
15
+ if (!logo?.image && !logo?.srcSet) {
16
16
  return null;
17
17
  }
18
18
  const img = (
@@ -43,5 +43,6 @@ export const LogoContainer = styled.div.attrs({
43
43
  img {
44
44
  max-width: 100%;
45
45
  max-height: 100%;
46
+ height: 100%;
46
47
  }
47
48
  `;
@@ -10,6 +10,5 @@ export const logo = css`
10
10
  --navbar-logo-margin: 16px; // @presenter Spacing
11
11
  --navbar-logo-max-width: 285px; // @presenter Spacing
12
12
  --navbar-logo-max-height: 285px; // @presenter Spacing
13
-
14
13
  // @tokens End
15
14
  `;
@@ -5,7 +5,7 @@ import type { PropsWithChildren } from 'react';
5
5
 
6
6
  import { Tab } from '@theme/components/Tabs';
7
7
 
8
- type Child = { props: { label: string; key?: string } & TabsProps };
8
+ type Child = { props: { label: string } & TabsProps };
9
9
  type TabsProps = PropsWithChildren<{ children: Child[]; className?: string }>;
10
10
 
11
11
  export function Tabs(props: TabsProps): JSX.Element {
@@ -17,11 +17,11 @@ export function Tabs(props: TabsProps): JSX.Element {
17
17
  <TabsContainer data-component-name="Markdown/Tabs/Tabs" className={props.className}>
18
18
  <TabList>
19
19
  {children.map((child, idx) => {
20
- const { label, key } = child.props;
20
+ const { label } = child.props;
21
21
  return (
22
22
  <Tab
23
23
  activeTab={activeTab}
24
- key={`${key || label}-${idx}`}
24
+ key={`${label}-${idx}`}
25
25
  label={label}
26
26
  onClick={onTabSelect}
27
27
  />
package/src/config.ts CHANGED
@@ -72,6 +72,11 @@ const markdownConfigSchema = {
72
72
  items: { type: 'string' },
73
73
  default: ['image', 'links'],
74
74
  },
75
+ partialsFolders: {
76
+ type: 'array',
77
+ items: { type: 'string' },
78
+ default: ['_partials'],
79
+ },
75
80
  lastUpdatedBlock: {
76
81
  type: 'object',
77
82
  properties: {