@neo4j-ndl/react 0.1.2 → 0.1.3-alpha.19
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/{alert → cjs/alert}/index.js +6 -10
- 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/{button → cjs/button}/index.js +6 -2
- package/lib/cjs/button/index.js.map +1 -0
- package/lib/{checkbox → cjs/checkbox}/Checkbox.js +10 -20
- package/lib/cjs/checkbox/Checkbox.js.map +1 -0
- package/lib/{checkbox → cjs/checkbox}/index.js +5 -9
- package/lib/cjs/checkbox/index.js.map +1 -0
- package/lib/{context-menu → cjs/context-menu}/ContextMenu.js +83 -95
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -0
- package/lib/{context-menu → cjs/context-menu}/index.js +6 -2
- 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/{helpers → cjs/helpers}/debounce.js +7 -13
- package/lib/cjs/helpers/debounce.js.map +1 -0
- package/lib/{helpers → cjs/helpers}/forwardRef.js +2 -2
- package/lib/cjs/helpers/forwardRef.js.map +1 -0
- package/lib/{helpers → cjs/helpers}/index.js +6 -2
- 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/{helpers → cjs/helpers}/types.js +1 -1
- package/lib/cjs/helpers/types.js.map +1 -0
- package/lib/{icons → cjs/icons}/Custom.js +33 -43
- 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/{icons → cjs/icons}/index.js +6 -10
- package/lib/cjs/icons/index.js.map +1 -0
- package/lib/{index.js → cjs/index.js} +9 -2
- 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/{input → cjs/input}/index.js +5 -9
- 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/{label → cjs/label}/index.js +5 -9
- package/lib/cjs/label/index.js.map +1 -0
- package/lib/{loading-spinner → cjs/loading-spinner}/LoadingSpinner.js +23 -34
- package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -0
- package/lib/{loading-spinner → cjs/loading-spinner}/index.js +5 -9
- package/lib/cjs/loading-spinner/index.js.map +1 -0
- package/lib/{popover → cjs/popover}/Popover.js +86 -97
- package/lib/cjs/popover/Popover.js.map +1 -0
- package/lib/{popover → cjs/popover}/index.js +6 -2
- 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/{progress-bar → cjs/progress-bar}/index.js +5 -9
- package/lib/cjs/progress-bar/index.js.map +1 -0
- package/lib/{radio → cjs/radio}/Radio.js +10 -20
- package/lib/cjs/radio/Radio.js.map +1 -0
- package/lib/{radio → cjs/radio}/index.js +5 -9
- package/lib/cjs/radio/index.js.map +1 -0
- package/lib/{switch → cjs/switch}/Switch.js +10 -20
- package/lib/cjs/switch/Switch.js.map +1 -0
- package/lib/{switch → cjs/switch}/index.js +5 -9
- package/lib/cjs/switch/index.js.map +1 -0
- package/lib/cjs/table/Table.js +122 -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 +107 -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/{tabs → cjs/tabs}/index.js +6 -2
- package/lib/cjs/tabs/index.js.map +1 -0
- package/lib/{tag → cjs/tag}/Tag.js +25 -38
- package/lib/cjs/tag/Tag.js.map +1 -0
- package/lib/{tag → cjs/tag}/index.js +5 -9
- package/lib/cjs/tag/index.js.map +1 -0
- package/lib/{tooltip → cjs/tooltip}/Tooltip.js +23 -35
- package/lib/cjs/tooltip/Tooltip.js.map +1 -0
- package/lib/{tooltip → cjs/tooltip}/index.js +5 -9
- package/lib/cjs/tooltip/index.js.map +1 -0
- package/lib/{view-selector → cjs/view-selector}/ViewSelector.js +45 -52
- package/lib/cjs/view-selector/ViewSelector.js.map +1 -0
- package/lib/{view-selector → cjs/view-selector}/index.js +6 -2
- 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 +115 -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 +100 -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/{alert → types/alert}/Alert.d.ts +0 -0
- package/lib/{alert → types/alert}/index.d.ts +0 -0
- package/lib/{button → types/button}/Button.d.ts +0 -0
- package/lib/{button → types/button}/index.d.ts +0 -0
- package/lib/{checkbox → types/checkbox}/Checkbox.d.ts +0 -0
- package/lib/{checkbox → types/checkbox}/index.d.ts +0 -0
- package/lib/{context-menu → types/context-menu}/ContextMenu.d.ts +0 -0
- package/lib/{context-menu → types/context-menu}/index.d.ts +0 -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/{helpers → types/helpers}/debounce.d.ts +0 -0
- package/lib/{helpers → types/helpers}/forwardRef.d.ts +0 -0
- package/lib/{helpers → types/helpers}/index.d.ts +0 -0
- package/lib/{helpers → types/helpers}/testing.d.ts +0 -0
- package/lib/{helpers → types/helpers}/types.d.ts +0 -0
- package/lib/{icons → types/icons}/Custom.d.ts +0 -0
- package/lib/{icons → types/icons}/Hero.d.ts +0 -0
- package/lib/{icons → types/icons}/custom/Circle.d.ts +0 -0
- package/lib/types/icons/custom/CollapseExpand.d.ts +23 -0
- package/lib/{icons → types/icons}/custom/DatabaseAddCircle.d.ts +0 -0
- package/lib/types/icons/custom/Dbms.d.ts +23 -0
- package/lib/{icons → types/icons}/custom/Drag.d.ts +0 -0
- package/lib/{icons → types/icons}/custom/Expand.d.ts +0 -0
- package/lib/{icons → types/icons}/custom/ExternalLink.d.ts +0 -0
- package/lib/{icons → types/icons}/custom/FitToScreen.d.ts +0 -0
- package/lib/{icons → types/icons}/custom/FolderBookmark.d.ts +0 -0
- package/lib/{icons → types/icons}/custom/Heirarchy2.d.ts +0 -0
- package/lib/{icons → types/icons}/custom/Hierarchy1.d.ts +0 -0
- package/lib/types/icons/custom/Hierarchy2.d.ts +23 -0
- package/lib/types/icons/custom/NomLevel.d.ts +23 -0
- package/lib/{icons → types/icons}/custom/Pin.d.ts +0 -0
- package/lib/{icons → types/icons}/custom/Presentation.d.ts +0 -0
- package/lib/types/icons/custom/QueryBrowser.d.ts +23 -0
- package/lib/{icons → types/icons}/custom/Rhombus.d.ts +0 -0
- package/lib/types/icons/custom/ScienceMolecule.d.ts +23 -0
- package/lib/{icons → types/icons}/custom/Shrink.d.ts +0 -0
- package/lib/{icons → types/icons}/custom/Text.d.ts +0 -0
- package/lib/{icons → types/icons}/custom/Triangle.d.ts +0 -0
- package/lib/types/icons/custom/VisualizeBloom.d.ts +23 -0
- package/lib/{icons → types/icons}/custom/index.d.ts +7 -0
- package/lib/{icons → types/icons}/index.d.ts +0 -0
- package/lib/{index.d.ts → types/index.d.ts} +3 -0
- package/lib/{input → types/input}/Input.d.ts +0 -0
- package/lib/{input → types/input}/index.d.ts +0 -0
- package/lib/{label → types/label}/Label.d.ts +2 -2
- package/lib/{label → types/label}/index.d.ts +0 -0
- package/lib/{loading-spinner → types/loading-spinner}/LoadingSpinner.d.ts +0 -0
- package/lib/{loading-spinner → types/loading-spinner}/index.d.ts +0 -0
- package/lib/{popover → types/popover}/Popover.d.ts +0 -0
- package/lib/{popover → types/popover}/index.d.ts +0 -0
- package/lib/{progress-bar → types/progress-bar}/ProgressBar.d.ts +0 -0
- package/lib/{progress-bar → types/progress-bar}/index.d.ts +0 -0
- package/lib/{radio → types/radio}/Radio.d.ts +0 -0
- package/lib/{radio → types/radio}/index.d.ts +0 -0
- package/lib/{switch → types/switch}/Switch.d.ts +0 -0
- package/lib/{switch → types/switch}/index.d.ts +0 -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/{tabs → types/tabs}/Tabs.d.ts +0 -0
- package/lib/{tabs → types/tabs}/index.d.ts +0 -0
- package/lib/{tag → types/tag}/Tag.d.ts +0 -0
- package/lib/{tag → types/tag}/index.d.ts +0 -0
- package/lib/{tooltip → types/tooltip}/Tooltip.d.ts +0 -0
- package/lib/{tooltip → types/tooltip}/index.d.ts +0 -0
- package/lib/{view-selector → types/view-selector}/ViewSelector.d.ts +0 -0
- package/lib/{view-selector → types/view-selector}/index.d.ts +0 -0
- package/package.json +21 -10
- package/lib/alert/Alert.js +0 -121
- package/lib/alert/Alert.js.map +0 -1
- package/lib/alert/index.js.map +0 -1
- package/lib/button/Button.js +0 -112
- package/lib/button/Button.js.map +0 -1
- package/lib/button/index.js.map +0 -1
- package/lib/checkbox/Checkbox.js.map +0 -1
- package/lib/checkbox/index.js.map +0 -1
- package/lib/context-menu/ContextMenu.js.map +0 -1
- package/lib/context-menu/index.js.map +0 -1
- package/lib/helpers/debounce.js.map +0 -1
- package/lib/helpers/forwardRef.js.map +0 -1
- package/lib/helpers/index.js.map +0 -1
- package/lib/helpers/testing.js +0 -81
- package/lib/helpers/testing.js.map +0 -1
- package/lib/helpers/types.js.map +0 -1
- package/lib/icons/Custom.js.map +0 -1
- package/lib/icons/Hero.js +0 -89
- package/lib/icons/Hero.js.map +0 -1
- package/lib/icons/custom/Circle.js +0 -57
- package/lib/icons/custom/Circle.js.map +0 -1
- package/lib/icons/custom/DatabaseAddCircle.js +0 -57
- package/lib/icons/custom/DatabaseAddCircle.js.map +0 -1
- package/lib/icons/custom/Drag.js +0 -62
- package/lib/icons/custom/Drag.js.map +0 -1
- package/lib/icons/custom/Expand.js +0 -57
- package/lib/icons/custom/Expand.js.map +0 -1
- package/lib/icons/custom/ExternalLink.js +0 -57
- package/lib/icons/custom/ExternalLink.js.map +0 -1
- package/lib/icons/custom/FitToScreen.js +0 -57
- package/lib/icons/custom/FitToScreen.js.map +0 -1
- package/lib/icons/custom/FolderBookmark.js +0 -57
- package/lib/icons/custom/FolderBookmark.js.map +0 -1
- package/lib/icons/custom/Heirarchy2.js +0 -57
- package/lib/icons/custom/Heirarchy2.js.map +0 -1
- package/lib/icons/custom/Hierarchy1.js +0 -57
- package/lib/icons/custom/Hierarchy1.js.map +0 -1
- package/lib/icons/custom/Pin.js +0 -57
- package/lib/icons/custom/Pin.js.map +0 -1
- package/lib/icons/custom/Presentation.js +0 -57
- package/lib/icons/custom/Presentation.js.map +0 -1
- package/lib/icons/custom/Rhombus.js +0 -57
- package/lib/icons/custom/Rhombus.js.map +0 -1
- package/lib/icons/custom/Shrink.js +0 -57
- package/lib/icons/custom/Shrink.js.map +0 -1
- package/lib/icons/custom/Text.js +0 -57
- package/lib/icons/custom/Text.js.map +0 -1
- package/lib/icons/custom/Triangle.js +0 -57
- package/lib/icons/custom/Triangle.js.map +0 -1
- package/lib/icons/custom/index.js +0 -61
- package/lib/icons/custom/index.js.map +0 -1
- package/lib/icons/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/input/Input.js +0 -92
- package/lib/input/Input.js.map +0 -1
- package/lib/input/index.js.map +0 -1
- package/lib/label/Label.js +0 -103
- package/lib/label/Label.js.map +0 -1
- package/lib/label/index.js.map +0 -1
- package/lib/loading-spinner/LoadingSpinner.js.map +0 -1
- package/lib/loading-spinner/index.js.map +0 -1
- package/lib/popover/Popover.js.map +0 -1
- package/lib/popover/index.js.map +0 -1
- package/lib/progress-bar/ProgressBar.js +0 -64
- package/lib/progress-bar/ProgressBar.js.map +0 -1
- package/lib/progress-bar/index.js.map +0 -1
- package/lib/radio/Radio.js.map +0 -1
- package/lib/radio/index.js.map +0 -1
- package/lib/switch/Switch.js.map +0 -1
- package/lib/switch/index.js.map +0 -1
- package/lib/tabs/Tabs.js +0 -114
- package/lib/tabs/Tabs.js.map +0 -1
- package/lib/tabs/index.js.map +0 -1
- package/lib/tag/Tag.js.map +0 -1
- package/lib/tag/index.js.map +0 -1
- package/lib/tooltip/Tooltip.js.map +0 -1
- package/lib/tooltip/index.js.map +0 -1
- package/lib/view-selector/ViewSelector.js.map +0 -1
- package/lib/view-selector/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/alert/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) "Neo4j"
|
|
16
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
17
|
+
*
|
|
18
|
+
* This file is part of Neo4j.
|
|
19
|
+
*
|
|
20
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
21
|
+
* it under the terms of the GNU General Public License as published by
|
|
22
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
23
|
+
* (at your option) any later version.
|
|
24
|
+
*
|
|
25
|
+
* This program is distributed in the hope that it will be useful,
|
|
26
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
27
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
28
|
+
* GNU General Public License for more details.
|
|
29
|
+
*
|
|
30
|
+
* You should have received a copy of the GNU General Public License
|
|
31
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
32
|
+
*/
|
|
33
|
+
import React from 'react';
|
|
34
|
+
import classnames from 'classnames';
|
|
35
|
+
import { LoadingSpinner } from '../loading-spinner';
|
|
36
|
+
export const removeNewlines = (input) => input.replace(/(\r\n|\n|\r)/gm, '');
|
|
37
|
+
/** Remove extra spaces from sting */
|
|
38
|
+
export const removeSpaces = (input) => input.replace(/\s+/g, ' ').trim();
|
|
39
|
+
export const Button = React.forwardRef(function Button(_a, ref) {
|
|
40
|
+
var { children, as, type = 'button', loading = false, color = 'primary', disabled = false, fill = 'filled', rectangle = false, buttonSize = 'regular', className, onClick, tabIndex = 0 } = _a, props = __rest(_a, ["children", "as", "type", "loading", "color", "disabled", "fill", "rectangle", "buttonSize", "className", "onClick", "tabIndex"]);
|
|
41
|
+
let Component = as || 'button';
|
|
42
|
+
if (!as && props.href) {
|
|
43
|
+
Component = 'a';
|
|
44
|
+
}
|
|
45
|
+
const interactable = !disabled && !loading;
|
|
46
|
+
const classes = classnames(`ndl-btn ${fill} ${buttonSize}`, {
|
|
47
|
+
disabled: disabled,
|
|
48
|
+
loading: loading,
|
|
49
|
+
rectangle: rectangle,
|
|
50
|
+
/** Now check button is outlined or filled */
|
|
51
|
+
/**
|
|
52
|
+
* Notice:
|
|
53
|
+
* "Hover" here does not exist for "warning" and "success"
|
|
54
|
+
* and is custom for Neutral
|
|
55
|
+
*/
|
|
56
|
+
[`
|
|
57
|
+
${color === 'neutral'
|
|
58
|
+
? `n-bg-light-${color}-bg-strongest`
|
|
59
|
+
: `n-bg-light-${color}-bg-strong`}
|
|
60
|
+
${interactable && `hover:n-bg-light-${color}-hover-strong`}
|
|
61
|
+
`]: fill === 'filled',
|
|
62
|
+
[`
|
|
63
|
+
n-text-light-${color}-text
|
|
64
|
+
${interactable && `hover:n-bg-light-${color}-hover-weak`}
|
|
65
|
+
n-border-light-${color}-bg-strong
|
|
66
|
+
`]: fill === 'outlined' && color !== 'neutral',
|
|
67
|
+
/**
|
|
68
|
+
* Neutral needs overriding as it doesn't follow
|
|
69
|
+
* the same principles with colored variations
|
|
70
|
+
*/
|
|
71
|
+
[`
|
|
72
|
+
n-text-${color}-80
|
|
73
|
+
n-bg-${color}-10
|
|
74
|
+
${interactable && `hover:n-bg-${color}-20`}
|
|
75
|
+
n-border-${color}-60
|
|
76
|
+
`]: fill === 'outlined' && color === 'neutral',
|
|
77
|
+
[`
|
|
78
|
+
n-text-${color}-50
|
|
79
|
+
${interactable && `hover:n-bg-${color}-10`}
|
|
80
|
+
`]: fill === 'text' && color !== 'neutral',
|
|
81
|
+
[`
|
|
82
|
+
n-text-light-neutral-text-weak
|
|
83
|
+
${interactable && `hover:n-bg-light-neutral-bg-default`}
|
|
84
|
+
`]: fill === 'text' && color == 'neutral',
|
|
85
|
+
});
|
|
86
|
+
const sanitisedClasses = removeSpaces(removeNewlines(classes));
|
|
87
|
+
const handleClick = (e) => {
|
|
88
|
+
if (!interactable) {
|
|
89
|
+
// By default, a <button /> element with disabled set to true will not get its
|
|
90
|
+
// on click handler called. To support the same behavior on <a /> tags we
|
|
91
|
+
// swallow the event here when disabled, since the <a /> tag with disabled set to
|
|
92
|
+
// true will have its onClick handler called
|
|
93
|
+
e.preventDefault();
|
|
94
|
+
e.stopPropagation();
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (onClick) {
|
|
98
|
+
onClick(e);
|
|
99
|
+
}
|
|
100
|
+
else if (!props.href) {
|
|
101
|
+
console.error('onClick was not provided');
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
return (_jsxs(Component
|
|
105
|
+
/** First props and then className to avoid overriding in classNames */
|
|
106
|
+
, Object.assign({}, props, (Component === 'button' ? { type } : {}), { onClick: handleClick, disabled: !interactable, className: [sanitisedClasses, className].join(' '), ref: ref, tabIndex: !interactable ? -1 : tabIndex }, { children: [loading ? (_jsx(LoadingSpinner, { className: "n-my-auto n-mr-1", size: "small" })) : null, children] })));
|
|
107
|
+
});
|
|
108
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/button/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE,CAC9C,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;AAEtC,qCAAqC;AACrC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE,CAC5C,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AA8BpC,MAAM,CAAC,MAAM,MAA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P,QAAQ,KACC,CACb,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export * from './Button';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
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
|
+
import React from 'react';
|
|
23
|
+
import { Input } from '../input';
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* Helpers
|
|
28
|
+
*
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/** Add any helper functions here. */
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*
|
|
35
|
+
* Checkbox Component
|
|
36
|
+
*
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
const Checkbox = React.forwardRef((props, ref) => {
|
|
40
|
+
if (!props['aria-label'] && !props.label) {
|
|
41
|
+
console.warn('To be accesible the input component requires either `aria-label` or `label` prop: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI');
|
|
42
|
+
}
|
|
43
|
+
return _jsx(Input, Object.assign({}, props, { ref: ref, type: "checkbox", role: "checkbox" }));
|
|
44
|
+
});
|
|
45
|
+
Checkbox.displayName = 'Checkbox';
|
|
46
|
+
export default Checkbox;
|
|
47
|
+
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/checkbox/Checkbox.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC;;;;;;GAMG;AAEH,qCAAqC;AAErC;;;;;;GAMG;AAEH,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CAAC,KAAiB,EAAE,GAAyC,EAAE,EAAE;IAC/D,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;QACxC,OAAO,CAAC,IAAI,CACV,sJAAsJ,CACvJ,CAAC;KACH;IAED,OAAO,KAAC,KAAK,oBAAK,KAAK,IAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,UAAU,IAAG,CAAC;AACxE,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as Checkbox } from './Checkbox';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/checkbox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) "Neo4j"
|
|
16
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
17
|
+
*
|
|
18
|
+
* This file is part of Neo4j.
|
|
19
|
+
*
|
|
20
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
21
|
+
* it under the terms of the GNU General Public License as published by
|
|
22
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
23
|
+
* (at your option) any later version.
|
|
24
|
+
*
|
|
25
|
+
* This program is distributed in the hope that it will be useful,
|
|
26
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
27
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
28
|
+
* GNU General Public License for more details.
|
|
29
|
+
*
|
|
30
|
+
* You should have received a copy of the GNU General Public License
|
|
31
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
32
|
+
*/
|
|
33
|
+
import React, { forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useRef, } from 'react';
|
|
34
|
+
import { HeroIcon } from '../icons';
|
|
35
|
+
import { Popover } from '../popover';
|
|
36
|
+
import classnames from 'classnames';
|
|
37
|
+
const MenuContext = React.createContext(null);
|
|
38
|
+
const useMenuContext = () => {
|
|
39
|
+
const context = useContext(MenuContext);
|
|
40
|
+
if (context === null) {
|
|
41
|
+
throw new Error('Menu used without context. Did you render this component inside a <Menu />?');
|
|
42
|
+
}
|
|
43
|
+
return context;
|
|
44
|
+
};
|
|
45
|
+
export const Menu = forwardRef(function Menu(_a, ref) {
|
|
46
|
+
var { menuSize = 'small', className, minWidth = 250, open, onClose, children } = _a, rest = __rest(_a, ["menuSize", "className", "minWidth", "open", "onClose", "children"]);
|
|
47
|
+
const menuRef = useRef();
|
|
48
|
+
const focusFirstMenuItem = useCallback(() => {
|
|
49
|
+
const menu = menuRef.current;
|
|
50
|
+
if (!menu)
|
|
51
|
+
return;
|
|
52
|
+
const items = menu.querySelectorAll(':scope > .menu-items > .menu-item');
|
|
53
|
+
if (items.length === 0) {
|
|
54
|
+
menu.focus();
|
|
55
|
+
}
|
|
56
|
+
items[0].focus();
|
|
57
|
+
}, []);
|
|
58
|
+
// Override ref to map to internal ref
|
|
59
|
+
// as well as change focus to focus the
|
|
60
|
+
// first menu item
|
|
61
|
+
useImperativeHandle(ref, () => {
|
|
62
|
+
const menu = menuRef.current;
|
|
63
|
+
if (!menu) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
return Object.assign(Object.assign({}, menu), { focus: focusFirstMenuItem });
|
|
67
|
+
});
|
|
68
|
+
// Focus first menu item on open.
|
|
69
|
+
// This effect is separate from the above
|
|
70
|
+
// `setPositiongStyles` effect as the above
|
|
71
|
+
// is triggered on every render usually as
|
|
72
|
+
// anchorOrigin and transformOrigin
|
|
73
|
+
// are typically not memoized
|
|
74
|
+
useEffect(() => {
|
|
75
|
+
if (open) {
|
|
76
|
+
focusFirstMenuItem();
|
|
77
|
+
}
|
|
78
|
+
}, [open, focusFirstMenuItem]);
|
|
79
|
+
const classes = classnames('ndl-menu', menuSize, className);
|
|
80
|
+
return (_jsx(MenuContext.Provider, Object.assign({ value: { onClose } }, { children: _jsx(Popover, Object.assign({ tabIndex: -1 }, rest, { open: open, style: Object.assign({ minWidth }, (rest.style || {})), className: classes, ref: menuRef, onClose: onClose }, { children: children })) })));
|
|
81
|
+
});
|
|
82
|
+
const getMenuItem = (menuItems, iterator) => {
|
|
83
|
+
const activeElement = document.activeElement;
|
|
84
|
+
let newEl = iterator(menuItems, activeElement);
|
|
85
|
+
let menuItem = null;
|
|
86
|
+
// Iterate over next element until we find a menu item
|
|
87
|
+
// Iterate a maximum of 10 times looking for an element
|
|
88
|
+
for (let i = 0; i < 10; i++) {
|
|
89
|
+
// Can't find new element, break
|
|
90
|
+
if (!newEl) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
const role = newEl.getAttribute('role');
|
|
94
|
+
if (role === 'menuitem') {
|
|
95
|
+
menuItem = newEl;
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
newEl = iterator(menuItems, newEl);
|
|
99
|
+
}
|
|
100
|
+
return menuItem;
|
|
101
|
+
};
|
|
102
|
+
// Gets next sibling child of the menu items, looping at the end
|
|
103
|
+
const nextElement = (menuItems, currentEl) => {
|
|
104
|
+
if (currentEl === menuItems || !(currentEl === null || currentEl === void 0 ? void 0 : currentEl.nextElementSibling)) {
|
|
105
|
+
return menuItems.firstChild ? menuItems.firstChild : null;
|
|
106
|
+
}
|
|
107
|
+
else if (currentEl === null || currentEl === void 0 ? void 0 : currentEl.nextElementSibling) {
|
|
108
|
+
return currentEl.nextElementSibling;
|
|
109
|
+
}
|
|
110
|
+
return null;
|
|
111
|
+
};
|
|
112
|
+
// Gets prev sibling child of the menu items, looping at the top
|
|
113
|
+
const prevElement = (menuItems, currentEl) => {
|
|
114
|
+
if (currentEl === menuItems || !(currentEl === null || currentEl === void 0 ? void 0 : currentEl.previousElementSibling)) {
|
|
115
|
+
return menuItems.lastChild ? menuItems.lastChild : null;
|
|
116
|
+
}
|
|
117
|
+
else if (currentEl === null || currentEl === void 0 ? void 0 : currentEl.previousElementSibling) {
|
|
118
|
+
return currentEl.previousElementSibling;
|
|
119
|
+
}
|
|
120
|
+
return null;
|
|
121
|
+
};
|
|
122
|
+
export const MenuItems = forwardRef(function MenuItems(_a, ref) {
|
|
123
|
+
var { as = 'ul', children, className } = _a, rest = __rest(_a, ["as", "children", "className"]);
|
|
124
|
+
const menuItemsRef = useRef();
|
|
125
|
+
const { onClose } = useMenuContext();
|
|
126
|
+
const handleKeyDown = (event) => {
|
|
127
|
+
const menuItems = menuItemsRef.current;
|
|
128
|
+
if (!menuItems) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (event.key == 'ArrowDown') {
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
event.stopPropagation();
|
|
134
|
+
const newFocusedElement = getMenuItem(menuItems, nextElement);
|
|
135
|
+
newFocusedElement === null || newFocusedElement === void 0 ? void 0 : newFocusedElement.focus();
|
|
136
|
+
}
|
|
137
|
+
else if (event.key == 'ArrowUp') {
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
event.stopPropagation();
|
|
140
|
+
const newFocusedElement = getMenuItem(menuItems, prevElement);
|
|
141
|
+
newFocusedElement === null || newFocusedElement === void 0 ? void 0 : newFocusedElement.focus();
|
|
142
|
+
}
|
|
143
|
+
else if (event.key == 'Tab' || event.key == 'Escape') {
|
|
144
|
+
event.preventDefault();
|
|
145
|
+
onClose && onClose(event);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
useImperativeHandle(ref, () => menuItemsRef.current);
|
|
149
|
+
const Component = as;
|
|
150
|
+
const classes = classnames('menu-items', className);
|
|
151
|
+
return (_jsx(Component, Object.assign({ tabIndex: -1, onKeyDown: handleKeyDown, role: "menu" }, rest, { className: classes, ref: menuItemsRef }, { children: children })));
|
|
152
|
+
});
|
|
153
|
+
export const MenuItem = forwardRef(function MenuItem(_a, ref) {
|
|
154
|
+
var { as = 'li', icon, title, description, className, disabled = false, onClick, onKeyDown } = _a, rest = __rest(_a, ["as", "icon", "title", "description", "className", "disabled", "onClick", "onKeyDown"]);
|
|
155
|
+
const Component = as;
|
|
156
|
+
const classes = classnames(`menu-item n-flex n-flex-col`, className, {
|
|
157
|
+
disabled,
|
|
158
|
+
});
|
|
159
|
+
const handleClick = (e) => {
|
|
160
|
+
if (disabled) {
|
|
161
|
+
e.preventDefault();
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (onClick)
|
|
165
|
+
onClick(e);
|
|
166
|
+
};
|
|
167
|
+
const handleKeyDown = (e) => {
|
|
168
|
+
if (onKeyDown)
|
|
169
|
+
onKeyDown(e);
|
|
170
|
+
if (e.key === 'Enter') {
|
|
171
|
+
if (disabled) {
|
|
172
|
+
e.preventDefault();
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
if (onClick)
|
|
176
|
+
onClick(e);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
return (_jsxs(Component, Object.assign({ tabIndex: -1, role: "menuitem" }, rest, { className: classes, onClick: handleClick, onKeyDown: handleKeyDown, ref: ref }, { children: [_jsxs("div", Object.assign({ className: "n-flex n-items-center" }, { children: [icon && _jsx("div", Object.assign({ className: "menu-item-icon" }, { children: icon })), _jsx("div", Object.assign({ className: "menu-item-title" }, { children: title }))] })), description && (_jsx("div", Object.assign({ className: "menu-item-description" }, { children: description })))] })));
|
|
180
|
+
});
|
|
181
|
+
export const MenuHeader = forwardRef(function MenuHeader(_a, ref) {
|
|
182
|
+
var { as = 'div', title, description, className } = _a, rest = __rest(_a, ["as", "title", "description", "className"]);
|
|
183
|
+
const Component = as;
|
|
184
|
+
const { onClose } = useMenuContext();
|
|
185
|
+
const handleClose = (e) => onClose && onClose(e);
|
|
186
|
+
const classes = classnames('menu-header n-flex n-flex-col', className);
|
|
187
|
+
return (_jsxs(Component, Object.assign({}, rest, { className: classes, ref: ref }, { children: [_jsxs("div", Object.assign({ className: "n-flex n-justify-between n-items-center" }, { children: [_jsx("div", Object.assign({ className: "menu-header-title" }, { children: title })), _jsx("div", Object.assign({ tabIndex: 0, role: "button", onKeyDown: handleClose, onClick: handleClose, className: "menu-header-icon" }, { children: _jsx(HeroIcon, { iconName: "XIcon" }) }))] })), description && (_jsx("div", Object.assign({ className: "menu-header-description" }, { children: description })))] })));
|
|
188
|
+
});
|
|
189
|
+
//# sourceMappingURL=ContextMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../../src/context-menu/ContextMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,EACZ,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,MAAM,GACP,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,OAAO,EAAgB,MAAM,YAAY,CAAC;AACnD,OAAO,UAAU,MAAM,YAAY,CAAC;AAiBpC,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAyB,IAAI,CAAC,CAAC;AAEtE,MAAM,cAAc,GAAG,GAAG,EAAE;IAC1B,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IACxC,IAAI,OAAO,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,KAAK,CACb,6EAA6E,CAC9E,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAQF,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,IAAI,CAC1C,EAQmB,EACnB,GAAG;QATH,EACE,QAAQ,GAAG,OAAO,EAClB,SAAS,EACT,QAAQ,GAAG,GAAG,EACd,IAAI,EACJ,OAAO,EACP,QAAQ,OAES,EADd,IAAI,cAPT,oEAQC,CADQ;IAIT,MAAM,OAAO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,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;IAE3B,MAAM,OAAO,GAAG,UAAU,CAAC,+BAA+B,EAAE,SAAS,CAAC,CAAC;IAEvE,OAAO,CACL,MAAC,SAAS,oBAAK,IAAI,IAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,iBAC/C,6BAAK,SAAS,EAAC,yCAAyC,iBACtD,4BAAK,SAAS,EAAC,mBAAmB,gBAAE,KAAK,IAAO,EAChD,4BACE,QAAQ,EAAE,CAAC,EACX,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAC,kBAAkB,gBAE5B,KAAC,QAAQ,IAAC,QAAQ,EAAC,OAAO,GAAG,IACzB,KACF,EACL,WAAW,IAAI,CACd,4BAAK,SAAS,EAAC,yBAAyB,gBAAE,WAAW,IAAO,CAC7D,KACS,CACb,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export * from './ContextMenu';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context-menu/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import CloudImage from './icons/Cloud';
|
|
4
|
+
import FileImage from './icons/File';
|
|
5
|
+
import InvalidFileImage from './icons/InvalidFile';
|
|
6
|
+
import { useDropzone } from 'react-dropzone';
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* Helpers
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
/** Add any helper functions here. */
|
|
15
|
+
const isFileValid = (fileType, paramAcceptedFiles) => {
|
|
16
|
+
if (!paramAcceptedFiles)
|
|
17
|
+
return true;
|
|
18
|
+
const acceptedFileTypes = Array.isArray(paramAcceptedFiles)
|
|
19
|
+
? paramAcceptedFiles.join(',')
|
|
20
|
+
: paramAcceptedFiles;
|
|
21
|
+
return acceptedFileTypes.indexOf(fileType) > -1;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* DragAndDrop Component
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
*/ const DragAndDrop = (props) => {
|
|
30
|
+
var _a, _b, _c;
|
|
31
|
+
const { dropZoneOptions, supportedFilesDescription, loadingComponent, isTesting, } = props;
|
|
32
|
+
const { getRootProps, getInputProps, isDragActive, draggedFiles, acceptedFiles, } = useDropzone(Object.assign(Object.assign({
|
|
33
|
+
// If the developer does not pass this function, then the browser will automatically download the dragged file. To empty function avoids that.
|
|
34
|
+
onDrop: () => null }, dropZoneOptions), { disabled: (dropZoneOptions === null || dropZoneOptions === void 0 ? void 0 : dropZoneOptions.disabled) || !!loadingComponent }));
|
|
35
|
+
/**
|
|
36
|
+
* Returns the file extension, and if not supported
|
|
37
|
+
* returns "???" to be displayed in the file icon.
|
|
38
|
+
*/
|
|
39
|
+
const getFileTypeAbbr = (fileType) => {
|
|
40
|
+
var _a;
|
|
41
|
+
const isValid = isFileValid(fileType, dropZoneOptions === null || dropZoneOptions === void 0 ? void 0 : dropZoneOptions.accept);
|
|
42
|
+
if (!isValid) {
|
|
43
|
+
return '???';
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return (_a = fileType.split('/').slice(-1).pop()) === null || _a === void 0 ? void 0 : _a.toUpperCase();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const isDraggedFileValid = isDragActive &&
|
|
50
|
+
draggedFiles.length > 0 &&
|
|
51
|
+
isFileValid((_a = draggedFiles[0]) === null || _a === void 0 ? void 0 : _a.type, dropZoneOptions === null || dropZoneOptions === void 0 ? void 0 : dropZoneOptions.accept);
|
|
52
|
+
const isUploading = !!loadingComponent;
|
|
53
|
+
const computedFileImage = (isDragActive && isDraggedFileValid) || isUploading ? (_jsx(FileImage, {})) : (_jsx(InvalidFileImage, {}));
|
|
54
|
+
const wrapperClasses = classnames(`ndl-drag-and-drop`, {
|
|
55
|
+
'drag-active': isDragActive,
|
|
56
|
+
'file-invalid': isDragActive && !isDraggedFileValid,
|
|
57
|
+
});
|
|
58
|
+
return (_jsx("div", Object.assign({ className: wrapperClasses }, { children: _jsxs("div", Object.assign({}, getRootProps(), { style: { minWidth: 320 } }, { children: [_jsx("input", Object.assign({}, getInputProps())), _jsxs("div", Object.assign({ className: "ndl-drag-and-drop-inner" }, { children: [_jsxs("div", Object.assign({ className: "ndl-drag-and-drop-header" }, { children: [_jsxs("div", Object.assign({ className: "upload-img-wrapper" }, { children: [(isDragActive || isUploading) && !isTesting && (_jsx("span", Object.assign({ className: "upload-img-label" }, { children: getFileTypeAbbr(isUploading ? (_b = acceptedFiles[0]) === null || _b === void 0 ? void 0 : _b.type : (_c = draggedFiles[0]) === null || _c === void 0 ? void 0 : _c.type) }))), isUploading || isDragActive ? computedFileImage : _jsx(CloudImage, {})] })), !isUploading && (_jsxs("div", Object.assign({ className: "dnd-title-container" }, { children: [_jsxs("h5", Object.assign({ className: "dnd-title" }, { children: ["Drag ", _jsx("span", Object.assign({ className: "n-font-light" }, { children: "&" })), " Drop"] })), _jsxs("div", Object.assign({ className: "dnd-subtitle" }, { children: [_jsx("span", { children: "or" }), ' ', _jsx("span", Object.assign({ className: "dnd-browse-link" }, { children: "browse" }))] }))] })))] })), _jsxs("div", Object.assign({ className: "ndl-drag-and-drop-footer" }, { children: [isUploading && _jsx(_Fragment, { children: loadingComponent }), !isUploading && (_jsx("div", Object.assign({ className: "ndl-file-support-text" }, { children: supportedFilesDescription })))] }))] }))] })) })));
|
|
59
|
+
};
|
|
60
|
+
export default DragAndDrop;
|
|
61
|
+
//# sourceMappingURL=DragAndDrop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragAndDrop.js","sourceRoot":"","sources":["../../../src/drag-and-drop/DragAndDrop.tsx"],"names":[],"mappings":";AAsBA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAmB,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAwB9D;;;;;;GAMG;AAEH,qCAAqC;AAErC,MAAM,WAAW,GAAG,CAClB,QAAgB,EAChB,kBAA8C,EAC9C,EAAE;IACF,IAAI,CAAC,kBAAkB;QAAE,OAAO,IAAI,CAAC;IAErC,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC;QACzD,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAAG,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AI,CACf,4BAAK,SAAS,EAAC,uBAAuB,gBACnC,yBAAyB,IACtB,CACP,KACG,KACF,KACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const SvgComponent = (props) => (_jsxs("svg", Object.assign({ width: 63, height: 77, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [_jsx("path", { d: "M10 8.5a8 8 0 0 1 8-8h25.194a8 8 0 0 1 4.997 1.753L53.5 6.5l3.926 3.624A8 8 0 0 1 60 16.003V51.5a8 8 0 0 1-8 8H18a8 8 0 0 1-8-8v-43Z", fill: "#A3E2FF" }), _jsx("path", { d: "M43.5.5c1.618 0 3.188.55 4.452 1.562L53.5 6.5l4.296 3.965A6.852 6.852 0 0 1 60 15.5H47.5a4 4 0 0 1-4-4V.5Z", fill: "#7AD1FF" }), _jsx("path", { stroke: "#E6F8FF", strokeWidth: 3, strokeLinecap: "round", d: "M24.5 24h24M19.5 31h24M22.5 38h27M20.5 45h27" }), _jsx("rect", { y: 8.5, width: 32, height: 18, rx: 4, fill: "#006FD6" }), _jsx("path", { d: "M8.974 21.608c-.832 0-1.544-.176-2.136-.528a3.505 3.505 0 0 1-1.368-1.5c-.312-.648-.468-1.42-.468-2.316 0-.888.156-1.656.468-2.304a3.505 3.505 0 0 1 1.368-1.5c.592-.352 1.304-.528 2.136-.528.584 0 1.12.092 1.607.276.497.184.917.452 1.26.804l-.383.804a3.536 3.536 0 0 0-1.152-.744 3.431 3.431 0 0 0-1.308-.24c-.952 0-1.68.3-2.184.9-.504.6-.756 1.444-.756 2.532 0 1.096.252 1.944.756 2.544.504.6 1.232.9 2.184.9.48 0 .916-.076 1.308-.228.4-.16.784-.412 1.152-.756l.383.804a3.585 3.585 0 0 1-1.26.804 4.524 4.524 0 0 1-1.607.276Zm7.01 0a6.004 6.004 0 0 1-1.8-.252 4.17 4.17 0 0 1-1.393-.756l.348-.792a4.48 4.48 0 0 0 1.284.696c.448.152.968.228 1.56.228.72 0 1.252-.132 1.596-.396.352-.272.528-.628.528-1.068 0-.352-.128-.632-.384-.84-.248-.208-.668-.372-1.26-.492l-1.248-.252c-.752-.16-1.316-.42-1.692-.78-.368-.368-.552-.856-.552-1.464 0-.504.128-.944.384-1.32a2.596 2.596 0 0 1 1.092-.876c.464-.208 1-.312 1.608-.312.568 0 1.096.092 1.584.276.488.176.9.432 1.236.768l-.348.768a3.413 3.413 0 0 0-1.14-.708 3.76 3.76 0 0 0-1.344-.228c-.632 0-1.136.148-1.512.444a1.378 1.378 0 0 0-.564 1.152c0 .384.116.688.348.912.24.224.628.388 1.164.492l1.248.264c.808.168 1.404.424 1.788.768.392.336.588.796.588 1.38 0 .472-.128.888-.384 1.248-.248.36-.608.64-1.08.84-.464.2-1.016.3-1.656.3Zm7.157-.108-3.696-8.46h1.056l3.108 7.212 3.096-7.212h1.032l-3.708 8.46h-.888Z", fill: "#fff" }), _jsx("ellipse", { cx: 35, cy: 74, rx: 28, ry: 2.5, fill: "#018BFF", fillOpacity: 0.08 })] })));
|
|
3
|
+
export default SvgComponent;
|
|
4
|
+
//# sourceMappingURL=CSV-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSV-file.js","sourceRoot":"","sources":["../../../../src/drag-and-drop/icons/CSV-file.tsx"],"names":[],"mappings":";AAuBA,MAAM,YAAY,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACvD,6BACE,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,eAET,eACE,CAAC,EAAC,sIAAsI,EACxI,IAAI,EAAC,SAAS,GACd,EACF,eACE,CAAC,EAAC,4GAA4G,EAC9G,IAAI,EAAC,SAAS,GACd,EACF,eACE,MAAM,EAAC,SAAS,EAChB,WAAW,EAAE,CAAC,EACd,aAAa,EAAC,OAAO,EACrB,CAAC,EAAC,8CAA8C,GAChD,EACF,eAAM,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAC,SAAS,GAAG,EAC7D,eACE,CAAC,EAAC,y0CAAy0C,EAC30C,IAAI,EAAC,MAAM,GACX,EACF,kBACE,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,GAAG,EACP,IAAI,EAAC,SAAS,EACd,WAAW,EAAE,IAAI,GACjB,KACE,CACP,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const SvgComponent = (props) => (_jsxs("svg", Object.assign({ width: 112, height: 52, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [_jsx("mask", Object.assign({ id: "a", fill: "#fff" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M104.47 18.62c.236-.72.363-1.488.363-2.287a7.333 7.333 0 0 0-9.88-6.879A9.67 9.67 0 0 0 85.833 3c-5.004 0-9.12 3.803-9.616 8.677a7 7 0 0 0-7.362 7.544A9.333 9.333 0 0 0 72.833 37h29.334a9.333 9.333 0 0 0 9.333-9.333c0-4.36-2.989-8.022-7.03-9.047Z" }) })), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M104.47 18.62c.236-.72.363-1.488.363-2.287a7.333 7.333 0 0 0-9.88-6.879A9.67 9.67 0 0 0 85.833 3c-5.004 0-9.12 3.803-9.616 8.677a7 7 0 0 0-7.362 7.544A9.333 9.333 0 0 0 72.833 37h29.334a9.333 9.333 0 0 0 9.333-9.333c0-4.36-2.989-8.022-7.03-9.047Z", fill: "#E6E9EE" }), _jsx("path", { d: "m104.47 18.62-.246.969-1.038-.263.334-1.018.95.312Zm-9.517-9.166.348.938-.953.353-.338-.958.943-.333Zm-18.736 2.223.995.101-.097.949-.952-.052.054-.998Zm-7.362 7.544.997-.078.054.688-.624.295-.427-.905Zm34.665-.913c.203-.62.313-1.283.313-1.975h2a8.31 8.31 0 0 1-.413 2.598l-1.9-.623Zm.313-1.975A6.333 6.333 0 0 0 97.5 10V8a8.333 8.333 0 0 1 8.333 8.333h-2ZM97.5 10c-.775 0-1.516.139-2.2.392l-.694-1.875A8.318 8.318 0 0 1 97.5 8v2Zm-3.49-.213A8.67 8.67 0 0 0 85.833 4V2c4.65 0 8.603 2.975 10.064 7.122l-1.887.665ZM85.833 4a8.668 8.668 0 0 0-8.621 7.778l-1.99-.202C75.769 6.196 80.31 2 85.833 2v2Zm-9.67 8.675a6.087 6.087 0 0 0-.33-.008v-2c.147 0 .293.004.438.011l-.108 1.997Zm-.33-.008a6 6 0 0 0-6 6h-2a8 8 0 0 1 8-8v2Zm-6 6c0 .16.007.319.02.476l-1.995.156a8.083 8.083 0 0 1-.025-.632h2Zm-.551 1.459a8.334 8.334 0 0 0-4.782 7.54h-2c0-4.132 2.427-7.697 5.928-9.35l.854 1.81Zm-4.782 7.54A8.333 8.333 0 0 0 72.833 36v2C67.126 38 62.5 33.374 62.5 27.667h2ZM72.833 36h29.334v2H72.833v-2Zm29.334 0a8.333 8.333 0 0 0 8.333-8.333h2c0 5.707-4.626 10.333-10.333 10.333v-2Zm8.333-8.333a8.337 8.337 0 0 0-6.276-8.078l.492-1.938c4.474 1.135 7.784 5.188 7.784 10.016h-2Z", fill: "#fff", mask: "url(#a)" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.85 18.72a3 3 0 0 0-5.71 1.14 4.866 4.866 0 0 0-5.695 6.442A5.455 5.455 0 0 0 5.954 37h22.727a5.455 5.455 0 0 0 .926-10.83 5.098 5.098 0 0 0-6.596-6.16 4.002 4.002 0 0 0-7.162-1.29Z", fill: "#E6E9EE" }), _jsx("mask", Object.assign({ id: "b", fill: "#fff" }, { children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M26.045 24.43A10.99 10.99 0 0 1 25.5 21c0-6.075 4.925-11 11-11 1.343 0 2.63.24 3.82.681C42.306 5.041 47.68 1 54 1c7.507 0 13.681 5.705 14.425 13.015.19-.01.382-.015.575-.015 5.799 0 10.5 4.701 10.5 10.5 0 .28-.011.557-.032.832C84.215 27.572 87.5 32.402 87.5 38c0 7.732-6.268 14-14 14h-44c-7.732 0-14-6.268-14-14 0-6.54 4.484-12.032 10.545-13.57Z" }) })), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M26.045 24.43A10.99 10.99 0 0 1 25.5 21c0-6.075 4.925-11 11-11 1.343 0 2.63.24 3.82.681C42.306 5.041 47.68 1 54 1c7.507 0 13.681 5.705 14.425 13.015.19-.01.382-.015.575-.015 5.799 0 10.5 4.701 10.5 10.5 0 .28-.011.557-.032.832C84.215 27.572 87.5 32.402 87.5 38c0 7.732-6.268 14-14 14h-44c-7.732 0-14-6.268-14-14 0-6.54 4.484-12.032 10.545-13.57Z", fill: "#E6E9EE" }), _jsx("path", { d: "m26.045 24.43.492 1.938 2.076-.527-.667-2.035-1.9.623ZM40.32 10.68l-.695 1.876 1.906.706.675-1.917-1.886-.665Zm28.105 3.335-1.99.202.193 1.897 1.905-.102-.108-1.998Zm11.043 11.316-1.994-.156-.108 1.376 1.248.589.853-1.81Zm-51.522-1.526A8.99 8.99 0 0 1 27.5 21h-4c0 1.412.226 2.775.645 4.053l3.8-1.247ZM27.5 21a9 9 0 0 1 9-9V8c-7.18 0-13 5.82-13 13h4Zm9-9c1.102 0 2.154.197 3.125.557l1.39-3.751A12.978 12.978 0 0 0 36.5 8v4Zm5.706-.654C43.92 6.482 48.556 3 54 3v-4c-7.194 0-13.307 4.602-15.566 11.017l3.772 1.329ZM54 3c6.47 0 11.794 4.918 12.435 11.218l3.98-.405C69.568 5.492 62.544-1 54-1v4Zm14.533 13.013c.154-.009.31-.013.467-.013v-4c-.229 0-.457.006-.683.018l.216 3.995ZM69 16a8.5 8.5 0 0 1 8.5 8.5h4C81.5 17.596 75.904 12 69 12v4Zm8.5 8.5c0 .228-.009.453-.026.676l3.987.312c.026-.326.039-.656.039-.988h-4Zm1.114 2.64A12.002 12.002 0 0 1 85.5 38h4c0-6.4-3.758-11.919-9.179-14.477l-1.707 3.618ZM85.5 38c0 6.627-5.373 12-12 12v4c8.837 0 16-7.163 16-16h-4Zm-12 12h-44v4h44v-4Zm-44 0c-6.627 0-12-5.373-12-12h-4c0 8.837 7.163 16 16 16v-4Zm-12-12c0-5.603 3.841-10.313 9.037-11.632l-.984-3.877C18.626 24.249 13.5 30.523 13.5 38h4Z", fill: "#fff", mask: "url(#b)" }), _jsx("rect", { x: 70.5, y: 8, width: 3, height: 3, rx: 1.5, fill: "#E6E9EE" }), _jsx("rect", { x: 35.5, width: 6, height: 6, rx: 3, fill: "#E6E9EE" }), _jsx("path", { d: "m58.5 30-6-6m0 0-6 6m6-6v18", stroke: "#fff", strokeWidth: 4, strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
3
|
+
export default SvgComponent;
|
|
4
|
+
//# sourceMappingURL=Cloud.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cloud.js","sourceRoot":"","sources":["../../../../src/drag-and-drop/icons/Cloud.tsx"],"names":[],"mappings":";AAuBA,MAAM,YAAY,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACvD,6BACE,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,EAAE,EACV,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,eAET,6BAAM,EAAE,EAAC,GAAG,EAAC,IAAI,EAAC,MAAM,gBACtB,eACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,wPAAwP,GAC1P,IACG,EACP,eACE,QAA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: 45, height: 53, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [_jsx("path", { d: "M0 8.5a8 8 0 0 1 8-8h20.923a8 8 0 0 1 4.997 1.753l4.419 3.535L41.494 8.7a8 8 0 0 1 2.574 5.879V44.5a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8v-36Z", fill: "#A3E2FF" }), _jsx("path", { d: "M29.525.5c1.427 0 2.81.485 3.924 1.376l4.89 3.912 3.786 3.495a6.04 6.04 0 0 1 1.943 4.437H33.525a4 4 0 0 1-4-4V.5Z", fill: "#7AD1FF" }), _jsx("path", { stroke: "#E6F8FF", strokeWidth: 3, strokeLinecap: "round", d: "M12.958 21.034h20.796M8.551 27.203h20.797M11.195 33.373h23.441M9.432 39.542h23.441" })] })));
|
|
3
|
+
export default SvgComponent;
|
|
4
|
+
//# sourceMappingURL=File.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.js","sourceRoot":"","sources":["../../../../src/drag-and-drop/icons/File.tsx"],"names":[],"mappings":";AAuBA,MAAM,YAAY,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACvD,6BACE,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,eAET,eACE,CAAC,EAAC,wIAAwI,EAC1I,IAAI,EAAC,SAAS,GACd,EACF,eACE,CAAC,EAAC,oHAAoH,EACtH,IAAI,EAAC,SAAS,GACd,EACF,eACE,MAAM,EAAC,SAAS,EAChB,WAAW,EAAE,CAAC,EACd,aAAa,EAAC,OAAO,EACrB,CAAC,EAAC,oFAAoF,GACtF,KACE,CACP,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const SvgComponent = (props) => (_jsxs("svg", Object.assign({ width: 45, height: 52, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [_jsx("path", { d: "M.814 8a8 8 0 0 1 8-8h20.922a8 8 0 0 1 4.998 1.753l4.419 3.535L42.308 8.2a8 8 0 0 1 2.573 5.879V44a8 8 0 0 1-8 8H8.814a8 8 0 0 1-8-8V8Z", fill: "#FFB8C4" }), _jsx("path", { d: "M30.339 0c1.426 0 2.81.485 3.924 1.376l4.89 3.912 3.785 3.495a6.04 6.04 0 0 1 1.943 4.437H34.34a4 4 0 0 1-4-4V0Z", fill: "#FF668A" }), _jsx("path", { stroke: "#FFE6E9", strokeWidth: 3, strokeLinecap: "round", d: "M13.771 20.534h20.797M9.364 26.703h20.797M12.008 32.873h23.441M10.246 39.042h23.44" })] })));
|
|
3
|
+
export default SvgComponent;
|
|
4
|
+
//# sourceMappingURL=InvalidFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidFile.js","sourceRoot":"","sources":["../../../../src/drag-and-drop/icons/InvalidFile.tsx"],"names":[],"mappings":";AAuBA,MAAM,YAAY,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACvD,6BACE,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK,eAET,eACE,CAAC,EAAC,yIAAyI,EAC3I,IAAI,EAAC,SAAS,GACd,EACF,eACE,CAAC,EAAC,kHAAkH,EACpH,IAAI,EAAC,SAAS,GACd,EACF,eACE,MAAM,EAAC,SAAS,EAChB,WAAW,EAAE,CAAC,EACd,aAAa,EAAC,OAAO,EACrB,CAAC,EAAC,oFAAoF,GACtF,KACE,CACP,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as DragAndDrop } from './DragAndDrop';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drag-and-drop/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
|