@forgedevstack/bear 1.0.6 → 1.0.8
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/dist/components/Alert/Alert.cjs +1 -1
- package/dist/components/Alert/Alert.const.cjs +1 -1
- package/dist/components/Alert/Alert.const.d.ts +4 -0
- package/dist/components/Alert/Alert.const.js +9 -15
- package/dist/components/Alert/Alert.js +43 -38
- package/dist/components/AppBar/AppBar.cjs +1 -1
- package/dist/components/AppBar/AppBar.js +20 -16
- package/dist/components/BackTop/BackTop.cjs +1 -0
- package/dist/components/BackTop/BackTop.const.cjs +1 -0
- package/dist/components/BackTop/BackTop.const.d.ts +34 -0
- package/dist/components/BackTop/BackTop.const.js +29 -0
- package/dist/components/BackTop/BackTop.d.ts +21 -0
- package/dist/components/BackTop/BackTop.js +87 -0
- package/dist/components/BackTop/BackTop.types.d.ts +28 -0
- package/dist/components/BackTop/index.d.ts +3 -0
- package/dist/components/Badge/Badge.constants.d.ts +4 -4
- package/dist/components/Badge/Badge.types.d.ts +3 -3
- package/dist/components/BottomSheet/BottomSheet.cjs +1 -0
- package/dist/components/BottomSheet/BottomSheet.d.ts +3 -0
- package/dist/components/BottomSheet/BottomSheet.js +103 -0
- package/dist/components/BottomSheet/BottomSheet.types.d.ts +13 -0
- package/dist/components/BottomSheet/index.d.ts +2 -0
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.constants.cjs +38 -48
- package/dist/components/Button/Button.constants.d.ts +22 -3
- package/dist/components/Button/Button.constants.js +51 -50
- package/dist/components/Button/Button.d.ts +14 -7
- package/dist/components/Button/Button.js +123 -43
- package/dist/components/Button/Button.types.d.ts +26 -4
- package/dist/components/Calendar/Calendar.cjs +1 -1
- package/dist/components/Calendar/Calendar.js +3 -2
- package/dist/components/Card/Card.const.d.ts +2 -2
- package/dist/components/Card/Card.types.d.ts +2 -2
- package/dist/components/Chat/Chat.cjs +1 -0
- package/dist/components/Chat/Chat.const.cjs +1 -0
- package/dist/components/Chat/Chat.const.d.ts +26 -0
- package/dist/components/Chat/Chat.const.js +29 -0
- package/dist/components/Chat/Chat.d.ts +21 -0
- package/dist/components/Chat/Chat.js +179 -0
- package/dist/components/Chat/Chat.types.d.ts +55 -0
- package/dist/components/Chat/index.d.ts +2 -0
- package/dist/components/Confetti/Confetti.cjs +1 -0
- package/dist/components/Confetti/Confetti.const.cjs +1 -0
- package/dist/components/Confetti/Confetti.const.d.ts +16 -0
- package/dist/components/Confetti/Confetti.const.js +36 -0
- package/dist/components/Confetti/Confetti.d.ts +23 -0
- package/dist/components/Confetti/Confetti.js +94 -0
- package/dist/components/Confetti/Confetti.types.d.ts +50 -0
- package/dist/components/Confetti/index.d.ts +4 -0
- package/dist/components/Confetti/useConfetti.cjs +1 -0
- package/dist/components/Confetti/useConfetti.d.ts +13 -0
- package/dist/components/Confetti/useConfetti.js +12 -0
- package/dist/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/DatePicker/DatePicker.js +3 -2
- package/dist/components/DiffViewer/DiffViewer.cjs +1 -0
- package/dist/components/DiffViewer/DiffViewer.const.cjs +1 -0
- package/dist/components/DiffViewer/DiffViewer.const.d.ts +18 -0
- package/dist/components/DiffViewer/DiffViewer.const.js +21 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +18 -0
- package/dist/components/DiffViewer/DiffViewer.js +127 -0
- package/dist/components/DiffViewer/DiffViewer.types.d.ts +40 -0
- package/dist/components/DiffViewer/DiffViewer.utils.cjs +3 -0
- package/dist/components/DiffViewer/DiffViewer.utils.d.ts +9 -0
- package/dist/components/DiffViewer/DiffViewer.utils.js +39 -0
- package/dist/components/DiffViewer/index.d.ts +2 -0
- package/dist/components/Drawer/Drawer.cjs +1 -1
- package/dist/components/Drawer/Drawer.js +35 -35
- package/dist/components/EmojiPicker/EmojiPicker.cjs +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.const.cjs +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.const.d.ts +5 -0
- package/dist/components/EmojiPicker/EmojiPicker.const.js +10 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -0
- package/dist/components/EmojiPicker/EmojiPicker.js +63 -0
- package/dist/components/EmojiPicker/EmojiPicker.types.d.ts +6 -0
- package/dist/components/EmojiPicker/index.d.ts +3 -0
- package/dist/components/FloatingChat/FloatingChat.cjs +1 -0
- package/dist/components/FloatingChat/FloatingChat.const.cjs +1 -0
- package/dist/components/FloatingChat/FloatingChat.const.d.ts +12 -0
- package/dist/components/FloatingChat/FloatingChat.const.js +15 -0
- package/dist/components/FloatingChat/FloatingChat.d.ts +19 -0
- package/dist/components/FloatingChat/FloatingChat.js +144 -0
- package/dist/components/FloatingChat/FloatingChat.types.d.ts +44 -0
- package/dist/components/FloatingChat/index.d.ts +2 -0
- package/dist/components/JsonViewer/JsonViewer.cjs +1 -0
- package/dist/components/JsonViewer/JsonViewer.const.cjs +1 -0
- package/dist/components/JsonViewer/JsonViewer.const.d.ts +4 -0
- package/dist/components/JsonViewer/JsonViewer.const.js +24 -0
- package/dist/components/JsonViewer/JsonViewer.d.ts +17 -0
- package/dist/components/JsonViewer/JsonViewer.js +195 -0
- package/dist/components/JsonViewer/JsonViewer.types.d.ts +54 -0
- package/dist/components/JsonViewer/index.d.ts +2 -0
- package/dist/components/Kanban/Kanban.cjs +1 -0
- package/dist/components/Kanban/Kanban.d.ts +3 -0
- package/dist/components/Kanban/Kanban.js +91 -0
- package/dist/components/Kanban/Kanban.types.d.ts +21 -0
- package/dist/components/Kanban/index.d.ts +2 -0
- package/dist/components/MentionsInput/MentionsInput.cjs +1 -0
- package/dist/components/MentionsInput/MentionsInput.d.ts +3 -0
- package/dist/components/MentionsInput/MentionsInput.js +140 -0
- package/dist/components/MentionsInput/MentionsInput.types.d.ts +21 -0
- package/dist/components/MentionsInput/index.d.ts +2 -0
- package/dist/components/QRCode/QRCode.cjs +1 -0
- package/dist/components/QRCode/QRCode.const.cjs +1 -0
- package/dist/components/QRCode/QRCode.const.d.ts +21 -0
- package/dist/components/QRCode/QRCode.const.js +11 -0
- package/dist/components/QRCode/QRCode.d.ts +29 -0
- package/dist/components/QRCode/QRCode.js +68 -0
- package/dist/components/QRCode/QRCode.types.d.ts +32 -0
- package/dist/components/QRCode/QRCode.utils.cjs +1 -0
- package/dist/components/QRCode/QRCode.utils.d.ts +12 -0
- package/dist/components/QRCode/QRCode.utils.js +74 -0
- package/dist/components/QRCode/index.d.ts +3 -0
- package/dist/components/RichEditor/RichEditor.cjs +1 -1
- package/dist/components/RichEditor/RichEditor.const.cjs +2 -2
- package/dist/components/RichEditor/RichEditor.const.d.ts +4 -1
- package/dist/components/RichEditor/RichEditor.const.js +51 -18
- package/dist/components/RichEditor/RichEditor.js +106 -105
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.cjs +1 -1
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.js +105 -95
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.cjs +1 -1
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.d.ts +2 -0
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.js +47 -29
- package/dist/components/SegmentedControl/SegmentedControl.cjs +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +3 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +58 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.d.ts +16 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/SignPad/SignPad.cjs +1 -1
- package/dist/components/SignPad/SignPad.js +98 -90
- package/dist/components/SliderRange/SliderRange.cjs +1 -0
- package/dist/components/SliderRange/SliderRange.d.ts +3 -0
- package/dist/components/SliderRange/SliderRange.js +142 -0
- package/dist/components/SliderRange/SliderRange.types.d.ts +17 -0
- package/dist/components/SliderRange/index.d.ts +2 -0
- package/dist/components/Spinner/Spinner.types.d.ts +2 -2
- package/dist/components/TagsInput/TagsInput.cjs +1 -0
- package/dist/components/TagsInput/TagsInput.d.ts +3 -0
- package/dist/components/TagsInput/TagsInput.js +100 -0
- package/dist/components/TagsInput/TagsInput.types.d.ts +16 -0
- package/dist/components/TagsInput/index.d.ts +2 -0
- package/dist/components/Terminal/Terminal.cjs +1 -0
- package/dist/components/Terminal/Terminal.const.cjs +1 -0
- package/dist/components/Terminal/Terminal.const.d.ts +32 -0
- package/dist/components/Terminal/Terminal.const.js +42 -0
- package/dist/components/Terminal/Terminal.d.ts +27 -0
- package/dist/components/Terminal/Terminal.js +155 -0
- package/dist/components/Terminal/Terminal.types.d.ts +49 -0
- package/dist/components/Terminal/index.d.ts +2 -0
- package/dist/components/Tour/Tour.cjs +1 -0
- package/dist/components/Tour/Tour.const.cjs +1 -0
- package/dist/components/Tour/Tour.const.d.ts +25 -0
- package/dist/components/Tour/Tour.const.js +38 -0
- package/dist/components/Tour/Tour.d.ts +17 -0
- package/dist/components/Tour/Tour.js +179 -0
- package/dist/components/Tour/Tour.types.d.ts +80 -0
- package/dist/components/Tour/index.d.ts +4 -0
- package/dist/components/Tour/useTour.cjs +1 -0
- package/dist/components/Tour/useTour.d.ts +14 -0
- package/dist/components/Tour/useTour.js +27 -0
- package/dist/components/Typography/Typography.cjs +1 -1
- package/dist/components/Typography/Typography.d.ts +5 -1
- package/dist/components/Typography/Typography.js +93 -57
- package/dist/components/Typography/Typography.types.d.ts +29 -2
- package/dist/components/VirtualList/VirtualList.cjs +1 -0
- package/dist/components/VirtualList/VirtualList.d.ts +3 -0
- package/dist/components/VirtualList/VirtualList.js +68 -0
- package/dist/components/VirtualList/VirtualList.types.d.ts +10 -0
- package/dist/components/VirtualList/index.d.ts +2 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +35 -1
- package/dist/components/index.js +240 -198
- package/dist/context/BearProvider.cjs +1 -1
- package/dist/context/BearProvider.d.ts +110 -5
- package/dist/context/BearProvider.js +198 -53
- package/dist/context/defaultTheme.cjs +1 -1
- package/dist/context/defaultTheme.js +11 -11
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.ts +18 -0
- package/dist/hooks/index.js +56 -35
- package/dist/hooks/useBearComponent/index.d.ts +2 -0
- package/dist/hooks/useBearComponent/useBearComponent.cjs +1 -0
- package/dist/hooks/useBearComponent/useBearComponent.d.ts +71 -0
- package/dist/hooks/useBearComponent/useBearComponent.js +54 -0
- package/dist/hooks/useBearComponent/useBearComponent.types.d.ts +40 -0
- package/dist/hooks/useDragDrop/index.d.ts +2 -0
- package/dist/hooks/useDragDrop/useDragDrop.cjs +1 -0
- package/dist/hooks/useDragDrop/useDragDrop.d.ts +22 -0
- package/dist/hooks/useDragDrop/useDragDrop.js +56 -0
- package/dist/hooks/useDragDrop/useDragDrop.types.d.ts +55 -0
- package/dist/hooks/useIdle/index.d.ts +2 -0
- package/dist/hooks/useIdle/useIdle.cjs +1 -0
- package/dist/hooks/useIdle/useIdle.d.ts +22 -0
- package/dist/hooks/useIdle/useIdle.js +66 -0
- package/dist/hooks/useIdle/useIdle.types.d.ts +29 -0
- package/dist/hooks/useLazyLoad/index.d.ts +2 -0
- package/dist/hooks/useLazyLoad/useLazyLoad.cjs +1 -0
- package/dist/hooks/useLazyLoad/useLazyLoad.d.ts +26 -0
- package/dist/hooks/useLazyLoad/useLazyLoad.js +27 -0
- package/dist/hooks/useLazyLoad/useLazyLoad.types.d.ts +25 -0
- package/dist/hooks/useLongPress/index.d.ts +2 -0
- package/dist/hooks/useLongPress/useLongPress.cjs +1 -0
- package/dist/hooks/useLongPress/useLongPress.d.ts +17 -0
- package/dist/hooks/useLongPress/useLongPress.js +44 -0
- package/dist/hooks/useLongPress/useLongPress.types.d.ts +26 -0
- package/dist/hooks/useOnline/index.d.ts +2 -0
- package/dist/hooks/useOnline/useOnline.cjs +1 -0
- package/dist/hooks/useOnline/useOnline.d.ts +16 -0
- package/dist/hooks/useOnline/useOnline.js +25 -0
- package/dist/hooks/useOnline/useOnline.types.d.ts +15 -0
- package/dist/hooks/usePageVisibility/index.d.ts +2 -0
- package/dist/hooks/usePageVisibility/usePageVisibility.cjs +1 -0
- package/dist/hooks/usePageVisibility/usePageVisibility.d.ts +19 -0
- package/dist/hooks/usePageVisibility/usePageVisibility.js +26 -0
- package/dist/hooks/usePageVisibility/usePageVisibility.types.d.ts +15 -0
- package/dist/hooks/useSpotlight/index.d.ts +2 -0
- package/dist/hooks/useSpotlight/useSpotlight.cjs +1 -0
- package/dist/hooks/useSpotlight/useSpotlight.d.ts +24 -0
- package/dist/hooks/useSpotlight/useSpotlight.js +49 -0
- package/dist/hooks/useSpotlight/useSpotlight.types.d.ts +23 -0
- package/dist/hooks/useWebSocket/index.d.ts +2 -0
- package/dist/hooks/useWebSocket/useWebSocket.cjs +1 -0
- package/dist/hooks/useWebSocket/useWebSocket.d.ts +22 -0
- package/dist/hooks/useWebSocket/useWebSocket.js +75 -0
- package/dist/hooks/useWebSocket/useWebSocket.types.d.ts +44 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +327 -264
- package/dist/styles.css +1 -1
- package/dist/types/component.types.d.ts +125 -42
- package/dist/types/theme.types.d.ts +82 -0
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1,233 +1,275 @@
|
|
|
1
1
|
import { Container as p } from "./Container/Container.js";
|
|
2
|
-
import { Flex as
|
|
2
|
+
import { Flex as f } from "./Flex/Flex.js";
|
|
3
3
|
import { Grid as a, GridCompound as n, GridItem as i } from "./Grid/Grid.js";
|
|
4
|
-
import { Button as
|
|
5
|
-
import { ButtonGroup as
|
|
6
|
-
import { Card as
|
|
7
|
-
import { Badge as
|
|
8
|
-
import { Paper as
|
|
4
|
+
import { Button as C } from "./Button/Button.js";
|
|
5
|
+
import { ButtonGroup as l } from "./ButtonGroup/ButtonGroup.js";
|
|
6
|
+
import { Card as s, CardBody as I, CardCompound as S, CardFooter as h, CardHeader as T } from "./Card/Card.js";
|
|
7
|
+
import { Badge as g } from "./Badge/Badge.js";
|
|
8
|
+
import { Paper as P } from "./Paper/Paper.js";
|
|
9
9
|
import { Divider as k } from "./Divider/Divider.js";
|
|
10
10
|
import { Typography as A } from "./Typography/Typography.js";
|
|
11
|
-
import { Link as
|
|
12
|
-
import { Spinner as
|
|
13
|
-
import { Alert as
|
|
14
|
-
import { Rating as
|
|
15
|
-
import { BearIcons as
|
|
16
|
-
import { ChevronDownIcon as
|
|
17
|
-
import { RemoveIcon as
|
|
18
|
-
import { CheckIcon as
|
|
19
|
-
import { BearPawIcon as
|
|
20
|
-
import { BearLogo as
|
|
21
|
-
import { EmberLogo as
|
|
22
|
-
import { Modal as
|
|
23
|
-
import { Drawer as
|
|
24
|
-
import { Tooltip as
|
|
25
|
-
import { Menu as
|
|
26
|
-
import { Dropdown as
|
|
27
|
-
import { SpeedDial as
|
|
28
|
-
import { Input as
|
|
29
|
-
import { Select as
|
|
30
|
-
import { Switch as
|
|
31
|
-
import { Checkbox as
|
|
32
|
-
import { Radio as
|
|
33
|
-
import { MultiSelect as
|
|
11
|
+
import { Link as D } from "./Link/Link.js";
|
|
12
|
+
import { Spinner as w } from "./Spinner/Spinner.js";
|
|
13
|
+
import { Alert as F } from "./Alert/Alert.js";
|
|
14
|
+
import { Rating as y } from "./Rating/Rating.js";
|
|
15
|
+
import { BearIcons as H } from "./Icon/index.js";
|
|
16
|
+
import { ChevronDownIcon as J, ChevronLeftIcon as K, ChevronRightIcon as O, ChevronUpIcon as U, MenuIcon as j, CloseIcon as Q } from "./Icon/icons/navigation.js";
|
|
17
|
+
import { RemoveIcon as _, AddIcon as q, SearchIcon as z, SettingsIcon as W } from "./Icon/icons/action.js";
|
|
18
|
+
import { CheckIcon as Z } from "./Icon/icons/status.js";
|
|
19
|
+
import { BearPawIcon as oo } from "./Icon/icons/misc.js";
|
|
20
|
+
import { BearLogo as eo } from "./BearLogo/BearLogo.js";
|
|
21
|
+
import { EmberLogo as po } from "./BearLogo/EmberLogo.js";
|
|
22
|
+
import { Modal as fo } from "./Modal/Modal.js";
|
|
23
|
+
import { Drawer as ao } from "./Drawer/Drawer.js";
|
|
24
|
+
import { Tooltip as io } from "./Tooltip/Tooltip.js";
|
|
25
|
+
import { Menu as co, MenuDivider as lo, MenuItem as uo } from "./Menu/Menu.js";
|
|
26
|
+
import { Dropdown as Io } from "./Dropdown/Dropdown.js";
|
|
27
|
+
import { SpeedDial as ho } from "./SpeedDial/SpeedDial.js";
|
|
28
|
+
import { Input as Bo } from "./Input/Input.js";
|
|
29
|
+
import { Select as bo } from "./Select/Select.js";
|
|
30
|
+
import { Switch as vo } from "./Switch/Switch.js";
|
|
31
|
+
import { Checkbox as Lo } from "./Checkbox/Checkbox.js";
|
|
32
|
+
import { Radio as Mo, RadioGroup as Do } from "./Radio/Radio.js";
|
|
33
|
+
import { MultiSelect as wo } from "./MultiSelect/MultiSelect.js";
|
|
34
34
|
import { Autocomplete as Fo } from "./Autocomplete/Autocomplete.js";
|
|
35
35
|
import { TransferList as yo } from "./TransferList/TransferList.js";
|
|
36
|
-
import { DataTable as
|
|
36
|
+
import { DataTable as Ho, createColumns as No } from "./DataTable/DataTable.js";
|
|
37
37
|
import { Carousel as Ko } from "./Carousel/Carousel.js";
|
|
38
|
-
import { Accordion as Uo, AccordionItem as
|
|
39
|
-
import { Tab as
|
|
40
|
-
import { Avatar as
|
|
41
|
-
import { Progress as
|
|
42
|
-
import { List as
|
|
43
|
-
import { Fab as
|
|
44
|
-
import { ToastContainer as
|
|
45
|
-
import { Skeleton as
|
|
46
|
-
import { Pagination as
|
|
47
|
-
import { Slider as
|
|
48
|
-
import { BearLoader as
|
|
49
|
-
import { Calendar as
|
|
50
|
-
import { DatePicker as
|
|
51
|
-
import { TimePicker as
|
|
52
|
-
import { Breadcrumbs as
|
|
53
|
-
import { Stepper as Fr, StepperControls as
|
|
54
|
-
import { BottomNavigation as
|
|
55
|
-
import { AppBar as
|
|
38
|
+
import { Accordion as Uo, AccordionItem as jo } from "./Accordion/Accordion.js";
|
|
39
|
+
import { Tab as Xo, TabList as _o, TabPanel as qo, Tabs as zo } from "./Tabs/Tabs.js";
|
|
40
|
+
import { Avatar as Yo, AvatarGroup as Zo } from "./Avatar/Avatar.js";
|
|
41
|
+
import { Progress as or } from "./Progress/Progress.js";
|
|
42
|
+
import { List as er, ListItem as tr, ListItemButton as pr, ListItemIcon as mr, ListItemText as fr, ListSubheader as xr } from "./List/List.js";
|
|
43
|
+
import { Fab as nr } from "./Fab/Fab.js";
|
|
44
|
+
import { ToastContainer as dr, ToastProvider as Cr, useToast as cr } from "./Toast/Toast.js";
|
|
45
|
+
import { Skeleton as ur, SkeletonAvatar as sr, SkeletonCard as Ir, SkeletonText as Sr } from "./Skeleton/Skeleton.js";
|
|
46
|
+
import { Pagination as Tr } from "./Pagination/Pagination.js";
|
|
47
|
+
import { Slider as gr } from "./Slider/Slider.js";
|
|
48
|
+
import { BearLoader as Pr } from "./BearLoader/BearLoader.js";
|
|
49
|
+
import { Calendar as kr } from "./Calendar/Calendar.js";
|
|
50
|
+
import { DatePicker as Ar } from "./DatePicker/DatePicker.js";
|
|
51
|
+
import { TimePicker as Dr } from "./TimePicker/TimePicker.js";
|
|
52
|
+
import { Breadcrumbs as wr } from "./Breadcrumbs/Breadcrumbs.js";
|
|
53
|
+
import { Stepper as Fr, StepperControls as Gr } from "./Stepper/Stepper.js";
|
|
54
|
+
import { BottomNavigation as Vr } from "./BottomNavigation/BottomNavigation.js";
|
|
55
|
+
import { AppBar as Nr } from "./AppBar/AppBar.js";
|
|
56
56
|
import { Popover as Kr } from "./Popover/Popover.js";
|
|
57
57
|
import { Chip as Ur } from "./Chip/Chip.js";
|
|
58
|
-
import { TreeView as
|
|
59
|
-
import { Timeline as
|
|
60
|
-
import { Statistic as
|
|
61
|
-
import { EmptyState as
|
|
62
|
-
import { Image as
|
|
63
|
-
import { FileUpload as
|
|
64
|
-
import { NumberInput as
|
|
65
|
-
import { OTPInput as
|
|
66
|
-
import { ColorPicker as
|
|
67
|
-
import { ScrollArea as
|
|
68
|
-
import { Collapsible as
|
|
69
|
-
import { Kbd as
|
|
70
|
-
import { CopyButton as
|
|
71
|
-
import { Sidebar as
|
|
72
|
-
import { SidebarGroup as
|
|
58
|
+
import { TreeView as Qr } from "./TreeView/TreeView.js";
|
|
59
|
+
import { Timeline as _r } from "./Timeline/Timeline.js";
|
|
60
|
+
import { Statistic as zr } from "./Statistic/Statistic.js";
|
|
61
|
+
import { EmptyState as Yr } from "./EmptyState/EmptyState.js";
|
|
62
|
+
import { Image as $r } from "./Image/Image.js";
|
|
63
|
+
import { FileUpload as re } from "./FileUpload/FileUpload.js";
|
|
64
|
+
import { NumberInput as te } from "./NumberInput/NumberInput.js";
|
|
65
|
+
import { OTPInput as me } from "./OTPInput/OTPInput.js";
|
|
66
|
+
import { ColorPicker as xe } from "./ColorPicker/ColorPicker.js";
|
|
67
|
+
import { ScrollArea as ne } from "./ScrollArea/ScrollArea.js";
|
|
68
|
+
import { Collapsible as de } from "./Collapsible/Collapsible.js";
|
|
69
|
+
import { Kbd as ce } from "./Kbd/Kbd.js";
|
|
70
|
+
import { CopyButton as ue } from "./CopyButton/CopyButton.js";
|
|
71
|
+
import { Sidebar as Ie } from "./Sidebar/Sidebar.js";
|
|
72
|
+
import { SidebarGroup as he } from "./Sidebar/components/SidebarGroup/SidebarGroup.js";
|
|
73
73
|
import "react/jsx-runtime";
|
|
74
74
|
import "react";
|
|
75
|
-
import { Column as
|
|
76
|
-
import { Box as
|
|
77
|
-
import { Em as
|
|
78
|
-
import { Highlight as
|
|
79
|
-
import { Mark as
|
|
80
|
-
import { Editable as
|
|
75
|
+
import { Column as Be, Columns as ge } from "./Columns/Columns.js";
|
|
76
|
+
import { Box as Pe } from "./Box/Box.js";
|
|
77
|
+
import { Em as ke } from "./Em/Em.js";
|
|
78
|
+
import { Highlight as Ae } from "./Highlight/Highlight.js";
|
|
79
|
+
import { Mark as De } from "./Mark/Mark.js";
|
|
80
|
+
import { Editable as we } from "./Editable/Editable.js";
|
|
81
81
|
import { HoverCard as Fe } from "./HoverCard/HoverCard.js";
|
|
82
82
|
import { CodeBlock as ye } from "./CodeBlock/CodeBlock.js";
|
|
83
|
-
import { ActiveBar as
|
|
84
|
-
import { RichEditor as
|
|
83
|
+
import { ActiveBar as He } from "./ActiveBar/ActiveBar.js";
|
|
84
|
+
import { RichEditor as Je } from "./RichEditor/RichEditor.js";
|
|
85
85
|
import { StatCard as Oe } from "./StatCard/StatCard.js";
|
|
86
|
-
import { ActivityItem as
|
|
87
|
-
import { BarChart as
|
|
88
|
-
import { Sparkline as
|
|
89
|
-
import { Gauge as
|
|
90
|
-
import { SignPad as
|
|
91
|
-
import { Cascader as
|
|
92
|
-
import { Form as
|
|
93
|
-
import { useFormContext as
|
|
94
|
-
import { NotificationCenter as
|
|
95
|
-
import { PhoneInput as
|
|
96
|
-
import { CreditInput as
|
|
97
|
-
import { CommandPalette as
|
|
98
|
-
import {
|
|
86
|
+
import { ActivityItem as je } from "./ActivityItem/ActivityItem.js";
|
|
87
|
+
import { BarChart as Xe, Chart as _e, LineChart as qe, PieChart as ze } from "./Chart/Chart.js";
|
|
88
|
+
import { Sparkline as Ye } from "./Sparkline/Sparkline.js";
|
|
89
|
+
import { Gauge as $e } from "./Gauge/Gauge.js";
|
|
90
|
+
import { SignPad as rt } from "./SignPad/SignPad.js";
|
|
91
|
+
import { Cascader as tt } from "./Cascader/Cascader.js";
|
|
92
|
+
import { Form as mt } from "./Form/Form.js";
|
|
93
|
+
import { useFormContext as xt, useFormContextSafe as at } from "./Form/Form.context.js";
|
|
94
|
+
import { NotificationCenter as it } from "./NotificationCenter/NotificationCenter.js";
|
|
95
|
+
import { PhoneInput as Ct } from "./PhoneInput/PhoneInput.js";
|
|
96
|
+
import { CreditInput as lt } from "./CreditInput/CreditInput.js";
|
|
97
|
+
import { CommandPalette as st } from "./CommandPalette/CommandPalette.js";
|
|
98
|
+
import { SegmentedControl as St } from "./SegmentedControl/SegmentedControl.js";
|
|
99
|
+
import { TagsInput as Tt } from "./TagsInput/TagsInput.js";
|
|
100
|
+
import { BottomSheet as gt } from "./BottomSheet/BottomSheet.js";
|
|
101
|
+
import { SliderRange as Pt } from "./SliderRange/SliderRange.js";
|
|
102
|
+
import { MentionsInput as kt } from "./MentionsInput/MentionsInput.js";
|
|
103
|
+
import { Kanban as At } from "./Kanban/Kanban.js";
|
|
104
|
+
import { EmojiPicker as Dt } from "./EmojiPicker/EmojiPicker.js";
|
|
105
|
+
import { BEAR_EMOJIS as wt } from "./EmojiPicker/EmojiPicker.const.js";
|
|
106
|
+
import { VirtualList as Ft } from "./VirtualList/VirtualList.js";
|
|
107
|
+
import { BackTop as yt } from "./BackTop/BackTop.js";
|
|
108
|
+
import { Confetti as Ht } from "./Confetti/Confetti.js";
|
|
109
|
+
import { useConfetti as Jt } from "./Confetti/useConfetti.js";
|
|
110
|
+
import { Tour as Ot } from "./Tour/Tour.js";
|
|
111
|
+
import { useTour as jt } from "./Tour/useTour.js";
|
|
112
|
+
import { QRCode as Xt } from "./QRCode/QRCode.js";
|
|
113
|
+
import { JsonViewer as qt } from "./JsonViewer/JsonViewer.js";
|
|
114
|
+
import { DiffViewer as Wt } from "./DiffViewer/DiffViewer.js";
|
|
115
|
+
import { Chat as Zt } from "./Chat/Chat.js";
|
|
116
|
+
import { FloatingChat as op } from "./FloatingChat/FloatingChat.js";
|
|
117
|
+
import { Terminal as ep } from "./Terminal/Terminal.js";
|
|
118
|
+
import { Icon as pp } from "./Icon/Icon.js";
|
|
99
119
|
export {
|
|
100
120
|
Uo as Accordion,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
121
|
+
jo as AccordionItem,
|
|
122
|
+
He as ActiveBar,
|
|
123
|
+
je as ActivityItem,
|
|
124
|
+
F as Alert,
|
|
125
|
+
Nr as AppBar,
|
|
106
126
|
Fo as Autocomplete,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
127
|
+
Yo as Avatar,
|
|
128
|
+
Zo as AvatarGroup,
|
|
129
|
+
wt as BEAR_EMOJIS,
|
|
130
|
+
yt as BackTop,
|
|
131
|
+
g as Badge,
|
|
132
|
+
Xe as BarChart,
|
|
133
|
+
H as BearIcons,
|
|
134
|
+
Pr as BearLoader,
|
|
135
|
+
eo as BearLogo,
|
|
136
|
+
oo as BearPawIcon,
|
|
137
|
+
Vr as BottomNavigation,
|
|
138
|
+
gt as BottomSheet,
|
|
139
|
+
Pe as Box,
|
|
140
|
+
wr as Breadcrumbs,
|
|
141
|
+
C as Button,
|
|
142
|
+
l as ButtonGroup,
|
|
143
|
+
kr as Calendar,
|
|
144
|
+
s as Card,
|
|
122
145
|
I as CardBody,
|
|
123
146
|
S as CardCompound,
|
|
124
147
|
h as CardFooter,
|
|
125
|
-
|
|
148
|
+
T as CardHeader,
|
|
126
149
|
Ko as Carousel,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
150
|
+
tt as Cascader,
|
|
151
|
+
_e as Chart,
|
|
152
|
+
Zt as Chat,
|
|
153
|
+
Z as CheckIcon,
|
|
154
|
+
Lo as Checkbox,
|
|
155
|
+
J as ChevronDownIcon,
|
|
156
|
+
K as ChevronLeftIcon,
|
|
157
|
+
O as ChevronRightIcon,
|
|
158
|
+
U as ChevronUpIcon,
|
|
133
159
|
Ur as Chip,
|
|
134
160
|
ye as CodeBlock,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
161
|
+
de as Collapsible,
|
|
162
|
+
xe as ColorPicker,
|
|
163
|
+
Be as Column,
|
|
164
|
+
ge as Columns,
|
|
165
|
+
st as CommandPalette,
|
|
166
|
+
Ht as Confetti,
|
|
140
167
|
p as Container,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
168
|
+
ue as CopyButton,
|
|
169
|
+
lt as CreditInput,
|
|
170
|
+
Ho as DataTable,
|
|
171
|
+
Ar as DatePicker,
|
|
172
|
+
Wt as DiffViewer,
|
|
145
173
|
k as Divider,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
174
|
+
ao as Drawer,
|
|
175
|
+
Io as Dropdown,
|
|
176
|
+
we as Editable,
|
|
177
|
+
ke as Em,
|
|
178
|
+
po as EmberLogo,
|
|
179
|
+
Dt as EmojiPicker,
|
|
180
|
+
Yr as EmptyState,
|
|
181
|
+
nr as Fab,
|
|
182
|
+
re as FileUpload,
|
|
183
|
+
f as Flex,
|
|
184
|
+
op as FloatingChat,
|
|
185
|
+
mt as Form,
|
|
186
|
+
$e as Gauge,
|
|
157
187
|
a as Grid,
|
|
158
188
|
n as GridCompound,
|
|
159
189
|
i as GridItem,
|
|
160
|
-
|
|
190
|
+
Ae as Highlight,
|
|
161
191
|
Fe as HoverCard,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
er as
|
|
171
|
-
tr as
|
|
172
|
-
pr as
|
|
173
|
-
mr as
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
192
|
+
pp as Icon,
|
|
193
|
+
$r as Image,
|
|
194
|
+
Bo as Input,
|
|
195
|
+
qt as JsonViewer,
|
|
196
|
+
At as Kanban,
|
|
197
|
+
ce as Kbd,
|
|
198
|
+
qe as LineChart,
|
|
199
|
+
D as Link,
|
|
200
|
+
er as List,
|
|
201
|
+
tr as ListItem,
|
|
202
|
+
pr as ListItemButton,
|
|
203
|
+
mr as ListItemIcon,
|
|
204
|
+
fr as ListItemText,
|
|
205
|
+
xr as ListSubheader,
|
|
206
|
+
De as Mark,
|
|
207
|
+
kt as MentionsInput,
|
|
208
|
+
co as Menu,
|
|
209
|
+
lo as MenuDivider,
|
|
210
|
+
j as MenuIcon,
|
|
211
|
+
uo as MenuItem,
|
|
212
|
+
_ as MinusIcon,
|
|
213
|
+
fo as Modal,
|
|
214
|
+
wo as MultiSelect,
|
|
215
|
+
it as NotificationCenter,
|
|
216
|
+
te as NumberInput,
|
|
217
|
+
me as OTPInput,
|
|
218
|
+
Tr as Pagination,
|
|
219
|
+
P as Paper,
|
|
220
|
+
Ct as PhoneInput,
|
|
221
|
+
ze as PieChart,
|
|
222
|
+
q as PlusIcon,
|
|
190
223
|
Kr as Popover,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
224
|
+
or as Progress,
|
|
225
|
+
Xt as QRCode,
|
|
226
|
+
Mo as Radio,
|
|
227
|
+
Do as RadioGroup,
|
|
228
|
+
y as Rating,
|
|
229
|
+
Je as RichEditor,
|
|
230
|
+
ne as ScrollArea,
|
|
231
|
+
z as SearchIcon,
|
|
232
|
+
St as SegmentedControl,
|
|
233
|
+
bo as Select,
|
|
234
|
+
W as SettingsIcon,
|
|
235
|
+
Ie as Sidebar,
|
|
236
|
+
he as SidebarGroup,
|
|
237
|
+
rt as SignPad,
|
|
238
|
+
ur as Skeleton,
|
|
239
|
+
sr as SkeletonAvatar,
|
|
240
|
+
Ir as SkeletonCard,
|
|
241
|
+
Sr as SkeletonText,
|
|
242
|
+
gr as Slider,
|
|
243
|
+
Pt as SliderRange,
|
|
244
|
+
Ye as Sparkline,
|
|
245
|
+
ho as SpeedDial,
|
|
246
|
+
w as Spinner,
|
|
211
247
|
Oe as StatCard,
|
|
212
|
-
|
|
248
|
+
zr as Statistic,
|
|
213
249
|
Fr as Stepper,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
250
|
+
Gr as StepperControls,
|
|
251
|
+
vo as Switch,
|
|
252
|
+
Xo as Tab,
|
|
253
|
+
_o as TabList,
|
|
254
|
+
qo as TabPanel,
|
|
255
|
+
zo as Tabs,
|
|
256
|
+
Tt as TagsInput,
|
|
257
|
+
ep as Terminal,
|
|
258
|
+
Dr as TimePicker,
|
|
259
|
+
_r as Timeline,
|
|
260
|
+
dr as ToastContainer,
|
|
261
|
+
Cr as ToastProvider,
|
|
262
|
+
io as Tooltip,
|
|
263
|
+
Ot as Tour,
|
|
225
264
|
yo as TransferList,
|
|
226
|
-
|
|
265
|
+
Qr as TreeView,
|
|
227
266
|
A as Typography,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
267
|
+
Ft as VirtualList,
|
|
268
|
+
Q as XIcon,
|
|
269
|
+
No as createColumns,
|
|
270
|
+
Jt as useConfetti,
|
|
271
|
+
xt as useFormContext,
|
|
272
|
+
at as useFormContextSafe,
|
|
273
|
+
cr as useToast,
|
|
274
|
+
jt as useTour
|
|
233
275
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("react/jsx-runtime"),c=require("react"),v=require("./defaultTheme.cjs"),$=c.createContext(null),Z="bear-theme-mode",K=["primary","secondary","success","warning","danger","info","ghost","outline","error"],_=t=>{const o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null},q=(t,o,s)=>"#"+[t,o,s].map(l=>{const b=Math.max(0,Math.min(255,Math.round(l))).toString(16);return b.length===1?"0"+b:b}).join(""),h=(t,o)=>{const s=_(t);if(!s)return t;const l=o/100;return q(s.r+(255-s.r)*l,s.g+(255-s.g)*l,s.b+(255-s.b)*l)},P=(t,o)=>{const s=_(t);if(!s)return t;const l=1-o/100;return q(s.r*l,s.g*l,s.b*l)},ee=t=>({50:h(t,95),100:h(t,85),200:h(t,70),300:h(t,50),400:h(t,25),500:t,600:P(t,10),700:P(t,25),800:P(t,40),900:P(t,55),950:P(t,70)}),te=t=>typeof t!="string"?!1:t.startsWith("#")||t.startsWith("rgb")||/^[a-z]+$/i.test(t),z={red:"#ef4444",blue:"#3b82f6",green:"#22c55e",yellow:"#eab308",orange:"#f97316",purple:"#a855f7",pink:"#ec4899",cyan:"#06b6d4",teal:"#14b8a6",indigo:"#6366f1",violet:"#8b5cf6",rose:"#f43f5e",amber:"#f59e0b",lime:"#84cc16",emerald:"#10b981",sky:"#0ea5e9",slate:"#64748b",gray:"#6b7280",zinc:"#71717a",neutral:"#737373",stone:"#78716c",white:"#ffffff",black:"#000000"},re=t=>{const o=t.toLowerCase();return z[o]?z[o]:(t.startsWith("#"),t)};function w(t,o){if(!o)return t;const s={...t},l=t,b=o,k=s;for(const p in b)if(Object.prototype.hasOwnProperty.call(b,p)){const i=b[p],d=l[p];i&&typeof i=="object"&&!Array.isArray(i)&&d&&typeof d=="object"&&!Array.isArray(d)?k[p]=w(d,i):i!==void 0&&(k[p]=i)}return s}const f=(t,o,s)=>{Object.entries(s).forEach(([l,b])=>{t.style.setProperty(`--bear-${o}-${l}`,b)})},se=(t,o,s)=>{t.style.setProperty(`--bear-${o}-bg`,s.bg),s.bgHover&&t.style.setProperty(`--bear-${o}-bg-hover`,s.bgHover),s.bgActive&&t.style.setProperty(`--bear-${o}-bg-active`,s.bgActive),s.text&&t.style.setProperty(`--bear-${o}-text`,s.text),s.border&&t.style.setProperty(`--bear-${o}-border`,s.border),s.ring&&t.style.setProperty(`--bear-${o}-ring`,s.ring)},oe=({children:t,defaultMode:o="light",theme:s,components:l={},variants:b={},customVariants:k={},customTypography:p={},persistPreference:i=!0,storageKey:d=Z})=>{const[u,F]=c.useState(()=>{if(typeof window<"u"&&i){const e=localStorage.getItem(d);if(e==="light"||e==="dark")return e;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark"}return o}),[x,W]=c.useState(s||{}),[j,N]=c.useState(l),[m,U]=c.useState(b),[y,G]=c.useState(k),[g,Y]=c.useState(p),O=c.useMemo(()=>{if(!x||Object.keys(x).length===0)return{};const e={...x};if(e.colors){const a=["primary","secondary","success","warning","danger","info","neutral"];for(const r of a){const R=e.colors[r];if(te(R)){const Q=re(R);e.colors[r]=ee(Q)}}}return e},[x]),n=c.useMemo(()=>{const e=u==="dark"?v.defaultDarkTheme:v.defaultLightTheme;return Object.keys(O).length===0?e:w(e,O)},[u,O]),T=c.useCallback(e=>{F(e),typeof window<"u"&&i&&localStorage.setItem(d,e)},[i,d]),B=c.useCallback(()=>{T(u==="light"?"dark":"light")},[u,T]),S=c.useCallback(e=>{W(a=>w(a,e))},[]),M=c.useCallback((e,a)=>{N(r=>({...r,[e]:{...r[e]||{},...a}}))},[]),V=c.useCallback((e,a)=>{U(r=>({...r,[e]:{...r[e]||{},...a}}))},[]),A=c.useCallback(e=>K.includes(e)||e in y,[y]),E=c.useCallback(e=>y[e],[y]),I=c.useCallback((e,a)=>{G(r=>({...r,[e]:a}))},[]),L=c.useCallback(e=>e in g,[g]),D=c.useCallback(e=>g[e],[g]),H=c.useCallback((e,a)=>{Y(r=>({...r,[e]:a}))},[]);c.useEffect(()=>{if(typeof document<"u"){const e=document.documentElement;u==="dark"?e.classList.add("dark"):e.classList.remove("dark"),e.classList.remove("bear-light","bear-dark"),e.classList.add(`bear-${u}`),f(e,"primary",n.colors.primary),f(e,"secondary",n.colors.secondary),f(e,"success",n.colors.success),f(e,"warning",n.colors.warning),f(e,"danger",n.colors.danger),f(e,"info",n.colors.info),f(e,"neutral",n.colors.neutral),e.style.setProperty("--bear-bg-primary",n.colors.background.primary),e.style.setProperty("--bear-bg-secondary",n.colors.background.secondary),e.style.setProperty("--bear-bg-tertiary",n.colors.background.tertiary),e.style.setProperty("--bear-text-primary",n.colors.text.primary),e.style.setProperty("--bear-text-secondary",n.colors.text.secondary),e.style.setProperty("--bear-text-muted",n.colors.text.muted),e.style.setProperty("--bear-text-inverted",n.colors.text.inverted),e.style.setProperty("--bear-border-default",n.colors.border.default),e.style.setProperty("--bear-border-subtle",n.colors.border.subtle),e.style.setProperty("--bear-border-strong",n.colors.border.strong),m.Button&&Object.entries(m.Button).forEach(([a,r])=>{r&&(r.bg&&e.style.setProperty(`--bear-btn-${a}-bg`,r.bg),r.bgHover&&e.style.setProperty(`--bear-btn-${a}-bg-hover`,r.bgHover),r.bgActive&&e.style.setProperty(`--bear-btn-${a}-bg-active`,r.bgActive),r.bgDisabled&&e.style.setProperty(`--bear-btn-${a}-bg-disabled`,r.bgDisabled),r.text&&e.style.setProperty(`--bear-btn-${a}-text`,r.text),r.textDisabled&&e.style.setProperty(`--bear-btn-${a}-text-disabled`,r.textDisabled),r.border&&e.style.setProperty(`--bear-btn-${a}-border`,r.border),r.borderHover&&e.style.setProperty(`--bear-btn-${a}-border-hover`,r.borderHover),r.ring&&e.style.setProperty(`--bear-btn-${a}-ring`,r.ring))}),Object.entries(y).forEach(([a,r])=>{se(e,a,r)}),e.style.setProperty("--bear-font-sans",n.typography.fontFamily.sans),e.style.setProperty("--bear-font-mono",n.typography.fontFamily.mono),Object.entries(n.shadows).forEach(([a,r])=>{e.style.setProperty(`--bear-shadow-${a}`,r)}),Object.entries(n.borderRadius).forEach(([a,r])=>{e.style.setProperty(`--bear-radius-${a}`,r)}),Object.entries(n.spacing).forEach(([a,r])=>{e.style.setProperty(`--bear-spacing-${a}`,r)})}},[n,u,m,y]);const J=c.useMemo(()=>({theme:n,mode:u,setMode:T,toggleMode:B,updateTheme:S,components:j,variants:m,customVariants:y,hasVariant:A,getVariant:E,addVariant:I,customTypography:g,hasTypography:L,getTypography:D,addTypography:H,registerComponent:M,registerVariant:V}),[n,u,T,B,S,j,m,y,A,E,I,g,L,D,H,M,V]);return X.jsx($.Provider,{value:J,children:t})},C=()=>{const t=c.useContext($);if(!t)throw new Error("useBear must be used within a BearProvider");return t},ae=()=>{const{theme:t}=C();return t},ne=()=>{const t=c.useContext($);return t?t.theme:v.defaultDarkTheme},ce=()=>{const{mode:t,setMode:o,toggleMode:s}=C();return{mode:t,setMode:o,toggleMode:s}};exports.BearContext=$;exports.BearProvider=oe;exports.useBear=C;exports.useBearMode=ce;exports.useBearTheme=ae;exports.useBearThemeOptional=ne;
|