@cloudscape-design/chat-components 1.0.174 → 1.0.176
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/chat-bubble/index.d.ts +1 -1
- package/chat-bubble/index.js +3 -3
- package/chat-bubble/index.js.map +1 -1
- package/chat-bubble/interfaces.d.ts +8 -0
- package/chat-bubble/interfaces.js.map +1 -1
- package/chat-bubble/internal.d.ts +1 -1
- package/chat-bubble/internal.js +5 -3
- package/chat-bubble/internal.js.map +1 -1
- package/chat-bubble/styles.css.js +11 -10
- package/chat-bubble/styles.scoped.css +13 -10
- package/chat-bubble/styles.selectors.js +11 -10
- package/internal/api-docs/components/avatar.js +1 -0
- package/internal/api-docs/components/chat-bubble.js +15 -0
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/styles/tokens.d.ts +3 -0
- package/internal/generated/styles/tokens.js +3 -0
- package/internal/generated/theming/index.cjs +65 -0
- package/internal/generated/theming/index.js +65 -0
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
package/chat-bubble/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ChatBubbleProps } from "./interfaces";
|
|
2
2
|
export type { ChatBubbleProps };
|
|
3
|
-
export default function ChatBubble({ type, hideAvatar, showLoadingBar, stretch, ...props }: ChatBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default function ChatBubble({ type, hideAvatar, showLoadingBar, stretch, align, ...props }: ChatBubbleProps): import("react/jsx-runtime").JSX.Element;
|
package/chat-bubble/index.js
CHANGED
|
@@ -5,11 +5,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import useBaseComponent from "../internal/base-component/use-base-component";
|
|
6
6
|
import { applyDisplayName } from "../internal/utils/apply-display-name";
|
|
7
7
|
import InternalChatBubble from "./internal";
|
|
8
|
-
export default function ChatBubble({ type, hideAvatar, showLoadingBar, stretch, ...props }) {
|
|
8
|
+
export default function ChatBubble({ type, hideAvatar, showLoadingBar, stretch, align = "start", ...props }) {
|
|
9
9
|
const baseComponentProps = useBaseComponent("ChatBubble", {
|
|
10
|
-
props: { type, stretch },
|
|
10
|
+
props: { type, stretch, align },
|
|
11
11
|
});
|
|
12
|
-
return (_jsx(InternalChatBubble, { type: type, hideAvatar: hideAvatar, showLoadingBar: showLoadingBar, stretch: stretch, ...props, ...baseComponentProps }));
|
|
12
|
+
return (_jsx(InternalChatBubble, { type: type, hideAvatar: hideAvatar, showLoadingBar: showLoadingBar, stretch: stretch, align: align, ...props, ...baseComponentProps }));
|
|
13
13
|
}
|
|
14
14
|
applyDisplayName(ChatBubble, "ChatBubble");
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/chat-bubble/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chat-bubble/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;;AACb,OAAO,gBAAgB,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,kBAAkB,MAAM,YAAY,CAAC;AAI5C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chat-bubble/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;;AACb,OAAO,gBAAgB,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,kBAAkB,MAAM,YAAY,CAAC;AAI5C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,UAAU,EACV,cAAc,EACd,OAAO,EACP,KAAK,GAAG,OAAO,EACf,GAAG,KAAK,EACQ;IAChB,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,EAAE;QACxD,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;KAChC,CAAC,CAAC;IACH,OAAO,CACL,KAAC,kBAAkB,IACjB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,KACR,KAAK,KACL,kBAAkB,GACtB,CACH,CAAC;AACJ,CAAC;AACD,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\"use client\";\nimport useBaseComponent from \"../internal/base-component/use-base-component\";\nimport { applyDisplayName } from \"../internal/utils/apply-display-name\";\nimport { ChatBubbleProps } from \"./interfaces\";\nimport InternalChatBubble from \"./internal\";\n\nexport type { ChatBubbleProps };\n\nexport default function ChatBubble({\n type,\n hideAvatar,\n showLoadingBar,\n stretch,\n align = \"start\",\n ...props\n}: ChatBubbleProps) {\n const baseComponentProps = useBaseComponent(\"ChatBubble\", {\n props: { type, stretch, align },\n });\n return (\n <InternalChatBubble\n type={type}\n hideAvatar={hideAvatar}\n showLoadingBar={showLoadingBar}\n stretch={stretch}\n align={align}\n {...props}\n {...baseComponentProps}\n />\n );\n}\napplyDisplayName(ChatBubble, \"ChatBubble\");\n"]}
|
|
@@ -30,6 +30,13 @@ export interface ChatBubbleProps {
|
|
|
30
30
|
* that should line up across messages.
|
|
31
31
|
*/
|
|
32
32
|
stretch?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Controls the alignment of the chat bubble and the avatar.
|
|
35
|
+
*
|
|
36
|
+
* - `"start"` — Aligns the bubble and the avatar on the inline-start.
|
|
37
|
+
* - `"end"` — Aligns the bubble and the avatar on the inline-end.
|
|
38
|
+
*/
|
|
39
|
+
align?: ChatBubbleProps.Align;
|
|
33
40
|
/**
|
|
34
41
|
* An object containing CSS properties to customize the chat bubble's visual appearance.
|
|
35
42
|
* Refer to the [style](/components/chat-bubble/?tabId=style) tab for more details.
|
|
@@ -39,6 +46,7 @@ export interface ChatBubbleProps {
|
|
|
39
46
|
}
|
|
40
47
|
export declare namespace ChatBubbleProps {
|
|
41
48
|
type Type = "incoming" | "outgoing";
|
|
49
|
+
type Align = "start" | "end";
|
|
42
50
|
interface Style {
|
|
43
51
|
root?: {
|
|
44
52
|
columnGap?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/chat-bubble/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport interface ChatBubbleProps {\n /** Avatar slot paired with the chat bubble content. Use [avatar](/components/avatar/). */\n avatar: React.ReactNode;\n\n /** Defines the type of the chat bubble and sets its color accordingly. */\n type: ChatBubbleProps.Type;\n\n /** Content of the chat bubble */\n children: React.ReactNode;\n\n /** Actions slot of the chat bubble, placed at the footer. Use [button group](/components/button-group/). */\n actions?: React.ReactNode;\n\n /**\n * Adds a loading bar to the bottom of the chat bubble. This property should only be used for Generative AI loading state.\n * If avatar is being used, set its `loading` state to true.\n */\n showLoadingBar?: boolean;\n\n /**\n * Adds aria-label to the chat bubble container. Use this to provide a unique accessible name for each chat bubble on the page.\n * For example, \"John Doe at 3:42:10am\".\n */\n ariaLabel: string;\n\n /**\n * Hides the avatar while preserving its space.\n * Useful for when there are multiple consecutive messages coming from the same author.\n */\n hideAvatar?: boolean;\n\n /**\n * By default (or when this property is set to `false`), the chat bubble width fits its content.\n *\n * If this property is set to `true`, the bubble stretches to fill the available horizontal space\n * in its container. Use this when messages contain aligned elements, such as timestamps or footer links,\n * that should line up across messages.\n */\n stretch?: boolean;\n\n /**\n * An object containing CSS properties to customize the chat bubble's visual appearance.\n * Refer to the [style](/components/chat-bubble/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: ChatBubbleProps.Style;\n}\n\nexport namespace ChatBubbleProps {\n export type Type = \"incoming\" | \"outgoing\";\n export interface Style {\n root?: {\n columnGap?: string;\n };\n bubble?: {\n background?: string;\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n boxShadow?: string;\n color?: string;\n fontFamily?: string;\n fontSize?: string;\n fontWeight?: string;\n letterSpacing?: string;\n rowGap?: string;\n paddingBlock?: string;\n paddingInline?: string;\n };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/chat-bubble/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport interface ChatBubbleProps {\n /** Avatar slot paired with the chat bubble content. Use [avatar](/components/avatar/). */\n avatar: React.ReactNode;\n\n /** Defines the type of the chat bubble and sets its color accordingly. */\n type: ChatBubbleProps.Type;\n\n /** Content of the chat bubble */\n children: React.ReactNode;\n\n /** Actions slot of the chat bubble, placed at the footer. Use [button group](/components/button-group/). */\n actions?: React.ReactNode;\n\n /**\n * Adds a loading bar to the bottom of the chat bubble. This property should only be used for Generative AI loading state.\n * If avatar is being used, set its `loading` state to true.\n */\n showLoadingBar?: boolean;\n\n /**\n * Adds aria-label to the chat bubble container. Use this to provide a unique accessible name for each chat bubble on the page.\n * For example, \"John Doe at 3:42:10am\".\n */\n ariaLabel: string;\n\n /**\n * Hides the avatar while preserving its space.\n * Useful for when there are multiple consecutive messages coming from the same author.\n */\n hideAvatar?: boolean;\n\n /**\n * By default (or when this property is set to `false`), the chat bubble width fits its content.\n *\n * If this property is set to `true`, the bubble stretches to fill the available horizontal space\n * in its container. Use this when messages contain aligned elements, such as timestamps or footer links,\n * that should line up across messages.\n */\n stretch?: boolean;\n\n /**\n * Controls the alignment of the chat bubble and the avatar.\n *\n * - `\"start\"` — Aligns the bubble and the avatar on the inline-start.\n * - `\"end\"` — Aligns the bubble and the avatar on the inline-end.\n */\n align?: ChatBubbleProps.Align;\n\n /**\n * An object containing CSS properties to customize the chat bubble's visual appearance.\n * Refer to the [style](/components/chat-bubble/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: ChatBubbleProps.Style;\n}\n\nexport namespace ChatBubbleProps {\n export type Type = \"incoming\" | \"outgoing\";\n export type Align = \"start\" | \"end\";\n export interface Style {\n root?: {\n columnGap?: string;\n };\n bubble?: {\n background?: string;\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n boxShadow?: string;\n color?: string;\n fontFamily?: string;\n fontSize?: string;\n fontWeight?: string;\n letterSpacing?: string;\n rowGap?: string;\n paddingBlock?: string;\n paddingInline?: string;\n };\n }\n}\n"]}
|
|
@@ -2,4 +2,4 @@ import { InternalBaseComponentProps } from "../internal/base-component/use-base-
|
|
|
2
2
|
import { ChatBubbleProps } from "./interfaces.js";
|
|
3
3
|
export interface InternalChatBubbleProps extends ChatBubbleProps, InternalBaseComponentProps {
|
|
4
4
|
}
|
|
5
|
-
export default function InternalChatBubble({ type, children, avatar, actions, showLoadingBar, hideAvatar, stretch, ariaLabel, style, __internalRootRef, ...rest }: InternalChatBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default function InternalChatBubble({ type, children, avatar, actions, showLoadingBar, hideAvatar, stretch, align, ariaLabel, style, __internalRootRef, ...rest }: InternalChatBubbleProps): import("react/jsx-runtime").JSX.Element;
|
package/chat-bubble/internal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
@@ -7,7 +7,7 @@ import { getDataAttributes } from "../internal/base-component/get-data-attribute
|
|
|
7
7
|
import { InternalLoadingBar } from "../loading-bar/internal";
|
|
8
8
|
import { getBubbleStyle, getChatBubbleRootStyle } from "./style";
|
|
9
9
|
import styles from "./styles.css.js";
|
|
10
|
-
export default function InternalChatBubble({ type, children, avatar, actions, showLoadingBar, hideAvatar = false, stretch = false, ariaLabel, style, __internalRootRef = null, ...rest }) {
|
|
10
|
+
export default function InternalChatBubble({ type, children, avatar, actions, showLoadingBar, hideAvatar = false, stretch = false, align, ariaLabel, style, __internalRootRef = null, ...rest }) {
|
|
11
11
|
const avatarRef = useRef(null);
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
// We have to do this because `inert` isn't properly supported until
|
|
@@ -19,6 +19,8 @@ export default function InternalChatBubble({ type, children, avatar, actions, sh
|
|
|
19
19
|
avatarRef.current.inert = hideAvatar;
|
|
20
20
|
}
|
|
21
21
|
}, [hideAvatar]);
|
|
22
|
-
|
|
22
|
+
const avatarSlot = avatar && (_jsx("div", { ref: avatarRef, className: clsx(styles.avatar, hideAvatar && styles.hide), children: avatar }));
|
|
23
|
+
const messageArea = (_jsxs("div", { className: clsx(styles["message-area"], styles[`chat-bubble-type-${type}`], stretch && styles.stretch), style: getBubbleStyle(style), children: [_jsx("div", { className: styles.content, children: children }), actions && _jsx("div", { className: styles.actions, children: actions }), showLoadingBar && (_jsx("div", { className: styles["loading-bar-wrapper"], children: _jsx(InternalLoadingBar, { variant: "gen-ai-masked" }) }))] }));
|
|
24
|
+
return (_jsx("div", { className: clsx(styles.root, align === "end" && styles["alignment-end"]), ...getDataAttributes(rest), ref: __internalRootRef, role: "group", "aria-label": ariaLabel, style: getChatBubbleRootStyle(style), children: align === "end" ? (_jsxs(_Fragment, { children: [messageArea, avatarSlot] })) : (_jsxs(_Fragment, { children: [avatarSlot, messageArea] })) }));
|
|
23
25
|
}
|
|
24
26
|
//# sourceMappingURL=internal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/chat-bubble/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAEnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,OAAO,EACP,cAAc,EACd,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,SAAS,EACT,KAAK,EACL,iBAAiB,GAAG,IAAI,EACxB,GAAG,IAAI,EACiB;IACxB,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAE/C,SAAS,CAAC,GAAG,EAAE;QACb,oEAAoE;QACpE,yEAAyE;QACzE,qEAAqE;QACrE,mEAAmE;QACnE,iDAAiD;QACjD,IAAI,SAAS,CAAC,OAAO,EAAE;YACrB,SAAS,CAAC,OAAO,CAAC,KAAK,GAAG,UAAU,CAAC;SACtC;IACH,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/chat-bubble/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAEnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,OAAO,EACP,cAAc,EACd,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,KAAK,EACL,SAAS,EACT,KAAK,EACL,iBAAiB,GAAG,IAAI,EACxB,GAAG,IAAI,EACiB;IACxB,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAE/C,SAAS,CAAC,GAAG,EAAE;QACb,oEAAoE;QACpE,yEAAyE;QACzE,qEAAqE;QACrE,mEAAmE;QACnE,iDAAiD;QACjD,IAAI,SAAS,CAAC,OAAO,EAAE;YACrB,SAAS,CAAC,OAAO,CAAC,KAAK,GAAG,UAAU,CAAC;SACtC;IACH,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,MAAM,UAAU,GAAG,MAAM,IAAI,CAC3B,cAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,YAC3E,MAAM,GACH,CACP,CAAC;IAEF,MAAM,WAAW,GAAG,CAClB,eACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,oBAAoB,IAAI,EAAE,CAAC,EAAE,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,EACtG,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,aAE5B,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAAG,QAAQ,GAAO,EAC/C,OAAO,IAAI,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAAG,OAAO,GAAO,EAC1D,cAAc,IAAI,CACjB,cAAK,SAAS,EAAE,MAAM,CAAC,qBAAqB,CAAC,YAC3C,KAAC,kBAAkB,IAAC,OAAO,EAAC,eAAe,GAAG,GAC1C,CACP,IACG,CACP,CAAC;IAEF,OAAO,CACL,cACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,KAAK,KAAK,IAAI,MAAM,CAAC,eAAe,CAAC,CAAC,KACpE,iBAAiB,CAAC,IAAI,CAAC,EAC3B,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAC,OAAO,gBACA,SAAS,EACrB,KAAK,EAAE,sBAAsB,CAAC,KAAK,CAAC,YAEnC,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,CACjB,8BACG,WAAW,EACX,UAAU,IACV,CACJ,CAAC,CAAC,CAAC,CACF,8BACG,UAAU,EACV,WAAW,IACX,CACJ,GACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useEffect, useRef } from \"react\";\nimport clsx from \"clsx\";\n\nimport { getDataAttributes } from \"../internal/base-component/get-data-attributes\";\nimport { InternalBaseComponentProps } from \"../internal/base-component/use-base-component\";\nimport { InternalLoadingBar } from \"../loading-bar/internal\";\nimport { ChatBubbleProps } from \"./interfaces.js\";\nimport { getBubbleStyle, getChatBubbleRootStyle } from \"./style\";\n\nimport styles from \"./styles.css.js\";\n\nexport interface InternalChatBubbleProps extends ChatBubbleProps, InternalBaseComponentProps {}\n\nexport default function InternalChatBubble({\n type,\n children,\n avatar,\n actions,\n showLoadingBar,\n hideAvatar = false,\n stretch = false,\n align,\n ariaLabel,\n style,\n __internalRootRef = null,\n ...rest\n}: InternalChatBubbleProps) {\n const avatarRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n // We have to do this because `inert` isn't properly supported until\n // React 19 and this seems much more maintainable than version detection.\n // `inert` is better than `hidden` because it also blocks pointer and\n // focus events as well as hiding the contents from screen readers.\n // https://github.com/facebook/react/issues/17157\n if (avatarRef.current) {\n avatarRef.current.inert = hideAvatar;\n }\n }, [hideAvatar]);\n\n const avatarSlot = avatar && (\n <div ref={avatarRef} className={clsx(styles.avatar, hideAvatar && styles.hide)}>\n {avatar}\n </div>\n );\n\n const messageArea = (\n <div\n className={clsx(styles[\"message-area\"], styles[`chat-bubble-type-${type}`], stretch && styles.stretch)}\n style={getBubbleStyle(style)}\n >\n <div className={styles.content}>{children}</div>\n {actions && <div className={styles.actions}>{actions}</div>}\n {showLoadingBar && (\n <div className={styles[\"loading-bar-wrapper\"]}>\n <InternalLoadingBar variant=\"gen-ai-masked\" />\n </div>\n )}\n </div>\n );\n\n return (\n <div\n className={clsx(styles.root, align === \"end\" && styles[\"alignment-end\"])}\n {...getDataAttributes(rest)}\n ref={__internalRootRef}\n role=\"group\"\n aria-label={ariaLabel}\n style={getChatBubbleRootStyle(style)}\n >\n {align === \"end\" ? (\n <>\n {messageArea}\n {avatarSlot}\n </>\n ) : (\n <>\n {avatarSlot}\n {messageArea}\n </>\n )}\n </div>\n );\n}\n"]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"chat-bubble-type-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
4
|
+
"root": "awsui_root_cdujn_1ggfr_11",
|
|
5
|
+
"alignment-end": "awsui_alignment-end_cdujn_1ggfr_44",
|
|
6
|
+
"message-area": "awsui_message-area_cdujn_1ggfr_48",
|
|
7
|
+
"chat-bubble-type-outgoing": "awsui_chat-bubble-type-outgoing_cdujn_1ggfr_62",
|
|
8
|
+
"chat-bubble-type-incoming": "awsui_chat-bubble-type-incoming_cdujn_1ggfr_66",
|
|
9
|
+
"stretch": "awsui_stretch_cdujn_1ggfr_70",
|
|
10
|
+
"loading-bar-wrapper": "awsui_loading-bar-wrapper_cdujn_1ggfr_74",
|
|
11
|
+
"avatar": "awsui_avatar_cdujn_1ggfr_81",
|
|
12
|
+
"hide": "awsui_hide_cdujn_1ggfr_84",
|
|
13
|
+
"content": "awsui_content_cdujn_1ggfr_88",
|
|
14
|
+
"actions": "awsui_actions_cdujn_1ggfr_92"
|
|
14
15
|
};
|
|
15
16
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
10
10
|
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
11
|
-
.
|
|
11
|
+
.awsui_root_cdujn_1ggfr_11:not(#\9) {
|
|
12
12
|
border-collapse: separate;
|
|
13
13
|
border-spacing: 0;
|
|
14
14
|
box-sizing: border-box;
|
|
@@ -41,8 +41,11 @@
|
|
|
41
41
|
font-size: var(--font-size-body-m-tq5a14, 14px);
|
|
42
42
|
line-height: var(--line-height-heading-m-d6lkzb, 22px);
|
|
43
43
|
}
|
|
44
|
+
.awsui_root_cdujn_1ggfr_11.awsui_alignment-end_cdujn_1ggfr_44:not(#\9) {
|
|
45
|
+
justify-content: flex-end;
|
|
46
|
+
}
|
|
44
47
|
|
|
45
|
-
.awsui_message-
|
|
48
|
+
.awsui_message-area_cdujn_1ggfr_48:not(#\9) {
|
|
46
49
|
position: relative;
|
|
47
50
|
display: flex;
|
|
48
51
|
flex-direction: column;
|
|
@@ -56,36 +59,36 @@
|
|
|
56
59
|
border-end-start-radius: var(--border-radius-chat-bubble-qqrkau, 8px);
|
|
57
60
|
border-end-end-radius: var(--border-radius-chat-bubble-qqrkau, 8px);
|
|
58
61
|
}
|
|
59
|
-
.awsui_message-
|
|
62
|
+
.awsui_message-area_cdujn_1ggfr_48.awsui_chat-bubble-type-outgoing_cdujn_1ggfr_62:not(#\9) {
|
|
60
63
|
color: var(--color-text-chat-bubble-outgoing-225h2z, #0f141a);
|
|
61
64
|
background-color: var(--color-background-chat-bubble-outgoing-lto0xq, transparent);
|
|
62
65
|
}
|
|
63
|
-
.awsui_message-
|
|
66
|
+
.awsui_message-area_cdujn_1ggfr_48.awsui_chat-bubble-type-incoming_cdujn_1ggfr_66:not(#\9) {
|
|
64
67
|
color: var(--color-text-chat-bubble-incoming-383aqi, #0f141a);
|
|
65
68
|
background-color: var(--color-background-chat-bubble-incoming-gkldma, #f6f6f9);
|
|
66
69
|
}
|
|
67
|
-
.awsui_message-
|
|
70
|
+
.awsui_message-area_cdujn_1ggfr_48.awsui_stretch_cdujn_1ggfr_70:not(#\9) {
|
|
68
71
|
flex: 1;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
|
-
.awsui_loading-bar-
|
|
74
|
+
.awsui_loading-bar-wrapper_cdujn_1ggfr_74:not(#\9) {
|
|
72
75
|
position: absolute;
|
|
73
76
|
inset-block-end: 0;
|
|
74
77
|
inset-inline-start: 0;
|
|
75
78
|
inline-size: 100%;
|
|
76
79
|
}
|
|
77
80
|
|
|
78
|
-
.
|
|
81
|
+
.awsui_avatar_cdujn_1ggfr_81:not(#\9) {
|
|
79
82
|
padding-block: var(--space-scaled-xs-pajbd1, 8px);
|
|
80
83
|
}
|
|
81
|
-
.
|
|
84
|
+
.awsui_avatar_cdujn_1ggfr_81.awsui_hide_cdujn_1ggfr_84:not(#\9) {
|
|
82
85
|
opacity: 0;
|
|
83
86
|
}
|
|
84
87
|
|
|
85
|
-
.
|
|
88
|
+
.awsui_content_cdujn_1ggfr_88:not(#\9) {
|
|
86
89
|
/* Used in test utils */
|
|
87
90
|
}
|
|
88
91
|
|
|
89
|
-
.
|
|
92
|
+
.awsui_actions_cdujn_1ggfr_92:not(#\9) {
|
|
90
93
|
/* Used in test utils */
|
|
91
94
|
}
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"chat-bubble-type-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
5
|
+
"root": "awsui_root_cdujn_1ggfr_11",
|
|
6
|
+
"alignment-end": "awsui_alignment-end_cdujn_1ggfr_44",
|
|
7
|
+
"message-area": "awsui_message-area_cdujn_1ggfr_48",
|
|
8
|
+
"chat-bubble-type-outgoing": "awsui_chat-bubble-type-outgoing_cdujn_1ggfr_62",
|
|
9
|
+
"chat-bubble-type-incoming": "awsui_chat-bubble-type-incoming_cdujn_1ggfr_66",
|
|
10
|
+
"stretch": "awsui_stretch_cdujn_1ggfr_70",
|
|
11
|
+
"loading-bar-wrapper": "awsui_loading-bar-wrapper_cdujn_1ggfr_74",
|
|
12
|
+
"avatar": "awsui_avatar_cdujn_1ggfr_81",
|
|
13
|
+
"hide": "awsui_hide_cdujn_1ggfr_84",
|
|
14
|
+
"content": "awsui_content_cdujn_1ggfr_88",
|
|
15
|
+
"actions": "awsui_actions_cdujn_1ggfr_92"
|
|
15
16
|
};
|
|
16
17
|
|
|
@@ -21,6 +21,21 @@ module.exports = {
|
|
|
21
21
|
],
|
|
22
22
|
"functions": [],
|
|
23
23
|
"properties": [
|
|
24
|
+
{
|
|
25
|
+
"name": "align",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"inlineType": {
|
|
28
|
+
"name": "ChatBubbleProps.Align",
|
|
29
|
+
"type": "union",
|
|
30
|
+
"values": [
|
|
31
|
+
"start",
|
|
32
|
+
"end"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"optional": true,
|
|
36
|
+
"description": "Controls the alignment of the chat bubble and the avatar.\n\n- `\"start\"` — Aligns the bubble and the avatar on the inline-start.\n- `\"end\"` — Aligns the bubble and the avatar on the inline-end.",
|
|
37
|
+
"defaultValue": "\"start\""
|
|
38
|
+
},
|
|
24
39
|
{
|
|
25
40
|
"name": "ariaLabel",
|
|
26
41
|
"type": "string",
|
package/internal/environment.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "chat-components";
|
|
2
|
-
export var PACKAGE_VERSION = "1.0.0 (
|
|
2
|
+
export var PACKAGE_VERSION = "1.0.0 (bfd1b196)";
|
|
3
3
|
export var THEME = "open-source-visual-refresh";
|
|
4
4
|
export var SYSTEM = "core";
|
|
5
5
|
export var ALWAYS_VISUAL_REFRESH = true;
|
|
@@ -578,6 +578,8 @@ export const colorBorderItemSelected: string;
|
|
|
578
578
|
export const colorBorderLayout: string;
|
|
579
579
|
export const colorBorderLayoutSideNavigation: string;
|
|
580
580
|
export const colorBorderNotificationStackBar: string;
|
|
581
|
+
export const colorBorderNotificationStackBarHover: string;
|
|
582
|
+
export const colorBorderNotificationStackBarActive: string;
|
|
581
583
|
export const colorBorderNotificationStackBarFocused: string;
|
|
582
584
|
export const colorBorderPanelHeader: string;
|
|
583
585
|
export const colorBorderPopover: string;
|
|
@@ -952,6 +954,7 @@ export const borderWidthItemCardHighlighted: string;
|
|
|
952
954
|
export const borderWidthDialog: string;
|
|
953
955
|
export const borderWidthItemSelected: string;
|
|
954
956
|
export const borderWidthLayoutSideNavigation: string;
|
|
957
|
+
export const borderWidthNotificationStackBar: string;
|
|
955
958
|
export const borderWidthBadge: string;
|
|
956
959
|
export const borderWidthPopover: string;
|
|
957
960
|
export const borderWidthToken: string;
|
|
@@ -578,6 +578,8 @@ export var colorBorderItemSelected = "var(--color-border-item-selected-7104rh, #
|
|
|
578
578
|
export var colorBorderLayout = "var(--color-border-layout-h5yp20, #c6c6cd)";
|
|
579
579
|
export var colorBorderLayoutSideNavigation = "var(--color-border-layout-side-navigation-a02vgs, #c6c6cd)";
|
|
580
580
|
export var colorBorderNotificationStackBar = "var(--color-border-notification-stack-bar-iua5tr, #232b37)";
|
|
581
|
+
export var colorBorderNotificationStackBarHover = "var(--color-border-notification-stack-bar-hover-pzy1rr, #424650)";
|
|
582
|
+
export var colorBorderNotificationStackBarActive = "var(--color-border-notification-stack-bar-active-itxyux, #232b37)";
|
|
581
583
|
export var colorBorderNotificationStackBarFocused = "var(--color-border-notification-stack-bar-focused-6lgllw, #f9f9fa)";
|
|
582
584
|
export var colorBorderPanelHeader = "var(--color-border-panel-header-sqy0v4, #c6c6cd)";
|
|
583
585
|
export var colorBorderPopover = "var(--color-border-popover-e8qomr, #b4b4bb)";
|
|
@@ -952,6 +954,7 @@ export var borderWidthItemCardHighlighted = "var(--border-width-item-card-highli
|
|
|
952
954
|
export var borderWidthDialog = "var(--border-width-dialog-6bh1ii, 1px)";
|
|
953
955
|
export var borderWidthItemSelected = "var(--border-width-item-selected-l41fek, 2px)";
|
|
954
956
|
export var borderWidthLayoutSideNavigation = "var(--border-width-layout-side-navigation-q0k26x, 1px)";
|
|
957
|
+
export var borderWidthNotificationStackBar = "var(--border-width-notification-stack-bar-b90c4m, 2px)";
|
|
955
958
|
export var borderWidthBadge = "var(--border-width-badge-p88itr, 0px)";
|
|
956
959
|
export var borderWidthPopover = "var(--border-width-popover-snsxri, 2px)";
|
|
957
960
|
export var borderWidthToken = "var(--border-width-token-p4a0gu, 2px)";
|
|
@@ -2359,6 +2359,14 @@ module.exports.preset = {
|
|
|
2359
2359
|
"light": "{colorNeutral750}",
|
|
2360
2360
|
"dark": "{colorNeutral750}"
|
|
2361
2361
|
},
|
|
2362
|
+
"colorBorderNotificationStackBarHover": {
|
|
2363
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
2364
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
2365
|
+
},
|
|
2366
|
+
"colorBorderNotificationStackBarActive": {
|
|
2367
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
2368
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
2369
|
+
},
|
|
2362
2370
|
"colorBorderNotificationStackBarFocused": {
|
|
2363
2371
|
"light": "{colorNeutral100}",
|
|
2364
2372
|
"dark": "{colorNeutral100}"
|
|
@@ -3396,6 +3404,7 @@ module.exports.preset = {
|
|
|
3396
3404
|
"borderWidthDialog": "{borderWidthCard}",
|
|
3397
3405
|
"borderWidthItemSelected": "2px",
|
|
3398
3406
|
"borderWidthLayoutSideNavigation": "{borderDividerSectionWidth}",
|
|
3407
|
+
"borderWidthNotificationStackBar": "2px",
|
|
3399
3408
|
"borderWidthBadge": "0px",
|
|
3400
3409
|
"borderWidthPopover": "2px",
|
|
3401
3410
|
"borderWidthToken": "2px",
|
|
@@ -5551,6 +5560,14 @@ module.exports.preset = {
|
|
|
5551
5560
|
"light": "{colorNeutral750}",
|
|
5552
5561
|
"dark": "{colorNeutral750}"
|
|
5553
5562
|
},
|
|
5563
|
+
"colorBorderNotificationStackBarHover": {
|
|
5564
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
5565
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
5566
|
+
},
|
|
5567
|
+
"colorBorderNotificationStackBarActive": {
|
|
5568
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
5569
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
5570
|
+
},
|
|
5554
5571
|
"colorBorderNotificationStackBarFocused": {
|
|
5555
5572
|
"light": "{colorNeutral100}",
|
|
5556
5573
|
"dark": "{colorNeutral100}"
|
|
@@ -7471,6 +7488,14 @@ module.exports.preset = {
|
|
|
7471
7488
|
"light": "{colorNeutral750}",
|
|
7472
7489
|
"dark": "{colorNeutral750}"
|
|
7473
7490
|
},
|
|
7491
|
+
"colorBorderNotificationStackBarHover": {
|
|
7492
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
7493
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
7494
|
+
},
|
|
7495
|
+
"colorBorderNotificationStackBarActive": {
|
|
7496
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
7497
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
7498
|
+
},
|
|
7474
7499
|
"colorBorderNotificationStackBarFocused": {
|
|
7475
7500
|
"light": "{colorNeutral100}",
|
|
7476
7501
|
"dark": "{colorNeutral100}"
|
|
@@ -9325,6 +9350,14 @@ module.exports.preset = {
|
|
|
9325
9350
|
"light": "{colorNeutral750}",
|
|
9326
9351
|
"dark": "{colorNeutral750}"
|
|
9327
9352
|
},
|
|
9353
|
+
"colorBorderNotificationStackBarHover": {
|
|
9354
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
9355
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
9356
|
+
},
|
|
9357
|
+
"colorBorderNotificationStackBarActive": {
|
|
9358
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
9359
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
9360
|
+
},
|
|
9328
9361
|
"colorBorderNotificationStackBarFocused": {
|
|
9329
9362
|
"light": "{colorNeutral100}",
|
|
9330
9363
|
"dark": "{colorNeutral100}"
|
|
@@ -11015,6 +11048,14 @@ module.exports.preset = {
|
|
|
11015
11048
|
"light": "{colorNeutral750}",
|
|
11016
11049
|
"dark": "{colorNeutral750}"
|
|
11017
11050
|
},
|
|
11051
|
+
"colorBorderNotificationStackBarHover": {
|
|
11052
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
11053
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
11054
|
+
},
|
|
11055
|
+
"colorBorderNotificationStackBarActive": {
|
|
11056
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
11057
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
11058
|
+
},
|
|
11018
11059
|
"colorBorderNotificationStackBarFocused": {
|
|
11019
11060
|
"light": "{colorNeutral100}",
|
|
11020
11061
|
"dark": "{colorNeutral100}"
|
|
@@ -12705,6 +12746,14 @@ module.exports.preset = {
|
|
|
12705
12746
|
"light": "{colorNeutral750}",
|
|
12706
12747
|
"dark": "{colorNeutral750}"
|
|
12707
12748
|
},
|
|
12749
|
+
"colorBorderNotificationStackBarHover": {
|
|
12750
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
12751
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
12752
|
+
},
|
|
12753
|
+
"colorBorderNotificationStackBarActive": {
|
|
12754
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
12755
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
12756
|
+
},
|
|
12708
12757
|
"colorBorderNotificationStackBarFocused": {
|
|
12709
12758
|
"light": "{colorNeutral100}",
|
|
12710
12759
|
"dark": "{colorNeutral100}"
|
|
@@ -14397,6 +14446,14 @@ module.exports.preset = {
|
|
|
14397
14446
|
"light": "{colorNeutral750}",
|
|
14398
14447
|
"dark": "{colorNeutral750}"
|
|
14399
14448
|
},
|
|
14449
|
+
"colorBorderNotificationStackBarHover": {
|
|
14450
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
14451
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
14452
|
+
},
|
|
14453
|
+
"colorBorderNotificationStackBarActive": {
|
|
14454
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
14455
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
14456
|
+
},
|
|
14400
14457
|
"colorBorderNotificationStackBarFocused": {
|
|
14401
14458
|
"light": "{colorNeutral100}",
|
|
14402
14459
|
"dark": "{colorNeutral100}"
|
|
@@ -15865,6 +15922,8 @@ module.exports.preset = {
|
|
|
15865
15922
|
"colorBorderLayout": "color",
|
|
15866
15923
|
"colorBorderLayoutSideNavigation": "color",
|
|
15867
15924
|
"colorBorderNotificationStackBar": "color",
|
|
15925
|
+
"colorBorderNotificationStackBarHover": "color",
|
|
15926
|
+
"colorBorderNotificationStackBarActive": "color",
|
|
15868
15927
|
"colorBorderNotificationStackBarFocused": "color",
|
|
15869
15928
|
"colorBorderPanelHeader": "color",
|
|
15870
15929
|
"colorBorderPopover": "color",
|
|
@@ -18216,6 +18275,8 @@ module.exports.preset = {
|
|
|
18216
18275
|
"colorBorderLayout": "color-border-layout",
|
|
18217
18276
|
"colorBorderLayoutSideNavigation": "color-border-layout-side-navigation",
|
|
18218
18277
|
"colorBorderNotificationStackBar": "color-border-notification-stack-bar",
|
|
18278
|
+
"colorBorderNotificationStackBarHover": "color-border-notification-stack-bar-hover",
|
|
18279
|
+
"colorBorderNotificationStackBarActive": "color-border-notification-stack-bar-active",
|
|
18219
18280
|
"colorBorderNotificationStackBarFocused": "color-border-notification-stack-bar-focused",
|
|
18220
18281
|
"colorBorderPanelHeader": "color-border-panel-header",
|
|
18221
18282
|
"colorBorderPopover": "color-border-popover",
|
|
@@ -18590,6 +18651,7 @@ module.exports.preset = {
|
|
|
18590
18651
|
"borderWidthDialog": "border-width-dialog",
|
|
18591
18652
|
"borderWidthItemSelected": "border-width-item-selected",
|
|
18592
18653
|
"borderWidthLayoutSideNavigation": "border-width-layout-side-navigation",
|
|
18654
|
+
"borderWidthNotificationStackBar": "border-width-notification-stack-bar",
|
|
18593
18655
|
"borderWidthBadge": "border-width-badge",
|
|
18594
18656
|
"borderWidthPopover": "border-width-popover",
|
|
18595
18657
|
"borderWidthToken": "border-width-token",
|
|
@@ -19382,6 +19444,8 @@ module.exports.preset = {
|
|
|
19382
19444
|
"colorBorderLayout": "--color-border-layout-h5yp20",
|
|
19383
19445
|
"colorBorderLayoutSideNavigation": "--color-border-layout-side-navigation-a02vgs",
|
|
19384
19446
|
"colorBorderNotificationStackBar": "--color-border-notification-stack-bar-iua5tr",
|
|
19447
|
+
"colorBorderNotificationStackBarHover": "--color-border-notification-stack-bar-hover-pzy1rr",
|
|
19448
|
+
"colorBorderNotificationStackBarActive": "--color-border-notification-stack-bar-active-itxyux",
|
|
19385
19449
|
"colorBorderNotificationStackBarFocused": "--color-border-notification-stack-bar-focused-6lgllw",
|
|
19386
19450
|
"colorBorderPanelHeader": "--color-border-panel-header-sqy0v4",
|
|
19387
19451
|
"colorBorderPopover": "--color-border-popover-e8qomr",
|
|
@@ -19756,6 +19820,7 @@ module.exports.preset = {
|
|
|
19756
19820
|
"borderWidthDialog": "--border-width-dialog-6bh1ii",
|
|
19757
19821
|
"borderWidthItemSelected": "--border-width-item-selected-l41fek",
|
|
19758
19822
|
"borderWidthLayoutSideNavigation": "--border-width-layout-side-navigation-q0k26x",
|
|
19823
|
+
"borderWidthNotificationStackBar": "--border-width-notification-stack-bar-b90c4m",
|
|
19759
19824
|
"borderWidthBadge": "--border-width-badge-p88itr",
|
|
19760
19825
|
"borderWidthPopover": "--border-width-popover-snsxri",
|
|
19761
19826
|
"borderWidthToken": "--border-width-token-p4a0gu",
|
|
@@ -2359,6 +2359,14 @@ export var preset = {
|
|
|
2359
2359
|
"light": "{colorNeutral750}",
|
|
2360
2360
|
"dark": "{colorNeutral750}"
|
|
2361
2361
|
},
|
|
2362
|
+
"colorBorderNotificationStackBarHover": {
|
|
2363
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
2364
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
2365
|
+
},
|
|
2366
|
+
"colorBorderNotificationStackBarActive": {
|
|
2367
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
2368
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
2369
|
+
},
|
|
2362
2370
|
"colorBorderNotificationStackBarFocused": {
|
|
2363
2371
|
"light": "{colorNeutral100}",
|
|
2364
2372
|
"dark": "{colorNeutral100}"
|
|
@@ -3396,6 +3404,7 @@ export var preset = {
|
|
|
3396
3404
|
"borderWidthDialog": "{borderWidthCard}",
|
|
3397
3405
|
"borderWidthItemSelected": "2px",
|
|
3398
3406
|
"borderWidthLayoutSideNavigation": "{borderDividerSectionWidth}",
|
|
3407
|
+
"borderWidthNotificationStackBar": "2px",
|
|
3399
3408
|
"borderWidthBadge": "0px",
|
|
3400
3409
|
"borderWidthPopover": "2px",
|
|
3401
3410
|
"borderWidthToken": "2px",
|
|
@@ -5551,6 +5560,14 @@ export var preset = {
|
|
|
5551
5560
|
"light": "{colorNeutral750}",
|
|
5552
5561
|
"dark": "{colorNeutral750}"
|
|
5553
5562
|
},
|
|
5563
|
+
"colorBorderNotificationStackBarHover": {
|
|
5564
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
5565
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
5566
|
+
},
|
|
5567
|
+
"colorBorderNotificationStackBarActive": {
|
|
5568
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
5569
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
5570
|
+
},
|
|
5554
5571
|
"colorBorderNotificationStackBarFocused": {
|
|
5555
5572
|
"light": "{colorNeutral100}",
|
|
5556
5573
|
"dark": "{colorNeutral100}"
|
|
@@ -7471,6 +7488,14 @@ export var preset = {
|
|
|
7471
7488
|
"light": "{colorNeutral750}",
|
|
7472
7489
|
"dark": "{colorNeutral750}"
|
|
7473
7490
|
},
|
|
7491
|
+
"colorBorderNotificationStackBarHover": {
|
|
7492
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
7493
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
7494
|
+
},
|
|
7495
|
+
"colorBorderNotificationStackBarActive": {
|
|
7496
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
7497
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
7498
|
+
},
|
|
7474
7499
|
"colorBorderNotificationStackBarFocused": {
|
|
7475
7500
|
"light": "{colorNeutral100}",
|
|
7476
7501
|
"dark": "{colorNeutral100}"
|
|
@@ -9325,6 +9350,14 @@ export var preset = {
|
|
|
9325
9350
|
"light": "{colorNeutral750}",
|
|
9326
9351
|
"dark": "{colorNeutral750}"
|
|
9327
9352
|
},
|
|
9353
|
+
"colorBorderNotificationStackBarHover": {
|
|
9354
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
9355
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
9356
|
+
},
|
|
9357
|
+
"colorBorderNotificationStackBarActive": {
|
|
9358
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
9359
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
9360
|
+
},
|
|
9328
9361
|
"colorBorderNotificationStackBarFocused": {
|
|
9329
9362
|
"light": "{colorNeutral100}",
|
|
9330
9363
|
"dark": "{colorNeutral100}"
|
|
@@ -11015,6 +11048,14 @@ export var preset = {
|
|
|
11015
11048
|
"light": "{colorNeutral750}",
|
|
11016
11049
|
"dark": "{colorNeutral750}"
|
|
11017
11050
|
},
|
|
11051
|
+
"colorBorderNotificationStackBarHover": {
|
|
11052
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
11053
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
11054
|
+
},
|
|
11055
|
+
"colorBorderNotificationStackBarActive": {
|
|
11056
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
11057
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
11058
|
+
},
|
|
11018
11059
|
"colorBorderNotificationStackBarFocused": {
|
|
11019
11060
|
"light": "{colorNeutral100}",
|
|
11020
11061
|
"dark": "{colorNeutral100}"
|
|
@@ -12705,6 +12746,14 @@ export var preset = {
|
|
|
12705
12746
|
"light": "{colorNeutral750}",
|
|
12706
12747
|
"dark": "{colorNeutral750}"
|
|
12707
12748
|
},
|
|
12749
|
+
"colorBorderNotificationStackBarHover": {
|
|
12750
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
12751
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
12752
|
+
},
|
|
12753
|
+
"colorBorderNotificationStackBarActive": {
|
|
12754
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
12755
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
12756
|
+
},
|
|
12708
12757
|
"colorBorderNotificationStackBarFocused": {
|
|
12709
12758
|
"light": "{colorNeutral100}",
|
|
12710
12759
|
"dark": "{colorNeutral100}"
|
|
@@ -14397,6 +14446,14 @@ export var preset = {
|
|
|
14397
14446
|
"light": "{colorNeutral750}",
|
|
14398
14447
|
"dark": "{colorNeutral750}"
|
|
14399
14448
|
},
|
|
14449
|
+
"colorBorderNotificationStackBarHover": {
|
|
14450
|
+
"light": "{colorBackgroundNotificationStackBarHover}",
|
|
14451
|
+
"dark": "{colorBackgroundNotificationStackBarHover}"
|
|
14452
|
+
},
|
|
14453
|
+
"colorBorderNotificationStackBarActive": {
|
|
14454
|
+
"light": "{colorBackgroundNotificationStackBar}",
|
|
14455
|
+
"dark": "{colorBackgroundNotificationStackBar}"
|
|
14456
|
+
},
|
|
14400
14457
|
"colorBorderNotificationStackBarFocused": {
|
|
14401
14458
|
"light": "{colorNeutral100}",
|
|
14402
14459
|
"dark": "{colorNeutral100}"
|
|
@@ -15865,6 +15922,8 @@ export var preset = {
|
|
|
15865
15922
|
"colorBorderLayout": "color",
|
|
15866
15923
|
"colorBorderLayoutSideNavigation": "color",
|
|
15867
15924
|
"colorBorderNotificationStackBar": "color",
|
|
15925
|
+
"colorBorderNotificationStackBarHover": "color",
|
|
15926
|
+
"colorBorderNotificationStackBarActive": "color",
|
|
15868
15927
|
"colorBorderNotificationStackBarFocused": "color",
|
|
15869
15928
|
"colorBorderPanelHeader": "color",
|
|
15870
15929
|
"colorBorderPopover": "color",
|
|
@@ -18216,6 +18275,8 @@ export var preset = {
|
|
|
18216
18275
|
"colorBorderLayout": "color-border-layout",
|
|
18217
18276
|
"colorBorderLayoutSideNavigation": "color-border-layout-side-navigation",
|
|
18218
18277
|
"colorBorderNotificationStackBar": "color-border-notification-stack-bar",
|
|
18278
|
+
"colorBorderNotificationStackBarHover": "color-border-notification-stack-bar-hover",
|
|
18279
|
+
"colorBorderNotificationStackBarActive": "color-border-notification-stack-bar-active",
|
|
18219
18280
|
"colorBorderNotificationStackBarFocused": "color-border-notification-stack-bar-focused",
|
|
18220
18281
|
"colorBorderPanelHeader": "color-border-panel-header",
|
|
18221
18282
|
"colorBorderPopover": "color-border-popover",
|
|
@@ -18590,6 +18651,7 @@ export var preset = {
|
|
|
18590
18651
|
"borderWidthDialog": "border-width-dialog",
|
|
18591
18652
|
"borderWidthItemSelected": "border-width-item-selected",
|
|
18592
18653
|
"borderWidthLayoutSideNavigation": "border-width-layout-side-navigation",
|
|
18654
|
+
"borderWidthNotificationStackBar": "border-width-notification-stack-bar",
|
|
18593
18655
|
"borderWidthBadge": "border-width-badge",
|
|
18594
18656
|
"borderWidthPopover": "border-width-popover",
|
|
18595
18657
|
"borderWidthToken": "border-width-token",
|
|
@@ -19382,6 +19444,8 @@ export var preset = {
|
|
|
19382
19444
|
"colorBorderLayout": "--color-border-layout-h5yp20",
|
|
19383
19445
|
"colorBorderLayoutSideNavigation": "--color-border-layout-side-navigation-a02vgs",
|
|
19384
19446
|
"colorBorderNotificationStackBar": "--color-border-notification-stack-bar-iua5tr",
|
|
19447
|
+
"colorBorderNotificationStackBarHover": "--color-border-notification-stack-bar-hover-pzy1rr",
|
|
19448
|
+
"colorBorderNotificationStackBarActive": "--color-border-notification-stack-bar-active-itxyux",
|
|
19385
19449
|
"colorBorderNotificationStackBarFocused": "--color-border-notification-stack-bar-focused-6lgllw",
|
|
19386
19450
|
"colorBorderPanelHeader": "--color-border-panel-header-sqy0v4",
|
|
19387
19451
|
"colorBorderPopover": "--color-border-popover-e8qomr",
|
|
@@ -19756,6 +19820,7 @@ export var preset = {
|
|
|
19756
19820
|
"borderWidthDialog": "--border-width-dialog-6bh1ii",
|
|
19757
19821
|
"borderWidthItemSelected": "--border-width-item-selected-l41fek",
|
|
19758
19822
|
"borderWidthLayoutSideNavigation": "--border-width-layout-side-navigation-q0k26x",
|
|
19823
|
+
"borderWidthNotificationStackBar": "--border-width-notification-stack-bar-b90c4m",
|
|
19759
19824
|
"borderWidthBadge": "--border-width-badge-p88itr",
|
|
19760
19825
|
"borderWidthPopover": "--border-width-popover-snsxri",
|
|
19761
19826
|
"borderWidthToken": "--border-width-token-p4a0gu",
|
package/internal/manifest.json
CHANGED