@mlw-packages/react-components 1.10.31 → 1.10.33

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 CHANGED
@@ -1919,6 +1919,9 @@ body {
1919
1919
  .flex-row {
1920
1920
  flex-direction: row;
1921
1921
  }
1922
+ .flex-row-reverse {
1923
+ flex-direction: row-reverse;
1924
+ }
1922
1925
  .flex-col {
1923
1926
  flex-direction: column;
1924
1927
  }
@@ -2121,6 +2124,9 @@ body {
2121
2124
  .hyphens-auto {
2122
2125
  hyphens: auto;
2123
2126
  }
2127
+ .whitespace-normal {
2128
+ white-space: normal;
2129
+ }
2124
2130
  .whitespace-nowrap {
2125
2131
  white-space: nowrap;
2126
2132
  }
@@ -3693,6 +3699,10 @@ body {
3693
3699
  padding-top: 1rem;
3694
3700
  padding-bottom: 1rem;
3695
3701
  }
3702
+ .py-5 {
3703
+ padding-top: 1.25rem;
3704
+ padding-bottom: 1.25rem;
3705
+ }
3696
3706
  .py-6 {
3697
3707
  padding-top: 1.5rem;
3698
3708
  padding-bottom: 1.5rem;
@@ -3719,6 +3729,9 @@ body {
3719
3729
  .pb-4 {
3720
3730
  padding-bottom: 1rem;
3721
3731
  }
3732
+ .pb-5 {
3733
+ padding-bottom: 1.25rem;
3734
+ }
3722
3735
  .pb-6 {
3723
3736
  padding-bottom: 1.5rem;
3724
3737
  }
@@ -5254,6 +5267,9 @@ body {
5254
5267
  .first\:border-l:first-child {
5255
5268
  border-left-width: 1px;
5256
5269
  }
5270
+ .first\:border-t:first-child {
5271
+ border-top-width: 1px;
5272
+ }
5257
5273
  .last\:rounded-r-md:last-child {
5258
5274
  border-top-right-radius: calc(var(--radius) - 2px);
5259
5275
  border-bottom-right-radius: calc(var(--radius) - 2px);
@@ -5373,6 +5389,12 @@ body {
5373
5389
  .hover\:bg-accent\/15:hover {
5374
5390
  background-color: hsl(var(--accent) / 0.15);
5375
5391
  }
5392
+ .hover\:bg-accent\/40:hover {
5393
+ background-color: hsl(var(--accent) / 0.4);
5394
+ }
5395
+ .hover\:bg-accent\/60:hover {
5396
+ background-color: hsl(var(--accent) / 0.6);
5397
+ }
5376
5398
  .hover\:bg-amber-200\/40:hover {
5377
5399
  background-color: rgb(253 230 138 / 0.4);
5378
5400
  }
package/dist/index.d.mts CHANGED
@@ -29,6 +29,7 @@ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
29
29
  import { UniqueIdentifier, DraggableAttributes } from '@dnd-kit/core';
30
30
  import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
31
31
  import { IconProps as IconProps$1 } from '@phosphor-icons/react';
32
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
32
33
 
33
34
  type ErrorMessageProps = {
34
35
  error?: string;
@@ -1007,8 +1008,9 @@ interface DayViewProps$1 {
1007
1008
  noTime?: boolean;
1008
1009
  allDayCell?: boolean;
1009
1010
  onEventCreate?: (startTime: Date) => void;
1011
+ timePlus?: number;
1010
1012
  }
1011
- declare function DayViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, noTime, onEventCreate, allDayCell, }: DayViewProps$1): react_jsx_runtime.JSX.Element;
1013
+ declare function DayViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, noTime, onEventCreate, allDayCell, timePlus }: DayViewProps$1): react_jsx_runtime.JSX.Element;
1012
1014
 
1013
1015
  interface DroppableCellProps$1 {
1014
1016
  id: string;
@@ -1037,13 +1039,14 @@ interface EventCalendarProps$1 {
1037
1039
  onlyYear?: boolean;
1038
1040
  allowCellClick?: boolean;
1039
1041
  allDayCell?: boolean;
1042
+ timePlus?: number;
1040
1043
  }
1041
1044
  interface ModalLikeProps {
1042
1045
  event?: CalendarEventAgenda;
1043
1046
  onClose?: () => void;
1044
1047
  [key: string]: unknown;
1045
1048
  }
1046
- declare function EventAgenda({ events, optionsViewEvents, onEventUpdate, className, initialView, initialDate, onClick, showYearView, noTime, onlyDay, onlyMonth, onlyWeek, onlyAgenda, onlyYear, allowCellClick, allDayCell, }: EventCalendarProps$1): react_jsx_runtime.JSX.Element;
1049
+ declare function EventAgenda({ events, optionsViewEvents, onEventUpdate, className, initialView, initialDate, onClick, showYearView, noTime, onlyDay, onlyMonth, onlyWeek, onlyAgenda, onlyYear, allowCellClick, allDayCell, timePlus }: EventCalendarProps$1): react_jsx_runtime.JSX.Element;
1047
1050
 
1048
1051
  interface EventItemProps$1 {
1049
1052
  event: CalendarEventAgenda;
@@ -1159,8 +1162,9 @@ interface WeekViewProps$1 {
1159
1162
  allDayCell?: boolean;
1160
1163
  /** When true, hides event times */
1161
1164
  noTime?: boolean;
1165
+ timePlus?: number;
1162
1166
  }
1163
- declare function WeekViewAgenda({ currentDate, events, onEventSelect, allDayCell, onEventCreate, showUndatedEvents, noTime, }: WeekViewProps$1): react_jsx_runtime.JSX.Element;
1167
+ declare function WeekViewAgenda({ currentDate, events, onEventSelect, allDayCell, onEventCreate, showUndatedEvents, noTime, timePlus }: WeekViewProps$1): react_jsx_runtime.JSX.Element;
1164
1168
 
1165
1169
  interface YearViewProps {
1166
1170
  currentDate: Date;
@@ -2733,6 +2737,52 @@ type MaskedInputProps = {
2733
2737
  };
2734
2738
  declare function MaskedInput({ value, onChange, mask, label, className, error, isLoading, disabled, hideConfirm, }: MaskedInputProps): react_jsx_runtime.JSX.Element;
2735
2739
 
2740
+ type AccordionVariant = "default" | "ghost" | "card" | "flush";
2741
+ type AccordionSize = "sm" | "md" | "lg";
2742
+ type AccordionItem = {
2743
+ value: string;
2744
+ label: React$1.ReactNode;
2745
+ content: React$1.ReactNode;
2746
+ disabled?: boolean;
2747
+ icon?: React$1.ReactNode;
2748
+ hideIcon?: boolean;
2749
+ suffix?: React$1.ReactNode;
2750
+ iconPosition?: "left" | "right";
2751
+ testid?: string;
2752
+ };
2753
+ type AccordionContextValue = {
2754
+ variant: AccordionVariant;
2755
+ size: AccordionSize;
2756
+ iconPosition: "left" | "right";
2757
+ animationDuration: number;
2758
+ disabled?: boolean;
2759
+ };
2760
+ declare const AccordionContext: React$1.Context<AccordionContextValue>;
2761
+ declare const useAccordion: () => AccordionContextValue;
2762
+ type AccordionSingleProps = Omit<React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>, "type" | "children"> & {
2763
+ type?: "single";
2764
+ collapsible?: boolean;
2765
+ };
2766
+ type AccordionMultipleProps = Omit<React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>, "type" | "children"> & {
2767
+ type: "multiple";
2768
+ };
2769
+ type AccordionProps = (AccordionSingleProps | AccordionMultipleProps) & {
2770
+ items: AccordionItem[];
2771
+ variant?: AccordionVariant;
2772
+ size?: AccordionSize;
2773
+ iconPosition?: "left" | "right";
2774
+ animationDuration?: number;
2775
+ disabled?: boolean;
2776
+ itemClassName?: string;
2777
+ triggerClassName?: string;
2778
+ contentClassName?: string;
2779
+ noPadding?: boolean;
2780
+ };
2781
+ declare function Accordion({ items, variant, size, iconPosition, animationDuration, disabled, itemClassName, triggerClassName, contentClassName, noPadding, className, type, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
2782
+ declare namespace Accordion {
2783
+ var displayName: string;
2784
+ }
2785
+
2736
2786
  declare function useIsMobile(): boolean;
2737
2787
 
2738
2788
  interface Position {
@@ -2752,4 +2802,4 @@ declare const useDrag: (options?: UseDragOptions) => {
2752
2802
  isDragging: boolean;
2753
2803
  };
2754
2804
 
2755
- export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BadgeRankType, type BannerProps, type BiaxialConfig, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, type CarouselBaseProps, type CarouselItem, ChangeButton, Chart, ChartControls, type ChartData$3 as ChartData, ChartHeader, type ChartHooksArgs, type ChartProps, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, type CircularProgressProps, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, type CommandGroup, CommandGroupBase, CommandInputBase, type CommandItem, CommandItemBase, CommandItemRow, CommandListBase, CommandPalette, type CommandPaletteProps, CommandSeparatorBase, CommandShortcutBase, type Connection, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, type ControlledComboboxItem, type ControlledComboboxProps, type ControlledComboboxTestIds, CopyButton, type DataMapper, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, type DisabledSlot, type DisabledSlots, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, type FileUploaderProps, type FileWithPreview, type FilesAccepted, FilterButton, type FinalValueFormatter, GroupLabel, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, type Integration, type IntegrationConnection, type IntegrationData, IntegrationModal, type IntegrationModalProps, type IntegrationProperties, type IntegrationProps, Kbd, KbdGroup, LabelBase, type LabelListContent, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, MaskedInput, type MenuItem, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiDayOverlay, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type Neo4jIntegration, type Neo4jNode, type Neo4jRelationship, type NewSelectProps, NoData, type Node, NotificationButton, NumericInput, type Padding, type Period, PeriodsDropdown, PieChartComponent, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Position$1 as Position, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, type PropsLabelList, RadialMenu, RangePicker, type RangePickerProps, RefreshButton, type Relationship, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesConfig, type SeriesCounts, type SeriesEntry, type SeriesOrder, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, type SystemData, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createGroup, createItem, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, filterAndScore, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normaliseGroups, normalizeAttendDate, normalizeStr, processIntegrationData, processNeo4jData, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, scoreMatch, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, unionGroups, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCommandPalette, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useIsTruncated, useOpenTooltipForPeriod, useProcessedData, useRecents, useSeriesOpacity, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
2805
+ export { Accordion, AccordionContext, type AccordionItem, type AccordionProps, type AccordionSize, type AccordionVariant, AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BadgeRankType, type BannerProps, type BiaxialConfig, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, type CarouselBaseProps, type CarouselItem, ChangeButton, Chart, ChartControls, type ChartData$3 as ChartData, ChartHeader, type ChartHooksArgs, type ChartProps, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, type CircularProgressProps, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, type CommandGroup, CommandGroupBase, CommandInputBase, type CommandItem, CommandItemBase, CommandItemRow, CommandListBase, CommandPalette, type CommandPaletteProps, CommandSeparatorBase, CommandShortcutBase, type Connection, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, type ControlledComboboxItem, type ControlledComboboxProps, type ControlledComboboxTestIds, CopyButton, type DataMapper, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, type DisabledSlot, type DisabledSlots, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, type FileUploaderProps, type FileWithPreview, type FilesAccepted, FilterButton, type FinalValueFormatter, GroupLabel, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, type Integration, type IntegrationConnection, type IntegrationData, IntegrationModal, type IntegrationModalProps, type IntegrationProperties, type IntegrationProps, Kbd, KbdGroup, LabelBase, type LabelListContent, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, MaskedInput, type MenuItem, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiDayOverlay, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type Neo4jIntegration, type Neo4jNode, type Neo4jRelationship, type NewSelectProps, NoData, type Node, NotificationButton, NumericInput, type Padding, type Period, PeriodsDropdown, PieChartComponent, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Position$1 as Position, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, type PropsLabelList, RadialMenu, RangePicker, type RangePickerProps, RefreshButton, type Relationship, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesConfig, type SeriesCounts, type SeriesEntry, type SeriesOrder, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, type SystemData, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createGroup, createItem, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, filterAndScore, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normaliseGroups, normalizeAttendDate, normalizeStr, processIntegrationData, processNeo4jData, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, scoreMatch, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, unionGroups, useAccordion, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCommandPalette, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useIsTruncated, useOpenTooltipForPeriod, useProcessedData, useRecents, useSeriesOpacity, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
package/dist/index.d.ts CHANGED
@@ -29,6 +29,7 @@ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
29
29
  import { UniqueIdentifier, DraggableAttributes } from '@dnd-kit/core';
30
30
  import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
31
31
  import { IconProps as IconProps$1 } from '@phosphor-icons/react';
32
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
32
33
 
33
34
  type ErrorMessageProps = {
34
35
  error?: string;
@@ -1007,8 +1008,9 @@ interface DayViewProps$1 {
1007
1008
  noTime?: boolean;
1008
1009
  allDayCell?: boolean;
1009
1010
  onEventCreate?: (startTime: Date) => void;
1011
+ timePlus?: number;
1010
1012
  }
1011
- declare function DayViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, noTime, onEventCreate, allDayCell, }: DayViewProps$1): react_jsx_runtime.JSX.Element;
1013
+ declare function DayViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, noTime, onEventCreate, allDayCell, timePlus }: DayViewProps$1): react_jsx_runtime.JSX.Element;
1012
1014
 
1013
1015
  interface DroppableCellProps$1 {
1014
1016
  id: string;
@@ -1037,13 +1039,14 @@ interface EventCalendarProps$1 {
1037
1039
  onlyYear?: boolean;
1038
1040
  allowCellClick?: boolean;
1039
1041
  allDayCell?: boolean;
1042
+ timePlus?: number;
1040
1043
  }
1041
1044
  interface ModalLikeProps {
1042
1045
  event?: CalendarEventAgenda;
1043
1046
  onClose?: () => void;
1044
1047
  [key: string]: unknown;
1045
1048
  }
1046
- declare function EventAgenda({ events, optionsViewEvents, onEventUpdate, className, initialView, initialDate, onClick, showYearView, noTime, onlyDay, onlyMonth, onlyWeek, onlyAgenda, onlyYear, allowCellClick, allDayCell, }: EventCalendarProps$1): react_jsx_runtime.JSX.Element;
1049
+ declare function EventAgenda({ events, optionsViewEvents, onEventUpdate, className, initialView, initialDate, onClick, showYearView, noTime, onlyDay, onlyMonth, onlyWeek, onlyAgenda, onlyYear, allowCellClick, allDayCell, timePlus }: EventCalendarProps$1): react_jsx_runtime.JSX.Element;
1047
1050
 
1048
1051
  interface EventItemProps$1 {
1049
1052
  event: CalendarEventAgenda;
@@ -1159,8 +1162,9 @@ interface WeekViewProps$1 {
1159
1162
  allDayCell?: boolean;
1160
1163
  /** When true, hides event times */
1161
1164
  noTime?: boolean;
1165
+ timePlus?: number;
1162
1166
  }
1163
- declare function WeekViewAgenda({ currentDate, events, onEventSelect, allDayCell, onEventCreate, showUndatedEvents, noTime, }: WeekViewProps$1): react_jsx_runtime.JSX.Element;
1167
+ declare function WeekViewAgenda({ currentDate, events, onEventSelect, allDayCell, onEventCreate, showUndatedEvents, noTime, timePlus }: WeekViewProps$1): react_jsx_runtime.JSX.Element;
1164
1168
 
1165
1169
  interface YearViewProps {
1166
1170
  currentDate: Date;
@@ -2733,6 +2737,52 @@ type MaskedInputProps = {
2733
2737
  };
2734
2738
  declare function MaskedInput({ value, onChange, mask, label, className, error, isLoading, disabled, hideConfirm, }: MaskedInputProps): react_jsx_runtime.JSX.Element;
2735
2739
 
2740
+ type AccordionVariant = "default" | "ghost" | "card" | "flush";
2741
+ type AccordionSize = "sm" | "md" | "lg";
2742
+ type AccordionItem = {
2743
+ value: string;
2744
+ label: React$1.ReactNode;
2745
+ content: React$1.ReactNode;
2746
+ disabled?: boolean;
2747
+ icon?: React$1.ReactNode;
2748
+ hideIcon?: boolean;
2749
+ suffix?: React$1.ReactNode;
2750
+ iconPosition?: "left" | "right";
2751
+ testid?: string;
2752
+ };
2753
+ type AccordionContextValue = {
2754
+ variant: AccordionVariant;
2755
+ size: AccordionSize;
2756
+ iconPosition: "left" | "right";
2757
+ animationDuration: number;
2758
+ disabled?: boolean;
2759
+ };
2760
+ declare const AccordionContext: React$1.Context<AccordionContextValue>;
2761
+ declare const useAccordion: () => AccordionContextValue;
2762
+ type AccordionSingleProps = Omit<React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>, "type" | "children"> & {
2763
+ type?: "single";
2764
+ collapsible?: boolean;
2765
+ };
2766
+ type AccordionMultipleProps = Omit<React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>, "type" | "children"> & {
2767
+ type: "multiple";
2768
+ };
2769
+ type AccordionProps = (AccordionSingleProps | AccordionMultipleProps) & {
2770
+ items: AccordionItem[];
2771
+ variant?: AccordionVariant;
2772
+ size?: AccordionSize;
2773
+ iconPosition?: "left" | "right";
2774
+ animationDuration?: number;
2775
+ disabled?: boolean;
2776
+ itemClassName?: string;
2777
+ triggerClassName?: string;
2778
+ contentClassName?: string;
2779
+ noPadding?: boolean;
2780
+ };
2781
+ declare function Accordion({ items, variant, size, iconPosition, animationDuration, disabled, itemClassName, triggerClassName, contentClassName, noPadding, className, type, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
2782
+ declare namespace Accordion {
2783
+ var displayName: string;
2784
+ }
2785
+
2736
2786
  declare function useIsMobile(): boolean;
2737
2787
 
2738
2788
  interface Position {
@@ -2752,4 +2802,4 @@ declare const useDrag: (options?: UseDragOptions) => {
2752
2802
  isDragging: boolean;
2753
2803
  };
2754
2804
 
2755
- export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BadgeRankType, type BannerProps, type BiaxialConfig, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, type CarouselBaseProps, type CarouselItem, ChangeButton, Chart, ChartControls, type ChartData$3 as ChartData, ChartHeader, type ChartHooksArgs, type ChartProps, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, type CircularProgressProps, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, type CommandGroup, CommandGroupBase, CommandInputBase, type CommandItem, CommandItemBase, CommandItemRow, CommandListBase, CommandPalette, type CommandPaletteProps, CommandSeparatorBase, CommandShortcutBase, type Connection, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, type ControlledComboboxItem, type ControlledComboboxProps, type ControlledComboboxTestIds, CopyButton, type DataMapper, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, type DisabledSlot, type DisabledSlots, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, type FileUploaderProps, type FileWithPreview, type FilesAccepted, FilterButton, type FinalValueFormatter, GroupLabel, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, type Integration, type IntegrationConnection, type IntegrationData, IntegrationModal, type IntegrationModalProps, type IntegrationProperties, type IntegrationProps, Kbd, KbdGroup, LabelBase, type LabelListContent, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, MaskedInput, type MenuItem, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiDayOverlay, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type Neo4jIntegration, type Neo4jNode, type Neo4jRelationship, type NewSelectProps, NoData, type Node, NotificationButton, NumericInput, type Padding, type Period, PeriodsDropdown, PieChartComponent, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Position$1 as Position, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, type PropsLabelList, RadialMenu, RangePicker, type RangePickerProps, RefreshButton, type Relationship, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesConfig, type SeriesCounts, type SeriesEntry, type SeriesOrder, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, type SystemData, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createGroup, createItem, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, filterAndScore, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normaliseGroups, normalizeAttendDate, normalizeStr, processIntegrationData, processNeo4jData, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, scoreMatch, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, unionGroups, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCommandPalette, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useIsTruncated, useOpenTooltipForPeriod, useProcessedData, useRecents, useSeriesOpacity, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
2805
+ export { Accordion, AccordionContext, type AccordionItem, type AccordionProps, type AccordionSize, type AccordionVariant, AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BadgeRankType, type BannerProps, type BiaxialConfig, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, type CarouselBaseProps, type CarouselItem, ChangeButton, Chart, ChartControls, type ChartData$3 as ChartData, ChartHeader, type ChartHooksArgs, type ChartProps, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, type CircularProgressProps, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, type CommandGroup, CommandGroupBase, CommandInputBase, type CommandItem, CommandItemBase, CommandItemRow, CommandListBase, CommandPalette, type CommandPaletteProps, CommandSeparatorBase, CommandShortcutBase, type Connection, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, type ControlledComboboxItem, type ControlledComboboxProps, type ControlledComboboxTestIds, CopyButton, type DataMapper, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, type DisabledSlot, type DisabledSlots, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, type FileUploaderProps, type FileWithPreview, type FilesAccepted, FilterButton, type FinalValueFormatter, GroupLabel, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, type Integration, type IntegrationConnection, type IntegrationData, IntegrationModal, type IntegrationModalProps, type IntegrationProperties, type IntegrationProps, Kbd, KbdGroup, LabelBase, type LabelListContent, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, MaskedInput, type MenuItem, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiDayOverlay, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type Neo4jIntegration, type Neo4jNode, type Neo4jRelationship, type NewSelectProps, NoData, type Node, NotificationButton, NumericInput, type Padding, type Period, PeriodsDropdown, PieChartComponent, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Position$1 as Position, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, type PropsLabelList, RadialMenu, RangePicker, type RangePickerProps, RefreshButton, type Relationship, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesConfig, type SeriesCounts, type SeriesEntry, type SeriesOrder, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, type SystemData, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createGroup, createItem, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, filterAndScore, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normaliseGroups, normalizeAttendDate, normalizeStr, processIntegrationData, processNeo4jData, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, scoreMatch, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, unionGroups, useAccordion, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCommandPalette, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useIsTruncated, useOpenTooltipForPeriod, useProcessedData, useRecents, useSeriesOpacity, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
package/dist/index.js CHANGED
@@ -42,6 +42,7 @@ var core = require('@dnd-kit/core');
42
42
  var utilities = require('@dnd-kit/utilities');
43
43
  var reactRadioGroup = require('@radix-ui/react-radio-group');
44
44
  var recharts = require('recharts');
45
+ var AccordionPrimitive = require('@radix-ui/react-accordion');
45
46
  var useEmblaCarousel = require('embla-carousel-react');
46
47
  var reactVirtual = require('@tanstack/react-virtual');
47
48
 
@@ -84,6 +85,7 @@ var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrim
84
85
  var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
85
86
  var NavigationMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(NavigationMenuPrimitive);
86
87
  var ContextMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(ContextMenuPrimitive);
88
+ var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
87
89
  var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
88
90
 
89
91
  var __create = Object.create;
@@ -3913,7 +3915,7 @@ var FileUploader = React32__namespace.forwardRef(
3913
3915
  showPreview = true,
3914
3916
  dropzoneText = "Arraste arquivos aqui ou clique para selecionar",
3915
3917
  dropzoneSubtext,
3916
- animate: animate3 = true,
3918
+ animate: animate4 = true,
3917
3919
  ...props
3918
3920
  }, ref) => {
3919
3921
  const [isDragging, setIsDragging] = React32__namespace.useState(false);
@@ -4066,7 +4068,7 @@ var FileUploader = React32__namespace.forwardRef(
4066
4068
  framerMotion.motion.p,
4067
4069
  {
4068
4070
  className: "mb-2 text-xs font-semibold text-foreground",
4069
- initial: animate3 ? { opacity: 0, y: -10 } : false,
4071
+ initial: animate4 ? { opacity: 0, y: -10 } : false,
4070
4072
  animate: { opacity: 1, y: 0 },
4071
4073
  transition: { delay: 0.1 },
4072
4074
  children: dropzoneText
@@ -4076,7 +4078,7 @@ var FileUploader = React32__namespace.forwardRef(
4076
4078
  framerMotion.motion.p,
4077
4079
  {
4078
4080
  className: "text-xs text-muted-foreground",
4079
- initial: animate3 ? { opacity: 0, y: -10 } : false,
4081
+ initial: animate4 ? { opacity: 0, y: -10 } : false,
4080
4082
  animate: { opacity: 1, y: 0 },
4081
4083
  transition: { delay: 0.2 },
4082
4084
  children: defaultSubtext
@@ -4086,7 +4088,7 @@ var FileUploader = React32__namespace.forwardRef(
4086
4088
  framerMotion.motion.div,
4087
4089
  {
4088
4090
  className: "py-2 w-full",
4089
- initial: animate3 ? { opacity: 0, y: 10 } : false,
4091
+ initial: animate4 ? { opacity: 0, y: 10 } : false,
4090
4092
  animate: { opacity: 1, y: 0 },
4091
4093
  transition: { delay: 0.3 },
4092
4094
  children: [
@@ -4101,7 +4103,7 @@ var FileUploader = React32__namespace.forwardRef(
4101
4103
  framerMotion.motion.div,
4102
4104
  {
4103
4105
  layout: true,
4104
- initial: animate3 ? { opacity: 0, x: -20 } : false,
4106
+ initial: animate4 ? { opacity: 0, x: -20 } : false,
4105
4107
  animate: { opacity: 1, x: 0 },
4106
4108
  exit: {
4107
4109
  opacity: 0,
@@ -4109,7 +4111,7 @@ var FileUploader = React32__namespace.forwardRef(
4109
4111
  transition: { duration: 0.2 }
4110
4112
  },
4111
4113
  transition: {
4112
- delay: animate3 ? index * 0.05 : 0,
4114
+ delay: animate4 ? index * 0.05 : 0,
4113
4115
  layout: { duration: 0.2 }
4114
4116
  },
4115
4117
  className: cn(
@@ -9871,6 +9873,12 @@ function AllDayStack({
9871
9873
  }
9872
9874
  );
9873
9875
  }
9876
+
9877
+ // src/components/ui/event-calendar-view/helpers.ts
9878
+ var formatterDate = Intl.DateTimeFormat("pt-BR", {
9879
+ minute: "numeric",
9880
+ hour: "numeric"
9881
+ });
9874
9882
  function DayViewAgenda({
9875
9883
  currentDate,
9876
9884
  events,
@@ -9878,7 +9886,8 @@ function DayViewAgenda({
9878
9886
  showUndatedEvents,
9879
9887
  noTime = false,
9880
9888
  onEventCreate,
9881
- allDayCell = false
9889
+ allDayCell = false,
9890
+ timePlus
9882
9891
  }) {
9883
9892
  const [expandedDay, setExpandedDay] = React32.useState(null);
9884
9893
  const hours = React32.useMemo(() => {
@@ -10187,6 +10196,11 @@ function DayViewAgenda({
10187
10196
  const startTime = new Date(currentDate);
10188
10197
  startTime.setHours(hourValue);
10189
10198
  startTime.setMinutes(quarter * 15);
10199
+ if (timePlus) {
10200
+ const eventsOnHour = positionedEvents.filter((evt) => formatterDate.format(evt.event.start).split(":")[0] == formatterDate.format(startTime).split(":")[0]).findLast((evt) => parseInt(formatterDate.format(evt.event.start).split(":")[1]) <= parseInt(formatterDate.format(startTime).split(":")[1]));
10201
+ if (eventsOnHour)
10202
+ startTime.setMinutes((eventsOnHour?.event?.end?.getMinutes() ?? 0) + timePlus);
10203
+ }
10190
10204
  if (onEventCreate) onEventCreate(startTime);
10191
10205
  },
10192
10206
  time: quarterHourTime
@@ -10453,7 +10467,8 @@ function EventAgenda({
10453
10467
  onlyAgenda,
10454
10468
  onlyYear,
10455
10469
  allowCellClick = true,
10456
- allDayCell = false
10470
+ allDayCell = false,
10471
+ timePlus
10457
10472
  }) {
10458
10473
  const lockedView = onlyDay ? "day" : onlyMonth ? "month" : onlyWeek ? "week" : onlyAgenda ? "agenda" : onlyYear ? "year" : void 0;
10459
10474
  const [currentDate, setCurrentDate] = React32.useState(
@@ -10635,6 +10650,7 @@ function EventAgenda({
10635
10650
  onEventSelect: handleEventSelect,
10636
10651
  noTime,
10637
10652
  allDayCell,
10653
+ timePlus,
10638
10654
  onEventCreate: allowCellClick ? (d) => onEventUpdate?.({
10639
10655
  start: d,
10640
10656
  end: d,
@@ -10651,6 +10667,7 @@ function EventAgenda({
10651
10667
  onEventSelect: handleEventSelect,
10652
10668
  noTime,
10653
10669
  allDayCell,
10670
+ timePlus,
10654
10671
  onEventCreate: allowCellClick ? (d) => onEventUpdate?.({
10655
10672
  start: d,
10656
10673
  end: d,
@@ -11360,7 +11377,8 @@ function WeekViewAgenda({
11360
11377
  allDayCell = false,
11361
11378
  onEventCreate,
11362
11379
  showUndatedEvents,
11363
- noTime = false
11380
+ noTime = false,
11381
+ timePlus
11364
11382
  }) {
11365
11383
  const [expandedDay, setExpandedDay] = React32.useState(null);
11366
11384
  const days = React32.useMemo(() => {
@@ -11770,6 +11788,11 @@ function WeekViewAgenda({
11770
11788
  const startTime = new Date(day);
11771
11789
  startTime.setHours(hourValue);
11772
11790
  startTime.setMinutes(quarter * 15);
11791
+ if (timePlus) {
11792
+ const eventsOnHour = processedDayEvents[dayIndex].filter((evt) => formatterDate.format(evt.event.start).split(":")[0] == formatterDate.format(startTime).split(":")[0]).findLast((evt) => parseInt(formatterDate.format(evt.event.start).split(":")[1]) <= parseInt(formatterDate.format(startTime).split(":")[1]));
11793
+ if (eventsOnHour)
11794
+ startTime.setMinutes((eventsOnHour?.event?.end?.getMinutes() ?? 0) + timePlus);
11795
+ }
11773
11796
  if (onEventCreate) onEventCreate(startTime);
11774
11797
  },
11775
11798
  time: quarterHourTime
@@ -20674,6 +20697,172 @@ function NumericInput({
20674
20697
  ] })
20675
20698
  ] });
20676
20699
  }
20700
+ var AccordionContext = React32__namespace.createContext({
20701
+ variant: "default",
20702
+ size: "md",
20703
+ iconPosition: "right",
20704
+ animationDuration: 0.22
20705
+ });
20706
+ var useAccordion = () => React32__namespace.useContext(AccordionContext);
20707
+ var sizeMap = {
20708
+ sm: { trigger: "py-2.5 px-3 text-sm", content: "px-3 pb-3 pt-0 text-sm", icon: "h-3.5 w-3.5" },
20709
+ md: { trigger: "py-4 px-4 text-sm", content: "px-4 pb-4 pt-0 text-sm", icon: "h-4 w-4" },
20710
+ lg: { trigger: "py-5 px-5 text-base", content: "px-5 pb-5 pt-0 text-base", icon: "h-5 w-5" }
20711
+ };
20712
+ var variantItemMap = {
20713
+ default: "border-b overflow-hidden",
20714
+ ghost: "border-b border-transparent overflow-hidden",
20715
+ card: "border rounded-lg mb-2 overflow-hidden",
20716
+ flush: "border-b first:border-t overflow-hidden"
20717
+ };
20718
+ var variantTriggerMap = {
20719
+ default: "hover:bg-accent",
20720
+ ghost: "hover:bg-accent/60",
20721
+ card: "hover:bg-accent/40",
20722
+ flush: "hover:bg-transparent underline-offset-2 hover:underline"
20723
+ };
20724
+ function Accordion({
20725
+ items,
20726
+ variant = "default",
20727
+ size = "md",
20728
+ iconPosition = "right",
20729
+ animationDuration = 0.22,
20730
+ disabled,
20731
+ itemClassName,
20732
+ triggerClassName,
20733
+ contentClassName,
20734
+ noPadding = false,
20735
+ className,
20736
+ type,
20737
+ ...props
20738
+ }) {
20739
+ const rootProps = type === "multiple" ? { type: "multiple", ...props } : {
20740
+ type: "single",
20741
+ collapsible: props.collapsible ?? true,
20742
+ ...props
20743
+ };
20744
+ return /* @__PURE__ */ jsxRuntime.jsx(AccordionContext.Provider, { value: { variant, size, iconPosition, animationDuration, disabled }, children: /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Root, { className: cn("w-full", className), ...rootProps, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
20745
+ AccordionPrimitive__namespace.Item,
20746
+ {
20747
+ value: item.value,
20748
+ disabled: item.disabled ?? disabled,
20749
+ className: cn(variantItemMap[variant], itemClassName),
20750
+ "data-testid": item.testid,
20751
+ children: [
20752
+ /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex min-w-0", children: /* @__PURE__ */ jsxRuntime.jsxs(
20753
+ AccordionPrimitive__namespace.Trigger,
20754
+ {
20755
+ className: cn(
20756
+ "group flex flex-1 min-w-0 items-center justify-between gap-2 font-medium transition-colors duration-150",
20757
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
20758
+ "disabled:pointer-events-none disabled:opacity-50",
20759
+ sizeMap[size].trigger,
20760
+ variantTriggerMap[variant],
20761
+ (item.iconPosition ?? iconPosition) === "left" && "flex-row-reverse",
20762
+ triggerClassName
20763
+ ),
20764
+ children: [
20765
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate text-left leading-snug", children: item.label }),
20766
+ item.suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: item.suffix }),
20767
+ !item.hideIcon && /* @__PURE__ */ jsxRuntime.jsx(TriggerIcon, { duration: animationDuration, children: item.icon ?? /* @__PURE__ */ jsxRuntime.jsx(react.CaretDownIcon, { className: cn("shrink-0", sizeMap[size].icon) }) })
20768
+ ]
20769
+ }
20770
+ ) }),
20771
+ /* @__PURE__ */ jsxRuntime.jsx(
20772
+ AccordionPrimitive__namespace.Content,
20773
+ {
20774
+ forceMount: true,
20775
+ className: cn("min-w-0 w-full", contentClassName),
20776
+ children: /* @__PURE__ */ jsxRuntime.jsx(MotionContent, { duration: animationDuration, children: noPadding ? item.content : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(sizeMap[size].content, "break-words whitespace-normal"), children: item.content }) })
20777
+ }
20778
+ )
20779
+ ]
20780
+ },
20781
+ item.value
20782
+ )) }) });
20783
+ }
20784
+ Accordion.displayName = "Accordion";
20785
+ var EASE_CORPORATE = [0.4, 0, 0.2, 1];
20786
+ function TriggerIcon({ children, duration }) {
20787
+ const [open, setOpen] = React32__namespace.useState(false);
20788
+ const ref = React32__namespace.useRef(null);
20789
+ React32__namespace.useEffect(() => {
20790
+ const node = ref.current;
20791
+ if (!node) return;
20792
+ const trigger = node.closest("button[data-state]");
20793
+ if (!trigger) return;
20794
+ const sync = () => setOpen(trigger.dataset.state === "open");
20795
+ sync();
20796
+ const obs = new MutationObserver(sync);
20797
+ obs.observe(trigger, { attributes: true, attributeFilter: ["data-state"] });
20798
+ return () => obs.disconnect();
20799
+ }, []);
20800
+ const rotate = framerMotion.useMotionValue(0);
20801
+ React32__namespace.useEffect(() => {
20802
+ const controls = framerMotion.animate(rotate, open ? 180 : 0, {
20803
+ duration,
20804
+ ease: EASE_CORPORATE
20805
+ });
20806
+ return controls.stop;
20807
+ }, [open, duration, rotate]);
20808
+ return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.span, { ref, className: "shrink-0 inline-flex", style: { rotate }, children });
20809
+ }
20810
+ function MotionContent({ children, duration }) {
20811
+ const [isOpen, setIsOpen] = React32__namespace.useState(false);
20812
+ const wrapperRef = React32__namespace.useRef(null);
20813
+ const innerRef = React32__namespace.useRef(null);
20814
+ const [contentHeight, setContentHeight] = React32__namespace.useState(0);
20815
+ const height = framerMotion.useMotionValue(0);
20816
+ const opacity = framerMotion.useMotionValue(0);
20817
+ const y = framerMotion.useMotionValue(-4);
20818
+ React32__namespace.useEffect(() => {
20819
+ const inner = innerRef.current;
20820
+ if (!inner) return;
20821
+ const ro = new ResizeObserver(([entry]) => {
20822
+ setContentHeight(entry.contentRect.height);
20823
+ });
20824
+ ro.observe(inner);
20825
+ return () => ro.disconnect();
20826
+ }, []);
20827
+ React32__namespace.useEffect(() => {
20828
+ const node = wrapperRef.current;
20829
+ if (!node) return;
20830
+ const contentEl = node.parentElement;
20831
+ if (!contentEl) return;
20832
+ const sync = () => setIsOpen(contentEl.dataset.state === "open");
20833
+ sync();
20834
+ const obs = new MutationObserver(sync);
20835
+ obs.observe(contentEl, { attributes: true, attributeFilter: ["data-state"] });
20836
+ return () => obs.disconnect();
20837
+ }, []);
20838
+ React32__namespace.useEffect(() => {
20839
+ const targetHeight = isOpen ? contentHeight : 0;
20840
+ const targetOpacity = isOpen ? 1 : 0;
20841
+ const targetY = isOpen ? 0 : -4;
20842
+ const c1 = framerMotion.animate(height, targetHeight, { duration, ease: EASE_CORPORATE });
20843
+ const c2 = framerMotion.animate(opacity, targetOpacity, { duration: duration * 0.85, ease: "easeOut" });
20844
+ const c3 = framerMotion.animate(y, targetY, { duration: duration * 0.85, ease: EASE_CORPORATE });
20845
+ return () => {
20846
+ c1.stop();
20847
+ c2.stop();
20848
+ c3.stop();
20849
+ };
20850
+ }, [isOpen, contentHeight, duration, height, opacity, y]);
20851
+ React32__namespace.useEffect(() => {
20852
+ if (isOpen) {
20853
+ framerMotion.animate(height, contentHeight, { duration: duration * 0.5, ease: EASE_CORPORATE });
20854
+ }
20855
+ }, [contentHeight]);
20856
+ return /* @__PURE__ */ jsxRuntime.jsx(
20857
+ framerMotion.motion.div,
20858
+ {
20859
+ ref: wrapperRef,
20860
+ className: "min-w-0 w-full",
20861
+ style: { height, overflow: "hidden" },
20862
+ children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, { ref: innerRef, style: { opacity, y }, children })
20863
+ }
20864
+ );
20865
+ }
20677
20866
  function hexToRgb(hex) {
20678
20867
  const clean = hex.replace("#", "");
20679
20868
  if (clean.length !== 6) return null;
@@ -22315,7 +22504,7 @@ function ControlledCombobox({
22315
22504
  }
22316
22505
  );
22317
22506
  }
22318
- var sizeMap = {
22507
+ var sizeMap2 = {
22319
22508
  sm: { container: "size-24", text: "text-lg" },
22320
22509
  md: { container: "size-40", text: "text-2xl" },
22321
22510
  lg: { container: "size-56", text: "text-3xl" },
@@ -22368,7 +22557,7 @@ function CircularProgress({
22368
22557
  });
22369
22558
  return controls.stop;
22370
22559
  }, [currentPercent, count, strokePercent, disableAnimation]);
22371
- const { container, text } = sizeMap[size];
22560
+ const { container, text } = sizeMap2[size];
22372
22561
  return /* @__PURE__ */ jsxRuntime.jsxs(
22373
22562
  framerMotion.motion.div,
22374
22563
  {
@@ -23345,6 +23534,8 @@ function CommandPalette(props) {
23345
23534
  ] }) });
23346
23535
  }
23347
23536
 
23537
+ exports.Accordion = Accordion;
23538
+ exports.AccordionContext = AccordionContext;
23348
23539
  exports.AddButton = AddButton;
23349
23540
  exports.Agenda = Agenda;
23350
23541
  exports.AgendaDaysToShow = AgendaDaysToShow;
@@ -23747,6 +23938,7 @@ exports.sortEventsAgenda = sortEventsAgenda;
23747
23938
  exports.startOfLocalDay = startOfLocalDay;
23748
23939
  exports.toast = toast;
23749
23940
  exports.unionGroups = unionGroups;
23941
+ exports.useAccordion = useAccordion;
23750
23942
  exports.useBiaxial = useBiaxial;
23751
23943
  exports.useCalendarDnd = useCalendarDnd;
23752
23944
  exports.useCalendarDndAgenda = useCalendarDndAgenda;
package/dist/index.mjs CHANGED
@@ -41,6 +41,7 @@ import { useSensors, useSensor, MouseSensor, TouchSensor, PointerSensor, DndCont
41
41
  import { CSS } from '@dnd-kit/utilities';
42
42
  import { RadioGroup, RadioGroupItem } from '@radix-ui/react-radio-group';
43
43
  import { ResponsiveContainer, ComposedChart, XAxis, YAxis, Bar, Line, Area, CartesianGrid, Tooltip, Legend, LabelList, Rectangle, PieChart, Pie, Cell, Sector } from 'recharts';
44
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
44
45
  import useEmblaCarousel from 'embla-carousel-react';
45
46
  import { useVirtualizer } from '@tanstack/react-virtual';
46
47
 
@@ -3871,7 +3872,7 @@ var FileUploader = React32.forwardRef(
3871
3872
  showPreview = true,
3872
3873
  dropzoneText = "Arraste arquivos aqui ou clique para selecionar",
3873
3874
  dropzoneSubtext,
3874
- animate: animate3 = true,
3875
+ animate: animate4 = true,
3875
3876
  ...props
3876
3877
  }, ref) => {
3877
3878
  const [isDragging, setIsDragging] = React32.useState(false);
@@ -4024,7 +4025,7 @@ var FileUploader = React32.forwardRef(
4024
4025
  motion.p,
4025
4026
  {
4026
4027
  className: "mb-2 text-xs font-semibold text-foreground",
4027
- initial: animate3 ? { opacity: 0, y: -10 } : false,
4028
+ initial: animate4 ? { opacity: 0, y: -10 } : false,
4028
4029
  animate: { opacity: 1, y: 0 },
4029
4030
  transition: { delay: 0.1 },
4030
4031
  children: dropzoneText
@@ -4034,7 +4035,7 @@ var FileUploader = React32.forwardRef(
4034
4035
  motion.p,
4035
4036
  {
4036
4037
  className: "text-xs text-muted-foreground",
4037
- initial: animate3 ? { opacity: 0, y: -10 } : false,
4038
+ initial: animate4 ? { opacity: 0, y: -10 } : false,
4038
4039
  animate: { opacity: 1, y: 0 },
4039
4040
  transition: { delay: 0.2 },
4040
4041
  children: defaultSubtext
@@ -4044,7 +4045,7 @@ var FileUploader = React32.forwardRef(
4044
4045
  motion.div,
4045
4046
  {
4046
4047
  className: "py-2 w-full",
4047
- initial: animate3 ? { opacity: 0, y: 10 } : false,
4048
+ initial: animate4 ? { opacity: 0, y: 10 } : false,
4048
4049
  animate: { opacity: 1, y: 0 },
4049
4050
  transition: { delay: 0.3 },
4050
4051
  children: [
@@ -4059,7 +4060,7 @@ var FileUploader = React32.forwardRef(
4059
4060
  motion.div,
4060
4061
  {
4061
4062
  layout: true,
4062
- initial: animate3 ? { opacity: 0, x: -20 } : false,
4063
+ initial: animate4 ? { opacity: 0, x: -20 } : false,
4063
4064
  animate: { opacity: 1, x: 0 },
4064
4065
  exit: {
4065
4066
  opacity: 0,
@@ -4067,7 +4068,7 @@ var FileUploader = React32.forwardRef(
4067
4068
  transition: { duration: 0.2 }
4068
4069
  },
4069
4070
  transition: {
4070
- delay: animate3 ? index * 0.05 : 0,
4071
+ delay: animate4 ? index * 0.05 : 0,
4071
4072
  layout: { duration: 0.2 }
4072
4073
  },
4073
4074
  className: cn(
@@ -9829,6 +9830,12 @@ function AllDayStack({
9829
9830
  }
9830
9831
  );
9831
9832
  }
9833
+
9834
+ // src/components/ui/event-calendar-view/helpers.ts
9835
+ var formatterDate = Intl.DateTimeFormat("pt-BR", {
9836
+ minute: "numeric",
9837
+ hour: "numeric"
9838
+ });
9832
9839
  function DayViewAgenda({
9833
9840
  currentDate,
9834
9841
  events,
@@ -9836,7 +9843,8 @@ function DayViewAgenda({
9836
9843
  showUndatedEvents,
9837
9844
  noTime = false,
9838
9845
  onEventCreate,
9839
- allDayCell = false
9846
+ allDayCell = false,
9847
+ timePlus
9840
9848
  }) {
9841
9849
  const [expandedDay, setExpandedDay] = useState(null);
9842
9850
  const hours = useMemo(() => {
@@ -10145,6 +10153,11 @@ function DayViewAgenda({
10145
10153
  const startTime = new Date(currentDate);
10146
10154
  startTime.setHours(hourValue);
10147
10155
  startTime.setMinutes(quarter * 15);
10156
+ if (timePlus) {
10157
+ const eventsOnHour = positionedEvents.filter((evt) => formatterDate.format(evt.event.start).split(":")[0] == formatterDate.format(startTime).split(":")[0]).findLast((evt) => parseInt(formatterDate.format(evt.event.start).split(":")[1]) <= parseInt(formatterDate.format(startTime).split(":")[1]));
10158
+ if (eventsOnHour)
10159
+ startTime.setMinutes((eventsOnHour?.event?.end?.getMinutes() ?? 0) + timePlus);
10160
+ }
10148
10161
  if (onEventCreate) onEventCreate(startTime);
10149
10162
  },
10150
10163
  time: quarterHourTime
@@ -10411,7 +10424,8 @@ function EventAgenda({
10411
10424
  onlyAgenda,
10412
10425
  onlyYear,
10413
10426
  allowCellClick = true,
10414
- allDayCell = false
10427
+ allDayCell = false,
10428
+ timePlus
10415
10429
  }) {
10416
10430
  const lockedView = onlyDay ? "day" : onlyMonth ? "month" : onlyWeek ? "week" : onlyAgenda ? "agenda" : onlyYear ? "year" : void 0;
10417
10431
  const [currentDate, setCurrentDate] = useState(
@@ -10593,6 +10607,7 @@ function EventAgenda({
10593
10607
  onEventSelect: handleEventSelect,
10594
10608
  noTime,
10595
10609
  allDayCell,
10610
+ timePlus,
10596
10611
  onEventCreate: allowCellClick ? (d) => onEventUpdate?.({
10597
10612
  start: d,
10598
10613
  end: d,
@@ -10609,6 +10624,7 @@ function EventAgenda({
10609
10624
  onEventSelect: handleEventSelect,
10610
10625
  noTime,
10611
10626
  allDayCell,
10627
+ timePlus,
10612
10628
  onEventCreate: allowCellClick ? (d) => onEventUpdate?.({
10613
10629
  start: d,
10614
10630
  end: d,
@@ -11318,7 +11334,8 @@ function WeekViewAgenda({
11318
11334
  allDayCell = false,
11319
11335
  onEventCreate,
11320
11336
  showUndatedEvents,
11321
- noTime = false
11337
+ noTime = false,
11338
+ timePlus
11322
11339
  }) {
11323
11340
  const [expandedDay, setExpandedDay] = useState(null);
11324
11341
  const days = useMemo(() => {
@@ -11728,6 +11745,11 @@ function WeekViewAgenda({
11728
11745
  const startTime = new Date(day);
11729
11746
  startTime.setHours(hourValue);
11730
11747
  startTime.setMinutes(quarter * 15);
11748
+ if (timePlus) {
11749
+ const eventsOnHour = processedDayEvents[dayIndex].filter((evt) => formatterDate.format(evt.event.start).split(":")[0] == formatterDate.format(startTime).split(":")[0]).findLast((evt) => parseInt(formatterDate.format(evt.event.start).split(":")[1]) <= parseInt(formatterDate.format(startTime).split(":")[1]));
11750
+ if (eventsOnHour)
11751
+ startTime.setMinutes((eventsOnHour?.event?.end?.getMinutes() ?? 0) + timePlus);
11752
+ }
11731
11753
  if (onEventCreate) onEventCreate(startTime);
11732
11754
  },
11733
11755
  time: quarterHourTime
@@ -20632,6 +20654,172 @@ function NumericInput({
20632
20654
  ] })
20633
20655
  ] });
20634
20656
  }
20657
+ var AccordionContext = React32.createContext({
20658
+ variant: "default",
20659
+ size: "md",
20660
+ iconPosition: "right",
20661
+ animationDuration: 0.22
20662
+ });
20663
+ var useAccordion = () => React32.useContext(AccordionContext);
20664
+ var sizeMap = {
20665
+ sm: { trigger: "py-2.5 px-3 text-sm", content: "px-3 pb-3 pt-0 text-sm", icon: "h-3.5 w-3.5" },
20666
+ md: { trigger: "py-4 px-4 text-sm", content: "px-4 pb-4 pt-0 text-sm", icon: "h-4 w-4" },
20667
+ lg: { trigger: "py-5 px-5 text-base", content: "px-5 pb-5 pt-0 text-base", icon: "h-5 w-5" }
20668
+ };
20669
+ var variantItemMap = {
20670
+ default: "border-b overflow-hidden",
20671
+ ghost: "border-b border-transparent overflow-hidden",
20672
+ card: "border rounded-lg mb-2 overflow-hidden",
20673
+ flush: "border-b first:border-t overflow-hidden"
20674
+ };
20675
+ var variantTriggerMap = {
20676
+ default: "hover:bg-accent",
20677
+ ghost: "hover:bg-accent/60",
20678
+ card: "hover:bg-accent/40",
20679
+ flush: "hover:bg-transparent underline-offset-2 hover:underline"
20680
+ };
20681
+ function Accordion({
20682
+ items,
20683
+ variant = "default",
20684
+ size = "md",
20685
+ iconPosition = "right",
20686
+ animationDuration = 0.22,
20687
+ disabled,
20688
+ itemClassName,
20689
+ triggerClassName,
20690
+ contentClassName,
20691
+ noPadding = false,
20692
+ className,
20693
+ type,
20694
+ ...props
20695
+ }) {
20696
+ const rootProps = type === "multiple" ? { type: "multiple", ...props } : {
20697
+ type: "single",
20698
+ collapsible: props.collapsible ?? true,
20699
+ ...props
20700
+ };
20701
+ return /* @__PURE__ */ jsx(AccordionContext.Provider, { value: { variant, size, iconPosition, animationDuration, disabled }, children: /* @__PURE__ */ jsx(AccordionPrimitive.Root, { className: cn("w-full", className), ...rootProps, children: items.map((item) => /* @__PURE__ */ jsxs(
20702
+ AccordionPrimitive.Item,
20703
+ {
20704
+ value: item.value,
20705
+ disabled: item.disabled ?? disabled,
20706
+ className: cn(variantItemMap[variant], itemClassName),
20707
+ "data-testid": item.testid,
20708
+ children: [
20709
+ /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex min-w-0", children: /* @__PURE__ */ jsxs(
20710
+ AccordionPrimitive.Trigger,
20711
+ {
20712
+ className: cn(
20713
+ "group flex flex-1 min-w-0 items-center justify-between gap-2 font-medium transition-colors duration-150",
20714
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
20715
+ "disabled:pointer-events-none disabled:opacity-50",
20716
+ sizeMap[size].trigger,
20717
+ variantTriggerMap[variant],
20718
+ (item.iconPosition ?? iconPosition) === "left" && "flex-row-reverse",
20719
+ triggerClassName
20720
+ ),
20721
+ children: [
20722
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-left leading-snug", children: item.label }),
20723
+ item.suffix && /* @__PURE__ */ jsx("span", { className: "shrink-0", children: item.suffix }),
20724
+ !item.hideIcon && /* @__PURE__ */ jsx(TriggerIcon, { duration: animationDuration, children: item.icon ?? /* @__PURE__ */ jsx(CaretDownIcon, { className: cn("shrink-0", sizeMap[size].icon) }) })
20725
+ ]
20726
+ }
20727
+ ) }),
20728
+ /* @__PURE__ */ jsx(
20729
+ AccordionPrimitive.Content,
20730
+ {
20731
+ forceMount: true,
20732
+ className: cn("min-w-0 w-full", contentClassName),
20733
+ children: /* @__PURE__ */ jsx(MotionContent, { duration: animationDuration, children: noPadding ? item.content : /* @__PURE__ */ jsx("div", { className: cn(sizeMap[size].content, "break-words whitespace-normal"), children: item.content }) })
20734
+ }
20735
+ )
20736
+ ]
20737
+ },
20738
+ item.value
20739
+ )) }) });
20740
+ }
20741
+ Accordion.displayName = "Accordion";
20742
+ var EASE_CORPORATE = [0.4, 0, 0.2, 1];
20743
+ function TriggerIcon({ children, duration }) {
20744
+ const [open, setOpen] = React32.useState(false);
20745
+ const ref = React32.useRef(null);
20746
+ React32.useEffect(() => {
20747
+ const node = ref.current;
20748
+ if (!node) return;
20749
+ const trigger = node.closest("button[data-state]");
20750
+ if (!trigger) return;
20751
+ const sync = () => setOpen(trigger.dataset.state === "open");
20752
+ sync();
20753
+ const obs = new MutationObserver(sync);
20754
+ obs.observe(trigger, { attributes: true, attributeFilter: ["data-state"] });
20755
+ return () => obs.disconnect();
20756
+ }, []);
20757
+ const rotate = useMotionValue(0);
20758
+ React32.useEffect(() => {
20759
+ const controls = animate(rotate, open ? 180 : 0, {
20760
+ duration,
20761
+ ease: EASE_CORPORATE
20762
+ });
20763
+ return controls.stop;
20764
+ }, [open, duration, rotate]);
20765
+ return /* @__PURE__ */ jsx(motion.span, { ref, className: "shrink-0 inline-flex", style: { rotate }, children });
20766
+ }
20767
+ function MotionContent({ children, duration }) {
20768
+ const [isOpen, setIsOpen] = React32.useState(false);
20769
+ const wrapperRef = React32.useRef(null);
20770
+ const innerRef = React32.useRef(null);
20771
+ const [contentHeight, setContentHeight] = React32.useState(0);
20772
+ const height = useMotionValue(0);
20773
+ const opacity = useMotionValue(0);
20774
+ const y = useMotionValue(-4);
20775
+ React32.useEffect(() => {
20776
+ const inner = innerRef.current;
20777
+ if (!inner) return;
20778
+ const ro = new ResizeObserver(([entry]) => {
20779
+ setContentHeight(entry.contentRect.height);
20780
+ });
20781
+ ro.observe(inner);
20782
+ return () => ro.disconnect();
20783
+ }, []);
20784
+ React32.useEffect(() => {
20785
+ const node = wrapperRef.current;
20786
+ if (!node) return;
20787
+ const contentEl = node.parentElement;
20788
+ if (!contentEl) return;
20789
+ const sync = () => setIsOpen(contentEl.dataset.state === "open");
20790
+ sync();
20791
+ const obs = new MutationObserver(sync);
20792
+ obs.observe(contentEl, { attributes: true, attributeFilter: ["data-state"] });
20793
+ return () => obs.disconnect();
20794
+ }, []);
20795
+ React32.useEffect(() => {
20796
+ const targetHeight = isOpen ? contentHeight : 0;
20797
+ const targetOpacity = isOpen ? 1 : 0;
20798
+ const targetY = isOpen ? 0 : -4;
20799
+ const c1 = animate(height, targetHeight, { duration, ease: EASE_CORPORATE });
20800
+ const c2 = animate(opacity, targetOpacity, { duration: duration * 0.85, ease: "easeOut" });
20801
+ const c3 = animate(y, targetY, { duration: duration * 0.85, ease: EASE_CORPORATE });
20802
+ return () => {
20803
+ c1.stop();
20804
+ c2.stop();
20805
+ c3.stop();
20806
+ };
20807
+ }, [isOpen, contentHeight, duration, height, opacity, y]);
20808
+ React32.useEffect(() => {
20809
+ if (isOpen) {
20810
+ animate(height, contentHeight, { duration: duration * 0.5, ease: EASE_CORPORATE });
20811
+ }
20812
+ }, [contentHeight]);
20813
+ return /* @__PURE__ */ jsx(
20814
+ motion.div,
20815
+ {
20816
+ ref: wrapperRef,
20817
+ className: "min-w-0 w-full",
20818
+ style: { height, overflow: "hidden" },
20819
+ children: /* @__PURE__ */ jsx(motion.div, { ref: innerRef, style: { opacity, y }, children })
20820
+ }
20821
+ );
20822
+ }
20635
20823
  function hexToRgb(hex) {
20636
20824
  const clean = hex.replace("#", "");
20637
20825
  if (clean.length !== 6) return null;
@@ -22273,7 +22461,7 @@ function ControlledCombobox({
22273
22461
  }
22274
22462
  );
22275
22463
  }
22276
- var sizeMap = {
22464
+ var sizeMap2 = {
22277
22465
  sm: { container: "size-24", text: "text-lg" },
22278
22466
  md: { container: "size-40", text: "text-2xl" },
22279
22467
  lg: { container: "size-56", text: "text-3xl" },
@@ -22326,7 +22514,7 @@ function CircularProgress({
22326
22514
  });
22327
22515
  return controls.stop;
22328
22516
  }, [currentPercent, count, strokePercent, disableAnimation]);
22329
- const { container, text } = sizeMap[size];
22517
+ const { container, text } = sizeMap2[size];
22330
22518
  return /* @__PURE__ */ jsxs(
22331
22519
  motion.div,
22332
22520
  {
@@ -23303,4 +23491,4 @@ function CommandPalette(props) {
23303
23491
  ] }) });
23304
23492
  }
23305
23493
 
23306
- export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush_default as Brush, ButtonBase, ButtonGroupBase, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, ChangeButton, Chart_default as Chart, ChartControls, ChartHeader, ChartTotalLegend_default as ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, CloseAllButton_default as CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandItemRow, CommandListBase, CommandPalette, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, DefaultEndHour, DefaultEndHourAgenda, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent2 as DraggableEvent, DraggableTooltip_default as DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage_default as ErrorMessage, EventAgenda, EventCalendar, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, FilterButton, GroupLabel, HideButton, Highlights_default as Highlights, HorizontalChart_default as HorizontalChart, HorizontalLegend_default as HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, InputBase, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, IntegrationModal_default as IntegrationModal, Kbd, KbdGroup, LabelBase_default as LabelBase, Leaderboard, LikeButton, LoadingBase, LockButton, MaskedInput, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiDayOverlay, MultiSelect, MultiSelectBase, MultiSelectContentBase, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NoData_default as NoData, NotificationButton, NumericInput, PeriodsDropdown_default as PeriodsDropdown, PieChart_default as PieChartComponent, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, ProgressCirclesBase, ProgressPanelsBase, ProgressSegmentsBase, RadialMenu, RangePicker, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly_default as ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, StartHour, StartHourAgenda, StatusIndicator, SwitchBase, SystemTooltip_default as SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, ThemeProviderBase, TimePicker, TimePickerInput, TimeSeries_default as TimeSeries, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple_default as TooltipSimple, TooltipTriggerBase, TooltipWithTotal_default as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createGroup, createItem, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, filterAndScore, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normaliseGroups, normalizeAttendDate, normalizeStr, processIntegrationData, processNeo4jData, renderInsideBarLabel, pillLabelRenderer_default as renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, scoreMatch, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, unionGroups, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCommandPalette, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useIsTruncated, useOpenTooltipForPeriod, useProcessedData, useRecents, useSeriesOpacity, useTheme, useTimeSeriesRange, visualForItem };
23494
+ export { Accordion, AccordionContext, AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush_default as Brush, ButtonBase, ButtonGroupBase, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, ChangeButton, Chart_default as Chart, ChartControls, ChartHeader, ChartTotalLegend_default as ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CircularProgress, CloseAllButton_default as CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandItemRow, CommandListBase, CommandPalette, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, DefaultEndHour, DefaultEndHourAgenda, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent2 as DraggableEvent, DraggableTooltip_default as DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage_default as ErrorMessage, EventAgenda, EventCalendar, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, FilterButton, GroupLabel, HideButton, Highlights_default as Highlights, HorizontalChart_default as HorizontalChart, HorizontalLegend_default as HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, InputBase, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, IntegrationModal_default as IntegrationModal, Kbd, KbdGroup, LabelBase_default as LabelBase, Leaderboard, LikeButton, LoadingBase, LockButton, MaskedInput, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiDayOverlay, MultiSelect, MultiSelectBase, MultiSelectContentBase, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NoData_default as NoData, NotificationButton, NumericInput, PeriodsDropdown_default as PeriodsDropdown, PieChart_default as PieChartComponent, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, ProgressCirclesBase, ProgressPanelsBase, ProgressSegmentsBase, RadialMenu, RangePicker, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly_default as ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, StartHour, StartHourAgenda, StatusIndicator, SwitchBase, SystemTooltip_default as SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, ThemeProviderBase, TimePicker, TimePickerInput, TimeSeries_default as TimeSeries, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple_default as TooltipSimple, TooltipTriggerBase, TooltipWithTotal_default as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createGroup, createItem, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, filterAndScore, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normaliseGroups, normalizeAttendDate, normalizeStr, processIntegrationData, processNeo4jData, renderInsideBarLabel, pillLabelRenderer_default as renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, scoreMatch, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, startOfLocalDay, toast, unionGroups, useAccordion, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCommandPalette, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useIsTruncated, useOpenTooltipForPeriod, useProcessedData, useRecents, useSeriesOpacity, useTheme, useTimeSeriesRange, visualForItem };
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "access": "public",
6
6
  "type": "module"
7
7
  },
8
- "version": "1.10.31",
8
+ "version": "1.10.33",
9
9
  "homepage": "https://main--68e80310a069c2f10b546ef3.chromatic.com/",
10
10
  "repository": {
11
11
  "type": "git",
@@ -42,6 +42,7 @@
42
42
  "dependencies": {
43
43
  "@dnd-kit/core": "^6.3.1",
44
44
  "@dnd-kit/utilities": "^3.2.2",
45
+ "@radix-ui/react-accordion": "^1.2.12",
45
46
  "@radix-ui/react-alert-dialog": "^1.1.5",
46
47
  "@radix-ui/react-avatar": "^1.1.2",
47
48
  "@radix-ui/react-checkbox": "^1.1.3",