@neo4j-ndl/react 2.16.26 → 3.0.0-alpha-4904fb7
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/_common/CodeBlockWrapper.js +10 -8
- package/lib/cjs/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/cjs/_common/ConditionalWrap.js +1 -1
- package/lib/cjs/_common/ConditionalWrap.js.map +1 -1
- package/lib/cjs/_common/coditionalWrap.js +1 -1
- package/lib/cjs/_common/coditionalWrap.js.map +1 -1
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +6 -20
- package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/cjs/_common/messages.js +1 -2
- package/lib/cjs/_common/messages.js.map +1 -1
- package/lib/cjs/{helpers → _common}/types.js +1 -2
- package/lib/cjs/_common/types.js.map +1 -0
- package/lib/cjs/accordion/Accordion.js +24 -24
- package/lib/cjs/accordion/Accordion.js.map +1 -1
- package/lib/cjs/avatar/Avatar.js +7 -17
- package/lib/cjs/avatar/Avatar.js.map +1 -1
- package/lib/cjs/banner/Banner.js +30 -25
- package/lib/cjs/banner/Banner.js.map +1 -1
- package/lib/cjs/breadcrumbs/Breadcrumbs.js +60 -90
- package/lib/cjs/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/lib/cjs/button/Button.js +17 -33
- package/lib/cjs/button/Button.js.map +1 -1
- package/lib/cjs/button/IconButton.js +13 -21
- package/lib/cjs/button/IconButton.js.map +1 -1
- package/lib/cjs/button/IconButtonArray.js +43 -22
- package/lib/cjs/button/IconButtonArray.js.map +1 -1
- package/lib/cjs/callout/Callout.js +2 -14
- package/lib/cjs/callout/Callout.js.map +1 -1
- package/lib/cjs/charts/Axis.js +216 -0
- package/lib/cjs/charts/Axis.js.map +1 -0
- package/lib/cjs/charts/CartesianGrid.js +73 -0
- package/lib/cjs/charts/CartesianGrid.js.map +1 -0
- package/lib/cjs/charts/Chart.js +538 -0
- package/lib/cjs/charts/Chart.js.map +1 -0
- package/lib/cjs/charts/ChartTooltip.js +56 -0
- package/lib/cjs/charts/ChartTooltip.js.map +1 -0
- package/lib/cjs/charts/Charts.js +99 -0
- package/lib/cjs/charts/Charts.js.map +1 -0
- package/lib/cjs/charts/Dot.js +31 -0
- package/lib/cjs/charts/Dot.js.map +1 -0
- package/lib/cjs/charts/Legend.js +180 -0
- package/lib/cjs/charts/Legend.js.map +1 -0
- package/lib/cjs/charts/Line.js +101 -0
- package/lib/cjs/charts/Line.js.map +1 -0
- package/lib/cjs/{code-block → charts}/index.js +1 -1
- package/lib/cjs/charts/index.js.map +1 -0
- package/lib/cjs/{table/TableContext.js → charts/utils.js} +18 -14
- package/lib/cjs/charts/utils.js.map +1 -0
- package/lib/cjs/checkbox/Checkbox.js +2 -14
- package/lib/cjs/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/clipboard-copier/ClipboardButton.js +16 -20
- package/lib/cjs/clipboard-copier/ClipboardButton.js.map +1 -1
- package/lib/cjs/code/Code.js +179 -0
- package/lib/cjs/code/Code.js.map +1 -0
- package/lib/cjs/{cypher-code-block → code}/index.js +1 -1
- package/lib/cjs/code/index.js.map +1 -0
- package/lib/cjs/code/languages.js +49 -0
- package/lib/cjs/code/languages.js.map +1 -0
- package/lib/cjs/context-menu/ContextMenu.js +202 -319
- package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
- package/lib/cjs/data-grid/Components.js +73 -44
- package/lib/cjs/data-grid/Components.js.map +1 -1
- package/lib/cjs/data-grid/DataGrid.js +6 -6
- package/lib/cjs/data-grid/DataGrid.js.map +1 -1
- package/lib/cjs/data-grid/illustrations/NoData.js +27 -0
- package/lib/cjs/data-grid/illustrations/NoData.js.map +1 -0
- package/lib/cjs/date-picker/DatePicker.js +33 -10
- package/lib/cjs/date-picker/DatePicker.js.map +1 -1
- package/lib/cjs/dialog/Dialog.js +21 -35
- package/lib/cjs/dialog/Dialog.js.map +1 -1
- package/lib/cjs/divider/Divider.js +2 -14
- package/lib/cjs/divider/Divider.js.map +1 -1
- package/lib/cjs/drawer/Drawer.js +10 -8
- package/lib/cjs/drawer/Drawer.js.map +1 -1
- package/lib/cjs/dropdown/Dropdown.js +18 -34
- package/lib/cjs/dropdown/Dropdown.js.map +1 -1
- package/lib/cjs/dropdown/Overrides.js +6 -2
- package/lib/cjs/dropdown/Overrides.js.map +1 -1
- package/lib/cjs/dropdown-button/DropdownButton.js +2 -21
- package/lib/cjs/dropdown-button/DropdownButton.js.map +1 -1
- package/lib/{types/context-menu/SafeArea.d.ts → cjs/dropdown-button/avatar-test.stories.tsx.js} +10 -18
- package/lib/cjs/dropdown-button/avatar-test.stories.tsx.js.map +1 -0
- package/lib/cjs/dropzone/Dropzone.js +4 -15
- package/lib/cjs/dropzone/Dropzone.js.map +1 -1
- package/lib/cjs/graph-label/GraphLabel.js +33 -34
- package/lib/cjs/graph-label/GraphLabel.js.map +1 -1
- package/lib/cjs/helpers/index.js +0 -1
- package/lib/cjs/helpers/index.js.map +1 -1
- package/lib/cjs/hooks/index.js +5 -3
- package/lib/cjs/hooks/index.js.map +1 -1
- package/lib/cjs/icons/generated/heroIcons.js +917 -596
- package/lib/cjs/icons/generated/heroIcons.js.map +1 -1
- package/lib/cjs/index.js +3 -5
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/inline-edit/InlineEdit.js +12 -7
- package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
- package/lib/cjs/label/Label.js +4 -16
- package/lib/cjs/label/Label.js.map +1 -1
- package/lib/cjs/layout/Box.js +4 -16
- package/lib/cjs/layout/Box.js.map +1 -1
- package/lib/cjs/layout/Flex.js +4 -16
- package/lib/cjs/layout/Flex.js.map +1 -1
- package/lib/cjs/loading-spinner/LoadingSpinner.js +2 -13
- package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/cjs/modal/Modal.js +2 -2
- package/lib/cjs/modal/Modal.js.map +1 -1
- package/lib/cjs/popover/Popover.js +89 -207
- package/lib/cjs/popover/Popover.js.map +1 -1
- package/lib/cjs/popover/use-popover.js +86 -0
- package/lib/cjs/popover/use-popover.js.map +1 -0
- package/lib/cjs/progress-bar/ProgressBar.js +2 -14
- package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
- package/lib/cjs/radio/Radio.js +2 -1
- package/lib/cjs/radio/Radio.js.map +1 -1
- package/lib/cjs/segmented-control/SegmentedControl.js +6 -19
- package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/cjs/side-navigation/SideNavigation.js +52 -59
- package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
- package/lib/cjs/slider/Slider.js +5 -6
- package/lib/cjs/slider/Slider.js.map +1 -1
- package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/cjs/switch/Switch.js +13 -1
- package/lib/cjs/switch/Switch.js.map +1 -1
- package/lib/cjs/tabs/Tabs.js +11 -27
- package/lib/cjs/tabs/Tabs.js.map +1 -1
- package/lib/cjs/tag/Tag.js +5 -18
- package/lib/cjs/tag/Tag.js.map +1 -1
- package/lib/cjs/text-input/TextInput.js +14 -24
- package/lib/cjs/text-input/TextInput.js.map +1 -1
- package/lib/cjs/text-link/TextLink.js +4 -17
- package/lib/cjs/text-link/TextLink.js.map +1 -1
- package/lib/cjs/textarea/Textarea.js +6 -20
- package/lib/cjs/textarea/Textarea.js.map +1 -1
- package/lib/cjs/toast/Toast.js +2 -3
- package/lib/cjs/toast/Toast.js.map +1 -1
- package/lib/cjs/tooltip/Tooltip.js +125 -0
- package/lib/cjs/tooltip/Tooltip.js.map +1 -0
- package/lib/cjs/{tip → tooltip}/index.js +15 -16
- package/lib/cjs/tooltip/index.js.map +1 -0
- package/lib/cjs/tooltip/use-tooltip.js +78 -0
- package/lib/cjs/tooltip/use-tooltip.js.map +1 -0
- package/lib/cjs/tree-view/TreeView.js +4 -16
- package/lib/cjs/tree-view/TreeView.js.map +1 -1
- package/lib/cjs/tree-view/TreeViewTextItem.js +11 -7
- package/lib/cjs/tree-view/TreeViewTextItem.js.map +1 -1
- package/lib/cjs/typography/Typography.js +4 -4
- package/lib/cjs/typography/Typography.js.map +1 -1
- package/lib/cjs/widget/Widget.js +3 -15
- package/lib/cjs/widget/Widget.js.map +1 -1
- package/lib/cjs/wizard/Wizard.js +106 -80
- package/lib/cjs/wizard/Wizard.js.map +1 -1
- package/lib/esm/_common/CodeBlockWrapper.js +10 -8
- package/lib/esm/_common/CodeBlockWrapper.js.map +1 -1
- package/lib/esm/_common/ConditionalWrap.js +1 -1
- package/lib/esm/_common/ConditionalWrap.js.map +1 -1
- package/lib/esm/_common/coditionalWrap.js +1 -1
- package/lib/esm/_common/coditionalWrap.js.map +1 -1
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +7 -21
- package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
- package/lib/esm/_common/messages.js +0 -1
- package/lib/esm/_common/messages.js.map +1 -1
- package/lib/esm/{helpers → _common}/types.js +0 -1
- package/lib/esm/_common/types.js.map +1 -0
- package/lib/esm/accordion/Accordion.js +25 -25
- package/lib/esm/accordion/Accordion.js.map +1 -1
- package/lib/esm/avatar/Avatar.js +7 -17
- package/lib/esm/avatar/Avatar.js.map +1 -1
- package/lib/esm/banner/Banner.js +30 -25
- package/lib/esm/banner/Banner.js.map +1 -1
- package/lib/esm/breadcrumbs/Breadcrumbs.js +39 -92
- package/lib/esm/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/lib/esm/button/Button.js +11 -27
- package/lib/esm/button/Button.js.map +1 -1
- package/lib/esm/button/IconButton.js +13 -21
- package/lib/esm/button/IconButton.js.map +1 -1
- package/lib/esm/button/IconButtonArray.js +43 -22
- package/lib/esm/button/IconButtonArray.js.map +1 -1
- package/lib/esm/callout/Callout.js +2 -14
- package/lib/esm/callout/Callout.js.map +1 -1
- package/lib/esm/charts/Axis.js +187 -0
- package/lib/esm/charts/Axis.js.map +1 -0
- package/lib/esm/charts/CartesianGrid.js +66 -0
- package/lib/esm/charts/CartesianGrid.js.map +1 -0
- package/lib/esm/charts/Chart.js +517 -0
- package/lib/esm/charts/Chart.js.map +1 -0
- package/lib/esm/charts/ChartTooltip.js +50 -0
- package/lib/esm/charts/ChartTooltip.js.map +1 -0
- package/lib/esm/charts/Charts.js +96 -0
- package/lib/esm/charts/Charts.js.map +1 -0
- package/lib/esm/charts/Dot.js +28 -0
- package/lib/esm/charts/Dot.js.map +1 -0
- package/lib/esm/charts/Legend.js +174 -0
- package/lib/esm/charts/Legend.js.map +1 -0
- package/lib/esm/charts/Line.js +75 -0
- package/lib/esm/charts/Line.js.map +1 -0
- package/lib/esm/charts/index.js +22 -0
- package/lib/esm/charts/index.js.map +1 -0
- package/lib/esm/{table/TableContext.js → charts/utils.js} +16 -11
- package/lib/esm/charts/utils.js.map +1 -0
- package/lib/esm/checkbox/Checkbox.js +2 -14
- package/lib/esm/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/clipboard-copier/ClipboardButton.js +16 -20
- package/lib/esm/clipboard-copier/ClipboardButton.js.map +1 -1
- package/lib/esm/code/Code.js +150 -0
- package/lib/esm/code/Code.js.map +1 -0
- package/lib/{types/text-input-preview/index.d.ts → esm/code/index.js} +2 -1
- package/lib/esm/code/index.js.map +1 -0
- package/lib/esm/code/languages.js +46 -0
- package/lib/esm/code/languages.js.map +1 -0
- package/lib/esm/context-menu/ContextMenu.js +198 -295
- package/lib/esm/context-menu/ContextMenu.js.map +1 -1
- package/lib/esm/data-grid/Components.js +69 -43
- package/lib/esm/data-grid/Components.js.map +1 -1
- package/lib/esm/data-grid/DataGrid.js +6 -6
- package/lib/esm/data-grid/DataGrid.js.map +1 -1
- package/lib/esm/data-grid/illustrations/NoData.js +25 -0
- package/lib/esm/data-grid/illustrations/NoData.js.map +1 -0
- package/lib/esm/date-picker/DatePicker.js +33 -10
- package/lib/esm/date-picker/DatePicker.js.map +1 -1
- package/lib/esm/dialog/Dialog.js +21 -35
- package/lib/esm/dialog/Dialog.js.map +1 -1
- package/lib/esm/divider/Divider.js +2 -14
- package/lib/esm/divider/Divider.js.map +1 -1
- package/lib/esm/drawer/Drawer.js +11 -9
- package/lib/esm/drawer/Drawer.js.map +1 -1
- package/lib/esm/dropdown/Dropdown.js +18 -34
- package/lib/esm/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/dropdown/Overrides.js +6 -2
- package/lib/esm/dropdown/Overrides.js.map +1 -1
- package/lib/esm/dropdown-button/DropdownButton.js +2 -21
- package/lib/esm/dropdown-button/DropdownButton.js.map +1 -1
- package/lib/esm/dropdown-button/avatar-test.stories.tsx.js +27 -0
- package/lib/esm/dropdown-button/avatar-test.stories.tsx.js.map +1 -0
- package/lib/esm/dropzone/Dropzone.js +4 -15
- package/lib/esm/dropzone/Dropzone.js.map +1 -1
- package/lib/esm/graph-label/GraphLabel.js +33 -34
- package/lib/esm/graph-label/GraphLabel.js.map +1 -1
- package/lib/esm/helpers/index.js +0 -1
- package/lib/esm/helpers/index.js.map +1 -1
- package/lib/esm/hooks/index.js +1 -1
- package/lib/esm/hooks/index.js.map +1 -1
- package/lib/esm/icons/generated/heroIcons.js +904 -584
- package/lib/esm/icons/generated/heroIcons.js.map +1 -1
- package/lib/esm/index.js +3 -5
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/inline-edit/InlineEdit.js +12 -7
- package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
- package/lib/esm/label/Label.js +4 -16
- package/lib/esm/label/Label.js.map +1 -1
- package/lib/esm/layout/Box.js +6 -18
- package/lib/esm/layout/Box.js.map +1 -1
- package/lib/esm/layout/Flex.js +5 -17
- package/lib/esm/layout/Flex.js.map +1 -1
- package/lib/esm/loading-spinner/LoadingSpinner.js +2 -13
- package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
- package/lib/esm/modal/Modal.js +2 -2
- package/lib/esm/modal/Modal.js.map +1 -1
- package/lib/esm/popover/Popover.js +64 -204
- package/lib/esm/popover/Popover.js.map +1 -1
- package/lib/esm/popover/use-popover.js +83 -0
- package/lib/esm/popover/use-popover.js.map +1 -0
- package/lib/esm/progress-bar/ProgressBar.js +2 -14
- package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
- package/lib/esm/radio/Radio.js +2 -1
- package/lib/esm/radio/Radio.js.map +1 -1
- package/lib/esm/segmented-control/SegmentedControl.js +7 -20
- package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/esm/side-navigation/SideNavigation.js +52 -59
- package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
- package/lib/esm/slider/Slider.js +5 -6
- package/lib/esm/slider/Slider.js.map +1 -1
- package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
- package/lib/esm/switch/Switch.js +13 -1
- package/lib/esm/switch/Switch.js.map +1 -1
- package/lib/esm/tabs/Tabs.js +12 -28
- package/lib/esm/tabs/Tabs.js.map +1 -1
- package/lib/esm/tag/Tag.js +5 -18
- package/lib/esm/tag/Tag.js.map +1 -1
- package/lib/esm/text-input/TextInput.js +14 -24
- package/lib/esm/text-input/TextInput.js.map +1 -1
- package/lib/esm/text-link/TextLink.js +4 -17
- package/lib/esm/text-link/TextLink.js.map +1 -1
- package/lib/esm/textarea/Textarea.js +6 -20
- package/lib/esm/textarea/Textarea.js.map +1 -1
- package/lib/esm/toast/Toast.js +2 -3
- package/lib/esm/toast/Toast.js.map +1 -1
- package/lib/esm/tooltip/Tooltip.js +119 -0
- package/lib/esm/tooltip/Tooltip.js.map +1 -0
- package/lib/esm/{tip → tooltip}/index.js +0 -1
- package/lib/esm/tooltip/index.js.map +1 -0
- package/lib/esm/tooltip/use-tooltip.js +73 -0
- package/lib/esm/tooltip/use-tooltip.js.map +1 -0
- package/lib/esm/tree-view/TreeView.js +4 -16
- package/lib/esm/tree-view/TreeView.js.map +1 -1
- package/lib/esm/tree-view/TreeViewTextItem.js +11 -7
- package/lib/esm/tree-view/TreeViewTextItem.js.map +1 -1
- package/lib/esm/typography/Typography.js +5 -5
- package/lib/esm/typography/Typography.js.map +1 -1
- package/lib/esm/widget/Widget.js +3 -15
- package/lib/esm/widget/Widget.js.map +1 -1
- package/lib/esm/wizard/Wizard.js +83 -76
- package/lib/esm/wizard/Wizard.js.map +1 -1
- package/lib/types/_common/CodeBlockWrapper.d.ts +10 -6
- package/lib/types/_common/ConditionalWrap.d.ts +2 -2
- package/lib/types/_common/coditionalWrap.d.ts +2 -2
- package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +15 -4
- package/lib/types/_common/input/types.d.ts +7 -9
- package/lib/types/_common/messages.d.ts +0 -1
- package/lib/types/_common/types.d.ts +40 -0
- package/lib/types/accordion/Accordion.d.ts +15 -9
- package/lib/types/avatar/Avatar.d.ts +14 -7
- package/lib/types/banner/Banner.d.ts +39 -19
- package/lib/types/breadcrumbs/Breadcrumbs.d.ts +18 -21
- package/lib/types/button/Button.d.ts +35 -13
- package/lib/types/button/IconButton.d.ts +31 -12
- package/lib/types/button/IconButtonArray.d.ts +20 -15
- package/lib/types/callout/Callout.d.ts +6 -3
- package/lib/types/charts/Axis.d.ts +37 -0
- package/lib/types/{tip/Tooltip.d.ts → charts/CartesianGrid.d.ts} +7 -6
- package/lib/types/charts/Chart.d.ts +105 -0
- package/lib/types/charts/ChartTooltip.d.ts +59 -0
- package/lib/types/charts/Charts.d.ts +94 -0
- package/lib/types/charts/Dot.d.ts +27 -0
- package/lib/types/charts/Legend.d.ts +25 -0
- package/lib/types/charts/Line.d.ts +43 -0
- package/lib/types/{code-block → charts}/index.d.ts +1 -1
- package/lib/{esm/cypher-code-block/index.js → types/charts/utils.d.ts} +3 -2
- package/lib/types/clipboard-copier/ClipboardButton.d.ts +6 -4
- package/lib/types/{code-block/CodeBlock.d.ts → code/Code.d.ts} +29 -7
- package/lib/types/{cypher-code-block → code}/index.d.ts +1 -1
- package/lib/types/code/languages.d.ts +22 -0
- package/lib/types/context-menu/ContextMenu.d.ts +43 -66
- package/lib/types/data-grid/Components.d.ts +12 -5
- package/lib/types/data-grid/DataGrid.d.ts +8 -5
- package/lib/types/data-grid/DataGridContext.d.ts +3 -3
- package/lib/types/data-grid/datagrid-types.d.ts +3 -3
- package/lib/types/data-grid/illustrations/NoData.d.ts +23 -0
- package/lib/types/date-picker/DatePicker.d.ts +6 -6
- package/lib/types/dialog/Dialog.d.ts +14 -10
- package/lib/types/divider/Divider.d.ts +6 -3
- package/lib/types/drawer/Drawer.d.ts +11 -8
- package/lib/types/dropdown/Dropdown.d.ts +4 -1
- package/lib/types/dropdown/Overrides.d.ts +1 -1
- package/lib/types/dropdown/types.d.ts +5 -6
- package/lib/types/dropdown-button/DropdownButton.d.ts +7 -2
- package/lib/{esm/code-block/index.js → types/dropdown-button/avatar-test.stories.tsx.d.ts} +3 -2
- package/lib/types/dropzone/Dropzone.d.ts +8 -2
- package/lib/types/graph-label/GraphLabel.d.ts +18 -7
- package/lib/types/helpers/index.d.ts +0 -1
- package/lib/types/hooks/index.d.ts +1 -1
- package/lib/types/icons/generated/heroIcons.d.ts +256 -0
- package/lib/types/index.d.ts +3 -5
- package/lib/types/inline-edit/InlineEdit.d.ts +5 -2
- package/lib/types/label/Label.d.ts +4 -3
- package/lib/types/layout/Box.d.ts +6 -10
- package/lib/types/layout/Flex.d.ts +6 -11
- package/lib/types/loading-spinner/LoadingSpinner.d.ts +2 -0
- package/lib/types/modal/Modal.d.ts +6 -4
- package/lib/types/popover/Popover.d.ts +37 -66
- package/lib/types/popover/index.d.ts +4 -0
- package/lib/types/popover/use-popover.d.ts +44 -0
- package/lib/types/portal/Portal.d.ts +1 -1
- package/lib/types/progress-bar/ProgressBar.d.ts +5 -2
- package/lib/types/segmented-control/SegmentedControl.d.ts +11 -5
- package/lib/types/side-navigation/SideNavigation.d.ts +35 -19
- package/lib/types/slider/Slider.d.ts +7 -4
- package/lib/types/status-indicator/StatusIndicator.d.ts +4 -2
- package/lib/types/tabs/Tabs.d.ts +10 -19
- package/lib/types/tag/Tag.d.ts +9 -7
- package/lib/types/text-input/TextInput.d.ts +18 -10
- package/lib/types/text-link/TextLink.d.ts +8 -6
- package/lib/types/textarea/Textarea.d.ts +11 -4
- package/lib/types/toast/Toast.d.ts +3 -0
- package/lib/types/tooltip/Tooltip.d.ts +80 -0
- package/lib/types/{tip → tooltip}/index.d.ts +0 -1
- package/lib/types/tooltip/use-tooltip.d.ts +38 -0
- package/lib/types/tree-view/TreeView.d.ts +7 -3
- package/lib/types/tree-view/tree-view-types.d.ts +2 -2
- package/lib/types/typography/Typography.d.ts +16 -5
- package/lib/types/widget/Widget.d.ts +3 -0
- package/lib/types/wizard/Wizard.d.ts +18 -10
- package/package.json +38 -36
- package/lib/cjs/code-block/CodeBlock.js +0 -105
- package/lib/cjs/code-block/CodeBlock.js.map +0 -1
- package/lib/cjs/code-block/index.js.map +0 -1
- package/lib/cjs/code-block/languages.js +0 -303
- package/lib/cjs/code-block/languages.js.map +0 -1
- package/lib/cjs/context-menu/SafeArea.js +0 -84
- package/lib/cjs/context-menu/SafeArea.js.map +0 -1
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js +0 -74
- package/lib/cjs/cypher-code-block/CypherCodeBlock.js.map +0 -1
- package/lib/cjs/cypher-code-block/index.js.map +0 -1
- package/lib/cjs/helpers/types.js.map +0 -1
- package/lib/cjs/table/Components.js +0 -264
- package/lib/cjs/table/Components.js.map +0 -1
- package/lib/cjs/table/Table.js +0 -100
- package/lib/cjs/table/Table.js.map +0 -1
- package/lib/cjs/table/TableContext.js.map +0 -1
- package/lib/cjs/table/helpers.js +0 -86
- package/lib/cjs/table/helpers.js.map +0 -1
- package/lib/cjs/table/index.js +0 -55
- package/lib/cjs/table/index.js.map +0 -1
- package/lib/cjs/text-input-preview/TextInputPreview.js +0 -75
- package/lib/cjs/text-input-preview/TextInputPreview.js.map +0 -1
- package/lib/cjs/text-input-preview/index.js +0 -38
- package/lib/cjs/text-input-preview/index.js.map +0 -1
- package/lib/cjs/tip/Tip.js +0 -196
- package/lib/cjs/tip/Tip.js.map +0 -1
- package/lib/cjs/tip/Tooltip.js +0 -56
- package/lib/cjs/tip/Tooltip.js.map +0 -1
- package/lib/cjs/tip/index.js.map +0 -1
- package/lib/esm/code-block/CodeBlock.js +0 -79
- package/lib/esm/code-block/CodeBlock.js.map +0 -1
- package/lib/esm/code-block/index.js.map +0 -1
- package/lib/esm/code-block/languages.js +0 -302
- package/lib/esm/code-block/languages.js.map +0 -1
- package/lib/esm/context-menu/SafeArea.js +0 -81
- package/lib/esm/context-menu/SafeArea.js.map +0 -1
- package/lib/esm/cypher-code-block/CypherCodeBlock.js +0 -48
- package/lib/esm/cypher-code-block/CypherCodeBlock.js.map +0 -1
- package/lib/esm/cypher-code-block/index.js.map +0 -1
- package/lib/esm/helpers/types.js.map +0 -1
- package/lib/esm/table/Components.js +0 -244
- package/lib/esm/table/Components.js.map +0 -1
- package/lib/esm/table/Table.js +0 -97
- package/lib/esm/table/Table.js.map +0 -1
- package/lib/esm/table/TableContext.js.map +0 -1
- package/lib/esm/table/helpers.js +0 -81
- package/lib/esm/table/helpers.js.map +0 -1
- package/lib/esm/table/index.js +0 -25
- package/lib/esm/table/index.js.map +0 -1
- package/lib/esm/text-input-preview/TextInputPreview.js +0 -72
- package/lib/esm/text-input-preview/TextInputPreview.js.map +0 -1
- package/lib/esm/text-input-preview/index.js +0 -22
- package/lib/esm/text-input-preview/index.js.map +0 -1
- package/lib/esm/tip/Tip.js +0 -186
- package/lib/esm/tip/Tip.js.map +0 -1
- package/lib/esm/tip/Tooltip.js +0 -50
- package/lib/esm/tip/Tooltip.js.map +0 -1
- package/lib/esm/tip/index.js.map +0 -1
- package/lib/types/code-block/languages.d.ts +0 -23
- package/lib/types/cypher-code-block/CypherCodeBlock.d.ts +0 -33
- package/lib/types/helpers/types.d.ts +0 -42
- package/lib/types/table/Components.d.ts +0 -81
- package/lib/types/table/Table.d.ts +0 -62
- package/lib/types/table/TableContext.d.ts +0 -61
- package/lib/types/table/helpers.d.ts +0 -39
- package/lib/types/table/index.d.ts +0 -24
- package/lib/types/text-input-preview/TextInputPreview.d.ts +0 -59
- package/lib/types/tip/Tip.d.ts +0 -168
|
@@ -0,0 +1,94 @@
|
|
|
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 type DataBase = {
|
|
22
|
+
id?: string;
|
|
23
|
+
};
|
|
24
|
+
export type SingleData = {
|
|
25
|
+
id?: string;
|
|
26
|
+
data: unknown;
|
|
27
|
+
} & DataBase;
|
|
28
|
+
export type SeriesData = {
|
|
29
|
+
id?: string;
|
|
30
|
+
data: unknown[];
|
|
31
|
+
} & DataBase;
|
|
32
|
+
export type MultiDimensionalData = {
|
|
33
|
+
id?: string;
|
|
34
|
+
metadata: string[];
|
|
35
|
+
data: unknown[][];
|
|
36
|
+
} & DataBase;
|
|
37
|
+
export type DataPoint = SingleData | SeriesData | MultiDimensionalData;
|
|
38
|
+
export type DataArray = (SingleData | SeriesData | MultiDimensionalData)[] | [];
|
|
39
|
+
export type Metadata = {
|
|
40
|
+
[dataId: string]: {
|
|
41
|
+
label: string;
|
|
42
|
+
color: string;
|
|
43
|
+
isVisible: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type MetadataProp = {
|
|
47
|
+
[dataId: string]: {
|
|
48
|
+
label: string;
|
|
49
|
+
color: string;
|
|
50
|
+
isVisible?: boolean;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export interface ChartsContextType {
|
|
54
|
+
colors?: string[];
|
|
55
|
+
data?: DataArray;
|
|
56
|
+
metadata: Metadata;
|
|
57
|
+
setIsVisible: (dataId: string, isVisible: boolean) => void;
|
|
58
|
+
chartsSize: ChartSize;
|
|
59
|
+
}
|
|
60
|
+
export type ChartSize = {
|
|
61
|
+
width: number;
|
|
62
|
+
height: number;
|
|
63
|
+
};
|
|
64
|
+
export interface ChartsProps {
|
|
65
|
+
children?: React.ReactNode;
|
|
66
|
+
className?: string;
|
|
67
|
+
colors?: string[];
|
|
68
|
+
data: DataArray;
|
|
69
|
+
metadata?: MetadataProp;
|
|
70
|
+
/** Width of the chart container, defaults to 100%, can also be overridden via CSS. */
|
|
71
|
+
width?: number;
|
|
72
|
+
/** Height of the chart container, defaults to 100%, can also be overridden via CSS. */
|
|
73
|
+
height?: number;
|
|
74
|
+
}
|
|
75
|
+
export declare const ChartsContext: import("react").Context<ChartsContextType>;
|
|
76
|
+
declare const Charts: import("react").ForwardRefExoticComponent<{
|
|
77
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<import("react").ElementType<any>> | undefined;
|
|
78
|
+
as?: import("react").ElementType<any> | undefined;
|
|
79
|
+
} & ChartsProps & import("react").RefAttributes<unknown>> & {
|
|
80
|
+
Chart: import("react").ForwardRefExoticComponent<import("./Chart").ChartProps & import("react").RefAttributes<unknown>> & {
|
|
81
|
+
Line: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Line").LineProps & import("react").RefAttributes<SVGPathElement>>>;
|
|
82
|
+
};
|
|
83
|
+
Legend: import("react").ForwardRefExoticComponent<import("./Legend").LegendProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
84
|
+
Line: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Line").LineProps & import("react").RefAttributes<SVGPathElement>>>;
|
|
85
|
+
XAxis: import("react").ForwardRefExoticComponent<import("./Axis").XAxisProps & import("react").RefAttributes<unknown>>;
|
|
86
|
+
YAxis: import("react").ForwardRefExoticComponent<import("./Axis").YAxisProps & import("react").RefAttributes<unknown>>;
|
|
87
|
+
CartesianGrid: ({ className, htmlAttributes, scaleXAxis: scaleXAxisId, scaleYAxis: scaleYAxisId, }: {
|
|
88
|
+
scaleXAxis?: string;
|
|
89
|
+
scaleYAxis?: string;
|
|
90
|
+
className?: string;
|
|
91
|
+
htmlAttributes?: React.HTMLAttributes<HTMLDivElement>;
|
|
92
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
93
|
+
};
|
|
94
|
+
export { Charts };
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
type DotProps = {
|
|
22
|
+
color: string;
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
};
|
|
26
|
+
declare const Dot: import("react").ForwardRefExoticComponent<DotProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
27
|
+
export { Dot };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import React from 'react';
|
|
22
|
+
export interface LegendProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
23
|
+
wrappingType?: 'wrapping' | 'truncation' | 'overflow';
|
|
24
|
+
}
|
|
25
|
+
export declare const Legend: React.ForwardRefExoticComponent<LegendProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { type DataPoint } from './Charts';
|
|
22
|
+
export interface BaseLineProps {
|
|
23
|
+
dataId: string;
|
|
24
|
+
scaleXAxis: string;
|
|
25
|
+
scaleYAxis: string;
|
|
26
|
+
valueFunction?: (data: unknown) => unknown;
|
|
27
|
+
onClick?: (dataPoint: DataPoint) => void;
|
|
28
|
+
labelFormat?: (data: unknown) => string;
|
|
29
|
+
}
|
|
30
|
+
export interface NonSeriesLineProps extends BaseLineProps {
|
|
31
|
+
seriesInterval?: never;
|
|
32
|
+
seriesIntervalStartValue?: never;
|
|
33
|
+
accessorXAxis: string;
|
|
34
|
+
accessorYAxis: string;
|
|
35
|
+
}
|
|
36
|
+
export interface SeriesLineProps extends BaseLineProps {
|
|
37
|
+
seriesInterval: number;
|
|
38
|
+
seriesIntervalStartValue: number;
|
|
39
|
+
accessorXAxis?: never;
|
|
40
|
+
accessorYAxis?: never;
|
|
41
|
+
}
|
|
42
|
+
export type LineProps = NonSeriesLineProps | SeriesLineProps;
|
|
43
|
+
export declare const Line: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<LineProps & import("react").RefAttributes<SVGPathElement>>>;
|
|
@@ -18,5 +18,6 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
|
|
22
|
+
declare const useThrottle: (callback: (...args: any[]) => unknown, limit: number) => (...args: any[]) => void;
|
|
23
|
+
export { useThrottle };
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
import React from 'react';
|
|
23
|
-
import { IconButton } from '../button';
|
|
24
|
-
import {
|
|
23
|
+
import { IconButton, type ButtonSizes } from '../button';
|
|
24
|
+
import { Tooltip } from '../tooltip';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*
|
|
@@ -32,6 +32,8 @@ import { Tip } from '../tip';
|
|
|
32
32
|
export interface ClipboardButtonProps extends Omit<React.ComponentProps<typeof IconButton>, 'onClick' | 'children'> {
|
|
33
33
|
/** The text that should be set to users clipboard */
|
|
34
34
|
textToCopy: string;
|
|
35
|
-
|
|
35
|
+
tooltipProps?: Omit<React.ComponentProps<typeof Tooltip>, 'children'>;
|
|
36
|
+
isDisabled?: boolean;
|
|
37
|
+
size?: ButtonSizes;
|
|
36
38
|
}
|
|
37
|
-
export declare const ClipboardButton: ({ textToCopy,
|
|
39
|
+
export declare const ClipboardButton: ({ textToCopy, isDisabled, size, tooltipProps, htmlAttributes, }: ClipboardButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,17 +19,39 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { type
|
|
23
|
-
import { type ElementBase } from '../helpers';
|
|
22
|
+
import { type IconButton } from '../button';
|
|
24
23
|
import { type LanguageProp } from './languages';
|
|
25
|
-
|
|
24
|
+
import { type PolymorphicComponentProps } from '../_common/types';
|
|
25
|
+
export interface InlineProps {
|
|
26
|
+
type: 'inline';
|
|
27
|
+
maxHeight?: never;
|
|
28
|
+
language?: never;
|
|
29
|
+
showLineNumbers?: never;
|
|
30
|
+
theme?: never;
|
|
31
|
+
headerTitle?: never;
|
|
32
|
+
actions?: never;
|
|
33
|
+
isRunnable?: boolean;
|
|
34
|
+
tooltipText?: string;
|
|
35
|
+
onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>) => void;
|
|
36
|
+
}
|
|
37
|
+
export interface BlockProps {
|
|
38
|
+
type?: 'block';
|
|
26
39
|
maxHeight?: number;
|
|
27
|
-
code: string;
|
|
28
40
|
language: LanguageProp | 'text';
|
|
29
41
|
showLineNumbers?: boolean;
|
|
30
42
|
theme?: 'vs' | 'base16-ateliersulphurpool.light' | 'coy' | 'duotone-light' | 'ghcolors' | 'prism' | 'solarizedlight';
|
|
31
43
|
headerTitle?: string | JSX.Element;
|
|
32
|
-
actions?:
|
|
33
|
-
|
|
44
|
+
actions?: React.ComponentProps<typeof IconButton<'button'>>[];
|
|
45
|
+
isRunnable?: never;
|
|
46
|
+
tooltipText?: never;
|
|
47
|
+
onClick?: never;
|
|
48
|
+
}
|
|
49
|
+
export interface CommonProps {
|
|
50
|
+
code: string;
|
|
51
|
+
isDisabled?: boolean;
|
|
52
|
+
className?: string;
|
|
34
53
|
}
|
|
35
|
-
|
|
54
|
+
type ConditionalProps = InlineProps | BlockProps;
|
|
55
|
+
type Props = CommonProps & ConditionalProps;
|
|
56
|
+
export declare const Code: React.ForwardRefExoticComponent<PolymorphicComponentProps<React.ElementType<any>, Props> & React.RefAttributes<unknown>>;
|
|
57
|
+
export {};
|
|
@@ -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 declare const Languages: readonly ["asciidoc", "bash", "c", "csharp", "css", "css-extras", "cypher", "docker", "json", "go", "graphql", "java", "javadoc", "javascript", "jsx", "kotlin", "php", "python", "regex", "rust", "sql", "typescript"];
|
|
22
|
+
export type LanguageProp = (typeof Languages)[number];
|
|
@@ -18,59 +18,43 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
+
|
|
21
22
|
import React from 'react';
|
|
22
|
-
import { type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
export interface ContextMenuProps extends PopoverProps {
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated
|
|
36
|
-
* size property is deprecated and will be removed in v3.
|
|
37
|
-
* Only one variant, `small` , will be used in products.
|
|
38
|
-
*/
|
|
39
|
-
size?: 'small' | 'large';
|
|
40
|
-
/** The minimum width of the menu */
|
|
41
|
-
minWidth?: number;
|
|
42
|
-
/** The nested level of the menu. Internal prop provided when nesting menu elements */
|
|
43
|
-
level?: number;
|
|
44
|
-
/** Whether the menu is nested. Internal prop provided when nesting menu elements */
|
|
45
|
-
nested?: boolean;
|
|
23
|
+
import { type DividerProps } from '../divider';
|
|
24
|
+
export interface MenuItemProps {
|
|
25
|
+
title: string | React.ReactNode;
|
|
26
|
+
icon?: React.ReactNode;
|
|
27
|
+
description?: string;
|
|
28
|
+
isDisabled?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
31
|
+
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
32
|
+
children?: React.ReactNode;
|
|
46
33
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
34
|
+
declare const MenuItem: React.ForwardRefExoticComponent<{
|
|
35
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
|
|
36
|
+
as?: React.ElementType<any> | undefined;
|
|
37
|
+
} & MenuItemProps & React.RefAttributes<unknown>>;
|
|
38
|
+
export type NestedMenuItemProps = Omit<React.ComponentProps<typeof MenuItem>, 'children'>;
|
|
39
|
+
export interface ContextMenuProps {
|
|
40
|
+
isOpen?: boolean;
|
|
41
|
+
onClose?: (event?: Event) => void;
|
|
42
|
+
anchorRef?: React.RefObject<HTMLElement | null>;
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
isRoot?: boolean;
|
|
45
|
+
minWidth?: number;
|
|
50
46
|
className?: string;
|
|
47
|
+
title?: string;
|
|
48
|
+
description?: string;
|
|
51
49
|
}
|
|
52
|
-
export interface
|
|
53
|
-
|
|
54
|
-
title: string | React.ReactNode;
|
|
55
|
-
/** Item description text */
|
|
56
|
-
description?: string | React.ReactNode;
|
|
57
|
-
/** An icon to render on the left side of the list item */
|
|
58
|
-
icon?: React.ReactNode;
|
|
59
|
-
/** Additional classes */
|
|
50
|
+
export interface MenuItemsProps {
|
|
51
|
+
children: React.ReactNode;
|
|
60
52
|
className?: string;
|
|
61
|
-
/** Disable this menu item */
|
|
62
|
-
disabled?: boolean;
|
|
63
|
-
/** Show arrow icon to indicate nesting */
|
|
64
|
-
nested?: boolean;
|
|
65
|
-
/** Experimental: use safe areas to allow diagonal move in nested menus - Defaults: true **/
|
|
66
|
-
safeArea?: boolean;
|
|
67
|
-
onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>) => void;
|
|
68
|
-
/** Enforces no children on standard menu item. Overridden by nested menu item*/
|
|
69
|
-
children?: never;
|
|
70
53
|
}
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
|
|
54
|
+
export interface MenuSubheaderProps {
|
|
55
|
+
title: string;
|
|
56
|
+
}
|
|
57
|
+
export interface MenuHeaderProps {
|
|
74
58
|
/** Header title text */
|
|
75
59
|
title: string | React.ReactNode;
|
|
76
60
|
/** Header description text */
|
|
@@ -78,24 +62,17 @@ export interface MenuHeaderProps extends Omit<ElementBase, 'title'> {
|
|
|
78
62
|
/** Additional classes */
|
|
79
63
|
className?: string;
|
|
80
64
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
Divider:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
title: string;
|
|
94
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
95
|
-
displayName: string;
|
|
96
|
-
};
|
|
97
|
-
Header: React.ForwardRefExoticComponent<Omit<MenuHeaderProps, "ref"> & React.RefAttributes<unknown>>;
|
|
98
|
-
Item: React.ForwardRefExoticComponent<(Omit<StandardMenuItemProps, "ref"> | Omit<NestedMenuItemProps, "ref">) & React.RefAttributes<unknown>>;
|
|
99
|
-
Items: React.ForwardRefExoticComponent<Omit<MenuItemsProps, "ref"> & React.RefAttributes<unknown>>;
|
|
65
|
+
declare const Menu: React.ForwardRefExoticComponent<ContextMenuProps & React.RefAttributes<HTMLElement>> & {
|
|
66
|
+
Item: React.ForwardRefExoticComponent<{
|
|
67
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
|
|
68
|
+
as?: React.ElementType<any> | undefined;
|
|
69
|
+
} & MenuItemProps & React.RefAttributes<unknown>>;
|
|
70
|
+
Items: ({ children, className }: MenuItemsProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLHRElement>>;
|
|
72
|
+
Subheader: (props: MenuSubheaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
Header: React.ForwardRefExoticComponent<{
|
|
74
|
+
htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
|
|
75
|
+
as?: React.ElementType<any> | undefined;
|
|
76
|
+
} & MenuHeaderProps & React.RefAttributes<unknown>>;
|
|
100
77
|
};
|
|
101
78
|
export { Menu };
|
|
@@ -19,9 +19,8 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
import { type Cell, type CellContext, type Header as HeaderType, type Row, type RowData, type SortDirection } from '@tanstack/react-table';
|
|
22
|
-
import {
|
|
22
|
+
import { type IconButtonProps } from '../button';
|
|
23
23
|
import { Menu } from '../context-menu';
|
|
24
|
-
import { type ElementBase } from '../helpers';
|
|
25
24
|
import { type ColumnAction } from './datagrid-types';
|
|
26
25
|
type MenuItemProps = React.ComponentProps<typeof Menu.Item>;
|
|
27
26
|
export declare const DEFAULT_SORT_ACTIONS: (cell: HeaderType<any, unknown>) => {
|
|
@@ -30,7 +29,12 @@ export declare const DEFAULT_SORT_ACTIONS: (cell: HeaderType<any, unknown>) => {
|
|
|
30
29
|
export interface CommonInnerProps<T = HTMLDivElement> {
|
|
31
30
|
/** Children are surfaced to allow easy overriding */
|
|
32
31
|
children?: React.ReactNode;
|
|
33
|
-
innerProps?:
|
|
32
|
+
innerProps?: {
|
|
33
|
+
className?: string;
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
onClick?: (e: React.MouseEvent<T>) => void;
|
|
36
|
+
htmlAttributes?: React.HTMLAttributes<T>;
|
|
37
|
+
};
|
|
34
38
|
}
|
|
35
39
|
export interface ResizingBarProps<T extends RowData> extends CommonInnerProps<HTMLButtonElement> {
|
|
36
40
|
header: HeaderType<T, unknown>;
|
|
@@ -48,7 +52,7 @@ export interface ActionButtonProps {
|
|
|
48
52
|
export declare const ActionButton: ({ action, children, onClose, innerProps, }: ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
53
|
export interface RowActionCellProps<T extends RowData> {
|
|
50
54
|
cell?: CellContext<T, unknown>;
|
|
51
|
-
innerIconButtonProps?: Partial<
|
|
55
|
+
innerIconButtonProps?: Partial<IconButtonProps>;
|
|
52
56
|
innerMenuProps?: Partial<React.ComponentProps<typeof Menu>>;
|
|
53
57
|
}
|
|
54
58
|
declare const RowActionCell: <T extends RowData>({ cell, innerIconButtonProps, innerMenuProps, }: RowActionCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -95,7 +99,6 @@ declare const PaginationNumericButtons: () => import("react/jsx-runtime").JSX.El
|
|
|
95
99
|
declare const Pagination: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
96
100
|
declare const Navigation: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
97
101
|
declare const LoadingPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
98
|
-
declare const NoDataPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
99
102
|
export interface InlineEditCellProps<T extends RowData> {
|
|
100
103
|
cell: CellContext<T, unknown>;
|
|
101
104
|
value: string;
|
|
@@ -110,4 +113,8 @@ export interface DropDownCellProps<T extends RowData> {
|
|
|
110
113
|
portalTarget?: HTMLElement;
|
|
111
114
|
}
|
|
112
115
|
declare const DropDownCell: <T extends RowData>({ cell, options, portalTarget, }: DropDownCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|
|
116
|
+
declare const NoDataPlaceholder: (({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element) & {
|
|
117
|
+
Content: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
Illustration: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
119
|
+
};
|
|
113
120
|
export { ResizingBar, Header, Body, BodyCell, BodyRow, InlineEditCell, DropDownCell, RowActionCell, HeaderCell, HeaderTitle, Navigation, TableResults, RowsPerPage, Pagination, PaginationNumericButtons, PaginationArrowButton, PaginationNumericButton, NoDataPlaceholder, LoadingPlaceholder, Scrollable, };
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
import { type Table as DataGridType, type RowData } from '@tanstack/react-table';
|
|
23
|
-
import { type ElementBase } from '../helpers';
|
|
24
23
|
import { type DataGridComponentsInterface } from './DataGridContext';
|
|
24
|
+
import { type HtmlAttributes } from '../_common/types';
|
|
25
25
|
export declare const DataGridComponents: {
|
|
26
26
|
ResizingBar: <T extends RowData>({ header, children, innerProps, }: import("./Components").ResizingBarProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
Header: ({ children, innerProps }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -43,7 +43,10 @@ export declare const DataGridComponents: {
|
|
|
43
43
|
PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: import("./Components").PaginationNumericButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
44
|
PaginationArrowButton: ({ action, children, innerProps, }: import("./Components").PaginationArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
45
|
LoadingPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
NoDataPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element
|
|
46
|
+
NoDataPlaceholder: (({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element) & {
|
|
47
|
+
Content: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
Illustration: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
};
|
|
47
50
|
Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
51
|
};
|
|
49
52
|
declare enum BorderStyleEnum {
|
|
@@ -59,8 +62,8 @@ declare enum HeaderStyleEnum {
|
|
|
59
62
|
export type HeaderStyle = `${HeaderStyleEnum}`;
|
|
60
63
|
export type DataGridProps<T extends RowData> = {
|
|
61
64
|
styling?: Partial<{
|
|
62
|
-
/** Alternate the background
|
|
63
|
-
|
|
65
|
+
/** Alternate the background color of rows */
|
|
66
|
+
hasZebraStriping: boolean;
|
|
64
67
|
/** Type of border that will be used */
|
|
65
68
|
borderStyle: BorderStyle;
|
|
66
69
|
/** If header should have styles or not (Aura example) */
|
|
@@ -99,7 +102,7 @@ export type DataGridProps<T extends RowData> = {
|
|
|
99
102
|
/** Table sub-component overrides */
|
|
100
103
|
components?: DataGridComponentsInterface<T>;
|
|
101
104
|
/** Root `div` props */
|
|
102
|
-
rootProps?:
|
|
105
|
+
rootProps?: HtmlAttributes<'div'>;
|
|
103
106
|
};
|
|
104
107
|
export declare const DataGrid: <T extends RowData>(props: DataGridProps<T> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement | null;
|
|
105
108
|
export {};
|
|
@@ -53,11 +53,11 @@ export interface DataGridComponentsInterface<T extends RowData> {
|
|
|
53
53
|
PaginationNumericButton?: Nullable<typeof PaginationNumericButton>;
|
|
54
54
|
}
|
|
55
55
|
export interface DataGridContextType<T extends RowData> {
|
|
56
|
-
|
|
56
|
+
isResizable: boolean;
|
|
57
57
|
tableProps: DataGridType<T>;
|
|
58
58
|
components: DataGridComponentsInterface<T>;
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
isLoading: boolean;
|
|
60
|
+
hasResizeColumns: boolean;
|
|
61
61
|
isKeyboardNavigationEnabled: boolean;
|
|
62
62
|
}
|
|
63
63
|
export declare const DataGridContext: import("react").Context<DataGridContextType<any>>;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { type CellContext, type RowData } from '@tanstack/react-table';
|
|
22
22
|
import '@tanstack/react-table';
|
|
23
|
-
import { type MenuItemProps, type NestedMenuItemProps
|
|
23
|
+
import { type MenuItemProps, type NestedMenuItemProps } from '../context-menu';
|
|
24
24
|
export type ColumnAction = MenuItemProps;
|
|
25
25
|
export type RowAction = MenuItemProps;
|
|
26
26
|
declare module '@tanstack/react-table' {
|
|
@@ -30,7 +30,7 @@ declare module '@tanstack/react-table' {
|
|
|
30
30
|
* Prepends two default sorting actions to the column.
|
|
31
31
|
* Should be disabled for columns that are sorted on server side.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
hasDefaultSortingActions?: boolean;
|
|
34
34
|
/** Column actions that will be rendered in order */
|
|
35
35
|
actions?: ColumnAction[];
|
|
36
36
|
/** Callback for consumer to delegate task like polling */
|
|
@@ -41,7 +41,7 @@ declare module '@tanstack/react-table' {
|
|
|
41
41
|
/** Column actions that will be rendered in order */
|
|
42
42
|
actions: ({
|
|
43
43
|
onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>, cell: CellContext<TData, TValue>) => void;
|
|
44
|
-
} & (Omit<NestedMenuItemProps, 'onClick'> | Omit<
|
|
44
|
+
} & (Omit<NestedMenuItemProps, 'onClick'> | Omit<MenuItemProps, 'onClick'>))[];
|
|
45
45
|
/** Callback for consumer to delegate tasks like polling */
|
|
46
46
|
onOpenChange?: (isOpen: boolean) => void;
|
|
47
47
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { type SVGProps } from 'react';
|
|
22
|
+
declare const NoDataIllustration: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default NoDataIllustration;
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
import { type ReactDatePickerProps } from 'react-datepicker';
|
|
23
|
-
import { type
|
|
24
|
-
|
|
25
|
-
export interface DatePickerProps<WithRange extends boolean = false> extends ElementBase<'div'> {
|
|
23
|
+
import { type TextInputProps } from '../text-input/TextInput';
|
|
24
|
+
export interface DatePickerProps<WithRange extends boolean = false> {
|
|
26
25
|
/** Add Component type here */
|
|
27
|
-
textInputProps?:
|
|
28
|
-
|
|
26
|
+
textInputProps?: TextInputProps;
|
|
27
|
+
isDisabled?: boolean;
|
|
29
28
|
/**
|
|
30
29
|
* Props passed to the react-datepicker component
|
|
31
30
|
* https://reactdatepicker.com/
|
|
32
31
|
*/
|
|
33
|
-
reactDatePickerProps: ReactDatePickerProps<
|
|
32
|
+
reactDatePickerProps: ReactDatePickerProps<WithRange>;
|
|
33
|
+
className?: string;
|
|
34
34
|
}
|
|
35
35
|
export declare const DatePicker: <T extends boolean>(props: DatePickerProps<T> & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement | null;
|