@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
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ interface LinkProps {
|
|
|
50
50
|
* Passed ``children`` will be rendered inside the anchor tag.
|
|
51
51
|
*
|
|
52
52
|
*/
|
|
53
|
-
declare const Link: ({ hint, href, children, selected, customClass, variant, onClick, onMouseEnter, onMouseLeave, }: PropsWithChildren<LinkProps>) => React.JSX.Element;
|
|
53
|
+
declare const Link$1: ({ hint, href, children, selected, customClass, variant, onClick, onMouseEnter, onMouseLeave, }: PropsWithChildren<LinkProps>) => React.JSX.Element;
|
|
54
54
|
|
|
55
55
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
56
56
|
/** Custom css class to customize the stylings */
|
|
@@ -515,6 +515,11 @@ interface HeaderProps {
|
|
|
515
515
|
*/
|
|
516
516
|
declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HeaderFunctions>>;
|
|
517
517
|
|
|
518
|
+
type Link = {
|
|
519
|
+
label: string;
|
|
520
|
+
url?: string;
|
|
521
|
+
onClick?: (url?: string) => void;
|
|
522
|
+
};
|
|
518
523
|
interface FooterProps {
|
|
519
524
|
/** Optional app version to render on hover over the copyright text */
|
|
520
525
|
appVersion?: string;
|
|
@@ -524,10 +529,7 @@ interface FooterProps {
|
|
|
524
529
|
*/
|
|
525
530
|
onLinkClick?: (url?: string) => void;
|
|
526
531
|
/** Links to be rendered on the right-bottom edge of the component. */
|
|
527
|
-
policiesLinks:
|
|
528
|
-
label: string;
|
|
529
|
-
url: string;
|
|
530
|
-
}[];
|
|
532
|
+
policiesLinks: Link[];
|
|
531
533
|
/**
|
|
532
534
|
* The main links that will be rendered as columns. If you pass a custom `onClick` function to the link,
|
|
533
535
|
* it will override the top-level `onLinkClick`.
|
|
@@ -535,11 +537,7 @@ interface FooterProps {
|
|
|
535
537
|
*/
|
|
536
538
|
linkGroups: {
|
|
537
539
|
title: string;
|
|
538
|
-
links:
|
|
539
|
-
url?: string;
|
|
540
|
-
label: string;
|
|
541
|
-
onClick?: (url?: string) => void;
|
|
542
|
-
}[];
|
|
540
|
+
links: Link[];
|
|
543
541
|
}[];
|
|
544
542
|
}
|
|
545
543
|
/**
|
|
@@ -552,4 +550,4 @@ interface FooterProps {
|
|
|
552
550
|
*/
|
|
553
551
|
declare const Footer: ({ appVersion, linkGroups, onLinkClick, policiesLinks }: FooterProps) => React.JSX.Element;
|
|
554
552
|
|
|
555
|
-
export { Accordion, AccordionProps, AppBar, AppBarProps, Button, ButtonProps, DatePicker, DatePickerProps, Dropdown, DropdownFunctions, DropdownProps, Footer, Header, HeaderFunctions, HeaderProps, Link, LinkProps, Modal, ModalProps, Popover, PopoverContent, PopoverContentProps, PopoverProps, Spinner, SpinnerProps, TabMenu, TabMenuProps, TextField, TextFieldProps };
|
|
553
|
+
export { Accordion, AccordionProps, AppBar, AppBarProps, Button, ButtonProps, DatePicker, DatePickerProps, Dropdown, DropdownFunctions, DropdownProps, Footer, Header, HeaderFunctions, HeaderProps, Link$1 as Link, LinkProps, Modal, ModalProps, Popover, PopoverContent, PopoverContentProps, PopoverProps, Spinner, SpinnerProps, TabMenu, TabMenuProps, TextField, TextFieldProps };
|