@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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { SIXTY_FOUR as t } from "../../constants/numbers.const.js";
|
|
3
|
+
import { STATUS_NOT_FOUND as e, STATUS_FORBIDDEN as c, STATUS_SERVER_ERROR as T } from "../../constants/generals.const.js";
|
|
4
|
+
import { WarningIcon as i, InfoIcon as S, ErrorIcon as s, CheckCircleIcon as m } from "@forgedevstack/bear-icons";
|
|
5
|
+
import { Typography as a } from "../Typography/Typography.js";
|
|
6
|
+
const I = {
|
|
7
|
+
success: m,
|
|
8
|
+
error: s,
|
|
9
|
+
info: S,
|
|
10
|
+
warning: i
|
|
11
|
+
}, _ = [
|
|
12
|
+
e,
|
|
13
|
+
c,
|
|
14
|
+
T
|
|
15
|
+
], l = (o) => _.includes(o), u = (o) => {
|
|
16
|
+
const r = I[o];
|
|
17
|
+
return r ? /* @__PURE__ */ n(r, { size: t }) : /* @__PURE__ */ n(a, { variant: "h2", className: "bear-font-bold bear-leading-none", children: o });
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
u as getStatusIcon,
|
|
21
|
+
l as isTextStatus
|
|
22
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Result
|
|
1
|
+
export { Result } from './Result';
|
|
2
2
|
export type { ResultProps, ResultStatus } from './Result.types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),d=require("../../utils/cn.cjs");require("react");const c=require("../../constants/numbers.const.cjs"),r=require("../../constants/generals.const.cjs"),v=require("./RichEditor.const.cjs"),A=require("./useRichEditor/useRichEditor.cjs"),N=require("./helpers/toolbarItemRender.cjs"),I=s=>{const{value:l,defaultValue:b=r.EMPTY_STRING,onChange:u,placeholder:h=r.PLACEHOLDER_START_TYPING,disabled:t=r.BOOLEAN_FALSE,readOnly:a=r.BOOLEAN_FALSE,minHeight:E=c.ONE_HUNDRED_FIFTY,maxHeight:g,toolbar:m=v.RICH_EDITOR_DEFAULT_TOOLBAR,className:R=r.EMPTY_STRING,testId:p,allowImagePaste:_=r.BOOLEAN_TRUE,showCharCount:i=r.BOOLEAN_FALSE,charCountMax:n,...x}=s,e=A.useRichEditor({value:l,defaultValue:b,onChange:u,disabled:t,readOnly:a,toolbar:m,allowImagePaste:_,showCharCount:i,minHeight:E,maxHeight:g}),y=N.createToolbarItemRenderer({...e,disabled:t,readOnly:a});return o.jsxs("div",{"data-testid":p,className:d.cn("Bear-RichEditor rounded-lg border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-900 shadow-sm",t&&"Bear-RichEditor--disabled",a&&"Bear-RichEditor--readonly",R),...x,children:[e.activeToolbar.length>c.ZERO&&o.jsx("div",{className:"Bear-RichEditor__toolbar flex flex-wrap items-center gap-0.5 p-2 border-b border-gray-200 dark:border-zinc-700 bg-gray-50 dark:bg-zinc-800 overflow-x-auto overflow-y-hidden",children:e.activeToolbar.map((T,O)=>y(T,O))}),o.jsx("div",{ref:e.editorRef,contentEditable:!t&&!a,onInput:e.handleInput,onSelect:e.updateActiveFormats,onKeyUp:e.updateActiveFormats,onMouseUp:e.updateActiveFormats,onPaste:e.handlePaste,"data-placeholder":h,className:d.cn("Bear-RichEditor__content p-4 outline-none max-w-none text-gray-900 dark:text-gray-100 bg-white dark:bg-zinc-900 min-h-[100px]","[&:empty]:before:bear-content-[attr(data-placeholder)] [&:empty]:before:bear-text-gray-400 [&:empty]:before:bear-pointer-events-none",t&&"Bear-RichEditor__content--disabled bear-opacity-50 bear-cursor-not-allowed")}),i&&n!=null&&o.jsxs("div",{className:d.cn("Bear-RichEditor__char-count bear-text-xs bear-tabular-nums bear-px-3 bear-py-1.5 bear-text-right bear-border-t bear-border-gray-200 dark:bear-border-gray-700",e.charCount>n?"bear-text-red-500":"bear-text-gray-400 dark:bear-text-gray-500"),children:[e.charCount,"/",n]})]})};exports.RichEditor=I;
|
|
@@ -1,141 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
.Bear-RichEditor__content {
|
|
3
|
-
line-height: 1.6;
|
|
4
|
-
}
|
|
5
|
-
.Bear-RichEditor__content h1 {
|
|
6
|
-
font-size: 2rem;
|
|
7
|
-
font-weight: bold;
|
|
8
|
-
margin: 0.67em 0;
|
|
9
|
-
line-height: 1.2;
|
|
10
|
-
}
|
|
11
|
-
.Bear-RichEditor__content h2 {
|
|
12
|
-
font-size: 1.5rem;
|
|
13
|
-
font-weight: bold;
|
|
14
|
-
margin: 0.83em 0;
|
|
15
|
-
line-height: 1.3;
|
|
16
|
-
}
|
|
17
|
-
.Bear-RichEditor__content h3 {
|
|
18
|
-
font-size: 1.25rem;
|
|
19
|
-
font-weight: 600;
|
|
20
|
-
margin: 1em 0;
|
|
21
|
-
line-height: 1.4;
|
|
22
|
-
}
|
|
23
|
-
.Bear-RichEditor__content h4 {
|
|
24
|
-
font-size: 1.125rem;
|
|
25
|
-
font-weight: 600;
|
|
26
|
-
margin: 1.33em 0;
|
|
27
|
-
}
|
|
28
|
-
.Bear-RichEditor__content h5 {
|
|
29
|
-
font-size: 1rem;
|
|
30
|
-
font-weight: 600;
|
|
31
|
-
margin: 1.67em 0;
|
|
32
|
-
}
|
|
33
|
-
.Bear-RichEditor__content h6 {
|
|
34
|
-
font-size: 0.875rem;
|
|
35
|
-
font-weight: 600;
|
|
36
|
-
text-transform: uppercase;
|
|
37
|
-
letter-spacing: 0.05em;
|
|
38
|
-
margin: 2em 0;
|
|
39
|
-
}
|
|
40
|
-
.Bear-RichEditor__content p {
|
|
41
|
-
margin: 0.5em 0;
|
|
42
|
-
}
|
|
43
|
-
.Bear-RichEditor__content ul {
|
|
44
|
-
list-style-type: disc !important;
|
|
45
|
-
padding-left: 1.5em !important;
|
|
46
|
-
margin: 0.5em 0 !important;
|
|
47
|
-
display: block !important;
|
|
48
|
-
}
|
|
49
|
-
.Bear-RichEditor__content ol {
|
|
50
|
-
list-style-type: decimal !important;
|
|
51
|
-
padding-left: 1.5em !important;
|
|
52
|
-
margin: 0.5em 0 !important;
|
|
53
|
-
display: block !important;
|
|
54
|
-
}
|
|
55
|
-
.Bear-RichEditor__content li {
|
|
56
|
-
margin: 0.25em 0 !important;
|
|
57
|
-
display: list-item !important;
|
|
58
|
-
}
|
|
59
|
-
.Bear-RichEditor__content blockquote {
|
|
60
|
-
border-left: 4px solid #ec4899;
|
|
61
|
-
padding-left: 1em;
|
|
62
|
-
margin: 1em 0;
|
|
63
|
-
color: #6b7280;
|
|
64
|
-
font-style: italic;
|
|
65
|
-
background: rgba(236, 72, 153, 0.05);
|
|
66
|
-
padding: 0.5em 1em;
|
|
67
|
-
border-radius: 0 0.375rem 0.375rem 0;
|
|
68
|
-
}
|
|
69
|
-
.Bear-RichEditor__content pre {
|
|
70
|
-
background: #f3f4f6;
|
|
71
|
-
color: #374151;
|
|
72
|
-
padding: 1em;
|
|
73
|
-
border-radius: 0.5rem;
|
|
74
|
-
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
75
|
-
font-size: 0.875em;
|
|
76
|
-
overflow-x: auto;
|
|
77
|
-
margin: 1em 0;
|
|
78
|
-
white-space: pre-wrap;
|
|
79
|
-
word-break: break-word;
|
|
80
|
-
border: 1px solid #e5e7eb;
|
|
81
|
-
}
|
|
82
|
-
.Bear-RichEditor__content code {
|
|
83
|
-
background: #f3f4f6;
|
|
84
|
-
color: #374151;
|
|
85
|
-
padding: 0.125em 0.25em;
|
|
86
|
-
border-radius: 0.25rem;
|
|
87
|
-
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
88
|
-
font-size: 0.875em;
|
|
89
|
-
}
|
|
90
|
-
.Bear-RichEditor__content a {
|
|
91
|
-
color: #ec4899;
|
|
92
|
-
text-decoration: underline;
|
|
93
|
-
cursor: pointer;
|
|
94
|
-
}
|
|
95
|
-
.Bear-RichEditor__content a:hover {
|
|
96
|
-
color: #db2777;
|
|
97
|
-
}
|
|
98
|
-
.Bear-RichEditor__content img {
|
|
99
|
-
max-width: 100%;
|
|
100
|
-
height: auto;
|
|
101
|
-
border-radius: 0.5rem;
|
|
102
|
-
margin: 1em 0;
|
|
103
|
-
display: block;
|
|
104
|
-
}
|
|
105
|
-
.Bear-RichEditor__content table {
|
|
106
|
-
border-collapse: collapse;
|
|
107
|
-
width: 100%;
|
|
108
|
-
margin: 1em 0;
|
|
109
|
-
}
|
|
110
|
-
.Bear-RichEditor__content th,
|
|
111
|
-
.Bear-RichEditor__content td {
|
|
112
|
-
border: 1px solid #d1d5db;
|
|
113
|
-
padding: 0.5em;
|
|
114
|
-
text-align: left;
|
|
115
|
-
}
|
|
116
|
-
.Bear-RichEditor__content th {
|
|
117
|
-
background: #f3f4f6;
|
|
118
|
-
font-weight: 600;
|
|
119
|
-
}
|
|
120
|
-
/* Dark mode styles */
|
|
121
|
-
.dark .Bear-RichEditor__content pre {
|
|
122
|
-
background: #1f2937;
|
|
123
|
-
color: #e5e7eb;
|
|
124
|
-
border-color: #374151;
|
|
125
|
-
}
|
|
126
|
-
.dark .Bear-RichEditor__content code {
|
|
127
|
-
background: #374151;
|
|
128
|
-
color: #e5e7eb;
|
|
129
|
-
}
|
|
130
|
-
.dark .Bear-RichEditor__content blockquote {
|
|
131
|
-
color: #9ca3af;
|
|
132
|
-
background: rgba(236, 72, 153, 0.1);
|
|
133
|
-
}
|
|
134
|
-
.dark .Bear-RichEditor__content th {
|
|
135
|
-
background: #374151;
|
|
136
|
-
}
|
|
137
|
-
.dark .Bear-RichEditor__content th,
|
|
138
|
-
.dark .Bear-RichEditor__content td {
|
|
139
|
-
border-color: #4b5563;
|
|
140
|
-
}
|
|
141
|
-
`;exports.RICH_EDITOR_BUTTON_ACTIVE_CLASSES=_;exports.RICH_EDITOR_BUTTON_BASE_CLASSES=m;exports.RICH_EDITOR_BUTTON_CONFIG=R;exports.RICH_EDITOR_BUTTON_DISABLED_CLASSES=s;exports.RICH_EDITOR_BUTTON_INACTIVE_CLASSES=g;exports.RICH_EDITOR_COLORS=b;exports.RICH_EDITOR_CONTENT_CLASSES=l;exports.RICH_EDITOR_CONTENT_STYLES=E;exports.RICH_EDITOR_DEFAULT_TOOLBAR=i;exports.RICH_EDITOR_DIVIDER_CLASSES=c;exports.RICH_EDITOR_HEADING_OPTIONS=h;exports.RICH_EDITOR_MIN_HEIGHT=t;exports.RICH_EDITOR_MOBILE_BREAKPOINT=a;exports.RICH_EDITOR_MOBILE_MORE_ITEMS=r;exports.RICH_EDITOR_MOBILE_TOOLBAR=o;exports.RICH_EDITOR_ROOT_CLASSES=n;exports.RICH_EDITOR_TOOLBAR_CLASSES=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),T=require("../Typography/Typography.cjs"),i=require("../../constants/numbers.const.cjs"),e=require("../../constants/generals.const.cjs"),_=["headingDropdown","divider","bold","italic","underline","strikethrough","divider","textColor","highlightColor","divider","alignLeft","alignCenter","alignRight","alignJustify","divider","bulletList","orderedList","divider","indent","outdent","divider","blockquote","code","link","image","signature","divider","clearFormat"],n=["headingDropdown","divider","bold","italic","strikethrough","divider","more"],a=["underline","textColor","highlightColor","divider","alignLeft","alignCenter","alignRight","alignJustify","divider","bulletList","orderedList","divider","indent","outdent","divider","blockquote","code","link","image","signature","divider","clearFormat"],I=i.SIX_HUNDRED_FORTY,E=[{value:e.BLOCK_PARAGRAPH,label:"Paragraph",preview:t.jsx(T.Typography,{variant:"body2",children:"Normal text"})},{value:e.BLOCK_H1,label:"Heading 1",preview:t.jsx(T.Typography,{variant:"h1",children:"Heading 1"})},{value:e.BLOCK_H2,label:"Heading 2",preview:t.jsx(T.Typography,{variant:"h2",children:"Heading 2"})},{value:e.BLOCK_H3,label:"Heading 3",preview:t.jsx(T.Typography,{variant:"h3",children:"Heading 3"})},{value:e.BLOCK_H4,label:"Heading 4",preview:t.jsx(T.Typography,{variant:"h4",children:"Heading 4"})},{value:e.BLOCK_H5,label:"Heading 5",preview:t.jsx(T.Typography,{variant:"h5",children:"Heading 5"})},{value:e.BLOCK_H6,label:"Heading 6",preview:t.jsx(T.Typography,{variant:"h6",children:"Heading 6"})}],l={bold:{title:"Bold (Ctrl+B)",command:e.COMMAND_BOLD},italic:{title:"Italic (Ctrl+I)",command:e.COMMAND_ITALIC},underline:{title:"Underline (Ctrl+U)",command:e.COMMAND_UNDERLINE},strikethrough:{title:"Strikethrough",command:e.COMMAND_STRIKE_THROUGH},heading1:{title:"Heading 1",command:e.COMMAND_FORMAT_BLOCK,value:e.BLOCK_H1},heading2:{title:"Heading 2",command:e.COMMAND_FORMAT_BLOCK,value:e.BLOCK_H2},heading3:{title:"Heading 3",command:e.COMMAND_FORMAT_BLOCK,value:e.BLOCK_H3},heading4:{title:"Heading 4",command:e.COMMAND_FORMAT_BLOCK,value:e.BLOCK_H4},heading5:{title:"Heading 5",command:e.COMMAND_FORMAT_BLOCK,value:e.BLOCK_H5},heading6:{title:"Heading 6",command:e.COMMAND_FORMAT_BLOCK,value:e.BLOCK_H6},paragraph:{title:"Paragraph",command:e.COMMAND_FORMAT_BLOCK,value:e.BLOCK_PARAGRAPH},bulletList:{title:"Bullet List",command:e.COMMAND_INSERT_UNORDERED_LIST},orderedList:{title:"Numbered List",command:e.COMMAND_INSERT_ORDERED_LIST},blockquote:{title:"Quote",command:e.COMMAND_FORMAT_BLOCK,value:e.BLOCK_BLOCKQUOTE},code:{title:"Code Block",command:e.COMMAND_FORMAT_BLOCK,value:e.BLOCK_PRE},link:{title:"Insert Link",command:e.COMMAND_CREATE_LINK},image:{title:"Insert Image",command:"insertImage"},textColor:{title:"Text Color",command:e.COMMAND_FORE_COLOR},highlightColor:{title:"Highlight Color",command:e.COMMAND_HILITE_COLOR},alignLeft:{title:"Align Left",command:e.COMMAND_JUSTIFY_LEFT},alignCenter:{title:"Align Center",command:e.COMMAND_JUSTIFY_CENTER},alignRight:{title:"Align Right",command:e.COMMAND_JUSTIFY_RIGHT},alignJustify:{title:"Justify",command:e.COMMAND_JUSTIFY_FULL},indent:{title:"Increase Indent",command:e.COMMAND_INDENT},outdent:{title:"Decrease Indent",command:e.COMMAND_OUTDENT},clearFormat:{title:"Clear Formatting",command:e.COMMAND_REMOVE_FORMAT},table:{title:"Insert Table",command:"insertTable"}},d=["alignLeft","alignCenter","alignRight","alignJustify","indent","outdent","blockquote","code","clearFormat"],O="Text Style",o="Text Color",r="Highlight Color",L="Insert Link",R="Insert Image",C="Insert signature",c="More options",g="Cancel",M="Insert",N="Align Left",A="Align Center",s="Align Right",m="Justify",D="Increase Indent",H="Decrease Indent",h="Clear Formatting",u="Enter URL:",f="https://",S="file",v="image/*",B="image/",b=["#000000","#374151","#6b7280","#9ca3af","#d1d5db","#ffffff","#991b1b","#dc2626","#ef4444","#f87171","#fca5a5","#fee2e2","#9a3412","#ea580c","#f97316","#fb923c","#fdba74","#fed7aa","#854d0e","#ca8a04","#eab308","#facc15","#fde047","#fef08a","#166534","#16a34a","#22c55e","#4ade80","#86efac","#bbf7d0","#1e40af","#2563eb","#3b82f6","#60a5fa","#93c5fd","#bfdbfe","#6b21a8","#9333ea","#a855f7","#c084fc","#d8b4fe","#e9d5ff","#9d174d","#db2777","#ec4899","#f472b6","#f9a8d4","#fbcfe8"];exports.IMAGE_MIME_PREFIX=B;exports.INPUT_ACCEPT_IMAGE=v;exports.INPUT_TYPE_FILE=S;exports.PROMPT_ENTER_URL=u;exports.RICH_EDITOR_BUTTON_CONFIG=l;exports.RICH_EDITOR_COLORS=b;exports.RICH_EDITOR_DEFAULT_TOOLBAR=_;exports.RICH_EDITOR_DESKTOP_MORE_ITEMS=d;exports.RICH_EDITOR_HEADING_OPTIONS=E;exports.RICH_EDITOR_MOBILE_BREAKPOINT=I;exports.RICH_EDITOR_MOBILE_MORE_ITEMS=a;exports.RICH_EDITOR_MOBILE_TOOLBAR=n;exports.TITLE_ALIGN_CENTER=A;exports.TITLE_ALIGN_LEFT=N;exports.TITLE_ALIGN_RIGHT=s;exports.TITLE_CANCEL=g;exports.TITLE_CLEAR_FORMATTING=h;exports.TITLE_DECREASE_INDENT=H;exports.TITLE_HIGHLIGHT_COLOR=r;exports.TITLE_INCREASE_INDENT=D;exports.TITLE_INSERT=M;exports.TITLE_INSERT_IMAGE=R;exports.TITLE_INSERT_LINK=L;exports.TITLE_INSERT_SIGNATURE=C;exports.TITLE_JUSTIFY=m;exports.TITLE_MORE_OPTIONS=c;exports.TITLE_TEXT_COLOR=o;exports.TITLE_TEXT_STYLE=O;exports.URL_HTTPS_PREFIX=f;
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { ToolbarOption, DropdownOption } from './RichEditor.types';
|
|
2
|
-
export declare const RICH_EDITOR_MIN_HEIGHT = 150;
|
|
3
2
|
export declare const RICH_EDITOR_DEFAULT_TOOLBAR: ToolbarOption[];
|
|
4
3
|
export declare const RICH_EDITOR_COMPACT_TOOLBAR: ToolbarOption[];
|
|
5
4
|
export declare const RICH_EDITOR_MOBILE_TOOLBAR: ToolbarOption[];
|
|
6
5
|
export declare const RICH_EDITOR_MOBILE_MORE_ITEMS: ToolbarOption[];
|
|
7
6
|
export declare const RICH_EDITOR_MOBILE_BREAKPOINT = 640;
|
|
8
7
|
export declare const RICH_EDITOR_SIMPLE_TOOLBAR: ToolbarOption[];
|
|
9
|
-
export declare const RICH_EDITOR_ROOT_CLASSES = "Bear-RichEditor rounded-lg border border-gray-200 dark:border-zinc-700 overflow-hidden bg-white dark:bg-zinc-900 shadow-sm";
|
|
10
|
-
export declare const RICH_EDITOR_TOOLBAR_CLASSES = "flex flex-wrap items-center gap-0.5 p-2 border-b border-gray-200 dark:border-zinc-700 bg-gray-50 dark:bg-zinc-800 overflow-x-auto overflow-y-hidden";
|
|
11
|
-
export declare const RICH_EDITOR_CONTENT_CLASSES = "p-4 outline-none max-w-none text-gray-900 dark:text-gray-100 bg-white dark:bg-zinc-900 min-h-[100px]";
|
|
12
|
-
export declare const RICH_EDITOR_DIVIDER_CLASSES = "w-px h-5 bg-gray-300 dark:bg-zinc-600 mx-1";
|
|
13
|
-
export declare const RICH_EDITOR_BUTTON_BASE_CLASSES = "p-1.5 rounded transition-colors";
|
|
14
|
-
export declare const RICH_EDITOR_BUTTON_ACTIVE_CLASSES = "bg-primary-500 text-white";
|
|
15
|
-
export declare const RICH_EDITOR_BUTTON_INACTIVE_CLASSES = "text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-zinc-700";
|
|
16
|
-
export declare const RICH_EDITOR_BUTTON_DISABLED_CLASSES = "opacity-50 cursor-not-allowed";
|
|
17
|
-
export declare const RICH_EDITOR_COLOR_PICKER_Z_INDEX = 9999;
|
|
18
8
|
export declare const RICH_EDITOR_HEADING_OPTIONS: DropdownOption[];
|
|
19
9
|
export declare const RICH_EDITOR_BUTTON_CONFIG: {
|
|
20
10
|
readonly bold: {
|
|
@@ -136,5 +126,26 @@ export declare const RICH_EDITOR_BUTTON_CONFIG: {
|
|
|
136
126
|
};
|
|
137
127
|
};
|
|
138
128
|
export declare const FORMAT_BLOCK_MAP: Record<string, string>;
|
|
129
|
+
export declare const RICH_EDITOR_DESKTOP_MORE_ITEMS: ToolbarOption[];
|
|
130
|
+
export declare const TITLE_TEXT_STYLE = "Text Style";
|
|
131
|
+
export declare const TITLE_TEXT_COLOR = "Text Color";
|
|
132
|
+
export declare const TITLE_HIGHLIGHT_COLOR = "Highlight Color";
|
|
133
|
+
export declare const TITLE_INSERT_LINK = "Insert Link";
|
|
134
|
+
export declare const TITLE_INSERT_IMAGE = "Insert Image";
|
|
135
|
+
export declare const TITLE_INSERT_SIGNATURE = "Insert signature";
|
|
136
|
+
export declare const TITLE_MORE_OPTIONS = "More options";
|
|
137
|
+
export declare const TITLE_CANCEL = "Cancel";
|
|
138
|
+
export declare const TITLE_INSERT = "Insert";
|
|
139
|
+
export declare const TITLE_ALIGN_LEFT = "Align Left";
|
|
140
|
+
export declare const TITLE_ALIGN_CENTER = "Align Center";
|
|
141
|
+
export declare const TITLE_ALIGN_RIGHT = "Align Right";
|
|
142
|
+
export declare const TITLE_JUSTIFY = "Justify";
|
|
143
|
+
export declare const TITLE_INCREASE_INDENT = "Increase Indent";
|
|
144
|
+
export declare const TITLE_DECREASE_INDENT = "Decrease Indent";
|
|
145
|
+
export declare const TITLE_CLEAR_FORMATTING = "Clear Formatting";
|
|
146
|
+
export declare const PROMPT_ENTER_URL = "Enter URL:";
|
|
147
|
+
export declare const URL_HTTPS_PREFIX = "https://";
|
|
148
|
+
export declare const INPUT_TYPE_FILE = "file";
|
|
149
|
+
export declare const INPUT_ACCEPT_IMAGE = "image/*";
|
|
150
|
+
export declare const IMAGE_MIME_PREFIX = "image/";
|
|
139
151
|
export declare const RICH_EDITOR_COLORS: string[];
|
|
140
|
-
export declare const RICH_EDITOR_CONTENT_STYLES = "\n .Bear-RichEditor__content {\n line-height: 1.6;\n }\n .Bear-RichEditor__content h1 { \n font-size: 2rem; \n font-weight: bold; \n margin: 0.67em 0; \n line-height: 1.2;\n }\n .Bear-RichEditor__content h2 { \n font-size: 1.5rem; \n font-weight: bold; \n margin: 0.83em 0; \n line-height: 1.3;\n }\n .Bear-RichEditor__content h3 { \n font-size: 1.25rem; \n font-weight: 600; \n margin: 1em 0; \n line-height: 1.4;\n }\n .Bear-RichEditor__content h4 { \n font-size: 1.125rem; \n font-weight: 600; \n margin: 1.33em 0;\n }\n .Bear-RichEditor__content h5 { \n font-size: 1rem; \n font-weight: 600; \n margin: 1.67em 0;\n }\n .Bear-RichEditor__content h6 { \n font-size: 0.875rem; \n font-weight: 600; \n text-transform: uppercase;\n letter-spacing: 0.05em;\n margin: 2em 0;\n }\n .Bear-RichEditor__content p { \n margin: 0.5em 0; \n }\n .Bear-RichEditor__content ul { \n list-style-type: disc !important; \n padding-left: 1.5em !important; \n margin: 0.5em 0 !important; \n display: block !important;\n }\n .Bear-RichEditor__content ol { \n list-style-type: decimal !important; \n padding-left: 1.5em !important; \n margin: 0.5em 0 !important;\n display: block !important;\n }\n .Bear-RichEditor__content li { \n margin: 0.25em 0 !important;\n display: list-item !important;\n }\n .Bear-RichEditor__content blockquote { \n border-left: 4px solid #ec4899; \n padding-left: 1em; \n margin: 1em 0; \n color: #6b7280; \n font-style: italic;\n background: rgba(236, 72, 153, 0.05);\n padding: 0.5em 1em;\n border-radius: 0 0.375rem 0.375rem 0;\n }\n .Bear-RichEditor__content pre { \n background: #f3f4f6; \n color: #374151;\n padding: 1em; \n border-radius: 0.5rem; \n font-family: ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, monospace; \n font-size: 0.875em;\n overflow-x: auto; \n margin: 1em 0;\n white-space: pre-wrap;\n word-break: break-word;\n border: 1px solid #e5e7eb;\n }\n .Bear-RichEditor__content code {\n background: #f3f4f6;\n color: #374151;\n padding: 0.125em 0.25em;\n border-radius: 0.25rem;\n font-family: ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, monospace;\n font-size: 0.875em;\n }\n .Bear-RichEditor__content a { \n color: #ec4899; \n text-decoration: underline;\n cursor: pointer;\n }\n .Bear-RichEditor__content a:hover {\n color: #db2777;\n }\n .Bear-RichEditor__content img { \n max-width: 100%; \n height: auto; \n border-radius: 0.5rem; \n margin: 1em 0;\n display: block;\n }\n .Bear-RichEditor__content table {\n border-collapse: collapse;\n width: 100%;\n margin: 1em 0;\n }\n .Bear-RichEditor__content th,\n .Bear-RichEditor__content td {\n border: 1px solid #d1d5db;\n padding: 0.5em;\n text-align: left;\n }\n .Bear-RichEditor__content th {\n background: #f3f4f6;\n font-weight: 600;\n }\n /* Dark mode styles */\n .dark .Bear-RichEditor__content pre {\n background: #1f2937;\n color: #e5e7eb;\n border-color: #374151;\n }\n .dark .Bear-RichEditor__content code {\n background: #374151;\n color: #e5e7eb;\n }\n .dark .Bear-RichEditor__content blockquote {\n color: #9ca3af;\n background: rgba(236, 72, 153, 0.1);\n }\n .dark .Bear-RichEditor__content th {\n background: #374151;\n }\n .dark .Bear-RichEditor__content th,\n .dark .Bear-RichEditor__content td {\n border-color: #4b5563;\n }\n";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as i } from "../Typography/Typography.js";
|
|
3
|
+
import { SIX_HUNDRED_FORTY as _ } from "../../constants/numbers.const.js";
|
|
4
|
+
import { COMMAND_REMOVE_FORMAT as I, COMMAND_OUTDENT as c, COMMAND_INDENT as E, COMMAND_JUSTIFY_FULL as g, COMMAND_JUSTIFY_RIGHT as m, COMMAND_JUSTIFY_CENTER as L, COMMAND_JUSTIFY_LEFT as O, COMMAND_HILITE_COLOR as C, COMMAND_FORE_COLOR as R, COMMAND_CREATE_LINK as s, BLOCK_PRE as N, COMMAND_FORMAT_BLOCK as e, BLOCK_BLOCKQUOTE as f, COMMAND_INSERT_ORDERED_LIST as h, COMMAND_INSERT_UNORDERED_LIST as M, BLOCK_PARAGRAPH as n, BLOCK_H6 as a, BLOCK_H5 as l, BLOCK_H4 as d, BLOCK_H3 as o, BLOCK_H2 as r, BLOCK_H1 as T, COMMAND_STRIKE_THROUGH as A, COMMAND_UNDERLINE as u, COMMAND_ITALIC as H, COMMAND_BOLD as D } from "../../constants/generals.const.js";
|
|
5
|
+
const B = [
|
|
3
6
|
"headingDropdown",
|
|
4
7
|
"divider",
|
|
5
8
|
"bold",
|
|
@@ -25,9 +28,10 @@ const i = 150, o = [
|
|
|
25
28
|
"code",
|
|
26
29
|
"link",
|
|
27
30
|
"image",
|
|
31
|
+
"signature",
|
|
28
32
|
"divider",
|
|
29
33
|
"clearFormat"
|
|
30
|
-
],
|
|
34
|
+
], p = [
|
|
31
35
|
"headingDropdown",
|
|
32
36
|
"divider",
|
|
33
37
|
"bold",
|
|
@@ -35,7 +39,7 @@ const i = 150, o = [
|
|
|
35
39
|
"strikethrough",
|
|
36
40
|
"divider",
|
|
37
41
|
"more"
|
|
38
|
-
],
|
|
42
|
+
], U = [
|
|
39
43
|
"underline",
|
|
40
44
|
"textColor",
|
|
41
45
|
"highlightColor",
|
|
@@ -55,45 +59,56 @@ const i = 150, o = [
|
|
|
55
59
|
"code",
|
|
56
60
|
"link",
|
|
57
61
|
"image",
|
|
62
|
+
"signature",
|
|
58
63
|
"divider",
|
|
59
64
|
"clearFormat"
|
|
60
|
-
],
|
|
61
|
-
{ value:
|
|
62
|
-
{ value:
|
|
63
|
-
{ value:
|
|
64
|
-
{ value:
|
|
65
|
-
{ value:
|
|
66
|
-
{ value:
|
|
67
|
-
{ value:
|
|
68
|
-
],
|
|
69
|
-
bold: { title: "Bold (Ctrl+B)", command:
|
|
70
|
-
italic: { title: "Italic (Ctrl+I)", command:
|
|
71
|
-
underline: { title: "Underline (Ctrl+U)", command:
|
|
72
|
-
strikethrough: { title: "Strikethrough", command:
|
|
73
|
-
heading1: { title: "Heading 1", command:
|
|
74
|
-
heading2: { title: "Heading 2", command:
|
|
75
|
-
heading3: { title: "Heading 3", command:
|
|
76
|
-
heading4: { title: "Heading 4", command:
|
|
77
|
-
heading5: { title: "Heading 5", command:
|
|
78
|
-
heading6: { title: "Heading 6", command:
|
|
79
|
-
paragraph: { title: "Paragraph", command:
|
|
80
|
-
bulletList: { title: "Bullet List", command:
|
|
81
|
-
orderedList: { title: "Numbered List", command:
|
|
82
|
-
blockquote: { title: "Quote", command:
|
|
83
|
-
code: { title: "Code Block", command:
|
|
84
|
-
link: { title: "Insert Link", command:
|
|
65
|
+
], P = _, G = [
|
|
66
|
+
{ value: n, label: "Paragraph", preview: /* @__PURE__ */ t(i, { variant: "body2", children: "Normal text" }) },
|
|
67
|
+
{ value: T, label: "Heading 1", preview: /* @__PURE__ */ t(i, { variant: "h1", children: "Heading 1" }) },
|
|
68
|
+
{ value: r, label: "Heading 2", preview: /* @__PURE__ */ t(i, { variant: "h2", children: "Heading 2" }) },
|
|
69
|
+
{ value: o, label: "Heading 3", preview: /* @__PURE__ */ t(i, { variant: "h3", children: "Heading 3" }) },
|
|
70
|
+
{ value: d, label: "Heading 4", preview: /* @__PURE__ */ t(i, { variant: "h4", children: "Heading 4" }) },
|
|
71
|
+
{ value: l, label: "Heading 5", preview: /* @__PURE__ */ t(i, { variant: "h5", children: "Heading 5" }) },
|
|
72
|
+
{ value: a, label: "Heading 6", preview: /* @__PURE__ */ t(i, { variant: "h6", children: "Heading 6" }) }
|
|
73
|
+
], K = {
|
|
74
|
+
bold: { title: "Bold (Ctrl+B)", command: D },
|
|
75
|
+
italic: { title: "Italic (Ctrl+I)", command: H },
|
|
76
|
+
underline: { title: "Underline (Ctrl+U)", command: u },
|
|
77
|
+
strikethrough: { title: "Strikethrough", command: A },
|
|
78
|
+
heading1: { title: "Heading 1", command: e, value: T },
|
|
79
|
+
heading2: { title: "Heading 2", command: e, value: r },
|
|
80
|
+
heading3: { title: "Heading 3", command: e, value: o },
|
|
81
|
+
heading4: { title: "Heading 4", command: e, value: d },
|
|
82
|
+
heading5: { title: "Heading 5", command: e, value: l },
|
|
83
|
+
heading6: { title: "Heading 6", command: e, value: a },
|
|
84
|
+
paragraph: { title: "Paragraph", command: e, value: n },
|
|
85
|
+
bulletList: { title: "Bullet List", command: M },
|
|
86
|
+
orderedList: { title: "Numbered List", command: h },
|
|
87
|
+
blockquote: { title: "Quote", command: e, value: f },
|
|
88
|
+
code: { title: "Code Block", command: e, value: N },
|
|
89
|
+
link: { title: "Insert Link", command: s },
|
|
85
90
|
image: { title: "Insert Image", command: "insertImage" },
|
|
86
|
-
textColor: { title: "Text Color", command:
|
|
87
|
-
highlightColor: { title: "Highlight Color", command:
|
|
88
|
-
alignLeft: { title: "Align Left", command:
|
|
89
|
-
alignCenter: { title: "Align Center", command:
|
|
90
|
-
alignRight: { title: "Align Right", command:
|
|
91
|
-
alignJustify: { title: "Justify", command:
|
|
92
|
-
indent: { title: "Increase Indent", command:
|
|
93
|
-
outdent: { title: "Decrease Indent", command:
|
|
94
|
-
clearFormat: { title: "Clear Formatting", command:
|
|
91
|
+
textColor: { title: "Text Color", command: R },
|
|
92
|
+
highlightColor: { title: "Highlight Color", command: C },
|
|
93
|
+
alignLeft: { title: "Align Left", command: O },
|
|
94
|
+
alignCenter: { title: "Align Center", command: L },
|
|
95
|
+
alignRight: { title: "Align Right", command: m },
|
|
96
|
+
alignJustify: { title: "Justify", command: g },
|
|
97
|
+
indent: { title: "Increase Indent", command: E },
|
|
98
|
+
outdent: { title: "Decrease Indent", command: c },
|
|
99
|
+
clearFormat: { title: "Clear Formatting", command: I },
|
|
95
100
|
table: { title: "Insert Table", command: "insertTable" }
|
|
96
|
-
},
|
|
101
|
+
}, k = [
|
|
102
|
+
"alignLeft",
|
|
103
|
+
"alignCenter",
|
|
104
|
+
"alignRight",
|
|
105
|
+
"alignJustify",
|
|
106
|
+
"indent",
|
|
107
|
+
"outdent",
|
|
108
|
+
"blockquote",
|
|
109
|
+
"code",
|
|
110
|
+
"clearFormat"
|
|
111
|
+
], J = "Text Style", y = "Text Color", w = "Highlight Color", x = "Insert Link", Y = "Insert Image", X = "Insert signature", q = "More options", Q = "Cancel", j = "Insert", V = "Align Left", z = "Align Center", W = "Align Right", Z = "Justify", $ = "Increase Indent", ee = "Decrease Indent", te = "Clear Formatting", ie = "Enter URL:", ne = "https://", ae = "file", le = "image/*", de = "image/", oe = [
|
|
97
112
|
// Row 1: Grayscale
|
|
98
113
|
"#000000",
|
|
99
114
|
"#374151",
|
|
@@ -150,163 +165,35 @@ const i = 150, o = [
|
|
|
150
165
|
"#f472b6",
|
|
151
166
|
"#f9a8d4",
|
|
152
167
|
"#fbcfe8"
|
|
153
|
-
]
|
|
154
|
-
.Bear-RichEditor__content {
|
|
155
|
-
line-height: 1.6;
|
|
156
|
-
}
|
|
157
|
-
.Bear-RichEditor__content h1 {
|
|
158
|
-
font-size: 2rem;
|
|
159
|
-
font-weight: bold;
|
|
160
|
-
margin: 0.67em 0;
|
|
161
|
-
line-height: 1.2;
|
|
162
|
-
}
|
|
163
|
-
.Bear-RichEditor__content h2 {
|
|
164
|
-
font-size: 1.5rem;
|
|
165
|
-
font-weight: bold;
|
|
166
|
-
margin: 0.83em 0;
|
|
167
|
-
line-height: 1.3;
|
|
168
|
-
}
|
|
169
|
-
.Bear-RichEditor__content h3 {
|
|
170
|
-
font-size: 1.25rem;
|
|
171
|
-
font-weight: 600;
|
|
172
|
-
margin: 1em 0;
|
|
173
|
-
line-height: 1.4;
|
|
174
|
-
}
|
|
175
|
-
.Bear-RichEditor__content h4 {
|
|
176
|
-
font-size: 1.125rem;
|
|
177
|
-
font-weight: 600;
|
|
178
|
-
margin: 1.33em 0;
|
|
179
|
-
}
|
|
180
|
-
.Bear-RichEditor__content h5 {
|
|
181
|
-
font-size: 1rem;
|
|
182
|
-
font-weight: 600;
|
|
183
|
-
margin: 1.67em 0;
|
|
184
|
-
}
|
|
185
|
-
.Bear-RichEditor__content h6 {
|
|
186
|
-
font-size: 0.875rem;
|
|
187
|
-
font-weight: 600;
|
|
188
|
-
text-transform: uppercase;
|
|
189
|
-
letter-spacing: 0.05em;
|
|
190
|
-
margin: 2em 0;
|
|
191
|
-
}
|
|
192
|
-
.Bear-RichEditor__content p {
|
|
193
|
-
margin: 0.5em 0;
|
|
194
|
-
}
|
|
195
|
-
.Bear-RichEditor__content ul {
|
|
196
|
-
list-style-type: disc !important;
|
|
197
|
-
padding-left: 1.5em !important;
|
|
198
|
-
margin: 0.5em 0 !important;
|
|
199
|
-
display: block !important;
|
|
200
|
-
}
|
|
201
|
-
.Bear-RichEditor__content ol {
|
|
202
|
-
list-style-type: decimal !important;
|
|
203
|
-
padding-left: 1.5em !important;
|
|
204
|
-
margin: 0.5em 0 !important;
|
|
205
|
-
display: block !important;
|
|
206
|
-
}
|
|
207
|
-
.Bear-RichEditor__content li {
|
|
208
|
-
margin: 0.25em 0 !important;
|
|
209
|
-
display: list-item !important;
|
|
210
|
-
}
|
|
211
|
-
.Bear-RichEditor__content blockquote {
|
|
212
|
-
border-left: 4px solid #ec4899;
|
|
213
|
-
padding-left: 1em;
|
|
214
|
-
margin: 1em 0;
|
|
215
|
-
color: #6b7280;
|
|
216
|
-
font-style: italic;
|
|
217
|
-
background: rgba(236, 72, 153, 0.05);
|
|
218
|
-
padding: 0.5em 1em;
|
|
219
|
-
border-radius: 0 0.375rem 0.375rem 0;
|
|
220
|
-
}
|
|
221
|
-
.Bear-RichEditor__content pre {
|
|
222
|
-
background: #f3f4f6;
|
|
223
|
-
color: #374151;
|
|
224
|
-
padding: 1em;
|
|
225
|
-
border-radius: 0.5rem;
|
|
226
|
-
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
227
|
-
font-size: 0.875em;
|
|
228
|
-
overflow-x: auto;
|
|
229
|
-
margin: 1em 0;
|
|
230
|
-
white-space: pre-wrap;
|
|
231
|
-
word-break: break-word;
|
|
232
|
-
border: 1px solid #e5e7eb;
|
|
233
|
-
}
|
|
234
|
-
.Bear-RichEditor__content code {
|
|
235
|
-
background: #f3f4f6;
|
|
236
|
-
color: #374151;
|
|
237
|
-
padding: 0.125em 0.25em;
|
|
238
|
-
border-radius: 0.25rem;
|
|
239
|
-
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
240
|
-
font-size: 0.875em;
|
|
241
|
-
}
|
|
242
|
-
.Bear-RichEditor__content a {
|
|
243
|
-
color: #ec4899;
|
|
244
|
-
text-decoration: underline;
|
|
245
|
-
cursor: pointer;
|
|
246
|
-
}
|
|
247
|
-
.Bear-RichEditor__content a:hover {
|
|
248
|
-
color: #db2777;
|
|
249
|
-
}
|
|
250
|
-
.Bear-RichEditor__content img {
|
|
251
|
-
max-width: 100%;
|
|
252
|
-
height: auto;
|
|
253
|
-
border-radius: 0.5rem;
|
|
254
|
-
margin: 1em 0;
|
|
255
|
-
display: block;
|
|
256
|
-
}
|
|
257
|
-
.Bear-RichEditor__content table {
|
|
258
|
-
border-collapse: collapse;
|
|
259
|
-
width: 100%;
|
|
260
|
-
margin: 1em 0;
|
|
261
|
-
}
|
|
262
|
-
.Bear-RichEditor__content th,
|
|
263
|
-
.Bear-RichEditor__content td {
|
|
264
|
-
border: 1px solid #d1d5db;
|
|
265
|
-
padding: 0.5em;
|
|
266
|
-
text-align: left;
|
|
267
|
-
}
|
|
268
|
-
.Bear-RichEditor__content th {
|
|
269
|
-
background: #f3f4f6;
|
|
270
|
-
font-weight: 600;
|
|
271
|
-
}
|
|
272
|
-
/* Dark mode styles */
|
|
273
|
-
.dark .Bear-RichEditor__content pre {
|
|
274
|
-
background: #1f2937;
|
|
275
|
-
color: #e5e7eb;
|
|
276
|
-
border-color: #374151;
|
|
277
|
-
}
|
|
278
|
-
.dark .Bear-RichEditor__content code {
|
|
279
|
-
background: #374151;
|
|
280
|
-
color: #e5e7eb;
|
|
281
|
-
}
|
|
282
|
-
.dark .Bear-RichEditor__content blockquote {
|
|
283
|
-
color: #9ca3af;
|
|
284
|
-
background: rgba(236, 72, 153, 0.1);
|
|
285
|
-
}
|
|
286
|
-
.dark .Bear-RichEditor__content th {
|
|
287
|
-
background: #374151;
|
|
288
|
-
}
|
|
289
|
-
.dark .Bear-RichEditor__content th,
|
|
290
|
-
.dark .Bear-RichEditor__content td {
|
|
291
|
-
border-color: #4b5563;
|
|
292
|
-
}
|
|
293
|
-
`;
|
|
168
|
+
];
|
|
294
169
|
export {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
170
|
+
de as IMAGE_MIME_PREFIX,
|
|
171
|
+
le as INPUT_ACCEPT_IMAGE,
|
|
172
|
+
ae as INPUT_TYPE_FILE,
|
|
173
|
+
ie as PROMPT_ENTER_URL,
|
|
174
|
+
K as RICH_EDITOR_BUTTON_CONFIG,
|
|
175
|
+
oe as RICH_EDITOR_COLORS,
|
|
176
|
+
B as RICH_EDITOR_DEFAULT_TOOLBAR,
|
|
177
|
+
k as RICH_EDITOR_DESKTOP_MORE_ITEMS,
|
|
178
|
+
G as RICH_EDITOR_HEADING_OPTIONS,
|
|
179
|
+
P as RICH_EDITOR_MOBILE_BREAKPOINT,
|
|
180
|
+
U as RICH_EDITOR_MOBILE_MORE_ITEMS,
|
|
181
|
+
p as RICH_EDITOR_MOBILE_TOOLBAR,
|
|
182
|
+
z as TITLE_ALIGN_CENTER,
|
|
183
|
+
V as TITLE_ALIGN_LEFT,
|
|
184
|
+
W as TITLE_ALIGN_RIGHT,
|
|
185
|
+
Q as TITLE_CANCEL,
|
|
186
|
+
te as TITLE_CLEAR_FORMATTING,
|
|
187
|
+
ee as TITLE_DECREASE_INDENT,
|
|
188
|
+
w as TITLE_HIGHLIGHT_COLOR,
|
|
189
|
+
$ as TITLE_INCREASE_INDENT,
|
|
190
|
+
j as TITLE_INSERT,
|
|
191
|
+
Y as TITLE_INSERT_IMAGE,
|
|
192
|
+
x as TITLE_INSERT_LINK,
|
|
193
|
+
X as TITLE_INSERT_SIGNATURE,
|
|
194
|
+
Z as TITLE_JUSTIFY,
|
|
195
|
+
q as TITLE_MORE_OPTIONS,
|
|
196
|
+
y as TITLE_TEXT_COLOR,
|
|
197
|
+
J as TITLE_TEXT_STYLE,
|
|
198
|
+
ne as URL_HTTPS_PREFIX
|
|
312
199
|
};
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
1
|
import { RichEditorProps } from './RichEditor.types';
|
|
3
|
-
|
|
4
|
-
* RichEditor - WYSIWYG rich text editor with formatting toolbar
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* const [value, setValue] = useState('<p>Start editing...</p>');
|
|
9
|
-
*
|
|
10
|
-
* <RichEditor
|
|
11
|
-
* value={value}
|
|
12
|
-
* onChange={setValue}
|
|
13
|
-
* placeholder="Start typing..."
|
|
14
|
-
* />
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare const RichEditor: FC<RichEditorProps>;
|
|
18
|
-
export default RichEditor;
|
|
2
|
+
export declare const RichEditor: (props: RichEditorProps) => import("react/jsx-runtime").JSX.Element;
|