widenarrow-ui 2.0.4 → 2.0.6

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.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",
@@ -370,6 +370,8 @@ interface FlexStylingInterface {
370
370
  alignItems?: 'center' | 'flexStart' | 'flexEnd' | 'spaceAround' | 'spaceBetween';
371
371
  flexWrap?: 'wrap' | 'noWrap' | 'wrapReverse';
372
372
  flexGrow?: '0' | '1' | 'auto';
373
+ flexShrink?: '0' | '1' | 'auto';
374
+ flexBasis?: 'auto' | 'content' | 'fit-content' | 'max-content' | 'min-content' | 'fill' | 'initial' | 'inherit';
373
375
  alignSelf?: 'center' | 'flexStart' | 'flexEnd';
374
376
  }
375
377
  interface BorderInterface {
@@ -398,7 +400,7 @@ declare const paddingClassNames: ({ padding, paddingX, paddingY, paddingTop, pad
398
400
  declare const marginClassNames: ({ margin, marginX, marginY, marginTop, marginBottom, marginRight, marginLeft }: MarginInterface) => {
399
401
  [x: string]: boolean;
400
402
  };
401
- declare const flexClassNames: ({ displayFlex, displayFlexCenter, displayFlexCenterSpaceBetween, justifyContent, alignItems, flexDirection, flexWrap, flexGrow, alignSelf }: FlexStylingInterface) => {
403
+ declare const flexClassNames: ({ displayFlex, displayFlexCenter, displayFlexCenterSpaceBetween, justifyContent, alignItems, flexDirection, flexWrap, flexGrow, flexShrink, flexBasis, alignSelf }: FlexStylingInterface) => {
402
404
  [x: string]: boolean | undefined;
403
405
  displayFlex: boolean | undefined;
404
406
  displayFlexCenter: boolean | undefined;
@@ -759,7 +761,7 @@ interface IconButtonProps extends IconStyleInterface {
759
761
 
760
762
  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
763
 
762
- interface IconInterface {
764
+ interface IconInterface$1 {
763
765
  loading?: boolean;
764
766
  disabled?: boolean;
765
767
  icon: Partial<IconTypes>;
@@ -790,8 +792,8 @@ interface InputProps {
790
792
  helperText?: string;
791
793
  characterLimit?: number;
792
794
  type?: 'text' | 'number' | 'password' | 'time' | 'email';
793
- iconRight?: IconInterface;
794
- iconLeft?: IconInterface;
795
+ iconRight?: IconInterface$1;
796
+ iconLeft?: IconInterface$1;
795
797
  onChange: (event: ChangeEvent<HTMLInputElement>) => void;
796
798
  onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
797
799
  onEnter?: (event: KeyboardEvent<HTMLInputElement>) => void;
@@ -862,14 +864,25 @@ interface InlineButtonProps {
862
864
 
863
865
  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
866
 
867
+ interface IconInterface {
868
+ loading?: boolean;
869
+ disabled?: boolean;
870
+ icon: Partial<IconTypes$1>;
871
+ toolTip?: string;
872
+ tabIndex?: number;
873
+ onClickCallback: () => void;
874
+ }
865
875
  interface TextAreaInputProps {
866
876
  helperText?: string;
867
877
  onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;
868
878
  onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void;
869
879
  onEnter?: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
870
880
  onKeyDown?: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
881
+ onBlur?: () => void;
882
+ iconRight?: IconInterface;
883
+ iconLeft?: IconInterface;
871
884
  rows?: number;
872
- placeholder: string;
885
+ placeholder?: string;
873
886
  id?: number | string;
874
887
  label?: string;
875
888
  withLabel?: boolean;
@@ -878,6 +891,7 @@ interface TextAreaInputProps {
878
891
  value: string;
879
892
  error?: string;
880
893
  inputClassName?: string;
894
+ iconClassName?: string;
881
895
  className?: string;
882
896
  disabled?: boolean;
883
897
  marginBottom?: boolean;
@@ -888,7 +902,7 @@ interface TextAreaInputProps {
888
902
  }
889
903
 
890
904
  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;
905
+ ({ 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
906
  displayName: string;
893
907
  };
894
908