@campxdev/shared 0.6.17 → 0.6.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "0.6.17",
3
+ "version": "0.6.18",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -16,6 +16,7 @@ import { DeleteButton, EditButton } from '../IconButtons'
16
16
  import { ReactNode, useEffect, useRef, useState } from 'react'
17
17
  import { toast } from 'react-toastify'
18
18
  import axios, { axiosErrorToast } from '../../config/axios'
19
+ const animatedImage = require('./AnimatedUploadFile.gif')
19
20
 
20
21
  const StyledDialogHeader = styled(Box)(({ theme }) => ({
21
22
  height: '64px',
@@ -168,10 +169,7 @@ export default function UploadFileDialog({
168
169
  </IconButton>
169
170
  </StyledDialogHeader>
170
171
  <StyledDialogContent>
171
- <StyledImage
172
- src="/images/AnimatedUploadFile.gif"
173
- alt="Upload Image"
174
- />
172
+ <StyledImage src={animatedImage} alt="Upload Image" />
175
173
  <Typography variant="h6">{dialogTitle}</Typography>
176
174
  <Typography textAlign={'center'}>
177
175
  Before importing, download Sample CSV File or Sample XLSX file and
package/todo.md CHANGED
@@ -1,8 +1,20 @@
1
- [ ] add illustration component
2
- [ ] fix tabs component to route match
3
- [ ] add basename prop in Providers component
4
- [ ] add permision denied component in withRouter component fallback
1
+ #todo
2
+ 1.errorBoundary
3
+ 2.fullcalendar
5
4
 
6
- ## in progress
5
+ 6.row
7
6
 
8
- [x] fix sidenav dropdown
7
+ #done today
8
+
9
+ 4.nodatallustration
10
+ 7.searchBar
11
+ 11.uploadFileDialog
12
+ 3.meadiaRow
13
+
14
+ 8.stepsHeader
15
+
16
+ #later
17
+ 11.uploadButon
18
+ 12.uploadDocuments
19
+ 5.popupconfirm
20
+ 1.ReactTable
@@ -1,7 +0,0 @@
1
- import { IconButton, styled } from '@mui/material'
2
-
3
- const OutlinedIconButton = styled(IconButton)(({ theme }) => ({
4
- border: theme.borders.grayLight,
5
- minWidth: '50px',
6
- }))
7
- export default OutlinedIconButton
@@ -1 +0,0 @@
1
- export { default as OutlinedIconButton } from './OutlinedIconButton'
@@ -1,39 +0,0 @@
1
- import { Swiper as Swipe, SwiperSlide } from 'swiper/react'
2
- import 'swiper/css/pagination'
3
- import 'swiper/css/navigation'
4
- import { Pagination, Navigation } from 'swiper'
5
- import { ReactNode } from 'react'
6
- import { Box, styled } from '@mui/material'
7
-
8
- const StyledSwiperContainer = styled(Box)(({ theme }) => ({
9
- '& .swiper-button-next:after, .swiper-button-prev:after': {
10
- fontSize: '1.5rem',
11
- color: theme.palette.common.yellow,
12
- },
13
- '& .swiper-pagination-bullet-active': {
14
- background: theme.palette.common.yellow,
15
- },
16
- '& .swiper-pagination': {
17
- bottom: '-5px',
18
- },
19
- }))
20
-
21
- interface SwipeProps {
22
- list: ReactNode[]
23
- }
24
-
25
- export default function Swiper({ list }: SwipeProps) {
26
- return (
27
- <StyledSwiperContainer>
28
- <Swipe
29
- pagination={true}
30
- navigation={true}
31
- modules={[Pagination, Navigation]}
32
- >
33
- {list?.map((item, index) => (
34
- <SwiperSlide key={index}>{item}</SwiperSlide>
35
- ))}
36
- </Swipe>
37
- </StyledSwiperContainer>
38
- )
39
- }
@@ -1 +0,0 @@
1
- export { default } from './Swiper'