@neo4j-ndl/react 3.8.35 → 3.9.0
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/avatar/stories/avatar-shapes.story.js +1 -1
- package/lib/cjs/avatar/stories/avatar-shapes.story.js.map +1 -1
- package/lib/cjs/avatar/stories/avatar-sizes.story.js +1 -1
- package/lib/cjs/avatar/stories/avatar-sizes.story.js.map +1 -1
- package/lib/cjs/avatar/stories/avatar-statuses.story.js +1 -1
- package/lib/cjs/avatar/stories/avatar-statuses.story.js.map +1 -1
- package/lib/cjs/avatar/stories/avatar-types.story.js +1 -1
- package/lib/cjs/avatar/stories/avatar-types.story.js.map +1 -1
- package/lib/cjs/avatar/stories/avatar.stories.js +12 -1
- package/lib/cjs/avatar/stories/avatar.stories.js.map +1 -1
- package/lib/cjs/callout/stories/callout-default.story.js +30 -0
- package/lib/cjs/callout/stories/callout-default.story.js.map +1 -0
- package/lib/cjs/callout/stories/callout-full.story.js +30 -0
- package/lib/cjs/callout/stories/callout-full.story.js.map +1 -0
- package/lib/cjs/callout/stories/callout-types.story.js +30 -0
- package/lib/cjs/callout/stories/callout-types.story.js.map +1 -0
- package/lib/cjs/callout/stories/callout-with-children.story.js +30 -0
- package/lib/cjs/callout/stories/callout-with-children.story.js.map +1 -0
- package/lib/cjs/callout/stories/callout-without-header.story.js +30 -0
- package/lib/cjs/callout/stories/callout-without-header.story.js.map +1 -0
- package/lib/cjs/callout/stories/callout.stories.js +101 -0
- package/lib/cjs/callout/stories/callout.stories.js.map +1 -0
- package/lib/cjs/callout/stories/index.js +48 -0
- package/lib/cjs/callout/stories/index.js.map +1 -0
- package/lib/cjs/checkbox/stories/checkbox-checkedByDefault.story.js +30 -0
- package/lib/cjs/checkbox/stories/checkbox-checkedByDefault.story.js.map +1 -0
- package/lib/cjs/checkbox/stories/checkbox-default.story.js +30 -0
- package/lib/cjs/checkbox/stories/checkbox-default.story.js.map +1 -0
- package/lib/cjs/checkbox/stories/checkbox-disabled.story.js +30 -0
- package/lib/cjs/checkbox/stories/checkbox-disabled.story.js.map +1 -0
- package/lib/cjs/checkbox/stories/checkbox-full.story.js +39 -0
- package/lib/cjs/checkbox/stories/checkbox-full.story.js.map +1 -0
- package/lib/cjs/checkbox/stories/checkbox-hasLabelBefore.story.js +30 -0
- package/lib/cjs/checkbox/stories/checkbox-hasLabelBefore.story.js.map +1 -0
- package/lib/cjs/checkbox/stories/checkbox-indeterminate.story.js +33 -0
- package/lib/cjs/checkbox/stories/checkbox-indeterminate.story.js.map +1 -0
- package/lib/cjs/checkbox/stories/checkbox-no-label.story.js +30 -0
- package/lib/cjs/checkbox/stories/checkbox-no-label.story.js.map +1 -0
- package/lib/cjs/checkbox/stories/checkbox.stories.js +137 -0
- package/lib/cjs/checkbox/stories/checkbox.stories.js.map +1 -0
- package/lib/cjs/checkbox/stories/index.js +56 -0
- package/lib/cjs/checkbox/stories/index.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu-custom-items.story.js +33 -0
- package/lib/cjs/context-menu/stories/context-menu-custom-items.story.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu-default.story.js +45 -0
- package/lib/cjs/context-menu/stories/context-menu-default.story.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu-in-modal.story.js +38 -0
- package/lib/cjs/context-menu/stories/context-menu-in-modal.story.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu-in-popover.story.js +34 -0
- package/lib/cjs/context-menu/stories/context-menu-in-popover.story.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu-nested.story.js +34 -0
- package/lib/cjs/context-menu/stories/context-menu-nested.story.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu-placements.story.js +45 -0
- package/lib/cjs/context-menu/stories/context-menu-placements.story.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu-with-disabled-item.story.js +36 -0
- package/lib/cjs/context-menu/stories/context-menu-with-disabled-item.story.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu-with-divider.story.js +36 -0
- package/lib/cjs/context-menu/stories/context-menu-with-divider.story.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu-with-header.story.js +36 -0
- package/lib/cjs/context-menu/stories/context-menu-with-header.story.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu-with-icon.story.js +34 -0
- package/lib/cjs/context-menu/stories/context-menu-with-icon.story.js.map +1 -0
- package/lib/cjs/context-menu/stories/context-menu.stories.js +170 -0
- package/lib/cjs/context-menu/stories/context-menu.stories.js.map +1 -0
- package/lib/cjs/context-menu/stories/index.js +68 -0
- package/lib/cjs/context-menu/stories/index.js.map +1 -0
- package/lib/cjs/drawer/stories/drawer-full.story.js +36 -0
- package/lib/cjs/drawer/stories/drawer-full.story.js.map +1 -0
- package/lib/cjs/drawer/stories/drawer-not-closeable.story.js +33 -0
- package/lib/cjs/drawer/stories/drawer-not-closeable.story.js.map +1 -0
- package/lib/cjs/drawer/stories/drawer-overlay.story.js +33 -0
- package/lib/cjs/drawer/stories/drawer-overlay.story.js.map +1 -0
- package/lib/cjs/drawer/stories/drawer-portaled.story.js +38 -0
- package/lib/cjs/drawer/stories/drawer-portaled.story.js.map +1 -0
- package/lib/cjs/drawer/stories/drawer-push.story.js +32 -0
- package/lib/cjs/drawer/stories/drawer-push.story.js.map +1 -0
- package/lib/cjs/drawer/stories/drawer-resizable.story.js +36 -0
- package/lib/cjs/drawer/stories/drawer-resizable.story.js.map +1 -0
- package/lib/cjs/drawer/stories/drawer-right-side.story.js +33 -0
- package/lib/cjs/drawer/stories/drawer-right-side.story.js.map +1 -0
- package/lib/cjs/drawer/stories/drawer-scrollable.story.js +33 -0
- package/lib/cjs/drawer/stories/drawer-scrollable.story.js.map +1 -0
- package/lib/cjs/drawer/stories/drawer.stories.js +150 -0
- package/lib/cjs/drawer/stories/drawer.stories.js.map +1 -0
- package/lib/cjs/drawer/stories/index.js +60 -0
- package/lib/cjs/drawer/stories/index.js.map +1 -0
- package/lib/cjs/graph-label/stories/graph-label-color.story.js +30 -0
- package/lib/cjs/graph-label/stories/graph-label-color.story.js.map +1 -0
- package/lib/cjs/graph-label/stories/graph-label-disabled.story.js +30 -0
- package/lib/cjs/graph-label/stories/graph-label-disabled.story.js.map +1 -0
- package/lib/cjs/graph-label/stories/graph-label-fluid.story.js +30 -0
- package/lib/cjs/graph-label/stories/graph-label-fluid.story.js.map +1 -0
- package/lib/cjs/graph-label/stories/graph-label-non-interactive.story.js +30 -0
- package/lib/cjs/graph-label/stories/graph-label-non-interactive.story.js.map +1 -0
- package/lib/cjs/graph-label/stories/graph-label-selected.story.js +30 -0
- package/lib/cjs/graph-label/stories/graph-label-selected.story.js.map +1 -0
- package/lib/cjs/graph-label/stories/graph-label-sizes.story.js +30 -0
- package/lib/cjs/graph-label/stories/graph-label-sizes.story.js.map +1 -0
- package/lib/cjs/graph-label/stories/graph-label-types.story.js +30 -0
- package/lib/cjs/graph-label/stories/graph-label-types.story.js.map +1 -0
- package/lib/cjs/graph-label/stories/graph-label.stories.js +132 -0
- package/lib/cjs/graph-label/stories/graph-label.stories.js.map +1 -0
- package/lib/cjs/graph-label/stories/index.js +56 -0
- package/lib/cjs/graph-label/stories/index.js.map +1 -0
- package/lib/cjs/label/stories/index.js +44 -0
- package/lib/cjs/label/stories/index.js.map +1 -0
- package/lib/cjs/label/stories/label-colors.story.js +30 -0
- package/lib/cjs/label/stories/label-colors.story.js.map +1 -0
- package/lib/cjs/label/stories/label-default.story.js +30 -0
- package/lib/cjs/label/stories/label-default.story.js.map +1 -0
- package/lib/cjs/label/stories/label-fills.story.js +30 -0
- package/lib/cjs/label/stories/label-fills.story.js.map +1 -0
- package/lib/cjs/label/stories/label-with-icons.story.js +30 -0
- package/lib/cjs/label/stories/label-with-icons.story.js.map +1 -0
- package/lib/cjs/label/stories/label.stories.js +93 -0
- package/lib/cjs/label/stories/label.stories.js.map +1 -0
- package/lib/cjs/loading-bar/stories/index.js +36 -0
- package/lib/cjs/loading-bar/stories/index.js.map +1 -0
- package/lib/cjs/loading-bar/stories/loading-bar-default.story.js +30 -0
- package/lib/cjs/loading-bar/stories/loading-bar-default.story.js.map +1 -0
- package/lib/cjs/loading-bar/stories/loading-bar-with-rail.story.js +30 -0
- package/lib/cjs/loading-bar/stories/loading-bar-with-rail.story.js.map +1 -0
- package/lib/cjs/loading-bar/stories/loading-bar.stories.js +67 -0
- package/lib/cjs/loading-bar/stories/loading-bar.stories.js.map +1 -0
- package/lib/cjs/loading-spinner/stories/index.js +36 -0
- package/lib/cjs/loading-spinner/stories/index.js.map +1 -0
- package/lib/cjs/loading-spinner/stories/loading-spinner-default.story.js +30 -0
- package/lib/cjs/loading-spinner/stories/loading-spinner-default.story.js.map +1 -0
- package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js +30 -0
- package/lib/cjs/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -0
- package/lib/cjs/loading-spinner/stories/loading-spinner.stories.js +67 -0
- package/lib/cjs/loading-spinner/stories/loading-spinner.stories.js.map +1 -0
- package/lib/cjs/segmented-control/stories/index.js +44 -0
- package/lib/cjs/segmented-control/stories/index.js.map +1 -0
- package/lib/cjs/segmented-control/stories/segmented-control-default.story.js +32 -0
- package/lib/cjs/segmented-control/stories/segmented-control-default.story.js.map +1 -0
- package/lib/cjs/segmented-control/stories/segmented-control-floating.story.js +32 -0
- package/lib/cjs/segmented-control/stories/segmented-control-floating.story.js.map +1 -0
- package/lib/cjs/segmented-control/stories/segmented-control-only-icons.story.js +33 -0
- package/lib/cjs/segmented-control/stories/segmented-control-only-icons.story.js.map +1 -0
- package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js +33 -0
- package/lib/cjs/segmented-control/stories/segmented-control-sizes.story.js.map +1 -0
- package/lib/cjs/segmented-control/stories/segmented-control.stories.js +93 -0
- package/lib/cjs/segmented-control/stories/segmented-control.stories.js.map +1 -0
- package/lib/cjs/status-indicator/stories/index.js +32 -0
- package/lib/cjs/status-indicator/stories/index.js.map +1 -0
- package/lib/cjs/status-indicator/stories/status-indicator-types.story.js +30 -0
- package/lib/cjs/status-indicator/stories/status-indicator-types.story.js.map +1 -0
- package/lib/cjs/status-indicator/stories/status-indicator.stories.js +54 -0
- package/lib/cjs/status-indicator/stories/status-indicator.stories.js.map +1 -0
- package/lib/cjs/toast/Toast.js +5 -1
- package/lib/cjs/toast/Toast.js.map +1 -1
- package/lib/cjs/toast/ToastControlled.js +87 -0
- package/lib/cjs/toast/ToastControlled.js.map +1 -0
- package/lib/cjs/toast/index.js +1 -0
- package/lib/cjs/toast/index.js.map +1 -1
- package/lib/cjs/toast/stories/index.js +60 -0
- package/lib/cjs/toast/stories/index.js.map +1 -0
- package/lib/cjs/toast/stories/toast-action-story.js +38 -0
- package/lib/cjs/toast/stories/toast-action-story.js.map +1 -0
- package/lib/cjs/toast/stories/toast-closeable-story.js +37 -0
- package/lib/cjs/toast/stories/toast-closeable-story.js.map +1 -0
- package/lib/cjs/toast/stories/toast-controlled-story.js +44 -0
- package/lib/cjs/toast/stories/toast-controlled-story.js.map +1 -0
- package/lib/cjs/toast/stories/toast-custom-story.js +32 -0
- package/lib/cjs/toast/stories/toast-custom-story.js.map +1 -0
- package/lib/cjs/toast/stories/toast-danger-story.js +32 -0
- package/lib/cjs/toast/stories/toast-danger-story.js.map +1 -0
- package/lib/cjs/toast/stories/toast-neutral-story.js +32 -0
- package/lib/cjs/toast/stories/toast-neutral-story.js.map +1 -0
- package/lib/cjs/toast/stories/toast-progress-bar.js +49 -0
- package/lib/cjs/toast/stories/toast-progress-bar.js.map +1 -0
- package/lib/cjs/toast/stories/toast-success-story.js +32 -0
- package/lib/cjs/toast/stories/toast-success-story.js.map +1 -0
- package/lib/cjs/toast/stories/toast.stories.js +137 -0
- package/lib/cjs/toast/stories/toast.stories.js.map +1 -0
- package/lib/esm/avatar/stories/avatar-shapes.story.js +1 -1
- package/lib/esm/avatar/stories/avatar-shapes.story.js.map +1 -1
- package/lib/esm/avatar/stories/avatar-sizes.story.js +1 -1
- package/lib/esm/avatar/stories/avatar-sizes.story.js.map +1 -1
- package/lib/esm/avatar/stories/avatar-statuses.story.js +1 -1
- package/lib/esm/avatar/stories/avatar-statuses.story.js.map +1 -1
- package/lib/esm/avatar/stories/avatar-types.story.js +1 -1
- package/lib/esm/avatar/stories/avatar-types.story.js.map +1 -1
- package/lib/esm/avatar/stories/avatar.stories.js +11 -0
- package/lib/esm/avatar/stories/avatar.stories.js.map +1 -1
- package/lib/esm/callout/stories/callout-default.story.js +28 -0
- package/lib/esm/callout/stories/callout-default.story.js.map +1 -0
- package/lib/esm/callout/stories/callout-full.story.js +28 -0
- package/lib/esm/callout/stories/callout-full.story.js.map +1 -0
- package/lib/esm/callout/stories/callout-types.story.js +28 -0
- package/lib/esm/callout/stories/callout-types.story.js.map +1 -0
- package/lib/esm/callout/stories/callout-with-children.story.js +28 -0
- package/lib/esm/callout/stories/callout-with-children.story.js.map +1 -0
- package/lib/esm/callout/stories/callout-without-header.story.js +28 -0
- package/lib/esm/callout/stories/callout-without-header.story.js.map +1 -0
- package/lib/esm/callout/stories/callout.stories.js +98 -0
- package/lib/esm/callout/stories/callout.stories.js.map +1 -0
- package/lib/esm/callout/stories/index.js +37 -0
- package/lib/esm/callout/stories/index.js.map +1 -0
- package/lib/esm/checkbox/stories/checkbox-checkedByDefault.story.js +28 -0
- package/lib/esm/checkbox/stories/checkbox-checkedByDefault.story.js.map +1 -0
- package/lib/esm/checkbox/stories/checkbox-default.story.js +28 -0
- package/lib/esm/checkbox/stories/checkbox-default.story.js.map +1 -0
- package/lib/esm/checkbox/stories/checkbox-disabled.story.js +28 -0
- package/lib/esm/checkbox/stories/checkbox-disabled.story.js.map +1 -0
- package/lib/esm/checkbox/stories/checkbox-full.story.js +37 -0
- package/lib/esm/checkbox/stories/checkbox-full.story.js.map +1 -0
- package/lib/esm/checkbox/stories/checkbox-hasLabelBefore.story.js +28 -0
- package/lib/esm/checkbox/stories/checkbox-hasLabelBefore.story.js.map +1 -0
- package/lib/esm/checkbox/stories/checkbox-indeterminate.story.js +31 -0
- package/lib/esm/checkbox/stories/checkbox-indeterminate.story.js.map +1 -0
- package/lib/esm/checkbox/stories/checkbox-no-label.story.js +28 -0
- package/lib/esm/checkbox/stories/checkbox-no-label.story.js.map +1 -0
- package/lib/esm/checkbox/stories/checkbox.stories.js +134 -0
- package/lib/esm/checkbox/stories/checkbox.stories.js.map +1 -0
- package/lib/esm/checkbox/stories/index.js +43 -0
- package/lib/esm/checkbox/stories/index.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu-custom-items.story.js +31 -0
- package/lib/esm/context-menu/stories/context-menu-custom-items.story.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu-default.story.js +43 -0
- package/lib/esm/context-menu/stories/context-menu-default.story.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu-in-modal.story.js +36 -0
- package/lib/esm/context-menu/stories/context-menu-in-modal.story.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu-in-popover.story.js +32 -0
- package/lib/esm/context-menu/stories/context-menu-in-popover.story.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu-nested.story.js +32 -0
- package/lib/esm/context-menu/stories/context-menu-nested.story.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu-placements.story.js +43 -0
- package/lib/esm/context-menu/stories/context-menu-placements.story.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu-with-disabled-item.story.js +34 -0
- package/lib/esm/context-menu/stories/context-menu-with-disabled-item.story.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu-with-divider.story.js +34 -0
- package/lib/esm/context-menu/stories/context-menu-with-divider.story.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu-with-header.story.js +34 -0
- package/lib/esm/context-menu/stories/context-menu-with-header.story.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu-with-icon.story.js +32 -0
- package/lib/esm/context-menu/stories/context-menu-with-icon.story.js.map +1 -0
- package/lib/esm/context-menu/stories/context-menu.stories.js +167 -0
- package/lib/esm/context-menu/stories/context-menu.stories.js.map +1 -0
- package/lib/esm/context-menu/stories/index.js +52 -0
- package/lib/esm/context-menu/stories/index.js.map +1 -0
- package/lib/esm/drawer/stories/drawer-full.story.js +34 -0
- package/lib/esm/drawer/stories/drawer-full.story.js.map +1 -0
- package/lib/esm/drawer/stories/drawer-not-closeable.story.js +31 -0
- package/lib/esm/drawer/stories/drawer-not-closeable.story.js.map +1 -0
- package/lib/esm/drawer/stories/drawer-overlay.story.js +31 -0
- package/lib/esm/drawer/stories/drawer-overlay.story.js.map +1 -0
- package/lib/esm/drawer/stories/drawer-portaled.story.js +36 -0
- package/lib/esm/drawer/stories/drawer-portaled.story.js.map +1 -0
- package/lib/esm/drawer/stories/drawer-push.story.js +30 -0
- package/lib/esm/drawer/stories/drawer-push.story.js.map +1 -0
- package/lib/esm/drawer/stories/drawer-resizable.story.js +34 -0
- package/lib/esm/drawer/stories/drawer-resizable.story.js.map +1 -0
- package/lib/esm/drawer/stories/drawer-right-side.story.js +31 -0
- package/lib/esm/drawer/stories/drawer-right-side.story.js.map +1 -0
- package/lib/esm/drawer/stories/drawer-scrollable.story.js +31 -0
- package/lib/esm/drawer/stories/drawer-scrollable.story.js.map +1 -0
- package/lib/esm/drawer/stories/drawer.stories.js +147 -0
- package/lib/esm/drawer/stories/drawer.stories.js.map +1 -0
- package/lib/esm/drawer/stories/index.js +46 -0
- package/lib/esm/drawer/stories/index.js.map +1 -0
- package/lib/esm/graph-label/stories/graph-label-color.story.js +28 -0
- package/lib/esm/graph-label/stories/graph-label-color.story.js.map +1 -0
- package/lib/esm/graph-label/stories/graph-label-disabled.story.js +28 -0
- package/lib/esm/graph-label/stories/graph-label-disabled.story.js.map +1 -0
- package/lib/esm/graph-label/stories/graph-label-fluid.story.js +28 -0
- package/lib/esm/graph-label/stories/graph-label-fluid.story.js.map +1 -0
- package/lib/esm/graph-label/stories/graph-label-non-interactive.story.js +28 -0
- package/lib/esm/graph-label/stories/graph-label-non-interactive.story.js.map +1 -0
- package/lib/esm/graph-label/stories/graph-label-selected.story.js +28 -0
- package/lib/esm/graph-label/stories/graph-label-selected.story.js.map +1 -0
- package/lib/esm/graph-label/stories/graph-label-sizes.story.js +28 -0
- package/lib/esm/graph-label/stories/graph-label-sizes.story.js.map +1 -0
- package/lib/esm/graph-label/stories/graph-label-types.story.js +28 -0
- package/lib/esm/graph-label/stories/graph-label-types.story.js.map +1 -0
- package/lib/esm/graph-label/stories/graph-label.stories.js +129 -0
- package/lib/esm/graph-label/stories/graph-label.stories.js.map +1 -0
- package/lib/esm/graph-label/stories/index.js +43 -0
- package/lib/esm/graph-label/stories/index.js.map +1 -0
- package/lib/esm/label/stories/index.js +34 -0
- package/lib/esm/label/stories/index.js.map +1 -0
- package/lib/esm/label/stories/label-colors.story.js +28 -0
- package/lib/esm/label/stories/label-colors.story.js.map +1 -0
- package/lib/esm/label/stories/label-default.story.js +28 -0
- package/lib/esm/label/stories/label-default.story.js.map +1 -0
- package/lib/esm/label/stories/label-fills.story.js +28 -0
- package/lib/esm/label/stories/label-fills.story.js.map +1 -0
- package/lib/esm/label/stories/label-with-icons.story.js +28 -0
- package/lib/esm/label/stories/label-with-icons.story.js.map +1 -0
- package/lib/esm/label/stories/label.stories.js +90 -0
- package/lib/esm/label/stories/label.stories.js.map +1 -0
- package/lib/esm/loading-bar/stories/index.js +28 -0
- package/lib/esm/loading-bar/stories/index.js.map +1 -0
- package/lib/esm/loading-bar/stories/loading-bar-default.story.js +28 -0
- package/lib/esm/loading-bar/stories/loading-bar-default.story.js.map +1 -0
- package/lib/esm/loading-bar/stories/loading-bar-with-rail.story.js +28 -0
- package/lib/esm/loading-bar/stories/loading-bar-with-rail.story.js.map +1 -0
- package/lib/esm/loading-bar/stories/loading-bar.stories.js +64 -0
- package/lib/esm/loading-bar/stories/loading-bar.stories.js.map +1 -0
- package/lib/esm/loading-spinner/stories/index.js +28 -0
- package/lib/esm/loading-spinner/stories/index.js.map +1 -0
- package/lib/esm/loading-spinner/stories/loading-spinner-default.story.js +28 -0
- package/lib/esm/loading-spinner/stories/loading-spinner-default.story.js.map +1 -0
- package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js +28 -0
- package/lib/esm/loading-spinner/stories/loading-spinner-sizes.story.js.map +1 -0
- package/lib/esm/loading-spinner/stories/loading-spinner.stories.js +64 -0
- package/lib/esm/loading-spinner/stories/loading-spinner.stories.js.map +1 -0
- package/lib/esm/segmented-control/stories/index.js +34 -0
- package/lib/esm/segmented-control/stories/index.js.map +1 -0
- package/lib/esm/segmented-control/stories/segmented-control-default.story.js +30 -0
- package/lib/esm/segmented-control/stories/segmented-control-default.story.js.map +1 -0
- package/lib/esm/segmented-control/stories/segmented-control-floating.story.js +30 -0
- package/lib/esm/segmented-control/stories/segmented-control-floating.story.js.map +1 -0
- package/lib/esm/segmented-control/stories/segmented-control-only-icons.story.js +31 -0
- package/lib/esm/segmented-control/stories/segmented-control-only-icons.story.js.map +1 -0
- package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js +31 -0
- package/lib/esm/segmented-control/stories/segmented-control-sizes.story.js.map +1 -0
- package/lib/esm/segmented-control/stories/segmented-control.stories.js +90 -0
- package/lib/esm/segmented-control/stories/segmented-control.stories.js.map +1 -0
- package/lib/esm/status-indicator/stories/index.js +25 -0
- package/lib/esm/status-indicator/stories/index.js.map +1 -0
- package/lib/esm/status-indicator/stories/status-indicator-types.story.js +28 -0
- package/lib/esm/status-indicator/stories/status-indicator-types.story.js.map +1 -0
- package/lib/esm/status-indicator/stories/status-indicator.stories.js +51 -0
- package/lib/esm/status-indicator/stories/status-indicator.stories.js.map +1 -0
- package/lib/esm/toast/Toast.js +5 -1
- package/lib/esm/toast/Toast.js.map +1 -1
- package/lib/esm/toast/ToastControlled.js +83 -0
- package/lib/esm/toast/ToastControlled.js.map +1 -0
- package/lib/esm/toast/index.js +1 -0
- package/lib/esm/toast/index.js.map +1 -1
- package/lib/esm/toast/stories/index.js +46 -0
- package/lib/esm/toast/stories/index.js.map +1 -0
- package/lib/esm/toast/stories/toast-action-story.js +36 -0
- package/lib/esm/toast/stories/toast-action-story.js.map +1 -0
- package/lib/esm/toast/stories/toast-closeable-story.js +35 -0
- package/lib/esm/toast/stories/toast-closeable-story.js.map +1 -0
- package/lib/esm/toast/stories/toast-controlled-story.js +42 -0
- package/lib/esm/toast/stories/toast-controlled-story.js.map +1 -0
- package/lib/esm/toast/stories/toast-custom-story.js +30 -0
- package/lib/esm/toast/stories/toast-custom-story.js.map +1 -0
- package/lib/esm/toast/stories/toast-danger-story.js +30 -0
- package/lib/esm/toast/stories/toast-danger-story.js.map +1 -0
- package/lib/esm/toast/stories/toast-neutral-story.js +30 -0
- package/lib/esm/toast/stories/toast-neutral-story.js.map +1 -0
- package/lib/esm/toast/stories/toast-progress-bar.js +47 -0
- package/lib/esm/toast/stories/toast-progress-bar.js.map +1 -0
- package/lib/esm/toast/stories/toast-success-story.js +30 -0
- package/lib/esm/toast/stories/toast-success-story.js.map +1 -0
- package/lib/esm/toast/stories/toast.stories.js +134 -0
- package/lib/esm/toast/stories/toast.stories.js.map +1 -0
- package/lib/types/avatar/stories/avatar.stories.d.ts +3 -12
- package/lib/types/callout/stories/callout-default.story.d.ts +23 -0
- package/lib/types/callout/stories/callout-full.story.d.ts +23 -0
- package/lib/types/callout/stories/callout-types.story.d.ts +23 -0
- package/lib/types/callout/stories/callout-with-children.story.d.ts +23 -0
- package/lib/types/callout/stories/callout-without-header.story.d.ts +23 -0
- package/lib/types/callout/stories/callout.stories.d.ts +39 -0
- package/lib/types/callout/stories/index.d.ts +30 -0
- package/lib/types/checkbox/stories/checkbox-checkedByDefault.story.d.ts +23 -0
- package/lib/types/checkbox/stories/checkbox-default.story.d.ts +23 -0
- package/lib/types/checkbox/stories/checkbox-disabled.story.d.ts +23 -0
- package/lib/types/checkbox/stories/checkbox-full.story.d.ts +23 -0
- package/lib/types/checkbox/stories/checkbox-hasLabelBefore.story.d.ts +23 -0
- package/lib/types/checkbox/stories/checkbox-indeterminate.story.d.ts +23 -0
- package/lib/types/checkbox/stories/checkbox-no-label.story.d.ts +23 -0
- package/lib/types/checkbox/stories/checkbox.stories.d.ts +32 -0
- package/lib/types/checkbox/stories/index.d.ts +34 -0
- package/lib/types/context-menu/stories/context-menu-custom-items.story.d.ts +23 -0
- package/lib/types/context-menu/stories/context-menu-default.story.d.ts +23 -0
- package/lib/types/context-menu/stories/context-menu-in-modal.story.d.ts +23 -0
- package/lib/types/context-menu/stories/context-menu-in-popover.story.d.ts +23 -0
- package/lib/types/context-menu/stories/context-menu-nested.story.d.ts +23 -0
- package/lib/types/context-menu/stories/context-menu-placements.story.d.ts +23 -0
- package/lib/types/context-menu/stories/context-menu-with-disabled-item.story.d.ts +23 -0
- package/lib/types/context-menu/stories/context-menu-with-divider.story.d.ts +23 -0
- package/lib/types/context-menu/stories/context-menu-with-header.story.d.ts +23 -0
- package/lib/types/context-menu/stories/context-menu-with-icon.story.d.ts +23 -0
- package/lib/types/context-menu/stories/context-menu.stories.d.ts +34 -0
- package/lib/types/context-menu/stories/index.d.ts +40 -0
- package/lib/types/drawer/stories/drawer-full.story.d.ts +23 -0
- package/lib/types/drawer/stories/drawer-not-closeable.story.d.ts +23 -0
- package/lib/types/drawer/stories/drawer-overlay.story.d.ts +23 -0
- package/lib/types/drawer/stories/drawer-portaled.story.d.ts +23 -0
- package/lib/types/drawer/stories/drawer-push.story.d.ts +22 -0
- package/lib/types/drawer/stories/drawer-resizable.story.d.ts +23 -0
- package/lib/types/drawer/stories/drawer-right-side.story.d.ts +23 -0
- package/lib/types/drawer/stories/drawer-scrollable.story.d.ts +23 -0
- package/lib/types/drawer/stories/drawer.stories.d.ts +62 -0
- package/lib/types/drawer/stories/index.d.ts +36 -0
- package/lib/types/graph-label/stories/graph-label-color.story.d.ts +23 -0
- package/lib/types/graph-label/stories/graph-label-disabled.story.d.ts +23 -0
- package/lib/types/graph-label/stories/graph-label-fluid.story.d.ts +23 -0
- package/lib/types/graph-label/stories/graph-label-non-interactive.story.d.ts +23 -0
- package/lib/types/graph-label/stories/graph-label-selected.story.d.ts +23 -0
- package/lib/types/graph-label/stories/graph-label-sizes.story.d.ts +23 -0
- package/lib/types/graph-label/stories/graph-label-types.story.d.ts +23 -0
- package/lib/types/graph-label/stories/graph-label.stories.d.ts +32 -0
- package/lib/types/graph-label/stories/index.d.ts +34 -0
- package/lib/types/label/stories/index.d.ts +28 -0
- package/lib/types/label/stories/label-colors.story.d.ts +23 -0
- package/lib/types/label/stories/label-default.story.d.ts +23 -0
- package/lib/types/label/stories/label-fills.story.d.ts +23 -0
- package/lib/types/label/stories/label-with-icons.story.d.ts +23 -0
- package/lib/types/label/stories/label.stories.d.ts +29 -0
- package/lib/types/loading-bar/stories/index.d.ts +24 -0
- package/lib/types/loading-bar/stories/loading-bar-default.story.d.ts +23 -0
- package/lib/types/loading-bar/stories/loading-bar-with-rail.story.d.ts +23 -0
- package/lib/types/loading-bar/stories/loading-bar.stories.d.ts +27 -0
- package/lib/types/loading-spinner/stories/index.d.ts +24 -0
- package/lib/types/loading-spinner/stories/loading-spinner-default.story.d.ts +23 -0
- package/lib/types/loading-spinner/stories/loading-spinner-sizes.story.d.ts +23 -0
- package/lib/types/loading-spinner/stories/loading-spinner.stories.d.ts +27 -0
- package/lib/types/segmented-control/stories/index.d.ts +28 -0
- package/lib/types/segmented-control/stories/segmented-control-default.story.d.ts +23 -0
- package/lib/types/segmented-control/stories/segmented-control-floating.story.d.ts +23 -0
- package/lib/types/segmented-control/stories/segmented-control-only-icons.story.d.ts +23 -0
- package/lib/types/segmented-control/stories/segmented-control-sizes.story.d.ts +23 -0
- package/lib/types/segmented-control/stories/segmented-control.stories.d.ts +29 -0
- package/lib/types/status-indicator/stories/index.d.ts +22 -0
- package/lib/types/status-indicator/stories/status-indicator-types.story.d.ts +23 -0
- package/lib/types/status-indicator/stories/status-indicator.stories.d.ts +26 -0
- package/lib/types/toast/Toast.d.ts +9 -1
- package/lib/types/toast/ToastControlled.d.ts +40 -0
- package/lib/types/toast/index.d.ts +1 -0
- package/lib/types/toast/stories/index.d.ts +36 -0
- package/lib/types/toast/stories/toast-action-story.d.ts +23 -0
- package/lib/types/toast/stories/toast-closeable-story.d.ts +23 -0
- package/lib/types/toast/stories/toast-controlled-story.d.ts +23 -0
- package/lib/types/toast/stories/toast-custom-story.d.ts +23 -0
- package/lib/types/toast/stories/toast-danger-story.d.ts +23 -0
- package/lib/types/toast/stories/toast-neutral-story.d.ts +23 -0
- package/lib/types/toast/stories/toast-progress-bar.d.ts +23 -0
- package/lib/types/toast/stories/toast-success-story.d.ts +23 -0
- package/lib/types/toast/stories/toast.stories.d.ts +38 -0
- package/package.json +4 -4
|
@@ -0,0 +1,43 @@
|
|
|
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, Menu } from '@neo4j-ndl/react';
|
|
24
|
+
import { useRef, useState } from 'react';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const anchorEl = useRef(null);
|
|
27
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
28
|
+
return (_jsxs(_Fragment, { children: [_jsx(Menu, { isOpen: isOpen, anchorRef: anchorEl, placement: "middle-end-middle-start", onClose: () => setIsOpen(false), children: _jsxs(Menu.Items, { children: [_jsx(Menu.Item, { title: "Action 1", onClick: () => {
|
|
29
|
+
alert('Action1');
|
|
30
|
+
setIsOpen(false);
|
|
31
|
+
} }), _jsx(Menu.Item, { title: "Action 2", onClick: () => {
|
|
32
|
+
alert('Action2');
|
|
33
|
+
setIsOpen(false);
|
|
34
|
+
} }), _jsx(Menu.Item, { title: "Action 3", description: "Action 3 is disabled", isDisabled: true, onClick: () => {
|
|
35
|
+
alert('Action3');
|
|
36
|
+
setIsOpen(false);
|
|
37
|
+
} }), _jsx(Menu.Item, { title: "Action 4", description: "Action 4 is awesome", onClick: () => {
|
|
38
|
+
alert('Action4');
|
|
39
|
+
setIsOpen(false);
|
|
40
|
+
} }), _jsx(Menu.Item, { id: "action_5", title: "Action 5", description: "Action 5 does not close the menu" })] }) }), _jsx(Button, { onClick: () => setIsOpen(true), ref: anchorEl, children: "Open Context Menu" })] }));
|
|
41
|
+
};
|
|
42
|
+
export default Component;
|
|
43
|
+
//# sourceMappingURL=context-menu-placements.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu-placements.story.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu-placements.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,QAAQ,GAAG,MAAM,CAA2B,IAAI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E,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,kCAE5C,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -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, Menu } from '@neo4j-ndl/react';
|
|
24
|
+
import { useRef, useState } from 'react';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const anchorEl = useRef(null);
|
|
27
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
28
|
+
return (_jsxs(_Fragment, { children: [_jsx(Menu, { isOpen: isOpen, anchorRef: anchorEl, onClose: (event, data) => {
|
|
29
|
+
console.info('onClose callback', event, data);
|
|
30
|
+
setIsOpen(false);
|
|
31
|
+
}, children: _jsxs(Menu.Items, { children: [_jsx(Menu.Item, { title: "Action 1", description: "Action 1 is disabled", isDisabled: true }), _jsx(Menu.Item, { title: "Action 2", onClick: () => alert('Action2') })] }) }), _jsx(Button, { onClick: () => setIsOpen(true), ref: anchorEl, children: "Open Context Menu" })] }));
|
|
32
|
+
};
|
|
33
|
+
export default Component;
|
|
34
|
+
//# sourceMappingURL=context-menu-with-disabled-item.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu-with-disabled-item.story.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu-with-disabled-item.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,QAAQ,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,8BACE,KAAC,IAAI,IACH,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;oBACvB,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;oBAC9C,SAAS,CAAC,KAAK,CAAC,CAAC;gBACnB,CAAC,YAED,MAAC,IAAI,CAAC,KAAK,eACT,KAAC,IAAI,CAAC,IAAI,IACR,KAAK,EAAC,UAAU,EAChB,WAAW,EAAC,sBAAsB,EAClC,UAAU,EAAE,IAAI,GAChB,EACF,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAAI,IACpD,GACR,EACP,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,kCAE5C,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -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, Menu } from '@neo4j-ndl/react';
|
|
24
|
+
import { useRef, useState } from 'react';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const anchorEl = useRef(null);
|
|
27
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
28
|
+
return (_jsxs(_Fragment, { children: [_jsx(Menu, { isOpen: isOpen, anchorRef: anchorEl, onClose: (event, data) => {
|
|
29
|
+
console.info('onClose callback', event, data);
|
|
30
|
+
setIsOpen(false);
|
|
31
|
+
}, children: _jsxs(Menu.Items, { children: [_jsx(Menu.Item, { title: "Action 1" }), _jsx(Menu.Divider, {}), _jsx(Menu.Item, { title: "Action 2" }), _jsx(Menu.Divider, {}), _jsx(Menu.Item, { title: "Action 3" }), _jsx(Menu.Divider, {}), _jsx(Menu.Item, { title: "Action 4" })] }) }), _jsx(Button, { onClick: () => setIsOpen(true), ref: anchorEl, children: "Open Context Menu" })] }));
|
|
32
|
+
};
|
|
33
|
+
export default Component;
|
|
34
|
+
//# sourceMappingURL=context-menu-with-divider.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu-with-divider.story.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu-with-divider.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,QAAQ,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,8BACE,KAAC,IAAI,IACH,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;oBACvB,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;oBAC9C,SAAS,CAAC,KAAK,CAAC,CAAC;gBACnB,CAAC,YAED,MAAC,IAAI,CAAC,KAAK,eACT,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,KAAC,IAAI,CAAC,OAAO,KAAG,EAChB,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,KAAC,IAAI,CAAC,OAAO,KAAG,EAChB,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,EAC9B,KAAC,IAAI,CAAC,OAAO,KAAG,EAChB,KAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,GAAG,IACnB,GACR,EACP,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,kCAE5C,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -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, Menu } from '@neo4j-ndl/react';
|
|
24
|
+
import { useRef, useState } from 'react';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const anchorEl = useRef(null);
|
|
27
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
28
|
+
return (_jsxs(_Fragment, { children: [_jsx(Menu, { isOpen: isOpen, anchorRef: anchorEl, onClose: (event, data) => {
|
|
29
|
+
console.info('onClose callback', event, data);
|
|
30
|
+
setIsOpen(false);
|
|
31
|
+
}, children: _jsxs(Menu.Items, { children: [_jsx(Menu.Header, { title: "Header", description: "Description of header/context" }), _jsx(Menu.Subheader, { title: "Subheader 1" }), _jsx(Menu.Item, { title: "Action 1", onClick: () => alert('Action1') }), _jsx(Menu.Item, { title: "Action 2", onClick: () => alert('Action2') }), _jsx(Menu.Divider, {}), _jsx(Menu.Subheader, { title: "Subheader 2" }), _jsx(Menu.Item, { title: "Action 3", description: "Action 3 is disabled", isDisabled: true, onClick: () => alert('Action3') }), _jsx(Menu.Item, { title: "Action 4", description: "Action 4 is awesome", onClick: () => alert('Action4') })] }) }), _jsx(Button, { onClick: () => setIsOpen(true), ref: anchorEl, children: "Open Context Menu" })] }));
|
|
32
|
+
};
|
|
33
|
+
export default Component;
|
|
34
|
+
//# sourceMappingURL=context-menu-with-header.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu-with-header.story.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu-with-header.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,QAAQ,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,8BACE,KAAC,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AAS,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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, Menu } from '@neo4j-ndl/react';
|
|
24
|
+
import { PhotoIconOutline, PlusIconOutline } from '@neo4j-ndl/react/icons';
|
|
25
|
+
import { useRef, useState } from 'react';
|
|
26
|
+
const Component = () => {
|
|
27
|
+
const anchorEl = useRef(null);
|
|
28
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
29
|
+
return (_jsxs(_Fragment, { children: [_jsx(Menu, { isOpen: isOpen, anchorRef: anchorEl, onClose: () => setIsOpen(false), children: _jsxs(Menu.Items, { children: [_jsx(Menu.Item, { icon: _jsx(PlusIconOutline, {}), title: "Action 1", onClick: () => alert('Action1') }), _jsx(Menu.Item, { icon: _jsx(PlusIconOutline, { className: "n-size-token-8" }), title: "Action 2", onClick: () => alert('Action2') }), _jsx(Menu.Item, { icon: _jsx(PlusIconOutline, {}), title: "Action 3", description: "Action 3 is disabled", isDisabled: true, onClick: () => alert('Action3') }), _jsx(Menu, { title: "Action 3.1", description: "Action with sub menu", icon: _jsx(PlusIconOutline, {}), children: _jsxs(Menu.Items, { children: [_jsx(Menu.Item, { title: "Text" }), _jsx(Menu.Item, { title: "Video" }), _jsx(Menu, { title: "Image", icon: _jsx(PhotoIconOutline, {}), children: _jsxs(Menu.Items, { children: [_jsx(Menu.Item, { title: ".png" }), _jsx(Menu.Item, { title: ".jpg" })] }) }), _jsx(Menu.Item, { title: "Audio" })] }) }), _jsx(Menu.Item, { icon: _jsx(PlusIconOutline, {}), title: "Action 4", description: "Action 4 is awesome", onClick: () => alert('Action4') })] }) }), _jsx(Button, { onClick: () => setIsOpen(true), ref: anchorEl, children: "Open Context Menu" })] }));
|
|
30
|
+
};
|
|
31
|
+
export default Component;
|
|
32
|
+
//# sourceMappingURL=context-menu-with-icon.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu-with-icon.story.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu-with-icon.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,QAAQ,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,CACL,8BACE,KAAC,IAAI,IACH,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,Q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AI,IACR,IAAI,EAAE,KAAC,eAAe,KAAG,EACzB,KAAK,EAAC,UAAU,EAChB,WAAW,EAAC,qBAAqB,EACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAC/B,IACS,GACR,EACP,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,kCAE5C,IACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,167 @@
|
|
|
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 { Menu } from '@neo4j-ndl/react';
|
|
23
|
+
import { ContextMenuCustomItems, ContextMenuCustomItemsSrc, ContextMenuDefault, ContextMenuDefaultSrc, ContextMenuDivider, ContextMenuDividerSrc, ContextMenuInModal, ContextMenuInModalSrc, ContextMenuInPopover, ContextMenuInPopoverSrc, ContextMenuNested, ContextMenuNestedSrc, ContextMenuPlacements, ContextMenuPlacementsSrc, ContextMenuWithDisabledItem, ContextMenuWithDisabledItemSrc, ContextMenuWithHeader, ContextMenuWithHeaderSrc, ContextMenuWithIcon, ContextMenuWithIconSrc, } from './index';
|
|
24
|
+
const componentMeta = {
|
|
25
|
+
title: 'Components/ContextMenu',
|
|
26
|
+
id: 'components-context-menu',
|
|
27
|
+
component: Menu,
|
|
28
|
+
tags: ['docsPage'],
|
|
29
|
+
parameters: {
|
|
30
|
+
controls: { disable: true },
|
|
31
|
+
},
|
|
32
|
+
decorators: [
|
|
33
|
+
(Story) => (_jsx("div", { className: "n-gap-token-4 n-flex n-flex-row n-justify-center n-items-center n-h-[200px]", children: _jsx(Story, {}) })),
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
export default componentMeta;
|
|
37
|
+
export const Default = {
|
|
38
|
+
args: {},
|
|
39
|
+
parameters: {
|
|
40
|
+
docs: {
|
|
41
|
+
source: {
|
|
42
|
+
code: ContextMenuDefaultSrc,
|
|
43
|
+
language: 'tsx',
|
|
44
|
+
type: 'code',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
render: ContextMenuDefault,
|
|
49
|
+
};
|
|
50
|
+
export const Nested = {
|
|
51
|
+
args: {},
|
|
52
|
+
parameters: {
|
|
53
|
+
docs: {
|
|
54
|
+
source: {
|
|
55
|
+
code: ContextMenuNestedSrc,
|
|
56
|
+
language: 'tsx',
|
|
57
|
+
type: 'code',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
render: ContextMenuNested,
|
|
62
|
+
};
|
|
63
|
+
export const WithDivider = {
|
|
64
|
+
args: {},
|
|
65
|
+
parameters: {
|
|
66
|
+
docs: {
|
|
67
|
+
source: {
|
|
68
|
+
code: ContextMenuDividerSrc,
|
|
69
|
+
language: 'tsx',
|
|
70
|
+
type: 'code',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
render: ContextMenuDivider,
|
|
75
|
+
};
|
|
76
|
+
export const WithHeader = {
|
|
77
|
+
args: {},
|
|
78
|
+
parameters: {
|
|
79
|
+
docs: {
|
|
80
|
+
source: {
|
|
81
|
+
code: ContextMenuWithHeaderSrc,
|
|
82
|
+
language: 'tsx',
|
|
83
|
+
type: 'code',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
render: ContextMenuWithHeader,
|
|
88
|
+
};
|
|
89
|
+
export const WithIcon = {
|
|
90
|
+
args: {},
|
|
91
|
+
parameters: {
|
|
92
|
+
docs: {
|
|
93
|
+
source: {
|
|
94
|
+
code: ContextMenuWithIconSrc,
|
|
95
|
+
language: 'tsx',
|
|
96
|
+
type: 'code',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
render: ContextMenuWithIcon,
|
|
101
|
+
};
|
|
102
|
+
export const WithDisabledItem = {
|
|
103
|
+
args: {},
|
|
104
|
+
parameters: {
|
|
105
|
+
docs: {
|
|
106
|
+
source: {
|
|
107
|
+
code: ContextMenuWithDisabledItemSrc,
|
|
108
|
+
language: 'tsx',
|
|
109
|
+
type: 'code',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
render: ContextMenuWithDisabledItem,
|
|
114
|
+
};
|
|
115
|
+
export const CustomItems = {
|
|
116
|
+
args: {},
|
|
117
|
+
parameters: {
|
|
118
|
+
docs: {
|
|
119
|
+
source: {
|
|
120
|
+
code: ContextMenuCustomItemsSrc,
|
|
121
|
+
language: 'tsx',
|
|
122
|
+
type: 'code',
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
render: ContextMenuCustomItems,
|
|
127
|
+
};
|
|
128
|
+
export const InPopover = {
|
|
129
|
+
args: {},
|
|
130
|
+
parameters: {
|
|
131
|
+
docs: {
|
|
132
|
+
source: {
|
|
133
|
+
code: ContextMenuInPopoverSrc,
|
|
134
|
+
language: 'tsx',
|
|
135
|
+
type: 'code',
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
render: ContextMenuInPopover,
|
|
140
|
+
};
|
|
141
|
+
export const InModal = {
|
|
142
|
+
args: {},
|
|
143
|
+
parameters: {
|
|
144
|
+
docs: {
|
|
145
|
+
source: {
|
|
146
|
+
code: ContextMenuInModalSrc,
|
|
147
|
+
language: 'tsx',
|
|
148
|
+
type: 'code',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
render: ContextMenuInModal,
|
|
153
|
+
};
|
|
154
|
+
export const Placements = {
|
|
155
|
+
args: {},
|
|
156
|
+
parameters: {
|
|
157
|
+
docs: {
|
|
158
|
+
source: {
|
|
159
|
+
code: ContextMenuPlacementsSrc,
|
|
160
|
+
language: 'tsx',
|
|
161
|
+
type: 'code',
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
render: ContextMenuPlacements,
|
|
166
|
+
};
|
|
167
|
+
//# sourceMappingURL=context-menu.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu.stories.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/context-menu.stories.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGxC,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,8BAA8B,EAC9B,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,SAAS,CAAC;AAEjB,MAAM,aAAa,GAAsB;IACvC,KAAK,EAAE,wBAA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,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAmC;IACxD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,wBAAwB;gBAC9B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,qBAAqB;CAC9B,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 ContextMenuDefault } from './context-menu-default.story';
|
|
22
|
+
export { default as ContextMenuNested } from './context-menu-nested.story';
|
|
23
|
+
export { default as ContextMenuWithHeader } from './context-menu-with-header.story';
|
|
24
|
+
export { default as ContextMenuWithIcon } from './context-menu-with-icon.story';
|
|
25
|
+
export { default as ContextMenuCustomItems } from './context-menu-custom-items.story';
|
|
26
|
+
export { default as ContextMenuInPopover } from './context-menu-in-popover.story';
|
|
27
|
+
export { default as ContextMenuInModal } from './context-menu-in-modal.story';
|
|
28
|
+
export { default as ContextMenuDivider } from './context-menu-with-divider.story';
|
|
29
|
+
export { default as ContextMenuWithDisabledItem } from './context-menu-with-disabled-item.story';
|
|
30
|
+
export { default as ContextMenuPlacements } from './context-menu-placements.story';
|
|
31
|
+
import { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';
|
|
32
|
+
import ContextMenuCustomItemsSrcRaw from './context-menu-custom-items.story?raw';
|
|
33
|
+
import ContextMenuDefaultSrcRaw from './context-menu-default.story?raw';
|
|
34
|
+
import ContextMenuInModalSrcRaw from './context-menu-in-modal.story?raw';
|
|
35
|
+
import ContextMenuInPopoverSrcRaw from './context-menu-in-popover.story?raw';
|
|
36
|
+
import ContextMenuNestedSrcRaw from './context-menu-nested.story?raw';
|
|
37
|
+
import ContextMenuPlacementsSrcRaw from './context-menu-placements.story?raw';
|
|
38
|
+
import ContextMenuWithDisabledItemSrcRaw from './context-menu-with-disabled-item.story?raw';
|
|
39
|
+
import ContextMenuDividerSrcRaw from './context-menu-with-divider.story?raw';
|
|
40
|
+
import ContextMenuWithHeaderSrcRaw from './context-menu-with-header.story?raw';
|
|
41
|
+
import ContextMenuWithIconSrcRaw from './context-menu-with-icon.story?raw';
|
|
42
|
+
export const ContextMenuDefaultSrc = removeLicenseHeader(ContextMenuDefaultSrcRaw);
|
|
43
|
+
export const ContextMenuNestedSrc = removeLicenseHeader(ContextMenuNestedSrcRaw);
|
|
44
|
+
export const ContextMenuWithHeaderSrc = removeLicenseHeader(ContextMenuWithHeaderSrcRaw);
|
|
45
|
+
export const ContextMenuWithIconSrc = removeLicenseHeader(ContextMenuWithIconSrcRaw);
|
|
46
|
+
export const ContextMenuCustomItemsSrc = removeLicenseHeader(ContextMenuCustomItemsSrcRaw);
|
|
47
|
+
export const ContextMenuInPopoverSrc = removeLicenseHeader(ContextMenuInPopoverSrcRaw);
|
|
48
|
+
export const ContextMenuInModalSrc = removeLicenseHeader(ContextMenuInModalSrcRaw);
|
|
49
|
+
export const ContextMenuDividerSrc = removeLicenseHeader(ContextMenuDividerSrcRaw);
|
|
50
|
+
export const ContextMenuWithDisabledItemSrc = removeLicenseHeader(ContextMenuWithDisabledItemSrcRaw);
|
|
51
|
+
export const ContextMenuPlacementsSrc = removeLicenseHeader(ContextMenuPlacementsSrcRaw);
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/context-menu/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAEnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,4BAA4B,MAAM,uCAAuC,CAAC;AACjF,OAAO,wBAAwB,MAAM,kCAAkC,CAAC;AACxE,OAAO,wBAAwB,MAAM,mCAAmC,CAAC;AACzE,OAAO,0BAA0B,MAAM,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|
+
*
|
|
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, Checkbox, Drawer, TextInput } from '@neo4j-ndl/react';
|
|
24
|
+
import { useState } from 'react';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const [isExpanded, setIsExpanded] = useState(true);
|
|
27
|
+
const Placeholder = () => (_jsx("div", { className: "n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md n-p-token-6 w-full", children: _jsx("div", { className: "n-border-dashed n-border-2 n-border-light-primary-bg-strong n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md", children: _jsx(Button, { onClick: () => setIsExpanded(true), children: "Press to show the Drawer" }) }) }));
|
|
28
|
+
return (_jsxs("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-relative n-overflow-hidden", children: [_jsxs(Drawer, { type: "push", isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(false), isResizeable: true, resizeableProps: {
|
|
29
|
+
maxWidth: '400px',
|
|
30
|
+
minWidth: '300px',
|
|
31
|
+
}, isCloseable: true, isPortaled: false, children: [_jsx(Drawer.Header, { children: "Drawer Header" }), _jsxs(Drawer.Body, { children: [_jsx(TextInput, { isOptional: true, informationIconText: "some information", label: "Label", isDisabled: false, isReadOnly: false, helpText: "Friendly text", isFluid: true }), _jsx("br", {}), _jsx(TextInput, { label: "Some input", value: "something" }), _jsx("br", {}), _jsx(Checkbox, { label: "Checkbox label" }), _jsx("br", {}), "Some example of something.", _jsx("br", {}), _jsx(TextInput, { label: "Some input", isDisabled: true, value: "something" }), _jsx("br", {}), _jsx(TextInput, { isOptional: true, informationIconText: "some information", label: "Label", isDisabled: false, isReadOnly: false, helpText: "Friendly text", isFluid: true }), _jsx("br", {}), "Some example of something.", _jsx("br", {}), _jsx(TextInput, { label: "Some input", value: "something" }), _jsx("br", {}), _jsx(Checkbox, { label: "Checkbox label" }), _jsx("br", {}), _jsx(TextInput, { label: "Some input", value: "something" })] }), _jsx(Drawer.Actions, { children: _jsx(Button, { onClick: () => setIsExpanded(false), size: "medium", children: "Close" }) })] }), _jsx(Placeholder, {})] }));
|
|
32
|
+
};
|
|
33
|
+
export default Component;
|
|
34
|
+
//# sourceMappingURL=drawer-full.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-full.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-full.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,cAAK,SAAS,EAAC,+FAA+F,YAC5G,cAAK,SAAS,EAAC,wIAAwI,YACrJ,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,yCAEjC,GACL,GACF,C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,EACN,KAAC,SAAS,IAAC,KAAK,EAAC,YAAY,EAAC,KAAK,EAAC,WAAW,GAAG,IACtC,EACd,KAAC,MAAM,CAAC,OAAO,cACb,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,QAAQ,sBAEjD,GACM,IACV,EACT,KAAC,WAAW,KAAG,IACX,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { Button, Drawer } from '@neo4j-ndl/react';
|
|
24
|
+
import { useState } from 'react';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const [isExpanded, setIsExpanded] = useState(true);
|
|
27
|
+
const Placeholder = () => (_jsx("div", { className: "n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md n-p-token-6 w-full", children: _jsx("div", { className: "n-border-dashed n-border-2 n-border-light-primary-bg-strong n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md", children: _jsx(Button, { onClick: () => setIsExpanded(true), children: "Press to show the Drawer" }) }) }));
|
|
28
|
+
return (_jsxs("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-relative n-overflow-hidden", children: [_jsxs(Drawer, { type: "overlay", isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(false), position: "left", isCloseable: false, children: [_jsx(Drawer.Header, { children: "Drawer Header" }), _jsx(Drawer.Body, { children: "Lorem ipsum dolor sit amet." })] }), _jsx(Placeholder, {})] }));
|
|
29
|
+
};
|
|
30
|
+
export default Component;
|
|
31
|
+
//# sourceMappingURL=drawer-not-closeable.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-not-closeable.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-not-closeable.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,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,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,cAAK,SAAS,EAAC,+FAA+F,YAC5G,cAAK,SAAS,EAAC,wIAAwI,YACrJ,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,yCAEjC,GACL,GACF,CACP,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,2EAA2E,aACxF,MAAC,MAAM,IACL,IAAI,EAAC,SAAS,EACd,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAC5C,QAAQ,EAAC,MAAM,EACf,WAAW,EAAE,KAAK,aAElB,KAAC,MAAM,CAAC,MAAM,gCAA8B,EAC5C,KAAC,MAAM,CAAC,IAAI,8CAA0C,IAC/C,EACT,KAAC,WAAW,KAAG,IACX,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { Button, Drawer } from '@neo4j-ndl/react';
|
|
24
|
+
import { useState } from 'react';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const [isExpanded, setIsExpanded] = useState(true);
|
|
27
|
+
const Placeholder = () => (_jsx("div", { className: "n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md n-p-token-6 w-full", children: _jsx("div", { className: "n-border-dashed n-border-2 n-border-light-primary-bg-strong n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md", children: _jsx(Button, { onClick: () => setIsExpanded(true), children: "Press to show the Drawer" }) }) }));
|
|
28
|
+
return (_jsxs("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-relative n-overflow-hidden", children: [_jsxs(Drawer, { isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(false), type: "overlay", children: [_jsx(Drawer.Header, { children: "Drawer Header" }), _jsx(Drawer.Body, { children: "Lorem ipsum dolor sit amet." }), _jsx(Drawer.Actions, { children: _jsx(Button, { onClick: () => setIsExpanded(false), size: "medium", children: "Close" }) })] }), _jsx(Placeholder, {})] }));
|
|
29
|
+
};
|
|
30
|
+
export default Component;
|
|
31
|
+
//# sourceMappingURL=drawer-overlay.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-overlay.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-overlay.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,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,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,cAAK,SAAS,EAAC,+FAA+F,YAC5G,cAAK,SAAS,EAAC,wIAAwI,YACrJ,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,yCAEjC,GACL,GACF,CACP,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,2EAA2E,aACxF,MAAC,MAAM,IACL,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAC5C,IAAI,EAAC,SAAS,aAEd,KAAC,MAAM,CAAC,MAAM,gCAA8B,EAC5C,KAAC,MAAM,CAAC,IAAI,8CAA0C,EACtD,KAAC,MAAM,CAAC,OAAO,cACb,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,QAAQ,sBAEjD,GACM,IACV,EACT,KAAC,WAAW,KAAG,IACX,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { Button, Drawer } from '@neo4j-ndl/react';
|
|
24
|
+
import { useState } from 'react';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
27
|
+
const Placeholder = () => (_jsx("div", { className: "n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md n-p-token-6 w-full", children: _jsx("div", { className: "n-border-dashed n-border-2 n-border-light-primary-bg-strong n-size-full n-flex n-flex-col n-items-center n-justify-center n-rounded-md", children: _jsx(Button, { onClick: () => setIsExpanded(true), children: "Press to show the Drawer" }) }) }));
|
|
28
|
+
return (_jsxs("div", { className: "n-h-[calc(40vh-32px)] n-min-h-[700px] n-flex n-relative n-overflow-hidden", children: [_jsxs(Drawer, { type: "overlay", isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(false), position: "left", isResizeable: true, resizeableProps: {
|
|
29
|
+
maxWidth: '400px',
|
|
30
|
+
minWidth: '300px',
|
|
31
|
+
}, isPortaled: true, portalProps: {
|
|
32
|
+
id: 'storybook-root',
|
|
33
|
+
}, children: [_jsx(Drawer.Header, { children: "Drawer Header" }), _jsx(Drawer.Body, { children: "Lorem ipsum dolor sit amet." }), _jsx(Drawer.Actions, { children: _jsx(Button, { onClick: () => setIsExpanded(false), size: "medium", children: "Close" }) })] }), _jsx(Placeholder, {})] }));
|
|
34
|
+
};
|
|
35
|
+
export default Component;
|
|
36
|
+
//# sourceMappingURL=drawer-portaled.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-portaled.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-portaled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,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,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,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