@epam/ai-dial-ui-kit 0.3.0-rc.57 → 0.3.0-rc.58

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.
@@ -0,0 +1,23 @@
1
+ import { FC } from 'react';
2
+ import { DialButtonProps } from '../Button/Button';
3
+ import { DropdownItem } from '../../models/dropdown';
4
+ export interface DialButtonDropdownProps extends DialButtonProps {
5
+ items: DropdownItem[];
6
+ }
7
+ /**
8
+ * A Button dropdown component based on DialDropdown component
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <DialButtonDropdown
13
+ * title="Click me"
14
+ * variant={ButtonVariant.Secondary}
15
+ * items=[{ key: 'profile', label: 'Profile' }, { key: 'logout', label: 'Logout' }]
16
+ * />
17
+ * ```
18
+ *
19
+ * @param [title] - The text content of the button
20
+ * @param [variant] - Defines the visual style of the button
21
+ * @param [items] - DropdownItems with actions
22
+ */
23
+ export declare const DialButtonDropdown: FC<DialButtonDropdownProps>;
@@ -0,0 +1,2 @@
1
+ export declare const buttonChevronDown: import("react/jsx-runtime").JSX.Element;
2
+ export declare const buttonChevronUp: import("react/jsx-runtime").JSX.Element;
@@ -48,6 +48,7 @@ export { DialSelect } from './components/Select/Select';
48
48
  export { DialSelectField } from './components/SelectField/SelectField';
49
49
  export { DialLoadFileAreaField } from './components/LoadFileArea/LoadFileAreaField';
50
50
  export { DialDropdown } from './components/Dropdown/Dropdown';
51
+ export { DialButtonDropdown } from './components/ButtonDropdown/ButtonDropdown';
51
52
  export { AlertVariant } from './types/alert';
52
53
  export { ButtonVariant } from './types/button';
53
54
  export { RadioGroupOrientation } from './types/radio-group';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.3.0-rc.57",
3
+ "version": "0.3.0-rc.58",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",