@web-fuse/wf-components 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,8 +3,5 @@ type CssColor = React.CSSProperties["color"];
3
3
  export type LightCardTitleProps = React.PropsWithChildren<{
4
4
  titleColor?: CssColor;
5
5
  }>;
6
- declare const LightCardTitle: ({ children, titleColor }: {
7
- children: any;
8
- titleColor?: string;
9
- }) => import("react/jsx-runtime").JSX.Element;
6
+ declare const LightCardTitle: React.FC<LightCardTitleProps>;
10
7
  export default LightCardTitle;
@@ -9,5 +9,5 @@ export interface CodeBlockCopyProps {
9
9
  text?: string;
10
10
  onCopy?: CopyToClipboard.Props["onCopy"];
11
11
  }
12
- declare const CodeBlockCopy: ({ showCopy, copyConfig, text, onCopy }: CodeBlockCopyProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const CodeBlockCopy: ({ showCopy, copyConfig, text, onCopy }: CodeBlockCopyProps) => import("react/jsx-runtime").JSX.Element | null;
13
13
  export default CodeBlockCopy;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react-syntax-highlighter" />
1
2
  /// <reference types="react-copy-to-clipboard" />
2
3
  import { type default as React } from "react";
3
4
  import * as codeThemes from "react-syntax-highlighter/dist/esm/styles/prism";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react-syntax-highlighter" />
1
2
  export { default as bash } from "react-syntax-highlighter/dist/esm/languages/prism/bash";
2
3
  export { default as css } from "react-syntax-highlighter/dist/esm/languages/prism/css";
3
4
  export { default as javascript } from "react-syntax-highlighter/dist/esm/languages/prism/javascript";
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type CollapseBaseProps, type CollapseRef } from "./CollapseBase";
3
3
  type CssColor = React.CSSProperties["color"];
4
- export interface CollapseProps extends Omit<CollapseBaseProps, "style"> {
4
+ export interface CollapseProps extends Omit<CollapseBaseProps, "style" | "header"> {
5
5
  title?: React.ReactNode;
6
6
  activeColor?: CssColor;
7
7
  inactiveColor?: CssColor;
@@ -14,12 +14,12 @@ export type CollapseRef = {
14
14
  calculateHeight: () => void;
15
15
  };
16
16
  declare const CollapseBase: import("react").ForwardRefExoticComponent<{
17
- open?: boolean;
18
- onChange?: CollapseChangeHandler;
19
- defaultOpen?: boolean;
20
- style?: React.CSSProperties;
17
+ open?: boolean | undefined;
18
+ onChange?: CollapseChangeHandler | undefined;
19
+ defaultOpen?: boolean | undefined;
20
+ style?: import("react").CSSProperties | undefined;
21
21
  header?: React.ReactNode;
22
- border?: boolean;
22
+ border?: boolean | undefined;
23
23
  width?: React.CSSProperties["width"];
24
24
  } & {
25
25
  children?: import("react").ReactNode;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  export type ContentProps = React.PropsWithChildren<{
3
- background?: React.CSSProperties["background"];
3
+ style?: React.CSSProperties;
4
4
  }>;
5
5
  declare const CollapseContent: import("react").ForwardRefExoticComponent<{
6
- background?: React.CSSProperties["background"];
6
+ style?: import("react").CSSProperties | undefined;
7
7
  } & {
8
8
  children?: import("react").ReactNode;
9
9
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -3,12 +3,12 @@ export declare const Item: import("styled-components").IStyledComponent<"web", i
3
3
  $colorBorder?: React.CSSProperties["color"];
4
4
  }>>;
5
5
  export declare const ItemText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
6
- ref?: import("react").Ref<HTMLSpanElement>;
6
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
7
7
  }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
8
8
  export declare const SubItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$colorBorder"> & {
9
9
  $colorBorder?: React.CSSProperties["color"];
10
10
  }, "ref"> & {
11
- ref?: import("react").Ref<HTMLDivElement>;
11
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
12
12
  }, {
13
13
  $colorActiveBg: React.CSSProperties["color"];
14
14
  }>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
@@ -1,29 +1,29 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Button: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
3
- ref?: import("react").Ref<HTMLAnchorElement | HTMLButtonElement>;
3
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
4
4
  }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
5
5
  Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
6
6
  }, keyof import("react").Component<any, {}, any>>;
7
7
  export declare const CenteredButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
8
- ref?: import("react").Ref<HTMLAnchorElement | HTMLButtonElement>;
8
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
9
9
  }, never>, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
10
- ref?: import("react").Ref<HTMLAnchorElement | HTMLButtonElement>;
10
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
11
11
  }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
12
12
  Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
13
13
  }, keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>;
14
14
  export declare const ExtraSmallButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
15
- ref?: import("react").Ref<HTMLAnchorElement | HTMLButtonElement>;
15
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
16
16
  }, never>, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
17
- ref?: import("react").Ref<HTMLAnchorElement | HTMLButtonElement>;
17
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
18
18
  }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
19
19
  Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
20
20
  }, keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>;
21
21
  export declare const RightButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
22
- ref?: import("react").Ref<HTMLAnchorElement | HTMLButtonElement>;
22
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
23
23
  }, never>, never>, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
24
- ref?: import("react").Ref<HTMLAnchorElement | HTMLButtonElement>;
24
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
25
25
  }, never>, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> & {
26
- ref?: import("react").Ref<HTMLAnchorElement | HTMLButtonElement>;
26
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
27
27
  }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
28
28
  Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
29
29
  }, keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>, keyof import("react").Component<any, {}, any>>;
@@ -7,5 +7,5 @@ export interface HoverLabelProps {
7
7
  }
8
8
  declare const HoverLabel: React.ForwardRefExoticComponent<HoverLabelProps & {
9
9
  children?: React.ReactNode;
10
- } & React.RefAttributes<HTMLLabelElement>>;
10
+ } & React.RefAttributes<HTMLLabelElement | null>>;
11
11
  export default HoverLabel;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { InputRef } from "antd";
3
+ import { PasswordProps as AntProps } from "antd/es/input";
4
+ interface RandomizeOptions {
5
+ charCount?: number;
6
+ onRandomize?: (event: React.MouseEvent<HTMLSpanElement>) => void;
7
+ tooltip?: React.ReactNode | null;
8
+ }
9
+ export interface PasswordProps extends AntProps {
10
+ copy?: boolean;
11
+ randomize?: boolean | RandomizeOptions;
12
+ }
13
+ declare const Password: import("react").ForwardRefExoticComponent<PasswordProps & import("react").RefAttributes<InputRef>>;
14
+ export default Password;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const HtmlSearch: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>, "ref"> & {
3
+ ref?: ((instance: import("antd").InputRef | null) => void) | import("react").RefObject<import("antd").InputRef> | null | undefined;
4
+ }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>, keyof import("react").Component<any, {}, any>>;
5
+ export default HtmlSearch;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const HtmlTextArea: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>, "ref"> & {
3
+ ref?: ((instance: import("antd/es/input/TextArea").TextAreaRef | null) => void) | import("react").RefObject<import("antd/es/input/TextArea").TextAreaRef> | null | undefined;
4
+ }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, keyof import("react").Component<any, {}, any>>;
5
+ export default HtmlTextArea;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ declare const HtmlInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef>, "ref"> & {
3
+ ref?: ((instance: import("antd").InputRef | null) => void) | import("react").RefObject<import("antd").InputRef> | null | undefined;
4
+ }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef>> & {
5
+ Group: import("react").FC<import("antd/es/input").GroupProps>;
6
+ Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
7
+ TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
8
+ Password: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef>>;
9
+ OTP: import("react").ForwardRefExoticComponent<import("antd/es/input/OTP").OTPProps & import("react").RefAttributes<import("antd/es/input/OTP").OTPRef>>;
10
+ }, keyof import("react").Component<any, {}, any>>;
11
+ export default HtmlInput;
@@ -0,0 +1,14 @@
1
+ import { Input as AntInput } from "antd";
2
+ import { default as HtmlInput } from "./Input";
3
+ import Password from "./Input.Password";
4
+ import Search from "./Input.Search";
5
+ import TextArea from "./Input.TextArea";
6
+ export type { PasswordProps } from "./Input.Password";
7
+ type InputType = typeof HtmlInput & {
8
+ TextArea: typeof TextArea;
9
+ Search: typeof Search;
10
+ Password: typeof Password;
11
+ OTP: typeof AntInput.OTP;
12
+ };
13
+ declare const Input: InputType;
14
+ export default Input;
@@ -1,4 +1,4 @@
1
1
  export * from "./Buttons";
2
2
  export { default as HoverLabel } from "./HoverLabel";
3
3
  export type { HoverLabelProps } from "./HoverLabel";
4
- export { default as Input } from "./Input";
4
+ export { default as Input } from "./Input/index";
@@ -1,5 +1,15 @@
1
1
  /// <reference types="react" />
2
- declare const MainSettings: import("react").ForwardRefExoticComponent<{
2
+ import { type FlexProps } from "antd";
3
+ export declare const SettingsPadding: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
4
+ export declare const SettingsFlex: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>, "ref"> & {
5
+ ref?: ((instance: HTMLElement | null) => void) | import("react").RefObject<HTMLElement> | null | undefined;
6
+ }, never>> & Omit<import("react").ForwardRefExoticComponent<FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
7
+ export interface MainSettingsProps {
8
+ flex?: boolean;
9
+ padding?: boolean;
10
+ flexProps?: FlexProps;
11
+ }
12
+ declare const MainSettings: import("react").ForwardRefExoticComponent<MainSettingsProps & {
3
13
  children?: import("react").ReactNode;
4
14
  } & import("react").RefAttributes<HTMLDivElement>>;
5
15
  export default MainSettings;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import MainSettings from "./MainSettings";
2
+ import MainSettings, { SettingsFlex, SettingsPadding } from "./MainSettings";
3
3
  import MainSelector from "./MainSelector";
4
4
  interface MainBaseProps {
5
5
  overflow?: "scroll" | "visible";
@@ -9,6 +9,8 @@ export type MainProps = React.PropsWithChildren<MainBaseProps>;
9
9
  type MainLayoutType = React.ForwardRefExoticComponent<MainProps & React.RefAttributes<HTMLDivElement>> & {
10
10
  Settings: typeof MainSettings;
11
11
  Selector: typeof MainSelector;
12
+ Padding: typeof SettingsPadding;
13
+ Flex: typeof SettingsFlex;
12
14
  };
13
15
  declare const MainLayout: MainLayoutType;
14
16
  export default MainLayout;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const HeaderTextBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>>;
3
3
  export declare const HeaderText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
4
- ref?: import("react").Ref<HTMLSpanElement>;
4
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
5
5
  }, never>> & Omit<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;