@ssa-ui-kit/core 2.30.0 → 2.32.0-canary-b64be64-20251219
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/Charts/BarLineComplexChart/BarLineComplexChartView.d.ts +2 -2
- package/dist/components/Charts/BarLineComplexChart/types.d.ts +2 -2
- package/dist/components/Charts/BigNumberChart/BigNumberChart.d.ts +4 -2
- package/dist/components/Charts/BigNumberChart/components/TrendLine.d.ts +8 -3
- package/dist/components/Charts/BigNumberChart/components/TrendLineTooltip.d.ts +8 -5
- package/dist/components/Charts/GaugeChart/components/GaugeChartBase.d.ts +3 -1
- package/dist/components/Charts/PieChart/types.d.ts +1 -1
- package/dist/components/Charts/RadarChart/RadarChart.d.ts +1 -1
- package/dist/components/Charts/TreeMapChart/TreeMapChart.d.ts +1 -1
- package/dist/components/Charts/index.d.ts +1 -0
- package/dist/components/Charts/utils/nivoReact19Compat.d.ts +13 -0
- package/dist/components/Checkbox/types.d.ts +2 -2
- package/dist/components/Chip/Chip.d.ts +2 -0
- package/dist/components/Chip/constants.d.ts +22 -0
- package/dist/components/Chip/helpers.d.ts +13 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/styles.d.ts +35 -0
- package/dist/components/Chip/types.d.ts +23 -0
- package/dist/components/CollapsibleNavBar/components/TriggerIcon.d.ts +4 -2
- package/dist/components/DatePicker/styles.d.ts +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker/components/DatesListWrapper.d.ts +0 -1
- package/dist/components/DateRangePicker/components/TriggerInput.d.ts +1 -4
- package/dist/components/DateRangePicker/hooks/index.d.ts +1 -0
- package/dist/components/DateRangePicker/hooks/useDatePickerMask.d.ts +3 -9
- package/dist/components/DateRangePicker/hooks/useDateRangePicker.d.ts +21 -18
- package/dist/components/DateRangePicker/hooks/useRangeSelection.d.ts +20 -0
- package/dist/components/DateRangePicker/styles.d.ts +0 -2
- package/dist/components/DateRangePicker/types.d.ts +6 -4
- package/dist/components/DateRangePicker/useDateRangePickerContext.d.ts +2 -1
- package/dist/components/Field/FieldControl.d.ts +1 -1
- package/dist/components/Filters/FilterBlockWrapper.d.ts +0 -1
- package/dist/components/Filters/FiltersContext.d.ts +4 -4
- package/dist/components/Filters/hooks/useVisibility.d.ts +2 -2
- package/dist/components/Indicator/types.d.ts +4 -2
- package/dist/components/JsonSchemaForm/constants.d.ts +1 -0
- package/dist/components/JsonSchemaForm/index.d.ts +2 -0
- package/dist/components/JsonSchemaForm/types.d.ts +6 -0
- package/dist/components/ModalDismissButton/ModalDismissButton.d.ts +2 -2
- package/dist/components/ModalOpenButton/ModalOpenButton.d.ts +1 -1
- package/dist/components/NavBar/types.d.ts +1 -1
- package/dist/components/NotificationMenu/types.d.ts +3 -3
- package/dist/components/Pagination/WithPagination.d.ts +2 -4
- package/dist/components/PersonInfo/PersonInfo.d.ts +3 -0
- package/dist/components/PersonInfo/PersonInfoAvatar.d.ts +3 -0
- package/dist/components/PersonInfo/PersonInfoBadges.d.ts +8 -0
- package/dist/components/PersonInfo/PersonInfoCounter.d.ts +3 -0
- package/dist/components/PersonInfo/PersonInfoIcon.d.ts +7 -0
- package/dist/components/PersonInfo/PersonInfoValue.d.ts +3 -0
- package/dist/components/PersonInfo/constants.d.ts +9 -0
- package/dist/components/PersonInfo/helpers.d.ts +11 -0
- package/dist/components/PersonInfo/index.d.ts +2 -0
- package/dist/components/PersonInfo/styles.d.ts +71 -0
- package/dist/components/PersonInfo/types.d.ts +48 -0
- package/dist/components/TableFilters/hooks/useTableData.d.ts +3 -3
- package/dist/components/Tooltip/SimpleChartTooltip.d.ts +2 -1
- package/dist/components/Tooltip/types.d.ts +6 -5
- package/dist/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
- package/dist/components/Typeahead/Typeahead.context.d.ts +4 -4
- package/dist/components/Typeahead/components/TypeaheadOption.d.ts +1 -1
- package/dist/components/Typeahead/styles.d.ts +4 -1
- package/dist/components/Typeahead/types.d.ts +1 -0
- package/dist/components/Typeahead/useTypeahead.d.ts +4 -4
- package/dist/components/UserProfile/styles.d.ts +0 -2
- package/dist/components/UserProfile/types.d.ts +1 -1
- package/dist/components/WithLink.d.ts +1 -1
- package/dist/components/Wrapper/Wrapper.d.ts +0 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1389 -458
- package/dist/index.js.map +1 -1
- package/dist/utils/react19HocCompat.d.ts +14 -0
- package/package.json +30 -30
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PersonInfoStyles } from './types';
|
|
3
|
+
interface PersonInfoBadgesProps {
|
|
4
|
+
badges: React.ReactNode | (string | React.ReactNode)[];
|
|
5
|
+
styles?: PersonInfoStyles;
|
|
6
|
+
}
|
|
7
|
+
export declare const PersonInfoBadges: React.FC<PersonInfoBadgesProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Theme } from '@emotion/react';
|
|
2
|
+
type BadgeColorName = keyof MainColors;
|
|
3
|
+
export declare const DEFAULT_BADGE_COLORS: Array<keyof MainColors>;
|
|
4
|
+
interface BadgeColorConfig {
|
|
5
|
+
text: string;
|
|
6
|
+
bg: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const BADGE_COLORS: (theme: Theme) => Record<BadgeColorName, BadgeColorConfig>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const getLinkAttributes: (link?: string, openLinkInNewTab?: boolean) => {
|
|
2
|
+
as: "a";
|
|
3
|
+
href: string | undefined;
|
|
4
|
+
target: string | undefined;
|
|
5
|
+
rel: string | undefined;
|
|
6
|
+
} | {
|
|
7
|
+
as?: undefined;
|
|
8
|
+
href?: undefined;
|
|
9
|
+
target?: undefined;
|
|
10
|
+
rel?: undefined;
|
|
11
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Interpolation, Theme } from '@emotion/react';
|
|
2
|
+
import { CommonProps } from '../../types/emotion';
|
|
3
|
+
export declare const PersonInfoBase: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
} & CommonProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const PersonInfoHeader: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: Theme;
|
|
9
|
+
as?: React.ElementType;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
+
export declare const TitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: Theme;
|
|
17
|
+
as?: React.ElementType;
|
|
18
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export declare const Title: import("@emotion/styled").StyledComponent<{
|
|
20
|
+
theme?: Theme;
|
|
21
|
+
as?: React.ElementType;
|
|
22
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
+
export declare const Row: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: Theme;
|
|
25
|
+
as?: React.ElementType;
|
|
26
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
27
|
+
export declare const TextBase: import("@emotion/styled").StyledComponent<{
|
|
28
|
+
theme?: Theme;
|
|
29
|
+
as?: React.ElementType;
|
|
30
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
31
|
+
export declare const ValueWithCounter: import("@emotion/styled").StyledComponent<{
|
|
32
|
+
theme?: Theme;
|
|
33
|
+
as?: React.ElementType;
|
|
34
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
35
|
+
export declare const Counter: import("@emotion/styled").StyledComponent<{
|
|
36
|
+
theme?: Theme;
|
|
37
|
+
as?: React.ElementType;
|
|
38
|
+
} & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
39
|
+
theme?: Theme;
|
|
40
|
+
}, {}, {}>;
|
|
41
|
+
export declare const CounterTooltipContent: import("@emotion/styled").StyledComponent<{
|
|
42
|
+
theme?: Theme;
|
|
43
|
+
as?: React.ElementType;
|
|
44
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
45
|
+
export declare const CounterTooltipList: import("@emotion/styled").StyledComponent<{
|
|
46
|
+
theme?: Theme;
|
|
47
|
+
as?: React.ElementType;
|
|
48
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
49
|
+
export declare const AttributesList: import("@emotion/styled").StyledComponent<{
|
|
50
|
+
theme?: Theme;
|
|
51
|
+
as?: React.ElementType;
|
|
52
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
53
|
+
export declare const AvatarWrapper: import("@emotion/styled").StyledComponent<{
|
|
54
|
+
theme?: Theme;
|
|
55
|
+
as?: React.ElementType;
|
|
56
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
57
|
+
export declare const BadgeWrapper: import("@emotion/styled").StyledComponent<{
|
|
58
|
+
theme?: Theme;
|
|
59
|
+
as?: React.ElementType;
|
|
60
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
61
|
+
export declare const StyledBadge: import("@emotion/styled").StyledComponent<Omit<Omit<import("react").HTMLProps<HTMLDivElement>, "size"> & import("../Badge/types").BadgeProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
|
|
62
|
+
theme?: Theme;
|
|
63
|
+
}, {}, {}>;
|
|
64
|
+
export declare const CustomBadge: import("@emotion/styled").StyledComponent<{
|
|
65
|
+
theme?: Theme;
|
|
66
|
+
as?: React.ElementType;
|
|
67
|
+
} & {
|
|
68
|
+
colorName: keyof MainColors;
|
|
69
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
70
|
+
export declare const personInfoValueLinkStyles: Interpolation<Theme>;
|
|
71
|
+
export declare const avatarWrapperLinkStyles: Interpolation<Theme>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Interpolation, Theme } from '@emotion/react';
|
|
3
|
+
import { CommonProps } from '../../types/emotion';
|
|
4
|
+
import { IconProps } from '../Icon/types';
|
|
5
|
+
import { getLinkAttributes } from './helpers';
|
|
6
|
+
type PersonInfoStyleKeys = 'title' | 'avatarName' | 'counter' | 'attributes' | 'badge' | 'badgeItem' | 'value' | 'description';
|
|
7
|
+
export type PersonInfoStyles = Partial<Record<PersonInfoStyleKeys, Interpolation<Theme>>>;
|
|
8
|
+
export interface PersonInfoCounterTooltipUser {
|
|
9
|
+
id: string | number;
|
|
10
|
+
name: string;
|
|
11
|
+
avatar: string;
|
|
12
|
+
link?: string;
|
|
13
|
+
openLinkInNewTab?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface PersonInfoCounterTooltip {
|
|
16
|
+
users: PersonInfoCounterTooltipUser[];
|
|
17
|
+
}
|
|
18
|
+
export type PersonInfoLinkAttributes = ReturnType<typeof getLinkAttributes>;
|
|
19
|
+
export interface PersonInfoValueProps {
|
|
20
|
+
value: string;
|
|
21
|
+
css?: Interpolation<Theme>;
|
|
22
|
+
linkAttributes?: PersonInfoLinkAttributes;
|
|
23
|
+
}
|
|
24
|
+
export interface PersonInfoProps extends CommonProps {
|
|
25
|
+
title: string;
|
|
26
|
+
icon?: IconProps['name'] | ReactNode;
|
|
27
|
+
value?: string;
|
|
28
|
+
badges?: ReactNode | (string | ReactNode)[];
|
|
29
|
+
avatar?: string;
|
|
30
|
+
counterTooltip?: PersonInfoCounterTooltip;
|
|
31
|
+
attributes?: (string | ReactNode)[];
|
|
32
|
+
description?: string;
|
|
33
|
+
styles?: PersonInfoStyles;
|
|
34
|
+
link?: string;
|
|
35
|
+
openLinkInNewTab?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface PersonInfoAvatarProps {
|
|
38
|
+
avatar?: string;
|
|
39
|
+
value?: string;
|
|
40
|
+
styles?: PersonInfoStyles;
|
|
41
|
+
link?: string;
|
|
42
|
+
openLinkInNewTab?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface PersonInfoCounterProps {
|
|
45
|
+
counterTooltip?: PersonInfoCounterTooltip;
|
|
46
|
+
css?: PersonInfoStyles['counter'];
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { BaseSyntheticEvent } from 'react';
|
|
|
2
2
|
import { TableFilterConfig } from '../types';
|
|
3
3
|
export interface UseTableDataParameters {
|
|
4
4
|
initialState?: TableFilterConfig;
|
|
5
|
-
wrapperRef?: React.RefObject<HTMLElement>;
|
|
5
|
+
wrapperRef?: React.RefObject<HTMLElement | null>;
|
|
6
6
|
updatedCheckboxData?: TableFilterConfig;
|
|
7
7
|
handleCancel?: () => void;
|
|
8
8
|
handleClear?: () => void;
|
|
@@ -15,8 +15,8 @@ export interface UseTableDataParameters {
|
|
|
15
15
|
}
|
|
16
16
|
export declare const useTableData: ({ initialState, wrapperRef, updatedCheckboxData, handleCancel, handleSubmit, handleClear, handleDropdownChange, }: UseTableDataParameters) => {
|
|
17
17
|
checkboxData: TableFilterConfig;
|
|
18
|
-
wrapperRef: import("react").RefObject<HTMLElement> | undefined;
|
|
19
|
-
refsList: import("react").
|
|
18
|
+
wrapperRef: import("react").RefObject<HTMLElement | null> | undefined;
|
|
19
|
+
refsList: import("react").RefObject<HTMLElement | null>[];
|
|
20
20
|
setElementRef: (groupName: string, element: HTMLElement | null) => void;
|
|
21
21
|
onCheckboxToggle: (groupName: string, name: string | number) => void;
|
|
22
22
|
onDropdownChange: (groupName: string, name: string | number) => void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { LineSeries } from '@nivo/line';
|
|
1
2
|
import { SimpleChartTooltipProps } from './types';
|
|
2
|
-
export declare const SimpleChartTooltip: ({ point, size, renderValue, }: SimpleChartTooltipProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const SimpleChartTooltip: <Series extends LineSeries>({ point, size, renderValue, }: SimpleChartTooltipProps<Series>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useInteractions, FloatingArrow, Placement, UseFloatingReturn, OffsetOptions } from '@floating-ui/react';
|
|
2
|
-
import { PointTooltipProps, Point } from '@nivo/line';
|
|
2
|
+
import { PointTooltipProps, Point, LineSeries } from '@nivo/line';
|
|
3
3
|
import { MapIconsType } from '../Icon/types';
|
|
4
4
|
import { ProgressBarProps } from '../ProgressBar/types';
|
|
5
5
|
import { SerializedStyles } from '@emotion/react';
|
|
@@ -12,6 +12,7 @@ export interface TooltipProps extends CommonProps {
|
|
|
12
12
|
enableClick?: boolean;
|
|
13
13
|
enableClientPoint?: boolean;
|
|
14
14
|
offsetOptions?: OffsetOptions;
|
|
15
|
+
allowHoverContent?: boolean;
|
|
15
16
|
size?: TooltipSize;
|
|
16
17
|
hasArrow?: boolean;
|
|
17
18
|
arrowProps?: TooltipArrowProps;
|
|
@@ -19,11 +20,11 @@ export interface TooltipProps extends CommonProps {
|
|
|
19
20
|
}
|
|
20
21
|
export type UseTooltipArgs = Omit<TooltipProps, 'children'>;
|
|
21
22
|
type UseInteractions = ReturnType<typeof useInteractions>;
|
|
22
|
-
interface
|
|
23
|
+
interface RefObject<T> {
|
|
23
24
|
current: T;
|
|
24
25
|
}
|
|
25
26
|
export type UseTooltip = (props?: UseTooltipArgs) => Pick<TooltipProps, 'size' | 'hasArrow' | 'arrowProps'> & {
|
|
26
|
-
arrowRef:
|
|
27
|
+
arrowRef: RefObject<null>;
|
|
27
28
|
isOpen: boolean;
|
|
28
29
|
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
29
30
|
} & UseFloatingReturn & UseInteractions;
|
|
@@ -47,8 +48,8 @@ export interface TooltipTriggerProps {
|
|
|
47
48
|
children: React.ReactNode;
|
|
48
49
|
className?: string;
|
|
49
50
|
}
|
|
50
|
-
export type SimpleChartTooltipProps = PointTooltipProps & Pick<TooltipProps, 'size'> & {
|
|
51
|
-
renderValue?: (data: Point['data']) => React.ReactNode;
|
|
51
|
+
export type SimpleChartTooltipProps<Series extends LineSeries> = PointTooltipProps<Series> & Pick<TooltipProps, 'size'> & {
|
|
52
|
+
renderValue?: (data: Point<Series>['data']) => React.ReactNode;
|
|
52
53
|
};
|
|
53
54
|
export interface ProgressChartTooltipProps {
|
|
54
55
|
caption: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TooltipTriggerProps } from '../Tooltip/types';
|
|
2
|
-
declare const TooltipTrigger: ({ children, className }: TooltipTriggerProps) => import("react").ReactElement<
|
|
2
|
+
declare const TooltipTrigger: ({ children, className }: TooltipTriggerProps) => import("react").ReactElement<TooltipTriggerProps, string | import("react").JSXElementConstructor<any>> | null;
|
|
3
3
|
export default TooltipTrigger;
|
|
@@ -6,11 +6,11 @@ export declare const TypeaheadContext: React.Context<{
|
|
|
6
6
|
isDisabled: boolean | undefined;
|
|
7
7
|
optionsWithKey: Record<string | number, import("./types").TypeaheadOptionProps>;
|
|
8
8
|
selectedItems: import("./types").TypeaheadValue[];
|
|
9
|
-
inputRef: React.RefObject<HTMLInputElement>;
|
|
9
|
+
inputRef: React.RefObject<HTMLInputElement | null>;
|
|
10
10
|
firstSuggestion: string;
|
|
11
11
|
isMultiple: boolean | undefined;
|
|
12
12
|
typeaheadId: string;
|
|
13
|
-
triggerRef: React.RefObject<HTMLDivElement>;
|
|
13
|
+
triggerRef: React.RefObject<HTMLDivElement | null>;
|
|
14
14
|
className: string | undefined;
|
|
15
15
|
startIcon: React.ReactNode;
|
|
16
16
|
endIcon: React.ReactNode;
|
|
@@ -23,8 +23,8 @@ export declare const TypeaheadContext: React.Context<{
|
|
|
23
23
|
status: "error" | "success" | "basic";
|
|
24
24
|
error: import("react-hook-form").FieldError | import("react-hook-form").Merge<import("react-hook-form").FieldError, import("react-hook-form").FieldErrorsImpl<any>> | undefined;
|
|
25
25
|
placeholder: string | null | undefined;
|
|
26
|
-
options: (React.ReactElement<
|
|
27
|
-
useFormResult: UseFormReturn<FieldValues, any,
|
|
26
|
+
options: (React.ReactElement<any, string | React.JSXElementConstructor<any>> | null)[];
|
|
27
|
+
useFormResult: UseFormReturn<FieldValues, any, FieldValues>;
|
|
28
28
|
register: import("react-hook-form").UseFormRegister<FieldValues>;
|
|
29
29
|
setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
|
|
30
30
|
onChange: ((selectedItem: import("./types").TypeaheadValue, isSelected: boolean) => void) | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TypeaheadItemProps } from '../types';
|
|
2
|
-
export declare const TypeaheadOption: ({ children, ...rest }: TypeaheadItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TypeaheadOption: ({ children, avatar, ...rest }: TypeaheadItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -18,6 +18,10 @@ export declare const TypeaheadItem: import("@emotion/styled").StyledComponent<{
|
|
|
18
18
|
} & {
|
|
19
19
|
isDisabled?: boolean;
|
|
20
20
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
|
+
export declare const TypeaheadItemAvatar: import("@emotion/styled").StyledComponent<{
|
|
22
|
+
theme?: Theme;
|
|
23
|
+
as?: React.ElementType;
|
|
24
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
21
25
|
export declare const TypeaheadItemLabel: import("@emotion/styled").StyledComponent<{
|
|
22
26
|
theme?: Theme;
|
|
23
27
|
as?: React.ElementType;
|
|
@@ -31,7 +35,6 @@ export declare const TypeaheadInputsGroupWrapper: import("@emotion/styled").Styl
|
|
|
31
35
|
theme?: Theme;
|
|
32
36
|
as?: React.ElementType;
|
|
33
37
|
} & {
|
|
34
|
-
avatarSize?: number;
|
|
35
38
|
direction?: string;
|
|
36
39
|
alignItems?: string;
|
|
37
40
|
fade?: boolean;
|
|
@@ -6,11 +6,11 @@ export declare const useTypeahead: ({ name, isOpen: isInitOpen, selectedItems: p
|
|
|
6
6
|
isDisabled: boolean | undefined;
|
|
7
7
|
optionsWithKey: Record<string | number, TypeaheadOptionProps>;
|
|
8
8
|
selectedItems: TypeaheadValue[];
|
|
9
|
-
inputRef: React.RefObject<HTMLInputElement>;
|
|
9
|
+
inputRef: React.RefObject<HTMLInputElement | null>;
|
|
10
10
|
firstSuggestion: string;
|
|
11
11
|
isMultiple: boolean | undefined;
|
|
12
12
|
typeaheadId: string;
|
|
13
|
-
triggerRef: React.RefObject<HTMLDivElement>;
|
|
13
|
+
triggerRef: React.RefObject<HTMLDivElement | null>;
|
|
14
14
|
className: string | undefined;
|
|
15
15
|
startIcon: React.ReactNode;
|
|
16
16
|
endIcon: React.ReactNode;
|
|
@@ -23,8 +23,8 @@ export declare const useTypeahead: ({ name, isOpen: isInitOpen, selectedItems: p
|
|
|
23
23
|
status: "error" | "success" | "basic";
|
|
24
24
|
error: import("react-hook-form").FieldError | import("react-hook-form").Merge<import("react-hook-form").FieldError, import("react-hook-form").FieldErrorsImpl<any>> | undefined;
|
|
25
25
|
placeholder: string | null | undefined;
|
|
26
|
-
options: (React.ReactElement<
|
|
27
|
-
useFormResult: import("react-hook-form").UseFormReturn<import("react-hook-form").FieldValues, any,
|
|
26
|
+
options: (React.ReactElement<any, string | React.JSXElementConstructor<any>> | null)[];
|
|
27
|
+
useFormResult: import("react-hook-form").UseFormReturn<import("react-hook-form").FieldValues, any, import("react-hook-form").FieldValues>;
|
|
28
28
|
register: import("react-hook-form").UseFormRegister<import("react-hook-form").FieldValues>;
|
|
29
29
|
setValue: import("react-hook-form").UseFormSetValue<import("react-hook-form").FieldValues>;
|
|
30
30
|
onChange: ((selectedItem: TypeaheadValue, isSelected: boolean) => void) | undefined;
|
|
@@ -8,7 +8,6 @@ export declare const AdditionalInfoWrapper: import("@emotion/styled").StyledComp
|
|
|
8
8
|
theme?: Theme;
|
|
9
9
|
as?: React.ElementType;
|
|
10
10
|
} & {
|
|
11
|
-
avatarSize?: number;
|
|
12
11
|
direction?: string;
|
|
13
12
|
alignItems?: string;
|
|
14
13
|
fade?: boolean;
|
|
@@ -21,7 +20,6 @@ export declare const CustomContentWrapper: import("@emotion/styled").StyledCompo
|
|
|
21
20
|
theme?: Theme;
|
|
22
21
|
as?: React.ElementType;
|
|
23
22
|
} & {
|
|
24
|
-
avatarSize?: number;
|
|
25
23
|
direction?: string;
|
|
26
24
|
alignItems?: string;
|
|
27
25
|
fade?: boolean;
|
|
@@ -4,4 +4,4 @@ export declare const WithLink: ({ link, onClick, children, className, }: {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
link?: To;
|
|
7
|
-
}) => string | number | boolean | Iterable<import("react").ReactNode> | import("@emotion/react/jsx-runtime").JSX.Element | null | undefined;
|
|
7
|
+
}) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("@emotion/react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -68,11 +68,13 @@ export * from './AccordionGroup';
|
|
|
68
68
|
export * from './AddNewAccountCard';
|
|
69
69
|
export * from './ButtonGroup';
|
|
70
70
|
export * from './CardList';
|
|
71
|
+
export * from './Chip';
|
|
71
72
|
export * from './Charts';
|
|
72
73
|
export * from './Checkbox';
|
|
73
74
|
export * from './CollapsibleNavBar';
|
|
74
75
|
export * from './ColorPicker';
|
|
75
76
|
export * from './DatePicker';
|
|
77
|
+
export * from './PersonInfo';
|
|
76
78
|
export * from './DateRangePicker';
|
|
77
79
|
export * from './Drawer';
|
|
78
80
|
export * from './Field';
|
package/dist/index.d.ts
CHANGED