@navikt/ds-react 0.19.9 → 0.19.12
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 +1 -1
- package/cjs/form/error-summary/ErrorSummary.js +4 -2
- package/cjs/loader/Loader.js +2 -2
- package/esm/form/error-summary/ErrorSummary.js +4 -2
- package/esm/form/error-summary/ErrorSummary.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 +2 -2
- package/src/alert/alert.stories.tsx +9 -1
- package/src/form/error-summary/ErrorSummary.tsx +9 -3
- 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 -5
- 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/toggle-group/ToggleGroup.stories.tsx +63 -81
- 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
|
@@ -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
|
+
};
|
|
@@ -1,122 +1,104 @@
|
|
|
1
|
+
import { Email, EmailOpened, Send } from "@navikt/ds-icons";
|
|
2
|
+
import { Meta } from "@storybook/react/types-6-0";
|
|
1
3
|
import React, { useState } from "react";
|
|
2
|
-
import { Attachment, Hamburger, Star, System } from "@navikt/ds-icons";
|
|
3
4
|
import { ToggleGroup } from "../index";
|
|
4
|
-
import { Meta } from "@storybook/react/types-6-0";
|
|
5
5
|
export default {
|
|
6
|
-
title: "ds-react/
|
|
6
|
+
title: "ds-react/ToggleGroup",
|
|
7
7
|
component: ToggleGroup,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
argTypes: {
|
|
9
|
+
size: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "radio",
|
|
12
|
+
options: ["medium", "small"],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
10
15
|
},
|
|
11
16
|
} as Meta;
|
|
12
17
|
|
|
13
18
|
const Items = (icon?: boolean, both?: boolean) => (
|
|
14
19
|
<>
|
|
15
|
-
<ToggleGroup.Item value="
|
|
20
|
+
<ToggleGroup.Item value="ulest">
|
|
16
21
|
{both ? (
|
|
17
22
|
<>
|
|
18
|
-
<
|
|
23
|
+
<Email /> Uleste
|
|
19
24
|
</>
|
|
20
25
|
) : (
|
|
21
|
-
<>{icon ? <
|
|
26
|
+
<>{icon ? <Email /> : "Uleste"}</>
|
|
22
27
|
)}
|
|
23
28
|
</ToggleGroup.Item>
|
|
24
|
-
<ToggleGroup.Item value="
|
|
29
|
+
<ToggleGroup.Item value="lest">
|
|
25
30
|
{both ? (
|
|
26
31
|
<>
|
|
27
|
-
<
|
|
32
|
+
<EmailOpened /> Leste
|
|
28
33
|
</>
|
|
29
34
|
) : (
|
|
30
|
-
<>{icon ? <
|
|
35
|
+
<>{icon ? <EmailOpened /> : "Leste"}</>
|
|
31
36
|
)}
|
|
32
37
|
</ToggleGroup.Item>
|
|
33
|
-
<ToggleGroup.Item value="
|
|
38
|
+
<ToggleGroup.Item value="sendt">
|
|
34
39
|
{both ? (
|
|
35
40
|
<>
|
|
36
|
-
<
|
|
41
|
+
<Send /> Sendte
|
|
37
42
|
</>
|
|
38
43
|
) : (
|
|
39
|
-
<>{icon ? <
|
|
40
|
-
)}
|
|
41
|
-
</ToggleGroup.Item>
|
|
42
|
-
<ToggleGroup.Item value="fourth">
|
|
43
|
-
{both ? (
|
|
44
|
-
<>
|
|
45
|
-
<System /> Fourth
|
|
46
|
-
</>
|
|
47
|
-
) : (
|
|
48
|
-
<>{icon ? <System /> : "Fourth"}</>
|
|
44
|
+
<>{icon ? <Send /> : "Sendte"}</>
|
|
49
45
|
)}
|
|
50
46
|
</ToggleGroup.Item>
|
|
51
47
|
</>
|
|
52
48
|
);
|
|
53
49
|
|
|
54
|
-
export const
|
|
50
|
+
export const Default = (props) => {
|
|
55
51
|
const [activeValue, setActiveValue] = useState("ulest");
|
|
56
52
|
return (
|
|
57
|
-
<ToggleGroup
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
<ToggleGroup
|
|
54
|
+
size={props?.size}
|
|
55
|
+
value={activeValue}
|
|
56
|
+
onChange={setActiveValue}
|
|
57
|
+
label={props.label ? "Proident minim dolor pariatur." : undefined}
|
|
58
|
+
>
|
|
59
|
+
{Items(!!props?.icon, !!props?.text && props.icon)}
|
|
61
60
|
</ToggleGroup>
|
|
62
61
|
);
|
|
63
62
|
};
|
|
64
63
|
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
Default.args = {
|
|
65
|
+
icon: true,
|
|
66
|
+
text: true,
|
|
67
|
+
label: false,
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const Compositions = () => {
|
|
71
|
+
const [activeValue, setActiveValue] = useState("ulest");
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<div className="colgap">
|
|
75
|
+
<ToggleGroup value={activeValue} onChange={setActiveValue}>
|
|
76
|
+
{Items()}
|
|
77
|
+
</ToggleGroup>
|
|
78
|
+
<ToggleGroup value={activeValue} onChange={setActiveValue}>
|
|
79
|
+
{Items(true, true)}
|
|
80
|
+
</ToggleGroup>
|
|
81
|
+
<ToggleGroup value={activeValue} onChange={setActiveValue}>
|
|
82
|
+
{Items(true)}
|
|
83
|
+
</ToggleGroup>
|
|
84
|
+
</div>
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const Small = () => {
|
|
89
|
+
const [activeValue, setActiveValue] = useState("ulest");
|
|
67
90
|
|
|
68
91
|
return (
|
|
69
|
-
<div>
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<ToggleGroup value={activeValue} onChange={setActiveValue}>
|
|
80
|
-
{Items(true, true)}
|
|
81
|
-
</ToggleGroup>
|
|
82
|
-
</div>
|
|
83
|
-
<h2>ToggleGroup Small</h2>
|
|
84
|
-
<h3>{activeValue}</h3>
|
|
85
|
-
<div style={{ display: "flex", flexDirection: "column", gap: "0.5rem" }}>
|
|
86
|
-
<ToggleGroup size="small" value={activeValue} onChange={setActiveValue}>
|
|
87
|
-
{Items()}
|
|
88
|
-
</ToggleGroup>
|
|
89
|
-
<ToggleGroup size="small" value={activeValue} onChange={setActiveValue}>
|
|
90
|
-
{Items(true)}
|
|
91
|
-
</ToggleGroup>
|
|
92
|
-
<ToggleGroup size="small" value={activeValue} onChange={setActiveValue}>
|
|
93
|
-
{Items(true, true)}
|
|
94
|
-
</ToggleGroup>
|
|
95
|
-
</div>
|
|
96
|
-
<h2>ToggleGroup label</h2>
|
|
97
|
-
<div style={{ display: "flex", flexDirection: "column", gap: "0.5rem" }}>
|
|
98
|
-
<ToggleGroup
|
|
99
|
-
label="Label msg"
|
|
100
|
-
value={activeValue}
|
|
101
|
-
onChange={setActiveValue}
|
|
102
|
-
>
|
|
103
|
-
{Items()}
|
|
104
|
-
</ToggleGroup>
|
|
105
|
-
<ToggleGroup
|
|
106
|
-
label="Label msg"
|
|
107
|
-
value={activeValue}
|
|
108
|
-
onChange={setActiveValue}
|
|
109
|
-
aria-describedby="demo-id"
|
|
110
|
-
>
|
|
111
|
-
{Items()}
|
|
112
|
-
</ToggleGroup>
|
|
113
|
-
</div>
|
|
114
|
-
<div style={{ display: "flex", flexDirection: "column", gap: "0.5rem" }}>
|
|
115
|
-
<h2>Uncontrolled</h2>
|
|
116
|
-
<ToggleGroup onChange={setActiveValue} defaultValue="second">
|
|
117
|
-
{Items()}
|
|
118
|
-
</ToggleGroup>
|
|
119
|
-
</div>
|
|
92
|
+
<div className="colgap">
|
|
93
|
+
<ToggleGroup size="small" value={activeValue} onChange={setActiveValue}>
|
|
94
|
+
{Items()}
|
|
95
|
+
</ToggleGroup>
|
|
96
|
+
<ToggleGroup size="small" value={activeValue} onChange={setActiveValue}>
|
|
97
|
+
{Items(true, true)}
|
|
98
|
+
</ToggleGroup>
|
|
99
|
+
<ToggleGroup size="small" value={activeValue} onChange={setActiveValue}>
|
|
100
|
+
{Items(true)}
|
|
101
|
+
</ToggleGroup>
|
|
120
102
|
</div>
|
|
121
103
|
);
|
|
122
104
|
};
|
|
@@ -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
|
-
}
|