@memobit/libs 1.0.65 → 1.0.66

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.d.ts CHANGED
@@ -1173,14 +1173,19 @@ export declare interface DateRangePreset {
1173
1173
  }
1174
1174
 
1175
1175
  /**
1176
- * One day laid out against the clock, in a modal.
1176
+ * One day laid out against the clock, in a side panel.
1177
1177
  *
1178
1178
  * A month cell can only carry a chip or three before the rest hide behind "+N more", and
1179
1179
  * those chips are too small to aim at on a phone. This is the way into a busy day: events
1180
1180
  * sit at the hour they actually happen, overlapping ones split into lanes, and the empty
1181
1181
  * stretches are themselves the target for adding something at that time.
1182
+ *
1183
+ * A drawer rather than a modal because the grid is a viewport onto a whole day and wants
1184
+ * every pixel of height there is — a centred dialog either leaves the clock squinting
1185
+ * through a few hours or, stretched, becomes a tall slot floating in the middle of a
1186
+ * desktop screen. Pinned to the edge, the same shape reads as a panel instead.
1182
1187
  */
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;
1188
+ 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
1189
 
1185
1190
  export declare interface DayAgendaProps<T = unknown> {
1186
1191
  /** The day to lay out. Only the date part is read. */
@@ -1193,7 +1198,7 @@ export declare interface DayAgendaProps<T = unknown> {
1193
1198
  isOpen: boolean;
1194
1199
  onClose: () => void;
1195
1200
  /**
1196
- * Enables swiping the grid left or right to step a day. Without it the modal shows
1201
+ * Enables swiping the grid left or right to step a day. Without it the panel shows
1197
1202
  * only the day it was opened on — which is fine for a one-off, but on a phone the
1198
1203
  * neighbouring day is usually the next thing wanted.
1199
1204
  */
@@ -1221,6 +1226,10 @@ export declare interface DayAgendaProps<T = unknown> {
1221
1226
  hourHeight?: number;
1222
1227
  /** Assumed length of a timed event with no `end`. */
1223
1228
  defaultDurationMinutes?: number;
1229
+ /** Which edge the panel slides in from. */
1230
+ position?: DrawerPosition;
1231
+ /** CSS width for the panel. */
1232
+ width?: string;
1224
1233
  className?: string;
1225
1234
  }
1226
1235