nectiasw 0.0.21 → 0.0.23
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.
|
@@ -4,7 +4,7 @@ export interface ICheckbox {
|
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
checked?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare function useCheckbox<T extends ICheckbox>(propertyName
|
|
7
|
+
export declare function useCheckbox<T extends ICheckbox>(propertyName?: string): {
|
|
8
8
|
checkboxList: T[];
|
|
9
9
|
checkboxHead: boolean;
|
|
10
10
|
setCheckboxList: React.Dispatch<React.SetStateAction<T[]>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export { Layout } from './components/Layout';
|
|
|
54
54
|
export { Navbar } from './components/Navbar';
|
|
55
55
|
export { Sidebar } from './components/Sidebar';
|
|
56
56
|
export { TwTable as Table, TableRow, TableData, TableWrapper, } from './components/Table';
|
|
57
|
-
export type { TableProps, TableRowProps, TableColProps, TableDataProps, TableStatusProps, } from './components/Table/types';
|
|
57
|
+
export type { Heading, TableProps, TableRowProps, TableColProps, TableDataProps, TableStatusProps, } from './components/Table/types';
|
|
58
58
|
export type { NavbarProps } from './components/Navbar';
|
|
59
59
|
export type { SidebarProps } from './components/Sidebar/types';
|
|
60
60
|
export { Search } from './components/Search';
|
package/dist/index.es.js
CHANGED
|
@@ -55732,11 +55732,13 @@ function nde(e) {
|
|
|
55732
55732
|
setCheckboxList: t,
|
|
55733
55733
|
setCheckboxHead: i,
|
|
55734
55734
|
handleChangeCheckbox: (s, l) => {
|
|
55735
|
-
t(
|
|
55736
|
-
(
|
|
55737
|
-
(
|
|
55735
|
+
e && t(
|
|
55736
|
+
(d) => d.map(
|
|
55737
|
+
(h) => h[e] === l ? { ...h, checked: s } : h
|
|
55738
55738
|
)
|
|
55739
55739
|
);
|
|
55740
|
+
const c = l;
|
|
55741
|
+
t((d) => d.map((h) => h.detailId === c ? { ...h, checked: s } : h));
|
|
55740
55742
|
},
|
|
55741
55743
|
handleChangeCheckboxHead: (s) => {
|
|
55742
55744
|
const l = n.map((c) => ({
|