@livechat/design-system-react-components 1.0.0-alpha.47 → 1.0.0-alpha.49

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.
Files changed (61) hide show
  1. package/dist/dsrc.cjs.js +9 -9
  2. package/dist/dsrc.es.js +89 -92
  3. package/dist/dsrc.umd.js +9 -9
  4. package/dist/src/components/Alert/Alert.d.ts +2 -2
  5. package/dist/src/components/Avatar/Avatar.d.ts +2 -2
  6. package/dist/src/components/Badge/Badge.d.ts +3 -3
  7. package/dist/src/components/Button/Button.d.ts +6 -6
  8. package/dist/src/components/Card/Card.d.ts +4 -4
  9. package/dist/src/components/Checkbox/Checkbox.d.ts +3 -3
  10. package/dist/src/components/DatePicker/DatePicker.d.ts +2 -1
  11. package/dist/src/components/DatePicker/DatePickerNavbar.d.ts +2 -2
  12. package/dist/src/components/DatePicker/types.d.ts +3 -3
  13. package/dist/src/components/FieldDescription/FieldDescription.d.ts +3 -3
  14. package/dist/src/components/FieldError/FieldError.d.ts +3 -3
  15. package/dist/src/components/FieldGroup/FieldGroup.d.ts +4 -4
  16. package/dist/src/components/FileUploadProgress/FileUploadProgress.d.ts +3 -3
  17. package/dist/src/components/FileUploadProgress/FileUploadProgressActions.d.ts +2 -2
  18. package/dist/src/components/Form/Form.d.ts +4 -4
  19. package/dist/src/components/FormField/FormField.d.ts +6 -6
  20. package/dist/src/components/FormGroup/FormGroup.d.ts +3 -3
  21. package/dist/src/components/Icon/Icon.d.ts +3 -3
  22. package/dist/src/components/Input/Input.d.ts +4 -4
  23. package/dist/src/components/Link/Link.d.ts +3 -3
  24. package/dist/src/components/Loader/Loader.d.ts +3 -3
  25. package/dist/src/components/Modal/Modal.d.ts +5 -5
  26. package/dist/src/components/Modal/ModalBase.d.ts +3 -3
  27. package/dist/src/components/Modal/ModalCloseButton.d.ts +3 -3
  28. package/dist/src/components/Modal/ModalPortal.d.ts +4 -4
  29. package/dist/src/components/NumericInput/NumericInput.d.ts +3 -3
  30. package/dist/src/components/Picker/Picker.d.ts +2 -2
  31. package/dist/src/components/Picker/PickerList.d.ts +4 -4
  32. package/dist/src/components/Picker/Trigger.d.ts +3 -3
  33. package/dist/src/components/Picker/TriggerBody.d.ts +2 -2
  34. package/dist/src/components/Popover/Popover.d.ts +4 -4
  35. package/dist/src/components/Progress/ProgressBar.d.ts +2 -2
  36. package/dist/src/components/Progress/ProgressCircle.d.ts +2 -2
  37. package/dist/src/components/PromoBanner/PromoBanner.d.ts +2 -2
  38. package/dist/src/components/RadioButton/RadioButton.d.ts +3 -3
  39. package/dist/src/components/Search/Search.d.ts +2 -2
  40. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +4 -4
  41. package/dist/src/components/Switch/Switch.d.ts +4 -4
  42. package/dist/src/components/Tab/Tab.d.ts +4 -4
  43. package/dist/src/components/Tab/TabsWrapper.d.ts +3 -3
  44. package/dist/src/components/Tag/Tag.d.ts +3 -3
  45. package/dist/src/components/TagInput/EditableTag.d.ts +4 -4
  46. package/dist/src/components/TagInput/EditableTagContent.d.ts +4 -4
  47. package/dist/src/components/TagInput/EmailTagInput.d.ts +2 -2
  48. package/dist/src/components/TagInput/TagInput.d.ts +2 -2
  49. package/dist/src/components/Textarea/Textarea.d.ts +3 -3
  50. package/dist/src/components/Toast/Toast.d.ts +3 -3
  51. package/dist/src/components/Toast/ToastWrapper.d.ts +3 -3
  52. package/dist/src/components/Tooltip/Info.d.ts +2 -2
  53. package/dist/src/components/Tooltip/Interactive.d.ts +1 -0
  54. package/dist/src/components/Tooltip/Simple.d.ts +2 -2
  55. package/dist/src/components/Tooltip/Tooltip.d.ts +4 -4
  56. package/dist/src/components/Tooltip/UserGuide.d.ts +2 -2
  57. package/dist/src/components/Typography/Heading.d.ts +2 -2
  58. package/dist/src/components/Typography/Text.d.ts +2 -2
  59. package/dist/src/components/UploadBar/UploadBar.d.ts +3 -3
  60. package/dist/src/global.d.ts +4 -0
  61. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
- import { FC } from 'react';
1
+ import * as React from 'react';
2
2
  declare type AlertKind = 'info' | 'warning' | 'success' | 'error';
3
3
  export interface AlertProps {
4
4
  className?: string;
5
5
  kind?: AlertKind;
6
6
  onClose?: () => void;
7
7
  }
8
- export declare const Alert: FC<AlertProps>;
8
+ export declare const Alert: React.FC<AlertProps>;
9
9
  export {};
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import * as React from 'react';
2
2
  declare type AvatarShape = 'circle' | 'rounded-square';
3
3
  declare type AvatarSize = 'xxxsmall' | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
4
4
  declare type AvatarStatus = 'available' | 'unavailable' | 'unknown';
@@ -15,5 +15,5 @@ export interface AvatarProps {
15
15
  type: AvatarType;
16
16
  withRim?: boolean;
17
17
  }
18
- export declare const Avatar: FC<AvatarProps>;
18
+ export declare const Avatar: React.FC<AvatarProps>;
19
19
  export {};
@@ -1,9 +1,9 @@
1
- import { FC, HTMLAttributes } from 'react';
2
- export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
1
+ import * as React from 'react';
2
+ export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
3
3
  count?: number;
4
4
  kind?: 'primary' | 'secondary' | 'tertiary';
5
5
  max?: number;
6
6
  size?: 'large' | 'medium' | 'compact';
7
7
  type?: 'counter' | 'alert' | 'dot';
8
8
  }
9
- export declare const Badge: FC<BadgeProps>;
9
+ export declare const Badge: React.FC<BadgeProps>;
@@ -1,5 +1,5 @@
1
+ import * as React from 'react';
1
2
  import { Size } from 'utils';
2
- import { ReactElement, ButtonHTMLAttributes, AnchorHTMLAttributes } from 'react';
3
3
  export declare type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'text' | 'plain' | 'plain-light';
4
4
  export declare type ButtonProps = {
5
5
  kind?: ButtonKind;
@@ -7,15 +7,15 @@ export declare type ButtonProps = {
7
7
  loading?: boolean;
8
8
  fullWidth?: boolean;
9
9
  loaderLabel?: string;
10
- icon?: ReactElement;
10
+ icon?: React.ReactElement;
11
11
  iconPosition?: 'left' | 'right';
12
- } & ButtonHTMLAttributes<HTMLButtonElement> & AnchorHTMLAttributes<HTMLAnchorElement>;
13
- export declare const Button: import("react").ForwardRefExoticComponent<{
12
+ } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>;
13
+ export declare const Button: React.ForwardRefExoticComponent<{
14
14
  kind?: ButtonKind | undefined;
15
15
  size?: Size | undefined;
16
16
  loading?: boolean | undefined;
17
17
  fullWidth?: boolean | undefined;
18
18
  loaderLabel?: string | undefined;
19
- icon?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
19
+ icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
20
20
  iconPosition?: "left" | "right" | undefined;
21
- } & ButtonHTMLAttributes<HTMLButtonElement> & AnchorHTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
21
+ } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
@@ -1,12 +1,12 @@
1
+ import * as React from 'react';
1
2
  import { ButtonProps } from '../Button';
2
- import { HTMLAttributes, ReactNode, FC } from 'react';
3
3
  export declare type CardButtonOptions = Pick<ButtonProps, 'children' | 'kind' | 'onClick'>;
4
- export interface CardProps extends HTMLAttributes<HTMLDivElement> {
4
+ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  alt?: string;
6
6
  buttonsOptions?: CardButtonOptions[];
7
7
  description?: string;
8
- expandableContent?: ReactNode;
8
+ expandableContent?: React.ReactNode;
9
9
  src?: string;
10
10
  title?: string;
11
11
  }
12
- export declare const Card: FC<CardProps>;
12
+ export declare const Card: React.FC<CardProps>;
@@ -1,7 +1,7 @@
1
- import { HTMLAttributes } from 'react';
2
- export interface CheckboxProps extends HTMLAttributes<HTMLInputElement> {
1
+ import * as React from 'react';
2
+ export interface CheckboxProps extends React.HTMLAttributes<HTMLInputElement> {
3
3
  disabled?: boolean;
4
4
  checked?: boolean;
5
5
  description?: string;
6
6
  }
7
- export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
7
+ export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import ReactDayPicker from 'react-day-picker';
2
3
  import { IDatePickerProps } from './types';
3
- export declare const DatePicker: import("react").ForwardRefExoticComponent<IDatePickerProps & import("react").RefAttributes<ReactDayPicker>>;
4
+ export declare const DatePicker: React.ForwardRefExoticComponent<IDatePickerProps & React.RefAttributes<ReactDayPicker>>;
@@ -1,4 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { IDatePickerNavbarProps } from './types';
2
- import { FC } from 'react';
3
- declare const DatePickerNavbar: FC<IDatePickerNavbarProps>;
3
+ declare const DatePickerNavbar: React.FC<IDatePickerNavbarProps>;
4
4
  export default DatePickerNavbar;
@@ -1,8 +1,8 @@
1
- import { ReactElement, Reducer, Ref } from 'react';
1
+ import { Reducer } from 'react';
2
2
  import ReactDayPicker, { DayPickerProps } from 'react-day-picker';
3
3
  import { ClassNames } from 'react-day-picker/types/ClassNames';
4
4
  export interface IDatePickerProps extends Omit<DayPickerProps, 'todayButton' | 'showWeekNumbers'> {
5
- innerRef?: Ref<ReactDayPicker>;
5
+ innerRef?: React.Ref<ReactDayPicker>;
6
6
  range?: boolean;
7
7
  }
8
8
  export interface IDatePickerNavbarProps {
@@ -95,6 +95,6 @@ export interface IRangeDatePickerProps {
95
95
  initialToDate?: Date;
96
96
  toMonth?: Date;
97
97
  onChange: (selected: IRangeDatePickerOption | null) => void;
98
- children(payload: IRangeDatePickerChildrenPayload): ReactElement;
98
+ children(payload: IRangeDatePickerChildrenPayload): React.ReactElement;
99
99
  }
100
100
  export {};
@@ -1,3 +1,3 @@
1
- import { HTMLAttributes, FC } from 'react';
2
- export declare type FieldDescriptionProps = HTMLAttributes<HTMLSpanElement>;
3
- export declare const FieldDescription: FC<FieldDescriptionProps>;
1
+ import * as React from 'react';
2
+ export declare type FieldDescriptionProps = React.HTMLAttributes<HTMLSpanElement>;
3
+ export declare const FieldDescription: React.FC<FieldDescriptionProps>;
@@ -1,3 +1,3 @@
1
- import { HTMLAttributes, FC } from 'react';
2
- export declare type FieldErrorProps = HTMLAttributes<HTMLSpanElement>;
3
- export declare const FieldError: FC<FieldErrorProps>;
1
+ import * as React from 'react';
2
+ export declare type FieldErrorProps = React.HTMLAttributes<HTMLSpanElement>;
3
+ export declare const FieldError: React.FC<FieldErrorProps>;
@@ -1,8 +1,8 @@
1
- import { HTMLAttributes, ReactNode, FC } from 'react';
2
- export interface FieldGroupProps extends HTMLAttributes<HTMLDivElement> {
3
- description?: ReactNode;
1
+ import * as React from 'react';
2
+ export interface FieldGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ description?: React.ReactNode;
4
4
  error?: string;
5
5
  inline?: boolean;
6
6
  stretch?: boolean;
7
7
  }
8
- export declare const FieldGroup: FC<FieldGroupProps>;
8
+ export declare const FieldGroup: React.FC<FieldGroupProps>;
@@ -1,10 +1,10 @@
1
+ import * as React from 'react';
1
2
  import { ProgressSize, ProgressStatus } from '../Progress/constants';
2
- import { ReactNode, ExoticComponent, RefAttributes } from 'react';
3
3
  export declare type UploadProgressActionState = 'visible' | 'hover' | 'hidden';
4
4
  export interface FileUploadProgressProps {
5
5
  actionsVisibility?: UploadProgressActionState;
6
6
  className?: string;
7
- icon?: ReactNode;
7
+ icon?: React.ReactNode;
8
8
  title: string;
9
9
  progressValue: number;
10
10
  size?: ProgressSize;
@@ -12,4 +12,4 @@ export interface FileUploadProgressProps {
12
12
  onCloseButtonClick?: () => void;
13
13
  onRetryButtonClick?: () => void;
14
14
  }
15
- export declare const FileUploadProgress: ExoticComponent<FileUploadProgressProps & RefAttributes<HTMLInputElement>>;
15
+ export declare const FileUploadProgress: React.ExoticComponent<FileUploadProgressProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,9 +1,9 @@
1
+ import * as React from 'react';
1
2
  import { ProgressStatus } from '../Progress/constants';
2
- import { FC } from 'react';
3
3
  interface FileUploadProgressActionsProps {
4
4
  status: ProgressStatus;
5
5
  onCloseButtonClick?: () => void;
6
6
  onRetryButtonClick?: () => void;
7
7
  }
8
- export declare const FileUploadProgressActions: FC<FileUploadProgressActionsProps>;
8
+ export declare const FileUploadProgressActions: React.FC<FileUploadProgressActionsProps>;
9
9
  export {};
@@ -1,7 +1,7 @@
1
- import { HTMLAttributes, ReactNode, FC } from 'react';
2
- export interface FormProps extends HTMLAttributes<HTMLFormElement> {
1
+ import * as React from 'react';
2
+ export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
3
3
  labelText?: string;
4
4
  helperText?: string;
5
- formFooter?: ReactNode;
5
+ formFooter?: React.ReactNode;
6
6
  }
7
- export declare const Form: FC<FormProps>;
7
+ export declare const Form: React.FC<FormProps>;
@@ -1,13 +1,13 @@
1
- import { ReactNode, FC } from 'react';
1
+ import * as React from 'react';
2
2
  export interface FormFieldProps {
3
3
  labelText?: string;
4
- labelAdornment?: ReactNode;
4
+ labelAdornment?: React.ReactNode;
5
5
  labelFor?: string;
6
6
  className?: string;
7
7
  inline?: boolean;
8
8
  error?: string;
9
- description?: ReactNode;
10
- children?: ReactNode;
11
- labelRightNode?: ReactNode;
9
+ description?: React.ReactNode;
10
+ children?: React.ReactNode;
11
+ labelRightNode?: React.ReactNode;
12
12
  }
13
- export declare const FormField: FC<FormFieldProps>;
13
+ export declare const FormField: React.FC<FormFieldProps>;
@@ -1,7 +1,7 @@
1
- import { HTMLAttributes, FC } from 'react';
2
- export interface FormGroupProps extends HTMLAttributes<HTMLDivElement> {
1
+ import * as React from 'react';
2
+ export interface FormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  className?: string;
4
4
  labelText?: string;
5
5
  helperText?: string;
6
6
  }
7
- export declare const FormGroup: FC<FormGroupProps>;
7
+ export declare const FormGroup: React.FC<FormGroupProps>;
@@ -1,7 +1,7 @@
1
- import { FC, SVGProps, ReactElement } from 'react';
1
+ import * as React from 'react';
2
2
  export declare type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
3
  export declare type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error';
4
- export declare type IconSource = FC<SVGProps<SVGSVGElement>> & ReactElement;
4
+ export declare type IconSource = React.FC<React.SVGProps<SVGSVGElement>> & React.ReactElement;
5
5
  export interface IconProps {
6
6
  source: IconSource;
7
7
  size?: IconSize;
@@ -10,5 +10,5 @@ export interface IconProps {
10
10
  className?: string;
11
11
  customColor?: string;
12
12
  }
13
- export declare const Icon: FC<IconProps>;
13
+ export declare const Icon: React.FC<IconProps>;
14
14
  export default Icon;
@@ -1,14 +1,14 @@
1
+ import * as React from 'react';
1
2
  import { Size } from 'utils/constants';
2
- import { InputHTMLAttributes, ReactElement } from 'react';
3
3
  interface InputIcon {
4
- source: ReactElement;
4
+ source: React.ReactElement;
5
5
  place: 'left' | 'right';
6
6
  }
7
- export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
7
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
8
8
  inputSize?: Size;
9
9
  error?: boolean;
10
10
  disabled?: boolean;
11
11
  icon?: InputIcon;
12
12
  }
13
- export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
13
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
14
14
  export {};
@@ -1,5 +1,5 @@
1
- import { AnchorHTMLAttributes, FC } from 'react';
2
- export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
1
+ import * as React from 'react';
2
+ export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
3
  bold: boolean;
4
4
  }
5
5
  /**
@@ -11,4 +11,4 @@ export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
11
11
  *
12
12
  * Use `<Button href="">` to display as a `<Button>` - <a target="_self" href="/story/components-button--link">see the story</a>.
13
13
  */
14
- export declare const Link: FC<LinkProps>;
14
+ export declare const Link: React.FC<LinkProps>;
@@ -1,5 +1,5 @@
1
- import { HTMLAttributes, FC } from 'react';
2
- export interface LoaderProps extends HTMLAttributes<HTMLDivElement> {
1
+ import * as React from 'react';
2
+ export interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  size?: 'small' | 'medium' | 'large';
4
4
  label?: string;
5
5
  /** Fragment circle color */
@@ -7,4 +7,4 @@ export interface LoaderProps extends HTMLAttributes<HTMLDivElement> {
7
7
  /** Main circle color */
8
8
  secondaryColor?: string;
9
9
  }
10
- export declare const Loader: FC<LoaderProps>;
10
+ export declare const Loader: React.FC<LoaderProps>;
@@ -1,9 +1,9 @@
1
+ import * as React from 'react';
1
2
  import { ModalBaseProps } from './ModalBase';
2
- import { ReactNode, FC } from 'react';
3
3
  export interface ModalProps extends ModalBaseProps {
4
- heading?: ReactNode;
5
- labelHeading?: ReactNode;
4
+ heading?: React.ReactNode;
5
+ labelHeading?: React.ReactNode;
6
6
  fullSpaceContent?: boolean;
7
- footer?: ReactNode;
7
+ footer?: React.ReactNode;
8
8
  }
9
- export declare const Modal: FC<ModalProps>;
9
+ export declare const Modal: React.FC<ModalProps>;
@@ -1,7 +1,7 @@
1
- import { HTMLAttributes, FC } from 'react';
2
- export interface ModalBaseProps extends HTMLAttributes<HTMLDivElement> {
1
+ import * as React from 'react';
2
+ export interface ModalBaseProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  onClose(): void;
4
4
  closeOnEscPress?: boolean;
5
5
  closeOnOverlayPress?: boolean;
6
6
  }
7
- export declare const ModalBase: FC<ModalBaseProps>;
7
+ export declare const ModalBase: React.FC<ModalBaseProps>;
@@ -1,6 +1,6 @@
1
- import { HTMLAttributes, FC } from 'react';
2
- export interface ModalCloseButtonProps extends HTMLAttributes<HTMLButtonElement> {
1
+ import * as React from 'react';
2
+ export interface ModalCloseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
3
3
  labelType?: boolean;
4
4
  customColor?: string;
5
5
  }
6
- export declare const ModalCloseButton: FC<ModalCloseButtonProps>;
6
+ export declare const ModalCloseButton: React.FC<ModalCloseButtonProps>;
@@ -1,7 +1,7 @@
1
- import { HTMLAttributes, ReactNode, FC } from 'react';
2
- export interface ModalPortalProps extends HTMLAttributes<HTMLDivElement> {
3
- children: ReactNode;
1
+ import * as React from 'react';
2
+ export interface ModalPortalProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ children: React.ReactNode;
4
4
  zIndex: number;
5
5
  parentElementName?: string;
6
6
  }
7
- export declare const ModalPortal: FC<ModalPortalProps>;
7
+ export declare const ModalPortal: React.FC<ModalPortalProps>;
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes, FC } from 'react';
1
+ import * as React from 'react';
2
2
  interface Props {
3
3
  className?: string;
4
4
  error?: string;
@@ -9,6 +9,6 @@ interface Props {
9
9
  noControls?: boolean;
10
10
  onChange: (value: string) => void;
11
11
  }
12
- export declare type NumericInputProps = InputHTMLAttributes<HTMLInputElement> & Props;
13
- export declare const NumericInput: FC<NumericInputProps>;
12
+ export declare type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & Props;
13
+ export declare const NumericInput: React.FC<NumericInputProps>;
14
14
  export {};
@@ -1,7 +1,7 @@
1
+ import * as React from 'react';
1
2
  import { IPickerListItem } from './PickerList';
2
3
  import { IconSize } from '../Icon';
3
4
  import { Size } from 'utils';
4
- import { FC } from 'react';
5
5
  export declare type PickerType = 'single' | 'multi';
6
6
  export interface IPickerProps {
7
7
  id?: string;
@@ -20,4 +20,4 @@ export interface IPickerProps {
20
20
  searchDisabled?: boolean;
21
21
  onSelect: (selectedItems: IPickerListItem[] | null) => void;
22
22
  }
23
- export declare const Picker: FC<IPickerProps>;
23
+ export declare const Picker: React.FC<IPickerProps>;
@@ -1,10 +1,10 @@
1
- import { ReactElement, FC } from 'react';
1
+ import * as React from 'react';
2
2
  export interface IPickerListItem {
3
3
  key: string;
4
4
  name: string;
5
5
  customElement?: {
6
- listItemBody: ReactElement;
7
- selectedItemBody: ReactElement;
6
+ listItemBody: React.ReactElement;
7
+ selectedItemBody: React.ReactElement;
8
8
  };
9
9
  groupHeader?: boolean;
10
10
  disabled?: boolean;
@@ -20,4 +20,4 @@ export interface IPickerListProps {
20
20
  onSelect: (item: IPickerListItem) => void;
21
21
  onSelectAll: () => void;
22
22
  }
23
- export declare const PickerList: FC<IPickerListProps>;
23
+ export declare const PickerList: React.FC<IPickerListProps>;
@@ -1,5 +1,5 @@
1
+ import * as React from 'react';
1
2
  import { Size } from 'utils';
2
- import { FC, MouseEvent } from 'react';
3
3
  export interface ITriggerProps {
4
4
  isSearchDisabled: boolean;
5
5
  isDisabled?: boolean;
@@ -9,7 +9,7 @@ export interface ITriggerProps {
9
9
  isRequired?: boolean;
10
10
  isMultiSelect?: boolean;
11
11
  size?: Size;
12
- onTrigger: (e: MouseEvent | KeyboardEvent) => void;
12
+ onTrigger: (e: React.MouseEvent | KeyboardEvent) => void;
13
13
  onClear: () => void;
14
14
  }
15
- export declare const Trigger: FC<ITriggerProps>;
15
+ export declare const Trigger: React.FC<ITriggerProps>;
@@ -1,7 +1,7 @@
1
+ import * as React from 'react';
1
2
  import { IPickerListItem } from './PickerList';
2
3
  import { PickerType } from './Picker';
3
4
  import { IconSize } from 'index';
4
- import { FC } from 'react';
5
5
  export interface ITriggerBodyProps {
6
6
  isOpen: boolean;
7
7
  isSearchDisabled?: boolean;
@@ -13,4 +13,4 @@ export interface ITriggerBodyProps {
13
13
  onItemRemove: (item: IPickerListItem) => void;
14
14
  onFilter: (text: string) => void;
15
15
  }
16
- export declare const TriggerBody: FC<ITriggerBodyProps>;
16
+ export declare const TriggerBody: React.FC<ITriggerBodyProps>;
@@ -1,12 +1,12 @@
1
+ import * as React from 'react';
1
2
  import { Placement, flip } from '@floating-ui/react-dom';
2
- import { ReactNode, FC } from 'react';
3
3
  export interface IPopoverProps {
4
- children?: ReactNode;
4
+ children?: React.ReactNode;
5
5
  className?: string;
6
6
  placement?: Placement;
7
7
  isVisible?: boolean;
8
8
  flipOptions?: Parameters<typeof flip>[0];
9
- triggerRenderer: () => ReactNode;
9
+ triggerRenderer: () => React.ReactNode;
10
10
  onClose?: () => void;
11
11
  }
12
- export declare const Popover: FC<IPopoverProps>;
12
+ export declare const Popover: React.FC<IPopoverProps>;
@@ -1,4 +1,4 @@
1
- import { ExoticComponent, RefAttributes } from 'react';
1
+ import * as React from 'react';
2
2
  import { ProgressSize, ProgressStatus } from './constants';
3
3
  export interface ProgressBarProps {
4
4
  className?: string;
@@ -6,4 +6,4 @@ export interface ProgressBarProps {
6
6
  status?: ProgressStatus;
7
7
  size?: ProgressSize;
8
8
  }
9
- export declare const ProgressBar: ExoticComponent<ProgressBarProps & RefAttributes<HTMLInputElement>>;
9
+ export declare const ProgressBar: React.ExoticComponent<ProgressBarProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,4 @@
1
- import { ExoticComponent, RefAttributes } from 'react';
1
+ import * as React from 'react';
2
2
  import { ProgressSize, ProgressStatus } from './constants';
3
3
  export interface ProgressCircleProps {
4
4
  className?: string;
@@ -6,4 +6,4 @@ export interface ProgressCircleProps {
6
6
  status?: ProgressStatus;
7
7
  size?: ProgressSize;
8
8
  }
9
- export declare const ProgressCircle: ExoticComponent<ProgressCircleProps & RefAttributes<HTMLInputElement>>;
9
+ export declare const ProgressCircle: React.ExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import * as React from 'react';
2
2
  export interface PromoBannerProps {
3
3
  className?: string;
4
4
  buttonText?: string;
@@ -10,4 +10,4 @@ export interface PromoBannerProps {
10
10
  onClose?: () => void;
11
11
  onLinkClick?: () => void;
12
12
  }
13
- export declare const PromoBanner: FC<PromoBannerProps>;
13
+ export declare const PromoBanner: React.FC<PromoBannerProps>;
@@ -1,7 +1,7 @@
1
- import { HTMLAttributes } from 'react';
2
- export interface RadioButtonProps extends HTMLAttributes<HTMLInputElement> {
1
+ import * as React from 'react';
2
+ export interface RadioButtonProps extends React.HTMLAttributes<HTMLInputElement> {
3
3
  description?: string;
4
4
  checked?: boolean;
5
5
  disabled?: boolean;
6
6
  }
7
- export declare const RadioButton: import("react").ForwardRefExoticComponent<RadioButtonProps & import("react").RefAttributes<HTMLInputElement>>;
7
+ export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import * as React from 'react';
2
2
  export interface ISearchInputProps {
3
3
  isCollapsable?: boolean;
4
4
  isDisabled?: boolean;
@@ -9,4 +9,4 @@ export interface ISearchInputProps {
9
9
  className?: string;
10
10
  onChange: (value: string) => void;
11
11
  }
12
- export declare const SearchInput: FC<ISearchInputProps>;
12
+ export declare const SearchInput: React.FC<ISearchInputProps>;
@@ -1,18 +1,18 @@
1
+ import * as React from 'react';
1
2
  import { ButtonProps } from '../Button';
2
- import { HTMLAttributes, FC, MouseEvent } from 'react';
3
3
  export declare type ButtonSize = 'compact' | 'medium' | 'large';
4
4
  declare type ButtonElement = {
5
5
  id: string;
6
6
  label: string;
7
7
  } & Pick<ButtonProps, 'disabled' | 'loading' | 'icon'>;
8
- export interface SegmentedControlProps extends HTMLAttributes<HTMLDivElement> {
8
+ export interface SegmentedControlProps extends React.HTMLAttributes<HTMLDivElement> {
9
9
  className?: string;
10
10
  buttons: ButtonElement[];
11
11
  fullWidth?: boolean;
12
12
  size?: ButtonSize;
13
13
  initialId?: string;
14
14
  currentId?: string;
15
- onButtonClick?: (id: string, event: MouseEvent<HTMLElement>) => void;
15
+ onButtonClick?: (id: string, event: React.MouseEvent<HTMLElement>) => void;
16
16
  }
17
- export declare const SegmentedControl: FC<SegmentedControlProps>;
17
+ export declare const SegmentedControl: React.FC<SegmentedControlProps>;
18
18
  export {};
@@ -1,4 +1,4 @@
1
- import { LegacyRef, FormEvent, FC } from 'react';
1
+ import * as React from 'react';
2
2
  export declare const baseClass = "switch";
3
3
  export declare type SwitchSize = 'compact' | 'medium' | 'large';
4
4
  export declare type SwitchState = 'regular' | 'loading' | 'locked';
@@ -7,11 +7,11 @@ export interface SwitchProps {
7
7
  className?: string;
8
8
  defaultOn?: boolean;
9
9
  disabled?: boolean;
10
- innerRef?: LegacyRef<HTMLInputElement> | undefined;
10
+ innerRef?: React.LegacyRef<HTMLInputElement> | undefined;
11
11
  name?: string;
12
12
  on?: boolean;
13
- onChange?(e: FormEvent, value: boolean): void;
13
+ onChange?(e: React.FormEvent, value: boolean): void;
14
14
  size?: SwitchSize;
15
15
  state?: SwitchState;
16
16
  }
17
- export declare const Switch: FC<SwitchProps>;
17
+ export declare const Switch: React.FC<SwitchProps>;
@@ -1,8 +1,8 @@
1
+ import * as React from 'react';
1
2
  import { Size } from 'utils';
2
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, FC } from 'react';
3
- declare type HTMLProps = (AnchorHTMLAttributes<HTMLAnchorElement> & {
3
+ declare type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
4
4
  href: string;
5
- }) | (ButtonHTMLAttributes<HTMLButtonElement> & {
5
+ }) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
6
6
  href?: never;
7
7
  });
8
8
  export declare type TabProps = HTMLProps & {
@@ -11,5 +11,5 @@ export declare type TabProps = HTMLProps & {
11
11
  asBadge?: boolean;
12
12
  size?: Size;
13
13
  };
14
- export declare const Tab: FC<TabProps>;
14
+ export declare const Tab: React.FC<TabProps>;
15
15
  export {};
@@ -1,3 +1,3 @@
1
- import { FC, HTMLAttributes } from 'react';
2
- export declare const TabsWrapper: FC<HTMLAttributes<HTMLDivElement>>;
3
- export declare const TabsList: FC<HTMLAttributes<HTMLDivElement>>;
1
+ import * as React from 'react';
2
+ export declare const TabsWrapper: React.FC<React.HTMLAttributes<HTMLDivElement>>;
3
+ export declare const TabsList: React.FC<React.HTMLAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
+ import * as React from 'react';
1
2
  import { IconSize, IconSource } from '../Icon';
2
- import { HTMLAttributes, FC } from 'react';
3
- export interface TagProps extends HTMLAttributes<HTMLDivElement> {
3
+ export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  kind?: 'default' | 'info' | 'warning' | 'success' | 'error' | 'purple' | 'black';
5
5
  size?: 'medium' | 'large';
6
6
  iconSize?: IconSize;
@@ -11,4 +11,4 @@ export interface TagProps extends HTMLAttributes<HTMLDivElement> {
11
11
  icon?: IconSource;
12
12
  avatar?: string;
13
13
  }
14
- export declare const Tag: FC<TagProps>;
14
+ export declare const Tag: React.FC<TagProps>;