@remit/ui 0.0.195 → 0.0.196
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
|
@@ -141,6 +141,16 @@ export const Overlapping: Story = {
|
|
|
141
141
|
},
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
+
/** An early flight and a late call: the day runs midnight to midnight. */
|
|
145
|
+
export const OutsideWorkingHours: Story = {
|
|
146
|
+
args: {
|
|
147
|
+
events: [
|
|
148
|
+
at("flight", "Flight to Lisbon", "09", "06:00", "07:00"),
|
|
149
|
+
at("late-call", "Call with Sydney", "11", "23:15", "23:45"),
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
|
|
144
154
|
export const AllDayBand: Story = {
|
|
145
155
|
args: { events: week.filter((event) => event.allDay) },
|
|
146
156
|
};
|
|
@@ -227,7 +227,10 @@ export function CalendarGrid({
|
|
|
227
227
|
const isTight = density === "compact";
|
|
228
228
|
|
|
229
229
|
return (
|
|
230
|
-
<div
|
|
230
|
+
<div
|
|
231
|
+
data-testid="calendar-grid"
|
|
232
|
+
className={cn("h-full min-h-0 w-full text-fg", className)}
|
|
233
|
+
>
|
|
231
234
|
<FullCalendar
|
|
232
235
|
ref={calendarRef}
|
|
233
236
|
plugins={PLUGINS}
|
|
@@ -251,8 +254,6 @@ export function CalendarGrid({
|
|
|
251
254
|
eventMaxStack={3}
|
|
252
255
|
moreLinkClick="popover"
|
|
253
256
|
moreLinkText={(num) => `+${num}`}
|
|
254
|
-
slotMinTime="07:00:00"
|
|
255
|
-
slotMaxTime="23:00:00"
|
|
256
257
|
scrollTime="08:30:00"
|
|
257
258
|
scrollTimeReset={false}
|
|
258
259
|
slotDuration={{ minutes: slot.slotMinutes }}
|
package/src/index.ts
CHANGED