@ws-ui/shared 0.1.4 → 0.1.5

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.
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  export declare const LogoSVG: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  }, import("react").SVGProps<SVGSVGElement>, {}>;
6
6
  export interface StudioProps {
7
7
  }
8
8
  export declare const AppLoader: ({ message, version, }: {
9
9
  message: string;
10
10
  version: string;
11
- }) => JSX.Element;
11
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,7 @@ import React, { CSSProperties, FC } from 'react';
3
3
  interface IOverlayProps {
4
4
  onClick: (ev: React.MouseEvent) => void;
5
5
  }
6
- export declare const Overlay: FC<IOverlayProps>;
6
+ export declare const Overlay: FC<React.PropsWithChildren<IOverlayProps>>;
7
7
  interface IDialogBodyProps {
8
8
  style?: CSSProperties;
9
9
  attributes?: {
@@ -17,5 +17,5 @@ interface IDialogProps {
17
17
  referenceElement: Element | VirtualElement | null | undefined;
18
18
  placement?: Placement;
19
19
  }
20
- export declare const Dialog: FC<IDialogProps>;
20
+ export declare const Dialog: FC<React.PropsWithChildren<IDialogProps>>;
21
21
  export {};
@@ -1,4 +1,4 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export declare function Incase(props: PropsWithChildren<{
3
3
  of: any;
4
- }>): JSX.Element | null;
4
+ }>): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,2 @@
1
1
  import { FC } from 'react';
2
- export declare const Portal: FC;
2
+ export declare const Portal: FC<React.PropsWithChildren<unknown>>;
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { TTip } from '../interfaces';
3
- declare const CarouselTip: FC<{
3
+ declare const CarouselTip: FC<React.PropsWithChildren<{
4
4
  pages?: TTip[];
5
- }>;
5
+ }>>;
6
6
  export default CarouselTip;
@@ -3,5 +3,5 @@ interface ITextTipProps {
3
3
  body: string;
4
4
  isInsideCarousel?: boolean;
5
5
  }
6
- declare const TextTip: React.FC<ITextTipProps>;
6
+ declare const TextTip: React.FC<React.PropsWithChildren<ITextTipProps>>;
7
7
  export default TextTip;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { IVideoTip } from '../interfaces';
3
- declare const VideoTip: FC<Partial<Omit<IVideoTip, 'type'>>>;
3
+ declare const VideoTip: FC<React.PropsWithChildren<Partial<Omit<IVideoTip, 'type'>>>>;
4
4
  export default VideoTip;
@@ -1,3 +1,3 @@
1
1
  import { TTip } from '../interfaces';
2
- declare const renderTip: (tip: TTip, isInsideCarousel?: boolean) => JSX.Element;
2
+ declare const renderTip: (tip: TTip, isInsideCarousel?: boolean) => import("react/jsx-runtime").JSX.Element;
3
3
  export default renderTip;
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
- export declare const Tip: FC<{
2
+ export declare const Tip: FC<React.PropsWithChildren<{
3
3
  tipKey: string;
4
4
  side?: 'left' | 'right';
5
5
  alwaysOn?: boolean;
6
6
  asButton?: boolean;
7
- }>;
7
+ }>>;
@@ -1,9 +1,9 @@
1
1
  import { FC } from 'react';
2
2
  import { TTip } from './interfaces';
3
- export declare const TipsProvider: FC<{
3
+ export declare const TipsProvider: FC<React.PropsWithChildren<{
4
4
  enabled?: boolean;
5
5
  baseUrl?: string;
6
- }>;
6
+ }>>;
7
7
  export declare const useTip: (key?: string) => {
8
8
  tip: TTip | null;
9
9
  toggleTips: () => void;
@@ -1,8 +1,8 @@
1
1
  import React, { FC } from 'react';
2
2
  export type ToastKind = 'warning' | 'info' | 'danger' | 'message' | 'error' | 'multi';
3
- export type ToastCustomIcon = FC<{
3
+ export type ToastCustomIcon = FC<React.PropsWithChildren<{
4
4
  className?: string;
5
- }>;
5
+ }>>;
6
6
  interface IToastProps {
7
7
  kind: ToastKind;
8
8
  message: string | IMultilineMessage[];
@@ -15,5 +15,5 @@ export interface IMultilineMessage {
15
15
  title: string;
16
16
  messages: string[];
17
17
  }
18
- export declare const Toast: React.FC<IToastProps>;
18
+ export declare const Toast: React.FC<React.PropsWithChildren<IToastProps>>;
19
19
  export {};
@@ -5,5 +5,5 @@ interface ITooltip {
5
5
  placement?: Placement;
6
6
  className?: string;
7
7
  }
8
- export declare const Tooltip: React.FC<ITooltip>;
8
+ export declare const Tooltip: React.FC<React.PropsWithChildren<ITooltip>>;
9
9
  export {};
@@ -1,8 +1,8 @@
1
1
  import { FC } from 'react';
2
- declare const IndentLines: FC<{
2
+ declare const IndentLines: FC<React.PropsWithChildren<{
3
3
  showLines?: boolean;
4
4
  depth: number;
5
5
  height?: number;
6
6
  width?: number;
7
- }>;
7
+ }>>;
8
8
  export default IndentLines;
@@ -1,8 +1,8 @@
1
1
  import { FC, MouseEventHandler } from 'react';
2
- declare const Switcher: FC<{
2
+ declare const Switcher: FC<React.PropsWithChildren<{
3
3
  show: boolean;
4
4
  expanded: boolean;
5
5
  variant?: 'arrow' | 'caret';
6
6
  onClick?: MouseEventHandler;
7
- }>;
7
+ }>>;
8
8
  export default Switcher;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { ITreeProps } from '../interfaces';
3
- declare const Tree: FC<ITreeProps>;
3
+ declare const Tree: FC<React.PropsWithChildren<ITreeProps>>;
4
4
  export default Tree;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { TreeNodeProps } from '../interfaces';
3
- declare const TreeNode: FC<TreeNodeProps>;
3
+ declare const TreeNode: FC<React.PropsWithChildren<TreeNodeProps>>;
4
4
  export default TreeNode;
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
2
  import { ITreeIcon } from './interfaces';
3
- export declare const TreeIcon: FC<ITreeIcon>;
3
+ export declare const TreeIcon: FC<React.PropsWithChildren<ITreeIcon>>;
@@ -63,7 +63,7 @@ declare namespace webforms {
63
63
 
64
64
  type Info = {
65
65
  displayName: string;
66
- icon?: React.FC;
66
+ icon?: React.FC<React.PropsWithChildren<unknown>>;
67
67
  exposed?: boolean;
68
68
  isCanvas?: boolean;
69
69
  events: EventMeta[];
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export declare const IdentityProvider: (props: PropsWithChildren<{
3
3
  value: string;
4
- }>) => JSX.Element;
4
+ }>) => import("react/jsx-runtime").JSX.Element;
5
5
  export declare const useIdentity: () => string;