@neo4j-ndl/react 4.2.6 → 4.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/accordion/stories/index.js +1 -1
- package/lib/cjs/accordion/stories/index.js.map +1 -1
- package/lib/cjs/ai/code-preview/stories/index.js +1 -1
- package/lib/cjs/ai/code-preview/stories/index.js.map +1 -1
- package/lib/cjs/ai/file-tag/FileTag.js.map +1 -1
- package/lib/cjs/ai/file-tag/stories/index.js +1 -1
- package/lib/cjs/ai/file-tag/stories/index.js.map +1 -1
- package/lib/cjs/ai/image-tag/ImageTag.js.map +1 -1
- package/lib/cjs/ai/image-tag/stories/index.js +1 -1
- package/lib/cjs/ai/image-tag/stories/index.js.map +1 -1
- package/lib/cjs/ai/more-files/MoreFiles.js +18 -19
- package/lib/cjs/ai/more-files/MoreFiles.js.map +1 -1
- package/lib/cjs/ai/more-files/stories/index.js +1 -1
- package/lib/cjs/ai/more-files/stories/index.js.map +1 -1
- package/lib/cjs/ai/more-files/stories/more-files.story.js +5 -5
- package/lib/cjs/ai/more-files/stories/more-files.story.js.map +1 -1
- package/lib/cjs/ai/presence/Presence.js.map +1 -1
- package/lib/cjs/ai/presence/stories/index.js +1 -1
- package/lib/cjs/ai/presence/stories/index.js.map +1 -1
- package/lib/cjs/ai/prompt/Prompt.js.map +1 -1
- package/lib/cjs/ai/prompt/stories/index.js +1 -1
- package/lib/cjs/ai/prompt/stories/index.js.map +1 -1
- package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
- package/lib/cjs/ai/reasoning/stories/index.js +1 -1
- package/lib/cjs/ai/reasoning/stories/index.js.map +1 -1
- package/lib/cjs/ai/response/Response.js.map +1 -1
- package/lib/cjs/ai/response/stories/index.js +1 -1
- package/lib/cjs/ai/response/stories/index.js.map +1 -1
- package/lib/cjs/ai/suggestion/Suggestion.js +18 -19
- package/lib/cjs/ai/suggestion/Suggestion.js.map +1 -1
- package/lib/cjs/ai/suggestion/stories/index.js +1 -1
- package/lib/cjs/ai/suggestion/stories/index.js.map +1 -1
- package/lib/cjs/ai/thinking/Thinking.js +18 -19
- package/lib/cjs/ai/thinking/Thinking.js.map +1 -1
- package/lib/cjs/ai/thinking/stories/index.js +1 -1
- package/lib/cjs/ai/thinking/stories/index.js.map +1 -1
- package/lib/cjs/ai/tool-call/ToolCall.js.map +1 -1
- package/lib/cjs/ai/tool-call/stories/index.js +1 -1
- package/lib/cjs/ai/tool-call/stories/index.js.map +1 -1
- package/lib/cjs/ai/user-bubble/UserBubble.js.map +1 -1
- package/lib/cjs/ai/user-bubble/stories/index.js +1 -1
- package/lib/cjs/ai/user-bubble/stories/index.js.map +1 -1
- package/lib/cjs/ai/user-bubble/stories/user-bubble-action.story.js +2 -2
- package/lib/cjs/ai/user-bubble/stories/user-bubble-action.story.js.map +1 -1
- package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js +5 -5
- package/lib/cjs/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
- package/lib/cjs/avatar/stories/index.js +1 -1
- package/lib/cjs/avatar/stories/index.js.map +1 -1
- package/lib/cjs/banner/stories/index.js +1 -1
- package/lib/cjs/banner/stories/index.js.map +1 -1
- package/lib/cjs/box/stories/index.js +1 -1
- package/lib/cjs/box/stories/index.js.map +1 -1
- package/lib/cjs/button/stories/index.js +1 -1
- package/lib/cjs/button/stories/index.js.map +1 -1
- package/lib/cjs/clean-icon-button/stories/index.js +1 -1
- package/lib/cjs/clean-icon-button/stories/index.js.map +1 -1
- package/lib/cjs/clipboard-button/stories/index.js +1 -1
- package/lib/cjs/clipboard-button/stories/index.js.map +1 -1
- package/lib/cjs/code/stories/index.js +1 -1
- package/lib/cjs/code/stories/index.js.map +1 -1
- package/lib/cjs/code-block/stories/index.js +1 -1
- package/lib/cjs/code-block/stories/index.js.map +1 -1
- package/lib/cjs/color-picker/stories/index.js +1 -1
- package/lib/cjs/color-picker/stories/index.js.map +1 -1
- package/lib/cjs/conditional-wrap/stories/index.js +1 -1
- package/lib/cjs/conditional-wrap/stories/index.js.map +1 -1
- package/lib/cjs/data-grid/Components.js +2 -2
- package/lib/cjs/data-grid/Components.js.map +1 -1
- package/lib/cjs/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
- package/lib/cjs/data-grid/stories/index.js +1 -1
- package/lib/cjs/data-grid/stories/index.js.map +1 -1
- package/lib/cjs/date-picker/stories/index.js +1 -1
- package/lib/cjs/date-picker/stories/index.js.map +1 -1
- package/lib/cjs/dialog/stories/index.js +1 -1
- package/lib/cjs/dialog/stories/index.js.map +1 -1
- package/lib/cjs/divider/stories/index.js +1 -1
- package/lib/cjs/divider/stories/index.js.map +1 -1
- package/lib/cjs/drawer/stories/index.js +1 -1
- package/lib/cjs/drawer/stories/index.js.map +1 -1
- package/lib/cjs/dropdown-button/stories/index.js +1 -1
- package/lib/cjs/dropdown-button/stories/index.js.map +1 -1
- package/lib/cjs/dropzone/stories/index.js +1 -1
- package/lib/cjs/dropzone/stories/index.js.map +1 -1
- package/lib/cjs/flex/stories/index.js +1 -1
- package/lib/cjs/flex/stories/index.js.map +1 -1
- package/lib/cjs/graph-label/stories/index.js +1 -1
- package/lib/cjs/graph-label/stories/index.js.map +1 -1
- package/lib/cjs/icon-button/stories/index.js +1 -1
- package/lib/cjs/icon-button/stories/index.js.map +1 -1
- package/lib/cjs/icon-button-array/stories/index.js +1 -1
- package/lib/cjs/icon-button-array/stories/index.js.map +1 -1
- package/lib/cjs/icons/manual/Neo4JAiColor.js +15 -16
- package/lib/cjs/icons/manual/Neo4JAiColor.js.map +1 -1
- package/lib/cjs/inline-edit/stories/index.js +1 -1
- package/lib/cjs/inline-edit/stories/index.js.map +1 -1
- package/lib/cjs/kbd/stories/index.js +1 -1
- package/lib/cjs/kbd/stories/index.js.map +1 -1
- package/lib/cjs/loading-bar/stories/index.js +1 -1
- package/lib/cjs/loading-bar/stories/index.js.map +1 -1
- package/lib/cjs/loading-spinner/stories/index.js +1 -1
- package/lib/cjs/loading-spinner/stories/index.js.map +1 -1
- package/lib/cjs/logo/stories/index.js +1 -1
- package/lib/cjs/logo/stories/index.js.map +1 -1
- package/lib/cjs/menu/stories/index.js +1 -1
- package/lib/cjs/menu/stories/index.js.map +1 -1
- package/lib/cjs/menu/stories/menu-custom-items.story.js +2 -1
- package/lib/cjs/menu/stories/menu-custom-items.story.js.map +1 -1
- package/lib/cjs/progress-bar/stories/index.js +1 -1
- package/lib/cjs/progress-bar/stories/index.js.map +1 -1
- package/lib/cjs/segmented-control/stories/index.js +1 -1
- package/lib/cjs/segmented-control/stories/index.js.map +1 -1
- package/lib/cjs/select/stories/index.js +1 -1
- package/lib/cjs/select/stories/index.js.map +1 -1
- package/lib/cjs/slider/stories/index.js +1 -1
- package/lib/cjs/slider/stories/index.js.map +1 -1
- package/lib/cjs/spotlight/stories/index.js +1 -1
- package/lib/cjs/spotlight/stories/index.js.map +1 -1
- package/lib/cjs/status-indicator/stories/index.js +1 -1
- package/lib/cjs/status-indicator/stories/index.js.map +1 -1
- package/lib/cjs/status-label/stories/index.js +1 -1
- package/lib/cjs/status-label/stories/index.js.map +1 -1
- package/lib/cjs/switch/stories/index.js +1 -1
- package/lib/cjs/switch/stories/index.js.map +1 -1
- package/lib/cjs/tabs/stories/index.js +1 -1
- package/lib/cjs/tabs/stories/index.js.map +1 -1
- package/lib/cjs/tag/stories/index.js +1 -1
- package/lib/cjs/tag/stories/index.js.map +1 -1
- package/lib/cjs/text-area/stories/index.js +1 -1
- package/lib/cjs/text-area/stories/index.js.map +1 -1
- package/lib/cjs/text-input/stories/index.js +1 -1
- package/lib/cjs/text-input/stories/index.js.map +1 -1
- package/lib/cjs/text-link/stories/index.js +1 -1
- package/lib/cjs/text-link/stories/index.js.map +1 -1
- package/lib/cjs/time-picker/stories/index.js +1 -1
- package/lib/cjs/time-picker/stories/index.js.map +1 -1
- package/lib/cjs/timezone-picker/stories/index.js +1 -1
- package/lib/cjs/timezone-picker/stories/index.js.map +1 -1
- package/lib/cjs/toast/stories/index.js +1 -1
- package/lib/cjs/toast/stories/index.js.map +1 -1
- package/lib/cjs/tooltip/stories/index.js +1 -1
- package/lib/cjs/tooltip/stories/index.js.map +1 -1
- package/lib/cjs/tree-view/stories/index.js +1 -1
- package/lib/cjs/tree-view/stories/index.js.map +1 -1
- package/lib/cjs/tree-view/stories/treeview-custom.story.js +5 -5
- package/lib/cjs/tree-view/stories/treeview-custom.story.js.map +1 -1
- package/lib/cjs/tree-view/stories/treeview-default.story.js +4 -4
- package/lib/cjs/tree-view/stories/treeview-default.story.js.map +1 -1
- package/lib/cjs/tree-view/stories/treeview-skeleton-loading.story.js +4 -4
- package/lib/cjs/tree-view/stories/treeview-skeleton-loading.story.js.map +1 -1
- package/lib/cjs/typography/stories/index.js +1 -1
- package/lib/cjs/typography/stories/index.js.map +1 -1
- package/lib/cjs/wizard/stories/index.js +1 -1
- package/lib/cjs/wizard/stories/index.js.map +1 -1
- package/lib/esm/accordion/stories/index.js +1 -1
- package/lib/esm/accordion/stories/index.js.map +1 -1
- package/lib/esm/ai/code-preview/stories/index.js +1 -1
- package/lib/esm/ai/code-preview/stories/index.js.map +1 -1
- package/lib/esm/ai/file-tag/FileTag.js.map +1 -1
- package/lib/esm/ai/file-tag/stories/index.js +1 -1
- package/lib/esm/ai/file-tag/stories/index.js.map +1 -1
- package/lib/esm/ai/image-tag/ImageTag.js.map +1 -1
- package/lib/esm/ai/image-tag/stories/index.js +1 -1
- package/lib/esm/ai/image-tag/stories/index.js.map +1 -1
- package/lib/esm/ai/more-files/MoreFiles.js +12 -13
- package/lib/esm/ai/more-files/MoreFiles.js.map +1 -1
- package/lib/esm/ai/more-files/stories/index.js +1 -1
- package/lib/esm/ai/more-files/stories/index.js.map +1 -1
- package/lib/esm/ai/more-files/stories/more-files.story.js +1 -1
- package/lib/esm/ai/more-files/stories/more-files.story.js.map +1 -1
- package/lib/esm/ai/presence/Presence.js.map +1 -1
- package/lib/esm/ai/presence/stories/index.js +1 -1
- package/lib/esm/ai/presence/stories/index.js.map +1 -1
- package/lib/esm/ai/prompt/Prompt.js.map +1 -1
- package/lib/esm/ai/prompt/stories/index.js +1 -1
- package/lib/esm/ai/prompt/stories/index.js.map +1 -1
- package/lib/esm/ai/reasoning/Reasoning.js.map +1 -1
- package/lib/esm/ai/reasoning/stories/index.js +1 -1
- package/lib/esm/ai/reasoning/stories/index.js.map +1 -1
- package/lib/esm/ai/response/Response.js.map +1 -1
- package/lib/esm/ai/response/stories/index.js +1 -1
- package/lib/esm/ai/response/stories/index.js.map +1 -1
- package/lib/esm/ai/suggestion/Suggestion.js +12 -13
- package/lib/esm/ai/suggestion/Suggestion.js.map +1 -1
- package/lib/esm/ai/suggestion/stories/index.js +1 -1
- package/lib/esm/ai/suggestion/stories/index.js.map +1 -1
- package/lib/esm/ai/thinking/Thinking.js +12 -13
- package/lib/esm/ai/thinking/Thinking.js.map +1 -1
- package/lib/esm/ai/thinking/stories/index.js +1 -1
- package/lib/esm/ai/thinking/stories/index.js.map +1 -1
- package/lib/esm/ai/tool-call/ToolCall.js.map +1 -1
- package/lib/esm/ai/tool-call/stories/index.js +1 -1
- package/lib/esm/ai/tool-call/stories/index.js.map +1 -1
- package/lib/esm/ai/user-bubble/UserBubble.js.map +1 -1
- package/lib/esm/ai/user-bubble/stories/index.js +1 -1
- package/lib/esm/ai/user-bubble/stories/index.js.map +1 -1
- package/lib/esm/ai/user-bubble/stories/user-bubble-action.story.js +1 -1
- package/lib/esm/ai/user-bubble/stories/user-bubble-action.story.js.map +1 -1
- package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js +1 -1
- package/lib/esm/ai/user-bubble/stories/user-bubble-and-files.story.js.map +1 -1
- package/lib/esm/avatar/stories/index.js +1 -1
- package/lib/esm/avatar/stories/index.js.map +1 -1
- package/lib/esm/banner/stories/index.js +1 -1
- package/lib/esm/banner/stories/index.js.map +1 -1
- package/lib/esm/box/stories/index.js +1 -1
- package/lib/esm/box/stories/index.js.map +1 -1
- package/lib/esm/button/stories/index.js +1 -1
- package/lib/esm/button/stories/index.js.map +1 -1
- package/lib/esm/clean-icon-button/stories/index.js +1 -1
- package/lib/esm/clean-icon-button/stories/index.js.map +1 -1
- package/lib/esm/clipboard-button/stories/index.js +1 -1
- package/lib/esm/clipboard-button/stories/index.js.map +1 -1
- package/lib/esm/code/stories/index.js +1 -1
- package/lib/esm/code/stories/index.js.map +1 -1
- package/lib/esm/code-block/stories/index.js +1 -1
- package/lib/esm/code-block/stories/index.js.map +1 -1
- package/lib/esm/color-picker/stories/index.js +1 -1
- package/lib/esm/color-picker/stories/index.js.map +1 -1
- package/lib/esm/conditional-wrap/stories/index.js +1 -1
- package/lib/esm/conditional-wrap/stories/index.js.map +1 -1
- package/lib/esm/data-grid/Components.js +2 -2
- package/lib/esm/data-grid/Components.js.map +1 -1
- package/lib/esm/data-grid/stories/datagrid-virtualization.story.js.map +1 -1
- package/lib/esm/data-grid/stories/index.js +1 -1
- package/lib/esm/data-grid/stories/index.js.map +1 -1
- package/lib/esm/date-picker/stories/index.js +1 -1
- package/lib/esm/date-picker/stories/index.js.map +1 -1
- package/lib/esm/dialog/stories/index.js +1 -1
- package/lib/esm/dialog/stories/index.js.map +1 -1
- package/lib/esm/divider/stories/index.js +1 -1
- package/lib/esm/divider/stories/index.js.map +1 -1
- package/lib/esm/drawer/stories/index.js +1 -1
- package/lib/esm/drawer/stories/index.js.map +1 -1
- package/lib/esm/dropdown-button/stories/index.js +1 -1
- package/lib/esm/dropdown-button/stories/index.js.map +1 -1
- package/lib/esm/dropzone/stories/index.js +1 -1
- package/lib/esm/dropzone/stories/index.js.map +1 -1
- package/lib/esm/flex/stories/index.js +1 -1
- package/lib/esm/flex/stories/index.js.map +1 -1
- package/lib/esm/graph-label/stories/index.js +1 -1
- package/lib/esm/graph-label/stories/index.js.map +1 -1
- package/lib/esm/icon-button/stories/index.js +1 -1
- package/lib/esm/icon-button/stories/index.js.map +1 -1
- package/lib/esm/icon-button-array/stories/index.js +1 -1
- package/lib/esm/icon-button-array/stories/index.js.map +1 -1
- package/lib/esm/icons/manual/Neo4JAiColor.js +12 -13
- package/lib/esm/icons/manual/Neo4JAiColor.js.map +1 -1
- package/lib/esm/inline-edit/stories/index.js +1 -1
- package/lib/esm/inline-edit/stories/index.js.map +1 -1
- package/lib/esm/kbd/stories/index.js +1 -1
- package/lib/esm/kbd/stories/index.js.map +1 -1
- package/lib/esm/loading-bar/stories/index.js +1 -1
- package/lib/esm/loading-bar/stories/index.js.map +1 -1
- package/lib/esm/loading-spinner/stories/index.js +1 -1
- package/lib/esm/loading-spinner/stories/index.js.map +1 -1
- package/lib/esm/logo/stories/index.js +1 -1
- package/lib/esm/logo/stories/index.js.map +1 -1
- package/lib/esm/menu/stories/index.js +1 -1
- package/lib/esm/menu/stories/index.js.map +1 -1
- package/lib/esm/menu/stories/menu-custom-items.story.js +2 -1
- package/lib/esm/menu/stories/menu-custom-items.story.js.map +1 -1
- package/lib/esm/progress-bar/stories/index.js +1 -1
- package/lib/esm/progress-bar/stories/index.js.map +1 -1
- package/lib/esm/segmented-control/stories/index.js +1 -1
- package/lib/esm/segmented-control/stories/index.js.map +1 -1
- package/lib/esm/select/stories/index.js +1 -1
- package/lib/esm/select/stories/index.js.map +1 -1
- package/lib/esm/slider/stories/index.js +1 -1
- package/lib/esm/slider/stories/index.js.map +1 -1
- package/lib/esm/spotlight/stories/index.js +1 -1
- package/lib/esm/spotlight/stories/index.js.map +1 -1
- package/lib/esm/status-indicator/stories/index.js +1 -1
- package/lib/esm/status-indicator/stories/index.js.map +1 -1
- package/lib/esm/status-label/stories/index.js +1 -1
- package/lib/esm/status-label/stories/index.js.map +1 -1
- package/lib/esm/switch/stories/index.js +1 -1
- package/lib/esm/switch/stories/index.js.map +1 -1
- package/lib/esm/tabs/stories/index.js +1 -1
- package/lib/esm/tabs/stories/index.js.map +1 -1
- package/lib/esm/tag/stories/index.js +1 -1
- package/lib/esm/tag/stories/index.js.map +1 -1
- package/lib/esm/text-area/stories/index.js +1 -1
- package/lib/esm/text-area/stories/index.js.map +1 -1
- package/lib/esm/text-input/stories/index.js +1 -1
- package/lib/esm/text-input/stories/index.js.map +1 -1
- package/lib/esm/text-link/stories/index.js +1 -1
- package/lib/esm/text-link/stories/index.js.map +1 -1
- package/lib/esm/time-picker/stories/index.js +1 -1
- package/lib/esm/time-picker/stories/index.js.map +1 -1
- package/lib/esm/timezone-picker/stories/index.js +1 -1
- package/lib/esm/timezone-picker/stories/index.js.map +1 -1
- package/lib/esm/toast/stories/index.js +1 -1
- package/lib/esm/toast/stories/index.js.map +1 -1
- package/lib/esm/tooltip/stories/index.js +1 -1
- package/lib/esm/tooltip/stories/index.js.map +1 -1
- package/lib/esm/tree-view/stories/index.js +1 -1
- package/lib/esm/tree-view/stories/index.js.map +1 -1
- package/lib/esm/tree-view/stories/treeview-custom.story.js +1 -1
- package/lib/esm/tree-view/stories/treeview-custom.story.js.map +1 -1
- package/lib/esm/tree-view/stories/treeview-default.story.js +1 -1
- package/lib/esm/tree-view/stories/treeview-default.story.js.map +1 -1
- package/lib/esm/tree-view/stories/treeview-skeleton-loading.story.js +1 -1
- package/lib/esm/tree-view/stories/treeview-skeleton-loading.story.js.map +1 -1
- package/lib/esm/typography/stories/index.js +1 -1
- package/lib/esm/typography/stories/index.js.map +1 -1
- package/lib/esm/wizard/stories/index.js +1 -1
- package/lib/esm/wizard/stories/index.js.map +1 -1
- package/lib/types/accordion/stories/index.d.ts.map +1 -1
- package/lib/types/ai/code-preview/stories/index.d.ts.map +1 -1
- package/lib/types/ai/file-tag/FileTag.d.ts +1 -1
- package/lib/types/ai/file-tag/FileTag.d.ts.map +1 -1
- package/lib/types/ai/file-tag/stories/index.d.ts.map +1 -1
- package/lib/types/ai/image-tag/ImageTag.d.ts +1 -1
- package/lib/types/ai/image-tag/ImageTag.d.ts.map +1 -1
- package/lib/types/ai/image-tag/stories/index.d.ts.map +1 -1
- package/lib/types/ai/more-files/MoreFiles.d.ts +1 -1
- package/lib/types/ai/more-files/MoreFiles.d.ts.map +1 -1
- package/lib/types/ai/more-files/stories/index.d.ts.map +1 -1
- package/lib/types/ai/presence/Presence.d.ts +1 -1
- package/lib/types/ai/presence/Presence.d.ts.map +1 -1
- package/lib/types/ai/presence/stories/index.d.ts.map +1 -1
- package/lib/types/ai/prompt/Prompt.d.ts +1 -1
- package/lib/types/ai/prompt/Prompt.d.ts.map +1 -1
- package/lib/types/ai/prompt/stories/index.d.ts.map +1 -1
- package/lib/types/ai/reasoning/Reasoning.d.ts +1 -1
- package/lib/types/ai/reasoning/Reasoning.d.ts.map +1 -1
- package/lib/types/ai/reasoning/stories/index.d.ts.map +1 -1
- package/lib/types/ai/response/Response.d.ts +1 -1
- package/lib/types/ai/response/Response.d.ts.map +1 -1
- package/lib/types/ai/response/stories/index.d.ts.map +1 -1
- package/lib/types/ai/suggestion/Suggestion.d.ts +1 -1
- package/lib/types/ai/suggestion/Suggestion.d.ts.map +1 -1
- package/lib/types/ai/suggestion/stories/index.d.ts.map +1 -1
- package/lib/types/ai/thinking/Thinking.d.ts +1 -1
- package/lib/types/ai/thinking/Thinking.d.ts.map +1 -1
- package/lib/types/ai/tool-call/ToolCall.d.ts +1 -1
- package/lib/types/ai/tool-call/ToolCall.d.ts.map +1 -1
- package/lib/types/ai/tool-call/stories/index.d.ts.map +1 -1
- package/lib/types/ai/user-bubble/UserBubble.d.ts +1 -1
- package/lib/types/ai/user-bubble/UserBubble.d.ts.map +1 -1
- package/lib/types/ai/user-bubble/stories/index.d.ts.map +1 -1
- package/lib/types/avatar/stories/index.d.ts.map +1 -1
- package/lib/types/banner/stories/index.d.ts.map +1 -1
- package/lib/types/box/stories/index.d.ts.map +1 -1
- package/lib/types/button/stories/index.d.ts.map +1 -1
- package/lib/types/clean-icon-button/stories/index.d.ts.map +1 -1
- package/lib/types/clipboard-button/stories/index.d.ts.map +1 -1
- package/lib/types/code/stories/index.d.ts.map +1 -1
- package/lib/types/code-block/stories/index.d.ts.map +1 -1
- package/lib/types/color-picker/stories/index.d.ts.map +1 -1
- package/lib/types/conditional-wrap/stories/index.d.ts.map +1 -1
- package/lib/types/data-grid/Components.d.ts +4 -1
- package/lib/types/data-grid/Components.d.ts.map +1 -1
- package/lib/types/data-grid/DataGrid.d.ts +2 -1
- package/lib/types/data-grid/DataGrid.d.ts.map +1 -1
- package/lib/types/data-grid/stories/datagrid-pinned-columns.stories.d.ts +2 -1
- package/lib/types/data-grid/stories/datagrid-pinned-columns.stories.d.ts.map +1 -1
- package/lib/types/data-grid/stories/datagrid-placeholder-states.stories.d.ts +2 -1
- package/lib/types/data-grid/stories/datagrid-placeholder-states.stories.d.ts.map +1 -1
- package/lib/types/data-grid/stories/datagrid-search-and-filters.stories.d.ts +2 -1
- package/lib/types/data-grid/stories/datagrid-search-and-filters.stories.d.ts.map +1 -1
- package/lib/types/data-grid/stories/datagrid-virtualization.story.d.ts.map +1 -1
- package/lib/types/data-grid/stories/index.d.ts.map +1 -1
- package/lib/types/date-picker/stories/index.d.ts.map +1 -1
- package/lib/types/dialog/stories/index.d.ts.map +1 -1
- package/lib/types/divider/stories/index.d.ts.map +1 -1
- package/lib/types/drawer/stories/index.d.ts.map +1 -1
- package/lib/types/dropdown-button/stories/index.d.ts.map +1 -1
- package/lib/types/dropzone/stories/index.d.ts.map +1 -1
- package/lib/types/flex/stories/index.d.ts.map +1 -1
- package/lib/types/graph-label/stories/index.d.ts.map +1 -1
- package/lib/types/icon-button/stories/index.d.ts.map +1 -1
- package/lib/types/icon-button-array/stories/index.d.ts.map +1 -1
- package/lib/types/icons/manual/Neo4JAiColor.d.ts +4 -3
- package/lib/types/icons/manual/Neo4JAiColor.d.ts.map +1 -1
- package/lib/types/inline-edit/stories/index.d.ts.map +1 -1
- package/lib/types/kbd/stories/index.d.ts.map +1 -1
- package/lib/types/loading-bar/stories/index.d.ts.map +1 -1
- package/lib/types/loading-spinner/stories/index.d.ts.map +1 -1
- package/lib/types/logo/stories/index.d.ts.map +1 -1
- package/lib/types/menu/stories/index.d.ts.map +1 -1
- package/lib/types/menu/stories/menu-custom-items.story.d.ts.map +1 -1
- package/lib/types/progress-bar/stories/index.d.ts.map +1 -1
- package/lib/types/segmented-control/stories/index.d.ts.map +1 -1
- package/lib/types/select/stories/index.d.ts.map +1 -1
- package/lib/types/slider/stories/index.d.ts.map +1 -1
- package/lib/types/spotlight/stories/index.d.ts.map +1 -1
- package/lib/types/status-indicator/stories/index.d.ts.map +1 -1
- package/lib/types/status-label/stories/index.d.ts.map +1 -1
- package/lib/types/switch/stories/index.d.ts.map +1 -1
- package/lib/types/tabs/stories/index.d.ts.map +1 -1
- package/lib/types/tag/stories/index.d.ts.map +1 -1
- package/lib/types/text-area/stories/index.d.ts.map +1 -1
- package/lib/types/text-input/stories/index.d.ts.map +1 -1
- package/lib/types/text-link/stories/index.d.ts.map +1 -1
- package/lib/types/time-picker/stories/index.d.ts.map +1 -1
- package/lib/types/timezone-picker/stories/index.d.ts.map +1 -1
- package/lib/types/toast/stories/index.d.ts.map +1 -1
- package/lib/types/tooltip/stories/index.d.ts.map +1 -1
- package/lib/types/tree-view/stories/index.d.ts.map +1 -1
- package/lib/types/typography/stories/index.d.ts.map +1 -1
- package/lib/types/wizard/stories/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/toast/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,6DAAgE;AAAvD,oIAAA,OAAO,OAAgB;AAChC,6DAAgE;AAAvD,oIAAA,OAAO,OAAgB;AAChC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,2DAAmE;AAA1D,uIAAA,OAAO,OAAoB;AACpC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AAEnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/toast/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,6DAAgE;AAAvD,oIAAA,OAAO,OAAgB;AAChC,6DAAgE;AAAvD,oIAAA,OAAO,OAAgB;AAChC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,2DAAmE;AAA1D,uIAAA,OAAO,OAAoB;AACpC,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AAEnC,6EAAyE;AACzE,sFAAyD;AACzD,4FAA+D;AAC/D,8FAAiE;AACjE,sFAAyD;AACzD,sFAAyD;AACzD,wFAA2D;AAC3D,sFAA8D;AAC9D,wFAA2D;AAE9C,QAAA,eAAe,GAAG,IAAA,0CAAmB,EAAC,iCAAkB,CAAC,CAAC;AAC1D,QAAA,eAAe,GAAG,IAAA,0CAAmB,EAAC,iCAAkB,CAAC,CAAC;AAC1D,QAAA,cAAc,GAAG,IAAA,0CAAmB,EAAC,gCAAiB,CAAC,CAAC;AACxD,QAAA,cAAc,GAAG,IAAA,0CAAmB,EAAC,gCAAiB,CAAC,CAAC;AACxD,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,mCAAoB,CAAC,CAAC;AAC9D,QAAA,mBAAmB,GAAG,IAAA,0CAAmB,EAAC,gCAAsB,CAAC,CAAC;AAClE,QAAA,cAAc,GAAG,IAAA,0CAAmB,EAAC,gCAAiB,CAAC,CAAC;AACxD,QAAA,kBAAkB,GAAG,IAAA,0CAAmB,EAAC,oCAAqB,CAAC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as ToastNeutral } from './toast-neutral-story';\nexport { default as ToastSuccess } from './toast-success-story';\nexport { default as ToastDanger } from './toast-danger-story';\nexport { default as ToastAction } from './toast-action-story';\nexport { default as ToastCloseable } from './toast-closeable-story';\nexport { default as ToastProgressBar } from './toast-progress-bar';\nexport { default as ToastCustom } from './toast-custom-story';\nexport { default as ToastControlled } from './toast-controlled-story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport ToastActionSrcRaw from './toast-action-story?raw';\nimport ToastCloseableSrcRaw from './toast-closeable-story?raw';\nimport ToastControlledSrcRaw from './toast-controlled-story?raw';\nimport ToastCustomSrcRaw from './toast-custom-story?raw';\nimport ToastDangerSrcRaw from './toast-danger-story?raw';\nimport ToastNeutralSrcRaw from './toast-neutral-story?raw';\nimport ToastProgressBarSrcRaw from './toast-progress-bar?raw';\nimport ToastSuccessSrcRaw from './toast-success-story?raw';\n\nexport const ToastNeutralSrc = removeLicenseHeader(ToastNeutralSrcRaw);\nexport const ToastSuccessSrc = removeLicenseHeader(ToastSuccessSrcRaw);\nexport const ToastDangerSrc = removeLicenseHeader(ToastDangerSrcRaw);\nexport const ToastActionSrc = removeLicenseHeader(ToastActionSrcRaw);\nexport const ToastCloseableSrc = removeLicenseHeader(ToastCloseableSrcRaw);\nexport const ToastProgressBarSrc = removeLicenseHeader(ToastProgressBarSrcRaw);\nexport const ToastCustomSrc = removeLicenseHeader(ToastCustomSrcRaw);\nexport const ToastControlledSrc = removeLicenseHeader(ToastControlledSrcRaw);\n"]}
|
|
@@ -46,7 +46,7 @@ var tooltip_rich_link_story_1 = require("./tooltip-rich-link.story");
|
|
|
46
46
|
Object.defineProperty(exports, "TooltipRichLink", { enumerable: true, get: function () { return __importDefault(tooltip_rich_link_story_1).default; } });
|
|
47
47
|
var tooltip_with_keyboard_shortcut_story_1 = require("./tooltip-with-keyboard-shortcut.story");
|
|
48
48
|
Object.defineProperty(exports, "TooltipWithKeyboardShortcut", { enumerable: true, get: function () { return __importDefault(tooltip_with_keyboard_shortcut_story_1).default; } });
|
|
49
|
-
const export_stories_utils_1 = require("
|
|
49
|
+
const export_stories_utils_1 = require("../../_common/export-stories-utils");
|
|
50
50
|
const tooltip_controlled_story_raw_1 = __importDefault(require("./tooltip-controlled.story?raw"));
|
|
51
51
|
const tooltip_default_story_raw_1 = __importDefault(require("./tooltip-default.story?raw"));
|
|
52
52
|
const tooltip_disabled_story_raw_1 = __importDefault(require("./tooltip-disabled.story?raw"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,uEAA0E;AAAjE,8IAAA,OAAO,OAAqB;AACrC,2EAA6E;AAApE,iJAAA,OAAO,OAAsB;AACtC,uEAA0E;AAAjE,8IAAA,OAAO,OAAqB;AACrC,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,yEAA2E;AAAlE,+IAAA,OAAO,OAAqB;AACrC,+FAAgG;AAAvF,oKAAA,OAAO,OAA+B;AAC/C,2DAA8D;AAArD,kIAAA,OAAO,OAAe;AAC/B,qEAAuE;AAA9D,2IAAA,OAAO,OAAmB;AACnC,+FAAgG;AAAvF,oKAAA,OAAO,OAA+B;AAE/C,
|
|
1
|
+
{"version":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iC,GAAG,IAAA,0CAAmB,EAClE,kDAAoC,CACrC,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAA,0CAAmB,EAAC,gCAAoB,CAAC,CAAC;AAC9D,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,qCAAwB,CACzB,CAAC;AACW,QAAA,iCAAiC,GAAG,IAAA,0CAAmB,EAClE,kDAAoC,CACrC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as TooltipDefault } from './tooltip-default.story';\nexport { default as TooltipDisabled } from './tooltip-disabled.story';\nexport { default as TooltipControlled } from './tooltip-controlled.story';\nexport { default as TooltipInitialOpen } from './tooltip-initial-open.story';\nexport { default as TooltipPlacements } from './tooltip-placements.story';\nexport { default as TooltipInDialog } from './tooltip-in-dialog.story';\nexport { default as TooltipHoverDelay } from './tooltip-hover-delay.story';\nexport { default as TooltipTriggerButtonWrapper } from './tooltip-trigger-button-wrapper.story';\nexport { default as TooltipRich } from './tooltip-rich.story';\nexport { default as TooltipRichLink } from './tooltip-rich-link.story';\nexport { default as TooltipWithKeyboardShortcut } from './tooltip-with-keyboard-shortcut.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport TooltipControlledSourceRaw from './tooltip-controlled.story?raw';\nimport TooltipDefaultSourceRaw from './tooltip-default.story?raw';\nimport TooltipDisabledSourceRaw from './tooltip-disabled.story?raw';\nimport TooltipHoverDelaySourceRaw from './tooltip-hover-delay.story?raw';\nimport TooltipInDialogSourceRaw from './tooltip-in-dialog.story?raw';\nimport TooltipInitialOpenSourceRaw from './tooltip-initial-open.story?raw';\nimport TooltipPlacementsSourceRaw from './tooltip-placements.story?raw';\nimport TooltipRichSourceRaw from './tooltip-rich.story?raw';\nimport TooltipRichLinkSourceRaw from './tooltip-rich-link.story?raw';\nimport TooltipTriggerButtonWrapperSourceRaw from './tooltip-trigger-button-wrapper.story?raw';\nimport TooltipWithKeyboardShortcutSourceRaw from './tooltip-with-keyboard-shortcut.story?raw';\n\nexport const TooltipDefaultSource = removeLicenseHeader(\n TooltipDefaultSourceRaw,\n);\nexport const TooltipDisabledSource = removeLicenseHeader(\n TooltipDisabledSourceRaw,\n);\nexport const TooltipControlledSource = removeLicenseHeader(\n TooltipControlledSourceRaw,\n);\nexport const TooltipInitialOpenSource = removeLicenseHeader(\n TooltipInitialOpenSourceRaw,\n);\nexport const TooltipPlacementsSource = removeLicenseHeader(\n TooltipPlacementsSourceRaw,\n);\nexport const TooltipInDialogSource = removeLicenseHeader(\n TooltipInDialogSourceRaw,\n);\nexport const TooltipHoverDelaySource = removeLicenseHeader(\n TooltipHoverDelaySourceRaw,\n);\nexport const TooltipTriggerButtonWrapperSource = removeLicenseHeader(\n TooltipTriggerButtonWrapperSourceRaw,\n);\nexport const TooltipRichSource = removeLicenseHeader(TooltipRichSourceRaw);\nexport const TooltipRichLinkSource = removeLicenseHeader(\n TooltipRichLinkSourceRaw,\n);\nexport const TooltipWithKeyboardShortcutSource = removeLicenseHeader(\n TooltipWithKeyboardShortcutSourceRaw,\n);\n"]}
|
|
@@ -30,7 +30,7 @@ var treeview_custom_story_1 = require("./treeview-custom.story");
|
|
|
30
30
|
Object.defineProperty(exports, "TreeViewCustom", { enumerable: true, get: function () { return __importDefault(treeview_custom_story_1).default; } });
|
|
31
31
|
var treeview_skeleton_loading_story_1 = require("./treeview-skeleton-loading.story");
|
|
32
32
|
Object.defineProperty(exports, "TreeViewSkeletonLoading", { enumerable: true, get: function () { return __importDefault(treeview_skeleton_loading_story_1).default; } });
|
|
33
|
-
const export_stories_utils_1 = require("
|
|
33
|
+
const export_stories_utils_1 = require("../../_common/export-stories-utils");
|
|
34
34
|
const treeview_custom_story_raw_1 = __importDefault(require("./treeview-custom.story?raw"));
|
|
35
35
|
const treeview_default_story_raw_1 = __importDefault(require("./treeview-default.story?raw"));
|
|
36
36
|
const treeview_skeleton_loading_story_raw_1 = __importDefault(require("./treeview-skeleton-loading.story?raw"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tree-view/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,qFAAuF;AAA9E,2JAAA,OAAO,OAA2B;AAE3C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tree-view/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,mEAAsE;AAA7D,0IAAA,OAAO,OAAmB;AACnC,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,qFAAuF;AAA9E,2JAAA,OAAO,OAA2B;AAE3C,6EAAyE;AACzE,4FAAkE;AAClE,8FAAoE;AACpE,gHAAqF;AAExE,QAAA,qBAAqB,GAAG,IAAA,0CAAmB,EACtD,oCAAwB,CACzB,CAAC;AACW,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,mCAAuB,CACxB,CAAC;AACW,QAAA,6BAA6B,GAAG,IAAA,0CAAmB,EAC9D,6CAAgC,CACjC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as TreeViewDefault } from './treeview-default.story';\nexport { default as TreeViewCustom } from './treeview-custom.story';\nexport { default as TreeViewSkeletonLoading } from './treeview-skeleton-loading.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport TreeViewCustomSourceRaw from './treeview-custom.story?raw';\nimport TreeViewDefaultSourceRaw from './treeview-default.story?raw';\nimport TreeViewSkeletonLoadingSourceRaw from './treeview-skeleton-loading.story?raw';\n\nexport const TreeViewDefaultSource = removeLicenseHeader(\n TreeViewDefaultSourceRaw,\n);\nexport const TreeViewCustomSource = removeLicenseHeader(\n TreeViewCustomSourceRaw,\n);\nexport const TreeViewSkeletonLoadingSource = removeLicenseHeader(\n TreeViewSkeletonLoadingSourceRaw,\n);\n"]}
|
|
@@ -33,9 +33,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
33
33
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
34
34
|
*/
|
|
35
35
|
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
36
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
36
37
|
const icons_1 = require("@neo4j-ndl/react/icons");
|
|
37
|
-
const
|
|
38
|
-
const react_1 = require("react");
|
|
38
|
+
const react_2 = require("react");
|
|
39
39
|
const TREE_ITEMS = [
|
|
40
40
|
{
|
|
41
41
|
canHaveSubItems: true,
|
|
@@ -74,12 +74,12 @@ const TREE_ITEMS = [
|
|
|
74
74
|
},
|
|
75
75
|
];
|
|
76
76
|
const Component = () => {
|
|
77
|
-
const [items, setItems] = (0,
|
|
78
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
77
|
+
const [items, setItems] = (0, react_2.useState)(TREE_ITEMS);
|
|
78
|
+
return ((0, jsx_runtime_1.jsx)(react_1.TreeView, { items: items, onItemsChanged: (newItems) => {
|
|
79
79
|
setItems(newItems);
|
|
80
80
|
}, TreeItemComponent: function CustomTreeItem(_a) {
|
|
81
81
|
var { ref, onItemsChanged } = _a, restProps = __rest(_a, ["ref", "onItemsChanged"]);
|
|
82
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
82
|
+
return ((0, jsx_runtime_1.jsx)(react_1.TreeView.TreeItemWrapper, Object.assign({}, restProps, { onItemsChanged: onItemsChanged, ref: ref, children: (0, jsx_runtime_1.jsxs)("div", { className: "n-items-center n-flex n-flex-row", style: {
|
|
83
83
|
background: !restProps.item.canHaveSubItems
|
|
84
84
|
? 'linear-gradient(in hsl longer hue 45deg, red 0 0)'
|
|
85
85
|
: '',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeview-custom.story.js","sourceRoot":"","sources":["../../../../src/tree-view/stories/treeview-custom.story.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,
|
|
1
|
+
{"version":3,"file":"treeview-custom.story.js","sourceRoot":"","sources":["../../../../src/tree-view/stories/treeview-custom.story.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,4CAA4C;AAC5C,kDAIgC;AAEhC,iCAAiC;AAEjC,MAAM,UAAU,GAAmD;IACjE;QACE,eAAe,EAAE,IAAI;QACrB,IAAI,EAAE;YACJ,MAAM,EAAE,aAAa;SACtB;QACD,EAAE,EAAE,MAAM;QACV,WAAW,EAAE,KAAK;QAClB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE;YACR;gBACE,eAAe,EAAE,KAAK;gBACtB,IAAI,EAAE;oBACJ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/C,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAC5B,uBAAC,0BAAkB,IAAC,SAAS,EAAC,aAAa,GAAG,CAC/C,CAAC,CAAC,CAAC,CACF,uBAAC,4BAAoB,IAAC,SAAS,EAAC,aAAa,GAAG,CACjD,GACM,IACR,CACJ,EACA,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI;4BAC9B,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,QAAQ;4BAC9C,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,IACxB,IACmB,CAC5B,CAAC;QACJ,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { TreeView } from '@neo4j-ndl/react';\nimport {\n ChevronDownIconSolid,\n ChevronUpIconSolid,\n FolderIconOutline,\n} from '@neo4j-ndl/react/icons';\nimport type React from 'react';\nimport { useState } from 'react';\n\nconst TREE_ITEMS: React.ComponentProps<typeof TreeView>['items'] = [\n {\n canHaveSubItems: true,\n data: {\n custom: 'Custom Root',\n },\n id: 'Root',\n isCollapsed: false,\n isSelected: false,\n subItems: [\n {\n canHaveSubItems: false,\n data: {\n custom: 'Custom child 1',\n },\n id: 'Child 1',\n isSelected: false,\n },\n {\n canHaveSubItems: false,\n data: {\n custom: 'Custom child 2',\n },\n id: 'Child 2',\n isSelected: false,\n },\n {\n canHaveSubItems: false,\n data: {\n custom: 'Custom child 3',\n },\n id: 'Child 3',\n isSelected: false,\n },\n ],\n },\n];\n\nconst Component = () => {\n const [items, setItems] = useState(TREE_ITEMS);\n\n return (\n <TreeView\n items={items}\n onItemsChanged={(newItems) => {\n setItems(newItems);\n }}\n TreeItemComponent={function CustomTreeItem({\n ref,\n onItemsChanged,\n ...restProps\n }: React.ComponentProps<typeof TreeView.TreeItemWrapper>) {\n return (\n <TreeView.TreeItemWrapper\n {...restProps}\n onItemsChanged={onItemsChanged}\n ref={ref}\n >\n <div\n className=\"n-items-center n-flex n-flex-row\"\n style={{\n background: !restProps.item.canHaveSubItems\n ? 'linear-gradient(in hsl longer hue 45deg, red 0 0)'\n : '',\n }}\n >\n {restProps.item.canHaveSubItems && (\n <>\n <FolderIconOutline className=\"n-h-5 w-h-5\" />\n <button\n onClick={() =>\n restProps.onCollapse && restProps.onCollapse()\n }\n >\n {restProps.item.isCollapsed ? (\n <ChevronUpIconSolid className=\"n-h-5 w-h-5\" />\n ) : (\n <ChevronDownIconSolid className=\"n-h-5 w-h-5\" />\n )}\n </button>\n </>\n )}\n {'custom' in restProps.item.data &&\n typeof restProps.item.data.custom === 'string' &&\n restProps.item.data.custom}\n </div>\n </TreeView.TreeItemWrapper>\n );\n }}\n />\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -22,9 +22,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
22
22
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
23
|
*/
|
|
24
24
|
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
25
26
|
const icons_1 = require("@neo4j-ndl/react/icons");
|
|
26
|
-
const
|
|
27
|
-
const react_1 = require("react");
|
|
27
|
+
const react_2 = require("react");
|
|
28
28
|
const TREE_ITEMS = [
|
|
29
29
|
{
|
|
30
30
|
canHaveSubItems: true,
|
|
@@ -238,8 +238,8 @@ const TREE_ITEMS = [
|
|
|
238
238
|
},
|
|
239
239
|
];
|
|
240
240
|
const Component = () => {
|
|
241
|
-
const [items, setItems] = (0,
|
|
242
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
241
|
+
const [items, setItems] = (0, react_2.useState)(TREE_ITEMS);
|
|
242
|
+
return ((0, jsx_runtime_1.jsx)(react_1.TreeView, { items: items, onItemsChanged: (newItems, itemChangedReason) => {
|
|
243
243
|
// eslint-disable-next-line no-restricted-syntax
|
|
244
244
|
console.log('change with itemChangedReason:', itemChangedReason);
|
|
245
245
|
setItems(newItems);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeview-default.story.js","sourceRoot":"","sources":["../../../../src/tree-view/stories/treeview-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,kDAA2D;AAC3D,0DAAsD;AAEtD,iCAAiC;AAEjC,MAAM,UAAU,GAAmD;IACjE;QACE,eAAe,EAAE,IAAI;QACrB,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP;oBACE,WAAW,EAAE;wBACX,OAAO,EAAE,GAAG,EAAE;4BACZ,KAAK,CAAC,oBAAoB,CAAC,CAAC;wBAC9B,CAAC;wBACD,OAAO,EAAE,MAAM;qBAChB;oBACD,IAAI,EAAE,uBAAC,yBAAiB,KAAG;iBAC5B;aACF;YACD,WAAW,EAAE,GAAG,EAAE;gBAChB,KAAK,CAAC,kBAAkB,CAAC,CAAC;YAC5B,CAAC;YACD,IAAI,EAAE,UAAU;SACjB;QACD,EAAE,EAAE,UAAU;QACd,WAAW,EAAE,KAAK;QAClB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE;YACR;gBACE,eAAe,EAAE,KAAK;gBACtB,IAAI,EAAE;oBACJ,OAAO,EAAE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IAEvE,OAAO,CACL,uBAAC,oBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,EAAE;YAC9C,gDAAgD;YAChD,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,iBAAiB,CAAC,CAAC;YACjE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACrB,CAAC,EACD,iBAAiB,EAAE,SAAS,GAC5B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { PencilIconOutline } from '@neo4j-ndl/react/icons';\nimport { TreeView } from '@neo4j-ndl/react/tree-view';\nimport type React from 'react';\nimport { useState } from 'react';\n\nconst TREE_ITEMS: React.ComponentProps<typeof TreeView>['items'] = [\n {\n canHaveSubItems: true,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Folder 1',\n },\n id: 'Folder 1',\n isCollapsed: false,\n isSelected: false,\n isSortable: false,\n subItems: [\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 1',\n },\n id: 'Child 1',\n isSelected: false,\n isSortable: true,\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 2',\n },\n id: 'Child 2',\n isSelected: false,\n isSortable: true,\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 3',\n },\n id: 'Child 3',\n isSelected: false,\n isSortable: true,\n },\n {\n canHaveSubItems: true,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Folder 2',\n },\n id: 'Folder 2',\n isCollapsed: true,\n isSelected: false,\n isSortable: true,\n subItems: [\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 4',\n },\n\n id: 'Child 4',\n isSelected: false,\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 5',\n },\n id: 'Child 5',\n isSelected: false,\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 6',\n },\n id: 'Child 6',\n isSelected: false,\n },\n ],\n },\n ],\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 7',\n },\n id: 'Child 7',\n isSelected: false,\n isSortable: true,\n },\n];\n\nconst Component = () => {\n const [items, setItems] =\n useState<React.ComponentProps<typeof TreeView>['items']>(TREE_ITEMS);\n\n return (\n <TreeView\n items={items}\n onItemsChanged={(newItems, itemChangedReason) => {\n // eslint-disable-next-line no-restricted-syntax\n console.log('change with itemChangedReason:', itemChangedReason);\n setItems(newItems);\n }}\n TreeItemComponent={undefined}\n />\n );\n};\n\nexport default Component;\n"]}
|
|
1
|
+
{"version":3,"file":"treeview-default.story.js","sourceRoot":"","sources":["../../../../src/tree-view/stories/treeview-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,4CAA4C;AAC5C,kDAA2D;AAE3D,iCAAiC;AAEjC,MAAM,UAAU,GAAmD;IACjE;QACE,eAAe,EAAE,IAAI;QACrB,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP;oBACE,WAAW,EAAE;wBACX,OAAO,EAAE,GAAG,EAAE;4BACZ,KAAK,CAAC,oBAAoB,CAAC,CAAC;wBAC9B,CAAC;wBACD,OAAO,EAAE,MAAM;qBAChB;oBACD,IAAI,EAAE,uBAAC,yBAAiB,KAAG;iBAC5B;aACF;YACD,WAAW,EAAE,GAAG,EAAE;gBAChB,KAAK,CAAC,kBAAkB,CAAC,CAAC;YAC5B,CAAC;YACD,IAAI,EAAE,UAAU;SACjB;QACD,EAAE,EAAE,UAAU;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U,EAAE,IAAI;KACjB;CACF,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GACrB,IAAA,gBAAQ,EAAiD,UAAU,CAAC,CAAC;IAEvE,OAAO,CACL,uBAAC,gBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,EAAE;YAC9C,gDAAgD;YAChD,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,iBAAiB,CAAC,CAAC;YACjE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACrB,CAAC,EACD,iBAAiB,EAAE,SAAS,GAC5B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { TreeView } from '@neo4j-ndl/react';\nimport { PencilIconOutline } from '@neo4j-ndl/react/icons';\nimport type React from 'react';\nimport { useState } from 'react';\n\nconst TREE_ITEMS: React.ComponentProps<typeof TreeView>['items'] = [\n {\n canHaveSubItems: true,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Folder 1',\n },\n id: 'Folder 1',\n isCollapsed: false,\n isSelected: false,\n isSortable: false,\n subItems: [\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 1',\n },\n id: 'Child 1',\n isSelected: false,\n isSortable: true,\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 2',\n },\n id: 'Child 2',\n isSelected: false,\n isSortable: true,\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 3',\n },\n id: 'Child 3',\n isSelected: false,\n isSortable: true,\n },\n {\n canHaveSubItems: true,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Folder 2',\n },\n id: 'Folder 2',\n isCollapsed: true,\n isSelected: false,\n isSortable: true,\n subItems: [\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 4',\n },\n\n id: 'Child 4',\n isSelected: false,\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 5',\n },\n id: 'Child 5',\n isSelected: false,\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 6',\n },\n id: 'Child 6',\n isSelected: false,\n },\n ],\n },\n ],\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [\n {\n buttonProps: {\n onClick: () => {\n alert('Pencil was clicked');\n },\n tooltip: 'Edit',\n },\n icon: <PencilIconOutline />,\n },\n ],\n onTextClick: () => {\n alert('Text was clicked');\n },\n text: 'Child 7',\n },\n id: 'Child 7',\n isSelected: false,\n isSortable: true,\n },\n];\n\nconst Component = () => {\n const [items, setItems] =\n useState<React.ComponentProps<typeof TreeView>['items']>(TREE_ITEMS);\n\n return (\n <TreeView\n items={items}\n onItemsChanged={(newItems, itemChangedReason) => {\n // eslint-disable-next-line no-restricted-syntax\n console.log('change with itemChangedReason:', itemChangedReason);\n setItems(newItems);\n }}\n TreeItemComponent={undefined}\n />\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -22,8 +22,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
22
22
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
23
23
|
*/
|
|
24
24
|
require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
|
|
25
|
-
const
|
|
26
|
-
const
|
|
25
|
+
const react_1 = require("@neo4j-ndl/react");
|
|
26
|
+
const react_2 = require("react");
|
|
27
27
|
const TREE_ITEMS = [
|
|
28
28
|
{
|
|
29
29
|
canHaveSubItems: true,
|
|
@@ -80,8 +80,8 @@ const TREE_ITEMS = [
|
|
|
80
80
|
},
|
|
81
81
|
];
|
|
82
82
|
const Component = () => {
|
|
83
|
-
const [items, setItems] = (0,
|
|
84
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
83
|
+
const [items, setItems] = (0, react_2.useState)(TREE_ITEMS);
|
|
84
|
+
return ((0, jsx_runtime_1.jsx)(react_1.TreeView, { items: items, onItemsChanged: (newItems, itemChangedReason) => {
|
|
85
85
|
console.info('change with itemChangedReason:', itemChangedReason);
|
|
86
86
|
setItems(newItems);
|
|
87
87
|
}, TreeItemComponent: undefined }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeview-skeleton-loading.story.js","sourceRoot":"","sources":["../../../../src/tree-view/stories/treeview-skeleton-loading.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,
|
|
1
|
+
{"version":3,"file":"treeview-skeleton-loading.story.js","sourceRoot":"","sources":["../../../../src/tree-view/stories/treeview-skeleton-loading.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,mDAAiD;AAEjD,4CAA4C;AAE5C,iCAAiC;AAEjC,MAAM,UAAU,GAAmD;IACjE;QACE,eAAe,EAAE,IAAI;QACrB,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,UAAU;SACjB;QACD,EAAE,EAAE,UAAU;QACd,WAAW,EAAE,KAAK;QAClB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE;YACR;gBACE,eAAe,EAAE,KAAK;gBACtB,IAAI,EAAE;oBACJ,OAAO,EAAE,EAAE;oBACX,IAAI,EAAE,QAAQ;iBACf;gBACD,EAAE,EAAE,QAAQ;gBACZ,UAAU,EAAE,KAAK;aAClB;YACD;gBACE,eAAe,EAAE,IAAI;gBACrB,IAAI,EAAE;oBACJ,OAAO,EAAE,EAAE;oBACX,IAAI,EAAE,UAAU;iBACjB;gBACD,EAAE,EAAE,UAAU;gBACd,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,KAAK;gBACjB,iBAAiB,EAAE,IAAI;gBACvB,QAAQ,EAAE;oBACR;wBACE,eAAe,EAAE,KAAK;wBACtB,IAAI,EAAE;4BACJ,OAAO,EAAE,EAAE;4BACX,IAAI,EAAE,QAAQ;yBACf;wBACD,EAAE,EAAE,QAAQ;wBACZ,UAAU,EAAE,KAAK;qBAClB;oBACD;wBACE,eAAe,EAAE,KAAK;wBACtB,IAAI,EAAE;4BACJ,OAAO,EAAE,EAAE;4BACX,IAAI,EAAE,QAAQ;yBACf;wBACD,EAAE,EAAE,QAAQ;wBACZ,UAAU,EAAE,KAAK;wBACjB,iBAAiB,EAAE,IAAI;qBACxB;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GACrB,IAAA,gBAAQ,EAAiD,UAAU,CAAC,CAAC;IAEvE,OAAO,CACL,uBAAC,gBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,EAAE;YAC9C,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,iBAAiB,CAAC,CAAC;YAClE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACrB,CAAC,EACD,iBAAiB,EAAE,SAAS,GAC5B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { TreeView } from '@neo4j-ndl/react';\nimport type React from 'react';\nimport { useState } from 'react';\n\nconst TREE_ITEMS: React.ComponentProps<typeof TreeView>['items'] = [\n {\n canHaveSubItems: true,\n data: {\n actions: [],\n text: 'Folder 1',\n },\n id: 'Folder 1',\n isCollapsed: false,\n isSelected: false,\n subItems: [\n {\n canHaveSubItems: false,\n data: {\n actions: [],\n text: 'Item 1',\n },\n id: 'Item 1',\n isSelected: false,\n },\n {\n canHaveSubItems: true,\n data: {\n actions: [],\n text: 'Folder 2',\n },\n id: 'Folder 2',\n isCollapsed: false,\n isSelected: false,\n isSkeletonLoading: true,\n subItems: [\n {\n canHaveSubItems: false,\n data: {\n actions: [],\n text: 'Item 2',\n },\n id: 'Item 2',\n isSelected: false,\n },\n {\n canHaveSubItems: false,\n data: {\n actions: [],\n text: 'Item 3',\n },\n id: 'Item 3',\n isSelected: false,\n isSkeletonLoading: true,\n },\n ],\n },\n ],\n },\n];\n\nconst Component = () => {\n const [items, setItems] =\n useState<React.ComponentProps<typeof TreeView>['items']>(TREE_ITEMS);\n\n return (\n <TreeView\n items={items}\n onItemsChanged={(newItems, itemChangedReason) => {\n console.info('change with itemChangedReason:', itemChangedReason);\n setItems(newItems);\n }}\n TreeItemComponent={undefined}\n />\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -25,7 +25,7 @@ var typography_anchor_story_1 = require("./typography-anchor.story");
|
|
|
25
25
|
Object.defineProperty(exports, "TypographyAnchor", { enumerable: true, get: function () { return __importDefault(typography_anchor_story_1).default; } });
|
|
26
26
|
var typography_variants_story_1 = require("./typography-variants.story");
|
|
27
27
|
Object.defineProperty(exports, "TypographyVariants", { enumerable: true, get: function () { return __importDefault(typography_variants_story_1).default; } });
|
|
28
|
-
const export_stories_utils_1 = require("
|
|
28
|
+
const export_stories_utils_1 = require("../../_common/export-stories-utils");
|
|
29
29
|
const typography_anchor_story_raw_1 = __importDefault(require("./typography-anchor.story?raw"));
|
|
30
30
|
const typography_default_story_raw_1 = __importDefault(require("./typography-default.story?raw"));
|
|
31
31
|
const typography_variants_story_raw_1 = __importDefault(require("./typography-variants.story?raw"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/typography/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;AAEH,uEAA0E;AAAjE,8IAAA,OAAO,OAAqB;AACrC,qEAAwE;AAA/D,4IAAA,OAAO,OAAoB;AACpC,yEAA4E;AAAnE,gJAAA,OAAO,OAAsB;AAEtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/typography/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;AAEH,uEAA0E;AAAjE,8IAAA,OAAO,OAAqB;AACrC,qEAAwE;AAA/D,4IAAA,OAAO,OAAoB;AACpC,yEAA4E;AAAnE,gJAAA,OAAO,OAAsB;AAEtC,6EAAyE;AACzE,gGAAsE;AACtE,kGAAwE;AACxE,oGAA0E;AAE7D,QAAA,uBAAuB,GAAG,IAAA,0CAAmB,EACxD,sCAA0B,CAC3B,CAAC;AACW,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,qCAAyB,CAC1B,CAAC;AACW,QAAA,wBAAwB,GAAG,IAAA,0CAAmB,EACzD,uCAA2B,CAC5B,CAAC","sourcesContent":["/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n * This file is part of Neo4j.\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as TypographyDefault } from './typography-default.story';\nexport { default as TypographyAnchor } from './typography-anchor.story';\nexport { default as TypographyVariants } from './typography-variants.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport TypographyAnchorSourceRaw from './typography-anchor.story?raw';\nimport TypographyDefaultSourceRaw from './typography-default.story?raw';\nimport TypographyVariantsSourceRaw from './typography-variants.story?raw';\n\nexport const TypographyDefaultSource = removeLicenseHeader(\n TypographyDefaultSourceRaw,\n);\nexport const TypographyAnchorSource = removeLicenseHeader(\n TypographyAnchorSourceRaw,\n);\nexport const TypographyVariantsSource = removeLicenseHeader(\n TypographyVariantsSourceRaw,\n);\n"]}
|
|
@@ -34,7 +34,7 @@ var wizard_vertical_small_story_1 = require("./wizard-vertical-small.story");
|
|
|
34
34
|
Object.defineProperty(exports, "WizardVerticalSmall", { enumerable: true, get: function () { return __importDefault(wizard_vertical_small_story_1).default; } });
|
|
35
35
|
var wizard_error_state_story_1 = require("./wizard-error-state.story");
|
|
36
36
|
Object.defineProperty(exports, "WizardErrorState", { enumerable: true, get: function () { return __importDefault(wizard_error_state_story_1).default; } });
|
|
37
|
-
const export_stories_utils_1 = require("
|
|
37
|
+
const export_stories_utils_1 = require("../../_common/export-stories-utils");
|
|
38
38
|
const wizard_error_state_story_raw_1 = __importDefault(require("./wizard-error-state.story?raw"));
|
|
39
39
|
const wizard_horizontal_story_raw_1 = __importDefault(require("./wizard-horizontal.story?raw"));
|
|
40
40
|
const wizard_horizontal_small_story_raw_1 = __importDefault(require("./wizard-horizontal-small.story?raw"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wizard/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qEAAwE;AAA/D,4IAAA,OAAO,OAAoB;AACpC,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AACzC,6EAA+E;AAAtE,mJAAA,OAAO,OAAuB;AACvC,uEAAyE;AAAhE,6IAAA,OAAO,OAAoB;AAEpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wizard/stories/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;AAEH,qEAAwE;AAA/D,4IAAA,OAAO,OAAoB;AACpC,iEAAoE;AAA3D,wIAAA,OAAO,OAAkB;AAClC,iFAAmF;AAA1E,uJAAA,OAAO,OAAyB;AACzC,6EAA+E;AAAtE,mJAAA,OAAO,OAAuB;AACvC,uEAAyE;AAAhE,6IAAA,OAAO,OAAoB;AAEpC,6EAAyE;AACzE,kGAAuE;AACvE,gGAAsE;AACtE,4GAAiF;AACjF,4FAAkE;AAClE,wGAA6E;AAEhE,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,qCAAyB,CAC1B,CAAC;AAEW,QAAA,oBAAoB,GAAG,IAAA,0CAAmB,EACrD,mCAAuB,CACxB,CAAC;AAEW,QAAA,2BAA2B,GAAG,IAAA,0CAAmB,EAC5D,2CAA8B,CAC/B,CAAC;AAEW,QAAA,yBAAyB,GAAG,IAAA,0CAAmB,EAC1D,yCAA4B,CAC7B,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,0CAAmB,EACvD,sCAAyB,CAC1B,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as WizardHorizontal } from './wizard-horizontal.story';\nexport { default as WizardVertical } from './wizard-vertical.story';\nexport { default as WizardHorizontalSmall } from './wizard-horizontal-small.story';\nexport { default as WizardVerticalSmall } from './wizard-vertical-small.story';\nexport { default as WizardErrorState } from './wizard-error-state.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport WizardErrorStateSourceRaw from './wizard-error-state.story?raw';\nimport WizardHorizontalSourceRaw from './wizard-horizontal.story?raw';\nimport WizardHorizontalSmallSourceRaw from './wizard-horizontal-small.story?raw';\nimport WizardVerticalSourceRaw from './wizard-vertical.story?raw';\nimport WizardVerticalSmallSourceRaw from './wizard-vertical-small.story?raw';\n\nexport const WizardHorizontalSource = removeLicenseHeader(\n WizardHorizontalSourceRaw,\n);\n\nexport const WizardVerticalSource = removeLicenseHeader(\n WizardVerticalSourceRaw,\n);\n\nexport const WizardHorizontalSmallSource = removeLicenseHeader(\n WizardHorizontalSmallSourceRaw,\n);\n\nexport const WizardVerticalSmallSource = removeLicenseHeader(\n WizardVerticalSmallSourceRaw,\n);\n\nexport const WizardErrorStateSource = removeLicenseHeader(\n WizardErrorStateSourceRaw,\n);\n"]}
|
|
@@ -24,7 +24,7 @@ export { default as AccordionFull } from './accordion-full.story';
|
|
|
24
24
|
export { default as AccordionMultipleExpanded } from './accordion-multiple-expanded.story';
|
|
25
25
|
export { default as AccordionRightContent } from './accordion-right-content.story';
|
|
26
26
|
export { default as AccordionSingleExpanded } from './accordion-single-expanded.story';
|
|
27
|
-
import { removeLicenseHeader } from '
|
|
27
|
+
import { removeLicenseHeader } from '../../_common/export-stories-utils';
|
|
28
28
|
import AccordionCleanItemsSrcRaw from './accordion-clean-items-expanded.story?raw';
|
|
29
29
|
import AccordionDefaultSrcRaw from './accordion-default-expanded.story?raw';
|
|
30
30
|
import AccordionFullSrcRaw from './accordion-full.story?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/accordion/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEvF,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/accordion/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,yBAAyB,MAAM,4CAA4C,CAAC;AACnF,OAAO,sBAAsB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,mBAAmB,MAAM,4BAA4B,CAAC;AAC7D,OAAO,+BAA+B,MAAM,yCAAyC,CAAC;AACtF,OAAO,2BAA2B,MAAM,qCAAqC,CAAC;AAC9E,OAAO,6BAA6B,MAAM,uCAAuC,CAAC;AAElF,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CACvD,yBAAyB,CAC1B,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAC7D,+BAA+B,CAChC,CAAC;AACF,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CACzD,2BAA2B,CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAC3D,6BAA6B,CAC9B,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as AccordionCleanItems } from './accordion-clean-items-expanded.story';\nexport { default as AccordionDefault } from './accordion-default-expanded.story';\nexport { default as AccordionFull } from './accordion-full.story';\nexport { default as AccordionMultipleExpanded } from './accordion-multiple-expanded.story';\nexport { default as AccordionRightContent } from './accordion-right-content.story';\nexport { default as AccordionSingleExpanded } from './accordion-single-expanded.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport AccordionCleanItemsSrcRaw from './accordion-clean-items-expanded.story?raw';\nimport AccordionDefaultSrcRaw from './accordion-default-expanded.story?raw';\nimport AccordionFullSrcRaw from './accordion-full.story?raw';\nimport AccordionMultipleExpandedSrcRaw from './accordion-multiple-expanded.story?raw';\nimport AccordionRightContentSrcRaw from './accordion-right-content.story?raw';\nimport AccordionSingleExpandedSrcRaw from './accordion-single-expanded.story?raw';\n\nexport const AccordionCleanItemsSrc = removeLicenseHeader(\n AccordionCleanItemsSrcRaw,\n);\nexport const AccordionDefaultSrc = removeLicenseHeader(AccordionDefaultSrcRaw);\nexport const AccordionFullSrc = removeLicenseHeader(AccordionFullSrcRaw);\n\nexport const AccordionMultipleExpandedSrc = removeLicenseHeader(\n AccordionMultipleExpandedSrcRaw,\n);\nexport const AccordionRightContentSrc = removeLicenseHeader(\n AccordionRightContentSrcRaw,\n);\n\nexport const AccordionSingleExpandedSrc = removeLicenseHeader(\n AccordionSingleExpandedSrcRaw,\n);\n"]}
|
|
@@ -22,7 +22,7 @@ export { default as CodePreviewLoading } from './code-preview-loading.story';
|
|
|
22
22
|
export { default as CodePreviewRead } from './code-preview-read.story';
|
|
23
23
|
export { default as CodePreviewWrite } from './code-preview-write.story';
|
|
24
24
|
export { default as CodePreviewLanguages } from './code-preview-languages.story';
|
|
25
|
-
import { removeLicenseHeader } from '
|
|
25
|
+
import { removeLicenseHeader } from '../../../_common/export-stories-utils';
|
|
26
26
|
import CodePreviewLanguagesSourceRaw from './code-preview-languages.story?raw';
|
|
27
27
|
import CodePreviewLoadingSourceRaw from './code-preview-loading.story?raw';
|
|
28
28
|
import CodePreviewReadSourceRaw from './code-preview-read.story?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/code-preview/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEjF,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/code-preview/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,6BAA6B,MAAM,oCAAoC,CAAC;AAC/E,OAAO,2BAA2B,MAAM,kCAAkC,CAAC;AAC3E,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AACrE,OAAO,yBAAyB,MAAM,gCAAgC,CAAC;AAEvE,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CACzD,2BAA2B,CAC5B,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,CAAC;AACF,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CACvD,yBAAyB,CAC1B,CAAC;AACF,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAC3D,6BAA6B,CAC9B,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as CodePreviewLoading } from './code-preview-loading.story';\nexport { default as CodePreviewRead } from './code-preview-read.story';\nexport { default as CodePreviewWrite } from './code-preview-write.story';\nexport { default as CodePreviewLanguages } from './code-preview-languages.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport CodePreviewLanguagesSourceRaw from './code-preview-languages.story?raw';\nimport CodePreviewLoadingSourceRaw from './code-preview-loading.story?raw';\nimport CodePreviewReadSourceRaw from './code-preview-read.story?raw';\nimport CodePreviewWriteSourceRaw from './code-preview-write.story?raw';\n\nexport const CodePreviewLoadingSource = removeLicenseHeader(\n CodePreviewLoadingSourceRaw,\n);\nexport const CodePreviewReadSource = removeLicenseHeader(\n CodePreviewReadSourceRaw,\n);\nexport const CodePreviewWriteSource = removeLicenseHeader(\n CodePreviewWriteSourceRaw,\n);\nexport const CodePreviewLanguagesSource = removeLicenseHeader(\n CodePreviewLanguagesSourceRaw,\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileTag.js","sourceRoot":"","sources":["../../../../src/ai/file-tag/FileTag.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"FileTag.js","sourceRoot":"","sources":["../../../../src/ai/file-tag/FileTag.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,eAAe,EAAE,cA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EACjE,eAAM,SAAS,EAAC,8BAA8B,YAC3C,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,GACnB,IACH,EACL,WAAW,IAAI,CACd,KAAC,eAAe,IACd,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,IAAI,EACjB,cAAc,EAAE;gCACd,YAAY,EAAE,UAAU,IAAI,EAAE;6BAC/B,EACD,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,wBAAwB,YAElC,KAAC,gBAAgB,KAAG,GACJ,CACnB,KACS,GACI,EAClB,KAAC,OAAO,CAAC,OAAO,cAAE,IAAI,GAAmB,IACjC,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { CleanIconButton, LoadingSpinner, Tooltip } from '@neo4j-ndl/react';\nimport { XMarkIconOutline } from '@neo4j-ndl/react/icons';\nimport classNames from 'classnames';\n\nimport { type CommonProps } from '../../_common/types';\n\ntype FileTagProps = {\n /** The icon that represents the file type */\n icon: React.ReactNode;\n /** The name of the file */\n fileName: string;\n /** The type of the file, e.g. 'pdf', 'docx', 'txt', etc. */\n fileType: string;\n /** Callback function triggered either when the file tag is clicked, or when the remove button is clicked (if isRemovable is true) */\n onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n /** Whether the file tag is removable */\n isRemovable?: boolean;\n /** Whether the file tag is loading */\n isLoading?: boolean;\n};\n\n/**\n * The component is used to display a file in a chat, or in a prompt.\n * It can be removable and it can be loading.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst FileTag = ({\n onClick,\n isRemovable = false,\n fileName,\n fileType,\n icon,\n className,\n style,\n htmlAttributes,\n ref,\n isLoading = false,\n ...restProps\n}: CommonProps<React.ElementType, FileTagProps>) => {\n const Component = isRemovable !== true ? 'button' : 'div';\n const classes = classNames('ndl-ai-file-tag', className);\n\n const file = `${fileName}.${fileType}`;\n\n return (\n <Tooltip\n type=\"simple\"\n placement=\"bottom\"\n hoverDelay={{ close: 0, open: 500 }}\n >\n <Tooltip.Trigger hasButtonWrapper>\n <Component\n ref={ref}\n className={classes}\n style={style}\n {...(isRemovable ? {} : { onClick })}\n // what is read by screen readers here?\n {...restProps}\n {...htmlAttributes}\n >\n <div className=\"ndl-ai-file-tag-leading\">\n {isLoading ? <LoadingSpinner size=\"medium\" /> : icon}\n </div>\n <div className=\"ndl-ai-file-tag-content\">\n <span className=\"ndl-ai-file-tag-content-title\">{fileName}</span>\n <span className=\"ndl-ai-file-tag-content-type\">\n {fileType?.toUpperCase()}\n </span>\n </div>\n {isRemovable && (\n <CleanIconButton\n onClick={onClick}\n description={null}\n htmlAttributes={{\n 'aria-label': `Remove ${file}`,\n }}\n size=\"small\"\n className=\"ndl-ai-file-tag-remove\"\n >\n <XMarkIconOutline />\n </CleanIconButton>\n )}\n </Component>\n </Tooltip.Trigger>\n <Tooltip.Content>{file}</Tooltip.Content>\n </Tooltip>\n );\n};\n\nexport { FileTag };\n"]}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
export { default as FileTagLoading } from './file-tag-loading.story';
|
|
22
22
|
export { default as FileTagChat } from './file-tag-chat.story';
|
|
23
23
|
export { default as FileTagPrompt } from './file-tag-prompt.story';
|
|
24
|
-
import { removeLicenseHeader } from '
|
|
24
|
+
import { removeLicenseHeader } from '../../../_common/export-stories-utils';
|
|
25
25
|
import FileTagChatSrcRaw from './file-tag-chat.story?raw';
|
|
26
26
|
import FileTagLoadingSrcRaw from './file-tag-loading.story?raw';
|
|
27
27
|
import FileTagPromptSrcRaw from './file-tag-prompt.story?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/file-tag/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/file-tag/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAC1D,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,mBAAmB,MAAM,6BAA6B,CAAC;AAE9D,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as FileTagLoading } from './file-tag-loading.story';\nexport { default as FileTagChat } from './file-tag-chat.story';\nexport { default as FileTagPrompt } from './file-tag-prompt.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport FileTagChatSrcRaw from './file-tag-chat.story?raw';\nimport FileTagLoadingSrcRaw from './file-tag-loading.story?raw';\nimport FileTagPromptSrcRaw from './file-tag-prompt.story?raw';\n\nexport const FileTagLoadingSrc = removeLicenseHeader(FileTagLoadingSrcRaw);\nexport const FileTagChatSrc = removeLicenseHeader(FileTagChatSrcRaw);\nexport const FileTagPromptSrc = removeLicenseHeader(FileTagPromptSrcRaw);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTag.js","sourceRoot":"","sources":["../../../../src/ai/image-tag/ImageTag.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageTag.js","sourceRoot":"","sources":["../../../../src/ai/image-tag/ImageTag.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC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AI,EAAC,OAAO,EACZ,SAAS,EAAC,yBAAyB,YAEnC,KAAC,gBAAgB,KAAG,GACJ,IACjB,CACJ,EACA,SAAS,IAAI,CACZ,cAAK,SAAS,EAAC,kCAAkC,YAC/C,KAAC,cAAc,IAAC,IAAI,EAAC,QAAQ,GAAG,GAC5B,CACP,KACS,GACI,EAClB,KAAC,OAAO,CAAC,OAAO,cAAE,KAAK,GAAmB,IAClC,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { CleanIconButton, LoadingSpinner, Tooltip } from '@neo4j-ndl/react';\nimport { XMarkIconOutline } from '@neo4j-ndl/react/icons';\nimport classNames from 'classnames';\n\nimport { type CommonProps } from '../../_common/types';\n\ntype ImageTagProps = {\n /** The source of the image */\n src: string;\n /** The alt text of the image */\n alt: string;\n /** The name of the image */\n fileName: string;\n /** The type of the image, e.g. 'jpg', 'png', 'gif', etc. */\n fileType: string;\n /** Callback function triggered either when the image tag is clicked, or when the remove button is clicked (if isRemovable is true) */\n onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n /** Whether the image tag is removable */\n isRemovable?: boolean;\n /** Whether the image tag is loading */\n isLoading?: boolean;\n};\n\n/**\n * The component is used to display an image in a chat, or in a prompt.\n * It can be removable and it can be loading.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst ImageTag = ({\n src,\n fileName,\n fileType,\n alt,\n onClick,\n isRemovable = false,\n isLoading = false,\n ref,\n className,\n style,\n htmlAttributes,\n ...restProps\n}: CommonProps<React.ElementType, ImageTagProps>) => {\n const Component = isRemovable !== true ? 'button' : 'div';\n const classes = classNames('ndl-ai-image-tag', className);\n\n const image = `${fileName}.${fileType}`;\n\n return (\n <Tooltip\n type=\"simple\"\n placement=\"bottom\"\n hoverDelay={{ close: 0, open: 500 }}\n >\n <Tooltip.Trigger hasButtonWrapper>\n <Component\n ref={ref}\n className={classes}\n style={style}\n {...(isRemovable ? {} : { onClick })}\n // what is read by screen readers here?\n {...restProps}\n {...htmlAttributes}\n >\n <img src={src} alt={alt} />\n {isRemovable && (\n <>\n <div className=\"ndl-ai-image-tag-remove-wrapper\" />\n <CleanIconButton\n onClick={onClick}\n description={null}\n htmlAttributes={{\n 'aria-label': `Remove ${image}`,\n }}\n size=\"small\"\n className=\"ndl-ai-image-tag-remove\"\n >\n <XMarkIconOutline />\n </CleanIconButton>\n </>\n )}\n {isLoading && (\n <div className=\"ndl-ai-image-tag-loading-overlay\">\n <LoadingSpinner size=\"medium\" />\n </div>\n )}\n </Component>\n </Tooltip.Trigger>\n <Tooltip.Content>{image}</Tooltip.Content>\n </Tooltip>\n );\n};\n\nexport { ImageTag };\n"]}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
export { default as ImageTagLoading } from './image-tag-loading.story';
|
|
22
22
|
export { default as ImageTagChat } from './image-tag-chat.story';
|
|
23
23
|
export { default as ImageTagPrompt } from './image-tag-prompt.story';
|
|
24
|
-
import { removeLicenseHeader } from '
|
|
24
|
+
import { removeLicenseHeader } from '../../../_common/export-stories-utils';
|
|
25
25
|
import ImageTagChatSrcRaw from './image-tag-chat.story?raw';
|
|
26
26
|
import ImageTagLoadingSrcRaw from './image-tag-loading.story?raw';
|
|
27
27
|
import ImageTagPromptSrcRaw from './image-tag-prompt.story?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/image-tag/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/image-tag/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,kBAAkB,MAAM,4BAA4B,CAAC;AAC5D,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAEhE,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,eAAe,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as ImageTagLoading } from './image-tag-loading.story';\nexport { default as ImageTagChat } from './image-tag-chat.story';\nexport { default as ImageTagPrompt } from './image-tag-prompt.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport ImageTagChatSrcRaw from './image-tag-chat.story?raw';\nimport ImageTagLoadingSrcRaw from './image-tag-loading.story?raw';\nimport ImageTagPromptSrcRaw from './image-tag-prompt.story?raw';\n\nexport const ImageTagLoadingSrc = removeLicenseHeader(ImageTagLoadingSrcRaw);\nexport const ImageTagChatSrc = removeLicenseHeader(ImageTagChatSrcRaw);\nexport const ImageTagPromptSrc = removeLicenseHeader(ImageTagPromptSrcRaw);\n"]}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
13
|
/**
|
|
2
14
|
*
|
|
3
15
|
* Copyright (c) "Neo4j"
|
|
@@ -18,19 +30,6 @@
|
|
|
18
30
|
* You should have received a copy of the GNU General Public License
|
|
19
31
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
32
|
*/
|
|
21
|
-
|
|
22
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
23
|
-
var t = {};
|
|
24
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
25
|
-
t[p] = s[p];
|
|
26
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
27
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
28
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
29
|
-
t[p[i]] = s[p[i]];
|
|
30
|
-
}
|
|
31
|
-
return t;
|
|
32
|
-
};
|
|
33
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
34
33
|
import classNames from 'classnames';
|
|
35
34
|
/**
|
|
36
35
|
* The component is a button that is meant to open a menu of files when clicked.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoreFiles.js","sourceRoot":"","sources":["../../../../src/ai/more-files/MoreFiles.tsx"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MoreFiles.js","sourceRoot":"","sources":["../../../../src/ai/more-files/MoreFiles.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,UAAU,MAAM,YAAY,CAAC;AAapC;;;;;GAKG;AACH,MAAM,kBAAkB,GAAG,CAAC,EASY,EAAE,EAAE;QAThB,EAC1B,KAAK,EACL,OAAO,EACP,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,EACH,QAAQ,OAE8B,EADnC,SAAS,cARc,+EAS3B,CADa;IAEZ,MAAM,OAAO,GAAG,UAAU,CAAC,mBAAmB,EAAE,SAAS,EAAE;QACzD,YAAY,EAAE,QAAQ;KACvB,CAAC,CAAC;IAEH,OAAO,CACL,gCACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,gBACA,GAAG,KAAK,aAAa,mBAClB,QAAQ,IACnB,SAAS,EACT,cAAc,oBAEhB,KAAK,KACA,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport classNames from 'classnames';\n\nimport type { CommonProps } from '../../_common/types';\n\ntype MoreFilesProps = {\n /** The number of files to show */\n count: number;\n /** Callback function triggered when the more files button is clicked */\n onClick?: () => void;\n /** Whether the more files button is active. Should be true when it opens the menu of files.*/\n isActive?: boolean;\n};\n\n/**\n * The component is a button that is meant to open a menu of files when clicked.\n * It should be used in a chat when you have more files attached to the message than should be shown at once.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst MoreFilesComponent = ({\n count,\n onClick,\n className,\n style,\n htmlAttributes,\n ref,\n isActive,\n ...restProps\n}: CommonProps<'button', MoreFilesProps>) => {\n const classes = classNames('ndl-ai-more-files', className, {\n 'ndl-active': isActive,\n });\n\n return (\n <button\n ref={ref}\n type=\"button\"\n onClick={onClick}\n className={classes}\n style={style}\n aria-label={`${count} more files`}\n aria-expanded={isActive}\n {...restProps}\n {...htmlAttributes}\n >\n +{count}\n </button>\n );\n};\n\nexport { MoreFilesComponent as MoreFiles };\n"]}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
export { default as MoreFilesDefault } from './more-files.story';
|
|
22
|
-
import { removeLicenseHeader } from '
|
|
22
|
+
import { removeLicenseHeader } from '../../../_common/export-stories-utils';
|
|
23
23
|
import MoreFilesDefaultSrcRaw from './more-files.story?raw';
|
|
24
24
|
export const MoreFilesDefaultSrc = removeLicenseHeader(MoreFilesDefaultSrcRaw);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/more-files/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/more-files/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,sBAAsB,MAAM,wBAAwB,CAAC;AAE5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,sBAAsB,CAAC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as MoreFilesDefault } from './more-files.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport MoreFilesDefaultSrcRaw from './more-files.story?raw';\n\nexport const MoreFilesDefaultSrc = removeLicenseHeader(MoreFilesDefaultSrcRaw);\n"]}
|