@navikt/ds-react 5.18.0 → 5.18.1

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.
Files changed (38) hide show
  1. package/cjs/panel/Panel.js +6 -16
  2. package/esm/panel/Panel.d.ts +9 -16
  3. package/esm/panel/Panel.js +6 -16
  4. package/esm/panel/Panel.js.map +1 -1
  5. package/package.json +3 -3
  6. package/src/accordion/accordion.stories.tsx +1 -1
  7. package/src/alert/alert.stories.tsx +202 -113
  8. package/src/button/button.stories.tsx +88 -185
  9. package/src/date/datepicker/datepicker.stories.tsx +6 -2
  10. package/src/date/monthpicker/monthpicker.stories.tsx +2 -1
  11. package/src/dropdown/dropdown.stories.tsx +1 -1
  12. package/src/form/error-summary/error-summary.stories.tsx +1 -1
  13. package/src/form/stories/confirmation-panel.stories.tsx +1 -1
  14. package/src/help-text/help-text.stories.tsx +2 -1
  15. package/src/internal-header/header.stories.tsx +2 -1
  16. package/src/layout/bleed/Bleed.stories.tsx +2 -1
  17. package/src/layout/box/Box.stories.tsx +2 -1
  18. package/src/layout/sidemal-test/navno-sidemal.stories.tsx +5 -1
  19. package/src/link/stories/link.stories.tsx +20 -22
  20. package/src/link-panel/link-panel.stories.tsx +1 -1
  21. package/src/list/list.stories.tsx +2 -1
  22. package/src/loader/loader.stories.tsx +1 -1
  23. package/src/modal/modal.stories.tsx +3 -1
  24. package/src/panel/Panel.tsx +9 -16
  25. package/src/stepper/stepper.stories.tsx +1 -1
  26. package/src/table/stories/table-async.stories.tsx +4 -2
  27. package/src/table/stories/table-expandable.stories.tsx +4 -2
  28. package/src/table/stories/table.stories.tsx +4 -1
  29. package/src/table/stories/tests/table.stories.tsx +1 -1
  30. package/src/tooltip/tooltip.stories.tsx +4 -1
  31. package/src/typography/stories/bodylong.stories.tsx +2 -2
  32. package/src/typography/stories/bodyshort.stories.tsx +2 -2
  33. package/src/typography/stories/detail.stories.tsx +2 -2
  34. package/src/typography/stories/error-message.stories.tsx +2 -2
  35. package/src/typography/stories/heading.stories.tsx +2 -2
  36. package/src/typography/stories/label.stories.tsx +2 -2
  37. package/src/panel/panel.stories.tsx +0 -63
  38. package/src/typography/stories/ingress.stories.tsx +0 -50
@@ -41,23 +41,13 @@ exports.Panel = void 0;
41
41
  const clsx_1 = __importDefault(require("clsx"));
42
42
  const react_1 = __importStar(require("react"));
43
43
  /**
44
- * A component that displays a bordered panel with heading and body.
45
- *
46
- * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/panel)
47
- * @see 🏷️ {@link PanelProps}
48
- * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
49
- *
50
- * @example
51
- * ```jsx
52
- * <Panel border>
53
- * <Heading spacing level="2" size="large">
54
- * Søk om økonomisk sosialhjelp
55
- * </Heading>
56
- * <BodyLong>
57
- * Du kan søke om det du trenger økonomisk støtte til.
58
- * </BodyLong>
59
- * </Panel>
44
+ * @deprecated
45
+ * Use Box with padding and border instead
60
46
  * ```
47
+ * <Box padding="4" borderRadius="small" />
48
+ * <Box padding="4" borderWidth="1" borderRadius="small" />
49
+ * ```
50
+ * Component will be removed in a future major release
61
51
  */
62
52
  exports.Panel = (0, react_1.forwardRef)((_a, ref) => {
63
53
  var { children, className, border = false, as: Component = "div" } = _a, rest = __rest(_a, ["children", "className", "border", "as"]);
@@ -1,5 +1,8 @@
1
1
  import React from "react";
2
2
  import { OverridableComponent } from "../util/types";
3
+ /**
4
+ * @deprecated Use Box with padding and border instead
5
+ */
3
6
  export interface PanelProps extends React.HTMLAttributes<HTMLElement> {
4
7
  /**
5
8
  * Panel content
@@ -13,23 +16,13 @@ export interface PanelProps extends React.HTMLAttributes<HTMLElement> {
13
16
  }
14
17
  export type PanelType = OverridableComponent<PanelProps, HTMLElement>;
15
18
  /**
16
- * A component that displays a bordered panel with heading and body.
17
- *
18
- * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/panel)
19
- * @see 🏷️ {@link PanelProps}
20
- * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
21
- *
22
- * @example
23
- * ```jsx
24
- * <Panel border>
25
- * <Heading spacing level="2" size="large">
26
- * Søk om økonomisk sosialhjelp
27
- * </Heading>
28
- * <BodyLong>
29
- * Du kan søke om det du trenger økonomisk støtte til.
30
- * </BodyLong>
31
- * </Panel>
19
+ * @deprecated
20
+ * Use Box with padding and border instead
21
+ * ```
22
+ * <Box padding="4" borderRadius="small" />
23
+ * <Box padding="4" borderWidth="1" borderRadius="small" />
32
24
  * ```
25
+ * Component will be removed in a future major release
33
26
  */
34
27
  export declare const Panel: PanelType;
35
28
  export default Panel;
@@ -12,23 +12,13 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import cl from "clsx";
13
13
  import React, { forwardRef } from "react";
14
14
  /**
15
- * A component that displays a bordered panel with heading and body.
16
- *
17
- * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/panel)
18
- * @see 🏷️ {@link PanelProps}
19
- * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
20
- *
21
- * @example
22
- * ```jsx
23
- * <Panel border>
24
- * <Heading spacing level="2" size="large">
25
- * Søk om økonomisk sosialhjelp
26
- * </Heading>
27
- * <BodyLong>
28
- * Du kan søke om det du trenger økonomisk støtte til.
29
- * </BodyLong>
30
- * </Panel>
15
+ * @deprecated
16
+ * Use Box with padding and border instead
31
17
  * ```
18
+ * <Box padding="4" borderRadius="small" />
19
+ * <Box padding="4" borderWidth="1" borderRadius="small" />
20
+ * ```
21
+ * Component will be removed in a future major release
32
22
  */
33
23
  export const Panel = forwardRef((_a, ref) => {
34
24
  var { children, className, border = false, as: Component = "div" } = _a, rest = __rest(_a, ["children", "className", "border", "as"]);
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.js","sourceRoot":"","sources":["../../src/panel/Panel.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAiB1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,KAAK,GAAc,UAAU,CACxC,CACE,EAAuE,EACvE,GAAG,EACH,EAAE;QAFF,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE,EAAE,SAAS,GAAG,KAAK,OAAW,EAAN,IAAI,cAArE,yCAAuE,CAAF;IAGrE,OAAO,CACL,oBAAC,SAAS,kBACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE;YACtC,qBAAqB,EAAE,MAAM;SAC9B,CAAC,IACE,IAAI,GAEP,QAAQ,CACC,CACb,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Panel.js","sourceRoot":"","sources":["../../src/panel/Panel.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAoB1C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,KAAK,GAAc,UAAU,CACxC,CACE,EAAuE,EACvE,GAAG,EACH,EAAE;QAFF,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE,EAAE,SAAS,GAAG,KAAK,OAAW,EAAN,IAAI,cAArE,yCAAuE,CAAF;IAGrE,OAAO,CACL,oBAAC,SAAS,kBACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE;YACtC,qBAAqB,EAAE,MAAM;SAC9B,CAAC,IACE,IAAI,GAEP,QAAQ,CACC,CACb,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-react",
3
- "version": "5.18.0",
3
+ "version": "5.18.1",
4
4
  "description": "Aksel react-components for NAV designsystem",
5
5
  "author": "Aksel | NAV designsystem team",
6
6
  "license": "MIT",
@@ -38,8 +38,8 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@floating-ui/react": "0.25.4",
41
- "@navikt/aksel-icons": "^5.18.0",
42
- "@navikt/ds-tokens": "^5.18.0",
41
+ "@navikt/aksel-icons": "^5.18.1",
42
+ "@navikt/ds-tokens": "^5.18.1",
43
43
  "@radix-ui/react-tabs": "1.0.0",
44
44
  "@radix-ui/react-toggle-group": "1.0.0",
45
45
  "clsx": "^1.2.1",
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from "react";
2
2
  import { Accordion, AccordionProps } from ".";
3
- import { Table } from "..";
3
+ import { Table } from "../table";
4
4
  import AccordionContent from "./AccordionContent";
5
5
  import AccordionHeader from "./AccordionHeader";
6
6
  import AccordionItem from "./AccordionItem";
@@ -1,12 +1,16 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { expect, userEvent, within } from "@storybook/test";
3
2
  import React from "react";
4
- import { Alert, AlertProps } from ".";
5
- import { BodyLong, Heading as DsHeading, Link } from "..";
3
+ import { VStack } from "../layout/stack";
4
+ import { Link } from "../link";
5
+ import { BodyLong, Heading as DsHeading } from "../typography";
6
+ import Alert, { AlertProps } from "./Alert";
6
7
 
7
8
  const meta: Meta<typeof Alert> = {
8
9
  title: "ds-react/Alert",
9
10
  component: Alert,
11
+ parameters: {
12
+ chromatic: { disable: true },
13
+ },
10
14
  };
11
15
 
12
16
  export default meta;
@@ -20,12 +24,13 @@ const variants: AlertProps["variant"][] = [
20
24
  "success",
21
25
  ];
22
26
 
23
- export const Default: Story = {
27
+ export const Controls: Story = {
24
28
  render: (props) => <Alert {...props} />,
25
29
 
26
30
  args: {
27
31
  children: "Id elit esse enim reprehenderit enim nisi veniam nostrud.",
28
32
  fullWidth: false,
33
+ inline: false,
29
34
  variant: "info",
30
35
  size: "medium",
31
36
  closeButton: false,
@@ -42,43 +47,18 @@ export const Default: Story = {
42
47
  },
43
48
  };
44
49
 
45
- export const Small: Story = {
46
- render: (props) => {
47
- return (
48
- <div className="colgap">
49
- {variants.map((variant, i) => (
50
- <Alert
51
- key={variant}
52
- variant={variant}
53
- size="small"
54
- closeButton={props.closeButton}
55
- >
56
- {new Array(i + 1).fill(
57
- "Id elit esse enim reprehenderit enim nisi veniam nostrud.",
58
- )}
59
- </Alert>
60
- ))}
61
- </div>
62
- );
63
- },
64
-
65
- args: {
66
- closeButton: false,
67
- },
68
- };
69
-
70
- export const FullWidth = () => {
50
+ export const Variants = () => {
71
51
  return (
72
52
  <div className="colgap">
73
53
  {variants.map((variant, i) => (
74
- <Alert key={variant} variant={variant} fullWidth>
54
+ <Alert key={variant} variant={variant}>
75
55
  {new Array(i + 1).fill(
76
56
  "Id elit esse enim reprehenderit enim nisi veniam nostrud.",
77
57
  )}
78
58
  </Alert>
79
59
  ))}
80
60
  {variants.map((variant, i) => (
81
- <Alert key={variant} variant={variant} fullWidth size="small">
61
+ <Alert key={variant} variant={variant} size="small">
82
62
  {new Array(i + 1).fill(
83
63
  "Id elit esse enim reprehenderit enim nisi veniam nostrud.",
84
64
  )}
@@ -88,24 +68,42 @@ export const FullWidth = () => {
88
68
  );
89
69
  };
90
70
 
71
+ export const FullWidth = () => {
72
+ return (
73
+ <VStack gap="4">
74
+ <Alert variant="info" fullWidth>
75
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
76
+ </Alert>
77
+ <Alert variant="info" fullWidth size="small">
78
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
79
+ </Alert>
80
+ </VStack>
81
+ );
82
+ };
83
+
91
84
  export const Inline = () => {
92
85
  return (
93
- <div className="colgap">
94
- {variants.map((variant, i) => (
95
- <Alert key={variant} variant={variant} inline>
96
- {new Array(i + 1).fill(
97
- "Id elit esse enim reprehenderit enim nisi veniam nostrud.",
98
- )}
99
- </Alert>
100
- ))}
101
- {variants.map((variant, i) => (
102
- <Alert key={variant} variant={variant} inline size="small">
103
- {new Array(i + 1).fill(
104
- "Id elit esse enim reprehenderit enim nisi veniam nostrud.",
105
- )}
106
- </Alert>
107
- ))}
108
- </div>
86
+ <VStack gap="4">
87
+ <h2>Inline</h2>
88
+ <Alert variant="info" inline>
89
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
90
+ </Alert>
91
+ <Alert variant="info" inline>
92
+ Id elit esse enim reprehenderit enim nisi veniam nostrud. Id elit esse
93
+ enim reprehenderit enim nisi veniam nostrud. Id elit esse enim
94
+ reprehenderit enim nisi veniam nostrud. Id elit esse enim reprehenderit
95
+ enim nisi veniam nostrud.
96
+ </Alert>
97
+ <Alert variant="info" size="small" inline>
98
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
99
+ </Alert>
100
+ <Alert variant="info" size="small" inline>
101
+ Id elit esse enim reprehenderit enim nisi veniam nostrud. Id elit esse
102
+ enim reprehenderit enim nisi veniam nostrud. Id elit esse enim
103
+ reprehenderit enim nisi veniam nostrud. Id elit esse enim reprehenderit
104
+ enim nisi veniam nostrud.
105
+ </Alert>
106
+ </VStack>
109
107
  );
110
108
  };
111
109
 
@@ -136,82 +134,173 @@ export const Heading = () => {
136
134
  );
137
135
  };
138
136
 
139
- export const Links = () => {
140
- return (
141
- <div className="colgap">
142
- {variants.map((variant) => (
143
- <Alert key={variant} variant={variant}>
144
- <Link href="#">Id elit esse enim reprehenderit</Link>
145
- </Alert>
146
- ))}
147
- </div>
148
- );
149
- };
150
-
151
- const AlertWithCloseButton = ({
152
- children,
153
- size,
154
- }: {
155
- size?: "medium" | "small";
156
- children?: React.ReactNode;
157
- }) => {
158
- const [show, setShow] = React.useState(true);
159
-
160
- return show ? (
161
- <Alert
162
- variant="warning"
163
- size={size}
164
- closeButton
165
- onClose={() => setShow(false)}
166
- >
167
- {children || "Content"}
168
- </Alert>
169
- ) : null;
170
- };
171
-
172
- export const WithCloseButton: Story = {
137
+ export const CloseButton: Story = {
173
138
  render: () => {
174
139
  return (
175
- <div className="colgap">
176
- <AlertWithCloseButton />
177
- <AlertWithCloseButton>
178
- <BodyLong>Ullamco ullamco laborum et commodo sint culpa</BodyLong>
179
- </AlertWithCloseButton>
180
- <AlertWithCloseButton>
181
- <DsHeading spacing size="small" level="3">
182
- Aliquip duis est in commodo pariatur
140
+ <VStack gap="4">
141
+ <h2>CloseButton</h2>
142
+ <Alert variant="info" closeButton>
143
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
144
+ </Alert>
145
+ <Alert variant="info" closeButton>
146
+ Id elit esse enim reprehenderit enim nisi veniam nostrud. Id elit esse
147
+ enim reprehenderit enim nisi veniam nostrud. Id elit esse enim
148
+ reprehenderit enim nisi veniam nostrud. Id elit esse enim
149
+ reprehenderit enim nisi veniam nostrud.
150
+ </Alert>
151
+ <Alert size="small" variant="info" closeButton>
152
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
153
+ </Alert>
154
+ <Alert size="small" variant="info" closeButton>
155
+ Id elit esse enim reprehenderit enim nisi veniam nostrud. Id elit esse
156
+ enim reprehenderit enim nisi veniam nostrud. Id elit esse enim
157
+ reprehenderit enim nisi veniam nostrud. Id elit esse enim
158
+ reprehenderit enim nisi veniam nostrud.
159
+ </Alert>
160
+ <Alert variant="info" closeButton>
161
+ <DsHeading size="small" level="3">
162
+ Id elit esse enim reprehenderit
183
163
  </DsHeading>
184
164
  <BodyLong>
185
- Ullamco ullamco laborum et commodo sint culpa cupidatat culpa qui
186
- laboris ex. Labore ex occaecat proident qui qui fugiat magna. Fugiat
187
- sint commodo consequat eu aute.
165
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
188
166
  </BodyLong>
189
- </AlertWithCloseButton>
190
- <AlertWithCloseButton size="small">
191
- <BodyLong>Ullamco ullamco laborum et commodo</BodyLong>
192
- </AlertWithCloseButton>
193
- <AlertWithCloseButton size="small">
194
- <DsHeading spacing size="small" level="3">
195
- Aliquip duis est in commodo pariatur
167
+ </Alert>
168
+ <Alert variant="info" closeButton size="small">
169
+ <DsHeading size="xsmall" level="3">
170
+ Id elit esse enim reprehenderit
196
171
  </DsHeading>
197
172
  <BodyLong>
198
- Ullamco ullamco laborum et commodo sint culpa cupidatat culpa qui
199
- laboris ex. Labore ex occaecat proident qui qui fugiat magna. Fugiat
200
- sint commodo consequat eu aute.
173
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
201
174
  </BodyLong>
202
- </AlertWithCloseButton>
203
- </div>
175
+ </Alert>
176
+ </VStack>
204
177
  );
205
178
  },
206
- play: async ({ canvasElement, step }) => {
207
- const canvas = within(canvasElement);
208
- const buttons = canvas.getAllByTitle("Lukk Alert");
179
+ };
209
180
 
210
- await step("click button", async () => {
211
- await userEvent.click(buttons[0]);
212
- });
181
+ export const Chromatic: Story = {
182
+ render: () => (
183
+ <VStack gap="6">
184
+ <VStack gap="2">
185
+ <h2>Variant</h2>
186
+ {variants.map((variant, i) => (
187
+ <Alert key={variant} variant={variant}>
188
+ {new Array(i + 1).fill(
189
+ "Id elit esse enim reprehenderit enim nisi veniam nostrud.",
190
+ )}
191
+ </Alert>
192
+ ))}
193
+ </VStack>
194
+ <VStack gap="2">
195
+ <h2>Small</h2>
196
+ <Alert variant="info" size="small">
197
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
198
+ </Alert>
199
+ <Alert variant="info" size="small">
200
+ Id elit esse enim reprehenderit enim nisi veniam nostrud. Id elit esse
201
+ enim reprehenderit enim nisi veniam nostrud. Id elit esse enim
202
+ reprehenderit enim nisi veniam nostrud. Id elit esse enim
203
+ reprehenderit enim nisi veniam nostrud.
204
+ </Alert>
205
+ </VStack>
206
+ <VStack gap="2">
207
+ <h2>FullWidth</h2>
208
+ <Alert variant="info" fullWidth>
209
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
210
+ </Alert>
211
+ <Alert variant="info" size="small" fullWidth>
212
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
213
+ </Alert>
214
+ </VStack>
215
+ <VStack gap="2">
216
+ <h2>Inline</h2>
217
+ <Alert variant="info" inline>
218
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
219
+ </Alert>
220
+ <Alert variant="info" inline>
221
+ Id elit esse enim reprehenderit enim nisi veniam nostrud. Id elit esse
222
+ enim reprehenderit enim nisi veniam nostrud. Id elit esse enim
223
+ reprehenderit enim nisi veniam nostrud. Id elit esse enim
224
+ reprehenderit enim nisi veniam nostrud.
225
+ </Alert>
226
+ <Alert variant="info" size="small" inline>
227
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
228
+ </Alert>
229
+ <Alert variant="info" size="small" inline>
230
+ Id elit esse enim reprehenderit enim nisi veniam nostrud. Id elit esse
231
+ enim reprehenderit enim nisi veniam nostrud. Id elit esse enim
232
+ reprehenderit enim nisi veniam nostrud. Id elit esse enim
233
+ reprehenderit enim nisi veniam nostrud.
234
+ </Alert>
235
+ </VStack>
236
+ <VStack gap="2">
237
+ <h2>Heading</h2>
238
+ <Alert variant="info">
239
+ <DsHeading size="small" level="3">
240
+ Id elit esse enim reprehenderit
241
+ </DsHeading>
242
+ <BodyLong>
243
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
244
+ </BodyLong>
245
+ </Alert>
246
+ <Alert variant="info" size="small">
247
+ <DsHeading size="xsmall" level="3">
248
+ Id elit esse enim reprehenderit
249
+ </DsHeading>
250
+ <BodyLong size="small">
251
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
252
+ </BodyLong>
253
+ </Alert>
254
+ </VStack>
255
+ <VStack gap="2">
256
+ <h2>CloseButton</h2>
257
+ <Alert variant="info" closeButton>
258
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
259
+ </Alert>
260
+ <Alert variant="info" closeButton>
261
+ Id elit esse enim reprehenderit enim nisi veniam nostrud. Id elit esse
262
+ enim reprehenderit enim nisi veniam nostrud. Id elit esse enim
263
+ reprehenderit enim nisi veniam nostrud. Id elit esse enim
264
+ reprehenderit enim nisi veniam nostrud.
265
+ </Alert>
266
+ <Alert size="small" variant="info" closeButton>
267
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
268
+ </Alert>
269
+ <Alert size="small" variant="info" closeButton>
270
+ Id elit esse enim reprehenderit enim nisi veniam nostrud. Id elit esse
271
+ enim reprehenderit enim nisi veniam nostrud. Id elit esse enim
272
+ reprehenderit enim nisi veniam nostrud. Id elit esse enim
273
+ reprehenderit enim nisi veniam nostrud.
274
+ </Alert>
275
+ <Alert variant="info" closeButton>
276
+ <DsHeading size="small" level="3">
277
+ Id elit esse enim reprehenderit
278
+ </DsHeading>
279
+ <BodyLong>
280
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
281
+ </BodyLong>
282
+ </Alert>
283
+ <Alert variant="info" size="small" closeButton>
284
+ <DsHeading size="xsmall" level="3">
285
+ Id elit esse enim reprehenderit
286
+ </DsHeading>
287
+ <BodyLong size="small">
288
+ Id elit esse enim reprehenderit enim nisi veniam nostrud.
289
+ </BodyLong>
290
+ </Alert>
291
+ </VStack>
213
292
 
214
- const buttonsAfter = canvas.getAllByTitle("Lukk Alert");
215
- expect(buttonsAfter.length).toBe(4);
293
+ <VStack gap="2">
294
+ <h2>Links</h2>
295
+ {variants.map((variant) => (
296
+ <Alert key={variant} variant={variant}>
297
+ <Link href="#">Id elit esse enim reprehenderit</Link>
298
+ </Alert>
299
+ ))}
300
+ </VStack>
301
+ </VStack>
302
+ ),
303
+ parameters: {
304
+ chromatic: { disable: false },
216
305
  },
217
306
  };