@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.
- package/dist/components/ActionBar/ActionBar.d.ts +1 -1
- package/dist/components/ActionBar/ActionBarItem.d.ts +1 -1
- package/dist/components/ActionBar/constants.d.ts +1 -0
- package/dist/components/ActionCard/ActionCard.d.ts +3 -2
- package/dist/components/ActionMenu/ActionMenu.d.ts +1 -1
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +1 -1
- package/dist/components/ActionMenu/stories-constants.d.ts +4 -4
- package/dist/components/ActionMenu/types.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.helpers.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/DatePicker/DatePickerNavbar.d.ts +1 -1
- package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +1 -1
- package/dist/components/DatePicker/RangeDatePicker.d.ts +1 -0
- package/dist/components/DatePicker/helpers.d.ts +1 -0
- package/dist/components/DatePicker/hooks.d.ts +1 -0
- package/dist/components/DatePicker/types.d.ts +2 -1
- package/dist/components/DetailsCard/DetailsCard.d.ts +1 -1
- package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +1 -1
- package/dist/components/FieldDescription/FieldDescription.d.ts +1 -1
- package/dist/components/FieldError/FieldError.d.ts +1 -1
- package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +1 -1
- package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +1 -1
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +1 -1
- package/dist/components/Icon/IconsShowcase/constans.d.ts +1 -0
- package/dist/components/Icon/IconsShowcase/helpers.d.ts +1 -0
- package/dist/components/Icon/types.d.ts +3 -2
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +2 -2
- package/dist/components/Modal/components/ModalCloseButton.d.ts +1 -1
- package/dist/components/Modal/components/ModalHeader.d.ts +2 -2
- package/dist/components/Modal/components/ModalPortal.d.ts +1 -1
- package/dist/components/NumericInput/NumericInput.d.ts +1 -1
- package/dist/components/Picker/Picker.d.ts +1 -1
- package/dist/components/Picker/components/PickerList.d.ts +1 -1
- package/dist/components/Picker/components/PickerListItem.d.ts +1 -1
- package/dist/components/Picker/components/PickerTrigger.d.ts +1 -1
- package/dist/components/Picker/components/PickerTriggerBody.d.ts +1 -1
- package/dist/components/Picker/constants.d.ts +3 -29
- package/dist/components/Picker/helpers.d.ts +1 -0
- package/dist/components/Picker/hooks/useFloatingPicker.d.ts +4 -4
- package/dist/components/Picker/hooks/usePickerItems.d.ts +1 -0
- package/dist/components/Picker/types.d.ts +1 -0
- package/dist/components/Popover/Popover.d.ts +2 -2
- package/dist/components/Popover/types.d.ts +1 -1
- package/dist/components/Progress/ProgressBar.d.ts +1 -1
- package/dist/components/Progress/ProgressCircle.d.ts +1 -1
- package/dist/components/Progress/helpers.d.ts +1 -0
- package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/Skeleton/SkeletonWrapper.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Tab/Tab.d.ts +1 -1
- package/dist/components/Tab/TabsWrapper.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/types.d.ts +1 -1
- package/dist/components/TagInput/TagInput.d.ts +1 -1
- package/dist/components/TagInput/components/EditableTag.d.ts +2 -2
- package/dist/components/TagInput/components/EmailTagInput.d.ts +1 -1
- package/dist/components/TagInput/types.d.ts +1 -1
- package/dist/components/Toast/ToastWrapper.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.helpers.d.ts +1 -0
- package/dist/components/Tooltip/components/Info.d.ts +1 -1
- package/dist/components/Tooltip/components/Interactive.d.ts +1 -1
- package/dist/components/Tooltip/components/Reports.d.ts +1 -1
- package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +2 -2
- package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +1 -1
- package/dist/components/Tooltip/types.d.ts +1 -1
- package/dist/components/Typography/Display.d.ts +1 -1
- package/dist/components/Typography/Heading.d.ts +1 -1
- package/dist/components/Typography/Text.d.ts +1 -1
- package/dist/components/UploadBar/UploadBar.d.ts +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5961 -0
- package/dist/style.css +1 -1
- package/dist/utils/story-parameters.d.ts +1 -0
- package/package.json +38 -34
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -5695
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { default as noop } from '../../utils/noop';
|
|
2
|
+
|
|
3
3
|
export declare const exampleOptions: ({
|
|
4
4
|
key: string;
|
|
5
|
-
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:
|
|
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,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
|
|
@@ -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
|
|
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,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,
|
|
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;
|
|
@@ -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,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,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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,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,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 { 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,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<
|
|
18
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
19
19
|
setReference: (element: HTMLElement | null) => void;
|
|
20
|
-
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>
|
|
21
|
-
getItemProps: (userProps?: React.HTMLProps<HTMLElement
|
|
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>;
|
|
@@ -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>>;
|
|
@@ -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,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,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) => {
|