@mlw-packages/react-components 1.10.32 → 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;
@@ -2736,6 +2737,52 @@ type MaskedInputProps = {
2736
2737
  };
2737
2738
  declare function MaskedInput({ value, onChange, mask, label, className, error, isLoading, disabled, hideConfirm, }: MaskedInputProps): react_jsx_runtime.JSX.Element;
2738
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
+
2739
2786
  declare function useIsMobile(): boolean;
2740
2787
 
2741
2788
  interface Position {
@@ -2755,4 +2802,4 @@ declare const useDrag: (options?: UseDragOptions) => {
2755
2802
  isDragging: boolean;
2756
2803
  };
2757
2804
 
2758
- 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;
@@ -2736,6 +2737,52 @@ type MaskedInputProps = {
2736
2737
  };
2737
2738
  declare function MaskedInput({ value, onChange, mask, label, className, error, isLoading, disabled, hideConfirm, }: MaskedInputProps): react_jsx_runtime.JSX.Element;
2738
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
+
2739
2786
  declare function useIsMobile(): boolean;
2740
2787
 
2741
2788
  interface Position {
@@ -2755,4 +2802,4 @@ declare const useDrag: (options?: UseDragOptions) => {
2755
2802
  isDragging: boolean;
2756
2803
  };
2757
2804
 
2758
- 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(
@@ -20695,6 +20697,172 @@ function NumericInput({
20695
20697
  ] })
20696
20698
  ] });
20697
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
+ }
20698
20866
  function hexToRgb(hex) {
20699
20867
  const clean = hex.replace("#", "");
20700
20868
  if (clean.length !== 6) return null;
@@ -22336,7 +22504,7 @@ function ControlledCombobox({
22336
22504
  }
22337
22505
  );
22338
22506
  }
22339
- var sizeMap = {
22507
+ var sizeMap2 = {
22340
22508
  sm: { container: "size-24", text: "text-lg" },
22341
22509
  md: { container: "size-40", text: "text-2xl" },
22342
22510
  lg: { container: "size-56", text: "text-3xl" },
@@ -22389,7 +22557,7 @@ function CircularProgress({
22389
22557
  });
22390
22558
  return controls.stop;
22391
22559
  }, [currentPercent, count, strokePercent, disableAnimation]);
22392
- const { container, text } = sizeMap[size];
22560
+ const { container, text } = sizeMap2[size];
22393
22561
  return /* @__PURE__ */ jsxRuntime.jsxs(
22394
22562
  framerMotion.motion.div,
22395
22563
  {
@@ -23366,6 +23534,8 @@ function CommandPalette(props) {
23366
23534
  ] }) });
23367
23535
  }
23368
23536
 
23537
+ exports.Accordion = Accordion;
23538
+ exports.AccordionContext = AccordionContext;
23369
23539
  exports.AddButton = AddButton;
23370
23540
  exports.Agenda = Agenda;
23371
23541
  exports.AgendaDaysToShow = AgendaDaysToShow;
@@ -23768,6 +23938,7 @@ exports.sortEventsAgenda = sortEventsAgenda;
23768
23938
  exports.startOfLocalDay = startOfLocalDay;
23769
23939
  exports.toast = toast;
23770
23940
  exports.unionGroups = unionGroups;
23941
+ exports.useAccordion = useAccordion;
23771
23942
  exports.useBiaxial = useBiaxial;
23772
23943
  exports.useCalendarDnd = useCalendarDnd;
23773
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(
@@ -20653,6 +20654,172 @@ function NumericInput({
20653
20654
  ] })
20654
20655
  ] });
20655
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
+ }
20656
20823
  function hexToRgb(hex) {
20657
20824
  const clean = hex.replace("#", "");
20658
20825
  if (clean.length !== 6) return null;
@@ -22294,7 +22461,7 @@ function ControlledCombobox({
22294
22461
  }
22295
22462
  );
22296
22463
  }
22297
- var sizeMap = {
22464
+ var sizeMap2 = {
22298
22465
  sm: { container: "size-24", text: "text-lg" },
22299
22466
  md: { container: "size-40", text: "text-2xl" },
22300
22467
  lg: { container: "size-56", text: "text-3xl" },
@@ -22347,7 +22514,7 @@ function CircularProgress({
22347
22514
  });
22348
22515
  return controls.stop;
22349
22516
  }, [currentPercent, count, strokePercent, disableAnimation]);
22350
- const { container, text } = sizeMap[size];
22517
+ const { container, text } = sizeMap2[size];
22351
22518
  return /* @__PURE__ */ jsxs(
22352
22519
  motion.div,
22353
22520
  {
@@ -23324,4 +23491,4 @@ function CommandPalette(props) {
23324
23491
  ] }) });
23325
23492
  }
23326
23493
 
23327
- 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.32",
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",