@livechat/design-system-react-components 1.25.0 → 2.0.0-alpha.1

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 (87) hide show
  1. package/dist/components/ActionBar/ActionBar.d.ts +1 -1
  2. package/dist/components/ActionBar/ActionBarItem.d.ts +1 -1
  3. package/dist/components/ActionBar/constants.d.ts +1 -0
  4. package/dist/components/ActionCard/ActionCard.d.ts +3 -2
  5. package/dist/components/ActionMenu/ActionMenu.d.ts +1 -1
  6. package/dist/components/ActionMenu/ActionMenuItem.d.ts +1 -1
  7. package/dist/components/ActionMenu/stories-constants.d.ts +4 -4
  8. package/dist/components/ActionMenu/types.d.ts +1 -1
  9. package/dist/components/Alert/Alert.d.ts +1 -1
  10. package/dist/components/Avatar/Avatar.d.ts +1 -1
  11. package/dist/components/Badge/Badge.d.ts +1 -1
  12. package/dist/components/Button/Button.d.ts +1 -1
  13. package/dist/components/Button/Button.helpers.d.ts +1 -0
  14. package/dist/components/Card/Card.d.ts +2 -2
  15. package/dist/components/DatePicker/DatePicker.d.ts +2 -2
  16. package/dist/components/DatePicker/DatePickerNavbar.d.ts +1 -1
  17. package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +1 -1
  18. package/dist/components/DatePicker/RangeDatePicker.d.ts +1 -0
  19. package/dist/components/DatePicker/helpers.d.ts +1 -0
  20. package/dist/components/DatePicker/hooks.d.ts +1 -0
  21. package/dist/components/DatePicker/types.d.ts +2 -1
  22. package/dist/components/DetailsCard/DetailsCard.d.ts +1 -1
  23. package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +1 -1
  24. package/dist/components/FieldDescription/FieldDescription.d.ts +1 -1
  25. package/dist/components/FieldError/FieldError.d.ts +1 -1
  26. package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +1 -1
  27. package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +1 -1
  28. package/dist/components/FormField/FormField.d.ts +1 -1
  29. package/dist/components/Icon/Icon.d.ts +2 -2
  30. package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +1 -1
  31. package/dist/components/Icon/IconsShowcase/constans.d.ts +1 -0
  32. package/dist/components/Icon/IconsShowcase/helpers.d.ts +1 -0
  33. package/dist/components/Icon/types.d.ts +3 -2
  34. package/dist/components/Link/Link.d.ts +1 -1
  35. package/dist/components/Modal/Modal.d.ts +2 -2
  36. package/dist/components/Modal/components/ModalCloseButton.d.ts +1 -1
  37. package/dist/components/Modal/components/ModalHeader.d.ts +2 -2
  38. package/dist/components/Modal/components/ModalPortal.d.ts +1 -1
  39. package/dist/components/NumericInput/NumericInput.d.ts +1 -1
  40. package/dist/components/Picker/Picker.d.ts +1 -1
  41. package/dist/components/Picker/components/PickerList.d.ts +1 -1
  42. package/dist/components/Picker/components/PickerListItem.d.ts +1 -1
  43. package/dist/components/Picker/components/PickerTrigger.d.ts +1 -1
  44. package/dist/components/Picker/components/PickerTriggerBody.d.ts +1 -1
  45. package/dist/components/Picker/constants.d.ts +3 -29
  46. package/dist/components/Picker/helpers.d.ts +1 -0
  47. package/dist/components/Picker/hooks/useFloatingPicker.d.ts +4 -4
  48. package/dist/components/Picker/hooks/usePickerItems.d.ts +1 -0
  49. package/dist/components/Picker/types.d.ts +1 -0
  50. package/dist/components/Popover/Popover.d.ts +2 -2
  51. package/dist/components/Popover/types.d.ts +1 -1
  52. package/dist/components/Progress/ProgressBar.d.ts +1 -1
  53. package/dist/components/Progress/ProgressCircle.d.ts +1 -1
  54. package/dist/components/Progress/helpers.d.ts +1 -0
  55. package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +1 -1
  56. package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  57. package/dist/components/Skeleton/SkeletonWrapper.d.ts +1 -1
  58. package/dist/components/Switch/Switch.d.ts +1 -1
  59. package/dist/components/Tab/Tab.d.ts +1 -1
  60. package/dist/components/Tab/TabsWrapper.d.ts +2 -2
  61. package/dist/components/Tag/Tag.d.ts +1 -1
  62. package/dist/components/Tag/types.d.ts +1 -1
  63. package/dist/components/TagInput/TagInput.d.ts +1 -1
  64. package/dist/components/TagInput/components/EditableTag.d.ts +2 -2
  65. package/dist/components/TagInput/components/EmailTagInput.d.ts +1 -1
  66. package/dist/components/TagInput/types.d.ts +1 -1
  67. package/dist/components/Toast/ToastWrapper.d.ts +1 -1
  68. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  69. package/dist/components/Tooltip/Tooltip.helpers.d.ts +1 -0
  70. package/dist/components/Tooltip/components/Info.d.ts +1 -1
  71. package/dist/components/Tooltip/components/Interactive.d.ts +1 -1
  72. package/dist/components/Tooltip/components/Reports.d.ts +1 -1
  73. package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +2 -2
  74. package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +1 -1
  75. package/dist/components/Tooltip/types.d.ts +1 -1
  76. package/dist/components/Typography/Display.d.ts +1 -1
  77. package/dist/components/Typography/Heading.d.ts +1 -1
  78. package/dist/components/Typography/Text.d.ts +1 -1
  79. package/dist/components/UploadBar/UploadBar.d.ts +1 -1
  80. package/dist/index.cjs +1 -0
  81. package/dist/index.d.ts +1 -0
  82. package/dist/index.js +5961 -0
  83. package/dist/style.css +1 -1
  84. package/dist/utils/story-parameters.d.ts +1 -0
  85. package/package.json +38 -34
  86. package/dist/index.cjs.js +0 -1
  87. package/dist/index.es.js +0 -5695
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
1
  import { IActionBarProps } from './types';
2
+ import * as React from 'react';
3
3
  export declare const ActionBar: React.FC<IActionBarProps>;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
1
  import { IActionBarItem } from './types';
2
+ import * as React from 'react';
3
3
  export declare const ActionBarItem: React.FC<IActionBarItem>;
@@ -1,2 +1,3 @@
1
1
  import { IActionBarOption } from './types';
2
+
2
3
  export declare const getDefaultOptions: (onClickHandler: (key: string) => void) => IActionBarOption[];
@@ -1,3 +1,4 @@
1
- import * as React from 'react';
1
+ import { FC, PropsWithChildren } from 'react';
2
2
  import { ActionCardProps } from './types';
3
- export declare const ActionCard: React.FC<ActionCardProps>;
3
+
4
+ export declare const ActionCard: FC<PropsWithChildren<ActionCardProps>>;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
1
  import { IActionMenuProps } from './types';
2
+ import * as React from 'react';
3
3
  export declare const ActionMenu: React.FC<IActionMenuProps>;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
1
  import { ActionMenuItemProps } from './types';
2
+ import * as React from 'react';
3
3
  export declare const ActionMenuItem: React.FC<React.PropsWithChildren<ActionMenuItemProps>>;
@@ -1,14 +1,14 @@
1
- import * as React from 'react';
2
- import noop from '../../utils/noop';
1
+ import { default as noop } from '../../utils/noop';
2
+
3
3
  export declare const exampleOptions: ({
4
4
  key: string;
5
- element: React.JSX.Element;
5
+ element: import("react/jsx-runtime").JSX.Element;
6
6
  onClick: typeof noop;
7
7
  disabled?: undefined;
8
8
  withDivider?: undefined;
9
9
  } | {
10
10
  key: string;
11
- element: React.JSX.Element;
11
+ element: import("react/jsx-runtime").JSX.Element;
12
12
  disabled: boolean;
13
13
  withDivider: boolean;
14
14
  onClick: typeof noop;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { Placement, flip, Strategy } from '@floating-ui/react';
3
2
  import { ComponentCoreProps } from '../../utils/types';
3
+ import * as React from 'react';
4
4
  export interface IActionMenuOption {
5
5
  key: string;
6
6
  element: React.ReactNode;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ComponentCoreProps } from '../../utils/types';
2
+ import * as React from 'react';
3
3
  type AlertKind = 'info' | 'warning' | 'success' | 'error';
4
4
  export interface AlertProps extends ComponentCoreProps {
5
5
  /**
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { ComponentCoreProps } from '../../utils/types';
3
2
  import { AvatarShape, AvatarSize, AvatarStatus, AvatarType } from './types';
3
+ import * as React from 'react';
4
4
  export interface AvatarProps extends ComponentCoreProps {
5
5
  /**
6
6
  * Alternate text for an image avatar
@@ -21,4 +21,4 @@ export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
21
21
  */
22
22
  type?: 'counter' | 'alert' | 'dot';
23
23
  }
24
- export declare const Badge: React.FC<BadgeProps>;
24
+ export declare const Badge: React.FC<React.PropsWithChildren<BadgeProps>>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ButtonKind, ButtonSize } from './types';
2
+ import * as React from 'react';
3
3
  export type ButtonProps = {
4
4
  /**
5
5
  * Specify the button kind
@@ -1,2 +1,3 @@
1
1
  import { ButtonKind } from './types';
2
+
2
3
  export declare const getSpinnerColors: (kind: ButtonKind) => Record<string, string> | undefined;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ButtonProps } from '../Button';
2
+ import * as React from 'react';
3
3
  export type CardButtonOptions = Pick<ButtonProps, 'children' | 'kind' | 'onClick'>;
4
4
  export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  /**
@@ -27,4 +27,4 @@ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
27
27
  */
28
28
  title?: string;
29
29
  }
30
- export declare const Card: React.FC<CardProps>;
30
+ export declare const Card: React.FC<React.PropsWithChildren<CardProps>>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import ReactDayPicker from 'react-day-picker';
1
+ import { default as ReactDayPicker } from 'react-day-picker';
3
2
  import { IDatePickerProps } from './types';
3
+ import * as React from 'react';
4
4
  export declare const DatePicker: React.ForwardRefExoticComponent<IDatePickerProps & React.RefAttributes<ReactDayPicker>>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
1
  import { IDatePickerNavbarProps } from './types';
2
+ import * as React from 'react';
3
3
  declare const DatePickerNavbar: React.FC<IDatePickerNavbarProps>;
4
4
  export default DatePickerNavbar;
@@ -1,2 +1,2 @@
1
1
  import * as React from 'react';
2
- export declare const DatePickerRangeCalendarsWrapper: React.FC<React.HTMLAttributes<HTMLDivElement>>;
2
+ export declare const DatePickerRangeCalendarsWrapper: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>>;
@@ -1,5 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { IRangeDatePickerProps } from './types';
3
+
3
4
  export declare const RangeDatePicker: {
4
5
  ({ options, initialSelectedItemKey, initialFromDate, initialToDate, toMonth, onChange, children, }: IRangeDatePickerProps): ReactElement;
5
6
  defaultProps: {
@@ -1,6 +1,7 @@
1
1
  import { Modifiers } from 'react-day-picker';
2
2
  import { ClassNames } from 'react-day-picker/types/ClassNames';
3
3
  import { IRangeDatePickerProps, IRangeDatePickerState, IRangeDatePickerOption } from './types';
4
+
4
5
  export declare const isDateWithinRange: (date: Date, range: {
5
6
  from?: Date;
6
7
  to?: Date;
@@ -1,5 +1,6 @@
1
1
  import { Dispatch, ReducerAction, ReducerState } from 'react';
2
2
  import { IRangeDatePickerProps, RangeDatePickerReducer } from './types';
3
+
3
4
  export declare const useRangeDatePickerState: (props: IRangeDatePickerProps) => [
4
5
  ReducerState<RangeDatePickerReducer>,
5
6
  Dispatch<ReducerAction<RangeDatePickerReducer>>
@@ -1,6 +1,7 @@
1
1
  import { Reducer, Ref, ReactElement } from 'react';
2
- import ReactDayPicker, { DayPickerProps } from 'react-day-picker';
2
+ import { default as ReactDayPicker, DayPickerProps } from 'react-day-picker';
3
3
  import { ClassNames } from 'react-day-picker/types/ClassNames';
4
+
4
5
  export interface IDatePickerProps extends Omit<DayPickerProps, 'todayButton' | 'showWeekNumbers'> {
5
6
  innerRef?: Ref<ReactDayPicker>;
6
7
  range?: boolean;
@@ -37,4 +37,4 @@ export interface IDetailsCardProps {
37
37
  */
38
38
  onClick?: () => void;
39
39
  }
40
- export declare const DetailsCard: React.FC<IDetailsCardProps>;
40
+ export declare const DetailsCard: React.FC<React.PropsWithChildren<IDetailsCardProps>>;
@@ -5,4 +5,4 @@ export interface IDetailsCardInfoProps {
5
5
  */
6
6
  label: string;
7
7
  }
8
- export declare const DetailsCardInfo: React.FC<IDetailsCardInfoProps>;
8
+ export declare const DetailsCardInfo: React.FC<React.PropsWithChildren<IDetailsCardInfoProps>>;
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
2
  export type FieldDescriptionProps = React.HTMLAttributes<HTMLSpanElement>;
3
- export declare const FieldDescription: React.FC<FieldDescriptionProps>;
3
+ export declare const FieldDescription: React.FC<React.PropsWithChildren<FieldDescriptionProps>>;
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
2
  export type FieldErrorProps = React.HTMLAttributes<HTMLSpanElement>;
3
- export declare const FieldError: React.FC<FieldErrorProps>;
3
+ export declare const FieldError: React.FC<React.PropsWithChildren<FieldErrorProps>>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ProgressSize, ProgressStatus } from '../Progress/constants';
2
+ import * as React from 'react';
3
3
  export type UploadProgressActionState = 'visible' | 'hover' | 'hidden';
4
4
  export interface FileUploadProgressProps {
5
5
  /**
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ProgressStatus } from '../Progress/constants';
2
+ import * as React from 'react';
3
3
  interface FileUploadProgressActionsProps {
4
4
  status: ProgressStatus;
5
5
  onCloseButtonClick?: () => void;
@@ -37,4 +37,4 @@ export interface FormFieldProps {
37
37
  */
38
38
  labelRightNode?: React.ReactNode;
39
39
  }
40
- export declare const FormField: React.FC<FormFieldProps>;
40
+ export declare const FormField: React.FC<React.PropsWithChildren<FormFieldProps>>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { IconSource } from './types';
2
+ import * as React from 'react';
3
3
  export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
4
4
  export type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error' | 'negative' | 'positive' | 'action-primary' | 'action-negative' | 'action-positive' | 'action-warning' | 'action-neutral' | 'lock-black';
5
5
  export interface IconProps {
@@ -28,5 +28,5 @@ export interface IconProps {
28
28
  */
29
29
  customColor?: string;
30
30
  }
31
- export declare const Icon: React.FC<IconProps>;
31
+ export declare const Icon: React.FC<React.PropsWithChildren<IconProps>>;
32
32
  export default Icon;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { IconSource } from '../index';
3
2
  import { IconName } from './types';
3
+ import * as React from 'react';
4
4
  export type IconsMap = {
5
5
  [key: string]: IconSource;
6
6
  };
@@ -1,2 +1,3 @@
1
1
  import { IconGroup, IconName } from './types';
2
+
2
3
  export declare const IconsData: Record<IconName, IconGroup>;
@@ -1,2 +1,3 @@
1
1
  import { IconGroup, IconName } from './types';
2
+
2
3
  export declare const getIconsByGroup: (group: IconGroup) => IconName[];
@@ -1,2 +1,3 @@
1
- import * as React from 'react';
2
- export type IconSource = React.FC<React.SVGProps<SVGSVGElement>>;
1
+ import { FC, SVGProps } from 'react';
2
+
3
+ export type IconSource = FC<SVGProps<SVGSVGElement>>;
@@ -11,4 +11,4 @@ export interface LinkProps extends React.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: React.FC<LinkProps>;
14
+ export declare const Link: React.FC<React.PropsWithChildren<LinkProps>>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ModalBaseProps } from './components/ModalBase';
2
+ import * as React from 'react';
3
3
  export interface ModalProps extends ModalBaseProps {
4
4
  /**
5
5
  * Header element. For consistent UI use `<ModalHeader/>`
@@ -22,4 +22,4 @@ export interface ModalProps extends ModalBaseProps {
22
22
  */
23
23
  contentClassName?: string;
24
24
  }
25
- export declare const Modal: React.FC<ModalProps>;
25
+ export declare const Modal: React.FC<React.PropsWithChildren<ModalProps>>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ButtonProps } from '../../Button';
2
+ import * as React from 'react';
3
3
  export interface ModalCloseButtonProps extends ButtonProps {
4
4
  labelType?: boolean;
5
5
  customColor?: string;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { AvatarProps } from '../../Avatar';
3
2
  import { IconProps } from '../../Icon';
3
+ import * as React from 'react';
4
4
  export interface ModalHeaderProps {
5
5
  /**
6
6
  * Set the header title
@@ -23,4 +23,4 @@ export interface ModalHeaderProps {
23
23
  */
24
24
  className?: string;
25
25
  }
26
- export declare const ModalHeader: React.FC<ModalHeaderProps>;
26
+ export declare const ModalHeader: React.FC<React.PropsWithChildren<ModalHeaderProps>>;
@@ -4,4 +4,4 @@ export interface ModalPortalProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  zIndex: number;
5
5
  parentElementName?: string;
6
6
  }
7
- export declare const ModalPortal: React.FC<ModalPortalProps>;
7
+ export declare const ModalPortal: React.FC<React.PropsWithChildren<ModalPortalProps>>;
@@ -9,4 +9,4 @@ export type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & {
9
9
  noControls?: boolean;
10
10
  onChange: (value: string) => void;
11
11
  };
12
- export declare const NumericInput: React.FC<NumericInputProps>;
12
+ export declare const NumericInput: React.FC<React.PropsWithChildren<NumericInputProps>>;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
1
  import { IPickerProps } from './types';
2
+ import * as React from 'react';
3
3
  export declare const Picker: React.FC<IPickerProps>;
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
1
  import { FloatingContext } from '@floating-ui/react';
3
2
  import { VirtuosoProps } from 'react-virtuoso';
4
3
  import { IPickerListItem } from '../types';
4
+ import * as React from 'react';
5
5
  export interface IPickerListProps {
6
6
  pickerType?: 'single' | 'multi';
7
7
  options: IPickerListItem[];
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { IPickerListItem } from '../types';
2
+ import * as React from 'react';
3
3
  interface IPickerListItemProps {
4
4
  index: number;
5
5
  isActive: boolean;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { Size } from '../../../utils';
2
+ import * as React from 'react';
3
3
  export interface PickerTriggerProps {
4
4
  setReference: (element: HTMLElement | null) => void;
5
5
  getReferenceProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { Size } from '../../../utils';
3
2
  import { PickerType, IPickerListItem } from '../types';
3
+ import * as React from 'react';
4
4
  export interface ITriggerBodyProps {
5
5
  isOpen: boolean;
6
6
  isSearchDisabled?: boolean;
@@ -1,3 +1,5 @@
1
+ import { IPickerListItem } from './types';
2
+
1
3
  export declare const ITEM_GAP_HEIGHT = 2;
2
4
  export declare const MIN_LIST_HEIGHT = 200;
3
5
  export declare const DEFAULT_LIST_HEIGHT = 400;
@@ -34,33 +36,5 @@ export declare const DEFAULT_EXTENDED_OPTIONS: ({
34
36
  disabled: boolean;
35
37
  groupHeader?: undefined;
36
38
  })[];
37
- export declare const DEFAULT_MORE_PICKER_OPTIONS: ({
38
- key: string;
39
- name: string;
40
- secondaryText: string;
41
- showCheckbox?: undefined;
42
- icon?: undefined;
43
- avatarSrc?: undefined;
44
- } | {
45
- key: string;
46
- name: string;
47
- showCheckbox: boolean;
48
- secondaryText?: undefined;
49
- icon?: undefined;
50
- avatarSrc?: undefined;
51
- } | {
52
- key: string;
53
- name: string;
54
- icon: (props: import("react").SVGProps<SVGSVGElement>) => JSX.Element;
55
- secondaryText?: undefined;
56
- showCheckbox?: undefined;
57
- avatarSrc?: undefined;
58
- } | {
59
- key: string;
60
- name: string;
61
- avatarSrc: string;
62
- secondaryText?: undefined;
63
- showCheckbox?: undefined;
64
- icon?: undefined;
65
- })[];
39
+ export declare const DEFAULT_MORE_PICKER_OPTIONS: IPickerListItem[];
66
40
  export declare const SELECT_ALL_OPTION_KEY = "select-all";
@@ -1,4 +1,5 @@
1
1
  import { IPickerListItem } from './types';
2
+
2
3
  export declare const findIndicesWhere: <T>(array: T[], predicate: (item: T) => boolean) => number[];
3
4
  export declare const getNormalizedItems: (items: IPickerListItem[]) => IPickerListItem[];
4
5
  export declare const getPickerListItemKey: ({ key }: IPickerListItem) => string;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { FloatingContext, Placement, Strategy, UseClickProps, UseDismissProps } from '@floating-ui/react';
3
2
  import { IPickerListItem } from '../types';
3
+ import * as React from 'react';
4
4
  interface UseFloatingPickerProps {
5
5
  disabled?: boolean;
6
6
  items: IPickerListItem[];
@@ -15,10 +15,10 @@ interface UseFloatingPickerProps {
15
15
  onVisibilityChange?: (open: boolean, event?: Event | undefined) => void;
16
16
  }
17
17
  interface IUseFloatingPicker {
18
- getReferenceProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
18
+ getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
19
19
  setReference: (element: HTMLElement | null) => void;
20
- getFloatingProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
21
- getItemProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
20
+ getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
21
+ getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, 'selected' | 'active'>) => Record<string, unknown>;
22
22
  floatingStyles: React.CSSProperties;
23
23
  isPositioned: boolean;
24
24
  context: FloatingContext<HTMLButtonElement>;
@@ -1,4 +1,5 @@
1
1
  import { IPickerListItem } from '../types';
2
+
2
3
  interface UsePickerItemsProps {
3
4
  selected?: IPickerListItem[] | null;
4
5
  options: IPickerListItem[];
@@ -4,6 +4,7 @@ import { VirtuosoProps } from 'react-virtuoso';
4
4
  import { Size } from '../../utils';
5
5
  import { ComponentCoreProps } from '../../utils/types';
6
6
  import { IconSource } from '../Icon';
7
+
7
8
  export interface IPickerListItem {
8
9
  key: string;
9
10
  name: string;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
1
  import { IPopoverProps } from './types';
3
- export declare const Popover: React.FC<IPopoverProps>;
2
+ import * as React from 'react';
3
+ export declare const Popover: React.FC<React.PropsWithChildren<IPopoverProps>>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { Placement, UseClickProps, UseDismissProps, FlipOptions, Strategy } from '@floating-ui/react';
2
+ import * as React from 'react';
3
3
  export interface IPopoverProps {
4
4
  children?: React.ReactNode;
5
5
  /**
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ProgressSize, ProgressStatus } from './constants';
2
+ import * as React from 'react';
3
3
  export interface ProgressBarProps {
4
4
  /**
5
5
  * The CSS class for container
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ProgressSize, ProgressStatus } from './constants';
2
+ import * as React from 'react';
3
3
  export interface ProgressCircleProps {
4
4
  /**
5
5
  * The CSS class for container
@@ -1,3 +1,4 @@
1
1
  import { ProgressStatus } from './constants';
2
+
2
3
  export declare function getPercentNumber(status: ProgressStatus, percent?: number): number;
3
4
  export declare function getProgressStatus(status: ProgressStatus, percent: number): ProgressStatus;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ButtonKind } from '../Button';
2
+ import * as React from 'react';
3
3
  export interface IPromoBannerV2Props {
4
4
  /**
5
5
  * Specify an optional className to be applied to the main container node
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ButtonProps } from '../Button';
2
+ import * as React from 'react';
3
3
  export type ButtonSize = 'compact' | 'medium' | 'large';
4
4
  type ButtonElement = {
5
5
  id: string;
@@ -13,4 +13,4 @@ export interface ISkeletonWrapper extends React.HTMLAttributes<HTMLDivElement> {
13
13
  */
14
14
  animated?: boolean;
15
15
  }
16
- export declare const SkeletonWrapper: React.FC<ISkeletonWrapper>;
16
+ export declare const SkeletonWrapper: React.FC<React.PropsWithChildren<ISkeletonWrapper>>;
@@ -44,4 +44,4 @@ export interface SwitchProps {
44
44
  */
45
45
  state?: SwitchState;
46
46
  }
47
- export declare const Switch: React.FC<SwitchProps>;
47
+ export declare const Switch: React.FC<React.PropsWithChildren<SwitchProps>>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { Size } from '../../utils';
2
+ import * as React from 'react';
3
3
  type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
4
4
  href: string;
5
5
  }) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
@@ -1,3 +1,3 @@
1
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>>;
2
+ export declare const TabsWrapper: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>>;
3
+ export declare const TabsList: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>>;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
1
  import { TagProps } from './types';
2
+ import * as React from 'react';
3
3
  export declare const Tag: React.FC<React.PropsWithChildren<TagProps>>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { kinds, sizes } from './constants';
2
+ import * as React from 'react';
3
3
  export type TagKind = (typeof kinds)[number];
4
4
  export type TagSize = (typeof sizes)[number];
5
5
  export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
1
  import { TagInputProps, TagInputValues } from './types';
2
+ import * as React from 'react';
3
3
  export declare const TagInput: <T extends TagInputValues>({ id, tags, onChange, validator, error, placeholder, size, className, inputClassName, onBlur, addOnBlur, ...props }: TagInputProps<T>) => React.ReactElement;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { TagProps } from '../../Tag';
2
+ import * as React from 'react';
3
3
  export interface EditableTagProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  inputRef: React.RefObject<HTMLInputElement>;
5
5
  index: number;
@@ -10,4 +10,4 @@ export interface EditableTagProps extends React.HTMLAttributes<HTMLDivElement> {
10
10
  size: 'medium' | 'large';
11
11
  tagProps?: TagProps;
12
12
  }
13
- export declare const EditableTag: React.FC<EditableTagProps>;
13
+ export declare const EditableTag: React.FC<React.PropsWithChildren<EditableTagProps>>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { TagInputProps, TagInputValues } from '../types';
2
+ import * as React from 'react';
3
3
  export type EmailTagInputProps<T> = Omit<TagInputProps<T>, 'validator'>;
4
4
  export declare const emailRegex: RegExp;
5
5
  export declare const EmailTagInput: <T extends TagInputValues>({ placeholder, ...props }: EmailTagInputProps<T>) => React.ReactElement;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { TagProps } from '../Tag';
2
+ import * as React from 'react';
3
3
  export interface TagInputProps<T> extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'> {
4
4
  /**
5
5
  * Set the id for input
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ToastProps, Toast } from './Toast';
2
+ import * as React from 'react';
3
3
  type HorizontalPosition = 'left' | 'center' | 'right';
4
4
  type VerticalPosition = 'top' | 'bottom';
5
5
  export declare const ANIMATION_TIME = 200;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
1
  import { ITooltipProps } from './types';
2
+ import * as React from 'react';
3
3
  export declare const Tooltip: React.FC<React.PropsWithChildren<ITooltipProps>>;
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { IconKind } from '../Icon';
3
3
  import { TooltipTheme } from './types';
4
+
4
5
  export declare function getIconType(theme: TooltipTheme): IconKind;
5
6
  export declare function getArrowPositionStyles(arrowOffsetY?: number, arrowOffsetX?: number, arrowY?: number, arrowX?: number): CSSProperties | undefined;
6
7
  export declare const getArrowTokens: (tooltipStyle: string | undefined) => {