@up42/up-components 0.13.4 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,18 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare type DocumentationPopoverProps = {
3
- heading: string;
4
- /**
5
- * The main content of the Popover.
6
- */
7
- content: string;
3
+ title: string;
4
+ children: React.ReactNode;
8
5
  /**
9
6
  * The label of the CTA button, usually *View Documentation*.
10
7
  */
11
- linkText?: string;
8
+ ctaLabel: string;
12
9
  /**
13
- * The link of the CTA button. A pathname relative to the documentation base URL.
10
+ * The path of the CTA button. A pathname relative to the Documentation Hub base URL.
14
11
  * i.e: `/getting-started/workflows/catalog`
15
12
  */
16
- linkPath?: string;
17
- id?: string;
13
+ ctaPath: string;
18
14
  };
19
15
  /**
20
16
  * Documentation: https://up-components.up42.dev/?path=/docs/patterns-popovers-documentationpopover
21
17
  */
22
- export declare const DocumentationPopover: ({ content, linkPath, linkText, heading, id }: DocumentationPopoverProps) => JSX.Element;
18
+ export declare const DocumentationPopover: ({ children, ctaPath, ctaLabel, title }: DocumentationPopoverProps) => JSX.Element;