@neo4j-ndl/react 4.2.6 → 4.2.7
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/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/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/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":"Response.js","sourceRoot":"","sources":["../../../../src/ai/response/Response.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAqB,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAS9C;;;;;GAKG;AACH,MAAM,QAAQ,GAAG,IAAI,CACnB,CAAC,EAQmC,EAAE,EAAE;QARvC,EACC,SAAS,EACT,QAAQ,EACR,WAAW,GAAG,KAAK,EACnB,GAAG,EACH,KAAK,EACL,cAAc,OAEoB,EAD/B,SAAS,cAPb,0EAQA,CADa;IAEZ,sFAAsF;IACtF,2DAA2D;IAC3D,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACrC,WAAW,CAAC,OAAO,GAAG,QAAQ,CAAC;IAE/B,MAAM,UAAU,GACd,OAAO,CACL,GAAG,EAAE,CAAC,CAAC;QACL,EAAE,EAAE,CAAC,EAAiC,EAAE,EAAE;gBAArC,EAAE,QAAQ,EAAE,SAAS,OAAY,EAAP,KAAK,cAA/B,yBAAiC,CAAF;YAAO,OAAA,CACzC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wE,EACxE,SAAS,CACV,IACG,SAAS,EACT,cAAc,cAElB,KAAC,UAAU,IACT,WAAW,EAAE,WAAW,EACxB,uBAAuB,EAAE,IAAI,EAC7B,UAAU,EAAE,UAAU,YAErB,QAAQ,GACE,IACT,CACP,CAAC;AACJ,CAAC,EACD,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ,CACpE,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,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 { Code, TextLink, Typography } from '@neo4j-ndl/react';\nimport { type CommonProps } from '@neo4j-ndl/react/_common/types';\nimport classNames from 'classnames';\nimport { memo, useMemo, useRef } from 'react';\nimport { Streamdown } from 'streamdown';\n\nimport { type LanguageProp, Languages } from '../../code-block/code-languages';\nimport { CodePreview } from '../code-preview';\n\ntype ResponseProps = {\n /** The response from the AI */\n children: string;\n /** Whether the response is animating */\n isAnimating?: React.ComponentProps<typeof Streamdown>['isAnimating'];\n};\n\n/**\n * The component is used to display the response from an LLM.\n * It handles markdown rendering and streaming.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst Response = memo(\n ({\n className,\n children,\n isAnimating = false,\n ref,\n style,\n htmlAttributes,\n ...restProps\n }: CommonProps<'div', ResponseProps>) => {\n // Use a ref to store the current markdown content so we can check for unclosed fences\n // without recreating the components object on every render\n const childrenRef = useRef(children);\n childrenRef.current = children;\n\n const components: React.ComponentProps<typeof Streamdown>['components'] =\n useMemo(\n () => ({\n ol: ({ children, className, ...props }) => (\n <ol className={className} {...props}>\n {children}\n </ol>\n ),\n ul: ({ children, className, ...props }) => (\n <ul className={classNames(className)} {...props}>\n {children}\n </ul>\n ),\n li: ({ children, className, ...props }) => (\n <li className={className} {...props}>\n {children}\n </li>\n ),\n hr: ({ className, ...props }) => (\n <hr className={classNames(className)} {...props} />\n ),\n strong: ({ children, className, style, ...props }) => (\n <Typography\n as=\"strong\"\n variant=\"body-medium\"\n className={className}\n style={{ ...style, fontWeight: 'bold' }}\n {...props}\n >\n {children}\n </Typography>\n ),\n em: ({ children, className, style, ...props }) => (\n <Typography\n as=\"em\"\n variant=\"body-medium\"\n className={className}\n style={{ ...style, fontStyle: 'italic' }}\n {...props}\n >\n {children}\n </Typography>\n ),\n a: ({ children, className, href, ...props }) => (\n <TextLink\n type=\"internal-underline\"\n className={className}\n href={href}\n htmlAttributes={props}\n >\n {children}\n </TextLink>\n ),\n h1: ({ children, className, ...props }) => (\n <Typography\n as=\"h1\"\n variant=\"display\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h2: ({ children, className, ...props }) => (\n <Typography\n as=\"h2\"\n variant=\"title-1\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h3: ({ children, className, ...props }) => (\n <Typography\n as=\"h3\"\n variant=\"title-2\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h4: ({ children, className, ...props }) => (\n <Typography\n as=\"h4\"\n variant=\"title-3\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h5: ({ children, className, ...props }) => (\n <Typography\n as=\"h5\"\n variant=\"title-4\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h6: ({ children, className, ...props }) => (\n <Typography\n as=\"h6\"\n variant=\"subheading-large\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n table: ({ children, className, ...props }) => (\n <div className=\"my-4 overflow-x-auto\">\n <table\n className={classNames(\n 'w-full border-collapse border border-border',\n className,\n )}\n {...props}\n >\n {children}\n </table>\n </div>\n ),\n thead: ({ children, className, ...props }) => (\n <thead className={classNames('bg-muted/50', className)} {...props}>\n {children}\n </thead>\n ),\n tbody: ({ children, className, ...props }) => (\n <tbody\n className={classNames('divide-y divide-border', className)}\n {...props}\n >\n {children}\n </tbody>\n ),\n tr: ({ children, className, ...props }) => (\n <tr\n className={classNames('border-border border-b', className)}\n {...props}\n >\n {children}\n </tr>\n ),\n th: ({ children, className, ...props }) => (\n <th\n className={classNames(\n 'px-4 py-2 text-left font-semibold text-sm',\n className,\n )}\n {...props}\n >\n {children}\n </th>\n ),\n td: ({ children, className, ...props }) => (\n <td\n className={classNames('px-4 py-2 text-sm', className)}\n {...props}\n >\n {children}\n </td>\n ),\n blockquote: ({ children, className, ...props }) => (\n <blockquote className={classNames(className)} {...props}>\n {children}\n </blockquote>\n ),\n code: ({\n node,\n className,\n key,\n children: codeChildren,\n ...props\n }) => {\n const isInline =\n node?.position?.start.line === node?.position?.end.line;\n let language: LanguageProp | 'text' = 'javascript';\n if (typeof node?.properties?.className === 'string') {\n const rawLanguage = node.properties.className.replace(\n 'language-',\n '',\n );\n language = (Languages as readonly string[]).includes(rawLanguage)\n ? (rawLanguage as LanguageProp)\n : 'text';\n }\n if (isInline) {\n return (\n <Code\n isRunnable={false}\n className={className}\n htmlAttributes={props}\n >\n {codeChildren}\n </Code>\n );\n }\n if (typeof codeChildren === 'string') {\n // Check if code fences are balanced in the markdown\n // If there are an odd number of fences, it means there's an unclosed code block\n const fenceMatches = childrenRef.current.match(/```/g);\n const fenceCount = fenceMatches ? fenceMatches.length : 0;\n const hasUnclosedFence = fenceCount % 2 !== 0;\n\n // Show loading state when there's an unclosed fence (code block is streaming)\n const isCodeBlockLoading = hasUnclosedFence;\n return (\n <CodePreview\n key={key}\n code={codeChildren}\n isLoading={isCodeBlockLoading}\n language={language}\n className={className}\n htmlAttributes={{\n ...props,\n }}\n />\n );\n } else {\n return <code className={className}>{codeChildren}</code>;\n }\n },\n pre: ({ className, children }) => {\n return <pre className={classNames(className)}>{children}</pre>;\n },\n p: ({ children, className, ...props }) => (\n <Typography\n as=\"p\"\n variant=\"body-medium\"\n className={classNames(className)}\n {...props}\n >\n {children}\n </Typography>\n ),\n img: ({ className, src, alt, ...props }) => (\n <img\n className={classNames(className)}\n src={src}\n alt={alt}\n {...props}\n />\n ),\n }),\n [],\n );\n\n return (\n <div\n ref={ref}\n style={style}\n className={classNames(\n 'ndl-ai-response size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0',\n className,\n )}\n {...restProps}\n {...htmlAttributes}\n >\n <Streamdown\n isAnimating={isAnimating}\n parseIncompleteMarkdown={true}\n components={components}\n >\n {children}\n </Streamdown>\n </div>\n );\n },\n (prevProps, nextProps) => prevProps.children === nextProps.children,\n);\n\nResponse.displayName = 'Response';\n\nexport { Response };\n"]}
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/ai/response/Response.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC,OAAO,EAAqB,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAS9C;;;;;GAKG;AACH,MAAM,QAAQ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,EACrB,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,IAC5B,KAAK,cAER,QAAQ,IACE,CACd,CAAA;SAAA;QACD,GAAG,EAAE,CAAC,EAAiC,EAAE,EAAE;gBAArC,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,OAAY,EAAP,KAAK,cAA/B,2BAAiC,CAAF;YAAO,OAAA,CAC1C,4BACE,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,EAChC,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,IACJ,KAAK,EACT,CACH,CAAA;SAAA;KACF,CAAC,EACF,EAAE,CACH,CAAC;IAEJ,OAAO,CACL,4BACE,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,UAAU,CACnB,wEAAwE,EACxE,SAAS,CACV,IACG,SAAS,EACT,cAAc,cAElB,KAAC,UAAU,IACT,WAAW,EAAE,WAAW,EACxB,uBAAuB,EAAE,IAAI,EAC7B,UAAU,EAAE,UAAU,YAErB,QAAQ,GACE,IACT,CACP,CAAC;AACJ,CAAC,EACD,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ,CACpE,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,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 { Code, TextLink, Typography } from '@neo4j-ndl/react';\nimport classNames from 'classnames';\nimport { memo, useMemo, useRef } from 'react';\nimport { Streamdown } from 'streamdown';\n\nimport { type CommonProps } from '../../_common/types';\nimport { type LanguageProp, Languages } from '../../code-block/code-languages';\nimport { CodePreview } from '../code-preview';\n\ntype ResponseProps = {\n /** The response from the AI */\n children: string;\n /** Whether the response is animating */\n isAnimating?: React.ComponentProps<typeof Streamdown>['isAnimating'];\n};\n\n/**\n * The component is used to display the response from an LLM.\n * It handles markdown rendering and streaming.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst Response = memo(\n ({\n className,\n children,\n isAnimating = false,\n ref,\n style,\n htmlAttributes,\n ...restProps\n }: CommonProps<'div', ResponseProps>) => {\n // Use a ref to store the current markdown content so we can check for unclosed fences\n // without recreating the components object on every render\n const childrenRef = useRef(children);\n childrenRef.current = children;\n\n const components: React.ComponentProps<typeof Streamdown>['components'] =\n useMemo(\n () => ({\n ol: ({ children, className, ...props }) => (\n <ol className={className} {...props}>\n {children}\n </ol>\n ),\n ul: ({ children, className, ...props }) => (\n <ul className={classNames(className)} {...props}>\n {children}\n </ul>\n ),\n li: ({ children, className, ...props }) => (\n <li className={className} {...props}>\n {children}\n </li>\n ),\n hr: ({ className, ...props }) => (\n <hr className={classNames(className)} {...props} />\n ),\n strong: ({ children, className, style, ...props }) => (\n <Typography\n as=\"strong\"\n variant=\"body-medium\"\n className={className}\n style={{ ...style, fontWeight: 'bold' }}\n {...props}\n >\n {children}\n </Typography>\n ),\n em: ({ children, className, style, ...props }) => (\n <Typography\n as=\"em\"\n variant=\"body-medium\"\n className={className}\n style={{ ...style, fontStyle: 'italic' }}\n {...props}\n >\n {children}\n </Typography>\n ),\n a: ({ children, className, href, ...props }) => (\n <TextLink\n type=\"internal-underline\"\n className={className}\n href={href}\n htmlAttributes={props}\n >\n {children}\n </TextLink>\n ),\n h1: ({ children, className, ...props }) => (\n <Typography\n as=\"h1\"\n variant=\"display\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h2: ({ children, className, ...props }) => (\n <Typography\n as=\"h2\"\n variant=\"title-1\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h3: ({ children, className, ...props }) => (\n <Typography\n as=\"h3\"\n variant=\"title-2\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h4: ({ children, className, ...props }) => (\n <Typography\n as=\"h4\"\n variant=\"title-3\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h5: ({ children, className, ...props }) => (\n <Typography\n as=\"h5\"\n variant=\"title-4\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n h6: ({ children, className, ...props }) => (\n <Typography\n as=\"h6\"\n variant=\"subheading-large\"\n className={className}\n htmlAttributes={{ ...props }}\n >\n {children}\n </Typography>\n ),\n table: ({ children, className, ...props }) => (\n <div className=\"my-4 overflow-x-auto\">\n <table\n className={classNames(\n 'w-full border-collapse border border-border',\n className,\n )}\n {...props}\n >\n {children}\n </table>\n </div>\n ),\n thead: ({ children, className, ...props }) => (\n <thead className={classNames('bg-muted/50', className)} {...props}>\n {children}\n </thead>\n ),\n tbody: ({ children, className, ...props }) => (\n <tbody\n className={classNames('divide-y divide-border', className)}\n {...props}\n >\n {children}\n </tbody>\n ),\n tr: ({ children, className, ...props }) => (\n <tr\n className={classNames('border-border border-b', className)}\n {...props}\n >\n {children}\n </tr>\n ),\n th: ({ children, className, ...props }) => (\n <th\n className={classNames(\n 'px-4 py-2 text-left font-semibold text-sm',\n className,\n )}\n {...props}\n >\n {children}\n </th>\n ),\n td: ({ children, className, ...props }) => (\n <td\n className={classNames('px-4 py-2 text-sm', className)}\n {...props}\n >\n {children}\n </td>\n ),\n blockquote: ({ children, className, ...props }) => (\n <blockquote className={classNames(className)} {...props}>\n {children}\n </blockquote>\n ),\n code: ({\n node,\n className,\n key,\n children: codeChildren,\n ...props\n }) => {\n const isInline =\n node?.position?.start.line === node?.position?.end.line;\n let language: LanguageProp | 'text' = 'javascript';\n if (typeof node?.properties?.className === 'string') {\n const rawLanguage = node.properties.className.replace(\n 'language-',\n '',\n );\n language = (Languages as readonly string[]).includes(rawLanguage)\n ? (rawLanguage as LanguageProp)\n : 'text';\n }\n if (isInline) {\n return (\n <Code\n isRunnable={false}\n className={className}\n htmlAttributes={props}\n >\n {codeChildren}\n </Code>\n );\n }\n if (typeof codeChildren === 'string') {\n // Check if code fences are balanced in the markdown\n // If there are an odd number of fences, it means there's an unclosed code block\n const fenceMatches = childrenRef.current.match(/```/g);\n const fenceCount = fenceMatches ? fenceMatches.length : 0;\n const hasUnclosedFence = fenceCount % 2 !== 0;\n\n // Show loading state when there's an unclosed fence (code block is streaming)\n const isCodeBlockLoading = hasUnclosedFence;\n return (\n <CodePreview\n key={key}\n code={codeChildren}\n isLoading={isCodeBlockLoading}\n language={language}\n className={className}\n htmlAttributes={{\n ...props,\n }}\n />\n );\n } else {\n return <code className={className}>{codeChildren}</code>;\n }\n },\n pre: ({ className, children }) => {\n return <pre className={classNames(className)}>{children}</pre>;\n },\n p: ({ children, className, ...props }) => (\n <Typography\n as=\"p\"\n variant=\"body-medium\"\n className={classNames(className)}\n {...props}\n >\n {children}\n </Typography>\n ),\n img: ({ className, src, alt, ...props }) => (\n <img\n className={classNames(className)}\n src={src}\n alt={alt}\n {...props}\n />\n ),\n }),\n [],\n );\n\n return (\n <div\n ref={ref}\n style={style}\n className={classNames(\n 'ndl-ai-response size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0',\n className,\n )}\n {...restProps}\n {...htmlAttributes}\n >\n <Streamdown\n isAnimating={isAnimating}\n parseIncompleteMarkdown={true}\n components={components}\n >\n {children}\n </Streamdown>\n </div>\n );\n },\n (prevProps, nextProps) => prevProps.children === nextProps.children,\n);\n\nResponse.displayName = 'Response';\n\nexport { Response };\n"]}
|
|
@@ -25,7 +25,7 @@ export { default as ResponseCodeExamples } from './response-code-examples.story'
|
|
|
25
25
|
export { default as ResponseHeadings } from './response-headings.story';
|
|
26
26
|
export { default as ResponseLists } from './response-lists.story';
|
|
27
27
|
export { default as ResponseFullExample } from './response-full-example.story';
|
|
28
|
-
import { removeLicenseHeader } from '
|
|
28
|
+
import { removeLicenseHeader } from '../../../_common/export-stories-utils';
|
|
29
29
|
import ResponseAllComponentsSourceRaw from './response-all-components.story?raw';
|
|
30
30
|
import ResponseCodeExamplesSourceRaw from './response-code-examples.story?raw';
|
|
31
31
|
import ResponseDefaultSourceRaw from './response-default.story?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MA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\"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 ResponseDefault } from './response-default.story';\nexport { default as ResponseStreaming } from './response-streaming.story';\nexport { default as ResponseAllComponents } from './response-all-components.story';\nexport { default as ResponseCodeExamples } from './response-code-examples.story';\nexport { default as ResponseHeadings } from './response-headings.story';\nexport { default as ResponseLists } from './response-lists.story';\nexport { default as ResponseFullExample } from './response-full-example.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport ResponseAllComponentsSourceRaw from './response-all-components.story?raw';\nimport ResponseCodeExamplesSourceRaw from './response-code-examples.story?raw';\nimport ResponseDefaultSourceRaw from './response-default.story?raw';\nimport ResponseFullExampleSourceRaw from './response-full-example.story?raw';\nimport ResponseHeadingsSourceRaw from './response-headings.story?raw';\nimport ResponseListsSourceRaw from './response-lists.story?raw';\nimport ResponseStreamingSourceRaw from './response-streaming.story?raw';\n\nexport const ResponseDefaultSource = removeLicenseHeader(\n ResponseDefaultSourceRaw,\n);\nexport const ResponseStreamingSource = removeLicenseHeader(\n ResponseStreamingSourceRaw,\n);\nexport const ResponseAllComponentsSource = removeLicenseHeader(\n ResponseAllComponentsSourceRaw,\n);\nexport const ResponseCodeExamplesSource = removeLicenseHeader(\n ResponseCodeExamplesSourceRaw,\n);\nexport const ResponseHeadingsSource = removeLicenseHeader(\n ResponseHeadingsSourceRaw,\n);\nexport const ResponseListsSource = removeLicenseHeader(ResponseListsSourceRaw);\nexport const ResponseFullExampleSource = removeLicenseHeader(\n ResponseFullExampleSourceRaw,\n);\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 { jsx as _jsx, 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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
34
33
|
import classNames from 'classnames';
|
|
35
34
|
/**
|
|
36
35
|
* The component is used to display a suggestion in a chat, or in a prompt.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Suggestion.js","sourceRoot":"","sources":["../../../../src/ai/suggestion/Suggestion.tsx"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Suggestion.js","sourceRoot":"","sources":["../../../../src/ai/suggestion/Suggestion.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,UAAU,MAAM,YAAY,CAAC;AAiBpC;;;;;GAKG;AACH,MAAM,UAAU,GAAG,CAAC,EAWqB,EAAE,EAAE;QAXzB,EAClB,QAAQ,EACR,aAAa,EACb,SAAS,EACT,OAAO,EACP,IAAI,GAAG,OAAO,EACd,GAAG,EACH,SAAS,EACT,KAAK,EACL,cAAc,OAEyB,EADpC,SAAS,cAVM,4GAWnB,CADa;IAEZ,MAAM,OAAO,GAAG,UAAU,CAAC,mBAAmB,EAAE,SAAS,EAAE;QACzD,2BAA2B,EAAE,SAAS;QACtC,cAAc,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,QAAQ;QACxC,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,WAAW,EAAE,IAAI,KAAK,OAAO;KAC9B,CAAC,CAAC;IAEH,OAAO,CACL,+BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,IACZ,SAAS,EACT,cAAc,cAElB,eAAK,SAAS,EAAC,yBAAyB,aACrC,OAAO,CAAC,aAAa,CAAC,IAAI,CACzB,cAAK,SAAS,EAAC,2BAA2B,YAAE,aAAa,GAAO,CACjE,EACA,QAAQ,IACL,IACC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,UAAU,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 SuggestionProps = {\n /** The content of the suggestion */\n children?: React.ReactNode;\n /** The visual to display before the content. Should be an icon. */\n leadingVisual?: React.ReactNode;\n /** Whether the suggestion is primary. Renders an animated border. */\n isPrimary?: boolean;\n /** Callback function triggered when the suggestion is clicked */\n onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n /** The size of the suggestion */\n size?: 'small' | 'large';\n};\n\n/**\n * The component is used to display a suggestion in a chat, or in a prompt.\n * It can be primary, which animates its border.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst Suggestion = ({\n children,\n leadingVisual,\n isPrimary,\n onClick,\n size = 'small',\n ref,\n className,\n style,\n htmlAttributes,\n ...restProps\n}: CommonProps<'button', SuggestionProps>) => {\n const classes = classNames('ndl-ai-suggestion', className, {\n 'ndl-ai-suggestion-special': isPrimary,\n 'ndl-disabled': htmlAttributes?.disabled,\n 'ndl-large': size === 'large',\n 'ndl-small': size === 'small',\n });\n\n return (\n <button\n ref={ref}\n className={classes}\n style={style}\n onClick={onClick}\n {...restProps}\n {...htmlAttributes}\n >\n <div className=\"ndl-ai-suggestion-inner\">\n {Boolean(leadingVisual) && (\n <div className=\"ndl-ai-suggestion-leading\">{leadingVisual}</div>\n )}\n {children}\n </div>\n </button>\n );\n};\n\nexport { Suggestion };\n"]}
|
|
@@ -22,7 +22,7 @@ export { default as SuggestionDefault } from './suggestion-default.story';
|
|
|
22
22
|
export { default as SuggestionSizes } from './suggestion-sizes.story';
|
|
23
23
|
export { default as SuggestionIcon } from './suggestion-icon.story';
|
|
24
24
|
export { default as SuggestionPrimary } from './suggestion-primary.story';
|
|
25
|
-
import { removeLicenseHeader } from '
|
|
25
|
+
import { removeLicenseHeader } from '../../../_common/export-stories-utils';
|
|
26
26
|
import SuggestionDefaultSrcRaw from './suggestion-default.story?raw';
|
|
27
27
|
import SuggestionIconSrcRaw from './suggestion-icon.story?raw';
|
|
28
28
|
import SuggestionPrimarySrcRaw from './suggestion-primary.story?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/suggestion/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/suggestion/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,uBAAuB,MAAM,gCAAgC,CAAC;AACrE,OAAO,oBAAoB,MAAM,6BAA6B,CAAC;AAC/D,OAAO,uBAAuB,MAAM,gCAAgC,CAAC;AACrE,OAAO,qBAAqB,MAAM,8BAA8B,CAAC;AAEjE,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CACrD,uBAAuB,CACxB,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CACrD,uBAAuB,CACxB,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 SuggestionDefault } from './suggestion-default.story';\nexport { default as SuggestionSizes } from './suggestion-sizes.story';\nexport { default as SuggestionIcon } from './suggestion-icon.story';\nexport { default as SuggestionPrimary } from './suggestion-primary.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport SuggestionDefaultSrcRaw from './suggestion-default.story?raw';\nimport SuggestionIconSrcRaw from './suggestion-icon.story?raw';\nimport SuggestionPrimarySrcRaw from './suggestion-primary.story?raw';\nimport SuggestionSizesSrcRaw from './suggestion-sizes.story?raw';\n\nexport const SuggestionDefaultSrc = removeLicenseHeader(\n SuggestionDefaultSrcRaw,\n);\nexport const SuggestionSizesSrc = removeLicenseHeader(SuggestionSizesSrcRaw);\nexport const SuggestionIconSrc = removeLicenseHeader(SuggestionIconSrcRaw);\nexport const SuggestionPrimarySrc = removeLicenseHeader(\n SuggestionPrimarySrcRaw,\n);\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 { jsx as _jsx, Fragment as _Fragment, 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 { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
34
33
|
import classNames from 'classnames';
|
|
35
34
|
import { Presence } from '../presence';
|
|
36
35
|
import { formatThinkingDuration } from './thinking-duration-formatter';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thinking.js","sourceRoot":"","sources":["../../../../src/ai/thinking/Thinking.tsx"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Thinking.js","sourceRoot":"","sources":["../../../../src/ai/thinking/Thinking.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,UAAU,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAYvE;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,CAAC,EAQkB,EAAE,EAAE;QARtB,EAChB,SAAS,EACT,UAAU,GAAG,IAAI,EACjB,KAAK,EACL,cAAc,EACd,GAAG,EACH,UAAU,GAAG,IAAI,OAEiB,EAD/B,SAAS,cAPI,2EAQjB,CADa;IAEZ,MAAM,OAAO,GAAG,UAAU,CACxB,gDAAgD,EAChD,SAAS,CACV,CAAC;IAEF,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAE7E,OAAO,CACL,4BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,IACR,SAAS,EACT,cAAc,cAEjB,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,CACrB,8BACE,KAAC,QAAQ,IAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAC,iBAAiB,GAAG,EAChE,eAAM,SAAS,EAAC,gDAAgD,yBAEzD,IACN,CACJ,CAAC,CAAC,CAAC,CACF,gBAAM,SAAS,EAAC,6CAA6C,wBACnD,GAAG,EACX,gBAAM,SAAS,EAAC,eAAe,qBACxB,gBAAgB,OAAG,IAAI,IACvB,IACF,CACR,IACG,CACP,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 classNames from 'classnames';\n\nimport type { CommonProps } from '../../_common/types';\nimport { Presence } from '../presence';\nimport { formatThinkingDuration } from './thinking-duration-formatter';\n\ntype ThinkingProps = {\n /** Whether the AI is thinking.\n * If true, will render a thinking presence icon and the text \"Thinking\".\n * If false, will render the duration of the thinking.\n */\n isThinking?: boolean;\n /** The duration of the thinking in milliseconds */\n thinkingMs?: number;\n};\n\n/**\n * The component is used to display the thinking state of an LLM.\n * If the `isThinking` prop is true, it will render a thinking presence icon and the text \"Thinking\".\n * If the `isThinking` prop is false, it will render the duration of the thinking.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst Thinking = ({\n className,\n isThinking = true,\n style,\n htmlAttributes,\n ref,\n thinkingMs = 1000,\n ...restProps\n}: CommonProps<'div', ThinkingProps>) => {\n const classes = classNames(\n 'n-flex n-flex-col n-items-start n-gap-token-12',\n className,\n );\n\n const { value: thinkingDuration, unit } = formatThinkingDuration(thinkingMs);\n\n return (\n <div\n ref={ref}\n className={classes}\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n {isThinking === true ? (\n <>\n <Presence isThinking={isThinking} className=\"n-size-token-32\" />\n <span className=\"n-subheading-small n-text-neutral-text-default\">\n Thinking\n </span>\n </>\n ) : (\n <span className=\"n-subheading-small n-text-neutral-text-weak\">\n Thought{' '}\n <span className=\"n-font-normal\">\n for {thinkingDuration} {unit}\n </span>\n </span>\n )}\n </div>\n );\n};\n\nexport { Thinking };\n"]}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
export { default as ThinkingDefault } from './ai-thinking-default.story';
|
|
22
22
|
export { default as ThinkingFinished } from './ai-thinking-finished.story';
|
|
23
|
-
import { removeLicenseHeader } from '
|
|
23
|
+
import { removeLicenseHeader } from '../../../_common/export-stories-utils';
|
|
24
24
|
import ThinkingDefaultSrcRaw from './ai-thinking-default.story?raw';
|
|
25
25
|
import ThinkingFinishedSrcRaw from './ai-thinking-finished.story?raw';
|
|
26
26
|
export const ThinkingDefaultSrc = removeLicenseHeader(ThinkingDefaultSrcRaw);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/thinking/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/thinking/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,qBAAqB,MAAM,iCAAiC,CAAC;AACpE,OAAO,sBAAsB,MAAM,kCAAkC,CAAC;AAEtE,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAC7E,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 ThinkingDefault } from './ai-thinking-default.story';\nexport { default as ThinkingFinished } from './ai-thinking-finished.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport ThinkingDefaultSrcRaw from './ai-thinking-default.story?raw';\nimport ThinkingFinishedSrcRaw from './ai-thinking-finished.story?raw';\n\nexport const ThinkingDefaultSrc = removeLicenseHeader(ThinkingDefaultSrcRaw);\nexport const ThinkingFinishedSrc = removeLicenseHeader(ThinkingFinishedSrcRaw);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolCall.js","sourceRoot":"","sources":["../../../../src/ai/tool-call/ToolCall.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolCall.js","sourceRoot":"","sources":["../../../../src/ai/tool-call/ToolCall.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAC;AAWpC;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,CAAC,EAQmB,EAAE,EAAE;QARvB,EAChB,QAAQ,EACR,MAAM,GAAG,KAAK,EACd,GAAG,EACH,SAAS,EACT,KAAK,EACL,cAAc,OAEqB,EADhC,SAAS,cAPI,qEAQjB,CADa;IAEZ,MAAM,OAAO,GAAG,UAAU,CACxB,oEAAoE,EACpE,SAAS,CACV,CAAC;IAEF,OAAO,CACL,MAAC,UAAU,kBACT,OAAO,EAAC,aAAa,EACrB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,IAC1B,SAAS,eAEb,eAAM,SAAS,EAAC,6FAA6F,YAC1G,MAAM,CAAC,CAAC,CAAC,CACR,8BACE,KAAC,gBAAgB,IAAC,SAAS,EAAC,4CAA4C,GAAG,WAE1E,CACJ,CAAC,CAAC,CAAC,CACF,OAAO,CACR,GACI,EACP,KAAC,IAAI,IAAC,UAAU,EAAE,KAAK,YAAG,QAAQ,GAAQ,KAC/B,CACd,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 { Code, Typography } from '@neo4j-ndl/react';\nimport { CheckIconOutline } from '@neo4j-ndl/react/icons';\nimport classNames from 'classnames';\n\nimport { type CommonProps } from '../../_common/types';\n\ntype ToolCallProps = {\n /** The content of the suggestion */\n children?: React.ReactNode;\n /** Whether the AI is done with using the tool*/\n isDone?: boolean;\n};\n\n/**\n * The component is used to display that an LLM is using a tool.\n * Per default, the component will display the text \"Using\".\n * If the `isDone` prop is true, the component will display the check icon and the text \"Ran\".\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst ToolCall = ({\n children,\n isDone = false,\n ref,\n className,\n style,\n htmlAttributes,\n ...restProps\n}: CommonProps<'span', ToolCallProps>) => {\n const classes = classNames(\n 'ndl-ai-tool n-inline-flex n-items-center n-gap-token-12 n-flex-row',\n className,\n );\n\n return (\n <Typography\n variant=\"body-medium\"\n ref={ref}\n className={classes}\n style={style}\n htmlAttributes={htmlAttributes}\n {...restProps}\n >\n <span className=\"n-text-neutral-text-weak n-capitalize n-inline-flex n-items-center n-gap-token-6 n-flex-row\">\n {isDone ? (\n <>\n <CheckIconOutline className=\"n-size-token-16 n-text-neutral-text-weaker\" />\n Ran\n </>\n ) : (\n 'Using'\n )}\n </span>\n <Code isRunnable={false}>{children}</Code>\n </Typography>\n );\n};\n\nexport { ToolCall };\n"]}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
export { default as ToolCallDefault } from './tool-call-default.story';
|
|
22
22
|
export { default as ToolCallDone } from './tool-call-done.story';
|
|
23
|
-
import { removeLicenseHeader } from '
|
|
23
|
+
import { removeLicenseHeader } from '../../../_common/export-stories-utils';
|
|
24
24
|
import ToolCallDefaultSrcRaw from './tool-call-default.story?raw';
|
|
25
25
|
import ToolCallDoneSrcRaw from './tool-call-done.story?raw';
|
|
26
26
|
export const ToolCallDefaultSrc = removeLicenseHeader(ToolCallDefaultSrcRaw);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/tool-call/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;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/tool-call/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;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,kBAAkB,MAAM,4BAA4B,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,eAAe,GAAG,mBAAmB,CAAC,kBAAkB,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 ToolCallDefault } from './tool-call-default.story';\nexport { default as ToolCallDone } from './tool-call-done.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport ToolCallDefaultSrcRaw from './tool-call-default.story?raw';\nimport ToolCallDoneSrcRaw from './tool-call-done.story?raw';\n\nexport const ToolCallDefaultSrc = removeLicenseHeader(ToolCallDefaultSrcRaw);\nexport const ToolCallDoneSrc = removeLicenseHeader(ToolCallDoneSrcRaw);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserBubble.js","sourceRoot":"","sources":["../../../../src/ai/user-bubble/UserBubble.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"UserBubble.js","sourceRoot":"","sources":["../../../../src/ai/user-bubble/UserBubble.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,UAAU,MAAM,YAAY,CAAC;AAapC;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,CAAC,EASS,EAAE,EAAE;QATb,EAC3B,WAAW,EACX,eAAe,EACf,QAAQ,EACR,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAEiC,EADjC,SAAS,cARe,6FAS5B,CADa;IAEZ,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IAE5D,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,IACR,SAAS,EACT,cAAc,eAElB,KAAC,MAAM,kBACL,IAAI,EAAC,OAAO,IACR,WAAW,IACf,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,QAAQ,EACd,SAAS,EAAE,UAAU,CACnB,2BAA2B,EAC3B,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,CACvB,IACD,EACF,KAAC,UAAU,IAAC,OAAO,EAAC,aAAa,EAAC,SAAS,EAAC,4BAA4B,YACrE,QAAQ,GACE,EACb,cAAK,SAAS,EAAC,6BAA6B,YAAE,eAAe,GAAO,KAChE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,mBAAmB,IAAI,UAAU,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 { Avatar, Typography } from '@neo4j-ndl/react';\nimport classNames from 'classnames';\n\nimport type { CommonProps } from '../../_common/types';\n\ntype UserBubbleProps = {\n /** The content of the user bubble */\n children?: React.ReactNode;\n /** The props for the avatar */\n avatarProps?: React.ComponentProps<typeof Avatar>;\n /** The element to display after the content. Could be a CleanIconButton to edit the user bubble. */\n trailingElement?: React.ReactNode;\n};\n\n/**\n * The component is used to display the user's message in a chat.\n * It has an avatar to represent the user and a trailing element to display potential additional actions.\n *\n * @alpha - Changes to this component may be breaking.\n */\nconst UserBubbleComponent = ({\n avatarProps,\n trailingElement,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'div', UserBubbleProps>) => {\n const classes = classNames('ndl-ai-user-bubble', className);\n\n return (\n <div\n ref={ref}\n className={classes}\n style={style}\n {...restProps}\n {...htmlAttributes}\n >\n <Avatar\n type=\"image\"\n {...avatarProps}\n size=\"small\"\n shape=\"circle\"\n className={classNames(\n 'ndl-ai-user-bubble-avatar',\n avatarProps?.className,\n )}\n />\n <Typography variant=\"body-medium\" className=\"ndl-ai-user-bubble-content\">\n {children}\n </Typography>\n <div className=\"ndl-ai-user-bubble-trailing\">{trailingElement}</div>\n </div>\n );\n};\n\nexport { UserBubbleComponent as UserBubble };\n"]}
|
|
@@ -22,7 +22,7 @@ export { default as UserBubbleDefault } from './user-bubble.story';
|
|
|
22
22
|
export { default as UserBubbleAction } from './user-bubble-action.story';
|
|
23
23
|
export { default as UserBubbleLong } from './user-bubble-long.story';
|
|
24
24
|
export { default as UserBubbleAndFiles } from './user-bubble-and-files.story';
|
|
25
|
-
import { removeLicenseHeader } from '
|
|
25
|
+
import { removeLicenseHeader } from '../../../_common/export-stories-utils';
|
|
26
26
|
import UserBubbleDefaultSrcRaw from './user-bubble.story?raw';
|
|
27
27
|
import UserBubbleActionSrcRaw from './user-bubble-action.story?raw';
|
|
28
28
|
import UserBubbleAndFilesSrcRaw from './user-bubble-and-files.story?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,uBAAuB,MAAM,yBAAyB,CAAC;AAC9D,OAAO,sBAAsB,MAAM,gCAAgC,CAAC;AACpE,OAAO,wBAAwB,MAAM,mCAAmC,CAAC;AACzE,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAEhE,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CACrD,uBAAuB,CACxB,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,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 UserBubbleDefault } from './user-bubble.story';\nexport { default as UserBubbleAction } from './user-bubble-action.story';\nexport { default as UserBubbleLong } from './user-bubble-long.story';\nexport { default as UserBubbleAndFiles } from './user-bubble-and-files.story';\n\nimport { removeLicenseHeader } from '../../../_common/export-stories-utils';\nimport UserBubbleDefaultSrcRaw from './user-bubble.story?raw';\nimport UserBubbleActionSrcRaw from './user-bubble-action.story?raw';\nimport UserBubbleAndFilesSrcRaw from './user-bubble-and-files.story?raw';\nimport UserBubbleLongSrcRaw from './user-bubble-long.story?raw';\n\nexport const UserBubbleDefaultSrc = removeLicenseHeader(\n UserBubbleDefaultSrcRaw,\n);\nexport const UserBubbleActionSrc = removeLicenseHeader(UserBubbleActionSrcRaw);\nexport const UserBubbleLongSrc = removeLicenseHeader(UserBubbleLongSrcRaw);\nexport const UserBubbleAndFilesSrc = removeLicenseHeader(\n UserBubbleAndFilesSrcRaw,\n);\n"]}
|
|
@@ -20,8 +20,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
20
20
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
21
|
*/
|
|
22
22
|
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { CleanIconButton } from '@neo4j-ndl/react';
|
|
23
24
|
import { UserBubble } from '@neo4j-ndl/react/ai';
|
|
24
|
-
import { CleanIconButton } from '@neo4j-ndl/react/clean-icon-button';
|
|
25
25
|
import { PencilSquareIconOutline } from '@neo4j-ndl/react/icons';
|
|
26
26
|
const Component = () => {
|
|
27
27
|
return (_jsx(UserBubble, { avatarProps: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-bubble-action.story.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/user-bubble-action.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"user-bubble-action.story.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/user-bubble-action.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,UAAU,IACT,WAAW,EAAE;YACX,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,SAAS;SAChB,EACD,eAAe,EACb,KAAC,eAAe,IAAC,WAAW,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,YAC9C,KAAC,uBAAuB,KAAG,GACX,8DAIT,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { CleanIconButton } from '@neo4j-ndl/react';\nimport { UserBubble } from '@neo4j-ndl/react/ai';\nimport { PencilSquareIconOutline } from '@neo4j-ndl/react/icons';\n\nconst Component = () => {\n return (\n <UserBubble\n avatarProps={{\n name: 'KM',\n type: 'letters',\n }}\n trailingElement={\n <CleanIconButton description=\"Edit\" size=\"large\">\n <PencilSquareIconOutline />\n </CleanIconButton>\n }\n >\n Can you analyse my data and tell me about...?\n </UserBubble>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -20,9 +20,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
20
20
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
21
|
*/
|
|
22
22
|
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
23
|
+
import { Menu } from '@neo4j-ndl/react';
|
|
23
24
|
import { FileTag, ImageTag, MoreFiles, UserBubble } from '@neo4j-ndl/react/ai';
|
|
24
25
|
import { DocumentIconOutline, PhotoIconOutline, TableCellsIconOutline, } from '@neo4j-ndl/react/icons';
|
|
25
|
-
import { Menu } from '@neo4j-ndl/react/menu';
|
|
26
26
|
import { useRef, useState } from 'react';
|
|
27
27
|
const Component = () => {
|
|
28
28
|
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-bubble-and-files.story.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/user-bubble-and-files.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"user-bubble-and-files.story.js","sourceRoot":"","sources":["../../../../../src/ai/user-bubble/stories/user-bubble-and-files.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EACL,mBAAmB,EACnB,gBAAgB,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C,QAAQ,IACP,GAAG,EAAC,8KAA8K,EAClL,GAAG,EAAC,iBAAiB,EACrB,QAAQ,EAAC,iBAAiB,EAC1B,QAAQ,EAAC,KAAK,GACd,EACF,KAAC,OAAO,IACN,IAAI,EAAE,KAAC,qBAAqB,KAAG,EAC/B,QAAQ,EAAC,cAAc,EACvB,QAAQ,EAAC,KAAK,GACd,EACF,KAAC,OAAO,IACN,IAAI,EAAE,KAAC,mBAAmB,KAAG,EAC7B,QAAQ,EAAC,6BAA6B,EACtC,QAAQ,EAAC,KAAK,GACd,EACF,KAAC,UAAU,IACT,WAAW,EAAE;wBACX,IAAI,EAAE,IAAI;wBACV,MAAM,EACJ,uIAAuI;wBACzI,IAAI,EAAE,OAAO;qBACd,8DAGU,IACT,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,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 */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Menu } from '@neo4j-ndl/react';\nimport { FileTag, ImageTag, MoreFiles, UserBubble } from '@neo4j-ndl/react/ai';\nimport {\n DocumentIconOutline,\n PhotoIconOutline,\n TableCellsIconOutline,\n} from '@neo4j-ndl/react/icons';\nimport { useRef, useState } from 'react';\n\nconst Component = () => {\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n const anchorRef = useRef<HTMLButtonElement | null>(null);\n\n return (\n <div className=\"n-flex n-flex-coln-gap-token-64 n-w-full n-justify-end\">\n <div className=\"n-flex n-flex-col n-gap-token-8 n-items-end\">\n <MoreFiles\n count={4}\n isActive={isMenuOpen}\n onClick={() => setIsMenuOpen(!isMenuOpen)}\n ref={anchorRef}\n />\n <Menu\n isOpen={isMenuOpen}\n anchorRef={anchorRef}\n onClose={() => setIsMenuOpen(false)}\n >\n <Menu.Items>\n <Menu.Item\n leadingVisual={<DocumentIconOutline />}\n title=\"Gardening tips\"\n description=\"PDF\"\n onClick={() => alert('Gardening tips')}\n />\n <Menu.Item\n leadingVisual={<TableCellsIconOutline />}\n title=\"TvSeries\"\n description=\"CSV\"\n onClick={() => alert('TvSeries')}\n />\n <Menu.Item\n leadingVisual={<PhotoIconOutline />}\n title=\"Family photo\"\n description=\"JPG\"\n onClick={() => alert('Family photo')}\n />\n </Menu.Items>\n </Menu>\n <ImageTag\n src=\"https://plus.unsplash.com/premium_photo-1676496046182-356a6a0ed002?q=80&w=2952&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\"\n alt=\"Landscape image\"\n fileName=\"Landscape image\"\n fileType=\"jpg\"\n />\n <FileTag\n icon={<TableCellsIconOutline />}\n fileName=\"MoviesDecade\"\n fileType=\"csv\"\n />\n <FileTag\n icon={<DocumentIconOutline />}\n fileName=\"Science Fiction Bestsellers\"\n fileType=\"pdf\"\n />\n <UserBubble\n avatarProps={{\n name: 'KM',\n source:\n 'https://media.istockphoto.com/id/1334716681/photo/a-smiling-man.jpg?s=612x612&w=0&k=20&c=U6rkSDpQMzkcJEqx2hAa63fNLIhqnZb31Xuc_QSi648=',\n type: 'image',\n }}\n >\n Can you analyse my data and tell me about...?\n </UserBubble>\n </div>\n </div>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -24,7 +24,7 @@ export { default as AvatarSizes } from './avatar-sizes.story';
|
|
|
24
24
|
export { default as AvatarShapes } from './avatar-shapes.story';
|
|
25
25
|
export { default as AvatarTypes } from './avatar-types.story';
|
|
26
26
|
export { default as AvatarStatuses } from './avatar-statuses.story';
|
|
27
|
-
import { removeLicenseHeader } from '
|
|
27
|
+
import { removeLicenseHeader } from '../../_common/export-stories-utils';
|
|
28
28
|
import AvatarDefaultSourceRaw from './avatar-default.story?raw';
|
|
29
29
|
import AvatarDisabledSourceRaw from './avatar-disabled.story?raw';
|
|
30
30
|
import AvatarShapesSourceRaw from './avatar-shapes.story?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/avatar/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/avatar/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,sBAAsB,MAAM,4BAA4B,CAAC;AAChE,OAAO,uBAAuB,MAAM,6BAA6B,CAAC;AAClE,OAAO,qBAAqB,MAAM,2BAA2B,CAAC;AAC9D,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAC5D,OAAO,uBAAuB,MAAM,6BAA6B,CAAC;AAClE,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAE5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CACrD,uBAAuB,CACxB,CAAC;AACF,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CACrD,uBAAuB,CACxB,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 AvatarDefault } from './avatar-default.story';\nexport { default as AvatarDisabled } from './avatar-disabled.story';\nexport { default as AvatarSizes } from './avatar-sizes.story';\nexport { default as AvatarShapes } from './avatar-shapes.story';\nexport { default as AvatarTypes } from './avatar-types.story';\nexport { default as AvatarStatuses } from './avatar-statuses.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport AvatarDefaultSourceRaw from './avatar-default.story?raw';\nimport AvatarDisabledSourceRaw from './avatar-disabled.story?raw';\nimport AvatarShapesSourceRaw from './avatar-shapes.story?raw';\nimport AvatarSizesSourceRaw from './avatar-sizes.story?raw';\nimport AvatarStatusesSourceRaw from './avatar-statuses.story?raw';\nimport AvatarTypesSourceRaw from './avatar-types.story?raw';\n\nexport const AvatarDefaultSource = removeLicenseHeader(AvatarDefaultSourceRaw);\nexport const AvatarDisabledSource = removeLicenseHeader(\n AvatarDisabledSourceRaw,\n);\nexport const AvatarSizesSource = removeLicenseHeader(AvatarSizesSourceRaw);\nexport const AvatarShapesSource = removeLicenseHeader(AvatarShapesSourceRaw);\nexport const AvatarTypesSource = removeLicenseHeader(AvatarTypesSourceRaw);\nexport const AvatarStatusesSource = removeLicenseHeader(\n AvatarStatusesSourceRaw,\n);\n"]}
|
|
@@ -24,7 +24,7 @@ export { default as BannerGlobal } from './banner-global.story';
|
|
|
24
24
|
export { default as BannerWithActions } from './banner-with-actions.story';
|
|
25
25
|
export { default as BannerWithIcons } from './banner-with-icons.story';
|
|
26
26
|
export { default as BannerWithoutTitle } from './banner-without-title.story';
|
|
27
|
-
import { removeLicenseHeader } from '
|
|
27
|
+
import { removeLicenseHeader } from '../../_common/export-stories-utils';
|
|
28
28
|
import BannerCloseableSrcRaw from './banner-closeable.story?raw';
|
|
29
29
|
import BannerGlobalSrcRaw from './banner-global.story?raw';
|
|
30
30
|
import BannerVariantsSrcRaw from './banner-variants.story?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/banner/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/banner/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,qBAAqB,MAAM,8BAA8B,CAAC;AACjE,OAAO,kBAAkB,MAAM,2BAA2B,CAAC;AAC3D,OAAO,oBAAoB,MAAM,6BAA6B,CAAC;AAC/D,OAAO,uBAAuB,MAAM,iCAAiC,CAAC;AACtE,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,wBAAwB,MAAM,kCAAkC,CAAC;AAExE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAE3E,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,eAAe,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;AAEvE,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CACrD,uBAAuB,CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,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 BannerVariants } from './banner-variants.story';\nexport { default as BannerCloseable } from './banner-closeable.story';\nexport { default as BannerGlobal } from './banner-global.story';\nexport { default as BannerWithActions } from './banner-with-actions.story';\nexport { default as BannerWithIcons } from './banner-with-icons.story';\nexport { default as BannerWithoutTitle } from './banner-without-title.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport BannerCloseableSrcRaw from './banner-closeable.story?raw';\nimport BannerGlobalSrcRaw from './banner-global.story?raw';\nimport BannerVariantsSrcRaw from './banner-variants.story?raw';\nimport BannerWithActionsSrcRaw from './banner-with-actions.story?raw';\nimport BannerWithIconsSrcRaw from './banner-with-icons.story?raw';\nimport BannerWithoutTitleSrcRaw from './banner-without-title.story?raw';\n\nexport const BannerVariantsSrc = removeLicenseHeader(BannerVariantsSrcRaw);\n\nexport const BannerCloseableSrc = removeLicenseHeader(BannerCloseableSrcRaw);\n\nexport const BannerGlobalSrc = removeLicenseHeader(BannerGlobalSrcRaw);\n\nexport const BannerWithActionsSrc = removeLicenseHeader(\n BannerWithActionsSrcRaw,\n);\n\nexport const BannerWithIconsSrc = removeLicenseHeader(BannerWithIconsSrcRaw);\n\nexport const BannerWithoutTitleSrc = removeLicenseHeader(\n BannerWithoutTitleSrcRaw,\n);\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 BoxDefault } from './box-default.story';
|
|
22
|
-
import { removeLicenseHeader } from '
|
|
22
|
+
import { removeLicenseHeader } from '../../_common/export-stories-utils';
|
|
23
23
|
import BoxDefaultSrcRaw from './box-default.story?raw';
|
|
24
24
|
export const BoxDefaultSrc = removeLicenseHeader(BoxDefaultSrcRaw);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/box/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/box/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC,gBAAgB,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 */\nexport { default as BoxDefault } from './box-default.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport BoxDefaultSrcRaw from './box-default.story?raw';\n\nexport const BoxDefaultSrc = removeLicenseHeader(BoxDefaultSrcRaw);\n"]}
|
|
@@ -25,7 +25,7 @@ export { default as ButtonVariants } from './button-variants.story';
|
|
|
25
25
|
export { default as ButtonLoading } from './button-loading.story';
|
|
26
26
|
export { default as ButtonDisabled } from './button-disabled.story';
|
|
27
27
|
export { default as ButtonFloating } from './button-floating.story';
|
|
28
|
-
import { removeLicenseHeader } from '
|
|
28
|
+
import { removeLicenseHeader } from '../../_common/export-stories-utils';
|
|
29
29
|
import ButtonDisabledSrcRaw from './button-disabled.story?raw';
|
|
30
30
|
import ButtonFloatingSrcRaw from './button-floating.story?raw';
|
|
31
31
|
import ButtonFluidSrcRaw from './button-fluid.story?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/button/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE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mBAAmB,MAAM,4BAA4B,CAAC;AAC7D,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,oBAAoB,MAAM,6BAA6B,CAAC;AAE/D,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CACrD,uBAAuB,CACxB,CAAC;AACF,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;AACzE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3E,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 ButtonSizes } from './button-sizes.story';\nexport { default as ButtonLeadingIcon } from './button-leading-icon.story';\nexport { default as ButtonFluid } from './button-fluid.story';\nexport { default as ButtonVariants } from './button-variants.story';\nexport { default as ButtonLoading } from './button-loading.story';\nexport { default as ButtonDisabled } from './button-disabled.story';\nexport { default as ButtonFloating } from './button-floating.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport ButtonDisabledSrcRaw from './button-disabled.story?raw';\nimport ButtonFloatingSrcRaw from './button-floating.story?raw';\nimport ButtonFluidSrcRaw from './button-fluid.story?raw';\nimport ButtonLeadingIconSrcRaw from './button-leading-icon.story?raw';\nimport ButtonLoadingSrcRaw from './button-loading.story?raw';\nimport ButtonSizesSrcRaw from './button-sizes.story?raw';\nimport ButtonVariantsSrcRaw from './button-variants.story?raw';\n\nexport const ButtonSizesSrc = removeLicenseHeader(ButtonSizesSrcRaw);\nexport const ButtonLeadingIconSrc = removeLicenseHeader(\n ButtonLeadingIconSrcRaw,\n);\nexport const ButtonFluidSrc = removeLicenseHeader(ButtonFluidSrcRaw);\nexport const ButtonVariantsSrc = removeLicenseHeader(ButtonVariantsSrcRaw);\nexport const ButtonLoadingSrc = removeLicenseHeader(ButtonLoadingSrcRaw);\nexport const ButtonDisabledSrc = removeLicenseHeader(ButtonDisabledSrcRaw);\nexport const ButtonFloatingSrc = removeLicenseHeader(ButtonFloatingSrcRaw);\n"]}
|
|
@@ -24,7 +24,7 @@ export { default as CleanIconButtonDisabled } from './clean-icon-button-disabled
|
|
|
24
24
|
export { default as CleanIconButtonLoading } from './clean-icon-button-loading.story';
|
|
25
25
|
export { default as CleanIconButtonSizes } from './clean-icon-button-sizes.story';
|
|
26
26
|
export { default as CleanIconButtonTone } from './clean-icon-button-tone.story';
|
|
27
|
-
import { removeLicenseHeader } from '
|
|
27
|
+
import { removeLicenseHeader } from '../../_common/export-stories-utils';
|
|
28
28
|
import CleanIconButtonActiveSrcRaw from './clean-icon-button-active.story?raw';
|
|
29
29
|
import CleanIconButtonDefaultSrcRaw from './clean-icon-button-default.story?raw';
|
|
30
30
|
import CleanIconButtonDisabledSrcRaw from './clean-icon-button-disabled.story?raw';
|