@cloudtower/eagle 0.22.10 → 0.22.12

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,4 +1,6 @@
1
+ import * as SVG from "@cloudtower/icons-react";
1
2
  import React from "react";
3
+ export type SrcType = string | typeof SVG[keyof typeof SVG];
2
4
  export interface IBaseIconProps extends React.HTMLAttributes<HTMLSpanElement> {
3
5
  className?: string;
4
6
  alt?: string;
@@ -6,8 +8,8 @@ export interface IBaseIconProps extends React.HTMLAttributes<HTMLSpanElement> {
6
8
  height?: number | "auto";
7
9
  cursor?: "pointer" | string;
8
10
  prefixNode?: React.ReactNode;
9
- suffixIconSrc?: string;
10
- src: string;
11
+ suffixIconSrc?: SrcType;
12
+ src: SrcType;
11
13
  }
12
14
  declare const BaseIcon: React.ForwardRefExoticComponent<IBaseIconProps & React.RefAttributes<HTMLSpanElement>>;
13
15
  export default BaseIcon;
@@ -1,10 +1,10 @@
1
1
  import { ComponentMeta, ComponentStory } from "@storybook/react";
2
2
  import React from "react";
3
3
  declare const _default: ComponentMeta<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
4
- src: string;
4
+ src: import("..").SrcType;
5
5
  active?: boolean | undefined;
6
- hoverSrc?: string | undefined;
7
- activeSrc?: string | undefined;
6
+ hoverSrc?: import("..").SrcType | undefined;
7
+ activeSrc?: import("..").SrcType | undefined;
8
8
  className?: string | undefined;
9
9
  alt?: string | undefined;
10
10
  iconWidth?: number | undefined;
@@ -13,27 +13,10 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<React.HTML
13
13
  isRotate?: boolean | undefined;
14
14
  prefix?: React.ReactNode;
15
15
  suffix?: {
16
- src: string;
17
- hoverSrc?: string | undefined;
18
- activeSrc?: string | undefined;
16
+ src: import("..").SrcType;
17
+ hoverSrc?: import("..").SrcType | undefined;
18
+ activeSrc?: import("..").SrcType | undefined;
19
19
  } | undefined;
20
20
  } & React.RefAttributes<HTMLSpanElement>>>;
21
21
  export default _default;
22
- export declare const Primary: ComponentStory<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
23
- src: string;
24
- active?: boolean | undefined;
25
- hoverSrc?: string | undefined;
26
- activeSrc?: string | undefined;
27
- className?: string | undefined;
28
- alt?: string | undefined;
29
- iconWidth?: number | undefined;
30
- iconHeight?: number | "auto" | undefined;
31
- cursor?: string | undefined;
32
- isRotate?: boolean | undefined;
33
- prefix?: React.ReactNode;
34
- suffix?: {
35
- src: string;
36
- hoverSrc?: string | undefined;
37
- activeSrc?: string | undefined;
38
- } | undefined;
39
- } & React.RefAttributes<HTMLSpanElement>>>;
22
+ export declare const Simple: ComponentStory<(props: any) => JSX.Element>;
@@ -1,9 +1,10 @@
1
1
  import React from "react";
2
+ import { SrcType } from "../BaseIcon";
2
3
  export type IconProps = React.HTMLAttributes<HTMLSpanElement> & {
3
- src: string;
4
+ src: SrcType;
4
5
  active?: boolean;
5
- hoverSrc?: string;
6
- activeSrc?: string;
6
+ hoverSrc?: SrcType;
7
+ activeSrc?: SrcType;
7
8
  className?: string;
8
9
  alt?: string;
9
10
  iconWidth?: number;
@@ -12,16 +13,16 @@ export type IconProps = React.HTMLAttributes<HTMLSpanElement> & {
12
13
  isRotate?: boolean;
13
14
  prefix?: React.ReactNode;
14
15
  suffix?: {
15
- src: string;
16
- hoverSrc?: string;
17
- activeSrc?: string;
16
+ src: SrcType;
17
+ hoverSrc?: SrcType;
18
+ activeSrc?: SrcType;
18
19
  };
19
20
  };
20
21
  declare const Icon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
21
- src: string;
22
+ src: SrcType;
22
23
  active?: boolean | undefined;
23
- hoverSrc?: string | undefined;
24
- activeSrc?: string | undefined;
24
+ hoverSrc?: SrcType | undefined;
25
+ activeSrc?: SrcType | undefined;
25
26
  className?: string | undefined;
26
27
  alt?: string | undefined;
27
28
  iconWidth?: number | undefined;
@@ -30,9 +31,9 @@ declare const Icon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpa
30
31
  isRotate?: boolean | undefined;
31
32
  prefix?: React.ReactNode;
32
33
  suffix?: {
33
- src: string;
34
- hoverSrc?: string | undefined;
35
- activeSrc?: string | undefined;
34
+ src: SrcType;
35
+ hoverSrc?: SrcType | undefined;
36
+ activeSrc?: SrcType | undefined;
36
37
  } | undefined;
37
38
  } & React.RefAttributes<HTMLSpanElement>>;
38
39
  export default Icon;
@@ -15,5 +15,4 @@ export { default as HeaderCell } from "./HeaderCell";
15
15
  export * from "./PendingTable";
16
16
  export { default as PendingTable } from "./PendingTable";
17
17
  export * from "./SearchWidget";
18
- export * from "./TableSelection";
19
18
  export * from "./TableWidget";
@@ -6,7 +6,8 @@ export { default as Button } from "./Button";
6
6
  export * from "./ButtonGroup";
7
7
  export { default as ErrorBoundary } from "./ErrorBoundary";
8
8
  export { default as FailedLoad } from "./FailedLoad";
9
- export * from "./Icon";
9
+ export type { IconProps } from "./Icon";
10
+ export { default as Icon } from "./Icon";
10
11
  export * from "./KitStoreProvider";
11
12
  export { default as KitStoreProvider } from "./KitStoreProvider";
12
13
  export { default as Loading } from "./Loading";