@amboss/design-system 4.0.0-next.3 → 4.0.0-next.4
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/build/cjs/components/AIButton/AIButton.js +1 -4
- package/build/cjs/components/AIFloatingButton/AIFloatingButton.d.ts +10 -0
- package/build/cjs/components/AIFloatingButton/AIFloatingButton.js +1 -0
- package/build/cjs/components/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/build/cjs/components/AvatarGroup/AvatarGroup.js +1 -1
- package/build/cjs/components/ChatMessage/ChatMessage.d.ts +46 -0
- package/build/cjs/components/ChatMessage/ChatMessage.js +1 -0
- package/build/cjs/components/ChatMessage/index.d.ts +2 -0
- package/build/cjs/components/ChatMessage/index.js +1 -0
- package/build/cjs/components/ChatResponse/ChatResponse.d.ts +50 -0
- package/build/cjs/components/ChatResponse/ChatResponse.js +1 -0
- package/build/cjs/components/ChatResponse/constants.d.ts +7 -0
- package/build/cjs/components/ChatResponse/constants.js +1 -0
- package/build/cjs/components/ChatResponse/index.d.ts +2 -0
- package/build/cjs/components/ChatResponse/index.js +1 -0
- package/build/cjs/components/Form/ToolbarToggle/-types.d.ts +1 -1
- package/build/cjs/components/Internal/Float/Float.d.ts +7 -0
- package/build/cjs/components/Internal/Float/Float.js +1 -0
- package/build/cjs/components/Patterns/EmptyState/EmptyState.d.ts +1 -1
- package/build/cjs/components/Patterns/EmptyState/EmptyState.js +1 -1
- package/build/cjs/components/Portal/Portal.d.ts +1 -0
- package/build/cjs/components/Portal/Portal.js +1 -1
- package/build/cjs/components/Utilities/FloatingPosition/useFloatingPosition.d.ts +18 -4
- package/build/cjs/components/Utilities/FloatingPosition/useFloatingPosition.js +1 -1
- package/build/cjs/components/Utilities/FloatingPosition/utils.d.ts +6 -0
- package/build/cjs/components/Utilities/FloatingPosition/utils.js +1 -1
- package/build/cjs/index.d.ts +3 -0
- package/build/cjs/index.js +1 -1
- package/build/cjs/shared/mixins/Button/getAIButtonStyles.d.ts +7 -0
- package/build/cjs/shared/mixins/Button/getAIButtonStyles.js +4 -0
- package/build/cjs/web-tokens/_colors.json +10 -0
- package/build/cjs/web-tokens/assets/icons.json +2 -1
- package/build/cjs/web-tokens/assets/icons16.json +1 -0
- package/build/cjs/web-tokens/visualConfig.d.ts +7 -0
- package/build/cjs/web-tokens/visualConfig.js +1 -1
- package/build/esm/components/AIButton/AIButton.js +1 -4
- package/build/esm/components/AIFloatingButton/AIFloatingButton.d.ts +10 -0
- package/build/esm/components/AIFloatingButton/AIFloatingButton.js +1 -0
- package/build/esm/components/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/build/esm/components/AvatarGroup/AvatarGroup.js +1 -1
- package/build/esm/components/ChatMessage/ChatMessage.d.ts +46 -0
- package/build/esm/components/ChatMessage/ChatMessage.js +1 -0
- package/build/esm/components/ChatMessage/index.d.ts +2 -0
- package/build/esm/components/ChatMessage/index.js +1 -0
- package/build/esm/components/ChatResponse/ChatResponse.d.ts +50 -0
- package/build/esm/components/ChatResponse/ChatResponse.js +1 -0
- package/build/esm/components/ChatResponse/constants.d.ts +7 -0
- package/build/esm/components/ChatResponse/constants.js +1 -0
- package/build/esm/components/ChatResponse/index.d.ts +2 -0
- package/build/esm/components/ChatResponse/index.js +1 -0
- package/build/esm/components/Form/ToolbarToggle/-types.d.ts +1 -1
- package/build/esm/components/Internal/Float/Float.d.ts +7 -0
- package/build/esm/components/Internal/Float/Float.js +1 -0
- package/build/esm/components/Patterns/EmptyState/EmptyState.d.ts +1 -1
- package/build/esm/components/Patterns/EmptyState/EmptyState.js +1 -1
- package/build/esm/components/Portal/Portal.d.ts +1 -0
- package/build/esm/components/Portal/Portal.js +1 -1
- package/build/esm/components/Utilities/FloatingPosition/useFloatingPosition.d.ts +18 -4
- package/build/esm/components/Utilities/FloatingPosition/useFloatingPosition.js +1 -1
- package/build/esm/components/Utilities/FloatingPosition/utils.d.ts +6 -0
- package/build/esm/components/Utilities/FloatingPosition/utils.js +1 -1
- package/build/esm/index.d.ts +3 -0
- package/build/esm/index.js +1 -1
- package/build/esm/shared/mixins/Button/getAIButtonStyles.d.ts +7 -0
- package/build/esm/shared/mixins/Button/getAIButtonStyles.js +4 -0
- package/build/esm/web-tokens/_colors.json +10 -0
- package/build/esm/web-tokens/assets/icons.json +2 -1
- package/build/esm/web-tokens/assets/icons16.json +1 -0
- package/build/esm/web-tokens/visualConfig.d.ts +7 -0
- package/build/esm/web-tokens/visualConfig.js +1 -1
- package/build/scss/_dark.scss +1 -0
- package/build/scss/_light.scss +1 -0
- package/build/scss/_variables.scss +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React, { type ReactNode, type ReactElement } from "react";
|
|
2
|
+
import type { BinaryFeedbackOption } from "../BinaryFeedback/-types";
|
|
3
|
+
import type { IconName } from "../Icon/Icon";
|
|
4
|
+
import type { SlotProps } from "../../shared/slotProps";
|
|
5
|
+
import type { PictogramButtonAction } from "../ChatMessage/ChatMessage";
|
|
6
|
+
/**
|
|
7
|
+
* An action rendered as a BinaryFeedback (thumbs up/down) in ChatResponse.
|
|
8
|
+
* When included in the actions array, feedback buttons are rendered inline with other actions.
|
|
9
|
+
*/
|
|
10
|
+
export type BinaryFeedbackAction = {
|
|
11
|
+
/** The component to render for this action */
|
|
12
|
+
component: React.ComponentType<any>;
|
|
13
|
+
/** Called when the user selects a feedback option */
|
|
14
|
+
onChange: (value: string) => void;
|
|
15
|
+
/** Current feedback value */
|
|
16
|
+
value?: string;
|
|
17
|
+
/** Custom positive option config */
|
|
18
|
+
positiveOption?: BinaryFeedbackOption;
|
|
19
|
+
/** Custom negative option config */
|
|
20
|
+
negativeOption?: BinaryFeedbackOption;
|
|
21
|
+
};
|
|
22
|
+
/** Union of all action types supported by ChatResponse */
|
|
23
|
+
export type ChatResponseAction = PictogramButtonAction | BinaryFeedbackAction;
|
|
24
|
+
export type ChatResponseSlotProps = Required<SlotProps<{
|
|
25
|
+
/** Props forwarded to the overflow DropdownMenu trigger (shown when actions exceed the visible limit) */
|
|
26
|
+
dropdownMenu: {
|
|
27
|
+
/** Accessible label for the dropdown trigger button */
|
|
28
|
+
"aria-label": string;
|
|
29
|
+
};
|
|
30
|
+
}>>;
|
|
31
|
+
export type ChatResponseProps = {
|
|
32
|
+
/** Name for the avatar (e.g., "AI Mode") */
|
|
33
|
+
avatarName: string;
|
|
34
|
+
/** Icon for the AI avatar (e.g., "ai-sparkle") */
|
|
35
|
+
avatarIcon?: IconName;
|
|
36
|
+
/** Show loading skeleton instead of children */
|
|
37
|
+
isLoading?: boolean;
|
|
38
|
+
/** Displays message in error state with an alert icon */
|
|
39
|
+
hasError?: boolean;
|
|
40
|
+
/** Custom error message text (e.g., for i18n) */
|
|
41
|
+
errorMessage?: string;
|
|
42
|
+
/** Actions rendered in the actions bar. Supports `BinaryFeedback` and `PictogramButton` action types. Up to 5 total visible slots; overflow PictogramButton actions are placed in a dropdown menu automatically. Actions render in the order provided. */
|
|
43
|
+
actions?: ChatResponseAction[];
|
|
44
|
+
/** Props forwarded to internal interactive elements */
|
|
45
|
+
slotProps: ChatResponseSlotProps;
|
|
46
|
+
/** The AI response content to render inside the message bubble. */
|
|
47
|
+
children?: ReactNode;
|
|
48
|
+
"data-e2e-test-id"?: string;
|
|
49
|
+
};
|
|
50
|
+
export declare function ChatResponse({ avatarName, avatarIcon, isLoading, hasError, errorMessage, actions, slotProps, children, "data-e2e-test-id": dataE2eTestId, ...ariaAttributes }: ChatResponseProps): ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ChatResponse",{enumerable:!0,get:function(){return ChatResponse}});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=/*#__PURE__*/_interop_require_default._(require("react")),_styled=/*#__PURE__*/_interop_require_default._(require("@emotion/styled")),_Avatar=require("../Avatar/Avatar"),_Icon=require("../Icon/Icon"),_Text=require("../Typography/Text/Text"),_TextSkeleton=require("../Typography/Text/TextSkeleton"),_PictogramButton=require("../PictogramButton/PictogramButton"),_BinaryFeedback=require("../BinaryFeedback/BinaryFeedback"),_DropdownMenu=require("../DropdownMenu/DropdownMenu"),_Inline=require("../Inline/Inline"),_Box=require("../Box/Box"),_Stack=require("../Stack/Stack"),_SubThemeProvider=require("../SubThemeProvider/SubThemeProvider"),_breakpointsjson=/*#__PURE__*/_interop_require_default._(require("../../web-tokens/_breakpoints.json")),_constants=require("./constants"),StyledLoadingContainer=(0,_styled.default)("div",{target:"e14oojho0",label:"StyledLoadingContainer"})(()=>({minWidth:`min(${_constants.CHAT_CONTENT_FLUID_WIDTH}%, ${_constants.CHAT_CONTENT_WIDTH_MAX}px)`,maxWidth:`min(${_constants.CHAT_CONTENT_FLUID_WIDTH}%, ${_constants.CHAT_CONTENT_WIDTH_MAX}px)`,[`@media (min-width: ${_breakpointsjson.default.s.value}px)`]:{minWidth:`${_breakpointsjson.default.s.value}px`,maxWidth:`${_breakpointsjson.default.s.value}px`}}),"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvQ2hhdFJlc3BvbnNlL0NoYXRSZXNwb25zZS50c3giLCJzb3VyY2VzIjpbInNyYy9jb21wb25lbnRzL0NoYXRSZXNwb25zZS9DaGF0UmVzcG9uc2UudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB0eXBlIFJlYWN0Tm9kZSwgdHlwZSBSZWFjdEVsZW1lbnQgfSBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiO1xuaW1wb3J0IHsgQXZhdGFyIH0gZnJvbSBcIi4uL0F2YXRhci9BdmF0YXJcIjtcbmltcG9ydCB7IEljb24gfSBmcm9tIFwiLi4vSWNvbi9JY29uXCI7XG5pbXBvcnQgeyBUZXh0IH0gZnJvbSBcIi4u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LFxuICAgICAgICAgICAgICAgICAgXCJjb21wb25lbnRcIlxuICAgICAgICAgICAgICAgID47XG4gICAgICAgICAgICAgICAgZGVmYXVsdEFjdGlvblByb3BzID0ge1xuICAgICAgICAgICAgICAgICAga2V5OiBgYWN0aW9uLWZlZWRiYWNrLSR7XG4gICAgICAgICAgICAgICAgICAgIGZlZWRiYWNrUHJvcHMucG9zaXRpdmVPcHRpb24/LnZhbHVlID8/IFwicG9zaXRpdmVcIlxuICAgICAgICAgICAgICAgICAgfS0ke2ZlZWRiYWNrUHJvcHMubmVnYXRpdmVPcHRpb24/LnZhbHVlID8/IFwibmVnYXRpdmVcIn1gLFxuICAgICAgICAgICAgICAgICAgcG9zaXRpdmVPcHRpb246IGZlZWRiYWNrUHJvcHMucG9zaXRpdmVPcHRpb24gPz8ge1xuICAgICAgICAgICAgICAgICAgICBsYWJlbDogXCJQb3NpdGl2ZVwiLFxuICAgICAgICAgICAgICAgICAgICB2YWx1ZTogXCJwb3NpdGl2ZVwiLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIG5lZ2F0aXZlT3B0aW9uOiBmZWVkYmFja1Byb3BzLm5lZ2F0aXZlT3B0aW9uID8/IHtcbiAgICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiTmVnYXRpdmVcIixcbiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IFwibmVnYXRpdmVcIixcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBpY29uT25seTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgIHNpemU6IFwieHNcIixcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgaWYgKEFjdGlvbkNvbXBvbmVudCA9PT0gUGljdG9ncmFtQnV0dG9uKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgYnV0dG9uUHJvcHMgPSByZXN0QWN0aW9uUHJvcHMgYXMgdW5rbm93biBhcyBPbWl0PFxuICAgICAgICAgICAgICAgICAgUGljdG9ncmFtQnV0dG9uQWN0aW9uLFxuICAgICAgICAgICAgICAgICAgXCJjb21wb25lbnRcIlxuICAgICAgICAgICAgICAgID47XG4gICAgICAgICAgICAgICAgZGVmYXVsdEFjdGlvblByb3BzID0ge1xuICAgICAgICAgICAgICAgICAga2V5OiBgYWN0aW9uLSR7YnV0dG9uUHJvcHMubGFiZWx9YCxcbiAgICAgICAgICAgICAgICAgIHZhcmlhbnQ6IFwicXVhdGVybmFyeVwiLFxuICAgICAgICAgICAgICAgICAgc2l6ZTogXCJ4c1wiLFxuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICAgIDxBY3Rpb25Db21wb25lbnQgey4uLnJlc3RBY3Rpb25Qcm9wc30gey4uLmRlZmF1bHRBY3Rpb25Qcm9wc30gLz5cbiAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICApfVxuXG4gICAgICAgICAge292ZXJmbG93QWN0aW9ucy5sZW5ndGggPiAwICYmIChcbiAgICAgICAgICAgIDxEcm9wZG93bk1lbnVcbiAgICAgICAgICAgICAgc2l6ZT1cInhzXCJcbiAgICAgICAgICAgICAgaWNvbk5hbWU9XCJtb3JlLWhvcml6b250YWxcIlxuICAgICAgICAgICAgICBtZW51SXRlbXM9e292ZXJmbG93QWN0aW9ucy5tYXAoKHsgbGFiZWwsIGljb24sIG9uQ2xpY2sgfSkgPT4gKHtcbiAgICAgICAgICAgICAgICBsYWJlbCxcbiAgICAgICAgICAgICAgICBpY29uLFxuICAgICAgICAgICAgICAgIG9uU2VsZWN0OiBvbkNsaWNrLFxuICAgICAgICAgICAgICB9KSl9XG4gICAgICAgICAgICAgIHRyaWdnZXJBcmlhTGFiZWw9e3Nsb3RQcm9wcy5kcm9wZG93bk1lbnVbXCJhcmlhLWxhYmVsXCJdfVxuICAgICAgICAgICAgLz5cbiAg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+XG4gICAgICAgIDxUZXh0IGFzPVwic3BhblwiIHNpemU9XCJtXCIgd2VpZ2h0PVwiYm9sZFwiPlxuICAgICAgICAgIHthdmF0YXJOYW1lfVxuICAgICAgICA8L1RleHQ+XG4gICAgICA8L0lubGluZT5cblxuICAgICAge2lzTG9hZGluZyAmJiAoXG4gICAgICAgIDxTdHlsZWRMb2FkaW5nQ29udGFpbmVyPlxuICAgICAgICAgIDxCb3ggc3BhY2U9XCJ6ZXJvXCIgbFNwYWNlPVwieGxcIj5cbiAgICAgICAgICAgIDxUZXh0U2tlbGV0b24gbGluZXM9ezJ9IC8+XG4gICAgICAgICAgPC9Cb3g+XG4gICAgICAgIDwvU3R5bGVkTG9hZGluZ0NvbnRhaW5lcj5cbiAgICAgICl9XG5cbiAgICAgIHshaXNMb2FkaW5nICYmIChcbiAgICAgICAgPEJveCBzcGFjZT1cInplcm9cIiBsU3BhY2U9XCJ4bFwiPlxuICAgICAgICAgIHtoYXNFcnJvciA/IChcbiAgICAgICAgICAgIDxJbmxpbmUgcm9sZT1cImFsZXJ0XCIgdkFsaWduSXRlbXM9XCJjZW50ZXJcIiBzcGFjZT1cInhzXCI+XG4gICAgICAgICAgICAgIDxJY29uIG5hbWU9XCJhbGVydC10cmlhbmdsZVwiIGNvbG9yPVwiZXJyb3JcIiBzaXplPVwic1wiIC8+XG4gICAgICAgICAgICAgIDxUZXh0IGFzPVwic3BhblwiIHNpemU9XCJtXCIgY29sb3I9XCJlcnJvclwiPlxuICAgICAgICAgICAgICAgIHtlcnJvck1lc3NhZ2V9XG4gICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgIDwvSW5saW5lPlxuICAgICAgICAgICkgOiAoXG4gICAgICAgICAgICBjaGlsZHJlblxuICAgICAgICAgICl9XG4gICAgICAgIDwvQm94PlxuICAgICAgKX1cblxuICAgICAge3Nob3dBY3Rpb25zICYmIDxBY3Rpb25zQmFyIGFjdGlvbnM9e2FjdGlvbnN9IHNsb3RQcm9wcz17c2xvdFByb3BzfSAvPn1cbiAgICA8L1N0YWNrPlxuICApO1xufVxuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZFK0IifQ== */"),ActionsBar=({actions=[],slotProps})=>{if(0===actions.length)return null;let slotsUsed=0,visibleActions=[],overflowActions=[];for(let action of actions)action.component===_BinaryFeedback.BinaryFeedback||slotsUsed<_constants.MAX_VISIBLE_ACTION_BUTTONS?(visibleActions.push(action),slotsUsed+=1):overflowActions.push(action);return _react.default.createElement(_Box.Box,{space:"zero",lSpace:"l"},_react.default.createElement(_Box.Box,{space:"zero",lSpace:"xxs"},_react.default.createElement(_Inline.Inline,{space:"xxxs",vAlignItems:"center"},visibleActions.map(({component:ActionComponent,...restActionProps})=>{let defaultActionProps={};return ActionComponent===_BinaryFeedback.BinaryFeedback&&(defaultActionProps={key:`action-feedback-${restActionProps.positiveOption?.value??"positive"}-${restActionProps.negativeOption?.value??"negative"}`,positiveOption:restActionProps.positiveOption??{label:"Positive",value:"positive"},negativeOption:restActionProps.negativeOption??{label:"Negative",value:"negative"},iconOnly:!0,size:"xs"}),ActionComponent===_PictogramButton.PictogramButton&&(defaultActionProps={key:`action-${restActionProps.label}`,variant:"quaternary",size:"xs"}),_react.default.createElement(ActionComponent,{...restActionProps,...defaultActionProps})}),overflowActions.length>0&&_react.default.createElement(_DropdownMenu.DropdownMenu,{size:"xs",iconName:"more-horizontal",menuItems:overflowActions.map(({label,icon,onClick})=>({label,icon,onSelect:onClick})),triggerAriaLabel:slotProps.dropdownMenu["aria-label"]}))))};function ChatResponse({avatarName,avatarIcon,isLoading=!1,hasError=!1,errorMessage,actions,slotProps,children,"data-e2e-test-id":dataE2eTestId,...ariaAttributes}){let hasActions=actions&&actions.length>0;return _react.default.createElement(_Stack.Stack,{space:"s",fullWidth:!0,"data-e2e-test-id":dataE2eTestId,"data-ds-id":"ChatResponse",...ariaAttributes},_react.default.createElement(_Inline.Inline,null,_react.default.createElement(_SubThemeProvider.SubThemeProvider,{name:"ai"},_react.default.createElement(_Avatar.Avatar,{label:avatarName,icon:avatarIcon,color:"purple",hideTooltip:!0})),_react.default.createElement(_Text.Text,{as:"span",size:"m",weight:"bold"},avatarName)),isLoading&&_react.default.createElement(StyledLoadingContainer,null,_react.default.createElement(_Box.Box,{space:"zero",lSpace:"xl"},_react.default.createElement(_TextSkeleton.TextSkeleton,{lines:2}))),!isLoading&&_react.default.createElement(_Box.Box,{space:"zero",lSpace:"xl"},hasError?_react.default.createElement(_Inline.Inline,{role:"alert",vAlignItems:"center",space:"xs"},_react.default.createElement(_Icon.Icon,{name:"alert-triangle",color:"error",size:"s"}),_react.default.createElement(_Text.Text,{as:"span",size:"m",color:"error"},errorMessage)):children),hasActions&&!isLoading&&_react.default.createElement(ActionsBar,{actions:actions,slotProps:slotProps}))}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const CHAT_CONTENT_FLUID_WIDTH = 80;
|
|
2
|
+
export declare const CHAT_CONTENT_WIDTH_MAX = 448;
|
|
3
|
+
/**
|
|
4
|
+
* Maximum number of visible action buttons (including built-in defaults)
|
|
5
|
+
* before overflow actions are rendered inside a dropdown menu.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MAX_VISIBLE_ACTION_BUTTONS = 5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get CHAT_CONTENT_FLUID_WIDTH(){return CHAT_CONTENT_FLUID_WIDTH},get CHAT_CONTENT_WIDTH_MAX(){return CHAT_CONTENT_WIDTH_MAX},get MAX_VISIBLE_ACTION_BUTTONS(){return MAX_VISIBLE_ACTION_BUTTONS}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const CHAT_CONTENT_FLUID_WIDTH=80,CHAT_CONTENT_WIDTH_MAX=448,MAX_VISIBLE_ACTION_BUTTONS=5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ChatResponse",{enumerable:!0,get:function(){return _ChatResponse.ChatResponse}});const _ChatResponse=require("./ChatResponse");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SegmentedControlOptionProps } from "
|
|
1
|
+
import type { SegmentedControlOptionProps } from "../SegmentedControl/-types";
|
|
2
2
|
export type ToolbarToggleProps = Pick<SegmentedControlOptionProps, "label" | "name" | "iconName" | "iconOnly" | "size" | "disabled" | "tooltipContent" | "tooltipPlacement" | "tooltipPortalContainer" | "onTooltipVisibilityChange" | "onClick" | "onBlur" | "onFocus" | "slotProps"> & {
|
|
3
3
|
/** Whether the toggle is currently pressed/active */
|
|
4
4
|
checked: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ViewportPosition } from "../../Utilities/FloatingPosition/useFloatingPosition";
|
|
3
|
+
export type FloatProps = {
|
|
4
|
+
/** The children to render inside the float. */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
} & ViewportPosition;
|
|
7
|
+
export declare function Float({ positionX, positionY, children, }: FloatProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Float",{enumerable:!0,get:function(){return Float}});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=/*#__PURE__*/_interop_require_default._(require("react")),_react1=require("@emotion/react"),_styled=/*#__PURE__*/_interop_require_default._(require("@emotion/styled")),_Portal=require("../../Portal/Portal"),_useFloatingPosition=require("../../Utilities/FloatingPosition/useFloatingPosition"),_useDocument=require("../../../shared/useDocument"),StyledContainer=(0,_styled.default)("div",{target:"eg9qi3f0",label:"StyledContainer"})(({floatingStyles,isPositioned})=>({...floatingStyles,visibility:isPositioned?"visible":"hidden"}),"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic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ICAgICBkYXRhLWRzLWlkPVwiRmxvYXRcIlxuICAgICAgICByZWY9e3NldEZsb2F0aW5nfVxuICAgICAgICBmbG9hdGluZ1N0eWxlcz17ZmxvYXRpbmdTdHlsZXN9XG4gICAgICAgIGlzUG9zaXRpb25lZD17aXNQb3NpdGlvbmVkfVxuICAgICAgPlxuICAgICAgICB7Y2hpbGRyZW59XG4gICAgICA8L1N0eWxlZENvbnRhaW5lcj5cbiAgICA8L1BvcnRhbD5cbiAgKTtcbn1cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFjd0IifQ== */");function Float({positionX,positionY,children}){let theme=(0,_react1.useTheme)(),document=(0,_useDocument.useDocument)(),{setFloating,floatingStyles,isPositioned}=(0,_useFloatingPosition.useFloatingPosition)({mode:"viewport",positionX,positionY,offset:parseInt(theme.variables.size.spacing.m,10)}),portalContainer=document?document.querySelector(`.${_Portal.AMBOSS_DS_FLOAT_PORTAL}`):null;return _react.default.createElement(_Portal.Portal,{portalContainer:portalContainer},_react.default.createElement(StyledContainer,{"data-ds-id":"Float",ref:setFloating,floatingStyles:floatingStyles,isPositioned:isPositioned},children))}
|
|
@@ -11,7 +11,7 @@ export type EmptyStateProps = {
|
|
|
11
11
|
/** Optional descriptive text below the title */
|
|
12
12
|
description?: string;
|
|
13
13
|
/** Visual style variant that determines default icon and color scheme */
|
|
14
|
-
variant?: "brand" | "warning" | "error" | "neutral";
|
|
14
|
+
variant?: "brand" | "warning" | "error" | "neutral" | "ai";
|
|
15
15
|
/** Custom icon to override the default for the type */
|
|
16
16
|
icon?: IconName;
|
|
17
17
|
/** Optional action element: either EmptyState.ButtonGroup or EmptyState.Link */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"EmptyState",{enumerable:!0,get:function(){return EmptyState}});const _react=/*#__PURE__*/require("@swc/helpers/_/_interop_require_default")._(require("react")),_ariaAttributes=require("../../../shared/ariaAttributes"),_IconTile=require("../../IconTile/IconTile"),_Link=require("../../Link/Link"),_Stack=require("../../Stack/Stack"),_Header=require("../../Typography/Header"),_Text=require("../../Typography/Text"),_ButtonGroup=require("../ButtonGroup/ButtonGroup"),DEFAULT_ICONS_BY_VARIANT={brand:"face-happy",warning:"alert-circle",error:"alert-triangle",neutral:"info"},ICON_COLORS={brand:"brand",warning:"yellow",error:"red",neutral:"gray"};function EmptyState({title,titleAs="p",description,variant,icon,children,"data-e2e-test-id":dataE2eTestId,...ariaAttributes}){let reactId=_react.default.useId(),descriptionId=description&&_react.default.isValidElement(children)?`${reactId}-description`:void 0,action=descriptionId&&_react.default.isValidElement(children)?_react.default.cloneElement(children,{"aria-describedby":(0,_ariaAttributes.mergeAriaDescribedBy)(children.props["aria-describedby"],descriptionId)}):children;return _react.default.createElement(_Stack.Stack,{alignItems:"center",space:"s","data-e2e-test-id":dataE2eTestId,"data-ds-id":"EmptyState",...ariaAttributes},variant&&_react.default.createElement(_IconTile.IconTile,{icon:icon??DEFAULT_ICONS_BY_VARIANT[variant],color:ICON_COLORS[variant],"aria-hidden":!0}),_react.default.createElement(_Stack.Stack,{space:"zero",alignItems:"center"},_react.default.createElement(_Header.H3,{as:titleAs},title),description&&_react.default.createElement(_Text.Text,{id:descriptionId,align:"center",size:"s",color:"tertiary"},description)),action)}EmptyState.ButtonGroup=function({...rest}){return _react.default.createElement(_ButtonGroup.ButtonGroup,{...rest,buttonSize:"s"})},EmptyState.Link=function({children,...rest}){return _react.default.createElement(_Link.Link,{...rest,size:"s",color:"accent",weight:"bold",inline:!1},children)};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"EmptyState",{enumerable:!0,get:function(){return EmptyState}});const _react=/*#__PURE__*/require("@swc/helpers/_/_interop_require_default")._(require("react")),_ariaAttributes=require("../../../shared/ariaAttributes"),_IconTile=require("../../IconTile/IconTile"),_Link=require("../../Link/Link"),_Stack=require("../../Stack/Stack"),_Header=require("../../Typography/Header"),_Text=require("../../Typography/Text"),_ButtonGroup=require("../ButtonGroup/ButtonGroup"),DEFAULT_ICONS_BY_VARIANT={brand:"face-happy",warning:"alert-circle",error:"alert-triangle",neutral:"info",ai:"ai-sparkle"},ICON_COLORS={brand:"brand",warning:"yellow",error:"red",neutral:"gray",ai:"purple"};function EmptyState({title,titleAs="p",description,variant,icon,children,"data-e2e-test-id":dataE2eTestId,...ariaAttributes}){let reactId=_react.default.useId(),descriptionId=description&&_react.default.isValidElement(children)?`${reactId}-description`:void 0,action=descriptionId&&_react.default.isValidElement(children)?_react.default.cloneElement(children,{"aria-describedby":(0,_ariaAttributes.mergeAriaDescribedBy)(children.props["aria-describedby"],descriptionId)}):children;return _react.default.createElement(_Stack.Stack,{alignItems:"center",space:"s","data-e2e-test-id":dataE2eTestId,"data-ds-id":"EmptyState",...ariaAttributes},variant&&_react.default.createElement(_IconTile.IconTile,{icon:icon??DEFAULT_ICONS_BY_VARIANT[variant],color:ICON_COLORS[variant],"aria-hidden":!0}),_react.default.createElement(_Stack.Stack,{space:"zero",alignItems:"center"},_react.default.createElement(_Header.H3,{as:titleAs},title),description&&_react.default.createElement(_Text.Text,{id:descriptionId,align:"center",size:"s",color:"tertiary"},description)),action)}EmptyState.ButtonGroup=function({...rest}){return _react.default.createElement(_ButtonGroup.ButtonGroup,{...rest,buttonSize:"s"})},EmptyState.Link=function({children,...rest}){return _react.default.createElement(_Link.Link,{...rest,size:"s",color:"accent",weight:"bold",inline:!1},children)};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
export declare const AMBOSS_DS_PORTAL = "amboss-ds-portal";
|
|
3
|
+
export declare const AMBOSS_DS_FLOAT_PORTAL = "amboss-ds-float-portal";
|
|
3
4
|
/**
|
|
4
5
|
* Returns a zIndex incremented by Modal's zIndex if the portal child is rendered within a Modal
|
|
5
6
|
* or by Popover's zindex if the portal child is rendered within a Popover
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get AMBOSS_DS_PORTAL(){return AMBOSS_DS_PORTAL},get Portal(){return Portal},get usePortalChildZIndex(){return usePortalChildZIndex},get usePortalContainerElement(){return usePortalContainerElement}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=require("react"),_reactdom=/*#__PURE__*/_interop_require_default._(require("react-dom")),_react1=require("@emotion/react"),_useDocument=require("../../shared/useDocument"),_DialogContext=require("../Patterns/Dialog/DialogContext"),_PopoverContext=require("../Patterns/Popover/PopoverContext"),AMBOSS_DS_PORTAL="amboss-ds-portal";function usePortalChildZIndex(zIndex){let theme=(0,_react1.useTheme)();return(0,_react.useContext)(_DialogContext.DialogContext)?theme.variables.zIndex.modal+zIndex:zIndex}function usePortalContainerElement(portalContainer){let isWithinModal=(0,_react.useContext)(_DialogContext.DialogContext),{isWithinPopover,portalContainer:popoverContainer}=(0,_react.useContext)(_PopoverContext.PopoverContext),document=(0,_useDocument.useDocument)(),defaultContainer=(0,_react.useMemo)(()=>void 0===document?null:isWithinModal?document.querySelector(`.${AMBOSS_DS_PORTAL}`)||document.body:isWithinPopover&&popoverContainer||document.body,[isWithinModal,isWithinPopover,popoverContainer,document]);return portalContainer||defaultContainer}function Portal({children,portalContainer}){let container=usePortalContainerElement(portalContainer);return container&&_reactdom.default.createPortal(children,container)}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get AMBOSS_DS_FLOAT_PORTAL(){return AMBOSS_DS_FLOAT_PORTAL},get AMBOSS_DS_PORTAL(){return AMBOSS_DS_PORTAL},get Portal(){return Portal},get usePortalChildZIndex(){return usePortalChildZIndex},get usePortalContainerElement(){return usePortalContainerElement}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=require("react"),_reactdom=/*#__PURE__*/_interop_require_default._(require("react-dom")),_react1=require("@emotion/react"),_useDocument=require("../../shared/useDocument"),_DialogContext=require("../Patterns/Dialog/DialogContext"),_PopoverContext=require("../Patterns/Popover/PopoverContext"),AMBOSS_DS_PORTAL="amboss-ds-portal",AMBOSS_DS_FLOAT_PORTAL="amboss-ds-float-portal";function usePortalChildZIndex(zIndex){let theme=(0,_react1.useTheme)();return(0,_react.useContext)(_DialogContext.DialogContext)?theme.variables.zIndex.modal+zIndex:zIndex}function usePortalContainerElement(portalContainer){let isWithinModal=(0,_react.useContext)(_DialogContext.DialogContext),{isWithinPopover,portalContainer:popoverContainer}=(0,_react.useContext)(_PopoverContext.PopoverContext),document=(0,_useDocument.useDocument)(),defaultContainer=(0,_react.useMemo)(()=>void 0===document?null:isWithinModal?document.querySelector(`.${AMBOSS_DS_PORTAL}`)||document.body:isWithinPopover&&popoverContainer||document.body,[isWithinModal,isWithinPopover,popoverContainer,document]);return portalContainer||defaultContainer}function Portal({children,portalContainer}){let container=usePortalContainerElement(portalContainer);return container&&_reactdom.default.createPortal(children,container)}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties, RefObject } from "react";
|
|
2
2
|
import type { OffsetOptions, Placement, Strategy } from "@floating-ui/react-dom";
|
|
3
|
-
import type { ViewportPlacement } from "./utils";
|
|
4
3
|
export type { ViewportPlacement } from "./utils";
|
|
5
4
|
export type { Placement } from "@floating-ui/react-dom";
|
|
6
5
|
/** Position relative to an anchor element. */
|
|
@@ -17,14 +16,29 @@ type AnchorModeProps = {
|
|
|
17
16
|
/** Slide along the axis to stay in view near edges. Default `true`. */
|
|
18
17
|
shift?: boolean;
|
|
19
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* The viewport spot to pin to, expressed as separate axes. At least one axis is
|
|
21
|
+
* required; omitting an axis centers on it — e.g. `positionY: "top"` alone pins
|
|
22
|
+
* to the top edge horizontally centered, while `positionY: "top"` +
|
|
23
|
+
* `positionX: "left"` pins to the top-left corner.
|
|
24
|
+
*/
|
|
25
|
+
export type ViewportPosition = {
|
|
26
|
+
/** Vertical edge to pin to. */
|
|
27
|
+
positionY: "top" | "bottom";
|
|
28
|
+
/** Horizontal edge to pin to. Omit to center horizontally. */
|
|
29
|
+
positionX?: "left" | "right";
|
|
30
|
+
} | {
|
|
31
|
+
/** Vertical edge to pin to. Omit to center vertically. */
|
|
32
|
+
positionY?: "top" | "bottom";
|
|
33
|
+
/** Horizontal edge to pin to. */
|
|
34
|
+
positionX: "left" | "right";
|
|
35
|
+
};
|
|
20
36
|
/** Pin to a spot in the viewport, regardless of scroll. */
|
|
21
37
|
type ViewportModeProps = {
|
|
22
38
|
mode: "viewport";
|
|
23
|
-
/** Viewport spot to pin the element to. Default `"bottom"`. */
|
|
24
|
-
placement?: ViewportPlacement;
|
|
25
39
|
/** Inset from the viewport edge(s), in px. Default `0`. */
|
|
26
40
|
offset?: number;
|
|
27
|
-
};
|
|
41
|
+
} & ViewportPosition;
|
|
28
42
|
export type UseFloatingPositionProps = (AnchorModeProps | ViewportModeProps) & {
|
|
29
43
|
/** Position listeners run only while open. Default `true`. */
|
|
30
44
|
isOpen?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"useFloatingPosition",{enumerable:!0,get:function(){return useFloatingPosition}});const _react=require("react"),_reactdom=require("@floating-ui/react-dom"),_useWindow=require("../../../shared/useWindow"),_useDocument=require("../../../shared/useDocument"),_utils=require("./utils");function useFloatingPosition(props){let{isOpen=!0}=props,isViewportMode="viewport"===props.mode,window=(0,_useWindow.useWindow)(),document=(0,_useDocument.useDocument)(),{anchorPlacement,viewportPlacement,anchorOffset,viewportOffset,flipEnabled,shiftEnabled,anchorRef}="viewport"===props.mode?{anchorPlacement:void 0,viewportPlacement:props.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"useFloatingPosition",{enumerable:!0,get:function(){return useFloatingPosition}});const _react=require("react"),_reactdom=require("@floating-ui/react-dom"),_useWindow=require("../../../shared/useWindow"),_useDocument=require("../../../shared/useDocument"),_utils=require("./utils");function useFloatingPosition(props){let{isOpen=!0}=props,isViewportMode="viewport"===props.mode,window=(0,_useWindow.useWindow)(),document=(0,_useDocument.useDocument)(),{anchorPlacement,viewportPlacement,anchorOffset,viewportOffset,flipEnabled,shiftEnabled,anchorRef}="viewport"===props.mode?{anchorPlacement:void 0,viewportPlacement:(0,_utils.axesToViewportPlacement)(props.positionY,props.positionX),anchorOffset:0,viewportOffset:props.offset??0,flipEnabled:!1,shiftEnabled:!1,anchorRef:null}:{anchorPlacement:props.placement??"bottom",viewportPlacement:void 0,anchorOffset:props.offset??0,viewportOffset:0,flipEnabled:!1!==props.flip,shiftEnabled:!1!==props.shift,anchorRef:props.anchorRef??null},middleware=(0,_react.useMemo)(()=>isViewportMode?[]:[(0,_reactdom.offset)(anchorOffset),...flipEnabled?[(0,_reactdom.flip)()]:[],...shiftEnabled?[(0,_reactdom.shift)({padding:8})]:[]],[isViewportMode,anchorOffset,flipEnabled,shiftEnabled]),virtualReference=(0,_react.useMemo)(()=>viewportPlacement?{getBoundingClientRect(){let vw=document&&document.documentElement.clientWidth||window&&window.innerWidth||0,vh=window&&window.innerHeight||document&&document.documentElement.clientHeight||0;return(0,_utils.getViewportReferenceRect)(viewportPlacement,vw,vh,viewportOffset)}}:null,[viewportPlacement,viewportOffset,window,document]),{refs,floatingStyles,placement,strategy,isPositioned,update}=(0,_reactdom.useFloating)({open:isOpen,strategy:isViewportMode?"fixed":"absolute",placement:viewportPlacement?(0,_utils.viewportToFloatingPlacement)(viewportPlacement):anchorPlacement,middleware,whileElementsMounted:isOpen?_reactdom.autoUpdate:void 0});return(0,_react.useLayoutEffect)(()=>{virtualReference?refs.setReference(virtualReference):anchorRef&&refs.setReference(anchorRef.current)},[virtualReference,anchorRef,refs,isOpen]),{setFloating:refs.setFloating,floatingStyles,placement,strategy,isPositioned,update}}
|
|
@@ -19,6 +19,12 @@ export type ViewportRect = {
|
|
|
19
19
|
};
|
|
20
20
|
/** The floating-ui placement that pins the element to a given viewport spot. */
|
|
21
21
|
export declare function viewportToFloatingPlacement(placement: ViewportPlacement): Placement;
|
|
22
|
+
/**
|
|
23
|
+
* Maps the separate vertical/horizontal axes to a single `ViewportPlacement`.
|
|
24
|
+
* Both axes → a corner (`top` + `left` → `"top-start"`); a single axis →
|
|
25
|
+
* centered on the other (`top` alone → `"top"`, `left` alone → `"left"`).
|
|
26
|
+
*/
|
|
27
|
+
export declare function axesToViewportPlacement(positionY: "top" | "bottom" | undefined, positionX: "left" | "right" | undefined): ViewportPlacement;
|
|
22
28
|
/**
|
|
23
29
|
* Builds the (zero-size) reference rect for a viewport spot, in viewport
|
|
24
30
|
* coordinates — used by the virtual element under `strategy: "fixed"`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get getViewportReferenceRect(){return getViewportReferenceRect},get viewportToFloatingPlacement(){return viewportToFloatingPlacement}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const VIEWPORT_PLACEMENTS={top:{placement:"bottom",point:(viewportWidth,_viewportHeight,offset)=>({x:viewportWidth/2,y:offset})},bottom:{placement:"top",point:(viewportWidth,viewportHeight,offset)=>({x:viewportWidth/2,y:viewportHeight-offset})},left:{placement:"right",point:(_viewportWidth,viewportHeight,offset)=>({x:offset,y:viewportHeight/2})},right:{placement:"left",point:(viewportWidth,viewportHeight,offset)=>({x:viewportWidth-offset,y:viewportHeight/2})},"top-start":{placement:"bottom-start",point:(_viewportWidth,_viewportHeight,offset)=>({x:offset,y:offset})},"top-end":{placement:"bottom-end",point:(viewportWidth,_viewportHeight,offset)=>({x:viewportWidth-offset,y:offset})},"bottom-start":{placement:"top-start",point:(_viewportWidth,viewportHeight,offset)=>({x:offset,y:viewportHeight-offset})},"bottom-end":{placement:"top-end",point:(viewportWidth,viewportHeight,offset)=>({x:viewportWidth-offset,y:viewportHeight-offset})}};function viewportToFloatingPlacement(placement){return VIEWPORT_PLACEMENTS[placement].placement}function getViewportReferenceRect(placement,viewportWidth,viewportHeight,offset){let{x,y}=VIEWPORT_PLACEMENTS[placement].point(viewportWidth,viewportHeight,offset);return{x,y,width:0,height:0,top:y,left:x,right:x,bottom:y}}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get axesToViewportPlacement(){return axesToViewportPlacement},get getViewportReferenceRect(){return getViewportReferenceRect},get viewportToFloatingPlacement(){return viewportToFloatingPlacement}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const VIEWPORT_PLACEMENTS={top:{placement:"bottom",point:(viewportWidth,_viewportHeight,offset)=>({x:viewportWidth/2,y:offset})},bottom:{placement:"top",point:(viewportWidth,viewportHeight,offset)=>({x:viewportWidth/2,y:viewportHeight-offset})},left:{placement:"right",point:(_viewportWidth,viewportHeight,offset)=>({x:offset,y:viewportHeight/2})},right:{placement:"left",point:(viewportWidth,viewportHeight,offset)=>({x:viewportWidth-offset,y:viewportHeight/2})},"top-start":{placement:"bottom-start",point:(_viewportWidth,_viewportHeight,offset)=>({x:offset,y:offset})},"top-end":{placement:"bottom-end",point:(viewportWidth,_viewportHeight,offset)=>({x:viewportWidth-offset,y:offset})},"bottom-start":{placement:"top-start",point:(_viewportWidth,viewportHeight,offset)=>({x:offset,y:viewportHeight-offset})},"bottom-end":{placement:"top-end",point:(viewportWidth,viewportHeight,offset)=>({x:viewportWidth-offset,y:viewportHeight-offset})}};function viewportToFloatingPlacement(placement){return VIEWPORT_PLACEMENTS[placement].placement}function axesToViewportPlacement(positionY,positionX){return positionY&&positionX?`${positionY}-${"left"===positionX?"start":"end"}`:positionY??positionX}function getViewportReferenceRect(placement,viewportWidth,viewportHeight,offset){let{x,y}=VIEWPORT_PLACEMENTS[placement].point(viewportWidth,viewportHeight,offset);return{x,y,width:0,height:0,top:y,left:x,right:x,bottom:y}}
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const dark: VisualConfig, light: VisualConfig;
|
|
|
4
4
|
export { ThemeProvider, CacheProvider } from "@emotion/react";
|
|
5
5
|
export { default as createCache } from "@emotion/cache";
|
|
6
6
|
export * from "./components/AccessCardItem/AccessCardItem";
|
|
7
|
+
export * from "./components/AIFloatingButton/AIFloatingButton";
|
|
7
8
|
export * from "./components/Avatar/Avatar";
|
|
8
9
|
export * from "./components/AvatarGroup/AvatarGroup";
|
|
9
10
|
export * from "./components/Badge/Badge";
|
|
@@ -15,6 +16,8 @@ export * from "./components/Callout/Callout";
|
|
|
15
16
|
export * from "./components/Card/Card";
|
|
16
17
|
export * from "./components/Card/CardBox/CardBox";
|
|
17
18
|
export * from "./components/CatalogCard/CatalogCard";
|
|
19
|
+
export * from "./components/ChatMessage";
|
|
20
|
+
export * from "./components/ChatResponse";
|
|
18
21
|
export * from "./components/CheckboxCard/CheckboxCard";
|
|
19
22
|
export * from "./components/Collapsible/Collapsible";
|
|
20
23
|
export * from "./components/ColorIndicator/ColorIndicator";
|
package/build/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get CacheProvider(){return _react.CacheProvider},get ThemeProvider(){return _react.ThemeProvider},get createCache(){return _cache.default},get dark(){return dark},get light(){return light}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const _export_star=require("@swc/helpers/_/_export_star"),_interop_require_default=require("@swc/helpers/_/_interop_require_default"),_visualConfig=require("./web-tokens/visualConfig"),_react=require("@emotion/react"),_cache=/*#__PURE__*/_interop_require_default._(require("@emotion/cache"));_export_star._(require("./components/AccessCardItem/AccessCardItem"),exports),_export_star._(require("./components/Avatar/Avatar"),exports),_export_star._(require("./components/AvatarGroup/AvatarGroup"),exports),_export_star._(require("./components/Badge/Badge"),exports),_export_star._(require("./components/BinaryFeedback/BinaryFeedback"),exports),_export_star._(require("./components/Box/Box"),exports),_export_star._(require("./components/BulkActionsToolbar/BulkActionsToolbar"),exports),_export_star._(require("./components/Button/Button"),exports),_export_star._(require("./components/Callout/Callout"),exports),_export_star._(require("./components/Card/Card"),exports),_export_star._(require("./components/Card/CardBox/CardBox"),exports),_export_star._(require("./components/CatalogCard/CatalogCard"),exports),_export_star._(require("./components/CheckboxCard/CheckboxCard"),exports),_export_star._(require("./components/Collapsible/Collapsible"),exports),_export_star._(require("./components/ColorIndicator/ColorIndicator"),exports),_export_star._(require("./components/ColorPicker/ColorPicker"),exports),_export_star._(require("./components/Column/Columns"),exports),_export_star._(require("./components/Container"),exports),_export_star._(require("./components/CountButton/CountButton"),exports),_export_star._(require("./components/DataTable"),exports),_export_star._(require("./components/Divider/Divider"),exports),_export_star._(require("./components/DropdownMenu/DropdownMenu"),exports),_export_star._(require("./components/EntityList"),exports),_export_star._(require("./components/EntityTree"),exports),_export_star._(require("./components/Composite/FilterDialog/FilterDialog"),exports),_export_star._(require("./components/Form/Checkbox/Checkbox"),exports),_export_star._(require("./components/Form/Combobox/Combobox"),exports),_export_star._(require("./components/Form/DateInput/DateInput"),exports),_export_star._(require("./components/Form/DatePicker"),exports),_export_star._(require("./components/Form/FormFieldGroup/FormFieldGroup"),exports),_export_star._(require("./components/Form/Input"),exports),_export_star._(require("./components/Form/MaskedInput/MaskedInput"),exports),_export_star._(require("./components/Form/PasswordInput"),exports),_export_star._(require("./components/Form/Radio/Radio"),exports),_export_star._(require("./components/Form/RadioButton/RadioButton"),exports),_export_star._(require("./components/Form/RangeInput/RangeInput"),exports),_export_star._(require("./components/Form/SearchInput/SearchInput"),exports),_export_star._(require("./components/Form/SegmentedControl/SegmentedControl"),exports),_export_star._(require("./components/Form/Select"),exports),_export_star._(require("./components/Form/ToolbarToggle/ToolbarToggle"),exports),_export_star._(require("./components/Form/Textarea/Textarea"),exports),_export_star._(require("./components/Form/Toggle/Toggle"),exports),_export_star._(require("./components/Form/ToggleButton/ToggleButton"),exports),_export_star._(require("./components/Grid/Grid"),exports),_export_star._(require("./components/Icon/Icon"),exports),_export_star._(require("./components/IconTile/IconTile"),exports),_export_star._(require("./components/Image/Image"),exports),_export_star._(require("./components/Inline/Inline"),exports),_export_star._(require("./components/InteractiveBox/InteractiveBox"),exports),_export_star._(require("./components/Lightbox/Lightbox"),exports),_export_star._(require("./components/Link/Link"),exports),_export_star._(require("./components/LoadingSpinner/LoadingSpinner"),exports),_export_star._(require("./components/Logo/Logo"),exports),_export_star._(require("./components/MediaItem"),exports),_export_star._(require("./components/MediaViewerBar/MediaViewerBar"),exports),_export_star._(require("./components/MediaViewerCarousel/MediaViewerCarousel"),exports),_export_star._(require("./components/NavBar"),exports),_export_star._(require("./components/Notification/Notification"),exports),_export_star._(require("./components/Pagination/Pagination"),exports),_export_star._(require("./components/Patterns/ButtonGroup/ButtonGroup"),exports),_export_star._(require("./components/Patterns/Modal/Modal"),exports),_export_star._(require("./components/PictogramButton/PictogramButton"),exports),_export_star._(require("./components/Popover/Popover"),exports),_export_star._(require("./components/ProgressBar/ProgressBar"),exports),_export_star._(require("./components/PromptButton/PromptButton"),exports),_export_star._(require("./components/PromptInput/PromptInput"),exports),_export_star._(require("./components/SplashCard/SplashCard"),exports),_export_star._(require("./components/SplashCardMedia/SplashCardMedia"),exports),_export_star._(require("./components/QBankRichText/QBankRichText"),exports),_export_star._(require("./components/RadioCard/RadioCard"),exports),_export_star._(require("./components/RoundButton/RoundButton"),exports),_export_star._(require("./components/SearchResult/SearchResult"),exports),_export_star._(require("./components/SegmentedProgressBar/SegmentedProgressBar"),exports),_export_star._(require("./components/Sheet/Sheet"),exports),_export_star._(require("./components/Stack/Stack"),exports),_export_star._(require("./components/SubThemeProvider/SubThemeProvider"),exports),_export_star._(require("./components/Tabs/Tabs"),exports),_export_star._(require("./components/Tag/Tag"),exports),_export_star._(require("./components/TagGroup/TagGroup"),exports),_export_star._(require("./components/Toast"),exports),_export_star._(require("./components/Toggletip/Toggletip"),exports),_export_star._(require("./components/Tooltip/Tooltip"),exports),_export_star._(require("./components/Tutorialtip/Tutorialtip"),exports),_export_star._(require("./components/Typography/Header"),exports),_export_star._(require("./components/Typography/StyledText/StyledText"),exports),_export_star._(require("./components/Typography/Text"),exports),_export_star._(require("./components/Typography/TextClamped/TextClamped"),exports),_export_star._(require("./components/UserHighlightTooltip/UserHighlightTooltip"),exports),_export_star._(require("./components/Utilities/AnimatedBorder/useAnimatedBorder"),exports),_export_star._(require("./components/Utilities/ContainerQuery/ContainerQuery"),exports),_export_star._(require("./components/Utilities/Expandable/Expandable"),exports),_export_star._(require("./components/Utilities/ScreenReaderText/ScreenReaderText"),exports),_export_star._(require("./components/Patterns/EmptyState/EmptyState"),exports),_export_star._(require("./components/Content/ContentBox/ContentBox"),exports),_export_star._(require("./components/Content/ContentCheckbox/ContentCheckbox"),exports),_export_star._(require("./components/Content/ContentFontResizer"),exports),_export_star._(require("./components/Content/ContentHeading/ContentHeading"),exports),_export_star._(require("./components/Content/ContentLink/ContentLink"),exports),_export_star._(require("./components/Content/ContentPictogramButton/ContentPictogramButton"),exports),_export_star._(require("./components/Content/ContentText/ContentText"),exports),_export_star._(require("./components/Content/ContentList"),exports),_export_star._(require("./components/Content/ContentTable"),exports),_export_star._(require("./components/Content/ContentTableModal/ContentTableModal"),exports),_export_star._(require("./components/Content/DosageButton"),exports),_export_star._(require("./components/Content/ReferenceButton"),exports),_export_star._(require("./components/AIButton/AIButton"),exports);const{dark,light}=_visualConfig.ambossVisualConfiguration;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get CacheProvider(){return _react.CacheProvider},get ThemeProvider(){return _react.ThemeProvider},get createCache(){return _cache.default},get dark(){return dark},get light(){return light}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const _export_star=require("@swc/helpers/_/_export_star"),_interop_require_default=require("@swc/helpers/_/_interop_require_default"),_visualConfig=require("./web-tokens/visualConfig"),_react=require("@emotion/react"),_cache=/*#__PURE__*/_interop_require_default._(require("@emotion/cache"));_export_star._(require("./components/AccessCardItem/AccessCardItem"),exports),_export_star._(require("./components/AIFloatingButton/AIFloatingButton"),exports),_export_star._(require("./components/Avatar/Avatar"),exports),_export_star._(require("./components/AvatarGroup/AvatarGroup"),exports),_export_star._(require("./components/Badge/Badge"),exports),_export_star._(require("./components/BinaryFeedback/BinaryFeedback"),exports),_export_star._(require("./components/Box/Box"),exports),_export_star._(require("./components/BulkActionsToolbar/BulkActionsToolbar"),exports),_export_star._(require("./components/Button/Button"),exports),_export_star._(require("./components/Callout/Callout"),exports),_export_star._(require("./components/Card/Card"),exports),_export_star._(require("./components/Card/CardBox/CardBox"),exports),_export_star._(require("./components/CatalogCard/CatalogCard"),exports),_export_star._(require("./components/ChatMessage"),exports),_export_star._(require("./components/ChatResponse"),exports),_export_star._(require("./components/CheckboxCard/CheckboxCard"),exports),_export_star._(require("./components/Collapsible/Collapsible"),exports),_export_star._(require("./components/ColorIndicator/ColorIndicator"),exports),_export_star._(require("./components/ColorPicker/ColorPicker"),exports),_export_star._(require("./components/Column/Columns"),exports),_export_star._(require("./components/Container"),exports),_export_star._(require("./components/CountButton/CountButton"),exports),_export_star._(require("./components/DataTable"),exports),_export_star._(require("./components/Divider/Divider"),exports),_export_star._(require("./components/DropdownMenu/DropdownMenu"),exports),_export_star._(require("./components/EntityList"),exports),_export_star._(require("./components/EntityTree"),exports),_export_star._(require("./components/Composite/FilterDialog/FilterDialog"),exports),_export_star._(require("./components/Form/Checkbox/Checkbox"),exports),_export_star._(require("./components/Form/Combobox/Combobox"),exports),_export_star._(require("./components/Form/DateInput/DateInput"),exports),_export_star._(require("./components/Form/DatePicker"),exports),_export_star._(require("./components/Form/FormFieldGroup/FormFieldGroup"),exports),_export_star._(require("./components/Form/Input"),exports),_export_star._(require("./components/Form/MaskedInput/MaskedInput"),exports),_export_star._(require("./components/Form/PasswordInput"),exports),_export_star._(require("./components/Form/Radio/Radio"),exports),_export_star._(require("./components/Form/RadioButton/RadioButton"),exports),_export_star._(require("./components/Form/RangeInput/RangeInput"),exports),_export_star._(require("./components/Form/SearchInput/SearchInput"),exports),_export_star._(require("./components/Form/SegmentedControl/SegmentedControl"),exports),_export_star._(require("./components/Form/Select"),exports),_export_star._(require("./components/Form/ToolbarToggle/ToolbarToggle"),exports),_export_star._(require("./components/Form/Textarea/Textarea"),exports),_export_star._(require("./components/Form/Toggle/Toggle"),exports),_export_star._(require("./components/Form/ToggleButton/ToggleButton"),exports),_export_star._(require("./components/Grid/Grid"),exports),_export_star._(require("./components/Icon/Icon"),exports),_export_star._(require("./components/IconTile/IconTile"),exports),_export_star._(require("./components/Image/Image"),exports),_export_star._(require("./components/Inline/Inline"),exports),_export_star._(require("./components/InteractiveBox/InteractiveBox"),exports),_export_star._(require("./components/Lightbox/Lightbox"),exports),_export_star._(require("./components/Link/Link"),exports),_export_star._(require("./components/LoadingSpinner/LoadingSpinner"),exports),_export_star._(require("./components/Logo/Logo"),exports),_export_star._(require("./components/MediaItem"),exports),_export_star._(require("./components/MediaViewerBar/MediaViewerBar"),exports),_export_star._(require("./components/MediaViewerCarousel/MediaViewerCarousel"),exports),_export_star._(require("./components/NavBar"),exports),_export_star._(require("./components/Notification/Notification"),exports),_export_star._(require("./components/Pagination/Pagination"),exports),_export_star._(require("./components/Patterns/ButtonGroup/ButtonGroup"),exports),_export_star._(require("./components/Patterns/Modal/Modal"),exports),_export_star._(require("./components/PictogramButton/PictogramButton"),exports),_export_star._(require("./components/Popover/Popover"),exports),_export_star._(require("./components/ProgressBar/ProgressBar"),exports),_export_star._(require("./components/PromptButton/PromptButton"),exports),_export_star._(require("./components/PromptInput/PromptInput"),exports),_export_star._(require("./components/SplashCard/SplashCard"),exports),_export_star._(require("./components/SplashCardMedia/SplashCardMedia"),exports),_export_star._(require("./components/QBankRichText/QBankRichText"),exports),_export_star._(require("./components/RadioCard/RadioCard"),exports),_export_star._(require("./components/RoundButton/RoundButton"),exports),_export_star._(require("./components/SearchResult/SearchResult"),exports),_export_star._(require("./components/SegmentedProgressBar/SegmentedProgressBar"),exports),_export_star._(require("./components/Sheet/Sheet"),exports),_export_star._(require("./components/Stack/Stack"),exports),_export_star._(require("./components/SubThemeProvider/SubThemeProvider"),exports),_export_star._(require("./components/Tabs/Tabs"),exports),_export_star._(require("./components/Tag/Tag"),exports),_export_star._(require("./components/TagGroup/TagGroup"),exports),_export_star._(require("./components/Toast"),exports),_export_star._(require("./components/Toggletip/Toggletip"),exports),_export_star._(require("./components/Tooltip/Tooltip"),exports),_export_star._(require("./components/Tutorialtip/Tutorialtip"),exports),_export_star._(require("./components/Typography/Header"),exports),_export_star._(require("./components/Typography/StyledText/StyledText"),exports),_export_star._(require("./components/Typography/Text"),exports),_export_star._(require("./components/Typography/TextClamped/TextClamped"),exports),_export_star._(require("./components/UserHighlightTooltip/UserHighlightTooltip"),exports),_export_star._(require("./components/Utilities/AnimatedBorder/useAnimatedBorder"),exports),_export_star._(require("./components/Utilities/ContainerQuery/ContainerQuery"),exports),_export_star._(require("./components/Utilities/Expandable/Expandable"),exports),_export_star._(require("./components/Utilities/ScreenReaderText/ScreenReaderText"),exports),_export_star._(require("./components/Patterns/EmptyState/EmptyState"),exports),_export_star._(require("./components/Content/ContentBox/ContentBox"),exports),_export_star._(require("./components/Content/ContentCheckbox/ContentCheckbox"),exports),_export_star._(require("./components/Content/ContentFontResizer"),exports),_export_star._(require("./components/Content/ContentHeading/ContentHeading"),exports),_export_star._(require("./components/Content/ContentLink/ContentLink"),exports),_export_star._(require("./components/Content/ContentPictogramButton/ContentPictogramButton"),exports),_export_star._(require("./components/Content/ContentText/ContentText"),exports),_export_star._(require("./components/Content/ContentList"),exports),_export_star._(require("./components/Content/ContentTable"),exports),_export_star._(require("./components/Content/ContentTableModal/ContentTableModal"),exports),_export_star._(require("./components/Content/DosageButton"),exports),_export_star._(require("./components/Content/ReferenceButton"),exports),_export_star._(require("./components/AIButton/AIButton"),exports);const{dark,light}=_visualConfig.ambossVisualConfiguration;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"getGradientAnimation",{enumerable:!0,get:function(){return getGradientAnimation}});const gradientHover=(0,require("@emotion/react").keyframes)({"0%, 100%":{backgroundPosition:"0% 50%, 100% 50%"},"25%":{backgroundPosition:"100% 0%, 0% 100%"},"50%":{backgroundPosition:"100% 50%, 0% 50%"},"75%":{backgroundPosition:"0% 100%, 100% 0%"}},"label:gradientHover","/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL3NoYXJlZC9taXhpbnMvQnV0dG9uL2dldEFJQnV0dG9uU3R5bGVzLnRzIiwic291cmNlcyI6WyJzcmMvc2hhcmVkL21peGlucy9CdXR0b24vZ2V0QUlCdXR0b25TdHlsZXMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBDU1NPYmplY3QsIFRoZW1lIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBrZXlmcmFtZXMgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcblxudHlwZSBBSUJ1dHRvblN0eWxlc1Byb3BzID0ge1xuICB0aGVtZTogVGhlbWU7XG4gIGRpc2FibGVkOiBib29sZWFuO1xufTtcblxuY29uc3QgZ3JhZGllbnRIb3ZlciA9IGtleWZyYW1lcyh7XG4gIFwiMCUsIDEwMCVcIjoge1xuICAgIGJhY2tncm91bmRQb3NpdGlvbjogXCIwJSA1MCUsIDEwMCUgNTAlXCIsXG4gIH0sXG4gIFwiMjUlXCI6IHtcbiAgICBiYWNrZ3JvdW5kUG9zaXRpb246IFwiMTAwJSAwJSwgMCUgMTAw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ICAgICAgICAgICByYWRpYWwtZ3JhZGllbnQoZWxsaXBzZSBhdCBjZW50ZXIsICR7dGhlbWUudmFsdWVzLmNvbG9yLmJvcmRlci5haS5kZWZhdWx0fSAwJSwgdHJhbnNwYXJlbnQgMTIwJSksXG4gICAgICAgICAgICByYWRpYWwtZ3JhZGllbnQoZWxsaXBzZSBhdCBjZW50ZXIsICR7dGhlbWUudmFsdWVzLmNvbG9yLmJhY2tncm91bmQuYWNjZW50LmRlZmF1bHR9IDAlLCB0cmFuc3BhcmVudCAxMjAlKVxuICAgICAgICAgIGAsXG4gICAgICAgIGJhY2tncm91bmRTaXplOiBcIjMwMCUgMzAwJVwiLFxuICAgICAgICBiYWNrZ3JvdW5kUmVwZWF0OiBcIm5vLXJlcGVhdFwiLFxuICAgICAgICBhbmltYXRpb246IGAke2dyYWRpZW50SG92ZXJ9IDJzIGVhc2UtaW4tb3V0IGluZmluaXRlYCxcbiAgICAgICAgYW5pbWF0aW9uUGxheVN0YXRlOiBcInBhdXNlZFwiLFxuICAgICAgfSxcblxuICAgICAgXCImOmhvdmVyOjpiZWZvcmVcIjoge1xuICAgICAgICBvcGFjaXR5OiAxLFxuICAgICAgICBhbmltYXRpb25QbGF5U3RhdGU6IFwicnVubmluZ1wiLFxuICAgICAgfSxcbiAgICB9KSxcbiAgfTtcbn1cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRc0IifQ== */");function getGradientAnimation({theme,disabled}){return{position:"relative",zIndex:theme.variables.zIndex.base,background:`linear-gradient(270deg, ${theme.values.color.border.ai.default} -4.27%, ${theme.values.color.background.accent.default} 100%)`,...!disabled&&{cursor:"pointer","&::before":{content:'""',position:"absolute",inset:0,borderRadius:"inherit",zIndex:theme.variables.zIndex.base-1,opacity:0,transition:"opacity 0.6s ease-in-out",backgroundImage:`
|
|
2
|
+
radial-gradient(ellipse at center, ${theme.values.color.border.ai.default} 0%, transparent 120%),
|
|
3
|
+
radial-gradient(ellipse at center, ${theme.values.color.background.accent.default} 0%, transparent 120%)
|
|
4
|
+
`,backgroundSize:"300% 300%",backgroundRepeat:"no-repeat",animation:`${gradientHover} 2s ease-in-out infinite`,animationPlayState:"paused"},"&:hover::before":{opacity:1,animationPlayState:"running"}}}}
|
|
@@ -917,6 +917,16 @@
|
|
|
917
917
|
"lightOriginalValue": "neutral.white-transparent04"
|
|
918
918
|
}
|
|
919
919
|
},
|
|
920
|
+
"ai-floating-button": {
|
|
921
|
+
"color-ai-floating-button-background-primary": {
|
|
922
|
+
"name": "ai-floating-button.background",
|
|
923
|
+
"subState": "primary",
|
|
924
|
+
"darkValue": "#ffffff",
|
|
925
|
+
"darkOriginalValue": "neutral.white",
|
|
926
|
+
"lightValue": "#ffffff",
|
|
927
|
+
"lightOriginalValue": "neutral.white"
|
|
928
|
+
}
|
|
929
|
+
},
|
|
920
930
|
"canvas": {
|
|
921
931
|
"color-canvas": {
|
|
922
932
|
"name": "canvas",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"activity": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M9 1.75a1 1 0 0 1 .95.66L15 16.96l2.05-5.91a1 1 0 0 1 .95-.66h4c.55 0 1 .43 1 .96s-.45.96-1 .96h-3.28l-2.77 7.99a1 1 0 0 1-.95.65 1 1 0 0 1-.95-.65L9 5.75l-2.05 5.9a1 1 0 0 1-.95.66H2c-.55 0-1-.43-1-.96s.45-.96 1-.96h3.28l2.77-7.98A1 1 0 0 1 9 1.75m0 0\"/></svg>",
|
|
3
3
|
"ai-chat": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"M12.158 6.22a.376.376 0 0 1 .684 0l1.486 3.264c.038.082.105.15.187.189l3.265 1.484a.377.377 0 0 1 0 .686l-3.265 1.484a.4.4 0 0 0-.187.189l-1.486 3.263a.376.376 0 0 1-.684 0l-1.486-3.263a.4.4 0 0 0-.187-.189l-3.265-1.48a.376.376 0 0 1 0-.685l3.265-1.484a.4.4 0 0 0 .187-.189z\"/><path fill-rule=\"evenodd\" d=\"M13.166 1.002A10.42 10.42 0 0 1 23 10.889v.552l-.003.305a10.3 10.3 0 0 1-1.103 4.366v.001a10.44 10.44 0 0 1-9.336 5.775h-.002a10.3 10.3 0 0 1-4.288-.923l-5.951 1.983a1 1 0 0 1-1.265-1.264l1.983-5.953a10.3 10.3 0 0 1-.923-4.29 10.45 10.45 0 0 1 5.775-9.336 10.3 10.3 0 0 1 4.67-1.104L13.111 1zM12.553 3a8.3 8.3 0 0 0-3.768.893l-.004.002a8.45 8.45 0 0 0-4.67 7.55v.002a8.3 8.3 0 0 0 .893 3.769 1 1 0 0 1 .056.766L3.58 20.42l4.438-1.479.096-.027c.225-.05.463-.022.67.083 1.169.59 2.46.896 3.77.893h.001a8.45 8.45 0 0 0 7.55-4.67l.003-.003.208-.443A8.3 8.3 0 0 0 21 11.447v-.527A8.42 8.42 0 0 0 13.08 3z\" clip-rule=\"evenodd\"/></svg>",
|
|
4
4
|
"ai-file": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill-rule=\"evenodd\" d=\"M18 1a3 3 0 0 1 3 3v7.184l-.806-1.772-.002.001A2.35 2.35 0 0 0 19 8.21V4a1 1 0 0 0-1-1h-6v6a1 1 0 0 1-1 1H5v10a1 1 0 0 0 1 1h9.084l.722 1.588v-.001q.104.225.237.413H6a3 3 0 0 1-3-3V9a1 1 0 0 1 .293-.707l7-7a1 1 0 0 1 .073-.066l.074-.056a1 1 0 0 1 .267-.128q.023-.007.047-.012l.048-.011.026-.004Q10.912 1 11 1zM6.414 8H10V4.414z\" clip-rule=\"evenodd\"/><path d=\"M17.627 10.24a.41.41 0 0 1 .746 0l1.62 3.562a.43.43 0 0 0 .205.205l3.562 1.62a.41.41 0 0 1 0 .746l-3.562 1.62a.43.43 0 0 0-.205.205l-1.62 3.562a.41.41 0 0 1-.746 0l-1.62-3.562a.43.43 0 0 0-.205-.205L12.24 16.38a.41.41 0 0 1 0-.747l3.562-1.62a.43.43 0 0 0 .205-.205z\"/></svg>",
|
|
5
|
-
"ai-sparkle": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"
|
|
5
|
+
"ai-sparkle": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" d=\"m15.298 9.01 5.341 2.43c.481.22.481.907 0 1.12l-5.341 2.43a.65.65 0 0 0-.308.308l-2.43 5.341c-.22.481-.907.481-1.12 0l-2.43-5.341a.65.65 0 0 0-.308-.308l-5.341-2.422c-.481-.22-.481-.907 0-1.12l5.341-2.43a.65.65 0 0 0 .308-.308l2.43-5.35c.22-.48.907-.48 1.12.001l2.43 5.341a.65.65 0 0 0 .308.308\"/></svg>",
|
|
6
6
|
"alert-circle": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" focusable=\"false\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 8v4m0 4h.01\"/></svg>",
|
|
7
7
|
"alert-octagon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86zM12 8v4m0 4h.01\"/></svg>",
|
|
8
8
|
"alert-triangle": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M9.435 3.341a3 3 0 0 1 5.13 0l.003.005 8.47 14.14.008.014a3 3 0 0 1-2.565 4.5H3.519a3 3 0 0 1-2.565-4.5l.008-.014zm1.711 1.036L2.683 18.506A1 1 0 0 0 3.536 20h16.928a1 1 0 0 0 .853-1.494L12.855 4.379l-.001-.002a1 1 0 0 0-1.708 0\" clip-rule=\"evenodd\"/><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M12 8a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1\" clip-rule=\"evenodd\"/><path fill=\"currentColor\" d=\"M11 17a1 1 0 1 1 2 0 1 1 0 0 1-2 0\"/></svg>",
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
"globe": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill-rule=\"evenodd\" d=\"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1M3.057 13a9.005 9.005 0 0 0 6.669 7.709A16.3 16.3 0 0 1 7.05 13zm13.892 0a16.3 16.3 0 0 1-2.676 7.709A9.005 9.005 0 0 0 20.943 13zm-7.89 0A14.3 14.3 0 0 0 12 20.45 14.3 14.3 0 0 0 14.94 13zm5.214-9.71A16.3 16.3 0 0 1 16.949 11h3.994a9.01 9.01 0 0 0-6.67-7.71M12 3.55A14.3 14.3 0 0 0 9.06 11h5.88A14.3 14.3 0 0 0 12 3.55m-2.274-.26A9.01 9.01 0 0 0 3.056 11h3.995a16.3 16.3 0 0 1 2.675-7.71\" clip-rule=\"evenodd\"/></svg>",
|
|
102
102
|
"google": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"#EA4335\" d=\"M12 4.64c2.253 0 3.773.973 4.64 1.787l3.387-3.307C17.947 1.187 15.24 0 12 0 7.307 0 3.253 2.693 1.28 6.613l3.88 3.014C6.133 6.733 8.827 4.64 12 4.64\"/><path fill=\"#4285F4\" d=\"M23.52 12.267c0-.987-.08-1.707-.253-2.454H12v4.454h6.613c-.133 1.106-.853 2.773-2.453 3.893l3.787 2.933C22.213 19 23.52 15.92 23.52 12.267\"/><path fill=\"#FBBC05\" d=\"M5.173 14.373a7.4 7.4 0 0 1-.4-2.373c0-.827.147-1.627.387-2.373L1.28 6.613A12 12 0 0 0 0 12c0 1.933.467 3.76 1.28 5.387z\"/><path fill=\"#34A853\" d=\"M12 24c3.24 0 5.96-1.067 7.947-2.907L16.16 18.16c-1.013.707-2.373 1.2-4.16 1.2-3.173 0-5.867-2.093-6.827-4.987l-3.88 3.014C3.267 21.307 7.307 24 12 24\"/></svg>",
|
|
103
103
|
"grid": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M2 3a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm2 1v5h5V4zm9-1a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1zm2 1v5h5V4zm-2 10a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1zm2 1v5h5v-5zM2 14a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm2 1v5h5v-5z\" clip-rule=\"evenodd\"/></svg>",
|
|
104
|
+
"grip-vertical": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"M8 17a2 2 0 1 1 0 4 2 2 0 0 1 0-4m8 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4m-8-7a2 2 0 1 1 0 4 2 2 0 0 1 0-4m8 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4M8 3a2 2 0 1 1 0 4 2 2 0 0 1 0-4m8 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4\"/></svg>",
|
|
104
105
|
"hammer-filled": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"m15.741 3.293 6 6c.48.479.743 1.103.743 1.757s-.263 1.278-.743 1.758l-1.399 1.399a2.48 2.48 0 0 1-1.758.738 2.48 2.48 0 0 1-1.756-.737l-1.711-1.693-8.582 8.581a.997.997 0 0 1-1.414 0l-2.828-2.828a1 1 0 0 1 0-1.415l8.559-8.559-3.621-3.583A.998.998 0 0 1 7.934 3h7.1c.266 0 .52.105.707.293\"/></svg>",
|
|
105
106
|
"hash": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"M4 9h16M4 15h16M10 3 8 21m8-18-2 18\"/></svg>",
|
|
106
107
|
"headphones": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M3 18v-6a9 9 0 0 1 18 0v6\"/><path fill=\"currentColor\" d=\"M21 14h1a1 1 0 0 0-1-1zM3 14v-1a1 1 0 0 0-1 1zm17 5a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3zm-1 1h-1v2h1zm-1 0a1 1 0 0 1-1-1h-2a3 3 0 0 0 3 3zm-1-1v-3h-2v3zm0-3a1 1 0 0 1 1-1v-2a3 3 0 0 0-3 3zm1-1h3v-2h-3zm2-1v5h2v-5zM2 19a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1zm3 3h1v-2H5zm1 0a3 3 0 0 0 3-3H7a1 1 0 0 1-1 1zm3-3v-3H7v3zm0-3a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1zm-3-3H3v2h3zm-4 1v5h2v-5z\"/></svg>",
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
"globe": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill-rule=\"evenodd\" d=\"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0M2.085 9a6 6 0 0 0 3.5 4.492A11.2 11.2 0 0 1 4.068 9zm9.848 0a11.2 11.2 0 0 1-1.52 4.492A6 6 0 0 0 13.915 9zM6.084 9A9.3 9.3 0 0 0 8 13.481 9.3 9.3 0 0 0 9.915 9zm4.328-6.494A11.2 11.2 0 0 1 11.932 7h1.983a6 6 0 0 0-3.503-4.494M8 2.518A9.3 9.3 0 0 0 6.084 7h3.831A9.3 9.3 0 0 0 8 2.518m-2.414-.011A6 6 0 0 0 2.085 7h1.982a11.2 11.2 0 0 1 1.519-4.493\" clip-rule=\"evenodd\"/></svg>",
|
|
102
102
|
"google": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill=\"#ea4335\" d=\"M8 3.093c1.502 0 2.516.65 3.093 1.191l2.258-2.204C11.964.791 10.161 0 8.001 0A7.99 7.99 0 0 0 .852 4.409L3.44 6.418C4.09 4.488 5.885 3.093 8 3.093\"/><path fill=\"#4285f4\" d=\"M15.68 8.178c0-.658-.053-1.138-.169-1.636H8v2.97h4.409c-.089.737-.569 1.848-1.636 2.595l2.525 1.955c1.51-1.395 2.382-3.449 2.382-5.884\"/><path fill=\"#fbbc05\" d=\"M3.449 9.582A5 5 0 0 1 3.182 8c0-.551.098-1.084.258-1.582L.853 4.408C.311 5.494 0 6.712 0 8s.311 2.507.853 3.591z\"/><path fill=\"#34a853\" d=\"M8 16c2.16 0 3.973-.711 5.298-1.938l-2.525-1.955c-.675.47-1.582.8-2.773.8-2.116 0-3.911-1.396-4.551-3.325l-2.587 2.01C2.178 14.204 4.872 16 8 16\"/></svg>",
|
|
103
103
|
"grid": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill=\"currentColor\" d=\"M3 2a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm0 7a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1zm6-6a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1zm1 6a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1z\"/></svg>",
|
|
104
|
+
"grip-vertical": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" viewBox=\"0 0 16 16\" focusable=\"false\"><path d=\"M7 13H5v-2h2zm4 0H9v-2h2zM7 9H5V7h2zm4 0H9V7h2zM7 5H5V3h2zm4 0H9V3h2z\"/></svg>",
|
|
104
105
|
"hammer-filled": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill=\"currentColor\" d=\"m14.494 6.195-4-4A.66.66 0 0 0 10.023 2H5.289a.666.666 0 0 0-.468 1.14l2.414 2.39-5.706 5.705a.666.666 0 0 0 0 .944l1.885 1.885a.667.667 0 0 0 .943 0l5.721-5.72 1.14 1.128c.329.327.75.491 1.171.491s.843-.164 1.172-.492l.933-.932c.32-.32.495-.736.495-1.172s-.175-.852-.495-1.172\"/></svg>",
|
|
105
106
|
"hash": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M7.164 1.014a1 1 0 0 1 .822 1.15L7.514 5h1.972l.528-3.164a1 1 0 1 1 1.972.328L11.514 5H14a1 1 0 1 1 0 2h-2.82l-.333 2H14a1 1 0 1 1 0 2h-3.486l-.528 3.164a1 1 0 1 1-1.972-.328L8.486 11H6.514l-.528 3.164a1 1 0 1 1-1.972-.328L4.486 11H2a1 1 0 1 1 0-2h2.82l.333-2H2a1 1 0 0 1 0-2h3.486l.528-3.164a1 1 0 0 1 1.15-.822M8.82 9l.333-2H7.18l-.333 2z\" clip-rule=\"evenodd\"/></svg>",
|
|
106
107
|
"headphones": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M2 12V8a6 6 0 1 1 12 0v4\"/><path fill=\"currentColor\" d=\"M14 9h1a1 1 0 0 0-1-1zM3.333 14v1zm1.334 0v-1zm0-5V8zM2 9V8a1 1 0 0 0-1 1zm11 3.667c0 .184-.15.333-.333.333v2A2.333 2.333 0 0 0 15 12.667zm-.333.333h-1.334v2h1.334zm-1.334 0a.333.333 0 0 1-.333-.333H9A2.333 2.333 0 0 0 11.333 15zM11 12.667v-2.334H9v2.334zm0-2.334c0-.184.15-.333.333-.333V8A2.333 2.333 0 0 0 9 10.333zm.333-.333H14V8h-2.667zM13 9v3.667h2V9zM1 12.667A2.333 2.333 0 0 0 3.333 15v-2A.333.333 0 0 1 3 12.667zM3.333 15h1.334v-2H3.333zm1.334 0A2.333 2.333 0 0 0 7 12.667H5c0 .184-.15.333-.333.333zM7 12.667v-2.334H5v2.334zm0-2.334A2.333 2.333 0 0 0 4.667 8v2c.184 0 .333.15.333.333zM4.667 8H2v2h2.667zM1 9v3.667h2V9z\"/></svg>",
|