@7shifts/sous-chef 2.8.2 → 2.10.0
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/dist/core/DataTable/types.d.ts +13 -2
- package/dist/core/DataTableRow/DataTableRow.d.ts +2 -2
- package/dist/core/DataTableRow/DataTableRowActions/DataTableRowActions.d.ts +6 -0
- package/dist/core/DataTableRow/DataTableRowActions/index.d.ts +1 -0
- package/dist/core/index.d.ts +2 -2
- package/dist/index.css +152 -152
- package/dist/index.js +300 -121
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +298 -121
- package/dist/index.modern.js.map +1 -1
- package/dist/overlay/Calendar/Calendar.d.ts +23 -0
- package/dist/overlay/Calendar/constants.d.ts +8 -0
- package/dist/overlay/Calendar/domain.d.ts +7 -0
- package/dist/overlay/Calendar/index.d.ts +1 -0
- package/dist/overlay/Calendar/types.d.ts +2 -0
- package/dist/overlay/Menu/MenuItem.d.ts +1 -1
- package/dist/overlay/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { MutableRefObject } from 'react';
|
|
2
|
+
import '../../forms/DatePickerCalendar/date-picker-calendar.scss';
|
|
3
|
+
import 'react-day-picker/lib/style.css';
|
|
4
|
+
import { BlockedDays, WeekStart } from '../../utils/date';
|
|
5
|
+
import { CalendarMode, CalendarPlacement } from './types';
|
|
6
|
+
declare type Props = {
|
|
7
|
+
mode?: CalendarMode;
|
|
8
|
+
/** Note that if the calendar is not able to fit in the selected position,
|
|
9
|
+
* it will override this selection and select the one that fits in the window. */
|
|
10
|
+
position?: CalendarPlacement;
|
|
11
|
+
weekStart?: WeekStart;
|
|
12
|
+
selected?: Date;
|
|
13
|
+
onSelect: (selected: Date) => void;
|
|
14
|
+
onClickOutside: () => void;
|
|
15
|
+
/** It disable some dates so the user can't click on them. Refer to this
|
|
16
|
+
* [doc](https://react-day-picker-v7.netlify.app/api/DayPicker#disabledDays) to see what
|
|
17
|
+
* values you can use. */
|
|
18
|
+
disabledDays?: BlockedDays;
|
|
19
|
+
anchorRef: MutableRefObject<HTMLElement | null>;
|
|
20
|
+
};
|
|
21
|
+
/**Calendar overlay component*/
|
|
22
|
+
declare const Calendar: React.FC<Props>;
|
|
23
|
+
export default Calendar;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CalendarPlacement } from './types';
|
|
2
|
+
declare type Position = {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const calculateCalendarPosition: (placement: CalendarPlacement, anchorPosition: DOMRect, calendarDimensions?: DOMRect | undefined) => Position;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Calendar';
|
package/dist/overlay/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ import Tooltip from './Tooltip';
|
|
|
2
2
|
import Modal from './Modal';
|
|
3
3
|
import ModalBody from './Modal/ModalBody';
|
|
4
4
|
import ModalFooter from './Modal/ModalFooter';
|
|
5
|
-
|
|
5
|
+
import Calendar from './Calendar/Calendar';
|
|
6
|
+
export { Tooltip, Modal, ModalBody, ModalFooter, Calendar };
|