@underverse-ui/underverse 1.0.10 → 1.0.12
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.cjs +2815 -1788
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -5
- package/dist/index.d.ts +88 -5
- package/dist/index.js +2943 -1918
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -737,7 +737,7 @@ interface DatePickerProps {
|
|
|
737
737
|
placeholder?: string;
|
|
738
738
|
className?: string;
|
|
739
739
|
disabled?: boolean;
|
|
740
|
-
size?: "sm" | "md";
|
|
740
|
+
size?: "sm" | "md" | "lg";
|
|
741
741
|
label?: string;
|
|
742
742
|
required?: boolean;
|
|
743
743
|
todayLabel?: string;
|
|
@@ -764,7 +764,7 @@ declare const DateRangePicker: React$1.FC<{
|
|
|
764
764
|
/** Maximum selectable date (inclusive). Compared by day in local timezone. */
|
|
765
765
|
maxDate?: Date;
|
|
766
766
|
/** Size variant */
|
|
767
|
-
size?: "sm" | "md";
|
|
767
|
+
size?: "sm" | "md" | "lg";
|
|
768
768
|
}>;
|
|
769
769
|
|
|
770
770
|
interface DateTimePickerProps {
|
|
@@ -784,6 +784,8 @@ interface DateTimePickerProps {
|
|
|
784
784
|
doneLabel?: string;
|
|
785
785
|
/** Label for the "Clear" button */
|
|
786
786
|
clearLabel?: string;
|
|
787
|
+
/** Size variant */
|
|
788
|
+
size?: "sm" | "md" | "lg";
|
|
787
789
|
}
|
|
788
790
|
declare const DateTimePicker: React$1.FC<DateTimePickerProps>;
|
|
789
791
|
|
|
@@ -843,6 +845,75 @@ interface TimePickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "
|
|
|
843
845
|
}
|
|
844
846
|
declare function TimePicker({ value, defaultValue, onChange, placeholder, disabled, size, label, required, format, includeSeconds, minuteStep, secondStep, clearable, variant, matchTriggerWidth, showNow, showPresets, allowManualInput, customPresets, min, max, minTime, maxTime, disabledTimes, error, success, helperText, animate, onOpen, onClose, className, ...rest }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
845
847
|
|
|
848
|
+
type MonthYearPickerVariant = "default" | "compact" | "inline";
|
|
849
|
+
type PickerSize = "sm" | "md" | "lg";
|
|
850
|
+
interface MonthYearPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange" | "value" | "defaultValue"> {
|
|
851
|
+
/** Current value as Date or {month, year} */
|
|
852
|
+
value?: Date | {
|
|
853
|
+
month: number;
|
|
854
|
+
year: number;
|
|
855
|
+
};
|
|
856
|
+
/** Default value */
|
|
857
|
+
defaultValue?: Date | {
|
|
858
|
+
month: number;
|
|
859
|
+
year: number;
|
|
860
|
+
};
|
|
861
|
+
/** Change handler */
|
|
862
|
+
onChange?: (value: {
|
|
863
|
+
month: number;
|
|
864
|
+
year: number;
|
|
865
|
+
date: Date;
|
|
866
|
+
} | undefined) => void;
|
|
867
|
+
/** Placeholder text */
|
|
868
|
+
placeholder?: string;
|
|
869
|
+
/** Disabled state */
|
|
870
|
+
disabled?: boolean;
|
|
871
|
+
/** Size variant */
|
|
872
|
+
size?: PickerSize;
|
|
873
|
+
/** Label text */
|
|
874
|
+
label?: string;
|
|
875
|
+
/** Required field */
|
|
876
|
+
required?: boolean;
|
|
877
|
+
/** Show clear button */
|
|
878
|
+
clearable?: boolean;
|
|
879
|
+
/** Visual variant */
|
|
880
|
+
variant?: MonthYearPickerVariant;
|
|
881
|
+
/** Match dropdown width to trigger */
|
|
882
|
+
matchTriggerWidth?: boolean;
|
|
883
|
+
/** Custom month names */
|
|
884
|
+
monthNames?: string[];
|
|
885
|
+
/** Custom short month names for display */
|
|
886
|
+
shortMonthNames?: string[];
|
|
887
|
+
/** Minimum year in range */
|
|
888
|
+
minYear?: number;
|
|
889
|
+
/** Maximum year in range */
|
|
890
|
+
maxYear?: number;
|
|
891
|
+
/** Minimum selectable date */
|
|
892
|
+
minDate?: Date;
|
|
893
|
+
/** Maximum selectable date */
|
|
894
|
+
maxDate?: Date;
|
|
895
|
+
/** Show validation error */
|
|
896
|
+
error?: string;
|
|
897
|
+
/** Success state */
|
|
898
|
+
success?: boolean;
|
|
899
|
+
/** Helper text */
|
|
900
|
+
helperText?: string;
|
|
901
|
+
/** Enable smooth animations */
|
|
902
|
+
animate?: boolean;
|
|
903
|
+
/** Callback when popover opens */
|
|
904
|
+
onOpen?: () => void;
|
|
905
|
+
/** Callback when popover closes */
|
|
906
|
+
onClose?: () => void;
|
|
907
|
+
/** Show "This Month" button */
|
|
908
|
+
showThisMonth?: boolean;
|
|
909
|
+
/** Column labels */
|
|
910
|
+
columnLabels?: {
|
|
911
|
+
month?: string;
|
|
912
|
+
year?: string;
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
declare function MonthYearPicker({ value, defaultValue, onChange, placeholder, disabled, size, label, required, clearable, variant, matchTriggerWidth, monthNames, shortMonthNames, minYear, maxYear, minDate, maxDate, error, success, helperText, animate, onOpen, onClose, showThisMonth, columnLabels, className, ...rest }: MonthYearPickerProps): react_jsx_runtime.JSX.Element;
|
|
916
|
+
|
|
846
917
|
type SelectMode = "single" | "multiple" | "range";
|
|
847
918
|
type Variant$3 = "default" | "bordered" | "card" | "minimal";
|
|
848
919
|
type DisplayMode = "month" | "week" | "year";
|
|
@@ -933,6 +1004,12 @@ interface CalendarProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "de
|
|
|
933
1004
|
maxEventsPerDay?: number;
|
|
934
1005
|
/** Show the event count badge in day cell header (events cell mode). Default: true */
|
|
935
1006
|
showEventCount?: boolean;
|
|
1007
|
+
/** Show month/year picker dropdowns in header (events cell mode). Default: false */
|
|
1008
|
+
showMonthYearPicker?: boolean;
|
|
1009
|
+
/** Month names for month picker (default: English) */
|
|
1010
|
+
monthNames?: string[];
|
|
1011
|
+
/** Year range for year picker [startYear, endYear] */
|
|
1012
|
+
yearRange?: [number, number];
|
|
936
1013
|
/** Fired when clicking an event in a day cell (events cell mode) */
|
|
937
1014
|
onEventClick?: (event: CalendarEvent, date: Date) => void;
|
|
938
1015
|
/** Customize event rendering (events cell mode) */
|
|
@@ -959,7 +1036,7 @@ interface CalendarProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "de
|
|
|
959
1036
|
/** Controlled selected event handler */
|
|
960
1037
|
onSelectedEventIdChange?: (id: string | number | undefined) => void;
|
|
961
1038
|
}
|
|
962
|
-
declare function Calendar({ month, defaultMonth, onMonthChange, value, defaultValue, onSelect, selectMode, weekStartsOn, showWeekdays, showHeader, size, variant, events, renderDay, labels, className, display, months, showToday, showClear, minDate, maxDate, disabledDates, dense, animate, showEventBadges, highlightWeekends, weekendTextColor, highlightHolidays, holidayTextColor, holidays, cellMode, maxEventsPerDay, showEventCount, onEventClick, renderEvent, enableEventSheet, eventSheetSize, renderEventSheet, selectedEventId, eventSheetOpen, onEventSheetOpenChange, onSelectedEventIdChange, ...rest }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
1039
|
+
declare function Calendar({ month, defaultMonth, onMonthChange, value, defaultValue, onSelect, selectMode, weekStartsOn, showWeekdays, showHeader, size, variant, events, renderDay, labels, className, display, months, showToday, showClear, minDate, maxDate, disabledDates, dense, animate, showEventBadges, highlightWeekends, weekendTextColor, highlightHolidays, holidayTextColor, holidays, cellMode, maxEventsPerDay, showEventCount, showMonthYearPicker, monthNames, yearRange, onEventClick, renderEvent, enableEventSheet, eventSheetSize, renderEventSheet, selectedEventId, eventSheetOpen, onEventSheetOpenChange, onSelectedEventIdChange, ...rest }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
963
1040
|
|
|
964
1041
|
type CalendarTimelineView = "month" | "week" | "day" | "sprint";
|
|
965
1042
|
type CalendarTimelineDayRangeMode = "full" | "work";
|
|
@@ -1115,7 +1192,13 @@ interface CalendarTimelineProps<TResourceMeta = unknown, TEventMeta = unknown> e
|
|
|
1115
1192
|
* When set, `view`/`defaultView` are ignored.
|
|
1116
1193
|
*/
|
|
1117
1194
|
onlyView?: CalendarTimelineView;
|
|
1118
|
-
|
|
1195
|
+
/**
|
|
1196
|
+
* Active view (controlled) or allowed views list.
|
|
1197
|
+
* - string: controls the current view
|
|
1198
|
+
* - array: restricts which views are shown; the active view falls back to
|
|
1199
|
+
* `defaultView` (if included) or the first entry.
|
|
1200
|
+
*/
|
|
1201
|
+
view?: CalendarTimelineView | CalendarTimelineView[];
|
|
1119
1202
|
defaultView?: CalendarTimelineView;
|
|
1120
1203
|
onViewChange?: (view: CalendarTimelineView) => void;
|
|
1121
1204
|
/**
|
|
@@ -3443,4 +3526,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
3443
3526
|
};
|
|
3444
3527
|
};
|
|
3445
3528
|
|
|
3446
|
-
export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, CalendarTimeline, type CalendarTimelineDateInput, type CalendarTimelineDayRangeMode, type CalendarTimelineEvent, type CalendarTimelineFormatters, type CalendarTimelineGroup, type CalendarTimelineInteractions, type CalendarTimelineLabels, type CalendarTimelineProps, type CalendarTimelineResource, type CalendarTimelineSize, type CalendarTimelineView, type CalendarTimelineVirtualization, Card, Carousel, CategoryTreeSelect, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FileUpload, type FileUploadProps, FloatingContacts, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, NumberInput, OverlayControls, PageLoading, Pagination, type PaginationProps, PasswordInput, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, SearchInput, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UEditor, type UEditorProps, type UEditorVariant, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, type UploadedFile, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useFormField, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
|
|
3529
|
+
export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, CalendarTimeline, type CalendarTimelineDateInput, type CalendarTimelineDayRangeMode, type CalendarTimelineEvent, type CalendarTimelineFormatters, type CalendarTimelineGroup, type CalendarTimelineInteractions, type CalendarTimelineLabels, type CalendarTimelineProps, type CalendarTimelineResource, type CalendarTimelineSize, type CalendarTimelineView, type CalendarTimelineVirtualization, Card, Carousel, CategoryTreeSelect, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FileUpload, type FileUploadProps, FloatingContacts, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MonthYearPicker, MonthYearPicker as MonthYearPickerBase, type MonthYearPickerProps, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, NumberInput, OverlayControls, PageLoading, Pagination, type PaginationProps, PasswordInput, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, SearchInput, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UEditor, type UEditorProps, type UEditorVariant, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, type UploadedFile, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useFormField, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
|
package/dist/index.d.ts
CHANGED
|
@@ -737,7 +737,7 @@ interface DatePickerProps {
|
|
|
737
737
|
placeholder?: string;
|
|
738
738
|
className?: string;
|
|
739
739
|
disabled?: boolean;
|
|
740
|
-
size?: "sm" | "md";
|
|
740
|
+
size?: "sm" | "md" | "lg";
|
|
741
741
|
label?: string;
|
|
742
742
|
required?: boolean;
|
|
743
743
|
todayLabel?: string;
|
|
@@ -764,7 +764,7 @@ declare const DateRangePicker: React$1.FC<{
|
|
|
764
764
|
/** Maximum selectable date (inclusive). Compared by day in local timezone. */
|
|
765
765
|
maxDate?: Date;
|
|
766
766
|
/** Size variant */
|
|
767
|
-
size?: "sm" | "md";
|
|
767
|
+
size?: "sm" | "md" | "lg";
|
|
768
768
|
}>;
|
|
769
769
|
|
|
770
770
|
interface DateTimePickerProps {
|
|
@@ -784,6 +784,8 @@ interface DateTimePickerProps {
|
|
|
784
784
|
doneLabel?: string;
|
|
785
785
|
/** Label for the "Clear" button */
|
|
786
786
|
clearLabel?: string;
|
|
787
|
+
/** Size variant */
|
|
788
|
+
size?: "sm" | "md" | "lg";
|
|
787
789
|
}
|
|
788
790
|
declare const DateTimePicker: React$1.FC<DateTimePickerProps>;
|
|
789
791
|
|
|
@@ -843,6 +845,75 @@ interface TimePickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "
|
|
|
843
845
|
}
|
|
844
846
|
declare function TimePicker({ value, defaultValue, onChange, placeholder, disabled, size, label, required, format, includeSeconds, minuteStep, secondStep, clearable, variant, matchTriggerWidth, showNow, showPresets, allowManualInput, customPresets, min, max, minTime, maxTime, disabledTimes, error, success, helperText, animate, onOpen, onClose, className, ...rest }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
845
847
|
|
|
848
|
+
type MonthYearPickerVariant = "default" | "compact" | "inline";
|
|
849
|
+
type PickerSize = "sm" | "md" | "lg";
|
|
850
|
+
interface MonthYearPickerProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange" | "value" | "defaultValue"> {
|
|
851
|
+
/** Current value as Date or {month, year} */
|
|
852
|
+
value?: Date | {
|
|
853
|
+
month: number;
|
|
854
|
+
year: number;
|
|
855
|
+
};
|
|
856
|
+
/** Default value */
|
|
857
|
+
defaultValue?: Date | {
|
|
858
|
+
month: number;
|
|
859
|
+
year: number;
|
|
860
|
+
};
|
|
861
|
+
/** Change handler */
|
|
862
|
+
onChange?: (value: {
|
|
863
|
+
month: number;
|
|
864
|
+
year: number;
|
|
865
|
+
date: Date;
|
|
866
|
+
} | undefined) => void;
|
|
867
|
+
/** Placeholder text */
|
|
868
|
+
placeholder?: string;
|
|
869
|
+
/** Disabled state */
|
|
870
|
+
disabled?: boolean;
|
|
871
|
+
/** Size variant */
|
|
872
|
+
size?: PickerSize;
|
|
873
|
+
/** Label text */
|
|
874
|
+
label?: string;
|
|
875
|
+
/** Required field */
|
|
876
|
+
required?: boolean;
|
|
877
|
+
/** Show clear button */
|
|
878
|
+
clearable?: boolean;
|
|
879
|
+
/** Visual variant */
|
|
880
|
+
variant?: MonthYearPickerVariant;
|
|
881
|
+
/** Match dropdown width to trigger */
|
|
882
|
+
matchTriggerWidth?: boolean;
|
|
883
|
+
/** Custom month names */
|
|
884
|
+
monthNames?: string[];
|
|
885
|
+
/** Custom short month names for display */
|
|
886
|
+
shortMonthNames?: string[];
|
|
887
|
+
/** Minimum year in range */
|
|
888
|
+
minYear?: number;
|
|
889
|
+
/** Maximum year in range */
|
|
890
|
+
maxYear?: number;
|
|
891
|
+
/** Minimum selectable date */
|
|
892
|
+
minDate?: Date;
|
|
893
|
+
/** Maximum selectable date */
|
|
894
|
+
maxDate?: Date;
|
|
895
|
+
/** Show validation error */
|
|
896
|
+
error?: string;
|
|
897
|
+
/** Success state */
|
|
898
|
+
success?: boolean;
|
|
899
|
+
/** Helper text */
|
|
900
|
+
helperText?: string;
|
|
901
|
+
/** Enable smooth animations */
|
|
902
|
+
animate?: boolean;
|
|
903
|
+
/** Callback when popover opens */
|
|
904
|
+
onOpen?: () => void;
|
|
905
|
+
/** Callback when popover closes */
|
|
906
|
+
onClose?: () => void;
|
|
907
|
+
/** Show "This Month" button */
|
|
908
|
+
showThisMonth?: boolean;
|
|
909
|
+
/** Column labels */
|
|
910
|
+
columnLabels?: {
|
|
911
|
+
month?: string;
|
|
912
|
+
year?: string;
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
declare function MonthYearPicker({ value, defaultValue, onChange, placeholder, disabled, size, label, required, clearable, variant, matchTriggerWidth, monthNames, shortMonthNames, minYear, maxYear, minDate, maxDate, error, success, helperText, animate, onOpen, onClose, showThisMonth, columnLabels, className, ...rest }: MonthYearPickerProps): react_jsx_runtime.JSX.Element;
|
|
916
|
+
|
|
846
917
|
type SelectMode = "single" | "multiple" | "range";
|
|
847
918
|
type Variant$3 = "default" | "bordered" | "card" | "minimal";
|
|
848
919
|
type DisplayMode = "month" | "week" | "year";
|
|
@@ -933,6 +1004,12 @@ interface CalendarProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "de
|
|
|
933
1004
|
maxEventsPerDay?: number;
|
|
934
1005
|
/** Show the event count badge in day cell header (events cell mode). Default: true */
|
|
935
1006
|
showEventCount?: boolean;
|
|
1007
|
+
/** Show month/year picker dropdowns in header (events cell mode). Default: false */
|
|
1008
|
+
showMonthYearPicker?: boolean;
|
|
1009
|
+
/** Month names for month picker (default: English) */
|
|
1010
|
+
monthNames?: string[];
|
|
1011
|
+
/** Year range for year picker [startYear, endYear] */
|
|
1012
|
+
yearRange?: [number, number];
|
|
936
1013
|
/** Fired when clicking an event in a day cell (events cell mode) */
|
|
937
1014
|
onEventClick?: (event: CalendarEvent, date: Date) => void;
|
|
938
1015
|
/** Customize event rendering (events cell mode) */
|
|
@@ -959,7 +1036,7 @@ interface CalendarProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "de
|
|
|
959
1036
|
/** Controlled selected event handler */
|
|
960
1037
|
onSelectedEventIdChange?: (id: string | number | undefined) => void;
|
|
961
1038
|
}
|
|
962
|
-
declare function Calendar({ month, defaultMonth, onMonthChange, value, defaultValue, onSelect, selectMode, weekStartsOn, showWeekdays, showHeader, size, variant, events, renderDay, labels, className, display, months, showToday, showClear, minDate, maxDate, disabledDates, dense, animate, showEventBadges, highlightWeekends, weekendTextColor, highlightHolidays, holidayTextColor, holidays, cellMode, maxEventsPerDay, showEventCount, onEventClick, renderEvent, enableEventSheet, eventSheetSize, renderEventSheet, selectedEventId, eventSheetOpen, onEventSheetOpenChange, onSelectedEventIdChange, ...rest }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
1039
|
+
declare function Calendar({ month, defaultMonth, onMonthChange, value, defaultValue, onSelect, selectMode, weekStartsOn, showWeekdays, showHeader, size, variant, events, renderDay, labels, className, display, months, showToday, showClear, minDate, maxDate, disabledDates, dense, animate, showEventBadges, highlightWeekends, weekendTextColor, highlightHolidays, holidayTextColor, holidays, cellMode, maxEventsPerDay, showEventCount, showMonthYearPicker, monthNames, yearRange, onEventClick, renderEvent, enableEventSheet, eventSheetSize, renderEventSheet, selectedEventId, eventSheetOpen, onEventSheetOpenChange, onSelectedEventIdChange, ...rest }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
963
1040
|
|
|
964
1041
|
type CalendarTimelineView = "month" | "week" | "day" | "sprint";
|
|
965
1042
|
type CalendarTimelineDayRangeMode = "full" | "work";
|
|
@@ -1115,7 +1192,13 @@ interface CalendarTimelineProps<TResourceMeta = unknown, TEventMeta = unknown> e
|
|
|
1115
1192
|
* When set, `view`/`defaultView` are ignored.
|
|
1116
1193
|
*/
|
|
1117
1194
|
onlyView?: CalendarTimelineView;
|
|
1118
|
-
|
|
1195
|
+
/**
|
|
1196
|
+
* Active view (controlled) or allowed views list.
|
|
1197
|
+
* - string: controls the current view
|
|
1198
|
+
* - array: restricts which views are shown; the active view falls back to
|
|
1199
|
+
* `defaultView` (if included) or the first entry.
|
|
1200
|
+
*/
|
|
1201
|
+
view?: CalendarTimelineView | CalendarTimelineView[];
|
|
1119
1202
|
defaultView?: CalendarTimelineView;
|
|
1120
1203
|
onViewChange?: (view: CalendarTimelineView) => void;
|
|
1121
1204
|
/**
|
|
@@ -3443,4 +3526,4 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
3443
3526
|
};
|
|
3444
3527
|
};
|
|
3445
3528
|
|
|
3446
|
-
export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, CalendarTimeline, type CalendarTimelineDateInput, type CalendarTimelineDayRangeMode, type CalendarTimelineEvent, type CalendarTimelineFormatters, type CalendarTimelineGroup, type CalendarTimelineInteractions, type CalendarTimelineLabels, type CalendarTimelineProps, type CalendarTimelineResource, type CalendarTimelineSize, type CalendarTimelineView, type CalendarTimelineVirtualization, Card, Carousel, CategoryTreeSelect, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FileUpload, type FileUploadProps, FloatingContacts, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, NumberInput, OverlayControls, PageLoading, Pagination, type PaginationProps, PasswordInput, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, SearchInput, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UEditor, type UEditorProps, type UEditorVariant, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, type UploadedFile, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useFormField, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
|
|
3529
|
+
export { AccessDenied, Alert, AreaChart, type AreaChartDataPoint, type AreaChartProps, type AreaChartSeries, Avatar, Badge, Badge as BadgeBase, BarChart, type BarChartDataPoint, type BarChartProps, BatteryProgress, BottomSheet, Breadcrumb, Button, ButtonLoading, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, CalendarTimeline, type CalendarTimelineDateInput, type CalendarTimelineDayRangeMode, type CalendarTimelineEvent, type CalendarTimelineFormatters, type CalendarTimelineGroup, type CalendarTimelineInteractions, type CalendarTimelineLabels, type CalendarTimelineProps, type CalendarTimelineResource, type CalendarTimelineSize, type CalendarTimelineView, type CalendarTimelineVirtualization, Card, Carousel, CategoryTreeSelect, Checkbox, type CheckboxProps, CircularProgress, ClientOnly, ColorPicker, type ColorPickerProps, Combobox, type ComboboxProps, CompactPagination, type CompactPaginationProps, DataTable, type DataTableColumn, type DataTableQuery, DatePicker, type DatePickerProps, DateRangePicker, DateTimePicker, type DateTimePickerProps, date as DateUtils, Drawer, DropdownMenu, DropdownMenuItem, DropdownMenuSeparator, FallingIcons, FileUpload, type FileUploadProps, FloatingContacts, ForceInternalTranslationsProvider, Form, FormActions, FormCheckbox, FormControl, FormDescription, FormField, FormInput, FormItem, FormLabel, FormMessage, FormSubmitButton, GaugeChart, type GaugeChartProps, GlobalLoading, GradientBadge, Grid, GridItem, type GridItemProps, type GridProps, ImageUpload, InlineLoading, Input, type InputProps, InteractiveBadge, Label, type LanguageOption, LanguageSwitcherHeadless as LanguageSwitcher, LanguageSwitcherHeadless, type LanguageSwitcherHeadlessProps, type LanguageSwitcherHeadlessProps as LanguageSwitcherProps, LineChart, type LineChartDataPoint, type LineChartProps, List, ListItem, LoadingBar, LoadingDots, LoadingProgress, LoadingSpinner, type Locale$1 as Locale, MiniProgress, Modal, MonthYearPicker, MonthYearPicker as MonthYearPickerBase, type MonthYearPickerProps, MultiCombobox, type MultiComboboxProps, NotificationBadge, NotificationModal, NumberInput, OverlayControls, PageLoading, Pagination, type PaginationProps, PasswordInput, PieChart, type PieChartDataPoint, type PieChartProps, PillTabs, Popover, Progress, PulseBadge, RadarChart, type RadarChartDataPoint, type RadarChartProps, type RadarChartSeries, RadioGroup, RadioGroupItem, SIZE_STYLES_BTN, ScrollArea, SearchInput, Section, SegmentedProgress, SelectDropdown, Sheet, SidebarSheet, SimplePagination, type SimplePaginationProps, SimpleTabs, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonList, SkeletonMessage, SkeletonPost, SkeletonTable, SkeletonText, SlideOver, Slider, SmartImage, type Sorter, Sparkline, type SparklineDataPoint, type SparklineProps, StatusBadge, StepProgress, type SupportedLocale, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TagBadge, TagInput, TagInput as TagInputBase, type TagInputProps, Textarea, type ThemeMode, ThemeToggleHeadless as ThemeToggle, ThemeToggleHeadless, type ThemeToggleHeadlessProps, type ThemeToggleHeadlessProps as ThemeToggleProps, TimePicker, type TimePickerProps, Timeline, TimelineItem, ToastProvider, Tooltip, TranslationProvider, type TranslationProviderProps, type Translations, UEditor, type UEditorProps, type UEditorVariant, type UnderverseLocale, UnderverseProvider, type UnderverseProviderProps, type UploadedFile, VARIANT_STYLES_ALERT, VARIANT_STYLES_BTN, VerticalTabs, Watermark, type WatermarkProps, cn$1 as cn, cn as cnLocal, getAnimationStyles, getUnderverseMessages, injectAnimationStyles, shadcnAnimationStyles, underverseMessages, useFormField, useShadCNAnimations, useSmartLocale, useSmartTranslations, useToast, useTranslations as useUnderverseI18n, useLocale as useUnderverseI18nLocale, useUnderverseLocale, useUnderverseTranslations };
|