@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
|
@@ -1,70 +1,63 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsxs as w, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "../../utils/cn.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { FIFTY as x, TEN as I, NINETY as E, PERCENT_ONE_HUNDRED as S, SIX as T } from "../../constants/numbers.const.js";
|
|
5
|
+
import { DIRECTION_HORIZONTAL as g } from "../../constants/generals.const.js";
|
|
6
|
+
import { DEFAULT_DIRECTION as P } from "./ResizablePanel.const.js";
|
|
7
|
+
import { getPaneStyle as b, getHandleStyle as D } from "./ResizablePanel.utils.js";
|
|
8
|
+
import { useResizablePanel as _ } from "./useResizablePanel.js";
|
|
9
|
+
const L = (c) => {
|
|
7
10
|
const {
|
|
8
|
-
first:
|
|
9
|
-
second:
|
|
10
|
-
direction:
|
|
11
|
-
defaultSize:
|
|
12
|
-
minSize:
|
|
13
|
-
maxSize:
|
|
14
|
-
onResize:
|
|
15
|
-
className:
|
|
16
|
-
testId:
|
|
17
|
-
} =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
x(u), i == null || i(u);
|
|
27
|
-
}, h = () => {
|
|
28
|
-
var n;
|
|
29
|
-
(n = r.releasePointerCapture) == null || n.call(r, e.pointerId), window.removeEventListener(p, m), window.removeEventListener(v, h);
|
|
30
|
-
};
|
|
31
|
-
window.addEventListener(p, m), window.addEventListener(v, h);
|
|
32
|
-
},
|
|
33
|
-
[o, b, i]
|
|
34
|
-
), a = o === "horizontal", T = a ? { width: `${t}%`, minWidth: 0 } : { height: `${t}%`, minHeight: 0 }, y = a ? { width: `${100 - t}%`, minWidth: 0 } : { height: `${100 - t}%`, minHeight: 0 };
|
|
35
|
-
return /* @__PURE__ */ k(
|
|
11
|
+
first: m,
|
|
12
|
+
second: f,
|
|
13
|
+
direction: l = P,
|
|
14
|
+
defaultSize: d = x,
|
|
15
|
+
minSize: o = I,
|
|
16
|
+
maxSize: s = E,
|
|
17
|
+
onResize: u,
|
|
18
|
+
className: N,
|
|
19
|
+
testId: h
|
|
20
|
+
} = c, { size: r, containerRef: y, onPointerDown: z } = _({
|
|
21
|
+
direction: l,
|
|
22
|
+
defaultSize: d,
|
|
23
|
+
minSize: o,
|
|
24
|
+
maxSize: s,
|
|
25
|
+
onResize: u
|
|
26
|
+
}), e = l === g, p = b(e, r), v = b(e, S - r), R = D(e, T);
|
|
27
|
+
let i = "bear-flex-col", t = "bear-h-1.5 bear-w-full bear-cursor-row-resize";
|
|
28
|
+
return e && (i = "bear-flex-row", t = "bear-w-1.5 bear-cursor-col-resize"), /* @__PURE__ */ w(
|
|
36
29
|
"div",
|
|
37
30
|
{
|
|
38
|
-
ref:
|
|
39
|
-
"data-testid":
|
|
40
|
-
className:
|
|
31
|
+
ref: y,
|
|
32
|
+
"data-testid": h,
|
|
33
|
+
className: n(
|
|
41
34
|
"Bear-ResizablePanel bear-flex bear-w-full bear-h-full bear-overflow-hidden",
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
i,
|
|
36
|
+
N
|
|
44
37
|
),
|
|
45
38
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ a("div", { className: "bear-overflow-auto bear-shrink-0", style: p, children: m }),
|
|
40
|
+
/* @__PURE__ */ a(
|
|
48
41
|
"div",
|
|
49
42
|
{
|
|
50
43
|
role: "separator",
|
|
51
|
-
"aria-valuenow":
|
|
52
|
-
"aria-valuemin":
|
|
53
|
-
"aria-valuemax":
|
|
44
|
+
"aria-valuenow": r,
|
|
45
|
+
"aria-valuemin": o,
|
|
46
|
+
"aria-valuemax": s,
|
|
54
47
|
tabIndex: 0,
|
|
55
|
-
onPointerDown:
|
|
56
|
-
className:
|
|
57
|
-
"Bear-ResizablePanel__handle bear-shrink-0 bear-bg-gray-200 dark:bear-bg-gray-700 hover:bear-bg-primary-500/30 bear-transition-colors
|
|
58
|
-
|
|
48
|
+
onPointerDown: z,
|
|
49
|
+
className: n(
|
|
50
|
+
"Bear-ResizablePanel__handle bear-shrink-0 bear-bg-gray-200 dark:bear-bg-gray-700 hover:bear-bg-primary-500/30 bear-transition-colors",
|
|
51
|
+
t
|
|
59
52
|
),
|
|
60
|
-
style:
|
|
53
|
+
style: R
|
|
61
54
|
}
|
|
62
55
|
),
|
|
63
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ a("div", { className: "bear-overflow-auto bear-shrink-0 bear-flex-1", style: v, children: f })
|
|
64
57
|
]
|
|
65
58
|
}
|
|
66
59
|
);
|
|
67
60
|
};
|
|
68
61
|
export {
|
|
69
|
-
|
|
62
|
+
L as ResizablePanel
|
|
70
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../constants/numbers.const.cjs"),i=require("../../constants/generals.const.cjs"),s=(e,t,n,g)=>t===i.DIRECTION_HORIZONTAL?(n-e.left)/e.width*r.PERCENT_ONE_HUNDRED:(g-e.top)/e.height*r.PERCENT_ONE_HUNDRED,o=(e,t)=>{const n=`${t}${i.PERCENT_UNIT}`;return e?{width:n,minWidth:r.ZERO}:{height:n,minHeight:r.ZERO}},E=(e,t)=>e?{width:t}:{height:t};exports.getHandleStyle=E;exports.getPaneStyle=o;exports.getResizePercentage=s;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
1
2
|
import { ResizablePanelProps } from './ResizablePanel.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
export declare function getResizePercentage(rect: DOMRect, direction: NonNullable<ResizablePanelProps['direction']>, clientX: number, clientY: number): number;
|
|
7
|
-
/**
|
|
8
|
-
* Clamp a value between min and max (inclusive).
|
|
9
|
-
*/
|
|
10
|
-
export declare function clampSize(value: number, min: number, max: number): number;
|
|
3
|
+
export declare const getResizePercentage: (rect: DOMRect, direction: NonNullable<ResizablePanelProps["direction"]>, clientX: number, clientY: number) => number;
|
|
4
|
+
export declare const getPaneStyle: (isHorizontal: boolean, size: number) => CSSProperties;
|
|
5
|
+
export declare const getHandleStyle: (isHorizontal: boolean, handleSize: number) => CSSProperties;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
import { PERCENT_ONE_HUNDRED as n, ZERO as r } from "../../constants/numbers.const.js";
|
|
2
|
+
import { DIRECTION_HORIZONTAL as o, PERCENT_UNIT as g } from "../../constants/generals.const.js";
|
|
3
|
+
const R = (t, e, i, h) => e === o ? (i - t.left) / t.width * n : (h - t.top) / t.height * n, f = (t, e) => {
|
|
4
|
+
const i = `${e}${g}`;
|
|
5
|
+
return t ? { width: i, minWidth: r } : { height: i, minHeight: r };
|
|
6
|
+
}, m = (t, e) => t ? { width: e } : { height: e };
|
|
8
7
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
m as getHandleStyle,
|
|
9
|
+
f as getPaneStyle,
|
|
10
|
+
R as getResizePercentage
|
|
11
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react");require("../../context/BearProvider.cjs");require("react/jsx-runtime");require("../../hooks/useBearComponent/useBearComponent.cjs");const r=require("../../constants/numbers.const.cjs"),S=require("../../hooks/usePointerDrag/usePointerDrag.cjs");require("../FormControl/FormControl.context.cjs");const R=require("../../utils/clamp.utils.cjs"),b=require("./ResizablePanel.utils.cjs"),m=u=>{const{direction:c,defaultSize:o=r.FIFTY,minSize:l=r.TEN,maxSize:a=r.NINETY,onResize:e}=u,[q,z]=s.useState(o),t=s.useRef(null),{onPointerDown:g}=S.usePointerDrag({onMove:n=>{if(!t.current)return;const P=t.current.getBoundingClientRect(),i=R.clamp(b.getResizePercentage(P,c,n.clientX,n.clientY),l,a);z(i),e==null||e(i)}});return{size:q,containerRef:t,onPointerDown:g}};exports.useResizablePanel=m;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ResizablePanelProps } from './ResizablePanel.types';
|
|
2
|
+
export declare const useResizablePanel: (options: {
|
|
3
|
+
direction: NonNullable<ResizablePanelProps["direction"]>;
|
|
4
|
+
defaultSize?: number;
|
|
5
|
+
minSize?: number;
|
|
6
|
+
maxSize?: number;
|
|
7
|
+
onResize?: (size: number) => void;
|
|
8
|
+
}) => {
|
|
9
|
+
size: number;
|
|
10
|
+
containerRef: import('react').RefObject<HTMLDivElement>;
|
|
11
|
+
onPointerDown: (event: import('react').PointerEvent) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useState as l, useRef as z } from "react";
|
|
2
|
+
import "../../context/BearProvider.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "../../hooks/useBearComponent/useBearComponent.js";
|
|
5
|
+
import { FIFTY as S, NINETY as g, TEN as P } from "../../constants/numbers.const.js";
|
|
6
|
+
import { usePointerDrag as R } from "../../hooks/usePointerDrag/usePointerDrag.js";
|
|
7
|
+
import "../FormControl/FormControl.context.js";
|
|
8
|
+
import { clamp as d } from "../../utils/clamp.utils.js";
|
|
9
|
+
import { getResizePercentage as x } from "./ResizablePanel.utils.js";
|
|
10
|
+
const B = (i) => {
|
|
11
|
+
const {
|
|
12
|
+
direction: n,
|
|
13
|
+
defaultSize: c = S,
|
|
14
|
+
minSize: m = P,
|
|
15
|
+
maxSize: s = g,
|
|
16
|
+
onResize: e
|
|
17
|
+
} = i, [p, u] = l(c), t = z(null), { onPointerDown: a } = R({
|
|
18
|
+
onMove: (o) => {
|
|
19
|
+
if (!t.current)
|
|
20
|
+
return;
|
|
21
|
+
const f = t.current.getBoundingClientRect(), r = d(
|
|
22
|
+
x(f, n, o.clientX, o.clientY),
|
|
23
|
+
m,
|
|
24
|
+
s
|
|
25
|
+
);
|
|
26
|
+
u(r), e == null || e(r);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return { size: p, containerRef: t, onPointerDown: a };
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
B as useResizablePanel
|
|
33
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("react"),i=require("../../utils/cn.cjs"),H=require("../../utils/clamp.utils.cjs");require("../../context/BearProvider.cjs");require("../../hooks/useBearComponent/useBearComponent.cjs");const a=require("../../constants/numbers.const.cjs"),P=require("../../constants/generals.const.cjs"),D=require("../../hooks/usePointerDrag/usePointerDrag.cjs");require("../FormControl/FormControl.context.cjs");const I=require("../FormControl/FormControl.cjs"),R=require("../Typography/Typography.cjs"),g=require("./ResizableTextarea.utils.cjs"),k=f=>{const{label:_,helperText:d,error:c,minHeight:r=a.EIGHTY,maxHeight:t=a.FOUR_HUNDRED,resizable:n=P.BOOLEAN_TRUE,showCharCount:h=!1,charCountMax:q,className:v,testId:z,...l}=f,s=!!c,o=q??l.maxLength,p=g.getTextareaLength(l),N=o!=null&&p>o,b=x.useRef(null),[m,j]=x.useState(r),y=x.useRef(r),{onPointerDown:B}=D.usePointerDrag({enabled:n,onMove:(u,w)=>{const T=H.clamp(y.current+(u.clientY-w.clientY),r>a.ZERO?r:a.ZERO,t>a.ZERO?t:Number.POSITIVE_INFINITY);j(T),g.applyTextareaHeight(b.current,T,r,t,n)}});g.applyTextareaHeight(b.current,m,r,t,n);const E=u=>{y.current=m,B(u)},O=()=>d||c?e.jsx(R.Typography,{component:"p",variant:"body2",className:i.cn("Bear-ResizableTextarea__helper bear-flex-1",s?"bear-text-red-500":"bear-text-gray-500 dark:bear-text-gray-400"),children:c||d}):h?e.jsx("span",{}):null;return e.jsxs(I.FormControl,{label:_,helperText:void 0,error:s,className:i.cn("Bear-ResizableTextarea",v),testId:z,children:[e.jsxs("div",{className:"bear-relative",children:[e.jsx("textarea",{ref:b,"aria-invalid":s||void 0,className:i.cn("Bear-ResizableTextarea__field bear-w-full bear-rounded-lg bear-border","bear-bg-white dark:bear-bg-gray-900 bear-text-gray-900 dark:bear-text-gray-100","bear-p-3 bear-resize-none focus:bear-outline-none focus:bear-ring-2",s?"bear-border-red-500 focus:bear-ring-red-500":"bear-border-gray-300 dark:bear-border-gray-600 focus:bear-ring-primary-500/50"),...l}),n&&e.jsx("div",{role:"separator",onPointerDown:E,className:"Bear-ResizableTextarea__handle bear-absolute bear-right-0 bear-bottom-0 bear-w-4 bear-h-4 bear-cursor-s-resize bear-opacity-50 hover:bear-opacity-100 Bear-ResizableTextarea__handle--grip"})]}),e.jsxs("div",{className:"Bear-ResizableTextarea__footer bear-flex bear-items-center bear-justify-between bear-gap-2",children:[O(),h&&o!=null&&e.jsxs(R.Typography,{component:"span",variant:"caption",className:i.cn("Bear-ResizableTextarea__char-count bear-tabular-nums bear-shrink-0",N?"bear-text-red-500":"bear-text-gray-400 dark:bear-text-gray-500"),children:[p,"/",o]})]})]})};exports.ResizableTextarea=k;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
1
|
import { ResizableTextareaProps } from './ResizableTextarea.types';
|
|
3
|
-
export declare const ResizableTextarea:
|
|
2
|
+
export declare const ResizableTextarea: (props: ResizableTextareaProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,96 +1,111 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
minHeight: n ? e : void 0,
|
|
50
|
-
height: n ? g : void 0,
|
|
51
|
-
maxHeight: t > 0 ? t : void 0
|
|
52
|
-
},
|
|
53
|
-
...r
|
|
54
|
-
}
|
|
1
|
+
import { jsxs as n, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as y, useState as O } from "react";
|
|
3
|
+
import { cn as s } from "../../utils/cn.js";
|
|
4
|
+
import { clamp as P } from "../../utils/clamp.utils.js";
|
|
5
|
+
import "../../context/BearProvider.js";
|
|
6
|
+
import "../../hooks/useBearComponent/useBearComponent.js";
|
|
7
|
+
import { EIGHTY as L, FOUR_HUNDRED as C, ZERO as p } from "../../constants/numbers.const.js";
|
|
8
|
+
import { BOOLEAN_TRUE as F } from "../../constants/generals.const.js";
|
|
9
|
+
import { usePointerDrag as M } from "../../hooks/usePointerDrag/usePointerDrag.js";
|
|
10
|
+
import "../FormControl/FormControl.context.js";
|
|
11
|
+
import { FormControl as Y } from "../FormControl/FormControl.js";
|
|
12
|
+
import { Typography as T } from "../Typography/Typography.js";
|
|
13
|
+
import { getTextareaLength as j, applyTextareaHeight as R } from "./ResizableTextarea.utils.js";
|
|
14
|
+
const ee = (_) => {
|
|
15
|
+
const {
|
|
16
|
+
label: N,
|
|
17
|
+
helperText: d,
|
|
18
|
+
error: b,
|
|
19
|
+
minHeight: e = L,
|
|
20
|
+
maxHeight: r = C,
|
|
21
|
+
resizable: a = F,
|
|
22
|
+
showCharCount: x = !1,
|
|
23
|
+
charCountMax: v,
|
|
24
|
+
className: z,
|
|
25
|
+
testId: B,
|
|
26
|
+
...l
|
|
27
|
+
} = _, t = !!b, o = v ?? l.maxLength, h = j(l), w = o != null && h > o, c = y(null), [u, E] = O(e), g = y(e), { onPointerDown: H } = M({
|
|
28
|
+
enabled: a,
|
|
29
|
+
onMove: (m, D) => {
|
|
30
|
+
const f = P(
|
|
31
|
+
g.current + (m.clientY - D.clientY),
|
|
32
|
+
e > p ? e : p,
|
|
33
|
+
r > p ? r : Number.POSITIVE_INFINITY
|
|
34
|
+
);
|
|
35
|
+
E(f), R(c.current, f, e, r, a);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
R(c.current, u, e, r, a);
|
|
39
|
+
const I = (m) => {
|
|
40
|
+
g.current = u, H(m);
|
|
41
|
+
}, k = () => d || b ? /* @__PURE__ */ i(
|
|
42
|
+
T,
|
|
43
|
+
{
|
|
44
|
+
component: "p",
|
|
45
|
+
variant: "body2",
|
|
46
|
+
className: s(
|
|
47
|
+
"Bear-ResizableTextarea__helper bear-flex-1",
|
|
48
|
+
t ? "bear-text-red-500" : "bear-text-gray-500 dark:bear-text-gray-400"
|
|
55
49
|
),
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
M ? "bear-text-red-500" : "bear-text-gray-400 dark:bear-text-gray-500"
|
|
50
|
+
children: b || d
|
|
51
|
+
}
|
|
52
|
+
) : x ? /* @__PURE__ */ i("span", {}) : null;
|
|
53
|
+
return /* @__PURE__ */ n(
|
|
54
|
+
Y,
|
|
55
|
+
{
|
|
56
|
+
label: N,
|
|
57
|
+
helperText: void 0,
|
|
58
|
+
error: t,
|
|
59
|
+
className: s("Bear-ResizableTextarea", z),
|
|
60
|
+
testId: B,
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ n("div", { className: "bear-relative", children: [
|
|
63
|
+
/* @__PURE__ */ i(
|
|
64
|
+
"textarea",
|
|
65
|
+
{
|
|
66
|
+
ref: c,
|
|
67
|
+
"aria-invalid": t || void 0,
|
|
68
|
+
className: s(
|
|
69
|
+
"Bear-ResizableTextarea__field bear-w-full bear-rounded-lg bear-border",
|
|
70
|
+
"bear-bg-white dark:bear-bg-gray-900 bear-text-gray-900 dark:bear-text-gray-100",
|
|
71
|
+
"bear-p-3 bear-resize-none focus:bear-outline-none focus:bear-ring-2",
|
|
72
|
+
t ? "bear-border-red-500 focus:bear-ring-red-500" : "bear-border-gray-300 dark:bear-border-gray-600 focus:bear-ring-primary-500/50"
|
|
73
|
+
),
|
|
74
|
+
...l
|
|
75
|
+
}
|
|
83
76
|
),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
77
|
+
a && /* @__PURE__ */ i(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
role: "separator",
|
|
81
|
+
onPointerDown: I,
|
|
82
|
+
className: "Bear-ResizableTextarea__handle bear-absolute bear-right-0 bear-bottom-0 bear-w-4 bear-h-4 bear-cursor-s-resize bear-opacity-50 hover:bear-opacity-100 Bear-ResizableTextarea__handle--grip"
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ n("div", { className: "Bear-ResizableTextarea__footer bear-flex bear-items-center bear-justify-between bear-gap-2", children: [
|
|
87
|
+
k(),
|
|
88
|
+
x && o != null && /* @__PURE__ */ n(
|
|
89
|
+
T,
|
|
90
|
+
{
|
|
91
|
+
component: "span",
|
|
92
|
+
variant: "caption",
|
|
93
|
+
className: s(
|
|
94
|
+
"Bear-ResizableTextarea__char-count bear-tabular-nums bear-shrink-0",
|
|
95
|
+
w ? "bear-text-red-500" : "bear-text-gray-400 dark:bear-text-gray-500"
|
|
96
|
+
),
|
|
97
|
+
children: [
|
|
98
|
+
h,
|
|
99
|
+
"/",
|
|
100
|
+
o
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
] })
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
);
|
|
93
108
|
};
|
|
94
109
|
export {
|
|
95
|
-
|
|
110
|
+
ee as ResizableTextarea
|
|
96
111
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../constants/numbers.const.cjs"),n=require("../../constants/generals.const.cjs"),i=e=>typeof e===n.TYPE_STRING,g=e=>{const{value:t,defaultValue:r}=e;return i(t)?t.length:i(r)?r.length:s.ZERO},o=(e,t,r,a,u)=>{e&&(u&&(e.style.minHeight=`${r}${n.UNIT_PX}`,e.style.height=`${t}${n.UNIT_PX}`),a>s.ZERO&&(e.style.maxHeight=`${a}${n.UNIT_PX}`))};exports.applyTextareaHeight=o;exports.getTextareaLength=g;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ResizableTextareaProps } from './ResizableTextarea.types';
|
|
2
|
+
export declare const getTextareaLength: (props: ResizableTextareaProps) => number;
|
|
3
|
+
export declare const applyTextareaHeight: (element: HTMLTextAreaElement | null, height: number, minHeight: number, maxHeight: number, resizable: boolean) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ZERO as a } from "../../constants/numbers.const.js";
|
|
2
|
+
import { UNIT_PX as i, TYPE_STRING as u } from "../../constants/generals.const.js";
|
|
3
|
+
const o = (t) => typeof t === u, h = (t) => {
|
|
4
|
+
const { value: e, defaultValue: r } = t;
|
|
5
|
+
return o(e) ? e.length : o(r) ? r.length : a;
|
|
6
|
+
}, l = (t, e, r, n, f) => {
|
|
7
|
+
t && (f && (t.style.minHeight = `${r}${i}`, t.style.height = `${e}${i}`), n > a && (t.style.maxHeight = `${n}${i}`));
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
l as applyTextareaHeight,
|
|
11
|
+
h as getTextareaLength
|
|
12
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../utils/cn.cjs");require("react");const c=require("../Typography/Typography.cjs"),y=require("./Result.const.cjs"),n=require("./Result.utils.cjs"),p=i=>{const{status:r,title:l,subtitle:t,icon:b,extra:s,className:o,testId:u,...d}=i,x=b??n.getStatusIcon(r),m=y.STATUS_ICON_COLORS[r];return e.jsxs("div",{className:a.cn("Bear-Result bear-flex bear-flex-col bear-items-center bear-justify-center bear-text-center bear-py-16 bear-px-6",o),"data-testid":u,...d,children:[e.jsx("div",{className:a.cn("bear-mb-4 bear-flex bear-items-center bear-justify-center",!n.isTextStatus(r)&&"bear-w-16 bear-h-16",m),children:x}),e.jsx(c.Typography,{variant:"h4",className:"bear-mb-2",children:l}),t&&e.jsx(c.Typography,{variant:"body1",color:"secondary",className:"bear-mb-6 bear-max-w-md",children:t}),s&&e.jsx("div",{className:"bear-flex bear-flex-wrap bear-gap-2 bear-justify-center",children:s})]})};exports.Result=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../constants/generals.const.cjs"),r={success:"bear-text-green-500 dark:bear-text-green-400",error:"bear-text-red-500 dark:bear-text-red-400",info:"bear-text-blue-500 dark:bear-text-blue-400",warning:"bear-text-amber-500 dark:bear-text-amber-400",[e.STATUS_NOT_FOUND]:"bear-text-gray-500 dark:bear-text-zinc-400",[e.STATUS_FORBIDDEN]:"bear-text-orange-500 dark:bear-text-orange-400",[e.STATUS_SERVER_ERROR]:"bear-text-red-600 dark:bear-text-red-500"};exports.STATUS_ICON_COLORS=r;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
import { ResultStatus } from './Result.types';
|
|
2
|
-
export declare const ROOT_CLASS = "Bear-Result";
|
|
3
|
-
export declare const CONTAINER_CLASSES = "bear-flex bear-flex-col bear-items-center bear-justify-center bear-text-center bear-py-16 bear-px-6";
|
|
4
|
-
export declare const ICON_WRAPPER_CLASSES = "bear-mb-4 bear-flex bear-items-center bear-justify-center";
|
|
5
|
-
export declare const ICON_SIZE_CLASSES = "bear-w-16 bear-h-16";
|
|
6
2
|
export declare const STATUS_ICON_COLORS: Record<ResultStatus, string>;
|
|
7
|
-
export declare const TITLE_CLASSES = "bear-mb-2";
|
|
8
|
-
export declare const SUBTITLE_CLASSES = "bear-mb-6 bear-max-w-md";
|
|
9
|
-
export declare const EXTRA_CLASSES = "bear-flex bear-flex-wrap bear-gap-2 bear-justify-center";
|
|
10
|
-
export declare const STATUS_TEXT_CLASSES = "bear-text-5xl bear-font-bold bear-leading-none";
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { STATUS_SERVER_ERROR as e, STATUS_FORBIDDEN as r, STATUS_NOT_FOUND as t } from "../../constants/generals.const.js";
|
|
2
|
+
const b = {
|
|
2
3
|
success: "bear-text-green-500 dark:bear-text-green-400",
|
|
3
4
|
error: "bear-text-red-500 dark:bear-text-red-400",
|
|
4
5
|
info: "bear-text-blue-500 dark:bear-text-blue-400",
|
|
5
6
|
warning: "bear-text-amber-500 dark:bear-text-amber-400",
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
7
|
+
[t]: "bear-text-gray-500 dark:bear-text-zinc-400",
|
|
8
|
+
[r]: "bear-text-orange-500 dark:bear-text-orange-400",
|
|
9
|
+
[e]: "bear-text-red-600 dark:bear-text-red-500"
|
|
10
|
+
};
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
-
x as EXTRA_CLASSES,
|
|
13
|
-
t as ICON_SIZE_CLASSES,
|
|
14
|
-
a as ICON_WRAPPER_CLASSES,
|
|
15
|
-
e as ROOT_CLASS,
|
|
16
|
-
b as STATUS_ICON_COLORS,
|
|
17
|
-
c as STATUS_TEXT_CLASSES,
|
|
18
|
-
n as SUBTITLE_CLASSES,
|
|
19
|
-
S as TITLE_CLASSES
|
|
12
|
+
b as STATUS_ICON_COLORS
|
|
20
13
|
};
|
|
@@ -1,35 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s } from "../../utils/cn.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Typography as
|
|
5
|
-
import { STATUS_ICON_COLORS as
|
|
6
|
-
import { getStatusIcon as
|
|
7
|
-
const
|
|
4
|
+
import { Typography as c } from "../Typography/Typography.js";
|
|
5
|
+
import { STATUS_ICON_COLORS as x } from "./Result.const.js";
|
|
6
|
+
import { isTextStatus as u, getStatusIcon as h } from "./Result.utils.js";
|
|
7
|
+
const T = (o) => {
|
|
8
8
|
const {
|
|
9
|
-
status:
|
|
10
|
-
title:
|
|
11
|
-
subtitle:
|
|
12
|
-
icon:
|
|
13
|
-
extra:
|
|
14
|
-
className:
|
|
15
|
-
testId:
|
|
16
|
-
...
|
|
17
|
-
} = o,
|
|
18
|
-
return /* @__PURE__ */
|
|
9
|
+
status: r,
|
|
10
|
+
title: i,
|
|
11
|
+
subtitle: a,
|
|
12
|
+
icon: b,
|
|
13
|
+
extra: t,
|
|
14
|
+
className: l,
|
|
15
|
+
testId: m,
|
|
16
|
+
...n
|
|
17
|
+
} = o, d = b ?? h(r), f = x[r];
|
|
18
|
+
return /* @__PURE__ */ p(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
21
|
-
className:
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
className: s(
|
|
22
|
+
"Bear-Result bear-flex bear-flex-col bear-items-center bear-justify-center bear-text-center bear-py-16 bear-px-6",
|
|
23
|
+
l
|
|
24
|
+
),
|
|
25
|
+
"data-testid": m,
|
|
26
|
+
...n,
|
|
24
27
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
/* @__PURE__ */ e(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
className: s(
|
|
32
|
+
"bear-mb-4 bear-flex bear-items-center bear-justify-center",
|
|
33
|
+
!u(r) && "bear-w-16 bear-h-16",
|
|
34
|
+
f
|
|
35
|
+
),
|
|
36
|
+
children: d
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ e(c, { variant: "h4", className: "bear-mb-2", children: i }),
|
|
40
|
+
a && /* @__PURE__ */ e(c, { variant: "body1", color: "secondary", className: "bear-mb-6 bear-max-w-md", children: a }),
|
|
41
|
+
t && /* @__PURE__ */ e("div", { className: "bear-flex bear-flex-wrap bear-gap-2 bear-justify-center", children: t })
|
|
29
42
|
]
|
|
30
43
|
}
|
|
31
44
|
);
|
|
32
45
|
};
|
|
33
46
|
export {
|
|
34
|
-
|
|
47
|
+
T as Result
|
|
35
48
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("../../constants/numbers.const.cjs"),r=require("../../constants/generals.const.cjs"),e=require("@forgedevstack/bear-icons"),c=require("../Typography/Typography.cjs"),i={success:e.CheckCircleIcon,error:e.ErrorIcon,info:e.InfoIcon,warning:e.WarningIcon},S=[r.STATUS_NOT_FOUND,r.STATUS_FORBIDDEN,r.STATUS_SERVER_ERROR],T=n=>S.includes(n),a=n=>{const o=i[n];return o?t.jsx(o,{size:s.SIXTY_FOUR}):t.jsx(c.Typography,{variant:"h2",className:"bear-font-bold bear-leading-none",children:n})};exports.getStatusIcon=a;exports.isTextStatus=T;
|