@soppiya/elementus 1.1.6 → 1.1.7

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.
@@ -1,6 +1,6 @@
1
1
  interface CreateNewViewProps {
2
2
  disabled?: boolean;
3
- onCreate?: (name: string) => void;
3
+ onCreate?: (value: string) => Promise<boolean> | void;
4
4
  }
5
5
  declare const CreateNewView: ({ disabled, onCreate }: CreateNewViewProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export default CreateNewView;
@@ -1,8 +1,7 @@
1
1
  interface DeleteViewProps {
2
2
  name?: string;
3
- index: number;
4
3
  onAction?: () => void;
5
- onDelete?: (index: number) => void;
4
+ onDelete?: () => Promise<boolean> | void;
6
5
  }
7
- declare const DeleteView: ({ name, index, onAction, onDelete }: DeleteViewProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const DeleteView: ({ name, onAction, onDelete }: DeleteViewProps) => import("react/jsx-runtime").JSX.Element;
8
7
  export default DeleteView;
@@ -1,7 +1,8 @@
1
1
  interface CreateNewViewProps {
2
2
  duplicateName?: string;
3
3
  onAction?: () => void;
4
- onDuplicate?: (name: string) => void;
4
+ index: string;
5
+ onPrimaryAction?: (value: string, id: string) => Promise<boolean> | void;
5
6
  }
6
- declare const DuplicateView: ({ duplicateName, onAction, onDuplicate }: CreateNewViewProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const DuplicateView: ({ duplicateName, index, onAction, onPrimaryAction }: CreateNewViewProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export default DuplicateView;
@@ -1,8 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  import { FilterProps } from '../filters/filter.schema';
3
3
  import { IndexSortingProps } from '../index-sorting/indexSorting.schema';
4
+ import { TabProps } from './indexFilter.schema';
4
5
  interface IndexFilterProps extends IndexSortingProps, FilterProps {
5
- tabs: string[];
6
+ tabs: TabProps[];
6
7
  sortFilter?: React.ReactNode;
7
8
  searchFilterBtn?: React.ReactNode;
8
9
  selected: number;
@@ -1,5 +1,6 @@
1
+ import { TabProps } from './indexFilter.schema';
1
2
  interface IndexTabProps {
2
- tabs: string[];
3
+ tabs: TabProps[];
3
4
  selected: number;
4
5
  disabled?: boolean;
5
6
  canCreateNewView?: boolean;
@@ -1,8 +1,9 @@
1
1
  interface CreateNewViewProps {
2
2
  rename?: string;
3
3
  disabled?: boolean;
4
+ index: string;
4
5
  onAction?: () => void;
5
- onRename?: (name: string) => void;
6
+ onPrimaryAction?: (value: string, id: string) => Promise<boolean> | void;
6
7
  }
7
- declare const RenameView: ({ rename, disabled, onAction, onRename }: CreateNewViewProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const RenameView: ({ rename, index, disabled, onAction, onPrimaryAction }: CreateNewViewProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export default RenameView;
@@ -2,7 +2,7 @@ export type TabAction = 'rename' | 'duplicate' | 'delete';
2
2
  export interface TabActionDescriptor {
3
3
  type: TabAction;
4
4
  onAction?: (name: string) => void;
5
- onPrimaryAction?: (name: string) => Promise<boolean> | void;
5
+ onPrimaryAction?: (name: string, id: string) => Promise<boolean> | void;
6
6
  }
7
7
  export interface TabProps {
8
8
  onAction?: () => void;