@cloudtower/eagle 0.27.17 → 0.27.21
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/components/Cascader/cascader.stories.d.ts +6 -0
- package/dist/components/Cascader/index.d.ts +4 -0
- package/dist/components/Link/Link.stories.d.ts +14 -0
- package/dist/components/Link/index.d.ts +3 -0
- package/dist/components.css +1654 -1601
- package/dist/core/DropdownMenu/DropdownMenu.stories.d.ts +7 -0
- package/dist/core/DropdownMenu/index.d.ts +34 -0
- package/dist/esm/index.js +1030 -895
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/spec/base.d.ts +9 -2
- package/dist/spec/type.d.ts +27 -0
- package/dist/style.css +1525 -1472
- package/dist/umd/index.js +1033 -897
- package/dist/umd/stats1.html +1 -1
- package/dist/variables.scss +4 -1
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import "./styles/index.scss";
|
|
|
2
2
|
export type { CardProps, DateRange, GraphType, IconProps, IDataPoint, } from "./components";
|
|
3
3
|
export { antdKit, BaseIcon, Button, ButtonStyle, CannotOperationInfo, ContentWrapper, createBatchMessageMethods, Desc, FailedLoad, FullView, Icon, InputTagItem, KitStoreProvider, LightDesc, ModalStack, RadioDesc, radioStyle, tableStyleCover, tickFormatter, Truncate, Typo, useKitDispatch, useKitSelector, WizardBody, } from "./components";
|
|
4
4
|
export * from "./components/TableForm/types";
|
|
5
|
+
export { RenderMenuItem } from "./core/DropdownMenu";
|
|
6
|
+
export { default as DropdownMenu } from "./core/DropdownMenu";
|
|
5
7
|
export * from "./coreX";
|
|
6
8
|
export { useElementsSize } from "./hooks";
|
|
7
9
|
export type { AntdInputComponentType, AntdTreeSelectComponentType, BaseEnumProps, ButtonProps, DateTimeRangeProps, EnumProps, FloatProps, InputSize, IntegerFieldProps, IntFieldProps, IntProps, Kit, KitSelectProps, ModalProps, RequiredColumnProps, SorterOrder, StringProps, SummaryTableItem, TableProps, TagColor, TextAreaProps, TooltipProps, WizardSteps, } from "./spec";
|
package/dist/spec/base.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { AutoCompleteProps } from "antd/lib/auto-complete";
|
|
|
5
5
|
import { BadgeProps } from "antd/lib/badge";
|
|
6
6
|
import { ButtonProps as AntdButtonProps, ButtonType } from "antd/lib/button";
|
|
7
7
|
import { CalendarProps } from "antd/lib/calendar/generateCalendar";
|
|
8
|
-
import { CascaderProps } from "
|
|
8
|
+
import { CascaderProps } from "antd5/lib/cascader";
|
|
9
9
|
import { CheckboxGroupProps, CheckboxProps } from "antd/lib/checkbox";
|
|
10
10
|
import { ColProps } from "antd/lib/col";
|
|
11
11
|
import { CollapsePanelProps, CollapseProps } from "antd/lib/collapse";
|
|
@@ -64,7 +64,7 @@ import { IDonutChartProps } from "../coreX/DonutChart";
|
|
|
64
64
|
import { IUnitWithChartProps } from "../coreX/UnitWithChart";
|
|
65
65
|
import { SerializableObject } from "../utils/tower";
|
|
66
66
|
import { FieldRenderProps } from "./react-final-form";
|
|
67
|
-
import { Architecture, DropdownTransitionProps, HistoryType, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, ICountingProps, IDetailCardProps, ISpaceProps, ITimeProps, ITimeZoneSelectProps, PropsFrom } from "./type";
|
|
67
|
+
import { Architecture, DropdownTransitionProps, HistoryType, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, ICountingProps, IDetailCardProps, IDropdownMenuProps, ISpaceProps, ITimeProps, ITimeZoneSelectProps, PropsFrom } from "./type";
|
|
68
68
|
export type AntdTableComponentType = <RecordType extends object = any>(props: AntdTableProps<RecordType>) => JSX.Element;
|
|
69
69
|
export type AntdTreeSelectComponentType<T> = TreeSelect<T>;
|
|
70
70
|
interface EmptyType extends React.FC<EmptyProps> {
|
|
@@ -368,6 +368,7 @@ export type IStepsProps = {
|
|
|
368
368
|
stepsConfig: Array<StepProps>;
|
|
369
369
|
containerClassname?: string;
|
|
370
370
|
disabled?: boolean;
|
|
371
|
+
preview?: boolean;
|
|
371
372
|
};
|
|
372
373
|
export interface ISimplePaginationProps {
|
|
373
374
|
className?: string;
|
|
@@ -544,6 +545,8 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
|
|
|
544
545
|
SummaryTable: SummaryTableComponentType;
|
|
545
546
|
SortableList: SortableListComponentType;
|
|
546
547
|
SidebarSubtitle: SidebarSubtitleComponentType;
|
|
548
|
+
Link: LinkComponentType;
|
|
549
|
+
DropdownMenu: React.FC<IDropdownMenuProps>;
|
|
547
550
|
}
|
|
548
551
|
export type ArchComponentType = React.FC<{
|
|
549
552
|
architecture?: Architecture;
|
|
@@ -703,4 +706,8 @@ export type SidebarSubtitleComponentType = React.FC<{
|
|
|
703
706
|
title: string;
|
|
704
707
|
className?: string;
|
|
705
708
|
}>;
|
|
709
|
+
type LinkProps = Omit<ButtonProps, "type"> & {
|
|
710
|
+
type?: "default" | "subtle";
|
|
711
|
+
};
|
|
712
|
+
export type LinkComponentType = React.ForwardRefExoticComponent<PropsWithChildren<LinkProps> & React.RefAttributes<HTMLButtonElement>>;
|
|
706
713
|
export {};
|
package/dist/spec/type.d.ts
CHANGED
|
@@ -80,3 +80,30 @@ export type HistoryType = Omit<History, "push" | "replace" | "location" | "lengt
|
|
|
80
80
|
(location: any): void;
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
|
+
export interface IDropDownMenuItem {
|
|
84
|
+
type?: "single" | "group" | "divider";
|
|
85
|
+
key: string;
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
text?: string;
|
|
88
|
+
icon?: React.ReactElement;
|
|
89
|
+
hidden?: boolean;
|
|
90
|
+
onClick?: () => void;
|
|
91
|
+
danger?: boolean;
|
|
92
|
+
tooltip?: string;
|
|
93
|
+
}
|
|
94
|
+
export type Placement = "topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight";
|
|
95
|
+
export interface IDropdownMenuProps {
|
|
96
|
+
items: Array<IDropDownMenuItem & {
|
|
97
|
+
title?: string;
|
|
98
|
+
children?: Array<IDropDownMenuItem>;
|
|
99
|
+
}>;
|
|
100
|
+
disabled?: boolean;
|
|
101
|
+
placement?: Placement;
|
|
102
|
+
trigger?: ("click" | "hover" | "contextMenu")[];
|
|
103
|
+
customStyle?: {
|
|
104
|
+
content: string;
|
|
105
|
+
};
|
|
106
|
+
slotsElements: {
|
|
107
|
+
trigger?: (args: object) => string | React.ReactNode;
|
|
108
|
+
};
|
|
109
|
+
}
|