@neo4j-ndl/react 1.10.7 → 2.0.0-alpha-3f8358d
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/LICENSES.txt +2105 -67
- package/lib/NOTICE.txt +32 -31
- package/lib/cjs/_common/CodeBlockWrapper.js +6 -6
- package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +1 -1
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/cjs/accordion/Accordion.js +10 -9
- package/lib/cjs/accordion/Accordion.js.map +1 -1
- package/lib/cjs/banner/Banner.js +10 -7
- package/lib/cjs/banner/Banner.js.map +1 -1
- package/lib/cjs/button/Button.js +1 -1
- package/lib/cjs/button/Button.js.map +1 -1
- package/lib/cjs/button/IconButton.js +1 -1
- package/lib/cjs/button/IconButton.js.map +1 -1
- package/lib/cjs/button/IconButtonArray.js +1 -1
- package/lib/cjs/button/IconButtonArray.js.map +1 -1
- package/lib/cjs/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/code-block/CodeBlock.js +3 -3
- package/lib/cjs/code-block/CodeBlock.js.map +1 -1
- package/lib/cjs/context-menu/ContextMenu.js +34 -20
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
- package/lib/cjs/context-menu/SafeArea.js +6 -6
- package/lib/cjs/context-menu/SafeArea.js.map +1 -1
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js +1 -1
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +1 -1
- package/lib/cjs/data-grid/Components.js +364 -0
- package/lib/cjs/data-grid/Components.js.map +1 -0
- package/lib/cjs/data-grid/DataGrid.js +98 -0
- package/lib/cjs/data-grid/DataGrid.js.map +1 -0
- package/lib/cjs/{table-deprecated/hooks/hookCallbackTypes.js → data-grid/DataGridContext.js} +12 -1
- package/lib/cjs/data-grid/DataGridContext.js.map +1 -0
- package/lib/cjs/data-grid/helpers.js +94 -0
- package/lib/cjs/data-grid/helpers.js.map +1 -0
- package/lib/cjs/data-grid/index.js +57 -0
- package/lib/cjs/data-grid/index.js.map +1 -0
- package/lib/cjs/date-picker/DatePicker.js +5 -5
- package/lib/cjs/date-picker/DatePicker.js.map +1 -1
- package/lib/cjs/dialog/Dialog.js +10 -9
- package/lib/cjs/dialog/Dialog.js.map +1 -1
- package/lib/cjs/drawer/Drawer.js +6 -6
- package/lib/cjs/drawer/Drawer.js.map +1 -1
- package/lib/cjs/dropdown/Dropdown.js +17 -17
- package/lib/cjs/dropdown/Dropdown.js.map +1 -1
- package/lib/cjs/dropdown/Overrides.js +4 -4
- package/lib/cjs/dropdown/Overrides.js.map +1 -1
- package/lib/cjs/{drag-and-drop/DragAndDrop.js → dropzone/Dropzone.js} +7 -14
- package/lib/cjs/dropzone/Dropzone.js.map +1 -0
- package/lib/cjs/dropzone/icons/CSV-file.js.map +1 -0
- package/lib/cjs/dropzone/icons/Cloud.js +27 -0
- package/lib/cjs/dropzone/icons/Cloud.js.map +1 -0
- package/lib/cjs/{drag-and-drop → dropzone}/icons/File.js +1 -1
- package/lib/cjs/dropzone/icons/File.js.map +1 -0
- package/lib/cjs/{drag-and-drop → dropzone}/icons/InvalidFile.js +1 -1
- package/lib/cjs/dropzone/icons/InvalidFile.js.map +1 -0
- package/lib/cjs/{drag-and-drop → dropzone}/index.js +3 -3
- package/lib/cjs/dropzone/index.js.map +1 -0
- package/lib/cjs/graph-label/GraphLabel.js +11 -11
- package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
- package/lib/cjs/graph-label/color.js +8 -8
- package/lib/cjs/graph-label/color.js.map +1 -1
- package/lib/cjs/icons/generated/custom/NomLevel.js +1 -1
- package/lib/cjs/icons/generated/custom/NomLevel.js.map +1 -1
- package/lib/cjs/icons/generated/custom/Underline.js +1 -1
- package/lib/cjs/icons/generated/custom/Underline.js.map +1 -1
- package/lib/cjs/index.js +5 -4
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/label/Label.js +17 -8
- package/lib/cjs/label/Label.js.map +1 -1
- package/lib/cjs/loading-spinner/LoadingSpinner.js +1 -1
- package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/cjs/modal/Modal.js +6 -19
- package/lib/cjs/modal/Modal.js.map +1 -1
- package/lib/cjs/popover/Popover.js +8 -4
- package/lib/cjs/popover/Popover.js.map +1 -1
- package/lib/cjs/progress-bar/ProgressBar.js +1 -1
- package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
- package/lib/cjs/{view-selector/ViewSelector.js → segmented-control/SegmentedControl.js} +21 -14
- package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -0
- package/lib/cjs/{table-deprecated/hooks → segmented-control}/index.js +1 -3
- package/lib/cjs/segmented-control/index.js.map +1 -0
- package/lib/cjs/side-navigation/SideNavigation.js +22 -36
- package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
- package/lib/cjs/status-indicator/StatusIndicator.js +5 -5
- package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/cjs/table/Components.js +18 -20
- package/lib/cjs/table/Components.js.map +1 -1
- package/lib/cjs/table/Table.js +11 -3
- package/lib/cjs/table/Table.js.map +1 -1
- package/lib/cjs/tabs/Tabs.js +18 -7
- package/lib/cjs/tabs/Tabs.js.map +1 -1
- package/lib/cjs/tag/Tag.js +1 -1
- package/lib/cjs/tag/Tag.js.map +1 -1
- package/lib/cjs/text-input/TextInput.js +3 -4
- package/lib/cjs/text-input/TextInput.js.map +1 -1
- package/lib/cjs/textarea/Textarea.js +3 -4
- package/lib/cjs/textarea/Textarea.js.map +1 -1
- package/lib/cjs/theme/ThemeProvider.js +99 -0
- package/lib/cjs/theme/ThemeProvider.js.map +1 -0
- package/lib/cjs/{view-selector → theme}/index.js +1 -1
- package/lib/cjs/theme/index.js.map +1 -0
- package/lib/cjs/tip/Tip.js +193 -0
- package/lib/cjs/tip/Tip.js.map +1 -0
- package/lib/cjs/{tooltip → tip}/Tooltip.js +1 -1
- package/lib/cjs/tip/Tooltip.js.map +1 -0
- package/lib/cjs/{table-deprecated → tip}/index.js +4 -4
- package/lib/cjs/tip/index.js.map +1 -0
- package/lib/cjs/typography/Typography.js +1 -1
- package/lib/cjs/typography/Typography.js.map +1 -1
- package/lib/cjs/widget/Widget.js +1 -1
- package/lib/cjs/widget/Widget.js.map +1 -1
- package/lib/cjs/wizard/Wizard.js +6 -6
- package/lib/cjs/wizard/Wizard.js.map +1 -1
- package/lib/esm/_common/CodeBlockWrapper.js +6 -6
- package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +1 -1
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/esm/accordion/Accordion.js +11 -12
- package/lib/esm/accordion/Accordion.js.map +1 -1
- package/lib/esm/banner/Banner.js +9 -5
- package/lib/esm/banner/Banner.js.map +1 -1
- package/lib/esm/button/Button.js +1 -1
- package/lib/esm/button/Button.js.map +1 -1
- package/lib/esm/button/IconButton.js +1 -1
- package/lib/esm/button/IconButton.js.map +1 -1
- package/lib/esm/button/IconButtonArray.js +1 -1
- package/lib/esm/button/IconButtonArray.js.map +1 -1
- package/lib/esm/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/code-block/CodeBlock.js +3 -3
- package/lib/esm/code-block/CodeBlock.js.map +1 -1
- package/lib/esm/context-menu/ContextMenu.js +33 -19
- package/lib/esm/context-menu/ContextMenu.js.map +1 -1
- package/lib/esm/context-menu/SafeArea.js +6 -6
- package/lib/esm/context-menu/SafeArea.js.map +1 -1
- package/lib/esm/cypher-code-block/CypherCodeBlock.js +1 -1
- package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +1 -1
- package/lib/esm/data-grid/Components.js +339 -0
- package/lib/esm/data-grid/Components.js.map +1 -0
- package/lib/esm/data-grid/DataGrid.js +92 -0
- package/lib/esm/data-grid/DataGrid.js.map +1 -0
- package/lib/esm/{table-deprecated/hooks/index.js → data-grid/DataGridContext.js} +10 -4
- package/lib/esm/data-grid/DataGridContext.js.map +1 -0
- package/lib/esm/data-grid/helpers.js +88 -0
- package/lib/esm/data-grid/helpers.js.map +1 -0
- package/lib/esm/{drag-and-drop → data-grid}/index.js +4 -1
- package/lib/esm/data-grid/index.js.map +1 -0
- package/lib/esm/date-picker/DatePicker.js +5 -5
- package/lib/esm/date-picker/DatePicker.js.map +1 -1
- package/lib/esm/dialog/Dialog.js +9 -8
- package/lib/esm/dialog/Dialog.js.map +1 -1
- package/lib/esm/drawer/Drawer.js +6 -6
- package/lib/esm/drawer/Drawer.js.map +1 -1
- package/lib/esm/dropdown/Dropdown.js +17 -17
- package/lib/esm/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/dropdown/Overrides.js +4 -4
- package/lib/esm/dropdown/Overrides.js.map +1 -1
- package/lib/esm/{drag-and-drop/DragAndDrop.js → dropzone/Dropzone.js} +7 -14
- package/lib/esm/dropzone/Dropzone.js.map +1 -0
- package/lib/esm/dropzone/icons/CSV-file.js.map +1 -0
- package/lib/esm/dropzone/icons/Cloud.js +25 -0
- package/lib/esm/dropzone/icons/Cloud.js.map +1 -0
- package/lib/esm/dropzone/icons/File.js +25 -0
- package/lib/esm/dropzone/icons/File.js.map +1 -0
- package/lib/esm/dropzone/icons/InvalidFile.js +25 -0
- package/lib/esm/dropzone/icons/InvalidFile.js.map +1 -0
- package/lib/{types/table-deprecated/index.d.ts → esm/dropzone/index.js} +2 -2
- package/lib/esm/dropzone/index.js.map +1 -0
- package/lib/esm/graph-label/GraphLabel.js +11 -11
- package/lib/esm/graph-label/GraphLabel.js.map +1 -1
- package/lib/esm/graph-label/color.js +8 -8
- package/lib/esm/graph-label/color.js.map +1 -1
- package/lib/esm/icons/generated/custom/NomLevel.js +1 -1
- package/lib/esm/icons/generated/custom/NomLevel.js.map +1 -1
- package/lib/esm/icons/generated/custom/Underline.js +1 -1
- package/lib/esm/icons/generated/custom/Underline.js.map +1 -1
- package/lib/esm/index.js +5 -4
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/label/Label.js +17 -8
- package/lib/esm/label/Label.js.map +1 -1
- package/lib/esm/loading-spinner/LoadingSpinner.js +1 -1
- package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/esm/modal/Modal.js +6 -18
- package/lib/esm/modal/Modal.js.map +1 -1
- package/lib/esm/popover/Popover.js +8 -4
- package/lib/esm/popover/Popover.js.map +1 -1
- package/lib/esm/progress-bar/ProgressBar.js +1 -1
- package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
- package/lib/esm/{view-selector/ViewSelector.js → segmented-control/SegmentedControl.js} +21 -14
- package/lib/esm/segmented-control/SegmentedControl.js.map +1 -0
- package/lib/esm/segmented-control/index.js +22 -0
- package/lib/esm/segmented-control/index.js.map +1 -0
- package/lib/esm/side-navigation/SideNavigation.js +21 -12
- package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
- package/lib/esm/status-indicator/StatusIndicator.js +5 -5
- package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/esm/table/Components.js +18 -20
- package/lib/esm/table/Components.js.map +1 -1
- package/lib/esm/table/Table.js +11 -3
- package/lib/esm/table/Table.js.map +1 -1
- package/lib/esm/tabs/Tabs.js +18 -7
- package/lib/esm/tabs/Tabs.js.map +1 -1
- package/lib/esm/tag/Tag.js +1 -1
- package/lib/esm/tag/Tag.js.map +1 -1
- package/lib/esm/text-input/TextInput.js +4 -5
- package/lib/esm/text-input/TextInput.js.map +1 -1
- package/lib/esm/textarea/Textarea.js +4 -5
- package/lib/esm/textarea/Textarea.js.map +1 -1
- package/lib/esm/theme/ThemeProvider.js +68 -0
- package/lib/esm/theme/ThemeProvider.js.map +1 -0
- package/lib/esm/{view-selector → theme}/index.js +1 -1
- package/lib/esm/theme/index.js.map +1 -0
- package/lib/esm/tip/Tip.js +183 -0
- package/lib/esm/tip/Tip.js.map +1 -0
- package/lib/esm/{tooltip → tip}/Tooltip.js +1 -1
- package/lib/esm/tip/Tooltip.js.map +1 -0
- package/lib/{types/tooltip/index.d.ts → esm/tip/index.js} +2 -2
- package/lib/esm/tip/index.js.map +1 -0
- package/lib/esm/typography/Typography.js +1 -1
- package/lib/esm/typography/Typography.js.map +1 -1
- package/lib/esm/widget/Widget.js +1 -1
- package/lib/esm/widget/Widget.js.map +1 -1
- package/lib/esm/wizard/Wizard.js +6 -6
- package/lib/esm/wizard/Wizard.js.map +1 -1
- package/lib/types/_common/coditionalWrap.d.ts +2 -2
- package/lib/types/accordion/Accordion.d.ts +12 -11
- package/lib/types/banner/Banner.d.ts +14 -10
- package/lib/types/button/Button.d.ts +1 -1
- package/lib/types/code-block/languages.d.ts +1 -1
- package/lib/types/context-menu/ContextMenu.d.ts +18 -18
- package/lib/types/context-menu/SafeArea.d.ts +1 -1
- package/lib/types/data-grid/Components.d.ts +94 -0
- package/lib/types/data-grid/DataGrid.d.ts +90 -0
- package/lib/types/data-grid/DataGridContext.d.ts +62 -0
- package/lib/types/{table-deprecated → data-grid}/helpers.d.ts +15 -21
- package/lib/types/{table-deprecated/hooks → data-grid}/index.d.ts +5 -3
- package/lib/types/dialog/Dialog.d.ts +12 -12
- package/lib/types/drawer/Drawer.d.ts +9 -9
- package/lib/types/dropdown/Overrides.d.ts +4 -5
- package/lib/types/dropdown/types.d.ts +5 -5
- package/lib/types/{drag-and-drop/DragAndDrop.d.ts → dropzone/Dropzone.d.ts} +4 -11
- package/lib/types/{drag-and-drop → dropzone}/icons/CSV-file.d.ts +1 -1
- package/lib/types/{drag-and-drop → dropzone}/icons/Cloud.d.ts +1 -1
- package/lib/types/{drag-and-drop → dropzone}/icons/File.d.ts +1 -1
- package/lib/types/{drag-and-drop → dropzone}/icons/InvalidFile.d.ts +1 -1
- package/lib/types/{drag-and-drop → dropzone}/index.d.ts +1 -1
- package/lib/types/graph-label/color.d.ts +3 -3
- package/lib/types/helpers/forwardRef.d.ts +7 -1
- package/lib/types/helpers/types.d.ts +1 -1
- package/lib/types/icons/generated/custom/AddNode.d.ts +1 -1
- package/lib/types/icons/generated/custom/AlignBottom.d.ts +1 -1
- package/lib/types/icons/generated/custom/AlignCenter.d.ts +1 -1
- package/lib/types/icons/generated/custom/AlignTop.d.ts +1 -1
- package/lib/types/icons/generated/custom/Bold.d.ts +1 -1
- package/lib/types/icons/generated/custom/Circle.d.ts +1 -1
- package/lib/types/icons/generated/custom/CollapseExpand.d.ts +1 -1
- package/lib/types/icons/generated/custom/CollapseExpandLeft.d.ts +1 -1
- package/lib/types/icons/generated/custom/CollapseExpandRight.d.ts +1 -1
- package/lib/types/icons/generated/custom/Configure.d.ts +1 -1
- package/lib/types/icons/generated/custom/DatabaseAddCircle.d.ts +1 -1
- package/lib/types/icons/generated/custom/Dbms.d.ts +1 -1
- package/lib/types/icons/generated/custom/Drag.d.ts +1 -1
- package/lib/types/icons/generated/custom/Expand.d.ts +1 -1
- package/lib/types/icons/generated/custom/ExternalLink.d.ts +1 -1
- package/lib/types/icons/generated/custom/FitToScreen.d.ts +1 -1
- package/lib/types/icons/generated/custom/FolderBookmark.d.ts +1 -1
- package/lib/types/icons/generated/custom/Heirarchy2.d.ts +1 -1
- package/lib/types/icons/generated/custom/Hierarchy1.d.ts +1 -1
- package/lib/types/icons/generated/custom/Hierarchy2.d.ts +1 -1
- package/lib/types/icons/generated/custom/Italic.d.ts +1 -1
- package/lib/types/icons/generated/custom/NomLevel.d.ts +1 -1
- package/lib/types/icons/generated/custom/Pin.d.ts +1 -1
- package/lib/types/icons/generated/custom/PlanView.d.ts +1 -1
- package/lib/types/icons/generated/custom/Presentation.d.ts +1 -1
- package/lib/types/icons/generated/custom/QueryBrowser.d.ts +1 -1
- package/lib/types/icons/generated/custom/ResizeCorner.d.ts +1 -1
- package/lib/types/icons/generated/custom/Rhombus.d.ts +1 -1
- package/lib/types/icons/generated/custom/ScienceMolecule.d.ts +1 -1
- package/lib/types/icons/generated/custom/Shrink.d.ts +1 -1
- package/lib/types/icons/generated/custom/SidebarLineLeft.d.ts +1 -1
- package/lib/types/icons/generated/custom/SidebarLineRight.d.ts +1 -1
- package/lib/types/icons/generated/custom/Square.d.ts +1 -1
- package/lib/types/icons/generated/custom/Status.d.ts +1 -1
- package/lib/types/icons/generated/custom/Text.d.ts +1 -1
- package/lib/types/icons/generated/custom/Triangle.d.ts +1 -1
- package/lib/types/icons/generated/custom/Underline.d.ts +1 -1
- package/lib/types/icons/generated/custom/VisualizeBloom.d.ts +1 -1
- package/lib/types/index.d.ts +5 -4
- package/lib/types/loading-spinner/LoadingSpinner.d.ts +1 -1
- package/lib/types/modal/Modal.d.ts +13 -6
- package/lib/types/popover/Popover.d.ts +11 -5
- package/lib/types/{view-selector/ViewSelector.d.ts → segmented-control/SegmentedControl.d.ts} +13 -19
- package/lib/{esm/table-deprecated/hooks/hookCallbackTypes.js → types/segmented-control/index.d.ts} +1 -2
- package/lib/types/side-navigation/SideNavigation.d.ts +13 -12
- package/lib/types/table/Components.d.ts +18 -18
- package/lib/types/table/Table.d.ts +23 -19
- package/lib/types/table/TableContext.d.ts +1 -1
- package/lib/types/tabs/Tabs.d.ts +8 -7
- package/lib/types/tag/Tag.d.ts +1 -1
- package/lib/types/text-input/TextInput.d.ts +5 -5
- package/lib/types/textarea/Textarea.d.ts +4 -4
- package/lib/types/theme/ThemeProvider.d.ts +54 -0
- package/lib/types/{view-selector → theme}/index.d.ts +1 -1
- package/lib/types/tip/Tip.d.ts +166 -0
- package/lib/types/{tooltip → tip}/Tooltip.d.ts +1 -1
- package/lib/types/tip/index.d.ts +22 -0
- package/lib/types/typography/Typography.d.ts +1 -2
- package/lib/types/typography/types.d.ts +6 -6
- package/lib/types/widget/Widget.d.ts +1 -1
- package/lib/types/wizard/Wizard.d.ts +4 -4
- package/package.json +19 -20
- package/CHANGELOG.md +0 -1273
- package/lib/cjs/drag-and-drop/DragAndDrop.js.map +0 -1
- package/lib/cjs/drag-and-drop/icons/CSV-file.js.map +0 -1
- package/lib/cjs/drag-and-drop/icons/Cloud.js +0 -27
- package/lib/cjs/drag-and-drop/icons/Cloud.js.map +0 -1
- package/lib/cjs/drag-and-drop/icons/File.js.map +0 -1
- package/lib/cjs/drag-and-drop/icons/InvalidFile.js.map +0 -1
- package/lib/cjs/drag-and-drop/index.js.map +0 -1
- package/lib/cjs/table-deprecated/Table.js +0 -157
- package/lib/cjs/table-deprecated/Table.js.map +0 -1
- package/lib/cjs/table-deprecated/TableNavigation.js +0 -51
- package/lib/cjs/table-deprecated/TableNavigation.js.map +0 -1
- package/lib/cjs/table-deprecated/helpers.js +0 -123
- package/lib/cjs/table-deprecated/helpers.js.map +0 -1
- package/lib/cjs/table-deprecated/hooks/hookCallbackTypes.js.map +0 -1
- package/lib/cjs/table-deprecated/hooks/index.js.map +0 -1
- package/lib/cjs/table-deprecated/hooks/useMultiRowSelect.js +0 -84
- package/lib/cjs/table-deprecated/hooks/useMultiRowSelect.js.map +0 -1
- package/lib/cjs/table-deprecated/hooks/useSingleRowSelect.js +0 -61
- package/lib/cjs/table-deprecated/hooks/useSingleRowSelect.js.map +0 -1
- package/lib/cjs/table-deprecated/index.js.map +0 -1
- package/lib/cjs/tooltip/SmartTooltip.js +0 -33
- package/lib/cjs/tooltip/SmartTooltip.js.map +0 -1
- package/lib/cjs/tooltip/Tip.js +0 -169
- package/lib/cjs/tooltip/Tip.js.map +0 -1
- package/lib/cjs/tooltip/Tooltip.js.map +0 -1
- package/lib/cjs/tooltip/index.js +0 -33
- package/lib/cjs/tooltip/index.js.map +0 -1
- package/lib/cjs/view-selector/ViewSelector.js.map +0 -1
- package/lib/cjs/view-selector/index.js.map +0 -1
- package/lib/esm/drag-and-drop/DragAndDrop.js.map +0 -1
- package/lib/esm/drag-and-drop/icons/CSV-file.js.map +0 -1
- package/lib/esm/drag-and-drop/icons/Cloud.js +0 -25
- package/lib/esm/drag-and-drop/icons/Cloud.js.map +0 -1
- package/lib/esm/drag-and-drop/icons/File.js +0 -25
- package/lib/esm/drag-and-drop/icons/File.js.map +0 -1
- package/lib/esm/drag-and-drop/icons/InvalidFile.js +0 -25
- package/lib/esm/drag-and-drop/icons/InvalidFile.js.map +0 -1
- package/lib/esm/drag-and-drop/index.js.map +0 -1
- package/lib/esm/table-deprecated/Table.js +0 -150
- package/lib/esm/table-deprecated/Table.js.map +0 -1
- package/lib/esm/table-deprecated/TableNavigation.js +0 -44
- package/lib/esm/table-deprecated/TableNavigation.js.map +0 -1
- package/lib/esm/table-deprecated/helpers.js +0 -116
- package/lib/esm/table-deprecated/helpers.js.map +0 -1
- package/lib/esm/table-deprecated/hooks/hookCallbackTypes.js.map +0 -1
- package/lib/esm/table-deprecated/hooks/index.js.map +0 -1
- package/lib/esm/table-deprecated/hooks/useMultiRowSelect.js +0 -82
- package/lib/esm/table-deprecated/hooks/useMultiRowSelect.js.map +0 -1
- package/lib/esm/table-deprecated/hooks/useSingleRowSelect.js +0 -57
- package/lib/esm/table-deprecated/hooks/useSingleRowSelect.js.map +0 -1
- package/lib/esm/table-deprecated/index.js +0 -23
- package/lib/esm/table-deprecated/index.js.map +0 -1
- package/lib/esm/tooltip/SmartTooltip.js +0 -28
- package/lib/esm/tooltip/SmartTooltip.js.map +0 -1
- package/lib/esm/tooltip/Tip.js +0 -141
- package/lib/esm/tooltip/Tip.js.map +0 -1
- package/lib/esm/tooltip/Tooltip.js.map +0 -1
- package/lib/esm/tooltip/index.js +0 -24
- package/lib/esm/tooltip/index.js.map +0 -1
- package/lib/esm/view-selector/ViewSelector.js.map +0 -1
- package/lib/esm/view-selector/index.js.map +0 -1
- package/lib/types/table-deprecated/Table.d.ts +0 -76
- package/lib/types/table-deprecated/TableNavigation.d.ts +0 -39
- package/lib/types/table-deprecated/hooks/hookCallbackTypes.d.ts +0 -27
- package/lib/types/table-deprecated/hooks/useMultiRowSelect.d.ts +0 -42
- package/lib/types/table-deprecated/hooks/useSingleRowSelect.d.ts +0 -37
- package/lib/types/tooltip/SmartTooltip.d.ts +0 -36
- package/lib/types/tooltip/Tip.d.ts +0 -62
- /package/lib/cjs/{drag-and-drop → dropzone}/icons/CSV-file.js +0 -0
- /package/lib/esm/{drag-and-drop → dropzone}/icons/CSV-file.js +0 -0
|
@@ -1,116 +0,0 @@
|
|
|
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 { Bars3CenterLeftIconOutline, BarsArrowDownIconOutline, BarsArrowUpIconOutline, } from '../icons';
|
|
34
|
-
import { memo } from 'react';
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* React Table helper to display sorting icon
|
|
38
|
-
* Source:
|
|
39
|
-
* https://react-table.tanstack.com/docs/api/useSortBy#column-properties
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export const SortIcon = (_a) => {
|
|
43
|
-
var { isSortedDesc } = _a, props = __rest(_a, ["isSortedDesc"]);
|
|
44
|
-
switch (true) {
|
|
45
|
-
case isSortedDesc === true:
|
|
46
|
-
return _jsx(BarsArrowDownIconOutline, Object.assign({}, props, { className: "n-w-4 n-h-4" }));
|
|
47
|
-
case isSortedDesc === false:
|
|
48
|
-
return _jsx(BarsArrowUpIconOutline, Object.assign({}, props, { className: "n-w-4 n-h-4" }));
|
|
49
|
-
default:
|
|
50
|
-
return _jsx(Bars3CenterLeftIconOutline, Object.assign({}, props, { className: "n-w-4 n-h-4" }));
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
export const ResizingBar = memo(function ResizingBarMemoed(props) {
|
|
54
|
-
return (_jsx("div", Object.assign({}, props, { className: "ndl-table-resizing-bar", style: {
|
|
55
|
-
width: '4px',
|
|
56
|
-
zIndex: 1,
|
|
57
|
-
// prevents from scrolling while dragging on touch devices
|
|
58
|
-
touchAction: 'none',
|
|
59
|
-
} })));
|
|
60
|
-
});
|
|
61
|
-
/**
|
|
62
|
-
* The left section of the bottom navigation
|
|
63
|
-
* that is showing the current page and how many results we can see
|
|
64
|
-
*/
|
|
65
|
-
export const TableResults = ({ pageIndex, pageLength, rowsLength, }) => {
|
|
66
|
-
const from = Math.min(rowsLength, 1 + pageIndex * pageLength);
|
|
67
|
-
const to = Math.min(rowsLength, pageIndex * pageLength + pageLength);
|
|
68
|
-
return (_jsx("span", Object.assign({ className: "n-text-palette-neutral-text-weaker body-medium n-whitespace-nowrap" }, { children: _jsxs("span", { children: ["Showing", ' ', _jsxs("b", { children: [from, to !== from && `-${to}`] }), ' ', "of ", _jsx("b", { children: rowsLength }), " results"] }) })));
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Modified from here: https://gist.github.com/kottenator/9d936eb3e4e3c3e02598
|
|
72
|
-
*
|
|
73
|
-
* @param current Current Index
|
|
74
|
-
* @param max Max Index
|
|
75
|
-
* @returns
|
|
76
|
-
*/
|
|
77
|
-
export const userFriendlyPagination = (current, max) => {
|
|
78
|
-
const last = max;
|
|
79
|
-
const delta = 2;
|
|
80
|
-
const left = current - delta;
|
|
81
|
-
const right = current + delta + 1;
|
|
82
|
-
const range = [];
|
|
83
|
-
const rangeWithDots = [];
|
|
84
|
-
let l;
|
|
85
|
-
for (let i = 1; i <= last; i += 1) {
|
|
86
|
-
if (i === 1 || i === last || (i >= left && i < right)) {
|
|
87
|
-
range.push(i);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
for (let i = 0; i < range.length; i += 1) {
|
|
91
|
-
if (l) {
|
|
92
|
-
if (range[i] - l === 2) {
|
|
93
|
-
rangeWithDots.push(l + 1);
|
|
94
|
-
}
|
|
95
|
-
else if (range[i] - l !== 1) {
|
|
96
|
-
rangeWithDots.push('...');
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
rangeWithDots.push(range[i]);
|
|
100
|
-
l = range[i];
|
|
101
|
-
}
|
|
102
|
-
return rangeWithDots;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Small helper to get handle the Checkbox
|
|
106
|
-
* functionality in tables
|
|
107
|
-
*/
|
|
108
|
-
export const toggleRowSelection = (list, idx) => {
|
|
109
|
-
// Removing from the list
|
|
110
|
-
if (list.includes(idx)) {
|
|
111
|
-
return list.filter((o) => o !== idx);
|
|
112
|
-
}
|
|
113
|
-
// Adding to the list
|
|
114
|
-
return [...list, idx];
|
|
115
|
-
};
|
|
116
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js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AAK,CAAC,EAAE;gBAC7B,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aAC3B;SACF;QACD,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;KACd;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAc,EAAE,GAAW,EAAE,EAAE;IAChE,yBAAyB;IACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;KACtC;IACD,qBAAqB;IACrB,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hookCallbackTypes.js","sourceRoot":"","sources":["../../../../src/table-deprecated/hooks/hookCallbackTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/table-deprecated/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,82 +0,0 @@
|
|
|
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 { useEffect, useMemo, useRef } from 'react';
|
|
23
|
-
import { useRowSelect, } from 'react-table';
|
|
24
|
-
import { Checkbox } from '../../checkbox';
|
|
25
|
-
/**
|
|
26
|
-
* A react-table plugin to support controlled selected row state for multiple rows
|
|
27
|
-
*
|
|
28
|
-
* Required options provided to useTable:
|
|
29
|
-
*
|
|
30
|
-
* `onAllRowSelect`: A callback that is called when the all rows checkbox is toggled
|
|
31
|
-
* `onRowSelect`: A callback that is called when a rows checkbox is toggled
|
|
32
|
-
*
|
|
33
|
-
* Required fields on `data` provided to useTable:
|
|
34
|
-
*
|
|
35
|
-
* `isSelected`: a boolean that indicates if the row is selected. This key can be changed
|
|
36
|
-
* from `isSelected` to something else by setting the `manualRowSelectedKey` option
|
|
37
|
-
* in the useTable options. See the useRowSelect plugin docs for more details.
|
|
38
|
-
*/
|
|
39
|
-
const useMultiRowSelect = (hooks) => {
|
|
40
|
-
useRowSelect(hooks);
|
|
41
|
-
/*
|
|
42
|
-
Used for the indeterminate
|
|
43
|
-
state of the checkbox
|
|
44
|
-
*/
|
|
45
|
-
hooks.useControlledState.push((state, { instance }) => {
|
|
46
|
-
const { data } = instance;
|
|
47
|
-
const isSelectedKey = 'isSelected';
|
|
48
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
49
|
-
const newState = useMemo(() => (Object.assign(Object.assign({}, state), { selectedRowIds: data.reduce((acc, curr, index) => {
|
|
50
|
-
if (curr[isSelectedKey]) {
|
|
51
|
-
return Object.assign(Object.assign({}, acc), { [index]: true });
|
|
52
|
-
}
|
|
53
|
-
return acc;
|
|
54
|
-
}, {}) })), [state, data, isSelectedKey]);
|
|
55
|
-
return newState;
|
|
56
|
-
});
|
|
57
|
-
hooks.visibleColumns.push((columns, { instance }) => [
|
|
58
|
-
// Let's make a column for selection
|
|
59
|
-
{
|
|
60
|
-
id: 'ndl-checkbox-selection',
|
|
61
|
-
// The header can use the table's getToggleAllRowsSelectedProps method
|
|
62
|
-
// to render a checkbox
|
|
63
|
-
Header: ({ getToggleAllRowsSelectedProps, }) => {
|
|
64
|
-
const checkboxRef = useRef(null);
|
|
65
|
-
useEffect(() => {
|
|
66
|
-
if (checkboxRef && checkboxRef.current) {
|
|
67
|
-
checkboxRef.current.indeterminate =
|
|
68
|
-
getToggleAllRowsSelectedProps().indeterminate || false;
|
|
69
|
-
}
|
|
70
|
-
}, [checkboxRef, getToggleAllRowsSelectedProps]);
|
|
71
|
-
return (_jsx(Checkbox, Object.assign({ "aria-label": "all-rows-select", onClick: () => instance.onAllRowSelect() }, getToggleAllRowsSelectedProps(), { ref: checkboxRef })));
|
|
72
|
-
},
|
|
73
|
-
// The cell can use the individual row's getToggleRowSelectedProps method
|
|
74
|
-
// to the render a checkbox
|
|
75
|
-
Cell: ({ row }) => (_jsx("div", { children: _jsx(Checkbox, Object.assign({ "aria-label": `row-${row.index}`, onClick: () => instance.onRowSelect(row.original, row.index) }, row.getToggleRowSelectedProps())) })),
|
|
76
|
-
},
|
|
77
|
-
...columns,
|
|
78
|
-
]);
|
|
79
|
-
};
|
|
80
|
-
useMultiRowSelect.pluginName = 'useMultiRowSelect';
|
|
81
|
-
export default useMultiRowSelect;
|
|
82
|
-
//# sourceMappingURL=useMultiRowSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMult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AAC,EACP,6BAA6B,GACK,EAAE,EAAE;gBACtC,MAAM,WAAW,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;gBACnD,SAAS,CAAC,GAAG,EAAE;oBACb,IAAI,WAAW,IAAI,WAAW,CAAC,OAAO,EAAE;wBACtC,WAAW,CAAC,OAAO,CAAC,aAAa;4BAC/B,6BAA6B,EAAE,CAAC,aAAa,IAAI,KAAK,CAAC;qBAC1D;gBACH,CAAC,EAAE,CAAC,WAAW,EAAE,6BAA6B,CAAC,CAAC,CAAC;gBACjD,OAAO,CACL,KAAC,QAAQ,gCACI,iBAAiB,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAE,QAA2B,CAAC,cAAc,EAAE,IACxD,6BAA6B,EAAE,IACnC,GAAG,EAAE,WAAW,IAChB,CACH,CAAC;YACJ,CAAC;YACD,yEAAyE;YACzE,2BAA2B;YAC3B,IAAI,EAAE,CAAC,EAAE,GAAG,EAAW,EAAE,EAAE,CAAC,CAC1B,wBACE,KAAC,QAAQ,gCACK,OAAO,GAAG,CAAC,KAAK,EAAE,EAC9B,OAAO,EAAE,GAAG,EAAE,CACX,QAA2B,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC,IAE9D,GAAW,CAAC,yBAAyB,EAAE,EAC5C,GACE,CACP;SACK;QACR,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,iBAAiB,CAAC,UAAU,GAAG,mBAAmB,CAAC;AAEnD,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
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 { useRowSelect } from 'react-table';
|
|
23
|
-
import { Radio } from '../../radio';
|
|
24
|
-
/**
|
|
25
|
-
* A react-table plugin to support controlled selected row state for a single row
|
|
26
|
-
*
|
|
27
|
-
* Required options provided to useTable:
|
|
28
|
-
*
|
|
29
|
-
* `onRowSelect`: A callback that is called when a rows checkbox is toggled
|
|
30
|
-
*
|
|
31
|
-
* Required fields on `data` provided to useTable:
|
|
32
|
-
*
|
|
33
|
-
* `isSelected`: a boolean that indicates if the row is selected. This key can be changed
|
|
34
|
-
* from `isSelected` to something else by setting the `manualRowSelectedKey` option
|
|
35
|
-
* in the useTable options. See the useRowSelect plugin docs for more details.
|
|
36
|
-
* There should only ever be 1 data entry with isSelected set to true
|
|
37
|
-
*/
|
|
38
|
-
export const useSingleRowSelect = (hooks) => {
|
|
39
|
-
useRowSelect(hooks);
|
|
40
|
-
hooks.visibleColumns.push((columns, { instance }) => [
|
|
41
|
-
// Let's make a column for selection
|
|
42
|
-
// This should be definitely unique to avoid collision
|
|
43
|
-
{
|
|
44
|
-
id: 'ndl-radio-selection',
|
|
45
|
-
Header: () => null,
|
|
46
|
-
width: 20,
|
|
47
|
-
// The cell can use the individual row's getToggleRowSelectedProps method
|
|
48
|
-
// to the render a checkbox
|
|
49
|
-
Cell: ({ row }) => {
|
|
50
|
-
return (_jsx(Radio, Object.assign({}, row.getToggleRowSelectedProps(), { onChange: () => instance.onRowSelect(row.original, row.index) })));
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
...columns,
|
|
54
|
-
]);
|
|
55
|
-
};
|
|
56
|
-
export default useSingleRowSelect;
|
|
57
|
-
//# sourceMappingURL=useSingleRowSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSingleRowSelect.js","sourceRoot":"","sources":["../../../../src/table-deprecated/hooks/useSingleRowSelect.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,YAAY,EAAyB,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,KAAe,EACf,EAAE;IACF,YAAY,CAAC,KAAK,CAAC,CAAC;IAEpB,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;QACnD,oCAAoC;QACpC,sDAAsD;QACtD;YACE,EAAE,EAAE,qBAAqB;YACzB,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI;YAClB,KAAK,EAAE,EAAE;YACT,yEAAyE;YACzE,2BAA2B;YAC3B,IAAI,EAAE,CAAC,EAAE,GAAG,EAAW,EAAE,EAAE;gBACzB,OAAO,CACL,KAAC,KAAK,oBACC,GAAW,CAAC,yBAAyB,EAAE,IAC5C,QAAQ,EAAE,GAAG,EAAE,CACZ,QAA2B,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC,IAEnE,CACH,CAAC;YACJ,CAAC;SACK;QACR,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
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 TableDepr } from './Table';
|
|
22
|
-
export * from './hooks';
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/table-deprecated/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,cAAc,SAAS,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
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 Tip from './Tip';
|
|
24
|
-
const SmartTooltip = React.forwardRef(function SmartTooltip(props, ref) {
|
|
25
|
-
return _jsx(Tip, Object.assign({}, props, { type: "tooltip", ref: ref }));
|
|
26
|
-
});
|
|
27
|
-
export default SmartTooltip;
|
|
28
|
-
//# sourceMappingURL=SmartTooltip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SmartTooltip.js","sourceRoot":"","sources":["../../../src/tooltip/SmartTooltip.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,GAAG,MAAM,OAAO,CAAC;AAcxB,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,YAAY,CACzD,KAAwB,EACxB,GAAgC;IAEhC,OAAO,KAAC,GAAG,oBAAK,KAAK,IAAE,IAAI,EAAC,SAAS,EAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AACrD,CAAC,CAAC,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
package/lib/esm/tooltip/Tip.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
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 { createElement as _createElement } from "react";
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* Copyright (c) "Neo4j"
|
|
17
|
-
* Neo4j Sweden AB [http://neo4j.com]
|
|
18
|
-
*
|
|
19
|
-
* This file is part of Neo4j.
|
|
20
|
-
*
|
|
21
|
-
* Neo4j is free software: you can redistribute it and/or modify
|
|
22
|
-
* it under the terms of the GNU General Public License as published by
|
|
23
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
24
|
-
* (at your option) any later version.
|
|
25
|
-
*
|
|
26
|
-
* This program is distributed in the hope that it will be useful,
|
|
27
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
28
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
29
|
-
* GNU General Public License for more details.
|
|
30
|
-
*
|
|
31
|
-
* You should have received a copy of the GNU General Public License
|
|
32
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
33
|
-
*/
|
|
34
|
-
import React, { useEffect, useState, } from 'react';
|
|
35
|
-
import { useFloating, useDismiss, offset, autoPlacement, autoUpdate, useHover, useInteractions, } from '@floating-ui/react';
|
|
36
|
-
import Tooltip from './Tooltip';
|
|
37
|
-
import { tokens } from '@neo4j-ndl/base';
|
|
38
|
-
import { Portal } from '../portal';
|
|
39
|
-
import ConditionalWrap from '../_common/ConditionalWrap';
|
|
40
|
-
import { XMarkIconOutline } from '../icons';
|
|
41
|
-
import { Typography } from '../typography';
|
|
42
|
-
import { usePress } from 'react-aria';
|
|
43
|
-
import classname from 'classnames';
|
|
44
|
-
const PLACEMENTS = ['top', 'bottom', 'left', 'right'];
|
|
45
|
-
const calculateArrow = (placement) => {
|
|
46
|
-
switch (placement) {
|
|
47
|
-
case 'bottom':
|
|
48
|
-
return 'top';
|
|
49
|
-
case 'left':
|
|
50
|
-
return 'right';
|
|
51
|
-
case 'right':
|
|
52
|
-
return 'left';
|
|
53
|
-
case 'top':
|
|
54
|
-
default:
|
|
55
|
-
return 'bottom';
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const ToggletipAction = (_a) => {
|
|
59
|
-
var { label, onClick } = _a, props = __rest(_a, ["label", "onClick"]);
|
|
60
|
-
const { pressProps } = usePress({
|
|
61
|
-
onPress: (e) => {
|
|
62
|
-
onClick && onClick(e);
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
return (_jsx(Typography, Object.assign({}, props, { className: classname('ndl-toggletip-action', props.className) }, pressProps, { tabIndex: 0, variant: "label", as: onClick === undefined ? 'a' : 'button' }, { children: label })));
|
|
66
|
-
};
|
|
67
|
-
const Tip = React.forwardRef(function Tip(_a, ref) {
|
|
68
|
-
var { open: openProp, allowedPlacements = PLACEMENTS, portal = true } = _a, props = __rest(_a, ["open", "allowedPlacements", "portal"]);
|
|
69
|
-
const [open, setOpen] = useState(false);
|
|
70
|
-
const { type = 'tooltip' } = props;
|
|
71
|
-
const { context, x, y, strategy, placement, refs } = useFloating({
|
|
72
|
-
open: openProp !== null && openProp !== void 0 ? openProp : open,
|
|
73
|
-
onOpenChange: (e) => {
|
|
74
|
-
setOpen(e);
|
|
75
|
-
/**
|
|
76
|
-
* We do not receive an `event` here from the onOpenChange callback
|
|
77
|
-
* Need to investigate if we can propagate the underlying event for closing to `onClose`
|
|
78
|
-
*/
|
|
79
|
-
if (!open) {
|
|
80
|
-
props.type === 'toggletip' && props.onClose && props.onClose(undefined);
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
whileElementsMounted: autoUpdate,
|
|
84
|
-
middleware: [
|
|
85
|
-
offset(10),
|
|
86
|
-
autoPlacement({
|
|
87
|
-
allowedPlacements,
|
|
88
|
-
}),
|
|
89
|
-
],
|
|
90
|
-
});
|
|
91
|
-
const hover = useHover(context, {
|
|
92
|
-
move: false,
|
|
93
|
-
enabled: type === 'tooltip',
|
|
94
|
-
delay: {
|
|
95
|
-
// TODO: add a slower animation token to avoid this being hardcoded
|
|
96
|
-
open: 200,
|
|
97
|
-
// Strip the 'ms' from the duration token, need to provide pure ms durations
|
|
98
|
-
close: parseInt(tokens.transitions.values.duration.default.replace('ms', '')),
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
const dismiss = useDismiss(context, {
|
|
102
|
-
enabled: type === 'toggletip',
|
|
103
|
-
outsidePress: (e) => {
|
|
104
|
-
/** Avoid calling onClose, if we click the reference element */
|
|
105
|
-
if (
|
|
106
|
-
/** Case that the target is a child of the referenced element **/
|
|
107
|
-
typeof ref !== 'function' &&
|
|
108
|
-
(ref === null || ref === void 0 ? void 0 : ref.current) instanceof Element &&
|
|
109
|
-
e.target instanceof Element &&
|
|
110
|
-
(ref === null || ref === void 0 ? void 0 : ref.current.contains(e.target))) {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
return true;
|
|
114
|
-
},
|
|
115
|
-
});
|
|
116
|
-
const { getFloatingProps } = useInteractions([hover, dismiss]);
|
|
117
|
-
useEffect(() => {
|
|
118
|
-
/**
|
|
119
|
-
* Assign passed ref to the reference callback
|
|
120
|
-
* of the useFloating hook
|
|
121
|
-
*/
|
|
122
|
-
const { current = null } = ref || {};
|
|
123
|
-
if (current) {
|
|
124
|
-
refs.setReference(current);
|
|
125
|
-
}
|
|
126
|
-
}, [ref]);
|
|
127
|
-
return (_jsx(_Fragment, { children: open || openProp ? (_jsx(ConditionalWrap, Object.assign({ condition: portal, wrap: (children) => _jsx(Portal, { children: children }) }, { children: _jsxs(Tooltip, Object.assign({}, props, { ref: refs.setFloating }, getFloatingProps(), { arrowPosition: calculateArrow(placement), className: classname(props.className, {
|
|
128
|
-
'ndl-toggletip': type === 'toggletip',
|
|
129
|
-
}), style: Object.assign({ position: strategy, top: y !== null && y !== void 0 ? y : 0, left: x !== null && x !== void 0 ? x : 0, width: 'max-content', zIndex: tokens.zIndex.alias.tooltip }, props.style) }, { children: [props.type === 'tooltip' && props.children, props.type === 'toggletip' && (_jsxs(_Fragment, { children: [_jsxs("div", Object.assign({ className: "ndl-toggletip-header" }, { children: [props.title && (_jsx(Typography, Object.assign({ variant: "h6" }, { children: props.title }))), !props.title && (_jsx(Typography, Object.assign({ variant: "body-medium", as: "div" }, { children: props.children }))), _jsx("div", Object.assign({ tabIndex: 0, role: "button", className: "ndl-toggletip-close-icon", onKeyDown: (event) => {
|
|
130
|
-
var _a;
|
|
131
|
-
if (event.key === 'Enter' || event.key === 'Space') {
|
|
132
|
-
setOpen(false);
|
|
133
|
-
(_a = props === null || props === void 0 ? void 0 : props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, event);
|
|
134
|
-
}
|
|
135
|
-
}, onClick: (event) => {
|
|
136
|
-
setOpen(false);
|
|
137
|
-
(props === null || props === void 0 ? void 0 : props.onClose) && (props === null || props === void 0 ? void 0 : props.onClose(event));
|
|
138
|
-
}, "aria-label": "close-toggletip", "data-testid": "close-toggletip" }, { children: _jsx(XMarkIconOutline, {}) }))] })), _jsxs("div", Object.assign({ className: "ndl-toggletip-content", "data-testid": "toggletip-content" }, { children: [props.title && (_jsx(Typography, Object.assign({ variant: "body-medium" }, { children: props.children }))), props.actions && (_jsx("div", Object.assign({ className: "ndl-toggletip-actions" }, { children: props.actions.map((action, index) => (_createElement(ToggletipAction, Object.assign({}, action, { key: index })))) })))] }))] }))] })) }))) : null }));
|
|
139
|
-
});
|
|
140
|
-
export default Tip;
|
|
141
|
-
//# sourceMappingURL=Tip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tip.js","sourceRoot":"","sources":["../../../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OAAO,CAC/C,EAA8D,EAC9D,GAAuC;QADvC,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,OAA0B,EAArB,KAAK,cAA9C,0CAAgD,CAAF;IAG9C,MAAM,cAAc,GAAG,UAAU,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;IAEpE,MAAM,eAAe,GAAG,UAAU,CAAC,sBAAsB,EAAE;QACzD,SAAS,EAAE,aAAa,KAAK,KAAK;QAClC,YAAY,EAAE,aAAa,KAAK,QAAQ;QACxC,UAAU,EAAE,aAAa,KAAK,MAAM;QACpC,WAAW,EAAE,aAAa,KAAK,OAAO;QACtC,cAAc,EAAE,aAAa,KAAK,UAAU;QAC5C,eAAe,EAAE,aAAa,KAAK,WAAW;KAC/C,CAAC,CAAC;IAEH,OAAO,CACL,+BAAS,KAAK,IAAE,IAAI,EAAC,SAAS,EAAC,SAAS,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,iBAC/D,QAAQ,EACT,cAAK,SAAS,EAAE,eAAe,GAAI,KAC/B,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
package/lib/esm/tooltip/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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 Tooltip } from './Tooltip';
|
|
22
|
-
export { default as SmartTooltip } from './SmartTooltip';
|
|
23
|
-
export { default as Tip } from './Tip';
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ViewSelector.js","sourceRoot":"","sources":["../../../src/view-selector/ViewSelector.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,UAAU,EAAoB,MAAM,YAAY,CAAC;AAuC1D,MAAM,mBAAmB,GACvB,KAAK,CAAC,aAAa,CAAkC,IAAI,CAAC,CAAC;AAE7D,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAEhD,IAAI,OAAO,KAAK,IAAI,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACvD;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC,SAA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ACL,KAAC,SAAS,oBACJ,IAAI,IACR,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU,IAAI,QAAQ,CAAC,KAAK,CAAC,EAC7C,SAAS,EAAE,IAAI,EACf,GAAG,EAAE,GAAG,gBAEP,QAAQ,IACC,CACb,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/view-selector/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,76 +0,0 @@
|
|
|
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
|
-
/// <reference types="react" />
|
|
22
|
-
import { type Row, type UseColumnOrderState, type UseExpandedState, type UseFiltersState, type UsePaginationState, type UseGlobalFiltersState, type UsePaginationInstanceProps, type UseSortByInstanceProps, type UseTableInstanceProps } from 'react-table';
|
|
23
|
-
import { type ElementBase } from '../helpers/types';
|
|
24
|
-
declare type Sections = Record<'controls' | 'header' | 'body' | 'navigation', JSX.Element | JSX.Element[]>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* Small Utilities
|
|
28
|
-
* for table styling and functionality
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
/** For fixed row height tables, we should have a fixed body size */
|
|
32
|
-
export declare const fixedHeight: (items: number, height: number) => {
|
|
33
|
-
style: {
|
|
34
|
-
height: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
declare type DefaultHeaderProps<T extends object> = Pick<UseTableInstanceProps<T>, 'headerGroups'> & UseSortByInstanceProps<T>;
|
|
38
|
-
declare type DefaultBodyProps<T extends object> = {
|
|
39
|
-
actionsButtons?: (row: Row<T>) => JSX.Element | JSX.Element[];
|
|
40
|
-
loading: boolean;
|
|
41
|
-
} & UseTableInstanceProps<T> & Partial<UsePaginationInstanceProps<T>>;
|
|
42
|
-
export interface PaginationTableState<T extends object> extends UseColumnOrderState<T>, UseExpandedState<T>, UseFiltersState<T>, UsePaginationState<T>, UseGlobalFiltersState<T> {
|
|
43
|
-
}
|
|
44
|
-
export declare type DefaultNavigationProps<T extends object> = {
|
|
45
|
-
state: Partial<PaginationTableState<T>>;
|
|
46
|
-
rows: Row<T>[];
|
|
47
|
-
} & UsePaginationInstanceProps<T>;
|
|
48
|
-
/**
|
|
49
|
-
* Table Skeleton to keep most section logic DRY
|
|
50
|
-
*
|
|
51
|
-
* How the table component is divided into sections:
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* +----------------+
|
|
55
|
-
* | Table Controls |
|
|
56
|
-
* | (ex: Search) |
|
|
57
|
-
* +----------------+
|
|
58
|
-
* | Header |
|
|
59
|
-
* +----------------+
|
|
60
|
-
* | Body (data) |
|
|
61
|
-
* +----------------+
|
|
62
|
-
* | Navigation |
|
|
63
|
-
* +----------------+
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
declare const Table: {
|
|
67
|
-
<T extends object>(props: Partial<Sections> & Partial<{
|
|
68
|
-
actionsButtons?: ((row: Row<T>) => JSX.Element | JSX.Element[]) | undefined;
|
|
69
|
-
loading: boolean;
|
|
70
|
-
} & UseTableInstanceProps<T> & Partial<UsePaginationInstanceProps<T>> & {
|
|
71
|
-
state: Partial<PaginationTableState<T>>;
|
|
72
|
-
rows: Row<T>[];
|
|
73
|
-
} & UsePaginationInstanceProps<T> & Pick<UseTableInstanceProps<T>, "headerGroups"> & UseSortByInstanceProps<T>> & Omit<ElementBase<HTMLDivElement>, "controls" | "data" | "headers" | "rows">): JSX.Element;
|
|
74
|
-
RowActions: (props: ElementBase<HTMLDivElement>) => JSX.Element;
|
|
75
|
-
};
|
|
76
|
-
export default Table;
|