widenarrow-ui 1.1.88 → 1.1.90
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/iconVisibilityLock300.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 +211 -203
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +211 -203
- package/lib/index.js.map +1 -1
- package/package.json +4 -1
- package/src/assets/svg/iconVisibilityLock300.tsx +14 -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/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
|
@@ -99,6 +99,7 @@ export declare enum IconTypes {
|
|
|
99
99
|
HANDLEBAR = "iconHandleBar",
|
|
100
100
|
HELP = "iconHelp",
|
|
101
101
|
HISTORY = "iconHistory",
|
|
102
|
+
ICON_VISIBILITY_LOCK_300 = "iconVisibilityLock300",
|
|
102
103
|
INBOX_200 = "iconInbox200",
|
|
103
104
|
INBOX_300 = "iconInbox300",
|
|
104
105
|
INFO = "iconInfo",
|
package/lib/index.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ declare enum IconTypes {
|
|
|
103
103
|
HANDLEBAR = "iconHandleBar",
|
|
104
104
|
HELP = "iconHelp",
|
|
105
105
|
HISTORY = "iconHistory",
|
|
106
|
+
ICON_VISIBILITY_LOCK_300 = "iconVisibilityLock300",
|
|
106
107
|
INBOX_200 = "iconInbox200",
|
|
107
108
|
INBOX_300 = "iconInbox300",
|
|
108
109
|
INFO = "iconInfo",
|
|
@@ -428,7 +429,6 @@ interface ButtonProps {
|
|
|
428
429
|
withIconRight?: boolean;
|
|
429
430
|
disabled?: boolean;
|
|
430
431
|
className?: string;
|
|
431
|
-
toolTip?: string;
|
|
432
432
|
style?: CSSProperties;
|
|
433
433
|
withEllipsis?: boolean;
|
|
434
434
|
buttonRef?: RefObject<HTMLButtonElement>;
|
|
@@ -438,6 +438,8 @@ interface ButtonProps {
|
|
|
438
438
|
autoFocus?: boolean;
|
|
439
439
|
ariaLabel?: string;
|
|
440
440
|
children?: ReactNode;
|
|
441
|
+
toolTip?: string;
|
|
442
|
+
toolTipComponent?: ReactNode;
|
|
441
443
|
tabIndex?: number;
|
|
442
444
|
}
|
|
443
445
|
|
|
@@ -715,6 +717,7 @@ interface IconButtonProps extends IconStyleInterface {
|
|
|
715
717
|
autoFocus?: boolean;
|
|
716
718
|
tabIndex?: number;
|
|
717
719
|
toolTip?: string;
|
|
720
|
+
toolTipComponent?: ReactNode;
|
|
718
721
|
ariaLabel?: string;
|
|
719
722
|
}
|
|
720
723
|
|
|
@@ -812,6 +815,7 @@ interface InlineButtonProps {
|
|
|
812
815
|
tabIndex?: number;
|
|
813
816
|
autoFocus?: boolean;
|
|
814
817
|
toolTip?: string;
|
|
818
|
+
toolTipComponent?: ReactNode;
|
|
815
819
|
}
|
|
816
820
|
|
|
817
821
|
declare const InlineButton: FC<InlineButtonProps>;
|
|
@@ -912,6 +916,7 @@ interface MultiActionButtonProps {
|
|
|
912
916
|
innerClassName?: string;
|
|
913
917
|
iconClassName?: string;
|
|
914
918
|
toolTip?: string;
|
|
919
|
+
toolTipComponent?: ReactNode;
|
|
915
920
|
id?: string | number;
|
|
916
921
|
loading?: boolean;
|
|
917
922
|
withEllipsis?: boolean;
|
|
@@ -1052,6 +1057,7 @@ interface ToolTipProps {
|
|
|
1052
1057
|
toolTipClassName?: string;
|
|
1053
1058
|
id?: string;
|
|
1054
1059
|
offset?: number;
|
|
1060
|
+
delayShow?: number;
|
|
1055
1061
|
variant?: 'dark' | 'light';
|
|
1056
1062
|
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
1057
1063
|
}
|