@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/ui",
3
- "version": "0.0.195",
3
+ "version": "0.0.196",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src"
@@ -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 className={cn("h-full min-h-0 w-full text-fg", className)}>
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 }}
@@ -35,7 +35,7 @@ export interface SegmentedProps<T extends string> {
35
35
  className?: string;
36
36
  }
37
37
 
38
- function Segmented<T extends string>({
38
+ export function Segmented<T extends string>({
39
39
  options,
40
40
  value,
41
41
  onChange,
package/src/index.ts CHANGED
@@ -219,6 +219,8 @@ export {
219
219
  type CalendarDateNavProps,
220
220
  CalendarViewSwitch,
221
221
  type CalendarViewSwitchProps,
222
+ Segmented,
223
+ type SegmentedProps,
222
224
  type SegmentOption,
223
225
  segmentClassName,
224
226
  } from "./components/calendar-toolbar.js";