@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,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.Input = void 0;
|
|
27
|
+
var Input_1 = require("./Input");
|
|
28
|
+
Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return __importDefault(Input_1).default; } });
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,iCAA2C;AAAlC,+GAAA,OAAO,OAAS"}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
exports.Label = exports.LabelColors = void 0;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) "Neo4j"
|
|
22
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
23
|
+
*
|
|
24
|
+
* This file is part of Neo4j.
|
|
25
|
+
*
|
|
26
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
27
|
+
* it under the terms of the GNU General Public License as published by
|
|
28
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
29
|
+
* (at your option) any later version.
|
|
30
|
+
*
|
|
31
|
+
* This program is distributed in the hope that it will be useful,
|
|
32
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
33
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
34
|
+
* GNU General Public License for more details.
|
|
35
|
+
*
|
|
36
|
+
* You should have received a copy of the GNU General Public License
|
|
37
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
38
|
+
*/
|
|
39
|
+
const react_1 = __importDefault(require("react"));
|
|
40
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
41
|
+
const index_1 = require("../icons/custom/index");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* Types
|
|
46
|
+
*
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
exports.LabelColors = [
|
|
50
|
+
'info',
|
|
51
|
+
'success',
|
|
52
|
+
'warning',
|
|
53
|
+
'danger',
|
|
54
|
+
'default',
|
|
55
|
+
];
|
|
56
|
+
exports.Label = react_1.default.forwardRef(function Label(_a, ref) {
|
|
57
|
+
var { color = 'default', children, className, fill = 'filled', withIcon = false } = _a, rest = __rest(_a, ["color", "children", "className", "fill", "withIcon"]);
|
|
58
|
+
let base;
|
|
59
|
+
let icon;
|
|
60
|
+
// Clean Label without icon is not allowed
|
|
61
|
+
if (!withIcon && fill === 'clean') {
|
|
62
|
+
console.error('Label without icon is not allowed');
|
|
63
|
+
}
|
|
64
|
+
if (withIcon) {
|
|
65
|
+
if (color === 'danger') {
|
|
66
|
+
icon = (0, jsx_runtime_1.jsx)(index_1.Rhombus, {});
|
|
67
|
+
}
|
|
68
|
+
else if (color === 'warning') {
|
|
69
|
+
base = fill;
|
|
70
|
+
icon = (0, jsx_runtime_1.jsx)(index_1.Triangle, {});
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
icon = (0, jsx_runtime_1.jsx)(index_1.Circle, {});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
// All colors map to the light-theme palette except the info
|
|
77
|
+
const mappedColor = color === 'info' ? 'primary' : color;
|
|
78
|
+
switch (mappedColor) {
|
|
79
|
+
case 'primary':
|
|
80
|
+
case 'danger':
|
|
81
|
+
case 'success':
|
|
82
|
+
case 'warning': {
|
|
83
|
+
base = (0, classnames_1.default)({
|
|
84
|
+
[`n-bg-light-${mappedColor}-bg-strong n-text-neutral-10`]: fill === 'filled',
|
|
85
|
+
[`outlined n-text-${mappedColor}-60 n-border-light-${mappedColor}-border-strong`]: fill === 'outlined',
|
|
86
|
+
[`semi-filled n-bg-${mappedColor}-10 n-text-${mappedColor}-60 n-border-light-${mappedColor}-border-weak`]: fill === 'semi-filled',
|
|
87
|
+
[`n-text-${mappedColor}-60`]: fill === 'clean',
|
|
88
|
+
});
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
default:
|
|
92
|
+
base = (0, classnames_1.default)({
|
|
93
|
+
[`n-bg-light-neutral-bg-strongest n-text-neutral-10`]: fill === 'filled',
|
|
94
|
+
[`outlined n-text-light-neutral-text-weak n-border-neutral-70`]: fill === 'outlined',
|
|
95
|
+
[`semi-filled n-bg-neutral-20 n-text-light-neutral-text-weak n-border-light-neutral-border-strong`]: fill === 'semi-filled',
|
|
96
|
+
[`n-text-neutral-70`]: fill === 'clean',
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
const classes = (0, classnames_1.default)('ndl-label', base, className, fill);
|
|
100
|
+
return ((0, jsx_runtime_1.jsx)("span", Object.assign({ role: "status", "aria-label": "label", className: classes }, rest, { ref: ref }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "label-content" }, { children: [icon, (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "label-text" }, { children: children }))] })) })));
|
|
101
|
+
});
|
|
102
|
+
exports.default = exports.Label;
|
|
103
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../src/label/Label.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,kDAA0B;AAC1B,4DAAoC;AACpC,iDA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,CAAC,oBAAoB,WAAW,cAAc,WAAW,sBAAsB,WAAW,cAAc,CAAC,EACvG,IAAI,KAAK,aAAa;gBACxB,CAAC,UAAU,WAAW,KAAK,CAAC,EAAE,IAAI,KAAK,OAAO;aAC/C,CAAC,CAAC;YACH,MAAM;SACP;QACD;YACE,IAAI,GAAG,IAAA,oBAAU,EAAC;gBAChB,CAAC,mDAAmD,CAAC,EACnD,IAAI,KAAK,QAAQ;gBACnB,CAAC,6DAA6D,CAAC,EAC7D,IAAI,KAAK,UAAU;gBACrB,CAAC,iGAAiG,CAAC,EACjG,IAAI,KAAK,aAAa;gBACxB,CAAC,mBAAmB,CAAC,EAAE,IAAI,KAAK,OAAO;aACxC,CAAC,CAAC;KACN;IAED,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IAE/D,OAAO,CACL,+CACE,IAAI,EAAC,QAAQ,gBACF,OAAO,EAClB,SAAS,EAAE,OAAO,IACd,IAAI,IACR,GAAG,EAAE,GAAG,gBAER,+CAAK,SAAS,EAAC,eAAe,iBAC3B,IAAI,EACL,+CAAM,SAAS,EAAC,YAAY,gBAAE,QAAQ,IAAQ,KAC1C,IACD,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,aAAK,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.Label = void 0;
|
|
27
|
+
var Label_1 = require("./Label");
|
|
28
|
+
Object.defineProperty(exports, "Label", { enumerable: true, get: function () { return __importDefault(Label_1).default; } });
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/label/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,iCAA2C;AAAlC,+GAAA,OAAO,OAAS"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*
|
|
43
|
+
* LoadingSpinner Component
|
|
44
|
+
*
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
const LoadingSpinner = react_1.default.forwardRef(function LoadingSpinner(props, ref) {
|
|
48
|
+
const { size = 'small', className } = props, rest = __rest(props, ["size", "className"]);
|
|
49
|
+
const classes = (0, classnames_1.default)('ndl-spin-wrapper', size, className);
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes, role: "status", "aria-label": "loading-spinner" }, rest, { ref: ref }, { children: (0, jsx_runtime_1.jsx)("div", { className: "spin" }) })));
|
|
51
|
+
});
|
|
52
|
+
exports.default = LoadingSpinner;
|
|
53
|
+
//# sourceMappingURL=LoadingSpinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../../src/loading-spinner/LoadingSpinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,kDAA0B;AAC1B,4DAAoC;AAepC;;;;;;GAMG;AAEH,MAAM,cAAc,GAAG,eAAK,CAAC,UAAU,CAAC,SAAS,cAAc,CAC7D,KAA0B,EAC1B,GAAuC;IAEvC,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE,SAAS,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAA9C,qBAAsC,CAAQ,CAAC;IAErD,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,kBAAkB,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;IAEhE,OAAO,CACL,8CACE,SAAS,EAAE,OAAO,EAClB,IAAI,EAAC,QAAQ,gBACF,iBAAiB,IACxB,IAAI,IACR,GAAG,EAAE,GAAG,gBAER,gCAAK,SAAS,EAAC,MAAM,GAAG,IACpB,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,cAAc,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.LoadingSpinner = void 0;
|
|
27
|
+
var LoadingSpinner_1 = require("./LoadingSpinner");
|
|
28
|
+
Object.defineProperty(exports, "LoadingSpinner", { enumerable: true, get: function () { return __importDefault(LoadingSpinner_1).default; } });
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/loading-spinner/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,mDAA6D;AAApD,iIAAA,OAAO,OAAkB"}
|
|
@@ -0,0 +1,213 @@
|
|
|
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.Popover = 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 = require("react");
|
|
63
|
+
const ReactDOM = __importStar(require("react-dom"));
|
|
64
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
65
|
+
const helpers_1 = require("../helpers");
|
|
66
|
+
const getScrollbarSize = (doc) => {
|
|
67
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
|
|
68
|
+
const documentWidth = doc.documentElement.clientWidth;
|
|
69
|
+
return Math.abs(window.innerWidth - documentWidth);
|
|
70
|
+
};
|
|
71
|
+
const getPaddingRight = (element) => parseInt(window.getComputedStyle(element).paddingRight, 10) || 0;
|
|
72
|
+
const getOffsetTop = (rect, vertical) => {
|
|
73
|
+
let offset = 0;
|
|
74
|
+
if (vertical === 'bottom') {
|
|
75
|
+
offset = rect.height;
|
|
76
|
+
}
|
|
77
|
+
return offset;
|
|
78
|
+
};
|
|
79
|
+
const getOffsetLeft = (rect, horizontal) => {
|
|
80
|
+
let offset = 0;
|
|
81
|
+
if (horizontal === 'right') {
|
|
82
|
+
offset = rect.width;
|
|
83
|
+
}
|
|
84
|
+
return offset;
|
|
85
|
+
};
|
|
86
|
+
exports.Popover = (0, react_1.forwardRef)(function Popover(_a, ref) {
|
|
87
|
+
var { as = 'div', children, open, anchorEl, onClose, anchorOrigin = { vertical: 'bottom', horizontal: 'left' }, transformOrigin = { vertical: 'top', horizontal: 'left' }, className, nested = false } = _a, rest = __rest(_a, ["as", "children", "open", "anchorEl", "onClose", "anchorOrigin", "transformOrigin", "className", "nested"]);
|
|
88
|
+
const Component = as;
|
|
89
|
+
const popoverRef = (0, react_1.useRef)();
|
|
90
|
+
const bodyPadding = (0, react_1.useRef)(0);
|
|
91
|
+
// Override ref to map to internal ref
|
|
92
|
+
(0, react_1.useImperativeHandle)(ref, () => {
|
|
93
|
+
const popover = popoverRef.current;
|
|
94
|
+
if (!popover) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
return popover;
|
|
98
|
+
});
|
|
99
|
+
const [enter, setEnter] = (0, react_1.useState)(false);
|
|
100
|
+
const base = (0, classnames_1.default)({
|
|
101
|
+
open,
|
|
102
|
+
enter,
|
|
103
|
+
});
|
|
104
|
+
const getPositioningStyles = (0, react_1.useCallback)((element) => {
|
|
105
|
+
if (!anchorEl)
|
|
106
|
+
throw Error('Missing anchorEl for Popover component');
|
|
107
|
+
const anchorRect = anchorEl.getBoundingClientRect();
|
|
108
|
+
const menuRect = {
|
|
109
|
+
width: element.offsetWidth,
|
|
110
|
+
height: element.offsetHeight,
|
|
111
|
+
};
|
|
112
|
+
const transformX = transformOrigin.horizontal == 'right' ? -menuRect.width : 0;
|
|
113
|
+
const transformY = transformOrigin.vertical == 'bottom' ? -menuRect.height : 0;
|
|
114
|
+
const marginThreshold = 16; // An arbitrary margin between the menu popup and the border of the window
|
|
115
|
+
// Window thresholds taking required margin into account
|
|
116
|
+
const heightThreshold = window.innerHeight - marginThreshold;
|
|
117
|
+
const widthThreshold = window.innerWidth - marginThreshold;
|
|
118
|
+
let top = anchorRect.top +
|
|
119
|
+
getOffsetTop(anchorRect, anchorOrigin.vertical) +
|
|
120
|
+
transformY;
|
|
121
|
+
let left = anchorRect.left +
|
|
122
|
+
getOffsetLeft(anchorRect, anchorOrigin.horizontal) +
|
|
123
|
+
transformX;
|
|
124
|
+
const right = left + menuRect.width;
|
|
125
|
+
const bottom = top + menuRect.height;
|
|
126
|
+
// Check if the vertical axis needs shifting
|
|
127
|
+
if (top < marginThreshold) {
|
|
128
|
+
const diff = top - marginThreshold;
|
|
129
|
+
top -= diff;
|
|
130
|
+
}
|
|
131
|
+
else if (bottom > heightThreshold) {
|
|
132
|
+
const diff = bottom - heightThreshold;
|
|
133
|
+
top -= diff;
|
|
134
|
+
}
|
|
135
|
+
// Check if the horizontal axis needs shifting
|
|
136
|
+
if (left < marginThreshold) {
|
|
137
|
+
const diff = left - marginThreshold;
|
|
138
|
+
left -= diff;
|
|
139
|
+
}
|
|
140
|
+
else if (right > widthThreshold) {
|
|
141
|
+
const diff = right - widthThreshold;
|
|
142
|
+
left -= diff;
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
top,
|
|
146
|
+
left,
|
|
147
|
+
};
|
|
148
|
+
}, [anchorOrigin, transformOrigin, anchorEl]);
|
|
149
|
+
const setPositioningStyles = (0, react_1.useCallback)(() => {
|
|
150
|
+
const element = popoverRef.current;
|
|
151
|
+
if (!element) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const positioning = getPositioningStyles(element);
|
|
155
|
+
if (positioning.top !== null) {
|
|
156
|
+
element.style.top = `${positioning.top}px`;
|
|
157
|
+
}
|
|
158
|
+
if (positioning.left !== null) {
|
|
159
|
+
element.style.left = `${positioning.left}px`;
|
|
160
|
+
}
|
|
161
|
+
}, [getPositioningStyles]);
|
|
162
|
+
// Disable scroll and add padding when the popover is open
|
|
163
|
+
(0, react_1.useEffect)(() => {
|
|
164
|
+
if (nested) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
if (open) {
|
|
168
|
+
const existingPaddingRight = getPaddingRight(document.body);
|
|
169
|
+
bodyPadding.current = existingPaddingRight;
|
|
170
|
+
const newPaddingRight = existingPaddingRight + getScrollbarSize(document);
|
|
171
|
+
document.body.style.overflow = 'hidden';
|
|
172
|
+
document.body.style.paddingRight = `${newPaddingRight}px`;
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
document.body.style.overflow = '';
|
|
176
|
+
document.body.style.paddingRight = `${bodyPadding.current}px`;
|
|
177
|
+
}
|
|
178
|
+
}, [open, nested]);
|
|
179
|
+
(0, react_1.useEffect)(() => {
|
|
180
|
+
if (open) {
|
|
181
|
+
setPositioningStyles();
|
|
182
|
+
}
|
|
183
|
+
}, [open, setPositioningStyles]);
|
|
184
|
+
// Set Enter to trigger fade in animation
|
|
185
|
+
(0, react_1.useEffect)(() => setEnter(open), [open]);
|
|
186
|
+
(0, react_1.useEffect)(() => {
|
|
187
|
+
if (!open) {
|
|
188
|
+
return undefined;
|
|
189
|
+
}
|
|
190
|
+
const handleResize = (0, helpers_1.debounce)(() => {
|
|
191
|
+
setPositioningStyles();
|
|
192
|
+
});
|
|
193
|
+
window.addEventListener('resize', handleResize);
|
|
194
|
+
return () => {
|
|
195
|
+
handleResize.clear();
|
|
196
|
+
window.removeEventListener('resize', handleResize);
|
|
197
|
+
};
|
|
198
|
+
}, [anchorEl, open, setPositioningStyles]);
|
|
199
|
+
const handleBackdropClick = (event) => {
|
|
200
|
+
event.stopPropagation();
|
|
201
|
+
event.preventDefault();
|
|
202
|
+
onClose && onClose(event);
|
|
203
|
+
};
|
|
204
|
+
if (!open) {
|
|
205
|
+
return null;
|
|
206
|
+
}
|
|
207
|
+
const classes = (0, classnames_1.default)('ndl-popover', base, className);
|
|
208
|
+
return ((0, jsx_runtime_1.jsxs)(Portal, Object.assign({ container: document.body }, { children: [(0, jsx_runtime_1.jsx)("div", { className: "ndl-popover-backdrop", role: "button", tabIndex: 0, onClick: handleBackdropClick, onKeyDown: handleBackdropClick, "data-testid": "popover-backdrop" }), (0, jsx_runtime_1.jsx)(Component, Object.assign({ tabIndex: -1 }, rest, { className: classes, ref: popoverRef, "data-testid": "popover-content" }, { children: children }))] })));
|
|
209
|
+
});
|
|
210
|
+
const Portal = ({ children, container }) => {
|
|
211
|
+
return ReactDOM.createPortal(children, container);
|
|
212
|
+
};
|
|
213
|
+
//# sourceMappingURL=Popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../src/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B,GAC9B,EACF,uBAAC,SAAS,kBACR,QAAQ,EAAE,CAAC,CAAC,IACR,IAAI,IACR,SAAS,EAAE,OAAO,EAClB,GAAG,EAAE,UAAU,iBACH,iBAAiB,gBAE5B,QAAQ,IACC,KACL,CACV,CAAC;AACJ,CAAC,CAAC,CAAC;AAMH,MAAM,MAAM,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAe,EAAE,EAAE;IACtD,OAAO,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AACpD,CAAC,CAAC"}
|
|
@@ -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("./Popover"), exports);
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/popover/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;AAEH,4CAA0B"}
|
|
@@ -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 ProgressBar = react_1.default.forwardRef(function ProgressBar(_a, ref) {
|
|
41
|
+
var { heading, value, barSize = 'small', className } = _a, rest = __rest(_a, ["heading", "value", "barSize", "className"]);
|
|
42
|
+
const classes = (0, classnames_1.default)('ndl-progress-bar-wrapper', barSize, className);
|
|
43
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, rest, { className: classes, ref: ref }, { children: [heading && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "header" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "heading" }, { children: heading })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "progress-number" }, { children: value + '%' }))] }))), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "progress-bar-container", role: "progressbar", title: "progress bar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": value }, { children: (0, jsx_runtime_1.jsx)("div", { className: "progress-bar", style: { width: value + '%' } }) }))] })));
|
|
44
|
+
});
|
|
45
|
+
exports.default = ProgressBar;
|
|
46
|
+
//# sourceMappingURL=ProgressBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../src/progress-bar/ProgressBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,kDAA0B;AAC1B,4DAAoC;AASpC,MAAM,WAAW,GAAG,eAAK,CAAC,UAAU,CAAC,SAAS,WAAW,CACvD,EAA2E,EAC3E,GAAuC;QADvC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,SAAS,OAA6B,EAAxB,IAAI,cAAvD,4CAAyD,CAAF;IAGvD,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,0BAA0B,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAE3E,OAAO,CACL,iDAAS,IAAI,IAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,iBACxC,OAAO,IAAI,CACV,+CAAK,SAAS,EAAC,QAAQ,iBACrB,+CAAM,SAAS,EAAC,SAAS,gBAAE,OAAO,IAAQ,EAC1C,+CAAM,SAAS,EAAC,iBAAiB,gBAAE,KAAK,GAAG,GAAG,IAAQ,KAClD,CACP,EACD,8CACE,SAAS,EAAC,wBAAwB,EAClC,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,cAAc,mBACL,CAAC,mBACD,GAAG,mBACH,KAAK,gBAEpB,gCAAK,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,GAAG,GAAG,EAAE,GAAI,IAC3D,KACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,WAAW,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.ProgressBar = void 0;
|
|
27
|
+
var ProgressBar_1 = require("./ProgressBar");
|
|
28
|
+
Object.defineProperty(exports, "ProgressBar", { enumerable: true, get: function () { return __importDefault(ProgressBar_1).default; } });
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/progress-bar/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,6CAAuD;AAA9C,2HAAA,OAAO,OAAe"}
|