xmirror-components 1.0.26-alpha.5 → 1.0.26

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.
@@ -50,7 +50,7 @@ export interface IconButtonProps extends Omit<ButtonTooltipProps, 'children'> {
50
50
  /**
51
51
  * 其他属性
52
52
  */
53
- [key: string]: any;
53
+ flag?: never;
54
54
  }
55
- export declare const IconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
55
+ export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
56
56
  export default IconButton;
@@ -12,16 +12,15 @@ interface IconFontCommonProps {
12
12
  * 是否使用 symbol 模式
13
13
  */
14
14
  symbol?: boolean;
15
- [attrs: string]: any;
16
15
  }
17
16
  export type IconFontProps = (IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
18
17
  symbol: true;
19
18
  }) | (IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
20
19
  symbol?: false;
21
20
  });
22
- declare const IconFont: React.ForwardRefExoticComponent<(Omit<IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
23
- symbol: true;
24
- }, "ref"> | Omit<IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
21
+ declare const IconFont: React.ForwardRefExoticComponent<((IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
25
22
  symbol?: false;
23
+ }) | Omit<IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
24
+ symbol: true;
26
25
  }, "ref">) & React.RefAttributes<HTMLElement | SVGSVGElement>>;
27
26
  export default IconFont;
@@ -95,7 +95,7 @@ declare interface ConfigProviderProps {
95
95
 
96
96
  export declare function GlobalLoading(): default_2.JSX.Element;
97
97
 
98
- export declare const IconButton: default_2.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & default_2.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
98
+ export declare const IconButton: default_2.ForwardRefExoticComponent<IconButtonProps & default_2.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
99
99
 
100
100
  declare type IconButtonConfig = Pick<IconButtonProps, 'size' | 'className' | 'style'> & {
101
101
  render: (props: IconButtonProps & {
@@ -131,13 +131,13 @@ declare interface IconButtonProps extends Omit<ButtonTooltipProps, 'children'> {
131
131
  /**
132
132
  * 其他属性
133
133
  */
134
- [key: string]: any;
134
+ flag?: never;
135
135
  }
136
136
 
137
- export declare const IconFont: default_2.ForwardRefExoticComponent<(Omit<IconFontCommonProps & default_2.SVGProps<SVGSVGElement> & {
138
- symbol: true;
139
- }, "ref"> | Omit<IconFontCommonProps & default_2.HTMLAttributes<HTMLElement> & {
137
+ export declare const IconFont: default_2.ForwardRefExoticComponent<((IconFontCommonProps & default_2.HTMLAttributes<HTMLElement> & {
140
138
  symbol?: false;
139
+ }) | Omit<IconFontCommonProps & default_2.SVGProps<SVGSVGElement> & {
140
+ symbol: true;
141
141
  }, "ref">) & default_2.RefAttributes<HTMLElement | SVGSVGElement>>;
142
142
 
143
143
  declare interface IconFontCommonProps {
@@ -153,7 +153,6 @@ declare interface IconFontCommonProps {
153
153
  * 是否使用 symbol 模式
154
154
  */
155
155
  symbol?: boolean;
156
- [attrs: string]: any;
157
156
  }
158
157
 
159
158
  declare type IconFontConfig = Pick<IconFontProps, 'className' | 'style'>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmirror-components",
3
- "version": "1.0.26-alpha.5",
3
+ "version": "1.0.26",
4
4
  "type": "module",
5
5
  "main": "build/lib/index.js",
6
6
  "module": "build/es/index.js",
@@ -50,7 +50,7 @@ export interface IconButtonProps extends Omit<ButtonTooltipProps, 'children'> {
50
50
  /**
51
51
  * 其他属性
52
52
  */
53
- [key: string]: any;
53
+ flag?: never;
54
54
  }
55
- export declare const IconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
55
+ export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
56
56
  export default IconButton;
@@ -12,16 +12,15 @@ interface IconFontCommonProps {
12
12
  * 是否使用 symbol 模式
13
13
  */
14
14
  symbol?: boolean;
15
- [attrs: string]: any;
16
15
  }
17
16
  export type IconFontProps = (IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
18
17
  symbol: true;
19
18
  }) | (IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
20
19
  symbol?: false;
21
20
  });
22
- declare const IconFont: React.ForwardRefExoticComponent<(Omit<IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
23
- symbol: true;
24
- }, "ref"> | Omit<IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
21
+ declare const IconFont: React.ForwardRefExoticComponent<((IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
25
22
  symbol?: false;
23
+ }) | Omit<IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
24
+ symbol: true;
26
25
  }, "ref">) & React.RefAttributes<HTMLElement | SVGSVGElement>>;
27
26
  export default IconFont;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmirror-components",
3
- "version": "1.0.26-alpha.5",
3
+ "version": "1.0.26",
4
4
  "type": "module",
5
5
  "main": "build/lib/index.js",
6
6
  "module": "build/es/index.js",