@cloudtower/eagle 0.26.7 → 0.26.9

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;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ type StackProps = {
3
+ align?: "flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "auto";
4
+ direction?: "vertical" | "horizontal";
5
+ justify?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around";
6
+ spacing?: number;
7
+ wrap?: boolean;
8
+ children?: React.ReactNode;
9
+ className?: string;
10
+ };
11
+ declare const Stack: React.FC<StackProps>;
12
+ export default Stack;
@@ -7,4 +7,5 @@ export declare const InputColumnHeaderCell: React.FC<Omit<ColumnHeaderCellProps,
7
7
  export declare const InputColumnBodyCell: React.FC<Pick<ColumnBodyCellProps, "data" | "latestData" | "column" | "index" | "disabled" | "visible"> & {
8
8
  onChange: (value: any) => void;
9
9
  onBlur: () => void;
10
+ error: boolean;
10
11
  }>;
@@ -19,17 +19,20 @@ 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
+ error: boolean;
25
26
  }>;
26
- password: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "disabled" | "visible" | "column" | "latestData" | "index"> & {
27
+ password: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "visible" | "column" | "disabled" | "latestData" | "index"> & {
27
28
  onChange: (value: any) => void;
28
29
  onBlur: () => void;
30
+ error: boolean;
29
31
  }>;
30
- affix: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "disabled" | "visible" | "column" | "latestData" | "index"> & {
32
+ affix: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "visible" | "column" | "disabled" | "latestData" | "index"> & {
31
33
  onChange: (value: any) => void;
32
34
  onBlur: () => void;
35
+ error: boolean;
33
36
  }>;
34
37
  checkbox: import("react").FC<Pick<import("../types").ColumnBodyCellProps, "data" | "column" | "index"> & {
35
38
  onChange: (value: any) => void;
@@ -75,6 +75,7 @@ export interface ColumnBodyCellProps {
75
75
  isRowError: boolean;
76
76
  getRowValidateResult: (rowData: DataType) => string | undefined;
77
77
  validateAll: boolean;
78
+ error?: string | null;
78
79
  }
79
80
  export type AddRowButtonProps = {
80
81
  config: RowAddConfigurations;
@@ -90,12 +91,14 @@ export type RowAddConfigurations = {
90
91
  className?: string;
91
92
  CustomizedButton?: (props: AddRowButtonProps) => React.ReactElement;
92
93
  };
93
- export interface TableFormRowsProps extends Pick<TableFormProps, "columns" | "disabled" | "deleteConfig" | "draggable" | "disableBatchFilling" | "rowSplitType" | "validateTriggerType" | "renderRowDescription" | "rowValidator" | "onBodyBlur"> {
94
+ export interface TableFormRowsProps extends Pick<TableFormProps, "columns" | "disabled" | "deleteConfig" | "disableBatchFilling" | "validateTriggerType" | "renderRowDescription" | "rowValidator" | "onBodyBlur" | "row" | "errors"> {
94
95
  data: DataType[];
95
96
  latestData: DataType[];
96
97
  updateData: (data: DataType[]) => void;
97
98
  passwordVisible: boolean;
98
99
  validateAll: boolean;
100
+ draggable?: boolean;
101
+ rowSplitType?: TableFormRowSplitType;
99
102
  }
100
103
  export type RenderRowDescriptionProps = {
101
104
  rowIndex: number;
@@ -106,20 +109,51 @@ export type DeletableConfigurations = {
106
109
  deletable: boolean;
107
110
  specifyRowDeleteDisabled?: (rowIndex: number, allData: DataType[]) => boolean;
108
111
  };
112
+ export type TableFormRowActions = "delete";
113
+ export type TableFormRowSplitType = "border" | "zebraMarking";
114
+ export type TableFormRowConfiguration = {
115
+ splitType?: TableFormRowSplitType;
116
+ draggable?: boolean;
117
+ deletable?: boolean | ((rowIndex: number, allData: DataType[]) => boolean);
118
+ descriptions?: (string | React.ReactNode)[];
119
+ disableActions?: TableFormRowActions[] | ((rowIndex: number, allData: DataType[]) => TableFormRowActions[] | undefined);
120
+ validator?: (rowIndex: number, rowData: DataType) => string | undefined;
121
+ customizedDescription?: (props: RenderRowDescriptionProps) => React.ReactNode | string;
122
+ };
123
+ export type TableFormErrorsType = (string | {
124
+ [columnKey: string]: string | null;
125
+ } | null)[];
109
126
  export type TableFormProps = {
110
127
  defaultData?: DataType[];
111
128
  columns: TableFormColumn[];
112
129
  disabled?: boolean;
113
130
  rowAddConfig?: RowAddConfigurations;
131
+ /**
132
+ * @deprecated use "row" configuration instead
133
+ */
114
134
  deleteConfig?: DeletableConfigurations;
115
135
  size?: "default" | "large" | "small";
136
+ /**
137
+ * @deprecated use "row" configuration instead
138
+ */
116
139
  draggable?: boolean;
117
140
  disableBatchFilling?: boolean;
118
141
  className?: string;
119
- rowSplitType?: "border" | "zebraMarking";
142
+ /**
143
+ * @deprecated use "row" configuration instead
144
+ */
145
+ rowSplitType?: TableFormRowSplitType;
120
146
  validateTriggerType?: ValidateTriggerType;
121
147
  maxHeight?: number | string;
148
+ row?: TableFormRowConfiguration;
149
+ errors?: TableFormErrorsType;
150
+ /**
151
+ * @deprecated use "row" configuration instead
152
+ */
122
153
  renderRowDescription?: (props: RenderRowDescriptionProps) => React.ReactNode;
154
+ /**
155
+ * @deprecated use "row" configuration instead
156
+ */
123
157
  rowValidator?: (rowIndex: number, rowData: DataType) => string | undefined;
124
158
  onHeaderChange?: (data: any[], columnKey: string) => void;
125
159
  onHeaderBlur?: (data: any[]) => void;
@@ -0,0 +1,3 @@
1
+ import { SplitTagComponentType } from "../../spec";
2
+ declare const SplitTag: SplitTagComponentType;
3
+ export default SplitTag;
@@ -0,0 +1 @@
1
+ export declare const PresetColors: readonly ["blue", "red", "yellow", "green", "gray", "purple"];
@@ -0,0 +1,6 @@
1
+ import { SplitTagComponentType, TagComponentType } from "../../spec";
2
+ export declare const PresetColors: string[];
3
+ declare const Tag: TagComponentType & {
4
+ SplitTag: SplitTagComponentType;
5
+ };
6
+ export default Tag;
@@ -0,0 +1,4 @@
1
+ import { LinariaClassName } from "@linaria/core";
2
+ export declare const Size: Record<"small" | "medium", LinariaClassName>;
3
+ export declare const TagStyle: LinariaClassName;
4
+ export declare const IconStyle: LinariaClassName;