@skedulo/sked-ui 0.0.0-preview-react-18 → 0.0.1-react-18-upgrade-test
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/avatar/Avatar.d.ts +2 -2
- package/dist/components/avatar/AvatarDetail.d.ts +2 -2
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.stories.d.ts +3 -3
- package/dist/components/calendar-controls/CalendarControls.d.ts +2 -2
- package/dist/components/calendar-controls/elements/NavigationButtons.d.ts +2 -2
- package/dist/components/datepicker/DateTime.d.ts +11 -7
- package/dist/components/datepicker/Datepicker.d.ts +3 -3
- package/dist/components/datepicker/Time.d.ts +3 -2
- package/dist/components/dynamic-table/DynamicTable-utils.d.ts +6 -6
- package/dist/components/dynamic-table/DynamicTable.d.ts +1 -1
- package/dist/components/dynamic-table/interfaces.d.ts +3 -3
- package/dist/components/filter-bar/FilterBar.d.ts +5 -5
- package/dist/components/filter-bar/filter-list/FilterList.d.ts +2 -2
- package/dist/components/filter-bar/filter-list/FilterListWithApply.d.ts +2 -2
- package/dist/components/filter-bar/filter-list/FilterSearch.d.ts +1 -1
- package/dist/components/filter-bar/filter-list/RemoteSearch.d.ts +1 -1
- package/dist/components/filter-bar/filter-pill/FilterPill.d.ts +2 -2
- package/dist/components/forms/SkedFormValidation.d.ts +3 -3
- package/dist/components/forms/elements/AsyncMultiSearchSelect.d.ts +2 -2
- package/dist/components/forms/elements/AsyncSearchSelect.d.ts +2 -2
- package/dist/components/forms/elements/FormElements.d.ts +2 -2
- package/dist/components/forms/elements/MultiSearchSelect.d.ts +2 -2
- package/dist/components/forms/elements/SearchSelect.d.ts +2 -2
- package/dist/components/forms/elements/select-components.d.ts +2 -2
- package/dist/components/forms/elements/select-hooks.d.ts +1 -1
- package/dist/components/icon/Icon.d.ts +1 -1
- package/dist/components/link/Link.d.ts +1 -1
- package/dist/components/link/Link.stories.d.ts +3 -3
- package/dist/components/modals/Modals.d.ts +2 -1
- package/dist/components/popout/PopOut.d.ts +1 -1
- package/dist/components/popups/info-window/InfoWindow.d.ts +1 -1
- package/dist/components/popups/info-window/LegacyInfoWindow.d.ts +3 -1
- package/dist/components/popups/overflow-tooltip/OverflowTooltip.d.ts +1 -1
- package/dist/components/popups/tooltip/Tooltip.d.ts +2 -2
- package/dist/components/portal/Portal.d.ts +1 -1
- package/dist/components/search-box/SearchBox.d.ts +1 -1
- package/dist/components/tabs/Tabs/Tabs.d.ts +2 -2
- package/dist/index.js +2651 -3602
- package/package.json +2 -2
|
@@ -41,6 +41,6 @@ export declare const avatarSizeClassMap: {
|
|
|
41
41
|
*/
|
|
42
42
|
export declare class Avatar extends React.PureComponent<IAvatar, {}> {
|
|
43
43
|
getInitials(name?: string): string;
|
|
44
|
-
renderAvatar(): JSX.Element;
|
|
45
|
-
render(): JSX.Element;
|
|
44
|
+
renderAvatar(): React.JSX.Element;
|
|
45
|
+
render(): React.JSX.Element;
|
|
46
46
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { IAvatar } from './Avatar';
|
|
3
3
|
declare type AvatarDetailGroupSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
4
4
|
declare type AvatarProps = Pick<IAvatar, 'name' | 'imageUrl'>;
|
|
@@ -14,5 +14,5 @@ export interface IAvatarDetailProps extends AvatarProps {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
linkUrl?: string;
|
|
16
16
|
}
|
|
17
|
-
export declare const AvatarDetail: ({ name, imageUrl, size, subtitle, className, linkUrl }: IAvatarDetailProps) => JSX.Element;
|
|
17
|
+
export declare const AvatarDetail: ({ name, imageUrl, size, subtitle, className, linkUrl }: IAvatarDetailProps) => React.JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export declare type BadgeTypes = 'default' | 'primary' | 'important';
|
|
3
3
|
export declare const DEFAULT_BADGE_CLASSES = "sked-badge-min-w sk-text-xxs sk-font-medium sk-tracking-wide sk-h-5 sk-pb-px sk-rounded-full sk-inline-flex sk-items-center sk-justify-center";
|
|
4
4
|
export interface IBadgeProps {
|
|
@@ -15,4 +15,4 @@ export interface IBadgeProps {
|
|
|
15
15
|
*/
|
|
16
16
|
badgeType?: BadgeTypes;
|
|
17
17
|
}
|
|
18
|
-
export declare const Badge: ({ count, countLimiter, badgeType }: IBadgeProps) => JSX.Element;
|
|
18
|
+
export declare const Badge: ({ count, countLimiter, badgeType }: IBadgeProps) => React.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { IBadgeProps } from './Badge';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: (props: IBadgeProps) => JSX.Element;
|
|
6
|
+
component: (props: IBadgeProps) => React.JSX.Element;
|
|
7
7
|
argTypes: {
|
|
8
8
|
badgeType: {
|
|
9
9
|
options: string[];
|
|
@@ -14,4 +14,4 @@ declare const _default: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
17
|
-
export declare const Basic: ComponentStory<({ count, countLimiter, badgeType }: IBadgeProps) => JSX.Element>;
|
|
17
|
+
export declare const Basic: ComponentStory<({ count, countLimiter, badgeType }: IBadgeProps) => React.JSX.Element>;
|
|
@@ -20,10 +20,10 @@ export interface ICalendarControlProps extends React.HTMLAttributes<HTMLDivEleme
|
|
|
20
20
|
onTodayClick?: () => void;
|
|
21
21
|
}
|
|
22
22
|
export declare function useCalendarControlsContext(): ICalendarControlProps;
|
|
23
|
-
declare function CalendarControls(props: ICalendarControlProps): JSX.Element;
|
|
23
|
+
declare function CalendarControls(props: ICalendarControlProps): React.JSX.Element;
|
|
24
24
|
declare namespace CalendarControls {
|
|
25
25
|
var TodayButton: React.FC<import("./elements/TodayButton").ITodayButtonProps>;
|
|
26
|
-
var NavigationButtons: (props: INavigationButtonProps) => JSX.Element;
|
|
26
|
+
var NavigationButtons: (props: INavigationButtonProps) => React.JSX.Element;
|
|
27
27
|
var DateSelector: React.FC<IDateSelectorProps>;
|
|
28
28
|
var RangePicker: React.FC<IRangeProps>;
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IBaseDateSelectorProps } from './DateSelector';
|
|
3
3
|
export interface INavigationButtonProps extends IBaseDateSelectorProps {
|
|
4
4
|
hideTooltipIfDisabled?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const NavigationButtons: (props: INavigationButtonProps) => JSX.Element;
|
|
6
|
+
export declare const NavigationButtons: (props: INavigationButtonProps) => React.JSX.Element;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface IDateTimeProps {
|
|
3
3
|
dateTime?: Date;
|
|
4
4
|
/**
|
|
5
|
-
* The time as it is selected by the user
|
|
5
|
+
* The date and time as it is selected by the user
|
|
6
6
|
*/
|
|
7
7
|
onChange?: (value: Date) => void;
|
|
8
|
+
/**
|
|
9
|
+
* The date as it is selected by the user
|
|
10
|
+
*/
|
|
11
|
+
onDateChange?: (value: Date) => void;
|
|
12
|
+
/**
|
|
13
|
+
* The time as it is selected by the user
|
|
14
|
+
*/
|
|
15
|
+
onTimeChange?: (value: string) => void;
|
|
8
16
|
/**
|
|
9
17
|
* The incremental time to add for each selectable time window, by minutes
|
|
10
18
|
*/
|
|
@@ -13,10 +21,6 @@ export interface IDateTimeProps {
|
|
|
13
21
|
* Used for setting aria-labelledby
|
|
14
22
|
*/
|
|
15
23
|
id?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Any suffix to add after the time input
|
|
18
|
-
*/
|
|
19
|
-
timeSuffix?: string;
|
|
20
24
|
/**
|
|
21
25
|
* Is this input disabled?
|
|
22
26
|
*/
|
|
@@ -48,4 +52,4 @@ export declare const convertTimeStringTo24Hr: (value: string) => {
|
|
|
48
52
|
hours: number;
|
|
49
53
|
minutes: number;
|
|
50
54
|
};
|
|
51
|
-
export declare const DateTime: ({ timeIncrement, onChange, dateTime, disabled, openToDate, dateFormat, timeValueSelection, timePlaceholder, datePlaceholder, id }: IDateTimeProps) => JSX.Element;
|
|
55
|
+
export declare const DateTime: ({ timeIncrement, onChange, onDateChange, onTimeChange, dateTime, disabled, openToDate, dateFormat, timeValueSelection, timePlaceholder, datePlaceholder, id }: IDateTimeProps) => React.JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@emotion/core" />
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { ReactDatePickerProps } from 'react-datepicker';
|
|
4
3
|
import { RangeType } from '../calendar-controls/elements/RangePicker';
|
|
@@ -108,15 +107,16 @@ export interface DatepickerProps {
|
|
|
108
107
|
* onCalendarClose fuction
|
|
109
108
|
*/
|
|
110
109
|
onCalendarClose?: () => void;
|
|
110
|
+
inputRef?: React.MutableRefObject<HTMLInputElement>;
|
|
111
111
|
}
|
|
112
112
|
declare type CustomInputType = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
113
|
-
onBlurCustom: () => void;
|
|
113
|
+
onBlurCustom: (event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
114
114
|
openCalendar: (open: boolean) => void;
|
|
115
115
|
onBackspace: () => void;
|
|
116
116
|
Component: (props: React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>) => JSX.Element;
|
|
117
117
|
};
|
|
118
118
|
export declare const CustomInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
119
|
-
onBlurCustom: () => void;
|
|
119
|
+
onBlurCustom: (event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
120
120
|
openCalendar: (open: boolean) => void;
|
|
121
121
|
onBackspace: () => void;
|
|
122
122
|
Component: (props: React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @format */
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export declare const TIME_FORMAT = "h:mma";
|
|
3
4
|
export declare const formatTime: (date: Date | number) => string;
|
|
4
5
|
export declare const readonlyTimeFormat: ({ value, suffix }: {
|
|
@@ -40,4 +41,4 @@ export interface ITimeProps {
|
|
|
40
41
|
*/
|
|
41
42
|
onChange?: (value: string) => void;
|
|
42
43
|
}
|
|
43
|
-
export declare const Time: ({ value, increment, suffix, onChange, placeholder, valueSelection, ...rest }: ITimeProps) => JSX.Element;
|
|
44
|
+
export declare const Time: ({ value, increment, suffix, onChange, placeholder, valueSelection, ...rest }: ITimeProps) => React.JSX.Element;
|
|
@@ -27,13 +27,13 @@ export declare const getSortArgs: (sortByControl: ControlStates) => {
|
|
|
27
27
|
};
|
|
28
28
|
export declare const wrapperProps: ITableWrapper['getWrapperProps'];
|
|
29
29
|
export declare type SortIconProps<T extends object> = Pick<ITableHeaderCell<T>, 'canSort' | 'isSorted' | 'isSortedDesc' | 'getSortByToggleProps' | 'displayType'>;
|
|
30
|
-
export declare const SortIcon: <T extends object>({ canSort, isSorted, isSortedDesc, getSortByToggleProps, displayType }: SortIconProps<T>) => JSX.Element;
|
|
31
|
-
export declare const SelectCell: (props: Partial<TableToggleRowsSelectedProps>) => JSX.Element;
|
|
32
|
-
export declare const TableHeaderCell: <T extends object>(props: ITableHeaderCell<T>) => JSX.Element;
|
|
30
|
+
export declare const SortIcon: <T extends object>({ canSort, isSorted, isSortedDesc, getSortByToggleProps, displayType }: SortIconProps<T>) => React.JSX.Element;
|
|
31
|
+
export declare const SelectCell: (props: Partial<TableToggleRowsSelectedProps>) => React.JSX.Element;
|
|
32
|
+
export declare const TableHeaderCell: <T extends object>(props: ITableHeaderCell<T>) => React.JSX.Element;
|
|
33
33
|
export declare const ExpandedTableCell: <T extends object>(props: UseTableCellProps<T, any> & {
|
|
34
34
|
children?: React.ReactNode;
|
|
35
|
-
}) => JSX.Element;
|
|
36
|
-
export declare const CondensedTableCell: <T extends object>(props: UseTableCellProps<T, any>) => JSX.Element;
|
|
35
|
+
}) => React.JSX.Element;
|
|
36
|
+
export declare const CondensedTableCell: <T extends object>(props: UseTableCellProps<T, any>) => React.JSX.Element;
|
|
37
37
|
export declare const DefaultRenderer: <T extends object>(instance: import("react-table").TableInstance<T> & {
|
|
38
38
|
column: import("react-table").ColumnInstance<T>;
|
|
39
39
|
row: Row<T>;
|
|
@@ -41,5 +41,5 @@ export declare const DefaultRenderer: <T extends object>(instance: import("react
|
|
|
41
41
|
value: any;
|
|
42
42
|
} & {
|
|
43
43
|
column: IDynamicTableColumn<T>;
|
|
44
|
-
}) => JSX.Element;
|
|
44
|
+
}) => React.JSX.Element;
|
|
45
45
|
export declare const DefaultWrapper: (wrapperClassName?: string) => React.FC<ITableWrapper>;
|
|
@@ -75,5 +75,5 @@ interface IDynamicTableProps<T extends object> {
|
|
|
75
75
|
TableWrapper?: React.FC<ITableWrapper>;
|
|
76
76
|
}
|
|
77
77
|
export declare type IDynamicTable<T extends object> = Pick<TableOptions<T>, 'getRowId' | 'data' | 'initialState' | 'autoResetSortBy' | 'autoResetSelectedRows' | 'manualRowSelectedKey'> & UseRowClickOptions<T> & IDynamicTableProps<T>;
|
|
78
|
-
export declare const DynamicTable: <T extends object>(props: IDynamicTable<T>) => JSX.Element;
|
|
78
|
+
export declare const DynamicTable: <T extends object>(props: IDynamicTable<T>) => React.JSX.Element;
|
|
79
79
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColumnInterface, ColumnInstance, UseTableCellProps, Row, ColumnInterfaceBasedOnValue } from 'react-table';
|
|
1
|
+
import { ColumnInterface, ColumnInstance, UseTableCellProps, Row, ColumnInterfaceBasedOnValue, HeaderProps, Renderer } from 'react-table';
|
|
2
2
|
export interface UseRowClickOptions<D extends object> {
|
|
3
3
|
/**
|
|
4
4
|
* This will add row click behaviour. Whenever a cell is clicked within a row,
|
|
@@ -20,7 +20,7 @@ declare module 'react-table' {
|
|
|
20
20
|
emptyCellText?: string;
|
|
21
21
|
}
|
|
22
22
|
interface ColumnInstance<D extends object = {}> extends UseSortByColumnProps<D>, UseRowSelectRowProps<D> {
|
|
23
|
-
Header?:
|
|
23
|
+
Header?: Renderer<HeaderProps<D>> | undefined;
|
|
24
24
|
}
|
|
25
25
|
interface Row<D extends object = {}> extends UseRowSelectRowProps<D> {
|
|
26
26
|
}
|
|
@@ -33,7 +33,7 @@ declare module 'react-table' {
|
|
|
33
33
|
* for empty values.
|
|
34
34
|
*/
|
|
35
35
|
export interface IDynamicTableColumn<T extends object> extends Omit<ColumnInterface<T>, 'Header'>, ColumnInterfaceBasedOnValue<T> {
|
|
36
|
-
Header?:
|
|
36
|
+
Header?: Renderer<HeaderProps<T>> | undefined;
|
|
37
37
|
}
|
|
38
38
|
export declare type ControlStates = 'controlled' | 'uncontrolled' | 'disabled';
|
|
39
39
|
export declare type RowControlStates = 'rowOnly' | 'allRows' | 'disabled';
|
|
@@ -35,20 +35,20 @@ export declare class FilterBar<T extends IFilterItem> extends React.PureComponen
|
|
|
35
35
|
applySelectedItemsToFilter: (filter: IFilter<T>, selectedFilterItems: T[]) => IAppliedFilter<T>[];
|
|
36
36
|
applyAndSaveFilters: (filter: IFilter<T>) => (selectedFilterItems: T[]) => void;
|
|
37
37
|
saveFilters: (filters: IAppliedFilter<T>[]) => void;
|
|
38
|
-
renderAddFilterButton: () => JSX.Element;
|
|
38
|
+
renderAddFilterButton: () => React.JSX.Element;
|
|
39
39
|
/**
|
|
40
40
|
* Render the add filter control button.
|
|
41
41
|
*/
|
|
42
|
-
renderAddFilterControl: () => JSX.Element;
|
|
42
|
+
renderAddFilterControl: () => React.JSX.Element;
|
|
43
43
|
clearTemporaryPill: () => void;
|
|
44
44
|
closeTemporaryPill: () => () => void;
|
|
45
|
-
renderFilterItemSearch: (filter: IFilter<T>, preSelectedItems: T[], scrollableContentClasses?: string) => JSX.Element;
|
|
45
|
+
renderFilterItemSearch: (filter: IFilter<T>, preSelectedItems: T[], scrollableContentClasses?: string) => React.JSX.Element;
|
|
46
46
|
/**
|
|
47
47
|
* After we 'add' a filter, we want to render this 'temporary' pill in the filter bar. This temporary pill will be removed once we hit apply or exit out of the dropdown.
|
|
48
48
|
*/
|
|
49
|
-
renderTemporaryPill: (filterName: string, filterId: string, preSelectedItems: T[]) => JSX.Element;
|
|
49
|
+
renderTemporaryPill: (filterName: string, filterId: string, preSelectedItems: T[]) => React.JSX.Element;
|
|
50
50
|
removeFilter: (filterId: string) => void;
|
|
51
51
|
editFilter: (filterId: string) => void;
|
|
52
|
-
render(): JSX.Element;
|
|
52
|
+
render(): React.JSX.Element;
|
|
53
53
|
}
|
|
54
54
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { IFilterItem } from '../interfaces';
|
|
3
3
|
export interface IFilterListProps<T> {
|
|
4
4
|
items: T[];
|
|
@@ -7,4 +7,4 @@ export interface IFilterListProps<T> {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
scrollableContentClasses?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const FilterList: <T extends IFilterItem>({ items, itemRenderer, loading, className, scrollableContentClasses }: IFilterListProps<T>) => JSX.Element;
|
|
10
|
+
export declare const FilterList: <T extends IFilterItem>({ items, itemRenderer, loading, className, scrollableContentClasses }: IFilterListProps<T>) => React.JSX.Element;
|
|
@@ -17,8 +17,8 @@ export declare class FilterListWithApply<T extends IFilterItem> extends React.Pu
|
|
|
17
17
|
constructor(props: IFilterListWithApplyProps<T>);
|
|
18
18
|
getSelectedItems: (item: T, checked?: boolean) => T[];
|
|
19
19
|
onItemChange: (item: T) => ({ target }: React.ChangeEvent<HTMLInputElement>) => void;
|
|
20
|
-
itemRenderer: (item: T) => JSX.Element;
|
|
20
|
+
itemRenderer: (item: T) => React.JSX.Element;
|
|
21
21
|
applyFilters: () => void;
|
|
22
|
-
render(): JSX.Element;
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -16,6 +16,6 @@ export declare class FilterSearch<T extends IFilterItem> extends React.PureCompo
|
|
|
16
16
|
componentDidUpdate(prevProps: IFilterSearchProps<T>): void;
|
|
17
17
|
updateItemsState: (items: T[]) => void;
|
|
18
18
|
onFilterSearch: (value: string) => void;
|
|
19
|
-
render(): JSX.Element;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -17,7 +17,7 @@ export declare class FilterPill<T extends IFilterItem> extends React.PureCompone
|
|
|
17
17
|
renderedSelectedItems: (selected: IFilterItem[]) => string;
|
|
18
18
|
removeFilter: (filterId: string, onRemove: IFilterPillProps['onRemove']) => (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
19
|
editFilter: (filterId: string, onEdit: IFilterPillProps['onRemove'], isReadonly: boolean) => () => void;
|
|
20
|
-
renderCloseButton: (name: string, onRemove: IFilterPillProps['onRemove'], selected: IFilterItem[], removable: boolean, isReadonly?: boolean) => JSX.Element;
|
|
21
|
-
render(): JSX.Element;
|
|
20
|
+
renderCloseButton: (name: string, onRemove: IFilterPillProps['onRemove'], selected: IFilterItem[], removable: boolean, isReadonly?: boolean) => React.JSX.Element;
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
@@ -88,11 +88,11 @@ export declare class SkedFormValidation<T extends object> extends React.PureComp
|
|
|
88
88
|
* for instance - input has onchange and will bubble up, needs a way of adding name)
|
|
89
89
|
*/
|
|
90
90
|
customFormFieldUpdate: (setField: SkedFormChildren<T>['setField'], fields: T, setModified?: (name: keyof T) => void) => (fieldName: keyof T, runOnUpdate?: (fields: T) => T) => (value: any) => void;
|
|
91
|
-
wrapInValidatorProvider: (customValidators: SkedFormValidationProps<T>['customValidators']) => JSX.Element;
|
|
91
|
+
wrapInValidatorProvider: (customValidators: SkedFormValidationProps<T>['customValidators']) => React.JSX.Element;
|
|
92
92
|
handleClick: (evt: React.FormEvent<HTMLElement>) => void;
|
|
93
93
|
handleFormSubmit: (formData: FormContext<T>) => Promise<void>;
|
|
94
94
|
setFormReadonly: (event?: React.FormEvent<HTMLElement>) => void;
|
|
95
95
|
resetFieldsToInitialValues: () => void;
|
|
96
|
-
renderFormValidation: () => JSX.Element;
|
|
97
|
-
render(): JSX.Element;
|
|
96
|
+
renderFormValidation: () => React.JSX.Element;
|
|
97
|
+
render(): React.JSX.Element;
|
|
98
98
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ISelectItem, AsyncMultiSearchSelectBox } from './interfaces';
|
|
3
|
-
export declare const AsyncMultiSearchSelect: <T extends ISelectItem<any>>({ fetchItems, debounceTime, fetchStrategy, useCache, minChars, onSelectedItemsChange, disabled, ...rest }: AsyncMultiSearchSelectBox<T>) => JSX.Element;
|
|
3
|
+
export declare const AsyncMultiSearchSelect: <T extends ISelectItem<any>>({ fetchItems, debounceTime, fetchStrategy, useCache, minChars, onSelectedItemsChange, disabled, ...rest }: AsyncMultiSearchSelectBox<T>) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ISelectItem, AsyncSelectBox } from './interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* Asynchronous version of SearchSelect for use with remote fetching
|
|
5
5
|
*/
|
|
6
|
-
export declare const AsyncSearchSelect: <T extends ISelectItem<any>>({ fetchItems, debounceTime, fetchStrategy, useCache, minChars, icon, id, name, placeholder, autoFocus, className, onSelectedItemChange, disabled, itemToString, ItemRenderer, ...rest }: AsyncSelectBox<T>) => JSX.Element;
|
|
6
|
+
export declare const AsyncSearchSelect: <T extends ISelectItem<any>>({ fetchItems, debounceTime, fetchStrategy, useCache, minChars, icon, id, name, placeholder, autoFocus, className, onSelectedItemChange, disabled, itemToString, ItemRenderer, ...rest }: AsyncSelectBox<T>) => React.JSX.Element;
|
|
@@ -30,8 +30,8 @@ declare type FormElementProps = InputFormValidationProps & React.InputHTMLAttrib
|
|
|
30
30
|
export declare class FormInputElement extends React.PureComponent<FormElementProps, {}> {
|
|
31
31
|
private _inputClassNames;
|
|
32
32
|
isOfTextType: () => boolean;
|
|
33
|
-
withInlineLabel: (inputComponent: React.ReactElement, props: FormElementProps) => JSX.Element;
|
|
34
|
-
render(): JSX.Element;
|
|
33
|
+
withInlineLabel: (inputComponent: React.ReactElement, props: FormElementProps) => React.JSX.Element;
|
|
34
|
+
render(): React.JSX.Element;
|
|
35
35
|
}
|
|
36
36
|
declare type LabelStatus = 'required' | 'optional';
|
|
37
37
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ISelectItem, MultiSearchSelectBox } from './interfaces';
|
|
3
|
-
export declare const MultiSearchSelect: <T extends ISelectItem<any>>({ initialSelectedItems, items, id, name, placeholder, autoFocus, className, onSelectedItemsChange, disabled, loading, itemToString, ItemRenderer, MenuItemsRenderer, selectAll, onInputValueChange, onMenuToggle, getKey, ...rest }: MultiSearchSelectBox<T>) => JSX.Element;
|
|
3
|
+
export declare const MultiSearchSelect: <T extends ISelectItem<any>>({ initialSelectedItems, items, id, name, placeholder, autoFocus, className, onSelectedItemsChange, disabled, loading, itemToString, ItemRenderer, MenuItemsRenderer, selectAll, onInputValueChange, onMenuToggle, getKey, ...rest }: MultiSearchSelectBox<T>) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ISelectItem, SelectBox } from './interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* A searchable select component. Just like it's native counterpart, only a valid listed option is allowed.
|
|
5
5
|
*/
|
|
6
|
-
export declare const SearchSelect: <T extends ISelectItem<any>>({ id, name, items, placeholder, autoFocus, className, icon, onSelectedItemChange, disabled, onMenuToggle, loading, itemToString, ItemRenderer, filterHandler, itemIsValid, getNewItemData, ...rest }: SelectBox<T>) => JSX.Element;
|
|
6
|
+
export declare const SearchSelect: <T extends ISelectItem<any>>({ id, name, items, placeholder, autoFocus, className, icon, onSelectedItemChange, disabled, onMenuToggle, loading, itemToString, ItemRenderer, filterHandler, itemIsValid, getNewItemData, ...rest }: SelectBox<T>) => React.JSX.Element;
|
|
@@ -18,7 +18,7 @@ interface ISearchSelectTrigger {
|
|
|
18
18
|
}
|
|
19
19
|
export declare const SearchSelectTrigger: React.FC<ISearchSelectTrigger & React.InputHTMLAttributes<HTMLInputElement>>;
|
|
20
20
|
export declare const SelectMenu: React.ForwardRefExoticComponent<IMenuProps & React.RefAttributes<HTMLUListElement>>;
|
|
21
|
-
export declare const SelectMenuItem: <T extends ISelectItem<any>>({ item, ItemRenderer, index, highlightedIndex, getItemProps }: ISelectMenuItem<T>) => JSX.Element;
|
|
21
|
+
export declare const SelectMenuItem: <T extends ISelectItem<any>>({ item, ItemRenderer, index, highlightedIndex, getItemProps }: ISelectMenuItem<T>) => React.JSX.Element;
|
|
22
22
|
export interface IPlainMultiSelectMenuItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
23
23
|
item: ISelectItem;
|
|
24
24
|
isSelected: boolean;
|
|
@@ -26,7 +26,7 @@ export interface IPlainMultiSelectMenuItemProps extends React.HTMLAttributes<HTM
|
|
|
26
26
|
export declare const PlainMultiSelectMenuItem: React.FC<IPlainMultiSelectMenuItemProps>;
|
|
27
27
|
export declare const MultiSelectMenuItem: <T extends ISelectItem<any>>({ item, ItemRenderer, isSelected, index, highlightedIndex, getItemProps }: ISelectMenuItem<T> & {
|
|
28
28
|
isSelected: boolean;
|
|
29
|
-
}) => JSX.Element;
|
|
29
|
+
}) => React.JSX.Element;
|
|
30
30
|
export declare const SelectEmptyState: React.FC;
|
|
31
31
|
interface IMultiSearchSelectTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
32
|
hasItems: boolean;
|
|
@@ -23,7 +23,7 @@ export declare const useAutoExpandingInput: ({ defaultInputWidth, inputProps, cl
|
|
|
23
23
|
inputValueWidth: number;
|
|
24
24
|
updateInputWidth: () => void;
|
|
25
25
|
setInputValueWidth: React.Dispatch<React.SetStateAction<number>>;
|
|
26
|
-
AutoExpandingInput: JSX.Element;
|
|
26
|
+
AutoExpandingInput: React.JSX.Element;
|
|
27
27
|
};
|
|
28
28
|
export declare function useOnClickOutside(refs: React.RefObject<HTMLElement>[], handler: (event: MouseEvent) => void): void;
|
|
29
29
|
export interface UseRunPromiseState<D> {
|
|
@@ -22,5 +22,5 @@ interface IProps extends React.SVGAttributes<SVGElement> {
|
|
|
22
22
|
/**
|
|
23
23
|
* The Icon component should be used whenever an icon needs to be displayed. It will naturally inherit any text colour but this can be changed by supplied a class directly. Default size of 18px/18px.
|
|
24
24
|
*/
|
|
25
|
-
export declare const Icon: ({ name, className, size, onClick, ...otherProps }: IProps) => JSX.Element;
|
|
25
|
+
export declare const Icon: ({ name, className, size, onClick, ...otherProps }: IProps) => React.JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -2,4 +2,4 @@ import * as React from 'react';
|
|
|
2
2
|
export interface ILinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
3
|
type?: 'primary' | 'secondary';
|
|
4
4
|
}
|
|
5
|
-
export declare const Link: ({ type, className, children, ...otherProps }: ILinkProps) => JSX.Element;
|
|
5
|
+
export declare const Link: ({ type, className, children, ...otherProps }: ILinkProps) => React.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { ILinkProps } from './Link';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ type, className, children, ...otherProps }: ILinkProps) => JSX.Element;
|
|
6
|
+
component: ({ type, className, children, ...otherProps }: ILinkProps) => React.JSX.Element;
|
|
7
7
|
argTypes: {
|
|
8
8
|
type: {
|
|
9
9
|
options: string[];
|
|
@@ -14,4 +14,4 @@ declare const _default: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
17
|
-
export declare const Basic: ComponentStory<({ type, className, children, ...otherProps }: ILinkProps) => JSX.Element>;
|
|
17
|
+
export declare const Basic: ComponentStory<({ type, className, children, ...otherProps }: ILinkProps) => React.JSX.Element>;
|
|
@@ -16,6 +16,7 @@ export declare const DynamicModal: React.FC<IDynamicModal & ModalContentProps>;
|
|
|
16
16
|
export interface IConfirmationModalProps {
|
|
17
17
|
onConfirm: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
18
18
|
onCancel: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
cancelButtonText?: string;
|
|
19
20
|
confirmButtonText?: string;
|
|
20
21
|
/**
|
|
21
22
|
* Used to indicate the current onConfirm action is in progress.
|
|
@@ -28,6 +29,6 @@ export interface IConfirmationModalState {
|
|
|
28
29
|
export declare class ConfirmationModal extends React.PureComponent<IConfirmationModalProps, IConfirmationModalState> {
|
|
29
30
|
constructor(props: IConfirmationModalProps);
|
|
30
31
|
handleConfirmButtonClick: () => void;
|
|
31
|
-
render(): JSX.Element;
|
|
32
|
+
render(): React.JSX.Element;
|
|
32
33
|
}
|
|
33
34
|
export {};
|
|
@@ -99,6 +99,7 @@ export declare class LegacyInfoWindow extends React.PureComponent<ILegacyInfoWin
|
|
|
99
99
|
private _triangleRef;
|
|
100
100
|
private _cursorPosition;
|
|
101
101
|
private _triggerRect;
|
|
102
|
+
private _root;
|
|
102
103
|
constructor(props: ILegacyInfoWindowProps);
|
|
103
104
|
componentDidMount(): void;
|
|
104
105
|
componentDidUpdate(oldProps: ILegacyInfoWindowProps): void;
|
|
@@ -144,12 +145,13 @@ export declare class LegacyInfoWindow extends React.PureComponent<ILegacyInfoWin
|
|
|
144
145
|
};
|
|
145
146
|
removeRenderingContainer(): void;
|
|
146
147
|
createRenderContainer(): HTMLDivElement;
|
|
148
|
+
createRenderRoot(): void;
|
|
147
149
|
/**
|
|
148
150
|
* The first render wont be positioned properly since we don't have the width/height to calculate the position.
|
|
149
151
|
* `runStyleRender` runs a second render when we have the contentContainer rendered to calculate the position.
|
|
150
152
|
*/
|
|
151
153
|
renderContent(runStyleRender?: boolean): void;
|
|
152
|
-
render(): JSX.Element;
|
|
154
|
+
render(): React.JSX.Element;
|
|
153
155
|
}
|
|
154
156
|
export declare const InfoWindowContext: React.Context<InfoWindowState>;
|
|
155
157
|
interface InfoWindowState {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ILegacyInfoWindowProps } from '../info-window/LegacyInfoWindow';
|
|
3
3
|
import { Position } from '../info-window/info-window-utils';
|
|
4
4
|
import './tooltip.scss';
|
|
@@ -17,5 +17,5 @@ export interface ITooltipProps extends ILegacyInfoWindowProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* Tooltips are an extended version of the info window that triggers on hover by default, delayed slightly and is styled with tooltip styles
|
|
19
19
|
*/
|
|
20
|
-
export declare const Tooltip: (props: ITooltipProps) => JSX.Element;
|
|
20
|
+
export declare const Tooltip: (props: ITooltipProps) => React.JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -17,6 +17,6 @@ export declare class Portal extends React.PureComponent<IProps, {}> {
|
|
|
17
17
|
componentDidUpdate(prevProps: IProps): void;
|
|
18
18
|
componentWillUnmount(): void;
|
|
19
19
|
setRootContainerPosition: () => void;
|
|
20
|
-
render(): JSX.Element;
|
|
20
|
+
render(): React.JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
@@ -31,6 +31,6 @@ export declare class Tabs extends React.PureComponent<ITabsProps, ITabsState> {
|
|
|
31
31
|
onSelect: () => void;
|
|
32
32
|
hasSubMenus: (tab: ITab) => boolean;
|
|
33
33
|
isTabActive: (tab: ITab) => boolean;
|
|
34
|
-
renderSubMenus: () => JSX.Element[];
|
|
35
|
-
render(): JSX.Element;
|
|
34
|
+
renderSubMenus: () => React.JSX.Element[];
|
|
35
|
+
render(): React.JSX.Element;
|
|
36
36
|
}
|