@cleen/ui 0.1.243 → 0.1.244
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 +11 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -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
|
|
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) => Date | void;
|
|
1552
|
+
};
|
|
1553
|
+
type CalendarDropdownRangeProps = CalendarDropdownBase & {
|
|
1554
|
+
mode?: 'range';
|
|
1555
|
+
onSelectInternal?: (value?: DateRange | undefined) => 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;
|