@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,34 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Button, Dialog } from '@neo4j-ndl/react';
|
|
24
|
+
import { useState } from 'react';
|
|
25
|
+
const Component = (props) => {
|
|
26
|
+
const [isOpen, setIsOpen] = useState(props.isOpen);
|
|
27
|
+
const handleClick = () => setIsOpen((prev) => !prev);
|
|
28
|
+
const handleClose = () => setIsOpen(false);
|
|
29
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "n-flex n-justify-center", children: _jsx(Button, { onClick: handleClick, children: "Open Dialog" }) }), _jsxs(Dialog, { onClose: handleClose, isOpen: isOpen, modalProps: {
|
|
30
|
+
id: 'warning-dialog',
|
|
31
|
+
}, type: "warning", children: [_jsx(Dialog.Header, { children: "Header" }), _jsx(Dialog.Subtitle, { children: "This is a subtitle" }), _jsx(Dialog.Content, { children: "This is where you put your content" }), _jsxs(Dialog.Actions, { children: [_jsx(Button, { onClick: handleClose, color: "neutral", fill: "outlined", size: "medium", children: "Secondary" }), _jsx(Button, { onClick: handleClose, size: "medium", children: "Primary" })] })] })] }));
|
|
32
|
+
};
|
|
33
|
+
export default Component;
|
|
34
|
+
//# sourceMappingURL=dialog-warning.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-warning.story.js","sourceRoot":"","sources":["../../../../src/dialog/stories/dialog-warning.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,CAAC,KAA0B,EAAE,EAAE;IAC/C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAE3C,OAAO,CACL,8BACE,cAAK,SAAS,EAAC,yBAAyB,YACtC,KAAC,MAAM,IAAC,OAAO,EAAE,WAAW,4BAAsB,GAC9C,EACN,MAAC,MAAM,IACL,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE;oBACV,EAAE,EAAE,gBAAgB;iBACrB,EACD,IAAI,EAAC,SAAS,aAEd,KAAC,MAAM,CAAC,MAAM,yBAAuB,EACrC,KAAC,MAAM,CAAC,QAAQ,qCAAqC,EACrD,KAAC,MAAM,CAAC,OAAO,qDAAoD,EACnE,MAAC,MAAM,CAAC,OAAO,eACb,KAAC,MAAM,IACL,OAAO,EAAE,WAAW,EACpB,KAAK,EAAC,SAAS,EACf,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,QAAQ,0BAGN,EACT,KAAC,MAAM,IAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAC,QAAQ,wBAElC,IACM,IACV,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
+
import isChromatic from 'chromatic/isChromatic';
|
|
24
|
+
import { Dialog } from '../../index';
|
|
25
|
+
import { DialogDanger, DialogDangerSrc, DialogDefault, DialogDefaultSrc, DialogImage, DialogImageSrc, DialogInfo, DialogInfoSrc, DialogTopAligned, DialogTopAlignedSrc, DialogTypes, DialogTypesSrc, DialogWarning, DialogWarningSrc, } from './';
|
|
26
|
+
const componentMeta = {
|
|
27
|
+
title: 'Components/Dialog',
|
|
28
|
+
id: 'components-dialog',
|
|
29
|
+
component: Dialog,
|
|
30
|
+
tags: ['docsPage'],
|
|
31
|
+
parameters: {
|
|
32
|
+
controls: { disable: true },
|
|
33
|
+
},
|
|
34
|
+
decorators: [
|
|
35
|
+
(storyFn) => (_jsx("div", { className: "n-flex n-flex-col n-items-center n-justify-center", children: storyFn() })),
|
|
36
|
+
],
|
|
37
|
+
};
|
|
38
|
+
export default componentMeta;
|
|
39
|
+
export const Default = {
|
|
40
|
+
args: {
|
|
41
|
+
isOpen: isChromatic(),
|
|
42
|
+
},
|
|
43
|
+
render: DialogDefault,
|
|
44
|
+
parameters: {
|
|
45
|
+
docs: {
|
|
46
|
+
source: {
|
|
47
|
+
language: 'tsx',
|
|
48
|
+
type: 'code',
|
|
49
|
+
code: DialogDefaultSrc,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
export const TopAligned = {
|
|
55
|
+
args: {
|
|
56
|
+
isOpen: isChromatic(),
|
|
57
|
+
},
|
|
58
|
+
render: DialogTopAligned,
|
|
59
|
+
parameters: {
|
|
60
|
+
docs: {
|
|
61
|
+
source: {
|
|
62
|
+
language: 'tsx',
|
|
63
|
+
type: 'code',
|
|
64
|
+
code: DialogTopAlignedSrc,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
export const Types = {
|
|
70
|
+
args: {
|
|
71
|
+
isOpen: isChromatic(),
|
|
72
|
+
},
|
|
73
|
+
render: DialogTypes,
|
|
74
|
+
parameters: {
|
|
75
|
+
docs: {
|
|
76
|
+
source: {
|
|
77
|
+
language: 'tsx',
|
|
78
|
+
type: 'code',
|
|
79
|
+
code: DialogTypesSrc,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
export const Image = {
|
|
85
|
+
args: {
|
|
86
|
+
isOpen: isChromatic(),
|
|
87
|
+
},
|
|
88
|
+
render: DialogImage,
|
|
89
|
+
parameters: {
|
|
90
|
+
docs: {
|
|
91
|
+
source: {
|
|
92
|
+
language: 'tsx',
|
|
93
|
+
type: 'code',
|
|
94
|
+
code: DialogImageSrc,
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
export const Info = {
|
|
100
|
+
args: {
|
|
101
|
+
isOpen: isChromatic(),
|
|
102
|
+
},
|
|
103
|
+
render: DialogInfo,
|
|
104
|
+
parameters: {
|
|
105
|
+
docs: {
|
|
106
|
+
source: {
|
|
107
|
+
language: 'tsx',
|
|
108
|
+
type: 'code',
|
|
109
|
+
code: DialogInfoSrc,
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
export const Warning = {
|
|
115
|
+
args: {
|
|
116
|
+
isOpen: isChromatic(),
|
|
117
|
+
},
|
|
118
|
+
render: DialogWarning,
|
|
119
|
+
parameters: {
|
|
120
|
+
docs: {
|
|
121
|
+
source: {
|
|
122
|
+
language: 'tsx',
|
|
123
|
+
type: 'code',
|
|
124
|
+
code: DialogWarningSrc,
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
export const Danger = {
|
|
130
|
+
args: {
|
|
131
|
+
isOpen: isChromatic(),
|
|
132
|
+
},
|
|
133
|
+
render: DialogDanger,
|
|
134
|
+
parameters: {
|
|
135
|
+
docs: {
|
|
136
|
+
source: {
|
|
137
|
+
language: 'tsx',
|
|
138
|
+
type: 'code',
|
|
139
|
+
code: DialogDangerSrc,
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=dialog.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.stories.js","sourceRoot":"","sources":["../../../../src/dialog/stories/dialog.stories.tsx"],"names":[],"mappings":";AAqBA,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,aAAa,EACb,gBAAgB,GACjB,MAAM,IAAI,CAAC;AAEZ,MAAM,aAAa,GAAwB;IACzC,KAAK,EAAE,mBAAmB;IAC1B,EAAE,EAAE,mBAAmB;IACvB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,UAAU,EAAE;QACV,CAAC,OAAO,EAAE,EAAE,CAAC,CACX,cAAK,SAAS,EAAC,mDAAmD,YAC/D,OAAO,EAAE,GACN,CACP;KACF;CACF,CAAC;AAEF,eAAe,aAAa,CAAC;AAG7B,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,MAAM,EAAE,WAAW,EAAE;KACtB;IACD,MAAM,EAAE,aAAa;IACrB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,gBAAgB;aACvB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,IAAI,EAAE;QACJ,MAAM,EAAE,W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,EAAE,gBAAgB;aACvB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAU;IAC3B,IAAI,EAAE;QACJ,MAAM,EAAE,WAAW,EAAE;KACtB;IACD,MAAM,EAAE,YAAY;IACpB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,eAAe;aACtB;SACF;KACF;CACF,CAAC"}
|
|
@@ -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
|
+
export { default as DialogDefault } from './dialog-default.story';
|
|
22
|
+
export { default as DialogTopAligned } from './dialog-top-aligned.story';
|
|
23
|
+
export { default as DialogImage } from './dialog-image.story';
|
|
24
|
+
export { default as DialogTypes } from './dialog-types.story';
|
|
25
|
+
export { default as DialogInfo } from './dialog-info.story';
|
|
26
|
+
export { default as DialogWarning } from './dialog-warning.story';
|
|
27
|
+
export { default as DialogDanger } from './dialog-danger.story';
|
|
28
|
+
import { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';
|
|
29
|
+
import DialogDangerSrcRaw from './dialog-danger.story.tsx?raw';
|
|
30
|
+
import DialogDefaultSrcRaw from './dialog-default.story.tsx?raw';
|
|
31
|
+
import DialogImageSrcRaw from './dialog-image.story.tsx?raw';
|
|
32
|
+
import DialogInfoSrcRaw from './dialog-info.story.tsx?raw';
|
|
33
|
+
import DialogTopAlignedSrcRaw from './dialog-top-aligned.story.tsx?raw';
|
|
34
|
+
import DialogTypesSrcRaw from './dialog-types.story.tsx?raw';
|
|
35
|
+
import DialogWarningSrcRaw from './dialog-warning.story.tsx?raw';
|
|
36
|
+
export const DialogDefaultSrc = removeLicenseHeader(DialogDefaultSrcRaw);
|
|
37
|
+
export const DialogTopAlignedSrc = removeLicenseHeader(DialogTopAlignedSrcRaw);
|
|
38
|
+
export const DialogTypesSrc = removeLicenseHeader(DialogTypesSrcRaw);
|
|
39
|
+
export const DialogImageSrc = removeLicenseHeader(DialogImageSrcRaw);
|
|
40
|
+
export const DialogInfoSrc = removeLicenseHeader(DialogInfoSrcRaw);
|
|
41
|
+
export const DialogWarningSrc = removeLicenseHeader(DialogWarningSrcRaw);
|
|
42
|
+
export const DialogDangerSrc = removeLicenseHeader(DialogDangerSrcRaw);
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dialog/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,I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|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { DropdownButton } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return _jsx(DropdownButton, { children: "Dropdown Button" });
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=dropdown-button-default.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-button-default.story.js","sourceRoot":"","sources":["../../../../src/dropdown-button/stories/dropdown-button-default.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,cAAc,kCAAiC,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { DropdownButton } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return _jsx(DropdownButton, { isDisabled: true, children: "Dropdown Button" });
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=dropdown-button-disabled.story.js.map
|
|
@@ -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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,cAAc,IAAC,UAAU,EAAE,IAAI,gCAAkC,CAAC;AAC5E,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { DropdownButton } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return _jsx(DropdownButton, { isFloating: true, children: "Dropdown Button" });
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,cAAc,IAAC,UAAU,EAAE,IAAI,gCAAkC,CAAC;AAC5E,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Avatar, DropdownButton } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsx(DropdownButton, { leftIcon: _jsx(Avatar, { name: "KM", size: "medium", type: "icon", shape: "square" }), children: "Dropdown Button" }));
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,cAAc,IACb,QAAQ,EAAE,KAAC,MAAM,IAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,QAAQ,GAAG,gCAGxD,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { DropdownButton, Menu } from '@neo4j-ndl/react';
|
|
24
|
+
import { useRef, useState } from 'react';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const anchorRef = useRef(null);
|
|
27
|
+
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
|
28
|
+
return (_jsxs("div", { children: [_jsx(DropdownButton, { isOpen: isMenuOpen, onClick: () => setIsMenuOpen((old) => !old), ref: anchorRef, children: "Dropdown Button" }), _jsx(Menu, { isOpen: isMenuOpen, anchorRef: anchorRef, onClose: () => setIsMenuOpen(false), children: _jsxs(Menu.Items, { htmlAttributes: {
|
|
29
|
+
id: 'default-menu',
|
|
30
|
+
}, children: [_jsx(Menu.Item, { title: "Action 1" }), _jsx(Menu.Item, { title: "Action 2" }), _jsx(Menu.Item, { title: "Action 3" }), _jsx(Menu.Item, { title: "Action 4" })] }) })] }));
|
|
31
|
+
};
|
|
32
|
+
export default Component;
|
|
33
|
+
//# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,SAAS,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IACzD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CACL,0BACE,KAAC,cAAc,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,KAAC,IAAI,IACH,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,YAEnC,MAAC,IAAI,CAAC,KAAK,IACT,cAAc,EAAE;wBACd,EAAE,EAAE,cAAc;qBACnB,aAED,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,IACnB,GACR,IACH,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { DropdownButton, StatusIndicator } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsx(DropdownButton, { leftIcon: _jsx(StatusIndicator, { type: "info" }), children: "Dropdown Button" }));
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,cAAc,IAAC,QAAQ,EAAE,KAAC,eAAe,IAAC,IAAI,EAAC,MAAM,GAAG,gCAExC,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
+
import { DropdownButton } from '../../index';
|
|
24
|
+
import { DropdownButtonDefault, DropdownButtonDefaultSource, DropdownButtonDisabled, DropdownButtonDisabledSource, DropdownButtonFloating, DropdownButtonFloatingSource, DropdownButtonWithAvatar, DropdownButtonWithAvatarSource, DropdownButtonWithContextMenu, DropdownButtonWithContextMenuSource, DropdownButtonWithStatusIndicator, DropdownButtonWithStatusIndicatorSource, } from '.';
|
|
25
|
+
const componentMeta = {
|
|
26
|
+
title: 'Components/Buttons/DropdownButton',
|
|
27
|
+
id: 'components-buttons-dropdown-button',
|
|
28
|
+
component: DropdownButton,
|
|
29
|
+
tags: ['docsPage'],
|
|
30
|
+
parameters: {
|
|
31
|
+
controls: { disable: true },
|
|
32
|
+
},
|
|
33
|
+
decorators: [
|
|
34
|
+
(Story) => (_jsx("div", { className: "n-flex n-justify-center", children: _jsx(Story, {}) })),
|
|
35
|
+
],
|
|
36
|
+
};
|
|
37
|
+
export default componentMeta;
|
|
38
|
+
export const Default = {
|
|
39
|
+
args: {},
|
|
40
|
+
render: DropdownButtonDefault,
|
|
41
|
+
parameters: {
|
|
42
|
+
docs: {
|
|
43
|
+
source: {
|
|
44
|
+
language: 'tsx',
|
|
45
|
+
type: 'code',
|
|
46
|
+
code: DropdownButtonDefaultSource,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const WithAvatar = {
|
|
52
|
+
args: {},
|
|
53
|
+
render: DropdownButtonWithAvatar,
|
|
54
|
+
parameters: {
|
|
55
|
+
docs: {
|
|
56
|
+
source: {
|
|
57
|
+
language: 'tsx',
|
|
58
|
+
type: 'code',
|
|
59
|
+
code: DropdownButtonWithAvatarSource,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
export const WithStatusIndicator = {
|
|
65
|
+
args: {},
|
|
66
|
+
render: DropdownButtonWithStatusIndicator,
|
|
67
|
+
parameters: {
|
|
68
|
+
docs: {
|
|
69
|
+
source: {
|
|
70
|
+
language: 'tsx',
|
|
71
|
+
type: 'code',
|
|
72
|
+
code: DropdownButtonWithStatusIndicatorSource,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
export const Disabled = {
|
|
78
|
+
args: {},
|
|
79
|
+
render: DropdownButtonDisabled,
|
|
80
|
+
parameters: {
|
|
81
|
+
docs: {
|
|
82
|
+
source: {
|
|
83
|
+
language: 'tsx',
|
|
84
|
+
type: 'code',
|
|
85
|
+
code: DropdownButtonDisabledSource,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
export const Floating = {
|
|
91
|
+
args: {},
|
|
92
|
+
render: DropdownButtonFloating,
|
|
93
|
+
parameters: {
|
|
94
|
+
docs: {
|
|
95
|
+
source: {
|
|
96
|
+
language: 'tsx',
|
|
97
|
+
type: 'code',
|
|
98
|
+
code: DropdownButtonFloatingSource,
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
export const WithContextMenu = {
|
|
104
|
+
args: {},
|
|
105
|
+
render: DropdownButtonWithContextMenu,
|
|
106
|
+
parameters: {
|
|
107
|
+
docs: {
|
|
108
|
+
source: {
|
|
109
|
+
language: 'tsx',
|
|
110
|
+
type: 'code',
|
|
111
|
+
code: DropdownButtonWithContextMenuSource,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
//# 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,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,6BAA6B,EAC7B,mCAAmC,EACnC,iCAAiC,EACjC,uCAAuC,GACxC,MAAM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AI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,4BAA4B;aACnC;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,sBAAsB;IAC9B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,4BAA4B;aACnC;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAU;IACpC,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,6BAA6B;IACrC,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,mCAAmC;aAC1C;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as DropdownButtonDefault } from './dropdown-button-default.story';
|
|
22
|
+
export { default as DropdownButtonWithAvatar } from './dropdown-button-with-avatar.story';
|
|
23
|
+
export { default as DropdownButtonWithStatusIndicator } from './dropdown-button-with-status-indicator.story';
|
|
24
|
+
export { default as DropdownButtonDisabled } from './dropdown-button-disabled.story';
|
|
25
|
+
export { default as DropdownButtonFloating } from './dropdown-button-floating.story';
|
|
26
|
+
export { default as DropdownButtonWithContextMenu } from './dropdown-button-with-context-menu.story';
|
|
27
|
+
import { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';
|
|
28
|
+
import DropdownButtonDefaultSourceRaw from './dropdown-button-default.story?raw';
|
|
29
|
+
import DropdownButtonDisabledSourceRaw from './dropdown-button-disabled.story?raw';
|
|
30
|
+
import DropdownButtonFloatingSourceRaw from './dropdown-button-floating.story?raw';
|
|
31
|
+
import DropdownButtonWithAvatarSourceRaw from './dropdown-button-with-avatar.story?raw';
|
|
32
|
+
import DropdownButtonWithContextMenuSourceRaw from './dropdown-button-with-context-menu.story?raw';
|
|
33
|
+
import DropdownButtonWithStatusIndicatorSourceRaw from './dropdown-button-with-status-indicator.story?raw';
|
|
34
|
+
export const DropdownButtonDefaultSource = removeLicenseHeader(DropdownButtonDefaultSourceRaw);
|
|
35
|
+
export const DropdownButtonWithAvatarSource = removeLicenseHeader(DropdownButtonWithAvatarSourceRaw);
|
|
36
|
+
export const DropdownButtonWithStatusIndicatorSource = removeLicenseHeader(DropdownButtonWithStatusIndicatorSourceRaw);
|
|
37
|
+
export const DropdownButtonDisabledSource = removeLicenseHeader(DropdownButtonDisabledSourceRaw);
|
|
38
|
+
export const DropdownButtonFloatingSource = removeLicenseHeader(DropdownButtonFloatingSourceRaw);
|
|
39
|
+
export const DropdownButtonWithContextMenuSource = removeLicenseHeader(DropdownButtonWithContextMenuSourceRaw);
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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