@kanaries/graphic-walker 0.2.12 → 0.2.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.
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { IMutField, IRow } from "../../interfaces";
3
+ interface DataTableProps {
4
+ size?: number;
5
+ metas: IMutField[];
6
+ data: IRow[];
7
+ onMetaChange: (fid: string, fIndex: number, meta: Partial<IMutField>) => void;
8
+ }
9
+ declare const DataTable: React.FC<DataTableProps>;
10
+ export default DataTable;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface PaginationProps {
3
+ from: number;
4
+ to: number;
5
+ total: number;
6
+ onPrev: () => void;
7
+ onNext: () => void;
8
+ }
9
+ export default function Pagination(props: PaginationProps): JSX.Element;
10
+ export {};
@@ -0,0 +1,14 @@
1
+ import { ReactElement } from "react";
2
+ export interface ITabOption {
3
+ label: string | ReactElement;
4
+ key: string;
5
+ }
6
+ interface DefaultProps {
7
+ tabs: ITabOption[];
8
+ selectedKey: string;
9
+ onSelected: (selectedKey: string, index: number) => void;
10
+ allowEdit?: boolean;
11
+ onEditLabel?: (label: string, index: number) => void;
12
+ }
13
+ export default function Default(props: DefaultProps): JSX.Element;
14
+ export {};
@@ -4,12 +4,12 @@ export interface ITabOption {
4
4
  key: string;
5
5
  options?: Record<string, any>;
6
6
  }
7
- interface PureTabsProps {
7
+ interface EditableTabsProps {
8
8
  tabs: ITabOption[];
9
9
  selectedKey: string;
10
10
  onSelected: (selectedKey: string, index: number) => void;
11
11
  allowEdit?: boolean;
12
12
  onEditLabel?: (label: string, index: number) => void;
13
13
  }
14
- export default function PureTabs(props: PureTabsProps): JSX.Element;
14
+ export default function EditableTabs(props: EditableTabsProps): JSX.Element;
15
15
  export {};
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.FunctionComponent<{}>;
3
+ export default _default;