@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.
Files changed (719) hide show
  1. package/README.md +26 -0
  2. package/dist/components/Accordion/Accordion.cjs +1 -1
  3. package/dist/components/Accordion/Accordion.context.cjs +1 -0
  4. package/dist/components/Accordion/Accordion.context.d.ts +2 -0
  5. package/dist/components/Accordion/Accordion.context.js +5 -0
  6. package/dist/components/Accordion/Accordion.d.ts +2 -22
  7. package/dist/components/Accordion/Accordion.js +21 -73
  8. package/dist/components/Accordion/components/AccordionItem/AccordionItem.cjs +1 -0
  9. package/dist/components/Accordion/components/AccordionItem/AccordionItem.const.d.ts +1 -0
  10. package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +2 -0
  11. package/dist/components/Accordion/components/AccordionItem/AccordionItem.js +60 -0
  12. package/dist/components/Accordion/components/AccordionItem/AccordionItem.types.d.ts +1 -0
  13. package/dist/components/Accordion/components/AccordionItem/AccordionItem.utils.cjs +1 -0
  14. package/dist/components/Accordion/components/AccordionItem/AccordionItem.utils.d.ts +1 -0
  15. package/dist/components/Accordion/components/AccordionItem/AccordionItem.utils.js +4 -0
  16. package/dist/components/Accordion/components/AccordionItem/index.d.ts +2 -0
  17. package/dist/components/Accordion/components/index.d.ts +2 -0
  18. package/dist/components/Accordion/hooks/index.d.ts +1 -0
  19. package/dist/components/Accordion/hooks/useAccordion.cjs +1 -0
  20. package/dist/components/Accordion/hooks/useAccordion.d.ts +2 -0
  21. package/dist/components/Accordion/hooks/useAccordion.js +12 -0
  22. package/dist/components/Accordion/index.d.ts +3 -3
  23. package/dist/components/ActionIcon/ActionIcon.cjs +1 -1
  24. package/dist/components/ActionIcon/ActionIcon.const.cjs +1 -1
  25. package/dist/components/ActionIcon/ActionIcon.const.d.ts +0 -1
  26. package/dist/components/ActionIcon/ActionIcon.const.js +1 -2
  27. package/dist/components/ActionIcon/ActionIcon.d.ts +4 -2
  28. package/dist/components/ActionIcon/ActionIcon.js +37 -32
  29. package/dist/components/ActionIcon/ActionIcon.types.d.ts +6 -4
  30. package/dist/components/ActiveBar/ActiveBar.cjs +1 -8
  31. package/dist/components/ActiveBar/ActiveBar.const.cjs +1 -0
  32. package/dist/components/ActiveBar/ActiveBar.const.d.ts +7 -1
  33. package/dist/components/ActiveBar/ActiveBar.const.js +28 -0
  34. package/dist/components/ActiveBar/ActiveBar.js +79 -72
  35. package/dist/components/ActiveBar/ActiveBar.types.d.ts +4 -2
  36. package/dist/components/ActivityItem/ActivityItem.cjs +1 -1
  37. package/dist/components/ActivityItem/ActivityItem.d.ts +1 -6
  38. package/dist/components/ActivityItem/ActivityItem.js +47 -40
  39. package/dist/components/Affix/Affix.cjs +1 -1
  40. package/dist/components/Affix/Affix.d.ts +1 -2
  41. package/dist/components/Affix/Affix.js +68 -53
  42. package/dist/components/Affix/Affix.types.d.ts +13 -0
  43. package/dist/components/Affix/Affix.utils.cjs +1 -0
  44. package/dist/components/Affix/Affix.utils.d.ts +3 -0
  45. package/dist/components/Affix/Affix.utils.js +10 -0
  46. package/dist/components/Affix/index.d.ts +1 -1
  47. package/dist/components/Alert/Alert.cjs +1 -1
  48. package/dist/components/Alert/Alert.const.cjs +1 -1
  49. package/dist/components/Alert/Alert.const.d.ts +0 -10
  50. package/dist/components/Alert/Alert.const.js +30 -10
  51. package/dist/components/Alert/Alert.d.ts +1 -14
  52. package/dist/components/Alert/Alert.js +55 -80
  53. package/dist/components/AlertDialog/AlertDialog.cjs +1 -1
  54. package/dist/components/AlertDialog/AlertDialog.d.ts +1 -2
  55. package/dist/components/AlertDialog/AlertDialog.js +75 -67
  56. package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -15
  57. package/dist/components/AlertDialog/index.d.ts +0 -1
  58. package/dist/components/Anchor/Anchor.cjs +1 -1
  59. package/dist/components/Anchor/Anchor.d.ts +1 -2
  60. package/dist/components/Anchor/Anchor.js +69 -61
  61. package/dist/components/AnimatedCounter/AnimatedCounter.cjs +1 -1
  62. package/dist/components/AnimatedCounter/AnimatedCounter.d.ts +1 -2
  63. package/dist/components/AnimatedCounter/AnimatedCounter.js +45 -43
  64. package/dist/components/AnimatedCounter/AnimatedCounter.types.d.ts +2 -12
  65. package/dist/components/AppBar/AppBar.cjs +1 -1
  66. package/dist/components/AppBar/AppBar.const.cjs +1 -1
  67. package/dist/components/AppBar/AppBar.const.d.ts +4 -36
  68. package/dist/components/AppBar/AppBar.const.js +7 -27
  69. package/dist/components/AppBar/AppBar.d.ts +1 -2
  70. package/dist/components/AppBar/AppBar.js +43 -64
  71. package/dist/components/AppShell/AppShell.cjs +1 -1
  72. package/dist/components/AppShell/AppShell.const.cjs +1 -1
  73. package/dist/components/AppShell/AppShell.const.d.ts +0 -17
  74. package/dist/components/AppShell/AppShell.const.js +3 -20
  75. package/dist/components/AppShell/AppShell.d.ts +1 -2
  76. package/dist/components/AppShell/AppShell.js +54 -50
  77. package/dist/components/AspectRatio/AspectRatio.cjs +1 -1
  78. package/dist/components/AspectRatio/AspectRatio.d.ts +1 -2
  79. package/dist/components/AspectRatio/AspectRatio.js +23 -21
  80. package/dist/components/Autocomplete/Autocomplete.cjs +1 -1
  81. package/dist/components/Autocomplete/Autocomplete.d.ts +1 -16
  82. package/dist/components/Autocomplete/Autocomplete.js +120 -134
  83. package/dist/components/Autocomplete/hooks/index.d.ts +1 -0
  84. package/dist/components/Autocomplete/hooks/useAutocomplete.cjs +1 -0
  85. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +25 -0
  86. package/dist/components/Autocomplete/hooks/useAutocomplete.js +78 -0
  87. package/dist/components/Avatar/Avatar.cjs +1 -1
  88. package/dist/components/Avatar/Avatar.const.cjs +1 -1
  89. package/dist/components/Avatar/Avatar.const.d.ts +4 -7
  90. package/dist/components/Avatar/Avatar.const.js +12 -12
  91. package/dist/components/Avatar/Avatar.d.ts +2 -16
  92. package/dist/components/Avatar/Avatar.js +51 -66
  93. package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.cjs +1 -0
  94. package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.const.d.ts +1 -0
  95. package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.d.ts +2 -0
  96. package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.js +39 -0
  97. package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.types.d.ts +1 -0
  98. package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.utils.cjs +1 -0
  99. package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.utils.d.ts +5 -0
  100. package/dist/components/Avatar/components/AvatarGroup/AvatarGroup.utils.js +9 -0
  101. package/dist/components/Avatar/components/AvatarGroup/index.d.ts +2 -0
  102. package/dist/components/Avatar/components/index.d.ts +2 -0
  103. package/dist/components/Avatar/index.d.ts +2 -1
  104. package/dist/components/BackTop/BackTop.cjs +1 -1
  105. package/dist/components/BackTop/BackTop.const.cjs +1 -1
  106. package/dist/components/BackTop/BackTop.const.d.ts +21 -27
  107. package/dist/components/BackTop/BackTop.const.js +13 -7
  108. package/dist/components/BackTop/BackTop.d.ts +1 -19
  109. package/dist/components/BackTop/BackTop.js +65 -66
  110. package/dist/components/BackTop/BackTop.types.d.ts +2 -14
  111. package/dist/components/Backdrop/Backdrop.cjs +1 -1
  112. package/dist/components/Backdrop/Backdrop.d.ts +1 -2
  113. package/dist/components/Backdrop/Backdrop.js +39 -38
  114. package/dist/components/Backdrop/index.d.ts +1 -1
  115. package/dist/components/Badge/Badge.cjs +1 -1
  116. package/dist/components/Badge/Badge.constants.cjs +1 -1
  117. package/dist/components/Badge/Badge.constants.d.ts +0 -2
  118. package/dist/components/Badge/Badge.constants.js +6 -7
  119. package/dist/components/Badge/Badge.d.ts +1 -12
  120. package/dist/components/Badge/Badge.js +45 -41
  121. package/dist/components/Badge/Badge.types.d.ts +0 -5
  122. package/dist/components/Banner/Banner.cjs +1 -1
  123. package/dist/components/Banner/Banner.const.cjs +1 -1
  124. package/dist/components/Banner/Banner.const.d.ts +2 -17
  125. package/dist/components/Banner/Banner.const.js +16 -25
  126. package/dist/components/Banner/Banner.d.ts +1 -2
  127. package/dist/components/Banner/Banner.js +58 -57
  128. package/dist/components/Biometric/Biometric.cjs +1 -1
  129. package/dist/components/Biometric/Biometric.const.cjs +1 -0
  130. package/dist/components/Biometric/Biometric.const.d.ts +7 -1
  131. package/dist/components/Biometric/Biometric.const.js +31 -0
  132. package/dist/components/Biometric/Biometric.d.ts +1 -2
  133. package/dist/components/Biometric/Biometric.js +57 -106
  134. package/dist/components/Biometric/Biometric.types.d.ts +2 -1
  135. package/dist/components/Biometric/Biometric.utils.cjs +1 -0
  136. package/dist/components/Biometric/Biometric.utils.d.ts +9 -0
  137. package/dist/components/Biometric/Biometric.utils.js +5 -0
  138. package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.cjs +1 -0
  139. package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.const.cjs +1 -0
  140. package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.const.d.ts +5 -0
  141. package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.const.js +11 -0
  142. package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.d.ts +2 -0
  143. package/dist/components/Biometric/components/BiometricIcon/BiometricIcon.js +21 -0
  144. package/dist/components/Biometric/components/BiometricIcon/helpers/FaceSvg.cjs +1 -0
  145. package/dist/components/Biometric/components/BiometricIcon/helpers/FaceSvg.d.ts +4 -0
  146. package/dist/components/Biometric/components/BiometricIcon/helpers/FaceSvg.js +17 -0
  147. package/dist/components/Biometric/components/BiometricIcon/helpers/FingerprintSvg.cjs +1 -0
  148. package/dist/components/Biometric/components/BiometricIcon/helpers/FingerprintSvg.d.ts +4 -0
  149. package/dist/components/Biometric/components/BiometricIcon/helpers/FingerprintSvg.js +18 -0
  150. package/dist/components/Biometric/components/BiometricIcon/helpers/IrisSvg.cjs +1 -0
  151. package/dist/components/Biometric/components/BiometricIcon/helpers/IrisSvg.d.ts +4 -0
  152. package/dist/components/Biometric/components/BiometricIcon/helpers/IrisSvg.js +15 -0
  153. package/dist/components/Biometric/components/BiometricIcon/index.d.ts +1 -0
  154. package/dist/components/Biometric/components/BiometricScanRipple/BiometricScanRipple.cjs +1 -0
  155. package/dist/components/Biometric/components/BiometricScanRipple/BiometricScanRipple.d.ts +2 -0
  156. package/dist/components/Biometric/components/BiometricScanRipple/BiometricScanRipple.js +27 -0
  157. package/dist/components/Biometric/components/BiometricScanRipple/BiometricScanRipple.types.d.ts +3 -0
  158. package/dist/components/Biometric/components/BiometricScanRipple/index.d.ts +2 -0
  159. package/dist/components/Biometric/components/BiometricTrigger/BiometricTrigger.cjs +1 -0
  160. package/dist/components/Biometric/components/BiometricTrigger/BiometricTrigger.d.ts +2 -0
  161. package/dist/components/Biometric/components/BiometricTrigger/BiometricTrigger.js +61 -0
  162. package/dist/components/Biometric/components/BiometricTrigger/BiometricTrigger.types.d.ts +10 -0
  163. package/dist/components/Biometric/components/BiometricTrigger/index.d.ts +2 -0
  164. package/dist/components/Biometric/components/index.d.ts +3 -0
  165. package/dist/components/Biometric/useBiometric.cjs +1 -1
  166. package/dist/components/Biometric/useBiometric.js +18 -16
  167. package/dist/components/Blockquote/Blockquote.cjs +1 -1
  168. package/dist/components/Blockquote/Blockquote.const.cjs +1 -1
  169. package/dist/components/Blockquote/Blockquote.const.d.ts +0 -2
  170. package/dist/components/Blockquote/Blockquote.const.js +2 -4
  171. package/dist/components/Blockquote/Blockquote.d.ts +1 -2
  172. package/dist/components/Blockquote/Blockquote.js +36 -37
  173. package/dist/components/BottomNavigation/BottomNavigation.cjs +1 -1
  174. package/dist/components/BottomNavigation/BottomNavigation.const.cjs +1 -1
  175. package/dist/components/BottomNavigation/BottomNavigation.const.d.ts +2 -8
  176. package/dist/components/BottomNavigation/BottomNavigation.const.js +3 -6
  177. package/dist/components/BottomNavigation/BottomNavigation.d.ts +1 -2
  178. package/dist/components/BottomNavigation/BottomNavigation.js +42 -41
  179. package/dist/components/BottomNavigation/BottomNavigation.types.d.ts +2 -1
  180. package/dist/components/BottomNavigation/index.d.ts +1 -1
  181. package/dist/components/BottomSheet/BottomSheet.cjs +1 -1
  182. package/dist/components/BottomSheet/BottomSheet.const.cjs +1 -0
  183. package/dist/components/BottomSheet/BottomSheet.const.d.ts +2 -1
  184. package/dist/components/BottomSheet/BottomSheet.const.js +10 -0
  185. package/dist/components/BottomSheet/BottomSheet.d.ts +1 -2
  186. package/dist/components/BottomSheet/BottomSheet.js +119 -115
  187. package/dist/components/BottomSheet/BottomSheet.types.d.ts +2 -1
  188. package/dist/components/BottomSheet/index.d.ts +1 -1
  189. package/dist/components/Breadcrumbs/Breadcrumbs.cjs +1 -1
  190. package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
  191. package/dist/components/Button/Button.types.d.ts +1 -2
  192. package/dist/components/Calendar/Calendar.cjs +1 -1
  193. package/dist/components/Calendar/Calendar.js +127 -108
  194. package/dist/components/Calendar/Calendar.types.d.ts +7 -7
  195. package/dist/components/Chart/BarChart.cjs +1 -1
  196. package/dist/components/Chart/BarChart.d.ts +1 -2
  197. package/dist/components/Chart/BarChart.js +81 -61
  198. package/dist/components/Chart/Chart.cjs +1 -1
  199. package/dist/components/Chart/Chart.const.cjs +1 -1
  200. package/dist/components/Chart/Chart.const.d.ts +24 -3
  201. package/dist/components/Chart/Chart.const.js +39 -16
  202. package/dist/components/Chart/Chart.d.ts +1 -5
  203. package/dist/components/Chart/Chart.js +19 -23
  204. package/dist/components/Chart/Chart.types.d.ts +11 -19
  205. package/dist/components/Chart/Chart.utils.cjs +1 -1
  206. package/dist/components/Chart/Chart.utils.d.ts +8 -18
  207. package/dist/components/Chart/Chart.utils.js +39 -3
  208. package/dist/components/Chart/FunnelChart.cjs +1 -0
  209. package/dist/components/Chart/FunnelChart.d.ts +2 -0
  210. package/dist/components/Chart/FunnelChart.js +59 -0
  211. package/dist/components/Chart/LineChart.cjs +1 -1
  212. package/dist/components/Chart/LineChart.d.ts +1 -2
  213. package/dist/components/Chart/LineChart.js +51 -55
  214. package/dist/components/Chart/PieChart.cjs +1 -1
  215. package/dist/components/Chart/PieChart.d.ts +1 -2
  216. package/dist/components/Chart/PieChart.js +121 -106
  217. package/dist/components/Chart/PieChart.types.d.ts +8 -0
  218. package/dist/components/Chart/RadarChart.cjs +1 -0
  219. package/dist/components/Chart/RadarChart.d.ts +2 -0
  220. package/dist/components/Chart/RadarChart.js +100 -0
  221. package/dist/components/Chart/index.d.ts +3 -1
  222. package/dist/components/Chat/Chat.cjs +1 -1
  223. package/dist/components/Chat/Chat.js +4 -3
  224. package/dist/components/CurrencyInput/CurrencyInput.cjs +1 -1
  225. package/dist/components/CurrencyInput/CurrencyInput.js +1 -1
  226. package/dist/components/DatePicker/DatePicker.cjs +1 -1
  227. package/dist/components/DatePicker/DatePicker.const.cjs +1 -0
  228. package/dist/components/DatePicker/DatePicker.const.d.ts +16 -0
  229. package/dist/components/DatePicker/DatePicker.const.js +20 -0
  230. package/dist/components/DatePicker/DatePicker.js +124 -121
  231. package/dist/components/DatePicker/DatePicker.types.d.ts +3 -3
  232. package/dist/components/DateRangePicker/DateRangePicker.cjs +1 -1
  233. package/dist/components/DateRangePicker/DateRangePicker.const.cjs +1 -1
  234. package/dist/components/DateRangePicker/DateRangePicker.const.d.ts +3 -20
  235. package/dist/components/DateRangePicker/DateRangePicker.const.js +8 -54
  236. package/dist/components/DateRangePicker/DateRangePicker.js +125 -116
  237. package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +2 -1
  238. package/dist/components/DateRangePicker/DateRangePicker.utils.cjs +1 -1
  239. package/dist/components/DateRangePicker/DateRangePicker.utils.d.ts +6 -0
  240. package/dist/components/DateRangePicker/DateRangePicker.utils.js +64 -20
  241. package/dist/components/Drawer/Drawer.cjs +1 -1
  242. package/dist/components/Drawer/Drawer.const.cjs +1 -1
  243. package/dist/components/Drawer/Drawer.const.d.ts +2 -11
  244. package/dist/components/Drawer/Drawer.const.js +6 -55
  245. package/dist/components/Drawer/Drawer.d.ts +1 -2
  246. package/dist/components/Drawer/Drawer.js +87 -131
  247. package/dist/components/Drawer/Drawer.types.d.ts +16 -3
  248. package/dist/components/Drawer/Drawer.utils.d.ts +0 -4
  249. package/dist/components/Drawer/components/DrawerHeader/DrawerHeader.cjs +1 -0
  250. package/dist/components/Drawer/components/DrawerHeader/DrawerHeader.d.ts +2 -0
  251. package/dist/components/Drawer/components/DrawerHeader/DrawerHeader.js +26 -0
  252. package/dist/components/Drawer/components/DrawerHeader/DrawerHeader.types.d.ts +20 -0
  253. package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderClose.cjs +1 -0
  254. package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderClose.d.ts +2 -0
  255. package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderClose.js +17 -0
  256. package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderTitle.cjs +1 -0
  257. package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderTitle.d.ts +2 -0
  258. package/dist/components/Drawer/components/DrawerHeader/DrawerHeaderTitle.js +9 -0
  259. package/dist/components/Drawer/components/DrawerHeader/index.d.ts +2 -0
  260. package/dist/components/Drawer/components/index.d.ts +1 -0
  261. package/dist/components/Drawer/helpers/DrawerOptionalHeader.cjs +1 -0
  262. package/dist/components/Drawer/helpers/DrawerOptionalHeader.d.ts +2 -0
  263. package/dist/components/Drawer/helpers/DrawerOptionalHeader.js +9 -0
  264. package/dist/components/Drawer/helpers/index.d.ts +1 -0
  265. package/dist/components/Drawer/hooks/index.d.ts +1 -0
  266. package/dist/components/Drawer/hooks/useDrawer.cjs +1 -0
  267. package/dist/components/Drawer/hooks/useDrawer.d.ts +2 -0
  268. package/dist/components/Drawer/hooks/useDrawer.js +51 -0
  269. package/dist/components/Dropdown/Dropdown.cjs +1 -1
  270. package/dist/components/Dropdown/Dropdown.const.cjs +1 -1
  271. package/dist/components/Dropdown/Dropdown.const.d.ts +4 -0
  272. package/dist/components/Dropdown/Dropdown.const.js +6 -2
  273. package/dist/components/Dropdown/Dropdown.js +109 -116
  274. package/dist/components/Dropdown/Dropdown.types.d.ts +2 -2
  275. package/dist/components/Editable/Editable.cjs +1 -1
  276. package/dist/components/Editable/Editable.js +1 -1
  277. package/dist/components/FileTree/FileTree.cjs +1 -1
  278. package/dist/components/FileTree/FileTree.js +1 -1
  279. package/dist/components/FloatingChat/FloatingChat.cjs +1 -1
  280. package/dist/components/FloatingChat/FloatingChat.js +10 -9
  281. package/dist/components/Gauge/Gauge.cjs +1 -1
  282. package/dist/components/Gauge/Gauge.const.cjs +1 -1
  283. package/dist/components/Gauge/Gauge.const.d.ts +5 -0
  284. package/dist/components/Gauge/Gauge.const.js +11 -6
  285. package/dist/components/Gauge/Gauge.d.ts +1 -2
  286. package/dist/components/Gauge/Gauge.js +69 -45
  287. package/dist/components/Gauge/Gauge.types.d.ts +11 -2
  288. package/dist/components/Gauge/helpers/GaugeLinearBar.cjs +1 -0
  289. package/dist/components/Gauge/helpers/GaugeLinearBar.d.ts +2 -0
  290. package/dist/components/Gauge/helpers/GaugeLinearBar.js +40 -0
  291. package/dist/components/GradientText/GradientText.cjs +1 -1
  292. package/dist/components/GradientText/GradientText.const.cjs +1 -1
  293. package/dist/components/GradientText/GradientText.const.d.ts +6 -1
  294. package/dist/components/GradientText/GradientText.const.js +11 -5
  295. package/dist/components/GradientText/GradientText.js +20 -19
  296. package/dist/components/Heatmap/Heatmap.cjs +1 -1
  297. package/dist/components/Heatmap/Heatmap.const.cjs +1 -1
  298. package/dist/components/Heatmap/Heatmap.const.d.ts +2 -0
  299. package/dist/components/Heatmap/Heatmap.const.js +8 -6
  300. package/dist/components/Heatmap/Heatmap.js +51 -47
  301. package/dist/components/Heatmap/Heatmap.types.d.ts +1 -1
  302. package/dist/components/Icon/Icon.d.ts +2 -39
  303. package/dist/components/Icon/Icon.types.d.ts +1 -17
  304. package/dist/components/Icon/icons/action.d.ts +1 -85
  305. package/dist/components/Icon/icons/bear.d.ts +1 -12
  306. package/dist/components/Icon/icons/charts.d.ts +1 -0
  307. package/dist/components/Icon/icons/commerce.d.ts +1 -25
  308. package/dist/components/Icon/icons/communication.d.ts +1 -48
  309. package/dist/components/Icon/icons/content.d.ts +1 -53
  310. package/dist/components/Icon/icons/device.d.ts +1 -27
  311. package/dist/components/Icon/icons/editor.d.ts +1 -54
  312. package/dist/components/Icon/icons/file.d.ts +1 -25
  313. package/dist/components/Icon/icons/index.d.ts +1 -9
  314. package/dist/components/Icon/icons/media.d.ts +1 -64
  315. package/dist/components/Icon/icons/misc.d.ts +1 -96
  316. package/dist/components/Icon/icons/navigation.d.ts +1 -56
  317. package/dist/components/Icon/icons/social.d.ts +1 -24
  318. package/dist/components/Icon/icons/status.d.ts +1 -61
  319. package/dist/components/Icon/index.d.ts +2 -591
  320. package/dist/components/ImageAnnotation/ImageAnnotation.cjs +1 -1
  321. package/dist/components/ImageAnnotation/ImageAnnotation.js +1 -1
  322. package/dist/components/JsonViewer/JsonViewer.cjs +1 -1
  323. package/dist/components/JsonViewer/JsonViewer.js +1 -1
  324. package/dist/components/MediaPlayer/MediaPlayer.cjs +1 -1
  325. package/dist/components/MediaPlayer/MediaPlayer.js +1 -1
  326. package/dist/components/MediaPlayer/MediaPlayer.types.d.ts +1 -1
  327. package/dist/components/MessageList/MessageList.cjs +1 -1
  328. package/dist/components/MessageList/MessageList.js +37 -36
  329. package/dist/components/Modal/Modal.cjs +1 -1
  330. package/dist/components/Modal/Modal.js +1 -1
  331. package/dist/components/OverlayPortal/OverlayPortal.cjs +1 -0
  332. package/dist/components/OverlayPortal/OverlayPortal.const.cjs +1 -0
  333. package/dist/components/OverlayPortal/OverlayPortal.const.d.ts +4 -0
  334. package/dist/components/OverlayPortal/OverlayPortal.const.js +12 -0
  335. package/dist/components/OverlayPortal/OverlayPortal.d.ts +2 -0
  336. package/dist/components/OverlayPortal/OverlayPortal.js +45 -0
  337. package/dist/components/OverlayPortal/OverlayPortal.types.d.ts +13 -0
  338. package/dist/components/OverlayPortal/index.d.ts +2 -0
  339. package/dist/components/PageNav/PageNav.cjs +1 -1
  340. package/dist/components/PageNav/PageNav.js +1 -1
  341. package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
  342. package/dist/components/PasswordInput/PasswordInput.js +5 -5
  343. package/dist/components/PropsPlayground/PropsPlayground.cjs +1 -1
  344. package/dist/components/PropsPlayground/PropsPlayground.js +1 -1
  345. package/dist/components/Rating/Rating.cjs +1 -1
  346. package/dist/components/Rating/Rating.const.cjs +1 -1
  347. package/dist/components/Rating/Rating.const.d.ts +4 -12
  348. package/dist/components/Rating/Rating.const.js +15 -14
  349. package/dist/components/Rating/Rating.d.ts +1 -13
  350. package/dist/components/Rating/Rating.js +98 -136
  351. package/dist/components/Rating/Rating.types.d.ts +12 -18
  352. package/dist/components/Rating/Rating.utils.cjs +1 -0
  353. package/dist/components/Rating/Rating.utils.d.ts +6 -0
  354. package/dist/components/Rating/Rating.utils.js +18 -0
  355. package/dist/components/Rating/components/StarIcon/StarIcon.cjs +1 -0
  356. package/dist/components/Rating/components/StarIcon/StarIcon.d.ts +2 -0
  357. package/dist/components/Rating/components/StarIcon/StarIcon.js +14 -0
  358. package/dist/components/Rating/components/StarIcon/index.d.ts +1 -0
  359. package/dist/components/Rating/index.d.ts +1 -1
  360. package/dist/components/ResizablePanel/ResizablePanel.cjs +1 -1
  361. package/dist/components/ResizablePanel/ResizablePanel.const.cjs +1 -1
  362. package/dist/components/ResizablePanel/ResizablePanel.const.d.ts +1 -11
  363. package/dist/components/ResizablePanel/ResizablePanel.const.js +3 -9
  364. package/dist/components/ResizablePanel/ResizablePanel.d.ts +1 -16
  365. package/dist/components/ResizablePanel/ResizablePanel.js +44 -51
  366. package/dist/components/ResizablePanel/ResizablePanel.utils.cjs +1 -1
  367. package/dist/components/ResizablePanel/ResizablePanel.utils.d.ts +4 -9
  368. package/dist/components/ResizablePanel/ResizablePanel.utils.js +9 -9
  369. package/dist/components/ResizablePanel/useResizablePanel.cjs +1 -0
  370. package/dist/components/ResizablePanel/useResizablePanel.d.ts +12 -0
  371. package/dist/components/ResizablePanel/useResizablePanel.js +33 -0
  372. package/dist/components/ResizableTextarea/ResizableTextarea.cjs +1 -1
  373. package/dist/components/ResizableTextarea/ResizableTextarea.d.ts +1 -2
  374. package/dist/components/ResizableTextarea/ResizableTextarea.js +106 -91
  375. package/dist/components/ResizableTextarea/ResizableTextarea.utils.cjs +1 -0
  376. package/dist/components/ResizableTextarea/ResizableTextarea.utils.d.ts +3 -0
  377. package/dist/components/ResizableTextarea/ResizableTextarea.utils.js +12 -0
  378. package/dist/components/Result/Result.cjs +1 -1
  379. package/dist/components/Result/Result.const.cjs +1 -1
  380. package/dist/components/Result/Result.const.d.ts +0 -8
  381. package/dist/components/Result/Result.const.js +7 -14
  382. package/dist/components/Result/Result.d.ts +1 -3
  383. package/dist/components/Result/Result.js +37 -24
  384. package/dist/components/Result/Result.utils.cjs +1 -0
  385. package/dist/components/Result/Result.utils.d.ts +4 -0
  386. package/dist/components/Result/Result.utils.js +22 -0
  387. package/dist/components/Result/index.d.ts +1 -1
  388. package/dist/components/RichEditor/RichEditor.cjs +1 -1
  389. package/dist/components/RichEditor/RichEditor.const.cjs +1 -141
  390. package/dist/components/RichEditor/RichEditor.const.d.ts +22 -11
  391. package/dist/components/RichEditor/RichEditor.const.js +84 -197
  392. package/dist/components/RichEditor/RichEditor.d.ts +1 -17
  393. package/dist/components/RichEditor/RichEditor.js +62 -352
  394. package/dist/components/RichEditor/RichEditor.types.d.ts +1 -1
  395. package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.cjs +1 -1
  396. package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.d.ts +1 -3
  397. package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.js +17 -17
  398. package/dist/components/RichEditor/components/ToolbarButton/index.d.ts +1 -1
  399. package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.cjs +1 -1
  400. package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.const.cjs +1 -0
  401. package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.const.d.ts +7 -0
  402. package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.const.js +5 -0
  403. package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.d.ts +1 -3
  404. package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.js +114 -115
  405. package/dist/components/RichEditor/components/ToolbarColorPicker/index.d.ts +1 -1
  406. package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.cjs +1 -1
  407. package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.d.ts +1 -3
  408. package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.js +66 -43
  409. package/dist/components/RichEditor/components/ToolbarDropdown/index.d.ts +1 -1
  410. package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.cjs +1 -1
  411. package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.d.ts +2 -4
  412. package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.js +50 -52
  413. package/dist/components/RichEditor/components/ToolbarSignature/ToolbarSignature.cjs +1 -0
  414. package/dist/components/RichEditor/components/ToolbarSignature/ToolbarSignature.d.ts +2 -0
  415. package/dist/components/RichEditor/components/ToolbarSignature/ToolbarSignature.js +78 -0
  416. package/dist/components/RichEditor/components/ToolbarSignature/ToolbarSignature.types.d.ts +5 -0
  417. package/dist/components/RichEditor/components/ToolbarSignature/index.d.ts +2 -0
  418. package/dist/components/RichEditor/components/index.d.ts +1 -0
  419. package/dist/components/RichEditor/helpers/IconRender.cjs +1 -0
  420. package/dist/components/RichEditor/helpers/IconRender.d.ts +1 -0
  421. package/dist/components/RichEditor/helpers/IconRender.js +29 -0
  422. package/dist/components/RichEditor/helpers/formatHelpers.cjs +1 -1
  423. package/dist/components/RichEditor/helpers/formatHelpers.d.ts +0 -42
  424. package/dist/components/RichEditor/helpers/formatHelpers.js +32 -21
  425. package/dist/components/RichEditor/helpers/toolbarItemRender.cjs +1 -0
  426. package/dist/components/RichEditor/helpers/toolbarItemRender.d.ts +8 -0
  427. package/dist/components/RichEditor/helpers/toolbarItemRender.js +183 -0
  428. package/dist/components/RichEditor/index.d.ts +1 -1
  429. package/dist/components/RichEditor/useRichEditor/index.d.ts +2 -0
  430. package/dist/components/RichEditor/useRichEditor/useRichEditor.cjs +1 -0
  431. package/dist/components/RichEditor/useRichEditor/useRichEditor.d.ts +2 -0
  432. package/dist/components/RichEditor/useRichEditor/useRichEditor.js +140 -0
  433. package/dist/components/RichEditor/useRichEditor/useRichEditor.types.d.ts +39 -0
  434. package/dist/components/RingProgress/RingProgress.cjs +1 -1
  435. package/dist/components/RingProgress/RingProgress.const.cjs +1 -1
  436. package/dist/components/RingProgress/RingProgress.const.d.ts +3 -2
  437. package/dist/components/RingProgress/RingProgress.const.js +7 -5
  438. package/dist/components/RingProgress/RingProgress.d.ts +1 -3
  439. package/dist/components/RingProgress/RingProgress.js +48 -44
  440. package/dist/components/RingProgress/RingProgress.types.d.ts +1 -0
  441. package/dist/components/RingProgress/RingProgress.utils.cjs +1 -0
  442. package/dist/components/RingProgress/RingProgress.utils.d.ts +13 -0
  443. package/dist/components/RingProgress/RingProgress.utils.js +16 -0
  444. package/dist/components/RingProgress/index.d.ts +1 -1
  445. package/dist/components/ScrollArea/ScrollArea.cjs +1 -1
  446. package/dist/components/ScrollArea/ScrollArea.const.cjs +1 -0
  447. package/dist/components/ScrollArea/ScrollArea.const.d.ts +15 -1
  448. package/dist/components/ScrollArea/ScrollArea.const.js +18 -0
  449. package/dist/components/ScrollArea/ScrollArea.d.ts +1 -2
  450. package/dist/components/ScrollArea/ScrollArea.js +24 -35
  451. package/dist/components/ScrollArea/ScrollArea.utils.cjs +1 -0
  452. package/dist/components/ScrollArea/ScrollArea.utils.d.ts +1 -0
  453. package/dist/components/ScrollArea/ScrollArea.utils.js +7 -0
  454. package/dist/components/SegmentedControl/SegmentedControl.cjs +1 -1
  455. package/dist/components/SegmentedControl/SegmentedControl.const.cjs +1 -0
  456. package/dist/components/SegmentedControl/SegmentedControl.const.d.ts +5 -1
  457. package/dist/components/SegmentedControl/SegmentedControl.const.js +8 -0
  458. package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -2
  459. package/dist/components/SegmentedControl/SegmentedControl.js +47 -45
  460. package/dist/components/Select/Select.cjs +1 -1
  461. package/dist/components/Select/Select.const.cjs +1 -1
  462. package/dist/components/Select/Select.const.js +6 -7
  463. package/dist/components/Select/Select.js +110 -124
  464. package/dist/components/Select/Select.types.d.ts +2 -1
  465. package/dist/components/Sidebar/Sidebar.cjs +1 -1
  466. package/dist/components/Sidebar/Sidebar.js +16 -15
  467. package/dist/components/Sidebar/Sidebar.types.d.ts +1 -1
  468. package/dist/components/Sidebar/Sidebar.utils.cjs +1 -0
  469. package/dist/components/Sidebar/Sidebar.utils.d.ts +2 -0
  470. package/dist/components/Sidebar/Sidebar.utils.js +11 -0
  471. package/dist/components/Sidebar/components/SidebarGroup/SidebarGroup.cjs +1 -1
  472. package/dist/components/Sidebar/components/SidebarGroup/SidebarGroup.js +1 -1
  473. package/dist/components/Sidebar/components/SidebarItem/SidebarItem.cjs +1 -1
  474. package/dist/components/Sidebar/components/SidebarItem/SidebarItem.js +55 -51
  475. package/dist/components/Sidebar/index.d.ts +1 -0
  476. package/dist/components/SignPad/SignPad.const.cjs +1 -1
  477. package/dist/components/SignPad/SignPad.const.d.ts +3 -3
  478. package/dist/components/SignPad/SignPad.const.js +3 -3
  479. package/dist/components/SliderRange/SliderRange.cjs +1 -1
  480. package/dist/components/SliderRange/SliderRange.js +19 -19
  481. package/dist/components/Sparkline/Sparkline.cjs +1 -1
  482. package/dist/components/Sparkline/Sparkline.const.cjs +1 -1
  483. package/dist/components/Sparkline/Sparkline.const.d.ts +5 -0
  484. package/dist/components/Sparkline/Sparkline.const.js +9 -4
  485. package/dist/components/Sparkline/Sparkline.d.ts +1 -2
  486. package/dist/components/Sparkline/Sparkline.js +75 -53
  487. package/dist/components/Sparkline/Sparkline.types.d.ts +2 -0
  488. package/dist/components/Sparkline/Sparkline.utils.cjs +1 -1
  489. package/dist/components/Sparkline/Sparkline.utils.d.ts +7 -12
  490. package/dist/components/Sparkline/Sparkline.utils.js +33 -20
  491. package/dist/components/Sparkline/index.d.ts +2 -2
  492. package/dist/components/Stepper/Stepper.cjs +1 -1
  493. package/dist/components/Stepper/Stepper.js +1 -1
  494. package/dist/components/Tabs/TabList.cjs +1 -1
  495. package/dist/components/Tabs/TabList.js +1 -1
  496. package/dist/components/TimePicker/TimePicker.cjs +1 -1
  497. package/dist/components/TimePicker/TimePicker.constants.cjs +1 -1
  498. package/dist/components/TimePicker/TimePicker.constants.d.ts +5 -1
  499. package/dist/components/TimePicker/TimePicker.constants.js +29 -25
  500. package/dist/components/TimePicker/TimePicker.js +110 -82
  501. package/dist/components/TimePicker/TimePicker.types.d.ts +4 -3
  502. package/dist/components/TimelineChart/TimelineChart.cjs +1 -1
  503. package/dist/components/TimelineChart/TimelineChart.const.cjs +1 -1
  504. package/dist/components/TimelineChart/TimelineChart.const.d.ts +3 -0
  505. package/dist/components/TimelineChart/TimelineChart.const.js +7 -4
  506. package/dist/components/TimelineChart/TimelineChart.js +56 -42
  507. package/dist/components/TimelineChart/TimelineChart.types.d.ts +1 -1
  508. package/dist/components/Transition/Transition.cjs +1 -1
  509. package/dist/components/Transition/Transition.js +56 -53
  510. package/dist/components/TreeSelect/TreeSelect.cjs +1 -1
  511. package/dist/components/TreeSelect/TreeSelect.const.cjs +1 -1
  512. package/dist/components/TreeSelect/TreeSelect.const.d.ts +3 -17
  513. package/dist/components/TreeSelect/TreeSelect.const.js +3 -17
  514. package/dist/components/TreeSelect/TreeSelect.d.ts +1 -3
  515. package/dist/components/TreeSelect/TreeSelect.js +164 -144
  516. package/dist/components/TreeSelect/TreeSelect.types.d.ts +15 -0
  517. package/dist/components/TreeSelect/TreeSelect.utils.cjs +1 -1
  518. package/dist/components/TreeSelect/TreeSelect.utils.js +14 -13
  519. package/dist/components/TreeSelect/components/TreeNodeRow/TreeNodeRow.cjs +1 -0
  520. package/dist/components/TreeSelect/components/TreeNodeRow/TreeNodeRow.d.ts +2 -0
  521. package/dist/components/TreeSelect/components/TreeNodeRow/TreeNodeRow.js +68 -0
  522. package/dist/components/TreeSelect/components/TreeNodeRow/index.d.ts +1 -0
  523. package/dist/components/TreeSelect/components/TreeSelectExpandControl/TreeSelectExpandControl.cjs +1 -0
  524. package/dist/components/TreeSelect/components/TreeSelectExpandControl/TreeSelectExpandControl.d.ts +2 -0
  525. package/dist/components/TreeSelect/components/TreeSelectExpandControl/TreeSelectExpandControl.js +30 -0
  526. package/dist/components/TreeSelect/components/TreeSelectExpandControl/index.d.ts +1 -0
  527. package/dist/components/TreeSelect/components/index.d.ts +2 -0
  528. package/dist/components/TreeView/TreeView.cjs +1 -1
  529. package/dist/components/TreeView/TreeView.const.cjs +1 -0
  530. package/dist/components/TreeView/TreeView.const.d.ts +20 -1
  531. package/dist/components/TreeView/TreeView.const.js +24 -0
  532. package/dist/components/TreeView/TreeView.d.ts +1 -2
  533. package/dist/components/TreeView/TreeView.js +49 -73
  534. package/dist/components/TreeView/TreeView.types.d.ts +26 -0
  535. package/dist/components/TreeView/components/TreeViewExpandControl/TreeViewExpandControl.cjs +1 -0
  536. package/dist/components/TreeView/components/TreeViewExpandControl/TreeViewExpandControl.d.ts +2 -0
  537. package/dist/components/TreeView/components/TreeViewExpandControl/TreeViewExpandControl.js +25 -0
  538. package/dist/components/TreeView/components/TreeViewExpandControl/index.d.ts +1 -0
  539. package/dist/components/TreeView/components/TreeViewNode/TreeViewNode.cjs +1 -0
  540. package/dist/components/TreeView/components/TreeViewNode/TreeViewNode.d.ts +2 -0
  541. package/dist/components/TreeView/components/TreeViewNode/TreeViewNode.js +97 -0
  542. package/dist/components/TreeView/components/TreeViewNode/index.d.ts +1 -0
  543. package/dist/components/TreeView/components/TreeViewNodeIcon/TreeViewNodeIcon.cjs +1 -0
  544. package/dist/components/TreeView/components/TreeViewNodeIcon/TreeViewNodeIcon.d.ts +2 -0
  545. package/dist/components/TreeView/components/TreeViewNodeIcon/TreeViewNodeIcon.js +11 -0
  546. package/dist/components/TreeView/components/TreeViewNodeIcon/index.d.ts +1 -0
  547. package/dist/components/TreeView/components/index.d.ts +3 -0
  548. package/dist/components/Typography/Typography.cjs +1 -1
  549. package/dist/components/Typography/Typography.d.ts +1 -16
  550. package/dist/components/Typography/Typography.js +67 -72
  551. package/dist/components/Typography/Typography.utils.cjs +1 -0
  552. package/dist/components/Typography/Typography.utils.d.ts +5 -0
  553. package/dist/components/Typography/Typography.utils.js +26 -0
  554. package/dist/components/VirtualList/VirtualList.cjs +1 -1
  555. package/dist/components/VirtualList/VirtualList.const.cjs +1 -1
  556. package/dist/components/VirtualList/VirtualList.const.d.ts +1 -1
  557. package/dist/components/VirtualList/VirtualList.const.js +4 -2
  558. package/dist/components/VirtualList/VirtualList.d.ts +1 -1
  559. package/dist/components/VirtualList/VirtualList.js +29 -28
  560. package/dist/components/Watermark/Watermark.cjs +1 -1
  561. package/dist/components/Watermark/Watermark.d.ts +1 -2
  562. package/dist/components/Watermark/Watermark.js +68 -77
  563. package/dist/components/index.cjs +1 -1
  564. package/dist/components/index.d.ts +4 -2
  565. package/dist/components/index.js +415 -408
  566. package/dist/constants/generals.const.cjs +1 -0
  567. package/dist/constants/generals.const.d.ts +166 -0
  568. package/dist/constants/generals.const.js +144 -0
  569. package/dist/constants/index.d.ts +3 -0
  570. package/dist/constants/keys.const.cjs +1 -0
  571. package/dist/constants/keys.const.d.ts +6 -0
  572. package/dist/constants/keys.const.js +8 -0
  573. package/dist/constants/numbers.const.cjs +1 -0
  574. package/dist/constants/numbers.const.d.ts +77 -0
  575. package/dist/constants/numbers.const.js +70 -0
  576. package/dist/context/BearProvider.d.ts +1 -2
  577. package/dist/hooks/index.cjs +1 -1
  578. package/dist/hooks/index.d.ts +7 -0
  579. package/dist/hooks/index.js +76 -57
  580. package/dist/hooks/useBearComponent/useBearComponent.d.ts +1 -1
  581. package/dist/hooks/useBearComponent/useBearComponent.types.d.ts +1 -1
  582. package/dist/hooks/useBearDefaultProps.d.ts +1 -1
  583. package/dist/hooks/useBearStyles.d.ts +1 -1
  584. package/dist/hooks/useDocumentDarkClass/index.d.ts +1 -0
  585. package/dist/hooks/useDocumentDarkClass/useDocumentDarkClass.cjs +1 -0
  586. package/dist/hooks/useDocumentDarkClass/useDocumentDarkClass.d.ts +1 -0
  587. package/dist/hooks/useDocumentDarkClass/useDocumentDarkClass.js +26 -0
  588. package/dist/hooks/useFixedAnchorPosition/index.d.ts +4 -0
  589. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.cjs +1 -0
  590. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.cjs +1 -0
  591. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.d.ts +17 -0
  592. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.const.js +20 -0
  593. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.d.ts +2 -0
  594. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.js +64 -0
  595. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.types.d.ts +35 -0
  596. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.utils.cjs +1 -0
  597. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.utils.d.ts +16 -0
  598. package/dist/hooks/useFixedAnchorPosition/useFixedAnchorPosition.utils.js +23 -0
  599. package/dist/hooks/usePointerDrag/index.d.ts +2 -0
  600. package/dist/hooks/usePointerDrag/usePointerDrag.cjs +1 -0
  601. package/dist/hooks/usePointerDrag/usePointerDrag.d.ts +2 -0
  602. package/dist/hooks/usePointerDrag/usePointerDrag.js +32 -0
  603. package/dist/hooks/usePointerDrag/usePointerDrag.types.d.ts +14 -0
  604. package/dist/hooks/useResponsive.d.ts +1 -1
  605. package/dist/hooks/useWindowLayout/index.d.ts +2 -0
  606. package/dist/hooks/useWindowLayout/useWindowLayout.cjs +1 -0
  607. package/dist/hooks/useWindowLayout/useWindowLayout.const.cjs +1 -0
  608. package/dist/hooks/useWindowLayout/useWindowLayout.const.d.ts +2 -0
  609. package/dist/hooks/useWindowLayout/useWindowLayout.const.js +5 -0
  610. package/dist/hooks/useWindowLayout/useWindowLayout.d.ts +5 -0
  611. package/dist/hooks/useWindowLayout/useWindowLayout.js +15 -0
  612. package/dist/hooks/useWindowLayout/useWindowLayout.types.d.ts +4 -0
  613. package/dist/icons.cjs +1 -1
  614. package/dist/icons.d.ts +2 -2
  615. package/dist/icons.js +1 -6
  616. package/dist/index.cjs +1 -1
  617. package/dist/index.js +550 -522
  618. package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.cjs +1 -0
  619. package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.const.cjs +1 -0
  620. package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.const.js +14 -0
  621. package/dist/node_modules/@forgedevstack/bear-icons/dist/Icon.js +35 -0
  622. package/dist/node_modules/@forgedevstack/bear-icons/dist/action.cjs +1 -0
  623. package/dist/node_modules/@forgedevstack/bear-icons/dist/action.js +26 -0
  624. package/dist/node_modules/@forgedevstack/bear-icons/dist/cn.utils.cjs +1 -0
  625. package/dist/node_modules/@forgedevstack/bear-icons/dist/cn.utils.js +4 -0
  626. package/dist/node_modules/@forgedevstack/bear-icons/dist/editor.cjs +1 -0
  627. package/dist/node_modules/@forgedevstack/bear-icons/dist/editor.js +130 -0
  628. package/dist/node_modules/@forgedevstack/bear-icons/dist/misc.cjs +1 -0
  629. package/dist/node_modules/@forgedevstack/bear-icons/dist/misc.js +12 -0
  630. package/dist/node_modules/@forgedevstack/bear-icons/dist/navigation.cjs +1 -0
  631. package/dist/node_modules/@forgedevstack/bear-icons/dist/navigation.js +18 -0
  632. package/dist/node_modules/@forgedevstack/bear-icons/dist/status.cjs +1 -0
  633. package/dist/node_modules/@forgedevstack/bear-icons/dist/status.js +6 -0
  634. package/dist/styles/_drawer.css +213 -0
  635. package/dist/styles/_feedback.css +15 -0
  636. package/dist/styles/_overlays.css +0 -1
  637. package/dist/styles/_rich-editor.css +104 -0
  638. package/dist/styles/_segmented.css +70 -0
  639. package/dist/styles/main.css +3 -0
  640. package/dist/styles.css +484 -73
  641. package/dist/types/index.d.ts +1 -0
  642. package/dist/types/surface.types.d.ts +6 -0
  643. package/dist/utils/clamp.utils.cjs +1 -0
  644. package/dist/utils/clamp.utils.d.ts +1 -0
  645. package/dist/utils/clamp.utils.js +4 -0
  646. package/dist/utils/index.cjs +1 -1
  647. package/dist/utils/index.d.ts +1 -0
  648. package/dist/utils/index.js +32 -30
  649. package/package.json +5 -1
  650. package/dist/components/Accordion/Accordion.const.cjs +0 -1
  651. package/dist/components/Accordion/Accordion.const.d.ts +0 -10
  652. package/dist/components/Accordion/Accordion.const.js +0 -8
  653. package/dist/components/ActivityItem/ActivityItem.const.d.ts +0 -1
  654. package/dist/components/Affix/Affix.const.cjs +0 -1
  655. package/dist/components/Affix/Affix.const.d.ts +0 -6
  656. package/dist/components/Affix/Affix.const.js +0 -9
  657. package/dist/components/AlertDialog/AlertDialog.const.cjs +0 -1
  658. package/dist/components/AlertDialog/AlertDialog.const.d.ts +0 -5
  659. package/dist/components/AlertDialog/AlertDialog.const.js +0 -8
  660. package/dist/components/Anchor/Anchor.const.cjs +0 -1
  661. package/dist/components/Anchor/Anchor.const.d.ts +0 -9
  662. package/dist/components/Anchor/Anchor.const.js +0 -11
  663. package/dist/components/AnimatedCounter/AnimatedCounter.const.cjs +0 -1
  664. package/dist/components/AnimatedCounter/AnimatedCounter.const.d.ts +0 -5
  665. package/dist/components/AnimatedCounter/AnimatedCounter.const.js +0 -7
  666. package/dist/components/AspectRatio/AspectRatio.const.d.ts +0 -1
  667. package/dist/components/Autocomplete/Autocomplete.const.cjs +0 -1
  668. package/dist/components/Autocomplete/Autocomplete.const.js +0 -4
  669. package/dist/components/Backdrop/Backdrop.const.cjs +0 -1
  670. package/dist/components/Backdrop/Backdrop.const.d.ts +0 -11
  671. package/dist/components/Backdrop/Backdrop.const.js +0 -14
  672. package/dist/components/Banner/helpers/BannerErrorSvg.cjs +0 -1
  673. package/dist/components/Banner/helpers/BannerErrorSvg.js +0 -22
  674. package/dist/components/Banner/helpers/BannerInfoSvg.cjs +0 -1
  675. package/dist/components/Banner/helpers/BannerInfoSvg.js +0 -22
  676. package/dist/components/Banner/helpers/BannerSuccessSvg.cjs +0 -1
  677. package/dist/components/Banner/helpers/BannerSuccessSvg.js +0 -21
  678. package/dist/components/Banner/helpers/BannerWarningSvg.cjs +0 -1
  679. package/dist/components/Banner/helpers/BannerWarningSvg.js +0 -22
  680. package/dist/components/Biometric/BiometricIcon.cjs +0 -1
  681. package/dist/components/Biometric/BiometricIcon.d.ts +0 -3
  682. package/dist/components/Biometric/BiometricIcon.js +0 -45
  683. package/dist/components/Icon/Icon.cjs +0 -1
  684. package/dist/components/Icon/Icon.const.d.ts +0 -1
  685. package/dist/components/Icon/Icon.js +0 -45
  686. package/dist/components/Icon/icons/action.cjs +0 -1
  687. package/dist/components/Icon/icons/action.js +0 -351
  688. package/dist/components/Icon/icons/bear.cjs +0 -1
  689. package/dist/components/Icon/icons/bear.js +0 -47
  690. package/dist/components/Icon/icons/commerce.cjs +0 -1
  691. package/dist/components/Icon/icons/commerce.js +0 -124
  692. package/dist/components/Icon/icons/communication.cjs +0 -1
  693. package/dist/components/Icon/icons/communication.js +0 -184
  694. package/dist/components/Icon/icons/content.cjs +0 -1
  695. package/dist/components/Icon/icons/content.js +0 -231
  696. package/dist/components/Icon/icons/device.cjs +0 -1
  697. package/dist/components/Icon/icons/device.js +0 -122
  698. package/dist/components/Icon/icons/editor.cjs +0 -1
  699. package/dist/components/Icon/icons/editor.js +0 -285
  700. package/dist/components/Icon/icons/file.cjs +0 -1
  701. package/dist/components/Icon/icons/file.js +0 -120
  702. package/dist/components/Icon/icons/media.cjs +0 -1
  703. package/dist/components/Icon/icons/media.js +0 -306
  704. package/dist/components/Icon/icons/misc.cjs +0 -1
  705. package/dist/components/Icon/icons/misc.js +0 -450
  706. package/dist/components/Icon/icons/navigation.cjs +0 -1
  707. package/dist/components/Icon/icons/navigation.js +0 -215
  708. package/dist/components/Icon/icons/social.cjs +0 -1
  709. package/dist/components/Icon/icons/social.js +0 -89
  710. package/dist/components/Icon/icons/status.cjs +0 -1
  711. package/dist/components/Icon/icons/status.js +0 -271
  712. package/dist/components/Icon/index.cjs +0 -1
  713. package/dist/components/Icon/index.js +0 -60
  714. package/dist/components/ResizableTextarea/ResizableTextarea.const.cjs +0 -1
  715. package/dist/components/ResizableTextarea/ResizableTextarea.const.d.ts +0 -2
  716. package/dist/components/ResizableTextarea/ResizableTextarea.const.js +0 -5
  717. package/dist/components/Result/Result.icons.cjs +0 -1
  718. package/dist/components/Result/Result.icons.d.ts +0 -3
  719. package/dist/components/Result/Result.icons.js +0 -31
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ import { ResultStatus } from './Result.types';
3
+ export declare const isTextStatus: (status: ResultStatus) => boolean;
4
+ export declare const getStatusIcon: (status: ResultStatus) => ReactNode;
@@ -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, default } from './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 t=require("react/jsx-runtime"),c=require("react"),m=require("../../utils/cn.cjs"),u=require("./helpers/formatHelpers.cjs"),f=require("./RichEditor.const.cjs"),le=require("../../hooks/useMediaQuery.cjs"),C=require("./components/ToolbarButton/ToolbarButton.cjs"),ce=require("./components/ToolbarDropdown/ToolbarDropdown.cjs"),z=require("./components/ToolbarColorPicker/ToolbarColorPicker.cjs"),ue=require("./components/ToolbarMore/ToolbarMore.cjs"),i=require("../Icon/icons/editor.cjs"),de=6,ge=A=>{const{value:x,defaultValue:k="",onChange:R,placeholder:v="Start typing...",disabled:o=!1,readOnly:r=!1,minHeight:j=f.RICH_EDITOR_MIN_HEIGHT,maxHeight:b,toolbar:D=f.RICH_EDITOR_DEFAULT_TOOLBAR,className:N="",testId:M,allowImagePaste:L=!0,showCharCount:p=!1,charCountMax:_,...F}=A,l=c.useRef(null),E=le.useMediaQuery(`(max-width: ${f.RICH_EDITOR_MOBILE_BREAKPOINT}px)`),O=E?f.RICH_EDITOR_MOBILE_TOOLBAR:D,[w,q]=c.useState(new Set),[U,H]=c.useState("p"),[B,P]=c.useState(0),[V,J]=c.useState("#000000"),[G,$]=c.useState("#fef08a"),[Q,K]=c.useState([]),[Y,W]=c.useState([]);c.useEffect(()=>{const e="bear-rich-editor-styles";if(!document.getElementById(e)){const n=document.createElement("style");n.id=e,n.textContent=f.RICH_EDITOR_CONTENT_STYLES,document.head.appendChild(n)}},[]),c.useEffect(()=>{l.current&&x!==void 0&&l.current.innerHTML!==x&&(l.current.innerHTML=x)},[x]),c.useEffect(()=>{l.current&&k&&!x&&(l.current.innerHTML=k)},[]);const I=c.useCallback(()=>{q(u.getActiveFormats());const e=u.queryCommandValue("formatBlock");e&&H(e.toLowerCase().replace(/[<>]/g,""))},[]),a=c.useCallback(()=>{var e;l.current&&(R&&R(l.current.innerHTML),p&&P(((e=l.current.textContent)==null?void 0:e.length)??0)),I()},[R,I,p]),X=c.useCallback(e=>{var d;if(o||r)return;(d=l.current)==null||d.focus();const n=f.RICH_EDITOR_BUTTON_CONFIG[e];if(!n)return;const g="value"in n?n.value:void 0;g?u.execCommand(n.command,g):u.execCommand(n.command),I(),a()},[o,r,I,a]),Z=c.useCallback(e=>{var n;o||r||((n=l.current)==null||n.focus(),u.execCommand("formatBlock",e),H(e),a())},[o,r,a]),ee=c.useCallback(()=>{var d;if(o||r)return;const e=window.getSelection(),n=e&&e.toString().length>0,g=prompt("Enter URL:",n?"":"https://");g&&((d=l.current)==null||d.focus(),u.insertLink(g),a())},[o,r,a]),T=c.useCallback((e,n)=>{if(!e)return;(n==="text"?K:W)(d=>{const s=d.filter(h=>h!==e);return[e,...s].slice(0,de)})},[]),te=c.useCallback(e=>{var n;o||r||((n=l.current)==null||n.focus(),u.setTextColor(e),J(e),T(e,"text"),a())},[o,r,a,T]),ne=c.useCallback(e=>{var n;o||r||((n=l.current)==null||n.focus(),u.setHighlightColor(e),$(e),T(e,"highlight"),a())},[o,r,a,T]),oe=c.useCallback(e=>{var n;o||r||((n=l.current)==null||n.focus(),u.setTextColor(e),a())},[o,r,a]),re=c.useCallback(e=>{var n;o||r||((n=l.current)==null||n.focus(),u.setHighlightColor(e),a())},[o,r,a]),ie=c.useCallback(async e=>{var g;if(!L)return;const n=(g=e.clipboardData)==null?void 0:g.items;if(n)for(let d=0;d<n.length;d++){const s=n[d];if(s.type.startsWith("image/")){e.preventDefault();const h=s.getAsFile();if(h){const y=await u.fileToDataUrl(h);u.insertImage(y),a()}return}}},[L,a]),se=c.useCallback(()=>{if(o||r)return;const e=document.createElement("input");e.type="file",e.accept="image/*",e.onchange=async n=>{var d,s;const g=(d=n.target.files)==null?void 0:d[0];if(g){const h=await u.fileToDataUrl(g);(s=l.current)==null||s.focus(),u.insertImage(h),a()}},e.click()},[o,r,a]),ae={bold:t.jsx(i.BoldIcon,{size:16}),italic:t.jsx(i.ItalicIcon,{size:16}),underline:t.jsx(i.UnderlineIcon,{size:16}),strikethrough:t.jsx(i.StrikethroughIcon,{size:16}),heading1:t.jsx(i.Heading1Icon,{size:16}),heading2:t.jsx(i.Heading2Icon,{size:16}),heading3:t.jsx(i.Heading3Icon,{size:16}),bulletList:t.jsx(i.ListBulletIcon,{size:16}),orderedList:t.jsx(i.ListNumberedIcon,{size:16}),blockquote:t.jsx(i.QuoteIcon,{size:16}),code:t.jsx(i.CodeIcon,{size:16}),link:t.jsx(i.InsertLinkIcon,{size:16}),alignLeft:t.jsx(i.AlignLeftIcon,{size:16}),alignCenter:t.jsx(i.AlignCenterIcon,{size:16}),alignRight:t.jsx(i.AlignRightIcon,{size:16}),alignJustify:t.jsx(i.AlignJustifyIcon,{size:16}),image:t.jsx(i.InsertPhotoIcon,{size:16}),indent:t.jsx(i.IndentIncreaseIcon,{size:16}),outdent:t.jsx(i.IndentDecreaseIcon,{size:16}),clearFormat:t.jsx(i.FormatClearIcon,{size:16}),table:t.jsx(i.TableIcon,{size:16})},S=(e,n)=>{if(e==="divider")return t.jsx("div",{className:m.cn("Bear-RichEditor__divider",f.RICH_EDITOR_DIVIDER_CLASSES)},`divider-${n}`);if(e==="headingDropdown")return t.jsx(ce.ToolbarDropdown,{options:f.RICH_EDITOR_HEADING_OPTIONS,value:U,onChange:Z,title:"Text Style",disabled:o||r,icon:t.jsx(i.TextIcon,{size:16})},"heading-dropdown");if(e==="textColor")return t.jsx(z.ToolbarColorPicker,{value:V,onChange:te,title:"Text Color",disabled:o||r,type:"text",recentColors:Q,onApplyLast:oe},"text-color");if(e==="highlightColor")return t.jsx(z.ToolbarColorPicker,{value:G,onChange:ne,title:"Highlight Color",disabled:o||r,type:"highlight",recentColors:Y,onApplyLast:re},"highlight-color");if(e==="link")return t.jsx(C.ToolbarButton,{icon:t.jsx(i.InsertLinkIcon,{size:16}),title:"Insert Link",onClick:ee,disabled:o||r},"link");if(e==="image")return t.jsx(C.ToolbarButton,{icon:t.jsx(i.InsertPhotoIcon,{size:16}),title:"Insert Image",onClick:se,disabled:o||r},"image");if(e==="alignLeft")return t.jsx(C.ToolbarButton,{icon:t.jsx(i.AlignLeftIcon,{size:16}),title:"Align Left",onClick:()=>{var s;(s=l.current)==null||s.focus(),u.execCommand("justifyLeft"),a()},disabled:o||r},"alignLeft");if(e==="alignCenter")return t.jsx(C.ToolbarButton,{icon:t.jsx(i.AlignCenterIcon,{size:16}),title:"Align Center",onClick:()=>{var s;(s=l.current)==null||s.focus(),u.execCommand("justifyCenter"),a()},disabled:o||r},"alignCenter");if(e==="alignRight")return t.jsx(C.ToolbarButton,{icon:t.jsx(i.AlignRightIcon,{size:16}),title:"Align Right",onClick:()=>{var s;(s=l.current)==null||s.focus(),u.execCommand("justifyRight"),a()},disabled:o||r},"alignRight");if(e==="alignJustify")return t.jsx(C.ToolbarButton,{icon:t.jsx(i.AlignJustifyIcon,{size:16}),title:"Justify",onClick:()=>{var s;(s=l.current)==null||s.focus(),u.execCommand("justifyFull"),a()},disabled:o||r},"alignJustify");if(e==="indent")return t.jsx(C.ToolbarButton,{icon:t.jsx(i.IndentIncreaseIcon,{size:16}),title:"Increase Indent",onClick:()=>{var s;(s=l.current)==null||s.focus(),u.execCommand("indent"),a()},disabled:o||r},"indent");if(e==="outdent")return t.jsx(C.ToolbarButton,{icon:t.jsx(i.IndentDecreaseIcon,{size:16}),title:"Decrease Indent",onClick:()=>{var s;(s=l.current)==null||s.focus(),u.execCommand("outdent"),a()},disabled:o||r},"outdent");if(e==="clearFormat")return t.jsx(C.ToolbarButton,{icon:t.jsx(i.FormatClearIcon,{size:16}),title:"Clear Formatting",onClick:()=>{var s;(s=l.current)==null||s.focus(),u.execCommand("removeFormat"),a()},disabled:o||r},"clearFormat");if(e==="more"){const s=E?f.RICH_EDITOR_MOBILE_MORE_ITEMS:["alignLeft","alignCenter","alignRight","alignJustify","indent","outdent","blockquote","code","clearFormat"];return t.jsx(ue.ToolbarMore,{disabled:o||r,isMobile:E,children:s.map((h,y)=>S(h,y+1e3))},"more")}const g=f.RICH_EDITOR_BUTTON_CONFIG[e],d=ae[e];return!g||!d?null:t.jsx(C.ToolbarButton,{icon:d,title:g.title,active:w.has(e),onClick:()=>X(e),disabled:o||r},e)};return t.jsxs("div",{"data-testid":M,className:m.cn("Bear-RichEditor",f.RICH_EDITOR_ROOT_CLASSES,o&&"Bear-RichEditor--disabled",r&&"Bear-RichEditor--readonly",N),...F,children:[O.length>0&&t.jsx("div",{className:m.cn("Bear-RichEditor__toolbar",f.RICH_EDITOR_TOOLBAR_CLASSES),children:O.map((e,n)=>S(e,n))}),t.jsx("div",{ref:l,contentEditable:!o&&!r,onInput:a,onSelect:I,onKeyUp:I,onMouseUp:I,onPaste:ie,"data-placeholder":v,className:m.cn("Bear-RichEditor__content",f.RICH_EDITOR_CONTENT_CLASSES,"[&:empty]:before:bear-content-[attr(data-placeholder)] [&:empty]:before:bear-text-gray-400 [&:empty]:before:bear-pointer-events-none",o&&"Bear-RichEditor__content--disabled bear-opacity-50 bear-cursor-not-allowed"),style:{minHeight:typeof j=="number"?`${j}px`:j,maxHeight:b?typeof b=="number"?`${b}px`:b:void 0,overflowY:b?"auto":void 0}}),p&&_!=null&&t.jsxs("div",{className:m.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",B>_?"bear-text-red-500":"bear-text-gray-400 dark:bear-text-gray-500"),children:[B,"/",_]})]})};exports.RichEditor=ge;
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 e=require("react/jsx-runtime"),t=150,i=["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","divider","clearFormat"],o=["headingDropdown","divider","bold","italic","strikethrough","divider","more"],r=["underline","textColor","highlightColor","divider","alignLeft","alignCenter","alignRight","alignJustify","divider","bulletList","orderedList","divider","indent","outdent","divider","blockquote","code","link","image","divider","clearFormat"],a=640,n="Bear-RichEditor rounded-lg border border-gray-200 dark:border-zinc-700 overflow-hidden bg-white dark:bg-zinc-900 shadow-sm",d="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",l="p-4 outline-none max-w-none text-gray-900 dark:text-gray-100 bg-white dark:bg-zinc-900 min-h-[100px]",c="w-px h-5 bg-gray-300 dark:bg-zinc-600 mx-1",m="p-1.5 rounded transition-colors",_="bg-primary-500 text-white",g="text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-zinc-700",s="opacity-50 cursor-not-allowed",h=[{value:"p",label:"Paragraph",preview:e.jsx("span",{className:"bear-text-sm bear-font-normal",children:"Normal text"})},{value:"h1",label:"Heading 1",preview:e.jsx("span",{className:"bear-text-2xl bear-font-bold",children:"Heading 1"})},{value:"h2",label:"Heading 2",preview:e.jsx("span",{className:"bear-text-xl bear-font-bold",children:"Heading 2"})},{value:"h3",label:"Heading 3",preview:e.jsx("span",{className:"bear-text-lg bear-font-semibold",children:"Heading 3"})},{value:"h4",label:"Heading 4",preview:e.jsx("span",{className:"bear-text-base bear-font-semibold",children:"Heading 4"})},{value:"h5",label:"Heading 5",preview:e.jsx("span",{className:"bear-text-sm bear-font-semibold",children:"Heading 5"})},{value:"h6",label:"Heading 6",preview:e.jsx("span",{className:"bear-text-xs bear-font-semibold bear-uppercase",children:"Heading 6"})}],R={bold:{title:"Bold (Ctrl+B)",command:"bold"},italic:{title:"Italic (Ctrl+I)",command:"italic"},underline:{title:"Underline (Ctrl+U)",command:"underline"},strikethrough:{title:"Strikethrough",command:"strikeThrough"},heading1:{title:"Heading 1",command:"formatBlock",value:"h1"},heading2:{title:"Heading 2",command:"formatBlock",value:"h2"},heading3:{title:"Heading 3",command:"formatBlock",value:"h3"},heading4:{title:"Heading 4",command:"formatBlock",value:"h4"},heading5:{title:"Heading 5",command:"formatBlock",value:"h5"},heading6:{title:"Heading 6",command:"formatBlock",value:"h6"},paragraph:{title:"Paragraph",command:"formatBlock",value:"p"},bulletList:{title:"Bullet List",command:"insertUnorderedList"},orderedList:{title:"Numbered List",command:"insertOrderedList"},blockquote:{title:"Quote",command:"formatBlock",value:"blockquote"},code:{title:"Code Block",command:"formatBlock",value:"pre"},link:{title:"Insert Link",command:"createLink"},image:{title:"Insert Image",command:"insertImage"},textColor:{title:"Text Color",command:"foreColor"},highlightColor:{title:"Highlight Color",command:"hiliteColor"},alignLeft:{title:"Align Left",command:"justifyLeft"},alignCenter:{title:"Align Center",command:"justifyCenter"},alignRight:{title:"Align Right",command:"justifyRight"},alignJustify:{title:"Justify",command:"justifyFull"},indent:{title:"Increase Indent",command:"indent"},outdent:{title:"Decrease Indent",command:"outdent"},clearFormat:{title:"Clear Formatting",command:"removeFormat"},table:{title:"Insert Table",command:"insertTable"}},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"],E=`
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 e } from "react/jsx-runtime";
2
- const i = 150, o = [
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
- ], r = [
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
- ], a = [
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
- ], n = 640, d = "Bear-RichEditor rounded-lg border border-gray-200 dark:border-zinc-700 overflow-hidden bg-white dark:bg-zinc-900 shadow-sm", l = "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", c = "p-4 outline-none max-w-none text-gray-900 dark:text-gray-100 bg-white dark:bg-zinc-900 min-h-[100px]", m = "w-px h-5 bg-gray-300 dark:bg-zinc-600 mx-1", g = "p-1.5 rounded transition-colors", s = "bg-primary-500 text-white", h = "text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-zinc-700", b = "opacity-50 cursor-not-allowed", f = [
61
- { value: "p", label: "Paragraph", preview: /* @__PURE__ */ e("span", { className: "bear-text-sm bear-font-normal", children: "Normal text" }) },
62
- { value: "h1", label: "Heading 1", preview: /* @__PURE__ */ e("span", { className: "bear-text-2xl bear-font-bold", children: "Heading 1" }) },
63
- { value: "h2", label: "Heading 2", preview: /* @__PURE__ */ e("span", { className: "bear-text-xl bear-font-bold", children: "Heading 2" }) },
64
- { value: "h3", label: "Heading 3", preview: /* @__PURE__ */ e("span", { className: "bear-text-lg bear-font-semibold", children: "Heading 3" }) },
65
- { value: "h4", label: "Heading 4", preview: /* @__PURE__ */ e("span", { className: "bear-text-base bear-font-semibold", children: "Heading 4" }) },
66
- { value: "h5", label: "Heading 5", preview: /* @__PURE__ */ e("span", { className: "bear-text-sm bear-font-semibold", children: "Heading 5" }) },
67
- { value: "h6", label: "Heading 6", preview: /* @__PURE__ */ e("span", { className: "bear-text-xs bear-font-semibold bear-uppercase", children: "Heading 6" }) }
68
- ], _ = {
69
- bold: { title: "Bold (Ctrl+B)", command: "bold" },
70
- italic: { title: "Italic (Ctrl+I)", command: "italic" },
71
- underline: { title: "Underline (Ctrl+U)", command: "underline" },
72
- strikethrough: { title: "Strikethrough", command: "strikeThrough" },
73
- heading1: { title: "Heading 1", command: "formatBlock", value: "h1" },
74
- heading2: { title: "Heading 2", command: "formatBlock", value: "h2" },
75
- heading3: { title: "Heading 3", command: "formatBlock", value: "h3" },
76
- heading4: { title: "Heading 4", command: "formatBlock", value: "h4" },
77
- heading5: { title: "Heading 5", command: "formatBlock", value: "h5" },
78
- heading6: { title: "Heading 6", command: "formatBlock", value: "h6" },
79
- paragraph: { title: "Paragraph", command: "formatBlock", value: "p" },
80
- bulletList: { title: "Bullet List", command: "insertUnorderedList" },
81
- orderedList: { title: "Numbered List", command: "insertOrderedList" },
82
- blockquote: { title: "Quote", command: "formatBlock", value: "blockquote" },
83
- code: { title: "Code Block", command: "formatBlock", value: "pre" },
84
- link: { title: "Insert Link", command: "createLink" },
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: "foreColor" },
87
- highlightColor: { title: "Highlight Color", command: "hiliteColor" },
88
- alignLeft: { title: "Align Left", command: "justifyLeft" },
89
- alignCenter: { title: "Align Center", command: "justifyCenter" },
90
- alignRight: { title: "Align Right", command: "justifyRight" },
91
- alignJustify: { title: "Justify", command: "justifyFull" },
92
- indent: { title: "Increase Indent", command: "indent" },
93
- outdent: { title: "Decrease Indent", command: "outdent" },
94
- clearFormat: { title: "Clear Formatting", command: "removeFormat" },
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
- }, p = [
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
- ], u = `
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
- s as RICH_EDITOR_BUTTON_ACTIVE_CLASSES,
296
- g as RICH_EDITOR_BUTTON_BASE_CLASSES,
297
- _ as RICH_EDITOR_BUTTON_CONFIG,
298
- b as RICH_EDITOR_BUTTON_DISABLED_CLASSES,
299
- h as RICH_EDITOR_BUTTON_INACTIVE_CLASSES,
300
- p as RICH_EDITOR_COLORS,
301
- c as RICH_EDITOR_CONTENT_CLASSES,
302
- u as RICH_EDITOR_CONTENT_STYLES,
303
- o as RICH_EDITOR_DEFAULT_TOOLBAR,
304
- m as RICH_EDITOR_DIVIDER_CLASSES,
305
- f as RICH_EDITOR_HEADING_OPTIONS,
306
- i as RICH_EDITOR_MIN_HEIGHT,
307
- n as RICH_EDITOR_MOBILE_BREAKPOINT,
308
- a as RICH_EDITOR_MOBILE_MORE_ITEMS,
309
- r as RICH_EDITOR_MOBILE_TOOLBAR,
310
- d as RICH_EDITOR_ROOT_CLASSES,
311
- l as RICH_EDITOR_TOOLBAR_CLASSES
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;