@foris/avocado-suite 1.8.6 → 1.8.8
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.
|
@@ -20,7 +20,7 @@ export interface DatePickerProps {
|
|
|
20
20
|
/** MaxDate state*/
|
|
21
21
|
maxDate?: any;
|
|
22
22
|
/** SelectedDate state*/
|
|
23
|
-
selectedDate?: Date;
|
|
23
|
+
selectedDate?: Date | null;
|
|
24
24
|
/** DisabledNavigation for past days*/
|
|
25
25
|
disabledNavigation?: boolean;
|
|
26
26
|
/** AutoCloseOnSelect state -> for always opened calendar cases*/
|
|
@@ -32,7 +32,7 @@ export interface DatePickerProps {
|
|
|
32
32
|
/** Locale state */
|
|
33
33
|
locale?: string;
|
|
34
34
|
/** OnChange function callback */
|
|
35
|
-
onChange?: (date: Date) => void;
|
|
35
|
+
onChange?: (date: Date | null) => void;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Calendar component
|
|
@@ -43,11 +43,18 @@ export interface DrawerProps {
|
|
|
43
43
|
*/
|
|
44
44
|
bodyPadding?: boolean;
|
|
45
45
|
/**
|
|
46
|
-
* `fit`
|
|
46
|
+
* `fit` caps the panel at `min(600px, 100%)` with `width: 100%` so expand/collapse can animate smoothly (avoiding `width: auto`). Use with children that fill the shell (e.g. ChatPanel). `default` uses `max-width: min(30vw, 507px)` and `min-width: 448px` (same floor as ChatPanel).
|
|
47
47
|
*
|
|
48
48
|
* @default 'default'
|
|
49
49
|
*/
|
|
50
50
|
contentWidth?: 'default' | 'fit';
|
|
51
|
+
/**
|
|
52
|
+
* When `true`, the drawer panel expands to fill the full viewport width.
|
|
53
|
+
* Controlled from the parent — typically wired to a ChatPanel `onExpandedChange` callback.
|
|
54
|
+
*
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
isExpanded?: boolean;
|
|
51
58
|
/**
|
|
52
59
|
* Called after the close animation finishes and the drawer unmounts from the tree (when transitioning from open to closed).
|
|
53
60
|
*/
|