@cloudtower/eagle 0.26.32 → 0.27.0

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.
@@ -55,9 +55,10 @@ import { IEmptyProps } from "../components/Empty";
55
55
  import { MessageApi } from "../components/message";
56
56
  import { TableFormHandle, TableFormProps } from "../components/TableForm/types";
57
57
  import { TruncatePropTypes } from "../components/Truncate";
58
+ import type { CloseButtonProps } from "../core/AccordionCard";
58
59
  import { SerializableObject } from "../utils/tower";
59
60
  import { FieldRenderProps } from "./react-final-form";
60
- import { Architecture, ISpaceProps, ITimeProps, ITimeZoneSelectProps } from "./type";
61
+ import { Architecture, DropdownTransitionProps, IAccordionCardProps, IDetailCardProps, ISpaceProps, ITimeProps, ITimeZoneSelectProps } from "./type";
61
62
  export type AntdTableComponentType = <RecordType extends object = any>(props: AntdTableProps<RecordType>) => JSX.Element;
62
63
  export type AntdTreeSelectComponentType<T> = TreeSelect<T>;
63
64
  interface EmptyType extends React.FC<EmptyProps> {
@@ -516,6 +517,11 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
516
517
  ExpandableItem: React.FC<PropsWithChildren<IExpandableItemProps>>;
517
518
  };
518
519
  time: React.FC<ITimeProps>;
520
+ DropdownTransition: React.FC<DropdownTransitionProps>;
521
+ AccordionCard: React.FC<IAccordionCardProps> & {
522
+ CloseButton: React.FC<CloseButtonProps>;
523
+ };
524
+ DetailCard: React.FC<IDetailCardProps>;
519
525
  }
520
526
  export type ArchComponentType = React.FC<{
521
527
  architecture?: Architecture;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { CSSTransitionProps } from "react-transition-group/CSSTransition";
2
3
  export declare enum Architecture {
3
4
  Aarch64 = "AARCH64",
4
5
  X86_64 = "X86_64"
@@ -33,3 +34,17 @@ export interface ITimeProps {
33
34
  timeTemplate?: string | null;
34
35
  plainText?: boolean;
35
36
  }
37
+ export type DropdownTransitionProps = {
38
+ visible: boolean;
39
+ } & CSSTransitionProps;
40
+ export interface IAccordionCardProps {
41
+ header: React.ReactNode | ((active: boolean) => React.ReactNode);
42
+ expand: React.ReactNode;
43
+ className?: string;
44
+ defaultExpand?: boolean;
45
+ mountOnEnter?: boolean;
46
+ unmountOnExit?: boolean;
47
+ }
48
+ export interface IDetailCardProps {
49
+ title?: React.ReactNode;
50
+ }