@campxdev/shared 1.6.5 → 1.6.7

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.6.5",
3
+ "version": "1.6.7",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -33,15 +33,18 @@ export default function FormDatePicker({
33
33
  }: IDatePicker) {
34
34
  return (
35
35
  <Flatpickr
36
- onChange={(dates: Date[]) => {
37
- if (onChange) onChange(dates[0])
38
- }}
39
36
  options={{
40
37
  dateFormat: 'd-m-Y',
41
38
  minDate,
42
39
  maxDate,
43
40
  allowInput: true,
44
41
  }}
42
+ onChange={(dates: Date[]) => {
43
+ if (onChange) onChange(dates[0])
44
+ }}
45
+ onClose={(dates) => {
46
+ if (onChange) onChange(dates[0])
47
+ }}
45
48
  value={value || null}
46
49
  render={(
47
50
  props: Omit<DateTimePickerProps, 'options' | 'render'>,
@@ -50,6 +50,9 @@ export default function DateTimePicker({
50
50
  onChange={(dates: Date[]) => {
51
51
  if (onChange) onChange(dates[0])
52
52
  }}
53
+ onClose={(dates) => {
54
+ if (onChange) onChange(dates[0])
55
+ }}
53
56
  value={value || null}
54
57
  render={(
55
58
  props: Omit<DateTimePickerProps, 'options' | 'render'>,
@@ -40,6 +40,9 @@ export default function TimePicker({
40
40
  maxTime,
41
41
  allowInput: true,
42
42
  }}
43
+ onClose={(dates) => {
44
+ if (onChange) onChange(dates[0])
45
+ }}
43
46
  onChange={(dates: Date[]) => {
44
47
  if (onChange) onChange(dates[0])
45
48
  }}
@@ -36,7 +36,6 @@ export { default as Breadcrumbs } from './Breadcrumbs'
36
36
  export { default as Table } from './TableComponent'
37
37
  export { default as Spinner } from './Spinner'
38
38
  export { default as AutocompleteSearch } from './AutocompleteSearch'
39
- export { FullCalendarWrapper } from './FullCalendar/FullCalendarWrapper'
40
39
  export { default as JsonPreview } from './JsonPreview'
41
40
  export { default as LabelValue } from './LabelValue'
42
41
  export { LinearProgress } from './LinearProgress'