@vesture/react 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -770,4 +770,49 @@ interface InteractivePieChartProps extends PieChartBaseProps {
770
770
  */
771
771
  declare function InteractivePieChart({ data, innerRadius, showLabels, height }: InteractivePieChartProps): ReactElement;
772
772
 
773
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, type AlertProps, type AlertVariant, AreaChart, type AreaChartBaseProps, type AreaChartDataPoint, type AreaChartMargin, type AreaChartProps, type AreaChartSeries, type AreaChartXScaleType, Avatar, type AvatarProps, type AvatarSize, type AvatarStatus, Badge, type BadgeProps, type BadgeVariant, BarChart, type BarChartBaseProps, type BarChartDataPoint, type BarChartLayout, type BarChartMargin, type BarChartProps, type BarChartSeries, Breadcrumbs, BreadcrumbsItem, type BreadcrumbsItemProps, type BreadcrumbsProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarProps, Card, type CardElevation, type CardProps, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, type CommandItem, CommandPalette, type CommandPaletteProps, DataGrid, type DataGridColumn, type DataGridExportOptions, type DataGridHandle, type DataGridProps, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, Divider, type DividerOrientation, type DividerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, Input, type InputProps, InteractiveAreaChart, type InteractiveAreaChartProps, InteractiveBarChart, type InteractiveBarChartProps, InteractiveLineChart, type InteractiveLineChartProps, InteractivePieChart, type InteractivePieChartProps, Label, type LabelProps, LineChart, type LineChartBaseProps, type LineChartDataPoint, type LineChartMargin, type LineChartProps, type LineChartSeries, type LineChartXScaleType, Modal, type ModalProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, PieChart, type PieChartBaseProps, type PieChartDataPoint, type PieChartProps, Popover, type PopoverProps, Progress, type ProgressProps, Radio, type RadioProps, Select, type SelectProps, Slider, type SliderProps, type SliderValue, type SortDirection, type SortState, Spinner, type SpinnerProps, type SpinnerSize, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, Switch, type SwitchProps, Tabs, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type ToastContextValue, type ToastOptions, ToastProvider, type ToastVariant, Tooltip, type TooltipProps, type TreeNode, TreeView, type TreeViewProps, type TreeViewSelectable, type UseCommandPaletteShortcutOptions, useCommandPaletteShortcut, useToast };
773
+ interface SchedulerEvent {
774
+ id: string;
775
+ title: string;
776
+ start: Date;
777
+ end: Date;
778
+ allDay?: boolean;
779
+ color?: string;
780
+ data?: unknown;
781
+ }
782
+ interface SchedulerProps {
783
+ events: SchedulerEvent[];
784
+ /** Any date within the week being displayed. */
785
+ date: Date;
786
+ /** Fired by the prev/next/today week-navigation controls. */
787
+ onDateChange?: (date: Date) => void;
788
+ weekStartsOn?: 0 | 1;
789
+ /** Visible time range, in hours (0-24). */
790
+ startHour?: number;
791
+ endHour?: number;
792
+ /** Gridline density, in minutes. */
793
+ slotDuration?: number;
794
+ onEventClick?: (event: SchedulerEvent) => void;
795
+ /**
796
+ * Fired on drag-move drop or resize-release. Scheduler never mutates `events` itself —
797
+ * same controlled philosophy as the rest of the library — the consumer decides whether to
798
+ * accept the change and re-render with updated data.
799
+ */
800
+ onEventChange?: (event: SchedulerEvent, newStart: Date, newEnd: Date) => void;
801
+ /**
802
+ * Enables drag-to-move, drag-to-resize, and their keyboard equivalents (arrow keys to
803
+ * move, Shift+arrow to resize) on timed events. All-day events are never draggable.
804
+ * Defaults to false — existing consumers see zero behavior change.
805
+ */
806
+ editable?: boolean;
807
+ /** Minimum resize duration, in minutes. Defaults to `slotDuration`. */
808
+ minEventDuration?: number;
809
+ /** Controlled highlight. */
810
+ selectedEventId?: string;
811
+ /** BCP 47 locale used for day/time label formatting via Intl.DateTimeFormat. */
812
+ locale?: string;
813
+ className?: string;
814
+ }
815
+
816
+ declare function Scheduler({ events, date, onDateChange, weekStartsOn, startHour, endHour, slotDuration, onEventClick, onEventChange, editable, minEventDuration, selectedEventId, locale, className, }: SchedulerProps): ReactElement;
817
+
818
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, type AlertProps, type AlertVariant, AreaChart, type AreaChartBaseProps, type AreaChartDataPoint, type AreaChartMargin, type AreaChartProps, type AreaChartSeries, type AreaChartXScaleType, Avatar, type AvatarProps, type AvatarSize, type AvatarStatus, Badge, type BadgeProps, type BadgeVariant, BarChart, type BarChartBaseProps, type BarChartDataPoint, type BarChartLayout, type BarChartMargin, type BarChartProps, type BarChartSeries, Breadcrumbs, BreadcrumbsItem, type BreadcrumbsItemProps, type BreadcrumbsProps, Button, type ButtonProps, type ButtonVariant, Calendar, type CalendarProps, Card, type CardElevation, type CardProps, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, type CommandItem, CommandPalette, type CommandPaletteProps, DataGrid, type DataGridColumn, type DataGridExportOptions, type DataGridHandle, type DataGridProps, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, Divider, type DividerOrientation, type DividerProps, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, Input, type InputProps, InteractiveAreaChart, type InteractiveAreaChartProps, InteractiveBarChart, type InteractiveBarChartProps, InteractiveLineChart, type InteractiveLineChartProps, InteractivePieChart, type InteractivePieChartProps, Label, type LabelProps, LineChart, type LineChartBaseProps, type LineChartDataPoint, type LineChartMargin, type LineChartProps, type LineChartSeries, type LineChartXScaleType, Modal, type ModalProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, PieChart, type PieChartBaseProps, type PieChartDataPoint, type PieChartProps, Popover, type PopoverProps, Progress, type ProgressProps, Radio, type RadioProps, Scheduler, type SchedulerEvent, type SchedulerProps, Select, type SelectProps, Slider, type SliderProps, type SliderValue, type SortDirection, type SortState, Spinner, type SpinnerProps, type SpinnerSize, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, Switch, type SwitchProps, Tabs, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type ToastContextValue, type ToastOptions, ToastProvider, type ToastVariant, Tooltip, type TooltipProps, type TreeNode, TreeView, type TreeViewProps, type TreeViewSelectable, type UseCommandPaletteShortcutOptions, useCommandPaletteShortcut, useToast };