@cloudtower/eagle 0.20.0 → 0.21.2

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.
@@ -29,7 +29,7 @@ import { TooltipProps as AntdTooltipProps } from "antd/lib/tooltip";
29
29
  import React, { ReactNode } from "react";
30
30
  import { SerializableObject } from "../utils/tower";
31
31
  import { FieldRenderProps } from "./react-final-form";
32
- import { Architecture } from "./type";
32
+ import { Architecture, ISpaceProps } from "./type";
33
33
  declare type BadgeTypeProps = "warning" | "error" | "info";
34
34
  declare type Primitive = "Int" | "Float" | "DateTime" | "Enum" | "String" | "Boolean";
35
35
  export declare type Child = {
@@ -304,6 +304,13 @@ export declare type IStepsProps = StepsProps & {
304
304
  containerClassname?: string;
305
305
  showStepCount?: boolean;
306
306
  };
307
+ export interface ISimplePaginationProps {
308
+ className?: string;
309
+ current: number;
310
+ count: number;
311
+ size: number;
312
+ onPageChange?: (page: number) => void;
313
+ }
307
314
  export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
308
315
  PAGINATION_SELECTOR: string;
309
316
  TABLE_WRAPPER_SELECTOR: string;
@@ -354,6 +361,8 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
354
361
  list: <T>(props: ListProps<T>) => JSX.Element;
355
362
  listItem: React.FC<ListItemProps>;
356
363
  autoComplete: React.ForwardRefExoticComponent<AutoCompleteProps>;
364
+ simplePagination: React.FC<ISimplePaginationProps>;
365
+ space: React.FC<ISpaceProps>;
357
366
  }
358
367
  export declare const kitContext: React.Context<Kit<any, HTMLElement>>;
359
368
  export declare type ArchComponentType = React.FC<{
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare type Maybe<T> = T | null | undefined;
2
3
  export declare type Scalars = {
3
4
  ID: string;
@@ -33,3 +34,12 @@ export interface AdditionOptions {
33
34
  controls?: boolean;
34
35
  suffix?: string;
35
36
  }
37
+ export declare type SizeType = "small" | "middle" | "large";
38
+ export interface ISpaceProps {
39
+ prefixCls?: string;
40
+ className?: string;
41
+ style?: React.CSSProperties;
42
+ size?: SizeType | number;
43
+ direction?: "horizontal" | "vertical";
44
+ align?: "start" | "end" | "center" | "baseline";
45
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
3
+ declare const _default: ComponentMeta<(props: any) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Simple: ComponentStory<(props: any) => JSX.Element>;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, ComponentStory } from "@storybook/react";
3
+ declare const _default: ComponentMeta<(props: any) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Simple: ComponentStory<(props: any) => JSX.Element>;