From 0da577fc516a9b01274c77c77346a7b322004ba1 Mon Sep 17 00:00:00 2001 From: krisantrobus <55083528+krisantrobus@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:41:10 -0500 Subject: [PATCH] Fix/button resize plus ai bug (#4026) * fix(ai-chat-log): correct ai color and examples naming * fix(popover): popover reset variant types correct * fix(ai-chat-log): added API info for author * chore(pr): changesets and typedocs * chore(pr): resolve build issue * chore(pr): typedocs * Update packages/paste-website/src/pages/components/ai-chat-log/index.mdx Co-authored-by: Sarah --------- Co-authored-by: Sarah --- .changeset/beige-guests-promise.md | 6 ++++++ .changeset/warm-suits-cough.md | 6 ++++++ .../ai-chat-log/src/AIChatMessageAuthor.tsx | 1 + .../paste-core/components/popover/src/types.ts | 2 +- .../components/popover/type-docs.json | 7 +++++++ .../component-examples/AIChatLogExamples.ts | 18 +++++++++--------- .../src/pages/components/ai-chat-log/api.mdx | 2 +- .../src/pages/components/ai-chat-log/index.mdx | 8 ++++---- 8 files changed, 35 insertions(+), 15 deletions(-) create mode 100644 .changeset/beige-guests-promise.md create mode 100644 .changeset/warm-suits-cough.md diff --git a/.changeset/beige-guests-promise.md b/.changeset/beige-guests-promise.md new file mode 100644 index 0000000000..5cfe173a96 --- /dev/null +++ b/.changeset/beige-guests-promise.md @@ -0,0 +1,6 @@ +--- +"@twilio-paste/popover": patch +"@twilio-paste/core": patch +--- + +[Popover] Fix typings that were not exposing additional props on using a reset button variant diff --git a/.changeset/warm-suits-cough.md b/.changeset/warm-suits-cough.md new file mode 100644 index 0000000000..92bb7f9e97 --- /dev/null +++ b/.changeset/warm-suits-cough.md @@ -0,0 +1,6 @@ +--- +"@twilio-paste/ai-chat-log": patch +"@twilio-paste/core": patch +--- + +[AIChatLog] Correctly set the color of the AI icon diff --git a/packages/paste-core/components/ai-chat-log/src/AIChatMessageAuthor.tsx b/packages/paste-core/components/ai-chat-log/src/AIChatMessageAuthor.tsx index 6b3f229d70..b9ef3f803e 100644 --- a/packages/paste-core/components/ai-chat-log/src/AIChatMessageAuthor.tsx +++ b/packages/paste-core/components/ai-chat-log/src/AIChatMessageAuthor.tsx @@ -73,6 +73,7 @@ export const AIChatMessageAuthor = React.forwardRef diff --git a/packages/paste-core/components/popover/src/types.ts b/packages/paste-core/components/popover/src/types.ts index 417b5b5ff1..d9367100d6 100644 --- a/packages/paste-core/components/popover/src/types.ts +++ b/packages/paste-core/components/popover/src/types.ts @@ -13,7 +13,7 @@ type PopoverButtonBaseProps = { }; export type PopoverButtonProps = PopoverButtonBaseProps & - Omit & { + ButtonProps & { /** * Overrides the default element name to apply unique styles with the Customization Provider * diff --git a/packages/paste-core/components/popover/type-docs.json b/packages/paste-core/components/popover/type-docs.json index 3d84791579..7d389fd96c 100644 --- a/packages/paste-core/components/popover/type-docs.json +++ b/packages/paste-core/components/popover/type-docs.json @@ -2203,6 +2203,13 @@ "externalProp": true, "description": "Defines the human readable text alternative of aria-valuenow for a range widget." }, + "as": { + "type": "keyof IntrinsicElements", + "defaultValue": "'button'", + "required": false, + "externalProp": false, + "description": "The HTML tag to replace the default `