Skip to content

Commit

Permalink
feat: continue removing next dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishiguto committed Aug 20, 2024
1 parent 029a741 commit 474b0d2
Show file tree
Hide file tree
Showing 33 changed files with 7 additions and 70 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import { createContext, useContext } from 'react';

export type AppBarContextProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { SyntheticEvent, useEffect, useState } from 'react';
import {
Autocomplete,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { useState, useEffect, useRef, useMemo } from 'react';
import debounce from 'lodash/debounce';
import { DatePicker, DatePickerProps } from '@mui/x-date-pickers';
Expand Down
3 changes: 0 additions & 3 deletions packages/react-material-ui/src/components/Filter/Filter.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
'use client';

import React, { ReactNode, useState } from 'react';
import { useAuth } from '@concepta/react-auth-provider';
import Box from '@mui/material/Box';
import Grid, { GridProps } from '@mui/material/Grid';
import FilterAlt from '@mui/icons-material/FilterAlt';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { useEffect, useState, ReactNode } from 'react';
import ListItem from '@mui/material/ListItem';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, {
useState,
ChangeEvent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import {
Box,
Expand Down
2 changes: 0 additions & 2 deletions packages/react-material-ui/src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { PropsWithChildren } from 'react';
import { TableProps as MuiTableProps } from '@mui/material';
import { Table as MuiTable, TableProps as TableStylesProps } from './Styles';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { ReactNode } from 'react';
import Text from '../../Text';
import { TableCell, TableCellProps, Tooltip } from '@mui/material';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import { Checkbox, TableCell, TableCellProps } from '@mui/material';
import { RowProps } from '../types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { ReactNode } from 'react';
import { CustomRowOptionsProps, RowProps, SimpleOptionButton } from '../types';
import { TableCell } from '@mui/material';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { PropsWithChildren } from 'react';
import { TableRow, TableRowProps } from '@mui/material';
import { RowProps } from '../types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { Fragment } from 'react';
import { sortTable } from '../utils';
import { Order, RenderRowFunction, RowProps } from '../types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import { Skeleton, TableCell } from '@mui/material';
import { useTableRoot } from './hooks/useTableRoot';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { useEffect, useState, ReactNode } from 'react';

import { useTableRoot } from './hooks/useTableRoot';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import Box from '@mui/material/Box';
import TableCell, { TableCellProps } from '@mui/material/TableCell';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { ReactNode, Fragment } from 'react';
import { useTableRoot } from '../hooks/useTableRoot';
import { TableHeaderCell } from './TableHeaderCell';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import { Checkbox, TableCell, TableCellProps } from '@mui/material';
import { useTableRoot } from '../hooks/useTableRoot';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import { TableCell } from '@mui/material';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { ReactNode, useState, MouseEvent, useMemo } from 'react';
import Menu from '@mui/material/Menu';
import Fade from '@mui/material/Fade';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import {
TablePagination as MuiTablePagination,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import { Box, Pagination, PaginationProps } from '@mui/material';
import { useTableRoot } from './hooks/useTableRoot';
Expand Down
2 changes: 0 additions & 2 deletions packages/react-material-ui/src/components/Table/TableRoot.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { PropsWithChildren, useState } from 'react';
import { Box, BoxProps } from '@mui/material';
import { HeaderProps, Order, RowProps, TableQueryStateProps } from './types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import { TableRow } from '@mui/material';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { PropsWithChildren } from 'react';
import { alpha } from '@mui/material/styles';
import Toolbar from '@mui/material/Toolbar';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React, { createContext, useContext } from 'react';
import { HeaderProps, RowProps, TableQueryStateProps } from '../types';

Expand Down
2 changes: 0 additions & 2 deletions packages/react-material-ui/src/components/Table/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import { Table } from './Table';
import { TablePagination } from './TablePagination';
import { TablePaginationNumbers } from './TablePaginationNumbers';
Expand Down
2 changes: 0 additions & 2 deletions packages/react-material-ui/src/components/Table/useTable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import { useEffect, useRef } from 'react';
import useDataProvider, { useQuery } from '@concepta/react-data-provider';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import get from 'lodash/get';
import { Tooltip, Box, Dialog, DialogContent, IconButton } from '@mui/material';
Expand Down
2 changes: 0 additions & 2 deletions packages/react-material-ui/src/modules/crud/useCrudRoot.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import { createContext, useContext } from 'react';
import { UseTableResult } from '../../components/Table/useTable';
import { Search } from '../../components/Table/types';
Expand Down
2 changes: 0 additions & 2 deletions packages/react-material-ui/src/modules/users/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import React from 'react';
import CrudModule, { ModuleProps } from '../crud';
import { CREATE_EDIT_FORM, DEFAULT_FILTERS, headers } from './constants';
Expand Down
1 change: 1 addition & 0 deletions packages/react-navigation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @concepta/react-navigation
13 changes: 6 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"jsx": "react",
"typeRoots": [
"./node_modules/@types"
],
"typeRoots": ["./node_modules/@types"],
"baseUrl": ".",
"paths": {
"*": [
"./packages/react-material-ui/src/*"
]
"*": ["./packages/react-material-ui/src/*"]
}
},
"files": [],
Expand All @@ -32,6 +28,9 @@
},
{
"path": "packages/react-material-ui"
},
{
"path": "packages/react-navigation"
}
]
}
}

0 comments on commit 474b0d2

Please sign in to comment.