Skip to content

Commit 89d56f7

Browse files
Merge pull request #349 from nginformatica/feat/remove-deprecated-components
feat/remove deprecated components
2 parents c7828a1 + ea404e9 commit 89d56f7

File tree

224 files changed

+3570
-7847
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+3570
-7847
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
dist/*
2-
# FIXME: After project refactor EditableTable should not be ignored
3-
src/core/EditableTable.tsx

.eslintrc.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ const rulesReact = {
66
'react/jsx-key': 'warn',
77
'react/jsx-pascal-case': 'warn',
88
'react/self-closing-comp': 'warn',
9-
// it should be 'warn' but
10-
// material-table needs to render nested components
11-
'react/no-unstable-nested-components': 'off',
9+
'react/no-unstable-nested-components': 'warn',
1210
'react/jsx-sort-props': [
1311
'warn',
1412
{

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.12.1

.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

.wakatime-project

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 15 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,57 @@
1-
<!-- Logo -->
21
<p align="center">
3-
<img width="150" src="logo.png" alt="Flipper-UI logo" />
2+
<img width="150" src="./src/images/logo.png" alt="Flipper-UI logo" />
43
</p>
54

6-
<!-- Name -->
75
<h1 align="center">Flipper-UI</h1>
86

9-
<!-- Badges -->
7+
108
<div align="center">
9+
React UI based on the <br/>
1110

12-
[React](http://facebook.github.io/react/) UI toolkit for the web.
11+
`@material-ui/core` and `@mui/material` <br/>
12+
toolkit for the web.
1313

1414
[![npm package](https://img.shields.io/npm/v/flipper-ui/latest.svg)](https://www.npmjs.com/package/flipper-ui)
1515
[![npm downloads](https://img.shields.io/npm/dm/flipper-ui.svg)](https://www.npmjs.com/package/flipper-ui)
16-
[![Dependencies](https://img.shields.io/david/nginformatica/flipper-ui.svg?style=flat-square)](https://david-dm.org/nginformatica/flipper-ui)
17-
[![DevDependencies](https://img.shields.io/david/dev/nginformatica/flipper-ui.svg)](https://david-dm.org/nginformatica/flipper-ui?type=dev)
18-
[![Build Status](https://travis-ci.org/nginformatica/flipper-ui.svg?branch=master)](https://travis-ci.org/nginformatica/flipper-ui)
19-
2016
</div>
2117

2218
## Installation
2319

2420
Flipper-UI is available as an [npm package](https://www.npmjs.com/package/flipper-ui).
2521

2622
```sh
27-
// with npm
2823
npm install flipper-ui
2924

30-
// with yarn
25+
```
26+
27+
```sh
3128
yarn add flipper-ui
3229
```
3330

3431
## Usage
3532

3633
Here is a quick example to get you started, **it's all you need**:
3734

38-
```jsx
35+
```tsx
3936
import React from 'react'
40-
import ReactDOM from 'react-dom'
37+
import { render } from 'react-dom'
4138
import { Button } from 'flipper-ui'
4239

43-
function App() {
40+
const App = () => {
4441
return (
4542
<Button variant="contained" color="primary">
4643
Hello World
4744
</Button>
48-
);
45+
)
4946
}
5047

51-
ReactDOM.render(<App />, document.querySelector('#app'));
48+
render(<App />, document.getElementById('root'))
5249
```
5350

54-
## Components
55-
56-
- [x] Advertise
57-
- [x] AppBar/Header
58-
- [x] AutoComplete
59-
- [x] Avatar
60-
- [x] Badge
61-
- [x] Box
62-
- [x] Button
63-
- [x] Checkbox
64-
- [x] Chip
65-
- [x] Collapse
66-
- [x] DatePicker
67-
- [x] Dialog
68-
- [x] Divider
69-
- [x] Expansion Panel
70-
- [x] Menu
71-
- [x] Fade
72-
- [x] Floating Action Button
73-
- [x] Grow
74-
- [x] Icon
75-
- [x] Icon Button
76-
- [x] List
77-
- [x] ListItem
78-
- [x] Paper
79-
- [x] Progress
80-
- [x] Sidebar/Drawer
81-
- [x] Switcher
82-
- [x] Radio
83-
- [x] RadioGroup
84-
- [x] Select
85-
- [x] Slide
86-
- [x] Snackbar
87-
- [x] Table
88-
- [x] Tabs
89-
- [x] TextArea
90-
- [x] TextField
91-
- [x] Tooltip
92-
- [x] Typography
93-
- [x] Zoom
94-
95-
## Next Components
96-
97-
- [ ] Carousel/Gallery
98-
- [ ] Tree
99-
10051
## Documentation
10152

102-
Check out our [documentation website](https://nginformatica.github.io/flipper-ui/).
53+
Check out our [documentation website](https://flipper-ui.ngi.com.br/?path=/docs/introduction--docs). You can also interact with the components there!
54+
10355

10456
## Contributing
10557

jest.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ module.exports = {
55
coveragePathIgnorePatterns: ['stories.(ts|tsx)'],
66
collectCoverageFrom: [
77
'<rootDir>/src/core/**/*.(ts|tsx)',
8-
'<rootDir>/src/experimental/**/*.(ts|tsx)',
98
'!<rootDir>/src/core/data-display/data-table/*.(ts|tsx)',
10-
'!<rootDir>/src/experimental/auto-complete-lab/*.(ts|tsx)',
11-
'!<rootDir>/src/experimental/index.ts',
12-
'!<rootDir>/src/experimental/dialog/index.ts',
13-
'!<rootDir>/src/experimental/fab/index.ts'
9+
'!<rootDir>/src/core/feedback/dialog-v2/index.ts',
10+
'!<rootDir>/src/core/navigation/breadcrumbs/index.tsx'
1411
],
1512
transform: {
1613
'.+\\.(ts|tsx)$': 'ts-jest'

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flipper-ui",
3-
"version": "0.31.7",
3+
"version": "0.32.0",
44
"description": "",
55
"main": "dist/index.js",
66
"homepage": "https://flipper-ui.ngi.com.br/",
@@ -35,43 +35,40 @@
3535
"dependencies": {
3636
"@date-io/date-fns": "1.3.6",
3737
"@emotion/react": "11.11.4",
38-
"@emotion/styled": "11.11.0",
38+
"@emotion/styled": "11.11.5",
3939
"@material-ui/core": "4.12.4",
4040
"@material-ui/lab": "4.0.0-alpha.61",
4141
"@material-ui/pickers": "3.3.11",
42-
"@mui/icons-material": "5.15.17",
43-
"@mui/material": "5.15.17",
42+
"@mui/icons-material": "5.15.19",
43+
"@mui/material": "5.15.19",
4444
"date-fns": "2.30.0",
45-
"faker": "5.5.3",
46-
"material-table": "1.69.3",
4745
"material-ui-chip-input": "2.0.0-beta.2",
4846
"ramda": "0.25.0",
4947
"react-loading-skeleton": "3.4.0",
5048
"react-number-format": "4.4.1",
5149
"sprintf-js": "1.1.3",
52-
"stylis": "4.3.2",
5350
"uuid": "9.0.1"
5451
},
5552
"devDependencies": {
56-
"@babel/cli": "7.24.5",
57-
"@babel/core": "7.24.5",
58-
"@babel/plugin-transform-runtime": "7.24.3",
59-
"@babel/preset-env": "7.24.5",
60-
"@babel/preset-typescript": "7.24.1",
53+
"@babel/cli": "7.24.6",
54+
"@babel/core": "7.24.6",
55+
"@babel/plugin-transform-runtime": "7.24.6",
56+
"@babel/preset-env": "7.24.6",
57+
"@babel/preset-typescript": "7.24.6",
58+
"@faker-js/faker": "8.4.1",
6159
"@storybook/addon-essentials": "7.6.17",
62-
"@storybook/addon-styling-webpack": "0.0.6",
60+
"@storybook/addon-styling-webpack": "1.0.0",
6361
"@storybook/react": "7.6.17",
6462
"@storybook/react-webpack5": "7.6.17",
6563
"@stylistic/eslint-plugin": "1.5.4",
6664
"@testing-library/dom": "10.1.0",
6765
"@testing-library/jest-dom": "6.4.5",
6866
"@testing-library/react": "15.0.7",
6967
"@testing-library/user-event": "14.5.2",
70-
"@types/faker": "5.5.3",
7168
"@types/jest": "29.5.12",
72-
"@types/node": "20.12.11",
69+
"@types/node": "20.12.12",
7370
"@types/ramda": "0.25.36",
74-
"@types/react": "18.2.66",
71+
"@types/react": "18.3.3",
7572
"@types/sprintf-js": "1.1.4",
7673
"@types/uuid": "9.0.8",
7774
"@typescript-eslint/eslint-plugin": "7.2.0",
@@ -84,26 +81,29 @@
8481
"eslint-import-resolver-typescript": "3.6.1",
8582
"eslint-plugin-import": "2.29.1",
8683
"eslint-plugin-prettier": "5.1.3",
87-
"eslint-plugin-react": "7.34.1",
84+
"eslint-plugin-react": "7.34.2",
8885
"eslint-plugin-react-hooks": "4.6.2",
8986
"fs-extra": "11.2.0",
9087
"identity-obj-proxy": "3.0.0",
9188
"jest": "29.7.0",
9289
"jest-environment-jsdom": "29.7.0",
93-
"node-fetch": "3.3.2",
9490
"prettier": "3.2.5",
95-
"react": "18.2.0",
96-
"react-dom": "18.2.0",
91+
"react": "18.3.1",
92+
"react-dom": "18.3.1",
93+
"react-router": "6.23.1",
94+
"react-router-dom": "6.23.1",
9795
"storybook": "7.6.17",
9896
"styled-components": "6.1.11",
99-
"ts-jest": "29.1.2",
97+
"ts-jest": "29.1.4",
10098
"ts-loader": "9.5.1",
10199
"typescript": "5.4.5",
102100
"webpack": "5.91.0"
103101
},
104102
"peerDependencies": {
105103
"react": ">=17.0.0",
106104
"react-dom": ">=17.0.0",
105+
"react-router": ">=5.0.0",
106+
"react-router-dom": ">=5.0.0",
107107
"styled-components": ">=5.0.0"
108108
},
109109
"publishConfig": {

src/core/context/styles-provider/index.tsx

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/core/context/theme-provider/theme-provider.spec.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/experimental/actions/__snapshots__/actions.spec.tsx.snap renamed to src/core/data-display/actions/__snapshots__/actions.spec.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`Actions should match snapshot 1`] = `
44
<div>
55
<div
66
align="flex-end"
7-
class="sc-dZodDb uKEcO"
7+
class="sc-aYaIB ivIxy"
88
>
99
<button
1010
class="MuiButtonBase-root MuiButton-root MuiButton-text"
@@ -24,7 +24,7 @@ exports[`Actions should match snapshot 1`] = `
2424
/>
2525
</button>
2626
<button
27-
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary"
27+
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary"
2828
data-testid="confirm-action"
2929
name="confirm-action"
3030
style="opacity: 1;"

src/experimental/actions/actions.spec.tsx renamed to src/core/data-display/actions/actions.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import { render, screen } from '@testing-library/react'
3-
import { Actions } from '.'
3+
import Actions from '.'
44

55
describe('Actions', () => {
66
it('should render', () => {

0 commit comments

Comments
 (0)