@delightui/components 0.1.111 → 0.1.113

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.
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
+ import { ModalTransitionComponent } from 'react-overlays/cjs/Modal';
2
3
  /**
3
4
  * Enum defining the possible sizes for the Modal component.
4
5
  */
@@ -55,4 +56,8 @@ export type ModalProps = {
55
56
  * Additional CSS class names to apply to the modal.
56
57
  */
57
58
  className?: string;
59
+ /**
60
+ * Optional transition component for the modal.
61
+ */
62
+ Transition?: ModalTransitionComponent;
58
63
  };
@@ -7,7 +7,7 @@
7
7
  */
8
8
  declare const Search: import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "value" | "type"> & import("../FormField/FormField.types").ControlledFormComponentProps<string> & {
9
9
  style?: import("./Search.types").SearchStyleEnum;
10
- onSearch: import("./Search.types").SearchCallback;
10
+ onSearch?: import("./Search.types").SearchCallback;
11
11
  debounceMs?: number;
12
12
  minCharacters?: number;
13
13
  showSubmitButton?: boolean;
@@ -20,7 +20,7 @@ export type SearchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | '
20
20
  /**
21
21
  * Callback function to handle search with the query string
22
22
  */
23
- onSearch: SearchCallback;
23
+ onSearch?: SearchCallback;
24
24
  /**
25
25
  * Debounce delay in milliseconds for auto style
26
26
  * @default 300
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { TransitionCallbacks } from 'react-overlays/cjs/types';
3
+ export declare const FadeTransition: React.FC<{
4
+ in: boolean;
5
+ appear?: boolean;
6
+ unmountOnExit?: boolean;
7
+ children?: React.ReactElement<any>;
8
+ } & TransitionCallbacks>;