@web-fuse/wf-components 1.0.2 → 1.0.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,8 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  type CssColor = React.CSSProperties["color"];
3
- export interface DarkCardTitleProps {
4
- title?: React.ReactNode;
3
+ export type DarkCardTitleProps = React.PropsWithChildren<{
5
4
  titleColor?: CssColor;
6
- }
5
+ }>;
7
6
  declare const DarkCardTitle: React.FC<DarkCardTitleProps>;
8
7
  export default DarkCardTitle;
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import Title, { type DarkCardTitleProps } from "./DarkCard.Title";
3
- export type DarkCardProps = React.PropsWithChildren<DarkCardTitleProps>;
3
+ export type DarkCardProps = React.PropsWithChildren<DarkCardTitleProps & {
4
+ title?: React.ReactNode;
5
+ }>;
4
6
  type DarkCardComponent = React.FC<DarkCardProps> & {
5
7
  Title: typeof Title;
6
8
  };
@@ -1,11 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  type CssColor = React.CSSProperties["color"];
3
- export interface LightCardTitleProps {
4
- title?: React.ReactNode;
3
+ export type LightCardTitleProps = React.PropsWithChildren<{
5
4
  titleColor?: CssColor;
6
- }
7
- declare const LightCardTitle: ({ title, titleColor }: {
8
- title: any;
9
- titleColor?: string;
10
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }>;
6
+ declare const LightCardTitle: React.FC<LightCardTitleProps>;
11
7
  export default LightCardTitle;
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import Title, { LightCardTitleProps } from "./LightCard.Title";
3
- export type LightCardProps = React.PropsWithChildren<LightCardTitleProps>;
3
+ export type LightCardProps = React.PropsWithChildren<LightCardTitleProps & {
4
+ title?: React.ReactNode;
5
+ }>;
4
6
  type LightCardComponent = React.FC<LightCardProps> & {
5
7
  Title: typeof Title;
6
8
  };
@@ -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;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { InputProps as AntProps, InputRef } from "antd";
3
3
  export declare const HtmlInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<AntProps & import("react").RefAttributes<InputRef>, "ref"> & {
4
- ref?: import("react").Ref<InputRef>;
4
+ ref?: ((instance: InputRef | null) => void) | import("react").RefObject<InputRef> | null | undefined;
5
5
  }, never>> & Omit<import("react").ForwardRefExoticComponent<AntProps & import("react").RefAttributes<InputRef>> & {
6
6
  Group: import("react").FC<import("antd/es/input").GroupProps>;
7
7
  Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<InputRef>>;
@@ -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>>;