@neo4j-ndl/react 3.9.0 → 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/breadcrumbs/Breadcrumbs.js +2 -2
- 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/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/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-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/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/segmented-control-only-icons.story.js +1 -1
- package/lib/cjs/spotlight/SpotlightTarget.js +1 -1
- 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/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/breadcrumbs/Breadcrumbs.js +2 -2
- 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/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/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-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/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/segmented-control-only-icons.story.js +1 -1
- package/lib/esm/spotlight/SpotlightTarget.js +1 -1
- 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/tree-view/TreeItemWrapper.js +1 -2
- package/lib/esm/tree-view/TreeItemWrapper.js.map +1 -1
- 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/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/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-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/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/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/package.json +9 -2
- 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
|
@@ -98,7 +98,7 @@ exports.CodeBlockWrapper = react_1.default.forwardRef(function CodeBlockWrapper(
|
|
|
98
98
|
height: Boolean(headerTitle) === true
|
|
99
99
|
? 'calc(100% - 24px - 12px)'
|
|
100
100
|
: '100%',
|
|
101
|
-
}, children: [(0, jsx_runtime_1.jsx)("div", { className: "ndl-code-pseudo-element" }), (0, jsx_runtime_1.jsx)("div", { ref: syntaxHighlighterWrapperRef, className: "ndl-highlight-wrapper", role: "textbox", "aria-label": "
|
|
101
|
+
}, children: [(0, jsx_runtime_1.jsx)("div", { className: "ndl-code-pseudo-element" }), (0, jsx_runtime_1.jsx)("div", { ref: syntaxHighlighterWrapperRef, className: "ndl-highlight-wrapper", role: "textbox", "aria-label": "Code snippet", tabIndex: 0, children: children }), (0, jsx_runtime_1.jsx)("div", { className: "ndl-code-pseudo-element" })] })] }), (0, jsx_runtime_1.jsx)("div", { className: (0, defaultImports_1.classNames)('ndl-code-block-actions', {
|
|
102
102
|
'ndl-disabled': isDisabled,
|
|
103
103
|
}), children: actions === null || actions === void 0 ? void 0 : actions.map((iconButtonProps, i) => {
|
|
104
104
|
const { htmlAttributes, ariaLabel } = iconButtonProps, restIconButtonProps = __rest(iconButtonProps, ["htmlAttributes", "ariaLabel"]);
|
package/lib/cjs/avatar/Avatar.js
CHANGED
|
@@ -129,6 +129,6 @@ exports.Avatar = react_1.default.forwardRef(function Avatar(_a, ref) {
|
|
|
129
129
|
const isStatusIndicatorVisible = hasStatus && !isDisabled && status;
|
|
130
130
|
return ((0, jsx_runtime_1.jsxs)(Component, Object.assign({ ref: ref, className: classes, style: style, "aria-hidden": !isButton }, (isButton && {
|
|
131
131
|
disabled: isDisabled,
|
|
132
|
-
}), { "aria-label": `
|
|
132
|
+
}), { "aria-label": `Avatar ${name}` }, restProps, htmlAttributes, { children: [(0, jsx_runtime_1.jsx)("div", { className: (0, defaultImports_1.classNames)(shapeClasses, typeClass), "data-testid": "ndl-avatar-container", children: TypeComponent }), isStatusIndicatorVisible && ((0, jsx_runtime_1.jsx)(StatusIndicator, { size: size, status: status }))] })));
|
|
133
133
|
});
|
|
134
134
|
//# sourceMappingURL=Avatar.js.map
|
|
@@ -58,7 +58,7 @@ const BreadcrumbsBaseItem = react_1.default.forwardRef(function BreadcrumbsBaseI
|
|
|
58
58
|
const classes = (0, defaultImports_1.classNames)('ndl-breadcrumbs-base-item-link', className, {
|
|
59
59
|
'ndl-breadcrumbs-base-item-link-active': isCurrentPage,
|
|
60
60
|
});
|
|
61
|
-
return ((0, jsx_runtime_1.jsx)("li", { className: "ndl-breadcrumbs-base-item", ref: ref, children: (0, jsx_runtime_1.jsx)(Component, Object.assign({ role: "button", tabIndex: 0, "aria-label": "
|
|
61
|
+
return ((0, jsx_runtime_1.jsx)("li", { className: "ndl-breadcrumbs-base-item", ref: ref, children: (0, jsx_runtime_1.jsx)(Component, Object.assign({ role: "button", tabIndex: 0, "aria-label": "Home", className: classes, href: href, onClick: (event) => {
|
|
62
62
|
if (onClick)
|
|
63
63
|
onClick(event, href);
|
|
64
64
|
} }, htmlAttributes, { children: children })) }));
|
|
@@ -143,7 +143,7 @@ BreadcrumbsMenuItem.displayName = 'Breadcrumbs.MenuItem';
|
|
|
143
143
|
const BreadcrumbsComponent = ({ as, children, className, htmlAttributes, }) => {
|
|
144
144
|
const Component = as || 'nav';
|
|
145
145
|
const classes = (0, defaultImports_1.classNames)('ndl-breadcrumbs ndl-breadcrumbs-old', className);
|
|
146
|
-
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ "aria-label": "
|
|
146
|
+
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ "aria-label": "Breadcrumb", className: classes }, htmlAttributes, { children: (0, jsx_runtime_1.jsx)("ol", { children: children }) })));
|
|
147
147
|
};
|
|
148
148
|
BreadcrumbsComponent.displayName = 'Breadcrumbs';
|
|
149
149
|
// Issue with TypeScript forwardRef and subcomponents: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-894053907
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const example_code_snippets_1 = require("./example-code-snippets");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
return (0, jsx_runtime_1.jsx)(react_1.Code, { code: example_code_snippets_1.SHORT_CODE_EXAMPLE, language: "typescript" });
|
|
29
|
+
};
|
|
30
|
+
exports.default = Component;
|
|
31
|
+
//# sourceMappingURL=code-default.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-default.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AAExC,mEAA6D;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,uBAAC,YAAI,IAAC,IAAI,EAAE,0CAAkB,EAAE,QAAQ,EAAC,YAAY,GAAG,CAAC;AAClE,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const icons_1 = require("@neo4j-ndl/react/icons");
|
|
27
|
+
const example_code_snippets_1 = require("./example-code-snippets");
|
|
28
|
+
const Component = () => {
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Code, { code: example_code_snippets_1.SHORT_CODE_EXAMPLE, language: "typescript", type: "block", headerTitle: "Code Header", isDisabled: true, actions: [
|
|
30
|
+
{
|
|
31
|
+
ariaLabel: 'copy',
|
|
32
|
+
children: ((0, jsx_runtime_1.jsx)(icons_1.Square2StackIconOutline, { className: "n-text-palette-neutral-text-icon" })),
|
|
33
|
+
htmlAttributes: { title: 'copy' },
|
|
34
|
+
onClick: () => alert('This should not trigger when disabled'),
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
ariaLabel: 'run',
|
|
38
|
+
children: ((0, jsx_runtime_1.jsx)(icons_1.PlayCircleIconOutline, { className: "n-text-palette-primary-icon" })),
|
|
39
|
+
htmlAttributes: { title: 'run' },
|
|
40
|
+
onClick: () => alert('This should not trigger when disabled'),
|
|
41
|
+
},
|
|
42
|
+
] }));
|
|
43
|
+
};
|
|
44
|
+
exports.default = Component;
|
|
45
|
+
//# sourceMappingURL=code-disabled.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-disabled.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AACxC,kDAGgC;AAEhC,mEAA6D;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,YAAI,IACH,IAAI,EAAE,0CAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,aAAa,EACzB,UAAU,QACV,OAAO,EAAE;YACP;gBACE,SAAS,EAAE,MAAM;gBACjB,QAAQ,EAAE,CACR,uBAAC,+BAAuB,IAAC,SAAS,EAAC,kCAAkC,GAAG,CACzE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uCAAuC,CAAC;aAC9D;YACD;gBACE,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,CACR,uBAAC,6BAAqB,IAAC,SAAS,EAAC,6BAA6B,GAAG,CAClE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,uCAAuC,CAAC;aAC9D;SACF,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const icons_1 = require("@neo4j-ndl/react/icons");
|
|
27
|
+
const example_code_snippets_1 = require("./example-code-snippets");
|
|
28
|
+
const Component = () => {
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Code, { code: example_code_snippets_1.LONG_CODE_EXAMPLE, maxHeight: 320, type: "block", language: "typescript", showLineNumbers: true, theme: "ndl-code-light", headerTitle: "Code Header", actions: [
|
|
30
|
+
{
|
|
31
|
+
ariaLabel: 'copy',
|
|
32
|
+
children: ((0, jsx_runtime_1.jsx)(icons_1.Square2StackIconOutline, { className: "n-text-palette-neutral-text-icon" })),
|
|
33
|
+
htmlAttributes: { title: 'copy' },
|
|
34
|
+
onClick: () => alert('copied'),
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
ariaLabel: 'run',
|
|
38
|
+
children: ((0, jsx_runtime_1.jsx)(icons_1.PlayCircleIconOutline, { className: "n-text-palette-primary-icon" })),
|
|
39
|
+
htmlAttributes: { title: 'run' },
|
|
40
|
+
onClick: () => alert('running'),
|
|
41
|
+
},
|
|
42
|
+
], isDisabled: false }));
|
|
43
|
+
};
|
|
44
|
+
exports.default = Component;
|
|
45
|
+
//# sourceMappingURL=code-full.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-full.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-full.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AACxC,kDAGgC;AAEhC,mEAA4D;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,YAAI,IACH,IAAI,EAAE,yCAAiB,EACvB,SAAS,EAAE,GAAG,EACd,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAC,YAAY,EACrB,eAAe,QACf,KAAK,EAAC,gBAAgB,EACtB,WAAW,EAAC,aAAa,EACzB,OAAO,EAAE;YACP;gBACE,SAAS,EAAE,MAAM;gBACjB,QAAQ,EAAE,CACR,uBAAC,+BAAuB,IAAC,SAAS,EAAC,kCAAkC,GAAG,CACzE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;aAC/B;YACD;gBACE,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,CACR,uBAAC,6BAAqB,IAAC,SAAS,EAAC,6BAA6B,GAAG,CAClE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;aAChC;SACF,EACD,UAAU,EAAE,KAAK,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Code, { code: ":help cypher", type: "inline", isRunnable: true, tooltipText: "run", onClick: () => alert(`Executing: :help cypher`) }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=code-inline-runnable.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-inline-runnable.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-inline-runnable.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AAExC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,YAAI,IACH,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,QAAQ,EACb,UAAU,QACV,WAAW,EAAC,KAAK,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC,GAC/C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Code, { code: ":help cypher", type: "inline", tooltipText: "Copy to clipboard", onClick: () => alert('Copied to clipboard') }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=code-inline.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-inline.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-inline.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AAExC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,YAAI,IACH,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,QAAQ,EACb,WAAW,EAAC,mBAAmB,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,GAC3C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const example_code_snippets_1 = require("./example-code-snippets");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-flex-col n-gap-token-4", children: [(0, jsx_runtime_1.jsx)(react_1.Code, { code: example_code_snippets_1.LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.TYPESCRIPT, language: "typescript", type: "block", headerTitle: "TypeScript", showLineNumbers: true }), (0, jsx_runtime_1.jsx)(react_1.Code, { code: example_code_snippets_1.LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.CYPHER, language: "cypher", type: "block", headerTitle: "Cypher Query Language", showLineNumbers: true }), (0, jsx_runtime_1.jsx)(react_1.Code, { code: example_code_snippets_1.LANGUAGE_SYNTAX_HIGHLIGHTING_EXAMPLES.JSON, language: "json", type: "block", headerTitle: "JSON Configuration", showLineNumbers: true })] }));
|
|
29
|
+
};
|
|
30
|
+
exports.default = Component;
|
|
31
|
+
//# sourceMappingURL=code-languages.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-languages.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-languages.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AAExC,mEAAgF;AAEhF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,YAAI,IACH,IAAI,EAAE,6DAAqC,CAAC,UAAU,EACtD,QAAQ,EAAC,YAAY,EACrB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,YAAY,EACxB,eAAe,SACf,EAEF,uBAAC,YAAI,IACH,IAAI,EAAE,6DAAqC,CAAC,MAAM,EAClD,QAAQ,EAAC,QAAQ,EACjB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,uBAAuB,EACnC,eAAe,SACf,EAEF,uBAAC,YAAI,IACH,IAAI,EAAE,6DAAqC,CAAC,IAAI,EAChD,QAAQ,EAAC,MAAM,EACf,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,oBAAoB,EAChC,eAAe,SACf,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const example_code_snippets_1 = require("./example-code-snippets");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Code, { code: example_code_snippets_1.LONG_CODE_EXAMPLE, language: "typescript", type: "block", headerTitle: "Code Header", maxHeight: 320 }));
|
|
29
|
+
};
|
|
30
|
+
exports.default = Component;
|
|
31
|
+
//# sourceMappingURL=code-overflow.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-overflow.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-overflow.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AAExC,mEAA4D;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,YAAI,IACH,IAAI,EAAE,yCAAiB,EACvB,QAAQ,EAAC,YAAY,EACrB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,aAAa,EACzB,SAAS,EAAE,GAAG,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const icons_1 = require("@neo4j-ndl/react/icons");
|
|
27
|
+
const example_code_snippets_1 = require("./example-code-snippets");
|
|
28
|
+
const Component = () => {
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Code, { code: example_code_snippets_1.SHORT_CODE_EXAMPLE, language: "typescript", type: "block", maxHeight: 320, actions: [
|
|
30
|
+
{
|
|
31
|
+
ariaLabel: 'copy',
|
|
32
|
+
children: ((0, jsx_runtime_1.jsx)(icons_1.Square2StackIconOutline, { className: "n-text-palette-neutral-text-icon" })),
|
|
33
|
+
htmlAttributes: { title: 'copy' },
|
|
34
|
+
onClick: () => alert('Code copied to clipboard!'),
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
ariaLabel: 'run',
|
|
38
|
+
children: ((0, jsx_runtime_1.jsx)(icons_1.PlayCircleIconOutline, { className: "n-text-palette-primary-icon" })),
|
|
39
|
+
htmlAttributes: { title: 'run' },
|
|
40
|
+
onClick: () => alert('Running code...'),
|
|
41
|
+
},
|
|
42
|
+
] }));
|
|
43
|
+
};
|
|
44
|
+
exports.default = Component;
|
|
45
|
+
//# sourceMappingURL=code-with-actions.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-with-actions.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-with-actions.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AACxC,kDAGgC;AAEhC,mEAA6D;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,YAAI,IACH,IAAI,EAAE,0CAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,GAAG,EACd,OAAO,EAAE;YACP;gBACE,SAAS,EAAE,MAAM;gBACjB,QAAQ,EAAE,CACR,uBAAC,+BAAuB,IAAC,SAAS,EAAC,kCAAkC,GAAG,CACzE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,2BAA2B,CAAC;aAClD;YACD;gBACE,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,CACR,uBAAC,6BAAqB,IAAC,SAAS,EAAC,6BAA6B,GAAG,CAClE;gBACD,cAAc,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;gBAChC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC;aACxC;SACF,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const example_code_snippets_1 = require("./example-code-snippets");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Code, { code: example_code_snippets_1.SHORT_CODE_EXAMPLE, language: "typescript", headerTitle: "Code Header" }));
|
|
29
|
+
};
|
|
30
|
+
exports.default = Component;
|
|
31
|
+
//# sourceMappingURL=code-with-header.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-with-header.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-with-header.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AAExC,mEAA6D;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,YAAI,IACH,IAAI,EAAE,0CAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,WAAW,EAAC,aAAa,GACzB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const example_code_snippets_1 = require("./example-code-snippets");
|
|
27
|
+
const Component = () => {
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Code, { code: example_code_snippets_1.SHORT_CODE_EXAMPLE, language: "typescript", type: "block", headerTitle: "Code Header", showLineNumbers: true }));
|
|
29
|
+
};
|
|
30
|
+
exports.default = Component;
|
|
31
|
+
//# sourceMappingURL=code-with-line-numbers.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-with-line-numbers.story.js","sourceRoot":"","sources":["../../../../src/code/stories/code-with-line-numbers.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAwC;AAExC,mEAA6D;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,YAAI,IACH,IAAI,EAAE,0CAAkB,EACxB,QAAQ,EAAC,YAAY,EACrB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,aAAa,EACzB,eAAe,SACf,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.Full = exports.InlineRunnable = exports.Inline = exports.Languages = exports.LineNumbers = exports.Disabled = exports.Overflow = exports.WithHeader = exports.WithActions = exports.Default = void 0;
|
|
24
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
25
|
+
const index_1 = require("./index");
|
|
26
|
+
const componentMeta = {
|
|
27
|
+
title: 'Components/Code',
|
|
28
|
+
id: 'components-code',
|
|
29
|
+
component: react_1.Code,
|
|
30
|
+
tags: ['docsPage'],
|
|
31
|
+
parameters: {
|
|
32
|
+
controls: { disable: true },
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
exports.default = componentMeta;
|
|
36
|
+
exports.Default = {
|
|
37
|
+
args: {},
|
|
38
|
+
parameters: {
|
|
39
|
+
docs: {
|
|
40
|
+
source: {
|
|
41
|
+
code: index_1.CodeDefaultSrc,
|
|
42
|
+
language: 'tsx',
|
|
43
|
+
type: 'code',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
render: index_1.CodeDefault,
|
|
48
|
+
};
|
|
49
|
+
exports.WithActions = {
|
|
50
|
+
args: {},
|
|
51
|
+
parameters: {
|
|
52
|
+
docs: {
|
|
53
|
+
source: {
|
|
54
|
+
code: index_1.CodeWithActionsSrc,
|
|
55
|
+
language: 'tsx',
|
|
56
|
+
type: 'code',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
render: index_1.CodeWithActions,
|
|
61
|
+
};
|
|
62
|
+
exports.WithHeader = {
|
|
63
|
+
args: {},
|
|
64
|
+
parameters: {
|
|
65
|
+
docs: {
|
|
66
|
+
source: {
|
|
67
|
+
code: index_1.CodeWithHeaderSrc,
|
|
68
|
+
language: 'tsx',
|
|
69
|
+
type: 'code',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
render: index_1.CodeWithHeader,
|
|
74
|
+
};
|
|
75
|
+
exports.Overflow = {
|
|
76
|
+
args: {},
|
|
77
|
+
parameters: {
|
|
78
|
+
docs: {
|
|
79
|
+
source: {
|
|
80
|
+
code: index_1.CodeOverflowSrc,
|
|
81
|
+
language: 'tsx',
|
|
82
|
+
type: 'code',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
render: index_1.CodeOverflow,
|
|
87
|
+
};
|
|
88
|
+
exports.Disabled = {
|
|
89
|
+
args: {},
|
|
90
|
+
parameters: {
|
|
91
|
+
docs: {
|
|
92
|
+
source: {
|
|
93
|
+
code: index_1.CodeDisabledSrc,
|
|
94
|
+
language: 'tsx',
|
|
95
|
+
type: 'code',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
render: index_1.CodeDisabled,
|
|
100
|
+
};
|
|
101
|
+
exports.LineNumbers = {
|
|
102
|
+
args: {},
|
|
103
|
+
parameters: {
|
|
104
|
+
docs: {
|
|
105
|
+
source: {
|
|
106
|
+
code: index_1.CodeLineNumbersSrc,
|
|
107
|
+
language: 'tsx',
|
|
108
|
+
type: 'code',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
render: index_1.CodeLineNumbers,
|
|
113
|
+
};
|
|
114
|
+
exports.Languages = {
|
|
115
|
+
args: {},
|
|
116
|
+
parameters: {
|
|
117
|
+
docs: {
|
|
118
|
+
source: {
|
|
119
|
+
code: index_1.CodeLanguagesSrc,
|
|
120
|
+
language: 'tsx',
|
|
121
|
+
type: 'code',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
render: index_1.CodeLanguages,
|
|
126
|
+
};
|
|
127
|
+
exports.Inline = {
|
|
128
|
+
args: {},
|
|
129
|
+
parameters: {
|
|
130
|
+
docs: {
|
|
131
|
+
source: {
|
|
132
|
+
code: index_1.CodeInlineSrc,
|
|
133
|
+
language: 'tsx',
|
|
134
|
+
type: 'code',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
render: index_1.CodeInline,
|
|
139
|
+
};
|
|
140
|
+
exports.InlineRunnable = {
|
|
141
|
+
args: {},
|
|
142
|
+
parameters: {
|
|
143
|
+
docs: {
|
|
144
|
+
source: {
|
|
145
|
+
code: index_1.CodeInlineRunnableSrc,
|
|
146
|
+
language: 'tsx',
|
|
147
|
+
type: 'code',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
render: index_1.CodeInlineRunnable,
|
|
152
|
+
};
|
|
153
|
+
exports.Full = {
|
|
154
|
+
args: {},
|
|
155
|
+
parameters: {
|
|
156
|
+
docs: {
|
|
157
|
+
source: {
|
|
158
|
+
code: index_1.CodeFullSrc,
|
|
159
|
+
language: 'tsx',
|
|
160
|
+
type: 'code',
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
render: index_1.CodeFull,
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=code.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code.stories.js","sourceRoot":"","sources":["../../../../src/code/stories/code.stories.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,4CAAwC;AAGxC,mCAqBiB;AAEjB,MAAM,aAAa,GAAsB;IACvC,KAAK,EAAE,iBAAiB;IACxB,EAAE,EAAE,iBAAiB;IACrB,SAAS,EAAE,YAAI;IACf,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;CACF,CAAC;AAEF,kBAAe,aAAa,CAAC;AAEhB,QAAA,OAAO,GAA0B;IAC5C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,sBAAc;gBACpB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,mBAAW;CACpB,CAAC;AAEW,QAAA,WAAW,GAA0B;IAChD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,0BAAkB;gBACxB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,uBAAe;CACxB,CAAC;AAEW,QAAA,UAAU,GAA0B;IAC/C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,yBAAiB;gBACvB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,sBAAc;CACvB,CAAC;AAEW,QAAA,QAAQ,GAA0B;IAC7C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,uBAAe;gBACrB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,oBAAY;CACrB,CAAC;AAEW,QAAA,QAAQ,GAA0B;IAC7C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,uBAAe;gBACrB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,oBAAY;CACrB,CAAC;AAEW,QAAA,WAAW,GAA0B;IAChD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,0BAAkB;gBACxB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,uBAAe;CACxB,CAAC;AAEW,QAAA,SAAS,GAA0B;IAC9C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,wBAAgB;gBACtB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,qBAAa;CACtB,CAAC;AAEW,QAAA,MAAM,GAA0B;IAC3C,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,qBAAa;gBACnB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,kBAAU;CACnB,CAAC;AAEW,QAAA,cAAc,GAA0B;IACnD,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,6BAAqB;gBAC3B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,0BAAkB;CAC3B,CAAC;AAEW,QAAA,IAAI,GAA0B;IACzC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,mBAAW;gBACjB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,gBAAQ;CACjB,CAAC"}
|