Skip to content

Commit

Permalink
release v1.0.0 - Initial Stable Release!
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Jul 18, 2023
1 parent 9a355d7 commit 01591e4
Show file tree
Hide file tree
Showing 32 changed files with 495 additions and 279 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

View the [Docs Site](https://www.mantine-react-table.com/)

A work in progress fork of [Material React Table](https://www.material-react-table.com)
A fork of [Material React Table](https://www.material-react-table.com)

Coming soon in early 2023, but you can try out the beta now.
V1 released July 18, 2023

<a href="https://npmjs.com/package/mantine-react-table" target="_blank">
<img alt="" src="https://badgen.net/npm/v/mantine-react-table?color=blue" />
Expand Down
56 changes: 56 additions & 0 deletions apps/mantine-react-table-docs/components/mdx/BlogAuthor.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import Image from 'next/image';
import { Box, Anchor, Stack, Title, Text } from '@mantine/core';

interface Props {
author?: string;
authorImage?: string;
authorLink?: string;
publishDate: string;
}

export const BlogAuthor = ({
author = 'Kevin Van Cott',
authorImage = '/contributors/kevinvancott.jpg',
authorLink = 'https://www.kevinvancott.dev',
publishDate,
}: Props) => {
return (
<Stack>
<Box
sx={{
display: 'grid',
gridTemplateColumns: 'auto 50px',
gap: '1rem',
justifyContent: 'flex-start',
alignItems: 'center',
}}
>
<Text fz="14pt">
By{' '}
<Anchor
color="text.primary"
sx={{
textDecoration: 'none',
'&:hover': { textDecoration: 'underline' },
}}
target="_blank"
rel="noopener noreferrer"
href={authorLink}
>
{author}
</Anchor>
</Text>
<Image
alt="author"
src={authorImage}
width={30}
height={30}
style={{ borderRadius: '50%' }}
/>
</Box>
<Text color="gray">
Published: <i>{new Date(publishDate).toLocaleDateString()}</i>
</Text>
</Stack>
);
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Divider, Text, Title } from '@mantine/core';
import { Divider, Text, Title } from '@mantine/core';
import { Blockquote } from './Blockquote';
import { SampleCodeSnippet } from './SampleCodeSnippet';
import { LinkHeading } from './LinkHeading';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ export const Footer = () => {
items={
routes
.find((item) => item.href === '/docs/api')
?.items?.find((item) => item.label === 'Options')
?.items ?? []
?.items?.find((item) => item.label === 'Options')?.items ?? []
}
isFooter
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const TopBar = ({ navOpen, setNavOpen }: Props) => {
})}
>
<Flex align="center" gap="md">
{(!isDesktop || pathname === "/") && (
{(!isDesktop || pathname === '/') && (
<Burger
color="white"
opened={navOpen}
Expand Down
20 changes: 10 additions & 10 deletions apps/mantine-react-table-docs/components/navigation/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,16 +287,16 @@ export const routes: Array<RouteItem> = [
},
],
},
// {
// label: 'Blog',
// href: '/blog',
// items: [
// {
// href: '/blog',
// label: 'Blog',
// },
// ],
// },
{
label: 'Blog',
href: '/blog',
items: [
{
href: '/blog/introducing-mantine-react-table',
label: 'Introducing Mantine React Table',
},
],
},
{
label: 'Other',
href: '#',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const BasicExamples = ({ isPage = false }) => {
isPage ? push(newPath as string) : setActiveTab(newPath as string)
}
keepMounted={false}

>
<Tabs.List grow={!isPage}>
<Tabs.Tab value="basic">Basic</Tabs.Tab>
Expand Down
2 changes: 1 addition & 1 deletion apps/mantine-react-table-docs/examples/advanced/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const JS = require('!!raw-loader!./sandbox/src/JS.js').default;
const TS = require('!!raw-loader!./sandbox/src/TS.tsx').default;
const Legacy = require('!!raw-loader!./sandbox/src/Legacy.tsx').default;

const ExampleTable = ({showTopRow = true}) => {
const ExampleTable = ({ showTopRow = true }) => {
return (
<SourceCodeSnippet
Component={Example}
Expand Down
2 changes: 1 addition & 1 deletion apps/mantine-react-table-docs/examples/basic/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const JS = require('!!raw-loader!./sandbox/src/JS.js').default;
const TS = require('!!raw-loader!./sandbox/src/TS.tsx').default;
const Legacy = require('!!raw-loader!./sandbox/src/Legacy.tsx').default;

const ExampleTable = ({showTopRow = true}) => {
const ExampleTable = ({ showTopRow = true }) => {
return (
<SourceCodeSnippet
Component={Example}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Example = () => {
mantinePaginationProps: {
rowsPerPageOptions: ['5', '10', '15'],
},
paginationDisplayMode: 'pages'
paginationDisplayMode: 'pages',
});

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Example = () => {
mantinePaginationProps: {
rowsPerPageOptions: ['5', '10', '15'],
},
paginationDisplayMode: 'pages'
paginationDisplayMode: 'pages',
});

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useMemo } from 'react';
import { MantineReactTable, type MRT_ColumnDef } from 'mantine-react-table';
import { MantineReactTable } from 'mantine-react-table';
import { data } from './makeData';

const Example = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo } from 'react';
import { MantineReactTable } from 'mantine-react-table';
import { data, type Person } from './makeData';
import { data } from './makeData';

const Example = () => {
const columns = useMemo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MRT_Localization_DA } from 'mantine-react-table/locales/da';
//mock data
import { data } from './makeData';

const columns: MRT_ColumnDef<Person>[] = [
const columns = [
{
accessorKey: 'firstName',
header: 'Fornavn',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//Import Mantine React Table and its Types
import { MantineReactTable, type MRT_ColumnDef } from 'mantine-react-table';
import { MantineReactTable } from 'mantine-react-table';

//Import Mantine React Table Translations
import { MRT_Localization_NL } from 'mantine-react-table/locales/nl';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MantineReactTable } from 'mantine-react-table';
import { MRT_Localization_SR_CYRL_RS } from 'mantine-react-table/locales/sr-Cyrl-RS';

//mock data
import { data, type Person } from './makeData';
import { data } from './makeData';

const columns = [
{
Expand Down
2 changes: 1 addition & 1 deletion apps/mantine-react-table-docs/examples/minimal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const JS = require('!!raw-loader!./sandbox/src/JS.js').default;
const TS = require('!!raw-loader!./sandbox/src/TS.tsx').default;
const Legacy = require('!!raw-loader!./sandbox/src/Legacy.tsx').default;

const ExampleTable = ({showTopRow = true}) => {
const ExampleTable = ({ showTopRow = true }) => {
return (
<SourceCodeSnippet
Component={Example}
Expand Down
14 changes: 14 additions & 0 deletions apps/mantine-react-table-docs/pages/blog/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Head from 'next/head';
import { TableOfContentsList } from '../../components/navigation/TableOfContentsList';
import { routes } from '../../components/navigation/routes';

<Head>
<title>Mantine React Table Blog</title>
<meta name="description" content="Mantine React Table Blog Posts" />
</Head>

## Blog

<TableOfContentsList
items={routes.find((item) => item.href === '/blog').items}
/>
Loading

2 comments on commit 01591e4

@vercel
Copy link

@vercel vercel bot commented on 01591e4 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 01591e4 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.