-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move dropzone in its own package
- Loading branch information
Showing
23 changed files
with
142 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# React Front Kit dropzone | ||
|
||
Dropzone component. | ||
|
||
## Prerequisite | ||
|
||
You must have React 18 or later installed on your project. | ||
|
||
## Installation | ||
|
||
Install `@smile/react-front-kit-dropzone` and peer dependencies with: | ||
|
||
```bash | ||
npm i @smile/react-front-kit-dropzone @emotion/react @mantine/core @mantine/hooks @mantine/styles @mantine/dropzone @phosphor-icons/react | ||
``` | ||
|
||
## License | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const { babelConfig } = require('test'); | ||
|
||
module.exports = babelConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { jestConfig as default } from 'test'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"name": "@smile/react-front-kit-dropzone", | ||
"version": "0.2.0", | ||
"description": "Dropzone React component library based on mantine", | ||
"license": "MIT", | ||
"homepage": "https://github.com/Smile-SA/react-front-kit", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:Smile-SA/react-front-kit.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/Smile-SA/react-front-kit/issues" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"react-component", | ||
"next", | ||
"nextjs", | ||
"ui", | ||
"components", | ||
"ui-kit", | ||
"library", | ||
"frontend", | ||
"design", | ||
"emotion", | ||
"dropzone" | ||
], | ||
"author": { | ||
"name": "Tony Cabaye", | ||
"email": "tonai59+github@gmail.com", | ||
"url": "https://github.com/tonai" | ||
}, | ||
"main": "./dist/index.js", | ||
"module": "./src/index.tsx", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"build": "tsc --project tsconfig.build.json", | ||
"test": "jest", | ||
"prepublishOnly": "npm run build && node ./scripts/prepublish.mjs" | ||
}, | ||
"dependencies": { | ||
"@smile/react-front-kit": "*", | ||
"@smile/react-front-kit-shared": "*" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.22.20", | ||
"@babel/preset-react": "^7.22.15", | ||
"@babel/preset-typescript": "^7.23.0", | ||
"@storybook/addon-actions": "^7.4.1", | ||
"@storybook/jest": "^0.2.2", | ||
"@storybook/preview-api": "^7.4.1", | ||
"@storybook/testing-library": "^0.2.0", | ||
"@testing-library/jest-dom": "^6.1.3", | ||
"@testing-library/react": "^14.0.0", | ||
"@types/react": "^18.2.21", | ||
"@types/react-dom": "^18.2.7", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"test": "*", | ||
"tsconfig": "*", | ||
"typescript": "^5.2.2" | ||
}, | ||
"peerDependencies": { | ||
"@emotion/react": ">=11", | ||
"@mantine/core": "6", | ||
"@mantine/dropzone": "6", | ||
"@mantine/hooks": "6", | ||
"@mantine/styles": "6", | ||
"@phosphor-icons/react": ">=2", | ||
"react": ">=18.0", | ||
"react-dom": ">=18.0" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* eslint-disable react-refresh/only-export-components */ | ||
export * from './Components/Dropzone/Dropzone'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "tsconfig/react-library.json", | ||
"compilerOptions": { | ||
"outDir": "dist" | ||
}, | ||
"exclude": [ | ||
"__snapshots__", | ||
"src/**/*.test.tsx", | ||
"src/**/*.stories.tsx", | ||
"src/**/*.mock.tsx" | ||
], | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "tsconfig/react-library.json" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* eslint-disable react-refresh/only-export-components */ | ||
export * from './Components/Table/Table'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...onents/DropzoneCard/DropzoneCard.test.tsx → ...src/Components/InfoCard/InfoCard.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { renderWithProviders } from '@smile/react-front-kit-shared/src/test-utils'; | ||
|
||
import { DropzoneCard } from './DropzoneCard'; | ||
import { InfoCard } from './InfoCard'; | ||
|
||
describe('DropzoneCard', () => { | ||
describe('InfoCard', () => { | ||
it('matches snapshot', () => { | ||
const { container } = renderWithProviders(<DropzoneCard />); | ||
const { container } = renderWithProviders(<InfoCard />); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../__snapshots__/DropzoneCard.test.tsx.snap → ...Card/__snapshots__/InfoCard.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters