@gingkoo/pandora-explorer 0.0.1-alpha.99 → 0.1.0

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.
@@ -33,5 +33,8 @@ export declare function SuffixIcon({ className, suffix, status, }: {
33
33
  suffix: string;
34
34
  status?: 'done' | 'processing';
35
35
  }): import("react/jsx-runtime").JSX.Element;
36
+ export declare function StatusIcon({ status }: {
37
+ status: string | React.ReactNode;
38
+ }): import("react/jsx-runtime").JSX.Element | null;
36
39
  export declare function UnknownSvg(): import("react/jsx-runtime").JSX.Element;
37
40
  export declare function UploadSvg(): import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,7 @@ import './index.less';
2
2
  import { ReactNode } from 'react';
3
3
  interface MenuProps {
4
4
  menu?: MenuItem[];
5
+ info?: any;
5
6
  onChange?: (key: string, parent?: MenuItem) => any;
6
7
  loadMenu?: (item: MenuItem) => MenuItem | MenuItem[];
7
8
  store?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare function getMenu(key: string): import("react").ComponentType<{}>;
3
2
  export declare function registerMenu(key: string, component: any): void;
4
3
  export declare function addMenuItem(key: string | string[], menu: any[]): void;
@@ -15,6 +15,8 @@ interface SelectBoxProps {
15
15
  isSelectBoxes: boolean;
16
16
  action?: 'stack' | 'rotate';
17
17
  checkType?: 'file' | 'folder';
18
+ startDrag: (key: string[]) => void;
19
+ endDrag: () => void;
18
20
  onChange: (v: any) => any;
19
21
  children: ReactNode;
20
22
  onMouseup: (v: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Key, FlattenNode } from '../interface';
3
2
  export declare function findExpandedKeys(prev?: Key[], next?: Key[]): {
4
3
  add: boolean;
@@ -1,8 +1,8 @@
1
1
  import './index.less';
2
2
  import React, { ReactNode } from 'react';
3
3
  export interface TreeItem {
4
- key: string;
5
- title: string;
4
+ key?: string;
5
+ title?: string;
6
6
  icon?: boolean;
7
7
  suffix?: string;
8
8
  api?: boolean;
@@ -39,5 +39,5 @@ export interface TreeProps {
39
39
  onExpand?: (data: string[]) => void;
40
40
  [key: string]: any;
41
41
  }
42
- declare const _default: React.ForwardRefExoticComponent<Omit<TreeProps, "ref"> & React.RefAttributes<unknown>>;
42
+ declare const _default: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
43
43
  export default _default;
@@ -1,3 +1,2 @@
1
- import { TreeItem } from '.';
2
- declare const _default: (props: TreeItem) => import("react/jsx-runtime").JSX.Element;
1
+ declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element;
3
2
  export default _default;
package/lib/es/css.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export declare const flush: () => void, hydrate: (ids: string[]) => void, cx: (...classNames: import("@emotion/css/create-instance").ClassNamesArg[]) => string, merge: (className: string) => string, getRegisteredStyles: (registeredStyles: string[], className: string) => string, injectGlobal: {
2
- (template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): void;
3
- (...args: import("@emotion/css/create-instance").CSSInterpolation[]): void;
1
+ export declare const flush: () => void, hydrate: (ids: Array<string>) => void, cx: (...classNames: Array<import("@emotion/css/create-instance").ClassNamesArg>) => string, merge: (className: string) => string, getRegisteredStyles: (registeredStyles: Array<string>, className: string) => string, injectGlobal: {
2
+ (template: TemplateStringsArray, ...args: Array<import("@emotion/css/create-instance").CSSInterpolation>): void;
3
+ (...args: Array<import("@emotion/css/create-instance").CSSInterpolation>): void;
4
4
  }, keyframes: {
5
- (template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
6
- (...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
5
+ (template: TemplateStringsArray, ...args: Array<import("@emotion/css/create-instance").CSSInterpolation>): string;
6
+ (...args: Array<import("@emotion/css/create-instance").CSSInterpolation>): string;
7
7
  }, css: {
8
- (template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
9
- (...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
8
+ (template: TemplateStringsArray, ...args: Array<import("@emotion/css/create-instance").CSSInterpolation>): string;
9
+ (...args: Array<import("@emotion/css/create-instance").CSSInterpolation>): string;
10
10
  }, sheet: import("@emotion/css/create-instance").CSSStyleSheet, cache: import("@emotion/css/create-instance").EmotionCache;
@@ -2,8 +2,6 @@ import './index.less';
2
2
  import './components/tree/css/index.less';
3
3
  import { FC } from 'react';
4
4
  import { ExplorerProps } from './types';
5
- import '@gingkoo/pandora/lib/umd/index.min.css';
6
- import '@gingkoo/pandora-icons/fonts/css/all.min.css';
7
5
  export declare const Icons: (v: any, className: string, style?: any) => import("react/jsx-runtime").JSX.Element;
8
6
  declare const Explorer: FC<ExplorerProps>;
9
7
  export default Explorer;