@vesture/react 0.3.0 → 0.3.2
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/chunk-QKEAWZP5.js +15 -0
- package/dist/chunk-QKEAWZP5.js.map +1 -0
- package/dist/index.css +307 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +47 -5
- package/dist/index.js +645 -16
- package/dist/index.js.map +1 -1
- package/dist/theme-hooks.css +82 -0
- package/dist/theme-hooks.css.map +1 -0
- package/dist/theme-hooks.d.ts +7 -0
- package/dist/theme-hooks.js +13 -0
- package/dist/theme-hooks.js.map +1 -0
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes, LabelHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes, ReactNode, HTMLAttributes, ReactElement, MutableRefObject, AnchorHTMLAttributes, MouseEvent, ForwardedRef, CSSProperties } from 'react';
|
|
3
|
+
import { variant as variant$1, elevation } from './theme-hooks.js';
|
|
3
4
|
import { Placement } from '@floating-ui/react';
|
|
4
5
|
export { defaultThemeClass, defaultThemeVars, vars } from '@vesture/tokens';
|
|
5
6
|
|
|
6
|
-
declare const variant$1: Record<"primary" | "secondary" | "ghost", string>;
|
|
7
|
-
|
|
8
7
|
type ButtonVariant = keyof typeof variant$1;
|
|
9
8
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
10
9
|
variant?: ButtonVariant;
|
|
@@ -48,8 +47,6 @@ interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"
|
|
|
48
47
|
}
|
|
49
48
|
declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLInputElement>>;
|
|
50
49
|
|
|
51
|
-
declare const elevation: Record<"overlay" | "flat" | "raised", string>;
|
|
52
|
-
|
|
53
50
|
type CardElevation = keyof typeof elevation;
|
|
54
51
|
interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
55
52
|
elevation?: CardElevation;
|
|
@@ -770,4 +767,49 @@ interface InteractivePieChartProps extends PieChartBaseProps {
|
|
|
770
767
|
*/
|
|
771
768
|
declare function InteractivePieChart({ data, innerRadius, showLabels, height }: InteractivePieChartProps): ReactElement;
|
|
772
769
|
|
|
773
|
-
|
|
770
|
+
interface SchedulerEvent {
|
|
771
|
+
id: string;
|
|
772
|
+
title: string;
|
|
773
|
+
start: Date;
|
|
774
|
+
end: Date;
|
|
775
|
+
allDay?: boolean;
|
|
776
|
+
color?: string;
|
|
777
|
+
data?: unknown;
|
|
778
|
+
}
|
|
779
|
+
interface SchedulerProps {
|
|
780
|
+
events: SchedulerEvent[];
|
|
781
|
+
/** Any date within the week being displayed. */
|
|
782
|
+
date: Date;
|
|
783
|
+
/** Fired by the prev/next/today week-navigation controls. */
|
|
784
|
+
onDateChange?: (date: Date) => void;
|
|
785
|
+
weekStartsOn?: 0 | 1;
|
|
786
|
+
/** Visible time range, in hours (0-24). */
|
|
787
|
+
startHour?: number;
|
|
788
|
+
endHour?: number;
|
|
789
|
+
/** Gridline density, in minutes. */
|
|
790
|
+
slotDuration?: number;
|
|
791
|
+
onEventClick?: (event: SchedulerEvent) => void;
|
|
792
|
+
/**
|
|
793
|
+
* Fired on drag-move drop or resize-release. Scheduler never mutates `events` itself —
|
|
794
|
+
* same controlled philosophy as the rest of the library — the consumer decides whether to
|
|
795
|
+
* accept the change and re-render with updated data.
|
|
796
|
+
*/
|
|
797
|
+
onEventChange?: (event: SchedulerEvent, newStart: Date, newEnd: Date) => void;
|
|
798
|
+
/**
|
|
799
|
+
* Enables drag-to-move, drag-to-resize, and their keyboard equivalents (arrow keys to
|
|
800
|
+
* move, Shift+arrow to resize) on timed events. All-day events are never draggable.
|
|
801
|
+
* Defaults to false — existing consumers see zero behavior change.
|
|
802
|
+
*/
|
|
803
|
+
editable?: boolean;
|
|
804
|
+
/** Minimum resize duration, in minutes. Defaults to `slotDuration`. */
|
|
805
|
+
minEventDuration?: number;
|
|
806
|
+
/** Controlled highlight. */
|
|
807
|
+
selectedEventId?: string;
|
|
808
|
+
/** BCP 47 locale used for day/time label formatting via Intl.DateTimeFormat. */
|
|
809
|
+
locale?: string;
|
|
810
|
+
className?: string;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
declare function Scheduler({ events, date, onDateChange, weekStartsOn, startHour, endHour, slotDuration, onEventClick, onEventChange, editable, minEventDuration, selectedEventId, locale, className, }: SchedulerProps): ReactElement;
|
|
814
|
+
|
|
815
|
+
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 };
|