master-components-react-ts 2.9.9 → 2.10.0
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/components/Table/Table.d.ts +2 -2
- package/dist/components/Table/Table.types.d.ts +1 -0
- package/dist/components/Table/mockDevExpressApi.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Tabs/Tabs.types.d.ts +7 -11
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3084 -2999
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TableProps } from './Table.types';
|
|
2
2
|
declare const Table: {
|
|
3
|
-
({ uniqueKey, columns, data, onRowClick, onHeaderClick, withSortIcons, sort, selectedRows, onSelectionChange, withSelectAll, actionButtonText, actionButtonIcon, onActionButtonClick, actionButtons, withColumnConfiguration, headerSlot, onColumnOrderChange, onColumnVisibilityChange, withActions, currentPage, totalPages, onPageChange, showPagination, paginationType, maxVisiblePages, rowsPerPage, rowsPerPageOptions, onRowsPerPageChange, totalItems, startItem, endItem, onRowEdit, onRowDelete, rowActions, childrenKey, paginationFooterStyle, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
propKeys: readonly ["uniqueKey", "columns", "data", "onRowClick", "onHeaderClick", "sort", "selectedRows", "onSelectionChange", "withSelectAll", "actionButtonText", "actionButtonIcon", "onActionButtonClick", "actionButtons", "withColumnConfiguration", "headerSlot", "onColumnOrderChange", "onColumnVisibilityChange", "currentPage", "totalPages", "onPageChange", "showPagination", "rowsPerPage", "rowsPerPageOptions", "onRowsPerPageChange", "totalItems", "startItem", "endItem", "onRowEdit", "onRowDelete", "rowActions"];
|
|
3
|
+
({ uniqueKey, columns, data, onRowClick, onHeaderClick, withSortIcons, sort, selectedRows, onSelectionChange, withSelectAll, actionButtonText, actionButtonIcon, onActionButtonClick, actionButtons, withColumnConfiguration, headerSlot, onColumnOrderChange, onColumnVisibilityChange, withActions, currentPage, totalPages, onPageChange, showPagination, paginationType, maxVisiblePages, rowsPerPage, rowsPerPageOptions, onRowsPerPageChange, totalItems, startItem, endItem, onRowEdit, onRowDelete, rowActions, childrenKey, withChildrenSelection, paginationFooterStyle, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
propKeys: readonly ["uniqueKey", "columns", "data", "onRowClick", "onHeaderClick", "sort", "selectedRows", "onSelectionChange", "withSelectAll", "actionButtonText", "actionButtonIcon", "onActionButtonClick", "actionButtons", "withColumnConfiguration", "headerSlot", "onColumnOrderChange", "onColumnVisibilityChange", "currentPage", "totalPages", "onPageChange", "showPagination", "rowsPerPage", "rowsPerPageOptions", "onRowsPerPageChange", "totalItems", "startItem", "endItem", "onRowEdit", "onRowDelete", "rowActions", "childrenKey", "withChildrenSelection"];
|
|
5
5
|
displayName: string;
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ type Department = 'Engineering' | 'HR' | 'Marketing' | 'Sales';
|
|
|
2
2
|
type Status = 'active' | 'inactive' | 'pending';
|
|
3
3
|
type Role = 'Admin' | 'User' | 'Manager' | 'Guest';
|
|
4
4
|
export interface UserData {
|
|
5
|
-
id?: number;
|
|
5
|
+
id?: number | string;
|
|
6
6
|
name?: string;
|
|
7
7
|
email?: string;
|
|
8
8
|
title?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TabsProps } from './Tabs.types';
|
|
2
2
|
declare const Tabs: {
|
|
3
|
-
({ tabsData,
|
|
4
|
-
propKeys: readonly ["tabsData", "
|
|
3
|
+
({ tabsData, onItemClick, tabContainerStyle, singleTabStyle, }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
propKeys: readonly ["tabsData", "onItemClick", "tabContainerStyle", "singleTabStyle"];
|
|
5
5
|
displayName: string;
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
4
|
-
label: string | React.ReactNode;
|
|
1
|
+
export type TabType = {
|
|
2
|
+
label: string;
|
|
3
|
+
id: string | number;
|
|
5
4
|
active?: boolean;
|
|
6
5
|
};
|
|
7
|
-
/**Tabs Component Props */
|
|
8
6
|
export interface TabsProps {
|
|
9
|
-
tabsData:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
tabContainerStyle?: CSSProperties;
|
|
14
|
-
singleTabStyle?: CSSProperties;
|
|
7
|
+
tabsData: TabType[];
|
|
8
|
+
onItemClick: (tab: TabType) => void;
|
|
9
|
+
tabContainerStyle?: React.CSSProperties;
|
|
10
|
+
singleTabStyle?: React.CSSProperties;
|
|
15
11
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -30,3 +30,5 @@ export { default as FilesBlock } from './components/FileUploader/FilesBlock';
|
|
|
30
30
|
export type { FileType, FileUploaderProps } from './components/FileUploader/FileUploader.types';
|
|
31
31
|
export { default as DropdownPill } from './components/DropdownPill/DropdownPill';
|
|
32
32
|
export { default as ColourPicker } from './components/ColourPicker/ColourPicker';
|
|
33
|
+
export { default as Tabs } from './components/Tabs/Tabs';
|
|
34
|
+
export type { TabType } from './components/Tabs/Tabs.types';
|