Skip to content

Commit

Permalink
[core] Init new jsx transform
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Apr 26, 2024
1 parent 4e50533 commit 97eb4d4
Show file tree
Hide file tree
Showing 1,653 changed files with 172 additions and 1,762 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
'import/no-relative-packages': 'off',
'no-spaced-func': 'off',
'consistent-return': 'off',
'react/react-in-jsx-scope': 'off',
},
parserOptions: {
project: './tsconfig.eslint.json',
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect } from 'react';
import { useEffect } from 'react';
import { addons } from '@storybook/preview-api';
import { IconTextDirectionLtr, IconTextDirectionRtl } from '@tabler/icons-react';
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import cx from 'clsx';
import type { MDXComponents } from 'mdx/types';
import { Anchor, Code, Image, Title } from '@mantine/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Text } from '@mantine/core';
import classes from './MdxErrorMessage.module.css';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { IconInfoCircle } from '@tabler/icons-react';
import cx from 'clsx';
import { Blockquote, BlockquoteProps, rgba, useMantineTheme } from '@mantine/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { MdxNpmScript } from '../MdxNpmScript/MdxNpmScript';

interface MdxInstallScriptProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { useLocalStorage } from '@mantine/hooks';
import { NpmIcon, YarnIcon } from '@mantinex/dev-icons';
import { CodeHighlightTabs } from '@mantinex/shiki';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Head from 'next/head';
import Link from 'next/link';
import { IconArrowLeft, IconBug, IconPencil } from '@tabler/icons-react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import classes from './PageHeaderLink.module.css';

interface PageHeaderLinkProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { SimpleGrid, Text, Title } from '@mantine/core';
import { SocialCard } from '@/components/SocialCard';
import classes from './NothingFound.module.css';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Link from 'next/link';
import { Divider, Highlight } from '@mantine/core';
import { Frontmatter } from '@/types';
Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/components/Shell/Shell.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Link from 'next/link';
import cx from 'clsx';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { IconArrowUpRight } from '@tabler/icons-react';
import { DiscordIcon, GithubIcon } from '@mantinex/dev-icons';
import { meta } from '@mantinex/mantine-meta';
Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/demos/AlignInputButton.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Button, Group, TextInput } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';
import classes from './AlignInputButton.demo.module.css';
Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/demos/AutocompleteCity.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Autocomplete } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';

Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/demos/ColorSchemeColor.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Button, Group } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';

Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/demos/DropzoneForm.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Center, CloseButton, Text } from '@mantine/core';
import { Dropzone, MIME_TYPES } from '@mantine/dropzone';
import { useForm } from '@mantine/form';
Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/demos/FieldsetInputs.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Button, Fieldset, TextInput } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { IconPhone } from '@tabler/icons-react';
import { ActionIcon, Affix, Text } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Button } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';

Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/demos/InputFocusStyles.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { TextInput } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';
import classes from './InputFocusStyles.demo.module.css';
Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/demos/InputMask.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { IMaskInput } from 'react-imask';
import { InputBase } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { TextInput } from '@mantine/core';
import { DatePickerInput } from '@mantine/dates';
import { MantineDemo } from '@mantinex/demo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { createTheme, Input, MantineThemeProvider, NativeSelect, TextInput } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';
import classes from './InputThemeFocusStyles.demo.module.css';
Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/demos/SelectCountry.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Select } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';

Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/demos/TabsBorderColor.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Tabs } from '@mantine/core';
import { MantineDemo } from '@mantinex/demo';
import classes from './TabsBorderColor.demo.module.css';
Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import '@mantinex/mantine-logo/styles.css';
import '@mantinex/mantine-header/styles.css';
import '../fonts/GreycliffCF/styles.css';

import React from 'react';
import Head from 'next/head';
import { MantineProvider } from '@mantine/core';
import { ShikiProvider } from '@mantinex/shiki';
Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Head, Html, Main, NextScript } from 'next/document';
import { ColorSchemeScript } from '@mantine/core';

Expand Down
1 change: 0 additions & 1 deletion apps/help.mantine.dev/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { QuestionsList } from '@/components/QuestionsList';
import { MDX_DATA } from '@/mdx';

Expand Down
2 changes: 1 addition & 1 deletion apps/help.mantine.dev/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"paths": {
"@/*": ["./src/*"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { IconArrowLeft, IconCode, IconLayoutBoard, IconMenu2 } from '@tabler/icons-react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { AppShell, Burger, Group, Skeleton, Text } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from '@mantinex/mantine-logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { AppShell, Burger, Group, Skeleton } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from '@mantinex/mantine-logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { AppShell, Burger, Group, Skeleton } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from '@mantinex/mantine-logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { AppShell, Burger, Button, Group, Skeleton } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from '@mantinex/mantine-logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { AppShell, Burger, Group, Skeleton } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from '@mantinex/mantine-logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { AppShell, Group, rem, Text } from '@mantine/core';
import { useHeadroom } from '@mantine/hooks';
import { MantineLogo } from '@mantinex/mantine-logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { AppShell, Burger, Group, UnstyledButton } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from '@mantinex/mantine-logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { AppShell, Burger, Group, ScrollArea, Skeleton } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from '@mantinex/mantine-logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { AppShell, Burger, Group, Skeleton } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from '@mantinex/mantine-logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { AppShell, Burger, Group, Skeleton } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from '@mantinex/mantine-logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { useRouter } from 'next/router';
import cx from 'clsx';
import { Badge, RemoveScroll, Text } from '@mantine/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { PageHead } from '@/components/PageHead';
import { ComboboxDemo } from '../ComboboxDemo/ComboboxDemo';
import { ComboboxShell } from '../ComboboxShell/ComboboxShell';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { CloseButton } from '@mantine/core';
import { countriesData, flags } from './countries-data';
import classes from './CountryPill.module.css';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { rem } from '@mantine/core';

const flagProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import chroma from 'chroma-js';
import { ColorSwatch, Group, isLightColor } from '@mantine/core';
import classes from './ColorsList.module.css';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Input } from '@mantine/core';
import { MdxCodeHighlight } from '@/components/MdxProvider';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Button, Input, MantineColorsTuple, MantineProvider, Table } from '@mantine/core';
import { useDebouncedValue } from '@mantine/hooks';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Head from 'next/head';
import { PageBase } from '@/components/PageBase';
import { PageContentContainer } from '../PageContentContainer';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { IconCheck, IconCopy } from '@tabler/icons-react';
import { ActionIcon, Code, CopyButton, Group } from '@mantine/core';
import CSS_FILES_LIST from '@/.docgen/css-exports.json';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Code, Table, Text } from '@mantine/core';
import classes from './CssVariablesGroup.module.css';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { ColorSwatch } from '@mantine/core';

const colorVariableRegex = /^(var\(--mantine-color[\w-]+\)|#\w+|rgba?\([\w,. ]+\))$/gm;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Code, DEFAULT_THEME, defaultCssVariablesResolver, keys } from '@mantine/core';
import { MdxDataTable, MdxTitle } from '../MdxProvider';
import { CssVariableColorSwatch } from './CssVariableColorSwatch/CssVariableColorSwatch';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Code, DEFAULT_THEME, defaultCssVariablesResolver } from '@mantine/core';
import { MdxDataTable } from '../MdxProvider';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { DEFAULT_THEME } from '@mantine/core';
import { MdxCodeHighlight } from '../MdxProvider';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import cx from 'clsx';
import classes from './DocsSection.module.css';

Expand Down
1 change: 0 additions & 1 deletion apps/mantine.dev/src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import cx from 'clsx';
import { Box, Container, Group, RemoveScroll, Text } from '@mantine/core';
import { Logo } from '../Logo/Logo';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Link from 'next/link';
import { Text } from '@mantine/core';
import classes from './LinksGroup.module.css';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Link from 'next/link';
import { frameworkIcons } from '@/components/icons';
import type { FrameworkData } from '../data';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { FRAMEWORKS_GUIDES_DATA } from './data';
import { FrameworkLink } from './FrameworkLink/FrameworkLink';
import classes from './FrameworksGuides.module.css';
Expand Down
1 change: 0 additions & 1 deletion apps/mantine.dev/src/components/GaScript/GaScript.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Script from 'next/script';

const gaScript = `
Expand Down
1 change: 0 additions & 1 deletion apps/mantine.dev/src/components/HomePage/Banner/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Button, Container, Overlay, Text, Title } from '@mantine/core';
import { GithubIcon } from '@mantinex/dev-icons';
import banner from './banner.webp';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import {
IconBold,
IconCalendar,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Box, Text } from '@mantine/core';
import { AccordionDemo, TimelineBase } from '@docs/demos';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import dayjs from 'dayjs';
import React from 'react';
import { Input, Paper, SimpleGrid } from '@mantine/core';
import { DatePicker, DatePickerInput, DateTimePicker, TimeInput } from '@mantine/dates';
import classes from './Demos.module.css';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import {
Autocomplete,
ColorInput,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { TipTapDemos } from '@docs/demos';
import classes from './Demos.module.css';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Slider } from '@mantine/core';
import classes from './CustomizeSlider.demo.module.css';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Link from 'next/link';
import { IconArrowRight } from '@tabler/icons-react';
import { Button, rem, SimpleGrid, Slider, Text } from '@mantine/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Box } from '@mantine/core';
import { Demo } from '@mantinex/demo';
import { TimelineDemos } from '@docs/demos';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { IconMoonStars, IconSun } from '@tabler/icons-react';
import { Button, Group, Image, SimpleGrid, Text, useMantineColorScheme } from '@mantine/core';
import { CodeHighlight } from '@mantinex/shiki';
Expand Down
1 change: 0 additions & 1 deletion apps/mantine.dev/src/components/HomePage/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Head from 'next/head';
import { Footer } from '../Footer';
import { Shell } from '../Shell';
Expand Down
1 change: 0 additions & 1 deletion apps/mantine.dev/src/components/HomePage/Hooks/Hooks.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import {
IconArrowsMaximize,
IconClock,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Space } from '@mantine/core';
import { SocialCards } from '../../SocialCards';
import { PageSection } from '../PageSection/PageSection';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { useMantineTheme } from '@mantine/core';
import classes from './Jumbotron.module.css';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Link from 'next/link';
import { Button, Container, Group, rem, SimpleGrid, Text } from '@mantine/core';
import { GithubIcon } from '@mantinex/dev-icons';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Box, BoxProps, Container, ElementProps, Text } from '@mantine/core';
import { SectionTitle } from '../SectionTitle/SectionTitle';
import classes from './PageSection.module.css';
Expand Down
Loading

0 comments on commit 97eb4d4

Please sign in to comment.