@campxdev/shared 1.10.74 → 1.10.76

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": "1.10.74",
3
+ "version": "1.10.76",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -22,7 +22,6 @@ import SearchBar from '../FilterComponents/SearchBar'
22
22
  import { DialogButton, DrawerButton } from '../ModalButtons'
23
23
  import Table from '../Tables/BasicTable/Table'
24
24
  import DepartmentFilter from './DepartmentFilter'
25
- import ReactJoyRide from '../ReactJoyRide'
26
25
  // import Arrow, { DIRECTION } from 'react-arrows'
27
26
  import '../CustomJoyRideStyles.css'
28
27
 
@@ -164,33 +163,9 @@ function ApplicationProfile({
164
163
  })
165
164
  }
166
165
 
167
- const tourSteps = [
168
- {
169
- target: '.test',
170
- title: 'Adding User Profile Relation',
171
- content: (
172
- <Typography variant="subtitle1">
173
- Choose your Profile Relation from the pre-given dropdowns
174
- </Typography>
175
- ),
176
- disableBeacon: true,
177
- },
178
- {
179
- target: '.test2',
180
- title: 'Search By Name',
181
- content: (
182
- <Typography variant="subtitle1">
183
- You can also find the person by just typing his name away!
184
- </Typography>
185
- ),
186
- },
187
- ]
188
-
189
166
  if (profilesLoading) return <Spinner />
190
167
  return (
191
168
  <>
192
- <ReactJoyRide steps={tourSteps} tourName="Application-Profile-Tour" />
193
-
194
169
  <PageHeader
195
170
  title={title}
196
171
  actions={[
@@ -44,6 +44,10 @@ interface IDateRangePickerProps {
44
44
  name?: string
45
45
  error?: boolean
46
46
  helperText?: string
47
+ startMinDate?: Date | string | number
48
+ startMaxDate?: Date | string | number
49
+ endMinDate?: Date | string | number
50
+ endMaxDate?: Date | string | number
47
51
  }
48
52
  export default function DateRangePicker({
49
53
  value,
@@ -56,6 +60,10 @@ export default function DateRangePicker({
56
60
  helperText,
57
61
  label,
58
62
  name,
63
+ startMinDate,
64
+ startMaxDate,
65
+ endMinDate,
66
+ endMaxDate,
59
67
  }: IDateRangePickerProps) {
60
68
  const [state, setState] = useState({
61
69
  start: null,
@@ -83,12 +91,13 @@ export default function DateRangePicker({
83
91
  }}
84
92
  enableTime={enableTime}
85
93
  inputProps={{ InputProps: null, size: size }}
94
+ minDate={startMinDate}
95
+ maxDate={startMaxDate}
86
96
  />
87
97
  <SvgIcon>
88
98
  <DateRangeIcon />
89
99
  </SvgIcon>
90
100
  <DateTimePicker
91
- minDate={state[0]}
92
101
  placeholder="To Date"
93
102
  enableTime={enableTime}
94
103
  value={state.end}
@@ -97,6 +106,8 @@ export default function DateRangePicker({
97
106
  onChange({ ...state, end: value })
98
107
  }}
99
108
  inputProps={{ InputProps: null, size: size }}
109
+ minDate={endMinDate}
110
+ maxDate={endMaxDate}
100
111
  />
101
112
  </StyledDateRangePicker>
102
113
  <>{error && <FormHelperText>{helperText}</FormHelperText>}</>