@neo4j-ndl/react 0.1.3 → 0.3.0
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 +102 -0
- package/lib/cjs/alert/Alert.js.map +1 -0
- package/lib/cjs/alert/index.js +30 -0
- package/lib/cjs/alert/index.js.map +1 -0
- package/lib/cjs/button/Button.js +116 -0
- package/lib/cjs/button/Button.js.map +1 -0
- package/lib/cjs/button/index.js +38 -0
- package/lib/cjs/button/index.js.map +1 -0
- package/lib/cjs/checkbox/Checkbox.js +52 -0
- package/lib/cjs/checkbox/Checkbox.js.map +1 -0
- package/lib/cjs/checkbox/index.js +29 -0
- package/lib/cjs/checkbox/index.js.map +1 -0
- package/lib/cjs/context-menu/ContextMenu.js +218 -0
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -0
- package/lib/cjs/context-menu/index.js +38 -0
- package/lib/cjs/context-menu/index.js.map +1 -0
- 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/debounce.js +41 -0
- package/lib/cjs/helpers/debounce.js.map +1 -0
- package/lib/cjs/helpers/forwardRef.js +26 -0
- package/lib/cjs/helpers/forwardRef.js.map +1 -0
- package/lib/cjs/helpers/index.js +40 -0
- package/lib/cjs/helpers/index.js.map +1 -0
- package/lib/cjs/helpers/testing.js +46 -0
- package/lib/cjs/helpers/testing.js.map +1 -0
- package/lib/cjs/helpers/types.js +23 -0
- package/lib/cjs/helpers/types.js.map +1 -0
- package/lib/cjs/icons/Custom.js +67 -0
- package/lib/cjs/icons/Custom.js.map +1 -0
- package/lib/cjs/icons/Hero.js +59 -0
- package/lib/cjs/icons/Hero.js.map +1 -0
- package/lib/cjs/icons/custom/Circle.js +6 -0
- package/lib/cjs/icons/custom/Circle.js.map +1 -0
- 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 +6 -0
- package/lib/cjs/icons/custom/DatabaseAddCircle.js.map +1 -0
- 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 +6 -0
- package/lib/cjs/icons/custom/Drag.js.map +1 -0
- package/lib/cjs/icons/custom/Expand.js +6 -0
- package/lib/cjs/icons/custom/Expand.js.map +1 -0
- package/lib/cjs/icons/custom/ExternalLink.js +6 -0
- package/lib/cjs/icons/custom/ExternalLink.js.map +1 -0
- package/lib/cjs/icons/custom/FitToScreen.js +6 -0
- package/lib/cjs/icons/custom/FitToScreen.js.map +1 -0
- package/lib/cjs/icons/custom/FolderBookmark.js +6 -0
- package/lib/cjs/icons/custom/FolderBookmark.js.map +1 -0
- package/lib/cjs/icons/custom/Heirarchy2.js +6 -0
- package/lib/cjs/icons/custom/Heirarchy2.js.map +1 -0
- package/lib/cjs/icons/custom/Hierarchy1.js +6 -0
- package/lib/cjs/icons/custom/Hierarchy1.js.map +1 -0
- 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 +6 -0
- package/lib/cjs/icons/custom/Pin.js.map +1 -0
- package/lib/cjs/icons/custom/Presentation.js +6 -0
- package/lib/cjs/icons/custom/Presentation.js.map +1 -0
- 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 +6 -0
- package/lib/cjs/icons/custom/Rhombus.js.map +1 -0
- 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 +6 -0
- package/lib/cjs/icons/custom/Shrink.js.map +1 -0
- package/lib/cjs/icons/custom/Text.js +6 -0
- package/lib/cjs/icons/custom/Text.js.map +1 -0
- package/lib/cjs/icons/custom/Triangle.js +6 -0
- package/lib/cjs/icons/custom/Triangle.js.map +1 -0
- 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 +71 -0
- package/lib/cjs/icons/custom/index.js.map +1 -0
- package/lib/cjs/icons/index.js +31 -0
- package/lib/cjs/icons/index.js.map +1 -0
- package/lib/cjs/index.js +53 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/input/Input.js +60 -0
- package/lib/cjs/input/Input.js.map +1 -0
- package/lib/cjs/input/index.js +29 -0
- package/lib/cjs/input/index.js.map +1 -0
- package/lib/cjs/label/Label.js +103 -0
- package/lib/cjs/label/Label.js.map +1 -0
- package/lib/cjs/label/index.js +29 -0
- package/lib/cjs/label/index.js.map +1 -0
- package/lib/cjs/loading-spinner/LoadingSpinner.js +53 -0
- package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -0
- package/lib/cjs/loading-spinner/index.js +29 -0
- package/lib/cjs/loading-spinner/index.js.map +1 -0
- package/lib/cjs/popover/Popover.js +213 -0
- package/lib/cjs/popover/Popover.js.map +1 -0
- package/lib/cjs/popover/index.js +38 -0
- package/lib/cjs/popover/index.js.map +1 -0
- package/lib/cjs/progress-bar/ProgressBar.js +46 -0
- package/lib/cjs/progress-bar/ProgressBar.js.map +1 -0
- package/lib/cjs/progress-bar/index.js +29 -0
- package/lib/cjs/progress-bar/index.js.map +1 -0
- package/lib/cjs/radio/Radio.js +48 -0
- package/lib/cjs/radio/Radio.js.map +1 -0
- package/lib/cjs/radio/index.js +29 -0
- package/lib/cjs/radio/index.js.map +1 -0
- package/lib/cjs/switch/Switch.js +48 -0
- package/lib/cjs/switch/Switch.js.map +1 -0
- package/lib/cjs/switch/index.js +29 -0
- package/lib/cjs/switch/index.js.map +1 -0
- 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 +105 -0
- package/lib/cjs/tabs/Tabs.js.map +1 -0
- package/lib/cjs/tabs/index.js +38 -0
- package/lib/cjs/tabs/index.js.map +1 -0
- package/lib/cjs/tag/Tag.js +67 -0
- package/lib/cjs/tag/Tag.js.map +1 -0
- package/lib/cjs/tag/index.js +29 -0
- package/lib/cjs/tag/index.js.map +1 -0
- package/lib/cjs/tooltip/Tooltip.js +46 -0
- package/lib/cjs/tooltip/Tooltip.js.map +1 -0
- package/lib/cjs/tooltip/index.js +29 -0
- package/lib/cjs/tooltip/index.js.map +1 -0
- package/lib/cjs/view-selector/ViewSelector.js +89 -0
- package/lib/cjs/view-selector/ViewSelector.js.map +1 -0
- package/lib/cjs/view-selector/index.js +38 -0
- package/lib/cjs/view-selector/index.js.map +1 -0
- package/lib/esm/alert/Alert.js +95 -0
- package/lib/esm/alert/Alert.js.map +1 -0
- package/lib/esm/alert/index.js +22 -0
- package/lib/esm/alert/index.js.map +1 -0
- package/lib/esm/button/Button.js +108 -0
- package/lib/esm/button/Button.js.map +1 -0
- package/lib/esm/button/index.js +22 -0
- package/lib/esm/button/index.js.map +1 -0
- package/lib/esm/checkbox/Checkbox.js +47 -0
- package/lib/esm/checkbox/Checkbox.js.map +1 -0
- package/lib/esm/checkbox/index.js +22 -0
- package/lib/esm/checkbox/index.js.map +1 -0
- package/lib/esm/context-menu/ContextMenu.js +189 -0
- package/lib/esm/context-menu/ContextMenu.js.map +1 -0
- package/lib/esm/context-menu/index.js +22 -0
- package/lib/esm/context-menu/index.js.map +1 -0
- 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/helpers/debounce.js +37 -0
- package/lib/esm/helpers/debounce.js.map +1 -0
- package/lib/esm/helpers/forwardRef.js +23 -0
- package/lib/esm/helpers/forwardRef.js.map +1 -0
- package/lib/esm/helpers/index.js +24 -0
- package/lib/esm/helpers/index.js.map +1 -0
- package/lib/esm/helpers/testing.js +42 -0
- package/lib/esm/helpers/testing.js.map +1 -0
- package/lib/esm/helpers/types.js +22 -0
- package/lib/esm/helpers/types.js.map +1 -0
- package/lib/esm/icons/Custom.js +41 -0
- package/lib/esm/icons/Custom.js.map +1 -0
- package/lib/esm/icons/Hero.js +33 -0
- package/lib/esm/icons/Hero.js.map +1 -0
- package/lib/esm/icons/custom/Circle.js +4 -0
- package/lib/esm/icons/custom/Circle.js.map +1 -0
- 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 +4 -0
- package/lib/esm/icons/custom/DatabaseAddCircle.js.map +1 -0
- 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 +4 -0
- package/lib/esm/icons/custom/Drag.js.map +1 -0
- package/lib/esm/icons/custom/Expand.js +4 -0
- package/lib/esm/icons/custom/Expand.js.map +1 -0
- package/lib/esm/icons/custom/ExternalLink.js +4 -0
- package/lib/esm/icons/custom/ExternalLink.js.map +1 -0
- package/lib/esm/icons/custom/FitToScreen.js +4 -0
- package/lib/esm/icons/custom/FitToScreen.js.map +1 -0
- package/lib/esm/icons/custom/FolderBookmark.js +4 -0
- package/lib/esm/icons/custom/FolderBookmark.js.map +1 -0
- package/lib/esm/icons/custom/Heirarchy2.js +4 -0
- package/lib/esm/icons/custom/Heirarchy2.js.map +1 -0
- package/lib/esm/icons/custom/Hierarchy1.js +4 -0
- package/lib/esm/icons/custom/Hierarchy1.js.map +1 -0
- 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 +4 -0
- package/lib/esm/icons/custom/Pin.js.map +1 -0
- package/lib/esm/icons/custom/Presentation.js +4 -0
- package/lib/esm/icons/custom/Presentation.js.map +1 -0
- 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 +4 -0
- package/lib/esm/icons/custom/Rhombus.js.map +1 -0
- 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 +4 -0
- package/lib/esm/icons/custom/Shrink.js.map +1 -0
- package/lib/esm/icons/custom/Text.js +4 -0
- package/lib/esm/icons/custom/Text.js.map +1 -0
- package/lib/esm/icons/custom/Triangle.js +4 -0
- package/lib/esm/icons/custom/Triangle.js.map +1 -0
- 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 +43 -0
- package/lib/esm/icons/custom/index.js.map +1 -0
- package/lib/esm/icons/index.js +23 -0
- package/lib/esm/icons/index.js.map +1 -0
- package/lib/esm/index.js +37 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/input/Input.js +55 -0
- package/lib/esm/input/Input.js.map +1 -0
- package/lib/esm/input/index.js +22 -0
- package/lib/esm/input/index.js.map +1 -0
- package/lib/esm/label/Label.js +97 -0
- package/lib/esm/label/Label.js.map +1 -0
- package/lib/esm/label/index.js +22 -0
- package/lib/esm/label/index.js.map +1 -0
- package/lib/esm/loading-spinner/LoadingSpinner.js +48 -0
- package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -0
- package/lib/esm/loading-spinner/index.js +22 -0
- package/lib/esm/loading-spinner/index.js.map +1 -0
- package/lib/esm/popover/Popover.js +184 -0
- package/lib/esm/popover/Popover.js.map +1 -0
- package/lib/esm/popover/index.js +22 -0
- package/lib/esm/popover/index.js.map +1 -0
- package/lib/esm/progress-bar/ProgressBar.js +41 -0
- package/lib/esm/progress-bar/ProgressBar.js.map +1 -0
- package/lib/esm/progress-bar/index.js +22 -0
- package/lib/esm/progress-bar/index.js.map +1 -0
- package/lib/esm/radio/Radio.js +43 -0
- package/lib/esm/radio/Radio.js.map +1 -0
- package/lib/esm/radio/index.js +22 -0
- package/lib/esm/radio/index.js.map +1 -0
- package/lib/esm/switch/Switch.js +43 -0
- package/lib/esm/switch/Switch.js.map +1 -0
- package/lib/esm/switch/index.js +22 -0
- package/lib/esm/switch/index.js.map +1 -0
- 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 +76 -0
- package/lib/esm/tabs/Tabs.js.map +1 -0
- package/lib/esm/tabs/index.js +22 -0
- package/lib/esm/tabs/index.js.map +1 -0
- package/lib/esm/tag/Tag.js +62 -0
- package/lib/esm/tag/Tag.js.map +1 -0
- package/lib/esm/tag/index.js +22 -0
- package/lib/esm/tag/index.js.map +1 -0
- package/lib/esm/tooltip/Tooltip.js +41 -0
- package/lib/esm/tooltip/Tooltip.js.map +1 -0
- package/lib/esm/tooltip/index.js +22 -0
- package/lib/esm/tooltip/index.js.map +1 -0
- package/lib/esm/view-selector/ViewSelector.js +60 -0
- package/lib/esm/view-selector/ViewSelector.js.map +1 -0
- package/lib/esm/view-selector/index.js +22 -0
- package/lib/esm/view-selector/index.js.map +1 -0
- package/lib/types/alert/Alert.d.ts +75 -0
- package/lib/types/alert/index.d.ts +21 -0
- package/lib/types/button/Button.d.ts +52 -0
- package/lib/types/button/index.d.ts +21 -0
- package/lib/types/checkbox/Checkbox.d.ts +39 -0
- package/lib/types/checkbox/index.d.ts +21 -0
- package/lib/types/context-menu/ContextMenu.d.ts +65 -0
- package/lib/types/context-menu/index.d.ts +21 -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/helpers/debounce.d.ts +24 -0
- package/lib/types/helpers/forwardRef.d.ts +24 -0
- package/lib/types/helpers/index.d.ts +23 -0
- package/lib/types/helpers/testing.d.ts +28 -0
- package/lib/types/helpers/types.d.ts +25 -0
- package/lib/types/icons/Custom.d.ts +27 -0
- package/lib/types/icons/Hero.d.ts +28 -0
- package/lib/types/icons/custom/Circle.d.ts +23 -0
- package/lib/types/icons/custom/CollapseExpand.d.ts +23 -0
- package/lib/types/icons/custom/DatabaseAddCircle.d.ts +23 -0
- package/lib/types/icons/custom/Dbms.d.ts +23 -0
- package/lib/types/icons/custom/Drag.d.ts +23 -0
- package/lib/types/icons/custom/Expand.d.ts +23 -0
- package/lib/types/icons/custom/ExternalLink.d.ts +23 -0
- package/lib/types/icons/custom/FitToScreen.d.ts +23 -0
- package/lib/types/icons/custom/FolderBookmark.d.ts +23 -0
- package/lib/types/icons/custom/Heirarchy2.d.ts +23 -0
- package/lib/types/icons/custom/Hierarchy1.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/Pin.d.ts +23 -0
- package/lib/types/icons/custom/Presentation.d.ts +23 -0
- package/lib/types/icons/custom/QueryBrowser.d.ts +23 -0
- package/lib/types/icons/custom/Rhombus.d.ts +23 -0
- package/lib/types/icons/custom/ScienceMolecule.d.ts +23 -0
- package/lib/types/icons/custom/Shrink.d.ts +23 -0
- package/lib/types/icons/custom/Text.d.ts +23 -0
- package/lib/types/icons/custom/Triangle.d.ts +23 -0
- package/lib/types/icons/custom/VisualizeBloom.d.ts +23 -0
- package/lib/types/icons/custom/index.d.ts +42 -0
- package/lib/types/icons/index.d.ts +22 -0
- package/lib/types/index.d.ts +36 -0
- package/lib/types/input/Input.d.ts +44 -0
- package/lib/types/input/index.d.ts +21 -0
- package/lib/types/label/Label.d.ts +41 -0
- package/lib/types/label/index.d.ts +21 -0
- package/lib/types/loading-spinner/LoadingSpinner.d.ts +41 -0
- package/lib/types/loading-spinner/index.d.ts +21 -0
- package/lib/types/popover/Popover.d.ts +70 -0
- package/lib/types/popover/index.d.ts +21 -0
- package/lib/types/progress-bar/ProgressBar.d.ts +29 -0
- package/lib/types/progress-bar/index.d.ts +21 -0
- package/lib/types/radio/Radio.d.ts +39 -0
- package/lib/types/radio/index.d.ts +21 -0
- package/lib/types/switch/Switch.d.ts +39 -0
- package/lib/types/switch/index.d.ts +21 -0
- 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 +72 -0
- package/lib/types/tabs/index.d.ts +21 -0
- package/lib/types/tag/Tag.d.ts +61 -0
- package/lib/types/tag/index.d.ts +21 -0
- package/lib/types/tooltip/Tooltip.d.ts +29 -0
- package/lib/types/tooltip/index.d.ts +21 -0
- package/lib/types/view-selector/ViewSelector.d.ts +51 -0
- package/lib/types/view-selector/index.d.ts +21 -0
- package/package.json +8 -5
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
const react_1 = require("react");
|
|
25
|
+
const react_table_1 = require("react-table");
|
|
26
|
+
const checkbox_1 = require("../../checkbox");
|
|
27
|
+
/**
|
|
28
|
+
* A react-table plugin to support controlled selected row state for multiple rows
|
|
29
|
+
*
|
|
30
|
+
* Required options provided to useTable:
|
|
31
|
+
*
|
|
32
|
+
* `onAllRowSelect`: A callback that is called when the all rows checkbox is toggled
|
|
33
|
+
* `onRowSelect`: A callback that is called when a rows checkbox is toggled
|
|
34
|
+
*
|
|
35
|
+
* Required fields on `data` provided to useTable:
|
|
36
|
+
*
|
|
37
|
+
* `isSelected`: a boolean that indicates if the row is selected. This key can be changed
|
|
38
|
+
* from `isSelected` to something else by setting the `manualRowSelectedKey` option
|
|
39
|
+
* in the useTable options. See the useRowSelect plugin docs for more details.
|
|
40
|
+
*/
|
|
41
|
+
const useMultiRowSelect = (hooks) => {
|
|
42
|
+
(0, react_table_1.useRowSelect)(hooks);
|
|
43
|
+
/*
|
|
44
|
+
Used for the indeterminate
|
|
45
|
+
state of the checkbox
|
|
46
|
+
*/
|
|
47
|
+
hooks.useControlledState.push((state, { instance }) => {
|
|
48
|
+
const { data } = instance;
|
|
49
|
+
const isSelectedKey = 'isSelected';
|
|
50
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
51
|
+
const newState = (0, react_1.useMemo)(() => (Object.assign(Object.assign({}, state), { selectedRowIds: data.reduce((acc, curr, index) => {
|
|
52
|
+
if (curr[isSelectedKey]) {
|
|
53
|
+
return Object.assign(Object.assign({}, acc), { [index]: true });
|
|
54
|
+
}
|
|
55
|
+
return acc;
|
|
56
|
+
}, {}) })), [state, data, isSelectedKey]);
|
|
57
|
+
return newState;
|
|
58
|
+
});
|
|
59
|
+
hooks.visibleColumns.push((columns, { instance }) => [
|
|
60
|
+
// Let's make a column for selection
|
|
61
|
+
{
|
|
62
|
+
id: 'ndl-checkbox-selection',
|
|
63
|
+
// The header can use the table's getToggleAllRowsSelectedProps method
|
|
64
|
+
// to render a checkbox
|
|
65
|
+
Header: ({ getToggleAllRowsSelectedProps, }) => {
|
|
66
|
+
const checkboxRef = (0, react_1.useRef)(null);
|
|
67
|
+
(0, react_1.useEffect)(() => {
|
|
68
|
+
if (checkboxRef && checkboxRef.current) {
|
|
69
|
+
checkboxRef.current.indeterminate =
|
|
70
|
+
getToggleAllRowsSelectedProps().indeterminate || false;
|
|
71
|
+
}
|
|
72
|
+
}, [checkboxRef, getToggleAllRowsSelectedProps]);
|
|
73
|
+
return ((0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, Object.assign({ "aria-label": "all-rows-select", onClick: () => instance.onAllRowSelect() }, getToggleAllRowsSelectedProps(), { ref: checkboxRef })));
|
|
74
|
+
},
|
|
75
|
+
// The cell can use the individual row's getToggleRowSelectedProps method
|
|
76
|
+
// to the render a checkbox
|
|
77
|
+
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, Object.assign({ "aria-label": `row-${row.index}`, onClick: () => instance.onRowSelect(row.original, row.index) }, row.getToggleRowSelectedProps())) })),
|
|
78
|
+
},
|
|
79
|
+
...columns,
|
|
80
|
+
]);
|
|
81
|
+
};
|
|
82
|
+
useMultiRowSelect.pluginName = 'useMultiRowSelect';
|
|
83
|
+
exports.default = useMultiRowSelect;
|
|
84
|
+
//# sourceMappingURL=useMultiRowSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMultiRowSelect.js","sourceRoot":"","sources":["../../../../src/table/hooks/useMultiRowSelect.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAmD;AACnD,6CASqB;AACrB,6CAA0C;AAW1C;;;;;;;;;;;;;GAaG;AACH,MAAM,iBAAiB,GAAG,CACxB,KAAe,EACf,EAAE;IACF,IAAA,0BAAY,EAAC,KAAK,CAAC,CAAC;IAEpB;;;MAGE;IACF,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;QACpD,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;QAE1B,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,sDAAsD;QACtD,MAAM,QAAQ,GAAG,IAAA,eAAO,EACtB,GAAG,EAAE,CAAC,iCACD,KAAK,KACR,cAAc,EAAE,IAAI,CAAC,MAAM,CACzB,CACE,GAA4B,EAC5B,IAA6B,EAC7B,KAAa,EACb,EAAE;gBACF,IAAI,IAAI,CAAC,aAAa,CAAC,EAAE;oBACvB,uCAAY,GAAG,KAAE,CAAC,KAAK,CAAC,EAAE,IAAI,IAAG;iBAClC;gBAED,OAAO,GAAG,CAAC;YACb,CAAC,EACD,EAAE,CACH,IACD,EACF,CAAC,KAAK,EAAE,IAAI,EAAE,aAAa,CAAC,CAC7B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;QACnD,oCAAoC;QACpC;YACE,EAAE,EAAE,wBAAwB;YAC5B,sEAAsE;YACtE,uBAAuB;YACvB,MAAM,EAAE,CAAC,EACP,6BAA6B,GACK,EAAE,EAAE;gBACtC,MAAM,WAAW,GAAG,IAAA,cAAM,EAAmB,IAAI,CAAC,CAAC;gBACnD,IAAA,iBAAS,EAAC,GAAG,EAAE;oBACb,IAAI,WAAW,IAAI,WAAW,CAAC,OAAO,EAAE;wBACtC,WAAW,CAAC,OAAO,CAAC,aAAa;4BAC/B,6BAA6B,EAAE,CAAC,aAAa,IAAI,KAAK,CAAC;qBAC1D;gBACH,CAAC,EAAE,CAAC,WAAW,EAAE,6BAA6B,CAAC,CAAC,CAAC;gBACjD,OAAO,CACL,uBAAC,mBAAQ,gCACI,iBAAiB,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAE,QAA2B,CAAC,cAAc,EAAE,IACxD,6BAA6B,EAAE,IACnC,GAAG,EAAE,WAAW,IAChB,CACH,CAAC;YACJ,CAAC;YACD,yEAAyE;YACzE,2BAA2B;YAC3B,IAAI,EAAE,CAAC,EAAE,GAAG,EAAW,EAAE,EAAE,CAAC,CAC1B,0CACE,uBAAC,mBAAQ,gCACK,OAAO,GAAG,CAAC,KAAK,EAAE,EAC9B,OAAO,EAAE,GAAG,EAAE,CACX,QAA2B,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC,IAE9D,GAAW,CAAC,yBAAyB,EAAE,EAC5C,GACE,CACP;SACF;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,iBAAiB,CAAC,UAAU,GAAG,mBAAmB,CAAC;AAEnD,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSingleRowSelect = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) "Neo4j"
|
|
8
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
9
|
+
*
|
|
10
|
+
* This file is part of Neo4j.
|
|
11
|
+
*
|
|
12
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
13
|
+
* it under the terms of the GNU General Public License as published by
|
|
14
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
+
* (at your option) any later version.
|
|
16
|
+
*
|
|
17
|
+
* This program is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
+
* GNU General Public License for more details.
|
|
21
|
+
*
|
|
22
|
+
* You should have received a copy of the GNU General Public License
|
|
23
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
+
*/
|
|
25
|
+
const react_table_1 = require("react-table");
|
|
26
|
+
const radio_1 = require("../../radio");
|
|
27
|
+
/**
|
|
28
|
+
* A react-table plugin to support controlled selected row state for a single row
|
|
29
|
+
*
|
|
30
|
+
* Required options provided to useTable:
|
|
31
|
+
*
|
|
32
|
+
* `onRowSelect`: A callback that is called when a rows checkbox is toggled
|
|
33
|
+
*
|
|
34
|
+
* Required fields on `data` provided to useTable:
|
|
35
|
+
*
|
|
36
|
+
* `isSelected`: a boolean that indicates if the row is selected. This key can be changed
|
|
37
|
+
* from `isSelected` to something else by setting the `manualRowSelectedKey` option
|
|
38
|
+
* in the useTable options. See the useRowSelect plugin docs for more details.
|
|
39
|
+
* There should only ever be 1 data entry with isSelected set to true
|
|
40
|
+
*/
|
|
41
|
+
const useSingleRowSelect = (hooks) => {
|
|
42
|
+
(0, react_table_1.useRowSelect)(hooks);
|
|
43
|
+
hooks.visibleColumns.push((columns, { instance }) => [
|
|
44
|
+
// Let's make a column for selection
|
|
45
|
+
// This should be definitely unique to avoid collision
|
|
46
|
+
{
|
|
47
|
+
id: 'ndl-radio-selection',
|
|
48
|
+
Header: () => null,
|
|
49
|
+
width: 20,
|
|
50
|
+
// The cell can use the individual row's getToggleRowSelectedProps method
|
|
51
|
+
// to the render a checkbox
|
|
52
|
+
Cell: ({ row }) => {
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(radio_1.Radio, Object.assign({}, row.getToggleRowSelectedProps(), { onChange: () => instance.onRowSelect(row.original, row.index) })));
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
...columns,
|
|
57
|
+
]);
|
|
58
|
+
};
|
|
59
|
+
exports.useSingleRowSelect = useSingleRowSelect;
|
|
60
|
+
exports.default = exports.useSingleRowSelect;
|
|
61
|
+
//# sourceMappingURL=useSingleRowSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSingleRowSelect.js","sourceRoot":"","sources":["../../../../src/table/hooks/useSingleRowSelect.tsx"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,6CAAwD;AACxD,uCAAoC;AAGpC;;;;;;;;;;;;;GAaG;AACI,MAAM,kBAAkB,GAAG,CAChC,KAAe,EACf,EAAE;IACF,IAAA,0BAAY,EAAC,KAAK,CAAC,CAAC;IAEpB,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;QACnD,oCAAoC;QACpC,sDAAsD;QACtD;YACE,EAAE,EAAE,qBAAqB;YACzB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;YAClB,KAAK,EAAE,EAAE;YACT,yEAAyE;YACzE,2BAA2B;YAC3B,IAAI,EAAE,CAAC,EAAE,GAAG,EAAW,EAAE,EAAE;gBACzB,OAAO,CACL,uBAAC,aAAK,oBACC,GAAW,CAAC,yBAAyB,EAAE,IAC5C,QAAQ,EAAE,GAAG,EAAE,CACZ,QAA2B,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC,IAEnE,CACH,CAAC;YACJ,CAAC;SACF;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC,CAAC;AA3BW,QAAA,kBAAkB,sBA2B7B;AAEF,kBAAe,0BAAkB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
25
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
26
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
27
|
+
}
|
|
28
|
+
Object.defineProperty(o, k2, desc);
|
|
29
|
+
}) : (function(o, m, k, k2) {
|
|
30
|
+
if (k2 === undefined) k2 = k;
|
|
31
|
+
o[k2] = m[k];
|
|
32
|
+
}));
|
|
33
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
34
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Table = void 0;
|
|
41
|
+
var Table_1 = require("./Table");
|
|
42
|
+
Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return __importDefault(Table_1).default; } });
|
|
43
|
+
__exportStar(require("./hooks"), exports);
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/table/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;;;AAEH,iCAA2C;AAAlC,+GAAA,OAAO,OAAS;AACzB,0CAAwB"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.TabPanel = exports.Tab = exports.Tabs = void 0;
|
|
41
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) "Neo4j"
|
|
45
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
46
|
+
*
|
|
47
|
+
* This file is part of Neo4j.
|
|
48
|
+
*
|
|
49
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
50
|
+
* it under the terms of the GNU General Public License as published by
|
|
51
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
52
|
+
* (at your option) any later version.
|
|
53
|
+
*
|
|
54
|
+
* This program is distributed in the hope that it will be useful,
|
|
55
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
56
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
57
|
+
* GNU General Public License for more details.
|
|
58
|
+
*
|
|
59
|
+
* You should have received a copy of the GNU General Public License
|
|
60
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
61
|
+
*/
|
|
62
|
+
const react_1 = __importStar(require("react"));
|
|
63
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
64
|
+
const TabsContext = react_1.default.createContext(null);
|
|
65
|
+
const useTabsContext = () => {
|
|
66
|
+
const context = (0, react_1.useContext)(TabsContext);
|
|
67
|
+
if (context === null) {
|
|
68
|
+
throw new Error('Tab used without context');
|
|
69
|
+
}
|
|
70
|
+
return context;
|
|
71
|
+
};
|
|
72
|
+
const getTabPanelId = (tabId) => `tabpanel-${tabId}`;
|
|
73
|
+
const getGeneralTabClasses = (size, fill) => {
|
|
74
|
+
return {
|
|
75
|
+
large: size === 'large',
|
|
76
|
+
small: size === 'small',
|
|
77
|
+
filled: fill === 'filled',
|
|
78
|
+
underline: fill === 'underline',
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
exports.Tabs = react_1.default.forwardRef(function Tabs(_a, ref) {
|
|
82
|
+
var { children, size = 'large', fill = 'underline', onChange, value, className, as = 'div' } = _a, rest = __rest(_a, ["children", "size", "fill", "onChange", "value", "className", "as"]);
|
|
83
|
+
const classes = (0, classnames_1.default)('ndl-tabs', getGeneralTabClasses(size, fill), className);
|
|
84
|
+
const Component = as;
|
|
85
|
+
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, role: "tablist" }, rest, { ref: ref }, { children: (0, jsx_runtime_1.jsx)(TabsContext.Provider, Object.assign({ value: { value, size, fill, onChange } }, { children: children })) })));
|
|
86
|
+
});
|
|
87
|
+
exports.Tab = react_1.default.forwardRef(function Tab(_a, ref) {
|
|
88
|
+
var { children, tabId, disabled = false, className, as = 'button' } = _a, rest = __rest(_a, ["children", "tabId", "disabled", "className", "as"]);
|
|
89
|
+
const { size, fill, value, onChange } = useTabsContext();
|
|
90
|
+
const base = (0, classnames_1.default)(Object.assign(Object.assign({}, getGeneralTabClasses(size, fill)), { selected: value === tabId, disabled }));
|
|
91
|
+
const Component = as;
|
|
92
|
+
// Cast onChange since the compiler isn't smart enough to figure out union of function's parameters
|
|
93
|
+
// https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-3.html#improved-behavior-for-calling-union-types
|
|
94
|
+
// https://stackoverflow.com/questions/55572797/why-does-typescript-expect-never-as-function-argument-when-retrieving-the-func
|
|
95
|
+
const castOnChange = onChange;
|
|
96
|
+
const handleChange = () => !disabled && castOnChange(tabId);
|
|
97
|
+
const classes = (0, classnames_1.default)('tab', base, className);
|
|
98
|
+
return ((0, jsx_runtime_1.jsxs)(Component, Object.assign({ className: classes, onClick: handleChange, role: "tab", "aria-controls": getTabPanelId(tabId) }, rest, { ref: ref }, { children: [children, fill === 'underline' && (0, jsx_runtime_1.jsx)("span", { className: "tab-underline" })] })));
|
|
99
|
+
});
|
|
100
|
+
exports.TabPanel = react_1.default.forwardRef(function TabPanel(_a, ref) {
|
|
101
|
+
var { as = 'div', children, value, tabId } = _a, rest = __rest(_a, ["as", "children", "value", "tabId"]);
|
|
102
|
+
const Component = as;
|
|
103
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: value === tabId && ((0, jsx_runtime_1.jsx)(Component, Object.assign({ role: "tabpanel", id: getTabPanelId(tabId) }, rest, { ref: ref }, { children: children }))) }));
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=Tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/tabs/Tabs.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
25
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
26
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
27
|
+
}
|
|
28
|
+
Object.defineProperty(o, k2, desc);
|
|
29
|
+
}) : (function(o, m, k, k2) {
|
|
30
|
+
if (k2 === undefined) k2 = k;
|
|
31
|
+
o[k2] = m[k];
|
|
32
|
+
}));
|
|
33
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
34
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
__exportStar(require("./Tabs"), exports);
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tabs/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,yCAAuB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) "Neo4j"
|
|
21
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
22
|
+
*
|
|
23
|
+
* This file is part of Neo4j.
|
|
24
|
+
*
|
|
25
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
26
|
+
* it under the terms of the GNU General Public License as published by
|
|
27
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
28
|
+
* (at your option) any later version.
|
|
29
|
+
*
|
|
30
|
+
* This program is distributed in the hope that it will be useful,
|
|
31
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
32
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
33
|
+
* GNU General Public License for more details.
|
|
34
|
+
*
|
|
35
|
+
* You should have received a copy of the GNU General Public License
|
|
36
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
37
|
+
*/
|
|
38
|
+
const react_1 = __importDefault(require("react"));
|
|
39
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
40
|
+
const icons_1 = require("../icons");
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* Helpers
|
|
45
|
+
*
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
/** Add any helper functions here. */
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
*
|
|
52
|
+
* Tag Component
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
const Tag = react_1.default.forwardRef(function Tag(props, ref) {
|
|
57
|
+
const { children, type = 'default', removeable, onRemove } = props, rest = __rest(props, ["children", "type", "removeable", "onRemove"]);
|
|
58
|
+
if (removeable && typeof onRemove !== 'function') {
|
|
59
|
+
console.error('Tag element is removable but onRemove prop is not a function or provided');
|
|
60
|
+
}
|
|
61
|
+
const classes = (0, classnames_1.default)(`ndl-tag`, type, {
|
|
62
|
+
removeable: removeable,
|
|
63
|
+
});
|
|
64
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: classes, ref: ref }, { children: [children, removeable && ((0, jsx_runtime_1.jsx)("button", Object.assign({ type: "button", className: "remove-icon", onClick: onRemove }, { children: (0, jsx_runtime_1.jsx)(icons_1.HeroIcon, { iconName: "XIcon" }) })))] })));
|
|
65
|
+
});
|
|
66
|
+
exports.default = Tag;
|
|
67
|
+
//# sourceMappingURL=Tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/tag/Tag.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,kDAA0B;AAC1B,4DAAoC;AACpC,oCAAoC;AAgCpC;;;;;;GAMG;AAEH,qCAAqC;AAErC;;;;;;GAMG;AAEH,MAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAC,SAAS,GAAG,CACvC,KAAe,EACf,GAAuC;IAEvC,MAAM,EAAE,QAAQ,EAAE,IAAI,GAAG,SAAS,EAAE,UAAU,EAAE,QAAQ,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAArE,8CAA6D,CAAQ,CAAC;IAE5E,IAAI,UAAU,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;QAChD,OAAO,CAAC,KAAK,CACX,0EAA0E,CAC3E,CAAC;KACH;IAED,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,SAAS,EAAE,IAAI,EAAE;QAC1C,UAAU,EAAE,UAAU;KACvB,CAAC,CAAC;IAEH,OAAO,CACL,iDAAS,IAAI,IAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,iBACxC,QAAQ,EACR,UAAU,IAAI,CACb,iDAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,aAAa,EAAC,OAAO,EAAE,QAAQ,gBAC7D,uBAAC,gBAAQ,IAAC,QAAQ,EAAC,OAAO,GAAG,IACtB,CACV,KACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Tag = void 0;
|
|
27
|
+
var Tag_1 = require("./Tag");
|
|
28
|
+
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return __importDefault(Tag_1).default; } });
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tag/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,6BAAuC;AAA9B,2GAAA,OAAO,OAAO"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) "Neo4j"
|
|
21
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
22
|
+
*
|
|
23
|
+
* This file is part of Neo4j.
|
|
24
|
+
*
|
|
25
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
26
|
+
* it under the terms of the GNU General Public License as published by
|
|
27
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
28
|
+
* (at your option) any later version.
|
|
29
|
+
*
|
|
30
|
+
* This program is distributed in the hope that it will be useful,
|
|
31
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
32
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
33
|
+
* GNU General Public License for more details.
|
|
34
|
+
*
|
|
35
|
+
* You should have received a copy of the GNU General Public License
|
|
36
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
37
|
+
*/
|
|
38
|
+
const react_1 = __importDefault(require("react"));
|
|
39
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
40
|
+
const Tooltip = react_1.default.forwardRef(function Tooltip(_a, ref) {
|
|
41
|
+
var { arrowPosition, children, className } = _a, props = __rest(_a, ["arrowPosition", "children", "className"]);
|
|
42
|
+
const classes = (0, classnames_1.default)('ndl-tooltip-wrapper', className);
|
|
43
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, props, { role: "tooltip", className: classes, ref: ref }, { children: [children, (0, jsx_runtime_1.jsx)("div", { className: `tooltip-triangle ${arrowPosition}` })] })));
|
|
44
|
+
});
|
|
45
|
+
exports.default = Tooltip;
|
|
46
|
+
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,kDAA0B;AAC1B,4DAAoC;AAgBpC,MAAM,OAAO,GAAG,eAAK,CAAC,UAAU,CAAC,SAAS,OAAO,CAC/C,EAA8D,EAC9D,GAAuC;QADvC,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,OAA0B,EAArB,KAAK,cAA9C,0CAAgD,CAAF;IAG9C,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;IAE7D,OAAO,CACL,iDAAS,KAAK,IAAE,IAAI,EAAC,SAAS,EAAC,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,iBACxD,QAAQ,EACT,gCAAK,SAAS,EAAE,oBAAoB,aAAa,EAAE,GAAI,KACnD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Tooltip = void 0;
|
|
27
|
+
var Tooltip_1 = require("./Tooltip");
|
|
28
|
+
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return __importDefault(Tooltip_1).default; } });
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qCAA+C;AAAtC,mHAAA,OAAO,OAAW"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.ViewSelectorItem = exports.ViewSelector = void 0;
|
|
41
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) "Neo4j"
|
|
45
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
46
|
+
*
|
|
47
|
+
* This file is part of Neo4j.
|
|
48
|
+
*
|
|
49
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
50
|
+
* it under the terms of the GNU General Public License as published by
|
|
51
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
52
|
+
* (at your option) any later version.
|
|
53
|
+
*
|
|
54
|
+
* This program is distributed in the hope that it will be useful,
|
|
55
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
56
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
57
|
+
* GNU General Public License for more details.
|
|
58
|
+
*
|
|
59
|
+
* You should have received a copy of the GNU General Public License
|
|
60
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
61
|
+
*/
|
|
62
|
+
const react_1 = __importStar(require("react"));
|
|
63
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
64
|
+
const helpers_1 = require("../helpers");
|
|
65
|
+
const ViewSelectorContext = react_1.default.createContext(null);
|
|
66
|
+
const useSelectorContext = () => {
|
|
67
|
+
const context = (0, react_1.useContext)(ViewSelectorContext);
|
|
68
|
+
if (context === null) {
|
|
69
|
+
throw new Error('View Selector used without context');
|
|
70
|
+
}
|
|
71
|
+
return context;
|
|
72
|
+
};
|
|
73
|
+
exports.ViewSelector = (0, helpers_1.forwardRef)(function ViewSelector(_a, ref) {
|
|
74
|
+
var { size = 'large', icons = false, children, selected, onChange, as = 'div', className } = _a, rest = __rest(_a, ["size", "icons", "children", "selected", "onChange", "as", "className"]);
|
|
75
|
+
const classes = (0, classnames_1.default)(`ndl-view-selector`, size, className);
|
|
76
|
+
const Component = as;
|
|
77
|
+
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({}, rest, { className: classes, role: "group", ref: ref }, { children: (0, jsx_runtime_1.jsx)(ViewSelectorContext.Provider, Object.assign({ value: { onChange, selected, icons } }, { children: children })) })));
|
|
78
|
+
});
|
|
79
|
+
exports.ViewSelectorItem = react_1.default.forwardRef(function ViewSelectorItem(_a, ref) {
|
|
80
|
+
var { children, value, as = 'button', className } = _a, rest = __rest(_a, ["children", "value", "as", "className"]);
|
|
81
|
+
const { onChange, selected, icons } = useSelectorContext();
|
|
82
|
+
const isSelected = value && value === selected;
|
|
83
|
+
const base = (0, classnames_1.default)(`selector-${icons ? 'icon' : 'item'}`, className, {
|
|
84
|
+
current: value && value === selected,
|
|
85
|
+
});
|
|
86
|
+
const Component = as;
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({}, rest, { onClick: () => !isSelected && onChange(value), className: base, ref: ref }, { children: children })));
|
|
88
|
+
});
|
|
89
|
+
//# sourceMappingURL=ViewSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewSelector.js","sourceRoot":"","sources":["../../../src/view-selector/ViewSelector.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,+CAA0C;AAC1C,4DAAoC;AACpC,wCAAqD;AAuCrD,MAAM,mBAAmB,GACvB,eAAK,CAAC,aAAa,CAAkC,IAAI,CAAC,CAAC;AAE7D,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC9B,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,mBAAmB,CAAC,CAAC;IAEhD,IAAI,OAAO,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACvD;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,oBAAU,EAAC,SAAS,YAAY,CAG1D,EASuB,EACvB,GAAgC;QAVhC,EACE,IAAI,GAAG,OAAO,EACd,KAAK,GAAG,KAAK,EACb,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,EAAE,GAAG,KAAK,EACV,SAAS,OAEY,EADlB,IAAI,cART,wEASC,CADQ;IAIT,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,mBAAmB,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;IAEjE,MAAM,SAAS,GAAG,EAAE,CAAC;IAErB,OAAO,CACL,uBAAC,SAAS,oBAAK,IAAI,IAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,OAAO,EAAC,GAAG,EAAE,GAAG,gBAC5D,uBAAC,mBAAmB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAC/D,QAAQ,IACoB,IACrB,CACb,CAAC;AACJ,CAAC,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,eAAK,CAAC,UAAU,CAAC,SAAS,gBAAgB,CACxE,EAQC,EACD,GAAG;QATH,EACE,QAAQ,EACR,KAAK,EACL,EAAE,GAAG,QAAQ,EACb,SAAS,OAIV,EAHI,IAAI,cALT,wCAMC,CADQ;IAMT,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAE3D,MAAM,UAAU,GAAG,KAAK,IAAI,KAAK,KAAK,QAAQ,CAAC;IAE/C,MAAM,IAAI,GAAG,IAAA,oBAAU,EAAC,YAAY,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE;QACxE,OAAO,EAAE,KAAK,IAAI,KAAK,KAAK,QAAQ;KACrC,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,EAAE,CAAC;IAErB,OAAO,CACL,uBAAC,SAAS,oBACJ,IAAI,IACR,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU,IAAI,QAAQ,CAAC,KAAK,CAAC,EAC7C,SAAS,EAAE,IAAI,EACf,GAAG,EAAE,GAAG,gBAEP,QAAQ,IACC,CACb,CAAC;AACJ,CAAC,CAAC,CAAC"}
|