onchain-uikit 3.9.4-alpha40 → 3.9.4-alpha41
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/index.cjs.js +1 -708
- package/dist/index.es.js +9 -60316
- package/dist/index.umd.js +1 -812
- package/lib/src/app/main/model/context.d.ts +9 -7
- package/lib/src/components/PlmIcon/index.d.ts +30 -0
- package/lib/src/components/PlmIcon/index.stories.d.ts +15 -0
- package/lib/src/components/PlmLoading/PlmLoading.stories.d.ts +14 -0
- package/lib/src/components/PlmLoading/index.d.ts +7 -0
- package/lib/src/components/PlmLoadingSkCube/PlmLoadingSkCube.stories.d.ts +14 -0
- package/lib/src/components/PlmLoadingSkCube/index.d.ts +6 -0
- package/lib/src/components/PlmMarkdown/PlmLoading.stories.d.ts +14 -0
- package/lib/src/components/PlmMarkdown/index.d.ts +15 -0
- package/lib/src/components/PlmMosaic/index.d.ts +5 -0
- package/lib/src/components/PlmMosaic/index.stories.d.ts +14 -0
- package/lib/src/components/PlmSelect/index.d.ts +20 -0
- package/lib/src/components/PlmSelect/index.stories.d.ts +21 -0
- package/lib/src/extend/ButtonAuth.d.ts +11 -0
- package/lib/src/extend/Ti5ButtonAuth.d.ts +6 -0
- package/lib/src/index.d.ts +2 -80
- package/lib/src/language/translate.d.ts +3 -4
- package/lib/src/stories/Button.d.ts +14 -0
- package/lib/src/stories/Button.stories.d.ts +23 -0
- package/lib/src/stories/Header.d.ts +11 -0
- package/lib/src/stories/Header.stories.d.ts +18 -0
- package/lib/src/stories/OnChainProvider.d.ts +15 -0
- package/lib/src/stories/Page.d.ts +2 -0
- package/lib/src/stories/Page.stories.d.ts +12 -0
- package/lib/src/stories/PlmMosaic.stories.d.ts +14 -0
- package/lib/src/stories/PlmSelect/PlmSelect.stories.d.ts +21 -0
- package/lib/src/stories/PlmSelect/index.d.ts +20 -0
- package/lib/src/stories/XsButton.d.ts +22 -0
- package/lib/src/stories/XsButton.stories.d.ts +14 -0
- package/package.json +1 -1
- package/dist/onchain-uikit.css +0 -10
- package/dist/xlsx-C9f7-NIf.mjs +0 -24768
- package/dist/xlsx-DtQJwEPb.js +0 -105
- package/lib/src/components/PlmSearchSelect/index.d.ts +0 -18
|
@@ -7,8 +7,6 @@ export interface ContextData {
|
|
|
7
7
|
iconScriptUrl?: string;
|
|
8
8
|
/** 图标前缀是否固定为icon- */
|
|
9
9
|
isOnlyPrefixIcon?: boolean;
|
|
10
|
-
/** 国际化语言 */
|
|
11
|
-
languageMap?: Record<string, any>;
|
|
12
10
|
/** 额外的Form组件 */
|
|
13
11
|
formItemCom?: Record<string, React.FC<any>>;
|
|
14
12
|
/** 覆盖a跳转标签 */
|
|
@@ -19,14 +17,18 @@ export interface ContextData {
|
|
|
19
17
|
* 根据patchCode翻译国际化文本
|
|
20
18
|
* @param key pathCode
|
|
21
19
|
* @param extra
|
|
22
|
-
* @param languageMap 国际化语言
|
|
23
20
|
* @returns
|
|
24
21
|
*/
|
|
25
22
|
translate?: (
|
|
26
23
|
/** pathCode路径 */
|
|
27
|
-
key: string, extra
|
|
24
|
+
key: string, extra: {
|
|
28
25
|
variate?: object;
|
|
29
|
-
placeholder
|
|
30
|
-
}
|
|
26
|
+
placeholder: string;
|
|
27
|
+
}) => string;
|
|
31
28
|
}
|
|
32
|
-
export
|
|
29
|
+
export type CxtType = ContextData & Pick<Required<ContextData>, 'translate'>;
|
|
30
|
+
export declare class GlobalModelContext {
|
|
31
|
+
static cxt: CxtType;
|
|
32
|
+
static initCxt(cxt: CxtType): void;
|
|
33
|
+
}
|
|
34
|
+
export declare const ModelContext: React.Context<CxtType>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PopoverProps, TooltipProps } from 'antd';
|
|
3
|
+
export interface PlmIconProps {
|
|
4
|
+
/** 图标名称 */
|
|
5
|
+
type: string;
|
|
6
|
+
/** true(icon-) false(icon-front-) */
|
|
7
|
+
isBackend?: boolean;
|
|
8
|
+
/** 是否自动处理前缀,默认自动处理,否则直接使用type不需要前缀 */
|
|
9
|
+
autoPrefix?: boolean;
|
|
10
|
+
StorageApicode?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
number?: number;
|
|
15
|
+
style?: React.CSSProperties | undefined;
|
|
16
|
+
divStyle?: any;
|
|
17
|
+
color?: string;
|
|
18
|
+
marginTop?: string;
|
|
19
|
+
button?: boolean;
|
|
20
|
+
tooltip?: TooltipProps;
|
|
21
|
+
popover?: PopoverProps;
|
|
22
|
+
placement?: string | boolean;
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
onClick?: (e?: any) => void;
|
|
25
|
+
onDivClick?: () => void;
|
|
26
|
+
onMouseEnter?: () => void;
|
|
27
|
+
onMouseLeave?: () => void;
|
|
28
|
+
}
|
|
29
|
+
declare const PlmIcon: ({ autoPrefix, ...props }: PlmIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export default PlmIcon;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ autoPrefix, ...props }: import('.').PlmIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
15
|
+
export declare const Init2: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ loadingSize, ...props }: import('../PlmLoading').PlmLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface PlmLoadingProps {
|
|
3
|
+
loadingSize?: number;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const PlmLoading: ({ loadingSize, ...props }: PlmLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PlmLoading;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import('../PlmLoadingSkCube').PlmLoadingSkCubeProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ ...props }: import('../PlmMarkdown').PlmMarkdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface PlmMarkdownProps {
|
|
2
|
+
value?: string;
|
|
3
|
+
readOnly: boolean;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
height?: number;
|
|
6
|
+
OSS_URL?: string;
|
|
7
|
+
token?: string;
|
|
8
|
+
toPostFileRecord?: ({ file, response, type }: {
|
|
9
|
+
file: any;
|
|
10
|
+
response: any;
|
|
11
|
+
type: any;
|
|
12
|
+
}) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const PlmMarkdown: ({ ...props }: PlmMarkdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default PlmMarkdown;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import('.').PlmMosaicProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const InLineTrue: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseComponentProps } from '../../typings';
|
|
2
|
+
import { SelectProps } from 'antd';
|
|
3
|
+
export interface PlmSelectProps extends BaseComponentProps, SelectProps<any> {
|
|
4
|
+
pane?: {
|
|
5
|
+
cols?: number;
|
|
6
|
+
item?: BaseComponentProps;
|
|
7
|
+
};
|
|
8
|
+
/** 分页信息 */
|
|
9
|
+
pagination?: {
|
|
10
|
+
/**网络请求URL select走分页路线 */
|
|
11
|
+
url: string;
|
|
12
|
+
page: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
total: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface PlmSelectForwardRefProps {
|
|
18
|
+
}
|
|
19
|
+
declare const PlmSelect: import('react').ForwardRefExoticComponent<Omit<PlmSelectProps, "ref"> & import('react').RefAttributes<unknown>>;
|
|
20
|
+
export default PlmSelect;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<Omit<import('.').PlmSelectProps, "ref"> & import('react').RefAttributes<unknown>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {
|
|
11
|
+
/** 列表值 */
|
|
12
|
+
options: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof meta>;
|
|
20
|
+
export declare const Large: Story;
|
|
21
|
+
export declare const Small: Story;
|
package/lib/src/index.d.ts
CHANGED
|
@@ -1,80 +1,2 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
|
|
3
|
-
import { default as OnChainSelect } from './components/OnChainSelect';
|
|
4
|
-
import { default as Paragraph } from 'antd/es/typography/Paragraph';
|
|
5
|
-
import { default as OnChainIcon } from './components/OnChainIcon';
|
|
6
|
-
import { default as OnChainBadge } from './components/OnChainBadge';
|
|
7
|
-
import { default as OnChainHighLightWords } from './components/OnChainHighLightWords';
|
|
8
|
-
import { default as OnChainInput } from './components/OnChainInput';
|
|
9
|
-
import { default as OnChainLoading } from './components/OnChainLoading';
|
|
10
|
-
import { default as OnChainLoadingSkCube } from './components/OnChainLoadingSkCube';
|
|
11
|
-
import { default as OnChainGlobalLoading } from './components/OnChainGlobalLoading';
|
|
12
|
-
import { default as OnChainMarkdown } from './components/OnChainMarkdown';
|
|
13
|
-
import { default as OnChainModal } from './components/OnChainModal';
|
|
14
|
-
import { default as OnChainMosaic } from './components/OnChainMosaic';
|
|
15
|
-
import { default as OnChainScrollBar } from './components/OnChainScrollBar';
|
|
16
|
-
import { default as OnChainViewerError } from './components/OnChainViewerError';
|
|
17
|
-
import { default as OnChainDropMenu } from './components/OnChainDropMenu';
|
|
18
|
-
import { default as OnChainCompositeForm } from './components/OnChainCompositeForm';
|
|
19
|
-
import { default as OnChainExcelViewer } from './components/OnChainExcelViewer';
|
|
20
|
-
import { default as OnChainForm } from './components/OnChainForm';
|
|
21
|
-
import { default as OnChainFormItem } from './components/OnChainFormItem';
|
|
22
|
-
import { default as OnChainGenAntImage } from './components/OnChainGenAntImage';
|
|
23
|
-
import { default as OnChainImage } from './components/OnChainImage';
|
|
24
|
-
import { default as OnChainTableSelection } from './components/OnChainTableSelection';
|
|
25
|
-
import { default as OnChainResourceTree } from './components/OnChainResourceTree';
|
|
26
|
-
import { default as OnChainAdvancedSearch } from './components/OnChainAdvancedSearch';
|
|
27
|
-
import { default as OnChainPopupSelect } from './components/OnChainPopupSelect';
|
|
28
|
-
import { default as OnChainQueryBuilder } from './components/OnChainQueryBuilder';
|
|
29
|
-
import { default as OnChainScrollBarAssembly } from './components/OnChainScrollBarAssembly';
|
|
30
|
-
import { default as OnChainSelectPopupForm } from './components/OnChainSelectPopupForm';
|
|
31
|
-
import { default as OnChainPublicTree } from './components/OnChainPublicTree';
|
|
32
|
-
import { default as OnChainTable } from './components/OnChainTable';
|
|
33
|
-
import { default as OnChainAI } from './components/OnChainAI';
|
|
34
|
-
import { default as OnChainProgress } from './components/OnChainProgress';
|
|
35
|
-
import { default as OnChainTabs } from './components/OnChainTabs';
|
|
36
|
-
import { default as zhCN } from 'antd/locale/zh_CN';
|
|
37
|
-
import { default as en_US } from 'antd/locale/en_US';
|
|
38
|
-
import { DefaultOptionType } from 'antd/lib/select';
|
|
39
|
-
import { TableRowSelection } from 'antd/lib/table/interface';
|
|
40
|
-
import { CheckboxOptionType } from 'antd/lib/checkbox';
|
|
41
|
-
import { TransferDirection, TransferItem } from 'antd/es/transfer';
|
|
42
|
-
import { TransferListBodyProps } from 'antd/es/transfer/ListBody';
|
|
43
|
-
export * from './components/OnChainProvider';
|
|
44
|
-
export * from './components/OnChainSelect';
|
|
45
|
-
export * from './components/OnChainIcon';
|
|
46
|
-
export * from './components/OnChainBadge';
|
|
47
|
-
export * from './components/OnChainHighLightWords';
|
|
48
|
-
export * from './components/OnChainInput';
|
|
49
|
-
export * from './components/OnChainLoading';
|
|
50
|
-
export * from './components/OnChainLoadingSkCube';
|
|
51
|
-
export * from './components/OnChainGlobalLoading';
|
|
52
|
-
export * from './components/OnChainMarkdown';
|
|
53
|
-
export * from './components/OnChainModal';
|
|
54
|
-
export * from './components/OnChainMosaic';
|
|
55
|
-
export * from './components/OnChainScrollBar';
|
|
56
|
-
export * from './components/OnChainViewerError';
|
|
57
|
-
export * from './components/OnChainDropMenu';
|
|
58
|
-
export * from './components/OnChainCompositeForm';
|
|
59
|
-
export * from './components/OnChainExcelViewer';
|
|
60
|
-
export * from './components/OnChainForm';
|
|
61
|
-
export * from './components/OnChainFormItem';
|
|
62
|
-
export * from './components/OnChainGenAntImage';
|
|
63
|
-
export * from './components/OnChainImage';
|
|
64
|
-
export * from './components/OnChainTableSelection';
|
|
65
|
-
export * from './components/OnChainResourceTree';
|
|
66
|
-
export * from './components/OnChainAdvancedSearch';
|
|
67
|
-
export * from './components/OnChainPopupSelect';
|
|
68
|
-
export * from './components/OnChainQueryBuilder';
|
|
69
|
-
export * from './components/OnChainScrollBarAssembly';
|
|
70
|
-
export * from './components/OnChainSelectPopupForm';
|
|
71
|
-
export * from './components/OnChainPublicTree';
|
|
72
|
-
export * from './components/OnChainTable';
|
|
73
|
-
export * from './components/OnChainAI';
|
|
74
|
-
export * from './components/OnChainProgress';
|
|
75
|
-
export * from './components/OnChainTabs';
|
|
76
|
-
export * from 'antd';
|
|
77
|
-
export * from 'antd/es/typography/Paragraph';
|
|
78
|
-
export * from 'antd/es/transfer/ListBody';
|
|
79
|
-
export type { DefaultOptionType, TableRowSelection, CheckboxOptionType, TransferDirection, TransferItem, TransferListBodyProps };
|
|
80
|
-
export { OnChainAI, OnChainTable, OnChainProvider, OnChainSelect, OnChainIcon, OnChainBadge, OnChainHighLightWords, zhCN, en_US, OnChainInput, OnChainLoading, OnChainLoadingSkCube, OnChainGlobalLoading, OnChainMarkdown, OnChainModal, OnChainMosaic, OnChainScrollBar, OnChainViewerError, Paragraph, OnChainDropMenu, OnChainCompositeForm, OnChainExcelViewer, OnChainForm, OnChainFormItem, OnChainGenAntImage, OnChainImage, OnChainTableSelection, OnChainResourceTree, OnChainAdvancedSearch, OnChainPopupSelect, OnChainQueryBuilder, OnChainScrollBarAssembly, OnChainSelectPopupForm, OnChainPublicTree, OnChainProgress, OnChainTabs, CollapsePanel };
|
|
1
|
+
import { default as Ti5ButtonAuth } from './extend/Ti5ButtonAuth';
|
|
2
|
+
export { Ti5ButtonAuth as ti5ButtonAuth };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const template: (pathCode: string, extra?: {
|
|
1
|
+
export declare const template: (pathCode: string, extra: {
|
|
3
2
|
variate?: object;
|
|
4
|
-
placeholder
|
|
5
|
-
}
|
|
3
|
+
placeholder: string;
|
|
4
|
+
}) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ButtonProps {
|
|
2
|
+
/** Is this the principal call to action on the page? */
|
|
3
|
+
primary?: boolean;
|
|
4
|
+
/** What background color to use */
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
/** How large should the button be? */
|
|
7
|
+
size?: 'small' | 'medium' | 'large';
|
|
8
|
+
/** Button contents */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Optional click handler */
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
}
|
|
13
|
+
/** Primary UI component for user interaction */
|
|
14
|
+
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ primary, size, backgroundColor, label, ...props }: import('./Button').ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
backgroundColor: {
|
|
11
|
+
control: "color";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
args: {
|
|
15
|
+
onClick: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof meta>;
|
|
20
|
+
export declare const Primary: Story;
|
|
21
|
+
export declare const Secondary: Story;
|
|
22
|
+
export declare const Large: Story;
|
|
23
|
+
export declare const Small: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type User = {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
export interface HeaderProps {
|
|
5
|
+
user?: User;
|
|
6
|
+
onLogin?: () => void;
|
|
7
|
+
onLogout?: () => void;
|
|
8
|
+
onCreateAccount?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ user, onLogin, onLogout, onCreateAccount }: import('./Header').HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {
|
|
10
|
+
onLogin: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
|
11
|
+
onLogout: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
|
12
|
+
onCreateAccount: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const LoggedIn: Story;
|
|
18
|
+
export declare const LoggedOut: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ContextData } from '../app/main/model/context';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Antd Provider
|
|
5
|
+
*/
|
|
6
|
+
export interface OnChainProviderProps {
|
|
7
|
+
/** context共享对象 */
|
|
8
|
+
contextData?: ContextData;
|
|
9
|
+
/** 设置统一样式前缀 */
|
|
10
|
+
prefixCls?: string;
|
|
11
|
+
/** 内容 */
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare const OnChainProvider: ({ prefixCls, ...props }: OnChainProviderProps, ref: any) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default OnChainProvider;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<{}>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const LoggedOut: Story;
|
|
12
|
+
export declare const LoggedIn: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import('../components/PlmMosaic').PlmMosaicProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const InLineTrue: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<Omit<import('.').PlmSelectProps, "ref"> & import('react').RefAttributes<unknown>>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {
|
|
11
|
+
/** 列表值 */
|
|
12
|
+
options: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof meta>;
|
|
20
|
+
export declare const Large: Story;
|
|
21
|
+
export declare const Small: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseComponentProps } from '../../typings';
|
|
2
|
+
import { SelectProps } from 'antd';
|
|
3
|
+
export interface PlmSelectProps extends BaseComponentProps, SelectProps<any> {
|
|
4
|
+
pane?: {
|
|
5
|
+
cols?: number;
|
|
6
|
+
item?: BaseComponentProps;
|
|
7
|
+
};
|
|
8
|
+
/** 分页信息 */
|
|
9
|
+
pagination: {
|
|
10
|
+
/**网络请求URL */
|
|
11
|
+
url: string;
|
|
12
|
+
page: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
total: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface PlmSelectForwardRefProps {
|
|
18
|
+
}
|
|
19
|
+
declare const PlmSelect: import('react').ForwardRefExoticComponent<Omit<PlmSelectProps, "ref"> & import('react').RefAttributes<unknown>>;
|
|
20
|
+
export default PlmSelect;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ButtonType } from 'antd/lib/button';
|
|
2
|
+
export interface XsButtonProps {
|
|
3
|
+
/** 按钮文本 */
|
|
4
|
+
label: string;
|
|
5
|
+
/** 按钮类型 */
|
|
6
|
+
btnType?: ButtonType;
|
|
7
|
+
/** 按钮类型2 */
|
|
8
|
+
btnType2?: 'default' | 'primary' | 'ghost' | 'dashed' | 'link' | 'text';
|
|
9
|
+
/** Optional click handler */
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
/** 自定义对象 */
|
|
12
|
+
custObj?: custObjTemp;
|
|
13
|
+
}
|
|
14
|
+
/** 对象 */
|
|
15
|
+
type custObjTemp = {
|
|
16
|
+
/** 年龄 */
|
|
17
|
+
name?: string;
|
|
18
|
+
/** 姓名 */
|
|
19
|
+
age?: number;
|
|
20
|
+
};
|
|
21
|
+
declare const XsButton: (props: XsButtonProps, ref: any) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default XsButton;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import('./XsButton').XsButtonProps, ref: any) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|