@carbon/ai-chat-components 0.7.1 → 0.8.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 +4 -1
- package/custom-elements.json +1705 -467
- package/es/components/card/src/card-footer.d.ts +1 -0
- package/es/components/card/src/card-footer.js +3 -2
- 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 -0
- 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.d.ts +1 -0
- package/es/components/card/src/card.js +3 -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 +4 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +5 -1
- 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 +4 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +5 -1
- 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 +4 -0
- package/es/components/chain-of-thought/src/chain-of-thought.js +5 -1
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +4 -0
- package/es/components/chain-of-thought/src/tool-call-data.js +5 -1
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es/components/chat-button/src/chat-button.js +4 -3
- package/es/components/chat-button/src/chat-button.js.map +1 -1
- package/es/components/chat-shell/index.d.ts +10 -0
- package/es/{node_modules/@carbon/utilities/es/documentLang/documentLang.js → components/chat-shell/index.js} +3 -2
- package/es/components/chat-shell/index.js.map +1 -0
- package/es/components/chat-shell/src/cds-aichat-panel.d.ts +66 -0
- package/es/components/chat-shell/src/cds-aichat-panel.js +433 -0
- package/es/components/chat-shell/src/cds-aichat-panel.js.map +1 -0
- package/es/components/chat-shell/src/cds-aichat-panel.scss.js +13 -0
- package/es/components/chat-shell/src/cds-aichat-panel.scss.js.map +1 -0
- package/es/components/chat-shell/src/cds-aichat-shell.d.ts +73 -0
- package/es/components/chat-shell/src/cds-aichat-shell.js +554 -0
- package/es/components/chat-shell/src/cds-aichat-shell.js.map +1 -0
- package/es/components/chat-shell/src/cds-aichat-shell.scss.js +13 -0
- package/es/components/chat-shell/src/cds-aichat-shell.scss.js.map +1 -0
- package/es/components/chat-shell/src/panel-manager.d.ts +29 -0
- package/es/components/chat-shell/src/panel-manager.js +144 -0
- package/es/components/chat-shell/src/panel-manager.js.map +1 -0
- package/es/components/chat-shell/src/workspace-manager.d.ts +118 -0
- package/es/components/chat-shell/src/workspace-manager.js +465 -0
- package/es/components/chat-shell/src/workspace-manager.js.map +1 -0
- package/es/components/code-snippet/src/code-snippet-card.js +2 -1
- package/es/components/code-snippet/src/code-snippet-card.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.d.ts +1 -0
- package/es/components/code-snippet/src/code-snippet.js +3 -1
- 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/feedback/src/feedback-buttons.d.ts +4 -0
- package/es/components/feedback/src/feedback-buttons.js +6 -1
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +1 -0
- package/es/components/feedback/src/feedback.js +3 -1
- 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-token-tree.js +1 -1
- package/es/components/markdown/src/markdown.d.ts +4 -0
- package/es/components/markdown/src/markdown.js +6 -1
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js +1 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js +1 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js +1 -1
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js +1 -1
- package/es/components/processing/src/processing.d.ts +4 -0
- package/es/components/processing/src/processing.js +6 -1
- package/es/components/processing/src/processing.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-step.d.ts +4 -0
- package/es/components/reasoning-steps/src/reasoning-step.js +5 -1
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +4 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +6 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.d.ts +4 -0
- package/es/components/reasoning-steps/src/reasoning-steps.js +5 -1
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es/components/table/src/table.d.ts +1 -0
- package/es/components/table/src/table.js +5 -3
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/table/src/table.template.js +2 -2
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/toolbar/src/toolbar.js +3 -4
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +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.js +2 -2
- 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.js +2 -2
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.js +2 -1
- 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/react/__tests__/jest.setup.js +83 -0
- package/es/react/__tests__/jest.setup.js.map +1 -0
- package/es/react/chat-shell.d.ts +12 -0
- package/es/react/chat-shell.js +28 -0
- package/es/react/chat-shell.js.map +1 -0
- package/es/react/panel.d.ts +4 -0
- package/{es-custom/react/inline-notification.js → es/react/panel.js} +12 -6
- package/es/react/panel.js.map +1 -0
- package/es/react/toolbar.d.ts +14 -2
- package/es/react/toolbar.js +59 -9
- package/es/react/toolbar.js.map +1 -1
- package/es/react/utils/iconTransform.d.ts +37 -0
- package/es/react/utils/iconTransform.js +176 -0
- package/es/react/utils/iconTransform.js.map +1 -0
- package/es-custom/components/card/src/card-footer.d.ts +1 -0
- package/es-custom/components/card/src/card-footer.js +3 -2
- 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 -0
- 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.d.ts +1 -0
- package/es-custom/components/card/src/card.js +3 -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 +4 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +5 -1
- 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 +4 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +5 -1
- 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 +4 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js +5 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +4 -0
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +5 -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.js +4 -3
- package/es-custom/components/chat-button/src/chat-button.js.map +1 -1
- package/es-custom/components/chat-shell/index.d.ts +10 -0
- package/es-custom/{node_modules/@carbon/utilities/es/documentLang/documentLang.js → components/chat-shell/index.js} +3 -2
- package/es-custom/components/chat-shell/index.js.map +1 -0
- package/es-custom/components/chat-shell/src/cds-aichat-panel.d.ts +66 -0
- package/es-custom/components/chat-shell/src/cds-aichat-panel.js +433 -0
- package/es-custom/components/chat-shell/src/cds-aichat-panel.js.map +1 -0
- package/es-custom/components/chat-shell/src/cds-aichat-panel.scss.js +13 -0
- package/es-custom/components/chat-shell/src/cds-aichat-panel.scss.js.map +1 -0
- package/es-custom/components/chat-shell/src/cds-aichat-shell.d.ts +73 -0
- package/es-custom/components/chat-shell/src/cds-aichat-shell.js +554 -0
- package/es-custom/components/chat-shell/src/cds-aichat-shell.js.map +1 -0
- package/es-custom/components/chat-shell/src/cds-aichat-shell.scss.js +13 -0
- package/es-custom/components/chat-shell/src/cds-aichat-shell.scss.js.map +1 -0
- package/es-custom/components/chat-shell/src/panel-manager.d.ts +29 -0
- package/es-custom/components/chat-shell/src/panel-manager.js +144 -0
- package/es-custom/components/chat-shell/src/panel-manager.js.map +1 -0
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +118 -0
- package/es-custom/components/chat-shell/src/workspace-manager.js +465 -0
- package/es-custom/components/chat-shell/src/workspace-manager.js.map +1 -0
- package/es-custom/components/code-snippet/src/code-snippet-card.js +2 -1
- package/es-custom/components/code-snippet/src/code-snippet-card.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +1 -0
- package/es-custom/components/code-snippet/src/code-snippet.js +3 -1
- 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/feedback/src/feedback-buttons.d.ts +4 -0
- package/es-custom/components/feedback/src/feedback-buttons.js +6 -1
- package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.d.ts +1 -0
- package/es-custom/components/feedback/src/feedback.js +3 -1
- 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-token-tree.js +1 -1
- package/es-custom/components/markdown/src/markdown.d.ts +4 -0
- package/es-custom/components/markdown/src/markdown.js +6 -1
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/code.js +1 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js +1 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js +1 -1
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js +1 -1
- package/es-custom/components/processing/src/processing.d.ts +4 -0
- package/es-custom/components/processing/src/processing.js +6 -1
- package/es-custom/components/processing/src/processing.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +4 -0
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +5 -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 +4 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +6 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +4 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +5 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es-custom/components/table/src/table.d.ts +1 -0
- package/es-custom/components/table/src/table.js +5 -3
- package/es-custom/components/table/src/table.js.map +1 -1
- package/es-custom/components/table/src/table.template.js +2 -2
- package/es-custom/components/table/src/table.template.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.js +3 -4
- 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/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.js +2 -2
- 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.js +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.js +2 -1
- 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/react/__tests__/jest.setup.js +83 -0
- package/es-custom/react/__tests__/jest.setup.js.map +1 -0
- package/es-custom/react/chat-shell.d.ts +12 -0
- package/es-custom/react/chat-shell.js +28 -0
- package/es-custom/react/chat-shell.js.map +1 -0
- package/es-custom/react/panel.d.ts +4 -0
- package/es-custom/react/{ai-label.js → panel.js} +12 -6
- package/es-custom/react/panel.js.map +1 -0
- package/es-custom/react/toolbar.d.ts +14 -2
- package/es-custom/react/toolbar.js +59 -9
- package/es-custom/react/toolbar.js.map +1 -1
- package/es-custom/react/utils/iconTransform.d.ts +37 -0
- package/es-custom/react/utils/iconTransform.js +176 -0
- package/es-custom/react/utils/iconTransform.js.map +1 -0
- package/package.json +21 -6
- package/telemetry.yml +125 -2
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +0 -1
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +0 -11
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +0 -1
- package/es/react/ai-label.d.ts +0 -4
- package/es/react/ai-label.js +0 -28
- package/es/react/ai-label.js.map +0 -1
- package/es/react/button.d.ts +0 -6
- package/es/react/button.js +0 -29
- package/es/react/button.js.map +0 -1
- package/es/react/content-switcher.d.ts +0 -7
- package/es/react/content-switcher.js +0 -37
- package/es/react/content-switcher.js.map +0 -1
- package/es/react/icon-button.d.ts +0 -4
- package/es/react/icon-button.js +0 -28
- package/es/react/icon-button.js.map +0 -1
- package/es/react/icon.d.ts +0 -4
- package/es/react/icon.js +0 -28
- package/es/react/icon.js.map +0 -1
- package/es/react/inline-notification.d.ts +0 -4
- package/es/react/inline-notification.js +0 -28
- package/es/react/inline-notification.js.map +0 -1
- package/es/react/overflow-menu.d.ts +0 -9
- package/es/react/overflow-menu.js +0 -40
- package/es/react/overflow-menu.js.map +0 -1
- package/es/react/tag.d.ts +0 -4
- package/es/react/tag.js +0 -28
- package/es/react/tag.js.map +0 -1
- package/es/react/tile.d.ts +0 -7
- package/es/react/tile.js +0 -34
- package/es/react/tile.js.map +0 -1
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +0 -1
- package/es-custom/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +0 -11
- package/es-custom/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +0 -1
- package/es-custom/react/ai-label.d.ts +0 -4
- package/es-custom/react/ai-label.js.map +0 -1
- package/es-custom/react/button.d.ts +0 -6
- package/es-custom/react/button.js +0 -29
- package/es-custom/react/button.js.map +0 -1
- package/es-custom/react/content-switcher.d.ts +0 -7
- package/es-custom/react/content-switcher.js +0 -37
- package/es-custom/react/content-switcher.js.map +0 -1
- package/es-custom/react/icon-button.d.ts +0 -4
- package/es-custom/react/icon-button.js +0 -28
- package/es-custom/react/icon-button.js.map +0 -1
- package/es-custom/react/icon.d.ts +0 -4
- package/es-custom/react/icon.js +0 -28
- package/es-custom/react/icon.js.map +0 -1
- package/es-custom/react/inline-notification.d.ts +0 -4
- package/es-custom/react/inline-notification.js.map +0 -1
- package/es-custom/react/overflow-menu.d.ts +0 -9
- package/es-custom/react/overflow-menu.js +0 -40
- package/es-custom/react/overflow-menu.js.map +0 -1
- package/es-custom/react/tag.d.ts +0 -4
- package/es-custom/react/tag.js +0 -28
- package/es-custom/react/tag.js.map +0 -1
- package/es-custom/react/tile.d.ts +0 -7
- package/es-custom/react/tile.js +0 -34
- package/es-custom/react/tile.js.map +0 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css([":host :host([data-rounded=\"\"]),:host [data-rounded=\"\"]{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=\"\"])::part(button),:host :host([data-rounded=\"\"])::part(link),:host [data-rounded=\"\"]::part(button),:host [data-rounded=\"\"]::part(link){border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);outline-offset:-.0625rem}:host :host([data-rounded=\"\"])>:only-child,:host [data-rounded=\"\"]>:only-child{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top]),:host [data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top-left]),:host [data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top-right]),:host [data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom]),:host [data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom-left]),:host [data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom-right]),:host [data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child,:host [data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child,:host [data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host [data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host [data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host [data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host [data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host [data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host [data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child,:host [data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child::part(button),:host [data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child,:host [data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host [data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child,:host [data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host [data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child,:host [data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host [data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child,:host [data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child,:host [data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host{display:block}:host .cds-aichat-toolbar{align-items:flex-start;block-size:100%;display:flex;min-block-size:2.5rem}:host .cds-aichat-toolbar cds-button:not(:defined),:host .cds-aichat-toolbar cds-overflow-menu:not(:defined){display:none}:host .cds-aichat-toolbar-overflow-icon{align-self:unset;color:var(--cds-icon-primary,#161616)}:host .cds-aichat-toolbar [data-floating-menu-container]{position:relative}:host .cds-aichat-toolbar [data-hidden]:not([data-fixed]){display:none}:host .cds-aichat-toolbar__title{color:var(--cds-text-secondary,#525252);margin-block:auto;margin-inline-end:auto;min-inline-size:4rem;padding-inline:.75rem}:host .cds-aichat-toolbar__fixed-actions{margin-block:auto}:host ::slotted([slot=decorator]){min-block-size:2.5rem;min-inline-size:2.5rem}"]);
|
|
10
|
+
var styles = css([":host :host([data-rounded=\"\"]),:host [data-rounded=\"\"]{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=\"\"])::part(button),:host :host([data-rounded=\"\"])::part(link),:host [data-rounded=\"\"]::part(button),:host [data-rounded=\"\"]::part(link){border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);outline-offset:-.0625rem}:host :host([data-rounded=\"\"])>:only-child,:host [data-rounded=\"\"]>:only-child{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host :host([data-rounded=top]),:host [data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left]),:host [data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right]),:host [data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]),:host [data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]),:host [data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]),:host [data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child,:host [data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child,:host [data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host [data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host [data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host [data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host [data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host [data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host [data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child,:host [data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child::part(button),:host [data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child,:host [data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host [data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child,:host [data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host [data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child,:host [data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host [data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child,:host [data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child,:host [data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host{display:block}:host .cds-aichat-toolbar{align-items:flex-start;block-size:100%;display:flex;min-block-size:2.5rem}:host .cds-aichat-toolbar cds-button:not(:defined),:host .cds-aichat-toolbar cds-overflow-menu:not(:defined){display:none}:host .cds-aichat-toolbar-overflow-icon{align-self:unset;color:var(--cds-icon-primary,#161616)}:host .cds-aichat-toolbar [data-floating-menu-container]{position:relative}:host .cds-aichat-toolbar [data-hidden]:not([data-fixed]){display:none}:host .cds-aichat-toolbar__title{color:var(--cds-text-secondary,#525252);margin-block:auto;margin-inline-end:auto;min-inline-size:4rem;padding-inline:.75rem}:host .cds-aichat-toolbar__fixed-actions{margin-block:auto}:host ::slotted([slot=decorator]){min-block-size:2.5rem;min-inline-size:2.5rem}"]);
|
|
11
11
|
|
|
12
12
|
export { styles as default };
|
|
13
13
|
//# sourceMappingURL=toolbar.scss.js.map
|
|
@@ -10,6 +10,7 @@ import { LitElement, html } from 'lit';
|
|
|
10
10
|
import { property } from 'lit/decorators.js';
|
|
11
11
|
import styles from './workspace-shell.scss.js';
|
|
12
12
|
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
13
|
+
import prefix from '../../../globals/settings.js';
|
|
13
14
|
|
|
14
15
|
/*
|
|
15
16
|
* Copyright IBM Corp. 2025
|
|
@@ -42,7 +43,7 @@ __decorate([
|
|
|
42
43
|
property({ type: String, reflect: true })
|
|
43
44
|
], CDSAIChatWorkspaceShellBody.prototype, "slot", void 0);
|
|
44
45
|
CDSAIChatWorkspaceShellBody = __decorate([
|
|
45
|
-
carbonElement(
|
|
46
|
+
carbonElement(`${prefix}-workspace-shell-body`)
|
|
46
47
|
], CDSAIChatWorkspaceShellBody);
|
|
47
48
|
var CDSAIChatWorkspaceShellBody$1 = CDSAIChatWorkspaceShellBody;
|
|
48
49
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-shell-body.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-body.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace-shell-body.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-body.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAQH;;;;;AAKG;AAEH,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,UAAU,CAAA;AAApD,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,MAAM;IAKf;IAHE,MAAM,GAAA;QACJ,OAAO,IAAI,CAAA,CAAA,eAAA,CAAiB;IAC9B;;AAVO,2BAAA,CAAA,MAAM,GAAG,MAAH;AAMb,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AAC3B,CAAA,EAAA,2BAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAPV,2BAA2B,GAAA,UAAA,CAAA;AADhC,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,qBAAA,CAAuB;AACzC,CAAA,EAAA,2BAA2B,CAYhC;AAGD,oCAAe,2BAA2B;;;;"}
|
|
@@ -11,8 +11,8 @@ import { state, property } from 'lit/decorators.js';
|
|
|
11
11
|
import '@carbon/web-components/es/components/button/button.js';
|
|
12
12
|
import { iconLoader } from '@carbon/web-components/es/globals/internal/icon-loader.js';
|
|
13
13
|
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
14
|
-
import styles from './workspace-shell-footer.scss.js';
|
|
15
14
|
import prefix from '../../../globals/settings.js';
|
|
15
|
+
import styles from './workspace-shell-footer.scss.js';
|
|
16
16
|
|
|
17
17
|
/*
|
|
18
18
|
* Copyright IBM Corp. 2025
|
|
@@ -136,7 +136,7 @@ __decorate([
|
|
|
136
136
|
property({ type: Array, reflect: false })
|
|
137
137
|
], CDSAIChatWorkspaceShellFooter.prototype, "actions", void 0);
|
|
138
138
|
CDSAIChatWorkspaceShellFooter = __decorate([
|
|
139
|
-
carbonElement(
|
|
139
|
+
carbonElement(`${prefix}-workspace-shell-footer`)
|
|
140
140
|
], CDSAIChatWorkspaceShellFooter);
|
|
141
141
|
var CDSAIChatWorkspaceShellFooter$1 = CDSAIChatWorkspaceShellFooter;
|
|
142
142
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-shell-footer.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-footer.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;
|
|
1
|
+
{"version":3,"file":"workspace-shell-footer.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-footer.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAqBH;;;;AAIG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU,CAAA;AAAtD,IAAA,WAAA,GAAA;;QAMU,IAAA,CAAA,UAAU,GAAG,KAAK;AAE1B;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,QAAQ;QAGf,IAAA,CAAA,OAAO,GAAa,EAAE;IA4GxB;IA1GE,iBAAiB,GAAA;QACf,KAAK,CAAC,iBAAiB,EAAE;AACzB,QAAA,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,QAAQ,CAAC;;AAG3C,QAAA,IAAI,CAAC,GAAG,GAAG,IAAI,cAAc,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;AAC1D,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC;QACtC;IACF;AAEA,IAAA,OAAO,CAAC,YAA8B,EAAA;AACpC,QAAA,IAAI,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;YAC/B,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC7B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA,EAAG,MAAM,CAAA,sCAAA,CAAwC,CAAC;YACvE;iBAAO;gBACL,IAAI,CAAC,SAAS,CAAC,MAAM,CACnB,CAAA,EAAG,MAAM,CAAA,sCAAA,CAAwC,CAClD;YACH;QACF;;AAEA,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE;AACnB,YAAA,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,EAAE,CAAC;QACvC;aAAO;AACL,YAAA,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC;QACtC;IACF;IAEA,MAAM,GAAA;QACJ,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC;AAC9C,QAAA,OAAO,IAAI,CAAA;AACP,MAAA,EAAA,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,KAAI;AACtB,YAAA,OAAO,IAAI,CAAA;;AAEA,iBAAA,EAAA,MAAM,CAAC,IAAI;AACN,sBAAA,EAAA,MAAM,CAAC,QAAQ;;AAElB,mBAAA,EAAA,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;;AAEtC,YAAA,EAAA,MAAM,CAAC,KAAK;AACZ,YAAA,EAAA,MAAM,CAAC,IAAI,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;SAE7D;AACH,QAAA,CAAC,CAAC;KACH;IACH;IAEA,oBAAoB,GAAA;QAClB,KAAK,CAAC,oBAAoB,EAAE;AAC5B,QAAA,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE;IACxB;AAEQ,IAAA,YAAY,CAAC,MAAc,EAAA;AACjC,QAAA,MAAM,IAAI,GAAG;AACX,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,QAAQ,EAAE,IAAI;AACd,YAAA,MAAM,EAAE,MAAM;SACf;QACD,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CACZ,IAAI,CAAC;AACH,aAAA,gBAAgB,EACnB,IAAI,CACL,CACF;IACH;IAEQ,cAAc,GAAA;AACpB,QAAA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,GAAG,GAAG;AAE3C,QAAA,IAAI,WAAW,KAAK,IAAI,CAAC,UAAU,EAAE;AACnC,YAAA,IAAI,CAAC,UAAU,GAAG,WAAW;;YAG7B,IAAI,CAAC,aAAa,EAAE;QACtB;IACF;AAEQ,IAAA,YAAY,CAAC,OAAiB,EAAA;AACpC,QAAA,MAAM,IAAI,GAAG,CAAC,MAAc,KAAI;AAC9B,YAAA,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,SAAS;AACrC,YAAA,QACE;AACE,gBAAA,KAAK,EAAE,CAAC;AACR,gBAAA,eAAe,EAAE,CAAC;AAClB,gBAAA,QAAQ,EAAE,CAAC;AACX,gBAAA,MAAM,EAAE,CAAC;AACT,gBAAA,OAAO,EAAE,CAAC;AACX,aAAA,CAAC,IAAI,CAAC,IAAI,CAAC;AAEhB,QAAA,CAAC;AAED,QAAA,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAI;YAChC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;AAC9B,YAAA,OAAO,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,GAAG,IAAI;AACvC,QAAA,CAAC,CAAC;IACJ;AAEA;;AAEG;AAEH,IAAA,WAAW,gBAAgB,GAAA;QACzB,OAAO,CAAA,EAAG,MAAM,CAAA,+BAAA,CAAiC;IACnD;;AAzHO,6BAAA,CAAA,MAAM,GAAG,MAAH;AAKL,UAAA,CAAA;AADP,IAAA,KAAK;AACqB,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAM3B,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AACzB,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAGhB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE;AAClB,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAfnB,6BAA6B,GAAA,UAAA,CAAA;AADlC,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,uBAAA,CAAyB;AAC3C,CAAA,EAAA,6BAA6B,CA2HlC;AAGD,sCAAe,6BAA6B;;;;"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css([":host([data-rounded=\"\"]),[data-rounded=\"\"]{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=\"\"])::part(button),:host([data-rounded=\"\"])::part(link),[data-rounded=\"\"]::part(button),[data-rounded=\"\"]::part(link){border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);outline-offset:-.0625rem}:host([data-rounded=\"\"])>:only-child,[data-rounded=\"\"]>:only-child{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top]),[data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top-left]),[data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top-right]),[data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom]),[data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom-left]),[data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom-right]),[data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:first-child,[data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),[data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:last-child,[data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),[data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top-left]:not([data-stacked]))>:first-child,[data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),[data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top-right]:not([data-stacked]))>:last-child,[data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),[data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:first-child,[data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),[data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:last-child,[data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),[data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,[data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),[data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,[data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),[data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top][data-stacked])>:first-child,[data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top][data-stacked])>:first-child::part(button),[data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top-right][data-stacked])>:first-child,[data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top-right][data-stacked])>:first-child::part(button),[data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top-left][data-stacked])>:first-child,[data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top-left][data-stacked])>:first-child::part(button),[data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom][data-stacked])>:last-child,[data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom][data-stacked])>:last-child::part(button),[data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom-right][data-stacked])>:last-child,[data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),[data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom-left][data-stacked])>:last-child,[data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),[data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host(cds-aichat-workspace-shell-footer){--cds-aichat-rounded-modifier-radius:0.5rem;align-items:stretch;border-block-start:solid .0625rem var(--cds-border-subtle-00,#e0e0e0);display:grid}@media (max-width:41.98rem){:host(cds-aichat-workspace-shell-footer){grid-auto-flow:row;grid-template-columns:1fr}}:host(.cds-aichat-workspace-shell-footer__three-buttons){grid-template-columns:50% 25% 25%}@media (max-width:41.98rem){:host(.cds-aichat-workspace-shell-footer__three-buttons){grid-auto-flow:row;grid-template-columns:1fr}}:host(:not(.cds-aichat-workspace-shell-footer__three-buttons)){grid-template-columns:repeat(auto-fit,minmax(80px,auto))}@media (max-width:41.98rem){:host(:not(.cds-aichat-workspace-shell-footer__three-buttons)){grid-auto-flow:row;grid-template-columns:1fr}}"]);
|
|
10
|
+
var styles = css([":host([data-rounded=\"\"]),[data-rounded=\"\"]{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=\"\"])::part(button),:host([data-rounded=\"\"])::part(link),[data-rounded=\"\"]::part(button),[data-rounded=\"\"]::part(link){border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem);outline-offset:-.0625rem}:host([data-rounded=\"\"])>:only-child,[data-rounded=\"\"]>:only-child{border-radius:calc(var(--cds-aichat-rounded-modifier-radius) - .0625rem)}:host([data-rounded=top]),[data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left]),[data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right]),[data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]),[data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left]),[data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right]),[data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:first-child,[data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),[data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:last-child,[data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),[data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left]:not([data-stacked]))>:first-child,[data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),[data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right]:not([data-stacked]))>:last-child,[data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),[data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:first-child,[data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),[data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:last-child,[data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),[data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,[data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),[data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,[data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),[data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top][data-stacked])>:first-child,[data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top][data-stacked])>:first-child::part(button),[data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right][data-stacked])>:first-child,[data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-right][data-stacked])>:first-child::part(button),[data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left][data-stacked])>:first-child,[data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=top-left][data-stacked])>:first-child::part(button),[data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-start-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom][data-stacked])>:last-child,[data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom][data-stacked])>:last-child::part(button),[data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right][data-stacked])>:last-child,[data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),[data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-end, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left][data-stacked])>:last-child,[data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),[data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-rounded-modifier-radius-end-start, var(--cds-aichat-rounded-modifier-radius)) - .0625rem)}:host(cds-aichat-workspace-shell-footer){--cds-aichat-rounded-modifier-radius:0.5rem;align-items:stretch;border-block-start:solid .0625rem var(--cds-border-subtle-00,#e0e0e0);display:grid}@media (max-width:41.98rem){:host(cds-aichat-workspace-shell-footer){grid-auto-flow:row;grid-template-columns:1fr}}:host(.cds-aichat-workspace-shell-footer__three-buttons){grid-template-columns:50% 25% 25%}@media (max-width:41.98rem){:host(.cds-aichat-workspace-shell-footer__three-buttons){grid-auto-flow:row;grid-template-columns:1fr}}:host(:not(.cds-aichat-workspace-shell-footer__three-buttons)){grid-template-columns:repeat(auto-fit,minmax(80px,auto))}@media (max-width:41.98rem){:host(:not(.cds-aichat-workspace-shell-footer__three-buttons)){grid-auto-flow:row;grid-template-columns:1fr}}"]);
|
|
11
11
|
|
|
12
12
|
export { styles as default };
|
|
13
13
|
//# sourceMappingURL=workspace-shell-footer.scss.js.map
|
|
@@ -9,8 +9,8 @@ import { __decorate } from 'tslib';
|
|
|
9
9
|
import { LitElement, html } from 'lit';
|
|
10
10
|
import { property } from 'lit/decorators.js';
|
|
11
11
|
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
12
|
-
import styles from './workspace-shell-header.scss.js';
|
|
13
12
|
import prefix from '../../../globals/settings.js';
|
|
13
|
+
import styles from './workspace-shell-header.scss.js';
|
|
14
14
|
|
|
15
15
|
/*
|
|
16
16
|
* Copyright IBM Corp. 2025
|
|
@@ -70,7 +70,7 @@ __decorate([
|
|
|
70
70
|
property({ type: String, attribute: "subtitle-text" })
|
|
71
71
|
], CDSAIChatWorkspaceShellHeader.prototype, "subTitleText", void 0);
|
|
72
72
|
CDSAIChatWorkspaceShellHeader = __decorate([
|
|
73
|
-
carbonElement(
|
|
73
|
+
carbonElement(`${prefix}-workspace-shell-header`)
|
|
74
74
|
], CDSAIChatWorkspaceShellHeader);
|
|
75
75
|
var CDSAIChatWorkspaceShellHeader$1 = CDSAIChatWorkspaceShellHeader;
|
|
76
76
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-shell-header.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-header.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;AAOG;
|
|
1
|
+
{"version":3,"file":"workspace-shell-header.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell-header.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAQH;;;;;;;;AAQG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU,CAAA;AAAtD,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,QAAQ;IAmCjB;IArBE,MAAM,GAAA;AACJ,QAAA,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,IAAI;AACxC,QAAA,OAAO,IAAI,CAAA;oBACK,MAAM,CAAA;UAChB,SAAS;AACX,YAAA,IAAI,CAAA;AACW,qBAAA,EAAA,MAAM,mCAAmC,SAAS,CAAA;AAChE,QAAA,CAAA;UACC,YAAY;AACd,YAAA,IAAI,CAAA;uBACW,MAAM,CAAA;cACf,YAAY;;AAEjB,QAAA,CAAA;;;oBAGW,MAAM,CAAA;;;KAGrB;IACH;;AAxCO,6BAAA,CAAA,MAAM,GAAG,MAAH;AAMb,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AACzB,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAMhB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE;AACzC,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AAMV,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE;AACzC,CAAA,EAAA,6BAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAnBT,6BAA6B,GAAA,UAAA,CAAA;AADlC,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,uBAAA,CAAyB;AAC3C,CAAA,EAAA,6BAA6B,CA0ClC;AAGD,sCAAe,6BAA6B;;;;"}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { __decorate } from 'tslib';
|
|
9
9
|
import { LitElement, html } from 'lit';
|
|
10
10
|
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
11
|
+
import prefix from '../../../globals/settings.js';
|
|
11
12
|
import styles from './workspace-shell.scss.js';
|
|
12
13
|
|
|
13
14
|
/*
|
|
@@ -48,7 +49,7 @@ let CDSAIChatWorkspaceShell = class CDSAIChatWorkspaceShell extends LitElement {
|
|
|
48
49
|
};
|
|
49
50
|
CDSAIChatWorkspaceShell.styles = styles;
|
|
50
51
|
CDSAIChatWorkspaceShell = __decorate([
|
|
51
|
-
carbonElement(
|
|
52
|
+
carbonElement(`${prefix}-workspace-shell`)
|
|
52
53
|
], CDSAIChatWorkspaceShell);
|
|
53
54
|
var CDSAIChatWorkspaceShell$1 = CDSAIChatWorkspaceShell;
|
|
54
55
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-shell.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace-shell.js","sources":["../../../../src/components/workspace-shell/src/workspace-shell.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH;;;;;;;;;;AAUG;AAEH,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU,CAAA;AAAhD,IAAA,WAAA,GAAA;;QAaE,IAAA,CAAA,mBAAmB,GAAG,MAAK;AACzB,YAAA,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;AACjC,QAAA,CAAC;IACH;IAbE,MAAM,GAAA;AACJ,QAAA,OAAO,IAAI,CAAA;;;;;;KAMV;IACH;;AAVO,uBAAA,CAAA,MAAM,GAAG,MAAH;AADT,uBAAuB,GAAA,UAAA,CAAA;AAD5B,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,gBAAA,CAAkB;AACpC,CAAA,EAAA,uBAAuB,CAgB5B;AAGD,gCAAe,uBAAuB;;;;"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
9
|
|
|
10
|
-
var styles = css(["a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{font-feature-settings:\"liga\" 1;border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}button,input,select,textarea{border-radius:0;font-family:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{background-color:var(--cds-background,#fff);color:var(--cds-text-primary,#161616);line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:none}table{border-collapse:collapse;border-spacing:0}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}html{font-size:100%}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;text-rendering:optimizeLegibility}code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:var(--cds-heading-06-font-size,2.625rem);font-weight:var(--cds-heading-06-font-weight,300);letter-spacing:var(--cds-heading-06-letter-spacing,0);line-height:var(--cds-heading-06-line-height,1.199)}h2{font-size:var(--cds-heading-05-font-size,2rem);font-weight:var(--cds-heading-05-font-weight,400);letter-spacing:var(--cds-heading-05-letter-spacing,0);line-height:var(--cds-heading-05-line-height,1.25)}h3{font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);letter-spacing:var(--cds-heading-04-letter-spacing,0);line-height:var(--cds-heading-04-line-height,1.28572)}h4{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}h5{font-size:var(--cds-heading-02-font-size,1rem);font-weight:var(--cds-heading-02-font-weight,600);letter-spacing:var(--cds-heading-02-letter-spacing,0);line-height:var(--cds-heading-02-line-height,1.5)}h6{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}p{font-size:var(--cds-body-02-font-size,1rem);font-weight:var(--cds-body-02-font-weight,400);letter-spacing:var(--cds-body-02-letter-spacing,0);line-height:var(--cds-body-02-line-height,1.5)}a{color:var(--cds-link-primary,#0062fe)}em{font-style:italic}:host(cds-aichat-workspace-shell){background-color:var(--cds-chat-shell-background);block-size:100%;border:.0625rem solid var(--cds-chat-bubble-border,#e0e0e0);border-radius:.5rem;box-shadow:-10px 0 100px -24px var(--cds-ai-popover-shadow-outer-01,rgba(0,67,206,.06)),0 10px 40px -24px var(--cds-ai-popover-shadow-outer-02,rgba(0,0,0,.04));box-sizing:border-box!important;color:var(--cds-text-secondary,#525252);display:flex;flex-direction:column;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);inline-size:100%;letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}:host(cds-aichat-workspace-shell) ::slotted([slot=notification]){box-sizing:border-box;max-inline-size:100
|
|
10
|
+
var styles = css(["a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{font-feature-settings:\"liga\" 1;border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}button,input,select,textarea{border-radius:0;font-family:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{background-color:var(--cds-background,#fff);color:var(--cds-text-primary,#161616);line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:none}table{border-collapse:collapse;border-spacing:0}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}html{font-size:100%}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;text-rendering:optimizeLegibility}code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:var(--cds-heading-06-font-size,2.625rem);font-weight:var(--cds-heading-06-font-weight,300);letter-spacing:var(--cds-heading-06-letter-spacing,0);line-height:var(--cds-heading-06-line-height,1.199)}h2{font-size:var(--cds-heading-05-font-size,2rem);font-weight:var(--cds-heading-05-font-weight,400);letter-spacing:var(--cds-heading-05-letter-spacing,0);line-height:var(--cds-heading-05-line-height,1.25)}h3{font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);letter-spacing:var(--cds-heading-04-letter-spacing,0);line-height:var(--cds-heading-04-line-height,1.28572)}h4{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}h5{font-size:var(--cds-heading-02-font-size,1rem);font-weight:var(--cds-heading-02-font-weight,600);letter-spacing:var(--cds-heading-02-letter-spacing,0);line-height:var(--cds-heading-02-line-height,1.5)}h6{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}p{font-size:var(--cds-body-02-font-size,1rem);font-weight:var(--cds-body-02-font-weight,400);letter-spacing:var(--cds-body-02-letter-spacing,0);line-height:var(--cds-body-02-line-height,1.5)}a{color:var(--cds-link-primary,#0062fe)}em{font-style:italic}:host(cds-aichat-workspace-shell){background-color:var(--cds-chat-shell-background);block-size:100%;border:.0625rem solid var(--cds-chat-bubble-border,#e0e0e0);border-radius:.5rem;box-shadow:-10px 0 100px -24px var(--cds-ai-popover-shadow-outer-01,rgba(0,67,206,.06)),0 10px 40px -24px var(--cds-ai-popover-shadow-outer-02,rgba(0,0,0,.04));box-sizing:border-box!important;color:var(--cds-text-secondary,#525252);display:flex;flex-direction:column;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);inline-size:100%;letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}:host(cds-aichat-workspace-shell) ::slotted([slot=notification]){box-sizing:border-box;max-inline-size:100%!important}::slotted(cds-aichat-toolbar){border-block-end:.0625rem solid var(--cds-chat-bubble-border);display:grid;padding:.5rem}.cds-aichat-workspace-shell__toolbar-action{display:grid;grid-auto-columns:2.5rem;grid-auto-flow:column}.cds-aichat-workspace-shell__toolbar-action ::slotted(cds-ai-label){block-size:2.5rem}:host(cds-aichat-workspace-shell-body){block-size:31.5rem;display:block;overflow:auto;padding:1.5rem 2rem}"]);
|
|
11
11
|
|
|
12
12
|
export { styles as default };
|
|
13
13
|
//# sourceMappingURL=workspace-shell.scss.js.map
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
/*
|
|
9
|
+
* Copyright IBM Corp. 2025
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*
|
|
14
|
+
* @license
|
|
15
|
+
*/
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
// Mock DOMParser for icon transformation tests
|
|
18
|
+
if (typeof DOMParser === "undefined") {
|
|
19
|
+
global.DOMParser = class DOMParser {
|
|
20
|
+
parseFromString(str, _type) {
|
|
21
|
+
// Simple mock for testing - in real browser this would parse the string
|
|
22
|
+
const doc = {
|
|
23
|
+
querySelector: (selector) => {
|
|
24
|
+
if (selector === "svg" && str.includes("<svg")) {
|
|
25
|
+
// Extract attributes from SVG string
|
|
26
|
+
const viewBoxMatch = str.match(/viewBox="([^"]*)"/);
|
|
27
|
+
const fillMatch = str.match(/fill="([^"]*)"/);
|
|
28
|
+
const xmlnsMatch = str.match(/xmlns="([^"]*)"/);
|
|
29
|
+
// Extract path data
|
|
30
|
+
const pathMatch = str.match(/<path[^>]*d="([^"]*)"[^>]*>/);
|
|
31
|
+
const mockSVG = {
|
|
32
|
+
tagName: "svg",
|
|
33
|
+
getAttribute: (attr) => {
|
|
34
|
+
if (attr === "viewBox") {
|
|
35
|
+
return viewBoxMatch ? viewBoxMatch[1] : "0 0 32 32";
|
|
36
|
+
}
|
|
37
|
+
if (attr === "fill") {
|
|
38
|
+
return fillMatch ? fillMatch[1] : "currentColor";
|
|
39
|
+
}
|
|
40
|
+
if (attr === "xmlns") {
|
|
41
|
+
return xmlnsMatch
|
|
42
|
+
? xmlnsMatch[1]
|
|
43
|
+
: "http://www.w3.org/2000/svg";
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
},
|
|
47
|
+
childNodes: pathMatch
|
|
48
|
+
? [
|
|
49
|
+
{
|
|
50
|
+
nodeType: 1, // ELEMENT_NODE
|
|
51
|
+
tagName: "path",
|
|
52
|
+
attributes: [
|
|
53
|
+
{
|
|
54
|
+
name: "d",
|
|
55
|
+
value: pathMatch[1],
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
]
|
|
60
|
+
: [],
|
|
61
|
+
cloneNode: function (_deep) {
|
|
62
|
+
return this;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
return mockSVG;
|
|
66
|
+
}
|
|
67
|
+
return null;
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
return doc;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
// Mock Node constants if not available
|
|
75
|
+
if (typeof Node === "undefined") {
|
|
76
|
+
global.Node = {
|
|
77
|
+
ELEMENT_NODE: 1,
|
|
78
|
+
TEXT_NODE: 3,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
// Made with Bob
|
|
83
|
+
//# sourceMappingURL=jest.setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jest.setup.js","sources":["../../../src/react/__tests__/jest.setup.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH,UAAU,CAAC,MAAK;;AAEd,IAAA,IAAI,OAAO,SAAS,KAAK,WAAW,EAAE;AACnC,QAAA,MAAc,CAAC,SAAS,GAAG,MAAM,SAAS,CAAA;YACzC,eAAe,CAAC,GAAW,EAAE,KAAa,EAAA;;AAExC,gBAAA,MAAM,GAAG,GAAG;AACV,oBAAA,aAAa,EAAE,CAAC,QAAgB,KAAI;wBAClC,IAAI,QAAQ,KAAK,KAAK,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;;4BAE9C,MAAM,YAAY,GAAG,GAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC;4BACnD,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,gBAAgB,CAAC;4BAC7C,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC;;4BAG/C,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,6BAA6B,CAAC;AAE1D,4BAAA,MAAM,OAAO,GAAG;AACd,gCAAA,OAAO,EAAE,KAAK;AACd,gCAAA,YAAY,EAAE,CAAC,IAAY,KAAI;AAC7B,oCAAA,IAAI,IAAI,KAAK,SAAS,EAAE;AACtB,wCAAA,OAAO,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,WAAW;oCACrD;AACA,oCAAA,IAAI,IAAI,KAAK,MAAM,EAAE;AACnB,wCAAA,OAAO,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,cAAc;oCAClD;AACA,oCAAA,IAAI,IAAI,KAAK,OAAO,EAAE;AACpB,wCAAA,OAAO;AACL,8CAAE,UAAU,CAAC,CAAC;8CACZ,4BAA4B;oCAClC;AACA,oCAAA,OAAO,IAAI;gCACb,CAAC;AACD,gCAAA,UAAU,EAAE;AACV,sCAAE;AACE,wCAAA;4CACE,QAAQ,EAAE,CAAC;AACX,4CAAA,OAAO,EAAE,MAAM;AACf,4CAAA,UAAU,EAAE;AACV,gDAAA;AACE,oDAAA,IAAI,EAAE,GAAG;AACT,oDAAA,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;AACpB,iDAAA;AACF,6CAAA;AACF,yCAAA;AACF;AACH,sCAAE,EAAE;gCACN,SAAS,EAAE,UAAU,KAAc,EAAA;AACjC,oCAAA,OAAO,IAAI;gCACb,CAAC;6BACF;AAED,4BAAA,OAAO,OAAO;wBAChB;AACA,wBAAA,OAAO,IAAI;oBACb,CAAC;iBACF;AACD,gBAAA,OAAO,GAAG;YACZ;SACD;IACH;;AAGA,IAAA,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;QAC9B,MAAc,CAAC,IAAI,GAAG;AACrB,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,SAAS,EAAE,CAAC;SACb;IACH;AACF,CAAC,CAAC;AAEF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2025
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
import CdsAiChatShellElement from "../components/chat-shell/src/cds-aichat-shell.js";
|
|
11
|
+
declare const CdsAiChatShell: React.ForwardRefExoticComponent<Omit<Record<string, unknown>, "ref"> & React.RefAttributes<CdsAiChatShellElement>>;
|
|
12
|
+
export default CdsAiChatShell;
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
import { createComponent } from '@lit/react';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import CdsAiChatShellElement from '../components/chat-shell/src/cds-aichat-shell.js';
|
|
11
|
+
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
*
|
|
16
|
+
* Copyright IBM Corp. 2025
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
const CdsAiChatShell = withWebComponentBridge(createComponent({
|
|
22
|
+
tagName: "cds-aichat-shell",
|
|
23
|
+
elementClass: CdsAiChatShellElement,
|
|
24
|
+
react: React,
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
export { CdsAiChatShell as default };
|
|
28
|
+
//# sourceMappingURL=chat-shell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-shell.js","sources":["../../src/react/chat-shell.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,cAAc,GAAG,sBAAsB,CAC3C,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,KAAK,EAAE,KAAK;AACb,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import CdsAiChatPanelElement from "../components/chat-shell/src/cds-aichat-panel.js";
|
|
3
|
+
declare const CdsAiChatPanel: React.ForwardRefExoticComponent<Omit<Record<string, unknown>, "ref"> & React.RefAttributes<CdsAiChatPanelElement>>;
|
|
4
|
+
export default CdsAiChatPanel;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { createComponent } from '@lit/react';
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import
|
|
10
|
+
import CdsAiChatPanelElement from '../components/chat-shell/src/cds-aichat-panel.js';
|
|
11
11
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
12
12
|
|
|
13
13
|
/*
|
|
@@ -18,11 +18,17 @@ import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
|
18
18
|
*
|
|
19
19
|
* @license
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
22
|
-
tagName: "cds-
|
|
23
|
-
elementClass:
|
|
21
|
+
const CdsAiChatPanel = withWebComponentBridge(createComponent({
|
|
22
|
+
tagName: "cds-aichat-panel",
|
|
23
|
+
elementClass: CdsAiChatPanelElement,
|
|
24
24
|
react: React,
|
|
25
|
+
events: {
|
|
26
|
+
onOpenStart: "openstart",
|
|
27
|
+
onOpenEnd: "openend",
|
|
28
|
+
onCloseStart: "closestart",
|
|
29
|
+
onCloseEnd: "closeend",
|
|
30
|
+
},
|
|
25
31
|
}));
|
|
26
32
|
|
|
27
|
-
export {
|
|
28
|
-
//# sourceMappingURL=
|
|
33
|
+
export { CdsAiChatPanel as default };
|
|
34
|
+
//# sourceMappingURL=panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panel.js","sources":["../../src/react/panel.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,cAAc,GAAG,sBAAsB,CAC3C,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE;AACN,QAAA,WAAW,EAAE,WAAW;AACxB,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,YAAY,EAAE,YAAY;AAC1B,QAAA,UAAU,EAAE,UAAU;AACvB,KAAA;AACF,CAAA,CAAC;;;;"}
|
package/es/react/toolbar.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import { CarbonIcon } from "@carbon/web-components/es/globals/internal/icon-loader-utils.js";
|
|
3
|
+
export type { Action } from "../components/toolbar/src/toolbar.js";
|
|
4
|
+
/**
|
|
5
|
+
* React-specific Action interface that accepts both CarbonIcon and React icon components.
|
|
6
|
+
* This allows React developers to use @carbon/icons-react directly.
|
|
7
|
+
*/
|
|
8
|
+
export interface ReactAction {
|
|
9
|
+
text: string;
|
|
10
|
+
icon: CarbonIcon | React.ComponentType<any>;
|
|
11
|
+
size?: string;
|
|
12
|
+
fixed?: boolean;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const Toolbar: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
|
|
4
16
|
export default Toolbar;
|
package/es/react/toolbar.js
CHANGED
|
@@ -5,24 +5,74 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
9
|
import { createComponent } from '@lit/react';
|
|
9
10
|
import React from 'react';
|
|
10
11
|
import CDSAIChatToolbar from '../components/toolbar/src/toolbar.js';
|
|
11
12
|
import { withWebComponentBridge } from './utils/withWebComponentBridge.js';
|
|
13
|
+
import { transformReactIconToCarbonIcon } from './utils/iconTransform.js';
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*
|
|
19
|
-
* @license
|
|
20
|
-
*/
|
|
21
|
-
const Toolbar = withWebComponentBridge(createComponent({
|
|
15
|
+
// Base toolbar component from @lit/react
|
|
16
|
+
const BaseToolbar = withWebComponentBridge(createComponent({
|
|
22
17
|
tagName: "cds-aichat-toolbar",
|
|
23
18
|
elementClass: CDSAIChatToolbar,
|
|
24
19
|
react: React,
|
|
25
20
|
}));
|
|
21
|
+
/**
|
|
22
|
+
* Toolbar component with automatic icon transformation support.
|
|
23
|
+
*
|
|
24
|
+
* Accepts actions with either CarbonIcon objects or React icon components from @carbon/icons-react.
|
|
25
|
+
* React icons are automatically transformed to the CarbonIcon format expected by the web component.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* import { Add, Edit } from '@carbon/icons-react';
|
|
30
|
+
* import Toolbar from '@carbon/ai-chat-components/react/toolbar';
|
|
31
|
+
*
|
|
32
|
+
* const actions = [
|
|
33
|
+
* { text: 'Add', icon: Add, onClick: () => console.log('Add') },
|
|
34
|
+
* { text: 'Edit', icon: Edit, onClick: () => console.log('Edit') }
|
|
35
|
+
* ];
|
|
36
|
+
*
|
|
37
|
+
* <Toolbar actions={actions} overflow />
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* Converts size string to numeric pixel value
|
|
42
|
+
*/
|
|
43
|
+
function getSizeInPixels(size) {
|
|
44
|
+
if (!size) {
|
|
45
|
+
return 16;
|
|
46
|
+
}
|
|
47
|
+
// If it's already a number string, parse it
|
|
48
|
+
const parsed = parseInt(size, 10);
|
|
49
|
+
if (!isNaN(parsed)) {
|
|
50
|
+
return parsed;
|
|
51
|
+
}
|
|
52
|
+
// Map size names to pixel values (Carbon Design System standard sizes)
|
|
53
|
+
const sizeMap = {
|
|
54
|
+
sm: 16,
|
|
55
|
+
md: 20,
|
|
56
|
+
lg: 24,
|
|
57
|
+
xl: 32,
|
|
58
|
+
};
|
|
59
|
+
return sizeMap[size.toLowerCase()] || 16;
|
|
60
|
+
}
|
|
61
|
+
const Toolbar = React.forwardRef((props, ref) => {
|
|
62
|
+
const { actions, ...restProps } = props;
|
|
63
|
+
// Transform React icons to CarbonIcon format
|
|
64
|
+
const transformedActions = React.useMemo(() => {
|
|
65
|
+
if (!actions) {
|
|
66
|
+
return actions;
|
|
67
|
+
}
|
|
68
|
+
return actions.map((action) => ({
|
|
69
|
+
...action,
|
|
70
|
+
icon: transformReactIconToCarbonIcon(action.icon, getSizeInPixels(action.size)),
|
|
71
|
+
}));
|
|
72
|
+
}, [actions]);
|
|
73
|
+
return jsx(BaseToolbar, { ref: ref, actions: transformedActions, ...restProps });
|
|
74
|
+
});
|
|
75
|
+
Toolbar.displayName = "Toolbar";
|
|
26
76
|
|
|
27
77
|
export { Toolbar as default };
|
|
28
78
|
//# sourceMappingURL=toolbar.js.map
|
package/es/react/toolbar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.js","sources":["../../src/react/toolbar.
|
|
1
|
+
{"version":3,"file":"toolbar.js","sources":["../../src/react/toolbar.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;AAiCA;AACA,MAAM,WAAW,GAAG,sBAAsB,CACxC,eAAe,CAAC;AACd,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,YAAY,EAAE,gBAAgB;AAC9B,IAAA,KAAK,EAAE,KAAK;AACb,CAAA,CAAC,CACH;AAED;;;;;;;;;;;;;;;;;;AAkBG;AACH;;AAEG;AACH,SAAS,eAAe,CAAC,IAAa,EAAA;IACpC,IAAI,CAAC,IAAI,EAAE;AACT,QAAA,OAAO,EAAE;IACX;;IAGA,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;AACjC,IAAA,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAClB,QAAA,OAAO,MAAM;IACf;;AAGA,IAAA,MAAM,OAAO,GAA2B;AACtC,QAAA,EAAE,EAAE,EAAE;AACN,QAAA,EAAE,EAAE,EAAE;AACN,QAAA,EAAE,EAAE,EAAE;AACN,QAAA,EAAE,EAAE,EAAE;KACP;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE;AAC1C;AAEA,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAW,CAAC,KAAK,EAAE,GAAG,KAAI;IACxD,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;;AAGvC,IAAA,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,CAAC,MAAK;QAC5C,IAAI,CAAC,OAAO,EAAE;AACZ,YAAA,OAAO,OAAO;QAChB;QAEA,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAmB,MAAM;AAC3C,YAAA,GAAG,MAAM;AACT,YAAA,IAAI,EAAE,8BAA8B,CAClC,MAAM,CAAC,IAAI,EACX,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAC7B;AACF,SAAA,CAAC,CAAC;AACL,IAAA,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;AAEb,IAAA,OAAOA,GAAA,CAAC,WAAW,EAAA,EAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAA,GAAM,SAAS,GAAI;AAC9E,CAAC;AAED,OAAO,CAAC,WAAW,GAAG,SAAS;;;;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon Transformation Utility
|
|
3
|
+
*
|
|
4
|
+
* This module provides utilities to transform React icon components from @carbon/icons-react
|
|
5
|
+
* into the CarbonIcon descriptor format used by @carbon/icons. This enables React developers
|
|
6
|
+
* to use their familiar React icon components while maintaining compatibility with web components
|
|
7
|
+
* that expect the plain JavaScript CarbonIcon format.
|
|
8
|
+
*
|
|
9
|
+
* Key features:
|
|
10
|
+
* - Automatic transformation of React icon components to CarbonIcon descriptors
|
|
11
|
+
* - No-op pass-through for CarbonIcon objects (already in correct format)
|
|
12
|
+
* - Global caching to prevent redundant transformations
|
|
13
|
+
* - Type guards for runtime icon format detection
|
|
14
|
+
* - Support for forwardRef and memo-wrapped components
|
|
15
|
+
*
|
|
16
|
+
* Usage:
|
|
17
|
+
* ```tsx
|
|
18
|
+
* import { Add } from '@carbon/icons-react';
|
|
19
|
+
* import { transformReactIconToCarbonIcon } from './iconTransform';
|
|
20
|
+
*
|
|
21
|
+
* const carbonIcon = transformReactIconToCarbonIcon(Add);
|
|
22
|
+
* // carbonIcon is now in CarbonIcon format, ready for web components
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
import React from "react";
|
|
26
|
+
import { CarbonIcon } from "@carbon/web-components/es/globals/internal/icon-loader-utils";
|
|
27
|
+
/**
|
|
28
|
+
* Type guard to detect if icon is already a CarbonIcon descriptor.
|
|
29
|
+
* If true, the icon should be passed through unchanged (no-op).
|
|
30
|
+
*/
|
|
31
|
+
export declare function isCarbonIcon(icon: any): icon is CarbonIcon;
|
|
32
|
+
/**
|
|
33
|
+
* Transforms a React icon component to CarbonIcon format.
|
|
34
|
+
* Returns the icon unchanged if it's already a CarbonIcon (no-op).
|
|
35
|
+
* Caches results to avoid repeated transformations.
|
|
36
|
+
*/
|
|
37
|
+
export declare function transformReactIconToCarbonIcon(icon: CarbonIcon | React.ComponentType<any>, size?: number): CarbonIcon;
|