@carbon/ai-chat-components 0.10.0 → 0.11.0
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/README.md +0 -3
- package/custom-elements.json +4827 -2917
- package/es/components/card/src/card-footer.d.ts +1 -1
- package/es/components/card/src/card-footer.js +2 -1
- package/es/components/card/src/card-footer.js.map +1 -1
- package/es/components/card/src/card-footer.scss.js +1 -1
- package/es/components/card/src/card-steps.d.ts +1 -1
- package/es/components/card/src/card-steps.js +2 -1
- package/es/components/card/src/card-steps.js.map +1 -1
- package/es/components/card/src/card-steps.scss.js +1 -1
- package/es/components/card/src/card.d.ts +1 -1
- package/es/components/card/src/card.js +2 -1
- package/es/components/card/src/card.js.map +1 -1
- package/es/components/card/src/card.scss.js +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +4 -5
- package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +3 -3
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.js +3 -2
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.js +2 -1
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es/components/chat-button/src/chat-button.d.ts +2 -2
- package/es/components/chat-button/src/chat-button.js +3 -2
- package/es/components/chat-button/src/chat-button.js.map +1 -1
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/chat-shell/index.d.ts +2 -0
- package/es/components/chat-shell/index.js +1 -0
- package/es/components/chat-shell/index.js.map +1 -1
- package/es/components/chat-shell/src/aria-announcer-manager.d.ts +40 -0
- package/es/components/chat-shell/src/aria-announcer-manager.js +104 -0
- package/es/components/chat-shell/src/aria-announcer-manager.js.map +1 -0
- package/es/components/chat-shell/src/chat-header.d.ts +177 -0
- package/es/components/chat-shell/src/chat-header.js +415 -0
- package/es/components/chat-shell/src/chat-header.js.map +1 -0
- package/es/components/chat-shell/src/chat-header.scss.js +13 -0
- package/es/components/chat-shell/src/chat-header.scss.js.map +1 -0
- package/es/components/chat-shell/src/corner-manager.d.ts +35 -0
- package/es/components/chat-shell/src/corner-manager.js +87 -0
- package/es/components/chat-shell/src/corner-manager.js.map +1 -0
- package/es/components/chat-shell/src/initialization-manager.d.ts +44 -0
- package/es/components/chat-shell/src/initialization-manager.js +88 -0
- package/es/components/chat-shell/src/initialization-manager.js.map +1 -0
- package/es/components/chat-shell/src/panel.d.ts +14 -1
- package/es/components/chat-shell/src/panel.js +32 -4
- package/es/components/chat-shell/src/panel.js.map +1 -1
- package/es/components/chat-shell/src/panel.scss.js +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.d.ts +55 -0
- package/es/components/chat-shell/src/resize-observer-manager.js +219 -0
- package/es/components/chat-shell/src/resize-observer-manager.js.map +1 -0
- package/es/components/chat-shell/src/shell.d.ts +54 -21
- package/es/components/chat-shell/src/shell.js +297 -287
- package/es/components/chat-shell/src/shell.js.map +1 -1
- package/es/components/chat-shell/src/shell.scss.js +1 -1
- package/es/components/chat-shell/src/slot-observer.d.ts +53 -0
- package/es/components/chat-shell/src/slot-observer.js +156 -0
- package/es/components/chat-shell/src/slot-observer.js.map +1 -0
- package/es/components/chat-shell/src/types.d.ts +66 -0
- package/es/components/chat-shell/src/types.js +8 -0
- package/es/components/chat-shell/src/types.js.map +1 -0
- package/es/components/chat-shell/src/workspace-manager.d.ts +12 -1
- package/es/components/chat-shell/src/workspace-manager.js +42 -2
- package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es/components/code-snippet/index.d.ts +3 -2
- package/es/components/code-snippet/index.js +1 -1
- package/es/components/code-snippet/src/code-snippet.d.ts +58 -15
- package/es/components/code-snippet/src/code-snippet.js +261 -95
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.js +1 -1
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -2
- package/es/components/code-snippet/src/codemirror/editor-manager.js +18 -3
- package/es/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +1 -0
- package/es/components/code-snippet/src/codemirror/language-controller.js +11 -5
- package/es/components/code-snippet/src/codemirror/language-controller.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/marker-utils.js +2 -1
- package/es/components/code-snippet/src/codemirror/marker-utils.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/theme.d.ts +12 -0
- package/es/components/code-snippet/src/codemirror/theme.js +26 -2
- package/es/components/code-snippet/src/codemirror/theme.js.map +1 -1
- package/es/components/code-snippet/src/dom-utils.d.ts +1 -0
- package/es/components/code-snippet/src/dom-utils.js +12 -1
- package/es/components/code-snippet/src/dom-utils.js.map +1 -1
- package/es/components/code-snippet/src/layout-utils.d.ts +9 -1
- package/es/components/code-snippet/src/layout-utils.js +21 -16
- package/es/components/code-snippet/src/layout-utils.js.map +1 -1
- package/es/components/code-snippet/src/streaming-manager.js +7 -0
- package/es/components/code-snippet/src/streaming-manager.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.d.ts +2 -0
- package/es/components/feedback/src/feedback-buttons.js +65 -3
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.scss.js +13 -0
- package/es/components/feedback/src/feedback-buttons.scss.js.map +1 -0
- package/es/components/feedback/src/feedback.d.ts +20 -10
- package/es/components/feedback/src/feedback.js +114 -20
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/feedback/src/feedback.scss.js +1 -1
- package/es/components/markdown/src/markdown-renderer.d.ts +31 -21
- package/es/components/markdown/src/markdown-renderer.js +57 -48
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown.d.ts +34 -31
- package/es/components/markdown/src/markdown.js +221 -138
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.scss.js +1 -1
- package/es/components/markdown/src/markdown.template.js +1 -1
- package/es/components/markdown/src/utils.d.ts +0 -4
- package/es/components/markdown/src/utils.js +1 -7
- package/es/components/markdown/src/utils.js.map +1 -1
- package/es/components/processing/src/processing.d.ts +1 -1
- package/es/components/processing/src/processing.js +2 -1
- package/es/components/processing/src/processing.js.map +1 -1
- package/es/components/processing/src/processing.scss.js +1 -1
- package/es/components/reasoning-steps/src/reasoning-step.d.ts +1 -1
- package/es/components/reasoning-steps/src/reasoning-step.js +2 -1
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +27 -4
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.d.ts +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.js +3 -5
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es/components/table/src/table-pagination.template.js +3 -2
- package/es/components/table/src/table-pagination.template.js.map +1 -1
- package/es/components/table/src/table-skeleton.template.js +8 -6
- package/es/components/table/src/table-skeleton.template.js.map +1 -1
- package/es/components/table/src/table.d.ts +29 -3
- package/es/components/table/src/table.js +99 -6
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/table/src/table.scss.js +1 -1
- package/es/components/table/src/table.template.js +11 -2
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +32 -5
- package/es/components/toolbar/src/toolbar.js +111 -47
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +1 -1
- package/es/components/truncated-text/index.d.ts +9 -0
- package/es/components/truncated-text/index.js +9 -0
- package/es/components/truncated-text/index.js.map +1 -0
- package/es/components/truncated-text/src/truncated-text.d.ts +81 -0
- package/es/components/truncated-text/src/truncated-text.js +282 -0
- package/es/components/truncated-text/src/truncated-text.js.map +1 -0
- package/es/components/truncated-text/src/truncated-text.scss.js +13 -0
- package/es/components/truncated-text/src/truncated-text.scss.js.map +1 -0
- package/es/components/workspace-shell/src/header-collapsible-manager.d.ts +77 -0
- package/es/components/workspace-shell/src/header-collapsible-manager.js +223 -0
- package/es/components/workspace-shell/src/header-collapsible-manager.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.js +2 -1
- package/es/components/workspace-shell/src/workspace-shell-body.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +1 -3
- package/es/components/workspace-shell/src/workspace-shell-footer.js +8 -6
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +11 -1
- package/es/components/workspace-shell/src/workspace-shell-header.js +88 -14
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.scss.js +1 -1
- package/es/components/workspace-shell/src/workspace-shell.d.ts +16 -2
- package/es/components/workspace-shell/src/workspace-shell.js +77 -7
- package/es/components/workspace-shell/src/workspace-shell.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es/globals/scss/common.scss.js +13 -0
- package/es/globals/scss/common.scss.js.map +1 -0
- package/es/globals/utils/focus-utils.d.ts +57 -0
- package/es/globals/utils/focus-utils.js +180 -0
- package/es/globals/utils/focus-utils.js.map +1 -0
- package/es/react/card.d.ts +3 -6
- package/es/react/chain-of-thought-step.d.ts +1 -2
- package/es/react/chain-of-thought-toggle.d.ts +1 -2
- package/es/react/chain-of-thought.d.ts +1 -2
- package/es/react/chat-button.d.ts +2 -2
- package/es/react/chat-button.js +1 -1
- package/es/react/chat-header.d.ts +73 -0
- package/es/react/chat-header.js +55 -0
- package/es/react/chat-header.js.map +1 -0
- package/es/react/chat-shell.d.ts +1 -2
- package/es/react/code-snippet.d.ts +35 -2
- package/es/react/code-snippet.js +65 -9
- package/es/react/code-snippet.js.map +1 -1
- package/es/react/feedback-buttons.d.ts +1 -2
- package/es/react/feedback.d.ts +1 -2
- package/es/react/markdown.d.ts +1 -2
- package/es/react/markdown.js +11 -1
- package/es/react/markdown.js.map +1 -1
- package/es/react/panel.d.ts +1 -2
- package/es/react/processing.d.ts +1 -2
- package/es/react/reasoning-step.d.ts +1 -2
- package/es/react/reasoning-steps-toggle.d.ts +1 -2
- package/es/react/reasoning-steps.d.ts +1 -2
- package/es/react/tool-call-data.d.ts +1 -2
- package/es/react/toolbar.d.ts +14 -10
- package/es/react/toolbar.js +2 -0
- package/es/react/toolbar.js.map +1 -1
- package/es/react/utils/withWebComponentBridge.d.ts +5 -2
- package/es/react/utils/withWebComponentBridge.js +49 -1
- package/es/react/utils/withWebComponentBridge.js.map +1 -1
- package/es/react/workspace-shell.d.ts +4 -8
- package/es/testing/PageObjectId.d.ts +22 -0
- package/es/testing/PageObjectId.js +38 -0
- package/es/testing/PageObjectId.js.map +1 -0
- package/es/typings/overflow-menu.d.ts +30 -0
- package/es/typings/overflow-menu.js +8 -0
- package/es/typings/overflow-menu.js.map +1 -0
- package/es-custom/components/card/src/card-footer.d.ts +1 -1
- package/es-custom/components/card/src/card-footer.js +2 -1
- package/es-custom/components/card/src/card-footer.js.map +1 -1
- package/es-custom/components/card/src/card-footer.scss.js +1 -1
- package/es-custom/components/card/src/card-steps.d.ts +1 -1
- package/es-custom/components/card/src/card-steps.js +2 -1
- package/es-custom/components/card/src/card-steps.js.map +1 -1
- package/es-custom/components/card/src/card-steps.scss.js +1 -1
- package/es-custom/components/card/src/card.d.ts +1 -1
- package/es-custom/components/card/src/card.js +2 -1
- package/es-custom/components/card/src/card.js.map +1 -1
- package/es-custom/components/card/src/card.scss.js +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +4 -5
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +3 -3
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js +3 -2
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.scss.js +1 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +1 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +2 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es-custom/components/chat-button/src/chat-button.d.ts +2 -2
- package/es-custom/components/chat-button/src/chat-button.js +3 -2
- package/es-custom/components/chat-button/src/chat-button.js.map +1 -1
- package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
- package/es-custom/components/chat-shell/index.d.ts +2 -0
- package/es-custom/components/chat-shell/index.js +1 -0
- package/es-custom/components/chat-shell/index.js.map +1 -1
- package/es-custom/components/chat-shell/src/aria-announcer-manager.d.ts +40 -0
- package/es-custom/components/chat-shell/src/aria-announcer-manager.js +104 -0
- package/es-custom/components/chat-shell/src/aria-announcer-manager.js.map +1 -0
- package/es-custom/components/chat-shell/src/chat-header.d.ts +177 -0
- package/es-custom/components/chat-shell/src/chat-header.js +415 -0
- package/es-custom/components/chat-shell/src/chat-header.js.map +1 -0
- package/es-custom/components/chat-shell/src/chat-header.scss.js +13 -0
- package/es-custom/components/chat-shell/src/chat-header.scss.js.map +1 -0
- package/es-custom/components/chat-shell/src/corner-manager.d.ts +35 -0
- package/es-custom/components/chat-shell/src/corner-manager.js +87 -0
- package/es-custom/components/chat-shell/src/corner-manager.js.map +1 -0
- package/es-custom/components/chat-shell/src/initialization-manager.d.ts +44 -0
- package/es-custom/components/chat-shell/src/initialization-manager.js +88 -0
- package/es-custom/components/chat-shell/src/initialization-manager.js.map +1 -0
- package/es-custom/components/chat-shell/src/panel.d.ts +14 -1
- package/es-custom/components/chat-shell/src/panel.js +32 -4
- package/es-custom/components/chat-shell/src/panel.js.map +1 -1
- package/es-custom/components/chat-shell/src/panel.scss.js +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.d.ts +55 -0
- package/es-custom/components/chat-shell/src/resize-observer-manager.js +219 -0
- package/es-custom/components/chat-shell/src/resize-observer-manager.js.map +1 -0
- package/es-custom/components/chat-shell/src/shell.d.ts +54 -21
- package/es-custom/components/chat-shell/src/shell.js +297 -287
- package/es-custom/components/chat-shell/src/shell.js.map +1 -1
- package/es-custom/components/chat-shell/src/shell.scss.js +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.d.ts +53 -0
- package/es-custom/components/chat-shell/src/slot-observer.js +156 -0
- package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -0
- package/es-custom/components/chat-shell/src/types.d.ts +66 -0
- package/es-custom/components/chat-shell/src/types.js +8 -0
- package/es-custom/components/chat-shell/src/types.js.map +1 -0
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +12 -1
- package/es-custom/components/chat-shell/src/workspace-manager.js +42 -2
- package/es-custom/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es-custom/components/code-snippet/index.d.ts +3 -2
- package/es-custom/components/code-snippet/index.js +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +58 -15
- package/es-custom/components/code-snippet/src/code-snippet.js +261 -95
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -2
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +18 -3
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/language-controller.d.ts +1 -0
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js +11 -5
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js +2 -1
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/theme.d.ts +12 -0
- package/es-custom/components/code-snippet/src/codemirror/theme.js +26 -2
- package/es-custom/components/code-snippet/src/codemirror/theme.js.map +1 -1
- package/es-custom/components/code-snippet/src/dom-utils.d.ts +1 -0
- package/es-custom/components/code-snippet/src/dom-utils.js +12 -1
- package/es-custom/components/code-snippet/src/dom-utils.js.map +1 -1
- package/es-custom/components/code-snippet/src/layout-utils.d.ts +9 -1
- package/es-custom/components/code-snippet/src/layout-utils.js +21 -16
- package/es-custom/components/code-snippet/src/layout-utils.js.map +1 -1
- package/es-custom/components/code-snippet/src/streaming-manager.js +7 -0
- package/es-custom/components/code-snippet/src/streaming-manager.js.map +1 -1
- package/es-custom/components/feedback/src/feedback-buttons.d.ts +2 -0
- package/es-custom/components/feedback/src/feedback-buttons.js +65 -3
- package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es-custom/components/feedback/src/feedback-buttons.scss.js +13 -0
- package/es-custom/components/feedback/src/feedback-buttons.scss.js.map +1 -0
- package/es-custom/components/feedback/src/feedback.d.ts +20 -10
- package/es-custom/components/feedback/src/feedback.js +114 -20
- package/es-custom/components/feedback/src/feedback.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.scss.js +1 -1
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +31 -21
- package/es-custom/components/markdown/src/markdown-renderer.js +57 -48
- package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.d.ts +34 -31
- package/es-custom/components/markdown/src/markdown.js +221 -138
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.scss.js +1 -1
- package/es-custom/components/markdown/src/markdown.template.js +1 -1
- package/es-custom/components/markdown/src/utils.d.ts +0 -4
- package/es-custom/components/markdown/src/utils.js +1 -7
- package/es-custom/components/markdown/src/utils.js.map +1 -1
- package/es-custom/components/processing/src/processing.d.ts +1 -1
- package/es-custom/components/processing/src/processing.js +2 -1
- package/es-custom/components/processing/src/processing.js.map +1 -1
- package/es-custom/components/processing/src/processing.scss.js +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +2 -1
- package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +27 -4
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +3 -5
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es-custom/components/table/src/table-pagination.template.js +3 -2
- package/es-custom/components/table/src/table-pagination.template.js.map +1 -1
- package/es-custom/components/table/src/table-skeleton.template.js +8 -6
- package/es-custom/components/table/src/table-skeleton.template.js.map +1 -1
- package/es-custom/components/table/src/table.d.ts +29 -3
- package/es-custom/components/table/src/table.js +99 -6
- package/es-custom/components/table/src/table.js.map +1 -1
- package/es-custom/components/table/src/table.scss.js +1 -1
- package/es-custom/components/table/src/table.template.js +11 -2
- package/es-custom/components/table/src/table.template.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.d.ts +32 -5
- package/es-custom/components/toolbar/src/toolbar.js +111 -47
- package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
- package/es-custom/components/truncated-text/index.d.ts +9 -0
- package/es-custom/components/truncated-text/index.js +9 -0
- package/es-custom/components/truncated-text/index.js.map +1 -0
- package/es-custom/components/truncated-text/src/truncated-text.d.ts +81 -0
- package/es-custom/components/truncated-text/src/truncated-text.js +282 -0
- package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -0
- package/es-custom/components/truncated-text/src/truncated-text.scss.js +13 -0
- package/es-custom/components/truncated-text/src/truncated-text.scss.js.map +1 -0
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.d.ts +77 -0
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js +223 -0
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js.map +1 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js +2 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +1 -3
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +8 -6
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +11 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js +88 -14
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +16 -2
- package/es-custom/components/workspace-shell/src/workspace-shell.js +77 -7
- package/es-custom/components/workspace-shell/src/workspace-shell.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es-custom/globals/scss/common.scss.js +13 -0
- package/es-custom/globals/scss/common.scss.js.map +1 -0
- package/es-custom/globals/utils/focus-utils.d.ts +57 -0
- package/es-custom/globals/utils/focus-utils.js +180 -0
- package/es-custom/globals/utils/focus-utils.js.map +1 -0
- package/es-custom/react/card.d.ts +3 -6
- package/es-custom/react/chain-of-thought-step.d.ts +1 -2
- package/es-custom/react/chain-of-thought-toggle.d.ts +1 -2
- package/es-custom/react/chain-of-thought.d.ts +1 -2
- package/es-custom/react/chat-button.d.ts +2 -2
- package/es-custom/react/chat-button.js +1 -1
- package/es-custom/react/chat-header.d.ts +73 -0
- package/es-custom/react/chat-header.js +55 -0
- package/es-custom/react/chat-header.js.map +1 -0
- package/es-custom/react/chat-shell.d.ts +1 -2
- package/es-custom/react/code-snippet.d.ts +35 -2
- package/es-custom/react/code-snippet.js +65 -9
- package/es-custom/react/code-snippet.js.map +1 -1
- package/es-custom/react/feedback-buttons.d.ts +1 -2
- package/es-custom/react/feedback.d.ts +1 -2
- package/es-custom/react/markdown.d.ts +1 -2
- package/es-custom/react/markdown.js +11 -1
- package/es-custom/react/markdown.js.map +1 -1
- package/es-custom/react/panel.d.ts +1 -2
- package/es-custom/react/processing.d.ts +1 -2
- package/es-custom/react/reasoning-step.d.ts +1 -2
- package/es-custom/react/reasoning-steps-toggle.d.ts +1 -2
- package/es-custom/react/reasoning-steps.d.ts +1 -2
- package/es-custom/react/tool-call-data.d.ts +1 -2
- package/es-custom/react/toolbar.d.ts +14 -10
- package/es-custom/react/toolbar.js +2 -0
- package/es-custom/react/toolbar.js.map +1 -1
- package/es-custom/react/utils/withWebComponentBridge.d.ts +5 -2
- package/es-custom/react/utils/withWebComponentBridge.js +49 -1
- package/es-custom/react/utils/withWebComponentBridge.js.map +1 -1
- package/es-custom/react/workspace-shell.d.ts +4 -8
- package/es-custom/testing/PageObjectId.d.ts +22 -0
- package/es-custom/testing/PageObjectId.js +38 -0
- package/es-custom/testing/PageObjectId.js.map +1 -0
- package/es-custom/typings/overflow-menu.d.ts +30 -0
- package/es-custom/typings/overflow-menu.js +8 -0
- package/es-custom/typings/overflow-menu.js.map +1 -0
- package/package.json +6 -4
- package/scss/_custom-properties.scss +70 -0
- package/scss/_modifiers.scss +231 -0
- package/scss/_tokens-component.scss +30 -0
- package/scss/_tokens-layout.scss +29 -0
- package/scss/_utilities.scss +32 -0
- package/scss/common.scss +150 -0
- package/scss/grid.scss +11 -0
- package/scss/themes.scss +33 -0
- package/scss/vars.scss +12 -0
- package/telemetry.yml +73 -33
- package/es/components/code-snippet/src/code-snippet-card.d.ts +0 -63
- package/es/components/code-snippet/src/code-snippet-card.js +0 -187
- package/es/components/code-snippet/src/code-snippet-card.js.map +0 -1
- package/es/components/feedback/src/feedback-buttons.template.d.ts +0 -4
- package/es/components/feedback/src/feedback-buttons.template.js +0 -79
- package/es/components/feedback/src/feedback-buttons.template.js.map +0 -1
- package/es/components/feedback/src/feedback.template.d.ts +0 -12
- package/es/components/feedback/src/feedback.template.js +0 -115
- package/es/components/feedback/src/feedback.template.js.map +0 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.d.ts +0 -3
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.js +0 -43
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.js.map +0 -1
- package/es/react/code-snippet-card.d.ts +0 -4
- package/es/react/code-snippet-card.js +0 -31
- package/es/react/code-snippet-card.js.map +0 -1
- package/es-custom/components/code-snippet/src/code-snippet-card.d.ts +0 -63
- package/es-custom/components/code-snippet/src/code-snippet-card.js +0 -187
- package/es-custom/components/code-snippet/src/code-snippet-card.js.map +0 -1
- package/es-custom/components/feedback/src/feedback-buttons.template.d.ts +0 -4
- package/es-custom/components/feedback/src/feedback-buttons.template.js +0 -79
- package/es-custom/components/feedback/src/feedback-buttons.template.js.map +0 -1
- package/es-custom/components/feedback/src/feedback.template.d.ts +0 -12
- package/es-custom/components/feedback/src/feedback.template.js +0 -115
- package/es-custom/components/feedback/src/feedback.template.js.map +0 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.template.d.ts +0 -3
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.template.js +0 -43
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.template.js.map +0 -1
- package/es-custom/react/code-snippet-card.d.ts +0 -4
- package/es-custom/react/code-snippet-card.js +0 -31
- package/es-custom/react/code-snippet-card.js.map +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// CSS Custom Properties for AI Chat Components
|
|
9
|
+
// This file exports all tokens as CSS custom properties that can be customized by consumers
|
|
10
|
+
|
|
11
|
+
@use "./utilities" as utilities;
|
|
12
|
+
@use "./tokens-layout" as layout;
|
|
13
|
+
@use "./tokens-component" as component;
|
|
14
|
+
|
|
15
|
+
// ============================================================================
|
|
16
|
+
// CSS Custom Properties Export
|
|
17
|
+
// ============================================================================
|
|
18
|
+
// These are the public API for customizing AI Chat Components
|
|
19
|
+
// All properties use the --cds-aichat-* prefix
|
|
20
|
+
:root {
|
|
21
|
+
// Layout tokens
|
|
22
|
+
@include utilities.declaration(
|
|
23
|
+
"messages-max-width",
|
|
24
|
+
layout.$messages-max-width
|
|
25
|
+
);
|
|
26
|
+
@include utilities.declaration(
|
|
27
|
+
"messages-min-width",
|
|
28
|
+
layout.$messages-min-width
|
|
29
|
+
);
|
|
30
|
+
@include utilities.declaration(
|
|
31
|
+
"workspace-min-width",
|
|
32
|
+
layout.$workspace-min-width
|
|
33
|
+
);
|
|
34
|
+
@include utilities.declaration("history-width", layout.$history-width);
|
|
35
|
+
@include utilities.declaration("card-max-width", layout.$card-max-width);
|
|
36
|
+
|
|
37
|
+
// Component tokens
|
|
38
|
+
@include utilities.declaration("border-radius", component.$border-radius);
|
|
39
|
+
@include utilities.declaration(
|
|
40
|
+
"card-border-radius",
|
|
41
|
+
component.$card-border-radius
|
|
42
|
+
);
|
|
43
|
+
@include utilities.declaration("border-radius", component.$border-radius);
|
|
44
|
+
@include utilities.declaration(
|
|
45
|
+
"border-radius-start-start",
|
|
46
|
+
component.$border-radius-start-start
|
|
47
|
+
);
|
|
48
|
+
@include utilities.declaration(
|
|
49
|
+
"border-radius-start-end",
|
|
50
|
+
component.$border-radius-start-end
|
|
51
|
+
);
|
|
52
|
+
@include utilities.declaration(
|
|
53
|
+
"border-radius-end-start",
|
|
54
|
+
component.$border-radius-end-start
|
|
55
|
+
);
|
|
56
|
+
@include utilities.declaration(
|
|
57
|
+
"border-radius-end-end",
|
|
58
|
+
component.$border-radius-end-end
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// ============================================================================
|
|
63
|
+
// Internal/Computed Properties (Documentation Only)
|
|
64
|
+
// ============================================================================
|
|
65
|
+
// These properties are set at runtime by JavaScript and should not be defined here:
|
|
66
|
+
// - --cds-aichat-header-height: Set dynamically by chat-shell component based on header size
|
|
67
|
+
// - --cds-aichat-scrollbar-width: May be set dynamically based on browser scrollbar width
|
|
68
|
+
// - --cds-aichat-homescreen-starter-index: Set per-element for staggered animations
|
|
69
|
+
|
|
70
|
+
// Made with Bob
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use "@carbon/layout";
|
|
9
|
+
@use "@carbon/styles/scss/theme";
|
|
10
|
+
@use "@carbon/styles/scss/utilities/convert" as *;
|
|
11
|
+
@use "./vars" as *;
|
|
12
|
+
|
|
13
|
+
// Note: This file is utilized at multiple places. please ensure changes here
|
|
14
|
+
// are compatible across all usages. since these modifiers are built with DRY principles,
|
|
15
|
+
// any changes here will affect all components that use these mixins.
|
|
16
|
+
|
|
17
|
+
/* ----- HELPERS ----- */
|
|
18
|
+
@mixin host-and-attr($selector) {
|
|
19
|
+
:host(#{$selector}),
|
|
20
|
+
#{$selector} {
|
|
21
|
+
@content;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin radius($positions...) {
|
|
26
|
+
@each $pos in $positions {
|
|
27
|
+
border-#{$pos}-radius: calc(
|
|
28
|
+
var(
|
|
29
|
+
--#{$prefix}-border-radius-#{$pos},
|
|
30
|
+
var(--#{$prefix}-border-radius)
|
|
31
|
+
) - rem(1px)
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* ----- SHARED CHILD + BUTTON ROUNDING ----- */
|
|
37
|
+
@mixin round-child($selector, $positions...) {
|
|
38
|
+
> #{$selector} {
|
|
39
|
+
@include radius($positions...);
|
|
40
|
+
|
|
41
|
+
&::part(button) {
|
|
42
|
+
@include radius($positions...);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ----- ROUNDED MODIFIERS ----- */
|
|
48
|
+
|
|
49
|
+
/* ----- BASE (HOST-LEVEL ROUNDING) ----- */
|
|
50
|
+
@mixin rounded-base {
|
|
51
|
+
@include host-and-attr('[data-rounded=""]') {
|
|
52
|
+
@include rounded-self;
|
|
53
|
+
|
|
54
|
+
&::part(link),
|
|
55
|
+
&::part(button) {
|
|
56
|
+
@include rounded-self;
|
|
57
|
+
|
|
58
|
+
outline-offset: rem(-1px);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
> :only-child {
|
|
62
|
+
@include rounded-self;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* ----- HOST-ONLY POSITIONAL ROUNDING ----- */
|
|
68
|
+
$rounded-host-map: (
|
|
69
|
+
top: (
|
|
70
|
+
start-start,
|
|
71
|
+
start-end,
|
|
72
|
+
),
|
|
73
|
+
top-left: (
|
|
74
|
+
start-start,
|
|
75
|
+
),
|
|
76
|
+
top-right: (
|
|
77
|
+
start-end,
|
|
78
|
+
),
|
|
79
|
+
bottom: (
|
|
80
|
+
end-start,
|
|
81
|
+
end-end,
|
|
82
|
+
),
|
|
83
|
+
bottom-left: (
|
|
84
|
+
end-start,
|
|
85
|
+
),
|
|
86
|
+
bottom-right: (
|
|
87
|
+
end-end,
|
|
88
|
+
),
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
@mixin rounded-host-positions {
|
|
92
|
+
@each $key, $positions in $rounded-host-map {
|
|
93
|
+
@include host-and-attr('[data-rounded="#{$key}"]') {
|
|
94
|
+
@include radius($positions...);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@mixin rounded-self {
|
|
100
|
+
@each $key, $positions in $rounded-host-map {
|
|
101
|
+
@include radius($positions...);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ----- NON-STACKED CHILDREN ROUNDING ----- */
|
|
106
|
+
$non-stacked-map: (
|
|
107
|
+
top: (
|
|
108
|
+
first: (
|
|
109
|
+
start-start,
|
|
110
|
+
),
|
|
111
|
+
last: (
|
|
112
|
+
start-end,
|
|
113
|
+
),
|
|
114
|
+
),
|
|
115
|
+
top-left: (
|
|
116
|
+
first: (
|
|
117
|
+
start-start,
|
|
118
|
+
),
|
|
119
|
+
),
|
|
120
|
+
top-right: (
|
|
121
|
+
last: (
|
|
122
|
+
start-end,
|
|
123
|
+
),
|
|
124
|
+
),
|
|
125
|
+
bottom: (
|
|
126
|
+
first: (
|
|
127
|
+
end-start,
|
|
128
|
+
),
|
|
129
|
+
last: (
|
|
130
|
+
end-end,
|
|
131
|
+
),
|
|
132
|
+
),
|
|
133
|
+
bottom-left: (
|
|
134
|
+
first: (
|
|
135
|
+
end-start,
|
|
136
|
+
),
|
|
137
|
+
),
|
|
138
|
+
bottom-right: (
|
|
139
|
+
last: (
|
|
140
|
+
end-end,
|
|
141
|
+
),
|
|
142
|
+
),
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
@mixin rounded-non-stacked {
|
|
146
|
+
@each $key, $children in $non-stacked-map {
|
|
147
|
+
@include host-and-attr('[data-rounded="#{$key}"]:not([data-stacked])') {
|
|
148
|
+
@each $pos, $radius in $children {
|
|
149
|
+
@include round-child(":#{$pos}-child", $radius...);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* ----- STACKED CHILDREN ROUNDING ----- */
|
|
156
|
+
$stacked-map: (
|
|
157
|
+
top: (
|
|
158
|
+
first: (
|
|
159
|
+
start-start,
|
|
160
|
+
start-end,
|
|
161
|
+
),
|
|
162
|
+
),
|
|
163
|
+
top-right: (
|
|
164
|
+
first: (
|
|
165
|
+
start-end,
|
|
166
|
+
),
|
|
167
|
+
),
|
|
168
|
+
top-left: (
|
|
169
|
+
first: (
|
|
170
|
+
start-start,
|
|
171
|
+
),
|
|
172
|
+
),
|
|
173
|
+
bottom: (
|
|
174
|
+
last: (
|
|
175
|
+
end-start,
|
|
176
|
+
end-end,
|
|
177
|
+
),
|
|
178
|
+
),
|
|
179
|
+
bottom-right: (
|
|
180
|
+
last: (
|
|
181
|
+
end-end,
|
|
182
|
+
),
|
|
183
|
+
),
|
|
184
|
+
bottom-left: (
|
|
185
|
+
last: (
|
|
186
|
+
end-start,
|
|
187
|
+
),
|
|
188
|
+
),
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
@mixin rounded-stacked {
|
|
192
|
+
@each $key, $children in $stacked-map {
|
|
193
|
+
@include host-and-attr('[data-rounded="#{$key}"][data-stacked]') {
|
|
194
|
+
@each $pos, $radius in $children {
|
|
195
|
+
@include round-child(":#{$pos}-child", $radius...);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* ----- PUBLIC ROUNDED MODIFIERS ENTRY POINT ----- */
|
|
202
|
+
@mixin rounded-modifiers {
|
|
203
|
+
@include rounded-base;
|
|
204
|
+
@include rounded-host-positions;
|
|
205
|
+
@include rounded-non-stacked;
|
|
206
|
+
@include rounded-stacked;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* ----- LAYOUT MODIFIERS ----- */
|
|
210
|
+
@mixin stacked-modifiers {
|
|
211
|
+
@include host-and-attr("[data-stacked]") {
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@mixin flush-modifiers {
|
|
218
|
+
@include host-and-attr('[data-flush=""]') {
|
|
219
|
+
margin: calc(-1 * layout.$spacing-05);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@include host-and-attr('[data-flush="top"]') {
|
|
223
|
+
margin-block-start: calc(-1 * layout.$spacing-05);
|
|
224
|
+
margin-inline: calc(-1 * layout.$spacing-05);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@include host-and-attr('[data-flush="bottom"]') {
|
|
228
|
+
margin-block-end: calc(-1 * layout.$spacing-05);
|
|
229
|
+
margin-inline: calc(-1 * layout.$spacing-05);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Component tokens for AI Chat Components
|
|
9
|
+
// These control component-specific styling like borders, radii, and typography
|
|
10
|
+
|
|
11
|
+
@use "@carbon/layout";
|
|
12
|
+
|
|
13
|
+
// ============================================================================
|
|
14
|
+
// Component Tokens - Public Configurable
|
|
15
|
+
// ============================================================================
|
|
16
|
+
// These tokens can be customized by developers to adjust component appearance
|
|
17
|
+
|
|
18
|
+
// Border radius tokens
|
|
19
|
+
$border-radius: 0 !default;
|
|
20
|
+
$card-border-radius: layout.$spacing-03 !default;
|
|
21
|
+
|
|
22
|
+
// Rounded modifier radius tokens
|
|
23
|
+
// These are used by the data-rounded modifier system to apply contextual rounding
|
|
24
|
+
$border-radius: layout.$spacing-03 !default;
|
|
25
|
+
$border-radius-start-start: layout.$spacing-03 !default;
|
|
26
|
+
$border-radius-start-end: layout.$spacing-03 !default;
|
|
27
|
+
$border-radius-end-start: layout.$spacing-03 !default;
|
|
28
|
+
$border-radius-end-end: layout.$spacing-03 !default;
|
|
29
|
+
|
|
30
|
+
// Made with Bob
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Layout tokens for AI Chat Components
|
|
9
|
+
// These control structural layout, spacing, and sizing across components
|
|
10
|
+
|
|
11
|
+
@use "@carbon/layout";
|
|
12
|
+
|
|
13
|
+
// ============================================================================
|
|
14
|
+
// Layout Tokens - Public Configurable
|
|
15
|
+
// ============================================================================
|
|
16
|
+
// These tokens can be customized by developers to adjust layout dimensions
|
|
17
|
+
|
|
18
|
+
// Messages area width constraints
|
|
19
|
+
$messages-max-width: 672px !default;
|
|
20
|
+
$messages-min-width: 320px !default;
|
|
21
|
+
|
|
22
|
+
// Workspace and history panel widths
|
|
23
|
+
$workspace-min-width: 480px !default;
|
|
24
|
+
$history-width: 320px !default;
|
|
25
|
+
|
|
26
|
+
// Card sizing
|
|
27
|
+
$card-max-width: 424px !default;
|
|
28
|
+
|
|
29
|
+
// Made with Bob
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Configuration for AI Chat Components CSS custom properties and SASS variables
|
|
9
|
+
// Following @carbon/styles patterns for consistent naming and structure
|
|
10
|
+
|
|
11
|
+
@use "./vars" as *;
|
|
12
|
+
|
|
13
|
+
// Feature flags for fallback behavior
|
|
14
|
+
$use-fallback-value: true !default;
|
|
15
|
+
|
|
16
|
+
// Utility functions following Carbon's custom property patterns
|
|
17
|
+
@function get-name($name) {
|
|
18
|
+
@return --#{$prefix}-#{$name};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@function get-var($name, $fallback: false) {
|
|
22
|
+
@if $fallback {
|
|
23
|
+
@return var(--#{$prefix}-#{$name}, #{$fallback});
|
|
24
|
+
}
|
|
25
|
+
@return var(--#{$prefix}-#{$name});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin declaration($name, $value) {
|
|
29
|
+
#{get-name($name)}: #{$value};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Made with Bob
|
package/scss/common.scss
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use "@carbon/styles/scss/layout";
|
|
9
|
+
@use "@carbon/styles/scss/utilities/component-reset";
|
|
10
|
+
|
|
11
|
+
:host {
|
|
12
|
+
@include layout.emit-layout-tokens;
|
|
13
|
+
@include component-reset.reset;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
div,
|
|
17
|
+
span,
|
|
18
|
+
applet,
|
|
19
|
+
object,
|
|
20
|
+
iframe,
|
|
21
|
+
h1,
|
|
22
|
+
h2,
|
|
23
|
+
h3,
|
|
24
|
+
h4,
|
|
25
|
+
h5,
|
|
26
|
+
h6,
|
|
27
|
+
p,
|
|
28
|
+
blockquote,
|
|
29
|
+
pre,
|
|
30
|
+
a,
|
|
31
|
+
abbr,
|
|
32
|
+
acronym,
|
|
33
|
+
address,
|
|
34
|
+
big,
|
|
35
|
+
cite,
|
|
36
|
+
code,
|
|
37
|
+
del,
|
|
38
|
+
dfn,
|
|
39
|
+
em,
|
|
40
|
+
img,
|
|
41
|
+
ins,
|
|
42
|
+
kbd,
|
|
43
|
+
q,
|
|
44
|
+
s,
|
|
45
|
+
samp,
|
|
46
|
+
small,
|
|
47
|
+
strike,
|
|
48
|
+
strong,
|
|
49
|
+
sub,
|
|
50
|
+
sup,
|
|
51
|
+
tt,
|
|
52
|
+
var,
|
|
53
|
+
b,
|
|
54
|
+
u,
|
|
55
|
+
i,
|
|
56
|
+
center,
|
|
57
|
+
dl,
|
|
58
|
+
dt,
|
|
59
|
+
dd,
|
|
60
|
+
ol,
|
|
61
|
+
ul,
|
|
62
|
+
li,
|
|
63
|
+
fieldset,
|
|
64
|
+
form,
|
|
65
|
+
label,
|
|
66
|
+
legend,
|
|
67
|
+
table,
|
|
68
|
+
caption,
|
|
69
|
+
tbody,
|
|
70
|
+
tfoot,
|
|
71
|
+
thead,
|
|
72
|
+
tr,
|
|
73
|
+
th,
|
|
74
|
+
td,
|
|
75
|
+
article,
|
|
76
|
+
aside,
|
|
77
|
+
canvas,
|
|
78
|
+
details,
|
|
79
|
+
embed,
|
|
80
|
+
figure,
|
|
81
|
+
figcaption,
|
|
82
|
+
footer,
|
|
83
|
+
header,
|
|
84
|
+
hgroup,
|
|
85
|
+
menu,
|
|
86
|
+
nav,
|
|
87
|
+
output,
|
|
88
|
+
ruby,
|
|
89
|
+
section,
|
|
90
|
+
summary,
|
|
91
|
+
time,
|
|
92
|
+
mark,
|
|
93
|
+
audio,
|
|
94
|
+
video {
|
|
95
|
+
padding: 0;
|
|
96
|
+
border: 0;
|
|
97
|
+
margin: 0;
|
|
98
|
+
font: inherit;
|
|
99
|
+
font-size: 1em;
|
|
100
|
+
vertical-align: baseline;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Chrome 62 fix
|
|
104
|
+
button,
|
|
105
|
+
select,
|
|
106
|
+
input,
|
|
107
|
+
textarea {
|
|
108
|
+
border-radius: 0;
|
|
109
|
+
font-family: inherit;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// HTML5 display-role reset for older browsers
|
|
113
|
+
article,
|
|
114
|
+
aside,
|
|
115
|
+
details,
|
|
116
|
+
figcaption,
|
|
117
|
+
figure,
|
|
118
|
+
footer,
|
|
119
|
+
header,
|
|
120
|
+
hgroup,
|
|
121
|
+
menu,
|
|
122
|
+
nav,
|
|
123
|
+
section {
|
|
124
|
+
display: block;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// List reset
|
|
128
|
+
ol,
|
|
129
|
+
ul {
|
|
130
|
+
list-style: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Blockquote reset
|
|
134
|
+
blockquote,
|
|
135
|
+
q {
|
|
136
|
+
quotes: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
blockquote::before,
|
|
140
|
+
blockquote::after,
|
|
141
|
+
q::before,
|
|
142
|
+
q::after {
|
|
143
|
+
content: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Table reset
|
|
147
|
+
table {
|
|
148
|
+
border-collapse: collapse;
|
|
149
|
+
border-spacing: 0;
|
|
150
|
+
}
|
package/scss/grid.scss
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use "@carbon/grid";
|
|
9
|
+
|
|
10
|
+
// Emit the css-grid styles
|
|
11
|
+
@include grid.css-grid();
|
package/scss/themes.scss
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use "@carbon/styles/scss/config" as *;
|
|
9
|
+
@use "@carbon/themes/scss/themes";
|
|
10
|
+
@use "@carbon/styles/scss/theme";
|
|
11
|
+
|
|
12
|
+
@use "@carbon/styles/scss/components/button/tokens" as button-tokens;
|
|
13
|
+
@use "@carbon/styles/scss/components/tag/tokens" as tag-tokens;
|
|
14
|
+
@use "@carbon/styles/scss/components/notification/tokens" as notification-tokens;
|
|
15
|
+
@include theme.add-component-tokens(button-tokens.$button-tokens);
|
|
16
|
+
@include theme.add-component-tokens(tag-tokens.$tag-tokens);
|
|
17
|
+
@include theme.add-component-tokens(notification-tokens.$notification-tokens);
|
|
18
|
+
|
|
19
|
+
.#{$prefix}-theme-zone-white {
|
|
20
|
+
@include theme.theme(themes.$white);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.#{$prefix}-theme-zone-g10 {
|
|
24
|
+
@include theme.theme(themes.$g10);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.#{$prefix}-theme-zone-g90 {
|
|
28
|
+
@include theme.theme(themes.$g90);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.#{$prefix}-theme-zone-g100 {
|
|
32
|
+
@include theme.theme(themes.$g100);
|
|
33
|
+
}
|
package/scss/vars.scss
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// prefix for Carbon Design System components
|
|
9
|
+
$cds-prefix: "cds" !default;
|
|
10
|
+
|
|
11
|
+
// Set this to a suitable prefix for your project to use in style files
|
|
12
|
+
$prefix: "#{$cds-prefix}-aichat" !default;
|