@forgedevstack/bear 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/components/ApprovalCard/ApprovalCard.cjs +1 -0
- package/dist/components/ApprovalCard/ApprovalCard.const.cjs +1 -0
- package/dist/components/ApprovalCard/ApprovalCard.const.d.ts +2 -0
- package/dist/components/ApprovalCard/ApprovalCard.const.js +8 -0
- package/dist/components/ApprovalCard/ApprovalCard.d.ts +2 -0
- package/dist/components/ApprovalCard/ApprovalCard.js +25 -0
- package/dist/components/ApprovalCard/ApprovalCard.types.d.ts +15 -0
- package/dist/components/ApprovalCard/index.d.ts +2 -0
- package/dist/components/ArtifactCard/ArtifactCard.cjs +1 -0
- package/dist/components/ArtifactCard/ArtifactCard.const.cjs +1 -0
- package/dist/components/ArtifactCard/ArtifactCard.const.d.ts +3 -0
- package/dist/components/ArtifactCard/ArtifactCard.const.js +8 -0
- package/dist/components/ArtifactCard/ArtifactCard.d.ts +2 -0
- package/dist/components/ArtifactCard/ArtifactCard.js +43 -0
- package/dist/components/ArtifactCard/ArtifactCard.types.d.ts +15 -0
- package/dist/components/ArtifactCard/index.d.ts +2 -0
- package/dist/components/Banner/Banner.const.cjs +1 -1
- package/dist/components/Banner/Banner.const.js +9 -8
- package/dist/components/Chart/BarChart.cjs +1 -1
- package/dist/components/Chart/BarChart.js +65 -72
- package/dist/components/Chart/Chart.cjs +1 -1
- package/dist/components/Chart/Chart.js +21 -18
- package/dist/components/Chart/Chart.types.d.ts +1 -1
- package/dist/components/Chart/FunnelChart.cjs +1 -1
- package/dist/components/Chart/FunnelChart.js +38 -36
- package/dist/components/Chart/LineChart.cjs +1 -1
- package/dist/components/Chart/LineChart.js +74 -60
- package/dist/components/Chart/PieChart.cjs +1 -1
- package/dist/components/Chart/PieChart.js +102 -82
- package/dist/components/Chart/RadarChart.cjs +1 -1
- package/dist/components/Chart/RadarChart.d.ts +1 -1
- package/dist/components/Chart/RadarChart.js +116 -93
- package/dist/components/Chat/Chat.cjs +1 -1
- package/dist/components/Chat/Chat.const.cjs +1 -1
- package/dist/components/Chat/Chat.const.d.ts +9 -22
- package/dist/components/Chat/Chat.const.js +18 -26
- package/dist/components/Chat/Chat.d.ts +1 -20
- package/dist/components/Chat/Chat.js +107 -162
- package/dist/components/Chat/Chat.types.d.ts +20 -27
- package/dist/components/Chat/Chat.utils.cjs +1 -0
- package/dist/components/Chat/Chat.utils.d.ts +2 -0
- package/dist/components/Chat/Chat.utils.js +10 -0
- package/dist/components/Chat/helpers/ChatTypingIndicator.cjs +1 -0
- package/dist/components/Chat/helpers/ChatTypingIndicator.d.ts +3 -0
- package/dist/components/Chat/helpers/ChatTypingIndicator.js +14 -0
- package/dist/components/Chat/index.d.ts +2 -1
- package/dist/components/ChatBubble/ChatBubble.cjs +1 -0
- package/dist/components/ChatBubble/ChatBubble.const.cjs +1 -0
- package/dist/components/ChatBubble/ChatBubble.const.d.ts +13 -0
- package/dist/components/ChatBubble/ChatBubble.const.js +17 -0
- package/dist/components/ChatBubble/ChatBubble.d.ts +2 -0
- package/dist/components/ChatBubble/ChatBubble.js +32 -0
- package/dist/components/ChatBubble/ChatBubble.types.d.ts +12 -0
- package/dist/components/ChatBubble/ChatBubble.utils.cjs +1 -0
- package/dist/components/ChatBubble/ChatBubble.utils.d.ts +6 -0
- package/dist/components/ChatBubble/ChatBubble.utils.js +15 -0
- package/dist/components/ChatBubble/helpers/ChatBubbleSystem.cjs +1 -0
- package/dist/components/ChatBubble/helpers/ChatBubbleSystem.d.ts +2 -0
- package/dist/components/ChatBubble/helpers/ChatBubbleSystem.js +21 -0
- package/dist/components/ChatBubble/helpers/ChatBubbleThread.cjs +1 -0
- package/dist/components/ChatBubble/helpers/ChatBubbleThread.d.ts +4 -0
- package/dist/components/ChatBubble/helpers/ChatBubbleThread.js +63 -0
- package/dist/components/ChatBubble/index.d.ts +2 -0
- package/dist/components/ChatError/ChatError.cjs +1 -0
- package/dist/components/ChatError/ChatError.const.cjs +1 -0
- package/dist/components/ChatError/ChatError.const.d.ts +2 -0
- package/dist/components/ChatError/ChatError.const.js +8 -0
- package/dist/components/ChatError/ChatError.d.ts +2 -0
- package/dist/components/ChatError/ChatError.js +32 -0
- package/dist/components/ChatError/ChatError.types.d.ts +14 -0
- package/dist/components/ChatError/index.d.ts +2 -0
- package/dist/components/CitationList/CitationList.cjs +1 -0
- package/dist/components/CitationList/CitationList.d.ts +2 -0
- package/dist/components/CitationList/CitationList.js +30 -0
- package/dist/components/CitationList/CitationList.types.d.ts +15 -0
- package/dist/components/CitationList/helpers/CitationListTitle.cjs +1 -0
- package/dist/components/CitationList/helpers/CitationListTitle.d.ts +2 -0
- package/dist/components/CitationList/helpers/CitationListTitle.js +10 -0
- package/dist/components/CitationList/helpers/index.d.ts +1 -0
- package/dist/components/CitationList/index.d.ts +2 -0
- package/dist/components/ContextMeter/ContextMeter.cjs +1 -0
- package/dist/components/ContextMeter/ContextMeter.const.cjs +1 -0
- package/dist/components/ContextMeter/ContextMeter.const.d.ts +6 -0
- package/dist/components/ContextMeter/ContextMeter.const.js +11 -0
- package/dist/components/ContextMeter/ContextMeter.d.ts +2 -0
- package/dist/components/ContextMeter/ContextMeter.js +49 -0
- package/dist/components/ContextMeter/ContextMeter.types.d.ts +11 -0
- package/dist/components/ContextMeter/ContextMeter.utils.cjs +1 -0
- package/dist/components/ContextMeter/ContextMeter.utils.d.ts +2 -0
- package/dist/components/ContextMeter/ContextMeter.utils.js +12 -0
- package/dist/components/ContextMeter/index.d.ts +2 -0
- package/dist/components/Drawer/Drawer.cjs +1 -1
- package/dist/components/Drawer/Drawer.const.cjs +1 -1
- package/dist/components/Drawer/Drawer.const.d.ts +2 -1
- package/dist/components/Drawer/Drawer.const.js +7 -6
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Drawer/Drawer.js +93 -83
- package/dist/components/Drawer/Drawer.types.d.ts +4 -1
- package/dist/components/Drawer/hooks/useDrawer.cjs +1 -1
- package/dist/components/Drawer/hooks/useDrawer.js +33 -34
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.cjs +1 -1
- package/dist/components/EmptyState/EmptyState.const.cjs +1 -1
- package/dist/components/EmptyState/EmptyState.const.d.ts +8 -6
- package/dist/components/EmptyState/EmptyState.const.js +15 -8
- package/dist/components/EmptyState/EmptyState.d.ts +1 -2
- package/dist/components/EmptyState/EmptyState.js +39 -43
- package/dist/components/EmptyState/EmptyState.types.d.ts +2 -0
- package/dist/components/EmptyState/helpers/EmptyStateErrorSvg.cjs +1 -0
- package/dist/components/EmptyState/helpers/EmptyStateErrorSvg.d.ts +3 -0
- package/dist/components/EmptyState/helpers/EmptyStateErrorSvg.js +8 -0
- package/dist/components/EmptyState/helpers/EmptyStateInboxSvg.cjs +1 -0
- package/dist/components/EmptyState/helpers/EmptyStateInboxSvg.d.ts +3 -0
- package/dist/components/EmptyState/helpers/EmptyStateInboxSvg.js +8 -0
- package/dist/components/EmptyState/helpers/EmptyStateSearchSvg.cjs +1 -0
- package/dist/components/EmptyState/helpers/EmptyStateSearchSvg.d.ts +3 -0
- package/dist/components/EmptyState/helpers/EmptyStateSearchSvg.js +8 -0
- package/dist/components/EmptyState/helpers/index.d.ts +3 -0
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/FloatingChat/FloatingChat.cjs +1 -1
- package/dist/components/FloatingChat/FloatingChat.const.cjs +1 -1
- package/dist/components/FloatingChat/FloatingChat.const.d.ts +12 -1
- package/dist/components/FloatingChat/FloatingChat.const.js +25 -7
- package/dist/components/FloatingChat/FloatingChat.d.ts +1 -18
- package/dist/components/FloatingChat/FloatingChat.js +93 -124
- package/dist/components/FloatingChat/FloatingChat.types.d.ts +11 -22
- package/dist/components/FloatingChat/FloatingChat.utils.cjs +1 -0
- package/dist/components/FloatingChat/FloatingChat.utils.d.ts +2 -0
- package/dist/components/FloatingChat/FloatingChat.utils.js +12 -0
- package/dist/components/FloatingChat/helpers/FloatingChatHeader.cjs +1 -0
- package/dist/components/FloatingChat/helpers/FloatingChatHeader.d.ts +9 -0
- package/dist/components/FloatingChat/helpers/FloatingChatHeader.js +21 -0
- package/dist/components/FloatingChat/helpers/FloatingChatTrigger.cjs +1 -0
- package/dist/components/FloatingChat/helpers/FloatingChatTrigger.d.ts +9 -0
- package/dist/components/FloatingChat/helpers/FloatingChatTrigger.js +17 -0
- package/dist/components/FloatingChat/index.d.ts +1 -1
- package/dist/components/FormSkeleton/FormSkeleton.cjs +1 -1
- package/dist/components/FormSkeleton/FormSkeleton.d.ts +1 -1
- package/dist/components/FormSkeleton/FormSkeleton.js +35 -24
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon/productIcons.cjs +1 -0
- package/dist/components/Icon/productIcons.d.ts +7 -0
- package/dist/components/Icon/productIcons.js +25 -0
- package/dist/components/MessageActions/MessageActions.cjs +1 -0
- package/dist/components/MessageActions/MessageActions.const.cjs +1 -0
- package/dist/components/MessageActions/MessageActions.const.d.ts +2 -0
- package/dist/components/MessageActions/MessageActions.const.js +10 -0
- package/dist/components/MessageActions/MessageActions.d.ts +2 -0
- package/dist/components/MessageActions/MessageActions.js +31 -0
- package/dist/components/MessageActions/MessageActions.types.d.ts +16 -0
- package/dist/components/MessageActions/index.d.ts +2 -0
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/ModelSelect/ModelSelect.cjs +1 -0
- package/dist/components/ModelSelect/ModelSelect.const.cjs +1 -0
- package/dist/components/ModelSelect/ModelSelect.const.d.ts +1 -0
- package/dist/components/ModelSelect/ModelSelect.const.js +4 -0
- package/dist/components/ModelSelect/ModelSelect.d.ts +2 -0
- package/dist/components/ModelSelect/ModelSelect.js +41 -0
- package/dist/components/ModelSelect/ModelSelect.types.d.ts +16 -0
- package/dist/components/ModelSelect/index.d.ts +2 -0
- package/dist/components/OverlayPortal/OverlayPortal.const.cjs +1 -1
- package/dist/components/OverlayPortal/OverlayPortal.const.js +6 -5
- package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +5 -5
- package/dist/components/PromptComposer/PromptComposer.cjs +1 -0
- package/dist/components/PromptComposer/PromptComposer.const.cjs +1 -0
- package/dist/components/PromptComposer/PromptComposer.const.d.ts +6 -0
- package/dist/components/PromptComposer/PromptComposer.const.js +14 -0
- package/dist/components/PromptComposer/PromptComposer.d.ts +2 -0
- package/dist/components/PromptComposer/PromptComposer.js +132 -0
- package/dist/components/PromptComposer/PromptComposer.types.d.ts +45 -0
- package/dist/components/PromptComposer/PromptComposer.utils.cjs +1 -0
- package/dist/components/PromptComposer/PromptComposer.utils.d.ts +5 -0
- package/dist/components/PromptComposer/PromptComposer.utils.js +16 -0
- package/dist/components/PromptComposer/helpers/PromptComposerAttachSvg.cjs +1 -0
- package/dist/components/PromptComposer/helpers/PromptComposerAttachSvg.d.ts +1 -0
- package/dist/components/PromptComposer/helpers/PromptComposerAttachSvg.js +6 -0
- package/dist/components/PromptComposer/helpers/PromptComposerFileChip.cjs +1 -0
- package/dist/components/PromptComposer/helpers/PromptComposerFileChip.d.ts +2 -0
- package/dist/components/PromptComposer/helpers/PromptComposerFileChip.js +18 -0
- package/dist/components/PromptComposer/helpers/PromptComposerSendSvg.cjs +1 -0
- package/dist/components/PromptComposer/helpers/PromptComposerSendSvg.d.ts +1 -0
- package/dist/components/PromptComposer/helpers/PromptComposerSendSvg.js +9 -0
- package/dist/components/PromptComposer/helpers/PromptComposerStopSvg.cjs +1 -0
- package/dist/components/PromptComposer/helpers/PromptComposerStopSvg.d.ts +1 -0
- package/dist/components/PromptComposer/helpers/PromptComposerStopSvg.js +6 -0
- package/dist/components/PromptComposer/helpers/index.d.ts +4 -0
- package/dist/components/PromptComposer/index.d.ts +2 -0
- package/dist/components/PromptSuggestions/PromptSuggestions.cjs +1 -0
- package/dist/components/PromptSuggestions/PromptSuggestions.d.ts +2 -0
- package/dist/components/PromptSuggestions/PromptSuggestions.js +39 -0
- package/dist/components/PromptSuggestions/PromptSuggestions.types.d.ts +13 -0
- package/dist/components/PromptSuggestions/index.d.ts +2 -0
- package/dist/components/RichEditor/helpers/IconRender.cjs +1 -1
- package/dist/components/RichEditor/helpers/IconRender.js +16 -16
- package/dist/components/RichEditor/helpers/toolbarItemRender.cjs +1 -1
- package/dist/components/RichEditor/helpers/toolbarItemRender.js +23 -23
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.js +23 -23
- package/dist/components/Select/helpers/SelectCheckSvg.cjs +1 -0
- package/dist/components/Select/helpers/SelectCheckSvg.d.ts +3 -0
- package/dist/components/Select/helpers/SelectCheckSvg.js +8 -0
- package/dist/components/Select/helpers/SelectChevronDownSvg.cjs +1 -0
- package/dist/components/Select/helpers/SelectChevronDownSvg.d.ts +3 -0
- package/dist/components/Select/helpers/SelectChevronDownSvg.js +8 -0
- package/dist/components/Select/helpers/index.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.cjs +1 -1
- package/dist/components/Skeleton/Skeleton.const.cjs +2 -2
- package/dist/components/Skeleton/Skeleton.const.js +5 -6
- package/dist/components/Skeleton/Skeleton.js +59 -59
- package/dist/components/StatCard/StatCard.cjs +1 -1
- package/dist/components/StatCard/StatCard.const.cjs +1 -1
- package/dist/components/StatCard/StatCard.const.d.ts +0 -7
- package/dist/components/StatCard/StatCard.const.js +5 -12
- package/dist/components/StatCard/StatCard.d.ts +1 -2
- package/dist/components/StatCard/StatCard.js +48 -37
- package/dist/components/StatCard/StatCard.utils.cjs +1 -0
- package/dist/components/StatCard/StatCard.utils.d.ts +2 -0
- package/dist/components/StatCard/StatCard.utils.js +7 -0
- package/dist/components/StreamingMessage/StreamingMessage.cjs +1 -0
- package/dist/components/StreamingMessage/StreamingMessage.const.cjs +1 -0
- package/dist/components/StreamingMessage/StreamingMessage.const.d.ts +5 -0
- package/dist/components/StreamingMessage/StreamingMessage.const.js +10 -0
- package/dist/components/StreamingMessage/StreamingMessage.d.ts +2 -0
- package/dist/components/StreamingMessage/StreamingMessage.js +48 -0
- package/dist/components/StreamingMessage/StreamingMessage.types.d.ts +15 -0
- package/dist/components/StreamingMessage/index.d.ts +2 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.cjs +1 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.const.cjs +1 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.const.d.ts +7 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.const.js +14 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +2 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.js +39 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.types.d.ts +14 -0
- package/dist/components/ThemeSwitcher/index.d.ts +2 -0
- package/dist/components/ThinkingBlock/ThinkingBlock.cjs +1 -0
- package/dist/components/ThinkingBlock/ThinkingBlock.const.cjs +1 -0
- package/dist/components/ThinkingBlock/ThinkingBlock.const.d.ts +4 -0
- package/dist/components/ThinkingBlock/ThinkingBlock.const.js +9 -0
- package/dist/components/ThinkingBlock/ThinkingBlock.d.ts +2 -0
- package/dist/components/ThinkingBlock/ThinkingBlock.js +45 -0
- package/dist/components/ThinkingBlock/ThinkingBlock.types.d.ts +16 -0
- package/dist/components/ThinkingBlock/index.d.ts +2 -0
- package/dist/components/ToolCall/ToolCall.cjs +1 -0
- package/dist/components/ToolCall/ToolCall.const.cjs +1 -0
- package/dist/components/ToolCall/ToolCall.const.d.ts +5 -0
- package/dist/components/ToolCall/ToolCall.const.js +17 -0
- package/dist/components/ToolCall/ToolCall.d.ts +2 -0
- package/dist/components/ToolCall/ToolCall.js +43 -0
- package/dist/components/ToolCall/ToolCall.types.d.ts +20 -0
- package/dist/components/ToolCall/index.d.ts +2 -0
- package/dist/components/Transition/Transition.const.cjs +1 -1
- package/dist/components/Transition/Transition.const.js +12 -6
- package/dist/components/Transition/Transition.types.d.ts +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +37 -9
- package/dist/components/index.js +455 -423
- package/dist/constants/generals.const.cjs +1 -1
- package/dist/constants/generals.const.d.ts +46 -0
- package/dist/constants/generals.const.js +158 -115
- package/dist/constants/keys.const.cjs +1 -1
- package/dist/constants/keys.const.js +2 -1
- package/dist/constants/numbers.const.cjs +1 -1
- package/dist/constants/numbers.const.d.ts +7 -0
- package/dist/constants/numbers.const.js +60 -52
- package/dist/context/BearProvider.cjs +1 -1
- package/dist/context/BearProvider.d.ts +19 -44
- package/dist/context/BearProvider.js +223 -208
- package/dist/context/bearProvider.types.d.ts +4 -0
- package/dist/context/index.d.ts +1 -1
- package/dist/hooks/useFixedAnchorPosition/index.d.ts +1 -1
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.cjs +1 -1
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.d.ts +2 -1
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.js +12 -11
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.types.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +595 -563
- package/dist/styles/_ai-chat.css +487 -0
- package/dist/styles/_base.css +2 -0
- package/dist/styles/_chart.css +144 -0
- package/dist/styles/_effects.css +8 -4
- package/dist/styles/_skeleton.css +90 -0
- package/dist/styles/main.css +3 -0
- package/dist/styles.css +734 -32
- package/package.json +1 -1
- package/dist/components/FormSkeleton/FormSkeleton.const.cjs +0 -1
- package/dist/components/FormSkeleton/FormSkeleton.const.d.ts +0 -5
- package/dist/components/FormSkeleton/FormSkeleton.const.js +0 -8
- package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.cjs +0 -1
- package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.const.cjs +0 -1
- package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.const.js +0 -14
- package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.js +0 -35
- package/dist/node_modules/@forgedevstack/bear-icons/dist/action.cjs +0 -1
- package/dist/node_modules/@forgedevstack/bear-icons/dist/action.js +0 -26
- package/dist/node_modules/@forgedevstack/bear-icons/dist/cn.utils.cjs +0 -1
- package/dist/node_modules/@forgedevstack/bear-icons/dist/cn.utils.js +0 -4
- package/dist/node_modules/@forgedevstack/bear-icons/dist/editor.cjs +0 -1
- package/dist/node_modules/@forgedevstack/bear-icons/dist/editor.js +0 -130
- package/dist/node_modules/@forgedevstack/bear-icons/dist/misc.cjs +0 -1
- package/dist/node_modules/@forgedevstack/bear-icons/dist/misc.js +0 -12
- package/dist/node_modules/@forgedevstack/bear-icons/dist/navigation.cjs +0 -1
- package/dist/node_modules/@forgedevstack/bear-icons/dist/navigation.js +0 -18
- package/dist/node_modules/@forgedevstack/bear-icons/dist/status.cjs +0 -1
- package/dist/node_modules/@forgedevstack/bear-icons/dist/status.js +0 -6
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
.Bear-Chat {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
height: var(--Bear-Chat-height, 400px);
|
|
6
|
+
background-color: var(--bear-bg-primary);
|
|
7
|
+
border: 1px solid var(--bear-border-default);
|
|
8
|
+
border-radius: var(--bear-radius-lg, 0.75rem);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.Bear-Chat__header,
|
|
12
|
+
.Bear-Chat__footer,
|
|
13
|
+
.Bear-Chat__composer {
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
border-color: var(--bear-border-default);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.Bear-Chat__header {
|
|
19
|
+
padding: 0.75rem 1rem;
|
|
20
|
+
border-bottom: 1px solid var(--bear-border-default);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.Bear-Chat__messages {
|
|
24
|
+
position: relative;
|
|
25
|
+
flex: 1 1 auto;
|
|
26
|
+
min-height: 0;
|
|
27
|
+
overflow-y: auto;
|
|
28
|
+
padding: 1rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.Bear-Chat__live {
|
|
32
|
+
position: absolute;
|
|
33
|
+
width: 1px;
|
|
34
|
+
height: 1px;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
clip: rect(0 0 0 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.Bear-Chat__composer {
|
|
40
|
+
padding: 0.75rem;
|
|
41
|
+
border-top: 1px solid var(--bear-border-default);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.Bear-Chat__new-messages {
|
|
45
|
+
position: sticky;
|
|
46
|
+
bottom: 0.5rem;
|
|
47
|
+
margin-inline: auto;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.Bear-ChatBubble {
|
|
51
|
+
display: flex;
|
|
52
|
+
gap: 0.5rem;
|
|
53
|
+
margin-bottom: 0.75rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.Bear-ChatBubble--user {
|
|
57
|
+
flex-direction: row-reverse;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.Bear-ChatBubble--system {
|
|
61
|
+
justify-content: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.Bear-ChatBubble__body {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
max-width: 70%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.Bear-ChatBubble--user .Bear-ChatBubble__body {
|
|
71
|
+
align-items: flex-end;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.Bear-ChatBubble--bot .Bear-ChatBubble__body,
|
|
75
|
+
.Bear-ChatBubble--assistant .Bear-ChatBubble__body {
|
|
76
|
+
align-items: flex-start;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.Bear-ChatBubble__bubble {
|
|
80
|
+
padding: 0.5rem 1rem;
|
|
81
|
+
border-radius: 1rem;
|
|
82
|
+
background-color: var(--bear-bg-secondary);
|
|
83
|
+
color: var(--bear-text-primary);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.Bear-ChatBubble--user .Bear-ChatBubble__bubble {
|
|
87
|
+
background-color: var(--bear-primary-500);
|
|
88
|
+
color: var(--bear-text-inverted, #fff);
|
|
89
|
+
border-bottom-right-radius: 0.25rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.Bear-ChatBubble--bot .Bear-ChatBubble__bubble,
|
|
93
|
+
.Bear-ChatBubble--assistant .Bear-ChatBubble__bubble {
|
|
94
|
+
border-bottom-left-radius: 0.25rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.Bear-ChatBubble--system .Bear-ChatBubble__bubble {
|
|
98
|
+
background-color: transparent;
|
|
99
|
+
color: var(--bear-text-muted);
|
|
100
|
+
padding: 0.25rem 0.75rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.Bear-ChatBubble__meta {
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
gap: 0.25rem;
|
|
107
|
+
margin-top: 0.25rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.Bear-ChatBubble__status--read {
|
|
111
|
+
color: var(--bear-info-500);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.Bear-ChatBubble__status--error {
|
|
115
|
+
color: var(--bear-danger-500);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.Bear-ChatTyping {
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
gap: 0.5rem;
|
|
122
|
+
margin-bottom: 0.75rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.Bear-ChatTyping__dots {
|
|
126
|
+
display: flex;
|
|
127
|
+
gap: 0.25rem;
|
|
128
|
+
padding: 0.75rem 1rem;
|
|
129
|
+
border-radius: 1rem;
|
|
130
|
+
border-bottom-left-radius: 0.25rem;
|
|
131
|
+
background-color: var(--bear-bg-secondary);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.Bear-ChatTyping__dot {
|
|
135
|
+
width: 0.5rem;
|
|
136
|
+
height: 0.5rem;
|
|
137
|
+
border-radius: 999px;
|
|
138
|
+
background-color: var(--bear-text-muted);
|
|
139
|
+
animation: Bear-ChatTyping-bounce 1s ease-in-out infinite;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.Bear-ChatTyping__dot:nth-child(2) {
|
|
143
|
+
animation-delay: 150ms;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.Bear-ChatTyping__dot:nth-child(3) {
|
|
147
|
+
animation-delay: 300ms;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@keyframes Bear-ChatTyping-bounce {
|
|
151
|
+
0%,
|
|
152
|
+
80%,
|
|
153
|
+
100% {
|
|
154
|
+
transform: translateY(0);
|
|
155
|
+
opacity: 0.45;
|
|
156
|
+
}
|
|
157
|
+
40% {
|
|
158
|
+
transform: translateY(-3px);
|
|
159
|
+
opacity: 1;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.bear-reduced-motion .Bear-ChatTyping__dot {
|
|
164
|
+
animation: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.Bear-PromptComposer {
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-direction: column;
|
|
170
|
+
gap: 0.5rem;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.Bear-PromptComposer__files {
|
|
174
|
+
display: flex;
|
|
175
|
+
flex-wrap: wrap;
|
|
176
|
+
gap: 0.5rem;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.Bear-PromptComposer__row {
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: flex-end;
|
|
182
|
+
gap: 0.5rem;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.Bear-PromptComposer__field {
|
|
186
|
+
flex: 1 1 auto;
|
|
187
|
+
min-width: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.Bear-PromptComposer__textarea {
|
|
191
|
+
display: block;
|
|
192
|
+
width: 100%;
|
|
193
|
+
min-height: 2.75rem;
|
|
194
|
+
max-height: 10rem;
|
|
195
|
+
resize: none;
|
|
196
|
+
padding: 0.625rem 0.75rem;
|
|
197
|
+
border: 1px solid var(--bear-border-default);
|
|
198
|
+
border-radius: var(--bear-radius-md, 0.5rem);
|
|
199
|
+
background-color: var(--bear-bg-secondary);
|
|
200
|
+
color: var(--bear-text-primary);
|
|
201
|
+
font: inherit;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.Bear-PromptComposer__textarea:focus {
|
|
205
|
+
outline: 2px solid var(--bear-primary-500);
|
|
206
|
+
outline-offset: 1px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.Bear-PromptComposer__textarea:disabled {
|
|
210
|
+
opacity: 0.6;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.Bear-StreamingMessage {
|
|
214
|
+
display: flex;
|
|
215
|
+
flex-direction: column;
|
|
216
|
+
gap: 0.25rem;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.Bear-StreamingMessage__cursor {
|
|
220
|
+
display: inline-block;
|
|
221
|
+
width: 0.45em;
|
|
222
|
+
margin-inline-start: 0.1em;
|
|
223
|
+
background-color: currentColor;
|
|
224
|
+
animation: Bear-StreamingMessage-blink 1s step-end infinite;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@keyframes Bear-StreamingMessage-blink {
|
|
228
|
+
50% {
|
|
229
|
+
opacity: 0;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.bear-reduced-motion .Bear-StreamingMessage__cursor {
|
|
234
|
+
animation: none;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.Bear-ThinkingBlock {
|
|
238
|
+
border: 1px solid var(--bear-border-subtle);
|
|
239
|
+
border-radius: var(--bear-radius-md, 0.5rem);
|
|
240
|
+
background-color: var(--bear-bg-secondary);
|
|
241
|
+
overflow: hidden;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.Bear-ThinkingBlock__trigger {
|
|
245
|
+
width: 100%;
|
|
246
|
+
text-align: start;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.Bear-ThinkingBlock__body {
|
|
250
|
+
padding: 0 0.75rem 0.75rem;
|
|
251
|
+
color: var(--bear-text-secondary);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.Bear-PromptSuggestions {
|
|
255
|
+
display: flex;
|
|
256
|
+
flex-wrap: wrap;
|
|
257
|
+
gap: 0.5rem;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.Bear-MessageActions {
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-wrap: wrap;
|
|
263
|
+
gap: 0.25rem;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.Bear-ChatError {
|
|
267
|
+
border: 1px solid var(--bear-danger-500);
|
|
268
|
+
background-color: color-mix(in srgb, var(--bear-danger-500) 12%, var(--bear-bg-primary));
|
|
269
|
+
color: var(--bear-danger-700);
|
|
270
|
+
border-radius: var(--bear-radius-md, 0.5rem);
|
|
271
|
+
padding: 0.75rem 1rem;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.Bear-ChatError .Bear-Typography,
|
|
275
|
+
.Bear-ChatError .Bear-Button {
|
|
276
|
+
color: inherit;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.dark .Bear-ChatError,
|
|
280
|
+
.bear-dark .Bear-ChatError {
|
|
281
|
+
background-color: color-mix(in srgb, var(--bear-danger-500) 20%, var(--bear-bg-secondary));
|
|
282
|
+
color: var(--bear-danger-200);
|
|
283
|
+
border-color: var(--bear-danger-500);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.Bear-ToolCall {
|
|
287
|
+
border: 1px solid var(--bear-border-default);
|
|
288
|
+
border-radius: var(--bear-radius-md, 0.5rem);
|
|
289
|
+
background-color: var(--bear-bg-secondary);
|
|
290
|
+
padding: 0.75rem 1rem;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.Bear-ToolCall--running {
|
|
294
|
+
border-color: var(--bear-info-500);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.Bear-ToolCall--success {
|
|
298
|
+
border-color: var(--bear-success-500);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.Bear-ToolCall--error {
|
|
302
|
+
border-color: var(--bear-danger-500);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.Bear-CitationList {
|
|
306
|
+
display: flex;
|
|
307
|
+
flex-direction: column;
|
|
308
|
+
gap: 0.5rem;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.Bear-CitationList__item {
|
|
312
|
+
border: 1px solid var(--bear-border-subtle);
|
|
313
|
+
border-radius: var(--bear-radius-md, 0.5rem);
|
|
314
|
+
padding: 0.5rem 0.75rem;
|
|
315
|
+
background-color: var(--bear-bg-secondary);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.Bear-ApprovalCard,
|
|
319
|
+
.Bear-ArtifactCard {
|
|
320
|
+
border: 1px solid var(--bear-border-default);
|
|
321
|
+
border-radius: var(--bear-radius-md, 0.5rem);
|
|
322
|
+
background-color: var(--bear-bg-primary);
|
|
323
|
+
padding: 0.75rem 1rem;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.Bear-ContextMeter {
|
|
327
|
+
display: flex;
|
|
328
|
+
flex-direction: column;
|
|
329
|
+
gap: 0.25rem;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.Bear-ContextMeter__track {
|
|
333
|
+
height: 0.375rem;
|
|
334
|
+
overflow: hidden;
|
|
335
|
+
border-radius: 999px;
|
|
336
|
+
background-color: var(--bear-bg-tertiary);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.Bear-ContextMeter__fill {
|
|
340
|
+
height: 100%;
|
|
341
|
+
width: var(--Bear-ContextMeter-percent, 0%);
|
|
342
|
+
background-color: var(--bear-primary-500);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.Bear-ContextMeter--warn .Bear-ContextMeter__fill {
|
|
346
|
+
background-color: var(--bear-warning-500);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.Bear-ContextMeter--danger .Bear-ContextMeter__fill {
|
|
350
|
+
background-color: var(--bear-danger-500);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.Bear-ModelSelect {
|
|
354
|
+
min-width: 10rem;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.Bear-ThemeSwitcher {
|
|
358
|
+
display: inline-flex;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.Bear-FloatingChat {
|
|
362
|
+
position: fixed;
|
|
363
|
+
z-index: var(--bear-z-overlay, 11000);
|
|
364
|
+
inset-inline-end: var(--Bear-FloatingChat-side, 24px);
|
|
365
|
+
bottom: var(--Bear-FloatingChat-bottom, 24px);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.Bear-FloatingChat--left {
|
|
369
|
+
inset-inline-end: auto;
|
|
370
|
+
inset-inline-start: var(--Bear-FloatingChat-side, 24px);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.Bear-FloatingChat__window {
|
|
374
|
+
position: absolute;
|
|
375
|
+
bottom: calc(var(--Bear-FloatingChat-trigger, 3.5rem) + 0.75rem);
|
|
376
|
+
inset-inline-end: 0;
|
|
377
|
+
width: var(--Bear-FloatingChat-width, 360px);
|
|
378
|
+
height: var(--Bear-FloatingChat-height, 520px);
|
|
379
|
+
overflow: hidden;
|
|
380
|
+
border: 1px solid var(--bear-border-default);
|
|
381
|
+
border-radius: 1rem;
|
|
382
|
+
background-color: var(--bear-bg-primary);
|
|
383
|
+
box-shadow: var(--bear-shadow-xl, 0 25px 50px -12px rgb(15 23 42 / 0.25));
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.Bear-FloatingChat--left .Bear-FloatingChat__window {
|
|
387
|
+
inset-inline-end: auto;
|
|
388
|
+
inset-inline-start: 0;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.Bear-FloatingChat__window--closed {
|
|
392
|
+
opacity: 0;
|
|
393
|
+
pointer-events: none;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.Bear-FloatingChat__header {
|
|
397
|
+
display: flex;
|
|
398
|
+
align-items: center;
|
|
399
|
+
gap: 0.75rem;
|
|
400
|
+
padding: 0.75rem 1rem;
|
|
401
|
+
background-color: var(--bear-primary-500);
|
|
402
|
+
color: var(--bear-text-inverted, #fff);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.Bear-FloatingChat__title,
|
|
406
|
+
.Bear-FloatingChat__subtitle {
|
|
407
|
+
color: inherit;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.Bear-FloatingChat__trigger {
|
|
411
|
+
position: relative;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.Bear-FloatingChat__badge {
|
|
415
|
+
position: absolute;
|
|
416
|
+
top: -0.25rem;
|
|
417
|
+
inset-inline-end: -0.25rem;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.Bear-FloatingChat__powered {
|
|
421
|
+
padding: 0.5rem 0.75rem;
|
|
422
|
+
text-align: center;
|
|
423
|
+
border-top: 1px solid var(--bear-border-default);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.Bear-Drawer--persistent,
|
|
427
|
+
.Bear-Drawer--permanent {
|
|
428
|
+
pointer-events: none;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.Bear-Drawer--persistent .Bear-Drawer__panel,
|
|
432
|
+
.Bear-Drawer--permanent .Bear-Drawer__panel {
|
|
433
|
+
pointer-events: auto;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.Bear-Drawer--permanent {
|
|
437
|
+
position: relative;
|
|
438
|
+
inset: auto;
|
|
439
|
+
z-index: auto;
|
|
440
|
+
isolation: auto;
|
|
441
|
+
width: max-content;
|
|
442
|
+
max-width: 100%;
|
|
443
|
+
pointer-events: auto;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.Bear-Drawer--permanent .Bear-Drawer__panel {
|
|
447
|
+
position: relative;
|
|
448
|
+
transform: none;
|
|
449
|
+
opacity: 1;
|
|
450
|
+
box-shadow: none;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.Bear-EmptyState {
|
|
454
|
+
display: flex;
|
|
455
|
+
flex-direction: column;
|
|
456
|
+
align-items: center;
|
|
457
|
+
text-align: center;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.Bear-EmptyState--card {
|
|
461
|
+
background-color: var(--bear-bg-secondary);
|
|
462
|
+
border: 1px solid var(--bear-border-default);
|
|
463
|
+
border-radius: 0.75rem;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.Bear-EmptyState__icon {
|
|
467
|
+
color: var(--bear-text-muted);
|
|
468
|
+
margin-bottom: 1rem;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.Bear-EmptyState__title {
|
|
472
|
+
font-weight: 600;
|
|
473
|
+
color: var(--bear-text-primary);
|
|
474
|
+
margin-bottom: 0.5rem;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.Bear-EmptyState__description {
|
|
478
|
+
color: var(--bear-text-secondary);
|
|
479
|
+
max-width: 28rem;
|
|
480
|
+
margin-bottom: 1.5rem;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.Bear-EmptyState__actions {
|
|
484
|
+
display: flex;
|
|
485
|
+
align-items: center;
|
|
486
|
+
gap: 0.75rem;
|
|
487
|
+
}
|
package/dist/styles/_base.css
CHANGED
|
@@ -42,9 +42,11 @@
|
|
|
42
42
|
|
|
43
43
|
/* Danger colors */
|
|
44
44
|
--bear-danger-50: #fef2f2;
|
|
45
|
+
--bear-danger-200: #fecaca;
|
|
45
46
|
--bear-danger-500: #ef4444;
|
|
46
47
|
--bear-danger-600: #dc2626;
|
|
47
48
|
--bear-danger-700: #b91c1c;
|
|
49
|
+
--bear-danger-800: #991b1b;
|
|
48
50
|
|
|
49
51
|
/* Info colors */
|
|
50
52
|
--bear-info-50: #eff6ff;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
.Bear-Chart {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.Bear-Chart--bar,
|
|
6
|
+
.Bear-Chart--line,
|
|
7
|
+
.Bear-Chart--radar,
|
|
8
|
+
.Bear-Chart--funnel {
|
|
9
|
+
height: var(--Bear-Chart-height, 200px);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.Bear-Chart__track {
|
|
13
|
+
height: 100%;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: stretch;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
gap: var(--Bear-Chart-gap, 0.2rem);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.Bear-Chart--horizontal .Bear-Chart__track {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: stretch;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.Bear-Chart__col {
|
|
26
|
+
flex: 1;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: center;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
min-height: 0;
|
|
32
|
+
height: 100%;
|
|
33
|
+
gap: 0.25rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.Bear-Chart--horizontal .Bear-Chart__col {
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 0.5rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.Bear-Chart__plot {
|
|
43
|
+
width: 100%;
|
|
44
|
+
flex: 1 1 auto;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: flex-end;
|
|
47
|
+
min-height: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.Bear-Chart--horizontal .Bear-Chart__plot {
|
|
51
|
+
height: 100%;
|
|
52
|
+
align-items: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.Bear-Chart__stack {
|
|
56
|
+
display: flex;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: var(--Bear-Chart-size);
|
|
59
|
+
flex-direction: column-reverse;
|
|
60
|
+
transform-origin: bottom center;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.Bear-Chart--horizontal .Bear-Chart__stack {
|
|
64
|
+
width: var(--Bear-Chart-size);
|
|
65
|
+
height: 75%;
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
transform-origin: left center;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.Bear-Chart__segment {
|
|
71
|
+
background-color: var(--Bear-Chart-color);
|
|
72
|
+
opacity: 0.9;
|
|
73
|
+
border-radius: var(--Bear-Chart-radius, 0);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.Bear-Chart--vertical .Bear-Chart__segment {
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: var(--Bear-Chart-segment);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.Bear-Chart--horizontal .Bear-Chart__segment {
|
|
82
|
+
height: 100%;
|
|
83
|
+
width: var(--Bear-Chart-segment);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.Bear-Chart__svg {
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.Bear-Chart__labels {
|
|
92
|
+
display: flex;
|
|
93
|
+
justify-content: space-between;
|
|
94
|
+
margin-top: 0.5rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.Bear-Chart__label,
|
|
98
|
+
.Bear-Chart__value {
|
|
99
|
+
max-width: 100%;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
font-size: 0.75rem;
|
|
104
|
+
color: var(--bear-text-secondary, #4b5563);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.Bear-Chart--horizontal .Bear-Chart__label {
|
|
108
|
+
width: 4rem;
|
|
109
|
+
flex-shrink: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.Bear-Chart--pie {
|
|
113
|
+
position: relative;
|
|
114
|
+
max-width: 100%;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.Bear-Chart__pie-canvas {
|
|
118
|
+
flex-shrink: 0;
|
|
119
|
+
min-width: 0;
|
|
120
|
+
width: var(--Bear-Chart-height, 200px);
|
|
121
|
+
height: var(--Bear-Chart-height, 200px);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.Bear-Chart__swatch {
|
|
125
|
+
width: 0.75rem;
|
|
126
|
+
height: 0.75rem;
|
|
127
|
+
border-radius: 999px;
|
|
128
|
+
background-color: var(--Bear-Chart-color);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.Bear-Chart__funnel-step {
|
|
132
|
+
width: var(--Bear-Chart-size);
|
|
133
|
+
min-height: 18px;
|
|
134
|
+
height: var(--Bear-Chart-step-height);
|
|
135
|
+
background-color: var(--Bear-Chart-color);
|
|
136
|
+
transform-origin: left center;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.Bear-Chart--empty {
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
min-height: var(--Bear-Chart-height, 200px);
|
|
144
|
+
}
|
package/dist/styles/_effects.css
CHANGED
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@keyframes grow-up {
|
|
33
|
-
from {
|
|
34
|
-
to { opacity: 1; }
|
|
33
|
+
from { transform: scaleY(0); opacity: 0; }
|
|
34
|
+
to { transform: scaleY(1); opacity: 1; }
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
@keyframes grow-right {
|
|
38
|
-
from {
|
|
39
|
-
to { opacity: 1; }
|
|
38
|
+
from { transform: scaleX(0); opacity: 0; }
|
|
39
|
+
to { transform: scaleX(1); opacity: 1; }
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@keyframes draw-line {
|
|
@@ -69,10 +69,14 @@
|
|
|
69
69
|
|
|
70
70
|
/* Animation utility classes */
|
|
71
71
|
.animate-grow-up {
|
|
72
|
+
transform-origin: bottom center;
|
|
73
|
+
transform-box: fill-box;
|
|
72
74
|
animation: grow-up 0.5s ease-out forwards;
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
.animate-grow-right {
|
|
78
|
+
transform-origin: left center;
|
|
79
|
+
transform-box: fill-box;
|
|
76
80
|
animation: grow-right 0.5s ease-out forwards;
|
|
77
81
|
}
|
|
78
82
|
|