@lax-wp/design-system 0.3.81 → 0.3.82
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/components/forms/date-range/DateRange.d.ts +7 -3
- package/dist/index.es.js +5608 -5568
- package/dist/index.umd.js +64 -64
- package/package.json +1 -1
|
@@ -37,8 +37,12 @@ export type TDateRangeProps = {
|
|
|
37
37
|
onOpenChange?(open: boolean): void;
|
|
38
38
|
/** Placement of the dropdown */
|
|
39
39
|
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
40
|
-
/** Whether
|
|
41
|
-
|
|
40
|
+
/** Whether to render as an icon button that triggers the date picker */
|
|
41
|
+
renderAsIconButton?: boolean;
|
|
42
|
+
/** Additional CSS classes for the icon button */
|
|
43
|
+
iconButtonClassName?: string;
|
|
44
|
+
/** Additional CSS classes for the calendar icon inside the button */
|
|
45
|
+
iconClassName?: string;
|
|
42
46
|
};
|
|
43
47
|
/**
|
|
44
48
|
* A date range picker component with label, validation, and styling support.
|
|
@@ -64,6 +68,6 @@ export type TDateRangeProps = {
|
|
|
64
68
|
* ```
|
|
65
69
|
*/
|
|
66
70
|
export declare const DateRange: {
|
|
67
|
-
({ onCalendarChange, onChange, required, label, startDate, endDate, errorMessage, className, id, disabled, dateFormat, shouldPopOnParent, getPopupContainer: customGetPopupContainer, maxDateRange, open, onOpenChange, placement,
|
|
71
|
+
({ onCalendarChange, onChange, required, label, startDate, endDate, errorMessage, className, id, disabled, dateFormat, shouldPopOnParent, getPopupContainer: customGetPopupContainer, maxDateRange, open, onOpenChange, placement, renderAsIconButton, iconButtonClassName, iconClassName, }: TDateRangeProps): import("react/jsx-runtime").JSX.Element;
|
|
68
72
|
displayName: string;
|
|
69
73
|
};
|