@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.
- package/dist/components/BaseIcon/index.d.ts +4 -2
- package/dist/components/Icon/Icon.stories.d.ts +7 -24
- package/dist/components/Icon/index.d.ts +13 -12
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/esm/index.js +209 -181
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/spec/base.d.ts +5 -0
- package/dist/store/index.d.ts +3 -8
- package/dist/style.css +673 -677
- package/dist/umd/index.js +211 -180
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -4
- package/dist/components/Table/TableSelection.d.ts +0 -27
- package/dist/stories/outline.stories.d.ts +0 -5
- /package/dist/stories/{fill.stories.d.ts → icons-react.stories.d.ts} +0 -0
|
@@ -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?:
|
|
10
|
-
src:
|
|
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:
|
|
4
|
+
src: import("..").SrcType;
|
|
5
5
|
active?: boolean | undefined;
|
|
6
|
-
hoverSrc?:
|
|
7
|
-
activeSrc?:
|
|
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:
|
|
17
|
-
hoverSrc?:
|
|
18
|
-
activeSrc?:
|
|
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
|
|
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:
|
|
4
|
+
src: SrcType;
|
|
4
5
|
active?: boolean;
|
|
5
|
-
hoverSrc?:
|
|
6
|
-
activeSrc?:
|
|
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:
|
|
16
|
-
hoverSrc?:
|
|
17
|
-
activeSrc?:
|
|
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:
|
|
22
|
+
src: SrcType;
|
|
22
23
|
active?: boolean | undefined;
|
|
23
|
-
hoverSrc?:
|
|
24
|
-
activeSrc?:
|
|
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:
|
|
34
|
-
hoverSrc?:
|
|
35
|
-
activeSrc?:
|
|
34
|
+
src: SrcType;
|
|
35
|
+
hoverSrc?: SrcType | undefined;
|
|
36
|
+
activeSrc?: SrcType | undefined;
|
|
36
37
|
} | undefined;
|
|
37
38
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
38
39
|
export default Icon;
|
|
@@ -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
|
|
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";
|