@cloudtower/eagle 0.27.12 → 0.27.13

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.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import "./styles/index.scss";
2
2
  export type { CardProps, DateRange, GraphType, IconProps, IDataPoint, } from "./components";
3
- export { antdKit, BaseIcon, Button, ButtonStyle, createBatchMessageMethods, FailedLoad, FullView, Icon, InputTagItem, KitStoreProvider, ModalStack, tableStyleCover, tickFormatter, Truncate, Typo, useKitDispatch, useKitSelector, WizardBody, radioStyle, CannotOperationInfo, ContentWrapper, Desc, LightDesc, RadioDesc, } from "./components";
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
5
  export * from "./coreX";
6
6
  export { useElementsSize } from "./hooks";
7
- export type { AntdInputComponentType, AntdTreeSelectComponentType, BaseEnumProps, ButtonProps, DateTimeRangeProps, EnumProps, FloatProps, InputSize, IntegerFieldProps, IntFieldProps, IntProps, Kit, KitSelectProps, ModalProps, RequiredColumnProps, SorterOrder, StringProps, TableProps, TagColor, TextAreaProps, TooltipProps, WizardSteps, } from "./spec";
7
+ 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";
8
8
  export * from "./spec/type";
9
9
  export type { CloseCb, GetModalProps, IModalProps, KitRootState, ModalType, } from "./store";
10
10
  export { closeModal, ModalActions, popModal, pushModal, UIKitStore, } from "./store";
@@ -540,6 +540,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
540
540
  UnitWithChart: React.FC<IUnitWithChartProps>;
541
541
  GoBackButton: React.FC<GoBackButtonType>;
542
542
  CronCalendar: React.FC<CronCalendarProps>;
543
+ SummaryTable: SummaryTableComponentType;
543
544
  }
544
545
  export type ArchComponentType = React.FC<{
545
546
  architecture?: Architecture;
@@ -661,4 +662,33 @@ export type GoBackButtonType = {
661
662
  index?: number;
662
663
  };
663
664
  export type CalendarComponentType = React.FC<CalendarProps<Moment>>;
665
+ type SummaryTableCommonProps = {
666
+ showHeader?: boolean;
667
+ border?: boolean;
668
+ className?: string;
669
+ title?: string;
670
+ rightAlign?: boolean;
671
+ showEdit?: boolean;
672
+ onEdit?: () => void;
673
+ layout?: "horizontal" | "inline";
674
+ };
675
+ export interface SummaryTableItem<T> {
676
+ key: string;
677
+ title: string | ReactNode;
678
+ dataIndex: string | string[];
679
+ render?: (cell: any, record: T) => React.ReactNode;
680
+ hiddenTitle?: boolean;
681
+ hiddenBorder?: boolean;
682
+ }
683
+ type SummaryTableCustomRenderProps = {
684
+ children: React.ReactChild;
685
+ } & SummaryTableCommonProps;
686
+ type SummaryTableContentProps<T> = {
687
+ items: SummaryTableItem<T>[];
688
+ labelWidth?: string;
689
+ dataSource: T;
690
+ };
691
+ type SummaryTableProps<T> = SummaryTableContentProps<T> & SummaryTableCommonProps;
692
+ export type SummaryTableContentComponentType = <T>(props: SummaryTableContentProps<T>) => JSX.Element;
693
+ export type SummaryTableComponentType = <T = unknown>(props: SummaryTableProps<T> | SummaryTableCustomRenderProps) => JSX.Element;
664
694
  export {};