@linzjs/windows 1.4.5 → 1.4.6

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 (76) hide show
  1. package/package.json +5 -2
  2. package/.eslintrc.cjs +0 -103
  3. package/.github/dependabot.yml +0 -12
  4. package/.github/pull_request_template.md +0 -29
  5. package/.github/workflows/chromatic.yml +0 -23
  6. package/.github/workflows/deploy-storybook.yml +0 -86
  7. package/.prettierrc.cjs +0 -12
  8. package/.storybook/main.ts +0 -37
  9. package/.storybook/preview.ts +0 -15
  10. package/.stylelintrc.json +0 -68
  11. package/config/jest/babelTransform.cjs +0 -29
  12. package/config/jest/cssTransform.cjs +0 -14
  13. package/config/jest/fileTransform.cjs +0 -38
  14. package/config/jest/setup.js +0 -2
  15. package/empty.js +0 -1
  16. package/jest.config.cjs +0 -19
  17. package/rollup.config.cjs +0 -37
  18. package/src/panel/generateId.test.ts +0 -9
  19. package/src/setupTests.ts +0 -5
  20. package/src/stories/Introduction.mdx +0 -18
  21. package/src/stories/Introduction.stories.tsx +0 -8
  22. package/src/stories/modal/Modal.mdx +0 -26
  23. package/src/stories/modal/Modal.stories.tsx +0 -27
  24. package/src/stories/modal/PrefabModal.mdx +0 -26
  25. package/src/stories/modal/PrefabModal.stories.tsx +0 -27
  26. package/src/stories/modal/PrefabModal.tsx +0 -63
  27. package/src/stories/modal/TestModal.scss +0 -16
  28. package/src/stories/modal/TestModal.tsx +0 -55
  29. package/src/stories/panel/PanelButtons/ShowPanel.mdx +0 -21
  30. package/src/stories/panel/PanelButtons/ShowPanel.stories.tsx +0 -27
  31. package/src/stories/panel/PanelButtons/ShowPanel.tsx +0 -88
  32. package/src/stories/panel/ShowPanel/ShowPanel.mdx +0 -20
  33. package/src/stories/panel/ShowPanel/ShowPanel.stories.tsx +0 -27
  34. package/src/stories/panel/ShowPanel/ShowPanel.tsx +0 -68
  35. package/src/stories/panel/ShowPanelDocking/ShowPanel.mdx +0 -20
  36. package/src/stories/panel/ShowPanelDocking/ShowPanel.stories.tsx +0 -27
  37. package/src/stories/panel/ShowPanelDocking/ShowPanel.tsx +0 -61
  38. package/src/stories/panel/ShowPanelResizingAgGrid/ShowPanelResizingAgGrid.mdx +0 -21
  39. package/src/stories/panel/ShowPanelResizingAgGrid/ShowPanelResizingAgGrid.stories.tsx +0 -27
  40. package/src/stories/panel/ShowPanelResizingAgGrid/ShowPanelResizingStepAgGrid.tsx +0 -162
  41. package/src/stories/panel/ShowTabbedPanel/ShowPanel.mdx +0 -20
  42. package/src/stories/panel/ShowTabbedPanel/ShowPanel.stories.tsx +0 -27
  43. package/src/stories/panel/ShowTabbedPanel/ShowPanel.tsx +0 -73
  44. package/src/stories/panel/story.scss +0 -14
  45. package/src/stories/support.js +0 -16
  46. package/src/util/useInterval.test.tsx +0 -26
  47. package/tsconfig.json +0 -37
  48. /package/{src → dist}/index.ts +0 -0
  49. /package/{src → dist}/modal/Modal.tsx +0 -0
  50. /package/{src → dist}/modal/ModalContext.scss +0 -0
  51. /package/{src → dist}/modal/ModalContext.tsx +0 -0
  52. /package/{src → dist}/modal/ModalContextProvider.tsx +0 -0
  53. /package/{src → dist}/modal/ModalInstanceContext.ts +0 -0
  54. /package/{src → dist}/modal/PrefabModal.scss +0 -0
  55. /package/{src → dist}/modal/PrefabModal.tsx +0 -0
  56. /package/{src → dist}/modal/index.ts +0 -0
  57. /package/{src → dist}/modal/useShowModal.ts +0 -0
  58. /package/{src → dist}/panel/OpenPanelButton.tsx +0 -0
  59. /package/{src → dist}/panel/OpenPanelIcon.scss +0 -0
  60. /package/{src → dist}/panel/OpenPanelIcon.tsx +0 -0
  61. /package/{src → dist}/panel/Panel.scss +0 -0
  62. /package/{src → dist}/panel/Panel.tsx +0 -0
  63. /package/{src → dist}/panel/PanelBlue.scss +0 -0
  64. /package/{src → dist}/panel/PanelContext.ts +0 -0
  65. /package/{src → dist}/panel/PanelDock.tsx +0 -0
  66. /package/{src → dist}/panel/PanelHeader.tsx +0 -0
  67. /package/{src → dist}/panel/PanelHeaderButton.tsx +0 -0
  68. /package/{src → dist}/panel/PanelInstanceContext.ts +0 -0
  69. /package/{src → dist}/panel/PanelInstanceContextProvider.tsx +0 -0
  70. /package/{src → dist}/panel/PanelsContext.tsx +0 -0
  71. /package/{src → dist}/panel/PanelsContextProvider.tsx +0 -0
  72. /package/{src → dist}/panel/PopoutWindow.tsx +0 -0
  73. /package/{src → dist}/panel/generateId.ts +0 -0
  74. /package/{src → dist}/panel/handleStyleSheetsChanges.ts +0 -0
  75. /package/{src → dist}/panel/index.ts +0 -0
  76. /package/{src → dist}/util/useInterval.ts +0 -0
@@ -1,26 +0,0 @@
1
- import {getBlocks, blockToString} from "../support";
2
- import {Meta, Source, Story} from "@storybook/blocks";
3
- import * as PrefabModalStories from "./PrefabModal.stories"
4
-
5
- import myModule from './PrefabModal?raw';
6
-
7
- <Meta name="Show Prefab" of={PrefabModalStories}/>
8
- # Show Preset Modal
9
- ## Example
10
- Click to show the modal:
11
- <Story of={PrefabModalStories.ShowPrefabModal}/>
12
-
13
- ## Code
14
- <br/>
15
- {getBlocks(myModule).map((block) => (
16
- <>
17
- <h3>{block.split("\n")[0]}</h3>
18
- <Source code={blockToString(block)} language="typescript" />
19
- </>
20
- ))}
21
-
22
- ### Example: Mocking Modal response
23
-
24
- <Source code={"{ /* Responds with the value 1 */ }\n<ModalContext.Provider value={showModal: async() => 1}>\n" +
25
- "... Component under test ...\n" +
26
- "</ModalContext.Provider>\n"} language="typescript"/>
@@ -1,27 +0,0 @@
1
- import { ModalContextProvider } from "../../modal/ModalContextProvider";
2
- import { PrefabModalUsage } from "./PrefabModal";
3
- import type { Meta, StoryObj } from "@storybook/react";
4
-
5
- const meta: Meta<typeof PrefabModalUsage> = {
6
- title: "Components/Modal",
7
- component: PrefabModalUsage,
8
- argTypes: {
9
- backgroundColor: { control: "color" },
10
- },
11
- decorators: [
12
- (Story: any) => (
13
- <div>
14
- <ModalContextProvider>
15
- <Story />
16
- </ModalContextProvider>
17
- </div>
18
- ),
19
- ],
20
- };
21
-
22
- export default meta;
23
- type Story = StoryObj<typeof meta>;
24
-
25
- export const ShowPrefabModal: Story = {
26
- args: {},
27
- };
@@ -1,63 +0,0 @@
1
- import "@linzjs/lui/dist/scss/base.scss";
2
-
3
- import { ModalContextProvider, usePrefabModal } from "../../modal";
4
-
5
- // #Example: Modal Context Provider
6
- // Don't forget to add a ModalContextProvider at the root of your project
7
- export const App = () => (
8
- <ModalContextProvider>
9
- <div>...the rest of your app...</div>
10
- </ModalContextProvider>
11
- );
12
-
13
- // #Example: PrefabModal Invocation
14
- export const PrefabModalUsage = () => {
15
- // showModal to show modal, modalOwnerRef is only required if you have popout windows
16
- const { modalOwnerRef, showPrefabModal } = usePrefabModal();
17
-
18
- // Remember to add the modalOwnerRef!
19
- return (
20
- <div ref={modalOwnerRef} style={{ display: "flex", gap: 10 }}>
21
- {/* Warning */}
22
- <button
23
- onClick={async () =>
24
- alert(
25
- "Warning result: " +
26
- (await showPrefabModal(
27
- "warning",
28
- "You are about to make changes",
29
- "Are you sure that you want to make these changes?",
30
- )),
31
- )
32
- }
33
- >
34
- Warning Prefab-Modal
35
- </button>
36
- {/* Info */}
37
- <button onClick={() => showPrefabModal("info", "You are a fantastic person", "Keep it up!")}>
38
- Info Prefab-Modal
39
- </button>
40
- {/* Error */}
41
- <button onClick={() => showPrefabModal("error", "Something is not right", "Maybe stop doing that")}>
42
- Error Prefab-Modal
43
- </button>
44
- {/* Success */}
45
- <button onClick={() => showPrefabModal("success", "You are a success", "Keep succeeding!")}>
46
- Success Prefab-Modal
47
- </button>
48
- {/* Custom */}
49
- <button
50
- onClick={async () => {
51
- const result = await showPrefabModal("success", "Custom buttons", <b>Custom buttons are customary!</b>, [
52
- { value: null, title: "Nope" },
53
- { value: "barple", title: "Barple" },
54
- { value: "floople", title: "Floople", default: true },
55
- ]);
56
- alert(result);
57
- }}
58
- >
59
- Custom buttons
60
- </button>
61
- </div>
62
- );
63
- };
@@ -1,16 +0,0 @@
1
- dialog.testModal {
2
- display: flex;
3
- flex-direction: column;
4
- padding: 20px;
5
- gap: 16px;
6
- border-radius: 5px;
7
-
8
- div {
9
- display: flex;
10
- gap: 10px;
11
- }
12
-
13
- button {
14
- flex: 1;
15
- }
16
- }
@@ -1,55 +0,0 @@
1
- import "./TestModal.scss";
2
-
3
- import { Modal } from "../../modal";
4
- import { ModalCallback } from "../../modal";
5
- import { ModalContextProvider } from "../../modal";
6
- import { useShowModal } from "../../modal";
7
-
8
- // #Example: Modal Context Provider
9
- // Don't forget to add a ModalContextProvider at the root of your project
10
- export const App = () => (
11
- <ModalContextProvider>
12
- <div>...the rest of your app...</div>
13
- </ModalContextProvider>
14
- );
15
-
16
- // #Example: Modal Component
17
- // Extend your props with ModalCallback<RESULT_TYPE> to add a return type, and enable close/resolve
18
- export interface TestModalProps extends ModalCallback<number> {
19
- text: string; // A user property
20
- }
21
-
22
- // Close and resolve will be passed to your props magically!
23
- export const TestModal = ({ text, close, resolve }: TestModalProps) => (
24
- <Modal className={"testModal"}>
25
- <div>This is the modal text: '{text}'</div>
26
- <div>
27
- <button onClick={close}>Close</button>
28
- <button onClick={() => resolve(1)}>Return 1</button>
29
- </div>
30
- </Modal>
31
- );
32
-
33
- // #Example: Modal Invocation
34
- export const TestModalUsage = () => {
35
- // showModal to show modal, modalOwnerRef is only required if you have popout windows
36
- const { showModal, modalOwnerRef } = useShowModal();
37
-
38
- const showModalHandler = async () => {
39
- // Show modal and await result
40
- const result = await showModal(TestModal, { text: "Text text" });
41
-
42
- // If result is undefined the modal was closed
43
- if (!result) return alert("Modal closed");
44
-
45
- // Otherwise we have a result
46
- alert(`Modal result is: ${result}`);
47
- };
48
-
49
- // Remember to add the modalOwnerRef!
50
- return (
51
- <div ref={modalOwnerRef}>
52
- <button onClick={showModalHandler}>Show modal</button>
53
- </div>
54
- );
55
- };
@@ -1,21 +0,0 @@
1
- import {getBlocks, blockToString} from "../../support.js";
2
- import {Meta, Source, Story} from "@storybook/blocks";
3
- import * as ShowPanelStories from "./ShowPanel.stories"
4
-
5
- import myModule from './ShowPanel.tsx?raw';
6
-
7
- <Meta name="Buttons" of={ShowPanelStories}/>
8
- # Show Panel
9
- ## Example
10
- Click to show the panel:
11
- <Story of={ShowPanelStories.ShowPanel}/>
12
-
13
- ## Code
14
- <br/>
15
- {getBlocks(myModule).map(block => (
16
- <>
17
- <h3>{block.split("\n")[0]}</h3>
18
- <Source code={blockToString(block)} language='typescript'/>
19
- </>
20
- ))}
21
-
@@ -1,27 +0,0 @@
1
- import { PanelsContextProvider } from "../../../panel/PanelsContextProvider";
2
- import { TestShowPanelButtons } from "./ShowPanel";
3
- import type { Meta, StoryObj } from "@storybook/react";
4
-
5
- const meta: Meta<typeof TestShowPanelButtons> = {
6
- title: "Components/PanelButtons",
7
- component: TestShowPanelButtons,
8
- argTypes: {
9
- backgroundColor: { control: "color" },
10
- },
11
- decorators: [
12
- (Story: any) => (
13
- <div>
14
- <PanelsContextProvider baseZIndex={500}>
15
- <Story />
16
- </PanelsContextProvider>
17
- </div>
18
- ),
19
- ],
20
- };
21
-
22
- export default meta;
23
- type Story = StoryObj<typeof meta>;
24
-
25
- export const ShowPanel: Story = {
26
- args: {},
27
- };
@@ -1,88 +0,0 @@
1
- import "../story.scss";
2
- import "@linzjs/lui/dist/scss/base.scss";
3
-
4
- import {
5
- ButtonIconHorizontalGroup,
6
- ButtonIconSeparator,
7
- ButtonIconVerticalGroup,
8
- OpenPanelButton,
9
- OpenPanelIcon,
10
- Panel,
11
- PanelContent,
12
- PanelHeader,
13
- } from "../../../panel";
14
-
15
- /* exclude */
16
- export interface ShowPanelProps {
17
- data: number;
18
- }
19
-
20
- export const ShowPanel = ({ data }: ShowPanelProps) => {
21
- return (
22
- <Panel title={`Panel demo ${data}`} size={{ width: 640, height: 400 }}>
23
- <PanelHeader />
24
- <PanelContent>
25
- <PanelContents />
26
- </PanelContent>
27
- </Panel>
28
- );
29
- };
30
-
31
- export const PanelContents = () => {
32
- return (
33
- <table>
34
- <thead>
35
- <tr>
36
- <th>Owner</th>
37
- <th>Title</th>
38
- <th>Address</th>
39
- </tr>
40
- </thead>
41
- <tbody>
42
- <tr>
43
- <td>Roy</td>
44
- <td>OT10A/1011</td>
45
- <td>5 Grange St, Auckland</td>
46
- </tr>
47
- <tr>
48
- <td>Ryan</td>
49
- <td>OT10A/154</td>
50
- <td>145 Garry St, Wellington</td>
51
- </tr>
52
- <tr>
53
- <td>Suzy</td>
54
- <td>OT10A/155</td>
55
- <td>15 Aix St, Auckland</td>
56
- </tr>
57
- </tbody>
58
- </table>
59
- );
60
- };
61
- /* exclude */
62
-
63
- // #Example: Show Panel Buttons
64
- export const TestShowPanelButtons = () => (
65
- <div style={{ display: "flex", flexDirection: "column", gap: 10 }}>
66
- <div>
67
- <OpenPanelButton buttonText={"Panel name 1"} component={() => <ShowPanel data={1} />} />{" "}
68
- <OpenPanelButton buttonText={"Panel name 2"} component={() => <ShowPanel data={2} />} />
69
- </div>
70
-
71
- <ButtonIconHorizontalGroup>
72
- <OpenPanelIcon iconTitle={"Marks"} icon={"ic_marks"} component={() => <ShowPanel data={1} />} />
73
- <ButtonIconSeparator />
74
- <OpenPanelIcon iconTitle={"Vectors"} icon={"ic_line_irregular"} component={() => <ShowPanel data={2} />} />
75
- </ButtonIconHorizontalGroup>
76
-
77
- <ButtonIconVerticalGroup>
78
- <OpenPanelIcon iconTitle={"Marks"} icon={"ic_marks"} component={() => <ShowPanel data={1} />} />
79
- <ButtonIconSeparator />
80
- <OpenPanelIcon iconTitle={"Vectors"} icon={"ic_timeline"} component={() => <ShowPanel data={2} />} />
81
- <OpenPanelIcon
82
- iconTitle={"Irregular lines"}
83
- icon={"ic_line_irregular"}
84
- component={() => <ShowPanel data={3} />}
85
- />
86
- </ButtonIconVerticalGroup>
87
- </div>
88
- );
@@ -1,20 +0,0 @@
1
- import {getBlocks, blockToString} from "../../support.js";
2
- import {Meta, Source, Story} from "@storybook/blocks";
3
- import * as ShowPanelStories from "./ShowPanel.stories.tsx"
4
-
5
- import myModule from './ShowPanel.tsx?raw';
6
-
7
- <Meta name="Show" of={ShowPanelStories}/>
8
- # Show Panel
9
- ## Example
10
- Click to show the panel:
11
- <Story of={ShowPanelStories.ShowPanel}/>
12
-
13
- ## Code
14
- <br/>
15
- {getBlocks(myModule).map(block => (
16
- <>
17
- <h3>{block.split("\n")[0]}</h3>
18
- <Source code={blockToString(block)} language='typescript'/>
19
- </>
20
- ))}
@@ -1,27 +0,0 @@
1
- import { PanelsContextProvider } from "../../../panel/PanelsContextProvider";
2
- import { TestShowPanel } from "./ShowPanel";
3
- import type { Meta, StoryObj } from "@storybook/react";
4
-
5
- const meta: Meta<typeof TestShowPanel> = {
6
- title: "Components/Panel",
7
- component: TestShowPanel,
8
- argTypes: {
9
- backgroundColor: { control: "color" },
10
- },
11
- decorators: [
12
- (Story: any) => (
13
- <div>
14
- <PanelsContextProvider baseZIndex={500}>
15
- <Story />
16
- </PanelsContextProvider>
17
- </div>
18
- ),
19
- ],
20
- };
21
-
22
- export default meta;
23
- type Story = StoryObj<typeof meta>;
24
-
25
- export const ShowPanel: Story = {
26
- args: {},
27
- };
@@ -1,68 +0,0 @@
1
- import "../story.scss";
2
- import "@linzjs/lui/dist/scss/base.scss";
3
-
4
- import { OpenPanelButton, Panel, PanelContent, PanelHeader, PanelsContextProvider } from "../../../panel/";
5
-
6
- // #Example: Panel Context Provider
7
- // Don't forget to add a PanelContextProvider at the root of your project
8
- export const App = () => (
9
- <PanelsContextProvider baseZIndex={500}>
10
- <div>...the rest of your app...</div>
11
- </PanelsContextProvider>
12
- );
13
-
14
- // #Example: Panel Component
15
- export interface ShowPanelComponentProps {
16
- data: number;
17
- }
18
-
19
- export const ShowPanelComponent = ({ data }: ShowPanelComponentProps) => (
20
- <Panel title={`Panel demo ${data}`} size={{ width: 640, height: 400 }}>
21
- <PanelHeader icon={"ic_add_adopt"} />
22
- <PanelContent>
23
- <PanelContents />
24
- </PanelContent>
25
- </Panel>
26
- );
27
-
28
- /* exclude */
29
- export const PanelContents = () => (
30
- <table>
31
- <thead>
32
- <tr>
33
- <th>Owner</th>
34
- <th>Title</th>
35
- <th>Address</th>
36
- </tr>
37
- </thead>
38
- <tbody>
39
- <tr>
40
- <td>Roy</td>
41
- <td>OT10A/1011</td>
42
- <td>5 Grange St, Auckland</td>
43
- </tr>
44
- <tr>
45
- <td>Ryan</td>
46
- <td>OT10A/154</td>
47
- <td>145 Garry St, Wellington</td>
48
- </tr>
49
- <tr>
50
- <td>Suzy</td>
51
- <td>OT10A/155</td>
52
- <td>15 Aix St, Auckland</td>
53
- </tr>
54
- </tbody>
55
- </table>
56
- );
57
-
58
- /* exclude */
59
-
60
- // #Example: Panel Invocation
61
- export const TestShowPanel = () => {
62
- return (
63
- <>
64
- <OpenPanelButton buttonText={"TestPanel 1"} component={() => <ShowPanelComponent data={1} />} />{" "}
65
- <OpenPanelButton buttonText={"TestPanel 2"} component={() => <ShowPanelComponent data={2} />} />
66
- </>
67
- );
68
- };
@@ -1,20 +0,0 @@
1
- import {getBlocks, blockToString} from "../../support.js";
2
- import {Meta, Source, Story} from "@storybook/blocks";
3
- import * as ShowPanelStories from "./ShowPanel.stories.tsx"
4
-
5
- import myModule from './ShowPanel.tsx?raw';
6
-
7
- <Meta name="Docking Panel" of={ShowPanelStories}/>
8
- # Panel Docking
9
- ## Example
10
- Click to show the panel:
11
- <Story of={ShowPanelStories.ShowPanelDocking}/>
12
-
13
- ## Code
14
- <br/>
15
- {getBlocks(myModule).map(block => (
16
- <>
17
- <h3>{block.split("\n")[0]}</h3>
18
- <Source code={blockToString(block)} language='typescript'/>
19
- </>
20
- ))}
@@ -1,27 +0,0 @@
1
- import { PanelsContextProvider } from "../../../panel/PanelsContextProvider";
2
- import { TestShowPanel } from "./ShowPanel";
3
- import type { Meta, StoryObj } from "@storybook/react";
4
-
5
- const meta: Meta<typeof TestShowPanel> = {
6
- title: "Components/Panel",
7
- component: TestShowPanel,
8
- argTypes: {
9
- backgroundColor: { control: "color" },
10
- },
11
- decorators: [
12
- (Story: any) => (
13
- <div>
14
- <PanelsContextProvider baseZIndex={500}>
15
- <Story />
16
- </PanelsContextProvider>
17
- </div>
18
- ),
19
- ],
20
- };
21
-
22
- export default meta;
23
- type Story = StoryObj<typeof meta>;
24
-
25
- export const ShowPanelDocking: Story = {
26
- args: {},
27
- };
@@ -1,61 +0,0 @@
1
- import "../story.scss";
2
- import "@linzjs/lui/dist/scss/base.scss";
3
-
4
- import { OpenPanelButton, Panel, PanelContent, PanelDock, PanelHeader } from "../../../panel/";
5
-
6
- // #Example: Panel Component
7
- export interface ShowPanelComponentProps {
8
- data: number;
9
- }
10
-
11
- export const ShowPanelComponent = ({ data }: ShowPanelComponentProps) => (
12
- <Panel title={`Panel demo ${data}`} size={{ width: 640, height: 400 }}>
13
- <PanelHeader dockTo={"leftSide"} />
14
- <PanelContent>
15
- <PanelContents />
16
- </PanelContent>
17
- </Panel>
18
- );
19
-
20
- /* exclude */
21
- export const PanelContents = () => {
22
- return (
23
- <table>
24
- <thead>
25
- <tr>
26
- <th>Owner</th>
27
- <th>Title</th>
28
- <th>Address</th>
29
- </tr>
30
- </thead>
31
- <tbody>
32
- <tr>
33
- <td>Roy</td>
34
- <td>OT10A/1011</td>
35
- <td>5 Grange St, Auckland</td>
36
- </tr>
37
- <tr>
38
- <td>Ryan</td>
39
- <td>OT10A/154</td>
40
- <td>145 Garry St, Wellington</td>
41
- </tr>
42
- <tr>
43
- <td>Suzy</td>
44
- <td>OT10A/155</td>
45
- <td>15 Aix St, Auckland</td>
46
- </tr>
47
- </tbody>
48
- </table>
49
- );
50
- };
51
- /* exclude */
52
-
53
- // #Example: Panel Invocation
54
- export const TestShowPanel = () => {
55
- return (
56
- <>
57
- <OpenPanelButton buttonText={"TestPanel"} component={() => <ShowPanelComponent data={1} />} />
58
- <PanelDock id={"leftSide"}>The Panel will dock in here</PanelDock>
59
- </>
60
- );
61
- };
@@ -1,21 +0,0 @@
1
- import {getBlocks, blockToString} from "../../support.js";
2
- import {Meta, Source, Story} from "@storybook/blocks";
3
- import * as PanelStories from "./ShowPanelResizingAgGrid.stories.tsx"
4
-
5
- import myModule from './ShowPanelResizingStepAgGrid.tsx?raw';
6
-
7
- <Meta name="Resizing Panel step-ag-grid" of={PanelStories}/>
8
- # Show Panel
9
- ## Example
10
- Click to show the panel:
11
- <Story of={PanelStories.PanelResizing}/>
12
-
13
- ## Code
14
- <br/>
15
- {getBlocks(myModule).map(block => (
16
- <>
17
- <h3>{block.split("\n")[0]}</h3>
18
- <Source code={blockToString(block)} language='typescript'/>
19
- </>
20
- ))}
21
-
@@ -1,27 +0,0 @@
1
- import { PanelsContextProvider } from "../../../panel/PanelsContextProvider";
2
- import { TestShowPanelResizingAgGrid } from "./ShowPanelResizingStepAgGrid";
3
- import type { Meta, StoryObj } from "@storybook/react";
4
-
5
- const meta: Meta<typeof TestShowPanelResizingAgGrid> = {
6
- title: "Components/Panel",
7
- component: TestShowPanelResizingAgGrid,
8
- argTypes: {
9
- backgroundColor: { control: "color" },
10
- },
11
- decorators: [
12
- (Story: any) => (
13
- <div>
14
- <PanelsContextProvider baseZIndex={500}>
15
- <Story />
16
- </PanelsContextProvider>
17
- </div>
18
- ),
19
- ],
20
- };
21
-
22
- export default meta;
23
- type Story = StoryObj<typeof meta>;
24
-
25
- export const PanelResizing: Story = {
26
- args: {},
27
- };