@forgedevstack/bear 1.3.0 → 1.3.2
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 +26 -0
- package/dist/components/Accordion/Accordion.cjs +1 -1
- package/dist/components/Accordion/Accordion.context.cjs +1 -0
- package/dist/components/Accordion/Accordion.context.d.ts +2 -0
- package/dist/components/Accordion/Accordion.context.js +5 -0
- package/dist/components/Accordion/Accordion.d.ts +2 -22
- package/dist/components/Accordion/Accordion.js +21 -73
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.const.d.ts +1 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +2 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.js +60 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.types.d.ts +1 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.utils.cjs +1 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.utils.d.ts +1 -0
- package/dist/components/Accordion/components/AccordionItem/AccordionItem.utils.js +4 -0
- package/dist/components/Accordion/components/AccordionItem/index.d.ts +2 -0
- package/dist/components/Accordion/components/index.d.ts +2 -0
- package/dist/components/Accordion/hooks/index.d.ts +1 -0
- package/dist/components/Accordion/hooks/useAccordion.cjs +1 -0
- package/dist/components/Accordion/hooks/useAccordion.d.ts +2 -0
- package/dist/components/Accordion/hooks/useAccordion.js +12 -0
- package/dist/components/Accordion/index.d.ts +3 -3
- package/dist/components/ActionIcon/ActionIcon.cjs +1 -1
- package/dist/components/ActionIcon/ActionIcon.const.cjs +1 -1
- package/dist/components/ActionIcon/ActionIcon.const.d.ts +0 -1
- package/dist/components/ActionIcon/ActionIcon.const.js +1 -2
- package/dist/components/ActionIcon/ActionIcon.d.ts +4 -2
- package/dist/components/ActionIcon/ActionIcon.js +37 -32
- package/dist/components/ActionIcon/ActionIcon.types.d.ts +6 -4
- package/dist/components/ActiveBar/ActiveBar.cjs +1 -8
- package/dist/components/ActiveBar/ActiveBar.const.cjs +1 -0
- package/dist/components/ActiveBar/ActiveBar.const.d.ts +7 -1
- package/dist/components/ActiveBar/ActiveBar.const.js +28 -0
- package/dist/components/ActiveBar/ActiveBar.js +79 -72
- package/dist/components/ActiveBar/ActiveBar.types.d.ts +4 -2
- package/dist/components/ActivityItem/ActivityItem.cjs +1 -1
- package/dist/components/ActivityItem/ActivityItem.d.ts +1 -6
- package/dist/components/ActivityItem/ActivityItem.js +47 -40
- package/dist/components/Affix/Affix.cjs +1 -1
- package/dist/components/Affix/Affix.d.ts +1 -2
- package/dist/components/Affix/Affix.js +68 -53
- package/dist/components/Affix/Affix.types.d.ts +13 -0
- package/dist/components/Affix/Affix.utils.cjs +1 -0
- package/dist/components/Affix/Affix.utils.d.ts +3 -0
- package/dist/components/Affix/Affix.utils.js +10 -0
- package/dist/components/Affix/index.d.ts +1 -1
- 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 +0 -10
- package/dist/components/Alert/Alert.const.js +30 -10
- package/dist/components/Alert/Alert.d.ts +1 -14
- package/dist/components/Alert/Alert.js +55 -80
- package/dist/components/AlertDialog/AlertDialog.cjs +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +1 -2
- package/dist/components/AlertDialog/AlertDialog.js +75 -67
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -15
- package/dist/components/AlertDialog/index.d.ts +0 -1
- package/dist/components/Anchor/Anchor.cjs +1 -1
- package/dist/components/Anchor/Anchor.d.ts +1 -2
- package/dist/components/Anchor/Anchor.js +69 -61
- package/dist/components/AnimatedCounter/AnimatedCounter.cjs +1 -1
- package/dist/components/AnimatedCounter/AnimatedCounter.d.ts +1 -2
- package/dist/components/AnimatedCounter/AnimatedCounter.js +45 -43
- package/dist/components/AnimatedCounter/AnimatedCounter.types.d.ts +2 -12
- package/dist/components/AppBar/AppBar.cjs +1 -1
- package/dist/components/AppBar/AppBar.const.cjs +1 -1
- package/dist/components/AppBar/AppBar.const.d.ts +4 -36
- package/dist/components/AppBar/AppBar.const.js +7 -27
- package/dist/components/AppBar/AppBar.d.ts +1 -2
- package/dist/components/AppBar/AppBar.js +43 -64
- package/dist/components/AppShell/AppShell.cjs +1 -1
- package/dist/components/AppShell/AppShell.const.cjs +1 -1
- package/dist/components/AppShell/AppShell.const.d.ts +0 -17
- package/dist/components/AppShell/AppShell.const.js +3 -20
- package/dist/components/AppShell/AppShell.d.ts +1 -2
- package/dist/components/AppShell/AppShell.js +54 -50
- package/dist/components/AspectRatio/AspectRatio.cjs +1 -1
- package/dist/components/AspectRatio/AspectRatio.d.ts +1 -2
- package/dist/components/AspectRatio/AspectRatio.js +23 -21
- package/dist/components/Autocomplete/Autocomplete.cjs +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -16
- package/dist/components/Autocomplete/Autocomplete.js +120 -134
- package/dist/components/Autocomplete/hooks/index.d.ts +1 -0
- package/dist/components/Autocomplete/hooks/useAutocomplete.cjs +1 -0
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +25 -0
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +78 -0
- package/dist/components/Avatar/Avatar.cjs +1 -1
- package/dist/components/Avatar/Avatar.const.cjs +1 -1
- package/dist/components/Avatar/Avatar.const.d.ts +4 -7
- package/dist/components/Avatar/Avatar.const.js +12 -12
- package/dist/components/Avatar/Avatar.d.ts +2 -16
- package/dist/components/Avatar/Avatar.js +51 -66
- package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.cjs +1 -0
- package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.const.d.ts +1 -0
- package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.d.ts +2 -0
- package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.js +39 -0
- package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.types.d.ts +1 -0
- package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.utils.cjs +1 -0
- package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.utils.d.ts +5 -0
- package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.utils.js +9 -0
- package/dist/components/Avatar/components/AvatarGroup/index.d.ts +2 -0
- package/dist/components/Avatar/components/index.d.ts +2 -0
- package/dist/components/Avatar/index.d.ts +2 -1
- package/dist/components/BackTop/BackTop.cjs +1 -1
- package/dist/components/BackTop/BackTop.const.cjs +1 -1
- package/dist/components/BackTop/BackTop.const.d.ts +21 -27
- package/dist/components/BackTop/BackTop.const.js +13 -7
- package/dist/components/BackTop/BackTop.d.ts +1 -19
- package/dist/components/BackTop/BackTop.js +65 -66
- package/dist/components/BackTop/BackTop.types.d.ts +2 -14
- package/dist/components/Backdrop/Backdrop.cjs +1 -1
- package/dist/components/Backdrop/Backdrop.d.ts +1 -2
- package/dist/components/Backdrop/Backdrop.js +39 -38
- package/dist/components/Backdrop/index.d.ts +1 -1
- package/dist/components/Badge/Badge.cjs +1 -1
- package/dist/components/Badge/Badge.constants.cjs +1 -1
- package/dist/components/Badge/Badge.constants.d.ts +0 -2
- package/dist/components/Badge/Badge.constants.js +6 -7
- package/dist/components/Badge/Badge.d.ts +1 -12
- package/dist/components/Badge/Badge.js +45 -41
- package/dist/components/Badge/Badge.types.d.ts +0 -5
- package/dist/components/Banner/Banner.cjs +1 -1
- package/dist/components/Banner/Banner.const.cjs +1 -1
- package/dist/components/Banner/Banner.const.d.ts +2 -17
- package/dist/components/Banner/Banner.const.js +16 -25
- package/dist/components/Banner/Banner.d.ts +1 -2
- package/dist/components/Banner/Banner.js +58 -57
- package/dist/components/Biometric/Biometric.cjs +1 -1
- package/dist/components/Biometric/Biometric.const.cjs +1 -0
- package/dist/components/Biometric/Biometric.const.d.ts +7 -1
- package/dist/components/Biometric/Biometric.const.js +31 -0
- package/dist/components/Biometric/Biometric.d.ts +1 -2
- package/dist/components/Biometric/Biometric.js +57 -106
- package/dist/components/Biometric/Biometric.types.d.ts +2 -1
- package/dist/components/Biometric/Biometric.utils.cjs +1 -0
- package/dist/components/Biometric/Biometric.utils.d.ts +9 -0
- package/dist/components/Biometric/Biometric.utils.js +5 -0
- package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.cjs +1 -0
- package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.const.cjs +1 -0
- package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.const.d.ts +5 -0
- package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.const.js +11 -0
- package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.d.ts +2 -0
- package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.js +21 -0
- package/dist/components/Biometric/components/BiometricIcon/helpers/FaceSvg.cjs +1 -0
- package/dist/components/Biometric/components/BiometricIcon/helpers/FaceSvg.d.ts +4 -0
- package/dist/components/Biometric/components/BiometricIcon/helpers/FaceSvg.js +17 -0
- package/dist/components/Biometric/components/BiometricIcon/helpers/FingerprintSvg.cjs +1 -0
- package/dist/components/Biometric/components/BiometricIcon/helpers/FingerprintSvg.d.ts +4 -0
- package/dist/components/Biometric/components/BiometricIcon/helpers/FingerprintSvg.js +18 -0
- package/dist/components/Biometric/components/BiometricIcon/helpers/IrisSvg.cjs +1 -0
- package/dist/components/Biometric/components/BiometricIcon/helpers/IrisSvg.d.ts +4 -0
- package/dist/components/Biometric/components/BiometricIcon/helpers/IrisSvg.js +15 -0
- package/dist/components/Biometric/components/BiometricIcon/index.d.ts +1 -0
- package/dist/components/Biometric/components/BiometricScanRipple/BiometricScanRipple.cjs +1 -0
- package/dist/components/Biometric/components/BiometricScanRipple/BiometricScanRipple.d.ts +2 -0
- package/dist/components/Biometric/components/BiometricScanRipple/BiometricScanRipple.js +27 -0
- package/dist/components/Biometric/components/BiometricScanRipple/BiometricScanRipple.types.d.ts +3 -0
- package/dist/components/Biometric/components/BiometricScanRipple/index.d.ts +2 -0
- package/dist/components/Biometric/components/BiometricTrigger/BiometricTrigger.cjs +1 -0
- package/dist/components/Biometric/components/BiometricTrigger/BiometricTrigger.d.ts +2 -0
- package/dist/components/Biometric/components/BiometricTrigger/BiometricTrigger.js +61 -0
- package/dist/components/Biometric/components/BiometricTrigger/BiometricTrigger.types.d.ts +10 -0
- package/dist/components/Biometric/components/BiometricTrigger/index.d.ts +2 -0
- package/dist/components/Biometric/components/index.d.ts +3 -0
- package/dist/components/Biometric/useBiometric.cjs +1 -1
- package/dist/components/Biometric/useBiometric.js +18 -16
- package/dist/components/Blockquote/Blockquote.cjs +1 -1
- package/dist/components/Blockquote/Blockquote.const.cjs +1 -1
- package/dist/components/Blockquote/Blockquote.const.d.ts +0 -2
- package/dist/components/Blockquote/Blockquote.const.js +2 -4
- package/dist/components/Blockquote/Blockquote.d.ts +1 -2
- package/dist/components/Blockquote/Blockquote.js +36 -37
- package/dist/components/BottomNavigation/BottomNavigation.cjs +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.const.cjs +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.const.d.ts +2 -8
- package/dist/components/BottomNavigation/BottomNavigation.const.js +3 -6
- package/dist/components/BottomNavigation/BottomNavigation.d.ts +1 -2
- package/dist/components/BottomNavigation/BottomNavigation.js +42 -41
- package/dist/components/BottomNavigation/BottomNavigation.types.d.ts +2 -1
- package/dist/components/BottomNavigation/index.d.ts +1 -1
- package/dist/components/BottomSheet/BottomSheet.cjs +1 -1
- package/dist/components/BottomSheet/BottomSheet.const.cjs +1 -0
- package/dist/components/BottomSheet/BottomSheet.const.d.ts +2 -1
- package/dist/components/BottomSheet/BottomSheet.const.js +10 -0
- package/dist/components/BottomSheet/BottomSheet.d.ts +1 -2
- package/dist/components/BottomSheet/BottomSheet.js +119 -115
- package/dist/components/BottomSheet/BottomSheet.types.d.ts +2 -1
- package/dist/components/BottomSheet/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Button/Button.types.d.ts +1 -2
- package/dist/components/Calendar/Calendar.cjs +1 -1
- package/dist/components/Calendar/Calendar.js +127 -108
- package/dist/components/Calendar/Calendar.types.d.ts +7 -7
- package/dist/components/Chart/BarChart.cjs +1 -1
- package/dist/components/Chart/BarChart.d.ts +1 -2
- package/dist/components/Chart/BarChart.js +81 -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 +19 -23
- package/dist/components/Chart/Chart.types.d.ts +11 -19
- 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 +59 -0
- package/dist/components/Chart/LineChart.cjs +1 -1
- package/dist/components/Chart/LineChart.d.ts +1 -2
- package/dist/components/Chart/LineChart.js +51 -55
- package/dist/components/Chart/PieChart.cjs +1 -1
- package/dist/components/Chart/PieChart.d.ts +1 -2
- package/dist/components/Chart/PieChart.js +121 -106
- 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 +100 -0
- package/dist/components/Chart/index.d.ts +3 -1
- package/dist/components/Chat/Chat.cjs +1 -1
- package/dist/components/Chat/Chat.js +4 -3
- 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.const.cjs +1 -0
- package/dist/components/DatePicker/DatePicker.const.d.ts +16 -0
- package/dist/components/DatePicker/DatePicker.const.js +20 -0
- package/dist/components/DatePicker/DatePicker.js +124 -121
- package/dist/components/DatePicker/DatePicker.types.d.ts +3 -3
- package/dist/components/DateRangePicker/DateRangePicker.cjs +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.const.cjs +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.const.d.ts +3 -20
- package/dist/components/DateRangePicker/DateRangePicker.const.js +8 -54
- package/dist/components/DateRangePicker/DateRangePicker.js +125 -116
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +2 -1
- package/dist/components/DateRangePicker/DateRangePicker.utils.cjs +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.utils.d.ts +6 -0
- package/dist/components/DateRangePicker/DateRangePicker.utils.js +64 -20
- package/dist/components/Drawer/Drawer.cjs +1 -1
- package/dist/components/Drawer/Drawer.const.cjs +1 -1
- package/dist/components/Drawer/Drawer.const.d.ts +2 -11
- package/dist/components/Drawer/Drawer.const.js +6 -55
- package/dist/components/Drawer/Drawer.d.ts +1 -2
- package/dist/components/Drawer/Drawer.js +87 -131
- package/dist/components/Drawer/Drawer.types.d.ts +16 -3
- 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 +51 -0
- package/dist/components/Dropdown/Dropdown.cjs +1 -1
- package/dist/components/Dropdown/Dropdown.const.cjs +1 -1
- package/dist/components/Dropdown/Dropdown.const.d.ts +4 -0
- package/dist/components/Dropdown/Dropdown.const.js +6 -2
- package/dist/components/Dropdown/Dropdown.js +109 -116
- package/dist/components/Dropdown/Dropdown.types.d.ts +2 -2
- package/dist/components/Editable/Editable.cjs +1 -1
- package/dist/components/Editable/Editable.js +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.js +10 -9
- 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/GradientText/GradientText.cjs +1 -1
- package/dist/components/GradientText/GradientText.const.cjs +1 -1
- package/dist/components/GradientText/GradientText.const.d.ts +6 -1
- package/dist/components/GradientText/GradientText.const.js +11 -5
- package/dist/components/GradientText/GradientText.js +20 -19
- 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 +2 -591
- 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/MediaPlayer/MediaPlayer.types.d.ts +1 -1
- package/dist/components/MessageList/MessageList.cjs +1 -1
- package/dist/components/MessageList/MessageList.js +37 -36
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/OverlayPortal/OverlayPortal.cjs +1 -0
- package/dist/components/OverlayPortal/OverlayPortal.const.cjs +1 -0
- package/dist/components/OverlayPortal/OverlayPortal.const.d.ts +4 -0
- package/dist/components/OverlayPortal/OverlayPortal.const.js +12 -0
- package/dist/components/OverlayPortal/OverlayPortal.d.ts +2 -0
- package/dist/components/OverlayPortal/OverlayPortal.js +45 -0
- package/dist/components/OverlayPortal/OverlayPortal.types.d.ts +13 -0
- package/dist/components/OverlayPortal/index.d.ts +2 -0
- 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 +5 -5
- package/dist/components/PropsPlayground/PropsPlayground.cjs +1 -1
- package/dist/components/PropsPlayground/PropsPlayground.js +1 -1
- package/dist/components/Rating/Rating.cjs +1 -1
- package/dist/components/Rating/Rating.const.cjs +1 -1
- package/dist/components/Rating/Rating.const.d.ts +4 -12
- package/dist/components/Rating/Rating.const.js +15 -14
- package/dist/components/Rating/Rating.d.ts +1 -13
- package/dist/components/Rating/Rating.js +98 -136
- package/dist/components/Rating/Rating.types.d.ts +12 -18
- package/dist/components/Rating/Rating.utils.cjs +1 -0
- package/dist/components/Rating/Rating.utils.d.ts +6 -0
- package/dist/components/Rating/Rating.utils.js +18 -0
- package/dist/components/Rating/components/StarIcon/StarIcon.cjs +1 -0
- package/dist/components/Rating/components/StarIcon/StarIcon.d.ts +2 -0
- package/dist/components/Rating/components/StarIcon/StarIcon.js +14 -0
- package/dist/components/Rating/components/StarIcon/index.d.ts +1 -0
- package/dist/components/Rating/index.d.ts +1 -1
- package/dist/components/ResizablePanel/ResizablePanel.cjs +1 -1
- package/dist/components/ResizablePanel/ResizablePanel.const.cjs +1 -1
- package/dist/components/ResizablePanel/ResizablePanel.const.d.ts +1 -11
- package/dist/components/ResizablePanel/ResizablePanel.const.js +3 -9
- package/dist/components/ResizablePanel/ResizablePanel.d.ts +1 -16
- package/dist/components/ResizablePanel/ResizablePanel.js +44 -51
- package/dist/components/ResizablePanel/ResizablePanel.utils.cjs +1 -1
- package/dist/components/ResizablePanel/ResizablePanel.utils.d.ts +4 -9
- package/dist/components/ResizablePanel/ResizablePanel.utils.js +9 -9
- package/dist/components/ResizablePanel/useResizablePanel.cjs +1 -0
- package/dist/components/ResizablePanel/useResizablePanel.d.ts +12 -0
- package/dist/components/ResizablePanel/useResizablePanel.js +33 -0
- package/dist/components/ResizableTextarea/ResizableTextarea.cjs +1 -1
- package/dist/components/ResizableTextarea/ResizableTextarea.d.ts +1 -2
- package/dist/components/ResizableTextarea/ResizableTextarea.js +106 -91
- package/dist/components/ResizableTextarea/ResizableTextarea.utils.cjs +1 -0
- package/dist/components/ResizableTextarea/ResizableTextarea.utils.d.ts +3 -0
- package/dist/components/ResizableTextarea/ResizableTextarea.utils.js +12 -0
- package/dist/components/Result/Result.cjs +1 -1
- package/dist/components/Result/Result.const.cjs +1 -1
- package/dist/components/Result/Result.const.d.ts +0 -8
- package/dist/components/Result/Result.const.js +7 -14
- package/dist/components/Result/Result.d.ts +1 -3
- package/dist/components/Result/Result.js +37 -24
- package/dist/components/Result/Result.utils.cjs +1 -0
- package/dist/components/Result/Result.utils.d.ts +4 -0
- package/dist/components/Result/Result.utils.js +22 -0
- package/dist/components/Result/index.d.ts +1 -1
- package/dist/components/RichEditor/RichEditor.cjs +1 -1
- package/dist/components/RichEditor/RichEditor.const.cjs +1 -141
- package/dist/components/RichEditor/RichEditor.const.d.ts +22 -11
- package/dist/components/RichEditor/RichEditor.const.js +84 -197
- package/dist/components/RichEditor/RichEditor.d.ts +1 -17
- package/dist/components/RichEditor/RichEditor.js +62 -352
- package/dist/components/RichEditor/RichEditor.types.d.ts +1 -1
- package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.cjs +1 -1
- package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.d.ts +1 -3
- package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.js +17 -17
- package/dist/components/RichEditor/components/ToolbarButton/index.d.ts +1 -1
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.cjs +1 -1
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.const.cjs +1 -0
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.const.d.ts +7 -0
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.const.js +5 -0
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.d.ts +1 -3
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.js +114 -115
- package/dist/components/RichEditor/components/ToolbarColorPicker/index.d.ts +1 -1
- package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.cjs +1 -1
- package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.d.ts +1 -3
- package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.js +66 -43
- package/dist/components/RichEditor/components/ToolbarDropdown/index.d.ts +1 -1
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.cjs +1 -1
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.d.ts +2 -4
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.js +50 -52
- package/dist/components/RichEditor/components/ToolbarSignature/ToolbarSignature.cjs +1 -0
- package/dist/components/RichEditor/components/ToolbarSignature/ToolbarSignature.d.ts +2 -0
- package/dist/components/RichEditor/components/ToolbarSignature/ToolbarSignature.js +78 -0
- package/dist/components/RichEditor/components/ToolbarSignature/ToolbarSignature.types.d.ts +5 -0
- package/dist/components/RichEditor/components/ToolbarSignature/index.d.ts +2 -0
- package/dist/components/RichEditor/components/index.d.ts +1 -0
- package/dist/components/RichEditor/helpers/IconRender.cjs +1 -0
- package/dist/components/RichEditor/helpers/IconRender.d.ts +1 -0
- package/dist/components/RichEditor/helpers/IconRender.js +29 -0
- package/dist/components/RichEditor/helpers/formatHelpers.cjs +1 -1
- package/dist/components/RichEditor/helpers/formatHelpers.d.ts +0 -42
- package/dist/components/RichEditor/helpers/formatHelpers.js +32 -21
- package/dist/components/RichEditor/helpers/toolbarItemRender.cjs +1 -0
- package/dist/components/RichEditor/helpers/toolbarItemRender.d.ts +8 -0
- package/dist/components/RichEditor/helpers/toolbarItemRender.js +183 -0
- package/dist/components/RichEditor/index.d.ts +1 -1
- package/dist/components/RichEditor/useRichEditor/index.d.ts +2 -0
- package/dist/components/RichEditor/useRichEditor/useRichEditor.cjs +1 -0
- package/dist/components/RichEditor/useRichEditor/useRichEditor.d.ts +2 -0
- package/dist/components/RichEditor/useRichEditor/useRichEditor.js +140 -0
- package/dist/components/RichEditor/useRichEditor/useRichEditor.types.d.ts +39 -0
- 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 -2
- package/dist/components/RingProgress/RingProgress.const.js +7 -5
- package/dist/components/RingProgress/RingProgress.d.ts +1 -3
- package/dist/components/RingProgress/RingProgress.js +48 -44
- package/dist/components/RingProgress/RingProgress.types.d.ts +1 -0
- package/dist/components/RingProgress/RingProgress.utils.cjs +1 -0
- package/dist/components/RingProgress/RingProgress.utils.d.ts +13 -0
- package/dist/components/RingProgress/RingProgress.utils.js +16 -0
- package/dist/components/RingProgress/index.d.ts +1 -1
- package/dist/components/ScrollArea/ScrollArea.cjs +1 -1
- package/dist/components/ScrollArea/ScrollArea.const.cjs +1 -0
- package/dist/components/ScrollArea/ScrollArea.const.d.ts +15 -1
- package/dist/components/ScrollArea/ScrollArea.const.js +18 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +1 -2
- package/dist/components/ScrollArea/ScrollArea.js +24 -35
- package/dist/components/ScrollArea/ScrollArea.utils.cjs +1 -0
- package/dist/components/ScrollArea/ScrollArea.utils.d.ts +1 -0
- package/dist/components/ScrollArea/ScrollArea.utils.js +7 -0
- package/dist/components/SegmentedControl/SegmentedControl.cjs +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.const.cjs +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.const.d.ts +5 -1
- package/dist/components/SegmentedControl/SegmentedControl.const.js +8 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -2
- package/dist/components/SegmentedControl/SegmentedControl.js +47 -45
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.const.cjs +1 -1
- package/dist/components/Select/Select.const.js +6 -7
- package/dist/components/Select/Select.js +110 -124
- package/dist/components/Select/Select.types.d.ts +2 -1
- 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/SignPad/SignPad.const.cjs +1 -1
- package/dist/components/SignPad/SignPad.const.d.ts +3 -3
- package/dist/components/SignPad/SignPad.const.js +3 -3
- 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/Stepper/Stepper.cjs +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Tabs/TabList.cjs +1 -1
- package/dist/components/Tabs/TabList.js +1 -1
- package/dist/components/TimePicker/TimePicker.cjs +1 -1
- package/dist/components/TimePicker/TimePicker.constants.cjs +1 -1
- package/dist/components/TimePicker/TimePicker.constants.d.ts +5 -1
- package/dist/components/TimePicker/TimePicker.constants.js +29 -25
- package/dist/components/TimePicker/TimePicker.js +110 -82
- package/dist/components/TimePicker/TimePicker.types.d.ts +4 -3
- 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/Transition/Transition.cjs +1 -1
- package/dist/components/Transition/Transition.js +56 -53
- package/dist/components/TreeSelect/TreeSelect.cjs +1 -1
- package/dist/components/TreeSelect/TreeSelect.const.cjs +1 -1
- package/dist/components/TreeSelect/TreeSelect.const.d.ts +3 -17
- package/dist/components/TreeSelect/TreeSelect.const.js +3 -17
- package/dist/components/TreeSelect/TreeSelect.d.ts +1 -3
- package/dist/components/TreeSelect/TreeSelect.js +164 -144
- package/dist/components/TreeSelect/TreeSelect.types.d.ts +15 -0
- package/dist/components/TreeSelect/TreeSelect.utils.cjs +1 -1
- package/dist/components/TreeSelect/TreeSelect.utils.js +14 -13
- package/dist/components/TreeSelect/components/TreeNodeRow/TreeNodeRow.cjs +1 -0
- package/dist/components/TreeSelect/components/TreeNodeRow/TreeNodeRow.d.ts +2 -0
- package/dist/components/TreeSelect/components/TreeNodeRow/TreeNodeRow.js +68 -0
- package/dist/components/TreeSelect/components/TreeNodeRow/index.d.ts +1 -0
- package/dist/components/TreeSelect/components/TreeSelectExpandControl/TreeSelectExpandControl.cjs +1 -0
- package/dist/components/TreeSelect/components/TreeSelectExpandControl/TreeSelectExpandControl.d.ts +2 -0
- package/dist/components/TreeSelect/components/TreeSelectExpandControl/TreeSelectExpandControl.js +30 -0
- package/dist/components/TreeSelect/components/TreeSelectExpandControl/index.d.ts +1 -0
- package/dist/components/TreeSelect/components/index.d.ts +2 -0
- package/dist/components/TreeView/TreeView.cjs +1 -1
- package/dist/components/TreeView/TreeView.const.cjs +1 -0
- package/dist/components/TreeView/TreeView.const.d.ts +20 -1
- package/dist/components/TreeView/TreeView.const.js +24 -0
- package/dist/components/TreeView/TreeView.d.ts +1 -2
- package/dist/components/TreeView/TreeView.js +49 -73
- package/dist/components/TreeView/TreeView.types.d.ts +26 -0
- package/dist/components/TreeView/components/TreeViewExpandControl/TreeViewExpandControl.cjs +1 -0
- package/dist/components/TreeView/components/TreeViewExpandControl/TreeViewExpandControl.d.ts +2 -0
- package/dist/components/TreeView/components/TreeViewExpandControl/TreeViewExpandControl.js +25 -0
- package/dist/components/TreeView/components/TreeViewExpandControl/index.d.ts +1 -0
- package/dist/components/TreeView/components/TreeViewNode/TreeViewNode.cjs +1 -0
- package/dist/components/TreeView/components/TreeViewNode/TreeViewNode.d.ts +2 -0
- package/dist/components/TreeView/components/TreeViewNode/TreeViewNode.js +97 -0
- package/dist/components/TreeView/components/TreeViewNode/index.d.ts +1 -0
- package/dist/components/TreeView/components/TreeViewNodeIcon/TreeViewNodeIcon.cjs +1 -0
- package/dist/components/TreeView/components/TreeViewNodeIcon/TreeViewNodeIcon.d.ts +2 -0
- package/dist/components/TreeView/components/TreeViewNodeIcon/TreeViewNodeIcon.js +11 -0
- package/dist/components/TreeView/components/TreeViewNodeIcon/index.d.ts +1 -0
- package/dist/components/TreeView/components/index.d.ts +3 -0
- package/dist/components/Typography/Typography.cjs +1 -1
- package/dist/components/Typography/Typography.d.ts +1 -16
- package/dist/components/Typography/Typography.js +67 -72
- package/dist/components/Typography/Typography.utils.cjs +1 -0
- package/dist/components/Typography/Typography.utils.d.ts +5 -0
- package/dist/components/Typography/Typography.utils.js +26 -0
- package/dist/components/VirtualList/VirtualList.cjs +1 -1
- package/dist/components/VirtualList/VirtualList.const.cjs +1 -1
- package/dist/components/VirtualList/VirtualList.const.d.ts +1 -1
- package/dist/components/VirtualList/VirtualList.const.js +4 -2
- package/dist/components/VirtualList/VirtualList.d.ts +1 -1
- package/dist/components/VirtualList/VirtualList.js +29 -28
- package/dist/components/Watermark/Watermark.cjs +1 -1
- package/dist/components/Watermark/Watermark.d.ts +1 -2
- package/dist/components/Watermark/Watermark.js +68 -77
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.js +415 -408
- package/dist/constants/generals.const.cjs +1 -0
- package/dist/constants/generals.const.d.ts +166 -0
- package/dist/constants/generals.const.js +144 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/keys.const.cjs +1 -0
- package/dist/constants/keys.const.d.ts +6 -0
- package/dist/constants/keys.const.js +8 -0
- package/dist/constants/numbers.const.cjs +1 -0
- package/dist/constants/numbers.const.d.ts +77 -0
- package/dist/constants/numbers.const.js +70 -0
- package/dist/context/BearProvider.d.ts +1 -2
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +76 -57
- package/dist/hooks/useBearComponent/useBearComponent.d.ts +1 -1
- package/dist/hooks/useBearComponent/useBearComponent.types.d.ts +1 -1
- package/dist/hooks/useBearDefaultProps.d.ts +1 -1
- package/dist/hooks/useBearStyles.d.ts +1 -1
- package/dist/hooks/useDocumentDarkClass/index.d.ts +1 -0
- package/dist/hooks/useDocumentDarkClass/useDocumentDarkClass.cjs +1 -0
- package/dist/hooks/useDocumentDarkClass/useDocumentDarkClass.d.ts +1 -0
- package/dist/hooks/useDocumentDarkClass/useDocumentDarkClass.js +26 -0
- package/dist/hooks/useFixedAnchorPosition/index.d.ts +4 -0
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.cjs +1 -0
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.cjs +1 -0
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.d.ts +17 -0
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.js +20 -0
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.d.ts +2 -0
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.js +64 -0
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.types.d.ts +35 -0
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.utils.cjs +1 -0
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.utils.d.ts +16 -0
- package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.utils.js +23 -0
- package/dist/hooks/usePointerDrag/index.d.ts +2 -0
- package/dist/hooks/usePointerDrag/usePointerDrag.cjs +1 -0
- package/dist/hooks/usePointerDrag/usePointerDrag.d.ts +2 -0
- package/dist/hooks/usePointerDrag/usePointerDrag.js +32 -0
- package/dist/hooks/usePointerDrag/usePointerDrag.types.d.ts +14 -0
- package/dist/hooks/useResponsive.d.ts +1 -1
- package/dist/hooks/useWindowLayout/index.d.ts +2 -0
- package/dist/hooks/useWindowLayout/useWindowLayout.cjs +1 -0
- package/dist/hooks/useWindowLayout/useWindowLayout.const.cjs +1 -0
- package/dist/hooks/useWindowLayout/useWindowLayout.const.d.ts +2 -0
- package/dist/hooks/useWindowLayout/useWindowLayout.const.js +5 -0
- package/dist/hooks/useWindowLayout/useWindowLayout.d.ts +5 -0
- package/dist/hooks/useWindowLayout/useWindowLayout.js +15 -0
- package/dist/hooks/useWindowLayout/useWindowLayout.types.d.ts +4 -0
- 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 +550 -522
- package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.cjs +1 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.const.cjs +1 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.const.js +14 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.js +35 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/action.cjs +1 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/action.js +26 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/cn.utils.cjs +1 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/cn.utils.js +4 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/editor.cjs +1 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/editor.js +130 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/misc.cjs +1 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/misc.js +12 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/navigation.cjs +1 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/navigation.js +18 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/status.cjs +1 -0
- package/dist/node_modules/@forgedevstack/bear-icons/dist/status.js +6 -0
- package/dist/styles/_drawer.css +213 -0
- package/dist/styles/_feedback.css +15 -0
- package/dist/styles/_overlays.css +0 -1
- package/dist/styles/_rich-editor.css +104 -0
- package/dist/styles/_segmented.css +70 -0
- package/dist/styles/main.css +3 -0
- package/dist/styles.css +484 -73
- package/dist/types/index.d.ts +1 -0
- package/dist/types/surface.types.d.ts +6 -0
- package/dist/utils/clamp.utils.cjs +1 -0
- package/dist/utils/clamp.utils.d.ts +1 -0
- package/dist/utils/clamp.utils.js +4 -0
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +32 -30
- package/package.json +5 -1
- package/dist/components/Accordion/Accordion.const.cjs +0 -1
- package/dist/components/Accordion/Accordion.const.d.ts +0 -10
- package/dist/components/Accordion/Accordion.const.js +0 -8
- package/dist/components/ActivityItem/ActivityItem.const.d.ts +0 -1
- package/dist/components/Affix/Affix.const.cjs +0 -1
- package/dist/components/Affix/Affix.const.d.ts +0 -6
- package/dist/components/Affix/Affix.const.js +0 -9
- package/dist/components/AlertDialog/AlertDialog.const.cjs +0 -1
- package/dist/components/AlertDialog/AlertDialog.const.d.ts +0 -5
- package/dist/components/AlertDialog/AlertDialog.const.js +0 -8
- package/dist/components/Anchor/Anchor.const.cjs +0 -1
- package/dist/components/Anchor/Anchor.const.d.ts +0 -9
- package/dist/components/Anchor/Anchor.const.js +0 -11
- package/dist/components/AnimatedCounter/AnimatedCounter.const.cjs +0 -1
- package/dist/components/AnimatedCounter/AnimatedCounter.const.d.ts +0 -5
- package/dist/components/AnimatedCounter/AnimatedCounter.const.js +0 -7
- package/dist/components/AspectRatio/AspectRatio.const.d.ts +0 -1
- package/dist/components/Autocomplete/Autocomplete.const.cjs +0 -1
- package/dist/components/Autocomplete/Autocomplete.const.js +0 -4
- package/dist/components/Backdrop/Backdrop.const.cjs +0 -1
- package/dist/components/Backdrop/Backdrop.const.d.ts +0 -11
- package/dist/components/Backdrop/Backdrop.const.js +0 -14
- package/dist/components/Banner/helpers/BannerErrorSvg.cjs +0 -1
- package/dist/components/Banner/helpers/BannerErrorSvg.js +0 -22
- package/dist/components/Banner/helpers/BannerInfoSvg.cjs +0 -1
- package/dist/components/Banner/helpers/BannerInfoSvg.js +0 -22
- package/dist/components/Banner/helpers/BannerSuccessSvg.cjs +0 -1
- package/dist/components/Banner/helpers/BannerSuccessSvg.js +0 -21
- package/dist/components/Banner/helpers/BannerWarningSvg.cjs +0 -1
- package/dist/components/Banner/helpers/BannerWarningSvg.js +0 -22
- package/dist/components/Biometric/BiometricIcon.cjs +0 -1
- package/dist/components/Biometric/BiometricIcon.d.ts +0 -3
- package/dist/components/Biometric/BiometricIcon.js +0 -45
- 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 -60
- package/dist/components/ResizableTextarea/ResizableTextarea.const.cjs +0 -1
- package/dist/components/ResizableTextarea/ResizableTextarea.const.d.ts +0 -2
- package/dist/components/ResizableTextarea/ResizableTextarea.const.js +0 -5
- package/dist/components/Result/Result.icons.cjs +0 -1
- package/dist/components/Result/Result.icons.d.ts +0 -3
- package/dist/components/Result/Result.icons.js +0 -31
package/dist/hooks/index.js
CHANGED
|
@@ -1,82 +1,101 @@
|
|
|
1
1
|
import { useIsDesktop as r, useIsMobile as s, useIsTablet as t, useMediaQuery as u, usePrefersDark as p, usePrefersReducedMotion as m } from "./useMediaQuery.js";
|
|
2
2
|
import { useClickOutside as x, useClickOutsideMultiple as a } from "./useClickOutside.js";
|
|
3
|
-
import { useResizeObserver as
|
|
4
|
-
import { useDisclosure as
|
|
5
|
-
import { useBearStyles as
|
|
3
|
+
import { useResizeObserver as l } from "./useResizeObserver/useResizeObserver.js";
|
|
4
|
+
import { useDisclosure as n } from "./useDisclosure.js";
|
|
5
|
+
import { useBearStyles as O } from "./useBearStyles.js";
|
|
6
6
|
import { bearStyled as C } from "./bearStyled.js";
|
|
7
|
-
import { useSlide as
|
|
8
|
-
import { useParallax as
|
|
9
|
-
import { useBounce as
|
|
10
|
-
import { useFloat as
|
|
11
|
-
import { usePulse as
|
|
12
|
-
import { useShake as
|
|
13
|
-
import { useClipboard as
|
|
14
|
-
import { useDebounce as
|
|
15
|
-
import { useThrottle as
|
|
16
|
-
import { useLocalStorage as
|
|
17
|
-
import { useKeyPress as
|
|
18
|
-
import { useInView as
|
|
19
|
-
import { useDragDrop as
|
|
20
|
-
import { useLazyLoad as
|
|
21
|
-
import { BearComponentProvider as
|
|
7
|
+
import { useSlide as F } from "./useSlide/useSlide.js";
|
|
8
|
+
import { useParallax as c } from "./useParallax/useParallax.js";
|
|
9
|
+
import { useBounce as L } from "./useBounce/useBounce.js";
|
|
10
|
+
import { useFloat as R } from "./useFloat/useFloat.js";
|
|
11
|
+
import { usePulse as b } from "./usePulse/usePulse.js";
|
|
12
|
+
import { useShake as k } from "./useShake/useShake.js";
|
|
13
|
+
import { useClipboard as B } from "./useClipboard/useClipboard.js";
|
|
14
|
+
import { useDebounce as v, useDebouncedCallback as V } from "./useDebounce/useDebounce.js";
|
|
15
|
+
import { useThrottle as h, useThrottledCallback as Y } from "./useThrottle/useThrottle.js";
|
|
16
|
+
import { useLocalStorage as X } from "./useLocalStorage/useLocalStorage.js";
|
|
17
|
+
import { useKeyPress as K, useKeyPressState as U } from "./useKeyPress/useKeyPress.js";
|
|
18
|
+
import { useInView as w, useIntersectionObserver as z } from "./useIntersectionObserver/useIntersectionObserver.js";
|
|
19
|
+
import { useDragDrop as Q } from "./useDragDrop/useDragDrop.js";
|
|
20
|
+
import { useLazyLoad as j } from "./useLazyLoad/useLazyLoad.js";
|
|
21
|
+
import { BearComponentProvider as J, useBC as $, useBearComponent as ee, useBearComponentContext as oe } from "./useBearComponent/useBearComponent.js";
|
|
22
22
|
import { useBearDefaultProps as se } from "./useBearDefaultProps.js";
|
|
23
23
|
import { useSpotlight as ue } from "./useSpotlight/useSpotlight.js";
|
|
24
24
|
import { useOnline as me } from "./useOnline/useOnline.js";
|
|
25
25
|
import { useWebSocket as xe } from "./useWebSocket/useWebSocket.js";
|
|
26
|
-
import { useIdle as
|
|
27
|
-
import { usePageVisibility as
|
|
28
|
-
import { useLongPress as
|
|
29
|
-
import { useAnimate as
|
|
30
|
-
import { useResponsive as
|
|
31
|
-
import { useBreakpoint as
|
|
32
|
-
import { DEFAULT_BREAKPOINTS_PX as
|
|
33
|
-
import {
|
|
26
|
+
import { useIdle as Ee } from "./useIdle/useIdle.js";
|
|
27
|
+
import { usePageVisibility as ie } from "./usePageVisibility/usePageVisibility.js";
|
|
28
|
+
import { useLongPress as _e } from "./useLongPress/useLongPress.js";
|
|
29
|
+
import { useAnimate as Pe } from "./useAnimate.js";
|
|
30
|
+
import { useResponsive as De, useResponsiveProps as Fe } from "./useResponsive.js";
|
|
31
|
+
import { useBreakpoint as ce } from "./useBreakpoint/useBreakpoint.js";
|
|
32
|
+
import { DEFAULT_BREAKPOINTS_PX as Le } from "./useBreakpoint/useBreakpoint.const.js";
|
|
33
|
+
import { useDocumentDarkClass as Re } from "./useDocumentDarkClass/useDocumentDarkClass.js";
|
|
34
|
+
import { usePointerDrag as be } from "./usePointerDrag/usePointerDrag.js";
|
|
35
|
+
import { useWindowLayout as ke } from "./useWindowLayout/useWindowLayout.js";
|
|
36
|
+
import { useFixedAnchorPosition as Be } from "./useFixedAnchorPosition/useFixedAnchorPosition.js";
|
|
37
|
+
import { resolveOverlayEffects as ve } from "./useFixedAnchorPosition/useFixedAnchorPosition.utils.js";
|
|
38
|
+
import { ANCHOR_DEFAULT_Z_INDEX as ge, ANCHOR_EDGE_PAD_PX as he, ANCHOR_OFFSET_PX as Ye, OVERLAY_OPEN_EFFECT_DEFAULT as Me, OVERLAY_OPEN_EFFECT_FADE as Xe, OVERLAY_OPEN_EFFECT_NONE as He, OVERLAY_OPEN_EFFECT_SCALE as Ke, OVERLAY_OPEN_EFFECT_SLIDE_DOWN as Ue } from "./useFixedAnchorPosition/useFixedAnchorPosition.const.js";
|
|
39
|
+
import { useFormControl as we } from "./useFormControl/useFormControl.js";
|
|
34
40
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
41
|
+
ge as ANCHOR_DEFAULT_Z_INDEX,
|
|
42
|
+
he as ANCHOR_EDGE_PAD_PX,
|
|
43
|
+
Ye as ANCHOR_OFFSET_PX,
|
|
44
|
+
J as BearComponentProvider,
|
|
45
|
+
Le as DEFAULT_BREAKPOINTS_PX,
|
|
46
|
+
Me as OVERLAY_OPEN_EFFECT_DEFAULT,
|
|
47
|
+
Xe as OVERLAY_OPEN_EFFECT_FADE,
|
|
48
|
+
He as OVERLAY_OPEN_EFFECT_NONE,
|
|
49
|
+
Ke as OVERLAY_OPEN_EFFECT_SCALE,
|
|
50
|
+
Ue as OVERLAY_OPEN_EFFECT_SLIDE_DOWN,
|
|
37
51
|
C as bearStyled,
|
|
38
|
-
|
|
52
|
+
ve as resolveOverlayEffects,
|
|
53
|
+
Pe as useAnimate,
|
|
39
54
|
$ as useBC,
|
|
40
55
|
ee as useBearComponent,
|
|
41
56
|
oe as useBearComponentContext,
|
|
42
57
|
se as useBearDefaultProps,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
58
|
+
O as useBearStyles,
|
|
59
|
+
L as useBounce,
|
|
60
|
+
ce as useBreakpoint,
|
|
46
61
|
x as useClickOutside,
|
|
47
62
|
a as useClickOutsideMultiple,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
B as useClipboard,
|
|
64
|
+
v as useDebounce,
|
|
65
|
+
V as useDebouncedCallback,
|
|
66
|
+
n as useDisclosure,
|
|
67
|
+
Re as useDocumentDarkClass,
|
|
68
|
+
Q as useDragDrop,
|
|
69
|
+
Be as useFixedAnchorPosition,
|
|
70
|
+
R as useFloat,
|
|
71
|
+
we as useFormControl,
|
|
72
|
+
Ee as useIdle,
|
|
73
|
+
w as useInView,
|
|
74
|
+
z as useIntersectionObserver,
|
|
58
75
|
r as useIsDesktop,
|
|
59
76
|
s as useIsMobile,
|
|
60
77
|
t as useIsTablet,
|
|
61
|
-
|
|
78
|
+
K as useKeyPress,
|
|
62
79
|
U as useKeyPressState,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
80
|
+
j as useLazyLoad,
|
|
81
|
+
X as useLocalStorage,
|
|
82
|
+
_e as useLongPress,
|
|
66
83
|
u as useMediaQuery,
|
|
67
84
|
me as useOnline,
|
|
68
|
-
|
|
69
|
-
|
|
85
|
+
ie as usePageVisibility,
|
|
86
|
+
c as useParallax,
|
|
87
|
+
be as usePointerDrag,
|
|
70
88
|
p as usePrefersDark,
|
|
71
89
|
m as usePrefersReducedMotion,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
90
|
+
b as usePulse,
|
|
91
|
+
l as useResizeObserver,
|
|
92
|
+
De as useResponsive,
|
|
93
|
+
Fe as useResponsiveProps,
|
|
94
|
+
k as useShake,
|
|
95
|
+
F as useSlide,
|
|
78
96
|
ue as useSpotlight,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
xe as useWebSocket
|
|
97
|
+
h as useThrottle,
|
|
98
|
+
Y as useThrottledCallback,
|
|
99
|
+
xe as useWebSocket,
|
|
100
|
+
ke as useWindowLayout
|
|
82
101
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { BearComponentOverrides, ButtonVariantsConfig } from '../../types
|
|
2
|
+
import { BearComponentOverrides, ButtonVariantsConfig } from '../../types';
|
|
3
3
|
import { UseBearComponentReturn, BearComponentContextValue } from './useBearComponent.types';
|
|
4
4
|
interface BearComponentProviderProps {
|
|
5
5
|
children: ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BearDefaultPropsMap } from '../types
|
|
1
|
+
import { BearDefaultPropsMap } from '../types';
|
|
2
2
|
export declare const useBearDefaultProps: <T extends Record<string, unknown>>(componentKey: keyof BearDefaultPropsMap, props: T) => T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useDocumentDarkClass } from './useDocumentDarkClass';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),e=require("../../constants/generals.const.cjs"),u=t=>{const s=document.documentElement;return s.classList.contains(e.DOCUMENT_CLASS_DARK)||s.classList.contains(e.DOCUMENT_CLASS_BEAR_DARK)||t.matches},i=t=>{const[s,a]=o.useState(e.BOOLEAN_FALSE);return o.useEffect(()=>{if(!t)return;const r=window.matchMedia(e.PREFERS_COLOR_SCHEME_DARK),n=()=>{a(u(r))};n();const c=new MutationObserver(n);return c.observe(document.documentElement,{attributes:!0,attributeFilter:[e.DOCUMENT_CLASS_ATTRIBUTE]}),r.addEventListener("change",n),()=>{c.disconnect(),r.removeEventListener("change",n)}},[t]),s};exports.useDocumentDarkClass=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDocumentDarkClass: (enabled: boolean) => boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useState as c, useEffect as a } from "react";
|
|
2
|
+
import { BOOLEAN_FALSE as i, PREFERS_COLOR_SCHEME_DARK as u, DOCUMENT_CLASS_ATTRIBUTE as m, DOCUMENT_CLASS_DARK as E, DOCUMENT_CLASS_BEAR_DARK as D } from "../../constants/generals.const.js";
|
|
3
|
+
const _ = (t) => {
|
|
4
|
+
const e = document.documentElement;
|
|
5
|
+
return e.classList.contains(E) || e.classList.contains(D) || t.matches;
|
|
6
|
+
}, S = (t) => {
|
|
7
|
+
const [e, o] = c(i);
|
|
8
|
+
return a(() => {
|
|
9
|
+
if (!t)
|
|
10
|
+
return;
|
|
11
|
+
const s = window.matchMedia(u), n = () => {
|
|
12
|
+
o(_(s));
|
|
13
|
+
};
|
|
14
|
+
n();
|
|
15
|
+
const r = new MutationObserver(n);
|
|
16
|
+
return r.observe(document.documentElement, {
|
|
17
|
+
attributes: !0,
|
|
18
|
+
attributeFilter: [m]
|
|
19
|
+
}), s.addEventListener("change", n), () => {
|
|
20
|
+
r.disconnect(), s.removeEventListener("change", n);
|
|
21
|
+
};
|
|
22
|
+
}, [t]), e;
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
S as useDocumentDarkClass
|
|
26
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { useFixedAnchorPosition } from './useFixedAnchorPosition';
|
|
2
|
+
export type { OverlayCloseEffect, OverlayCoords, OverlayEffectConfig, OverlayEffectProps, OverlayMotionEffect, OverlayOpenEffect, OverlayPlacement, UseFixedAnchorPositionOptions, UseFixedAnchorPositionReturn, } from './useFixedAnchorPosition.types';
|
|
3
|
+
export { resolveOverlayEffects } from './useFixedAnchorPosition.utils';
|
|
4
|
+
export { ANCHOR_DEFAULT_Z_INDEX, ANCHOR_EDGE_PAD_PX, ANCHOR_OFFSET_PX, OVERLAY_OPEN_EFFECT_DEFAULT, OVERLAY_OPEN_EFFECT_FADE, OVERLAY_OPEN_EFFECT_NONE, OVERLAY_OPEN_EFFECT_SCALE, OVERLAY_OPEN_EFFECT_SLIDE_DOWN, VISIBILITY_VISIBLE, } from './useFixedAnchorPosition.const';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),e=require("./useFixedAnchorPosition.const.cjs"),f=require("./useFixedAnchorPosition.utils.cjs"),v={top:0,left:0},L=P=>{const{anchorRef:n,open:r,offsetPx:s=e.ANCHOR_OFFSET_PX,edgePadPx:d=e.ANCHOR_EDGE_PAD_PX,estimatedHeightPx:E,placement:c=e.DEFAULT_PLACEMENT,matchWidth:u=!1,minWidthPx:a}=P,[t,_]=o.useState(v),[h,w]=o.useState(!1);return o.useLayoutEffect(()=>{if(!r){w(!1);return}const i=()=>{var I;const l=(I=n.current)==null?void 0:I.getBoundingClientRect();l&&(_(f.resolveOverlayCoords({rect:l,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,offsetPx:s,edgePadPx:d,estimatedHeightPx:E,placement:c,matchWidth:u,minWidthPx:a})),w(!0))};return i(),window.addEventListener(e.RESIZE_EVENT,i),window.addEventListener(e.SCROLL_EVENT,i,!0),()=>{window.removeEventListener(e.RESIZE_EVENT,i),window.removeEventListener(e.SCROLL_EVENT,i,!0)}},[r,n,s,d,E,c,u,a]),{coords:t,ready:h,style:{position:e.POSITION_FIXED,top:t.top,left:t.left,...t.width===void 0?{}:{width:t.width},...t.minWidth===void 0?{}:{minWidth:t.minWidth},visibility:h?e.VISIBILITY_VISIBLE:e.VISIBILITY_HIDDEN}}};exports.useFixedAnchorPosition=L;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=8,O=8,T=11e3,N="top",L="bottom",A="end",F="bottom-start",I="hidden",t="visible",o="fixed",P="scroll",C="resize",D="none",s="fade",E="slide-down",n="scale",c=E;exports.ANCHOR_DEFAULT_Z_INDEX=T;exports.ANCHOR_EDGE_PAD_PX=O;exports.ANCHOR_OFFSET_PX=_;exports.DEFAULT_PLACEMENT=F;exports.OVERLAY_OPEN_EFFECT_DEFAULT=c;exports.OVERLAY_OPEN_EFFECT_FADE=s;exports.OVERLAY_OPEN_EFFECT_NONE=D;exports.OVERLAY_OPEN_EFFECT_SCALE=n;exports.OVERLAY_OPEN_EFFECT_SLIDE_DOWN=E;exports.PLACEMENT_BOTTOM=L;exports.PLACEMENT_END=A;exports.PLACEMENT_TOP=N;exports.POSITION_FIXED=o;exports.RESIZE_EVENT=C;exports.SCROLL_EVENT=P;exports.VISIBILITY_HIDDEN=I;exports.VISIBILITY_VISIBLE=t;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const ANCHOR_OFFSET_PX = 8;
|
|
2
|
+
export declare const ANCHOR_EDGE_PAD_PX = 8;
|
|
3
|
+
export declare const ANCHOR_DEFAULT_Z_INDEX = 11000;
|
|
4
|
+
export declare const PLACEMENT_TOP = "top";
|
|
5
|
+
export declare const PLACEMENT_BOTTOM = "bottom";
|
|
6
|
+
export declare const PLACEMENT_END = "end";
|
|
7
|
+
export declare const DEFAULT_PLACEMENT = "bottom-start";
|
|
8
|
+
export declare const VISIBILITY_HIDDEN = "hidden";
|
|
9
|
+
export declare const VISIBILITY_VISIBLE = "visible";
|
|
10
|
+
export declare const POSITION_FIXED = "fixed";
|
|
11
|
+
export declare const SCROLL_EVENT = "scroll";
|
|
12
|
+
export declare const RESIZE_EVENT = "resize";
|
|
13
|
+
export declare const OVERLAY_OPEN_EFFECT_NONE = "none";
|
|
14
|
+
export declare const OVERLAY_OPEN_EFFECT_FADE = "fade";
|
|
15
|
+
export declare const OVERLAY_OPEN_EFFECT_SLIDE_DOWN = "slide-down";
|
|
16
|
+
export declare const OVERLAY_OPEN_EFFECT_SCALE = "scale";
|
|
17
|
+
export declare const OVERLAY_OPEN_EFFECT_DEFAULT = "slide-down";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const _ = 8, o = 8, t = 11e3, s = "top", n = "bottom", O = "end", N = "bottom-start", T = "hidden", c = "visible", L = "fixed", A = "scroll", F = "resize", I = "none", C = "fade", E = "slide-down", P = "scale", D = E;
|
|
2
|
+
export {
|
|
3
|
+
t as ANCHOR_DEFAULT_Z_INDEX,
|
|
4
|
+
o as ANCHOR_EDGE_PAD_PX,
|
|
5
|
+
_ as ANCHOR_OFFSET_PX,
|
|
6
|
+
N as DEFAULT_PLACEMENT,
|
|
7
|
+
D as OVERLAY_OPEN_EFFECT_DEFAULT,
|
|
8
|
+
C as OVERLAY_OPEN_EFFECT_FADE,
|
|
9
|
+
I as OVERLAY_OPEN_EFFECT_NONE,
|
|
10
|
+
P as OVERLAY_OPEN_EFFECT_SCALE,
|
|
11
|
+
E as OVERLAY_OPEN_EFFECT_SLIDE_DOWN,
|
|
12
|
+
n as PLACEMENT_BOTTOM,
|
|
13
|
+
O as PLACEMENT_END,
|
|
14
|
+
s as PLACEMENT_TOP,
|
|
15
|
+
L as POSITION_FIXED,
|
|
16
|
+
F as RESIZE_EVENT,
|
|
17
|
+
A as SCROLL_EVENT,
|
|
18
|
+
T as VISIBILITY_HIDDEN,
|
|
19
|
+
c as VISIBILITY_VISIBLE
|
|
20
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { useState as m, useLayoutEffect as l } from "react";
|
|
2
|
+
import { RESIZE_EVENT as I, SCROLL_EVENT as u, ANCHOR_OFFSET_PX as L, ANCHOR_EDGE_PAD_PX as P, DEFAULT_PLACEMENT as _, VISIBILITY_VISIBLE as O, VISIBILITY_HIDDEN as S, POSITION_FIXED as T } from "./useFixedAnchorPosition.const.js";
|
|
3
|
+
import { resolveOverlayCoords as C } from "./useFixedAnchorPosition.utils.js";
|
|
4
|
+
const R = { top: 0, left: 0 }, g = (p) => {
|
|
5
|
+
const {
|
|
6
|
+
anchorRef: i,
|
|
7
|
+
open: o,
|
|
8
|
+
offsetPx: n = L,
|
|
9
|
+
edgePadPx: r = P,
|
|
10
|
+
estimatedHeightPx: d,
|
|
11
|
+
placement: s = _,
|
|
12
|
+
matchWidth: E = !1,
|
|
13
|
+
minWidthPx: w
|
|
14
|
+
} = p, [t, v] = m(R), [a, c] = m(!1);
|
|
15
|
+
return l(() => {
|
|
16
|
+
if (!o) {
|
|
17
|
+
c(!1);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const e = () => {
|
|
21
|
+
var h;
|
|
22
|
+
const f = (h = i.current) == null ? void 0 : h.getBoundingClientRect();
|
|
23
|
+
f && (v(
|
|
24
|
+
C({
|
|
25
|
+
rect: f,
|
|
26
|
+
viewportWidth: window.innerWidth,
|
|
27
|
+
viewportHeight: window.innerHeight,
|
|
28
|
+
offsetPx: n,
|
|
29
|
+
edgePadPx: r,
|
|
30
|
+
estimatedHeightPx: d,
|
|
31
|
+
placement: s,
|
|
32
|
+
matchWidth: E,
|
|
33
|
+
minWidthPx: w
|
|
34
|
+
})
|
|
35
|
+
), c(!0));
|
|
36
|
+
};
|
|
37
|
+
return e(), window.addEventListener(I, e), window.addEventListener(u, e, !0), () => {
|
|
38
|
+
window.removeEventListener(I, e), window.removeEventListener(u, e, !0);
|
|
39
|
+
};
|
|
40
|
+
}, [
|
|
41
|
+
o,
|
|
42
|
+
i,
|
|
43
|
+
n,
|
|
44
|
+
r,
|
|
45
|
+
d,
|
|
46
|
+
s,
|
|
47
|
+
E,
|
|
48
|
+
w
|
|
49
|
+
]), {
|
|
50
|
+
coords: t,
|
|
51
|
+
ready: a,
|
|
52
|
+
style: {
|
|
53
|
+
position: T,
|
|
54
|
+
top: t.top,
|
|
55
|
+
left: t.left,
|
|
56
|
+
...t.width === void 0 ? {} : { width: t.width },
|
|
57
|
+
...t.minWidth === void 0 ? {} : { minWidth: t.minWidth },
|
|
58
|
+
visibility: a ? O : S
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
g as useFixedAnchorPosition
|
|
64
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CSSProperties, RefObject } from 'react';
|
|
2
|
+
export type OverlayMotionEffect = 'none' | 'fade' | 'slide-down' | 'scale';
|
|
3
|
+
export type OverlayOpenEffect = OverlayMotionEffect;
|
|
4
|
+
export type OverlayCloseEffect = OverlayMotionEffect;
|
|
5
|
+
export interface OverlayEffectConfig {
|
|
6
|
+
open?: OverlayMotionEffect;
|
|
7
|
+
close?: OverlayMotionEffect;
|
|
8
|
+
}
|
|
9
|
+
export interface OverlayEffectProps {
|
|
10
|
+
openEffect?: OverlayMotionEffect;
|
|
11
|
+
closeEffect?: OverlayMotionEffect;
|
|
12
|
+
effect?: OverlayEffectConfig;
|
|
13
|
+
}
|
|
14
|
+
export type OverlayPlacement = 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top';
|
|
15
|
+
export interface OverlayCoords {
|
|
16
|
+
top: number;
|
|
17
|
+
left: number;
|
|
18
|
+
width?: number;
|
|
19
|
+
minWidth?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface UseFixedAnchorPositionOptions {
|
|
22
|
+
anchorRef: RefObject<HTMLElement | null>;
|
|
23
|
+
open: boolean;
|
|
24
|
+
offsetPx?: number;
|
|
25
|
+
edgePadPx?: number;
|
|
26
|
+
estimatedHeightPx?: number;
|
|
27
|
+
placement?: OverlayPlacement;
|
|
28
|
+
matchWidth?: boolean;
|
|
29
|
+
minWidthPx?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface UseFixedAnchorPositionReturn {
|
|
32
|
+
coords: OverlayCoords;
|
|
33
|
+
ready: boolean;
|
|
34
|
+
style: CSSProperties;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./useFixedAnchorPosition.const.cjs"),x=(o,t=n.OVERLAY_OPEN_EFFECT_DEFAULT)=>{var c,e;const r=((c=o.effect)==null?void 0:c.open)??o.openEffect??t,i=((e=o.effect)==null?void 0:e.close)??o.closeEffect??r;return{openEffect:r,closeEffect:i}},A=o=>{const{rect:t,viewportWidth:r,viewportHeight:i,offsetPx:c,edgePadPx:e,estimatedHeightPx:s,placement:f,matchWidth:h,minWidthPx:l}=o,a=h?t.width:l??t.width,v=f.endsWith(n.PLACEMENT_END),m=f===n.PLACEMENT_TOP||f===n.PLACEMENT_BOTTOM,P=v?t.right-a:m?t.left+t.width/2-a/2:t.left,T=Math.max(e,r-a-e),M=Math.min(Math.max(e,P),T),E=f.startsWith(n.PLACEMENT_TOP),O=i-t.bottom,w=!E&&s!==void 0&&O<s&&t.top>s,p=E||w?t.top-(s??0)-c:t.bottom+c,d={top:s===void 0?p:Math.max(e,Math.min(p,i-s-e)),left:M};return h&&(d.width=t.width),l!==void 0&&(d.minWidth=a),d};exports.resolveOverlayCoords=A;exports.resolveOverlayEffects=x;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OverlayCoords, OverlayEffectProps, OverlayMotionEffect, OverlayPlacement } from './useFixedAnchorPosition.types';
|
|
2
|
+
export declare const resolveOverlayEffects: (input: OverlayEffectProps, fallback?: OverlayMotionEffect) => {
|
|
3
|
+
openEffect: OverlayMotionEffect;
|
|
4
|
+
closeEffect: OverlayMotionEffect;
|
|
5
|
+
};
|
|
6
|
+
export declare const resolveOverlayCoords: (params: {
|
|
7
|
+
rect: DOMRect;
|
|
8
|
+
viewportWidth: number;
|
|
9
|
+
viewportHeight: number;
|
|
10
|
+
offsetPx: number;
|
|
11
|
+
edgePadPx: number;
|
|
12
|
+
estimatedHeightPx?: number;
|
|
13
|
+
placement: OverlayPlacement;
|
|
14
|
+
matchWidth: boolean;
|
|
15
|
+
minWidthPx?: number;
|
|
16
|
+
}) => OverlayCoords;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OVERLAY_OPEN_EFFECT_DEFAULT as M, PLACEMENT_END as T, PLACEMENT_TOP as l, PLACEMENT_BOTTOM as A } from "./useFixedAnchorPosition.const.js";
|
|
2
|
+
const b = (o, t = M) => {
|
|
3
|
+
var s, e;
|
|
4
|
+
const n = ((s = o.effect) == null ? void 0 : s.open) ?? o.openEffect ?? t, f = ((e = o.effect) == null ? void 0 : e.close) ?? o.closeEffect ?? n;
|
|
5
|
+
return { openEffect: n, closeEffect: f };
|
|
6
|
+
}, N = (o) => {
|
|
7
|
+
const {
|
|
8
|
+
rect: t,
|
|
9
|
+
viewportWidth: n,
|
|
10
|
+
viewportHeight: f,
|
|
11
|
+
offsetPx: s,
|
|
12
|
+
edgePadPx: e,
|
|
13
|
+
estimatedHeightPx: c,
|
|
14
|
+
placement: i,
|
|
15
|
+
matchWidth: d,
|
|
16
|
+
minWidthPx: h
|
|
17
|
+
} = o, r = d ? t.width : h ?? t.width, m = i.endsWith(T) ? t.right - r : i === l || i === A ? t.left + t.width / 2 - r / 2 : t.left, v = Math.max(e, n - r - e), P = Math.min(Math.max(e, m), v), p = i.startsWith(l), w = f - t.bottom, x = !p && c !== void 0 && w < c && t.top > c, E = p || x ? t.top - (c ?? 0) - s : t.bottom + s, a = { top: c === void 0 ? E : Math.max(e, Math.min(E, f - c - e)), left: P };
|
|
18
|
+
return d && (a.width = t.width), h !== void 0 && (a.minWidth = r), a;
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
N as resolveOverlayCoords,
|
|
22
|
+
b as resolveOverlayEffects
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),i=require("../../constants/numbers.const.cjs"),t=require("../../constants/generals.const.cjs"),O=u=>{const{enabled:l=t.BOOLEAN_TRUE,onMove:a,onEnd:o}=u,s=P.useRef({clientX:i.ZERO,clientY:i.ZERO,pointerId:i.ZERO});return{onPointerDown:e=>{var d;if(!l)return;e.preventDefault();const n=e.target;(d=n.setPointerCapture)==null||d.call(n,e.pointerId),s.current={clientX:e.clientX,clientY:e.clientY,pointerId:e.pointerId};const c=r=>{a(r,s.current)},E=()=>{var r;(r=n.releasePointerCapture)==null||r.call(n,e.pointerId),window.removeEventListener(t.EVENT_POINTER_MOVE,c),window.removeEventListener(t.EVENT_POINTER_UP,E),o==null||o()};window.addEventListener(t.EVENT_POINTER_MOVE,c),window.addEventListener(t.EVENT_POINTER_UP,E)}}};exports.usePointerDrag=O;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useRef as u } from "react";
|
|
2
|
+
import { ZERO as r } from "../../constants/numbers.const.js";
|
|
3
|
+
import { BOOLEAN_TRUE as m, EVENT_POINTER_MOVE as p, EVENT_POINTER_UP as E } from "../../constants/generals.const.js";
|
|
4
|
+
const R = (l) => {
|
|
5
|
+
const { enabled: w = m, onMove: a, onEnd: t } = l, i = u({
|
|
6
|
+
clientX: r,
|
|
7
|
+
clientY: r,
|
|
8
|
+
pointerId: r
|
|
9
|
+
});
|
|
10
|
+
return { onPointerDown: (e) => {
|
|
11
|
+
var d;
|
|
12
|
+
if (!w)
|
|
13
|
+
return;
|
|
14
|
+
e.preventDefault();
|
|
15
|
+
const n = e.target;
|
|
16
|
+
(d = n.setPointerCapture) == null || d.call(n, e.pointerId), i.current = {
|
|
17
|
+
clientX: e.clientX,
|
|
18
|
+
clientY: e.clientY,
|
|
19
|
+
pointerId: e.pointerId
|
|
20
|
+
};
|
|
21
|
+
const s = (o) => {
|
|
22
|
+
a(o, i.current);
|
|
23
|
+
}, c = () => {
|
|
24
|
+
var o;
|
|
25
|
+
(o = n.releasePointerCapture) == null || o.call(n, e.pointerId), window.removeEventListener(p, s), window.removeEventListener(E, c), t == null || t();
|
|
26
|
+
};
|
|
27
|
+
window.addEventListener(p, s), window.addEventListener(E, c);
|
|
28
|
+
} };
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
R as usePointerDrag
|
|
32
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
export interface PointerDragStart {
|
|
3
|
+
clientX: number;
|
|
4
|
+
clientY: number;
|
|
5
|
+
pointerId: number;
|
|
6
|
+
}
|
|
7
|
+
export interface UsePointerDragOptions {
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
onMove: (event: PointerEvent, start: PointerDragStart) => void;
|
|
10
|
+
onEnd?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface UsePointerDragReturn {
|
|
13
|
+
onPointerDown: (event: ReactPointerEvent) => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),t=require("../../constants/generals.const.cjs"),n=require("./useWindowLayout.const.cjs"),i=E=>{const{enabled:o=t.BOOLEAN_TRUE,onLayout:e}=E;r.useEffect(()=>{if(o)return e(),window.addEventListener(n.RESIZE_EVENT,e),window.addEventListener(n.SCROLL_EVENT,e,t.BOOLEAN_TRUE),()=>{window.removeEventListener(n.RESIZE_EVENT,e),window.removeEventListener(n.SCROLL_EVENT,e,t.BOOLEAN_TRUE)}},[o,e])};exports.useWindowLayout=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="scroll",e="resize";exports.RESIZE_EVENT=e;exports.SCROLL_EVENT=E;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useEffect as E } from "react";
|
|
2
|
+
import { BOOLEAN_TRUE as n } from "../../constants/generals.const.js";
|
|
3
|
+
import { RESIZE_EVENT as t, SCROLL_EVENT as r } from "./useWindowLayout.const.js";
|
|
4
|
+
const m = (i) => {
|
|
5
|
+
const { enabled: o = n, onLayout: e } = i;
|
|
6
|
+
E(() => {
|
|
7
|
+
if (o)
|
|
8
|
+
return e(), window.addEventListener(t, e), window.addEventListener(r, e, n), () => {
|
|
9
|
+
window.removeEventListener(t, e), window.removeEventListener(r, e, n);
|
|
10
|
+
};
|
|
11
|
+
}, [o, e]);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
m as useWindowLayout
|
|
15
|
+
};
|
package/dist/icons.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@forgedevstack/bear-icons");Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type { IconProps } from '
|
|
1
|
+
export * from '@forgedevstack/bear-icons';
|
|
2
|
+
export type { IconProps, IconSize } from '@forgedevstack/bear-icons';
|