@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
@@ -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" }) }) }));
@@ -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
  };
@@ -3,33 +3,23 @@ declare const _default: {
3
3
  };
4
4
  export default _default;
5
5
  export declare const _CheckboxGroup: {
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 CheckboxGroupWithAllProps: {
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 WithErrorMessage: {
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 WithErrorList: {
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 SetToDisabled: {
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 Controlled: () => import("react/jsx-runtime").JSX.Element;
@@ -4,24 +4,24 @@ const errorList = ["Error message 1", "Error message 2"];
4
4
  export default {
5
5
  title: "Components/CheckboxGroup",
6
6
  };
7
- export const _CheckboxGroup = () => (_jsxs(CheckboxGroup, { labelText: "Setting Selection", name: "settingSelection", children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] }));
8
- _CheckboxGroup.story = {
7
+ export const _CheckboxGroup = {
8
+ render: () => (_jsxs(CheckboxGroup, { labelText: "Setting Selection", name: "settingSelection", children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] })),
9
9
  name: "CheckboxGroup",
10
10
  };
11
- export const CheckboxGroupWithAllProps = () => (_jsxs(CheckboxGroup, { labelText: "Setting Selection", name: "settingSelection", helpText: "Select a setting from the menu below:", required: true, requirementText: "(Required)", hint: "This is a hint", defaultValue: ["a"], children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] }));
12
- CheckboxGroupWithAllProps.story = {
11
+ export const CheckboxGroupWithAllProps = {
12
+ render: () => (_jsxs(CheckboxGroup, { labelText: "Setting Selection", name: "settingSelection", helpText: "Select a setting from the menu below:", required: true, requirementText: "(Required)", hint: "This is a hint", defaultValue: ["a"], children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] })),
13
13
  name: "CheckboxGroup with all props",
14
14
  };
15
- export const WithErrorMessage = () => (_jsxs(CheckboxGroup, { errorMessage: "Please select an option", labelText: "Setting Selection", name: "settingSelection", defaultValue: ["a"], children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] }));
16
- WithErrorMessage.story = {
15
+ export const WithErrorMessage = {
16
+ render: () => (_jsxs(CheckboxGroup, { errorMessage: "Please select an option", labelText: "Setting Selection", name: "settingSelection", defaultValue: ["a"], children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] })),
17
17
  name: "with error message",
18
18
  };
19
- export const WithErrorList = () => (_jsxs(CheckboxGroup, { errorMessage: "Please select an option", errorList: errorList, labelText: "Setting Selection", name: "settingSelection", defaultValue: ["a"], children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] }));
20
- WithErrorList.story = {
19
+ export const WithErrorList = {
20
+ render: () => (_jsxs(CheckboxGroup, { errorMessage: "Please select an option", errorList: errorList, labelText: "Setting Selection", name: "settingSelection", defaultValue: ["a"], children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] })),
21
21
  name: "with error list",
22
22
  };
23
- export const SetToDisabled = () => (_jsxs(CheckboxGroup, { disabled: true, labelText: "Setting Selection", name: "settingSelection", defaultValue: ["a"], children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] }));
24
- SetToDisabled.story = {
23
+ export const SetToDisabled = {
24
+ render: () => (_jsxs(CheckboxGroup, { disabled: true, labelText: "Setting Selection", name: "settingSelection", defaultValue: ["a"], children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] })),
25
25
  name: "Set to disabled",
26
26
  };
27
27
  export const Controlled = () => (_jsxs(CheckboxGroup, { labelText: "Setting Selection", name: "settingSelection", checkedValue: ["a"], onChange: () => { }, children: [_jsx(Checkbox, { value: "a", labelText: "Option A" }), _jsx(Checkbox, { value: "b", labelText: "Option B" }), _jsx(Checkbox, { value: "c", labelText: "Option C" })] }));
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { StoryObj } from "@storybook/react";
2
+ import type { StoryObj } from "@storybook/react-vite";
3
3
  import { DatePicker } from "../index";
4
4
  declare const _default: {
5
5
  title: string;
@@ -11,6 +11,13 @@ export declare const Default: Story;
11
11
  export declare const WithCustomDateFormat: Story;
12
12
  export declare const WithCustomPlaceholder: () => import("react/jsx-runtime").JSX.Element;
13
13
  export declare const WithErrorState: () => import("react/jsx-runtime").JSX.Element;
14
- export declare const WithMinAndMaxDate: () => import("react/jsx-runtime").JSX.Element;
14
+ export declare const WithMinAndMaxDate: {
15
+ render: () => import("react/jsx-runtime").JSX.Element;
16
+ name: string;
17
+ play: ({ canvasElement, step }: {
18
+ canvasElement: any;
19
+ step: any;
20
+ }) => Promise<void>;
21
+ };
15
22
  export declare const DisableFlipping: Story;
16
23
  export declare const UsingRefToControlFocus: () => import("react/jsx-runtime").JSX.Element;