@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.
Files changed (66) hide show
  1. package/dist/components/IntersectionObserverWrapper/IntersectionObserverWrapper.d.ts +1 -1
  2. package/dist/components/avatar/Avatar.d.ts +2 -2
  3. package/dist/components/avatar/AvatarDetail.d.ts +3 -2
  4. package/dist/components/badge/Badge.d.ts +2 -2
  5. package/dist/components/badge/Badge.stories.d.ts +3 -3
  6. package/dist/components/button-group/ButtonGroup.d.ts +1 -1
  7. package/dist/components/buttons/button-dropdown/ButtonDropdown.d.ts +1 -1
  8. package/dist/components/buttons/icon-button/IconButton.d.ts +1 -1
  9. package/dist/components/buttons/icon-button-dropdown/IconButtonDropdown.d.ts +1 -1
  10. package/dist/components/calendar-controls/CalendarControls.d.ts +2 -2
  11. package/dist/components/calendar-controls/elements/NavigationButtons.d.ts +2 -2
  12. package/dist/components/datepicker/DateTime.d.ts +11 -7
  13. package/dist/components/datepicker/Datepicker.d.ts +9 -9
  14. package/dist/components/datepicker/Time.d.ts +3 -2
  15. package/dist/components/dynamic-table/DynamicTable-utils.d.ts +7 -7
  16. package/dist/components/dynamic-table/DynamicTable.d.ts +2 -2
  17. package/dist/components/dynamic-table/interfaces.d.ts +3 -3
  18. package/dist/components/emptystate/EmptyState.d.ts +1 -1
  19. package/dist/components/filter-bar/FilterBar.d.ts +5 -5
  20. package/dist/components/filter-bar/filter-list/FilterList.d.ts +2 -2
  21. package/dist/components/filter-bar/filter-list/FilterListWithApply.d.ts +2 -2
  22. package/dist/components/filter-bar/filter-list/FilterSearch.d.ts +3 -3
  23. package/dist/components/filter-bar/filter-list/RemoteSearch.d.ts +3 -3
  24. package/dist/components/filter-bar/filter-pill/FilterPill.d.ts +2 -2
  25. package/dist/components/forms/ReadOnly.d.ts +1 -1
  26. package/dist/components/forms/SkedFormValidation.d.ts +3 -3
  27. package/dist/components/forms/elements/AsyncMultiSearchSelect.d.ts +2 -2
  28. package/dist/components/forms/elements/AsyncSearchSelect.d.ts +2 -2
  29. package/dist/components/forms/elements/FormElements.d.ts +6 -6
  30. package/dist/components/forms/elements/MultiSearchSelect.d.ts +2 -2
  31. package/dist/components/forms/elements/SearchSelect.d.ts +2 -2
  32. package/dist/components/forms/elements/interfaces.d.ts +6 -3
  33. package/dist/components/forms/elements/select-components.d.ts +3 -3
  34. package/dist/components/forms/elements/select-hooks.d.ts +1 -1
  35. package/dist/components/icon/Icon.d.ts +1 -1
  36. package/dist/components/info-card/InfoCard.d.ts +1 -1
  37. package/dist/components/inline-banner/InlineBanner.d.ts +1 -1
  38. package/dist/components/link/Link.d.ts +1 -1
  39. package/dist/components/link/Link.stories.d.ts +3 -3
  40. package/dist/components/loader/spinner/LoadingSpinner.d.ts +1 -1
  41. package/dist/components/modals/Modals.d.ts +5 -3
  42. package/dist/components/pagination/PaginationCount/PaginationCount.d.ts +1 -1
  43. package/dist/components/pagination/PaginationPages/PaginationPages.d.ts +4 -4
  44. package/dist/components/popout/PopOut.d.ts +3 -3
  45. package/dist/components/popups/info-window/InfoWindow.d.ts +1 -1
  46. package/dist/components/popups/info-window/LegacyInfoWindow.d.ts +3 -1
  47. package/dist/components/popups/overflow-tooltip/OverflowTooltip.d.ts +3 -2
  48. package/dist/components/popups/tooltip/Tooltip.d.ts +2 -2
  49. package/dist/components/portal/Portal.d.ts +1 -1
  50. package/dist/components/search-box/SearchBox.d.ts +1 -1
  51. package/dist/components/status-icon/StatusIcon.d.ts +1 -1
  52. package/dist/components/table/Table.d.ts +6 -6
  53. package/dist/components/tabs/Tabs/Tabs.d.ts +2 -2
  54. package/dist/components/tabs/Tabs/interfaces.d.ts +1 -0
  55. package/dist/index.js +2842 -3789
  56. package/package.json +8 -7
  57. package/yarn.lock +5 -11
  58. package/dist/components/popout/useClickAway.d.ts +0 -2
  59. package/dist/components/popups/info-window/InfoWindow.spec.d.ts +0 -1
  60. package/dist/components/popups/info-window/InfoWindowOld.d.ts +0 -160
  61. package/dist/components/popups/info-window/InfoWindowPopOut.d.ts +0 -84
  62. package/dist/components/popups/info-window/PortalWrapper.d.ts +0 -6
  63. package/dist/components/popups/info-window/useClickAway.d.ts +0 -25
  64. package/dist/components/popups/tooltip/LegacyInfoWindow.d.ts +0 -154
  65. package/dist/components/popups/tooltip/info-window-utils.d.ts +0 -43
  66. 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 {};
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
2
  import { IPagination } from '../interfaces';
3
- export declare const PaginationCount: React.SFC<IPagination>;
3
+ export declare const PaginationCount: React.FC<IPagination>;
@@ -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.FC;
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.SFC<IPagination>;
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) => JSX.Element | React.ReactNode;
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 {};
@@ -42,4 +42,4 @@ export declare type IInfoWindowProps = IPopOutPropsSubset & {
42
42
  */
43
43
  style?: React.CSSProperties;
44
44
  };
45
- export declare const InfoWindow: (props: IInfoWindowProps) => JSX.Element;
45
+ export declare const InfoWindow: (props: IInfoWindowProps) => React.JSX.Element;
@@ -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
- /// <reference types="react" />
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 {};
@@ -5,5 +5,5 @@ export declare class SearchBox extends React.PureComponent<{
5
5
  className?: string;
6
6
  }, {}> {
7
7
  changeValue: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
- render(): JSX.Element;
8
+ render(): React.JSX.Element;
9
9
  }
@@ -7,5 +7,5 @@ export interface IStatusIconProps {
7
7
  status: StatusType;
8
8
  className?: string;
9
9
  }
10
- export declare const StatusIcon: React.FC<IStatusIconProps>;
10
+ export declare const StatusIcon: React.FC<React.PropsWithChildren<IStatusIconProps>>;
11
11
  export {};
@@ -4,13 +4,13 @@ export interface IHeaderCell {
4
4
  width?: string;
5
5
  className?: string;
6
6
  }
7
- export declare const Table: React.SFC<React.HTMLAttributes<HTMLTableElement>>;
8
- export declare const TableHeadRow: React.FC<React.HTMLAttributes<HTMLTableRowElement>>;
9
- export declare const TableHead: React.SFC<{
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.SFC;
15
- export declare const TableRow: React.SFC<React.HTMLAttributes<HTMLTableRowElement>>;
16
- export declare const TableCell: React.SFC<React.TdHTMLAttributes<HTMLTableDataCellElement>>;
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
  }
@@ -56,6 +56,7 @@ interface IBaseItemProps {
56
56
  as?: AsMenuType;
57
57
  }
58
58
  export interface IMenuItemProps extends Omit<IBaseItemProps, 'theme'> {
59
+ children: React.ReactNode;
59
60
  focusRoute: IFocusRouteItem[];
60
61
  classes?: string;
61
62
  nesting?: number;