@lobehub/ui 1.145.0 → 1.145.2
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,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DivProps, SvgProps } from "../types";
|
|
3
|
-
|
|
3
|
+
type IconProps = SvgProps & DivProps;
|
|
4
|
+
export interface FileTypeIconProps extends IconProps {
|
|
4
5
|
color?: string;
|
|
5
6
|
filetype?: string;
|
|
6
7
|
size?: number;
|
|
7
8
|
type?: 'file' | 'folder';
|
|
8
9
|
variant?: 'color' | 'mono';
|
|
9
10
|
}
|
|
10
|
-
declare const FileTypeIcon: import("react").NamedExoticComponent<FileTypeIconProps
|
|
11
|
+
declare const FileTypeIcon: import("react").NamedExoticComponent<FileTypeIconProps>;
|
|
11
12
|
export default FileTypeIcon;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DivProps } from "../types";
|
|
3
|
-
export interface MaterialFileTypeIconProps {
|
|
3
|
+
export interface MaterialFileTypeIconProps extends DivProps {
|
|
4
4
|
filename: string;
|
|
5
5
|
open?: boolean;
|
|
6
6
|
size?: number;
|
|
7
7
|
type?: 'file' | 'folder';
|
|
8
|
-
variant?: 'pure' | 'file';
|
|
8
|
+
variant?: 'pure' | 'file' | 'folder';
|
|
9
9
|
}
|
|
10
|
-
declare const MaterialFileTypeIcon: import("react").NamedExoticComponent<MaterialFileTypeIconProps
|
|
10
|
+
declare const MaterialFileTypeIcon: import("react").NamedExoticComponent<MaterialFileTypeIconProps>;
|
|
11
11
|
export default MaterialFileTypeIcon;
|
|
@@ -45,7 +45,7 @@ var MaterialFileTypeIcon = /*#__PURE__*/memo(function (_ref) {
|
|
|
45
45
|
width: size
|
|
46
46
|
}, rest), {}, {
|
|
47
47
|
children: [/*#__PURE__*/_jsx(FileTypeIcon, {
|
|
48
|
-
type:
|
|
48
|
+
type: variant,
|
|
49
49
|
variant: 'mono'
|
|
50
50
|
}), /*#__PURE__*/_jsx(Img, _objectSpread({
|
|
51
51
|
height: size / 2,
|