,
37 | LinkProps
38 | >(({ href, children, ...props }, forwardedRef) => {
39 | return (
40 |
41 |
42 | {children}
43 |
44 |
45 | );
46 | });
47 | Link.displayName = "Link";
48 | ```
49 |
50 | ### API Reference
51 |
52 | #### Link
53 |
54 | A styled component with props:
55 |
56 |
57 |
58 |
59 | | Prop |
60 | Type |
61 | Default |
62 | Explanation |
63 |
64 |
65 |
66 |
67 |
68 | variant
69 | |
70 |
71 | string
72 | "color" | "underline"
74 | }>
75 |
81 |
82 | |
83 | "underline" |
84 | Variant type of the link. |
85 |
86 |
87 |
--------------------------------------------------------------------------------
/packages/design-system/__tests__/__snapshots__/DropdownMenu.test.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`Test DropdownMenu should render as expected 1`] = `
4 | Object {
5 | "asFragment": [Function],
6 | "baseElement":
7 |
8 |
16 |
17 | ,
18 | "container":
19 |
27 |
,
28 | "debug": [Function],
29 | "findAllByAltText": [Function],
30 | "findAllByDisplayValue": [Function],
31 | "findAllByLabelText": [Function],
32 | "findAllByPlaceholderText": [Function],
33 | "findAllByRole": [Function],
34 | "findAllByTestId": [Function],
35 | "findAllByText": [Function],
36 | "findAllByTitle": [Function],
37 | "findByAltText": [Function],
38 | "findByDisplayValue": [Function],
39 | "findByLabelText": [Function],
40 | "findByPlaceholderText": [Function],
41 | "findByRole": [Function],
42 | "findByTestId": [Function],
43 | "findByText": [Function],
44 | "findByTitle": [Function],
45 | "getAllByAltText": [Function],
46 | "getAllByDisplayValue": [Function],
47 | "getAllByLabelText": [Function],
48 | "getAllByPlaceholderText": [Function],
49 | "getAllByRole": [Function],
50 | "getAllByTestId": [Function],
51 | "getAllByText": [Function],
52 | "getAllByTitle": [Function],
53 | "getByAltText": [Function],
54 | "getByDisplayValue": [Function],
55 | "getByLabelText": [Function],
56 | "getByPlaceholderText": [Function],
57 | "getByRole": [Function],
58 | "getByTestId": [Function],
59 | "getByText": [Function],
60 | "getByTitle": [Function],
61 | "queryAllByAltText": [Function],
62 | "queryAllByDisplayValue": [Function],
63 | "queryAllByLabelText": [Function],
64 | "queryAllByPlaceholderText": [Function],
65 | "queryAllByRole": [Function],
66 | "queryAllByTestId": [Function],
67 | "queryAllByText": [Function],
68 | "queryAllByTitle": [Function],
69 | "queryByAltText": [Function],
70 | "queryByDisplayValue": [Function],
71 | "queryByLabelText": [Function],
72 | "queryByPlaceholderText": [Function],
73 | "queryByRole": [Function],
74 | "queryByTestId": [Function],
75 | "queryByText": [Function],
76 | "queryByTitle": [Function],
77 | "rerender": [Function],
78 | "unmount": [Function],
79 | }
80 | `;
81 |
--------------------------------------------------------------------------------
/packages/design-system/__tests__/__snapshots__/Heading.test.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`Test Heading should render as expected 1`] = `
4 | Object {
5 | "asFragment": [Function],
6 | "baseElement":
7 |
8 |
11 | Test Heading
12 |
13 |
14 | ,
15 | "container":
16 |
19 | Test Heading
20 |
21 | ,
22 | "debug": [Function],
23 | "findAllByAltText": [Function],
24 | "findAllByDisplayValue": [Function],
25 | "findAllByLabelText": [Function],
26 | "findAllByPlaceholderText": [Function],
27 | "findAllByRole": [Function],
28 | "findAllByTestId": [Function],
29 | "findAllByText": [Function],
30 | "findAllByTitle": [Function],
31 | "findByAltText": [Function],
32 | "findByDisplayValue": [Function],
33 | "findByLabelText": [Function],
34 | "findByPlaceholderText": [Function],
35 | "findByRole": [Function],
36 | "findByTestId": [Function],
37 | "findByText": [Function],
38 | "findByTitle": [Function],
39 | "getAllByAltText": [Function],
40 | "getAllByDisplayValue": [Function],
41 | "getAllByLabelText": [Function],
42 | "getAllByPlaceholderText": [Function],
43 | "getAllByRole": [Function],
44 | "getAllByTestId": [Function],
45 | "getAllByText": [Function],
46 | "getAllByTitle": [Function],
47 | "getByAltText": [Function],
48 | "getByDisplayValue": [Function],
49 | "getByLabelText": [Function],
50 | "getByPlaceholderText": [Function],
51 | "getByRole": [Function],
52 | "getByTestId": [Function],
53 | "getByText": [Function],
54 | "getByTitle": [Function],
55 | "queryAllByAltText": [Function],
56 | "queryAllByDisplayValue": [Function],
57 | "queryAllByLabelText": [Function],
58 | "queryAllByPlaceholderText": [Function],
59 | "queryAllByRole": [Function],
60 | "queryAllByTestId": [Function],
61 | "queryAllByText": [Function],
62 | "queryAllByTitle": [Function],
63 | "queryByAltText": [Function],
64 | "queryByDisplayValue": [Function],
65 | "queryByLabelText": [Function],
66 | "queryByPlaceholderText": [Function],
67 | "queryByRole": [Function],
68 | "queryByTestId": [Function],
69 | "queryByText": [Function],
70 | "queryByTitle": [Function],
71 | "rerender": [Function],
72 | "unmount": [Function],
73 | }
74 | `;
75 |
--------------------------------------------------------------------------------
/packages/design-system/__tests__/__snapshots__/Tooltip.test.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`Test Tooltip should render as expected 1`] = `
4 | Object {
5 | "asFragment": [Function],
6 | "baseElement":
7 |
8 |
14 |
15 | ,
16 | "container":
17 |
23 |
,
24 | "debug": [Function],
25 | "findAllByAltText": [Function],
26 | "findAllByDisplayValue": [Function],
27 | "findAllByLabelText": [Function],
28 | "findAllByPlaceholderText": [Function],
29 | "findAllByRole": [Function],
30 | "findAllByTestId": [Function],
31 | "findAllByText": [Function],
32 | "findAllByTitle": [Function],
33 | "findByAltText": [Function],
34 | "findByDisplayValue": [Function],
35 | "findByLabelText": [Function],
36 | "findByPlaceholderText": [Function],
37 | "findByRole": [Function],
38 | "findByTestId": [Function],
39 | "findByText": [Function],
40 | "findByTitle": [Function],
41 | "getAllByAltText": [Function],
42 | "getAllByDisplayValue": [Function],
43 | "getAllByLabelText": [Function],
44 | "getAllByPlaceholderText": [Function],
45 | "getAllByRole": [Function],
46 | "getAllByTestId": [Function],
47 | "getAllByText": [Function],
48 | "getAllByTitle": [Function],
49 | "getByAltText": [Function],
50 | "getByDisplayValue": [Function],
51 | "getByLabelText": [Function],
52 | "getByPlaceholderText": [Function],
53 | "getByRole": [Function],
54 | "getByTestId": [Function],
55 | "getByText": [Function],
56 | "getByTitle": [Function],
57 | "queryAllByAltText": [Function],
58 | "queryAllByDisplayValue": [Function],
59 | "queryAllByLabelText": [Function],
60 | "queryAllByPlaceholderText": [Function],
61 | "queryAllByRole": [Function],
62 | "queryAllByTestId": [Function],
63 | "queryAllByText": [Function],
64 | "queryAllByTitle": [Function],
65 | "queryByAltText": [Function],
66 | "queryByDisplayValue": [Function],
67 | "queryByLabelText": [Function],
68 | "queryByPlaceholderText": [Function],
69 | "queryByRole": [Function],
70 | "queryByTestId": [Function],
71 | "queryByText": [Function],
72 | "queryByTitle": [Function],
73 | "rerender": [Function],
74 | "unmount": [Function],
75 | }
76 | `;
77 |
--------------------------------------------------------------------------------
/packages/design-system/__tests__/__snapshots__/Toggle.test.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`Test Toggle should render as expected 1`] = `
4 | Object {
5 | "asFragment": [Function],
6 | "baseElement":
7 |
8 |
16 |
17 | ,
18 | "container":
19 |
27 |
,
28 | "debug": [Function],
29 | "findAllByAltText": [Function],
30 | "findAllByDisplayValue": [Function],
31 | "findAllByLabelText": [Function],
32 | "findAllByPlaceholderText": [Function],
33 | "findAllByRole": [Function],
34 | "findAllByTestId": [Function],
35 | "findAllByText": [Function],
36 | "findAllByTitle": [Function],
37 | "findByAltText": [Function],
38 | "findByDisplayValue": [Function],
39 | "findByLabelText": [Function],
40 | "findByPlaceholderText": [Function],
41 | "findByRole": [Function],
42 | "findByTestId": [Function],
43 | "findByText": [Function],
44 | "findByTitle": [Function],
45 | "getAllByAltText": [Function],
46 | "getAllByDisplayValue": [Function],
47 | "getAllByLabelText": [Function],
48 | "getAllByPlaceholderText": [Function],
49 | "getAllByRole": [Function],
50 | "getAllByTestId": [Function],
51 | "getAllByText": [Function],
52 | "getAllByTitle": [Function],
53 | "getByAltText": [Function],
54 | "getByDisplayValue": [Function],
55 | "getByLabelText": [Function],
56 | "getByPlaceholderText": [Function],
57 | "getByRole": [Function],
58 | "getByTestId": [Function],
59 | "getByText": [Function],
60 | "getByTitle": [Function],
61 | "queryAllByAltText": [Function],
62 | "queryAllByDisplayValue": [Function],
63 | "queryAllByLabelText": [Function],
64 | "queryAllByPlaceholderText": [Function],
65 | "queryAllByRole": [Function],
66 | "queryAllByTestId": [Function],
67 | "queryAllByText": [Function],
68 | "queryAllByTitle": [Function],
69 | "queryByAltText": [Function],
70 | "queryByDisplayValue": [Function],
71 | "queryByLabelText": [Function],
72 | "queryByPlaceholderText": [Function],
73 | "queryByRole": [Function],
74 | "queryByTestId": [Function],
75 | "queryByText": [Function],
76 | "queryByTitle": [Function],
77 | "rerender": [Function],
78 | "unmount": [Function],
79 | }
80 | `;
81 |
--------------------------------------------------------------------------------
/packages/design-system/__tests__/__snapshots__/Checkbox.test.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`Test Checkbox should render as expected 1`] = `
4 | Object {
5 | "asFragment": [Function],
6 | "baseElement":
7 |
8 |
16 |
17 | ,
18 | "container":
19 |
27 |
,
28 | "debug": [Function],
29 | "findAllByAltText": [Function],
30 | "findAllByDisplayValue": [Function],
31 | "findAllByLabelText": [Function],
32 | "findAllByPlaceholderText": [Function],
33 | "findAllByRole": [Function],
34 | "findAllByTestId": [Function],
35 | "findAllByText": [Function],
36 | "findAllByTitle": [Function],
37 | "findByAltText": [Function],
38 | "findByDisplayValue": [Function],
39 | "findByLabelText": [Function],
40 | "findByPlaceholderText": [Function],
41 | "findByRole": [Function],
42 | "findByTestId": [Function],
43 | "findByText": [Function],
44 | "findByTitle": [Function],
45 | "getAllByAltText": [Function],
46 | "getAllByDisplayValue": [Function],
47 | "getAllByLabelText": [Function],
48 | "getAllByPlaceholderText": [Function],
49 | "getAllByRole": [Function],
50 | "getAllByTestId": [Function],
51 | "getAllByText": [Function],
52 | "getAllByTitle": [Function],
53 | "getByAltText": [Function],
54 | "getByDisplayValue": [Function],
55 | "getByLabelText": [Function],
56 | "getByPlaceholderText": [Function],
57 | "getByRole": [Function],
58 | "getByTestId": [Function],
59 | "getByText": [Function],
60 | "getByTitle": [Function],
61 | "queryAllByAltText": [Function],
62 | "queryAllByDisplayValue": [Function],
63 | "queryAllByLabelText": [Function],
64 | "queryAllByPlaceholderText": [Function],
65 | "queryAllByRole": [Function],
66 | "queryAllByTestId": [Function],
67 | "queryAllByText": [Function],
68 | "queryAllByTitle": [Function],
69 | "queryByAltText": [Function],
70 | "queryByDisplayValue": [Function],
71 | "queryByLabelText": [Function],
72 | "queryByPlaceholderText": [Function],
73 | "queryByRole": [Function],
74 | "queryByTestId": [Function],
75 | "queryByText": [Function],
76 | "queryByTitle": [Function],
77 | "rerender": [Function],
78 | "unmount": [Function],
79 | }
80 | `;
81 |
--------------------------------------------------------------------------------
/packages/design-system/__tests__/__snapshots__/Label.test.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`Test Label should render as expected 1`] = `
4 | Object {
5 | "asFragment": [Function],
6 | "baseElement":
7 |
8 |
13 | Test Label
14 |
15 |
16 | ,
17 | "container":
18 |
23 | Test Label
24 |
25 |
,
26 | "debug": [Function],
27 | "findAllByAltText": [Function],
28 | "findAllByDisplayValue": [Function],
29 | "findAllByLabelText": [Function],
30 | "findAllByPlaceholderText": [Function],
31 | "findAllByRole": [Function],
32 | "findAllByTestId": [Function],
33 | "findAllByText": [Function],
34 | "findAllByTitle": [Function],
35 | "findByAltText": [Function],
36 | "findByDisplayValue": [Function],
37 | "findByLabelText": [Function],
38 | "findByPlaceholderText": [Function],
39 | "findByRole": [Function],
40 | "findByTestId": [Function],
41 | "findByText": [Function],
42 | "findByTitle": [Function],
43 | "getAllByAltText": [Function],
44 | "getAllByDisplayValue": [Function],
45 | "getAllByLabelText": [Function],
46 | "getAllByPlaceholderText": [Function],
47 | "getAllByRole": [Function],
48 | "getAllByTestId": [Function],
49 | "getAllByText": [Function],
50 | "getAllByTitle": [Function],
51 | "getByAltText": [Function],
52 | "getByDisplayValue": [Function],
53 | "getByLabelText": [Function],
54 | "getByPlaceholderText": [Function],
55 | "getByRole": [Function],
56 | "getByTestId": [Function],
57 | "getByText": [Function],
58 | "getByTitle": [Function],
59 | "queryAllByAltText": [Function],
60 | "queryAllByDisplayValue": [Function],
61 | "queryAllByLabelText": [Function],
62 | "queryAllByPlaceholderText": [Function],
63 | "queryAllByRole": [Function],
64 | "queryAllByTestId": [Function],
65 | "queryAllByText": [Function],
66 | "queryAllByTitle": [Function],
67 | "queryByAltText": [Function],
68 | "queryByDisplayValue": [Function],
69 | "queryByLabelText": [Function],
70 | "queryByPlaceholderText": [Function],
71 | "queryByRole": [Function],
72 | "queryByTestId": [Function],
73 | "queryByText": [Function],
74 | "queryByTitle": [Function],
75 | "rerender": [Function],
76 | "unmount": [Function],
77 | }
78 | `;
79 |
--------------------------------------------------------------------------------
/packages/design-system/__tests__/__snapshots__/Sheet.test.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`Test Sheet should render as expected 1`] = `
4 | Object {
5 | "asFragment": [Function],
6 | "baseElement":
7 |
8 |
17 |
18 | ,
19 | "container":
20 |
29 |
,
30 | "debug": [Function],
31 | "findAllByAltText": [Function],
32 | "findAllByDisplayValue": [Function],
33 | "findAllByLabelText": [Function],
34 | "findAllByPlaceholderText": [Function],
35 | "findAllByRole": [Function],
36 | "findAllByTestId": [Function],
37 | "findAllByText": [Function],
38 | "findAllByTitle": [Function],
39 | "findByAltText": [Function],
40 | "findByDisplayValue": [Function],
41 | "findByLabelText": [Function],
42 | "findByPlaceholderText": [Function],
43 | "findByRole": [Function],
44 | "findByTestId": [Function],
45 | "findByText": [Function],
46 | "findByTitle": [Function],
47 | "getAllByAltText": [Function],
48 | "getAllByDisplayValue": [Function],
49 | "getAllByLabelText": [Function],
50 | "getAllByPlaceholderText": [Function],
51 | "getAllByRole": [Function],
52 | "getAllByTestId": [Function],
53 | "getAllByText": [Function],
54 | "getAllByTitle": [Function],
55 | "getByAltText": [Function],
56 | "getByDisplayValue": [Function],
57 | "getByLabelText": [Function],
58 | "getByPlaceholderText": [Function],
59 | "getByRole": [Function],
60 | "getByTestId": [Function],
61 | "getByText": [Function],
62 | "getByTitle": [Function],
63 | "queryAllByAltText": [Function],
64 | "queryAllByDisplayValue": [Function],
65 | "queryAllByLabelText": [Function],
66 | "queryAllByPlaceholderText": [Function],
67 | "queryAllByRole": [Function],
68 | "queryAllByTestId": [Function],
69 | "queryAllByText": [Function],
70 | "queryAllByTitle": [Function],
71 | "queryByAltText": [Function],
72 | "queryByDisplayValue": [Function],
73 | "queryByLabelText": [Function],
74 | "queryByPlaceholderText": [Function],
75 | "queryByRole": [Function],
76 | "queryByTestId": [Function],
77 | "queryByText": [Function],
78 | "queryByTitle": [Function],
79 | "rerender": [Function],
80 | "unmount": [Function],
81 | }
82 | `;
83 |
--------------------------------------------------------------------------------
/packages/design-system/__tests__/__snapshots__/Dialog.test.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`Test Dialog should render as expected 1`] = `
4 | Object {
5 | "asFragment": [Function],
6 | "baseElement":
7 |
8 |
17 |
18 | ,
19 | "container":
20 |
29 |
,
30 | "debug": [Function],
31 | "findAllByAltText": [Function],
32 | "findAllByDisplayValue": [Function],
33 | "findAllByLabelText": [Function],
34 | "findAllByPlaceholderText": [Function],
35 | "findAllByRole": [Function],
36 | "findAllByTestId": [Function],
37 | "findAllByText": [Function],
38 | "findAllByTitle": [Function],
39 | "findByAltText": [Function],
40 | "findByDisplayValue": [Function],
41 | "findByLabelText": [Function],
42 | "findByPlaceholderText": [Function],
43 | "findByRole": [Function],
44 | "findByTestId": [Function],
45 | "findByText": [Function],
46 | "findByTitle": [Function],
47 | "getAllByAltText": [Function],
48 | "getAllByDisplayValue": [Function],
49 | "getAllByLabelText": [Function],
50 | "getAllByPlaceholderText": [Function],
51 | "getAllByRole": [Function],
52 | "getAllByTestId": [Function],
53 | "getAllByText": [Function],
54 | "getAllByTitle": [Function],
55 | "getByAltText": [Function],
56 | "getByDisplayValue": [Function],
57 | "getByLabelText": [Function],
58 | "getByPlaceholderText": [Function],
59 | "getByRole": [Function],
60 | "getByTestId": [Function],
61 | "getByText": [Function],
62 | "getByTitle": [Function],
63 | "queryAllByAltText": [Function],
64 | "queryAllByDisplayValue": [Function],
65 | "queryAllByLabelText": [Function],
66 | "queryAllByPlaceholderText": [Function],
67 | "queryAllByRole": [Function],
68 | "queryAllByTestId": [Function],
69 | "queryAllByText": [Function],
70 | "queryAllByTitle": [Function],
71 | "queryByAltText": [Function],
72 | "queryByDisplayValue": [Function],
73 | "queryByLabelText": [Function],
74 | "queryByPlaceholderText": [Function],
75 | "queryByRole": [Function],
76 | "queryByTestId": [Function],
77 | "queryByText": [Function],
78 | "queryByTitle": [Function],
79 | "rerender": [Function],
80 | "unmount": [Function],
81 | }
82 | `;
83 |
--------------------------------------------------------------------------------
/packages/design-system/__tests__/__snapshots__/AlertDialog.test.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`Test AlertDialog should render as expected 1`] = `
4 | Object {
5 | "asFragment": [Function],
6 | "baseElement":
7 |
8 |
17 |
18 | ,
19 | "container":
20 |
29 |
,
30 | "debug": [Function],
31 | "findAllByAltText": [Function],
32 | "findAllByDisplayValue": [Function],
33 | "findAllByLabelText": [Function],
34 | "findAllByPlaceholderText": [Function],
35 | "findAllByRole": [Function],
36 | "findAllByTestId": [Function],
37 | "findAllByText": [Function],
38 | "findAllByTitle": [Function],
39 | "findByAltText": [Function],
40 | "findByDisplayValue": [Function],
41 | "findByLabelText": [Function],
42 | "findByPlaceholderText": [Function],
43 | "findByRole": [Function],
44 | "findByTestId": [Function],
45 | "findByText": [Function],
46 | "findByTitle": [Function],
47 | "getAllByAltText": [Function],
48 | "getAllByDisplayValue": [Function],
49 | "getAllByLabelText": [Function],
50 | "getAllByPlaceholderText": [Function],
51 | "getAllByRole": [Function],
52 | "getAllByTestId": [Function],
53 | "getAllByText": [Function],
54 | "getAllByTitle": [Function],
55 | "getByAltText": [Function],
56 | "getByDisplayValue": [Function],
57 | "getByLabelText": [Function],
58 | "getByPlaceholderText": [Function],
59 | "getByRole": [Function],
60 | "getByTestId": [Function],
61 | "getByText": [Function],
62 | "getByTitle": [Function],
63 | "queryAllByAltText": [Function],
64 | "queryAllByDisplayValue": [Function],
65 | "queryAllByLabelText": [Function],
66 | "queryAllByPlaceholderText": [Function],
67 | "queryAllByRole": [Function],
68 | "queryAllByTestId": [Function],
69 | "queryAllByText": [Function],
70 | "queryAllByTitle": [Function],
71 | "queryByAltText": [Function],
72 | "queryByDisplayValue": [Function],
73 | "queryByLabelText": [Function],
74 | "queryByPlaceholderText": [Function],
75 | "queryByRole": [Function],
76 | "queryByTestId": [Function],
77 | "queryByText": [Function],
78 | "queryByTitle": [Function],
79 | "rerender": [Function],
80 | "unmount": [Function],
81 | }
82 | `;
83 |
--------------------------------------------------------------------------------