@fattureincloud/fic-design-system 0.3.17-1845.3 → 0.3.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/dist/common/cssFixes/inputTextFixes.d.ts +4 -0
  2. package/dist/common/cssFixes/labelFixes.d.ts +1 -0
  3. package/dist/common/cssFixes/textAreaFixes.d.ts +1 -0
  4. package/dist/components/buttons/button/styled.d.ts +4 -4
  5. package/dist/components/chips/components/styledChipWrapper.d.ts +2 -1
  6. package/dist/components/drawer/components/styledDrawerWrapper.d.ts +2 -1
  7. package/dist/components/dropdown/components/Item.d.ts +1 -1
  8. package/dist/components/dropdown/types.d.ts +0 -1
  9. package/dist/components/form/common/components/ComplexInputWrapper.d.ts +2 -0
  10. package/dist/components/form/inputHelper/InputHelper.d.ts +2 -1
  11. package/dist/components/form/inputText/InputText.d.ts +1 -0
  12. package/dist/components/form/inputText/components/InputElement.d.ts +1 -0
  13. package/dist/components/form/inputText/components/StatusIcon.d.ts +1 -0
  14. package/dist/components/form/label/Label.d.ts +1 -0
  15. package/dist/components/form/select/Select.d.ts +6 -0
  16. package/dist/components/form/select/SelectInputParts.d.ts +13 -0
  17. package/dist/components/form/select/SelectWrapper.d.ts +12 -0
  18. package/dist/components/form/select/components/ClearIndicator.d.ts +3 -0
  19. package/dist/components/form/select/components/Control.d.ts +3 -0
  20. package/dist/components/form/select/components/DropdownIndicator.d.ts +3 -0
  21. package/dist/components/form/select/components/FooterActions.d.ts +11 -0
  22. package/dist/components/form/select/components/MenuList.d.ts +3 -0
  23. package/dist/components/form/select/components/Option.d.ts +14 -0
  24. package/dist/components/form/select/components/Placeholder.d.ts +3 -0
  25. package/dist/components/form/select/components/types.d.ts +10 -0
  26. package/dist/components/form/select/components.d.ts +2 -0
  27. package/dist/components/form/select/hooks/useSelectThemeStyles.d.ts +13 -0
  28. package/dist/components/form/select/index.d.ts +5 -0
  29. package/dist/components/form/select/originalComponents.d.ts +6 -0
  30. package/dist/components/form/select/select.stories.d.ts +1 -0
  31. package/dist/components/form/select/selectPalette.d.ts +16 -0
  32. package/dist/components/form/select/types.d.ts +12 -0
  33. package/dist/components/form/select/utils.d.ts +7 -0
  34. package/dist/components/form/textArea/TextArea.d.ts +1 -0
  35. package/dist/components/form/textArea/components/CharCounter.d.ts +9 -0
  36. package/dist/components/form/textArea/components/TextAreaElement.d.ts +3 -2
  37. package/dist/components/form/textArea/types.d.ts +6 -3
  38. package/dist/components/icon/Icon.d.ts +7 -4
  39. package/dist/components/icon/utils.d.ts +2 -2
  40. package/dist/components/inlineMessages/components/styledInlineMessageWrapper.d.ts +2 -1
  41. package/dist/components/modals/modalStyled.d.ts +1 -1
  42. package/dist/components/tabs/common/Item.d.ts +2 -2
  43. package/dist/components/tag/styled.d.ts +3 -2
  44. package/dist/components/toast/components/toastContent.d.ts +2 -1
  45. package/dist/index.d.ts +5 -4
  46. package/dist/index.esm.js +747 -425
  47. package/dist/index.esm.js.map +1 -0
  48. package/dist/index.js +749 -419
  49. package/dist/index.js.map +1 -0
  50. package/dist/styles/theme.d.ts +8 -0
  51. package/package.json +10 -7
@@ -0,0 +1,4 @@
1
+ import { inputSizeType } from '../../components/form/common/types';
2
+ export declare const inputTextHTMLInputBootstrapFixes: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
3
+ inputSize: inputSizeType;
4
+ }, import("styled-components").DefaultTheme>>;
@@ -0,0 +1 @@
1
+ export declare const inputTextHTMLLabelBootstrapFixes: import("styled-components").FlattenSimpleInterpolation;
@@ -0,0 +1 @@
1
+ export declare const inputTextHTMLTextAreaBootstrapFixes: import("styled-components").FlattenSimpleInterpolation;
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonStyles, WrapperProps } from './types';
3
- export declare const LeftIcon: import("styled-components").StyledComponent<typeof import("@fortawesome/react-fontawesome").FontAwesomeIcon, import("styled-components").DefaultTheme, import("../../icon/iconPalette").IconColorPalette & import("../../icon").IconProps, "primary" | "secondary">;
4
- export declare const RightIcon: import("styled-components").StyledComponent<typeof import("@fortawesome/react-fontawesome").FontAwesomeIcon, import("styled-components").DefaultTheme, import("../../icon/iconPalette").IconColorPalette & import("../../icon").IconProps, "primary" | "secondary">;
3
+ export declare const LeftIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const RightIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
5
5
  export declare const ButtonSpinner: import("styled-components").StyledComponent<({ className }: import("../../../common/components/Spinner").Props) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
6
6
  export declare const Text: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
7
  export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
8
  isLoading: boolean | undefined;
9
9
  }, never>;
10
- export declare const HrefWrapper: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, ButtonStyles & WrapperProps, "text" | "height" | "cursor" | "border" | "normal" | "active" | "hover" | "textHover">;
11
- export declare const OnClickWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ButtonStyles & WrapperProps, "text" | "height" | "cursor" | "border" | "normal" | "active" | "hover" | "textHover">;
10
+ export declare const HrefWrapper: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, ButtonStyles & WrapperProps, "text" | "height" | "cursor" | "border" | "normal" | "hover" | "active" | "textHover">;
11
+ export declare const OnClickWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ButtonStyles & WrapperProps, "text" | "height" | "cursor" | "border" | "normal" | "hover" | "active" | "textHover">;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ChipsProps } from '../types';
2
3
  export declare const StyledChipWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ChipsProps, never>;
3
- export declare const StyledIcon: import("styled-components").StyledComponent<typeof import("@fortawesome/react-fontawesome").FontAwesomeIcon, import("styled-components").DefaultTheme, import("../../icon/iconPalette").IconColorPalette & import("../../icon").IconProps, "primary" | "secondary">;
4
+ export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UnstyledDrawerProps } from '../types';
2
3
  export declare const StyledDrawerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, UnstyledDrawerProps, never>;
3
- export declare const StyledIcon: import("styled-components").StyledComponent<typeof import("@fortawesome/react-fontawesome").FontAwesomeIcon, import("styled-components").DefaultTheme, import("../../icon/iconPalette").IconColorPalette & import("../../icon").IconProps, "primary" | "secondary">;
4
+ export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -5,5 +5,5 @@ declare const Item: ({ active, className, icon, onClick, shortcut, text, isDisab
5
5
  export interface StyledItemProps extends Pick<DropdownItemProps, 'fullWidth' | 'maxWidth' | 'active' | 'isDisabled' | 'type'> {
6
6
  hasAction: boolean;
7
7
  }
8
- export declare const StyledItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DropdownItemStyles & StyledItemProps, "color" | "cursor" | "opacity" | "background" | "hoverBackground">;
8
+ export declare const StyledItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DropdownItemStyles & StyledItemProps, "color" | "opacity" | "background" | "hoverBackground" | "cursor">;
9
9
  export default Item;
@@ -18,7 +18,6 @@ export declare type DropdownProps = {
18
18
  placement?: Placement;
19
19
  minWidthAsTrigger?: boolean;
20
20
  forceOpen?: boolean;
21
- alignRight?: boolean;
22
21
  };
23
22
  export declare type DropdownItemType = 'default' | 'danger' | 'success' | 'warning' | 'link';
24
23
  export interface DropdownItemProps {
@@ -0,0 +1,2 @@
1
+ declare const ComplexInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export default ComplexInputWrapper;
@@ -1,7 +1,8 @@
1
+ import { ReactChild } from 'react';
1
2
  import { IconProps } from '../../icon';
2
3
  import { inputHelperStatus } from './types';
3
4
  export interface InputHelperProps extends WrapperProps {
4
- message: string;
5
+ message: ReactChild;
5
6
  icon?: IconProps;
6
7
  }
7
8
  declare const InputHelper: ({ status, message, icon }: InputHelperProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LabelProps } from '../label';
2
3
  import { InputElementProps } from './types';
3
4
  export declare type InputTextProps = LabelProps & InputElementProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BoxedInputWrapperProps } from '../../common/styles';
2
3
  import { InputElementProps } from '../types';
3
4
  declare const InputElement: ({ autoFocus, onBlur, onChange, value, placeholder, isDisabled, name, inputSize, leadingIcon, onKeyPress, status, onKeyDown, onKeyUp, inputType, onFocus, className, actionIcon, setValue, }: InputElementProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { statusType } from 'components/form/common/types';
2
3
  interface Props {
3
4
  status: statusType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface LabelProps extends WrapperProps {
2
3
  label?: string;
3
4
  }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { SelectProps } from './types';
3
+ export declare const Select: (props: SelectProps<import("react-select").Props<import("./components/Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./components/Option").OptionType>>>) => JSX.Element;
4
+ export declare const CreatableSelect: (props: SelectProps<import("react-select/creatable").Props<import("./components/Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./components/Option").OptionType>>>) => JSX.Element;
5
+ export declare const AsyncSelect: (props: SelectProps<import("react-select/async").Props<import("./components/Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./components/Option").OptionType>>>) => JSX.Element;
6
+ export declare const AsyncCreatableSelect: (props: SelectProps<import("react-select/async-creatable").Props<import("./components/Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./components/Option").OptionType>>>) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { Props as ReactSelectProps } from 'react-select/src/Select';
3
+ import { BoxedInputWrapperProps } from '../common/styles';
4
+ import { CommonFormTypes } from '../common/types';
5
+ import { LabelProps } from '../label';
6
+ import { SelectProps } from './Select';
7
+ export interface SelectInputPartsProps extends CommonFormTypes, LabelProps {
8
+ children?: ReactNode;
9
+ }
10
+ declare const SelectInputParts: (props: SelectInputPartsProps) => JSX.Element;
11
+ export declare type SelectWrapperProps = Pick<SelectProps<ReactSelectProps>, 'isDisabled' | 'status' | 'inputSize'>;
12
+ export declare type SelectStyles = Omit<BoxedInputWrapperProps, 'status'>;
13
+ export default SelectInputParts;
@@ -0,0 +1,12 @@
1
+ import { Props as ReactSelectProps } from 'react-select/src/Select';
2
+ import { BoxedInputWrapperProps } from '../common/styles';
3
+ import { SelectProps } from './types';
4
+ export declare type SelectWrapperProps = Pick<SelectProps<ReactSelectProps>, 'isDisabled' | 'status' | 'inputSize'>;
5
+ export declare type SelectStyles = Omit<BoxedInputWrapperProps, 'status'>;
6
+ export declare const SelectWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Pick<BoxedInputWrapperProps, "borderColor" | "normalFocused" | "color" | "background"> & Pick<SelectProps<ReactSelectProps<{
7
+ label: string;
8
+ value: string;
9
+ }, false, import("react-select").GroupTypeBase<{
10
+ label: string;
11
+ value: string;
12
+ }>>>, "isDisabled" | "status" | "inputSize">, "borderColor" | "normalFocused" | "color" | "background">;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ClearIndicator: ({ isDisabled, clearValue }: import("react-select").IndicatorProps<import("./Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./Option").OptionType>> | React.PropsWithChildren<import("react-select").IndicatorProps<import("./Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./Option").OptionType>>>) => JSX.Element;
3
+ export default ClearIndicator;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Control: ({ innerProps: { onMouseDown }, children }: import("react-select").ControlProps<import("./Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./Option").OptionType>> | React.PropsWithChildren<import("react-select").ControlProps<import("./Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./Option").OptionType>>>) => JSX.Element;
3
+ export default Control;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const DropdownIndicator: ({ selectProps }: import("react-select").IndicatorProps<import("./Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./Option").OptionType>> | React.PropsWithChildren<import("react-select").IndicatorProps<import("./Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./Option").OptionType>>>) => JSX.Element;
3
+ export default DropdownIndicator;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { DropdownItemProps } from '../../../dropdown';
3
+ export interface SelectActionsType extends DropdownItemProps {
4
+ closeOnClick?: boolean;
5
+ }
6
+ interface Props {
7
+ actions: SelectActionsType[];
8
+ triggerClose: () => void;
9
+ }
10
+ declare const FooterActions: ({ actions, triggerClose }: Props) => JSX.Element;
11
+ export default FooterActions;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const MenuList: (props: import("react-select").MenuListComponentProps<import("./Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./Option").OptionType>> | React.PropsWithChildren<import("react-select").MenuListComponentProps<import("./Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./Option").OptionType>>>) => JSX.Element;
3
+ export default MenuList;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { OptionTypeBase } from 'react-select/src/types';
3
+ import { IconProps } from '../../../icon';
4
+ import { OptionProps } from './types';
5
+ export interface OptionType extends OptionTypeBase {
6
+ icon?: IconProps;
7
+ label: string;
8
+ value: string;
9
+ }
10
+ interface Props extends Omit<OptionProps, 'data'> {
11
+ data: OptionType;
12
+ }
13
+ declare const Option: ({ innerProps: { onClick }, data: { label, icon } }: Props) => JSX.Element;
14
+ export default Option;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Placeholder: ({ children }: import("react-select").PlaceholderProps<import("./Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./Option").OptionType>> | React.PropsWithChildren<import("react-select").PlaceholderProps<import("./Option").OptionType, boolean, import("react-select").GroupTypeBase<import("./Option").OptionType>>>) => JSX.Element;
3
+ export default Placeholder;
@@ -0,0 +1,10 @@
1
+ import { ComponentProps } from 'react';
2
+ import { SelectProps } from '../types';
3
+ declare type SelectComponents = Required<Required<SelectProps>['components']>;
4
+ export declare type OptionProps = ComponentProps<SelectComponents['Option']>;
5
+ export declare type PlaceholderProps = ComponentProps<SelectComponents['Placeholder']>;
6
+ export declare type ControlProps = ComponentProps<SelectComponents['Control']>;
7
+ export declare type MenuListProps = ComponentProps<SelectComponents['MenuList']>;
8
+ export declare type DropdownIndicatorProps = ComponentProps<NonNullable<SelectComponents['DropdownIndicator']>>;
9
+ export declare type ClearIndicatorProps = ComponentProps<NonNullable<SelectComponents['ClearIndicator']>>;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SelectProps } from './types';
2
+ export declare const customComponents: SelectProps['components'];
@@ -0,0 +1,13 @@
1
+ import { statusType } from '../../common/types';
2
+ interface Props {
3
+ status: statusType;
4
+ isDisabled?: boolean;
5
+ }
6
+ declare const useSelectThemeStyles: ({ status, isDisabled }: Props) => Partial<import("react-select").Styles<{
7
+ label: string;
8
+ value: string;
9
+ }, false, import("react-select").GroupTypeBase<{
10
+ label: string;
11
+ value: string;
12
+ }>>> | undefined;
13
+ export default useSelectThemeStyles;
@@ -0,0 +1,5 @@
1
+ import { SelectActionsType } from './components/FooterActions';
2
+ import { AsyncCreatableSelect, AsyncSelect, CreatableSelect, Select } from './Select';
3
+ import selectPalette, { SelectPalette } from './selectPalette';
4
+ import { AsyncCreatableSelectProps, AsyncSelectProps, CreatableSelectProps, SelectProps } from './types';
5
+ export { Select, CreatableSelect, AsyncSelect, AsyncCreatableSelect, SelectProps, AsyncSelectProps, AsyncCreatableSelectProps, CreatableSelectProps, SelectPalette, selectPalette, SelectActionsType, };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { AsyncCreatableSelectProps, AsyncSelectProps, CreatableSelectProps, NormalSelectProps } from './types';
3
+ export declare const NormalSelectOriginal: React.FC<NormalSelectProps>;
4
+ export declare const CreatableSelectOriginal: React.FC<CreatableSelectProps>;
5
+ export declare const AsyncSelectOriginal: React.FC<AsyncSelectProps>;
6
+ export declare const AsyncCreatableSelectOriginal: React.FC<AsyncCreatableSelectProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ import { colorsPalette } from '../../../common/types/colorsPalette';
2
+ import { paletteColor } from '../../../styles/types';
3
+ import { statusType } from '../common/types';
4
+ export interface SelectParts extends colorsPalette {
5
+ borderColor: paletteColor;
6
+ iconColor: paletteColor;
7
+ }
8
+ declare type StatusesPalette = {
9
+ [key in statusType]: SelectParts;
10
+ };
11
+ export interface SelectPalette extends StatusesPalette {
12
+ normalFocused: SelectParts;
13
+ disabled: SelectParts;
14
+ }
15
+ declare const selectPalette: SelectPalette;
16
+ export default selectPalette;
@@ -0,0 +1,12 @@
1
+ import { Props as AsyncProps } from 'react-select/src/Async';
2
+ import { Props as AsyncCreatableProps } from 'react-select/src/AsyncCreatable';
3
+ import { Props as CreatableProps } from 'react-select/src/Creatable';
4
+ import { Props as ReactSelectProps } from 'react-select/src/Select';
5
+ import { CommonFormTypes } from '../common/types';
6
+ import { LabelProps } from '../label';
7
+ import { OptionType } from './components/Option';
8
+ export declare type NormalSelectProps = SelectProps;
9
+ export declare type CreatableSelectProps = SelectProps<CreatableProps<OptionType, boolean>>;
10
+ export declare type AsyncSelectProps = SelectProps<AsyncProps<OptionType, boolean>>;
11
+ export declare type AsyncCreatableSelectProps = SelectProps<AsyncCreatableProps<OptionType, boolean>>;
12
+ export declare type SelectProps<T = ReactSelectProps<OptionType, boolean>> = CommonFormTypes & LabelProps & T;
@@ -0,0 +1,7 @@
1
+ import { DefaultTheme } from 'styled-components';
2
+ import { SelectWrapperProps } from './SelectWrapper';
3
+ interface GetSelectParams extends SelectWrapperProps {
4
+ theme: DefaultTheme;
5
+ }
6
+ export declare const getSelectStyles: ({ theme, isDisabled, status }: GetSelectParams) => Pick<import("../common/styles").BoxedInputWrapperProps, "borderColor" | "normalFocused" | "color" | "background">;
7
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LabelProps } from '../label';
2
3
  import { TextAreaElementProps } from './types';
3
4
  export declare type TextAreaProps = LabelProps & TextAreaElementProps;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export interface CharCounterProps extends CharCounterOptions {
3
+ length: number;
4
+ }
5
+ export interface CharCounterOptions {
6
+ maxLength?: number;
7
+ }
8
+ declare const CharCounter: ({ length, maxLength }: CharCounterProps) => JSX.Element;
9
+ export default CharCounter;
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { BoxedInputWrapperProps } from '../../common/styles';
2
3
  import { TextAreaElementProps } from '../types';
3
- declare const TextAreaElement: ({ autoFocus, onBlur, onChange, value, placeholder, isDisabled, name, onKeyPress, status, onKeyDown, onKeyUp, onFocus, className, setValue, initialHeight, }: TextAreaElementProps) => JSX.Element;
4
- export declare type TextAreaWrapperProps = Pick<TextAreaElementProps, 'isDisabled' | 'status' | 'initialHeight'>;
4
+ declare const TextAreaElement: ({ autoFocus, onBlur, onChange, value, placeholder, isDisabled, name, onKeyPress, status, onKeyDown, onKeyUp, onFocus, className, setValue, initialHeight, maxLength, isResizable, showCounter, }: TextAreaElementProps) => JSX.Element;
5
+ export declare type TextAreaWrapperProps = Pick<TextAreaElementProps, 'isDisabled' | 'status' | 'initialHeight' | 'isResizable'>;
5
6
  export declare type TextAreaStyles = Omit<BoxedInputWrapperProps, 'status'>;
6
7
  export default TextAreaElement;
@@ -1,7 +1,10 @@
1
1
  import { Dispatch, SetStateAction, TextareaHTMLAttributes } from 'react';
2
2
  import { CommonFormTypes } from '../common/types';
3
- export interface TextAreaElementProps extends CommonFormTypes, Pick<TextareaHTMLAttributes<HTMLTextAreaElement>, 'autoFocus' | 'placeholder' | 'name' | 'onChange' | 'onBlur' | 'onFocus' | 'onKeyPress' | 'onKeyUp' | 'onKeyDown' | 'required' | 'className'> {
3
+ import { CharCounterOptions } from './components/CharCounter';
4
+ export interface TextAreaElementProps extends CommonFormTypes, CharCounterOptions, Pick<TextareaHTMLAttributes<HTMLTextAreaElement>, 'autoFocus' | 'placeholder' | 'name' | 'onChange' | 'onBlur' | 'onFocus' | 'onKeyPress' | 'onKeyUp' | 'onKeyDown' | 'required' | 'className'> {
4
5
  initialHeight?: string;
5
- value?: number | string | null;
6
- setValue?: Dispatch<SetStateAction<string>>;
6
+ value?: string | null;
7
+ setValue?: Dispatch<SetStateAction<string | undefined>>;
8
+ showCounter?: boolean;
9
+ isResizable?: boolean;
7
10
  }
@@ -1,7 +1,10 @@
1
- import { FontAwesomeIcon, FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
2
- import { IconColorPalette, iconColors } from './iconPalette';
1
+ /// <reference types="react" />
2
+ import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
3
+ import { iconColors } from './iconPalette';
3
4
  export interface IconProps extends Omit<FontAwesomeIconProps, 'color'> {
4
5
  color?: iconColors;
6
+ isDisabled?: boolean;
5
7
  }
6
- declare const _default: import("styled-components").StyledComponent<typeof FontAwesomeIcon, import("styled-components").DefaultTheme, IconColorPalette & IconProps, "primary" | "secondary">;
7
- export default _default;
8
+ declare const Icon: ({ onClick, isDisabled, ...props }: IconProps) => JSX.Element;
9
+ export declare type StyledIconProps = IconProps;
10
+ export default Icon;
@@ -1,7 +1,7 @@
1
1
  import { DefaultTheme } from 'styled-components';
2
- import { IconProps } from './Icon';
2
+ import { StyledIconProps } from './Icon';
3
3
  import { IconColorPalette } from './iconPalette';
4
- interface GetIconStylesParams extends Pick<IconProps, 'color'> {
4
+ interface GetIconStylesParams extends Pick<StyledIconProps, 'color'> {
5
5
  theme: DefaultTheme;
6
6
  }
7
7
  export declare const getIconStyles: ({ theme, color }: GetIconStylesParams) => IconColorPalette;
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import { InlineMessagesProps, StyledContentProps } from '../types';
2
3
  export declare const StyledIconTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
4
  export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
5
  export declare const StyledInlineMessageWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, InlineMessagesProps, never>;
5
6
  export declare const StyledIconContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledContentProps, never>;
6
7
  export declare const StyledCloseIconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
- export declare const StyledCloseIcon: import("styled-components").StyledComponent<typeof import("@fortawesome/react-fontawesome").FontAwesomeIcon, import("styled-components").DefaultTheme, import("../../icon/iconPalette").IconColorPalette & import("../../icon").IconProps, "primary" | "secondary">;
8
+ export declare const StyledCloseIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -14,4 +14,4 @@ export declare const TopAttachment: import("styled-components").StyledComponent<
14
14
  height: number | null;
15
15
  }, never>;
16
16
  export declare const BottomAttachment: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
17
- export declare const StyledIcon: import("styled-components").StyledComponent<typeof import("@fortawesome/react-fontawesome").FontAwesomeIcon, import("styled-components").DefaultTheme, import("../icon/iconPalette").IconColorPalette & import("../icon").IconProps, "primary" | "secondary">;
17
+ export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import { RefObject } from 'react';
2
2
  import { TabsItem } from './types';
3
3
  interface Props extends TabsItem {
4
- tabRef?: React.RefObject<HTMLDivElement>;
4
+ tabRef?: () => RefObject<HTMLDivElement>;
5
5
  }
6
6
  declare const Item: ({ active, handleClick, tabRef, text }: Props) => JSX.Element;
7
7
  export default Item;
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { TagParts } from './tagPalette';
2
3
  import { StyledTagProps } from './types';
3
- export declare const LeftIcon: import("styled-components").StyledComponent<typeof import("@fortawesome/react-fontawesome").FontAwesomeIcon, import("styled-components").DefaultTheme, import("../icon/iconPalette").IconColorPalette & import("../icon").IconProps, "primary" | "secondary">;
4
- export declare const RightIcon: import("styled-components").StyledComponent<typeof import("@fortawesome/react-fontawesome").FontAwesomeIcon, import("styled-components").DefaultTheme, import("../icon/iconPalette").IconColorPalette & import("../icon").IconProps, "primary" | "secondary">;
4
+ export declare const LeftIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const RightIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
5
6
  export declare const Text: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
7
  export declare const StyledTag: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TagParts & StyledTagProps, import("./tagPalette").tagParts>;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  export declare const StyledIconDiv: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
- export declare const StyledIcon: import("styled-components").StyledComponent<typeof import("@fortawesome/react-fontawesome").FontAwesomeIcon, import("styled-components").DefaultTheme, import("../../icon/iconPalette").IconColorPalette & import("../../icon").IconProps, "primary" | "secondary">;
3
+ export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
3
4
  export declare const StyledTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
5
  export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
6
  export declare const StyledAction: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
package/dist/index.d.ts CHANGED
@@ -8,13 +8,15 @@ import { Chip } from './components/chips';
8
8
  import { Drawer } from './components/drawer';
9
9
  import { closeDropdownType, Dropdown, DropdownItemProps, DropdownPalette } from './components/dropdown';
10
10
  import { WithBadge } from './components/floatingBadge';
11
+ import { InputHelper, InputHelperPalette, InputHelperProps } from './components/form/inputHelper';
12
+ import { InputText, InputTextPalette, InputTextProps } from './components/form/inputText';
13
+ import { AsyncCreatableSelect, AsyncCreatableSelectProps, AsyncSelect, AsyncSelectProps, CreatableSelect, CreatableSelectProps, Select, SelectPalette, SelectProps } from './components/form/select';
14
+ import { TextArea, TextAreaPalette, TextAreaProps } from './components/form/textArea';
11
15
  import { GroupedList } from './components/groupedList';
12
16
  import { RadioButtonGroup } from './components/groupRadioButton';
13
17
  import { Icon, IconPalette, IconProps } from './components/icon';
14
18
  import { IconBackground, IconBackgroundPalette } from './components/icon/components/iconBackground';
15
19
  import { InlineMessage } from './components/inlineMessages';
16
- import { InputText } from './components/inputText';
17
- import { EInputErrorTypes, EInputSize, EInputTags, EInputTypes } from './components/inputText/typings/enums';
18
20
  import { CustomSidebarItemProps, SidebarItem, sidebarItemHeight, SidebarItemPalette, SidebarItemProps } from './components/layout';
19
21
  import { MicroTag } from './components/microTag';
20
22
  import { Modal, ModalSearchable } from './components/modals';
@@ -24,7 +26,6 @@ import { PageEmptySet } from './components/pageEmptySet';
24
26
  import { Pagination } from './components/pagination';
25
27
  import { Progressbar } from './components/progressbar';
26
28
  import { RadioButton } from './components/radioButton';
27
- import { Select, SelectAsync, SelectCreatable } from './components/select';
28
29
  import { Stepper, StepperPalette, StepperProps } from './components/stepper';
29
30
  import { Table } from './components/table';
30
31
  import { DropdownTabs, ScrollableTabs, TabsItem } from './components/tabs';
@@ -36,4 +37,4 @@ import { Toast } from './components/toast';
36
37
  import { Tooltip, TooltipPalette, TooltipProps } from './components/tooltip';
37
38
  import { Theme } from './styles/theme';
38
39
  import { Palette, paletteColor } from './styles/types';
39
- export { paletteColor, Avatar, Banner, BannerProps, Button, ButtonProps, IconButton, IconButtonProps, Icon, IconProps, IconPalette, IconBackground, IconBackgroundPalette, Table, Checkbox, useCheckboxValue, CheckboxProps, CheckboxPalette, Select, SelectCreatable, SelectAsync, InputText, EInputErrorTypes, EInputSize, EInputTypes, PageEmptySet, Modal, ModalBody, ModalSearchable, Tooltip, TooltipProps, TooltipPalette, Accordion, Progressbar, Drawer, Chip, RadioButton, RadioButtonGroup, InlineMessage, Badge, Dropdown, DropdownItemProps, DropdownPalette, closeDropdownType, DropdownTabs, ScrollableTabs, SidebarItem, sidebarItemHeight, SidebarItemPalette, SidebarItemProps, CustomSidebarItemProps, TabsItem, Stepper, StepperProps, StepperPalette, Tip, ShortcutTip, ThemeProvider, Theme, Palette, GroupedList, WithBadge, Pagination, Toast, EInputTags, ConfirmationModal, TextButton, MicroTag, Tag, };
40
+ export { paletteColor, Avatar, Banner, BannerProps, Button, ButtonProps, IconButton, IconButtonProps, Icon, IconProps, IconPalette, IconBackground, IconBackgroundPalette, Table, Checkbox, useCheckboxValue, CheckboxProps, CheckboxPalette, Select, CreatableSelect, AsyncSelect, AsyncCreatableSelect, SelectProps, AsyncSelectProps, AsyncCreatableSelectProps, CreatableSelectProps, SelectPalette, PageEmptySet, Modal, ModalBody, ModalSearchable, Tooltip, TooltipProps, TooltipPalette, Accordion, Progressbar, Drawer, Chip, RadioButton, RadioButtonGroup, InlineMessage, Badge, Dropdown, DropdownItemProps, DropdownPalette, closeDropdownType, DropdownTabs, ScrollableTabs, SidebarItem, sidebarItemHeight, SidebarItemPalette, SidebarItemProps, CustomSidebarItemProps, TabsItem, Stepper, StepperProps, StepperPalette, Tip, ShortcutTip, ThemeProvider, Theme, Palette, GroupedList, WithBadge, Pagination, Toast, ConfirmationModal, TextButton, MicroTag, Tag, InputText, InputTextProps, InputTextPalette, InputHelper, InputHelperProps, InputHelperPalette, TextArea, TextAreaProps, TextAreaPalette, };