Skip to content

Commit

Permalink
Migrate @mantine/ds to @mantinex/* packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Nov 21, 2023
1 parent 0a45f75 commit 82f878b
Show file tree
Hide file tree
Showing 28 changed files with 104 additions and 104 deletions.
2 changes: 1 addition & 1 deletion components/ComponentCanvas/CanvasHeader/CanvasHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GithubIcon } from "@mantine/ds";
import { GithubIcon } from "@mantinex/dev-icons";
import { IconExternalLink, IconCode, IconEye } from '@tabler/icons-react';
import { Group, Text, ActionIcon, Badge, SegmentedControl, Center, Box } from '@mantine/core';
import { ColorControl } from '../ColorControl/ColorControl';
Expand Down
2 changes: 1 addition & 1 deletion components/ComponentCanvas/ComponentCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import cx from 'clsx';
import { useState } from 'react';
import { CodeHighlightTabs } from '@mantine/code-highlight';
import { MantineThemeProvider, Box } from '@mantine/core';
import { getCodeFileIcon } from "@mantine/ds";
import { getCodeFileIcon } from "@mantinex/dev-icons";
import * as UiComponents from '../../lib';
import { UiComponent } from '../../data';
import { ComponentPreview } from '../ComponentPreview/ComponentPreview';
Expand Down
2 changes: 1 addition & 1 deletion components/ComponentPage/ComponentPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import Head from 'next/head';
import { MantineThemeProvider, useMantineTheme } from '@mantine/core';
import { getCodeFileIcon } from "@mantine/ds";
import { getCodeFileIcon } from "@mantinex/dev-icons";
import { CodeHighlightTabs } from '@mantine/code-highlight';
import * as UiComponents from '../../lib';
import { ComponentPreview } from '../ComponentPreview/ComponentPreview';
Expand Down
2 changes: 1 addition & 1 deletion components/HomePage/Banner/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import cx from 'clsx';
import { IconExternalLink } from '@tabler/icons-react';
import { GithubIcon } from "@mantine/ds";
import { GithubIcon } from "@mantinex/dev-icons";
import {
Title,
Overlay,
Expand Down
11 changes: 4 additions & 7 deletions components/Shell/Shell.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import Link from 'next/link';
import { AppShell, Container, RemoveScroll, Group } from '@mantine/core';
import {
ColorSchemeControl,
HeaderControls,
MantineLogo,
meta,
SearchMobileControl,
} from '@mantine/ds';
import { ColorSchemeControl, HeaderControls, SearchMobileControl } from '@mantinex/mantine-header';
import { MantineLogo } from '@mantinex/mantine-logo';
import { meta } from '@mantinex/mantine-meta';
import { searchHandlers } from '../Search';
import classes from './Shell.module.css';

Expand All @@ -28,6 +24,7 @@ export function Shell({ children }: ShellProps) {
onSearch={searchHandlers.open}
githubLink={meta.gitHubLinks.mantineUi}
withDirectionToggle={false}
discordLink={meta.discordLink}
/>

<Group hiddenFrom="sm">
Expand Down
2 changes: 1 addition & 1 deletion lib/AuthenticationForm/TwitterButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button, ButtonProps } from '@mantine/core';
import { TwitterIcon } from "@mantine/ds";
import { TwitterIcon } from "@mantinex/dev-icons";

export function TwitterButton(props: ButtonProps & React.ComponentPropsWithoutRef<'button'>) {
return (
Expand Down
2 changes: 1 addition & 1 deletion lib/DoubleHeader/DoubleHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import { Container, Anchor, Group, Burger, Box } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './DoubleHeader.module.css';

const userLinks = [
Expand Down
2 changes: 1 addition & 1 deletion lib/DoubleNavbar/DoubleNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
IconUser,
IconSettings,
} from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './DoubleNavbar.module.css';

const mainLinksMockdata = [
Expand Down
2 changes: 1 addition & 1 deletion lib/FooterCentered/FooterCentered.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Anchor, Group, ActionIcon, rem } from '@mantine/core';
import { IconBrandTwitter, IconBrandYoutube, IconBrandInstagram } from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './FooterCentered.module.css';

const links = [
Expand Down
2 changes: 1 addition & 1 deletion lib/FooterLinks/FooterLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Text, Container, ActionIcon, Group, rem } from '@mantine/core';
import { IconBrandTwitter, IconBrandYoutube, IconBrandInstagram } from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './FooterLinks.module.css';

const data = [
Expand Down
2 changes: 1 addition & 1 deletion lib/FooterSimple/FooterSimple.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Container, Group, Anchor } from '@mantine/core';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './FooterSimple.module.css';

const links = [
Expand Down
2 changes: 1 addition & 1 deletion lib/FooterSocial/FooterSocial.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Container, Group, ActionIcon, rem } from '@mantine/core';
import { IconBrandTwitter, IconBrandYoutube, IconBrandInstagram } from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './FooterSocial.module.css';

export function FooterSocial() {
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderMegaMenu/HeaderMegaMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
rem,
useMantineTheme,
} from '@mantine/core';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import { useDisclosure } from '@mantine/hooks';
import {
IconNotification,
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderMenu/HeaderMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Menu, Group, Center, Burger, Container } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { IconChevronDown } from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './HeaderMenu.module.css';

const links = [
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderSearch/HeaderSearch.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Autocomplete, Group, Burger, rem } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { IconSearch } from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './HeaderSearch.module.css';

const links = [
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderSimple/HeaderSimple.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import { Container, Group, Burger } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './HeaderSimple.module.css';

const links = [
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderTabs/HeaderTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
IconSwitchHorizontal,
IconChevronDown,
} from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './HeaderTabs.module.css';

const user = {
Expand Down
2 changes: 1 addition & 1 deletion lib/HeroTitle/HeroTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Container, Text, Button, Group } from '@mantine/core';
import { GithubIcon } from "@mantine/ds";
import { GithubIcon } from "@mantinex/dev-icons";
import classes from './HeroTitle.module.css';

export function HeroTitle() {
Expand Down
2 changes: 1 addition & 1 deletion lib/NavbarMinimal/NavbarMinimal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
IconLogout,
IconSwitchHorizontal,
} from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './NavbarMinimal.module.css';

interface NavbarLinkProps {
Expand Down
2 changes: 1 addition & 1 deletion lib/NavbarMinimalColored/NavbarMinimalColored.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
IconLogout,
IconSwitchHorizontal,
} from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './NavbarMinimalColored.module.css';

interface NavbarLinkProps {
Expand Down
2 changes: 1 addition & 1 deletion lib/NavbarSegmented/NavbarSegmented.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function NavbarSegmented() {

<SegmentedControl
value={section}
onChange={(value: "account" | "general") => setSection(value)}
onChange={(value: any) => setSection(value)}
transitionTimingFunction="ease"
fullWidth
data={[
Expand Down
2 changes: 1 addition & 1 deletion lib/NavbarSimple/NavbarSimple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
IconSwitchHorizontal,
IconLogout,
} from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './NavbarSimple.module.css';

const data = [
Expand Down
2 changes: 1 addition & 1 deletion lib/NavbarSimpleColored/NavbarSimpleColored.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
IconSwitchHorizontal,
IconLogout,
} from '@tabler/icons-react';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import classes from './NavbarSimpleColored.module.css';

const data = [
Expand Down
2 changes: 1 addition & 1 deletion lib/SocialButtons/SocialButtons.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button, ButtonProps, Group } from '@mantine/core';
import { GithubIcon, DiscordIcon, TwitterIcon } from "@mantine/ds";
import { GithubIcon, DiscordIcon, TwitterIcon } from "@mantinex/dev-icons";
import { GoogleIcon } from './GoogleIcon';
import { FacebookIcon } from './FacebookIcon';
import classes from './SocialButtons.module.css';
Expand Down
2 changes: 1 addition & 1 deletion lib/TaskCard/TaskCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Card, Avatar, Text, Progress, Badge, Group, ActionIcon } from '@mantine/core';
import { MantineLogo } from "@mantine/ds";
import { MantineLogo } from "@mantinex/mantine-logo";
import { IconUpload } from '@tabler/icons-react';

const avatars = [
Expand Down
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
},
"dependencies": {
"@hello-pangea/dnd": "^16.3.0",
"@mantine/carousel": "7.0.0",
"@mantine/code-highlight": "7.0.0",
"@mantine/core": "7.0.0",
"@mantine/dropzone": "7.0.0",
"@mantine/ds": "7.0.0",
"@mantine/form": "7.0.0",
"@mantine/hooks": "7.0.0",
"@mantine/spotlight": "7.0.0",
"@mantine/carousel": "7.2.2",
"@mantine/code-highlight": "7.2.2",
"@mantine/core": "7.2.2",
"@mantine/dropzone": "7.2.2",
"@mantine/form": "7.2.2",
"@mantine/hooks": "7.2.2",
"@mantine/spotlight": "7.2.2",
"@mantinex/dev-icons": "^1.0.1",
"@mantinex/mantine-header": "^1.0.1",
"@mantinex/mantine-logo": "^1.0.1",
"@mantinex/mantine-meta": "^1.0.1",
"@next/bundle-analyzer": "^13.4.4",
"@tabler/icons-react": "^2.20.0",
"dayjs": "^1.11.9",
Expand Down
3 changes: 2 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import '@mantine/code-highlight/styles.css';
import '@mantine/carousel/styles.css';
import '@mantine/dropzone/styles.css';
import '@mantine/spotlight/styles.css';
import '@mantine/ds/styles.css';
import '@mantinex/mantine-header/styles.css';
import '@mantinex/mantine-logo/styles.css';
import Head from 'next/head';
import { MantineProvider, DirectionProvider, localStorageColorSchemeManager } from '@mantine/core';
import { HotKeysHandler } from '@/components/HotKeysHandler';
Expand Down
Loading

0 comments on commit 82f878b

Please sign in to comment.