@equisoft/design-elements-react 6.4.2-snapshot.20240618153838 → 6.4.2-snapshot.20240620141717
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,12 +1,13 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { AvatarProps } from '../avatar/avatar';
|
|
3
3
|
import { IconName, IconProps } from '../icon/icon';
|
|
4
|
-
import { ButtonProps } from './button';
|
|
4
|
+
import { ButtonProps, Size } from './button';
|
|
5
5
|
export interface IconButtonProps extends ButtonProps {
|
|
6
6
|
children?: ReactElement<IconProps | AvatarProps>;
|
|
7
7
|
/**
|
|
8
8
|
* Name of the desired icon (refer to icon library)
|
|
9
9
|
*/
|
|
10
10
|
iconName: IconName;
|
|
11
|
+
size?: Size;
|
|
11
12
|
}
|
|
12
13
|
export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { IconName } from '../icon/icon';
|
|
3
|
+
type Size = 'small' | 'medium';
|
|
4
|
+
type MaxWidth = 'small' | 'medium' | 'large';
|
|
3
5
|
export type ToggletipPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
4
6
|
export interface ToggletipProps {
|
|
5
7
|
label?: string;
|
|
@@ -15,5 +17,8 @@ export interface ToggletipProps {
|
|
|
15
17
|
desktopPlacement?: ToggletipPlacement;
|
|
16
18
|
disabled?: boolean;
|
|
17
19
|
invertedIcon?: boolean;
|
|
20
|
+
size?: Size;
|
|
21
|
+
maxWidth?: MaxWidth;
|
|
18
22
|
}
|
|
19
23
|
export declare const Toggletip: FunctionComponent<ToggletipProps>;
|
|
24
|
+
export {};
|
package/package.json
CHANGED