master-components-react-ts 2.4.7 → 2.4.9

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
  import { ActionDropdownProps } from './ActionDropdown.types';
2
2
  declare const ActionDropdown: {
3
- ({ title, data, onSelect }: ActionDropdownProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ title, data, closeOnScroll, onSelect }: ActionDropdownProps): import("react/jsx-runtime").JSX.Element;
4
4
  propKeys: readonly ["title", "data", "onSelect"];
5
5
  displayName: string;
6
6
  description: string;
@@ -1,11 +1,11 @@
1
1
  export type ActionDataType = {
2
- id: string;
3
- label: string;
4
- icon: React.ReactNode;
5
- onClick: () => void;
2
+ id?: string;
3
+ label?: string;
4
+ icon?: React.ReactNode;
6
5
  };
7
6
  export interface ActionDropdownProps {
8
7
  title?: string;
9
8
  data: ActionDataType[];
9
+ closeOnScroll?: boolean;
10
10
  onSelect?: (object: ActionDataType) => void;
11
11
  }
@@ -7,10 +7,10 @@ export type RangeValue = {
7
7
  start: DateOrString;
8
8
  end: DateOrString;
9
9
  };
10
- export type PickerValue = SingleValue | RangeValue;
10
+ export type PickerValue = SingleValue | RangeValue | DateOrString[];
11
11
  /**DatePicker Component Props */
12
12
  export interface DatePickerProps extends FormInputProps {
13
- defaultValue?: PickerValue;
13
+ defaultValue?: PickerValue | [];
14
14
  valueFormat?: string;
15
15
  onChange?: (value: PickerValue) => void;
16
16
  onBlur?: () => void;
@@ -2,7 +2,7 @@ import { FormInputProps } from '../FormInput/FormInput.types';
2
2
  import { TreeNodeProps } from '../TreeNode/TreeNode.types';
3
3
  export type DropdownItemType = {
4
4
  id: string | number;
5
- label: string;
5
+ label?: string;
6
6
  customLabel?: React.ReactNode | ((item: any) => React.ReactNode);
7
7
  selected?: boolean;
8
8
  disabled?: boolean;
@@ -0,0 +1 @@
1
+ export default function RowDetailsPopup(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function TableContainer(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function TablePopup(): import("react/jsx-runtime").JSX.Element;
@@ -2,14 +2,17 @@ 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;
6
- name: string;
7
- email: string;
8
- department: Department;
9
- status: Status;
10
- role: Role;
11
- createdAt: string;
12
- updatedAt: string;
5
+ id?: number;
6
+ name?: string;
7
+ email?: string;
8
+ title?: string;
9
+ description?: string;
10
+ department?: Department;
11
+ status?: Status;
12
+ role?: Role;
13
+ createdAt?: string;
14
+ updatedAt?: string;
15
+ progress?: number;
13
16
  }
14
17
  export interface SortConfig {
15
18
  selector: keyof UserData;