@sequencing/design-system 1.0.39 → 1.0.41
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.
- package/dist/documentation.json +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Organisms/Footer/Footer.d.ts +7 -9
- package/dist/index.d.ts +9 -11
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/components/Organisms/Footer/Footer.d.ts +7 -9
- package/package.json +1 -1
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
type Link = {
|
|
3
|
+
label: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
onClick?: (url?: string) => void;
|
|
6
|
+
};
|
|
2
7
|
interface FooterProps {
|
|
3
8
|
/** Optional app version to render on hover over the copyright text */
|
|
4
9
|
appVersion?: string;
|
|
@@ -8,10 +13,7 @@ interface FooterProps {
|
|
|
8
13
|
*/
|
|
9
14
|
onLinkClick?: (url?: string) => void;
|
|
10
15
|
/** Links to be rendered on the right-bottom edge of the component. */
|
|
11
|
-
policiesLinks:
|
|
12
|
-
label: string;
|
|
13
|
-
url: string;
|
|
14
|
-
}[];
|
|
16
|
+
policiesLinks: Link[];
|
|
15
17
|
/**
|
|
16
18
|
* The main links that will be rendered as columns. If you pass a custom `onClick` function to the link,
|
|
17
19
|
* it will override the top-level `onLinkClick`.
|
|
@@ -19,11 +21,7 @@ interface FooterProps {
|
|
|
19
21
|
*/
|
|
20
22
|
linkGroups: {
|
|
21
23
|
title: string;
|
|
22
|
-
links:
|
|
23
|
-
url?: string;
|
|
24
|
-
label: string;
|
|
25
|
-
onClick?: (url?: string) => void;
|
|
26
|
-
}[];
|
|
24
|
+
links: Link[];
|
|
27
25
|
}[];
|
|
28
26
|
}
|
|
29
27
|
/**
|