widenarrow-ui 2.0.3 → 2.0.5
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/index.css +1 -1
- package/lib/index.d.ts +18 -6
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { CSSProperties, MouseEvent, RefObject, ReactNode, ChangeEvent, KeyboardEvent, FocusEvent, FC } from 'react';
|
|
3
3
|
import { Placement, PositioningStrategy } from '@popperjs/core';
|
|
4
|
-
import { ColorTypes as ColorTypes$1 } from 'src/constants';
|
|
4
|
+
import { IconTypes as IconTypes$1, ColorTypes as ColorTypes$1 } from 'src/constants';
|
|
5
5
|
|
|
6
6
|
declare enum IconTypes {
|
|
7
7
|
ACCOUNT_SETTINGS = "iconAccountSettings",
|
|
@@ -759,7 +759,7 @@ interface IconButtonProps extends IconStyleInterface {
|
|
|
759
759
|
|
|
760
760
|
declare const IconButton: react.MemoExoticComponent<({ className, disabled, style, icon, id, text, size, type, href, iconColor, iconSize, iconClassName, onClickCallback, rotateIcon, tabIndex, autoFocus, buttonRef, rotateIconByDegree, toolTip, toolTipComponent, ariaLabel }: IconButtonProps) => JSX.Element>;
|
|
761
761
|
|
|
762
|
-
interface IconInterface {
|
|
762
|
+
interface IconInterface$1 {
|
|
763
763
|
loading?: boolean;
|
|
764
764
|
disabled?: boolean;
|
|
765
765
|
icon: Partial<IconTypes>;
|
|
@@ -790,8 +790,8 @@ interface InputProps {
|
|
|
790
790
|
helperText?: string;
|
|
791
791
|
characterLimit?: number;
|
|
792
792
|
type?: 'text' | 'number' | 'password' | 'time' | 'email';
|
|
793
|
-
iconRight?: IconInterface;
|
|
794
|
-
iconLeft?: IconInterface;
|
|
793
|
+
iconRight?: IconInterface$1;
|
|
794
|
+
iconLeft?: IconInterface$1;
|
|
795
795
|
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
796
796
|
onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
797
797
|
onEnter?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
@@ -862,14 +862,25 @@ interface InlineButtonProps {
|
|
|
862
862
|
|
|
863
863
|
declare const InlineButton: react.MemoExoticComponent<({ className, id, loading, ariaLabel, text, buttonRef, style, size, sizeMd, sizeLg, sizeXl, type, textClassName, children, icon, withIconRight, withPrimaryHoverEffect, withSecondaryHoverEffect, withTertiaryHoverEffect, iconSize, autoFocus, iconClassName, tabIndex, rotateIcon, rotateIconByDegree, onClickCallback, withEllipsis, disabled, toolTip, toolTipComponent }: InlineButtonProps) => JSX.Element>;
|
|
864
864
|
|
|
865
|
+
interface IconInterface {
|
|
866
|
+
loading?: boolean;
|
|
867
|
+
disabled?: boolean;
|
|
868
|
+
icon: Partial<IconTypes$1>;
|
|
869
|
+
toolTip?: string;
|
|
870
|
+
tabIndex?: number;
|
|
871
|
+
onClickCallback: () => void;
|
|
872
|
+
}
|
|
865
873
|
interface TextAreaInputProps {
|
|
866
874
|
helperText?: string;
|
|
867
875
|
onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
868
876
|
onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
869
877
|
onEnter?: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
870
878
|
onKeyDown?: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
879
|
+
onBlur?: () => void;
|
|
880
|
+
iconRight?: IconInterface;
|
|
881
|
+
iconLeft?: IconInterface;
|
|
871
882
|
rows?: number;
|
|
872
|
-
placeholder
|
|
883
|
+
placeholder?: string;
|
|
873
884
|
id?: number | string;
|
|
874
885
|
label?: string;
|
|
875
886
|
withLabel?: boolean;
|
|
@@ -878,6 +889,7 @@ interface TextAreaInputProps {
|
|
|
878
889
|
value: string;
|
|
879
890
|
error?: string;
|
|
880
891
|
inputClassName?: string;
|
|
892
|
+
iconClassName?: string;
|
|
881
893
|
className?: string;
|
|
882
894
|
disabled?: boolean;
|
|
883
895
|
marginBottom?: boolean;
|
|
@@ -888,7 +900,7 @@ interface TextAreaInputProps {
|
|
|
888
900
|
}
|
|
889
901
|
|
|
890
902
|
declare const TextAreaInput: {
|
|
891
|
-
({ onChange, rows, placeholder, value, name, autoFocus, ariaLabel, inputClassName, className, disabled, style, label, withLabel, id, marginBottom, helperText, inputRef, onEnter, onKeyDown, error, readonly }: TextAreaInputProps): JSX.Element;
|
|
903
|
+
({ onChange, rows, placeholder, value, name, autoFocus, ariaLabel, iconClassName, inputClassName, className, disabled, style, label, withLabel, id, marginBottom, helperText, inputRef, iconLeft, iconRight, onFocus, onEnter, onBlur, onKeyDown, error, readonly }: TextAreaInputProps): JSX.Element;
|
|
892
904
|
displayName: string;
|
|
893
905
|
};
|
|
894
906
|
|