@memobit/libs 1.0.65 → 1.0.67
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/index.css +1 -1
- package/dist/index.d.ts +13 -3
- package/dist/index.esm.js +2043 -2044
- package/dist/version.json +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1140,6 +1140,7 @@ export declare interface DatePickerProps extends Omit<CalendarProps, 'onChange'
|
|
|
1140
1140
|
withClock?: boolean;
|
|
1141
1141
|
clockSize?: number;
|
|
1142
1142
|
minuteStep?: number;
|
|
1143
|
+
/** How the chosen date is displayed in the field. Defaults to the app-wide 'DD MMM YYYY'. */
|
|
1143
1144
|
dateFormat?: string;
|
|
1144
1145
|
placeholder?: string;
|
|
1145
1146
|
disabled?: boolean;
|
|
@@ -1173,14 +1174,19 @@ export declare interface DateRangePreset {
|
|
|
1173
1174
|
}
|
|
1174
1175
|
|
|
1175
1176
|
/**
|
|
1176
|
-
* One day laid out against the clock, in a
|
|
1177
|
+
* One day laid out against the clock, in a side panel.
|
|
1177
1178
|
*
|
|
1178
1179
|
* A month cell can only carry a chip or three before the rest hide behind "+N more", and
|
|
1179
1180
|
* those chips are too small to aim at on a phone. This is the way into a busy day: events
|
|
1180
1181
|
* sit at the hour they actually happen, overlapping ones split into lanes, and the empty
|
|
1181
1182
|
* stretches are themselves the target for adding something at that time.
|
|
1183
|
+
*
|
|
1184
|
+
* A drawer rather than a modal because the grid is a viewport onto a whole day and wants
|
|
1185
|
+
* every pixel of height there is — a centred dialog either leaves the clock squinting
|
|
1186
|
+
* through a few hours or, stretched, becomes a tall slot floating in the middle of a
|
|
1187
|
+
* desktop screen. Pinned to the edge, the same shape reads as a panel instead.
|
|
1182
1188
|
*/
|
|
1183
|
-
export declare function DayAgenda<T>({ activeHours, className, date, dayEndHour, dayStartHour, defaultDurationMinutes, emptyLabel, events, hourHeight, isOpen, onAdd, onClose, onDateChange, onEventClick, renderEvent, }: DayAgendaProps<T>): JSX.Element;
|
|
1189
|
+
export declare function DayAgenda<T>({ activeHours, className, date, dayEndHour, dayStartHour, defaultDurationMinutes, emptyLabel, events, hourHeight, isOpen, onAdd, onClose, onDateChange, onEventClick, position, renderEvent, width, }: DayAgendaProps<T>): JSX.Element;
|
|
1184
1190
|
|
|
1185
1191
|
export declare interface DayAgendaProps<T = unknown> {
|
|
1186
1192
|
/** The day to lay out. Only the date part is read. */
|
|
@@ -1193,7 +1199,7 @@ export declare interface DayAgendaProps<T = unknown> {
|
|
|
1193
1199
|
isOpen: boolean;
|
|
1194
1200
|
onClose: () => void;
|
|
1195
1201
|
/**
|
|
1196
|
-
* Enables swiping the grid left or right to step a day. Without it the
|
|
1202
|
+
* Enables swiping the grid left or right to step a day. Without it the panel shows
|
|
1197
1203
|
* only the day it was opened on — which is fine for a one-off, but on a phone the
|
|
1198
1204
|
* neighbouring day is usually the next thing wanted.
|
|
1199
1205
|
*/
|
|
@@ -1221,6 +1227,10 @@ export declare interface DayAgendaProps<T = unknown> {
|
|
|
1221
1227
|
hourHeight?: number;
|
|
1222
1228
|
/** Assumed length of a timed event with no `end`. */
|
|
1223
1229
|
defaultDurationMinutes?: number;
|
|
1230
|
+
/** Which edge the panel slides in from. */
|
|
1231
|
+
position?: DrawerPosition;
|
|
1232
|
+
/** CSS width for the panel. */
|
|
1233
|
+
width?: string;
|
|
1224
1234
|
className?: string;
|
|
1225
1235
|
}
|
|
1226
1236
|
|