@nulogy/components 15.2.1 → 15.2.2

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 (60) hide show
  1. package/README.md +3 -3
  2. package/dist/main.js +5733 -5627
  3. package/dist/main.module.js +5729 -5623
  4. package/dist/src/Alert/Alert.story.d.ts +15 -19
  5. package/dist/src/Alert/Alert.story.js +25 -14
  6. package/dist/src/BrandedNavBar/NavBar.story.d.ts +4 -6
  7. package/dist/src/BrandedNavBar/NavBar.story.js +11 -3
  8. package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +5 -2
  9. package/dist/src/BrandedNavBar/SmallNavBar.story.js +26 -5
  10. package/dist/src/DatePickers/stories/DatePicker.story.d.ts +7 -3
  11. package/dist/src/DatePickers/stories/DatePicker.story.js +54 -22
  12. package/dist/src/DescriptionList/lib/utils.js +1 -1
  13. package/dist/src/DescriptionList/stories/DescriptionList.column.story.js +1 -1
  14. package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.d.ts +7 -8
  15. package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.js +15 -12
  16. package/dist/src/DescriptionList/stories/DescriptionList.layout.story.js +1 -1
  17. package/dist/src/DescriptionList/stories/DescriptionList.playground.story.d.ts +7 -8
  18. package/dist/src/DescriptionList/stories/DescriptionList.playground.story.js +200 -195
  19. package/dist/src/Layout/Header.d.ts +1 -1
  20. package/dist/src/Layout/Header.story.d.ts +10 -9
  21. package/dist/src/Layout/Header.story.js +9 -8
  22. package/dist/src/Layout/Sidebar.story.d.ts +4 -1
  23. package/dist/src/Layout/Sidebar.story.js +10 -3
  24. package/dist/src/Modal/Modal.story.d.ts +39 -61
  25. package/dist/src/Modal/Modal.story.js +110 -85
  26. package/dist/src/NDSProvider/renderWithNDSProvider.spec-utils.d.ts +2 -1
  27. package/dist/src/Radio/Radio.story.d.ts +316 -32
  28. package/dist/src/Radio/Radio.story.js +36 -22
  29. package/dist/src/Select/MenuList.js +1 -1
  30. package/dist/src/Select/Select.d.ts +1 -1
  31. package/dist/src/Select/Select.spec-utils.js +1 -0
  32. package/dist/src/Select/Select.story.d.ts +5 -1
  33. package/dist/src/Select/Select.story.js +93 -2
  34. package/dist/src/Table/stories/BaseTable.story.d.ts +11 -7
  35. package/dist/src/Table/stories/BaseTable.story.js +156 -34
  36. package/dist/src/Table/stories/SortingColumnHeader.story.d.ts +5 -2
  37. package/dist/src/Table/stories/SortingColumnHeader.story.js +20 -3
  38. package/dist/src/Table/stories/Table.story.d.ts +7 -14
  39. package/dist/src/Table/stories/Table.story.js +172 -127
  40. package/dist/src/Tooltip/Tooltip.story.d.ts +15 -52
  41. package/dist/src/Tooltip/Tooltip.story.js +79 -71
  42. package/dist/src/testing/matchers/toHaveStyle.d.ts +15 -0
  43. package/dist/src/testing/matchers/toHaveStyle.js +50 -0
  44. package/dist/src/testing/matchers/toMatchDate.d.ts +1 -0
  45. package/dist/src/testing/matchers/toMatchDate.js +1 -1
  46. package/dist/src/utils/DetectOutsideClick.d.ts +3 -0
  47. package/dist/src/utils/DetectOutsideClick.js +3 -0
  48. package/dist/src/utils/ScrollIndicators.js +1 -1
  49. package/dist/src/utils/generateId.d.ts +5 -0
  50. package/dist/src/utils/generateId.js +5 -0
  51. package/dist/src/utils/index.d.ts +0 -1
  52. package/dist/src/utils/index.js +0 -1
  53. package/dist/src/utils/numberFromDimension/numberFromDimension.spec.js +1 -0
  54. package/dist/vitest.config.d.ts +2 -0
  55. package/dist/vitest.config.js +11 -0
  56. package/package.json +24 -61
  57. package/dist/src/NDSProvider/mountWithNDSProvider.spec-utils.d.ts +0 -1
  58. package/dist/src/NDSProvider/mountWithNDSProvider.spec-utils.js +0 -4
  59. package/dist/src/utils/withWindowDimensions.d.ts +0 -3
  60. package/dist/src/utils/withWindowDimensions.js +0 -28
@@ -1,24 +1,20 @@
1
+ import type { StoryObj } from "@storybook/react";
1
2
  import React from "react";
3
+ import { Alert } from "../index";
2
4
  declare const _default: {
3
5
  title: string;
6
+ component: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../Flex/Flex").FlexProps & {
7
+ isCloseable?: boolean;
8
+ closeAriaLabel?: string;
9
+ title?: string;
10
+ type?: import("./Alert").NotificationType;
11
+ onClose?: any;
12
+ controlled?: boolean;
13
+ }, never>> & string & Omit<({ children, isCloseable, title, type, closeAriaLabel, onClose, controlled, ...props }: import("./Alert").AlertProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
4
14
  };
5
15
  export default _default;
6
- export declare const AlertTypes: () => React.JSX.Element;
7
- export declare const WithACloseButton: {
8
- (): React.JSX.Element;
9
- story: {
10
- name: string;
11
- };
12
- };
13
- export declare const WithATitle: {
14
- (): React.JSX.Element;
15
- story: {
16
- name: string;
17
- };
18
- };
19
- export declare const WithALink: {
20
- (): React.JSX.Element;
21
- story: {
22
- name: string;
23
- };
24
- };
16
+ type Story = StoryObj<typeof Alert>;
17
+ export declare const AlertTypes: Story;
18
+ export declare const WithACloseButton: Story;
19
+ export declare const WithATitle: Story;
20
+ export declare const WithALink: Story;
@@ -1,27 +1,38 @@
1
- import { boolean, text } from "@storybook/addon-knobs";
2
1
  import React from "react";
3
2
  import { Alert, Flex } from "../index";
4
3
  import { Link } from "../Link";
5
4
  export default {
6
5
  title: "Components/Alert",
6
+ component: Alert,
7
7
  };
8
8
  const alertTypes = ["danger", "informative", "success", "warning"];
9
- export const AlertTypes = () => (React.createElement(Flex, { flexDirection: "column", gap: "x1" }, alertTypes.map((type) => (React.createElement(Alert, { key: type, type: type, title: type },
10
- "This is an alert with type \"",
11
- type,
12
- "\"")))));
13
- export const WithACloseButton = () => (React.createElement(Alert, { isCloseable: boolean("isCloseable", true) }, text("Alert Text", "Warning alert")));
14
- WithACloseButton.story = {
9
+ export const AlertTypes = {
10
+ render: () => (React.createElement(Flex, { flexDirection: "column", gap: "x1" }, alertTypes.map((type) => (React.createElement(Alert, { key: type, type: type, title: type },
11
+ "This is an alert with type \"",
12
+ type,
13
+ "\""))))),
14
+ };
15
+ export const WithACloseButton = {
16
+ args: {
17
+ isCloseable: true,
18
+ children: "This is an alert with a close button",
19
+ },
15
20
  name: "With a close button",
16
21
  };
17
- export const WithATitle = () => (React.createElement(Alert, { title: "Danger title!", type: "danger" }, text("Alert Text", "Danger alert")));
18
- WithATitle.story = {
22
+ export const WithATitle = {
23
+ args: {
24
+ title: "Danger title!",
25
+ type: "danger",
26
+ children: "Danger alert",
27
+ },
19
28
  name: "With a title",
20
29
  };
21
- export const WithALink = () => (React.createElement(Alert, null,
22
- "An alert with ",
23
- React.createElement(Link, { href: "/" }, "linked details"),
24
- "."));
25
- WithALink.story = {
30
+ export const WithALink = {
31
+ args: {
32
+ children: (React.createElement(React.Fragment, null,
33
+ "An alert with ",
34
+ React.createElement(Link, { href: "/" }, "linked details"),
35
+ ".")),
36
+ },
26
37
  name: "With a link",
27
38
  };
@@ -1,8 +1,11 @@
1
1
  import React from "react";
2
+ import type { StoryObj } from "@storybook/react";
3
+ import { BrandedNavBar as NDSBrandedNavBar } from "./index";
2
4
  declare const _default: {
3
5
  title: string;
4
6
  };
5
7
  export default _default;
8
+ type Story = StoryObj<typeof NDSBrandedNavBar>;
6
9
  export declare const _BrandedNavBar: {
7
10
  (): React.JSX.Element;
8
11
  story: {
@@ -27,12 +30,7 @@ export declare const WithACompanyLogoAndAppName: {
27
30
  name: string;
28
31
  };
29
32
  };
30
- export declare const WithEnvironmentBanner: {
31
- (): React.JSX.Element;
32
- story: {
33
- name: string;
34
- };
35
- };
33
+ export declare const WithEnvironmentBanner: Story;
36
34
  export declare const WithIcon: {
37
35
  (): React.JSX.Element;
38
36
  story: {
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import styled from "styled-components";
3
- import { select } from "@storybook/addon-knobs";
4
3
  import { BrowserRouter, Link as ReactRouterLink } from "react-router-dom";
5
4
  import { Heading1 } from "../Type";
6
5
  import { Icon } from "../Icon";
@@ -139,8 +138,17 @@ export const WithACompanyLogoAndAppName = () => (React.createElement(BrandedNavB
139
138
  WithACompanyLogoAndAppName.story = {
140
139
  name: "With a company logo and app name",
141
140
  };
142
- export const WithEnvironmentBanner = () => (React.createElement(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu }, subtext: "Quality control", logoSrc: sampleLogo, environment: select("environment", ["training", "development"], "training") }));
143
- WithEnvironmentBanner.story = {
141
+ export const WithEnvironmentBanner = {
142
+ render: (args) => (React.createElement(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu }, subtext: "Quality control", logoSrc: sampleLogo, environment: args.environment })),
143
+ args: {
144
+ environment: "training",
145
+ },
146
+ argTypes: {
147
+ environment: {
148
+ control: { type: "select" },
149
+ options: ["training", "development"],
150
+ },
151
+ },
144
152
  name: "with environment banner",
145
153
  };
146
154
  export const WithIcon = () => (React.createElement(BrandedNavBar, { menuData: {
@@ -1,4 +1,6 @@
1
+ import type { StoryObj } from "@storybook/react";
1
2
  import React from "react";
3
+ import { SmallNavBar } from "./index";
2
4
  declare const _default: {
3
5
  title: string;
4
6
  parameters: {
@@ -11,11 +13,12 @@ declare const _default: {
11
13
  };
12
14
  };
13
15
  export default _default;
16
+ type Story = StoryObj<typeof SmallNavBar>;
14
17
  export declare const _SmallNavBar: () => React.JSX.Element;
15
18
  export declare const SmallNavBarOpen: () => React.JSX.Element;
16
19
  export declare const WithALogo: () => React.JSX.Element;
17
20
  export declare const WithALogoOpen: () => React.JSX.Element;
18
21
  export declare const WithABrandLogoContainerLogo: () => React.JSX.Element;
19
22
  export declare const WithANulogyLogoAndAppName: () => React.JSX.Element;
20
- export declare const WithEnvironmentBanner: () => React.JSX.Element;
21
- export declare const WithCustomMenuButton: () => React.JSX.Element;
23
+ export declare const WithEnvironmentBanner: Story;
24
+ export declare const WithCustomMenuButton: Story;
@@ -1,4 +1,3 @@
1
- import { select } from "@storybook/addon-knobs";
2
1
  import React from "react";
3
2
  import styled from "styled-components";
4
3
  import { Branding } from "../Branding";
@@ -83,7 +82,29 @@ export const WithALogoOpen = () => (React.createElement(WrappedSmallNavBar, { me
83
82
  React.createElement(Branding, { size: "medium", logoType: "wordmark", logoColor: "blue" })) }));
84
83
  export const WithABrandLogoContainerLogo = () => (React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, logo: React.createElement(BrandLogoContainer, { brandingLinkHref: "/" }) }));
85
84
  export const WithANulogyLogoAndAppName = () => (React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, subtext: "Quality control", showNulogyLogo: true, defaultOpen: true }));
86
- export const WithEnvironmentBanner = () => (React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, environment: select("environment", ["training", "development"], "training") }));
87
- export const WithCustomMenuButton = () => (React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, environment: select("environment", ["training", "development"], "training"), renderMenuButton: ({ onClick, ariaExpanded, isOpen }) => (React.createElement(Button, { onClick: onClick, "aria-expanded": ariaExpanded },
88
- "Click to ",
89
- isOpen ? "close" : "open")) }));
85
+ export const WithEnvironmentBanner = {
86
+ render: (args) => React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, environment: args.environment }),
87
+ args: {
88
+ environment: "training",
89
+ },
90
+ argTypes: {
91
+ environment: {
92
+ control: { type: "select" },
93
+ options: ["training", "development"],
94
+ },
95
+ },
96
+ };
97
+ export const WithCustomMenuButton = {
98
+ render: (args) => (React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, environment: args.environment, renderMenuButton: ({ onClick, ariaExpanded, isOpen }) => (React.createElement(Button, { onClick: onClick, "aria-expanded": ariaExpanded },
99
+ "Click to ",
100
+ isOpen ? "close" : "open")) })),
101
+ args: {
102
+ environment: "training",
103
+ },
104
+ argTypes: {
105
+ environment: {
106
+ control: { type: "select" },
107
+ options: ["training", "development"],
108
+ },
109
+ },
110
+ };
@@ -1,12 +1,16 @@
1
1
  import React from "react";
2
+ import type { StoryObj } from "@storybook/react";
3
+ import { DatePicker } from "../index";
2
4
  declare const _default: {
3
5
  title: string;
6
+ component: React.ForwardRefExoticComponent<Omit<import("../shared/types").DatePickerProps, "ref"> & React.RefAttributes<ReactDatePicker>>;
4
7
  };
5
8
  export default _default;
6
- export declare const Default: () => React.JSX.Element;
7
- export declare const WithCustomDateFormat: () => React.JSX.Element;
9
+ type Story = StoryObj<typeof DatePicker>;
10
+ export declare const Default: Story;
11
+ export declare const WithCustomDateFormat: Story;
8
12
  export declare const WithCustomPlaceholder: () => React.JSX.Element;
9
13
  export declare const WithErrorState: () => React.JSX.Element;
10
14
  export declare const WithMinAndMaxDate: () => React.JSX.Element;
11
- export declare const DisableFlipping: () => React.JSX.Element;
15
+ export declare const DisableFlipping: Story;
12
16
  export declare const UsingRefToControlFocus: () => React.JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import React, { useRef } from "react";
2
2
  import { action } from "@storybook/addon-actions";
3
- import { select, boolean } from "@storybook/addon-knobs";
4
3
  import { DatePicker } from "../index";
5
4
  import { Button } from "../..";
6
5
  const selectedDateExamples = [
@@ -10,31 +9,64 @@ const selectedDateExamples = [
10
9
  ];
11
10
  export default {
12
11
  title: "Components/DatePickers/DatePicker",
12
+ component: DatePicker,
13
+ };
14
+ export const Default = {
15
+ args: {
16
+ selected: selectedDateExamples[0],
17
+ onChange: action("date changed"),
18
+ onFocus: action("date selector focused"),
19
+ onBlur: action("date selector blurred"),
20
+ onInputChange: action("input changed"),
21
+ inputProps: { labelText: "Expiry Date" },
22
+ },
23
+ argTypes: {
24
+ selected: {
25
+ control: { type: "select" },
26
+ options: selectedDateExamples,
27
+ },
28
+ },
29
+ };
30
+ export const WithCustomDateFormat = {
31
+ args: {
32
+ selected: selectedDateExamples[0],
33
+ dateFormat: "MMMM d, yyyy",
34
+ onChange: action("date changed"),
35
+ onFocus: action("date selector focused"),
36
+ onBlur: action("date selector blurred"),
37
+ onInputChange: action("input changed"),
38
+ inputProps: { labelText: "Expiry Date" },
39
+ },
40
+ argTypes: {
41
+ selected: {
42
+ control: { type: "select" },
43
+ options: selectedDateExamples,
44
+ },
45
+ },
13
46
  };
14
- export const Default = () => (React.createElement(DatePicker
15
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
16
- //@ts-ignore
17
- , {
18
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19
- //@ts-ignore
20
- selected: select("selected", selectedDateExamples, selectedDateExamples[0], "selected"), onChange: action("date changed"), onFocus: action("date selector focused"), onBlur: action("date selector blurred"), onInputChange: action("input changed"), inputProps: { labelText: "Expiry Date" } }));
21
- export const WithCustomDateFormat = () => (React.createElement(DatePicker
22
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23
- //@ts-ignore
24
- , {
25
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
26
- //@ts-ignore
27
- selected: select("selected", selectedDateExamples, selectedDateExamples[0], "selected"), dateFormat: "MMMM d, yyyy", onChange: action("date changed"), onFocus: action("date selector focused"), onBlur: action("date selector blurred"), onInputChange: action("input changed"), inputProps: { labelText: "Expiry Date" } }));
28
47
  export const WithCustomPlaceholder = () => (React.createElement(DatePicker, { dateFormat: "MMMM d, yyyy", onFocus: action("date selector focused"), onBlur: action("date selector blurred"), onChange: action("date changed"), onInputChange: action("input changed"), inputProps: { labelText: "Expiry Date", placeholder: "Month day, year" } }));
29
48
  export const WithErrorState = () => (React.createElement(DatePicker, { dateFormat: "MMMM d, yyyy", onFocus: action("date selector focused"), onBlur: action("date selector blurred"), onChange: action("date changed"), onInputChange: action("input changed"), inputProps: { labelText: "Expiry Date" }, errorMessage: "The date is invalid" }));
30
49
  export const WithMinAndMaxDate = () => (React.createElement(DatePicker, { selected: new Date("2019-01-05T05:00:00.000Z"), minDate: new Date("2019-01-03T05:00:00.000Z"), maxDate: new Date("2019-01-10T05:00:00.000Z"), onFocus: action("date selector focused"), onBlur: action("date selector blurred"), onChange: action("date changed"), onInputChange: action("input changed"), inputProps: { labelText: "Expiry Date" } }));
31
- export const DisableFlipping = () => (React.createElement(DatePicker
32
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
33
- //@ts-ignore
34
- , {
35
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
36
- //@ts-ignore
37
- selected: select("selected", selectedDateExamples, selectedDateExamples[0], "selected"), onBlur: action("date selector blurred"), onFocus: action("date selector focused"), onChange: action("date changed"), onInputChange: action("input changed"), inputProps: { labelText: "Expiry Date" }, disableFlipping: boolean("disableFlipping", true) }));
50
+ export const DisableFlipping = {
51
+ args: {
52
+ selected: selectedDateExamples[0],
53
+ onBlur: action("date selector blurred"),
54
+ onFocus: action("date selector focused"),
55
+ onChange: action("date changed"),
56
+ onInputChange: action("input changed"),
57
+ inputProps: { labelText: "Expiry Date" },
58
+ disableFlipping: true,
59
+ },
60
+ argTypes: {
61
+ selected: {
62
+ control: { type: "select" },
63
+ options: selectedDateExamples,
64
+ },
65
+ disableFlipping: {
66
+ control: { type: "boolean" },
67
+ },
68
+ },
69
+ };
38
70
  export const UsingRefToControlFocus = () => {
39
71
  const ref = useRef(null);
40
72
  const handleClick = () => {
@@ -2,7 +2,7 @@ export function validateAndExtractGridProps(props) {
2
2
  const columns = "columns" in props ? props.columns : undefined;
3
3
  const groupMinWidth = "groupMinWidth" in props ? props.groupMinWidth : undefined;
4
4
  if (columns && groupMinWidth) {
5
- throw new Error("Please provide either a `columns` or `groupMinWidth` prop to the DescriptionList, not both.\n\nSee component documentation: https://github.com/nulogy/design-system/blob/master/src/DescriptionList/README.md");
5
+ throw new Error("Please provide either a `columns` or `groupMinWidth` prop to the DescriptionList, not both.\n\nSee component documentation: https://github.com/nulogy/design-system/blob/main/src/DescriptionList/README.md");
6
6
  }
7
7
  return { columns, groupMinWidth };
8
8
  }
@@ -40,7 +40,7 @@ export const ThreeColumns = () => React.createElement(ColumnDemo, { title: "Thre
40
40
  export const ResponsiveColumns = () => (React.createElement(ColumnDemo, { resizable: true, title: "Responsive Columns", columns: { small: 1, medium: 3, large: 6 }, description: "Small: 1 column, Medium: 3 columns, Large: 6 columns", info: React.createElement(Text, { fontSize: "sm", color: "darkGrey" },
41
41
  "The breakpoint is based on the container width, not the viewport width. See component",
42
42
  " ",
43
- React.createElement(Link, { href: "https://github.com/nulogy/design-system/blob/master/src/DescriptionList/README.md" }, "documentation"),
43
+ React.createElement(Link, { href: "https://github.com/nulogy/design-system/blob/main/src/DescriptionList/README.md" }, "documentation"),
44
44
  ".") }));
45
45
  ResponsiveColumns.parameters = {
46
46
  chromatic: {
@@ -1,9 +1,8 @@
1
- import React from "react";
2
- export declare const GroupMinWidth: {
3
- (): React.JSX.Element;
4
- parameters: {
5
- chromatic: {
6
- viewports: number[];
7
- };
8
- };
1
+ import type { StoryObj } from "@storybook/react";
2
+ import DescriptionList from "../DescriptionList";
3
+ declare const _default: {
4
+ title: string;
9
5
  };
6
+ export default _default;
7
+ type Story = StoryObj<typeof DescriptionList>;
8
+ export declare const GroupMinWidth: Story;
@@ -5,22 +5,25 @@ import { Heading1, Text } from "../../Type";
5
5
  import { Resizable } from "../../utils/story/resizable";
6
6
  import DescriptionList from "../DescriptionList";
7
7
  import { SampleContent } from "./fixtures";
8
- export const GroupMinWidth = () => {
9
- return (React.createElement(Flex, { flexDirection: "column", gap: "x4" },
8
+ export default {
9
+ title: "Components/DescriptionList/GroupMinWidth",
10
+ };
11
+ export const GroupMinWidth = {
12
+ render: () => (React.createElement(Flex, { flexDirection: "column", gap: "x4" },
10
13
  React.createElement(Flex, { flexDirection: "column", gap: "x2" },
11
14
  React.createElement(Heading1, { compact: true }, "Group Min Width"),
12
15
  React.createElement(Text, { fontSize: "sm", mb: "x4" }, "In this example the groupMinWidth is set to 200px, each group is given a minimum width of 200px with the remaining space distributed evenly between the groups."),
13
16
  React.createElement(Resizable, { containerWidth: "100%", showContainerOutline: true },
14
17
  React.createElement(DescriptionList, { groupMinWidth: "200px" },
15
- React.createElement(SampleContent, null))))));
16
- };
17
- GroupMinWidth.parameters = {
18
- chromatic: {
19
- viewports: [
20
- parseInt(legacy.breakpoints.extraSmall),
21
- parseInt(legacy.breakpoints.small),
22
- parseInt(legacy.breakpoints.medium),
23
- parseInt(legacy.breakpoints.large),
24
- ],
18
+ React.createElement(SampleContent, null)))))),
19
+ parameters: {
20
+ chromatic: {
21
+ viewports: [
22
+ parseInt(legacy.breakpoints.extraSmall),
23
+ parseInt(legacy.breakpoints.small),
24
+ parseInt(legacy.breakpoints.medium),
25
+ parseInt(legacy.breakpoints.large),
26
+ ],
27
+ },
25
28
  },
26
29
  };
@@ -41,7 +41,7 @@ export const Auto = () => {
41
41
  React.createElement(Text, { fontSize: "sm", color: "darkGrey" },
42
42
  "The breakpoint is based on the container width, not the viewport width. See component",
43
43
  " ",
44
- React.createElement(Link, { href: "https://github.com/nulogy/design-system/blob/master/src/DescriptionList/README.md" }, "documentation"),
44
+ React.createElement(Link, { href: "https://github.com/nulogy/design-system/blob/main/src/DescriptionList/README.md" }, "documentation"),
45
45
  "."))),
46
46
  React.createElement(Resizable, { containerWidth: "100%", showContainerOutline: true },
47
47
  React.createElement(DescriptionList, { layout: "auto", autoLayoutBreakpoint: "640px" },
@@ -1,9 +1,8 @@
1
- import React from "react";
2
- export declare const Playground: {
3
- (): React.JSX.Element;
4
- parameters: {
5
- chromatic: {
6
- disable: boolean;
7
- };
8
- };
1
+ import type { StoryObj } from "@storybook/react";
2
+ import DescriptionList from "../DescriptionList";
3
+ declare const _default: {
4
+ title: string;
9
5
  };
6
+ export default _default;
7
+ type Story = StoryObj<typeof DescriptionList>;
8
+ export declare const Playground: Story;