@devtron-labs/devtron-fe-common-lib 0.0.68-beta-1 → 0.0.68

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.68-beta-1",
3
+ "version": "0.0.68",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,7 +0,0 @@
1
- import { UserRoleGroupsTableProps } from './types';
2
- import { UserRoleGroup } from '../../../types';
3
- declare const UserRoleGroupTableRow: ({ id, name, description, status, timeToLive, modifierClassName, disableStatusComponent, handleStatusUpdate, handleDelete, statusComponent: StatusComponent, showStatus, showDelete, }: UserRoleGroup & Pick<UserRoleGroupsTableProps, "disableStatusComponent" | "handleStatusUpdate" | "handleDelete" | "statusComponent" | "showStatus"> & {
4
- modifierClassName: string;
5
- showDelete: boolean;
6
- }) => JSX.Element;
7
- export default UserRoleGroupTableRow;
@@ -1,3 +0,0 @@
1
- import { UserRoleGroupsTableProps } from './types';
2
- declare const UserRoleGroupsTable: ({ roleGroups, showStatus, handleDelete, statusComponent, statusHeaderComponent: StatusHeaderComponent, handleStatusUpdate, disableStatusComponent, }: UserRoleGroupsTableProps) => JSX.Element;
3
- export default UserRoleGroupsTable;
@@ -1 +0,0 @@
1
- export { default as UserRoleGroupsTable } from './UserRoleGroupsTable.component';
@@ -1,31 +0,0 @@
1
- import { FC } from 'react';
2
- import { UserRoleGroup } from '../../../types';
3
- export type UserRoleGroupsTableProps = {
4
- roleGroups: UserRoleGroup[];
5
- showStatus?: boolean;
6
- /**
7
- * Delete button is shown only if handleDelete is passed
8
- */
9
- handleDelete?: (id: number) => void;
10
- } & ({
11
- showStatus?: false;
12
- statusComponent?: never;
13
- statusHeaderComponent?: never;
14
- handleStatusUpdate?: never;
15
- disableStatusComponent?: never;
16
- } | {
17
- /**
18
- * Component for rendering the status
19
- */
20
- statusComponent: FC<Record<string, any>>;
21
- /**
22
- * Component for rendering the status header
23
- */
24
- statusHeaderComponent: FC;
25
- handleStatusUpdate: (id: UserRoleGroup['id'], updatedStatus: UserRoleGroup['status'], updatedTimeToLive: UserRoleGroup['timeToLive']) => void;
26
- disableStatusComponent?: boolean;
27
- });
28
- export type UserRoleGroupTableRow = UserRoleGroup & Pick<UserRoleGroupsTableProps, 'disableStatusComponent' | 'handleStatusUpdate' | 'handleDelete' | 'statusComponent' | 'showStatus'> & {
29
- modifierClassName: string;
30
- showDelete: boolean;
31
- };
@@ -1 +0,0 @@
1
- export * from './UserRoleGroupsTable';
@@ -1 +0,0 @@
1
- export * from './components';
@@ -1,3 +0,0 @@
1
- import { GenericSectionErrorStateProps } from './types';
2
- declare const GenericSectionErrorState: ({ reload, withBorder }: GenericSectionErrorStateProps) => JSX.Element;
3
- export default GenericSectionErrorState;
@@ -1 +0,0 @@
1
- export { default as GenericSectionErrorState } from './GenericSectionErrorState.component';
@@ -1,12 +0,0 @@
1
- export interface GenericSectionErrorStateProps {
2
- /**
3
- * Handler for reloading the section
4
- */
5
- reload: () => void;
6
- /**
7
- * If true, border is added to the section
8
- *
9
- * @default false
10
- */
11
- withBorder?: boolean;
12
- }