@neo4j-ndl/react 0.1.4 → 0.3.1
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/lib/cjs/alert/Alert.js +8 -8
- package/lib/cjs/alert/Alert.js.map +1 -1
- package/lib/cjs/button/Button.js +16 -7
- package/lib/cjs/button/Button.js.map +1 -1
- package/lib/cjs/button/index.js +5 -1
- package/lib/cjs/button/index.js.map +1 -1
- package/lib/cjs/checkbox/Checkbox.js +1 -1
- package/lib/cjs/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/context-menu/ContextMenu.js +9 -5
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
- package/lib/cjs/context-menu/index.js +5 -1
- package/lib/cjs/context-menu/index.js.map +1 -1
- package/lib/cjs/drag-and-drop/DragAndDrop.js +66 -0
- package/lib/cjs/drag-and-drop/DragAndDrop.js.map +1 -0
- package/lib/cjs/drag-and-drop/icons/CSV-file.js +6 -0
- package/lib/cjs/drag-and-drop/icons/CSV-file.js.map +1 -0
- package/lib/cjs/drag-and-drop/icons/Cloud.js +6 -0
- package/lib/cjs/drag-and-drop/icons/Cloud.js.map +1 -0
- package/lib/cjs/drag-and-drop/icons/File.js +6 -0
- package/lib/cjs/drag-and-drop/icons/File.js.map +1 -0
- package/lib/cjs/drag-and-drop/icons/InvalidFile.js +6 -0
- package/lib/cjs/drag-and-drop/icons/InvalidFile.js.map +1 -0
- package/lib/cjs/drag-and-drop/index.js +29 -0
- package/lib/cjs/drag-and-drop/index.js.map +1 -0
- package/lib/cjs/helpers/index.js +5 -1
- package/lib/cjs/helpers/index.js.map +1 -1
- package/lib/cjs/icons/Custom.js +6 -2
- package/lib/cjs/icons/Custom.js.map +1 -1
- package/lib/cjs/icons/Hero.js +6 -2
- package/lib/cjs/icons/Hero.js.map +1 -1
- package/lib/cjs/icons/custom/Circle.js +1 -1
- package/lib/cjs/icons/custom/Circle.js.map +1 -1
- package/lib/cjs/icons/custom/CollapseExpand.js +6 -0
- package/lib/cjs/icons/custom/CollapseExpand.js.map +1 -0
- package/lib/cjs/icons/custom/DatabaseAddCircle.js +1 -1
- package/lib/cjs/icons/custom/DatabaseAddCircle.js.map +1 -1
- package/lib/cjs/icons/custom/Dbms.js +6 -0
- package/lib/cjs/icons/custom/Dbms.js.map +1 -0
- package/lib/cjs/icons/custom/Drag.js +1 -1
- package/lib/cjs/icons/custom/Drag.js.map +1 -1
- package/lib/cjs/icons/custom/Expand.js +1 -1
- package/lib/cjs/icons/custom/Expand.js.map +1 -1
- package/lib/cjs/icons/custom/ExternalLink.js +1 -1
- package/lib/cjs/icons/custom/ExternalLink.js.map +1 -1
- package/lib/cjs/icons/custom/FitToScreen.js +1 -1
- package/lib/cjs/icons/custom/FitToScreen.js.map +1 -1
- package/lib/cjs/icons/custom/FolderBookmark.js +1 -1
- package/lib/cjs/icons/custom/FolderBookmark.js.map +1 -1
- package/lib/cjs/icons/custom/Heirarchy2.js +1 -1
- package/lib/cjs/icons/custom/Heirarchy2.js.map +1 -1
- package/lib/cjs/icons/custom/Hierarchy1.js +1 -1
- package/lib/cjs/icons/custom/Hierarchy1.js.map +1 -1
- package/lib/cjs/icons/custom/Hierarchy2.js +6 -0
- package/lib/cjs/icons/custom/Hierarchy2.js.map +1 -0
- package/lib/cjs/icons/custom/NomLevel.js +6 -0
- package/lib/cjs/icons/custom/NomLevel.js.map +1 -0
- package/lib/cjs/icons/custom/Pin.js +1 -1
- package/lib/cjs/icons/custom/Pin.js.map +1 -1
- package/lib/cjs/icons/custom/Presentation.js +1 -1
- package/lib/cjs/icons/custom/Presentation.js.map +1 -1
- package/lib/cjs/icons/custom/QueryBrowser.js +6 -0
- package/lib/cjs/icons/custom/QueryBrowser.js.map +1 -0
- package/lib/cjs/icons/custom/Rhombus.js +1 -1
- package/lib/cjs/icons/custom/Rhombus.js.map +1 -1
- package/lib/cjs/icons/custom/ScienceMolecule.js +6 -0
- package/lib/cjs/icons/custom/ScienceMolecule.js.map +1 -0
- package/lib/cjs/icons/custom/Shrink.js +1 -1
- package/lib/cjs/icons/custom/Shrink.js.map +1 -1
- package/lib/cjs/icons/custom/Text.js +1 -1
- package/lib/cjs/icons/custom/Text.js.map +1 -1
- package/lib/cjs/icons/custom/Triangle.js +1 -1
- package/lib/cjs/icons/custom/Triangle.js.map +1 -1
- package/lib/cjs/icons/custom/VisualizeBloom.js +6 -0
- package/lib/cjs/icons/custom/VisualizeBloom.js.map +1 -0
- package/lib/cjs/icons/custom/index.js +15 -1
- package/lib/cjs/icons/custom/index.js.map +1 -1
- package/lib/cjs/index.js +7 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/input/Input.js +1 -1
- package/lib/cjs/input/Input.js.map +1 -1
- package/lib/cjs/label/Label.js +6 -4
- package/lib/cjs/label/Label.js.map +1 -1
- package/lib/cjs/loading-spinner/LoadingSpinner.js +1 -1
- package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/cjs/popover/Popover.js +6 -2
- package/lib/cjs/popover/Popover.js.map +1 -1
- package/lib/cjs/popover/index.js +5 -1
- package/lib/cjs/popover/index.js.map +1 -1
- package/lib/cjs/progress-bar/ProgressBar.js +2 -2
- package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
- package/lib/cjs/radio/Radio.js +1 -1
- package/lib/cjs/radio/Radio.js.map +1 -1
- package/lib/cjs/switch/Switch.js +1 -1
- package/lib/cjs/switch/Switch.js.map +1 -1
- package/lib/cjs/table/Table.js +124 -0
- package/lib/cjs/table/Table.js.map +1 -0
- package/lib/cjs/table/TableNavigation.js +51 -0
- package/lib/cjs/table/TableNavigation.js.map +1 -0
- package/lib/cjs/table/helpers.js +119 -0
- package/lib/cjs/table/helpers.js.map +1 -0
- package/lib/cjs/table/hooks/hookCallbackTypes.js +23 -0
- package/lib/cjs/table/hooks/hookCallbackTypes.js.map +1 -0
- package/lib/cjs/table/hooks/index.js +40 -0
- package/lib/cjs/table/hooks/index.js.map +1 -0
- package/lib/cjs/table/hooks/useMultiRowSelect.js +84 -0
- package/lib/cjs/table/hooks/useMultiRowSelect.js.map +1 -0
- package/lib/cjs/table/hooks/useSingleRowSelect.js +61 -0
- package/lib/cjs/table/hooks/useSingleRowSelect.js.map +1 -0
- package/lib/cjs/table/index.js +44 -0
- package/lib/cjs/table/index.js.map +1 -0
- package/lib/cjs/tabs/Tabs.js +12 -7
- package/lib/cjs/tabs/Tabs.js.map +1 -1
- package/lib/cjs/tabs/index.js +5 -1
- package/lib/cjs/tabs/index.js.map +1 -1
- package/lib/cjs/tag/Tag.js +1 -1
- package/lib/cjs/tag/Tag.js.map +1 -1
- package/lib/cjs/tooltip/Tooltip.js +1 -1
- package/lib/cjs/tooltip/Tooltip.js.map +1 -1
- package/lib/cjs/view-selector/ViewSelector.js +7 -3
- package/lib/cjs/view-selector/ViewSelector.js.map +1 -1
- package/lib/cjs/view-selector/index.js +5 -1
- package/lib/cjs/view-selector/index.js.map +1 -1
- package/lib/esm/alert/Alert.js +8 -8
- package/lib/esm/alert/Alert.js.map +1 -1
- package/lib/esm/button/Button.js +16 -7
- package/lib/esm/button/Button.js.map +1 -1
- package/lib/esm/checkbox/Checkbox.js +1 -1
- package/lib/esm/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/context-menu/ContextMenu.js +4 -4
- package/lib/esm/context-menu/ContextMenu.js.map +1 -1
- package/lib/esm/drag-and-drop/DragAndDrop.js +61 -0
- package/lib/esm/drag-and-drop/DragAndDrop.js.map +1 -0
- package/lib/esm/drag-and-drop/icons/CSV-file.js +4 -0
- package/lib/esm/drag-and-drop/icons/CSV-file.js.map +1 -0
- package/lib/esm/drag-and-drop/icons/Cloud.js +4 -0
- package/lib/esm/drag-and-drop/icons/Cloud.js.map +1 -0
- package/lib/esm/drag-and-drop/icons/File.js +4 -0
- package/lib/esm/drag-and-drop/icons/File.js.map +1 -0
- package/lib/esm/drag-and-drop/icons/InvalidFile.js +4 -0
- package/lib/esm/drag-and-drop/icons/InvalidFile.js.map +1 -0
- package/lib/esm/drag-and-drop/index.js +22 -0
- package/lib/esm/drag-and-drop/index.js.map +1 -0
- package/lib/esm/icons/Custom.js +1 -1
- package/lib/esm/icons/Custom.js.map +1 -1
- package/lib/esm/icons/Hero.js +1 -1
- package/lib/esm/icons/Hero.js.map +1 -1
- package/lib/esm/icons/custom/Circle.js +1 -1
- package/lib/esm/icons/custom/Circle.js.map +1 -1
- package/lib/esm/icons/custom/CollapseExpand.js +4 -0
- package/lib/esm/icons/custom/CollapseExpand.js.map +1 -0
- package/lib/esm/icons/custom/DatabaseAddCircle.js +1 -1
- package/lib/esm/icons/custom/DatabaseAddCircle.js.map +1 -1
- package/lib/esm/icons/custom/Dbms.js +4 -0
- package/lib/esm/icons/custom/Dbms.js.map +1 -0
- package/lib/esm/icons/custom/Drag.js +1 -1
- package/lib/esm/icons/custom/Drag.js.map +1 -1
- package/lib/esm/icons/custom/Expand.js +1 -1
- package/lib/esm/icons/custom/Expand.js.map +1 -1
- package/lib/esm/icons/custom/ExternalLink.js +1 -1
- package/lib/esm/icons/custom/ExternalLink.js.map +1 -1
- package/lib/esm/icons/custom/FitToScreen.js +1 -1
- package/lib/esm/icons/custom/FitToScreen.js.map +1 -1
- package/lib/esm/icons/custom/FolderBookmark.js +1 -1
- package/lib/esm/icons/custom/FolderBookmark.js.map +1 -1
- package/lib/esm/icons/custom/Heirarchy2.js +1 -1
- package/lib/esm/icons/custom/Heirarchy2.js.map +1 -1
- package/lib/esm/icons/custom/Hierarchy1.js +1 -1
- package/lib/esm/icons/custom/Hierarchy1.js.map +1 -1
- package/lib/esm/icons/custom/Hierarchy2.js +4 -0
- package/lib/esm/icons/custom/Hierarchy2.js.map +1 -0
- package/lib/esm/icons/custom/NomLevel.js +4 -0
- package/lib/esm/icons/custom/NomLevel.js.map +1 -0
- package/lib/esm/icons/custom/Pin.js +1 -1
- package/lib/esm/icons/custom/Pin.js.map +1 -1
- package/lib/esm/icons/custom/Presentation.js +1 -1
- package/lib/esm/icons/custom/Presentation.js.map +1 -1
- package/lib/esm/icons/custom/QueryBrowser.js +4 -0
- package/lib/esm/icons/custom/QueryBrowser.js.map +1 -0
- package/lib/esm/icons/custom/Rhombus.js +1 -1
- package/lib/esm/icons/custom/Rhombus.js.map +1 -1
- package/lib/esm/icons/custom/ScienceMolecule.js +4 -0
- package/lib/esm/icons/custom/ScienceMolecule.js.map +1 -0
- package/lib/esm/icons/custom/Shrink.js +1 -1
- package/lib/esm/icons/custom/Shrink.js.map +1 -1
- package/lib/esm/icons/custom/Text.js +1 -1
- package/lib/esm/icons/custom/Text.js.map +1 -1
- package/lib/esm/icons/custom/Triangle.js +1 -1
- package/lib/esm/icons/custom/Triangle.js.map +1 -1
- package/lib/esm/icons/custom/VisualizeBloom.js +4 -0
- package/lib/esm/icons/custom/VisualizeBloom.js.map +1 -0
- package/lib/esm/icons/custom/index.js +7 -0
- package/lib/esm/icons/custom/index.js.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/input/Input.js +1 -1
- package/lib/esm/input/Input.js.map +1 -1
- package/lib/esm/label/Label.js +6 -4
- package/lib/esm/label/Label.js.map +1 -1
- package/lib/esm/loading-spinner/LoadingSpinner.js +1 -1
- package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/esm/popover/Popover.js +1 -1
- package/lib/esm/popover/Popover.js.map +1 -1
- package/lib/esm/progress-bar/ProgressBar.js +2 -2
- package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
- package/lib/esm/radio/Radio.js +1 -1
- package/lib/esm/radio/Radio.js.map +1 -1
- package/lib/esm/switch/Switch.js +1 -1
- package/lib/esm/switch/Switch.js.map +1 -1
- package/lib/esm/table/Table.js +117 -0
- package/lib/esm/table/Table.js.map +1 -0
- package/lib/esm/table/TableNavigation.js +44 -0
- package/lib/esm/table/TableNavigation.js.map +1 -0
- package/lib/esm/table/helpers.js +112 -0
- package/lib/esm/table/helpers.js.map +1 -0
- package/lib/esm/table/hooks/hookCallbackTypes.js +22 -0
- package/lib/esm/table/hooks/hookCallbackTypes.js.map +1 -0
- package/lib/esm/table/hooks/index.js +24 -0
- package/lib/esm/table/hooks/index.js.map +1 -0
- package/lib/esm/table/hooks/useMultiRowSelect.js +82 -0
- package/lib/esm/table/hooks/useMultiRowSelect.js.map +1 -0
- package/lib/esm/table/hooks/useSingleRowSelect.js +57 -0
- package/lib/esm/table/hooks/useSingleRowSelect.js.map +1 -0
- package/lib/esm/table/index.js +23 -0
- package/lib/esm/table/index.js.map +1 -0
- package/lib/esm/tabs/Tabs.js +7 -6
- package/lib/esm/tabs/Tabs.js.map +1 -1
- package/lib/esm/tag/Tag.js +1 -1
- package/lib/esm/tag/Tag.js.map +1 -1
- package/lib/esm/tooltip/Tooltip.js +1 -1
- package/lib/esm/tooltip/Tooltip.js.map +1 -1
- package/lib/esm/view-selector/ViewSelector.js +2 -2
- package/lib/esm/view-selector/ViewSelector.js.map +1 -1
- package/lib/types/alert/Alert.d.ts +1 -1
- package/lib/types/button/Button.d.ts +2 -0
- package/lib/types/drag-and-drop/DragAndDrop.d.ts +47 -0
- package/lib/types/drag-and-drop/icons/CSV-file.d.ts +23 -0
- package/lib/types/drag-and-drop/icons/Cloud.d.ts +23 -0
- package/lib/types/drag-and-drop/icons/File.d.ts +23 -0
- package/lib/types/drag-and-drop/icons/InvalidFile.d.ts +23 -0
- package/lib/types/drag-and-drop/index.d.ts +21 -0
- package/lib/types/icons/custom/CollapseExpand.d.ts +23 -0
- package/lib/types/icons/custom/Dbms.d.ts +23 -0
- package/lib/types/icons/custom/Hierarchy2.d.ts +23 -0
- package/lib/types/icons/custom/NomLevel.d.ts +23 -0
- package/lib/types/icons/custom/QueryBrowser.d.ts +23 -0
- package/lib/types/icons/custom/ScienceMolecule.d.ts +23 -0
- package/lib/types/icons/custom/VisualizeBloom.d.ts +23 -0
- package/lib/types/icons/custom/index.d.ts +7 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/progress-bar/ProgressBar.d.ts +2 -3
- package/lib/types/table/Table.d.ts +78 -0
- package/lib/types/table/TableNavigation.d.ts +39 -0
- package/lib/types/table/helpers.d.ts +51 -0
- package/lib/types/table/hooks/hookCallbackTypes.d.ts +27 -0
- package/lib/types/table/hooks/index.d.ts +23 -0
- package/lib/types/table/hooks/useMultiRowSelect.d.ts +42 -0
- package/lib/types/table/hooks/useSingleRowSelect.d.ts +37 -0
- package/lib/types/table/index.d.ts +22 -0
- package/lib/types/tabs/Tabs.d.ts +3 -4
- package/package.json +8 -6
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { Hooks, UseGroupByCellProps, UseTableCellProps, UseRowStateCellProps, UseRowSelectRowProps } from 'react-table';
|
|
22
|
+
export interface CustomCell<D extends Record<string, unknown> = Record<string, unknown>, V = any> extends UseTableCellProps<D, V>, UseGroupByCellProps<D>, UseRowSelectRowProps<D>, UseRowStateCellProps<D> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A react-table plugin to support controlled selected row state for multiple rows
|
|
26
|
+
*
|
|
27
|
+
* Required options provided to useTable:
|
|
28
|
+
*
|
|
29
|
+
* `onAllRowSelect`: A callback that is called when the all rows checkbox is toggled
|
|
30
|
+
* `onRowSelect`: A callback that is called when a rows checkbox is toggled
|
|
31
|
+
*
|
|
32
|
+
* Required fields on `data` provided to useTable:
|
|
33
|
+
*
|
|
34
|
+
* `isSelected`: a boolean that indicates if the row is selected. This key can be changed
|
|
35
|
+
* from `isSelected` to something else by setting the `manualRowSelectedKey` option
|
|
36
|
+
* in the useTable options. See the useRowSelect plugin docs for more details.
|
|
37
|
+
*/
|
|
38
|
+
declare const useMultiRowSelect: {
|
|
39
|
+
<T extends Record<string, unknown>>(hooks: Hooks<T>): void;
|
|
40
|
+
pluginName: string;
|
|
41
|
+
};
|
|
42
|
+
export default useMultiRowSelect;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { Hooks } from 'react-table';
|
|
22
|
+
/**
|
|
23
|
+
* A react-table plugin to support controlled selected row state for a single row
|
|
24
|
+
*
|
|
25
|
+
* Required options provided to useTable:
|
|
26
|
+
*
|
|
27
|
+
* `onRowSelect`: A callback that is called when a rows checkbox is toggled
|
|
28
|
+
*
|
|
29
|
+
* Required fields on `data` provided to useTable:
|
|
30
|
+
*
|
|
31
|
+
* `isSelected`: a boolean that indicates if the row is selected. This key can be changed
|
|
32
|
+
* from `isSelected` to something else by setting the `manualRowSelectedKey` option
|
|
33
|
+
* in the useTable options. See the useRowSelect plugin docs for more details.
|
|
34
|
+
* There should only ever be 1 data entry with isSelected set to true
|
|
35
|
+
*/
|
|
36
|
+
export declare const useSingleRowSelect: <T extends Record<string, unknown>>(hooks: Hooks<T>) => void;
|
|
37
|
+
export default useSingleRowSelect;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as Table } from './Table';
|
|
22
|
+
export * from './hooks';
|
package/lib/types/tabs/Tabs.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ import React from 'react';
|
|
|
22
22
|
declare type TabId = string | number;
|
|
23
23
|
declare type Size = 'small' | 'large';
|
|
24
24
|
declare type Fill = 'underline' | 'filled';
|
|
25
|
-
interface BaseTabsProps<T extends TabId> {
|
|
25
|
+
export interface BaseTabsProps<T extends TabId> {
|
|
26
26
|
/**
|
|
27
27
|
* The currently active tabId
|
|
28
28
|
*/
|
|
@@ -31,7 +31,7 @@ interface BaseTabsProps<T extends TabId> {
|
|
|
31
31
|
* Event when a new tab is selected. Receives the newly selected
|
|
32
32
|
* tabId as the value
|
|
33
33
|
*/
|
|
34
|
-
onChange: (
|
|
34
|
+
onChange: (e: T) => void;
|
|
35
35
|
children: React.ReactNode | string;
|
|
36
36
|
fill?: Fill;
|
|
37
37
|
size?: Size;
|
|
@@ -41,8 +41,7 @@ interface BaseTabsProps<T extends TabId> {
|
|
|
41
41
|
*/
|
|
42
42
|
as?: string | React.ComponentType<any>;
|
|
43
43
|
}
|
|
44
|
-
export declare
|
|
45
|
-
export declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<unknown>>;
|
|
44
|
+
export declare const Tabs: <T extends TabId>(props: BaseTabsProps<T> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
46
45
|
interface TabProps<T extends TabId> {
|
|
47
46
|
tabId: T;
|
|
48
47
|
children: React.ReactNode | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "React implementation of Neo4j Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"button",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"build:types": "tsc -p tsconfig.types.json",
|
|
39
39
|
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'",
|
|
40
40
|
"lint": "eslint --ext .jsx,.tsx,.js,.ts src",
|
|
41
|
-
"create-icons": "svgr --icon --typescript --no-svgo --replace-attr-values '#535B66=currentColor' --out-dir ./src/icons/custom -- ../base/src/icons"
|
|
41
|
+
"create-icons": "svgr --icon --typescript --no-svgo --replace-attr-values '#535B66=currentColor' --jsx-runtime 'automatic' --out-dir ./src/icons/custom -- ../base/src/icons"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/preset-env": "^7.16.4",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"@testing-library/react": "^12.1.2",
|
|
48
48
|
"@types/jest-axe": "^3.5.3",
|
|
49
49
|
"@types/react-dom": "^17.0.11",
|
|
50
|
+
"@types/react-table": "^7.7.10",
|
|
50
51
|
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
51
52
|
"@typescript-eslint/parser": "^5.5.0",
|
|
52
53
|
"babel-jest": "^27.3.1",
|
|
@@ -66,8 +67,9 @@
|
|
|
66
67
|
},
|
|
67
68
|
"dependencies": {
|
|
68
69
|
"@heroicons/react": "^1.0.5",
|
|
69
|
-
"@neo4j-ndl/base": "^0.1
|
|
70
|
-
"classnames": "^2.3.1"
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
"@neo4j-ndl/base": "^0.3.1",
|
|
71
|
+
"classnames": "^2.3.1",
|
|
72
|
+
"react-dropzone": "^12.0.4",
|
|
73
|
+
"react-table": "^7.7.0"
|
|
74
|
+
}
|
|
73
75
|
}
|