@up42/up-components 0.13.3 → 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
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare type DocumentationPopoverProps = {
|
|
3
|
-
|
|
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
|
-
|
|
8
|
+
ctaLabel: string;
|
|
12
9
|
/**
|
|
13
|
-
* The
|
|
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
|
-
|
|
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: ({
|
|
18
|
+
export declare const DocumentationPopover: ({ children, ctaPath, ctaLabel, title }: DocumentationPopoverProps) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -2023,26 +2023,22 @@ declare const DateTime: React__default.ForwardRefExoticComponent<{
|
|
|
2023
2023
|
} & FormatDateOptions & React__default.RefAttributes<HTMLTimeElement>>;
|
|
2024
2024
|
|
|
2025
2025
|
declare type DocumentationPopoverProps = {
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
* The main content of the Popover.
|
|
2029
|
-
*/
|
|
2030
|
-
content: string;
|
|
2026
|
+
title: string;
|
|
2027
|
+
children: React__default.ReactNode;
|
|
2031
2028
|
/**
|
|
2032
2029
|
* The label of the CTA button, usually *View Documentation*.
|
|
2033
2030
|
*/
|
|
2034
|
-
|
|
2031
|
+
ctaLabel: string;
|
|
2035
2032
|
/**
|
|
2036
|
-
* The
|
|
2033
|
+
* The path of the CTA button. A pathname relative to the Documentation Hub base URL.
|
|
2037
2034
|
* i.e: `/getting-started/workflows/catalog`
|
|
2038
2035
|
*/
|
|
2039
|
-
|
|
2040
|
-
id?: string;
|
|
2036
|
+
ctaPath: string;
|
|
2041
2037
|
};
|
|
2042
2038
|
/**
|
|
2043
2039
|
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-popovers-documentationpopover
|
|
2044
2040
|
*/
|
|
2045
|
-
declare const DocumentationPopover: ({
|
|
2041
|
+
declare const DocumentationPopover: ({ children, ctaPath, ctaLabel, title }: DocumentationPopoverProps) => JSX.Element;
|
|
2046
2042
|
|
|
2047
2043
|
interface CodeInlineProps {
|
|
2048
2044
|
text: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@up42/up-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "UP42 Component Library",
|
|
5
5
|
"author": "Axel Fuhrmann axel.fuhrmann@up42.com",
|
|
6
6
|
"license": "ISC",
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@up42/design-system-tokens": "^3.0.1",
|
|
29
29
|
"dayjs": "^1.11.7",
|
|
30
|
-
"prismjs": "^1.29.0"
|
|
31
|
-
"react-markdown": "^8.0.3"
|
|
30
|
+
"prismjs": "^1.29.0"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
33
|
"@babel/core": "^7.16.10",
|