@cloudtower/eagle 0.27.4 → 0.27.6

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,6 +1,6 @@
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, } 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";
4
4
  export * from "./components/TableForm/types";
5
5
  export * from "./coreX";
6
6
  export { useElementsSize } from "./hooks";
@@ -49,6 +49,7 @@ import type TreeSelect from "antd/lib/tree-select";
49
49
  import { TextProps } from "antd/lib/typography/Text";
50
50
  import { DraggerProps, UploadProps } from "antd/lib/upload";
51
51
  import type { Dayjs } from "dayjs";
52
+ import type { History } from "history";
52
53
  import type { Moment } from "moment";
53
54
  import React, { ForwardRefExoticComponent, PropsWithChildren, PropsWithoutRef, ReactNode, RefAttributes } from "react";
54
55
  import { CardProps } from "../components/Card";
@@ -493,7 +494,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
493
494
  overflowTooltip: React.FC<OverflowTooltipProps>;
494
495
  I18nNameTag: React.FC<I18nNameTagType>;
495
496
  uploadDragger: React.ComponentType<DraggerProps>;
496
- calendar: React.FC<CalendarProps<Moment>>;
497
+ calendar: CalendarComponentType;
497
498
  timePicker: React.FC<TimePickerProps>;
498
499
  datePicker: React.ComponentType<DatePickerProps>;
499
500
  tabs: React.FC<TabsProps>;
@@ -537,6 +538,8 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
537
538
  ChartWithUnit: React.FC<IChartWithUnitProps>;
538
539
  DonutChart: React.FC<IDonutChartProps>;
539
540
  UnitWithChart: React.FC<IUnitWithChartProps>;
541
+ GoBackButton: React.FC<GoBackButtonType>;
542
+ CronCalendar: React.FC<CronCalendarProps>;
540
543
  }
541
544
  export type ArchComponentType = React.FC<{
542
545
  architecture?: Architecture;
@@ -637,10 +640,25 @@ export type NamesTooltipType = {
637
640
  name?: string;
638
641
  }[];
639
642
  };
643
+ export type CronCalendarProps = {
644
+ plans: {
645
+ expression: string;
646
+ startAt: Dayjs;
647
+ empty: boolean;
648
+ }[];
649
+ };
640
650
  export type SwitchWithTextProps = PropsFrom<Kit["switch"]> & {
641
651
  text?: {
642
652
  checked: React.ReactNode;
643
653
  unchecked: React.ReactNode;
644
654
  };
645
655
  };
656
+ export type GoBackButtonType = {
657
+ history: History;
658
+ title?: string;
659
+ onClick?: () => void;
660
+ path?: string;
661
+ index?: number;
662
+ };
663
+ export type CalendarComponentType = React.FC<CalendarProps<Moment>>;
646
664
  export {};