@epilot/volt-ui 1.1.33 → 1.2.0

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/README.md CHANGED
@@ -76,12 +76,12 @@ Add to your AI tool's MCP configuration:
76
76
 
77
77
  ### Configuration Locations
78
78
 
79
- | Tool | Config File |
80
- |------|-------------|
79
+ | Tool | Config File |
80
+ | -------------- | ------------------------------------------------------------------------- |
81
81
  | Claude Desktop | `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) |
82
- | Claude Code | `.vscode/mcp.json` or `~/.claude/settings.json` |
83
- | Cursor | `.cursor/mcp.json` |
84
- | GitHub Copilot | VS Code `settings.json` under `github.copilot.chat.mcpServers` |
82
+ | Claude Code | `.vscode/mcp.json` or `~/.claude/settings.json` |
83
+ | Cursor | `.cursor/mcp.json` |
84
+ | GitHub Copilot | VS Code `settings.json` under `github.copilot.chat.mcpServers` |
85
85
 
86
86
  ### Available Tools
87
87
 
@@ -0,0 +1,2 @@
1
+ export { formatDateTimeDisplay, parseDateTimeInput, isDateInRange, normalizeRange, } from "../date-time-picker/date-time-picker-utils";
2
+ export type { DateTimePickerLocale, DateRange, } from "../date-time-picker/date-time-picker-utils";
@@ -0,0 +1,28 @@
1
+ import type { ReactNode } from "react";
2
+ import { RangeCalendar } from "./range-calendar";
3
+ import type { RangeCalendarProps } from "./range-calendar";
4
+ import type { DateRange, DateTimePickerLocale } from "./date-range-picker-utils";
5
+ type DateRangePickerProps = {
6
+ value: DateRange;
7
+ onChange: (range: DateRange) => void;
8
+ onBlur?: () => void;
9
+ disabled?: boolean;
10
+ disablePast?: boolean;
11
+ label?: string;
12
+ error?: string;
13
+ startPlaceholder?: string;
14
+ endPlaceholder?: string;
15
+ format?: string;
16
+ locale?: DateTimePickerLocale;
17
+ className?: string;
18
+ keyboardIcon?: ReactNode;
19
+ inputAriaLabel?: string;
20
+ openPickerAriaLabel?: string;
21
+ previousMonthLabel?: string;
22
+ nextMonthLabel?: string;
23
+ testId?: string;
24
+ currentTimeInTimezone?: Date;
25
+ };
26
+ declare const DateRangePicker: ({ value, onChange, onBlur, disabled, disablePast, label, error, startPlaceholder, endPlaceholder, format, locale, className, keyboardIcon, inputAriaLabel, openPickerAriaLabel, previousMonthLabel, nextMonthLabel, testId, currentTimeInTimezone, }: DateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
27
+ export { DateRangePicker, RangeCalendar };
28
+ export type { DateRangePickerProps, RangeCalendarProps, DateRange, DateTimePickerLocale, };
@@ -0,0 +1,14 @@
1
+ import type { DateRange, DateTimePickerLocale } from "./date-range-picker-utils";
2
+ type RangeCalendarProps = {
3
+ value: DateRange;
4
+ onChange: (range: DateRange) => void;
5
+ onRangeComplete?: (range: DateRange) => void;
6
+ disablePast?: boolean;
7
+ locale?: DateTimePickerLocale;
8
+ previousMonthLabel?: string;
9
+ nextMonthLabel?: string;
10
+ currentTimeInTimezone?: Date;
11
+ };
12
+ declare const RangeCalendar: ({ value, onChange, onRangeComplete, disablePast, locale, previousMonthLabel, nextMonthLabel, currentTimeInTimezone, }: RangeCalendarProps) => import("react/jsx-runtime").JSX.Element;
13
+ export { RangeCalendar };
14
+ export type { RangeCalendarProps };
@@ -0,0 +1,25 @@
1
+ import type { DateTimePickerLocale } from "./date-time-picker-utils";
2
+ type CalendarProps = {
3
+ value: Date;
4
+ onChange: (date: Date) => void;
5
+ onDateSelect?: () => void;
6
+ disablePast?: boolean;
7
+ locale?: DateTimePickerLocale;
8
+ previousMonthLabel?: string;
9
+ nextMonthLabel?: string;
10
+ showTodayButton?: boolean;
11
+ todayLabel?: string;
12
+ currentTimeInTimezone?: Date;
13
+ rangeStart?: Date | null;
14
+ rangeEnd?: Date | null;
15
+ hoveredDate?: Date | null;
16
+ onDayHover?: (day: Date | null) => void;
17
+ onDayClick?: (day: Date) => void;
18
+ showPreviousButton?: boolean;
19
+ showNextButton?: boolean;
20
+ controlledViewDate?: Date;
21
+ onViewDateChange?: (date: Date) => void;
22
+ };
23
+ declare const Calendar: ({ value, onChange, onDateSelect, disablePast, locale, previousMonthLabel, nextMonthLabel, showTodayButton, todayLabel, currentTimeInTimezone, rangeStart, rangeEnd, hoveredDate, onDayHover, onDayClick, showPreviousButton, showNextButton, controlledViewDate, onViewDateChange, }: CalendarProps) => import("react/jsx-runtime").JSX.Element;
24
+ export { Calendar };
25
+ export type { CalendarProps };
@@ -0,0 +1,35 @@
1
+ export type DateTimePickerLocale = "en" | "de" | "fr";
2
+ declare const getLocale: (locale?: DateTimePickerLocale) => import("date-fns").Locale;
3
+ declare const getWeekDays: (locale?: DateTimePickerLocale) => string[];
4
+ declare const getCalendarDays: (date: Date, locale?: DateTimePickerLocale) => import("date-fns").EachDayOfIntervalResult<{
5
+ start: Date;
6
+ end: Date;
7
+ }, undefined>;
8
+ declare const formatMonthYear: (date: Date, locale?: DateTimePickerLocale) => string;
9
+ declare const formatMonth: (date: Date, locale?: DateTimePickerLocale) => string;
10
+ declare const formatDateTimeDisplay: (date: Date, formatStr?: string, locale?: DateTimePickerLocale) => string;
11
+ declare const parseDateTimeInput: (input: string, formatStr?: string, locale?: DateTimePickerLocale) => Date | null;
12
+ declare const isDateDisabled: (date: Date, disablePast?: boolean, now?: Date) => boolean;
13
+ declare const isDayInCurrentMonth: (day: Date, currentMonth: Date) => boolean;
14
+ declare const isDaySelected: (day: Date, selectedDate: Date) => boolean;
15
+ declare const isDayToday: (day: Date) => boolean;
16
+ declare const goToPreviousMonth: (date: Date) => Date;
17
+ declare const goToNextMonth: (date: Date) => Date;
18
+ declare const updateTime: (date: Date, hours: number, minutes: number) => Date;
19
+ declare const getHours: (date: Date) => number;
20
+ declare const getMinutes: (date: Date) => number;
21
+ declare const padNumber: (num: number) => string;
22
+ declare const getMonthNames: (locale?: DateTimePickerLocale) => string[];
23
+ declare const getDecadeStart: (year: number) => number;
24
+ declare const adjustTimeIfPast: (date: Date, disablePast?: boolean, currentTimeInTimezone?: Date) => Date;
25
+ type DateRange = {
26
+ start: Date | null;
27
+ end: Date | null;
28
+ };
29
+ declare const isDateInRange: (day: Date, start: Date, end: Date) => boolean;
30
+ declare const normalizeRange: (start: Date, end: Date) => {
31
+ start: Date;
32
+ end: Date;
33
+ };
34
+ export { getLocale, getWeekDays, getCalendarDays, formatMonthYear, formatMonth, formatDateTimeDisplay, parseDateTimeInput, isDateDisabled, isDayInCurrentMonth, isDaySelected, isDayToday, goToPreviousMonth, goToNextMonth, updateTime, getHours, getMinutes, padNumber, getMonthNames, getDecadeStart, adjustTimeIfPast, isDateInRange, normalizeRange, };
35
+ export type { DateRange };
@@ -0,0 +1,36 @@
1
+ import type { ReactNode } from "react";
2
+ import { Calendar } from "./calendar";
3
+ import type { CalendarProps } from "./calendar";
4
+ import { TimePicker } from "./time-picker";
5
+ import type { TimePickerProps } from "./time-picker";
6
+ import type { DateTimePickerLocale } from "./date-time-picker-utils";
7
+ type DateTimePickerProps = {
8
+ value: Date;
9
+ onChange: (date: Date) => void;
10
+ onBlur?: () => void;
11
+ disabled?: boolean;
12
+ disablePast?: boolean;
13
+ label?: string;
14
+ error?: string;
15
+ placeholder?: string;
16
+ format?: string;
17
+ locale?: DateTimePickerLocale;
18
+ className?: string;
19
+ keyboardIcon?: ReactNode;
20
+ okLabel?: string;
21
+ cancelLabel?: string;
22
+ inputAriaLabel?: string;
23
+ openPickerAriaLabel?: string;
24
+ previousMonthLabel?: string;
25
+ nextMonthLabel?: string;
26
+ hoursLabel?: string;
27
+ minutesLabel?: string;
28
+ showTodayButton?: boolean;
29
+ todayLabel?: string;
30
+ testId?: string;
31
+ currentTimeInTimezone?: Date;
32
+ timePickerPosition?: "bottom" | "side";
33
+ };
34
+ declare const DateTimePicker: ({ value, onChange, onBlur, disabled, disablePast, label, error, placeholder, format, locale, className, keyboardIcon, okLabel, cancelLabel, inputAriaLabel, openPickerAriaLabel, previousMonthLabel, nextMonthLabel, hoursLabel, minutesLabel, showTodayButton, todayLabel, testId, currentTimeInTimezone, timePickerPosition, }: DateTimePickerProps) => import("react/jsx-runtime").JSX.Element;
35
+ export { DateTimePicker, Calendar, TimePicker };
36
+ export type { DateTimePickerProps, CalendarProps, TimePickerProps, DateTimePickerLocale, };
@@ -0,0 +1,15 @@
1
+ import type { DateTimePickerLocale } from "./date-time-picker-utils";
2
+ type TimePickerProps = {
3
+ value: Date;
4
+ onChange: (date: Date) => void;
5
+ onTimeSelect?: () => void;
6
+ disablePast?: boolean;
7
+ locale?: DateTimePickerLocale;
8
+ hoursLabel?: string;
9
+ minutesLabel?: string;
10
+ currentTimeInTimezone?: Date;
11
+ fillHeight?: boolean;
12
+ };
13
+ declare const TimePicker: import("react").MemoExoticComponent<({ value, onChange, onTimeSelect, disablePast, hoursLabel, minutesLabel, currentTimeInTimezone, fillHeight, }: TimePickerProps) => import("react/jsx-runtime").JSX.Element>;
14
+ export { TimePicker };
15
+ export type { TimePickerProps };