@skedulo/sked-ui 0.0.0-preview-react-18 → 0.0.1-react-18-preview
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/IntersectionObserverWrapper/IntersectionObserverWrapper.d.ts +1 -1
- package/dist/components/avatar/Avatar.d.ts +2 -2
- package/dist/components/avatar/AvatarDetail.d.ts +3 -2
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.stories.d.ts +3 -3
- package/dist/components/button-group/ButtonGroup.d.ts +1 -1
- package/dist/components/buttons/button-dropdown/ButtonDropdown.d.ts +1 -1
- package/dist/components/buttons/icon-button/IconButton.d.ts +1 -1
- package/dist/components/buttons/icon-button-dropdown/IconButtonDropdown.d.ts +1 -1
- 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 +9 -9
- package/dist/components/datepicker/Time.d.ts +3 -2
- package/dist/components/dynamic-table/DynamicTable-utils.d.ts +7 -7
- package/dist/components/dynamic-table/DynamicTable.d.ts +2 -2
- package/dist/components/dynamic-table/interfaces.d.ts +3 -3
- package/dist/components/emptystate/EmptyState.d.ts +1 -1
- 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 +3 -3
- package/dist/components/filter-bar/filter-list/RemoteSearch.d.ts +3 -3
- package/dist/components/filter-bar/filter-pill/FilterPill.d.ts +2 -2
- package/dist/components/forms/ReadOnly.d.ts +1 -1
- 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 +6 -6
- 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/interfaces.d.ts +6 -3
- package/dist/components/forms/elements/select-components.d.ts +3 -3
- package/dist/components/forms/elements/select-hooks.d.ts +1 -1
- package/dist/components/icon/Icon.d.ts +1 -1
- package/dist/components/info-card/InfoCard.d.ts +1 -1
- package/dist/components/inline-banner/InlineBanner.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/loader/spinner/LoadingSpinner.d.ts +1 -1
- package/dist/components/modals/Modals.d.ts +5 -3
- package/dist/components/pagination/PaginationCount/PaginationCount.d.ts +1 -1
- package/dist/components/pagination/PaginationPages/PaginationPages.d.ts +4 -4
- package/dist/components/popout/PopOut.d.ts +3 -3
- 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 +3 -2
- 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/status-icon/StatusIcon.d.ts +1 -1
- package/dist/components/table/Table.d.ts +6 -6
- package/dist/components/tabs/Tabs/Tabs.d.ts +2 -2
- package/dist/components/tabs/Tabs/interfaces.d.ts +1 -0
- package/dist/index.js +2842 -3789
- package/package.json +8 -7
- package/yarn.lock +5 -11
- package/dist/components/popout/useClickAway.d.ts +0 -2
- package/dist/components/popups/info-window/InfoWindow.spec.d.ts +0 -1
- package/dist/components/popups/info-window/InfoWindowOld.d.ts +0 -160
- package/dist/components/popups/info-window/InfoWindowPopOut.d.ts +0 -84
- package/dist/components/popups/info-window/PortalWrapper.d.ts +0 -6
- package/dist/components/popups/info-window/useClickAway.d.ts +0 -25
- package/dist/components/popups/tooltip/LegacyInfoWindow.d.ts +0 -154
- package/dist/components/popups/tooltip/info-window-utils.d.ts +0 -43
- package/dist/components/popups/tooltip/info-window-utils.spec.d.ts +0 -1
|
@@ -6,16 +6,18 @@ interface IDynamicModal {
|
|
|
6
6
|
loading?: boolean;
|
|
7
7
|
scrollableContentClassNames?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const BaseModal: React.FC<Omit<ModalContentProps, 'className'
|
|
9
|
+
export declare const BaseModal: React.FC<React.PropsWithChildren<Omit<ModalContentProps, 'className'>>>;
|
|
10
10
|
/**
|
|
11
11
|
* Use DynamicModal when you have long content in your modal and you want it restricted to the viewport.
|
|
12
12
|
* It accepts a header and footer which will remain static with the child content being placed in the
|
|
13
13
|
* scrollable section.
|
|
14
14
|
*/
|
|
15
|
-
export declare const DynamicModal: React.FC<IDynamicModal & ModalContentProps
|
|
15
|
+
export declare const DynamicModal: React.FC<React.PropsWithChildren<IDynamicModal & ModalContentProps>>;
|
|
16
16
|
export interface IConfirmationModalProps {
|
|
17
|
+
children: React.ReactNode;
|
|
17
18
|
onConfirm: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
18
19
|
onCancel: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
20
|
+
cancelButtonText?: string;
|
|
19
21
|
confirmButtonText?: string;
|
|
20
22
|
/**
|
|
21
23
|
* Used to indicate the current onConfirm action is in progress.
|
|
@@ -28,6 +30,6 @@ export interface IConfirmationModalState {
|
|
|
28
30
|
export declare class ConfirmationModal extends React.PureComponent<IConfirmationModalProps, IConfirmationModalState> {
|
|
29
31
|
constructor(props: IConfirmationModalProps);
|
|
30
32
|
handleConfirmButtonClick: () => void;
|
|
31
|
-
render(): JSX.Element;
|
|
33
|
+
render(): React.JSX.Element;
|
|
32
34
|
}
|
|
33
35
|
export {};
|
|
@@ -5,10 +5,10 @@ export declare const Arrow: React.FC<{
|
|
|
5
5
|
disable: boolean;
|
|
6
6
|
onClick: (event: React.MouseEvent) => void;
|
|
7
7
|
}>;
|
|
8
|
-
export declare const Ellipsis: React.
|
|
9
|
-
export declare const Page: React.FC<{
|
|
8
|
+
export declare const Ellipsis: () => React.JSX.Element;
|
|
9
|
+
export declare const Page: React.FC<React.PropsWithChildren<{
|
|
10
10
|
pageNo: number;
|
|
11
11
|
isCurrent: boolean;
|
|
12
12
|
onClick?: (event: React.MouseEvent) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const PaginationPages: React.
|
|
13
|
+
}>>;
|
|
14
|
+
export declare const PaginationPages: React.FC<IPagination>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IPopOutBase } from './PopOutBase';
|
|
3
|
-
declare type IPopOutBaseSubset = Omit<IPopOutBase, 'visible' | 'trigger'>;
|
|
3
|
+
declare type IPopOutBaseSubset = Omit<IPopOutBase, 'visible' | 'trigger' | 'children'>;
|
|
4
4
|
export interface IPopOutProps extends IPopOutBaseSubset {
|
|
5
5
|
/**
|
|
6
6
|
* The element you are rendering the content from
|
|
@@ -9,7 +9,7 @@ export interface IPopOutProps extends IPopOutBaseSubset {
|
|
|
9
9
|
/**
|
|
10
10
|
* The content to pop out
|
|
11
11
|
*/
|
|
12
|
-
children: (closePopOut: () => void) =>
|
|
12
|
+
children: (closePopOut: () => void) => React.ReactNode;
|
|
13
13
|
/**
|
|
14
14
|
* Close on clicking in the content area. Defaults to false
|
|
15
15
|
*/
|
|
@@ -57,5 +57,5 @@ export interface IPopOutState {
|
|
|
57
57
|
*
|
|
58
58
|
* @requires PopOutBase
|
|
59
59
|
*/
|
|
60
|
-
export declare const PopOut: (props: IPopOutProps) => JSX.Element;
|
|
60
|
+
export declare const PopOut: (props: IPopOutProps) => React.JSX.Element;
|
|
61
61
|
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,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ITooltipPosition, ITooltipProps } from '../tooltip/Tooltip';
|
|
3
3
|
export interface IOverflowTooltipProps extends Pick<ITooltipProps, 'dataAttributes'> {
|
|
4
|
+
children: React.ReactNode;
|
|
4
5
|
/** Maximum width the element expands to before being cut off */
|
|
5
6
|
maxWidth?: number;
|
|
6
7
|
className?: string;
|
|
@@ -17,14 +18,14 @@ export interface IOverflowTooltipState {
|
|
|
17
18
|
* @requires Tooltip
|
|
18
19
|
*/
|
|
19
20
|
export declare class OverflowTooltip extends React.PureComponent<IOverflowTooltipProps, IOverflowTooltipState> {
|
|
21
|
+
_element: HTMLDivElement;
|
|
20
22
|
static defaultProps: {
|
|
21
23
|
position: string;
|
|
22
24
|
};
|
|
23
|
-
_element: HTMLDivElement;
|
|
24
25
|
constructor(props: IOverflowTooltipProps);
|
|
25
26
|
componentDidMount(): void;
|
|
26
27
|
refElement: (element: HTMLDivElement) => void;
|
|
27
28
|
checkOverflow: () => void;
|
|
28
29
|
isTextOverflow(): boolean;
|
|
29
|
-
render(): JSX.Element;
|
|
30
|
+
render(): React.JSX.Element;
|
|
30
31
|
}
|
|
@@ -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 {};
|
|
@@ -4,13 +4,13 @@ export interface IHeaderCell {
|
|
|
4
4
|
width?: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const Table: React.
|
|
8
|
-
export declare const TableHeadRow: React.FC<React.HTMLAttributes<HTMLTableRowElement
|
|
9
|
-
export declare const TableHead: React.
|
|
7
|
+
export declare const Table: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLTableElement>>>;
|
|
8
|
+
export declare const TableHeadRow: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLTableRowElement>>>;
|
|
9
|
+
export declare const TableHead: React.FC<{
|
|
10
10
|
cells: IHeaderCell[];
|
|
11
11
|
sticky?: boolean;
|
|
12
12
|
className?: string;
|
|
13
13
|
}>;
|
|
14
|
-
export declare const TableBody: React.
|
|
15
|
-
export declare const TableRow: React.
|
|
16
|
-
export declare const TableCell: React.
|
|
14
|
+
export declare const TableBody: React.FC<React.PropsWithChildren<unknown>>;
|
|
15
|
+
export declare const TableRow: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLTableRowElement>>>;
|
|
16
|
+
export declare const TableCell: React.FC<React.PropsWithChildren<React.TdHTMLAttributes<HTMLTableDataCellElement>>>;
|
|
@@ -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
|
}
|