Skip to content

Commit

Permalink
[core] Remove react-jss from all packages and files
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Sep 20, 2021
1 parent 03fc657 commit 4eb1b21
Show file tree
Hide file tree
Showing 19 changed files with 15 additions and 247 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Mantine is a MIT licensed open source react components and hooks library with fo
- **Ready for production** – mantine is well tested and works in all modern browsers
- **Developer experience** – mantine comes with more than 50 components and 15 hooks to cover you in most cases
- **No annoying focus ring** – with new :focus-visible pseudo-class focus ring appears only when user navigates with keyboard
- **React JSS** – take advantage of all react-jss features: automatic critical css extraction during ssr, lazy evaluation, dynamic theming and others
- **React and Preact** – mantine works flawlessly with preact

## Licence
Expand Down
1 change: 0 additions & 1 deletion configuration/rollup/create-package-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export default async function createPackageConfig(config: PkgConfigInput): Promi
react: 'React',
dayjs: 'dayjs',
'react-dom': 'ReactDOM',
'react-jss': 'reactJss',
};
}

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/GettingStarted/GettingStarted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import useStyles from './GettingStarted.styles';

export function GettingStarted() {
const { classes } = useStyles();
const [dependencies, setDependencies] = useState('react-jss @mantine/hooks @mantine/core');
const [dependencies, setDependencies] = useState('@mantine/hooks @mantine/core');

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ export function Installation({ dependencies }: InstallationProps) {
<div style={{ marginTop: 15 }}>
<Text style={{ marginBottom: 5 }}>Install with yarn</Text>
<Prism language="bash">
{`yarn add ${dependencies || 'react-jss @mantine/core @mantine/hooks'}`}
{`yarn add ${dependencies || '@mantine/core @mantine/hooks'}`}
</Prism>
</div>

<div style={{ marginTop: 15 }}>
<Text style={{ marginBottom: 5 }}>Install with npm</Text>
<Prism language="bash">
{`npm install ${dependencies || 'react-jss @mantine/core @mantine/hooks'}`}
{`npm install ${dependencies || '@mantine/core @mantine/hooks'}`}
</Prism>
</div>
</>
Expand Down
8 changes: 0 additions & 8 deletions docs/src/components/HomePage/Features/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
MoonIcon,
ShuffleIcon,
LightningBoltIcon,
MagicWandIcon,
} from '@modulz/radix-icons';

export default [
Expand Down Expand Up @@ -58,13 +57,6 @@ export default [
description:
'All @mantine/ scoped packages are built with TypeScript and support it by default',
},
{
icon: MagicWandIcon,
color: 'lime',
title: 'React JSS',
description:
'Take advantage of all react-jss features: automatic critical css extraction during ssr, lazy evaluation, dynamic theming, etc.',
},
{
icon: FaceIcon,
color: 'indigo',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/docs/core/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { CoreGroups } from '../../components/IndexGroups/CoreGroups';

## Installation

Package depends on [react](https://www.npmjs.com/package/react), [react-dom](https://www.npmjs.com/package/react-dom), [@mantine/hooks](https://www.npmjs.com/package/@mantine/hooks) and [react-jss](https://www.npmjs.com/package/react-jss).
Package depends on [react](https://www.npmjs.com/package/react), [react-dom](https://www.npmjs.com/package/react-dom) and [@mantine/hooks](https://www.npmjs.com/package/@mantine/hooks).

Install with npm:

Expand Down
2 changes: 1 addition & 1 deletion docs/src/docs/others/notifications.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { NotificationDemos } from '@demos/core';

## Installation

Package depends on [react](https://www.npmjs.com/package/react), [react-dom](https://www.npmjs.com/package/react-dom), [@mantine/hooks](https://www.npmjs.com/package/@mantine/hooks), [@mantine/core](https://www.npmjs.com/package/@mantine/core) and [react-jss](https://www.npmjs.com/package/react-jss).
Package depends on [react](https://www.npmjs.com/package/react), [react-dom](https://www.npmjs.com/package/react-dom), [@mantine/hooks](https://www.npmjs.com/package/@mantine/hooks) and [@mantine/core](https://www.npmjs.com/package/@mantine/core).

Install with npm:

Expand Down
2 changes: 1 addition & 1 deletion docs/src/docs/others/prism.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as PrismDemos from '@demos/prism';

## Installation

Package depends on [react](https://www.npmjs.com/package/react), [react-dom](https://www.npmjs.com/package/react-dom), [@mantine/hooks](https://www.npmjs.com/package/@mantine/hooks), [@mantine/core](https://www.npmjs.com/package/@mantine/core), [react-jss](https://www.npmjs.com/package/react-jss) and [prism-react-renderer](https://www.npmjs.com/package/prism-react-renderer).
Package depends on [react](https://www.npmjs.com/package/react), [react-dom](https://www.npmjs.com/package/react-dom), [@mantine/hooks](https://www.npmjs.com/package/@mantine/hooks), [@mantine/core](https://www.npmjs.com/package/@mantine/core) and [prism-react-renderer](https://www.npmjs.com/package/prism-react-renderer).

Install with npm:

Expand Down
2 changes: 1 addition & 1 deletion docs/src/docs/theming/styles-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ For example, if you want to add styles to slider thumb:
<Slider styles={{ thumb: { backgroundColor: 'red' } }} />
```

Now you can write styles for your component with [react-jss](/theming/react-jss/)
Now you can write styles for your component with createStyles function
or any other any other styling tools and languages:

```tsx
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
"react-custom-scrollbars": "^4.2.1",
"react-feather": "^2.0.9",
"react-flagpack": "^0.1.1",
"react-jss": "^10.7.1",
"react-popper": "^2.2.5",
"react-quill": "2.0.0-beta.4",
"react-router-dom": "^5.2.0",
Expand Down
1 change: 0 additions & 1 deletion src/mantine-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Mantine is a MIT licensed open source react components and hooks library with fo
- **Ready for production** – mantine is well tested and works in all modern browsers
- **Developer experience** – mantine comes with more than 50 components and 15 hooks to cover you in most cases
- **No annoying focus ring** – with new :focus-visible pseudo-class focus ring appears only when user navigates with keyboard
- **React JSS** – take advantage of all react-jss features: automatic critical css extraction during ssr, lazy evaluation, dynamic theming and others
- **React and Preact** – mantine works flawlessly with preact

## Installation
Expand Down
1 change: 0 additions & 1 deletion src/mantine-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"clsx": "^1.1.1",
"react-textarea-autosize": "^8.3.2",
"@popperjs/core": "^2.9.3",
"react-jss": "^10.7.1",
"react-popper": "^2.2.5"
},
"devDependencies": {}
Expand Down
4 changes: 2 additions & 2 deletions src/mantine-core/src/components/Input/Input.story.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { useBooleanToggle } from '@mantine/hooks';
import { storiesOf } from '@storybook/react';
import { createUseStyles } from 'react-jss';
import { createStyles } from '@mantine/core';
import { MagnifyingGlassIcon } from '@modulz/radix-icons';
import Textarea from 'react-textarea-autosize';
import { MANTINE_SIZES } from '@mantine/styles';
Expand All @@ -22,7 +22,7 @@ function ValidInvalid() {
);
}

const useStyles = createUseStyles({
const useStyles = createStyles({
input: {
border: '2px solid red',

Expand Down
1 change: 0 additions & 1 deletion src/mantine-dates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"dependencies": {
"clsx": "^1.1.1",
"@popperjs/core": "^2.9.3",
"react-jss": "^10.7.1",
"react-popper": "^2.2.5"
},
"devDependencies": {}
Expand Down
3 changes: 1 addition & 2 deletions src/mantine-notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
},
"dependencies": {
"clsx": "^1.1.1",
"react-transition-group": "^4.4.2",
"react-jss": "^10.7.1"
"react-transition-group": "^4.4.2"
},
"devDependencies": {}
}
2 changes: 1 addition & 1 deletion src/mantine-prism/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ under the hood and support light and dark theme.

## Installation

Package depends on [react](https://www.npmjs.com/package/react), [react-dom](https://www.npmjs.com/package/react-dom), [@mantine/hooks](https://www.npmjs.com/package/@mantine/hooks), [@mantine/core](https://www.npmjs.com/package/@mantine/core), [react-jss](https://www.npmjs.com/package/react-jss) and [prism-react-renderer](https://www.npmjs.com/package/prism-react-renderer).
Package depends on [react](https://www.npmjs.com/package/react), [react-dom](https://www.npmjs.com/package/react-dom), [@mantine/hooks](https://www.npmjs.com/package/@mantine/hooks), [@mantine/core](https://www.npmjs.com/package/@mantine/core) and [prism-react-renderer](https://www.npmjs.com/package/prism-react-renderer).

Install with npm:

Expand Down
1 change: 0 additions & 1 deletion src/mantine-prism/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
},
"dependencies": {
"clsx": "^1.1.1",
"react-jss": "^10.7.1",
"prism-react-renderer": "^1.2.1"
},
"devDependencies": {}
Expand Down
1 change: 0 additions & 1 deletion src/mantine-rte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"dependencies": {
"@modulz/radix-icons": "^4.0.0",
"clsx": "^1.1.1",
"react-jss": "^10.7.1",
"react-quill": "2.0.0-beta.4"
},
"devDependencies": {}
Expand Down
Loading

0 comments on commit 4eb1b21

Please sign in to comment.