@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>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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';
|