@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,67 +1,71 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { ChevronDownIcon as
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as N } from "react";
|
|
3
|
+
import { cn as b } from "../../../../utils/cn.js";
|
|
4
|
+
import { ChevronDownIcon as D } from "@forgedevstack/bear-icons";
|
|
5
|
+
import { SIDEBAR_ITEM_DISABLED_CLASSES as v, SIDEBAR_ITEM_ACTIVE_BY_VARIANT as T, SIDEBAR_ITEM_INACTIVE_CLASSES as u, SIDEBAR_ITEM_BASE_CLASSES as R, SIDEBAR_PADDING_BASE as _, SIDEBAR_ICON_SIZE as x, SIDEBAR_DEPTH_INDENT as w } from "../../Sidebar.const.js";
|
|
6
|
+
import { sidebarItemContainsId as g } from "../../Sidebar.utils.js";
|
|
7
|
+
const L = (S) => {
|
|
7
8
|
const {
|
|
8
9
|
item: e,
|
|
9
|
-
isActive:
|
|
10
|
-
collapsed:
|
|
11
|
-
depth:
|
|
12
|
-
onClick:
|
|
13
|
-
activeVariant:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
!r && /* @__PURE__ */ n(d, { children: [
|
|
19
|
-
/* @__PURE__ */ a("span", { className: "Bear-Sidebar__item-label bear-flex-1 bear-truncate", children: e.label }),
|
|
20
|
-
e.badge && /* @__PURE__ */ a("span", { className: "Bear-Sidebar__item-badge bear-ml-auto", children: e.badge }),
|
|
21
|
-
t && /* @__PURE__ */ a(
|
|
22
|
-
N,
|
|
23
|
-
{
|
|
24
|
-
size: v,
|
|
25
|
-
className: o(
|
|
26
|
-
"Bear-Sidebar__item-chevron bear-ml-1 bear-transition-transform bear-duration-200",
|
|
27
|
-
c && "bear-rotate-180"
|
|
28
|
-
)
|
|
29
|
-
}
|
|
30
|
-
)
|
|
31
|
-
] })
|
|
32
|
-
] }), A = T[S], f = o(
|
|
10
|
+
isActive: I,
|
|
11
|
+
collapsed: a,
|
|
12
|
+
depth: c = 0,
|
|
13
|
+
onClick: t,
|
|
14
|
+
activeVariant: d = "fill",
|
|
15
|
+
activeItemId: s
|
|
16
|
+
} = S, m = e.children ?? [], n = m.length > 0, [o, h] = N(() => g(e, s)), E = a ? _ : _ + c * w, B = () => {
|
|
17
|
+
n && h((i) => !i), e.onClick && e.onClick(), t == null || t(e);
|
|
18
|
+
}, p = n && o && !a, f = T[d], A = b(
|
|
33
19
|
"Bear-Sidebar__item",
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
e.disabled && `Bear-Sidebar__item--disabled ${
|
|
37
|
-
|
|
38
|
-
),
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
|
|
20
|
+
R,
|
|
21
|
+
I ? `Bear-Sidebar__item--active ${f}` : u,
|
|
22
|
+
e.disabled && `Bear-Sidebar__item--disabled ${v}`,
|
|
23
|
+
a && "Bear-Sidebar__item--collapsed bear-justify-center"
|
|
24
|
+
), C = e.href ? "a" : "button";
|
|
25
|
+
return /* @__PURE__ */ l("div", { className: "Bear-Sidebar__item-wrapper", children: [
|
|
26
|
+
/* @__PURE__ */ l(
|
|
27
|
+
C,
|
|
42
28
|
{
|
|
43
29
|
href: e.href,
|
|
44
|
-
onClick:
|
|
30
|
+
onClick: B,
|
|
45
31
|
disabled: e.disabled,
|
|
46
|
-
className:
|
|
32
|
+
className: A,
|
|
47
33
|
style: { paddingLeft: E },
|
|
48
|
-
title:
|
|
49
|
-
children:
|
|
34
|
+
title: a ? e.label : void 0,
|
|
35
|
+
children: [
|
|
36
|
+
e.icon && /* @__PURE__ */ r("span", { className: "Bear-Sidebar__item-icon bear-shrink-0 bear-w-5 bear-h-5 bear-flex bear-items-center bear-justify-center", children: e.icon }),
|
|
37
|
+
!a && /* @__PURE__ */ l("span", { className: "Bear-Sidebar__item-row bear-flex bear-items-center bear-flex-1 bear-min-w-0", children: [
|
|
38
|
+
/* @__PURE__ */ r("span", { className: "Bear-Sidebar__item-label bear-flex-1 bear-truncate", children: e.label }),
|
|
39
|
+
e.badge && /* @__PURE__ */ r("span", { className: "Bear-Sidebar__item-badge bear-ml-auto", children: e.badge }),
|
|
40
|
+
n && /* @__PURE__ */ r(
|
|
41
|
+
D,
|
|
42
|
+
{
|
|
43
|
+
size: x,
|
|
44
|
+
className: b(
|
|
45
|
+
"Bear-Sidebar__item-chevron bear-ml-1 bear-transition-transform bear-duration-200",
|
|
46
|
+
o && "bear-rotate-180"
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
] })
|
|
51
|
+
]
|
|
50
52
|
}
|
|
51
53
|
),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
p && /* @__PURE__ */ r("div", { className: "Bear-Sidebar__children bear-mt-1", children: m.map((i) => /* @__PURE__ */ r(
|
|
55
|
+
L,
|
|
54
56
|
{
|
|
55
|
-
item:
|
|
56
|
-
isActive:
|
|
57
|
-
collapsed:
|
|
58
|
-
depth:
|
|
59
|
-
onClick:
|
|
57
|
+
item: i,
|
|
58
|
+
isActive: i.id === s,
|
|
59
|
+
collapsed: a,
|
|
60
|
+
depth: c + 1,
|
|
61
|
+
onClick: t,
|
|
62
|
+
activeVariant: d,
|
|
63
|
+
activeItemId: s
|
|
60
64
|
},
|
|
61
|
-
|
|
65
|
+
i.id
|
|
62
66
|
)) })
|
|
63
67
|
] });
|
|
64
68
|
};
|
|
65
69
|
export {
|
|
66
|
-
|
|
70
|
+
L as SidebarItem
|
|
67
71
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Sidebar, default } from './Sidebar';
|
|
2
2
|
export { SidebarGroup } from './components/SidebarGroup';
|
|
3
3
|
export { SidebarItem } from './components/SidebarItem';
|
|
4
|
+
export { sidebarItemContainsId } from './Sidebar.utils';
|
|
4
5
|
export * from './Sidebar.types';
|
|
5
6
|
export * from './Sidebar.const';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),d=require("react"),j=require("../../utils/cn.cjs"),S=require("./Skeleton.const.cjs"),A=require("./Skeleton.utils.cjs"),c=d.forwardRef(({variant:e="text",animation:r="pulse",width:l,height:s,borderRadius:o,count:i=1,gap:u=8,className:n,style:f,testId:p,...N},y)=>{d.useEffect(()=>{r==="wave"&&A.injectStyles()},[r]);const x=a=>{if(a!==void 0)return typeof a=="number"?`${a}px`:a},E={width:x(l),height:x(s)||(e==="text"?S.SKELETON_TEXT_HEIGHT:void 0),borderRadius:o?x(o):void 0,...f},g=j.cn(S.SKELETON_BASE_CLASSES,S.SKELETON_VARIANT_CLASSES[e],r==="pulse"&&"Bear-Skeleton--pulse",S.SKELETON_ANIMATION_CLASSES[r],n);return i>1?t.jsx("div",{className:"Bear-Skeleton__group flex flex-col",style:{gap:x(u)},"data-testid":p,children:Array.from({length:i}).map((a,m)=>t.jsx("div",{ref:m===0?y:void 0,className:g,style:E,...N},m))}):t.jsx("div",{ref:y,className:g,style:E,"data-testid":p,...N})});c.displayName="Skeleton";const k=d.forwardRef(({lines:e=3,lastLineWidth:r="80%",gap:l=8,animation:s="pulse",...o},i)=>{d.useEffect(()=>{s==="wave"&&A.injectStyles()},[s]);const u=n=>{if(n!==void 0)return typeof n=="number"?`${n}px`:n};return t.jsx("div",{ref:i,className:"Bear-SkeletonText flex flex-col",style:{gap:u(l)},children:Array.from({length:e}).map((n,f)=>t.jsx(c,{variant:"text",animation:s,width:f===e-1?r:"100%",...o},f))})});k.displayName="SkeletonText";const h=d.forwardRef(({size:e="md",animation:r="pulse",...l},s)=>{const o=typeof e=="number"?e:S.SKELETON_AVATAR_SIZES[e];return t.jsx(c,{ref:s,variant:"circular",animation:r,width:o,height:o,...l})});h.displayName="SkeletonAvatar";const T=d.forwardRef(({animation:e="pulse",className:r,...l},s)=>t.jsxs("div",{ref:s,className:j.cn("Bear-SkeletonCard p-4 rounded-lg border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-900",r),...l,children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx(h,{animation:e}),t.jsxs("div",{className:"flex-1",children:[t.jsx(c,{animation:e,width:"60%",height:16,className:"mb-2"}),t.jsx(c,{animation:e,width:"40%",height:12})]})]}),t.jsx(k,{animation:e,lines:3})]}));T.displayName="SkeletonCard";exports.Skeleton=c;exports.SkeletonAvatar=h;exports.SkeletonCard=T;exports.SkeletonText=k;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Bear-Skeleton relative overflow-hidden",n={text:"rounded",circular:"rounded-full",rectangular:"rounded-none",rounded:"rounded-lg"},a={pulse:"animate-pulse",wave:"Bear-Skeleton--wave",none:""},r
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Bear-Skeleton relative overflow-hidden",n={text:"rounded",circular:"rounded-full",rectangular:"rounded-none",rounded:"rounded-lg"},a={pulse:"animate-pulse",wave:"Bear-Skeleton--wave",none:""},r=`
|
|
2
2
|
@keyframes Bear-Skeleton-wave {
|
|
3
3
|
0% {
|
|
4
4
|
transform: translateX(-100%);
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
transparent
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
`,t="1em",
|
|
36
|
+
`,t="1em",S={sm:32,md:40,lg:56};exports.SKELETON_ANIMATION_CLASSES=a;exports.SKELETON_AVATAR_SIZES=S;exports.SKELETON_BASE_CLASSES=e;exports.SKELETON_TEXT_HEIGHT=t;exports.SKELETON_VARIANT_CLASSES=n;exports.SKELETON_WAVE_STYLES=r;
|
|
@@ -7,7 +7,7 @@ const e = "Bear-Skeleton relative overflow-hidden", n = {
|
|
|
7
7
|
pulse: "animate-pulse",
|
|
8
8
|
wave: "Bear-Skeleton--wave",
|
|
9
9
|
none: ""
|
|
10
|
-
}, r =
|
|
10
|
+
}, r = `
|
|
11
11
|
@keyframes Bear-Skeleton-wave {
|
|
12
12
|
0% {
|
|
13
13
|
transform: translateX(-100%);
|
|
@@ -42,17 +42,16 @@ const e = "Bear-Skeleton relative overflow-hidden", n = {
|
|
|
42
42
|
transparent
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
45
|
+
`, t = "1em", o = {
|
|
46
46
|
sm: 32,
|
|
47
47
|
md: 40,
|
|
48
48
|
lg: 56
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
51
|
a as SKELETON_ANIMATION_CLASSES,
|
|
52
|
-
|
|
52
|
+
o as SKELETON_AVATAR_SIZES,
|
|
53
53
|
e as SKELETON_BASE_CLASSES,
|
|
54
|
-
|
|
55
|
-
o as SKELETON_TEXT_HEIGHT,
|
|
54
|
+
t as SKELETON_TEXT_HEIGHT,
|
|
56
55
|
n as SKELETON_VARIANT_CLASSES,
|
|
57
|
-
|
|
56
|
+
r as SKELETON_WAVE_STYLES
|
|
58
57
|
};
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as m, useEffect as
|
|
3
|
-
import { cn as
|
|
4
|
-
import {
|
|
5
|
-
import { injectStyles as
|
|
6
|
-
const
|
|
1
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m, useEffect as u } from "react";
|
|
3
|
+
import { cn as x } from "../../utils/cn.js";
|
|
4
|
+
import { SKELETON_ANIMATION_CLASSES as v, SKELETON_VARIANT_CLASSES as b, SKELETON_BASE_CLASSES as w, SKELETON_TEXT_HEIGHT as L, SKELETON_AVATAR_SIZES as C } from "./Skeleton.const.js";
|
|
5
|
+
import { injectStyles as A } from "./Skeleton.utils.js";
|
|
6
|
+
const a = m(
|
|
7
7
|
({
|
|
8
8
|
variant: e = "text",
|
|
9
|
-
animation:
|
|
9
|
+
animation: t = "pulse",
|
|
10
10
|
width: s,
|
|
11
11
|
height: l,
|
|
12
12
|
borderRadius: o,
|
|
13
|
-
count:
|
|
14
|
-
gap:
|
|
13
|
+
count: S = 1,
|
|
14
|
+
gap: f = 8,
|
|
15
15
|
className: d,
|
|
16
16
|
style: n,
|
|
17
17
|
testId: h,
|
|
18
|
-
...
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, [
|
|
18
|
+
...N
|
|
19
|
+
}, E) => {
|
|
20
|
+
u(() => {
|
|
21
|
+
t === "wave" && A();
|
|
22
|
+
}, [t]);
|
|
23
23
|
const c = (i) => {
|
|
24
24
|
if (i !== void 0)
|
|
25
25
|
return typeof i == "number" ? `${i}px` : i;
|
|
26
26
|
}, g = {
|
|
27
27
|
width: c(s),
|
|
28
|
-
height: c(l) || (e === "text" ?
|
|
28
|
+
height: c(l) || (e === "text" ? L : void 0),
|
|
29
29
|
borderRadius: o ? c(o) : void 0,
|
|
30
30
|
...n
|
|
31
|
-
},
|
|
31
|
+
}, k = x(
|
|
32
32
|
w,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
v,
|
|
33
|
+
b[e],
|
|
34
|
+
t === "pulse" && "Bear-Skeleton--pulse",
|
|
35
|
+
v[t],
|
|
36
36
|
d
|
|
37
37
|
);
|
|
38
|
-
return
|
|
38
|
+
return S > 1 ? /* @__PURE__ */ r(
|
|
39
39
|
"div",
|
|
40
40
|
{
|
|
41
41
|
className: "Bear-Skeleton__group flex flex-col",
|
|
42
|
-
style: { gap: c(
|
|
42
|
+
style: { gap: c(f) },
|
|
43
43
|
"data-testid": h,
|
|
44
|
-
children: Array.from({ length:
|
|
44
|
+
children: Array.from({ length: S }).map((i, y) => /* @__PURE__ */ r(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
|
-
ref:
|
|
48
|
-
className:
|
|
47
|
+
ref: y === 0 ? E : void 0,
|
|
48
|
+
className: k,
|
|
49
49
|
style: g,
|
|
50
|
-
...
|
|
50
|
+
...N
|
|
51
51
|
},
|
|
52
|
-
|
|
52
|
+
y
|
|
53
53
|
))
|
|
54
54
|
}
|
|
55
|
-
) : /* @__PURE__ */
|
|
55
|
+
) : /* @__PURE__ */ r(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
|
-
ref:
|
|
59
|
-
className:
|
|
58
|
+
ref: E,
|
|
59
|
+
className: k,
|
|
60
60
|
style: g,
|
|
61
61
|
"data-testid": h,
|
|
62
|
-
...
|
|
62
|
+
...N
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
|
|
67
|
+
a.displayName = "Skeleton";
|
|
68
68
|
const T = m(
|
|
69
|
-
({ lines: e = 3, lastLineWidth:
|
|
70
|
-
l === "wave" &&
|
|
71
|
-
}, [l]), /* @__PURE__ */
|
|
69
|
+
({ lines: e = 3, lastLineWidth: t = "80%", gap: s = 8, animation: l = "pulse", ...o }, S) => (u(() => {
|
|
70
|
+
l === "wave" && A();
|
|
71
|
+
}, [l]), /* @__PURE__ */ r(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
|
-
ref:
|
|
74
|
+
ref: S,
|
|
75
75
|
className: "Bear-SkeletonText flex flex-col",
|
|
76
76
|
style: { gap: ((d) => {
|
|
77
77
|
if (d !== void 0)
|
|
78
78
|
return typeof d == "number" ? `${d}px` : d;
|
|
79
79
|
})(s) },
|
|
80
|
-
children: Array.from({ length: e }).map((d, n) => /* @__PURE__ */
|
|
81
|
-
|
|
80
|
+
children: Array.from({ length: e }).map((d, n) => /* @__PURE__ */ r(
|
|
81
|
+
a,
|
|
82
82
|
{
|
|
83
83
|
variant: "text",
|
|
84
84
|
animation: l,
|
|
85
|
-
width: n === e - 1 ?
|
|
85
|
+
width: n === e - 1 ? t : "100%",
|
|
86
86
|
...o
|
|
87
87
|
},
|
|
88
88
|
n
|
|
@@ -91,15 +91,15 @@ const T = m(
|
|
|
91
91
|
))
|
|
92
92
|
);
|
|
93
93
|
T.displayName = "SkeletonText";
|
|
94
|
-
const
|
|
95
|
-
({ size: e = "md", animation:
|
|
96
|
-
const o = typeof e == "number" ? e :
|
|
97
|
-
return /* @__PURE__ */
|
|
98
|
-
|
|
94
|
+
const _ = m(
|
|
95
|
+
({ size: e = "md", animation: t = "pulse", ...s }, l) => {
|
|
96
|
+
const o = typeof e == "number" ? e : C[e];
|
|
97
|
+
return /* @__PURE__ */ r(
|
|
98
|
+
a,
|
|
99
99
|
{
|
|
100
100
|
ref: l,
|
|
101
101
|
variant: "circular",
|
|
102
|
-
animation:
|
|
102
|
+
animation: t,
|
|
103
103
|
width: o,
|
|
104
104
|
height: o,
|
|
105
105
|
...s
|
|
@@ -107,34 +107,34 @@ const u = m(
|
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
|
-
|
|
111
|
-
const
|
|
112
|
-
({ animation: e = "pulse", className:
|
|
110
|
+
_.displayName = "SkeletonAvatar";
|
|
111
|
+
const O = m(
|
|
112
|
+
({ animation: e = "pulse", className: t, ...s }, l) => /* @__PURE__ */ p(
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
115
|
ref: l,
|
|
116
|
-
className:
|
|
116
|
+
className: x(
|
|
117
117
|
"Bear-SkeletonCard p-4 rounded-lg border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-900",
|
|
118
|
-
|
|
118
|
+
t
|
|
119
119
|
),
|
|
120
120
|
...s,
|
|
121
121
|
children: [
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ p("div", { className: "flex items-center gap-3 mb-4", children: [
|
|
123
|
+
/* @__PURE__ */ r(_, { animation: e }),
|
|
124
|
+
/* @__PURE__ */ p("div", { className: "flex-1", children: [
|
|
125
|
+
/* @__PURE__ */ r(a, { animation: e, width: "60%", height: 16, className: "mb-2" }),
|
|
126
|
+
/* @__PURE__ */ r(a, { animation: e, width: "40%", height: 12 })
|
|
127
127
|
] })
|
|
128
128
|
] }),
|
|
129
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ r(T, { animation: e, lines: 3 })
|
|
130
130
|
]
|
|
131
131
|
}
|
|
132
132
|
)
|
|
133
133
|
);
|
|
134
|
-
|
|
134
|
+
O.displayName = "SkeletonCard";
|
|
135
135
|
export {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
a as Skeleton,
|
|
137
|
+
_ as SkeletonAvatar,
|
|
138
|
+
O as SkeletonCard,
|
|
139
139
|
T as SkeletonText
|
|
140
140
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),u=require("react"),i=require("../../utils/cn.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),u=require("react"),i=require("../../utils/cn.cjs"),F=require("./SliderRange.utils.cjs"),V={xs:{track:"bear-h-1",thumb:"bear-w-3 bear-h-3",height:"bear-h-6"},sm:{track:"bear-h-1.5",thumb:"bear-w-4 bear-h-4",height:"bear-h-8"},md:{track:"bear-h-2",thumb:"bear-w-5 bear-h-5",height:"bear-h-10"},lg:{track:"bear-h-2.5",thumb:"bear-w-6 bear-h-6",height:"bear-h-12"},xl:{track:"bear-h-3",thumb:"bear-w-7 bear-h-7",height:"bear-h-14"}},X={primary:{track:"bear-bg-bear-500",thumb:"bear-bg-bear-500 bear-border-bear-600"},secondary:{track:"bear-bg-gray-500",thumb:"bear-bg-gray-500 bear-border-gray-600"},success:{track:"bear-bg-green-500",thumb:"bear-bg-green-500 bear-border-green-600"},warning:{track:"bear-bg-amber-500",thumb:"bear-bg-amber-500 bear-border-amber-600"},error:{track:"bear-bg-red-500",thumb:"bear-bg-red-500 bear-border-red-600"},danger:{track:"bear-bg-red-500",thumb:"bear-bg-red-500 bear-border-red-600"},info:{track:"bear-bg-blue-500",thumb:"bear-bg-blue-500 bear-border-blue-600"},ghost:{track:"bear-bg-gray-400",thumb:"bear-bg-gray-400 bear-border-gray-500"},outline:{track:"bear-bg-gray-600",thumb:"bear-bg-white dark:bear-bg-gray-200 bear-border-gray-600 dark:bear-border-gray-400"}},Y=({value:h,defaultValue:D=[20,80],min:e=0,max:t=100,step:d=1,size:I="md",color:_="primary",disabled:a=!1,onChange:s,onChangeCommitted:g,valueFormatter:A=f=>String(f),className:$,...z})=>{const[f,R]=u.useState(D),[b,L]=u.useState(null),w=u.useRef(null),y=h??f,[c,l]=y,k=(c-e)/(t-e)*100,E=(l-e)/(t-e)*100,m=V[I],x=X[_],S=u.useCallback((r,v)=>{if(!w.current||a)return;const N=w.current.getBoundingClientRect(),O=Math.max(0,Math.min(1,(r-N.left)/N.width)),P=e+O*(t-e),T=F.stepValue(P,e,t,d);if(v==="min"){const n=[Math.min(T,l-d),l];h===void 0&&R(n),s==null||s(n)}else{const q=Math.max(T,c+d),n=[c,q];h===void 0&&R(n),s==null||s(n)}},[e,t,d,c,l,a,h,s]),j=(r,v)=>{a||(r.preventDefault(),L(v),S(r.clientX,v))},p=u.useCallback(r=>{b&&S(r.clientX,b)},[b,S]),M=u.useCallback(()=>{b&&(L(null),g==null||g(y))},[b,y,g]);return u.useEffect(()=>{if(b)return document.addEventListener("mousemove",p),document.addEventListener("mouseup",M),()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",M)}},[b,p,M]),o.jsx("div",{className:i.cn("bear-relative bear-w-full bear-flex bear-items-center",m.height,a&&"bear-opacity-50 bear-cursor-not-allowed",$),"data-testid":"slider-range",...z,children:o.jsxs("div",{ref:w,className:i.cn("bear-relative bear-w-full bear-rounded-full bear-bg-gray-200 dark:bear-bg-gray-700",m.track,!a&&"bear-cursor-pointer"),children:[o.jsx("div",{className:i.cn("bear-absolute bear-inset-y-0 bear-left-0 bear-rounded-full",x.track),style:{left:`${k}%`,width:`${E-k}%`}}),o.jsx("div",{role:"slider",tabIndex:a?-1:0,"aria-valuemin":e,"aria-valuemax":t,"aria-valuenow":c,"aria-label":"Range minimum",className:i.cn("bear-absolute bear-top-1/2 bear--translate-y-1/2 bear--translate-x-1/2 bear-rounded-full bear-border-2 bear-shadow-md",m.thumb,x.thumb,!a&&"bear-cursor-grab active:bear-cursor-grabbing hover:bear-scale-110",b==="min"&&"bear-scale-125 bear-z-10"),style:{left:`${k}%`},onMouseDown:r=>j(r,"min")}),o.jsx("div",{role:"slider",tabIndex:a?-1:0,"aria-valuemin":e,"aria-valuemax":t,"aria-valuenow":l,"aria-label":"Range maximum",className:i.cn("bear-absolute bear-top-1/2 bear--translate-y-1/2 bear--translate-x-1/2 bear-rounded-full bear-border-2 bear-shadow-md",m.thumb,x.thumb,!a&&"bear-cursor-grab active:bear-cursor-grabbing hover:bear-scale-110",b==="max"&&"bear-scale-125 bear-z-10"),style:{left:`${E}%`},onMouseDown:r=>j(r,"max")})]})})};exports.SliderRange=Y;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as g, jsxs as
|
|
2
|
-
import { useState as $, useRef as
|
|
1
|
+
import { jsx as g, jsxs as X } from "react/jsx-runtime";
|
|
2
|
+
import { useState as $, useRef as Y, useCallback as S, useEffect as A } from "react";
|
|
3
3
|
import { cn as l } from "../../utils/cn.js";
|
|
4
|
-
import { stepValue as
|
|
4
|
+
import { stepValue as B } from "./SliderRange.utils.js";
|
|
5
5
|
const H = {
|
|
6
6
|
xs: { track: "bear-h-1", thumb: "bear-w-3 bear-h-3", height: "bear-h-6" },
|
|
7
7
|
sm: { track: "bear-h-1.5", thumb: "bear-w-4 bear-h-4", height: "bear-h-8" },
|
|
@@ -24,28 +24,28 @@ const H = {
|
|
|
24
24
|
min: e = 0,
|
|
25
25
|
max: t = 100,
|
|
26
26
|
step: i = 1,
|
|
27
|
-
size:
|
|
28
|
-
color:
|
|
27
|
+
size: _ = "md",
|
|
28
|
+
color: j = "primary",
|
|
29
29
|
disabled: a = !1,
|
|
30
|
-
onChange:
|
|
30
|
+
onChange: u,
|
|
31
31
|
onChangeCommitted: h,
|
|
32
32
|
valueFormatter: Z = (v) => String(v),
|
|
33
|
-
className:
|
|
34
|
-
...
|
|
33
|
+
className: F,
|
|
34
|
+
...O
|
|
35
35
|
}) => {
|
|
36
|
-
const [v, L] = $(z), [b, E] = $(null), f =
|
|
36
|
+
const [v, L] = $(z), [b, E] = $(null), f = Y(null), w = n ?? v, [s, o] = w, y = (s - e) / (t - e) * 100, R = (o - e) / (t - e) * 100, m = H[_], k = U[j], p = S(
|
|
37
37
|
(r, d) => {
|
|
38
38
|
if (!f.current || a) return;
|
|
39
|
-
const D = f.current.getBoundingClientRect(),
|
|
39
|
+
const D = f.current.getBoundingClientRect(), P = Math.max(0, Math.min(1, (r - D.left) / D.width)), V = e + P * (t - e), I = B(V, e, t, i);
|
|
40
40
|
if (d === "min") {
|
|
41
41
|
const c = [Math.min(I, o - i), o];
|
|
42
|
-
n === void 0 && L(c),
|
|
42
|
+
n === void 0 && L(c), u == null || u(c);
|
|
43
43
|
} else {
|
|
44
|
-
const T = Math.max(I,
|
|
45
|
-
n === void 0 && L(c),
|
|
44
|
+
const T = Math.max(I, s + i), c = [s, T];
|
|
45
|
+
n === void 0 && L(c), u == null || u(c);
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
[e, t, i,
|
|
48
|
+
[e, t, i, s, o, a, n, u]
|
|
49
49
|
), N = (r, d) => {
|
|
50
50
|
a || (r.preventDefault(), E(d), p(r.clientX, d));
|
|
51
51
|
}, x = S(
|
|
@@ -56,7 +56,7 @@ const H = {
|
|
|
56
56
|
), M = S(() => {
|
|
57
57
|
b && (E(null), h == null || h(w));
|
|
58
58
|
}, [b, w, h]);
|
|
59
|
-
return
|
|
59
|
+
return A(() => {
|
|
60
60
|
if (b)
|
|
61
61
|
return document.addEventListener("mousemove", x), document.addEventListener("mouseup", M), () => {
|
|
62
62
|
document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", M);
|
|
@@ -68,11 +68,11 @@ const H = {
|
|
|
68
68
|
"bear-relative bear-w-full bear-flex bear-items-center",
|
|
69
69
|
m.height,
|
|
70
70
|
a && "bear-opacity-50 bear-cursor-not-allowed",
|
|
71
|
-
|
|
71
|
+
F
|
|
72
72
|
),
|
|
73
73
|
"data-testid": "slider-range",
|
|
74
|
-
...
|
|
75
|
-
children: /* @__PURE__ */
|
|
74
|
+
...O,
|
|
75
|
+
children: /* @__PURE__ */ X(
|
|
76
76
|
"div",
|
|
77
77
|
{
|
|
78
78
|
ref: f,
|
|
@@ -96,7 +96,7 @@ const H = {
|
|
|
96
96
|
tabIndex: a ? -1 : 0,
|
|
97
97
|
"aria-valuemin": e,
|
|
98
98
|
"aria-valuemax": t,
|
|
99
|
-
"aria-valuenow":
|
|
99
|
+
"aria-valuenow": s,
|
|
100
100
|
"aria-label": "Range minimum",
|
|
101
101
|
className: l(
|
|
102
102
|
"bear-absolute bear-top-1/2 bear--translate-y-1/2 bear--translate-x-1/2 bear-rounded-full bear-border-2 bear-shadow-md",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../utils/cn.cjs");require("react");const t=require("./Sparkline.const.cjs"),A=require("./Sparkline.utils.cjs"),j=d=>{const{data:a,width:p=t.SPARKLINE.DEFAULT_WIDTH,height:x=t.SPARKLINE.DEFAULT_HEIGHT,color:s=t.SPARKLINE.DEFAULT_COLOR,fill:S=!1,strokeWidth:E=t.SPARKLINE.DEFAULT_STROKE_WIDTH,showExtremes:I=!1,animated:l=!0,variant:R=t.SPARKLINE_VARIANT_LINE,showLastPoint:h=!1,className:L,...u}=d,P=S||R===t.SPARKLINE_VARIANT_AREA,{path:_,areaPath:k,minPoint:c,maxPoint:r}=A.calculateSparklinePathData(a),T=A.calculateSparklineBars(a),f=A.calculateSparklinePoints(a),o=f[f.length-1],N=`sparkline-gradient-${s.replace("#","")}`;return e.jsx("div",{className:i.cn("inline-block",L),style:{width:p,height:x},...u,children:e.jsxs("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"w-full h-full",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:N,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[e.jsx("stop",{offset:"0%",stopColor:s,stopOpacity:"0.4"}),e.jsx("stop",{offset:"100%",stopColor:s,stopOpacity:"0"})]})}),R===t.SPARKLINE_VARIANT_BARS?T.map((n,m)=>e.jsx("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:s,className:i.cn(l&&"animate-grow-up")},m)):e.jsxs(e.Fragment,{children:[P&&e.jsx("path",{d:k,fill:`url(#${N})`,className:i.cn(l&&"animate-fade-in")}),e.jsx("path",{d:_,fill:"none",stroke:s,strokeWidth:E,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke",className:i.cn(l&&"animate-draw-line")})]}),I&&c&&e.jsx("circle",{cx:c.x,cy:c.y,r:t.SPARKLINE.INDICATOR_RADIUS,fill:t.SPARKLINE.MIN_INDICATOR_COLOR,vectorEffect:"non-scaling-stroke"}),I&&r&&e.jsx("circle",{cx:r.x,cy:r.y,r:t.SPARKLINE.INDICATOR_RADIUS,fill:t.SPARKLINE.MAX_INDICATOR_COLOR,vectorEffect:"non-scaling-stroke"}),h&&o&&e.jsx("circle",{cx:o.x,cy:o.y,r:t.SPARKLINE.LAST_POINT_RADIUS,fill:s,vectorEffect:"non-scaling-stroke"})]})})};exports.Sparkline=j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A={DEFAULT_WIDTH:100,DEFAULT_HEIGHT:32,DEFAULT_COLOR:"var(--bear-primary-500, #ec4899)",DEFAULT_STROKE_WIDTH:2,VIEWBOX_SIZE:100,Y_PADDING:10,Y_RANGE:80,CONTROL_POINT_FACTOR:3,MIN_INDICATOR_COLOR:"#ef4444",MAX_INDICATOR_COLOR:"#10b981",INDICATOR_RADIUS:3,LAST_POINT_RADIUS:3.5,BAR_GAP_RATIO:.25},I="line",R="area",_="bars";exports.SPARKLINE=A;exports.SPARKLINE_VARIANT_AREA=R;exports.SPARKLINE_VARIANT_BARS=_;exports.SPARKLINE_VARIANT_LINE=I;
|
|
@@ -13,4 +13,9 @@ export declare const SPARKLINE: {
|
|
|
13
13
|
readonly MIN_INDICATOR_COLOR: "#ef4444";
|
|
14
14
|
readonly MAX_INDICATOR_COLOR: "#10b981";
|
|
15
15
|
readonly INDICATOR_RADIUS: 3;
|
|
16
|
+
readonly LAST_POINT_RADIUS: 3.5;
|
|
17
|
+
readonly BAR_GAP_RATIO: 0.25;
|
|
16
18
|
};
|
|
19
|
+
export declare const SPARKLINE_VARIANT_LINE = "line";
|
|
20
|
+
export declare const SPARKLINE_VARIANT_AREA = "area";
|
|
21
|
+
export declare const SPARKLINE_VARIANT_BARS = "bars";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const A = {
|
|
2
2
|
DEFAULT_WIDTH: 100,
|
|
3
3
|
DEFAULT_HEIGHT: 32,
|
|
4
4
|
DEFAULT_COLOR: "var(--bear-primary-500, #ec4899)",
|
|
@@ -9,8 +9,13 @@ const I = {
|
|
|
9
9
|
CONTROL_POINT_FACTOR: 3,
|
|
10
10
|
MIN_INDICATOR_COLOR: "#ef4444",
|
|
11
11
|
MAX_INDICATOR_COLOR: "#10b981",
|
|
12
|
-
INDICATOR_RADIUS: 3
|
|
13
|
-
|
|
12
|
+
INDICATOR_RADIUS: 3,
|
|
13
|
+
LAST_POINT_RADIUS: 3.5,
|
|
14
|
+
BAR_GAP_RATIO: 0.25
|
|
15
|
+
}, I = "line", _ = "area", R = "bars";
|
|
14
16
|
export {
|
|
15
|
-
|
|
17
|
+
A as SPARKLINE,
|
|
18
|
+
_ as SPARKLINE_VARIANT_AREA,
|
|
19
|
+
R as SPARKLINE_VARIANT_BARS,
|
|
20
|
+
I as SPARKLINE_VARIANT_LINE
|
|
16
21
|
};
|