@redocly/theme 0.44.2 → 0.44.4

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 (287) hide show
  1. package/lib/components/Admonition/Admonition.js +1 -2
  2. package/lib/components/ApiOnboarding/AppCustomAttributes.js +1 -2
  3. package/lib/components/Badge/Badge.js +1 -2
  4. package/lib/components/Breadcrumbs/Breadcrumb.js +1 -2
  5. package/lib/components/Breadcrumbs/Breadcrumbs.js +1 -2
  6. package/lib/components/Button/Button.js +2 -2
  7. package/lib/components/Buttons/EditPageButton.js +1 -2
  8. package/lib/components/Buttons/EmailButton.js +1 -2
  9. package/lib/components/Buttons/NewTabButton.js +1 -2
  10. package/lib/components/Catalog/Catalog.d.ts +1 -1
  11. package/lib/components/Catalog/Catalog.js +1 -1
  12. package/lib/components/Catalog/CatalogActions.js +1 -2
  13. package/lib/components/Catalog/CatalogCard.js +1 -2
  14. package/lib/components/Catalog/CatalogHighlight.js +2 -2
  15. package/lib/components/Catalog/CatalogInfoBlock.js +1 -2
  16. package/lib/components/CodeBlock/CodeBlock.js +1 -2
  17. package/lib/components/CodeBlock/CodeBlockContainer.js +1 -2
  18. package/lib/components/CodeBlock/CodeBlockControls.js +1 -2
  19. package/lib/components/CodeBlock/CodeBlockTabs.js +1 -2
  20. package/lib/components/ColorModeSwitcher/ColorModeIcon.js +1 -2
  21. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +1 -2
  22. package/lib/components/Dropdown/Dropdown.js +1 -2
  23. package/lib/components/Dropdown/DropdownMenu.js +1 -2
  24. package/lib/components/Dropdown/DropdownMenuItem.js +1 -2
  25. package/lib/components/Feedback/Comment.js +1 -2
  26. package/lib/components/Feedback/Feedback.js +1 -2
  27. package/lib/components/Feedback/Mood.js +2 -2
  28. package/lib/components/Feedback/Rating.js +2 -2
  29. package/lib/components/Feedback/Reasons.js +1 -2
  30. package/lib/components/Feedback/ReportDialog.js +1 -2
  31. package/lib/components/Feedback/Scale.js +2 -2
  32. package/lib/components/Feedback/Sentiment.js +1 -2
  33. package/lib/components/Feedback/Stars.js +1 -2
  34. package/lib/components/Filter/Filter.js +1 -2
  35. package/lib/components/Filter/FilterCheckboxes.js +1 -2
  36. package/lib/components/Filter/FilterContent.js +1 -2
  37. package/lib/components/Filter/FilterDateRange.js +1 -2
  38. package/lib/components/Filter/FilterInput.js +1 -2
  39. package/lib/components/Filter/FilterOption.js +1 -2
  40. package/lib/components/Filter/FilterOptionLabel.js +1 -2
  41. package/lib/components/Filter/FilterOptions.js +1 -2
  42. package/lib/components/Filter/FilterPopover.js +1 -2
  43. package/lib/components/Filter/FilterSelect.js +1 -2
  44. package/lib/components/Filter/FilterTitle.js +1 -2
  45. package/lib/components/Footer/Footer.js +1 -2
  46. package/lib/components/Footer/FooterColumn.js +1 -2
  47. package/lib/components/Footer/FooterCopyright.js +1 -2
  48. package/lib/components/Footer/FooterItem.js +1 -2
  49. package/lib/components/Footer/FooterLogo.js +1 -2
  50. package/lib/components/Image/Image.js +1 -2
  51. package/lib/components/JsonViewer/helpers.js +1 -2
  52. package/lib/components/LanguagePicker/LanguagePicker.js +1 -2
  53. package/lib/components/LastUpdated/LastUpdated.js +1 -2
  54. package/lib/components/Link/Link.js +1 -2
  55. package/lib/components/Loaders/Loading.js +1 -2
  56. package/lib/components/Loaders/SpinnerLoader.js +1 -2
  57. package/lib/components/Logo/Logo.js +1 -2
  58. package/lib/components/Markdown/Markdown.d.ts +1 -9
  59. package/lib/components/Markdown/styles/headingAnchor.js +1 -2
  60. package/lib/components/Menu/Menu.js +1 -2
  61. package/lib/components/Menu/MenuContainer.js +1 -2
  62. package/lib/components/Menu/MenuItem.js +1 -2
  63. package/lib/components/Menu/MenuMobile.js +1 -2
  64. package/lib/components/Navbar/Navbar.js +1 -2
  65. package/lib/components/Navbar/NavbarItem.js +1 -2
  66. package/lib/components/Navbar/NavbarLogo.js +1 -2
  67. package/lib/components/Navbar/NavbarMenu.js +1 -2
  68. package/lib/components/PageNavigation/NextButton.js +1 -2
  69. package/lib/components/PageNavigation/PageNavigation.js +1 -2
  70. package/lib/components/PageNavigation/PreviousButton.js +1 -2
  71. package/lib/components/Panel/Panel.js +1 -2
  72. package/lib/components/Portal/Portal.js +1 -2
  73. package/lib/components/Product/Product.js +1 -2
  74. package/lib/components/Product/ProductPicker.js +1 -2
  75. package/lib/components/Search/FilterFields/SearchFilterFieldSelect.js +1 -2
  76. package/lib/components/Search/FilterFields/SearchFilterFieldTags.js +1 -2
  77. package/lib/components/Search/Search.js +1 -2
  78. package/lib/components/Search/SearchDialog.js +1 -2
  79. package/lib/components/Search/SearchFilter.js +1 -2
  80. package/lib/components/Search/SearchFilterField.js +1 -2
  81. package/lib/components/Search/SearchGroups.js +1 -2
  82. package/lib/components/Search/SearchHighlight.js +1 -2
  83. package/lib/components/Search/SearchInput.js +1 -2
  84. package/lib/components/Search/SearchItem.js +1 -2
  85. package/lib/components/Search/SearchRecent.js +1 -2
  86. package/lib/components/Search/SearchShortcut.js +1 -2
  87. package/lib/components/Search/SearchSuggestedPages.js +1 -2
  88. package/lib/components/Search/SearchTrigger.js +1 -2
  89. package/lib/components/Select/Select.d.ts +1 -1
  90. package/lib/components/Select/Select.js +3 -3
  91. package/lib/components/Select/SelectInput.js +2 -2
  92. package/lib/components/Sidebar/Sidebar.js +1 -2
  93. package/lib/components/SidebarActions/styled.d.ts +5 -5
  94. package/lib/components/SidebarLogo/SidebarLogo.js +1 -2
  95. package/lib/components/Switch/Switch.js +1 -2
  96. package/lib/components/TableOfContent/TableOfContent.js +1 -2
  97. package/lib/components/Tag/Tag.js +1 -2
  98. package/lib/components/Tooltip/Tooltip.js +2 -2
  99. package/lib/components/UserMenu/LoginButton.js +1 -2
  100. package/lib/components/UserMenu/LogoutMenuItem.js +1 -2
  101. package/lib/components/UserMenu/UserAvatar.js +1 -2
  102. package/lib/components/UserMenu/UserInfoMenuItem.js +1 -2
  103. package/lib/components/UserMenu/UserMenu.js +1 -2
  104. package/lib/components/UserMenu/UserMenuMobile.js +1 -2
  105. package/lib/components/VersionPicker/VersionPicker.js +2 -2
  106. package/lib/core/contexts/ThemeDataContext.d.ts +0 -1
  107. package/lib/core/hooks/__mocks__/search/use-recent-searches.d.ts +0 -1
  108. package/lib/core/hooks/__mocks__/search/use-search-filter.d.ts +0 -1
  109. package/lib/core/hooks/__mocks__/search/use-suggested-pages.d.ts +0 -1
  110. package/lib/core/hooks/__mocks__/use-controlled-state.d.ts +0 -1
  111. package/lib/core/hooks/__mocks__/use-mobile-menu.d.ts +0 -1
  112. package/lib/core/hooks/__mocks__/use-theme-config.d.ts +0 -1
  113. package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +0 -1
  114. package/lib/core/hooks/feedback/use-report-dialog.js +1 -2
  115. package/lib/core/hooks/menu/__mocks__/use-mobile-menu-items.d.ts +0 -1
  116. package/lib/core/hooks/menu/use-collapse.d.ts +1 -1
  117. package/lib/core/hooks/menu/use-collapse.js +6 -7
  118. package/lib/core/hooks/menu/use-menu-item-expanded.js +1 -2
  119. package/lib/core/hooks/menu/use-mobile-menu-items.d.ts +2 -2
  120. package/lib/core/hooks/menu/use-nested-menu.js +1 -2
  121. package/lib/core/hooks/search/use-search-dialog.js +1 -2
  122. package/lib/core/hooks/search/use-search-filter.js +1 -2
  123. package/lib/core/hooks/use-active-heading.js +1 -2
  124. package/lib/core/hooks/use-active-section-id.js +1 -2
  125. package/lib/core/hooks/use-codeblock-tabs-controls.js +1 -2
  126. package/lib/core/hooks/use-controlled-state.js +1 -2
  127. package/lib/core/hooks/use-dialog-hotkeys.js +1 -2
  128. package/lib/core/hooks/use-focus-trap.js +1 -2
  129. package/lib/core/hooks/use-full-height.js +1 -2
  130. package/lib/core/hooks/use-language-picker.js +1 -2
  131. package/lib/core/hooks/use-mobile-menu.js +1 -2
  132. package/lib/core/hooks/use-modal-scroll-lock.js +1 -2
  133. package/lib/core/hooks/use-navbar-height.js +1 -2
  134. package/lib/core/hooks/use-outside-click.js +1 -2
  135. package/lib/core/hooks/use-product-picker.js +1 -2
  136. package/lib/core/hooks/use-tabs.d.ts +0 -1
  137. package/lib/core/hooks/use-tabs.js +1 -2
  138. package/lib/core/hooks/use-theme-config.js +1 -2
  139. package/lib/core/templates/Markdown.js +1 -1
  140. package/lib/core/utils/args-typecheck.js +2 -3
  141. package/lib/core/utils/attribute-parser.js +1 -2
  142. package/lib/core/utils/change-text-casing.js +1 -2
  143. package/lib/core/utils/class-names.js +1 -2
  144. package/lib/core/utils/color.js +1 -2
  145. package/lib/core/utils/details.js +1 -2
  146. package/lib/core/utils/dom.js +2 -2
  147. package/lib/core/utils/format-date-without-timezone.js +1 -2
  148. package/lib/core/utils/get-navbar-element.js +1 -2
  149. package/lib/core/utils/highlight.js +3 -4
  150. package/lib/core/utils/is-url.js +1 -2
  151. package/lib/core/utils/js-utils.js +3 -4
  152. package/lib/core/utils/load-and-navigate.js +4 -5
  153. package/lib/core/utils/markdoc.js +1 -2
  154. package/lib/core/utils/menu.js +2 -2
  155. package/lib/core/utils/replace-hash-in-color.js +1 -2
  156. package/lib/core/utils/text-transform.js +1 -2
  157. package/lib/core/utils/text-trimmer.js +1 -2
  158. package/lib/core/utils/theme-helpers.js +3 -4
  159. package/lib/core/utils/toc.js +3 -4
  160. package/lib/core/utils/type-guards.js +5 -5
  161. package/lib/core/utils/urls.js +14 -15
  162. package/lib/core/utils/with-load-progress.js +1 -2
  163. package/lib/icons/AddIcon/AddIcon.d.ts +3 -3
  164. package/lib/icons/ArrowLeftIcon/ArrowLeftIcon.d.ts +3 -3
  165. package/lib/icons/ArrowRightIcon/ArrowRightIcon.d.ts +3 -3
  166. package/lib/icons/ArrowUpRightIcon/ArrowUpRightIcon.d.ts +3 -3
  167. package/lib/icons/BareMetalServerIcon/BareMetalServerIcon.d.ts +3 -3
  168. package/lib/icons/BookmarkAddIcon/BookmarkAddIcon.d.ts +3 -3
  169. package/lib/icons/CertificateIcon/CertificateIcon.d.ts +9 -0
  170. package/lib/icons/CertificateIcon/CertificateIcon.js +26 -0
  171. package/lib/icons/CharacterIcon/CharacterIcon.d.ts +3 -3
  172. package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +3 -3
  173. package/lib/icons/CheckmarkFilledIcon/CheckmarkFilledIcon.d.ts +3 -3
  174. package/lib/icons/CheckmarkIcon/CheckmarkIcon.d.ts +3 -3
  175. package/lib/icons/ChevronDownIcon/ChevronDownIcon.d.ts +3 -3
  176. package/lib/icons/ChevronLeftIcon/ChevronLeftIcon.d.ts +3 -3
  177. package/lib/icons/ChevronRightIcon/ChevronRightIcon.d.ts +3 -3
  178. package/lib/icons/ChevronUpIcon/ChevronUpIcon.d.ts +3 -3
  179. package/lib/icons/CircleDashIcon/CircleDashIcon.d.ts +3 -3
  180. package/lib/icons/CleanIcon/CleanIcon.d.ts +3 -3
  181. package/lib/icons/CloseFilledIcon/CloseFilledIcon.d.ts +3 -3
  182. package/lib/icons/CloseIcon/CloseIcon.d.ts +3 -3
  183. package/lib/icons/CloseOutlineIcon/CloseOutlineIcon.d.ts +3 -3
  184. package/lib/icons/CloudUploadIcon/CloudUploadIcon.d.ts +3 -3
  185. package/lib/icons/CodeIcon/CodeIcon.d.ts +3 -3
  186. package/lib/icons/ContrastIcon/ContrastIcon.d.ts +3 -3
  187. package/lib/icons/CookieIcon/CookieIcon.d.ts +3 -3
  188. package/lib/icons/CopyIcon/CopyIcon.d.ts +3 -3
  189. package/lib/icons/CopyLinkIcon/CopyLinkIcon.d.ts +3 -3
  190. package/lib/icons/DataFormatIcon/DataFormatIcon.d.ts +3 -3
  191. package/lib/icons/DatabaseIcon/DatabaseIcon.d.ts +3 -3
  192. package/lib/icons/DocumentAddIcon/DocumentAddIcon.d.ts +3 -3
  193. package/lib/icons/DocumentBlankIcon/DocumentBlankIcon.d.ts +3 -3
  194. package/lib/icons/DocumentIcon/DocumentIcon.d.ts +3 -3
  195. package/lib/icons/DownloadIcon/DownloadIcon.d.ts +3 -3
  196. package/lib/icons/EditIcon/EditIcon.d.ts +3 -3
  197. package/lib/icons/EmailIcon/EmailIcon.d.ts +3 -3
  198. package/lib/icons/ErrorIcon/ErrorIcon.d.ts +3 -3
  199. package/lib/icons/ExportIcon/ExportIcon.d.ts +3 -3
  200. package/lib/icons/FaceDissatisfiedIcon/FaceDissatisfiedIcon.d.ts +3 -3
  201. package/lib/icons/FaceNeutralIcon/FaceNeutralIcon.d.ts +3 -3
  202. package/lib/icons/FaceSatisfiedIcon/FaceSatisfiedIcon.d.ts +3 -3
  203. package/lib/icons/FileIcon/FileIcon.d.ts +3 -3
  204. package/lib/icons/FileStorageIcon/FileStorageIcon.d.ts +3 -3
  205. package/lib/icons/FilterIcon/FilterIcon.d.ts +3 -3
  206. package/lib/icons/FolderAddIcon/FolderAddIcon.d.ts +3 -3
  207. package/lib/icons/FolderIcon/FolderIcon.d.ts +3 -3
  208. package/lib/icons/FolderMoveToIcon/FolderMoveToIcon.d.ts +3 -3
  209. package/lib/icons/GlobalOutlinedIcon/GlobalOutlinedIcon.d.ts +3 -3
  210. package/lib/icons/GridIcon/GridIcon.d.ts +3 -3
  211. package/lib/icons/HorizontalViewIcon/HorizontalViewIcon.d.ts +3 -3
  212. package/lib/icons/IBMCloudHyperProtectCryptoServicesIcon/IBMCloudHyperProtectCryptoServicesIcon.d.ts +3 -3
  213. package/lib/icons/InformationFilledIcon/InformationFilledIcon.d.ts +3 -3
  214. package/lib/icons/InformationIcon/InformationIcon.d.ts +3 -3
  215. package/lib/icons/JsonIcon/JsonIcon.d.ts +3 -3
  216. package/lib/icons/LaunchIcon/LaunchIcon.d.ts +3 -3
  217. package/lib/icons/LinkIcon/LinkIcon.d.ts +3 -3
  218. package/lib/icons/LogoutIcon/LogoutIcon.d.ts +3 -3
  219. package/lib/icons/MaximizeIcon/MaximizeIcon.d.ts +3 -3
  220. package/lib/icons/MenuIcon/MenuIcon.d.ts +3 -3
  221. package/lib/icons/MinimizeIcon/MinimizeIcon.d.ts +3 -3
  222. package/lib/icons/MobileSidebarIcon/MobileSidebarIcon.d.ts +3 -3
  223. package/lib/icons/MoonIcon/MoonIcon.d.ts +3 -3
  224. package/lib/icons/OverflowMenuHorizontalIcon/OverflowMenuHorizontalIcon.d.ts +3 -3
  225. package/lib/icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon.d.ts +3 -3
  226. package/lib/icons/PlusCustomIcon/PlusCustomIcon.d.ts +3 -3
  227. package/lib/icons/RecentlyViewedIcon/RecentlyViewedIcon.d.ts +3 -3
  228. package/lib/icons/RenewIcon/RenewIcon.d.ts +3 -3
  229. package/lib/icons/ResetIcon/ResetIcon.d.ts +3 -3
  230. package/lib/icons/RestartIcon/RestartIcon.d.ts +3 -3
  231. package/lib/icons/RocketIcon/RocketIcon.d.ts +3 -3
  232. package/lib/icons/SaveIcon/SaveIcon.d.ts +3 -3
  233. package/lib/icons/SearchIcon/SearchIcon.d.ts +3 -3
  234. package/lib/icons/SecurityIcon/SecurityIcon.d.ts +3 -3
  235. package/lib/icons/SettingsIcon/SettingsIcon.d.ts +6 -4
  236. package/lib/icons/SettingsIcon/SettingsIcon.js +19 -3
  237. package/lib/icons/SidePanelCloseIcon/SidePanelCloseIcon.d.ts +3 -3
  238. package/lib/icons/SidePanelOpenIcon/SidePanelOpenIcon.d.ts +3 -3
  239. package/lib/icons/Spinner/Spinner.d.ts +3 -4
  240. package/lib/icons/StarFilledIcon/StarFilledIcon.d.ts +3 -3
  241. package/lib/icons/StarIcon/StarIcon.d.ts +3 -3
  242. package/lib/icons/SubtractIcon/SubtractIcon.d.ts +3 -3
  243. package/lib/icons/SunIcon/SunIcon.d.ts +3 -3
  244. package/lib/icons/TableBuiltIcon/TableBuiltIcon.d.ts +3 -3
  245. package/lib/icons/TimeIcon/TimeIcon.d.ts +3 -3
  246. package/lib/icons/TrashCanIcon/TrashCanIcon.d.ts +3 -3
  247. package/lib/icons/UserIcon/UserIcon.d.ts +3 -3
  248. package/lib/icons/ValueVariableIcon/ValueVariableIcon.d.ts +3 -3
  249. package/lib/icons/VerticalViewIcon/VerticalViewIcon.d.ts +3 -3
  250. package/lib/icons/ViewIcon/ViewIcon.d.ts +3 -3
  251. package/lib/icons/ViewOffIcon/ViewOffIcon.d.ts +3 -3
  252. package/lib/icons/WarningAltIcon/WarningAltIcon.d.ts +3 -3
  253. package/lib/icons/WarningFilledIcon/WarningFilledIcon.d.ts +3 -3
  254. package/lib/icons/WarningSquareIcon/WarningSquareIcon.d.ts +3 -3
  255. package/lib/index.d.ts +1 -0
  256. package/lib/index.js +1 -0
  257. package/lib/layouts/DocumentationLayout.js +1 -2
  258. package/lib/layouts/Forbidden.js +1 -2
  259. package/lib/layouts/NotFound.js +1 -2
  260. package/lib/layouts/OIDCForbidden.js +1 -2
  261. package/lib/layouts/PageLayout.js +1 -2
  262. package/lib/layouts/RootLayout.js +1 -2
  263. package/lib/layouts/ThreePanelLayout.js +1 -2
  264. package/lib/markdoc/components/Admonition/Admonition.js +1 -2
  265. package/lib/markdoc/components/Cards/Card.js +1 -2
  266. package/lib/markdoc/components/Cards/CardIcon.js +1 -2
  267. package/lib/markdoc/components/Cards/CardImage.js +1 -2
  268. package/lib/markdoc/components/Cards/Cards.js +1 -2
  269. package/lib/markdoc/components/CodeBlock/CodeBlock.js +1 -2
  270. package/lib/markdoc/components/Heading/Heading.js +1 -2
  271. package/lib/markdoc/components/HtmlBlock/HtmlBlock.js +1 -2
  272. package/lib/markdoc/components/InlineSvg/InlineSvg.js +1 -2
  273. package/lib/markdoc/components/MarkdocExample/MarkdocExample.d.ts +1 -0
  274. package/lib/markdoc/components/MarkdocExample/MarkdocExample.js +3 -4
  275. package/lib/markdoc/components/Mermaid/Mermaid.js +1 -2
  276. package/lib/markdoc/components/Tabs/Tab.js +2 -2
  277. package/lib/markdoc/components/Tabs/Tabs.js +2 -2
  278. package/lib/markdoc/default.d.ts +2 -2
  279. package/lib/markdoc/tags/markdoc-example.js +8 -1
  280. package/lib/plugin.js +1 -1
  281. package/package.json +6 -6
  282. package/src/components/Select/Select.tsx +1 -1
  283. package/src/icons/CertificateIcon/CertificateIcon.tsx +33 -0
  284. package/src/icons/SettingsIcon/SettingsIcon.tsx +30 -12
  285. package/src/index.ts +1 -0
  286. package/src/markdoc/components/MarkdocExample/MarkdocExample.tsx +12 -3
  287. package/src/markdoc/tags/markdoc-example.ts +8 -0
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  import type { IconProps } from '../../icons/types';
3
2
  export declare const Spinner: import("styled-components").StyledComponent<(props: IconProps) => import("react").JSX.Element, any, {
4
3
  'data-component-name': string;
5
4
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
5
+ color?: string;
6
+ size?: string;
7
+ className?: string;
9
8
  } & import("react").SVGProps<SVGSVGElement> & {
10
9
  'data-component-name': string;
11
10
  }, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const StarFilledIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const StarIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const SubtractIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const SunIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const TableBuiltIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const TimeIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const TrashCanIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const UserIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const ValueVariableIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const VerticalViewIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const ViewIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const ViewOffIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const WarningAltIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const WarningFilledIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -3,7 +3,7 @@ import type { IconProps } from '../../icons/types';
3
3
  export declare const WarningSquareIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
4
  'data-component-name': string;
5
5
  } & {
6
- color?: string | undefined;
7
- size?: string | undefined;
8
- className?: string | undefined;
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
9
  } & React.SVGProps<SVGSVGElement>, "data-component-name">;
package/lib/index.d.ts CHANGED
@@ -209,6 +209,7 @@ export * from './icons/PlusCustomIcon/PlusCustomIcon';
209
209
  export * from './icons/CharacterIcon/CharacterIcon';
210
210
  export * from './icons/FileIcon/FileIcon';
211
211
  export * from './icons/ExportIcon/ExportIcon';
212
+ export * from './icons/CertificateIcon/CertificateIcon';
212
213
  export * from './layouts/RootLayout';
213
214
  export * from './layouts/PageLayout';
214
215
  export * from './layouts/NotFound';
package/lib/index.js CHANGED
@@ -261,6 +261,7 @@ __exportStar(require("./icons/PlusCustomIcon/PlusCustomIcon"), exports);
261
261
  __exportStar(require("./icons/CharacterIcon/CharacterIcon"), exports);
262
262
  __exportStar(require("./icons/FileIcon/FileIcon"), exports);
263
263
  __exportStar(require("./icons/ExportIcon/ExportIcon"), exports);
264
+ __exportStar(require("./icons/CertificateIcon/CertificateIcon"), exports);
264
265
  /* Layouts */
265
266
  __exportStar(require("./layouts/RootLayout"), exports);
266
267
  __exportStar(require("./layouts/PageLayout"), exports);
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DocumentationLayout = void 0;
6
+ exports.DocumentationLayout = DocumentationLayout;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const EditPageButton_1 = require("../components/Buttons/EditPageButton");
@@ -26,7 +26,6 @@ function DocumentationLayout({ tableOfContent, feedback, config, editPage, lastM
26
26
  react_1.default.createElement(PageNavigation_1.PageNavigation, { nextPage: nextPage, prevPage: prevPage })),
27
27
  tableOfContent));
28
28
  }
29
- exports.DocumentationLayout = DocumentationLayout;
30
29
  const LayoutWrapper = styled_components_1.default.div.attrs(({ className }) => ({
31
30
  className,
32
31
  })) `
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Forbidden = void 0;
6
+ exports.Forbidden = Forbidden;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const hooks_1 = require("../core/hooks");
@@ -16,7 +16,6 @@ function Forbidden() {
16
16
  react_1.default.createElement(Description, { "data-translation-key": "page.forbidden.title" }, translate('page.forbidden.title', 'Access forbidden')),
17
17
  react_1.default.createElement(HomeButton, { variant: "primary", size: "large", to: "/", "data-translation-key": "page.homeButton" }, translate('page.homeButton', 'Go home'))));
18
18
  }
19
- exports.Forbidden = Forbidden;
20
19
  const Wrapper = styled_components_1.default.div `
21
20
  display: flex;
22
21
  flex-direction: column;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.NotFound = void 0;
6
+ exports.NotFound = NotFound;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const hooks_1 = require("../core/hooks");
@@ -18,7 +18,6 @@ function NotFound() {
18
18
  react_1.default.createElement(Description, { "data-translation-key": "page.notFound.description" }, translate('page.notFound.description', "The page you were trying to reach doesn't exist or may have been moved. You can go back to the previous page, return to the homepage, or use the search bar to find what you're looking for.")),
19
19
  react_1.default.createElement(Button_1.Button, { variant: "primary", size: "large", to: "/", "data-translation-key": "page.homeButton", icon: react_1.default.createElement(ArrowLeftIcon_1.ArrowLeftIcon, null) }, translate('page.homeButton', 'Go home'))));
20
20
  }
21
- exports.NotFound = NotFound;
22
21
  const NotFoundWrapper = styled_components_1.default.div `
23
22
  height: 100%;
24
23
  max-width: var(--page-404-max-width);
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.OIDCForbidden = void 0;
29
+ exports.OIDCForbidden = OIDCForbidden;
30
30
  const react_1 = __importStar(require("react"));
31
31
  const styled_components_1 = __importDefault(require("styled-components"));
32
32
  const react_router_dom_1 = require("react-router-dom");
@@ -52,7 +52,6 @@ function OIDCForbidden() {
52
52
  react_1.default.createElement(Description, { "data-translation-key": "page.forbidden.title" }, translate('page.forbidden.title', 'Access forbidden')),
53
53
  errorDescription && react_1.default.createElement(ErrorDescription, null, renderText(errorDescription))));
54
54
  }
55
- exports.OIDCForbidden = OIDCForbidden;
56
55
  const Wrapper = styled_components_1.default.div `
57
56
  display: flex;
58
57
  flex-direction: column;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PageLayout = void 0;
6
+ exports.PageLayout = PageLayout;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const utils_1 = require("../core/utils");
@@ -12,7 +12,6 @@ function PageLayout({ sidebar, children, }) {
12
12
  sidebar,
13
13
  react_1.default.createElement(ContentContainer, null, children)));
14
14
  }
15
- exports.PageLayout = PageLayout;
16
15
  const Container = styled_components_1.default.div `
17
16
  display: flex;
18
17
  flex-direction: row;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.RootLayout = void 0;
6
+ exports.RootLayout = RootLayout;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const Navbar_1 = require("../components/Navbar/Navbar");
9
9
  const Footer_1 = require("../components/Footer/Footer");
@@ -13,5 +13,4 @@ function RootLayout({ children }) {
13
13
  children,
14
14
  react_1.default.createElement(Footer_1.Footer, null)));
15
15
  }
16
- exports.RootLayout = RootLayout;
17
16
  //# sourceMappingURL=RootLayout.js.map
@@ -37,7 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
37
37
  return (mod && mod.__esModule) ? mod : { "default": mod };
38
38
  };
39
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.ThreePanelLayout = void 0;
40
+ exports.ThreePanelLayout = ThreePanelLayout;
41
41
  const react_1 = __importDefault(require("react"));
42
42
  const styled_components_1 = __importStar(require("styled-components"));
43
43
  const config_1 = require("@redocly/config");
@@ -46,7 +46,6 @@ function ThreePanelLayout(_a) {
46
46
  var { children } = _a, props = __rest(_a, ["children"]);
47
47
  return (react_1.default.createElement(Wrapper, Object.assign({ "data-component-name": "Layout/ThreePanelLayout" }, props), children));
48
48
  }
49
- exports.ThreePanelLayout = ThreePanelLayout;
50
49
  const Wrapper = styled_components_1.default.div `
51
50
  position: relative;
52
51
  display: flex;
@@ -3,11 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Admonition = void 0;
6
+ exports.Admonition = Admonition;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const Admonition_1 = require("../../../components/Admonition/Admonition");
9
9
  function Admonition(props) {
10
10
  return react_1.default.createElement(Admonition_1.Admonition, Object.assign({}, props));
11
11
  }
12
- exports.Admonition = Admonition;
13
12
  //# sourceMappingURL=Admonition.js.map
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Card = void 0;
6
+ exports.Card = Card;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const ChevronRightIcon_1 = require("../../../icons/ChevronRightIcon/ChevronRightIcon");
@@ -28,7 +28,6 @@ function Card({ title, image, icon, iconRawContent, imagePosition = 'start', lay
28
28
  !!to && react_1.default.createElement(CardLinkIcon, null)),
29
29
  react_1.default.createElement(Body, { "$lineClamp": lineClamp }, children))))));
30
30
  }
31
- exports.Card = Card;
32
31
  const CardContentWrapper = styled_components_1.default.div `
33
32
  display: flex;
34
33
  flex-direction: ${({ $layout }) => ($layout === 'horizontal' ? 'row' : 'column')};
@@ -3,14 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CardIcon = void 0;
6
+ exports.CardIcon = CardIcon;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const InlineSvg_1 = require("../../../markdoc/components/InlineSvg/InlineSvg");
10
10
  function CardIcon({ variant, src, rawContent }) {
11
11
  return (react_1.default.createElement(CardIconWrapper, { "$variant": variant }, rawContent ? react_1.default.createElement(CardSvg, { fileRawContent: rawContent }) : react_1.default.createElement(CardImg, { src: src })));
12
12
  }
13
- exports.CardIcon = CardIcon;
14
13
  const CardImg = styled_components_1.default.img `
15
14
  width: var(--card-icon-width);
16
15
  height: var(--card-icon-height);
@@ -3,13 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CardImage = void 0;
6
+ exports.CardImage = CardImage;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  function CardImage({ src, alt, position }) {
10
10
  return react_1.default.createElement(Image, { src: src, alt: alt, "$position": position });
11
11
  }
12
- exports.CardImage = CardImage;
13
12
  const Image = styled_components_1.default.img `
14
13
  width: 100%;
15
14
  height: 100px;
@@ -26,13 +26,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Cards = void 0;
29
+ exports.Cards = Cards;
30
30
  const React = __importStar(require("react"));
31
31
  const styled_components_1 = __importDefault(require("styled-components"));
32
32
  function Cards({ cardMinWidth = 240, columns, className, children, ariaLabel }) {
33
33
  return (React.createElement(GridLayout, { "$cardMinWidth": cardMinWidth, "$columns": columns, className: className, "aria-label": ariaLabel }, children));
34
34
  }
35
- exports.Cards = Cards;
36
35
  const GridLayout = styled_components_1.default.div `
37
36
  display: grid;
38
37
  grid-template-columns: ${({ $cardMinWidth, $columns }) => `repeat(auto-fit, minmax(${getCardMinWidth($cardMinWidth, $columns)}, 1fr))`};
@@ -3,11 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CodeBlock = void 0;
6
+ exports.CodeBlock = CodeBlock;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const CodeBlock_1 = require("../../../components/CodeBlock/CodeBlock");
9
9
  function CodeBlock(props) {
10
10
  return react_1.default.createElement(CodeBlock_1.CodeBlock, Object.assign({}, props));
11
11
  }
12
- exports.CodeBlock = CodeBlock;
13
12
  //# sourceMappingURL=CodeBlock.js.map
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Heading = void 0;
26
+ exports.Heading = Heading;
27
27
  const react_1 = __importStar(require("react"));
28
28
  const utils_1 = require("../../../core/utils");
29
29
  const LinkIcon_1 = require("../../../icons/LinkIcon/LinkIcon");
@@ -44,5 +44,4 @@ function Heading({ level, id, children, 'data-source': dataSource, 'data-hash':
44
44
  linkEl,
45
45
  children));
46
46
  }
47
- exports.Heading = Heading;
48
47
  //# sourceMappingURL=Heading.js.map
@@ -23,10 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.HtmlBlock = void 0;
26
+ exports.HtmlBlock = HtmlBlock;
27
27
  const React = __importStar(require("react"));
28
28
  function HtmlBlock({ rawHtml }) {
29
29
  return React.createElement("div", { dangerouslySetInnerHTML: { __html: rawHtml } });
30
30
  }
31
- exports.HtmlBlock = HtmlBlock;
32
31
  //# sourceMappingURL=HtmlBlock.js.map
@@ -23,10 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.InlineSvg = void 0;
26
+ exports.InlineSvg = InlineSvg;
27
27
  const React = __importStar(require("react"));
28
28
  function InlineSvg({ fileRawContent, className, }) {
29
29
  return (React.createElement("span", { className: className, "data-component-name": "Markdoc/InlineSvg/InlineSvg", dangerouslySetInnerHTML: { __html: fileRawContent } }));
30
30
  }
31
- exports.InlineSvg = InlineSvg;
32
31
  //# sourceMappingURL=InlineSvg.js.map
@@ -7,5 +7,6 @@ export interface MarkdocExampleProps {
7
7
  withLabels?: boolean;
8
8
  codeLabel?: string;
9
9
  resultLabel?: string;
10
+ title?: string;
10
11
  }
11
12
  export declare function MarkdocExample(props: MarkdocExampleProps): React.JSX.Element;
@@ -26,21 +26,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.MarkdocExample = void 0;
29
+ exports.MarkdocExample = MarkdocExample;
30
30
  const React = __importStar(require("react"));
31
31
  const styled_components_1 = __importDefault(require("styled-components"));
32
32
  const CodeBlock_1 = require("../../../components/CodeBlock/CodeBlock");
33
33
  function MarkdocExample(props) {
34
- const { language, rawContent, renderDemo, demoContent, withLabels, codeLabel, resultLabel } = props;
34
+ const { language, rawContent, renderDemo, demoContent, withLabels, codeLabel, resultLabel, title, } = props;
35
35
  const renderLabels = renderDemo ? (withLabels === undefined ? true : withLabels) : false;
36
36
  return (React.createElement("div", { "data-component-name": "Markdoc/MarkdocExample/MarkdocExample" },
37
37
  renderLabels ? React.createElement(Label, null, codeLabel ? codeLabel : 'Code:') : null,
38
- React.createElement(CodeBlock_1.CodeBlock, { lang: language, source: rawContent, header: { controls: { copy: {} } } }),
38
+ React.createElement(CodeBlock_1.CodeBlock, { lang: language, source: rawContent, header: { title, controls: { copy: {} } } }),
39
39
  renderDemo ? (React.createElement(React.Fragment, null,
40
40
  renderLabels ? React.createElement(Label, null, resultLabel ? resultLabel : 'Result:') : null,
41
41
  demoContent)) : null));
42
42
  }
43
- exports.MarkdocExample = MarkdocExample;
44
43
  const Label = styled_components_1.default.div `
45
44
  margin: 10px 0;
46
45
  `;
@@ -3,14 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Mermaid = void 0;
6
+ exports.Mermaid = Mermaid;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const utils_1 = require("../../../core/utils");
10
10
  function Mermaid({ diagramHtml, 'data-source': dataSource, 'data-hash': dataHash, className, }) {
11
11
  return (react_1.default.createElement(Wrapper, { className: (0, utils_1.concatClassNames)('mermaid-wrapper', className), dangerouslySetInnerHTML: { __html: diagramHtml }, "data-component-name": "Markdoc/Mermaid/Mermaid", "data-source": dataSource, "data-hash": dataHash }));
12
12
  }
13
- exports.Mermaid = Mermaid;
14
13
  const Wrapper = styled_components_1.default.div `
15
14
  background-color: var(--mermaid-bg-color);
16
15
  border-radius: var(--mermaid-border-radius);
@@ -26,7 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Tab = exports.TabComponent = void 0;
29
+ exports.Tab = void 0;
30
+ exports.TabComponent = TabComponent;
30
31
  const react_1 = __importDefault(require("react"));
31
32
  const styled_components_1 = __importStar(require("styled-components"));
32
33
  function TabComponent(props) {
@@ -34,7 +35,6 @@ function TabComponent(props) {
34
35
  return (react_1.default.createElement(TabItem, { "data-component-name": "Markdoc/Tabs/Tab" },
35
36
  react_1.default.createElement(TabButtonLink, { "$active": isActive, id: `tab-${tabId}`, role: "tab", "aria-controls": `panel-${tabId}`, "aria-selected": isActive ? 'true' : 'false', tabIndex: isActive ? 0 : -1, "data-label": label, ref: setRef, onKeyDown: onKeyDown, onClick: onClick }, label)));
36
37
  }
37
- exports.TabComponent = TabComponent;
38
38
  exports.Tab = (0, styled_components_1.default)(TabComponent) ``;
39
39
  const TabItem = styled_components_1.default.li `
40
40
  display: inline-flex;
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.TabContent = exports.TabList = exports.Tabs = void 0;
6
+ exports.TabContent = exports.TabList = void 0;
7
+ exports.Tabs = Tabs;
7
8
  const react_1 = __importDefault(require("react"));
8
9
  const styled_components_1 = __importDefault(require("styled-components"));
9
10
  const Tab_1 = require("../../../markdoc/components/Tabs/Tab");
@@ -31,7 +32,6 @@ function Tabs({ children, className }) {
31
32
  return label === activeTab ? (react_1.default.createElement(exports.TabContent, { key: `content-${tabId}`, id: `panel-${tabId}`, "aria-labelledby": `tab-${tabId}`, tabIndex: 0, role: "tabpanel" }, child.props.children)) : null;
32
33
  })));
33
34
  }
34
- exports.Tabs = Tabs;
35
35
  const TabsContainer = styled_components_1.default.div `
36
36
  color: var(--md-tabs-container-text-color);
37
37
  font-size: var(--md-tabs-container-font-size);
@@ -7,7 +7,7 @@ export * as components from '../markdoc/components/default';
7
7
  export declare const tags: {
8
8
  [x: string]: import("@markdoc/markdoc").Schema & {
9
9
  attributes?: Record<string, import("@markdoc/markdoc").SchemaAttribute & {
10
- resolver?: string | undefined;
11
- }> | undefined;
10
+ resolver?: string;
11
+ }>;
12
12
  };
13
13
  };
@@ -24,7 +24,14 @@ exports.markdocExample = {
24
24
  if (!content)
25
25
  return null;
26
26
  const language = 'markdoc';
27
- return new markdoc_1.default.Tag('MarkdocExample', Object.assign(Object.assign({}, attributes), { language, demoContent: node.children[0].transformChildren(config), rawContent: content }), []);
27
+ const annotations = node.children[0].annotations;
28
+ let title = null;
29
+ if (annotations.length > 0) {
30
+ const fenceWithTitle = annotations.find((annotation) => annotation.name === 'title');
31
+ title = fenceWithTitle === null || fenceWithTitle === void 0 ? void 0 : fenceWithTitle.value;
32
+ }
33
+ return new markdoc_1.default.Tag('MarkdocExample', Object.assign(Object.assign({}, attributes), { title,
34
+ language, demoContent: node.children[0].transformChildren(config), rawContent: content }), []);
28
35
  },
29
36
  },
30
37
  tagName: 'markdoc-example',
package/lib/plugin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = plugin;
3
4
  function plugin() {
4
5
  return { id: 'default-theme' };
5
6
  }
6
- exports.default = plugin;
7
7
  //# sourceMappingURL=plugin.js.map