@epam/ai-dial-ui-kit 0.5.0-rc.12 → 0.5.0-rc.14

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,4 @@
1
- import { FC, ReactNode, MouseEvent } from 'react';
1
+ import { FC, ReactNode, MouseEvent, Ref } from 'react';
2
2
  import { SelectOption } from '../../models/select';
3
3
  import { SelectSize, SelectVariant } from '../../types/select';
4
4
  export interface DialSelectProps {
@@ -22,6 +22,7 @@ export interface DialSelectProps {
22
22
  closable?: boolean;
23
23
  header?: ReactNode | (() => ReactNode);
24
24
  footer?: ReactNode | (() => ReactNode);
25
+ dismissRef?: Ref<unknown>;
25
26
  onClose?: (e: MouseEvent<HTMLButtonElement>) => void;
26
27
  onChange?: (next: string | string[]) => void;
27
28
  inlineSearch?: boolean;
@@ -74,5 +75,6 @@ export interface DialSelectProps {
74
75
  * @param [onChange] - Called when the selection changes.
75
76
  * @param [inlineSearch=false] - Render a plain input inside trigger (single mode only).
76
77
  * @param [onFooterClick] - Called when the footer element is clicked. When provided, automatically closes the dropdown.
78
+ * @param [dismissRef] - Ref object to expose a `dismiss` method to programmatically close the select.
77
79
  */
78
80
  export declare const DialSelect: FC<DialSelectProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.5.0-rc.12",
3
+ "version": "0.5.0-rc.14",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",