@nulogy/components 16.0.2 → 16.0.3

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 (151) hide show
  1. package/dist/main.js +1 -0
  2. package/dist/main.js.map +1 -1
  3. package/dist/main.module.js +1 -0
  4. package/dist/main.module.js.map +1 -1
  5. package/dist/src/Alert/Alert.story.d.ts +1 -1
  6. package/dist/src/Alert/Alert.story.js +11 -0
  7. package/dist/src/AppTag/stories/AppTag.story.d.ts +2 -2
  8. package/dist/src/AppTag/stories/AppTag.story.js +6 -4
  9. package/dist/src/AppTag/stories/AppTag.usecases.story.d.ts +13 -10
  10. package/dist/src/AppTag/stories/AppTag.usecases.story.js +71 -51
  11. package/dist/src/AsyncSelect/AsyncSelect.story.d.ts +17 -13
  12. package/dist/src/AsyncSelect/AsyncSelect.story.js +46 -23
  13. package/dist/src/BottomSheet/stories/BottomSheet.actions.story.d.ts +8 -1
  14. package/dist/src/BottomSheet/stories/BottomSheet.actions.story.js +22 -3
  15. package/dist/src/BottomSheet/stories/BottomSheet.features.story.d.ts +9 -2
  16. package/dist/src/BottomSheet/stories/BottomSheet.features.story.js +27 -12
  17. package/dist/src/BottomSheet/stories/BottomSheet.story.d.ts +7 -1
  18. package/dist/src/BottomSheet/stories/BottomSheet.story.js +20 -3
  19. package/dist/src/Box/Box.story.d.ts +22 -44
  20. package/dist/src/Box/Box.story.js +30 -30
  21. package/dist/src/BrandedNavBar/NavBar.story.d.ts +16 -28
  22. package/dist/src/BrandedNavBar/NavBar.story.js +41 -35
  23. package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +1 -1
  24. package/dist/src/Breadcrumbs/Breadcrumbs.story.d.ts +4 -8
  25. package/dist/src/Breadcrumbs/Breadcrumbs.story.js +4 -4
  26. package/dist/src/Button/Button.story.d.ts +14 -28
  27. package/dist/src/Button/Button.story.js +14 -14
  28. package/dist/src/Button/ControlIcon.story.js +1 -1
  29. package/dist/src/Button/IconicButton.story.d.ts +23 -45
  30. package/dist/src/Button/IconicButton.story.js +27 -25
  31. package/dist/src/ButtonGroup/ButtonGroup.story.d.ts +13 -23
  32. package/dist/src/ButtonGroup/ButtonGroup.story.js +10 -10
  33. package/dist/src/Card/Card.story.d.ts +3 -5
  34. package/dist/src/Card/Card.story.js +9 -7
  35. package/dist/src/Checkbox/Checkbox.story.d.ts +18 -34
  36. package/dist/src/Checkbox/Checkbox.story.js +28 -24
  37. package/dist/src/Checkbox/CheckboxGroup.story.d.ts +10 -20
  38. package/dist/src/Checkbox/CheckboxGroup.story.js +10 -10
  39. package/dist/src/DatePickers/stories/DatePicker.story.d.ts +9 -2
  40. package/dist/src/DatePickers/stories/DatePicker.story.js +43 -2
  41. package/dist/src/DatePickers/stories/MonthPicker.story.d.ts +8 -1
  42. package/dist/src/DatePickers/stories/MonthPicker.story.js +21 -2
  43. package/dist/src/DatePickers/stories/WeekPicker.story.d.ts +32 -4
  44. package/dist/src/DatePickers/stories/WeekPicker.story.js +57 -8
  45. package/dist/src/DateRange/DateRange.story.d.ts +16 -2
  46. package/dist/src/DateRange/DateRange.story.js +41 -3
  47. package/dist/src/DescriptionList/stories/DescriptionList.column.story.d.ts +1 -1
  48. package/dist/src/DescriptionList/stories/DescriptionList.column.story.js +10 -8
  49. package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.d.ts +1 -1
  50. package/dist/src/DescriptionList/stories/DescriptionList.layout.story.d.ts +1 -1
  51. package/dist/src/DescriptionList/stories/DescriptionList.layout.story.js +12 -10
  52. package/dist/src/DescriptionList/stories/DescriptionList.playground.story.d.ts +1 -1
  53. package/dist/src/DescriptionList/stories/DescriptionList.story.d.ts +1 -0
  54. package/dist/src/DescriptionList/stories/DescriptionList.story.js +3 -0
  55. package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +32 -32
  56. package/dist/src/DropdownMenu/DropdownMenu.story.js +58 -16
  57. package/dist/src/FieldLabel/FieldLabel.story.d.ts +2 -4
  58. package/dist/src/FieldLabel/FieldLabel.story.js +2 -2
  59. package/dist/src/Flex/Flex.story.d.ts +34 -68
  60. package/dist/src/Flex/Flex.story.js +36 -36
  61. package/dist/src/Form/Form.story.d.ts +8 -16
  62. package/dist/src/Form/Form.story.js +8 -8
  63. package/dist/src/Icon/Icon.story.d.ts +12 -24
  64. package/dist/src/Icon/Icon.story.js +15 -15
  65. package/dist/src/Input/Input.story.d.ts +16 -32
  66. package/dist/src/Input/Input.story.js +23 -23
  67. package/dist/src/Layout/Page.applicationFrame.story.d.ts +1 -1
  68. package/dist/src/Layout/Page.story.d.ts +1 -1
  69. package/dist/src/Layout/Sidebar.story.d.ts +1 -1
  70. package/dist/src/Link/Link.story.d.ts +16 -32
  71. package/dist/src/Link/Link.story.js +16 -17
  72. package/dist/src/List/List.story.d.ts +8 -16
  73. package/dist/src/List/List.story.js +8 -8
  74. package/dist/src/LoadingAnimation/LoadingAnimation.story.d.ts +4 -8
  75. package/dist/src/LoadingAnimation/LoadingAnimation.story.js +4 -4
  76. package/dist/src/MaybeTooltip/MaybeTooltip.story.d.ts +1 -1
  77. package/dist/src/Modal/Modal.story.d.ts +1 -1
  78. package/dist/src/Navigation/stories/Navigation.appSwitcher.story.d.ts +8 -1
  79. package/dist/src/Navigation/stories/Navigation.appSwitcher.story.js +19 -1
  80. package/dist/src/Navigation/stories/Navigation.logos.story.d.ts +2 -4
  81. package/dist/src/Navigation/stories/Navigation.logos.story.js +4 -4
  82. package/dist/src/Navigation/stories/Navigation.story.d.ts +7 -1
  83. package/dist/src/Navigation/stories/Navigation.story.js +145 -136
  84. package/dist/src/Navigation/stories/Navigation.userMenu.story.d.ts +8 -1
  85. package/dist/src/Navigation/stories/Navigation.userMenu.story.js +22 -1
  86. package/dist/src/Overlay/Overlay.story.d.ts +2 -4
  87. package/dist/src/Overlay/Overlay.story.js +2 -2
  88. package/dist/src/Pagination/Pagination.story.d.ts +14 -13
  89. package/dist/src/Pagination/Pagination.story.js +32 -11
  90. package/dist/src/Radio/Radio.story.d.ts +1 -1
  91. package/dist/src/Radio/Radio.story.js +44 -1
  92. package/dist/src/Radio/RadioGroup.story.d.ts +29 -21
  93. package/dist/src/Radio/RadioGroup.story.js +67 -14
  94. package/dist/src/RangeContainer/RangeContainer.story.d.ts +2 -4
  95. package/dist/src/RangeContainer/RangeContainer.story.js +2 -2
  96. package/dist/src/Select/Select.story.d.ts +37 -65
  97. package/dist/src/Select/Select.story.js +93 -49
  98. package/dist/src/StatusIndicator/StatusIndicator.story.d.ts +4 -8
  99. package/dist/src/StatusIndicator/StatusIndicator.story.js +4 -4
  100. package/dist/src/Switcher/Switcher.story.d.ts +8 -1
  101. package/dist/src/Switcher/Switcher.story.js +13 -1
  102. package/dist/src/Table/stories/BaseTable.story.d.ts +1 -1
  103. package/dist/src/Table/stories/BaseTable.story.js +1 -1
  104. package/dist/src/Table/stories/CustomContent.story.js +1 -1
  105. package/dist/src/Table/stories/Density.story.d.ts +4 -8
  106. package/dist/src/Table/stories/Density.story.js +4 -4
  107. package/dist/src/Table/stories/SortingColumnHeader.story.d.ts +1 -1
  108. package/dist/src/Table/stories/SortingColumnHeader.story.js +1 -1
  109. package/dist/src/Table/stories/Table.story.d.ts +1 -1
  110. package/dist/src/Table/stories/Table.story.js +37 -1
  111. package/dist/src/Table/stories/TableWithCustomSorting.story.d.ts +2 -4
  112. package/dist/src/Table/stories/TableWithCustomSorting.story.js +2 -2
  113. package/dist/src/Table/stories/TableWithExpandableRows.story.d.ts +4 -8
  114. package/dist/src/Table/stories/TableWithExpandableRows.story.js +5 -5
  115. package/dist/src/Table/stories/TableWithFiltering.story.d.ts +8 -8
  116. package/dist/src/Table/stories/TableWithFiltering.story.js +15 -4
  117. package/dist/src/Table/stories/TableWithSelectableRows.story.d.ts +8 -8
  118. package/dist/src/Table/stories/TableWithSelectableRows.story.js +22 -5
  119. package/dist/src/Table/stories/TableWithServerSidePagination.story.d.ts +2 -4
  120. package/dist/src/Table/stories/TableWithServerSidePagination.story.js +2 -2
  121. package/dist/src/Tabs/Tabs.story.d.ts +33 -33
  122. package/dist/src/Tabs/Tabs.story.js +52 -16
  123. package/dist/src/Textarea/Textarea.story.js +1 -1
  124. package/dist/src/TimePicker/TimePicker.js +2 -0
  125. package/dist/src/TimePicker/TimePicker.story.d.ts +24 -40
  126. package/dist/src/TimePicker/TimePicker.story.js +40 -27
  127. package/dist/src/TimeRange/TimeRange.story.d.ts +14 -20
  128. package/dist/src/TimeRange/TimeRange.story.js +34 -20
  129. package/dist/src/Toast/Toast.story.d.ts +24 -25
  130. package/dist/src/Toast/Toast.story.js +170 -142
  131. package/dist/src/ToastContainer/ToastContainer.story.d.ts +8 -1
  132. package/dist/src/ToastContainer/ToastContainer.story.js +13 -1
  133. package/dist/src/Toggle/Toggle.story.d.ts +25 -15
  134. package/dist/src/Toggle/Toggle.story.js +77 -43
  135. package/dist/src/Tooltip/Tooltip.story.d.ts +1 -1
  136. package/dist/src/Tooltip/Tooltip.story.js +16 -0
  137. package/dist/src/TopBar/stories/TopBar.story.d.ts +7 -1
  138. package/dist/src/TopBar/stories/TopBar.story.js +18 -1
  139. package/dist/src/TruncatedText/TruncatedText.story.d.ts +29 -34
  140. package/dist/src/TruncatedText/TruncatedText.story.js +46 -19
  141. package/dist/src/Type/Text.story.d.ts +10 -20
  142. package/dist/src/Type/Text.story.js +10 -10
  143. package/dist/src/Validation/InlineValidation.story.d.ts +6 -12
  144. package/dist/src/Validation/InlineValidation.story.js +6 -6
  145. package/dist/src/VisualTests/Select.story.d.ts +12 -24
  146. package/dist/src/VisualTests/Select.story.js +19 -19
  147. package/dist/src/pages/ErrorPage.story.d.ts +3 -5
  148. package/dist/src/pages/ErrorPage.story.js +10 -10
  149. package/dist/src/pages/LoginPage.story.d.ts +8 -16
  150. package/dist/src/pages/LoginPage.story.js +8 -8
  151. package/package.json +15 -23
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { expect, screen, userEvent, waitFor, within } from "storybook/test";
2
3
  import { DropdownMenu, DropdownLink, DropdownButton, DropdownItem, DropdownText, Button, Flex, Text, Icon, } from "../index";
3
4
  const customColors = {
4
5
  color: "white",
@@ -11,35 +12,76 @@ export default {
11
12
  diffThreshold: 0.4,
12
13
  },
13
14
  };
14
- export const _DropdownMenu = () => (_jsxs(DropdownMenu, { openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/never_been", children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, children: "Dropdown Button" })] }));
15
- _DropdownMenu.story = {
15
+ export const _DropdownMenu = {
16
+ render: () => (_jsxs(DropdownMenu, { openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/never_been", children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, children: "Dropdown Button" })] })),
16
17
  name: "DropdownMenu",
18
+ play: async ({ canvasElement, step }) => {
19
+ const canvas = within(canvasElement);
20
+ await step("opens the menu on click", async () => {
21
+ await userEvent.click(canvas.getByLabelText("open dropdown"));
22
+ await waitFor(() => expect(screen.getByText("Dropdown Button")).toBeVisible());
23
+ await expect(canvas.getByLabelText("close dropdown")).toBeInTheDocument();
24
+ });
25
+ await step("closes the menu on click", async () => {
26
+ await userEvent.click(canvas.getByLabelText("close dropdown"));
27
+ await waitFor(() => expect(canvas.queryByLabelText("close dropdown")).not.toBeInTheDocument());
28
+ });
29
+ },
17
30
  };
18
- export const WithCustomTrigger = () => (_jsxs(DropdownMenu, { openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", trigger: () => _jsx(Button, { children: "Custom Trigger" }), children: [_jsx(DropdownLink, { href: "/never_been", children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, children: "Dropdown Button" })] }));
19
- WithCustomTrigger.story = {
31
+ export const WithCustomTrigger = {
32
+ render: () => (_jsxs(DropdownMenu, { openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", trigger: () => _jsx(Button, { children: "Custom Trigger" }), children: [_jsx(DropdownLink, { href: "/never_been", children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, children: "Dropdown Button" })] })),
20
33
  name: "with custom trigger",
34
+ play: async ({ canvasElement, step }) => {
35
+ const canvas = within(canvasElement);
36
+ await step("opens the menu with a custom trigger", async () => {
37
+ await userEvent.click(canvas.getByLabelText("open dropdown"));
38
+ await waitFor(() => expect(screen.getByText("Dropdown Button")).toBeVisible());
39
+ });
40
+ },
21
41
  };
22
- export const WithCustomColors = () => (_jsxs(DropdownMenu, { defaultOpen: true, backgroundColor: "blackBlue", openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/never_been", ...customColors, children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, ...customColors, children: "Dropdown Button" })] }));
23
- WithCustomColors.story = {
42
+ export const WithCustomColors = {
43
+ render: () => (_jsxs(DropdownMenu, { defaultOpen: true, backgroundColor: "blackBlue", openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/never_been", ...customColors, children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, ...customColors, children: "Dropdown Button" })] })),
24
44
  name: "with custom colors",
25
45
  };
26
- export const WithButtonClosingMenu = () => (_jsx(DropdownMenu, { openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: ({ closeMenu }) => _jsx(DropdownButton, { onClick: closeMenu, children: "Dropdown Button" }) }));
27
- WithButtonClosingMenu.story = {
46
+ export const WithButtonClosingMenu = {
47
+ render: () => (_jsx(DropdownMenu, { openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: ({ closeMenu }) => _jsx(DropdownButton, { onClick: closeMenu, children: "Dropdown Button" }) })),
28
48
  name: "with button closing menu",
49
+ play: async ({ canvasElement, step }) => {
50
+ const canvas = within(canvasElement);
51
+ await step("opens the menu", async () => {
52
+ await userEvent.click(canvas.getByLabelText("open dropdown"));
53
+ await waitFor(() => expect(screen.getByText("Dropdown Button")).toBeVisible());
54
+ });
55
+ await step("closes the menu using the callback button", async () => {
56
+ await userEvent.click(screen.getByText("Dropdown Button"));
57
+ await waitFor(() => expect(canvas.queryByLabelText("close dropdown")).not.toBeInTheDocument());
58
+ });
59
+ },
29
60
  };
30
61
  export const WithCustomLink = () => (_jsx(DropdownMenu, { defaultOpen: true, openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: _jsx(DropdownItem, { children: _jsx("a", { href: "/never_been", children: "Custom Link Component" }) }) }));
31
62
  export const WithCustomText = () => (_jsx(DropdownMenu, { defaultOpen: true, children: _jsx(DropdownText, { children: "Custom Text" }) }));
32
- export const SetToDefaultOpen = () => (_jsxs(DropdownMenu, { defaultOpen: true, openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/never_been", children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, children: "Dropdown Button" }), _jsx(DropdownItem, { children: _jsx("a", { href: "/never_been", style: { textDecoration: "none" }, children: "Custom Link Component" }) }), _jsx(DropdownText, { children: "Custom Text" })] }));
33
- SetToDefaultOpen.story = {
63
+ export const SetToDefaultOpen = {
64
+ render: () => (_jsxs(DropdownMenu, { defaultOpen: true, openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/never_been", children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, children: "Dropdown Button" }), _jsx(DropdownItem, { children: _jsx("a", { href: "/never_been", style: { textDecoration: "none" }, children: "Custom Link Component" }) }), _jsx(DropdownText, { children: "Custom Text" })] })),
34
65
  name: "set to defaultOpen",
35
66
  };
36
- export const WithSubmenu = () => (_jsxs(DropdownMenu, { openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/never_been", children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, children: "Dropdown Button" }), _jsxs(DropdownMenu, { trigger: () => (_jsx(DropdownButton, { children: _jsxs(Flex, { justifyContent: "space-between", children: [_jsx(Text, { children: "Submenu" }), _jsx(Icon, { icon: "rightArrow", title: "right arrow" })] }) })), placement: "left-start", showArrow: false, openOnHover: true, openAriaLabel: "open sub dropdown", closeAriaLabel: "close sub dropdown", children: [_jsx(DropdownButton, { onClick: () => { }, children: "Inner Dropdown Button" }), _jsx(DropdownText, { children: " Inner Custom Text" })] })] }));
37
- WithSubmenu.story = {
67
+ export const WithSubmenu = {
68
+ render: () => (_jsxs(DropdownMenu, { openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/never_been", children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, children: "Dropdown Button" }), _jsxs(DropdownMenu, { trigger: () => (_jsx(DropdownButton, { children: _jsxs(Flex, { justifyContent: "space-between", children: [_jsx(Text, { children: "Submenu" }), _jsx(Icon, { icon: "rightArrow", title: "right arrow" })] }) })), placement: "left-start", showArrow: false, openOnHover: true, openAriaLabel: "open sub dropdown", closeAriaLabel: "close sub dropdown", children: [_jsx(DropdownButton, { onClick: () => { }, children: "Inner Dropdown Button" }), _jsx(DropdownText, { children: " Inner Custom Text" })] })] })),
38
69
  name: "with submenu",
70
+ play: async ({ canvasElement, step }) => {
71
+ const canvas = within(canvasElement);
72
+ await step("opens the menu", async () => {
73
+ await userEvent.click(canvas.getByLabelText("open dropdown"));
74
+ await waitFor(() => expect(screen.getByText("Dropdown Button")).toBeVisible());
75
+ });
76
+ await step("opens the submenu on hover", async () => {
77
+ await userEvent.hover(screen.getByLabelText("open sub dropdown"));
78
+ await waitFor(() => expect(screen.getByText("Inner Dropdown Button")).toBeVisible());
79
+ });
80
+ },
39
81
  };
40
82
  export const WithVisitedLinks = () => (_jsxs(DropdownMenu, { defaultOpen: true, openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/", children: "Dropdown Link" }), _jsx(DropdownItem, { children: _jsx("a", { href: "/", style: { textDecoration: "none" }, children: "Custom Link Component" }) })] }));
41
- export const SetToDisabled = () => (_jsxs(DropdownMenu, { disabled: true, openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/never_been", children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, children: "Dropdown Button" })] }));
42
- SetToDisabled.story = {
83
+ export const SetToDisabled = {
84
+ render: () => (_jsxs(DropdownMenu, { disabled: true, openAriaLabel: "open dropdown", closeAriaLabel: "close dropdown", children: [_jsx(DropdownLink, { href: "/never_been", children: "Dropdown Link" }), _jsx(DropdownButton, { onClick: () => { }, children: "Dropdown Button" })] })),
43
85
  name: "Set to disabled",
44
86
  };
45
87
  export const WithConditionallyRenderedMenuItems = () => {
@@ -47,7 +89,7 @@ export const WithConditionallyRenderedMenuItems = () => {
47
89
  const showItemC = true;
48
90
  return (_jsxs(DropdownMenu, { children: [_jsx(DropdownButton, { onClick: () => { }, children: "Item A" }), showItemB && _jsx(DropdownButton, { onClick: () => { }, children: "Conditional Item B" }), showItemC && _jsx(DropdownButton, { onClick: () => { }, children: "Conditional Item C" })] }));
49
91
  };
50
- export const WithRenderProps = () => (_jsx(DropdownMenu, { children: ({ closeMenu, openMenu }) => (_jsxs(_Fragment, { children: [_jsx(DropdownButton, { onClick: (e) => closeMenu(e), children: "Close menu" }), _jsx(DropdownButton, { onClick: (e) => openMenu(e), children: "Open menu" })] })) }));
51
- WithRenderProps.story = {
92
+ export const WithRenderProps = {
93
+ render: () => (_jsx(DropdownMenu, { children: ({ closeMenu, openMenu }) => (_jsxs(_Fragment, { children: [_jsx(DropdownButton, { onClick: (e) => closeMenu(e), children: "Close menu" }), _jsx(DropdownButton, { onClick: (e) => openMenu(e), children: "Open menu" })] })) })),
52
94
  name: "With render props",
53
95
  };
@@ -3,10 +3,8 @@ declare const _default: {
3
3
  };
4
4
  export default _default;
5
5
  export declare const _FieldLabel: {
6
- (): import("react/jsx-runtime").JSX.Element;
7
- story: {
8
- name: string;
9
- };
6
+ render: () => import("react/jsx-runtime").JSX.Element;
7
+ name: string;
10
8
  };
11
9
  export declare const WithHelpText: () => import("react/jsx-runtime").JSX.Element;
12
10
  export declare const WithRequirementText: () => import("react/jsx-runtime").JSX.Element;
@@ -5,8 +5,8 @@ const helpTextWithLink = (_jsxs(_Fragment, { children: ["I am help text. I can b
5
5
  export default {
6
6
  title: "Components/FieldLabel",
7
7
  };
8
- export const _FieldLabel = () => _jsx(FieldLabel, { labelText: "Default label" });
9
- _FieldLabel.story = {
8
+ export const _FieldLabel = {
9
+ render: () => _jsx(FieldLabel, { labelText: "Default label" }),
10
10
  name: "FieldLabel",
11
11
  };
12
12
  export const WithHelpText = () => _jsx(FieldLabel, { labelText: "Default label", helpText: helpTextWithLink });
@@ -4,104 +4,70 @@ declare const _default: {
4
4
  export default _default;
5
5
  export declare const _Flex: () => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const FlexDirectionSetToRowReverse: {
7
- (): import("react/jsx-runtime").JSX.Element;
8
- story: {
9
- name: string;
10
- };
7
+ render: () => import("react/jsx-runtime").JSX.Element;
8
+ name: string;
11
9
  };
12
10
  export declare const FlexDirectionSetToColumn: {
13
- (): import("react/jsx-runtime").JSX.Element;
14
- story: {
15
- name: string;
16
- };
11
+ render: () => import("react/jsx-runtime").JSX.Element;
12
+ name: string;
17
13
  };
18
14
  export declare const FlexDirectionSetToColumnReverse: {
19
- (): import("react/jsx-runtime").JSX.Element;
20
- story: {
21
- name: string;
22
- };
15
+ render: () => import("react/jsx-runtime").JSX.Element;
16
+ name: string;
23
17
  };
24
18
  export declare const FlexWrapSetToNoWrapDefault: {
25
- (): import("react/jsx-runtime").JSX.Element;
26
- story: {
27
- name: string;
28
- };
19
+ render: () => import("react/jsx-runtime").JSX.Element;
20
+ name: string;
29
21
  };
30
22
  export declare const FlexWrapSetToWrap: {
31
- (): import("react/jsx-runtime").JSX.Element;
32
- story: {
33
- name: string;
34
- };
23
+ render: () => import("react/jsx-runtime").JSX.Element;
24
+ name: string;
35
25
  };
36
26
  export declare const FlexWrapSetToWrapReverse: {
37
- (): import("react/jsx-runtime").JSX.Element;
38
- story: {
39
- name: string;
40
- };
27
+ render: () => import("react/jsx-runtime").JSX.Element;
28
+ name: string;
41
29
  };
42
30
  export declare const JustifyContentSetToFlexStartDefault: {
43
- (): import("react/jsx-runtime").JSX.Element;
44
- story: {
45
- name: string;
46
- };
31
+ render: () => import("react/jsx-runtime").JSX.Element;
32
+ name: string;
47
33
  };
48
34
  export declare const JustifyContentSetToFlexEnd: {
49
- (): import("react/jsx-runtime").JSX.Element;
50
- story: {
51
- name: string;
52
- };
35
+ render: () => import("react/jsx-runtime").JSX.Element;
36
+ name: string;
53
37
  };
54
38
  export declare const JustifyContentSetToCenter: {
55
- (): import("react/jsx-runtime").JSX.Element;
56
- story: {
57
- name: string;
58
- };
39
+ render: () => import("react/jsx-runtime").JSX.Element;
40
+ name: string;
59
41
  };
60
42
  export declare const JustifyContentSetToSpaceBetween: {
61
- (): import("react/jsx-runtime").JSX.Element;
62
- story: {
63
- name: string;
64
- };
43
+ render: () => import("react/jsx-runtime").JSX.Element;
44
+ name: string;
65
45
  };
66
46
  export declare const JustifyContentSetToSpaceAround: {
67
- (): import("react/jsx-runtime").JSX.Element;
68
- story: {
69
- name: string;
70
- };
47
+ render: () => import("react/jsx-runtime").JSX.Element;
48
+ name: string;
71
49
  };
72
50
  export declare const JustifyContentSetToSpaceEvenly: {
73
- (): import("react/jsx-runtime").JSX.Element;
74
- story: {
75
- name: string;
76
- };
51
+ render: () => import("react/jsx-runtime").JSX.Element;
52
+ name: string;
77
53
  };
78
54
  export declare const AlignItemsSetToStretchDefault: {
79
- (): import("react/jsx-runtime").JSX.Element;
80
- story: {
81
- name: string;
82
- };
55
+ render: () => import("react/jsx-runtime").JSX.Element;
56
+ name: string;
83
57
  };
84
58
  export declare const AlignItemsSetToFlexStart: {
85
- (): import("react/jsx-runtime").JSX.Element;
86
- story: {
87
- name: string;
88
- };
59
+ render: () => import("react/jsx-runtime").JSX.Element;
60
+ name: string;
89
61
  };
90
62
  export declare const AlignItemsSetToCenter: {
91
- (): import("react/jsx-runtime").JSX.Element;
92
- story: {
93
- name: string;
94
- };
63
+ render: () => import("react/jsx-runtime").JSX.Element;
64
+ name: string;
95
65
  };
96
66
  export declare const AlignItemsSetToFlexEnd: {
97
- (): import("react/jsx-runtime").JSX.Element;
98
- story: {
99
- name: string;
100
- };
67
+ render: () => import("react/jsx-runtime").JSX.Element;
68
+ name: string;
101
69
  };
102
70
  export declare const WithCustomOrder: {
103
- (): import("react/jsx-runtime").JSX.Element;
104
- story: {
105
- name: string;
106
- };
71
+ render: () => import("react/jsx-runtime").JSX.Element;
72
+ name: string;
107
73
  };
@@ -15,73 +15,73 @@ export default {
15
15
  export const _Flex = () => (_jsxs(Flex, { style: {
16
16
  boxSizing: "content-box",
17
17
  }, padding: "x3", bg: "whiteGrey", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
18
- export const FlexDirectionSetToRowReverse = () => (_jsxs(Flex, { style: {
19
- boxSizing: "content-box",
20
- }, flexDirection: "row-reverse", padding: "x3", bg: "whiteGrey", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
21
- FlexDirectionSetToRowReverse.story = {
18
+ export const FlexDirectionSetToRowReverse = {
19
+ render: () => (_jsxs(Flex, { style: {
20
+ boxSizing: "content-box",
21
+ }, flexDirection: "row-reverse", padding: "x3", bg: "whiteGrey", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
22
22
  name: "flexDirection set to row-reverse",
23
23
  };
24
- export const FlexDirectionSetToColumn = () => (_jsxs(Flex, { flexDirection: "column", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
25
- FlexDirectionSetToColumn.story = {
24
+ export const FlexDirectionSetToColumn = {
25
+ render: () => (_jsxs(Flex, { flexDirection: "column", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
26
26
  name: "flexDirection set to column",
27
27
  };
28
- export const FlexDirectionSetToColumnReverse = () => (_jsxs(Flex, { flexDirection: "column-reverse", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
29
- FlexDirectionSetToColumnReverse.story = {
28
+ export const FlexDirectionSetToColumnReverse = {
29
+ render: () => (_jsxs(Flex, { flexDirection: "column-reverse", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
30
30
  name: "flexDirection set to column-reverse",
31
31
  };
32
- export const FlexWrapSetToNoWrapDefault = () => (_jsx(Box, { width: 500, children: _jsxs(Flex, { flexWrap: "nowrap", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" }), _jsx(StyledBox, { children: "6" }), _jsx(StyledBox, { children: "7" })] }) }));
33
- FlexWrapSetToNoWrapDefault.story = {
32
+ export const FlexWrapSetToNoWrapDefault = {
33
+ render: () => (_jsx(Box, { width: 500, children: _jsxs(Flex, { flexWrap: "nowrap", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" }), _jsx(StyledBox, { children: "6" }), _jsx(StyledBox, { children: "7" })] }) })),
34
34
  name: "flexWrap set to no-wrap (default)",
35
35
  };
36
- export const FlexWrapSetToWrap = () => (_jsx(Box, { width: 500, children: _jsxs(Flex, { flexWrap: "wrap", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" }), _jsx(StyledBox, { children: "6" }), _jsx(StyledBox, { children: "7" })] }) }));
37
- FlexWrapSetToWrap.story = {
36
+ export const FlexWrapSetToWrap = {
37
+ render: () => (_jsx(Box, { width: 500, children: _jsxs(Flex, { flexWrap: "wrap", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" }), _jsx(StyledBox, { children: "6" }), _jsx(StyledBox, { children: "7" })] }) })),
38
38
  name: "flexWrap set to wrap",
39
39
  };
40
- export const FlexWrapSetToWrapReverse = () => (_jsx(Box, { width: 500, children: _jsxs(Flex, { flexWrap: "wrap-reverse", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" }), _jsx(StyledBox, { children: "6" }), _jsx(StyledBox, { children: "7" })] }) }));
41
- FlexWrapSetToWrapReverse.story = {
40
+ export const FlexWrapSetToWrapReverse = {
41
+ render: () => (_jsx(Box, { width: 500, children: _jsxs(Flex, { flexWrap: "wrap-reverse", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" }), _jsx(StyledBox, { children: "6" }), _jsx(StyledBox, { children: "7" })] }) })),
42
42
  name: "flexWrap set to wrap-reverse",
43
43
  };
44
- export const JustifyContentSetToFlexStartDefault = () => (_jsxs(Flex, { justifyContent: "flex-start", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
45
- JustifyContentSetToFlexStartDefault.story = {
44
+ export const JustifyContentSetToFlexStartDefault = {
45
+ render: () => (_jsxs(Flex, { justifyContent: "flex-start", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
46
46
  name: "justifyContent set to flex-start (default)",
47
47
  };
48
- export const JustifyContentSetToFlexEnd = () => (_jsxs(Flex, { justifyContent: "flex-end", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
49
- JustifyContentSetToFlexEnd.story = {
48
+ export const JustifyContentSetToFlexEnd = {
49
+ render: () => (_jsxs(Flex, { justifyContent: "flex-end", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
50
50
  name: "justifyContent set to flex-end",
51
51
  };
52
- export const JustifyContentSetToCenter = () => (_jsxs(Flex, { justifyContent: "center", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
53
- JustifyContentSetToCenter.story = {
52
+ export const JustifyContentSetToCenter = {
53
+ render: () => (_jsxs(Flex, { justifyContent: "center", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
54
54
  name: "justifyContent set to center",
55
55
  };
56
- export const JustifyContentSetToSpaceBetween = () => (_jsxs(Flex, { justifyContent: "space-between", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
57
- JustifyContentSetToSpaceBetween.story = {
56
+ export const JustifyContentSetToSpaceBetween = {
57
+ render: () => (_jsxs(Flex, { justifyContent: "space-between", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
58
58
  name: "justifyContent set to space-between",
59
59
  };
60
- export const JustifyContentSetToSpaceAround = () => (_jsxs(Flex, { justifyContent: "space-around", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
61
- JustifyContentSetToSpaceAround.story = {
60
+ export const JustifyContentSetToSpaceAround = {
61
+ render: () => (_jsxs(Flex, { justifyContent: "space-around", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
62
62
  name: "justifyContent set to space-around",
63
63
  };
64
- export const JustifyContentSetToSpaceEvenly = () => (_jsxs(Flex, { justifyContent: "space-evenly", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
65
- JustifyContentSetToSpaceEvenly.story = {
64
+ export const JustifyContentSetToSpaceEvenly = {
65
+ render: () => (_jsxs(Flex, { justifyContent: "space-evenly", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
66
66
  name: "justifyContent set to space-evenly",
67
67
  };
68
- export const AlignItemsSetToStretchDefault = () => (_jsxs(Flex, { alignItems: "stretch", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
69
- AlignItemsSetToStretchDefault.story = {
68
+ export const AlignItemsSetToStretchDefault = {
69
+ render: () => (_jsxs(Flex, { alignItems: "stretch", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
70
70
  name: "alignItems set to stretch (default)",
71
71
  };
72
- export const AlignItemsSetToFlexStart = () => (_jsxs(Flex, { alignItems: "flex-start", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
73
- AlignItemsSetToFlexStart.story = {
72
+ export const AlignItemsSetToFlexStart = {
73
+ render: () => (_jsxs(Flex, { alignItems: "flex-start", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
74
74
  name: "alignItems set to flex-start",
75
75
  };
76
- export const AlignItemsSetToCenter = () => (_jsxs(Flex, { alignItems: "center", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
77
- AlignItemsSetToCenter.story = {
76
+ export const AlignItemsSetToCenter = {
77
+ render: () => (_jsxs(Flex, { alignItems: "center", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
78
78
  name: "alignItems set to center",
79
79
  };
80
- export const AlignItemsSetToFlexEnd = () => (_jsxs(Flex, { alignItems: "flex-end", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] }));
81
- AlignItemsSetToFlexEnd.story = {
80
+ export const AlignItemsSetToFlexEnd = {
81
+ render: () => (_jsxs(Flex, { alignItems: "flex-end", children: [_jsx(StyledBox, { children: "1" }), _jsx(StyledBox, { children: "2" }), _jsx(StyledBox, { children: "3" }), _jsx(StyledBox, { children: "4" }), _jsx(StyledBox, { children: "5" })] })),
82
82
  name: "alignItems set to flex-end",
83
83
  };
84
- export const WithCustomOrder = () => (_jsxs(Flex, { children: [_jsx(StyledBox, { order: 1, children: "1" }), _jsx(StyledBox, { order: 3, children: "2" }), _jsx(StyledBox, { order: 2, children: "3" }), _jsx(StyledBox, { order: 5, children: "4" }), _jsx(StyledBox, { order: 4, children: "5" })] }));
85
- WithCustomOrder.story = {
84
+ export const WithCustomOrder = {
85
+ render: () => (_jsxs(Flex, { children: [_jsx(StyledBox, { order: 1, children: "1" }), _jsx(StyledBox, { order: 3, children: "2" }), _jsx(StyledBox, { order: 2, children: "3" }), _jsx(StyledBox, { order: 5, children: "4" }), _jsx(StyledBox, { order: 4, children: "5" })] })),
86
86
  name: "With custom order",
87
87
  };
@@ -4,27 +4,19 @@ declare const _default: {
4
4
  export default _default;
5
5
  export declare const _Form: () => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const WithoutTitle: {
7
- (): import("react/jsx-runtime").JSX.Element;
8
- story: {
9
- name: string;
10
- };
7
+ render: () => import("react/jsx-runtime").JSX.Element;
8
+ name: string;
11
9
  };
12
10
  export declare const WithFormSections: {
13
- (): import("react/jsx-runtime").JSX.Element;
14
- story: {
15
- name: string;
16
- };
11
+ render: () => import("react/jsx-runtime").JSX.Element;
12
+ name: string;
17
13
  };
18
14
  export declare const WithFormSectionsWithoutTitles: {
19
- (): import("react/jsx-runtime").JSX.Element;
20
- story: {
21
- name: string;
22
- };
15
+ render: () => import("react/jsx-runtime").JSX.Element;
16
+ name: string;
23
17
  };
24
18
  export declare const DemoForm: {
25
- (): import("react/jsx-runtime").JSX.Element;
26
- story: {
27
- name: string;
28
- };
19
+ render: () => import("react/jsx-runtime").JSX.Element;
20
+ name: string;
29
21
  };
30
22
  export declare const WithAnAction: () => import("react/jsx-runtime").JSX.Element;
@@ -8,20 +8,20 @@ export default {
8
8
  title: "Components/Form",
9
9
  };
10
10
  export const _Form = () => (_jsxs(Form, { title: "New Profile", children: [_jsx(Input, { id: "name", labelText: "Name" }), _jsx(Input, { id: "birthdate", placeholder: "DD-MM-YYYY", labelText: "Date of birth", requirementText: "(Optional)", helpText: "Enter a date below" }), _jsx(Input, { id: "birthplace", labelText: "Place of birth", requirementText: "(Optional)" })] }));
11
- export const WithoutTitle = () => (_jsxs(Form, { children: [_jsx(Input, { id: "name", labelText: "Name" }), _jsx(Input, { id: "birthdate", placeholder: "DD-MM-YYYY", labelText: "Date of birth", requirementText: "(Optional)", helpText: "Enter a date below" }), _jsx(Input, { id: "birthplace", labelText: "Place of birth", requirementText: "(Optional)" })] }));
12
- WithoutTitle.story = {
11
+ export const WithoutTitle = {
12
+ render: () => (_jsxs(Form, { children: [_jsx(Input, { id: "name", labelText: "Name" }), _jsx(Input, { id: "birthdate", placeholder: "DD-MM-YYYY", labelText: "Date of birth", requirementText: "(Optional)", helpText: "Enter a date below" }), _jsx(Input, { id: "birthplace", labelText: "Place of birth", requirementText: "(Optional)" })] })),
13
13
  name: "Without title",
14
14
  };
15
- export const WithFormSections = () => (_jsxs(Form, { title: "New Profile", children: [_jsxs(FormSection, { title: "Personal Information", children: [_jsx(Input, { id: "name", labelText: "Name" }), _jsx(Input, { id: "birthdate", placeholder: "DD-MM-YYYY", labelText: "Date of birth", requirementText: "(Optional)", helpText: "Enter a date below" }), _jsx(Input, { id: "birthplace", labelText: "Place of birth", requirementText: "(Optional)" })] }), _jsxs(FormSection, { title: "General Information", children: [_jsx(Input, { id: "gender", labelText: "Gender" }), _jsx(Input, { id: "occupation", labelText: "Occupation" })] })] }));
16
- WithFormSections.story = {
15
+ export const WithFormSections = {
16
+ render: () => (_jsxs(Form, { title: "New Profile", children: [_jsxs(FormSection, { title: "Personal Information", children: [_jsx(Input, { id: "name", labelText: "Name" }), _jsx(Input, { id: "birthdate", placeholder: "DD-MM-YYYY", labelText: "Date of birth", requirementText: "(Optional)", helpText: "Enter a date below" }), _jsx(Input, { id: "birthplace", labelText: "Place of birth", requirementText: "(Optional)" })] }), _jsxs(FormSection, { title: "General Information", children: [_jsx(Input, { id: "gender", labelText: "Gender" }), _jsx(Input, { id: "occupation", labelText: "Occupation" })] })] })),
17
17
  name: "With form sections",
18
18
  };
19
- export const WithFormSectionsWithoutTitles = () => (_jsxs(Form, { title: "New Profile", children: [_jsxs(FormSection, { children: [_jsx(Input, { id: "name", labelText: "Name" }), _jsx(Input, { id: "birthdate", placeholder: "DD-MM-YYYY", labelText: "Date of birth", requirementText: "(Optional)", helpText: "Enter a date below" }), _jsx(Input, { id: "birthplace", labelText: "Place of birth", requirementText: "(Optional)" })] }), _jsxs(FormSection, { children: [_jsx(Input, { id: "gender", labelText: "Gender" }), _jsx(Input, { id: "occupation", labelText: "Occupation" })] })] }));
20
- WithFormSectionsWithoutTitles.story = {
19
+ export const WithFormSectionsWithoutTitles = {
20
+ render: () => (_jsxs(Form, { title: "New Profile", children: [_jsxs(FormSection, { children: [_jsx(Input, { id: "name", labelText: "Name" }), _jsx(Input, { id: "birthdate", placeholder: "DD-MM-YYYY", labelText: "Date of birth", requirementText: "(Optional)", helpText: "Enter a date below" }), _jsx(Input, { id: "birthplace", labelText: "Place of birth", requirementText: "(Optional)" })] }), _jsxs(FormSection, { children: [_jsx(Input, { id: "gender", labelText: "Gender" }), _jsx(Input, { id: "occupation", labelText: "Occupation" })] })] })),
21
21
  name: "With form sections without titles",
22
22
  };
23
- export const DemoForm = () => (_jsx(_Fragment, { children: _jsxs(Form, { title: "Job 324400", children: [_jsxs(Alert, { type: "danger", title: "Errors have occured ...", children: [_jsx(Text, { children: "Instructions and description of errors" }), _jsxs(List, { compact: true, children: [_jsx(ListItem, { children: "Affected field" }), _jsx(ListItem, { children: "Unmet criteria" }), _jsx(ListItem, { children: _jsx("a", { href: "https://nulogy.design/", children: "Affected field" }) })] })] }), _jsxs(FormSection, { title: "Job Information", children: [_jsx(Input, { id: "project", labelText: "Project", placeholder: "Project 128703" }), _jsx(Input, { id: "project-description", labelText: "Project description", requirementText: "(Optional)", helpText: "Project description helps identify the project." }), _jsx(Select, { id: "project-status", labelText: "Project status", options: options }), _jsx(Input, { id: "item-code", labelText: "Item code", defaultValue: "WS2SB6", errorMessage: "Item WS2SB6 does not exist." }), _jsx(Input, { id: "eaches-expected", labelText: "Eaches expected on Job", placeholder: "2 000" }), _jsx(Input, { id: "eaches-remaining", labelText: "Eaches remaining on Project", defaultValue: "18 000", disabled: true }), _jsx(Input, { id: "scheduled-start", labelText: "Scheduled start", placeholder: "MMM-DD-YYYY" }), _jsx(Input, { id: "scheduled-end", labelText: "Scheduled end", placeholder: "MMM-DD-YYYY" }), _jsxs(CheckboxGroup, { labelText: "Line Lead", name: "linelead", requirementText: "(Optional)", children: [_jsx(Checkbox, { value: "christiaan", labelText: "Christiaan Oostenbrug" }), _jsx(Checkbox, { value: "matt", labelText: "Matt Dunn" }), _jsx(Checkbox, { value: "clemens", labelText: "Clemens Park", disabled: true, checked: true }), _jsx(Checkbox, { value: "nikola", labelText: "Nikola Pejcic", disabled: true })] }), _jsxs(RadioGroup, { errorMessage: "Only yes can be selected...", labelText: "Reconcile", name: "settingSelection", defaultValue: "yes", id: "reconcile", children: [_jsx(Radio, { value: "yes", labelText: "Yes" }), _jsx(Radio, { value: "no", labelText: "No" }), _jsx(Radio, { value: "maybe", labelText: "Maybe", disabled: true })] }), _jsx(Toggle, { id: "job-visibility", labelText: "Job Visibility", onText: "Visible", offText: "Hidden" })] }), _jsxs(FormSection, { title: "Rejects", children: [_jsx(Input, { defaultValue: "235432", id: "items", labelText: "Item", errorMessage: "Item 235432 is not a valid entry" }), _jsx(Input, { id: "quantity", labelText: "Quantity" }), _jsx(Toggle, { id: "reject-visibility", labelText: "Reject visibility", onText: "Visible", offText: "Hidden", disabled: true })] })] }) }));
24
- DemoForm.story = {
23
+ export const DemoForm = {
24
+ render: () => (_jsx(_Fragment, { children: _jsxs(Form, { title: "Job 324400", children: [_jsxs(Alert, { type: "danger", title: "Errors have occured ...", children: [_jsx(Text, { children: "Instructions and description of errors" }), _jsxs(List, { compact: true, children: [_jsx(ListItem, { children: "Affected field" }), _jsx(ListItem, { children: "Unmet criteria" }), _jsx(ListItem, { children: _jsx("a", { href: "https://nulogy.design/", children: "Affected field" }) })] })] }), _jsxs(FormSection, { title: "Job Information", children: [_jsx(Input, { id: "project", labelText: "Project", placeholder: "Project 128703" }), _jsx(Input, { id: "project-description", labelText: "Project description", requirementText: "(Optional)", helpText: "Project description helps identify the project." }), _jsx(Select, { id: "project-status", labelText: "Project status", options: options }), _jsx(Input, { id: "item-code", labelText: "Item code", defaultValue: "WS2SB6", errorMessage: "Item WS2SB6 does not exist." }), _jsx(Input, { id: "eaches-expected", labelText: "Eaches expected on Job", placeholder: "2 000" }), _jsx(Input, { id: "eaches-remaining", labelText: "Eaches remaining on Project", defaultValue: "18 000", disabled: true }), _jsx(Input, { id: "scheduled-start", labelText: "Scheduled start", placeholder: "MMM-DD-YYYY" }), _jsx(Input, { id: "scheduled-end", labelText: "Scheduled end", placeholder: "MMM-DD-YYYY" }), _jsxs(CheckboxGroup, { labelText: "Line Lead", name: "linelead", requirementText: "(Optional)", children: [_jsx(Checkbox, { value: "christiaan", labelText: "Christiaan Oostenbrug" }), _jsx(Checkbox, { value: "matt", labelText: "Matt Dunn" }), _jsx(Checkbox, { value: "clemens", labelText: "Clemens Park", disabled: true, checked: true }), _jsx(Checkbox, { value: "nikola", labelText: "Nikola Pejcic", disabled: true })] }), _jsxs(RadioGroup, { errorMessage: "Only yes can be selected...", labelText: "Reconcile", name: "settingSelection", defaultValue: "yes", id: "reconcile", children: [_jsx(Radio, { value: "yes", labelText: "Yes" }), _jsx(Radio, { value: "no", labelText: "No" }), _jsx(Radio, { value: "maybe", labelText: "Maybe", disabled: true })] }), _jsx(Toggle, { id: "job-visibility", labelText: "Job Visibility", onText: "Visible", offText: "Hidden" })] }), _jsxs(FormSection, { title: "Rejects", children: [_jsx(Input, { defaultValue: "235432", id: "items", labelText: "Item", errorMessage: "Item 235432 is not a valid entry" }), _jsx(Input, { id: "quantity", labelText: "Quantity" }), _jsx(Toggle, { id: "reject-visibility", labelText: "Reject visibility", onText: "Visible", offText: "Hidden", disabled: true })] })] }) })),
25
25
  name: "Demo form",
26
26
  };
27
27
  export const WithAnAction = () => {
@@ -3,38 +3,26 @@ declare const _default: {
3
3
  };
4
4
  export default _default;
5
5
  export declare const BasicIcon: {
6
- (): import("react/jsx-runtime").JSX.Element;
7
- story: {
8
- name: string;
9
- };
6
+ render: () => import("react/jsx-runtime").JSX.Element;
7
+ name: string;
10
8
  };
11
9
  export declare const _InlineIcon: {
12
- (): import("react/jsx-runtime").JSX.Element;
13
- story: {
14
- name: string;
15
- };
10
+ render: () => import("react/jsx-runtime").JSX.Element;
11
+ name: string;
16
12
  };
17
13
  export declare const WithAColor: {
18
- (): import("react/jsx-runtime").JSX.Element;
19
- story: {
20
- name: string;
21
- };
14
+ render: () => import("react/jsx-runtime").JSX.Element;
15
+ name: string;
22
16
  };
23
17
  export declare const WithASize: {
24
- (): import("react/jsx-runtime").JSX.Element;
25
- story: {
26
- name: string;
27
- };
18
+ render: () => import("react/jsx-runtime").JSX.Element;
19
+ name: string;
28
20
  };
29
21
  export declare const WithAddedMargin: {
30
- (): import("react/jsx-runtime").JSX.Element;
31
- story: {
32
- name: string;
33
- };
22
+ render: () => import("react/jsx-runtime").JSX.Element;
23
+ name: string;
34
24
  };
35
25
  export declare const WithAccessibilityTitle: {
36
- (): import("react/jsx-runtime").JSX.Element;
37
- story: {
38
- name: string;
39
- };
26
+ render: () => import("react/jsx-runtime").JSX.Element;
27
+ name: string;
40
28
  };
@@ -8,30 +8,30 @@ const IconCode = ({ icon }) => (_jsxs("code", { children: ["<Icon icon=\"", _jsx
8
8
  export default {
9
9
  title: "Components/Icon",
10
10
  };
11
- export const BasicIcon = () => (_jsx(_Fragment, { children: iconNames.map((iconName) => (_jsxs(Flex, { my: "x2", children: [_jsx(Icon, { mr: "20px", icon: iconName }), _jsx(IconCode, { icon: iconName })] }, iconName))) }));
12
- BasicIcon.story = {
11
+ export const BasicIcon = {
12
+ render: () => (_jsx(_Fragment, { children: iconNames.map((iconName) => (_jsxs(Flex, { my: "x2", children: [_jsx(Icon, { mr: "20px", icon: iconName }), _jsx(IconCode, { icon: iconName })] }, iconName))) })),
13
13
  name: "Icon",
14
14
  };
15
- export const _InlineIcon = () => (_jsx(_Fragment, { children: [1, 2, 3, 4].map((size) => (_jsxs("p", { style: { fontSize: `${size}em` }, children: ["@", size, "em: \u00A0", iconSubset.map((iconName) => (_jsx(InlineIcon, { icon: iconName }, iconName)))] }, size))) }));
16
- _InlineIcon.story = {
15
+ export const _InlineIcon = {
16
+ render: () => (_jsx(_Fragment, { children: [1, 2, 3, 4].map((size) => (_jsxs("p", { style: { fontSize: `${size}em` }, children: ["@", size, "em: \u00A0", iconSubset.map((iconName) => (_jsx(InlineIcon, { icon: iconName }, iconName)))] }, size))) })),
17
17
  name: "InlineIcon",
18
18
  };
19
- export const WithAColor = () => (_jsx(_Fragment, { children: ["red", "yellow", "green", "blue", "blackBlue"].map((color) => (_jsx(Box, { children: iconSubset.map((iconName) => (_jsx(Icon, { icon: iconName, color: color }, iconName))) }, color))) }));
20
- WithAColor.story = {
19
+ export const WithAColor = {
20
+ render: () => (_jsx(_Fragment, { children: ["red", "yellow", "green", "blue", "blackBlue"].map((color) => (_jsx(Box, { children: iconSubset.map((iconName) => (_jsx(Icon, { icon: iconName, color: color }, iconName))) }, color))) })),
21
21
  name: "With a color",
22
22
  };
23
- export const WithASize = () => {
24
- const theme = useTheme();
25
- return (_jsx(_Fragment, { children: [theme.space.x1, theme.space.x2, theme.space.x3].map((size) => (_jsx(Box, { children: iconSubset.map((iconName) => (_jsx(Icon, { icon: iconName, size: size }, iconName))) }, size))) }));
26
- };
27
- WithASize.story = {
23
+ export const WithASize = {
24
+ render: () => {
25
+ const theme = useTheme();
26
+ return (_jsx(_Fragment, { children: [theme.space.x1, theme.space.x2, theme.space.x3].map((size) => (_jsx(Box, { children: iconSubset.map((iconName) => (_jsx(Icon, { icon: iconName, size: size }, iconName))) }, size))) }));
27
+ },
28
28
  name: "With a size",
29
29
  };
30
- export const WithAddedMargin = () => (_jsxs(Box, { m: "x3", children: [_jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { m: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { mt: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { mr: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { mb: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { ml: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { mx: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { my: "x2", icon: "delete" }) })] }));
31
- WithAddedMargin.story = {
30
+ export const WithAddedMargin = {
31
+ render: () => (_jsxs(Box, { m: "x3", children: [_jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { m: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { mt: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { mr: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { mb: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { ml: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { mx: "x2", icon: "delete" }) }), _jsx(Box, { style: { display: "inline-block" }, m: "x3", bg: "lightGrey", children: _jsx(Icon, { my: "x2", icon: "delete" }) })] })),
32
32
  name: "With added margin",
33
33
  };
34
- export const WithAccessibilityTitle = () => (_jsxs(_Fragment, { children: [_jsxs(Flex, { p: "x2", children: [_jsx(Icon, { icon: "user", title: "User account" }), " This has a title attribute so it will be read by assistive devices."] }), _jsxs(Flex, { p: "x2", children: [_jsx(Icon, { icon: "user" }), " This doesn't have a title attribute, so it has aria-hidden set true instead."] })] }));
35
- WithAccessibilityTitle.story = {
34
+ export const WithAccessibilityTitle = {
35
+ render: () => (_jsxs(_Fragment, { children: [_jsxs(Flex, { p: "x2", children: [_jsx(Icon, { icon: "user", title: "User account" }), " This has a title attribute so it will be read by assistive devices."] }), _jsxs(Flex, { p: "x2", children: [_jsx(Icon, { icon: "user" }), " This doesn't have a title attribute, so it has aria-hidden set true instead."] })] })),
36
36
  name: "With accessibility title",
37
37
  };