@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.
- package/dist/main.js +46 -59
- package/dist/main.js.map +1 -1
- package/dist/main.module.js +46 -59
- package/dist/main.module.js.map +1 -1
- package/dist/src/Alert/Alert.story.d.ts +1 -1
- package/dist/src/Alert/Alert.story.js +11 -0
- package/dist/src/AppTag/stories/AppTag.story.d.ts +2 -2
- package/dist/src/AppTag/stories/AppTag.story.js +6 -4
- package/dist/src/AppTag/stories/AppTag.usecases.story.d.ts +13 -10
- package/dist/src/AppTag/stories/AppTag.usecases.story.js +71 -51
- package/dist/src/AsyncSelect/AsyncSelect.story.d.ts +17 -13
- package/dist/src/AsyncSelect/AsyncSelect.story.js +46 -23
- package/dist/src/BottomSheet/BottomSheet.parts.d.ts +2 -2
- package/dist/src/BottomSheet/BottomSheet.styled.d.ts +10 -6
- package/dist/src/BottomSheet/stories/BottomSheet.actions.story.d.ts +8 -1
- package/dist/src/BottomSheet/stories/BottomSheet.actions.story.js +22 -3
- package/dist/src/BottomSheet/stories/BottomSheet.features.story.d.ts +9 -2
- package/dist/src/BottomSheet/stories/BottomSheet.features.story.js +27 -12
- package/dist/src/BottomSheet/stories/BottomSheet.story.d.ts +7 -1
- package/dist/src/BottomSheet/stories/BottomSheet.story.js +20 -3
- package/dist/src/Box/Box.d.ts +12 -13
- package/dist/src/Box/Box.story.d.ts +22 -44
- package/dist/src/Box/Box.story.js +30 -30
- package/dist/src/BrandedNavBar/DesktopMenu.d.ts +3 -1
- package/dist/src/BrandedNavBar/NavBar.js +2 -2
- package/dist/src/BrandedNavBar/NavBar.story.d.ts +16 -28
- package/dist/src/BrandedNavBar/NavBar.story.js +41 -35
- package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +1 -1
- package/dist/src/Breadcrumbs/Breadcrumbs.story.d.ts +4 -8
- package/dist/src/Breadcrumbs/Breadcrumbs.story.js +4 -4
- package/dist/src/Button/Button.story.d.ts +14 -28
- package/dist/src/Button/Button.story.js +14 -14
- package/dist/src/Button/ControlIcon.story.js +1 -1
- package/dist/src/Button/DangerButton.d.ts +3 -1
- package/dist/src/Button/IconicButton.story.d.ts +23 -45
- package/dist/src/Button/IconicButton.story.js +27 -25
- package/dist/src/Button/PrimaryButton.d.ts +3 -1
- package/dist/src/Button/QuietButton.d.ts +3 -1
- package/dist/src/ButtonGroup/ButtonGroup.story.d.ts +13 -23
- package/dist/src/ButtonGroup/ButtonGroup.story.js +10 -10
- package/dist/src/Card/Card.story.d.ts +3 -5
- package/dist/src/Card/Card.story.js +9 -7
- package/dist/src/Checkbox/Checkbox.story.d.ts +18 -34
- package/dist/src/Checkbox/Checkbox.story.js +28 -24
- package/dist/src/Checkbox/CheckboxGroup.story.d.ts +10 -20
- package/dist/src/Checkbox/CheckboxGroup.story.js +10 -10
- package/dist/src/DatePickers/stories/DatePicker.story.d.ts +9 -2
- package/dist/src/DatePickers/stories/DatePicker.story.js +43 -2
- package/dist/src/DatePickers/stories/MonthPicker.story.d.ts +8 -1
- package/dist/src/DatePickers/stories/MonthPicker.story.js +21 -2
- package/dist/src/DatePickers/stories/WeekPicker.story.d.ts +32 -4
- package/dist/src/DatePickers/stories/WeekPicker.story.js +57 -8
- package/dist/src/DateRange/DateRange.story.d.ts +16 -2
- package/dist/src/DateRange/DateRange.story.js +41 -3
- package/dist/src/DateRange/EndTime.d.ts +5 -7
- package/dist/src/DateRange/StartTime.d.ts +5 -7
- package/dist/src/DescriptionList/stories/DescriptionList.column.story.d.ts +1 -1
- package/dist/src/DescriptionList/stories/DescriptionList.column.story.js +10 -8
- package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.d.ts +1 -1
- package/dist/src/DescriptionList/stories/DescriptionList.layout.story.d.ts +1 -1
- package/dist/src/DescriptionList/stories/DescriptionList.layout.story.js +12 -10
- package/dist/src/DescriptionList/stories/DescriptionList.playground.story.d.ts +1 -1
- package/dist/src/DescriptionList/stories/DescriptionList.story.d.ts +1 -0
- package/dist/src/DescriptionList/stories/DescriptionList.story.js +3 -0
- package/dist/src/DescriptionList/stories/fixtures.d.ts +2 -2
- package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +32 -32
- package/dist/src/DropdownMenu/DropdownMenu.story.js +58 -16
- package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownText.d.ts +1 -1
- package/dist/src/FieldLabel/FieldLabel.story.d.ts +2 -4
- package/dist/src/FieldLabel/FieldLabel.story.js +2 -2
- package/dist/src/FieldLabel/HelpText.d.ts +1 -1
- package/dist/src/Flex/Flex.story.d.ts +34 -68
- package/dist/src/Flex/Flex.story.js +36 -36
- package/dist/src/Form/Form.story.d.ts +8 -16
- package/dist/src/Form/Form.story.js +8 -8
- package/dist/src/Icon/Icon.d.ts +6 -2
- package/dist/src/Icon/Icon.story.d.ts +12 -24
- package/dist/src/Icon/Icon.story.js +15 -15
- package/dist/src/Input/Input.story.d.ts +16 -32
- package/dist/src/Input/Input.story.js +23 -23
- package/dist/src/Layout/Page.applicationFrame.story.d.ts +1 -1
- package/dist/src/Layout/Page.story.d.ts +1 -1
- package/dist/src/Layout/Sidebar.story.d.ts +1 -1
- package/dist/src/Link/Link.story.d.ts +16 -32
- package/dist/src/Link/Link.story.js +16 -17
- package/dist/src/List/List.story.d.ts +8 -16
- package/dist/src/List/List.story.js +8 -8
- package/dist/src/LoadingAnimation/LoadingAnimation.story.d.ts +4 -8
- package/dist/src/LoadingAnimation/LoadingAnimation.story.js +4 -4
- package/dist/src/MaybeTooltip/MaybeTooltip.story.d.ts +1 -1
- package/dist/src/Modal/Modal.d.ts +5 -3
- package/dist/src/Modal/Modal.js +2 -2
- package/dist/src/Modal/Modal.story.d.ts +2 -24
- package/dist/src/Modal/ModalCloseButton.d.ts +4 -2
- package/dist/src/Modal/ModalContent.d.ts +1 -1
- package/dist/src/Navigation/components/AppSwitcher/parts/Item.d.ts +3 -1
- package/dist/src/Navigation/components/AppSwitcher/parts/index.d.ts +15 -7
- package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.d.ts +5 -1
- package/dist/src/Navigation/components/MenuSubItem/parts/styled.d.ts +17 -5
- package/dist/src/Navigation/components/MobileNav/parts/styled.d.ts +10 -4
- package/dist/src/Navigation/components/UserMenu/UserMenu.d.ts +5 -1
- package/dist/src/Navigation/components/UserMenu/parts/styled.d.ts +6 -2
- package/dist/src/Navigation/components/shared/NavigationMenuContent.d.ts +5 -1
- package/dist/src/Navigation/components/shared/NavigationMenuItem.d.ts +3 -1
- package/dist/src/Navigation/components/shared/components.d.ts +35 -9
- package/dist/src/Navigation/stories/Navigation.appSwitcher.story.d.ts +8 -1
- package/dist/src/Navigation/stories/Navigation.appSwitcher.story.js +19 -1
- package/dist/src/Navigation/stories/Navigation.logos.story.d.ts +2 -4
- package/dist/src/Navigation/stories/Navigation.logos.story.js +4 -4
- package/dist/src/Navigation/stories/Navigation.story.d.ts +7 -1
- package/dist/src/Navigation/stories/Navigation.story.js +145 -136
- package/dist/src/Navigation/stories/Navigation.userMenu.story.d.ts +8 -1
- package/dist/src/Navigation/stories/Navigation.userMenu.story.js +22 -1
- package/dist/src/Overlay/Overlay.story.d.ts +2 -4
- package/dist/src/Overlay/Overlay.story.js +2 -2
- package/dist/src/Pagination/Pagination.story.d.ts +14 -13
- package/dist/src/Pagination/Pagination.story.js +32 -11
- package/dist/src/Radio/Radio.story.d.ts +13 -15
- package/dist/src/Radio/Radio.story.js +44 -1
- package/dist/src/Radio/RadioGroup.story.d.ts +29 -21
- package/dist/src/Radio/RadioGroup.story.js +67 -14
- package/dist/src/RangeContainer/RangeContainer.story.d.ts +2 -4
- package/dist/src/RangeContainer/RangeContainer.story.js +2 -2
- package/dist/src/Select/Select.story.d.ts +37 -65
- package/dist/src/Select/Select.story.js +93 -49
- package/dist/src/StatusIndicator/StatusIndicator.story.d.ts +4 -8
- package/dist/src/StatusIndicator/StatusIndicator.story.js +4 -4
- package/dist/src/Summary/Summary.d.ts +1 -2
- package/dist/src/Summary/Summary.js +2 -2
- package/dist/src/Summary/SummaryContext.d.ts +3 -1
- package/dist/src/Summary/SummaryContext.js +2 -2
- package/dist/src/Summary/SummaryItem.d.ts +1 -1
- package/dist/src/Summary/SummaryItem.js +2 -2
- package/dist/src/Switcher/Switcher.d.ts +2 -2
- package/dist/src/Switcher/Switcher.js +2 -2
- package/dist/src/Switcher/Switcher.story.d.ts +8 -1
- package/dist/src/Switcher/Switcher.story.js +13 -1
- package/dist/src/Table/stories/BaseTable.story.d.ts +1 -1
- package/dist/src/Table/stories/BaseTable.story.js +1 -1
- package/dist/src/Table/stories/CustomContent.story.js +1 -1
- package/dist/src/Table/stories/Density.story.d.ts +4 -8
- package/dist/src/Table/stories/Density.story.js +4 -4
- package/dist/src/Table/stories/SortingColumnHeader.story.d.ts +1 -1
- package/dist/src/Table/stories/SortingColumnHeader.story.js +1 -1
- package/dist/src/Table/stories/Table.story.d.ts +1 -1
- package/dist/src/Table/stories/Table.story.js +37 -1
- package/dist/src/Table/stories/TableWithCustomSorting.story.d.ts +2 -4
- package/dist/src/Table/stories/TableWithCustomSorting.story.js +2 -2
- package/dist/src/Table/stories/TableWithExpandableRows.story.d.ts +4 -8
- package/dist/src/Table/stories/TableWithExpandableRows.story.js +5 -5
- package/dist/src/Table/stories/TableWithFiltering.story.d.ts +8 -8
- package/dist/src/Table/stories/TableWithFiltering.story.js +15 -4
- package/dist/src/Table/stories/TableWithSelectableRows.story.d.ts +8 -8
- package/dist/src/Table/stories/TableWithSelectableRows.story.js +22 -5
- package/dist/src/Table/stories/TableWithServerSidePagination.story.d.ts +2 -4
- package/dist/src/Table/stories/TableWithServerSidePagination.story.js +2 -2
- package/dist/src/Tabs/TabScrollIndicator.d.ts +1 -1
- package/dist/src/Tabs/TabScrollIndicator.js +2 -2
- package/dist/src/Tabs/Tabs.story.d.ts +33 -33
- package/dist/src/Tabs/Tabs.story.js +52 -16
- package/dist/src/Textarea/Textarea.story.js +1 -1
- package/dist/src/TimePicker/TimePicker.d.ts +1 -1
- package/dist/src/TimePicker/TimePicker.js +2 -0
- package/dist/src/TimePicker/TimePicker.story.d.ts +24 -40
- package/dist/src/TimePicker/TimePicker.story.js +40 -27
- package/dist/src/TimePicker/TimePickerInput.d.ts +3 -1
- package/dist/src/TimeRange/TimeRange.d.ts +3 -2
- package/dist/src/TimeRange/TimeRange.story.d.ts +14 -20
- package/dist/src/TimeRange/TimeRange.story.js +34 -20
- package/dist/src/Toast/Toast.story.d.ts +24 -25
- package/dist/src/Toast/Toast.story.js +170 -142
- package/dist/src/ToastContainer/ToastContainer.story.d.ts +8 -1
- package/dist/src/ToastContainer/ToastContainer.story.js +13 -1
- package/dist/src/ToastContainer/ToastFunction.js +2 -2
- package/dist/src/Toggle/Toggle.story.d.ts +25 -15
- package/dist/src/Toggle/Toggle.story.js +77 -43
- package/dist/src/Toggle/ToggleButton.js +2 -2
- package/dist/src/Tooltip/Tooltip.story.d.ts +1 -1
- package/dist/src/Tooltip/Tooltip.story.js +16 -0
- package/dist/src/TopBar/TopBar.styled.d.ts +16 -15
- package/dist/src/TopBar/components/BackLink.d.ts +3 -1
- package/dist/src/TopBar/components/MenuItemLink.d.ts +3 -1
- package/dist/src/TopBar/stories/TopBar.backButton.story.js +1 -1
- package/dist/src/TopBar/stories/TopBar.menu.story.js +1 -1
- package/dist/src/TopBar/stories/TopBar.story.d.ts +7 -1
- package/dist/src/TopBar/stories/TopBar.story.js +18 -1
- package/dist/src/TruncatedText/TruncatedText.story.d.ts +29 -34
- package/dist/src/TruncatedText/TruncatedText.story.js +46 -19
- package/dist/src/Type/Headings.d.ts +4 -4
- package/dist/src/Type/Text.story.d.ts +10 -20
- package/dist/src/Type/Text.story.js +10 -10
- package/dist/src/Validation/InlineValidation.story.d.ts +6 -12
- package/dist/src/Validation/InlineValidation.story.js +6 -6
- package/dist/src/VisualTests/Select.story.d.ts +12 -24
- package/dist/src/VisualTests/Select.story.js +19 -19
- package/dist/src/pages/ErrorPage.story.d.ts +3 -5
- package/dist/src/pages/ErrorPage.story.js +10 -10
- package/dist/src/pages/LoginPage.story.d.ts +8 -16
- package/dist/src/pages/LoginPage.story.js +8 -8
- package/dist/src/utils/story/dashed.d.ts +1 -3
- package/dist/src/utils/story/resizable.d.ts +4 -2
- package/dist/src/utils/ts/FocusManager.d.ts +1 -1
- package/dist/src/utils/ts/FocusManager.js +2 -2
- package/package.json +25 -34
|
@@ -2,52 +2,52 @@ declare const _default: {
|
|
|
2
2
|
title: string;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const _Tabs:
|
|
5
|
+
export declare const _Tabs: {
|
|
6
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
name: string;
|
|
8
|
+
play: ({ canvasElement, step }: {
|
|
9
|
+
canvasElement: any;
|
|
10
|
+
step: any;
|
|
11
|
+
}) => Promise<void>;
|
|
12
|
+
};
|
|
6
13
|
export declare const WithADefaultSelectedIndex: {
|
|
7
|
-
()
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const WithOtherInteractiveElements: {
|
|
18
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
name: string;
|
|
20
|
+
play: ({ canvasElement, step }: {
|
|
21
|
+
canvasElement: any;
|
|
22
|
+
step: any;
|
|
23
|
+
}) => Promise<void>;
|
|
11
24
|
};
|
|
12
|
-
export declare const WithOtherInteractiveElements: () => import("react/jsx-runtime").JSX.Element;
|
|
13
25
|
export declare const SetToFitted: {
|
|
14
|
-
()
|
|
15
|
-
|
|
16
|
-
name: string;
|
|
17
|
-
};
|
|
26
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
name: string;
|
|
18
28
|
};
|
|
19
29
|
export declare const WithAllTabStates: {
|
|
20
|
-
()
|
|
21
|
-
|
|
22
|
-
name: string;
|
|
23
|
-
};
|
|
30
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
name: string;
|
|
24
32
|
};
|
|
25
33
|
export declare const WithScrollingTabs: {
|
|
26
|
-
()
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
defaultViewport: string;
|
|
32
|
-
};
|
|
34
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
name: string;
|
|
36
|
+
parameters: {
|
|
37
|
+
viewport: {
|
|
38
|
+
defaultViewport: string;
|
|
33
39
|
};
|
|
34
40
|
};
|
|
35
41
|
};
|
|
36
42
|
export declare const Controlled: {
|
|
37
|
-
()
|
|
38
|
-
|
|
39
|
-
name: string;
|
|
40
|
-
};
|
|
43
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
name: string;
|
|
41
45
|
};
|
|
42
46
|
export declare const WithInputs: {
|
|
43
|
-
()
|
|
44
|
-
|
|
45
|
-
name: string;
|
|
46
|
-
};
|
|
47
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
name: string;
|
|
47
49
|
};
|
|
48
50
|
export declare const WithContentLoadedOnSelection: {
|
|
49
|
-
()
|
|
50
|
-
|
|
51
|
-
name: string;
|
|
52
|
-
};
|
|
51
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
name: string;
|
|
53
53
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import { expect, userEvent, within } from "storybook/test";
|
|
3
4
|
import { Button } from "../Button";
|
|
4
5
|
import { Flex } from "../Flex";
|
|
5
6
|
import { Tab, Tabs } from ".";
|
|
@@ -22,34 +23,69 @@ class ControlledTabs extends React.Component {
|
|
|
22
23
|
export default {
|
|
23
24
|
title: "Components/Tabs",
|
|
24
25
|
};
|
|
25
|
-
export const _Tabs =
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
export const _Tabs = {
|
|
27
|
+
render: () => (_jsxs(Tabs, { children: [_jsx(Tab, { className: "Tab1", label: "Tab 1", children: "Tab 1 Content" }), _jsx(Tab, { className: "Tab2", label: "Tab 2", children: "Tab 2 Content" }), _jsx(Tab, { className: "Tab3", label: "Tab 3", children: "Tab 3 Content" }), _jsx(Tab, { className: "Tab4", label: "Tab 4", children: "Tab 4 Content" })] })),
|
|
28
|
+
name: "Tabs",
|
|
29
|
+
play: async ({ canvasElement, step }) => {
|
|
30
|
+
const canvas = within(canvasElement);
|
|
31
|
+
await step("renders tab components", async () => {
|
|
32
|
+
await expect(canvas.getByText("Tab 1")).toBeVisible();
|
|
33
|
+
});
|
|
34
|
+
await step("selects the tab on click", async () => {
|
|
35
|
+
const tab1 = canvas.getByRole("tab", { name: "Tab 1" });
|
|
36
|
+
await expect(tab1).toHaveAttribute("aria-selected", "false");
|
|
37
|
+
await userEvent.click(tab1);
|
|
38
|
+
await expect(tab1).toHaveAttribute("aria-selected", "true");
|
|
39
|
+
});
|
|
40
|
+
await step("displays the tab content on click", async () => {
|
|
41
|
+
await expect(canvas.getByText("Tab 1 Content")).toBeVisible();
|
|
42
|
+
});
|
|
43
|
+
await step("moves to next tab with right arrow key", async () => {
|
|
44
|
+
const tab1 = canvas.getByRole("tab", { name: "Tab 1" });
|
|
45
|
+
tab1.focus();
|
|
46
|
+
await userEvent.keyboard("{ArrowRight}");
|
|
47
|
+
await expect(canvas.getByRole("tab", { name: "Tab 2" })).toHaveFocus();
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const WithADefaultSelectedIndex = {
|
|
52
|
+
render: () => (_jsxs(Tabs, { defaultSelectedIndex: 1, children: [_jsx(Tab, { label: "Tab 1", children: "Tab 1 Content" }), _jsx(Tab, { label: "Tab 2", children: "Tab 2 Content" }), _jsx(Tab, { label: "Tab 3", children: "Tab 3 Content" }), _jsx(Tab, { label: "Tab 4", children: "Tab 4 Content" })] })),
|
|
28
53
|
name: "with a defaultSelectedIndex",
|
|
29
54
|
};
|
|
30
|
-
export const WithOtherInteractiveElements =
|
|
31
|
-
|
|
32
|
-
|
|
55
|
+
export const WithOtherInteractiveElements = {
|
|
56
|
+
render: () => (_jsxs(Flex, { gap: "x2", alignItems: "flex-start", flexDirection: "column", children: [_jsx(Button, { children: "Click me" }), _jsxs(Tabs, { defaultSelectedIndex: 1, children: [_jsx(Tab, { label: "Tab 1", children: "Tab 1 Content" }), _jsx(Tab, { label: "Tab 2", children: "Tab 2 Content" }), _jsx(Tab, { label: "Tab 3", children: "Tab 3 Content" }), _jsx(Tab, { label: "Tab 4", children: "Tab 4 Content" })] })] })),
|
|
57
|
+
name: "with other interactive elements",
|
|
58
|
+
play: async ({ canvasElement, step }) => {
|
|
59
|
+
const canvas = within(canvasElement);
|
|
60
|
+
await step("focuses on the default selected tab when tabbing", async () => {
|
|
61
|
+
canvas.getByText("Click me").focus();
|
|
62
|
+
await userEvent.tab();
|
|
63
|
+
await expect(document.activeElement).toHaveTextContent("Tab 2");
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
export const SetToFitted = {
|
|
68
|
+
render: () => (_jsxs(Tabs, { fitted: true, children: [_jsx(Tab, { label: "Tab 1", children: "Tab 1 Content" }), _jsx(Tab, { label: "Tab 2", children: "Tab 2 Content" }), _jsx(Tab, { label: "Tab 3", children: "Tab 3 Content" }), _jsx(Tab, { label: "Tab 4", children: "Tab 4 Content" })] })),
|
|
33
69
|
name: "set to fitted",
|
|
34
70
|
};
|
|
35
|
-
export const WithAllTabStates =
|
|
36
|
-
|
|
71
|
+
export const WithAllTabStates = {
|
|
72
|
+
render: () => (_jsxs("div", { children: [_jsx(Tab, { label: "Tab" }), _jsx(Tab, { label: "Tab", selected: true }), _jsx(Tab, { label: "Tab", disabled: true }), _jsx(Tab, { label: "Tab", disabled: true, selected: true })] })),
|
|
37
73
|
name: "with all tab states",
|
|
38
74
|
};
|
|
39
|
-
export const WithScrollingTabs =
|
|
40
|
-
|
|
75
|
+
export const WithScrollingTabs = {
|
|
76
|
+
render: () => (_jsxs(Tabs, { className: "tab-container", children: [_jsx(Tab, { label: "Tab 1", children: "Tab 1 Content" }), _jsx(Tab, { label: "Tab 2", children: "Tab 2 Content" }), _jsx(Tab, { label: "Tab 3", children: "Tab 3 Content" }), _jsx(Tab, { label: "Tab 4", children: "Tab 4 Content" }), _jsx(Tab, { label: "Tab 5", children: "Tab 5 Content" }), _jsx(Tab, { label: "Tab 6", children: "Tab 6 Content" }), _jsx(Tab, { label: "Tab 7", children: "Tab 7 Content" }), _jsx(Tab, { label: "Tab 8", children: "Tab 8 Content" }), _jsx(Tab, { label: "Tab 9", children: "Tab 9 Content" }), _jsx(Tab, { label: "Tab 10", children: "Tab 10 Content" }), _jsx(Tab, { label: "Tab 11", children: "Tab 11 Content" }), _jsx(Tab, { label: "Tab 12", children: "Tab 12 Content" })] })),
|
|
41
77
|
name: "with scrolling tabs",
|
|
42
78
|
parameters: { viewport: { defaultViewport: "extraSmall" } },
|
|
43
79
|
};
|
|
44
|
-
export const Controlled =
|
|
45
|
-
|
|
80
|
+
export const Controlled = {
|
|
81
|
+
render: () => _jsx(ControlledTabs, {}),
|
|
46
82
|
name: "controlled",
|
|
47
83
|
};
|
|
48
|
-
export const WithInputs =
|
|
49
|
-
|
|
84
|
+
export const WithInputs = {
|
|
85
|
+
render: () => (_jsxs(Tabs, { children: [_jsx(Tab, { label: "Tab 1", className: "Tab1", children: _jsx("input", { className: "Input1" }) }), _jsx(Tab, { label: "Tab 2", className: "Tab2", children: _jsx("input", { className: "Input2" }) })] })),
|
|
50
86
|
name: "with inputs",
|
|
51
87
|
};
|
|
52
|
-
export const WithContentLoadedOnSelection =
|
|
53
|
-
|
|
88
|
+
export const WithContentLoadedOnSelection = {
|
|
89
|
+
render: () => (_jsxs(Tabs, { renderTabContentOnlyWhenSelected: true, children: [_jsx(Tab, { label: "Tab 1", className: "Tab1", children: _jsx("input", { className: "Input1" }) }), _jsx(Tab, { label: "Tab 2", className: "Tab2", children: _jsx("input", { className: "Input2" }) })] })),
|
|
54
90
|
name: "with content loaded on selection",
|
|
55
91
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef } from "react";
|
|
3
|
-
import { action } from "
|
|
3
|
+
import { action } from "storybook/actions";
|
|
4
4
|
import { Textarea, Button } from "../index";
|
|
5
5
|
const errorList = ["Error message 1", "Error message 2"];
|
|
6
6
|
export default {
|
|
@@ -38,5 +38,5 @@ export declare const getTimeOptions: (interval: any, timeFormat: any, minTime: a
|
|
|
38
38
|
value: string;
|
|
39
39
|
label: string;
|
|
40
40
|
}[];
|
|
41
|
-
declare const TimePicker: React.
|
|
41
|
+
declare const TimePicker: React.ForwardRefExoticComponent<Omit<TimePickerProps, "ref"> & React.RefAttributes<any>>;
|
|
42
42
|
export default TimePicker;
|
|
@@ -100,6 +100,8 @@ const TimePicker = forwardRef(({ timeFormat, interval, className, minTime, maxTi
|
|
|
100
100
|
const { t } = useTranslation();
|
|
101
101
|
const componentVariant = useComponentVariant(variant);
|
|
102
102
|
const scrollToSelection = useCallback(debounce((currentOption, dropdown) => {
|
|
103
|
+
if (!dropdown.current)
|
|
104
|
+
return;
|
|
103
105
|
const currentIndex = Array.from(dropdown.current.children).indexOf(currentOption);
|
|
104
106
|
if (currentIndex > 2) {
|
|
105
107
|
dropdown.current.scrollTop = (currentIndex - 2) * currentOption.scrollHeight;
|
|
@@ -3,62 +3,46 @@ declare const _default: {
|
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: {
|
|
6
|
-
()
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
name: string;
|
|
8
|
+
play: ({ canvasElement, step }: {
|
|
9
|
+
canvasElement: any;
|
|
10
|
+
step: any;
|
|
11
|
+
}) => Promise<void>;
|
|
10
12
|
};
|
|
11
13
|
export declare const WithCustomTimeFormat: {
|
|
12
|
-
()
|
|
13
|
-
|
|
14
|
-
name: string;
|
|
15
|
-
};
|
|
14
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
name: string;
|
|
16
16
|
};
|
|
17
17
|
export declare const WithCustomTimeInterval: {
|
|
18
|
-
()
|
|
19
|
-
|
|
20
|
-
name: string;
|
|
21
|
-
};
|
|
18
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
name: string;
|
|
22
20
|
};
|
|
23
21
|
export declare const WithCustomPlaceholder: {
|
|
24
|
-
()
|
|
25
|
-
|
|
26
|
-
name: string;
|
|
27
|
-
};
|
|
22
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
name: string;
|
|
28
24
|
};
|
|
29
25
|
export declare const disabled: {
|
|
30
|
-
()
|
|
31
|
-
|
|
32
|
-
name: string;
|
|
33
|
-
};
|
|
26
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
name: string;
|
|
34
28
|
};
|
|
35
29
|
export declare const WithErrorState: {
|
|
36
|
-
()
|
|
37
|
-
|
|
38
|
-
name: string;
|
|
39
|
-
};
|
|
30
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
name: string;
|
|
40
32
|
};
|
|
41
33
|
export declare const WithMinAndMaxTime: {
|
|
42
|
-
()
|
|
43
|
-
|
|
44
|
-
name: string;
|
|
45
|
-
};
|
|
34
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
name: string;
|
|
46
36
|
};
|
|
47
37
|
export declare const WithCustomDefault: {
|
|
48
|
-
()
|
|
49
|
-
|
|
50
|
-
name: string;
|
|
51
|
-
};
|
|
38
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
name: string;
|
|
52
40
|
};
|
|
53
41
|
export declare const WithValue: {
|
|
54
|
-
()
|
|
55
|
-
|
|
56
|
-
name: string;
|
|
57
|
-
};
|
|
42
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
name: string;
|
|
58
44
|
};
|
|
59
45
|
export declare const UsingRefToControlFocus: {
|
|
60
|
-
()
|
|
61
|
-
|
|
62
|
-
name: string;
|
|
63
|
-
};
|
|
46
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
name: string;
|
|
64
48
|
};
|
|
@@ -1,57 +1,70 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { expect, screen, userEvent, waitFor, within } from "storybook/test";
|
|
4
|
+
import { action } from "storybook/actions";
|
|
4
5
|
import { TimePicker, Button } from "../index";
|
|
5
6
|
export default {
|
|
6
7
|
title: "Components/TimePicker",
|
|
7
8
|
};
|
|
8
|
-
export const Default =
|
|
9
|
-
|
|
9
|
+
export const Default = {
|
|
10
|
+
render: () => (_jsx(TimePicker, { p: "x3", onChange: action("time changed"), onInputChange: action("input changed"), labelText: "Start Time" })),
|
|
10
11
|
name: "default",
|
|
12
|
+
play: async ({ canvasElement, step }) => {
|
|
13
|
+
const canvas = within(canvasElement);
|
|
14
|
+
await step("can open the dropdown on click", async () => {
|
|
15
|
+
await userEvent.click(canvas.getByTestId("select-input"));
|
|
16
|
+
await waitFor(() => expect(screen.getAllByTestId(/select-option/)[0]).toBeVisible());
|
|
17
|
+
});
|
|
18
|
+
await step("allows the user to select a time by clicking", async () => {
|
|
19
|
+
const options = screen.getAllByTestId(/select-option/);
|
|
20
|
+
await userEvent.click(options[0]);
|
|
21
|
+
await expect(canvas.getByTestId("select-container")).toHaveTextContent("12:00 AM");
|
|
22
|
+
});
|
|
23
|
+
},
|
|
11
24
|
};
|
|
12
|
-
export const WithCustomTimeFormat =
|
|
13
|
-
|
|
25
|
+
export const WithCustomTimeFormat = {
|
|
26
|
+
render: () => (_jsx(TimePicker, { defaultValue: "03:30", timeFormat: "HH:mm", onChange: action("time changed"), onInputChange: action("input changed"), labelText: "Duration" })),
|
|
14
27
|
name: "with custom time format",
|
|
15
28
|
};
|
|
16
|
-
export const WithCustomTimeInterval =
|
|
17
|
-
|
|
29
|
+
export const WithCustomTimeInterval = {
|
|
30
|
+
render: () => (_jsx(TimePicker, { defaultValue: "03:30", timeFormat: "HH:mm", interval: 30, onChange: action("time changed"), onInputChange: action("input changed"), labelText: "Duration" })),
|
|
18
31
|
name: "with custom time interval",
|
|
19
32
|
};
|
|
20
|
-
export const WithCustomPlaceholder =
|
|
21
|
-
|
|
33
|
+
export const WithCustomPlaceholder = {
|
|
34
|
+
render: () => (_jsx(TimePicker, { onChange: action("time changed"), onInputChange: action("input changed"), labelText: "Duration", placeholder: "--:--" })),
|
|
22
35
|
name: "with custom placeholder",
|
|
23
36
|
};
|
|
24
|
-
export const disabled =
|
|
25
|
-
disabled
|
|
37
|
+
export const disabled = {
|
|
38
|
+
render: () => (_jsx(TimePicker, { onChange: action("time changed"), onInputChange: action("input changed"), labelText: "Duration", placeholder: "--:--", disabled: true })),
|
|
26
39
|
name: "disabled",
|
|
27
40
|
};
|
|
28
|
-
export const WithErrorState =
|
|
29
|
-
|
|
41
|
+
export const WithErrorState = {
|
|
42
|
+
render: () => (_jsx(TimePicker, { onChange: action("time changed"), onInputChange: action("input changed"), labelText: "End Time", errorMessage: "This time is invalid" })),
|
|
30
43
|
name: "with error state",
|
|
31
44
|
};
|
|
32
|
-
export const WithMinAndMaxTime =
|
|
33
|
-
|
|
45
|
+
export const WithMinAndMaxTime = {
|
|
46
|
+
render: () => (_jsx(TimePicker, { onChange: action("time changed"), onInputChange: action("input changed"), labelText: "End Time", minTime: "09:00", maxTime: "21:00" })),
|
|
34
47
|
name: "with min and max time",
|
|
35
48
|
};
|
|
36
|
-
export const WithCustomDefault =
|
|
37
|
-
|
|
49
|
+
export const WithCustomDefault = {
|
|
50
|
+
render: () => (_jsx(TimePicker, { onChange: action("time changed"), onInputChange: action("input changed"), labelText: "End Time", defaultValue: "12:38 PM" })),
|
|
38
51
|
name: "with custom default",
|
|
39
52
|
};
|
|
40
53
|
const ControlledTimePicker = () => {
|
|
41
54
|
const [value, setValue] = useState("13:43");
|
|
42
55
|
return _jsx(TimePicker, { onChange: setValue, onInputChange: setValue, labelText: "End Time", value: value });
|
|
43
56
|
};
|
|
44
|
-
export const WithValue =
|
|
45
|
-
|
|
57
|
+
export const WithValue = {
|
|
58
|
+
render: () => _jsx(ControlledTimePicker, {}),
|
|
46
59
|
name: "with value",
|
|
47
60
|
};
|
|
48
|
-
export const UsingRefToControlFocus =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
55
|
-
|
|
61
|
+
export const UsingRefToControlFocus = {
|
|
62
|
+
render: () => {
|
|
63
|
+
const ref = useRef(null);
|
|
64
|
+
const handleClick = () => {
|
|
65
|
+
ref.current.focus();
|
|
66
|
+
};
|
|
67
|
+
return (_jsxs(_Fragment, { children: [_jsx(TimePicker, { onChange: action("time changed"), onInputChange: action("input changed"), labelText: "Duration", ref: ref }), _jsx(Button, { onClick: handleClick, children: "Focus the Toggle" })] }));
|
|
68
|
+
},
|
|
56
69
|
name: "using ref to control focus",
|
|
57
70
|
};
|
|
@@ -2,5 +2,7 @@ import { InputFieldProps } from "../Input/InputField";
|
|
|
2
2
|
type TimePickerInputProps = InputFieldProps & {
|
|
3
3
|
dropdownIsOpen: boolean;
|
|
4
4
|
};
|
|
5
|
-
declare const TimePickerInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<InputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>,
|
|
5
|
+
declare const TimePickerInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<InputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
6
|
+
ref?: import("react").Ref<HTMLInputElement>;
|
|
7
|
+
}, TimePickerInputProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<InputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
8
|
export default TimePickerInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
3
|
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
|
-
|
|
4
|
+
type TimeRangeProps = SpaceProps & {
|
|
5
5
|
variant?: ComponentVariant;
|
|
6
6
|
timeFormat?: string;
|
|
7
7
|
onRangeChange?: (range: {
|
|
@@ -24,5 +24,6 @@ declare const TimeRange: React.ForwardRefExoticComponent<Omit<SpaceProps<Require
|
|
|
24
24
|
endAriaLabel?: string;
|
|
25
25
|
endTimeProps?: any;
|
|
26
26
|
startTimeProps?: any;
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
|
+
declare const TimeRange: React.ForwardRefExoticComponent<Omit<TimeRangeProps, "ref"> & React.RefAttributes<unknown>>;
|
|
28
29
|
export default TimeRange;
|
|
@@ -3,32 +3,26 @@ declare const _default: {
|
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: {
|
|
6
|
-
()
|
|
7
|
-
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
6
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
name: string;
|
|
10
8
|
};
|
|
11
9
|
export declare const DefaultSelections: {
|
|
12
|
-
()
|
|
13
|
-
|
|
14
|
-
name: string;
|
|
15
|
-
};
|
|
10
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
name: string;
|
|
16
12
|
};
|
|
17
13
|
export declare const WithRangeValidation: {
|
|
18
|
-
()
|
|
19
|
-
|
|
20
|
-
name: string;
|
|
21
|
-
};
|
|
14
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
name: string;
|
|
22
16
|
};
|
|
23
17
|
export declare const WithMinAndMaxTimeRange: {
|
|
24
|
-
()
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
name: string;
|
|
20
|
+
play: ({ canvasElement, step }: {
|
|
21
|
+
canvasElement: any;
|
|
22
|
+
step: any;
|
|
23
|
+
}) => Promise<void>;
|
|
28
24
|
};
|
|
29
25
|
export declare const UsingRefToControlFocus: {
|
|
30
|
-
()
|
|
31
|
-
|
|
32
|
-
name: string;
|
|
33
|
-
};
|
|
26
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
name: string;
|
|
34
28
|
};
|
|
@@ -1,37 +1,51 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { expect, screen, userEvent, within } from "storybook/test";
|
|
4
|
+
import { action } from "storybook/actions";
|
|
4
5
|
import { Button, PrimaryButton } from "..";
|
|
5
6
|
import TimeRange from "./TimeRange";
|
|
6
7
|
export default {
|
|
7
8
|
title: "Components/TimeRange",
|
|
8
9
|
};
|
|
9
|
-
export const Default =
|
|
10
|
-
|
|
10
|
+
export const Default = {
|
|
11
|
+
render: () => (_jsx(TimeRange, { p: "x3", onRangeChange: action("range changed"), onStartTimeChange: action("start date changed"), onEndTimeChange: action("end date changed") })),
|
|
11
12
|
name: "default",
|
|
12
13
|
};
|
|
13
|
-
export const DefaultSelections =
|
|
14
|
-
|
|
14
|
+
export const DefaultSelections = {
|
|
15
|
+
render: () => (_jsx(TimeRange, { onRangeChange: action("range changed"), defaultStartTime: "12:00 AM", defaultEndTime: "01:30 PM", onStartTimeChange: action("start date changed"), onEndTimeChange: action("end date changed") })),
|
|
15
16
|
name: "default selections",
|
|
16
17
|
};
|
|
17
|
-
export const WithRangeValidation =
|
|
18
|
-
|
|
18
|
+
export const WithRangeValidation = {
|
|
19
|
+
render: () => (_jsx(TimeRange, { onRangeChange: action("range changed"), defaultStartTime: "12:00 AM", defaultEndTime: "03:30 AM", onStartTimeChange: action("start date changed"), onEndTimeChange: action("end date changed") })),
|
|
19
20
|
name: "with range validation",
|
|
20
21
|
};
|
|
21
|
-
export const WithMinAndMaxTimeRange =
|
|
22
|
-
|
|
22
|
+
export const WithMinAndMaxTimeRange = {
|
|
23
|
+
render: () => (_jsx(TimeRange, { onRangeChange: action("range changed"), minTime: "09:00", maxTime: "18:30", onStartTimeChange: action("start date changed"), onEndTimeChange: action("end date changed") })),
|
|
23
24
|
name: "with min and max time range",
|
|
25
|
+
play: async ({ canvasElement, step }) => {
|
|
26
|
+
const canvas = within(canvasElement);
|
|
27
|
+
await step("shows constrained end time options after selecting a start time", async () => {
|
|
28
|
+
await userEvent.click(canvas.getByLabelText("Select a start time"));
|
|
29
|
+
const startOptions = screen.getAllByTestId(/select-option/);
|
|
30
|
+
await userEvent.click(startOptions[4]);
|
|
31
|
+
const startInput = canvas.getAllByTestId("select-input")[0];
|
|
32
|
+
await expect(startInput).toHaveValue("10:00 AM");
|
|
33
|
+
await userEvent.click(canvas.getByLabelText("Select an end time"));
|
|
34
|
+
const endOptions = screen.getAllByTestId(/select-option/);
|
|
35
|
+
await expect(endOptions.length).toBeGreaterThan(0);
|
|
36
|
+
});
|
|
37
|
+
},
|
|
24
38
|
};
|
|
25
|
-
export const UsingRefToControlFocus =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
35
|
-
|
|
39
|
+
export const UsingRefToControlFocus = {
|
|
40
|
+
render: () => {
|
|
41
|
+
const ref = useRef(null);
|
|
42
|
+
const handleClick = () => {
|
|
43
|
+
ref.current.inputRef1.focus();
|
|
44
|
+
};
|
|
45
|
+
const handleClick2 = () => {
|
|
46
|
+
ref.current.inputRef2.focus();
|
|
47
|
+
};
|
|
48
|
+
return (_jsxs(_Fragment, { children: [_jsx(TimeRange, { onRangeChange: action("range changed"), onStartTimeChange: action("start date changed"), onEndTimeChange: action("end date changed"), ref: ref }), _jsx(Button, { onClick: handleClick, ml: "x2", children: "Focus the First Input" }), _jsx(PrimaryButton, { onClick: handleClick2, ml: "x2", children: "Focus the Second Input" })] }));
|
|
49
|
+
},
|
|
36
50
|
name: "using ref to control focus",
|
|
37
51
|
};
|
|
@@ -2,40 +2,39 @@ declare const _default: {
|
|
|
2
2
|
title: string;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const _Toast:
|
|
5
|
+
export declare const _Toast: {
|
|
6
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
name: string;
|
|
8
|
+
play: ({ canvasElement, step }: {
|
|
9
|
+
canvasElement: any;
|
|
10
|
+
step: any;
|
|
11
|
+
}) => Promise<void>;
|
|
12
|
+
};
|
|
6
13
|
export declare const _MultipleToastsExample: {
|
|
7
|
-
()
|
|
8
|
-
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
14
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
name: string;
|
|
11
16
|
};
|
|
12
17
|
export declare const CustomizeLengthOfTimeToastIsVisible: {
|
|
13
|
-
()
|
|
14
|
-
|
|
15
|
-
name: string;
|
|
16
|
-
};
|
|
18
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
name: string;
|
|
17
20
|
};
|
|
18
21
|
export declare const WithCloseButton: {
|
|
19
|
-
()
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
name: string;
|
|
24
|
+
play: ({ canvasElement, step }: {
|
|
25
|
+
canvasElement: any;
|
|
26
|
+
step: any;
|
|
27
|
+
}) => Promise<void>;
|
|
23
28
|
};
|
|
24
29
|
export declare const WithModal: {
|
|
25
|
-
()
|
|
26
|
-
|
|
27
|
-
name: string;
|
|
28
|
-
};
|
|
30
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
name: string;
|
|
29
32
|
};
|
|
30
33
|
export declare const CloseableWithMultiLineMessage: {
|
|
31
|
-
()
|
|
32
|
-
|
|
33
|
-
name: string;
|
|
34
|
-
};
|
|
34
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
name: string;
|
|
35
36
|
};
|
|
36
37
|
export declare const MultipleCloseableToastsExample: {
|
|
37
|
-
()
|
|
38
|
-
|
|
39
|
-
name: string;
|
|
40
|
-
};
|
|
38
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
name: string;
|
|
41
40
|
};
|