@nulogy/components 16.0.1 → 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 (205) hide show
  1. package/dist/main.js +46 -59
  2. package/dist/main.js.map +1 -1
  3. package/dist/main.module.js +46 -59
  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/BottomSheet.parts.d.ts +2 -2
  14. package/dist/src/BottomSheet/BottomSheet.styled.d.ts +10 -6
  15. package/dist/src/BottomSheet/stories/BottomSheet.actions.story.d.ts +8 -1
  16. package/dist/src/BottomSheet/stories/BottomSheet.actions.story.js +22 -3
  17. package/dist/src/BottomSheet/stories/BottomSheet.features.story.d.ts +9 -2
  18. package/dist/src/BottomSheet/stories/BottomSheet.features.story.js +27 -12
  19. package/dist/src/BottomSheet/stories/BottomSheet.story.d.ts +7 -1
  20. package/dist/src/BottomSheet/stories/BottomSheet.story.js +20 -3
  21. package/dist/src/Box/Box.d.ts +12 -13
  22. package/dist/src/Box/Box.story.d.ts +22 -44
  23. package/dist/src/Box/Box.story.js +30 -30
  24. package/dist/src/BrandedNavBar/DesktopMenu.d.ts +3 -1
  25. package/dist/src/BrandedNavBar/NavBar.js +2 -2
  26. package/dist/src/BrandedNavBar/NavBar.story.d.ts +16 -28
  27. package/dist/src/BrandedNavBar/NavBar.story.js +41 -35
  28. package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +1 -1
  29. package/dist/src/Breadcrumbs/Breadcrumbs.story.d.ts +4 -8
  30. package/dist/src/Breadcrumbs/Breadcrumbs.story.js +4 -4
  31. package/dist/src/Button/Button.story.d.ts +14 -28
  32. package/dist/src/Button/Button.story.js +14 -14
  33. package/dist/src/Button/ControlIcon.story.js +1 -1
  34. package/dist/src/Button/DangerButton.d.ts +3 -1
  35. package/dist/src/Button/IconicButton.story.d.ts +23 -45
  36. package/dist/src/Button/IconicButton.story.js +27 -25
  37. package/dist/src/Button/PrimaryButton.d.ts +3 -1
  38. package/dist/src/Button/QuietButton.d.ts +3 -1
  39. package/dist/src/ButtonGroup/ButtonGroup.story.d.ts +13 -23
  40. package/dist/src/ButtonGroup/ButtonGroup.story.js +10 -10
  41. package/dist/src/Card/Card.story.d.ts +3 -5
  42. package/dist/src/Card/Card.story.js +9 -7
  43. package/dist/src/Checkbox/Checkbox.story.d.ts +18 -34
  44. package/dist/src/Checkbox/Checkbox.story.js +28 -24
  45. package/dist/src/Checkbox/CheckboxGroup.story.d.ts +10 -20
  46. package/dist/src/Checkbox/CheckboxGroup.story.js +10 -10
  47. package/dist/src/DatePickers/stories/DatePicker.story.d.ts +9 -2
  48. package/dist/src/DatePickers/stories/DatePicker.story.js +43 -2
  49. package/dist/src/DatePickers/stories/MonthPicker.story.d.ts +8 -1
  50. package/dist/src/DatePickers/stories/MonthPicker.story.js +21 -2
  51. package/dist/src/DatePickers/stories/WeekPicker.story.d.ts +32 -4
  52. package/dist/src/DatePickers/stories/WeekPicker.story.js +57 -8
  53. package/dist/src/DateRange/DateRange.story.d.ts +16 -2
  54. package/dist/src/DateRange/DateRange.story.js +41 -3
  55. package/dist/src/DateRange/EndTime.d.ts +5 -7
  56. package/dist/src/DateRange/StartTime.d.ts +5 -7
  57. package/dist/src/DescriptionList/stories/DescriptionList.column.story.d.ts +1 -1
  58. package/dist/src/DescriptionList/stories/DescriptionList.column.story.js +10 -8
  59. package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.d.ts +1 -1
  60. package/dist/src/DescriptionList/stories/DescriptionList.layout.story.d.ts +1 -1
  61. package/dist/src/DescriptionList/stories/DescriptionList.layout.story.js +12 -10
  62. package/dist/src/DescriptionList/stories/DescriptionList.playground.story.d.ts +1 -1
  63. package/dist/src/DescriptionList/stories/DescriptionList.story.d.ts +1 -0
  64. package/dist/src/DescriptionList/stories/DescriptionList.story.js +3 -0
  65. package/dist/src/DescriptionList/stories/fixtures.d.ts +2 -2
  66. package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +32 -32
  67. package/dist/src/DropdownMenu/DropdownMenu.story.js +58 -16
  68. package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +1 -1
  69. package/dist/src/DropdownMenu/DropdownText.d.ts +1 -1
  70. package/dist/src/FieldLabel/FieldLabel.story.d.ts +2 -4
  71. package/dist/src/FieldLabel/FieldLabel.story.js +2 -2
  72. package/dist/src/FieldLabel/HelpText.d.ts +1 -1
  73. package/dist/src/Flex/Flex.story.d.ts +34 -68
  74. package/dist/src/Flex/Flex.story.js +36 -36
  75. package/dist/src/Form/Form.story.d.ts +8 -16
  76. package/dist/src/Form/Form.story.js +8 -8
  77. package/dist/src/Icon/Icon.d.ts +6 -2
  78. package/dist/src/Icon/Icon.story.d.ts +12 -24
  79. package/dist/src/Icon/Icon.story.js +15 -15
  80. package/dist/src/Input/Input.story.d.ts +16 -32
  81. package/dist/src/Input/Input.story.js +23 -23
  82. package/dist/src/Layout/Page.applicationFrame.story.d.ts +1 -1
  83. package/dist/src/Layout/Page.story.d.ts +1 -1
  84. package/dist/src/Layout/Sidebar.story.d.ts +1 -1
  85. package/dist/src/Link/Link.story.d.ts +16 -32
  86. package/dist/src/Link/Link.story.js +16 -17
  87. package/dist/src/List/List.story.d.ts +8 -16
  88. package/dist/src/List/List.story.js +8 -8
  89. package/dist/src/LoadingAnimation/LoadingAnimation.story.d.ts +4 -8
  90. package/dist/src/LoadingAnimation/LoadingAnimation.story.js +4 -4
  91. package/dist/src/MaybeTooltip/MaybeTooltip.story.d.ts +1 -1
  92. package/dist/src/Modal/Modal.d.ts +5 -3
  93. package/dist/src/Modal/Modal.js +2 -2
  94. package/dist/src/Modal/Modal.story.d.ts +2 -24
  95. package/dist/src/Modal/ModalCloseButton.d.ts +4 -2
  96. package/dist/src/Modal/ModalContent.d.ts +1 -1
  97. package/dist/src/Navigation/components/AppSwitcher/parts/Item.d.ts +3 -1
  98. package/dist/src/Navigation/components/AppSwitcher/parts/index.d.ts +15 -7
  99. package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.d.ts +5 -1
  100. package/dist/src/Navigation/components/MenuSubItem/parts/styled.d.ts +17 -5
  101. package/dist/src/Navigation/components/MobileNav/parts/styled.d.ts +10 -4
  102. package/dist/src/Navigation/components/UserMenu/UserMenu.d.ts +5 -1
  103. package/dist/src/Navigation/components/UserMenu/parts/styled.d.ts +6 -2
  104. package/dist/src/Navigation/components/shared/NavigationMenuContent.d.ts +5 -1
  105. package/dist/src/Navigation/components/shared/NavigationMenuItem.d.ts +3 -1
  106. package/dist/src/Navigation/components/shared/components.d.ts +35 -9
  107. package/dist/src/Navigation/stories/Navigation.appSwitcher.story.d.ts +8 -1
  108. package/dist/src/Navigation/stories/Navigation.appSwitcher.story.js +19 -1
  109. package/dist/src/Navigation/stories/Navigation.logos.story.d.ts +2 -4
  110. package/dist/src/Navigation/stories/Navigation.logos.story.js +4 -4
  111. package/dist/src/Navigation/stories/Navigation.story.d.ts +7 -1
  112. package/dist/src/Navigation/stories/Navigation.story.js +145 -136
  113. package/dist/src/Navigation/stories/Navigation.userMenu.story.d.ts +8 -1
  114. package/dist/src/Navigation/stories/Navigation.userMenu.story.js +22 -1
  115. package/dist/src/Overlay/Overlay.story.d.ts +2 -4
  116. package/dist/src/Overlay/Overlay.story.js +2 -2
  117. package/dist/src/Pagination/Pagination.story.d.ts +14 -13
  118. package/dist/src/Pagination/Pagination.story.js +32 -11
  119. package/dist/src/Radio/Radio.story.d.ts +13 -15
  120. package/dist/src/Radio/Radio.story.js +44 -1
  121. package/dist/src/Radio/RadioGroup.story.d.ts +29 -21
  122. package/dist/src/Radio/RadioGroup.story.js +67 -14
  123. package/dist/src/RangeContainer/RangeContainer.story.d.ts +2 -4
  124. package/dist/src/RangeContainer/RangeContainer.story.js +2 -2
  125. package/dist/src/Select/Select.story.d.ts +37 -65
  126. package/dist/src/Select/Select.story.js +93 -49
  127. package/dist/src/StatusIndicator/StatusIndicator.story.d.ts +4 -8
  128. package/dist/src/StatusIndicator/StatusIndicator.story.js +4 -4
  129. package/dist/src/Summary/Summary.d.ts +1 -2
  130. package/dist/src/Summary/Summary.js +2 -2
  131. package/dist/src/Summary/SummaryContext.d.ts +3 -1
  132. package/dist/src/Summary/SummaryContext.js +2 -2
  133. package/dist/src/Summary/SummaryItem.d.ts +1 -1
  134. package/dist/src/Summary/SummaryItem.js +2 -2
  135. package/dist/src/Switcher/Switcher.d.ts +2 -2
  136. package/dist/src/Switcher/Switcher.js +2 -2
  137. package/dist/src/Switcher/Switcher.story.d.ts +8 -1
  138. package/dist/src/Switcher/Switcher.story.js +13 -1
  139. package/dist/src/Table/stories/BaseTable.story.d.ts +1 -1
  140. package/dist/src/Table/stories/BaseTable.story.js +1 -1
  141. package/dist/src/Table/stories/CustomContent.story.js +1 -1
  142. package/dist/src/Table/stories/Density.story.d.ts +4 -8
  143. package/dist/src/Table/stories/Density.story.js +4 -4
  144. package/dist/src/Table/stories/SortingColumnHeader.story.d.ts +1 -1
  145. package/dist/src/Table/stories/SortingColumnHeader.story.js +1 -1
  146. package/dist/src/Table/stories/Table.story.d.ts +1 -1
  147. package/dist/src/Table/stories/Table.story.js +37 -1
  148. package/dist/src/Table/stories/TableWithCustomSorting.story.d.ts +2 -4
  149. package/dist/src/Table/stories/TableWithCustomSorting.story.js +2 -2
  150. package/dist/src/Table/stories/TableWithExpandableRows.story.d.ts +4 -8
  151. package/dist/src/Table/stories/TableWithExpandableRows.story.js +5 -5
  152. package/dist/src/Table/stories/TableWithFiltering.story.d.ts +8 -8
  153. package/dist/src/Table/stories/TableWithFiltering.story.js +15 -4
  154. package/dist/src/Table/stories/TableWithSelectableRows.story.d.ts +8 -8
  155. package/dist/src/Table/stories/TableWithSelectableRows.story.js +22 -5
  156. package/dist/src/Table/stories/TableWithServerSidePagination.story.d.ts +2 -4
  157. package/dist/src/Table/stories/TableWithServerSidePagination.story.js +2 -2
  158. package/dist/src/Tabs/TabScrollIndicator.d.ts +1 -1
  159. package/dist/src/Tabs/TabScrollIndicator.js +2 -2
  160. package/dist/src/Tabs/Tabs.story.d.ts +33 -33
  161. package/dist/src/Tabs/Tabs.story.js +52 -16
  162. package/dist/src/Textarea/Textarea.story.js +1 -1
  163. package/dist/src/TimePicker/TimePicker.d.ts +1 -1
  164. package/dist/src/TimePicker/TimePicker.js +2 -0
  165. package/dist/src/TimePicker/TimePicker.story.d.ts +24 -40
  166. package/dist/src/TimePicker/TimePicker.story.js +40 -27
  167. package/dist/src/TimePicker/TimePickerInput.d.ts +3 -1
  168. package/dist/src/TimeRange/TimeRange.d.ts +3 -2
  169. package/dist/src/TimeRange/TimeRange.story.d.ts +14 -20
  170. package/dist/src/TimeRange/TimeRange.story.js +34 -20
  171. package/dist/src/Toast/Toast.story.d.ts +24 -25
  172. package/dist/src/Toast/Toast.story.js +170 -142
  173. package/dist/src/ToastContainer/ToastContainer.story.d.ts +8 -1
  174. package/dist/src/ToastContainer/ToastContainer.story.js +13 -1
  175. package/dist/src/ToastContainer/ToastFunction.js +2 -2
  176. package/dist/src/Toggle/Toggle.story.d.ts +25 -15
  177. package/dist/src/Toggle/Toggle.story.js +77 -43
  178. package/dist/src/Toggle/ToggleButton.js +2 -2
  179. package/dist/src/Tooltip/Tooltip.story.d.ts +1 -1
  180. package/dist/src/Tooltip/Tooltip.story.js +16 -0
  181. package/dist/src/TopBar/TopBar.styled.d.ts +16 -15
  182. package/dist/src/TopBar/components/BackLink.d.ts +3 -1
  183. package/dist/src/TopBar/components/MenuItemLink.d.ts +3 -1
  184. package/dist/src/TopBar/stories/TopBar.backButton.story.js +1 -1
  185. package/dist/src/TopBar/stories/TopBar.menu.story.js +1 -1
  186. package/dist/src/TopBar/stories/TopBar.story.d.ts +7 -1
  187. package/dist/src/TopBar/stories/TopBar.story.js +18 -1
  188. package/dist/src/TruncatedText/TruncatedText.story.d.ts +29 -34
  189. package/dist/src/TruncatedText/TruncatedText.story.js +46 -19
  190. package/dist/src/Type/Headings.d.ts +4 -4
  191. package/dist/src/Type/Text.story.d.ts +10 -20
  192. package/dist/src/Type/Text.story.js +10 -10
  193. package/dist/src/Validation/InlineValidation.story.d.ts +6 -12
  194. package/dist/src/Validation/InlineValidation.story.js +6 -6
  195. package/dist/src/VisualTests/Select.story.d.ts +12 -24
  196. package/dist/src/VisualTests/Select.story.js +19 -19
  197. package/dist/src/pages/ErrorPage.story.d.ts +3 -5
  198. package/dist/src/pages/ErrorPage.story.js +10 -10
  199. package/dist/src/pages/LoginPage.story.d.ts +8 -16
  200. package/dist/src/pages/LoginPage.story.js +8 -8
  201. package/dist/src/utils/story/dashed.d.ts +1 -3
  202. package/dist/src/utils/story/resizable.d.ts +4 -2
  203. package/dist/src/utils/ts/FocusManager.d.ts +1 -1
  204. package/dist/src/utils/ts/FocusManager.js +2 -2
  205. package/package.json +25 -34
@@ -4,45 +4,31 @@ declare const _default: {
4
4
  export default _default;
5
5
  export declare const _Button: () => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const _PrimaryButton: {
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 _DangerButton: {
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 _QuietButton: {
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 WithDifferentSizes: () => import("react/jsx-runtime").JSX.Element;
25
19
  export declare const WithASelectedIcon: {
26
- (): import("react/jsx-runtime").JSX.Element;
27
- story: {
28
- name: string;
29
- };
20
+ render: () => import("react/jsx-runtime").JSX.Element;
21
+ name: string;
30
22
  };
31
23
  export declare const SetToFullWidth: {
32
- (): import("react/jsx-runtime").JSX.Element;
33
- story: {
34
- name: string;
35
- };
24
+ render: () => import("react/jsx-runtime").JSX.Element;
25
+ name: string;
36
26
  };
37
27
  export declare const SetToDisabled: {
38
- (): import("react/jsx-runtime").JSX.Element;
39
- story: {
40
- name: string;
41
- };
28
+ render: () => import("react/jsx-runtime").JSX.Element;
29
+ name: string;
42
30
  };
43
31
  export declare const AsALink: {
44
- (): import("react/jsx-runtime").JSX.Element;
45
- story: {
46
- name: string;
47
- };
32
+ render: () => import("react/jsx-runtime").JSX.Element;
33
+ name: string;
48
34
  };
@@ -6,32 +6,32 @@ export default {
6
6
  title: "Components/Buttons",
7
7
  };
8
8
  export const _Button = () => _jsx(Button, { children: "Create project" });
9
- export const _PrimaryButton = () => _jsx(PrimaryButton, { children: "Create project" });
10
- _PrimaryButton.story = {
9
+ export const _PrimaryButton = {
10
+ render: () => _jsx(PrimaryButton, { children: "Create project" }),
11
11
  name: "PrimaryButton",
12
12
  };
13
- export const _DangerButton = () => _jsx(DangerButton, { children: "Delete project" });
14
- _DangerButton.story = {
13
+ export const _DangerButton = {
14
+ render: () => _jsx(DangerButton, { children: "Delete project" }),
15
15
  name: "DangerButton",
16
16
  };
17
- export const _QuietButton = () => _jsx(QuietButton, { children: "Create project" });
18
- _QuietButton.story = {
17
+ export const _QuietButton = {
18
+ render: () => _jsx(QuietButton, { children: "Create project" }),
19
19
  name: "QuietButton",
20
20
  };
21
21
  export const WithDifferentSizes = () => (_jsxs(Flex, { flexDirection: "column", gap: "x3", children: [_jsxs(Flex, { flexDirection: "column", gap: "x1", children: [_jsx(Heading4, { children: "Medium size (default)" }), _jsxs(Flex, { gap: "x1", children: [_jsx(Button, { children: "Secondary Button" }), _jsx(PrimaryButton, { children: "Primary Button" }), _jsx(DangerButton, { children: "Danger Button" }), _jsx(QuietButton, { children: "Quiet Button" })] })] }), _jsxs(Flex, { flexDirection: "column", gap: "x1", children: [_jsx(Heading4, { children: "Small size" }), _jsxs(Flex, { gap: "x1", children: [_jsx(Button, { size: "small", children: "Secondary Button" }), _jsx(PrimaryButton, { size: "small", children: "Primary Button" }), _jsx(DangerButton, { size: "small", children: "Danger Button" }), _jsx(QuietButton, { size: "small", children: "Quiet Button" })] })] })] }));
22
- export const WithASelectedIcon = () => (_jsxs(_Fragment, { children: [_jsx(Button, { icon: "add", iconSide: "left", size: "small", onClick: () => { }, disabled: true, children: "Create project" }), _jsx(Button, { icon: "add", iconSide: "right", children: "Create project" })] }));
23
- WithASelectedIcon.story = {
22
+ export const WithASelectedIcon = {
23
+ render: () => (_jsxs(_Fragment, { children: [_jsx(Button, { icon: "add", iconSide: "left", size: "small", onClick: () => { }, disabled: true, children: "Create project" }), _jsx(Button, { icon: "add", iconSide: "right", children: "Create project" })] })),
24
24
  name: "With a selected Icon",
25
25
  };
26
- export const SetToFullWidth = () => _jsx(PrimaryButton, { fullWidth: true, children: "Create project" });
27
- SetToFullWidth.story = {
26
+ export const SetToFullWidth = {
27
+ render: () => _jsx(PrimaryButton, { fullWidth: true, children: "Create project" }),
28
28
  name: "Set to full width",
29
29
  };
30
- export const SetToDisabled = () => _jsx(PrimaryButton, { disabled: true, children: "Create project" });
31
- SetToDisabled.story = {
30
+ export const SetToDisabled = {
31
+ render: () => _jsx(PrimaryButton, { disabled: true, children: "Create project" }),
32
32
  name: "Set to disabled",
33
33
  };
34
- export const AsALink = () => (_jsx(PrimaryButton, { asLink: true, href: "/", children: "Create project" }));
35
- AsALink.story = {
34
+ export const AsALink = {
35
+ render: () => (_jsx(PrimaryButton, { asLink: true, href: "/", children: "Create project" })),
36
36
  name: "As a link",
37
37
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { action } from "@storybook/addon-actions";
2
+ import { action } from "storybook/actions";
3
3
  import { ControlIcon } from "../index";
4
4
  export default {
5
5
  title: "Components/ControlIcon",
@@ -1,3 +1,5 @@
1
1
  import { ButtonProps } from "./Button";
2
- declare const DangerButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
2
+ declare const DangerButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
3
+ ref?: import("react").Ref<HTMLButtonElement>;
4
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
3
5
  export default DangerButton;
@@ -3,61 +3,43 @@ declare const _default: {
3
3
  };
4
4
  export default _default;
5
5
  export declare const WithoutALabel: {
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 WithLabel: {
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 WithALongLabel: {
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 SetToDisabled: {
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 WithAHiddenLabel: {
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 WithACustomIconSize: {
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
  };
41
29
  export declare const WithACustomColor: {
42
- (): import("react/jsx-runtime").JSX.Element;
43
- story: {
44
- name: string;
45
- };
30
+ render: () => import("react/jsx-runtime").JSX.Element;
31
+ name: string;
46
32
  };
47
33
  export declare const WithATooltipAndLabel: {
48
- (): import("react/jsx-runtime").JSX.Element;
49
- story: {
50
- name: string;
51
- };
34
+ render: () => import("react/jsx-runtime").JSX.Element;
35
+ name: string;
52
36
  };
53
37
  export declare const WithAComplicatedTooltipAndLabel: {
54
- (): import("react/jsx-runtime").JSX.Element;
55
- story: {
56
- name: string;
57
- };
38
+ render: () => import("react/jsx-runtime").JSX.Element;
39
+ name: string;
58
40
  };
59
41
  export declare const rightAligned: {
60
- (): import("react/jsx-runtime").JSX.Element;
42
+ render: () => import("react/jsx-runtime").JSX.Element;
61
43
  parameters: {
62
44
  chromatic: {
63
45
  diffThreshold: number;
@@ -65,16 +47,12 @@ export declare const rightAligned: {
65
47
  };
66
48
  };
67
49
  export declare const WithACustomFontSize: {
68
- (): import("react/jsx-runtime").JSX.Element;
69
- story: {
70
- name: string;
71
- };
50
+ render: () => import("react/jsx-runtime").JSX.Element;
51
+ name: string;
72
52
  };
73
53
  export declare const WithNonTextChildren: {
74
- (): import("react/jsx-runtime").JSX.Element;
75
- story: {
76
- name: string;
77
- };
54
+ render: () => import("react/jsx-runtime").JSX.Element;
55
+ name: string;
78
56
  };
79
57
  export declare const WithCustomHoverBackgroundThemeColor: () => import("react/jsx-runtime").JSX.Element;
80
58
  export declare const WithCustomHoverBackgroundNonThemeColor: () => import("react/jsx-runtime").JSX.Element;
@@ -6,52 +6,54 @@ import { Box } from "../Box";
6
6
  export default {
7
7
  title: "Components/IconicButton",
8
8
  };
9
- export const WithoutALabel = () => _jsx(IconicButton, { icon: "delete" });
10
- WithoutALabel.story = {
9
+ export const WithoutALabel = {
10
+ render: () => _jsx(IconicButton, { icon: "delete" }),
11
11
  name: "without a label",
12
12
  };
13
- export const WithLabel = () => _jsx(IconicButton, { icon: "delete", children: "Delete" });
14
- WithLabel.story = {
13
+ export const WithLabel = {
14
+ render: () => _jsx(IconicButton, { icon: "delete", children: "Delete" }),
15
15
  name: "with label",
16
16
  };
17
- export const WithALongLabel = () => (_jsx(IconicButton, { icon: "user", children: "I am an Iconic Button with a really really really long label" }));
18
- WithALongLabel.story = {
17
+ export const WithALongLabel = {
18
+ render: () => _jsx(IconicButton, { icon: "user", children: "I am an Iconic Button with a really really really long label" }),
19
19
  name: "with a long label",
20
20
  };
21
- export const SetToDisabled = () => (_jsxs(_Fragment, { children: [_jsx(IconicButton, { icon: "cancel", disabled: true, children: "Cancel" }), _jsx(IconicButton, { icon: "lock", disabled: true, children: "Lock" })] }));
22
- SetToDisabled.story = {
21
+ export const SetToDisabled = {
22
+ render: () => (_jsxs(_Fragment, { children: [_jsx(IconicButton, { icon: "cancel", disabled: true, children: "Cancel" }), _jsx(IconicButton, { icon: "lock", disabled: true, children: "Lock" })] })),
23
23
  name: "set to disabled",
24
24
  };
25
- export const WithAHiddenLabel = () => (_jsx(IconicButton, { ml: "x6", labelHidden: true, icon: "user", children: "Hidden Label" }));
26
- WithAHiddenLabel.story = {
25
+ export const WithAHiddenLabel = {
26
+ render: () => (_jsx(IconicButton, { ml: "x6", labelHidden: true, icon: "user", children: "Hidden Label" })),
27
27
  name: "with a hidden label",
28
28
  };
29
- export const WithACustomIconSize = () => (_jsx(IconicButton, { icon: "user", iconSize: "50px", labelHidden: true, children: "I am an Iconic Button" }));
30
- WithACustomIconSize.story = {
29
+ export const WithACustomIconSize = {
30
+ render: () => (_jsx(IconicButton, { icon: "user", iconSize: "50px", labelHidden: true, children: "I am an Iconic Button" })),
31
31
  name: "with a custom icon size",
32
32
  };
33
- export const WithACustomColor = () => (_jsx(IconicButton, { color: "red", icon: "close", children: "Close" }));
34
- WithACustomColor.story = {
33
+ export const WithACustomColor = {
34
+ render: () => (_jsx(IconicButton, { color: "red", icon: "close", children: "Close" })),
35
35
  name: "with a custom color",
36
36
  };
37
- export const WithATooltipAndLabel = () => (_jsx(IconicButton, { tooltip: "Stop job", icon: "close", children: "Stop" }));
38
- WithATooltipAndLabel.story = {
37
+ export const WithATooltipAndLabel = {
38
+ render: () => (_jsx(IconicButton, { tooltip: "Stop job", icon: "close", children: "Stop" })),
39
39
  name: "with a tooltip and label",
40
40
  };
41
- export const WithAComplicatedTooltipAndLabel = () => (_jsx(IconicButton, { tooltip: _jsx(Box, { children: "Hello" }), icon: "close", children: "Please stop" }));
42
- WithAComplicatedTooltipAndLabel.story = {
41
+ export const WithAComplicatedTooltipAndLabel = {
42
+ render: () => (_jsx(IconicButton, { tooltip: _jsx(Box, { children: "Hello" }), icon: "close", children: "Please stop" })),
43
43
  name: "with a complicated tooltip and label",
44
44
  };
45
- export const rightAligned = () => (_jsx(Flex, { px: "x3", height: "150px", children: _jsxs(Flex, { justifyContent: "flex-end", alignItems: "flex-start", width: "100%", children: [_jsx(IconicButton, { icon: "rightArrow", labelHidden: true, children: "I am an Iconic Button" }), _jsx(IconicButton, { icon: "leftArrow", labelHidden: true, children: "I am an Iconic Button 2" })] }) }));
46
- rightAligned.parameters = {
47
- chromatic: { diffThreshold: 0.3 },
45
+ export const rightAligned = {
46
+ render: () => (_jsx(Flex, { px: "x3", height: "150px", children: _jsxs(Flex, { justifyContent: "flex-end", alignItems: "flex-start", width: "100%", children: [_jsx(IconicButton, { icon: "rightArrow", labelHidden: true, children: "I am an Iconic Button" }), _jsx(IconicButton, { icon: "leftArrow", labelHidden: true, children: "I am an Iconic Button 2" })] }) })),
47
+ parameters: {
48
+ chromatic: { diffThreshold: 0.3 },
49
+ },
48
50
  };
49
- export const WithACustomFontSize = () => (_jsxs(Flex, { flexDirection: "column", children: [_jsx(IconicButton, { fontSize: "small", tooltip: "Stop job", icon: "close", children: "This is an IconicButton with a small font size" }), _jsx(IconicButton, { fontSize: "large", tooltip: "Stop job", icon: "close", children: "This is an IconicButton with a large font size" }), _jsx(IconicButton, { fontSize: "48px", tooltip: "Stop job", icon: "close", children: "This is an IconicButton with 48px font size" })] }));
50
- WithACustomFontSize.story = {
51
+ export const WithACustomFontSize = {
52
+ render: () => (_jsxs(Flex, { flexDirection: "column", children: [_jsx(IconicButton, { fontSize: "small", tooltip: "Stop job", icon: "close", children: "This is an IconicButton with a small font size" }), _jsx(IconicButton, { fontSize: "large", tooltip: "Stop job", icon: "close", children: "This is an IconicButton with a large font size" }), _jsx(IconicButton, { fontSize: "48px", tooltip: "Stop job", icon: "close", children: "This is an IconicButton with 48px font size" })] })),
51
53
  name: "with a custom font size",
52
54
  };
53
- export const WithNonTextChildren = () => (_jsx(IconicButton, { fontSize: "small", "aria-label": "warnings", icon: "warning", children: _jsxs(Flex, { children: [_jsx(Box, { as: "span", pr: "x1", children: "Warnings" }), _jsx(StatusIndicator, { type: "informative", children: "3" })] }) }));
54
- WithNonTextChildren.story = {
55
+ export const WithNonTextChildren = {
56
+ render: () => (_jsx(IconicButton, { fontSize: "small", "aria-label": "warnings", icon: "warning", children: _jsxs(Flex, { children: [_jsx(Box, { as: "span", pr: "x1", children: "Warnings" }), _jsx(StatusIndicator, { type: "informative", children: "3" })] }) })),
55
57
  name: "with non text children",
56
58
  };
57
59
  export const WithCustomHoverBackgroundThemeColor = () => (_jsx(IconicButton, { hoverBackgroundColor: "lightYellow", fontSize: "small", "aria-label": "warnings", icon: "warning", children: _jsx(Flex, { children: _jsx(Box, { as: "span", pr: "x1", children: "Warnings" }) }) }));
@@ -1,3 +1,5 @@
1
1
  import { ButtonProps } from "./Button";
2
- declare const PrimaryButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
2
+ declare const PrimaryButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
3
+ ref?: import("react").Ref<HTMLButtonElement>;
4
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
3
5
  export default PrimaryButton;
@@ -1,3 +1,5 @@
1
1
  import { ButtonProps } from "./Button";
2
- declare const QuietButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
2
+ declare const QuietButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
3
+ ref?: import("react").Ref<HTMLButtonElement>;
4
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
3
5
  export default QuietButton;
@@ -3,37 +3,27 @@ declare const _default: {
3
3
  };
4
4
  export default _default;
5
5
  export declare const _ButtonGroup: {
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 WithAlignmentRight: {
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 WithAlignmentSpaced: {
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 MoreButtonTypes: {
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 WrappingButtons: {
30
- (): import("react/jsx-runtime").JSX.Element;
31
- story: {
32
- name: string;
33
- parameters: {
34
- viewport: {
35
- defaultViewport: string;
36
- };
22
+ render: () => import("react/jsx-runtime").JSX.Element;
23
+ name: string;
24
+ parameters: {
25
+ viewport: {
26
+ defaultViewport: string;
37
27
  };
38
28
  };
39
29
  };
@@ -3,24 +3,24 @@ import { Box, ButtonGroup, Button, PrimaryButton, DangerButton, QuietButton, Ico
3
3
  export default {
4
4
  title: "Components/ButtonGroup",
5
5
  };
6
- export const _ButtonGroup = () => (_jsx(Box, { bg: "whiteGrey", p: "x2", width: "500px", children: _jsxs(ButtonGroup, { children: [_jsx(PrimaryButton, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" })] }) }));
7
- _ButtonGroup.story = {
6
+ export const _ButtonGroup = {
7
+ render: () => (_jsx(Box, { bg: "whiteGrey", p: "x2", width: "500px", children: _jsxs(ButtonGroup, { children: [_jsx(PrimaryButton, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" })] }) })),
8
8
  name: "ButtonGroup",
9
9
  };
10
- export const WithAlignmentRight = () => (_jsxs(ButtonGroup, { alignment: "right", p: "x2", bg: "whiteGrey", width: "500px", children: [_jsx(PrimaryButton, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" })] }));
11
- WithAlignmentRight.story = {
10
+ export const WithAlignmentRight = {
11
+ render: () => (_jsxs(ButtonGroup, { alignment: "right", p: "x2", bg: "whiteGrey", width: "500px", children: [_jsx(PrimaryButton, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" })] })),
12
12
  name: "with alignment right",
13
13
  };
14
- export const WithAlignmentSpaced = () => (_jsxs(ButtonGroup, { alignment: "spaced", bg: "whiteGrey", p: "x2", width: "500px", children: [_jsx(PrimaryButton, { children: "Button" }), _jsx(Button, { children: "Button" })] }));
15
- WithAlignmentSpaced.story = {
14
+ export const WithAlignmentSpaced = {
15
+ render: () => (_jsxs(ButtonGroup, { alignment: "spaced", bg: "whiteGrey", p: "x2", width: "500px", children: [_jsx(PrimaryButton, { children: "Button" }), _jsx(Button, { children: "Button" })] })),
16
16
  name: "with alignment spaced",
17
17
  };
18
- export const MoreButtonTypes = () => (_jsxs(ButtonGroup, { bg: "whiteGrey", p: "x2", width: "600px", children: [_jsx(PrimaryButton, { children: "Button" }), _jsx(DangerButton, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(QuietButton, { children: "Button" }), _jsx(IconicButton, { icon: "menu" }), _jsx(IconicButton, { icon: "menu", children: "Button" })] }));
19
- MoreButtonTypes.story = {
18
+ export const MoreButtonTypes = {
19
+ render: () => (_jsxs(ButtonGroup, { bg: "whiteGrey", p: "x2", width: "600px", children: [_jsx(PrimaryButton, { children: "Button" }), _jsx(DangerButton, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(QuietButton, { children: "Button" }), _jsx(IconicButton, { icon: "menu" }), _jsx(IconicButton, { icon: "menu", children: "Button" })] })),
20
20
  name: "more button types",
21
21
  };
22
- export const WrappingButtons = () => (_jsxs(_Fragment, { children: [_jsxs(ButtonGroup, { bg: "whiteGrey", p: "x2", children: [_jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" })] }), _jsxs(ButtonGroup, { alignment: "right", bg: "whiteGrey", p: "x2", mt: "x2", children: [_jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" })] })] }));
23
- WrappingButtons.story = {
22
+ export const WrappingButtons = {
23
+ render: () => (_jsxs(_Fragment, { children: [_jsxs(ButtonGroup, { bg: "whiteGrey", p: "x2", children: [_jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" })] }), _jsxs(ButtonGroup, { alignment: "right", bg: "whiteGrey", p: "x2", mt: "x2", children: [_jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" }), _jsx(Button, { children: "Button" })] })] })),
24
24
  name: "wrapping buttons",
25
25
  parameters: { viewport: { defaultViewport: "extraSmall" } },
26
26
  };
@@ -4,14 +4,12 @@ declare const _default: {
4
4
  export default _default;
5
5
  export declare const _Card: () => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const CustomCard: {
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 Cardset: () => import("react/jsx-runtime").JSX.Element;
13
11
  export declare const AdvancedUsage: {
14
- (): import("react/jsx-runtime").JSX.Element;
12
+ render: () => import("react/jsx-runtime").JSX.Element;
15
13
  parameters: {
16
14
  layout: string;
17
15
  };
@@ -7,17 +7,19 @@ export default {
7
7
  title: "Components/Card",
8
8
  };
9
9
  export const _Card = () => _jsx(Card, { children: "I am a card." });
10
- export const CustomCard = () => (_jsx(Card, { bg: "black", color: "white", borderRadius: "small", p: "x1", children: "I am a custom card." }));
11
- CustomCard.story = {
10
+ export const CustomCard = {
11
+ render: () => (_jsx(Card, { bg: "black", color: "white", borderRadius: "small", p: "x1", children: "I am a custom card." })),
12
12
  name: "Custom card",
13
13
  };
14
14
  export const Cardset = () => (_jsxs(CardSet, { children: [_jsx(Card, { children: "I am a 1st card in a cardset." }), _jsx(Card, { children: "I am a 2nd card in a cardset." }), _jsx(Card, { children: "I am a 3rd card in a cardset." })] }));
15
15
  function AdvancedCard() {
16
16
  return (_jsxs(Card, { children: [_jsx(Heading4, { children: "POLI-2304" }), _jsxs(DescriptionList, { children: [_jsxs(DescriptionGroup, { children: [_jsx(DescriptionTerm, { children: "Customer" }), _jsx(DescriptionDetails, { children: "Nulogy" })] }), _jsxs(DescriptionGroup, { children: [_jsx(DescriptionTerm, { children: _jsxs(Text, { display: "inline-flex", alignItems: "center", children: ["Order number", _jsx(Tooltip, { tooltip: "The unique identifier assigned to this order when it was placed by the customer.", children: _jsx(Icon, { icon: "info", size: "x3", paddingLeft: "half" }) })] }) }), _jsx(DescriptionDetails, { children: _jsx(Link, { href: "/customer-details", children: "P12-90381-2039" }) })] }), _jsxs(DescriptionGroup, { children: [_jsx(DescriptionTerm, { children: "Status" }), _jsx(DescriptionDetails, { children: _jsx(StatusIndicator, { type: "success", children: "Paid" }) })] }), _jsxs(DescriptionGroup, { children: [_jsx(DescriptionTerm, { children: "Amount" }), _jsx(DescriptionDetails, { children: "$202.12" })] }), _jsxs(DescriptionGroup, { children: [_jsx(DescriptionTerm, { children: "Notes" }), _jsx(DescriptionDetails, { children: _jsx(TruncatedText, { fontSize: "small", maxCharacters: 200, children: "Due to severe weather disruptions and unforeseen logistical challenges, this shipment has been significantly delayed. The warehouse manager reported that mechanical issues with the transport vehicles coupled with a shortage of available staff, have extended processing times at the loading dock. Additionally, mandatory safety inspections and inventory verifications required extra time, further postponing the dispatch schedule. His detailed notes also mention that alternate transportation arrangements are being evaluated and urge all stakeholders to stay in close communication for updated delivery timelines." }) })] })] })] }));
17
17
  }
18
- export const AdvancedUsage = () => {
19
- return (_jsx(ApplicationFrame, { navBar: _jsxs(TopBar.Root, { children: [_jsx(TopBar.BackLink, { href: "/cycle-counts", children: "Cycle counts" }), _jsx(TopBar.PageTitle, { children: "Cycle count #3992" }), _jsx(TopBar.Menu, { children: menuItems.map((props) => (_jsx(TopBar.MenuItem, { children: _jsx(TopBar.MenuItemLink, { ...props }) }, props.title))) })] }), children: _jsx(Page, { fullHeight: true, children: _jsx(CardSet, { children: [...Array(10)].map((_, i) => (_jsx(AdvancedCard, {}, i))) }) }) }));
20
- };
21
- AdvancedUsage.parameters = {
22
- layout: "fullscreen",
18
+ export const AdvancedUsage = {
19
+ render: () => {
20
+ return (_jsx(ApplicationFrame, { navBar: _jsxs(TopBar.Root, { children: [_jsx(TopBar.BackLink, { href: "/cycle-counts", children: "Cycle counts" }), _jsx(TopBar.PageTitle, { children: "Cycle count #3992" }), _jsx(TopBar.Menu, { children: menuItems.map((props) => (_jsx(TopBar.MenuItem, { children: _jsx(TopBar.MenuItemLink, { ...props }) }, props.title))) })] }), children: _jsx(Page, { fullHeight: true, children: _jsx(CardSet, { children: [...Array(10)].map((_, i) => (_jsx(AdvancedCard, {}, i))) }) }) }));
21
+ },
22
+ parameters: {
23
+ layout: "fullscreen",
24
+ },
23
25
  };
@@ -4,54 +4,38 @@ declare const _default: {
4
4
  export default _default;
5
5
  export declare const _Checkbox: () => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const Multiline: {
7
- (): import("react/jsx-runtime").JSX.Element;
8
- decorators: ((story: any) => import("react/jsx-runtime").JSX.Element)[];
7
+ render: () => import("react/jsx-runtime").JSX.Element;
8
+ decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
9
9
  };
10
10
  export declare const SetToDefaultChecked: {
11
- (): import("react/jsx-runtime").JSX.Element;
12
- story: {
13
- name: string;
14
- };
11
+ render: () => import("react/jsx-runtime").JSX.Element;
12
+ name: string;
15
13
  };
16
14
  export declare const SetToDisabled: {
17
- (): import("react/jsx-runtime").JSX.Element;
18
- story: {
19
- name: string;
20
- };
15
+ render: () => import("react/jsx-runtime").JSX.Element;
16
+ name: string;
21
17
  };
22
18
  export declare const CheckboxWithNoLabel: {
23
- (): import("react/jsx-runtime").JSX.Element;
24
- story: {
25
- name: string;
26
- };
19
+ render: () => import("react/jsx-runtime").JSX.Element;
20
+ name: string;
27
21
  };
28
22
  export declare const SetToError: {
29
- (): import("react/jsx-runtime").JSX.Element;
30
- story: {
31
- name: string;
32
- };
23
+ render: () => import("react/jsx-runtime").JSX.Element;
24
+ name: string;
33
25
  };
34
26
  export declare const SetToRequired: {
35
- (): import("react/jsx-runtime").JSX.Element;
36
- story: {
37
- name: string;
38
- };
27
+ render: () => import("react/jsx-runtime").JSX.Element;
28
+ name: string;
39
29
  };
40
30
  export declare const Indeterminate: {
41
- (): import("react/jsx-runtime").JSX.Element;
42
- story: {
43
- name: string;
44
- };
31
+ render: () => import("react/jsx-runtime").JSX.Element;
32
+ name: string;
45
33
  };
46
34
  export declare const WithState: {
47
- (): import("react/jsx-runtime").JSX.Element;
48
- story: {
49
- name: string;
50
- };
35
+ render: () => import("react/jsx-runtime").JSX.Element;
36
+ name: string;
51
37
  };
52
38
  export declare const UsingRefToControlFocus: {
53
- (): import("react/jsx-runtime").JSX.Element;
54
- story: {
55
- name: string;
56
- };
39
+ render: () => import("react/jsx-runtime").JSX.Element;
40
+ name: string;
57
41
  };
@@ -21,43 +21,47 @@ export default {
21
21
  title: "Components/Checkbox",
22
22
  };
23
23
  export const _Checkbox = () => _jsx(Checkbox, { p: "x3", id: "checkbox", labelText: "I am a checkbox" });
24
- export const Multiline = () => _jsx(Checkbox, { p: "x3", id: "checkbox", labelText: "Lorem ipsum dolor sit amet consecutor" });
25
- Multiline.decorators = [(story) => _jsx("div", { style: { width: "200px" }, children: story() })];
26
- export const SetToDefaultChecked = () => _jsx(Checkbox, { id: "checkbox", defaultChecked: true, labelText: "I am checked by default" });
27
- SetToDefaultChecked.story = {
24
+ export const Multiline = {
25
+ render: () => _jsx(Checkbox, { p: "x3", id: "checkbox", labelText: "Lorem ipsum dolor sit amet consecutor" }),
26
+ decorators: [
27
+ (Story) => (_jsx("div", { style: { width: "200px" }, children: _jsx(Story, {}) })),
28
+ ],
29
+ };
30
+ export const SetToDefaultChecked = {
31
+ render: () => _jsx(Checkbox, { id: "checkbox", defaultChecked: true, labelText: "I am checked by default" }),
28
32
  name: "Set to defaultChecked",
29
33
  };
30
- export const SetToDisabled = () => (_jsxs(_Fragment, { children: [_jsx(Checkbox, { id: "checkbox-1", disabled: true, labelText: "I am disabled" }), _jsx(Checkbox, { id: "checkbox-2", checked: true, disabled: true, labelText: "I am disabled" })] }));
31
- SetToDisabled.story = {
34
+ export const SetToDisabled = {
35
+ render: () => (_jsxs(_Fragment, { children: [_jsx(Checkbox, { id: "checkbox-1", disabled: true, labelText: "I am disabled" }), _jsx(Checkbox, { id: "checkbox-2", checked: true, disabled: true, labelText: "I am disabled" })] })),
32
36
  name: "Set to disabled",
33
37
  };
34
- export const CheckboxWithNoLabel = () => (_jsx(_Fragment, { children: _jsx(Checkbox, {}) }));
35
- CheckboxWithNoLabel.story = {
38
+ export const CheckboxWithNoLabel = {
39
+ render: () => (_jsx(_Fragment, { children: _jsx(Checkbox, {}) })),
36
40
  name: "Checkbox with no label",
37
41
  };
38
- export const SetToError = () => (_jsxs(_Fragment, { children: [_jsx(Checkbox, { id: "checkbox", error: true, labelText: "I am error" }), _jsx(Checkbox, { id: "checkbox", defaultChecked: true, error: true, labelText: "I am error" })] }));
39
- SetToError.story = {
42
+ export const SetToError = {
43
+ render: () => (_jsxs(_Fragment, { children: [_jsx(Checkbox, { id: "checkbox", error: true, labelText: "I am error" }), _jsx(Checkbox, { id: "checkbox", defaultChecked: true, error: true, labelText: "I am error" })] })),
40
44
  name: "Set to error",
41
45
  };
42
- export const SetToRequired = () => (_jsx(_Fragment, { children: _jsx(Checkbox, { id: "checkbox", labelText: "I am a checkbox", required: true }) }));
43
- SetToRequired.story = {
46
+ export const SetToRequired = {
47
+ render: () => (_jsx(_Fragment, { children: _jsx(Checkbox, { id: "checkbox", labelText: "I am a checkbox", required: true }) })),
44
48
  name: "Set to required",
45
49
  };
46
- export const Indeterminate = () => (_jsxs(_Fragment, { children: [_jsx(Checkbox, { id: "checkbox", labelText: "I am an indeterminate checkbox", readOnly: true, checked: true, indeterminate: true }), _jsx(Checkbox, { id: "checkbox", labelText: "I am a unchecked indeterminate checkbox", readOnly: true, checked: false, indeterminate: true }), _jsx(Checkbox, { id: "checkbox", labelText: "I am an indeterminate checkbox with an error", readOnly: true, checked: true, indeterminate: true, error: true }), _jsx(Checkbox, { id: "checkbox", labelText: "I am a disabled indeterminate checkbox", readOnly: true, checked: true, indeterminate: true, disabled: true })] }));
47
- Indeterminate.story = {
50
+ export const Indeterminate = {
51
+ render: () => (_jsxs(_Fragment, { children: [_jsx(Checkbox, { id: "checkbox", labelText: "I am an indeterminate checkbox", readOnly: true, checked: true, indeterminate: true }), _jsx(Checkbox, { id: "checkbox", labelText: "I am a unchecked indeterminate checkbox", readOnly: true, checked: false, indeterminate: true }), _jsx(Checkbox, { id: "checkbox", labelText: "I am an indeterminate checkbox with an error", readOnly: true, checked: true, indeterminate: true, error: true }), _jsx(Checkbox, { id: "checkbox", labelText: "I am a disabled indeterminate checkbox", readOnly: true, checked: true, indeterminate: true, disabled: true })] })),
48
52
  name: "indeterminate",
49
53
  };
50
- export const WithState = () => _jsx(CheckboxWithState, {});
51
- WithState.story = {
54
+ export const WithState = {
55
+ render: () => _jsx(CheckboxWithState, {}),
52
56
  name: "With state",
53
57
  };
54
- export const UsingRefToControlFocus = () => {
55
- const ref = useRef(null);
56
- const handleClick = () => {
57
- ref.current.focus();
58
- };
59
- return (_jsxs(_Fragment, { children: [_jsx(Checkbox, { ref: ref, labelText: "I am a unchecked indeterminate checkbox", readOnly: true, checked: false, indeterminate: true }), _jsx(Button, { onClick: handleClick, children: "Focus the Input" })] }));
60
- };
61
- UsingRefToControlFocus.story = {
58
+ export const UsingRefToControlFocus = {
59
+ render: () => {
60
+ const ref = useRef(null);
61
+ const handleClick = () => {
62
+ ref.current.focus();
63
+ };
64
+ return (_jsxs(_Fragment, { children: [_jsx(Checkbox, { ref: ref, labelText: "I am a unchecked indeterminate checkbox", readOnly: true, checked: false, indeterminate: true }), _jsx(Button, { onClick: handleClick, children: "Focus the Input" })] }));
65
+ },
62
66
  name: "using ref to control focus",
63
67
  };