@sonamu-kit/react-components 0.3.1 → 0.3.3

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.
@@ -19,9 +19,8 @@ export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, Comma
19
19
  export { CommonModal, commonModalAtom, useCommonModal } from './ui/common-modal';
20
20
  export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from './ui/context-menu';
21
21
  export { DateInput, type DateInputProps } from './ui/date-input';
22
- export { DatePicker, DatePickerWithDropdown } from './ui/date-picker';
23
- export type { DateSelectorValue } from './ui/date-selector-multiple';
24
- export { DateSelectorMultiple } from './ui/date-selector-multiple';
22
+ export { DatePicker, DatePickerWithDropdown, DatePickerWithRange } from './ui/date-picker';
23
+ export type { DatePickerProps, DatePickerWithRangeProps, DateRange } from './ui/date-picker';
25
24
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, } from './ui/dialog';
26
25
  export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, } from './ui/drawer';
27
26
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from './ui/dropdown-menu';
@@ -1,3 +1,5 @@
1
+ import { DateRange } from 'react-day-picker';
2
+ import * as React from "react";
1
3
  interface DatePickerProps {
2
4
  value?: Date;
3
5
  onValueChange?: (date: Date | undefined) => void;
@@ -5,22 +7,20 @@ interface DatePickerProps {
5
7
  disabled?: boolean;
6
8
  className?: string;
7
9
  }
8
- /**
9
- * Date Picker Component
10
- *
11
- * Based on shadcn/ui Date Picker pattern:
12
- * @see https://ui.shadcn.com/docs/components/date-picker
13
- *
14
- * Example usage:
15
- * ```tsx
16
- * const [date, setDate] = useState<Date>()
17
- * <DatePicker value={date} onValueChange={(date) => setDate(date)} />
18
- * ```
19
- */
20
10
  export declare function DatePicker({ value, onValueChange, placeholder, disabled, className, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
21
- /**
22
- * Date Picker with Dropdown Layout
23
- * Useful for selecting dates of birth or past dates
24
- */
25
11
  export declare function DatePickerWithDropdown({ value, onValueChange, placeholder, disabled, className, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
26
- export {};
12
+ interface DatePickerWithRangeProps {
13
+ CalendarIcon: React.ComponentType<{
14
+ className?: string;
15
+ }>;
16
+ value?: DateRange;
17
+ onValueChange?: (value: DateRange | undefined) => void;
18
+ placeholder?: string;
19
+ dateFormat?: string;
20
+ className?: string;
21
+ numberOfMonths?: number;
22
+ maxDate?: Date;
23
+ minDate?: Date;
24
+ }
25
+ export declare function DatePickerWithRange({ CalendarIcon: CalendarIconProp, value, onValueChange, placeholder, dateFormat, className, numberOfMonths, maxDate, minDate, }: DatePickerWithRangeProps): import("react/jsx-runtime").JSX.Element;
26
+ export type { DatePickerProps, DatePickerWithRangeProps, DateRange };