@forgedevstack/bear 1.3.1 → 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 +30 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -1
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.js +1 -1
- package/dist/components/Alert/Alert.cjs +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- 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/Avatar/Avatar.cjs +1 -1
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/BackTop/BackTop.cjs +1 -1
- package/dist/components/BackTop/BackTop.js +1 -1
- package/dist/components/Banner/Banner.const.cjs +1 -1
- package/dist/components/Banner/Banner.const.js +10 -9
- package/dist/components/Blockquote/Blockquote.cjs +1 -1
- package/dist/components/Blockquote/Blockquote.js +1 -1
- package/dist/components/BottomSheet/BottomSheet.cjs +1 -1
- package/dist/components/BottomSheet/BottomSheet.js +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Calendar/Calendar.cjs +1 -1
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Chart/BarChart.cjs +1 -1
- package/dist/components/Chart/BarChart.d.ts +1 -2
- package/dist/components/Chart/BarChart.js +74 -61
- package/dist/components/Chart/Chart.cjs +1 -1
- package/dist/components/Chart/Chart.const.cjs +1 -1
- package/dist/components/Chart/Chart.const.d.ts +24 -3
- package/dist/components/Chart/Chart.const.js +39 -16
- package/dist/components/Chart/Chart.d.ts +1 -5
- package/dist/components/Chart/Chart.js +23 -24
- package/dist/components/Chart/Chart.types.d.ts +12 -20
- package/dist/components/Chart/Chart.utils.cjs +1 -1
- package/dist/components/Chart/Chart.utils.d.ts +8 -18
- package/dist/components/Chart/Chart.utils.js +39 -3
- package/dist/components/Chart/FunnelChart.cjs +1 -0
- package/dist/components/Chart/FunnelChart.d.ts +2 -0
- package/dist/components/Chart/FunnelChart.js +61 -0
- package/dist/components/Chart/LineChart.cjs +1 -1
- package/dist/components/Chart/LineChart.d.ts +1 -2
- package/dist/components/Chart/LineChart.js +80 -70
- package/dist/components/Chart/PieChart.cjs +1 -1
- package/dist/components/Chart/PieChart.d.ts +1 -2
- package/dist/components/Chart/PieChart.js +140 -105
- package/dist/components/Chart/PieChart.types.d.ts +8 -0
- package/dist/components/Chart/RadarChart.cjs +1 -0
- package/dist/components/Chart/RadarChart.d.ts +2 -0
- package/dist/components/Chart/RadarChart.js +123 -0
- package/dist/components/Chart/index.d.ts +3 -1
- 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/CurrencyInput/CurrencyInput.cjs +1 -1
- package/dist/components/CurrencyInput/CurrencyInput.js +1 -1
- package/dist/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.cjs +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- 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 +4 -12
- package/dist/components/Drawer/Drawer.const.js +7 -55
- package/dist/components/Drawer/Drawer.d.ts +1 -2
- package/dist/components/Drawer/Drawer.js +78 -112
- package/dist/components/Drawer/Drawer.types.d.ts +20 -4
- package/dist/components/Drawer/Drawer.utils.d.ts +0 -4
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeader.cjs +1 -0
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeader.d.ts +2 -0
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeader.js +26 -0
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeader.types.d.ts +20 -0
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderClose.cjs +1 -0
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderClose.d.ts +2 -0
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderClose.js +17 -0
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderTitle.cjs +1 -0
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderTitle.d.ts +2 -0
- package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderTitle.js +9 -0
- package/dist/components/Drawer/components/DrawerHeader/index.d.ts +2 -0
- package/dist/components/Drawer/components/index.d.ts +1 -0
- package/dist/components/Drawer/helpers/DrawerOptionalHeader.cjs +1 -0
- package/dist/components/Drawer/helpers/DrawerOptionalHeader.d.ts +2 -0
- package/dist/components/Drawer/helpers/DrawerOptionalHeader.js +9 -0
- package/dist/components/Drawer/helpers/index.d.ts +1 -0
- package/dist/components/Drawer/hooks/index.d.ts +1 -0
- package/dist/components/Drawer/hooks/useDrawer.cjs +1 -0
- package/dist/components/Drawer/hooks/useDrawer.d.ts +2 -0
- package/dist/components/Drawer/hooks/useDrawer.js +50 -0
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Editable/Editable.cjs +1 -1
- package/dist/components/Editable/Editable.js +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/FileTree/FileTree.cjs +1 -1
- package/dist/components/FileTree/FileTree.js +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/Gauge/Gauge.cjs +1 -1
- package/dist/components/Gauge/Gauge.const.cjs +1 -1
- package/dist/components/Gauge/Gauge.const.d.ts +5 -0
- package/dist/components/Gauge/Gauge.const.js +11 -6
- package/dist/components/Gauge/Gauge.d.ts +1 -2
- package/dist/components/Gauge/Gauge.js +69 -45
- package/dist/components/Gauge/Gauge.types.d.ts +11 -2
- package/dist/components/Gauge/helpers/GaugeLinearBar.cjs +1 -0
- package/dist/components/Gauge/helpers/GaugeLinearBar.d.ts +2 -0
- package/dist/components/Gauge/helpers/GaugeLinearBar.js +40 -0
- package/dist/components/Heatmap/Heatmap.cjs +1 -1
- package/dist/components/Heatmap/Heatmap.const.cjs +1 -1
- package/dist/components/Heatmap/Heatmap.const.d.ts +2 -0
- package/dist/components/Heatmap/Heatmap.const.js +8 -6
- package/dist/components/Heatmap/Heatmap.js +51 -47
- package/dist/components/Heatmap/Heatmap.types.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +2 -39
- package/dist/components/Icon/Icon.types.d.ts +1 -17
- package/dist/components/Icon/icons/action.d.ts +1 -85
- package/dist/components/Icon/icons/bear.d.ts +1 -12
- package/dist/components/Icon/icons/charts.d.ts +1 -0
- package/dist/components/Icon/icons/commerce.d.ts +1 -25
- package/dist/components/Icon/icons/communication.d.ts +1 -48
- package/dist/components/Icon/icons/content.d.ts +1 -53
- package/dist/components/Icon/icons/device.d.ts +1 -27
- package/dist/components/Icon/icons/editor.d.ts +1 -54
- package/dist/components/Icon/icons/file.d.ts +1 -25
- package/dist/components/Icon/icons/index.d.ts +1 -9
- package/dist/components/Icon/icons/media.d.ts +1 -64
- package/dist/components/Icon/icons/misc.d.ts +1 -96
- package/dist/components/Icon/icons/navigation.d.ts +1 -56
- package/dist/components/Icon/icons/social.d.ts +1 -24
- package/dist/components/Icon/icons/status.d.ts +1 -61
- package/dist/components/Icon/index.d.ts +3 -605
- 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/ImageAnnotation/ImageAnnotation.cjs +1 -1
- package/dist/components/ImageAnnotation/ImageAnnotation.js +1 -1
- package/dist/components/JsonViewer/JsonViewer.cjs +1 -1
- package/dist/components/JsonViewer/JsonViewer.js +1 -1
- package/dist/components/MediaPlayer/MediaPlayer.cjs +1 -1
- package/dist/components/MediaPlayer/MediaPlayer.js +1 -1
- 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/PageNav/PageNav.cjs +1 -1
- package/dist/components/PageNav/PageNav.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +1 -1
- 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/PropsPlayground/PropsPlayground.cjs +1 -1
- package/dist/components/PropsPlayground/PropsPlayground.js +1 -1
- package/dist/components/Rating/components/StarIcon/StarIcon.cjs +1 -1
- package/dist/components/Rating/components/StarIcon/StarIcon.js +1 -1
- package/dist/components/Result/Result.utils.cjs +1 -1
- package/dist/components/Result/Result.utils.js +1 -1
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.cjs +1 -1
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.js +1 -1
- package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.cjs +1 -1
- package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.js +1 -1
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.cjs +1 -1
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.js +1 -1
- package/dist/components/RichEditor/components/ToolbarSignature/ToolbarSignature.cjs +1 -1
- package/dist/components/RichEditor/components/ToolbarSignature/ToolbarSignature.js +1 -1
- package/dist/components/RichEditor/helpers/IconRender.cjs +1 -1
- package/dist/components/RichEditor/helpers/IconRender.js +1 -1
- package/dist/components/RichEditor/helpers/toolbarItemRender.cjs +1 -1
- package/dist/components/RichEditor/helpers/toolbarItemRender.js +1 -1
- package/dist/components/RingProgress/RingProgress.cjs +1 -1
- package/dist/components/RingProgress/RingProgress.const.cjs +1 -1
- package/dist/components/RingProgress/RingProgress.const.d.ts +3 -0
- package/dist/components/RingProgress/RingProgress.const.js +7 -4
- package/dist/components/RingProgress/RingProgress.js +38 -37
- package/dist/components/RingProgress/RingProgress.types.d.ts +1 -0
- 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/Sidebar/Sidebar.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.js +16 -15
- package/dist/components/Sidebar/Sidebar.types.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.utils.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.utils.d.ts +2 -0
- package/dist/components/Sidebar/Sidebar.utils.js +11 -0
- package/dist/components/Sidebar/components/SidebarGroup/SidebarGroup.cjs +1 -1
- package/dist/components/Sidebar/components/SidebarGroup/SidebarGroup.js +1 -1
- package/dist/components/Sidebar/components/SidebarItem/SidebarItem.cjs +1 -1
- package/dist/components/Sidebar/components/SidebarItem/SidebarItem.js +55 -51
- package/dist/components/Sidebar/index.d.ts +1 -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/SliderRange/SliderRange.cjs +1 -1
- package/dist/components/SliderRange/SliderRange.js +19 -19
- package/dist/components/Sparkline/Sparkline.cjs +1 -1
- package/dist/components/Sparkline/Sparkline.const.cjs +1 -1
- package/dist/components/Sparkline/Sparkline.const.d.ts +5 -0
- package/dist/components/Sparkline/Sparkline.const.js +9 -4
- package/dist/components/Sparkline/Sparkline.d.ts +1 -2
- package/dist/components/Sparkline/Sparkline.js +75 -53
- package/dist/components/Sparkline/Sparkline.types.d.ts +2 -0
- package/dist/components/Sparkline/Sparkline.utils.cjs +1 -1
- package/dist/components/Sparkline/Sparkline.utils.d.ts +7 -12
- package/dist/components/Sparkline/Sparkline.utils.js +33 -20
- package/dist/components/Sparkline/index.d.ts +2 -2
- 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/Stepper/Stepper.cjs +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- 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/Tabs/TabList.cjs +1 -1
- package/dist/components/Tabs/TabList.js +1 -1
- 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/TimePicker/TimePicker.cjs +1 -1
- package/dist/components/TimePicker/TimePicker.js +1 -1
- package/dist/components/TimelineChart/TimelineChart.cjs +1 -1
- package/dist/components/TimelineChart/TimelineChart.const.cjs +1 -1
- package/dist/components/TimelineChart/TimelineChart.const.d.ts +3 -0
- package/dist/components/TimelineChart/TimelineChart.const.js +7 -4
- package/dist/components/TimelineChart/TimelineChart.js +56 -42
- package/dist/components/TimelineChart/TimelineChart.types.d.ts +1 -1
- 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/TreeSelect/TreeSelect.cjs +1 -1
- package/dist/components/TreeSelect/TreeSelect.js +1 -1
- package/dist/components/TreeSelect/components/TreeSelectExpandControl/TreeSelectExpandControl.cjs +1 -1
- package/dist/components/TreeSelect/components/TreeSelectExpandControl/TreeSelectExpandControl.js +1 -1
- package/dist/components/TreeView/TreeView.cjs +1 -1
- package/dist/components/TreeView/TreeView.js +3 -2
- package/dist/components/TreeView/components/TreeViewExpandControl/TreeViewExpandControl.cjs +1 -1
- package/dist/components/TreeView/components/TreeViewExpandControl/TreeViewExpandControl.js +1 -1
- package/dist/components/TreeView/components/TreeViewNodeIcon/TreeViewNodeIcon.cjs +1 -1
- package/dist/components/TreeView/components/TreeViewNodeIcon/TreeViewNodeIcon.js +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +39 -11
- package/dist/components/index.js +455 -420
- package/dist/constants/generals.const.cjs +1 -1
- package/dist/constants/generals.const.d.ts +50 -0
- package/dist/constants/generals.const.js +154 -108
- 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/icons.cjs +1 -1
- package/dist/icons.d.ts +2 -2
- package/dist/icons.js +1 -6
- package/dist/index.cjs +1 -1
- package/dist/index.js +597 -562
- 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/_drawer.css +213 -0
- package/dist/styles/_effects.css +8 -4
- package/dist/styles/_overlays.css +0 -1
- package/dist/styles/_skeleton.css +90 -0
- package/dist/styles/main.css +4 -0
- package/dist/styles.css +1089 -186
- package/package.json +5 -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/components/Icon/Icon.cjs +0 -1
- package/dist/components/Icon/Icon.const.d.ts +0 -1
- package/dist/components/Icon/Icon.js +0 -45
- package/dist/components/Icon/icons/action.cjs +0 -1
- package/dist/components/Icon/icons/action.js +0 -351
- package/dist/components/Icon/icons/bear.cjs +0 -1
- package/dist/components/Icon/icons/bear.js +0 -47
- package/dist/components/Icon/icons/commerce.cjs +0 -1
- package/dist/components/Icon/icons/commerce.js +0 -124
- package/dist/components/Icon/icons/communication.cjs +0 -1
- package/dist/components/Icon/icons/communication.js +0 -184
- package/dist/components/Icon/icons/content.cjs +0 -1
- package/dist/components/Icon/icons/content.js +0 -231
- package/dist/components/Icon/icons/device.cjs +0 -1
- package/dist/components/Icon/icons/device.js +0 -122
- package/dist/components/Icon/icons/editor.cjs +0 -1
- package/dist/components/Icon/icons/editor.js +0 -285
- package/dist/components/Icon/icons/file.cjs +0 -1
- package/dist/components/Icon/icons/file.js +0 -120
- package/dist/components/Icon/icons/media.cjs +0 -1
- package/dist/components/Icon/icons/media.js +0 -306
- package/dist/components/Icon/icons/misc.cjs +0 -1
- package/dist/components/Icon/icons/misc.js +0 -450
- package/dist/components/Icon/icons/navigation.cjs +0 -1
- package/dist/components/Icon/icons/navigation.js +0 -215
- package/dist/components/Icon/icons/social.cjs +0 -1
- package/dist/components/Icon/icons/social.js +0 -89
- package/dist/components/Icon/icons/status.cjs +0 -1
- package/dist/components/Icon/icons/status.js +0 -271
- package/dist/components/Icon/index.cjs +0 -1
- package/dist/components/Icon/index.js +0 -79
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { DEFAULT_DENSITY as
|
|
4
|
-
import { defaultDarkTheme as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as Ft } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as Nt, useContext as j, useState as l, useMemo as O, useCallback as b, startTransition as Vt, useEffect as R } from "react";
|
|
3
|
+
import { DEFAULT_DENSITY as ft, DEFAULT_DIRECTION as Ct, DENSITY_CSS_VAR as Pt, DENSITY_SCALE_COMPACT as Ut, DENSITY_SCALE_COMFORTABLE as Yt } from "./bearProvider.const.js";
|
|
4
|
+
import { defaultDarkTheme as P, defaultLightTheme as ut } from "./defaultTheme.js";
|
|
5
|
+
import { COLOR_SCHEME_LIGHT as D, COLOR_SCHEME_SYSTEM as U, COLOR_SCHEME_DARK as Y, PREFERS_COLOR_SCHEME_DARK as yt, PREFERS_REDUCED_MOTION as mt, DOCUMENT_CLASS_REDUCED_MOTION as zt, BOOLEAN_FALSE as Wt } from "../constants/generals.const.js";
|
|
6
|
+
const L = Nt(null), Gt = "bear-theme-mode", Qt = ["primary", "secondary", "success", "warning", "danger", "info", "ghost", "outline", "error"], ht = (t) => {
|
|
7
|
+
const o = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
8
|
+
return o ? {
|
|
9
|
+
r: parseInt(o[1], 16),
|
|
10
|
+
g: parseInt(o[2], 16),
|
|
11
|
+
b: parseInt(o[3], 16)
|
|
11
12
|
} : null;
|
|
12
|
-
},
|
|
13
|
+
}, gt = (t, o, i) => "#" + [t, o, i].map((a) => {
|
|
13
14
|
const s = Math.max(0, Math.min(255, Math.round(a))).toString(16);
|
|
14
15
|
return s.length === 1 ? "0" + s : s;
|
|
15
|
-
}).join(""),
|
|
16
|
-
const
|
|
17
|
-
if (!
|
|
18
|
-
const a =
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
}).join(""), x = (t, o) => {
|
|
17
|
+
const i = ht(t);
|
|
18
|
+
if (!i) return t;
|
|
19
|
+
const a = o / 100;
|
|
20
|
+
return gt(
|
|
21
|
+
i.r + (255 - i.r) * a,
|
|
22
|
+
i.g + (255 - i.g) * a,
|
|
23
|
+
i.b + (255 - i.b) * a
|
|
23
24
|
);
|
|
24
|
-
},
|
|
25
|
-
const
|
|
26
|
-
if (!
|
|
27
|
-
const a = 1 -
|
|
28
|
-
return
|
|
29
|
-
},
|
|
30
|
-
50:
|
|
31
|
-
100:
|
|
32
|
-
200:
|
|
33
|
-
300:
|
|
34
|
-
400:
|
|
25
|
+
}, _ = (t, o) => {
|
|
26
|
+
const i = ht(t);
|
|
27
|
+
if (!i) return t;
|
|
28
|
+
const a = 1 - o / 100;
|
|
29
|
+
return gt(i.r * a, i.g * a, i.b * a);
|
|
30
|
+
}, qt = (t) => ({
|
|
31
|
+
50: x(t, 95),
|
|
32
|
+
100: x(t, 85),
|
|
33
|
+
200: x(t, 70),
|
|
34
|
+
300: x(t, 50),
|
|
35
|
+
400: x(t, 25),
|
|
35
36
|
500: t,
|
|
36
|
-
600:
|
|
37
|
-
700:
|
|
38
|
-
800:
|
|
39
|
-
900:
|
|
40
|
-
950:
|
|
41
|
-
}),
|
|
37
|
+
600: _(t, 10),
|
|
38
|
+
700: _(t, 25),
|
|
39
|
+
800: _(t, 40),
|
|
40
|
+
900: _(t, 55),
|
|
41
|
+
950: _(t, 70)
|
|
42
|
+
}), Jt = (t) => typeof t != "string" ? !1 : t.startsWith("#") || t.startsWith("rgb") || /^[a-z]+$/i.test(t), bt = {
|
|
42
43
|
red: "#ef4444",
|
|
43
44
|
blue: "#3b82f6",
|
|
44
45
|
green: "#22c55e",
|
|
@@ -62,212 +63,226 @@ const w = kt(null), At = "bear-theme-mode", jt = ["primary", "secondary", "succe
|
|
|
62
63
|
stone: "#78716c",
|
|
63
64
|
white: "#ffffff",
|
|
64
65
|
black: "#000000"
|
|
65
|
-
},
|
|
66
|
-
const
|
|
67
|
-
return
|
|
66
|
+
}, Kt = (t) => {
|
|
67
|
+
const o = t.toLowerCase();
|
|
68
|
+
return bt[o] ? bt[o] : (t.startsWith("#"), t);
|
|
68
69
|
};
|
|
69
|
-
function
|
|
70
|
-
if (!
|
|
71
|
-
const
|
|
72
|
-
for (const
|
|
73
|
-
if (Object.prototype.hasOwnProperty.call(s,
|
|
74
|
-
const n = s[
|
|
75
|
-
n && typeof n == "object" && !Array.isArray(n) &&
|
|
76
|
-
|
|
70
|
+
function I(t, o) {
|
|
71
|
+
if (!o) return t;
|
|
72
|
+
const i = { ...t }, a = t, s = o, c = i;
|
|
73
|
+
for (const p in s)
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) {
|
|
75
|
+
const n = s[p], r = a[p];
|
|
76
|
+
n && typeof n == "object" && !Array.isArray(n) && r && typeof r == "object" && !Array.isArray(r) ? c[p] = I(
|
|
77
|
+
r,
|
|
77
78
|
n
|
|
78
|
-
) : n !== void 0 && (
|
|
79
|
+
) : n !== void 0 && (c[p] = n);
|
|
79
80
|
}
|
|
80
|
-
return
|
|
81
|
+
return i;
|
|
81
82
|
}
|
|
82
|
-
const
|
|
83
|
-
const s = [],
|
|
84
|
-
Object.entries(
|
|
85
|
-
s.push(`--bear-${n}-${
|
|
83
|
+
const pt = (t, o, i, a) => {
|
|
84
|
+
const s = [], c = (n, r) => {
|
|
85
|
+
Object.entries(r).forEach(([T, v]) => {
|
|
86
|
+
s.push(`--bear-${n}-${T}:${v}`);
|
|
86
87
|
});
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}), Object.entries(
|
|
91
|
-
s.push(`--bear-${n}-bg:${
|
|
92
|
-
}), s.push(`--bear-font-sans:${t.typography.fontFamily.sans}`), s.push(`--bear-font-mono:${t.typography.fontFamily.mono}`), Object.entries(t.shadows).forEach(([n,
|
|
93
|
-
s.push(`--bear-shadow-${n}:${
|
|
94
|
-
}), Object.entries(t.borderRadius).forEach(([n,
|
|
95
|
-
s.push(`--bear-radius-${n}:${
|
|
96
|
-
}), Object.entries(t.spacing).forEach(([n,
|
|
97
|
-
s.push(`--bear-spacing-${n}:${
|
|
89
|
+
c("primary", t.colors.primary), c("secondary", t.colors.secondary), c("success", t.colors.success), c("warning", t.colors.warning), c("danger", t.colors.danger), c("info", t.colors.info), c("neutral", t.colors.neutral), s.push(`--bear-bg-primary:${t.colors.background.primary}`), s.push(`--bear-bg-secondary:${t.colors.background.secondary}`), s.push(`--bear-bg-tertiary:${t.colors.background.tertiary}`), s.push(`--bear-text-primary:${t.colors.text.primary}`), s.push(`--bear-text-secondary:${t.colors.text.secondary}`), s.push(`--bear-text-muted:${t.colors.text.muted}`), s.push(`--bear-text-inverted:${t.colors.text.inverted}`), s.push(`--bear-border-default:${t.colors.border.default}`), s.push(`--bear-border-subtle:${t.colors.border.subtle}`), s.push(`--bear-border-strong:${t.colors.border.strong}`), o != null && o.Button && Object.entries(o.Button).forEach(([n, r]) => {
|
|
90
|
+
r && (r.bg && s.push(`--bear-btn-${n}-bg:${r.bg}`), r.bgHover && s.push(`--bear-btn-${n}-bg-hover:${r.bgHover}`), r.bgActive && s.push(`--bear-btn-${n}-bg-active:${r.bgActive}`), r.bgDisabled && s.push(`--bear-btn-${n}-bg-disabled:${r.bgDisabled}`), r.text && s.push(`--bear-btn-${n}-text:${r.text}`), r.textDisabled && s.push(`--bear-btn-${n}-text-disabled:${r.textDisabled}`), r.border && s.push(`--bear-btn-${n}-border:${r.border}`), r.borderHover && s.push(`--bear-btn-${n}-border-hover:${r.borderHover}`), r.ring && s.push(`--bear-btn-${n}-ring:${r.ring}`));
|
|
91
|
+
}), Object.entries(i).forEach(([n, r]) => {
|
|
92
|
+
s.push(`--bear-${n}-bg:${r.bg}`), r.bgHover && s.push(`--bear-${n}-bg-hover:${r.bgHover}`), r.bgActive && s.push(`--bear-${n}-bg-active:${r.bgActive}`), r.text && s.push(`--bear-${n}-text:${r.text}`), r.border && s.push(`--bear-${n}-border:${r.border}`), r.ring && s.push(`--bear-${n}-ring:${r.ring}`);
|
|
93
|
+
}), s.push(`--bear-font-sans:${t.typography.fontFamily.sans}`), s.push(`--bear-font-mono:${t.typography.fontFamily.mono}`), Object.entries(t.shadows).forEach(([n, r]) => {
|
|
94
|
+
s.push(`--bear-shadow-${n}:${r}`);
|
|
95
|
+
}), Object.entries(t.borderRadius).forEach(([n, r]) => {
|
|
96
|
+
s.push(`--bear-radius-${n}:${r}`);
|
|
97
|
+
}), Object.entries(t.spacing).forEach(([n, r]) => {
|
|
98
|
+
s.push(`--bear-spacing-${n}:${r}`);
|
|
98
99
|
});
|
|
99
|
-
const
|
|
100
|
-
return s.push(`${
|
|
101
|
-
},
|
|
100
|
+
const p = a === "compact" ? Ut : Yt;
|
|
101
|
+
return s.push(`${Pt}:${p}`), s.join(";");
|
|
102
|
+
}, C = () => typeof window > "u" ? D : window.matchMedia(yt).matches ? Y : D, Xt = (t) => {
|
|
103
|
+
if (typeof window > "u")
|
|
104
|
+
return null;
|
|
105
|
+
const o = localStorage.getItem(t);
|
|
106
|
+
return o === D || o === Y || o === U ? o : null;
|
|
107
|
+
}, lt = () => typeof window > "u" ? Wt : window.matchMedia(mt).matches, ne = ({
|
|
102
108
|
children: t,
|
|
103
|
-
defaultMode:
|
|
104
|
-
mode:
|
|
109
|
+
defaultMode: o = D,
|
|
110
|
+
mode: i,
|
|
105
111
|
onModeChange: a,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
defaultColorScheme: s,
|
|
113
|
+
colorScheme: c,
|
|
114
|
+
onColorSchemeChange: p,
|
|
115
|
+
reducedMotion: n,
|
|
116
|
+
direction: r = Ct,
|
|
117
|
+
density: T = ft,
|
|
118
|
+
theme: v,
|
|
119
|
+
components: $t = {},
|
|
120
|
+
defaultProps: Et = {},
|
|
121
|
+
variants: Ot = {},
|
|
122
|
+
customVariants: Dt = {},
|
|
123
|
+
customTypography: St = {},
|
|
124
|
+
persistPreference: H = !0,
|
|
125
|
+
storageKey: F = Gt
|
|
116
126
|
}) => {
|
|
117
|
-
const [
|
|
118
|
-
if (
|
|
119
|
-
return
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (
|
|
125
|
-
return
|
|
127
|
+
const [wt, z] = l(() => {
|
|
128
|
+
if (c !== void 0)
|
|
129
|
+
return c;
|
|
130
|
+
if (i !== void 0)
|
|
131
|
+
return i;
|
|
132
|
+
if (H) {
|
|
133
|
+
const e = Xt(F);
|
|
134
|
+
if (e)
|
|
135
|
+
return e;
|
|
126
136
|
}
|
|
127
|
-
return
|
|
128
|
-
}),
|
|
129
|
-
if (!
|
|
137
|
+
return s ?? o;
|
|
138
|
+
}), [xt, _t] = l(C), [Lt, kt] = l(lt), k = c ?? wt, y = i ?? (k === U ? xt : k), A = n ?? Lt, [S, At] = l(r), [m, Mt] = l(T), [M, Rt] = l(v || {}), [W, It] = l($t), [G] = l(Et), [h, jt] = l(Ot), [f, Bt] = l(Dt), [g, Tt] = l(St), $ = O(() => {
|
|
139
|
+
if (!M || Object.keys(M).length === 0)
|
|
130
140
|
return {};
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
133
|
-
const
|
|
134
|
-
for (const
|
|
135
|
-
const
|
|
136
|
-
if (
|
|
137
|
-
const
|
|
138
|
-
|
|
141
|
+
const e = { ...M };
|
|
142
|
+
if (e.colors) {
|
|
143
|
+
const d = ["primary", "secondary", "success", "warning", "danger", "info", "neutral"];
|
|
144
|
+
for (const u of d) {
|
|
145
|
+
const w = e.colors[u];
|
|
146
|
+
if (Jt(w)) {
|
|
147
|
+
const Ht = Kt(w);
|
|
148
|
+
e.colors[u] = qt(Ht);
|
|
139
149
|
}
|
|
140
150
|
}
|
|
141
151
|
}
|
|
142
|
-
return
|
|
143
|
-
}, [
|
|
144
|
-
() =>
|
|
145
|
-
[
|
|
146
|
-
),
|
|
147
|
-
() =>
|
|
148
|
-
[
|
|
149
|
-
),
|
|
150
|
-
|
|
151
|
-
}, [
|
|
152
|
-
|
|
153
|
-
}, []),
|
|
154
|
-
|
|
155
|
-
}, []),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
Dt(() => {
|
|
162
|
-
T((r) => {
|
|
163
|
-
const c = r === "light" ? "dark" : "light";
|
|
164
|
-
return a == null || a(c), typeof window < "u" && k && localStorage.setItem(D, c), c;
|
|
165
|
-
});
|
|
152
|
+
return e;
|
|
153
|
+
}, [M]), N = O(() => Object.keys($).length === 0 ? ut : I(ut, $), [$]), V = O(() => Object.keys($).length === 0 ? P : I(P, $), [$]), Q = y === "dark" ? V : N, q = O(
|
|
154
|
+
() => pt(N, h, f, m),
|
|
155
|
+
[N, h, f, m]
|
|
156
|
+
), J = O(
|
|
157
|
+
() => pt(V, h, f, m),
|
|
158
|
+
[V, h, f, m]
|
|
159
|
+
), E = b((e) => {
|
|
160
|
+
c === void 0 && z(e), p == null || p(e), typeof window < "u" && H && localStorage.setItem(F, e), e !== U ? a == null || a(e) : a == null || a(C());
|
|
161
|
+
}, [c, p, a, H, F]), K = b((e) => {
|
|
162
|
+
E(e);
|
|
163
|
+
}, [E]), X = b((e) => {
|
|
164
|
+
At(e);
|
|
165
|
+
}, []), Z = b((e) => {
|
|
166
|
+
Mt(e);
|
|
167
|
+
}, []), tt = b(() => {
|
|
168
|
+
const e = y === D ? Y : D;
|
|
169
|
+
Vt(() => {
|
|
170
|
+
E(e);
|
|
166
171
|
});
|
|
167
|
-
}, [
|
|
168
|
-
|
|
169
|
-
}, []),
|
|
170
|
-
|
|
171
|
-
...
|
|
172
|
-
[
|
|
173
|
-
...
|
|
174
|
-
...
|
|
172
|
+
}, [y, E]), et = b((e) => {
|
|
173
|
+
Rt((d) => I(d, e));
|
|
174
|
+
}, []), rt = b((e, d) => {
|
|
175
|
+
It((u) => ({
|
|
176
|
+
...u,
|
|
177
|
+
[e]: {
|
|
178
|
+
...u[e] || {},
|
|
179
|
+
...d
|
|
175
180
|
}
|
|
176
181
|
}));
|
|
177
|
-
}, []),
|
|
178
|
-
|
|
179
|
-
...
|
|
180
|
-
[
|
|
181
|
-
...
|
|
182
|
-
...
|
|
182
|
+
}, []), st = b((e, d) => {
|
|
183
|
+
jt((u) => ({
|
|
184
|
+
...u,
|
|
185
|
+
[e]: {
|
|
186
|
+
...u[e] || {},
|
|
187
|
+
...d
|
|
183
188
|
}
|
|
184
189
|
}));
|
|
185
|
-
}, []),
|
|
186
|
-
|
|
187
|
-
...
|
|
188
|
-
[
|
|
190
|
+
}, []), ot = b((e) => Qt.includes(e) || e in f, [f]), nt = b((e) => f[e], [f]), it = b((e, d) => {
|
|
191
|
+
Bt((u) => ({
|
|
192
|
+
...u,
|
|
193
|
+
[e]: d
|
|
189
194
|
}));
|
|
190
|
-
}, []),
|
|
191
|
-
|
|
192
|
-
...
|
|
193
|
-
[
|
|
195
|
+
}, []), at = b((e) => e in g, [g]), ct = b((e) => g[e], [g]), dt = b((e, d) => {
|
|
196
|
+
Tt((u) => ({
|
|
197
|
+
...u,
|
|
198
|
+
[e]: d
|
|
194
199
|
}));
|
|
195
200
|
}, []);
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}, [
|
|
201
|
+
R(() => {
|
|
202
|
+
c !== void 0 && z(c);
|
|
203
|
+
}, [c]), R(() => {
|
|
204
|
+
if (typeof window > "u")
|
|
205
|
+
return;
|
|
206
|
+
const e = window.matchMedia(yt), d = window.matchMedia(mt), u = () => _t(C()), w = () => kt(lt());
|
|
207
|
+
return e.addEventListener("change", u), d.addEventListener("change", w), () => {
|
|
208
|
+
e.removeEventListener("change", u), d.removeEventListener("change", w);
|
|
209
|
+
};
|
|
210
|
+
}, []), R(() => {
|
|
199
211
|
if (typeof document > "u") return;
|
|
200
|
-
const
|
|
201
|
-
let
|
|
202
|
-
|
|
203
|
-
}, [
|
|
212
|
+
const e = "bear-theme-vars";
|
|
213
|
+
let d = document.getElementById(e);
|
|
214
|
+
d || (d = document.createElement("style"), d.id = e, document.head.appendChild(d)), d.textContent = `:root.bear-light,:root:not(.dark){${q}}:root.bear-dark,:root.dark,.dark{${J}}`;
|
|
215
|
+
}, [q, J]), R(() => {
|
|
204
216
|
if (typeof document > "u") return;
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
}, [
|
|
208
|
-
const
|
|
209
|
-
theme:
|
|
210
|
-
mode:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
217
|
+
const e = document.documentElement;
|
|
218
|
+
e.classList.toggle("dark", y === "dark"), e.classList.remove("bear-light", "bear-dark"), e.classList.add(y === "dark" ? "bear-dark" : "bear-light"), e.setAttribute("dir", S), e.classList.toggle("bear-rtl", S === "rtl"), e.classList.toggle("bear-density-compact", m === "compact"), e.classList.toggle(zt, A);
|
|
219
|
+
}, [y, S, m, A]);
|
|
220
|
+
const vt = O(() => ({
|
|
221
|
+
theme: Q,
|
|
222
|
+
mode: y,
|
|
223
|
+
colorScheme: k,
|
|
224
|
+
setColorScheme: E,
|
|
225
|
+
reducedMotion: A,
|
|
226
|
+
setMode: K,
|
|
227
|
+
toggleMode: tt,
|
|
228
|
+
updateTheme: et,
|
|
229
|
+
direction: S,
|
|
230
|
+
setDirection: X,
|
|
231
|
+
density: m,
|
|
232
|
+
setDensity: Z,
|
|
233
|
+
defaultProps: G,
|
|
234
|
+
components: W,
|
|
235
|
+
variants: h,
|
|
236
|
+
customVariants: f,
|
|
237
|
+
hasVariant: ot,
|
|
238
|
+
getVariant: nt,
|
|
239
|
+
addVariant: it,
|
|
240
|
+
customTypography: g,
|
|
241
|
+
hasTypography: at,
|
|
242
|
+
getTypography: ct,
|
|
243
|
+
addTypography: dt,
|
|
244
|
+
registerComponent: rt,
|
|
245
|
+
registerVariant: st
|
|
246
|
+
}), [Q, y, k, E, A, K, tt, et, S, X, m, Z, G, W, h, f, ot, nt, it, g, at, ct, dt, rt, st]);
|
|
247
|
+
return /* @__PURE__ */ Ft(L.Provider, { value: vt, children: t });
|
|
233
248
|
}, B = () => {
|
|
234
|
-
const t =
|
|
249
|
+
const t = j(L);
|
|
235
250
|
if (!t)
|
|
236
251
|
throw new Error("useBear must be used within a BearProvider");
|
|
237
252
|
return t;
|
|
238
|
-
},
|
|
253
|
+
}, ie = () => {
|
|
239
254
|
const { theme: t } = B();
|
|
240
255
|
return t;
|
|
241
|
-
},
|
|
242
|
-
const t =
|
|
243
|
-
return t ? t.theme :
|
|
244
|
-
},
|
|
245
|
-
const { mode: t, setMode:
|
|
246
|
-
return { mode: t, setMode:
|
|
247
|
-
},
|
|
248
|
-
const { direction: t, setDirection:
|
|
249
|
-
return { direction: t, setDirection:
|
|
250
|
-
},
|
|
251
|
-
const t =
|
|
252
|
-
return t ? { direction: t.direction, setDirection: t.setDirection } : { direction: "ltr", setDirection: (
|
|
256
|
+
}, ae = () => {
|
|
257
|
+
const t = j(L);
|
|
258
|
+
return t ? t.theme : P;
|
|
259
|
+
}, ce = () => {
|
|
260
|
+
const { mode: t, setMode: o, toggleMode: i, colorScheme: a, setColorScheme: s, reducedMotion: c } = B();
|
|
261
|
+
return { mode: t, setMode: o, toggleMode: i, colorScheme: a, setColorScheme: s, reducedMotion: c };
|
|
262
|
+
}, de = () => {
|
|
263
|
+
const { direction: t, setDirection: o } = B();
|
|
264
|
+
return { direction: t, setDirection: o };
|
|
265
|
+
}, ue = () => {
|
|
266
|
+
const t = j(L);
|
|
267
|
+
return t ? { direction: t.direction, setDirection: t.setDirection } : { direction: "ltr", setDirection: (o) => {
|
|
253
268
|
} };
|
|
254
|
-
},
|
|
255
|
-
const { density: t, setDensity:
|
|
256
|
-
return { density: t, setDensity:
|
|
257
|
-
},
|
|
258
|
-
const t =
|
|
259
|
-
return t ? { density: t.density, setDensity: t.setDensity } : { density:
|
|
269
|
+
}, be = () => {
|
|
270
|
+
const { density: t, setDensity: o } = B();
|
|
271
|
+
return { density: t, setDensity: o };
|
|
272
|
+
}, pe = () => {
|
|
273
|
+
const t = j(L);
|
|
274
|
+
return t ? { density: t.density, setDensity: t.setDensity } : { density: ft, setDensity: (o) => {
|
|
260
275
|
} };
|
|
261
276
|
};
|
|
262
277
|
export {
|
|
263
|
-
|
|
264
|
-
|
|
278
|
+
L as BearContext,
|
|
279
|
+
ne as BearProvider,
|
|
265
280
|
B as useBear,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
281
|
+
be as useBearDensity,
|
|
282
|
+
pe as useBearDensityOptional,
|
|
283
|
+
de as useBearDirection,
|
|
284
|
+
ue as useBearDirectionOptional,
|
|
285
|
+
ce as useBearMode,
|
|
286
|
+
ie as useBearTheme,
|
|
287
|
+
ae as useBearThemeOptional
|
|
273
288
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { BearDirection, BearDensity } from './bearProvider.const';
|
|
2
2
|
export type { BearDirection, BearDensity };
|
|
3
|
+
export type BearColorScheme = 'light' | 'dark' | 'system';
|
|
4
|
+
export type BearResolvedMode = 'light' | 'dark';
|
|
3
5
|
export interface BearProviderConfig {
|
|
4
6
|
direction?: BearDirection;
|
|
5
7
|
density?: BearDensity;
|
|
8
|
+
colorScheme?: BearColorScheme;
|
|
9
|
+
reducedMotion?: boolean;
|
|
6
10
|
}
|
package/dist/context/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { BearProvider, useBear, useBearTheme, useBearThemeOptional, useBearMode, useBearDirection, useBearDirectionOptional, useBearDensity, useBearDensityOptional } from './BearProvider';
|
|
2
2
|
export { defaultLightTheme, defaultDarkTheme } from './defaultTheme';
|
|
3
|
-
export type { BearDirection, BearDensity } from './bearProvider.types';
|
|
3
|
+
export type { BearColorScheme, BearDirection, BearDensity, BearResolvedMode } from './bearProvider.types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { useFixedAnchorPosition } from './useFixedAnchorPosition';
|
|
2
2
|
export type { OverlayCloseEffect, OverlayCoords, OverlayEffectConfig, OverlayEffectProps, OverlayMotionEffect, OverlayOpenEffect, OverlayPlacement, UseFixedAnchorPositionOptions, UseFixedAnchorPositionReturn, } from './useFixedAnchorPosition.types';
|
|
3
3
|
export { resolveOverlayEffects } from './useFixedAnchorPosition.utils';
|
|
4
|
-
export { ANCHOR_DEFAULT_Z_INDEX, ANCHOR_EDGE_PAD_PX, ANCHOR_OFFSET_PX, OVERLAY_OPEN_EFFECT_DEFAULT, OVERLAY_OPEN_EFFECT_FADE, OVERLAY_OPEN_EFFECT_NONE, OVERLAY_OPEN_EFFECT_SCALE, OVERLAY_OPEN_EFFECT_SLIDE_DOWN, VISIBILITY_VISIBLE, } from './useFixedAnchorPosition.const';
|
|
4
|
+
export { ANCHOR_DEFAULT_Z_INDEX, ANCHOR_EDGE_PAD_PX, ANCHOR_OFFSET_PX, OVERLAY_OPEN_EFFECT_DEFAULT, OVERLAY_OPEN_EFFECT_FADE, OVERLAY_OPEN_EFFECT_NONE, OVERLAY_OPEN_EFFECT_FOLD, OVERLAY_OPEN_EFFECT_SCALE, OVERLAY_OPEN_EFFECT_SLIDE_DOWN, VISIBILITY_VISIBLE, } from './useFixedAnchorPosition.const';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=8,O=8,T=11e3,N="top",L="bottom",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=8,O=8,T=11e3,N="top",L="bottom",F="end",A="bottom-start",I="hidden",o="visible",t="fixed",P="scroll",C="resize",D="none",s="fade",n="slide-down",c="scale",E="fold",R=E;exports.ANCHOR_DEFAULT_Z_INDEX=T;exports.ANCHOR_EDGE_PAD_PX=O;exports.ANCHOR_OFFSET_PX=_;exports.DEFAULT_PLACEMENT=A;exports.OVERLAY_OPEN_EFFECT_DEFAULT=R;exports.OVERLAY_OPEN_EFFECT_FADE=s;exports.OVERLAY_OPEN_EFFECT_FOLD=E;exports.OVERLAY_OPEN_EFFECT_NONE=D;exports.OVERLAY_OPEN_EFFECT_SCALE=c;exports.OVERLAY_OPEN_EFFECT_SLIDE_DOWN=n;exports.PLACEMENT_BOTTOM=L;exports.PLACEMENT_END=F;exports.PLACEMENT_TOP=N;exports.POSITION_FIXED=t;exports.RESIZE_EVENT=C;exports.SCROLL_EVENT=P;exports.VISIBILITY_HIDDEN=I;exports.VISIBILITY_VISIBLE=o;
|
|
@@ -14,4 +14,5 @@ export declare const OVERLAY_OPEN_EFFECT_NONE = "none";
|
|
|
14
14
|
export declare const OVERLAY_OPEN_EFFECT_FADE = "fade";
|
|
15
15
|
export declare const OVERLAY_OPEN_EFFECT_SLIDE_DOWN = "slide-down";
|
|
16
16
|
export declare const OVERLAY_OPEN_EFFECT_SCALE = "scale";
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const OVERLAY_OPEN_EFFECT_FOLD = "fold";
|
|
18
|
+
export declare const OVERLAY_OPEN_EFFECT_DEFAULT = "fold";
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
const _ = 8, o = 8, t = 11e3,
|
|
1
|
+
const _ = 8, o = 8, t = 11e3, O = "top", s = "bottom", n = "end", N = "bottom-start", T = "hidden", L = "visible", c = "fixed", F = "scroll", A = "resize", I = "none", C = "fade", P = "slide-down", D = "scale", E = "fold", e = E;
|
|
2
2
|
export {
|
|
3
3
|
t as ANCHOR_DEFAULT_Z_INDEX,
|
|
4
4
|
o as ANCHOR_EDGE_PAD_PX,
|
|
5
5
|
_ as ANCHOR_OFFSET_PX,
|
|
6
6
|
N as DEFAULT_PLACEMENT,
|
|
7
|
-
|
|
7
|
+
e as OVERLAY_OPEN_EFFECT_DEFAULT,
|
|
8
8
|
C as OVERLAY_OPEN_EFFECT_FADE,
|
|
9
|
+
E as OVERLAY_OPEN_EFFECT_FOLD,
|
|
9
10
|
I as OVERLAY_OPEN_EFFECT_NONE,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
D as OVERLAY_OPEN_EFFECT_SCALE,
|
|
12
|
+
P as OVERLAY_OPEN_EFFECT_SLIDE_DOWN,
|
|
13
|
+
s as PLACEMENT_BOTTOM,
|
|
14
|
+
n as PLACEMENT_END,
|
|
15
|
+
O as PLACEMENT_TOP,
|
|
16
|
+
c as POSITION_FIXED,
|
|
17
|
+
A as RESIZE_EVENT,
|
|
18
|
+
F as SCROLL_EVENT,
|
|
18
19
|
T as VISIBILITY_HIDDEN,
|
|
19
|
-
|
|
20
|
+
L as VISIBILITY_VISIBLE
|
|
20
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, RefObject } from 'react';
|
|
2
|
-
export type OverlayMotionEffect = 'none' | 'fade' | 'slide-down' | 'scale';
|
|
2
|
+
export type OverlayMotionEffect = 'none' | 'fade' | 'slide-down' | 'scale' | 'fold';
|
|
3
3
|
export type OverlayOpenEffect = OverlayMotionEffect;
|
|
4
4
|
export type OverlayCloseEffect = OverlayMotionEffect;
|
|
5
5
|
export interface OverlayEffectConfig {
|
package/dist/icons.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@forgedevstack/bear-icons");Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type { IconProps } from '
|
|
1
|
+
export * from '@forgedevstack/bear-icons';
|
|
2
|
+
export type { IconProps, IconSize } from '@forgedevstack/bear-icons';
|