@hybr1d-tech/charizard 0.4.44 → 0.4.46
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-v2/TableV2.d.ts +3 -1
- package/dist/components/table-v2/table-custom-cols/CustomColCheckbox.d.ts +2 -1
- package/dist/components/table-v2/table-custom-cols/TableCustomCols.d.ts +3 -1
- package/dist/components/table-v2/table-custom-cols/sortable/SortableList.d.ts +2 -1
- package/dist/components/table-v2/table-header-filters/FilterDrawerCheckbox.d.ts +2 -1
- package/dist/components/table-v2/table-meta-header/TableMetaHeader.d.ts +3 -1
- package/dist/components/tag/Tag.d.ts +3 -1
- package/dist/hybr1d-ui.js +2559 -2399
- package/dist/hybr1d-ui.umd.cjs +13 -13
- package/dist/style.css +1 -1
- package/package.json +25 -25
- package/dist/components/table-v2/table-custom-cols/Draggable.d.ts +0 -7
- package/dist/components/table-v2/table-custom-cols/Dropable.d.ts +0 -7
|
@@ -3,6 +3,7 @@ type CustomColCheckboxProps = Pick<OptionsProp, 'setCheckedState'> & {
|
|
|
3
3
|
id: string;
|
|
4
4
|
label: string;
|
|
5
5
|
checked: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
};
|
|
7
|
-
export default function CustomColCheckbox({ id, label, checked, setCheckedState, }: CustomColCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function CustomColCheckbox({ id, label, checked, setCheckedState, disabled, }: CustomColCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -4,13 +4,15 @@ import { TableV2Props } from '../TableV2';
|
|
|
4
4
|
interface TableCustomColsProps {
|
|
5
5
|
customColumnConfig: TableV2Props['customColumnConfig'];
|
|
6
6
|
table: Table<any>;
|
|
7
|
+
isCheckbox?: boolean;
|
|
8
|
+
isDropdownActions?: boolean;
|
|
7
9
|
}
|
|
8
10
|
export type CheckedState = {
|
|
9
11
|
id: string;
|
|
10
12
|
label: string;
|
|
11
13
|
checked: boolean;
|
|
12
14
|
};
|
|
13
|
-
export default function TableCustomCols({ customColumnConfig, table }: TableCustomColsProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default function TableCustomCols({ customColumnConfig, table, isCheckbox, isDropdownActions, }: TableCustomColsProps): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
export interface OptionsProp {
|
|
15
17
|
cols: CheckedState[];
|
|
16
18
|
text: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SortableItem } from './SortableItem';
|
|
3
3
|
import type { UniqueIdentifier } from '@dnd-kit/core';
|
|
4
|
+
import { CheckedState } from '../TableCustomCols';
|
|
4
5
|
interface BaseItem {
|
|
5
6
|
id: UniqueIdentifier;
|
|
6
7
|
}
|
|
7
8
|
interface Props<T extends BaseItem> {
|
|
8
9
|
items: T[];
|
|
9
|
-
onChange
|
|
10
|
+
onChange: React.Dispatch<React.SetStateAction<CheckedState[]>>;
|
|
10
11
|
renderItem(item: T): React.ReactNode;
|
|
11
12
|
}
|
|
12
13
|
export declare function SortableList<T extends BaseItem>({ items: _items, onChange, renderItem }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function FilterDrawerCheckbox({ label, value, checked, filterKey, countryCode, customName, setFilterCheckedState, idx, }: {
|
|
1
|
+
export default function FilterDrawerCheckbox({ label, value, checked, filterKey, countryCode, customName, setFilterCheckedState, idx, setCurrFilter, }: {
|
|
2
2
|
label: string;
|
|
3
3
|
value: string;
|
|
4
4
|
checked: boolean;
|
|
@@ -7,4 +7,5 @@ export default function FilterDrawerCheckbox({ label, value, checked, filterKey,
|
|
|
7
7
|
customName?: string;
|
|
8
8
|
setFilterCheckedState: any;
|
|
9
9
|
idx: number;
|
|
10
|
+
setCurrFilter?: any;
|
|
10
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,6 +11,8 @@ interface TableMetaHeaderProps {
|
|
|
11
11
|
rowSelection: {};
|
|
12
12
|
setRowSelection: React.Dispatch<React.SetStateAction<{}>>;
|
|
13
13
|
table: Table<any>;
|
|
14
|
+
isCheckbox?: boolean;
|
|
15
|
+
isDropdownActions?: boolean;
|
|
14
16
|
}
|
|
15
|
-
export default function TableMetaHeader({ rowSelectionConfig, totalText, searchConfig, filterConfig, customColumnConfig, exportConfig, rowSelection, setRowSelection, table, }: TableMetaHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default function TableMetaHeader({ rowSelectionConfig, totalText, searchConfig, filterConfig, customColumnConfig, exportConfig, rowSelection, setRowSelection, table, isCheckbox, isDropdownActions, }: TableMetaHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
interface TagProps {
|
|
2
3
|
text: string;
|
|
3
4
|
status: STATUS_MAP;
|
|
4
5
|
icon?: string;
|
|
6
|
+
customStyles?: React.CSSProperties;
|
|
5
7
|
}
|
|
6
8
|
export declare enum STATUS_MAP {
|
|
7
9
|
SUCCESS = "success",
|
|
@@ -10,5 +12,5 @@ export declare enum STATUS_MAP {
|
|
|
10
12
|
WARNING = "warning",
|
|
11
13
|
DEFAULT = "default"
|
|
12
14
|
}
|
|
13
|
-
export declare function Tag({ status, text, icon }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function Tag({ status, text, icon, customStyles }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
export {};
|