@cloudtower/eagle 0.27.3-alpha.0 → 0.27.4

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
@@ -2,6 +2,7 @@ import "./styles/index.scss";
2
2
  export type { CardProps, DateRange, GraphType, IconProps, IDataPoint, } from "./components";
3
3
  export { antdKit, BaseIcon, Button, ButtonStyle, createBatchMessageMethods, FailedLoad, FullView, Icon, InputTagItem, KitStoreProvider, ModalStack, tableStyleCover, tickFormatter, Truncate, Typo, useKitDispatch, useKitSelector, WizardBody, } from "./components";
4
4
  export * from "./components/TableForm/types";
5
+ export * from "./coreX";
5
6
  export { useElementsSize } from "./hooks";
6
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
8
  export * from "./spec/type";
@@ -48,6 +48,7 @@ import { TreeProps as AntdTreeProps } from "antd/lib/tree";
48
48
  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
+ import type { Dayjs } from "dayjs";
51
52
  import type { Moment } from "moment";
52
53
  import React, { ForwardRefExoticComponent, PropsWithChildren, PropsWithoutRef, ReactNode, RefAttributes } from "react";
53
54
  import { CardProps } from "../components/Card";
@@ -530,6 +531,8 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
530
531
  Breadcrumb: React.FC<IBreadcrumbProps>;
531
532
  CircleProgress: React.FC<ICircleProgressProps>;
532
533
  SwitchWithText: React.FC<SwitchWithTextProps>;
534
+ CronPlan: React.FC<CronPlanProps>;
535
+ NamesTooltip: React.FC<NamesTooltipType>;
533
536
  ChartWithTooltip: React.FC<ICWTProps>;
534
537
  ChartWithUnit: React.FC<IChartWithUnitProps>;
535
538
  DonutChart: React.FC<IDonutChartProps>;
@@ -616,6 +619,24 @@ export type I18nNameTagType = {
616
619
  i18nKey: string;
617
620
  [key: string]: unknown;
618
621
  };
622
+ export type CronPlanState = {
623
+ expression: string;
624
+ retain: number;
625
+ startAt: Dayjs;
626
+ enabled: boolean;
627
+ empty: boolean;
628
+ };
629
+ export type CronPlanProps = {
630
+ value: CronPlanState;
631
+ onChange: (value: CronPlanState) => unknown;
632
+ onRemove?: () => void;
633
+ };
634
+ export type NamesTooltipType = {
635
+ names: {
636
+ id: string;
637
+ name?: string;
638
+ }[];
639
+ };
619
640
  export type SwitchWithTextProps = PropsFrom<Kit["switch"]> & {
620
641
  text?: {
621
642
  checked: React.ReactNode;