@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
@@ -1,15 +1,21 @@
1
+ import { StoryObj } from "@storybook/react";
1
2
  import React from "react";
2
- import { StarIcon } from "@navikt/aksel-icons";
3
+ import { StarIcon as BaseStarIcon } from "@navikt/aksel-icons";
4
+ import { HStack, VStack } from "../layout/stack";
3
5
  import { Button } from "./index";
4
6
 
5
7
  export default {
6
8
  title: "ds-react/Button",
7
9
  component: Button,
8
10
  parameters: {
9
- chromatic: { delay: 600 },
11
+ chromatic: { disable: true },
10
12
  },
11
13
  };
12
14
 
15
+ type Story = StoryObj<typeof Button>;
16
+
17
+ const StarIcon = () => <BaseStarIcon aria-hidden />;
18
+
13
19
  const variants: (
14
20
  | "primary"
15
21
  | "secondary"
@@ -28,17 +34,7 @@ const variants: (
28
34
  "tertiary-neutral",
29
35
  ];
30
36
 
31
- const varSwitch = {
32
- primary: "Primary",
33
- secondary: "Secondary",
34
- tertiary: "Tertiary",
35
- danger: "Danger",
36
- "primary-neutral": "Primary",
37
- "secondary-neutral": "Secondary",
38
- "tertiary-neutral": "Tertiary",
39
- };
40
-
41
- export const Default = {
37
+ export const Controls: Story = {
42
38
  render: (props) => {
43
39
  return (
44
40
  <Button
@@ -57,7 +53,7 @@ export const Default = {
57
53
  icon: false,
58
54
  loading: false,
59
55
  iconPosition: "left",
60
- children: "Knapp",
56
+ children: "Button",
61
57
  variant: "primary",
62
58
  size: "medium",
63
59
  },
@@ -91,192 +87,99 @@ export const Default = {
91
87
  },
92
88
  };
93
89
 
94
- export const Small = () => (
95
- <div className="rowgap">
96
- {variants.map((variant) => (
97
- <Button key={variant} variant={variant} size="small">
98
- {varSwitch[variant]}
99
- </Button>
100
- ))}
101
- </div>
102
- );
90
+ function ButtonGrid(props: any) {
91
+ return (
92
+ <VStack gap="2">
93
+ {variants.map((variant) => (
94
+ <HStack gap="2" key={variant}>
95
+ <Button variant={variant} {...props}>
96
+ Button
97
+ </Button>
98
+ <Button variant={variant} {...props} icon={<StarIcon />}>
99
+ Button
100
+ </Button>
101
+ <Button
102
+ variant={variant}
103
+ {...props}
104
+ icon={<StarIcon />}
105
+ iconPosition="right"
106
+ >
107
+ Button
108
+ </Button>
109
+ <Button variant={variant} {...props} icon={<StarIcon />} />
110
+ </HStack>
111
+ ))}
112
+ </VStack>
113
+ );
114
+ }
103
115
 
104
- export const XSmall = () => (
105
- <div className="rowgap">
106
- {variants.map((variant) => (
107
- <Button key={variant} variant={variant} size="xsmall">
108
- {varSwitch[variant]}
109
- </Button>
110
- ))}
111
- </div>
112
- );
116
+ export const Medium: Story = {
117
+ render: () => <ButtonGrid size="medium" />,
118
+ };
113
119
 
114
- export const Link = () => (
115
- <div className="rowgap">
116
- {variants.map((variant) => (
117
- <Button key={variant} variant={variant} as="a" href="#thecakeisalie">
118
- {varSwitch[variant]}
119
- </Button>
120
- ))}
121
- </div>
122
- );
120
+ export const Small: Story = {
121
+ render: () => <ButtonGrid size="small" />,
122
+ };
123
123
 
124
- export const Loading = {
124
+ export const XSmall: Story = {
125
+ render: () => <ButtonGrid size="xsmall" />,
126
+ };
127
+
128
+ export const AsLink: Story = {
125
129
  render: () => (
126
- <div className="colgap chromatic-ignore">
127
- <div className="rowgap">
128
- {variants.map((variant) => (
129
- <Button key={variant} variant={variant} loading>
130
- {varSwitch[variant]}
131
- </Button>
132
- ))}
133
- </div>
134
- <div className="rowgap">
135
- {variants.map((variant) => (
136
- <Button key={variant} variant={variant} loading size="small">
137
- {varSwitch[variant]}
138
- </Button>
139
- ))}
140
- </div>
141
- <div className="rowgap">
142
- {variants.map((variant) => (
143
- <Button key={variant} variant={variant} loading size="xsmall">
144
- {varSwitch[variant]}
145
- </Button>
146
- ))}
147
- </div>
148
- </div>
130
+ <VStack gap="4">
131
+ <Button href="#" as="a">
132
+ Button as a-tag
133
+ </Button>
134
+ <Button href="#" as="a" disabled>
135
+ Disabled Button as a-tag
136
+ </Button>
137
+ </VStack>
149
138
  ),
139
+ };
150
140
 
151
- parameters: {
152
- chromatic: { disableSnapshot: true },
153
- },
141
+ export const Loading: Story = {
142
+ render: () => <ButtonGrid loading />,
154
143
  };
155
144
 
156
- export const Icon = () => (
157
- <div className="colgap ">
158
- <div className="rowgap">
159
- {variants.map((variant) => (
160
- <Button
161
- key={variant}
162
- variant={variant}
163
- icon={<StarIcon title="Stjerne" />}
164
- />
165
- ))}
166
- </div>
167
- <div className="rowgap">
168
- {variants.map((variant) => (
169
- <Button
170
- key={variant}
171
- variant={variant}
172
- size="small"
173
- icon={<StarIcon title="Stjerne" />}
174
- />
175
- ))}
176
- </div>
177
- <div className="rowgap">
178
- {variants.map((variant) => (
179
- <Button
180
- key={variant}
181
- variant={variant}
182
- size="xsmall"
183
- icon={<StarIcon title="Stjerne" />}
184
- />
185
- ))}
186
- </div>
187
- </div>
188
- );
145
+ export const LoadingAsLink: Story = {
146
+ render: () => <ButtonGrid loading href="#" as="a" />,
147
+ };
189
148
 
190
- export const IconWText = () => (
191
- <div className="colgap">
192
- <div className="rowgap">
193
- {variants.map((variant, i) => (
194
- <Button
195
- key={variant}
196
- variant={variant}
197
- icon={<StarIcon title="Stjerne" />}
198
- iconPosition={i % 2 ? "left" : "right"}
199
- >
200
- {varSwitch[variant]}
201
- </Button>
202
- ))}
203
- </div>
204
- <div className="rowgap">
205
- {variants.map((variant, i) => (
206
- <Button
207
- key={variant}
208
- variant={variant}
209
- size="small"
210
- icon={<StarIcon title="Stjerne" />}
211
- iconPosition={i % 2 ? "left" : "right"}
212
- >
213
- {varSwitch[variant]}
214
- </Button>
215
- ))}
216
- </div>
217
- <div className="rowgap">
218
- {variants.map((variant, i) => (
219
- <Button
220
- key={variant}
221
- variant={variant}
222
- size="xsmall"
223
- icon={<StarIcon title="Stjerne" />}
224
- iconPosition={i % 2 ? "left" : "right"}
225
- >
226
- {varSwitch[variant]}
227
- </Button>
228
- ))}
229
- </div>
230
- </div>
231
- );
149
+ export const Disabled: Story = {
150
+ render: () => <ButtonGrid disabled />,
151
+ };
232
152
 
233
- export const Disabled = () => (
234
- <div className="colgap">
235
- <div className="rowgap">
236
- {variants.map((variant) => (
237
- <Button key={variant} variant={variant} disabled>
238
- {varSwitch[variant]}
239
- </Button>
240
- ))}
241
- </div>
242
- <div className="rowgap">
243
- {variants.map((variant) => (
244
- <Button key={variant} variant={variant} disabled as="a" href="#">
245
- {varSwitch[variant]}
246
- </Button>
247
- ))}
248
- </div>
249
- </div>
250
- );
153
+ export const DisabledAsLink: Story = {
154
+ render: () => <ButtonGrid disabled href="#" as="a" />,
155
+ };
251
156
 
252
- export const LoadingWithAs = {
157
+ export const Chromatic: Story = {
253
158
  render: () => (
254
- <div className="colgap chromatic-ignore">
255
- <div className="rowgap">
256
- {variants.map((variant) => (
257
- <Button key={variant} variant={variant} loading size="small">
258
- {varSwitch[variant]}
259
- </Button>
260
- ))}
159
+ <VStack gap="6" align="center">
160
+ <div>
161
+ <h2>Medium</h2>
162
+ <ButtonGrid size="medium" />
261
163
  </div>
262
- <div className="rowgap">
263
- {variants.map((variant) => (
264
- <Button
265
- key={variant}
266
- variant={variant}
267
- loading
268
- size="small"
269
- as="a"
270
- href="#"
271
- >
272
- {varSwitch[variant]}
273
- </Button>
274
- ))}
164
+ <div>
165
+ <h2>Small</h2>
166
+ <ButtonGrid size="small" />
167
+ </div>
168
+ <div>
169
+ <h2>XSmall</h2>
170
+ <ButtonGrid size="xsmall" />
275
171
  </div>
276
- </div>
172
+ <div>
173
+ <h2>As Link</h2>
174
+ <ButtonGrid as="a" href="#" />
175
+ </div>
176
+ <div>
177
+ <h2>Disabled</h2>
178
+ <ButtonGrid disabled />
179
+ </div>
180
+ </VStack>
277
181
  ),
278
-
279
182
  parameters: {
280
- chromatic: { disableSnapshot: true },
183
+ chromatic: { disable: false },
281
184
  },
282
185
  };
@@ -2,8 +2,12 @@
2
2
  import { Meta, StoryObj } from "@storybook/react";
3
3
  import isSameDay from "date-fns/isSameDay";
4
4
  import React, { useId, useState } from "react";
5
- import { useDatepicker, useRangeDatepicker } from "..";
6
- import { BodyLong, Button, HGrid, Modal, VStack } from "../..";
5
+ import { Button } from "../../button";
6
+ import { HGrid } from "../../layout/grid";
7
+ import { VStack } from "../../layout/stack";
8
+ import Modal from "../../modal/Modal";
9
+ import { BodyLong } from "../../typography";
10
+ import { useDatepicker, useRangeDatepicker } from "../hooks";
7
11
  import DatePicker, { DatePickerProps } from "./DatePicker";
8
12
 
9
13
  const disabledDays = [
@@ -1,8 +1,9 @@
1
1
  import { Meta, StoryFn } from "@storybook/react";
2
2
  import setYear from "date-fns/setYear";
3
3
  import React, { useId, useState } from "react";
4
- import { Button, DateInputProps } from "../..";
4
+ import { Button } from "../../button";
5
5
  import { useMonthpicker } from "../hooks";
6
+ import { DateInputProps } from "../parts/DateInput";
6
7
  import MonthPicker from "./MonthPicker";
7
8
  import { MonthPickerProps } from "./types";
8
9
 
@@ -1,7 +1,7 @@
1
1
  import { Meta } from "@storybook/react";
2
2
  import React, { useState } from "react";
3
- import { Dropdown } from "..";
4
3
  import { Button } from "../button";
4
+ import Dropdown from "./Dropdown";
5
5
 
6
6
  export default {
7
7
  title: "ds-react/Dropdown",
@@ -1,6 +1,6 @@
1
1
  import { Meta } from "@storybook/react";
2
2
  import React from "react";
3
- import { ErrorSummary } from "..";
3
+ import { ErrorSummary } from "./ErrorSummary";
4
4
 
5
5
  export default {
6
6
  title: "ds-react/Errorsummary",
@@ -1,6 +1,6 @@
1
1
  import { Meta } from "@storybook/react";
2
2
  import React, { useState } from "react";
3
- import { Link } from "../..";
3
+ import { Link } from "../../link";
4
4
  import { ConfirmationPanel } from "../index";
5
5
 
6
6
  export default {
@@ -1,6 +1,7 @@
1
1
  import { Meta, StoryFn, StoryObj } from "@storybook/react";
2
2
  import React, { useEffect, useRef } from "react";
3
- import { BodyLong, Heading, HelpText } from "..";
3
+ import { BodyLong, Heading } from "../typography";
4
+ import HelpText from "./HelpText";
4
5
 
5
6
  const meta: Meta<typeof HelpText> = {
6
7
  title: "ds-react/HelpText",
@@ -6,7 +6,8 @@ import {
6
6
  MenuGridIcon,
7
7
  } from "@navikt/aksel-icons";
8
8
  import { BodyLong, BodyShort, Detail } from "@navikt/ds-react";
9
- import { Dropdown, InternalHeader } from "..";
9
+ import { Dropdown } from "../dropdown";
10
+ import InternalHeader from "./InternalHeader";
10
11
 
11
12
  export default {
12
13
  title: "ds-react/InternalHeader",
@@ -1,7 +1,8 @@
1
1
  import type { Meta } from "@storybook/react";
2
2
  import React from "react";
3
- import { Box, HStack, VStack } from "../..";
4
3
  import { BodyLong } from "../../typography";
4
+ import { Box } from "../box";
5
+ import { HStack, VStack } from "../stack";
5
6
  import { Bleed } from "./Bleed";
6
7
 
7
8
  export default {
@@ -1,8 +1,9 @@
1
1
  import type { Meta } from "@storybook/react";
2
2
  import React, { ReactNode } from "react";
3
3
  import { ChevronRightIcon } from "@navikt/aksel-icons";
4
- import { HGrid, HStack, VStack } from "../..";
5
4
  import { BodyLong, Detail, Heading } from "../../typography";
5
+ import { HGrid } from "../grid";
6
+ import { HStack, VStack } from "../stack";
6
7
  import { BackgroundToken, BorderRadiiToken } from "../utilities/types";
7
8
  import { Box } from "./Box";
8
9
 
@@ -1,6 +1,9 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
2
  import React from "react";
3
- import { Box, HGrid, Hide, Show, VStack } from "../..";
3
+ import { Box } from "../box";
4
+ import { HGrid } from "../grid";
5
+ import { Hide, Show } from "../responsive";
6
+ import { VStack } from "../stack";
4
7
  import { Content } from "./Content";
5
8
  import { FilterCard } from "./Filter";
6
9
  import { Header } from "./Header";
@@ -13,6 +16,7 @@ const meta = {
13
16
  title: "kitchen sink/navno-sidemal",
14
17
  parameters: {
15
18
  layout: "fullscreen",
19
+ chromatic: { disable: true },
16
20
  },
17
21
  } satisfies Meta;
18
22
 
@@ -1,11 +1,9 @@
1
1
  import React from "react";
2
2
  import { PlusCircleFillIcon } from "@navikt/aksel-icons";
3
- import {
4
- BodyLong,
5
- Alert as DsAlert,
6
- ConfirmationPanel as DsConfirmationPanel,
7
- Link,
8
- } from "../..";
3
+ import { Alert } from "../../alert";
4
+ import { ConfirmationPanel } from "../../form";
5
+ import { BodyLong } from "../../typography";
6
+ import Link from "../Link";
9
7
  import { RandomIcon } from "./RandomIcon";
10
8
 
11
9
  export default {
@@ -139,37 +137,37 @@ const DemoLink = () => (
139
137
 
140
138
  export const Icon = () => <DemoLink />;
141
139
 
142
- export const Alert = () => {
140
+ export const InAlert = () => {
143
141
  return (
144
142
  <div className="colgap">
145
- <DsAlert variant="info">
143
+ <Alert variant="info">
146
144
  <DemoLink />
147
- </DsAlert>
148
- <DsAlert variant="success">
145
+ </Alert>
146
+ <Alert variant="success">
149
147
  <DemoLink />
150
- </DsAlert>
151
- <DsAlert variant="warning">
148
+ </Alert>
149
+ <Alert variant="warning">
152
150
  <DemoLink />
153
- </DsAlert>
154
- <DsAlert variant="error">
151
+ </Alert>
152
+ <Alert variant="error">
155
153
  <DemoLink />
156
- </DsAlert>
154
+ </Alert>
157
155
  </div>
158
156
  );
159
157
  };
160
158
 
161
- export const ConfirmationPanel = () => {
159
+ export const InConfirmationPanel = () => {
162
160
  return (
163
161
  <div className="colgap">
164
- <DsConfirmationPanel label="demo">
162
+ <ConfirmationPanel label="demo">
165
163
  <DemoLink />
166
- </DsConfirmationPanel>
167
- <DsConfirmationPanel checked label="demo">
164
+ </ConfirmationPanel>
165
+ <ConfirmationPanel checked label="demo">
168
166
  <DemoLink />
169
- </DsConfirmationPanel>
170
- <DsConfirmationPanel error="demo" label="demo">
167
+ </ConfirmationPanel>
168
+ <ConfirmationPanel error="demo" label="demo">
171
169
  <DemoLink />
172
- </DsConfirmationPanel>
170
+ </ConfirmationPanel>
173
171
  </div>
174
172
  );
175
173
  };
@@ -1,6 +1,6 @@
1
1
  import { Meta } from "@storybook/react";
2
2
  import React from "react";
3
- import { LinkPanel } from "..";
3
+ import LinkPanel from "./LinkPanel";
4
4
 
5
5
  export default {
6
6
  title: "ds-react/LinkPanel",
@@ -6,7 +6,8 @@ import {
6
6
  HeadHeartIcon,
7
7
  RecycleIcon,
8
8
  } from "@navikt/aksel-icons";
9
- import { List, VStack } from "..";
9
+ import { VStack } from "../layout/stack";
10
+ import List from "./List";
10
11
 
11
12
  export default {
12
13
  title: "ds-react/List",
@@ -1,6 +1,6 @@
1
1
  import { Meta } from "@storybook/react";
2
2
  import React from "react";
3
- import { Loader, LoaderProps } from "..";
3
+ import Loader, { LoaderProps } from "./Loader";
4
4
 
5
5
  export default {
6
6
  title: "ds-react/Loader",
@@ -1,9 +1,11 @@
1
1
  import { Meta, StoryFn } from "@storybook/react";
2
2
  import React, { useRef, useState } from "react";
3
3
  import { FileIcon } from "@navikt/aksel-icons";
4
- import { BodyLong, Button, Heading, Tooltip } from "..";
4
+ import { Button } from "../button";
5
5
  import { Checkbox, CheckboxGroup } from "../form/checkbox";
6
6
  import { VStack } from "../layout/stack";
7
+ import { Tooltip } from "../tooltip";
8
+ import { BodyLong, Heading } from "../typography";
7
9
  import Modal from "./Modal";
8
10
 
9
11
  const meta: Meta<typeof Modal> = {
@@ -2,6 +2,9 @@ import cl from "clsx";
2
2
  import React, { forwardRef } from "react";
3
3
  import { OverridableComponent } from "../util/types";
4
4
 
5
+ /**
6
+ * @deprecated Use Box with padding and border instead
7
+ */
5
8
  export interface PanelProps extends React.HTMLAttributes<HTMLElement> {
6
9
  /**
7
10
  * Panel content
@@ -17,23 +20,13 @@ export interface PanelProps extends React.HTMLAttributes<HTMLElement> {
17
20
  export type PanelType = OverridableComponent<PanelProps, HTMLElement>;
18
21
 
19
22
  /**
20
- * A component that displays a bordered panel with heading and body.
21
- *
22
- * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/panel)
23
- * @see 🏷️ {@link PanelProps}
24
- * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support
25
- *
26
- * @example
27
- * ```jsx
28
- * <Panel border>
29
- * <Heading spacing level="2" size="large">
30
- * Søk om økonomisk sosialhjelp
31
- * </Heading>
32
- * <BodyLong>
33
- * Du kan søke om det du trenger økonomisk støtte til.
34
- * </BodyLong>
35
- * </Panel>
23
+ * @deprecated
24
+ * Use Box with padding and border instead
25
+ * ```
26
+ * <Box padding="4" borderRadius="small" />
27
+ * <Box padding="4" borderWidth="1" borderRadius="small" />
36
28
  * ```
29
+ * Component will be removed in a future major release
37
30
  */
38
31
  export const Panel: PanelType = forwardRef(
39
32
  (
@@ -1,6 +1,6 @@
1
1
  import { Meta } from "@storybook/react";
2
2
  import React, { useState } from "react";
3
- import { BodyLong } from "..";
3
+ import { BodyLong } from "../typography";
4
4
  import Stepper from "./Stepper";
5
5
 
6
6
  const meta: Meta<typeof Stepper> = {
@@ -1,7 +1,9 @@
1
1
  import React, { useState } from "react";
2
2
  import useSWR from "swr";
3
- import { Loader, Pagination, SortState } from "../..";
4
- import { Table } from "../index";
3
+ import { Loader } from "../../loader";
4
+ import { Pagination } from "../../pagination";
5
+ import Table from "../Table";
6
+ import { SortState } from "../types";
5
7
  import peopleJson from "./people.json";
6
8
 
7
9
  export default {
@@ -1,6 +1,8 @@
1
1
  import React, { useState } from "react";
2
- import { Table } from "..";
3
- import { Button, Checkbox, Link } from "../..";
2
+ import { Button } from "../../button";
3
+ import { Checkbox } from "../../form";
4
+ import { Link } from "../../link";
5
+ import Table from "../Table";
4
6
 
5
7
  export default {
6
8
  title: "ds-react/Table",
@@ -1,6 +1,9 @@
1
1
  import React, { useState } from "react";
2
2
  import { Table, TableProps } from "../";
3
- import { Alert, Button, Checkbox, CheckboxGroup, Link } from "../..";
3
+ import { Alert } from "../../alert";
4
+ import { Button } from "../../button";
5
+ import { Checkbox, CheckboxGroup } from "../../form";
6
+ import { Link } from "../../link";
4
7
 
5
8
  export default {
6
9
  title: "ds-react/Table",
@@ -1,6 +1,6 @@
1
1
  import { expect, fn, userEvent, within } from "@storybook/test";
2
2
  import React from "react";
3
- import { Table } from "../..";
3
+ import Table from "../../Table";
4
4
 
5
5
  export default {
6
6
  title: "ds-react/Table/Tests",
@@ -1,6 +1,9 @@
1
1
  import { Meta } from "@storybook/react";
2
2
  import React from "react";
3
- import { Alert, Button, Search, Tooltip } from "..";
3
+ import { Alert } from "../alert";
4
+ import { Button } from "../button";
5
+ import { Search } from "../form";
6
+ import Tooltip from "./Tooltip";
4
7
 
5
8
  export default {
6
9
  title: "ds-react/Tooltip",