@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
|
@@ -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.jsxs)("div", { className: "n-flex n-gap-token-6", children: [(0, jsx_runtime_1.jsx)(react_1.Tag, { size: "small", children: "Small" }), (0, jsx_runtime_1.jsx)(react_1.Tag, { size: "medium", children: "Medium" }), (0, jsx_runtime_1.jsx)(react_1.Tag, { size: "large", children: "Large" })] }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=tag-sizes.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-sizes.story.js","sourceRoot":"","sources":["../../../../src/tag/stories/tag-sizes.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAuC;AAEvC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,WAAG,IAAC,IAAI,EAAC,OAAO,sBAAY,EAC7B,uBAAC,WAAG,IAAC,IAAI,EAAC,QAAQ,uBAAa,EAC/B,uBAAC,WAAG,IAAC,IAAI,EAAC,OAAO,sBAAY,IACzB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) "Neo4j"
|
|
7
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
8
|
+
*
|
|
9
|
+
* This file is part of Neo4j.
|
|
10
|
+
*
|
|
11
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "n-flex n-gap-token-6", children: [(0, jsx_runtime_1.jsx)(react_1.Tag, { type: "default", children: "Default" }), (0, jsx_runtime_1.jsx)(react_1.Tag, { type: "destructive", children: "Error" })] }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=tag-types.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-types.story.js","sourceRoot":"","sources":["../../../../src/tag/stories/tag-types.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAuC;AAEvC,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,WAAG,IAAC,IAAI,EAAC,SAAS,wBAAc,EACjC,uBAAC,WAAG,IAAC,IAAI,EAAC,aAAa,sBAAY,IAC/B,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
"use strict";
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.Removable = exports.Sizes = exports.Types = void 0;
|
|
25
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
|
+
const index_1 = require("../../index");
|
|
27
|
+
const _1 = require(".");
|
|
28
|
+
const componentMeta = {
|
|
29
|
+
title: 'Components/Tag',
|
|
30
|
+
id: 'components-tag',
|
|
31
|
+
component: index_1.Tag,
|
|
32
|
+
tags: ['docsPage'],
|
|
33
|
+
parameters: {
|
|
34
|
+
controls: { disable: true },
|
|
35
|
+
},
|
|
36
|
+
decorators: [
|
|
37
|
+
(Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-justify-center", children: (0, jsx_runtime_1.jsx)(Story, {}) })),
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
exports.default = componentMeta;
|
|
41
|
+
exports.Types = {
|
|
42
|
+
args: {},
|
|
43
|
+
render: _1.TagTypes,
|
|
44
|
+
parameters: {
|
|
45
|
+
docs: {
|
|
46
|
+
source: {
|
|
47
|
+
language: 'tsx',
|
|
48
|
+
type: 'code',
|
|
49
|
+
code: _1.TagTypesSource,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
exports.Sizes = {
|
|
55
|
+
args: {},
|
|
56
|
+
render: _1.TagSizes,
|
|
57
|
+
parameters: {
|
|
58
|
+
docs: {
|
|
59
|
+
source: {
|
|
60
|
+
language: 'tsx',
|
|
61
|
+
type: 'code',
|
|
62
|
+
code: _1.TagSizesSource,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
exports.Removable = {
|
|
68
|
+
args: {},
|
|
69
|
+
render: _1.TagRemovable,
|
|
70
|
+
parameters: {
|
|
71
|
+
docs: {
|
|
72
|
+
source: {
|
|
73
|
+
language: 'tsx',
|
|
74
|
+
type: 'code',
|
|
75
|
+
code: _1.TagRemovableSource,
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=tag.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.stories.js","sourceRoot":"","sources":["../../../../src/tag/stories/tag.stories.tsx"],"names":[],"mappings":";;;;AAuBA,uCAAkC;AAClC,wBAOW;AAEX,MAAM,aAAa,GAAqB;IACtC,KAAK,EAAE,gBAAgB;IACvB,EAAE,EAAE,gBAAgB;IACpB,SAAS,EAAE,WAAG;IACd,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,gCAAK,SAAS,EAAC,yBAAyB,YACtC,uBAAC,KAAK,KAAG,GACL,CACP;KACF;CACF,CAAC;AAEF,kBAAe,aAAa,CAAC;AAGhB,QAAA,KAAK,GAAU;IAC1B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,WAAQ;IAChB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,iBAAc;aACrB;SACF;KACF;CACF,CAAC;AAEW,QAAA,KAAK,GAAU;IAC1B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,WAAQ;IAChB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,iBAAc;aACrB;SACF;KACF;CACF,CAAC;AAEW,QAAA,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,eAAY;IACpB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,qBAAkB;aACzB;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.TextLinkInternalIconSource = exports.TextLinkExternalSource = exports.TextLinkDefaultSource = exports.TextLinkInternalIcon = exports.TextLinkExternal = exports.TextLinkDefault = void 0;
|
|
27
|
+
var text_link_default_story_1 = require("./text-link-default.story");
|
|
28
|
+
Object.defineProperty(exports, "TextLinkDefault", { enumerable: true, get: function () { return __importDefault(text_link_default_story_1).default; } });
|
|
29
|
+
var text_link_external_story_1 = require("./text-link-external.story");
|
|
30
|
+
Object.defineProperty(exports, "TextLinkExternal", { enumerable: true, get: function () { return __importDefault(text_link_external_story_1).default; } });
|
|
31
|
+
var text_link_internal_icon_story_1 = require("./text-link-internal-icon.story");
|
|
32
|
+
Object.defineProperty(exports, "TextLinkInternalIcon", { enumerable: true, get: function () { return __importDefault(text_link_internal_icon_story_1).default; } });
|
|
33
|
+
const export_stories_utils_1 = require("@neo4j-ndl/react/_common/export-stories-utils");
|
|
34
|
+
const text_link_default_story_raw_1 = __importDefault(require("./text-link-default.story?raw"));
|
|
35
|
+
const text_link_external_story_raw_1 = __importDefault(require("./text-link-external.story?raw"));
|
|
36
|
+
const text_link_internal_icon_story_raw_1 = __importDefault(require("./text-link-internal-icon.story?raw"));
|
|
37
|
+
exports.TextLinkDefaultSource = (0, export_stories_utils_1.removeLicenseHeader)(text_link_default_story_raw_1.default);
|
|
38
|
+
exports.TextLinkExternalSource = (0, export_stories_utils_1.removeLicenseHeader)(text_link_external_story_raw_1.default);
|
|
39
|
+
exports.TextLinkInternalIconSource = (0, export_stories_utils_1.removeLicenseHeader)(text_link_internal_icon_story_raw_1.default);
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/text-link/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,uEAAyE;AAAhE,6IAAA,OAAO,OAAoB;AACpC,iFAAkF;AAAzE,sJAAA,OAAO,OAAwB;AAExC,wFAAoF;AAEpF,gGAAqE;AACrE,kGAAuE;AACvE,4GAAgF;AAEnE,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,qCAAwB,CACzB,CAAC;AACW,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,sCAAyB,CAC1B,CAAC;AACW,QAAA,0BAA0B,GAAG,IAAA,0CAAmB,EAC3D,2CAA6B,CAC9B,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.TextLink, { href: "/", children: "Link" });
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=text-link-default.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-link-default.story.js","sourceRoot":"","sources":["../../../../src/text-link/stories/text-link-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAE5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,uBAAC,gBAAQ,IAAC,IAAI,EAAC,GAAG,qBAAgB,CAAC;AAC5C,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.TextLink, { href: "https://neo4j.com", type: "external", children: "Link" }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=text-link-external.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-link-external.story.js","sourceRoot":"","sources":["../../../../src/text-link/stories/text-link-external.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAE5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,gBAAQ,IAAC,IAAI,EAAC,mBAAmB,EAAC,IAAI,EAAC,UAAU,qBAEvC,CACZ,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.TextLink, { href: "/", type: "internal-icon", children: "Link" }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = Component;
|
|
30
|
+
//# sourceMappingURL=text-link-internal-icon.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-link-internal-icon.story.js","sourceRoot":"","sources":["../../../../src/text-link/stories/text-link-internal-icon.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA4C;AAE5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,uBAAC,gBAAQ,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,eAAe,qBAE5B,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalIcon = exports.External = exports.Default = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) "Neo4j"
|
|
8
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
9
|
+
*
|
|
10
|
+
* This file is part of Neo4j.
|
|
11
|
+
*
|
|
12
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
13
|
+
* it under the terms of the GNU General Public License as published by
|
|
14
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
+
* (at your option) any later version.
|
|
16
|
+
*
|
|
17
|
+
* This program is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
+
* GNU General Public License for more details.
|
|
21
|
+
*
|
|
22
|
+
* You should have received a copy of the GNU General Public License
|
|
23
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
+
*/
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const _1 = require(".");
|
|
27
|
+
const componentMeta = {
|
|
28
|
+
title: 'Components/TextLink',
|
|
29
|
+
id: 'components-text-link',
|
|
30
|
+
component: react_1.TextLink,
|
|
31
|
+
tags: ['docsPage'],
|
|
32
|
+
decorators: [
|
|
33
|
+
(Story) => ((0, jsx_runtime_1.jsx)("div", { className: "n-flex n-justify-center", children: (0, jsx_runtime_1.jsx)(Story, {}) })),
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
exports.default = componentMeta;
|
|
37
|
+
exports.Default = {
|
|
38
|
+
args: {},
|
|
39
|
+
render: _1.TextLinkDefault,
|
|
40
|
+
parameters: {
|
|
41
|
+
docs: {
|
|
42
|
+
source: {
|
|
43
|
+
language: 'tsx',
|
|
44
|
+
type: 'code',
|
|
45
|
+
code: _1.TextLinkDefaultSource,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
exports.External = {
|
|
51
|
+
args: {},
|
|
52
|
+
render: _1.TextLinkExternal,
|
|
53
|
+
parameters: {
|
|
54
|
+
docs: {
|
|
55
|
+
source: {
|
|
56
|
+
language: 'tsx',
|
|
57
|
+
type: 'code',
|
|
58
|
+
code: _1.TextLinkExternalSource,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
exports.InternalIcon = {
|
|
64
|
+
args: {},
|
|
65
|
+
render: _1.TextLinkInternalIcon,
|
|
66
|
+
parameters: {
|
|
67
|
+
docs: {
|
|
68
|
+
source: {
|
|
69
|
+
language: 'tsx',
|
|
70
|
+
type: 'code',
|
|
71
|
+
code: _1.TextLinkInternalIconSource,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=text-link.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-link.stories.js","sourceRoot":"","sources":["../../../../src/text-link/stories/text-link.stories.tsx"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4CAA4C;AAG5C,wBAOW;AAEX,MAAM,aAAa,GAA0B;IAC3C,KAAK,EAAE,qBAAqB;IAC5B,EAAE,EAAE,sBAAsB;IAC1B,SAAS,EAAE,gBAAQ;IACnB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,gCAAK,SAAS,EAAC,yBAAyB,YACtC,uBAAC,KAAK,KAAG,GACL,CACP;KACF;CACF,CAAC;AAEF,kBAAe,aAAa,CAAC;AAGhB,QAAA,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,kBAAe;IACvB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,wBAAqB;aAC5B;SACF;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAAU;IAC7B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,mBAAgB;IACxB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,yBAAsB;aAC7B;SACF;KACF;CACF,CAAC;AAEW,QAAA,YAAY,GAAU;IACjC,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,uBAAoB;IAC5B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,6BAA0B;aACjC;SACF;KACF;CACF,CAAC"}
|
|
@@ -158,7 +158,6 @@ const onInnerDivKeyDown = (event, shouldDisableInteraction, wrapperRef) => {
|
|
|
158
158
|
function TreeItemWrapperInner(_a, ref) {
|
|
159
159
|
var { depth, shouldDisableInteraction, shouldDisableSorting, isGhost, isIndicator, onCollapse, item, setNodeRef, setActivatorNodeRef, dragHandleProps, style, trails, children, indentationWidth, tabIndex, onFocus } = _a,
|
|
160
160
|
// Need to destruct to avoid passing it to the component
|
|
161
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
162
161
|
restProps = __rest(_a, ["depth", "shouldDisableInteraction", "shouldDisableSorting", "isGhost", "isIndicator", "onCollapse", "item", "setNodeRef", "setActivatorNodeRef", "dragHandleProps", "style", "trails", "children", "indentationWidth", "tabIndex", "onFocus"]);
|
|
163
162
|
const wrapperRef = (0, react_1.useRef)(null);
|
|
164
163
|
return ((0, jsx_runtime_1.jsx)("li", { ref: (el) => {
|
|
@@ -171,7 +170,7 @@ function TreeItemWrapperInner(_a, ref) {
|
|
|
171
170
|
indicator: isIndicator,
|
|
172
171
|
'ndl-tree-view-list-item-placeholder': isGhost,
|
|
173
172
|
'ndl-tree-view-list-item-disable-interaction': shouldDisableInteraction,
|
|
174
|
-
}), style: Object.assign(Object.assign({}, style), { paddingLeft: isIndicator ? `${depth * indentationWidth}px` : 0 }), role: "treeitem", onFocus: onFocus, "aria-selected": item.isSelected && !item.isSkeletonLoading, "aria-expanded": item.canHaveSubItems ? !item.isCollapsed : undefined, onKeyDown: (event) => onWrapperKeyDown(event, shouldDisableInteraction !== null && shouldDisableInteraction !== void 0 ? shouldDisableInteraction : false, wrapperRef, onCollapse, item), children: (0, jsx_runtime_1.jsxs)("div", { role: "presentation", className: "ndl-tree-view-list-item-content", ref: ref, onKeyDown: (event) => onInnerDivKeyDown(event, shouldDisableInteraction !== null && shouldDisableInteraction !== void 0 ? shouldDisableInteraction : false, wrapperRef), children: [!shouldDisableSorting && ((0, jsx_runtime_1.jsx)("button", Object.assign({ className: "ndl-tree-view-drag-handle", ref: setActivatorNodeRef, "aria-label": "
|
|
173
|
+
}), style: Object.assign(Object.assign({}, style), { paddingLeft: isIndicator ? `${depth * indentationWidth}px` : 0 }), role: "treeitem", onFocus: onFocus, "aria-selected": item.isSelected && !item.isSkeletonLoading, "aria-expanded": item.canHaveSubItems ? !item.isCollapsed : undefined, onKeyDown: (event) => onWrapperKeyDown(event, shouldDisableInteraction !== null && shouldDisableInteraction !== void 0 ? shouldDisableInteraction : false, wrapperRef, onCollapse, item), children: (0, jsx_runtime_1.jsxs)("div", { role: "presentation", className: "ndl-tree-view-list-item-content", ref: ref, onKeyDown: (event) => onInnerDivKeyDown(event, shouldDisableInteraction !== null && shouldDisableInteraction !== void 0 ? shouldDisableInteraction : false, wrapperRef), children: [!shouldDisableSorting && ((0, jsx_runtime_1.jsx)("button", Object.assign({ className: "ndl-tree-view-drag-handle", ref: setActivatorNodeRef, "aria-label": "Pick up" }, dragHandleProps, { tabIndex: tabIndex, children: (0, jsx_runtime_1.jsx)(icons_1.DragIcon, {}) }))), trails.map((trail, index) => {
|
|
175
174
|
return (0, jsx_runtime_1.jsx)(TreeViewTrail_1.Trail, { variant: trail }, index);
|
|
176
175
|
}), children] }) }));
|
|
177
176
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeItemWrapper.js","sourceRoot":"","sources":["../../../src/tree-view/TreeItemWrapper.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AAEpC,iCAA2C;AAE3C,4CAA+E;AAC/E,oCAAoC;AACpC,6EAKsC;AAEtC,mDAAwC;AAExC;;;;;;;;;GASG;AAEH,MAAM,gBAAgB,GAAG,CACvB,KAA0B,EAC1B,wBAAiC,EACjC,UAAsD,EACtD,UAAoC,EACpC,IAAuC,EACvC,EAAE;IACF,IAAI,wBAAwB,IAAI,UAAU,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QAC5D,OAAO;IACT,CAAC;IAED,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,IAAI,UAAU,EAAE,CAAC;QACxC,UAAU,EAAE,CAAC;IACf,CAAC;SAAM,IAAI,KAAK,CAAC,GAAG,KAAK,YAAY,EAAE,CAAC;QACtC,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,WAAW,IAAI,UAAU,EAAE,CAAC;YAC3D,UAAU,EAAE,CAAC;QACf,CAAC;aAAM,CAAC;YACN,MAAM,SAAS,GAAG,IAAA,6BAAqB,EAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC5D,MAAM,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;YACjC,IAAI,YAAY,YAAY,WAAW,EAAE,CAAC;gBACxC,YAAY,CAAC,KAAK,EAAE,CAAC;YACvB,CAAC;QACH,CAAC;QAED,KAAK,CAAC,cAAc,EAAE,CAAC;IACzB,CAAC;SAAM,IAAI,KAAK,CAAC,GAAG,KAAK,WAAW,EAAE,CAAC;QACrC,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,IAAI,CAAC,eAAe,IAAI,CAAC,IAA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,iBAAiB,CACf,KAAK,EACL,wBAAwB,aAAxB,wBAAwB,cAAxB,wBAAwB,GAAI,KAAK,EACjC,UAAU,CACX,aAGF,CAAC,oBAAoB,IAAI,CACxB,iDACE,SAAS,EAAC,2BAA2B,EACrC,GAAG,EAAE,mBAAmB,gBACb,SAAS,IAChB,eAAe,IACnB,QAAQ,EAAE,QAAQ,YAElB,uBAAC,gBAAQ,KAAG,IACL,CACV,EACA,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;oBAC3B,OAAO,uBAAC,qBAAK,IAAa,OAAO,EAAE,KAAK,IAArB,KAAK,CAAoB,CAAC;gBAC/C,CAAC,CAAC,EAED,QAAQ,IACL,GACH,CACN,CAAC;AACJ,CAAC;AAED,uHAAuH;AACvH,SAAS,yBAAyB,CAChC,MAAwD;IAExD,8DAA8D;IAC9D,OAAO,IAAA,kBAAU,EAAC,MAAM,CAAQ,CAAC;AACnC,CAAC;AAEY,QAAA,eAAe,GAAG,yBAAyB,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -72,7 +72,7 @@ export const CodeBlockWrapper = React.forwardRef(function CodeBlockWrapper({ as,
|
|
|
72
72
|
height: Boolean(headerTitle) === true
|
|
73
73
|
? 'calc(100% - 24px - 12px)'
|
|
74
74
|
: '100%',
|
|
75
|
-
}, children: [_jsx("div", { className: "ndl-code-pseudo-element" }), _jsx("div", { ref: syntaxHighlighterWrapperRef, className: "ndl-highlight-wrapper", role: "textbox", "aria-label": "
|
|
75
|
+
}, children: [_jsx("div", { className: "ndl-code-pseudo-element" }), _jsx("div", { ref: syntaxHighlighterWrapperRef, className: "ndl-highlight-wrapper", role: "textbox", "aria-label": "Code snippet", tabIndex: 0, children: children }), _jsx("div", { className: "ndl-code-pseudo-element" })] })] }), _jsx("div", { className: classNames('ndl-code-block-actions', {
|
|
76
76
|
'ndl-disabled': isDisabled,
|
|
77
77
|
}), children: actions === null || actions === void 0 ? void 0 : actions.map((iconButtonProps, i) => {
|
|
78
78
|
const { htmlAttributes, ariaLabel } = iconButtonProps, restIconButtonProps = __rest(iconButtonProps, ["htmlAttributes", "ariaLabel"]);
|
package/lib/esm/avatar/Avatar.js
CHANGED
|
@@ -123,6 +123,6 @@ export const Avatar = React.forwardRef(function Avatar(_a, ref) {
|
|
|
123
123
|
const isStatusIndicatorVisible = hasStatus && !isDisabled && status;
|
|
124
124
|
return (_jsxs(Component, Object.assign({ ref: ref, className: classes, style: style, "aria-hidden": !isButton }, (isButton && {
|
|
125
125
|
disabled: isDisabled,
|
|
126
|
-
}), { "aria-label": `
|
|
126
|
+
}), { "aria-label": `Avatar ${name}` }, restProps, htmlAttributes, { children: [_jsx("div", { className: classNames(shapeClasses, typeClass), "data-testid": "ndl-avatar-container", children: TypeComponent }), isStatusIndicatorVisible && (_jsx(StatusIndicator, { size: size, status: status }))] })));
|
|
127
127
|
});
|
|
128
128
|
//# sourceMappingURL=Avatar.js.map
|
|
@@ -32,7 +32,7 @@ const BreadcrumbsBaseItem = React.forwardRef(function BreadcrumbsBaseItem({ as,
|
|
|
32
32
|
const classes = classNames('ndl-breadcrumbs-base-item-link', className, {
|
|
33
33
|
'ndl-breadcrumbs-base-item-link-active': isCurrentPage,
|
|
34
34
|
});
|
|
35
|
-
return (_jsx("li", { className: "ndl-breadcrumbs-base-item", ref: ref, children: _jsx(Component, Object.assign({ role: "button", tabIndex: 0, "aria-label": "
|
|
35
|
+
return (_jsx("li", { className: "ndl-breadcrumbs-base-item", ref: ref, children: _jsx(Component, Object.assign({ role: "button", tabIndex: 0, "aria-label": "Home", className: classes, href: href, onClick: (event) => {
|
|
36
36
|
if (onClick)
|
|
37
37
|
onClick(event, href);
|
|
38
38
|
} }, htmlAttributes, { children: children })) }));
|
|
@@ -117,7 +117,7 @@ BreadcrumbsMenuItem.displayName = 'Breadcrumbs.MenuItem';
|
|
|
117
117
|
const BreadcrumbsComponent = ({ as, children, className, htmlAttributes, }) => {
|
|
118
118
|
const Component = as || 'nav';
|
|
119
119
|
const classes = classNames('ndl-breadcrumbs ndl-breadcrumbs-old', className);
|
|
120
|
-
return (_jsx(Component, Object.assign({ "aria-label": "
|
|
120
|
+
return (_jsx(Component, Object.assign({ "aria-label": "Breadcrumb", className: classes }, htmlAttributes, { children: _jsx("ol", { children: children }) })));
|
|
121
121
|
};
|
|
122
122
|
BreadcrumbsComponent.displayName = 'Breadcrumbs';
|
|
123
123
|
// Issue with TypeScript forwardRef and subcomponents: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-894053907
|
|
@@ -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 '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Code } from '@neo4j-ndl/react';
|
|
24
|
+
import { SHORT_CODE_EXAMPLE } from './example-code-snippets';
|
|
25
|
+
const Component = () => {
|
|
26
|
+
return _jsx(Code, { code: SHORT_CODE_EXAMPLE, language: "typescript" });
|
|
27
|
+
};
|
|
28
|
+
export default Component;
|
|
29
|
+
//# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,KAAC,IAAI,IAAC,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAC,YAAY,GAAG,CAAC;AAClE,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Code } from '@neo4j-ndl/react';
|
|
24
|
+
import { PlayCircleIconOutline, Square2StackIconOutline, } from '@neo4j-ndl/react/icons';
|
|
25
|
+
import { SHORT_CODE_EXAMPLE } from './example-code-snippets';
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return (_jsx(Code, { code: SHORT_CODE_EXAMPLE, language: "typescript", type: "block", headerTitle: "Code Header", isDisabled: true, actions: [
|
|
28
|
+
{
|
|
29
|
+
ariaLabel: 'copy',
|
|
30
|
+
children: (_jsx(Square2StackIconOutline, { className: "n-text-palette-neutral-text-icon" })),
|
|
31
|
+
htmlAttributes: { title: 'copy' },
|
|
32
|
+
onClick: () => alert('This should not trigger when disabled'),
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
ariaLabel: 'run',
|
|
36
|
+
children: (_jsx(PlayCircleIconOutline, { className: "n-text-palette-primary-icon" })),
|
|
37
|
+
htmlAttributes: { title: 'run' },
|
|
38
|
+
onClick: () => alert('This should not trigger when disabled'),
|
|
39
|
+
},
|
|
40
|
+
] }));
|
|
41
|
+
};
|
|
42
|
+
export default Component;
|
|
43
|
+
//# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,kBAAkB,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,KAAC,uBAAuB,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,KAAC,qBAAqB,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,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Code } from '@neo4j-ndl/react';
|
|
24
|
+
import { PlayCircleIconOutline, Square2StackIconOutline, } from '@neo4j-ndl/react/icons';
|
|
25
|
+
import { LONG_CODE_EXAMPLE } from './example-code-snippets';
|
|
26
|
+
const Component = () => {
|
|
27
|
+
return (_jsx(Code, { code: LONG_CODE_EXAMPLE, maxHeight: 320, type: "block", language: "typescript", showLineNumbers: true, theme: "ndl-code-light", headerTitle: "Code Header", actions: [
|
|
28
|
+
{
|
|
29
|
+
ariaLabel: 'copy',
|
|
30
|
+
children: (_jsx(Square2StackIconOutline, { className: "n-text-palette-neutral-text-icon" })),
|
|
31
|
+
htmlAttributes: { title: 'copy' },
|
|
32
|
+
onClick: () => alert('copied'),
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
ariaLabel: 'run',
|
|
36
|
+
children: (_jsx(PlayCircleIconOutline, { className: "n-text-palette-primary-icon" })),
|
|
37
|
+
htmlAttributes: { title: 'run' },
|
|
38
|
+
onClick: () => alert('running'),
|
|
39
|
+
},
|
|
40
|
+
], isDisabled: false }));
|
|
41
|
+
};
|
|
42
|
+
export default Component;
|
|
43
|
+
//# 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,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,iBAAiB,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,KAAC,uBAAuB,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,KAAC,qBAAqB,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,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Code } from '@neo4j-ndl/react';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsx(Code, { code: ":help cypher", type: "inline", isRunnable: true, tooltipText: "run", onClick: () => alert(`Executing: :help cypher`) }));
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=code-inline-runnable.story.js.map
|