widenarrow-ui 1.1.89 → 1.1.91
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.
- package/lib/assets/svg/emerging.d.ts +6 -0
- package/lib/components/Button/Button.types.d.ts +2 -1
- package/lib/components/IconButton/IconButton.types.d.ts +2 -1
- package/lib/components/InlineButton/InlineButton.types.d.ts +1 -0
- package/lib/components/MultiActionButton/MultiActionButton.types.d.ts +2 -1
- package/lib/components/ToolTip/ToolTip.types.d.ts +1 -0
- package/lib/constants.d.ts +1 -0
- package/lib/index.d.ts +7 -1
- package/lib/index.esm.js +147 -139
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +147 -139
- package/lib/index.js.map +1 -1
- package/package.json +5 -2
- package/src/assets/svg/emerging.tsx +25 -0
- package/src/components/Button/Button.tsx +2 -1
- package/src/components/Button/Button.types.ts +2 -1
- package/src/components/Icon/getIconFromConstant.tsx +3 -0
- package/src/components/IconButton/IconButton.tsx +2 -1
- package/src/components/IconButton/IconButton.types.ts +2 -1
- package/src/components/InlineButton/InlineButton.tsx +11 -3
- package/src/components/InlineButton/InlineButton.types.ts +1 -0
- package/src/components/Input/Input.tsx +0 -0
- package/src/components/MultiActionButton/MultiActionButton.tsx +2 -1
- package/src/components/MultiActionButton/MultiActionButton.types.ts +2 -1
- package/src/components/ToolTip/ToolTip.tsx +2 -1
- package/src/components/ToolTip/ToolTip.types.ts +1 -0
- package/src/constants.ts +1 -0
|
@@ -13,7 +13,6 @@ export interface ButtonProps {
|
|
|
13
13
|
withIconRight?: boolean;
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
className?: string;
|
|
16
|
-
toolTip?: string;
|
|
17
16
|
style?: CSSProperties;
|
|
18
17
|
withEllipsis?: boolean;
|
|
19
18
|
buttonRef?: RefObject<HTMLButtonElement>;
|
|
@@ -23,5 +22,7 @@ export interface ButtonProps {
|
|
|
23
22
|
autoFocus?: boolean;
|
|
24
23
|
ariaLabel?: string;
|
|
25
24
|
children?: ReactNode;
|
|
25
|
+
toolTip?: string;
|
|
26
|
+
toolTipComponent?: ReactNode;
|
|
26
27
|
tabIndex?: number;
|
|
27
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MouseEvent, CSSProperties, RefObject } from 'react';
|
|
1
|
+
import { MouseEvent, CSSProperties, RefObject, ReactNode } from 'react';
|
|
2
2
|
import { IconStyleInterface } from '../../types/styling.types';
|
|
3
3
|
import { ColorTypes, HierarchyTypes, SizeTypes } from '../../constants';
|
|
4
4
|
export interface IconButtonProps extends IconStyleInterface {
|
|
@@ -20,5 +20,6 @@ export interface IconButtonProps extends IconStyleInterface {
|
|
|
20
20
|
autoFocus?: boolean;
|
|
21
21
|
tabIndex?: number;
|
|
22
22
|
toolTip?: string;
|
|
23
|
+
toolTipComponent?: ReactNode;
|
|
23
24
|
ariaLabel?: string;
|
|
24
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { HierarchyTypes, IconTypes, SizeTypes } from '../../constants';
|
|
3
3
|
export interface MultiActionButtonProps {
|
|
4
4
|
text?: string;
|
|
@@ -21,6 +21,7 @@ export interface MultiActionButtonProps {
|
|
|
21
21
|
innerClassName?: string;
|
|
22
22
|
iconClassName?: string;
|
|
23
23
|
toolTip?: string;
|
|
24
|
+
toolTipComponent?: ReactNode;
|
|
24
25
|
id?: string | number;
|
|
25
26
|
loading?: boolean;
|
|
26
27
|
withEllipsis?: boolean;
|
package/lib/constants.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ declare enum IconTypes {
|
|
|
71
71
|
DYNAMIC_DATE = "iconDynamicDate",
|
|
72
72
|
EDIT = "iconEdit",
|
|
73
73
|
EMBED = "iconEmbed",
|
|
74
|
+
EMERGING = "iconEmerging",
|
|
74
75
|
ERROR = "iconError",
|
|
75
76
|
EXIT_TO_APP = "iconExitToApp",
|
|
76
77
|
EXPAND = "iconExpand",
|
|
@@ -429,7 +430,6 @@ interface ButtonProps {
|
|
|
429
430
|
withIconRight?: boolean;
|
|
430
431
|
disabled?: boolean;
|
|
431
432
|
className?: string;
|
|
432
|
-
toolTip?: string;
|
|
433
433
|
style?: CSSProperties;
|
|
434
434
|
withEllipsis?: boolean;
|
|
435
435
|
buttonRef?: RefObject<HTMLButtonElement>;
|
|
@@ -439,6 +439,8 @@ interface ButtonProps {
|
|
|
439
439
|
autoFocus?: boolean;
|
|
440
440
|
ariaLabel?: string;
|
|
441
441
|
children?: ReactNode;
|
|
442
|
+
toolTip?: string;
|
|
443
|
+
toolTipComponent?: ReactNode;
|
|
442
444
|
tabIndex?: number;
|
|
443
445
|
}
|
|
444
446
|
|
|
@@ -716,6 +718,7 @@ interface IconButtonProps extends IconStyleInterface {
|
|
|
716
718
|
autoFocus?: boolean;
|
|
717
719
|
tabIndex?: number;
|
|
718
720
|
toolTip?: string;
|
|
721
|
+
toolTipComponent?: ReactNode;
|
|
719
722
|
ariaLabel?: string;
|
|
720
723
|
}
|
|
721
724
|
|
|
@@ -813,6 +816,7 @@ interface InlineButtonProps {
|
|
|
813
816
|
tabIndex?: number;
|
|
814
817
|
autoFocus?: boolean;
|
|
815
818
|
toolTip?: string;
|
|
819
|
+
toolTipComponent?: ReactNode;
|
|
816
820
|
}
|
|
817
821
|
|
|
818
822
|
declare const InlineButton: FC<InlineButtonProps>;
|
|
@@ -913,6 +917,7 @@ interface MultiActionButtonProps {
|
|
|
913
917
|
innerClassName?: string;
|
|
914
918
|
iconClassName?: string;
|
|
915
919
|
toolTip?: string;
|
|
920
|
+
toolTipComponent?: ReactNode;
|
|
916
921
|
id?: string | number;
|
|
917
922
|
loading?: boolean;
|
|
918
923
|
withEllipsis?: boolean;
|
|
@@ -1053,6 +1058,7 @@ interface ToolTipProps {
|
|
|
1053
1058
|
toolTipClassName?: string;
|
|
1054
1059
|
id?: string;
|
|
1055
1060
|
offset?: number;
|
|
1061
|
+
delayShow?: number;
|
|
1056
1062
|
variant?: 'dark' | 'light';
|
|
1057
1063
|
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
1058
1064
|
}
|