@neo4j-ndl/react 3.9.6 → 3.9.8
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/ai-presence/stories/ai-presence-default.story.js +1 -1
- package/lib/cjs/ai-presence/stories/ai-presence-default.story.js.map +1 -1
- package/lib/cjs/ai-presence/stories/ai-presence.stories.js +2 -0
- package/lib/cjs/ai-presence/stories/ai-presence.stories.js.map +1 -1
- package/lib/cjs/callout/Callout.js +1 -4
- package/lib/cjs/callout/Callout.js.map +1 -1
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-default.story.js +30 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-default.story.js.map +1 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-disabled.story.js +30 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-disabled.story.js.map +1 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-not-clean.story.js +30 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-not-clean.story.js.map +1 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-not-icon-button.story.js +30 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-not-icon-button.story.js.map +1 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-sizes.story.js +30 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-sizes.story.js.map +1 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-tooltip.story.js +38 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier-tooltip.story.js.map +1 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier.stories.js +119 -0
- package/lib/cjs/clipboard-copier/stories/clipboard-copier.stories.js.map +1 -0
- package/lib/cjs/clipboard-copier/stories/index.js +52 -0
- package/lib/cjs/clipboard-copier/stories/index.js.map +1 -0
- package/lib/cjs/color-picker/stories/color-picker-custom-swatches.story.js +26 -26
- package/lib/cjs/color-picker/stories/color-picker-custom-swatches.story.js.map +1 -1
- package/lib/cjs/color-picker/stories/{color-picker-full.story.js → color-picker-default.story.js} +2 -2
- package/lib/cjs/color-picker/stories/color-picker-default.story.js.map +1 -0
- package/lib/cjs/color-picker/stories/{color-picker-without-eye-dropper.story.js → color-picker-without-eyedropper.story.js} +2 -2
- package/lib/cjs/color-picker/stories/color-picker-without-eyedropper.story.js.map +1 -0
- package/lib/cjs/color-picker/stories/color-picker.stories.js +8 -7
- package/lib/cjs/color-picker/stories/color-picker.stories.js.map +1 -1
- package/lib/cjs/color-picker/stories/index.js +9 -9
- package/lib/cjs/color-picker/stories/index.js.map +1 -1
- package/lib/cjs/dialog/stories/dialog-danger.story.js +36 -0
- package/lib/cjs/dialog/stories/dialog-danger.story.js.map +1 -0
- package/lib/cjs/dialog/stories/dialog-default.story.js +34 -0
- package/lib/cjs/dialog/stories/dialog-default.story.js.map +1 -0
- package/lib/cjs/dialog/stories/dialog-image.story.js +40 -0
- package/lib/cjs/dialog/stories/dialog-image.story.js.map +1 -0
- package/lib/cjs/dialog/stories/dialog-info.story.js +36 -0
- package/lib/cjs/dialog/stories/dialog-info.story.js.map +1 -0
- package/lib/cjs/dialog/stories/dialog-top-aligned.story.js +37 -0
- package/lib/cjs/dialog/stories/dialog-top-aligned.story.js.map +1 -0
- package/lib/cjs/dialog/stories/dialog-types.story.js +40 -0
- package/lib/cjs/dialog/stories/dialog-types.story.js.map +1 -0
- package/lib/cjs/dialog/stories/dialog-warning.story.js +36 -0
- package/lib/cjs/dialog/stories/dialog-warning.story.js.map +1 -0
- package/lib/cjs/dialog/stories/dialog.stories.js +150 -0
- package/lib/cjs/dialog/stories/dialog.stories.js.map +1 -0
- package/lib/cjs/dialog/stories/index.js +56 -0
- package/lib/cjs/dialog/stories/index.js.map +1 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-default.story.js +30 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-default.story.js.map +1 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-disabled.story.js +30 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-disabled.story.js.map +1 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-floating.story.js +30 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-floating.story.js.map +1 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-with-avatar.story.js +30 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-with-avatar.story.js.map +1 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-with-context-menu.story.js +35 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-with-context-menu.story.js.map +1 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-with-status-indicator.story.js +30 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button-with-status-indicator.story.js.map +1 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button.stories.js +119 -0
- package/lib/cjs/dropdown-button/stories/dropdown-button.stories.js.map +1 -0
- package/lib/cjs/dropdown-button/stories/index.js +52 -0
- package/lib/cjs/dropdown-button/stories/index.js.map +1 -0
- package/lib/cjs/graph-visualization/graph-visualization-buttons.js +31 -3
- package/lib/cjs/graph-visualization/graph-visualization-buttons.js.map +1 -1
- package/lib/cjs/graph-visualization/graph-visualization.js +26 -3
- package/lib/cjs/graph-visualization/graph-visualization.js.map +1 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization-maximalist.story.js +1 -2
- package/lib/cjs/graph-visualization/stories/graph-visualization-maximalist.story.js.map +1 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization-search.story.js +36 -0
- package/lib/cjs/graph-visualization/stories/graph-visualization-search.story.js.map +1 -0
- package/lib/cjs/graph-visualization/stories/graph-visualization.stories.js +14 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization.stories.js.map +1 -1
- package/lib/cjs/graph-visualization/stories/index.js +5 -1
- package/lib/cjs/graph-visualization/stories/index.js.map +1 -1
- package/lib/cjs/graph-visualization/use-semi-controlled-state.js +7 -2
- package/lib/cjs/graph-visualization/use-semi-controlled-state.js.map +1 -1
- package/lib/cjs/graph-visualization/utils.js +39 -1
- package/lib/cjs/graph-visualization/utils.js.map +1 -1
- package/lib/cjs/icon-button-array/stories/icon-button-array-collapsible.story.js +31 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array-collapsible.story.js.map +1 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array-floating.story.js +31 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array-floating.story.js.map +1 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array-horizontal.story.js +31 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array-horizontal.story.js.map +1 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array-sizes.story.js +31 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array-sizes.story.js.map +1 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array-vertical.story.js +31 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array-vertical.story.js.map +1 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array.stories.js +106 -0
- package/lib/cjs/icon-button-array/stories/icon-button-array.stories.js.map +1 -0
- package/lib/cjs/icon-button-array/stories/index.js +48 -0
- package/lib/cjs/icon-button-array/stories/index.js.map +1 -0
- package/lib/cjs/modal/stories/index.js +40 -0
- package/lib/cjs/modal/stories/index.js.map +1 -0
- package/lib/cjs/modal/stories/modal-contained.story.js +38 -0
- package/lib/cjs/modal/stories/modal-contained.story.js.map +1 -0
- package/lib/cjs/modal/stories/modal-default.story.js +37 -0
- package/lib/cjs/modal/stories/modal-default.story.js.map +1 -0
- package/lib/cjs/modal/stories/modal-sizes.story.js +42 -0
- package/lib/cjs/modal/stories/modal-sizes.story.js.map +1 -0
- package/lib/cjs/modal/stories/modal.stories.js +91 -0
- package/lib/cjs/modal/stories/modal.stories.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-default.story.js +1 -1
- package/lib/cjs/tabs/stories/tabs-default.story.js.map +1 -1
- package/lib/cjs/tabs/stories/tabs-disabled.story.js +1 -1
- package/lib/cjs/tabs/stories/tabs-disabled.story.js.map +1 -1
- package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +1 -1
- package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -1
- package/lib/cjs/tabs/stories/tabs-sizes.story.js +1 -1
- package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -1
- package/lib/cjs/tabs/stories/tabs-with-icons.story.js +1 -1
- package/lib/cjs/tabs/stories/tabs-with-icons.story.js.map +1 -1
- package/lib/cjs/tabs/stories/tabs.stories.js +1 -1
- package/lib/cjs/tabs/stories/tabs.stories.js.map +1 -1
- package/lib/cjs/tag/stories/tag-sizes.story.js +1 -1
- package/lib/cjs/tag/stories/tag-sizes.story.js.map +1 -1
- package/lib/cjs/text-area/TextArea.js +2 -2
- package/lib/cjs/text-area/TextArea.js.map +1 -1
- package/lib/cjs/text-area/stories/index.js +60 -0
- package/lib/cjs/text-area/stories/index.js.map +1 -0
- package/lib/cjs/text-area/stories/text-area-default.story.js +30 -0
- package/lib/cjs/text-area/stories/text-area-default.story.js.map +1 -0
- package/lib/cjs/text-area/stories/text-area-disabled.story.js +30 -0
- package/lib/cjs/text-area/stories/text-area-disabled.story.js.map +1 -0
- package/lib/cjs/text-area/stories/text-area-error.story.js +30 -0
- package/lib/cjs/text-area/stories/text-area-error.story.js.map +1 -0
- package/lib/cjs/text-area/stories/text-area-fluid.story.js +30 -0
- package/lib/cjs/text-area/stories/text-area-fluid.story.js.map +1 -0
- package/lib/cjs/text-area/stories/text-area-information-icon.story.js +34 -0
- package/lib/cjs/text-area/stories/text-area-information-icon.story.js.map +1 -0
- package/lib/cjs/text-area/stories/text-area-optional.story.js +30 -0
- package/lib/cjs/text-area/stories/text-area-optional.story.js.map +1 -0
- package/lib/cjs/text-area/stories/text-area-resizable-style.story.js +30 -0
- package/lib/cjs/text-area/stories/text-area-resizable-style.story.js.map +1 -0
- package/lib/cjs/text-area/stories/text-area-sizes.story.js +30 -0
- package/lib/cjs/text-area/stories/text-area-sizes.story.js.map +1 -0
- package/lib/cjs/text-area/stories/text-area.stories.js +148 -0
- package/lib/cjs/text-area/stories/text-area.stories.js.map +1 -0
- package/lib/esm/ai-presence/stories/ai-presence-default.story.js +1 -1
- package/lib/esm/ai-presence/stories/ai-presence-default.story.js.map +1 -1
- package/lib/esm/ai-presence/stories/ai-presence.stories.js +2 -0
- package/lib/esm/ai-presence/stories/ai-presence.stories.js.map +1 -1
- package/lib/esm/callout/Callout.js +1 -4
- package/lib/esm/callout/Callout.js.map +1 -1
- package/lib/esm/clipboard-copier/stories/clipboard-copier-default.story.js +28 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-default.story.js.map +1 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-disabled.story.js +28 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-disabled.story.js.map +1 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-not-clean.story.js +28 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-not-clean.story.js.map +1 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-not-icon-button.story.js +28 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-not-icon-button.story.js.map +1 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-sizes.story.js +28 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-sizes.story.js.map +1 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-tooltip.story.js +36 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier-tooltip.story.js.map +1 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier.stories.js +116 -0
- package/lib/esm/clipboard-copier/stories/clipboard-copier.stories.js.map +1 -0
- package/lib/esm/clipboard-copier/stories/index.js +40 -0
- package/lib/esm/clipboard-copier/stories/index.js.map +1 -0
- package/lib/esm/color-picker/stories/color-picker-custom-swatches.story.js +26 -26
- package/lib/esm/color-picker/stories/color-picker-custom-swatches.story.js.map +1 -1
- package/lib/esm/color-picker/stories/{color-picker-full.story.js → color-picker-default.story.js} +2 -2
- package/lib/esm/color-picker/stories/color-picker-default.story.js.map +1 -0
- package/lib/esm/color-picker/stories/{color-picker-without-eye-dropper.story.js → color-picker-without-eyedropper.story.js} +2 -2
- package/lib/esm/color-picker/stories/color-picker-without-eyedropper.story.js.map +1 -0
- package/lib/esm/color-picker/stories/color-picker.stories.js +8 -7
- package/lib/esm/color-picker/stories/color-picker.stories.js.map +1 -1
- package/lib/esm/color-picker/stories/index.js +5 -5
- package/lib/esm/color-picker/stories/index.js.map +1 -1
- package/lib/esm/dialog/stories/dialog-danger.story.js +34 -0
- package/lib/esm/dialog/stories/dialog-danger.story.js.map +1 -0
- package/lib/esm/dialog/stories/dialog-default.story.js +32 -0
- package/lib/esm/dialog/stories/dialog-default.story.js.map +1 -0
- package/lib/esm/dialog/stories/dialog-image.story.js +35 -0
- package/lib/esm/dialog/stories/dialog-image.story.js.map +1 -0
- package/lib/esm/dialog/stories/dialog-info.story.js +34 -0
- package/lib/esm/dialog/stories/dialog-info.story.js.map +1 -0
- package/lib/esm/dialog/stories/dialog-top-aligned.story.js +35 -0
- package/lib/esm/dialog/stories/dialog-top-aligned.story.js.map +1 -0
- package/lib/esm/dialog/stories/dialog-types.story.js +38 -0
- package/lib/esm/dialog/stories/dialog-types.story.js.map +1 -0
- package/lib/esm/dialog/stories/dialog-warning.story.js +34 -0
- package/lib/esm/dialog/stories/dialog-warning.story.js.map +1 -0
- package/lib/esm/dialog/stories/dialog.stories.js +144 -0
- package/lib/esm/dialog/stories/dialog.stories.js.map +1 -0
- package/lib/esm/dialog/stories/index.js +43 -0
- package/lib/esm/dialog/stories/index.js.map +1 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-default.story.js +28 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-default.story.js.map +1 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-disabled.story.js +28 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-disabled.story.js.map +1 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-floating.story.js +28 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-floating.story.js.map +1 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-with-avatar.story.js +28 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-with-avatar.story.js.map +1 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-with-context-menu.story.js +33 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-with-context-menu.story.js.map +1 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-with-status-indicator.story.js +28 -0
- package/lib/esm/dropdown-button/stories/dropdown-button-with-status-indicator.story.js.map +1 -0
- package/lib/esm/dropdown-button/stories/dropdown-button.stories.js +116 -0
- package/lib/esm/dropdown-button/stories/dropdown-button.stories.js.map +1 -0
- package/lib/esm/dropdown-button/stories/index.js +40 -0
- package/lib/esm/dropdown-button/stories/index.js.map +1 -0
- package/lib/esm/graph-visualization/graph-visualization-buttons.js +31 -4
- package/lib/esm/graph-visualization/graph-visualization-buttons.js.map +1 -1
- package/lib/esm/graph-visualization/graph-visualization.js +27 -4
- package/lib/esm/graph-visualization/graph-visualization.js.map +1 -1
- package/lib/esm/graph-visualization/stories/graph-visualization-maximalist.story.js +1 -2
- package/lib/esm/graph-visualization/stories/graph-visualization-maximalist.story.js.map +1 -1
- package/lib/esm/graph-visualization/stories/graph-visualization-search.story.js +34 -0
- package/lib/esm/graph-visualization/stories/graph-visualization-search.story.js.map +1 -0
- package/lib/esm/graph-visualization/stories/graph-visualization.stories.js +14 -1
- package/lib/esm/graph-visualization/stories/graph-visualization.stories.js.map +1 -1
- package/lib/esm/graph-visualization/stories/index.js +3 -0
- package/lib/esm/graph-visualization/stories/index.js.map +1 -1
- package/lib/esm/graph-visualization/use-semi-controlled-state.js +7 -2
- package/lib/esm/graph-visualization/use-semi-controlled-state.js.map +1 -1
- package/lib/esm/graph-visualization/utils.js +35 -0
- package/lib/esm/graph-visualization/utils.js.map +1 -1
- package/lib/esm/icon-button-array/stories/icon-button-array-collapsible.story.js +29 -0
- package/lib/esm/icon-button-array/stories/icon-button-array-collapsible.story.js.map +1 -0
- package/lib/esm/icon-button-array/stories/icon-button-array-floating.story.js +29 -0
- package/lib/esm/icon-button-array/stories/icon-button-array-floating.story.js.map +1 -0
- package/lib/esm/icon-button-array/stories/icon-button-array-horizontal.story.js +29 -0
- package/lib/esm/icon-button-array/stories/icon-button-array-horizontal.story.js.map +1 -0
- package/lib/esm/icon-button-array/stories/icon-button-array-sizes.story.js +29 -0
- package/lib/esm/icon-button-array/stories/icon-button-array-sizes.story.js.map +1 -0
- package/lib/esm/icon-button-array/stories/icon-button-array-vertical.story.js +29 -0
- package/lib/esm/icon-button-array/stories/icon-button-array-vertical.story.js.map +1 -0
- package/lib/esm/icon-button-array/stories/icon-button-array.stories.js +103 -0
- package/lib/esm/icon-button-array/stories/icon-button-array.stories.js.map +1 -0
- package/lib/esm/icon-button-array/stories/index.js +37 -0
- package/lib/esm/icon-button-array/stories/index.js.map +1 -0
- package/lib/esm/modal/stories/index.js +31 -0
- package/lib/esm/modal/stories/index.js.map +1 -0
- package/lib/esm/modal/stories/modal-contained.story.js +36 -0
- package/lib/esm/modal/stories/modal-contained.story.js.map +1 -0
- package/lib/esm/modal/stories/modal-default.story.js +35 -0
- package/lib/esm/modal/stories/modal-default.story.js.map +1 -0
- package/lib/esm/modal/stories/modal-sizes.story.js +40 -0
- package/lib/esm/modal/stories/modal-sizes.story.js.map +1 -0
- package/lib/esm/modal/stories/modal.stories.js +85 -0
- package/lib/esm/modal/stories/modal.stories.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-default.story.js +2 -2
- package/lib/esm/tabs/stories/tabs-default.story.js.map +1 -1
- package/lib/esm/tabs/stories/tabs-disabled.story.js +2 -2
- package/lib/esm/tabs/stories/tabs-disabled.story.js.map +1 -1
- package/lib/esm/tabs/stories/tabs-fill-variants.story.js +1 -1
- package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -1
- package/lib/esm/tabs/stories/tabs-sizes.story.js +1 -1
- package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -1
- package/lib/esm/tabs/stories/tabs-with-icons.story.js +2 -2
- package/lib/esm/tabs/stories/tabs-with-icons.story.js.map +1 -1
- package/lib/esm/tabs/stories/tabs.stories.js +1 -1
- package/lib/esm/tabs/stories/tabs.stories.js.map +1 -1
- package/lib/esm/tag/stories/tag-sizes.story.js +1 -1
- package/lib/esm/tag/stories/tag-sizes.story.js.map +1 -1
- package/lib/esm/text-area/TextArea.js +2 -2
- package/lib/esm/text-area/TextArea.js.map +1 -1
- package/lib/esm/text-area/stories/index.js +46 -0
- package/lib/esm/text-area/stories/index.js.map +1 -0
- package/lib/esm/text-area/stories/text-area-default.story.js +28 -0
- package/lib/esm/text-area/stories/text-area-default.story.js.map +1 -0
- package/lib/esm/text-area/stories/text-area-disabled.story.js +28 -0
- package/lib/esm/text-area/stories/text-area-disabled.story.js.map +1 -0
- package/lib/esm/text-area/stories/text-area-error.story.js +28 -0
- package/lib/esm/text-area/stories/text-area-error.story.js.map +1 -0
- package/lib/esm/text-area/stories/text-area-fluid.story.js +28 -0
- package/lib/esm/text-area/stories/text-area-fluid.story.js.map +1 -0
- package/lib/esm/text-area/stories/text-area-information-icon.story.js +32 -0
- package/lib/esm/text-area/stories/text-area-information-icon.story.js.map +1 -0
- package/lib/esm/text-area/stories/text-area-optional.story.js +28 -0
- package/lib/esm/text-area/stories/text-area-optional.story.js.map +1 -0
- package/lib/esm/text-area/stories/text-area-resizable-style.story.js +28 -0
- package/lib/esm/text-area/stories/text-area-resizable-style.story.js.map +1 -0
- package/lib/esm/text-area/stories/text-area-sizes.story.js +28 -0
- package/lib/esm/text-area/stories/text-area-sizes.story.js.map +1 -0
- package/lib/esm/text-area/stories/text-area.stories.js +145 -0
- package/lib/esm/text-area/stories/text-area.stories.js.map +1 -0
- package/lib/types/ai-presence/stories/ai-presence.stories.d.ts +3 -17
- package/lib/types/callout/Callout.d.ts +1 -4
- package/lib/types/clipboard-copier/stories/clipboard-copier-default.story.d.ts +23 -0
- package/lib/types/clipboard-copier/stories/clipboard-copier-disabled.story.d.ts +23 -0
- package/lib/types/clipboard-copier/stories/clipboard-copier-not-clean.story.d.ts +23 -0
- package/lib/types/clipboard-copier/stories/clipboard-copier-not-icon-button.story.d.ts +23 -0
- package/lib/types/clipboard-copier/stories/clipboard-copier-sizes.story.d.ts +23 -0
- package/lib/types/clipboard-copier/stories/clipboard-copier-tooltip.story.d.ts +23 -0
- package/lib/types/clipboard-copier/stories/clipboard-copier.stories.d.ts +31 -0
- package/lib/types/clipboard-copier/stories/index.d.ts +32 -0
- package/lib/types/color-picker/stories/color-picker.stories.d.ts +4 -24
- package/lib/types/color-picker/stories/index.d.ts +3 -3
- package/lib/types/dialog/stories/dialog-danger.story.d.ts +25 -0
- package/lib/types/dialog/stories/dialog-default.story.d.ts +25 -0
- package/lib/types/dialog/stories/dialog-image.story.d.ts +25 -0
- package/lib/types/dialog/stories/dialog-info.story.d.ts +25 -0
- package/lib/types/dialog/stories/dialog-top-aligned.story.d.ts +25 -0
- package/lib/types/dialog/stories/dialog-types.story.d.ts +25 -0
- package/lib/types/dialog/stories/dialog-warning.story.d.ts +25 -0
- package/lib/types/dialog/stories/dialog.stories.d.ts +32 -0
- package/lib/types/dialog/stories/index.d.ts +34 -0
- package/lib/types/dropdown-button/stories/dropdown-button-default.story.d.ts +23 -0
- package/lib/types/dropdown-button/stories/dropdown-button-disabled.story.d.ts +23 -0
- package/lib/types/dropdown-button/stories/dropdown-button-floating.story.d.ts +23 -0
- package/lib/types/dropdown-button/stories/dropdown-button-with-avatar.story.d.ts +23 -0
- package/lib/types/dropdown-button/stories/dropdown-button-with-context-menu.story.d.ts +23 -0
- package/lib/types/dropdown-button/stories/dropdown-button-with-status-indicator.story.d.ts +23 -0
- package/lib/types/dropdown-button/stories/dropdown-button.stories.d.ts +31 -0
- package/lib/types/dropdown-button/stories/index.d.ts +32 -0
- package/lib/types/graph-visualization/graph-visualization-buttons.d.ts +8 -0
- package/lib/types/graph-visualization/graph-visualization.d.ts +14 -1
- package/lib/types/graph-visualization/stories/graph-visualization-search.story.d.ts +22 -0
- package/lib/types/graph-visualization/stories/graph-visualization.stories.d.ts +1 -0
- package/lib/types/graph-visualization/stories/index.d.ts +2 -0
- package/lib/types/graph-visualization/use-semi-controlled-state.d.ts +3 -1
- package/lib/types/graph-visualization/utils.d.ts +6 -0
- package/lib/types/icon-button-array/stories/icon-button-array-collapsible.story.d.ts +23 -0
- package/lib/types/icon-button-array/stories/icon-button-array-floating.story.d.ts +23 -0
- package/lib/types/icon-button-array/stories/icon-button-array-horizontal.story.d.ts +23 -0
- package/lib/types/icon-button-array/stories/icon-button-array-sizes.story.d.ts +23 -0
- package/lib/types/icon-button-array/stories/icon-button-array-vertical.story.d.ts +23 -0
- package/lib/types/icon-button-array/stories/icon-button-array.stories.d.ts +30 -0
- package/lib/types/icon-button-array/stories/index.d.ts +30 -0
- package/lib/types/modal/stories/index.d.ts +26 -0
- package/lib/types/modal/stories/modal-contained.story.d.ts +25 -0
- package/lib/types/modal/stories/modal-default.story.d.ts +25 -0
- package/lib/types/modal/stories/modal-sizes.story.d.ts +25 -0
- package/lib/types/modal/stories/modal.stories.d.ts +28 -0
- package/lib/types/text-area/stories/index.d.ts +36 -0
- package/lib/types/text-area/stories/text-area-default.story.d.ts +23 -0
- package/lib/types/text-area/stories/text-area-disabled.story.d.ts +23 -0
- package/lib/types/text-area/stories/text-area-error.story.d.ts +23 -0
- package/lib/types/text-area/stories/text-area-fluid.story.d.ts +23 -0
- package/lib/types/text-area/stories/text-area-information-icon.story.d.ts +23 -0
- package/lib/types/text-area/stories/text-area-optional.story.d.ts +23 -0
- package/lib/types/text-area/stories/text-area-resizable-style.story.d.ts +23 -0
- package/lib/types/text-area/stories/text-area-sizes.story.d.ts +23 -0
- package/lib/types/text-area/stories/text-area.stories.d.ts +33 -0
- package/package.json +6 -2
- package/lib/cjs/color-picker/stories/color-picker-full.story.js.map +0 -1
- package/lib/cjs/color-picker/stories/color-picker-without-eye-dropper.story.js.map +0 -1
- package/lib/esm/color-picker/stories/color-picker-full.story.js.map +0 -1
- package/lib/esm/color-picker/stories/color-picker-without-eye-dropper.story.js.map +0 -1
- /package/lib/types/color-picker/stories/{color-picker-full.story.d.ts → color-picker-default.story.d.ts} +0 -0
- /package/lib/types/color-picker/stories/{color-picker-without-eye-dropper.story.d.ts → color-picker-without-eyedropper.story.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-button-disabled.story.js","sourceRoot":"","sources":["../../../../src/dropdown-button/stories/dropdown-button-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAkD;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,uBAAC,sBAAc,IAAC,UAAU,EAAE,IAAI,gCAAkC,CAAC;AAC5E,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return (0, jsx_runtime_1.jsx)(react_1.DropdownButton, { isFloating: true, children: "Dropdown Button" });
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=dropdown-button-floating.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-button-floating.story.js","sourceRoot":"","sources":["../../../../src/dropdown-button/stories/dropdown-button-floating.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAkD;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,uBAAC,sBAAc,IAAC,UAAU,EAAE,IAAI,gCAAkC,CAAC;AAC5E,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(react_1.DropdownButton, { leftIcon: (0, jsx_runtime_1.jsx)(react_1.Avatar, { name: "KM", size: "medium", type: "icon", shape: "square" }), children: "Dropdown Button" }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=dropdown-button-with-avatar.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-button-with-avatar.story.js","sourceRoot":"","sources":["../../../../src/dropdown-button/stories/dropdown-button-with-avatar.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA0D;AAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,sBAAc,IACb,QAAQ,EAAE,uBAAC,cAAM,IAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,QAAQ,GAAG,gCAGxD,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const react_2 = require("react");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
const anchorRef = (0, react_2.useRef)(null);
|
|
29
|
+
const [isMenuOpen, setIsMenuOpen] = (0, react_2.useState)(false);
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(react_1.DropdownButton, { isOpen: isMenuOpen, onClick: () => setIsMenuOpen((old) => !old), ref: anchorRef, children: "Dropdown Button" }), (0, jsx_runtime_1.jsx)(react_1.Menu, { isOpen: isMenuOpen, anchorRef: anchorRef, onClose: () => setIsMenuOpen(false), children: (0, jsx_runtime_1.jsxs)(react_1.Menu.Items, { htmlAttributes: {
|
|
31
|
+
id: 'default-menu',
|
|
32
|
+
}, children: [(0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 1" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 2" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 3" }), (0, jsx_runtime_1.jsx)(react_1.Menu.Item, { title: "Action 4" })] }) })] }));
|
|
33
|
+
};
|
|
34
|
+
exports.default = Component;
|
|
35
|
+
//# sourceMappingURL=dropdown-button-with-context-menu.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-button-with-context-menu.story.js","sourceRoot":"","sources":["../../../../src/dropdown-button/stories/dropdown-button-with-context-menu.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwD;AACxD,iCAAyC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,SAAS,GAAG,IAAA,cAAM,EAA2B,IAAI,CAAC,CAAC;IACzD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,4CACE,uBAAC,sBAAc,IACb,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAC3C,GAAG,EAAE,SAAS,gCAGC,EACjB,uBAAC,YAAI,IACH,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,YAEnC,wBAAC,YAAI,CAAC,KAAK,IACT,cAAc,EAAE;wBACd,EAAE,EAAE,cAAc;qBACnB,aAED,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,uBAAC,YAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,IACnB,GACR,IACH,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(react_1.DropdownButton, { leftIcon: (0, jsx_runtime_1.jsx)(react_1.StatusIndicator, { type: "info" }), children: "Dropdown Button" }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=dropdown-button-with-status-indicator.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-button-with-status-indicator.story.js","sourceRoot":"","sources":["../../../../src/dropdown-button/stories/dropdown-button-with-status-indicator.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAmE;AAEnE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,sBAAc,IAAC,QAAQ,EAAE,uBAAC,uBAAe,IAAC,IAAI,EAAC,MAAM,GAAG,gCAExC,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.WithContextMenu = exports.Floating = exports.Disabled = exports.WithStatusIndicator = exports.WithAvatar = exports.Default = void 0;
|
|
25
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
|
+
const index_1 = require("../../index");
|
|
27
|
+
const _1 = require(".");
|
|
28
|
+
const componentMeta = {
|
|
29
|
+
title: 'Components/Buttons/DropdownButton',
|
|
30
|
+
id: 'components-buttons-dropdown-button',
|
|
31
|
+
component: index_1.DropdownButton,
|
|
32
|
+
tags: ['docsPage'],
|
|
33
|
+
parameters: {
|
|
34
|
+
controls: { disable: true },
|
|
35
|
+
},
|
|
36
|
+
decorators: [
|
|
37
|
+
(Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-justify-center", children: (0, jsx_runtime_1.jsx)(Story, {}) })),
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
exports.default = componentMeta;
|
|
41
|
+
exports.Default = {
|
|
42
|
+
args: {},
|
|
43
|
+
render: _1.DropdownButtonDefault,
|
|
44
|
+
parameters: {
|
|
45
|
+
docs: {
|
|
46
|
+
source: {
|
|
47
|
+
language: 'tsx',
|
|
48
|
+
type: 'code',
|
|
49
|
+
code: _1.DropdownButtonDefaultSource,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
exports.WithAvatar = {
|
|
55
|
+
args: {},
|
|
56
|
+
render: _1.DropdownButtonWithAvatar,
|
|
57
|
+
parameters: {
|
|
58
|
+
docs: {
|
|
59
|
+
source: {
|
|
60
|
+
language: 'tsx',
|
|
61
|
+
type: 'code',
|
|
62
|
+
code: _1.DropdownButtonWithAvatarSource,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
exports.WithStatusIndicator = {
|
|
68
|
+
args: {},
|
|
69
|
+
render: _1.DropdownButtonWithStatusIndicator,
|
|
70
|
+
parameters: {
|
|
71
|
+
docs: {
|
|
72
|
+
source: {
|
|
73
|
+
language: 'tsx',
|
|
74
|
+
type: 'code',
|
|
75
|
+
code: _1.DropdownButtonWithStatusIndicatorSource,
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
exports.Disabled = {
|
|
81
|
+
args: {},
|
|
82
|
+
render: _1.DropdownButtonDisabled,
|
|
83
|
+
parameters: {
|
|
84
|
+
docs: {
|
|
85
|
+
source: {
|
|
86
|
+
language: 'tsx',
|
|
87
|
+
type: 'code',
|
|
88
|
+
code: _1.DropdownButtonDisabledSource,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
exports.Floating = {
|
|
94
|
+
args: {},
|
|
95
|
+
render: _1.DropdownButtonFloating,
|
|
96
|
+
parameters: {
|
|
97
|
+
docs: {
|
|
98
|
+
source: {
|
|
99
|
+
language: 'tsx',
|
|
100
|
+
type: 'code',
|
|
101
|
+
code: _1.DropdownButtonFloatingSource,
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
exports.WithContextMenu = {
|
|
107
|
+
args: {},
|
|
108
|
+
render: _1.DropdownButtonWithContextMenu,
|
|
109
|
+
parameters: {
|
|
110
|
+
docs: {
|
|
111
|
+
source: {
|
|
112
|
+
language: 'tsx',
|
|
113
|
+
type: 'code',
|
|
114
|
+
code: _1.DropdownButtonWithContextMenuSource,
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
//# sourceMappingURL=dropdown-button.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-button.stories.js","sourceRoot":"","sources":["../../../../src/dropdown-button/stories/dropdown-button.stories.tsx"],"names":[],"mappings":";;;;AAuBA,uCAA6C;AAC7C,wBAaW;AAEX,MAAM,aAAa,GAAgC;IACjD,KAAK,EAAE,mCAAmC;IAC1C,EAAE,EAAE,oCAAoC;IACxC,SAAS,EAAE,sBAAc;IACzB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,gCAAK,SAAS,EAAC,yBAAyB,YACtC,uBAAC,KAAK,KAAG,GACL,CACP;KACF;CACoC,CAAC;AAExC,kBAAe,aAAa,CAAC;AAGhB,QAAA,OAAO,GAAU;IA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,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,sCAAmC;aAC1C;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.DropdownButtonWithContextMenuSource = exports.DropdownButtonFloatingSource = exports.DropdownButtonDisabledSource = exports.DropdownButtonWithStatusIndicatorSource = exports.DropdownButtonWithAvatarSource = exports.DropdownButtonDefaultSource = exports.DropdownButtonWithContextMenu = exports.DropdownButtonFloating = exports.DropdownButtonDisabled = exports.DropdownButtonWithStatusIndicator = exports.DropdownButtonWithAvatar = exports.DropdownButtonDefault = void 0;
|
|
27
|
+
var dropdown_button_default_story_1 = require("./dropdown-button-default.story");
|
|
28
|
+
Object.defineProperty(exports, "DropdownButtonDefault", { enumerable: true, get: function () { return __importDefault(dropdown_button_default_story_1).default; } });
|
|
29
|
+
var dropdown_button_with_avatar_story_1 = require("./dropdown-button-with-avatar.story");
|
|
30
|
+
Object.defineProperty(exports, "DropdownButtonWithAvatar", { enumerable: true, get: function () { return __importDefault(dropdown_button_with_avatar_story_1).default; } });
|
|
31
|
+
var dropdown_button_with_status_indicator_story_1 = require("./dropdown-button-with-status-indicator.story");
|
|
32
|
+
Object.defineProperty(exports, "DropdownButtonWithStatusIndicator", { enumerable: true, get: function () { return __importDefault(dropdown_button_with_status_indicator_story_1).default; } });
|
|
33
|
+
var dropdown_button_disabled_story_1 = require("./dropdown-button-disabled.story");
|
|
34
|
+
Object.defineProperty(exports, "DropdownButtonDisabled", { enumerable: true, get: function () { return __importDefault(dropdown_button_disabled_story_1).default; } });
|
|
35
|
+
var dropdown_button_floating_story_1 = require("./dropdown-button-floating.story");
|
|
36
|
+
Object.defineProperty(exports, "DropdownButtonFloating", { enumerable: true, get: function () { return __importDefault(dropdown_button_floating_story_1).default; } });
|
|
37
|
+
var dropdown_button_with_context_menu_story_1 = require("./dropdown-button-with-context-menu.story");
|
|
38
|
+
Object.defineProperty(exports, "DropdownButtonWithContextMenu", { enumerable: true, get: function () { return __importDefault(dropdown_button_with_context_menu_story_1).default; } });
|
|
39
|
+
const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
|
|
40
|
+
const dropdown_button_default_story_raw_1 = __importDefault(require("./dropdown-button-default.story?raw"));
|
|
41
|
+
const dropdown_button_disabled_story_raw_1 = __importDefault(require("./dropdown-button-disabled.story?raw"));
|
|
42
|
+
const dropdown_button_floating_story_raw_1 = __importDefault(require("./dropdown-button-floating.story?raw"));
|
|
43
|
+
const dropdown_button_with_avatar_story_raw_1 = __importDefault(require("./dropdown-button-with-avatar.story?raw"));
|
|
44
|
+
const dropdown_button_with_context_menu_story_raw_1 = __importDefault(require("./dropdown-button-with-context-menu.story?raw"));
|
|
45
|
+
const dropdown_button_with_status_indicator_story_raw_1 = __importDefault(require("./dropdown-button-with-status-indicator.story?raw"));
|
|
46
|
+
exports.DropdownButtonDefaultSource = (0, export_stories_utils_1.removeLicenseHeader)(dropdown_button_default_story_raw_1.default);
|
|
47
|
+
exports.DropdownButtonWithAvatarSource = (0, export_stories_utils_1.removeLicenseHeader)(dropdown_button_with_avatar_story_raw_1.default);
|
|
48
|
+
exports.DropdownButtonWithStatusIndicatorSource = (0, export_stories_utils_1.removeLicenseHeader)(dropdown_button_with_status_indicator_story_raw_1.default);
|
|
49
|
+
exports.DropdownButtonDisabledSource = (0, export_stories_utils_1.removeLicenseHeader)(dropdown_button_disabled_story_raw_1.default);
|
|
50
|
+
exports.DropdownButtonFloatingSource = (0, export_stories_utils_1.removeLicenseHeader)(dropdown_button_floating_story_raw_1.default);
|
|
51
|
+
exports.DropdownButtonWithContextMenuSource = (0, export_stories_utils_1.removeLicenseHeader)(dropdown_button_with_context_menu_story_raw_1.default);
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dropdown-button/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AACzC,yFAA0F;AAAjF,8JAAA,OAAO,OAA4B;AAC5C,6GAA6G;AAApG,iLAAA,OAAO,OAAqC;AACrD,mFAAqF;AAA5E,yJAAA,OAAO,OAA0B;AAC1C,mFAAqF;AAA5E,yJAAA,OAAO,OAA0B;AAC1C,qGAAqG;AAA5F,yKAAA,OAAO,OAAiC;AAEjD,wFAAoF;AAEpF,4GAAiF;AACjF,8GAAmF;AACnF,8GAAmF;AACnF,oHAAwF;AACxF,gIAAmG;AACnG,wIAA2G;AAE9F,QAAA,2BAA2B,GAAG,IAAA,0CAAmB,EAC5D,2CAA8B,CAC/B,CAAC;AACW,QAAA,8BAA8B,GAAG,IAAA,0CAAmB,EAC/D,+CAAiC,CAClC,CAAC;AACW,QAAA,uCAAuC,GAAG,IAAA,0CAAmB,EACxE,yDAA0C,CAC3C,CAAC;AACW,QAAA,4BAA4B,GAAG,IAAA,0CAAmB,EAC7D,4CAA+B,CAChC,CAAC;AACW,QAAA,4BAA4B,GAAG,IAAA,0CAAmB,EAC7D,4CAA+B,CAChC,CAAC;AACW,QAAA,mCAAmC,GAAG,IAAA,0CAAmB,EACpE,qDAAsC,CACvC,CAAC"}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DownloadButton = exports.ToggleSidePanelButton = exports.ZoomToFitButton = exports.ZoomOutButton = exports.ZoomInButton = exports.LassoSelectButton = exports.BoxSelectButton = exports.SingleSelectButton = exports.GroupButton = void 0;
|
|
6
|
+
exports.DownloadButton = exports.SearchButton = exports.ToggleSidePanelButton = exports.ZoomToFitButton = exports.ZoomOutButton = exports.ZoomInButton = exports.LassoSelectButton = exports.BoxSelectButton = exports.SingleSelectButton = exports.GroupButton = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
@@ -30,9 +30,11 @@ const icons_1 = require("@neo4j-ndl/react/icons");
|
|
|
30
30
|
const classnames_1 = __importDefault(require("classnames"));
|
|
31
31
|
const react_2 = require("react");
|
|
32
32
|
const graph_visualization_context_1 = require("./graph-visualization-context");
|
|
33
|
+
const use_semi_controlled_state_1 = require("./use-semi-controlled-state");
|
|
34
|
+
const utils_1 = require("./utils");
|
|
33
35
|
const GroupButton = (props) => {
|
|
34
36
|
const { isActive, ariaLabel, isDisabled, tipContent, onClick, onMouseDown, tooltipPlacement, className, style, htmlAttributes, children, } = props;
|
|
35
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", placement: tooltipPlacement, children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.IconButton, { ariaLabel: ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : tipContent, size: "small", className: className, style: style, isClean: true, isGrouped: true, isActive: isActive, isDisabled: isDisabled, onClick: onClick, htmlAttributes: Object.assign({ onMouseDown }, htmlAttributes), children: children }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { children: tipContent })] }));
|
|
37
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", placement: tooltipPlacement, isPortaled: false, children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.IconButton, { ariaLabel: ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : tipContent, size: "small", className: className, style: style, isClean: true, isGrouped: true, isActive: isActive, isDisabled: isDisabled, onClick: onClick, htmlAttributes: Object.assign({ onMouseDown }, htmlAttributes), children: children }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { style: { whiteSpace: 'nowrap' }, children: tipContent })] }));
|
|
36
38
|
};
|
|
37
39
|
exports.GroupButton = GroupButton;
|
|
38
40
|
const targetIsTextInput = (target) => {
|
|
@@ -124,9 +126,35 @@ const ToggleSidePanelButton = ({ className, htmlAttributes, style, tooltipPlacem
|
|
|
124
126
|
throw new Error('Using the ToggleSidePanelButton requires having a sidepanel');
|
|
125
127
|
}
|
|
126
128
|
const { isSidePanelOpen, setIsSidePanelOpen } = sidepanel;
|
|
127
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { placement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'bottom', type: "simple", children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.IconButton, { size: "small", onClick: () => setIsSidePanelOpen === null || setIsSidePanelOpen === void 0 ? void 0 : setIsSidePanelOpen(!isSidePanelOpen), isFloating: true, ariaLabel: "Toggle node properties panel", className: (0, classnames_1.default)('ndl-graph-visualization-toggle-sidepanel', className), style: style, htmlAttributes: Object.assign({ 'aria-pressed': isSidePanelOpen }, htmlAttributes), children: (0, jsx_runtime_1.jsx)(icons_1.SidebarLineRightIcon, { className: "ndl-graph-visualization-toggle-icon" }) }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { children: (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "body-small", children: isSidePanelOpen ? 'Close panel' : 'Open panel' }) })] }));
|
|
129
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { placement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'bottom', type: "simple", isPortaled: false, children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.IconButton, { size: "small", onClick: () => setIsSidePanelOpen === null || setIsSidePanelOpen === void 0 ? void 0 : setIsSidePanelOpen(!isSidePanelOpen), isFloating: true, ariaLabel: "Toggle node properties panel", className: (0, classnames_1.default)('ndl-graph-visualization-toggle-sidepanel', className), style: style, htmlAttributes: Object.assign({ 'aria-pressed': isSidePanelOpen }, htmlAttributes), children: (0, jsx_runtime_1.jsx)(icons_1.SidebarLineRightIcon, { className: "ndl-graph-visualization-toggle-icon" }) }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { style: { whiteSpace: 'nowrap' }, children: (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "body-small", children: isSidePanelOpen ? 'Close panel' : 'Open panel' }) })] }));
|
|
128
130
|
};
|
|
129
131
|
exports.ToggleSidePanelButton = ToggleSidePanelButton;
|
|
132
|
+
const SearchButton = ({ className, style, htmlAttributes, tooltipPlacement, open: rawOpen, setOpen: rawSetOpen, searchTerm: rawSearchTerm, setSearchTerm: rawSetSearchTerm, onSearch = () => {
|
|
133
|
+
// no-op
|
|
134
|
+
}, }) => {
|
|
135
|
+
const [isOpen, setIsOpen] = (0, use_semi_controlled_state_1.useSemicontrolledState)(rawOpen !== null && rawOpen !== void 0 ? rawOpen : false, rawSetOpen);
|
|
136
|
+
const [searchTerm, setSearchTerm] = (0, use_semi_controlled_state_1.useSemicontrolledState)(rawSearchTerm !== null && rawSearchTerm !== void 0 ? rawSearchTerm : '', rawSetSearchTerm);
|
|
137
|
+
const { nvlGraph } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
|
|
138
|
+
const handleSearchChange = (newValue) => {
|
|
139
|
+
setSearchTerm(newValue);
|
|
140
|
+
if (newValue === '') {
|
|
141
|
+
onSearch(undefined, undefined);
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const rawNodes = Object.values(nvlGraph.dataLookupTable.nodes);
|
|
145
|
+
const rawRels = Object.values(nvlGraph.dataLookupTable.relationships);
|
|
146
|
+
onSearch((0, utils_1.searchNodes)(rawNodes, newValue), (0, utils_1.searchRels)(rawRels, newValue));
|
|
147
|
+
};
|
|
148
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isOpen ? ((0, jsx_runtime_1.jsx)(react_1.TextInput, { size: "small", leftElement: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}), rightElement: (0, jsx_runtime_1.jsx)(react_1.IconButton, { onClick: () => handleSearchChange(''), isClean: true, ariaLabel: "Clear search", children: (0, jsx_runtime_1.jsx)(icons_1.XMarkIconOutline, {}) }), placeholder: "Search...", value: searchTerm, onChange: (e) => handleSearchChange(e.target.value), htmlAttributes: {
|
|
149
|
+
autoFocus: true,
|
|
150
|
+
onBlur: () => {
|
|
151
|
+
if (searchTerm === '') {
|
|
152
|
+
setIsOpen(false);
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
} })) : ((0, jsx_runtime_1.jsxs)(react_1.Tooltip, { type: "simple", placement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'bottom', children: [(0, jsx_runtime_1.jsx)(react_1.Tooltip.Trigger, { hasButtonWrapper: true, children: (0, jsx_runtime_1.jsx)(react_1.IconButton, { size: "small", isFloating: true, onClick: () => setIsOpen((o) => !o), ariaLabel: "Search", className: className, style: style, htmlAttributes: htmlAttributes, children: (0, jsx_runtime_1.jsx)(icons_1.MagnifyingGlassIconOutline, {}) }) }), (0, jsx_runtime_1.jsx)(react_1.Tooltip.Content, { children: (0, jsx_runtime_1.jsx)(react_1.Typography, { variant: "body-small", children: " Search " }) })] })) }));
|
|
156
|
+
};
|
|
157
|
+
exports.SearchButton = SearchButton;
|
|
130
158
|
const DownloadButton = ({ className, style, htmlAttributes, tooltipPlacement, }) => {
|
|
131
159
|
const { nvlInstance } = (0, graph_visualization_context_1.useGraphVisualizationContext)();
|
|
132
160
|
const [isDownloadMenuOpen, setOpen] = (0, react_2.useState)(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-visualization-buttons.js","sourceRoot":"","sources":["../../../src/graph-visualization/graph-visualization-buttons.tsx"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAM0B;AAC1B,kDASgC;AAChC,4DAA2C;AAC3C,iCAOe;AAGf,+EAGuC;AAqBhC,MAAM,WAAW,GAAG,CAAC,KAAoC,EAAE,EAAE;IAClE,MAAM,EACJ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,cAAc,EACd,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,OAAO,CACL,wBAAC,eAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,gBAAgB,aAChD,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/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K,EAAC,iBAAiB,EACvB,OAAO,EAAE,GAAG,EAAE;;4BACZ,MAAA,WAAW,CAAC,OAAO,0CAAE,UAAU,CAAC,EAAE,CAAC,CAAC;4BACpC,aAAa,EAAE,CAAC;wBAClB,CAAC,GACD,GACS,GACR,IACN,CACJ,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,cAAc,kBAiDzB"}
|
|
1
|
+
{"version":3,"file":"graph-visualization-buttons.js","sourceRoot":"","sources":["../../../src/graph-visualization/graph-visualization-buttons.tsx"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAO0B;AAC1B,kDAWgC;AAChC,4DAA2C;AAC3C,iCAOe;AAGf,+EAGuC;AACvC,2EAAqE;AACrE,mCAAkD;AAqB3C,MAAM,WAAW,GAAG,CAAC,KAAoC,EAAE,EAAE;IAClE,MAAM,EACJ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,cAAc,EACd,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,OAAO,CACL,wBAAC,eAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,KAAK,aACnE,uBAAC,eAAO,CAAC,OAAO,IAAC,gBAAgB,kBAC/B,uBAAC,kBAAU,IACT,SAAS,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,UAAU,EAClC,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,OAAO,QACP,SAAS,QACT,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,cAAc,kBACZ,WAAW,IACR,cAAc,aAGlB,QAAQ,GACE,GACG,EAClB,uBAAC,eAAO,CAAC,OAAO,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,E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-
* With
|
|
138
|
+
* With highlighting:
|
|
139
139
|
* ```tsx
|
|
140
140
|
* <GraphVisualization
|
|
141
141
|
* nodes={nodes}
|
|
@@ -160,7 +160,7 @@ function GraphVisualization(_a) {
|
|
|
160
160
|
const instanceId = (0, react_3.useId)();
|
|
161
161
|
// Respect NDL theme changes
|
|
162
162
|
const { theme } = (0, react_1.useNeedleTheme)();
|
|
163
|
-
const { bg, border } = base_1.tokens.theme[theme].palette.neutral;
|
|
163
|
+
const { bg, border, text } = base_1.tokens.theme[theme].palette.neutral;
|
|
164
164
|
// key required for nvl react responsiveness
|
|
165
165
|
const [key, setKey] = (0, react_3.useState)(0);
|
|
166
166
|
(0, react_3.useEffect)(() => {
|
|
@@ -186,7 +186,7 @@ function GraphVisualization(_a) {
|
|
|
186
186
|
const sidepanel = (0, react_3.useMemo)(() => {
|
|
187
187
|
if (rawSidepanel === undefined) {
|
|
188
188
|
return {
|
|
189
|
-
children: (0, jsx_runtime_1.jsx)(
|
|
189
|
+
children: (0, jsx_runtime_1.jsx)(GraphVisualization.SingleSelectionSidePanelContents, {}),
|
|
190
190
|
isSidePanelOpen,
|
|
191
191
|
onSidePanelResize: setSidePanelWidth,
|
|
192
192
|
setIsSidePanelOpen,
|
|
@@ -212,6 +212,8 @@ function GraphVisualization(_a) {
|
|
|
212
212
|
sidepanel,
|
|
213
213
|
}, children: [(0, jsx_runtime_1.jsxs)("div", { className: "ndl-graph-visualization", children: [(0, jsx_runtime_1.jsx)(react_2.InteractiveNvlWrapper, Object.assign({ layout: "d3Force", nodes: nodesWithState, rels: relsWithState, nvlOptions: Object.assign(Object.assign(Object.assign({}, exports.DEFAULT_NVL_OPTIONS), { instanceId, styling: {
|
|
214
214
|
defaultRelationshipColor: border.strongest,
|
|
215
|
+
disabledItemColor: bg.strong,
|
|
216
|
+
disabledItemFontColor: text.weakest,
|
|
215
217
|
dropShadowColor: border.weak,
|
|
216
218
|
selectedInnerBorderColor: bg.default,
|
|
217
219
|
} }), nvlOptions), nvlCallbacks: Object.assign({ onLayoutComputing(isComputing) {
|
|
@@ -302,4 +304,25 @@ GraphVisualization.LassoSelectButton = graph_visualization_buttons_1.LassoSelect
|
|
|
302
304
|
* @alpha
|
|
303
305
|
*/
|
|
304
306
|
GraphVisualization.SingleSelectButton = graph_visualization_buttons_1.SingleSelectButton;
|
|
307
|
+
/**
|
|
308
|
+
* Search button for use within a GraphVisualization component.
|
|
309
|
+
*
|
|
310
|
+
* @remarks
|
|
311
|
+
* Enables search mode where clicking opens a search input for filtering nodes and relationships.
|
|
312
|
+
*
|
|
313
|
+
* @alpha
|
|
314
|
+
*/
|
|
315
|
+
GraphVisualization.SearchButton = graph_visualization_buttons_1.SearchButton;
|
|
316
|
+
/**
|
|
317
|
+
* Single node selection side panel for use within a GraphVisualization component.
|
|
318
|
+
*
|
|
319
|
+
* @remarks
|
|
320
|
+
* Displays detailed information about the selected node or relationship.
|
|
321
|
+
* Panel is automatically opened when a node or relationship is selected.
|
|
322
|
+
* Also when user click on the show panel button in the top right corner.
|
|
323
|
+
*
|
|
324
|
+
* @alpha
|
|
325
|
+
*/
|
|
326
|
+
GraphVisualization.SingleSelectionSidePanelContents =
|
|
327
|
+
single_selection_sidepanel_contents_1.SingleSelectionSidepanelContents;
|
|
305
328
|
//# sourceMappingURL=graph-visualization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-visualization.js","sourceRoot":"","sources":["../../../src/graph-visualization/graph-visualization.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"graph-visualization.js","sourceRoot":"","sources":["../../../src/graph-visualization/graph-visualization.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8LA,gDAoLC;;AAlXD;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,0CAAyC;AACzC,4CAAmE;AAEnE,4CAG0B;AAC1B,4DAA2C;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,gDAAkB,CAAC;AAE3D;;;;;;;GAOG;AACH,kBAAkB,CAAC,YAAY,GAAG,0CAAY,CAAC;AAE/C;;;;;;;;;GASG;AACH,kBAAkB,CAAC,gCAAgC;IACjD,sEAAgC,CAAC"}
|
|
@@ -25,7 +25,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
25
25
|
const react_1 = require("@neo4j-ndl/react");
|
|
26
26
|
const react_2 = require("react");
|
|
27
27
|
const graph_visualization_1 = require("../graph-visualization");
|
|
28
|
-
const single_selection_sidepanel_contents_1 = require("../sidepanel-components/single-selection-sidepanel-contents");
|
|
29
28
|
const nodes = [
|
|
30
29
|
{
|
|
31
30
|
id: 'node1',
|
|
@@ -93,7 +92,7 @@ const Component = () => {
|
|
|
93
92
|
const [isOpen, setIsOpen] = (0, react_2.useState)(true);
|
|
94
93
|
const [gesture, setGesture] = (0, react_2.useState)('box');
|
|
95
94
|
return ((0, jsx_runtime_1.jsx)("div", { style: { height: '600px' }, children: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization, { gesture: gesture, setGesture: setGesture, bottomLeftIsland: (0, jsx_runtime_1.jsxs)(react_1.IconButtonArray, { children: [(0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.LassoSelectButton, {}), (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.SingleSelectButton, {}), (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.BoxSelectButton, {})] }), bottomRightIsland: (0, jsx_runtime_1.jsxs)(react_1.IconButtonArray, { children: [(0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.ZoomInButton, {}), (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.ZoomOutButton, {}), (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.ZoomToFitButton, {})] }), nodes: nodes, rels: rels, sidepanel: {
|
|
96
|
-
children: (0, jsx_runtime_1.jsx)(
|
|
95
|
+
children: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.SingleSelectionSidePanelContents, {}),
|
|
97
96
|
isSidePanelOpen: isOpen,
|
|
98
97
|
onSidePanelResize: () => {
|
|
99
98
|
/* no op */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-visualization-maximalist.story.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization-maximalist.story.tsx"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAAmD;AACnD,iCAAiC;AAEjC,gEAA4D;
|
|
1
|
+
{"version":3,"file":"graph-visualization-maximalist.story.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization-maximalist.story.tsx"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAAmD;AACnD,iCAAiC;AAEjC,gEAA4D;AAG5D,MAAM,KAAK,GAAc;IACvB;QACE,EAAE,EAAE,OAAO;QACX,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;QAChC,UAAU,EAAE;YACV,mBAAmB,EAAE;gBACnB,WAAW,EAAE,oBAAoB;gBACjC,IAAI,EAAE,UAAU;aACjB;YACD,cAAc,EAAE;gBACd,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,MAAM;aACb;YACD,UAAU,EAAE;gBACV,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;aACb;YACD,SAAS,EAAE;gBACT,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,SAAS;aAChB;YACD,QAAQ,EAAE;gBACR,WAAW,EAAE,sCAAsC;gBACnD,IAAI,EAAE,OAAO;aACd;YACD,IAAI,EAAE;gBACJ,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;aACd;SACF;KACF;IACD;QACE,EAAE,EAAE,OAAO;QACX,MAAM,EAAE,CAAC,MA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,aAAa,KAAG,EACpC,uBAAC,wCAAkB,CAAC,eAAe,KAAG,IACtB,EAEpB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE;gBACT,QAAQ,EAAE,uBAAC,wCAAkB,CAAC,gCAAgC,KAAG;gBACjE,eAAe,EAAE,MAAM;gBACvB,iBAAiB,EAAE,GAAG,EAAE;oBACtB,WAAW;gBACb,CAAC;gBACD,kBAAkB,EAAE,SAAS;gBAC7B,cAAc,EAAE,GAAG;aACpB,EACD,aAAa,EAAE,uBAAC,wCAAkB,CAAC,cAAc,KAAG,EACpD,cAAc,EAAE,uBAAC,wCAAkB,CAAC,qBAAqB,KAAG,EAC5D,SAAS,EAAE,wBAAgB,GAC3B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
const react_1 = require("react");
|
|
25
|
+
const graph_visualization_1 = require("../graph-visualization");
|
|
26
|
+
const story_data_1 = require("./story-data");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
const [selectedNodeIds, setSelectedNodeIds] = (0, react_1.useState)();
|
|
29
|
+
const [selectedRelationshipIds, setSelectedRelationshipIds] = (0, react_1.useState)();
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { height: '600px' }, children: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization, { nodes: story_data_1.StoryGraph.nodes, rels: story_data_1.StoryGraph.rels, className: story_data_1.containerClasses, topRightIsland: (0, jsx_runtime_1.jsx)(graph_visualization_1.GraphVisualization.SearchButton, { onSearch: (nodeIds, relationshipIds) => {
|
|
31
|
+
setSelectedNodeIds(nodeIds);
|
|
32
|
+
setSelectedRelationshipIds(relationshipIds);
|
|
33
|
+
} }), highlightedNodeIds: selectedNodeIds, highlightedRelationshipIds: selectedRelationshipIds }) }));
|
|
34
|
+
};
|
|
35
|
+
exports.default = Component;
|
|
36
|
+
//# sourceMappingURL=graph-visualization-search.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-visualization-search.story.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization-search.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,iCAAiC;AAEjC,gEAA4D;AAC5D,6CAA4D;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,GAEnD,CAAC;IACJ,MAAM,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,GAAG,IAAA,gBAAQ,GAEnE,CAAC;IAEJ,OAAO,CACL,gCAAK,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAC7B,uBAAC,wCAAkB,IACjB,KAAK,EAAE,uBAAU,CAAC,KAAK,EACvB,IAAI,EAAE,uBAAU,CAAC,IAAI,EACrB,SAAS,EAAE,6BAAgB,EAC3B,cAAc,EACZ,uBAAC,wCAAkB,CAAC,YAAY,IAC9B,QAAQ,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE;oBACrC,kBAAkB,CAAC,OAAO,CAAC,CAAC;oBAC5B,0BAA0B,CAAC,eAAe,CAAC,CAAC;gBAC9C,CAAC,GACD,EAEJ,kBAAkB,EAAE,eAAe,EACnC,0BAA0B,EAAE,uBAAuB,GACnD,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|