@cloudtower/eagle 0.26.1 → 0.26.3-vpc-0.0.1

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.
@@ -4,13 +4,13 @@ declare const Button: React.ForwardRefExoticComponent<{
4
4
  hoverPrefixIcon?: JSX.Element | undefined;
5
5
  suffixIcon?: JSX.Element | undefined;
6
6
  hoverSuffixIcon?: JSX.Element | undefined;
7
- type?: "link" | "text" | "default" | "dashed" | "primary" | "ghost" | "secondary" | "tertiary" | "ordinary" | "ordinary-onTint" | "quiet" | undefined;
7
+ type?: "link" | "text" | "dashed" | "default" | "primary" | "ghost" | "secondary" | "tertiary" | "ordinary" | "ordinary-onTint" | "quiet" | undefined;
8
8
  } & Omit<Partial<{
9
9
  href: string;
10
10
  target?: string | undefined;
11
11
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
12
- } & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
12
+ } & import("antd/lib/button/button").BaseButtonProps & import("antd/lib/_util/type").Omit<React.AnchorHTMLAttributes<any>, "onClick" | "type"> & {
13
13
  htmlType?: "button" | "reset" | "submit" | undefined;
14
14
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
15
- } & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">>, "type"> & React.RefAttributes<HTMLButtonElement>>;
15
+ } & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">>, "type"> & React.RefAttributes<HTMLButtonElement>>;
16
16
  export default Button;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const CardBody: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
3
+ as?: import("react").ElementType<any> | undefined;
4
+ }>;
5
+ export default CardBody;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const CardTitle: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
3
+ as?: import("react").ElementType<any> | undefined;
4
+ }>;
5
+ export default CardTitle;
@@ -0,0 +1,10 @@
1
+ import React, { CSSProperties } from "react";
2
+ interface IProps {
3
+ shadow?: boolean;
4
+ className?: string;
5
+ style?: CSSProperties;
6
+ }
7
+ declare const CardWrapper: import("@linaria/react").StyledMeta & React.ForwardRefExoticComponent<IProps & {
8
+ children?: React.ReactNode;
9
+ } & React.RefAttributes<HTMLDivElement>>;
10
+ export default CardWrapper;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ export interface ICardProps {
3
+ collapsible?: boolean;
4
+ defaultOpen?: boolean;
5
+ title?: React.ReactNode | string;
6
+ subInfo?: React.ReactNode;
7
+ className?: string;
8
+ shadow?: boolean;
9
+ }
10
+ declare const Card: React.ForwardRefExoticComponent<ICardProps & {
11
+ children?: React.ReactNode;
12
+ } & React.RefAttributes<HTMLDivElement>>;
13
+ export default Card;
@@ -19,15 +19,15 @@ export declare const ColumnHeaderImpls: {
19
19
  };
20
20
  export declare const ColumnBodyImpls: {
21
21
  text: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "column" | "index">>;
22
- input: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "disabled" | "visible" | "column" | "latestData" | "index"> & {
22
+ input: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "visible" | "column" | "disabled" | "latestData" | "index"> & {
23
23
  onChange: (value: any) => void;
24
24
  onBlur: () => void;
25
25
  }>;
26
- password: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "disabled" | "visible" | "column" | "latestData" | "index"> & {
26
+ password: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "visible" | "column" | "disabled" | "latestData" | "index"> & {
27
27
  onChange: (value: any) => void;
28
28
  onBlur: () => void;
29
29
  }>;
30
- affix: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "disabled" | "visible" | "column" | "latestData" | "index"> & {
30
+ affix: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "visible" | "column" | "disabled" | "latestData" | "index"> & {
31
31
  onChange: (value: any) => void;
32
32
  onBlur: () => void;
33
33
  }>;
@@ -90,12 +90,14 @@ export type RowAddConfigurations = {
90
90
  className?: string;
91
91
  CustomizedButton?: (props: AddRowButtonProps) => React.ReactElement;
92
92
  };
93
- export interface TableFormRowsProps extends Pick<TableFormProps, "columns" | "disabled" | "deleteConfig" | "draggable" | "disableBatchFilling" | "rowSplitType" | "validateTriggerType" | "renderRowDescription" | "rowValidator" | "onBodyBlur"> {
93
+ export interface TableFormRowsProps extends Pick<TableFormProps, "columns" | "disabled" | "deleteConfig" | "disableBatchFilling" | "validateTriggerType" | "renderRowDescription" | "rowValidator" | "onBodyBlur" | "row"> {
94
94
  data: DataType[];
95
95
  latestData: DataType[];
96
96
  updateData: (data: DataType[]) => void;
97
97
  passwordVisible: boolean;
98
98
  validateAll: boolean;
99
+ draggable?: boolean;
100
+ rowSplitType?: TableFormRowSplitType;
99
101
  }
100
102
  export type RenderRowDescriptionProps = {
101
103
  rowIndex: number;
@@ -106,20 +108,50 @@ export type DeletableConfigurations = {
106
108
  deletable: boolean;
107
109
  specifyRowDeleteDisabled?: (rowIndex: number, allData: DataType[]) => boolean;
108
110
  };
111
+ export type TableFormRowActions = "delete";
112
+ export type TableFormRowSplitType = "border" | "zebraMarking";
113
+ export type TableFormRowConfiguration = {
114
+ splitType?: TableFormRowSplitType;
115
+ draggable?: boolean;
116
+ deletable?: boolean | ((rowIndex: number, allData: DataType[]) => boolean);
117
+ descriptions?: string | React.ReactNode[];
118
+ disableActions?: TableFormRowActions[] | ((rowIndex: number, allData: DataType[]) => TableFormRowActions[] | undefined);
119
+ validator?: (rowIndex: number, rowData: DataType) => string | undefined;
120
+ customizedDescription?: (props: RenderRowDescriptionProps) => React.ReactNode | string;
121
+ };
122
+ export type TableFormErrorsType = (string | {
123
+ [columnKey: string]: string;
124
+ })[];
109
125
  export type TableFormProps = {
110
126
  defaultData?: DataType[];
111
127
  columns: TableFormColumn[];
112
128
  disabled?: boolean;
113
129
  rowAddConfig?: RowAddConfigurations;
130
+ /**
131
+ * @deprecated use "row" configuration instead
132
+ */
114
133
  deleteConfig?: DeletableConfigurations;
115
134
  size?: "default" | "large" | "small";
135
+ /**
136
+ * @deprecated use "row" configuration instead
137
+ */
116
138
  draggable?: boolean;
117
139
  disableBatchFilling?: boolean;
118
140
  className?: string;
119
- rowSplitType?: "border" | "zebraMarking";
141
+ /**
142
+ * @deprecated use "row" configuration instead
143
+ */
144
+ rowSplitType?: TableFormRowSplitType;
120
145
  validateTriggerType?: ValidateTriggerType;
121
146
  maxHeight?: number | string;
147
+ row?: TableFormRowConfiguration;
148
+ /**
149
+ * @deprecated use "row" configuration instead
150
+ */
122
151
  renderRowDescription?: (props: RenderRowDescriptionProps) => React.ReactNode;
152
+ /**
153
+ * @deprecated use "row" configuration instead
154
+ */
123
155
  rowValidator?: (rowIndex: number, rowData: DataType) => string | undefined;
124
156
  onHeaderChange?: (data: any[], columnKey: string) => void;
125
157
  onHeaderBlur?: (data: any[]) => void;