From 0d1339a0c11526f6cc5e80959002cab90709aee9 Mon Sep 17 00:00:00 2001 From: Odin Thomas Rochmann Date: Wed, 26 Feb 2025 14:10:55 +0100 Subject: [PATCH] refactor: remove ag-grid-styles documentation and stories --- .../src/stories/ag-grid/ag-grid-styles.mdx | 6 --- .../ag-grid/ag-grid-styles.stories.tsx | 46 ------------------- 2 files changed, 52 deletions(-) delete mode 100644 storybook/src/stories/ag-grid/ag-grid-styles.mdx delete mode 100644 storybook/src/stories/ag-grid/ag-grid-styles.stories.tsx diff --git a/storybook/src/stories/ag-grid/ag-grid-styles.mdx b/storybook/src/stories/ag-grid/ag-grid-styles.mdx deleted file mode 100644 index cbc186571..000000000 --- a/storybook/src/stories/ag-grid/ag-grid-styles.mdx +++ /dev/null @@ -1,6 +0,0 @@ -import { Meta, Markdown, Title } from '@storybook/blocks'; -import readme from '@equinor/fusion-react-ag-grid-styles/README.md?raw'; - - - -{readme} diff --git a/storybook/src/stories/ag-grid/ag-grid-styles.stories.tsx b/storybook/src/stories/ag-grid/ag-grid-styles.stories.tsx deleted file mode 100644 index 6a8beaa8b..000000000 --- a/storybook/src/stories/ag-grid/ag-grid-styles.stories.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { Meta } from '@storybook/react'; - -import { AgGridReact } from '@ag-grid-community/react'; - -import { useStyles } from '@equinor/fusion-react-ag-grid-styles'; - -import { ModuleRegistry } from '@ag-grid-community/core'; -import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model'; -import { faker } from '@faker-js/faker'; -import { useRef } from 'react'; - -ModuleRegistry.registerModules([ClientSideRowModelModule]); - -const meta: Meta = { - title: 'ag-grid/styles', -}; - -export default meta; - -faker.seed(0); - -export const AlpineFusionTheme = () => { - useStyles(); - const rowdData = Array.from({ length: 5 }, () => ({ - name: faker.person.firstName(), - lastName: faker.person.lastName(), - date: faker.date.past(), - order: String(faker.number.int()), - })); - - const columnDefs = [ - { field: 'name', editable: true }, - { field: 'lastName', editable: true }, - { field: 'date' }, - { field: 'order', editable: true }, - ]; - const gridRef = useRef(null); - - return ( - <> -
- -
- - ); -};