onchain-uikit 3.9.4-alpha41 → 3.9.4-alpha43

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.
@@ -0,0 +1,18 @@
1
+ import { SelectProps } from 'antd';
2
+ import { FC } from 'react';
3
+ export interface PlmPopupSelectProps {
4
+ url: any;
5
+ onChange?: (url: string) => {};
6
+ value?: any;
7
+ fieldNames?: Object;
8
+ params?: Object;
9
+ ischeckbox?: boolean;
10
+ getPageList?: (...arg: any[]) => any;
11
+ }
12
+ export interface DebounceSelectProps<ValueType = any> extends Omit<SelectProps<ValueType>, 'options' | 'children'> {
13
+ fetchOptions: (search: string, props: any) => Promise<ValueType[]>;
14
+ debounceTimeout?: number;
15
+ options: ValueType[];
16
+ }
17
+ declare const PlmSearchSelect: FC<PlmPopupSelectProps>;
18
+ export default PlmSearchSelect;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onchain-uikit",
3
3
  "private": false,
4
- "version": "3.9.4-alpha41",
4
+ "version": "3.9.4-alpha43",
5
5
  "scripts": {
6
6
  "dev": "vite",
7
7
  "build": "vite build",
@@ -1,30 +0,0 @@
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;
@@ -1,15 +0,0 @@
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;
@@ -1,14 +0,0 @@
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;
@@ -1,7 +0,0 @@
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;
@@ -1,14 +0,0 @@
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;
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface PlmLoadingSkCubeProps {
3
- children?: React.ReactNode;
4
- }
5
- declare const PlmLoadingSkCube: (props: PlmLoadingSkCubeProps) => import("react/jsx-runtime").JSX.Element;
6
- export default PlmLoadingSkCube;
@@ -1,14 +0,0 @@
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;
@@ -1,15 +0,0 @@
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;
@@ -1,5 +0,0 @@
1
- export interface PlmMosaicProps {
2
- inLine?: Boolean;
3
- }
4
- declare const PlmMosaic: (props: PlmMosaicProps) => import("react/jsx-runtime").JSX.Element;
5
- export default PlmMosaic;
@@ -1,14 +0,0 @@
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;
@@ -1,20 +0,0 @@
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;
@@ -1,21 +0,0 @@
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;
@@ -1,14 +0,0 @@
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;
@@ -1,23 +0,0 @@
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;
@@ -1,11 +0,0 @@
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 {};
@@ -1,18 +0,0 @@
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;
@@ -1,15 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const Page: React.FC;
@@ -1,12 +0,0 @@
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;
@@ -1,14 +0,0 @@
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;
@@ -1,21 +0,0 @@
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;
@@ -1,20 +0,0 @@
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;
@@ -1,22 +0,0 @@
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;
@@ -1,14 +0,0 @@
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;