@cleen/ui 0.1.243 → 0.1.245

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
@@ -1474,12 +1474,12 @@ type CalendarBase = Omit<DayPickerProps, 'classNames' | 'styles' | 'mode' | 'dis
1474
1474
  type CalendarSingleProps = CalendarBase & {
1475
1475
  mode?: 'single';
1476
1476
  selected?: Date;
1477
- onSelect?: (value?: Date) => void;
1477
+ onSelect?: (value: Date, triggerValue: Date) => void;
1478
1478
  };
1479
1479
  type CalendarRangeProps = CalendarBase & {
1480
1480
  mode?: 'range';
1481
1481
  selected?: DateRange;
1482
- onSelect?: (value?: DateRange) => void;
1482
+ onSelect?: (value: DateRange, triggerValue: Date) => void;
1483
1483
  };
1484
1484
  type CalendarProps = (CalendarSingleProps | CalendarRangeProps) & {
1485
1485
  disabled?: boolean;
@@ -1529,7 +1529,7 @@ type DropdownProps = Omit<ComponentProps<'div'>, 'title'> & {
1529
1529
  */
1530
1530
  declare const Dropdown: react.ForwardRefExoticComponent<Omit<DropdownProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1531
1531
 
1532
- type CalendarDropdownProps = CalendarProps & {
1532
+ type CalendarDropdownBase = CalendarProps & {
1533
1533
  placeholder?: ReactNode;
1534
1534
  leftIcon?: ReactNode;
1535
1535
  rightIcon?: ReactNode;
@@ -1546,6 +1546,15 @@ type CalendarDropdownProps = CalendarProps & {
1546
1546
  calendar?: ComponentStyles<CalendarProps>;
1547
1547
  };
1548
1548
  };
1549
+ type CalendarDropdownSingleProps = CalendarDropdownBase & {
1550
+ mode?: 'single';
1551
+ onSelectInternal?: (value?: Date | undefined, triggerValue?: Date) => Date | void;
1552
+ };
1553
+ type CalendarDropdownRangeProps = CalendarDropdownBase & {
1554
+ mode?: 'range';
1555
+ onSelectInternal?: (value?: DateRange | undefined, triggerValue?: Date) => DateRange | void;
1556
+ };
1557
+ type CalendarDropdownProps = CalendarDropdownSingleProps | CalendarDropdownRangeProps;
1549
1558
 
1550
1559
  /**
1551
1560
  * The `CalendarDropdown` component is a controlled or uncontrolled date selection interface that combines a dropdown trigger with a calendar picker. It supports both single date and date range selection modes with customizable label, optional styling, and class name support for both the wrapper and internal DayPicker component.
@@ -2833,6 +2842,7 @@ type ModalProps = ComponentProps<'div'> & {
2833
2842
  color?: string;
2834
2843
  p?: number;
2835
2844
  gap?: number;
2845
+ radius?: number;
2836
2846
  classNames?: {
2837
2847
  overlay?: string;
2838
2848
  container?: string;