Skip to content

Commit

Permalink
update filtering display mode and install docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Jul 18, 2023
1 parent 46ed995 commit 9a355d7
Show file tree
Hide file tree
Showing 20 changed files with 2,682 additions and 90 deletions.
34 changes: 0 additions & 34 deletions apps/mantine-react-table-docs/components/mdx/GuideCard.tsx

This file was deleted.

52 changes: 42 additions & 10 deletions apps/mantine-react-table-docs/components/mdx/PopularDocs.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box } from '@mantine/core';
import { GuideCard } from './GuideCard';
import { Box, Button } from '@mantine/core';
import Link from 'next/link';

export const PopularDocs = () => {
return (
Expand All @@ -13,14 +13,46 @@ export const PopularDocs = () => {
},
}}
>
<GuideCard title="Table Options" href="/docs/api/table-options" />
<GuideCard title="Basic Example" href="docs/examples/basic" />
<GuideCard title="Advanced Example" href="docs/examples/advanced" />
<GuideCard title="Fetching Example" href="docs/examples/react-query" />
<GuideCard title="Localization" href="docs/guides/localization" />
<GuideCard title="Create Columns" href="docs/guides/data-columns" />
<GuideCard title="Column Filtering" href="docs/guides/column-filtering" />
<GuideCard title="Selection" href="docs/guides/row-selection" />
<Link href="/docs/examples/basic">
<Button size="xl" fullWidth variant="gradient">
Usage
</Button>
</Link>
<Link href="/docs/api/table-options">
<Button size="xl" fullWidth variant="gradient">
Table Options
</Button>
</Link>
<Link href="/docs/examples/editing-crud">
<Button size="xl" fullWidth variant="gradient">
CRUD Examples
</Button>
</Link>
<Link href="/docs/examples/react-query">
<Button size="xl" fullWidth variant="gradient">
Fetching Examples
</Button>
</Link>
<Link href="/docs/guides/localization">
<Button size="xl" fullWidth variant="gradient">
Localization
</Button>
</Link>
<Link href="/docs/guides/data-columns">
<Button size="xl" fullWidth variant="gradient">
Create Columns
</Button>
</Link>
<Link href="/docs/guides/column-filtering">
<Button size="xl" fullWidth variant="gradient">
Column Filtering
</Button>
</Link>
<Link href="/docs/guides/row-selection">
<Button size="xl" fullWidth variant="gradient">
Row Selection
</Button>
</Link>
</Box>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SourceCodeSnippet } from '../../components/mdx/SourceCodeSnippet';
import Example from './sandbox/src/TS';
const JS = require('!!raw-loader!./sandbox/src/JS.js').default;
const TS = require('!!raw-loader!./sandbox/src/TS.tsx').default;

const ExampleTable = () => {
return (
<SourceCodeSnippet
Component={Example}
javaScriptCode={JS}
typeScriptCode={TS}
tableId="alternate-column-filtering"
/>
);
};

export default ExampleTable;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example

To run this example:

- `npm install` or `yarn`
- `npm run start` or `yarn start`
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mantine React Table Example</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

2 comments on commit 9a355d7

@vercel
Copy link

@vercel vercel bot commented on 9a355d7 Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 9a355d7 Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.