@forgedevstack/bear 1.3.2 → 1.3.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/README.md +145 -288
- package/dist/components/AlertDialog/AlertDialog.cjs +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +67 -84
- 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/BottomSheet/BottomSheet.cjs +1 -1
- package/dist/components/BottomSheet/BottomSheet.js +72 -64
- 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/ChipGroup/ChipGroup.cjs +1 -1
- package/dist/components/ChipGroup/ChipGroup.const.cjs +1 -1
- package/dist/components/ChipGroup/ChipGroup.const.d.ts +2 -0
- package/dist/components/ChipGroup/ChipGroup.const.js +6 -4
- package/dist/components/ChipGroup/ChipGroup.js +52 -48
- 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/CommandPalette/CommandItem.cjs +1 -0
- package/dist/components/CommandPalette/CommandItem.d.ts +6 -0
- package/dist/components/CommandPalette/CommandItem.js +39 -0
- package/dist/components/CommandPalette/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette/CommandPalette.js +129 -144
- 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 +101 -85
- 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 +13 -6
- package/dist/components/EmptyState/EmptyState.const.js +30 -8
- package/dist/components/EmptyState/EmptyState.d.ts +1 -2
- package/dist/components/EmptyState/EmptyState.js +37 -41
- package/dist/components/EmptyState/EmptyState.types.d.ts +3 -1
- 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/HoverCard/HoverCard.cjs +4 -3
- package/dist/components/HoverCard/HoverCard.const.cjs +1 -0
- package/dist/components/HoverCard/HoverCard.const.d.ts +1 -0
- package/dist/components/HoverCard/HoverCard.const.js +10 -0
- package/dist/components/HoverCard/HoverCard.js +62 -56
- package/dist/components/HoverCard/HoverCard.types.d.ts +7 -0
- 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/Menu/Menu.cjs +1 -1
- package/dist/components/Menu/Menu.const.cjs +1 -0
- package/dist/components/Menu/Menu.const.d.ts +2 -0
- package/dist/components/Menu/Menu.const.js +12 -0
- package/dist/components/Menu/Menu.d.ts +3 -9
- package/dist/components/Menu/Menu.js +57 -89
- package/dist/components/Menu/Menu.types.d.ts +8 -1
- package/dist/components/Menu/MenuDivider.cjs +1 -0
- package/dist/components/Menu/MenuDivider.d.ts +6 -0
- package/dist/components/Menu/MenuDivider.js +7 -0
- package/dist/components/Menu/MenuItem.cjs +1 -0
- package/dist/components/Menu/MenuItem.d.ts +6 -0
- package/dist/components/Menu/MenuItem.js +46 -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.const.cjs +1 -1
- package/dist/components/Modal/Modal.const.d.ts +1 -0
- package/dist/components/Modal/Modal.const.js +20 -12
- package/dist/components/Modal/Modal.js +62 -59
- package/dist/components/Modal/Modal.types.d.ts +7 -0
- 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/Popover/Popover.cjs +1 -1
- package/dist/components/Popover/Popover.const.cjs +1 -0
- package/dist/components/Popover/Popover.const.d.ts +15 -1
- package/dist/components/Popover/Popover.const.js +29 -0
- package/dist/components/Popover/Popover.js +77 -73
- package/dist/components/Popover/Popover.types.d.ts +7 -0
- 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.const.cjs +1 -1
- package/dist/components/Select/Select.const.d.ts +1 -0
- package/dist/components/Select/Select.const.js +7 -6
- package/dist/components/Select/Select.js +110 -105
- 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/Toast/Toast.cjs +1 -1
- package/dist/components/Toast/Toast.const.cjs +1 -1
- package/dist/components/Toast/Toast.const.d.ts +2 -0
- package/dist/components/Toast/Toast.const.js +11 -8
- package/dist/components/Toast/Toast.context.cjs +1 -0
- package/dist/components/Toast/Toast.context.d.ts +3 -0
- package/dist/components/Toast/Toast.context.js +11 -0
- package/dist/components/Toast/Toast.d.ts +4 -3
- package/dist/components/Toast/Toast.icons.cjs +1 -0
- package/dist/components/Toast/Toast.icons.d.ts +4 -0
- package/dist/components/Toast/Toast.icons.js +29 -0
- package/dist/components/Toast/Toast.js +32 -160
- package/dist/components/Toast/ToastContainer.cjs +1 -0
- package/dist/components/Toast/ToastContainer.d.ts +3 -0
- package/dist/components/Toast/ToastContainer.js +39 -0
- package/dist/components/Toast/ToastItem.cjs +1 -0
- package/dist/components/Toast/ToastItem.d.ts +5 -0
- package/dist/components/Toast/ToastItem.js +86 -0
- package/dist/components/ToggleGroup/ToggleGroup.cjs +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.const.cjs +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.const.d.ts +15 -0
- package/dist/components/ToggleGroup/ToggleGroup.const.js +33 -0
- package/dist/components/ToggleGroup/ToggleGroup.context.cjs +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.context.d.ts +2 -0
- package/dist/components/ToggleGroup/ToggleGroup.context.js +5 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +2 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +86 -0
- package/dist/components/ToggleGroup/ToggleGroup.types.d.ts +48 -0
- package/dist/components/ToggleGroup/ToggleGroupItem.cjs +1 -0
- package/dist/components/ToggleGroup/ToggleGroupItem.d.ts +2 -0
- package/dist/components/ToggleGroup/ToggleGroupItem.js +50 -0
- package/dist/components/ToggleGroup/hooks/useToggleGroupContext.cjs +1 -0
- package/dist/components/ToggleGroup/hooks/useToggleGroupContext.d.ts +1 -0
- package/dist/components/ToggleGroup/hooks/useToggleGroupContext.js +6 -0
- package/dist/components/ToggleGroup/index.d.ts +4 -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/Tooltip/Tooltip.cjs +1 -1
- package/dist/components/Tooltip/Tooltip.const.cjs +1 -0
- package/dist/components/Tooltip/Tooltip.const.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.const.js +18 -0
- package/dist/components/Tooltip/Tooltip.js +59 -61
- package/dist/components/Tooltip/Tooltip.types.d.ts +7 -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 +39 -9
- package/dist/components/index.js +335 -293
- 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 +10 -0
- package/dist/constants/numbers.const.js +64 -53
- 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/index.cjs +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +6 -4
- 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/hooks/useFocusTrap/index.d.ts +2 -0
- package/dist/hooks/useFocusTrap/useFocusTrap.cjs +1 -0
- package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +3 -0
- package/dist/hooks/useFocusTrap/useFocusTrap.js +41 -0
- package/dist/hooks/useFocusTrap/useFocusTrap.types.d.ts +8 -0
- package/dist/hooks/useFocusTrap/useFocusTrap.utils.cjs +1 -0
- package/dist/hooks/useFocusTrap/useFocusTrap.utils.d.ts +1 -0
- package/dist/hooks/useFocusTrap/useFocusTrap.utils.js +23 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +483 -439
- 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 +953 -199
- 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
|
@@ -1,118 +1,101 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useId as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const ae = (B) => {
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useId as I, useRef as k, useEffect as L } from "react";
|
|
3
|
+
import { createPortal as T } from "react-dom";
|
|
4
|
+
import { LABEL_CONFIRM as C, LABEL_CANCEL as R, VARIANT_DANGER as O, BOOLEAN_FALSE as m, BOOLEAN_TRUE as w, ALERT_DESC_ID_PREFIX as j, ALERT_TITLE_ID_PREFIX as F } from "../../constants/generals.const.js";
|
|
5
|
+
import { cn as n } from "../../utils/cn.js";
|
|
6
|
+
import { useFocusTrap as $ } from "../../hooks/useFocusTrap/useFocusTrap.js";
|
|
7
|
+
import { Button as f } from "../Button/Button.js";
|
|
8
|
+
import { Typography as g } from "../Typography/Typography.js";
|
|
9
|
+
const q = (p) => {
|
|
11
10
|
const {
|
|
12
|
-
isOpen:
|
|
13
|
-
onClose:
|
|
14
|
-
onConfirm:
|
|
15
|
-
title:
|
|
16
|
-
description:
|
|
17
|
-
confirmText:
|
|
18
|
-
cancelText:
|
|
19
|
-
confirmVariant:
|
|
20
|
-
loading:
|
|
21
|
-
loadingText:
|
|
22
|
-
closeOnBackdrop:
|
|
23
|
-
closeOnEscape:
|
|
24
|
-
icon:
|
|
25
|
-
className:
|
|
26
|
-
testId:
|
|
27
|
-
} =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return;
|
|
35
|
-
const i = n.current.querySelectorAll(
|
|
36
|
-
'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
37
|
-
);
|
|
38
|
-
if (i.length === A)
|
|
39
|
-
return;
|
|
40
|
-
const y = i[A], x = i[i.length - 1];
|
|
41
|
-
e.shiftKey && document.activeElement === y ? (e.preventDefault(), x.focus()) : !e.shiftKey && document.activeElement === x && (e.preventDefault(), y.focus());
|
|
42
|
-
}, []);
|
|
43
|
-
if (P(() => (l && (g.current = document.activeElement, document.addEventListener("keydown", c), document.addEventListener("keydown", s), document.body.style.overflow = "hidden", requestAnimationFrame(() => {
|
|
44
|
-
var e;
|
|
45
|
-
return (e = n.current) == null ? void 0 : e.focus();
|
|
46
|
-
})), () => {
|
|
47
|
-
var e;
|
|
48
|
-
document.removeEventListener("keydown", c), document.removeEventListener("keydown", s), document.body.style.overflow = "", (e = g.current) == null || e.focus();
|
|
49
|
-
}), [l, c, s]), !l)
|
|
11
|
+
isOpen: r,
|
|
12
|
+
onClose: i,
|
|
13
|
+
onConfirm: u,
|
|
14
|
+
title: _,
|
|
15
|
+
description: o,
|
|
16
|
+
confirmText: x = C,
|
|
17
|
+
cancelText: A = R,
|
|
18
|
+
confirmVariant: y = O,
|
|
19
|
+
loading: a = m,
|
|
20
|
+
loadingText: E,
|
|
21
|
+
closeOnBackdrop: h = m,
|
|
22
|
+
closeOnEscape: v = w,
|
|
23
|
+
icon: t,
|
|
24
|
+
className: N,
|
|
25
|
+
testId: B
|
|
26
|
+
} = p, d = I(), b = `${F}${d}`, s = `${j}${d}`, c = k(null);
|
|
27
|
+
if ($(c, {
|
|
28
|
+
enabled: r,
|
|
29
|
+
onEscape: v && !a ? i : void 0
|
|
30
|
+
}), L(() => (r && (document.body.style.overflow = "hidden"), () => {
|
|
31
|
+
document.body.style.overflow = "";
|
|
32
|
+
}), [r]), !r)
|
|
50
33
|
return null;
|
|
51
|
-
const
|
|
34
|
+
const D = /* @__PURE__ */ l(
|
|
52
35
|
"div",
|
|
53
36
|
{
|
|
54
37
|
className: "Bear-AlertDialog bear-fixed bear-inset-0 bear-z-50 bear-flex bear-items-center bear-justify-center bear-p-4",
|
|
55
|
-
"data-testid":
|
|
38
|
+
"data-testid": B,
|
|
56
39
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ e(
|
|
58
41
|
"div",
|
|
59
42
|
{
|
|
60
43
|
className: "Bear-AlertDialog__backdrop bear-absolute bear-inset-0 bear-bg-black/60 bear-backdrop-blur-sm bear-transition-opacity animate-fade-in",
|
|
61
|
-
onClick:
|
|
44
|
+
onClick: h && !a ? i : void 0,
|
|
62
45
|
"aria-hidden": "true"
|
|
63
46
|
}
|
|
64
47
|
),
|
|
65
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ l(
|
|
66
49
|
"div",
|
|
67
50
|
{
|
|
68
|
-
ref:
|
|
51
|
+
ref: c,
|
|
69
52
|
role: "alertdialog",
|
|
70
53
|
"aria-modal": "true",
|
|
71
|
-
"aria-labelledby":
|
|
72
|
-
"aria-describedby":
|
|
54
|
+
"aria-labelledby": b,
|
|
55
|
+
"aria-describedby": o ? s : void 0,
|
|
73
56
|
tabIndex: -1,
|
|
74
|
-
className:
|
|
57
|
+
className: n(
|
|
75
58
|
"Bear-AlertDialog__container bear-relative bear-w-full bear-max-w-md bear-bg-white dark:bear-bg-zinc-900 bear-rounded-xl bear-shadow-2xl bear-border bear-border-gray-200 dark:bear-border-zinc-700 bear-transform bear-transition-all animate-alert-dialog-in bear-p-6",
|
|
76
|
-
|
|
59
|
+
N
|
|
77
60
|
),
|
|
78
61
|
children: [
|
|
79
|
-
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
62
|
+
t && /* @__PURE__ */ e("div", { className: "Bear-AlertDialog__icon bear-mb-4 bear-flex bear-justify-center", children: t }),
|
|
63
|
+
/* @__PURE__ */ e(
|
|
64
|
+
g,
|
|
82
65
|
{
|
|
83
66
|
variant: "h6",
|
|
84
|
-
id:
|
|
85
|
-
className:
|
|
86
|
-
children:
|
|
67
|
+
id: b,
|
|
68
|
+
className: n("Bear-AlertDialog__title bear-text-lg bear-font-semibold bear-text-gray-900 dark:bear-text-white", t && "bear-text-center"),
|
|
69
|
+
children: _
|
|
87
70
|
}
|
|
88
71
|
),
|
|
89
|
-
|
|
90
|
-
|
|
72
|
+
o && /* @__PURE__ */ e(
|
|
73
|
+
g,
|
|
91
74
|
{
|
|
92
75
|
variant: "body2",
|
|
93
|
-
id:
|
|
94
|
-
className:
|
|
95
|
-
children:
|
|
76
|
+
id: s,
|
|
77
|
+
className: n("Bear-AlertDialog__description bear-text-sm bear-text-gray-600 dark:bear-text-gray-400 bear-mt-2", t && "bear-text-center"),
|
|
78
|
+
children: o
|
|
96
79
|
}
|
|
97
80
|
),
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
|
|
81
|
+
/* @__PURE__ */ l("div", { className: "Bear-AlertDialog__footer bear-flex bear-items-center bear-justify-end bear-gap-3 bear-pt-6", children: [
|
|
82
|
+
/* @__PURE__ */ e(
|
|
83
|
+
f,
|
|
101
84
|
{
|
|
102
85
|
variant: "ghost",
|
|
103
|
-
onClick:
|
|
104
|
-
disabled:
|
|
105
|
-
children:
|
|
86
|
+
onClick: i,
|
|
87
|
+
disabled: a,
|
|
88
|
+
children: A
|
|
106
89
|
}
|
|
107
90
|
),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
|
|
91
|
+
/* @__PURE__ */ e(
|
|
92
|
+
f,
|
|
110
93
|
{
|
|
111
|
-
variant:
|
|
112
|
-
onClick:
|
|
113
|
-
loading:
|
|
114
|
-
loadingText:
|
|
115
|
-
children:
|
|
94
|
+
variant: y,
|
|
95
|
+
onClick: u,
|
|
96
|
+
loading: a,
|
|
97
|
+
loadingText: E,
|
|
98
|
+
children: x
|
|
116
99
|
}
|
|
117
100
|
)
|
|
118
101
|
] })
|
|
@@ -122,8 +105,8 @@ const ae = (B) => {
|
|
|
122
105
|
]
|
|
123
106
|
}
|
|
124
107
|
);
|
|
125
|
-
return
|
|
108
|
+
return T(D, document.body);
|
|
126
109
|
};
|
|
127
110
|
export {
|
|
128
|
-
|
|
111
|
+
q as AlertDialog
|
|
129
112
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("../../constants/generals.const.cjs"),g=require("../../utils/cn.cjs");require("react");const j=require("../../utils/generateBearId.utils.cjs"),q=require("../../utils/useBearId.cjs"),h=require("../Box/Box.cjs"),o=require("../Button/Button.cjs"),a=require("../Flex/Flex.cjs"),i=require("../Typography/Typography.cjs"),B=require("./ApprovalCard.const.cjs"),b=c=>{const{id:l,testId:d,title:u,children:r,onApprove:t,onReject:n,translations:p,className:A}=c,x=q.useBearId(y.COMPONENT_NAME_APPROVAL_CARD),v=j.resolveBearId(l,x),s={...B.APPROVAL_CARD_DEFAULT_TRANSLATIONS,...p};return e.jsx(h.Box,{id:v,"data-testid":d,className:g.cn("Bear-ApprovalCard",A),children:e.jsxs(a.Flex,{direction:"column",gap:3,align:"start",children:[e.jsx(i.Typography,{variant:"subtitle1",children:u}),r&&e.jsx(i.Typography,{variant:"body2",children:r}),e.jsxs(a.Flex,{gap:2,children:[n&&e.jsx(o.Button,{type:"button",variant:"outline",size:"sm",onClick:n,children:s.rejectLabel}),t&&e.jsx(o.Button,{type:"button",variant:"primary",size:"sm",onClick:t,children:s.approveLabel})]})]})})};exports.ApprovalCard=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../constants/generals.const.cjs"),A={approveLabel:e.LABEL_APPROVE,rejectLabel:e.LABEL_REJECT};exports.APPROVAL_CARD_DEFAULT_TRANSLATIONS=A;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { COMPONENT_NAME_APPROVAL_CARD as u } from "../../constants/generals.const.js";
|
|
3
|
+
import { cn as b } from "../../utils/cn.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { resolveBearId as C } from "../../utils/generateBearId.utils.js";
|
|
6
|
+
import { useBearId as N } from "../../utils/useBearId.js";
|
|
7
|
+
import { Box as y } from "../Box/Box.js";
|
|
8
|
+
import { Button as n } from "../Button/Button.js";
|
|
9
|
+
import { Flex as m } from "../Flex/Flex.js";
|
|
10
|
+
import { Typography as p } from "../Typography/Typography.js";
|
|
11
|
+
import { APPROVAL_CARD_DEFAULT_TRANSLATIONS as I } from "./ApprovalCard.const.js";
|
|
12
|
+
const E = (l) => {
|
|
13
|
+
const { id: s, testId: d, title: c, children: t, onApprove: o, onReject: e, translations: A, className: f } = l, v = N(u), h = C(s, v), i = { ...I, ...A };
|
|
14
|
+
return /* @__PURE__ */ r(y, { id: h, "data-testid": d, className: b("Bear-ApprovalCard", f), children: /* @__PURE__ */ a(m, { direction: "column", gap: 3, align: "start", children: [
|
|
15
|
+
/* @__PURE__ */ r(p, { variant: "subtitle1", children: c }),
|
|
16
|
+
t && /* @__PURE__ */ r(p, { variant: "body2", children: t }),
|
|
17
|
+
/* @__PURE__ */ a(m, { gap: 2, children: [
|
|
18
|
+
e && /* @__PURE__ */ r(n, { type: "button", variant: "outline", size: "sm", onClick: e, children: i.rejectLabel }),
|
|
19
|
+
o && /* @__PURE__ */ r(n, { type: "button", variant: "primary", size: "sm", onClick: o, children: i.approveLabel })
|
|
20
|
+
] })
|
|
21
|
+
] }) });
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
E as ApprovalCard
|
|
25
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ApprovalCardTranslations {
|
|
3
|
+
approveLabel: string;
|
|
4
|
+
rejectLabel: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ApprovalCardProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
testId?: string;
|
|
9
|
+
title: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
onApprove?: () => void;
|
|
12
|
+
onReject?: () => void;
|
|
13
|
+
translations?: Partial<ApprovalCardTranslations>;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),T=require("../../constants/generals.const.cjs"),_=require("../../utils/cn.cjs");require("react");const g=require("../../utils/generateBearId.utils.cjs"),q=require("../../utils/useBearId.cjs"),x=require("../Badge/Badge.cjs"),n=require("../Box/Box.cjs"),I=require("../Button/Button.cjs"),h=require("../Flex/Flex.cjs"),j=require("../Typography/Typography.cjs"),a=require("./ArtifactCard.const.cjs"),p=i=>{const{id:c,testId:o,title:d,kind:r=a.ARTIFACT_CARD_DEFAULT_KIND,children:t,onOpen:s,translations:l,className:u}=i,A=q.useBearId(T.COMPONENT_NAME_ARTIFACT_CARD),B=g.resolveBearId(c,A),C={...a.ARTIFACT_CARD_DEFAULT_TRANSLATIONS,...l};return e.jsxs(n.Box,{id:B,"data-testid":o,className:_.cn("Bear-ArtifactCard",`Bear-ArtifactCard--${r}`,u),children:[e.jsxs(h.Flex,{align:"center",justify:"between",gap:2,children:[e.jsx(j.Typography,{variant:"subtitle2",children:d}),e.jsx(x.Badge,{size:"sm",children:r})]}),t&&e.jsx(n.Box,{className:"Bear-ArtifactCard__body",children:t}),s&&e.jsx(I.Button,{type:"button",variant:"ghost",size:"sm",onClick:s,children:C.openLabel})]})};exports.ArtifactCard=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../../constants/generals.const.cjs"),T={openLabel:A.LABEL_OPEN_ARTIFACT},_="doc";exports.ARTIFACT_CARD_DEFAULT_KIND=_;exports.ARTIFACT_CARD_DEFAULT_TRANSLATIONS=T;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { COMPONENT_NAME_ARTIFACT_CARD as C } from "../../constants/generals.const.js";
|
|
3
|
+
import { cn as T } from "../../utils/cn.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { resolveBearId as _ } from "../../utils/generateBearId.utils.js";
|
|
6
|
+
import { useBearId as I } from "../../utils/useBearId.js";
|
|
7
|
+
import { Badge as N } from "../Badge/Badge.js";
|
|
8
|
+
import { Box as a } from "../Box/Box.js";
|
|
9
|
+
import { Button as h } from "../Button/Button.js";
|
|
10
|
+
import { Flex as B } from "../Flex/Flex.js";
|
|
11
|
+
import { Typography as R } from "../Typography/Typography.js";
|
|
12
|
+
import { ARTIFACT_CARD_DEFAULT_KIND as b, ARTIFACT_CARD_DEFAULT_TRANSLATIONS as g } from "./ArtifactCard.const.js";
|
|
13
|
+
const M = (m) => {
|
|
14
|
+
const {
|
|
15
|
+
id: n,
|
|
16
|
+
testId: s,
|
|
17
|
+
title: d,
|
|
18
|
+
kind: t = b,
|
|
19
|
+
children: o,
|
|
20
|
+
onOpen: e,
|
|
21
|
+
translations: c,
|
|
22
|
+
className: l
|
|
23
|
+
} = m, p = I(C), A = _(n, p), f = { ...g, ...c };
|
|
24
|
+
return /* @__PURE__ */ i(
|
|
25
|
+
a,
|
|
26
|
+
{
|
|
27
|
+
id: A,
|
|
28
|
+
"data-testid": s,
|
|
29
|
+
className: T("Bear-ArtifactCard", `Bear-ArtifactCard--${t}`, l),
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ i(B, { align: "center", justify: "between", gap: 2, children: [
|
|
32
|
+
/* @__PURE__ */ r(R, { variant: "subtitle2", children: d }),
|
|
33
|
+
/* @__PURE__ */ r(N, { size: "sm", children: t })
|
|
34
|
+
] }),
|
|
35
|
+
o && /* @__PURE__ */ r(a, { className: "Bear-ArtifactCard__body", children: o }),
|
|
36
|
+
e && /* @__PURE__ */ r(h, { type: "button", variant: "ghost", size: "sm", onClick: e, children: f.openLabel })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
M as ArtifactCard
|
|
43
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ArtifactCardKind = 'code' | 'doc' | 'preview';
|
|
3
|
+
export interface ArtifactCardTranslations {
|
|
4
|
+
openLabel: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ArtifactCardProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
testId?: string;
|
|
9
|
+
title: string;
|
|
10
|
+
kind?: ArtifactCardKind;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
onOpen?: () => void;
|
|
13
|
+
translations?: Partial<ArtifactCardTranslations>;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../constants/generals.const.cjs"),r=require("@forgedevstack/bear-icons")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../constants/generals.const.cjs"),r=require("@forgedevstack/bear-icons");require("react/jsx-runtime");const a={dismissLabel:e.LABEL_DISMISS},n={info:r.InfoIcon,success:r.CheckCircleIcon,warning:r.WarningIcon,error:r.ErrorIcon},b={static:"",sticky:"bear-sticky bear-top-0 bear-z-40"},s={info:"bear-bg-[var(--bear-info-50,#eff6ff)] bear-text-[var(--bear-info-800,#1e40af)]",success:"bear-bg-[var(--bear-success-50,#f0fdf4)] bear-text-[var(--bear-success-800,#166534)]",warning:"bear-bg-[var(--bear-warning-50,#fffbeb)] bear-text-[var(--bear-warning-800,#92400e)]",error:"bear-bg-[var(--bear-danger-50,#fef2f2)] bear-text-[var(--bear-danger-800,#991b1b)]"};exports.BANNER_DEFAULT_ICON_MAP=n;exports.BANNER_DEFAULT_TRANSLATIONS=a;exports.BANNER_POSITION_CLASSES=b;exports.BANNER_SEVERITY_CLASSES=s;
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { LABEL_DISMISS as r } from "../../constants/generals.const.js";
|
|
2
2
|
import { ErrorIcon as e, WarningIcon as a, CheckCircleIcon as b, InfoIcon as n } from "@forgedevstack/bear-icons";
|
|
3
|
-
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
const f = {
|
|
4
5
|
dismissLabel: r
|
|
5
|
-
},
|
|
6
|
+
}, t = {
|
|
6
7
|
info: n,
|
|
7
8
|
success: b,
|
|
8
9
|
warning: a,
|
|
9
10
|
error: e
|
|
10
|
-
},
|
|
11
|
+
}, i = {
|
|
11
12
|
static: "",
|
|
12
13
|
sticky: "bear-sticky bear-top-0 bear-z-40"
|
|
13
|
-
},
|
|
14
|
+
}, S = {
|
|
14
15
|
info: "bear-bg-[var(--bear-info-50,#eff6ff)] bear-text-[var(--bear-info-800,#1e40af)]",
|
|
15
16
|
success: "bear-bg-[var(--bear-success-50,#f0fdf4)] bear-text-[var(--bear-success-800,#166534)]",
|
|
16
17
|
warning: "bear-bg-[var(--bear-warning-50,#fffbeb)] bear-text-[var(--bear-warning-800,#92400e)]",
|
|
17
18
|
error: "bear-bg-[var(--bear-danger-50,#fef2f2)] bear-text-[var(--bear-danger-800,#991b1b)]"
|
|
18
19
|
};
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
t as BANNER_DEFAULT_ICON_MAP,
|
|
22
|
+
f as BANNER_DEFAULT_TRANSLATIONS,
|
|
23
|
+
i as BANNER_POSITION_CLASSES,
|
|
24
|
+
S as BANNER_SEVERITY_CLASSES
|
|
24
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("react"),R=require("react-dom"),g=require("../../hooks/useFocusTrap/useFocusTrap.cjs"),m=require("../../constants/numbers.const.cjs"),e=require("../../constants/generals.const.cjs"),F=require("../../constants/keys.const.cjs"),l=require("../../utils/cn.cjs"),b=require("../Box/Box.cjs"),j=require("../Button/Button.cjs"),O=require("../Flex/Flex.cjs"),q=require("@forgedevstack/bear-icons"),v=require("../Typography/Typography.cjs"),C=require("./BottomSheet.const.cjs"),U=_=>{const{isOpen:i,onClose:n,title:o,children:f,size:y=e.SIZE_MD,showCloseButton:h=e.BOOLEAN_TRUE,closeOnBackdrop:L=e.BOOLEAN_TRUE,closeOnEscape:c=e.BOOLEAN_TRUE,showHandle:N=e.BOOLEAN_TRUE,enableScroll:S=e.BOOLEAN_TRUE,isSticky:p=e.BOOLEAN_FALSE,className:T}=_,[a,x]=t.useState(i),[u,d]=t.useState(e.BOOLEAN_FALSE),[k,B]=t.useState(e.BOOLEAN_FALSE);t.useEffect(()=>{if(i){x(e.BOOLEAN_TRUE),d(e.BOOLEAN_FALSE);const s=requestAnimationFrame(()=>B(e.BOOLEAN_TRUE));return()=>cancelAnimationFrame(s)}if(a){B(e.BOOLEAN_FALSE),d(e.BOOLEAN_TRUE);const s=setTimeout(()=>{x(e.BOOLEAN_FALSE),d(e.BOOLEAN_FALSE)},m.THREE_HUNDRED);return()=>clearTimeout(s)}},[i,a]);const A=t.useRef(null);g.useFocusTrap(A,{enabled:a&&!u,onEscape:c?n:void 0});const E=t.useCallback(s=>{c&&s.key===F.KEY_ESCAPE&&n()},[c,n]);if(t.useEffect(()=>(a&&(document.addEventListener("keydown",E),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",E),document.body.style.overflow=""}),[a,E]),!a)return null;const w=r.jsxs(O.Flex,{className:"bear-fixed bear-inset-0 bear-items-end bear-justify-center",style:{zIndex:m.BACKDROP_DEFAULT_Z_INDEX},children:[r.jsx(b.Box,{className:l.cn("bear-absolute bear-inset-0 bear-bg-black/60 bear-backdrop-blur-sm bear-transition-opacity",u?"bear-opacity-0":"bear-opacity-100"),style:{transitionDuration:`${m.THREE_HUNDRED}ms`},onClick:L?n:void 0,"aria-hidden":"true"}),r.jsxs(b.Box,{ref:A,role:"dialog",tabIndex:-1,"aria-modal":"true","aria-labelledby":o?"bottom-sheet-title":void 0,className:l.cn("Bear-BottomSheet bear-relative bear-w-full bear-rounded-t-2xl bear-shadow-2xl bear-transition-transform bear-duration-300","bear-flex bear-flex-col bear-min-h-0 bear-overflow-hidden","bear-bg-white dark:bear-bg-neutral-900 bear-border-t bear-border-neutral-200 dark:bear-border-neutral-700",C.BOTTOM_SHEET_SIZE_CLASSES[y],k&&!u?"bear-translate-y-0":"bear-translate-y-full",T),children:[N&&r.jsx(O.Flex,{className:"bear-justify-center bear-pt-2 bear-pb-1",children:r.jsx(b.Box,{className:"bear-w-12 bear-h-1 bear-rounded-full bear-bg-neutral-300 dark:bear-bg-neutral-600","aria-hidden":!0})}),(o||h)&&r.jsxs(O.Flex,{className:l.cn("bear-items-center bear-justify-between bear-px-4 bear-py-3 bear-border-b bear-border-neutral-200 dark:bear-border-neutral-700 bear-shrink-0",p&&"bear-sticky bear-top-0 bear-z-10 bear-bg-white dark:bear-bg-neutral-900"),children:[o&&r.jsx(v.Typography,{id:"bottom-sheet-title",weight:"semibold",className:"bear-text-lg bear-text-neutral-900 dark:bear-text-white",children:o}),h&&r.jsx(j.Button,{variant:e.VARIANT_GHOST,onClick:n,"aria-label":e.LABEL_CLOSE,children:r.jsx(q.XIcon,{className:"bear-w-5 bear-h-5"})})]}),r.jsx(b.Box,{className:l.cn("bear-flex-1 bear-min-h-0 bear-p-4 bear-text-neutral-700 dark:bear-text-neutral-300",S?"bear-overflow-y-auto":"bear-overflow-hidden"),children:f})]})]});return R.createPortal(w,document.body)};exports.BottomSheet=U;
|
|
@@ -1,99 +1,107 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useEffect as w, useRef as I, useCallback as D } from "react";
|
|
3
|
+
import { createPortal as R } from "react-dom";
|
|
4
|
+
import { useFocusTrap as F } from "../../hooks/useFocusTrap/useFocusTrap.js";
|
|
5
|
+
import { THREE_HUNDRED as N, BACKDROP_DEFAULT_Z_INDEX as H } from "../../constants/numbers.const.js";
|
|
6
|
+
import { SIZE_MD as j, BOOLEAN_TRUE as e, BOOLEAN_FALSE as a, LABEL_CLOSE as M, VARIANT_GHOST as z } from "../../constants/generals.const.js";
|
|
7
|
+
import { KEY_ESCAPE as P } from "../../constants/keys.const.js";
|
|
7
8
|
import { cn as i } from "../../utils/cn.js";
|
|
8
|
-
import { Box as
|
|
9
|
-
import { Button as
|
|
10
|
-
import { Flex as
|
|
11
|
-
import { XIcon as
|
|
12
|
-
import { Typography as
|
|
13
|
-
import { BOTTOM_SHEET_SIZE_CLASSES as
|
|
14
|
-
const
|
|
9
|
+
import { Box as s } from "../Box/Box.js";
|
|
10
|
+
import { Button as U } from "../Button/Button.js";
|
|
11
|
+
import { Flex as h } from "../Flex/Flex.js";
|
|
12
|
+
import { XIcon as Z } from "@forgedevstack/bear-icons";
|
|
13
|
+
import { Typography as K } from "../Typography/Typography.js";
|
|
14
|
+
import { BOTTOM_SHEET_SIZE_CLASSES as X } from "./BottomSheet.const.js";
|
|
15
|
+
const be = (S) => {
|
|
15
16
|
const {
|
|
16
|
-
isOpen:
|
|
17
|
-
onClose:
|
|
17
|
+
isOpen: l,
|
|
18
|
+
onClose: o,
|
|
18
19
|
title: b,
|
|
19
|
-
children:
|
|
20
|
-
size:
|
|
21
|
-
showCloseButton:
|
|
22
|
-
closeOnBackdrop:
|
|
23
|
-
closeOnEscape:
|
|
20
|
+
children: O,
|
|
21
|
+
size: g = j,
|
|
22
|
+
showCloseButton: y = e,
|
|
23
|
+
closeOnBackdrop: v = e,
|
|
24
|
+
closeOnEscape: d = e,
|
|
24
25
|
showHandle: _ = e,
|
|
25
|
-
enableScroll:
|
|
26
|
-
isSticky:
|
|
27
|
-
className:
|
|
28
|
-
} =
|
|
26
|
+
enableScroll: A = e,
|
|
27
|
+
isSticky: B = a,
|
|
28
|
+
className: T
|
|
29
|
+
} = S, [t, E] = p(l), [m, c] = p(a), [C, k] = p(a);
|
|
29
30
|
w(() => {
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
return () => cancelAnimationFrame(
|
|
31
|
+
if (l) {
|
|
32
|
+
E(e), c(a);
|
|
33
|
+
const n = requestAnimationFrame(() => k(e));
|
|
34
|
+
return () => cancelAnimationFrame(n);
|
|
34
35
|
}
|
|
35
36
|
if (t) {
|
|
36
|
-
k(a),
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
return () => clearTimeout(
|
|
37
|
+
k(a), c(e);
|
|
38
|
+
const n = setTimeout(() => {
|
|
39
|
+
E(a), c(a);
|
|
40
|
+
}, N);
|
|
41
|
+
return () => clearTimeout(n);
|
|
41
42
|
}
|
|
42
|
-
}, [
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
}, [l, t]);
|
|
44
|
+
const x = I(null);
|
|
45
|
+
F(x, {
|
|
46
|
+
enabled: t && !m,
|
|
47
|
+
onEscape: d ? o : void 0
|
|
48
|
+
});
|
|
49
|
+
const u = D(
|
|
50
|
+
(n) => {
|
|
51
|
+
d && n.key === P && o();
|
|
46
52
|
},
|
|
47
|
-
[
|
|
53
|
+
[d, o]
|
|
48
54
|
);
|
|
49
|
-
if (w(() => (t && (document.addEventListener("keydown",
|
|
50
|
-
document.removeEventListener("keydown",
|
|
51
|
-
}), [t,
|
|
55
|
+
if (w(() => (t && (document.addEventListener("keydown", u), document.body.style.overflow = "hidden"), () => {
|
|
56
|
+
document.removeEventListener("keydown", u), document.body.style.overflow = "";
|
|
57
|
+
}), [t, u]), !t)
|
|
52
58
|
return null;
|
|
53
|
-
const
|
|
54
|
-
|
|
59
|
+
const L = /* @__PURE__ */ f(
|
|
60
|
+
h,
|
|
55
61
|
{
|
|
56
62
|
className: "bear-fixed bear-inset-0 bear-items-end bear-justify-center",
|
|
57
|
-
style: { zIndex:
|
|
63
|
+
style: { zIndex: H },
|
|
58
64
|
children: [
|
|
59
65
|
/* @__PURE__ */ r(
|
|
60
|
-
|
|
66
|
+
s,
|
|
61
67
|
{
|
|
62
68
|
className: i(
|
|
63
69
|
"bear-absolute bear-inset-0 bear-bg-black/60 bear-backdrop-blur-sm bear-transition-opacity",
|
|
64
|
-
|
|
70
|
+
m ? "bear-opacity-0" : "bear-opacity-100"
|
|
65
71
|
),
|
|
66
|
-
style: { transitionDuration: `${
|
|
67
|
-
onClick:
|
|
72
|
+
style: { transitionDuration: `${N}ms` },
|
|
73
|
+
onClick: v ? o : void 0,
|
|
68
74
|
"aria-hidden": "true"
|
|
69
75
|
}
|
|
70
76
|
),
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
|
|
77
|
+
/* @__PURE__ */ f(
|
|
78
|
+
s,
|
|
73
79
|
{
|
|
80
|
+
ref: x,
|
|
74
81
|
role: "dialog",
|
|
82
|
+
tabIndex: -1,
|
|
75
83
|
"aria-modal": "true",
|
|
76
84
|
"aria-labelledby": b ? "bottom-sheet-title" : void 0,
|
|
77
85
|
className: i(
|
|
78
86
|
"Bear-BottomSheet bear-relative bear-w-full bear-rounded-t-2xl bear-shadow-2xl bear-transition-transform bear-duration-300",
|
|
79
87
|
"bear-flex bear-flex-col bear-min-h-0 bear-overflow-hidden",
|
|
80
88
|
"bear-bg-white dark:bear-bg-neutral-900 bear-border-t bear-border-neutral-200 dark:bear-border-neutral-700",
|
|
81
|
-
|
|
82
|
-
C && !
|
|
83
|
-
|
|
89
|
+
X[g],
|
|
90
|
+
C && !m ? "bear-translate-y-0" : "bear-translate-y-full",
|
|
91
|
+
T
|
|
84
92
|
),
|
|
85
93
|
children: [
|
|
86
|
-
_ && /* @__PURE__ */ r(
|
|
87
|
-
(b ||
|
|
88
|
-
|
|
94
|
+
_ && /* @__PURE__ */ r(h, { className: "bear-justify-center bear-pt-2 bear-pb-1", children: /* @__PURE__ */ r(s, { className: "bear-w-12 bear-h-1 bear-rounded-full bear-bg-neutral-300 dark:bear-bg-neutral-600", "aria-hidden": !0 }) }),
|
|
95
|
+
(b || y) && /* @__PURE__ */ f(
|
|
96
|
+
h,
|
|
89
97
|
{
|
|
90
98
|
className: i(
|
|
91
99
|
"bear-items-center bear-justify-between bear-px-4 bear-py-3 bear-border-b bear-border-neutral-200 dark:bear-border-neutral-700 bear-shrink-0",
|
|
92
|
-
|
|
100
|
+
B && "bear-sticky bear-top-0 bear-z-10 bear-bg-white dark:bear-bg-neutral-900"
|
|
93
101
|
),
|
|
94
102
|
children: [
|
|
95
103
|
b && /* @__PURE__ */ r(
|
|
96
|
-
|
|
104
|
+
K,
|
|
97
105
|
{
|
|
98
106
|
id: "bottom-sheet-title",
|
|
99
107
|
weight: "semibold",
|
|
@@ -101,18 +109,18 @@ const ae = (N) => {
|
|
|
101
109
|
children: b
|
|
102
110
|
}
|
|
103
111
|
),
|
|
104
|
-
|
|
112
|
+
y && /* @__PURE__ */ r(U, { variant: z, onClick: o, "aria-label": M, children: /* @__PURE__ */ r(Z, { className: "bear-w-5 bear-h-5" }) })
|
|
105
113
|
]
|
|
106
114
|
}
|
|
107
115
|
),
|
|
108
116
|
/* @__PURE__ */ r(
|
|
109
|
-
|
|
117
|
+
s,
|
|
110
118
|
{
|
|
111
119
|
className: i(
|
|
112
120
|
"bear-flex-1 bear-min-h-0 bear-p-4 bear-text-neutral-700 dark:bear-text-neutral-300",
|
|
113
|
-
|
|
121
|
+
A ? "bear-overflow-y-auto" : "bear-overflow-hidden"
|
|
114
122
|
),
|
|
115
|
-
children:
|
|
123
|
+
children: O
|
|
116
124
|
}
|
|
117
125
|
)
|
|
118
126
|
]
|
|
@@ -121,8 +129,8 @@ const ae = (N) => {
|
|
|
121
129
|
]
|
|
122
130
|
}
|
|
123
131
|
);
|
|
124
|
-
return
|
|
132
|
+
return R(L, document.body);
|
|
125
133
|
};
|
|
126
134
|
export {
|
|
127
|
-
|
|
135
|
+
be as BottomSheet
|
|
128
136
|
};
|