@neo4j-ndl/react 3.8.35 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/_common/CodeBlockWrapper.js +1 -1
- package/lib/cjs/avatar/Avatar.js +1 -1
- 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/breadcrumbs/Breadcrumbs.js +2 -2
- 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/code/stories/code-default.story.js +31 -0
- package/lib/cjs/code/stories/code-default.story.js.map +1 -0
- package/lib/cjs/code/stories/code-disabled.story.js +45 -0
- package/lib/cjs/code/stories/code-disabled.story.js.map +1 -0
- package/lib/cjs/code/stories/code-full.story.js +45 -0
- package/lib/cjs/code/stories/code-full.story.js.map +1 -0
- package/lib/cjs/code/stories/code-inline-runnable.story.js +30 -0
- package/lib/cjs/code/stories/code-inline-runnable.story.js.map +1 -0
- package/lib/cjs/code/stories/code-inline.story.js +30 -0
- package/lib/cjs/code/stories/code-inline.story.js.map +1 -0
- package/lib/cjs/code/stories/code-languages.story.js +31 -0
- package/lib/cjs/code/stories/code-languages.story.js.map +1 -0
- package/lib/cjs/code/stories/code-overflow.story.js +31 -0
- package/lib/cjs/code/stories/code-overflow.story.js.map +1 -0
- package/lib/cjs/code/stories/code-with-actions.story.js +45 -0
- package/lib/cjs/code/stories/code-with-actions.story.js.map +1 -0
- package/lib/cjs/code/stories/code-with-header.story.js +31 -0
- package/lib/cjs/code/stories/code-with-header.story.js.map +1 -0
- package/lib/cjs/code/stories/code-with-line-numbers.story.js +31 -0
- package/lib/cjs/code/stories/code-with-line-numbers.story.js.map +1 -0
- package/lib/cjs/code/stories/code.stories.js +166 -0
- package/lib/cjs/code/stories/code.stories.js.map +1 -0
- package/lib/cjs/code/stories/example-code-snippets.js +81 -0
- package/lib/cjs/code/stories/example-code-snippets.js.map +1 -0
- package/lib/cjs/code/stories/index.js +68 -0
- package/lib/cjs/code/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/data-grid/Components.js +1 -1
- package/lib/cjs/date-picker/stories/date-picker-default.story.js +41 -0
- package/lib/cjs/date-picker/stories/date-picker-default.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-disabled.story.js +38 -0
- package/lib/cjs/date-picker/stories/date-picker-disabled.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-full.story.js +60 -0
- package/lib/cjs/date-picker/stories/date-picker-full.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-inside-modal.story.js +41 -0
- package/lib/cjs/date-picker/stories/date-picker-inside-modal.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-min-max-date.story.js +45 -0
- package/lib/cjs/date-picker/stories/date-picker-min-max-date.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-opens-to-date.story.js +43 -0
- package/lib/cjs/date-picker/stories/date-picker-opens-to-date.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-starts-on-monday.story.js +42 -0
- package/lib/cjs/date-picker/stories/date-picker-starts-on-monday.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-text-input-props.story.js +44 -0
- package/lib/cjs/date-picker/stories/date-picker-text-input-props.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-with-time-picker.story.js +45 -0
- package/lib/cjs/date-picker/stories/date-picker-with-time-picker.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker.stories.js +207 -0
- package/lib/cjs/date-picker/stories/date-picker.stories.js.map +1 -0
- package/lib/cjs/date-picker/stories/index.js +64 -0
- package/lib/cjs/date-picker/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/dropzone/stories/dropzone-csv-files.story.js +37 -0
- package/lib/cjs/dropzone/stories/dropzone-csv-files.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-custom-extensions.story.js +36 -0
- package/lib/cjs/dropzone/stories/dropzone-custom-extensions.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-default.story.js +36 -0
- package/lib/cjs/dropzone/stories/dropzone-default.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-disabled.story.js +38 -0
- package/lib/cjs/dropzone/stories/dropzone-disabled.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-full.story.js +109 -0
- package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-loading-progress.story.js +31 -0
- package/lib/cjs/dropzone/stories/dropzone-loading-progress.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-loading-spinner.story.js +31 -0
- package/lib/cjs/dropzone/stories/dropzone-loading-spinner.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone.stories.js +121 -0
- package/lib/cjs/dropzone/stories/dropzone.stories.js.map +1 -0
- package/lib/cjs/dropzone/stories/index.js +56 -0
- package/lib/cjs/dropzone/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/graph-visualization/graph-visualization-buttons.js +2 -2
- package/lib/cjs/graph-visualization/graph-visualization.js +20 -4
- package/lib/cjs/graph-visualization/graph-visualization.js.map +1 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization-highlighting.story.js +30 -0
- package/lib/cjs/graph-visualization/stories/graph-visualization-highlighting.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-managed-selection-state.js → use-managed-node-state.js} +10 -6
- package/lib/cjs/graph-visualization/use-managed-node-state.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/next/breadcrumbs/Breadcrumbs.js +1 -1
- package/lib/cjs/radio/stories/index.js +56 -0
- package/lib/cjs/radio/stories/index.js.map +1 -0
- package/lib/cjs/radio/stories/radio-checkedByDefault.story.js +30 -0
- package/lib/cjs/radio/stories/radio-checkedByDefault.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-custom-label.story.js +30 -0
- package/lib/cjs/radio/stories/radio-custom-label.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-default.story.js +30 -0
- package/lib/cjs/radio/stories/radio-default.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-disabled.story.js +30 -0
- package/lib/cjs/radio/stories/radio-disabled.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-hasLabelBefore.story.js +30 -0
- package/lib/cjs/radio/stories/radio-hasLabelBefore.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-no-label.story.js +30 -0
- package/lib/cjs/radio/stories/radio-no-label.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-truncated-label.story.js +30 -0
- package/lib/cjs/radio/stories/radio-truncated-label.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio.stories.js +137 -0
- package/lib/cjs/radio/stories/radio.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/spotlight/SpotlightTarget.js +1 -1
- 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/switch/stories/index.js +56 -0
- package/lib/cjs/switch/stories/index.js.map +1 -0
- package/lib/cjs/switch/stories/switch-checked-by-default.story.js +30 -0
- package/lib/cjs/switch/stories/switch-checked-by-default.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-default.story.js +30 -0
- package/lib/cjs/switch/stories/switch-default.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-disabled.story.js +30 -0
- package/lib/cjs/switch/stories/switch-disabled.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-full.story.js +39 -0
- package/lib/cjs/switch/stories/switch-full.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-has-label-before.story.js +30 -0
- package/lib/cjs/switch/stories/switch-has-label-before.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-indeterminate.story.js +33 -0
- package/lib/cjs/switch/stories/switch-indeterminate.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-no-label.story.js +30 -0
- package/lib/cjs/switch/stories/switch-no-label.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch.stories.js +137 -0
- package/lib/cjs/switch/stories/switch.stories.js.map +1 -0
- package/lib/cjs/tabs/stories/index.js +48 -0
- package/lib/cjs/tabs/stories/index.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-default.story.js +32 -0
- package/lib/cjs/tabs/stories/tabs-default.story.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-disabled.story.js +32 -0
- package/lib/cjs/tabs/stories/tabs-disabled.story.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +33 -0
- package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-sizes.story.js +33 -0
- package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-with-icons.story.js +33 -0
- package/lib/cjs/tabs/stories/tabs-with-icons.story.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs.stories.js +106 -0
- package/lib/cjs/tabs/stories/tabs.stories.js.map +1 -0
- package/lib/cjs/tag/stories/index.js +42 -0
- package/lib/cjs/tag/stories/index.js.map +1 -0
- package/lib/cjs/tag/stories/tag-removable.story.js +33 -0
- package/lib/cjs/tag/stories/tag-removable.story.js.map +1 -0
- package/lib/cjs/tag/stories/tag-sizes.story.js +30 -0
- package/lib/cjs/tag/stories/tag-sizes.story.js.map +1 -0
- package/lib/cjs/tag/stories/tag-types.story.js +30 -0
- package/lib/cjs/tag/stories/tag-types.story.js.map +1 -0
- package/lib/cjs/tag/stories/tag.stories.js +80 -0
- package/lib/cjs/tag/stories/tag.stories.js.map +1 -0
- package/lib/cjs/text-link/stories/index.js +40 -0
- package/lib/cjs/text-link/stories/index.js.map +1 -0
- package/lib/cjs/text-link/stories/text-link-default.story.js +30 -0
- package/lib/cjs/text-link/stories/text-link-default.story.js.map +1 -0
- package/lib/cjs/text-link/stories/text-link-external.story.js +30 -0
- package/lib/cjs/text-link/stories/text-link-external.story.js.map +1 -0
- package/lib/cjs/text-link/stories/text-link-internal-icon.story.js +30 -0
- package/lib/cjs/text-link/stories/text-link-internal-icon.story.js.map +1 -0
- package/lib/cjs/text-link/stories/text-link.stories.js +76 -0
- package/lib/cjs/text-link/stories/text-link.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/cjs/tree-view/TreeItemWrapper.js +1 -2
- package/lib/cjs/tree-view/TreeItemWrapper.js.map +1 -1
- package/lib/esm/_common/CodeBlockWrapper.js +1 -1
- package/lib/esm/avatar/Avatar.js +1 -1
- 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/breadcrumbs/Breadcrumbs.js +2 -2
- 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/code/stories/code-default.story.js +29 -0
- package/lib/esm/code/stories/code-default.story.js.map +1 -0
- package/lib/esm/code/stories/code-disabled.story.js +43 -0
- package/lib/esm/code/stories/code-disabled.story.js.map +1 -0
- package/lib/esm/code/stories/code-full.story.js +43 -0
- package/lib/esm/code/stories/code-full.story.js.map +1 -0
- package/lib/esm/code/stories/code-inline-runnable.story.js +28 -0
- package/lib/esm/code/stories/code-inline-runnable.story.js.map +1 -0
- package/lib/esm/code/stories/code-inline.story.js +28 -0
- package/lib/esm/code/stories/code-inline.story.js.map +1 -0
- package/lib/esm/code/stories/code-languages.story.js +29 -0
- package/lib/esm/code/stories/code-languages.story.js.map +1 -0
- package/lib/esm/code/stories/code-overflow.story.js +29 -0
- package/lib/esm/code/stories/code-overflow.story.js.map +1 -0
- package/lib/esm/code/stories/code-with-actions.story.js +43 -0
- package/lib/esm/code/stories/code-with-actions.story.js.map +1 -0
- package/lib/esm/code/stories/code-with-header.story.js +29 -0
- package/lib/esm/code/stories/code-with-header.story.js.map +1 -0
- package/lib/esm/code/stories/code-with-line-numbers.story.js +29 -0
- package/lib/esm/code/stories/code-with-line-numbers.story.js.map +1 -0
- package/lib/esm/code/stories/code.stories.js +163 -0
- package/lib/esm/code/stories/code.stories.js.map +1 -0
- package/lib/esm/code/stories/example-code-snippets.js +78 -0
- package/lib/esm/code/stories/example-code-snippets.js.map +1 -0
- package/lib/esm/code/stories/index.js +52 -0
- package/lib/esm/code/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/data-grid/Components.js +1 -1
- package/lib/esm/date-picker/stories/date-picker-default.story.js +39 -0
- package/lib/esm/date-picker/stories/date-picker-default.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-disabled.story.js +36 -0
- package/lib/esm/date-picker/stories/date-picker-disabled.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-full.story.js +58 -0
- package/lib/esm/date-picker/stories/date-picker-full.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-inside-modal.story.js +39 -0
- package/lib/esm/date-picker/stories/date-picker-inside-modal.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-min-max-date.story.js +43 -0
- package/lib/esm/date-picker/stories/date-picker-min-max-date.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-opens-to-date.story.js +41 -0
- package/lib/esm/date-picker/stories/date-picker-opens-to-date.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-starts-on-monday.story.js +40 -0
- package/lib/esm/date-picker/stories/date-picker-starts-on-monday.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-text-input-props.story.js +42 -0
- package/lib/esm/date-picker/stories/date-picker-text-input-props.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-with-time-picker.story.js +43 -0
- package/lib/esm/date-picker/stories/date-picker-with-time-picker.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker.stories.js +201 -0
- package/lib/esm/date-picker/stories/date-picker.stories.js.map +1 -0
- package/lib/esm/date-picker/stories/index.js +49 -0
- package/lib/esm/date-picker/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/dropzone/stories/dropzone-csv-files.story.js +35 -0
- package/lib/esm/dropzone/stories/dropzone-csv-files.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-custom-extensions.story.js +34 -0
- package/lib/esm/dropzone/stories/dropzone-custom-extensions.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-default.story.js +34 -0
- package/lib/esm/dropzone/stories/dropzone-default.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-disabled.story.js +36 -0
- package/lib/esm/dropzone/stories/dropzone-disabled.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-full.story.js +107 -0
- package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-loading-progress.story.js +29 -0
- package/lib/esm/dropzone/stories/dropzone-loading-progress.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-loading-spinner.story.js +29 -0
- package/lib/esm/dropzone/stories/dropzone-loading-spinner.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone.stories.js +118 -0
- package/lib/esm/dropzone/stories/dropzone.stories.js.map +1 -0
- package/lib/esm/dropzone/stories/index.js +43 -0
- package/lib/esm/dropzone/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/graph-visualization/graph-visualization-buttons.js +2 -2
- package/lib/esm/graph-visualization/graph-visualization.js +20 -4
- package/lib/esm/graph-visualization/graph-visualization.js.map +1 -1
- package/lib/esm/graph-visualization/stories/graph-visualization-highlighting.story.js +28 -0
- package/lib/esm/graph-visualization/stories/graph-visualization-highlighting.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-managed-selection-state.js → use-managed-node-state.js} +9 -5
- package/lib/esm/graph-visualization/use-managed-node-state.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/next/breadcrumbs/Breadcrumbs.js +1 -1
- package/lib/esm/radio/stories/index.js +43 -0
- package/lib/esm/radio/stories/index.js.map +1 -0
- package/lib/esm/radio/stories/radio-checkedByDefault.story.js +28 -0
- package/lib/esm/radio/stories/radio-checkedByDefault.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-custom-label.story.js +28 -0
- package/lib/esm/radio/stories/radio-custom-label.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-default.story.js +28 -0
- package/lib/esm/radio/stories/radio-default.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-disabled.story.js +28 -0
- package/lib/esm/radio/stories/radio-disabled.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-hasLabelBefore.story.js +28 -0
- package/lib/esm/radio/stories/radio-hasLabelBefore.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-no-label.story.js +28 -0
- package/lib/esm/radio/stories/radio-no-label.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-truncated-label.story.js +28 -0
- package/lib/esm/radio/stories/radio-truncated-label.story.js.map +1 -0
- package/lib/esm/radio/stories/radio.stories.js +134 -0
- package/lib/esm/radio/stories/radio.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/spotlight/SpotlightTarget.js +1 -1
- 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/switch/stories/index.js +43 -0
- package/lib/esm/switch/stories/index.js.map +1 -0
- package/lib/esm/switch/stories/switch-checked-by-default.story.js +28 -0
- package/lib/esm/switch/stories/switch-checked-by-default.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-default.story.js +28 -0
- package/lib/esm/switch/stories/switch-default.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-disabled.story.js +28 -0
- package/lib/esm/switch/stories/switch-disabled.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-full.story.js +37 -0
- package/lib/esm/switch/stories/switch-full.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-has-label-before.story.js +28 -0
- package/lib/esm/switch/stories/switch-has-label-before.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-indeterminate.story.js +31 -0
- package/lib/esm/switch/stories/switch-indeterminate.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-no-label.story.js +28 -0
- package/lib/esm/switch/stories/switch-no-label.story.js.map +1 -0
- package/lib/esm/switch/stories/switch.stories.js +134 -0
- package/lib/esm/switch/stories/switch.stories.js.map +1 -0
- package/lib/esm/tabs/stories/index.js +37 -0
- package/lib/esm/tabs/stories/index.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-default.story.js +30 -0
- package/lib/esm/tabs/stories/tabs-default.story.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-disabled.story.js +30 -0
- package/lib/esm/tabs/stories/tabs-disabled.story.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-fill-variants.story.js +31 -0
- package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-sizes.story.js +31 -0
- package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-with-icons.story.js +31 -0
- package/lib/esm/tabs/stories/tabs-with-icons.story.js.map +1 -0
- package/lib/esm/tabs/stories/tabs.stories.js +103 -0
- package/lib/esm/tabs/stories/tabs.stories.js.map +1 -0
- package/lib/esm/tag/stories/index.js +32 -0
- package/lib/esm/tag/stories/index.js.map +1 -0
- package/lib/esm/tag/stories/tag-removable.story.js +31 -0
- package/lib/esm/tag/stories/tag-removable.story.js.map +1 -0
- package/lib/esm/tag/stories/tag-sizes.story.js +28 -0
- package/lib/esm/tag/stories/tag-sizes.story.js.map +1 -0
- package/lib/esm/tag/stories/tag-types.story.js +28 -0
- package/lib/esm/tag/stories/tag-types.story.js.map +1 -0
- package/lib/esm/tag/stories/tag.stories.js +77 -0
- package/lib/esm/tag/stories/tag.stories.js.map +1 -0
- package/lib/esm/text-link/stories/index.js +31 -0
- package/lib/esm/text-link/stories/index.js.map +1 -0
- package/lib/esm/text-link/stories/text-link-default.story.js +28 -0
- package/lib/esm/text-link/stories/text-link-default.story.js.map +1 -0
- package/lib/esm/text-link/stories/text-link-external.story.js +28 -0
- package/lib/esm/text-link/stories/text-link-external.story.js.map +1 -0
- package/lib/esm/text-link/stories/text-link-internal-icon.story.js +28 -0
- package/lib/esm/text-link/stories/text-link-internal-icon.story.js.map +1 -0
- package/lib/esm/text-link/stories/text-link.stories.js +73 -0
- package/lib/esm/text-link/stories/text-link.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/esm/tree-view/TreeItemWrapper.js +1 -2
- package/lib/esm/tree-view/TreeItemWrapper.js.map +1 -1
- 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/code/stories/code-default.story.d.ts +23 -0
- package/lib/types/code/stories/code-disabled.story.d.ts +23 -0
- package/lib/types/code/stories/code-full.story.d.ts +23 -0
- package/lib/types/code/stories/code-inline-runnable.story.d.ts +23 -0
- package/lib/types/code/stories/code-inline.story.d.ts +23 -0
- package/lib/types/code/stories/code-languages.story.d.ts +23 -0
- package/lib/types/code/stories/code-overflow.story.d.ts +23 -0
- package/lib/types/code/stories/code-with-actions.story.d.ts +23 -0
- package/lib/types/code/stories/code-with-header.story.d.ts +23 -0
- package/lib/types/code/stories/code-with-line-numbers.story.d.ts +23 -0
- package/lib/types/code/stories/code.stories.d.ts +34 -0
- package/lib/types/code/stories/example-code-snippets.d.ts +27 -0
- package/lib/types/code/stories/index.d.ts +40 -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/date-picker/stories/date-picker-default.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-disabled.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-full.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-inside-modal.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-min-max-date.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-opens-to-date.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-starts-on-monday.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-text-input-props.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-with-time-picker.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker.stories.d.ts +34 -0
- package/lib/types/date-picker/stories/index.d.ts +38 -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/dropzone/stories/dropzone-csv-files.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-custom-extensions.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-default.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-disabled.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-full.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-loading-progress.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-loading-spinner.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone.stories.d.ts +32 -0
- package/lib/types/dropzone/stories/index.d.ts +34 -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/graph-visualization/graph-visualization.d.ts +17 -1
- package/lib/types/graph-visualization/stories/graph-visualization-highlighting.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-managed-selection-state.d.ts → use-managed-node-state.d.ts} +8 -6
- 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/radio/stories/index.d.ts +34 -0
- package/lib/types/radio/stories/radio-checkedByDefault.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-custom-label.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-default.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-disabled.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-hasLabelBefore.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-no-label.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-truncated-label.story.d.ts +23 -0
- package/lib/types/radio/stories/radio.stories.d.ts +32 -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/switch/stories/index.d.ts +34 -0
- package/lib/types/switch/stories/switch-checked-by-default.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-default.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-disabled.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-full.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-has-label-before.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-indeterminate.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-no-label.story.d.ts +23 -0
- package/lib/types/switch/stories/switch.stories.d.ts +32 -0
- package/lib/types/tabs/stories/index.d.ts +30 -0
- package/lib/types/tabs/stories/tabs-default.story.d.ts +23 -0
- package/lib/types/tabs/stories/tabs-disabled.story.d.ts +23 -0
- package/lib/types/tabs/stories/tabs-fill-variants.story.d.ts +23 -0
- package/lib/types/tabs/stories/tabs-sizes.story.d.ts +23 -0
- package/lib/types/tabs/stories/tabs-with-icons.story.d.ts +23 -0
- package/lib/types/tabs/stories/tabs.stories.d.ts +30 -0
- package/lib/types/tag/stories/index.d.ts +27 -0
- package/lib/types/tag/stories/tag-removable.story.d.ts +23 -0
- package/lib/types/tag/stories/tag-sizes.story.d.ts +23 -0
- package/lib/types/tag/stories/tag-types.story.d.ts +23 -0
- package/lib/types/tag/stories/tag.stories.d.ts +28 -0
- package/lib/types/text-link/stories/index.d.ts +26 -0
- package/lib/types/text-link/stories/text-link-default.story.d.ts +23 -0
- package/lib/types/text-link/stories/text-link-external.story.d.ts +23 -0
- package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts +23 -0
- package/lib/types/text-link/stories/text-link.stories.d.ts +28 -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 +12 -5
- package/lib/cjs/graph-visualization/use-managed-selection-state.js.map +0 -1
- package/lib/esm/graph-visualization/use-managed-selection-state.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-push.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-push.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,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,MAAM,EACX,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,aAE5C,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,34 @@
|
|
|
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", isResizeable: true, resizeableProps: {
|
|
29
|
+
maxWidth: '400px',
|
|
30
|
+
minWidth: '300px',
|
|
31
|
+
}, 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, {})] }));
|
|
32
|
+
};
|
|
33
|
+
export default Component;
|
|
34
|
+
//# sourceMappingURL=drawer-resizable.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-resizable.story.js","sourceRoot":"","sources":["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sx-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: [_jsx(Placeholder, {}), _jsxs(Drawer, { type: "overlay", isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(false), position: "right", 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" }) })] })] }));
|
|
29
|
+
};
|
|
30
|
+
export default Component;
|
|
31
|
+
//# sourceMappingURL=drawer-right-side.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-right-side.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-right-side.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,KAAC,WAAW,KAAG,EACf,MAAC,MAAM,IACL,IAAI,EAAC,SAAS,EACd,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAC5C,QAAQ,EAAC,OAAO,aAEhB,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,IACL,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, 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: "overlay", isExpanded: isExpanded, onExpandedChange: () => setIsExpanded(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(Placeholder, {})] }));
|
|
29
|
+
};
|
|
30
|
+
export default Component;
|
|
31
|
+
//# sourceMappingURL=drawer-scrollable.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-scrollable.story.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer-scrollable.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,c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nC,cAAM,EACN,KAAC,SAAS,IAAC,KAAK,EAAC,YAAY,EAAC,KAAK,EAAC,WAAW,GAAG,IACtC,IACP,EACT,KAAC,WAAW,KAAG,IACX,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
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 { Drawer } from '../../index';
|
|
24
|
+
import { DrawerFull, DrawerFullSrc, DrawerNotCloseable, DrawerNotCloseableSrc, DrawerOverlay, DrawerOverlaySrc, DrawerPortaled, DrawerPortaledSrc, DrawerPush, DrawerPushSrc, DrawerResizable, DrawerResizableSrc, DrawerRightSide, DrawerRightSideSrc, DrawerScrollable, DrawerScrollableSrc, } from './index';
|
|
25
|
+
const componentMeta = {
|
|
26
|
+
title: 'Components/Drawer',
|
|
27
|
+
id: 'components-drawer',
|
|
28
|
+
component: Drawer,
|
|
29
|
+
tags: ['docsPage'],
|
|
30
|
+
parameters: {
|
|
31
|
+
controls: { disable: true },
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
export default componentMeta;
|
|
35
|
+
export const Overlay = {
|
|
36
|
+
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
|
|
37
|
+
args: {},
|
|
38
|
+
render: () => _jsx(DrawerOverlay, {}),
|
|
39
|
+
parameters: {
|
|
40
|
+
docs: {
|
|
41
|
+
source: {
|
|
42
|
+
language: 'tsx',
|
|
43
|
+
type: 'code',
|
|
44
|
+
code: DrawerOverlaySrc,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
export const Push = {
|
|
50
|
+
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
|
|
51
|
+
args: {},
|
|
52
|
+
render: () => _jsx(DrawerPush, {}),
|
|
53
|
+
parameters: {
|
|
54
|
+
docs: {
|
|
55
|
+
source: {
|
|
56
|
+
language: 'tsx',
|
|
57
|
+
type: 'code',
|
|
58
|
+
code: DrawerPushSrc,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
export const RightSide = {
|
|
64
|
+
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
|
|
65
|
+
args: {},
|
|
66
|
+
render: () => _jsx(DrawerRightSide, {}),
|
|
67
|
+
parameters: {
|
|
68
|
+
docs: {
|
|
69
|
+
source: {
|
|
70
|
+
language: 'tsx',
|
|
71
|
+
type: 'code',
|
|
72
|
+
code: DrawerRightSideSrc,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
export const Resizable = {
|
|
78
|
+
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
|
|
79
|
+
args: {},
|
|
80
|
+
render: () => _jsx(DrawerResizable, {}),
|
|
81
|
+
parameters: {
|
|
82
|
+
docs: {
|
|
83
|
+
source: {
|
|
84
|
+
language: 'tsx',
|
|
85
|
+
type: 'code',
|
|
86
|
+
code: DrawerResizableSrc,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
export const NotCloseable = {
|
|
92
|
+
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
|
|
93
|
+
args: {},
|
|
94
|
+
render: () => _jsx(DrawerNotCloseable, {}),
|
|
95
|
+
parameters: {
|
|
96
|
+
docs: {
|
|
97
|
+
source: {
|
|
98
|
+
language: 'tsx',
|
|
99
|
+
type: 'code',
|
|
100
|
+
code: DrawerNotCloseableSrc,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
export const Scrollable = {
|
|
106
|
+
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
|
|
107
|
+
args: {},
|
|
108
|
+
render: () => _jsx(DrawerScrollable, {}),
|
|
109
|
+
parameters: {
|
|
110
|
+
docs: {
|
|
111
|
+
source: {
|
|
112
|
+
language: 'tsx',
|
|
113
|
+
type: 'code',
|
|
114
|
+
code: DrawerScrollableSrc,
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
export const Portaled = {
|
|
120
|
+
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
|
|
121
|
+
args: {},
|
|
122
|
+
render: () => _jsx(DrawerPortaled, {}),
|
|
123
|
+
parameters: {
|
|
124
|
+
docs: {
|
|
125
|
+
source: {
|
|
126
|
+
language: 'tsx',
|
|
127
|
+
type: 'code',
|
|
128
|
+
code: DrawerPortaledSrc,
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
export const Full = {
|
|
134
|
+
// @ts-expect-error The args from the full story are not actually used but we get a type issue here
|
|
135
|
+
args: {},
|
|
136
|
+
render: () => _jsx(DrawerFull, {}),
|
|
137
|
+
parameters: {
|
|
138
|
+
docs: {
|
|
139
|
+
source: {
|
|
140
|
+
language: 'tsx',
|
|
141
|
+
type: 'code',
|
|
142
|
+
code: DrawerFullSrc,
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
//# sourceMappingURL=drawer.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.stories.js","sourceRoot":"","sources":["../../../../src/drawer/stories/drawer.stories.tsx"],"names":[],"mappings":";AAsBA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAEjB,MAAM,aAAa,GAAG;IACpB,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;CAC4B,CAAC;AAEhC,eAAe,aAAa,CAAC;AAI7B,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,mGAAmG;IACnG,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,GAAG,EAAE,CAAC,KAAC,aAAa,KAAG;IAC/B,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;AACF,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,mGAAmG;IACnG,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,GAAG,EAAE,CAAC,KAAC,UAAU,KAAG;IAC5B,UAAU,EAAE;QACV,IAAI,E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E,mBAAmB;aAC1B;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,mGAAmG;IACnG,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,GAAG,EAAE,CAAC,KAAC,cAAc,KAAG;IAChC,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,iBAAiB;aACxB;SACF;KACF;CACF,CAAC;AACF,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,mGAAmG;IACnG,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,GAAG,EAAE,CAAC,KAAC,UAAU,KAAG;IAC5B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa;aACpB;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 DrawerPush } from './drawer-push.story';
|
|
22
|
+
export { default as DrawerOverlay } from './drawer-overlay.story';
|
|
23
|
+
export { default as DrawerRightSide } from './drawer-right-side.story';
|
|
24
|
+
export { default as DrawerResizable } from './drawer-resizable.story';
|
|
25
|
+
export { default as DrawerNotCloseable } from './drawer-not-closeable.story';
|
|
26
|
+
export { default as DrawerScrollable } from './drawer-scrollable.story';
|
|
27
|
+
export { default as DrawerFull } from './drawer-full.story';
|
|
28
|
+
export { default as DrawerPortaled } from './drawer-portaled.story';
|
|
29
|
+
import { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';
|
|
30
|
+
import DrawerFullSrcRaw from './drawer-full.story.tsx?raw';
|
|
31
|
+
import DrawerNotCloseableSrcRaw from './drawer-not-closeable.story.tsx?raw';
|
|
32
|
+
import DrawerOverlaySrcRaw from './drawer-overlay.story.tsx?raw';
|
|
33
|
+
import DrawerPortaledSrcRaw from './drawer-portaled.story.tsx?raw';
|
|
34
|
+
import DrawerPushSrcRaw from './drawer-push.story.tsx?raw';
|
|
35
|
+
import DrawerResizableSrcRaw from './drawer-resizable.story.tsx?raw';
|
|
36
|
+
import DrawerRightSideSrcRaw from './drawer-right-side.story.tsx?raw';
|
|
37
|
+
import DrawerScrollableSrcRaw from './drawer-scrollable.story.tsx?raw';
|
|
38
|
+
export const DrawerPushSrc = removeLicenseHeader(DrawerPushSrcRaw);
|
|
39
|
+
export const DrawerOverlaySrc = removeLicenseHeader(DrawerOverlaySrcRaw);
|
|
40
|
+
export const DrawerRightSideSrc = removeLicenseHeader(DrawerRightSideSrcRaw);
|
|
41
|
+
export const DrawerResizableSrc = removeLicenseHeader(DrawerResizableSrcRaw);
|
|
42
|
+
export const DrawerNotCloseableSrc = removeLicenseHeader(DrawerNotCloseableSrcRaw);
|
|
43
|
+
export const DrawerScrollableSrc = removeLicenseHeader(DrawerScrollableSrcRaw);
|
|
44
|
+
export const DrawerFullSrc = removeLicenseHeader(DrawerFullSrcRaw);
|
|
45
|
+
export const DrawerPortaledSrc = removeLicenseHeader(DrawerPortaledSrcRaw);
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/drawer/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,mBAAmB,MAAM,gCAAgC,CAAC;AACjE,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,qBAAqB,MAAM,kCAAkC,CAAC;AACrE,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AAEvE,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;AACzE,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { Dropzone } from '@neo4j-ndl/react';
|
|
23
|
+
const Component = () => {
|
|
24
|
+
const onDrop = (files) => {
|
|
25
|
+
alert('attempted to upload ' +
|
|
26
|
+
files.length +
|
|
27
|
+
' file(s). Check console logs for more info');
|
|
28
|
+
};
|
|
29
|
+
return (_jsx(Dropzone, { supportedFilesDescription: "Supports: CSV Files", dropZoneOptions: {
|
|
30
|
+
accept: { 'text/csv': ['.csv'] },
|
|
31
|
+
onDrop,
|
|
32
|
+
} }));
|
|
33
|
+
};
|
|
34
|
+
export default Component;
|
|
35
|
+
//# sourceMappingURL=dropzone-csv-files.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-csv-files.story.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone-csv-files.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAA8B,CAAC,KAAK,EAAE,EAAE;QAClD,KAAK,CACH,sBAAsB;YACpB,KAAK,CAAC,MAAM;YACZ,4CAA4C,CAC/C,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,QAAQ,IACP,yBAAyB,EAAC,qBAAqB,EAC/C,eAAe,EAAE;YACf,MAAM,EAAE,EAAE,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE;YAChC,MAAM;SACP,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { Dropzone } from '@neo4j-ndl/react';
|
|
23
|
+
const Component = () => {
|
|
24
|
+
const onDrop = (files) => {
|
|
25
|
+
alert('attempted to upload ' +
|
|
26
|
+
files.length +
|
|
27
|
+
' file(s). Check console logs for more info');
|
|
28
|
+
};
|
|
29
|
+
return (_jsx(Dropzone, { supportedFilesDescription: "Supports: .dump Files", acceptedFileExtensions: ['.dump'], dropZoneOptions: {
|
|
30
|
+
onDrop,
|
|
31
|
+
} }));
|
|
32
|
+
};
|
|
33
|
+
export default Component;
|
|
34
|
+
//# sourceMappingURL=dropzone-custom-extensions.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-custom-extensions.story.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone-custom-extensions.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAA8B,CAAC,KAAK,EAAE,EAAE;QAClD,KAAK,CACH,sBAAsB;YACpB,KAAK,CAAC,MAAM;YACZ,4CAA4C,CAC/C,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,QAAQ,IACP,yBAAyB,EAAC,uBAAuB,EACjD,sBAAsB,EAAE,CAAC,OAAO,CAAC,EACjC,eAAe,EAAE;YACf,MAAM;SACP,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { Dropzone } from '@neo4j-ndl/react';
|
|
23
|
+
const Component = () => {
|
|
24
|
+
const onDrop = (files) => {
|
|
25
|
+
alert('attempted to upload ' +
|
|
26
|
+
files.length +
|
|
27
|
+
' file(s). Check console logs for more info');
|
|
28
|
+
};
|
|
29
|
+
return (_jsx(Dropzone, { dropZoneOptions: {
|
|
30
|
+
onDrop,
|
|
31
|
+
} }));
|
|
32
|
+
};
|
|
33
|
+
export default Component;
|
|
34
|
+
//# sourceMappingURL=dropzone-default.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-default.story.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone-default.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAA8B,CAAC,KAAK,EAAE,EAAE;QAClD,KAAK,CACH,sBAAsB;YACpB,KAAK,CAAC,MAAM;YACZ,4CAA4C,CAC/C,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,QAAQ,IACP,eAAe,EAAE;YACf,MAAM;SACP,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { Dropzone } from '@neo4j-ndl/react';
|
|
23
|
+
const Component = () => {
|
|
24
|
+
const onDrop = (files) => {
|
|
25
|
+
alert('attempted to upload ' +
|
|
26
|
+
files.length +
|
|
27
|
+
' file(s). Check console logs for more info');
|
|
28
|
+
};
|
|
29
|
+
return (_jsx(Dropzone, { supportedFilesDescription: "Supports: CSV Files", dropZoneOptions: {
|
|
30
|
+
accept: { 'text/csv': ['.csv'] },
|
|
31
|
+
onDrop,
|
|
32
|
+
disabled: true,
|
|
33
|
+
} }));
|
|
34
|
+
};
|
|
35
|
+
export default Component;
|
|
36
|
+
//# sourceMappingURL=dropzone-disabled.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-disabled.story.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone-disabled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAA8B,CAAC,KAAK,EAAE,EAAE;QAClD,KAAK,CACH,sBAAsB;YACpB,KAAK,CAAC,MAAM;YACZ,4CAA4C,CAC/C,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,QAAQ,IACP,yBAAyB,EAAC,qBAAqB,EAC/C,eAAe,EAAE;YACf,MAAM,EAAE,EAAE,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE;YAChC,MAAM;YACN,QAAQ,EAAE,IAAI;SACf,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 { XMarkIcon } from '@heroicons/react/24/solid';
|
|
23
|
+
import { Button, Dropzone, Typography } from '@neo4j-ndl/react';
|
|
24
|
+
import { useCallback, useState } from 'react';
|
|
25
|
+
// Configuration constants
|
|
26
|
+
const CONFIG = {
|
|
27
|
+
MAX_FILES: 3,
|
|
28
|
+
MAX_FILE_SIZE: 5 * 1024 * 1024, // 5MB
|
|
29
|
+
PROGRESS_INCREMENT: 5,
|
|
30
|
+
UPDATE_INTERVAL: 100,
|
|
31
|
+
ACCEPTED_EXTENSIONS: ['.txt', '.json'],
|
|
32
|
+
};
|
|
33
|
+
var UploadState;
|
|
34
|
+
(function (UploadState) {
|
|
35
|
+
UploadState["Idle"] = "idle";
|
|
36
|
+
UploadState["Uploading"] = "uploading";
|
|
37
|
+
UploadState["Success"] = "success";
|
|
38
|
+
UploadState["Error"] = "error";
|
|
39
|
+
})(UploadState || (UploadState = {}));
|
|
40
|
+
const Component = () => {
|
|
41
|
+
const [uploadData, setUploadData] = useState({
|
|
42
|
+
state: UploadState.Idle,
|
|
43
|
+
progress: 0,
|
|
44
|
+
files: [],
|
|
45
|
+
errors: [],
|
|
46
|
+
});
|
|
47
|
+
const resetUpload = useCallback(() => {
|
|
48
|
+
setUploadData({
|
|
49
|
+
state: UploadState.Idle,
|
|
50
|
+
progress: 0,
|
|
51
|
+
files: [],
|
|
52
|
+
errors: [],
|
|
53
|
+
});
|
|
54
|
+
}, []);
|
|
55
|
+
const simulateUpload = useCallback((files) => {
|
|
56
|
+
setUploadData((prev) => (Object.assign(Object.assign({}, prev), { state: UploadState.Uploading, files, progress: 0 })));
|
|
57
|
+
const interval = setInterval(() => {
|
|
58
|
+
setUploadData((prev) => {
|
|
59
|
+
const newProgress = prev.progress + CONFIG.PROGRESS_INCREMENT;
|
|
60
|
+
if (newProgress >= 100) {
|
|
61
|
+
clearInterval(interval);
|
|
62
|
+
setTimeout(() => setUploadData((current) => (Object.assign(Object.assign({}, current), { state: UploadState.Success }))), 500);
|
|
63
|
+
return Object.assign(Object.assign({}, prev), { progress: 100 });
|
|
64
|
+
}
|
|
65
|
+
return Object.assign(Object.assign({}, prev), { progress: newProgress });
|
|
66
|
+
});
|
|
67
|
+
}, CONFIG.UPDATE_INTERVAL);
|
|
68
|
+
}, []);
|
|
69
|
+
const handleDrop = useCallback((acceptedFiles, rejectedFiles, event) => {
|
|
70
|
+
console.info('Drop event:', { acceptedFiles, rejectedFiles, event });
|
|
71
|
+
if (acceptedFiles.length > 0) {
|
|
72
|
+
simulateUpload(acceptedFiles);
|
|
73
|
+
}
|
|
74
|
+
}, [simulateUpload]);
|
|
75
|
+
const handleDropRejected = useCallback((rejectedFiles) => {
|
|
76
|
+
const errors = rejectedFiles.map((file) => `${file.file.name}: ${file.errors.map((e) => e.message).join(', ')}`);
|
|
77
|
+
setUploadData((prev) => (Object.assign(Object.assign({}, prev), { state: UploadState.Error, errors })));
|
|
78
|
+
}, []);
|
|
79
|
+
const handleError = useCallback((error) => {
|
|
80
|
+
console.error('Dropzone error:', error);
|
|
81
|
+
setUploadData((prev) => (Object.assign(Object.assign({}, prev), { state: UploadState.Error, errors: [error.message] })));
|
|
82
|
+
}, []);
|
|
83
|
+
const renderStatusContent = () => {
|
|
84
|
+
const { state, progress, files, errors } = uploadData;
|
|
85
|
+
switch (state) {
|
|
86
|
+
case UploadState.Uploading:
|
|
87
|
+
return (_jsx(Dropzone.LoadingProgressBar, { progressBarPrecentage: Math.round(progress) }));
|
|
88
|
+
case UploadState.Success:
|
|
89
|
+
return (_jsxs("div", { className: "n-flex n-flex-col n-justify-center n-items-center n-gap-y-token-4", children: [_jsx(Typography, { variant: "h5", className: "n-text-palette-success-text n-font-semibold", children: "Upload Complete!" }), _jsxs(Typography, { variant: "body-small", className: "n-text-palette-neutral-text-weak", children: ["Successfully uploaded: ", files.map((file) => file.name).join(', ')] }), _jsx(Button, { onClick: resetUpload, children: "Upload More Files" })] }));
|
|
90
|
+
case UploadState.Error:
|
|
91
|
+
return (_jsxs("div", { className: "n-flex n-flex-col n-justify-center n-items-center n-gap-y-token-4", children: [_jsx(XMarkIcon, { className: "n-w-token-8 n-h-token-8 n-text-palette-danger-text" }), _jsx("div", { className: "n-flex n-flex-col n-gap-y-token-2", children: errors.map((message, index) => (_jsx(Typography, { variant: "label", className: "n-text-palette-danger-text n-font-semibold", htmlAttributes: { role: 'alert' }, children: message }, index))) }), _jsx(Button, { onClick: resetUpload, children: "Try Again" })] }));
|
|
92
|
+
default:
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
return (_jsx(Dropzone, { dropZoneOptions: {
|
|
97
|
+
onDrop: handleDrop,
|
|
98
|
+
onDropRejected: handleDropRejected,
|
|
99
|
+
onError: handleError,
|
|
100
|
+
multiple: true,
|
|
101
|
+
maxFiles: CONFIG.MAX_FILES,
|
|
102
|
+
maxSize: CONFIG.MAX_FILE_SIZE,
|
|
103
|
+
disabled: uploadData.state === UploadState.Uploading,
|
|
104
|
+
}, supportedFilesDescription: _jsxs("div", { className: "n-text-center n-flex n-flex-col n-gap-y-token-2", children: [_jsx(Typography, { variant: "body-small", className: "n-text-palette-neutral-text-weak", children: "Supports: Text files (.txt, .json) only" }), _jsxs(Typography, { variant: "body-small", className: "n-text-palette-neutral-text-weak", children: ["Max ", CONFIG.MAX_FILES, " files \u2022", ' ', CONFIG.MAX_FILE_SIZE / (1024 * 1024), "MB per file"] })] }), acceptedFileExtensions: CONFIG.ACCEPTED_EXTENSIONS, loadingComponent: renderStatusContent(), rejectedMessage: "Error: Please make sure to only upload .json or .txt files", customTitle: "Drag & Drop your files" }));
|
|
105
|
+
};
|
|
106
|
+
export default Component;
|
|
107
|
+
//# sourceMappingURL=dropzone-full.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-full.story.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone-full.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAO9C,0BAA0B;AAC1B,MAAM,MAAM,GAAG;IACb,SAAS,EAAE,CAAC;IACZ,aAAa,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,EAAE,MAAM;IACtC,kBAAkB,EAAE,CAAC;IACrB,eAAe,EAAE,GAAG;IACpB,mBAAmB,EAAE,CAAC,MAAM,EAAE,OAAO,CAAa;CAC1C,CAAC;AAEX,IAAK,WAKJ;AALD,WAAK,WAAW;IACd,4BAAa,CAAA;IACb,sCAAuB,CAAA;IACvB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EALI,WAAW,KAAX,WAAW,QAKf;AASD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAa;QACvD,KAAK,EAAE,WAAW,CAAC,IAAI;QACvB,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;KACX,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,aAAa,CAAC;YACZ,KAAK,EAAE,WAAW,CAAC,IAAI;YACvB,QAAQ,EAAE,CAAC;YACX,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;SACX,CAAC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ACT,OAAO,EAAC,YAAY,EACpB,SAAS,EAAC,kCAAkC,qBAEvC,MAAM,CAAC,SAAS,mBAAU,GAAG,EACjC,MAAM,CAAC,aAAa,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,mBAC1B,IACT,EAER,sBAAsB,EAAE,MAAM,CAAC,mBAAmB,EAClD,gBAAgB,EAAE,mBAAmB,EAAE,EACvC,eAAe,EAAC,4DAA4D,EAC5E,WAAW,EAAC,wBAAwB,GACpC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { Dropzone } from '@neo4j-ndl/react';
|
|
23
|
+
const Component = () => {
|
|
24
|
+
return (_jsx(Dropzone, { isTesting: true, loadingComponent: _jsx(Dropzone.LoadingProgressBar, { progressBarPrecentage: 50, progressBarMinute: 5 }), dropZoneOptions: {
|
|
25
|
+
onDrop: () => void 0,
|
|
26
|
+
} }));
|
|
27
|
+
};
|
|
28
|
+
export default Component;
|
|
29
|
+
//# sourceMappingURL=dropzone-loading-progress.story.js.map
|