@navikt/ds-react 0.19.7 → 0.19.10
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/_docs.json +20 -1
- package/cjs/form/Textarea.js +12 -4
- package/cjs/loader/Loader.js +2 -2
- package/esm/form/Textarea.d.ts +4 -0
- package/esm/form/Textarea.js +12 -4
- package/esm/form/Textarea.js.map +1 -1
- package/esm/loader/Loader.d.ts +1 -1
- package/esm/loader/Loader.js +2 -2
- package/esm/loader/Loader.js.map +1 -1
- package/package.json +3 -3
- package/src/alert/alert.stories.tsx +9 -1
- package/src/button/button.stories.tsx +22 -19
- package/src/form/Textarea.tsx +17 -2
- package/src/form/stories/textarea.stories.tsx +10 -0
- package/src/guide-panel/guidepanel.stories.tsx +51 -0
- package/src/help-text/help-text.stories.tsx +53 -18
- package/src/link/link.stories.tsx +77 -0
- package/src/link-panel/link-panel.stories.tsx +57 -0
- package/src/loader/Loader.tsx +8 -4
- package/src/loader/loader.stories.tsx +79 -0
- package/src/modal/modal.stories.tsx +71 -38
- package/src/panel/{stories/panel.stories.tsx → panel.stories.tsx} +27 -5
- package/src/popover/popover.stories.tsx +126 -0
- package/src/table/stories/table-async.stories.tsx +1 -1
- package/src/table/stories/table-expandable.stories.tsx +89 -62
- package/src/table/stories/table.stories.tsx +73 -83
- package/src/tag/tag.stories.tsx +45 -0
- package/src/typography/heading.stories.tsx +75 -0
- package/src/typography/typography.stories.tsx +184 -111
- package/src/guide-panel/stories/example.css +0 -13
- package/src/guide-panel/stories/guidepanel.stories.mdx +0 -81
- package/src/guide-panel/stories/guidepanel.stories.tsx +0 -68
- package/src/link/stories/link.stories.mdx +0 -26
- package/src/link/stories/link.stories.tsx +0 -53
- package/src/link-panel/stories/illustration.tsx +0 -125
- package/src/link-panel/stories/link-panel.stories.mdx +0 -110
- package/src/link-panel/stories/link-panel.stories.tsx +0 -51
- package/src/loader/stories/loader.stories.mdx +0 -65
- package/src/loader/stories/loader.stories.tsx +0 -69
- package/src/panel/stories/panel.stories.mdx +0 -42
- package/src/popover/stories/popover.stories.mdx +0 -23
- package/src/popover/stories/popover.stories.tsx +0 -56
- package/src/table/stories/table-hot.stories.tsx +0 -376
- package/src/table/stories/table.stories.mdx +0 -112
- package/src/tag/stories/tag.stories.mdx +0 -56
- package/src/tag/stories/tag.stories.tsx +0 -32
|
@@ -3,85 +3,82 @@ import { Table } from "../";
|
|
|
3
3
|
import { Alert, Button, Checkbox, Link } from "../..";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title: "ds-react/
|
|
6
|
+
title: "ds-react/Table",
|
|
7
7
|
component: Table,
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<Table
|
|
13
|
-
<Table.
|
|
14
|
-
<Table.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<Table.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
10
|
+
const TableComponent = (props) => (
|
|
11
|
+
<Table {...props}>
|
|
12
|
+
<Table.Header>
|
|
13
|
+
<Table.Row>
|
|
14
|
+
{props.button && <Table.HeaderCell>Action</Table.HeaderCell>}
|
|
15
|
+
<Table.HeaderCell>ID</Table.HeaderCell>
|
|
16
|
+
<Table.HeaderCell>Fornavn</Table.HeaderCell>
|
|
17
|
+
<Table.HeaderCell>Etternavn</Table.HeaderCell>
|
|
18
|
+
<Table.HeaderCell>Rolle</Table.HeaderCell>
|
|
19
|
+
</Table.Row>
|
|
20
|
+
</Table.Header>
|
|
21
|
+
<Table.Body>
|
|
22
|
+
<Table.Row>
|
|
23
|
+
{props.button && (
|
|
24
|
+
<Table.DataCell
|
|
25
|
+
style={{
|
|
26
|
+
paddingTop: 6,
|
|
27
|
+
paddingBottom: 6,
|
|
28
|
+
}}
|
|
29
|
+
>
|
|
30
|
+
<Button size="xsmall">Click me!</Button>
|
|
31
|
+
</Table.DataCell>
|
|
32
|
+
)}
|
|
33
|
+
<Table.HeaderCell>1</Table.HeaderCell>
|
|
34
|
+
<Table.DataCell>Jean-Luc</Table.DataCell>
|
|
35
|
+
<Table.DataCell>Picard</Table.DataCell>
|
|
36
|
+
<Table.DataCell>Kaptein</Table.DataCell>
|
|
37
|
+
</Table.Row>
|
|
38
|
+
<Table.Row>
|
|
39
|
+
{props.button && (
|
|
40
|
+
<Table.DataCell
|
|
41
|
+
style={{
|
|
42
|
+
paddingTop: 6,
|
|
43
|
+
paddingBottom: 6,
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
46
|
+
<Button size="xsmall">Click me!</Button>
|
|
47
|
+
</Table.DataCell>
|
|
48
|
+
)}
|
|
49
|
+
<Table.HeaderCell>2</Table.HeaderCell>
|
|
50
|
+
<Table.DataCell>William</Table.DataCell>
|
|
51
|
+
<Table.DataCell>Riker</Table.DataCell>
|
|
52
|
+
<Table.DataCell>Kommandør</Table.DataCell>
|
|
53
|
+
</Table.Row>
|
|
54
|
+
<Table.Row>
|
|
55
|
+
{props.button && (
|
|
56
|
+
<Table.DataCell
|
|
57
|
+
style={{
|
|
58
|
+
paddingTop: 6,
|
|
59
|
+
paddingBottom: 6,
|
|
60
|
+
}}
|
|
61
|
+
>
|
|
62
|
+
<Button size="xsmall">Click me!</Button>
|
|
63
|
+
</Table.DataCell>
|
|
64
|
+
)}
|
|
65
|
+
<Table.HeaderCell>3</Table.HeaderCell>
|
|
66
|
+
<Table.DataCell>Geordi</Table.DataCell>
|
|
67
|
+
<Table.DataCell>La Forge</Table.DataCell>
|
|
68
|
+
<Table.DataCell>Sjefsingeniør</Table.DataCell>
|
|
69
|
+
</Table.Row>
|
|
70
|
+
</Table.Body>
|
|
71
|
+
</Table>
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
export const Default = () => <TableComponent />;
|
|
75
|
+
export const Zebra = () => <TableComponent zebraStripes />;
|
|
76
|
+
export const Small = () => <TableComponent size="small" />;
|
|
77
|
+
export const Buttons = () => <TableComponent size="small" button />;
|
|
78
|
+
|
|
79
|
+
export const WithDivs = () => {
|
|
74
80
|
return (
|
|
75
81
|
<>
|
|
76
|
-
<h1>Table</h1>
|
|
77
|
-
<TableComponent />
|
|
78
|
-
<h2>Zebra</h2>
|
|
79
|
-
<TableComponent zebraStripes />
|
|
80
|
-
<h2>Small Table</h2>
|
|
81
|
-
<TableComponent size="small" />
|
|
82
|
-
<h2>Small Table with buttons</h2>
|
|
83
|
-
<TableComponent size="small" button />
|
|
84
|
-
<h2>Table with divs</h2>
|
|
85
82
|
<Alert variant="warning">
|
|
86
83
|
Obs! Hvis man skal bygge tabeller uten å bruke vanlig {"<tabell> "}
|
|
87
84
|
-markup er det svært viktig at man supplerer elementene med{" "}
|
|
@@ -147,15 +144,8 @@ export const All = () => {
|
|
|
147
144
|
);
|
|
148
145
|
};
|
|
149
146
|
|
|
150
|
-
export const Selection = () =>
|
|
151
|
-
|
|
152
|
-
<h1>Selection</h1>
|
|
153
|
-
<h2>Medium</h2>
|
|
154
|
-
<SelectionTable />
|
|
155
|
-
<h2>Small</h2>
|
|
156
|
-
<SelectionTable size="small" />
|
|
157
|
-
</>
|
|
158
|
-
);
|
|
147
|
+
export const Selection = () => <SelectionTable />;
|
|
148
|
+
export const SelectionSmall = () => <SelectionTable size="small" />;
|
|
159
149
|
|
|
160
150
|
const SelectionTable = ({ size = "medium" }: { size?: "small" | "medium" }) => {
|
|
161
151
|
const useToggleList = (initialState) => {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Tag } from ".";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "ds-react/Tag",
|
|
6
|
+
component: Tag,
|
|
7
|
+
argTypes: {
|
|
8
|
+
variant: {
|
|
9
|
+
defaultValue: "info",
|
|
10
|
+
control: {
|
|
11
|
+
type: "radio",
|
|
12
|
+
options: ["error", "warning", "info", "success"],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const variants: Array<"error" | "warning" | "info" | "success"> = [
|
|
19
|
+
"error",
|
|
20
|
+
"warning",
|
|
21
|
+
"info",
|
|
22
|
+
"success",
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
export const Default = (props) => (
|
|
26
|
+
<Tag variant={props.variant} size={props.size}>
|
|
27
|
+
{props.children}
|
|
28
|
+
</Tag>
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
Default.args = {
|
|
32
|
+
children: "Id elit esse",
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const Small = () => {
|
|
36
|
+
return (
|
|
37
|
+
<div className="rowgap">
|
|
38
|
+
{variants.map((variant, i) => (
|
|
39
|
+
<Tag key={variant} variant={variant} size="small">
|
|
40
|
+
{new Array(i + 1).fill("Id elit esse")}
|
|
41
|
+
</Tag>
|
|
42
|
+
))}
|
|
43
|
+
</div>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Heading } from "..";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: "ds-react/Typography/Heading",
|
|
7
|
+
component: Heading,
|
|
8
|
+
argTypes: {
|
|
9
|
+
size: {
|
|
10
|
+
defaultValue: "large",
|
|
11
|
+
control: {
|
|
12
|
+
type: "radio",
|
|
13
|
+
options: ["xlarge", "large", "medium", "small", "xsmall"],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
level: {
|
|
17
|
+
defaultValue: "1",
|
|
18
|
+
control: {
|
|
19
|
+
type: "radio",
|
|
20
|
+
options: ["1", "2", "3", "4", "5", "6"],
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
} as Meta;
|
|
25
|
+
|
|
26
|
+
const lorem = "Veniam consequat cillum";
|
|
27
|
+
|
|
28
|
+
export const Default = (props) => <Heading {...props}>{lorem}</Heading>;
|
|
29
|
+
|
|
30
|
+
Default.args = {
|
|
31
|
+
spacing: false,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const Sizes = () => (
|
|
35
|
+
<div className="colgap">
|
|
36
|
+
<Heading level="1" size="xlarge">
|
|
37
|
+
{lorem}
|
|
38
|
+
</Heading>
|
|
39
|
+
<Heading level="2" size="large">
|
|
40
|
+
{lorem}
|
|
41
|
+
</Heading>
|
|
42
|
+
<Heading level="3" size="medium">
|
|
43
|
+
{lorem}
|
|
44
|
+
</Heading>
|
|
45
|
+
<Heading level="4" size="small">
|
|
46
|
+
{lorem}
|
|
47
|
+
</Heading>
|
|
48
|
+
<Heading level="5" size="xsmall">
|
|
49
|
+
{lorem}
|
|
50
|
+
</Heading>
|
|
51
|
+
</div>
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
export const Spacing = () => (
|
|
55
|
+
<div>
|
|
56
|
+
<Heading level="1" size="xlarge" spacing>
|
|
57
|
+
{lorem}
|
|
58
|
+
</Heading>
|
|
59
|
+
<Heading level="2" size="large" spacing>
|
|
60
|
+
{lorem}
|
|
61
|
+
</Heading>
|
|
62
|
+
<Heading level="3" size="medium" spacing>
|
|
63
|
+
{lorem}
|
|
64
|
+
</Heading>
|
|
65
|
+
<Heading level="4" size="small" spacing>
|
|
66
|
+
{lorem}
|
|
67
|
+
</Heading>
|
|
68
|
+
<Heading level="5" size="xsmall" spacing>
|
|
69
|
+
{lorem}
|
|
70
|
+
</Heading>
|
|
71
|
+
<Heading level="5" size="xsmall">
|
|
72
|
+
{lorem}
|
|
73
|
+
</Heading>
|
|
74
|
+
</div>
|
|
75
|
+
);
|
|
@@ -1,137 +1,210 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import {
|
|
3
|
-
|
|
4
|
-
BodyShort,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Ingress,
|
|
8
|
-
Label,
|
|
9
|
-
ErrorMessage,
|
|
4
|
+
BodyLong as DsBodyLong,
|
|
5
|
+
BodyShort as DsBodyShort,
|
|
6
|
+
Detail as DsDetail,
|
|
7
|
+
ErrorMessage as DsErrorMessage,
|
|
8
|
+
Ingress as DsIngress,
|
|
9
|
+
Label as DsLabel,
|
|
10
10
|
} from "..";
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
|
-
title: "ds-react/
|
|
14
|
-
component:
|
|
13
|
+
title: "ds-react/Typography",
|
|
14
|
+
component: DsBodyLong,
|
|
15
|
+
subcomponents: {
|
|
16
|
+
DsBodyShort,
|
|
17
|
+
DsDetail,
|
|
18
|
+
DsErrorMessage,
|
|
19
|
+
DsIngress,
|
|
20
|
+
DsLabel,
|
|
21
|
+
},
|
|
22
|
+
argTypes: {
|
|
23
|
+
size: {
|
|
24
|
+
defaultValue: "large",
|
|
25
|
+
control: {
|
|
26
|
+
type: "radio",
|
|
27
|
+
options: ["medium", "small"],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
component: {
|
|
31
|
+
defaultValue: "BodyLong",
|
|
32
|
+
control: {
|
|
33
|
+
type: "radio",
|
|
34
|
+
options: [
|
|
35
|
+
"BodyLong",
|
|
36
|
+
"BodyShort",
|
|
37
|
+
"Detail",
|
|
38
|
+
"Ingress",
|
|
39
|
+
"Label",
|
|
40
|
+
"ErrorMessage",
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
} as Meta;
|
|
46
|
+
|
|
47
|
+
const lorem =
|
|
48
|
+
"Velit quis in laborum occaecat laborum magna id nisi veniam aliqua velit amet non. In quis sit proident dolore reprehenderit laborum aliquip";
|
|
49
|
+
|
|
50
|
+
const compMap = {
|
|
51
|
+
BodyLong: DsBodyLong,
|
|
52
|
+
BodyShort: DsBodyShort,
|
|
53
|
+
Detail: DsDetail,
|
|
54
|
+
Ingress: DsIngress,
|
|
55
|
+
Label: DsLabel,
|
|
56
|
+
ErrorMessage: DsErrorMessage,
|
|
15
57
|
};
|
|
16
58
|
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{lorem()}
|
|
22
|
-
</Heading>
|
|
23
|
-
);
|
|
59
|
+
export const Default = (props) => {
|
|
60
|
+
const Comp = compMap[props.component];
|
|
61
|
+
return <Comp {...props}>{lorem}</Comp>;
|
|
62
|
+
};
|
|
24
63
|
|
|
25
|
-
|
|
26
|
-
|
|
64
|
+
Default.args = {
|
|
65
|
+
spacing: false,
|
|
66
|
+
};
|
|
27
67
|
|
|
28
|
-
const
|
|
29
|
-
|
|
68
|
+
export const Ingress = () => (
|
|
69
|
+
<>
|
|
70
|
+
<DsIngress spacing>
|
|
71
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
72
|
+
</DsIngress>
|
|
73
|
+
<DsIngress>
|
|
74
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
75
|
+
</DsIngress>
|
|
76
|
+
</>
|
|
30
77
|
);
|
|
31
78
|
|
|
32
|
-
export const
|
|
33
|
-
|
|
79
|
+
export const BodyLong = () => (
|
|
80
|
+
<>
|
|
81
|
+
<DsBodyLong spacing>
|
|
82
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip. Aute amet
|
|
83
|
+
occaecat ex aliqua irure elit labore pariatur. Proident pariatur proident
|
|
84
|
+
pariatur magna consequat velit id commodo quis sunt tempor ullamco aliquip
|
|
85
|
+
pariatur.
|
|
86
|
+
</DsBodyLong>
|
|
87
|
+
<DsBodyLong>
|
|
88
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip. Aute amet
|
|
89
|
+
occaecat ex aliqua irure elit labore pariatur. Proident pariatur proident
|
|
90
|
+
pariatur magna consequat velit id commodo quis sunt tempor ullamco aliquip
|
|
91
|
+
pariatur.
|
|
92
|
+
</DsBodyLong>
|
|
93
|
+
</>
|
|
94
|
+
);
|
|
34
95
|
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
96
|
+
export const BodyLongSmall = () => (
|
|
97
|
+
<>
|
|
98
|
+
<DsBodyLong size="small" spacing>
|
|
99
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip. Aute amet
|
|
100
|
+
occaecat ex aliqua irure elit labore pariatur. Proident pariatur proident
|
|
101
|
+
pariatur magna consequat velit id commodo quis sunt tempor ullamco aliquip
|
|
102
|
+
pariatur.
|
|
103
|
+
</DsBodyLong>
|
|
104
|
+
<DsBodyLong size="small">
|
|
105
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip. Aute amet
|
|
106
|
+
occaecat ex aliqua irure elit labore pariatur. Proident pariatur proident
|
|
107
|
+
pariatur magna consequat velit id commodo quis sunt tempor ullamco aliquip
|
|
108
|
+
pariatur.
|
|
109
|
+
</DsBodyLong>
|
|
110
|
+
</>
|
|
39
111
|
);
|
|
40
112
|
|
|
41
|
-
export const
|
|
42
|
-
|
|
113
|
+
export const BodyShort = () => (
|
|
114
|
+
<>
|
|
115
|
+
<DsBodyShort spacing>
|
|
116
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
117
|
+
</DsBodyShort>
|
|
118
|
+
<DsBodyShort>
|
|
119
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
120
|
+
</DsBodyShort>
|
|
121
|
+
</>
|
|
122
|
+
);
|
|
43
123
|
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
124
|
+
export const BodyShortSmall = () => (
|
|
125
|
+
<>
|
|
126
|
+
<DsBodyShort size="small" spacing>
|
|
127
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
128
|
+
</DsBodyShort>
|
|
129
|
+
<DsBodyShort size="small">
|
|
130
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
131
|
+
</DsBodyShort>
|
|
132
|
+
</>
|
|
48
133
|
);
|
|
49
134
|
|
|
50
|
-
export const
|
|
51
|
-
|
|
135
|
+
export const Label = () => (
|
|
136
|
+
<>
|
|
137
|
+
<DsLabel spacing>
|
|
138
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
139
|
+
</DsLabel>
|
|
140
|
+
<DsLabel>
|
|
141
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
142
|
+
</DsLabel>
|
|
143
|
+
</>
|
|
144
|
+
);
|
|
52
145
|
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
146
|
+
export const LabelSmall = () => (
|
|
147
|
+
<>
|
|
148
|
+
<DsLabel size="small" spacing>
|
|
149
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
150
|
+
</DsLabel>
|
|
151
|
+
<DsLabel size="small">
|
|
152
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
153
|
+
</DsLabel>
|
|
154
|
+
</>
|
|
57
155
|
);
|
|
58
156
|
|
|
59
|
-
export const
|
|
60
|
-
|
|
157
|
+
export const Detail = () => (
|
|
158
|
+
<>
|
|
159
|
+
<DsDetail spacing>
|
|
160
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
161
|
+
</DsDetail>
|
|
162
|
+
<DsDetail>
|
|
163
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
164
|
+
</DsDetail>
|
|
165
|
+
</>
|
|
166
|
+
);
|
|
61
167
|
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
168
|
+
export const DetailUppercase = () => (
|
|
169
|
+
<>
|
|
170
|
+
<DsDetail spacing uppercase>
|
|
171
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
172
|
+
</DsDetail>
|
|
173
|
+
<DsDetail uppercase>
|
|
174
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
175
|
+
</DsDetail>
|
|
176
|
+
</>
|
|
66
177
|
);
|
|
67
178
|
|
|
68
|
-
export const
|
|
69
|
-
|
|
179
|
+
export const DetailSmall = () => (
|
|
180
|
+
<>
|
|
181
|
+
<DsDetail size="small" spacing>
|
|
182
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
183
|
+
</DsDetail>
|
|
184
|
+
<DsDetail size="small">
|
|
185
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
186
|
+
</DsDetail>
|
|
187
|
+
</>
|
|
188
|
+
);
|
|
70
189
|
|
|
71
|
-
const
|
|
72
|
-
|
|
190
|
+
export const ErrorMessage = () => (
|
|
191
|
+
<>
|
|
192
|
+
<DsErrorMessage spacing>
|
|
193
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
194
|
+
</DsErrorMessage>
|
|
195
|
+
<DsErrorMessage>
|
|
196
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
197
|
+
</DsErrorMessage>
|
|
198
|
+
</>
|
|
73
199
|
);
|
|
74
200
|
|
|
75
|
-
export const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
BodyLong: Aliqua ad et nisi commodo sit excepteur in commodo proident
|
|
86
|
-
proident. Nostrud consectetur dolore eu nostrud aliqua. Adipisicing
|
|
87
|
-
labore aliqua qui velit amet ea amet do. Magna anim velit et incididunt.
|
|
88
|
-
Lorem ad pariatur pariatur quis magna cupidatat. Exercitation officia
|
|
89
|
-
occaecat occaecat id nulla fugiat laborum elit laboris non est ex
|
|
90
|
-
nostrud occaecat. Commodo laboris veniam cillum in aute.
|
|
91
|
-
</BodyLong>
|
|
92
|
-
<BodyLong spacing>
|
|
93
|
-
BodyLong: Cillum consequat velit est ea voluptate. Et elit irure magna
|
|
94
|
-
sit consequat mollit excepteur ad non excepteur velit exercitation aute.
|
|
95
|
-
Fugiat deserunt quis nulla cupidatat esse quis ex. Laborum eiusmod culpa
|
|
96
|
-
labore eu irure quis laborum. Irure veniam et nostrud do. Quis ut ea est
|
|
97
|
-
culpa tempor anim.
|
|
98
|
-
</BodyLong>
|
|
99
|
-
<BodyLong spacing>
|
|
100
|
-
BodyLong: Dolore commodo ad veniam commodo aute voluptate est officia
|
|
101
|
-
sunt proident irure consectetur excepteur.
|
|
102
|
-
</BodyLong>
|
|
103
|
-
<Heading level={"2"} size="xlarge" spacing>
|
|
104
|
-
Title lvl 2 large
|
|
105
|
-
</Heading>
|
|
106
|
-
<Ingress spacing>
|
|
107
|
-
Ingress: Mollit incididunt incididunt officia amet est et non aliqua
|
|
108
|
-
officia nulla et aute aliqua culpa.
|
|
109
|
-
</Ingress>
|
|
110
|
-
<BodyLong spacing>
|
|
111
|
-
BodyLong: Commodo veniam enim laborum pariatur excepteur commodo do
|
|
112
|
-
cillum. Nisi elit sunt commodo id in adipisicing cupidatat dolore dolore
|
|
113
|
-
et tempor cupidatat. Cillum quis sunt in dolor occaecat.
|
|
114
|
-
</BodyLong>
|
|
115
|
-
<BodyLong spacing>
|
|
116
|
-
BodyLong: Irure dolore laborum amet occaecat ex laboris mollit
|
|
117
|
-
reprehenderit nisi laborum voluptate laborum. Ipsum eu sint laborum
|
|
118
|
-
adipisicing ut incididunt laborum laborum. Ipsum non amet laboris quis
|
|
119
|
-
Lorem est laborum qui pariatur ex eu. Eiusmod proident amet esse ex.
|
|
120
|
-
</BodyLong>
|
|
121
|
-
<BodyLong size="small" spacing>
|
|
122
|
-
BodyLong small: Irure dolore laborum amet occaecat ex laboris mollit
|
|
123
|
-
reprehenderit nisi laborum voluptate laborum. Ipsum eu sint laborum
|
|
124
|
-
adipisicing ut incididunt laborum laborum. Ipsum non amet laboris quis
|
|
125
|
-
Lorem est laborum qui pariatur ex eu. Eiusmod proident amet esse ex.
|
|
126
|
-
</BodyLong>
|
|
127
|
-
<BodyShort spacing>
|
|
128
|
-
BodyShort: Id consectetur velit sunt laboris consequat ullamco
|
|
129
|
-
incididunt.
|
|
130
|
-
</BodyShort>
|
|
131
|
-
<BodyShort size="small" spacing>
|
|
132
|
-
BodyShort small: Sunt amet officia sit excepteur sit pariatur sit
|
|
133
|
-
reprehenderit irure ipsum.
|
|
134
|
-
</BodyShort>
|
|
135
|
-
</div>
|
|
136
|
-
);
|
|
137
|
-
};
|
|
201
|
+
export const ErrorMessageSmall = () => (
|
|
202
|
+
<>
|
|
203
|
+
<DsErrorMessage size="small" spacing>
|
|
204
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
205
|
+
</DsErrorMessage>
|
|
206
|
+
<DsErrorMessage size="small">
|
|
207
|
+
Deserunt veniam eu fugiat ad est occaecat aliqua nisi aliquip.
|
|
208
|
+
</DsErrorMessage>
|
|
209
|
+
</>
|
|
210
|
+
);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
.sb-guidepanel__tokens--purple {
|
|
2
|
-
--navds-guide-panel-color-border: var(--navds-global-color-purple-400);
|
|
3
|
-
--navds-guide-panel-color-illustration-background: var(
|
|
4
|
-
--navds-global-color-purple-200
|
|
5
|
-
);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.sb-guidepanel__tokens--green {
|
|
9
|
-
--navds-guide-panel-color-border: var(--navds-global-color-green-400);
|
|
10
|
-
--navds-guide-panel-color-illustration-background: var(
|
|
11
|
-
--navds-global-color-green-200
|
|
12
|
-
);
|
|
13
|
-
}
|